UNPKG

@coreui/coreui

Version:

The most popular front-end framework for developing responsive, mobile-first projects on the web rewritten and maintained by the CoreUI Team

6 lines 112 kB
/*! * CoreUI v5.9.0 (https://coreui.io) * Copyright 2026 The CoreUI Team (https://github.com/orgs/coreui/people) * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE) */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,function(){"use strict";const e=new Map,t={set(t,i,s){e.has(t)||e.set(t,new Map);const n=e.get(t);n.has(i)||0===n.size?n.set(i,s):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,i)=>e.has(t)&&e.get(t).get(i)||null,remove(t,i){if(!e.has(t))return;const s=e.get(t);s.delete(i),0===s.size&&e.delete(t)}},i="transitionend",s=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),n=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),o=e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},r=e=>{e.dispatchEvent(new Event(i))},a=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),l=e=>a(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(s(e)):null,c=e=>{if(!a(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},h=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),d=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?d(e.parentNode):null},u=()=>{},f=e=>{e.offsetHeight},p=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,g=[],_=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=p();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?(g.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of g)e()}),g.push(t)):t()},b=(e,t=[],i=e)=>"function"==typeof e?e.call(...t):i,v=(e,t,s=!0)=>{if(!s)return void b(e);const n=(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 o=!1;const a=({target:s})=>{s===t&&(o=!0,t.removeEventListener(i,a),b(e))};t.addEventListener(i,a),setTimeout(()=>{o||r(t)},n)},y=(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))])},w=/[^.]*(?=\..*)\.|.*/,C=/\..*/,A=/::\d+$/,E={};let k=1;const x={mouseenter:"mouseover",mouseleave:"mouseout"},T=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 L(e,t){return t&&`${t}::${k++}`||e.uidEvent||k++}function O(e){const t=L(e);return e.uidEvent=t,E[t]=E[t]||{},E[t]}function S(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function I(e,t,i){const s="string"==typeof t,n=s?i:t||i;let o=M(e);return T.has(o)||(o=e),[s,n,o]}function D(e,t,i,s,n){if("string"!=typeof t||!e)return;let[o,r,a]=I(t,i,s);if(t in x){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=O(e),c=l[a]||(l[a]={}),h=S(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&n);const d=L(r,t.replace(w,"")),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 j(n,{delegateTarget:r}),s.oneOff&&P.off(e,n.type,t,i),i.apply(r,[n])}}(e,i,r):function(e,t){return function i(s){return j(s,{delegateTarget:e}),i.oneOff&&P.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 $(e,t,i,s,n){const o=S(t[i],s,n);o&&(e.removeEventListener(i,o,Boolean(n)),delete t[i][o.uidEvent])}function N(e,t,i,s){const n=t[i]||{};for(const[o,r]of Object.entries(n))o.includes(s)&&$(e,t,i,r.callable,r.delegationSelector)}function M(e){return e=e.replace(C,""),x[e]||e}const P={on(e,t,i,s){D(e,t,i,s,!1)},one(e,t,i,s){D(e,t,i,s,!0)},off(e,t,i,s){if("string"!=typeof t||!e)return;const[n,o,r]=I(t,i,s),a=r!==t,l=O(e),c=l[r]||{},h=t.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))N(e,l,i,t.slice(1));for(const[i,s]of Object.entries(c)){const n=i.replace(A,"");a&&!t.includes(n)||$(e,l,r,s.callable,s.delegationSelector)}}else{if(!Object.keys(c).length)return;$(e,l,r,o,n?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const s=p();let n=null,o=!0,r=!0,a=!1;t!==M(t)&&s&&(n=s.Event(t,i),s(e).trigger(n),o=!n.isPropagationStopped(),r=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=j(new Event(t,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&e.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function j(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 F(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 B(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const H={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${B(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${B(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]=F(e.dataset[s])}return t},getDataAttribute:(e,t)=>F(e.getAttribute(`data-bs-${B(t)}`))};class z{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=a(t)?H.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...a(t)?H.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,s]of Object.entries(t)){const t=e[i],o=a(t)?"element":n(t);if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${s}".`)}}}class R extends z{constructor(e,i){super(),(e=l(e))&&(this._element=e,this._config=this._getConfig(i),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),P.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){v(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(l(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.9.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=>s(e)).join(","):null},q={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=>!h(e)&&c(e))},getSelectorFromElement(e){const t=K(e);return t&&q.findOne(t)?t:null},getElementFromSelector(e){const t=K(e);return t?q.findOne(t):null},getMultipleElementsFromSelector(e){const t=K(e);return t?q.find(t):[]}},V=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;P.on(document,i,`[data-bs-dismiss="${s}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),h(this))return;const n=q.getElementFromSelector(this)||this.closest(`.${s}`);e.getOrCreateInstance(n)[t]()})},W=".bs.alert",U=`close${W}`,Q=`closed${W}`;class Y extends R{static get NAME(){return"alert"}close(){if(P.trigger(this._element,U).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(),P.trigger(this._element,Q),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Y.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)}})}}V(Y,"close"),m(Y);const X='[data-bs-toggle="button"]';class G extends R{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=G.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}P.on(document,"click.bs.button.data-api",X,e=>{e.preventDefault();const t=e.target.closest(X);G.getOrCreateInstance(t).toggle()}),m(G);const J=".bs.swipe",Z=`touchstart${J}`,ee=`touchmove${J}`,te=`touchend${J}`,ie=`pointerdown${J}`,se=`pointerup${J}`,ne={endCallback:null,leftCallback:null,rightCallback:null},oe={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class re extends z{constructor(e,t){super(),this._element=e,e&&re.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ne}static get DefaultType(){return oe}static get NAME(){return"swipe"}dispose(){P.off(this._element,J)}_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(),b(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&&b(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(P.on(this._element,ie,e=>this._start(e)),P.on(this._element,se,e=>this._end(e)),this._element.classList.add("pointer-event")):(P.on(this._element,Z,e=>this._start(e)),P.on(this._element,ee,e=>this._move(e)),P.on(this._element,te,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 ae=".bs.carousel",le=".data-api",ce="ArrowLeft",he="ArrowRight",de="next",ue="prev",fe="left",pe="right",ge=`slide${ae}`,_e=`slid${ae}`,me=`keydown${ae}`,be=`mouseenter${ae}`,ve=`mouseleave${ae}`,ye=`dragstart${ae}`,we=`load${ae}${le}`,Ce=`click${ae}${le}`,Ae="carousel",Ee="active",ke=".active",xe=".carousel-item",Te=ke+xe,Le={[ce]:pe,[he]:fe},Oe={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Se={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ie extends R{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=q.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Ae&&this.cycle()}static get Default(){return Oe}static get DefaultType(){return Se}static get NAME(){return"carousel"}next(){this._slide(de)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide(ue)}pause(){this._isSliding&&r(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?P.one(this._element,_e,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void P.one(this._element,_e,()=>this.to(e));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?de:ue;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&&P.on(this._element,me,e=>this._keydown(e)),"hover"===this._config.pause&&(P.on(this._element,be,()=>this.pause()),P.on(this._element,ve,()=>this._maybeEnableCycle())),this._config.touch&&re.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of q.find(".carousel-item img",this._element))P.on(e,ye,e=>e.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(fe)),rightCallback:()=>this._slide(this._directionToOrder(pe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new re(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Le[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=q.findOne(ke,this._indicatorsElement);t.classList.remove(Ee),t.removeAttribute("aria-current");const i=q.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(Ee),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===de,n=t||y(this._getItems(),i,s,this._config.wrap);if(n===i)return;const o=this._getItemIndex(n),r=t=>P.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:o});if(r(ge).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),f(n),i.classList.add(l),n.classList.add(l),this._queueCallback(()=>{n.classList.remove(l,c),n.classList.add(Ee),i.classList.remove(Ee,c,l),this._isSliding=!1,r(_e)},i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return q.findOne(Te,this._element)}_getItems(){return q.find(xe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return _()?e===fe?ue:de:e===fe?de:ue}_orderToDirection(e){return _()?e===ue?fe:pe:e===ue?pe:fe}static jQueryInterface(e){return this.each(function(){const t=Ie.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)})}}P.on(document,Ce,"[data-bs-slide], [data-bs-slide-to]",function(e){const t=q.getElementFromSelector(this);if(!t||!t.classList.contains(Ae))return;e.preventDefault();const i=Ie.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===H.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),P.on(window,we,()=>{const e=q.find('[data-bs-ride="carousel"]');for(const t of e)Ie.getOrCreateInstance(t)}),m(Ie);const De={"*":["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:[]},$e={...De,svg:["xmlns","version","baseprofile","width","height","viewbox","preserveaspectratio","aria-hidden","role","focusable","fill","stroke","stroke-width","stroke-linecap","stroke-linejoin"],g:["id","class","transform","style"],path:["id","class","d","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-dasharray","stroke-dashoffset","stroke-opacity"],circle:["id","class","cx","cy","r","fill","fill-opacity","stroke","stroke-width","stroke-opacity"],rect:["id","class","x","y","width","height","rx","ry","fill","fill-opacity","stroke","stroke-width","stroke-opacity"],ellipse:["id","class","cx","cy","rx","ry","fill","fill-opacity","stroke","stroke-width","stroke-opacity"],line:["id","class","x1","y1","x2","y2","stroke","stroke-width","stroke-linecap","stroke-opacity"],polygon:["id","class","points","fill","fill-opacity","stroke","stroke-width","stroke-opacity"],polyline:["id","class","points","fill","fill-opacity","stroke","stroke-width","stroke-opacity"],text:["id","class","x","y","dx","dy","text-anchor","font-family","font-size","font-weight","fill","fill-opacity","stroke","stroke-width","stroke-opacity"],tspan:["id","class","x","y","dx","dy","text-anchor","font-family","font-size","font-weight","fill","fill-opacity","stroke","stroke-width","stroke-opacity"],defs:[],symbol:["id","class","viewbox","preserveaspectratio"],use:["id","class","x","y","width","height","href"],image:["id","class","x","y","width","height","href","preserveaspectratio","xlink:href"],pattern:["id","class","x","y","width","height","patternunits","patterncontentunits","patterntransform","preserveaspectratio"],lineargradient:["id","class","gradientunits","x1","y1","x2","y2","spreadmethod","gradienttransform"],radialgradient:["id","class","gradientunits","cx","cy","r","fx","fy","spreadmethod","gradienttransform"],mask:["id","class","x","y","width","height","maskunits","maskcontentunits","masktransform"],clippath:["id","class","clippathunits"],marker:["id","class","markerunits","markerwidth","markerheight","orient","preserveaspectratio","viewbox","refx","refy"],title:[],desc:[]},Ne=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Me=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Pe=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Ne.has(i)||Boolean(Me.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))};function je(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)Pe(t,n)||e.removeAttribute(t.nodeName)}return s.body.innerHTML}const Fe=".bs.chip",Be=`remove${Fe}`,He=`removed${Fe}`,ze=`select${Fe}`,Re=`selected${Fe}`,Ke=`deselect${Fe}`,qe=`deselected${Fe}`,Ve=".chip-check",We=".chip-remove",Ue="active",Qe="disabled",Ye=new Set(["sanitize","allowList","sanitizeFn"]),Xe={allowList:$e,ariaRemoveLabel:"Remove",disabled:!1,filter:!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>',sanitize:!0,sanitizeFn:null,selectable:!1,selected:!1,selectedIcon:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 512 512" fill="currentColor"><path d="M425.373 89.373 196 318.745 86.627 209.373l-45.254 45.254L196 409.255l274.627-274.628z"/></svg>'},Ge={allowList:"object",ariaRemoveLabel:"string",disabled:"boolean",filter:"boolean",removable:"boolean",removeIcon:"string",sanitize:"boolean",sanitizeFn:"(null|function)",selectable:"boolean",selected:"boolean",selectedIcon:"string"};class Je extends R{constructor(e,t){super(e,t),this._disabled=this._config.disabled||this._element.classList.contains(Qe),this._selected=this._config.selected||this._element.classList.contains(Ue),this._ensureRemoveButton(),this._applyState(),(this._config.selectable||this._config.removable)&&this._makeFocusable(),this._addEventListeners()}static get Default(){return Xe}static get DefaultType(){return Ge}static get NAME(){return"chip"}remove(){P.trigger(this._element,Be).defaultPrevented||this._destroyElement()}toggle(){this._config.selectable&&(this._selected?this.deselect():this.select())}select(){this._config.selectable&&(this._selected||P.trigger(this._element,ze).defaultPrevented||(this._selected=!0,this._applyState(),P.trigger(this._element,Re)))}deselect(){this._config.selectable&&this._selected&&(P.trigger(this._element,Ke).defaultPrevented||(this._selected=!1,this._applyState(),P.trigger(this._element,qe)))}_configAfterMerge(e){return e.filter&&(e.selectable=!0),e}_addEventListeners(){P.on(this._element,"keydown",e=>this._handleKeydown(e)),P.on(this._element,"click",e=>{this._disabled||e.target.closest(We)||this.toggle()}),P.on(this._element,"click",We,e=>{e.stopPropagation(),this.remove()})}_applyState(){var e;this._disabled||!this._config.clickable&&!this._config.selectable||this._element.classList.add("chip-clickable"),this._disabled?(this._element.classList.add(Qe),this._element.setAttribute("aria-disabled","true")):(this._element.classList.remove(Qe),"true"===this._element.getAttribute("aria-disabled")&&this._element.setAttribute("aria-disabled","false")),this._config.selectable?(this._element.classList.toggle(Ue,this._selected),this._element.setAttribute("aria-selected",this._selected?"true":"false"),this._config.filter&&(this._selected?this._ensureCheckIcon():null==(e=q.findOne(Ve,this._element))||e.remove())):(this._element.classList.remove(Ue),"true"===this._element.getAttribute("aria-selected")&&this._element.setAttribute("aria-selected","false"))}_ensureCheckIcon(){if(q.findOne(Ve,this._element))return;const e=document.createElement("span");e.className="chip-check",e.setAttribute("aria-hidden","true"),e.innerHTML=this._sanitizeIcon(this._config.selectedIcon),this._element.prepend(e)}_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._sanitizeIcon(this._config.removeIcon),e}_ensureRemoveButton(){this._config.removable&&!this._disabled&&(q.findOne(We,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":this._config.removable&&(e.preventDefault(),this.remove())}}_destroyElement(){P.trigger(this._element,He),this._element.remove(),this.dispose()}_sanitizeIcon(e){return this._config.sanitize?je(e,this._config.allowList,this._config.sanitizeFn):e}_getConfig(e){const t=H.getDataAttributes(this._element);for(const e of Object.keys(t))Ye.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}static chipInterface(e,t){const i=Je.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=Je.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)}})}}P.on(document,`DOMContentLoaded${Fe}.data-api`,()=>{for(const e of q.find("[data-bs-chip]"))Je.chipInterface(e)}),m(Je);const Ze="change",et="select",tt=".chip",it=`${tt}.active`,st="disabled",nt={ariaRemoveLabel:"Remove",chipClassName:null,disabled:!1,filter:!1,maxChips:null,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,selectedIcon:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 512 512" fill="currentColor"><path d="M425.373 89.373 196 318.745 86.627 209.373l-45.254 45.254L196 409.255l274.627-274.628z"/></svg>',selectionMode:"multiple",unique:!1},ot={ariaRemoveLabel:"string",chipClassName:"(string|function|null)",disabled:"boolean",filter:"boolean",maxChips:"(number|null)",removable:"boolean",removeIcon:"string",selectable:"boolean",selectedIcon:"string",selectionMode:"string",unique:"boolean"};class rt extends R{constructor(e,t){super(e,t),this._disabled=this._config.disabled||this._element.classList.contains(st),this._pendingFocus=null,this._chips=[],this._initChips(),this._addEventListeners()}static get Default(){return nt}static get DefaultType(){return ot}static get NAME(){return"chip-set"}add(e){var t;if(!this._canModify())return null;const i="string"!=typeof e,s=i?this._getChipValue(e):String(e).trim();if(!s)return null;if(this._config.unique&&this._chips.includes(s))return null;if(null!==this._config.maxChips&&this._chips.length>=this._config.maxChips)return null;if(P.trigger(this._element,this.constructor.eventName("add"),{value:s,relatedTarget:null!=(t=this._input)?t:null}).defaultPrevented)return null;const n=i?e:this._createChip(s);return this._appendChip(n),this._setupChip(n),this._chips.push(s),P.trigger(this._element,this.constructor.eventName(Ze),{values:this.getValues()}),n}remove(e){var t;if(!this._canModify())return!1;let i,s;if("string"==typeof e?(s=e,i=this._findChipByValue(s)):(i=e,s=this._getChipValue(i)),!i||!s)return!1;if(P.trigger(this._element,this.constructor.eventName("remove"),{value:s,chip:i,relatedTarget:null!=(t=this._input)?t:null}).defaultPrevented)return!1;const n=Je.getInstance(i);return n?n.remove():(i.remove(),this._handleChipRemoval(i,s)),!i.isConnected}removeSelected(){for(const e of this.getSelected())this.remove(e)}clear(){for(const e of this._getChipElements())this.remove(e)}selectChip(e){var t;this._getChipElements().includes(e)&&(null==(t=Je.getInstance(e))||t.select())}selectAll(){if(this._config.selectable)for(const t of this._getChipElements()){var e;null==(e=Je.getInstance(t))||e.select()}}deselectAll(){for(const t of this.getSelected()){var e;null==(e=Je.getInstance(t))||e.deselect()}}clearSelection(){this.deselectAll(),P.trigger(this._element,this.constructor.eventName(et),{selected:this.getSelectedValues()})}getSelected(){return q.find(it,this._element)}getValues(){return[...this._chips]}getSelectedValues(){return this.getSelected().map(e=>this._getChipValue(e))}dispose(){P.off(this._element,Je.EVENT_KEY),super.dispose()}_configAfterMerge(e){return e.filter&&(e.selectable=!0),e}_canModify(){return!this._disabled}_appendChip(e){this._element.append(e)}_getChipElements(){return q.find(tt,this._element)}_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=q.findOne(".chip-remove",i);return s&&s.remove(),(null==(t=i.textContent)?void 0:t.trim())||""}_getFocusableChips(){return q.find(".chip:not(.disabled)",this._element)}_initChips(){for(const e of this._getChipElements()){const t=this._getChipValue(e);t&&(this._chips.push(t),this._applyChipClassName(e,t)),this._setupChip(e)}}_setupChip(e){Je.getOrCreateInstance(e,this._getChipConfig(e))}_getChipConfig(e){return{ariaRemoveLabel:this._config.ariaRemoveLabel,disabled:this._disabled,filter:this._config.filter,removable:this._config.removable,removeIcon:this._config.removeIcon,selectable:this._config.selectable,selectedIcon:this._config.selectedIcon,...H.getDataAttributes(e)}}_createChip(e){const t=document.createElement("span");return t.className="chip",t.dataset.bsChipValue=e,t.append(document.createTextNode(e)),this._applyChipClassName(t,e),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:""}_addEventListeners(){P.on(this._element,this.constructor.eventName("keydown"),tt,e=>this._handleKeydown(e)),P.on(this._element,"selected.bs.chip",tt,e=>this._handleSelectionChange(e)),P.on(this._element,"deselected.bs.chip",tt,e=>this._handleSelectionChange(e)),P.on(this._element,"remove.bs.chip",tt,e=>this._handleChipRemove(e)),P.on(this._element,"removed.bs.chip",tt,e=>this._handleChipRemoved(e))}_handleKeydown(e){const t=e.target.closest(tt);if(t&&!t.classList.contains(st))switch(e.key){case"ArrowLeft":e.preventDefault(),this._focusSibling(t,_());break;case"ArrowRight":e.preventDefault(),this._focusSibling(t,!_());break;case"Home":e.preventDefault(),this._navigateToEdge(0);break;case"End":e.preventDefault(),this._navigateToEdge(-1)}}_focusSibling(e,t){const i=this._getFocusableChips();if(0===i.length)return;const s=y(i,e,t,!1);s&&s!==e&&s.focus()}_getRemovalNeighbor(e){const t=this._getFocusableChips();if(0===t.length)return null;const i=y(t,e,!0,!1);if(i&&i!==e)return i;const s=y(t,e,!1,!1);return s&&s!==e?s:null}_navigateToEdge(e){var t;const i=this._getFocusableChips();null==(t=i[e<0?i.length+e:e])||t.focus()}_handleSelectionChange(e){const t=e.target.closest(tt);"single"===this._config.selectionMode&&null!=t&&t.matches(it)&&this._enforceSingleSelection(t),P.trigger(this._element,this.constructor.eventName(et),{selected:this.getSelectedValues()})}_enforceSingleSelection(e){for(const i of this.getSelected()){var t;i!==e&&(null==(t=Je.getInstance(i))||t.deselect())}}_handleChipRemove(e){const t=e.target.closest(tt);this._pendingFocus=t?this._getRemovalNeighbor(t):null}_handleChipRemoved(e){var t;const i=e.target.closest(tt);null==(t=this._pendingFocus)||t.focus(),this._pendingFocus=null,this._handleChipRemoval(i,this._getChipValue(i))}_handleChipRemoval(e,t){const i=this._chips.indexOf(t);-1!==i&&this._chips.splice(i,1),P.trigger(this._element,this.constructor.eventName(Ze),{values:this.getValues()}),P.trigger(this._element,this.constructor.eventName(et),{selected:this.getSelectedValues()})}static chipSetInterface(e,t){const i=rt.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=rt.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)}})}}P.on(document,"DOMContentLoaded.bs.chip-set.data-api",()=>{for(const e of q.find("[data-bs-chip-set]"))rt.chipSetInterface(e)}),m(rt);const at="chip-input",lt=".bs.chip-input",ct=`input${lt}`,ht={...rt.Default,createOnBlur:!0,id:null,name:null,placeholder:"",readonly:!1,removable:!0,separator:",",unique:!0},dt={...rt.DefaultType,createOnBlur:"boolean",id:"(string|null)",name:"(string|null)",placeholder:"string",readonly:"boolean",separator:"(string|null)"};class ut extends rt{constructor(e,t){var i;super(e,t),this._uniqueId=null!=(i=this._config.id)?i:o(at),this._hiddenInput=null,this._input=q.findOne("input",this._element),this._input?this._setInputSize():this._createInput(),this._applyInteractionState(),this._createHiddenInput(),this._addInputEventListeners()}static get Default(){return ht}static get DefaultType(){return dt}static get NAME(){return at}add(e){const t=super.add(e);return t&&this._syncHiddenInput(),t}focus(){var e;null==(e=this._input)||e.focus()}_canModify(){return!this._disabled&&!this._config.readonly}_appendChip(e){this._element.insertBefore(e,this._input)}_getChipConfig(e){return{ariaRemoveLabel:`Remove ${this._getChipValue(e)}`,disabled:this._disabled,removable:this._config.removable&&!this._config.readonly&&!this._disabled,removeIcon:this._config.removeIcon,selectable:this._config.selectable}}_setupChip(e){super._setupChip(e);const t=q.findOne(".chip-remove",e);t&&(t.disabled=this._disabled||this._config.readonly)}_handleChipRemoved(e){var t;super._handleChipRemoved(e),this._syncHiddenInput(),null==(t=this._input)||t.focus()}_syncHiddenInput(){this._hiddenInput&&(this._hiddenInput.value=this.getValues().join(","))}_addInputEventListeners(){P.on(this._element,"keydown",e=>{if(e.target!==this._input){if(e.key===(_()?"ArrowLeft":"ArrowRight")){const t=this._getFocusableChips();if(t.length>0&&t[t.length-1].contains(e.target))return e.preventDefault(),void this._input.focus()}1===e.key.length&&this._input.focus()}}),P.on(this._input,"keydown",e=>this._handleInputKeydown(e)),P.on(this._input,"input",e=>this._handleInput(e)),P.on(this._input,"paste",e=>this._handlePaste(e)),P.on(this._input,"focus",()=>this.clearSelection()),this._config.createOnBlur&&P.on(this._input,"blur",e=>{var t;null!=(t=e.relatedTarget)&&t.closest(".chip")||this._createChipFromInput()}),P.on(this._element,"click",e=>{var t;e.target===this._element&&(null==(t=this._input)||t.focus())})}_createInput(){const e=document.createElement("input"),t=q.findOne(".chip-input-label",this._element),i=null==t?void 0:t.getAttribute("for"),s=i||o(`${at}-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(",")}_createChipFromInput(){if(!this._canModify())return;const e=this._input.value.trim();e&&(this.add(e),this._input.value="",this._setInputSize())}_applyInteractionState(){const{readonly:e}=this._config;this._element.classList.toggle("disabled",this._disabled),this._input.disabled=this._disabled,this._input.readOnly=!this._disabled&&e,this._element.setAttribute("aria-disabled",this._disabled?"true":"false"),this._element.setAttribute("aria-readonly",e?"true":"false")}_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[t.length-1].focus()}break;case"ArrowLeft":case"ArrowRight":if(t===(_()?"ArrowRight":"ArrowLeft")&&0===this._input.selectionStart&&0===this._input.selectionEnd){e.preventDefault();const t=this._getChipElements();t.length>0&&t[t.length-1].focus()}break;case"Escape":this._input.value="",this._input.blur()}}_handleInput(e){if(!this._canModify())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[e.length-1]}this._setInputSize(),P.trigger(this._element,ct,{value:this._input.value,relatedTarget:this._input})}_handlePaste(e){if(!this._canModify())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)}}P.on(document,`DOMContentLoaded${lt}.data-api`,()=>{for(const e of q.find("[data-bs-chip-input]"))ut.getOrCreateInstance(e)});const ft=".bs.collapse",pt=`show${ft}`,gt=`shown${ft}`,_t=`hide${ft}`,mt=`hidden${ft}`,bt=`click${ft}.data-api`,vt="show",yt="collapse",wt="collapsing",Ct=`:scope .${yt} .${yt}`,At='[data-bs-toggle="collapse"]',Et={parent:null,toggle:!0},kt={parent:"(null|element)",toggle:"boolean"};class xt extends R{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=q.find(At);for(const e of i){const t=q.getSelectorFromElement(e),i=q.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 Et}static get DefaultType(){return kt}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=>xt.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(P.trigger(this._element,pt).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(yt),this._element.classList.add(wt),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(wt),this._element.classList.add(yt,vt),this._element.style[t]="",P.trigger(this._element,gt)},this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(P.trigger(this._element,_t).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,f(this._element),this._element.classList.add(wt),this._element.classList.remove(yt,vt);for(const e of this._triggerArray){const t=q.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(wt),this._element.classList.add(yt),P.trigger(this._element,mt)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(vt)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=l(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(At);for(const t of e){const e=q.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=q.find(Ct,this._config.parent);return q.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=xt.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}}P.on(document,bt,At,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of q.getMultipleElementsFromSelector(this))xt.getOrCreateInstance(e,{toggle:!1}).toggle()}),m(xt);var Tt="top",Lt="bottom",Ot="right",St="left",It="auto",Dt=[Tt,Lt,Ot,St],$t="start",Nt="end",Mt="clippingParents",Pt="viewport",jt="popper",Ft="reference",Bt=Dt.reduce(function(e,t){return e.concat([t+"-"+$t,t+"-"+Nt])},[]),Ht=[].concat(Dt,[It]).reduce(function(e,t){return e.concat([t,t+"-"+$t,t+"-"+Nt])},[]),zt="beforeRead",Rt="read",Kt="afterRead",qt="beforeMain",Vt="main",Wt="afterMain",Ut="beforeWrite",Qt="write",Yt="afterWrite",Xt=[zt,Rt,Kt,qt,Vt,Wt,Ut,Qt,Yt];function Gt(e){return e?(e.nodeName||"").toLowerCase():null}function Jt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zt(e){return e instanceof Jt(e).Element||e instanceof Element}function ei(e){return e instanceof Jt(e).HTMLElement||e instanceof HTMLElement}function ti(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Jt(e).ShadowRoot||e instanceof ShadowRoot)}const ii={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},n=t.elements[e];ei(n)&&Gt(n)&&(Object.assign(n.style,i),Object.keys(s).forEach(function(e){var t=s[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var s=t.elements[e],n=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});ei(s)&&Gt(s)&&(Object.assign(s.style,o),Object.keys(n).forEach(function(e){s.removeAttribute(e)}))})}},requires:["computeStyles"]};function si(e){return e.split("-")[0]}var ni=Math.max,oi=Math.min,ri=Math.round;function ai(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function li(){return!/^((?!chrome|android).)*safari/i.test(ai())}function ci(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var s=e.getBoundingClientRect(),n=1,o=1;t&&ei(e)&&(n=e.offsetWidth>0&&ri(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ri(s.height)/e.offsetHeight||1);var r=(Zt(e)?Jt(e):window).visualViewport,a=!li()&&i,l=(s.left+(a&&r?r.offsetLeft:0))/n,c=(s.top+(a&&r?r.offsetTop:0))/o,h=s.width/n,d=s.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function hi(e){var t=ci(e),i=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:s}}function di(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&ti(i)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function ui(e){return Jt(e).getComputedStyle(e)}function fi(e){return["table","td","th"].indexOf(Gt(e))>=0}function pi(e){return((Zt(e)?e.ownerDocument:e.document)||window.document).documentElement}function gi(e){return"html"===Gt(e)?e:e.assignedSlot||e.parentNode||(ti(e)?e.host:null)||pi(e)}function _i(e){return ei(e)&&"fixed"!==ui(e).position?e.offsetParent:null}function mi(e){for(var t=Jt(e),i=_i(e);i&&fi(i)&&"static"===ui(i).position;)i=_i(i);return i&&("html"===Gt(i)||"body"===Gt(i)&&"static"===ui(i).position)?t:i||function(e){var t=/firefox/i.test(ai());if(/Trident/i.test(ai())&&ei(e)&&"fixed"===ui(e).position)return null;var i=gi(e);for(ti(i)&&(i=i.host);ei(i)&&["html","body"].indexOf(Gt(i))<0;){var s=ui(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(e)||t}function bi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vi(e,t,i){return ni(e,oi(t,i))}function yi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function wi(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}const Ci={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,s=e.name,n=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=si(i.placement),l=bi(a),c=[St,Ot].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(e,t){return yi("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:wi(e,Dt))}(n.padding,i),d=hi(o),u="y"===l?Tt:St,f="y"===l?Lt:Ot,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],_=mi(o),m=_?"y"===l?_.clientHeight||0:_.clientWidth||0:0,b=p/2-g/2,v=h[u],y=m-d[c]-h[f],w=m/2-d[c]/2+b,C=vi(v,w,y),A=l;i.modifiersData[s]=((t={})[A]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,i=e.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&di(t.elements.popper,s)&&(t.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ai(e){return e.split("-")[1]}var Ei={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ki(e){var t,i=e.popper,s=e.popperRect,n=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,d=e.isFixed,u=r.x,f=void 0===u?0:u,p=r.y,g=void 0===p?0:p,_="function"==typeof h?h({x:f,y:g}):{x:f,y:g};f=_.x,g=_.y;var m=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=St,y=Tt,w=window;if(c){var C=mi(i),A="clientHeight",E="clientWidth";C===Jt(i)&&"static"!==ui(C=pi(i)).position&&"absolute"===a&&(A="scrollHeight",E="scrollWidth"),(n===Tt||(n===St||n===Ot)&&o===Nt)&&(y=Lt,g-=(d&&C===w&&w.visualViewport?w.visualViewport.height:C[A])-s.height,g*=l?1:-1),n!==St&&(n!==Tt&&n!==Lt||o!==Nt)||(v=Ot,f-=(d&&C===w&&w.visualViewport?w.visualViewport.width:C[E])-s.width,f*=l?1:-1)}var k,x=Object.assign({position:a},c&&Ei),T=!0===h?function(e,t){var i=e.x,s=e.y,n=t.devicePixelRatio||1;return{x:ri(i*n)/n||0,y:ri(s*n)/n||0}}({x:f,y:g},Jt(i)):{x:f,y:g};return f=T.x,g=T.y,l?Object.assign({},x,((k={})[y]=b?"0":"",k[v]=m?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",k)):Object.assign({},x,((t={})[y]=b?g+"px":"",t[v]=m?f+"px":"",t.transform="",t))}const xi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,s=i.gpuAcceleration,n=void 0===s||s,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:si(t.placement),variation:Ai(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ki(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ki(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Ti={passive:!0};const Li={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,s=e.options,n=s.scroll,o=void 0===n||n,r=s.resize,a=void 0===r||r,l=Jt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",i.update,Ti)}),a&&l.addEventListener("resize",i.update,Ti),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",i.update,Ti)}),a&&l.removeEventListener("resize",i.update,Ti)}},data:{}};var Oi={left:"right",right:"left",bottom:"top",top:"bottom"};function Si(e){return e.replace(/left|right|bottom|top/g,function(e){return Oi[e]})}var Ii={start:"end",end:"start"};function Di(e){return e.replace(/start|end/g,function(e){return Ii[e]})}function $i(e){var t=Jt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ni(e){return ci(pi(e)).left+$i(e).scrollLeft}function Mi(e){var t=ui(e),i=t.overflow,s=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function Pi(e){return["html","body","#document"].indexOf(Gt(e))>=0?e.ownerDocument.body:ei(e)&&Mi(e)?e:Pi(gi(e))}function ji(e,t){var i;void 0===t&&(t=[]);var s=Pi(e),n=s===(null==(i=e.ownerDocument)?void 0:i.body),o=Jt(s),r=n?[o].concat(o.visualViewport||[],Mi(s)?s:[]):s,a=t.concat(r);return n?a:a.concat(j