@coreui/coreui 5.6.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/css/coreui-grid.css +1 -1
- package/dist/css/coreui-grid.css.map +1 -1
- package/dist/css/coreui-grid.min.css +1 -1
- package/dist/css/coreui-grid.min.css.map +1 -1
- package/dist/css/coreui-grid.rtl.css +1 -1
- package/dist/css/coreui-grid.rtl.css.map +1 -1
- package/dist/css/coreui-grid.rtl.min.css +1 -1
- package/dist/css/coreui-grid.rtl.min.css.map +1 -1
- package/dist/css/coreui-reboot.css +5 -3
- package/dist/css/coreui-reboot.css.map +1 -1
- package/dist/css/coreui-reboot.min.css +2 -2
- package/dist/css/coreui-reboot.min.css.map +1 -1
- package/dist/css/coreui-reboot.rtl.css +5 -3
- package/dist/css/coreui-reboot.rtl.css.map +1 -1
- package/dist/css/coreui-reboot.rtl.min.css +2 -2
- package/dist/css/coreui-reboot.rtl.min.css.map +1 -1
- package/dist/css/coreui-utilities.css +5 -3
- package/dist/css/coreui-utilities.css.map +1 -1
- package/dist/css/coreui-utilities.min.css +2 -2
- package/dist/css/coreui-utilities.min.css.map +1 -1
- package/dist/css/coreui-utilities.rtl.css +5 -3
- package/dist/css/coreui-utilities.rtl.css.map +1 -1
- package/dist/css/coreui-utilities.rtl.min.css +2 -2
- package/dist/css/coreui-utilities.rtl.min.css.map +1 -1
- package/dist/css/coreui.css +172 -68
- package/dist/css/coreui.css.map +1 -1
- package/dist/css/coreui.min.css +2 -2
- package/dist/css/coreui.min.css.map +1 -1
- package/dist/css/coreui.rtl.css +167 -66
- package/dist/css/coreui.rtl.css.map +1 -1
- package/dist/css/coreui.rtl.min.css +2 -2
- package/dist/css/coreui.rtl.min.css.map +1 -1
- package/dist/css/themes/bootstrap/bootstrap.css +172 -68
- package/dist/css/themes/bootstrap/bootstrap.css.map +1 -1
- package/dist/css/themes/bootstrap/bootstrap.min.css +2 -2
- package/dist/css/themes/bootstrap/bootstrap.min.css.map +1 -1
- package/dist/css/themes/bootstrap/bootstrap.rtl.css +167 -66
- package/dist/css/themes/bootstrap/bootstrap.rtl.css.map +1 -1
- package/dist/css/themes/bootstrap/bootstrap.rtl.min.css +2 -2
- package/dist/css/themes/bootstrap/bootstrap.rtl.min.css.map +1 -1
- package/dist/js/bootstrap.bundle.js +578 -261
- package/dist/js/bootstrap.bundle.js.map +1 -1
- package/dist/js/bootstrap.bundle.min.js +2 -2
- package/dist/js/bootstrap.bundle.min.js.map +1 -1
- package/dist/js/bootstrap.esm.js +578 -262
- package/dist/js/bootstrap.esm.js.map +1 -1
- package/dist/js/bootstrap.esm.min.js +2 -2
- package/dist/js/bootstrap.esm.min.js.map +1 -1
- package/dist/js/bootstrap.js +578 -261
- package/dist/js/bootstrap.js.map +1 -1
- package/dist/js/bootstrap.min.js +2 -2
- package/dist/js/bootstrap.min.js.map +1 -1
- package/dist/js/coreui.bundle.js +578 -261
- package/dist/js/coreui.bundle.js.map +1 -1
- package/dist/js/coreui.bundle.min.js +2 -2
- package/dist/js/coreui.bundle.min.js.map +1 -1
- package/dist/js/coreui.esm.js +578 -262
- package/dist/js/coreui.esm.js.map +1 -1
- package/dist/js/coreui.esm.min.js +2 -2
- package/dist/js/coreui.esm.min.js.map +1 -1
- package/dist/js/coreui.js +578 -261
- package/dist/js/coreui.js.map +1 -1
- package/dist/js/coreui.min.js +2 -2
- package/dist/js/coreui.min.js.map +1 -1
- package/js/dist/alert.js +1 -1
- package/js/dist/base-component.js +2 -2
- package/js/dist/base-component.js.map +1 -1
- package/js/dist/button.js +1 -1
- package/js/dist/carousel.js +1 -1
- package/js/dist/chip-input.js +1 -3
- package/js/dist/chip-input.js.map +1 -1
- package/js/dist/chip.js +1 -1
- package/js/dist/collapse.js +1 -1
- package/js/dist/dom/data.js +1 -1
- package/js/dist/dom/event-handler.js +1 -1
- package/js/dist/dom/manipulator.js +1 -1
- package/js/dist/dom/selector-engine.js +1 -1
- package/js/dist/dropdown.js +1 -1
- package/js/dist/modal.js +1 -1
- package/js/dist/navigation.js +2 -2
- package/js/dist/navigation.js.map +1 -1
- package/js/dist/offcanvas.js +1 -1
- package/js/dist/popover.js +1 -1
- package/js/dist/scrollspy.js +1 -1
- package/js/dist/search-button.js +336 -0
- package/js/dist/search-button.js.map +1 -0
- package/js/dist/sidebar.js +7 -10
- package/js/dist/sidebar.js.map +1 -1
- package/js/dist/tab.js +1 -1
- package/js/dist/toast.js +1 -1
- package/js/dist/tooltip.js +1 -1
- package/js/dist/util/backdrop.js +1 -1
- package/js/dist/util/component-functions.js +1 -1
- package/js/dist/util/config.js +1 -1
- package/js/dist/util/focustrap.js +1 -1
- package/js/dist/util/index.js +1 -1
- package/js/dist/util/sanitizer.js +1 -1
- package/js/dist/util/scrollbar.js +1 -1
- package/js/dist/util/swipe.js +1 -1
- package/js/dist/util/template-factory.js +1 -1
- package/js/index.esm.js +1 -0
- package/js/index.umd.js +2 -0
- package/js/src/base-component.js +1 -1
- package/js/src/chip-input.js +0 -2
- package/js/src/navigation.js +1 -1
- package/js/src/search-button.js +409 -0
- package/js/src/sidebar.js +6 -10
- package/package.json +17 -16
- package/scss/_banner.scss +1 -1
- package/scss/_root.scss +3 -0
- package/scss/_search-button.scss +127 -0
- package/scss/_variables-dark.scss +2 -1
- package/scss/_variables.scss +12 -6
- package/scss/coreui.scss +1 -0
- package/scss/functions/_color-translucent.scss +33 -0
- package/scss/functions/_contrast-ratio.scss +3 -3
- package/scss/sidebar/_sidebar-narrow.scss +21 -13
- package/scss/sidebar/_sidebar-nav.scss +65 -45
- package/scss/sidebar/_sidebar.scss +1 -6
package/dist/js/bootstrap.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI v5.
|
|
2
|
+
* CoreUI v5.7.0 (https://coreui.io)
|
|
3
3
|
* Copyright 2026 The CoreUI Team (https://github.com/orgs/coreui/people)
|
|
4
4
|
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
5
5
|
*/
|
|
6
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(e.Popper)}(this,function(e){"use strict";function t(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const i in e)if("default"!==i){const s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>e[i]})}return t.default=e,Object.freeze(t)}const i=t(e),s=new Map,n={set(e,t,i){s.has(e)||s.set(e,new Map);const n=s.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>s.has(e)&&s.get(e).get(t)||null,remove(e,t){if(!s.has(e))return;const i=s.get(e);i.delete(t),0===i.size&&s.delete(e)}},o="transitionend",r=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),a=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),l=e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},c=e=>{e.dispatchEvent(new Event(o))},h=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),d=e=>h(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(r(e)):null,u=e=>{if(!h(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},_=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),g=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?g(e.parentNode):null},p=()=>{},m=e=>{e.offsetHeight},f=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,b=[],v=()=>"rtl"===document.documentElement.dir,y=e=>{var t;t=()=>{const t=f();if(t){const i=e.NAME,s=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=s,e.jQueryInterface)}},"loading"===document.readyState?(b.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of b)e()}),b.push(t)):t()},w=(e,t=[],i=e)=>"function"==typeof e?e.call(...t):i,C=(e,t,i=!0)=>{if(!i)return void w(e);const s=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const s=Number.parseFloat(t),n=Number.parseFloat(i);return s||n?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let n=!1;const r=({target:i})=>{i===t&&(n=!0,t.removeEventListener(o,r),w(e))};t.addEventListener(o,r),setTimeout(()=>{n||c(t)},s)},E=(e,t,i,s)=>{const n=e.length;let o=e.indexOf(t);return-1===o?!i&&s?e[n-1]:e[0]:(o+=i?1:-1,s&&(o=(o+n)%n),e[Math.max(0,Math.min(o,n-1))])},A=/[^.]*(?=\..*)\.|.*/,T=/\..*/,k=/::\d+$/,L={};let I=1;const S={mouseenter:"mouseover",mouseleave:"mouseout"},$=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 O(e,t){return t&&`${t}::${I++}`||e.uidEvent||I++}function N(e){const t=O(e);return e.uidEvent=t,L[t]=L[t]||{},L[t]}function D(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function x(e,t,i){const s="string"==typeof t,n=s?i:t||i;let o=F(e);return $.has(o)||(o=e),[s,n,o]}function M(e,t,i,s,n){if("string"!=typeof t||!e)return;let[o,r,a]=x(t,i,s);if(t in S){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r=e(r)}const l=N(e),c=l[a]||(l[a]={}),h=D(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&n);const d=O(r,t.replace(A,"")),u=o?function(e,t,i){return function s(n){const o=e.querySelectorAll(t);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return B(n,{delegateTarget:r}),s.oneOff&&z.off(e,n.type,t,i),i.apply(r,[n])}}(e,i,r):function(e,t){return function i(s){return B(s,{delegateTarget:e}),i.oneOff&&z.off(e,s.type,t),t.apply(e,[s])}}(e,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=n,u.uidEvent=d,c[d]=u,e.addEventListener(a,u,o)}function P(e,t,i,s,n){const o=D(t[i],s,n);o&&(e.removeEventListener(i,o,Boolean(n)),delete t[i][o.uidEvent])}function j(e,t,i,s){const n=t[i]||{};for(const[o,r]of Object.entries(n))o.includes(s)&&P(e,t,i,r.callable,r.delegationSelector)}function F(e){return e=e.replace(T,""),S[e]||e}const z={on(e,t,i,s){M(e,t,i,s,!1)},one(e,t,i,s){M(e,t,i,s,!0)},off(e,t,i,s){if("string"!=typeof t||!e)return;const[n,o,r]=x(t,i,s),a=r!==t,l=N(e),c=l[r]||{},h=t.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))j(e,l,i,t.slice(1));for(const[i,s]of Object.entries(c)){const n=i.replace(k,"");a&&!t.includes(n)||P(e,l,r,s.callable,s.delegationSelector)}}else{if(!Object.keys(c).length)return;P(e,l,r,o,n?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const s=f();let n=null,o=!0,r=!0,a=!1;t!==F(t)&&s&&(n=s.Event(t,i),s(e).trigger(n),o=!n.isPropagationStopped(),r=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=B(new Event(t,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&e.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function B(e,t={}){for(const[i,s]of Object.entries(t))try{e[i]=s}catch(t){Object.defineProperty(e,i,{configurable:!0,get:()=>s})}return e}function H(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 V(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const q={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${V(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${V(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const s of i){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),t[i]=H(e.dataset[s])}return t},getDataAttribute:(e,t)=>H(e.getAttribute(`data-bs-${V(t)}`))};class R{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new 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){const i=h(t)?q.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...h(t)?q.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,s]of Object.entries(t)){const t=e[i],n=h(t)?"element":a(t);if(!new RegExp(s).test(n))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${n}" but expected type "${s}".`)}}}class W extends R{constructor(e,t){super(),(e=d(e))&&(this._element=e,this._config=this._getConfig(t),n.set(this._element,this.constructor.DATA_KEY,this))}dispose(){n.remove(this._element,this.constructor.DATA_KEY),z.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){C(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return n.get(d(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.6.0"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const K=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=>r(e)).join(","):null},U={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){const i=[];let s=e.parentNode.closest(t);for(;s;)i.push(s),s=s.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){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!_(e)&&u(e))},getSelectorFromElement(e){const t=K(e);return t&&U.findOne(t)?t:null},getElementFromSelector(e){const t=K(e);return t?U.findOne(t):null},getMultipleElementsFromSelector(e){const t=K(e);return t?U.find(t):[]}},Q=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;z.on(document,i,`[data-bs-dismiss="${s}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),_(this))return;const n=U.getElementFromSelector(this)||this.closest(`.${s}`);e.getOrCreateInstance(n)[t]()})},Y=".bs.alert",X=`close${Y}`,G=`closed${Y}`;class J extends W{static get NAME(){return"alert"}close(){if(z.trigger(this._element,X).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),z.trigger(this._element,G),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=J.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Q(J,"close"),y(J);const Z='[data-bs-toggle="button"]';class ee extends W{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=ee.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}z.on(document,"click.bs.button.data-api",Z,e=>{e.preventDefault();const t=e.target.closest(Z);ee.getOrCreateInstance(t).toggle()}),y(ee);const te=".bs.swipe",ie=`touchstart${te}`,se=`touchmove${te}`,ne=`touchend${te}`,oe=`pointerdown${te}`,re=`pointerup${te}`,ae={endCallback:null,leftCallback:null,rightCallback:null},le={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ce extends R{constructor(e,t){super(),this._element=e,e&&ce.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ae}static get DefaultType(){return le}static get NAME(){return"swipe"}dispose(){z.off(this._element,te)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].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(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&w(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(z.on(this._element,oe,e=>this._start(e)),z.on(this._element,re,e=>this._end(e)),this._element.classList.add("pointer-event")):(z.on(this._element,ie,e=>this._start(e)),z.on(this._element,se,e=>this._move(e)),z.on(this._element,ne,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}}const he=".bs.carousel",de=".data-api",ue="ArrowLeft",_e="ArrowRight",ge="next",pe="prev",me="left",fe="right",be=`slide${he}`,ve=`slid${he}`,ye=`keydown${he}`,we=`mouseenter${he}`,Ce=`mouseleave${he}`,Ee=`dragstart${he}`,Ae=`load${he}${de}`,Te=`click${he}${de}`,ke="carousel",Le="active",Ie=".active",Se=".carousel-item",$e=Ie+Se,Oe={[ue]:fe,[_e]:me},Ne={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},De={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class xe extends W{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=U.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ke&&this.cycle()}static get Default(){return Ne}static get DefaultType(){return De}static get NAME(){return"carousel"}next(){this._slide(ge)}nextWhenVisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._slide(pe)}pause(){this._isSliding&&c(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?z.one(this._element,ve,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void z.one(this._element,ve,()=>this.to(e));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?ge:pe;this._slide(s,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&z.on(this._element,ye,e=>this._keydown(e)),"hover"===this._config.pause&&(z.on(this._element,we,()=>this.pause()),z.on(this._element,Ce,()=>this._maybeEnableCycle())),this._config.touch&&ce.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of U.find(".carousel-item img",this._element))z.on(e,Ee,e=>e.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(me)),rightCallback:()=>this._slide(this._directionToOrder(fe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ce(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Oe[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=U.findOne(Ie,this._indicatorsElement);t.classList.remove(Le),t.removeAttribute("aria-current");const i=U.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(Le),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),s=e===ge,n=t||E(this._getItems(),i,s,this._config.wrap);if(n===i)return;const o=this._getItemIndex(n),r=t=>z.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:o});if(r(be).defaultPrevented)return;if(!i||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=n;const l=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";n.classList.add(c),m(n),i.classList.add(l),n.classList.add(l),this._queueCallback(()=>{n.classList.remove(l,c),n.classList.add(Le),i.classList.remove(Le,c,l),this._isSliding=!1,r(ve)},i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return U.findOne($e,this._element)}_getItems(){return U.find(Se,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return v()?e===me?pe:ge:e===me?ge:pe}_orderToDirection(e){return v()?e===pe?me:fe:e===pe?fe:me}static jQueryInterface(e){return this.each(function(){const t=xe.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}z.on(document,Te,"[data-bs-slide], [data-bs-slide-to]",function(e){const t=U.getElementFromSelector(this);if(!t||!t.classList.contains(ke))return;e.preventDefault();const i=xe.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===q.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),z.on(window,Ae,()=>{const e=U.find('[data-bs-ride="carousel"]');for(const t of e)xe.getOrCreateInstance(t)}),y(xe);const Me=".bs.chip",Pe=`remove${Me}`,je=`removed${Me}`,Fe=`select${Me}`,ze=`selected${Me}`,Be=`deselect${Me}`,He=`deselected${Me}`,Ve=".chip-remove",qe=".chip:not(.disabled)",Re="active",We="disabled",Ke={ariaRemoveLabel:"Remove",disabled:!1,removable:!1,removeIcon:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="4" y1="4" x2="12" y2="12"/><line x1="12" y1="4" x2="4" y2="12"/></svg>',selectable:!1,selected:!1},Ue={ariaRemoveLabel:"string",disabled:"boolean",removable:"boolean",removeIcon:"string",selectable:"boolean",selected:"boolean"};class Qe extends W{constructor(e,t){super(e,t),this._disabled=this._config.disabled||this._element.classList.contains(We),this._selected=this._config.selected||this._element.classList.contains(Re),this._ensureRemoveButton(),this._applyState(),(this._config.selectable||this._config.removable)&&this._makeFocusable(),this._addEventListeners()}static get Default(){return Ke}static get DefaultType(){return Ue}static get NAME(){return"chip"}remove(){z.trigger(this._element,Pe).defaultPrevented||this._destroyElement()}toggle(){this._config.selectable&&(this._selected?this.deselect():this.select())}select(){this._config.selectable&&(this._selected||z.trigger(this._element,Fe).defaultPrevented||(this._selected=!0,this._applyState(),z.trigger(this._element,ze)))}deselect(){this._config.selectable&&this._selected&&(z.trigger(this._element,Be).defaultPrevented||(this._selected=!1,this._applyState(),z.trigger(this._element,He)))}_addEventListeners(){z.on(this._element,"keydown",e=>this._handleKeydown(e)),z.on(this._element,"click",e=>{this._disabled||e.target.closest(Ve)||this.toggle()}),z.on(this._element,"click",Ve,e=>{e.stopPropagation(),this.remove()})}_applyState(){this._disabled||!this._config.clickable&&!this._config.selectable||this._element.classList.add("chip-clickable"),this._disabled?(this._element.classList.add(We),this._element.setAttribute("aria-disabled","true")):(this._element.classList.remove(We),"true"===this._element.getAttribute("aria-disabled")&&this._element.setAttribute("aria-disabled","false")),this._config.selectable?(this._element.classList.toggle(Re,this._selected),this._element.setAttribute("aria-selected",this._selected?"true":"false")):(this._element.classList.remove(Re),"true"===this._element.getAttribute("aria-selected")&&this._element.setAttribute("aria-selected","false"))}_createRemoveButton(){const e=document.createElement("button");return e.type="button",e.className="chip-remove",e.setAttribute("aria-label",this._config.ariaRemoveLabel),e.setAttribute("tabindex","-1"),e.innerHTML=this._config.removeIcon,e}_ensureRemoveButton(){this._config.removable&&(U.findOne(Ve,this._element)||this._element.append(this._createRemoveButton()))}_makeFocusable(){this._element.hasAttribute("tabindex")||this._disabled||this._element.setAttribute("tabindex","0")}_handleKeydown(e){const{key:t}=e;if(!this._disabled)switch(t){case"Enter":case" ":case"Spacebar":if(!this._config.selectable)return;e.preventDefault(),this.toggle();break;case"Backspace":case"Delete":if(this._config.removable){e.preventDefault();const t=this._getFocusableSibling(!1)||this._getFocusableSibling(!0);null==t||t.focus(),this.remove()}break;case"ArrowLeft":{e.preventDefault();const t=this._getFocusableSibling(!1);null==t||t.focus();break}case"ArrowRight":{e.preventDefault();const t=this._getFocusableSibling(!0);null==t||t.focus();break}case"Home":e.preventDefault(),this._navigateToEdge(0);break;case"End":e.preventDefault(),this._navigateToEdge(-1)}}_getFocusableSibling(e){const t=U.find(qe,this._element.parentElement),i=E(t,this._element,e,!t.includes(this._element));return i===this._element?null:i}_navigateToEdge(e){const t=U.find(qe,this._element.parentElement);if(0===t.length)return;const i=t.at(e);null==i||i.focus()}_destroyElement(){z.trigger(this._element,je),this._element.remove(),this.dispose()}static chipInterface(e,t){const i=Qe.getOrCreateInstance(e,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}static jQueryInterface(e){return this.each(function(){const t=Qe.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}z.on(document,`DOMContentLoaded${Me}.data-api`,()=>{for(const e of U.find("[data-bs-chip]"))Qe.chipInterface(e)}),y(Qe);const Ye=".bs.chip-input",Xe=`add${Ye}`,Ge=`remove${Ye}`,Je=`change${Ye}`,Ze=`select${Ye}`,et=`input${Ye}`,tt=".chip",it=`${tt}.active`,st=".chip-remove",nt="disabled",ot={chipClassName:null,createOnBlur:!0,disabled:!1,id:null,maxChips:null,name:null,placeholder:"",readonly:!1,removable:!0,removeIcon:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="4" y1="4" x2="12" y2="12"/><line x1="12" y1="4" x2="4" y2="12"/></svg>',selectable:!1,separator:","},rt={chipClassName:"(string|function|null)",createOnBlur:"boolean",disabled:"boolean",maxChips:"(number|null)",id:"(string|null)",name:"(string|null)",placeholder:"string",readonly:"boolean",removable:"boolean",removeIcon:"string",selectable:"boolean",separator:"(string|null)"};class at extends W{constructor(e,t){var i;super(e,t),this._uniqueId=null!=(i=this._config.id)?i:l(`${this.constructor.NAME}`),this._disabled=this._config.disabled||this._element.classList.contains(nt),this._readonly=this._config.readonly,this._chips=[],this._input=U.findOne("input",this._element),this._hiddenInput=null,this._input?this._setInputSize():this._createInput(),this._applyInteractionState(),this._initializeExistingChips(),this._createHiddenInput(),this._addEventListeners()}static get Default(){return ot}static get DefaultType(){return rt}static get NAME(){return"chip-input"}add(e){if(this._disabled||this._readonly)return null;const t=String(e).trim();if(!t)return null;if(this._chips.includes(t))return null;if(null!==this._config.maxChips&&this._chips.length>=this._config.maxChips)return null;if(z.trigger(this._element,Xe,{value:t,relatedTarget:this._input}).defaultPrevented)return null;const i=this._createChip(t);this._element.insertBefore(i,this._input),this._chips.push(t);const s=this.getValues();return this._hiddenInput.value=s.join(","),z.trigger(this._element,Je,{values:s}),i}remove(e){if(this._disabled||this._readonly)return!1;let t,i;if("string"==typeof e?(i=e,t=this._findChipByValue(i)):(t=e,i=this._getChipValue(t)),!t||!i)return!1;if(z.trigger(this._element,Ge,{value:i,chip:t,relatedTarget:this._input}).defaultPrevented)return!1;const s=Qe.getInstance(t);return s?s.remove():(t.remove(),this._handleChipRemoved(t,i)),!t.isConnected}removeSelected(){var e;const t=this._getSelectedChipElements();for(const e of t)this.remove(e);null==(e=this._input)||e.focus()}getValues(){return[...this._chips]}getSelectedValues(){return this._getSelectedChipElements().map(e=>this._getChipValue(e))}clear(){const e=U.find(tt,this._element);for(const t of e)this.remove(t)}clearSelection(){for(const t of this._getSelectedChipElements()){var e;null==(e=Qe.getInstance(t))||e.deselect()}z.trigger(this._element,Ze,{selected:[]})}selectChip(e){if(!this._getChipElements().includes(e))return;const t=Qe.getInstance(e);t&&t.select()}focus(){var e;null==(e=this._input)||e.focus()}_emitSelectionChange(){z.trigger(this._element,Ze,{selected:this.getSelectedValues()})}_getChipElements(){return U.find(tt,this._element)}_getSelectedChipElements(){return U.find(it,this._element)}_createInput(){const e=document.createElement("input"),t=U.findOne(".chip-input-label",this._element),i=null==t?void 0:t.getAttribute("for"),s=i||l(`${this.constructor.NAME}-input`);e.type="text",e.className="chip-input-field",e.id=s,this._config.placeholder&&(e.placeholder=this._config.placeholder),t&&!i&&t.setAttribute("for",s),this._input=e,this._setInputSize(),this._element.append(e)}_createHiddenInput(){const e=document.createElement("input");e.type="hidden",e.id=this._uniqueId,e.name=this._config.name||this._uniqueId,this._element.append(e),this._hiddenInput=e,this._hiddenInput.value=this.getValues().join(",")}_createChip(e){const t=document.createElement("span");return t.className="chip",t.dataset.bsChipValue=e,t.append(document.createTextNode(e)),this._applyChipClassName(t,e),this._setupChip(t),t}_createChipFromInput(){if(this._disabled||this._readonly)return;const e=this._input.value.trim();e&&(this.add(e),this._input.value="",this._setInputSize())}_findChipByValue(e){return this._getChipElements().find(t=>this._getChipValue(t)===e)}_getChipValue(e){var t;if(e.dataset.bsChipValue)return e.dataset.bsChipValue;const i=e.cloneNode(!0),s=U.findOne(st,i);return s&&s.remove(),(null==(t=i.textContent)?void 0:t.trim())||""}_initializeExistingChips(){const e=U.find(tt,this._element);for(const t of e){const e=this._getChipValue(t);e&&(this._chips.push(e),this._applyChipClassName(t,e),this._setupChip(t))}}_applyChipClassName(e,t){const i=this._resolveChipClassName(t);i&&e.classList.add(...i.split(/\s+/).filter(Boolean))}_resolveChipClassName(e){const{chipClassName:t}=this._config;if(!t)return"";if("function"==typeof t){const i=t(e);return"string"==typeof i?i:""}return"string"==typeof t?t:""}_setupChip(e){Qe.getOrCreateInstance(e,{ariaRemoveLabel:`Remove ${this._getChipValue(e)}`,disabled:this._disabled,removable:this._config.removable&&!this._readonly&&!this._disabled,removeIcon:this._config.removeIcon,selectable:this._config.selectable});const t=U.findOne(st,e);t&&(t.disabled=this._disabled||this._readonly)}_applyInteractionState(){this._element.classList.toggle(nt,this._disabled),this._input.disabled=this._disabled,this._input.readOnly=!this._disabled&&this._readonly,this._element.setAttribute("aria-disabled",this._disabled?"true":"false"),this._element.setAttribute("aria-readonly",this._readonly?"true":"false")}_addEventListeners(){z.on(this._element,"keydown",e=>{e.target!==this._input&&1===e.key.length&&(console.log(e.key.length),this._input.focus())}),z.on(this._input,"keydown",e=>this._handleInputKeydown(e)),z.on(this._input,"input",e=>this._handleInput(e)),z.on(this._input,"paste",e=>this._handlePaste(e)),z.on(this._input,"focus",()=>this.clearSelection()),this._config.createOnBlur&&z.on(this._input,"blur",e=>{var t;null!=(t=e.relatedTarget)&&t.closest(tt)||this._createChipFromInput()}),z.on(this._element,"selected.bs.chip",tt,()=>{this._emitSelectionChange()}),z.on(this._element,"deselected.bs.chip",tt,()=>{this._emitSelectionChange()}),z.on(this._element,"remove.bs.chip",tt,e=>{(this._disabled||this._readonly)&&e.preventDefault()}),z.on(this._element,"removed.bs.chip",tt,e=>{const t=e.target.closest(tt);var i;t&&(this._handleChipRemoved(t),U.find(".chip:not(.disabled)",this._element).length>0&&(null==(i=this._input)||i.focus()),this._emitSelectionChange())}),z.on(this._element,"click",e=>{var t;e.target===this._element&&(null==(t=this._input)||t.focus())})}_handleInputKeydown(e){const{key:t}=e;switch(t){case"Enter":e.preventDefault(),this._createChipFromInput();break;case"Backspace":case"Delete":if(""===this._input.value){e.preventDefault();const t=this._getChipElements();t.length>0&&t.at(-1).focus()}break;case"ArrowLeft":if(0===this._input.selectionStart&&0===this._input.selectionEnd){e.preventDefault();const t=this._getChipElements();t.length>0&&t.at(-1).focus()}break;case"Escape":this._input.value="",this._input.blur()}}_handleChipRemoved(e,t=null){const i=t||this._getChipValue(e),s=this._chips.indexOf(i);-1!==s&&this._chips.splice(s,1);const n=this.getValues();this._hiddenInput.value=n.join(","),z.trigger(this._element,Je,{values:n})}_handleInput(e){if(this._disabled||this._readonly)return;const{value:t}=e.target,{separator:i}=this._config;if(i&&t.includes(i)){const e=t.split(i);for(const t of e.slice(0,-1))this.add(t.trim());this._input.value=e.at(-1)}this._setInputSize(),z.trigger(this._element,et,{value:this._input.value,relatedTarget:this._input})}_handlePaste(e){if(this._disabled||this._readonly)return;const{separator:t}=this._config;if(!t)return;const i=(e.clipboardData||window.clipboardData).getData("text");if(i.includes(t)){e.preventDefault();const s=i.split(t);for(const e of s)this.add(e.trim())}}_setInputSize(){this._input&&(this._input.size=Math.max(this._input.placeholder.length,this._input.value.length)||1)}}z.on(document,`DOMContentLoaded${Ye}.data-api`,()=>{for(const e of U.find("[data-bs-chip-input]"))at.getOrCreateInstance(e)});const lt=".bs.collapse",ct=`show${lt}`,ht=`shown${lt}`,dt=`hide${lt}`,ut=`hidden${lt}`,_t=`click${lt}.data-api`,gt="show",pt="collapse",mt="collapsing",ft=`:scope .${pt} .${pt}`,bt='[data-bs-toggle="collapse"]',vt={parent:null,toggle:!0},yt={parent:"(null|element)",toggle:"boolean"};class wt extends W{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=U.find(bt);for(const e of i){const t=U.getSelectorFromElement(e),i=U.find(t).filter(e=>e===this._element);null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return vt}static get DefaultType(){return yt}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=>wt.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(z.trigger(this._element,ct).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(pt),this._element.classList.add(mt),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(mt),this._element.classList.add(pt,gt),this._element.style[t]="",z.trigger(this._element,ht)},this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(z.trigger(this._element,dt).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,m(this._element),this._element.classList.add(mt),this._element.classList.remove(pt,gt);for(const e of this._triggerArray){const t=U.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(mt),this._element.classList.add(pt),z.trigger(this._element,ut)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(gt)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=d(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(bt);for(const t of e){const e=U.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=U.find(ft,this._config.parent);return U.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const i=wt.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}}z.on(document,_t,bt,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of U.getMultipleElementsFromSelector(this))wt.getOrCreateInstance(e,{toggle:!1}).toggle()}),y(wt);const Ct="dropdown",Et=".bs.dropdown",At=".data-api",Tt="ArrowUp",kt="ArrowDown",Lt=`hide${Et}`,It=`hidden${Et}`,St=`show${Et}`,$t=`shown${Et}`,Ot=`click${Et}${At}`,Nt=`keydown${Et}${At}`,Dt=`keyup${Et}${At}`,xt="show",Mt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Pt=`${Mt}.${xt}`,jt=".dropdown-menu",Ft=v()?"top-end":"top-start",zt=v()?"top-start":"top-end",Bt=v()?"bottom-end":"bottom-start",Ht=v()?"bottom-start":"bottom-end",Vt=v()?"left-start":"right-start",qt=v()?"right-start":"left-start",Rt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Wt={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Kt extends W{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,jt)[0]||U.prev(this._element,jt)[0]||U.findOne(jt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Rt}static get DefaultType(){return Wt}static get NAME(){return Ct}toggle(){return this._isShown()?this.hide():this.show()}show(){if(_(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!z.trigger(this._element,St,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))z.on(e,"mouseover",p);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(xt),this._element.classList.add(xt),z.trigger(this._element,$t,e)}}hide(){if(_(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!z.trigger(this._element,Lt,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))z.off(e,"mouseover",p);this._popper&&this._popper.destroy(),this._menu.classList.remove(xt),this._element.classList.remove(xt),this._element.setAttribute("aria-expanded","false"),q.removeDataAttribute(this._menu,"popper"),z.trigger(this._element,It,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!h(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ct.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===i)throw new TypeError("CoreUI's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:h(this._config.reference)?e=d(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=i.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(xt)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Vt;if(e.classList.contains("dropstart"))return qt;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?zt:Ft:t?Ht:Bt}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{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}_getPopperConfig(){const 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,[void 0,e])}}_selectMenuItem({key:e,target:t}){const i=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>u(e));i.length&&E(i,t,e===kt,!i.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Kt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=U.find(Pt);for(const i of t){const t=Kt.getInstance(i);if(!t||!1===t._config.autoClose)continue;const s=e.composedPath(),n=s.includes(t._menu);if(s.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,s=[Tt,kt].includes(e.key);if(!s&&!i)return;if(t&&!i)return;e.preventDefault();const n=this.matches(Mt)?this:U.prev(this,Mt)[0]||U.next(this,Mt)[0]||U.findOne(Mt,e.delegateTarget.parentNode),o=Kt.getOrCreateInstance(n);if(s)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),n.focus())}}z.on(document,Nt,Mt,Kt.dataApiKeydownHandler),z.on(document,Nt,jt,Kt.dataApiKeydownHandler),z.on(document,Ot,Kt.clearMenus),z.on(document,Dt,Kt.clearMenus),z.on(document,Ot,Mt,function(e){e.preventDefault(),Kt.getOrCreateInstance(this).toggle()}),y(Kt);const Ut="backdrop",Qt="show",Yt=`mousedown.bs.${Ut}`,Xt={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Gt={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Jt extends R{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Xt}static get DefaultType(){return Gt}static get NAME(){return Ut}show(e){if(!this._config.isVisible)return void w(e);this._append();const t=this._getElement();this._config.isAnimated&&m(t),t.classList.add(Qt),this._emulateAnimation(()=>{w(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(Qt),this._emulateAnimation(()=>{this.dispose(),w(e)})):w(e)}dispose(){this._isAppended&&(z.off(this._element,Yt),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const 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=d(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),z.on(e,Yt,()=>{w(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){C(e,this._getElement(),this._config.isAnimated)}}const Zt=".bs.focustrap",ei=`focusin${Zt}`,ti=`keydown.tab${Zt}`,ii="backward",si={autofocus:!0,trapElement:null},ni={autofocus:"boolean",trapElement:"element"};class oi extends R{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return si}static get DefaultType(){return ni}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),z.off(document,Zt),z.on(document,ei,e=>this._handleFocusin(e)),z.on(document,ti,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,z.off(document,Zt))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=U.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===ii?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ii:"forward")}}const ri=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ai=".sticky-top",li="padding-right",ci="margin-right";class hi{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,li,t=>t+e),this._setElementAttributes(ri,li,t=>t+e),this._setElementAttributes(ai,ci,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,li),this._resetElementAttributes(ri,li),this._resetElementAttributes(ai,ci)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const s=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+s)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(n))}px`)})}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&q.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const i=q.getDataAttribute(e,t);null!==i?(q.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(h(e))t(e);else for(const i of U.find(e,this._element))t(i)}}const di=".bs.modal",ui=`hide${di}`,_i=`hidePrevented${di}`,gi=`hidden${di}`,pi=`show${di}`,mi=`shown${di}`,fi=`resize${di}`,bi=`click.dismiss${di}`,vi=`mousedown.dismiss${di}`,yi=`keydown.dismiss${di}`,wi=`click${di}.data-api`,Ci="modal-open",Ei="show",Ai="modal-static",Ti={backdrop:!0,focus:!0,keyboard:!0},ki={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Li extends W{constructor(e,t){super(e,t),this._dialog=U.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hi,this._addEventListeners()}static get Default(){return Ti}static get DefaultType(){return ki}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||z.trigger(this._element,pi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ci),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(z.trigger(this._element,ui).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ei),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){z.off(window,di),z.off(this._dialog,di),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Jt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new oi({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;const t=U.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),m(this._element),this._element.classList.add(Ei),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,z.trigger(this._element,mi,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){z.on(this._element,yi,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),z.on(window,fi,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),z.on(this._element,vi,e=>{z.one(this._element,bi,t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_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(Ci),this._resetAdjustments(),this._scrollBar.reset(),z.trigger(this._element,gi)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(z.trigger(this._element,_i).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Ai)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ai),this._queueCallback(()=>{this._element.classList.remove(Ai),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=v()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=v()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const i=Li.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}})}}z.on(document,wi,'[data-bs-toggle="modal"]',function(e){const t=U.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),z.one(t,pi,e=>{e.defaultPrevented||z.one(t,gi,()=>{u(this)&&this.focus()})});const i=U.findOne(".modal.show");i&&Li.getInstance(i).hide(),Li.getOrCreateInstance(t).toggle(this)}),Q(Li),y(Li);const Ii="bs.navigation",Si=`.${Ii}`,$i=".data-api",Oi={activeLinksExact:!0,groupsAutoCollapse:!0},Ni={activeLinksExact:"boolean",groupsAutoCollapse:"(string|boolean)"},Di="active",xi="show",Mi="nav-group-toggle",Pi=`click${Si}${$i}`,ji=`load${Si}${$i}`,Fi=".nav-group",zi=".nav-group-items",Bi=".nav-group-toggle";class Hi extends W{constructor(e,t){super(e),this._config=this._getConfig(t),this._setActiveLink(),this._addEventListeners(),n.set(e,Ii,this)}static get Default(){return Oi}static get DATA_KEY(){return Ii}static get DefaultType(){return Ni}static get NAME(){return"navigation"}_setActiveLink(){for(const e of Array.from(this._element.querySelectorAll(".nav-link"))){if(e.classList.contains(Mi))continue;let t=String(window.location);const i=/\?./,s=/#./;(/\?.*=/.test(t)||i.test(t))&&(t=t.split("?")[0]),s.test(t)&&(t=t.split("#")[0]),this._config.activeLinksExact&&e.href===t&&(e.classList.add(Di),Array.from(this._getParents(e,Fi)).forEach(e=>{e.classList.add(xi),e.setAttribute("aria-expanded",!0)})),!this._config.activeLinksExact&&t.startsWith(e.href)&&(e.classList.add(Di),Array.from(this._getParents(e,Fi)).forEach(e=>{e.classList.add(xi),e.setAttribute("aria-expanded",!0)}))}}_getParents(e,t){const i=[];for(;e&&e!==document;e=e.parentNode)t?e.matches(t)&&i.push(e):i.push(e);return i}_getAllSiblings(e,t){const i=[];e=e.parentNode.firstChild;do{3!==e.nodeType&&8!==e.nodeType&&(t&&!t(e)||i.push(e))}while(e=e.nextSibling);return i}_getChildren(e,t){const i=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}_getSiblings(e,t){return this._getChildren(e.parentNode.firstChild,e).filter(t)}_slideDown(e){e.style.height="auto";const t=e.clientHeight;e.style.height="0px",setTimeout(()=>{e.style.height=`${t}px`},0),this._queueCallback(()=>{e.style.height="auto"},e,!0)}_slideUp(e,t){const i=e.clientHeight;e.style.height=`${i}px`,setTimeout(()=>{e.style.height="0px"},0),this._queueCallback(()=>{"function"==typeof t&&t()},e,!0)}_toggleGroupItems(e){let t=e.target;t.classList.contains(Mi)||(t=t.closest(Bi));const i=e=>Boolean(e.classList.contains("nav-group")&&e.classList.contains(xi));if(!0===this._config.groupsAutoCollapse)for(const e of this._getSiblings(t.parentNode,i))this._slideUp(U.findOne(zi,e),()=>{e.classList.remove(xi),e.setAttribute("aria-expanded",!1)});t.parentNode.classList.contains(xi)?this._slideUp(U.findOne(zi,t.parentNode),()=>{t.parentNode.classList.remove(xi),t.parentNode.setAttribute("aria-expanded",!1)}):(t.parentNode.classList.add(xi),t.parentNode.setAttribute("aria-expanded",!0),this._slideDown(U.findOne(zi,t.parentNode)))}_addEventListeners(){z.on(this._element,Pi,Bi,e=>{e.preventDefault(),this._toggleGroupItems(e,this)})}static navigationInterface(e,t){const i=Hi.getOrCreateInstance(e,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}static jQueryInterface(e){return this.each(function(){Hi.navigationInterface(this,e)})}}z.on(window,ji,()=>{for(const e of Array.from(document.querySelectorAll('[data-bs="navigation"]')))Hi.navigationInterface(e)}),y(Hi);const Vi=".bs.offcanvas",qi=".data-api",Ri=`load${Vi}${qi}`,Wi="show",Ki="showing",Ui="hiding",Qi=".offcanvas.show",Yi=`show${Vi}`,Xi=`shown${Vi}`,Gi=`hide${Vi}`,Ji=`hidePrevented${Vi}`,Zi=`hidden${Vi}`,es=`resize${Vi}`,ts=`click${Vi}${qi}`,is=`keydown.dismiss${Vi}`,ss={backdrop:!0,keyboard:!0,scroll:!1},ns={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class os extends W{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ss}static get DefaultType(){return ns}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||z.trigger(this._element,Yi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new hi).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ki),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Wi),this._element.classList.remove(Ki),z.trigger(this._element,Xi,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(z.trigger(this._element,Gi).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ui),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Wi,Ui),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new hi).reset(),z.trigger(this._element,Zi)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Jt({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():z.trigger(this._element,Ji)}:null})}_initializeFocusTrap(){return new oi({trapElement:this._element})}_addEventListeners(){z.on(this._element,is,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():z.trigger(this._element,Ji))})}static jQueryInterface(e){return this.each(function(){const t=os.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}z.on(document,ts,'[data-bs-toggle="offcanvas"]',function(e){const t=U.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),_(this))return;z.one(t,Zi,()=>{u(this)&&this.focus()});const i=U.findOne(Qi);i&&i!==t&&os.getInstance(i).hide(),os.getOrCreateInstance(t).toggle(this)}),z.on(window,Ri,()=>{for(const e of U.find(Qi))os.getOrCreateInstance(e).show()}),z.on(window,es,()=>{for(const e of U.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&os.getOrCreateInstance(e).hide()}),Q(os),y(os);const rs={"*":["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:[]},as=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ls=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,cs=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!as.has(i)||Boolean(ls.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))},hs={allowList:rs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ds={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},us={entry:"(string|element|function|null)",selector:"(string|element)"};class _s extends R{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return hs}static get DefaultType(){return ds}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(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},us)}_setContent(e,t,i){const s=U.findOne(i,e);s&&((t=this._resolvePossibleFunction(t))?h(t)?this._putElementInTemplate(d(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const s=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(const e of n){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const s=[].concat(...e.attributes),n=[].concat(t["*"]||[],t[i]||[]);for(const t of s)cs(t,n)||e.removeAttribute(t.nodeName)}return s.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return w(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const gs=new Set(["sanitize","allowList","sanitizeFn"]),ps="fade",ms="show",fs=".tooltip-inner",bs=".modal",vs="hide.bs.modal",ys="hover",ws="focus",Cs="click",Es={AUTO:"auto",TOP:"top",RIGHT:v()?"left":"right",BOTTOM:"bottom",LEFT:v()?"right":"left"},As={allowList:rs,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:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Ts={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 ks extends W{constructor(e,t){if(void 0===i)throw new TypeError("CoreUI's dropdowns require Popper (https://popper.js.org/docs/v2/)");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 As}static get DefaultType(){return Ts}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),z.off(this._element.closest(bs),vs,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 new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=z.trigger(this._element,this.constructor.eventName("show")),t=(g(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),z.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(ms),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))z.on(e,"mouseover",p);this._queueCallback(()=>{z.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!z.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ms),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))z.off(e,"mouseover",p);this._activeTrigger[Cs]=!1,this._activeTrigger[ws]=!1,this._activeTrigger[ys]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),z.trigger(this._element,this.constructor.eventName("hidden")))},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){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(ps,ms),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=l(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(ps),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new _s({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[fs]: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(ps)}_isShown(){return this.tip&&this.tip.classList.contains(ms)}_createPopper(e){const t=w(this._config.placement,[this,e,this._element]),s=Es[t.toUpperCase()];return i.createPopper(this._element,e,this._getPopperConfig(s))}_getOffset(){const{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,this._element])}_getPopperConfig(e){const 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,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)z.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[Cs]=!(t._isShown()&&t._activeTrigger[Cs]),t.toggle()});else if("manual"!==t){const e=t===ys?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===ys?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");z.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?ws:ys]=!0,t._enter()}),z.on(this._element,i,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?ws:ys]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},z.on(this._element.closest(bs),vs,this._hideModalHandler)}_fixTitle(){const 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(){this._isShown()||this._isHovered?this._isHovered=!0:(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){const t=q.getDataAttributes(this._element);for(const e of Object.keys(t))gs.has(e)&&delete t[e];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:d(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(){const e={};for(const[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(){const t=ks.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}y(ks);const Ls=".popover-header",Is=".popover-body",Ss={...ks.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},$s={...ks.DefaultType,content:"(null|string|element|function)"};class Os extends ks{static get Default(){return Ss}static get DefaultType(){return $s}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ls]:this._getTitle(),[Is]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Os.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}y(Os);const Ns=".bs.scrollspy",Ds=`activate${Ns}`,xs=`click${Ns}`,Ms=`load${Ns}.data-api`,Ps="active",js="[href]",Fs=".nav-link",zs=`${Fs}, .nav-item > ${Fs}, .list-group-item`,Bs={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Hs={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Vs extends W{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 Bs}static get DefaultType(){return Hs}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=d(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&&(z.off(this._config.target,xs),z.on(this._config.target,xs,js,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:s,behavior:"smooth"});i.scrollTop=s}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(i(o),!s)return}else n||e||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=U.find(js,this._config.target);for(const t of e){if(!t.hash||_(t))continue;const e=U.findOne(decodeURI(t.hash),this._element);u(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ps),this._activateParents(e),z.trigger(this._element,Ds,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))U.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Ps);else for(const t of U.parents(e,".nav, .list-group"))for(const e of U.prev(t,zs))e.classList.add(Ps)}_clearActiveClass(e){e.classList.remove(Ps);const t=U.find(`${js}.${Ps}`,e);for(const e of t)e.classList.remove(Ps)}static jQueryInterface(e){return this.each(function(){const t=Vs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}z.on(window,Ms,()=>{for(const e of U.find('[data-bs-spy="scroll"]'))Vs.getOrCreateInstance(e)}),y(Vs);const qs=".bs.sidebar",Rs=".data-api",Ws={},Ks={},Us="hide",Qs="show",Ys="sidebar-narrow",Xs="sidebar-narrow-unfoldable",Gs=`hide${qs}`,Js=`hidden${qs}`,Zs=`show${qs}`,en=`shown${qs}`,tn=`click${qs}${Rs}`,sn=`load${qs}${Rs}`,nn=".sidebar";class on extends W{constructor(e,t){super(e),this._config=this._getConfig(t),this._show=this._isVisible(),this._mobile=this._isMobile(),this._overlaid=this._isOverlaid(),this._narrow=this._isNarrow(),this._unfoldable=this._isUnfoldable(),this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get Default(){return Ws}static get DefaultType(){return Ks}static get NAME(){return"sidebar"}show(){z.trigger(this._element,Zs),this._element.classList.contains(Us)&&this._element.classList.remove(Us),this._overlaid&&this._element.classList.add(Qs),this._isMobile()&&(this._element.classList.add(Qs),this._backdrop.show(),(new hi).hide()),this._queueCallback(()=>{!0===this._isVisible()&&(this._show=!0,(this._isMobile()||this._isOverlaid())&&this._addClickOutListener(),z.trigger(this._element,en))},this._element,!0)}hide(){z.trigger(this._element,Gs),this._element.classList.contains(Qs)&&this._element.classList.remove(Qs),this._isMobile()&&(this._backdrop.hide(),(new hi).reset()),this._isMobile()||this._overlaid||this._element.classList.add(Us),this._queueCallback(()=>{!1===this._isVisible()&&(this._show=!1,(this._isMobile()||this._isOverlaid())&&this._removeClickOutListener(),z.trigger(this._element,Js))},this._element,!0)}toggle(){this._isVisible()?this.hide():this.show()}narrow(){this._isMobile()||(this._addClassName(Ys),this._narrow=!0)}unfoldable(){this._isMobile()||(this._addClassName(Xs),this._unfoldable=!0)}reset(){this._isMobile()||(this._narrow&&(this._element.classList.remove(Ys),this._narrow=!1),this._unfoldable&&(this._element.classList.remove(Xs),this._unfoldable=!1))}toggleNarrow(){this._narrow?this.reset():this.narrow()}toggleUnfoldable(){this._unfoldable?this.reset():this.unfoldable()}_initializeBackDrop(){return new Jt({className:"sidebar-backdrop",isVisible:this._isMobile(),isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_isMobile(){return Boolean(window.getComputedStyle(this._element,null).getPropertyValue("--bs-is-mobile"))}_isNarrow(){return this._element.classList.contains(Ys)}_isOverlaid(){return this._element.classList.contains("sidebar-overlaid")}_isUnfoldable(){return this._element.classList.contains(Xs)}_isVisible(){const e=this._element.getBoundingClientRect();return e.top>=0&&e.left>=0&&Math.floor(e.bottom)<=(window.innerHeight||document.documentElement.clientHeight)&&Math.floor(e.right)<=(window.innerWidth||document.documentElement.clientWidth)}_addClassName(e){this._element.classList.add(e)}_clickOutListener(e,t){null===e.target.closest(nn)&&(e.preventDefault(),e.stopPropagation(),t.hide())}_addClickOutListener(){z.on(document,tn,e=>{this._clickOutListener(e,this)})}_removeClickOutListener(){z.off(document,tn)}_addEventListeners(){this._mobile&&this._show&&this._addClickOutListener(),this._overlaid&&this._show&&this._addClickOutListener(),z.on(this._element,tn,"[data-bs-toggle]",e=>{e.preventDefault();const t=q.getDataAttribute(e.target,"toggle");"narrow"===t&&this.toggleNarrow(),"unfoldable"===t&&this.toggleUnfoldable()}),z.on(this._element,tn,'[data-bs-close="sidebar"]',e=>{e.preventDefault(),this.hide()}),z.on(window,"resize",()=>{this._isMobile()&&this._isVisible()&&(this.hide(),this._backdrop=this._initializeBackDrop())})}static sidebarInterface(e,t){const i=on.getOrCreateInstance(e,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}static jQueryInterface(e){return this.each(function(){on.sidebarInterface(this,e)})}}z.on(window,sn,()=>{for(const e of Array.from(document.querySelectorAll(nn)))on.sidebarInterface(e)}),y(on);const rn=".bs.tab",an=`hide${rn}`,ln=`hidden${rn}`,cn=`show${rn}`,hn=`shown${rn}`,dn=`click${rn}`,un=`keydown${rn}`,_n=`load${rn}`,gn="ArrowLeft",pn="ArrowRight",mn="ArrowUp",fn="ArrowDown",bn="Home",vn="End",yn="active",wn="fade",Cn="show",En=".dropdown-toggle",An=`:not(${En})`,Tn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',kn=`.nav-link${An}, .list-group-item${An}, [role="tab"]${An}, ${Tn}`,Ln=`.${yn}[data-bs-toggle="tab"], .${yn}[data-bs-toggle="pill"], .${yn}[data-bs-toggle="list"]`;class In extends W{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),z.on(this._element,un,e=>this._keydown(e)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?z.trigger(t,an,{relatedTarget:e}):null;z.trigger(e,cn,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(yn),this._activate(U.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),z.trigger(e,hn,{relatedTarget:t})):e.classList.add(Cn)},e,e.classList.contains(wn)))}_deactivate(e,t){e&&(e.classList.remove(yn),e.blur(),this._deactivate(U.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),z.trigger(e,ln,{relatedTarget:t})):e.classList.remove(Cn)},e,e.classList.contains(wn)))}_keydown(e){if(![gn,pn,mn,fn,bn,vn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(e=>!_(e));let i;if([bn,vn].includes(e.key))i=t[e.key===bn?0:t.length-1];else{const s=[pn,fn].includes(e.key);i=E(t,e.target,s,!0)}i&&(i.focus({preventScroll:!0}),In.getOrCreateInstance(i).show())}_getChildren(){return U.find(kn,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const 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){const t=U.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const s=(e,s)=>{const n=U.findOne(e,i);n&&n.classList.toggle(s,t)};s(En,yn),s(".dropdown-menu",Cn),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(yn)}_getInnerElement(e){return e.matches(kn)?e:U.findOne(kn,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=In.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}z.on(document,dn,Tn,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),_(this)||In.getOrCreateInstance(this).show()}),z.on(window,_n,()=>{for(const e of U.find(Ln))In.getOrCreateInstance(e)}),y(In);const Sn=".bs.toast",$n=`mouseover${Sn}`,On=`mouseout${Sn}`,Nn=`focusin${Sn}`,Dn=`focusout${Sn}`,xn=`hide${Sn}`,Mn=`hidden${Sn}`,Pn=`show${Sn}`,jn=`shown${Sn}`,Fn="hide",zn="show",Bn="showing",Hn={animation:"boolean",autohide:"boolean",delay:"number"},Vn={animation:!0,autohide:!0,delay:5e3};class qn extends W{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Vn}static get DefaultType(){return Hn}static get NAME(){return"toast"}show(){z.trigger(this._element,Pn).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Fn),m(this._element),this._element.classList.add(zn,Bn),this._queueCallback(()=>{this._element.classList.remove(Bn),z.trigger(this._element,jn),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(z.trigger(this._element,xn).defaultPrevented||(this._element.classList.add(Bn),this._queueCallback(()=>{this._element.classList.add(Fn),this._element.classList.remove(Bn,zn),z.trigger(this._element,Mn)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(zn),super.dispose()}isShown(){return this._element.classList.contains(zn)}_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)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){z.on(this._element,$n,e=>this._onInteraction(e,!0)),z.on(this._element,On,e=>this._onInteraction(e,!1)),z.on(this._element,Nn,e=>this._onInteraction(e,!0)),z.on(this._element,Dn,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=qn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return Q(qn),y(qn),{Alert:J,Button:ee,Carousel:xe,Chip:Qe,ChipInput:at,Collapse:wt,Dropdown:Kt,Modal:Li,Navigation:Hi,OffCanvas:os,Popover:Os,ScrollSpy:Vs,Sidebar:on,Tab:In,Toast:qn,Tooltip:ks}});
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,function(t){"use strict";function e(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const i=e(t),s=new Map,n={set(t,e,i){s.has(t)||s.set(t,new Map);const n=s.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>s.has(t)&&s.get(t).get(e)||null,remove(t,e){if(!s.has(t))return;const i=s.get(t);i.delete(e),0===i.size&&s.delete(t)}},o="transitionend",r=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),a=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),l=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},c=t=>{t.dispatchEvent(new Event(o))},h=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),d=t=>h(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(r(t)):null,u=t=>{if(!h(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},_=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),g=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?g(t.parentNode):null},p=()=>{},m=t=>{t.offsetHeight},f=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,b=[],v=()=>"rtl"===document.documentElement.dir,y=t=>{var e;e=()=>{const e=f();if(e){const i=t.NAME,s=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=s,t.jQueryInterface)}},"loading"===document.readyState?(b.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of b)t()}),b.push(e)):e()},w=(t,e=[],i=t)=>"function"==typeof t?t.call(...e):i,C=(t,e,i=!0)=>{if(!i)return void w(t);const s=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const s=Number.parseFloat(e),n=Number.parseFloat(i);return s||n?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let n=!1;const r=({target:i})=>{i===e&&(n=!0,e.removeEventListener(o,r),w(t))};e.addEventListener(o,r),setTimeout(()=>{n||c(e)},s)},A=(t,e,i,s)=>{const n=t.length;let o=t.indexOf(e);return-1===o?!i&&s?t[n-1]:t[0]:(o+=i?1:-1,s&&(o=(o+n)%n),t[Math.max(0,Math.min(o,n-1))])},E=/[^.]*(?=\..*)\.|.*/,T=/\..*/,k=/::\d+$/,S={};let L=1;const I={mouseenter:"mouseover",mouseleave:"mouseout"},$=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(t,e){return e&&`${e}::${L++}`||t.uidEvent||L++}function O(t){const e=D(t);return t.uidEvent=e,S[e]=S[e]||{},S[e]}function N(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function x(t,e,i){const s="string"==typeof e,n=s?i:e||i;let o=F(t);return $.has(o)||(o=t),[s,n,o]}function P(t,e,i,s,n){if("string"!=typeof e||!t)return;let[o,r,a]=x(e,i,s);if(e in I){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=O(t),c=l[a]||(l[a]={}),h=N(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&n);const d=D(r,e.replace(E,"")),u=o?function(t,e,i){return function s(n){const o=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return B(n,{delegateTarget:r}),s.oneOff&&z.off(t,n.type,e,i),i.apply(r,[n])}}(t,i,r):function(t,e){return function i(s){return B(s,{delegateTarget:t}),i.oneOff&&z.off(t,s.type,e),e.apply(t,[s])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=n,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function M(t,e,i,s,n){const o=N(e[i],s,n);o&&(t.removeEventListener(i,o,Boolean(n)),delete e[i][o.uidEvent])}function j(t,e,i,s){const n=e[i]||{};for(const[o,r]of Object.entries(n))o.includes(s)&&M(t,e,i,r.callable,r.delegationSelector)}function F(t){return t=t.replace(T,""),I[t]||t}const z={on(t,e,i,s){P(t,e,i,s,!1)},one(t,e,i,s){P(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;const[n,o,r]=x(e,i,s),a=r!==e,l=O(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))j(t,l,i,e.slice(1));for(const[i,s]of Object.entries(c)){const n=i.replace(k,"");a&&!e.includes(n)||M(t,l,r,s.callable,s.delegationSelector)}}else{if(!Object.keys(c).length)return;M(t,l,r,o,n?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const s=f();let n=null,o=!0,r=!0,a=!1;e!==F(e)&&s&&(n=s.Event(e,i),s(t).trigger(n),o=!n.isPropagationStopped(),r=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=B(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function B(t,e={}){for(const[i,s]of Object.entries(e))try{t[i]=s}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>s})}return t}function K(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function H(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const q={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${H(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${H(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const s of i){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),e[i]=K(t.dataset[s])}return e},getDataAttribute:(t,e)=>K(t.getAttribute(`data-bs-${H(e)}`))};class V{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=h(e)?q.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...h(e)?q.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,s]of Object.entries(e)){const e=t[i],n=h(e)?"element":a(e);if(!new RegExp(s).test(n))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${n}" but expected type "${s}".`)}}}class R extends V{constructor(t,e){super(),(t=d(t))&&(this._element=t,this._config=this._getConfig(e),n.set(this._element,this.constructor.DATA_KEY,this))}dispose(){n.remove(this._element,this.constructor.DATA_KEY),z.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){C(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return n.get(d(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.7.0"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const W=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map(t=>r(t)).join(","):null},U={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let s=t.parentNode.closest(e);for(;s;)i.push(s),s=s.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!_(t)&&u(t))},getSelectorFromElement(t){const e=W(t);return e&&U.findOne(e)?e:null},getElementFromSelector(t){const e=W(t);return e?U.findOne(e):null},getMultipleElementsFromSelector(t){const e=W(t);return e?U.find(e):[]}},Q=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;z.on(document,i,`[data-bs-dismiss="${s}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),_(this))return;const n=U.getElementFromSelector(this)||this.closest(`.${s}`);t.getOrCreateInstance(n)[e]()})},Y=".bs.alert",X=`close${Y}`,G=`closed${Y}`;class J extends R{static get NAME(){return"alert"}close(){if(z.trigger(this._element,X).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),z.trigger(this._element,G),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=J.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Q(J,"close"),y(J);const Z='[data-bs-toggle="button"]';class tt extends R{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const e=tt.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}z.on(document,"click.bs.button.data-api",Z,t=>{t.preventDefault();const e=t.target.closest(Z);tt.getOrCreateInstance(e).toggle()}),y(tt);const et=".bs.swipe",it=`touchstart${et}`,st=`touchmove${et}`,nt=`touchend${et}`,ot=`pointerdown${et}`,rt=`pointerup${et}`,at={endCallback:null,leftCallback:null,rightCallback:null},lt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ct extends V{constructor(t,e){super(),this._element=t,t&&ct.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return at}static get DefaultType(){return lt}static get NAME(){return"swipe"}dispose(){z.off(this._element,et)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),w(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&w(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(z.on(this._element,ot,t=>this._start(t)),z.on(this._element,rt,t=>this._end(t)),this._element.classList.add("pointer-event")):(z.on(this._element,it,t=>this._start(t)),z.on(this._element,st,t=>this._move(t)),z.on(this._element,nt,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ht=".bs.carousel",dt=".data-api",ut="ArrowLeft",_t="ArrowRight",gt="next",pt="prev",mt="left",ft="right",bt=`slide${ht}`,vt=`slid${ht}`,yt=`keydown${ht}`,wt=`mouseenter${ht}`,Ct=`mouseleave${ht}`,At=`dragstart${ht}`,Et=`load${ht}${dt}`,Tt=`click${ht}${dt}`,kt="carousel",St="active",Lt=".active",It=".carousel-item",$t=Lt+It,Dt={[ut]:ft,[_t]:mt},Ot={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Nt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class xt extends R{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=U.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===kt&&this.cycle()}static get Default(){return Ot}static get DefaultType(){return Nt}static get NAME(){return"carousel"}next(){this._slide(gt)}nextWhenVisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._slide(pt)}pause(){this._isSliding&&c(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?z.one(this._element,vt,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void z.one(this._element,vt,()=>this.to(t));const i=this._getItemIndex(this._getActive());if(i===t)return;const s=t>i?gt:pt;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&z.on(this._element,yt,t=>this._keydown(t)),"hover"===this._config.pause&&(z.on(this._element,wt,()=>this.pause()),z.on(this._element,Ct,()=>this._maybeEnableCycle())),this._config.touch&&ct.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of U.find(".carousel-item img",this._element))z.on(t,At,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(mt)),rightCallback:()=>this._slide(this._directionToOrder(ft)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ct(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Dt[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=U.findOne(Lt,this._indicatorsElement);e.classList.remove(St),e.removeAttribute("aria-current");const i=U.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(St),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),s=t===gt,n=e||A(this._getItems(),i,s,this._config.wrap);if(n===i)return;const o=this._getItemIndex(n),r=e=>z.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r(bt).defaultPrevented)return;if(!i||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=n;const l=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";n.classList.add(c),m(n),i.classList.add(l),n.classList.add(l),this._queueCallback(()=>{n.classList.remove(l,c),n.classList.add(St),i.classList.remove(St,c,l),this._isSliding=!1,r(vt)},i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return U.findOne($t,this._element)}_getItems(){return U.find(It,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return v()?t===mt?pt:gt:t===mt?gt:pt}_orderToDirection(t){return v()?t===pt?mt:ft:t===pt?ft:mt}static jQueryInterface(t){return this.each(function(){const e=xt.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)})}}z.on(document,Tt,"[data-bs-slide], [data-bs-slide-to]",function(t){const e=U.getElementFromSelector(this);if(!e||!e.classList.contains(kt))return;t.preventDefault();const i=xt.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===q.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),z.on(window,Et,()=>{const t=U.find('[data-bs-ride="carousel"]');for(const e of t)xt.getOrCreateInstance(e)}),y(xt);const Pt=".bs.chip",Mt=`remove${Pt}`,jt=`removed${Pt}`,Ft=`select${Pt}`,zt=`selected${Pt}`,Bt=`deselect${Pt}`,Kt=`deselected${Pt}`,Ht=".chip-remove",qt=".chip:not(.disabled)",Vt="active",Rt="disabled",Wt={ariaRemoveLabel:"Remove",disabled:!1,removable:!1,removeIcon:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="4" y1="4" x2="12" y2="12"/><line x1="12" y1="4" x2="4" y2="12"/></svg>',selectable:!1,selected:!1},Ut={ariaRemoveLabel:"string",disabled:"boolean",removable:"boolean",removeIcon:"string",selectable:"boolean",selected:"boolean"};class Qt extends R{constructor(t,e){super(t,e),this._disabled=this._config.disabled||this._element.classList.contains(Rt),this._selected=this._config.selected||this._element.classList.contains(Vt),this._ensureRemoveButton(),this._applyState(),(this._config.selectable||this._config.removable)&&this._makeFocusable(),this._addEventListeners()}static get Default(){return Wt}static get DefaultType(){return Ut}static get NAME(){return"chip"}remove(){z.trigger(this._element,Mt).defaultPrevented||this._destroyElement()}toggle(){this._config.selectable&&(this._selected?this.deselect():this.select())}select(){this._config.selectable&&(this._selected||z.trigger(this._element,Ft).defaultPrevented||(this._selected=!0,this._applyState(),z.trigger(this._element,zt)))}deselect(){this._config.selectable&&this._selected&&(z.trigger(this._element,Bt).defaultPrevented||(this._selected=!1,this._applyState(),z.trigger(this._element,Kt)))}_addEventListeners(){z.on(this._element,"keydown",t=>this._handleKeydown(t)),z.on(this._element,"click",t=>{this._disabled||t.target.closest(Ht)||this.toggle()}),z.on(this._element,"click",Ht,t=>{t.stopPropagation(),this.remove()})}_applyState(){this._disabled||!this._config.clickable&&!this._config.selectable||this._element.classList.add("chip-clickable"),this._disabled?(this._element.classList.add(Rt),this._element.setAttribute("aria-disabled","true")):(this._element.classList.remove(Rt),"true"===this._element.getAttribute("aria-disabled")&&this._element.setAttribute("aria-disabled","false")),this._config.selectable?(this._element.classList.toggle(Vt,this._selected),this._element.setAttribute("aria-selected",this._selected?"true":"false")):(this._element.classList.remove(Vt),"true"===this._element.getAttribute("aria-selected")&&this._element.setAttribute("aria-selected","false"))}_createRemoveButton(){const t=document.createElement("button");return t.type="button",t.className="chip-remove",t.setAttribute("aria-label",this._config.ariaRemoveLabel),t.setAttribute("tabindex","-1"),t.innerHTML=this._config.removeIcon,t}_ensureRemoveButton(){this._config.removable&&(U.findOne(Ht,this._element)||this._element.append(this._createRemoveButton()))}_makeFocusable(){this._element.hasAttribute("tabindex")||this._disabled||this._element.setAttribute("tabindex","0")}_handleKeydown(t){const{key:e}=t;if(!this._disabled)switch(e){case"Enter":case" ":case"Spacebar":if(!this._config.selectable)return;t.preventDefault(),this.toggle();break;case"Backspace":case"Delete":if(this._config.removable){t.preventDefault();const e=this._getFocusableSibling(!1)||this._getFocusableSibling(!0);null==e||e.focus(),this.remove()}break;case"ArrowLeft":{t.preventDefault();const e=this._getFocusableSibling(!1);null==e||e.focus();break}case"ArrowRight":{t.preventDefault();const e=this._getFocusableSibling(!0);null==e||e.focus();break}case"Home":t.preventDefault(),this._navigateToEdge(0);break;case"End":t.preventDefault(),this._navigateToEdge(-1)}}_getFocusableSibling(t){const e=U.find(qt,this._element.parentElement),i=A(e,this._element,t,!e.includes(this._element));return i===this._element?null:i}_navigateToEdge(t){const e=U.find(qt,this._element.parentElement);if(0===e.length)return;const i=e.at(t);null==i||i.focus()}_destroyElement(){z.trigger(this._element,jt),this._element.remove(),this.dispose()}static chipInterface(t,e){const i=Qt.getOrCreateInstance(t,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}static jQueryInterface(t){return this.each(function(){const e=Qt.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}z.on(document,`DOMContentLoaded${Pt}.data-api`,()=>{for(const t of U.find("[data-bs-chip]"))Qt.chipInterface(t)}),y(Qt);const Yt=".bs.chip-input",Xt=`add${Yt}`,Gt=`remove${Yt}`,Jt=`change${Yt}`,Zt=`select${Yt}`,te=`input${Yt}`,ee=".chip",ie=`${ee}.active`,se=".chip-remove",ne="disabled",oe={chipClassName:null,createOnBlur:!0,disabled:!1,id:null,maxChips:null,name:null,placeholder:"",readonly:!1,removable:!0,removeIcon:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="4" y1="4" x2="12" y2="12"/><line x1="12" y1="4" x2="4" y2="12"/></svg>',selectable:!1,separator:","},re={chipClassName:"(string|function|null)",createOnBlur:"boolean",disabled:"boolean",maxChips:"(number|null)",id:"(string|null)",name:"(string|null)",placeholder:"string",readonly:"boolean",removable:"boolean",removeIcon:"string",selectable:"boolean",separator:"(string|null)"};class ae extends R{constructor(t,e){var i;super(t,e),this._uniqueId=null!=(i=this._config.id)?i:l(`${this.constructor.NAME}`),this._disabled=this._config.disabled||this._element.classList.contains(ne),this._readonly=this._config.readonly,this._chips=[],this._input=U.findOne("input",this._element),this._hiddenInput=null,this._input?this._setInputSize():this._createInput(),this._applyInteractionState(),this._initializeExistingChips(),this._createHiddenInput(),this._addEventListeners()}static get Default(){return oe}static get DefaultType(){return re}static get NAME(){return"chip-input"}add(t){if(this._disabled||this._readonly)return null;const e=String(t).trim();if(!e)return null;if(this._chips.includes(e))return null;if(null!==this._config.maxChips&&this._chips.length>=this._config.maxChips)return null;if(z.trigger(this._element,Xt,{value:e,relatedTarget:this._input}).defaultPrevented)return null;const i=this._createChip(e);this._element.insertBefore(i,this._input),this._chips.push(e);const s=this.getValues();return this._hiddenInput.value=s.join(","),z.trigger(this._element,Jt,{values:s}),i}remove(t){if(this._disabled||this._readonly)return!1;let e,i;if("string"==typeof t?(i=t,e=this._findChipByValue(i)):(e=t,i=this._getChipValue(e)),!e||!i)return!1;if(z.trigger(this._element,Gt,{value:i,chip:e,relatedTarget:this._input}).defaultPrevented)return!1;const s=Qt.getInstance(e);return s?s.remove():(e.remove(),this._handleChipRemoved(e,i)),!e.isConnected}removeSelected(){var t;const e=this._getSelectedChipElements();for(const t of e)this.remove(t);null==(t=this._input)||t.focus()}getValues(){return[...this._chips]}getSelectedValues(){return this._getSelectedChipElements().map(t=>this._getChipValue(t))}clear(){const t=U.find(ee,this._element);for(const e of t)this.remove(e)}clearSelection(){for(const e of this._getSelectedChipElements()){var t;null==(t=Qt.getInstance(e))||t.deselect()}z.trigger(this._element,Zt,{selected:[]})}selectChip(t){if(!this._getChipElements().includes(t))return;const e=Qt.getInstance(t);e&&e.select()}focus(){var t;null==(t=this._input)||t.focus()}_emitSelectionChange(){z.trigger(this._element,Zt,{selected:this.getSelectedValues()})}_getChipElements(){return U.find(ee,this._element)}_getSelectedChipElements(){return U.find(ie,this._element)}_createInput(){const t=document.createElement("input"),e=U.findOne(".chip-input-label",this._element),i=null==e?void 0:e.getAttribute("for"),s=i||l(`${this.constructor.NAME}-input`);t.type="text",t.className="chip-input-field",t.id=s,this._config.placeholder&&(t.placeholder=this._config.placeholder),e&&!i&&e.setAttribute("for",s),this._input=t,this._setInputSize(),this._element.append(t)}_createHiddenInput(){const t=document.createElement("input");t.type="hidden",t.id=this._uniqueId,t.name=this._config.name||this._uniqueId,this._element.append(t),this._hiddenInput=t,this._hiddenInput.value=this.getValues().join(",")}_createChip(t){const e=document.createElement("span");return e.className="chip",e.dataset.bsChipValue=t,e.append(document.createTextNode(t)),this._applyChipClassName(e,t),this._setupChip(e),e}_createChipFromInput(){if(this._disabled||this._readonly)return;const t=this._input.value.trim();t&&(this.add(t),this._input.value="",this._setInputSize())}_findChipByValue(t){return this._getChipElements().find(e=>this._getChipValue(e)===t)}_getChipValue(t){var e;if(t.dataset.bsChipValue)return t.dataset.bsChipValue;const i=t.cloneNode(!0),s=U.findOne(se,i);return s&&s.remove(),(null==(e=i.textContent)?void 0:e.trim())||""}_initializeExistingChips(){const t=U.find(ee,this._element);for(const e of t){const t=this._getChipValue(e);t&&(this._chips.push(t),this._applyChipClassName(e,t),this._setupChip(e))}}_applyChipClassName(t,e){const i=this._resolveChipClassName(e);i&&t.classList.add(...i.split(/\s+/).filter(Boolean))}_resolveChipClassName(t){const{chipClassName:e}=this._config;if(!e)return"";if("function"==typeof e){const i=e(t);return"string"==typeof i?i:""}return"string"==typeof e?e:""}_setupChip(t){Qt.getOrCreateInstance(t,{ariaRemoveLabel:`Remove ${this._getChipValue(t)}`,disabled:this._disabled,removable:this._config.removable&&!this._readonly&&!this._disabled,removeIcon:this._config.removeIcon,selectable:this._config.selectable});const e=U.findOne(se,t);e&&(e.disabled=this._disabled||this._readonly)}_applyInteractionState(){this._element.classList.toggle(ne,this._disabled),this._input.disabled=this._disabled,this._input.readOnly=!this._disabled&&this._readonly,this._element.setAttribute("aria-disabled",this._disabled?"true":"false"),this._element.setAttribute("aria-readonly",this._readonly?"true":"false")}_addEventListeners(){z.on(this._element,"keydown",t=>{t.target!==this._input&&1===t.key.length&&this._input.focus()}),z.on(this._input,"keydown",t=>this._handleInputKeydown(t)),z.on(this._input,"input",t=>this._handleInput(t)),z.on(this._input,"paste",t=>this._handlePaste(t)),z.on(this._input,"focus",()=>this.clearSelection()),this._config.createOnBlur&&z.on(this._input,"blur",t=>{var e;null!=(e=t.relatedTarget)&&e.closest(ee)||this._createChipFromInput()}),z.on(this._element,"selected.bs.chip",ee,()=>{this._emitSelectionChange()}),z.on(this._element,"deselected.bs.chip",ee,()=>{this._emitSelectionChange()}),z.on(this._element,"remove.bs.chip",ee,t=>{(this._disabled||this._readonly)&&t.preventDefault()}),z.on(this._element,"removed.bs.chip",ee,t=>{const e=t.target.closest(ee);var i;e&&(this._handleChipRemoved(e),U.find(".chip:not(.disabled)",this._element).length>0&&(null==(i=this._input)||i.focus()),this._emitSelectionChange())}),z.on(this._element,"click",t=>{var e;t.target===this._element&&(null==(e=this._input)||e.focus())})}_handleInputKeydown(t){const{key:e}=t;switch(e){case"Enter":t.preventDefault(),this._createChipFromInput();break;case"Backspace":case"Delete":if(""===this._input.value){t.preventDefault();const e=this._getChipElements();e.length>0&&e.at(-1).focus()}break;case"ArrowLeft":if(0===this._input.selectionStart&&0===this._input.selectionEnd){t.preventDefault();const e=this._getChipElements();e.length>0&&e.at(-1).focus()}break;case"Escape":this._input.value="",this._input.blur()}}_handleChipRemoved(t,e=null){const i=e||this._getChipValue(t),s=this._chips.indexOf(i);-1!==s&&this._chips.splice(s,1);const n=this.getValues();this._hiddenInput.value=n.join(","),z.trigger(this._element,Jt,{values:n})}_handleInput(t){if(this._disabled||this._readonly)return;const{value:e}=t.target,{separator:i}=this._config;if(i&&e.includes(i)){const t=e.split(i);for(const e of t.slice(0,-1))this.add(e.trim());this._input.value=t.at(-1)}this._setInputSize(),z.trigger(this._element,te,{value:this._input.value,relatedTarget:this._input})}_handlePaste(t){if(this._disabled||this._readonly)return;const{separator:e}=this._config;if(!e)return;const i=(t.clipboardData||window.clipboardData).getData("text");if(i.includes(e)){t.preventDefault();const s=i.split(e);for(const t of s)this.add(t.trim())}}_setInputSize(){this._input&&(this._input.size=Math.max(this._input.placeholder.length,this._input.value.length)||1)}}z.on(document,`DOMContentLoaded${Yt}.data-api`,()=>{for(const t of U.find("[data-bs-chip-input]"))ae.getOrCreateInstance(t)});const le=".bs.collapse",ce=`show${le}`,he=`shown${le}`,de=`hide${le}`,ue=`hidden${le}`,_e=`click${le}.data-api`,ge="show",pe="collapse",me="collapsing",fe=`:scope .${pe} .${pe}`,be='[data-bs-toggle="collapse"]',ve={parent:null,toggle:!0},ye={parent:"(null|element)",toggle:"boolean"};class we extends R{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=U.find(be);for(const t of i){const e=U.getSelectorFromElement(t),i=U.find(e).filter(t=>t===this._element);null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ve}static get DefaultType(){return ye}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>we.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(z.trigger(this._element,ce).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(pe),this._element.classList.add(me),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(me),this._element.classList.add(pe,ge),this._element.style[e]="",z.trigger(this._element,he)},this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(z.trigger(this._element,de).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,m(this._element),this._element.classList.add(me),this._element.classList.remove(pe,ge);for(const t of this._triggerArray){const e=U.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(me),this._element.classList.add(pe),z.trigger(this._element,ue)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(ge)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=d(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(be);for(const e of t){const t=U.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=U.find(fe,this._config.parent);return U.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const i=we.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}z.on(document,_e,be,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of U.getMultipleElementsFromSelector(this))we.getOrCreateInstance(t,{toggle:!1}).toggle()}),y(we);const Ce="dropdown",Ae=".bs.dropdown",Ee=".data-api",Te="ArrowUp",ke="ArrowDown",Se=`hide${Ae}`,Le=`hidden${Ae}`,Ie=`show${Ae}`,$e=`shown${Ae}`,De=`click${Ae}${Ee}`,Oe=`keydown${Ae}${Ee}`,Ne=`keyup${Ae}${Ee}`,xe="show",Pe='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Me=`${Pe}.${xe}`,je=".dropdown-menu",Fe=v()?"top-end":"top-start",ze=v()?"top-start":"top-end",Be=v()?"bottom-end":"bottom-start",Ke=v()?"bottom-start":"bottom-end",He=v()?"left-start":"right-start",qe=v()?"right-start":"left-start",Ve={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Re={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class We extends R{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,je)[0]||U.prev(this._element,je)[0]||U.findOne(je,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ve}static get DefaultType(){return Re}static get NAME(){return Ce}toggle(){return this._isShown()?this.hide():this.show()}show(){if(_(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!z.trigger(this._element,Ie,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))z.on(t,"mouseover",p);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(xe),this._element.classList.add(xe),z.trigger(this._element,$e,t)}}hide(){if(_(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!z.trigger(this._element,Se,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))z.off(t,"mouseover",p);this._popper&&this._popper.destroy(),this._menu.classList.remove(xe),this._element.classList.remove(xe),this._element.setAttribute("aria-expanded","false"),q.removeDataAttribute(this._menu,"popper"),z.trigger(this._element,Le,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!h(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ce.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===i)throw new TypeError("CoreUI's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:h(this._config.reference)?t=d(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=i.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(xe)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return He;if(t.classList.contains("dropstart"))return qe;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ze:Fe:e?Ke:Be}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(q.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...w(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const i=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>u(t));i.length&&A(i,e,t===ke,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=We.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=U.find(Me);for(const i of e){const e=We.getInstance(i);if(!e||!1===e._config.autoClose)continue;const s=t.composedPath(),n=s.includes(e._menu);if(s.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,s=[Te,ke].includes(t.key);if(!s&&!i)return;if(e&&!i)return;t.preventDefault();const n=this.matches(Pe)?this:U.prev(this,Pe)[0]||U.next(this,Pe)[0]||U.findOne(Pe,t.delegateTarget.parentNode),o=We.getOrCreateInstance(n);if(s)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),n.focus())}}z.on(document,Oe,Pe,We.dataApiKeydownHandler),z.on(document,Oe,je,We.dataApiKeydownHandler),z.on(document,De,We.clearMenus),z.on(document,Ne,We.clearMenus),z.on(document,De,Pe,function(t){t.preventDefault(),We.getOrCreateInstance(this).toggle()}),y(We);const Ue="backdrop",Qe="show",Ye=`mousedown.bs.${Ue}`,Xe={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ge={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Je extends V{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Xe}static get DefaultType(){return Ge}static get NAME(){return Ue}show(t){if(!this._config.isVisible)return void w(t);this._append();const e=this._getElement();this._config.isAnimated&&m(e),e.classList.add(Qe),this._emulateAnimation(()=>{w(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(Qe),this._emulateAnimation(()=>{this.dispose(),w(t)})):w(t)}dispose(){this._isAppended&&(z.off(this._element,Ye),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=d(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),z.on(t,Ye,()=>{w(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){C(t,this._getElement(),this._config.isAnimated)}}const Ze=".bs.focustrap",ti=`focusin${Ze}`,ei=`keydown.tab${Ze}`,ii="backward",si={autofocus:!0,trapElement:null},ni={autofocus:"boolean",trapElement:"element"};class oi extends V{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return si}static get DefaultType(){return ni}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),z.off(document,Ze),z.on(document,ti,t=>this._handleFocusin(t)),z.on(document,ei,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,z.off(document,Ze))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=U.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===ii?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?ii:"forward")}}const ri=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ai=".sticky-top",li="padding-right",ci="margin-right";class hi{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,li,e=>e+t),this._setElementAttributes(ri,li,e=>e+t),this._setElementAttributes(ai,ci,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,li),this._resetElementAttributes(ri,li),this._resetElementAttributes(ai,ci)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+s)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(n))}px`)})}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&q.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=q.getDataAttribute(t,e);null!==i?(q.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(h(t))e(t);else for(const i of U.find(t,this._element))e(i)}}const di=".bs.modal",ui=`hide${di}`,_i=`hidePrevented${di}`,gi=`hidden${di}`,pi=`show${di}`,mi=`shown${di}`,fi=`resize${di}`,bi=`click.dismiss${di}`,vi=`mousedown.dismiss${di}`,yi=`keydown.dismiss${di}`,wi=`click${di}.data-api`,Ci="modal-open",Ai="show",Ei="modal-static",Ti={backdrop:!0,focus:!0,keyboard:!0},ki={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Si extends R{constructor(t,e){super(t,e),this._dialog=U.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hi,this._addEventListeners()}static get Default(){return Ti}static get DefaultType(){return ki}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||z.trigger(this._element,pi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ci),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(z.trigger(this._element,ui).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ai),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){z.off(window,di),z.off(this._dialog,di),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Je({isVisible:Boolean(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;const e=U.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),m(this._element),this._element.classList.add(Ai),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,z.trigger(this._element,mi,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){z.on(this._element,yi,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),z.on(window,fi,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),z.on(this._element,vi,t=>{z.one(this._element,bi,e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_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(Ci),this._resetAdjustments(),this._scrollBar.reset(),z.trigger(this._element,gi)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(z.trigger(this._element,_i).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Ei)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Ei),this._queueCallback(()=>{this._element.classList.remove(Ei),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=v()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=v()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=Si.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}})}}z.on(document,wi,'[data-bs-toggle="modal"]',function(t){const e=U.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),z.one(e,pi,t=>{t.defaultPrevented||z.one(e,gi,()=>{u(this)&&this.focus()})});const i=U.findOne(".modal.show");i&&Si.getInstance(i).hide(),Si.getOrCreateInstance(e).toggle(this)}),Q(Si),y(Si);const Li="bs.navigation",Ii=`.${Li}`,$i=".data-api",Di={activeLinksExact:!0,groupsAutoCollapse:!0},Oi={activeLinksExact:"boolean",groupsAutoCollapse:"(string|boolean)"},Ni="active",xi="show",Pi="nav-group-toggle",Mi=`click${Ii}${$i}`,ji=`load${Ii}${$i}`,Fi=".nav-group",zi=".nav-group-items",Bi=".nav-group-toggle";class Ki extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._setActiveLink(),this._addEventListeners(),n.set(t,Li,this)}static get Default(){return Di}static get DATA_KEY(){return Li}static get DefaultType(){return Oi}static get NAME(){return"navigation"}_setActiveLink(){for(const t of Array.from(this._element.querySelectorAll(".nav-link"))){if(t.classList.contains(Pi))continue;let e=String(window.location);const i=/\?./,s=/#./;(/\?.*=/.test(e)||i.test(e))&&(e=e.split("?")[0]),s.test(e)&&(e=e.split("#")[0]),this._config.activeLinksExact&&t.href===e&&(t.classList.add(Ni),Array.from(this._getParents(t,Fi)).forEach(t=>{t.classList.add(xi),t.setAttribute("aria-expanded",!0)})),!this._config.activeLinksExact&&e.startsWith(t.href)&&(t.classList.add(Ni),Array.from(this._getParents(t,Fi)).forEach(t=>{t.classList.add(xi),t.setAttribute("aria-expanded",!0)}))}}_getParents(t,e){const i=[];for(;t&&t!==document;t=t.parentNode)e?t.matches(e)&&i.push(t):i.push(t);return i}_getAllSiblings(t,e){const i=[];t=t.parentNode.firstChild;do{3!==t.nodeType&&8!==t.nodeType&&(e&&!e(t)||i.push(t))}while(t=t.nextSibling);return i}_getChildren(t,e){const i=[];for(;t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}_getSiblings(t,e){return this._getChildren(t.parentNode.firstChild,t).filter(e)}_slideDown(t){t.style.height="auto";const e=t.clientHeight;t.style.height="0px",setTimeout(()=>{t.style.height=`${e}px`},0),this._queueCallback(()=>{t.style.height="auto"},t,!0)}_slideUp(t,e){const i=t.clientHeight;t.style.height=`${i}px`,setTimeout(()=>{t.style.height="0px"},0),this._queueCallback(()=>{"function"==typeof e&&e()},t,!0)}_toggleGroupItems(t){let e=t.target;e.classList.contains(Pi)||(e=e.closest(Bi));const i=t=>Boolean(t.classList.contains("nav-group")&&t.classList.contains(xi));if(!0===this._config.groupsAutoCollapse)for(const t of this._getSiblings(e.parentNode,i))this._slideUp(U.findOne(zi,t),()=>{t.classList.remove(xi),t.setAttribute("aria-expanded",!1)});e.parentNode.classList.contains(xi)?this._slideUp(U.findOne(zi,e.parentNode),()=>{e.parentNode.classList.remove(xi),e.parentNode.setAttribute("aria-expanded",!1)}):(e.parentNode.classList.add(xi),e.parentNode.setAttribute("aria-expanded",!0),this._slideDown(U.findOne(zi,e.parentNode)))}_addEventListeners(){z.on(this._element,Mi,Bi,t=>{t.preventDefault(),this._toggleGroupItems(t,this)})}static navigationInterface(t,e){const i=Ki.getOrCreateInstance(t,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}static jQueryInterface(t){return this.each(function(){Ki.navigationInterface(this,t)})}}z.on(window,ji,()=>{for(const t of Array.from(document.querySelectorAll('[data-bs-navigation], [data-bs="navigation"]')))Ki.navigationInterface(t)}),y(Ki);const Hi=".bs.offcanvas",qi=".data-api",Vi=`load${Hi}${qi}`,Ri="show",Wi="showing",Ui="hiding",Qi=".offcanvas.show",Yi=`show${Hi}`,Xi=`shown${Hi}`,Gi=`hide${Hi}`,Ji=`hidePrevented${Hi}`,Zi=`hidden${Hi}`,ts=`resize${Hi}`,es=`click${Hi}${qi}`,is=`keydown.dismiss${Hi}`,ss={backdrop:!0,keyboard:!0,scroll:!1},ns={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class os extends R{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ss}static get DefaultType(){return ns}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||z.trigger(this._element,Yi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new hi).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Wi),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ri),this._element.classList.remove(Wi),z.trigger(this._element,Xi,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(z.trigger(this._element,Gi).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ui),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Ri,Ui),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new hi).reset(),z.trigger(this._element,Zi)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Je({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():z.trigger(this._element,Ji)}:null})}_initializeFocusTrap(){return new oi({trapElement:this._element})}_addEventListeners(){z.on(this._element,is,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():z.trigger(this._element,Ji))})}static jQueryInterface(t){return this.each(function(){const e=os.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}z.on(document,es,'[data-bs-toggle="offcanvas"]',function(t){const e=U.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),_(this))return;z.one(e,Zi,()=>{u(this)&&this.focus()});const i=U.findOne(Qi);i&&i!==e&&os.getInstance(i).hide(),os.getOrCreateInstance(e).toggle(this)}),z.on(window,Vi,()=>{for(const t of U.find(Qi))os.getOrCreateInstance(t).show()}),z.on(window,ts,()=>{for(const t of U.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&os.getOrCreateInstance(t).hide()}),Q(os),y(os);const rs={"*":["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:[]},as=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ls=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,cs=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!as.has(i)||Boolean(ls.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))},hs={allowList:rs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ds={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},us={entry:"(string|element|function|null)",selector:"(string|element)"};class _s extends V{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return hs}static get DefaultType(){return ds}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},us)}_setContent(t,e,i){const s=U.findOne(i,t);s&&((e=this._resolvePossibleFunction(e))?h(e)?this._putElementInTemplate(d(e),s):this._config.html?s.innerHTML=this._maybeSanitize(e):s.textContent=e:s.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const s=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(const t of n){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const s=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[i]||[]);for(const e of s)cs(e,n)||t.removeAttribute(e.nodeName)}return s.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return w(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const gs=new Set(["sanitize","allowList","sanitizeFn"]),ps="fade",ms="show",fs=".tooltip-inner",bs=".modal",vs="hide.bs.modal",ys="hover",ws="focus",Cs="click",As={AUTO:"auto",TOP:"top",RIGHT:v()?"left":"right",BOTTOM:"bottom",LEFT:v()?"right":"left"},Es={allowList:rs,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:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Ts={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 ks extends R{constructor(t,e){if(void 0===i)throw new TypeError("CoreUI's dropdowns 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 Es}static get DefaultType(){return Ts}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),z.off(this._element.closest(bs),vs,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 new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=z.trigger(this._element,this.constructor.eventName("show")),e=(g(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),z.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(ms),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))z.on(t,"mouseover",p);this._queueCallback(()=>{z.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!z.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ms),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))z.off(t,"mouseover",p);this._activeTrigger[Cs]=!1,this._activeTrigger[ws]=!1,this._activeTrigger[ys]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),z.trigger(this._element,this.constructor.eventName("hidden")))},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(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(ps,ms),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=l(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(ps),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new _s({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[fs]: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(ps)}_isShown(){return this.tip&&this.tip.classList.contains(ms)}_createPopper(t){const e=w(this._config.placement,[this,t,this._element]),s=As[e.toUpperCase()];return i.createPopper(this._element,t,this._getPopperConfig(s))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return w(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...w(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)z.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[Cs]=!(e._isShown()&&e._activeTrigger[Cs]),e.toggle()});else if("manual"!==e){const t=e===ys?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===ys?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");z.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?ws:ys]=!0,e._enter()}),z.on(this._element,i,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?ws:ys]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},z.on(this._element.closest(bs),vs,this._hideModalHandler)}_fixTitle(){const 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(){this._isShown()||this._isHovered?this._isHovered=!0:(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){const e=q.getDataAttributes(this._element);for(const t of Object.keys(e))gs.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:d(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);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(){const e=ks.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}y(ks);const Ss=".popover-header",Ls=".popover-body",Is={...ks.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},$s={...ks.DefaultType,content:"(null|string|element|function)"};class Ds extends ks{static get Default(){return Is}static get DefaultType(){return $s}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ss]:this._getTitle(),[Ls]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=Ds.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}y(Ds);const Os=".bs.scrollspy",Ns=`activate${Os}`,xs=`click${Os}`,Ps=`load${Os}.data-api`,Ms="active",js="[href]",Fs=".nav-link",zs=`${Fs}, .nav-item > ${Fs}, .list-group-item`,Bs={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ks={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Hs extends R{constructor(t,e){super(t,e),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 Bs}static get DefaultType(){return Ks}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=d(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(z.off(this._config.target,xs),z.on(this._config.target,xs,js,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:s,behavior:"smooth"});i.scrollTop=s}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(i(o),!s)return}else n||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=U.find(js,this._config.target);for(const e of t){if(!e.hash||_(e))continue;const t=U.findOne(decodeURI(e.hash),this._element);u(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ms),this._activateParents(t),z.trigger(this._element,Ns,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))U.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Ms);else for(const e of U.parents(t,".nav, .list-group"))for(const t of U.prev(e,zs))t.classList.add(Ms)}_clearActiveClass(t){t.classList.remove(Ms);const e=U.find(`${js}.${Ms}`,t);for(const t of e)t.classList.remove(Ms)}static jQueryInterface(t){return this.each(function(){const e=Hs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}z.on(window,Ps,()=>{for(const t of U.find('[data-bs-spy="scroll"]'))Hs.getOrCreateInstance(t)}),y(Hs);const qs=".bs.search-button",Vs=".data-api",Rs=`blur${qs}${Vs}`,Ws=`click${qs}${Vs}`,Us=`keydown${qs}${Vs}`,Qs=`keyup${qs}${Vs}`,Ys=`trigger${qs}`,Xs="active",Gs="[data-bs-search-button]",Js='input, textarea, select, [contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]',Zs=".search-button-key",tn={preventDefault:!0,shortcut:"meta+/,ctrl+/"},en={preventDefault:"boolean",shortcut:"string"},sn=new Set(["alt","ctrl","meta","shift"]),nn={cmd:"meta",command:"meta",control:"ctrl",option:"alt",return:"enter",esc:"escape",spacebar:"space"," ":"space"},on={alt:"Alt",ctrl:"Ctrl",meta:"⌘",shift:"Shift",space:"Space"};class rn extends R{constructor(t,e){super(t,e),this._shortcutTriggered=!1,this._shortcuts=this._parseShortcut(this._config.shortcut),this._preferredShortcut=this._getPreferredShortcut(this._shortcuts),this._syncShortcutKeys()}static get Default(){return tn}static get DefaultType(){return en}static get NAME(){return"search-button"}trigger(){this._triggerEvent("api")}_triggerEvent(t){this._isDisabled()||z.trigger(this._element,Ys,{trigger:t})}_handleShortcut(t){if(this._isDisabled()||t.defaultPrevented||t.repeat||this._shouldIgnoreShortcut(t))return!1;if(!this._shortcuts.find(e=>this._matchesShortcut(e,t)))return!1;this._config.preventDefault&&t.preventDefault(),this._shortcutTriggered=!0;try{this._element.click()}finally{this._shortcutTriggered=!1}return!0}_isDisabled(){return this._element.classList.contains("disabled")||"true"===this._element.getAttribute("aria-disabled")||this._element.disabled}_ensureShortcutKeys(){const t=this._element.querySelector(".search-button-keys");if(t)return t;const e=document.createElement("span");e.className="search-button-keys",e.setAttribute("aria-hidden","true");const i=this._element.querySelector(".search-button-placeholder");return i?(i.after(e),e):(this._element.append(e),e)}_syncShortcutKeys(){var t;const e=this._ensureShortcutKeys(),i=this._formatShortcutTokens((null==(t=this._preferredShortcut)?void 0:t.shortcut)||"").filter(Boolean);e.replaceChildren();for(const t of i){const i=document.createElement("span");i.className="search-button-key",i.textContent=t,i.dataset.bsSearchButtonKey=t,e.append(i)}}_syncActiveKeys(t){const e=this._getPressedKeys(t);for(const t of this._element.querySelectorAll(Zs))t.classList.toggle(Xs,e.has(t.dataset.bsSearchButtonKey))}_clearActiveKeys(){for(const t of this._element.querySelectorAll(Zs))t.classList.remove(Xs)}_consumeShortcutTrigger(){const t=this._shortcutTriggered;return this._shortcutTriggered=!1,t}_shouldIgnoreShortcut(t){return this._isEditableTarget(t.target)&&!t.ctrlKey&&!t.metaKey}_isEditableTarget(t){return t instanceof Element&&(t.matches(Js)||t.closest(Js))}_normalizeKey(t){return nn[t.toLowerCase()]||t.toLowerCase()}_parseShortcut(t){return t.split(",").map(t=>t.trim()).filter(Boolean).map(t=>{const e=t.split("+").map(t=>this._normalizeKey(t.trim())),i={alt:!1,ctrl:!1,meta:!1,shift:!1};let s="";for(const t of e)sn.has(t)?i[t]=!0:s=t;return{key:s,modifiers:i,shortcut:t}})}_matchesShortcut(t,e){return!(!t.key||this._normalizeKey(e.key)!==t.key)&&t.modifiers.alt===e.altKey&&t.modifiers.ctrl===e.ctrlKey&&t.modifiers.meta===e.metaKey&&t.modifiers.shift===e.shiftKey}_formatShortcutTokens(t){return t.split("+").map(t=>this._normalizeKey(t.trim())).map(t=>this._getKeyLabel(t))}_getPlatform(){var t;return(null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform||window.navigator.userAgent||""}_isMacOS(){return/Mac|iPhone|iPad|iPod|macOS|Macintosh/.test(this._getPlatform())}_getPreferredShortcut(t){return t.find(t=>this._isMacOS()?t.modifiers.meta:t.modifiers.ctrl)||t[0]||null}_getPressedKeys(t){const e=new Set;t.altKey&&e.add(on.alt),t.ctrlKey&&e.add(on.ctrl),t.metaKey&&e.add(on.meta),t.shiftKey&&e.add(on.shift);const i=this._normalizeKey(t.key),s=this._getKeyLabel(i);return sn.has(i)||"keydown"!==t.type||e.add(s),e}_getKeyLabel(t){return on[t]||(1===t.length?t.toUpperCase():`${t.charAt(0).toUpperCase()}${t.slice(1)}`)}static searchButtonInterface(t,e){const i=rn.getOrCreateInstance(t,e);if("string"==typeof e){if(e.startsWith("_")||"function"!=typeof i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}static jQueryInterface(t){return this.each(function(){rn.searchButtonInterface(this,t)})}static _initializeDataApi(){for(const t of document.querySelectorAll(Gs))rn.getOrCreateInstance(t)}static _handleDataApiClick(t){t.preventDefault();const e=t.target.closest(Gs),i=rn.getOrCreateInstance(e);i._consumeShortcutTrigger()?i._triggerEvent("shortcut"):i._triggerEvent("click")}static _handleDataApiKeydown(t){for(const e of document.querySelectorAll(Gs)){const i=rn.getOrCreateInstance(e);if(i._syncActiveKeys(t),i._handleShortcut(t))break}}static _handleDataApiKeyup(t){for(const e of document.querySelectorAll(Gs))rn.getOrCreateInstance(e)._syncActiveKeys(t)}static _handleDataApiBlur(){for(const t of document.querySelectorAll(Gs))rn.getOrCreateInstance(t)._clearActiveKeys()}}z.on(document,`DOMContentLoaded${qs}${Vs}`,()=>{rn._initializeDataApi()}),z.on(document,Ws,Gs,t=>{rn._handleDataApiClick(t)}),z.on(document,Us,t=>{rn._handleDataApiKeydown(t)}),z.on(document,Qs,t=>{rn._handleDataApiKeyup(t)}),z.on(window,Rs,()=>{rn._handleDataApiBlur()}),y(rn);const an=".bs.sidebar",ln=".data-api",cn={},hn={},dn="hide",un="show",_n="sidebar-narrow",gn="sidebar-narrow-unfoldable",pn=`hide${an}`,mn=`hidden${an}`,fn=`show${an}`,bn=`shown${an}`,vn=`click${an}${ln}`,yn=`load${an}${ln}`,wn="[data-bs-toggle]",Cn=".sidebar";class An extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._show=this._isVisible(),this._mobile=this._isMobile(),this._overlaid=this._isOverlaid(),this._narrow=this._isNarrow(),this._unfoldable=this._isUnfoldable(),this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get Default(){return cn}static get DefaultType(){return hn}static get NAME(){return"sidebar"}show(){z.trigger(this._element,fn),this._element.classList.contains(dn)&&this._element.classList.remove(dn),this._overlaid&&this._element.classList.add(un),this._isMobile()&&(this._element.classList.add(un),this._backdrop.show(),(new hi).hide()),this._queueCallback(()=>{!0===this._isVisible()&&(this._show=!0,(this._isMobile()||this._isOverlaid())&&this._addClickOutListener(),z.trigger(this._element,bn))},this._element,!0)}hide(){z.trigger(this._element,pn),this._element.classList.contains(un)&&this._element.classList.remove(un),this._isMobile()&&(this._backdrop.hide(),(new hi).reset()),this._isMobile()||this._overlaid||this._element.classList.add(dn),this._queueCallback(()=>{!1===this._isVisible()&&(this._show=!1,(this._isMobile()||this._isOverlaid())&&this._removeClickOutListener(),z.trigger(this._element,mn))},this._element,!0)}toggle(){this._isVisible()?this.hide():this.show()}narrow(){this._isMobile()||(this._element.classList.add(_n),this._narrow=!0)}unfoldable(){this._isMobile()||(this._element.classList.add(gn),this._unfoldable=!0)}reset(){this._isMobile()||(this._narrow&&(this._element.classList.remove(_n),this._narrow=!1),this._unfoldable&&(this._element.classList.remove(gn),this._unfoldable=!1))}toggleNarrow(){this._narrow?this.reset():this.narrow()}toggleUnfoldable(){this._unfoldable?this.reset():this.unfoldable()}_initializeBackDrop(){return new Je({className:"sidebar-backdrop",isVisible:this._isMobile(),isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_isMobile(){return Boolean(window.getComputedStyle(this._element,null).getPropertyValue("--bs-is-mobile"))}_isNarrow(){return this._element.classList.contains(_n)}_isOverlaid(){return this._element.classList.contains("sidebar-overlaid")}_isUnfoldable(){return this._element.classList.contains(gn)}_isVisible(){const t=this._element.getBoundingClientRect();return t.top>=0&&t.left>=0&&Math.floor(t.bottom)<=(window.innerHeight||document.documentElement.clientHeight)&&Math.floor(t.right)<=(window.innerWidth||document.documentElement.clientWidth)}_clickOutListener(t){null===t.target.closest(Cn)&&(t.preventDefault(),t.stopPropagation(),this.hide())}_addClickOutListener(){z.on(document,vn,t=>{this._clickOutListener(t)})}_removeClickOutListener(){z.off(document,vn)}_addEventListeners(){this._mobile&&this._show&&this._addClickOutListener(),this._overlaid&&this._show&&this._addClickOutListener(),z.on(this._element,vn,wn,t=>{t.preventDefault();const e=q.getDataAttribute(t.target.closest(wn),"toggle");"narrow"===e&&this.toggleNarrow(),"unfoldable"===e&&this.toggleUnfoldable()}),z.on(this._element,vn,'[data-bs-close="sidebar"]',t=>{t.preventDefault(),this.hide()}),z.on(window,"resize",()=>{this._isMobile()&&this._isVisible()&&(this.hide(),this._backdrop=this._initializeBackDrop())})}static sidebarInterface(t,e){const i=An.getOrCreateInstance(t,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}static jQueryInterface(t){return this.each(function(){An.sidebarInterface(this,t)})}}z.on(window,yn,()=>{for(const t of Array.from(document.querySelectorAll(Cn)))An.sidebarInterface(t)}),y(An);const En=".bs.tab",Tn=`hide${En}`,kn=`hidden${En}`,Sn=`show${En}`,Ln=`shown${En}`,In=`click${En}`,$n=`keydown${En}`,Dn=`load${En}`,On="ArrowLeft",Nn="ArrowRight",xn="ArrowUp",Pn="ArrowDown",Mn="Home",jn="End",Fn="active",zn="fade",Bn="show",Kn=".dropdown-toggle",Hn=`:not(${Kn})`,qn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Vn=`.nav-link${Hn}, .list-group-item${Hn}, [role="tab"]${Hn}, ${qn}`,Rn=`.${Fn}[data-bs-toggle="tab"], .${Fn}[data-bs-toggle="pill"], .${Fn}[data-bs-toggle="list"]`;class Wn extends R{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),z.on(this._element,$n,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?z.trigger(e,Tn,{relatedTarget:t}):null;z.trigger(t,Sn,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Fn),this._activate(U.getElementFromSelector(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),z.trigger(t,Ln,{relatedTarget:e})):t.classList.add(Bn)},t,t.classList.contains(zn)))}_deactivate(t,e){t&&(t.classList.remove(Fn),t.blur(),this._deactivate(U.getElementFromSelector(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),z.trigger(t,kn,{relatedTarget:e})):t.classList.remove(Bn)},t,t.classList.contains(zn)))}_keydown(t){if(![On,Nn,xn,Pn,Mn,jn].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(t=>!_(t));let i;if([Mn,jn].includes(t.key))i=e[t.key===Mn?0:e.length-1];else{const s=[Nn,Pn].includes(t.key);i=A(e,t.target,s,!0)}i&&(i.focus({preventScroll:!0}),Wn.getOrCreateInstance(i).show())}_getChildren(){return U.find(Vn,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=U.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const s=(t,s)=>{const n=U.findOne(t,i);n&&n.classList.toggle(s,e)};s(Kn,Fn),s(".dropdown-menu",Bn),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(Fn)}_getInnerElement(t){return t.matches(Vn)?t:U.findOne(Vn,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const e=Wn.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}z.on(document,In,qn,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),_(this)||Wn.getOrCreateInstance(this).show()}),z.on(window,Dn,()=>{for(const t of U.find(Rn))Wn.getOrCreateInstance(t)}),y(Wn);const Un=".bs.toast",Qn=`mouseover${Un}`,Yn=`mouseout${Un}`,Xn=`focusin${Un}`,Gn=`focusout${Un}`,Jn=`hide${Un}`,Zn=`hidden${Un}`,to=`show${Un}`,eo=`shown${Un}`,io="hide",so="show",no="showing",oo={animation:"boolean",autohide:"boolean",delay:"number"},ro={animation:!0,autohide:!0,delay:5e3};class ao extends R{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ro}static get DefaultType(){return oo}static get NAME(){return"toast"}show(){z.trigger(this._element,to).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(io),m(this._element),this._element.classList.add(so,no),this._queueCallback(()=>{this._element.classList.remove(no),z.trigger(this._element,eo),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(z.trigger(this._element,Jn).defaultPrevented||(this._element.classList.add(no),this._queueCallback(()=>{this._element.classList.add(io),this._element.classList.remove(no,so),z.trigger(this._element,Zn)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(so),super.dispose()}isShown(){return this._element.classList.contains(so)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){z.on(this._element,Qn,t=>this._onInteraction(t,!0)),z.on(this._element,Yn,t=>this._onInteraction(t,!1)),z.on(this._element,Xn,t=>this._onInteraction(t,!0)),z.on(this._element,Gn,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=ao.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return Q(ao),y(ao),{Alert:J,Button:tt,Carousel:xt,Chip:Qt,ChipInput:ae,Collapse:we,Dropdown:We,Modal:Si,Navigation:Ki,OffCanvas:os,Popover:Ds,ScrollSpy:Hs,SearchButton:rn,Sidebar:An,Tab:Wn,Toast:ao,Tooltip:ks}});
|
|
7
7
|
//# sourceMappingURL=bootstrap.min.js.map
|