(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Popper=t()})(this,function(){"use strict";function ri(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}function ui(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ft))}}function st(n){return n&&{}.toString.call(n)==="[object Function]"}function i(n,t){if(n.nodeType!==1)return[];var i=getComputedStyle(n,null);return t?i[t]:i}function w(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function e(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=i(n),r=t.overflow,u=t.overflowX,f=t.overflowY;return/(auto|scroll)/.test(r+f+u)?n:e(w(n))}function r(n){var t=n&&n.offsetParent,u=t&&t.nodeName;return!u||u==="BODY"||u==="HTML"?n?n.ownerDocument.documentElement:document.documentElement:["TD","TABLE"].indexOf(t.nodeName)!==-1&&i(t,"position")==="static"?r(t):t}function fi(n){var t=n.nodeName;return t==="BODY"?!1:t==="HTML"||r(n.firstElementChild)===n}function b(n){return n.parentNode!==null?b(n.parentNode):n}function c(n,t){var i,f;if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,u=document.createRange();return(u.setStart(o,0),u.setEnd(s,0),i=u.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?fi(i)?i:r(i):(f=b(n),f.host?c(f.host,t):c(n,b(t).host))}function u(n){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top",t=f==="top"?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return i==="BODY"||i==="HTML"?(r=n.ownerDocument.documentElement,u=n.ownerDocument.scrollingElement||r,u[t]):n[t]}function ei(n,t){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,r=u(t,"top"),f=u(t,"left"),i=e?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=f*i,n.right+=f*i,n}function ht(n,t){var i=t==="x"?"Left":"Top",r=i==="Left"?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function ct(n,t,i,r){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],o()?i["offset"+n]+r["margin"+(n==="Height"?"Top":"Left")]+r["margin"+(n==="Height"?"Bottom":"Right")]:0)}function lt(){var t=document.body,n=document.documentElement,i=o()&&getComputedStyle(n);return{height:ct("Height",t,n,i),width:ct("Width",t,n,i)}}function t(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function k(n){var r={},e,s,l;if(o())try{r=n.getBoundingClientRect();e=u(n,"top");s=u(n,"left");r.top+=e;r.left+=s;r.bottom+=e;r.right+=s}catch(p){}else r=n.getBoundingClientRect();var f={left:r.left,top:r.top,width:r.right-r.left,height:r.bottom-r.top},a=n.nodeName==="HTML"?lt():{},v=a.width||n.clientWidth||f.right-f.left,y=a.height||n.clientHeight||f.bottom-f.top,h=n.offsetWidth-v,c=n.offsetHeight-y;return(h||c)&&(l=i(n),h-=ht(l,"x"),c-=ht(l,"y"),f.width-=h,f.height-=c),t(f)}function d(n,r){var y=o(),w=r.nodeName==="HTML",f=k(n),p=k(r),l=e(n),s=i(r),a=parseFloat(s.borderTopWidth,10),v=parseFloat(s.borderLeftWidth,10),u=t({top:f.top-p.top-a,left:f.left-p.left-v,width:f.width,height:f.height}),h,c;return u.marginTop=0,u.marginLeft=0,!y&&w&&(h=parseFloat(s.marginTop,10),c=parseFloat(s.marginLeft,10),u.top-=a-h,u.bottom-=a-h,u.left-=v-c,u.right-=v-c,u.marginTop=h,u.marginLeft=c),(y?r.contains(l):r===l&&l.nodeName!=="BODY")&&(u=ei(u,r)),u}function hi(n){var i=n.ownerDocument.documentElement,r=d(n,i),f=Math.max(i.clientWidth,window.innerWidth||0),e=Math.max(i.clientHeight,window.innerHeight||0),o=u(i),s=u(i,"left"),h={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:f,height:e};return t(h)}function at(n){var t=n.nodeName;return t==="BODY"||t==="HTML"?!1:i(n,"position")==="fixed"?!0:at(w(n))}function g(n,t,i,r){var u={top:0,left:0},s=c(n,t),o,f;if(r==="viewport")u=hi(s);else if(o=void 0,r==="scrollParent"?(o=e(w(t)),o.nodeName==="BODY"&&(o=n.ownerDocument.documentElement)):o=r==="window"?n.ownerDocument.documentElement:r,f=d(o,s),o.nodeName!=="HTML"||at(s))u=f;else{var h=lt(),l=h.height,a=h.width;u.top+=f.top-f.marginTop;u.bottom=l+f.top;u.left+=f.left-f.marginLeft;u.right=a+f.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function ci(n){var t=n.width,i=n.height;return t*i}function vt(t,i,r,u,f){var l=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var e=g(r,u,l,f),o={top:{width:e.width,height:i.top-e.top},right:{width:e.right-i.right,height:e.height},bottom:{width:e.width,height:e.bottom-i.bottom},left:{width:i.left-e.left,height:e.height}},s=Object.keys(o).map(function(t){return n({key:t},o[t],{area:ci(o[t])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=h.length>0?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function yt(n,t,i){var r=c(t,i);return d(i,r)}function pt(n){var t=getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function a(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function wt(n,t,i){i=i.split("-")[0];var r=pt(n),e={width:r.width,height:r.height},u=["right","left"].indexOf(i)!==-1,o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[a(f)],e}function s(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function li(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=s(n,function(n){return n[t]===i});return n.indexOf(r)}function bt(n,i,r){var u=r===undefined?n:n.slice(0,li(n,"name",r));return u.forEach(function(n){n["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n["function"]||n.fn;n.enabled&&st(r)&&(i.offsets.popper=t(i.offsets.popper),i.offsets.reference=t(i.offsets.reference),i=r(i,n))}),i}function ai(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};if(n.offsets.reference=yt(this.state,this.popper,this.reference),n.placement=vt(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.offsets.popper=wt(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position="absolute",n=bt(this.modifiers,n),this.state.isCreated)this.options.onUpdate(n);else{this.state.isCreated=!0;this.options.onCreate(n)}}}function kt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function dt(n){for(var u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),i,r,t=0;t<u.length-1;t++)if(i=u[t],r=i?""+i+f:n,typeof document.body.style[r]!="undefined")return r;return null}function vi(){return this.state.isDestroyed=!0,kt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[dt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function gt(n){var t=n.ownerDocument;return t?t.defaultView:window}function ni(n,t,i,r){var f=n.nodeName==="BODY",u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||ni(e(u.parentNode),t,i,r);r.push(u)}function yi(n,t,i,r){i.updateBound=r;gt(n).addEventListener("resize",i.updateBound,{passive:!0});var u=e(n);return ni(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function pi(){this.state.eventsEnabled||(this.state=yi(this.reference,this.options,this.state,this.scheduleUpdate))}function wi(n,t){return gt(n).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function bi(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=wi(this.reference,this.state))}function nt(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function tt(n,t){Object.keys(t).forEach(function(i){var r="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&nt(t[i])&&(r="px");n.style[i]=t[i]+r})}function ki(n,t){Object.keys(t).forEach(function(i){var r=t[i];r!==!1?n.setAttribute(i,t[i]):n.removeAttribute(i)})}function di(n){return tt(n.instance.popper,n.styles),ki(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&tt(n.arrowElement,n.arrowStyles),n}function gi(n,t,i,r,u){var f=yt(u,t,n),e=vt(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),tt(t,{position:"absolute"}),i}function nr(t,i){var d=i.x,g=i.y,f=t.offsets.popper,c=s(t.instance.modifiers,function(n){return n.name==="applyStyle"}).gpuAcceleration,p,w,b;c!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var nt=c!==undefined?c:i.gpuAcceleration,tt=r(t.instance.popper),v=k(tt),u={position:f.position},h={left:Math.floor(f.left),top:Math.floor(f.top),bottom:Math.floor(f.bottom),right:Math.floor(f.right)},e=d==="bottom"?"top":"bottom",o=g==="right"?"left":"right",y=dt("transform"),l=void 0,a=void 0;return a=e==="bottom"?-v.height+h.bottom:h.top,l=o==="right"?-v.width+h.right:h.left,nt&&y?(u[y]="translate3d("+l+"px, "+a+"px, 0)",u[e]=0,u[o]=0,u.willChange="transform"):(p=e==="bottom"?-1:1,w=o==="right"?-1:1,u[e]=a*p,u[o]=l*w,u.willChange=e+", "+o),b={"x-placement":t.placement},t.attributes=n({},b,t.attributes),t.styles=n({},u,t.styles),t.arrowStyles=n({},t.offsets.arrow,t.arrowStyles),t}function ti(n,t,i){var u=s(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function tr(n,r){var c,e;if(!ti(n.instance.modifiers,"arrow","keepTogether"))return n;if(e=r.element,typeof e=="string"){if(e=n.instance.popper.querySelector(e),!e)return n}else if(!n.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var k=n.placement.split("-")[0],w=n.offsets,h=w.popper,o=w.reference,l=["left","right"].indexOf(k)!==-1,v=l?"height":"width",y=l?"Top":"Left",u=y.toLowerCase(),d=l?"left":"top",a=l?"bottom":"right",s=pt(e)[v];o[a]-s<h[u]&&(n.offsets.popper[u]-=h[u]-(o[a]-s));o[u]+s>h[a]&&(n.offsets.popper[u]+=o[u]+s-h[a]);n.offsets.popper=t(n.offsets.popper);var g=o[u]+o[v]/2-s/2,b=i(n.instance.popper),nt=parseFloat(b["margin"+y],10),tt=parseFloat(b["border"+y+"Width"],10),p=g-n.offsets.popper[u]-nt-tt;return p=Math.max(Math.min(h[v]-s,p),0),n.arrowElement=e,n.offsets.arrow=(c={},f(c,u,Math.round(p)),f(c,d,""),c),n}function ir(n){return n==="end"?"start":n==="start"?"end":n}function ii(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,t=v.indexOf(n),i=v.slice(t+1).concat(v.slice(0,t));return r?i.reverse():i}function rr(t,i){if(kt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var e=g(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement),r=t.placement.split("-")[0],o=a(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case y.FLIP:f=[r,o];break;case y.CLOCKWISE:f=ii(r);break;case y.COUNTERCLOCKWISE:f=ii(r,!0);break;default:f=i.behavior}return f.forEach(function(s,h){if(r!==s||f.length===h+1)return t;r=t.placement.split("-")[0];o=a(r);var l=t.offsets.popper,v=t.offsets.reference,c=Math.floor,p=r==="left"&&c(l.right)>c(v.left)||r==="right"&&c(l.left)<c(v.right)||r==="top"&&c(l.bottom)>c(v.top)||r==="bottom"&&c(l.top)<c(v.bottom),w=c(l.left)<c(e.left),b=c(l.right)>c(e.right),k=c(l.top)<c(e.top),d=c(l.bottom)>c(e.bottom),g=r==="left"&&w||r==="right"&&b||r==="top"&&k||r==="bottom"&&d,y=["top","bottom"].indexOf(r)!==-1,nt=!!i.flipVariations&&(y&&u==="start"&&w||y&&u==="end"&&b||!y&&u==="start"&&k||!y&&u==="end"&&d);(p||g||nt)&&(t.flipped=!0,(p||g)&&(r=f[h+1]),nt&&(u=ir(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,wt(t.instance.popper,t.offsets.reference,t.placement)),t=bt(t.instance.modifiers,t,"flip"))}),t}function ur(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=["top","bottom"].indexOf(s)!==-1,e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}function fr(n,i,r,u){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),e=+h[1],f=h[2],o,c,s;if(!e)return n;if(f.indexOf("%")===0){o=void 0;switch(f){case"%p":o=r;break;case"%":case"%r":default:o=u}return c=t(o),c[i]/100*e}return f==="vh"||f==="vw"?(s=void 0,s=f==="vh"?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),s/100*e):e}function er(n,t,i,r){var h=[0,0],c=["right","left"].indexOf(r)!==-1,u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(s(u,function(n){return n.search(/,|\s/)!==-1})),o,e;return u[f]&&u[f].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=f!==-1?[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))]:[u],e=e.map(function(n,r){var f=(r===1?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return n[n.length-1]===""&&["+","-"].indexOf(t)!==-1?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return fr(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){nt(i)&&(h[t]+=i*(n[r-1]==="-"?-1:1))})}),h}function or(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=nt(+f)?[+f,0]:er(f,i,s,u),u==="left"?(i.top+=r[0],i.left-=r[1]):u==="right"?(i.top+=r[0],i.left+=r[1]):u==="top"?(i.left+=r[0],i.top-=r[1]):u==="bottom"&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}function sr(t,i){var o=i.boundariesElement||r(t.instance.popper),e;t.instance.reference===o&&(o=r(o));e=g(t.instance.popper,t.instance.reference,i.padding,o);i.boundaries=e;var s=i.priority,u=t.offsets.popper,h={primary:function(n){var t=u[n];return u[n]<e[n]&&!i.escapeWithReference&&(t=Math.max(u[n],e[n])),f({},n,t)},secondary:function(n){var t=n==="right"?"left":"top",r=u[t];return u[n]>e[n]&&!i.escapeWithReference&&(r=Math.min(u[t],e[n]-(n==="right"?u.width:u.height))),f({},t,r)}};return s.forEach(function(t){var i=["left","top"].indexOf(t)!==-1?"primary":"secondary";u=n({},u,h[i](t))}),t.offsets.popper=u,t}function hr(t){var u=t.placement,l=u.split("-")[0],e=u.split("-")[1];if(e){var o=t.offsets,r=o.reference,s=o.popper,h=["bottom","top"].indexOf(l)!==-1,i=h?"left":"top",c=h?"width":"height",a={start:f({},i,r[i]),end:f({},i,r[i]+r[c]-s[c])};t.offsets.popper=n({},s,a[e])}return t}function cr(n){if(!ti(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=s(n.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(n.hide===!0)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(n.hide===!1)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}function lr(n){var u=n.placement,i=u.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=["left","right"].indexOf(i)!==-1,s=["top","left"].indexOf(i)===-1;return r[e?"left":"top"]=o[i]-(s?r[e?"width":"height"]:0),n.placement=a(u),n.offsets.popper=t(r),n}for(var rt=typeof window!="undefined"&&typeof document!="undefined",ut=["Edge","Trident","Firefox"],ft=0,et,ot,l,o,it,v,y,h=0;h<ut.length;h+=1)if(rt&&navigator.userAgent.indexOf(ut[h])>=0){ft=1;break}et=rt&&window.Promise;ot=et?ri:ui;l=undefined;o=function(){return l===undefined&&(l=navigator.appVersion.indexOf("MSIE 10")!==-1),l};var oi=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},si=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),f=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},n=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n};it=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];v=it.slice(3);y={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};var ar={shift:{order:100,enabled:!0,fn:hr},offset:{order:200,enabled:!0,fn:or,offset:0},preventOverflow:{order:300,enabled:!0,fn:sr,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ur},arrow:{order:500,enabled:!0,fn:tr,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:rr,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:lr},hide:{order:800,enabled:!0,fn:cr},computeStyle:{order:850,enabled:!0,fn:nr,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:di,onLoad:gi,gpuAcceleration:undefined}},vr={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ar},p=function(){function t(i,r){var u=this,f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},e;oi(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=ot(this.update.bind(this));this.options=n({},t.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=i&&i.jquery?i[0]:i;this.popper=r&&r.jquery?r[0]:r;this.options.modifiers={};Object.keys(n({},t.Defaults.modifiers,f.modifiers)).forEach(function(i){u.options.modifiers[i]=n({},t.Defaults.modifiers[i]||{},f.modifiers?f.modifiers[i]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},u.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){if(n.enabled&&st(n.onLoad))n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return si(t,[{key:"update",value:function(){return ai.call(this)}},{key:"destroy",value:function(){return vi.call(this)}},{key:"enableEventListeners",value:function(){return pi.call(this)}},{key:"disableEventListeners",value:function(){return bi.call(this)}}]),t}();return p.Utils=(typeof window!="undefined"?window:global).PopperUtils,p.placements=it,p.Defaults=vr,p});var bootstrap=function(n,t,i){"use strict";function e(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function o(n,t,i){return t&&e(n.prototype,t),i&&e(n,i),n}function s(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n;n.__proto__=t}var r,u;t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;r=function(){function f(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function e(){return{bindType:i.end,delegateType:i.end,handle:function(n){return t(n.target).is(this)?n.handleObj.handler.apply(this,arguments):undefined}}}function o(){var t,n;if(window.QUnit)return!1;t=document.createElement("bootstrap");for(n in r)if(typeof t.style[n]!="undefined")return{end:r[n]};return!1}function s(i){var u=this,r=!1;t(this).one(n.TRANSITION_END,function(){r=!0});return setTimeout(function(){r||n.triggerTransitionEnd(u)},i),this}function h(){i=o();t.fn.emulateTransitionEnd=s;n.supportsTransitionEnd()&&(t.event.special[n.TRANSITION_END]=e())}var i=!1,u=1e6,r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(Math.random()*u);while(document.getElementById(n));return n},getSelectorFromElement:function(n){var i=n.getAttribute("data-target"),r;i&&i!=="#"||(i=n.getAttribute("href")||"");try{return r=t(document).find(i),r.length>0?i:null}catch(u){return null}},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(i.end)},supportsTransitionEnd:function(){return Boolean(i)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(t,i,r){var u;for(u in r)if(Object.prototype.hasOwnProperty.call(r,u)){var o=r[u],e=i[u],s=e&&n.isElement(e)?"element":f(e);if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+": "+('Option "'+u+'" provided type "'+s+'" ')+('but expected type "'+o+'".'));}}};return h(),n}(t);u=o;var h=s,c=function(){var i="alert",h="4.0.0-beta.2",f="bs.alert",e="."+f,c=t.fn[i],l=150,o={CLOSE:"close"+e,CLOSED:"closed"+e,CLICK_DATA_API:"click"+e+".data-api"},s={ALERT:"alert",FADE:"fade",SHOW:"show"},n=function(){function n(n){this._element=n}var i=n.prototype;return i.close=function(n){n=n||this._element;var t=this._getRootElement(n),i=this._triggerCloseEvent(t);i.isDefaultPrevented()||this._removeElement(t)},i.dispose=function(){t.removeData(this._element,f);this._element=null},i._getRootElement=function(n){var u=r.getSelectorFromElement(n),i=!1;return u&&(i=t(u)[0]),i||(i=t(n).closest("."+s.ALERT)[0]),i},i._triggerCloseEvent=function(n){var i=t.Event(o.CLOSE);return t(n).trigger(i),i},i._removeElement=function(n){var i=this;if(t(n).removeClass(s.SHOW),!r.supportsTransitionEnd()||!t(n).hasClass(s.FADE)){this._destroyElement(n);return}t(n).one(r.TRANSITION_END,function(t){return i._destroyElement(n,t)}).emulateTransitionEnd(l)},i._destroyElement=function(n){t(n).detach().trigger(o.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data(f);r||(r=new n(this),u.data(f,r));i==="close"&&r[i](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},u(n,null,[{key:"VERSION",get:function(){return h}}]),n}();t(document).on(o.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,n._handleDismiss(new n));return t.fn[i]=n._jQueryInterface,t.fn[i].Constructor=n,t.fn[i].noConflict=function(){return t.fn[i]=c,n._jQueryInterface},n}(t),l=function(){var r="button",c="4.0.0-beta.2",e="bs.button",o="."+e,s=".data-api",l=t.fn[r],n={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},i={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},h={CLICK_DATA_API:"click"+o+s,FOCUS_BLUR_DATA_API:"focus"+o+s+" "+("blur"+o+s)},f=function(){function r(n){this._element=n}var f=r.prototype;return f.toggle=function(){var f=!0,o=!0,u=t(this._element).closest(i.DATA_TOGGLE)[0],r,e;if(u&&(r=t(this._element).find(i.INPUT)[0],r)){if(r.type==="radio"&&(r.checked&&t(this._element).hasClass(n.ACTIVE)?f=!1:(e=t(u).find(i.ACTIVE)[0],e&&t(e).removeClass(n.ACTIVE))),f){if(r.hasAttribute("disabled")||u.hasAttribute("disabled")||r.classList.contains("disabled")||u.classList.contains("disabled"))return;r.checked=!t(this._element).hasClass(n.ACTIVE);t(r).trigger("change")}r.focus();o=!1}o&&this._element.setAttribute("aria-pressed",!t(this._element).hasClass(n.ACTIVE));f&&t(this._element).toggleClass(n.ACTIVE)},f.dispose=function(){t.removeData(this._element,e);this._element=null},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(e);i||(i=new r(this),t(this).data(e,i));n==="toggle"&&i[n]()})},u(r,null,[{key:"VERSION",get:function(){return c}}]),r}();t(document).on(h.CLICK_DATA_API,i.DATA_TOGGLE_CARROT,function(r){r.preventDefault();var u=r.target;t(u).hasClass(n.BUTTON)||(u=t(u).closest(i.BUTTON));f._jQueryInterface.call(t(u),"toggle")}).on(h.FOCUS_BLUR_DATA_API,i.DATA_TOGGLE_CARROT,function(r){var u=t(r.target).closest(i.BUTTON)[0];t(u).toggleClass(n.FOCUS,/^focus(in)?$/.test(r.type))});return t.fn[r]=f._jQueryInterface,t.fn[r].Constructor=f,t.fn[r].noConflict=function(){return t.fn[r]=l,f._jQueryInterface},f}(t),a=function(){var s="carousel",v="4.0.0-beta.2",c="bs.carousel",f="."+c,a=".data-api",y=t.fn[s],p=600,w=37,b=39,k=500,l={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},d={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},i={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},e={SLIDE:"slide"+f,SLID:"slid"+f,KEYDOWN:"keydown"+f,MOUSEENTER:"mouseenter"+f,MOUSELEAVE:"mouseleave"+f,TOUCHEND:"touchend"+f,LOAD_DATA_API:"load"+f+a,CLICK_DATA_API:"click"+f+a},n={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},o={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},h=function(){function a(n,i){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this._config=this._getConfig(i);this._element=t(n)[0];this._indicatorsElement=t(this._element).find(o.INDICATORS)[0];this._addEventListeners()}var h=a.prototype;return h.next=function(){this._isSliding||this._slide(i.NEXT)},h.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&t(this._element).css("visibility")!=="hidden"&&this.next()},h.prev=function(){this._isSliding||this._slide(i.PREV)},h.pause=function(n){n||(this._isPaused=!0);t(this._element).find(o.NEXT_PREV)[0]&&r.supportsTransitionEnd()&&(r.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},h.cycle=function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},h.to=function(n){var f=this,r,u;if(this._activeElement=t(this._element).find(o.ACTIVE_ITEM)[0],r=this._getItemIndex(this._activeElement),!(n>this._items.length-1)&&!(n<0)){if(this._isSliding){t(this._element).one(e.SLID,function(){return f.to(n)});return}if(r===n){this.pause();this.cycle();return}u=n>r?i.NEXT:i.PREV;this._slide(u,this._items[n])}},h.dispose=function(){t(this._element).off(f);t.removeData(this._element,c);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},h._getConfig=function(n){return n=t.extend({},l,n),r.typeCheckConfig(s,n,d),n},h._addEventListeners=function(){var n=this;if(this._config.keyboard)t(this._element).on(e.KEYDOWN,function(t){return n._keydown(t)});if(this._config.pause==="hover"){t(this._element).on(e.MOUSEENTER,function(t){return n.pause(t)}).on(e.MOUSELEAVE,function(t){return n.cycle(t)});if("ontouchstart"in document.documentElement)t(this._element).on(e.TOUCHEND,function(){n.pause();n.touchTimeout&&clearTimeout(n.touchTimeout);n.touchTimeout=setTimeout(function(t){return n.cycle(t)},k+n._config.interval)})}},h._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case w:n.preventDefault();this.prev();break;case b:n.preventDefault();this.next();break;default:return}},h._getItemIndex=function(n){return this._items=t.makeArray(t(n).parent().find(o.ITEM)),this._items.indexOf(n)},h._getItemByDirection=function(n,t){var e=n===i.NEXT,o=n===i.PREV,r=this._getItemIndex(t),s=this._items.length-1,h=o&&r===0||e&&r===s,f,u;return h&&!this._config.wrap?t:(f=n===i.PREV?-1:1,u=(r+f)%this._items.length,u===-1?this._items[this._items.length-1]:this._items[u])},h._triggerSlideEvent=function(n,i){var u=this._getItemIndex(n),f=this._getItemIndex(t(this._element).find(o.ACTIVE_ITEM)[0]),r=t.Event(e.SLIDE,{relatedTarget:n,direction:i,from:f,to:u});return t(this._element).trigger(r),r},h._setActiveIndicatorElement=function(i){if(this._indicatorsElement){t(this._indicatorsElement).find(o.ACTIVE).removeClass(n.ACTIVE);var r=this._indicatorsElement.children[this._getItemIndex(i)];r&&t(r).addClass(n.ACTIVE)}},h._slide=function(u,f){var y=this,h=t(this._element).find(o.ACTIVE_ITEM)[0],k=this._getItemIndex(h),s=f||h&&this._getItemByDirection(u,h),d=this._getItemIndex(s),w=Boolean(this._interval),c,l,a,b,v;if(u===i.NEXT?(c=n.LEFT,l=n.NEXT,a=i.LEFT):(c=n.RIGHT,l=n.PREV,a=i.RIGHT),s&&t(s).hasClass(n.ACTIVE)){this._isSliding=!1;return}(b=this._triggerSlideEvent(s,a),b.isDefaultPrevented())||h&&s&&(this._isSliding=!0,w&&this.pause(),this._setActiveIndicatorElement(s),v=t.Event(e.SLID,{relatedTarget:s,direction:a,from:k,to:d}),r.supportsTransitionEnd()&&t(this._element).hasClass(n.SLIDE)?(t(s).addClass(l),r.reflow(s),t(h).addClass(c),t(s).addClass(c),t(h).one(r.TRANSITION_END,function(){t(s).removeClass(c+" "+l).addClass(n.ACTIVE);t(h).removeClass(n.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return t(y._element).trigger(v)},0)}).emulateTransitionEnd(p)):(t(h).removeClass(n.ACTIVE),t(s).addClass(n.ACTIVE),this._isSliding=!1,t(this._element).trigger(v)),w&&this.cycle())},a._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(c),u=t.extend({},l,t(this).data()),r;if(typeof n=="object"&&t.extend(u,n),r=typeof n=="string"?n:u.slide,i||(i=new a(this,u),t(this).data(c,i)),typeof n=="number")i.to(n);else if(typeof r=="string"){if(typeof i[r]=="undefined")throw new Error('No method named "'+r+'"');i[r]()}else u.interval&&(i.pause(),i.cycle())})},a._dataApiClickHandler=function(i){var o=r.getSelectorFromElement(this),u,e,f;o&&(u=t(o)[0],u&&t(u).hasClass(n.CAROUSEL))&&(e=t.extend({},t(u).data(),t(this).data()),f=this.getAttribute("data-slide-to"),f&&(e.interval=!1),a._jQueryInterface.call(t(u),e),f&&t(u).data(c).to(f),i.preventDefault())},u(a,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return l}}]),a}();t(document).on(e.CLICK_DATA_API,o.DATA_SLIDE,h._dataApiClickHandler);t(window).on(e.LOAD_DATA_API,function(){t(o.DATA_RIDE).each(function(){var n=t(this);h._jQueryInterface.call(n,n.data())})});return t.fn[s]=h._jQueryInterface,t.fn[s].Constructor=h,t.fn[s].noConflict=function(){return t.fn[s]=y,h._jQueryInterface},h}(t),v=function(){var f="collapse",v="4.0.0-beta.2",i="bs.collapse",e="."+i,y=t.fn[f],a=600,h={toggle:!0,parent:""},p={toggle:"boolean",parent:"(string|element)"},o={SHOW:"show"+e,SHOWN:"shown"+e,HIDE:"hide"+e,HIDDEN:"hidden"+e,CLICK_DATA_API:"click"+e+".data-api"},n={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},c={WIDTH:"width",HEIGHT:"height"},l={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},s=function(){function s(n,i){var f,u,e,o;for(this._isTransitioning=!1,this._element=n,this._config=this._getConfig(i),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+n.id+'"],'+('[data-toggle="collapse"][data-target="#'+n.id+'"]'))),f=t(l.DATA_TOGGLE),u=0;u<f.length;u++)e=f[u],o=r.getSelectorFromElement(e),o!==null&&t(o).filter(n).length>0&&this._triggerArray.push(e);this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var e=s.prototype;return e.toggle=function(){t(this._element).hasClass(n.SHOW)?this.hide():this.show()},e.show=function(){var e=this,u,h,c,f,v,y,p;if(!this._isTransitioning&&!t(this._element).hasClass(n.SHOW)&&(this._parent&&(u=t.makeArray(t(this._parent).children().children(l.ACTIVES)),u.length||(u=null)),!u||(h=t(u).data(i),!h||!h._isTransitioning))&&(c=t.Event(o.SHOW),t(this._element).trigger(c),!c.isDefaultPrevented())){if(u&&(s._jQueryInterface.call(t(u),"hide"),h||t(u).data(i,null)),f=this._getDimension(),t(this._element).removeClass(n.COLLAPSE).addClass(n.COLLAPSING),this._element.style[f]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(n.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),v=function(){t(e._element).removeClass(n.COLLAPSING).addClass(n.COLLAPSE).addClass(n.SHOW);e._element.style[f]="";e.setTransitioning(!1);t(e._element).trigger(o.SHOWN)},!r.supportsTransitionEnd()){v();return}y=f[0].toUpperCase()+f.slice(1);p="scroll"+y;t(this._element).one(r.TRANSITION_END,v).emulateTransitionEnd(a);this._element.style[f]=this._element[p]+"px"}},e.hide=function(){var c=this,f,i,u,e,s,l,h;if(!this._isTransitioning&&t(this._element).hasClass(n.SHOW)&&(f=t.Event(o.HIDE),t(this._element).trigger(f),!f.isDefaultPrevented())){if(i=this._getDimension(),this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",r.reflow(this._element),t(this._element).addClass(n.COLLAPSING).removeClass(n.COLLAPSE).removeClass(n.SHOW),this._triggerArray.length)for(u=0;u<this._triggerArray.length;u++)e=this._triggerArray[u],s=r.getSelectorFromElement(e),s!==null&&(l=t(s),l.hasClass(n.SHOW)||t(e).addClass(n.COLLAPSED).attr("aria-expanded",!1));if(this.setTransitioning(!0),h=function(){c.setTransitioning(!1);t(c._element).removeClass(n.COLLAPSING).addClass(n.COLLAPSE).trigger(o.HIDDEN)},this._element.style[i]="",!r.supportsTransitionEnd()){h();return}t(this._element).one(r.TRANSITION_END,h).emulateTransitionEnd(a)}},e.setTransitioning=function(n){this._isTransitioning=n},e.dispose=function(){t.removeData(this._element,i);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},e._getConfig=function(n){return n=t.extend({},h,n),n.toggle=Boolean(n.toggle),r.typeCheckConfig(f,n,p),n},e._getDimension=function(){var n=t(this._element).hasClass(c.WIDTH);return n?c.WIDTH:c.HEIGHT},e._getParent=function(){var u=this,n=null,i;return r.isElement(this._config.parent)?(n=this._config.parent,typeof this._config.parent.jquery!="undefined"&&(n=this._config.parent[0])):n=t(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',t(n).find(i).each(function(n,t){u._addAriaAndCollapsedClass(s._getTargetFromElement(t),[t])}),n},e._addAriaAndCollapsedClass=function(i,r){if(i){var u=t(i).hasClass(n.SHOW);r.length&&t(r).toggleClass(n.COLLAPSED,!u).attr("aria-expanded",u)}},s._getTargetFromElement=function(n){var i=r.getSelectorFromElement(n);return i?t(i)[0]:null},s._jQueryInterface=function(n){return this.each(function(){var u=t(this),r=u.data(i),f=t.extend({},h,u.data(),typeof n=="object"&&n);if(!r&&f.toggle&&/show|hide/.test(n)&&(f.toggle=!1),r||(r=new s(this,f),u.data(i,r)),typeof n=="string"){if(typeof r[n]=="undefined")throw new Error('No method named "'+n+'"');r[n]()}})},u(s,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return h}}]),s}();t(document).on(o.CLICK_DATA_API,l.DATA_TOGGLE,function(n){n.currentTarget.tagName==="A"&&n.preventDefault();var u=t(this),f=r.getSelectorFromElement(this);t(f).each(function(){var n=t(this),r=n.data(i),f=r?"toggle":u.data();s._jQueryInterface.call(n,f)})});return t.fn[f]=s._jQueryInterface,t.fn[f].Constructor=s,t.fn[f].noConflict=function(){return t.fn[f]=y,s._jQueryInterface},s}(t),y=function(){if(typeof i=="undefined")throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var h="dropdown",k="4.0.0-beta.2",c="bs.dropdown",e="."+c,v=".data-api",d=t.fn[h],l=27,y=32,p=9,w=38,b=40,g=3,nt=new RegExp(w+"|"+b+"|"+l),f={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK:"click"+e,CLICK_DATA_API:"click"+e+v,KEYDOWN_DATA_API:"keydown"+e+v,KEYUP_DATA_API:"keyup"+e+v},n={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left"},o={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},a={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},tt={offset:0,flip:!0},it={offset:"(number|string|function)",flip:"boolean"},s=function(){function s(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var v=s.prototype;return v.toggle=function(){var r,c,u,e,h;if(!this._element.disabled&&!t(this._element).hasClass(n.DISABLED)&&(r=s._getParentFromElement(this._element),c=t(this._menu).hasClass(n.SHOW),s._clearMenus(),!c)&&(u={relatedTarget:this._element},e=t.Event(f.SHOW,u),t(r).trigger(e),!e.isDefaultPrevented())){if(h=this._element,t(r).hasClass(n.DROPUP)&&(t(this._menu).hasClass(n.MENULEFT)||t(this._menu).hasClass(n.MENURIGHT))&&(h=r),this._popper=new i(h,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!t(r).closest(o.NAVBAR_NAV).length)t("body").children().on("mouseover",null,t.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);t(this._menu).toggleClass(n.SHOW);t(r).toggleClass(n.SHOW).trigger(t.Event(f.SHOWN,u))}},v.dispose=function(){t.removeData(this._element,c);t(this._element).off(e);this._element=null;this._menu=null;this._popper!==null&&this._popper.destroy();this._popper=null},v.update=function(){this._inNavbar=this._detectNavbar();this._popper!==null&&this._popper.scheduleUpdate()},v._addEventListeners=function(){var n=this;t(this._element).on(f.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})},v._getConfig=function(n){return n=t.extend({},this.constructor.Default,t(this._element).data(),n),r.typeCheckConfig(h,n,this.constructor.DefaultType),n},v._getMenuElement=function(){if(!this._menu){var n=s._getParentFromElement(this._element);this._menu=t(n).find(o.MENU)[0]}return this._menu},v._getPlacement=function(){var r=t(this._element).parent(),i=a.BOTTOM;return r.hasClass(n.DROPUP)?(i=a.TOP,t(this._menu).hasClass(n.MENURIGHT)&&(i=a.TOPEND)):t(this._menu).hasClass(n.MENURIGHT)&&(i=a.BOTTOMEND),i},v._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},v._getPopperConfig=function(){var r=this,n={},i;return typeof this._config.offset=="function"?n.fn=function(n){return n.offsets=t.extend({},n.offsets,r._config.offset(n.offsets)||{}),n}:n.offset=this._config.offset,i={placement:this._getPlacement(),modifiers:{offset:n,flip:{enabled:this._config.flip}}},this._inNavbar&&(i.modifiers.applyStyle={enabled:!this._inNavbar}),i},s._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(c),r=typeof n=="object"?n:null;if(i||(i=new s(this,r),t(this).data(c,i)),typeof n=="string"){if(typeof i[n]=="undefined")throw new Error('No method named "'+n+'"');i[n]()}})},s._clearMenus=function(i){var u,r,v,h;if(!i||i.which!==g&&(i.type!=="keyup"||i.which===p))for(u=t.makeArray(t(o.DATA_TOGGLE)),r=0;r<u.length;r++){var e=s._getParentFromElement(u[r]),l=t(u[r]).data(c),a={relatedTarget:u[r]};l&&(v=l._menu,t(e).hasClass(n.SHOW))&&(i&&(i.type==="click"&&/input|textarea/i.test(i.target.tagName)||i.type==="keyup"&&i.which===p)&&t.contains(e,i.target)||(h=t.Event(f.HIDE,a),t(e).trigger(h),h.isDefaultPrevented())||("ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),u[r].setAttribute("aria-expanded","false"),t(v).removeClass(n.SHOW),t(e).removeClass(n.SHOW).trigger(t.Event(f.HIDDEN,a))))}},s._getParentFromElement=function(n){var i,u=r.getSelectorFromElement(n);return u&&(i=t(u)[0]),i||n.parentNode},s._dataApiKeydownHandler=function(i){var f,e,h,u,r;if(nt.test(i.which)&&(!/button/i.test(i.target.tagName)||i.which!==y)&&!/input|textarea/i.test(i.target.tagName)&&(i.preventDefault(),i.stopPropagation(),!this.disabled&&!t(this).hasClass(n.DISABLED))){if(f=s._getParentFromElement(this),e=t(f).hasClass(n.SHOW),!e&&(i.which!==l||i.which!==y)||e&&(i.which===l||i.which===y)){i.which===l&&(h=t(f).find(o.DATA_TOGGLE)[0],t(h).trigger("focus"));t(this).trigger("click");return}(u=t(f).find(o.VISIBLE_ITEMS).get(),u.length)&&(r=u.indexOf(i.target),i.which===w&&r>0&&r--,i.which===b&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())}},u(s,null,[{key:"VERSION",get:function(){return k}},{key:"Default",get:function(){return tt}},{key:"DefaultType",get:function(){return it}}]),s}();t(document).on(f.KEYDOWN_DATA_API,o.DATA_TOGGLE,s._dataApiKeydownHandler).on(f.KEYDOWN_DATA_API,o.MENU,s._dataApiKeydownHandler).on(f.CLICK_DATA_API+" "+f.KEYUP_DATA_API,s._clearMenus).on(f.CLICK_DATA_API,o.DATA_TOGGLE,function(n){n.preventDefault();n.stopPropagation();s._jQueryInterface.call(t(this),"toggle")}).on(f.CLICK_DATA_API,o.FORM_CHILD,function(n){n.stopPropagation()});return t.fn[h]=s._jQueryInterface,t.fn[h].Constructor=s,t.fn[h].noConflict=function(){return t.fn[h]=d,s._jQueryInterface},s}(t,i),p=function(){var o="modal",v="4.0.0-beta.2",s="bs.modal",f="."+s,y=t.fn[o],c=300,l=150,p=27,a={backdrop:!0,keyboard:!0,focus:!0,show:!0},w={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},n={HIDE:"hide"+f,HIDDEN:"hidden"+f,SHOW:"show"+f,SHOWN:"shown"+f,FOCUSIN:"focusin"+f,RESIZE:"resize"+f,CLICK_DISMISS:"click.dismiss"+f,KEYDOWN_DISMISS:"keydown.dismiss"+f,MOUSEUP_DISMISS:"mouseup.dismiss"+f,MOUSEDOWN_DISMISS:"mousedown.dismiss"+f,CLICK_DATA_API:"click"+f+".data-api"},i={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},e={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},h=function(){function y(n,i){this._config=this._getConfig(i);this._element=n;this._dialog=t(n).find(e.DIALOG)[0];this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._originalBodyPadding=0;this._scrollbarWidth=0}var h=y.prototype;return h.toggle=function(n){return this._isShown?this.hide():this.show(n)},h.show=function(u){var f=this,o;if(!this._isTransitioning&&!this._isShown&&(r.supportsTransitionEnd()&&t(this._element).hasClass(i.FADE)&&(this._isTransitioning=!0),o=t.Event(n.SHOW,{relatedTarget:u}),t(this._element).trigger(o),!this._isShown&&!o.isDefaultPrevented())){this._isShown=!0;this._checkScrollbar();this._setScrollbar();this._adjustDialog();t(document.body).addClass(i.OPEN);this._setEscapeEvent();this._setResizeEvent();t(this._element).on(n.CLICK_DISMISS,e.DATA_DISMISS,function(n){return f.hide(n)});t(this._dialog).on(n.MOUSEDOWN_DISMISS,function(){t(f._element).one(n.MOUSEUP_DISMISS,function(n){t(n.target).is(f._element)&&(f._ignoreBackdropClick=!0)})});this._showBackdrop(function(){return f._showElement(u)})}},h.hide=function(u){var o=this,f,e;(u&&u.preventDefault(),!this._isTransitioning&&this._isShown)&&(f=t.Event(n.HIDE),t(this._element).trigger(f),this._isShown&&!f.isDefaultPrevented())&&(this._isShown=!1,e=r.supportsTransitionEnd()&&t(this._element).hasClass(i.FADE),e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(n.FOCUSIN),t(this._element).removeClass(i.SHOW),t(this._element).off(n.CLICK_DISMISS),t(this._dialog).off(n.MOUSEDOWN_DISMISS),e?t(this._element).one(r.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(c):this._hideModal())},h.dispose=function(){t.removeData(this._element,s);t(window,document,this._element,this._backdrop).off(f);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null},h.handleUpdate=function(){this._adjustDialog()},h._getConfig=function(n){return n=t.extend({},a,n),r.typeCheckConfig(o,n,w),n},h._showElement=function(u){var f=this,o=r.supportsTransitionEnd()&&t(this._element).hasClass(i.FADE),s,e;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.scrollTop=0;o&&r.reflow(this._element);t(this._element).addClass(i.SHOW);this._config.focus&&this._enforceFocus();s=t.Event(n.SHOWN,{relatedTarget:u});e=function(){f._config.focus&&f._element.focus();f._isTransitioning=!1;t(f._element).trigger(s)};o?t(this._dialog).one(r.TRANSITION_END,e).emulateTransitionEnd(c):e()},h._enforceFocus=function(){var i=this;t(document).off(n.FOCUSIN).on(n.FOCUSIN,function(n){document===n.target||i._element===n.target||t(i._element).has(n.target).length||i._element.focus()})},h._setEscapeEvent=function(){var i=this;if(this._isShown&&this._config.keyboard)t(this._element).on(n.KEYDOWN_DISMISS,function(n){n.which===p&&(n.preventDefault(),i.hide())});else this._isShown||t(this._element).off(n.KEYDOWN_DISMISS)},h._setResizeEvent=function(){var i=this;if(this._isShown)t(window).on(n.RESIZE,function(n){return i.handleUpdate(n)});else t(window).off(n.RESIZE)},h._hideModal=function(){var r=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._isTransitioning=!1;this._showBackdrop(function(){t(document.body).removeClass(i.OPEN);r._resetAdjustments();r._resetScrollbar();t(r._element).trigger(n.HIDDEN)})},h._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},h._showBackdrop=function(u){var f=this,e=t(this._element).hasClass(i.FADE)?i.FADE:"",o,s;if(this._isShown&&this._config.backdrop){o=r.supportsTransitionEnd()&&e;this._backdrop=document.createElement("div");this._backdrop.className=i.BACKDROP;e&&t(this._backdrop).addClass(e);t(this._backdrop).appendTo(document.body);t(this._element).on(n.CLICK_DISMISS,function(n){if(f._ignoreBackdropClick){f._ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(f._config.backdrop==="static"?f._element.focus():f.hide())});if(o&&r.reflow(this._backdrop),t(this._backdrop).addClass(i.SHOW),!u)return;if(!o){u();return}t(this._backdrop).one(r.TRANSITION_END,u).emulateTransitionEnd(l)}else!this._isShown&&this._backdrop?(t(this._backdrop).removeClass(i.SHOW),s=function(){f._removeBackdrop();u&&u()},r.supportsTransitionEnd()&&t(this._element).hasClass(i.FADE)?t(this._backdrop).one(r.TRANSITION_END,s).emulateTransitionEnd(l):s()):u&&u()},h._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},h._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},h._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},h._setScrollbar=function(){var n=this,i,r;this._isBodyOverflowing&&(t(e.FIXED_CONTENT).each(function(i,r){var u=t(r)[0].style.paddingRight,f=t(r).css("padding-right");t(r).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),t(e.STICKY_CONTENT).each(function(i,r){var u=t(r)[0].style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),t(e.NAVBAR_TOGGLER).each(function(i,r){var u=t(r)[0].style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)+n._scrollbarWidth+"px")}),i=document.body.style.paddingRight,r=t("body").css("padding-right"),t("body").data("padding-right",i).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px"))},h._resetScrollbar=function(){t(e.FIXED_CONTENT).each(function(n,i){var r=t(i).data("padding-right");typeof r!="undefined"&&t(i).css("padding-right",r).removeData("padding-right")});t(e.STICKY_CONTENT+", "+e.NAVBAR_TOGGLER).each(function(n,i){var r=t(i).data("margin-right");typeof r!="undefined"&&t(i).css("margin-right",r).removeData("margin-right")});var n=t("body").data("padding-right");typeof n!="undefined"&&t("body").css("padding-right",n).removeData("padding-right")},h._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=i.SCROLLBAR_MEASURER,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},y._jQueryInterface=function(n,i){return this.each(function(){var r=t(this).data(s),u=t.extend({},y.Default,t(this).data(),typeof n=="object"&&n);if(r||(r=new y(this,u),t(this).data(s,r)),typeof n=="string"){if(typeof r[n]=="undefined")throw new Error('No method named "'+n+'"');r[n](i)}else u.show&&r.show(i)})},u(y,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return a}}]),y}();t(document).on(n.CLICK_DATA_API,e.DATA_TOGGLE,function(i){var f=this,u,e=r.getSelectorFromElement(this),o,c;e&&(u=t(e)[0]);o=t(u).data(s)?"toggle":t.extend({},t(u).data(),t(this).data());(this.tagName==="A"||this.tagName==="AREA")&&i.preventDefault();c=t(u).one(n.SHOW,function(i){if(!i.isDefaultPrevented())c.one(n.HIDDEN,function(){t(f).is(":visible")&&f.focus()})});h._jQueryInterface.call(t(u),o,this)});return t.fn[o]=h._jQueryInterface,t.fn[o].Constructor=h,t.fn[o].noConflict=function(){return t.fn[o]=y,h._jQueryInterface},h}(t),f=function(){if(typeof i=="undefined")throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var s="tooltip",v="4.0.0-beta.2",h="bs.tooltip",n="."+h,y=t.fn[s],p=150,l="bs-tooltip",w=new RegExp("(^|\\s)"+l+"\\S+","g"),b={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)"},k={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},d={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},o={SHOW:"show",OUT:"out"},g={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},f={FADE:"fade",SHOW:"show"},a={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},e={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},c=function(){function y(n,t){this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var c=y.prototype;return c.enable=function(){this._isEnabled=!0},c.disable=function(){this._isEnabled=!1},c.toggleEnabled=function(){this._isEnabled=!this._isEnabled},c.toggle=function(n){if(this._isEnabled)if(n){var r=this.constructor.DATA_KEY,i=t(n.currentTarget).data(r);i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(f.SHOW)){this._leave(null,this);return}this._enter(null,this)}},c.dispose=function(){clearTimeout(this._timeout);t.removeData(this.element,this.constructor.DATA_KEY);t(this.element).off(this.constructor.EVENT_KEY);t(this.element).closest(".modal").off("hide.bs.modal");this.tip&&t(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._popper!==null&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},c.show=function(){var n=this,e,l,u,s,v,h,p,c;if(t(this.element).css("display")==="none")throw new Error("Please use show on visible elements");if(e=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(e),l=t.contains(this.element.ownerDocument.documentElement,this.element),e.isDefaultPrevented()||!l)return;if(u=this.getTipElement(),s=r.getUID(this.constructor.NAME),u.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(u).addClass(f.FADE),v=typeof this.config.placement=="function"?this.config.placement.call(this,u,this.element):this.config.placement,h=this._getAttachment(v),this.addAttachmentClass(h),p=this.config.container===!1?document.body:t(this.config.container),t(u).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(u).appendTo(p),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i(this.element,u,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:a.ARROW}},onCreate:function(t){t.originalPlacement!==t.placement&&n._handlePopperPlacementChange(t)},onUpdate:function(t){n._handlePopperPlacementChange(t)}}),t(u).addClass(f.SHOW),"ontouchstart"in document.documentElement)t("body").children().on("mouseover",null,t.noop);c=function(){n.config.animation&&n._fixTransition();var i=n._hoverState;n._hoverState=null;t(n.element).trigger(n.constructor.Event.SHOWN);i===o.OUT&&n._leave(null,n)};r.supportsTransitionEnd()&&t(this.tip).hasClass(f.FADE)?t(this.tip).one(r.TRANSITION_END,c).emulateTransitionEnd(y._TRANSITION_DURATION):c()}},c.hide=function(n){var i=this,u=this.getTipElement(),s=t.Event(this.constructor.Event.HIDE),h=function(){i._hoverState!==o.SHOW&&u.parentNode&&u.parentNode.removeChild(u);i._cleanTipClass();i.element.removeAttribute("aria-describedby");t(i.element).trigger(i.constructor.Event.HIDDEN);i._popper!==null&&i._popper.destroy();n&&n()};(t(this.element).trigger(s),s.isDefaultPrevented())||(t(u).removeClass(f.SHOW),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger[e.CLICK]=!1,this._activeTrigger[e.FOCUS]=!1,this._activeTrigger[e.HOVER]=!1,r.supportsTransitionEnd()&&t(this.tip).hasClass(f.FADE)?t(u).one(r.TRANSITION_END,h).emulateTransitionEnd(p):h(),this._hoverState="")},c.update=function(){this._popper!==null&&this._popper.scheduleUpdate()},c.isWithContent=function(){return Boolean(this.getTitle())},c.addAttachmentClass=function(n){t(this.getTipElement()).addClass(l+"-"+n)},c.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},c.setContent=function(){var n=t(this.getTipElement());this.setElementContent(n.find(a.TOOLTIP_INNER),this.getTitle());n.removeClass(f.FADE+" "+f.SHOW)},c.setElementContent=function(n,i){var r=this.config.html;typeof i=="object"&&(i.nodeType||i.jquery)?r?t(i).parent().is(n)||n.empty().append(i):n.text(t(i).text()):n[r?"html":"text"](i)},c.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n=typeof this.config.title=="function"?this.config.title.call(this.element):this.config.title),n},c._getAttachment=function(n){return k[n.toUpperCase()]},c._setListeners=function(){var n=this,i=this.config.trigger.split(" ");i.forEach(function(i){if(i==="click")t(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(i!==e.MANUAL){var r=i===e.HOVER?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u=i===e.HOVER?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;t(n.element).on(r,n.config.selector,function(t){return n._enter(t)}).on(u,n.config.selector,function(t){return n._leave(t)})}t(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},c._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||n!=="string")&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},c._enter=function(n,i){var r=this.constructor.DATA_KEY;if(i=i||t(n.currentTarget).data(r),i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i)),n&&(i._activeTrigger[n.type==="focusin"?e.FOCUS:e.HOVER]=!0),t(i.getTipElement()).hasClass(f.SHOW)||i._hoverState===o.SHOW){i._hoverState=o.SHOW;return}if(clearTimeout(i._timeout),i._hoverState=o.SHOW,!i.config.delay||!i.config.delay.show){i.show();return}i._timeout=setTimeout(function(){i._hoverState===o.SHOW&&i.show()},i.config.delay.show)},c._leave=function(n,i){var r=this.constructor.DATA_KEY;if(i=i||t(n.currentTarget).data(r),i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i)),n&&(i._activeTrigger[n.type==="focusout"?e.FOCUS:e.HOVER]=!1),!i._isWithActiveTrigger()){if(clearTimeout(i._timeout),i._hoverState=o.OUT,!i.config.delay||!i.config.delay.hide){i.hide();return}i._timeout=setTimeout(function(){i._hoverState===o.OUT&&i.hide()},i.config.delay.hide)}},c._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},c._getConfig=function(n){return n=t.extend({},this.constructor.Default,t(this.element).data(),n),typeof n.delay=="number"&&(n.delay={show:n.delay,hide:n.delay}),typeof n.title=="number"&&(n.title=n.title.toString()),typeof n.content=="number"&&(n.content=n.content.toString()),r.typeCheckConfig(s,n,this.constructor.DefaultType),n},c._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},c._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(w);n!==null&&n.length>0&&i.removeClass(n.join(""))},c._handlePopperPlacementChange=function(n){this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},c._fixTransition=function(){var n=this.getTipElement(),i=this.config.animation;n.getAttribute("x-placement")===null&&(t(n).removeClass(f.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},y._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(h),r=typeof n=="object"&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new y(this,r),t(this).data(h,i)),typeof n=="string")){if(typeof i[n]=="undefined")throw new Error('No method named "'+n+'"');i[n]()}})},u(y,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return h}},{key:"Event",get:function(){return g}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return b}}]),y}();return t.fn[s]=c._jQueryInterface,t.fn[s].Constructor=c,t.fn[s].noConflict=function(){return t.fn[s]=y,c._jQueryInterface},c}(t,i),w=function(){var i="popover",l="4.0.0-beta.2",r="bs.popover",n="."+r,a=t.fn[i],o="bs-popover",v=new RegExp("(^|\\s)"+o+"\\S+","g"),y=t.extend({},f.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-header"><\/h3><div class="popover-body"><\/div><\/div>'}),p=t.extend({},f.DefaultType,{content:"(string|element|function)"}),s={FADE:"fade",SHOW:"show"},c={TITLE:".popover-header",CONTENT:".popover-body"},w={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},e=function(f){function e(){return f.apply(this,arguments)||this}h(e,f);var a=e.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(n){t(this.getTipElement()).addClass(o+"-"+n)},a.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},a.setContent=function(){var n=t(this.getTipElement());this.setElementContent(n.find(c.TITLE),this.getTitle());this.setElementContent(n.find(c.CONTENT),this._getContent());n.removeClass(s.FADE+" "+s.SHOW)},a._getContent=function(){return this.element.getAttribute("data-content")||(typeof this.config.content=="function"?this.config.content.call(this.element):this.config.content)},a._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(v);n!==null&&n.length>0&&i.removeClass(n.join(""))},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(r),u=typeof n=="object"?n:null;if((i||!/destroy|hide/.test(n))&&(i||(i=new e(this,u),t(this).data(r,i)),typeof n=="string")){if(typeof i[n]=="undefined")throw new Error('No method named "'+n+'"');i[n]()}})},u(e,null,[{key:"VERSION",get:function(){return l}},{key:"Default",get:function(){return y}},{key:"NAME",get:function(){return i}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return w}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return p}}]),e}(f);return t.fn[i]=e._jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=function(){return t.fn[i]=a,e._jQueryInterface},e}(t),b=function(){var i="scrollspy",a="4.0.0-beta.2",o="bs.scrollspy",s="."+o,v=t.fn[i],l={offset:10,method:"auto",target:""},y={offset:"number",method:"string",target:"(string|element)"},h={ACTIVATE:"activate"+s,SCROLL:"scroll"+s,LOAD_DATA_API:"load"+s+".data-api"},f={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},n={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},c={OFFSET:"offset",POSITION:"position"},e=function(){function v(i,r){var u=this;this._element=i;this._scrollElement=i.tagName==="BODY"?window:i;this._config=this._getConfig(r);this._selector=this._config.target+" "+n.NAV_LINKS+","+(this._config.target+" "+n.LIST_ITEMS+",")+(this._config.target+" "+n.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;t(this._scrollElement).on(h.SCROLL,function(n){return u._process(n)});this.refresh();this._process()}var e=v.prototype;return e.refresh=function(){var n=this,f=this._scrollElement!==this._scrollElement.window?c.POSITION:c.OFFSET,i=this._config.method==="auto"?f:this._config.method,e=i===c.POSITION?this._getScrollTop():0,u;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();u=t.makeArray(t(this._selector));u.map(function(n){var u,f=r.getSelectorFromElement(n),o;return(f&&(u=t(f)[0]),u&&(o=u.getBoundingClientRect(),o.width||o.height))?[t(u)[i]().top+e,f]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n._offsets.push(t[0]);n._targets.push(t[1])})},e.dispose=function(){t.removeData(this._element,o);t(this._scrollElement).off(s);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},e._getConfig=function(n){if(n=t.extend({},l,n),typeof n.target!="string"){var u=t(n.target).attr("id");u||(u=r.getUID(i),t(n.target).attr("id",u));n.target="#"+u}return r.typeCheckConfig(i,n,y),n},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),f=this._config.offset+r-this._getOffsetHeight(),i,n,u;if(this._scrollHeight!==r&&this.refresh(),t>=f){i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}for(n=this._offsets.length;n--;)u=this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(typeof this._offsets[n+1]=="undefined"||t<this._offsets[n+1]),u&&this._activate(this._targets[n])},e._activate=function(i){var u,r;this._activeTarget=i;this._clear();u=this._selector.split(",");u=u.map(function(n){return n+'[data-target="'+i+'"],'+(n+'[href="'+i+'"]')});r=t(u.join(","));r.hasClass(f.DROPDOWN_ITEM)?(r.closest(n.DROPDOWN).find(n.DROPDOWN_TOGGLE).addClass(f.ACTIVE),r.addClass(f.ACTIVE)):(r.addClass(f.ACTIVE),r.parents(n.NAV_LIST_GROUP).prev(n.NAV_LINKS+", "+n.LIST_ITEMS).addClass(f.ACTIVE),r.parents(n.NAV_LIST_GROUP).prev(n.NAV_ITEMS).children(n.NAV_LINKS).addClass(f.ACTIVE));t(this._scrollElement).trigger(h.ACTIVATE,{relatedTarget:i})},e._clear=function(){t(this._selector).filter(n.ACTIVE).removeClass(f.ACTIVE)},v._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(o),r=typeof n=="object"&&n;if(i||(i=new v(this,r),t(this).data(o,i)),typeof n=="string"){if(typeof i[n]=="undefined")throw new Error('No method named "'+n+'"');i[n]()}})},u(v,null,[{key:"VERSION",get:function(){return a}},{key:"Default",get:function(){return l}}]),v}();t(window).on(h.LOAD_DATA_API,function(){for(var u=t.makeArray(t(n.DATA_SPY)),r,i=u.length;i--;)r=t(u[i]),e._jQueryInterface.call(r,r.data())});return t.fn[i]=e._jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=function(){return t.fn[i]=v,e._jQueryInterface},e}(t),k=function(){var f="tab",c="4.0.0-beta.2",h="bs.tab",e="."+h,l=t.fn[f],a=150,o={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK_DATA_API:"click"+e+".data-api"},n={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},i={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},s=function(){function f(n){this._element=n}var e=f.prototype;return e.show=function(){var a=this,e,u,f,s,v,h,c,l;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(n.ACTIVE)||t(this._element).hasClass(n.DISABLED)||(f=t(this._element).closest(i.NAV_LIST_GROUP)[0],s=r.getSelectorFromElement(this._element),f&&(v=f.nodeName==="UL"?i.ACTIVE_UL:i.ACTIVE,u=t.makeArray(t(f).find(v)),u=u[u.length-1]),h=t.Event(o.HIDE,{relatedTarget:this._element}),c=t.Event(o.SHOW,{relatedTarget:u}),u&&t(u).trigger(h),t(this._element).trigger(c),c.isDefaultPrevented()||h.isDefaultPrevented())||(s&&(e=t(s)[0]),this._activate(this._element,f),l=function(){var n=t.Event(o.HIDDEN,{relatedTarget:a._element}),i=t.Event(o.SHOWN,{relatedTarget:u});t(u).trigger(n);t(a._element).trigger(i)},e?this._activate(e,e.parentNode,l):l())},e.dispose=function(){t.removeData(this._element,h);this._element=null},e._activate=function(u,f,e){var c=this,l=f.nodeName==="UL"?t(f).find(i.ACTIVE_UL):t(f).children(i.ACTIVE);var o=l[0],s=e&&r.supportsTransitionEnd()&&o&&t(o).hasClass(n.FADE),h=function(){return c._transitionComplete(u,o,s,e)};o&&s?t(o).one(r.TRANSITION_END,h).emulateTransitionEnd(a):h();o&&t(o).removeClass(n.SHOW)},e._transitionComplete=function(u,f,e,o){var s,h;f&&(t(f).removeClass(n.ACTIVE),s=t(f.parentNode).find(i.DROPDOWN_ACTIVE_CHILD)[0],s&&t(s).removeClass(n.ACTIVE),f.getAttribute("role")==="tab"&&f.setAttribute("aria-selected",!1));t(u).addClass(n.ACTIVE);u.getAttribute("role")==="tab"&&u.setAttribute("aria-selected",!0);e?(r.reflow(u),t(u).addClass(n.SHOW)):t(u).removeClass(n.FADE);u.parentNode&&t(u.parentNode).hasClass(n.DROPDOWN_MENU)&&(h=t(u).closest(i.DROPDOWN)[0],h&&t(h).find(i.DROPDOWN_TOGGLE).addClass(n.ACTIVE),u.setAttribute("aria-expanded",!0));o&&o()},f._jQueryInterface=function(n){return this.each(function(){var r=t(this),i=r.data(h);if(i||(i=new f(this),r.data(h,i)),typeof n=="string"){if(typeof i[n]=="undefined")throw new Error('No method named "'+n+'"');i[n]()}})},u(f,null,[{key:"VERSION",get:function(){return c}}]),f}();t(document).on(o.CLICK_DATA_API,i.DATA_TOGGLE,function(n){n.preventDefault();s._jQueryInterface.call(t(this),"show")});return t.fn[f]=s._jQueryInterface,t.fn[f].Constructor=s,t.fn[f].noConflict=function(){return t.fn[f]=l,s._jQueryInterface},s}(t);return function(){if(typeof t=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var n=t.fn.jquery.split(" ")[0].split("."),i=9;if(n[0]<2&&n[1]<i||n[0]===1&&n[1]===i&&n[2]<1||n[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}(t),n.Util=r,n.Alert=c,n.Button=l,n.Carousel=a,n.Collapse=v,n.Dropdown=y,n.Modal=p,n.Popover=w,n.Scrollspy=b,n.Tab=k,n.Tooltip=f,n}({},$,Popper);window.matchMedia=window.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth==42,i.removeChild(r),{matches:u,media:n}}}(document),function(n){function d(){a(!0)}if(n.respond={},respond.update=function(){},respond.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all").matches,!respond.mediaQueriesSupported){var t=n.document,i=t.documentElement,e=[],u=[],r=[],o={},v=30,f=t.getElementsByTagName("head")[0]||i,g=t.getElementsByTagName("base")[0],s=f.getElementsByTagName("link"),h=[],y=function(){for(var f=s,c=f.length,r=0,t,i,u,e;r<c;r++)t=f[r],i=t.href,u=t.media,e=t.rel&&t.rel.toLowerCase()==="stylesheet",!i||!e||o[i]||(t.styleSheet&&t.styleSheet.rawCssText?(w(t.styleSheet.rawCssText,i,u),o[i]=!0):(/^([a-zA-Z:]*\/\/)/.test(i)||g)&&i.replace(RegExp.$1,"").split("/")[0]!==n.location.host||h.push({href:i,media:u}));p()},p=function(){if(h.length){var n=h.shift();nt(n.href,function(t){w(t,n.href,n.media);o[n.href]=!0;p()})}},w=function(n,t,i){var o=n.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),s=o&&o.length||0,t=t.substring(0,t.lastIndexOf("/")),v=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},y=!s&&i,h=0,f,c,r,l,p;for(t.length&&(t+="/"),y&&(s=1);h<s;h++)for(f=0,y?(c=i,u.push(v(n))):(c=o[h].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,u.push(RegExp.$2&&v(RegExp.$2))),l=c.split(","),p=l.length;f<p;f++)r=l[f],e.push({media:r.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:u.length-1,hasquery:r.indexOf("(")>-1,minw:r.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});a()},c,b,k=function(){var u,r=t.createElement("div"),n=t.body,f=!1;return r.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=t.createElement("body"),n.style.background="none"),n.appendChild(r),i.insertBefore(n,i.firstChild),u=r.offsetWidth,f?i.removeChild(n):n.removeChild(r),l=parseFloat(u)},l,a=function(n){var nt="clientWidth",tt=i[nt],it=t.compatMode==="CSS1Compat"&&tt||t.body[nt]||tt,d={},ot=s[s.length-1],rt=(new Date).getTime(),o,h,g;if(n&&c&&rt-c<v){clearTimeout(b);b=setTimeout(a,v);return}c=rt;for(o in e){var y=e[o],p=y.minw,w=y.maxw,ut=p===null,ft=w===null,et="em";!p||(p=parseFloat(p)*(p.indexOf(et)>-1?l||k():1));!w||(w=parseFloat(w)*(w.indexOf(et)>-1?l||k():1));y.hasquery&&(ut&&ft||!(ut||it>=p)||!(ft||it<=w))||(d[y.media]||(d[y.media]=[]),d[y.media].push(u[y.rules]))}for(o in r)r[o]&&r[o].parentNode===f&&f.removeChild(r[o]);for(o in d)h=t.createElement("style"),g=d[o].join("\n"),h.type="text/css",h.media=o,f.insertBefore(h,ot.nextSibling),h.styleSheet?h.styleSheet.cssText=g:h.appendChild(t.createTextNode(g)),r.push(h)},nt=function(n,t){var i=tt();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){i.readyState==4&&(i.status==200||i.status==304)&&t(i.responseText)},i.readyState!=4)&&i.send(null)},tt=function(){var n=!1;try{n=new XMLHttpRequest}catch(t){n=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return n}}();y();respond.update=y;n.addEventListener?n.addEventListener("resize",d,!1):n.attachEvent&&n.attachEvent("onresize",d)}}(this)