function centerModal(){$(this).css("display","block");var n=$(this).find(".modal-dialog"),t=($(window).height()-n.height())/2;n.css("margin-top",t)}(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 ii(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}function ri(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ti))}}function it(n){return n&&{}.toString.call(n)==="[object Function]"}function i(n,t){if(n.nodeType!==1)return[];var r=n.ownerDocument.defaultView,i=r.getComputedStyle(n,null);return t?i[t]:i}function v(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function s(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|overlay)/.test(r+f+u)?n:s(v(n))}function rt(n){return n&&n.referenceNode?n.referenceNode:n}function r(n){return n===11?ut:n===10?ft:ut||ft}function u(n){var e,t,f;if(!n)return document.documentElement;for(e=r(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return(f=t&&t.nodeName,!f||f==="BODY"||f==="HTML")?n?n.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(t.nodeName)!==-1&&i(t,"position")==="static"?u(t):t}function ei(n){var t=n.nodeName;return t==="BODY"?!1:t==="HTML"||u(n.firstElementChild)===n}function y(n){return n.parentNode!==null?y(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,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?ei(i)?i:u(i):(f=y(n),f.host?c(f.host,t):c(n,y(t).host))}function f(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 oi(n,t){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,r=f(t,"top"),u=f(t,"left"),i=e?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function et(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 ot(n,t,i,u){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],r(10)?parseInt(i["offset"+n])+parseInt(u["margin"+(n==="Height"?"Top":"Left")])+parseInt(u["margin"+(n==="Height"?"Bottom":"Right")]):0)}function st(n){var i=n.body,t=n.documentElement,u=r(10)&&getComputedStyle(t);return{height:ot("Height",i,t,u),width:ot("Width",i,t,u)}}function t(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function p(n){var u={},o,s,l;try{r(10)?(u=n.getBoundingClientRect(),o=f(n,"top"),s=f(n,"left"),u.top+=o,u.left+=s,u.bottom+=o,u.right+=s):u=n.getBoundingClientRect()}catch(p){}var e={left:u.left,top:u.top,width:u.right-u.left,height:u.bottom-u.top},a=n.nodeName==="HTML"?st(n.ownerDocument):{},v=a.width||n.clientWidth||e.width,y=a.height||n.clientHeight||e.height,h=n.offsetWidth-v,c=n.offsetHeight-y;return(h||c)&&(l=i(n),h-=et(l,"x"),c-=et(l,"y"),e.width-=h,e.height-=c),t(e)}function w(n,u){var w=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,b=r(10),k=u.nodeName==="HTML",o=p(n),e=p(u),a=s(n),h=i(u),v=parseFloat(h.borderTopWidth,10),y=parseFloat(h.borderLeftWidth,10),f,c,l;return w&&k&&(e.top=Math.max(e.top,0),e.left=Math.max(e.left,0)),f=t({top:o.top-e.top-v,left:o.left-e.left-y,width:o.width,height:o.height}),f.marginTop=0,f.marginLeft=0,!b&&k&&(c=parseFloat(h.marginTop,10),l=parseFloat(h.marginLeft,10),f.top-=v-c,f.bottom-=v-c,f.left-=y-l,f.right-=y-l,f.marginTop=c,f.marginLeft=l),(b&&!w?u.contains(a):u===a&&a.nodeName!=="BODY")&&(f=oi(f,u)),f}function ci(n){var u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,i=n.ownerDocument.documentElement,r=w(n,i),e=Math.max(i.clientWidth,window.innerWidth||0),o=Math.max(i.clientHeight,window.innerHeight||0),s=u?0:f(i),h=u?0:f(i,"left"),c={top:s-r.top+r.marginTop,left:h-r.left+r.marginLeft,width:e,height:o};return t(c)}function ht(n){var r=n.nodeName,t;return r==="BODY"||r==="HTML"?!1:i(n,"position")==="fixed"?!0:(t=v(n),!t)?!1:ht(t)}function ct(n){if(!n||!n.parentElement||r())return document.documentElement;for(var t=n.parentElement;t&&i(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function b(n,t,i,r){var h=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!1,u={top:0,left:0},l=h?ct(n):c(n,rt(t)),e,f,o;if(r==="viewport")u=ci(l,h);else if(e=void 0,r==="scrollParent"?(e=s(v(t)),e.nodeName==="BODY"&&(e=n.ownerDocument.documentElement)):e=r==="window"?n.ownerDocument.documentElement:r,f=w(e,l,h),e.nodeName!=="HTML"||ht(l))u=f;else{var a=st(n.ownerDocument),y=a.height,p=a.width;u.top+=f.top-f.marginTop;u.bottom=y+f.top;u.left+=f.left-f.marginLeft;u.right=p+f.left}return i=i||0,o=typeof i=="number",u.left+=o?i:i.left||0,u.top+=o?i:i.top||0,u.right-=o?i:i.right||0,u.bottom-=o?i:i.bottom||0,u}function li(n){var t=n.width,i=n.height;return t*i}function lt(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=b(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:li(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 at(n,t,i){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,u=r?ct(t):c(t,rt(i));return w(i,u,r)}function vt(n){var i=n.ownerDocument.defaultView,t=i.getComputedStyle(n),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),u=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+u,height:n.offsetHeight+r}}function l(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 yt(n,t,i){i=i.split("-")[0];var r=vt(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[l(f)],e}function h(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function ai(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=h(n,function(n){return n[t]===i});return n.indexOf(r)}function pt(n,i,r){var u=r===undefined?n:n.slice(0,ai(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&&it(r)&&(i.offsets.popper=t(i.offsets.popper),i.offsets.reference=t(i.offsets.reference),i=r(i,n))}),i}function vi(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};if(n.offsets.reference=at(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=lt(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.positionFixed=this.options.positionFixed,n.offsets.popper=yt(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=pt(this.modifiers,n),this.state.isCreated)this.options.onUpdate(n);else{this.state.isCreated=!0;this.options.onCreate(n)}}}function wt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function k(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,typeof document.body.style[r]!="undefined")return r;return null}function yi(){return this.state.isDestroyed=!0,wt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[k("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bt(n){var t=n.ownerDocument;return t?t.defaultView:window}function kt(n,t,i,r){var f=n.nodeName==="BODY",u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||kt(s(u.parentNode),t,i,r);r.push(u)}function pi(n,t,i,r){i.updateBound=r;bt(n).addEventListener("resize",i.updateBound,{passive:!0});var u=s(n);return kt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function wi(){this.state.eventsEnabled||(this.state=pi(this.reference,this.options,this.state,this.scheduleUpdate))}function bi(n,t){return bt(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 ki(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=bi(this.reference,this.state))}function d(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function g(n,t){Object.keys(t).forEach(function(i){var r="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&d(t[i])&&(r="px");n.style[i]=t[i]+r})}function di(n,t){Object.keys(t).forEach(function(i){var r=t[i];r!==!1?n.setAttribute(i,t[i]):n.removeAttribute(i)})}function gi(n){return g(n.instance.popper,n.styles),di(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&g(n.arrowElement,n.arrowStyles),n}function nr(n,t,i,r,u){var f=at(u,t,n,i.positionFixed),e=lt(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),g(t,{position:i.positionFixed?"fixed":"absolute"}),i}function tr(n,t){var u=n.offsets,i=u.popper,l=u.reference,r=Math.round,a=Math.floor,f=function(n){return n},e=r(l.width),o=r(i.width),v=["left","right"].indexOf(n.placement)!==-1,s=n.placement.indexOf("-")!==-1,y=e%2==o%2,p=e%2==1&&o%2==1,h=t?v||s||y?r:a:f,c=t?r:f;return{left:h(p&&!s&&t?i.left-1:i.left),top:c(i.top),bottom:c(i.bottom),right:h(i.right)}}function rr(t,i){var g=i.x,nt=i.y,tt=t.offsets.popper,c=h(t.instance.modifiers,function(n){return n.name==="applyStyle"}).gpuAcceleration,w,b,d;c!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var it=c!==undefined?c:i.gpuAcceleration,e=u(t.instance.popper),v=p(e),r={position:tt.position},f=tr(t,window.devicePixelRatio<2||!ir),o=g==="bottom"?"top":"bottom",s=nt==="right"?"left":"right",y=k("transform"),l=void 0,a=void 0;return a=o==="bottom"?e.nodeName==="HTML"?-e.clientHeight+f.bottom:-v.height+f.bottom:f.top,l=s==="right"?e.nodeName==="HTML"?-e.clientWidth+f.right:-v.width+f.right:f.left,it&&y?(r[y]="translate3d("+l+"px, "+a+"px, 0)",r[o]=0,r[s]=0,r.willChange="transform"):(w=o==="bottom"?-1:1,b=s==="right"?-1:1,r[o]=a*w,r[s]=l*b,r.willChange=o+", "+s),d={"x-placement":t.placement},t.attributes=n({},d,t.attributes),t.styles=n({},r,t.styles),t.arrowStyles=n({},t.offsets.arrow,t.arrowStyles),t}function dt(n,t,i){var u=h(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 ur(n,r){var c,f;if(!dt(n.instance.modifiers,"arrow","keepTogether"))return n;if(f=r.element,typeof f=="string"){if(f=n.instance.popper.querySelector(f),!f)return n}else if(!n.instance.popper.contains(f))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=vt(f)[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=f,n.offsets.arrow=(c={},e(c,u,Math.round(p)),e(c,d,""),c),n}function fr(n){return n==="end"?"start":n==="start"?"end":n}function ni(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,t=nt.indexOf(n),i=nt.slice(t+1).concat(nt.slice(0,t));return r?i.reverse():i}function er(t,i){if(wt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var e=b(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],o=l(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case tt.FLIP:f=[r,o];break;case tt.CLOCKWISE:f=ni(r);break;case tt.COUNTERCLOCKWISE:f=ni(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=l(r);var a=t.offsets.popper,y=t.offsets.reference,c=Math.floor,d=r==="left"&&c(a.right)>c(y.left)||r==="right"&&c(a.left)<c(y.right)||r==="top"&&c(a.bottom)>c(y.top)||r==="bottom"&&c(a.top)<c(y.bottom),p=c(a.left)<c(e.left),w=c(a.right)>c(e.right),b=c(a.top)<c(e.top),k=c(a.bottom)>c(e.bottom),g=r==="left"&&p||r==="right"&&w||r==="top"&&b||r==="bottom"&&k,v=["top","bottom"].indexOf(r)!==-1,tt=!!i.flipVariations&&(v&&u==="start"&&p||v&&u==="end"&&w||!v&&u==="start"&&b||!v&&u==="end"&&k),it=!!i.flipVariationsByContent&&(v&&u==="start"&&w||v&&u==="end"&&p||!v&&u==="start"&&k||!v&&u==="end"&&b),nt=tt||it;(d||g||nt)&&(t.flipped=!0,(d||g)&&(r=f[h+1]),nt&&(u=fr(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,yt(t.instance.popper,t.offsets.reference,t.placement)),t=pt(t.instance.modifiers,t,"flip"))}),t}function or(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 sr(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 hr(n,t,i,r){var s=[0,0],c=["right","left"].indexOf(r)!==-1,u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(h(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 sr(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){d(i)&&(s[t]+=i*(n[r-1]==="-"?-1:1))})}),s}function cr(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=d(+f)?[+f,0]:hr(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 lr(t,i){var s=i.boundariesElement||u(t.instance.popper),o;t.instance.reference===s&&(s=u(s));var h=k("transform"),f=t.instance.popper.style,c=f.top,l=f.left,a=f[h];f.top="";f.left="";f[h]="";o=b(t.instance.popper,t.instance.reference,i.padding,s,t.positionFixed);f.top=c;f.left=l;f[h]=a;i.boundaries=o;var v=i.priority,r=t.offsets.popper,y={primary:function(n){var t=r[n];return r[n]<o[n]&&!i.escapeWithReference&&(t=Math.max(r[n],o[n])),e({},n,t)},secondary:function(n){var t=n==="right"?"left":"top",u=r[t];return r[n]>o[n]&&!i.escapeWithReference&&(u=Math.min(r[t],o[n]-(n==="right"?r.width:r.height))),e({},t,u)}};return v.forEach(function(t){var i=["left","top"].indexOf(t)!==-1?"primary":"secondary";r=n({},r,y[i](t))}),t.offsets.popper=r,t}function ar(t){var u=t.placement,l=u.split("-")[0],f=u.split("-")[1];if(f){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:e({},i,r[i]),end:e({},i,r[i]+r[c]-s[c])};t.offsets.popper=n({},s,a[f])}return t}function vr(n){if(!dt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=h(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 yr(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=l(u),n.offsets.popper=t(r),n}var o=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",ti=function(){for(var t=["Edge","Trident","Firefox"],n=0;n<t.length;n+=1)if(o&&navigator.userAgent.indexOf(t[n])>=0)return 1;return 0}(),ui=o&&window.Promise,fi=ui?ii:ri,ut=o&&!!(window.MSInputMethodContext&&document.documentMode),ft=o&&/MSIE 10/.test(navigator.userAgent),si=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},hi=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}}(),e=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},ir=o&&/Firefox/i.test(navigator.userAgent),gt=["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"],nt=gt.slice(3),tt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},pr={shift:{order:100,enabled:!0,fn:ar},offset:{order:200,enabled:!0,fn:cr,offset:0},preventOverflow:{order:300,enabled:!0,fn:lr,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:or},arrow:{order:500,enabled:!0,fn:ur,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:er,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:yr},hide:{order:800,enabled:!0,fn:vr},computeStyle:{order:850,enabled:!0,fn:rr,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:gi,onLoad:nr,gpuAcceleration:undefined}},wr={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:pr},a=function(){function t(i,r){var u=this,f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},e;si(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=fi(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&&it(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 hi(t,[{key:"update",value:function(){return vi.call(this)}},{key:"destroy",value:function(){return yi.call(this)}},{key:"enableEventListeners",value:function(){return wi.call(this)}},{key:"disableEventListeners",value:function(){return ki.call(this)}}]),t}();return a.Utils=(typeof window!="undefined"?window:global).PopperUtils,a.placements=gt,a.Defaults=wr,a}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):t(n.PopperUtils={})}(this,function(n){"use strict";function t(n,t){if(n.nodeType!==1)return[];var r=n.ownerDocument.defaultView,i=r.getComputedStyle(n,null);return t?i[t]:i}function e(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function u(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var i=t(n),r=i.overflow,f=i.overflowX,o=i.overflowY;return/(auto|scroll|overlay)/.test(r+o+f)?n:u(e(n))}function nt(n){return n&&n.referenceNode?n.referenceNode:n}function f(n){return n===11?tt:n===10?it:tt||it}function o(n){var u,i,r;if(!n)return document.documentElement;for(u=f(10)?document.body:null,i=n.offsetParent||null;i===u&&n.nextElementSibling;)i=(n=n.nextElementSibling).offsetParent;return(r=i&&i.nodeName,!r||r==="BODY"||r==="HTML")?n?n.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(i.nodeName)!==-1&&t(i,"position")==="static"?o(i):i}function ti(n){var t=n.nodeName;return t==="BODY"?!1:t==="HTML"||o(n.firstElementChild)===n}function p(n){return n.parentNode!==null?p(n.parentNode):n}function l(n,t){var i,u;if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;var f=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,e=f?n:t,s=f?t:n,r=document.createRange();return(r.setStart(e,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||e.contains(s))?ti(i)?i:o(i):(u=p(n),u.host?l(u.host,t):l(n,p(t).host))}function i(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 ii(n,t){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,u=i(t,"top"),f=i(t,"left"),r=e?-1:1;return n.top+=u*r,n.bottom+=u*r,n.left+=f*r,n.right+=f*r,n}function a(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 rt(n,t,i,r){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],f(10)?parseInt(i["offset"+n])+parseInt(r["margin"+(n==="Height"?"Top":"Left")])+parseInt(r["margin"+(n==="Height"?"Bottom":"Right")]):0)}function s(n){var i=n.body,t=n.documentElement,r=f(10)&&getComputedStyle(t);return{height:rt("Height",i,t,r),width:rt("Width",i,t,r)}}function r(n){return ut({},n,{right:n.left+n.width,bottom:n.top+n.height})}function v(n){var u={},o,h,v;try{f(10)?(u=n.getBoundingClientRect(),o=i(n,"top"),h=i(n,"left"),u.top+=o,u.left+=h,u.bottom+=o,u.right+=h):u=n.getBoundingClientRect()}catch(b){}var e={left:u.left,top:u.top,width:u.right-u.left,height:u.bottom-u.top},y=n.nodeName==="HTML"?s(n.ownerDocument):{},p=y.width||n.clientWidth||e.width,w=y.height||n.clientHeight||e.height,c=n.offsetWidth-p,l=n.offsetHeight-w;return(c||l)&&(v=t(n),c-=a(v,"x"),l-=a(v,"y"),e.width-=c,e.height-=l),r(e)}function h(n,i){var w=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,b=f(10),k=i.nodeName==="HTML",s=v(n),o=v(i),a=u(n),h=t(i),y=parseFloat(h.borderTopWidth,10),p=parseFloat(h.borderLeftWidth,10),e,c,l;return w&&k&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0)),e=r({top:s.top-o.top-y,left:s.left-o.left-p,width:s.width,height:s.height}),e.marginTop=0,e.marginLeft=0,!b&&k&&(c=parseFloat(h.marginTop,10),l=parseFloat(h.marginLeft,10),e.top-=y-c,e.bottom-=y-c,e.left-=p-l,e.right-=p-l,e.marginTop=c,e.marginLeft=l),(b&&!w?i.contains(a):i===a&&a.nodeName!=="BODY")&&(e=ii(e,i)),e}function ri(n){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,t=n.ownerDocument.documentElement,u=h(n,t),e=Math.max(t.clientWidth,window.innerWidth||0),o=Math.max(t.clientHeight,window.innerHeight||0),s=f?0:i(t),c=f?0:i(t,"left"),l={top:s-u.top+u.marginTop,left:c-u.left+u.marginLeft,width:e,height:o};return r(l)}function y(n){var r=n.nodeName,i;return r==="BODY"||r==="HTML"?!1:t(n,"position")==="fixed"?!0:(i=e(n),!i)?!1:y(i)}function ft(n){if(!n||!n.parentElement||f())return document.documentElement;for(var i=n.parentElement;i&&t(i,"transform")==="none";)i=i.parentElement;return i||document.documentElement}function w(n,t,i,r){var v=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!1,f={top:0,left:0},p=v?ft(n):l(n,nt(t)),c,o,a;if(r==="viewport")f=ri(p,v);else if(c=void 0,r==="scrollParent"?(c=u(e(t)),c.nodeName==="BODY"&&(c=n.ownerDocument.documentElement)):c=r==="window"?n.ownerDocument.documentElement:r,o=h(c,p,v),c.nodeName!=="HTML"||y(p))f=o;else{var w=s(n.ownerDocument),b=w.height,k=w.width;f.top+=o.top-o.marginTop;f.bottom=b+o.top;f.left+=o.left-o.marginLeft;f.right=k+o.left}return i=i||0,a=typeof i=="number",f.left+=a?i:i.left||0,f.top+=a?i:i.top||0,f.right-=a?i:i.right||0,f.bottom-=a?i:i.bottom||0,f}function ui(n){var t=n.width,i=n.height;return t*i}function et(n,t,i,r,u){var c=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(n.indexOf("auto")===-1)return n;var f=w(i,r,c,u),e={top:{width:f.width,height:t.top-f.top},right:{width:f.right-t.right,height:f.height},bottom:{width:f.width,height:f.bottom-t.bottom},left:{width:t.left-f.left,height:f.height}},o=Object.keys(e).map(function(n){return ut({key:n},e[n],{area:ui(e[n])})}).sort(function(n,t){return t.area-n.area}),s=o.filter(function(n){var t=n.width,r=n.height;return t>=i.clientWidth&&r>=i.clientHeight}),l=s.length>0?s[0].key:o[0].key,h=n.split("-")[1];return l+(h?"-"+h:"")}function ei(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}function oi(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},fi))}}function st(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function b(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=st(n,function(n){return n[t]===i});return n.indexOf(r)}function ht(n){var t=void 0;if(n.nodeName==="HTML"){var i=s(n.ownerDocument),u=i.width,f=i.height;t={width:u,height:f,left:0,top:0}}else t={width:n.offsetWidth,height:n.offsetHeight,left:n.offsetLeft,top:n.offsetTop};return r(t)}function k(n){var i=n.ownerDocument.defaultView,t=i.getComputedStyle(n),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),u=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+u,height:n.offsetHeight+r}}function hi(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 ct(n,t,i){i=i.split("-")[0];var r=k(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[hi(f)],e}function lt(n,t,i){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,u=r?ft(t):l(t,nt(i));return h(i,u,r)}function at(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,typeof document.body.style[r]!="undefined")return r;return null}function d(n){return n&&{}.toString.call(n)==="[object Function]"}function vt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function yt(n,t,i){var u=st(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 g(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function pt(n){var t=n.ownerDocument;return t?t.defaultView:window}function wt(n,t){return pt(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 bt(n,t,i){var u=i===undefined?n:n.slice(0,b(n,"name",i));return u.forEach(function(n){n["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=n["function"]||n.fn;n.enabled&&d(i)&&(t.offsets.popper=r(t.offsets.popper),t.offsets.reference=r(t.offsets.reference),t=i(t,n))}),t}function kt(n,t){Object.keys(t).forEach(function(i){var r=t[i];r!==!1?n.setAttribute(i,t[i]):n.removeAttribute(i)})}function dt(n,t){Object.keys(t).forEach(function(i){var r="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&g(t[i])&&(r="px");n.style[i]=t[i]+r})}function gt(n,t,i,r){var e=n.nodeName==="BODY",f=e?n.ownerDocument.defaultView:n;f.addEventListener(t,i,{passive:!0});e||gt(u(f.parentNode),t,i,r);r.push(f)}function ni(n,t,i,r){i.updateBound=r;pt(n).addEventListener("resize",i.updateBound,{passive:!0});var f=u(n);return gt(f,"scroll",i.updateBound,i.scrollParents),i.scrollElement=f,i.eventsEnabled=!0,i}var c=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",tt=c&&!!(window.MSInputMethodContext&&document.documentMode),it=c&&/MSIE 10/.test(navigator.userAgent),ut=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},fi=function(){for(var t=["Edge","Trident","Firefox"],n=0;n<t.length;n+=1)if(c&&navigator.userAgent.indexOf(t[n])>=0)return 1;return 0}(),si=c&&window.Promise,ot=si?ei:oi,ci={computeAutoPlacement:et,debounce:ot,findIndex:b,getBordersSize:a,getBoundaries:w,getBoundingClientRect:v,getClientRect:r,getOffsetParent:o,getOffsetRect:ht,getOffsetRectRelativeToArbitraryNode:h,getOuterSizes:k,getParentNode:e,getPopperOffsets:ct,getReferenceOffsets:lt,getScroll:i,getScrollParent:u,getStyleComputedProperty:t,getSupportedPropertyName:at,getWindowSizes:s,isFixed:y,isFunction:d,isModifierEnabled:vt,isModifierRequired:yt,isNumeric:g,removeEventListeners:wt,runModifiers:bt,setAttributes:kt,setStyles:dt,setupEventListeners:ni};n.computeAutoPlacement=et;n.debounce=ot;n.findIndex=b;n.getBordersSize=a;n.getBoundaries=w;n.getBoundingClientRect=v;n.getClientRect=r;n.getOffsetParent=o;n.getOffsetRect=ht;n.getOffsetRectRelativeToArbitraryNode=h;n.getOuterSizes=k;n.getParentNode=e;n.getPopperOffsets=ct;n.getReferenceOffsets=lt;n.getScroll=i;n.getScrollParent=u;n.getStyleComputedProperty=t;n.getSupportedPropertyName=at;n.getWindowSizes=s;n.isFixed=y;n.isFunction=d;n.isModifierEnabled=vt;n.isModifierRequired=yt;n.isNumeric=g;n.removeEventListeners=wt;n.runModifiers=bt;n.setAttributes=kt;n.setStyles=dt;n.setupEventListeners=ni;n["default"]=ci;Object.defineProperty(n,"__esModule",{value:!0})});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((n=n||self).bootstrap={},n.jQuery,n.Popper)}(this,function(n,t,i){"use strict";function et(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 f(n,t,i){return t&&et(n.prototype,t),i&&et(n,i),n}function yt(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function ot(n,t){var r=Object.keys(n),i;return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(n),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),r.push.apply(r,i)),r}function u(n){for(var i,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},t%2?ot(Object(i),!0).forEach(function(t){yt(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):ot(Object(i)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))});return n}function pt(n){var u=this,i=!1;return t(this).one(r.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||r.triggerTransitionEnd(u)},n),this}function ct(n,t,i){if(0===n.length)return n;if(i&&"function"==typeof i)return i(n);for(var u=(new window.DOMParser).parseFromString(n,"text/html"),e=Object.keys(t),f=[].slice.call(u.body.querySelectorAll("*")),o=function(n){var i=f[n],o=i.nodeName.toLowerCase(),r,u;if(-1===e.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";r=[].slice.call(i.attributes);u=[].concat(t["*"]||[],t[o]||[]);r.forEach(function(n){(function(n,t){var i=n.nodeName.toLowerCase();if(-1!==t.indexOf(i))return-1===oi.indexOf(i)||Boolean(n.nodeValue.match(si)||n.nodeValue.match(hi));for(var u=t.filter(function(n){return n instanceof RegExp}),r=0,f=u.length;r<f;r++)if(i.match(u[r]))return!0;return!1})(n,u)||i.removeAttribute(n.nodeName)})},r=0,s=f.length;r<s;r++)o(r);return u.body.innerHTML}var r,st,l,at,b;t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;i=i&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i;r={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target"),i;t&&"#"!==t||(i=n.getAttribute("href"),t=i&&"#"!==i?i.trim():"");try{return document.querySelector(t)?t:null}catch(n){return null}},getTransitionDurationFromElement:function(n){if(!n)return 0;var i=t(n).css("transition-duration"),r=t(n).css("transition-delay"),u=parseFloat(i),f=parseFloat(r);return u||f?(i=i.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(i)+parseFloat(r))):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,t,i){var u,f;for(u in i)if(Object.prototype.hasOwnProperty.call(i,u)){var o=i[u],e=t[u],s=e&&r.isElement(e)?"element":null===(f=e)||"undefined"==typeof f?""+f:{}.toString.call(f).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+': Option "'+u+'" provided type "'+s+'" but expected type "'+o+'".');}},findShadowRoot:function(n){if(!document.documentElement.attachShadow)return null;if("function"==typeof n.getRootNode){var t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?r.findShadowRoot(n.parentNode):null},jQueryDetection:function(){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var n=t.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1===n[0]&&9===n[1]&&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");}};r.jQueryDetection();t.fn.emulateTransitionEnd=pt;t.event.special[r.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(n){if(t(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}};var k="alert",wt=t.fn[k],c=function(){function n(n){this._element=n}var i=n.prototype;return i.close=function(n){var t=this._element;n&&(t=this._getRootElement(n));this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},i.dispose=function(){t.removeData(this._element,"bs.alert");this._element=null},i._getRootElement=function(n){var u=r.getSelectorFromElement(n),i=!1;return u&&(i=document.querySelector(u)),i||(i=t(n).closest(".alert")[0]),i},i._triggerCloseEvent=function(n){var i=t.Event("close.bs.alert");return t(n).trigger(i),i},i._removeElement=function(n){var u=this,i;(t(n).removeClass("show"),t(n).hasClass("fade"))?(i=r.getTransitionDurationFromElement(n),t(n).one(r.TRANSITION_END,function(t){return u._destroyElement(n,t)}).emulateTransitionEnd(i)):this._destroyElement(n)},i._destroyElement=function(n){t(n).detach().trigger("closed.bs.alert").remove()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data("bs.alert");r||(r=new n(this),u.data("bs.alert",r));"close"===i&&r[i](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},f(n,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),n}();t(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',c._handleDismiss(new c));t.fn[k]=c._jQueryInterface;t.fn[k].Constructor=c;t.fn[k].noConflict=function(){return t.fn[k]=wt,c._jQueryInterface};st=t.fn.button;l=function(){function n(n){this._element=n}var i=n.prototype;return i.toggle=function(){var i=!0,u=!0,f=t(this._element).closest('[data-toggle="buttons"]')[0],n,r;f&&(n=this._element.querySelector('input:not([type="hidden"])'),n&&("radio"===n.type&&(n.checked&&this._element.classList.contains("active")?i=!1:(r=f.querySelector(".active"),r&&t(r).removeClass("active"))),i&&("checkbox"!==n.type&&"radio"!==n.type||(n.checked=!this._element.classList.contains("active")),t(n).trigger("change")),n.focus(),u=!1));this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(u&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),i&&t(this._element).toggleClass("active"))},i.dispose=function(){t.removeData(this._element,"bs.button");this._element=null},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data("bs.button");r||(r=new n(this),t(this).data("bs.button",r));"toggle"===i&&r[i]()})},f(n,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),n}();t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=n.target,u=i,r;if(t(i).hasClass("btn")||(i=t(i).closest(".btn")[0]),!i||i.hasAttribute("disabled")||i.classList.contains("disabled"))n.preventDefault();else{if(r=i.querySelector('input:not([type="hidden"])'),r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void n.preventDefault();"LABEL"===u.tagName&&r&&"checkbox"===r.type&&n.preventDefault();l._jQueryInterface.call(t(i),"toggle")}}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target).closest(".btn")[0];t(i).toggleClass("focus",/^focus(in)?$/.test(n.type))});t(window).on("load.bs.button.data-api",function(){for(var t,f,i,e,r,n=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),u=0,o=n.length;u<o;u++)t=n[u],f=t.querySelector('input:not([type="hidden"])'),f.checked||f.hasAttribute("checked")?t.classList.add("active"):t.classList.remove("active");for(i=0,e=(n=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;i<e;i++)r=n[i],"true"===r.getAttribute("aria-pressed")?r.classList.add("active"):r.classList.remove("active")});t.fn.button=l._jQueryInterface;t.fn.button.Constructor=l;t.fn.button.noConflict=function(){return t.fn.button=st,l._jQueryInterface};var a="carousel",bt=".bs.carousel",kt=t.fn[a],rt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},dt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ht={TOUCH:"touch",PEN:"pen"},v=function(){function i(n,t){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this.touchStartX=0;this.touchDeltaX=0;this._config=this._getConfig(t);this._element=n;this._indicatorsElement=this._element.querySelector(".carousel-indicators");this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var n=i.prototype;return n.next=function(){this._isSliding||this._slide("next")},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide("prev")},n.pause=function(n){n||(this._isPaused=!0);this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(r.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},n.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))},n.to=function(n){var u=this,i,r;if(this._activeElement=this._element.querySelector(".active.carousel-item"),i=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)t(this._element).one("slid.bs.carousel",function(){return u.to(n)});else{if(i===n)return this.pause(),void this.cycle();r=n>i?"next":"prev";this._slide(r,this._items[n])}},n.dispose=function(){t(this._element).off(bt);t.removeData(this._element,"bs.carousel");this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},n._getConfig=function(n){return n=u(u({},rt),n),r.typeCheckConfig(a,n,dt),n},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX),n;t<=40||(n=t/this.touchDeltaX,this.touchDeltaX=0,n>0&&this.prev(),n<0&&this.next())},n._addEventListeners=function(){var n=this;this._config.keyboard&&t(this._element).on("keydown.bs.carousel",function(t){return n._keydown(t)});"hover"===this._config.pause&&t(this._element).on("mouseenter.bs.carousel",function(t){return n.pause(t)}).on("mouseleave.bs.carousel",function(t){return n.cycle(t)});this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var n=this,i,r;this._touchSupported&&(i=function(t){n._pointerEvent&&ht[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){n._pointerEvent&&ht[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX);n._handleSwipe();"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))},t(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",function(n){return n.preventDefault()}),this._pointerEvent?(t(this._element).on("pointerdown.bs.carousel",function(n){return i(n)}),t(this._element).on("pointerup.bs.carousel",function(n){return r(n)}),this._element.classList.add("pointer-event")):(t(this._element).on("touchstart.bs.carousel",function(n){return i(n)}),t(this._element).on("touchmove.bs.carousel",function(t){return function(t){n.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-n.touchStartX}(t)}),t(this._element).on("touchend.bs.carousel",function(n){return r(n)})))},n._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next()}},n._getItemIndex=function(n){return this._items=n&&n.parentNode?[].slice.call(n.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(n)},n._getItemByDirection=function(n,t){var u="next"===n,f="prev"===n,i=this._getItemIndex(t),e=this._items.length-1,r;return(f&&0===i||u&&i===e)&&!this._config.wrap?t:(r=(i+("prev"===n?-1:1))%this._items.length,-1===r?this._items[this._items.length-1]:this._items[r])},n._triggerSlideEvent=function(n,i){var u=this._getItemIndex(n),f=this._getItemIndex(this._element.querySelector(".active.carousel-item")),r=t.Event("slide.bs.carousel",{relatedTarget:n,direction:i,from:f,to:u});return t(this._element).trigger(r),r},n._setActiveIndicatorElement=function(n){var r,i;this._indicatorsElement&&(r=[].slice.call(this._indicatorsElement.querySelectorAll(".active")),t(r).removeClass("active"),i=this._indicatorsElement.children[this._getItemIndex(n)],i&&t(i).addClass("active"))},n._slide=function(n,i){var e,o,s,l=this,f=this._element.querySelector(".active.carousel-item"),y=this._getItemIndex(f),u=i||f&&this._getItemByDirection(n,f),p=this._getItemIndex(u),a=Boolean(this._interval),h,c,v;("next"===n?(e="carousel-item-left",o="carousel-item-next",s="left"):(e="carousel-item-right",o="carousel-item-prev",s="right"),u&&t(u).hasClass("active"))?this._isSliding=!1:!this._triggerSlideEvent(u,s).isDefaultPrevented()&&f&&u&&(this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(u),h=t.Event("slid.bs.carousel",{relatedTarget:u,direction:s,from:y,to:p}),t(this._element).hasClass("slide")?(t(u).addClass(o),r.reflow(u),t(f).addClass(e),t(u).addClass(e),c=parseInt(u.getAttribute("data-interval"),10),c?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=c):this._config.interval=this._config.defaultInterval||this._config.interval,v=r.getTransitionDurationFromElement(f),t(f).one(r.TRANSITION_END,function(){t(u).removeClass(e+" "+o).addClass("active");t(f).removeClass("active "+o+" "+e);l._isSliding=!1;setTimeout(function(){return t(l._element).trigger(h)},0)}).emulateTransitionEnd(v)):(t(f).removeClass("active"),t(u).addClass("active"),this._isSliding=!1,t(this._element).trigger(h)),a&&this.cycle())},i._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.carousel"),f=u(u({},rt),t(this).data()),e;if("object"==typeof n&&(f=u(u({},f),n)),e="string"==typeof n?n:f.slide,r||(r=new i(this,f),t(this).data("bs.carousel",r)),"number"==typeof n)r.to(n);else if("string"==typeof e){if("undefined"==typeof r[e])throw new TypeError('No method named "'+e+'"');r[e]()}else f.interval&&f.ride&&(r.pause(),r.cycle())})},i._dataApiClickHandler=function(n){var s=r.getSelectorFromElement(this),f,o,e;s&&(f=t(s)[0],f&&t(f).hasClass("carousel")&&(o=u(u({},t(f).data()),t(this).data()),e=this.getAttribute("data-slide-to"),e&&(o.interval=!1),i._jQueryInterface.call(t(f),o),e&&t(f).data("bs.carousel").to(e),n.preventDefault()))},f(i,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return rt}}]),i}();t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",v._dataApiClickHandler);t(window).on("load.bs.carousel.data-api",function(){for(var i,r=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),n=0,u=r.length;n<u;n++)i=t(r[n]),v._jQueryInterface.call(i,i.data())});t.fn[a]=v._jQueryInterface;t.fn[a].Constructor=v;t.fn[a].noConflict=function(){return t.fn[a]=kt,v._jQueryInterface};var y="collapse",gt=t.fn[y],ut={toggle:!0,parent:""},ni={toggle:"boolean",parent:"(string|element)"},d=function(){function i(n,t){this._isTransitioning=!1;this._element=n;this._config=this._getConfig(t);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'));for(var f=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),i=0,o=f.length;i<o;i++){var e=f[i],u=r.getSelectorFromElement(e),s=[].slice.call(document.querySelectorAll(u)).filter(function(t){return t===n});null!==u&&s.length>0&&(this._selector=u,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 n=i.prototype;return n.toggle=function(){t(this._element).hasClass("show")?this.hide():this.show()},n.show=function(){var n,e,u=this,o,f,s,h;this._isTransitioning||t(this._element).hasClass("show")||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(n){return"string"==typeof u._config.parent?n.getAttribute("data-parent")===u._config.parent:n.classList.contains("collapse")})).length&&(n=null),n&&(e=t(n).not(this._selector).data("bs.collapse"))&&e._isTransitioning)||(o=t.Event("show.bs.collapse"),(t(this._element).trigger(o),o.isDefaultPrevented())||(n&&(i._jQueryInterface.call(t(n).not(this._selector),"hide"),e||t(n).data("bs.collapse",null)),f=this._getDimension(),t(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[f]=0,this._triggerArray.length&&t(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0),s="scroll"+(f[0].toUpperCase()+f.slice(1)),h=r.getTransitionDurationFromElement(this._element),t(this._element).one(r.TRANSITION_END,function(){t(u._element).removeClass("collapsing").addClass("collapse show");u._element.style[f]="";u.setTransitioning(!1);t(u._element).trigger("shown.bs.collapse")}).emulateTransitionEnd(h),this._element.style[f]=this._element[s]+"px"))},n.hide=function(){var s=this,u,n,f,i,e,o,h;if(!this._isTransitioning&&t(this._element).hasClass("show")&&(u=t.Event("hide.bs.collapse"),t(this._element).trigger(u),!u.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",r.reflow(this._element),t(this._element).addClass("collapsing").removeClass("collapse show"),f=this._triggerArray.length,f>0)for(i=0;i<f;i++)e=this._triggerArray[i],o=r.getSelectorFromElement(e),null!==o&&(t([].slice.call(document.querySelectorAll(o))).hasClass("show")||t(e).addClass("collapsed").attr("aria-expanded",!1));this.setTransitioning(!0);this._element.style[n]="";h=r.getTransitionDurationFromElement(this._element);t(this._element).one(r.TRANSITION_END,function(){s.setTransitioning(!1);t(s._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")}).emulateTransitionEnd(h)}},n.setTransitioning=function(n){this._isTransitioning=n},n.dispose=function(){t.removeData(this._element,"bs.collapse");this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},n._getConfig=function(n){return(n=u(u({},ut),n)).toggle=Boolean(n.toggle),r.typeCheckConfig(y,n,ni),n},n._getDimension=function(){return t(this._element).hasClass("width")?"width":"height"},n._getParent=function(){var n,e=this,u,f;return r.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent),u='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',f=[].slice.call(n.querySelectorAll(u)),t(f).each(function(n,t){e._addAriaAndCollapsedClass(i._getTargetFromElement(t),[t])}),n},n._addAriaAndCollapsedClass=function(n,i){var r=t(n).hasClass("show");i.length&&t(i).toggleClass("collapsed",!r).attr("aria-expanded",r)},i._getTargetFromElement=function(n){var t=r.getSelectorFromElement(n);return t?document.querySelector(t):null},i._jQueryInterface=function(n){return this.each(function(){var f=t(this),r=f.data("bs.collapse"),e=u(u(u({},ut),f.data()),"object"==typeof n&&n?n:{});if(!r&&e.toggle&&"string"==typeof n&&/show|hide/.test(n)&&(e.toggle=!1),r||(r=new i(this,e),f.data("bs.collapse",r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},f(i,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return ut}}]),i}();t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var i=t(this),u=r.getSelectorFromElement(this),f=[].slice.call(document.querySelectorAll(u));t(f).each(function(){var n=t(this),r=n.data("bs.collapse")?"toggle":i.data();d._jQueryInterface.call(n,r)})});t.fn[y]=d._jQueryInterface;t.fn[y].Constructor=d;t.fn[y].noConflict=function(){return t.fn[y]=gt,d._jQueryInterface};var p="dropdown",ti=t.fn[p],ii=new RegExp("38|40|27"),ri={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},ui={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},e=function(){function n(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var e=n.prototype;return e.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass("disabled")){var i=t(this._menu).hasClass("show");n._clearMenus();i||this.show(!0)}},e.show=function(u){var e;if(void 0===u&&(u=!1),!(this._element.disabled||t(this._element).hasClass("disabled")||t(this._menu).hasClass("show"))){var o={relatedTarget:this._element},s=t.Event("show.bs.dropdown",o),f=n._getParentFromElement(this._element);if(t(f).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar&&u){if("undefined"==typeof i)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");e=this._element;"parent"===this._config.reference?e=f:r.isElement(this._config.reference)&&(e=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(e=this._config.reference[0]));"scrollParent"!==this._config.boundary&&t(f).addClass("position-static");this._popper=new i(e,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(f).closest(".navbar-nav").length&&t(document.body).children().on("mouseover",null,t.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);t(this._menu).toggleClass("show");t(f).toggleClass("show").trigger(t.Event("shown.bs.dropdown",o))}}},e.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass("disabled")&&t(this._menu).hasClass("show")){var i={relatedTarget:this._element},r=t.Event("hide.bs.dropdown",i),u=n._getParentFromElement(this._element);t(u).trigger(r);r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass("show"),t(u).toggleClass("show").trigger(t.Event("hidden.bs.dropdown",i)))}},e.dispose=function(){t.removeData(this._element,"bs.dropdown");t(this._element).off(".bs.dropdown");this._element=null;this._menu=null;null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var n=this;t(this._element).on("click.bs.dropdown",function(t){t.preventDefault();t.stopPropagation();n.toggle()})},e._getConfig=function(n){return n=u(u(u({},this.constructor.Default),t(this._element).data()),n),r.typeCheckConfig(p,n,this.constructor.DefaultType),n},e._getMenuElement=function(){if(!this._menu){var t=n._getParentFromElement(this._element);t&&(this._menu=t.querySelector(".dropdown-menu"))}return this._menu},e._getPlacement=function(){var i=t(this._element.parentNode),n="bottom-start";return i.hasClass("dropup")?n=t(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":i.hasClass("dropright")?n="right-start":i.hasClass("dropleft")?n="left-start":t(this._menu).hasClass("dropdown-menu-right")&&(n="bottom-end"),n},e._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,n={};return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=u(u({},n.offsets),t._config.offset(n.offsets,t._element)||{}),n}:n.offset=this._config.offset,n},e._getPopperConfig=function(){var n={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),u(u({},n),this._config.popperConfig)},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data("bs.dropdown");if(r||(r=new n(this,"object"==typeof i?i:null),t(this).data("bs.dropdown",r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},n._clearMenus=function(i){var h,s;if(!i||3!==i.which&&("keyup"!==i.type||9===i.which))for(var u=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),r=0,c=u.length;r<c;r++){var f=n._getParentFromElement(u[r]),e=t(u[r]).data("bs.dropdown"),o={relatedTarget:u[r]};(i&&"click"===i.type&&(o.clickEvent=i),e)&&(h=e._menu,!t(f).hasClass("show")||i&&("click"===i.type&&/input|textarea/i.test(i.target.tagName)||"keyup"===i.type&&9===i.which)&&t.contains(f,i.target)||(s=t.Event("hide.bs.dropdown",o),t(f).trigger(s),s.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),u[r].setAttribute("aria-expanded","false"),e._popper&&e._popper.destroy(),t(h).removeClass("show"),t(f).removeClass("show").trigger(t.Event("hidden.bs.dropdown",o)))))}},n._getParentFromElement=function(n){var t,i=r.getSelectorFromElement(n);return i&&(t=document.querySelector(i)),t||n.parentNode},n._dataApiKeydownHandler=function(i){var f,e,u,r;if(!(/input|textarea/i.test(i.target.tagName)?32===i.which||27!==i.which&&(40!==i.which&&38!==i.which||t(i.target).closest(".dropdown-menu").length):!ii.test(i.which))&&!this.disabled&&!t(this).hasClass("disabled")&&(f=n._getParentFromElement(this),e=t(f).hasClass("show"),e||27!==i.which)){if(i.preventDefault(),i.stopPropagation(),!e||e&&(27===i.which||32===i.which))return 27===i.which&&t(f.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void t(this).trigger("click");u=[].slice.call(f.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(n){return t(n).is(":visible")});0!==u.length&&(r=u.indexOf(i.target),38===i.which&&r>0&&r--,40===i.which&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())}},f(n,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return ri}},{key:"DefaultType",get:function(){return ui}}]),n}();t(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',e._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",e._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",e._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',function(n){n.preventDefault();n.stopPropagation();e._jQueryInterface.call(t(this),"toggle")}).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()});t.fn[p]=e._jQueryInterface;t.fn[p].Constructor=e;t.fn[p].noConflict=function(){return t.fn[p]=ti,e._jQueryInterface};var fi=t.fn.modal,ft={backdrop:!0,keyboard:!0,focus:!0,show:!0},ei={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},g=function(){function i(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=n.querySelector(".modal-dialog");this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._isTransitioning=!1;this._scrollbarWidth=0}var n=i.prototype;return n.toggle=function(n){return this._isShown?this.hide():this.show(n)},n.show=function(n){var i=this,r;this._isShown||this._isTransitioning||(t(this._element).hasClass("fade")&&(this._isTransitioning=!0),r=t.Event("show.bs.modal",{relatedTarget:n}),t(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',function(n){return i.hide(n)}),t(this._dialog).on("mousedown.dismiss.bs.modal",function(){t(i._element).one("mouseup.dismiss.bs.modal",function(n){t(n.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(n)})))},n.hide=function(n){var e=this,i,u,f;(n&&n.preventDefault(),this._isShown&&!this._isTransitioning)&&(i=t.Event("hide.bs.modal"),(t(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented())&&(this._isShown=!1,u=t(this._element).hasClass("fade"),(u&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off("focusin.bs.modal"),t(this._element).removeClass("show"),t(this._element).off("click.dismiss.bs.modal"),t(this._dialog).off("mousedown.dismiss.bs.modal"),u)?(f=r.getTransitionDurationFromElement(this._element),t(this._element).one(r.TRANSITION_END,function(n){return e._hideModal(n)}).emulateTransitionEnd(f)):this._hideModal()))},n.dispose=function(){[window,this._element,this._dialog].forEach(function(n){return t(n).off(".bs.modal")});t(document).off("focusin.bs.modal");t.removeData(this._element,"bs.modal");this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._isTransitioning=null;this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(n){return n=u(u({},ft),n),r.typeCheckConfig("modal",n,ei),n},n._triggerBackdropTransition=function(){var u=this,n,i;if("static"===this._config.backdrop){if(n=t.Event("hidePrevented.bs.modal"),t(this._element).trigger(n),n.defaultPrevented)return;this._element.classList.add("modal-static");i=r.getTransitionDurationFromElement(this._element);t(this._element).one(r.TRANSITION_END,function(){u._element.classList.remove("modal-static")}).emulateTransitionEnd(i);this._element.focus()}else this.hide()},n._showElement=function(n){var i=this,f=t(this._element).hasClass("fade"),e=this._dialog?this._dialog.querySelector(".modal-body"):null,o,u,s;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.setAttribute("aria-modal",!0);t(this._dialog).hasClass("modal-dialog-scrollable")&&e?e.scrollTop=0:this._element.scrollTop=0;f&&r.reflow(this._element);t(this._element).addClass("show");this._config.focus&&this._enforceFocus();o=t.Event("shown.bs.modal",{relatedTarget:n});u=function(){i._config.focus&&i._element.focus();i._isTransitioning=!1;t(i._element).trigger(o)};f?(s=r.getTransitionDurationFromElement(this._dialog),t(this._dialog).one(r.TRANSITION_END,u).emulateTransitionEnd(s)):u()},n._enforceFocus=function(){var n=this;t(document).off("focusin.bs.modal").on("focusin.bs.modal",function(i){document!==i.target&&n._element!==i.target&&0===t(n._element).has(i.target).length&&n._element.focus()})},n._setEscapeEvent=function(){var n=this;this._isShown?t(this._element).on("keydown.dismiss.bs.modal",function(t){n._config.keyboard&&27===t.which?(t.preventDefault(),n.hide()):n._config.keyboard||27!==t.which||n._triggerBackdropTransition()}):this._isShown||t(this._element).off("keydown.dismiss.bs.modal")},n._setResizeEvent=function(){var n=this;this._isShown?t(window).on("resize.bs.modal",function(t){return n.handleUpdate(t)}):t(window).off("resize.bs.modal")},n._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._element.removeAttribute("aria-modal");this._isTransitioning=!1;this._showBackdrop(function(){t(document.body).removeClass("modal-open");n._resetAdjustments();n._resetScrollbar();t(n._element).trigger("hidden.bs.modal")})},n._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(n){var i=this,u=t(this._element).hasClass("fade")?"fade":"",e,f,o;if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",u&&this._backdrop.classList.add(u),t(this._backdrop).appendTo(document.body),t(this._element).on("click.dismiss.bs.modal",function(n){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:n.target===n.currentTarget&&i._triggerBackdropTransition()}),u&&r.reflow(this._backdrop),t(this._backdrop).addClass("show"),!n)return;if(!u)return void n();e=r.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(r.TRANSITION_END,n).emulateTransitionEnd(e)}else!this._isShown&&this._backdrop?(t(this._backdrop).removeClass("show"),f=function(){i._removeBackdrop();n&&n()},t(this._element).hasClass("fade")?(o=r.getTransitionDurationFromElement(this._backdrop),t(this._backdrop).one(r.TRANSITION_END,f).emulateTransitionEnd(o)):f()):n&&n()},n._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")},n._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},n._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(n.left+n.right)<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var n=this,i,r,u,f;this._isBodyOverflowing&&(i=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),r=[].slice.call(document.querySelectorAll(".sticky-top")),t(i).each(function(i,r){var u=r.style.paddingRight,f=t(r).css("padding-right");t(r).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),t(r).each(function(i,r){var u=r.style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),u=document.body.style.paddingRight,f=t(document.body).css("padding-right"),t(document.body).data("padding-right",u).css("padding-right",parseFloat(f)+this._scrollbarWidth+"px"));t(document.body).addClass("modal-open")},n._resetScrollbar=function(){var r=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n,i;t(r).each(function(n,i){var r=t(i).data("padding-right");t(i).removeData("padding-right");i.style.paddingRight=r||""});n=[].slice.call(document.querySelectorAll(".sticky-top"));t(n).each(function(n,i){var r=t(i).data("margin-right");"undefined"!=typeof r&&t(i).css("margin-right",r).removeData("margin-right")});i=t(document.body).data("padding-right");t(document.body).removeData("padding-right");document.body.style.paddingRight=i||""},n._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},i._jQueryInterface=function(n,r){return this.each(function(){var f=t(this).data("bs.modal"),e=u(u(u({},ft),t(this).data()),"object"==typeof n&&n?n:{});if(f||(f=new i(this,e),t(this).data("bs.modal",f)),"string"==typeof n){if("undefined"==typeof f[n])throw new TypeError('No method named "'+n+'"');f[n](r)}else e.show&&f.show(r)})},f(i,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return ft}}]),i}();t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i,f=this,e=r.getSelectorFromElement(this),o,s;e&&(i=document.querySelector(e));o=t(i).data("bs.modal")?"toggle":u(u({},t(i).data()),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();s=t(i).one("show.bs.modal",function(n){n.isDefaultPrevented()||s.one("hidden.bs.modal",function(){t(f).is(":visible")&&f.focus()})});g._jQueryInterface.call(t(i),o,this)});t.fn.modal=g._jQueryInterface;t.fn.modal.Constructor=g;t.fn.modal.noConflict=function(){return t.fn.modal=fi,g._jQueryInterface};var oi=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],si=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,hi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;var o="tooltip",ci=t.fn[o],li=new RegExp("(^|\\s)bs-tooltip\\S+","g"),ai=["sanitize","whiteList","sanitizeFn"],vi={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},yi={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},pi={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",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},wi={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},s=function(){function e(n,t){if("undefined"==typeof i)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");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 n=e.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.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("show"))return void this._leave(null,this);this._enter(null,this)}},n.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._hideModalHandler);this.tip&&t(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._popper&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},n.show=function(){var n=this,f,e,c,u,o,l,s,a,h,v;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");if(f=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(f),e=r.findShadowRoot(this.element),c=t.contains(null!==e?e:this.element.ownerDocument.documentElement,this.element),f.isDefaultPrevented()||!c)return;u=this.getTipElement();o=r.getUID(this.constructor.NAME);u.setAttribute("id",o);this.element.setAttribute("aria-describedby",o);this.setContent();this.config.animation&&t(u).addClass("fade");l="function"==typeof this.config.placement?this.config.placement.call(this,u,this.element):this.config.placement;s=this._getAttachment(l);this.addAttachmentClass(s);a=this._getContainer();t(u).data(this.constructor.DATA_KEY,this);t.contains(this.element.ownerDocument.documentElement,this.tip)||t(u).appendTo(a);t(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new i(this.element,u,this._getPopperConfig(s));t(u).addClass("show");"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);h=function(){n.config.animation&&n._fixTransition();var i=n._hoverState;n._hoverState=null;t(n.element).trigger(n.constructor.Event.SHOWN);"out"===i&&n._leave(null,n)};t(this.tip).hasClass("fade")?(v=r.getTransitionDurationFromElement(this.tip),t(this.tip).one(r.TRANSITION_END,h).emulateTransitionEnd(v)):h()}},n.hide=function(n){var i=this,u=this.getTipElement(),f=t.Event(this.constructor.Event.HIDE),e=function(){"show"!==i._hoverState&&u.parentNode&&u.parentNode.removeChild(u);i._cleanTipClass();i.element.removeAttribute("aria-describedby");t(i.element).trigger(i.constructor.Event.HIDDEN);null!==i._popper&&i._popper.destroy();n&&n()},o;(t(this.element).trigger(f),f.isDefaultPrevented())||((t(u).removeClass("show"),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,t(this.tip).hasClass("fade"))?(o=r.getTransitionDurationFromElement(u),t(u).one(r.TRANSITION_END,e).emulateTransitionEnd(o)):e(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(n){t(this.getTipElement()).addClass("bs-tooltip-"+n)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var n=this.getTipElement();this.setElementContent(t(n.querySelectorAll(".tooltip-inner")),this.getTitle());t(n).removeClass("fade show")},n.setElementContent=function(n,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=ct(i,this.config.whiteList,this.config.sanitizeFn)),n.html(i)):n.text(i):this.config.html?t(i).parent().is(n)||n.empty().append(i):n.text(t(i).text())},n.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},n._getPopperConfig=function(n){var t=this;return u(u({},{placement:n,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(n){n.originalPlacement!==n.placement&&t._handlePopperPlacementChange(n)},onUpdate:function(n){return t._handlePopperPlacementChange(n)}}),this.config.popperConfig)},n._getOffset=function(){var t=this,n={};return"function"==typeof this.config.offset?n.fn=function(n){return n.offsets=u(u({},n.offsets),t.config.offset(n.offsets,t.element)||{}),n}:n.offset=this.config.offset,n},n._getContainer=function(){return!1===this.config.container?document.body:r.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(n){return yi[n.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)t(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if("manual"!==i){var r="hover"===i?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u="hover"===i?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)})}});this._hideModalHandler=function(){n.element&&n.hide()};t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler);this.config.selector?this.config=u(u({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusin"===n.type?"focus":"hover"]=!0);t(i.getTipElement()).hasClass("show")||"show"===i._hoverState?i._hoverState="show":(clearTimeout(i._timeout),i._hoverState="show",i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){"show"===i._hoverState&&i.show()},i.config.delay.show):i.show())},n._leave=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusout"===n.type?"focus":"hover"]=!1);i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState="out",i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(function(){"out"===i._hoverState&&i.hide()},i.config.delay.hide):i.hide())},n._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},n._getConfig=function(n){var i=t(this.element).data();return Object.keys(i).forEach(function(n){-1!==ai.indexOf(n)&&delete i[n]}),"number"==typeof(n=u(u(u({},this.constructor.Default),i),"object"==typeof n&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),r.typeCheckConfig(o,n,this.constructor.DefaultType),n.sanitize&&(n.template=ct(n.template,n.whiteList,n.sanitizeFn)),n},n._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},n._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(li);null!==n&&n.length&&i.removeClass(n.join(""))},n._handlePopperPlacementChange=function(n){this.tip=n.instance.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},n._fixTransition=function(){var n=this.getTipElement(),i=this.config.animation;null===n.getAttribute("x-placement")&&(t(n).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.tooltip"),r="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new e(this,r),t(this).data("bs.tooltip",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},f(e,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return pi}},{key:"NAME",get:function(){return o}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return wi}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return vi}}]),e}();t.fn[o]=s._jQueryInterface;t.fn[o].Constructor=s;t.fn[o].noConflict=function(){return t.fn[o]=ci,s._jQueryInterface};var w="popover",bi=t.fn[w],ki=new RegExp("(^|\\s)bs-popover\\S+","g"),di=u(u({},s.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>'}),gi=u(u({},s.DefaultType),{},{content:"(string|element|function)"}),nr={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},tt=function(n){function r(){return n.apply(this,arguments)||this}var u,e,i;return e=n,(u=r).prototype=Object.create(e.prototype),u.prototype.constructor=u,u.__proto__=e,i=r.prototype,i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(n){t(this.getTipElement()).addClass("bs-popover-"+n)},i.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},i.setContent=function(){var i=t(this.getTipElement()),n;this.setElementContent(i.find(".popover-header"),this.getTitle());n=this._getContent();"function"==typeof n&&(n=n.call(this.element));this.setElementContent(i.find(".popover-body"),n);i.removeClass("fade show")},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(ki);null!==n&&n.length>0&&i.removeClass(n.join(""))},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.popover"),u="object"==typeof n?n:null;if((i||!/dispose|hide/.test(n))&&(i||(i=new r(this,u),t(this).data("bs.popover",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},f(r,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return di}},{key:"NAME",get:function(){return w}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return nr}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return gi}}]),r}(s);t.fn[w]=tt._jQueryInterface;t.fn[w].Constructor=tt;t.fn[w].noConflict=function(){return t.fn[w]=bi,tt._jQueryInterface};var h="scrollspy",tr=t.fn[h],lt={offset:10,method:"auto",target:""},ir={offset:"number",method:"string",target:"(string|element)"},nt=function(){function i(n,i){var r=this;this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(i);this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item";this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;t(this._scrollElement).on("scroll.bs.scrollspy",function(n){return r._process(n)});this.refresh();this._process()}var n=i.prototype;return n.refresh=function(){var n=this,u=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?u:this._config.method,f="position"===i?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();[].slice.call(document.querySelectorAll(this._selector)).map(function(n){var u,e=r.getSelectorFromElement(n),o;return(e&&(u=document.querySelector(e)),u)&&(o=u.getBoundingClientRect(),o.width||o.height)?[t(u)[i]().top+f,e]: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])})},n.dispose=function(){t.removeData(this._element,"bs.scrollspy");t(this._scrollElement).off(".bs.scrollspy");this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},n._getConfig=function(n){if("string"!=typeof(n=u(u({},lt),"object"==typeof n&&n?n:{})).target&&r.isElement(n.target)){var i=t(n.target).attr("id");i||(i=r.getUID(h),t(n.target).attr("id",i));n.target="#"+i}return r.typeCheckConfig(h,n,ir),n},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),u=this._config.offset+r-this._getOffsetHeight(),i,n;if(this._scrollHeight!==r&&this.refresh(),t>=u)i=this._targets[this._targets.length-1],this._activeTarget!==i&&this._activate(i);else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&("undefined"==typeof this._offsets[n+1]||t<this._offsets[n+1])&&this._activate(this._targets[n])}},n._activate=function(n){this._activeTarget=n;this._clear();var r=this._selector.split(",").map(function(t){return t+'[data-target="'+n+'"],'+t+'[href="'+n+'"]'}),i=t([].slice.call(document.querySelectorAll(r.join(","))));i.hasClass("dropdown-item")?(i.closest(".dropdown").find(".dropdown-toggle").addClass("active"),i.addClass("active")):(i.addClass("active"),i.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),i.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active"));t(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:n})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(n){return n.classList.contains("active")}).forEach(function(n){return n.classList.remove("active")})},i._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.scrollspy");if(r||(r=new i(this,"object"==typeof n&&n),t(this).data("bs.scrollspy",r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},f(i,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return lt}}]),i}();t(window).on("load.bs.scrollspy.data-api",function(){for(var r,n=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),i=n.length;i--;)r=t(n[i]),nt._jQueryInterface.call(r,r.data())});t.fn[h]=nt._jQueryInterface;t.fn[h].Constructor=nt;t.fn[h].noConflict=function(){return t.fn[h]=tr,nt._jQueryInterface};at=t.fn.tab;b=function(){function n(n){this._element=n}var i=n.prototype;return i.show=function(){var h=this,u,n,i,f,c,e,o,s;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass("active")||t(this._element).hasClass("disabled")||(i=t(this._element).closest(".nav, .list-group")[0],f=r.getSelectorFromElement(this._element),i&&(c="UL"===i.nodeName||"OL"===i.nodeName?"> li > .active":".active",n=(n=t.makeArray(t(i).find(c)))[n.length-1]),e=t.Event("hide.bs.tab",{relatedTarget:this._element}),o=t.Event("show.bs.tab",{relatedTarget:n}),(n&&t(n).trigger(e),t(this._element).trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(f&&(u=document.querySelector(f)),this._activate(this._element,i),s=function(){var i=t.Event("hidden.bs.tab",{relatedTarget:h._element}),r=t.Event("shown.bs.tab",{relatedTarget:n});t(n).trigger(i);t(h._element).trigger(r)},u?this._activate(u,u.parentNode,s):s()))},i.dispose=function(){t.removeData(this._element,"bs.tab");this._element=null},i._activate=function(n,i,u){var s=this,f=(!i||"UL"!==i.nodeName&&"OL"!==i.nodeName?t(i).children(".active"):t(i).find("> li > .active"))[0],h=u&&f&&t(f).hasClass("fade"),e=function(){return s._transitionComplete(n,f,u)},o;f&&h?(o=r.getTransitionDurationFromElement(f),t(f).removeClass("show").one(r.TRANSITION_END,e).emulateTransitionEnd(o)):e()},i._transitionComplete=function(n,i,u){var f,e,o;i&&(t(i).removeClass("active"),f=t(i.parentNode).find("> .dropdown-menu .active")[0],f&&t(f).removeClass("active"),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1));(t(n).addClass("active"),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0),r.reflow(n),n.classList.contains("fade")&&n.classList.add("show"),n.parentNode&&t(n.parentNode).hasClass("dropdown-menu"))&&(e=t(n).closest(".dropdown")[0],e&&(o=[].slice.call(e.querySelectorAll(".dropdown-toggle")),t(o).addClass("active")),n.setAttribute("aria-expanded",!0));u&&u()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data("bs.tab");if(r||(r=new n(this),u.data("bs.tab",r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},f(n,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),n}();t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(n){n.preventDefault();b._jQueryInterface.call(t(this),"show")});t.fn.tab=b._jQueryInterface;t.fn.tab.Constructor=b;t.fn.tab.noConflict=function(){return t.fn.tab=at,b._jQueryInterface};var rr=t.fn.toast,ur={animation:"boolean",autohide:"boolean",delay:"number"},vt={animation:!0,autohide:!0,delay:500},it=function(){function i(n,t){this._element=n;this._config=this._getConfig(t);this._timeout=null;this._setListeners()}var n=i.prototype;return n.show=function(){var n=this,u=t.Event("show.bs.toast"),i,f;(t(this._element).trigger(u),u.isDefaultPrevented())||(this._config.animation&&this._element.classList.add("fade"),i=function(){n._element.classList.remove("showing");n._element.classList.add("show");t(n._element).trigger("shown.bs.toast");n._config.autohide&&(n._timeout=setTimeout(function(){n.hide()},n._config.delay))},(this._element.classList.remove("hide"),r.reflow(this._element),this._element.classList.add("showing"),this._config.animation)?(f=r.getTransitionDurationFromElement(this._element),t(this._element).one(r.TRANSITION_END,i).emulateTransitionEnd(f)):i())},n.hide=function(){if(this._element.classList.contains("show")){var n=t.Event("hide.bs.toast");t(this._element).trigger(n);n.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout);this._timeout=null;this._element.classList.contains("show")&&this._element.classList.remove("show");t(this._element).off("click.dismiss.bs.toast");t.removeData(this._element,"bs.toast");this._element=null;this._config=null},n._getConfig=function(n){return n=u(u(u({},vt),t(this._element).data()),"object"==typeof n&&n?n:{}),r.typeCheckConfig("toast",n,this.constructor.DefaultType),n},n._setListeners=function(){var n=this;t(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',function(){return n.hide()})},n._close=function(){var n=this,i=function(){n._element.classList.add("hide");t(n._element).trigger("hidden.bs.toast")},u;(this._element.classList.remove("show"),this._config.animation)?(u=r.getTransitionDurationFromElement(this._element),t(this._element).one(r.TRANSITION_END,i).emulateTransitionEnd(u)):i()},i._jQueryInterface=function(n){return this.each(function(){var u=t(this),r=u.data("bs.toast");if(r||(r=new i(this,"object"==typeof n&&n),u.data("bs.toast",r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n](this)}})},f(i,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"DefaultType",get:function(){return ur}},{key:"Default",get:function(){return vt}}]),i}();t.fn.toast=it._jQueryInterface;t.fn.toast.Constructor=it;t.fn.toast.noConflict=function(){return t.fn.toast=rr,it._jQueryInterface};n.Alert=c;n.Button=l;n.Carousel=v;n.Collapse=d;n.Dropdown=e;n.Modal=g;n.Popover=tt;n.Scrollspy=nt;n.Tab=b;n.Toast=it;n.Tooltip=s;n.Util=r;Object.defineProperty(n,"__esModule",{value:!0})});$(".modal").on("show.bs.modal",centerModal);$(window).on("resize",function(){$(".modal:visible").each(centerModal)});"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},windowIsDefined="object"===("undefined"==typeof window?"undefined":_typeof(window));!function(n){if("function"==typeof define&&define.amd)define(["jquery"],n);else if("object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports){var t;try{t=require("jquery")}catch(i){t=null}module.exports=n(t)}else window&&(window.Slider=n(window.jQuery))}(function(n){var i="slider",r="bootstrapSlider",t;return windowIsDefined&&!window.console&&(window.console={}),windowIsDefined&&!window.console.log&&(window.console.log=function(){}),windowIsDefined&&!window.console.warn&&(window.console.warn=function(){}),function(n){function t(){}function i(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(t,u){n.fn[t]=function(f){var c,e,o,s;if("string"==typeof f){for(var l=r.call(arguments,1),h=0,a=this.length;a>h;h++)if(c=this[h],e=n.data(c,t),e)if(n.isFunction(e[f])&&"_"!==f.charAt(0)){if(o=e[f].apply(e,l),void 0!==o&&o!==e)return o}else i("no such method '"+f+"' for "+t+" instance");else i("cannot call methods on "+t+" prior to initialization; attempted to call '"+f+"'");return this}return s=this.map(function(){var i=n.data(this,t);return i?(i.option(f),i._init()):(i=new u(this,f),n.data(this,t,i)),n(this)}),1===s.length?s[0]:s}}if(n){var i="undefined"==typeof console?t:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var r=Array.prototype.slice;i(n)}(n),function(n){function e(t,i){function at(n,t){var r="data-slider-"+t.replace(/_/g,"-"),i=n.getAttribute(r);try{return JSON.parse(i)}catch(u){return i}}var c,o,rt,s,a,k,d,st,g,h,tt,v,y,p,ct,lt;this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null};this.ticksCallbackMap={};this.handleCallbackMap={};"string"==typeof t?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t);i=i?i:{};for(var ot=Object.keys(this.defaultOptions),vt=i.hasOwnProperty("min"),yt=i.hasOwnProperty("max"),r=0;r<ot.length;r++)c=ot[r],o=i[c],o="undefined"!=typeof o?o:at(this.element,c),o=null!==o?o:this.defaultOptions[c],this.options||(this.options={}),this.options[c]=o;(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),"auto"===this.options.rtl)&&(rt=window.getComputedStyle(this.element),this.options.rtl=null!=rt?"rtl"===rt.direction:"rtl"===this.element.style.direction);"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.tooltip_position=this.options.rtl?"left":"right";var l,w,b,u,e,pt=this.element.style.width,ut=!1,wt=this.element.parentNode;if(this.sliderElem)ut=!0;else{if(this.sliderElem=document.createElement("div"),this.sliderElem.className="slider",s=document.createElement("div"),s.className="slider-track",w=document.createElement("div"),w.className="slider-track-low",l=document.createElement("div"),l.className="slider-selection",b=document.createElement("div"),b.className="slider-track-high",u=document.createElement("div"),u.className="slider-handle min-slider-handle",u.setAttribute("role","slider"),u.setAttribute("aria-valuemin",this.options.min),u.setAttribute("aria-valuemax",this.options.max),e=document.createElement("div"),e.className="slider-handle max-slider-handle",e.setAttribute("role","slider"),e.setAttribute("aria-valuemin",this.options.min),e.setAttribute("aria-valuemax",this.options.max),s.appendChild(w),s.appendChild(l),s.appendChild(b),this.rangeHighlightElements=[],a=this.options.rangeHighlights,Array.isArray(a)&&a.length>0)for(k=0;k<a.length;k++)d=document.createElement("div"),st=a[k]["class"]||"",d.className="slider-rangeHighlight slider-selection "+st,this.rangeHighlightElements.push(d),s.appendChild(d);if(g=Array.isArray(this.options.labelledby),g&&this.options.labelledby[0]&&u.setAttribute("aria-labelledby",this.options.labelledby[0]),g&&this.options.labelledby[1]&&e.setAttribute("aria-labelledby",this.options.labelledby[1]),!g&&this.options.labelledby&&(u.setAttribute("aria-labelledby",this.options.labelledby),e.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",r=0;r<this.options.ticks.length;r++){if(h=document.createElement("div"),h.className="slider-tick",this.options.ticks_tooltip){var ht=this._addTickListener(),bt=ht.addMouseEnter(this,h,r),kt=ht.addMouseLeave(this,h);this.ticksCallbackMap[r]={mouseEnter:bt,mouseLeave:kt}}this.ticks.push(h);this.ticksContainer.appendChild(h)}l.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",r=0;r<this.options.ticks_labels.length;r++){var nt=document.createElement("div"),dt=0===this.options.ticks_positions.length,gt=this.options.reversed&&dt?this.options.ticks_labels.length-(r+1):r;nt.className="slider-tick-label";nt.innerHTML=this.options.ticks_labels[gt];this.tickLabels.push(nt);this.tickLabelContainer.appendChild(nt)}tt=function(n){var i=document.createElement("div"),t;i.className="tooltip-arrow";t=document.createElement("div");t.className="tooltip-inner";n.appendChild(i);n.appendChild(t)};v=document.createElement("div");v.className="tooltip tooltip-main";v.setAttribute("role","presentation");tt(v);y=document.createElement("div");y.className="tooltip tooltip-min";y.setAttribute("role","presentation");tt(y);p=document.createElement("div");p.className="tooltip tooltip-max";p.setAttribute("role","presentation");tt(p);this.sliderElem.appendChild(s);this.sliderElem.appendChild(v);this.sliderElem.appendChild(y);this.sliderElem.appendChild(p);this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer);this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer);this.sliderElem.appendChild(u);this.sliderElem.appendChild(e);wt.insertBefore(this.sliderElem,this.element);this.element.style.display="none"}if(n&&(this.$element=n(this.element),this.$sliderElem=n(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),f[this.options.scale]&&(this.options.scale=f[this.options.scale]),ut===!0&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.sliderElem,"slider-rtl"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","right","top","width","height"].forEach(function(n){this._removeProperty(this.trackLow,n);this._removeProperty(this.trackSelection,n);this._removeProperty(this.trackHigh,n)},this),[this.handle1,this.handle2].forEach(function(n){this._removeProperty(n,"left");this._removeProperty(n,"right");this._removeProperty(n,"top")},this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(n){this._removeProperty(n,"left");this._removeProperty(n,"right");this._removeProperty(n,"top");this._removeClass(n,"right");this._removeClass(n,"left");this._removeClass(n,"top")},this)),"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=pt,this.options.orientation="horizontal",this.stylePos=this.options.rtl?"right":"left",this.mousePos="clientX",this.sizePos="offsetWidth"),this.options.rtl&&this._addClass(this.sliderElem,"slider-rtl"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(yt||(this.options.max=Math.max.apply(Math,this.options.ticks)),vt||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this._state.value=this.options.range?[this.options.value,this.options.max]:this.options.value,this.trackLow=w||this.trackLow,this.trackSelection=l||this.trackSelection,this.trackHigh=b||this.trackHigh,"none"===this.options.selection?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):("after"===this.options.selection||"before"===this.options.selection)&&(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=u||this.handle1,this.handle2=e||this.handle2,ut===!0)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),r=0;r<this.ticks.length;r++)this._removeClass(this.ticks[r],"round triangle hide");if(ct=["round","triangle","custom"],lt=-1!==ct.indexOf(this.options.handle),lt)for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),r=0;r<this.ticks.length;r++)this._addClass(this.ticks[r],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1)),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),"hide"===this.options.tooltip)this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide");else if("always"===this.options.tooltip)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var it=this._addTickListener(),ft=it.addMouseEnter(this,this.handle1),et=it.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:ft,mouseLeave:et};ft=it.addMouseEnter(this,this.handle2);et=it.addMouseLeave(this,this.handle2);this.handleCallbackMap.handle2={mouseEnter:ft,mouseLeave:et}}else this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.showTooltip,!1),this.sliderElem.addEventListener("touchmove",this.showTooltip,!1),this.sliderElem.addEventListener("touchend",this.hideTooltip,!1));this.handle1.addEventListener("focus",this.showTooltip,!1);this.handle1.addEventListener("blur",this.hideTooltip,!1);this.handle2.addEventListener("focus",this.showTooltip,!1);this.handle2.addEventListener("blur",this.hideTooltip,!1);this.touchCapable&&(this.handle1.addEventListener("touchstart",this.showTooltip,!1),this.handle1.addEventListener("touchmove",this.showTooltip,!1),this.handle1.addEventListener("touchend",this.hideTooltip,!1),this.handle2.addEventListener("touchstart",this.showTooltip,!1),this.handle2.addEventListener("touchmove",this.showTooltip,!1),this.handle2.addEventListener("touchend",this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}var u=void 0,o={formatInvalidInputErrorMsg:function(n){return"Invalid input value '"+n+"' passed in"},callingContextNotSliderInstance:"Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method"},f={linear:{getValue:function(n,t){return n<t.min?t.min:n>t.max?t.max:n},toValue:function(n){var e=n/100*(this.options.max-this.options.min),o=!0,i,s,r,u,t,h,c,l;if(this.options.ticks_positions.length>0){for(u=0,t=1;t<this.options.ticks_positions.length;t++)if(n<=this.options.ticks_positions[t]){i=this.options.ticks[t-1];r=this.options.ticks_positions[t-1];s=this.options.ticks[t];u=this.options.ticks_positions[t];break}h=(n-r)/(u-r);e=i+h*(s-i);o=!1}return c=o?this.options.min:0,l=c+Math.round(e/this.options.step)*this.options.step,f.linear.getValue(l,this.options)},toPercentage:function(n){var i,f,r,u,t,e;if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(u=0,t=0;t<this.options.ticks.length;t++)if(n<=this.options.ticks[t]){i=t>0?this.options.ticks[t-1]:0;r=t>0?this.options.ticks_positions[t-1]:0;f=this.options.ticks[t];u=this.options.ticks_positions[t];break}if(t>0)return e=(n-i)/(f-i),r+e*(u-r)}return 100*(n-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(n){var i=1-this.options.min,u=Math.log(this.options.min+i),r=Math.log(this.options.max+i),t=Math.exp(u+(r-u)*n/100)-i;return Math.round(t)===r?r:(t=this.options.min+Math.round((t-this.options.min)/this.options.step)*this.options.step,f.linear.getValue(t,this.options))},toPercentage:function(n){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,r=Math.log(this.options.max+t),i=Math.log(this.options.min+t),u=Math.log(n+t);return 100*(u-i)/(r-i)}}};t=function(n,t){return e.call(this,n,t),this};t.prototype={_init:function(){},constructor:t,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(n){return Array.isArray(n)?n[0]+" : "+n[1]:n},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(n,t,i){var u,f,r,e;return n||(n=0),u=this.getValue(),this._state.value=this._validateInputValue(n),f=this._applyPrecision.bind(this),this.options.range?(this._state.value[0]=f(this._state.value[0]),this._state.value[1]=f(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=f(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),this._state.value[1]="after"===this.options.selection?this.options.max:this.options.min),this._setTickIndex(),this._state.percentage=this.options.max>this.options.min?[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:[0,0,100],this._layout(),r=this.options.range?this._state.value:this._state.value[0],this._setDataVal(r),t===!0&&this._trigger("slide",r),e=!1,e=Array.isArray(r)?u[0]!==r[0]||u[1]!==r[1]:u!==r,e&&i===!0&&this._trigger("change",{oldValue:u,newValue:r}),this},destroy:function(){this._removeSliderEventHandlers();this.sliderElem.parentNode.removeChild(this.sliderElem);this.element.style.display="";this._cleanUpEventCallbacksMap();this.element.removeAttribute("data");n&&(this._unbindJQueryEventHandlers(),u===i&&this.$element.removeData(u),this.$element.removeData(r))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(n,t){return this._bindNonQueryEventHandler(n,t),this},off:function(t,i){n?(this.$element.off(t,i),this.$sliderElem.off(t,i)):this._unbindNonQueryEventHandler(t,i)},getAttribute:function(n){return n?this.options[n]:this.options},setAttribute:function(n,t){return this.options[n]=t,this},refresh:function(t){var f=this.getValue();return this._removeSliderEventHandlers(),e.call(this,this.element,this.options),t&&t.useCurrentValue===!0&&this.setValue(f),n&&(u===i?(n.data(this.element,i,this),n.data(this.element,r,this)):n.data(this.element,r,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(n,t){this.handle1.removeEventListener(n,t,!1);this.handle2.removeEventListener(n,t,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var t=this.ticksContainer.getElementsByClassName("slider-tick"),n=0;n<t.length;n++)t[n].removeEventListener("mouseenter",this.ticksCallbackMap[n].mouseEnter,!1),t[n].removeEventListener("mouseleave",this.ticksCallbackMap[n].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener("mouseenter",this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener("mouseenter",this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener("mouseleave",this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener("mouseleave",this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null;this.ticksCallbackMap=null;this.showTooltip&&this._removeTooltipListener("focus",this.showTooltip);this.hideTooltip&&this._removeTooltipListener("blur",this.hideTooltip);this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1);this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1);this.sliderElem.removeEventListener("mousedown",this.mousedown,!1);this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener("touchstart",this.showTooltip,!1),this.handle1.removeEventListener("touchmove",this.showTooltip,!1),this.handle2.removeEventListener("touchstart",this.showTooltip,!1),this.handle2.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("touchend",this.hideTooltip,!1),this.handle2.removeEventListener("touchend",this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener("touchstart",this.showTooltip,!1),this.sliderElem.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener("touchend",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.touchstart,!1),this.sliderElem.removeEventListener("touchmove",this.touchmove,!1));window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(n,t){void 0===this.eventToCallbackMap[n]&&(this.eventToCallbackMap[n]=[]);this.eventToCallbackMap[n].push(t)},_unbindNonQueryEventHandler:function(n,t){var r=this.eventToCallbackMap[n],i;if(void 0!==r)for(i=0;i<r.length;i++)if(r[i]===t){r.splice(i,1);break}},_cleanUpEventCallbacksMap:function(){for(var i,t=Object.keys(this.eventToCallbackMap),n=0;n<t.length;n++)i=t[n],delete this.eventToCallbackMap[i]},_showTooltip:function(){this.options.tooltip_split===!1?(this._addClass(this.tooltip,"in"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"in"),this._addClass(this.tooltip_max,"in"),this.tooltip.style.display="none");this._state.over=!0},_hideTooltip:function(){this._state.inDrag===!1&&this._alwaysShowTooltip!==!0&&(this._removeClass(this.tooltip,"in"),this._removeClass(this.tooltip_min,"in"),this._removeClass(this.tooltip_max,"in"));this._state.over=!1},_setToolTipOnMouseOver:function(n){function t(n,t){return t?[100-n.percentage[0],i.options.range?100-n.percentage[1]:n.percentage[1]]:[n.percentage[0],n.percentage[1]]}var i=this,r=this.options.formatter(n?n.value[0]:this._state.value[0]),u=n?t(n,this.options.reversed):t(this._state,this.options.reversed);this._setText(this.tooltipInner,r);this.tooltip.style[this.stylePos]=u[0]+"%"},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(n,t,i){var r=function(){var r=n._copyState(),u=t===n.handle1?r.value[0]:r.value[1],f=void 0;void 0!==i?(u=n.options.ticks[i],f=n.options.ticks_positions.length>0&&n.options.ticks_positions[i]||n._toPercentage(n.options.ticks[i])):f=n._toPercentage(u);r.value[0]=u;r.percentage[0]=f;n._setToolTipOnMouseOver(r);n._showTooltip()};return t.addEventListener("mouseenter",r,!1),r},addMouseLeave:function(n,t){var i=function(){n._hideTooltip()};return t.addEventListener("mouseleave",i,!1),i}}},_layout:function(){var n,f,r,o,s,y,u,h,p,c,e,t,i,l,w,b,a,v;if(n=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=n[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),f=this.options.formatter(this._state.value[0]),isNaN(f)?this.handle1.setAttribute("aria-valuetext",f):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=n[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),f=this.options.formatter(this._state.value[1]),isNaN(f)?this.handle2.setAttribute("aria-valuetext",f):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(r=0;r<this.options.rangeHighlights.length;r++)o=this._toPercentage(this.options.rangeHighlights[r].start),s=this._toPercentage(this.options.rangeHighlights[r].end),this.options.reversed&&(y=100-s,s=100-o,o=y),u=this._createHighlightRange(o,s),u?"vertical"===this.options.orientation?(this.rangeHighlightElements[r].style.top=u.start+"%",this.rangeHighlightElements[r].style.height=u.size+"%"):(this.options.rtl?this.rangeHighlightElements[r].style.right=u.start+"%":this.rangeHighlightElements[r].style.left=u.start+"%",this.rangeHighlightElements[r].style.width=u.size+"%"):this.rangeHighlightElements[r].style.display="none";if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){if(p="vertical"===this.options.orientation?"height":"width",h="vertical"===this.options.orientation?"marginTop":this.options.rtl?"marginRight":"marginLeft",c=this._state.size/(this.options.ticks.length-1),this.tickLabelContainer){if(e=0,0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[h]=-c/2+"px"),e=this.tickLabelContainer.offsetHeight;else for(t=0;t<this.tickLabelContainer.childNodes.length;t++)this.tickLabelContainer.childNodes[t].offsetHeight>e&&(e=this.tickLabelContainer.childNodes[t].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=e+"px")}for(t=0;t<this.options.ticks.length;t++)i=this.options.ticks_positions[t]||this._toPercentage(this.options.ticks[t]),this.options.reversed&&(i=100-i),this.ticks[t].style[this.stylePos]=i+"%",this._removeClass(this.ticks[t],"in-selection"),this.options.range?i>=n[0]&&i<=n[1]&&this._addClass(this.ticks[t],"in-selection"):"after"===this.options.selection&&i>=n[0]?this._addClass(this.ticks[t],"in-selection"):"before"===this.options.selection&&i<=n[0]&&this._addClass(this.ticks[t],"in-selection"),this.tickLabels[t]&&(this.tickLabels[t].style[p]=c+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[t]?(this.tickLabels[t].style.position="absolute",this.tickLabels[t].style[this.stylePos]=i+"%",this.tickLabels[t].style[h]=-c/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[t].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[t].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[h]=this.sliderElem.offsetWidth/-2+"px"),this._removeClass(this.tickLabels[t],"label-in-selection label-is-selection"),this.options.range?i>=n[0]&&i<=n[1]&&(this._addClass(this.tickLabels[t],"label-in-selection"),(i===n[0]||n[1])&&this._addClass(this.tickLabels[t],"label-is-selection")):("after"===this.options.selection&&i>=n[0]?this._addClass(this.tickLabels[t],"label-in-selection"):"before"===this.options.selection&&i<=n[0]&&this._addClass(this.tickLabels[t],"label-in-selection"),i===n[0]&&this._addClass(this.tickLabels[t],"label-is-selection")))}this.options.range?(l=this.options.formatter(this._state.value),this._setText(this.tooltipInner,l),this.tooltip.style[this.stylePos]=(n[1]+n[0])/2+"%",w=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner_min,w),b=this.options.formatter(this._state.value[1]),this._setText(this.tooltipInner_max,b),this.tooltip_min.style[this.stylePos]=n[0]+"%",this.tooltip_max.style[this.stylePos]=n[1]+"%"):(l=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,l),this.tooltip.style[this.stylePos]=n[0]+"%");"vertical"===this.options.orientation?(this.trackLow.style.top="0",this.trackLow.style.height=Math.min(n[0],n[1])+"%",this.trackSelection.style.top=Math.min(n[0],n[1])+"%",this.trackSelection.style.height=Math.abs(n[0]-n[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(n[0],n[1])-Math.abs(n[0]-n[1])+"%"):("right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(n[0],n[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(n[0],n[1])+"%":this.trackSelection.style.left=Math.min(n[0],n[1])+"%",this.trackSelection.style.width=Math.abs(n[0]-n[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(n[0],n[1])-Math.abs(n[0]-n[1])+"%",a=this.tooltip_min.getBoundingClientRect(),v=this.tooltip_max.getBoundingClientRect(),"bottom"===this.options.tooltip_position?a.right>v.left?(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):a.right>v.left?(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top=this.tooltip_min.style.top))},_createHighlightRange:function(n,t){return this._isHighlightRange(n,t)?n>t?{start:t,size:n-t}:{start:n,size:t-n}:null},_isHighlightRange:function(n,t){return n>=0&&100>=n&&t>=0&&100>=t?!0:!1},_resize:function(){this._state.offset=this._offset(this.sliderElem);this._state.size=this.sliderElem[this.sizePos];this._layout()},_removeProperty:function(n,t){n.style.removeProperty?n.style.removeProperty(t):n.style.removeAttribute(t)},_mousedown:function(n){var t,r,u,i;return this._state.enabled?(n.preventDefault&&n.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],t=this._getPercentage(n),this.options.range?(r=Math.abs(this._state.percentage[0]-t),u=Math.abs(this._state.percentage[1]-t),this._state.dragged=u>r?0:1,this._adjustPercentageForRangeSliders(t)):this._state.dragged=0,this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0,i=this._calculateValue(),this._trigger("slideStart",i),this.setValue(i,!1,!0),n.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0):!1},_touchstart:function(n){this._mousedown(n)},_triggerFocusOnHandle:function(n){0===n&&this.handle1.focus();1===n&&this.handle2.focus()},_keydown:function(n,t){var i,r,u,e,o,s;if(!this._state.enabled)return!1;switch(t.keyCode){case 37:case 40:i=-1;break;case 39:case 38:i=1}if(i){if(this.options.natural_arrow_keys){var h="horizontal"===this.options.orientation,c="vertical"===this.options.orientation,l=this.options.rtl,f=this.options.reversed;h?l?f||(i=-i):f&&(i=-i):c&&(f||(i=-i))}return this.ticksAreValid&&this.options.lock_to_ticks?(u=void 0,u=this.options.ticks.indexOf(this._state.value[n]),-1===u&&(u=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),u+=i,u=Math.max(0,Math.min(this.options.ticks.length-1,u)),r=this.options.ticks[u]):r=this._state.value[n]+i*this.options.step,e=this._toPercentage(r),(this._state.keyCtrl=n,this.options.range)?(this._adjustPercentageForRangeSliders(e),o=this._state.keyCtrl?this._state.value[0]:r,s=this._state.keyCtrl?r:this._state.value[1],r=[Math.max(this.options.min,Math.min(this.options.max,o)),Math.max(this.options.min,Math.min(this.options.max,s))]):r=Math.max(this.options.min,Math.min(this.options.max,r)),this._trigger("slideStart",r),this.setValue(r,!0,!0),this._trigger("slideStop",r),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(n){n.stopPropagation&&n.stopPropagation();n.preventDefault&&n.preventDefault();n.cancelBubble=!0;n.returnValue=!1},_mousemove:function(n){var t,i;return this._state.enabled?(t=this._getPercentage(n),this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,i=this._calculateValue(!0),this.setValue(i,!0,!0),!1):!1},_touchmove:function(n){void 0!==n.changedTouches&&n.preventDefault&&n.preventDefault()},_adjustPercentageForRangeSliders:function(n){var t,i;this.options.range&&(t=this._getNumDigitsAfterDecimalPlace(n),t=t?t-1:0,i=this._applyToFixedAndParseFloat(n,t),0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<i?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>i?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<n?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):1===this._state.keyCtrl&&this._toPercentage(this._state.value[0])>n&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus()))},_mouseup:function(n){var t,i;return this._state.enabled?(t=this._getPercentage(n),this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,this._state.over===!1&&this._hideTooltip(),i=this._calculateValue(!0),this.setValue(i,!1,!0),this._trigger("slideStop",i),this._state.dragged=null,!1):!1},_setValues:function(n,t){var i=0===n?0:100;this._state.percentage[n]!==i&&(t.data[n]=this._toValue(this._state.percentage[n]),t.data[n]=this._applyPrecision(t.data[n]))},_calculateValue:function(n){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),n&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),n&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(n){for(var r,t=[n,1/0],i=0;i<this.options.ticks.length;i++)r=Math.abs(this.options.ticks[i]-n),r<=t[1]&&(t=[this.options.ticks[i],r]);return t[1]<=this.options.ticks_snap_bounds?t[0]:n},_applyPrecision:function(n){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(n,t)},_getNumDigitsAfterDecimalPlace:function(n){var t=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(n,t){var i=n.toFixed(t);return parseFloat(i)},_getPercentage:function(n){var t;this.touchCapable&&("touchstart"===n.type||"touchmove"===n.type||"touchend"===n.type)&&(n=n.changedTouches[0]);var r=n[this.mousePos],u=this._state.offset[this.stylePos],i=r-u;return"right"===this.stylePos&&(i=-i),t=i/this._state.size*100,t=Math.round(t/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(t=100-t),Math.max(0,Math.min(100,t))},_validateInputValue:function(n){if(isNaN(+n)){if(Array.isArray(n))return this._validateArray(n),n;throw new Error(o.formatInvalidInputErrorMsg(n));}return+n},_validateArray:function(n){for(var i,t=0;t<n.length;t++)if(i=n[t],"number"!=typeof i)throw new Error(o.formatInvalidInputErrorMsg(i));},_setDataVal:function(n){this.element.setAttribute("data-value",n);this.element.setAttribute("value",n);this.element.value=n},_trigger:function(t,i){var r,u,f;if(i=i||0===i?i:void 0,r=this.eventToCallbackMap[t],r&&r.length)for(u=0;u<r.length;u++)f=r[u],f(i);n&&this._triggerJQueryEvent(t,i)},_triggerJQueryEvent:function(n,t){var i={type:n,value:t};this.$element.trigger(i);this.$sliderElem.trigger(i)},_unbindJQueryEventHandlers:function(){this.$element.off();this.$sliderElem.off()},_setText:function(n,t){"undefined"!=typeof n.textContent?n.textContent=t:"undefined"!=typeof n.innerText&&(n.innerText=t)},_removeClass:function(n,t){for(var f,e,u=t.split(" "),i=n.className,r=0;r<u.length;r++)f=u[r],e=new RegExp("(?:\\s|^)"+f+"(?:\\s|$)"),i=i.replace(e," ");n.className=i.trim()},_addClass:function(n,t){for(var u=t.split(" "),i=n.className,r=0;r<u.length;r++){var f=u[r],e=new RegExp("(?:\\s|^)"+f+"(?:\\s|$)"),o=e.test(i);o||(i+=" "+f)}n.className=i.trim()},_offsetLeft:function(n){return n.getBoundingClientRect().left},_offsetRight:function(n){return n.getBoundingClientRect().right},_offsetTop:function(n){for(var t=n.offsetTop;(n=n.offsetParent)&&!isNaN(n.offsetTop);)t+=n.offsetTop,"BODY"!==n.tagName&&(t-=n.scrollTop);return t},_offset:function(n){return{left:this._offsetLeft(n),right:this._offsetRight(n),top:this._offsetTop(n)}},_css:function(t,i,r){if(n)n.style(t,i,r);else{var u=i.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(n,t){return t.toUpperCase()});t.style[u]=r}},_toValue:function(n){return this.options.scale.toValue.apply(this,[n])},_toPercentage:function(n){return this.options.scale.toPercentage.apply(this,[n])},_setTooltipPosition:function(){var n=[this.tooltip,this.tooltip_min,this.tooltip_max],t,i;"vertical"===this.options.orientation?(t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right",i="left"===t?"right":"left",n.forEach(function(n){this._addClass(n,t);n.style[i]="100%"}.bind(this))):"bottom"===this.options.tooltip_position?n.forEach(function(n){this._addClass(n,"bottom");n.style.top="22px"}.bind(this)):n.forEach(function(n){this._addClass(n,"top");n.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(n){for(var i,r=Math.abs(n-this.options.ticks[0]),u=0,t=0;t<this.options.ticks.length;++t)i=Math.abs(n-this.options.ticks[t]),r>i&&(r=i,u=t);return u},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}};n&&n.fn&&(n.fn.slider?(windowIsDefined&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),u=r):(n.bridget(i,t),u=i),n.bridget(r,t),n(function(){n("input[data-provide=slider]")[u]()}))}(n),t});!function(n){"use strict";function t(t,i){this.$element=n(t);this.options=n.extend({},this.defaults(),i);this.render()}t.VERSION="3.6.0";t.DEFAULTS={on:"On",off:"Off",onstyle:"primary",offstyle:"light",size:"normal",style:"",width:null,height:null};t.prototype.defaults=function(){return{on:this.$element.attr("data-on")||t.DEFAULTS.on,off:this.$element.attr("data-off")||t.DEFAULTS.off,onstyle:this.$element.attr("data-onstyle")||t.DEFAULTS.onstyle,offstyle:this.$element.attr("data-offstyle")||t.DEFAULTS.offstyle,size:this.$element.attr("data-size")||t.DEFAULTS.size,style:this.$element.attr("data-style")||t.DEFAULTS.style,width:this.$element.attr("data-width")||t.DEFAULTS.width,height:this.$element.attr("data-height")||t.DEFAULTS.height}};t.prototype.render=function(){var e,o;this._onstyle="btn-"+this.options.onstyle;this._offstyle="btn-"+this.options.offstyle;var r="large"===this.options.size||"lg"===this.options.size?"btn-lg":"small"===this.options.size||"sm"===this.options.size?"btn-sm":"mini"===this.options.size||"xs"===this.options.size?"btn-xs":"",t=n('<label for="'+this.$element.prop("id")+'" class="btn">').html(this.options.on).addClass(this._onstyle+" "+r),i=n('<label for="'+this.$element.prop("id")+'" class="btn">').html(this.options.off).addClass(this._offstyle+" "+r),u=n('<span class="toggle-handle btn btn-light">').addClass(r),f=n('<div class="toggle-group">').append(t,i,u),s=n('<div class="toggle btn" data-toggle="toggle" role="button">').addClass(this.$element.prop("checked")?this._onstyle:this._offstyle+" off").addClass(r).addClass(this.options.style);this.$element.wrap(s);n.extend(this,{$toggle:this.$element.parent(),$toggleOn:t,$toggleOff:i,$toggleGroup:f});this.$toggle.append(f);e=this.options.width||Math.max(t.outerWidth(),i.outerWidth())+u.outerWidth()/2;o=this.options.height||Math.max(t.outerHeight(),i.outerHeight());t.addClass("toggle-on");i.addClass("toggle-off");this.$toggle.css({width:e,height:o});this.options.height&&(t.css("line-height",t.height()+"px"),i.css("line-height",i.height()+"px"));this.update(!0);this.trigger(!0)};t.prototype.toggle=function(){this.$element.prop("checked")?this.off():this.on()};t.prototype.on=function(n){if(this.$element.prop("disabled"))return!1;this.$toggle.removeClass(this._offstyle+" off").addClass(this._onstyle);this.$element.prop("checked",!0);n||this.trigger()};t.prototype.off=function(n){if(this.$element.prop("disabled"))return!1;this.$toggle.removeClass(this._onstyle).addClass(this._offstyle+" off");this.$element.prop("checked",!1);n||this.trigger()};t.prototype.enable=function(){this.$toggle.removeClass("disabled");this.$toggle.removeAttr("disabled");this.$element.prop("disabled",!1)};t.prototype.disable=function(){this.$toggle.addClass("disabled");this.$toggle.attr("disabled","disabled");this.$element.prop("disabled",!0)};t.prototype.update=function(n){this.$element.prop("disabled")?this.disable():this.enable();this.$element.prop("checked")?this.on(n):this.off(n)};t.prototype.trigger=function(t){this.$element.off("change.bs.toggle");t||this.$element.change();this.$element.on("change.bs.toggle",n.proxy(function(){this.update()},this))};t.prototype.destroy=function(){this.$element.off("change.bs.toggle");this.$toggleGroup.remove();this.$element.removeData("bs.toggle");this.$element.unwrap()};var i=n.fn.bootstrapToggle;n.fn.bootstrapToggle=function(i){var r=Array.prototype.slice.call(arguments,1)[0];return this.each(function(){var f=n(this),u=f.data("bs.toggle"),e="object"==typeof i&&i;u||f.data("bs.toggle",u=new t(this,e));"string"==typeof i&&u[i]&&"boolean"==typeof r?u[i](r):"string"==typeof i&&u[i]&&u[i]()})};n.fn.bootstrapToggle.Constructor=t;n.fn.toggle.noConflict=function(){return n.fn.bootstrapToggle=i,this};n(function(){n("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()});n(document).on("click.bs.toggle","div[data-toggle^=toggle]",function(t){n(this).find("input[type=checkbox]").bootstrapToggle("toggle");t.preventDefault()})}(jQuery);!function(n){"use strict";n.matchMedia=n.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=42===t.offsetWidth,i.removeChild(r),{matches:u,media:n}}}(n.document)}(this),function(n){"use strict";function p(){y(!0)}var t={};n.respond=t;t.update=function(){};var f=[],it=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),w=function(n,t){var i=it();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){4!==i.readyState||200!==i.status&&304!==i.status||t(i.responseText)},4!==i.readyState&&i.send(null))},b=function(n){return n.replace(t.regex.minmaxwh,"").match(t.regex.other)};if(t.ajax=w,t.queue=f,t.unsupportedmq=b,t.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},t.mediaQueriesSupported=n.matchMedia&&null!==n.matchMedia("only all")&&n.matchMedia("only all").matches,!t.mediaQueriesSupported){var c,k,l,i=n.document,r=i.documentElement,e=[],o=[],u=[],a={},d=30,s=i.getElementsByTagName("head")[0]||r,rt=i.getElementsByTagName("base")[0],h=s.getElementsByTagName("link"),v=function(){var u,t=i.createElement("div"),n=i.body,o=r.style.fontSize,e=n&&n.style.fontSize,f=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=i.createElement("body"),n.style.background="none"),r.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),f&&r.insertBefore(n,r.firstChild),u=t.offsetWidth,f?r.removeChild(n):n.removeChild(t),r.style.fontSize=o,e&&(n.style.fontSize=e),u=l=parseFloat(u)},y=function(t){var rt="clientWidth",ut=r[rt],ft="CSS1Compat"===i.compatMode&&ut||i.body[rt]||ut,p={},ct=h[h.length-1],et=(new Date).getTime(),tt,g,nt,f,it;if(t&&c&&d>et-c)return n.clearTimeout(k),k=n.setTimeout(y,d),void 0;c=et;for(tt in e)if(e.hasOwnProperty(tt)){var a=e[tt],w=a.minw,b=a.maxw,ot=null===w,st=null===b,ht="em";w&&(w=parseFloat(w)*(w.indexOf(ht)>-1?l||v():1));b&&(b=parseFloat(b)*(b.indexOf(ht)>-1?l||v():1));a.hasquery&&(ot&&st||!(ot||ft>=w)||!(st||b>=ft))||(p[a.media]||(p[a.media]=[]),p[a.media].push(o[a.rules]))}for(g in u)u.hasOwnProperty(g)&&u[g]&&u[g].parentNode===s&&s.removeChild(u[g]);u.length=0;for(nt in p)p.hasOwnProperty(nt)&&(f=i.createElement("style"),it=p[nt].join("\n"),f.type="text/css",f.media=nt,s.insertBefore(f,ct.nextSibling),f.styleSheet?f.styleSheet.cssText=it:f.appendChild(i.createTextNode(it)),u.push(f))},g=function(n,i,r){var h=n.replace(t.regex.comments,"").replace(t.regex.keyframes,"").match(t.regex.media),c=h&&h.length||0,l,a,f,v,u,p,w,s;for(i=i.substring(0,i.lastIndexOf("/")),l=function(n){return n.replace(t.regex.urls,"$1"+i+"$2$3")},a=!c&&r,i.length&&(i+="/"),a&&(c=1),f=0;c>f;f++)for(a?(v=r,o.push(l(n))):(v=h[f].match(t.regex.findStyles)&&RegExp.$1,o.push(RegExp.$2&&l(RegExp.$2))),p=v.split(","),w=p.length,s=0;w>s;s++)u=p[s],b(u)||e.push({media:u.split("(")[0].match(t.regex.only)&&RegExp.$2||"all",rules:o.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(t.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(t.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});y()},nt=function(){if(f.length){var t=f.shift();w(t.href,function(i){g(i,t.href,t.media);a[t.href]=!0;n.setTimeout(function(){nt()},0)})}},tt=function(){for(var r=0;r<h.length;r++){var i=h[r],t=i.href,u=i.media,e=i.rel&&"stylesheet"===i.rel.toLowerCase();t&&e&&!a[t]&&(i.styleSheet&&i.styleSheet.rawCssText?(g(i.styleSheet.rawCssText,t,u),a[t]=!0):(!/^([a-zA-Z:]*\/\/)/.test(t)&&!rt||t.replace(RegExp.$1,"").split("/")[0]===n.location.host)&&("//"===t.substring(0,2)&&(t=n.location.protocol+t),f.push({href:t,media:u})))}nt()};tt();t.update=tt;t.getEmValue=v;n.addEventListener?n.addEventListener("resize",p,!1):n.attachEvent&&n.attachEvent("onresize",p)}}(this)