5 lines
12 KiB
JavaScript
5 lines
12 KiB
JavaScript
function p(){}const dt=t=>t;function ht(t,n){for(const e in n)t[e]=n[e];return t}function Z(t){return t()}function Q(){return Object.create(null)}function b(t){t.forEach(Z)}function P(t){return typeof t=="function"}function mt(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function pt(t){return Object.keys(t).length===0}function G(t,...n){if(t==null)return p;const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function Wt(t){let n;return G(t,e=>n=e)(),n}function Jt(t,n,e){t.$$.on_destroy.push(G(n,e))}function Kt(t,n,e,i){if(t){const s=tt(t,n,e,i);return t[0](s)}}function tt(t,n,e,i){return t[1]&&i?ht(e.ctx.slice(),t[1](i(n))):e.ctx}function Qt(t,n,e,i){if(t[2]&&i){const s=t[2](i(e));if(n.dirty===void 0)return s;if(typeof s=="object"){const u=[],c=Math.max(n.dirty.length,s.length);for(let r=0;r<c;r+=1)u[r]=n.dirty[r]|s[r];return u}return n.dirty|s}return n.dirty}function Ut(t,n,e,i,s,u){if(s){const c=tt(n,e,i,u);t.p(c,s)}}function Vt(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let i=0;i<e;i++)n[i]=-1;return n}return-1}function Xt(t){return t??""}function Yt(t,n,e){return t.set(e),n}const nt=typeof window<"u";let gt=nt?()=>window.performance.now():()=>Date.now(),I=nt?t=>requestAnimationFrame(t):p;const w=new Set;function et(t){w.forEach(n=>{n.c(t)||(w.delete(n),n.f())}),w.size!==0&&I(et)}function yt(t){let n;return w.size===0&&I(et),{promise:new Promise(e=>{w.add(n={c:t,f:e})}),abort(){w.delete(n)}}}let D=!1;function bt(){D=!0}function $t(){D=!1}function xt(t,n,e,i){for(;t<n;){const s=t+(n-t>>1);e(s)<=i?t=s+1:n=s}return t}function wt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const o=[];for(let l=0;l<n.length;l++){const _=n[l];_.claim_order!==void 0&&o.push(_)}n=o}const e=new Int32Array(n.length+1),i=new Int32Array(n.length);e[0]=-1;let s=0;for(let o=0;o<n.length;o++){const l=n[o].claim_order,_=(s>0&&n[e[s]].claim_order<=l?s+1:xt(1,s,h=>n[e[h]].claim_order,l))-1;i[o]=e[_]+1;const f=_+1;e[f]=o,s=Math.max(f,s)}const u=[],c=[];let r=n.length-1;for(let o=e[s]+1;o!=0;o=i[o-1]){for(u.push(n[o-1]);r>=o;r--)c.push(n[r]);r--}for(;r>=0;r--)c.push(n[r]);u.reverse(),c.sort((o,l)=>o.claim_order-l.claim_order);for(let o=0,l=0;o<c.length;o++){for(;l<u.length&&c[o].claim_order>=u[l].claim_order;)l++;const _=l<u.length?u[l]:null;t.insertBefore(c[o],_)}}function vt(t,n){t.appendChild(n)}function it(t){if(!t)return document;const n=t.getRootNode?t.getRootNode():t.ownerDocument;return n&&n.host?n:t.ownerDocument}function Et(t){const n=W("style");return Nt(it(t),n),n.sheet}function Nt(t,n){return vt(t.head||t,n),n.sheet}function At(t,n){if(D){for(wt(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;n!==t.actual_end_child?(n.claim_order!==void 0||n.parentNode!==t)&&t.insertBefore(n,t.actual_end_child):t.actual_end_child=n.nextSibling}else(n.parentNode!==t||n.nextSibling!==null)&&t.appendChild(n)}function Tt(t,n,e){t.insertBefore(n,e||null)}function St(t,n,e){D&&!e?At(t,n):(n.parentNode!==t||n.nextSibling!=e)&&t.insertBefore(n,e||null)}function A(t){t.parentNode&&t.parentNode.removeChild(t)}function Zt(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function W(t){return document.createElement(t)}function st(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t){return document.createTextNode(t)}function tn(){return J(" ")}function nn(){return J("")}function en(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function sn(t){return function(n){return n.stopPropagation(),t.call(this,n)}}function rn(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function cn(t){return t===""?null:+t}function kt(t){return Array.from(t.childNodes)}function rt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function ct(t,n,e,i,s=!1){rt(t);const u=(()=>{for(let c=t.claim_info.last_index;c<t.length;c++){const r=t[c];if(n(r)){const o=e(r);return o===void 0?t.splice(c,1):t[c]=o,s||(t.claim_info.last_index=c),r}}for(let c=t.claim_info.last_index-1;c>=0;c--){const r=t[c];if(n(r)){const o=e(r);return o===void 0?t.splice(c,1):t[c]=o,s?o===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,r}}return i()})();return u.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,u}function lt(t,n,e,i){return ct(t,s=>s.nodeName===n,s=>{const u=[];for(let c=0;c<s.attributes.length;c++){const r=s.attributes[c];e[r.name]||u.push(r.name)}u.forEach(c=>s.removeAttribute(c))},()=>i(n))}function ln(t,n,e){return lt(t,n,e,W)}function on(t,n,e){return lt(t,n,e,st)}function Ct(t,n){return ct(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>J(n),!0)}function un(t){return Ct(t," ")}function U(t,n,e){for(let i=e;i<t.length;i+=1){const s=t[i];if(s.nodeType===8&&s.textContent.trim()===n)return i}return t.length}function an(t,n){const e=U(t,"HTML_TAG_START",0),i=U(t,"HTML_TAG_END",e);if(e===i)return new V(void 0,n);rt(t);const s=t.splice(e,i-e+1);A(s[0]),A(s[s.length-1]);const u=s.slice(1,s.length-1);for(const c of u)c.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new V(u,n)}function fn(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function _n(t,n){t.value=n??""}function dn(t,n,e,i){e===null?t.style.removeProperty(n):t.style.setProperty(n,e,i?"important":"")}function hn(t,n,e){t.classList[e?"add":"remove"](n)}function ot(t,n,{bubbles:e=!1,cancelable:i=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,e,i,n),s}class Mt{constructor(n=!1){this.is_svg=!1,this.is_svg=n,this.e=this.n=null}c(n){this.h(n)}m(n,e,i=null){this.e||(this.is_svg?this.e=st(e.nodeName):this.e=W(e.nodeName),this.t=e,this.c(n)),this.i(i)}h(n){this.e.innerHTML=n,this.n=Array.from(this.e.childNodes)}i(n){for(let e=0;e<this.n.length;e+=1)Tt(this.t,this.n[e],n)}p(n){this.d(),this.h(n),this.i(this.a)}d(){this.n.forEach(A)}}class V extends Mt{constructor(n,e=!1){super(e),this.e=this.n=null,this.l=n}c(n){this.l?this.n=this.l:super.c(n)}i(n){for(let e=0;e<this.n.length;e+=1)St(this.t,this.n[e],n)}}function mn(t,n){return new t(n)}const j=new Map;let H=0;function jt(t){let n=5381,e=t.length;for(;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}function Ht(t,n){const e={stylesheet:Et(n),rules:{}};return j.set(t,e),e}function X(t,n,e,i,s,u,c,r=0){const o=16.666/i;let l=`{
|
|
`;for(let y=0;y<=1;y+=o){const $=n+(e-n)*u(y);l+=y*100+`%{${c($,1-$)}}
|
|
`}const _=l+`100% {${c(e,1-e)}}
|
|
}`,f=`__svelte_${jt(_)}_${r}`,h=it(t),{stylesheet:a,rules:d}=j.get(h)||Ht(h,t);d[f]||(d[f]=!0,a.insertRule(`@keyframes ${f} ${_}`,a.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${f} ${i}ms linear ${s}ms 1 both`,H+=1,f}function Lt(t,n){const e=(t.style.animation||"").split(", "),i=e.filter(n?u=>u.indexOf(n)<0:u=>u.indexOf("__svelte")===-1),s=e.length-i.length;s&&(t.style.animation=i.join(", "),H-=s,H||Pt())}function Pt(){I(()=>{H||(j.forEach(t=>{const{ownerNode:n}=t.stylesheet;n&&A(n)}),j.clear())})}let T;function N(t){T=t}function K(){if(!T)throw new Error("Function called outside component initialization");return T}function pn(t){K().$$.on_mount.push(t)}function gn(t){K().$$.after_update.push(t)}function yn(){const t=K();return(n,e,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[n];if(s){const u=ot(n,e,{cancelable:i});return s.slice().forEach(c=>{c.call(t,u)}),!u.defaultPrevented}return!0}}function bn(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach(i=>i.call(this,n))}const E=[],Y=[],C=[],B=[],ut=Promise.resolve();let F=!1;function at(){F||(F=!0,ut.then(ft))}function $n(){return at(),ut}function L(t){C.push(t)}function xn(t){B.push(t)}const R=new Set;let k=0;function ft(){const t=T;do{for(;k<E.length;){const n=E[k];k++,N(n),Dt(n.$$)}for(N(null),E.length=0,k=0;Y.length;)Y.pop()();for(let n=0;n<C.length;n+=1){const e=C[n];R.has(e)||(R.add(e),e())}C.length=0}while(E.length);for(;B.length;)B.pop()();F=!1,R.clear(),N(t)}function Dt(t){if(t.fragment!==null){t.update(),b(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(L)}}let v;function zt(){return v||(v=Promise.resolve(),v.then(()=>{v=null})),v}function q(t,n,e){t.dispatchEvent(ot(`${n?"intro":"outro"}${e}`))}const M=new Set;let g;function wn(){g={r:0,c:[],p:g}}function vn(){g.r||b(g.c),g=g.p}function Ot(t,n){t&&t.i&&(M.delete(t),t.i(n))}function En(t,n,e,i){if(t&&t.o){if(M.has(t))return;M.add(t),g.c.push(()=>{M.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}const Rt={duration:0};function Nn(t,n,e,i){const s={direction:"both"};let u=n(t,e,s),c=i?0:1,r=null,o=null,l=null;function _(){l&&Lt(t,l)}function f(a,d){const m=a.b-c;return d*=Math.abs(m),{a:c,b:a.b,d:m,duration:d,start:a.start,end:a.start+d,group:a.group}}function h(a){const{delay:d=0,duration:m=300,easing:y=dt,tick:$=p,css:z}=u||Rt,O={start:gt()+d,b:a};a||(O.group=g,g.r+=1),r||o?o=O:(z&&(_(),l=X(t,c,a,m,d,y,z)),a&&$(0,1),r=f(O,m),L(()=>q(t,a,"start")),yt(S=>{if(o&&S>o.start&&(r=f(o,m),o=null,q(t,r.b,"start"),z&&(_(),l=X(t,c,r.b,r.duration,0,y,u.css))),r){if(S>=r.end)$(c=r.b,1-c),q(t,r.b,"end"),o||(r.b?_():--r.group.r||b(r.group.c)),r=null;else if(S>=r.start){const _t=S-r.start;c=r.a+r.d*y(_t/r.duration),$(c,1-c)}}return!!(r||o)}))}return{run(a){P(u)?zt().then(()=>{u=u(s),h(a)}):h(a)},end(){_(),r=o=null}}}function An(t,n,e,i){const s=t.$$.props[n];s!==void 0&&(t.$$.bound[s]=e,i===void 0&&e(t.$$.ctx[s]))}function Tn(t){t&&t.c()}function Sn(t,n){t&&t.l(n)}function qt(t,n,e,i){const{fragment:s,after_update:u}=t.$$;s&&s.m(n,e),i||L(()=>{const c=t.$$.on_mount.map(Z).filter(P);t.$$.on_destroy?t.$$.on_destroy.push(...c):b(c),t.$$.on_mount=[]}),u.forEach(L)}function Bt(t,n){const e=t.$$;e.fragment!==null&&(b(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Ft(t,n){t.$$.dirty[0]===-1&&(E.push(t),at(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function kn(t,n,e,i,s,u,c,r=[-1]){const o=T;N(t);const l=t.$$={fragment:null,ctx:[],props:u,update:p,not_equal:s,bound:Q(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(o?o.$$.context:[])),callbacks:Q(),dirty:r,skip_bound:!1,root:n.target||o.$$.root};c&&c(l.root);let _=!1;if(l.ctx=e?e(t,n.props||{},(f,h,...a)=>{const d=a.length?a[0]:h;return l.ctx&&s(l.ctx[f],l.ctx[f]=d)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](d),_&&Ft(t,f)),h}):[],l.update(),_=!0,b(l.before_update),l.fragment=i?i(l.ctx):!1,n.target){if(n.hydrate){bt();const f=kt(n.target);l.fragment&&l.fragment.l(f),f.forEach(A)}else l.fragment&&l.fragment.c();n.intro&&Ot(t.$$.fragment),qt(t,n.target,n.anchor,n.customElement),$t(),ft()}N(o)}class Cn{$destroy(){Bt(this,1),this.$destroy=p}$on(n,e){if(!P(e))return p;const i=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return i.push(e),()=>{const s=i.indexOf(e);s!==-1&&i.splice(s,1)}}$set(n){this.$$set&&!pt(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}const x=[];function Gt(t,n){return{subscribe:It(t,n).subscribe}}function It(t,n=p){let e;const i=new Set;function s(r){if(mt(t,r)&&(t=r,e)){const o=!x.length;for(const l of i)l[1](),x.push(l,t);if(o){for(let l=0;l<x.length;l+=2)x[l][0](x[l+1]);x.length=0}}}function u(r){s(r(t))}function c(r,o=p){const l=[r,o];return i.add(l),i.size===1&&(e=n(s)||p),r(t),()=>{i.delete(l),i.size===0&&(e(),e=null)}}return{set:s,update:u,subscribe:c}}function Mn(t,n,e){const i=!Array.isArray(t),s=i?[t]:t,u=n.length<2;return Gt(e,c=>{let r=!1;const o=[];let l=0,_=p;const f=()=>{if(l)return;_();const a=n(i?o[0]:o,c);u?c(a):_=P(a)?a:p},h=s.map((a,d)=>G(a,m=>{o[d]=m,l&=~(1<<d),r&&f()},()=>{l|=1<<d}));return r=!0,f(),function(){b(h),_()}})}export{bn as $,$n as A,It as B,Kt as C,Ut as D,Vt as E,Qt as F,Jt as G,At as H,Mn as I,Wt as J,p as K,Y as L,st as M,on as N,Zt as O,hn as P,en as Q,b as R,Cn as S,Xt as T,dt as U,sn as V,yn as W,L as X,Nn as Y,An as Z,xn as _,tn as a,_n as a0,cn as a1,Yt as a2,V as a3,an as a4,St as b,un as c,vn as d,nn as e,Ot as f,wn as g,A as h,kn as i,gn as j,W as k,ln as l,kt as m,rn as n,pn as o,dn as p,J as q,Ct as r,mt as s,En as t,fn as u,mn as v,Tn as w,Sn as x,qt as y,Bt as z};
|