var $=Object.defineProperty;var C=(e,t,n)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var f=(e,t,n)=>C(e,typeof t!="symbol"?t+"":t,n);let h=!1;function I(){h=!0}function z(){h=!1}function D(e,t,n,i){for(;e>1);n(l)<=i?e=l+1:t=l}return e}function H(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const c=[];for(let u=0;u0&&t[n[l]].claim_order<=u?l+1:D(1,l,w=>t[n[w]].claim_order,u))-1;i[c]=n[a]+1;const g=a+1;n[g]=c,l=Math.max(g,l)}const r=[],s=[];let o=t.length-1;for(let c=n[l]+1;c!=0;c=i[c-1]){for(r.push(t[c-1]);o>=c;o--)s.push(t[o]);o--}for(;o>=0;o--)s.push(t[o]);r.reverse(),s.sort((c,u)=>c.claim_order-u.claim_order);for(let c=0,u=0;c=r[u].claim_order;)u++;const a=ue.removeEventListener(t,n,i)}function T(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const B=["width","height"];function W(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:n[i]&&n[i].set&&B.indexOf(i)===-1?e[i]=t[i]:T(e,i,t[i])}function V(e,t){for(const n in t)T(e,n,t[n])}function X(e){return e.dataset.svelteH}function Y(e){let t;return{p(...n){t=n,t.forEach(i=>e.push(i))},r(){t.forEach(n=>e.splice(e.indexOf(n),1))}}}function Z(e){return e===""?null:+e}function ee(e){return Array.from(e.childNodes)}function N(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function A(e,t,n,i,l=!1){N(e);const r=(()=>{for(let s=e.claim_info.last_index;s=0;s--){const o=e[s];if(t(o)){const c=n(o);return c===void 0?e.splice(s,1):e[s]=c,l?c===void 0&&e.claim_info.last_index--:e.claim_info.last_index=s,o}}return i()})();return r.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,r}function b(e,t,n,i){return A(e,l=>l.nodeName===t,l=>{const r=[];for(let s=0;sl.removeAttribute(s))},()=>i(t))}function te(e,t,n){return b(e,t,n,y)}function ne(e,t,n){return b(e,t,n,E)}function R(e,t){return A(e,n=>n.nodeType===3,n=>{const i=""+t;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>x(t),!0)}function ie(e){return R(e," ")}function v(e,t,n){for(let i=n;it.__value)}function _e(e,t,n){e.classList.toggle(t,!!n)}function j(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function he(e,t){const n=[];let i=0;for(const l of t.childNodes)if(l.nodeType===8){const r=l.textContent.trim();r===`HEAD_${e}_END`?(i-=1,n.push(l)):r===`HEAD_${e}_START`&&(i+=1,n.push(l))}else i>0&&n.push(l);return n}class q{constructor(t=!1){f(this,"is_svg",!1);f(this,"e");f(this,"n");f(this,"t");f(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,i=null){this.e||(this.is_svg?this.e=E(n.nodeName):this.e=y(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n{const l=e.$$.callbacks[t];if(l){const r=j(t,n,{cancelable:i});return l.slice().forEach(s=>{s.call(e,r)}),!r.defaultPrevented}return!0}}function ve(e,t){return _().$$.context.set(e,t),t}function Ee(e){return _().$$.context.get(e)}function Te(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(i=>i.call(this,t))}export{z as A,Q as B,ge as C,Te as D,Y as E,W as F,re as G,d as H,E as I,ne as J,ye as K,_e as L,ue as M,fe as N,oe as O,ae as P,Z as Q,xe as R,de as S,he as T,V as U,y as a,J as b,le as c,m as d,K as e,te as f,Ee as g,ee as h,O as i,R as j,ie as k,T as l,k as m,se as n,pe as o,X as p,U as q,ce as r,ve as s,x as t,S as u,F as v,me as w,p as x,j as y,I as z};