@aopslabs/aops-server 0.2.0
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.
- package/LICENSE +19 -0
- package/NOTICE +7 -0
- package/README.md +28 -0
- package/THIRD_PARTY_NOTICES +13409 -0
- package/THIRD_PARTY_NOTICES.inventory.json +2768 -0
- package/build/client/_app/immutable/chunks/2_TffmqH.js +1 -0
- package/build/client/_app/immutable/chunks/3DOfIKW0.js +1 -0
- package/build/client/_app/immutable/chunks/B2EkC-sy.js +1 -0
- package/build/client/_app/immutable/chunks/BlANKL2r.js +1 -0
- package/build/client/_app/immutable/chunks/CMkIcmi1.js +2 -0
- package/build/client/_app/immutable/chunks/rqnVXeyB.js +1 -0
- package/build/client/_app/immutable/chunks/wbPk3Yxo.js +81 -0
- package/build/client/_app/immutable/entry/app.a0iGCm6X.js +2 -0
- package/build/client/_app/immutable/entry/start.Df7u6fQ1.js +1 -0
- package/build/client/_app/immutable/nodes/0.BYBfjxZ5.js +1 -0
- package/build/client/_app/immutable/nodes/1.BtbjYUHR.js +1 -0
- package/build/client/_app/version.json +1 -0
- package/build/env.js +69 -0
- package/build/handler.js +15 -0
- package/build/index.js +138 -0
- package/build/server/chunks/0-RfB6m2nq.js +6 -0
- package/build/server/chunks/1-UJuUicIe.js +8 -0
- package/build/server/chunks/_server.ts-6bdzoHJH.js +83 -0
- package/build/server/chunks/_server.ts-AwMeEYiZ.js +9 -0
- package/build/server/chunks/_server.ts-B9gjXi95.js +260 -0
- package/build/server/chunks/_server.ts-BX4X0tW0.js +16 -0
- package/build/server/chunks/_server.ts-BkxSxdd0.js +172 -0
- package/build/server/chunks/_server.ts-Bly8fCZa.js +90 -0
- package/build/server/chunks/_server.ts-Bz-Erv-1.js +43 -0
- package/build/server/chunks/_server.ts-CRKd0KAC.js +43 -0
- package/build/server/chunks/_server.ts-CjzSQgpk.js +95 -0
- package/build/server/chunks/_server.ts-Cv-yaXZI.js +6 -0
- package/build/server/chunks/_server.ts-DQWRrk5C.js +14 -0
- package/build/server/chunks/_server.ts-DQzYSH_C.js +125 -0
- package/build/server/chunks/_server.ts-DaIr3NkR.js +10 -0
- package/build/server/chunks/_server.ts-DbdAfdYo.js +8 -0
- package/build/server/chunks/_server.ts-De9ZrSV0.js +84 -0
- package/build/server/chunks/_server.ts-DsTeOL2P.js +17 -0
- package/build/server/chunks/_server.ts-N61POKjl.js +84 -0
- package/build/server/chunks/_server.ts-Ua5Ieisy.js +37 -0
- package/build/server/chunks/_server.ts-XmKDT59M.js +37 -0
- package/build/server/chunks/_server.ts-o9pJceJP.js +54 -0
- package/build/server/chunks/_server.ts-u2UWBqNN.js +276 -0
- package/build/server/chunks/admission-snapshot-C2wGfTWE.js +1034 -0
- package/build/server/chunks/agent-gateway-runtime-C7Kvvy0H.js +2614 -0
- package/build/server/chunks/aops-runtime-config-CHpDUCdE.js +185 -0
- package/build/server/chunks/auth-provider-C07OUlnz.js +18 -0
- package/build/server/chunks/canonical-text-order-DbXJJnFD.js +5 -0
- package/build/server/chunks/commercial-admission-loader-V_vXHdVa.js +2077 -0
- package/build/server/chunks/discovery-BvDEgiqC.js +897 -0
- package/build/server/chunks/error.svelte-B9R6O_Hn.js +44 -0
- package/build/server/chunks/handler-DurXhqww.js +1472 -0
- package/build/server/chunks/hooks.server-DYGrWbgh.js +62 -0
- package/build/server/chunks/index.js-BQnOaW3H.js +11573 -0
- package/build/server/chunks/manifest.js-CCJDdahY.js +180 -0
- package/build/server/chunks/plugin-error-normalize-DNeRsopQ.js +309 -0
- package/build/server/chunks/project-alias-BdnRxWft.js +28 -0
- package/build/server/chunks/registry-DO8ob5o1.js +660 -0
- package/build/server/chunks/request-base-url-zKJpVUv5.js +35 -0
- package/build/server/chunks/request-context-9wzBoKrz.js +421 -0
- package/build/server/chunks/xf-result-BRDjvftr.js +16 -0
- package/build/shims.js +32 -0
- package/cockpit/.vite/manifest.json +198 -0
- package/cockpit/assets/dm-sans-latin-400-normal-BwCSEQnW.woff +0 -0
- package/cockpit/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2 +0 -0
- package/cockpit/assets/dm-sans-latin-500-normal-B9HHJjqV.woff2 +0 -0
- package/cockpit/assets/dm-sans-latin-500-normal-Dr3UlScf.woff +0 -0
- package/cockpit/assets/dm-sans-latin-700-normal-CUSSCpQX.woff +0 -0
- package/cockpit/assets/dm-sans-latin-700-normal-DvUfVpUG.woff2 +0 -0
- package/cockpit/assets/dm-sans-latin-ext-400-normal-BjWJ59Pq.woff +0 -0
- package/cockpit/assets/dm-sans-latin-ext-400-normal-BtiwyxMk.woff2 +0 -0
- package/cockpit/assets/dm-sans-latin-ext-500-normal-BJfUCQsA.woff2 +0 -0
- package/cockpit/assets/dm-sans-latin-ext-500-normal-DR84L5F-.woff +0 -0
- package/cockpit/assets/dm-sans-latin-ext-700-normal-BLI3TTWz.woff +0 -0
- package/cockpit/assets/dm-sans-latin-ext-700-normal-CJIcxD6K.woff2 +0 -0
- package/cockpit/assets/index-CkhZWZ2f.js +18 -0
- package/cockpit/assets/index-TSfC5rf2.css +1 -0
- package/cockpit/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
- package/cockpit/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
- package/cockpit/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
- package/cockpit/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
- package/cockpit/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- package/cockpit/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/cockpit/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- package/cockpit/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
- package/cockpit/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
- package/cockpit/assets/outfit-latin-400-normal-BGsTXAXT.woff2 +0 -0
- package/cockpit/assets/outfit-latin-400-normal-DMwTpYkH.woff +0 -0
- package/cockpit/assets/outfit-latin-600-normal-B7SfZ07L.woff2 +0 -0
- package/cockpit/assets/outfit-latin-600-normal-BEfTtDA7.woff +0 -0
- package/cockpit/assets/outfit-latin-ext-400-normal-5tcqmc2S.woff2 +0 -0
- package/cockpit/assets/outfit-latin-ext-400-normal-DHm7mdGe.woff +0 -0
- package/cockpit/assets/outfit-latin-ext-600-normal-B85nYjL1.woff2 +0 -0
- package/cockpit/assets/outfit-latin-ext-600-normal-CWJcPgd7.woff +0 -0
- package/cockpit/assets/unbounded-cyrillic-600-normal-B-s5c2Kn.woff +0 -0
- package/cockpit/assets/unbounded-cyrillic-600-normal-DW6uzIMB.woff2 +0 -0
- package/cockpit/assets/unbounded-latin-600-normal-BPdB_PEv.woff +0 -0
- package/cockpit/assets/unbounded-latin-600-normal-oRSANpZr.woff2 +0 -0
- package/cockpit/assets/unbounded-latin-ext-600-normal-0iZLtTDV.woff2 +0 -0
- package/cockpit/assets/unbounded-latin-ext-600-normal-ClMPf-bu.woff +0 -0
- package/cockpit/assets/unbounded-vietnamese-600-normal-BzfrgZ_C.woff +0 -0
- package/cockpit/assets/unbounded-vietnamese-600-normal-Cx2bTSHN.woff2 +0 -0
- package/cockpit/community.module-inventory.json +2439 -0
- package/cockpit/index.html +14 -0
- package/community-postgres.json +13 -0
- package/migrations/agentspace/0000_thin_carlie_cooper.sql +764 -0
- package/migrations/agentspace/meta/_journal.json +13 -0
- package/migrations/chatv3/0000_dry_ego.sql +218 -0
- package/migrations/chatv3/0001_nosy_obadiah_stane.sql +35 -0
- package/migrations/chatv3/0002_narrow_darkhawk.sql +4 -0
- package/migrations/chatv3/0003_damp_zarek.sql +2 -0
- package/migrations/chatv3/0004_nervous_martin_li.sql +60 -0
- package/migrations/chatv3/0005_chatv3_server_encrypted_mode.sql +1 -0
- package/migrations/chatv3/0006_chatv3_database_server_keyring.sql +21 -0
- package/migrations/chatv3/meta/_journal.json +55 -0
- package/migrations/docman/0000_curvy_valeria_richards.sql +257 -0
- package/migrations/docman/0001_massive_risque.sql +2 -0
- package/migrations/docman/0002_simple_logan.sql +50 -0
- package/migrations/docman/0003_quick_index.sql +45 -0
- package/migrations/docman/0004_known_summary.sql +9 -0
- package/migrations/docman/0005_vector_signal.sql +9 -0
- package/migrations/docman/0006_document_version_current_invariant.sql +15 -0
- package/migrations/docman/meta/_journal.json +55 -0
- package/migrations/projectman/0000_smooth_klaw.sql +257 -0
- package/migrations/projectman/0001_worthless_zodiak.sql +9 -0
- package/migrations/projectman/0002_board_rename.sql +108 -0
- package/migrations/projectman/0003_review_request.sql +62 -0
- package/migrations/projectman/0004_review_request_idempotency.sql +3 -0
- package/migrations/projectman/0005_allow_multi_sprint_per_task.sql +1 -0
- package/migrations/projectman/meta/_journal.json +48 -0
- package/migrations/sys/0000_loose_praxagora.sql +31 -0
- package/migrations/sys/0001_awesome_ronan.sql +2 -0
- package/migrations/sys/0002_steady_maximus.sql +2 -0
- package/migrations/sys/0003_escalating_rate_limiter.sql +2 -0
- package/migrations/sys/0004_rate_limiter_timestamptz.sql +22 -0
- package/migrations/sys/0005_sys_counters.sql +21 -0
- package/migrations/sys/meta/_journal.json +48 -0
- package/npm-shrinkwrap.json +5069 -0
- package/package.json +88 -0
- package/runtime/agentspace-host-adapter.mjs +64 -0
- package/runtime/agentspace-tooling.mjs +389 -0
- package/runtime/commercial-integrity-worker.mjs +1643 -0
- package/runtime/docman-host-adapter.mjs +177 -0
- package/runtime/docman-policy.mjs +450 -0
- package/runtime/docman-tooling.mjs +20 -0
- package/runtime/projectman-host-adapter.mjs +597 -0
- package/runtime/scope-context.mjs +99 -0
- package/runtime-closure.package.json +376 -0
- package/scripts/community-host.mjs +919 -0
- package/scripts/community-migration-policy-package-v1.json +11854 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _t=128;const Et=16384,vt=32768,ht=33554432,dt=65536;const pt=524288;const Ee=Symbol("$state"),Tt=Symbol("legacy props"),Rn=Symbol("attributes"),Cn=Symbol("class"),An=Symbol("style"),Dn=Symbol("text"),ee=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},oe=3,Ve=8,Ue=!1;var Fn=Array.isArray,Nn=Array.prototype.indexOf,se=Array.prototype.includes,Ct=Array.from,At=Object.defineProperty,$=Object.getOwnPropertyDescriptor,wn=Object.prototype,yn=Array.prototype,On=Object.getPrototypeOf,Ye=Object.isExtensible;const In=()=>{};function gn(e){for(var n=0;n<e.length;n++)e[n]()}function He(){var e,n,t=new Promise((r,s)=>{e=r,n=s});return{promise:t,resolve:e,reject:n}}function Ke(e){return e===this.v}function mn(e,n){return e!=e?n==n:e!==n||e!==null&&typeof e=="object"||typeof e=="function"}function je(e){return!mn(e,this.v)}function Sn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Yn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ln(e){throw new Error("https://svelte.dev/e/effect_orphan")}function xn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dt(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ft(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function kn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Pn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Bn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Nt(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let Mn=!1;const wt=1,yt=4,Ot=8,It=16,gt=1,mt=2,Vn="[",Un="[!",St="[?",Hn="]",Ae={},R=Symbol("uninitialized");let N=null;function ie(e){N=e}function bt(e,n=!1,t){N={p:N,i:!1,c:null,e:null,s:e,x:null,r:d,l:null}}function Yt(e){var n=N,t=n.e;if(t!==null){n.e=null;for(var r of t)vn(r)}return n.i=!0,N=n.p,{}}function Ge(){return!0}let P=[];function qe(){var e=P;P=[],gn(e)}function Le(e){if(P.length===0&&!J){var n=P;queueMicrotask(()=>{n===P&&qe()})}P.push(e)}function Kn(){for(;P.length>0;)qe()}function jn(){console.warn("https://svelte.dev/e/derived_inert")}function De(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Lt(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let U=!1;function xt(e){U=e}let A;function G(e){if(e===null)throw De(),Ae;return A=e}function kt(){return G(x(A))}function Pt(e){if(U){if(x(A)!==null)throw De(),Ae;A=e}}function Bt(e=1){if(U){for(var n=e,t=A;n--;)t=x(t);A=t}}function Mt(e=!0){for(var n=0,t=A;;){if(t.nodeType===Ve){var r=t.data;if(r===Hn){if(n===0)return t;n-=1}else(r===Vn||r===Un||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(n+=1)}var s=x(t);e&&t.remove(),t=s}}function Vt(e){if(!e||e.nodeType!==Ve)throw De(),Ae;return e.data}function z(e){if(typeof e!="object"||e===null||Ee in e)return e;const n=On(e);if(n!==wn&&n!==yn)return e;var t=new Map,r=Fn(e),s=S(0),i=V,u=f=>{if(V===i)return f();var l=h,a=V;L(null),Me(i);var _=f();return L(l),Me(a),_};return r&&t.set("length",S(e.length)),new Proxy(e,{defineProperty(f,l,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&kn();var _=t.get(l);return _===void 0?u(()=>{var o=S(a.value);return t.set(l,o),o}):k(_,a.value,!0),!0},deleteProperty(f,l){var a=t.get(l);if(a===void 0){if(l in f){const _=u(()=>S(R));t.set(l,_),de(s)}}else k(a,R),de(s);return!0},get(f,l,a){if(l===Ee)return e;var _=t.get(l),o=l in f;if(_===void 0&&(!o||$(f,l)?.writable)&&(_=u(()=>{var E=z(o?f[l]:R),v=S(E);return v}),t.set(l,_)),_!==void 0){var c=Z(_);return c===R?void 0:c}return Reflect.get(f,l,a)},getOwnPropertyDescriptor(f,l){var a=Reflect.getOwnPropertyDescriptor(f,l);if(a&&"value"in a){var _=t.get(l);_&&(a.value=Z(_))}else if(a===void 0){var o=t.get(l),c=o?.v;if(o!==void 0&&c!==R)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(f,l){if(l===Ee)return!0;var a=t.get(l),_=a!==void 0&&a.v!==R||Reflect.has(f,l);if(a!==void 0||d!==null&&(!_||$(f,l)?.writable)){a===void 0&&(a=u(()=>{var c=_?z(f[l]):R,E=S(c);return E}),t.set(l,a));var o=Z(a);if(o===R)return!1}return _},set(f,l,a,_){var o=t.get(l),c=l in f;if(r&&l==="length")for(var E=a;E<o.v;E+=1){var v=t.get(E+"");v!==void 0?k(v,R):E in f&&(v=u(()=>S(R)),t.set(E+"",v))}if(o===void 0)(!c||$(f,l)?.writable)&&(o=u(()=>S(void 0)),k(o,z(a)),t.set(l,o));else{c=o.v!==R;var g=u(()=>z(a));k(o,g)}var Se=Reflect.getOwnPropertyDescriptor(f,l);if(Se?.set&&Se.set.call(_,a),!c){if(r&&typeof l=="string"){var be=t.get("length"),_e=Number(l);Number.isInteger(_e)&&_e>=be.v&&k(be,_e+1)}de(s)}return!0},ownKeys(f){Z(s);var l=Reflect.ownKeys(f).filter(o=>{var c=t.get(o);return c===void 0||c.v!==R});for(var[a,_]of t)_.v!==R&&!(a in f)&&l.push(a);return l},setPrototypeOf(){Pn()}})}var xe,Gn,We,ze;function Ut(){if(xe===void 0){xe=window,Gn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,n=Node.prototype,t=Text.prototype;We=$(n,"firstChild").get,ze=$(n,"nextSibling").get,Ye(e)&&(e[Cn]=void 0,e[Rn]=null,e[An]=void 0,e.__e=void 0),Ye(t)&&(t[Dn]=void 0)}}function le(e=""){return document.createTextNode(e)}function pe(e){return We.call(e)}function x(e){return ze.call(e)}function Ht(e,n){if(!U)return pe(e);var t=pe(A);if(t===null)t=A.appendChild(le());else if(n&&t.nodeType!==oe){var r=le();return t?.before(r),G(r),r}return n&&Fe(t),G(t),t}function Kt(e,n=!1){if(!U){var t=pe(e);return t instanceof Comment&&t.data===""?x(t):t}if(n){if(A?.nodeType!==oe){var r=le();return A?.before(r),G(r),r}Fe(A)}return A}function jt(e,n=1,t=!1){let r=U?A:e;for(var s;n--;)s=r,r=x(r);if(!U)return r;if(t){if(r?.nodeType!==oe){var i=le();return r===null?s?.after(i):r.before(i),G(i),i}Fe(r)}return G(r),r}function Gt(e){e.textContent=""}function qt(){return!1}function Wt(e,n,t){return t?document.createElement(e,{is:t}):document.createElement(e)}function Fe(e){if(e.nodeValue.length<65536)return;let n=e.nextSibling;for(;n!==null&&n.nodeType===oe;)n.remove(),e.nodeValue+=n.nodeValue,n=e.nextSibling}function qn(e){var n=d;if(n===null)return h.f|=8388608,e;if((n.f&32768)===0&&(n.f&4)===0)throw e;fe(e,n)}function fe(e,n){if(!(n!==null&&(n.f&16384)!==0)){for(;n!==null;){if((n.f&128)!==0){if((n.f&32768)===0)throw e;try{n.b.error(e);return}catch(t){e=t}}n=n.parent}throw e}}const Wn=-7169;function T(e,n){e.f=e.f&Wn|n}function Ne(e){(e.f&512)!==0||e.deps===null?T(e,1024):T(e,4096)}function Xe(e){if(e!==null)for(const n of e)(n.f&2)===0||(n.f&65536)===0||(n.f^=65536,Xe(n.deps))}function zn(e,n,t){(e.f&2048)!==0?n.add(e):(e.f&4096)!==0&&t.add(e),Xe(e.deps),T(e,1024)}function ce(e){var n=h,t=d;L(null),q(null);try{return e()}finally{L(n),q(t)}}function Xn(e,n,t,r){const s=we;var i=e.filter(E=>!E.settled),u=n.map(s);if(t.length===0&&i.length===0){r(u);return}var f=d,l=Zn(),a=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(E=>E.promise)):null;function _(E){if((f.f&16384)===0){l();try{r([...u,...E])}catch(v){fe(v,f)}ae()}}var o=Ze();if(t.length===0){a.then(()=>_([])).finally(o);return}function c(){Promise.all(t.map(E=>$n(E))).then(_).catch(E=>fe(E,f)).finally(o)}a?a.then(()=>{l(),c(),ae()}):c()}function Zn(){var e=d,n=h,t=N,r=p;return function(i=!0){q(e),L(n),ie(t),i&&(e.f&16384)===0&&(r?.activate(),r?.apply())}}function ae(e=!0){q(null),L(null),ie(null),e&&p?.deactivate()}function Ze(){var e=d,n=e.b,t=p,r=!!n?.is_rendered();return n?.update_pending_count(1,t),t.increment(r,e),()=>{n?.update_pending_count(-1,t),t.decrement(r,e)}}function we(e){var n=2050;return d!==null&&(d.f|=524288),{ctx:N,deps:null,effects:null,equals:Ke,f:n,fn:e,reactions:null,rv:0,v:R,wv:0,parent:d,ac:null}}const X=Symbol("obsolete");function $n(e,n,t){let r=d;r===null&&Sn();var s=void 0,i=ge(R),u=!h,f=new Set;return at(()=>{var l=d,a=He();s=a.promise;try{Promise.resolve(e()).then(a.resolve,E=>{E!==ee&&a.reject(E)}).finally(ae)}catch(E){a.reject(E),ae()}var _=p;if(u){if((l.f&32768)!==0)var o=Ze();if(r.b?.is_rendered())_.async_deriveds.get(l)?.reject(X);else for(const E of f.values())E.reject(X);f.add(a),_.async_deriveds.set(l,a)}const c=(E,v=void 0)=>{o?.(),f.delete(a),v!==X&&(_.activate(),v?(i.f|=8388608,Ce(i,v)):((i.f&8388608)!==0&&(i.f^=8388608),Ce(i,E)),_.deactivate())};a.promise.then(c,E=>c(null,E||"unknown"))}),ft(()=>{for(const l of f)l.reject(X)}),new Promise(l=>{function a(_){function o(){_===s?l(i):a(s)}_.then(o,o)}a(s)})}function zt(e){const n=we(e);return sn(n),n}function Xt(e){const n=we(e);return n.equals=je,n}function Jn(e){var n=e.effects;if(n!==null){e.effects=null;for(var t=0;t<n.length;t+=1)H(n[t])}}function ye(e){var n,t=d,r=e.parent;if(!Y&&r!==null&&e.v!==R&&(r.f&24576)!==0)return jn(),e.v;q(r);try{e.f&=-65537,Jn(e),n=un(e)}finally{q(t)}return n}function $e(e){var n=ye(e);if(!e.equals(n)&&(e.wv=fn(),(!p?.is_fork||e.deps===null)&&(p!==null?(p.capture(e,n,!0),Te?.capture(e,n,!0)):e.v=n,e.deps===null))){T(e,1024);return}Y||(w!==null?(En()||p?.is_fork)&&w.set(e,n):Ne(e))}function Qn(e){if(e.effects!==null)for(const n of e.effects)(n.teardown||n.ac)&&(n.teardown?.(),n.ac!==null&&ce(()=>{n.ac.abort(ee),n.ac=null}),n.fn!==null&&(n.teardown=In),Q(n,0),me(n))}function Je(e){if(e.effects!==null)for(const n of e.effects)n.teardown&&n.fn!==null&&W(n)}let ve=null,K=null,p=null,Te=null,w=null,Re=null,J=!1,he=!1,j=null,te=null;var ke=0;let et=1;class b{id=et++;#c=!1;linked=!0;#i=null;#f=null;async_deriveds=new Map;current=new Map;previous=new Map;#_=new Set;#E=new Set;#v=0;#r=new Map;#h=null;#e=[];#p=[];#s=new Set;#n=new Set;#t=new Map;#d=new Set;is_fork=!1;#a=!1;constructor(){K===null?ve=K=this:(K.#f=this,this.#i=K),K=this}#T(){if(this.is_fork)return!0;for(const r of this.#r.keys()){for(var n=r,t=!1;n.parent!==null;){if(this.#t.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(n){this.#t.has(n)||this.#t.set(n,{d:[],m:[]}),this.#d.delete(n)}unskip_effect(n,t=r=>this.schedule(r)){var r=this.#t.get(n);if(r){this.#t.delete(n);for(var s of r.d)T(s,2048),t(s);for(s of r.m)T(s,4096),t(s)}this.#d.add(n)}#u(){this.#c=!0,ke++>1e3&&(this.#o(),tt());for(const l of this.#s)this.#n.delete(l),T(l,2048),this.schedule(l);for(const l of this.#n)T(l,4096),this.schedule(l);const n=this.#e;this.#e=[],this.apply();var t=j=[],r=[],s=te=[];for(const l of n)try{this.#R(l,t,r)}catch(a){throw nn(l),this.#T()||this.discard(),a}if(p=null,s.length>0){var i=b.ensure();for(const l of s)i.schedule(l)}if(j=null,te=null,this.#T()){this.#l(r),this.#l(t);for(const[l,a]of this.#t)en(l,a);s.length>0&&p.#u();return}const u=this.#C();if(u){this.#l(r),this.#l(t),u.#A(this);return}this.#s.clear(),this.#n.clear();for(const l of this.#_)l(this);this.#_.clear(),Te=this,Pe(r),Pe(t),Te=null,this.#h?.resolve();var f=p;if(this.#v===0&&(this.#e.length===0||f!==null)&&this.#o(),this.#e.length>0)if(f!==null){const l=f;l.#e.push(...this.#e.filter(a=>!l.#e.includes(a)))}else f=this;f!==null&&f.#u()}#R(n,t,r){n.f^=1024;for(var s=n.first;s!==null;){var i=s.f,u=(i&96)!==0,f=u&&(i&1024)!==0,l=f||(i&8192)!==0||this.#t.has(s);if(!l&&s.fn!==null){u?s.f^=1024:(i&4)!==0?t.push(s):ne(s)&&((i&16)!==0&&this.#n.add(s),W(s));var a=s.first;if(a!==null){s=a;continue}}for(;s!==null;){var _=s.next;if(_!==null){s=_;break}s=s.parent}}}#C(){for(var n=this.#i;n!==null;){if(!n.is_fork){for(const[t,[,r]]of this.current)if(n.current.has(t)&&!r)return n}n=n.#i}return null}#A(n){for(const[r,s]of n.current)!this.previous.has(r)&&n.previous.has(r)&&this.previous.set(r,n.previous.get(r)),this.current.set(r,s);for(const[r,s]of n.async_deriveds){const i=this.async_deriveds.get(r);i&&s.promise.then(i.resolve).catch(i.reject)}n.async_deriveds.clear(),this.transfer_effects(n.#s,n.#n);const t=r=>{var s=r.reactions;if(s!==null&&!((r.f&2)!==0&&(r.f&6144)===0))for(const f of s){var i=f.f;if((i&2)!==0)t(f);else{var u=f;i&4194320&&!this.async_deriveds.has(u)&&(this.#n.delete(u),T(u,2048),this.schedule(u))}}};for(const r of this.current.keys())t(r);this.oncommit(()=>n.discard()),n.#o(),p=this,this.#u()}#l(n){for(var t=0;t<n.length;t+=1)zn(n[t],this.#s,this.#n)}capture(n,t,r=!1){n.v!==R&&!this.previous.has(n)&&this.previous.set(n,n.v),(n.f&8388608)===0&&(this.current.set(n,[t,r]),w?.set(n,t)),this.is_fork||(n.v=t)}activate(){p=this}deactivate(){p=null,w=null}flush(){try{he=!0,p=this,this.#u()}finally{ke=0,Re=null,j=null,te=null,he=!1,p=null,w=null,M.clear()}}discard(){for(const n of this.#E)n(this);this.#E.clear();for(const n of this.async_deriveds.values())n.reject(X);this.#o(),this.#h?.resolve()}register_created_effect(n){this.#p.push(n)}#D(){for(let o=ve;o!==null;o=o.#f){var n=o.id<this.id,t=[];for(const[c,[E,v]]of this.current){if(o.current.has(c)){var r=o.current.get(c)[0];if(n&&E!==r)o.current.set(c,[E,v]);else continue}t.push(c)}if(n)for(const[c,E]of this.async_deriveds){const v=o.async_deriveds.get(c);v&&E.promise.then(v.resolve).catch(v.reject)}var s=[...o.current.keys()].filter(c=>!o.current.get(c)[1]);if(!(!o.#c||s.length===0)){var i=s.filter(c=>!this.current.has(c));if(i.length===0)n&&o.discard();else if(t.length>0){if(n)for(const c of this.#d)o.unskip_effect(c,E=>{(E.f&4194320)!==0?o.schedule(E):o.#l([E])});o.activate();var u=new Set,f=new Map;for(var l of t)Qe(l,i,u,f);f=new Map;var a=[...o.current].filter(([c,E])=>{const v=this.current.get(c);return v?v[0]!==E[0]||v[1]!==E[1]:!0}).map(([c])=>c);if(a.length>0)for(const c of this.#p)(c.f&155648)===0&&Oe(c,a,f)&&((c.f&4194320)!==0?(T(c,2048),o.schedule(c)):o.#s.add(c));if(o.#e.length>0&&!o.#a){o.apply();for(var _ of o.#e)o.#R(_,[],[]);o.#e=[]}o.deactivate()}}}}increment(n,t){if(this.#v+=1,n){let r=this.#r.get(t)??0;this.#r.set(t,r+1)}}decrement(n,t){if(this.#v-=1,n){let r=this.#r.get(t)??0;r===1?this.#r.delete(t):this.#r.set(t,r-1)}this.#a||(this.#a=!0,Le(()=>{this.#a=!1,this.linked&&this.flush()}))}transfer_effects(n,t){for(const r of n)this.#s.add(r);for(const r of t)this.#n.add(r);n.clear(),t.clear()}oncommit(n){this.#_.add(n)}ondiscard(n){this.#E.add(n)}settled(){return(this.#h??=He()).promise}static ensure(){if(p===null){const n=p=new b;!he&&!J&&Le(()=>{n.#c||n.flush()})}return p}apply(){{w=null;return}}schedule(n){if(Re=n,n.b?.is_pending&&(n.f&16777228)!==0&&(n.f&32768)===0){n.b.defer_effect(n);return}for(var t=n;t.parent!==null;){t=t.parent;var r=t.f;if(j!==null&&t===d&&(h===null||(h.f&2)===0))return;if((r&96)!==0){if((r&1024)===0)return;t.f^=1024}}this.#e.push(t)}#o(){if(this.linked){var n=this.#i,t=this.#f;n===null?ve=t:n.#f=t,t===null?K=n:t.#i=n,this.linked=!1}}}function nt(e){var n=J;J=!0;try{for(var t;;){if(Kn(),p===null)return t;p.flush()}}finally{J=n}}function tt(){try{xn()}catch(e){fe(e,Re)}}let m=null;function Pe(e){var n=e.length;if(n!==0){for(var t=0;t<n;){var r=e[t++];if((r.f&24576)===0&&ne(r)&&(m=new Set,W(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&dn(r),m?.size>0)){M.clear();for(const s of m){if((s.f&24576)!==0)continue;const i=[s];let u=s.parent;for(;u!==null;)m.has(u)&&(m.delete(u),i.push(u)),u=u.parent;for(let f=i.length-1;f>=0;f--){const l=i[f];(l.f&24576)===0&&W(l)}}m.clear()}}m=null}}function Qe(e,n,t,r){if(!t.has(e)&&(t.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&2)!==0?Qe(s,n,t,r):(i&4194320)!==0&&(i&2048)===0&&Oe(s,n,r)&&(T(s,2048),Ie(s))}}function Oe(e,n,t){const r=t.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(se.call(n,s))return!0;if((s.f&2)!==0&&Oe(s,n,t))return t.set(s,!0),!0}return t.set(e,!1),!1}function Ie(e){p.schedule(e)}function en(e,n){if(!((e.f&32)!==0&&(e.f&1024)!==0)){(e.f&2048)!==0?n.d.push(e):(e.f&4096)!==0&&n.m.push(e),T(e,1024);for(var t=e.first;t!==null;)en(t,n),t=t.next}}function nn(e){T(e,1024);for(var n=e.first;n!==null;)nn(n),n=n.next}let ue=new Set;const M=new Map;let tn=!1;function ge(e,n){var t={f:0,v:e,reactions:null,equals:Ke,rv:0,wv:0};return t}function S(e,n){const t=ge(e);return sn(t),t}function Zt(e,n=!1,t=!0){const r=ge(e);return n||(r.equals=je),r}function k(e,n,t=!1){h!==null&&(!y||(h.f&131072)!==0)&&Ge()&&(h.f&4325394)!==0&&(O===null||!O.has(e))&&Bn();let r=t?z(n):n;return Ce(e,r,te)}function Ce(e,n,t=null){if(!e.equals(n)){M.set(e,Y?n:e.v);var r=b.ensure();if(r.capture(e,n),(e.f&2)!==0){const s=e;(e.f&2048)!==0&&ye(s),w===null&&Ne(s)}e.wv=fn(),rn(e,2048,t),d!==null&&(d.f&1024)!==0&&(d.f&96)===0&&(F===null?st([e]):F.push(e)),!r.is_fork&&ue.size>0&&!tn&&rt()}return n}function rt(){tn=!1;for(const e of ue){(e.f&1024)!==0&&T(e,4096);let n;try{n=ne(e)}catch{n=!0}n&&W(e)}ue.clear()}function de(e){k(e,e.v+1)}function rn(e,n,t){var r=e.reactions;if(r!==null)for(var s=r.length,i=0;i<s;i++){var u=r[i],f=u.f,l=(f&2048)===0;if(l&&T(u,n),(f&131072)!==0)ue.add(u);else if((f&2)!==0){var a=u;w?.delete(a),(f&65536)===0&&(f&512&&(d===null||(d.f&2097152)===0)&&(u.f|=65536),rn(a,4096,t))}else if(l){var _=u;(f&16)!==0&&m!==null&&m.add(_),t!==null?t.push(_):Ie(_)}}}let re=!1,Y=!1;function Be(e){Y=e}let h=null,y=!1;function L(e){h=e}let d=null;function q(e){d=e}let O=null;function sn(e){h!==null&&(O??=new Set).add(e)}let C=null,D=0,F=null;function st(e){F=e}let ln=1,B=0,V=B;function Me(e){V=e}function fn(){return++ln}function ne(e){var n=e.f;if((n&2048)!==0)return!0;if(n&2&&(e.f&=-65537),(n&4096)!==0){for(var t=e.deps,r=t.length,s=0;s<r;s++){var i=t[s];if(ne(i)&&$e(i),i.wv>e.wv)return!0}(n&512)!==0&&w===null&&T(e,1024)}return!1}function an(e,n,t=!0){var r=e.reactions;if(r!==null&&!(O!==null&&O.has(e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&2)!==0?an(i,n,!1):n===i&&(t?T(i,2048):(i.f&1024)!==0&&T(i,4096),Ie(i))}}function un(e){var n=C,t=D,r=F,s=h,i=O,u=N,f=y,l=V,a=e.f;C=null,D=0,F=null,h=(a&96)===0?e:null,O=null,ie(e.ctx),y=!1,V=++B,e.ac!==null&&(ce(()=>{e.ac.abort(ee)}),e.ac=null);try{e.f|=2097152;var _=e.fn,o=_();e.f|=32768;var c=e.deps,E=p?.is_fork;if(C!==null){var v;if(E||Q(e,D),c!==null&&D>0)for(c.length=D+C.length,v=0;v<C.length;v++)c[D+v]=C[v];else e.deps=c=C;if(En()&&(e.f&512)!==0)for(v=D;v<c.length;v++)(c[v].reactions??=[]).push(e)}else!E&&c!==null&&D<c.length&&(Q(e,D),c.length=D);if(Ge()&&F!==null&&!y&&c!==null&&(e.f&6146)===0)for(v=0;v<F.length;v++)an(F[v],e);if(s!==null&&s!==e){if(B++,s.deps!==null)for(let g=0;g<t;g+=1)s.deps[g].rv=B;if(n!==null)for(const g of n)g.rv=B;F!==null&&(r===null?r=F:r.push(...F))}return(e.f&8388608)!==0&&(e.f^=8388608),o}catch(g){return qn(g)}finally{e.f^=2097152,C=n,D=t,F=r,h=s,O=i,ie(u),y=f,V=l}}function it(e,n){let t=n.reactions;if(t!==null){var r=Nn.call(t,e);if(r!==-1){var s=t.length-1;s===0?t=n.reactions=null:(t[r]=t[s],t.pop())}}if(t===null&&(n.f&2)!==0&&(C===null||!se.call(C,n))){var i=n;(i.f&512)!==0&&(i.f^=512,i.f&=-65537),i.v!==R&&Ne(i),i.ac!==null&&ce(()=>{i.ac.abort(ee),i.ac=null,T(i,2048)}),Qn(i),Q(i,0)}}function Q(e,n){var t=e.deps;if(t!==null)for(var r=n;r<t.length;r++)it(e,t[r])}function W(e){var n=e.f;if((n&16384)===0){T(e,1024);var t=d,r=re;d=e,re=(n&96)===0;try{(n&16777232)!==0?ut(e):me(e),hn(e);var s=un(e);e.teardown=typeof s=="function"?s:null,e.wv=ln;var i;Ue&&Mn&&(e.f&2048)!==0&&e.deps}finally{re=r,d=t}}}async function $t(){await Promise.resolve(),nt()}function Jt(){return b.ensure().settled()}function Z(e){var n=e.f,t=(n&2)!==0;if(h!==null&&!y){var r=d!==null&&(d.f&16384)!==0;if(!r&&(O===null||!O.has(e))){var s=h.deps;if((h.f&2097152)!==0)e.rv<B&&(e.rv=B,C===null&&s!==null&&s[D]===e?D++:C===null?C=[e]:C.push(e));else{h.deps??=[],se.call(h.deps,e)||h.deps.push(e);var i=e.reactions;i===null?e.reactions=[h]:se.call(i,h)||i.push(h)}}}if(Y&&M.has(e))return M.get(e);if(t){var u=e;if(Y){var f=u.v;return((u.f&1024)===0&&u.reactions!==null||cn(u))&&(f=ye(u)),M.set(u,f),f}var l=(u.f&512)===0&&!y&&h!==null&&(re||(h.f&512)!==0),a=(u.f&32768)===0;ne(u)&&(l&&(u.f|=512),$e(u)),l&&!a&&(Je(u),on(u))}if(w?.has(e))return w.get(e);if((e.f&8388608)!==0)throw e.v;return e.v}function on(e){if(e.f|=512,e.deps!==null)for(const n of e.deps)(n.reactions??=[]).push(e),(n.f&2)!==0&&(n.f&512)===0&&(Je(n),on(n))}function cn(e){if(e.v===R)return!0;if(e.deps===null)return!1;for(const n of e.deps)if(M.has(n)||(n.f&2)!==0&&cn(n))return!0;return!1}function Qt(e){var n=y;try{return y=!0,e()}finally{y=n}}function _n(e){d===null&&(h===null&&Ln(),Yn()),Y&&bn()}function lt(e,n){var t=n.last;t===null?n.last=n.first=e:(t.next=e,e.prev=t,n.last=e)}function I(e,n){var t=d;t!==null&&(t.f&8192)!==0&&(e|=8192);var r={ctx:N,deps:null,nodes:null,f:e|2048|512,first:null,fn:n,last:null,next:null,parent:t,b:t&&t.b,prev:null,teardown:null,wv:0,ac:null};p?.register_created_effect(r);var s=r;if((e&4)!==0)j!==null?j.push(r):b.ensure().schedule(r);else if(n!==null){try{W(r)}catch(u){throw H(r),u}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&524288)===0&&(s=s.first,(e&16)!==0&&(e&65536)!==0&&s!==null&&(s.f|=65536))}if(s!==null&&(s.parent=t,t!==null&<(s,t),h!==null&&(h.f&2)!==0&&(e&64)===0)){var i=h;(i.effects??=[]).push(s)}return r}function En(){return h!==null&&!y}function ft(e){const n=I(8,null);return T(n,1024),n.teardown=e,n}function er(e){_n();var n=d.f,t=!h&&(n&32)!==0&&N!==null&&!N.i;if(t){var r=N;(r.e??=[]).push(e)}else return vn(e)}function vn(e){return I(1048580,e)}function nr(e){return _n(),I(1048584,e)}function tr(e){b.ensure();const n=I(524352,e);return(t={})=>new Promise(r=>{t.outro?ct(n,()=>{H(n),r(void 0)}):(H(n),r(void 0))})}function rr(e){return I(4,e)}function at(e){return I(4718592,e)}function sr(e,n=0){return I(8|n,e)}function ir(e,n=[],t=[],r=[]){Xn(r,n,t,s=>{I(8,()=>{e(...s.map(Z))})})}function lr(e,n=0){var t=I(16|n,e);return t}function fr(e){return I(524320,e)}function hn(e){var n=e.teardown;if(n!==null){const t=Y,r=h;Be(!0),L(null);try{n.call(null)}finally{Be(t),L(r)}}}function me(e,n=!1){var t=e.first;for(e.first=e.last=null;t!==null;){const s=t.ac;s!==null&&ce(()=>{s.abort(ee)});var r=t.next;(t.f&64)!==0?t.parent=null:H(t,n),t=r}}function ut(e){for(var n=e.first;n!==null;){var t=n.next;(n.f&32)===0&&H(n),n=t}}function H(e,n=!0){var t=!1;(n||(e.f&262144)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ot(e.nodes.start,e.nodes.end),t=!0),e.f|=33554432,me(e,n&&!t),Q(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();hn(e),e.f^=33554432,e.f|=16384;var s=e.parent;s!==null&&s.first!==null&&dn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function ot(e,n){for(;e!==null;){var t=e===n?null:x(e);e.remove(),e=t}}function dn(e){var n=e.parent,t=e.prev,r=e.next;t!==null&&(t.next=r),r!==null&&(r.prev=t),n!==null&&(n.first===e&&(n.first=r),n.last===e&&(n.last=t))}function ct(e,n,t=!0){var r=[];pn(e,r,!0);var s=()=>{t&&H(e),n&&n()},i=r.length;if(i>0){var u=()=>--i||s();for(var f of r)f.out(u)}else s()}function pn(e,n,t){if((e.f&8192)===0){e.f^=8192;var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)(f.is_global||t)&&n.push(f);for(var s=e.first;s!==null;){var i=s.next;if((s.f&64)===0){var u=(s.f&65536)!==0||(s.f&32)!==0&&(e.f&16)!==0;pn(s,n,u?t:!1)}s=i}}}function ar(e){Tn(e,!0)}function Tn(e,n){if((e.f&8192)!==0){e.f^=8192,(e.f&1024)===0&&(T(e,2048),b.ensure().schedule(e));for(var t=e.first;t!==null;){var r=t.next,s=(t.f&65536)!==0||(t.f&32)!==0;Tn(t,s?n:!1),t=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||n)&&u.in()}}function ur(e,n){if(e.nodes)for(var t=e.nodes.start,r=e.nodes.end;t!==null;){var s=t===r?null:x(t);n.append(t),t=s}}export{pt as $,kt as A,oe as B,G as C,Fe as D,dt as E,En as F,Z as G,sr as H,ge as I,Le as J,de as K,_t as L,Un as M,St as N,zn as O,q as P,L as Q,vt as R,ie as S,gt as T,b as U,qn as V,h as W,Ce as X,Bt as Y,Mt as Z,fe as _,p as a,Nt as a0,Lt as a1,At as a2,Ut as a3,Ve as a4,Vn as a5,x as a6,Ae as a7,xt as a8,Dt as a9,$t as aA,S as aB,zt as aC,In as aD,mn as aE,Jt as aF,Gt as aa,tr as ab,Ct as ac,Hn as ad,De as ae,Dn as af,k as ag,Tt as ah,nt as ai,Zt as aj,Vt as ak,rr as al,ht as am,Ee as an,$ as ao,Ft as ap,yt as aq,z as ar,Y as as,Et as at,Ot as au,wt as av,we as aw,Xt as ax,It as ay,nr as az,fr as b,le as c,H as d,A as e,lr as f,Kt as g,U as h,N as i,Qt as j,bt as k,Yt as l,ur as m,Ht as n,Pt as o,ct as p,jt as q,ar as r,qt as s,ir as t,er as u,Wt as v,d as w,pe as x,Gn as y,mt as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,d as o,p as u,c as d,b as l,a as m,h as p,e as _,m as v,s as b}from"./2_TffmqH.js";class w{anchor;#t=new Map;#s=new Map;#e=new Map;#i=new Set;#a=!0;constructor(t,s=!0){this.anchor=t,this.#a=s}#f=t=>{if(this.#t.has(t)){var s=this.#t.get(t),e=this.#s.get(s);if(e)n(e),this.#i.delete(s);else{var a=this.#e.get(s);a&&(n(a.effect),this.#s.set(s,a.effect),this.#e.delete(s),a.fragment.lastChild.remove(),this.anchor.before(a.fragment),e=a.effect)}for(const[i,f]of this.#t){if(this.#t.delete(i),i===t)break;const r=this.#e.get(f);r&&(o(r.effect),this.#e.delete(f))}for(const[i,f]of this.#s){if(i===s||this.#i.has(i))continue;const r=()=>{if(Array.from(this.#t.values()).includes(i)){var c=document.createDocumentFragment();v(f,c),c.append(d()),this.#e.set(i,{effect:f,fragment:c})}else o(f);this.#i.delete(i),this.#s.delete(i)};this.#a||!e?(this.#i.add(i),u(f,r,!1)):r()}}};#r=t=>{this.#t.delete(t);const s=Array.from(this.#t.values());for(const[e,a]of this.#e)s.includes(e)||(o(a.effect),this.#e.delete(e))};ensure(t,s){var e=m,a=b();if(s&&!this.#s.has(t)&&!this.#e.has(t))if(a){var i=document.createDocumentFragment(),f=d();i.append(f),this.#e.set(t,{effect:l(()=>s(f)),fragment:i})}else this.#s.set(t,l(()=>s(this.anchor)));if(this.#t.set(e,t),a){for(const[r,h]of this.#s)r===t?e.unskip_effect(h):e.skip_effect(h);for(const[r,h]of this.#e)r===t?e.unskip_effect(h.effect):e.skip_effect(h.effect);e.oncommit(this.#f),e.ondiscard(this.#r)}else p&&(this.anchor=_),this.#f(e)}}export{w as B};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as o,i as t,j as c}from"./2_TffmqH.js";function u(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function i(e){t===null&&u(),o(()=>{const n=c(e);if(typeof n=="function")return n})}export{i as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aD as ve,aE as bt,aA as oe,aF as kt,aB as A,G as U,ag as T}from"./2_TffmqH.js";import{o as Fe}from"./B2EkC-sy.js";const V=[];function Ae(e,t=ve){let n=null;const r=new Set;function a(o){if(bt(e,o)&&(e=o,n)){const c=!V.length;for(const l of r)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(o){a(o(e))}function s(o,c=ve){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,i)||ve),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:s}}const Et="1785878631412",L=globalThis.__sveltekit_iei8u2?.base??"",St=globalThis.__sveltekit_iei8u2?.assets??L??"";new URL("sveltekit-internal://");function Rt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function xt(e){return e.split("%25").map(decodeURI).join("%25")}function Lt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}const At=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,Ut=/^\/\((?:[^)]+)\)$/;function Tt(e){const t=[];return{pattern:e==="/"||Ut.test(e)?/^\/$/:new RegExp(`^${Pt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return be(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return be(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const u=At.exec(c),[,p,w,d,f]=u;return t.push({name:d,matcher:f,optional:!!p,rest:!!w,chained:w?l===1&&s[0]==="":!1}),w?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return be(c)}).join("")}).join("")}/?$`),params:t}}function It(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Pt(e){return e.slice(1).split("/").filter(It)}function Ot(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-s];if(c.chained&&c.rest&&s&&(l=a.slice(o-s,o+1).filter(u=>u).join("/"),s=0),l===void 0)if(c.rest)l="";else continue;if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const u=t[o+1],p=a[o+1];u&&!u.rest&&u.optional&&p&&c.chained&&(s=0),!u&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return r}function be(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}class Ue{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 Te{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Ie extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}function C(){}function $t(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function Ct(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Nt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Y.delete(Pe(e)),Nt(e,t));const Y=new Map;function jt(e,t){const n=Pe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);r.getAttribute("data-b64")!==null&&(a=Ct(a));const o=r.getAttribute("data-ttl");return o&&Y.set(n,{body:a,init:i,ttl:1e3*Number(o)}),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function qt(e,t,n){if(Y.size>0){const r=Pe(e,n),a=Y.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);Y.delete(r)}}return window.fetch(t,n)}function Pe(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${$t(...a)}"]`}return r}function Dt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,u]])=>{const{pattern:p,params:w}=Tt(o),d={id:o,exec:f=>{const m=p.exec(f);if(m)return Ot(m,w,r)},errors:[1,...u||[]].map(f=>e[f]),layouts:[0,...l||[]].map(s),leaf:i(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function i(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function Qe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ke(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const Ze="sveltekit:snapshot",et="sveltekit:scroll",tt="sveltekit:states",Vt="sveltekit:pageurl",F="sveltekit:history",Q="sveltekit:navigation",q={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const Mt=new Set([...nt]);[...Mt];function Bt(e){return e.filter(t=>t!=null)}function re(e,t){return e+"/"+t}function Oe(e){return e instanceof Ue||e instanceof Ie?e.status:500}function Ft(e){return e instanceof Ie?e.text:"Internal Error"}const Kt=new Set(["icon","shortcut icon","apple-touch-icon"]);let W=null;const j=Qe(et)??{},Z=Qe(Ze)??{},N={url:Ye({}),page:Ye({}),navigating:Ae(null),updated:fn()};function $e(e){j[e]=D()}function Gt(e,t){let n=e+1;for(;j[n];)delete j[n],n+=1;for(n=t+1;Z[n];)delete Z[n],n+=1}function ee(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(C)}async function rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let Ce,Se,se,I,Re,v;const ie=[],ce=[];let S=null;function le(){S?.fork?.then(e=>e?.discard()),S=null,B={element:void 0,href:void 0}}const ae=new Map,at=new Set,Ht=new Set,X=new Set;let _={branch:[],error:null,url:null},ot=!1,ue=!1,Ge=!0,te=!1,J=!1,st=!1,Ne=!1,it,y,R,$;const fe=new Set,He=new Map,ze=new Map;async function gn(e,t,n){if(globalThis.__sveltekit_iei8u2.data){const{q:i={},p:s={},l:o={},f:c={}}=globalThis.__sveltekit_iei8u2.data;for(const l in i)i[l];for(const l in o)o[l];for(const l in c)c[l];for(const l in s)s[l]}document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Ce=Dt(e),I=document.documentElement,Re=t,Se=e.nodes[0],se=e.nodes[1],Se(),se(),y=history.state?.[F],R=history.state?.[Q],y||(y=R=Date.now(),history.replaceState({...history.state,[F]:y,[Q]:R},""));const r=j[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await sn(Re,n)):(await K({type:"enter",url:gt(v.hash?un(new URL(location.href)):location.href),replace_state:!0}),a()),on()}function zt(){ie.length=0,Ne=!1}function ct(e){ce.some(t=>t?.snapshot)&&(Z[e]=ce.map(t=>t?.snapshot?.capture()))}function lt(e){Z[e]?.forEach((t,n)=>{ce[n]?.snapshot?.restore(t)})}function We(){$e(y),Ke(et,j),ct(R),Ke(Ze,Z)}async function Wt(e,t,n,r){let a,i;t.invalidateAll&&le(),await K({type:"goto",url:gt(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{if(t.invalidateAll){Ne=!0,a=new Set;for(const[s,o]of He)for(const[c,l]of o)l.resource?.reset(),a.add(re(s,c));i=new Set;for(const[s,o]of ze)for(const c of o.keys())i.add(re(s,c))}t.invalidate&&t.invalidate.forEach(an)}}),t.invalidateAll&&oe().then(oe).then(()=>{for(const[s,o]of He)for(const[c,{resource:l}]of o)a?.has(re(s,c))&&l.start();for(const[s,o]of ze)for(const[c,{resource:l}]of o)i?.has(re(s,c))&&l.reconnect()})}async function Jt(e){if(e.id!==S?.id){le();const t={};fe.add(t),S={id:e.id,token:t,promise:ft({...e,preload:t}).then(n=>(fe.delete(t),n.type==="loaded"&&n.state.error&&le(),n)),fork:null}}return S.promise}async function ke(e){const t=(await ge(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function ut(e,t,n){const r={params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)};if(_={...e.state,nav:r},vt(e.props.page),it=new v.root({target:t,props:{...e.props,stores:N,components:ce},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){const a={from:null,to:{...r,scroll:j[y]??D()},willUnload:!1,type:"enter",complete:Promise.resolve()};X.forEach(i=>i(a))}lt(R),ue=!0}async function de({url:e,params:t,branch:n,errors:r,status:a,error:i,route:s,form:o}){let c="never";if(L&&(e.pathname===L||e.pathname===L+"/"))c="always";else for(const f of n)f?.slash!==void 0&&(c=f.slash);e.pathname=Rt(e.pathname,c),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:s},props:{constructors:Bt(n).map(f=>f.node.component),page:Me(x)}};o!==void 0&&(l.props.form=o);let u={},p=!x,w=0;for(let f=0;f<Math.max(n.length,_.branch.length);f+=1){const m=n[f],g=_.branch[f];m?.data!==g?.data&&(p=!0),m&&(u={...u,...m.data},p&&(l.props[`data_${w}`]=u),w+=1)}return(!_.url||e.href!==_.url.href||_.error!==i||o!==void 0&&o!==x.form||p)&&(l.props.page={error:i,params:t,route:{id:s?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:p?u:x.data}),l}async function je({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null;const o={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:s,uses:o}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function Yt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=ue?qt(r,a.href,t):jt(r,t);return{resolved:a,promise:i}}function Xt(e,t,n,r,a,i){if(Ne)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==_.params[s])return!0;for(const s of a.dependencies)if(ie.some(o=>o(new URL(s))))return!0;return!1}function qe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Qt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function Zt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Me(x),constructors:[]}}}async function ft({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(S?.id===e)return fe.delete(S.token),S.promise;const{errors:s,layouts:o,leaf:c}=a,l=[...o,c];s.forEach(g=>g?.().catch(C)),l.forEach(g=>g?.[1]().catch(C));const u=_.url?e!==he(_.url):!1,p=_.route?a.id!==_.route.id:!1,w=Qt(_.url,n);let d=!1;const f=l.map(async(g,h)=>{if(!g)return;const b=_.branch[h];return g[1]===b?.loader&&!Xt(d,p,u,w,b.universal?.uses,r)?b:(d=!0,je({loader:g[1],url:n,params:r,route:a,parent:async()=>{const P={};for(let O=0;O<h;O+=1)Object.assign(P,(await f[O])?.data);return P},server_data_node:qe(g[0]?{type:"skip"}:null,g[0]?b?.server:void 0)}))});for(const g of f)g.catch(C);const m=[];for(let g=0;g<l.length;g+=1)if(l[g])try{m.push(await f[g])}catch(h){if(h instanceof Te)return{type:"redirect",location:h.location};if(i&&fe.has(i))return Zt({error:await G(h,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=Oe(h),E;if(h instanceof Ue)E=h.body;else{if(await N.updated.check())return await rt(),await ee(n);E=await G(h,{params:r,url:n,route:{id:a.id}})}const P=await en(g,m,s);return P?de({url:n,params:r,branch:m.slice(0,P.idx).concat(P.node),errors:s,status:b,error:E,route:a}):await ht(n,{id:a.id},E,b)}else m.push(void 0);return de({url:n,params:r,branch:m,errors:s,status:200,error:null,route:a,form:t?void 0:null})}async function en(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function De({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await je({loader:Se,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:qe(i)}),o={node:await se(),loader:se,universal:null,server:null,data:null};return de({url:n,params:a,branch:[s,o],status:e,error:t,errors:[],route:null})}catch(s){if(s instanceof Te){await Wt(new URL(s.location,location.href),{},0);return}const o=await v.get_error_template(),c=await G(s,{url:n,params:a,route:r}),l=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),u=o({status:e,message:l}),p=new DOMParser().parseFromString(u,"text/html");throw document.documentElement.replaceChild(document.adoptNode(p.head),document.head),document.documentElement.replaceChild(document.adoptNode(p.body),document.body),s}}async function tn(e){const t=e.href;if(ae.has(t))return ae.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(i,s)=>Yt(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);v.hash?i.hash=a:i.pathname=a,a=i}return a})();ae.set(t,r),n=await r}catch{ae.delete(t);return}return n}async function ge(e,t){if(e&&!me(e,L,v.hash)){const n=await tn(e);if(!n)return;const r=nn(n);for(const a of Ce){const i=a.exec(r);if(i)return{id:he(e),invalidating:t,route:a,params:Lt(i),url:e}}}}function nn(e){return xt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function he(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function dt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=Ve(_,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const c={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return te||at.forEach(l=>l(c)),s?null:o}async function K({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:c={},accept:l=C,block:u=C,event:p}){const w=$;$=c;const d=await ge(t,!1),f=e==="enter"?Ve(_,d,t,e):dt({url:t,type:e,delta:n?.delta,intent:d,scroll:n?.scroll,event:p});if(!f){u(),$===c&&($=w);return}const m=y,g=R;l(),te=!0,ue&&f.navigation.type!=="enter"&&N.navigating.set(ne.current=f.navigation);let h=d&&await ft(d);if(!h){if(me(t,L,v.hash))return await ee(t,i);h=await ht(t,{id:null},await G(new Ie(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=d?.url||t,$!==c){f.reject(new Error("navigation aborted"));return}if(!h)return;if(h.type==="redirect"){if(o<20){await K({type:e,url:new URL(h.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:c}),f.fulfil(void 0);return}if(h=await De({status:500,error:await G(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!h)return}else if(h.props.page.status>=400&&await N.updated.check())return await rt(),await ee(t,i);if(zt(),$e(m),ct(g),h.props.page.url.pathname!==t.pathname&&(t.pathname=h.props.page.url.pathname),s=n?n.state:s,!n){const k=i?0:1,H={[F]:y+=k,[Q]:R+=k,[tt]:s};(i?history.replaceState:history.pushState).call(history,H,"",t),i||Gt(y,R)}const b=d&&S?.id===d.id?S.fork:null;S?.fork&&!b?le():(S=null,B={element:void 0,href:void 0}),h.props.page.state=s;let E;if(ue){const k=(await Promise.all(Array.from(Ht,z=>z(f.navigation)))).filter(z=>typeof z=="function");if(k.length>0){let z=function(){k.forEach(we=>{X.delete(we)})};k.push(z),k.forEach(we=>{X.add(we)})}const H=f.navigation.to;_={...h.state,nav:{params:H.params,route:H.route,url:H.url}},h.props.page&&(h.props.page.url=t),!r&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const _e=b&&await b;_e?E=_e.commit():(W=null,it.$set(h.props),W&&Object.assign(h.props.page,W),vt(h.props.page),E=kt?.()),st=!0}else await ut(h,Re,!1);const{activeElement:P}=document;if(await E,await oe(),await oe(),$!==c){f.reject(new Error("navigation aborted"));return}h.props.page&&W&&Object.assign(h.props.page,W);let O=null;if(Ge){const k=n?n.scroll:a?D():null;k?scrollTo(k.x,k.y):(O=t.hash&&document.getElementById(pt(t)))?O.scrollIntoView():scrollTo(0,0)}const yt=document.activeElement!==P&&document.activeElement!==document.body;!r&&!yt&&ln(t,!O),Ge=!0,te=!1,f.fulfil(void 0),f.navigation.to&&(f.navigation.to.scroll=D()),X.forEach(k=>k(f.navigation)),e==="popstate"&<(R),N.navigating.set(ne.current=null)}async function ht(e,t,n,r,a){return e.origin===Be&&e.pathname===location.pathname&&!ot?await De({status:r,error:n,url:e,route:t}):await ee(e,a)}let B={element:void 0,href:void 0};function rn(){let e,t;I.addEventListener("mousemove",s=>{const o=s.target;clearTimeout(e),e=setTimeout(()=>{a(o,q.hover)},20)});function n(s){s.defaultPrevented||a(s.composedPath()[0],q.tap)}I.addEventListener("mousedown",n),I.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(s=>{for(const o of s)o.isIntersecting&&(ke(new URL(o.target.href)),r.unobserve(o.target))},{threshold:0});async function a(s,o){const c=_t(s,I),l=c===B.element&&c?.href===B.href&&o>=t;if(!c||l)return;const{url:u,external:p,download:w}=Le(c,L,v.hash);if(p||w)return;const d=pe(c),f=u&&he(_.url)===he(u);if(!(d.reload||f))if(o<=d.preload_data){B={element:c,href:c.href},t=q.tap;const m=await ge(u,!1);if(!m)return;Jt(m)}else o<=d.preload_code&&(B={element:c,href:c.href},t=o,ke(u))}function i(){r.disconnect();for(const s of I.querySelectorAll("a")){const{url:o,external:c,download:l}=Le(s,L,v.hash);if(c||l)continue;const u=pe(s);u.reload||(u.preload_code===q.viewport&&r.observe(s),u.preload_code===q.eager&&ke(o))}}X.add(i),i()}function G(e,t){if(e instanceof Ue)return e.body;const n=Oe(e),r=Ft(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function an(e){if(typeof e=="function")ie.push(e);else{const{href:t}=new URL(e,location.href);ie.push(n=>n.href===t)}}function on(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(We(),!te){const r=Ve(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};at.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&We()}),navigator.connection?.saveData||rn(),I.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=_t(t.composedPath()[0],I);if(!n)return;const{url:r,external:a,target:i,download:s}=Le(n,L,v.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=pe(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[l,u]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=l===ye(location);if(a||o.reload&&(!p||!u)){dt({url:r,type:"link",event:t})?te=!0:t.preventDefault();return}if(u!==void 0&&p){const[,w]=_.url.href.split("#");if(w===u){if(t.preventDefault(),u===""||u==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const d=n.ownerDocument.getElementById(decodeURIComponent(u));d&&(d.scrollIntoView(),d.focus())}return}if(J=!0,$e(y),e(r),!o.replace_state)return;J=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await K({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(me(s,L,!1))return;const o=t.target,c=pe(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(o,r);s.search=new URLSearchParams(l).toString(),K({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!xe){if(t.state?.[F]){const n=t.state[F];if($={},n===y)return;const r=j[n],a=t.state[tt]??{},i=new URL(t.state[Vt]??location.href),s=t.state[Q],o=_.url?ye(location)===ye(_.url):!1;if(s===R&&(st||o)){a!==x.state&&(x.state=a),e(i),j[y]=D(),r&&scrollTo(r.x,r.y),y=n;return}const l=n-y;await K({type:"popstate",url:i,popped:{state:a,scroll:r,delta:l},accept:()=>{y=n,R=s},block:()=>{history.go(-l)},nav_token:$,event:t})}else if(!J){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{J&&(J=!1,history.replaceState({...history.state,[F]:++y,[Q]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Kt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&N.navigating.set(ne.current=null)});function e(t){_.url=x.url=t,N.page.set(Me(x)),N.page.notify()}}async function sn(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:c}){ot=!0;const l=new URL(location.href);let u;({params:a={},route:i={id:null}}=await ge(l,!1)||{}),u=Ce.find(({id:d})=>d===i.id);let p,w=!0;try{const d=r.map(async(m,g)=>{const h=o[g];return h?.uses&&(h.uses=cn(h.uses)),je({loader:v.nodes[m],url:l,params:a,route:i,parent:async()=>{const b={};for(let E=0;E<g;E+=1)Object.assign(b,(await d[E]).data);return b},server_data_node:qe(h)})}),f=await Promise.all(d);if(u){const m=u.layouts;for(let g=0;g<m.length;g++)m[g]||f.splice(g,0,void 0)}p=await de({url:l,params:a,branch:f,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(d){if(d instanceof Te)return await ee(new URL(d.location,location.href));p=await De({status:Oe(d),error:await G(d,{url:l,params:a,route:i}),url:l,route:i}),e.textContent="",w=!1}p&&(p.props.page&&(p.props.page.state={}),await ut(p,e,w))}function cn(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 xe=!1;function ln(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=pt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=D();setTimeout(()=>{const o=history.state;xe=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),xe=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],c=a.getRangeAt(s);if(o.commonAncestorContainer!==c.commonAncestorContainer||o.startContainer!==c.startContainer||o.endContainer!==c.endContainer||o.startOffset!==c.startOffset||o.endOffset!==c.endOffset)return}a.removeAllRanges()}})}}}function Ve(e,t,n,r,a=null){let i,s;const o=new Promise((l,u)=>{i=l,s=u});return o.catch(C),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function Me(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 un(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)}const Be=location.origin;function gt(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 D(){return{x:pageXOffset,y:pageYOffset}}function M(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Je={...q,"":q.hover};function mt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function _t(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=mt(e)}}function Le(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||me(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===Be&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function pe(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=M(o,"preload-code")),a===null&&(a=M(o,"preload-data")),t===null&&(t=M(o,"keepfocus")),n===null&&(n=M(o,"noscroll")),i===null&&(i=M(o,"reload")),s===null&&(s=M(o,"replacestate")),o=mt(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Je[r??"off"],preload_data:Je[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(s)}}function Ye(e){const t=Ae(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&s(o=c)})}return{notify:r,set:a,subscribe:i}}const wt={v:C};function fn(){const{set:e,subscribe:t}=Ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${St}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==Et;return s&&(e(!0),wt.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function me(e,t,n){return e.origin!==Be||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function mn(e){}let x,ne,Ee;const dn=Fe.toString().includes("$$")||/function \w+\(\) \{\}/.test(Fe.toString()),Xe="a:";dn?(x={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Xe)},ne={current:null},Ee={current:!1}):(x=new class{#e=A({});get data(){return U(this.#e)}set data(t){T(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){T(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){T(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){T(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){T(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){T(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){T(this.#s,t)}#i=A(new URL(Xe));get url(){return U(this.#i)}set url(t){T(this.#i,t)}},ne=new class{#e=A(null);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},Ee=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},wt.v=()=>Ee.current=!0);function vt(e){Object.assign(x,e)}export{gn as a,mn as l,x as p,N as s};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{F as Z,G as z,H as ee,I as J,j as te,J as A,K as P,e as g,h as v,w as b,L as V,f as re,A as se,M as ie,N as L,b as u,c as U,p as x,a as p,m as ne,O as ae,P as N,Q as D,S as $,U as fe,V as he,W as X,i as G,X as oe,d as C,C as O,Y as le,Z as de,_ as w,E as ce,$ as _e,a0 as ue,a1 as pe,a2 as ge,a3 as I,x as ve,a4 as K,a5 as ye,a6 as me,a7 as H,a8 as S,a9 as be,aa as Ee,ab as Te,ac as we,k as Se,ad as Re,ae as ke,l as Ae,af as B}from"./2_TffmqH.js";import{b as Ne}from"./rqnVXeyB.js";function De(r){let e=0,t=J(0),i;return()=>{Z()&&(z(t),ee(()=>(e===0&&(i=te(()=>r(()=>P(t)))),e+=1,()=>{A(()=>{e-=1,e===0&&(i?.(),i=void 0,P(t))})})))}}var Oe=ce|_e;function Fe(r,e,t,i){new xe(r,e,t,i)}class xe{parent;is_pending=!1;transform_error;#r;#u=v?g:null;#i;#o;#t;#n=null;#e=null;#s=null;#a=null;#l=0;#h=0;#d=!1;#p=new Set;#g=new Set;#f=null;#b=De(()=>(this.#f=J(this.#l),()=>{this.#f=null}));constructor(e,t,i,f){this.#r=e,this.#i=t,this.#o=s=>{var n=b;n.b=this,n.f|=V,i(s)},this.parent=b.b,this.transform_error=f??this.parent?.transform_error??(s=>s),this.#t=re(()=>{if(v){const s=this.#u;se();const n=s.data===ie;if(s.data.startsWith(L)){const a=JSON.parse(s.data.slice(L.length));this.#T(a)}else n?this.#w():this.#E()}else this.#v()},Oe),v&&(this.#r=g)}#E(){try{this.#n=u(()=>this.#o(this.#r))}catch(e){this.error(e)}}#T(e){const t=this.#i.failed;t&&(this.#s=u(()=>{t(this.#r,()=>e,()=>()=>{})}))}#w(){const e=this.#i.pending;e&&(this.is_pending=!0,this.#e=u(()=>e(this.#r)),A(()=>{var t=this.#a=document.createDocumentFragment(),i=U();t.append(i),this.#n=this.#_(()=>u(()=>this.#o(i))),this.#h===0&&(this.#r.before(t),this.#a=null,x(this.#e,()=>{this.#e=null}),this.#c(p))}))}#v(){try{if(this.is_pending=this.has_pending_snippet(),this.#h=0,this.#l=0,this.#n=u(()=>{this.#o(this.#r)}),this.#h>0){var e=this.#a=document.createDocumentFragment();ne(this.#n,e);const t=this.#i.pending;this.#e=u(()=>t(this.#r))}else this.#c(p)}catch(t){this.error(t)}}#c(e){this.is_pending=!1,e.transfer_effects(this.#p,this.#g)}defer_effect(e){ae(e,this.#p,this.#g)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#_(e){var t=b,i=X,f=G;N(this.#t),D(this.#t),$(this.#t.ctx);try{return fe.ensure(),e()}catch(s){return he(s),null}finally{N(t),D(i),$(f)}}#y(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e,t);return}this.#h+=e,this.#h===0&&(this.#c(t),this.#e&&x(this.#e,()=>{this.#e=null}),this.#a&&(this.#r.before(this.#a),this.#a=null))}update_pending_count(e,t){this.#y(e,t),this.#l+=e,!(!this.#f||this.#d)&&(this.#d=!0,A(()=>{this.#d=!1,this.#f&&oe(this.#f,this.#l)}))}get_effect_pending(){return this.#b(),z(this.#f)}error(e){if(!this.#i.onerror&&!this.#i.failed)throw e;p?.is_fork?(this.#n&&p.skip_effect(this.#n),this.#e&&p.skip_effect(this.#e),this.#s&&p.skip_effect(this.#s),p.oncommit(()=>{this.#m(e)})):this.#m(e)}#m(e){this.#n&&(C(this.#n),this.#n=null),this.#e&&(C(this.#e),this.#e=null),this.#s&&(C(this.#s),this.#s=null),v&&(O(this.#u),le(),O(de()));var t=this.#i.onerror;let i=this.#i.failed;var f=!1,s=!1;const n=()=>{if(f){pe();return}f=!0,s&&ue(),this.#s!==null&&x(this.#s,()=>{this.#s=null}),this.#_(()=>{this.#v()})},c=a=>{try{s=!0,t?.(a,n),s=!1}catch(h){w(h,this.#t&&this.#t.parent)}i&&(this.#s=this.#_(()=>{try{return u(()=>{var h=b;h.b=this,h.f|=V,i(this.#r,()=>a,()=>n)})}catch(h){return w(h,this.#t.parent),null}}))};A(()=>{var a;try{a=this.transform_error(e)}catch(h){w(h,this.#t&&this.#t.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(c,h=>w(h,this.#t&&this.#t.parent)):c(a)})}}const R=Symbol("events"),Ce=new Set,W=new Set;let j=null;function q(r){var e=this,t=e.ownerDocument,i=r.type,f=r.composedPath?.()||[],s=f[0]||r.target;j=r;var n=0,c=j===r&&r[R];if(c){var a=f.indexOf(c);if(a!==-1&&(e===document||e===window)){r[R]=e;return}var h=f.indexOf(e);if(h===-1)return;a<=h&&(n=a)}if(s=f[n]||r.target,s!==e){ge(r,"currentTarget",{configurable:!0,get(){return s||t}});var y=X,E=b;D(null),N(null);try{for(var _,l=[];s!==null&&s!==e;){try{var d=s[R]?.[i];d!=null&&(!s.disabled||r.target===s)&&d.call(s,r)}catch(o){_?l.push(o):_=o}if(r.cancelBubble)break;n++,s=n<f.length?f[n]:null}if(_){for(let o of l)queueMicrotask(()=>{throw o});throw _}}finally{r[R]=e,delete r.currentTarget,D(y),N(E)}}}const Ie=["touchstart","touchmove"];function He(r){return Ie.includes(r)}function Ve(r,e){var t=e==null?"":typeof e=="object"?`${e}`:e;t!==(r[B]??=r.nodeValue)&&(r[B]=t,r.nodeValue=`${t}`)}function Me(r,e){return Q(r,e)}function Le(r,e){I(),e.intro=e.intro??!1;const t=e.target,i=v,f=g;try{for(var s=ve(t);s&&(s.nodeType!==K||s.data!==ye);)s=me(s);if(!s)throw H;S(!0),O(s);const n=Q(r,{...e,anchor:s});return S(!1),n}catch(n){if(n instanceof Error&&n.message.split(`
|
|
2
|
+
`).some(c=>c.startsWith("https://svelte.dev/e/")))throw n;return n!==H&&console.warn("Failed to hydrate: ",n),e.recover===!1&&be(),I(),Ee(t),S(!1),Me(r,e)}finally{S(i),O(f)}}const k=new Map;function Q(r,{target:e,anchor:t,props:i={},events:f,context:s,intro:n=!0,transformError:c}){I();var a=void 0,h=Te(()=>{var y=t??e.appendChild(U());Fe(y,{pending:()=>{}},l=>{Se({});var d=G;if(s&&(d.c=s),f&&(i.$$events=f),v&&Ne(l,null),a=r(l,i)||{},v&&(b.nodes.end=g,g===null||g.nodeType!==K||g.data!==Re))throw ke(),H;Ae()},c);var E=new Set,_=l=>{for(var d=0;d<l.length;d++){var o=l[d];if(!E.has(o)){E.add(o);var T=He(o);for(const F of[e,document]){var m=k.get(F);m===void 0&&(m=new Map,k.set(F,m));var Y=m.get(o);Y===void 0?(F.addEventListener(o,q,{passive:T}),m.set(o,1)):m.set(o,Y+1)}}}};return _(we(Ce)),W.add(_),()=>{for(var l of E)for(const T of[e,document]){var d=k.get(T),o=d.get(l);--o==0?(T.removeEventListener(l,q),d.delete(l),d.size===0&&k.delete(T)):d.set(l,o)}W.delete(_),y!==t&&y.parentNode?.removeChild(y)}});return M.set(a,h),a}let M=new WeakMap;function $e(r,e){const t=M.get(r);return t?(M.delete(r),t(e)):Promise.resolve()}export{Le as h,Me as m,Ve as s,$e as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v,c as d,w as l,x as u,y as T,T as p,z as h,h as i,e as s,R as y,A as E,B as w,C as g,D as N}from"./2_TffmqH.js";const x=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function A(t){return x?.createHTML(t)??t}function M(t){var r=v("template");return r.innerHTML=A(t.replaceAll("<!>","<!---->")),r.content}function n(t,r){var e=l;e.nodes===null&&(e.nodes={start:t,end:r,a:null,t:null})}function b(t,r){var e=(r&p)!==0,f=(r&h)!==0,a,_=!t.startsWith("<!>");return()=>{if(i)return n(s,null),s;a===void 0&&(a=M(_?t:"<!>"+t),e||(a=u(a)));var o=f||T?document.importNode(a,!0):a.cloneNode(!0);if(e){var c=u(o),m=o.lastChild;n(c,m)}else n(o,o);return o}}function C(t=""){if(!i){var r=d(t+"");return n(r,r),r}var e=s;return e.nodeType!==w?(e.before(e=d()),g(e)):N(e),n(e,e),e}function O(){if(i)return n(s,null),s;var t=document.createDocumentFragment(),r=document.createComment(""),e=d();return t.append(r,e),n(r,e),t}function P(t,r){if(i){var e=l;((e.f&y)===0||e.nodes.end===null)&&(e.nodes.end=s),E();return}t!==null&&t.before(r)}const L="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(L);export{P as a,n as b,O as c,b as f,C as t};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const e=({status:n,message:t})=>`<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>`+t+`</title>
|
|
6
|
+
|
|
7
|
+
<style>
|
|
8
|
+
body {
|
|
9
|
+
--bg: white;
|
|
10
|
+
--fg: #222;
|
|
11
|
+
--divider: #ccc;
|
|
12
|
+
background: var(--bg);
|
|
13
|
+
color: var(--fg);
|
|
14
|
+
font-family:
|
|
15
|
+
system-ui,
|
|
16
|
+
-apple-system,
|
|
17
|
+
BlinkMacSystemFont,
|
|
18
|
+
'Segoe UI',
|
|
19
|
+
Roboto,
|
|
20
|
+
Oxygen,
|
|
21
|
+
Ubuntu,
|
|
22
|
+
Cantarell,
|
|
23
|
+
'Open Sans',
|
|
24
|
+
'Helvetica Neue',
|
|
25
|
+
sans-serif;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
height: 100vh;
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.error {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
max-width: 32rem;
|
|
37
|
+
margin: 0 1rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.status {
|
|
41
|
+
font-weight: 200;
|
|
42
|
+
font-size: 3rem;
|
|
43
|
+
line-height: 1;
|
|
44
|
+
position: relative;
|
|
45
|
+
top: -0.05rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.message {
|
|
49
|
+
border-left: 1px solid var(--divider);
|
|
50
|
+
padding: 0 0 0 1rem;
|
|
51
|
+
margin: 0 0 0 1rem;
|
|
52
|
+
min-height: 2.5rem;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.message h1 {
|
|
58
|
+
font-weight: 400;
|
|
59
|
+
font-size: 1em;
|
|
60
|
+
margin: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (prefers-color-scheme: dark) {
|
|
64
|
+
body {
|
|
65
|
+
--bg: #222;
|
|
66
|
+
--fg: #ddd;
|
|
67
|
+
--divider: #666;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
71
|
+
</head>
|
|
72
|
+
<body>
|
|
73
|
+
<div class="error">
|
|
74
|
+
<span class="status">`+n+`</span>
|
|
75
|
+
<div class="message">
|
|
76
|
+
<h1>`+t+`</h1>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</body>
|
|
80
|
+
</html>
|
|
81
|
+
`;export{e as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BYBfjxZ5.js","../chunks/rqnVXeyB.js","../chunks/2_TffmqH.js","../chunks/3DOfIKW0.js","../nodes/1.BtbjYUHR.js","../chunks/CMkIcmi1.js","../chunks/BlANKL2r.js","../chunks/B2EkC-sy.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{ag as R,ah as G,G as h,ai as ie,a2 as oe,aj as ce,h as T,A as V,f as z,E as F,ak as H,Z,C as W,a8 as I,e as J,a5 as ue,i as fe,al as le,H as de,j as K,w as Q,am as _e,an as X,ao as ve,ap as he,aq as me,ar as ge,as as ye,at as be,au as Ee,av as Pe,aw as q,ax as we,ay as Se,k as Re,az as Oe,u as Ae,aA as Te,g as O,q as Ie,l as xe,aB as L,n as Le,o as je,t as ke,aC as j}from"../chunks/2_TffmqH.js";import{h as Ce,m as De,u as Ne,s as Be}from"../chunks/CMkIcmi1.js";import{a as S,f as $,c as k,t as pe}from"../chunks/rqnVXeyB.js";import{o as Me}from"../chunks/B2EkC-sy.js";import{B as ee}from"../chunks/3DOfIKW0.js";const Ye="modulepreload",qe=function(t,e){return new URL(t,e).href},U={},M=function(e,s,i){let c=Promise.resolve();if(s&&s.length>0){let d=function(o){return Promise.all(o.map(v=>Promise.resolve(v).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};const a=document.getElementsByTagName("link"),n=document.querySelector("meta[property=csp-nonce]"),u=n?.nonce||n?.getAttribute("nonce");c=d(s.map(o=>{if(o=qe(o,i),o in U)return;U[o]=!0;const v=o.endsWith(".css"),E=v?'[rel="stylesheet"]':"";if(i)for(let y=a.length-1;y>=0;y--){const f=a[y];if(f.href===o&&(!v||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${E}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":Ye,v||(_.as="script"),_.crossOrigin="",_.href=o,u&&_.setAttribute("nonce",u),document.head.appendChild(_),v)return new Promise((y,f)=>{_.addEventListener("load",y),_.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})}))}function r(a){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=a,window.dispatchEvent(n),!n.defaultPrevented)throw a}return c.then(a=>{for(const n of a||[])n.status==="rejected"&&r(n.reason);return e().catch(r)})},$e={};let A=!1;function Ue(t){var e=A;try{return A=!1,[t(),A]}finally{A=e}}function Ge(t){return class extends Ve{constructor(e){super({component:t,...e})}}}class Ve{#t;#e;constructor(e){var s=new Map,i=(r,a)=>{var n=ce(a,!1,!1);return s.set(r,n),n};const c=new Proxy({...e.props||{},$$events:{}},{get(r,a){return h(s.get(a)??i(a,Reflect.get(r,a)))},has(r,a){return a===G?!0:(h(s.get(a)??i(a,Reflect.get(r,a))),Reflect.has(r,a))},set(r,a,n){return R(s.get(a)??i(a,n),n),Reflect.set(r,a,n)}});this.#e=(e.hydrate?Ce:De)(e.component,{target:e.target,anchor:e.anchor,props:c,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&ie(),this.#t=c.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||oe(this,r,{get(){return this.#e[r]},set(a){this.#e[r]=a},enumerable:!0});this.#e.$set=r=>{Object.assign(c,r)},this.#e.$destroy=()=>{Ne(this.#e)}}$set(e){this.#e.$set(e)}$on(e,s){this.#t[e]=this.#t[e]||[];const i=(...c)=>s.call(this,...c);return this.#t[e].push(i),()=>{this.#t[e]=this.#t[e].filter(c=>c!==i)}}$destroy(){this.#e.$destroy()}}function C(t,e,s=!1){var i;T&&(i=J,V());var c=new ee(t),r=s?F:0;function a(n,u){if(T){var d=H(i);if(n!==parseInt(d.substring(1))){var o=Z();W(o),c.anchor=o,I(!1),c.ensure(n,u),I(!0);return}}c.ensure(n,u)}z(()=>{var n=!1;e((u,d=0)=>{n=!0,a(d,u)}),n||a(-1,null)},r)}function D(t,e,s){var i;T&&(i=J,V());var c=new ee(t);z(()=>{var r=e()??null;if(T){var a=H(i),n=a===ue,u=r!==null;if(n!==u){var d=Z();W(d),c.anchor=d,I(!1),c.ensure(r,r&&(o=>s(o,r))),I(!0);return}}c.ensure(r,r&&(o=>s(o,r)))},F)}function N(t,e){return t===e||t?.[X]===e}function B(t={},e,s,i){var c=fe.r,r=Q;return le(()=>{var a,n;return de(()=>{a=n,n=[],K(()=>{N(s(...n),t)||(e(t,...n),a&&N(s(...a),t)&&e(null,...a))})}),()=>{let u=r;for(;u!==c&&u.parent!==null&&u.parent.f&_e;)u=u.parent;const d=()=>{n&&N(s(...n),t)&&e(null,...n)},o=u.teardown;u.teardown=()=>{d(),o?.()}}}),t}function p(t,e,s,i){var c=!0,r=(s&Ee)!==0,a=(s&Se)!==0,n=i,u=!0,d=void 0,o=()=>a&&c?(d??=q(i),h(d)):(u&&(u=!1,n=a?K(i):i),n);let v;if(r){var E=X in t||G in t;v=ve(t,e)?.set??(E&&e in t?l=>t[e]=l:void 0)}var _,y=!1;r?[_,y]=Ue(()=>t[e]):_=t[e],_===void 0&&i!==void 0&&(_=o(),v&&(he(),v(_)));var f;if(f=()=>{var l=t[e];return l===void 0?o():(u=!0,l)},(s&me)===0)return f;if(v){var P=t.$$legacy;return(function(l,b){return arguments.length>0?((!b||P||y)&&v(b?f():l),l):f()})}var m=!1,g=((s&Pe)!==0?q:we)(()=>(m=!1,f()));r&&h(g);var w=Q;return(function(l,b){if(arguments.length>0){const x=b?h(g):r?ge(l):l;return R(g,x),m=!0,n!==void 0&&(n=x),l}return ye&&m||(w.f&be)!==0?g.v:h(g)})}var ze=$('<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>'),Fe=$("<!> <!>",1);function He(t,e){Re(e,!0);let s=p(e,"components",23,()=>[]),i=p(e,"data_0",3,null),c=p(e,"data_1",3,null);Oe(()=>e.stores.page.set(e.page)),Ae(()=>{e.stores,e.page,e.constructors,s(),e.form,i(),c(),e.stores.page.notify()});let r=L(!1),a=L(!1),n=L(null);Me(()=>{const f=e.stores.page.subscribe(()=>{h(r)&&(R(a,!0),Te().then(()=>{R(n,document.title||"untitled page",!0)}))});return R(r,!0),f});const u=j(()=>e.constructors[1]);var d=Fe(),o=O(d);{var v=f=>{const P=j(()=>e.constructors[0]);var m=k(),g=O(m);D(g,()=>h(P),(w,l)=>{B(l(w,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(b,x)=>{var Y=k(),re=O(Y);D(re,()=>h(u),(ae,ne)=>{B(ne(ae,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),se=>s()[1]=se,()=>s()?.[1])}),S(b,Y)},$$slots:{default:!0}}),b=>s()[0]=b,()=>s()?.[0])}),S(f,m)},E=f=>{const P=j(()=>e.constructors[0]);var m=k(),g=O(m);D(g,()=>h(P),(w,l)=>{B(l(w,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),b=>s()[0]=b,()=>s()?.[0])}),S(f,m)};C(o,f=>{e.constructors[1]?f(v):f(E,-1)})}var _=Ie(o,2);{var y=f=>{var P=ze(),m=Le(P);{var g=w=>{var l=pe();ke(()=>Be(l,h(n))),S(w,l)};C(m,w=>{h(a)&&w(g)})}je(P),S(f,P)};C(_,f=>{h(r)&&f(y)})}S(t,d),xe()}const et=Ge(He),tt=[()=>M(()=>import("../nodes/0.BYBfjxZ5.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>M(()=>import("../nodes/1.BtbjYUHR.js"),__vite__mapDeps([4,1,2,5,6,7]),import.meta.url)],rt=[],at={},te={handleError:(({error:t})=>{console.error(t)}),reroute:(()=>{}),transport:{}},Ze=Object.fromEntries(Object.entries(te.transport).map(([t,e])=>[t,e.decode])),nt=Object.fromEntries(Object.entries(te.transport).map(([t,e])=>[t,e.encode])),st=!1,it=(t,e)=>Ze[t](e),ot=()=>M(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{it as decode,Ze as decoders,at as dictionary,nt as encoders,ot as get_error_template,st as hash,te as hooks,$e as matchers,tt as nodes,et as root,rt as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/BlANKL2r.js";export{o as load_css,r as start};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as s,a as c}from"../chunks/rqnVXeyB.js";import{f as p,E as i,g as m}from"../chunks/2_TffmqH.js";import{B as f}from"../chunks/3DOfIKW0.js";function l(a,r,...n){var o=new f(a);p(()=>{const e=r()??null;o.ensure(e,e&&(t=>e(t,...n)))},i)}function E(a,r){var n=s(),o=m(n);l(o,()=>r.children),c(a,n)}export{E as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i,f as g}from"../chunks/rqnVXeyB.js";import{k as h,g as l,t as v,l as d,n as s,o as a,q as _}from"../chunks/2_TffmqH.js";import{s as o}from"../chunks/CMkIcmi1.js";import{s as x,p}from"../chunks/BlANKL2r.js";const k={get error(){return p.error},get status(){return p.status}};x.updated.check;const m=k;var $=g("<h1> </h1> <p> </p>",1);function w(n,c){h(c,!0);var t=$(),r=l(t),f=s(r,!0);a(r);var e=_(r,2),u=s(e,!0);a(e),v(()=>{o(f,m.status),o(u,m.error?.message)}),i(n,t),d()}export{w as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"1785878631412"}
|
package/build/env.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import process from 'node:process';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
|
|
5
|
+
// since env.js is an entrypoint, `dir` will point to the output directory
|
|
6
|
+
const dir = path.dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
|
|
8
|
+
const expected_unprefixed = new Set(['LISTEN_PID', 'LISTEN_FDS']);
|
|
9
|
+
|
|
10
|
+
const env_prefix = "";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @param {string} name
|
|
14
|
+
* @param {any} [fallback]
|
|
15
|
+
*/
|
|
16
|
+
function env(name, fallback) {
|
|
17
|
+
const prefix = expected_unprefixed.has(name) ? '' : env_prefix;
|
|
18
|
+
const prefixed = prefix + name;
|
|
19
|
+
return prefixed in process.env ? process.env[prefixed] : fallback;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const integer_regexp = /^\d+$/;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Throw a consistently-structured parsing error for environment variables.
|
|
26
|
+
* @param {string} name
|
|
27
|
+
* @param {any} value
|
|
28
|
+
* @param {string} description
|
|
29
|
+
* @returns {never}
|
|
30
|
+
*/
|
|
31
|
+
function parsing_error(name, value, description) {
|
|
32
|
+
throw new Error(
|
|
33
|
+
`Invalid value for environment variable ${name}: ${JSON.stringify(value)} (${description})`
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check the environment for a timeout value (non-negative integer) in seconds.
|
|
39
|
+
* @param {string} name
|
|
40
|
+
* @param {number} [fallback]
|
|
41
|
+
* @returns {number | undefined}
|
|
42
|
+
*/
|
|
43
|
+
function timeout_env(name, fallback) {
|
|
44
|
+
const raw = env(name, fallback);
|
|
45
|
+
if (!raw) {
|
|
46
|
+
return fallback;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (!integer_regexp.test(raw)) {
|
|
50
|
+
parsing_error(name, raw, 'should be a non-negative integer');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const parsed = Number.parseInt(raw, 10);
|
|
54
|
+
|
|
55
|
+
// We don't technically need to check `Number.isNaN` because the value already passed the regexp test.
|
|
56
|
+
// However, just in case there's some new codepath introduced somewhere down the line, it's probably good
|
|
57
|
+
// to stick this in here.
|
|
58
|
+
if (Number.isNaN(parsed)) {
|
|
59
|
+
parsing_error(name, raw, 'should be a non-negative integer');
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (parsed < 0) {
|
|
63
|
+
parsing_error(name, raw, 'should be a non-negative integer');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return parsed;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { dir, env, env_prefix, timeout_env };
|
package/build/handler.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './shims.js';
|
|
2
|
+
import 'node:fs';
|
|
3
|
+
import 'node:path';
|
|
4
|
+
import 'node:process';
|
|
5
|
+
export { h as handler } from './server/chunks/handler-DurXhqww.js';
|
|
6
|
+
import './server/chunks/index.js-BQnOaW3H.js';
|
|
7
|
+
import './server/chunks/manifest.js-CCJDdahY.js';
|
|
8
|
+
import './env.js';
|
|
9
|
+
import 'node:buffer';
|
|
10
|
+
import 'node:crypto';
|
|
11
|
+
import 'node:http';
|
|
12
|
+
import 'node:timers';
|
|
13
|
+
import 'node:querystring';
|
|
14
|
+
import 'node:stream';
|
|
15
|
+
import 'node:url';
|
package/build/index.js
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import http from 'node:http';
|
|
2
|
+
import fs__default from 'node:fs';
|
|
3
|
+
import process from 'node:process';
|
|
4
|
+
import { p as polka, h as handler, f as format_listening_address } from './server/chunks/handler-DurXhqww.js';
|
|
5
|
+
import { env, timeout_env } from './env.js';
|
|
6
|
+
import { rm } from 'node:fs/promises';
|
|
7
|
+
import './shims.js';
|
|
8
|
+
import 'node:buffer';
|
|
9
|
+
import 'node:crypto';
|
|
10
|
+
import 'node:path';
|
|
11
|
+
import 'node:timers';
|
|
12
|
+
import 'node:querystring';
|
|
13
|
+
import 'node:stream';
|
|
14
|
+
import './server/chunks/index.js-BQnOaW3H.js';
|
|
15
|
+
import './server/chunks/manifest.js-CCJDdahY.js';
|
|
16
|
+
import 'node:url';
|
|
17
|
+
|
|
18
|
+
const path = env('SOCKET_PATH', false);
|
|
19
|
+
const host = env('HOST', '0.0.0.0');
|
|
20
|
+
const port = env('PORT', !path && '3000');
|
|
21
|
+
|
|
22
|
+
const shutdown_timeout = parseInt(env('SHUTDOWN_TIMEOUT', '30'));
|
|
23
|
+
const idle_timeout = parseInt(env('IDLE_TIMEOUT', '0'));
|
|
24
|
+
const listen_pid = parseInt(env('LISTEN_PID', '0'));
|
|
25
|
+
const listen_fds = parseInt(env('LISTEN_FDS', '0'));
|
|
26
|
+
// https://www.freedesktop.org/software/systemd/man/latest/sd_listen_fds.html
|
|
27
|
+
const SD_LISTEN_FDS_START = 3;
|
|
28
|
+
|
|
29
|
+
if (listen_pid !== 0 && listen_pid !== process.pid) {
|
|
30
|
+
throw new Error(`received LISTEN_PID ${listen_pid} but current process id is ${process.pid}`);
|
|
31
|
+
}
|
|
32
|
+
if (listen_fds > 1) {
|
|
33
|
+
throw new Error(
|
|
34
|
+
`only one socket is allowed for socket activation, but LISTEN_FDS was set to ${listen_fds}`
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const socket_activation = listen_pid === process.pid && listen_fds === 1;
|
|
39
|
+
|
|
40
|
+
let requests = 0;
|
|
41
|
+
/** @type {NodeJS.Timeout | void} */
|
|
42
|
+
let shutdown_timeout_id;
|
|
43
|
+
/** @type {NodeJS.Timeout | void} */
|
|
44
|
+
let idle_timeout_id;
|
|
45
|
+
|
|
46
|
+
// Initialize the HTTP server here so that we can set properties before starting to listen.
|
|
47
|
+
// Otherwise, polka delays creating the server until listen() is called. Settings these
|
|
48
|
+
// properties after the server has started listening could lead to race conditions.
|
|
49
|
+
const httpServer = http.createServer();
|
|
50
|
+
|
|
51
|
+
const keep_alive_timeout = timeout_env('KEEP_ALIVE_TIMEOUT');
|
|
52
|
+
if (keep_alive_timeout !== undefined) {
|
|
53
|
+
// Convert the keep-alive timeout from seconds to milliseconds (the unit Node.js expects).
|
|
54
|
+
httpServer.keepAliveTimeout = keep_alive_timeout * 1000;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const headers_timeout = timeout_env('HEADERS_TIMEOUT');
|
|
58
|
+
if (headers_timeout !== undefined) {
|
|
59
|
+
// Convert the headers timeout from seconds to milliseconds (the unit Node.js expects).
|
|
60
|
+
httpServer.headersTimeout = headers_timeout * 1000;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const server = polka({ server: httpServer }).use(handler);
|
|
64
|
+
|
|
65
|
+
if (socket_activation) {
|
|
66
|
+
server.listen({ fd: SD_LISTEN_FDS_START }, () => {
|
|
67
|
+
console.log(`Listening on file descriptor ${SD_LISTEN_FDS_START}`);
|
|
68
|
+
});
|
|
69
|
+
} else {
|
|
70
|
+
if (path) {
|
|
71
|
+
try {
|
|
72
|
+
if (fs__default.statSync(path).size === 0) {
|
|
73
|
+
await rm(path);
|
|
74
|
+
}
|
|
75
|
+
} catch {
|
|
76
|
+
// ignore
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
server.listen({ path, host, port }, () => {
|
|
81
|
+
console.log(`Listening on ${format_listening_address(path, host, port, httpServer.address())}`);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** @param {'SIGINT' | 'SIGTERM' | 'IDLE'} reason */
|
|
86
|
+
function graceful_shutdown(reason) {
|
|
87
|
+
if (shutdown_timeout_id) return;
|
|
88
|
+
|
|
89
|
+
// If a connection was opened with a keep-alive header close() will wait for the connection to
|
|
90
|
+
// time out rather than close it even if it is not handling any requests, so call this first
|
|
91
|
+
httpServer.closeIdleConnections();
|
|
92
|
+
|
|
93
|
+
httpServer.close((error) => {
|
|
94
|
+
// occurs if the server is already closed
|
|
95
|
+
if (error) return;
|
|
96
|
+
|
|
97
|
+
if (shutdown_timeout_id) {
|
|
98
|
+
clearTimeout(shutdown_timeout_id);
|
|
99
|
+
}
|
|
100
|
+
if (idle_timeout_id) {
|
|
101
|
+
clearTimeout(idle_timeout_id);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// @ts-expect-error custom events cannot be typed
|
|
105
|
+
process.emit('sveltekit:shutdown', reason);
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
shutdown_timeout_id = setTimeout(() => httpServer.closeAllConnections(), shutdown_timeout * 1000);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
httpServer.on(
|
|
112
|
+
'request',
|
|
113
|
+
/** @param {import('node:http').IncomingMessage} req */
|
|
114
|
+
(req) => {
|
|
115
|
+
requests++;
|
|
116
|
+
|
|
117
|
+
if (socket_activation && idle_timeout_id) {
|
|
118
|
+
idle_timeout_id = clearTimeout(idle_timeout_id);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
req.on('close', () => {
|
|
122
|
+
requests--;
|
|
123
|
+
|
|
124
|
+
if (shutdown_timeout_id) {
|
|
125
|
+
// close connections as soon as they become idle, so they don't accept new requests
|
|
126
|
+
httpServer.closeIdleConnections();
|
|
127
|
+
}
|
|
128
|
+
if (requests === 0 && socket_activation && idle_timeout) {
|
|
129
|
+
idle_timeout_id = setTimeout(() => graceful_shutdown('IDLE'), idle_timeout * 1000);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
process.on('SIGTERM', graceful_shutdown);
|
|
136
|
+
process.on('SIGINT', graceful_shutdown);
|
|
137
|
+
|
|
138
|
+
export { host, path, port, server };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const index = 0;
|
|
2
|
+
const imports = ["_app/immutable/nodes/0.BYBfjxZ5.js","_app/immutable/chunks/rqnVXeyB.js","_app/immutable/chunks/2_TffmqH.js","_app/immutable/chunks/3DOfIKW0.js"];
|
|
3
|
+
const stylesheets = [];
|
|
4
|
+
const fonts = [];
|
|
5
|
+
|
|
6
|
+
export { fonts, imports, index, stylesheets };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const index = 1;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./error.svelte-B9R6O_Hn.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.BtbjYUHR.js","_app/immutable/chunks/rqnVXeyB.js","_app/immutable/chunks/2_TffmqH.js","_app/immutable/chunks/CMkIcmi1.js","_app/immutable/chunks/BlANKL2r.js","_app/immutable/chunks/B2EkC-sy.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { j as json } from './index.js-BQnOaW3H.js';
|
|
2
|
+
import { b as getAgentGatewayDiagnostics } from './agent-gateway-runtime-C7Kvvy0H.js';
|
|
3
|
+
import { g as getHostConfig, a as getHostRegistrationDiagnostics, b as getHostPluginRegistryDiagnostics, c as getHostAdmissionDiagnostics, r as resolveCommunityPackageModule } from './registry-DO8ob5o1.js';
|
|
4
|
+
import { r as readRuntimeConfigAdmin } from './aops-runtime-config-CHpDUCdE.js';
|
|
5
|
+
import '@aopslabs/host-core';
|
|
6
|
+
import '@aopslabs/manifest';
|
|
7
|
+
import 'node:path';
|
|
8
|
+
import 'node:child_process';
|
|
9
|
+
import 'node:module';
|
|
10
|
+
import 'node:url';
|
|
11
|
+
import 'node:util';
|
|
12
|
+
import './project-alias-BdnRxWft.js';
|
|
13
|
+
import 'node:crypto';
|
|
14
|
+
import './canonical-text-order-DbXJJnFD.js';
|
|
15
|
+
import './admission-snapshot-C2wGfTWE.js';
|
|
16
|
+
import 'ajv';
|
|
17
|
+
import 'zod';
|
|
18
|
+
import 'node:fs';
|
|
19
|
+
import 'node:worker_threads';
|
|
20
|
+
import 'pg';
|
|
21
|
+
|
|
22
|
+
const EXPECTED_PLUGINS = {
|
|
23
|
+
sys: { module: "@aopslabs/domain-host-plugin-sys", factory: "createSysPlugin" },
|
|
24
|
+
agentspace: { module: resolveCommunityPackageModule("./runtime/agentspace-host-adapter.mjs"), factory: "createCommunityAgentspacePlugin" },
|
|
25
|
+
docman: { module: resolveCommunityPackageModule("./runtime/docman-host-adapter.mjs"), factory: "createDocmanPlugin" },
|
|
26
|
+
projectman: { module: resolveCommunityPackageModule("./runtime/projectman-host-adapter.mjs"), factory: "createProjectmanPlugin" },
|
|
27
|
+
chatv3: { module: "@aopslabs/domain-host-plugin-chatv3", factory: "createChatv3Plugin" }
|
|
28
|
+
};
|
|
29
|
+
const EXPECTED_PROVIDERS = {
|
|
30
|
+
sys: { module: "@aopslabs/domain-kit-sys", exportName: "buildSysDomainCapabilityManifest" },
|
|
31
|
+
agentspace: { module: resolveCommunityPackageModule("./runtime/agentspace-tooling.mjs"), exportName: "buildCommunityAgentspaceDomainCapabilityManifest" },
|
|
32
|
+
docman: { module: resolveCommunityPackageModule("./runtime/docman-tooling.mjs"), exportName: "buildAopsDocmanDomainCapabilityManifest" },
|
|
33
|
+
projectman: { module: "@aopslabs/domain-kit-projectman", exportName: "buildProjectmanDomainCapabilityManifest" },
|
|
34
|
+
chatv3: { module: "@aopslabs/domain-kit-chatv3", exportName: "buildChatv3DomainCapabilityManifest" }
|
|
35
|
+
};
|
|
36
|
+
function assertExactRows(rows, expected, label) {
|
|
37
|
+
const expectedDomains = Object.keys(expected).sort();
|
|
38
|
+
const actualDomains = rows.map((row) => String(row.domain ?? "")).sort();
|
|
39
|
+
if (rows.length !== expectedDomains.length || new Set(actualDomains).size !== rows.length || actualDomains.some((value, index) => value !== expectedDomains[index])) {
|
|
40
|
+
throw new Error(`community_host_admin_${label}_domain_mismatch`);
|
|
41
|
+
}
|
|
42
|
+
for (const row of rows) {
|
|
43
|
+
const contract = expected[String(row.domain)];
|
|
44
|
+
if (!contract || row.enabled !== true || row.module !== contract.module || contract.factory !== void 0 && row.factory !== contract.factory || contract.exportName !== void 0 && row.exportName !== contract.exportName) {
|
|
45
|
+
throw new Error(`community_host_admin_${label}_identity_mismatch:${String(row.domain)}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function areHostAdminPluginDiagnosticsEnabled() {
|
|
50
|
+
return getHostConfig().diagnostics?.exposePluginBootstrap !== false;
|
|
51
|
+
}
|
|
52
|
+
async function readHostAdminPluginsSnapshot() {
|
|
53
|
+
const config = getHostConfig();
|
|
54
|
+
const plugins = config.plugins ?? [];
|
|
55
|
+
const providers = config.agentGateway?.catalog?.manifestProviders ?? [];
|
|
56
|
+
const sources = config.agentGateway?.sources ?? [];
|
|
57
|
+
assertExactRows(plugins, EXPECTED_PLUGINS, "plugin");
|
|
58
|
+
assertExactRows(providers, EXPECTED_PROVIDERS, "provider");
|
|
59
|
+
if (sources.length !== 0) throw new Error("community_host_admin_remote_source_forbidden");
|
|
60
|
+
return {
|
|
61
|
+
admission: getHostAdmissionDiagnostics(),
|
|
62
|
+
diagnostics: getHostPluginRegistryDiagnostics(),
|
|
63
|
+
registrations: getHostRegistrationDiagnostics(),
|
|
64
|
+
agentGateway: getAgentGatewayDiagnostics(),
|
|
65
|
+
storage: { postgres: readRuntimeConfigAdmin() },
|
|
66
|
+
sources: []
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
const GET = async ({ url }) => {
|
|
70
|
+
if (url.search) {
|
|
71
|
+
return json({ ok: false, error: "community_host_admin_query_forbidden" }, { status: 400 });
|
|
72
|
+
}
|
|
73
|
+
if (!areHostAdminPluginDiagnosticsEnabled()) {
|
|
74
|
+
return json({ ok: false, error: "diagnostics_disabled" }, { status: 403 });
|
|
75
|
+
}
|
|
76
|
+
try {
|
|
77
|
+
return json({ ok: true, ...await readHostAdminPluginsSnapshot() }, { status: 200 });
|
|
78
|
+
} catch {
|
|
79
|
+
return json({ ok: false, error: "bootstrap_diagnostics_failed" }, { status: 500 });
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export { GET };
|