function M(){}const dt=t=>t;function ht(t,e){for(const n in e)t[n]=e[n];return t}function Y(t){return t()}function U(){return Object.create(null)}function k(t){t.forEach(Y)}function Z(t){return typeof t=="function"}function Ht(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let P;function It(t,e){return P||(P=document.createElement("a")),P.href=e,t===P.href}function mt(t){return Object.keys(t).length===0}function tt(t,...e){if(t==null)return M;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Wt(t){let e;return tt(t,n=>e=n)(),e}function Gt(t,e,n){t.$$.on_destroy.push(tt(e,n))}function Jt(t,e,n,r){if(t){const s=et(t,e,n,r);return t[0](s)}}function et(t,e,n,r){return t[1]&&r?ht(n.ctx.slice(),t[1](r(e))):n.ctx}function Kt(t,e,n,r){if(t[2]&&r){const s=t[2](r(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const c=[],i=Math.max(e.dirty.length,s.length);for(let o=0;o32){const e=[],n=t.ctx.length/32;for(let r=0;rwindow.performance.now():()=>Date.now(),K=nt?t=>requestAnimationFrame(t):M;const E=new Set;function it(t){E.forEach(e=>{e.c(t)||(E.delete(e),e.f())}),E.size!==0&&K(it)}function yt(t){let e;return E.size===0&&K(it),{promise:new Promise(n=>{E.add(e={c:t,f:n})}),abort(){E.delete(e)}}}let F=!1;function gt(){F=!0}function bt(){F=!1}function wt(t,e,n,r){for(;t>1);n(s)<=r?t=s+1:e=s}return t}function $t(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let u=0;u0&&e[n[s]].claim_order<=u?s+1:wt(1,s,a=>e[n[a]].claim_order,u))-1;r[l]=n[d]+1;const f=d+1;n[f]=l,s=Math.max(f,s)}const c=[],i=[];let o=e.length-1;for(let l=n[s]+1;l!=0;l=r[l-1]){for(c.push(e[l-1]);o>=l;o--)i.push(e[o]);o--}for(;o>=0;o--)i.push(e[o]);c.reverse(),i.sort((l,u)=>l.claim_order-u.claim_order);for(let l=0,u=0;l=c[u].claim_order;)u++;const d=ut.removeEventListener(e,n,r)}function ne(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ie(t){return function(e){e.target===this&&t.call(this,e)}}function re(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Nt(t){return Array.from(t.childNodes)}function Ct(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function lt(t,e,n,r,s=!1){Ct(t);const c=(()=>{for(let i=t.claim_info.last_index;i=0;i--){const o=t[i];if(e(o)){const l=n(o);return l===void 0?t.splice(i,1):t[i]=l,s?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=i,o}}return r()})();return c.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,c}function ct(t,e,n,r){return lt(t,s=>s.nodeName===e,s=>{const c=[];for(let i=0;is.removeAttribute(i))},()=>r(e))}function se(t,e,n){return ct(t,e,n,st)}function le(t,e,n){return ct(t,e,n,At)}function jt(t,e){return lt(t,n=>n.nodeType===3,n=>{const r=""+e;if(n.data.startsWith(r)){if(n.data.length!==r.length)return n.splitText(r.length)}else n.data=r},()=>Q(e),!0)}function ce(t){return jt(t," ")}function oe(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function ue(t,e){t.value=e==null?"":e}function ae(t,e,n,r){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function fe(t,e,n){t.classList[n?"add":"remove"](e)}function ot(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,n,r,e),s}function _e(t,e=document.body){return Array.from(e.querySelectorAll(t))}const L=new Map;let z=0;function Mt(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function Dt(t,e){const n={stylesheet:vt(e),rules:{}};return L.set(t,n),n}function V(t,e,n,r,s,c,i,o=0){const l=16.666/r;let u=`{ `;for(let p=0;p<=1;p+=l){const g=e+(n-e)*c(p);u+=p*100+`%{${i(g,1-g)}} `}const d=u+`100% {${i(n,1-n)}} }`,f=`__svelte_${Mt(d)}_${o}`,a=rt(t),{stylesheet:h,rules:_}=L.get(a)||Dt(a,t);_[f]||(_[f]=!0,h.insertRule(`@keyframes ${f} ${d}`,h.cssRules.length));const y=t.style.animation||"";return t.style.animation=`${y?`${y}, `:""}${f} ${r}ms linear ${s}ms 1 both`,z+=1,f}function qt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?c=>c.indexOf(e)<0:c=>c.indexOf("__svelte")===-1),s=n.length-r.length;s&&(t.style.animation=r.join(", "),z-=s,z||Pt())}function Pt(){K(()=>{z||(L.forEach(t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}}),L.clear())})}let j;function C(t){j=t}function S(){if(!j)throw new Error("Function called outside component initialization");return j}function de(t){S().$$.on_mount.push(t)}function he(t){S().$$.after_update.push(t)}function me(t){S().$$.on_destroy.push(t)}function pe(){const t=S();return(e,n,{cancelable:r=!1}={})=>{const s=t.$$.callbacks[e];if(s){const c=ot(e,n,{cancelable:r});return s.slice().forEach(i=>{i.call(t,c)}),!c.defaultPrevented}return!0}}function ye(t,e){return S().$$.context.set(t,e),e}function ge(t){return S().$$.context.get(t)}const N=[],X=[],T=[],G=[],ut=Promise.resolve();let J=!1;function at(){J||(J=!0,ut.then(ft))}function be(){return at(),ut}function B(t){T.push(t)}function we(t){G.push(t)}const I=new Set;let R=0;function ft(){const t=j;do{for(;R{A=null})),A}function W(t,e,n){t.dispatchEvent(ot(`${e?"intro":"outro"}${n}`))}const O=new Set;let $;function $e(){$={r:0,c:[],p:$}}function xe(){$.r||k($.c),$=$.p}function _t(t,e){t&&t.i&&(O.delete(t),t.i(e))}function Ot(t,e,n,r){if(t&&t.o){if(O.has(t))return;O.add(t),$.c.push(()=>{O.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}}const Lt={duration:0};function ve(t,e,n,r){let s=e(t,n),c=r?0:1,i=null,o=null,l=null;function u(){l&&qt(t,l)}function d(a,h){const _=a.b-c;return h*=Math.abs(_),{a:c,b:a.b,d:_,duration:h,start:a.start,end:a.start+h,group:a.group}}function f(a){const{delay:h=0,duration:_=300,easing:y=dt,tick:p=M,css:g}=s||Lt,x={start:pt()+h,b:a};a||(x.group=$,$.r+=1),i||o?o=x:(g&&(u(),l=V(t,c,a,_,h,y,g)),a&&p(0,1),i=d(x,_),B(()=>W(t,a,"start")),yt(v=>{if(o&&v>o.start&&(i=d(o,_),o=null,W(t,i.b,"start"),g&&(u(),l=V(t,c,i.b,i.duration,0,y,s.css))),i){if(v>=i.end)p(c=i.b,1-c),W(t,i.b,"end"),o||(i.b?u():--i.group.r||k(i.group.c)),i=null;else if(v>=i.start){const D=v-i.start;c=i.a+i.d*y(D/i.duration),p(c,1-c)}}return!!(i||o)}))}return{run(a){Z(s)?Tt().then(()=>{s=s(),f(a)}):f(a)},end(){u(),i=o=null}}}const Ee=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function ke(t,e){Ot(t,1,1,()=>{e.delete(t.key)})}function Se(t,e,n,r,s,c,i,o,l,u,d,f){let a=t.length,h=c.length,_=a;const y={};for(;_--;)y[t[_].key]=_;const p=[],g=new Map,x=new Map;for(_=h;_--;){const m=f(s,c,_),b=n(m);let w=i.get(b);w?r&&w.p(m,e):(w=u(b,m),w.c()),g.set(b,p[_]=w),b in y&&x.set(b,Math.abs(_-y[b]))}const v=new Set,D=new Set;function H(m){_t(m,1),m.m(o,d),i.set(m.key,m),d=m.first,h--}for(;a&&h;){const m=p[h-1],b=t[a-1],w=m.key,q=b.key;m===b?(d=m.first,a--,h--):g.has(q)?!i.has(w)||v.has(w)?H(m):D.has(q)?a--:x.get(w)>x.get(q)?(D.add(w),H(m)):(v.add(q),a--):(l(b,i),a--)}for(;a--;){const m=t[a];g.has(m.key)||l(m,i)}for(;h;)H(p[h-1]);return p}function Ae(t,e){const n={},r={},s={$$scope:1};let c=t.length;for(;c--;){const i=t[c],o=e[c];if(o){for(const l in i)l in o||(r[l]=1);for(const l in o)s[l]||(n[l]=o[l],s[l]=1);t[c]=o}else for(const l in i)s[l]=1}for(const i in r)i in n||(n[i]=void 0);return n}function Ne(t){return typeof t=="object"&&t!==null?t:{}}function Ce(t,e,n){const r=t.$$.props[e];r!==void 0&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function je(t){t&&t.c()}function Me(t,e){t&&t.l(e)}function zt(t,e,n,r){const{fragment:s,on_mount:c,on_destroy:i,after_update:o}=t.$$;s&&s.m(e,n),r||B(()=>{const l=c.map(Y).filter(Z);i?i.push(...l):k(l),t.$$.on_mount=[]}),o.forEach(B)}function Bt(t,e){const n=t.$$;n.fragment!==null&&(k(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ft(t,e){t.$$.dirty[0]===-1&&(N.push(t),at(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const _=h.length?h[0]:a;return u.ctx&&s(u.ctx[f],u.ctx[f]=_)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](_),d&&Ft(t,f)),a}):[],u.update(),d=!0,k(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){gt();const f=Nt(e.target);u.fragment&&u.fragment.l(f),f.forEach(St)}else u.fragment&&u.fragment.c();e.intro&&_t(t.$$.fragment),zt(t,e.target,e.anchor,e.customElement),bt(),ft()}C(l)}class qe{$destroy(){Bt(this,1),this.$destroy=M}$on(e,n){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s!==-1&&r.splice(s,1)}}$set(e){this.$$set&&!mt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{X as $,Ne as A,Bt as B,ht as C,be as D,M as E,At as F,le as G,kt as H,ue as I,ee as J,ne as K,k as L,Gt as M,fe as N,dt as O,Vt as P,Z as Q,B as R,qe as S,ve as T,Jt as U,Qt as V,Ut as W,Kt as X,pe as Y,me as Z,Ee as _,Nt as a,_e as a0,Wt as a1,Yt as a2,ie as a3,ge as a4,It as a5,we as a6,Se as a7,ke as a8,Ce as a9,re as b,se as c,St as d,st as e,ae as f,Xt as g,jt as h,De as i,oe as j,Zt as k,te as l,ce as m,$e as n,Ot as o,xe as p,_t as q,ye as r,Ht as s,Q as t,he as u,de as v,je as w,Me as x,zt as y,Ae as z};