/*!
  * Bootstrap v4.6.1 (https://getbootstrap.com/)
  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */(function(v,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("jquery"),require("popper.js")):typeof define=="function"&&define.amd?define(["exports","jquery","popper.js"],y):(v=typeof globalThis<"u"?globalThis:v||self,y(v.bootstrap={},v.jQuery,v.Popper))})(this,function(v,y,et){"use strict";function c(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var t=c(y),f=c(et);function F(o,a){for(var r=0;r<a.length;r++){var e=a[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}function S(o,a,r){return a&&F(o.prototype,a),r&&F(o,r),o}function E(){return E=Object.assign||function(o){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(o[e]=r[e])}return o},E.apply(this,arguments)}function Pe(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,H(o,a)}function H(o,a){return H=Object.setPrototypeOf||function(e,i){return e.__proto__=i,e},H(o,a)}var N="transitionend",Fe=1e6,W=1e3;function $(o){return o===null||typeof o>"u"?""+o:{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase()}function pt(){return{bindType:N,delegateType:N,handle:function(a){if(t.default(a.target).is(this))return a.handleObj.handler.apply(this,arguments)}}}function Tt(o){var a=this,r=!1;return t.default(this).one(d.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||d.triggerTransitionEnd(a)},o),this}function tt(){t.default.fn.emulateTransitionEnd=Tt,t.default.event.special[d.TRANSITION_END]=pt()}var d={TRANSITION_END:"bsTransitionEnd",getUID:function(a){do a+=~~(Math.random()*Fe);while(document.getElementById(a));return a},getSelectorFromElement:function(a){var r=a.getAttribute("data-target");if(!r||r==="#"){var e=a.getAttribute("href");r=e&&e!=="#"?e.trim():""}try{return document.querySelector(r)?r:null}catch{return null}},getTransitionDurationFromElement:function(a){if(!a)return 0;var r=t.default(a).css("transition-duration"),e=t.default(a).css("transition-delay"),i=parseFloat(r),n=parseFloat(e);return!i&&!n?0:(r=r.split(",")[0],e=e.split(",")[0],(parseFloat(r)+parseFloat(e))*W)},reflow:function(a){return a.offsetHeight},triggerTransitionEnd:function(a){t.default(a).trigger(N)},supportsTransitionEnd:function(){return!!N},isElement:function(a){return(a[0]||a).nodeType},typeCheckConfig:function(a,r,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=e[i],s=r[i],l=s&&d.isElement(s)?"element":$(s);if(!new RegExp(n).test(l))throw new Error(a.toUpperCase()+": "+('Option "'+i+'" provided type "'+l+'" ')+('but expected type "'+n+'".'))}},findShadowRoot:function(a){if(!document.documentElement.attachShadow)return null;if(typeof a.getRootNode=="function"){var r=a.getRootNode();return r instanceof ShadowRoot?r:null}return a instanceof ShadowRoot?a:a.parentNode?d.findShadowRoot(a.parentNode):null},jQueryDetection:function(){if(typeof t.default>"u")throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var a=t.default.fn.jquery.split(" ")[0].split("."),r=1,e=2,i=9,n=1,s=4;if(a[0]<e&&a[1]<i||a[0]===r&&a[1]===i&&a[2]<n||a[0]>=s)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};d.jQueryDetection(),tt();var I="alert",Me="4.6.1",D="bs.alert",K="."+D,xe=".data-api",k=t.default.fn[I],de="alert",te="fade",B="show",it="close"+K,V="closed"+K,ce="click"+K+xe,$e='[data-dismiss="alert"]',Q=function(){function o(r){this._element=r}var a=o.prototype;return a.close=function(e){var i=this._element;e&&(i=this._getRootElement(e));var n=this._triggerCloseEvent(i);n.isDefaultPrevented()||this._removeElement(i)},a.dispose=function(){t.default.removeData(this._element,D),this._element=null},a._getRootElement=function(e){var i=d.getSelectorFromElement(e),n=!1;return i&&(n=document.querySelector(i)),n||(n=t.default(e).closest("."+de)[0]),n},a._triggerCloseEvent=function(e){var i=t.default.Event(it);return t.default(e).trigger(i),i},a._removeElement=function(e){var i=this;if(t.default(e).removeClass(B),!t.default(e).hasClass(te)){this._destroyElement(e);return}var n=d.getTransitionDurationFromElement(e);t.default(e).one(d.TRANSITION_END,function(s){return i._destroyElement(e,s)}).emulateTransitionEnd(n)},a._destroyElement=function(e){t.default(e).detach().trigger(V).remove()},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this),n=i.data(D);n||(n=new o(this),i.data(D,n)),e==="close"&&n[e](this)})},o._handleDismiss=function(e){return function(i){i&&i.preventDefault(),e.close(this)}},S(o,null,[{key:"VERSION",get:function(){return Me}}]),o}();t.default(document).on(ce,$e,Q._handleDismiss(new Q)),t.default.fn[I]=Q._jQueryInterface,t.default.fn[I].Constructor=Q,t.default.fn[I].noConflict=function(){return t.default.fn[I]=k,Q._jQueryInterface};var Y="button",h="4.6.1",p="bs.button",M="."+p,O=".data-api",nt=t.default.fn[Y],b="active",oi="btn",si="focus",li="click"+M+O,ui="focus"+M+O+" "+("blur"+M+O),fi="load"+M+O,St='[data-toggle^="button"]',di='[data-toggle="buttons"]',ci='[data-toggle="button"]',hi='[data-toggle="buttons"] .btn',rt='input:not([type="hidden"])',_i=".active",Ct=".btn",he=function(){function o(r){this._element=r,this.shouldAvoidTriggerChange=!1}var a=o.prototype;return a.toggle=function(){var e=!0,i=!0,n=t.default(this._element).closest(di)[0];if(n){var s=this._element.querySelector(rt);if(s){if(s.type==="radio")if(s.checked&&this._element.classList.contains(b))e=!1;else{var l=n.querySelector(_i);l&&t.default(l).removeClass(b)}e&&((s.type==="checkbox"||s.type==="radio")&&(s.checked=!this._element.classList.contains(b)),this.shouldAvoidTriggerChange||t.default(s).trigger("change")),s.focus(),i=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(i&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(b)),e&&t.default(this._element).toggleClass(b))},a.dispose=function(){t.default.removeData(this._element,p),this._element=null},o._jQueryInterface=function(e,i){return this.each(function(){var n=t.default(this),s=n.data(p);s||(s=new o(this),n.data(p,s)),s.shouldAvoidTriggerChange=i,e==="toggle"&&s[e]()})},S(o,null,[{key:"VERSION",get:function(){return h}}]),o}();t.default(document).on(li,St,function(o){var a=o.target,r=a;if(t.default(a).hasClass(oi)||(a=t.default(a).closest(Ct)[0]),!a||a.hasAttribute("disabled")||a.classList.contains("disabled"))o.preventDefault();else{var e=a.querySelector(rt);if(e&&(e.hasAttribute("disabled")||e.classList.contains("disabled"))){o.preventDefault();return}(r.tagName==="INPUT"||a.tagName!=="LABEL")&&he._jQueryInterface.call(t.default(a),"toggle",r.tagName==="INPUT")}}).on(ui,St,function(o){var a=t.default(o.target).closest(Ct)[0];t.default(a).toggleClass(si,/^focus(in)?$/.test(o.type))}),t.default(window).on(fi,function(){for(var o=[].slice.call(document.querySelectorAll(hi)),a=0,r=o.length;a<r;a++){var e=o[a],i=e.querySelector(rt);i.checked||i.hasAttribute("checked")?e.classList.add(b):e.classList.remove(b)}o=[].slice.call(document.querySelectorAll(ci));for(var n=0,s=o.length;n<s;n++){var l=o[n];l.getAttribute("aria-pressed")==="true"?l.classList.add(b):l.classList.remove(b)}}),t.default.fn[Y]=he._jQueryInterface,t.default.fn[Y].Constructor=he,t.default.fn[Y].noConflict=function(){return t.default.fn[Y]=nt,he._jQueryInterface};var ie="carousel",vi="4.6.1",_e="bs.carousel",C="."+_e,At=".data-api",gi=t.default.fn[ie],mi=37,Ei=39,pi=500,Ti=40,Si="carousel",q="active",Ci="slide",Ai="carousel-item-right",yi="carousel-item-left",Ni="carousel-item-next",Ii="carousel-item-prev",Di="pointer-event",ke="next",Ve="prev",Oi="left",bi="right",wi="slide"+C,yt="slid"+C,Li="keydown"+C,Ri="mouseenter"+C,Pi="mouseleave"+C,Fi="touchstart"+C,Mi="touchmove"+C,xi="touchend"+C,$i="pointerdown"+C,ki="pointerup"+C,Vi="dragstart"+C,ji="load"+C+At,Hi="click"+C+At,Ui=".active",je=".active.carousel-item",Wi=".carousel-item",Ki=".carousel-item img",Bi=".carousel-item-next, .carousel-item-prev",Qi=".carousel-indicators",Yi="[data-slide], [data-slide-to]",qi='[data-ride="carousel"]',at={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Gi={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Nt={TOUCH:"touch",PEN:"pen"},ne=function(){function o(r,e){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(e),this._element=r,this._indicatorsElement=this._element.querySelector(Qi),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=!!(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var a=o.prototype;return a.next=function(){this._isSliding||this._slide(ke)},a.nextWhenVisible=function(){var e=t.default(this._element);!document.hidden&&e.is(":visible")&&e.css("visibility")!=="hidden"&&this.next()},a.prev=function(){this._isSliding||this._slide(Ve)},a.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Bi)&&(d.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},a.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},a.to=function(e){var i=this;this._activeElement=this._element.querySelector(je);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0)){if(this._isSliding){t.default(this._element).one(yt,function(){return i.to(e)});return}if(n===e){this.pause(),this.cycle();return}var s=e>n?ke:Ve;this._slide(s,this._items[e])}},a.dispose=function(){t.default(this._element).off(C),t.default.removeData(this._element,_e),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},a._getConfig=function(e){return e=E({},at,e),d.typeCheckConfig(ie,e,Gi),e},a._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=Ti)){var i=e/this.touchDeltaX;this.touchDeltaX=0,i>0&&this.prev(),i<0&&this.next()}},a._addEventListeners=function(){var e=this;this._config.keyboard&&t.default(this._element).on(Li,function(i){return e._keydown(i)}),this._config.pause==="hover"&&t.default(this._element).on(Ri,function(i){return e.pause(i)}).on(Pi,function(i){return e.cycle(i)}),this._config.touch&&this._addTouchEventListeners()},a._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var i=function(u){e._pointerEvent&&Nt[u.originalEvent.pointerType.toUpperCase()]?e.touchStartX=u.originalEvent.clientX:e._pointerEvent||(e.touchStartX=u.originalEvent.touches[0].clientX)},n=function(u){e.touchDeltaX=u.originalEvent.touches&&u.originalEvent.touches.length>1?0:u.originalEvent.touches[0].clientX-e.touchStartX},s=function(u){e._pointerEvent&&Nt[u.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=u.originalEvent.clientX-e.touchStartX),e._handleSwipe(),e._config.pause==="hover"&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(_){return e.cycle(_)},pi+e._config.interval))};t.default(this._element.querySelectorAll(Ki)).on(Vi,function(l){return l.preventDefault()}),this._pointerEvent?(t.default(this._element).on($i,function(l){return i(l)}),t.default(this._element).on(ki,function(l){return s(l)}),this._element.classList.add(Di)):(t.default(this._element).on(Fi,function(l){return i(l)}),t.default(this._element).on(Mi,function(l){return n(l)}),t.default(this._element).on(xi,function(l){return s(l)}))}},a._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case mi:e.preventDefault(),this.prev();break;case Ei:e.preventDefault(),this.next();break}},a._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Wi)):[],this._items.indexOf(e)},a._getItemByDirection=function(e,i){var n=e===ke,s=e===Ve,l=this._getItemIndex(i),u=this._items.length-1,_=s&&l===0||n&&l===u;if(_&&!this._config.wrap)return i;var g=e===Ve?-1:1,m=(l+g)%this._items.length;return m===-1?this._items[this._items.length-1]:this._items[m]},a._triggerSlideEvent=function(e,i){var n=this._getItemIndex(e),s=this._getItemIndex(this._element.querySelector(je)),l=t.default.Event(wi,{relatedTarget:e,direction:i,from:s,to:n});return t.default(this._element).trigger(l),l},a._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var i=[].slice.call(this._indicatorsElement.querySelectorAll(Ui));t.default(i).removeClass(q);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t.default(n).addClass(q)}},a._updateInterval=function(){var e=this._activeElement||this._element.querySelector(je);if(e){var i=parseInt(e.getAttribute("data-interval"),10);i?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=i):this._config.interval=this._config.defaultInterval||this._config.interval}},a._slide=function(e,i){var n=this,s=this._element.querySelector(je),l=this._getItemIndex(s),u=i||s&&this._getItemByDirection(e,s),_=this._getItemIndex(u),g=!!this._interval,m,T,x;if(e===ke?(m=yi,T=Ni,x=Oi):(m=Ai,T=Ii,x=bi),u&&t.default(u).hasClass(q)){this._isSliding=!1;return}var P=this._triggerSlideEvent(u,x);if(!P.isDefaultPrevented()&&!(!s||!u)){this._isSliding=!0,g&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var fe=t.default.Event(yt,{relatedTarget:u,direction:x,from:l,to:_});if(t.default(this._element).hasClass(Ci)){t.default(u).addClass(T),d.reflow(u),t.default(s).addClass(m),t.default(u).addClass(m);var Et=d.getTransitionDurationFromElement(s);t.default(s).one(d.TRANSITION_END,function(){t.default(u).removeClass(m+" "+T).addClass(q),t.default(s).removeClass(q+" "+T+" "+m),n._isSliding=!1,setTimeout(function(){return t.default(n._element).trigger(fe)},0)}).emulateTransitionEnd(Et)}else t.default(s).removeClass(q),t.default(u).addClass(q),this._isSliding=!1,t.default(this._element).trigger(fe);g&&this.cycle()}},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this).data(_e),n=E({},at,t.default(this).data());typeof e=="object"&&(n=E({},n,e));var s=typeof e=="string"?e:n.slide;if(i||(i=new o(this,n),t.default(this).data(_e,i)),typeof e=="number")i.to(e);else if(typeof s=="string"){if(typeof i[s]>"u")throw new TypeError('No method named "'+s+'"');i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())})},o._dataApiClickHandler=function(e){var i=d.getSelectorFromElement(this);if(i){var n=t.default(i)[0];if(!(!n||!t.default(n).hasClass(Si))){var s=E({},t.default(n).data(),t.default(this).data()),l=this.getAttribute("data-slide-to");l&&(s.interval=!1),o._jQueryInterface.call(t.default(n),s),l&&t.default(n).data(_e).to(l),e.preventDefault()}}},S(o,null,[{key:"VERSION",get:function(){return vi}},{key:"Default",get:function(){return at}}]),o}();t.default(document).on(Hi,Yi,ne._dataApiClickHandler),t.default(window).on(ji,function(){for(var o=[].slice.call(document.querySelectorAll(qi)),a=0,r=o.length;a<r;a++){var e=t.default(o[a]);ne._jQueryInterface.call(e,e.data())}}),t.default.fn[ie]=ne._jQueryInterface,t.default.fn[ie].Constructor=ne,t.default.fn[ie].noConflict=function(){return t.default.fn[ie]=gi,ne._jQueryInterface};var re="collapse",zi="4.6.1",G="bs.collapse",ve="."+G,Xi=".data-api",Ji=t.default.fn[re],z="show",ge="collapse",He="collapsing",ot="collapsed",It="width",Zi="height",en="show"+ve,tn="shown"+ve,nn="hide"+ve,rn="hidden"+ve,an="click"+ve+Xi,on=".show, .collapsing",Dt='[data-toggle="collapse"]',st={toggle:!0,parent:""},sn={toggle:"boolean",parent:"(string|element)"},me=function(){function o(r,e){this._isTransitioning=!1,this._element=r,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+r.id+'"],'+('[data-toggle="collapse"][data-target="#'+r.id+'"]')));for(var i=[].slice.call(document.querySelectorAll(Dt)),n=0,s=i.length;n<s;n++){var l=i[n],u=d.getSelectorFromElement(l),_=[].slice.call(document.querySelectorAll(u)).filter(function(g){return g===r});u!==null&&_.length>0&&(this._selector=u,this._triggerArray.push(l))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var a=o.prototype;return a.toggle=function(){t.default(this._element).hasClass(z)?this.hide():this.show()},a.show=function(){var e=this;if(!(this._isTransitioning||t.default(this._element).hasClass(z))){var i,n;if(this._parent&&(i=[].slice.call(this._parent.querySelectorAll(on)).filter(function(T){return typeof e._config.parent=="string"?T.getAttribute("data-parent")===e._config.parent:T.classList.contains(ge)}),i.length===0&&(i=null)),!(i&&(n=t.default(i).not(this._selector).data(G),n&&n._isTransitioning))){var s=t.default.Event(en);if(t.default(this._element).trigger(s),!s.isDefaultPrevented()){i&&(o._jQueryInterface.call(t.default(i).not(this._selector),"hide"),n||t.default(i).data(G,null));var l=this._getDimension();t.default(this._element).removeClass(ge).addClass(He),this._element.style[l]=0,this._triggerArray.length&&t.default(this._triggerArray).removeClass(ot).attr("aria-expanded",!0),this.setTransitioning(!0);var u=function(){t.default(e._element).removeClass(He).addClass(ge+" "+z),e._element.style[l]="",e.setTransitioning(!1),t.default(e._element).trigger(tn)},_=l[0].toUpperCase()+l.slice(1),g="scroll"+_,m=d.getTransitionDurationFromElement(this._element);t.default(this._element).one(d.TRANSITION_END,u).emulateTransitionEnd(m),this._element.style[l]=this._element[g]+"px"}}}},a.hide=function(){var e=this;if(!(this._isTransitioning||!t.default(this._element).hasClass(z))){var i=t.default.Event(nn);if(t.default(this._element).trigger(i),!i.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",d.reflow(this._element),t.default(this._element).addClass(He).removeClass(ge+" "+z);var s=this._triggerArray.length;if(s>0)for(var l=0;l<s;l++){var u=this._triggerArray[l],_=d.getSelectorFromElement(u);if(_!==null){var g=t.default([].slice.call(document.querySelectorAll(_)));g.hasClass(z)||t.default(u).addClass(ot).attr("aria-expanded",!1)}}this.setTransitioning(!0);var m=function(){e.setTransitioning(!1),t.default(e._element).removeClass(He).addClass(ge).trigger(rn)};this._element.style[n]="";var T=d.getTransitionDurationFromElement(this._element);t.default(this._element).one(d.TRANSITION_END,m).emulateTransitionEnd(T)}}},a.setTransitioning=function(e){this._isTransitioning=e},a.dispose=function(){t.default.removeData(this._element,G),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},a._getConfig=function(e){return e=E({},st,e),e.toggle=!!e.toggle,d.typeCheckConfig(re,e,sn),e},a._getDimension=function(){var e=t.default(this._element).hasClass(It);return e?It:Zi},a._getParent=function(){var e=this,i;d.isElement(this._config.parent)?(i=this._config.parent,typeof this._config.parent.jquery<"u"&&(i=this._config.parent[0])):i=document.querySelector(this._config.parent);var n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s=[].slice.call(i.querySelectorAll(n));return t.default(s).each(function(l,u){e._addAriaAndCollapsedClass(o._getTargetFromElement(u),[u])}),i},a._addAriaAndCollapsedClass=function(e,i){var n=t.default(e).hasClass(z);i.length&&t.default(i).toggleClass(ot,!n).attr("aria-expanded",n)},o._getTargetFromElement=function(e){var i=d.getSelectorFromElement(e);return i?document.querySelector(i):null},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this),n=i.data(G),s=E({},st,i.data(),typeof e=="object"&&e?e:{});if(!n&&s.toggle&&typeof e=="string"&&/show|hide/.test(e)&&(s.toggle=!1),n||(n=new o(this,s),i.data(G,n)),typeof e=="string"){if(typeof n[e]>"u")throw new TypeError('No method named "'+e+'"');n[e]()}})},S(o,null,[{key:"VERSION",get:function(){return zi}},{key:"Default",get:function(){return st}}]),o}();t.default(document).on(an,Dt,function(o){o.currentTarget.tagName==="A"&&o.preventDefault();var a=t.default(this),r=d.getSelectorFromElement(this),e=[].slice.call(document.querySelectorAll(r));t.default(e).each(function(){var i=t.default(this),n=i.data(G),s=n?"toggle":a.data();me._jQueryInterface.call(i,s)})}),t.default.fn[re]=me._jQueryInterface,t.default.fn[re].Constructor=me,t.default.fn[re].noConflict=function(){return t.default.fn[re]=Ji,me._jQueryInterface};var ae="dropdown",ln="4.6.1",Ee="bs.dropdown",j="."+Ee,lt=".data-api",un=t.default.fn[ae],pe=27,Ot=32,bt=9,ut=38,ft=40,fn=3,dn=new RegExp(ut+"|"+ft+"|"+pe),Ue="disabled",w="show",cn="dropup",hn="dropright",_n="dropleft",wt="dropdown-menu-right",vn="position-static",Lt="hide"+j,Rt="hidden"+j,gn="show"+j,mn="shown"+j,En="click"+j,dt="click"+j+lt,Pt="keydown"+j+lt,pn="keyup"+j+lt,We='[data-toggle="dropdown"]',Tn=".dropdown form",ct=".dropdown-menu",Sn=".navbar-nav",Cn=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",An="top-start",yn="top-end",Nn="bottom-start",In="bottom-end",Dn="right-start",On="left-start",bn={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},wn={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},U=function(){function o(r,e){this._element=r,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var a=o.prototype;return a.toggle=function(){if(!(this._element.disabled||t.default(this._element).hasClass(Ue))){var e=t.default(this._menu).hasClass(w);o._clearMenus(),!e&&this.show(!0)}},a.show=function(e){if(e===void 0&&(e=!1),!(this._element.disabled||t.default(this._element).hasClass(Ue)||t.default(this._menu).hasClass(w))){var i={relatedTarget:this._element},n=t.default.Event(gn,i),s=o._getParentFromElement(this._element);if(t.default(s).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&e){if(typeof f.default>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var l=this._element;this._config.reference==="parent"?l=s:d.isElement(this._config.reference)&&(l=this._config.reference,typeof this._config.reference.jquery<"u"&&(l=this._config.reference[0])),this._config.boundary!=="scrollParent"&&t.default(s).addClass(vn),this._popper=new f.default(l,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&t.default(s).closest(Sn).length===0&&t.default(document.body).children().on("mouseover",null,t.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t.default(this._menu).toggleClass(w),t.default(s).toggleClass(w).trigger(t.default.Event(mn,i))}}},a.hide=function(){if(!(this._element.disabled||t.default(this._element).hasClass(Ue)||!t.default(this._menu).hasClass(w))){var e={relatedTarget:this._element},i=t.default.Event(Lt,e),n=o._getParentFromElement(this._element);t.default(n).trigger(i),!i.isDefaultPrevented()&&(this._popper&&this._popper.destroy(),t.default(this._menu).toggleClass(w),t.default(n).toggleClass(w).trigger(t.default.Event(Rt,e)))}},a.dispose=function(){t.default.removeData(this._element,Ee),t.default(this._element).off(j),this._element=null,this._menu=null,this._popper!==null&&(this._popper.destroy(),this._popper=null)},a.update=function(){this._inNavbar=this._detectNavbar(),this._popper!==null&&this._popper.scheduleUpdate()},a._addEventListeners=function(){var e=this;t.default(this._element).on(En,function(i){i.preventDefault(),i.stopPropagation(),e.toggle()})},a._getConfig=function(e){return e=E({},this.constructor.Default,t.default(this._element).data(),e),d.typeCheckConfig(ae,e,this.constructor.DefaultType),e},a._getMenuElement=function(){if(!this._menu){var e=o._getParentFromElement(this._element);e&&(this._menu=e.querySelector(ct))}return this._menu},a._getPlacement=function(){var e=t.default(this._element.parentNode),i=Nn;return e.hasClass(cn)?i=t.default(this._menu).hasClass(wt)?yn:An:e.hasClass(hn)?i=Dn:e.hasClass(_n)?i=On:t.default(this._menu).hasClass(wt)&&(i=In),i},a._detectNavbar=function(){return t.default(this._element).closest(".navbar").length>0},a._getOffset=function(){var e=this,i={};return typeof this._config.offset=="function"?i.fn=function(n){return n.offsets=E({},n.offsets,e._config.offset(n.offsets,e._element)),n}:i.offset=this._config.offset,i},a._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return this._config.display==="static"&&(e.modifiers.applyStyle={enabled:!1}),E({},e,this._config.popperConfig)},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this).data(Ee),n=typeof e=="object"?e:null;if(i||(i=new o(this,n),t.default(this).data(Ee,i)),typeof e=="string"){if(typeof i[e]>"u")throw new TypeError('No method named "'+e+'"');i[e]()}})},o._clearMenus=function(e){if(!(e&&(e.which===fn||e.type==="keyup"&&e.which!==bt)))for(var i=[].slice.call(document.querySelectorAll(We)),n=0,s=i.length;n<s;n++){var l=o._getParentFromElement(i[n]),u=t.default(i[n]).data(Ee),_={relatedTarget:i[n]};if(e&&e.type==="click"&&(_.clickEvent=e),!!u){var g=u._menu;if(t.default(l).hasClass(w)&&!(e&&(e.type==="click"&&/input|textarea/i.test(e.target.tagName)||e.type==="keyup"&&e.which===bt)&&t.default.contains(l,e.target))){var m=t.default.Event(Lt,_);t.default(l).trigger(m),!m.isDefaultPrevented()&&("ontouchstart"in document.documentElement&&t.default(document.body).children().off("mouseover",null,t.default.noop),i[n].setAttribute("aria-expanded","false"),u._popper&&u._popper.destroy(),t.default(g).removeClass(w),t.default(l).removeClass(w).trigger(t.default.Event(Rt,_)))}}}},o._getParentFromElement=function(e){var i,n=d.getSelectorFromElement(e);return n&&(i=document.querySelector(n)),i||e.parentNode},o._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?e.which===Ot||e.which!==pe&&(e.which!==ft&&e.which!==ut||t.default(e.target).closest(ct).length):!dn.test(e.which))&&!(this.disabled||t.default(this).hasClass(Ue))){var i=o._getParentFromElement(this),n=t.default(i).hasClass(w);if(!(!n&&e.which===pe)){if(e.preventDefault(),e.stopPropagation(),!n||e.which===pe||e.which===Ot){e.which===pe&&t.default(i.querySelector(We)).trigger("focus"),t.default(this).trigger("click");return}var s=[].slice.call(i.querySelectorAll(Cn)).filter(function(u){return t.default(u).is(":visible")});if(s.length!==0){var l=s.indexOf(e.target);e.which===ut&&l>0&&l--,e.which===ft&&l<s.length-1&&l++,l<0&&(l=0),s[l].focus()}}}},S(o,null,[{key:"VERSION",get:function(){return ln}},{key:"Default",get:function(){return bn}},{key:"DefaultType",get:function(){return wn}}]),o}();t.default(document).on(Pt,We,U._dataApiKeydownHandler).on(Pt,ct,U._dataApiKeydownHandler).on(dt+" "+pn,U._clearMenus).on(dt,We,function(o){o.preventDefault(),o.stopPropagation(),U._jQueryInterface.call(t.default(this),"toggle")}).on(dt,Tn,function(o){o.stopPropagation()}),t.default.fn[ae]=U._jQueryInterface,t.default.fn[ae].Constructor=U,t.default.fn[ae].noConflict=function(){return t.default.fn[ae]=un,U._jQueryInterface};var oe="modal",Ln="4.6.1",Te="bs.modal",A="."+Te,Rn=".data-api",Pn=t.default.fn[oe],Ft=27,Fn="modal-dialog-scrollable",Mn="modal-scrollbar-measure",xn="modal-backdrop",Mt="modal-open",se="fade",Ke="show",xt="modal-static",$n="hide"+A,kn="hidePrevented"+A,$t="hidden"+A,kt="show"+A,Vn="shown"+A,Be="focusin"+A,Vt="resize"+A,ht="click.dismiss"+A,jt="keydown.dismiss"+A,jn="mouseup.dismiss"+A,Ht="mousedown.dismiss"+A,Hn="click"+A+Rn,Un=".modal-dialog",Wn=".modal-body",Kn='[data-toggle="modal"]',Bn='[data-dismiss="modal"]',Ut=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Wt=".sticky-top",_t={backdrop:!0,keyboard:!0,focus:!0,show:!0},Qn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Se=function(){function o(r,e){this._config=this._getConfig(e),this._element=r,this._dialog=r.querySelector(Un),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var a=o.prototype;return a.toggle=function(e){return this._isShown?this.hide():this.show(e)},a.show=function(e){var i=this;if(!(this._isShown||this._isTransitioning)){var n=t.default.Event(kt,{relatedTarget:e});t.default(this._element).trigger(n),!n.isDefaultPrevented()&&(this._isShown=!0,t.default(this._element).hasClass(se)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t.default(this._element).on(ht,Bn,function(s){return i.hide(s)}),t.default(this._dialog).on(Ht,function(){t.default(i._element).one(jn,function(s){t.default(s.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(e)}))}},a.hide=function(e){var i=this;if(e&&e.preventDefault(),!(!this._isShown||this._isTransitioning)){var n=t.default.Event($n);if(t.default(this._element).trigger(n),!(!this._isShown||n.isDefaultPrevented())){this._isShown=!1;var s=t.default(this._element).hasClass(se);if(s&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t.default(document).off(Be),t.default(this._element).removeClass(Ke),t.default(this._element).off(ht),t.default(this._dialog).off(Ht),s){var l=d.getTransitionDurationFromElement(this._element);t.default(this._element).one(d.TRANSITION_END,function(u){return i._hideModal(u)}).emulateTransitionEnd(l)}else this._hideModal()}}},a.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return t.default(e).off(A)}),t.default(document).off(Be),t.default.removeData(this._element,Te),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},a.handleUpdate=function(){this._adjustDialog()},a._getConfig=function(e){return e=E({},_t,e),d.typeCheckConfig(oe,e,Qn),e},a._triggerBackdropTransition=function(){var e=this,i=t.default.Event(kn);if(t.default(this._element).trigger(i),!i.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(xt);var s=d.getTransitionDurationFromElement(this._dialog);t.default(this._element).off(d.TRANSITION_END),t.default(this._element).one(d.TRANSITION_END,function(){e._element.classList.remove(xt),n||t.default(e._element).one(d.TRANSITION_END,function(){e._element.style.overflowY=""}).emulateTransitionEnd(e._element,s)}).emulateTransitionEnd(s),this._element.focus()}},a._showElement=function(e){var i=this,n=t.default(this._element).hasClass(se),s=this._dialog?this._dialog.querySelector(Wn):null;(!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),this._element.setAttribute("role","dialog"),t.default(this._dialog).hasClass(Fn)&&s?s.scrollTop=0:this._element.scrollTop=0,n&&d.reflow(this._element),t.default(this._element).addClass(Ke),this._config.focus&&this._enforceFocus();var l=t.default.Event(Vn,{relatedTarget:e}),u=function(){i._config.focus&&i._element.focus(),i._isTransitioning=!1,t.default(i._element).trigger(l)};if(n){var _=d.getTransitionDurationFromElement(this._dialog);t.default(this._dialog).one(d.TRANSITION_END,u).emulateTransitionEnd(_)}else u()},a._enforceFocus=function(){var e=this;t.default(document).off(Be).on(Be,function(i){document!==i.target&&e._element!==i.target&&t.default(e._element).has(i.target).length===0&&e._element.focus()})},a._setEscapeEvent=function(){var e=this;this._isShown?t.default(this._element).on(jt,function(i){e._config.keyboard&&i.which===Ft?(i.preventDefault(),e.hide()):!e._config.keyboard&&i.which===Ft&&e._triggerBackdropTransition()}):this._isShown||t.default(this._element).off(jt)},a._setResizeEvent=function(){var e=this;this._isShown?t.default(window).on(Vt,function(i){return e.handleUpdate(i)}):t.default(window).off(Vt)},a._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){t.default(document.body).removeClass(Mt),e._resetAdjustments(),e._resetScrollbar(),t.default(e._element).trigger($t)})},a._removeBackdrop=function(){this._backdrop&&(t.default(this._backdrop).remove(),this._backdrop=null)},a._showBackdrop=function(e){var i=this,n=t.default(this._element).hasClass(se)?se:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=xn,n&&this._backdrop.classList.add(n),t.default(this._backdrop).appendTo(document.body),t.default(this._element).on(ht,function(_){if(i._ignoreBackdropClick){i._ignoreBackdropClick=!1;return}_.target===_.currentTarget&&(i._config.backdrop==="static"?i._triggerBackdropTransition():i.hide())}),n&&d.reflow(this._backdrop),t.default(this._backdrop).addClass(Ke),!e)return;if(!n){e();return}var s=d.getTransitionDurationFromElement(this._backdrop);t.default(this._backdrop).one(d.TRANSITION_END,e).emulateTransitionEnd(s)}else if(!this._isShown&&this._backdrop){t.default(this._backdrop).removeClass(Ke);var l=function(){i._removeBackdrop(),e&&e()};if(t.default(this._element).hasClass(se)){var u=d.getTransitionDurationFromElement(this._backdrop);t.default(this._backdrop).one(d.TRANSITION_END,l).emulateTransitionEnd(u)}else l()}else e&&e()},a._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},a._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},a._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},a._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var i=[].slice.call(document.querySelectorAll(Ut)),n=[].slice.call(document.querySelectorAll(Wt));t.default(i).each(function(u,_){var g=_.style.paddingRight,m=t.default(_).css("padding-right");t.default(_).data("padding-right",g).css("padding-right",parseFloat(m)+e._scrollbarWidth+"px")}),t.default(n).each(function(u,_){var g=_.style.marginRight,m=t.default(_).css("margin-right");t.default(_).data("margin-right",g).css("margin-right",parseFloat(m)-e._scrollbarWidth+"px")});var s=document.body.style.paddingRight,l=t.default(document.body).css("padding-right");t.default(document.body).data("padding-right",s).css("padding-right",parseFloat(l)+this._scrollbarWidth+"px")}t.default(document.body).addClass(Mt)},a._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(Ut));t.default(e).each(function(s,l){var u=t.default(l).data("padding-right");t.default(l).removeData("padding-right"),l.style.paddingRight=u||""});var i=[].slice.call(document.querySelectorAll(""+Wt));t.default(i).each(function(s,l){var u=t.default(l).data("margin-right");typeof u<"u"&&t.default(l).css("margin-right",u).removeData("margin-right")});var n=t.default(document.body).data("padding-right");t.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},a._getScrollbarWidth=function(){var e=document.createElement("div");e.className=Mn,document.body.appendChild(e);var i=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),i},o._jQueryInterface=function(e,i){return this.each(function(){var n=t.default(this).data(Te),s=E({},_t,t.default(this).data(),typeof e=="object"&&e?e:{});if(n||(n=new o(this,s),t.default(this).data(Te,n)),typeof e=="string"){if(typeof n[e]>"u")throw new TypeError('No method named "'+e+'"');n[e](i)}else s.show&&n.show(i)})},S(o,null,[{key:"VERSION",get:function(){return Ln}},{key:"Default",get:function(){return _t}}]),o}();t.default(document).on(Hn,Kn,function(o){var a=this,r,e=d.getSelectorFromElement(this);e&&(r=document.querySelector(e));var i=t.default(r).data(Te)?"toggle":E({},t.default(r).data(),t.default(this).data());(this.tagName==="A"||this.tagName==="AREA")&&o.preventDefault();var n=t.default(r).one(kt,function(s){s.isDefaultPrevented()||n.one($t,function(){t.default(a).is(":visible")&&a.focus()})});Se._jQueryInterface.call(t.default(r),i,this)}),t.default.fn[oe]=Se._jQueryInterface,t.default.fn[oe].Constructor=Se,t.default.fn[oe].noConflict=function(){return t.default.fn[oe]=Pn,Se._jQueryInterface};var Yn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],qn=/^aria-[\w-]*$/i,Gn={"*":["class","dir","id","lang","role",qn],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:[]},zn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Xn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Jn(o,a){var r=o.nodeName.toLowerCase();if(a.indexOf(r)!==-1)return Yn.indexOf(r)!==-1?!!(zn.test(o.nodeValue)||Xn.test(o.nodeValue)):!0;for(var e=a.filter(function(s){return s instanceof RegExp}),i=0,n=e.length;i<n;i++)if(e[i].test(r))return!0;return!1}function Kt(o,a,r){if(o.length===0)return o;if(r&&typeof r=="function")return r(o);for(var e=new window.DOMParser,i=e.parseFromString(o,"text/html"),n=Object.keys(a),s=[].slice.call(i.body.querySelectorAll("*")),l=function(T,x){var P=s[T],fe=P.nodeName.toLowerCase();if(n.indexOf(P.nodeName.toLowerCase())===-1)return P.parentNode.removeChild(P),"continue";var Et=[].slice.call(P.attributes),aa=[].concat(a["*"]||[],a[fe]||[]);Et.forEach(function(ai){Jn(ai,aa)||P.removeAttribute(ai.nodeName)})},u=0,_=s.length;u<_;u++)var g=l(u);return i.body.innerHTML}var X="tooltip",Zn="4.6.1",Qe="bs.tooltip",L="."+Qe,er=t.default.fn[X],Bt="bs-tooltip",tr=new RegExp("(^|\\s)"+Bt+"\\S+","g"),ir=["sanitize","whiteList","sanitizeFn"],Ce="fade",Ae="show",ye="show",vt="out",nr=".tooltip-inner",rr=".arrow",Ne="hover",gt="focus",ar="click",or="manual",sr={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},lr={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",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Gn,popperConfig:null},ur={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)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},fr={HIDE:"hide"+L,HIDDEN:"hidden"+L,SHOW:"show"+L,SHOWN:"shown"+L,INSERTED:"inserted"+L,CLICK:"click"+L,FOCUSIN:"focusin"+L,FOCUSOUT:"focusout"+L,MOUSEENTER:"mouseenter"+L,MOUSELEAVE:"mouseleave"+L},J=function(){function o(r,e){if(typeof f.default>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=r,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var a=o.prototype;return a.enable=function(){this._isEnabled=!0},a.disable=function(){this._isEnabled=!1},a.toggleEnabled=function(){this._isEnabled=!this._isEnabled},a.toggle=function(e){if(this._isEnabled)if(e){var i=this.constructor.DATA_KEY,n=t.default(e.currentTarget).data(i);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t.default(e.currentTarget).data(i,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(t.default(this.getTipElement()).hasClass(Ae)){this._leave(null,this);return}this._enter(null,this)}},a.dispose=function(){clearTimeout(this._timeout),t.default.removeData(this.element,this.constructor.DATA_KEY),t.default(this.element).off(this.constructor.EVENT_KEY),t.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t.default(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},a.show=function(){var e=this;if(t.default(this.element).css("display")==="none")throw new Error("Please use show on visible elements");var i=t.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t.default(this.element).trigger(i);var n=d.findShadowRoot(this.element),s=t.default.contains(n!==null?n:this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!s)return;var l=this.getTipElement(),u=d.getUID(this.constructor.NAME);l.setAttribute("id",u),this.element.setAttribute("aria-describedby",u),this.setContent(),this.config.animation&&t.default(l).addClass(Ce);var _=typeof this.config.placement=="function"?this.config.placement.call(this,l,this.element):this.config.placement,g=this._getAttachment(_);this.addAttachmentClass(g);var m=this._getContainer();t.default(l).data(this.constructor.DATA_KEY,this),t.default.contains(this.element.ownerDocument.documentElement,this.tip)||t.default(l).appendTo(m),t.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new f.default(this.element,l,this._getPopperConfig(g)),t.default(l).addClass(Ae),t.default(l).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&t.default(document.body).children().on("mouseover",null,t.default.noop);var T=function(){e.config.animation&&e._fixTransition();var fe=e._hoverState;e._hoverState=null,t.default(e.element).trigger(e.constructor.Event.SHOWN),fe===vt&&e._leave(null,e)};if(t.default(this.tip).hasClass(Ce)){var x=d.getTransitionDurationFromElement(this.tip);t.default(this.tip).one(d.TRANSITION_END,T).emulateTransitionEnd(x)}else T()}},a.hide=function(e){var i=this,n=this.getTipElement(),s=t.default.Event(this.constructor.Event.HIDE),l=function(){i._hoverState!==ye&&n.parentNode&&n.parentNode.removeChild(n),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),t.default(i.element).trigger(i.constructor.Event.HIDDEN),i._popper!==null&&i._popper.destroy(),e&&e()};if(t.default(this.element).trigger(s),!s.isDefaultPrevented()){if(t.default(n).removeClass(Ae),"ontouchstart"in document.documentElement&&t.default(document.body).children().off("mouseover",null,t.default.noop),this._activeTrigger[ar]=!1,this._activeTrigger[gt]=!1,this._activeTrigger[Ne]=!1,t.default(this.tip).hasClass(Ce)){var u=d.getTransitionDurationFromElement(n);t.default(n).one(d.TRANSITION_END,l).emulateTransitionEnd(u)}else l();this._hoverState=""}},a.update=function(){this._popper!==null&&this._popper.scheduleUpdate()},a.isWithContent=function(){return!!this.getTitle()},a.addAttachmentClass=function(e){t.default(this.getTipElement()).addClass(Bt+"-"+e)},a.getTipElement=function(){return this.tip=this.tip||t.default(this.config.template)[0],this.tip},a.setContent=function(){var e=this.getTipElement();this.setElementContent(t.default(e.querySelectorAll(nr)),this.getTitle()),t.default(e).removeClass(Ce+" "+Ae)},a.setElementContent=function(e,i){if(typeof i=="object"&&(i.nodeType||i.jquery)){this.config.html?t.default(i).parent().is(e)||e.empty().append(i):e.text(t.default(i).text());return}this.config.html?(this.config.sanitize&&(i=Kt(i,this.config.whiteList,this.config.sanitizeFn)),e.html(i)):e.text(i)},a.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e=typeof this.config.title=="function"?this.config.title.call(this.element):this.config.title),e},a._getPopperConfig=function(e){var i=this,n={placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:rr},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(l){l.originalPlacement!==l.placement&&i._handlePopperPlacementChange(l)},onUpdate:function(l){return i._handlePopperPlacementChange(l)}};return E({},n,this.config.popperConfig)},a._getOffset=function(){var e=this,i={};return typeof this.config.offset=="function"?i.fn=function(n){return n.offsets=E({},n.offsets,e.config.offset(n.offsets,e.element)),n}:i.offset=this.config.offset,i},a._getContainer=function(){return this.config.container===!1?document.body:d.isElement(this.config.container)?t.default(this.config.container):t.default(document).find(this.config.container)},a._getAttachment=function(e){return sr[e.toUpperCase()]},a._setListeners=function(){var e=this,i=this.config.trigger.split(" ");i.forEach(function(n){if(n==="click")t.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(u){return e.toggle(u)});else if(n!==or){var s=n===Ne?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,l=n===Ne?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t.default(e.element).on(s,e.config.selector,function(u){return e._enter(u)}).on(l,e.config.selector,function(u){return e._leave(u)})}}),this._hideModalHandler=function(){e.element&&e.hide()},t.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=E({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},a._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||e!=="string")&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},a._enter=function(e,i){var n=this.constructor.DATA_KEY;if(i=i||t.default(e.currentTarget).data(n),i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t.default(e.currentTarget).data(n,i)),e&&(i._activeTrigger[e.type==="focusin"?gt:Ne]=!0),t.default(i.getTipElement()).hasClass(Ae)||i._hoverState===ye){i._hoverState=ye;return}if(clearTimeout(i._timeout),i._hoverState=ye,!i.config.delay||!i.config.delay.show){i.show();return}i._timeout=setTimeout(function(){i._hoverState===ye&&i.show()},i.config.delay.show)},a._leave=function(e,i){var n=this.constructor.DATA_KEY;if(i=i||t.default(e.currentTarget).data(n),i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t.default(e.currentTarget).data(n,i)),e&&(i._activeTrigger[e.type==="focusout"?gt:Ne]=!1),!i._isWithActiveTrigger()){if(clearTimeout(i._timeout),i._hoverState=vt,!i.config.delay||!i.config.delay.hide){i.hide();return}i._timeout=setTimeout(function(){i._hoverState===vt&&i.hide()},i.config.delay.hide)}},a._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},a._getConfig=function(e){var i=t.default(this.element).data();return Object.keys(i).forEach(function(n){ir.indexOf(n)!==-1&&delete i[n]}),e=E({},this.constructor.Default,i,typeof e=="object"&&e?e:{}),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),d.typeCheckConfig(X,e,this.constructor.DefaultType),e.sanitize&&(e.template=Kt(e.template,e.whiteList,e.sanitizeFn)),e},a._getDelegateConfig=function(){var e={};if(this.config)for(var i in this.config)this.constructor.Default[i]!==this.config[i]&&(e[i]=this.config[i]);return e},a._cleanTipClass=function(){var e=t.default(this.getTipElement()),i=e.attr("class").match(tr);i!==null&&i.length&&e.removeClass(i.join(""))},a._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},a._fixTransition=function(){var e=this.getTipElement(),i=this.config.animation;e.getAttribute("x-placement")===null&&(t.default(e).removeClass(Ce),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this),n=i.data(Qe),s=typeof e=="object"&&e;if(!(!n&&/dispose|hide/.test(e))&&(n||(n=new o(this,s),i.data(Qe,n)),typeof e=="string")){if(typeof n[e]>"u")throw new TypeError('No method named "'+e+'"');n[e]()}})},S(o,null,[{key:"VERSION",get:function(){return Zn}},{key:"Default",get:function(){return lr}},{key:"NAME",get:function(){return X}},{key:"DATA_KEY",get:function(){return Qe}},{key:"Event",get:function(){return fr}},{key:"EVENT_KEY",get:function(){return L}},{key:"DefaultType",get:function(){return ur}}]),o}();t.default.fn[X]=J._jQueryInterface,t.default.fn[X].Constructor=J,t.default.fn[X].noConflict=function(){return t.default.fn[X]=er,J._jQueryInterface};var le="popover",dr="4.6.1",Ye="bs.popover",R="."+Ye,cr=t.default.fn[le],Qt="bs-popover",hr=new RegExp("(^|\\s)"+Qt+"\\S+","g"),_r="fade",vr="show",gr=".popover-header",mr=".popover-body",Er=E({},J.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>'}),pr=E({},J.DefaultType,{content:"(string|element|function)"}),Tr={HIDE:"hide"+R,HIDDEN:"hidden"+R,SHOW:"show"+R,SHOWN:"shown"+R,INSERTED:"inserted"+R,CLICK:"click"+R,FOCUSIN:"focusin"+R,FOCUSOUT:"focusout"+R,MOUSEENTER:"mouseenter"+R,MOUSELEAVE:"mouseleave"+R},qe=function(o){Pe(a,o);function a(){return o.apply(this,arguments)||this}var r=a.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(i){t.default(this.getTipElement()).addClass(Qt+"-"+i)},r.getTipElement=function(){return this.tip=this.tip||t.default(this.config.template)[0],this.tip},r.setContent=function(){var i=t.default(this.getTipElement());this.setElementContent(i.find(gr),this.getTitle());var n=this._getContent();typeof n=="function"&&(n=n.call(this.element)),this.setElementContent(i.find(mr),n),i.removeClass(_r+" "+vr)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var i=t.default(this.getTipElement()),n=i.attr("class").match(hr);n!==null&&n.length>0&&i.removeClass(n.join(""))},a._jQueryInterface=function(i){return this.each(function(){var n=t.default(this).data(Ye),s=typeof i=="object"?i:null;if(!(!n&&/dispose|hide/.test(i))&&(n||(n=new a(this,s),t.default(this).data(Ye,n)),typeof i=="string")){if(typeof n[i]>"u")throw new TypeError('No method named "'+i+'"');n[i]()}})},S(a,null,[{key:"VERSION",get:function(){return dr}},{key:"Default",get:function(){return Er}},{key:"NAME",get:function(){return le}},{key:"DATA_KEY",get:function(){return Ye}},{key:"Event",get:function(){return Tr}},{key:"EVENT_KEY",get:function(){return R}},{key:"DefaultType",get:function(){return pr}}]),a}(J);t.default.fn[le]=qe._jQueryInterface,t.default.fn[le].Constructor=qe,t.default.fn[le].noConflict=function(){return t.default.fn[le]=cr,qe._jQueryInterface};var Z="scrollspy",Sr="4.6.1",Ge="bs.scrollspy",ze="."+Ge,Cr=".data-api",Ar=t.default.fn[Z],yr="dropdown-item",ee="active",Nr="activate"+ze,Ir="scroll"+ze,Dr="load"+ze+Cr,Or="offset",Yt="position",br='[data-spy="scroll"]',qt=".nav, .list-group",mt=".nav-link",wr=".nav-item",Gt=".list-group-item",Lr=".dropdown",Rr=".dropdown-item",Pr=".dropdown-toggle",zt={offset:10,method:"auto",target:""},Fr={offset:"number",method:"string",target:"(string|element)"},Ie=function(){function o(r,e){var i=this;this._element=r,this._scrollElement=r.tagName==="BODY"?window:r,this._config=this._getConfig(e),this._selector=this._config.target+" "+mt+","+(this._config.target+" "+Gt+",")+(this._config.target+" "+Rr),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t.default(this._scrollElement).on(Ir,function(n){return i._process(n)}),this.refresh(),this._process()}var a=o.prototype;return a.refresh=function(){var e=this,i=this._scrollElement===this._scrollElement.window?Or:Yt,n=this._config.method==="auto"?i:this._config.method,s=n===Yt?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var l=[].slice.call(document.querySelectorAll(this._selector));l.map(function(u){var _,g=d.getSelectorFromElement(u);if(g&&(_=document.querySelector(g)),_){var m=_.getBoundingClientRect();if(m.width||m.height)return[t.default(_)[n]().top+s,g]}return null}).filter(function(u){return u}).sort(function(u,_){return u[0]-_[0]}).forEach(function(u){e._offsets.push(u[0]),e._targets.push(u[1])})},a.dispose=function(){t.default.removeData(this._element,Ge),t.default(this._scrollElement).off(ze),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},a._getConfig=function(e){if(e=E({},zt,typeof e=="object"&&e?e:{}),typeof e.target!="string"&&d.isElement(e.target)){var i=t.default(e.target).attr("id");i||(i=d.getUID(Z),t.default(e.target).attr("id",i)),e.target="#"+i}return d.typeCheckConfig(Z,e,Fr),e},a._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},a._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},a._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},a._process=function(){var e=this._getScrollTop()+this._config.offset,i=this._getScrollHeight(),n=this._config.offset+i-this._getOffsetHeight();if(this._scrollHeight!==i&&this.refresh(),e>=n){var s=this._targets[this._targets.length-1];this._activeTarget!==s&&this._activate(s);return}if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(var l=this._offsets.length;l--;){var u=this._activeTarget!==this._targets[l]&&e>=this._offsets[l]&&(typeof this._offsets[l+1]>"u"||e<this._offsets[l+1]);u&&this._activate(this._targets[l])}},a._activate=function(e){this._activeTarget=e,this._clear();var i=this._selector.split(",").map(function(s){return s+'[data-target="'+e+'"],'+s+'[href="'+e+'"]'}),n=t.default([].slice.call(document.querySelectorAll(i.join(","))));n.hasClass(yr)?(n.closest(Lr).find(Pr).addClass(ee),n.addClass(ee)):(n.addClass(ee),n.parents(qt).prev(mt+", "+Gt).addClass(ee),n.parents(qt).prev(wr).children(mt).addClass(ee)),t.default(this._scrollElement).trigger(Nr,{relatedTarget:e})},a._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(ee)}).forEach(function(e){return e.classList.remove(ee)})},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this).data(Ge),n=typeof e=="object"&&e;if(i||(i=new o(this,n),t.default(this).data(Ge,i)),typeof e=="string"){if(typeof i[e]>"u")throw new TypeError('No method named "'+e+'"');i[e]()}})},S(o,null,[{key:"VERSION",get:function(){return Sr}},{key:"Default",get:function(){return zt}}]),o}();t.default(window).on(Dr,function(){for(var o=[].slice.call(document.querySelectorAll(br)),a=o.length,r=a;r--;){var e=t.default(o[r]);Ie._jQueryInterface.call(e,e.data())}}),t.default.fn[Z]=Ie._jQueryInterface,t.default.fn[Z].Constructor=Ie,t.default.fn[Z].noConflict=function(){return t.default.fn[Z]=Ar,Ie._jQueryInterface};var De="tab",Mr="4.6.1",Xe="bs.tab",Oe="."+Xe,xr=".data-api",$r=t.default.fn[De],kr="dropdown-menu",be="active",Vr="disabled",Xt="fade",Jt="show",jr="hide"+Oe,Hr="hidden"+Oe,Ur="show"+Oe,Wr="shown"+Oe,Kr="click"+Oe+xr,Br=".dropdown",Qr=".nav, .list-group",Zt=".active",ei="> li > .active",Yr='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',qr=".dropdown-toggle",Gr="> .dropdown-menu .active",we=function(){function o(r){this._element=r}var a=o.prototype;return a.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t.default(this._element).hasClass(be)||t.default(this._element).hasClass(Vr))){var i,n,s=t.default(this._element).closest(Qr)[0],l=d.getSelectorFromElement(this._element);if(s){var u=s.nodeName==="UL"||s.nodeName==="OL"?ei:Zt;n=t.default.makeArray(t.default(s).find(u)),n=n[n.length-1]}var _=t.default.Event(jr,{relatedTarget:this._element}),g=t.default.Event(Ur,{relatedTarget:n});if(n&&t.default(n).trigger(_),t.default(this._element).trigger(g),!(g.isDefaultPrevented()||_.isDefaultPrevented())){l&&(i=document.querySelector(l)),this._activate(this._element,s);var m=function(){var x=t.default.Event(Hr,{relatedTarget:e._element}),P=t.default.Event(Wr,{relatedTarget:n});t.default(n).trigger(x),t.default(e._element).trigger(P)};i?this._activate(i,i.parentNode,m):m()}}},a.dispose=function(){t.default.removeData(this._element,Xe),this._element=null},a._activate=function(e,i,n){var s=this,l=i&&(i.nodeName==="UL"||i.nodeName==="OL")?t.default(i).find(ei):t.default(i).children(Zt),u=l[0],_=n&&u&&t.default(u).hasClass(Xt),g=function(){return s._transitionComplete(e,u,n)};if(u&&_){var m=d.getTransitionDurationFromElement(u);t.default(u).removeClass(Jt).one(d.TRANSITION_END,g).emulateTransitionEnd(m)}else g()},a._transitionComplete=function(e,i,n){if(i){t.default(i).removeClass(be);var s=t.default(i.parentNode).find(Gr)[0];s&&t.default(s).removeClass(be),i.getAttribute("role")==="tab"&&i.setAttribute("aria-selected",!1)}t.default(e).addClass(be),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!0),d.reflow(e),e.classList.contains(Xt)&&e.classList.add(Jt);var l=e.parentNode;if(l&&l.nodeName==="LI"&&(l=l.parentNode),l&&t.default(l).hasClass(kr)){var u=t.default(e).closest(Br)[0];if(u){var _=[].slice.call(u.querySelectorAll(qr));t.default(_).addClass(be)}e.setAttribute("aria-expanded",!0)}n&&n()},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this),n=i.data(Xe);if(n||(n=new o(this),i.data(Xe,n)),typeof e=="string"){if(typeof n[e]>"u")throw new TypeError('No method named "'+e+'"');n[e]()}})},S(o,null,[{key:"VERSION",get:function(){return Mr}}]),o}();t.default(document).on(Kr,Yr,function(o){o.preventDefault(),we._jQueryInterface.call(t.default(this),"show")}),t.default.fn[De]=we._jQueryInterface,t.default.fn[De].Constructor=we,t.default.fn[De].noConflict=function(){return t.default.fn[De]=$r,we._jQueryInterface};var ue="toast",zr="4.6.1",Je="bs.toast",Le="."+Je,Xr=t.default.fn[ue],Jr="fade",ti="hide",Re="show",ii="showing",ni="click.dismiss"+Le,Zr="hide"+Le,ea="hidden"+Le,ta="show"+Le,ia="shown"+Le,na='[data-dismiss="toast"]',ri={animation:!0,autohide:!0,delay:500},ra={animation:"boolean",autohide:"boolean",delay:"number"},Ze=function(){function o(r,e){this._element=r,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var a=o.prototype;return a.show=function(){var e=this,i=t.default.Event(ta);if(t.default(this._element).trigger(i),!i.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Jr);var n=function(){e._element.classList.remove(ii),e._element.classList.add(Re),t.default(e._element).trigger(ia),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove(ti),d.reflow(this._element),this._element.classList.add(ii),this._config.animation){var s=d.getTransitionDurationFromElement(this._element);t.default(this._element).one(d.TRANSITION_END,n).emulateTransitionEnd(s)}else n()}},a.hide=function(){if(this._element.classList.contains(Re)){var e=t.default.Event(Zr);t.default(this._element).trigger(e),!e.isDefaultPrevented()&&this._close()}},a.dispose=function(){this._clearTimeout(),this._element.classList.contains(Re)&&this._element.classList.remove(Re),t.default(this._element).off(ni),t.default.removeData(this._element,Je),this._element=null,this._config=null},a._getConfig=function(e){return e=E({},ri,t.default(this._element).data(),typeof e=="object"&&e?e:{}),d.typeCheckConfig(ue,e,this.constructor.DefaultType),e},a._setListeners=function(){var e=this;t.default(this._element).on(ni,na,function(){return e.hide()})},a._close=function(){var e=this,i=function(){e._element.classList.add(ti),t.default(e._element).trigger(ea)};if(this._element.classList.remove(Re),this._config.animation){var n=d.getTransitionDurationFromElement(this._element);t.default(this._element).one(d.TRANSITION_END,i).emulateTransitionEnd(n)}else i()},a._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this),n=i.data(Je),s=typeof e=="object"&&e;if(n||(n=new o(this,s),i.data(Je,n)),typeof e=="string"){if(typeof n[e]>"u")throw new TypeError('No method named "'+e+'"');n[e](this)}})},S(o,null,[{key:"VERSION",get:function(){return zr}},{key:"DefaultType",get:function(){return ra}},{key:"Default",get:function(){return ri}}]),o}();t.default.fn[ue]=Ze._jQueryInterface,t.default.fn[ue].Constructor=Ze,t.default.fn[ue].noConflict=function(){return t.default.fn[ue]=Xr,Ze._jQueryInterface},v.Alert=Q,v.Button=he,v.Carousel=ne,v.Collapse=me,v.Dropdown=U,v.Modal=Se,v.Popover=qe,v.Scrollspy=Ie,v.Tab=we,v.Toast=Ze,v.Tooltip=J,v.Util=d,Object.defineProperty(v,"__esModule",{value:!0})}),function(v){v.isScrollToFixed=function(y){return!!v(y).data("ScrollToFixed")},v.ScrollToFixed=function(y,et){var c=this;c.$el=v(y),c.el=y,c.$el.data("ScrollToFixed",c);var t=!1,f=c.$el,F,S,E,Pe,H=0,N=0,Fe=-1,W=-1,$=null,pt,Tt;function tt(){f.trigger("preUnfixed.ScrollToFixed"),k(),f.trigger("unfixed.ScrollToFixed"),W=-1,H=f.offset().top,N=f.offset().left,c.options.offsets&&(N+=f.offset().left-f.position().left),Fe==-1&&(Fe=N),F=f.css("position"),t=!0,c.options.bottom!=-1&&(f.trigger("preFixed.ScrollToFixed"),K(),f.trigger("fixed.ScrollToFixed"))}function d(){var h=c.options.limit;return h?typeof h=="function"?h.apply(f):h:0}function I(){return F==="fixed"}function Me(){return F==="absolute"}function D(){return!(I()||Me())}function K(){I()||($.css({display:f.css("display"),width:f.outerWidth(!0),height:f.outerHeight(!0),float:f.css("float")}),cssOptions={"z-index":c.options.zIndex,position:"fixed",top:c.options.bottom==-1?te():"",bottom:c.options.bottom==-1?"":c.options.bottom,"margin-left":"0px"},c.options.dontSetWidth||(cssOptions.width=f.width()),f.css(cssOptions),f.addClass(c.options.baseClassName),c.options.className&&f.addClass(c.options.className),F="fixed")}function xe(){var h=d(),p=N;c.options.removeOffsets&&(p="",h=h-H),cssOptions={position:"absolute",top:h,left:p,"margin-left":"0px",bottom:""},c.options.dontSetWidth||(cssOptions.width=f.width()),f.css(cssOptions),F="absolute"}function k(){D()||(W=-1,$.css("display","none"),f.css({"z-index":Pe,width:"",position:S,left:"",top:E,"margin-left":""}),f.removeClass("scroll-to-fixed-fixed"),c.options.className&&f.removeClass(c.options.className),F=null)}function de(h){h!=W&&(f.css("left",N-h),W=h)}function te(){var h=c.options.marginTop;return h?typeof h=="function"?h.apply(f):h:0}function B(){if(v.isScrollToFixed(f)){var h=t;t?D()&&(H=f.offset().top,N=f.offset().left):tt();var p=v(window).scrollLeft(),M=v(window).scrollTop(),O=d();c.options.minWidth&&v(window).width()<c.options.minWidth||c.options.maxWidth&&v(window).width()>c.options.maxWidth?(!D()||!h)&&(V(),f.trigger("preUnfixed.ScrollToFixed"),k(),f.trigger("unfixed.ScrollToFixed")):c.options.bottom==-1?O>0&&M>=O-te()?(!Me()||!h)&&(V(),f.trigger("preAbsolute.ScrollToFixed"),xe(),f.trigger("unfixed.ScrollToFixed")):M>=H-te()?((!I()||!h)&&(V(),f.trigger("preFixed.ScrollToFixed"),K(),W=-1,f.trigger("fixed.ScrollToFixed")),de(p)):(!D()||!h)&&(V(),f.trigger("preUnfixed.ScrollToFixed"),k(),f.trigger("unfixed.ScrollToFixed")):O>0?M+v(window).height()-f.outerHeight(!0)>=O-(te()||-it())?I()&&(V(),f.trigger("preUnfixed.ScrollToFixed"),S==="absolute"?xe():k(),f.trigger("unfixed.ScrollToFixed")):(I()||(V(),f.trigger("preFixed.ScrollToFixed"),K()),de(p),f.trigger("fixed.ScrollToFixed")):de(p)}}function it(){return c.options.bottom?c.options.bottom:0}function V(){var h=f.css("position");h=="absolute"?f.trigger("postAbsolute.ScrollToFixed"):h=="fixed"?f.trigger("postFixed.ScrollToFixed"):f.trigger("postUnfixed.ScrollToFixed")}var ce=function(h){f.is(":visible")&&(t=!1,B())},$e=function(h){window.requestAnimationFrame?requestAnimationFrame(B):B()},Q=function(){var h=document.body;if(document.createElement&&h&&h.appendChild&&h.removeChild){var p=document.createElement("div");if(!p.getBoundingClientRect)return null;p.innerHTML="x",p.style.cssText="position:fixed;top:100px;",h.appendChild(p);var M=h.style.height,O=h.scrollTop;h.style.height="3000px",h.scrollTop=500;var nt=p.getBoundingClientRect().top;h.style.height=M;var b=nt===100;return h.removeChild(p),h.scrollTop=O,b}return null},Y=function(h){h=h||window.event,h.preventDefault&&h.preventDefault(),h.returnValue=!1};c.init=function(){c.options=v.extend({},v.ScrollToFixed.defaultOptions,et),Pe=f.css("z-index"),c.$el.css("z-index",c.options.zIndex),$=v("<div />"),F=f.css("position"),S=f.css("position"),E=f.css("top"),D()&&c.$el.after($),v(window).bind("resize.ScrollToFixed",ce),v(window).bind("scroll.ScrollToFixed",$e),"ontouchmove"in window&&v(window).bind("touchmove.ScrollToFixed",B),c.options.preFixed&&f.bind("preFixed.ScrollToFixed",c.options.preFixed),c.options.postFixed&&f.bind("postFixed.ScrollToFixed",c.options.postFixed),c.options.preUnfixed&&f.bind("preUnfixed.ScrollToFixed",c.options.preUnfixed),c.options.postUnfixed&&f.bind("postUnfixed.ScrollToFixed",c.options.postUnfixed),c.options.preAbsolute&&f.bind("preAbsolute.ScrollToFixed",c.options.preAbsolute),c.options.postAbsolute&&f.bind("postAbsolute.ScrollToFixed",c.options.postAbsolute),c.options.fixed&&f.bind("fixed.ScrollToFixed",c.options.fixed),c.options.unfixed&&f.bind("unfixed.ScrollToFixed",c.options.unfixed),c.options.spacerClass&&$.addClass(c.options.spacerClass),f.bind("resize.ScrollToFixed",function(){$.height(f.height())}),f.bind("scroll.ScrollToFixed",function(){f.trigger("preUnfixed.ScrollToFixed"),k(),f.trigger("unfixed.ScrollToFixed"),B()}),f.bind("detach.ScrollToFixed",function(h){Y(h),f.trigger("preUnfixed.ScrollToFixed"),k(),f.trigger("unfixed.ScrollToFixed"),v(window).unbind("resize.ScrollToFixed",ce),v(window).unbind("scroll.ScrollToFixed",$e),f.unbind(".ScrollToFixed"),$.remove(),c.$el.removeData("ScrollToFixed")}),ce()},c.init()},v.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1e3,baseClassName:"scroll-to-fixed-fixed"},v.fn.scrollToFixed=function(y){return this.each(function(){new v.ScrollToFixed(this,y)})}}(jQuery);