import{i as E,g as H,H as I,b as L,c as g,d as p,e as A,h as O,f as v,j as V,k as $,l as M,m as Y,o as j,p as P,q,r as x,t as z,u as w,v as B,w as W,x as d,y as T,z as F,A as G,B as J,C as k}from"./utils.CG3qbIwb.js";import{a as K,r as D,h as m,b as Q}from"./disclose-version.C46H-NqF.js";const U=["touchstart","touchmove"];function X(t){return U.includes(t)}let N=!0;function re(t,e){var a=e==null?"":typeof e=="object"?e+"":e;a!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=a,t.nodeValue=a==null?"":a+"")}function Z(t,e){return S(t,e)}function oe(t,e){E(),e.intro=e.intro??!1;const a=e.target,i=w,o=v;try{for(var n=H(a);n&&(n.nodeType!==8||n.data!==I);)n=L(n);if(!n)throw g;p(!0),A(n),O();const u=S(t,{...e,anchor:n});if(v===null||v.nodeType!==8||v.data!==V)throw $(),g;return p(!1),u}catch(u){if(u===g)return e.recover===!1&&M(),E(),Y(a),p(!1),Z(t,e);throw u}finally{p(i),A(o)}}const l=new Map;function S(t,{target:e,anchor:a,props:i={},events:o,context:n,intro:u=!0}){E();var c=new Set,_=f=>{for(var s=0;s{var f=a??e.appendChild(q());return x(()=>{if(n){z({});var s=d;s.c=n}o&&(i.$$events=o),w&&Q(f,null),N=u,y=t(f,i)||{},N=!0,w&&(B.nodes_end=v),n&&W()}),()=>{var h;for(var s of c){e.removeEventListener(s,m);var r=l.get(s);--r===0?(document.removeEventListener(s,m),l.delete(s)):l.set(s,r)}D.delete(_),b.delete(y),f!==a&&((h=f.parentNode)==null||h.removeChild(f))}});return b.set(y,C),y}let b=new WeakMap;function ie(t){const e=b.get(t);e&&e()}function ee(t){d===null&&T(),G&&d.l!==null?ne(d).m.push(t):J(()=>{const e=k(t);if(typeof e=="function")return e})}function ue(t){d===null&&T(),ee(()=>()=>k(t))}function te(t,e,{bubbles:a=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:a,cancelable:i})}function fe(){const t=d;return t===null&&T(),(e,a,i)=>{var n;const o=(n=t.s.$$events)==null?void 0:n[e];if(o){const u=F(o)?o.slice():[o],c=te(e,a,i);for(const _ of u)_.call(t.x,c);return!c.defaultPrevented}return!0}}function ne(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}export{N as a,ue as b,fe as c,oe as h,Z as m,ee as o,re as s,ie as u}; //# sourceMappingURL=index-client.38Ysj1Zd.js.map