1 line
3.2 KiB
JavaScript
1 line
3.2 KiB
JavaScript
var M=Object.defineProperty;var N=(t,e,n)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var $=(t,e,n)=>(N(t,typeof e!="symbol"?e+"":e,n),n);import{v as d,w as C,b as R,h as U,x as V,y as q}from"./lifecycle-1566062d.js";function m(){}function Y(t,e){for(const n in e)t[n]=e[n];return t}function I(t){return t()}function O(){return Object.create(null)}function l(t){t.forEach(I)}function P(t){return typeof t=="function"}function Z(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function z(t){return Object.keys(t).length===0}const u=[],j=[];let c=[];const k=[],A=Promise.resolve();let y=!1;function D(){y||(y=!0,A.then(B))}function w(t){c.push(t)}const p=new Set;let i=0;function B(){if(i!==0)return;const t=C;do{try{for(;i<u.length;){const e=u[i];i++,d(e),F(e.$$)}}catch(e){throw u.length=0,i=0,e}for(d(null),u.length=0,i=0;j.length;)j.pop()();for(let e=0;e<c.length;e+=1){const n=c[e];p.has(n)||(p.add(n),n())}c.length=0}while(u.length);for(;k.length;)k.pop()();y=!1,p.clear(),d(t)}function F(t){if(t.fragment!==null){t.update(),l(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(w)}}function G(t){const e=[],n=[];c.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),c=e}const g=new Set;let a;function tt(){a={r:0,c:[],p:a}}function et(){a.r||l(a.c),a=a.p}function H(t,e){t&&t.i&&(g.delete(t),t.i(e))}function nt(t,e,n,r){if(t&&t.o){if(g.has(t))return;g.add(t),a.c.push(()=>{g.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function rt(t){t&&t.c()}function st(t,e){t&&t.l(e)}function J(t,e,n){const{fragment:r,after_update:f}=t.$$;r&&r.m(e,n),w(()=>{const _=t.$$.on_mount.map(I).filter(P);t.$$.on_destroy?t.$$.on_destroy.push(..._):l(_),t.$$.on_mount=[]}),f.forEach(w)}function K(t,e){const n=t.$$;n.fragment!==null&&(G(n.after_update),l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Q(t,e){t.$$.dirty[0]===-1&&(u.push(t),D(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ot(t,e,n,r,f,_,x=null,L=[-1]){const h=C;d(t);const s=t.$$={fragment:null,ctx:[],props:_,update:m,not_equal:f,bound:O(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(h?h.$$.context:[])),callbacks:O(),dirty:L,skip_bound:!1,root:e.target||h.$$.root};x&&x(s.root);let b=!1;if(s.ctx=n?n(t,e.props||{},(o,v,...E)=>{const S=E.length?E[0]:v;return s.ctx&&f(s.ctx[o],s.ctx[o]=S)&&(!s.skip_bound&&s.bound[o]&&s.bound[o](S),b&&Q(t,o)),v}):[],s.update(),b=!0,l(s.before_update),s.fragment=r?r(s.ctx):!1,e.target){if(e.hydrate){V();const o=R(e.target);s.fragment&&s.fragment.l(o),o.forEach(U)}else s.fragment&&s.fragment.c();e.intro&&H(t.$$.fragment),J(t,e.target,e.anchor),q(),B()}d(h)}class ft{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){K(this,1),this.$destroy=m}$on(e,n){if(!P(n))return m;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const f=r.indexOf(n);f!==-1&&r.splice(f,1)}}$set(e){this.$$set&&!z(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const T="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(T);export{ft as S,H as a,rt as b,et as c,st as d,K as e,j as f,tt as g,Y as h,ot as i,J as m,m as n,Z as s,nt as t};
|