Files
DeviceManager/apps/manager/build/_app/immutable/chunks/index.c2fc59c9.js

5 lines
5.3 KiB
JavaScript

import{y as x,a6 as J,d as Z,a7 as K,z as E,M as O,B as M,a8 as Q,a4 as B,a9 as U,h as T,_ as W,aa as X,ab as Y,ac as tt,Z as V,ad as et,ae as nt,af as it,ag as st,ah as rt}from "./scheduler.f5cfe514.js";const q=typeof window<"u";let I=q?()=>window.performance.now():()=>Date.now(),N=q? t=>requestAnimationFrame(t):x;const k=new Set;function G(t){k.forEach(e=>{e.c(t)||(k.delete(e),e.f())}),k.size!==0&&N(G)}function D(t){let e;return k.size===0&&N(G),{promise:new Promise(n=>{k.add(e={c:t,f:n})}),abort(){k.delete(e)}}}const C=new Map;let P=0;function at(t){let e=5381,n=t.length;for(; n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ot(t, e){const n={stylesheet:K(e),rules:{}};return C.set(t,n),n}function R(t, e, n, r, u, a, c, i=0){const l=16.666/r;let s=`{
`;for(let $=0;$<=1;$+=l){const g=e+(n-e)*a($);s+=$*100+`%{${c(g,1-g)}}
`}const _=s+`100% {${c(n,1-n)}}
}`,f=`__svelte_${at(_)}_${i}`,m=J(t),{stylesheet:h,rules:o}=C.get(m)||ot(m,t);o[f]||(o[f]=!0,h.insertRule(`@keyframes ${f} ${_}`,h.cssRules.length));const d=t.style.animation||"";return t.style.animation=`${d?`${d}, `:""}${f} ${r}ms linear ${u}ms 1 both`,P+=1,f}function A(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),u=n.length-r.length;u&&(t.style.animation=r.join(", "),P-=u,P||ft())}function ft(){N(()=>{P||(C.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&Z(e)}),C.clear())})}let S;function F(){return S||(S=Promise.resolve(),S.then(()=>{S=null})),S}function w(t,e,n){t.dispatchEvent(Q(`${e?"intro":"outro"}${n}`))}const z=new Set;let p;function ht(){p={r:0,c:[],p}}function mt(){p.r||E(p.c),p=p.p}function ut(t,e){t&&t.i&&(z.delete(t),t.i(e))}function gt(t,e,n,r){if(t&&t.o){if(z.has(t))return;z.add(t),p.c.push(()=>{z.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}const L={duration:0};function pt(t,e,n){const r={direction:"in"};let u=e(t,n,r),a=!1,c,i,l=0;function s(){c&&A(t,c)}function _(){const{delay:m=0,duration:h=300,easing:o=B,tick:d=x,css:$}=u||L;$&&(c=R(t,0,1,h,m,o,$,l++)),d(0,1);const g=I()+m,y=g+h;i&&i.abort(),a=!0,M(()=>w(t,!0,"start")),i=D(v=>{if(a){if(v>=y)return d(1,0),w(t,!0,"end"),s(),a=!1;if(v>=g){const b=o((v-g)/h);d(b,1-b)}}return a})}let f=!1;return{start(){f||(f=!0,A(t),O(u)?(u=u(r),F().then(_)):_())},invalidate(){f=!1},end(){a&&(s(),a=!1)}}}function yt(t,e,n){const r={direction:"out"};let u=e(t,n,r),a=!0,c;const i=p;i.r+=1;let l;function s(){const{delay:_=0,duration:f=300,easing:m=B,tick:h=x,css:o}=u||L;o&&(c=R(t,1,0,f,_,m,o));const d=I()+_,$=d+f;M(()=>w(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),D(g=>{if(a){if(g>=$)return h(0,1),w(t,!1,"end"),--i.r||E(i.c),!1;if(g>=d){const y=m((g-d)/f);h(1-y,y)}}return a})}return O(u)?F().then(()=>{u=u(r),s()}):s(),{end(_){_&&"inert"in t&&(t.inert=l),_&&u.tick&&u.tick(1,0),a&&(c&&A(t,c),a=!1)}}}function vt(t,e,n,r){let a=e(t,n,{direction:"both"}),c=r?0:1,i=null,l=null,s=null,_;function f(){s&&A(t,s)}function m(o,d){const $=o.b-c;return d*=Math.abs($),{a:c,b:o.b,d:$,duration:d,start:o.start,end:o.start+d,group:o.group}}function h(o){const{delay:d=0,duration:$=300,easing:g=B,tick:y=x,css:v}=a||L,b={start:I()+d,b:o};o||(b.group=p,p.r+=1),"inert"in t&&(o?_!==void 0&&(t.inert=_):(_=t.inert,t.inert=!0)),i||l?l=b:(v&&(f(),s=R(t,c,o,$,d,g,v)),o&&y(0,1),i=m(b,$),M(()=>w(t,o,"start")),D(j=>{if(l&&j>l.start&&(i=m(l,$),l=null,w(t,i.b,"start"),v&&(f(),s=R(t,c,i.b,i.duration,0,g,a.css))),i){if(j>=i.end)y(c=i.b,1-c),w(t,i.b,"end"),l||(i.b?f():--i.group.r||E(i.group.c)),i=null;else if(j>=i.start){const H=j-i.start;c=i.a+i.d*g(H/i.duration),y(c,1-c)}}return!!(i||l)}))}return{run(o){O(a)?F().then(()=>{a=a({direction:o?"in":"out"}),h(o)}):h(o)},end(){f(),i=l=null}}}function wt(t){t&&t.c()}function xt(t,e){t&&t.l(e)}function ct(t,e,n){const{fragment:r,after_update:u}=t.$$;r&&r.m(e,n),M(()=>{const a=t.$$.on_mount.map(et).filter(O);t.$$.on_destroy?t.$$.on_destroy.push(...a):E(a),t.$$.on_mount=[]}),u.forEach(M)}function lt(t,e){const n=t.$$;n.fragment!==null&&(Y(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function _t(t,e){t.$$.dirty[0]===-1&&(nt.push(t),it(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function bt(t,e,n,r,u,a,c,i=[-1]){const l=tt;V(t);const s=t.$$={fragment:null,ctx:[],props:a,update:x,not_equal:u,bound:U(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:U(),dirty:i,skip_bound:!1,root:e.target||l.$$.root};c&&c(s.root);let _=!1;if(s.ctx=n?n(t,e.props||{},(f,m,...h)=>{const o=h.length?h[0]:m;return s.ctx&&u(s.ctx[f],s.ctx[f]=o)&&(!s.skip_bound&&s.bound[f]&&s.bound[f](o),_&&_t(t,f)),m}):[],s.update(),_=!0,E(s.before_update),s.fragment=r?r(s.ctx):!1,e.target){if(e.hydrate){st();const f=T(e.target);s.fragment&&s.fragment.l(f),f.forEach(Z)}else s.fragment&&s.fragment.c();e.intro&&ut(t.$$.fragment),ct(t,e.target,e.anchor),rt(),W()}V(l)}class kt{$$=void 0;$$set=void 0;$destroy(){lt(this,1),this.$destroy=x}$on(e,n){if(!O(n))return x;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const u=r.indexOf(n);u!==-1&&r.splice(u,1)}}$set(e){this.$$set&&!X(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const dt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(dt);export{kt as S,ut as a,wt as b,mt as c,xt as d,lt as e,vt as f,ht as g,pt as h,bt as i,yt as j,ct as m,gt as t};