Spaces:
Running
Running
| import{aa as J,g as P,ab as V,a4 as K,b as U,ac as B,ad as N,m as _,i as p,ae as Q,af as w,F as X,j as Z,ag as C,I as tt,N as d,ah as T,R as D,ai as S,aj as E,ak as I,al as et,q as L,c as W,am as st,an as F,K as k,ao as rt,J as it,ap as Y,aq as nt,G as at,ar as ht,as as lt,at as j,au as ot,t as ft,av as ut,aw as ct,s as dt,ax as O,n as _t,ay as pt,az as x,L as R,aA as gt,aB as vt,aC as yt,aD as Et,M as bt,aE as wt,S as mt,l as Tt,aF as Rt,aG as Nt,Y as St}from"./8qN8-VEG.js";function kt(e){let t=0,r=V(0),i;return()=>{J()&&(P(r),K(()=>(t===0&&(i=U(()=>e(()=>B(r)))),t+=1,()=>{N(()=>{t-=1,t===0&&(i?.(),i=void 0,B(r))})})))}}var At=at|ht|lt;function Dt(e,t,r){new Ft(e,t,r)}class Ft{parent;#r=!1;#e;#p=p?_:null;#i;#f;#n;#s=null;#t=null;#a=null;#h=null;#u=0;#l=0;#c=!1;#o=null;#v=()=>{this.#o&&Q(this.#o,this.#u)};#y=kt(()=>(this.#o=V(this.#u),()=>{this.#o=null}));constructor(t,r,i){this.#e=t,this.#i=r,this.#f=i,this.parent=w.b,this.#r=!!this.#i.pending,this.#n=X(()=>{if(w.b=this,p){const n=this.#p;Z(),n.nodeType===C&&n.data===tt?this.#b():this.#E()}else{try{this.#s=d(()=>i(this.#e))}catch(n){this.error(n)}this.#l>0?this.#_():this.#r=!1}},At),p&&(this.#e=_)}#E(){try{this.#s=d(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#r=!1}#b(){const t=this.#i.pending;t&&(this.#t=d(()=>t(this.#e)),T.enqueue(()=>{this.#s=this.#d(()=>(T.ensure(),d(()=>this.#f(this.#e)))),this.#l>0?this.#_():(D(this.#t,()=>{this.#t=null}),this.#r=!1)}))}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#d(t){var r=w,i=L,n=W;S(this.#n),E(this.#n),I(this.#n.ctx);try{return t()}catch(s){return et(s),null}finally{S(r),E(i),I(n)}}#_(){const t=this.#i.pending;this.#s!==null&&(this.#h=document.createDocumentFragment(),Lt(this.#s,this.#h)),this.#t===null&&(this.#t=d(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#l+=t,this.#l===0&&(this.#r=!1,this.#t&&D(this.#t,()=>{this.#t=null}),this.#h&&(this.#e.before(this.#h),this.#h=null),N(()=>{T.ensure().flush()}))}update_pending_count(t){this.#g(t),this.#u+=t,st.add(this.#v)}get_effect_pending(){return this.#y(),P(this.#o)}error(t){var r=this.#i.onerror;let i=this.#i.failed;if(this.#c||!r&&!i)throw t;this.#s&&(F(this.#s),this.#s=null),this.#t&&(F(this.#t),this.#t=null),this.#a&&(F(this.#a),this.#a=null),p&&(k(this.#p),rt(),k(it()));var n=!1,s=!1;const h=()=>{if(n){ot();return}n=!0,s&&nt(),T.ensure(),this.#u=0,this.#a!==null&&D(this.#a,()=>{this.#a=null}),this.#r=this.has_pending_snippet(),this.#s=this.#d(()=>(this.#c=!1,d(()=>this.#f(this.#e)))),this.#l>0?this.#_():this.#r=!1};var f=L;try{E(null),s=!0,r?.(t,h),s=!1}catch(o){Y(o,this.#n&&this.#n.parent)}finally{E(f)}i&&N(()=>{this.#a=this.#d(()=>{this.#c=!0;try{return d(()=>{i(this.#e,()=>t,()=>h)})}catch(o){return Y(o,this.#n.parent),null}finally{this.#c=!1}})})}}function Lt(e,t){for(var r=e.nodes_start,i=e.nodes_end;r!==null;){var n=r===i?null:j(r);t.append(r),r=n}}const Ot=["touchstart","touchmove"];function xt(e){return Ot.includes(e)}const Mt=new Set,q=new Set;function Ct(e,t,r,i={}){function n(s){if(i.capture||b.call(t,s),!s.cancelBubble)return ut(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?N(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function Yt(e,t,r,i,n){var s={capture:i,passive:n},h=Ct(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ft(()=>{t.removeEventListener(e,h,s)})}let H=null;function b(e){var t=this,r=t.ownerDocument,i=e.type,n=e.composedPath?.()||[],s=n[0]||e.target;H=e;var h=0,f=H===e&&e.__root;if(f){var o=n.indexOf(f);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var g=n.indexOf(t);if(g===-1)return;o<=g&&(h=o)}if(s=n[h]||e.target,s!==t){ct(e,"currentTarget",{configurable:!0,get(){return s||r}});var A=L,u=w;E(null),S(null);try{for(var a,l=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var c=s["__"+i];if(c!=null&&(!s.disabled||e.target===s))if(dt(c)){var[$,...z]=c;$.apply(s,[e,...z])}else c.call(s,e)}catch(m){a?l.push(m):a=m}if(e.cancelBubble||v===t||v===null)break;s=v}if(a){for(let m of l)queueMicrotask(()=>{throw m});throw a}}finally{e.__root=t,delete e.currentTarget,E(A),S(u)}}}function qt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Bt(e,t){return G(e,t)}function Ht(e,t){O(),t.intro=t.intro??!1;const r=t.target,i=p,n=_;try{for(var s=_t(r);s&&(s.nodeType!==C||s.data!==pt);)s=j(s);if(!s)throw x;R(!0),k(s);const h=G(e,{...t,anchor:s});return R(!1),h}catch(h){if(h instanceof Error&&h.message.split(` | |
| `).some(f=>f.startsWith("https://svelte.dev/e/")))throw h;return h!==x&&console.warn("Failed to hydrate: ",h),t.recover===!1&>(),O(),vt(r),R(!1),Bt(e,t)}finally{R(i),k(n),wt()}}const y=new Map;function G(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:h=!0}){O();var f=new Set,o=u=>{for(var a=0;a<u.length;a++){var l=u[a];if(!f.has(l)){f.add(l);var v=xt(l);t.addEventListener(l,b,{passive:v});var c=y.get(l);c===void 0?(document.addEventListener(l,b,{passive:v}),y.set(l,1)):y.set(l,c+1)}}};o(yt(Mt)),q.add(o);var g=void 0,A=Et(()=>{var u=r??t.appendChild(bt());return Dt(u,{pending:()=>{}},a=>{if(s){mt({});var l=W;l.c=s}if(n&&(i.$$events=n),p&&Tt(a,null),g=e(a,i)||{},p&&(w.nodes_end=_,_===null||_.nodeType!==C||_.data!==Rt))throw Nt(),x;s&&St()}),()=>{for(var a of f){t.removeEventListener(a,b);var l=y.get(a);--l===0?(document.removeEventListener(a,b),y.delete(a)):y.set(a,l)}q.delete(o),u!==r&&u.parentNode?.removeChild(u)}});return M.set(g,A),g}let M=new WeakMap;function Pt(e,t){const r=M.get(e);return r?(M.delete(e),r(t)):Promise.resolve()}export{Yt as e,Ht as h,Bt as m,qt as s,Pt as u}; | |