vag_tools 0.1.2 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ var Ct=Array.isArray,Mt=Array.prototype.indexOf,xn=Array.from,kn=Object.defineProperty,le=Object.getOwnPropertyDescriptor,jt=Object.getOwnPropertyDescriptors,qt=Object.prototype,Lt=Array.prototype,nt=Object.getPrototypeOf,We=Object.isExtensible;const An=()=>{};function Rn(e){return e()}function Yt(e){for(var t=0;t<e.length;t++)e[t]()}function rt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const w=2,Le=4,ke=8,Ut=1<<24,j=16,q=32,te=64,Ye=128,D=512,m=1024,x=2048,I=4096,N=8192,Y=16384,Ue=32768,pe=65536,Pe=1<<17,st=1<<18,ve=1<<19,ft=1<<20,W=32768,Ne=1<<21,Be=1<<22,U=1<<23,ue=Symbol("$state"),Sn=Symbol("legacy props"),ne=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},He=3,it=8;function Bt(e){throw new Error("https://svelte.dev/e/experimental_async_required")}function Dn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ht(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Vt(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Gt(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Kt(e){throw new Error("https://svelte.dev/e/effect_orphan")}function zt(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $t(){throw new Error("https://svelte.dev/e/fork_discarded")}function Zt(){throw new Error("https://svelte.dev/e/fork_timing")}function Pn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Nn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Jt(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wt(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Xt(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function In(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Fn=1,Cn=2,Mn=4,jn=8,qn=16,Ln=1,Yn=2,Qt="[",en="[!",tn="]",Ve={},E=Symbol();function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Un(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let X=!1;function Bn(e){X=e}let A;function re(e){if(e===null)throw Ge(),Ve;return A=e}function Hn(){return re(G(A))}function Vn(e){if(X){if(G(A)!==null)throw Ge(),Ve;A=e}}function Gn(e=1){if(X){for(var t=e,n=A;t--;)n=G(n);A=n}}function Kn(e=!0){for(var t=0,n=A;;){if(n.nodeType===it){var r=n.data;if(r===tn){if(t===0)return n;t-=1}else(r===Qt||r===en)&&(t+=1)}var s=G(n);e&&n.remove(),n=s}}function zn(e){if(!e||e.nodeType!==it)throw Ge(),Ve;return e.data}function at(e){return e===this.v}function nn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function lt(e){return!nn(e,this.v)}let Ae=!1;function $n(){Ae=!0}let b=null;function we(e){b=e}function Zn(e,t=!1,n){b={p:b,i:!1,c:null,e:null,s:e,x:null,l:Ae&&!t?{s:null,u:null,$:[]}:null}}function Jn(e){var t=b,n=t.e;if(n!==null){t.e=null;for(var r of n)bt(r)}return t.i=!0,b=t.p,{}}function de(){return!Ae||b!==null&&b.l===null}let z=[];function ut(){var e=z;z=[],Yt(e)}function rn(e){if(z.length===0&&!oe){var t=z;queueMicrotask(()=>{t===z&&ut()})}z.push(e)}function sn(){for(;z.length>0;)ut()}function fn(e){var t=h;if(t===null)return _.f|=U,e;if((t.f&Ue)===0){if((t.f&Ye)===0)throw e;t.b.error(e)}else ye(e,t)}function ye(e,t){for(;t!==null;){if((t.f&Ye)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const $=new Set;let p=null,T=null,S=[],Re=null,Ie=!1,oe=!1;class H{committed=!1;current=new Map;previous=new Map;#r=new Set;#s=new Set;#e=0;#t=0;#a=null;#f=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#t>0}process(t){S=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const r of t)this.#l(r,n);this.is_fork||this.#o(),this.is_deferred()?(this.#n(n.effects),this.#n(n.render_effects)):(p=null,Xe(n.render_effects),Xe(n.effects),this.#a?.resolve()),T=null}#l(t,n){t.f^=m;for(var r=t.first;r!==null;){var s=r.f,f=(s&(q|te))!==0,u=f&&(s&m)!==0,l=u||(s&N)!==0||this.skipped_effects.has(r);if((r.f&Ye)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!l&&r.fn!==null){f?r.f^=m:(s&Le)!==0?n.effects.push(r):he(r)&&((r.f&j)!==0&&this.#f.add(r),_e(r));var i=r.first;if(i!==null){r=i;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#n(n.effects),this.#n(n.render_effects),n=n.parent),r=a.next,a=a.parent}}#n(t){for(const n of t)(n.f&x)!==0?this.#f.add(n):(n.f&I)!==0&&this.#i.add(n),this.#u(n.deps),y(n,m)}#u(t){if(t!==null)for(const n of t)(n.f&w)===0||(n.f&W)===0||(n.f^=W,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&U)===0&&(this.current.set(t,t.v),T?.set(t,t.v))}activate(){p=this,this.apply()}deactivate(){p===this&&(p=null,T=null)}flush(){if(this.activate(),S.length>0){if(Ce(),p!==null&&p!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#o(){if(this.#t===0){for(const t of this.#r)t();this.#r.clear()}this.#e===0&&this.#c()}#c(){if($.size>1){this.previous.clear();var t=T,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const f of $){if(f===this){n=!1;continue}const u=[];for(const[i,a]of this.current){if(f.current.has(i))if(n&&a!==f.current.get(i))f.current.set(i,a);else continue;u.push(i)}if(u.length===0)continue;const l=[...f.current.keys()].filter(i=>!this.current.has(i));if(l.length>0){var s=S;S=[];const i=new Set,a=new Map;for(const o of u)ot(o,l,i,a);if(S.length>0){p=f,f.apply();for(const o of S)f.#l(o,r);f.deactivate()}S=s}}p=null,T=t}this.committed=!0,$.delete(this)}increment(t){this.#e+=1,t&&(this.#t+=1)}decrement(t){this.#e-=1,t&&(this.#t-=1),this.revive()}revive(){for(const t of this.#f)this.#i.delete(t),y(t,x),Q(t);for(const t of this.#i)y(t,I),Q(t);this.flush()}oncommit(t){this.#r.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#a??=rt()).promise}static ensure(){if(p===null){const t=p=new H;$.add(p),oe||H.enqueue(()=>{p===t&&t.flush()})}return p}static enqueue(t){rn(t)}apply(){}}function Fe(e){var t=oe;oe=!0;try{var n;for(e&&(p!==null&&Ce(),n=e());;){if(sn(),S.length===0&&(p?.flush(),S.length===0))return Re=null,n;Ce()}}finally{oe=t}}function Ce(){var e=Z;Ie=!0;var t=null;try{var n=0;for(Te(!0);S.length>0;){var r=H.ensure();if(n++>1e3){var s,f;an()}r.process(S),B.clear()}}finally{Ie=!1,Te(e),Re=null}}function an(){try{zt()}catch(e){ye(e,Re)}}let C=null;function Xe(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Y|N))===0&&he(r)&&(C=new Set,_e(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?kt(r):r.fn=null),C?.size>0)){B.clear();for(const s of C){if((s.f&(Y|N))!==0)continue;const f=[s];let u=s.parent;for(;u!==null;)C.has(u)&&(C.delete(u),f.push(u)),u=u.parent;for(let l=f.length-1;l>=0;l--){const i=f[l];(i.f&(Y|N))===0&&_e(i)}}C.clear()}}C=null}}function ot(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&w)!==0?ot(s,t,n,r):(f&(Be|j))!==0&&(f&x)===0&&_t(s,t,r)&&(y(s,x),Q(s))}}function ct(e,t){if(e.reactions!==null)for(const n of e.reactions){const r=n.f;(r&w)!==0?ct(n,t):(r&Pe)!==0&&(y(n,x),t.add(n))}}function _t(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&w)!==0&&_t(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Q(e){for(var t=Re=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ie&&t===h&&(n&j)!==0&&(n&st)===0)return;if((n&(te|q))!==0){if((n&m)===0)return;t.f^=m}}S.push(t)}function Wn(e){Bt(),p!==null&&Zt();var t=H.ensure();t.is_fork=!0,T=new Map;var n=!1,r=t.settled();Fe(e),T=null;for(var[s,f]of t.previous)s.v=f;return{commit:async()=>{if(n){await r;return}$.has(t)||$t(),n=!0,t.is_fork=!1;for(var[u,l]of t.current)u.v=l;Fe(()=>{var i=new Set;for(var a of t.current.keys())ct(a,i);vn(i),pt()}),t.revive(),await r},discard:()=>{!n&&$.has(t)&&($.delete(t),t.discard())}}}function ln(e,t,n,r){const s=de()?Ke:cn;if(n.length===0&&e.length===0){r(t.map(s));return}var f=p,u=h,l=un();function i(){Promise.all(n.map(a=>on(a))).then(a=>{l();try{r([...t.map(s),...a])}catch(o){(u.f&Y)===0&&ye(o,u)}f?.deactivate(),Ee()}).catch(a=>{ye(a,u)})}e.length>0?Promise.all(e).then(()=>{l();try{return i()}finally{f?.deactivate(),Ee()}}):i()}function un(){var e=h,t=_,n=b,r=p;return function(f=!0){se(e),V(t),we(n),f&&r?.activate()}}function Ee(){se(null),V(null),we(null)}function Ke(e){var t=w|x,n=_!==null&&(_.f&w)!==0?_:null;return h!==null&&(h.f|=ve),{ctx:b,deps:null,effects:null,equals:at,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??h,ac:null}}function on(e,t){let n=h;n===null&&Ht();var r=n.b,s=void 0,f=$e(E),u=!_,l=new Map;return wn(()=>{var i=rt();s=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).then(()=>{a===p&&a.committed&&a.deactivate(),Ee()})}catch(c){i.reject(c),Ee()}var a=p;if(u){var o=!r.is_pending();r.update_pending_count(1),a.increment(o),l.get(a)?.reject(ne),l.delete(a),l.set(a,i)}const v=(c,d=void 0)=>{if(a.activate(),d)d!==ne&&(f.f|=U,Me(f,d));else{(f.f&U)!==0&&(f.f^=U),Me(f,c);for(const[O,Se]of l){if(l.delete(O),O===a)break;Se.reject(ne)}}u&&(r.update_pending_count(-1),a.decrement(o))};i.promise.then(v,c=>v(null,c||"unknown"))}),pn(()=>{for(const i of l.values())i.reject(ne)}),new Promise(i=>{function a(o){function v(){o===s?i(f):a(s)}o.then(v,v)}a(s)})}function Xn(e){const t=Ke(e);return St(t),t}function cn(e){const t=Ke(e);return t.equals=lt,t}function vt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ee(t[n])}}function _n(e){for(var t=e.parent;t!==null;){if((t.f&w)===0)return(t.f&Y)===0?t:null;t=t.parent}return null}function ze(e){var t,n=h;se(_n(e));try{e.f&=~W,vt(e),t=Nt(e)}finally{se(n)}return t}function dt(e){var t=ze(e);if(e.equals(t)||(p?.is_fork||(e.v=t),e.wv=Dt()),!fe)if(T!==null)(be()||p?.is_fork)&&T.set(e,t);else{var n=(e.f&D)===0?I:m;y(e,n)}}let me=new Set;const B=new Map;function vn(e){me=e}let ht=!1;function $e(e,t){var n={f:0,v:e,reactions:null,equals:at,rv:0,wv:0};return n}function L(e,t){const n=$e(e);return St(n),n}function Qn(e,t=!1,n=!0){const r=$e(e);return t||(r.equals=lt),Ae&&n&&b!==null&&b.l!==null&&(b.l.s??=[]).push(r),r}function K(e,t,n=!1){_!==null&&(!P||(_.f&Pe)!==0)&&de()&&(_.f&(w|j|Be|Pe))!==0&&!M?.includes(e)&&Xt();let r=n?ie(t):t;return Me(e,r)}function Me(e,t){if(!e.equals(t)){var n=e.v;fe?B.set(e,t):B.set(e,n),e.v=t;var r=H.ensure();r.capture(e,n),(e.f&w)!==0&&((e.f&x)!==0&&ze(e),y(e,(e.f&D)!==0?m:I)),e.wv=Dt(),wt(e,x),de()&&h!==null&&(h.f&m)!==0&&(h.f&(q|te))===0&&(R===null?gn([e]):R.push(e)),!r.is_fork&&me.size>0&&!ht&&pt()}return t}function pt(){ht=!1;var e=Z;Te(!0);const t=Array.from(me);try{for(const n of t)(n.f&m)!==0&&y(n,I),he(n)&&_e(n)}finally{Te(e)}me.clear()}function De(e){K(e,e.v+1)}function wt(e,t){var n=e.reactions;if(n!==null)for(var r=de(),s=n.length,f=0;f<s;f++){var u=n[f],l=u.f;if(!(!r&&u===h)){var i=(l&x)===0;if(i&&y(u,t),(l&w)!==0){var a=u;T?.delete(a),(l&W)===0&&(l&D&&(u.f|=W),wt(a,I))}else i&&((l&j)!==0&&C!==null&&C.add(u),Q(u))}}}function ie(e){if(typeof e!="object"||e===null||ue in e)return e;const t=nt(e);if(t!==qt&&t!==Lt)return e;var n=new Map,r=Ct(e),s=L(0),f=J,u=l=>{if(J===f)return l();var i=_,a=J;V(null),tt(f);var o=l();return V(i),tt(a),o};return r&&n.set("length",L(e.length)),new Proxy(e,{defineProperty(l,i,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Jt();var o=n.get(i);return o===void 0?o=u(()=>{var v=L(a.value);return n.set(i,v),v}):K(o,a.value,!0),!0},deleteProperty(l,i){var a=n.get(i);if(a===void 0){if(i in l){const o=u(()=>L(E));n.set(i,o),De(s)}}else K(a,E),De(s);return!0},get(l,i,a){if(i===ue)return e;var o=n.get(i),v=i in l;if(o===void 0&&(!v||le(l,i)?.writable)&&(o=u(()=>{var d=ie(v?l[i]:E),O=L(d);return O}),n.set(i,o)),o!==void 0){var c=ae(o);return c===E?void 0:c}return Reflect.get(l,i,a)},getOwnPropertyDescriptor(l,i){var a=Reflect.getOwnPropertyDescriptor(l,i);if(a&&"value"in a){var o=n.get(i);o&&(a.value=ae(o))}else if(a===void 0){var v=n.get(i),c=v?.v;if(v!==void 0&&c!==E)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,i){if(i===ue)return!0;var a=n.get(i),o=a!==void 0&&a.v!==E||Reflect.has(l,i);if(a!==void 0||h!==null&&(!o||le(l,i)?.writable)){a===void 0&&(a=u(()=>{var c=o?ie(l[i]):E,d=L(c);return d}),n.set(i,a));var v=ae(a);if(v===E)return!1}return o},set(l,i,a,o){var v=n.get(i),c=i in l;if(r&&i==="length")for(var d=a;d<v.v;d+=1){var O=n.get(d+"");O!==void 0?K(O,E):d in l&&(O=u(()=>L(E)),n.set(d+"",O))}if(v===void 0)(!c||le(l,i)?.writable)&&(v=u(()=>L(void 0)),K(v,ie(a)),n.set(i,v));else{c=v.v!==E;var Se=u(()=>ie(a));K(v,Se)}var Ze=Reflect.getOwnPropertyDescriptor(l,i);if(Ze?.set&&Ze.set.call(o,a),!c){if(r&&typeof i=="string"){var Je=n.get("length"),Oe=Number(i);Number.isInteger(Oe)&&Oe>=Je.v&&K(Je,Oe+1)}De(s)}return!0},ownKeys(l){ae(s);var i=Reflect.ownKeys(l).filter(v=>{var c=n.get(v);return c===void 0||c.v!==E});for(var[a,o]of n)o.v!==E&&!(a in l)&&i.push(a);return i},setPrototypeOf(){Wt()}})}var Qe,dn,yt,Et;function er(){if(Qe===void 0){Qe=window,dn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;yt=le(t,"firstChild").get,Et=le(t,"nextSibling").get,We(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),We(n)&&(n.__t=void 0)}}function ge(e=""){return document.createTextNode(e)}function je(e){return yt.call(e)}function G(e){return Et.call(e)}function tr(e,t){if(!X)return je(e);var n=je(A);if(n===null)n=A.appendChild(ge());else if(t&&n.nodeType!==He){var r=ge();return n?.before(r),re(r),r}return re(n),n}function nr(e,t=!1){if(!X){var n=je(e);return n instanceof Comment&&n.data===""?G(n):n}if(t&&A?.nodeType!==He){var r=ge();return A?.before(r),re(r),r}return A}function rr(e,t=1,n=!1){let r=X?A:e;for(var s;t--;)s=r,r=G(r);if(!X)return r;if(n&&r?.nodeType!==He){var f=ge();return r===null?s?.after(f):r.before(f),re(f),f}return re(r),r}function sr(e){e.textContent=""}function fr(){return!1}function mt(e){var t=_,n=h;V(null),se(null);try{return e()}finally{V(t),se(n)}}function gt(e){h===null&&(_===null&&Kt(),Gt()),fe&&Vt()}function hn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function F(e,t,n){var r=h;r!==null&&(r.f&N)!==0&&(e|=N);var s={ctx:b,deps:null,nodes:null,f:e|x|D,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{_e(s),s.f|=Ue}catch(l){throw ee(s),l}else t!==null&&Q(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&ve)===0&&(f=f.first,(e&j)!==0&&(e&pe)!==0&&f!==null&&(f.f|=pe)),f!==null&&(f.parent=r,r!==null&&hn(f,r),_!==null&&(_.f&w)!==0&&(e&te)===0)){var u=_;(u.effects??=[]).push(f)}return s}function be(){return _!==null&&!P}function pn(e){const t=F(ke,null,!1);return y(t,m),t.teardown=e,t}function ir(e){gt();var t=h.f,n=!_&&(t&q)!==0&&(t&Ue)===0;if(n){var r=b;(r.e??=[]).push(e)}else return bt(e)}function bt(e){return F(Le|ft,e,!1)}function ar(e){return gt(),F(ke|ft,e,!0)}function lr(e){H.ensure();const t=F(te|ve,e,!0);return(n={})=>new Promise(r=>{n.outro?mn(t,()=>{ee(t),r(void 0)}):(ee(t),r(void 0))})}function ur(e){return F(Le,e,!1)}function wn(e){return F(Be|ve,e,!0)}function or(e,t=0){return F(ke|t,e,!0)}function cr(e,t=[],n=[],r=[]){ln(r,t,n,s=>{F(ke,()=>e(...s.map(ae)),!0)})}function _r(e,t=0){var n=F(j|t,e,!0);return n}function vr(e){return F(q|ve,e,!0)}function Tt(e){var t=e.teardown;if(t!==null){const n=fe,r=_;et(!0),V(null);try{t.call(null)}finally{et(n),V(r)}}}function xt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&mt(()=>{s.abort(ne)});var r=n.next;(n.f&te)!==0?n.parent=null:ee(n,t),n=r}}function yn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&q)===0&&ee(t),t=n}}function ee(e,t=!0){var n=!1;(t||(e.f&st)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(En(e.nodes.start,e.nodes.end),n=!0),xt(e,t&&!n),xe(e,0),y(e,Y);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();Tt(e);var s=e.parent;s!==null&&s.first!==null&&kt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function En(e,t){for(;e!==null;){var n=e===t?null:G(e);e.remove(),e=n}}function kt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function mn(e,t,n=!0){var r=[];At(e,r,!0);var s=()=>{n&&ee(e),t&&t()},f=r.length;if(f>0){var u=()=>--f||s();for(var l of r)l.out(u)}else s()}function At(e,t,n){if((e.f&N)===0){e.f^=N;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var f=s.next,u=(s.f&pe)!==0||(s.f&q)!==0&&(e.f&j)!==0;At(s,t,u?n:!1),s=f}}}function dr(e){Rt(e,!0)}function Rt(e,t){if((e.f&N)!==0){e.f^=N,(e.f&m)===0&&(y(e,x),Q(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&pe)!==0||(n.f&q)!==0;Rt(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const u of f)(u.is_global||t)&&u.in()}}function hr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:G(n);t.append(n),n=s}}let Z=!1;function Te(e){Z=e}let fe=!1;function et(e){fe=e}let _=null,P=!1;function V(e){_=e}let h=null;function se(e){h=e}let M=null;function St(e){_!==null&&(M===null?M=[e]:M.push(e))}let g=null,k=0,R=null;function gn(e){R=e}let Ot=1,ce=0,J=ce;function tt(e){J=e}function Dt(){return++Ot}function he(e){var t=e.f;if((t&x)!==0)return!0;if(t&w&&(e.f&=~W),(t&I)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var f=n[s];if(he(f)&&dt(f),f.wv>e.wv)return!0}(t&D)!==0&&T===null&&y(e,m)}return!1}function Pt(e,t,n=!0){var r=e.reactions;if(r!==null&&!M?.includes(e))for(var s=0;s<r.length;s++){var f=r[s];(f.f&w)!==0?Pt(f,t,!1):t===f&&(n?y(f,x):(f.f&m)!==0&&y(f,I),Q(f))}}function Nt(e){var t=g,n=k,r=R,s=_,f=M,u=b,l=P,i=J,a=e.f;g=null,k=0,R=null,_=(a&(q|te))===0?e:null,M=null,we(e.ctx),P=!1,J=++ce,e.ac!==null&&(mt(()=>{e.ac.abort(ne)}),e.ac=null);try{e.f|=Ne;var o=e.fn,v=o(),c=e.deps;if(g!==null){var d;if(xe(e,k),c!==null&&k>0)for(c.length=k+g.length,d=0;d<g.length;d++)c[k+d]=g[d];else e.deps=c=g;if(be()&&(e.f&D)!==0)for(d=k;d<c.length;d++)(c[d].reactions??=[]).push(e)}else c!==null&&k<c.length&&(xe(e,k),c.length=k);if(de()&&R!==null&&!P&&c!==null&&(e.f&(w|I|x))===0)for(d=0;d<R.length;d++)Pt(R[d],e);return s!==null&&s!==e&&(ce++,R!==null&&(r===null?r=R:r.push(...R))),(e.f&U)!==0&&(e.f^=U),v}catch(O){return fn(O)}finally{e.f^=Ne,g=t,k=n,R=r,_=s,M=f,we(u),P=l,J=i}}function bn(e,t){let n=t.reactions;if(n!==null){var r=Mt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&w)!==0&&(g===null||!g.includes(t))&&(y(t,I),(t.f&D)!==0&&(t.f^=D,t.f&=~W),vt(t),xe(t,0))}function xe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)bn(e,n[r])}function _e(e){var t=e.f;if((t&Y)===0){y(e,m);var n=h,r=Z;h=e,Z=!0;try{(t&(j|Ut))!==0?yn(e):xt(e),Tt(e);var s=Nt(e);e.teardown=typeof s=="function"?s:null,e.wv=Ot;var f}finally{Z=r,h=n}}}async function pr(){await Promise.resolve(),Fe()}function wr(){return H.ensure().settled()}function ae(e){var t=e.f,n=(t&w)!==0;if(_!==null&&!P){var r=h!==null&&(h.f&Y)!==0;if(!r&&!M?.includes(e)){var s=_.deps;if((_.f&Ne)!==0)e.rv<ce&&(e.rv=ce,g===null&&s!==null&&s[k]===e?k++:g===null?g=[e]:g.includes(e)||g.push(e));else{(_.deps??=[]).push(e);var f=e.reactions;f===null?e.reactions=[_]:f.includes(_)||f.push(_)}}}if(fe){if(B.has(e))return B.get(e);if(n){var u=e,l=u.v;return((u.f&m)===0&&u.reactions!==null||Ft(u))&&(l=ze(u)),B.set(u,l),l}}else n&&(!T?.has(e)||p?.is_fork&&!be())&&(u=e,he(u)&&dt(u),Z&&be()&&(u.f&D)===0&&It(u));if(T?.has(e))return T.get(e);if((e.f&U)!==0)throw e.v;return e.v}function It(e){if(e.deps!==null){e.f^=D;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&w)!==0&&(t.f&D)===0&&It(t)}}function Ft(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(B.has(t)||(t.f&w)!==0&&Ft(t))return!0;return!1}function yr(e){var t=P;try{return P=!0,e()}finally{P=t}}const Tn=-7169;function y(e,t){e.f=e.f&Tn|t}function Er(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ue in e)qe(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&ue in n&&qe(n)}}}function qe(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{qe(e[r],t)}catch{}const n=nt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=jt(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}export{Ye as $,De as A,rn as B,A as C,h as D,_r as E,vr as F,H as G,mn as H,ge as I,se as J,V as K,we as L,fn as M,_ as N,hr as O,Me as P,ee as Q,re as R,Gn as S,Kn as T,ye as U,In as V,Un as W,it as X,en as Y,pe as Z,ve as _,ir as a,pn as a0,mt as a1,kn as a2,je as a3,dn as a4,Ln as a5,Yn as a6,Ue as a7,He as a8,er as a9,qn as aA,Sn as aB,Fe as aC,L as aD,pr as aE,Xn as aF,An as aG,nn as aH,Wn as aI,wr as aJ,Qt as aa,G as ab,Ve as ac,Bn as ad,Pn as ae,sr as af,xn as ag,lr as ah,tn as ai,Ge as aj,p as ak,dr as al,fr as am,zn as an,ur as ao,ue as ap,le as aq,Nn as ar,Mn as as,cn as at,ie as au,fe as av,Y as aw,jn as ax,Cn as ay,Fn as az,yr as b,b as c,Rn as d,Er as e,Ke as f,ae as g,Ae as h,$n as i,nr as j,tr as k,Dn as l,Vn as m,Qn as n,K as o,Zn as p,Jn as q,Yt as r,rr as s,cr as t,ar as u,X as v,Hn as w,be as x,$e as y,or as z};
@@ -0,0 +1 @@
1
+ import{l as o,a,c as t,h as c,b as l}from"./A9QBkv6k.js";function f(n){t===null&&o(),c&&t.l!==null?u(t).m.push(n):a(()=>{const e=l(n);if(typeof e=="function")return e})}function u(n){var e=n.l;return e.u??={a:[],b:[],m:[]}}export{f as o};
@@ -0,0 +1 @@
1
+ import{aG as he,aH as _t,aD as U,g as T,o as I,aE as ee,aI as De,aJ as mt}from"./A9QBkv6k.js";import{o as Ve}from"./BoHJkn8d.js";const V=[];function Se(e,t=he){let n=null;const a=new Set;function r(s){if(_t(e,s)&&(e=s,n)){const c=!V.length;for(const l of a)l[1](),V.push(l,e);if(c){for(let l=0;l<V.length;l+=2)V[l][0](V[l+1]);V.length=0}}}function i(s){r(s(e))}function o(s,c=he){const l=[s,c];return a.add(l),a.size===1&&(n=t(r,i)||he),s(e),()=>{a.delete(l),a.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:o}}class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class xe extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function wt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function vt(e){return e.split("%25").map(decodeURI).join("%25")}function yt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function pe({href:e}){return e.split("#")[0]}function bt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function kt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const St=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&z.delete(Ae(e)),St(e,t));const z=new Map;function Et(e,t){const n=Ae(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&z.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=kt(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function Rt(e,t,n){if(z.size>0){const a=Ae(e,n),r=z.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);z.delete(a)}}return window.fetch(t,n)}function Ae(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${bt(...r)}"]`}return a}const xt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function At(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Ut(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ge(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ge(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const f=xt.exec(c),[,h,w,u,g]=f;return t.push({name:u,matcher:g,optional:!!h,rest:!!w,chained:w?l===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return ge(c)}).join("")}).join("")}/?$`),params:t}}function Lt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Ut(e){return e.slice(1).split("/").filter(Lt)}function Tt(e,t,n){const a={},r=e.slice(1),i=r.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let l=r[s-o];if(c.chained&&c.rest&&o&&(l=r.slice(s-o,s+1).filter(f=>f).join("/"),o=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const f=t[s+1],h=r[s+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(a).length===i.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return a}function ge(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function It({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,f]])=>{const{pattern:h,params:w}=At(s),u={id:s,exec:g=>{const m=h.exec(g);if(m)return Tt(m,w,a)},errors:[1,...f||[]].map(g=>e[g]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function Ye(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Be(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const A=globalThis.__sveltekit_nv8673?.base??"",Ot=globalThis.__sveltekit_nv8673?.assets??A??"",$t="1766919722497",He="sveltekit:snapshot",Je="sveltekit:scroll",Xe="sveltekit:states",Pt="sveltekit:pageurl",K="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Le=location.origin;function Qe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function le(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ke={...j,"":j.hover};function Ze(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ze(e)}}function we(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";a.hash=`#${s}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!a||!!r||ue(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===Le&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function te(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=B(s,"preload-code")),r===null&&(r=B(s,"preload-data")),t===null&&(t=B(s,"keepfocus")),n===null&&(n=B(s,"noscroll")),i===null&&(i=B(s,"reload")),o===null&&(o=B(s,"replacestate")),s=Ze(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ke[a??"off"],preload_data:Ke[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function Ge(e){const t=Se(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:a,set:r,subscribe:i}}const tt={v:()=>{}};function Ct(){const{set:e,subscribe:t}=Se(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${Ot}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==$t;return o&&(e(!0),tt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function ue(e,t,n){return e.origin!==Le||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function ln(e){}const nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const jt=new Set([...nt]);[...jt];function Nt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Ee||e instanceof xe?e.status:500}function qt(e){return e instanceof xe?e.text:"Internal Error"}let k,Y,_e;const Dt=Ve.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ve.toString());Dt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Y={current:null},_e={current:!1}):(k=new class{#e=U({});get data(){return T(this.#e)}set data(t){I(this.#e,t)}#t=U(null);get form(){return T(this.#t)}set form(t){I(this.#t,t)}#n=U(null);get error(){return T(this.#n)}set error(t){I(this.#n,t)}#a=U({});get params(){return T(this.#a)}set params(t){I(this.#a,t)}#r=U({id:null});get route(){return T(this.#r)}set route(t){I(this.#r,t)}#o=U({});get state(){return T(this.#o)}set state(t){I(this.#o,t)}#s=U(-1);get status(){return T(this.#s)}set status(t){I(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return T(this.#i)}set url(t){I(this.#i,t)}},Y=new class{#e=U(null);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},_e=new class{#e=U(!1);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},tt.v=()=>_e.current=!0);function at(e){Object.assign(k,e)}const Vt=new Set(["icon","shortcut icon","apple-touch-icon"]),q=Ye(Je)??{},H=Ye(He)??{},C={url:Ge({}),page:Ge({}),navigating:Se(null),updated:Ct()};function Te(e){q[e]=le()}function Bt(e,t){let n=e+1;for(;q[n];)delete q[n],n+=1;for(n=t+1;H[n];)delete H[n],n+=1}function J(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(A||"/");e&&await e.update()}}function Me(){}let Ie,ve,ne,O,ye,v;const ae=[],re=[];let R=null;function be(){R?.fork?.then(e=>e?.discard()),R=null}const Z=new Map,ot=new Set,Kt=new Set,F=new Set;let _={branch:[],error:null,url:null},st=!1,oe=!1,ze=!0,X=!1,M=!1,it=!1,Oe=!1,$e,y,x,N;const se=new Set,Fe=new Map;async function hn(e,t,n){globalThis.__sveltekit_nv8673?.data&&globalThis.__sveltekit_nv8673.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Ie=It(e),O=document.documentElement,ye=t,ve=e.nodes[0],ne=e.nodes[1],ve(),ne(),y=history.state?.[K],x=history.state?.[W],y||(y=x=Date.now(),history.replaceState({...history.state,[K]:y,[W]:x},""));const a=q[y];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await nn(ye,n)):(await G({type:"enter",url:Qe(v.hash?on(new URL(location.href)):location.href),replace_state:!0}),r()),tn()}function Gt(){ae.length=0,Oe=!1}function ct(e){re.some(t=>t?.snapshot)&&(H[e]=re.map(t=>t?.snapshot?.capture()))}function lt(e){H[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function We(){Te(y),Be(Je,q),ct(x),Be(He,H)}async function Mt(e,t,n,a){let r;t.invalidateAll&&be(),await G({type:"goto",url:Qe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(Oe=!0,r=[...Fe.keys()]),t.invalidate&&t.invalidate.forEach(en)}}),t.invalidateAll&&ee().then(ee).then(()=>{Fe.forEach(({resource:i},o)=>{r?.includes(o)&&i.refresh?.()})})}async function zt(e){if(e.id!==R?.id){be();const t={};if(se.add(t),R={id:e.id,token:t,promise:ft({...e,preload:t}).then(n=>(se.delete(t),n.type==="loaded"&&n.state.error&&be(),n)),fork:null},De){const n=R;n.fork=n.promise.then(a=>{if(n===R&&a.type==="loaded")try{return De(()=>{$e.$set(a.props),at(a.props.page)})}catch{}return null})}}return R.promise}async function me(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function ut(e,t,n){_=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),$e=new v.root({target:t,props:{...e.props,stores:C,components:re},hydrate:n,sync:!1}),await Promise.resolve(),lt(x),n){const r={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};F.forEach(i=>i(r))}oe=!0}function ie({url:e,params:t,branch:n,status:a,error:r,route:i,form:o}){let s="never";if(A&&(e.pathname===A||e.pathname===A+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=wt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:i},props:{constructors:Nt(n).map(u=>u.node.component),page:qe(k)}};o!==void 0&&(c.props.form=o);let l={},f=!k,h=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const g=n[u],m=_.branch[u];g?.data!==m?.data&&(f=!0),g&&(l={...l,...g.data},f&&(c.props[`data_${h}`]=l),h+=1)}return(!_.url||e.href!==_.url.href||_.error!==r||o!==void 0&&o!==k.form||f)&&(c.props.page={error:r,params:t,route:{id:i?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:f?l:k.data}),c}async function Pe({loader:e,parent:t,url:n,params:a,route:r,server_data_node:i}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function Ft(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const i=oe?Rt(a,r.href,t):Et(a,t);return{resolved:r,promise:i}}function Wt(e,t,n,a,r,i){if(Oe)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(i[o]!==_.params[o])return!0;for(const o of r.dependencies)if(ae.some(s=>s(new URL(o))))return!0;return!1}function Ce(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),i=t.searchParams.getAll(a);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&n.delete(a)}return n}function Ht({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:qe(k),constructors:[]}}}async function ft({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if(R?.id===e)return se.delete(R.token),R.promise;const{errors:o,layouts:s,leaf:c}=r,l=[...s,c];o.forEach(p=>p?.().catch(()=>{})),l.forEach(p=>p?.[1]().catch(()=>{}));const f=_.url?e!==ce(_.url):!1,h=_.route?r.id!==_.route.id:!1,w=Yt(_.url,n);let u=!1;const g=l.map(async(p,d)=>{if(!p)return;const S=_.branch[d];return p[1]===S?.loader&&!Wt(u,h,f,w,S.universal?.uses,a)?S:(u=!0,Pe({loader:p[1],url:n,params:a,route:r,parent:async()=>{const $={};for(let L=0;L<d;L+=1)Object.assign($,(await g[L])?.data);return $},server_data_node:Ce(p[0]?{type:"skip"}:null,p[0]?S?.server:void 0)}))});for(const p of g)p.catch(()=>{});const m=[];for(let p=0;p<l.length;p+=1)if(l[p])try{m.push(await g[p])}catch(d){if(d instanceof Re)return{type:"redirect",location:d.location};if(se.has(i))return Ht({error:await Q(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let S=Ue(d),E;if(d instanceof Ee)E=d.body;else{if(await C.updated.check())return await rt(),await J(n);E=await Q(d,{params:a,url:n,route:{id:r.id}})}const $=await Jt(p,m,o);return $?ie({url:n,params:a,branch:m.slice(0,$.idx).concat($.node),status:S,error:E,route:r}):await ht(n,{id:r.id},E,S)}else m.push(void 0);return ie({url:n,params:a,branch:m,status:200,error:null,route:r,form:t?void 0:null})}async function Jt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function je({status:e,error:t,url:n,route:a}){const r={};let i=null;try{const o=await Pe({loader:ve,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Ce(i)}),s={node:await ne(),loader:ne,universal:null,server:null,data:null};return ie({url:n,params:r,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof Re)return Mt(new URL(o.location,location.href),{},0);throw o}}async function Xt(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const a=(async()=>{let r=await v.hooks.reroute({url:new URL(e),fetch:async(i,o)=>Ft(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);v.hash?i.hash=r:i.pathname=r,r=i}return r})();Z.set(t,a),n=await a}catch{Z.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,A,v.hash)){const n=await Xt(e);if(!n)return;const a=Qt(n);for(const r of Ie){const i=r.exec(a);if(i)return{id:ce(e),invalidating:t,route:r,params:yt(i),url:e}}}}function Qt(e){return vt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(A.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function dt({url:e,type:t,intent:n,delta:a,event:r}){let i=!1;const o=Ne(_,n,e,t);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const s={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return X||ot.forEach(c=>c(s)),i?null:o}async function G({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Me,block:f=Me,event:h}){const w=N;N=c;const u=await fe(t,!1),g=e==="enter"?Ne(_,u,t,e):dt({url:t,type:e,delta:n?.delta,intent:u,event:h});if(!g){f(),N===c&&(N=w);return}const m=y,p=x;l(),X=!0,oe&&g.navigation.type!=="enter"&&C.navigating.set(Y.current=g.navigation);let d=u&&await ft(u);if(!d){if(ue(t,A,v.hash))return await J(t,i);d=await ht(t,{id:null},await Q(new xe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,N!==c)return g.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(s<20){await G({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),g.fulfil(void 0);return}d=await je({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await C.updated.check()&&(await rt(),await J(t,i));if(Gt(),Te(m),ct(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,D={[K]:y+=b,[W]:x+=b,[Xe]:o};(i?history.replaceState:history.pushState).call(history,D,"",t),i||Bt(y,x)}const S=u&&R?.id===u.id?R.fork:null;R=null,d.props.page.state=o;let E;if(oe){const b=(await Promise.all(Array.from(Kt,P=>P(g.navigation)))).filter(P=>typeof P=="function");if(b.length>0){let P=function(){b.forEach(de=>{F.delete(de)})};b.push(P),b.forEach(de=>{F.add(de)})}_=d.state,d.props.page&&(d.props.page.url=t);const D=S&&await S;D?E=D.commit():($e.$set(d.props),at(d.props.page),E=mt?.()),it=!0}else await ut(d,ye,!1);const{activeElement:$}=document;await E,await ee(),await ee();let L=n?n.scroll:r?le():null;if(ze){const b=t.hash&&document.getElementById(pt(t));if(L)scrollTo(L.x,L.y);else if(b){b.scrollIntoView();const{top:D,left:P}=b.getBoundingClientRect();L={x:pageXOffset+P,y:pageYOffset+D}}else scrollTo(0,0)}const gt=document.activeElement!==$&&document.activeElement!==document.body;!a&&!gt&&rn(t,L),ze=!0,d.props.page&&Object.assign(k,d.props.page),X=!1,e==="popstate"&&lt(x),g.fulfil(void 0),F.forEach(b=>b(g.navigation)),C.navigating.set(Y.current=null)}async function ht(e,t,n,a,r){return e.origin===Le&&e.pathname===location.pathname&&!st?await je({status:a,error:n,url:e,route:t}):await J(e,r)}function Zt(){let e,t,n;O.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(me(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function i(s,c){const l=et(s,O),f=l===t&&c>=n;if(!l||f)return;const{url:h,external:w,download:u}=we(l,A,v.hash);if(w||u)return;const g=te(l),m=h&&ce(_.url)===ce(h);if(!(g.reload||m))if(c<=g.preload_data){t=l,n=j.tap;const p=await fe(h,!1);if(!p)return;zt(p)}else c<=g.preload_code&&(t=l,n=c,me(h))}function o(){r.disconnect();for(const s of O.querySelectorAll("a")){const{url:c,external:l,download:f}=we(s,A,v.hash);if(l||f)continue;const h=te(s);h.reload||(h.preload_code===j.viewport&&r.observe(s),h.preload_code===j.eager&&me(c))}}F.add(o),o()}function Q(e,t){if(e instanceof Ee)return e.body;const n=Ue(e),a=qt(e);return v.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function en(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function tn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(We(),!X){const a=Ne(_,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};ot.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&We()}),navigator.connection?.saveData||Zt(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],O);if(!n)return;const{url:a,external:r,target:i,download:o}=we(n,A,v.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=te(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,f]=(v.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=l===pe(location);if(r||s.reload&&(!h||!f)){dt({url:a,type:"link",event:t})?X=!0:t.preventDefault();return}if(f!==void 0&&h){const[,w]=_.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(M=!0,Te(y),e(a),!s.replace_state)return;M=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await G({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ue(o,A,!1))return;const s=t.target,c=te(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,a);o.search=new URLSearchParams(l).toString(),G({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ke){if(t.state?.[K]){const n=t.state[K];if(N={},n===y)return;const a=q[n],r=t.state[Xe]??{},i=new URL(t.state[Pt]??location.href),o=t.state[W],s=_.url?pe(location)===pe(_.url):!1;if(o===x&&(it||s)){r!==k.state&&(k.state=r),e(i),q[y]=le(),a&&scrollTo(a.x,a.y),y=n;return}const l=n-y;await G({type:"popstate",url:i,popped:{state:r,scroll:a,delta:l},accept:()=>{y=n,x=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!M){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[K]:++y,[W]:x},"",location.href))});for(const t of document.querySelectorAll("link"))Vt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(Y.current=null)});function e(t){_.url=k.url=t,C.page.set(qe(k)),C.page.notify()}}async function nn(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:c}){st=!0;const l=new URL(location.href);let f;({params:r={},route:i={id:null}}=await fe(l,!1)||{}),f=Ie.find(({id:u})=>u===i.id);let h,w=!0;try{const u=a.map(async(m,p)=>{const d=s[p];return d?.uses&&(d.uses=an(d.uses)),Pe({loader:v.nodes[m],url:l,params:r,route:i,parent:async()=>{const S={};for(let E=0;E<p;E+=1)Object.assign(S,(await u[E]).data);return S},server_data_node:Ce(d)})}),g=await Promise.all(u);if(f){const m=f.layouts;for(let p=0;p<m.length;p++)m[p]||g.splice(p,0,void 0)}h=ie({url:l,params:r,branch:g,status:t,error:n,form:c,route:f??null})}catch(u){if(u instanceof Re){await J(new URL(u.location,location.href));return}h=await je({status:Ue(u),error:await Q(u,{url:l,params:r,route:i}),url:l,route:i}),e.textContent="",w=!1}h.props.page&&(h.props.page.state={}),await ut(h,e,w)}function an(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let ke=!1;function rn(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=pt(e);if(a&&document.getElementById(a)){const{x:i,y:o}=t??le();setTimeout(()=>{const s=history.state;ke=!0,location.replace(`#${a}`),v.hash&&location.replace(e.hash),history.replaceState(s,"",e.hash),scrollTo(i,o),ke=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o<r.rangeCount;o+=1)i.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===i.length){for(let o=0;o<r.rangeCount;o+=1){const s=i[o],c=r.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function Ne(e,t,n,a){let r,i;const o=new Promise((c,l)=>{r=c,i=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:o},fulfil:r,reject:i}}function qe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function on(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function pt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{hn as a,ln as l,k as p,C as s};
@@ -0,0 +1 @@
1
+ import{i as a}from"./A9QBkv6k.js";a();
@@ -1 +1 @@
1
- import{c as d,u as g,a as i,b,r as l,d as m,g as p,e as v,f as h}from"./Qpld-QDA.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let r=()=>v(s.s);if(n){let f=0,t={};const _=h(()=>{let c=!1;const a=s.s;for(const o in a)a[o]!==t[o]&&(t[o]=a[o],c=!0);return c&&f++,f});r=()=>p(_)}e.b.length&&g(()=>{u(s,r),l(e.b)}),i(()=>{const f=b(()=>e.m.map(m));return()=>{for(const t of f)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,r),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
1
+ import{c as d,u as g,a as i,b,r as l,d as m,g as p,e as v,f as h}from"./A9QBkv6k.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let r=()=>v(s.s);if(n){let f=0,t={};const _=h(()=>{let c=!1;const a=s.s;for(const o in a)a[o]!==t[o]&&(t[o]=a[o],c=!0);return c&&f++,f});r=()=>p(_)}e.b.length&&g(()=>{u(s,r),l(e.b)}),i(()=>{const f=b(()=>e.m.map(m));return()=>{for(const t of f)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,r),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
@@ -0,0 +1,2 @@
1
+ import{x as z,g as U,y as $,z as J,b as K,A as H,B as I,C as f,v as c,D as v,E as Q,F as p,G as S,H as L,I as w,J as O,K as m,L as V,M as Z,N as M,c as j,O as ee,P as te,Q as F,R as N,S as re,T as ne,U as W,V as se,W as ie,w as G,X as B,Y as ae,Z as oe,_ as le,$ as ue,a0 as fe,a1 as he,a2 as ce,a3 as C,a4 as de,a5 as _e,a6 as pe,a7 as ve,a8 as ge,a9 as k,aa as ye,ab as Ee,ac as x,ad as A,ae as me,af as Te,ag as be,ah as we,p as Ne,ai as Re,aj as Se,q as Ae}from"./A9QBkv6k.js";function Oe(t){let e=0,r=$(0),i;return()=>{z()&&(U(r),J(()=>(e===0&&(i=K(()=>t(()=>H(r)))),e+=1,()=>{I(()=>{e-=1,e===0&&(i?.(),i=void 0,H(r))})})))}}var De=oe|le|ue;function Le(t,e,r){new Fe(t,e,r)}class Fe{parent;#r=!1;#t;#v=c?f:null;#s;#h;#i;#n=null;#e=null;#a=null;#o=null;#l=null;#c=0;#u=0;#d=!1;#f=null;#E=Oe(()=>(this.#f=$(this.#c),()=>{this.#f=null}));constructor(e,r,i){this.#t=e,this.#s=r,this.#h=i,this.parent=v.b,this.#r=!!this.#s.pending,this.#i=Q(()=>{if(v.b=this,c){const n=this.#v;G(),n.nodeType===B&&n.data===ae?this.#T():this.#m()}else{var s=this.#g();try{this.#n=p(()=>i(s))}catch(n){this.error(n)}this.#u>0?this.#p():this.#r=!1}return()=>{this.#l?.remove()}},De),c&&(this.#t=f)}#m(){try{this.#n=p(()=>this.#h(this.#t))}catch(e){this.error(e)}this.#r=!1}#T(){const e=this.#s.pending;e&&(this.#e=p(()=>e(this.#t)),S.enqueue(()=>{var r=this.#g();this.#n=this.#_(()=>(S.ensure(),p(()=>this.#h(r)))),this.#u>0?this.#p():(L(this.#e,()=>{this.#e=null}),this.#r=!1)}))}#g(){var e=this.#t;return this.#r&&(this.#l=w(),this.#t.before(this.#l),e=this.#l),e}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#_(e){var r=v,i=M,s=j;O(this.#i),m(this.#i),V(this.#i.ctx);try{return e()}catch(n){return Z(n),null}finally{O(r),m(i),V(s)}}#p(){const e=this.#s.pending;this.#n!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#l),ee(this.#n,this.#o)),this.#e===null&&(this.#e=p(()=>e(this.#t)))}#y(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e);return}this.#u+=e,this.#u===0&&(this.#r=!1,this.#e&&L(this.#e,()=>{this.#e=null}),this.#o&&(this.#t.before(this.#o),this.#o=null))}update_pending_count(e){this.#y(e),this.#c+=e,this.#f&&te(this.#f,this.#c)}get_effect_pending(){return this.#E(),U(this.#f)}error(e){var r=this.#s.onerror;let i=this.#s.failed;if(this.#d||!r&&!i)throw e;this.#n&&(F(this.#n),this.#n=null),this.#e&&(F(this.#e),this.#e=null),this.#a&&(F(this.#a),this.#a=null),c&&(N(this.#v),re(),N(ne()));var s=!1,n=!1;const a=()=>{if(s){ie();return}s=!0,n&&se(),S.ensure(),this.#c=0,this.#a!==null&&L(this.#a,()=>{this.#a=null}),this.#r=this.has_pending_snippet(),this.#n=this.#_(()=>(this.#d=!1,p(()=>this.#h(this.#t)))),this.#u>0?this.#p():this.#r=!1};var h=M;try{m(null),n=!0,r?.(e,a),n=!1}catch(u){W(u,this.#i&&this.#i.parent)}finally{m(h)}i&&I(()=>{this.#a=this.#_(()=>{S.ensure(),this.#d=!0;try{return p(()=>{i(this.#t,()=>e,()=>a)})}catch(u){return W(u,this.#i.parent),null}finally{this.#d=!1}})})}}const Me=["touchstart","touchmove"];function Ce(t){return Me.includes(t)}const ke=new Set,Y=new Set;function xe(t,e,r,i={}){function s(n){if(i.capture||b.call(e,n),!n.cancelBubble)return he(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?I(()=>{e.addEventListener(t,s,i)}):e.addEventListener(t,s,i),s}function Ve(t,e,r,i,s){var n={capture:i,passive:s},a=xe(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&fe(()=>{e.removeEventListener(t,a,n)})}let q=null;function b(t){var e=this,r=e.ownerDocument,i=t.type,s=t.composedPath?.()||[],n=s[0]||t.target;q=t;var a=0,h=q===t&&t.__root;if(h){var u=s.indexOf(h);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var g=s.indexOf(e);if(g===-1)return;u<=g&&(a=u)}if(n=s[a]||t.target,n!==e){ce(t,"currentTarget",{configurable:!0,get(){return n||r}});var D=M,d=v;m(null),O(null);try{for(var o,l=[];n!==null;){var y=n.assignedSlot||n.parentNode||n.host||null;try{var T=n["__"+i];T!=null&&(!n.disabled||t.target===n)&&T.call(n,t)}catch(R){o?l.push(R):o=R}if(t.cancelBubble||y===e||y===null)break;n=y}if(o){for(let R of l)queueMicrotask(()=>{throw R});throw o}}finally{t.__root=e,delete t.currentTarget,m(D),O(d)}}}function Pe(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function _(t,e){var r=v;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function We(t,e){var r=(e&_e)!==0,i=(e&pe)!==0,s,n=!t.startsWith("<!>");return()=>{if(c)return _(f,null),f;s===void 0&&(s=Pe(n?t:"<!>"+t),r||(s=C(s)));var a=i||de?document.importNode(s,!0):s.cloneNode(!0);if(r){var h=C(a),u=a.lastChild;_(h,u)}else _(a,a);return a}}function Ye(t=""){if(!c){var e=w(t+"");return _(e,e),e}var r=f;return r.nodeType!==ge&&(r.before(r=w()),N(r)),_(r,r),r}function qe(){if(c)return _(f,null),f;var t=document.createDocumentFragment(),e=document.createComment(""),r=w();return t.append(e,r),_(e,r),t}function Ue(t,e){if(c){var r=v;((r.f&ve)===0||r.nodes.end===null)&&(r.nodes.end=f),G();return}t!==null&&t.before(e)}function $e(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function Ie(t,e){return X(t,e)}function je(t,e){k(),e.intro=e.intro??!1;const r=e.target,i=c,s=f;try{for(var n=C(r);n&&(n.nodeType!==B||n.data!==ye);)n=Ee(n);if(!n)throw x;A(!0),N(n);const a=X(t,{...e,anchor:n});return A(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(h=>h.startsWith("https://svelte.dev/e/")))throw a;return a!==x&&console.warn("Failed to hydrate: ",a),e.recover===!1&&me(),k(),Te(r),A(!1),Ie(t,e)}finally{A(i),N(s)}}const E=new Map;function X(t,{target:e,anchor:r,props:i={},events:s,context:n,intro:a=!0}){k();var h=new Set,u=d=>{for(var o=0;o<d.length;o++){var l=d[o];if(!h.has(l)){h.add(l);var y=Ce(l);e.addEventListener(l,b,{passive:y});var T=E.get(l);T===void 0?(document.addEventListener(l,b,{passive:y}),E.set(l,1)):E.set(l,T+1)}}};u(be(ke)),Y.add(u);var g=void 0,D=we(()=>{var d=r??e.appendChild(w());return Le(d,{pending:()=>{}},o=>{if(n){Ne({});var l=j;l.c=n}if(s&&(i.$$events=s),c&&_(o,null),g=t(o,i)||{},c&&(v.nodes.end=f,f===null||f.nodeType!==B||f.data!==Re))throw Se(),x;n&&Ae()}),()=>{for(var o of h){e.removeEventListener(o,b);var l=E.get(o);--l===0?(document.removeEventListener(o,b),E.delete(o)):E.set(o,l)}Y.delete(u),d!==r&&d.parentNode?.removeChild(d)}});return P.set(g,D),g}let P=new WeakMap;function Ge(t,e){const r=P.get(t);return r?(P.delete(t),r(e)):Promise.resolve()}const Be="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Be);export{Ue as a,qe as c,Ve as e,We as f,je as h,Ie as m,$e as s,Ye as t,Ge as u};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_app/immutable/nodes/0.BugFGwM5.js","_app/immutable/chunks/N_U0gBEm.js","_app/immutable/chunks/A9QBkv6k.js","_app/immutable/chunks/CQEp1LYZ.js","_app/immutable/chunks/BoHJkn8d.js","_app/immutable/chunks/DqHXpfdR.js","_app/immutable/assets/0.BlG_Vrmw.css","_app/immutable/nodes/1.D7Zk73vS.js","_app/immutable/chunks/BsJdkGKb.js","_app/immutable/nodes/2.l6IbTpPh.js","_app/immutable/assets/2.QlUup8TW.css"])))=>i.map(i=>d[i]);
2
+ import{ak as B,al as se,Q as T,H as ae,I as q,F,v as k,C as ne,O as ie,am as oe,w as V,E as H,Z,an as ce,Y as fe,T as ue,R as de,ad as U,ao as le,z as he,b as G,B as _e,ap as Q,aq as ve,ar as me,as as ge,g as v,f as be,at as ye,au as Ee,o as w,av as Pe,D as Se,aw as Re,ax as we,h as Oe,ay as Ae,az as ke,aA as Te,aB as W,aC as Ie,a2 as pe,n as xe,p as De,u as Le,a as Ce,aD as I,aE as Me,j as O,s as je,q as Ne,k as Be,m as qe,aF as p,t as Fe}from"../chunks/A9QBkv6k.js";import{h as Ue,m as Ye,u as ze,f as J,a as R,c as x,t as Ve,s as He}from"../chunks/N_U0gBEm.js";import{o as Ze}from"../chunks/BoHJkn8d.js";class K{anchor;#t=new Map;#e=new Map;#r=new Map;#s=new Set;#a=!0;constructor(e,s=!0){this.anchor=e,this.#a=s}#n=()=>{var e=B;if(this.#t.has(e)){var s=this.#t.get(e),o=this.#e.get(s);if(o)se(o),this.#s.delete(s);else{var n=this.#r.get(s);n&&(this.#e.set(s,n.effect),this.#r.delete(s),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),o=n.effect)}for(const[t,r]of this.#t){if(this.#t.delete(t),t===e)break;const i=this.#r.get(r);i&&(T(i.effect),this.#r.delete(r))}for(const[t,r]of this.#e){if(t===s||this.#s.has(t))continue;const i=()=>{if(Array.from(this.#t.values()).includes(t)){var f=document.createDocumentFragment();ie(r,f),f.append(q()),this.#r.set(t,{effect:r,fragment:f})}else T(r);this.#s.delete(t),this.#e.delete(t)};this.#a||!o?(this.#s.add(t),ae(r,i,!1)):i()}}};#i=e=>{this.#t.delete(e);const s=Array.from(this.#t.values());for(const[o,n]of this.#r)s.includes(o)||(T(n.effect),this.#r.delete(o))};ensure(e,s){var o=B,n=oe();if(s&&!this.#e.has(e)&&!this.#r.has(e))if(n){var t=document.createDocumentFragment(),r=q();t.append(r),this.#r.set(e,{effect:F(()=>s(r)),fragment:t})}else this.#e.set(e,F(()=>s(this.anchor)));if(this.#t.set(o,e),n){for(const[i,u]of this.#e)i===e?o.skipped_effects.delete(u):o.skipped_effects.add(u);for(const[i,u]of this.#r)i===e?o.skipped_effects.delete(u.effect):o.skipped_effects.add(u.effect);o.oncommit(this.#n),o.ondiscard(this.#i)}else k&&(this.anchor=ne),this.#n()}}function D(a,e,s=!1){k&&V();var o=new K(a),n=s?Z:0;function t(r,i){if(k){const f=ce(a)===fe;if(r===f){var u=ue();de(u),o.anchor=u,U(!1),o.ensure(r,i),U(!0);return}}o.ensure(r,i)}H(()=>{var r=!1;e((i,u=!0)=>{r=!0,t(u,i)}),r||t(!1,null)},n)}function L(a,e,s){k&&V();var o=new K(a);H(()=>{var n=e()??null;o.ensure(n,n&&(t=>s(t,n)))},Z)}function Y(a,e){return a===e||a?.[Q]===e}function C(a={},e,s,o){return le(()=>{var n,t;return he(()=>{n=t,t=[],G(()=>{a!==s(...t)&&(e(a,...t),n&&Y(s(...n),a)&&e(null,...n))})}),()=>{_e(()=>{t&&Y(s(...t),a)&&e(null,...t)})}}),a}let A=!1;function Ge(a){var e=A;try{return A=!1,[a(),A]}finally{A=e}}function M(a,e,s,o){var n=!Oe||(s&Ae)!==0,t=(s&we)!==0,r=(s&Te)!==0,i=o,u=!0,f=()=>(u&&(u=!1,i=r?G(o):o),i),l;if(t){var y=Q in a||W in a;l=ve(a,e)?.set??(y&&e in a?c=>a[e]=c:void 0)}var d,S=!1;t?[d,S]=Ge(()=>a[e]):d=a[e],d===void 0&&o!==void 0&&(d=f(),l&&(n&&me(),l(d)));var b;if(n?b=()=>{var c=a[e];return c===void 0?f():(u=!0,c)}:b=()=>{var c=a[e];return c!==void 0&&(i=void 0),c===void 0?i:c},n&&(s&ge)===0)return b;if(l){var h=a.$$legacy;return(function(c,g){return arguments.length>0?((!n||!g||h||S)&&l(g?b():c),c):b()})}var m=!1,_=((s&ke)!==0?be:ye)(()=>(m=!1,b()));t&&v(_);var P=Se;return(function(c,g){if(arguments.length>0){const E=g?v(_):n&&t?Ee(c):c;return w(_,E),m=!0,i!==void 0&&(i=E),c}return Pe&&m||(P.f&Re)!==0?_.v:v(_)})}function Qe(a){return class extends We{constructor(e){super({component:a,...e})}}}class We{#t;#e;constructor(e){var s=new Map,o=(t,r)=>{var i=xe(r,!1,!1);return s.set(t,i),i};const n=new Proxy({...e.props||{},$$events:{}},{get(t,r){return v(s.get(r)??o(r,Reflect.get(t,r)))},has(t,r){return r===W?!0:(v(s.get(r)??o(r,Reflect.get(t,r))),Reflect.has(t,r))},set(t,r,i){return w(s.get(r)??o(r,i),i),Reflect.set(t,r,i)}});this.#e=(e.hydrate?Ue:Ye)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Ie(),this.#t=n.$$events;for(const t of Object.keys(this.#e))t==="$set"||t==="$destroy"||t==="$on"||pe(this,t,{get(){return this.#e[t]},set(r){this.#e[t]=r},enumerable:!0});this.#e.$set=t=>{Object.assign(n,t)},this.#e.$destroy=()=>{ze(this.#e)}}$set(e){this.#e.$set(e)}$on(e,s){this.#t[e]=this.#t[e]||[];const o=(...n)=>s.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}}const Je="modulepreload",Ke=function(a){return"/"+a},z={},j=function(e,s,o){let n=Promise.resolve();if(s&&s.length>0){let u=function(f){return Promise.all(f.map(l=>Promise.resolve(l).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),i=r?.nonce||r?.getAttribute("nonce");n=u(s.map(f=>{if(f=Ke(f),f in z)return;z[f]=!0;const l=f.endsWith(".css"),y=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${y}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":Je,l||(d.as="script"),d.crossOrigin="",d.href=f,i&&d.setAttribute("nonce",i),document.head.appendChild(d),l)return new Promise((S,b)=>{d.addEventListener("load",S),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${f}`)))})}))}function t(r){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=r,window.dispatchEvent(i),!i.defaultPrevented)throw r}return n.then(r=>{for(const i of r||[])i.status==="rejected"&&t(i.reason);return e().catch(t)})},it={};var Xe=J('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),$e=J("<!> <!>",1);function et(a,e){De(e,!0);let s=M(e,"components",23,()=>[]),o=M(e,"data_0",3,null),n=M(e,"data_1",3,null);Le(()=>e.stores.page.set(e.page)),Ce(()=>{e.stores,e.page,e.constructors,s(),e.form,o(),n(),e.stores.page.notify()});let t=I(!1),r=I(!1),i=I(null);Ze(()=>{const h=e.stores.page.subscribe(()=>{v(t)&&(w(r,!0),Me().then(()=>{w(i,document.title||"untitled page",!0)}))});return w(t,!0),h});const u=p(()=>e.constructors[1]);var f=$e(),l=O(f);{var y=h=>{const m=p(()=>e.constructors[0]);var _=x(),P=O(_);L(P,()=>v(m),(c,g)=>{C(g(c,{get data(){return o()},get form(){return e.form},get params(){return e.page.params},children:(E,rt)=>{var N=x(),$=O(N);L($,()=>v(u),(ee,te)=>{C(te(ee,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),re=>s()[1]=re,()=>s()?.[1])}),R(E,N)},$$slots:{default:!0}}),E=>s()[0]=E,()=>s()?.[0])}),R(h,_)},d=h=>{const m=p(()=>e.constructors[0]);var _=x(),P=O(_);L(P,()=>v(m),(c,g)=>{C(g(c,{get data(){return o()},get form(){return e.form},get params(){return e.page.params}}),E=>s()[0]=E,()=>s()?.[0])}),R(h,_)};D(l,h=>{e.constructors[1]?h(y):h(d,!1)})}var S=je(l,2);{var b=h=>{var m=Xe(),_=Be(m);{var P=c=>{var g=Ve();Fe(()=>He(g,v(i))),R(c,g)};D(_,c=>{v(r)&&c(P)})}qe(m),R(h,m)};D(S,h=>{v(t)&&h(b)})}R(a,f),Ne()}const ot=Qe(et),ct=[()=>j(()=>import("../nodes/0.BugFGwM5.js"),__vite__mapDeps([0,1,2,3,4,5,6])),()=>j(()=>import("../nodes/1.D7Zk73vS.js"),__vite__mapDeps([7,1,2,3,5,8,4])),()=>j(()=>import("../nodes/2.l6IbTpPh.js"),__vite__mapDeps([9,1,2,3,10]))],ft=[],ut={"/":[2]},X={handleError:(({error:a})=>{console.error(a)}),reroute:(()=>{}),transport:{}},tt=Object.fromEntries(Object.entries(X.transport).map(([a,e])=>[a,e.decode])),dt=Object.fromEntries(Object.entries(X.transport).map(([a,e])=>[a,e.encode])),lt=!1,ht=(a,e)=>tt[a](e);export{ht as decode,tt as decoders,ut as dictionary,dt as encoders,lt as hash,X as hooks,it as matchers,ct as nodes,ot as root,ft as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/BsJdkGKb.js";export{o as load_css,r as start};
@@ -0,0 +1,5 @@
1
+ import{f as y,a as b,s as u}from"../chunks/N_U0gBEm.js";import"../chunks/CQEp1LYZ.js";import{o as w}from"../chunks/BoHJkn8d.js";import{v as x,w as k,p as q,j,t as D,q as $,o as M,n as O,s as c,k as a,m as t,g as P}from"../chunks/A9QBkv6k.js";import{i as S}from"../chunks/DqHXpfdR.js";function z(h,r,i,s,l){x&&k();var e=r.$$slots?.[i],n=!1;e===!0&&(e=r.children,n=!0),e===void 0||e(h,n?()=>s:s)}const E=!0,G=Object.freeze(Object.defineProperty({__proto__:null,prerender:E},Symbol.toStringTag,{value:"Module"})),I="vag_ui",T="0.1.5",v={name:I,version:T};var U=y('<header class="svelte-12qhfyh"><h1 class="svelte-12qhfyh">Vag webUI</h1> <span> </span></header> <main class="svelte-12qhfyh"><!></main> <footer class="svelte-12qhfyh"><article><ol><li><a href="https://charlyoleg2.github.io/vag">homepage</a></li> <li><a href="https://www.npmjs.com/package/vag_tools">npm-package</a></li> <li><a href="https://github.com/charlyoleg2/vag">sources</a></li></ol></article> <article><h6>Examples</h6> <ol><li><a href="https://github.com/charlyoleg2/parametrix_vag">parametrix_vag</a></li></ol></article> <article><pre> </pre></article></footer>',1);function H(h,r){q(r,!1);let i=O("unknown");w(async()=>{try{const o=await fetch("/api/currDir");if(o.ok)M(i,await o.text());else throw`err312: fetch response status ${o.status}`}catch(o){console.log("err621: error while fetching /api/currDir"),console.log(o)}}),S();var s=U(),l=j(s),e=c(a(l),2),n=a(e);t(e),t(l);var f=c(l,2),_=a(f);z(_,r,"default",{}),t(f);var p=c(f,2),m=c(a(p),4),g=a(m),d=a(g);t(g),t(m),t(p),D(()=>{u(n,`running in the directory : ${P(i)??""}`),u(d,`
2
+ npm package:
3
+ name: ${v.name}
4
+ version : ${v.version}
5
+ `)}),b(h,s),$()}export{H as component,G as universal};
@@ -0,0 +1 @@
1
+ import{f as u,a as h,s as a}from"../chunks/N_U0gBEm.js";import"../chunks/CQEp1LYZ.js";import{p as g,j as l,t as v,q as d,k as e,m as o,s as _}from"../chunks/A9QBkv6k.js";import{i as x}from"../chunks/DqHXpfdR.js";import{s as k,p}from"../chunks/BsJdkGKb.js";const $={get error(){return p.error},get status(){return p.status}};k.updated.check;const m=$;var b=u("<h1> </h1> <p> </p>",1);function z(i,f){g(f,!1),x();var r=b(),t=l(r),n=e(t,!0);o(t);var s=_(t,2),c=e(s,!0);o(s),v(()=>{a(n,m.status),a(c,m.error?.message)}),h(i,r),d()}export{z as component};
@@ -1 +1 @@
1
- import{f as _,e as p,a as g,s as h}from"../chunks/C1TC8fYG.js";import"../chunks/C5cdX0b8.js";import{s as t,i as d,t as x,j as a,k as s,g as T,m as j,n as q}from"../chunks/Qpld-QDA.js";var $=_('<h1>Trigger a sequence of tasks</h1> <p><button class="svelte-1uha8ag">task-1</button></p> <p><button class="svelte-1uha8ag">task-2</button></p> <p><button class="svelte-1uha8ag">task-3</button></p> <h6>last task</h6> <p> </p>',1);function A(i){let l=j("0");function e(f){q(l,`task-${f}`)}var u=$(),o=t(d(u),2),v=a(o);s(o);var r=t(o,2),k=a(r);s(r);var n=t(r,2),m=a(n);s(n);var c=t(n,4),b=a(c,!0);s(c),x(()=>h(b,T(l))),p("click",v,()=>e(1)),p("click",k,()=>e(2)),p("click",m,()=>e(3)),g(i,u)}export{A as component};
1
+ import{f as _,e as p,a as g,s as h}from"../chunks/N_U0gBEm.js";import"../chunks/CQEp1LYZ.js";import{s as t,j as d,t as x,k as a,m as s,g as T,n as j,o as q}from"../chunks/A9QBkv6k.js";var $=_('<h1>Trigger a sequence of tasks</h1> <p><button class="svelte-1uha8ag">task-1</button></p> <p><button class="svelte-1uha8ag">task-2</button></p> <p><button class="svelte-1uha8ag">task-3</button></p> <h6>last task</h6> <p> </p>',1);function A(i){let l=j("0");function e(f){q(l,`task-${f}`)}var u=$(),o=t(d(u),2),v=a(o);s(o);var r=t(o,2),k=a(r);s(r);var n=t(r,2),m=a(n);s(n);var c=t(n,4),b=a(c,!0);s(c),x(()=>h(b,T(l))),p("click",v,()=>e(1)),p("click",k,()=>e(2)),p("click",m,()=>e(3)),g(i,u)}export{A as component};
@@ -1 +1 @@
1
- {"version":"1761836934488"}
1
+ {"version":"1766919722497"}
@@ -7,35 +7,35 @@
7
7
 
8
8
  <link href="/_app/immutable/assets/0.BlG_Vrmw.css" rel="stylesheet">
9
9
  <link href="/_app/immutable/assets/2.QlUup8TW.css" rel="stylesheet">
10
- <link rel="modulepreload" href="/_app/immutable/entry/start.Bbl61Ziv.js">
11
- <link rel="modulepreload" href="/_app/immutable/chunks/D67FaRGq.js">
12
- <link rel="modulepreload" href="/_app/immutable/chunks/Qpld-QDA.js">
13
- <link rel="modulepreload" href="/_app/immutable/chunks/Dwloyak0.js">
14
- <link rel="modulepreload" href="/_app/immutable/entry/app.BxpyLHzP.js">
15
- <link rel="modulepreload" href="/_app/immutable/chunks/C1TC8fYG.js">
16
- <link rel="modulepreload" href="/_app/immutable/nodes/0.CLr2UxuL.js">
17
- <link rel="modulepreload" href="/_app/immutable/chunks/C5cdX0b8.js">
18
- <link rel="modulepreload" href="/_app/immutable/chunks/Bi-Qo_qY.js">
19
- <link rel="modulepreload" href="/_app/immutable/nodes/2.DphWlT0G.js">
10
+ <link rel="modulepreload" href="/_app/immutable/entry/start.CotDua1T.js">
11
+ <link rel="modulepreload" href="/_app/immutable/chunks/BsJdkGKb.js">
12
+ <link rel="modulepreload" href="/_app/immutable/chunks/A9QBkv6k.js">
13
+ <link rel="modulepreload" href="/_app/immutable/chunks/BoHJkn8d.js">
14
+ <link rel="modulepreload" href="/_app/immutable/entry/app.BqtwPqyM.js">
15
+ <link rel="modulepreload" href="/_app/immutable/chunks/N_U0gBEm.js">
16
+ <link rel="modulepreload" href="/_app/immutable/nodes/0.BugFGwM5.js">
17
+ <link rel="modulepreload" href="/_app/immutable/chunks/CQEp1LYZ.js">
18
+ <link rel="modulepreload" href="/_app/immutable/chunks/DqHXpfdR.js">
19
+ <link rel="modulepreload" href="/_app/immutable/nodes/2.l6IbTpPh.js">
20
20
  </head>
21
21
  <body data-sveltekit-preload-data="hover">
22
22
  <div style="display: contents"><!--[--><!--[--><!----><header class="svelte-12qhfyh"><h1 class="svelte-12qhfyh">Vag webUI</h1> <span>running in the directory : unknown</span></header> <main class="svelte-12qhfyh"><!--[--><!----><h1>Trigger a sequence of tasks</h1> <p><button class="svelte-1uha8ag">task-1</button></p> <p><button class="svelte-1uha8ag">task-2</button></p> <p><button class="svelte-1uha8ag">task-3</button></p> <h6>last task</h6> <p>0</p><!----><!--]--></main> <footer class="svelte-12qhfyh"><article><ol><li><a href="https://charlyoleg2.github.io/vag">homepage</a></li> <li><a href="https://www.npmjs.com/package/vag_tools">npm-package</a></li> <li><a href="https://github.com/charlyoleg2/vag">sources</a></li></ol></article> <article><h6>Examples</h6> <ol><li><a href="https://github.com/charlyoleg2/parametrix_vag">parametrix_vag</a></li></ol></article> <article><pre>
23
23
  npm package:
24
24
  name: vag_ui
25
- version : 0.1.2
25
+ version : 0.1.5
26
26
  </pre></article></footer><!----><!--]--> <!--[!--><!--]--><!--]-->
27
27
 
28
28
  <script>
29
29
  {
30
- __sveltekit_ain503 = {
30
+ __sveltekit_nv8673 = {
31
31
  base: ""
32
32
  };
33
33
 
34
34
  const element = document.currentScript.parentElement;
35
35
 
36
36
  Promise.all([
37
- import("/_app/immutable/entry/start.Bbl61Ziv.js"),
38
- import("/_app/immutable/entry/app.BxpyLHzP.js")
37
+ import("/_app/immutable/entry/start.CotDua1T.js"),
38
+ import("/_app/immutable/entry/app.BqtwPqyM.js")
39
39
  ]).then(([kit, app]) => {
40
40
  kit.start(app, element, {
41
41
  node_ids: [0, 2],
package/dist/vag_cli.js CHANGED
@@ -15,7 +15,7 @@ import { simpleGit } from "simple-git";
15
15
  // package.json
16
16
  var package_default = {
17
17
  name: "vag_tools",
18
- version: "0.1.2",
18
+ version: "0.1.5",
19
19
  description: "api and cli for managing sub-git-repositories",
20
20
  private: false,
21
21
  repository: {
@@ -99,27 +99,27 @@ var package_default = {
99
99
  clean_all: "run-s clean"
100
100
  },
101
101
  dependencies: {
102
- "@hono/node-server": "^1.19.5",
103
- "fs-extra": "^11.3.2",
104
- hono: "^4.10.4",
105
- "simple-git": "^3.29.0",
106
- "socket.io": "^4.8.1",
107
- "socket.io-client": "^4.8.1",
108
- yaml: "^2.8.1",
102
+ "@hono/node-server": "^1.19.7",
103
+ "fs-extra": "^11.3.3",
104
+ hono: "^4.11.3",
105
+ "simple-git": "^3.30.0",
106
+ "socket.io": "^4.8.3",
107
+ "socket.io-client": "^4.8.3",
108
+ yaml: "^2.8.2",
109
109
  yargs: "^18.0.0"
110
110
  },
111
111
  devDependencies: {
112
112
  "@types/fs-extra": "^11.0.4",
113
- "@types/node": "^24.9.2",
114
- "@types/yargs": "^17.0.34",
115
- eslint: "^9.38.0",
113
+ "@types/node": "^25.0.3",
114
+ "@types/yargs": "^17.0.35",
115
+ eslint: "^9.39.2",
116
116
  "npm-run-all2": "^8.0.4",
117
- prettier: "^3.6.2",
117
+ prettier: "^3.7.4",
118
118
  shx: "^0.4.0",
119
- tsup: "^8.5.0",
119
+ tsup: "^8.5.1",
120
120
  typescript: "^5.9.3",
121
- "typescript-eslint": "^8.46.2",
122
- vitest: "^4.0.5"
121
+ "typescript-eslint": "^8.50.1",
122
+ vitest: "^4.0.16"
123
123
  }
124
124
  };
125
125
 
package/dist/vag_core.js CHANGED
@@ -9,7 +9,7 @@ import { simpleGit } from "simple-git";
9
9
  // package.json
10
10
  var package_default = {
11
11
  name: "vag_tools",
12
- version: "0.1.2",
12
+ version: "0.1.5",
13
13
  description: "api and cli for managing sub-git-repositories",
14
14
  private: false,
15
15
  repository: {
@@ -93,27 +93,27 @@ var package_default = {
93
93
  clean_all: "run-s clean"
94
94
  },
95
95
  dependencies: {
96
- "@hono/node-server": "^1.19.5",
97
- "fs-extra": "^11.3.2",
98
- hono: "^4.10.4",
99
- "simple-git": "^3.29.0",
100
- "socket.io": "^4.8.1",
101
- "socket.io-client": "^4.8.1",
102
- yaml: "^2.8.1",
96
+ "@hono/node-server": "^1.19.7",
97
+ "fs-extra": "^11.3.3",
98
+ hono: "^4.11.3",
99
+ "simple-git": "^3.30.0",
100
+ "socket.io": "^4.8.3",
101
+ "socket.io-client": "^4.8.3",
102
+ yaml: "^2.8.2",
103
103
  yargs: "^18.0.0"
104
104
  },
105
105
  devDependencies: {
106
106
  "@types/fs-extra": "^11.0.4",
107
- "@types/node": "^24.9.2",
108
- "@types/yargs": "^17.0.34",
109
- eslint: "^9.38.0",
107
+ "@types/node": "^25.0.3",
108
+ "@types/yargs": "^17.0.35",
109
+ eslint: "^9.39.2",
110
110
  "npm-run-all2": "^8.0.4",
111
- prettier: "^3.6.2",
111
+ prettier: "^3.7.4",
112
112
  shx: "^0.4.0",
113
- tsup: "^8.5.0",
113
+ tsup: "^8.5.1",
114
114
  typescript: "^5.9.3",
115
- "typescript-eslint": "^8.46.2",
116
- vitest: "^4.0.5"
115
+ "typescript-eslint": "^8.50.1",
116
+ vitest: "^4.0.16"
117
117
  }
118
118
  };
119
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vag_tools",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "description": "api and cli for managing sub-git-repositories",
5
5
  "private": false,
6
6
  "repository": {
@@ -84,26 +84,26 @@
84
84
  "clean_all": "run-s clean"
85
85
  },
86
86
  "dependencies": {
87
- "@hono/node-server": "^1.19.5",
88
- "fs-extra": "^11.3.2",
89
- "hono": "^4.10.4",
90
- "simple-git": "^3.29.0",
91
- "socket.io": "^4.8.1",
92
- "socket.io-client": "^4.8.1",
93
- "yaml": "^2.8.1",
87
+ "@hono/node-server": "^1.19.7",
88
+ "fs-extra": "^11.3.3",
89
+ "hono": "^4.11.3",
90
+ "simple-git": "^3.30.0",
91
+ "socket.io": "^4.8.3",
92
+ "socket.io-client": "^4.8.3",
93
+ "yaml": "^2.8.2",
94
94
  "yargs": "^18.0.0"
95
95
  },
96
96
  "devDependencies": {
97
97
  "@types/fs-extra": "^11.0.4",
98
- "@types/node": "^24.9.2",
99
- "@types/yargs": "^17.0.34",
100
- "eslint": "^9.38.0",
98
+ "@types/node": "^25.0.3",
99
+ "@types/yargs": "^17.0.35",
100
+ "eslint": "^9.39.2",
101
101
  "npm-run-all2": "^8.0.4",
102
- "prettier": "^3.6.2",
102
+ "prettier": "^3.7.4",
103
103
  "shx": "^0.4.0",
104
- "tsup": "^8.5.0",
104
+ "tsup": "^8.5.1",
105
105
  "typescript": "^5.9.3",
106
- "typescript-eslint": "^8.46.2",
107
- "vitest": "^4.0.5"
106
+ "typescript-eslint": "^8.50.1",
107
+ "vitest": "^4.0.16"
108
108
  }
109
109
  }
@@ -1,2 +0,0 @@
1
- import{w as z,g as U,x as $,y as J,b as K,z as H,A as I,B as h,q as c,C as v,D as Q,E as p,F as S,G as L,H as w,I as O,J as E,K as V,L as Z,M as F,c as G,N as ee,O as te,P as M,Q as N,R as re,S as ne,T as W,U as se,V as ie,v as X,W as B,X as ae,Y as oe,Z as fe,_ as le,$ as he,a0 as ue,a1 as ce,a2 as k,a3 as de,a4 as _e,a5 as pe,a6 as ve,a7 as x,a8 as ge,a9 as ye,aa as C,ab as A,ac as me,ad as Ee,ae as Te,af as be,p as we,ag as Ne,ah as Re,o as Se}from"./Qpld-QDA.js";function Ae(t){let e=0,r=$(0),i;return()=>{z()&&(U(r),J(()=>(e===0&&(i=K(()=>t(()=>H(r)))),e+=1,()=>{I(()=>{e-=1,e===0&&(i?.(),i=void 0,H(r))})})))}}var Oe=oe|fe|le;function De(t,e,r){new Le(t,e,r)}class Le{parent;#r=!1;#t;#v=c?h:null;#s;#u;#i;#n=null;#e=null;#a=null;#o=null;#f=null;#c=0;#l=0;#d=!1;#h=null;#m=Ae(()=>(this.#h=$(this.#c),()=>{this.#h=null}));constructor(e,r,i){this.#t=e,this.#s=r,this.#u=i,this.parent=v.b,this.#r=!!this.#s.pending,this.#i=Q(()=>{if(v.b=this,c){const n=this.#v;X(),n.nodeType===B&&n.data===ae?this.#T():this.#E()}else{var s=this.#g();try{this.#n=p(()=>i(s))}catch(n){this.error(n)}this.#l>0?this.#p():this.#r=!1}return()=>{this.#f?.remove()}},Oe),c&&(this.#t=h)}#E(){try{this.#n=p(()=>this.#u(this.#t))}catch(e){this.error(e)}this.#r=!1}#T(){const e=this.#s.pending;e&&(this.#e=p(()=>e(this.#t)),S.enqueue(()=>{var r=this.#g();this.#n=this.#_(()=>(S.ensure(),p(()=>this.#u(r)))),this.#l>0?this.#p():(L(this.#e,()=>{this.#e=null}),this.#r=!1)}))}#g(){var e=this.#t;return this.#r&&(this.#f=w(),this.#t.before(this.#f),e=this.#f),e}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#_(e){var r=v,i=F,s=G;O(this.#i),E(this.#i),V(this.#i.ctx);try{return e()}catch(n){return Z(n),null}finally{O(r),E(i),V(s)}}#p(){const e=this.#s.pending;this.#n!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#f),ee(this.#n,this.#o)),this.#e===null&&(this.#e=p(()=>e(this.#t)))}#y(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e);return}this.#l+=e,this.#l===0&&(this.#r=!1,this.#e&&L(this.#e,()=>{this.#e=null}),this.#o&&(this.#t.before(this.#o),this.#o=null))}update_pending_count(e){this.#y(e),this.#c+=e,this.#h&&te(this.#h,this.#c)}get_effect_pending(){return this.#m(),U(this.#h)}error(e){var r=this.#s.onerror;let i=this.#s.failed;if(this.#d||!r&&!i)throw e;this.#n&&(M(this.#n),this.#n=null),this.#e&&(M(this.#e),this.#e=null),this.#a&&(M(this.#a),this.#a=null),c&&(N(this.#v),re(),N(ne()));var s=!1,n=!1;const a=()=>{if(s){ie();return}s=!0,n&&se(),S.ensure(),this.#c=0,this.#a!==null&&L(this.#a,()=>{this.#a=null}),this.#r=this.has_pending_snippet(),this.#n=this.#_(()=>(this.#d=!1,p(()=>this.#u(this.#t)))),this.#l>0?this.#p():this.#r=!1};var u=F;try{E(null),n=!0,r?.(e,a),n=!1}catch(l){W(l,this.#i&&this.#i.parent)}finally{E(u)}i&&I(()=>{this.#a=this.#_(()=>{S.ensure(),this.#d=!0;try{return p(()=>{i(this.#t,()=>e,()=>a)})}catch(l){return W(l,this.#i.parent),null}finally{this.#d=!1}})})}}const Me=["touchstart","touchmove"];function Fe(t){return Me.includes(t)}const ke=new Set,Y=new Set;function xe(t,e,r,i={}){function s(n){if(i.capture||b.call(e,n),!n.cancelBubble)return ue(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?I(()=>{e.addEventListener(t,s,i)}):e.addEventListener(t,s,i),s}function He(t,e,r,i,s){var n={capture:i,passive:s},a=xe(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&he(()=>{e.removeEventListener(t,a,n)})}let q=null;function b(t){var e=this,r=e.ownerDocument,i=t.type,s=t.composedPath?.()||[],n=s[0]||t.target;q=t;var a=0,u=q===t&&t.__root;if(u){var l=s.indexOf(u);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var g=s.indexOf(e);if(g===-1)return;l<=g&&(a=l)}if(n=s[a]||t.target,n!==e){ce(t,"currentTarget",{configurable:!0,get(){return n||r}});var D=F,d=v;E(null),O(null);try{for(var o,f=[];n!==null;){var y=n.assignedSlot||n.parentNode||n.host||null;try{var T=n["__"+i];T!=null&&(!n.disabled||t.target===n)&&T.call(n,t)}catch(R){o?f.push(R):o=R}if(t.cancelBubble||y===e||y===null)break;n=y}if(o){for(let R of f)queueMicrotask(()=>{throw R});throw o}}finally{t.__root=e,delete t.currentTarget,E(D),O(d)}}}function Ce(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function _(t,e){var r=v;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function Ve(t,e){var r=(e&_e)!==0,i=(e&pe)!==0,s,n=!t.startsWith("<!>");return()=>{if(c)return _(h,null),h;s===void 0&&(s=Ce(n?t:"<!>"+t),r||(s=k(s)));var a=i||de?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=k(a),l=a.lastChild;_(u,l)}else _(a,a);return a}}function We(t=""){if(!c){var e=w(t+"");return _(e,e),e}var r=h;return r.nodeType!==ve&&(r.before(r=w()),N(r)),_(r,r),r}function Ye(){if(c)return _(h,null),h;var t=document.createDocumentFragment(),e=document.createComment(""),r=w();return t.append(e,r),_(e,r),t}function qe(t,e){if(c){v.nodes_end=h,X();return}t!==null&&t.before(e)}function Ue(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function Pe(t,e){return j(t,e)}function $e(t,e){x(),e.intro=e.intro??!1;const r=e.target,i=c,s=h;try{for(var n=k(r);n&&(n.nodeType!==B||n.data!==ge);)n=ye(n);if(!n)throw C;A(!0),N(n);const a=j(t,{...e,anchor:n});return A(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(u=>u.startsWith("https://svelte.dev/e/")))throw a;return a!==C&&console.warn("Failed to hydrate: ",a),e.recover===!1&&me(),x(),Ee(r),A(!1),Pe(t,e)}finally{A(i),N(s)}}const m=new Map;function j(t,{target:e,anchor:r,props:i={},events:s,context:n,intro:a=!0}){x();var u=new Set,l=d=>{for(var o=0;o<d.length;o++){var f=d[o];if(!u.has(f)){u.add(f);var y=Fe(f);e.addEventListener(f,b,{passive:y});var T=m.get(f);T===void 0?(document.addEventListener(f,b,{passive:y}),m.set(f,1)):m.set(f,T+1)}}};l(Te(ke)),Y.add(l);var g=void 0,D=be(()=>{var d=r??e.appendChild(w());return De(d,{pending:()=>{}},o=>{if(n){we({});var f=G;f.c=n}if(s&&(i.$$events=s),c&&_(o,null),g=t(o,i)||{},c&&(v.nodes_end=h,h===null||h.nodeType!==B||h.data!==Ne))throw Re(),C;n&&Se()}),()=>{for(var o of u){e.removeEventListener(o,b);var f=m.get(o);--f===0?(document.removeEventListener(o,b),m.delete(o)):m.set(o,f)}Y.delete(l),d!==r&&d.parentNode?.removeChild(d)}});return P.set(g,D),g}let P=new WeakMap;function Ge(t,e){const r=P.get(t);return r?(P.delete(t),r(e)):Promise.resolve()}const Ie="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Ie);export{qe as a,Ye as c,He as e,Ve as f,$e as h,Pe as m,Ue as s,We as t,Ge as u};
@@ -1 +0,0 @@
1
- import{h as a}from"./Qpld-QDA.js";a();
@@ -1 +0,0 @@
1
- import{aE as he,aF as _t,aB as U,g as T,n as I,aC as ee,aG as qe,aH as mt}from"./Qpld-QDA.js";import{o as De}from"./Dwloyak0.js";const V=[];function ke(e,t=he){let n=null;const a=new Set;function r(s){if(_t(e,s)&&(e=s,n)){const c=!V.length;for(const l of a)l[1](),V.push(l,e);if(c){for(let l=0;l<V.length;l+=2)V[l][0](V[l+1]);V.length=0}}}function i(s){r(s(e))}function o(s,c=he){const l=[s,c];return a.add(l),a.size===1&&(n=t(r,i)||he),s(e),()=>{a.delete(l),a.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:o}}class Se{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ee{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function wt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function vt(e){return e.split("%25").map(decodeURI).join("%25")}function yt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function pe({href:e}){return e.split("#")[0]}function bt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function kt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const St=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&M.delete(xe(e)),St(e,t));const M=new Map;function Et(e,t){const n=xe(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&M.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=kt(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function Rt(e,t,n){if(M.size>0){const a=xe(e,n),r=M.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);M.delete(a)}}return window.fetch(t,n)}function xe(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${bt(...r)}"]`}return a}const xt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function At(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Ut(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ge(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ge(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const f=xt.exec(c),[,h,w,u,g]=f;return t.push({name:u,matcher:g,optional:!!h,rest:!!w,chained:w?l===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return ge(c)}).join("")}).join("")}/?$`),params:t}}function Lt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Ut(e){return e.slice(1).split("/").filter(Lt)}function Tt(e,t,n){const a={},r=e.slice(1),i=r.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let l=r[s-o];if(c.chained&&c.rest&&o&&(l=r.slice(s-o,s+1).filter(f=>f).join("/"),o=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const f=t[s+1],h=r[s+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(a).length===i.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return a}function ge(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function It({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,f]])=>{const{pattern:h,params:w}=At(s),u={id:s,exec:g=>{const m=h.exec(g);if(m)return Tt(m,w,a)},errors:[1,...f||[]].map(g=>e[g]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function We(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ve(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const A=globalThis.__sveltekit_ain503?.base??"",Ot=globalThis.__sveltekit_ain503?.assets??A??"",$t="1761836934488",Ye="sveltekit:snapshot",He="sveltekit:scroll",Je="sveltekit:states",Ct="sveltekit:pageurl",K="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Ae=location.origin;function Xe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function le(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Be={...j,"":j.hover};function Qe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ze(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Qe(e)}}function we(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";a.hash=`#${s}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!a||!!r||ue(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===Ae&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function te(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=B(s,"preload-code")),r===null&&(r=B(s,"preload-data")),t===null&&(t=B(s,"keepfocus")),n===null&&(n=B(s,"noscroll")),i===null&&(i=B(s,"reload")),o===null&&(o=B(s,"replacestate")),s=Qe(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Be[a??"off"],preload_data:Be[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function Ke(e){const t=ke(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:a,set:r,subscribe:i}}const et={v:()=>{}};function Pt(){const{set:e,subscribe:t}=ke(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${Ot}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==$t;return o&&(e(!0),et.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function ue(e,t,n){return e.origin!==Ae||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function ln(e){}const tt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...tt];const jt=new Set([...tt]);[...jt];function Nt(e){return e.filter(t=>t!=null)}function Le(e){return e instanceof Se||e instanceof Re?e.status:500}function qt(e){return e instanceof Re?e.text:"Internal Error"}let k,Y,_e;const Dt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());Dt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Y={current:null},_e={current:!1}):(k=new class{#e=U({});get data(){return T(this.#e)}set data(t){I(this.#e,t)}#t=U(null);get form(){return T(this.#t)}set form(t){I(this.#t,t)}#n=U(null);get error(){return T(this.#n)}set error(t){I(this.#n,t)}#a=U({});get params(){return T(this.#a)}set params(t){I(this.#a,t)}#r=U({id:null});get route(){return T(this.#r)}set route(t){I(this.#r,t)}#o=U({});get state(){return T(this.#o)}set state(t){I(this.#o,t)}#s=U(-1);get status(){return T(this.#s)}set status(t){I(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return T(this.#i)}set url(t){I(this.#i,t)}},Y=new class{#e=U(null);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},_e=new class{#e=U(!1);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},et.v=()=>_e.current=!0);function nt(e){Object.assign(k,e)}const Vt=new Set(["icon","shortcut icon","apple-touch-icon"]),q=We(He)??{},H=We(Ye)??{},P={url:Ke({}),page:Ke({}),navigating:ke(null),updated:Pt()};function Ue(e){q[e]=le()}function Bt(e,t){let n=e+1;for(;q[n];)delete q[n],n+=1;for(n=t+1;H[n];)delete H[n],n+=1}function J(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function at(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(A||"/");e&&await e.update()}}function Fe(){}let Te,ve,ne,O,ye,v;const ae=[],re=[];let R=null;function rt(){R?.fork?.then(e=>e?.discard()),R=null}const Z=new Map,ot=new Set,Kt=new Set,z=new Set;let _={branch:[],error:null,url:null},st=!1,oe=!1,Ge=!0,X=!1,G=!1,it=!1,Ie=!1,Oe,y,x,N;const se=new Set,Me=new Map;async function hn(e,t,n){globalThis.__sveltekit_ain503?.data&&globalThis.__sveltekit_ain503.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Te=It(e),O=document.documentElement,ye=t,ve=e.nodes[0],ne=e.nodes[1],ve(),ne(),y=history.state?.[K],x=history.state?.[W],y||(y=x=Date.now(),history.replaceState({...history.state,[K]:y,[W]:x},""));const a=q[y];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await nn(ye,n)):(await F({type:"enter",url:Xe(v.hash?on(new URL(location.href)):location.href),replace_state:!0}),r()),tn()}function Ft(){ae.length=0,Ie=!1}function ct(e){re.some(t=>t?.snapshot)&&(H[e]=re.map(t=>t?.snapshot?.capture()))}function lt(e){H[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function ze(){Ue(y),Ve(He,q),ct(x),Ve(Ye,H)}async function Gt(e,t,n,a){let r;t.invalidateAll&&rt(),await F({type:"goto",url:Xe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(Ie=!0,r=[...Me.keys()]),t.invalidate&&t.invalidate.forEach(en)}}),t.invalidateAll&&ee().then(ee).then(()=>{Me.forEach(({resource:i},o)=>{r?.includes(o)&&i.refresh?.()})})}async function Mt(e){if(e.id!==R?.id){const t={};if(se.add(t),R={id:e.id,token:t,promise:ft({...e,preload:t}).then(n=>(se.delete(t),n.type==="loaded"&&n.state.error&&rt(),n)),fork:null},qe){const n=R;n.fork=n.promise.then(a=>{if(n===R&&a.type==="loaded")try{return qe(()=>{Oe.$set(a.props),nt(a.props.page)})}catch{}return null})}}return R.promise}async function me(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function ut(e,t,n){_=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),Oe=new v.root({target:t,props:{...e.props,stores:P,components:re},hydrate:n,sync:!1}),await Promise.resolve(),lt(x),n){const r={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};z.forEach(i=>i(r))}oe=!0}function ie({url:e,params:t,branch:n,status:a,error:r,route:i,form:o}){let s="never";if(A&&(e.pathname===A||e.pathname===A+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=wt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:i},props:{constructors:Nt(n).map(u=>u.node.component),page:Ne(k)}};o!==void 0&&(c.props.form=o);let l={},f=!k,h=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const g=n[u],m=_.branch[u];g?.data!==m?.data&&(f=!0),g&&(l={...l,...g.data},f&&(c.props[`data_${h}`]=l),h+=1)}return(!_.url||e.href!==_.url.href||_.error!==r||o!==void 0&&o!==k.form||f)&&(c.props.page={error:r,params:t,route:{id:i?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:f?l:k.data}),c}async function $e({loader:e,parent:t,url:n,params:a,route:r,server_data_node:i}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function zt(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const i=oe?Rt(a,r.href,t):Et(a,t);return{resolved:r,promise:i}}function Wt(e,t,n,a,r,i){if(Ie)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(i[o]!==_.params[o])return!0;for(const o of r.dependencies)if(ae.some(s=>s(new URL(o))))return!0;return!1}function Ce(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),i=t.searchParams.getAll(a);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&n.delete(a)}return n}function Ht({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:Ne(k),constructors:[]}}}async function ft({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if(R?.id===e)return se.delete(R.token),R.promise;const{errors:o,layouts:s,leaf:c}=r,l=[...s,c];o.forEach(p=>p?.().catch(()=>{})),l.forEach(p=>p?.[1]().catch(()=>{}));const f=_.url?e!==ce(_.url):!1,h=_.route?r.id!==_.route.id:!1,w=Yt(_.url,n);let u=!1;const g=l.map(async(p,d)=>{if(!p)return;const S=_.branch[d];return p[1]===S?.loader&&!Wt(u,h,f,w,S.universal?.uses,a)?S:(u=!0,$e({loader:p[1],url:n,params:a,route:r,parent:async()=>{const $={};for(let L=0;L<d;L+=1)Object.assign($,(await g[L])?.data);return $},server_data_node:Ce(p[0]?{type:"skip"}:null,p[0]?S?.server:void 0)}))});for(const p of g)p.catch(()=>{});const m=[];for(let p=0;p<l.length;p+=1)if(l[p])try{m.push(await g[p])}catch(d){if(d instanceof Ee)return{type:"redirect",location:d.location};if(se.has(i))return Ht({error:await Q(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let S=Le(d),E;if(d instanceof Se)E=d.body;else{if(await P.updated.check())return await at(),await J(n);E=await Q(d,{params:a,url:n,route:{id:r.id}})}const $=await Jt(p,m,o);return $?ie({url:n,params:a,branch:m.slice(0,$.idx).concat($.node),status:S,error:E,route:r}):await ht(n,{id:r.id},E,S)}else m.push(void 0);return ie({url:n,params:a,branch:m,status:200,error:null,route:r,form:t?void 0:null})}async function Jt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Pe({status:e,error:t,url:n,route:a}){const r={};let i=null;try{const o=await $e({loader:ve,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Ce(i)}),s={node:await ne(),loader:ne,universal:null,server:null,data:null};return ie({url:n,params:r,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof Ee)return Gt(new URL(o.location,location.href),{},0);throw o}}async function Xt(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const a=(async()=>{let r=await v.hooks.reroute({url:new URL(e),fetch:async(i,o)=>zt(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);v.hash?i.hash=r:i.pathname=r,r=i}return r})();Z.set(t,a),n=await a}catch{Z.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,A,v.hash)){const n=await Xt(e);if(!n)return;const a=Qt(n);for(const r of Te){const i=r.exec(a);if(i)return{id:ce(e),invalidating:t,route:r,params:yt(i),url:e}}}}function Qt(e){return vt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(A.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function dt({url:e,type:t,intent:n,delta:a,event:r}){let i=!1;const o=je(_,n,e,t);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const s={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return X||ot.forEach(c=>c(s)),i?null:o}async function F({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Fe,block:f=Fe,event:h}){const w=N;N=c;const u=await fe(t,!1),g=e==="enter"?je(_,u,t,e):dt({url:t,type:e,delta:n?.delta,intent:u,event:h});if(!g){f(),N===c&&(N=w);return}const m=y,p=x;l(),X=!0,oe&&g.navigation.type!=="enter"&&P.navigating.set(Y.current=g.navigation);let d=u&&await ft(u);if(!d){if(ue(t,A,v.hash))return await J(t,i);d=await ht(t,{id:null},await Q(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,N!==c)return g.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(s<20){await F({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),g.fulfil(void 0);return}d=await Pe({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await P.updated.check()&&(await at(),await J(t,i));if(Ft(),Ue(m),ct(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,D={[K]:y+=b,[W]:x+=b,[Je]:o};(i?history.replaceState:history.pushState).call(history,D,"",t),i||Bt(y,x)}const S=R?.fork;R=null,d.props.page.state=o;let E;if(oe){const b=(await Promise.all(Array.from(Kt,C=>C(g.navigation)))).filter(C=>typeof C=="function");if(b.length>0){let C=function(){b.forEach(de=>{z.delete(de)})};b.push(C),b.forEach(de=>{z.add(de)})}_=d.state,d.props.page&&(d.props.page.url=t);const D=S&&await S;D?E=D.commit():(Oe.$set(d.props),nt(d.props.page),E=mt?.()),it=!0}else await ut(d,ye,!1);const{activeElement:$}=document;await E,await ee(),await ee();let L=n?n.scroll:r?le():null;if(Ge){const b=t.hash&&document.getElementById(pt(t));if(L)scrollTo(L.x,L.y);else if(b){b.scrollIntoView();const{top:D,left:C}=b.getBoundingClientRect();L={x:pageXOffset+C,y:pageYOffset+D}}else scrollTo(0,0)}const gt=document.activeElement!==$&&document.activeElement!==document.body;!a&&!gt&&rn(t,L),Ge=!0,d.props.page&&Object.assign(k,d.props.page),X=!1,e==="popstate"&&lt(x),g.fulfil(void 0),z.forEach(b=>b(g.navigation)),P.navigating.set(Y.current=null)}async function ht(e,t,n,a,r){return e.origin===Ae&&e.pathname===location.pathname&&!st?await Pe({status:a,error:n,url:e,route:t}):await J(e,r)}function Zt(){let e,t,n;O.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(me(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function i(s,c){const l=Ze(s,O),f=l===t&&c>=n;if(!l||f)return;const{url:h,external:w,download:u}=we(l,A,v.hash);if(w||u)return;const g=te(l),m=h&&ce(_.url)===ce(h);if(!(g.reload||m))if(c<=g.preload_data){t=l,n=j.tap;const p=await fe(h,!1);if(!p)return;Mt(p)}else c<=g.preload_code&&(t=l,n=c,me(h))}function o(){r.disconnect();for(const s of O.querySelectorAll("a")){const{url:c,external:l,download:f}=we(s,A,v.hash);if(l||f)continue;const h=te(s);h.reload||(h.preload_code===j.viewport&&r.observe(s),h.preload_code===j.eager&&me(c))}}z.add(o),o()}function Q(e,t){if(e instanceof Se)return e.body;const n=Le(e),a=qt(e);return v.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function en(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function tn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(ze(),!X){const a=je(_,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};ot.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ze()}),navigator.connection?.saveData||Zt(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ze(t.composedPath()[0],O);if(!n)return;const{url:a,external:r,target:i,download:o}=we(n,A,v.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=te(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,f]=(v.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=l===pe(location);if(r||s.reload&&(!h||!f)){dt({url:a,type:"link",event:t})?X=!0:t.preventDefault();return}if(f!==void 0&&h){const[,w]=_.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(G=!0,Ue(y),e(a),!s.replace_state)return;G=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await F({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ue(o,A,!1))return;const s=t.target,c=te(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,a);o.search=new URLSearchParams(l).toString(),F({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!be){if(t.state?.[K]){const n=t.state[K];if(N={},n===y)return;const a=q[n],r=t.state[Je]??{},i=new URL(t.state[Ct]??location.href),o=t.state[W],s=_.url?pe(location)===pe(_.url):!1;if(o===x&&(it||s)){r!==k.state&&(k.state=r),e(i),q[y]=le(),a&&scrollTo(a.x,a.y),y=n;return}const l=n-y;await F({type:"popstate",url:i,popped:{state:r,scroll:a,delta:l},accept:()=>{y=n,x=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!G){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[K]:++y,[W]:x},"",location.href))});for(const t of document.querySelectorAll("link"))Vt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&P.navigating.set(Y.current=null)});function e(t){_.url=k.url=t,P.page.set(Ne(k)),P.page.notify()}}async function nn(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:c}){st=!0;const l=new URL(location.href);let f;({params:r={},route:i={id:null}}=await fe(l,!1)||{}),f=Te.find(({id:u})=>u===i.id);let h,w=!0;try{const u=a.map(async(m,p)=>{const d=s[p];return d?.uses&&(d.uses=an(d.uses)),$e({loader:v.nodes[m],url:l,params:r,route:i,parent:async()=>{const S={};for(let E=0;E<p;E+=1)Object.assign(S,(await u[E]).data);return S},server_data_node:Ce(d)})}),g=await Promise.all(u);if(f){const m=f.layouts;for(let p=0;p<m.length;p++)m[p]||g.splice(p,0,void 0)}h=ie({url:l,params:r,branch:g,status:t,error:n,form:c,route:f??null})}catch(u){if(u instanceof Ee){await J(new URL(u.location,location.href));return}h=await Pe({status:Le(u),error:await Q(u,{url:l,params:r,route:i}),url:l,route:i}),e.textContent="",w=!1}h.props.page&&(h.props.page.state={}),await ut(h,e,w)}function an(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let be=!1;function rn(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=pt(e);if(a&&document.getElementById(a)){const{x:i,y:o}=t??le();setTimeout(()=>{const s=history.state;be=!0,location.replace(`#${a}`),v.hash&&location.replace(e.hash),history.replaceState(s,"",e.hash),scrollTo(i,o),be=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o<r.rangeCount;o+=1)i.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===i.length){for(let o=0;o<r.rangeCount;o+=1){const s=i[o],c=r.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function je(e,t,n,a){let r,i;const o=new Promise((c,l)=>{r=c,i=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:o},fulfil:r,reject:i}}function Ne(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function on(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function pt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{hn as a,ln as l,k as p,P as s};
@@ -1 +0,0 @@
1
- import{a as o,c as t,l as c,b as l}from"./Qpld-QDA.js";function u(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function r(e){t===null&&u(),c&&t.l!==null?a(t).m.push(e):o(()=>{const n=l(e);if(typeof n=="function")return n})}function a(e){var n=e.l;return n.u??={a:[],b:[],m:[]}}export{r as o};
@@ -1 +0,0 @@
1
- var Ct=Array.isArray,Ft=Array.prototype.indexOf,kn=Array.from,xn=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,jt=Object.getOwnPropertyDescriptors,Mt=Object.prototype,qt=Array.prototype,rt=Object.getPrototypeOf,Xe=Object.isExtensible;const Rn=()=>{};function An(e){return e()}function Lt(e){for(var t=0;t<e.length;t++)e[t]()}function st(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const g=2,Le=4,Re=8,j=16,M=32,ee=64,Ye=128,m=1024,k=2048,q=4096,N=8192,U=16384,Ue=32768,we=65536,Pe=1<<17,Yt=1<<18,he=1<<19,ft=1<<20,S=256,ye=512,ge=32768,Ne=1<<21,Be=1<<22,W=1<<23,oe=Symbol("$state"),Sn=Symbol("legacy props"),te=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},He=3,it=8;function Ut(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Bt(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ht(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Vt(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gt(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kt(){throw new Error("https://svelte.dev/e/experimental_async_fork")}function zt(){throw new Error("https://svelte.dev/e/fork_discarded")}function $t(){throw new Error("https://svelte.dev/e/fork_timing")}function Dn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Pn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Wt(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zt(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Xt(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Nn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const In=1,Cn=2,Fn=4,jn=8,Mn=16,qn=1,Ln=2,Jt="[",Qt="[!",en="]",Ve={},E=Symbol();function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Yn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let X=!1;function Un(e){X=e}let R;function re(e){if(e===null)throw Ge(),Ve;return R=e}function Bn(){return re(G(R))}function Hn(e){if(X){if(G(R)!==null)throw Ge(),Ve;R=e}}function Vn(e=1){if(X){for(var t=e,n=R;t--;)n=G(n);R=n}}function Gn(e=!0){for(var t=0,n=R;;){if(n.nodeType===it){var r=n.data;if(r===en){if(t===0)return n;t-=1}else(r===Jt||r===Qt)&&(t+=1)}var s=G(n);e&&n.remove(),n=s}}function Kn(e){if(!e||e.nodeType!==it)throw Ge(),Ve;return e.data}function at(e){return e===this.v}function tn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function lt(e){return!tn(e,this.v)}let Ae=!1;function zn(){Ae=!0}let T=null;function Ee(e){T=e}function $n(e,t=!1,n){T={p:T,i:!1,c:null,e:null,s:e,x:null,l:Ae&&!t?{s:null,u:null,$:[]}:null}}function Wn(e){var t=T,n=t.e;if(n!==null){t.e=null;for(var r of n)bt(r)}return t.i=!0,T=t.p,{}}function de(){return!Ae||T!==null&&T.l===null}let z=[];function ut(){var e=z;z=[],Lt(e)}function nn(e){if(z.length===0&&!ce){var t=z;queueMicrotask(()=>{t===z&&ut()})}z.push(e)}function rn(){for(;z.length>0;)ut()}function sn(e){var t=_;if(t===null)return c.f|=W,e;if((t.f&Ue)===0){if((t.f&Ye)===0)throw e;t.b.error(e)}else me(e,t)}function me(e,t){for(;t!==null;){if((t.f&Ye)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const $=new Set;let w=null,O=null,P=[],Se=null,Ie=!1,ce=!1;class H{committed=!1;current=new Map;previous=new Map;#r=new Set;#s=new Set;#t=0;#n=0;#a=null;#f=[];#i=[];skipped_effects=new Set;is_fork=!1;process(t){P=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#l(r,n);this.is_fork||this.#u(),this.#n>0||this.is_fork?(this.#e(n.effects),this.#e(n.render_effects),this.#e(n.block_effects)):(w=null,Je(n.render_effects),Je(n.effects),this.#a?.resolve()),O=null}#l(t,n){t.f^=m;for(var r=t.first;r!==null;){var s=r.f,i=(s&(M|ee))!==0,a=i&&(s&m)!==0,u=a||(s&N)!==0||this.skipped_effects.has(r);if((r.f&Ye)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!u&&r.fn!==null){i?r.f^=m:(s&Le)!==0?n.effects.push(r):pe(r)&&((r.f&j)!==0&&n.block_effects.push(r),ve(r));var f=r.first;if(f!==null){r=f;continue}}var l=r.parent;for(r=r.next;r===null&&l!==null;)l===n.effect&&(this.#e(n.effects),this.#e(n.render_effects),this.#e(n.block_effects),n=n.parent),r=l.next,l=l.parent}}#e(t){for(const n of t)((n.f&k)!==0?this.#f:this.#i).push(n),y(n,m)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),this.current.set(t,t.v),O?.set(t,t.v)}activate(){w=this}deactivate(){w=null,O=null}flush(){if(this.activate(),P.length>0){if(Fe(),w!==null&&w!==this)return}else this.#t===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#u(){if(this.#n===0){for(const t of this.#r)t();this.#r.clear()}this.#t===0&&this.#o()}#o(){if($.size>1){this.previous.clear();var t=O,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of $){if(s===this){n=!1;continue}const i=[];for(const[u,f]of this.current){if(s.current.has(u))if(n&&f!==s.current.get(u))s.current.set(u,f);else continue;i.push(u)}if(i.length===0)continue;const a=[...s.current.keys()].filter(u=>!this.current.has(u));if(a.length>0){const u=new Set,f=new Map;for(const l of i)ot(l,a,u,f);if(P.length>0){w=s,s.apply();for(const l of P)s.#l(l,r);P=[],s.deactivate()}}}w=null,O=t}this.committed=!0,$.delete(this)}increment(t){this.#t+=1,t&&(this.#n+=1)}decrement(t){this.#t-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#f)y(t,k),J(t);for(const t of this.#i)y(t,q),J(t);this.#f=[],this.#i=[],this.flush()}oncommit(t){this.#r.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#a??=st()).promise}static ensure(){if(w===null){const t=w=new H;$.add(w),ce||H.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){nn(t)}apply(){}}function Ce(e){var t=ce;ce=!0;try{var n;for(e&&(w!==null&&Fe(),n=e());;){if(rn(),P.length===0&&(w?.flush(),P.length===0))return Se=null,n;Fe()}}finally{ce=t}}function Fe(){var e=ne;Ie=!0;try{var t=0;for(et(!0);P.length>0;){var n=H.ensure();if(t++>1e3){var r,s;fn()}n.process(P),B.clear()}}finally{Ie=!1,et(e),Se=null}}function fn(){try{Gt()}catch(e){me(e,Se)}}let C=null;function Je(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(U|N))===0&&pe(r)&&(C=new Set,ve(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?xt(r):r.fn=null),C?.size>0)){B.clear();for(const s of C){if((s.f&(U|N))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)C.has(a)&&(C.delete(a),i.push(a)),a=a.parent;for(let u=i.length-1;u>=0;u--){const f=i[u];(f.f&(U|N))===0&&ve(f)}}C.clear()}}C=null}}function ot(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&g)!==0?ot(s,t,n,r):(i&(Be|j))!==0&&(i&k)===0&&_t(s,t,r)&&(y(s,k),J(s))}}function ct(e,t){if(e.reactions!==null)for(const n of e.reactions){const r=n.f;(r&g)!==0?ct(n,t):(r&Pe)!==0&&(y(n,k),t.add(n))}}function _t(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&g)!==0&&_t(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function J(e){for(var t=Se=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ie&&t===_&&(n&j)!==0)return;if((n&(ee|M))!==0){if((n&m)===0)return;t.f^=m}}P.push(t)}function Zn(e){Kt(),w!==null&&$t();var t=H.ensure();t.is_fork=!0;var n=!1,r=t.settled();Ce(e);for(var[s,i]of t.previous)s.v=i;return{commit:async()=>{if(n){await r;return}$.has(t)||zt(),n=!0,t.is_fork=!1;for(var[a,u]of t.current)a.v=u;Ce(()=>{var f=new Set;for(var l of t.current.keys())ct(l,f);_n(f),pt()}),t.revive(),await r},discard:()=>{!n&&$.has(t)&&($.delete(t),t.discard())}}}function an(e,t,n,r){const s=de()?Ke:on;if(n.length===0&&e.length===0){r(t.map(s));return}var i=w,a=_,u=ln();function f(){Promise.all(n.map(l=>un(l))).then(l=>{u();try{r([...t.map(s),...l])}catch(o){(a.f&U)===0&&me(o,a)}i?.deactivate(),be()}).catch(l=>{me(l,a)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{i?.deactivate(),be()}}):f()}function ln(){var e=_,t=c,n=T,r=w;return function(i=!0){se(e),V(t),Ee(n),i&&r?.activate()}}function be(){se(null),V(null),Ee(null)}function Ke(e){var t=g|k,n=c!==null&&(c.f&g)!==0?c:null;return _===null||n!==null&&(n.f&S)!==0?t|=S:_.f|=he,{ctx:T,deps:null,effects:null,equals:at,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??_,ac:null}}function un(e,t){let n=_;n===null&&Ut();var r=n.b,s=void 0,i=$e(E),a=!c,u=new Map;return pn(()=>{var f=st();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{l===w&&l.committed&&l.deactivate(),be()})}catch(p){f.reject(p),be()}var l=w;if(a){var o=!r.is_pending();r.update_pending_count(1),l.increment(o),u.get(l)?.reject(te),u.delete(l),u.set(l,f)}const v=(p,h=void 0)=>{if(l.activate(),h)h!==te&&(i.f|=W,je(i,h));else{(i.f&W)!==0&&(i.f^=W),je(i,p);for(const[d,ie]of u){if(u.delete(d),d===l)break;ie.reject(te)}}a&&(r.update_pending_count(-1),l.decrement(o))};f.promise.then(v,p=>v(null,p||"unknown"))}),dn(()=>{for(const f of u.values())f.reject(te)}),new Promise(f=>{function l(o){function v(){o===s?f(i):l(s)}o.then(v,v)}l(s)})}function Xn(e){const t=Ke(e);return St(t),t}function on(e){const t=Ke(e);return t.equals=lt,t}function vt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Q(t[n])}}function cn(e){for(var t=e.parent;t!==null;){if((t.f&g)===0)return t;t=t.parent}return null}function ze(e){var t,n=_;se(cn(e));try{e.f&=~ge,vt(e),t=Nt(e)}finally{se(n)}return t}function ht(e){var t=ze(e);if(e.equals(t)||(e.v=t,e.wv=Dt()),!fe)if(O!==null)O.set(e,e.v);else{var n=(Y||(e.f&S)!==0)&&e.deps!==null?q:m;y(e,n)}}let Te=new Set;const B=new Map;function _n(e){Te=e}let dt=!1;function $e(e,t){var n={f:0,v:e,reactions:null,equals:at,rv:0,wv:0};return n}function L(e,t){const n=$e(e);return St(n),n}function Jn(e,t=!1,n=!0){const r=$e(e);return t||(r.equals=lt),Ae&&n&&T!==null&&T.l!==null&&(T.l.s??=[]).push(r),r}function K(e,t,n=!1){c!==null&&(!D||(c.f&Pe)!==0)&&de()&&(c.f&(g|j|Be|Pe))!==0&&!F?.includes(e)&&Xt();let r=n?ae(t):t;return je(e,r)}function je(e,t){if(!e.equals(t)){var n=e.v;fe?B.set(e,t):B.set(e,n),e.v=t;var r=H.ensure();r.capture(e,n),(e.f&g)!==0&&((e.f&k)!==0&&ze(e),y(e,(e.f&S)===0?m:q)),e.wv=Dt(),wt(e,k),de()&&_!==null&&(_.f&m)!==0&&(_.f&(M|ee))===0&&(A===null?mn([e]):A.push(e)),!r.is_fork&&Te.size>0&&!dt&&pt()}return t}function pt(){dt=!1;const e=Array.from(Te);for(const t of e)(t.f&m)!==0&&y(t,q),pe(t)&&ve(t);Te.clear()}function De(e){K(e,e.v+1)}function wt(e,t){var n=e.reactions;if(n!==null)for(var r=de(),s=n.length,i=0;i<s;i++){var a=n[i],u=a.f;if(!(!r&&a===_)){var f=(u&k)===0;f&&y(a,t),(u&g)!==0?(u&ge)===0&&(a.f|=ge,wt(a,q)):f&&((u&j)!==0&&C!==null&&C.add(a),J(a))}}}function ae(e){if(typeof e!="object"||e===null||oe in e)return e;const t=rt(e);if(t!==Mt&&t!==qt)return e;var n=new Map,r=Ct(e),s=L(0),i=Z,a=u=>{if(Z===i)return u();var f=c,l=Z;V(null),nt(i);var o=u();return V(f),nt(l),o};return r&&n.set("length",L(e.length)),new Proxy(e,{defineProperty(u,f,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Wt();var o=n.get(f);return o===void 0?o=a(()=>{var v=L(l.value);return n.set(f,v),v}):K(o,l.value,!0),!0},deleteProperty(u,f){var l=n.get(f);if(l===void 0){if(f in u){const o=a(()=>L(E));n.set(f,o),De(s)}}else K(l,E),De(s);return!0},get(u,f,l){if(f===oe)return e;var o=n.get(f),v=f in u;if(o===void 0&&(!v||ue(u,f)?.writable)&&(o=a(()=>{var h=ae(v?u[f]:E),d=L(h);return d}),n.set(f,o)),o!==void 0){var p=le(o);return p===E?void 0:p}return Reflect.get(u,f,l)},getOwnPropertyDescriptor(u,f){var l=Reflect.getOwnPropertyDescriptor(u,f);if(l&&"value"in l){var o=n.get(f);o&&(l.value=le(o))}else if(l===void 0){var v=n.get(f),p=v?.v;if(v!==void 0&&p!==E)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return l},has(u,f){if(f===oe)return!0;var l=n.get(f),o=l!==void 0&&l.v!==E||Reflect.has(u,f);if(l!==void 0||_!==null&&(!o||ue(u,f)?.writable)){l===void 0&&(l=a(()=>{var p=o?ae(u[f]):E,h=L(p);return h}),n.set(f,l));var v=le(l);if(v===E)return!1}return o},set(u,f,l,o){var v=n.get(f),p=f in u;if(r&&f==="length")for(var h=l;h<v.v;h+=1){var d=n.get(h+"");d!==void 0?K(d,E):h in u&&(d=a(()=>L(E)),n.set(h+"",d))}if(v===void 0)(!p||ue(u,f)?.writable)&&(v=a(()=>L(void 0)),K(v,ae(l)),n.set(f,v));else{p=v.v!==E;var ie=a(()=>ae(l));K(v,ie)}var We=Reflect.getOwnPropertyDescriptor(u,f);if(We?.set&&We.set.call(o,l),!p){if(r&&typeof f=="string"){var Ze=n.get("length"),Oe=Number(f);Number.isInteger(Oe)&&Oe>=Ze.v&&K(Ze,Oe+1)}De(s)}return!0},ownKeys(u){le(s);var f=Reflect.ownKeys(u).filter(v=>{var p=n.get(v);return p===void 0||p.v!==E});for(var[l,o]of n)o.v!==E&&!(l in u)&&f.push(l);return f},setPrototypeOf(){Zt()}})}var Qe,vn,yt,gt;function Qn(){if(Qe===void 0){Qe=window,vn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;yt=ue(t,"firstChild").get,gt=ue(t,"nextSibling").get,Xe(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Xe(n)&&(n.__t=void 0)}}function ke(e=""){return document.createTextNode(e)}function Me(e){return yt.call(e)}function G(e){return gt.call(e)}function er(e,t){if(!X)return Me(e);var n=Me(R);if(n===null)n=R.appendChild(ke());else if(t&&n.nodeType!==He){var r=ke();return n?.before(r),re(r),r}return re(n),n}function tr(e,t=!1){if(!X){var n=Me(e);return n instanceof Comment&&n.data===""?G(n):n}if(t&&R?.nodeType!==He){var r=ke();return R?.before(r),re(r),r}return R}function nr(e,t=1,n=!1){let r=X?R:e;for(var s;t--;)s=r,r=G(r);if(!X)return r;if(n&&r?.nodeType!==He){var i=ke();return r===null?s?.after(i):r.before(i),re(i),i}return re(r),r}function rr(e){e.textContent=""}function sr(){return!1}function Et(e){var t=c,n=_;V(null),se(null);try{return e()}finally{V(t),se(n)}}function mt(e){_===null&&c===null&&Vt(),c!==null&&(c.f&S)!==0&&_===null&&Ht(),fe&&Bt()}function hn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function I(e,t,n,r=!0){var s=_;s!==null&&(s.f&N)!==0&&(e|=N);var i={ctx:T,deps:null,nodes_start:null,nodes_end:null,f:e|k,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{ve(i),i.f|=Ue}catch(f){throw Q(i),f}else t!==null&&J(i);if(r){var a=i;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&he)===0&&(a=a.first,(e&j)!==0&&(e&we)!==0&&a!==null&&(a.f|=we)),a!==null&&(a.parent=s,s!==null&&hn(a,s),c!==null&&(c.f&g)!==0&&(e&ee)===0)){var u=c;(u.effects??=[]).push(a)}}return i}function fr(){return c!==null&&!D}function dn(e){const t=I(Re,null,!1);return y(t,m),t.teardown=e,t}function ir(e){mt();var t=_.f,n=!c&&(t&M)!==0&&(t&Ue)===0;if(n){var r=T;(r.e??=[]).push(e)}else return bt(e)}function bt(e){return I(Le|ft,e,!1)}function ar(e){return mt(),I(Re|ft,e,!0)}function lr(e){H.ensure();const t=I(ee|he,e,!0);return(n={})=>new Promise(r=>{n.outro?gn(t,()=>{Q(t),r(void 0)}):(Q(t),r(void 0))})}function ur(e){return I(Le,e,!1)}function pn(e){return I(Be|he,e,!0)}function or(e,t=0){return I(Re|t,e,!0)}function cr(e,t=[],n=[],r=[]){an(r,t,n,s=>{I(Re,()=>e(...s.map(le)),!0)})}function _r(e,t=0){var n=I(j|t,e,!0);return n}function vr(e,t=!0){return I(M|he,e,!0,t)}function Tt(e){var t=e.teardown;if(t!==null){const n=fe,r=c;tt(!0),V(null);try{t.call(null)}finally{tt(n),V(r)}}}function kt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Et(()=>{s.abort(te)});var r=n.next;(n.f&ee)!==0?n.parent=null:Q(n,t),n=r}}function wn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&M)===0&&Q(t),t=n}}function Q(e,t=!0){var n=!1;(t||(e.f&Yt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(yn(e.nodes_start,e.nodes_end),n=!0),kt(e,t&&!n),xe(e,0),y(e,U);var r=e.transitions;if(r!==null)for(const i of r)i.stop();Tt(e);var s=e.parent;s!==null&&s.first!==null&&xt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function yn(e,t){for(;e!==null;){var n=e===t?null:G(e);e.remove(),e=n}}function xt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function gn(e,t,n=!0){var r=[];Rt(e,r,!0),En(r,()=>{n&&Q(e),t&&t()})}function En(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function Rt(e,t,n){if((e.f&N)===0){if(e.f^=N,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&we)!==0||(r.f&M)!==0&&(e.f&j)!==0;Rt(r,t,i?n:!1),r=s}}}function hr(e){At(e,!0)}function At(e,t){if((e.f&N)!==0){e.f^=N,(e.f&m)===0&&(y(e,k),J(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&we)!==0||(n.f&M)!==0;At(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function dr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:G(n);t.append(n),n=s}}let ne=!1;function et(e){ne=e}let fe=!1;function tt(e){fe=e}let c=null,D=!1;function V(e){c=e}let _=null;function se(e){_=e}let F=null;function St(e){c!==null&&(F===null?F=[e]:F.push(e))}let b=null,x=0,A=null;function mn(e){A=e}let Ot=1,_e=0,Z=_e;function nt(e){Z=e}let Y=!1;function Dt(){return++Ot}function pe(e){var t=e.f;if((t&k)!==0)return!0;if((t&q)!==0){var n=e.deps,r=(t&S)!==0;if(t&g&&(e.f&=~ge),n!==null){var s,i,a=(t&ye)!==0,u=r&&_!==null&&!Y,f=n.length;if((a||u)&&(_===null||(_.f&U)===0)){var l=e,o=l.parent;for(s=0;s<f;s++)i=n[s],(a||!i?.reactions?.includes(l))&&(i.reactions??=[]).push(l);a&&(l.f^=ye),u&&o!==null&&(o.f&S)===0&&(l.f^=S)}for(s=0;s<f;s++)if(i=n[s],pe(i)&&ht(i),i.wv>e.wv)return!0}(!r||_!==null&&!Y)&&y(e,m)}return!1}function Pt(e,t,n=!0){var r=e.reactions;if(r!==null&&!F?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&g)!==0?Pt(i,t,!1):t===i&&(n?y(i,k):(i.f&m)!==0&&y(i,q),J(i))}}function Nt(e){var t=b,n=x,r=A,s=c,i=Y,a=F,u=T,f=D,l=Z,o=e.f;b=null,x=0,A=null,Y=(o&S)!==0&&(D||!ne||c===null),c=(o&(M|ee))===0?e:null,F=null,Ee(e.ctx),D=!1,Z=++_e,e.ac!==null&&(Et(()=>{e.ac.abort(te)}),e.ac=null);try{e.f|=Ne;var v=e.fn,p=v(),h=e.deps;if(b!==null){var d;if(xe(e,x),h!==null&&x>0)for(h.length=x+b.length,d=0;d<b.length;d++)h[x+d]=b[d];else e.deps=h=b;if(!Y||(o&g)!==0&&e.reactions!==null)for(d=x;d<h.length;d++)(h[d].reactions??=[]).push(e)}else h!==null&&x<h.length&&(xe(e,x),h.length=x);if(de()&&A!==null&&!D&&h!==null&&(e.f&(g|q|k))===0)for(d=0;d<A.length;d++)Pt(A[d],e);return s!==null&&s!==e&&(_e++,A!==null&&(r===null?r=A:r.push(...A))),(e.f&W)!==0&&(e.f^=W),p}catch(ie){return sn(ie)}finally{e.f^=Ne,b=t,x=n,A=r,c=s,Y=i,F=a,Ee(u),D=f,Z=l}}function bn(e,t){let n=t.reactions;if(n!==null){var r=Ft.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&g)!==0&&(b===null||!b.includes(t))&&(y(t,q),(t.f&(S|ye))===0&&(t.f^=ye),vt(t),xe(t,0))}function xe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)bn(e,n[r])}function ve(e){var t=e.f;if((t&U)===0){y(e,m);var n=_,r=ne;_=e,ne=!0;try{(t&j)!==0?wn(e):kt(e),Tt(e);var s=Nt(e);e.teardown=typeof s=="function"?s:null,e.wv=Ot;var i}finally{ne=r,_=n}}}async function pr(){await Promise.resolve(),Ce()}function wr(){return H.ensure().settled()}function le(e){var t=e.f,n=(t&g)!==0;if(c!==null&&!D){var r=_!==null&&(_.f&U)!==0;if(!r&&!F?.includes(e)){var s=c.deps;if((c.f&Ne)!==0)e.rv<_e&&(e.rv=_e,b===null&&s!==null&&s[x]===e?x++:b===null?b=[e]:(!Y||!b.includes(e))&&b.push(e));else{(c.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[c]:i.includes(c)||i.push(c)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,u=a.parent;u!==null&&(u.f&S)===0&&(a.f^=S)}if(fe){if(B.has(e))return B.get(e);if(n){a=e;var f=a.v;return((a.f&m)===0&&a.reactions!==null||It(a))&&(f=ze(a)),B.set(a,f),f}}else if(n){if(a=e,O?.has(a))return O.get(a);pe(a)&&ht(a)}if(O?.has(e))return O.get(e);if((e.f&W)!==0)throw e.v;return e.v}function It(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(B.has(t)||(t.f&g)!==0&&It(t))return!0;return!1}function yr(e){var t=D;try{return D=!0,e()}finally{D=t}}const Tn=-7169;function y(e,t){e.f=e.f&Tn|t}function gr(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(oe in e)qe(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&oe in n&&qe(n)}}}function qe(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{qe(e[r],t)}catch{}const n=rt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=jt(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}export{dn as $,nn as A,R as B,_ as C,_r as D,vr as E,H as F,gn as G,ke as H,se as I,V as J,Ee as K,sn as L,c as M,dr as N,je as O,Q as P,re as Q,Vn as R,Gn as S,me as T,Nn as U,Yn as V,it as W,Qt as X,we as Y,he as Z,Ye as _,ir as a,Et as a0,xn as a1,Me as a2,vn as a3,qn as a4,Ln as a5,He as a6,Qn as a7,Jt as a8,G as a9,Ce as aA,L as aB,pr as aC,Xn as aD,Rn as aE,tn as aF,Zn as aG,wr as aH,Ve as aa,Un as ab,Dn as ac,rr as ad,kn as ae,lr as af,en as ag,Ge as ah,w as ai,hr as aj,sr as ak,Kn as al,ur as am,oe as an,ue as ao,Pn as ap,Fn as aq,on as ar,ae as as,fe as at,U as au,jn as av,Cn as aw,In as ax,Mn as ay,Sn as az,yr as b,T as c,An as d,gr as e,Ke as f,le as g,zn as h,tr as i,er as j,Hn as k,Ae as l,Jn as m,K as n,Wn as o,$n as p,X as q,Lt as r,nr as s,cr as t,ar as u,Bn as v,fr as w,$e as x,or as y,De as z};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_app/immutable/nodes/0.CLr2UxuL.js","_app/immutable/chunks/C1TC8fYG.js","_app/immutable/chunks/Qpld-QDA.js","_app/immutable/chunks/C5cdX0b8.js","_app/immutable/chunks/Dwloyak0.js","_app/immutable/chunks/Bi-Qo_qY.js","_app/immutable/assets/0.BlG_Vrmw.css","_app/immutable/nodes/1.-wdoHIBa.js","_app/immutable/chunks/D67FaRGq.js","_app/immutable/nodes/2.DphWlT0G.js","_app/immutable/assets/2.QlUup8TW.css"])))=>i.map(i=>d[i]);
2
- import{ai as B,aj as re,P as T,G as se,H as q,E as U,q as O,B as ae,N as ne,ak as ie,v as z,D as G,Y as H,al as ce,X as oe,S as fe,Q as ue,ab as Y,am as de,y as le,b as Q,A as he,an as W,ao as _e,ap as ve,aq as me,g as v,f as ge,ar as be,as as ye,n as A,at as Ee,C as Pe,au as Se,av as Re,l as Ae,aw as we,ax as ke,ay as Oe,az as X,aA as Te,a1 as xe,m as Ie,p as De,u as Le,a as pe,aB as x,aC as Ce,i as w,s as Me,o as Ne,j as je,k as Be,aD as I,t as qe}from"../chunks/Qpld-QDA.js";import{h as Ue,m as Ye,u as Fe,f as Z,a as R,c as D,t as Ve,s as ze}from"../chunks/C1TC8fYG.js";import{o as Ge}from"../chunks/Dwloyak0.js";class J{anchor;#t=new Map;#e=new Map;#r=new Map;#s=!0;constructor(e,s=!0){this.anchor=e,this.#s=s}#a=()=>{var e=B;if(this.#t.has(e)){var s=this.#t.get(e),c=this.#e.get(s);if(c)re(c);else{var n=this.#r.get(s);n&&(this.#e.set(s,n.effect),this.#r.delete(s),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),c=n.effect)}for(const[t,r]of this.#t){if(this.#t.delete(t),t===e)break;const i=this.#r.get(r);i&&(T(i.effect),this.#r.delete(r))}for(const[t,r]of this.#e){if(t===s)continue;const i=()=>{if(Array.from(this.#t.values()).includes(t)){var f=document.createDocumentFragment();ne(r,f),f.append(q()),this.#r.set(t,{effect:r,fragment:f})}else T(r);this.#e.delete(t)};this.#s||!c?se(r,i,!1):i()}}};#n=e=>{this.#t.delete(e);const s=Array.from(this.#t.values());for(const[c,n]of this.#r)s.includes(c)||(T(n.effect),this.#r.delete(c))};ensure(e,s){var c=B,n=ie();if(s&&!this.#e.has(e)&&!this.#r.has(e))if(n){var t=document.createDocumentFragment(),r=q();t.append(r),this.#r.set(e,{effect:U(()=>s(r)),fragment:t})}else this.#e.set(e,U(()=>s(this.anchor)));if(this.#t.set(c,e),n){for(const[i,u]of this.#e)i===e?c.skipped_effects.delete(u):c.skipped_effects.add(u);for(const[i,u]of this.#r)i===e?c.skipped_effects.delete(u.effect):c.skipped_effects.add(u.effect);c.oncommit(this.#a),c.ondiscard(this.#n)}else O&&(this.anchor=ae),this.#a()}}function L(a,e,s=!1){O&&z();var c=new J(a),n=s?H:0;function t(r,i){if(O){const f=ce(a)===oe;if(r===f){var u=fe();ue(u),c.anchor=u,Y(!1),c.ensure(r,i),Y(!0);return}}c.ensure(r,i)}G(()=>{var r=!1;e((i,u=!0)=>{r=!0,t(u,i)}),r||t(!1,null)},n)}function p(a,e,s){O&&z();var c=new J(a);G(()=>{var n=e()??null;c.ensure(n,n&&(t=>s(t,n)))},H)}function F(a,e){return a===e||a?.[W]===e}function C(a={},e,s,c){return de(()=>{var n,t;return le(()=>{n=t,t=[],Q(()=>{a!==s(...t)&&(e(a,...t),n&&F(s(...n),a)&&e(null,...n))})}),()=>{he(()=>{t&&F(s(...t),a)&&e(null,...t)})}}),a}let k=!1;function He(a){var e=k;try{return k=!1,[a(),k]}finally{k=e}}function M(a,e,s,c){var n=!Ae||(s&we)!==0,t=(s&Re)!==0,r=(s&Oe)!==0,i=c,u=!0,f=()=>(u&&(u=!1,i=r?Q(c):c),i),l;if(t){var y=W in a||X in a;l=_e(a,e)?.set??(y&&e in a?o=>a[e]=o:void 0)}var d,S=!1;t?[d,S]=He(()=>a[e]):d=a[e],d===void 0&&c!==void 0&&(d=f(),l&&(n&&ve(),l(d)));var b;if(n?b=()=>{var o=a[e];return o===void 0?f():(u=!0,o)}:b=()=>{var o=a[e];return o!==void 0&&(i=void 0),o===void 0?i:o},n&&(s&me)===0)return b;if(l){var h=a.$$legacy;return(function(o,g){return arguments.length>0?((!n||!g||h||S)&&l(g?b():o),o):b()})}var m=!1,_=((s&ke)!==0?ge:be)(()=>(m=!1,b()));t&&v(_);var P=Pe;return(function(o,g){if(arguments.length>0){const E=g?v(_):n&&t?ye(o):o;return A(_,E),m=!0,i!==void 0&&(i=E),o}return Ee&&m||(P.f&Se)!==0?_.v:v(_)})}function Qe(a){return class extends We{constructor(e){super({component:a,...e})}}}class We{#t;#e;constructor(e){var s=new Map,c=(t,r)=>{var i=Ie(r,!1,!1);return s.set(t,i),i};const n=new Proxy({...e.props||{},$$events:{}},{get(t,r){return v(s.get(r)??c(r,Reflect.get(t,r)))},has(t,r){return r===X?!0:(v(s.get(r)??c(r,Reflect.get(t,r))),Reflect.has(t,r))},set(t,r,i){return A(s.get(r)??c(r,i),i),Reflect.set(t,r,i)}});this.#e=(e.hydrate?Ue:Ye)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Te(),this.#t=n.$$events;for(const t of Object.keys(this.#e))t==="$set"||t==="$destroy"||t==="$on"||xe(this,t,{get(){return this.#e[t]},set(r){this.#e[t]=r},enumerable:!0});this.#e.$set=t=>{Object.assign(n,t)},this.#e.$destroy=()=>{Fe(this.#e)}}$set(e){this.#e.$set(e)}$on(e,s){this.#t[e]=this.#t[e]||[];const c=(...n)=>s.call(this,...n);return this.#t[e].push(c),()=>{this.#t[e]=this.#t[e].filter(n=>n!==c)}}$destroy(){this.#e.$destroy()}}const Xe="modulepreload",Ze=function(a){return"/"+a},V={},N=function(e,s,c){let n=Promise.resolve();if(s&&s.length>0){let u=function(f){return Promise.all(f.map(l=>Promise.resolve(l).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),i=r?.nonce||r?.getAttribute("nonce");n=u(s.map(f=>{if(f=Ze(f),f in V)return;V[f]=!0;const l=f.endsWith(".css"),y=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${y}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":Xe,l||(d.as="script"),d.crossOrigin="",d.href=f,i&&d.setAttribute("nonce",i),document.head.appendChild(d),l)return new Promise((S,b)=>{d.addEventListener("load",S),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${f}`)))})}))}function t(r){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=r,window.dispatchEvent(i),!i.defaultPrevented)throw r}return n.then(r=>{for(const i of r||[])i.status==="rejected"&&t(i.reason);return e().catch(t)})},it={};var Je=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Ke=Z("<!> <!>",1);function $e(a,e){De(e,!0);let s=M(e,"components",23,()=>[]),c=M(e,"data_0",3,null),n=M(e,"data_1",3,null);Le(()=>e.stores.page.set(e.page)),pe(()=>{e.stores,e.page,e.constructors,s(),e.form,c(),n(),e.stores.page.notify()});let t=x(!1),r=x(!1),i=x(null);Ge(()=>{const h=e.stores.page.subscribe(()=>{v(t)&&(A(r,!0),Ce().then(()=>{A(i,document.title||"untitled page",!0)}))});return A(t,!0),h});const u=I(()=>e.constructors[1]);var f=Ke(),l=w(f);{var y=h=>{const m=I(()=>e.constructors[0]);var _=D(),P=w(_);p(P,()=>v(m),(o,g)=>{C(g(o,{get data(){return c()},get form(){return e.form},get params(){return e.page.params},children:(E,rt)=>{var j=D(),K=w(j);p(K,()=>v(u),($,ee)=>{C(ee($,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),te=>s()[1]=te,()=>s()?.[1])}),R(E,j)},$$slots:{default:!0}}),E=>s()[0]=E,()=>s()?.[0])}),R(h,_)},d=h=>{const m=I(()=>e.constructors[0]);var _=D(),P=w(_);p(P,()=>v(m),(o,g)=>{C(g(o,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),E=>s()[0]=E,()=>s()?.[0])}),R(h,_)};L(l,h=>{e.constructors[1]?h(y):h(d,!1)})}var S=Me(l,2);{var b=h=>{var m=Je(),_=je(m);{var P=o=>{var g=Ve();qe(()=>ze(g,v(i))),R(o,g)};L(_,o=>{v(r)&&o(P)})}Be(m),R(h,m)};L(S,h=>{v(t)&&h(b)})}R(a,f),Ne()}const ct=Qe($e),ot=[()=>N(()=>import("../nodes/0.CLr2UxuL.js"),__vite__mapDeps([0,1,2,3,4,5,6])),()=>N(()=>import("../nodes/1.-wdoHIBa.js"),__vite__mapDeps([7,1,2,3,5,8,4])),()=>N(()=>import("../nodes/2.DphWlT0G.js"),__vite__mapDeps([9,1,2,3,10]))],ft=[],ut={"/":[2]},et={handleError:(({error:a})=>{console.error(a)}),reroute:(()=>{}),transport:{}},tt=Object.fromEntries(Object.entries(et.transport).map(([a,e])=>[a,e.decode])),dt=!1,lt=(a,e)=>tt[a](e);export{lt as decode,tt as decoders,ut as dictionary,dt as hash,et as hooks,it as matchers,ot as nodes,ct as root,ft as server_loads};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/D67FaRGq.js";export{o as load_css,r as start};
@@ -1,5 +0,0 @@
1
- import{f as y,a as b,s as u}from"../chunks/C1TC8fYG.js";import"../chunks/C5cdX0b8.js";import{o as w}from"../chunks/Dwloyak0.js";import{q as x,v as k,p as q,i as j,t as D,o as $,n as M,m as O,s as c,j as a,k as t,g as P}from"../chunks/Qpld-QDA.js";import{i as S}from"../chunks/Bi-Qo_qY.js";function z(h,r,i,s,l){x&&k();var e=r.$$slots?.[i],n=!1;e===!0&&(e=r.children,n=!0),e===void 0||e(h,n?()=>s:s)}const E=!0,G=Object.freeze(Object.defineProperty({__proto__:null,prerender:E},Symbol.toStringTag,{value:"Module"})),I="vag_ui",T="0.1.2",v={name:I,version:T};var U=y('<header class="svelte-12qhfyh"><h1 class="svelte-12qhfyh">Vag webUI</h1> <span> </span></header> <main class="svelte-12qhfyh"><!></main> <footer class="svelte-12qhfyh"><article><ol><li><a href="https://charlyoleg2.github.io/vag">homepage</a></li> <li><a href="https://www.npmjs.com/package/vag_tools">npm-package</a></li> <li><a href="https://github.com/charlyoleg2/vag">sources</a></li></ol></article> <article><h6>Examples</h6> <ol><li><a href="https://github.com/charlyoleg2/parametrix_vag">parametrix_vag</a></li></ol></article> <article><pre> </pre></article></footer>',1);function H(h,r){q(r,!1);let i=O("unknown");w(async()=>{try{const o=await fetch("/api/currDir");if(o.ok)M(i,await o.text());else throw`err312: fetch response status ${o.status}`}catch(o){console.log("err621: error while fetching /api/currDir"),console.log(o)}}),S();var s=U(),l=j(s),e=c(a(l),2),n=a(e);t(e),t(l);var f=c(l,2),_=a(f);z(_,r,"default",{}),t(f);var p=c(f,2),m=c(a(p),4),g=a(m),d=a(g);t(g),t(m),t(p),D(()=>{u(n,`running in the directory : ${P(i)??""}`),u(d,`
2
- npm package:
3
- name: ${v.name}
4
- version : ${v.version}
5
- `)}),b(h,s),$()}export{H as component,G as universal};
@@ -1 +0,0 @@
1
- import{f as u,a as h,s as a}from"../chunks/C1TC8fYG.js";import"../chunks/C5cdX0b8.js";import{p as g,i as l,t as v,o as d,j as e,k as o,s as _}from"../chunks/Qpld-QDA.js";import{i as x}from"../chunks/Bi-Qo_qY.js";import{s as k,p}from"../chunks/D67FaRGq.js";const $={get error(){return p.error},get status(){return p.status}};k.updated.check;const i=$;var b=u("<h1> </h1> <p> </p>",1);function z(m,f){g(f,!1),x();var r=b(),t=l(r),n=e(t,!0);o(t);var s=_(t,2),c=e(s,!0);o(s),v(()=>{a(n,i.status),a(c,i.error?.message)}),h(m,r),d()}export{z as component};