function N(){}function V(t,e){for(const n in e)t[n]=e[n];return t}function q(t){return t()}function D(){return Object.create(null)}function y(t){t.forEach(q)}function O(t){return typeof t=="function"}function gt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let w;function yt(t,e){return w||(w=document.createElement("a")),w.href=e,t===w.href}function X(t){return Object.keys(t).length===0}function Y(t,...e){if(t==null)return N;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function xt(t,e,n){t.$$.on_destroy.push(Y(e,n))}function bt(t,e,n,i){if(t){const r=G(t,e,n,i);return t[0](r)}}function G(t,e,n,i){return t[1]&&i?V(n.ctx.slice(),t[1](i(e))):n.ctx}function wt(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 c=[],s=Math.max(e.dirty.length,r.length);for(let l=0;l32){const e=[],n=t.ctx.length/32;for(let i=0;i>1);n(r)<=i?t=r+1:e=r}return t}function nt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const o=[];for(let u=0;u0&&e[n[r]].claim_order<=u?r+1:et(1,r,b=>e[n[b]].claim_order,u))-1;i[o]=n[f]+1;const a=f+1;n[a]=o,r=Math.max(a,r)}const c=[],s=[];let l=e.length-1;for(let o=n[r]+1;o!=0;o=i[o-1]){for(c.push(e[o-1]);l>=o;l--)s.push(e[l]);l--}for(;l>=0;l--)s.push(e[l]);c.reverse(),s.sort((o,u)=>o.claim_order-u.claim_order);for(let o=0,u=0;o=c[u].claim_order;)u++;const f=ut.removeEventListener(e,n,i)}function St(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function ct(t){return Array.from(t.childNodes)}function F(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function I(t,e,n,i,r=!1){F(t);const c=(()=>{for(let s=t.claim_info.last_index;s=0;s--){const l=t[s];if(e(l)){const o=n(l);return o===void 0?t.splice(s,1):t[s]=o,r?o===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,l}}return i()})();return c.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,c}function J(t,e,n,i){return I(t,r=>r.nodeName===e,r=>{const c=[];for(let s=0;sr.removeAttribute(s))},()=>i(e))}function kt(t,e,n){return J(t,e,n,k)}function jt(t,e,n){return J(t,e,n,R)}function lt(t,e){return I(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},()=>j(e),!0)}function Ht(t){return lt(t," ")}function z(t,e,n){for(let i=n;i{s.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{c=L(i.contentWindow,"resize",e)}),it(t,i),()=>{(r||c&&i.contentWindow)&&c(),p(i)}}function at(t,e,{bubbles:n=!1,cancelable:i=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,i,e),r}function Bt(t,e){const n=[];let i=0;for(const r of e.childNodes)if(r.nodeType===8){const c=r.textContent.trim();c===`HEAD_${t}_END`?(i-=1,n.push(r)):c===`HEAD_${t}_START`&&(i+=1,n.push(r))}else i>0&&n.push(r);return n}class ft{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=R(n.nodeName):this.e=k(n.nodeName),this.t=n,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let n=0;n{const r=t.$$.callbacks[e];if(r){const c=at(e,n,{cancelable:i});return r.slice().forEach(s=>{s.call(t,c)}),!c.defaultPrevented}return!0}}function Gt(t,e){return x().$$.context.set(t,e),e}function Rt(t){return x().$$.context.get(t)}const h=[],P=[],v=[],W=[],K=Promise.resolve();let C=!1;function Q(){C||(C=!0,K.then(U))}function Ft(){return Q(),K}function S(t){v.push(t)}const T=new Set;let _=0;function U(){if(_!==0)return;const t=g;do{try{for(;_{E.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Qt(t,e){const n={},i={},r={$$scope:1};let c=t.length;for(;c--;){const s=t[c],l=e[c];if(l){for(const o in s)o in l||(i[o]=1);for(const o in l)r[o]||(n[o]=l[o],r[o]=1);t[c]=l}else for(const o in s)r[o]=1}for(const s in i)s in n||(n[s]=void 0);return n}function Ut(t){return typeof t=="object"&&t!==null?t:{}}function Vt(t){t&&t.c()}function Xt(t,e){t&&t.l(e)}function ht(t,e,n,i){const{fragment:r,after_update:c}=t.$$;r&&r.m(e,n),i||S(()=>{const s=t.$$.on_mount.map(q).filter(O);t.$$.on_destroy?t.$$.on_destroy.push(...s):y(s),t.$$.on_mount=[]}),c.forEach(S)}function mt(t,e){const n=t.$$;n.fragment!==null&&(y(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function pt(t,e){t.$$.dirty[0]===-1&&(h.push(t),Q(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const M=H.length?H[0]:b;return u.ctx&&r(u.ctx[a],u.ctx[a]=M)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](M),f&&pt(t,a)),b}):[],u.update(),f=!0,y(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){Z();const a=ct(e.target);u.fragment&&u.fragment.l(a),a.forEach(p)}else u.fragment&&u.fragment.c();e.intro&&_t(t.$$.fragment),ht(t,e.target,e.anchor,e.customElement),tt(),U()}m(o)}class Zt{$destroy(){mt(this,1),this.$destroy=N}$on(e,n){if(!O(n))return 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&&!X(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{Mt as $,Ft as A,N as B,L as C,R as D,jt as E,rt as F,y as G,Ot as H,bt as I,$t as J,vt as K,wt as L,xt as M,Bt as N,At as O,S as P,zt as Q,O as R,Zt as S,yt as T,Nt as U,V,Et as W,Qt as X,Ut as Y,Rt as Z,B as _,Tt as a,Gt as a0,ot as b,Ht as c,Jt as d,Ct as e,_t as f,It as g,p as h,Yt as i,qt as j,k,kt as l,ct as m,St as n,Wt as o,Lt as p,j as q,lt as r,gt as s,Kt as t,Dt as u,Pt as v,Vt as w,Xt as x,ht as y,mt as z};