sveltestrap
Version:

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