UNPKG

sveltestrap

Version:
1 lines 245 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).sveltestrap={})}(this,(function(t){"use strict";function e(){}const n=t=>t;function l(t,e){for(const n in e)t[n]=e[n];return t}function s(t){return t()}function i(){return Object.create(null)}function c(t){t.forEach(s)}function o(t){return"function"==typeof t}function a(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let r;function u(t,n,l){t.$$.on_destroy.push(function(t,...n){if(null==t)return e;const l=t.subscribe(...n);return l.unsubscribe?()=>l.unsubscribe():l}(n,l))}function d(t,e,n,l){if(t){const s=f(t,e,n,l);return t[0](s)}}function f(t,e,n,s){return t[1]&&s?l(n.ctx.slice(),t[1](s(e))):n.ctx}function p(t,e,n,l){if(t[2]&&l){const s=t[2](l(n));if(void 0===e.dirty)return s;if("object"==typeof s){const t=[],n=Math.max(e.dirty.length,s.length);for(let l=0;l<n;l+=1)t[l]=e.dirty[l]|s[l];return t}return e.dirty|s}return e.dirty}function h(t,e,n,l,s,i){if(s){const c=f(e,n,l,i);t.p(c,s)}}function $(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function m(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}function g(t,e){const n={};e=new Set(e);for(const l in t)e.has(l)||"$"===l[0]||(n[l]=t[l]);return n}function v(t){const e={};for(const n in t)e[n]=!0;return e}function b(t){return t&&o(t.destroy)?t.destroy:e}const y="undefined"!=typeof window;let x=y?()=>window.performance.now():()=>Date.now(),w=y?t=>requestAnimationFrame(t):e;const E=new Set;function k(t){E.forEach((e=>{e.c(t)||(E.delete(e),e.f())})),0!==E.size&&w(k)}function O(t){let e;return 0===E.size&&w(k),{promise:new Promise((n=>{E.add(e={c:t,f:n})})),abort(){E.delete(e)}}}const N="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;let I=!1;function L(t,e,n,l){for(;t<e;){const s=t+(e-t>>1);n(s)<=l?t=s+1:e=s}return t}function C(t,e,n){const l=A(t);if(!l.getElementById(e)){const t=j("style");t.id=e,t.textContent=n,_(l,t)}}function A(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function z(t){const e=j("style");return _(A(t),e),e.sheet}function _(t,e){return function(t,e){t.appendChild(e)}(t.head||t,e),e.sheet}function D(t,e){if(I){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const l=e[n];void 0!==l.claim_order&&t.push(l)}e=t}const n=new Int32Array(e.length+1),l=new Int32Array(e.length);n[0]=-1;let s=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,c=(s>0&&e[n[s]].claim_order<=i?s+1:L(1,s,(t=>e[n[t]].claim_order),i))-1;l[t]=n[c]+1;const o=c+1;n[o]=t,s=Math.max(o,s)}const i=[],c=[];let o=e.length-1;for(let t=n[s]+1;0!=t;t=l[t-1]){for(i.push(e[t-1]);o>=t;o--)c.push(e[o]);o--}for(;o>=0;o--)c.push(e[o]);i.reverse(),c.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<c.length;e++){for(;n<i.length&&c[e].claim_order>=i[n].claim_order;)n++;const l=n<i.length?i[n]:null;t.insertBefore(c[e],l)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function T(t,e,n){I&&!n?D(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function P(t){t.parentNode&&t.parentNode.removeChild(t)}function V(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function j(t){return document.createElement(t)}function S(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function B(t){return document.createTextNode(t)}function H(){return B(" ")}function M(){return B("")}function F(t,e,n,l){return t.addEventListener(e,n,l),()=>t.removeEventListener(e,n,l)}function R(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const U=["width","height"];function W(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const l in e)null==e[l]?t.removeAttribute(l):"style"===l?t.style.cssText=e[l]:"__value"===l?t.value=t[l]=e[l]:n[l]&&n[l].set&&-1===U.indexOf(l)?t[l]=e[l]:R(t,l,e[l])}function q(t){return""===t?null:+t}function G(t){return Array.from(t.childNodes)}function Y(t,e,n,l,s=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const i=(()=>{for(let l=t.claim_info.last_index;l<t.length;l++){const i=t[l];if(e(i)){const e=n(i);return void 0===e?t.splice(l,1):t[l]=e,s||(t.claim_info.last_index=l),i}}for(let l=t.claim_info.last_index-1;l>=0;l--){const i=t[l];if(e(i)){const e=n(i);return void 0===e?t.splice(l,1):t[l]=e,s?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=l,i}}return l()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function X(t,e,n,l){return Y(t,(t=>t.nodeName===e),(t=>{const e=[];for(let l=0;l<t.attributes.length;l++){const s=t.attributes[l];n[s.name]||e.push(s.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>l(e)))}function K(t,e,n){return X(t,e,n,j)}function J(t,e,n){return X(t,e,n,S)}function Q(t,e){return Y(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>B(e)),!0)}function Z(t){return Q(t," ")}function tt(t,e){e=""+e,t.data!==e&&(t.data=e)}function et(t,e){t.value=null==e?"":e}function nt(t,e,n,l){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,l?"important":"")}function lt(t,e,n){for(let n=0;n<t.options.length;n+=1){const l=t.options[n];if(l.__value===e)return void(l.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}function st(t,e){for(let n=0;n<t.options.length;n+=1){const l=t.options[n];l.selected=~e.indexOf(l.__value)}}function it(t,e,n){t.classList[n?"add":"remove"](e)}function ct(t,e,{bubbles:n=!1,cancelable:l=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,n,l,e),s}function ot(t,e){return new t(e)}const at=new Map;let rt,ut=0;function dt(t,e,n,l,s,i,c,o=0){const a=16.666/l;let r="{\n";for(let t=0;t<=1;t+=a){const l=e+(n-e)*i(t);r+=100*t+`%{${c(l,1-l)}}\n`}const u=r+`100% {${c(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${o}`,f=A(t),{stylesheet:p,rules:h}=at.get(f)||function(t,e){const n={stylesheet:z(e),rules:{}};return at.set(t,n),n}(f,t);h[d]||(h[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const $=t.style.animation||"";return t.style.animation=`${$?`${$}, `:""}${d} ${l}ms linear ${s}ms 1 both`,ut+=1,d}function ft(t,e){const n=(t.style.animation||"").split(", "),l=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),s=n.length-l.length;s&&(t.style.animation=l.join(", "),ut-=s,ut||w((()=>{ut||(at.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&P(e)})),at.clear())})))}function pt(t){rt=t}function ht(){if(!rt)throw new Error("Function called outside component initialization");return rt}function $t(t){ht().$$.on_mount.push(t)}function mt(t){ht().$$.on_destroy.push(t)}function gt(){const t=ht();return(e,n,{cancelable:l=!1}={})=>{const s=t.$$.callbacks[e];if(s){const i=ct(e,n,{cancelable:l});return s.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}function vt(t,e){return ht().$$.context.set(t,e),e}function bt(t){return ht().$$.context.get(t)}function yt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const xt=[],wt=[];let Et=[];const kt=[],Ot=Promise.resolve();let Nt=!1;function It(t){Et.push(t)}function Lt(t){kt.push(t)}const Ct=new Set;let At,zt=0;function _t(){if(0!==zt)return;const t=rt;do{try{for(;zt<xt.length;){const t=xt[zt];zt++,pt(t),Dt(t.$$)}}catch(t){throw xt.length=0,zt=0,t}for(pt(null),xt.length=0,zt=0;wt.length;)wt.pop()();for(let t=0;t<Et.length;t+=1){const e=Et[t];Ct.has(e)||(Ct.add(e),e())}Et.length=0}while(xt.length);for(;kt.length;)kt.pop()();Nt=!1,Ct.clear(),pt(t)}function Dt(t){if(null!==t.fragment){t.update(),c(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(It)}}function Tt(){return At||(At=Promise.resolve(),At.then((()=>{At=null}))),At}function Pt(t,e,n){t.dispatchEvent(ct(`${e?"intro":"outro"}${n}`))}const Vt=new Set;let jt;function St(){jt={r:0,c:[],p:jt}}function Bt(){jt.r||c(jt.c),jt=jt.p}function Ht(t,e){t&&t.i&&(Vt.delete(t),t.i(e))}function Mt(t,e,n,l){if(t&&t.o){if(Vt.has(t))return;Vt.add(t),jt.c.push((()=>{Vt.delete(t),l&&(n&&t.d(1),l())})),t.o(e)}else l&&l()}const Ft={duration:0};function Rt(t,l,s){const i={direction:"in"};let c,a,r=l(t,s,i),u=!1,d=0;function f(){c&&ft(t,c)}function p(){const{delay:l=0,duration:s=300,easing:i=n,tick:o=e,css:p}=r||Ft;p&&(c=dt(t,0,1,s,l,i,p,d++)),o(0,1);const h=x()+l,$=h+s;a&&a.abort(),u=!0,It((()=>Pt(t,!0,"start"))),a=O((e=>{if(u){if(e>=$)return o(1,0),Pt(t,!0,"end"),f(),u=!1;if(e>=h){const t=i((e-h)/s);o(t,1-t)}}return u}))}let h=!1;return{start(){h||(h=!0,ft(t),o(r)?(r=r(i),Tt().then(p)):p())},invalidate(){h=!1},end(){u&&(f(),u=!1)}}}function Ut(t,l,s){const i={direction:"out"};let a,r=l(t,s,i),u=!0;const d=jt;function f(){const{delay:l=0,duration:s=300,easing:i=n,tick:o=e,css:f}=r||Ft;f&&(a=dt(t,1,0,s,l,i,f));const p=x()+l,h=p+s;It((()=>Pt(t,!1,"start"))),O((e=>{if(u){if(e>=h)return o(0,1),Pt(t,!1,"end"),--d.r||c(d.c),!1;if(e>=p){const t=i((e-p)/s);o(1-t,t)}}return u}))}return d.r+=1,o(r)?Tt().then((()=>{r=r(i),f()})):f(),{end(e){e&&r.tick&&r.tick(1,0),u&&(a&&ft(t,a),u=!1)}}}function Wt(t,l,s,i){const a={direction:"both"};let r=l(t,s,a),u=i?0:1,d=null,f=null,p=null;function h(){p&&ft(t,p)}function $(t,e){const n=t.b-u;return e*=Math.abs(n),{a:u,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function m(l){const{delay:s=0,duration:i=300,easing:o=n,tick:a=e,css:m}=r||Ft,g={start:x()+s,b:l};l||(g.group=jt,jt.r+=1),d||f?f=g:(m&&(h(),p=dt(t,u,l,i,s,o,m)),l&&a(0,1),d=$(g,i),It((()=>Pt(t,l,"start"))),O((e=>{if(f&&e>f.start&&(d=$(f,i),f=null,Pt(t,d.b,"start"),m&&(h(),p=dt(t,u,d.b,d.duration,0,o,r.css))),d)if(e>=d.end)a(u=d.b,1-u),Pt(t,d.b,"end"),f||(d.b?h():--d.group.r||c(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;u=d.a+d.d*o(t/d.duration),a(u,1-u)}return!(!d&&!f)})))}return{run(t){o(r)?Tt().then((()=>{r=r(a),m(t)})):m(t)},end(){h(),d=f=null}}}function qt(t,e){const n={},l={},s={$$scope:1};let i=t.length;for(;i--;){const c=t[i],o=e[i];if(o){for(const t in c)t in o||(l[t]=1);for(const t in o)s[t]||(n[t]=o[t],s[t]=1);t[i]=o}else for(const t in c)s[t]=1}for(const t in l)t in n||(n[t]=void 0);return n}function Gt(t){return"object"==typeof t&&null!==t?t:{}}function Yt(t,e,n){const l=t.$$.props[e];void 0!==l&&(t.$$.bound[l]=n,n(t.$$.ctx[l]))}function Xt(t){t&&t.c()}function Kt(t,e){t&&t.l(e)}function Jt(t,e,n,l){const{fragment:i,after_update:a}=t.$$;i&&i.m(e,n),l||It((()=>{const e=t.$$.on_mount.map(s).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...e):c(e),t.$$.on_mount=[]})),a.forEach(It)}function Qt(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];Et.forEach((l=>-1===t.indexOf(l)?e.push(l):n.push(l))),n.forEach((t=>t())),Et=e}(n.after_update),c(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Zt(t,e){-1===t.$$.dirty[0]&&(xt.push(t),Nt||(Nt=!0,Ot.then(_t)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function te(t,n,l,s,o,a,r,u=[-1]){const d=rt;pt(t);const f=t.$$={fragment:null,ctx:[],props:a,update:e,not_equal:o,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:i(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};r&&r(f.root);let p=!1;if(f.ctx=l?l(t,n.props||{},((e,n,...l)=>{const s=l.length?l[0]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=s)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](s),p&&Zt(t,e)),n})):[],f.update(),p=!0,c(f.before_update),f.fragment=!!s&&s(f.ctx),n.target){if(n.hydrate){I=!0;const t=G(n.target);f.fragment&&f.fragment.l(t),t.forEach(P)}else f.fragment&&f.fragment.c();n.intro&&Ht(t.$$.fragment),Jt(t,n.target,n.anchor,n.customElement),I=!1,_t()}pt(d)}class ee{$destroy(){Qt(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const l=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return l.push(n),()=>{const t=l.indexOf(n);-1!==t&&l.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function ne(t){document.body.style.paddingRight=t>0?`${t}px`:null}function le(t){const e=typeof t;return null!=t&&("object"==e||"function"==e)}function se(){const t=function(){let t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);const e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}(),e=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=e?parseInt(e.style.paddingRight||0,10):0;window&&document.body.clientWidth<window.innerWidth&&ne(n+t)}function ie(t,e,n){return!0===n||""===n?t?"col":`col-${e}`:"auto"===n?t?"col-auto":`col-${e}-auto`:t?`col-${n}`:`col-${e}-${n}`}function ce(t,...e){return t.addEventListener(...e),()=>t.removeEventListener(...e)}function oe(t,e,n){return"prev"===t?0===n?e.length-1:n-1:"next"===t?n===e.length-1?0:n+1:void 0}function ae(t){let e="";if("string"==typeof t||"number"==typeof t)e+=t;else if("object"==typeof t)if(Array.isArray(t))e=t.map(ae).filter(Boolean).join(" ");else for(let n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function re(...t){return t.map(ae).filter(Boolean).join(" ")}function ue(t){if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const l=Number.parseFloat(e),s=Number.parseFloat(n);return l||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0}function de(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}const fe=[];function pe(t,n=e){let l;const s=new Set;function i(e){if(a(t,e)&&(t=e,l)){const e=!fe.length;for(const e of s)e[1](),fe.push(e,t);if(e){for(let t=0;t<fe.length;t+=2)fe[t][0](fe[t+1]);fe.length=0}}}return{set:i,update:function(e){i(e(t))},subscribe:function(c,o=e){const a=[c,o];return s.add(a),1===s.size&&(l=n(i)||e),c(t),()=>{s.delete(a),0===s.size&&l&&(l(),l=null)}}}}function he(t){let e,n;const s=t[7].default,i=d(s,t,t[6],null);let c=[{class:t[0]},t[2]],o={};for(let t=0;t<c.length;t+=1)o=l(o,c[t]);return{c(){e=j("div"),i&&i.c(),this.h()},l(t){e=K(t,"DIV",{class:!0});var n=G(e);i&&i.l(n),n.forEach(P),this.h()},h(){W(e,o)},m(t,l){T(t,e,l),i&&i.m(e,null),n=!0},p(t,[l]){i&&i.p&&(!n||64&l)&&h(i,s,t,t[6],n?p(s,t[6],l,null):$(t[6]),null),W(e,o=qt(c,[(!n||1&l)&&{class:t[0]},4&l&&t[2]]))},i(t){n||(Ht(i,t),n=!0)},o(t){Mt(i,t),n=!1},d(t){t&&P(e),i&&i.d(t)}}}function $e(t,e,n){let s;const i=["flush","stayOpen","class"];let c,o=g(e,i),{$$slots:a={},$$scope:r}=e;const d=gt();let{flush:f=!1}=e,{stayOpen:p=!1}=e,{class:h=""}=e;const $=pe();return u(t,$,(t=>n(8,c=t))),vt("accordion",{open:$,stayOpen:p,toggle:t=>{c===t?$.set():$.set(t),d("toggle",{[t]:c===t})}}),t.$$set=t=>{e=l(l({},e),m(t)),n(2,o=g(e,i)),"flush"in t&&n(3,f=t.flush),"stayOpen"in t&&n(4,p=t.stayOpen),"class"in t&&n(5,h=t.class),"$$scope"in t&&n(6,r=t.$$scope)},t.$$.update=()=>{40&t.$$.dirty&&n(0,s=re(h,"accordion",{"accordion-flush":f}))},[s,$,o,f,p,h,r,a]}function me(t){let e,n,s,i,c;const o=t[4].default,a=d(o,t,t[3],null);let r=[{class:"accordion-header"},t[1]],u={};for(let t=0;t<r.length;t+=1)u=l(u,r[t]);return{c(){e=j("h2"),n=j("button"),a&&a.c(),this.h()},l(t){e=K(t,"H2",{class:!0});var l=G(e);n=K(l,"BUTTON",{type:!0,class:!0});var s=G(n);a&&a.l(s),s.forEach(P),l.forEach(P),this.h()},h(){R(n,"type","button"),R(n,"class",t[0]),W(e,u)},m(l,o){T(l,e,o),D(e,n),a&&a.m(n,null),s=!0,i||(c=F(n,"click",t[5]),i=!0)},p(t,[l]){a&&a.p&&(!s||8&l)&&h(a,o,t,t[3],s?p(o,t[3],l,null):$(t[3]),null),(!s||1&l)&&R(n,"class",t[0]),W(e,u=qt(r,[{class:"accordion-header"},2&l&&t[1]]))},i(t){s||(Ht(a,t),s=!0)},o(t){Mt(a,t),s=!1},d(t){t&&P(e),a&&a.d(t),i=!1,c()}}}function ge(t,e,n){let s;const i=["class"];let c=g(e,i),{$$slots:o={},$$scope:a}=e,{class:r=""}=e;return t.$$set=t=>{e=l(l({},e),m(t)),n(1,c=g(e,i)),"class"in t&&n(2,r=t.class),"$$scope"in t&&n(3,a=t.$$scope)},t.$$.update=()=>{4&t.$$.dirty&&n(0,s=re(r,"accordion-button"))},[s,c,r,a,o,function(e){yt.call(this,t,e)}]}class ve extends ee{constructor(t){super(),te(this,t,ge,me,a,{class:2})}}function be(t){t.style.display="block";return{duration:ue(t),tick:e=>{0===e&&t.classList.add("show")}}}function ye(t){t.classList.remove("show");return{duration:ue(t),tick:e=>{0===e&&(t.style.display="none")}}}function xe(t,e){const n=e.horizontal?"width":"height";t.style[n]=`${t.getBoundingClientRect()[n]}px`,t.classList.add("collapsing"),t.classList.remove("collapse","show");return{duration:ue(t),tick:e=>{e>0?t.style[n]="":0===e&&(t.classList.remove("collapsing"),t.classList.add("collapse"))}}}function we(t,e){const n=e.horizontal,l=n?"width":"height";t.classList.add("collapsing"),t.classList.remove("collapse","show"),t.style[l]=0;return{duration:ue(t),tick:e=>{e<1?n?t.style.width=`${t.scrollWidth}px`:t.style.height=`${t.scrollHeight}px`:(t.classList.remove("collapsing"),t.classList.add("collapse","show"),t.style[l]="")}}}function Ee(t){t.style.display="block";return{duration:ue(t),tick:e=>{e>0&&t.classList.add("show")}}}function ke(t){t.classList.remove("show");return{duration:ue(t),tick:e=>{1===e&&(t.style.display="none")}}}const Oe=["touchstart","click"];var Ne=(t,e)=>{let n;if("string"==typeof t&&"undefined"!=typeof window&&document&&document.createElement){let l=document.querySelectorAll(t);if(l.length||(l=document.querySelectorAll(`#${t}`)),!l.length)throw new Error(`The target '${t}' could not be identified in the dom, tip: check spelling`);Oe.forEach((t=>{l.forEach((n=>{n.addEventListener(t,e)}))})),n=()=>{Oe.forEach((t=>{l.forEach((n=>{n.removeEventListener(t,e)}))}))}}return()=>{"function"==typeof n&&(n(),n=void 0)}};function Ie(t){let e,n,s,i,a,r,u;const f=t[16].default,m=d(f,t,t[15],null);let g=[{style:n=t[2]?void 0:"overflow: hidden;"},t[9],{class:t[8]}],v={};for(let t=0;t<g.length;t+=1)v=l(v,g[t]);return{c(){e=j("div"),m&&m.c(),this.h()},l(t){e=K(t,"DIV",{style:!0,class:!0});var n=G(e);m&&m.l(n),n.forEach(P),this.h()},h(){W(e,v)},m(n,l){T(n,e,l),m&&m.m(e,null),a=!0,r||(u=[F(e,"introstart",t[17]),F(e,"introend",t[18]),F(e,"outrostart",t[19]),F(e,"outroend",t[20]),F(e,"introstart",(function(){o(t[3])&&t[3].apply(this,arguments)})),F(e,"introend",(function(){o(t[4])&&t[4].apply(this,arguments)})),F(e,"outrostart",(function(){o(t[5])&&t[5].apply(this,arguments)})),F(e,"outroend",(function(){o(t[6])&&t[6].apply(this,arguments)}))],r=!0)},p(l,s){t=l,m&&m.p&&(!a||32768&s)&&h(m,f,t,t[15],a?p(f,t[15],s,null):$(t[15]),null),W(e,v=qt(g,[(!a||4&s&&n!==(n=t[2]?void 0:"overflow: hidden;"))&&{style:n},512&s&&t[9],(!a||256&s)&&{class:t[8]}]))},i(n){a||(Ht(m,n),It((()=>{a&&(i&&i.end(1),s=Rt(e,we,{horizontal:t[1]}),s.start())})),a=!0)},o(n){Mt(m,n),s&&s.invalidate(),n&&(i=Ut(e,xe,{horizontal:t[1]})),a=!1},d(t){t&&P(e),m&&m.d(t),t&&i&&i.end(),r=!1,c(u)}}}function Le(t){let e,n,l,s;It(t[21]);let i=t[0]&&Ie(t);return{c(){i&&i.c(),e=M()},l(t){i&&i.l(t),e=M()},m(c,o){i&&i.m(c,o),T(c,e,o),n=!0,l||(s=F(window,"resize",t[21]),l=!0)},p(t,[n]){t[0]?i?(i.p(t,n),1&n&&Ht(i,1)):(i=Ie(t),i.c(),Ht(i,1),i.m(e.parentNode,e)):i&&(St(),Mt(i,1,1,(()=>{i=null})),Bt())},i(t){n||(Ht(i),n=!0)},o(t){Mt(i),n=!1},d(t){i&&i.d(t),t&&P(e),l=!1,s()}}}function Ce(t,e,n){let s;const i=["isOpen","class","horizontal","navbar","onEntering","onEntered","onExiting","onExited","expand","toggler"];let c=g(e,i),{$$slots:o={},$$scope:a}=e;const r=gt();let{isOpen:u=!1}=e,{class:d=""}=e,{horizontal:f=!1}=e,{navbar:p=!1}=e,{onEntering:h=(()=>r("opening"))}=e,{onEntered:$=(()=>r("open"))}=e,{onExiting:v=(()=>r("closing"))}=e,{onExited:b=(()=>r("close"))}=e,{expand:y=!1}=e,{toggler:x=null}=e;$t((()=>Ne(x,(t=>{n(0,u=!u),t.preventDefault()}))));let w=0,E=!1;const k={};function O(){r("update",u)}return k.xs=0,k.sm=576,k.md=768,k.lg=992,k.xl=1200,t.$$set=t=>{e=l(l({},e),m(t)),n(9,c=g(e,i)),"isOpen"in t&&n(0,u=t.isOpen),"class"in t&&n(10,d=t.class),"horizontal"in t&&n(1,f=t.horizontal),"navbar"in t&&n(2,p=t.navbar),"onEntering"in t&&n(3,h=t.onEntering),"onEntered"in t&&n(4,$=t.onEntered),"onExiting"in t&&n(5,v=t.onExiting),"onExited"in t&&n(6,b=t.onExited),"expand"in t&&n(11,y=t.expand),"toggler"in t&&n(12,x=t.toggler),"$$scope"in t&&n(15,a=t.$$scope)},t.$$.update=()=>{1030&t.$$.dirty&&n(8,s=re(d,{"collapse-horizontal":f,"navbar-collapse":p})),26757&t.$$.dirty&&p&&y&&(w>=k[y]&&!u?(n(0,u=!0),n(13,E=!0),O()):w<k[y]&&E&&(n(0,u=!1),n(13,E=!1),O()))},[u,f,p,h,$,v,b,w,s,c,d,y,x,E,k,a,o,function(e){yt.call(this,t,e)},function(e){yt.call(this,t,e)},function(e){yt.call(this,t,e)},function(e){yt.call(this,t,e)},function(){n(7,w=window.innerWidth)}]}class Ae extends ee{constructor(t){super(),te(this,t,Ce,Le,a,{isOpen:0,class:10,horizontal:1,navbar:2,onEntering:3,onEntered:4,onExiting:5,onExited:6,expand:11,toggler:12})}}const ze=t=>({}),_e=t=>({});function De(t){let e,n,l;const s=t[9].header,i=d(s,t,t[16],_e);return{c(){i&&i.c(),e=H(),n=B(t[0])},l(l){i&&i.l(l),e=Z(l),n=Q(l,t[0])},m(t,s){i&&i.m(t,s),T(t,e,s),T(t,n,s),l=!0},p(t,e){i&&i.p&&(!l||65536&e)&&h(i,s,t,t[16],l?p(s,t[16],e,ze):$(t[16]),_e),(!l||1&e)&&tt(n,t[0])},i(t){l||(Ht(i,t),l=!0)},o(t){Mt(i,t),l=!1},d(t){i&&i.d(t),t&&P(e),t&&P(n)}}}function Te(t){let e,n;const l=t[9].default,s=d(l,t,t[16],null);return{c(){e=j("div"),s&&s.c(),this.h()},l(t){e=K(t,"DIV",{class:!0});var n=G(e);s&&s.l(n),n.forEach(P),this.h()},h(){R(e,"class","accordion-body")},m(t,l){T(t,e,l),s&&s.m(e,null),n=!0},p(t,e){s&&s.p&&(!n||65536&e)&&h(s,l,t,t[16],n?p(l,t[16],e,null):$(t[16]),null)},i(t){n||(Ht(s,t),n=!0)},o(t){Mt(s,t),n=!1},d(t){t&&P(e),s&&s.d(t)}}}function Pe(t){let e,n,l,s,i;return n=new ve({props:{class:!t[2]&&"collapsed",$$slots:{default:[De]},$$scope:{ctx:t}}}),n.$on("click",t[10]),s=new Ae({props:{isOpen:t[2],class:"accordion-collapse",$$slots:{default:[Te]},$$scope:{ctx:t}}}),s.$on("introstart",t[11]),s.$on("introend",t[12]),s.$on("outrostart",t[13]),s.$on("outroend",t[14]),{c(){e=j("div"),Xt(n.$$.fragment),l=H(),Xt(s.$$.fragment),this.h()},l(t){e=K(t,"DIV",{class:!0});var i=G(e);Kt(n.$$.fragment,i),l=Z(i),Kt(s.$$.fragment,i),i.forEach(P),this.h()},h(){R(e,"class",t[3])},m(c,o){T(c,e,o),Jt(n,e,null),D(e,l),Jt(s,e,null),t[15](e),i=!0},p(t,[l]){const c={};4&l&&(c.class=!t[2]&&"collapsed"),65537&l&&(c.$$scope={dirty:l,ctx:t}),n.$set(c);const o={};4&l&&(o.isOpen=t[2]),65536&l&&(o.$$scope={dirty:l,ctx:t}),s.$set(o),(!i||8&l)&&R(e,"class",t[3])},i(t){i||(Ht(n.$$.fragment,t),Ht(s.$$.fragment,t),i=!0)},o(t){Mt(n.$$.fragment,t),Mt(s.$$.fragment,t),i=!1},d(l){l&&P(e),Qt(n),Qt(s),t[15](null)}}}function Ve(t,e,n){let l,s,i,c,{$$slots:o={},$$scope:a}=e,{class:r=""}=e,{header:d=""}=e,{active:f=!1}=e;const p=gt(),{stayOpen:h,toggle:$,open:m}=bt("accordion");u(t,m,(t=>n(8,i=t))),$t((()=>{f&&$(c)}));const g=()=>{h&&n(6,f=!f),$(c),p("toggle",!s)};return t.$$set=t=>{"class"in t&&n(7,r=t.class),"header"in t&&n(0,d=t.header),"active"in t&&n(6,f=t.active),"$$scope"in t&&n(16,a=t.$$scope)},t.$$.update=()=>{128&t.$$.dirty&&n(3,l=re(r,"accordion-item")),322&t.$$.dirty&&n(2,s=h?f:i===c)},[d,c,s,l,m,g,f,r,i,o,()=>g(),function(e){yt.call(this,t,e)},function(e){yt.call(this,t,e)},function(e){yt.call(this,t,e)},function(e){yt.call(this,t,e)},function(t){wt[t?"unshift":"push"]((()=>{c=t,n(1,c)}))},a]}function je(t,{delay:e=0,duration:l=400,easing:s=n}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:l,easing:s,css:t=>"opacity: "+t*i}}const Se=t=>({}),Be=t=>({});function He(t){let e,n,s,i,c,o,a,r=(t[3]||t[10].heading)&&Me(t),u=t[5]&&Fe(t);const d=[Ue,Re],f=[];function p(t,e){return t[1]?0:1}i=p(t),c=f[i]=d[i](t);let h=[t[9],{class:t[7]},{role:"alert"}],$={};for(let t=0;t<h.length;t+=1)$=l($,h[t]);return{c(){e=j("div"),r&&r.c(),n=H(),u&&u.c(),s=H(),c.c(),this.h()},l(t){e=K(t,"DIV",{class:!0,role:!0});var l=G(e);r&&r.l(l),n=Z(l),u&&u.l(l),s=Z(l),c.l(l),l.forEach(P),this.h()},h(){W(e,$)},m(t,l){T(t,e,l),r&&r.m(e,null),D(e,n),u&&u.m(e,null),D(e,s),f[i].m(e,null),a=!0},p(l,o){(t=l)[3]||t[10].heading?r?(r.p(t,o),1032&o&&Ht(r,1)):(r=Me(t),r.c(),Ht(r,1),r.m(e,n)):r&&(St(),Mt(r,1,1,(()=>{r=null})),Bt()),t[5]?u?u.p(t,o):(u=Fe(t),u.c(),u.m(e,s)):u&&(u.d(1),u=null);let m=i;i=p(t),i===m?f[i].p(t,o):(St(),Mt(f[m],1,1,(()=>{f[m]=null})),Bt(),c=f[i],c?c.p(t,o):(c=f[i]=d[i](t),c.c()),Ht(c,1),c.m(e,null)),W(e,$=qt(h,[512&o&&t[9],(!a||128&o)&&{class:t[7]},{role:"alert"}]))},i(n){a||(Ht(r),Ht(c),It((()=>{a&&(o||(o=Wt(e,je,t[4],!0)),o.run(1))})),a=!0)},o(n){Mt(r),Mt(c),o||(o=Wt(e,je,t[4],!1)),o.run(0),a=!1},d(t){t&&P(e),r&&r.d(),u&&u.d(),f[i].d(),t&&o&&o.end()}}}function Me(t){let e,n,l;const s=t[18].heading,i=d(s,t,t[17],Be);return{c(){e=j("h4"),n=B(t[3]),i&&i.c(),this.h()},l(l){e=K(l,"H4",{class:!0});var s=G(e);n=Q(s,t[3]),i&&i.l(s),s.forEach(P),this.h()},h(){R(e,"class","alert-heading")},m(t,s){T(t,e,s),D(e,n),i&&i.m(e,null),l=!0},p(t,e){(!l||8&e)&&tt(n,t[3]),i&&i.p&&(!l||131072&e)&&h(i,s,t,t[17],l?p(s,t[17],e,Se):$(t[17]),Be)},i(t){l||(Ht(i,t),l=!0)},o(t){Mt(i,t),l=!1},d(t){t&&P(e),i&&i.d(t)}}}function Fe(t){let e,n,l;return{c(){e=j("button"),this.h()},l(t){e=K(t,"BUTTON",{type:!0,class:!0,"aria-label":!0}),G(e).forEach(P),this.h()},h(){R(e,"type","button"),R(e,"class",t[6]),R(e,"aria-label",t[2])},m(s,i){T(s,e,i),n||(l=F(e,"click",(function(){o(t[8])&&t[8].apply(this,arguments)})),n=!0)},p(n,l){t=n,64&l&&R(e,"class",t[6]),4&l&&R(e,"aria-label",t[2])},d(t){t&&P(e),n=!1,l()}}}function Re(t){let e;const n=t[18].default,l=d(n,t,t[17],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||131072&s)&&h(l,n,t,t[17],e?p(n,t[17],s,null):$(t[17]),null)},i(t){e||(Ht(l,t),e=!0)},o(t){Mt(l,t),e=!1},d(t){l&&l.d(t)}}}function Ue(t){let n;return{c(){n=B(t[1])},l(e){n=Q(e,t[1])},m(t,e){T(t,n,e)},p(t,e){2&e&&tt(n,t[1])},i:e,o:e,d(t){t&&P(n)}}}function We(t){let e,n,l=t[0]&&He(t);return{c(){l&&l.c(),e=M()},l(t){l&&l.l(t),e=M()},m(t,s){l&&l.m(t,s),T(t,e,s),n=!0},p(t,[n]){t[0]?l?(l.p(t,n),1&n&&Ht(l,1)):(l=He(t),l.c(),Ht(l,1),l.m(e.parentNode,e)):l&&(St(),Mt(l,1,1,(()=>{l=null})),Bt())},i(t){n||(Ht(l),n=!0)},o(t){Mt(l),n=!1},d(t){l&&l.d(t),t&&P(e)}}}function qe(t,e,n){let s,i,c,o;const a=["class","children","color","closeClassName","closeAriaLabel","dismissible","heading","isOpen","toggle","fade","transition"];let r=g(e,a),{$$slots:u={},$$scope:d}=e;const f=v(u);let{class:p=""}=e,{children:h}=e,{color:$="success"}=e,{closeClassName:b=""}=e,{closeAriaLabel:y="Close"}=e,{dismissible:x=!1}=e,{heading:w}=e,{isOpen:E=!0}=e,{toggle:k}=e,{fade:O=!0}=e,{transition:N={duration:O?400:0}}=e;return t.$$set=t=>{e=l(l({},e),m(t)),n(9,r=g(e,a)),"class"in t&&n(11,p=t.class),"children"in t&&n(1,h=t.children),"color"in t&&n(12,$=t.color),"closeClassName"in t&&n(13,b=t.closeClassName),"closeAriaLabel"in t&&n(2,y=t.closeAriaLabel),"dismissible"in t&&n(14,x=t.dismissible),"heading"in t&&n(3,w=t.heading),"isOpen"in t&&n(0,E=t.isOpen),"toggle"in t&&n(15,k=t.toggle),"fade"in t&&n(16,O=t.fade),"transition"in t&&n(4,N=t.transition),"$$scope"in t&&n(17,d=t.$$scope)},t.$$.update=()=>{49152&t.$$.dirty&&n(5,s=x||k),32768&t.$$.dirty&&n(8,i=k||(()=>n(0,E=!1))),6176&t.$$.dirty&&n(7,c=re(p,"alert",`alert-${$}`,{"alert-dismissible":s})),8192&t.$$.dirty&&n(6,o=re("btn-close",b))},[E,h,y,w,N,s,o,c,i,r,f,p,$,b,x,k,O,d,u]}function Ge(t){let e,n,s,i;const c=[Ke,Xe],o=[];function a(t,e){return t[0]?0:1}n=a(t),s=o[n]=c[n](t);let r=[t[3],{class:t[2]}],u={};for(let t=0;t<r.length;t+=1)u=l(u,r[t]);return{c(){e=j("span"),s.c(),this.h()},l(t){e=K(t,"SPAN",{class:!0});var n=G(e);s.l(n),n.forEach(P),this.h()},h(){W(e,u)},m(t,l){T(t,e,l),o[n].m(e,null),i=!0},p(t,l){let d=n;n=a(t),n===d?o[n].p(t,l):(St(),Mt(o[d],1,1,(()=>{o[d]=null})),Bt(),s=o[n],s?s.p(t,l):(s=o[n]=c[n](t),s.c()),Ht(s,1),s.m(e,null)),W(e,u=qt(r,[8&l&&t[3],(!i||4&l)&&{class:t[2]}]))},i(t){i||(Ht(s),i=!0)},o(t){Mt(s),i=!1},d(t){t&&P(e),o[n].d()}}}function Ye(t){let e,n,s,i;const c=[Qe,Je],o=[];function a(t,e){return t[0]?0:1}n=a(t),s=o[n]=c[n](t);let r=[t[3],{href:t[1]},{class:t[2]}],u={};for(let t=0;t<r.length;t+=1)u=l(u,r[t]);return{c(){e=j("a"),s.c(),this.h()},l(t){e=K(t,"A",{href:!0,class:!0});var n=G(e);s.l(n),n.forEach(P),this.h()},h(){W(e,u)},m(t,l){T(t,e,l),o[n].m(e,null),i=!0},p(t,l){let d=n;n=a(t),n===d?o[n].p(t,l):(St(),Mt(o[d],1,1,(()=>{o[d]=null})),Bt(),s=o[n],s?s.p(t,l):(s=o[n]=c[n](t),s.c()),Ht(s,1),s.m(e,null)),W(e,u=qt(r,[8&l&&t[3],(!i||2&l)&&{href:t[1]},(!i||4&l)&&{class:t[2]}]))},i(t){i||(Ht(s),i=!0)},o(t){Mt(s),i=!1},d(t){t&&P(e),o[n].d()}}}function Xe(t){let e;const n=t[8].default,l=d(n,t,t[7],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||128&s)&&h(l,n,t,t[7],e?p(n,t[7],s,null):$(t[7]),null)},i(t){e||(Ht(l,t),e=!0)},o(t){Mt(l,t),e=!1},d(t){l&&l.d(t)}}}function Ke(t){let n;return{c(){n=B(t[0])},l(e){n=Q(e,t[0])},m(t,e){T(t,n,e)},p(t,e){1&e&&tt(n,t[0])},i:e,o:e,d(t){t&&P(n)}}}function Je(t){let e;const n=t[8].default,l=d(n,t,t[7],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||128&s)&&h(l,n,t,t[7],e?p(n,t[7],s,null):$(t[7]),null)},i(t){e||(Ht(l,t),e=!0)},o(t){Mt(l,t),e=!1},d(t){l&&l.d(t)}}}function Qe(t){let n;return{c(){n=B(t[0])},l(e){n=Q(e,t[0])},m(t,e){T(t,n,e)},p(t,e){1&e&&tt(n,t[0])},i:e,o:e,d(t){t&&P(n)}}}function Ze(t){let e,n,l,s;const i=[Ye,Ge],c=[];function o(t,e){return t[1]?0:1}return e=o(t),n=c[e]=i[e](t),{c(){n.c(),l=M()},l(t){n.l(t),l=M()},m(t,n){c[e].m(t,n),T(t,l,n),s=!0},p(t,[s]){let a=e;e=o(t),e===a?c[e].p(t,s):(St(),Mt(c[a],1,1,(()=>{c[a]=null})),Bt(),n=c[e],n?n.p(t,s):(n=c[e]=i[e](t),n.c()),Ht(n,1),n.m(l.parentNode,l))},i(t){s||(Ht(n),s=!0)},o(t){Mt(n),s=!1},d(t){c[e].d(t),t&&P(l)}}}function tn(t,e,n){let s;const i=["class","children","color","href","pill"];let c=g(e,i),{$$slots:o={},$$scope:a}=e,{class:r=""}=e,{children:u}=e,{color:d="secondary"}=e,{href:f}=e,{pill:p=!1}=e;return t.$$set=t=>{e=l(l({},e),m(t)),n(3,c=g(e,i)),"class"in t&&n(4,r=t.class),"children"in t&&n(0,u=t.children),"color"in t&&n(5,d=t.color),"href"in t&&n(1,f=t.href),"pill"in t&&n(6,p=t.pill),"$$scope"in t&&n(7,a=t.$$scope)},t.$$.update=()=>{112&t.$$.dirty&&n(2,s=re(r,"badge",`text-bg-${d}`,!!p&&"rounded-pill"))},[u,f,s,c,r,d,p,a,o]}function en(t){let e;const n=t[9].default,l=d(n,t,t[8],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||256&s)&&h(l,n,t,t[8],e?p(n,t[8],s,null):$(t[8]),null)},i(t){e||(Ht(l,t),e=!0)},o(t){Mt(l,t),e=!1},d(t){l&&l.d(t)}}}function nn(t){let n;return{c(){n=B(t[1])},l(e){n=Q(e,t[1])},m(t,e){T(t,n,e)},p(t,e){2&e&&tt(n,t[1])},i:e,o:e,d(t){t&&P(n)}}}function ln(t){let e,n,s,i,c;const o=[nn,en],a=[];function r(t,e){return t[1]?0:1}s=r(t),i=a[s]=o[s](t);let u=[{style:t[2]},t[4],{class:t[0]}],d={};for(let t=0;t<u.length;t+=1)d=l(d,u[t]);return{c(){e=j("nav"),n=j("ol"),i.c(),this.h()},l(t){e=K(t,"NAV",{style:!0,class:!0});var l=G(e);n=K(l,"OL",{class:!0});var s=G(n);i.l(s),s.forEach(P),l.forEach(P),this.h()},h(){R(n,"class",t[3]),W(e,d)},m(t,l){T(t,e,l),D(e,n),a[s].m(n,null),c=!0},p(t,[l]){let f=s;s=r(t),s===f?a[s].p(t,l):(St(),Mt(a[f],1,1,(()=>{a[f]=null})),Bt(),i=a[s],i?i.p(t,l):(i=a[s]=o[s](t),i.c()),Ht(i,1),i.m(n,null)),(!c||8&l)&&R(n,"class",t[3]),W(e,d=qt(u,[(!c||4&l)&&{style:t[2]},16&l&&t[4],(!c||1&l)&&{class:t[0]}]))},i(t){c||(Ht(i),c=!0)},o(t){Mt(i),c=!1},d(t){t&&P(e),a[s].d()}}}function sn(t,e,n){let s,i;const c=["class","children","divider","listClassName","style"];let o=g(e,c),{$$slots:a={},$$scope:r}=e,{class:u=""}=e,{children:d}=e,{divider:f}=e,{listClassName:p=""}=e,{style:h}=e;return t.$$set=t=>{e=l(l({},e),m(t)),n(4,o=g(e,c)),"class"in t&&n(0,u=t.class),"children"in t&&n(1,d=t.children),"divider"in t&&n(5,f=t.divider),"listClassName"in t&&n(6,p=t.listClassName),"style"in t&&n(7,h=t.style),"$$scope"in t&&n(8,r=t.$$scope)},t.$$.update=()=>{64&t.$$.dirty&&n(3,s=re("breadcrumb",p)),160&t.$$.dirty&&n(2,i=f?`--bs-breadcrumb-divider: '${f}'; ${h||""}`:h)},[u,d,i,s,o,f,p,h,r,a]}function cn(t){let e;const n=t[6].default,l=d(n,t,t[5],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||32&s)&&h(l,n,t,t[5],e?p(n,t[5],s,null):$(t[5]),null)},i(t){e||(Ht(l,t),e=!0)},o(t){Mt(l,t),e=!1},d(t){l&&l.d(t)}}}function on(t){let n;return{c(){n=B(t[1])},l(e){n=Q(e,t[1])},m(t,e){T(t,n,e)},p(t,e){2&e&&tt(n,t[1])},i:e,o:e,d(t){t&&P(n)}}}function an(t){let e,n,s,i,c;const o=[on,cn],a=[];function r(t,e){return t[1]?0:1}n=r(t),s=a[n]=o[n](t);let u=[t[3],{class:t[2]},{"aria-current":i=t[0]?"page":void 0}],d={};for(let t=0;t<u.length;t+=1)d=l(d,u[t]);return{c(){e=j("li"),s.c(),this.h()},l(t){e=K(t,"LI",{class:!0,"aria-current":!0});var n=G(e);s.l(n),n.forEach(P),this.h()},h(){W(e,d)},m(t,l){T(t,e,l),a[n].m(e,null),c=!0},p(t,[l]){let f=n;n=r(t),n===f?a[n].p(t,l):(St(),Mt(a[f],1,1,(()=>{a[f]=null})),Bt(),s=a[n],s?s.p(t,l):(s=a[n]=o[n](t),s.c()),Ht(s,1),s.m(e,null)),W(e,d=qt(u,[8&l&&t[3],(!c||4&l)&&{class:t[2]},(!c||1&l&&i!==(i=t[0]?"page":void 0))&&{"aria-current":i}]))},i(t){c||(Ht(s),c=!0)},o(t){Mt(s),c=!1},d(t){t&&P(e),a[n].d()}}}function rn(t,e,n){let s;const i=["class","active","children"];let c=g(e,i),{$$slots:o={},$$scope:a}=e,{class:r=""}=e,{active:u=!1}=e,{children:d}=e;return t.$$set=t=>{e=l(l({},e),m(t)),n(3,c=g(e,i)),"class"in t&&n(4,r=t.class),"active"in t&&n(0,u=t.active),"children"in t&&n(1,d=t.children),"$$scope"in t&&n(5,a=t.$$scope)},t.$$.update=()=>{17&t.$$.dirty&&n(2,s=re(r,!!u&&"active","breadcrumb-item"))},[u,d,s,c,r,a,o]}function un(t){let e,n,s,i,c;const o=t[17].default,a=d(o,t,t[16],null),r=a||function(t){let e,n,l,s;const i=[pn,fn],c=[];function o(t,e){return t[1]?0:1}return e=o(t),n=c[e]=i[e](t),{c(){n.c(),l=M()},l(t){n.l(t),l=M()},m(t,n){c[e].m(t,n),T(t,l,n),s=!0},p(t,s){let a=e;e=o(t),e===a?c[e].p(t,s):(St(),Mt(c[a],1,1,(()=>{c[a]=null})),Bt(),n=c[e],n?n.p(t,s):(n=c[e]=i[e](t),n.c()),Ht(n,1),n.m(l.parentNode,l))},i(t){s||(Ht(n),s=!0)},o(t){Mt(n),s=!1},d(t){c[e].d(t),t&&P(l)}}}(t);let u=[t[8],{class:t[6]},{disabled:t[2]},{value:t[4]},{"aria-label":n=t[7]||t[5]}],f={};for(let t=0;t<u.length;t+=1)f=l(f,u[t]);return{c(){e=j("button"),r&&r.c(),this.h()},l(t){e=K(t,"BUTTON",{class:!0,"aria-label":!0});var n=G(e);r&&r.l(n),n.forEach(P),this.h()},h(){W(e,f)},m(n,l){T(n,e,l),r&&r.m(e,null),e.autofocus&&e.focus(),t[21](e),s=!0,i||(c=F(e,"click",t[19]),i=!0)},p(t,l){a?a.p&&(!s||65536&l)&&h(a,o,t,t[16],s?p(o,t[16],l,null):$(t[16]),null):r&&r.p&&(!s||65538&l)&&r.p(t,s?l:-1),W(e,f=qt(u,[256&l&&t[8],(!s||64&l)&&{class:t[6]},(!s||4&l)&&{disabled:t[2]},(!s||16&l)&&{value:t[4]},(!s||160&l&&n!==(n=t[7]||t[5]))&&{"aria-label":n}]))},i(t){s||(Ht(r,t),s=!0)},o(t){Mt(r,t),s=!1},d(n){n&&P(e),r&&r.d(n),t[21](null),i=!1,c()}}}function dn(t){let e,n,s,i,c,o,a;const r=[$n,hn],u=[];function d(t,e){return t[1]?0:1}n=d(t),s=u[n]=r[n](t);let f=[t[8],{class:t[6]},{disabled:t[2]},{href:t[3]},{"aria-label":i=t[7]||t[5]}],p={};for(let t=0;t<f.length;t+=1)p=l(p,f[t]);return{c(){e=j("a"),s.c(),this.h()},l(t){e=K(t,"A",{class:!0,disabled:!0,href:!0,"aria-label":!0});var n=G(e);s.l(n),n.forEach(P),this.h()},h(){W(e,p)},m(l,s){T(l,e,s),u[n].m(e,null),t[20](e),c=!0,o||(a=F(e,"click",t[18]),o=!0)},p(t,l){let o=n;n=d(t),n===o?u[n].p(t,l):(St(),Mt(u[o],1,1,(()=>{u[o]=null})),Bt(),s=u[n],s?s.p(t,l):(s=u[n]=r[n](t),s.c()),Ht(s,1),s.m(e,null)),W(e,p=qt(f,[256&l&&t[8],(!c||64&l)&&{class:t[6]},(!c||4&l)&&{disabled:t[2]},(!c||8&l)&&{href:t[3]},(!c||160&l&&i!==(i=t[7]||t[5]))&&{"aria-label":i}]))},i(t){c||(Ht(s),c=!0)},o(t){Mt(s),c=!1},d(l){l&&P(e),u[n].d(),t[20](null),o=!1,a()}}}function fn(t){let e;const n=t[17].default,l=d(n,t,t[16],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||65536&s)&&h(l,n,t,t[16],e?p(n,t[16],s,null):$(t[16]),null)},i(t){e||(Ht(l,t),e=!0)},o(t){Mt(l,t),e=!1},d(t){l&&l.d(t)}}}function pn(t){let n;return{c(){n=B(t[1])},l(e){n=Q(e,t[1])},m(t,e){T(t,n,e)},p(t,e){2&e&&tt(n,t[1])},i:e,o:e,d(t){t&&P(n)}}}function hn(t){let e;const n=t[17].default,l=d(n,t,t[16],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||65536&s)&&h(l,n,t,t[16],e?p(n,t[16],s,null):$(t[16]),null)},i(t){e||(Ht(l,t),e=!0)},o(t){Mt(l,t),e=!1},d(t){l&&l.d(t)}}}function $n(t){let n;return{c(){n=B(t[1])},l(e){n=Q(e,t[1])},m(t,e){T(t,n,e)},p(t,e){2&e&&tt(n,t[1])},i:e,o:e,d(t){t&&P(n)}}}function mn(t){let e,n,l,s;const i=[dn,un],c=[];function o(t,e){return t[3]?0:1}return e=o(t),n=c[e]=i[e](t),{c(){n.c(),l=M()},l(t){n.l(t),l=M()},m(t,n){c[e].m(t,n),T(t,l,n),s=!0},p(t,[s]){let a=e;e=o(t),e===a?c[e].p(t,s):(St(),Mt(c[a],1,1,(()=>{c[a]=null})),Bt(),n=c[e],n?n.p(t,s):(n=c[e]=i[e](t),n.c()),Ht(n,1),n.m(l.parentNode,l))},i(t){s||(Ht(n),s=!0)},o(t){Mt(n),s=!1},d(t){c[e].d(t),t&&P(l)}}}function gn(t,e,n){let s,i,c;const o=["class","active","block","children","close","color","disabled","href","inner","outline","size","value"];let a=g(e,o),{$$slots:r={},$$scope:u}=e,{class:d=""}=e,{active:f=!1}=e,{block:p=!1}=e,{children:h}=e,{close:$=!1}=e,{color:v="secondary"}=e,{disabled:b=!1}=e,{href:y=""}=e,{inner:x}=e,{outline:w=!1}=e,{size:E=null}=e,{value:k=""}=e;return t.$$set=t=>{n(22,e=l(l({},e),m(t))),n(8,a=g(e,o)),"class"in t&&n(9,d=t.class),"active"in t&&n(10,f=t.active),"block"in t&&n(11,p=t.block),"children"in t&&n(1,h=t.children),"close"in t&&n(12,$=t.close),"color"in t&&n(13,v=t.color),"disabled"in t&&n(2,b=t.disabled),"href"in t&&n(3,y=t.href),"inner"in t&&n(0,x=t.inner),"outline"in t&&n(14,w=t.outline),"size"in t&&n(15,E=t.size),"value"in t&&n(4,k=t.value),"$$scope"in t&&n(16,u=t.$$scope)},t.$$.update=()=>{n(7,s=e["aria-label"]),65024&t.$$.dirty&&n(6,i=re(d,$?"btn-close":"btn",$||`btn${w?"-outline":""}-${v}`,!!E&&`btn-${E}`,!!p&&"d-block w-100",{active:f})),4096&t.$$.dirty&&n(5,c=$?"Close":null)},e=m(e),[x,h,b,y,k,c,i,s,a,d,f,p,$,v,w,E,u,r,function(e){yt.call(this,t,e)},function(e){yt.call(this,t,e)},function(t){wt[t?"unshift":"push"]((()=>{x=t,n(0,x)}))},function(t){wt[t?"unshift":"push"]((()=>{x=t,n(0,x)}))}]}class vn extends ee{constructor(t){super(),te(this,t,gn,mn,a,{class:9,active:10,block:11,children:1,close:12,color:13,disabled:2,href:3,inner:0,outline:14,size:15,value:4})}}var bn="top",yn="bottom",xn="right",wn="left",En="auto",kn=[bn,yn,xn,wn],On="start",Nn="end",In="clippingParents",Ln="viewport",Cn="popper",An="reference",zn=kn.reduce((function(t,e){return t.concat([e+"-"+On,e+"-"+Nn])}),[]),_n=[].concat(kn,[En]).reduce((function(t,e){return t.concat([e,e+"-"+On,e+"-"+Nn])}),[]),Dn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Tn(t){return t?(t.nodeName||"").toLowerCase():null}function Pn(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Vn(t){return t instanceof Pn(t).Element||t instanceof Element}function jn(t){return t instanceof Pn(t).HTMLElement||t instanceof HTMLElement}function Sn(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Pn(t).ShadowRoot||t instanceof ShadowRoot)}var Bn={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},l=e.attributes[t]||{},s=e.elements[t];jn(s)&&Tn(s)&&(Object.assign(s.style,n),Object.keys(l).forEach((function(t){var e=l[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var l=e.elements[t],s=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});jn(l)&&Tn(l)&&(Object.assign(l.style,i),Object.keys(s).forEach((function(t){l.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Hn(t){return t.split("-")[0]}var Mn=Math.max,Fn=Math.min,Rn=Math.round;function Un(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Wn(){return!/^((?!chrome|android).)*safari/i.test(Un())}function qn(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var l=t.getBoundingClientRect(),s=1,i=1;e&&jn(t)&&(s=t.offsetWidth>0&&Rn(l.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Rn(l.height)/t.offsetHeight||1);var c=(Vn(t)?Pn(t):window).visualViewport,o=!Wn()&&n,a=(l.left+(o&&c?c.offsetLeft:0))/s,r=(l.top+(o&&c?c.offsetTop:0))/i,u=l.width/s,d=l.height/i;return{width:u,height:d,top:r,right:a+u,bottom:r+d,left:a,x:a,y:r}}function Gn(t){var e=qn(t),n=t.offsetWidth,l=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-l)<=1&&(l=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:l}}function Yn(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Sn(n)){var l=e;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Xn(t){return Pn(t).getComputedStyle(t)}function Kn(t){return["table","td","th"].indexOf(Tn(t))>=0}function Jn(t){return((Vn(t)?t.ownerDocument:t.document)||window.document).documentElement}function Qn(t){return"html"===Tn(t)?t:t.assignedSlot||t.parentNode||(Sn(t)?t.host:null)||Jn(t)}function Zn(t){return jn(t)&&"fixed"!==Xn(t).position?t.offsetParent:null}function tl(t){for(var e=Pn(t),n=Zn(t);n&&Kn(n)&&"static"===Xn(n).position;)n=Zn(n);return n&&("html"===Tn(n)||"body"===Tn(n)&&"static"===Xn(n).position)?e:n||function(t){var e=/firefox/i.test(Un());if(/Trident/i.test(Un())&&jn(t)&&"fixed"===Xn(t).position)return null;var n=Qn(t);for(Sn(n)&&(n=n.host);jn(n)&&["html","body"].indexOf(Tn(n))<0;){var l=Xn(n);if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||e&&"filter"===l.willChange||e&&l.filter&&"none"!==l.filter)return n;n=n.parentNode}return null}(t)||e}function el(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function nl(t,e,n){return Mn(t,Fn(e,n))}function ll(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function sl(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var il={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,l=t.name,s=t.options,i=n.elements.arrow,c=n.modifiersData.popperOffsets,o=Hn(n.placement),a=el(o),r=[wn,xn].indexOf(o)>=0?"height":"width";if(i&&c){var u=function(t,e){return ll("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:sl(t,kn))}(s.padding,n),d=Gn(i),f="y"===a?bn:wn,p="y"===a?yn:xn,h=n.rects.reference[r]+n.rects.reference[a]-c[a]-n.rects.popper[r],$=c[a]-n.rects.reference[a],m=tl(i),g=m?"y"===a?m.clientHeight||0:m.clientWidth||0:0,v=h/2-$/2,b=u[f],y=g-d[r]-u[p],x=g/2-d[r]/2+v,w=nl(b,x,y),E=a;n.modifiersData[l]=((e={})[E]=w,e.centerOffset=w-x,e)}},effect:function(t){var e=t.state,n=t.options.element,l=void 0===n?"[data-popper-arrow]":n;null!=l&&("string"!=typeof l||(l=e.elements.popper.querySelector(l)))&&Yn(e.elements.popper,l)&&(e.elements.arrow=l)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cl(t){return t.split("-")[1]}var ol={top:"auto",right:"auto",bottom:"auto",left:"auto"};function al(t){var e,n=t.popper,l=t.popperRect,s=t.placement,i=t.variation,c=t.offsets,o=t.position,a=t.gpuAcceleration,r=t.adaptive,u=t.roundOffsets,d=t.isFixed,f=c.x,p=void 0===f?0:f,h=c.y,$=void 0===h?0:h,m="function"==typeof u?u({x:p,y:$}):{x:p,y:$};p=m.x,$=m.y;var g=c.hasOwnProperty("x"),v=c.hasOwnProperty("y"),b=wn,y=bn,x=window;if(r){var w=tl(n),E="clientHeight",k="clientWidth";if(w===Pn(n)&&"static"!==Xn(w=Jn(n)).position&&"absolute"===o&&(E="scrollHeight",k="scrollWidth"),s===bn||(s===wn||s===xn)&&i===Nn)y=yn,$-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[E])-l.height,$*=a?1:-1;if(s===wn||(s===bn||s===yn)&&i===Nn)b=xn,p-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[k])-l.width,p*=a?1:-1}var O,N=Object.assign({position:o},r&&ol),I=!0===u?function(t,e){var n=t.x,l=t.y,s=e.devicePixelRatio||1;return{x:Rn(n*s)/s||0,y:Rn(l*s)/s||0}}({x:p,y:$},Pn(n)):{x:p,y:$};return p=I.x,$=I.y,a?Object.assign({},N,((O={})[y]=v?"0":"",O[b]=g?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+$+"px)":"translate3d("+p+"px, "+$+"px, 0)",O)):Object.assign({},N,((e={})[y]=v?$+"px":"",e[b]=g?p+"px":"",e.transform="",e))}var rl={passive:!0};var ul={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,l=t.options,s=l.scroll,i=void 0===s||s,c=l.resize,o=void 0===c||c,a=Pn(e.elements.popper),r=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&r.forEach((function(t){t.addEventListener("scroll",n.update,rl)})),o&&a.addEventListener("resize",n.update,rl),function(){i&&r.forEach((function(t){t.removeEventListener("scroll",n.update,rl)})),o&&a.removeEventListener("resize",n.update,rl)}},data:{}},dl={left:"right",right:"left",bottom:"top",top:"bottom"};function fl(t){return t.replace(/left|right|bottom|top/g,(function(t){return dl[t]}))}var pl={start:"end",end:"start"};function hl(t){return t.replace(/start|end/g,(function(t){return pl[t]}))}function $l(t){var e=Pn(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ml(t){return qn(Jn(t)).left+$l(t).scrollLeft}function gl(t){var e=Xn(t),n=e.overflow,l=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+l)}function vl(t){return["html","body","#document"].indexOf(Tn(t))>=0?t.ownerDocument.body:jn(t)&&gl(t)?t:vl(Qn(t))}function bl(t,e){var n;void 0===e&&(e=[]);var l=vl(t),s=l===(null==(n=t.ownerDocument)?void 0:n.body),i=Pn(l),c=s?[i].concat(i.visualViewport||[],gl(l)?l:[]):l,o=e.concat(c);return s?o:o.concat(bl(Qn(c)))}function yl(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xl(t,e,n){return e===Ln?yl(function(t,e){var n=Pn(t),l=Jn(t),s=n.visualViewport,i=l.clientWidth,c=l.clientHeight,o=0,a=0;if(s){i=s.width,c=s.height;var r=Wn();(r||!r&&"fixed"===e)&&(o=s.offsetLeft,a=s.offsetTop)}return{width:i,height:c,x:o+ml(t),y:a}}(t,n)):Vn(e)?function(t,e){var n=qn(t,!1,"fixed"===e);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,n):yl(function(t){var e,n=Jn(t),l=$l(t),s=null==(e=t.ownerDocument)?void 0:e.body,i=Mn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Mn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-l.scrollLeft+ml(t),a=-l.scrollTop;return"rtl"===Xn(s||n).direction&&(o+=Mn(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:c,x:o,y:a}}(Jn(t)))}function wl(t,e,n,l){var s="clippingParents"===e?function(t){var e=bl(Qn(t)),n=["absolute","fixed"].indexOf(Xn(t).position)>=0&&jn(t)?tl(t):t;return Vn(n)?e.filter((function(t){return Vn(t)&&Yn(t,n)&&"body"!==Tn(t)})):[]}(t):[].concat(e),i=[].concat(s,[n]),c=i[0],o=i.reduce((function(e,n){var s=xl(t,n,l);return e.top=Mn(s.top,e.top),e.right=Fn(s.right,e.right),e.bottom=Fn(s.bottom,e.bottom),e.left=Mn(s.left,e.left),e}),xl(t,c,l));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function El(t){var e,n=t.reference,l=t.element,s=t.placement,i=s?Hn(s):null,c=s?cl(s):null,o=n.x+n.width/2-l.width/2,a=n.y+n.height/2-l.height/2;switch(i){case bn:e={x:o,y:n.y-l.height};break;case yn:e={x:o,y:n.y+n.height};break;case xn:e={x:n.x+n.width,y:a};break;case wn:e={x:n.x-l.width,y:a};break;default:e={x:n.x,y:n.y}}var r=i?el(i):null;if(null!=r){var u="y"===r?"height":"width";switch(c){case On:e[r]=e[r]-(n[u]/2-l[u]/2);break;case Nn:e[r]=e[r]+(n[u]/2-l[u]/2)}}return e}function kl(t,e){void 0===e&&(e={});var n=e,l=n.placement,s=void 0===l?t.placement:l,i=n.strategy,c=void 0===i?t.strategy:i,o=n.boundary,a=void 0===o?In:o,r=n.rootBoundary,u=void 0===r?Ln:r,d=n.elementContext,f=void 0===d?Cn:d,p=n.altBoundary,h=void 0!==p&&p,$=n.padding,m=void 0===$?0:$,g=ll("number"!=typeof m?m:sl(m,kn)),v=f===Cn?An:Cn,b=t.rects.popper,y=t.elements[h?v:f],x=wl(Vn(y)?y:y.contextElement||Jn(t.elements.popper),a,u,c),w=qn(t.elements.reference),E=El({reference:w,element:b,strategy:"absolute",placement:s}),k=yl(Object.assign({},b,E)),O=f===Cn?k:w,N={top:x.top-O.top+g.top,bottom:O.bottom-x.bottom+g.bottom,left:x.left-O.left+g.left,right:O.right-x.right+g.right},I=t.modifiersData.offset;if(f===Cn&&I){var L=I[s];Object.keys(N).forEach((function(t){var e=[xn,yn].indexOf(t)>=0?1:-1,n=[bn,yn].indexOf(t)>=0?"y":"x";N[t]+=L[n]*e}))}return N}function Ol(t,e){void 0===e&&(e={});var n=e,l=n.placement,s=n.boundary,i=n.rootBoundary,c=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,r=void 0===a?_n:a,u=cl(l),d=u?o?zn:zn.filter((function(t){return cl(t)===u})):kn,f=d.filter((function(t){return r.indexOf(t)>=0}));0===f.length&&(f=d);var p=f.reduce((function(e,n){return e[n]=kl(t,{placement:n,boundary:s,rootBoundary:i,padding:c})[Hn(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}var Nl={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,l=t.name;if(!e.modifiersData[l]._skip){for(var s=n.mainAxis,i=void 0===s||s,c=n.altAxis,o=void 0===c||c,a=n.fallbackPlacements,r=n.padding,u=n.boundary,d=n.rootBound