/*!
  * Bootstrap v5.1.3 (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(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t="transitionend",e=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},i=t=>{const i=e(t);return i&&document.querySelector(i)?i:null},n=t=>{const i=e(t);return i?document.querySelector(i):null},s=e=>{e.dispatchEvent(new Event(t))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,a=(t,e,i)=>{Object.keys(i).forEach((n=>{const s=i[n],r=e[n],a=r&&o(r)?"element":null==(l=r)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}))},l=t=>!(!o(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),c=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),h=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?h(t.parentNode):null},d=()=>{},u=t=>{t.offsetHeight},f=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},p=[],m=()=>"rtl"===document.documentElement.dir,g=t=>{var e;e=()=>{const e=f();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(()=>{p.forEach((t=>t()))})),p.push(e)):e()},_=t=>{"function"==typeof t&&t()},v=(e,i,n=!0)=>{if(!n)return void _(e);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(i)+5;let r=!1;const a=({target:n})=>{n===i&&(r=!0,i.removeEventListener(t,a),_(e))};i.addEventListener(t,a),setTimeout((()=>{r||s(i)}),o)},b=(t,e,i,n)=>{let s=t.indexOf(e);if(-1===s)return t[!i&&n?t.length-1:0];const o=t.length;return s+=i?1:-1,n&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))]},y=/[^.]*(?=\..*)\.|.*/,w=/\..*/,E=/::\d+$/,C={};let T=1;const A={mouseenter:"mouseover",mouseleave:"mouseout"},O=/^(mouseenter|mouseleave)/i,L=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function k(t,e){return e&&`${e}::${T++}`||t.uidEvent||T++}function x(t){const e=k(t);return t.uidEvent=e,C[e]=C[e]||{},C[e]}function $(t,e,i=null){const n=Object.keys(t);for(let s=0,o=n.length;s<o;s++){const o=t[n[s]];if(o.originalHandler===e&&o.delegationSelector===i)return o}return null}function D(t,e,i){const n="string"==typeof e,s=n?i:e;let o=I(t);return L.has(o)||(o=t),[n,s,o]}function S(t,e,i,n,s){if("string"!=typeof e||!t)return;if(i||(i=n,n=null),O.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};n?n=t(n):i=t(i)}const[o,r,a]=D(e,i,n),l=x(t),c=l[a]||(l[a]={}),h=$(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=k(r,e.replace(y,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&P.off(t,s.type,e,i),i.apply(r,[s]);return null}}(t,i,n):function(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&P.off(t,n.type,e),e.apply(t,[n])}}(t,i);u.delegationSelector=o?i:null,u.originalHandler=r,u.oneOff=s,u.uidEvent=d,c[d]=u,0===a.indexOf("touch")?t.addEventListener(a,u,{passive:!1,capture:o}):t.addEventListener(a,u,o)}function N(t,e,i,n,s){const o=$(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function I(t){return t=t.replace(w,""),A[t]||t}const P={on(t,e,i,n){S(t,e,i,n,!1)},one(t,e,i,n){S(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=D(e,i,n),a=r!==e,l=x(t),c=e.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void N(t,l,r,o,s?i:null)}c&&Object.keys(l).forEach((i=>{!function(t,e,i,n){const s=e[i]||{};Object.keys(s).forEach((o=>{if(o.includes(n)){const n=s[o];N(t,e,i,n.originalHandler,n.delegationSelector)}}))}(t,l,i,e.slice(1))}));const h=l[r]||{};Object.keys(h).forEach((i=>{const n=i.replace(E,"");if(!a||e.includes(n)){const e=h[i];N(t,l,r,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=f(),s=I(e),o=e!==s,r=L.has(s);let a,l=!0,c=!0,h=!1,d=null;return o&&n&&(a=n.Event(e,i),n(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(s,l,!0)):d=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach((t=>{Object.defineProperty(d,t,{get:()=>i[t]})})),h&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}},M=new Map,j={set(t,e,i){M.has(t)||M.set(t,new Map);M.get(t).set(e,i)},get:(t,e)=>M.has(t)&&M.get(t).get(e)||null,remove(t,e){if(!M.has(t))return;const i=M.get(t);i.delete(e),0===i.size&&M.delete(t)}};class R{constructor(t){(t=r(t))&&(this._element=t,j.set(this._element,this.constructor.DATA_KEY,this))}dispose(){j.remove(this._element,this.constructor.DATA_KEY),P.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,i=!0){v(t,e,i)}static getInstance(t){return j.get(r(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const H=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;P.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),c(this))return;const o=n(this)||this.closest(`.${s}`);t.getOrCreateInstance(o)[e]()}))},B=".bs.alert",W=`close${B}`,z=`closed${B}`;class q extends R{static get NAME(){return"alert"}close(){if(P.trigger(this._element,W).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),P.trigger(this._element,z),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=q.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}H(q,"close"),g(q);const F='[data-bs-toggle="button"]';class U extends R{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=U.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}function V(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function X(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}P.on(document,"click.bs.button.data-api",F,(t=>{t.preventDefault();const e=t.target.closest(F);U.getOrCreateInstance(e).toggle()})),g(U);const K={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${X(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${X(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=V(t.dataset[i])})),e},getDataAttribute:(t,e)=>V(t.getAttribute(`data-bs-${X(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft}),style(t,e){Object.assign(t.style,e)},toggleClass(t,e){t&&(t.classList.contains(e)?t.classList.remove(e):t.classList.add(e))},addClass(t,e){t.classList.contains(e)||t.classList.add(e)},addStyle(t,e){Object.keys(e).forEach((i=>{t.style[i]=e[i]}))},removeClass(t,e){t.classList.contains(e)&&t.classList.remove(e)},hasClass:(t,e)=>t.classList.contains(e)},Y={closest:(t,e)=>t.closest(e),find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(e)&&i.push(n),n=n.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(", ");return this.find(e,t).filter((t=>!c(t)&&l(t)))}},Q="carousel",G=".bs.carousel",Z=".data-api",J={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},tt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},et="next",it="prev",nt="left",st="right",ot={ArrowLeft:st,ArrowRight:nt},rt=`slide${G}`,at=`slid${G}`,lt=`keydown${G}`,ct=`mouseenter${G}`,ht=`mouseleave${G}`,dt=`touchstart${G}`,ut=`touchmove${G}`,ft=`touchend${G}`,pt=`dragstart${G}`,mt=`load${G}${Z}`,gt=`click${G}${Z}`,_t="active",vt=".active.carousel-item";class bt extends R{constructor(t,e){super(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.zoomPaused=!1,this.productsPaused=!1,this._config=this._getConfig(e),this._indicatorsElement=Y.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._touchEventCache=[],this._addEventListeners()}static get Default(){return J}static get NAME(){return Q}next(){this._slide(et)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(it)}pause(t){t||(this._isPaused=!0),Y.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(s(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=Y.findOne(vt,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void P.one(this._element,at,(()=>this.to(t)));if(e===t)return this.pause(),void this.cycle();const i=t>e?et:it;this._slide(i,this._items[t])}_getConfig(t){return t={...J,...K.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(Q,t,tt),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?st:nt)}_addEventListeners(){this._config.keyboard&&P.on(this._element,lt,(t=>this._keydown(t))),"hover"===this._config.pause&&(P.on(this._element,ct,(t=>this.pause(t))),P.on(this._element,ht,(t=>this.cycle(t)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>this._pointerEvent&&("pen"===t.pointerType||"touch"===t.pointerType),e=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},i=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},n=e=>{if(window.hasOwnProperty("visualViewport")){if(window.visualViewport.scale>1)return this.touchDeltaX=0,this.touchStartX=0,this.pause(),void(this.zoomPaused=!0);this.zoomPaused&&(console.log("zoomPaused, unzoomed, calling cycle"),this.zoomPaused=!1,this.cycle())}t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this.zoomPaused||this.productsPaused||this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};Y.find(".carousel-item img",this._element).forEach((t=>{P.on(t,pt,(t=>t.preventDefault()))})),P.on(this._element,dt,(t=>e(t))),P.on(this._element,ut,(t=>i(t))),P.on(this._element,ft,(t=>n(t)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ot[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?Y.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const i=t===et;return b(this._items,e,i,this._config.wrap)}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),n=this._getItemIndex(Y.findOne(vt,this._element));return P.trigger(this._element,rt,{relatedTarget:t,direction:e,from:n,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=Y.findOne(".active",this._indicatorsElement);e.classList.remove(_t),e.removeAttribute("aria-current");const i=Y.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e<i.length;e++)if(Number.parseInt(i[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){i[e].classList.add(_t),i[e].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||Y.findOne(vt,this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const i=this._directionToOrder(t),n=Y.findOne(vt,this._element),s=this._getItemIndex(n),o=e||this._getItemByOrder(i,n),r=this._getItemIndex(o),a=Boolean(this._interval),l=i===et,c=l?"carousel-item-start":"carousel-item-end",h=l?"carousel-item-next":"carousel-item-prev",d=this._orderToDirection(i);if(o&&o.classList.contains(_t))return void(this._isSliding=!1);if(this._isSliding)return;const f=this._triggerSlideEvent(o,d);if(null==f)return;if(f.defaultPrevented)return;if(!n||!o)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const p=()=>{P.trigger(this._element,at,{relatedTarget:o,direction:d,from:s,to:r})};if(this._element.classList.contains("slide")){o.classList.add(h),u(o),n.classList.add(c),o.classList.add(c);const t=()=>{o.classList.remove(c,h),o.classList.add(_t),n.classList.remove(_t,h,c),this._isSliding=!1,setTimeout(p,0)};this._queueCallback(t,n,!0)}else n.classList.remove(_t),o.classList.add(_t),this._isSliding=!1,p();a&&this.cycle()}_directionToOrder(t){return[st,nt].includes(t)?m()?t===nt?it:et:t===nt?et:it:t}_orderToDirection(t){return[et,it].includes(t)?m()?t===it?nt:st:t===it?st:nt:t}static carouselInterface(t,e){const i=bt.getOrCreateInstance(t,e);let{_config:n}=i;"object"==typeof e&&(n={...n,...e});const s="string"==typeof e?e:n.slide;if("number"==typeof e)i.to(e);else if("string"==typeof s){if(void 0===i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each((function(){bt.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=n(this);if(!e||!e.classList.contains("carousel"))return;const i={...K.getDataAttributes(e),...K.getDataAttributes(this)},s=this.getAttribute("data-bs-slide-to");s&&(i.interval=!1),bt.carouselInterface(e,i),s&&bt.getInstance(e).to(s),t.preventDefault()}}P.on(document,gt,"[data-bs-slide], [data-bs-slide-to]",bt.dataApiClickHandler),P.on(window,mt,(()=>{const t=Y.find('[data-bs-ride="carousel"]');for(let e=0,i=t.length;e<i;e++)bt.carouselInterface(t[e],bt.getInstance(t[e]))})),g(bt);const yt="collapse",wt="bs.collapse",Et=`.${wt}`,Ct={toggle:!0,parent:null},Tt={toggle:"boolean",parent:"(null|element)"},At=`show${Et}`,Ot=`shown${Et}`,Lt=`hide${Et}`,kt=`hidden${Et}`,xt=`click${Et}.data-api`,$t="show",Dt="collapse",St="collapsing",Nt="collapsed",It=`:scope .${Dt} .${Dt}`,Pt='[data-bs-toggle="collapse"]';class Mt extends R{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=[];const n=Y.find(Pt);for(let t=0,e=n.length;t<e;t++){const e=n[t],s=i(e),o=Y.find(s).filter((t=>t===this._element));null!==s&&o.length&&(this._selector=s,this._triggerArray.push(e))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ct}static get NAME(){return yt}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t,e=[];if(this._config.parent){const t=Y.find(It,this._config.parent);e=Y.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((e=>!t.includes(e)))}const i=Y.findOne(this._selector);if(e.length){const n=e.find((t=>i!==t));if(t=n?Mt.getInstance(n):null,t&&t._isTransitioning)return}if(P.trigger(this._element,At).defaultPrevented)return;e.forEach((e=>{i!==e&&Mt.getOrCreateInstance(e,{toggle:!1}).hide(),t||j.set(e,wt,null)}));const n=this._getDimension();this._element.classList.remove(Dt),this._element.classList.add(St),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(St),this._element.classList.add(Dt,$t),this._element.style[n]="",P.trigger(this._element,Ot)}),this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(P.trigger(this._element,Lt).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,u(this._element),this._element.classList.add(St),this._element.classList.remove(Dt,$t);const e=this._triggerArray.length;for(let t=0;t<e;t++){const e=this._triggerArray[t],i=n(e);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(St),this._element.classList.add(Dt),P.trigger(this._element,kt)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains($t)}_getConfig(t){return(t={...Ct,...K.getDataAttributes(this._element),...t}).toggle=Boolean(t.toggle),t.parent=r(t.parent),a(yt,t,Tt),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=Y.find(It,this._config.parent);Y.find(Pt,this._config.parent).filter((e=>!t.includes(e))).forEach((t=>{const e=n(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}))}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach((t=>{e?t.classList.remove(Nt):t.classList.add(Nt),t.setAttribute("aria-expanded",e)}))}static jQueryInterface(t){return this.each((function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const i=Mt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}P.on(document,xt,Pt,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=i(this);Y.find(e).forEach((t=>{Mt.getOrCreateInstance(t,{toggle:!1}).toggle()}))})),g(Mt);var jt="top",Rt="bottom",Ht="right",Bt="left",Wt="auto",zt=[jt,Rt,Ht,Bt],qt="start",Ft="end",Ut="clippingParents",Vt="viewport",Xt="popper",Kt="reference",Yt=zt.reduce((function(t,e){return t.concat([e+"-"+qt,e+"-"+Ft])}),[]),Qt=[].concat(zt,[Wt]).reduce((function(t,e){return t.concat([e,e+"-"+qt,e+"-"+Ft])}),[]),Gt="beforeRead",Zt="read",Jt="afterRead",te="beforeMain",ee="main",ie="afterMain",ne="beforeWrite",se="write",oe="afterWrite",re=[Gt,Zt,Jt,te,ee,ie,ne,se,oe];function ae(t){return t?(t.nodeName||"").toLowerCase():null}function le(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ce(t){return t instanceof le(t).Element||t instanceof Element}function he(t){return t instanceof le(t).HTMLElement||t instanceof HTMLElement}function de(t){return"undefined"!=typeof ShadowRoot&&(t instanceof le(t).ShadowRoot||t instanceof ShadowRoot)}const ue={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];he(s)&&ae(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});he(n)&&ae(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function fe(t){return t.split("-")[0]}function pe(t,e){var i=t.getBoundingClientRect();return{width:i.width/1,height:i.height/1,top:i.top/1,right:i.right/1,bottom:i.bottom/1,left:i.left/1,x:i.left/1,y:i.top/1}}function me(t){var e=pe(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function ge(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&de(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _e(t){return le(t).getComputedStyle(t)}function ve(t){return["table","td","th"].indexOf(ae(t))>=0}function be(t){return((ce(t)?t.ownerDocument:t.document)||window.document).documentElement}function ye(t){return"html"===ae(t)?t:t.assignedSlot||t.parentNode||(de(t)?t.host:null)||be(t)}function we(t){return he(t)&&"fixed"!==_e(t).position?t.offsetParent:null}function Ee(t){for(var e=le(t),i=we(t);i&&ve(i)&&"static"===_e(i).position;)i=we(i);return i&&("html"===ae(i)||"body"===ae(i)&&"static"===_e(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&he(t)&&"fixed"===_e(t).position)return null;for(var i=ye(t);he(i)&&["html","body"].indexOf(ae(i))<0;){var n=_e(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Ce(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var Te=Math.max,Ae=Math.min,Oe=Math.round;function Le(t,e,i){return Te(t,Ae(e,i))}function ke(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function xe(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const $e={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=fe(i.placement),l=Ce(a),c=[Bt,Ht].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(t,e){return ke("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:xe(t,zt))}(s.padding,i),d=me(o),u="y"===l?jt:Bt,f="y"===l?Rt:Ht,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=Ee(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,b=h[u],y=_-d[c]-h[f],w=_/2-d[c]/2+v,E=Le(b,w,y),C=l;i.modifiersData[n]=((e={})[C]=E,e.centerOffset=E-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&ge(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function De(t){return t.split("-")[1]}var Se={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ne(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,d=!0===h?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Oe(Oe(e*n)/n)||0,y:Oe(Oe(i*n)/n)||0}}(r):"function"==typeof h?h(r):r,u=d.x,f=void 0===u?0:u,p=d.y,m=void 0===p?0:p,g=r.hasOwnProperty("x"),_=r.hasOwnProperty("y"),v=Bt,b=jt,y=window;if(c){var w=Ee(i),E="clientHeight",C="clientWidth";w===le(i)&&"static"!==_e(w=be(i)).position&&"absolute"===a&&(E="scrollHeight",C="scrollWidth"),s!==jt&&(s!==Bt&&s!==Ht||o!==Ft)||(b=Rt,m-=w[E]-n.height,m*=l?1:-1),s!==Bt&&(s!==jt&&s!==Rt||o!==Ft)||(v=Ht,f-=w[C]-n.width,f*=l?1:-1)}var T,A=Object.assign({position:a},c&&Se);return l?Object.assign({},A,((T={})[b]=_?"0":"",T[v]=g?"0":"",T.transform=(y.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",T)):Object.assign({},A,((e={})[b]=_?m+"px":"",e[v]=g?f+"px":"",e.transform="",e))}const Ie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:fe(e.placement),variation:De(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Ne(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ne(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var Pe={passive:!0};const Me={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=le(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,Pe)})),a&&l.addEventListener("resize",i.update,Pe),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Pe)})),a&&l.removeEventListener("resize",i.update,Pe)}},data:{}};var je={left:"right",right:"left",bottom:"top",top:"bottom"};function Re(t){return t.replace(/left|right|bottom|top/g,(function(t){return je[t]}))}var He={start:"end",end:"start"};function Be(t){return t.replace(/start|end/g,(function(t){return He[t]}))}function We(t){var e=le(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ze(t){return pe(be(t)).left+We(t).scrollLeft}function qe(t){var e=_e(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Fe(t){return["html","body","#document"].indexOf(ae(t))>=0?t.ownerDocument.body:he(t)&&qe(t)?t:Fe(ye(t))}function Ue(t,e){var i;void 0===e&&(e=[]);var n=Fe(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=le(n),r=s?[o].concat(o.visualViewport||[],qe(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Ue(ye(r)))}function Ve(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xe(t,e){return e===Vt?Ve(function(t){var e=le(t),i=be(t),n=e.visualViewport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+ze(t),y:a}}(t)):he(e)?function(t){var e=pe(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Ve(function(t){var e,i=be(t),n=We(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=Te(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Te(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+ze(t),l=-n.scrollTop;return"rtl"===_e(s||i).direction&&(a+=Te(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(be(t)))}function Ke(t,e,i){var n="clippingParents"===e?function(t){var e=Ue(ye(t)),i=["absolute","fixed"].indexOf(_e(t).position)>=0&&he(t)?Ee(t):t;return ce(i)?e.filter((function(t){return ce(t)&&ge(t,i)&&"body"!==ae(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),o=s[0],r=s.reduce((function(e,i){var n=Xe(t,i);return e.top=Te(n.top,e.top),e.right=Ae(n.right,e.right),e.bottom=Ae(n.bottom,e.bottom),e.left=Te(n.left,e.left),e}),Xe(t,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function Ye(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?fe(s):null,r=s?De(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case jt:e={x:a,y:i.y-n.height};break;case Rt:e={x:a,y:i.y+i.height};break;case Ht:e={x:i.x+i.width,y:l};break;case Bt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?Ce(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case qt:e[c]=e[c]-(i[h]/2-n[h]/2);break;case Ft:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function Qe(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.boundary,r=void 0===o?Ut:o,a=i.rootBoundary,l=void 0===a?Vt:a,c=i.elementContext,h=void 0===c?Xt:c,d=i.altBoundary,u=void 0!==d&&d,f=i.padding,p=void 0===f?0:f,m=ke("number"!=typeof p?p:xe(p,zt)),g=h===Xt?Kt:Xt,_=t.rects.popper,v=t.elements[u?g:h],b=Ke(ce(v)?v:v.contextElement||be(t.elements.popper),r,l),y=pe(t.elements.reference),w=Ye({reference:y,element:_,strategy:"absolute",placement:s}),E=Ve(Object.assign({},_,w)),C=h===Xt?E:y,T={top:b.top-C.top+m.top,bottom:C.bottom-b.bottom+m.bottom,left:b.left-C.left+m.left,right:C.right-b.right+m.right},A=t.modifiersData.offset;if(h===Xt&&A){var O=A[s];Object.keys(T).forEach((function(t){var e=[Ht,Rt].indexOf(t)>=0?1:-1,i=[jt,Rt].indexOf(t)>=0?"y":"x";T[t]+=O[i]*e}))}return T}function Ge(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Qt:l,h=De(n),d=h?a?Yt:Yt.filter((function(t){return De(t)===h})):zt,u=d.filter((function(t){return c.indexOf(t)>=0}));0===u.length&&(u=d);var f=u.reduce((function(e,i){return e[i]=Qe(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[fe(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}const Ze={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=fe(g),v=l||(_===g||!p?[Re(g)]:function(t){if(fe(t)===Wt)return[];var e=Re(t);return[Be(t),e,Be(e)]}(g)),b=[g].concat(v).reduce((function(t,i){return t.concat(fe(i)===Wt?Ge(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=e.rects.reference,w=e.rects.popper,E=new Map,C=!0,T=b[0],A=0;A<b.length;A++){var O=b[A],L=fe(O),k=De(O)===qt,x=[jt,Rt].indexOf(L)>=0,$=x?"width":"height",D=Qe(e,{placement:O,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),S=x?k?Ht:Bt:k?Rt:jt;y[$]>w[$]&&(S=Re(S));var N=Re(S),I=[];if(o&&I.push(D[L]<=0),a&&I.push(D[S]<=0,D[N]<=0),I.every((function(t){return t}))){T=O,C=!1;break}E.set(O,I)}if(C)for(var P=function(t){var e=b.find((function(e){var i=E.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},M=p?3:1;M>0;M--){if("break"===P(M))break}e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Je(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ti(t){return[jt,Ht,Rt,Bt].some((function(e){return t[e]>=0}))}const ei={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Qe(e,{elementContext:"reference"}),a=Qe(e,{altBoundary:!0}),l=Je(r,n),c=Je(a,s,o),h=ti(l),d=ti(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}};const ii={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=Qt.reduce((function(t,i){return t[i]=function(t,e,i){var n=fe(t),s=[Bt,jt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[Bt,Ht].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}};const ni={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Ye({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};const si={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=Qe(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),_=fe(e.placement),v=De(e.placement),b=!v,y=Ce(_),w="x"===y?"y":"x",E=e.modifiersData.popperOffsets,C=e.rects.reference,T=e.rects.popper,A="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,O={x:0,y:0};if(E){if(o||a){var L="y"===y?jt:Bt,k="y"===y?Rt:Ht,x="y"===y?"height":"width",$=E[y],D=E[y]+g[L],S=E[y]-g[k],N=f?-T[x]/2:0,I=v===qt?C[x]:T[x],P=v===qt?-T[x]:-C[x],M=e.elements.arrow,j=f&&M?me(M):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=R[L],B=R[k],W=Le(0,C[x],j[x]),z=b?C[x]/2-N-W-H-A:I-W-H-A,q=b?-C[x]/2+N+W+B+A:P+W+B+A,F=e.elements.arrow&&Ee(e.elements.arrow),U=F?"y"===y?F.clientTop||0:F.clientLeft||0:0,V=e.modifiersData.offset?e.modifiersData.offset[e.placement][y]:0,X=E[y]+z-V-U,K=E[y]+q-V;if(o){var Y=Le(f?Ae(D,X):D,$,f?Te(S,K):S);E[y]=Y,O[y]=Y-$}if(a){var Q="x"===y?jt:Bt,G="x"===y?Rt:Ht,Z=E[w],J=Z+g[Q],tt=Z-g[G],et=Le(f?Ae(J,X):J,Z,f?Te(tt,K):tt);E[w]=et,O[w]=et-Z}}e.modifiersData[n]=O}},requiresIfExists:["offset"]};function oi(t,e,i){void 0===i&&(i=!1);var n=he(e);he(e)&&function(t){var e=t.getBoundingClientRect(),i=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1}(e);var s,o,r=be(e),a=pe(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&(("body"!==ae(e)||qe(r))&&(l=(s=e)!==le(s)&&he(s)?{scrollLeft:(o=s).scrollLeft,scrollTop:o.scrollTop}:We(s)),he(e)?((c=pe(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=ze(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function ri(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var ai={placement:"bottom",modifiers:[],strategy:"absolute"};function li(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ci(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?ai:s;return function(t,e,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ai,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:ce(t)?Ue(t):t.contextElement?Ue(t.contextElement):[],popper:Ue(e)};var r,c,u=function(t){var e=ri(t);return re.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=u.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:h,options:n}),r=function(){};l.push(o||r)}})),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(li(e,i)){a.rects={reference:oi(e,Ee(i),"fixed"===a.options.strategy),popper:me(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:h})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){h.forceUpdate(),t(a)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!li(t,e))return h;function d(){l.forEach((function(t){return t()})),l=[]}return h.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),h}}var hi=ci(),di=ci({defaultModifiers:[Me,ni,Ie,ue]}),ui=ci({defaultModifiers:[Me,ni,Ie,ue,ii,Ze,si,$e,ei]});const fi=Object.freeze({__proto__:null,popperGenerator:ci,detectOverflow:Qe,createPopperBase:hi,createPopper:ui,createPopperLite:di,top:jt,bottom:Rt,right:Ht,left:Bt,auto:Wt,basePlacements:zt,start:qt,end:Ft,clippingParents:Ut,viewport:Vt,popper:Xt,reference:Kt,variationPlacements:Yt,placements:Qt,beforeRead:Gt,read:Zt,afterRead:Jt,beforeMain:te,main:ee,afterMain:ie,beforeWrite:ne,write:se,afterWrite:oe,modifierPhases:re,applyStyles:ue,arrow:$e,computeStyles:Ie,eventListeners:Me,flip:Ze,hide:ei,offset:ii,popperOffsets:ni,preventOverflow:si}),pi="dropdown",mi=".bs.dropdown",gi=".data-api",_i="Escape",vi="Space",bi="ArrowUp",yi="ArrowDown",wi=new RegExp(`${bi}|${yi}|${_i}`),Ei=`hide${mi}`,Ci=`hidden${mi}`,Ti=`show${mi}`,Ai=`shown${mi}`,Oi=`click${mi}${gi}`,Li=`keydown${mi}${gi}`,ki=`keyup${mi}${gi}`,xi="show",$i='[data-bs-toggle="dropdown"]',Di=".dropdown-menu",Si=m()?"top-end":"top-start",Ni=m()?"top-start":"top-end",Ii=m()?"bottom-end":"bottom-start",Pi=m()?"bottom-start":"bottom-end",Mi=m()?"left-start":"right-start",ji=m()?"right-start":"left-start",Ri={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Hi={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class Bi extends R{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return Ri}static get DefaultType(){return Hi}static get NAME(){return pi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(P.trigger(this._element,Ti,t).defaultPrevented)return;const e=Bi.getParentFromElement(this._element);this._inNavbar?K.setDataAttribute(this._menu,"popper","none"):this._createPopper(e),"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((t=>P.on(t,"mouseover",d))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(xi),this._element.classList.add(xi),P.trigger(this._element,Ai,t)}hide(){if(c(this._element)||!this._isShown(this._menu))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){P.trigger(this._element,Ei,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>P.off(t,"mouseover",d))),this._popper&&this._popper.destroy(),this._menu.classList.remove(xi),this._element.classList.remove(xi),this._element.setAttribute("aria-expanded","false"),K.removeDataAttribute(this._menu,"popper"),P.trigger(this._element,Ci,t))}_getConfig(t){if(t={...this.constructor.Default,...K.getDataAttributes(this._element),...t},a(pi,t,this.constructor.DefaultType),"object"==typeof t.reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${pi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(void 0===fi)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:o(this._config.reference)?e=r(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find((t=>"applyStyles"===t.name&&!1===t.enabled));this._popper=ui(e,this._menu,i),n&&K.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(xi)}_getMenuElement(){return Y.next(this._element,Di)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return Mi;if(t.classList.contains("dropstart"))return ji;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Ni:Si:e?Pi:Ii}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=Y.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(l);i.length&&b(i,e,t===yi,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Bi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(t&&(2===t.button||"keyup"===t.type&&"Tab"!==t.key))return;const e=Y.find($i);for(let i=0,n=e.length;i<n;i++){const n=Bi.getInstance(e[i]);if(!n||!1===n._config.autoClose)continue;if(!n._isShown())continue;const s={relatedTarget:n._element};if(t){const e=t.composedPath(),i=e.includes(n._menu);if(e.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if(n._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;"click"===t.type&&(s.clickEvent=t)}n._completeHide(s)}}static getParentFromElement(t){return n(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===vi||t.key!==_i&&(t.key!==yi&&t.key!==bi||t.target.closest(Di)):!wi.test(t.key))return;const e=this.classList.contains(xi);if(!e&&t.key===_i)return;if(t.preventDefault(),t.stopPropagation(),c(this))return;const i=this.matches($i)?this:Y.prev(this,$i)[0],n=Bi.getOrCreateInstance(i);if(t.key!==_i)return t.key===bi||t.key===yi?(e||n.show(),void n._selectMenuItem(t)):void(e&&t.key!==vi||Bi.clearMenus());n.hide()}}P.on(document,Li,$i,Bi.dataApiKeydownHandler),P.on(document,Li,Di,Bi.dataApiKeydownHandler),P.on(document,Oi,Bi.clearMenus),P.on(document,ki,Bi.clearMenus),P.on(document,Oi,$i,(function(t){t.preventDefault(),Bi.getOrCreateInstance(this).toggle()})),g(Bi);const Wi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",zi=".sticky-top";class qi{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(e=>e+t)),this._setElementAttributes(Wi,"paddingRight",(e=>e+t)),this._setElementAttributes(zi,"marginRight",(e=>e-t))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t)[e];t.style[e]=`${i(Number.parseFloat(s))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Wi,"paddingRight"),this._resetElementAttributes(zi,"marginRight")}_saveInitialAttribute(t,e){const i=t.style[e];i&&K.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=K.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(K.removeDataAttribute(t,e),t.style[e]=i)}))}_applyManipulationCallback(t,e){o(t)?e(t):Y.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const Fi={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},Ui={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Vi="backdrop",Xi="show",Ki=`mousedown.bs.${Vi}`;class Yi{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&u(this._getElement()),this._getElement().classList.add(Xi),this._emulateAnimation((()=>{_(t)}))):_(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(Xi),this._emulateAnimation((()=>{this.dispose(),_(t)}))):_(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return(t={...Fi,..."object"==typeof t?t:{}}).rootElement=r(t.rootElement),a(Vi,t,Ui),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),P.on(this._getElement(),Ki,(()=>{_(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(P.off(this._element,Ki),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){v(t,this._getElement(),this._config.isAnimated)}}const Qi={trapElement:null,autofocus:!0},Gi={trapElement:"element",autofocus:"boolean"},Zi=".bs.focustrap",Ji=`focusin${Zi}`,tn=`keydown.tab${Zi}`,en="backward";class nn{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),P.off(document,Zi),P.on(document,Ji,(t=>this._handleFocusin(t))),P.on(document,tn,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,P.off(document,Zi))}_handleFocusin(t){const{target:e}=t,{trapElement:i}=this._config;if(e===document||e===i||i.contains(e))return;const n=Y.focusableChildren(i);0===n.length?i.focus():this._lastTabNavDirection===en?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?en:"forward")}_getConfig(t){return t={...Qi,..."object"==typeof t?t:{}},a("focustrap",t,Gi),t}}const sn="modal",on=".bs.modal",rn="Escape",an={backdrop:!0,keyboard:!0,focus:!0},ln={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},cn=`hide${on}`,hn=`hidePrevented${on}`,dn=`hidden${on}`,un=`show${on}`,fn=`shown${on}`,pn=`resize${on}`,mn=`click.dismiss${on}`,gn=`keydown.dismiss${on}`,_n=`mouseup.dismiss${on}`,vn=`mousedown.dismiss${on}`,bn=`click${on}.data-api`,yn="modal-open",wn="show",En="modal-static";class Cn extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=Y.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new qi}static get Default(){return an}static get NAME(){return sn}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;P.trigger(this._element,un,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(yn),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),P.on(this._dialog,vn,(()=>{P.one(this._element,_n,(t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;if(P.trigger(this._element,cn).defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(wn),P.off(this._element,mn),P.off(this._dialog,vn),this._queueCallback((()=>this._hideModal()),this._element,t)}dispose(){[window,this._dialog].forEach((t=>P.off(t,on))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Yi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new nn({trapElement:this._element})}_getConfig(t){return t={...an,...K.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(sn,t,ln),t}_showElement(t){const e=this._isAnimated(),i=Y.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),e&&u(this._element),this._element.classList.add(wn);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,P.trigger(this._element,fn,{relatedTarget:t})}),this._dialog,e)}_setEscapeEvent(){this._isShown?P.on(this._element,gn,(t=>{this._config.keyboard&&t.key===rn?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==rn||this._triggerBackdropTransition()})):P.off(this._element,gn)}_setResizeEvent(){this._isShown?P.on(window,pn,(()=>this._adjustDialog())):P.off(window,pn)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(yn),this._resetAdjustments(),this._scrollBar.reset(),P.trigger(this._element,dn)}))}_showBackdrop(t){P.on(this._element,mn,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(P.trigger(this._element,hn).defaultPrevented)return;const{classList:t,scrollHeight:e,style:i}=this._element,n=e>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||t.contains(En)||(n||(i.overflowY="hidden"),t.add(En),this._queueCallback((()=>{t.remove(En),n||this._queueCallback((()=>{i.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;(!i&&t&&!m()||i&&!t&&m())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!m()||!i&&t&&m())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Cn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}P.on(document,bn,'[data-bs-toggle="modal"]',(function(t){const e=n(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),P.one(e,un,(t=>{t.defaultPrevented||P.one(e,dn,(()=>{l(this)&&this.focus()}))}));const i=Y.findOne(".modal.show");i&&Cn.getInstance(i).hide();Cn.getOrCreateInstance(e).toggle(this)})),H(Cn),g(Cn);const Tn="offcanvas",An=".bs.offcanvas",On=".data-api",Ln=`load${An}${On}`,kn={backdrop:!0,keyboard:!0,scroll:!1},xn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},$n="show",Dn=".offcanvas.show",Sn=`show${An}`,Nn=`shown${An}`,In=`hide${An}`,Pn=`hidden${An}`,Mn=`click${An}${On}`,jn=`keydown.dismiss${An}`;class Rn extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Tn}static get Default(){return kn}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(P.trigger(this._element,Sn,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new qi).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add($n);this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),P.trigger(this._element,Nn,{relatedTarget:t})}),this._element,!0)}hide(){if(!this._isShown)return;if(P.trigger(this._element,In).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove($n),this._backdrop.hide();this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new qi).reset(),P.trigger(this._element,Pn)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t={...kn,...K.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(Tn,t,xn),t}_initializeBackDrop(){return new Yi({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new nn({trapElement:this._element})}_addEventListeners(){P.on(this._element,jn,(t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()}))}static jQueryInterface(t){return this.each((function(){const e=Rn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}P.on(document,Mn,'[data-bs-toggle="offcanvas"]',(function(t){const e=n(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this))return;P.one(e,Pn,(()=>{l(this)&&this.focus()}));const i=Y.findOne(Dn);i&&i!==e&&Rn.getInstance(i).hide();Rn.getOrCreateInstance(e).toggle(this)})),P.on(window,Ln,(()=>Y.find(Dn).forEach((t=>Rn.getOrCreateInstance(t).show())))),H(Rn),g(Rn);const Hn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Bn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Wn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,zn=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return!Hn.has(i)||Boolean(Bn.test(t.nodeValue)||Wn.test(t.nodeValue));const n=e.filter((t=>t instanceof RegExp));for(let t=0,e=n.length;t<e;t++)if(n[t].test(i))return!0;return!1},qn={"*":["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:[]};function Fn(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(let t=0,i=s.length;t<i;t++){const i=s[t],n=i.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){i.remove();continue}const o=[].concat(...i.attributes),r=[].concat(e["*"]||[],e[n]||[]);o.forEach((t=>{zn(t,r)||i.removeAttribute(t.nodeName)}))}return n.body.innerHTML}const Un="tooltip",Vn=".bs.tooltip",Xn=new Set(["sanitize","allowList","sanitizeFn"]),Kn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Yn={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},Qn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:qn,popperConfig:null},Gn={HIDE:`hide${Vn}`,HIDDEN:`hidden${Vn}`,SHOW:`show${Vn}`,SHOWN:`shown${Vn}`,INSERTED:`inserted${Vn}`,CLICK:`click${Vn}`,FOCUSIN:`focusin${Vn}`,FOCUSOUT:`focusout${Vn}`,MOUSEENTER:`mouseenter${Vn}`,MOUSELEAVE:`mouseleave${Vn}`},Zn="fade",Jn="show",ts="show",es="out",is=".tooltip-inner",ns=".modal",ss="hide.bs.modal",os="hover",rs="focus";class as extends R{constructor(t,e){if(void 0===fi)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Qn}static get NAME(){return Un}static get Event(){return Gn}static get DefaultType(){return Kn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(Jn))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),P.off(this._element.closest(ns),ss,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=P.trigger(this._element,this.constructor.Event.SHOW),e=h(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(is).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const n=this.getTipElement(),s=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME);n.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this._config.animation&&n.classList.add(Zn);const o="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const{container:a}=this._config;j.set(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(n),P.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=ui(this._element,n,this._getPopperConfig(r)),n.classList.add(Jn);const l=this._resolvePossibleFunction(this._config.customClass);l&&n.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{P.on(t,"mouseover",d)}));const c=this.tip.classList.contains(Zn);this._queueCallback((()=>{const t=this._hoverState;this._hoverState=null,P.trigger(this._element,this.constructor.Event.SHOWN),t===es&&this._leave(null,this)}),this.tip,c)}hide(){if(!this._popper)return;const t=this.getTipElement();if(P.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Jn),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>P.off(t,"mouseover",d))),this._activeTrigger.click=!1,this._activeTrigger[rs]=!1,this._activeTrigger[os]=!1;const e=this.tip.classList.contains(Zn);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==ts&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),P.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(Zn,Jn),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),is)}_sanitizeAndSetContent(t,e,i){const n=Y.findOne(i,t);e||!n?this.setElementContent(n,e):n.remove()}setElementContent(t,e){if(null!==t)return o(e)?(e=r(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Fn(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return Yn[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)P.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===os?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=t===os?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;P.on(this._element,e,this._config.selector,(t=>this._enter(t))),P.on(this._element,i,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},P.on(this._element.closest(ns),ss,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?rs:os]=!0),e.getTipElement().classList.contains(Jn)||e._hoverState===ts?e._hoverState=ts:(clearTimeout(e._timeout),e._hoverState=ts,e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===ts&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?rs:os]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=es,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===es&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=K.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{Xn.has(t)&&delete e[t]})),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:r(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),a(Un,t,this.constructor.DefaultType),t.sanitize&&(t.template=Fn(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=t.getAttribute("class").match(e);null!==i&&i.length>0&&i.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=as.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}g(as);const ls=".bs.popover",cs={...as.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},hs={...as.DefaultType,content:"(string|element|function)"},ds={HIDE:`hide${ls}`,HIDDEN:`hidden${ls}`,SHOW:`show${ls}`,SHOWN:`shown${ls}`,INSERTED:`inserted${ls}`,CLICK:`click${ls}`,FOCUSIN:`focusin${ls}`,FOCUSOUT:`focusout${ls}`,MOUSEENTER:`mouseenter${ls}`,MOUSELEAVE:`mouseleave${ls}`};class us extends as{static get Default(){return cs}static get NAME(){return"popover"}static get Event(){return ds}static get DefaultType(){return hs}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(t,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(t){return this.each((function(){const e=us.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}g(us);const fs="scrollspy",ps=".bs.scrollspy",ms={offset:10,method:"auto",target:""},gs={offset:"number",method:"string",target:"(string|element)"},_s=`activate${ps}`,vs=`scroll${ps}`,bs=`load${ps}.data-api`,ys="dropdown-item",ws="active",Es=".nav-link",Cs=".list-group-item",Ts=`${Es}, ${Cs}, .${ys}`,As="position";class Os extends R{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,P.on(this._scrollElement,vs,(()=>this._process())),this.refresh(),this._process()}static get Default(){return ms}static get NAME(){return fs}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":As,e="auto"===this._config.method?t:this._config.method,n=e===As?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();Y.find(Ts,this._config.target).map((t=>{const s=i(t),o=s?Y.findOne(s):null;if(o){const t=o.getBoundingClientRect();if(t.width||t.height)return[K[e](o).top+n,s]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){P.off(this._scrollElement,ps),super.dispose()}_getConfig(t){return(t={...ms,...K.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target=r(t.target)||document.documentElement,a(fs,t,gs),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}}_activate(t){this._activeTarget=t,this._clear();const e=Ts.split(",").map((e=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`)),i=Y.findOne(e.join(","),this._config.target);i.classList.add(ws),i.classList.contains(ys)?Y.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(ws):Y.parents(i,".nav, .list-group").forEach((t=>{Y.prev(t,`${Es}, ${Cs}`).forEach((t=>t.classList.add(ws))),Y.prev(t,".nav-item").forEach((t=>{Y.children(t,Es).forEach((t=>t.classList.add(ws)))}))})),P.trigger(this._scrollElement,_s,{relatedTarget:t})}_clear(){Y.find(Ts,this._config.target).filter((t=>t.classList.contains(ws))).forEach((t=>t.classList.remove(ws)))}static jQueryInterface(t){return this.each((function(){const e=Os.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}P.on(window,bs,(()=>{Y.find('[data-bs-spy="scroll"]').forEach((t=>new Os(t)))})),g(Os);const Ls=".bs.tab",ks=`hide${Ls}`,xs=`hidden${Ls}`,$s=`show${Ls}`,Ds=`shown${Ls}`,Ss=`click${Ls}.data-api`,Ns="active",Is="fade",Ps="show",Ms=".active",js=":scope > li > .active";class Rs extends R{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Ns))return;let t;const e=n(this._element),i=this._element.closest(".nav, .list-group");if(i){const e="UL"===i.nodeName||"OL"===i.nodeName?js:Ms;t=Y.find(e,i),t=t[t.length-1]}const s=t?P.trigger(t,ks,{relatedTarget:this._element}):null;if(P.trigger(this._element,$s,{relatedTarget:t}).defaultPrevented||null!==s&&s.defaultPrevented)return;this._activate(this._element,i);const o=()=>{P.trigger(t,xs,{relatedTarget:this._element}),P.trigger(this._element,Ds,{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,i){const n=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?Y.children(e,Ms):Y.find(js,e))[0],s=i&&n&&n.classList.contains(Is),o=()=>this._transitionComplete(t,n,i);n&&s?(n.classList.remove(Ps),this._queueCallback(o,t,!0)):o()}_transitionComplete(t,e,i){if(e){e.classList.remove(Ns);const t=Y.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove(Ns),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(Ns),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),u(t),t.classList.contains(Is)&&t.classList.add(Ps);let n=t.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&Y.find(".dropdown-toggle",e).forEach((t=>t.classList.add(Ns))),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each((function(){const e=Rs.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}P.on(document,Ss,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this))return;Rs.getOrCreateInstance(this).show()})),g(Rs);const Hs="toast",Bs=".bs.toast",Ws=`mouseover${Bs}`,zs=`mouseout${Bs}`,qs=`focusin${Bs}`,Fs=`focusout${Bs}`,Us=`hide${Bs}`,Vs=`hidden${Bs}`,Xs=`show${Bs}`,Ks=`shown${Bs}`,Ys="hide",Qs="show",Gs="showing",Zs={animation:"boolean",autohide:"boolean",delay:"number"},Js={animation:!0,autohide:!0,delay:5e3};class to extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Zs}static get Default(){return Js}static get NAME(){return Hs}show(){if(P.trigger(this._element,Xs).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Ys),u(this._element),this._element.classList.add(Qs),this._element.classList.add(Gs),this._queueCallback((()=>{this._element.classList.remove(Gs),P.trigger(this._element,Ks),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this._element.classList.contains(Qs))return;if(P.trigger(this._element,Us).defaultPrevented)return;this._element.classList.add(Gs),this._queueCallback((()=>{this._element.classList.add(Ys),this._element.classList.remove(Gs),this._element.classList.remove(Qs),P.trigger(this._element,Vs)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(Qs)&&this._element.classList.remove(Qs),super.dispose()}_getConfig(t){return t={...Js,...K.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},a(Hs,t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){P.on(this._element,Ws,(t=>this._onInteraction(t,!0))),P.on(this._element,zs,(t=>this._onInteraction(t,!1))),P.on(this._element,qs,(t=>this._onInteraction(t,!0))),P.on(this._element,Fs,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=to.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}H(to),g(to);const eo="ripple",io="mdb.ripple",no="ripple-surface",so="ripple-wave",oo=[".btn:not(.navbar-btn):not(.btn-link):not(.no-ripple)",".ripple"],ro="ripple-surface-unbound",ao=[0,0,0],lo=["primary","secondary","success","danger","warning","info","light","dark"],co={rippleCentered:!1,rippleColor:"",rippleDuration:"500ms",rippleRadius:0,rippleUnbound:!1},ho={rippleCentered:"boolean",rippleColor:"string",rippleDuration:"string",rippleRadius:"number",rippleUnbound:"boolean"};class uo{constructor(t,e){this._element=t,this._options=this._getConfig(e),this._element&&(j.set(t,io,this),K.addClass(this._element,no)),this._clickHandler=this._createRipple.bind(this),this._rippleTimer=null,this._isMinWidthSet=!1,this.init()}static get NAME(){return eo}init(){this._addClickEvent(this._element)}dispose(){j.remove(this._element,io),P.off(this._element,"click",this._clickHandler),this._element=null,this._options=null}_autoInit(t){oo.forEach((e=>{Y.closest(t.target,e)&&(this._element=Y.closest(t.target,e))})),this._element.style.minWidth||(K.style(this._element,{"min-width":`${this._element.offsetWidth}px`}),this._isMinWidthSet=!0),K.addClass(this._element,no),this._options=this._getConfig(),this._createRipple(t)}_addClickEvent(t){P.on(t,"mouseup",this._clickHandler)}_createRipple(t){K.hasClass(this._element,no)||K.addClass(this._element,no);const{layerX:e,layerY:i}=t,n=e,s=i,o=this._element.offsetHeight,r=this._element.offsetWidth,a=this._durationToMsNumber(this._options.rippleDuration),l={offsetX:this._options.rippleCentered?o/2:n,offsetY:this._options.rippleCentered?r/2:s,height:o,width:r},c=this._getDiameter(l),h=this._options.rippleRadius||c/2,d=.5*a,u=a-.5*a,f={left:this._options.rippleCentered?r/2-h+"px":n-h+"px",top:this._options.rippleCentered?o/2-h+"px":s-h+"px",height:`${2*this._options.rippleRadius||c}px`,width:`${2*this._options.rippleRadius||c}px`,transitionDelay:`0s, ${d}ms`,transitionDuration:`${a}ms, ${u}ms`},p=document.createElement("div");this._createHTMLRipple({wrapper:this._element,ripple:p,styles:f}),this._removeHTMLRipple({ripple:p,duration:a})}_createHTMLRipple({wrapper:t,ripple:e,styles:i}){Object.keys(i).forEach((t=>e.style[t]=i[t])),e.classList.add(so),""!==this._options.rippleColor&&(this._removeOldColorClasses(t),this._addColor(e,t)),this._toggleUnbound(t),this._appendRipple(e,t)}_removeHTMLRipple({ripple:t,duration:e}){this._rippleTimer&&(clearTimeout(this._rippleTimer),this._rippleTimer=null),this._rippleTimer=setTimeout((()=>{t&&(t.remove(),this._element&&(Y.find(`.${so}`,this._element).forEach((t=>{t.remove()})),this._isMinWidthSet&&(K.style(this._element,{"min-width":""}),this._isMinWidthSet=!1),K.removeClass(this._element,no)))}),e)}_durationToMsNumber(t){return Number(t.replace("ms","").replace("s","000"))}_getConfig(t={}){const e=K.getDataAttributes(this._element);return t={...co,...e,...t},a(eo,t,ho),t}_getDiameter({offsetX:t,offsetY:e,height:i,width:n}){const s=e<=i/2,o=t<=n/2,r=(t,e)=>Math.sqrt(t**2+e**2),a=e===i/2&&t===n/2,l=!0===s&&!1===o,c=!0===s&&!0===o,h=!1===s&&!0===o,d=!1===s&&!1===o,u={topLeft:r(t,e),topRight:r(n-t,e),bottomLeft:r(t,i-e),bottomRight:r(n-t,i-e)};let f=0;return a||d?f=u.topLeft:h?f=u.topRight:c?f=u.bottomRight:l&&(f=u.bottomLeft),2*f}_appendRipple(t,e){e.appendChild(t),setTimeout((()=>{K.addClass(t,"active")}),50)}_toggleUnbound(t){!0===this._options.rippleUnbound?K.addClass(t,ro):t.classList.remove(ro)}_addColor(t,e){if(lo.find((t=>t===this._options.rippleColor.toLowerCase())))K.addClass(e,`${no}-${this._options.rippleColor.toLowerCase()}`);else{const e=this._colorToRGB(this._options.rippleColor).join(","),i="rgba({{color}}, 0.2) 0, rgba({{color}}, 0.3) 40%, rgba({{color}}, 0.4) 50%, rgba({{color}}, 0.5) 60%, rgba({{color}}, 0) 70%".split("{{color}}").join(`${e}`);t.style.backgroundImage=`radial-gradient(circle, ${i})`}}_removeOldColorClasses(t){const e=new RegExp(`${no}-[a-z]+`,"gi");(t.classList.value.match(e)||[]).forEach((e=>{t.classList.remove(e)}))}_colorToRGB(t){return"transparent"===t.toLowerCase()?ao:"#"===t[0]?function(t){return t.length<7&&(t=`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]}(t):(-1===t.indexOf("rgb")&&(t=function(t){const e=document.body.appendChild(document.createElement("fictum")),i="rgb(1, 2, 3)";return e.style.color=i,e.style.color!==i?ao:(e.style.color=t,e.style.color===i||""===e.style.color?ao:(t=getComputedStyle(e).color,document.body.removeChild(e),t))}(t)),0===t.indexOf("rgb")?function(t){return(t=t.match(/[.\d]+/g).map((t=>+Number(t)))).length=3,t}(t):ao)}static autoInitial(t){return function(e){t._autoInit(e)}}static jQueryInterface(t){return this.each((function(){return j.getData(this,io)?null:new uo(this,t)}))}static getInstance(t){return j.getData(t,io)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}}oo.forEach((t=>{document.querySelectorAll(t).forEach((function(t){new uo(t)}))}));return{Alert:q,Button:U,Carousel:bt,Collapse:Mt,Dropdown:Bi,Modal:Cn,Offcanvas:Rn,Popover:us,Ripple:uo,ScrollSpy:Os,Tab:Rs,Toast:to,Tooltip:as,Popper:fi}}));
///*# sourceMappingURL=https://www.designersguild.com/js/dist/lib/bootstrap/dist/bootstrap.bundle.min.js.map */
;
