const zt="[",Gt="]",X={},w=Symbol(),Jt=["touchstart","touchmove"];function Qt(t){return Jt.includes(t)}const Xt=!1;var Nt=Array.isArray,te=Array.from,ee=Object.defineProperty,j=Object.getOwnPropertyDescriptor,re=Object.prototype,ne=Array.prototype,le=Object.getPrototypeOf;const D=2,Ot=4,yt=8,Rt=16,A=32,ut=64,ct=128,K=256,et=512,y=1024,C=2048,U=4096,rt=8192,Y=16384,ue=32768,ie=65536,se=1<<19,oe=1<<20,ft=Symbol("$state");function ae(t){return t===this.v}function fe(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ve(){throw new Error("https://svelte.dev/e/hydration_failed")}function ce(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function _e(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function de(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function he(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let pe=!1;function N(t,e){var r={f:0,v:t,reactions:null,equals:ae,version:0};return r}function O(t,e){return p!==null&&Ae()&&p.f&(D|Rt)&&(F===null||!F.includes(t))&&he(),ye(t,e)}function ye(t,e){return t.equals(e)||(t.v=e,t.version=Bt(),kt(t,C),d!==null&&d.f&y&&!(d.f&A)&&(h!==null&&h.includes(t)?(b(d,C),at(d)):k===null?De([t]):k.push(t))),e}function kt(t,e){var r=t.reactions;if(r!==null)for(var l=r.length,n=0;n=Z.v&&O(Z,T+1)}mt(s)}return!0},ownKeys(a){G(s);var i=Reflect.ownKeys(a).filter(c=>{var _=n.get(c);return _===void 0||_.v!==w});for(var[o,f]of n)f.v!==w&&!(o in a)&&i.push(o);return i},setPrototypeOf(){_e()}})}function mt(t,e=1){O(t,t.v+e)}var xt,St,Ft;function dt(){if(xt===void 0){xt=window;var t=Element.prototype,e=Node.prototype;St=j(e,"firstChild").get,Ft=j(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function we(t=""){return document.createTextNode(t)}function Ct(t){return St.call(t)}function wt(t){return Ft.call(t)}function ge(t){t.textContent=""}function Pt(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;rnew Promise(l=>{r.outro?Re(e,()=>{P(e),l(void 0)}):(P(e),l(void 0))})}function Te(t){return it(Ot,t,!1)}function Ne(t,e=!0){return it(yt|A,t,!0,e)}function qt(t){var e=t.teardown;if(e!==null){const r=p;L(null);try{e.call(null)}finally{L(r)}}}function Lt(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r{P(t),e()})}function ke(t,e){var r=t.length;if(r>0){var l=()=>--r||e();for(var n of t)n.out(l)}else e()}function jt(t,e,r){if(!(t.f&rt)){if(t.f^=rt,t.transitions!==null)for(const s of t.transitions)(s.is_global||r)&&e.push(s);for(var l=t.first;l!==null;){var n=l.next,u=(l.f&ie)!==0||(l.f&A)!==0;jt(l,e,u?r:!1),l=n}}}let tt=!1,nt=!1,lt=null,q=!1;function bt(t){q=t}let ht=[],H=0;let p=null;function L(t){p=t}let d=null;function M(t){d=t}let F=null,h=null,g=0,k=null;function De(t){k=t}let Ht=1,S=!1,x=null;function Bt(){return++Ht}function Ae(){return!pe}function st(t){var e=t.f;if(e&C)return!0;if(e&U){var r=t.deps,l=(e&K)!==0;if(r!==null){var n,u,s=(e&et)!==0,v=l&&d!==null&&!S,a=r.length;if(s||v){for(n=0;nt.version)return!0}(!l||d!==null&&!S)&&b(t,y)}return!1}function Se(t,e){for(var r=e;r!==null;){if(r.f&ct)try{r.fn(t);return}catch{r.f^=ct}r=r.parent}throw tt=!1,t}function Fe(t){return(t.f&Y)===0&&(t.parent===null||(t.parent.f&ct)===0)}function ot(t,e,r,l){if(tt){if(r===null&&(tt=!1),Fe(e))throw t;return}r!==null&&(tt=!0);{Se(t,e);return}}function Vt(t){var e=h,r=g,l=k,n=p,u=S,s=F,v=x,a=t.f;h=null,g=0,k=null,p=a&(A|ut)?null:t,S=!q&&(a&K)!==0,F=null,x=t.ctx;try{var i=(0,t.fn)(),o=t.deps;if(h!==null){var f;if(V(t,g),o!==null&&g>0)for(o.length=g+h.length,f=0;f1e3){H=0;try{fe()}catch(t){if(lt!==null)ot(t,lt,null);else throw t}}H++}function Ie(t){var e=t.length;if(e!==0){Pe();var r=q;q=!0;try{for(var l=0;l1001)return;const t=ht;ht=[],Ie(t),nt||(H=0,lt=null)}function at(t){nt||(nt=!0,queueMicrotask(qe)),lt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(ut|A)){if(!(r&y))return;e.f^=y}}ht.push(e)}function Kt(t,e){var r=t.first,l=[];t:for(;r!==null;){var n=r.f,u=(n&A)!==0,s=u&&(n&y)!==0,v=r.next;if(!s&&!(n&rt))if(n&yt){if(u)r.f^=y;else try{st(r)&&Et(r)}catch(f){ot(f,r,null,r.ctx)}var a=r.first;if(a!==null){r=a;continue}}else n&Ot&&l.push(r);if(v===null){let f=r.parent;for(;f!==null;){if(t===f)break t;var i=f.next;if(i!==null){r=i;continue t}f=f.parent}}r=v}for(var o=0;o{throw T});throw c}}finally{t.__root=e,delete t.currentTarget,L(o),M(f)}}}function He(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Ut(t,e){var r=d;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function Wt(t,e){return Zt(t,e)}function Be(t,e){dt(),e.intro=e.intro??!1;const r=e.target,l=B,n=R;try{for(var u=Ct(r);u&&(u.nodeType!==8||u.data!==zt);)u=wt(u);if(!u)throw X;z(!0),_t(u),At();const s=Zt(t,{...e,anchor:u});if(R===null||R.nodeType!==8||R.data!==Gt)throw Dt(),X;return z(!1),s}catch(s){if(s===X)return e.recover===!1&&ve(),dt(),ge(r),z(!1),Wt(t,e);throw s}finally{z(l),_t(n)}}const I=new Map;function Zt(t,{target:e,anchor:r,props:l={},events:n,context:u,intro:s=!0}){dt();var v=new Set,a=f=>{for(var c=0;c{var f=r??e.appendChild(we());return Ne(()=>{if(u){Me({});var c=x;c.c=u}n&&(l.$$events=n),B&&Ut(f,null),i=t(f,l)||{},B&&(d.nodes_end=R),u&&Ye()}),()=>{for(var c of v){e.removeEventListener(c,J);var _=I.get(c);--_===0?(document.removeEventListener(c,J),I.delete(c)):I.set(c,_)}Tt.delete(a),f!==r&&f.parentNode?.removeChild(f)}});return pt.set(i,o),i}let pt=new WeakMap;function Ve(t,e){const r=pt.get(t);return r?(pt.delete(t),r(e)):Promise.resolve()}function Q(t){return(e,...r)=>{var l=t(...r),n;if(B)n=R,At();else{var u=l.render().trim(),s=He(u);n=Ct(s),e.before(n)}const v=l.setup?.(n);Ut(n,n),typeof v=="function"&&xe(v)}}const vt=new WeakMap,Ue=t=>async(e,r,l,{client:n})=>{if(!t.hasAttribute("ssr"))return;let u,s,v={};for(const[i,o]of Object.entries(l))s??={},i==="default"?(s.default=!0,u=Q(()=>({render:()=>`${o}`}))):s[i]=Q(()=>({render:()=>`${o}`})),i==="default"?v.children=Q(()=>({render:()=>`${o}`})):v[i]=Q(()=>({render:()=>`${o}`}));const a={...r,children:u,$$slots:s,...v};if(vt.has(t))vt.get(t).setProps(a);else{const i=Ke(e,t,a,n!=="only");vt.set(t,i),t.addEventListener("astro:unmount",()=>i.destroy(),{once:!0})}};function Ke(t,e,r,l){let n=$(r);const s=(l?Be:Wt)(t,{target:e,props:n});return{setProps(v){Object.assign(n,v);for(const a in n)a in v||delete n[a]},destroy(){Ve(s)}}}export{Ue as default};