marketplacepos 2.4.1 → 2.4.4
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/Marketplace/162.4ce4550bb805d5d4.js +1 -0
- package/Marketplace/171.9cd91ffa365b9491.js +1 -0
- package/Marketplace/174.e214431f31fd131d.js +1 -0
- package/Marketplace/25.ad4f583264f99556.js +1 -0
- package/Marketplace/334.fca544ca6d7e11d3.js +1 -0
- package/Marketplace/360.479b6dc19c3aedfd.js +1 -0
- package/Marketplace/387.ef404fc903278a1c.js +1 -0
- package/Marketplace/402.f385d64daee6049e.js +1 -0
- package/Marketplace/{458.c769122ade2c10ed.js → 458.393a149a626f18ad.js} +1 -1
- package/Marketplace/466.2e9f76621dd59e88.js +1 -0
- package/Marketplace/516.71620076f01c2cd7.js +1 -0
- package/Marketplace/61.481724edf2d23475.js +1 -0
- package/Marketplace/616.fb179a9605c3e98c.js +1 -0
- package/Marketplace/796.d34bd45b5a924fca.js +1 -0
- package/Marketplace/832.40bafce037098f88.js +1 -0
- package/Marketplace/874.d45d1026769d75d1.js +1 -0
- package/Marketplace/assets/version-adjustment-v5.scss +2 -2
- package/Marketplace/common.1acc3df88ef73d5d.js +1 -0
- package/Marketplace/index.html +3 -3
- package/Marketplace/main.2fa426747cc66a26.js +1 -0
- package/Marketplace/runtime.016444f60baacdd3.js +1 -0
- package/Marketplace/scripts.09af772bfa77d50d.js +1 -0
- package/Marketplace/{styles.296cdf56f9059ddb.css → styles.ab4c60b3cc2298c3.css} +2 -21
- package/package.json +1 -1
- package/Marketplace/102.635de205af00df15.js +0 -1
- package/Marketplace/285.1f547ef81e91fc15.js +0 -1
- package/Marketplace/387.04d02414af56d750.js +0 -1
- package/Marketplace/402.2999196dce334514.js +0 -1
- package/Marketplace/455.fc7663306b753727.js +0 -1
- package/Marketplace/472.54413a4f69aa673d.js +0 -1
- package/Marketplace/616.507588c0a5d7b9e1.js +0 -1
- package/Marketplace/667.81e6162196d486da.js +0 -1
- package/Marketplace/767.79e23997e93fb6c3.js +0 -1
- package/Marketplace/796.3be8ad424aad7864.js +0 -1
- package/Marketplace/801.8eb1454f763d4534.js +0 -1
- package/Marketplace/882.b34c3cc6e65d7a17.js +0 -1
- package/Marketplace/970.d0e3ee1e2aec0db5.js +0 -1
- package/Marketplace/common.f2cd628914f2fae7.js +0 -1
- package/Marketplace/main.f30bf3b0f501021c.js +0 -1
- package/Marketplace/runtime.d01f3ddbb2b8f1f2.js +0 -1
- package/Marketplace/scripts.6c7ffbfab0ec93ff.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e,v={},_={};function r(e){var n=_[e];if(void 0!==n)return n.exports;var t=_[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,d)=>{if(!t){var a=1/0;for(o=0;o<e.length;o++){for(var[t,f,d]=e[o],l=!0,i=0;i<t.length;i++)(!1&d||a>=d)&&Object.keys(r.O).every(u=>r.O[u](t[i]))?t.splice(i--,1):(l=!1,d<a&&(a=d));if(l){e.splice(o--,1);var b=f();void 0!==b&&(n=b)}}return n}d=d||0;for(var o=e.length;o>0&&e[o-1][2]>d;o--)e[o]=e[o-1];e[o]=[t,f,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var d=Object.create(null);r.r(d);var o={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>o[l]=()=>t[l]);return o.default=()=>t,r.d(d,o),d}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>(592===e?"common":e)+"."+{6:"fc79ecc0c0a33462",25:"ad4f583264f99556",61:"481724edf2d23475",162:"4ce4550bb805d5d4",171:"9cd91ffa365b9491",174:"e214431f31fd131d",334:"fca544ca6d7e11d3",360:"479b6dc19c3aedfd",387:"ef404fc903278a1c",402:"f385d64daee6049e",458:"393a149a626f18ad",466:"2e9f76621dd59e88",512:"84e77b4b4a7a1db7",516:"71620076f01c2cd7",585:"9e916b668a91cc94",592:"1acc3df88ef73d5d",616:"fb179a9605c3e98c",717:"5259a4803cce95ab",739:"82b92600f9519019",796:"d34bd45b5a924fca",832:"40bafce037098f88",874:"d45d1026769d75d1"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="pos-marketplace:";r.l=(t,f,d,o)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==d)for(var i=document.getElementsByTagName("script"),b=0;b<i.length;b++){var c=i[b];if(c.getAttribute("src")==t||c.getAttribute("data-webpack")==n+d){a=c;break}}a||(l=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",n+d),a.src=r.tu(t)),e[t]=[f];var s=(g,u)=>{a.onerror=a.onload=null,clearTimeout(p);var m=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),m&&m.forEach(h=>h(u)),g)return g(u)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.4/Marketplace/",(()=>{var e={666:0};r.f.j=(f,d)=>{var o=r.o(e,f)?e[f]:void 0;if(0!==o)if(o)d.push(o[2]);else if(666!=f){var a=new Promise((c,s)=>o=e[f]=[c,s]);d.push(o[2]=a);var l=r.p+r.u(f),i=new Error;r.l(l,c=>{if(r.o(e,f)&&(0!==(o=e[f])&&(e[f]=void 0),o)){var s=c&&("load"===c.type?"missing":c.type),p=c&&c.target&&c.target.src;i.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",i.name="ChunkLoadError",i.type=s,i.request=p,o[1](i)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,d)=>{var i,b,[o,a,l]=d,c=0;if(o.some(p=>0!==e[p])){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(l)var s=l(r)}for(f&&f(d);c<o.length;c++)r.o(e,b=o[c])&&e[b]&&e[b][0](),e[b]=0;return r.O(s)},t=self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})()})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(ge,me){"object"==typeof exports&&typeof module<"u"?module.exports=me():"function"==typeof define&&define.amd?define(me):(ge=typeof globalThis<"u"?globalThis:ge||self).bootstrap=me()}(this,function(){"use strict";const ge="transitionend",me=i=>{let e=i.getAttribute("data-bs-target");if(!e||"#"===e){let t=i.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&"#"!==t?t.trim():null}return e},Xt=i=>{const e=me(i);return e&&document.querySelector(e)?e:null},G=i=>{const e=me(i);return e?document.querySelector(e):null},Yt=i=>{i.dispatchEvent(new Event(ge))},Z=i=>!(!i||"object"!=typeof i)&&(void 0!==i.jquery&&(i=i[0]),void 0!==i.nodeType),se=i=>Z(i)?i.jquery?i[0]:i:"string"==typeof i&&i.length>0?document.querySelector(i):null,_e=i=>{if(!Z(i)||0===i.getClientRects().length)return!1;const e="visible"===getComputedStyle(i).getPropertyValue("visibility"),t=i.closest("details:not([open])");if(!t)return e;if(t!==i){const n=i.closest("summary");if(n&&n.parentNode!==t||null===n)return!1}return e},oe=i=>!i||i.nodeType!==Node.ELEMENT_NODE||!!i.classList.contains("disabled")||(void 0!==i.disabled?i.disabled:i.hasAttribute("disabled")&&"false"!==i.getAttribute("disabled")),Qt=i=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof i.getRootNode){const e=i.getRootNode();return e instanceof ShadowRoot?e:null}return i instanceof ShadowRoot?i:i.parentNode?Qt(i.parentNode):null},Re=()=>{},Ut=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,pt=[],F=()=>"rtl"===document.documentElement.dir,z=i=>{var e;e=()=>{const t=Ut();if(t){const n=i.NAME,s=t.fn[n];t.fn[n]=i.jQueryInterface,t.fn[n].Constructor=i,t.fn[n].noConflict=()=>(t.fn[n]=s,i.jQueryInterface)}},"loading"===document.readyState?(pt.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of pt)t()}),pt.push(e)):e()},J=i=>{"function"==typeof i&&i()},Gt=(i,e,t=!0)=>{if(!t)return void J(i);const n=(r=>{if(!r)return 0;let{transitionDuration:l,transitionDelay:c}=window.getComputedStyle(r);const d=Number.parseFloat(l),u=Number.parseFloat(c);return d||u?(l=l.split(",")[0],c=c.split(",")[0],1e3*(Number.parseFloat(l)+Number.parseFloat(c))):0})(e)+5;let s=!1;const o=({target:r})=>{r===e&&(s=!0,e.removeEventListener(ge,o),J(i))};e.addEventListener(ge,o),setTimeout(()=>{s||Yt(e)},n)},gt=(i,e,t,n)=>{const s=i.length;let o=i.indexOf(e);return-1===o?!t&&n?i[s-1]:i[0]:(o+=t?1:-1,n&&(o=(o+s)%s),i[Math.max(0,Math.min(o,s-1))])},Pn=/[^.]*(?=\..*)\.|.*/,jn=/\..*/,Mn=/::\d+$/,mt={};let Zt=1;const Jt={mouseenter:"mouseover",mouseleave:"mouseout"},Hn=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 ei(i,e){return e&&`${e}::${Zt++}`||i.uidEvent||Zt++}function ti(i){const e=ei(i);return i.uidEvent=e,mt[e]=mt[e]||{},mt[e]}function ii(i,e,t=null){return Object.values(i).find(n=>n.callable===e&&n.delegationSelector===t)}function ni(i,e,t){const n="string"==typeof e,s=n?t:e||t;let o=oi(i);return Hn.has(o)||(o=i),[n,s,o]}function si(i,e,t,n,s){if("string"!=typeof e||!i)return;let[o,r,l]=ni(e,t,n);var g;e in Jt&&(g=r,r=function(p){if(!p.relatedTarget||p.relatedTarget!==p.delegateTarget&&!p.delegateTarget.contains(p.relatedTarget))return g.call(this,p)});const c=ti(i),d=c[l]||(c[l]={}),u=ii(d,r,o?t:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=ei(r,e.replace(Pn,"")),y=o?function(f,g,p){return function m(x){const C=f.querySelectorAll(g);for(let{target:_}=x;_&&_!==this;_=_.parentNode)for(const E of C)if(E===_)return bt(x,{delegateTarget:_}),m.oneOff&&a.off(f,x.type,g,p),p.apply(_,[x])}}(i,t,r):function(f,g){return function p(m){return bt(m,{delegateTarget:f}),p.oneOff&&a.off(f,m.type,g),g.apply(f,[m])}}(i,r);y.delegationSelector=o?t:null,y.callable=r,y.oneOff=s,y.uidEvent=h,d[h]=y,i.addEventListener(l,y,o)}function _t(i,e,t,n,s){const o=ii(e[t],n,s);o&&(i.removeEventListener(t,o,Boolean(s)),delete e[t][o.uidEvent])}function $n(i,e,t,n){const s=e[t]||{};for(const o of Object.keys(s))if(o.includes(n)){const r=s[o];_t(i,e,t,r.callable,r.delegationSelector)}}function oi(i){return i=i.replace(jn,""),Jt[i]||i}const a={on(i,e,t,n){si(i,e,t,n,!1)},one(i,e,t,n){si(i,e,t,n,!0)},off(i,e,t,n){if("string"!=typeof e||!i)return;const[s,o,r]=ni(e,t,n),l=r!==e,c=ti(i),d=c[r]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const h of Object.keys(c))$n(i,c,h,e.slice(1));for(const h of Object.keys(d)){const y=h.replace(Mn,"");if(!l||e.includes(y)){const f=d[h];_t(i,c,r,f.callable,f.delegationSelector)}}}else{if(!Object.keys(d).length)return;_t(i,c,r,o,s?t:null)}},trigger(i,e,t){if("string"!=typeof e||!i)return null;const n=Ut();let s=null,o=!0,r=!0,l=!1;e!==oi(e)&&n&&(s=n.Event(e,t),n(i).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),l=s.isDefaultPrevented());let c=new Event(e,{bubbles:o,cancelable:!0});return c=bt(c,t),l&&c.preventDefault(),r&&i.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function bt(i,e){for(const[t,n]of Object.entries(e||{}))try{i[t]=n}catch{Object.defineProperty(i,t,{configurable:!0,get:()=>n})}return i}const re=new Map,vt={set(i,e,t){re.has(i)||re.set(i,new Map);const n=re.get(i);n.has(e)||0===n.size?n.set(e,t):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(i,e)=>re.has(i)&&re.get(i).get(e)||null,remove(i,e){if(!re.has(i))return;const t=re.get(i);t.delete(e),0===t.size&&re.delete(i)}};function ri(i){if("true"===i)return!0;if("false"===i)return!1;if(i===Number(i).toString())return Number(i);if(""===i||"null"===i)return null;if("string"!=typeof i)return i;try{return JSON.parse(decodeURIComponent(i))}catch{return i}}function yt(i){return i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const ee={setDataAttribute(i,e,t){i.setAttribute(`data-bs-${yt(e)}`,t)},removeDataAttribute(i,e){i.removeAttribute(`data-bs-${yt(e)}`)},getDataAttributes(i){if(!i)return{};const e={},t=Object.keys(i.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of t){let s=n.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),e[s]=ri(i.dataset[n])}return e},getDataAttribute:(i,e)=>ri(i.getAttribute(`data-bs-${yt(e)}`))};class Se{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 n=Z(t)?ee.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Z(t)?ee.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const s of Object.keys(t)){const o=t[s],r=e[s],l=Z(r)?"element":null==(n=r)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(l))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${l}" but expected type "${o}".`)}var n}}class q extends Se{constructor(e,t){super(),(e=se(e))&&(this._element=e,this._config=this._getConfig(t),vt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){vt.remove(this._element,this.constructor.DATA_KEY),a.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){Gt(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return vt.get(se(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.2.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 qe=(i,e="hide")=>{const n=i.NAME;a.on(document,`click.dismiss${i.EVENT_KEY}`,`[data-bs-dismiss="${n}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),oe(this))return;const o=G(this)||this.closest(`.${n}`);i.getOrCreateInstance(o)[e]()})};class Ie extends q{static get NAME(){return"alert"}close(){if(a.trigger(this._element,"close.bs.alert").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(),a.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Ie.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)}})}}qe(Ie,"close"),z(Ie);const ai='[data-bs-toggle="button"]';class Ne extends q{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=Ne.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}a.on(document,"click.bs.button.data-api",ai,i=>{i.preventDefault();const e=i.target.closest(ai);Ne.getOrCreateInstance(e).toggle()}),z(Ne);const v={find:(i,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,i)),findOne:(i,e=document.documentElement)=>Element.prototype.querySelector.call(e,i),children:(i,e)=>[].concat(...i.children).filter(t=>t.matches(e)),parents(i,e){const t=[];let n=i.parentNode.closest(e);for(;n;)t.push(n),n=n.parentNode.closest(e);return t},prev(i,e){let t=i.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(i,e){let t=i.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(i){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,i).filter(t=>!oe(t)&&_e(t))}},Wn={endCallback:null,leftCallback:null,rightCallback:null},Bn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ve extends Se{constructor(e,t){super(),this._element=e,e&&Ve.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Wn}static get DefaultType(){return Bn}static get NAME(){return"swipe"}dispose(){a.off(this._element,".bs.swipe")}_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(),J(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&&J(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(a.on(this._element,"pointerdown.bs.swipe",e=>this._start(e)),a.on(this._element,"pointerup.bs.swipe",e=>this._end(e)),this._element.classList.add("pointer-event")):(a.on(this._element,"touchstart.bs.swipe",e=>this._start(e)),a.on(this._element,"touchmove.bs.swipe",e=>this._move(e)),a.on(this._element,"touchend.bs.swipe",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 Pe="next",be="prev",ve="left",Ke="right",wt="slid.bs.carousel",li="carousel",Xe="active",Fn={ArrowLeft:Ke,ArrowRight:ve},zn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Rn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ye extends q{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=v.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===li&&this.cycle()}static get Default(){return zn}static get DefaultType(){return Rn}static get NAME(){return"carousel"}next(){this._slide(Pe)}nextWhenVisible(){!document.hidden&&_e(this._element)&&this.next()}prev(){this._slide(be)}pause(){this._isSliding&&Yt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?a.one(this._element,wt,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void a.one(this._element,wt,()=>this.to(e));const n=this._getItemIndex(this._getActive());n!==e&&this._slide(e>n?Pe:be,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&a.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),"hover"===this._config.pause&&(a.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),a.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&Ve.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of v.find(".carousel-item img",this._element))a.on(t,"dragstart.bs.carousel",n=>n.preventDefault());this._swipeHelper=new Ve(this._element,{leftCallback:()=>this._slide(this._directionToOrder(ve)),rightCallback:()=>this._slide(this._directionToOrder(Ke)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Fn[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=v.findOne(".active",this._indicatorsElement);t.classList.remove(Xe),t.removeAttribute("aria-current");const n=v.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(Xe),n.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 n=this._getActive(),s=e===Pe,o=t||gt(this._getItems(),n,s,this._config.wrap);if(o===n)return;const r=this._getItemIndex(o),l=h=>a.trigger(this._element,h,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:r});if(l("slide.bs.carousel").defaultPrevented||!n||!o)return;const c=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;const d=s?"carousel-item-start":"carousel-item-end",u=s?"carousel-item-next":"carousel-item-prev";o.classList.add(u),n.classList.add(d),o.classList.add(d),this._queueCallback(()=>{o.classList.remove(d,u),o.classList.add(Xe),n.classList.remove(Xe,u,d),this._isSliding=!1,l(wt)},n,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return v.findOne(".active.carousel-item",this._element)}_getItems(){return v.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return F()?e===ve?be:Pe:e===ve?Pe:be}_orderToDirection(e){return F()?e===be?ve:Ke:e===be?Ke:ve}static jQueryInterface(e){return this.each(function(){const t=ye.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)})}}a.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(i){const e=G(this);if(!e||!e.classList.contains(li))return;i.preventDefault();const t=ye.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(t.to(n),void t._maybeEnableCycle()):"next"===ee.getDataAttribute(this,"slide")?(t.next(),void t._maybeEnableCycle()):(t.prev(),void t._maybeEnableCycle())}),a.on(window,"load.bs.carousel.data-api",()=>{const i=v.find('[data-bs-ride="carousel"]');for(const e of i)ye.getOrCreateInstance(e)}),z(ye);const At="show",Ye="collapse",Qe="collapsing",Et='[data-bs-toggle="collapse"]',qn={parent:null,toggle:!0},Vn={parent:"(null|element)",toggle:"boolean"};class we extends q{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=v.find(Et);for(const s of n){const o=Xt(s),r=v.find(o).filter(l=>l===this._element);null!==o&&r.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return qn}static get DefaultType(){return Vn}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(s=>s!==this._element).map(s=>we.getOrCreateInstance(s,{toggle:!1}))),e.length&&e[0]._isTransitioning||a.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const s of e)s.hide();const t=this._getDimension();this._element.classList.remove(Ye),this._element.classList.add(Qe),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Qe),this._element.classList.add(Ye,At),this._element.style[t]="",a.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown()||a.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,this._element.classList.add(Qe),this._element.classList.remove(Ye,At);for(const t of this._triggerArray){const n=G(t);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Qe),this._element.classList.add(Ye),a.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}_isShown(e=this._element){return e.classList.contains(At)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=se(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Et);for(const t of e){const n=G(t);n&&this._addAriaAndCollapsedClass([t],this._isShown(n))}}_getFirstLevelChildren(e){const t=v.find(":scope .collapse .collapse",this._config.parent);return v.find(e,this._config.parent).filter(n=>!t.includes(n))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=we.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}a.on(document,"click.bs.collapse.data-api",Et,function(i){("A"===i.target.tagName||i.delegateTarget&&"A"===i.delegateTarget.tagName)&&i.preventDefault();const e=Xt(this),t=v.find(e);for(const n of t)we.getOrCreateInstance(n,{toggle:!1}).toggle()}),z(we);var N="top",W="bottom",B="right",P="left",Ue="auto",Ae=[N,W,B,P],ce="start",Ee="end",ci="clippingParents",Tt="viewport",Te="popper",hi="reference",Ct=Ae.reduce(function(i,e){return i.concat([e+"-"+ce,e+"-"+Ee])},[]),Ot=[].concat(Ae,[Ue]).reduce(function(i,e){return i.concat([e,e+"-"+ce,e+"-"+Ee])},[]),di="beforeRead",fi="afterRead",pi="beforeMain",mi="afterMain",_i="beforeWrite",vi="afterWrite",yi=[di,"read",fi,pi,"main",mi,_i,"write",vi];function Q(i){return i?(i.nodeName||"").toLowerCase():null}function V(i){if(null==i)return window;if("[object Window]"!==i.toString()){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function Ce(i){return i instanceof V(i).Element||i instanceof Element}function R(i){return i instanceof V(i).HTMLElement||i instanceof HTMLElement}function xt(i){return typeof ShadowRoot<"u"&&(i instanceof V(i).ShadowRoot||i instanceof ShadowRoot)}const kt={name:"applyStyles",enabled:!0,phase:"write",fn:function(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},s=e.attributes[t]||{},o=e.elements[t];R(o)&&Q(o)&&(Object.assign(o.style,n),Object.keys(s).forEach(function(r){var l=s[r];!1===l?o.removeAttribute(r):o.setAttribute(r,!0===l?"":l)}))})},effect:function(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var s=e.elements[n],o=e.attributes[n]||{},r=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(function(l,c){return l[c]="",l},{});R(s)&&Q(s)&&(Object.assign(s.style,r),Object.keys(o).forEach(function(l){s.removeAttribute(l)}))})}},requires:["computeStyles"]};function U(i){return i.split("-")[0]}var he=Math.max,Ge=Math.min,Oe=Math.round;function xe(i,e){void 0===e&&(e=!1);var t=i.getBoundingClientRect(),n=1,s=1;if(R(i)&&e){var o=i.offsetHeight,r=i.offsetWidth;r>0&&(n=Oe(t.width)/r||1),o>0&&(s=Oe(t.height)/o||1)}return{width:t.width/n,height:t.height/s,top:t.top/s,right:t.right/n,bottom:t.bottom/s,left:t.left/n,x:t.left/n,y:t.top/s}}function Lt(i){var e=xe(i),t=i.offsetWidth,n=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:n}}function wi(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&xt(t)){var n=e;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function te(i){return V(i).getComputedStyle(i)}function Kn(i){return["table","td","th"].indexOf(Q(i))>=0}function ae(i){return((Ce(i)?i.ownerDocument:i.document)||window.document).documentElement}function Ze(i){return"html"===Q(i)?i:i.assignedSlot||i.parentNode||(xt(i)?i.host:null)||ae(i)}function Ai(i){return R(i)&&"fixed"!==te(i).position?i.offsetParent:null}function je(i){for(var e=V(i),t=Ai(i);t&&Kn(t)&&"static"===te(t).position;)t=Ai(t);return t&&("html"===Q(t)||"body"===Q(t)&&"static"===te(t).position)?e:t||function(n){var s=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&R(n)&&"fixed"===te(n).position)return null;var o=Ze(n);for(xt(o)&&(o=o.host);R(o)&&["html","body"].indexOf(Q(o))<0;){var r=te(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||s&&"filter"===r.willChange||s&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(i)||e}function Dt(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Me(i,e,t){return he(i,Ge(e,t))}function Ei(i){return Object.assign({},{top:0,right:0,bottom:0,left:0},i)}function Ti(i,e){return e.reduce(function(t,n){return t[n]=i,t},{})}const Ci={name:"arrow",enabled:!0,phase:"main",fn:function(i){var e,T,O,t=i.state,n=i.name,s=i.options,o=t.elements.arrow,r=t.modifiersData.popperOffsets,l=U(t.placement),c=Dt(l),d=[P,B].indexOf(l)>=0?"height":"width";if(o&&r){var u=(O=t,Ei("number"!=typeof(T="function"==typeof(T=s.padding)?T(Object.assign({},O.rects,{placement:O.placement})):T)?T:Ti(T,Ae))),h=Lt(o),y="y"===c?N:P,f="y"===c?W:B,g=t.rects.reference[d]+t.rects.reference[c]-r[c]-t.rects.popper[d],p=r[c]-t.rects.reference[c],m=je(o),x=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,b=x/2-h[d]/2+(g/2-p/2),w=Me(u[y],b,x-h[d]-u[f]);t.modifiersData[n]=((e={})[c]=w,e.centerOffset=w-b,e)}},effect:function(i){var e=i.state,t=i.options.element,n=void 0===t?"[data-popper-arrow]":t;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&wi(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ke(i){return i.split("-")[1]}var Xn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Oi(i){var e,t=i.popper,n=i.popperRect,s=i.placement,o=i.variation,r=i.offsets,l=i.position,c=i.gpuAcceleration,d=i.adaptive,u=i.roundOffsets,h=i.isFixed,y=r.x,f=void 0===y?0:y,g=r.y,p=void 0===g?0:g,m="function"==typeof u?u({x:f,y:p}):{x:f,y:p};f=m.x,p=m.y;var x=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),_=P,E=N,b=window;if(d){var w=je(t),A="clientHeight",T="clientWidth";w===V(t)&&"static"!==te(w=ae(t)).position&&"absolute"===l&&(A="scrollHeight",T="scrollWidth"),(s===N||(s===P||s===B)&&o===Ee)&&(E=W,p-=(h&&w===b&&b.visualViewport?b.visualViewport.height:w[A])-n.height,p*=c?1:-1),s!==P&&(s!==N&&s!==W||o!==Ee)||(_=B,f-=(h&&w===b&&b.visualViewport?b.visualViewport.width:w[T])-n.width,f*=c?1:-1)}var O,M,ne,H,D=Object.assign({position:l},d&&Xn),S=!0===u?(ne=(M={x:f,y:p}).y,H=window.devicePixelRatio||1,{x:Oe(M.x*H)/H||0,y:Oe(ne*H)/H||0}):{x:f,y:p};return f=S.x,p=S.y,Object.assign({},D,c?((O={})[E]=C?"0":"",O[_]=x?"0":"",O.transform=(b.devicePixelRatio||1)<=1?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",O):((e={})[E]=C?p+"px":"",e[_]=x?f+"px":"",e.transform="",e))}const St={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(i){var e=i.state,t=i.options,n=t.gpuAcceleration,s=void 0===n||n,o=t.adaptive,r=void 0===o||o,l=t.roundOffsets,c=void 0===l||l,d={placement:U(e.placement),variation:ke(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Oi(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Oi(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var Je={passive:!0};const It={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(i){var e=i.state,t=i.instance,n=i.options,s=n.scroll,o=void 0===s||s,r=n.resize,l=void 0===r||r,c=V(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(u){u.addEventListener("scroll",t.update,Je)}),l&&c.addEventListener("resize",t.update,Je),function(){o&&d.forEach(function(u){u.removeEventListener("scroll",t.update,Je)}),l&&c.removeEventListener("resize",t.update,Je)}},data:{}};var Yn={left:"right",right:"left",bottom:"top",top:"bottom"};function et(i){return i.replace(/left|right|bottom|top/g,function(e){return Yn[e]})}var Qn={start:"end",end:"start"};function xi(i){return i.replace(/start|end/g,function(e){return Qn[e]})}function Nt(i){var e=V(i);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Pt(i){return xe(ae(i)).left+Nt(i).scrollLeft}function jt(i){var e=te(i);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function ki(i){return["html","body","#document"].indexOf(Q(i))>=0?i.ownerDocument.body:R(i)&&jt(i)?i:ki(Ze(i))}function He(i,e){var t;void 0===e&&(e=[]);var n=ki(i),s=n===(null==(t=i.ownerDocument)?void 0:t.body),o=V(n),r=s?[o].concat(o.visualViewport||[],jt(n)?n:[]):n,l=e.concat(r);return s?l:l.concat(He(Ze(r)))}function Mt(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Li(i,e){return e===Tt?Mt((n=V(t=i),r=(s=ae(t)).clientWidth,l=s.clientHeight,c=0,d=0,(o=n.visualViewport)&&(r=o.width,l=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=o.offsetLeft,d=o.offsetTop)),{width:r,height:l,x:c+Pt(t),y:d})):Ce(e)?function(t){var n=xe(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e):Mt(function(t){var n,s=ae(t),o=Nt(t),r=null==(n=t.ownerDocument)?void 0:n.body,l=he(s.scrollWidth,s.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=he(s.scrollHeight,s.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),d=-o.scrollLeft+Pt(t),u=-o.scrollTop;return"rtl"===te(r||s).direction&&(d+=he(s.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:d,y:u}}(ae(i)));var t,n,s,o,r,l,c,d}function Di(i){var e,t=i.reference,n=i.element,s=i.placement,o=s?U(s):null,r=s?ke(s):null,l=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2;switch(o){case N:e={x:l,y:t.y-n.height};break;case W:e={x:l,y:t.y+t.height};break;case B:e={x:t.x+t.width,y:c};break;case P:e={x:t.x-n.width,y:c};break;default:e={x:t.x,y:t.y}}var d=o?Dt(o):null;if(null!=d){var u="y"===d?"height":"width";switch(r){case ce:e[d]=e[d]-(t[u]/2-n[u]/2);break;case Ee:e[d]=e[d]+(t[u]/2-n[u]/2)}}return e}function Le(i,e){void 0===e&&(e={});var S,M,X,k,le,$,ne,H,L,n=e.placement,s=void 0===n?i.placement:n,o=e.boundary,r=void 0===o?ci:o,l=e.rootBoundary,c=void 0===l?Tt:l,d=e.elementContext,u=void 0===d?Te:d,h=e.altBoundary,y=void 0!==h&&h,f=e.padding,g=void 0===f?0:f,p=Ei("number"!=typeof g?g:Ti(g,Ae)),x=i.rects.popper,C=i.elements[y?u===Te?hi:Te:u],_=(S=Ce(C)?C:C.contextElement||ae(i.elements.popper),X=c,ne="clippingParents"===(M=r)?(le=He(Ze(k=S)),Ce($=["absolute","fixed"].indexOf(te(k).position)>=0&&R(k)?je(k):k)?le.filter(function(j){return Ce(j)&&wi(j,$)&&"body"!==Q(j)}):[]):[].concat(M),L=(H=[].concat(ne,[X])).reduce(function(k,le){var $=Li(S,le);return k.top=he($.top,k.top),k.right=Ge($.right,k.right),k.bottom=Ge($.bottom,k.bottom),k.left=he($.left,k.left),k},Li(S,H[0])),L.width=L.right-L.left,L.height=L.bottom-L.top,L.x=L.left,L.y=L.top,L),E=xe(i.elements.reference),b=Di({reference:E,element:x,strategy:"absolute",placement:s}),w=Mt(Object.assign({},x,b)),A=u===Te?w:E,T={top:_.top-A.top+p.top,bottom:A.bottom-_.bottom+p.bottom,left:_.left-A.left+p.left,right:A.right-_.right+p.right},O=i.modifiersData.offset;if(u===Te&&O){var D=O[s];Object.keys(T).forEach(function(S){var M=[B,W].indexOf(S)>=0?1:-1,X=[N,W].indexOf(S)>=0?"y":"x";T[S]+=D[X]*M})}return T}const Si={name:"flip",enabled:!0,phase:"main",fn:function(i){var e=i.state,t=i.options,n=i.name;if(!e.modifiersData[n]._skip){for(var s=t.mainAxis,o=void 0===s||s,r=t.altAxis,l=void 0===r||r,c=t.fallbackPlacements,d=t.padding,u=t.boundary,h=t.rootBoundary,y=t.altBoundary,f=t.flipVariations,g=void 0===f||f,p=t.allowedAutoPlacements,m=e.options.placement,x=U(m),C=c||(x!==m&&g?function(j){if(U(j)===Ue)return[];var Y=et(j);return[xi(j),Y,xi(Y)]}(m):[et(m)]),_=[m].concat(C).reduce(function(j,Y){return j.concat(U(Y)===Ue?function Un(i,e){void 0===e&&(e={});var s=e.boundary,o=e.rootBoundary,r=e.padding,l=e.flipVariations,c=e.allowedAutoPlacements,d=void 0===c?Ot:c,u=ke(e.placement),h=u?l?Ct:Ct.filter(function(g){return ke(g)===u}):Ae,y=h.filter(function(g){return d.indexOf(g)>=0});0===y.length&&(y=h);var f=y.reduce(function(g,p){return g[p]=Le(i,{placement:p,boundary:s,rootBoundary:o,padding:r})[U(p)],g},{});return Object.keys(f).sort(function(g,p){return f[g]-f[p]})}(e,{placement:Y,boundary:u,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:p}):Y)},[]),E=e.rects.reference,b=e.rects.popper,w=new Map,A=!0,T=_[0],O=0;O<_.length;O++){var D=_[O],S=U(D),M=ke(D)===ce,X=[N,W].indexOf(S)>=0,ne=X?"width":"height",H=Le(e,{placement:D,boundary:u,rootBoundary:h,altBoundary:y,padding:d}),I=X?M?B:P:M?W:N;E[ne]>b[ne]&&(I=et(I));var L=et(I),k=[];if(o&&k.push(H[S]<=0),l&&k.push(H[I]<=0,H[L]<=0),k.every(function(j){return j})){T=D,A=!1;break}w.set(D,k)}if(A)for(var le=function(j){var Y=_.find(function(ct){var ht=w.get(ct);if(ht)return ht.slice(0,j).every(function(dt){return dt})});if(Y)return T=Y,"break"},$=g?3:1;$>0&&"break"!==le($);$--);e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ii(i,e,t){return void 0===t&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function Ni(i){return[N,B,W,P].some(function(e){return i[e]>=0})}const Pi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(i){var e=i.state,t=i.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Le(e,{elementContext:"reference"}),l=Le(e,{altBoundary:!0}),c=Ii(r,n),d=Ii(l,s,o),u=Ni(c),h=Ni(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}},ji={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(i){var e=i.state,n=i.name,s=i.options.offset,o=void 0===s?[0,0]:s,r=Ot.reduce(function(u,h){return u[h]=(f=e.rects,g=o,p=U(y=h),m=[P,N].indexOf(p)>=0?-1:1,C=(C=(x="function"==typeof g?g(Object.assign({},f,{placement:y})):g)[0])||0,_=((_=x[1])||0)*m,[P,B].indexOf(p)>=0?{x:_,y:C}:{x:C,y:_}),u;var y,f,g,p,m,x,C,_},{}),l=r[e.placement],d=l.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l.x,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=r}},Ht={name:"popperOffsets",enabled:!0,phase:"read",fn:function(i){var e=i.state;e.modifiersData[i.name]=Di({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Mi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(i){var Kt,Nn,e=i.state,t=i.options,n=i.name,s=t.mainAxis,o=void 0===s||s,r=t.altAxis,l=void 0!==r&&r,y=t.tether,f=void 0===y||y,g=t.tetherOffset,p=void 0===g?0:g,m=Le(e,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),x=U(e.placement),C=ke(e.placement),_=!C,E=Dt(x),b="x"===E?"y":"x",w=e.modifiersData.popperOffsets,A=e.rects.reference,T=e.rects.popper,O="function"==typeof p?p(Object.assign({},e.rects,{placement:e.placement})):p,D="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),S=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(w){if(o){var X,ne="y"===E?N:P,H="y"===E?W:B,I="y"===E?"height":"width",L=w[E],k=L+m[ne],le=L-m[H],$=f?-T[I]/2:0,j=C===ce?A[I]:T[I],Y=C===ce?-T[I]:-A[I],ct=e.elements.arrow,ht=f&&ct?Lt(ct):{width:0,height:0},dt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},An=dt[ne],En=dt[H],ut=Me(0,A[I],ht[I]),Ws=_?A[I]/2-$-ut-An-D.mainAxis:j-ut-An-D.mainAxis,Bs=_?-A[I]/2+$+ut+En+D.mainAxis:Y+ut+En+D.mainAxis,qt=e.elements.arrow&&je(e.elements.arrow),Tn=null!=(X=S?.[E])?X:0,zs=L+Bs-Tn,Cn=Me(f?Ge(k,L+Ws-Tn-(qt?"y"===E?qt.clientTop||0:qt.clientLeft||0:0)):k,L,f?he(le,zs):le);w[E]=Cn,M[E]=Cn-L}if(l){var On,pe=w[b],ft="y"===b?"height":"width",xn=pe+m["x"===E?N:P],kn=pe-m["x"===E?W:B],Vt=-1!==[N,P].indexOf(x),Ln=null!=(On=S?.[b])?On:0,Dn=Vt?xn:pe-A[ft]-T[ft]-Ln+D.altAxis,Sn=Vt?pe+A[ft]+T[ft]-Ln-D.altAxis:kn,In=f&&Vt?(Nn=Me(Dn,pe,Kt=Sn))>Kt?Kt:Nn:Me(f?Dn:xn,pe,f?Sn:kn);w[b]=In,M[b]=In-pe}e.modifiersData[n]=M}},requiresIfExists:["offset"]};function Gn(i,e,t){void 0===t&&(t=!1);var n,s,h,y,f,g,o=R(e),r=R(e)&&(y=(h=e).getBoundingClientRect(),f=Oe(y.width)/h.offsetWidth||1,g=Oe(y.height)/h.offsetHeight||1,1!==f||1!==g),l=ae(e),c=xe(i,r),d={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!t)&&(("body"!==Q(e)||jt(l))&&(d=(n=e)!==V(n)&&R(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Nt(n)),R(e)?((u=xe(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):l&&(u.x=Pt(l))),{x:c.left+d.scrollLeft-u.x,y:c.top+d.scrollTop-u.y,width:c.width,height:c.height}}function Zn(i){var e=new Map,t=new Set,n=[];function s(o){t.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(r){if(!t.has(r)){var l=e.get(r);l&&s(l)}}),n.push(o)}return i.forEach(function(o){e.set(o.name,o)}),i.forEach(function(o){t.has(o.name)||s(o)}),n}var Hi={placement:"bottom",modifiers:[],strategy:"absolute"};function $i(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(n){return!(n&&"function"==typeof n.getBoundingClientRect)})}function tt(i){void 0===i&&(i={});var t=i.defaultModifiers,n=void 0===t?[]:t,s=i.defaultOptions,o=void 0===s?Hi:s;return function(r,l,c){void 0===c&&(c=o);var d,u,h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hi,o),modifiersData:{},elements:{reference:r,popper:l},attributes:{},styles:{}},y=[],f=!1,g={state:h,setOptions:function(m){var x="function"==typeof m?m(h.options):m;p(),h.options=Object.assign({},o,h.options,x),h.scrollParents={reference:Ce(r)?He(r):r.contextElement?He(r.contextElement):[],popper:He(l)};var C,_,b,w,E=(C=[].concat(n,h.options.modifiers),_=C.reduce(function(b,w){var A=b[w.name];return b[w.name]=A?Object.assign({},A,w,{options:Object.assign({},A.options,w.options),data:Object.assign({},A.data,w.data)}):w,b},{}),b=Object.keys(_).map(function(b){return _[b]}),w=Zn(b),yi.reduce(function(A,T){return A.concat(w.filter(function(O){return O.phase===T}))},[]));return h.orderedModifiers=E.filter(function(b){return b.enabled}),h.orderedModifiers.forEach(function(b){var A=b.options,O=b.effect;if("function"==typeof O){var D=O({state:h,name:b.name,instance:g,options:void 0===A?{}:A});y.push(D||function(){})}}),g.update()},forceUpdate:function(){if(!f){var m=h.elements,x=m.reference,C=m.popper;if($i(x,C)){h.rects={reference:Gn(x,je(C),"fixed"===h.options.strategy),popper:Lt(C)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(O){return h.modifiersData[O.name]=Object.assign({},O.data)});for(var _=0;_<h.orderedModifiers.length;_++)if(!0!==h.reset){var E=h.orderedModifiers[_],b=E.fn,w=E.options;"function"==typeof b&&(h=b({state:h,options:void 0===w?{}:w,name:E.name,instance:g})||h)}else h.reset=!1,_=-1}}},update:(d=function(){return new Promise(function(m){g.forceUpdate(),m(h)})},function(){return u||(u=new Promise(function(m){Promise.resolve().then(function(){u=void 0,m(d())})})),u}),destroy:function(){p(),f=!0}};if(!$i(r,l))return g;function p(){y.forEach(function(m){return m()}),y=[]}return g.setOptions(c).then(function(m){!f&&c.onFirstUpdate&&c.onFirstUpdate(m)}),g}}var Jn=tt(),es=tt({defaultModifiers:[It,Ht,St,kt]}),$t=tt({defaultModifiers:[It,Ht,St,kt,ji,Si,Mi,Ci,Pi]});const Wi=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:tt,detectOverflow:Le,createPopperBase:Jn,createPopper:$t,createPopperLite:es,top:N,bottom:W,right:B,left:P,auto:Ue,basePlacements:Ae,start:ce,end:Ee,clippingParents:ci,viewport:Tt,popper:Te,reference:hi,variationPlacements:Ct,placements:Ot,beforeRead:di,read:"read",afterRead:fi,beforeMain:pi,main:"main",afterMain:mi,beforeWrite:_i,write:"write",afterWrite:vi,modifierPhases:yi,applyStyles:kt,arrow:Ci,computeStyles:St,eventListeners:It,flip:Si,hide:Pi,offset:ji,popperOffsets:Ht,preventOverflow:Mi},Symbol.toStringTag,{value:"Module"})),Bi="dropdown",ts="ArrowUp",Fi="ArrowDown",zi="click.bs.dropdown.data-api",Ri="keydown.bs.dropdown.data-api",$e="show",it='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',is=`${it}.show`,qi=".dropdown-menu",ns=F()?"top-end":"top-start",ss=F()?"top-start":"top-end",os=F()?"bottom-end":"bottom-start",rs=F()?"bottom-start":"bottom-end",as=F()?"left-start":"right-start",ls=F()?"right-start":"left-start",cs={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},hs={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class K extends q{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=v.findOne(qi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return cs}static get DefaultType(){return hs}static get NAME(){return Bi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(oe(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!a.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))a.on(t,"mouseover",Re);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($e),this._element.classList.add($e),a.trigger(this._element,"shown.bs.dropdown",e)}}hide(){!oe(this._element)&&this._isShown()&&this._completeHide({relatedTarget:this._element})}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!a.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))a.off(t,"mouseover",Re);this._popper&&this._popper.destroy(),this._menu.classList.remove($e),this._element.classList.remove($e),this._element.setAttribute("aria-expanded","false"),ee.removeDataAttribute(this._menu,"popper"),a.trigger(this._element,"hidden.bs.dropdown",e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Z(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Bi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===Wi)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:Z(this._config.reference)?e=se(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=$t(e,this._menu,t)}_isShown(){return this._menu.classList.contains($e)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return as;if(e.classList.contains("dropstart"))return ls;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?ss:ns:t?rs:os}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(t=>Number.parseInt(t,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)&&(ee.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const n=v.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(s=>_e(s));n.length&>(n,t,e===Fi,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=K.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=v.find(is);for(const n of t){const s=K.getInstance(n);if(!s||!1===s._config.autoClose)continue;const o=e.composedPath(),r=o.includes(s._menu);if(o.includes(s._element)||"inside"===s._config.autoClose&&!r||"outside"===s._config.autoClose&&r||s._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const l={relatedTarget:s._element};"click"===e.type&&(l.clickEvent=e),s._completeHide(l)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,s=[ts,Fi].includes(e.key);if(!s&&!n||t&&!n)return;e.preventDefault();const o=v.findOne(it,e.delegateTarget.parentNode),r=K.getOrCreateInstance(o);if(s)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}a.on(document,Ri,it,K.dataApiKeydownHandler),a.on(document,Ri,qi,K.dataApiKeydownHandler),a.on(document,zi,K.clearMenus),a.on(document,"keyup.bs.dropdown.data-api",K.clearMenus),a.on(document,zi,it,function(i){i.preventDefault(),K.getOrCreateInstance(this).toggle()}),z(K);const Vi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ki=".sticky-top",nt="padding-right",Xi="margin-right";class Wt{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,nt,t=>t+e),this._setElementAttributes(Vi,nt,t=>t+e),this._setElementAttributes(Ki,Xi,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,nt),this._resetElementAttributes(Vi,nt),this._resetElementAttributes(Ki,Xi)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const s=this.getWidth();this._applyManipulationCallback(e,o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+s)return;this._saveInitialAttribute(o,t);const r=window.getComputedStyle(o).getPropertyValue(t);o.style.setProperty(t,`${n(Number.parseFloat(r))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&ee.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,n=>{const s=ee.getDataAttribute(n,t);null!==s?(ee.removeDataAttribute(n,t),n.style.setProperty(t,s)):n.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(Z(e))t(e);else for(const n of v.find(e,this._element))t(n)}}const Qi="mousedown.bs.backdrop",ds={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},us={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ui extends Se{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return ds}static get DefaultType(){return us}static get NAME(){return"backdrop"}show(e){if(!this._config.isVisible)return void J(e);this._append();this._getElement().classList.add("show"),this._emulateAnimation(()=>{J(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),J(e)})):J(e)}dispose(){this._isAppended&&(a.off(this._element,Qi),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=se(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),a.on(e,Qi,()=>{J(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Gt(e,this._getElement(),this._config.isAnimated)}}const Gi=".bs.focustrap",Zi="backward",fs={autofocus:!0,trapElement:null},ps={autofocus:"boolean",trapElement:"element"};class Ji extends Se{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return fs}static get DefaultType(){return ps}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),a.off(document,Gi),a.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),a.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,a.off(document,Gi))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=v.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===Zi?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Zi:"forward")}}const en="hidden.bs.modal",tn="show.bs.modal",nn="modal-open",Bt="modal-static",gs={backdrop:!0,focus:!0,keyboard:!0},ms={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class de extends q{constructor(e,t){super(e,t),this._dialog=v.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Wt,this._addEventListeners()}static get Default(){return gs}static get DefaultType(){return ms}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||a.trigger(this._element,tn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(nn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(a.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){for(const e of[window,this._dialog])a.off(e,".bs.modal");this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ui({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ji({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=v.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,a.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){a.on(this._element,"keydown.dismiss.bs.modal",e=>{if("Escape"===e.key)return this._config.keyboard?(e.preventDefault(),void this.hide()):void this._triggerBackdropTransition()}),a.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),a.on(this._element,"mousedown.dismiss.bs.modal",e=>{e.target===e.currentTarget&&("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(nn),this._resetAdjustments(),this._scrollBar.reset(),a.trigger(this._element,en)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(a.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Bt)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Bt),this._queueCallback(()=>{this._element.classList.remove(Bt),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(),n=t>0;if(n&&!e){const s=F()?"paddingLeft":"paddingRight";this._element.style[s]=`${t}px`}if(!n&&e){const s=F()?"paddingRight":"paddingLeft";this._element.style[s]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=de.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}})}}a.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(i){const e=G(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),a.one(e,tn,n=>{n.defaultPrevented||a.one(e,en,()=>{_e(this)&&this.focus()})});const t=v.findOne(".modal.show");t&&de.getInstance(t).hide(),de.getOrCreateInstance(e).toggle(this)}),qe(de),z(de);const rn="showing",ln=".offcanvas.show",cn="hidePrevented.bs.offcanvas",hn="hidden.bs.offcanvas",_s={backdrop:!0,keyboard:!0,scroll:!1},bs={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ie extends q{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return _s}static get DefaultType(){return bs}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||a.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Wt).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(rn),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(rn),a.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(a.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Wt).reset(),a.trigger(this._element,hn)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Ui({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():a.trigger(this._element,cn)}:null})}_initializeFocusTrap(){return new Ji({trapElement:this._element})}_addEventListeners(){a.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():a.trigger(this._element,cn))})}static jQueryInterface(e){return this.each(function(){const t=ie.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)}})}}a.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(i){const e=G(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),oe(this))return;a.one(e,hn,()=>{_e(this)&&this.focus()});const t=v.findOne(ln);t&&t!==e&&ie.getInstance(t).hide(),ie.getOrCreateInstance(e).toggle(this)}),a.on(window,"load.bs.offcanvas.data-api",()=>{for(const i of v.find(ln))ie.getOrCreateInstance(i).show()}),a.on(window,"resize.bs.offcanvas",()=>{for(const i of v.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(i).position&&ie.getOrCreateInstance(i).hide()}),qe(ie),z(ie);const vs=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ys=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,ws=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,As=(i,e)=>{const t=i.nodeName.toLowerCase();return e.includes(t)?!vs.has(t)||Boolean(ys.test(i.nodeValue)||ws.test(i.nodeValue)):e.filter(n=>n instanceof RegExp).some(n=>n.test(t))},dn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Es={allowList:dn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ts={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Cs={entry:"(string|element|function|null)",selector:"(string|element)"};class Os extends Se{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Es}static get DefaultType(){return Ts}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[s,o]of Object.entries(this._config.content))this._setContent(e,o,s);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Cs)}_setContent(e,t,n){const s=v.findOne(n,e);s&&((t=this._resolvePossibleFunction(t))?Z(t)?this._putElementInTemplate(se(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?function(t,n,s){if(!t.length)return t;if(s&&"function"==typeof s)return s(t);const o=(new window.DOMParser).parseFromString(t,"text/html"),r=[].concat(...o.body.querySelectorAll("*"));for(const l of r){const c=l.nodeName.toLowerCase();if(!Object.keys(n).includes(c)){l.remove();continue}const d=[].concat(...l.attributes),u=[].concat(n["*"]||[],n[c]||[]);for(const h of d)As(h,u)||l.removeAttribute(h.nodeName)}return o.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return"function"==typeof e?e(this):e}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const xs=new Set(["sanitize","allowList","sanitizeFn"]),Ft="fade",st="show",fn="hide.bs.modal",ot="hover",ks={AUTO:"auto",TOP:"top",RIGHT:F()?"left":"right",BOTTOM:"bottom",LEFT:F()?"right":"left"},Ls={allowList:dn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],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"},Ds={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 ue extends q{constructor(e,t){if(void 0===Wi)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=!1,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners()}static get Default(){return Ls}static get DefaultType(){return Ds}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled){if(e){const t=this._initializeOnDelegatedTarget(e);return t._activeTrigger.click=!t._activeTrigger.click,void(t._isWithActiveTrigger()?t._enter():t._leave())}this._isShown()?this._leave():this._enter()}}dispose(){clearTimeout(this._timeout),a.off(this._element.closest(".modal"),fn,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=a.trigger(this._element,this.constructor.eventName("show")),t=(Qt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this.tip&&(this.tip.remove(),this.tip=null);const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),a.trigger(this._element,this.constructor.eventName("inserted"))),this._popper?this._popper.update():this._popper=this._createPopper(n),n.classList.add(st),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))a.on(o,"mouseover",Re);this._queueCallback(()=>{const o=this._isHovered;this._isHovered=!1,a.trigger(this._element,this.constructor.eventName("shown")),o&&this._leave()},this.tip,this._isAnimated())}hide(){if(!this._isShown()||a.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;const e=this._getTipElement();if(e.classList.remove(st),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))a.off(t,"mouseover",Re);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=!1,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||e.remove(),this._element.removeAttribute("aria-describedby"),a.trigger(this._element,this.constructor.eventName("hidden")),this._disposePopper())},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(Ft,st),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(s=>{do{s+=Math.floor(1e6*Math.random())}while(document.getElementById(s));return s})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(Ft),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Os({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._config.originalTitle}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ft)}_isShown(){return this.tip&&this.tip.classList.contains(st)}_createPopper(e){const t="function"==typeof this._config.placement?this._config.placement.call(this,e,this._element):this._config.placement,n=ks[t.toUpperCase()];return $t(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_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:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)a.on(this._element,this.constructor.eventName("click"),this._config.selector,n=>this.toggle(n));else if("manual"!==t){const n=this.constructor.eventName(t===ot?"mouseenter":"focusin"),s=this.constructor.eventName(t===ot?"mouseleave":"focusout");a.on(this._element,n,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger["focusin"===o.type?"focus":ot]=!0,r._enter()}),a.on(this._element,s,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger["focusout"===o.type?"focus":ot]=r._element.contains(o.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},a.on(this._element.closest(".modal"),fn,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._config.originalTitle;e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",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=ee.getDataAttributes(this._element);for(const n of Object.keys(t))xs.has(n)&&delete t[n];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:se(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.originalTitle=this._element.getAttribute("title")||"","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 in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each(function(){const t=ue.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}z(ue);const Ss={...ue.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"},Is={...ue.DefaultType,content:"(null|string|element|function)"};class rt extends ue{static get Default(){return Ss}static get DefaultType(){return Is}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=rt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}z(rt);const gn="click.bs.scrollspy",We="active",Ns={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null},Ps={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element"};class Be extends q{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 Ns}static get DefaultType(){return Ps}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=se(e.target)||document.body,e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(a.off(this._config.target,gn),a.on(this._config.target,gn,"[href]",e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:s,behavior:"smooth"});n.scrollTop=s}}))}_getNewObserver(){const e={root:this._rootElement,threshold:[.1,.5,1],rootMargin:this._getRootMargin()};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=r=>this._targetLinks.get(`#${r.target.id}`),n=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(t(r))},s=(this._rootElement||document.documentElement).scrollTop,o=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const l=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&l){if(n(r),!s)return}else o||l||n(r)}}_getRootMargin(){return this._config.offset?`${this._config.offset}px 0px -30%`:this._config.rootMargin}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=v.find("[href]",this._config.target);for(const t of e){if(!t.hash||oe(t))continue;const n=v.findOne(t.hash,this._element);_e(n)&&(this._targetLinks.set(t.hash,t),this._observableSections.set(t.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(We),this._activateParents(e),a.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))v.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(We);else for(const t of v.parents(e,".nav, .list-group"))for(const n of v.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))n.classList.add(We)}_clearActiveClass(e){e.classList.remove(We);const t=v.find("[href].active",e);for(const n of t)n.classList.remove(We)}static jQueryInterface(e){return this.each(function(){const t=Be.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]()}})}}a.on(window,"load.bs.scrollspy.data-api",()=>{for(const i of v.find('[data-bs-spy="scroll"]'))Be.getOrCreateInstance(i)}),z(Be);const js="ArrowLeft",_n="ArrowRight",Ms="ArrowUp",bn="ArrowDown",Fe="active",zt="show",yn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Rt=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${yn}`;class fe extends q{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),a.on(this._element,"keydown.bs.tab",t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?a.trigger(t,"hide.bs.tab",{relatedTarget:e}):null;a.trigger(e,"show.bs.tab",{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Fe),this._activate(G(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.focus(),e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),a.trigger(e,"shown.bs.tab",{relatedTarget:t})):e.classList.add(zt)},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(Fe),e.blur(),this._deactivate(G(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),a.trigger(e,"hidden.bs.tab",{relatedTarget:t})):e.classList.remove(zt)},e,e.classList.contains("fade")))}_keydown(e){if(![js,_n,Ms,bn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[_n,bn].includes(e.key),n=gt(this._getChildren().filter(s=>!oe(s)),e.target,t,!0);n&&fe.getOrCreateInstance(n).show()}_getChildren(){return v.find(Rt,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const n of t)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=G(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`#${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const s=(o,r)=>{const l=v.findOne(o,n);l&&l.classList.toggle(r,t)};s(".dropdown-toggle",Fe),s(".dropdown-menu",zt),s(".dropdown-item",Fe),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Fe)}_getInnerElement(e){return e.matches(Rt)?e:v.findOne(Rt,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=fe.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}a.on(document,"click.bs.tab",yn,function(i){["A","AREA"].includes(this.tagName)&&i.preventDefault(),oe(this)||fe.getOrCreateInstance(this).show()}),a.on(window,"load.bs.tab",()=>{for(const i of v.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))fe.getOrCreateInstance(i)}),z(fe);const at="show",lt="showing",Hs={animation:"boolean",autohide:"boolean",delay:"number"},$s={animation:!0,autohide:!0,delay:5e3};class ze extends q{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return $s}static get DefaultType(){return Hs}static get NAME(){return"toast"}show(){a.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),this._element.classList.add(at,lt),this._queueCallback(()=>{this._element.classList.remove(lt),a.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(a.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(lt),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(lt,at),a.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(at),super.dispose()}isShown(){return this._element.classList.contains(at)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(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 n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){a.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),a.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),a.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),a.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=ze.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return qe(ze),z(ze),{Alert:Ie,Button:Ne,Carousel:ye,Collapse:we,Dropdown:K,Modal:de,Offcanvas:ie,Popover:rt,ScrollSpy:Be,Tab:fe,Toast:ze,Tooltip:ue}});
|