import{aB as ee,j as V,N as X,ac as te,e as re,aC as U,Z as B,E as f,h as c,aj as v,w as ne,z,F as W,H as se,L as p,aD as S,T as F,v as w,aE as A,aF as m,aG as Y,aH as ie,aI as C,b as Z,ae,I as ue,X as M,x as N,n as oe,C as le,aJ as $,aK as fe,af as he,aL as ce,aM as de,aN as _e,aO as J,aP as pe,az as K,y as I,aQ as ve,aR as ge,aS as be,aT as ye,aU as me,aV as x,aW as Ee,V as Te,aX as P,D as O,aY as we,W as Ne,O as Re,aZ as Se,p as Oe,G as De,a_ as Ae,a as Le,a$ as j,m as Fe,b0 as Me,au as Ce,o as Ie}from"./CQO205-B.js";function xe(t){let e=0,r=X(0),s;return()=>{ee()&&(V(r),te(()=>(e===0&&(s=re(()=>t(()=>U(r)))),e+=1,()=>{B(()=>{e-=1,e===0&&(s?.(),s=void 0,U(r))})})))}}var Pe=he|ce|de;function ke(t,e,r){new He(t,e,r)}class He{parent;#r=!1;#t;#v=c?f:null;#s;#h;#i;#n=null;#e=null;#a=null;#u=null;#o=null;#c=0;#l=0;#d=!1;#f=null;#y=xe(()=>(this.#f=X(this.#c),()=>{this.#f=null}));constructor(e,r,s){this.#t=e,this.#s=r,this.#h=s,this.parent=v.b,this.#r=!!this.#s.pending,this.#i=ne(()=>{if(v.b=this,c){const n=this.#v;z(),n.nodeType===W&&n.data===se?this.#E():this.#m()}else{var i=this.#g();try{this.#n=p(()=>s(i))}catch(n){this.error(n)}this.#l>0?this.#p():this.#r=!1}return()=>{this.#o?.remove()}},Pe),c&&(this.#t=f)}#m(){try{this.#n=p(()=>this.#h(this.#t))}catch(e){this.error(e)}this.#r=!1}#E(){const e=this.#s.pending;e&&(this.#e=p(()=>e(this.#t)),S.enqueue(()=>{var r=this.#g();this.#n=this.#_(()=>(S.ensure(),p(()=>this.#h(r)))),this.#l>0?this.#p():(F(this.#e,()=>{this.#e=null}),this.#r=!1)}))}#g(){var e=this.#t;return this.#r&&(this.#o=w(),this.#t.before(this.#o),e=this.#o),e}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#_(e){var r=v,s=C,i=Z;A(this.#i),m(this.#i),Y(this.#i.ctx);try{return e()}catch(n){return ie(n),null}finally{A(r),m(s),Y(i)}}#p(){const e=this.#s.pending;this.#n!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#o),ae(this.#n,this.#u)),this.#e===null&&(this.#e=p(()=>e(this.#t)))}#b(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(e);return}this.#l+=e,this.#l===0&&(this.#r=!1,this.#e&&F(this.#e,()=>{this.#e=null}),this.#u&&(this.#t.before(this.#u),this.#u=null))}update_pending_count(e){this.#b(e),this.#c+=e,this.#f&&ue(this.#f,this.#c)}get_effect_pending(){return this.#y(),V(this.#f)}error(e){var r=this.#s.onerror;let s=this.#s.failed;if(this.#d||!r&&!s)throw e;this.#n&&(M(this.#n),this.#n=null),this.#e&&(M(this.#e),this.#e=null),this.#a&&(M(this.#a),this.#a=null),c&&(N(this.#v),oe(),N(le()));var i=!1,n=!1;const a=()=>{if(i){_e();return}i=!0,n&&fe(),S.ensure(),this.#c=0,this.#a!==null&&F(this.#a,()=>{this.#a=null}),this.#r=this.has_pending_snippet(),this.#n=this.#_(()=>(this.#d=!1,p(()=>this.#h(this.#t)))),this.#l>0?this.#p():this.#r=!1};var h=C;try{m(null),n=!0,r?.(e,a),n=!1}catch(l){$(l,this.#i&&this.#i.parent)}finally{m(h)}s&&B(()=>{this.#a=this.#_(()=>{S.ensure(),this.#d=!0;try{return p(()=>{s(this.#t,()=>e,()=>a)})}catch(l){return $(l,this.#i.parent),null}finally{this.#d=!1}})})}}const Ve=["touchstart","touchmove"];function Be(t){return Ve.includes(t)}const We=new Set,q=new Set;function Ue(t,e,r,s={}){function i(n){if(s.capture||T.call(e,n),!n.cancelBubble)return pe(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?B(()=>{e.addEventListener(t,i,s)}):e.addEventListener(t,i,s),i}function Ge(t,e,r,s,i){var n={capture:s,passive:i},a=Ue(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&J(()=>{e.removeEventListener(t,a,n)})}let G=null;function T(t){var e=this,r=e.ownerDocument,s=t.type,i=t.composedPath?.()||[],n=i[0]||t.target;G=t;var a=0,h=G===t&&t.__root;if(h){var l=i.indexOf(h);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var g=i.indexOf(e);if(g===-1)return;l<=g&&(a=l)}if(n=i[a]||t.target,n!==e){K(t,"currentTarget",{configurable:!0,get(){return n||r}});var L=C,d=v;m(null),A(null);try{for(var u,o=[];n!==null;){var b=n.assignedSlot||n.parentNode||n.host||null;try{var E=n["__"+s];E!=null&&(!n.disabled||t.target===n)&&E.call(n,t)}catch(R){u?o.push(R):u=R}if(t.cancelBubble||b===e||b===null)break;n=b}if(u){for(let R of o)queueMicrotask(()=>{throw R});throw u}}finally{t.__root=e,delete t.currentTarget,m(L),A(d)}}}function Ye(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("",""),e.content}function _(t,e){var r=v;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Xe(t,e){var r=(e&ge)!==0,s=(e&be)!==0,i,n=!t.startsWith("");return()=>{if(c)return _(f,null),f;i===void 0&&(i=Ye(n?t:""+t),r||(i=I(i)));var a=s||ve?document.importNode(i,!0):i.cloneNode(!0);if(r){var h=I(a),l=a.lastChild;_(h,l)}else _(a,a);return a}}function ze(t=""){if(!c){var e=w(t+"");return _(e,e),e}var r=f;return r.nodeType!==me&&(r.before(r=w()),N(r)),_(r,r),r}function Ze(){if(c)return _(f,null),f;var t=document.createDocumentFragment(),e=document.createComment(""),r=w();return t.append(e,r),_(e,r),t}function Je(t,e){if(c){var r=v;((r.f&ye)===0||r.nodes.end===null)&&(r.nodes.end=f),z();return}t!==null&&t.before(e)}function Ke(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function $e(t,e){return Q(t,e)}function Qe(t,e){x(),e.intro=e.intro??!1;const r=e.target,s=c,i=f;try{for(var n=I(r);n&&(n.nodeType!==W||n.data!==Ee);)n=Te(n);if(!n)throw P;O(!0),N(n);const a=Q(t,{...e,anchor:n});return O(!1),a}catch(a){if(a instanceof Error&&a.message.split(` `).some(h=>h.startsWith("https://svelte.dev/e/")))throw a;return a!==P&&console.warn("Failed to hydrate: ",a),e.recover===!1&&we(),x(),Ne(r),O(!1),$e(t,e)}finally{O(s),N(i)}}const y=new Map;function Q(t,{target:e,anchor:r,props:s={},events:i,context:n,intro:a=!0}){x();var h=new Set,l=d=>{for(var u=0;u{var d=r??e.appendChild(w());return ke(d,{pending:()=>{}},u=>{if(n){Oe({});var o=Z;o.c=n}if(i&&(s.$$events=i),c&&_(u,null),g=t(u,s)||{},c&&(v.nodes.end=f,f===null||f.nodeType!==W||f.data!==De))throw Ae(),P;n&&Le()}),()=>{for(var u of h){e.removeEventListener(u,T);var o=y.get(u);--o===0?(document.removeEventListener(u,T),y.delete(u)):y.set(u,o)}q.delete(l),d!==r&&d.parentNode?.removeChild(d)}});return k.set(g,L),g}let k=new WeakMap;function et(t,e){const r=k.get(t);return r?(k.delete(t),r(e)):Promise.resolve()}let D=!1,H=Symbol();function tt(t,e,r){const s=r[e]??={store:null,source:Fe(void 0),unsubscribe:j};if(s.store!==t&&!(H in r))if(s.unsubscribe(),s.store=t??null,t==null)s.source.v=void 0,s.unsubscribe=j;else{var i=!0;s.unsubscribe=Me(t,n=>{i?s.source.v=n:Ie(s.source,n)}),i=!1}return t&&H in r?Ce(t):V(s.source)}function rt(){const t={};function e(){J(()=>{for(var r in t)t[r].unsubscribe();K(t,H,{enumerable:!1,value:!0})})}return[t,e]}function nt(t){var e=D;try{return D=!1,[t(),D]}finally{D=e}}const je="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(je);export{Je as a,Ke as b,tt as c,nt as d,Ge as e,Xe as f,Ze as g,Qe as h,$e as m,rt as s,ze as t,et as u};