function O(){}function Y(t,e){for(const n in e)t[n]=e[n];return t}function G(t){return t()}function I(){return Object.create(null)}function $(t){t.forEach(G)}function Z(t){return typeof t=="function"}function bt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function tt(t){return Object.keys(t).length===0}function et(t,...e){if(t==null)return O;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function xt(t,e,n){t.$$.on_destroy.push(et(e,n))}function wt(t,e,n,i){if(t){const r=J(t,e,n,i);return t[0](r)}}function J(t,e,n,i){return t[1]&&i?Y(n.ctx.slice(),t[1](i(e))):n.ctx}function $t(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const o=[],c=Math.max(e.dirty.length,r.length);for(let u=0;u32){const e=[],n=t.ctx.length/32;for(let i=0;i>1);n(r)<=i?t=r+1:e=r}return t}function ct(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const s=[];for(let l=0;l0&&e[n[r]].claim_order<=l?r+1:rt(1,r,d=>e[n[d]].claim_order,l))-1;i[s]=n[f]+1;const _=f+1;n[_]=s,r=Math.max(_,r)}const o=[],c=[];let u=e.length-1;for(let s=n[r]+1;s!=0;s=i[s-1]){for(o.push(e[s-1]);u>=s;u--)c.push(e[u]);u--}for(;u>=0;u--)c.push(e[u]);o.reverse(),c.sort((s,l)=>s.claim_order-l.claim_order);for(let s=0,l=0;s=o[l].claim_order;)l++;const f=lt.removeEventListener(e,n,i)}function Ct(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Pt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function Tt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function at(t){return Array.from(t.childNodes)}function ft(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function K(t,e,n,i,r=!1){ft(t);const o=(()=>{for(let c=t.claim_info.last_index;c=0;c--){const u=t[c];if(e(u)){const s=n(u);return s===void 0?t.splice(c,1):t[c]=s,r?s===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,u}}return i()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function Q(t,e,n,i){return K(t,r=>r.nodeName===e,r=>{const o=[];for(let c=0;cr.removeAttribute(c))},()=>i(e))}function Bt(t,e,n){return Q(t,e,n,ut)}function Dt(t,e,n){return Q(t,e,n,ot)}function dt(t,e){return K(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>q(e),!0)}function Lt(t){return dt(t," ")}function Ot(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function qt(t,e){t.value=e==null?"":e}function zt(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function _t(t,e,{bubbles:n=!1,cancelable:i=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,i,e),r}let w;function x(t){w=t}function z(){if(!w)throw new Error("Function called outside component initialization");return w}function Ft(t){z().$$.on_mount.push(t)}function Ht(t){z().$$.after_update.push(t)}function It(){const t=z();return(e,n,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[e];if(r){const o=_t(e,n,{cancelable:i});return r.slice().forEach(c=>{c.call(t,o)}),!o.defaultPrevented}return!0}}function Wt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const b=[],W=[],N=[],B=[],R=Promise.resolve();let D=!1;function U(){D||(D=!0,R.then(V))}function Gt(){return U(),R}function L(t){N.push(t)}function Jt(t){B.push(t)}const T=new Set;let k=0;function V(){const t=w;do{for(;k{S.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Rt(t,e){mt(t,1,1,()=>{e.delete(t.key)})}function Ut(t,e,n,i,r,o,c,u,s,l,f,_){let d=t.length,m=o.length,h=d;const M={};for(;h--;)M[t[h].key]=h;const v=[],j=new Map,C=new Map;for(h=m;h--;){const a=_(r,o,h),p=n(a);let y=c.get(p);y?i&&y.p(a,e):(y=l(p,a),y.c()),j.set(p,v[h]=y),p in M&&C.set(p,Math.abs(h-M[p]))}const F=new Set,H=new Set;function P(a){X(a,1),a.m(u,f),c.set(a.key,a),f=a.first,m--}for(;d&&m;){const a=v[m-1],p=t[d-1],y=a.key,E=p.key;a===p?(f=a.first,d--,m--):j.has(E)?!c.has(y)||F.has(y)?P(a):H.has(E)?d--:C.get(y)>C.get(E)?(H.add(y),P(a)):(F.add(E),d--):(s(p,c),d--)}for(;d--;){const a=t[d];j.has(a.key)||s(a,c)}for(;m;)P(v[m-1]);return v}function Vt(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function Xt(t){t&&t.c()}function Yt(t,e){t&&t.l(e)}function pt(t,e,n,i){const{fragment:r,on_mount:o,on_destroy:c,after_update:u}=t.$$;r&&r.m(e,n),i||L(()=>{const s=o.map(G).filter(Z);c?c.push(...s):$(s),t.$$.on_mount=[]}),u.forEach(L)}function yt(t,e){const n=t.$$;n.fragment!==null&&($(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function gt(t,e){t.$$.dirty[0]===-1&&(b.push(t),U(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const h=m.length?m[0]:d;return l.ctx&&r(l.ctx[_],l.ctx[_]=h)&&(!l.skip_bound&&l.bound[_]&&l.bound[_](h),f&>(t,_)),d}):[],l.update(),f=!0,$(l.before_update),l.fragment=i?i(l.ctx):!1,e.target){if(e.hydrate){nt();const _=at(e.target);l.fragment&&l.fragment.l(_),_.forEach(lt)}else l.fragment&&l.fragment.c();e.intro&&X(t.$$.fragment),pt(t,e.target,e.anchor,e.customElement),it(),V()}x(s)}class te{$destroy(){yt(this,1),this.$destroy=O}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!tt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{O as A,wt as B,vt as C,Et as D,$t as E,st as F,xt as G,ot as H,Dt as I,kt as J,W as K,jt as L,$ as M,qt as N,Pt as O,Ct as P,It as Q,Wt as R,te as S,Vt as T,Jt as U,St as V,Ut as W,Rt as X,At as a,Nt as b,Lt as c,Qt as d,Mt as e,X as f,Kt as g,lt as h,Zt as i,Ht as j,ut as k,Bt as l,at as m,Tt as n,Ft as o,zt as p,q,dt as r,bt as s,mt as t,Ot as u,Xt as v,Yt as w,pt as x,yt as y,Gt as z};