Files
Stackq/build/client/_app/immutable/chunks/BMmwim-G.js
T

3 lines
6.5 KiB
JavaScript

var Se=Object.defineProperty;var re=i=>{throw TypeError(i)};var Ne=(i,e,s)=>e in i?Se(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var K=(i,e,s)=>Ne(i,typeof e!="symbol"?e+"":e,s),Q=(i,e,s)=>e.has(i)||re("Cannot "+s);var t=(i,e,s)=>(Q(i,e,"read from private field"),s?s.call(i):e.get(i)),f=(i,e,s)=>e.has(i)?re("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),n=(i,e,s,a)=>(Q(i,e,"write to private field"),a?a.call(i,s):e.set(i,s),s),y=(i,e,s)=>(Q(i,e,"access private method"),s);import{az as Ae,g as ve,$ as Oe,z as ye,a0 as ae,aA as fe,q as V,N as S,h as N,Y,aB as he,k as ke,i as Ce,H as Fe,M as k,L as me,B as U,K as X,O as Me,aC as Ye,W as oe,V as le,aD as _e,aE as xe,X as Ie,ai as x,aF as de,aG as Be,aH as ce,aI as He,v as Le,J as G,m as W,n as Pe,o as Ve,aJ as ue,aK as ze,Q as We,aL as $e,aM as je,aN as Z,at as qe,aw as be,S as Je,ax as Ke,aO as ee,p as L,aP as Qe,aQ as Ue,aR as Xe,aS as Ge,D as Ze,as as et,aT as tt,aU as st,E as it,aV as at,ak as nt,a9 as rt,aW as ft,y as ht,aX as ot,aY as lt,aZ as _t,a_ as dt,a$ as ct}from"./MIlO0V30.js";import{a as ut,r as pe,h as ge,b as pt}from"./Dt2zEVER.js";function gt(i){let e=0,s=ye(0),a;return()=>{Ae()&&(ve(s),Oe(()=>(e===0&&(a=ae(()=>i(()=>fe(s)))),e+=1,()=>{V(()=>{e-=1,e===0&&(a==null||a(),a=void 0,fe(s))})})))}}var vt=We|$e;function yt(i,e,s){new mt(i,e,s)}var d,I,T,A,m,b,l,E,R,O,D,C,F,M,w,$,h,Ee,Te,te,z,se;class mt{constructor(e,s,a){f(this,h);K(this,"parent");K(this,"is_pending",!1);f(this,d);f(this,I,N?S:null);f(this,T);f(this,A);f(this,m);f(this,b,null);f(this,l,null);f(this,E,null);f(this,R,null);f(this,O,0);f(this,D,0);f(this,C,!1);f(this,F,new Set);f(this,M,new Set);f(this,w,null);f(this,$,gt(()=>(n(this,w,ye(t(this,O))),()=>{n(this,w,null)})));n(this,d,e),n(this,T,s),n(this,A,o=>{var r=Y;r.b=this,r.f|=he,a(o)}),this.parent=Y.b,n(this,m,ke(()=>{if(N){const o=t(this,I);Ce(),o.data===Fe?y(this,h,Te).call(this):y(this,h,Ee).call(this)}else y(this,h,te).call(this)},vt)),N&&n(this,d,S)}defer_effect(e){Ye(e,t(this,F),t(this,M))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!t(this,T).pending}update_pending_count(e){y(this,h,se).call(this,e),n(this,O,t(this,O)+e),!(!t(this,w)||t(this,C))&&(n(this,C,!0),V(()=>{n(this,C,!1),t(this,w)&&Le(t(this,w),t(this,O))}))}get_effect_pending(){return t(this,$).call(this),ve(t(this,w))}error(e){var s=t(this,T).onerror;let a=t(this,T).failed;if(!s&&!a)throw e;t(this,b)&&(G(t(this,b)),n(this,b,null)),t(this,l)&&(G(t(this,l)),n(this,l,null)),t(this,E)&&(G(t(this,E)),n(this,E,null)),N&&(W(t(this,I)),Pe(),W(Ve()));var o=!1,r=!1;const c=()=>{if(o){je();return}o=!0,r&&ze(),t(this,E)!==null&&X(t(this,E),()=>{n(this,E,null)}),y(this,h,z).call(this,()=>{U.ensure(),y(this,h,te).call(this)})};V(()=>{try{r=!0,s==null||s(e,c),r=!1}catch(_){ue(_,t(this,m)&&t(this,m).parent)}a&&n(this,E,y(this,h,z).call(this,()=>{U.ensure();try{return k(()=>{var _=Y;_.b=this,_.f|=he,a(t(this,d),()=>e,()=>c)})}catch(_){return ue(_,t(this,m).parent),null}}))})}}d=new WeakMap,I=new WeakMap,T=new WeakMap,A=new WeakMap,m=new WeakMap,b=new WeakMap,l=new WeakMap,E=new WeakMap,R=new WeakMap,O=new WeakMap,D=new WeakMap,C=new WeakMap,F=new WeakMap,M=new WeakMap,w=new WeakMap,$=new WeakMap,h=new WeakSet,Ee=function(){try{n(this,b,k(()=>t(this,A).call(this,t(this,d))))}catch(e){this.error(e)}},Te=function(){const e=t(this,T).pending;e&&(this.is_pending=!0,n(this,l,k(()=>e(t(this,d)))),V(()=>{var s=n(this,R,document.createDocumentFragment()),a=me();s.append(a),n(this,b,y(this,h,z).call(this,()=>(U.ensure(),k(()=>t(this,A).call(this,a))))),t(this,D)===0&&(t(this,d).before(s),n(this,R,null),X(t(this,l),()=>{n(this,l,null)}),this.is_pending=!1)}))},te=function(){try{if(this.is_pending=this.has_pending_snippet(),n(this,D,0),n(this,O,0),n(this,b,k(()=>{t(this,A).call(this,t(this,d))})),t(this,D)>0){var e=n(this,R,document.createDocumentFragment());Me(t(this,b),e);const s=t(this,T).pending;n(this,l,k(()=>s(t(this,d))))}else this.is_pending=!1}catch(s){this.error(s)}},z=function(e){var s=Y,a=Ie,o=x;oe(t(this,m)),le(t(this,m)),_e(t(this,m).ctx);try{return e()}catch(r){return xe(r),null}finally{oe(s),le(a),_e(o)}},se=function(e){var s;if(!this.has_pending_snippet()){this.parent&&y(s=this.parent,h,se).call(s,e);return}if(n(this,D,t(this,D)+e),t(this,D)===0){this.is_pending=!1;for(const a of t(this,F))de(a,Be),ce(a);for(const a of t(this,M))de(a,He),ce(a);t(this,F).clear(),t(this,M).clear(),t(this,l)&&X(t(this,l),()=>{n(this,l,null)}),t(this,R)&&(t(this,d).before(t(this,R)),n(this,R,null))}};function Nt(i,e){var s=e==null?"":typeof e=="object"?e+"":e;s!==(i.__t??(i.__t=i.nodeValue))&&(i.__t=s,i.nodeValue=s+"")}function Re(i,e){return we(i,e)}function bt(i,e){Z(),e.intro=e.intro??!1;const s=e.target,a=N,o=S;try{for(var r=qe(s);r&&(r.nodeType!==be||r.data!==Je);)r=Ke(r);if(!r)throw ee;L(!0),W(r);const c=we(i,{...e,anchor:r});return L(!1),c}catch(c){if(c instanceof Error&&c.message.split(`
`).some(_=>_.startsWith("https://svelte.dev/e/")))throw c;return c!==ee&&console.warn("Failed to hydrate: ",c),e.recover===!1&&Qe(),Z(),Ue(s),L(!1),Re(i,e)}finally{L(a),W(o)}}const P=new Map;function we(i,{target:e,anchor:s,props:a={},events:o,context:r,intro:c=!0}){Z();var _=void 0,De=Xe(()=>{var B=s??e.appendChild(me());yt(B,{pending:()=>{}},u=>{Ze({});var p=x;if(r&&(p.c=r),o&&(a.$$events=o),N&&et(u,null),_=i(u,a)||{},N&&(Y.nodes.end=S,S===null||S.nodeType!==be||S.data!==tt))throw st(),ee;it()});var j=new Set,q=u=>{for(var p=0;p<u.length;p++){var g=u[p];if(!j.has(g)){j.add(g);var H=pt(g);for(const J of[e,document]){var v=P.get(J);v===void 0&&(v=new Map,P.set(J,v));var ne=v.get(g);ne===void 0?(J.addEventListener(g,ge,{passive:H}),v.set(g,1)):v.set(g,ne+1)}}}};return q(Ge(ut)),pe.add(q),()=>{var H;for(var u of j)for(const v of[e,document]){var p=P.get(v),g=p.get(u);--g==0?(v.removeEventListener(u,ge),p.delete(u),p.size===0&&P.delete(v)):p.set(u,g)}pe.delete(q),B!==s&&((H=B.parentNode)==null||H.removeChild(B))}});return ie.set(_,De),_}let ie=new WeakMap;function Et(i,e){const s=ie.get(i);return s?(ie.delete(i),s(e)):Promise.resolve()}function Tt(i){x===null&&at(),rt&&x.l!==null?Rt(x).m.push(i):nt(()=>{const e=ae(i);if(typeof e=="function")return e})}function Rt(i){var e=i.l;return e.u??(e.u={a:[],b:[],m:[]})}const At=Object.freeze(Object.defineProperty({__proto__:null,flushSync:ht,getAllContexts:ot,getContext:lt,hasContext:_t,hydrate:bt,mount:Re,onMount:Tt,setContext:dt,settled:ct,tick:ft,unmount:Et,untrack:ae},Symbol.toStringTag,{value:"Module"}));export{At as a,gt as c,bt as h,Re as m,Tt as o,Nt as s,Et as u};