/*! * Bootstrap v5.3.3 (https://getbootstrap.com/) * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,function(){"use strict";let e=new Map,t={set(t,i,n){e.has(t)||e.set(t,new Map);let s=e.get(t);if(!s.has(i)&&0!==s.size){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`);return}s.set(i,n)},get:(t,i)=>e.has(t)&&e.get(t).get(i)||null,remove(t,i){if(!e.has(t))return;let n=e.get(t);n.delete(i),0===n.size&&e.delete(t)}},i="transitionend",n=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),s=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),r=e=>{do e+=Math.floor(1e6*Math.random());while(document.getElementById(e));return e},o=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e),n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*1e3):0},a=e=>{e.dispatchEvent(new Event(i))},l=e=>!!e&&"object"==typeof e&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),c=e=>l(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(n(e)):null,h=e=>{if(!l(e)||0===e.getClientRects().length)return!1;let t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){let n=e.closest("summary");if(n&&n.parentNode!==i||null===n)return!1}return t},u=e=>!!(!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled"))||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),d=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?d(e.parentNode):null},f=()=>{},p=e=>{e.offsetHeight},g=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,m=[],b=e=>{"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",()=>{for(let e of m)e()}),m.push(e)):e()},v=()=>"rtl"===document.documentElement.dir,y=e=>{b(()=>{let t=g();if(t){let i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}})},w=(e,t=[],i=e)=>"function"==typeof e?e(...t):i,$=(e,t,n=!0)=>{if(!n){w(e);return}let s=o(t)+5,r=!1,l=({target:n})=>{n===t&&(r=!0,t.removeEventListener(i,l),w(e))};t.addEventListener(i,l),setTimeout(()=>{r||a(t)},s)},A=(e,t,i,n)=>{let s=e.length,r=e.indexOf(t);return -1===r?!i&&n?e[s-1]:e[0]:(r+=i?1:-1,n&&(r=(r+s)%s),e[Math.max(0,Math.min(r,s-1))])},E=/[^.]*(?=\..*)\.|.*/,C=/\..*/,T=/::\d+$/,x={},k=1,L={mouseenter:"mouseover",mouseleave:"mouseout"},O=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 D(e,t){return t&&`${t}::${k++}`||e.uidEvent||k++}function S(e){let t=D(e);return e.uidEvent=t,x[t]=x[t]||{},x[t]}function I(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function _(e,t,i){let n="string"==typeof t,s=F(e);return O.has(s)||(s=e),[n,n?i:t||i,s]}function N(e,t,i,n,s){var r,o,a,l,c,h;if("string"!=typeof t||!e)return;let[u,d,f]=_(t,i,n);t in L&&(d=(r=d,function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return r.call(this,e)}));let p=S(e),g=p[f]||(p[f]={}),m=I(g,d,u?i:null);if(m){m.oneOff=m.oneOff&&s;return}let b=D(d,t.replace(E,"")),v=u?(o=e,a=i,l=d,function e(t){let i=o.querySelectorAll(a);for(let{target:n}=t;n&&n!==this;n=n.parentNode)for(let s of i)if(s===n)return j(t,{delegateTarget:n}),e.oneOff&&H.off(o,t.type,a,l),l.apply(n,[t])}):(c=e,h=d,function e(t){return j(t,{delegateTarget:c}),e.oneOff&&H.off(c,t.type,h),h.apply(c,[t])});v.delegationSelector=u?i:null,v.callable=d,v.oneOff=s,v.uidEvent=b,g[b]=v,e.addEventListener(f,v,u)}function P(e,t,i,n,s){let r=I(t[i],n,s);r&&(e.removeEventListener(i,r,Boolean(s)),delete t[i][r.uidEvent])}function M(e,t,i,n){let s=t[i]||{};for(let[r,o]of Object.entries(s))r.includes(n)&&P(e,t,i,o.callable,o.delegationSelector)}function F(e){return L[e=e.replace(C,"")]||e}let H={on(e,t,i,n){N(e,t,i,n,!1)},one(e,t,i,n){N(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;let[s,r,o]=_(t,i,n),a=o!==t,l=S(e),c=l[o]||{},h=t.startsWith(".");if(void 0!==r){if(!Object.keys(c).length)return;P(e,l,o,r,s?i:null);return}if(h)for(let u of Object.keys(l))M(e,l,u,t.slice(1));for(let[d,f]of Object.entries(c)){let p=d.replace(T,"");(!a||t.includes(p))&&P(e,l,o,f.callable,f.delegationSelector)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;let n=g(),s=F(t),r=null,o=!0,a=!0,l=!1;t!==s&&n&&(r=n.Event(t,i),n(e).trigger(r),o=!r.isPropagationStopped(),a=!r.isImmediatePropagationStopped(),l=r.isDefaultPrevented());let c=j(new Event(t,{bubbles:o,cancelable:!0}),i);return l&&c.preventDefault(),a&&e.dispatchEvent(c),c.defaultPrevented&&r&&r.preventDefault(),c}};function j(e,t={}){for(let[i,n]of Object.entries(t))try{e[i]=n}catch(s){Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function W(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function z(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}let q={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${z(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${z(t)}`)},getDataAttributes(e){if(!e)return{};let t={},i=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(let n of i){let s=n.replace(/^bs/,"");t[s=s.charAt(0).toLowerCase()+s.slice(1,s.length)]=W(e.dataset[n])}return t},getDataAttribute:(e,t)=>W(e.getAttribute(`data-bs-${z(t)}`))};class B{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let i=l(t)?q.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...l(t)?q.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[i,n]of Object.entries(t)){let r=e[i],o=l(r)?"element":s(r);if(!RegExp(n).test(o))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${n}".`)}}}class R extends B{constructor(e,i){if(super(),!(e=c(e)))return;this._element=e,this._config=this._getConfig(i),t.set(this._element,this.constructor.DATA_KEY,this)}dispose(){for(let e of(t.remove(this._element,this.constructor.DATA_KEY),H.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this)))this[e]=null}_queueCallback(e,t,i=!0){$(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(c(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}let V=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map(e=>n(e)).join(","):null},K={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){let i=[],n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){let t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!u(e)&&h(e))},getSelectorFromElement(e){let t=V(e);return t&&K.findOne(t)?t:null},getElementFromSelector(e){let t=V(e);return t?K.findOne(t):null},getMultipleElementsFromSelector(e){let t=V(e);return t?K.find(t):[]}},Q=(e,t="hide")=>{let i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;H.on(document,i,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),u(this))return;let s=K.getElementFromSelector(this)||this.closest(`.${n}`),r=e.getOrCreateInstance(s);r[t]()})},X=".bs.alert",Y=`close${X}`,U=`closed${X}`;class G extends R{static get NAME(){return"alert"}close(){let e=H.trigger(this._element,Y);if(e.defaultPrevented)return;this._element.classList.remove("show");let t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),H.trigger(this._element,U),this.dispose()}static jQueryInterface(e){return this.each(function(){let t=G.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw TypeError(`No method named "${e}"`);t[e](this)}})}}Q(G,"close"),y(G);let Z='[data-bs-toggle="button"]',J="click.bs.button.data-api";class ee extends R{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){let t=ee.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}H.on(document,J,Z,e=>{e.preventDefault();let t=e.target.closest(Z),i=ee.getOrCreateInstance(t);i.toggle()}),y(ee);let et=".bs.swipe",ei=`touchstart${et}`,en=`touchmove${et}`,es=`touchend${et}`,er=`pointerdown${et}`,eo=`pointerup${et}`,ea={endCallback:null,leftCallback:null,rightCallback:null},el={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ec extends B{constructor(e,t){if(super(),this._element=e,!e||!ec.isSupported())return;this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents()}static get Default(){return ea}static get DefaultType(){return el}static get NAME(){return"swipe"}dispose(){H.off(this._element,et)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),w(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=40)return;let t=e/this._deltaX;this._deltaX=0,t&&w(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,er,e=>this._start(e)),H.on(this._element,eo,e=>this._end(e)),this._element.classList.add("pointer-event")):(H.on(this._element,ei,e=>this._start(e)),H.on(this._element,en,e=>this._move(e)),H.on(this._element,es,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}let eh=".bs.carousel",eu=".data-api",ed="next",ef="prev",ep="left",eg="right",em=`slide${eh}`,e8=`slid${eh}`,eb=`keydown${eh}`,ev=`mouseenter${eh}`,ey=`mouseleave${eh}`,ew=`dragstart${eh}`,e$=`load${eh}${eu}`,eA=`click${eh}${eu}`,eE="carousel",eC="active",eT=".active",ex=".carousel-item",ek=eT+ex,eL={ArrowLeft:eg,ArrowRight:ep},eO={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},e9={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class eD extends R{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=K.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===eE&&this.cycle()}static get Default(){return eO}static get DefaultType(){return e9}static get NAME(){return"carousel"}next(){this._slide(ed)}nextWhenVisible(){!document.hidden&&h(this._element)&&this.next()}prev(){this._slide(ef)}pause(){this._isSliding&&a(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){H.one(this._element,e8,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){H.one(this._element,e8,()=>this.to(e));return}let i=this._getItemIndex(this._getActive());i!==e&&this._slide(e>i?ed:ef,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&H.on(this._element,eb,e=>this._keydown(e)),"hover"===this._config.pause&&(H.on(this._element,ev,()=>this.pause()),H.on(this._element,ey,()=>this._maybeEnableCycle())),this._config.touch&&ec.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of K.find(".carousel-item img",this._element))H.on(e,ew,e=>e.preventDefault());let t=()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))};this._swipeHelper=new ec(this._element,{leftCallback:()=>this._slide(this._directionToOrder(ep)),rightCallback:()=>this._slide(this._directionToOrder(eg)),endCallback:t})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=eL[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=K.findOne(eT,this._indicatorsElement);t.classList.remove(eC),t.removeAttribute("aria-current");let i=K.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(eC),i.setAttribute("aria-current","true"))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let i=this._getActive(),n=e===ed,s=t||A(this._getItems(),i,n,this._config.wrap);if(s===i)return;let r=this._getItemIndex(s),o=t=>H.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:r}),a=o(em);if(a.defaultPrevented||!i||!s)return;let l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=s;let c=n?"carousel-item-start":"carousel-item-end",h=n?"carousel-item-next":"carousel-item-prev";s.classList.add(h),p(s),i.classList.add(c),s.classList.add(c);let u=()=>{s.classList.remove(c,h),s.classList.add(eC),i.classList.remove(eC,h,c),this._isSliding=!1,o(e8)};this._queueCallback(u,i,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return K.findOne(ek,this._element)}_getItems(){return K.find(ex,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return v()?e===ep?ef:ed:e===ep?ed:ef}_orderToDirection(e){return v()?e===ef?ep:eg:e===ef?eg:ep}static jQueryInterface(e){return this.each(function(){let t=eD.getOrCreateInstance(this,e);if("number"==typeof e){t.to(e);return}if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw TypeError(`No method named "${e}"`);t[e]()}})}}H.on(document,eA,"[data-bs-slide], [data-bs-slide-to]",function(e){let t=K.getElementFromSelector(this);if(!t||!t.classList.contains(eE))return;e.preventDefault();let i=eD.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");if(n){i.to(n),i._maybeEnableCycle();return}if("next"===q.getDataAttribute(this,"slide")){i.next(),i._maybeEnableCycle();return}i.prev(),i._maybeEnableCycle()}),H.on(window,e$,()=>{let e=K.find('[data-bs-ride="carousel"]');for(let t of e)eD.getOrCreateInstance(t)}),y(eD);let eS=".bs.collapse",eI=`show${eS}`,e_=`shown${eS}`,eN=`hide${eS}`,eP=`hidden${eS}`,eM=`click${eS}.data-api`,eF="show",eH="collapse",ej="collapsing",eW=`:scope .${eH} .${eH}`,ez='[data-bs-toggle="collapse"]',eq={parent:null,toggle:!0},eB={parent:"(null|element)",toggle:"boolean"};class eR extends R{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let i=K.find(ez);for(let n of i){let s=K.getSelectorFromElement(n),r=K.find(s).filter(e=>e===this._element);null!==s&&r.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return eq}static get DefaultType(){return eB}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>eR.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;let t=H.trigger(this._element,eI);if(t.defaultPrevented)return;for(let i of e)i.hide();let n=this._getDimension();this._element.classList.remove(eH),this._element.classList.add(ej),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let s=()=>{this._isTransitioning=!1,this._element.classList.remove(ej),this._element.classList.add(eH,eF),this._element.style[n]="",H.trigger(this._element,e_)},r=n[0].toUpperCase()+n.slice(1),o=`scroll${r}`;this._queueCallback(s,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;let e=H.trigger(this._element,eN);if(e.defaultPrevented)return;let t=this._getDimension();for(let i of(this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,p(this._element),this._element.classList.add(ej),this._element.classList.remove(eH,eF),this._triggerArray)){let n=K.getElementFromSelector(i);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;let s=()=>{this._isTransitioning=!1,this._element.classList.remove(ej),this._element.classList.add(eH),H.trigger(this._element,eP)};this._element.style[t]="",this._queueCallback(s,this._element,!0)}_isShown(e=this._element){return e.classList.contains(eF)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=c(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(ez);for(let t of e){let i=K.getElementFromSelector(t);i&&this._addAriaAndCollapsedClass([t],this._isShown(i))}}_getFirstLevelChildren(e){let t=K.find(eW,this._config.parent);return K.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){let t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){let i=eR.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw TypeError(`No method named "${e}"`);i[e]()}})}}H.on(document,eM,ez,function(e){for(let t of(("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault(),K.getMultipleElementsFromSelector(this)))eR.getOrCreateInstance(t,{toggle:!1}).toggle()}),y(eR);var eV="bottom",e0="right",eK="left",eQ="auto",eX=["top",eV,e0,eK],eY="start",eU="clippingParents",e1="viewport",e3="popper",e2="reference",e4=eX.reduce(function(e,t){return e.concat([t+"-"+eY,t+"-end"])},[]),eG=[].concat(eX,[eQ]).reduce(function(e,t){return e.concat([t,t+"-"+eY,t+"-end"])},[]),eZ="beforeRead",e6="read",e7="afterRead",eJ="beforeMain",e5="main",te="afterMain",tt="beforeWrite",ti="write",tn="afterWrite",ts=[eZ,e6,e7,eJ,e5,te,tt,ti,tn];function tr(e){return e?(e.nodeName||"").toLowerCase():null}function to(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ta(e){var t=to(e).Element;return e instanceof t||e instanceof Element}function tl(e){var t=to(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tc(e){if("undefined"==typeof ShadowRoot)return!1;var t=to(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}let th={name:"applyStyles",enabled:!0,phase:"write",fn:function e(t){var i=t.state;Object.keys(i.elements).forEach(function(e){var t=i.styles[e]||{},n=i.attributes[e]||{},s=i.elements[e];tl(s)&&tr(s)&&(Object.assign(s.style,t),Object.keys(n).forEach(function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function e(t){var i=t.state,n={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,n.popper),i.styles=n,i.elements.arrow&&Object.assign(i.elements.arrow.style,n.arrow),function(){Object.keys(i.elements).forEach(function(e){var t=i.elements[e],s=i.attributes[e]||{},r=Object.keys(i.styles.hasOwnProperty(e)?i.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});tl(t)&&tr(t)&&(Object.assign(t.style,r),Object.keys(s).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};function tu(e){return e.split("-")[0]}var td=Math.max,tf=Math.min,tp=Math.round;function tg(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function tm(){return!/^((?!chrome|android).)*safari/i.test(tg())}function t8(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,r=1;t&&tl(e)&&(s=e.offsetWidth>0&&tp(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&tp(n.height)/e.offsetHeight||1);var o=(ta(e)?to(e):window).visualViewport,a=!tm()&&i,l=(n.left+(a&&o?o.offsetLeft:0))/s,c=(n.top+(a&&o?o.offsetTop:0))/r,h=n.width/s,u=n.height/r;return{width:h,height:u,top:c,right:l+h,bottom:c+u,left:l,x:l,y:c}}function tb(e){var t=t8(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function tv(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&tc(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ty(e){return to(e).getComputedStyle(e)}function tw(e){return["table","td","th"].indexOf(tr(e))>=0}function t$(e){return((ta(e)?e.ownerDocument:e.document)||window.document).documentElement}function tA(e){return"html"===tr(e)?e:e.assignedSlot||e.parentNode||(tc(e)?e.host:null)||t$(e)}function tE(e){return tl(e)&&"fixed"!==ty(e).position?e.offsetParent:null}function tC(e){for(var t=to(e),i=tE(e);i&&tw(i)&&"static"===ty(i).position;)i=tE(i);return i&&("html"===tr(i)||"body"===tr(i)&&"static"===ty(i).position)?t:i||function e(t){var i=/firefox/i.test(tg());if(/Trident/i.test(tg())&&tl(t)&&"fixed"===ty(t).position)return null;var n=tA(t);for(tc(n)&&(n=n.host);tl(n)&&0>["html","body"].indexOf(tr(n));){var s=ty(n);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||i&&"filter"===s.willChange||i&&s.filter&&"none"!==s.filter)return n;n=n.parentNode}return null}(e)||t}function tT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function tx(e,t,i){return td(e,tf(t,i))}function tk(){return{top:0,right:0,bottom:0,left:0}}function tL(e){return Object.assign({},tk(),e)}function tO(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}let t9={name:"arrow",enabled:!0,phase:"main",fn:function e(t){var i,n=t.state,s=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=tu(n.placement),c=tT(l),h=[eK,e0].indexOf(l)>=0?"height":"width";if(o&&a){var u,d,f=(u=r.padding,d=n,tL("number"!=typeof(u="function"==typeof u?u(Object.assign({},d.rects,{placement:d.placement})):u)?u:tO(u,eX))),p=tb(o),g=n.rects.reference[h]+n.rects.reference[c]-a[c]-n.rects.popper[h],m=a[c]-n.rects.reference[c],b=tC(o),v=b?"y"===c?b.clientHeight||0:b.clientWidth||0:0,y=f["y"===c?"top":eK],w=v-p[h]-f["y"===c?eV:e0],$=v/2-p[h]/2+(g/2-m/2),A=tx(y,$,w),E=c;n.modifiersData[s]=((i={})[E]=A,i.centerOffset=A-$,i)}},effect:function e(t){var i=t.state,n=t.options.element,s=void 0===n?"[data-popper-arrow]":n;null!=s&&("string"!=typeof s||(s=i.elements.popper.querySelector(s)))&&tv(i.elements.popper,s)&&(i.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tD(e){return e.split("-")[1]}var tS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tI(e){var t,i,n=e.popper,s=e.popperRect,r=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,h=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,g=a.y,m=void 0===g?0:g,b="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=b.x,m=b.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),w=eK,$="top",A=window;if(h){var E=tC(n),C="clientHeight",T="clientWidth";E===to(n)&&(E=t$(n),"static"!==ty(E).position&&"absolute"===l&&(C="scrollHeight",T="scrollWidth")),("top"===r||(r===eK||r===e0)&&"end"===o)&&($=eV,m-=(d&&E===A&&A.visualViewport?A.visualViewport.height:E[C])-s.height,m*=c?1:-1),(r===eK||("top"===r||r===eV)&&"end"===o)&&(w=e0,p-=(d&&E===A&&A.visualViewport?A.visualViewport.width:E[T])-s.width,p*=c?1:-1)}var x,k,L,O,D,S=Object.assign({position:l},h&&tS),I=!0===u?(x={x:p,y:m},k=to(n),L=x.x,O=x.y,{x:tp(L*(D=k.devicePixelRatio||1))/D||0,y:tp(O*D)/D||0}):{x:p,y:m};return(p=I.x,m=I.y,c)?Object.assign({},S,((i={})[$]=y?"0":"",i[w]=v?"0":"",i.transform=1>=(A.devicePixelRatio||1)?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",i)):Object.assign({},S,((t={})[$]=y?m+"px":"",t[w]=v?p+"px":"",t.transform="",t))}let t_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function e(t){var i=t.state,n=t.options,s=n.gpuAcceleration,r=n.adaptive,o=n.roundOffsets,a=void 0===o||o,l={placement:tu(i.placement),variation:tD(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:void 0===s||s,isFixed:"fixed"===i.options.strategy};null!=i.modifiersData.popperOffsets&&(i.styles.popper=Object.assign({},i.styles.popper,tI(Object.assign({},l,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:void 0===r||r,roundOffsets:a})))),null!=i.modifiersData.arrow&&(i.styles.arrow=Object.assign({},i.styles.arrow,tI(Object.assign({},l,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})},data:{}};var tN={passive:!0};let tP={name:"eventListeners",enabled:!0,phase:"write",fn:function e(){},effect:function e(t){var i=t.state,n=t.instance,s=t.options,r=s.scroll,o=void 0===r||r,a=s.resize,l=void 0===a||a,c=to(i.elements.popper),h=[].concat(i.scrollParents.reference,i.scrollParents.popper);return o&&h.forEach(function(e){e.addEventListener("scroll",n.update,tN)}),l&&c.addEventListener("resize",n.update,tN),function(){o&&h.forEach(function(e){e.removeEventListener("scroll",n.update,tN)}),l&&c.removeEventListener("resize",n.update,tN)}},data:{}};var tM={left:"right",right:"left",bottom:"top",top:"bottom"};function tF(e){return e.replace(/left|right|bottom|top/g,function(e){return tM[e]})}var tH={start:"end",end:"start"};function tj(e){return e.replace(/start|end/g,function(e){return tH[e]})}function tW(e){var t,i=to(e);return{scrollLeft:i.pageXOffset,scrollTop:i.pageYOffset}}function tz(e){return t8(t$(e)).left+tW(e).scrollLeft}function tq(e){var t=ty(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function tB(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(tr(t))>=0?t.ownerDocument.body:tl(t)&&tq(t)?t:e(tA(t))}(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),r=to(n),o=s?[r].concat(r.visualViewport||[],tq(n)?n:[]):n,a=t.concat(o);return s?a:a.concat(tB(tA(o)))}function tR(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tV(e,t,i){var n,s,r,o,a,l,c,h,u,d,f,p;return t===e1?tR(function e(t,i){var n=to(t),s=t$(t),r=n.visualViewport,o=s.clientWidth,a=s.clientHeight,l=0,c=0;if(r){o=r.width,a=r.height;var h=tm();(h||!h&&"fixed"===i)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:o,height:a,x:l+tz(t),y:c}}(e,i)):ta(t)?(n=t,(r=t8(n,!1,"fixed"===(s=i))).top=r.top+n.clientTop,r.left=r.left+n.clientLeft,r.bottom=r.top+n.clientHeight,r.right=r.left+n.clientWidth,r.width=n.clientWidth,r.height=n.clientHeight,r.x=r.left,r.y=r.top,r):tR((o=t$(e),l=t$(o),c=tW(o),h=null==(a=o.ownerDocument)?void 0:a.body,u=td(l.scrollWidth,l.clientWidth,h?h.scrollWidth:0,h?h.clientWidth:0),d=td(l.scrollHeight,l.clientHeight,h?h.scrollHeight:0,h?h.clientHeight:0),f=-c.scrollLeft+tz(o),p=-c.scrollTop,"rtl"===ty(h||l).direction&&(f+=td(l.clientWidth,h?h.clientWidth:0)-u),{width:u,height:d,x:f,y:p}))}function t0(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?tu(s):null,o=s?tD(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case"top":t={x:a,y:i.y-n.height};break;case eV:t={x:a,y:i.y+i.height};break;case e0:t={x:i.x+i.width,y:l};break;case eK:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?tT(r):null;if(null!=c){var h="y"===c?"height":"width";switch(o){case eY:t[c]=t[c]-(i[h]/2-n[h]/2);break;case"end":t[c]=t[c]+(i[h]/2-n[h]/2)}}return t}function tK(e,t){void 0===t&&(t={});var i,n,s,r,o,a,l,c,h,u,d=t,f=d.placement,p=void 0===f?e.placement:f,g=d.strategy,m=void 0===g?e.strategy:g,b=d.boundary,v=d.rootBoundary,y=d.elementContext,w=void 0===y?e3:y,$=d.altBoundary,A=d.padding,E=void 0===A?0:A,C=tL("number"!=typeof E?E:tO(E,eX)),T=e.rects.popper,x=e.elements[void 0!==$&&$?w===e3?e2:e3:w],k=(i=ta(x)?x:x.contextElement||t$(e.elements.popper),n=void 0===b?eU:b,s=void 0===v?e1:v,r=m,h=(c=[].concat("clippingParents"===n?(o=i,a=tB(tA(o)),l=["absolute","fixed"].indexOf(ty(o).position)>=0&&tl(o)?tC(o):o,ta(l)?a.filter(function(e){return ta(e)&&tv(e,l)&&"body"!==tr(e)}):[]):[].concat(n),[s]))[0],(u=c.reduce(function(e,t){var n=tV(i,t,r);return e.top=td(n.top,e.top),e.right=tf(n.right,e.right),e.bottom=tf(n.bottom,e.bottom),e.left=td(n.left,e.left),e},tV(i,h,r))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),L=t8(e.elements.reference),O=t0({reference:L,element:T,strategy:"absolute",placement:p}),D=tR(Object.assign({},T,O)),S=w===e3?D:L,I={top:k.top-S.top+C.top,bottom:S.bottom-k.bottom+C.bottom,left:k.left-S.left+C.left,right:S.right-k.right+C.right},_=e.modifiersData.offset;if(w===e3&&_){var N=_[p];Object.keys(I).forEach(function(e){var t=[e0,eV].indexOf(e)>=0?1:-1,i=["top",eV].indexOf(e)>=0?"y":"x";I[e]+=N[i]*t})}return I}let tQ={name:"flip",enabled:!0,phase:"main",fn:function e(t){var i=t.state,n=t.options,s=t.name;if(!i.modifiersData[s]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,l=void 0===a||a,c=n.fallbackPlacements,h=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=void 0===p||p,m=n.allowedAutoPlacements,b=i.options.placement,v=tu(b),y=[b].concat(c||(v!==b&&g?function e(t){if(tu(t)===eQ)return[];var i=tF(t);return[tj(t),i,tj(i)]}(b):[tF(b)])).reduce(function(e,t){var n,s,r,o,a,l,c,f,p,b,v,y,w,$;return e.concat(tu(t)===eQ?(n=i,s={placement:t,boundary:u,rootBoundary:d,padding:h,flipVariations:g,allowedAutoPlacements:m},o=(r=s).placement,a=r.boundary,l=r.rootBoundary,c=r.padding,f=r.flipVariations,b=void 0===(p=r.allowedAutoPlacements)?eG:p,0===(w=(y=(v=tD(o))?f?e4:e4.filter(function(e){return tD(e)===v}):eX).filter(function(e){return b.indexOf(e)>=0})).length&&(w=y),Object.keys($=w.reduce(function(e,t){return e[t]=tK(n,{placement:t,boundary:a,rootBoundary:l,padding:c})[tu(t)],e},{})).sort(function(e,t){return $[e]-$[t]})):t)},[]),w=i.rects.reference,$=i.rects.popper,A=new Map,E=!0,C=y[0],T=0;T=0,D=O?"width":"height",S=tK(i,{placement:x,boundary:u,rootBoundary:d,altBoundary:f,padding:h}),I=O?L?e0:eK:L?eV:"top";w[D]>$[D]&&(I=tF(I));var _=tF(I),N=[];if(o&&N.push(S[k]<=0),l&&N.push(S[I]<=0,S[_]<=0),N.every(function(e){return e})){C=x,E=!1;break}A.set(x,N)}if(E)for(var P=g?3:1,M=function e(t){var i=y.find(function(e){var i=A.get(e);if(i)return i.slice(0,t).every(function(e){return e})});if(i)return C=i,"break"},F=P;F>0&&"break"!==M(F);F--);i.placement!==C&&(i.modifiersData[s]._skip=!0,i.placement=C,i.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function tX(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function tY(e){return["top",e0,eV,eK].some(function(t){return e[t]>=0})}let tU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function e(t){var i=t.state,n=t.name,s=i.rects.reference,r=i.rects.popper,o=i.modifiersData.preventOverflow,a=tK(i,{elementContext:"reference"}),l=tK(i,{altBoundary:!0}),c=tX(a,s),h=tX(l,r,o),u=tY(c),d=tY(h);i.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:d},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},t1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function e(t){var i=t.state,n=t.options,s=t.name,r=n.offset,o=void 0===r?[0,0]:r,a=eG.reduce(function(e,t){var n,s,r,a,l,c,h,u;return e[t]=(n=t,s=i.rects,r=o,l=[eK,"top"].indexOf(a=tu(n))>=0?-1:1,h=(c="function"==typeof r?r(Object.assign({},s,{placement:n})):r)[0],u=c[1],h=h||0,u=(u||0)*l,[eK,e0].indexOf(a)>=0?{x:u,y:h}:{x:h,y:u}),e},{}),l=a[i.placement],c=l.x,h=l.y;null!=i.modifiersData.popperOffsets&&(i.modifiersData.popperOffsets.x+=c,i.modifiersData.popperOffsets.y+=h),i.modifiersData[s]=a}},t3={name:"popperOffsets",enabled:!0,phase:"read",fn:function e(t){var i=t.state,n=t.name;i.modifiersData[n]=t0({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})},data:{}},t2={name:"preventOverflow",enabled:!0,phase:"main",fn:function e(t){var i,n=t.state,s=t.options,r=t.name,o=s.mainAxis,a=s.altAxis,l=s.boundary,c=s.rootBoundary,h=s.altBoundary,u=s.padding,d=s.tether,f=void 0===d||d,p=s.tetherOffset,g=void 0===p?0:p,m=tK(n,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),b=tu(n.placement),v=tD(n.placement),y=!v,w=tT(b),$="x"===(i=w)?"y":"x",A=n.modifiersData.popperOffsets,E=n.rects.reference,C=n.rects.popper,T="function"==typeof g?g(Object.assign({},n.rects,{placement:n.placement})):g,x="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,L={x:0,y:0};if(A){if(void 0===o||o){var O,D="y"===w?"top":eK,S="y"===w?eV:e0,I="y"===w?"height":"width",_=A[w],N=_+m[D],P=_-m[S],M=f?-C[I]/2:0,F=v===eY?E[I]:C[I],H=v===eY?-C[I]:-E[I],j=n.elements.arrow,W=f&&j?tb(j):{width:0,height:0},z=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:tk(),q=z[D],B=z[S],R=tx(0,E[I],W[I]),V=y?E[I]/2-M-R-q-x.mainAxis:F-R-q-x.mainAxis,K=y?-E[I]/2+M+R+B+x.mainAxis:H+R+B+x.mainAxis,Q=n.elements.arrow&&tC(n.elements.arrow),X=Q?"y"===w?Q.clientTop||0:Q.clientLeft||0:0,Y=null!=(O=null==k?void 0:k[w])?O:0,U=tx(f?tf(N,_+V-Y-X):N,_,f?td(P,_+K-Y):P);A[w]=U,L[w]=U-_}if(void 0!==a&&a){var G,Z,J,ee,et,ei=A[$],en="y"===$?"height":"width",es=ei+m["x"===w?"top":eK],er=ei-m["x"===w?eV:e0],eo=-1!==["top",eK].indexOf(b),ea=null!=(G=null==k?void 0:k[$])?G:0,el=eo?es:ei-E[en]-C[en]-ea+x.altAxis,ec=eo?ei+E[en]+C[en]-ea-x.altAxis:er,eh=f&&eo?(Z=el,J=ei,ee=ec,(et=tx(Z,J,ee))>ee?ee:et):tx(f?el:es,ei,f?ec:er);A[$]=eh,L[$]=eh-ei}n.modifiersData[r]=L}},requiresIfExists:["offset"]};var t4={placement:"bottom",modifiers:[],strategy:"absolute"};function tG(){for(var e=arguments.length,t=Array(e),i=0;iNumber.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(q.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...w(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){let i=K.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>h(e));i.length&&A(i,t,e===is,!i.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){let t=iC.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;let t=K.find(ig);for(let i of t){let n=iC.getInstance(i);if(!n||!1===n._config.autoClose)continue;let s=e.composedPath(),r=s.includes(n._menu);if(s.includes(n._element)||"inside"===n._config.autoClose&&!r||"outside"===n._config.autoClose&&r||n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;let o={relatedTarget:n._element};"click"===e.type&&(o.clickEvent=e),n._completeHide(o)}}static dataApiKeydownHandler(e){let t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=["ArrowUp",is].includes(e.key);if(!n&&!i||t&&!i)return;e.preventDefault();let s=this.matches(ip)?this:K.prev(this,ip)[0]||K.next(this,ip)[0]||K.findOne(ip,e.delegateTarget.parentNode),r=iC.getOrCreateInstance(s);if(n){e.stopPropagation(),r.show(),r._selectMenuItem(e);return}r._isShown()&&(e.stopPropagation(),r.hide(),s.focus())}}H.on(document,ih,ip,iC.dataApiKeydownHandler),H.on(document,ih,im,iC.dataApiKeydownHandler),H.on(document,ic,iC.clearMenus),H.on(document,iu,iC.clearMenus),H.on(document,ic,ip,function(e){e.preventDefault(),iC.getOrCreateInstance(this).toggle()}),y(iC);let iT="backdrop",ix="show",ik=`mousedown.bs.${iT}`,iL={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},iO={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class i9 extends B{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return iL}static get DefaultType(){return iO}static get NAME(){return iT}show(e){if(!this._config.isVisible){w(e);return}this._append();let t=this._getElement();this._config.isAnimated&&p(t),t.classList.add(ix),this._emulateAnimation(()=>{w(e)})}hide(e){if(!this._config.isVisible){w(e);return}this._getElement().classList.remove(ix),this._emulateAnimation(()=>{this.dispose(),w(e)})}dispose(){this._isAppended&&(H.off(this._element,ik),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=c(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),H.on(e,ik,()=>{w(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){$(e,this._getElement(),this._config.isAnimated)}}let iD=".bs.focustrap",iS=`focusin${iD}`,iI=`keydown.tab${iD}`,i_="backward",iN={autofocus:!0,trapElement:null},iP={autofocus:"boolean",trapElement:"element"};class iM extends B{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return iN}static get DefaultType(){return iP}static get NAME(){return"focustrap"}activate(){!this._isActive&&(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,iD),H.on(document,iS,e=>this._handleFocusin(e)),H.on(document,iI,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,iD))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let i=K.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===i_?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?i_:"forward")}}let iF=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",iH=".sticky-top",ij="padding-right",iW="margin-right";class iz{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ij,t=>t+e),this._setElementAttributes(iF,ij,t=>t+e),this._setElementAttributes(iH,iW,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ij),this._resetElementAttributes(iF,ij),this._resetElementAttributes(iH,iW)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){let n=this.getWidth(),s=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);let s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(s))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,t){let i=e.style.getPropertyValue(t);i&&q.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){let i=e=>{let i=q.getDataAttribute(e,t);if(null===i){e.style.removeProperty(t);return}q.removeDataAttribute(e,t),e.style.setProperty(t,i)};this._applyManipulationCallback(e,i)}_applyManipulationCallback(e,t){if(l(e)){t(e);return}for(let i of K.find(e,this._element))t(i)}}let iq=".bs.modal",iB=`hide${iq}`,iR=`hidePrevented${iq}`,iV=`hidden${iq}`,i0=`show${iq}`,iK=`shown${iq}`,iQ=`resize${iq}`,iX=`click.dismiss${iq}`,iY=`mousedown.dismiss${iq}`,iU=`keydown.dismiss${iq}`,i1=`click${iq}.data-api`,i3="modal-open",i2="show",i4="modal-static",iG={backdrop:!0,focus:!0,keyboard:!0},iZ={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class i6 extends R{constructor(e,t){super(e,t),this._dialog=K.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new iz,this._addEventListeners()}static get Default(){return iG}static get DefaultType(){return iZ}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;let t=H.trigger(this._element,i0,{relatedTarget:e});!t.defaultPrevented&&(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(i3),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){if(!this._isShown||this._isTransitioning)return;let e=H.trigger(this._element,iB);!e.defaultPrevented&&(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(i2),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){H.off(window,iq),H.off(this._dialog,iq),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new i9({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new iM({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||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;let t=K.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),p(this._element),this._element.classList.add(i2);let i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,iK,{relatedTarget:e})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,iU,e=>{if("Escape"===e.key){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),H.on(window,iQ,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),H.on(this._element,iY,e=>{H.one(this._element,iX,t=>{if(this._element===e.target&&this._element===t.target){if("static"===this._config.backdrop){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_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(i3),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,iV)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){let e=H.trigger(this._element,iR);if(e.defaultPrevented)return;let t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;!("hidden"===i||this._element.classList.contains(i4))&&(t||(this._element.style.overflowY="hidden"),this._element.classList.add(i4),this._queueCallback(()=>{this._element.classList.remove(i4),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){let n=v()?"paddingLeft":"paddingRight";this._element.style[n]=`${t}px`}if(!i&&e){let s=v()?"paddingRight":"paddingLeft";this._element.style[s]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){let i=i6.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw TypeError(`No method named "${e}"`);i[e](t)}})}}H.on(document,i1,'[data-bs-toggle="modal"]',function(e){let t=K.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),H.one(t,i0,e=>{!e.defaultPrevented&&H.one(t,iV,()=>{h(this)&&this.focus()})});let i=K.findOne(".modal.show");i&&i6.getInstance(i).hide();let n=i6.getOrCreateInstance(t);n.toggle(this)}),Q(i6),y(i6);let i7=".bs.offcanvas",iJ=".data-api",i5=`load${i7}${iJ}`,ne="show",nt="showing",ni="hiding",nn=".offcanvas.show",ns=`show${i7}`,nr=`shown${i7}`,no=`hide${i7}`,na=`hidePrevented${i7}`,nl=`hidden${i7}`,nc=`resize${i7}`,nh=`click${i7}${iJ}`,nu=`keydown.dismiss${i7}`,nd={backdrop:!0,keyboard:!0,scroll:!1},nf={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class np extends R{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return nd}static get DefaultType(){return nf}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;let t=H.trigger(this._element,ns,{relatedTarget:e});if(t.defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new iz().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(nt);let i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ne),this._element.classList.remove(nt),H.trigger(this._element,nr,{relatedTarget:e})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown)return;let e=H.trigger(this._element,no);if(e.defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ni),this._backdrop.hide();let t=()=>{this._element.classList.remove(ne,ni),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new iz().reset(),H.trigger(this._element,nl)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if("static"===this._config.backdrop){H.trigger(this._element,na);return}this.hide()},t=Boolean(this._config.backdrop);return new i9({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new iM({trapElement:this._element})}_addEventListeners(){H.on(this._element,nu,e=>{if("Escape"===e.key){if(this._config.keyboard){this.hide();return}H.trigger(this._element,na)}})}static jQueryInterface(e){return this.each(function(){let t=np.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw TypeError(`No method named "${e}"`);t[e](this)}})}}H.on(document,nh,'[data-bs-toggle="offcanvas"]',function(e){let t=K.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),u(this))return;H.one(t,nl,()=>{h(this)&&this.focus()});let i=K.findOne(nn);i&&i!==t&&np.getInstance(i).hide();let n=np.getOrCreateInstance(t);n.toggle(this)}),H.on(window,i5,()=>{for(let e of K.find(nn))np.getOrCreateInstance(e).show()}),H.on(window,nc,()=>{for(let e of K.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&np.getOrCreateInstance(e).hide()}),Q(np),y(np);let ng={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},nm=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),n8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,nb=(e,t)=>{let i=e.nodeName.toLowerCase();return t.includes(i)?!nm.has(i)||Boolean(n8.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))},nv={allowList:ng,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},ny={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},nw={entry:"(string|element|function|null)",selector:"(string|element)"};class n$ extends B{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return nv}static get DefaultType(){return ny}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement("div");for(let[t,i]of(e.innerHTML=this._maybeSanitize(this._config.template),Object.entries(this._config.content)))this._setContent(e,i,t);let n=e.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&n.classList.add(...s.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},nw)}_setContent(e,t,i){let n=K.findOne(i,e);if(n){if(!(t=this._resolvePossibleFunction(t))){n.remove();return}if(l(t)){this._putElementInTemplate(c(t),n);return}if(this._config.html){n.innerHTML=this._maybeSanitize(t);return}n.textContent=t}}_maybeSanitize(e){return this._config.sanitize?function e(t,i,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);let s=new window.DOMParser,r=s.parseFromString(t,"text/html"),o=[].concat(...r.body.querySelectorAll("*"));for(let a of o){let l=a.nodeName.toLowerCase();if(!Object.keys(i).includes(l)){a.remove();continue}let c=[].concat(...a.attributes),h=[].concat(i["*"]||[],i[l]||[]);for(let u of c)nb(u,h)||a.removeAttribute(u.nodeName)}return r.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return w(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}let nA=new Set(["sanitize","allowList","sanitizeFn"]),nE="fade",nC="show",nT=".modal",nx="hide.bs.modal",nk="hover",nL="focus",nO={AUTO:"auto",TOP:"top",RIGHT:v()?"left":"right",BOTTOM:"bottom",LEFT:v()?"right":"left"},n9={allowList:ng,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},nD={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class nS extends R{constructor(e,t){if(void 0===t5)throw TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return n9}static get DefaultType(){return nD}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(nT),nx,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let e=H.trigger(this._element,this.constructor.eventName("show")),t=d(this._element),i=(t||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!i)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));let{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),H.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(nC),"ontouchstart"in document.documentElement)for(let r of[].concat(...document.body.children))H.on(r,"mouseover",f);let o=()=>{H.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown())return;let e=H.trigger(this._element,this.constructor.eventName("hide"));if(e.defaultPrevented)return;let t=this._getTipElement();if(t.classList.remove(nC),"ontouchstart"in document.documentElement)for(let i of[].concat(...document.body.children))H.off(i,"mouseover",f);this._activeTrigger.click=!1,this._activeTrigger[nL]=!1,this._activeTrigger[nk]=!1,this._isHovered=null;let n=()=>{!this._isWithActiveTrigger()&&(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),H.trigger(this._element,this.constructor.eventName("hidden")))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(nE,nC),t.classList.add(`bs-${this.constructor.NAME}-auto`);let i=r(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(nE),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new n$({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(nE)}_isShown(){return this.tip&&this.tip.classList.contains(nC)}_createPopper(e){let t=w(this._config.placement,[this,e,this._element]),i=nO[t.toUpperCase()];return tJ(this._element,e,this._getPopperConfig(i))}_getOffset(){let{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return w(e,[this._element])}_getPopperConfig(e){let t={placement:e,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:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...w(this._config.popperConfig,[t])}}_setListeners(){let e=this._config.trigger.split(" ");for(let t of e)if("click"===t)H.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t.toggle()});else if("manual"!==t){let i=t===nk?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===nk?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");H.on(this._element,i,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?nL:nk]=!0,t._enter()}),H.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?nL:nk]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(nT),nx,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){!this._isWithActiveTrigger()&&(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=q.getDataAttributes(this._element);for(let i of Object.keys(t))nA.has(i)&&delete t[i];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:c(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){let t=nS.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw TypeError(`No method named "${e}"`);t[e]()}})}}y(nS);let nI={...nS.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},n_={...nS.DefaultType,content:"(null|string|element|function)"};class nN extends nS{static get Default(){return nI}static get DefaultType(){return n_}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){let t=nN.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw TypeError(`No method named "${e}"`);t[e]()}})}}y(nN);let nP=".bs.scrollspy",nM=`activate${nP}`,nF=`click${nP}`,nH=`load${nP}.data-api`,nj="active",nW="[href]",nz=".nav-link",nq=`${nz}, .nav-item > ${nz}, .list-group-item`,nB={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},nR={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class nV extends R{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return nB}static get DefaultType(){return nR}static get NAME(){return"scrollspy"}refresh(){for(let e of(this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver(),this._observableSections.values()))this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=c(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(H.off(this._config.target,nF),H.on(this._config.target,nF,nW,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:n,behavior:"smooth"});return}i.scrollTop=n}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;for(let r of(this._previousScrollData.parentScrollTop=n,e)){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}let o=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&o){if(i(r),!n)return;continue}s||o||i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=K.find(nW,this._config.target);for(let t of e){if(!t.hash||u(t))continue;let i=K.findOne(decodeURI(t.hash),this._element);h(i)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,i))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(nj),this._activateParents(e),H.trigger(this._element,nM,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item")){K.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(nj);return}for(let t of K.parents(e,".nav, .list-group"))for(let i of K.prev(t,nq))i.classList.add(nj)}_clearActiveClass(e){e.classList.remove(nj);let t=K.find(`${nW}.${nj}`,e);for(let i of t)i.classList.remove(nj)}static jQueryInterface(e){return this.each(function(){let t=nV.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw TypeError(`No method named "${e}"`);t[e]()}})}}H.on(window,nH,()=>{for(let e of K.find('[data-bs-spy="scroll"]'))nV.getOrCreateInstance(e)}),y(nV);let n0=".bs.tab",nK=`hide${n0}`,nQ=`hidden${n0}`,nX=`show${n0}`,nY=`shown${n0}`,nU=`click${n0}`,n1=`keydown${n0}`,n3=`load${n0}`,n2="ArrowRight",n4="ArrowDown",nG="Home",nZ="active",n6="fade",n7="show",nJ=".dropdown-toggle",n5=`:not(${nJ})`,se=`.nav-link${n5}, .list-group-item${n5}, [role="tab"]${n5}`,st='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',si=`${se}, ${st}`,sn=`.${nZ}[data-bs-toggle="tab"], .${nZ}[data-bs-toggle="pill"], .${nZ}[data-bs-toggle="list"]`;class ss extends R{constructor(e){if(super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),!this._parent)return;this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,n1,e=>this._keydown(e))}static get NAME(){return"tab"}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),i=t?H.trigger(t,nK,{relatedTarget:e}):null,n=H.trigger(e,nX,{relatedTarget:t});!n.defaultPrevented&&(!i||!i.defaultPrevented)&&(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(nZ),this._activate(K.getElementFromSelector(e));let i=()=>{if("tab"!==e.getAttribute("role")){e.classList.add(n7);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),H.trigger(e,nY,{relatedTarget:t})};this._queueCallback(i,e,e.classList.contains(n6))}_deactivate(e,t){if(!e)return;e.classList.remove(nZ),e.blur(),this._deactivate(K.getElementFromSelector(e));let i=()=>{if("tab"!==e.getAttribute("role")){e.classList.remove(n7);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),H.trigger(e,nQ,{relatedTarget:t})};this._queueCallback(i,e,e.classList.contains(n6))}_keydown(e){if(!["ArrowLeft",n2,"ArrowUp",n4,nG,"End"].includes(e.key))return;e.stopPropagation(),e.preventDefault();let t=this._getChildren().filter(e=>!u(e)),i;if([nG,"End"].includes(e.key))i=t[e.key===nG?0:t.length-1];else{let n=[n2,n4].includes(e.key);i=A(t,e.target,n,!0)}i&&(i.focus({preventScroll:!0}),ss.getOrCreateInstance(i).show())}_getChildren(){return K.find(si,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){for(let i of(this._setAttributeIfNotExists(e,"role","tablist"),t))this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=K.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){let i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;let n=(e,n)=>{let s=K.findOne(e,i);s&&s.classList.toggle(n,t)};n(nJ,nZ),n(".dropdown-menu",n7),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(nZ)}_getInnerElement(e){return e.matches(si)?e:K.findOne(si,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){let t=ss.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw TypeError(`No method named "${e}"`);t[e]()}})}}H.on(document,nU,st,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!u(this)&&ss.getOrCreateInstance(this).show()}),H.on(window,n3,()=>{for(let e of K.find(sn))ss.getOrCreateInstance(e)}),y(ss);let sr=".bs.toast",so=`mouseover${sr}`,sa=`mouseout${sr}`,sl=`focusin${sr}`,sc=`focusout${sr}`,sh=`hide${sr}`,su=`hidden${sr}`,sd=`show${sr}`,sf=`shown${sr}`,sp="hide",sg="show",sm="showing",s8={animation:"boolean",autohide:"boolean",delay:"number"},sb={animation:!0,autohide:!0,delay:5e3};class sv extends R{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return sb}static get DefaultType(){return s8}static get NAME(){return"toast"}show(){let e=H.trigger(this._element,sd);if(e.defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");let t=()=>{this._element.classList.remove(sm),H.trigger(this._element,sf),this._maybeScheduleHide()};this._element.classList.remove(sp),p(this._element),this._element.classList.add(sg,sm),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown())return;let e=H.trigger(this._element,sh);if(e.defaultPrevented)return;let t=()=>{this._element.classList.add(sp),this._element.classList.remove(sm,sg),H.trigger(this._element,su)};this._element.classList.add(sm),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(sg),super.dispose()}isShown(){return this._element.classList.contains(sg)}_maybeScheduleHide(){this._config.autohide&&!this._hasMouseInteraction&&!this._hasKeyboardInteraction&&(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t){this._clearTimeout();return}let i=e.relatedTarget;!(this._element===i||this._element.contains(i))&&this._maybeScheduleHide()}_setListeners(){H.on(this._element,so,e=>this._onInteraction(e,!0)),H.on(this._element,sa,e=>this._onInteraction(e,!1)),H.on(this._element,sl,e=>this._onInteraction(e,!0)),H.on(this._element,sc,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){let t=sv.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw TypeError(`No method named "${e}"`);t[e](this)}})}}return Q(sv),y(sv),{Alert:G,Button:ee,Carousel:eD,Collapse:eR,Dropdown:iC,Modal:i6,Offcanvas:np,Popover:nN,ScrollSpy:nV,Tab:ss,Toast:sv,Tooltip:nS}});