Anvil/assets/index-9669f5df.js

5 lines
6.4 KiB
JavaScript
Raw Normal View History

2024-03-03 15:38:10 +01:00
var it=Object.defineProperty;var st=(t,e,n)=>e in t?it(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var q=(t,e,n)=>(st(t,typeof e!="symbol"?e+"":e,n),n);import{n as v,r as b,i as A,d as V,e as T,f as rt,g as at}from"./utils-09ff0c0e.js";import{x as ot,d as X,y as ft,z,A as Y,B as lt,f as ut,C as ct,D as dt}from"./lifecycle-96ebe68d.js";const Z=typeof window<"u";let G=Z?()=>window.performance.now():()=>Date.now(),H=Z?t=>requestAnimationFrame(t):v;const O=new Set;function tt(t){O.forEach(e=>{e.c(t)||(O.delete(e),e.f())}),O.size!==0&&H(tt)}function J(t){let e;return O.size===0&&H(tt),{promise:new Promise(n=>{O.add(e={c:t,f:n})}),abort(){O.delete(e)}}}const B=new Map;let D=0;function _t(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ht(t,e){const n={stylesheet:ft(e),rules:{}};return B.set(t,n),n}function I(t,e,n,i,l,a,u,s=0){const c=16.666/i;let r=`{
2024-02-20 15:10:19 +01:00
`;for(let h=0;h<=1;h+=c){const m=e+(n-e)*a(h);r+=h*100+`%{${u(m,1-m)}}
`}const d=r+`100% {${u(n,1-n)}}
2024-02-23 14:08:28 +01:00
}`,f=`__svelte_${_t(d)}_${s}`,p=ot(t),{stylesheet:g,rules:o}=B.get(p)||ht(p,t);o[f]||(o[f]=!0,g.insertRule(`@keyframes ${f} ${d}`,g.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${i}ms linear ${l}ms 1 both`,D+=1,f}function N(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),l=n.length-i.length;l&&(t.style.animation=i.join(", "),D-=l,D||gt())}function gt(){H(()=>{D||(B.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&X(e)}),B.clear())})}const S=[],W=[];let C=[];const L=[],pt=Promise.resolve();let U=!1;function mt(){U||(U=!0,pt.then(et))}function P(t){C.push(t)}function Ct(t){L.push(t)}const F=new Set;let E=0;function et(){if(E!==0)return;const t=Y;do{try{for(;E<S.length;){const e=S[E];E++,z(e),$t(e.$$)}}catch(e){throw S.length=0,E=0,e}for(z(null),S.length=0,E=0;W.length;)W.pop()();for(let e=0;e<C.length;e+=1){const n=C[e];F.has(n)||(F.add(n),n())}C.length=0}while(S.length);for(;L.length;)L.pop()();U=!1,F.clear(),z(t)}function $t(t){if(t.fragment!==null){t.update(),b(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(P)}}function yt(t){const e=[],n=[];C.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),C=e}let j;function K(){return j||(j=Promise.resolve(),j.then(()=>{j=null})),j}function x(t,e,n){t.dispatchEvent(lt(`${e?"intro":"outro"}${n}`))}const R=new Set;let $;function Pt(){$={r:0,c:[],p:$}}function jt(){$.r||b($.c),$=$.p}function wt(t,e){t&&t.i&&(R.delete(t),t.i(e))}function zt(t,e,n,i){if(t&&t.o){if(R.has(t))return;R.add(t),$.c.push(()=>{R.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const Q={duration:0};function At(t,e,n){const i={direction:"in"};let l=e(t,n,i),a=!1,u,s,c=0;function r(){u&&N(t,u)}function d(){const{delay:p=0,duration:g=300,easing:o=V,tick:_=v,css:h}=l||Q;h&&(u=I(t,0,1,g,p,o,h,c++)),_(0,1);const m=G()+p,y=m+g;s&&s.abort(),a=!0,P(()=>x(t,!0,"start")),s=J(w=>{if(a){if(w>=y)return _(1,0),x(t,!0,"end"),r(),a=!1;if(w>=m){const k=o((w-m)/g);_(k,1-k)}}return a})}let f=!1;return{start(){f||(f=!0,N(t),A(l)?(l=l(i),K().then(d)):d())},invalidate(){f=!1},end(){a&&(r(),a=!1)}}}function Mt(t,e,n){const i={direction:"out"};let l=e(t,n,i),a=!0,u;const s=$;s.r+=1;let c;function r(){const{delay:d=0,duration:f=300,easing:p=V,tick:g=v,css:o}=l||Q;o&&(u=I(t,1,0,f,d,p,o));const _=G()+d,h=_+f;P(()=>x(t,!1,"start")),"inert"in t&&(c=t.inert,t.inert=!0),J(m=>{if(a){if(m>=h)return g(0,1),x(t,!1,"end"),--s.r||b(s.c),!1;if(m>=_){const y=p((m-_)/f);g(1-y,y)}}return a})}return A(l)?K().then(()=>{l=l(i),r()}):r(),{end(d){d&&"inert"in t&&(t.inert=c),d&&l.tick&&l.tick(1,0),a&&(u&&N(t,u),a=!1)}}}function Rt(t,e,n,i){let a=e(t,n,{direction:"both"}),u=i?0:1,s=null,c=null,r=null,d;function f(){r&&N(t,r)}function p(o,_){const h=o.b-u;return _*=Math.abs(h),{a:u,b:o.b,d:h,duration:_,start:o.start,end:o.start+_,group:o.group}}function g(o){const{delay:_=0,duration:h=300,easing:m=V,tick:y=v,css:w}=a||Q,k={start:G()+_,b:o};o||(k.group=$,$.r+=1),"inert"in t&&(o?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),s||c?c=k:(w&&(f(),r=I(t,u,o,h,_,m,w)),o&&y(0,1),s=p(k,h),P(()=>x(t,o,"start")),J(M=>{if(c&&M>c.start&&(s=p(c,h),c=null,x(t,s.b,"start"),w&&(f(),r=I(t,u,s.b,s.duration,0,m,a.css))),s){if(M>=s.end)y(u=s.b,1-u),x(t,s.b,"end"),c||(s.b?f():--s.group.r||b(s.group.c)),s=null;else if(M>=s.start){const nt=M-s.start;u=s.a+s.d*m(nt/s.duration),y(u,1-u)}}return!!(s||c)}))}return{run(o){A(a)?K().then(()=>{a=a({direction:o?"in":"out"}),g(o)}):g(o)},end(){f(),s=c=null}}}function Bt(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function Dt(t){t&&t.c()}function It(t,e){t&&t.l(e)}function xt(t,e,n){const{fragment:i,after_update:l}=t.$$;i&&i.m(e,n),P(()=>{const a=t.$$.on_mount.map(at).filter(A);t.$$.on_destroy?t.$$.on_destroy.push(...a):b(a),t.$$.on_mount=[]}),l.forEach(P)}function vt(t,e){const n=t.$$;n.fragment!==null&&(yt(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function bt(t,e){t.$$.dirty[