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