Warning: unlink(/var/www/moodledata/cache/core_component.php): No such file or directory in /var/www/moodle/public/lib/classes/component.php on line 490
import ht from"./dom/data.js";import Se from"./dom/event-handler.js";import Ne from"./util/config.js";import{executeAfterTransition as Oe,getElement as Dt}from"./util/index.js";var Le="5.3.8",_t=class extends Ne{constructor(t,e){super(),t=Dt(t),t&&(this._element=t,this._config=this._getConfig(e),ht.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ht.remove(this._element,this.constructor.DATA_KEY),Se.off(this._element,this.constructor.EVENT_KEY);for(let t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,s=!0){Oe(t,e,s)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return ht.get(Dt(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return Le}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}},a=_t;import wt from"./dom/event-handler.js";import{enableDismissTrigger as ye}from"./util/component-functions.js";import{defineJQueryPlugin as De}from"./util/index.js";var we="alert",Ie="bs.alert",It=`.${Ie}`,Me=`close${It}`,Pe=`closed${It}`,Re="fade",$e="show",K=class n extends a{static get NAME(){return we}close(){if(wt.trigger(this._element,Me).defaultPrevented)return;this._element.classList.remove($e);let e=this._element.classList.contains(Re);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),wt.trigger(this._element,Pe),this.dispose()}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};ye(K,"close");De(K);var ke=K;import Ve from"./dom/event-handler.js";import{defineJQueryPlugin as He}from"./util/index.js";var xe="button",Ke="bs.button",We=`.${Ke}`,Ye=".data-api",Be="active",Mt='[data-bs-toggle="button"]',Fe=`click${We}${Ye}`,W=class n extends a{static get NAME(){return xe}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Be))}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this);t==="toggle"&&e[t]()})}};Ve.on(document,Fe,Mt,n=>{n.preventDefault();let t=n.target.closest(Mt);W.getOrCreateInstance(t).toggle()});He(W);var Ge=W;import m from"./dom/event-handler.js";import Ue from"./dom/manipulator.js";import g from"./dom/selector-engine.js";import{defineJQueryPlugin as je,getNextActiveElement as ze,isRTL as Pt,isVisible as Qe,reflow as qe,triggerTransitionEnd as Je}from"./util/index.js";import Rt from"./util/swipe.js";var Ze="carousel",Xe="bs.carousel",T=`.${Xe}`,$t=".data-api",ts="ArrowLeft",es="ArrowRight",ss=500,Y="next",M="prev",P="left",Z="right",is=`slide${T}`,dt=`slid${T}`,ns=`keydown${T}`,os=`mouseenter${T}`,rs=`mouseleave${T}`,as=`dragstart${T}`,ls=`load${T}${$t}`,cs=`click${T}${$t}`,kt="carousel",J="active",hs="slide",_s="carousel-item-end",ds="carousel-item-start",us="carousel-item-next",ms="carousel-item-prev",Vt=".active",Ht=".carousel-item",fs=Vt+Ht,ps=".carousel-item img",Es=".carousel-indicators",gs="[data-bs-slide], [data-bs-slide-to]",Ts='[data-bs-ride="carousel"]',As={[ts]:Z,[es]:P},bs={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},vs={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},R=class n extends a{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=g.findOne(Es,this._element),this._addEventListeners(),this._config.ride===kt&&this.cycle()}static get Default(){return bs}static get DefaultType(){return vs}static get NAME(){return Ze}next(){this._slide(Y)}nextWhenVisible(){!document.hidden&&Qe(this._element)&&this.next()}prev(){this._slide(M)}pause(){this._isSliding&&Je(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){m.one(this._element,dt,()=>this.cycle());return}this.cycle()}}to(t){let e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){m.one(this._element,dt,()=>this.to(t));return}let s=this._getItemIndex(this._getActive());if(s===t)return;let i=t>s?Y:M;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&m.on(this._element,ns,t=>this._keydown(t)),this._config.pause==="hover"&&(m.on(this._element,os,()=>this.pause()),m.on(this._element,rs,()=>this._maybeEnableCycle())),this._config.touch&&Rt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let s of g.find(ps,this._element))m.on(s,as,i=>i.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(P)),rightCallback:()=>this._slide(this._directionToOrder(Z)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),ss+this._config.interval))}};this._swipeHelper=new Rt(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=As[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;let e=g.findOne(Vt,this._indicatorsElement);e.classList.remove(J),e.removeAttribute("aria-current");let s=g.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);s&&(s.classList.add(J),s.setAttribute("aria-current","true"))}_updateInterval(){let t=this._activeElement||this._getActive();if(!t)return;let e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;let s=this._getActive(),i=t===Y,o=e||ze(this._getItems(),s,i,this._config.wrap);if(o===s)return;let r=this._getItemIndex(o),l=Ce=>m.trigger(this._element,Ce,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(s),to:r});if(l(is).defaultPrevented||!s||!o)return;let be=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;let q=i?ds:_s,ct=i?us:ms;o.classList.add(ct),qe(o),s.classList.add(q),o.classList.add(q);let ve=()=>{o.classList.remove(q,ct),o.classList.add(J),s.classList.remove(J,ct,q),this._isSliding=!1,l(dt)};this._queueCallback(ve,s,this._isAnimated()),be&&this.cycle()}_isAnimated(){return this._element.classList.contains(hs)}_getActive(){return g.findOne(fs,this._element)}_getItems(){return g.find(Ht,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Pt()?t===P?M:Y:t===P?Y:M}_orderToDirection(t){return Pt()?t===M?P:Z:t===M?Z:P}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}};m.on(document,cs,gs,function(n){let t=g.getElementFromSelector(this);if(!t||!t.classList.contains(kt))return;n.preventDefault();let e=R.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");if(s){e.to(s),e._maybeEnableCycle();return}if(Ue.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});m.on(window,ls,()=>{let n=g.find(Ts);for(let t of n)R.getOrCreateInstance(t)});je(R);var Cs=R;import B from"./dom/event-handler.js";import A from"./dom/selector-engine.js";import{defineJQueryPlugin as Ss,getElement as Ns,reflow as Os}from"./util/index.js";var Ls="collapse",ys="bs.collapse",G=`.${ys}`,Ds=".data-api",ws=`show${G}`,Is=`shown${G}`,Ms=`hide${G}`,Ps=`hidden${G}`,Rs=`click${G}${Ds}`,ut="show",$="collapse",X="collapsing",$s="collapsed",ks=`:scope .${$} .${$}`,Vs="collapse-horizontal",Hs="width",xs="height",Ks=".collapse.show, .collapse.collapsing",mt='[data-bs-toggle="collapse"]',Ws={parent:null,toggle:!0},Ys={parent:"(null|element)",toggle:"boolean"},F=class n extends a{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];let s=A.find(mt);for(let i of s){let o=A.getSelectorFromElement(i),r=A.find(o).filter(l=>l===this._element);o!==null&&r.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ws}static get DefaultType(){return Ys}static get NAME(){return Ls}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Ks).filter(l=>l!==this._element).map(l=>n.getOrCreateInstance(l,{toggle:!1}))),t.length&&t[0]._isTransitioning||B.trigger(this._element,ws).defaultPrevented)return;for(let l of t)l.hide();let s=this._getDimension();this._element.classList.remove($),this._element.classList.add(X),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let i=()=>{this._isTransitioning=!1,this._element.classList.remove(X),this._element.classList.add($,ut),this._element.style[s]="",B.trigger(this._element,Is)},r=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[s]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||B.trigger(this._element,Ms).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Os(this._element),this._element.classList.add(X),this._element.classList.remove($,ut);for(let i of this._triggerArray){let o=A.getElementFromSelector(i);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;let s=()=>{this._isTransitioning=!1,this._element.classList.remove(X),this._element.classList.add($),B.trigger(this._element,Ps)};this._element.style[e]="",this._queueCallback(s,this._element,!0)}_isShown(t=this._element){return t.classList.contains(ut)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Ns(t.parent),t}_getDimension(){return this._element.classList.contains(Vs)?Hs:xs}_initializeChildren(){if(!this._config.parent)return;let t=this._getFirstLevelChildren(mt);for(let e of t){let s=A.getElementFromSelector(e);s&&this._addAriaAndCollapsedClass([e],this._isShown(s))}}_getFirstLevelChildren(t){let e=A.find(ks,this._config.parent);return A.find(t,this._config.parent).filter(s=>!e.includes(s))}_addAriaAndCollapsedClass(t,e){if(t.length)for(let s of t)s.classList.toggle($s,!e),s.setAttribute("aria-expanded",e)}static jQueryInterface(t){let e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){let s=n.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t]()}})}};B.on(document,Rs,mt,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(let t of A.getMultipleElementsFromSelector(this))F.getOrCreateInstance(t,{toggle:!1}).toggle()});Ss(F);var Bs=F;import*as ft from"@popperjs/core";import d from"./dom/event-handler.js";import xt from"./dom/manipulator.js";import b from"./dom/selector-engine.js";import{defineJQueryPlugin as Fs,execute as Gs,getElement as Us,getNextActiveElement as js,isDisabled as Kt,isElement as Wt,isRTL as V,isVisible as zs,noop as Yt}from"./util/index.js";var Bt="dropdown",Qs="bs.dropdown",N=`.${Qs}`,pt=".data-api",qs="Escape",Ft="Tab",Js="ArrowUp",Gt="ArrowDown",Zs=2,Xs=`hide${N}`,ti=`hidden${N}`,ei=`show${N}`,si=`shown${N}`,Ut=`click${N}${pt}`,jt=`keydown${N}${pt}`,ii=`keyup${N}${pt}`,k="show",ni="dropup",oi="dropend",ri="dropstart",ai="dropup-center",li="dropdown-center",S='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ci=`${S}.${k}`,tt=".dropdown-menu",hi=".navbar",_i=".navbar-nav",di=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ui=V()?"top-end":"top-start",mi=V()?"top-start":"top-end",fi=V()?"bottom-end":"bottom-start",pi=V()?"bottom-start":"bottom-end",Ei=V()?"left-start":"right-start",gi=V()?"right-start":"left-start",Ti="top",Ai="bottom",bi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},vi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},f=class n extends a{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=b.next(this._element,tt)[0]||b.prev(this._element,tt)[0]||b.findOne(tt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return bi}static get DefaultType(){return vi}static get NAME(){return Bt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Kt(this._element)||this._isShown())return;let t={relatedTarget:this._element};if(!d.trigger(this._element,ei,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(_i))for(let s of[].concat(...document.body.children))d.on(s,"mouseover",Yt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(k),this._element.classList.add(k),d.trigger(this._element,si,t)}}hide(){if(Kt(this._element)||!this._isShown())return;let 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){if(!d.trigger(this._element,Xs,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(let s of[].concat(...document.body.children))d.off(s,"mouseover",Yt);this._popper&&this._popper.destroy(),this._menu.classList.remove(k),this._element.classList.remove(k),this._element.setAttribute("aria-expanded","false"),xt.removeDataAttribute(this._menu,"popper"),d.trigger(this._element,ti,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Wt(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Bt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof ft>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:Wt(this._config.reference)?t=Us(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);let e=this._getPopperConfig();this._popper=ft.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(k)}_getPlacement(){let t=this._parent;if(t.classList.contains(oi))return Ei;if(t.classList.contains(ri))return gi;if(t.classList.contains(ai))return Ti;if(t.classList.contains(li))return Ai;let e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(ni)?e?mi:ui:e?pi:fi}_detectNavbar(){return this._element.closest(hi)!==null}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){let t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(xt.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Gs(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){let s=b.find(di,this._menu).filter(i=>zs(i));s.length&&js(s,e,t===Gt,!s.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===Zs||t.type==="keyup"&&t.key!==Ft)return;let e=b.find(ci);for(let s of e){let i=n.getInstance(s);if(!i||i._config.autoClose===!1)continue;let o=t.composedPath(),r=o.includes(i._menu);if(o.includes(i._element)||i._config.autoClose==="inside"&&!r||i._config.autoClose==="outside"&&r||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Ft||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let l={relatedTarget:i._element};t.type==="click"&&(l.clickEvent=t),i._completeHide(l)}}static dataApiKeydownHandler(t){let e=/input|textarea/i.test(t.target.tagName),s=t.key===qs,i=[Js,Gt].includes(t.key);if(!i&&!s||e&&!s)return;t.preventDefault();let o=this.matches(S)?this:b.prev(this,S)[0]||b.next(this,S)[0]||b.findOne(S,t.delegateTarget.parentNode),r=n.getOrCreateInstance(o);if(i){t.stopPropagation(),r.show(),r._selectMenuItem(t);return}r._isShown()&&(t.stopPropagation(),r.hide(),o.focus())}};d.on(document,jt,S,f.dataApiKeydownHandler);d.on(document,jt,tt,f.dataApiKeydownHandler);d.on(document,Ut,f.clearMenus);d.on(document,ii,f.clearMenus);d.on(document,Ut,S,function(n){n.preventDefault(),f.getOrCreateInstance(this).toggle()});Fs(f);var Ci=f;import c from"./dom/event-handler.js";import et from"./dom/selector-engine.js";import Si from"./util/backdrop.js";import{enableDismissTrigger as Ni}from"./util/component-functions.js";import Oi from"./util/focustrap.js";import{defineJQueryPlugin as Li,isRTL as zt,isVisible as yi,reflow as Di}from"./util/index.js";import wi from"./util/scrollbar.js";var Ii="modal",Mi="bs.modal",h=`.${Mi}`,Pi=".data-api",Ri="Escape",$i=`hide${h}`,ki=`hidePrevented${h}`,Jt=`hidden${h}`,Zt=`show${h}`,Vi=`shown${h}`,Hi=`resize${h}`,xi=`click.dismiss${h}`,Ki=`mousedown.dismiss${h}`,Wi=`keydown.dismiss${h}`,Yi=`click${h}${Pi}`,Qt="modal-open",Bi="fade",qt="show",Et="modal-static",Fi=".modal.show",Gi=".modal-dialog",Ui=".modal-body",ji='[data-bs-toggle="modal"]',zi={backdrop:!0,focus:!0,keyboard:!0},Qi={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},O=class n extends a{constructor(t,e){super(t,e),this._dialog=et.findOne(Gi,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new wi,this._addEventListeners()}static get Default(){return zi}static get DefaultType(){return Qi}static get NAME(){return Ii}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||c.trigger(this._element,Zt,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Qt),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||c.trigger(this._element,$i).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(qt),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){c.off(window,h),c.off(this._dialog,h),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Si({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Oi({trapElement:this._element})}_showElement(t){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 e=et.findOne(Ui,this._dialog);e&&(e.scrollTop=0),Di(this._element),this._element.classList.add(qt);let s=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,c.trigger(this._element,Vi,{relatedTarget:t})};this._queueCallback(s,this._dialog,this._isAnimated())}_addEventListeners(){c.on(this._element,Wi,t=>{if(t.key===Ri){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),c.on(window,Hi,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),c.on(this._element,Ki,t=>{c.one(this._element,xi,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){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(Qt),this._resetAdjustments(),this._scrollBar.reset(),c.trigger(this._element,Jt)})}_isAnimated(){return this._element.classList.contains(Bi)}_triggerBackdropTransition(){if(c.trigger(this._element,ki).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,s=this._element.style.overflowY;s==="hidden"||this._element.classList.contains(Et)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Et),this._queueCallback(()=>{this._element.classList.remove(Et),this._queueCallback(()=>{this._element.style.overflowY=s},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),s=e>0;if(s&&!t){let i=zt()?"paddingLeft":"paddingRight";this._element.style[i]=`${e}px`}if(!s&&t){let i=zt()?"paddingRight":"paddingLeft";this._element.style[i]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){let s=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](e)}})}};c.on(document,Yi,ji,function(n){let t=et.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),c.one(t,Zt,i=>{i.defaultPrevented||c.one(t,Jt,()=>{yi(this)&&this.focus()})});let e=et.findOne(Fi);e&&O.getInstance(e).hide(),O.getOrCreateInstance(t).toggle(this)});Ni(O);Li(O);var qi=O;import u from"./dom/event-handler.js";import st from"./dom/selector-engine.js";import Ji from"./util/backdrop.js";import{enableDismissTrigger as Zi}from"./util/component-functions.js";import Xi from"./util/focustrap.js";import{defineJQueryPlugin as tn,isDisabled as en,isVisible as sn}from"./util/index.js";import Xt from"./util/scrollbar.js";var nn="offcanvas",on="bs.offcanvas",E=`.${on}`,ne=".data-api",rn=`load${E}${ne}`,an="Escape",te="show",ee="showing",se="hiding",ln="offcanvas-backdrop",oe=".offcanvas.show",cn=`show${E}`,hn=`shown${E}`,_n=`hide${E}`,ie=`hidePrevented${E}`,re=`hidden${E}`,dn=`resize${E}`,un=`click${E}${ne}`,mn=`keydown.dismiss${E}`,fn='[data-bs-toggle="offcanvas"]',pn={backdrop:!0,keyboard:!0,scroll:!1},En={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},p=class n extends a{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return pn}static get DefaultType(){return En}static get NAME(){return nn}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||u.trigger(this._element,cn,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Xt().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ee);let s=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(te),this._element.classList.remove(ee),u.trigger(this._element,hn,{relatedTarget:t})};this._queueCallback(s,this._element,!0)}hide(){if(!this._isShown||u.trigger(this._element,_n).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(se),this._backdrop.hide();let e=()=>{this._element.classList.remove(te,se),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Xt().reset(),u.trigger(this._element,re)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let t=()=>{if(this._config.backdrop==="static"){u.trigger(this._element,ie);return}this.hide()},e=!!this._config.backdrop;return new Ji({className:ln,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Xi({trapElement:this._element})}_addEventListeners(){u.on(this._element,mn,t=>{if(t.key===an){if(this._config.keyboard){this.hide();return}u.trigger(this._element,ie)}})}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};u.on(document,un,fn,function(n){let t=st.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),en(this))return;u.one(t,re,()=>{sn(this)&&this.focus()});let e=st.findOne(oe);e&&e!==t&&p.getInstance(e).hide(),p.getOrCreateInstance(t).toggle(this)});u.on(window,rn,()=>{for(let n of st.find(oe))p.getOrCreateInstance(n).show()});u.on(window,dn,()=>{for(let n of st.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&p.getOrCreateInstance(n).hide()});Zi(p);tn(p);var gn=p;import*as vt from"@popperjs/core";import _ from"./dom/event-handler.js";import Tn from"./dom/manipulator.js";import{defineJQueryPlugin as An,execute as gt,findShadowRoot as bn,getElement as vn,getUID as Cn,isRTL as ae,noop as le}from"./util/index.js";import{DefaultAllowlist as Sn}from"./util/sanitizer.js";import Nn from"./util/template-factory.js";var On="tooltip",Ln=new Set(["sanitize","allowList","sanitizeFn"]),Tt="fade",yn="modal",it="show",Dn=".tooltip-inner",ce=`.${yn}`,he="hide.bs.modal",U="hover",At="focus",bt="click",wn="manual",In="hide",Mn="hidden",Pn="show",Rn="shown",$n="inserted",kn="click",Vn="focusin",Hn="focusout",xn="mouseenter",Kn="mouseleave",Wn={AUTO:"auto",TOP:"top",RIGHT:ae()?"left":"right",BOTTOM:"bottom",LEFT:ae()?"right":"left"},Yn={allowList:Sn,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"},Bn={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"},nt=class n extends a{constructor(t,e){if(typeof vt>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),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 Yn}static get DefaultType(){return Bn}static get NAME(){return On}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),_.off(this._element.closest(ce),he,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(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let t=_.trigger(this._element,this.constructor.eventName(Pn)),s=(bn(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!s)return;this._disposePopper();let i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));let{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(i),_.trigger(this._element,this.constructor.eventName($n))),this._popper=this._createPopper(i),i.classList.add(it),"ontouchstart"in document.documentElement)for(let l of[].concat(...document.body.children))_.on(l,"mouseover",le);let r=()=>{_.trigger(this._element,this.constructor.eventName(Rn)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown()||_.trigger(this._element,this.constructor.eventName(In)).defaultPrevented)return;if(this._getTipElement().classList.remove(it),"ontouchstart"in document.documentElement)for(let i of[].concat(...document.body.children))_.off(i,"mouseover",le);this._activeTrigger[bt]=!1,this._activeTrigger[At]=!1,this._activeTrigger[U]=!1,this._isHovered=null;let s=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),_.trigger(this._element,this.constructor.eventName(Mn)))};this._queueCallback(s,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){let e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Tt,it),e.classList.add(`bs-${this.constructor.NAME}-auto`);let s=Cn(this.constructor.NAME).toString();return e.setAttribute("id",s),this._isAnimated()&&e.classList.add(Tt),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Nn({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Dn]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Tt)}_isShown(){return this.tip&&this.tip.classList.contains(it)}_createPopper(t){let e=gt(this._config.placement,[this,t,this._element]),s=Wn[e.toUpperCase()];return vt.createPopper(this._element,t,this._getPopperConfig(s))}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return gt(t,[this._element,this._element])}_getPopperConfig(t){let 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:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:s=>{this._getTipElement().setAttribute("data-popper-placement",s.state.placement)}}]};return{...e,...gt(this._config.popperConfig,[void 0,e])}}_setListeners(){let t=this._config.trigger.split(" ");for(let e of t)if(e==="click")_.on(this._element,this.constructor.eventName(kn),this._config.selector,s=>{let i=this._initializeOnDelegatedTarget(s);i._activeTrigger[bt]=!(i._isShown()&&i._activeTrigger[bt]),i.toggle()});else if(e!==wn){let s=e===U?this.constructor.eventName(xn):this.constructor.eventName(Vn),i=e===U?this.constructor.eventName(Kn):this.constructor.eventName(Hn);_.on(this._element,s,this._config.selector,o=>{let r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusin"?At:U]=!0,r._enter()}),_.on(this._element,i,this._config.selector,o=>{let r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusout"?At:U]=r._element.contains(o.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},_.on(this._element.closest(ce),he,this._hideModalHandler)}_fixTitle(){let t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){let e=Tn.getDataAttributes(this._element);for(let s of Object.keys(e))Ln.has(s)&&delete e[s];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:vn(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){let t={};for(let[e,s]of Object.entries(this._config))this.constructor.Default[e]!==s&&(t[e]=s);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}};An(nt);var j=nt;import{defineJQueryPlugin as Fn}from"./util/index.js";var Gn="popover",Un=".popover-header",jn=".popover-body",zn={...j.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Qn={...j.DefaultType,content:"(null|string|element|function)"},ot=class n extends j{static get Default(){return zn}static get DefaultType(){return Qn}static get NAME(){return Gn}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Un]:this._getTitle(),[jn]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}};Fn(ot);var qn=ot;import rt from"./dom/event-handler.js";import L from"./dom/selector-engine.js";import{defineJQueryPlugin as Jn,getElement as Zn,isDisabled as Xn,isVisible as to}from"./util/index.js";var eo="scrollspy",so="bs.scrollspy",St=`.${so}`,io=".data-api",no=`activate${St}`,_e=`click${St}`,oo=`load${St}${io}`,ro="dropdown-item",H="active",ao='[data-bs-spy="scroll"]',Ct="[href]",lo=".nav, .list-group",de=".nav-link",co=".nav-item",ho=".list-group-item",_o=`${de}, ${co} > ${de}, ${ho}`,uo=".dropdown",mo=".dropdown-toggle",fo={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},po={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},z=class n extends a{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return fo}static get DefaultType(){return po}static get NAME(){return eo}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Zn(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(rt.off(this._config.target,_e),rt.on(this._config.target,_e,Ct,t=>{let e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();let s=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(s.scrollTo){s.scrollTo({top:i,behavior:"smooth"});return}s.scrollTop=i}}))}_getNewObserver(){let t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){let e=r=>this._targetLinks.get(`#${r.target.id}`),s=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(e(r))},i=(this._rootElement||document.documentElement).scrollTop,o=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(let r of t){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(r));continue}let l=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&l){if(s(r),!i)return;continue}!o&&!l&&s(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let t=L.find(Ct,this._config.target);for(let e of t){if(!e.hash||Xn(e))continue;let s=L.findOne(decodeURI(e.hash),this._element);to(s)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,s))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(H),this._activateParents(t),rt.trigger(this._element,no,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(ro)){L.findOne(mo,t.closest(uo)).classList.add(H);return}for(let e of L.parents(t,lo))for(let s of L.prev(e,_o))s.classList.add(H)}_clearActiveClass(t){t.classList.remove(H);let e=L.find(`${Ct}.${H}`,t);for(let s of e)s.classList.remove(H)}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}};rt.on(window,oo,()=>{for(let n of L.find(ao))z.getOrCreateInstance(n)});Jn(z);var Eo=z;import D from"./dom/event-handler.js";import y from"./dom/selector-engine.js";import{defineJQueryPlugin as go,getNextActiveElement as To,isDisabled as Ee}from"./util/index.js";var Ao="tab",bo="bs.tab",I=`.${bo}`,vo=`hide${I}`,Co=`hidden${I}`,So=`show${I}`,No=`shown${I}`,Oo=`click${I}`,Lo=`keydown${I}`,yo=`load${I}`,Do="ArrowLeft",ue="ArrowRight",wo="ArrowUp",me="ArrowDown",Nt="Home",fe="End",w="active",pe="fade",Ot="show",Io="dropdown",ge=".dropdown-toggle",Mo=".dropdown-menu",Lt=`:not(${ge})`,Po='.list-group, .nav, [role="tablist"]',Ro=".nav-item, .list-group-item",$o=`.nav-link${Lt}, .list-group-item${Lt}, [role="tab"]${Lt}`,Te='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',yt=`${$o}, ${Te}`,ko=`.${w}[data-bs-toggle="tab"], .${w}[data-bs-toggle="pill"], .${w}[data-bs-toggle="list"]`,x=class n extends a{constructor(t){super(t),this._parent=this._element.closest(Po),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),D.on(this._element,Lo,e=>this._keydown(e)))}static get NAME(){return Ao}show(){let t=this._element;if(this._elemIsActive(t))return;let e=this._getActiveElem(),s=e?D.trigger(e,vo,{relatedTarget:t}):null;D.trigger(t,So,{relatedTarget:e}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(w),this._activate(y.getElementFromSelector(t));let s=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Ot);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),D.trigger(t,No,{relatedTarget:e})};this._queueCallback(s,t,t.classList.contains(pe))}_deactivate(t,e){if(!t)return;t.classList.remove(w),t.blur(),this._deactivate(y.getElementFromSelector(t));let s=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Ot);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),D.trigger(t,Co,{relatedTarget:e})};this._queueCallback(s,t,t.classList.contains(pe))}_keydown(t){if(![Do,ue,wo,me,Nt,fe].includes(t.key))return;t.stopPropagation(),t.preventDefault();let e=this._getChildren().filter(i=>!Ee(i)),s;if([Nt,fe].includes(t.key))s=e[t.key===Nt?0:e.length-1];else{let i=[ue,me].includes(t.key);s=To(e,t.target,i,!0)}s&&(s.focus({preventScroll:!0}),n.getOrCreateInstance(s).show())}_getChildren(){return y.find(yt,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(let s of e)this._setInitialAttributesOnChild(s)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);let e=this._elemIsActive(t),s=this._getOuterElement(t);t.setAttribute("aria-selected",e),s!==t&&this._setAttributeIfNotExists(s,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){let e=y.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){let s=this._getOuterElement(t);if(!s.classList.contains(Io))return;let i=(o,r)=>{let l=y.findOne(o,s);l&&l.classList.toggle(r,e)};i(ge,w),i(Mo,Ot),s.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,s){t.hasAttribute(e)||t.setAttribute(e,s)}_elemIsActive(t){return t.classList.contains(w)}_getInnerElement(t){return t.matches(yt)?t:y.findOne(yt,t)}_getOuterElement(t){return t.closest(Ro)||t}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}};D.on(document,Oo,Te,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Ee(this)&&x.getOrCreateInstance(this).show()});D.on(window,yo,()=>{for(let n of y.find(ko))x.getOrCreateInstance(n)});go(x);var Vo=x;import v from"./dom/event-handler.js";import{enableDismissTrigger as Ho}from"./util/component-functions.js";import{defineJQueryPlugin as xo,reflow as Ko}from"./util/index.js";var Wo="toast",Yo="bs.toast",C=`.${Yo}`,Bo=`mouseover${C}`,Fo=`mouseout${C}`,Go=`focusin${C}`,Uo=`focusout${C}`,jo=`hide${C}`,zo=`hidden${C}`,Qo=`show${C}`,qo=`shown${C}`,Jo="fade",Ae="hide",at="show",lt="showing",Zo={animation:"boolean",autohide:"boolean",delay:"number"},Xo={animation:!0,autohide:!0,delay:5e3},Q=class n extends a{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Xo}static get DefaultType(){return Zo}static get NAME(){return Wo}show(){if(v.trigger(this._element,Qo).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Jo);let e=()=>{this._element.classList.remove(lt),v.trigger(this._element,qo),this._maybeScheduleHide()};this._element.classList.remove(Ae),Ko(this._element),this._element.classList.add(at,lt),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||v.trigger(this._element,jo).defaultPrevented)return;let e=()=>{this._element.classList.add(Ae),this._element.classList.remove(lt,at),v.trigger(this._element,zo)};this._element.classList.add(lt),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(at),super.dispose()}isShown(){return this._element.classList.contains(at)}_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;break}default:break}if(e){this._clearTimeout();return}let s=t.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){v.on(this._element,Bo,t=>this._onInteraction(t,!0)),v.on(this._element,Fo,t=>this._onInteraction(t,!1)),v.on(this._element,Go,t=>this._onInteraction(t,!0)),v.on(this._element,Uo,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};Ho(Q);xo(Q);var tr=Q;export{ke as Alert,Ge as Button,Cs as Carousel,Bs as Collapse,Ci as Dropdown,qi as Modal,gn as Offcanvas,qn as Popover,Eo as ScrollSpy,Vo as Tab,tr as Toast,j as Tooltip};