@demiurgejs/core 0.2.0-beta.4 → 0.2.0-beta.6
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/README.md +37 -0
- package/bin/demiurge.mjs +23 -1
- package/dist/adapter/index.d.ts +1 -1
- package/dist/adapter/index.d.ts.map +1 -1
- package/dist/browser/file-router.d.ts +1 -1
- package/dist/chunks/{document-shell-CpJnFtSC.js → document-shell-C0aPrkhd.js} +2 -2
- package/dist/chunks/{document-shell-CpJnFtSC.js.map → document-shell-C0aPrkhd.js.map} +1 -1
- package/dist/chunks/image-CRerJ5BY.js +145 -0
- package/dist/chunks/image-CRerJ5BY.js.map +1 -0
- package/dist/chunks/{image-codec-BmzWnH6W.js → image-codec-CQ8Cwxwb.js} +2 -2
- package/dist/chunks/{image-codec-BmzWnH6W.js.map → image-codec-CQ8Cwxwb.js.map} +1 -1
- package/dist/chunks/{images-BQ80950B.js → images-QgdmLyQ3.js} +11 -11
- package/dist/chunks/{images-BQ80950B.js.map → images-QgdmLyQ3.js.map} +1 -1
- package/dist/chunks/{index-BVk9zWbe.js → index-LYve1rQp.js} +287 -351
- package/dist/chunks/index-LYve1rQp.js.map +1 -0
- package/dist/chunks/links-iU22QkCE.js +68 -0
- package/dist/chunks/links-iU22QkCE.js.map +1 -0
- package/dist/chunks/plugin-bkP6WwrS.js +2311 -0
- package/dist/chunks/plugin-bkP6WwrS.js.map +1 -0
- package/dist/chunks/runtime-BH519j2t.js +294 -0
- package/dist/chunks/runtime-BH519j2t.js.map +1 -0
- package/dist/chunks/streaming-BlKlC3nw.js +427 -0
- package/dist/chunks/streaming-BlKlC3nw.js.map +1 -0
- package/dist/chunks/{testing-DueXbMo4.js → testing-BEW1nchS.js} +2161 -1562
- package/dist/chunks/testing-BEW1nchS.js.map +1 -0
- package/dist/chunks/{vite-DO70kZA6.js → vite-BADZA8Fl.js} +90 -87
- package/dist/chunks/vite-BADZA8Fl.js.map +1 -0
- package/dist/cli.d.ts +10 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +277 -87
- package/dist/cli.js.map +1 -1
- package/dist/config/index.js +2 -2
- package/dist/config/types.d.ts +14 -2
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/validate.d.ts.map +1 -1
- package/dist/data/cache.d.ts +5 -0
- package/dist/data/cache.d.ts.map +1 -1
- package/dist/data/index.d.ts +1 -1
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/testing.d.ts.map +1 -1
- package/dist/data/testing.js +101 -67
- package/dist/data/testing.js.map +1 -1
- package/dist/data/tiered.d.ts.map +1 -1
- package/dist/edge/index.js +27 -26
- package/dist/edge/index.js.map +1 -1
- package/dist/edge/stores.d.ts.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +158 -135
- package/dist/index.js.map +1 -1
- package/dist/inspect/command.d.ts +28 -0
- package/dist/inspect/command.d.ts.map +1 -0
- package/dist/inspect/index.d.ts +9 -0
- package/dist/inspect/index.d.ts.map +1 -0
- package/dist/inspect/redact.d.ts +35 -0
- package/dist/inspect/redact.d.ts.map +1 -0
- package/dist/inspect/report.d.ts +24 -0
- package/dist/inspect/report.d.ts.map +1 -0
- package/dist/inspect/types.d.ts +102 -0
- package/dist/inspect/types.d.ts.map +1 -0
- package/dist/internal/testing.js +12 -12
- package/dist/kv/index.js +7 -6
- package/dist/kv/index.js.map +1 -1
- package/dist/kv/store.d.ts.map +1 -1
- package/dist/node/http.d.ts +7 -0
- package/dist/node/http.d.ts.map +1 -1
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +31 -28
- package/dist/node/index.js.map +1 -1
- package/dist/node/serve.d.ts +4 -0
- package/dist/node/serve.d.ts.map +1 -1
- package/dist/redis/index.js +29 -28
- package/dist/redis/index.js.map +1 -1
- package/dist/redis/store.d.ts.map +1 -1
- package/dist/route/index.d.ts +1 -0
- package/dist/route/index.d.ts.map +1 -1
- package/dist/route/mutation.d.ts.map +1 -1
- package/dist/route/serialization.d.ts +24 -0
- package/dist/route/serialization.d.ts.map +1 -0
- package/dist/route/webhook.d.ts +6 -1
- package/dist/route/webhook.d.ts.map +1 -1
- package/dist/router/manifest.d.ts.map +1 -1
- package/dist/security/audit.d.ts +2 -1
- package/dist/security/audit.d.ts.map +1 -1
- package/dist/security/authorization.d.ts +36 -0
- package/dist/security/authorization.d.ts.map +1 -0
- package/dist/security/csrf.d.ts.map +1 -1
- package/dist/security/env-startup.d.ts +0 -2
- package/dist/security/env-startup.d.ts.map +1 -1
- package/dist/security/env.d.ts +27 -8
- package/dist/security/env.d.ts.map +1 -1
- package/dist/security/exceptions.d.ts +29 -0
- package/dist/security/exceptions.d.ts.map +1 -0
- package/dist/security/finding-codes.d.ts +56 -0
- package/dist/security/finding-codes.d.ts.map +1 -0
- package/dist/security/index.d.ts +5 -2
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/policy.d.ts +2 -5
- package/dist/security/policy.d.ts.map +1 -1
- package/dist/security/report.d.ts +2 -1
- package/dist/security/report.d.ts.map +1 -1
- package/dist/security/request.d.ts +1 -0
- package/dist/security/request.d.ts.map +1 -1
- package/dist/security/types.d.ts +138 -5
- package/dist/security/types.d.ts.map +1 -1
- package/dist/security/upload.d.ts +3 -3
- package/dist/security/upload.d.ts.map +1 -1
- package/dist/security/verification.d.ts.map +1 -1
- package/dist/server/request-handler.d.ts +3 -2
- package/dist/server/request-handler.d.ts.map +1 -1
- package/dist/server-only/browser.d.ts +2 -0
- package/dist/server-only/browser.d.ts.map +1 -0
- package/dist/server-only/browser.js +4 -0
- package/dist/server-only/browser.js.map +1 -0
- package/dist/server-only/index.d.ts +2 -0
- package/dist/server-only/index.d.ts.map +1 -0
- package/dist/server-only/index.js +2 -0
- package/dist/server-only/index.js.map +1 -0
- package/dist/static/index.d.ts.map +1 -1
- package/dist/static/index.js +255 -255
- package/dist/static/index.js.map +1 -1
- package/dist/static/testing.d.ts +26 -0
- package/dist/static/testing.d.ts.map +1 -0
- package/dist/static/testing.js +76 -0
- package/dist/static/testing.js.map +1 -0
- package/dist/testing/index.d.ts +47 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +99 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/vercel/build.d.ts +31 -0
- package/dist/vercel/build.d.ts.map +1 -0
- package/dist/vercel/config.d.ts +15 -0
- package/dist/vercel/config.d.ts.map +1 -0
- package/dist/vercel/index.d.ts +7 -0
- package/dist/vercel/index.d.ts.map +1 -0
- package/dist/vercel/index.js +11 -0
- package/dist/vercel/index.js.map +1 -0
- package/dist/vercel/runtime.d.ts +29 -0
- package/dist/vercel/runtime.d.ts.map +1 -0
- package/dist/vite/index.d.ts +9 -4
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +28 -21
- package/dist/vite/plugin.d.ts +18 -2
- package/dist/vite/plugin.d.ts.map +1 -1
- package/dist/vite/policy-verification.d.ts +33 -2
- package/dist/vite/policy-verification.d.ts.map +1 -1
- package/dist/vite/route-audit.d.ts +14 -2
- package/dist/vite/route-audit.d.ts.map +1 -1
- package/dist/vite/server-only-boundary.d.ts +8 -0
- package/dist/vite/server-only-boundary.d.ts.map +1 -0
- package/package.json +18 -1
- package/dist/chunks/env-startup-DOBYWlZD.js +0 -257
- package/dist/chunks/env-startup-DOBYWlZD.js.map +0 -1
- package/dist/chunks/index-BVk9zWbe.js.map +0 -1
- package/dist/chunks/plugin-BQgMiHxa.js +0 -1827
- package/dist/chunks/plugin-BQgMiHxa.js.map +0 -1
- package/dist/chunks/streaming-BEbPN7Uk.js +0 -469
- package/dist/chunks/streaming-BEbPN7Uk.js.map +0 -1
- package/dist/chunks/testing-DueXbMo4.js.map +0 -1
- package/dist/chunks/vite-DO70kZA6.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as Et } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as We, useCallback as At, createElement as R, useContext as Je, useRef as k, useMemo as ae, useActionState as nr, useId as or, useLayoutEffect as ne, useState as U, useEffect as Y, Fragment as Te, Component as ir } from "react";
|
|
3
|
-
import { g as ar, h as at, i as sr, H as cr, j as st, k as ur, l as lr, m as Me } from "./chunks/index-
|
|
4
|
-
import { F as oi, n as ii, o as ai,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { g as ar, h as at, i as sr, H as cr, j as st, k as ur, l as lr, m as Me } from "./chunks/index-LYve1rQp.js";
|
|
4
|
+
import { F as oi, n as ii, o as ai, p as si, q as ci, d as ui, t as li, u as di, v as fi, a as hi, w as pi } from "./chunks/index-LYve1rQp.js";
|
|
5
|
+
import { O as ct, J as dr, P as Ge, i as ee, Q as fr, R as hr, s as Ye, S as Ze, T as Xe, U as pr, V as xt, W as mr, l as Qe, L as kt, X as Be, Y as yr, r as gr, z as Rt, Z as wr, _ as ut, $ as vr, a0 as br, a1 as Sr, a2 as Er, a3 as Ar, a4 as xr, a5 as kr, a6 as Rr } from "./chunks/testing-BEW1nchS.js";
|
|
6
|
+
import { a7 as yi, D as gi, a8 as wi, a9 as vi, aa as bi, ab as Si, ac as Ei, ad as Ai, ae as xi, af as ki, ag as Ri, ah as Ti, ai as Mi, aj as Ci, ak as $i, al as Ni, am as Li, an as Ii, H as Di, ao as Pi, e as Oi, c as _i, G as Fi, n as Ui, k as Bi, ap as Hi, aq as zi, ar as ji, f as Vi, as as qi, at as Ki, au as Wi, av as Ji, aw as Gi, ax as Yi, ay as Zi, az as Xi, aA as Qi, aB as ea, aC as ta, q as ra, aD as na, aE as oa, h as ia, aF as aa, aG as sa, x as ca, aH as ua, aI as la, aJ as da, aK as fa, j as ha, aL as pa, aM as ma, aN as ya, m as ga, aO as wa, aP as va, aQ as ba, aR as Sa, aS as Ea, aT as Aa, aU as xa, aV as ka, aW as Ra, p as Ta, aX as Ma, u as Ca, aY as $a, aZ as Na, a_ as La, w as Ia, a$ as Da, I as Pa, K as Oa, b0 as _a, b1 as Fa, b2 as Ua, b3 as Ba, b4 as Ha, b5 as za, b6 as ja, b7 as Va, N as qa, v as Ka, b8 as Wa, o as Ja, b as Ga } from "./chunks/testing-BEW1nchS.js";
|
|
7
7
|
import { I as Tr } from "./chunks/static-files-ehaD1kE7.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { c as
|
|
8
|
+
import { D as Za, c as Xa, i as Qa } from "./chunks/static-files-ehaD1kE7.js";
|
|
9
|
+
import { d as ts, m as rs, a as ns, p as os, r as is } from "./chunks/links-iU22QkCE.js";
|
|
10
|
+
import { k as Mr } from "./chunks/images-QgdmLyQ3.js";
|
|
11
|
+
import { d as ss, l as cs, m as us, n as ls, f as ds, o as fs, q as hs, b as ps, s as ms, t as ys, c as gs, i as ws, p as vs, r as bs } from "./chunks/images-QgdmLyQ3.js";
|
|
12
|
+
import { c as Es, s as As } from "./chunks/session-store-ChModVcq.js";
|
|
13
13
|
import "react-dom/server";
|
|
14
14
|
function xo(e) {
|
|
15
15
|
return {
|
|
@@ -79,9 +79,9 @@ function $r(e) {
|
|
|
79
79
|
return Dr(t, r), [
|
|
80
80
|
`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${r}" viewBox="0 0 ${t} ${r}" role="img" aria-label="${j(i)}">`,
|
|
81
81
|
` <rect width="100%" height="100%" fill="${j(n)}" />`,
|
|
82
|
-
a ? ` <text x="72" y="96" fill="${j(o)}" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="32" font-weight="700">${
|
|
83
|
-
` <text x="72" y="${s ? 300 : 340}" fill="${j(o)}" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="76" font-weight="800">${
|
|
84
|
-
s ? ` <text x="72" y="392" fill="${j(o)}" fill-opacity="0.78" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="38" font-weight="500">${
|
|
82
|
+
a ? ` <text x="72" y="96" fill="${j(o)}" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="32" font-weight="700">${X(a)}</text>` : null,
|
|
83
|
+
` <text x="72" y="${s ? 300 : 340}" fill="${j(o)}" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="76" font-weight="800">${X(i)}</text>`,
|
|
84
|
+
s ? ` <text x="72" y="392" fill="${j(o)}" fill-opacity="0.78" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="38" font-weight="500">${X(s)}</text>` : null,
|
|
85
85
|
"</svg>"
|
|
86
86
|
].filter((u) => !!u).join(`
|
|
87
87
|
`);
|
|
@@ -97,8 +97,8 @@ function Co(e) {
|
|
|
97
97
|
function Nr(e) {
|
|
98
98
|
return [
|
|
99
99
|
" <url>",
|
|
100
|
-
` <loc>${
|
|
101
|
-
e.lastModified ? ` <lastmod>${
|
|
100
|
+
` <loc>${X(e.url)}</loc>`,
|
|
101
|
+
e.lastModified ? ` <lastmod>${X(Lr(e.lastModified))}</lastmod>` : null,
|
|
102
102
|
e.changeFrequency ? ` <changefreq>${e.changeFrequency}</changefreq>` : null,
|
|
103
103
|
e.priority !== void 0 ? ` <priority>${Ir(e.priority)}</priority>` : null,
|
|
104
104
|
...(e.alternates ?? []).map(
|
|
@@ -119,11 +119,11 @@ function Ir(e) {
|
|
|
119
119
|
function de(e) {
|
|
120
120
|
return e === void 0 ? [] : Array.isArray(e) ? e : [e];
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function X(e) {
|
|
123
123
|
return e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
124
124
|
}
|
|
125
125
|
function j(e) {
|
|
126
|
-
return
|
|
126
|
+
return X(e).replaceAll('"', """).replaceAll("'", "'");
|
|
127
127
|
}
|
|
128
128
|
function Ce(e, t) {
|
|
129
129
|
return e.length > t ? `${e.slice(0, t - 3)}...` : e;
|
|
@@ -232,8 +232,16 @@ const Do = {
|
|
|
232
232
|
status: 401
|
|
233
233
|
});
|
|
234
234
|
},
|
|
235
|
+
// ADR 0018: a framework helper that declares an exception names itself
|
|
236
|
+
// as the source, so the audit separates it from an application
|
|
237
|
+
// declaration.
|
|
235
238
|
security: {
|
|
236
|
-
csrf:
|
|
239
|
+
csrf: {
|
|
240
|
+
origin: "framework",
|
|
241
|
+
reason: "A webhook sender holds no browser session, so an HMAC signature replaces the CSRF check.",
|
|
242
|
+
source: "webhook.hmac()",
|
|
243
|
+
value: !1
|
|
244
|
+
}
|
|
237
245
|
}
|
|
238
246
|
};
|
|
239
247
|
}
|
|
@@ -391,7 +399,7 @@ function Mt(e, t) {
|
|
|
391
399
|
}, A = (h) => (a = Le(h), u = !1, d = !0, Le(h));
|
|
392
400
|
return {
|
|
393
401
|
async commit() {
|
|
394
|
-
return u ? [
|
|
402
|
+
return u ? [Xr(e.cookie)] : !a || !d ? [] : [Se({
|
|
395
403
|
...e.cookie,
|
|
396
404
|
expires: new Date(a.expiresAt),
|
|
397
405
|
value: await t.encode(a)
|
|
@@ -460,7 +468,7 @@ function Ct(e) {
|
|
|
460
468
|
idleExpirationMs: n,
|
|
461
469
|
keys: t,
|
|
462
470
|
now: e.now ?? Date.now,
|
|
463
|
-
randomBytes: e.randomBytes ??
|
|
471
|
+
randomBytes: e.randomBytes ?? Qr,
|
|
464
472
|
renewal: e.renewal ?? !0
|
|
465
473
|
};
|
|
466
474
|
}
|
|
@@ -517,14 +525,14 @@ function Jr(e) {
|
|
|
517
525
|
"HMAC",
|
|
518
526
|
a,
|
|
519
527
|
I(s),
|
|
520
|
-
I(
|
|
528
|
+
I(Q(`s1.${o.id}.${r[2]}`))
|
|
521
529
|
))
|
|
522
530
|
return;
|
|
523
531
|
const d = Nt(i);
|
|
524
532
|
return d ? { currentKey: n === 0, record: d } : void 0;
|
|
525
533
|
},
|
|
526
534
|
async encode(t) {
|
|
527
|
-
const r = e[0], n = se(
|
|
535
|
+
const r = e[0], n = se(Q(JSON.stringify(t))), o = `s1.${r.id}.${n}`, i = await crypto.subtle.importKey(
|
|
528
536
|
"raw",
|
|
529
537
|
I(r.value),
|
|
530
538
|
{ hash: "SHA-256", name: "HMAC" },
|
|
@@ -533,7 +541,7 @@ function Jr(e) {
|
|
|
533
541
|
), s = await crypto.subtle.sign(
|
|
534
542
|
"HMAC",
|
|
535
543
|
i,
|
|
536
|
-
I(
|
|
544
|
+
I(Q(o))
|
|
537
545
|
);
|
|
538
546
|
return `${o}.${se(new Uint8Array(s))}`;
|
|
539
547
|
}
|
|
@@ -550,7 +558,7 @@ function Gr(e, t) {
|
|
|
550
558
|
try {
|
|
551
559
|
const u = await ht(i), d = await crypto.subtle.decrypt(
|
|
552
560
|
{
|
|
553
|
-
additionalData: I(
|
|
561
|
+
additionalData: I(Q(`e1.${i.id}`)),
|
|
554
562
|
iv: I(s),
|
|
555
563
|
name: "AES-GCM"
|
|
556
564
|
},
|
|
@@ -570,12 +578,12 @@ function Gr(e, t) {
|
|
|
570
578
|
);
|
|
571
579
|
const i = await ht(n), s = await crypto.subtle.encrypt(
|
|
572
580
|
{
|
|
573
|
-
additionalData: I(
|
|
581
|
+
additionalData: I(Q(`e1.${n.id}`)),
|
|
574
582
|
iv: I(o),
|
|
575
583
|
name: "AES-GCM"
|
|
576
584
|
},
|
|
577
585
|
i,
|
|
578
|
-
I(
|
|
586
|
+
I(Q(JSON.stringify(r)))
|
|
579
587
|
);
|
|
580
588
|
return `e1.${n.id}.${se(o)}.${se(new Uint8Array(s))}`;
|
|
581
589
|
}
|
|
@@ -610,7 +618,7 @@ function ve(e) {
|
|
|
610
618
|
function Zr(e, t) {
|
|
611
619
|
return e.expiresAt <= t || e.idleExpiresAt !== void 0 && e.idleExpiresAt <= t;
|
|
612
620
|
}
|
|
613
|
-
function
|
|
621
|
+
function Xr(e) {
|
|
614
622
|
return Se({
|
|
615
623
|
...e,
|
|
616
624
|
expires: /* @__PURE__ */ new Date(0),
|
|
@@ -626,7 +634,7 @@ function pt(e) {
|
|
|
626
634
|
);
|
|
627
635
|
return se(t);
|
|
628
636
|
}
|
|
629
|
-
function
|
|
637
|
+
function Qr(e) {
|
|
630
638
|
return crypto.getRandomValues(new Uint8Array(e));
|
|
631
639
|
}
|
|
632
640
|
function Ne(e) {
|
|
@@ -639,7 +647,7 @@ function Ne(e) {
|
|
|
639
647
|
function Le(e) {
|
|
640
648
|
return structuredClone(e);
|
|
641
649
|
}
|
|
642
|
-
function
|
|
650
|
+
function Q(e) {
|
|
643
651
|
return new TextEncoder().encode(e);
|
|
644
652
|
}
|
|
645
653
|
function I(e) {
|
|
@@ -1133,7 +1141,7 @@ function An(e) {
|
|
|
1133
1141
|
promise: void 0
|
|
1134
1142
|
};
|
|
1135
1143
|
ze.add(o);
|
|
1136
|
-
const s =
|
|
1144
|
+
const s = Xe({
|
|
1137
1145
|
to: e.route,
|
|
1138
1146
|
...e.path === void 0 ? {} : { path: e.path }
|
|
1139
1147
|
}), a = xn({
|
|
@@ -1161,7 +1169,7 @@ function An(e) {
|
|
|
1161
1169
|
};
|
|
1162
1170
|
}
|
|
1163
1171
|
function jo(e, t) {
|
|
1164
|
-
const r =
|
|
1172
|
+
const r = Xe({
|
|
1165
1173
|
to: e.route,
|
|
1166
1174
|
...e.path === void 0 ? {} : { path: e.path }
|
|
1167
1175
|
}), n = ae(
|
|
@@ -1261,7 +1269,7 @@ function Mn(e) {
|
|
|
1261
1269
|
return function() {
|
|
1262
1270
|
const [o, i] = U(() => F()), [s, a] = U(e.locale), u = Be(o.pathname, e.locales), d = k(o), [v, A] = U(
|
|
1263
1271
|
() => e.initialMatch ?? { status: "loading" }
|
|
1264
|
-
), h = k(!!e.initialMatch), p = k(!0), E = k(0), g = k(void 0), b = k("navigation"), m = k(/* @__PURE__ */ new Map()), T = k(/* @__PURE__ */ new Map()), [H, w] = U(0), [$, C] = U(0), V = k(/* @__PURE__ */ new Set()), [
|
|
1272
|
+
), h = k(!!e.initialMatch), p = k(!0), E = k(0), g = k(void 0), b = k("navigation"), m = k(/* @__PURE__ */ new Map()), T = k(/* @__PURE__ */ new Map()), [H, w] = U(0), [$, C] = U(0), V = k(/* @__PURE__ */ new Set()), [Qt, rt] = U(0), O = k("push"), [ue, Ae] = U(null), [q, xe] = U(null), nt = k(null);
|
|
1265
1273
|
nt.current = ue;
|
|
1266
1274
|
const K = k(void 0), ke = k(void 0), P = k(void 0), W = k(!1), ot = k(/* @__PURE__ */ new Map()), J = k([]), er = k(0);
|
|
1267
1275
|
function G() {
|
|
@@ -1573,7 +1581,7 @@ function Mn(e) {
|
|
|
1573
1581
|
NotFound: e.notFound,
|
|
1574
1582
|
match: v,
|
|
1575
1583
|
pendingCommit: ue,
|
|
1576
|
-
resolvedRouteVersion:
|
|
1584
|
+
resolvedRouteVersion: Qt,
|
|
1577
1585
|
onCommitted: (c) => {
|
|
1578
1586
|
nt.current === c && xe(c);
|
|
1579
1587
|
},
|
|
@@ -1662,7 +1670,7 @@ function Ln(e, t) {
|
|
|
1662
1670
|
target: h,
|
|
1663
1671
|
to: p,
|
|
1664
1672
|
...E
|
|
1665
|
-
} = e, g =
|
|
1673
|
+
} = e, g = Xe(e), b = s, m = r.locales && (b ?? r.locale) ? Qe(
|
|
1666
1674
|
g,
|
|
1667
1675
|
b ?? r.locale,
|
|
1668
1676
|
r.locales,
|
|
@@ -1704,7 +1712,7 @@ function Ko(e) {
|
|
|
1704
1712
|
o
|
|
1705
1713
|
));
|
|
1706
1714
|
}
|
|
1707
|
-
const { submissionKey: A, ...h } = e, p = a ? d ? a : u?.url : h.action, E = typeof p == "string" && t.locales && (e.locale ?? t.locale) ?
|
|
1715
|
+
const { submissionKey: A, ...h } = e, p = a ? d ? a : u?.url : h.action, E = typeof p == "string" && t.locales && (e.locale ?? t.locale) ? Qe(p, e.locale ?? t.locale, t.locales, typeof window > "u" ? "http://demiurge.local" : window.location.href) : p;
|
|
1708
1716
|
return R(
|
|
1709
1717
|
Bt.Provider,
|
|
1710
1718
|
{
|
|
@@ -1726,7 +1734,7 @@ function Ko(e) {
|
|
|
1726
1734
|
);
|
|
1727
1735
|
}
|
|
1728
1736
|
function Wo(e) {
|
|
1729
|
-
const t = Ee(), r = Ht(), n = _t(e.formAction), o = r && t.navigation === "server", i = t.locales && (e.locale ?? t.locale) ?
|
|
1737
|
+
const t = Ee(), r = Ht(), n = _t(e.formAction), o = r && t.navigation === "server", i = t.locales && (e.locale ?? t.locale) ? Qe(n.url, e.locale ?? t.locale, t.locales, typeof window > "u" ? "http://demiurge.local" : window.location.href) : n.url;
|
|
1730
1738
|
return R("button", {
|
|
1731
1739
|
...e,
|
|
1732
1740
|
locale: void 0,
|
|
@@ -2270,14 +2278,14 @@ const Yn = [
|
|
|
2270
2278
|
"INP",
|
|
2271
2279
|
"LCP",
|
|
2272
2280
|
"TTFB"
|
|
2273
|
-
], Zn = new Set(Yn),
|
|
2281
|
+
], Zn = new Set(Yn), Xn = /* @__PURE__ */ new Set([
|
|
2274
2282
|
"back-forward",
|
|
2275
2283
|
"back-forward-cache",
|
|
2276
2284
|
"navigate",
|
|
2277
2285
|
"prerender",
|
|
2278
2286
|
"reload",
|
|
2279
2287
|
"restore"
|
|
2280
|
-
]),
|
|
2288
|
+
]), Qn = /* @__PURE__ */ new Set([
|
|
2281
2289
|
"good",
|
|
2282
2290
|
"needs-improvement",
|
|
2283
2291
|
"poor"
|
|
@@ -2286,10 +2294,10 @@ function eo(e) {
|
|
|
2286
2294
|
return typeof e == "string" && Zn.has(e);
|
|
2287
2295
|
}
|
|
2288
2296
|
function to(e) {
|
|
2289
|
-
return typeof e == "string" &&
|
|
2297
|
+
return typeof e == "string" && Xn.has(e);
|
|
2290
2298
|
}
|
|
2291
2299
|
function ro(e) {
|
|
2292
|
-
return typeof e == "string" &&
|
|
2300
|
+
return typeof e == "string" && Qn.has(e);
|
|
2293
2301
|
}
|
|
2294
2302
|
const no = {
|
|
2295
2303
|
CLS: { good: 0.1, poor: 0.25 },
|
|
@@ -2304,7 +2312,7 @@ function oo(e, t) {
|
|
|
2304
2312
|
return t <= r.good ? "good" : t > r.poor ? "poor" : "needs-improvement";
|
|
2305
2313
|
}
|
|
2306
2314
|
const Zt = 32;
|
|
2307
|
-
function
|
|
2315
|
+
function Xo(e) {
|
|
2308
2316
|
const t = so(e.endpoint), r = co(e.metrics), n = uo(e.sampleRate);
|
|
2309
2317
|
return {
|
|
2310
2318
|
endpoint: t.url,
|
|
@@ -2314,7 +2322,7 @@ function Qo(e) {
|
|
|
2314
2322
|
sampleRate: n
|
|
2315
2323
|
};
|
|
2316
2324
|
}
|
|
2317
|
-
function
|
|
2325
|
+
function Qo(...e) {
|
|
2318
2326
|
const t = /* @__PURE__ */ new Set();
|
|
2319
2327
|
for (const r of e)
|
|
2320
2328
|
for (const n of r.needs.connect ?? [])
|
|
@@ -2429,7 +2437,7 @@ function po(e, t = {}) {
|
|
|
2429
2437
|
w.persisted && (u = "back-forward-cache", a.clear(), d = 0, v = 0, A = 0, h = 0, p = void 0, E = void 0, o.has("FCP") && b("FCP", performance.now() - w.timeStamp));
|
|
2430
2438
|
};
|
|
2431
2439
|
if (o.has("TTFB")) {
|
|
2432
|
-
const w =
|
|
2440
|
+
const w = Xt();
|
|
2433
2441
|
w && w.responseStart > 0 && b("TTFB", w.responseStart);
|
|
2434
2442
|
}
|
|
2435
2443
|
return o.has("FCP") && ye(i, { buffered: !0, type: "paint" }, (w) => {
|
|
@@ -2496,31 +2504,33 @@ function ye(e, t, r) {
|
|
|
2496
2504
|
return;
|
|
2497
2505
|
}
|
|
2498
2506
|
}
|
|
2499
|
-
function
|
|
2507
|
+
function Xt() {
|
|
2500
2508
|
if (!(typeof performance > "u"))
|
|
2501
2509
|
return performance.getEntriesByType("navigation")[0];
|
|
2502
2510
|
}
|
|
2503
2511
|
function yo() {
|
|
2504
|
-
const e =
|
|
2512
|
+
const e = Xt();
|
|
2505
2513
|
return e?.type === "back_forward" ? "back-forward" : e?.type === "reload" || e?.type === "prerender" ? e.type : "navigate";
|
|
2506
2514
|
}
|
|
2507
2515
|
export {
|
|
2508
2516
|
Ue as COLLECTED_WEB_VITAL_NAMES,
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2517
|
+
yi as CacheNotFoundError,
|
|
2518
|
+
Za as DEFAULT_CONTENT_TYPE,
|
|
2519
|
+
gi as DEFAULT_MAX_BODY_SIZE,
|
|
2520
|
+
wi as EnvValidationError,
|
|
2512
2521
|
oi as FRAMEWORK_TRUSTED_TYPES_POLICY,
|
|
2513
2522
|
Ko as Form,
|
|
2514
2523
|
Ar as HTTP_ERROR_STATUSES,
|
|
2515
|
-
|
|
2524
|
+
vi as HttpError,
|
|
2516
2525
|
Go as Image,
|
|
2517
2526
|
qo as Link,
|
|
2518
2527
|
mr as MUTATION_REQUEST_HEADER,
|
|
2519
2528
|
pr as MUTATION_REQUEST_VALUE,
|
|
2520
2529
|
xt as MUTATION_RESPONSE_MEDIA_TYPE,
|
|
2521
2530
|
Wo as MutationSubmit,
|
|
2522
|
-
|
|
2531
|
+
bi as MutationValidationError,
|
|
2523
2532
|
zo as RouteFocusBoundary,
|
|
2533
|
+
Si as RouteSerializationError,
|
|
2524
2534
|
ii as Script,
|
|
2525
2535
|
rn as SessionStoreConflictError,
|
|
2526
2536
|
mt as SessionStoreUnavailableError,
|
|
@@ -2529,16 +2539,18 @@ export {
|
|
|
2529
2539
|
ti as WebVitals,
|
|
2530
2540
|
Yo as analytics,
|
|
2531
2541
|
Be as applicationPathname,
|
|
2532
|
-
|
|
2533
|
-
|
|
2542
|
+
Ei as applyFetchMetadataVary,
|
|
2543
|
+
Ai as applyLocalizedMetadata,
|
|
2534
2544
|
ai as assertAdapterCapabilities,
|
|
2535
|
-
|
|
2545
|
+
xi as attachExceptionSource,
|
|
2546
|
+
ki as auditScriptDependencies,
|
|
2547
|
+
Ri as authorizeRoute,
|
|
2536
2548
|
Ti as cacheNotFound,
|
|
2537
2549
|
si as checkAdapterCapabilities,
|
|
2538
2550
|
Mi as checkFetchMetadata,
|
|
2539
2551
|
wn as checkWebSocketOrigin,
|
|
2540
2552
|
po as collectWebVitals,
|
|
2541
|
-
|
|
2553
|
+
Xa as contentTypeForExtension,
|
|
2542
2554
|
Ci as createCache,
|
|
2543
2555
|
$i as createCorsHeaders,
|
|
2544
2556
|
Ni as createCsrfCookie,
|
|
@@ -2551,7 +2563,7 @@ export {
|
|
|
2551
2563
|
Pi as createMemoryCacheStore,
|
|
2552
2564
|
$o as createMemoryIdempotencyStore,
|
|
2553
2565
|
Oi as createMemoryRateLimitStore,
|
|
2554
|
-
|
|
2566
|
+
Es as createMemorySessionStore,
|
|
2555
2567
|
An as createMutationAction,
|
|
2556
2568
|
_i as createRequestHandler,
|
|
2557
2569
|
Se as createSecureCookie,
|
|
@@ -2562,123 +2574,134 @@ export {
|
|
|
2562
2574
|
Oo as createSignedCookieSession,
|
|
2563
2575
|
Bi as cspHash,
|
|
2564
2576
|
Hi as cspNonce,
|
|
2565
|
-
|
|
2577
|
+
ss as defaultFontPath,
|
|
2566
2578
|
ui as defineAdapter,
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2579
|
+
zi as defineAuthorization,
|
|
2580
|
+
ji as defineEnvSchema,
|
|
2581
|
+
cs as defineFonts,
|
|
2582
|
+
us as defineImages,
|
|
2570
2583
|
Zo as defineInstrumentation,
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2584
|
+
ts as defineLinks,
|
|
2585
|
+
Vi as defineLocales,
|
|
2586
|
+
qi as defineMetadata,
|
|
2574
2587
|
Io as defineMiddleware,
|
|
2575
2588
|
To as defineOgImage,
|
|
2576
2589
|
Ro as defineRobots,
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2590
|
+
Ki as defineRoutePolicy,
|
|
2591
|
+
li as defineScripts,
|
|
2592
|
+
Wi as defineSecurityPolicy,
|
|
2580
2593
|
xo as defineSitemap,
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2594
|
+
Ji as defineTags,
|
|
2595
|
+
Xo as defineWebVitals,
|
|
2596
|
+
Gi as deserializeEnvSchema,
|
|
2597
|
+
Yi as enforceAllowedMethods,
|
|
2598
|
+
Zi as enforceCsrfProtection,
|
|
2599
|
+
Xi as enforceFetchMetadataPolicy,
|
|
2600
|
+
Qi as enforceRateLimit,
|
|
2601
|
+
ea as enforceRequestSecurity,
|
|
2589
2602
|
Ho as enforceWebSocketOrigin,
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2603
|
+
ta as env,
|
|
2604
|
+
ls as font,
|
|
2605
|
+
ds as fontAssetFileName,
|
|
2606
|
+
fs as fontAssetUrl,
|
|
2607
|
+
hs as fontLinks,
|
|
2608
|
+
ps as fontMediaType,
|
|
2609
|
+
ms as fontPreloadLinks,
|
|
2610
|
+
ys as fontSources,
|
|
2611
|
+
gs as fontStylesheetUrl,
|
|
2612
|
+
ra as getBodySizeException,
|
|
2613
|
+
na as getCspException,
|
|
2614
|
+
oa as getCsrfException,
|
|
2615
|
+
di as getRequestClientAddress,
|
|
2616
|
+
fi as getScriptWorker,
|
|
2617
|
+
ia as handleRequestWithManifest,
|
|
2618
|
+
Xe as href,
|
|
2619
|
+
aa as html,
|
|
2604
2620
|
xr as httpError,
|
|
2605
2621
|
Vo as hydrateFileRouter,
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2622
|
+
ws as isAllowedImageSource,
|
|
2623
|
+
sa as isCacheNotFoundError,
|
|
2624
|
+
Qa as isContentHashedFileName,
|
|
2609
2625
|
Rr as isHttpError,
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2626
|
+
ca as isSecurityException,
|
|
2627
|
+
ua as issueCsrfToken,
|
|
2628
|
+
la as json,
|
|
2629
|
+
da as jsonl,
|
|
2630
|
+
fa as link,
|
|
2631
|
+
ha as localeDirection,
|
|
2632
|
+
Qe as localizeHref,
|
|
2633
|
+
pa as mergeRouteAccess,
|
|
2634
|
+
ma as mergeRoutePolicies,
|
|
2635
|
+
ya as mergeRouteSecurityPolicies,
|
|
2636
|
+
ga as mergeSecurityPolicies,
|
|
2637
|
+
wa as meta,
|
|
2638
|
+
rs as modulePreload,
|
|
2639
|
+
va as mutation,
|
|
2640
|
+
ba as mutationInput,
|
|
2641
|
+
Sa as notFound,
|
|
2624
2642
|
Lo as page,
|
|
2625
2643
|
Ye as parseBodySize,
|
|
2626
2644
|
ct as parseCacheDuration,
|
|
2627
2645
|
Ge as parseCookieHeader,
|
|
2628
|
-
|
|
2629
|
-
|
|
2646
|
+
vs as parseImageOptimizerRequest,
|
|
2647
|
+
Ea as parseRateLimitWindow,
|
|
2630
2648
|
io as parseWebVitalsBeacon,
|
|
2649
|
+
Aa as permitsRequest,
|
|
2631
2650
|
Mr as planImageTransform,
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2651
|
+
ns as preconnect,
|
|
2652
|
+
os as preload,
|
|
2653
|
+
xa as query,
|
|
2654
|
+
ka as readEnv,
|
|
2636
2655
|
Po as readSecureCookie,
|
|
2637
2656
|
ei as readWebVitalsBeacon,
|
|
2638
|
-
|
|
2639
|
-
|
|
2657
|
+
Ra as redirect,
|
|
2658
|
+
bs as renderFontFaceCss,
|
|
2640
2659
|
Co as renderOgImageResponse,
|
|
2641
2660
|
$r as renderOgImageSvg,
|
|
2642
|
-
|
|
2661
|
+
hi as renderPageResponse,
|
|
2643
2662
|
Mo as renderRobots,
|
|
2644
2663
|
ko as renderSitemap,
|
|
2645
|
-
|
|
2664
|
+
Ta as resolveCsp,
|
|
2665
|
+
Ma as resolveCsrf,
|
|
2666
|
+
is as resolveLinks,
|
|
2646
2667
|
gr as resolveLocale,
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2668
|
+
Ca as resolveMaxBodySize,
|
|
2669
|
+
$a as resolveMetadata,
|
|
2670
|
+
Na as resolveRouteAccess,
|
|
2671
|
+
pi as resolveScripts,
|
|
2672
|
+
La as response,
|
|
2650
2673
|
No as runIdempotentMutation,
|
|
2651
2674
|
Me as script,
|
|
2652
2675
|
ce as secureCookieName,
|
|
2653
|
-
|
|
2676
|
+
Ia as security,
|
|
2654
2677
|
mo as sendWebVitalsBeacon,
|
|
2655
2678
|
dr as serializeCacheKey,
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2679
|
+
Da as serializeCacheNamespace,
|
|
2680
|
+
Pa as serializeCacheTag,
|
|
2681
|
+
Oa as serializeEnvSchema,
|
|
2682
|
+
As as serializeSessionNamespace,
|
|
2683
|
+
_a as serverTiming,
|
|
2684
|
+
Fa as sse,
|
|
2662
2685
|
st as startDeferredScripts,
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2686
|
+
Ua as stream,
|
|
2687
|
+
Ba as structuredData,
|
|
2688
|
+
Ha as tag,
|
|
2689
|
+
za as text,
|
|
2690
|
+
ja as toResponse,
|
|
2691
|
+
Va as unstable_resetEnvironment,
|
|
2692
|
+
qa as unstable_startEnvironment,
|
|
2670
2693
|
Jo as useFormNavigation,
|
|
2671
2694
|
jo as useMutationAction,
|
|
2672
2695
|
In as useNavigation,
|
|
2673
2696
|
Sn as useRouteFocusBoundary,
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2697
|
+
Ka as validateCorsPolicy,
|
|
2698
|
+
Wa as validateEnv,
|
|
2699
|
+
Ja as validateRateLimitPolicy,
|
|
2700
|
+
Ga as validateRouteModules,
|
|
2678
2701
|
Vr as validateSecureCookie,
|
|
2679
2702
|
Bo as validateUploads,
|
|
2680
2703
|
oo as webVitalRating,
|
|
2681
|
-
|
|
2704
|
+
Qo as webVitalsPolicy,
|
|
2682
2705
|
Do as webhook
|
|
2683
2706
|
};
|
|
2684
2707
|
//# sourceMappingURL=index.js.map
|