function y(){}function Q(t,n){for(const e in n)t[e]=n[e];return t}function L(t){return t()}function T(){return Object.create(null)}function g(t){t.forEach(L)}function P(t){return typeof t=="function"}function ft(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let x;function dt(t,n){return x||(x=document.createElement("a")),x.href=n,t===x.href}function R(t){return Object.keys(t).length===0}function U(t,...n){if(t==null)return y;const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function _t(t,n,e){t.$$.on_destroy.push(U(n,e))}function ht(t,n,e,i){if(t){const r=z(t,n,e,i);return t[0](r)}}function z(t,n,e,i){return t[1]&&i?Q(e.ctx.slice(),t[1](i(n))):e.ctx}function mt(t,n,e,i){if(t[2]&&i){const r=t[2](i(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const s=[],l=Math.max(n.dirty.length,r.length);for(let u=0;u<l;u+=1)s[u]=n.dirty[u]|r[u];return s}return n.dirty|r}return n.dirty}function pt(t,n,e,i,r,s){if(r){const l=z(n,e,i,s);t.p(l,r)}}function yt(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let i=0;i<e;i++)n[i]=-1;return n}return-1}function gt(t){return t==null?"":t}function bt(t){return t&&P(t.destroy)?t.destroy:y}const B=typeof window<"u";let xt=B?()=>window.performance.now():()=>Date.now(),D=B?t=>requestAnimationFrame(t):y;const _=new Set;function O(t){_.forEach(n=>{n.c(t)||(_.delete(n),n.f())}),_.size!==0&&D(O)}function wt(t){let n;return _.size===0&&D(O),{promise:new Promise(e=>{_.add(n={c:t,f:e})}),abort(){_.delete(n)}}}let E=!1;function V(){E=!0}function W(){E=!1}function X(t,n,e,i){for(;t<n;){const r=t+(n-t>>1);e(r)<=i?t=r+1:n=r}return t}function Y(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let o=0;o<n.length;o++){const f=n[o];f.claim_order!==void 0&&c.push(f)}n=c}const e=new Int32Array(n.length+1),i=new Int32Array(n.length);e[0]=-1;let r=0;for(let c=0;c<n.length;c++){const o=n[c].claim_order,f=(r>0&&n[e[r]].claim_order<=o?r+1:X(1,r,b=>n[e[b]].claim_order,o))-1;i[c]=e[f]+1;const a=f+1;e[a]=c,r=Math.max(a,r)}const s=[],l=[];let u=n.length-1;for(let c=e[r]+1;c!=0;c=i[c-1]){for(s.push(n[c-1]);u>=c;u--)l.push(n[u]);u--}for(;u>=0;u--)l.push(n[u]);s.reverse(),l.sort((c,o)=>c.claim_order-o.claim_order);for(let c=0,o=0;c<l.length;c++){for(;o<s.length&&l[c].claim_order>=s[o].claim_order;)o++;const f=o<s.length?s[o]:null;t.insertBefore(l[c],f)}}function Z(t,n){if(E){for(Y(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;n!==t.actual_end_child?(n.claim_order!==void 0||n.parentNode!==t)&&t.insertBefore(n,t.actual_end_child):t.actual_end_child=n.nextSibling}else(n.parentNode!==t||n.nextSibling!==null)&&t.appendChild(n)}function $t(t,n,e){E&&!e?Z(t,n):(n.parentNode!==t||n.nextSibling!=e)&&t.insertBefore(n,e||null)}function tt(t){t.parentNode.removeChild(t)}function vt(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function nt(t){return document.createElement(t)}function et(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function j(t){return document.createTextNode(t)}function Et(){return j(" ")}function At(){return j("")}function St(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function Nt(t){return function(n){return n.preventDefault(),t.call(this,n)}}function jt(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function it(t){return Array.from(t.childNodes)}function rt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function F(t,n,e,i,r=!1){rt(t);const s=(()=>{for(let l=t.claim_info.last_index;l<t.length;l++){const u=t[l];if(n(u)){const c=e(u);return c===void 0?t.splice(l,1):t[l]=c,r||(t.claim_info.last_index=l),u}}for(let l=t.claim_info.last_index-1;l>=0;l--){const u=t[l];if(n(u)){const c=e(u);return c===void 0?t.splice(l,1):t[l]=c,r?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=l,u}}return i()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function H(t,n,e,i){return F(t,r=>r.nodeName===n,r=>{const s=[];for(let l=0;l<r.attributes.length;l++){const u=r.attributes[l];e[u.name]||s.push(u.name)}s.forEach(l=>r.removeAttribute(l))},()=>i(n))}function kt(t,n,e){return H(t,n,e,nt)}function qt(t,n,e){return H(t,n,e,et)}function lt(t,n){return F(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>j(n),!0)}function Tt(t){return lt(t," ")}function Ct(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function Mt(t,n,e,i){e===null?t.style.removeProperty(n):t.style.setProperty(n,e,i?"important":"")}function Lt(t,n,e){t.classList[e?"add":"remove"](n)}function Pt(t,n=document.body){return Array.from(n.querySelectorAll(t))}let p;function m(t){p=t}function I(){if(!p)throw new Error("Function called outside component initialization");return p}function zt(t){I().$$.on_mount.push(t)}function Bt(t){I().$$.after_update.push(t)}const h=[],C=[],$=[],M=[],G=Promise.resolve();let S=!1;function J(){S||(S=!0,G.then(K))}function Dt(){return J(),G}function N(t){$.push(t)}const A=new Set;let w=0;function K(){const t=p;do{for(;w<h.length;){const n=h[w];w++,m(n),ct(n.$$)}for(m(null),h.length=0,w=0;C.length;)C.pop()();for(let n=0;n<$.length;n+=1){const e=$[n];A.has(e)||(A.add(e),e())}$.length=0}while(h.length);for(;M.length;)M.pop()();S=!1,A.clear(),m(t)}function ct(t){if(t.fragment!==null){t.update(),g(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(N)}}const v=new Set;let d;function Ot(){d={r:0,c:[],p:d}}function Ft(){d.r||g(d.c),d=d.p}function ot(t,n){t&&t.i&&(v.delete(t),t.i(n))}function Ht(t,n,e,i){if(t&&t.o){if(v.has(t))return;v.add(t),d.c.push(()=>{v.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}}const It=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Gt(t){t&&t.c()}function Jt(t,n){t&&t.l(n)}function ut(t,n,e,i){const{fragment:r,on_mount:s,on_destroy:l,after_update:u}=t.$$;r&&r.m(n,e),i||N(()=>{const c=s.map(L).filter(P);l?l.push(...c):g(c),t.$$.on_mount=[]}),u.forEach(N)}function st(t,n){const e=t.$$;e.fragment!==null&&(g(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function at(t,n){t.$$.dirty[0]===-1&&(h.push(t),J(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function Kt(t,n,e,i,r,s,l,u=[-1]){const c=p;m(t);const o=t.$$={fragment:null,ctx:null,props:s,update:y,not_equal:r,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(c?c.$$.context:[])),callbacks:T(),dirty:u,skip_bound:!1,root:n.target||c.$$.root};l&&l(o.root);let f=!1;if(o.ctx=e?e(t,n.props||{},(a,b,...k)=>{const q=k.length?k[0]:b;return o.ctx&&r(o.ctx[a],o.ctx[a]=q)&&(!o.skip_bound&&o.bound[a]&&o.bound[a](q),f&&at(t,a)),b}):[],o.update(),f=!0,g(o.before_update),o.fragment=i?i(o.ctx):!1,n.target){if(n.hydrate){V();const a=it(n.target);o.fragment&&o.fragment.l(a),a.forEach(tt)}else o.fragment&&o.fragment.c();n.intro&&ot(t.$$.fragment),ut(t,n.target,n.anchor,n.customElement),W(),K()}m(c)}class Qt{$destroy(){st(this,1),this.$destroy=y}$on(n,e){const i=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return i.push(e),()=>{const r=i.indexOf(e);r!==-1&&i.splice(r,1)}}$set(n){this.$$set&&!R(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}export{y as A,et as B,qt as C,dt as D,Lt as E,Z as F,_t as G,ht as H,pt as I,yt as J,mt as K,xt as L,wt as M,St as N,g as O,Pt as P,bt as Q,vt as R,Qt as S,It as T,Nt as U,gt as V,Et as a,$t as b,Tt as c,Ft as d,At as e,ot as f,Ot as g,tt as h,Kt as i,Bt as j,nt as k,kt as l,it as m,jt as n,zt as o,Mt as p,j as q,lt as r,ft as s,Ht as t,Ct as u,Gt as v,Jt as w,ut as x,st as y,Dt as z};
