@hortiview/modulebase 1.0.4 → 1.1.0-alpha.8ea7f643.1
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/dist/{IsRestoringProvider-BfrdLTDw.js → IsRestoringProvider-CBSZo7ur.js} +83 -181
- package/dist/{ModuleCore-U32BXXin.js → ModuleCore-DuJVrj6v.js} +5052 -5011
- package/dist/{QueryClientProvider-Bak-4BVu.js → QueryClientProvider-DyiNrPkn.js} +160 -177
- package/dist/assets/ModuleCore.css +1 -1
- package/dist/{chunk-EVOBXE3Y-BoyVF_Ri.js → chunk-LFPYN7LY-DmQ3La_a.js} +2784 -2921
- package/dist/components/ModuleBase.js +19 -28
- package/dist/components/ModuleCore.js +1 -1
- package/dist/hooks/useCustom.js +12 -10
- package/dist/hooks/useCustomMutation.js +11 -9
- package/dist/hooks/useEntity.js +1 -1
- package/dist/hooks/useOffline.js +1 -1
- package/dist/hooks/useOption.js +1 -1
- package/dist/hooks/useServiceBus.js +1 -1
- package/dist/hooks/useStores.js +1 -1
- package/dist/lib/hooks/useCustom.d.ts +3 -4
- package/dist/lib/hooks/useCustomMutation.d.ts +3 -3
- package/dist/lib/module-router.d.ts +1 -1
- package/dist/main.js +178 -175
- package/dist/module-router.js +845 -889
- package/dist/{mutation-DztCHC7y.js → mutation-CmhiEgfA.js} +1 -1
- package/dist/{omit-DYPaIq41.js → omit-Do6MFRwA.js} +128 -121
- package/dist/provider/SignalR/SignalRProvider.js +463 -469
- package/dist/{useMutation-a0q2LJY6.js → useMutation-Aoachkw_.js} +2 -2
- package/dist/{useQuery-Cepqe-Ee.js → useQuery-DEU_AUtf.js} +105 -105
- package/dist/utils/helper.js +1 -1
- package/package.json +24 -24
package/dist/module-router.js
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
import * as k from "react";
|
|
2
|
-
import A, { useCallback as
|
|
3
|
-
import { useBasePropsStore as
|
|
4
|
-
import { aV as
|
|
5
|
-
import { A as
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = /^-?\d+$/, o = Object.prototype.toString,
|
|
11
|
-
const
|
|
2
|
+
import A, { useCallback as je } from "react";
|
|
3
|
+
import { useBasePropsStore as ze } from "./stores/BasePropsStore.js";
|
|
4
|
+
import { aV as qe, $ as ee, ae as Ee, q as te, t as Ve, m as Ce, aW as We, aP as Xe, E as O, aj as be, i as K, aX as Je, a8 as Ke, j as Qe, aY as Ge, aZ as xe, a_ as se, a$ as oe, b0 as Q, ah as P, b1 as _e, b2 as Ye, b3 as Ze, a3 as et, a4 as tt, a2 as rt, O as at, T as nt, w as I, am as st, ao as ot, al as it, b4 as $, b5 as lt, b6 as ie, b7 as ut, b8 as re, b9 as N, ba as dt, bb as ct, bc as ft } from "./chunk-LFPYN7LY-DmQ3La_a.js";
|
|
5
|
+
import { A as Sr, B as vr, F as Er, H as Cr, I as br, b as xr, c as _r, L as kr, d as Ar, M as Dr, e as Hr, N as Tr, f as Fr, g as Pr, P as Ur, a as Nr, h as Lr, R as Or, S as Ir, k as Br, l as Mr, n as $r, D as jr, o as zr, p as qr, r as Vr, s as Wr, v as Xr, V as Jr, W as Kr, x as Qr, y as Gr, z as Yr, C as Zr, G as ea, J as ta, K as ra, Q as aa, U as na, X as sa, Y as oa, Z as ia, _ as la, a0 as ua, a1 as da, a5 as ca, a6 as fa, a7 as ha, a9 as pa, aa as ma, ab as ya, ac as wa, ad as ga, af as Ra, ag as Sa, ai as va, ak as Ea, an as Ca, ap as ba, aq as xa, ar as _a, as as ka, at as Aa, au as Da, av as Ha, aw as Ta, ax as Fa, ay as Pa, az as Ua, aA as Na, aB as La, aC as Oa, aD as Ia, aE as Ba, aF as Ma, aG as $a, aH as ja, aI as za, aJ as qa, aK as Va, aL as Wa, aM as Xa, aN as Ja, aO as Ka, aQ as Qa, aR as Ga, aS as Ya, aT as Za, aU as en } from "./chunk-LFPYN7LY-DmQ3La_a.js";
|
|
6
|
+
var T = {}, le;
|
|
7
|
+
function ht() {
|
|
8
|
+
if (le) return T;
|
|
9
|
+
le = 1, Object.defineProperty(T, "__esModule", { value: !0 }), T.parseCookie = l, T.parse = l, T.stringifyCookie = s, T.stringifySetCookie = i, T.serialize = i, T.parseSetCookie = u, T.stringifySetCookie = i, T.serialize = i;
|
|
10
|
+
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = /^-?\d+$/, o = Object.prototype.toString, f = /* @__PURE__ */ (() => {
|
|
11
|
+
const c = function() {
|
|
12
12
|
};
|
|
13
|
-
return
|
|
13
|
+
return c.prototype = /* @__PURE__ */ Object.create(null), c;
|
|
14
14
|
})();
|
|
15
|
-
function
|
|
16
|
-
const m = new
|
|
15
|
+
function l(c, v) {
|
|
16
|
+
const m = new f(), d = c.length;
|
|
17
17
|
if (d < 2)
|
|
18
18
|
return m;
|
|
19
|
-
const
|
|
20
|
-
let
|
|
19
|
+
const R = v?.decode || y;
|
|
20
|
+
let S = 0;
|
|
21
21
|
do {
|
|
22
|
-
const b = p(
|
|
22
|
+
const b = p(c, S, d);
|
|
23
23
|
if (b === -1)
|
|
24
24
|
break;
|
|
25
|
-
const
|
|
26
|
-
if (b >
|
|
27
|
-
|
|
25
|
+
const E = h(c, S, d);
|
|
26
|
+
if (b > E) {
|
|
27
|
+
S = c.lastIndexOf(";", b - 1) + 1;
|
|
28
28
|
continue;
|
|
29
29
|
}
|
|
30
|
-
const
|
|
31
|
-
m[
|
|
32
|
-
} while (
|
|
30
|
+
const _ = w(c, S, b);
|
|
31
|
+
m[_] === void 0 && (m[_] = R(w(c, b + 1, E))), S = E + 1;
|
|
32
|
+
} while (S < d);
|
|
33
33
|
return m;
|
|
34
34
|
}
|
|
35
|
-
function s(
|
|
36
|
-
const m =
|
|
37
|
-
for (const
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
35
|
+
function s(c, v) {
|
|
36
|
+
const m = v?.encode || encodeURIComponent, d = [];
|
|
37
|
+
for (const R of Object.keys(c)) {
|
|
38
|
+
const S = c[R];
|
|
39
|
+
if (S === void 0)
|
|
40
40
|
continue;
|
|
41
|
-
if (!e.test(
|
|
42
|
-
throw new TypeError(`cookie name is invalid: ${
|
|
43
|
-
const b = m(
|
|
41
|
+
if (!e.test(R))
|
|
42
|
+
throw new TypeError(`cookie name is invalid: ${R}`);
|
|
43
|
+
const b = m(S);
|
|
44
44
|
if (!t.test(b))
|
|
45
|
-
throw new TypeError(`cookie val is invalid: ${
|
|
46
|
-
d.push(`${
|
|
45
|
+
throw new TypeError(`cookie val is invalid: ${S}`);
|
|
46
|
+
d.push(`${R}=${b}`);
|
|
47
47
|
}
|
|
48
48
|
return d.join("; ");
|
|
49
49
|
}
|
|
50
|
-
function i(
|
|
51
|
-
const d = typeof
|
|
50
|
+
function i(c, v, m) {
|
|
51
|
+
const d = typeof c == "object" ? c : { ...m, name: c, value: String(v) }, S = (typeof v == "object" ? v : m)?.encode || encodeURIComponent;
|
|
52
52
|
if (!e.test(d.name))
|
|
53
53
|
throw new TypeError(`argument name is invalid: ${d.name}`);
|
|
54
|
-
const b = d.value ?
|
|
54
|
+
const b = d.value ? S(d.value) : "";
|
|
55
55
|
if (!t.test(b))
|
|
56
56
|
throw new TypeError(`argument val is invalid: ${d.value}`);
|
|
57
|
-
let
|
|
57
|
+
let E = d.name + "=" + b;
|
|
58
58
|
if (d.maxAge !== void 0) {
|
|
59
59
|
if (!Number.isInteger(d.maxAge))
|
|
60
60
|
throw new TypeError(`option maxAge is invalid: ${d.maxAge}`);
|
|
61
|
-
|
|
61
|
+
E += "; Max-Age=" + d.maxAge;
|
|
62
62
|
}
|
|
63
63
|
if (d.domain) {
|
|
64
64
|
if (!r.test(d.domain))
|
|
65
65
|
throw new TypeError(`option domain is invalid: ${d.domain}`);
|
|
66
|
-
|
|
66
|
+
E += "; Domain=" + d.domain;
|
|
67
67
|
}
|
|
68
68
|
if (d.path) {
|
|
69
69
|
if (!a.test(d.path))
|
|
70
70
|
throw new TypeError(`option path is invalid: ${d.path}`);
|
|
71
|
-
|
|
71
|
+
E += "; Path=" + d.path;
|
|
72
72
|
}
|
|
73
73
|
if (d.expires) {
|
|
74
|
-
if (!
|
|
74
|
+
if (!g(d.expires) || !Number.isFinite(d.expires.valueOf()))
|
|
75
75
|
throw new TypeError(`option expires is invalid: ${d.expires}`);
|
|
76
|
-
|
|
76
|
+
E += "; Expires=" + d.expires.toUTCString();
|
|
77
77
|
}
|
|
78
|
-
if (d.httpOnly && (
|
|
78
|
+
if (d.httpOnly && (E += "; HttpOnly"), d.secure && (E += "; Secure"), d.partitioned && (E += "; Partitioned"), d.priority)
|
|
79
79
|
switch (typeof d.priority == "string" ? d.priority.toLowerCase() : void 0) {
|
|
80
80
|
case "low":
|
|
81
|
-
|
|
81
|
+
E += "; Priority=Low";
|
|
82
82
|
break;
|
|
83
83
|
case "medium":
|
|
84
|
-
|
|
84
|
+
E += "; Priority=Medium";
|
|
85
85
|
break;
|
|
86
86
|
case "high":
|
|
87
|
-
|
|
87
|
+
E += "; Priority=High";
|
|
88
88
|
break;
|
|
89
89
|
default:
|
|
90
90
|
throw new TypeError(`option priority is invalid: ${d.priority}`);
|
|
@@ -93,28 +93,28 @@ function mt() {
|
|
|
93
93
|
switch (typeof d.sameSite == "string" ? d.sameSite.toLowerCase() : d.sameSite) {
|
|
94
94
|
case !0:
|
|
95
95
|
case "strict":
|
|
96
|
-
|
|
96
|
+
E += "; SameSite=Strict";
|
|
97
97
|
break;
|
|
98
98
|
case "lax":
|
|
99
|
-
|
|
99
|
+
E += "; SameSite=Lax";
|
|
100
100
|
break;
|
|
101
101
|
case "none":
|
|
102
|
-
|
|
102
|
+
E += "; SameSite=None";
|
|
103
103
|
break;
|
|
104
104
|
default:
|
|
105
105
|
throw new TypeError(`option sameSite is invalid: ${d.sameSite}`);
|
|
106
106
|
}
|
|
107
|
-
return
|
|
107
|
+
return E;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
const m =
|
|
111
|
-
name: w(
|
|
112
|
-
value: m(w(
|
|
109
|
+
function u(c, v) {
|
|
110
|
+
const m = v?.decode || y, d = c.length, R = h(c, 0, d), S = p(c, 0, R), b = S === -1 ? { name: "", value: m(w(c, 0, R)) } : {
|
|
111
|
+
name: w(c, 0, S),
|
|
112
|
+
value: m(w(c, S + 1, R))
|
|
113
113
|
};
|
|
114
|
-
let
|
|
115
|
-
for (;
|
|
116
|
-
const
|
|
117
|
-
switch (
|
|
114
|
+
let E = R + 1;
|
|
115
|
+
for (; E < d; ) {
|
|
116
|
+
const _ = h(c, E, d), F = p(c, E, _), x = F === -1 ? w(c, E, _) : w(c, E, F), C = F === -1 ? void 0 : w(c, F + 1, _);
|
|
117
|
+
switch (x.toLowerCase()) {
|
|
118
118
|
case "httponly":
|
|
119
119
|
b.httpOnly = !0;
|
|
120
120
|
break;
|
|
@@ -125,78 +125,78 @@ function mt() {
|
|
|
125
125
|
b.partitioned = !0;
|
|
126
126
|
break;
|
|
127
127
|
case "domain":
|
|
128
|
-
b.domain =
|
|
128
|
+
b.domain = C;
|
|
129
129
|
break;
|
|
130
130
|
case "path":
|
|
131
|
-
b.path =
|
|
131
|
+
b.path = C;
|
|
132
132
|
break;
|
|
133
133
|
case "max-age":
|
|
134
|
-
|
|
134
|
+
C && n.test(C) && (b.maxAge = Number(C));
|
|
135
135
|
break;
|
|
136
136
|
case "expires":
|
|
137
|
-
if (!
|
|
137
|
+
if (!C)
|
|
138
138
|
break;
|
|
139
|
-
const
|
|
140
|
-
Number.isFinite(
|
|
139
|
+
const D = new Date(C);
|
|
140
|
+
Number.isFinite(D.valueOf()) && (b.expires = D);
|
|
141
141
|
break;
|
|
142
142
|
case "priority":
|
|
143
|
-
if (!
|
|
143
|
+
if (!C)
|
|
144
144
|
break;
|
|
145
|
-
const
|
|
146
|
-
(
|
|
145
|
+
const H = C.toLowerCase();
|
|
146
|
+
(H === "low" || H === "medium" || H === "high") && (b.priority = H);
|
|
147
147
|
break;
|
|
148
148
|
case "samesite":
|
|
149
|
-
if (!
|
|
149
|
+
if (!C)
|
|
150
150
|
break;
|
|
151
|
-
const
|
|
152
|
-
(
|
|
151
|
+
const M = C.toLowerCase();
|
|
152
|
+
(M === "lax" || M === "strict" || M === "none") && (b.sameSite = M);
|
|
153
153
|
break;
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
E = _ + 1;
|
|
156
156
|
}
|
|
157
157
|
return b;
|
|
158
158
|
}
|
|
159
|
-
function h(
|
|
160
|
-
const d =
|
|
159
|
+
function h(c, v, m) {
|
|
160
|
+
const d = c.indexOf(";", v);
|
|
161
161
|
return d === -1 ? m : d;
|
|
162
162
|
}
|
|
163
|
-
function p(
|
|
164
|
-
const d =
|
|
163
|
+
function p(c, v, m) {
|
|
164
|
+
const d = c.indexOf("=", v);
|
|
165
165
|
return d < m ? d : -1;
|
|
166
166
|
}
|
|
167
|
-
function w(
|
|
168
|
-
let d =
|
|
167
|
+
function w(c, v, m) {
|
|
168
|
+
let d = v, R = m;
|
|
169
169
|
do {
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
170
|
+
const S = c.charCodeAt(d);
|
|
171
|
+
if (S !== 32 && S !== 9)
|
|
172
172
|
break;
|
|
173
|
-
} while (++d <
|
|
174
|
-
for (;
|
|
175
|
-
const
|
|
176
|
-
if (
|
|
173
|
+
} while (++d < R);
|
|
174
|
+
for (; R > d; ) {
|
|
175
|
+
const S = c.charCodeAt(R - 1);
|
|
176
|
+
if (S !== 32 && S !== 9)
|
|
177
177
|
break;
|
|
178
|
-
|
|
178
|
+
R--;
|
|
179
179
|
}
|
|
180
|
-
return
|
|
180
|
+
return c.slice(d, R);
|
|
181
181
|
}
|
|
182
|
-
function y(
|
|
183
|
-
if (
|
|
184
|
-
return
|
|
182
|
+
function y(c) {
|
|
183
|
+
if (c.indexOf("%") === -1)
|
|
184
|
+
return c;
|
|
185
185
|
try {
|
|
186
|
-
return decodeURIComponent(
|
|
186
|
+
return decodeURIComponent(c);
|
|
187
187
|
} catch {
|
|
188
|
-
return
|
|
188
|
+
return c;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
return o.call(
|
|
191
|
+
function g(c) {
|
|
192
|
+
return o.call(c) === "[object Date]";
|
|
193
193
|
}
|
|
194
|
-
return
|
|
194
|
+
return T;
|
|
195
195
|
}
|
|
196
|
-
var
|
|
197
|
-
function
|
|
198
|
-
if (
|
|
199
|
-
|
|
196
|
+
var ue = /* @__PURE__ */ ht(), L = { exports: {} }, de;
|
|
197
|
+
function pt() {
|
|
198
|
+
if (de) return L.exports;
|
|
199
|
+
de = 1;
|
|
200
200
|
var e = {
|
|
201
201
|
decodeValues: !0,
|
|
202
202
|
map: !1,
|
|
@@ -212,36 +212,36 @@ function yt() {
|
|
|
212
212
|
return typeof s == "string" && !!s.trim();
|
|
213
213
|
}
|
|
214
214
|
function n(s, i) {
|
|
215
|
-
var
|
|
215
|
+
var u = s.split(";").filter(a), h = u.shift(), p = o(h), w = p.name, y = p.value;
|
|
216
216
|
if (i = i ? Object.assign({}, e, i) : e, t(w))
|
|
217
217
|
return null;
|
|
218
218
|
try {
|
|
219
219
|
y = i.decodeValues ? decodeURIComponent(y) : y;
|
|
220
|
-
} catch (
|
|
220
|
+
} catch (c) {
|
|
221
221
|
console.error(
|
|
222
222
|
"set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",
|
|
223
|
-
|
|
223
|
+
c
|
|
224
224
|
);
|
|
225
225
|
}
|
|
226
|
-
var
|
|
227
|
-
return
|
|
228
|
-
var
|
|
226
|
+
var g = r();
|
|
227
|
+
return g.name = w, g.value = y, u.forEach(function(c) {
|
|
228
|
+
var v = c.split("="), m = v.shift().trimLeft().toLowerCase();
|
|
229
229
|
if (!t(m)) {
|
|
230
|
-
var d =
|
|
230
|
+
var d = v.join("=");
|
|
231
231
|
if (m === "expires")
|
|
232
|
-
|
|
232
|
+
g.expires = new Date(d);
|
|
233
233
|
else if (m === "max-age") {
|
|
234
|
-
var
|
|
235
|
-
Number.isNaN(
|
|
236
|
-
} else m === "secure" ?
|
|
234
|
+
var R = parseInt(d, 10);
|
|
235
|
+
Number.isNaN(R) || (g.maxAge = R);
|
|
236
|
+
} else m === "secure" ? g.secure = !0 : m === "httponly" ? g.httpOnly = !0 : m === "samesite" ? g.sameSite = d : m === "partitioned" ? g.partitioned = !0 : m && (g[m] = d);
|
|
237
237
|
}
|
|
238
|
-
}),
|
|
238
|
+
}), g;
|
|
239
239
|
}
|
|
240
240
|
function o(s) {
|
|
241
|
-
var i = "",
|
|
242
|
-
return h.length > 1 ? (i = h.shift(),
|
|
241
|
+
var i = "", u = "", h = s.split("=");
|
|
242
|
+
return h.length > 1 ? (i = h.shift(), u = h.join("=")) : u = s, { name: i, value: u };
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function f(s, i) {
|
|
245
245
|
if (i = i ? Object.assign({}, e, i) : e, !s)
|
|
246
246
|
return i.map ? r() : [];
|
|
247
247
|
if (s.headers)
|
|
@@ -250,12 +250,12 @@ function yt() {
|
|
|
250
250
|
else if (s.headers["set-cookie"])
|
|
251
251
|
s = s.headers["set-cookie"];
|
|
252
252
|
else {
|
|
253
|
-
var
|
|
253
|
+
var u = s.headers[Object.keys(s.headers).find(function(p) {
|
|
254
254
|
return p.toLowerCase() === "set-cookie";
|
|
255
255
|
})];
|
|
256
|
-
!
|
|
256
|
+
!u && s.headers.cookie && !i.silent && console.warn(
|
|
257
257
|
"Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
|
|
258
|
-
), s =
|
|
258
|
+
), s = u;
|
|
259
259
|
}
|
|
260
260
|
if (Array.isArray(s) || (s = [s]), i.map) {
|
|
261
261
|
var h = r();
|
|
@@ -268,42 +268,42 @@ function yt() {
|
|
|
268
268
|
return n(p, i);
|
|
269
269
|
}).filter(Boolean);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function l(s) {
|
|
272
272
|
if (Array.isArray(s))
|
|
273
273
|
return s;
|
|
274
274
|
if (typeof s != "string")
|
|
275
275
|
return [];
|
|
276
|
-
var i = [],
|
|
277
|
-
function
|
|
278
|
-
for (;
|
|
279
|
-
|
|
280
|
-
return
|
|
276
|
+
var i = [], u = 0, h, p, w, y, g;
|
|
277
|
+
function c() {
|
|
278
|
+
for (; u < s.length && /\s/.test(s.charAt(u)); )
|
|
279
|
+
u += 1;
|
|
280
|
+
return u < s.length;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
return p = s.charAt(
|
|
282
|
+
function v() {
|
|
283
|
+
return p = s.charAt(u), p !== "=" && p !== ";" && p !== ",";
|
|
284
284
|
}
|
|
285
|
-
for (;
|
|
286
|
-
for (h =
|
|
287
|
-
if (p = s.charAt(
|
|
288
|
-
for (w =
|
|
289
|
-
|
|
290
|
-
|
|
285
|
+
for (; u < s.length; ) {
|
|
286
|
+
for (h = u, g = !1; c(); )
|
|
287
|
+
if (p = s.charAt(u), p === ",") {
|
|
288
|
+
for (w = u, u += 1, c(), y = u; u < s.length && v(); )
|
|
289
|
+
u += 1;
|
|
290
|
+
u < s.length && s.charAt(u) === "=" ? (g = !0, u = y, i.push(s.substring(h, w)), h = u) : u = w + 1;
|
|
291
291
|
} else
|
|
292
|
-
|
|
293
|
-
(!
|
|
292
|
+
u += 1;
|
|
293
|
+
(!g || u >= s.length) && i.push(s.substring(h, s.length));
|
|
294
294
|
}
|
|
295
295
|
return i;
|
|
296
296
|
}
|
|
297
|
-
return
|
|
297
|
+
return L.exports = f, L.exports.parse = f, L.exports.parseString = n, L.exports.splitCookiesString = l, L.exports;
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
299
|
+
var mt = /* @__PURE__ */ pt();
|
|
300
|
+
function nr({
|
|
301
301
|
context: e,
|
|
302
302
|
url: t,
|
|
303
303
|
nonce: r
|
|
304
304
|
}) {
|
|
305
305
|
typeof t == "string" && (t = new URL(t));
|
|
306
|
-
let { manifest: a, routeModules: n, criticalCss: o, serverHandoffString:
|
|
306
|
+
let { manifest: a, routeModules: n, criticalCss: o, serverHandoffString: f } = e, l = qe(
|
|
307
307
|
a.routes,
|
|
308
308
|
n,
|
|
309
309
|
e.future,
|
|
@@ -313,23 +313,23 @@ function or({
|
|
|
313
313
|
...e.staticHandlerContext.loaderData
|
|
314
314
|
};
|
|
315
315
|
for (let i of e.staticHandlerContext.matches) {
|
|
316
|
-
let
|
|
317
|
-
h && p &&
|
|
318
|
-
|
|
316
|
+
let u = i.route.id, h = n[u], p = e.manifest.routes[u];
|
|
317
|
+
h && p && ee(
|
|
318
|
+
u,
|
|
319
319
|
h.clientLoader,
|
|
320
320
|
p.hasLoader,
|
|
321
321
|
e.isSpaMode
|
|
322
|
-
) && (h.HydrateFallback || !p.hasLoader) && delete e.staticHandlerContext.loaderData[
|
|
322
|
+
) && (h.HydrateFallback || !p.hasLoader) && delete e.staticHandlerContext.loaderData[u];
|
|
323
323
|
}
|
|
324
|
-
let s =
|
|
324
|
+
let s = Ee(l, e.staticHandlerContext);
|
|
325
325
|
return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(
|
|
326
|
-
|
|
326
|
+
te.Provider,
|
|
327
327
|
{
|
|
328
328
|
value: {
|
|
329
329
|
manifest: a,
|
|
330
330
|
routeModules: n,
|
|
331
331
|
criticalCss: o,
|
|
332
|
-
serverHandoffString:
|
|
332
|
+
serverHandoffString: f,
|
|
333
333
|
future: e.future,
|
|
334
334
|
ssr: e.ssr,
|
|
335
335
|
isSpaMode: e.isSpaMode,
|
|
@@ -338,8 +338,8 @@ function or({
|
|
|
338
338
|
renderMeta: e.renderMeta
|
|
339
339
|
}
|
|
340
340
|
},
|
|
341
|
-
/* @__PURE__ */ k.createElement(
|
|
342
|
-
|
|
341
|
+
/* @__PURE__ */ k.createElement(Ve, { location: s.state.location }, /* @__PURE__ */ k.createElement(
|
|
342
|
+
Ce,
|
|
343
343
|
{
|
|
344
344
|
router: s,
|
|
345
345
|
context: e.staticHandlerContext,
|
|
@@ -347,7 +347,7 @@ function or({
|
|
|
347
347
|
}
|
|
348
348
|
))
|
|
349
349
|
), e.serverHandoffStream ? /* @__PURE__ */ k.createElement(k.Suspense, null, /* @__PURE__ */ k.createElement(
|
|
350
|
-
|
|
350
|
+
We,
|
|
351
351
|
{
|
|
352
352
|
context: e,
|
|
353
353
|
identifier: 0,
|
|
@@ -357,21 +357,20 @@ function or({
|
|
|
357
357
|
}
|
|
358
358
|
)) : null);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function sr(e, t) {
|
|
361
361
|
return function({
|
|
362
362
|
initialEntries: a,
|
|
363
363
|
initialIndex: n,
|
|
364
364
|
hydrationData: o,
|
|
365
|
-
future:
|
|
365
|
+
future: f
|
|
366
366
|
}) {
|
|
367
|
-
let
|
|
368
|
-
if (
|
|
367
|
+
let l = k.useRef(), s = k.useRef();
|
|
368
|
+
if (l.current == null) {
|
|
369
369
|
s.current = {
|
|
370
370
|
future: {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
unstable_trailingSlashAwareDataRequests: c?.unstable_trailingSlashAwareDataRequests === !0
|
|
371
|
+
unstable_subResourceIntegrity: f?.unstable_subResourceIntegrity === !0,
|
|
372
|
+
v8_middleware: f?.v8_middleware === !0,
|
|
373
|
+
unstable_trailingSlashAwareDataRequests: f?.unstable_trailingSlashAwareDataRequests === !0
|
|
375
374
|
},
|
|
376
375
|
manifest: {
|
|
377
376
|
routes: {},
|
|
@@ -384,36 +383,36 @@ function ir(e, t) {
|
|
|
384
383
|
isSpaMode: !1,
|
|
385
384
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }
|
|
386
385
|
};
|
|
387
|
-
let i =
|
|
386
|
+
let i = ke(
|
|
388
387
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
389
|
-
// types compared to `
|
|
390
|
-
|
|
391
|
-
t !== void 0 ? t :
|
|
388
|
+
// types compared to `AgnosticRouteObject`
|
|
389
|
+
Je(e, (u) => u),
|
|
390
|
+
t !== void 0 ? t : f?.v8_middleware ? new K() : {},
|
|
392
391
|
s.current.manifest,
|
|
393
392
|
s.current.routeModules
|
|
394
393
|
);
|
|
395
|
-
|
|
394
|
+
l.current = Ke(i, {
|
|
396
395
|
initialEntries: a,
|
|
397
396
|
initialIndex: n,
|
|
398
397
|
hydrationData: o
|
|
399
398
|
});
|
|
400
399
|
}
|
|
401
|
-
return /* @__PURE__ */ k.createElement(
|
|
400
|
+
return /* @__PURE__ */ k.createElement(te.Provider, { value: s.current }, /* @__PURE__ */ k.createElement(Qe, { router: l.current }));
|
|
402
401
|
};
|
|
403
402
|
}
|
|
404
|
-
function
|
|
403
|
+
function ke(e, t, r, a, n) {
|
|
405
404
|
return e.map((o) => {
|
|
406
405
|
if (!o.id)
|
|
407
406
|
throw new Error(
|
|
408
407
|
"Expected a route.id in react-router processRoutes() function"
|
|
409
408
|
);
|
|
410
|
-
let
|
|
409
|
+
let f = {
|
|
411
410
|
id: o.id,
|
|
412
411
|
path: o.path,
|
|
413
412
|
index: o.index,
|
|
414
|
-
Component: o.Component ?
|
|
415
|
-
HydrateFallback: o.HydrateFallback ?
|
|
416
|
-
ErrorBoundary: o.ErrorBoundary ?
|
|
413
|
+
Component: o.Component ? rt(o.Component) : void 0,
|
|
414
|
+
HydrateFallback: o.HydrateFallback ? tt(o.HydrateFallback) : void 0,
|
|
415
|
+
ErrorBoundary: o.ErrorBoundary ? et(o.ErrorBoundary) : void 0,
|
|
417
416
|
action: o.action ? (s) => o.action({ ...s, context: t }) : void 0,
|
|
418
417
|
loader: o.loader ? (s) => o.loader({ ...s, context: t }) : void 0,
|
|
419
418
|
middleware: o.middleware ? o.middleware.map(
|
|
@@ -424,7 +423,7 @@ function De(e, t, r, a, n) {
|
|
|
424
423
|
) : void 0,
|
|
425
424
|
handle: o.handle,
|
|
426
425
|
shouldRevalidate: o.shouldRevalidate
|
|
427
|
-
},
|
|
426
|
+
}, l = {
|
|
428
427
|
id: o.id,
|
|
429
428
|
path: o.path,
|
|
430
429
|
index: o.index,
|
|
@@ -445,56 +444,56 @@ function De(e, t, r, a, n) {
|
|
|
445
444
|
clientMiddlewareModule: void 0,
|
|
446
445
|
hydrateFallbackModule: void 0
|
|
447
446
|
};
|
|
448
|
-
return r.routes[
|
|
449
|
-
default:
|
|
450
|
-
ErrorBoundary:
|
|
447
|
+
return r.routes[f.id] = l, a[o.id] = {
|
|
448
|
+
default: f.Component || at,
|
|
449
|
+
ErrorBoundary: f.ErrorBoundary || void 0,
|
|
451
450
|
handle: o.handle,
|
|
452
451
|
links: o.links,
|
|
453
452
|
meta: o.meta,
|
|
454
453
|
shouldRevalidate: o.shouldRevalidate
|
|
455
|
-
}, o.children && (
|
|
454
|
+
}, o.children && (f.children = ke(
|
|
456
455
|
o.children,
|
|
457
456
|
t,
|
|
458
457
|
r,
|
|
459
458
|
a,
|
|
460
|
-
|
|
461
|
-
)),
|
|
459
|
+
f.id
|
|
460
|
+
)), f;
|
|
462
461
|
});
|
|
463
462
|
}
|
|
464
|
-
var
|
|
465
|
-
let r =
|
|
463
|
+
var ae = /* @__PURE__ */ new TextEncoder(), yt = async (e, t) => {
|
|
464
|
+
let r = ae.encode(e), a = await Ae(t, ["sign"]), n = await crypto.subtle.sign("HMAC", a, r), o = btoa(String.fromCharCode(...new Uint8Array(n))).replace(
|
|
466
465
|
/=+$/,
|
|
467
466
|
""
|
|
468
467
|
);
|
|
469
468
|
return e + "." + o;
|
|
470
|
-
},
|
|
471
|
-
let r = e.lastIndexOf("."), a = e.slice(0, r), n = e.slice(r + 1), o =
|
|
469
|
+
}, wt = async (e, t) => {
|
|
470
|
+
let r = e.lastIndexOf("."), a = e.slice(0, r), n = e.slice(r + 1), o = ae.encode(a), f = await Ae(t, ["verify"]);
|
|
472
471
|
try {
|
|
473
|
-
let
|
|
474
|
-
return await crypto.subtle.verify("HMAC",
|
|
472
|
+
let l = gt(atob(n));
|
|
473
|
+
return await crypto.subtle.verify("HMAC", f, l, o) ? a : !1;
|
|
475
474
|
} catch {
|
|
476
475
|
return !1;
|
|
477
476
|
}
|
|
478
|
-
},
|
|
477
|
+
}, Ae = async (e, t) => crypto.subtle.importKey(
|
|
479
478
|
"raw",
|
|
480
|
-
|
|
479
|
+
ae.encode(e),
|
|
481
480
|
{ name: "HMAC", hash: "SHA-256" },
|
|
482
481
|
!1,
|
|
483
482
|
t
|
|
484
483
|
);
|
|
485
|
-
function
|
|
484
|
+
function gt(e) {
|
|
486
485
|
let t = new Uint8Array(e.length);
|
|
487
486
|
for (let r = 0; r < e.length; r++)
|
|
488
487
|
t[r] = e.charCodeAt(r);
|
|
489
488
|
return t;
|
|
490
489
|
}
|
|
491
|
-
var
|
|
490
|
+
var De = (e, t = {}) => {
|
|
492
491
|
let { secrets: r = [], ...a } = {
|
|
493
492
|
path: "/",
|
|
494
493
|
sameSite: "lax",
|
|
495
494
|
...t
|
|
496
495
|
};
|
|
497
|
-
return
|
|
496
|
+
return bt(e, a.expires), {
|
|
498
497
|
get name() {
|
|
499
498
|
return e;
|
|
500
499
|
},
|
|
@@ -506,17 +505,17 @@ var Pe = (e, t = {}) => {
|
|
|
506
505
|
},
|
|
507
506
|
async parse(n, o) {
|
|
508
507
|
if (!n) return null;
|
|
509
|
-
let
|
|
510
|
-
if (e in
|
|
511
|
-
let
|
|
512
|
-
return typeof
|
|
508
|
+
let f = ue.parse(n, { ...a, ...o });
|
|
509
|
+
if (e in f) {
|
|
510
|
+
let l = f[e];
|
|
511
|
+
return typeof l == "string" && l !== "" ? await St(l, r) : "";
|
|
513
512
|
} else
|
|
514
513
|
return null;
|
|
515
514
|
},
|
|
516
515
|
async serialize(n, o) {
|
|
517
|
-
return
|
|
516
|
+
return ue.serialize(
|
|
518
517
|
e,
|
|
519
|
-
n === "" ? "" : await
|
|
518
|
+
n === "" ? "" : await Rt(n, r),
|
|
520
519
|
{
|
|
521
520
|
...a,
|
|
522
521
|
...o
|
|
@@ -524,44 +523,44 @@ var Pe = (e, t = {}) => {
|
|
|
524
523
|
);
|
|
525
524
|
}
|
|
526
525
|
};
|
|
527
|
-
},
|
|
528
|
-
async function
|
|
529
|
-
let r =
|
|
530
|
-
return t.length > 0 && (r = await
|
|
526
|
+
}, He = (e) => e != null && typeof e.name == "string" && typeof e.isSigned == "boolean" && typeof e.parse == "function" && typeof e.serialize == "function";
|
|
527
|
+
async function Rt(e, t) {
|
|
528
|
+
let r = vt(e);
|
|
529
|
+
return t.length > 0 && (r = await yt(r, t[0])), r;
|
|
531
530
|
}
|
|
532
|
-
async function
|
|
531
|
+
async function St(e, t) {
|
|
533
532
|
if (t.length > 0) {
|
|
534
533
|
for (let r of t) {
|
|
535
|
-
let a = await
|
|
534
|
+
let a = await wt(e, r);
|
|
536
535
|
if (a !== !1)
|
|
537
|
-
return
|
|
536
|
+
return ce(a);
|
|
538
537
|
}
|
|
539
538
|
return null;
|
|
540
539
|
}
|
|
541
|
-
return
|
|
540
|
+
return ce(e);
|
|
542
541
|
}
|
|
543
|
-
function
|
|
544
|
-
return btoa(
|
|
542
|
+
function vt(e) {
|
|
543
|
+
return btoa(Ct(encodeURIComponent(JSON.stringify(e))));
|
|
545
544
|
}
|
|
546
|
-
function
|
|
545
|
+
function ce(e) {
|
|
547
546
|
try {
|
|
548
|
-
return JSON.parse(decodeURIComponent(
|
|
547
|
+
return JSON.parse(decodeURIComponent(Et(atob(e))));
|
|
549
548
|
} catch {
|
|
550
549
|
return {};
|
|
551
550
|
}
|
|
552
551
|
}
|
|
553
|
-
function
|
|
552
|
+
function Et(e) {
|
|
554
553
|
let t = e.toString(), r = "", a = 0, n, o;
|
|
555
554
|
for (; a < t.length; )
|
|
556
|
-
n = t.charAt(a++), /[\w*+\-./@]/.exec(n) ? r += n : (o = n.charCodeAt(0), o < 256 ? r += "%" +
|
|
555
|
+
n = t.charAt(a++), /[\w*+\-./@]/.exec(n) ? r += n : (o = n.charCodeAt(0), o < 256 ? r += "%" + fe(o, 2) : r += "%u" + fe(o, 4).toUpperCase());
|
|
557
556
|
return r;
|
|
558
557
|
}
|
|
559
|
-
function
|
|
558
|
+
function fe(e, t) {
|
|
560
559
|
let r = e.toString(16);
|
|
561
560
|
for (; r.length < t; ) r = "0" + r;
|
|
562
561
|
return r;
|
|
563
562
|
}
|
|
564
|
-
function
|
|
563
|
+
function Ct(e) {
|
|
565
564
|
let t = e.toString(), r = "", a = 0, n, o;
|
|
566
565
|
for (; a < t.length; ) {
|
|
567
566
|
if (n = t.charAt(a++), n === "%") {
|
|
@@ -579,65 +578,65 @@ function _t(e) {
|
|
|
579
578
|
}
|
|
580
579
|
return r;
|
|
581
580
|
}
|
|
582
|
-
function
|
|
583
|
-
|
|
581
|
+
function bt(e, t) {
|
|
582
|
+
_e(
|
|
584
583
|
!t,
|
|
585
584
|
`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`
|
|
586
585
|
);
|
|
587
586
|
}
|
|
588
|
-
function
|
|
587
|
+
function xt(e) {
|
|
589
588
|
return Object.keys(e).reduce((t, r) => {
|
|
590
589
|
let a = e[r];
|
|
591
590
|
return a && (t[r] = a.module), t;
|
|
592
591
|
}, {});
|
|
593
592
|
}
|
|
594
|
-
var
|
|
595
|
-
function
|
|
593
|
+
var _t = /* @__PURE__ */ ((e) => (e.Development = "development", e.Production = "production", e.Test = "test", e))(_t || {});
|
|
594
|
+
function kt(e) {
|
|
596
595
|
return e === "development" || e === "production" || e === "test";
|
|
597
596
|
}
|
|
598
|
-
function
|
|
597
|
+
function V(e, t) {
|
|
599
598
|
if (e instanceof Error && t !== "development") {
|
|
600
599
|
let r = new Error("Unexpected Server Error");
|
|
601
600
|
return r.stack = void 0, r;
|
|
602
601
|
}
|
|
603
602
|
return e;
|
|
604
603
|
}
|
|
605
|
-
function
|
|
606
|
-
return Object.entries(e).reduce((r, [a, n]) => Object.assign(r, { [a]:
|
|
604
|
+
function z(e, t) {
|
|
605
|
+
return Object.entries(e).reduce((r, [a, n]) => Object.assign(r, { [a]: V(n, t) }), {});
|
|
607
606
|
}
|
|
608
|
-
function
|
|
609
|
-
let r =
|
|
607
|
+
function Te(e, t) {
|
|
608
|
+
let r = V(e, t);
|
|
610
609
|
return {
|
|
611
610
|
message: r.message,
|
|
612
611
|
stack: r.stack
|
|
613
612
|
};
|
|
614
613
|
}
|
|
615
|
-
function
|
|
614
|
+
function he(e, t) {
|
|
616
615
|
if (!e) return null;
|
|
617
616
|
let r = Object.entries(e), a = {};
|
|
618
617
|
for (let [n, o] of r)
|
|
619
|
-
if (
|
|
618
|
+
if (P(o))
|
|
620
619
|
a[n] = { ...o, __type: "RouteErrorResponse" };
|
|
621
620
|
else if (o instanceof Error) {
|
|
622
|
-
let
|
|
621
|
+
let f = V(o, t);
|
|
623
622
|
a[n] = {
|
|
624
|
-
message:
|
|
625
|
-
stack:
|
|
623
|
+
message: f.message,
|
|
624
|
+
stack: f.stack,
|
|
626
625
|
__type: "Error",
|
|
627
626
|
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
628
627
|
// can re-create the same type during hydration. This will only apply
|
|
629
628
|
// in dev mode since all production errors are sanitized to normal
|
|
630
629
|
// Error instances
|
|
631
|
-
...
|
|
632
|
-
__subType:
|
|
630
|
+
...f.name !== "Error" ? {
|
|
631
|
+
__subType: f.name
|
|
633
632
|
} : {}
|
|
634
633
|
};
|
|
635
634
|
} else
|
|
636
635
|
a[n] = o;
|
|
637
636
|
return a;
|
|
638
637
|
}
|
|
639
|
-
function
|
|
640
|
-
let a =
|
|
638
|
+
function G(e, t, r) {
|
|
639
|
+
let a = be(
|
|
641
640
|
e,
|
|
642
641
|
t,
|
|
643
642
|
r
|
|
@@ -648,19 +647,18 @@ function Y(e, t, r) {
|
|
|
648
647
|
route: n.route
|
|
649
648
|
})) : null;
|
|
650
649
|
}
|
|
651
|
-
async function
|
|
652
|
-
let
|
|
653
|
-
request:
|
|
654
|
-
unstable_url: t.unstable_url,
|
|
650
|
+
async function pe(e, t) {
|
|
651
|
+
let r = await e({
|
|
652
|
+
request: Dt(At(t.request)),
|
|
655
653
|
params: t.params,
|
|
656
654
|
context: t.context,
|
|
657
655
|
unstable_pattern: t.unstable_pattern
|
|
658
656
|
});
|
|
659
|
-
if (
|
|
660
|
-
throw new Response(null,
|
|
661
|
-
return
|
|
657
|
+
if (ut(r) && r.init && r.init.status && re(r.init.status))
|
|
658
|
+
throw new Response(null, r.init);
|
|
659
|
+
return r;
|
|
662
660
|
}
|
|
663
|
-
function
|
|
661
|
+
function At(e) {
|
|
664
662
|
let t = new URL(e.url), r = t.searchParams.getAll("index");
|
|
665
663
|
t.searchParams.delete("index");
|
|
666
664
|
let a = [];
|
|
@@ -676,7 +674,7 @@ function Dt(e) {
|
|
|
676
674
|
};
|
|
677
675
|
return n.body && (n.duplex = "half"), new Request(t.href, n);
|
|
678
676
|
}
|
|
679
|
-
function
|
|
677
|
+
function Dt(e) {
|
|
680
678
|
let t = new URL(e.url);
|
|
681
679
|
t.searchParams.delete("_routes");
|
|
682
680
|
let r = {
|
|
@@ -687,29 +685,29 @@ function Ht(e) {
|
|
|
687
685
|
};
|
|
688
686
|
return r.body && (r.duplex = "half"), new Request(t.href, r);
|
|
689
687
|
}
|
|
690
|
-
function
|
|
688
|
+
function j(e, t) {
|
|
691
689
|
if (e === !1 || e === null || typeof e > "u")
|
|
692
690
|
throw console.error(
|
|
693
691
|
"The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"
|
|
694
692
|
), new Error(t);
|
|
695
693
|
}
|
|
696
|
-
var
|
|
697
|
-
function
|
|
698
|
-
globalThis[
|
|
694
|
+
var Fe = "__reactRouterDevServerHooks";
|
|
695
|
+
function or(e) {
|
|
696
|
+
globalThis[Fe] = e;
|
|
699
697
|
}
|
|
700
|
-
function
|
|
701
|
-
return globalThis[
|
|
698
|
+
function W() {
|
|
699
|
+
return globalThis[Fe];
|
|
702
700
|
}
|
|
703
|
-
function
|
|
701
|
+
function Pe(e, t) {
|
|
704
702
|
if (typeof process < "u")
|
|
705
703
|
try {
|
|
706
|
-
if (process.env
|
|
704
|
+
if (process.env?.IS_RR_BUILD_REQUEST === "yes")
|
|
707
705
|
return e.headers.get(t);
|
|
708
706
|
} catch {
|
|
709
707
|
}
|
|
710
708
|
return null;
|
|
711
709
|
}
|
|
712
|
-
function
|
|
710
|
+
function Ue(e) {
|
|
713
711
|
let t = {};
|
|
714
712
|
return Object.values(e).forEach((r) => {
|
|
715
713
|
if (r) {
|
|
@@ -718,13 +716,13 @@ function Oe(e) {
|
|
|
718
716
|
}
|
|
719
717
|
}), t;
|
|
720
718
|
}
|
|
721
|
-
function
|
|
719
|
+
function Ne(e, t = "", r = Ue(e)) {
|
|
722
720
|
return (r[t] || []).map((a) => ({
|
|
723
721
|
...a,
|
|
724
|
-
children:
|
|
722
|
+
children: Ne(e, a.id, r)
|
|
725
723
|
}));
|
|
726
724
|
}
|
|
727
|
-
function
|
|
725
|
+
function Le(e, t, r = "", a = Ue(e)) {
|
|
728
726
|
return (a[r] || []).map((n) => {
|
|
729
727
|
let o = {
|
|
730
728
|
// Always include root due to default boundaries
|
|
@@ -734,41 +732,37 @@ function Be(e, t, r = "", a = Oe(e)) {
|
|
|
734
732
|
middleware: n.module.middleware,
|
|
735
733
|
// Need to use RR's version in the param typed here to permit the optional
|
|
736
734
|
// context even though we know it'll always be provided in remix
|
|
737
|
-
loader: n.module.loader ? async (
|
|
738
|
-
let
|
|
739
|
-
|
|
735
|
+
loader: n.module.loader ? async (f) => {
|
|
736
|
+
let l = Pe(
|
|
737
|
+
f.request,
|
|
740
738
|
"X-React-Router-Prerender-Data"
|
|
741
739
|
);
|
|
742
|
-
if (
|
|
743
|
-
let i =
|
|
744
|
-
|
|
745
|
-
let
|
|
740
|
+
if (l != null) {
|
|
741
|
+
let i = l && decodeURI(l);
|
|
742
|
+
j(i, "Missing prerendered data for route");
|
|
743
|
+
let u = new TextEncoder().encode(i), h = new ReadableStream({
|
|
746
744
|
start(y) {
|
|
747
|
-
y.enqueue(
|
|
745
|
+
y.enqueue(u), y.close();
|
|
748
746
|
}
|
|
749
|
-
}), w = (await
|
|
747
|
+
}), w = (await nt(h, global)).value;
|
|
750
748
|
if (w && I in w) {
|
|
751
|
-
let y = w[I],
|
|
752
|
-
throw y.reload ?
|
|
749
|
+
let y = w[I], g = { status: y.status };
|
|
750
|
+
throw y.reload ? st(y.redirect, g) : y.replace ? ot(y.redirect, g) : it(y.redirect, g);
|
|
753
751
|
} else {
|
|
754
|
-
|
|
752
|
+
j(
|
|
755
753
|
w && n.id in w,
|
|
756
754
|
"Unable to decode prerendered data"
|
|
757
755
|
);
|
|
758
756
|
let y = w[n.id];
|
|
759
|
-
return
|
|
757
|
+
return j(
|
|
760
758
|
"data" in y,
|
|
761
759
|
"Unable to process prerendered data"
|
|
762
760
|
), y.data;
|
|
763
761
|
}
|
|
764
762
|
}
|
|
765
|
-
return await
|
|
766
|
-
n.module.loader,
|
|
767
|
-
c,
|
|
768
|
-
t
|
|
769
|
-
);
|
|
763
|
+
return await pe(n.module.loader, f);
|
|
770
764
|
} : void 0,
|
|
771
|
-
action: n.module.action ? (
|
|
765
|
+
action: n.module.action ? (f) => pe(n.module.action, f) : void 0,
|
|
772
766
|
handle: n.module.handle
|
|
773
767
|
};
|
|
774
768
|
return n.index ? {
|
|
@@ -776,7 +770,7 @@ function Be(e, t, r = "", a = Oe(e)) {
|
|
|
776
770
|
...o
|
|
777
771
|
} : {
|
|
778
772
|
caseSensitive: n.caseSensitive,
|
|
779
|
-
children:
|
|
773
|
+
children: Le(
|
|
780
774
|
e,
|
|
781
775
|
t,
|
|
782
776
|
n.id,
|
|
@@ -786,52 +780,52 @@ function Be(e, t, r = "", a = Oe(e)) {
|
|
|
786
780
|
};
|
|
787
781
|
});
|
|
788
782
|
}
|
|
789
|
-
function
|
|
790
|
-
return
|
|
783
|
+
function me(e) {
|
|
784
|
+
return Q(JSON.stringify(e));
|
|
791
785
|
}
|
|
792
|
-
function
|
|
793
|
-
return
|
|
786
|
+
function ne(e, t) {
|
|
787
|
+
return Ht(e, (r) => {
|
|
794
788
|
let a = t.routes[r.route.id];
|
|
795
|
-
return
|
|
789
|
+
return j(a, `Route with id "${r.route.id}" not found in build`), a.module.headers;
|
|
796
790
|
});
|
|
797
791
|
}
|
|
798
|
-
function
|
|
799
|
-
let a = e.errors ? e.matches.findIndex((
|
|
792
|
+
function Ht(e, t, r) {
|
|
793
|
+
let a = e.errors ? e.matches.findIndex((l) => e.errors[l.route.id]) : -1, n = a >= 0 ? e.matches.slice(0, a + 1) : e.matches, o;
|
|
800
794
|
if (a >= 0) {
|
|
801
|
-
let { actionHeaders:
|
|
795
|
+
let { actionHeaders: l, actionData: s, loaderHeaders: i, loaderData: u } = e;
|
|
802
796
|
e.matches.slice(a).some((h) => {
|
|
803
797
|
let p = h.route.id;
|
|
804
|
-
return
|
|
798
|
+
return l[p] && (!s || !s.hasOwnProperty(p)) ? o = l[p] : i[p] && !u.hasOwnProperty(p) && (o = i[p]), o != null;
|
|
805
799
|
});
|
|
806
800
|
}
|
|
807
|
-
const
|
|
808
|
-
return n.reduce((
|
|
809
|
-
let { id:
|
|
810
|
-
if (
|
|
811
|
-
let
|
|
812
|
-
return y && U(o,
|
|
801
|
+
const f = new Headers(r);
|
|
802
|
+
return n.reduce((l, s, i) => {
|
|
803
|
+
let { id: u } = s.route, h = e.loaderHeaders[u] || new Headers(), p = e.actionHeaders[u] || new Headers(), w = o != null && i === n.length - 1, y = w && o !== h && o !== p, g = t(s);
|
|
804
|
+
if (g == null) {
|
|
805
|
+
let v = new Headers(l);
|
|
806
|
+
return y && U(o, v), U(p, v), U(h, v), v;
|
|
813
807
|
}
|
|
814
|
-
let
|
|
815
|
-
typeof
|
|
808
|
+
let c = new Headers(
|
|
809
|
+
typeof g == "function" ? g({
|
|
816
810
|
loaderHeaders: h,
|
|
817
|
-
parentHeaders:
|
|
811
|
+
parentHeaders: l,
|
|
818
812
|
actionHeaders: p,
|
|
819
813
|
errorHeaders: w ? o : void 0
|
|
820
|
-
}) :
|
|
814
|
+
}) : g
|
|
821
815
|
);
|
|
822
|
-
return y && U(o,
|
|
823
|
-
}, new Headers(
|
|
816
|
+
return y && U(o, c), U(p, c), U(h, c), U(l, c), c;
|
|
817
|
+
}, new Headers(f));
|
|
824
818
|
}
|
|
825
819
|
function U(e, t) {
|
|
826
820
|
let r = e.get("Set-Cookie");
|
|
827
821
|
if (r) {
|
|
828
|
-
let a =
|
|
822
|
+
let a = mt.splitCookiesString(r), n = new Set(t.getSetCookie());
|
|
829
823
|
a.forEach((o) => {
|
|
830
824
|
n.has(o) || t.append("Set-Cookie", o);
|
|
831
825
|
});
|
|
832
826
|
}
|
|
833
827
|
}
|
|
834
|
-
function
|
|
828
|
+
function Oe(e, t) {
|
|
835
829
|
let r = e.get("origin"), a = null;
|
|
836
830
|
try {
|
|
837
831
|
a = typeof r == "string" && r !== "null" ? new URL(r).host : r;
|
|
@@ -840,15 +834,15 @@ function Me(e, t) {
|
|
|
840
834
|
"`origin` header is not a valid URL. Aborting the action."
|
|
841
835
|
);
|
|
842
836
|
}
|
|
843
|
-
let n =
|
|
844
|
-
if (a && (!n || a !== n.value) && !
|
|
837
|
+
let n = Pt(e);
|
|
838
|
+
if (a && (!n || a !== n.value) && !Ft(a, t))
|
|
845
839
|
throw n ? new Error(
|
|
846
840
|
`${n.type} header does not match \`origin\` header from a forwarded action request. Aborting the action.`
|
|
847
841
|
) : new Error(
|
|
848
842
|
"`x-forwarded-host` or `host` headers are not provided. One of these is needed to compare the `origin` header from a forwarded action request. Aborting the action."
|
|
849
843
|
);
|
|
850
844
|
}
|
|
851
|
-
function
|
|
845
|
+
function Tt(e, t) {
|
|
852
846
|
const r = e.split("."), a = t.split(".");
|
|
853
847
|
if (a.length < 1 || r.length < a.length)
|
|
854
848
|
return !1;
|
|
@@ -871,12 +865,12 @@ function Ft(e, t) {
|
|
|
871
865
|
}
|
|
872
866
|
return r.length === 0;
|
|
873
867
|
}
|
|
874
|
-
function
|
|
868
|
+
function Ft(e, t = []) {
|
|
875
869
|
return t.some(
|
|
876
|
-
(r) => r && (r === e ||
|
|
870
|
+
(r) => r && (r === e || Tt(e, r))
|
|
877
871
|
);
|
|
878
872
|
}
|
|
879
|
-
function
|
|
873
|
+
function Pt(e) {
|
|
880
874
|
let r = e.get("x-forwarded-host")?.split(",")[0]?.trim(), a = e.get("host");
|
|
881
875
|
return r ? {
|
|
882
876
|
type: "x-forwarded-host",
|
|
@@ -886,89 +880,74 @@ function Lt(e) {
|
|
|
886
880
|
value: a
|
|
887
881
|
} : void 0;
|
|
888
882
|
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
let a = new URL(e.url), n = a.pathname;
|
|
892
|
-
r?.unstable_trailingSlashAwareDataRequests ? n.endsWith("/_.data") ? n = n.replace(/_\.data$/, "") : n = n.replace(/\.data$/, "") : (j(n, t) === "/_root.data" ? n = t : n.endsWith(".data") && (n = n.replace(/\.data$/, "")), j(n, t) !== "/" && n.endsWith("/") && (n = n.slice(0, -1)));
|
|
893
|
-
let o = new URLSearchParams(a.search);
|
|
894
|
-
o.delete("_routes");
|
|
895
|
-
let c = o.toString();
|
|
896
|
-
return c && (c = `?${c}`), {
|
|
897
|
-
pathname: n,
|
|
898
|
-
search: c,
|
|
899
|
-
// No hashes on the server
|
|
900
|
-
hash: ""
|
|
901
|
-
};
|
|
902
|
-
}
|
|
903
|
-
var $e = /* @__PURE__ */ new Set([
|
|
904
|
-
...ht,
|
|
883
|
+
var Ie = /* @__PURE__ */ new Set([
|
|
884
|
+
...ct,
|
|
905
885
|
304
|
|
906
886
|
]);
|
|
907
|
-
async function
|
|
887
|
+
async function Ut(e, t, r, a, n, o, f) {
|
|
908
888
|
try {
|
|
909
889
|
try {
|
|
910
|
-
|
|
890
|
+
Oe(
|
|
911
891
|
a.headers,
|
|
912
892
|
Array.isArray(e.allowedActionOrigins) ? e.allowedActionOrigins : []
|
|
913
893
|
);
|
|
914
894
|
} catch {
|
|
915
895
|
return s(new Error("Bad Request"), 400);
|
|
916
896
|
}
|
|
917
|
-
let
|
|
897
|
+
let u = new Request(n, {
|
|
918
898
|
method: a.method,
|
|
919
899
|
body: a.body,
|
|
920
900
|
headers: a.headers,
|
|
921
901
|
signal: a.signal,
|
|
922
902
|
...a.body ? { duplex: "half" } : void 0
|
|
923
|
-
}), h = await r.query(
|
|
903
|
+
}), h = await r.query(u, {
|
|
924
904
|
requestContext: o,
|
|
925
905
|
skipLoaderErrorBubbling: !0,
|
|
926
906
|
skipRevalidation: !0,
|
|
927
907
|
generateMiddlewareResponse: e.future.v8_middleware ? async (p) => {
|
|
928
908
|
try {
|
|
929
|
-
let w = await p(
|
|
930
|
-
return
|
|
909
|
+
let w = await p(u);
|
|
910
|
+
return l(w);
|
|
931
911
|
} catch (w) {
|
|
932
912
|
return s(w);
|
|
933
913
|
}
|
|
934
|
-
} : void 0
|
|
935
|
-
unstable_normalizePath: (p) => M(p, e.basename, e.future)
|
|
914
|
+
} : void 0
|
|
936
915
|
});
|
|
937
|
-
return
|
|
938
|
-
} catch (
|
|
939
|
-
return s(
|
|
916
|
+
return l(h);
|
|
917
|
+
} catch (u) {
|
|
918
|
+
return s(u);
|
|
940
919
|
}
|
|
941
|
-
function u
|
|
942
|
-
return
|
|
920
|
+
function l(u) {
|
|
921
|
+
return N(u) ? u : i(u);
|
|
943
922
|
}
|
|
944
|
-
function s(
|
|
945
|
-
return
|
|
946
|
-
result: { error:
|
|
923
|
+
function s(u, h = 500) {
|
|
924
|
+
return f(u), B(a, e, t, {
|
|
925
|
+
result: { error: u },
|
|
947
926
|
headers: new Headers(),
|
|
948
927
|
status: h
|
|
949
928
|
});
|
|
950
929
|
}
|
|
951
|
-
function i(
|
|
952
|
-
let h =
|
|
953
|
-
if (
|
|
954
|
-
return new Response(null, { status:
|
|
955
|
-
|
|
956
|
-
(!
|
|
957
|
-
}),
|
|
930
|
+
function i(u) {
|
|
931
|
+
let h = ne(u, e);
|
|
932
|
+
if (re(u.statusCode) && h.has("Location"))
|
|
933
|
+
return new Response(null, { status: u.statusCode, headers: h });
|
|
934
|
+
u.errors && (Object.values(u.errors).forEach((w) => {
|
|
935
|
+
(!P(w) || w.error) && f(w);
|
|
936
|
+
}), u.errors = z(u.errors, t));
|
|
958
937
|
let p;
|
|
959
|
-
return
|
|
960
|
-
data: Object.values(
|
|
938
|
+
return u.errors ? p = { error: Object.values(u.errors)[0] } : p = {
|
|
939
|
+
data: Object.values(u.actionData || {})[0]
|
|
961
940
|
}, B(a, e, t, {
|
|
962
941
|
result: p,
|
|
963
942
|
headers: h,
|
|
964
|
-
status:
|
|
943
|
+
status: u.statusCode
|
|
965
944
|
});
|
|
966
945
|
}
|
|
967
946
|
}
|
|
968
|
-
async function
|
|
969
|
-
let
|
|
947
|
+
async function Nt(e, t, r, a, n, o, f) {
|
|
948
|
+
let l = new URL(a.url).searchParams.get("_routes"), s = l ? new Set(l.split(",")) : null;
|
|
970
949
|
try {
|
|
971
|
-
let p =
|
|
950
|
+
let p = new Request(n, {
|
|
972
951
|
headers: a.headers,
|
|
973
952
|
signal: a.signal
|
|
974
953
|
}), w = await r.query(p, {
|
|
@@ -977,45 +956,44 @@ async function Ot(e, t, r, a, n, o, c) {
|
|
|
977
956
|
skipLoaderErrorBubbling: !0,
|
|
978
957
|
generateMiddlewareResponse: e.future.v8_middleware ? async (y) => {
|
|
979
958
|
try {
|
|
980
|
-
let
|
|
981
|
-
return i(
|
|
982
|
-
} catch (
|
|
983
|
-
return
|
|
959
|
+
let g = await y(p);
|
|
960
|
+
return i(g);
|
|
961
|
+
} catch (g) {
|
|
962
|
+
return u(g);
|
|
984
963
|
}
|
|
985
|
-
} : void 0
|
|
986
|
-
unstable_normalizePath: (y) => M(y, e.basename, e.future)
|
|
964
|
+
} : void 0
|
|
987
965
|
});
|
|
988
966
|
return i(w);
|
|
989
967
|
} catch (p) {
|
|
990
|
-
return
|
|
968
|
+
return u(p);
|
|
991
969
|
}
|
|
992
970
|
function i(p) {
|
|
993
|
-
return
|
|
971
|
+
return N(p) ? p : h(p);
|
|
994
972
|
}
|
|
995
|
-
function
|
|
996
|
-
return
|
|
973
|
+
function u(p) {
|
|
974
|
+
return f(p), B(a, e, t, {
|
|
997
975
|
result: { error: p },
|
|
998
976
|
headers: new Headers(),
|
|
999
977
|
status: 500
|
|
1000
978
|
});
|
|
1001
979
|
}
|
|
1002
980
|
function h(p) {
|
|
1003
|
-
let w =
|
|
1004
|
-
if (
|
|
981
|
+
let w = ne(p, e);
|
|
982
|
+
if (re(p.statusCode) && w.has("Location"))
|
|
1005
983
|
return new Response(null, { status: p.statusCode, headers: w });
|
|
1006
|
-
p.errors && (Object.values(p.errors).forEach((
|
|
1007
|
-
(!
|
|
1008
|
-
}), p.errors =
|
|
1009
|
-
let y = {},
|
|
984
|
+
p.errors && (Object.values(p.errors).forEach((c) => {
|
|
985
|
+
(!P(c) || c.error) && f(c);
|
|
986
|
+
}), p.errors = z(p.errors, t));
|
|
987
|
+
let y = {}, g = new Set(
|
|
1010
988
|
p.matches.filter(
|
|
1011
|
-
(
|
|
1012
|
-
).map((
|
|
989
|
+
(c) => s ? s.has(c.route.id) : c.route.loader != null
|
|
990
|
+
).map((c) => c.route.id)
|
|
1013
991
|
);
|
|
1014
992
|
if (p.errors)
|
|
1015
|
-
for (let [
|
|
1016
|
-
y[
|
|
1017
|
-
for (let [
|
|
1018
|
-
!(
|
|
993
|
+
for (let [c, v] of Object.entries(p.errors))
|
|
994
|
+
y[c] = { error: v };
|
|
995
|
+
for (let [c, v] of Object.entries(p.loaderData))
|
|
996
|
+
!(c in y) && g.has(c) && (y[c] = { data: v });
|
|
1019
997
|
return B(a, e, t, {
|
|
1020
998
|
result: y,
|
|
1021
999
|
headers: w,
|
|
@@ -1028,9 +1006,9 @@ function B(e, t, r, {
|
|
|
1028
1006
|
headers: n,
|
|
1029
1007
|
status: o
|
|
1030
1008
|
}) {
|
|
1031
|
-
let
|
|
1032
|
-
return
|
|
1033
|
-
|
|
1009
|
+
let f = new Headers(n);
|
|
1010
|
+
return f.set("X-Remix-Response", "yes"), Ie.has(o) ? new Response(null, { status: o, headers: f }) : (f.set("Content-Type", "text/x-script"), f.delete("Content-Length"), new Response(
|
|
1011
|
+
Y(
|
|
1034
1012
|
a,
|
|
1035
1013
|
e.signal,
|
|
1036
1014
|
t.entry.module.streamTimeout,
|
|
@@ -1038,12 +1016,12 @@ function B(e, t, r, {
|
|
|
1038
1016
|
),
|
|
1039
1017
|
{
|
|
1040
1018
|
status: o || 200,
|
|
1041
|
-
headers:
|
|
1019
|
+
headers: f
|
|
1042
1020
|
}
|
|
1043
1021
|
));
|
|
1044
1022
|
}
|
|
1045
|
-
function
|
|
1046
|
-
let n =
|
|
1023
|
+
function ye(e, t, r, a) {
|
|
1024
|
+
let n = Lt(
|
|
1047
1025
|
e.status,
|
|
1048
1026
|
e.headers,
|
|
1049
1027
|
r.basename
|
|
@@ -1051,12 +1029,12 @@ function ge(e, t, r, a) {
|
|
|
1051
1029
|
return o.delete("Location"), o.set("Content-Type", "text/x-script"), B(t, r, a, {
|
|
1052
1030
|
result: t.method === "GET" ? { [I]: n } : n,
|
|
1053
1031
|
headers: o,
|
|
1054
|
-
status:
|
|
1032
|
+
status: xe
|
|
1055
1033
|
});
|
|
1056
1034
|
}
|
|
1057
|
-
function
|
|
1035
|
+
function Lt(e, t, r) {
|
|
1058
1036
|
let a = t.get("Location");
|
|
1059
|
-
return r && (a =
|
|
1037
|
+
return r && (a = $(a, r) || a), {
|
|
1060
1038
|
redirect: a,
|
|
1061
1039
|
status: e,
|
|
1062
1040
|
revalidate: (
|
|
@@ -1073,221 +1051,213 @@ function It(e, t, r) {
|
|
|
1073
1051
|
replace: t.has("X-Remix-Replace")
|
|
1074
1052
|
};
|
|
1075
1053
|
}
|
|
1076
|
-
function
|
|
1054
|
+
function Y(e, t, r, a) {
|
|
1077
1055
|
let n = new AbortController(), o = setTimeout(
|
|
1078
|
-
() =>
|
|
1079
|
-
n.abort(new Error("Server Timeout")), u();
|
|
1080
|
-
},
|
|
1056
|
+
() => n.abort(new Error("Server Timeout")),
|
|
1081
1057
|
typeof r == "number" ? r : 4950
|
|
1082
|
-
),
|
|
1083
|
-
|
|
1084
|
-
};
|
|
1085
|
-
t.addEventListener("abort", c);
|
|
1086
|
-
let u = () => {
|
|
1087
|
-
clearTimeout(o), t.removeEventListener("abort", c);
|
|
1088
|
-
};
|
|
1089
|
-
return pt(e, {
|
|
1058
|
+
), f = () => clearTimeout(o);
|
|
1059
|
+
return t.addEventListener("abort", f), ft(e, {
|
|
1090
1060
|
signal: n.signal,
|
|
1091
|
-
onComplete:
|
|
1061
|
+
onComplete: f,
|
|
1092
1062
|
plugins: [
|
|
1093
|
-
(
|
|
1094
|
-
if (
|
|
1095
|
-
let { name:
|
|
1096
|
-
return ["SanitizedError",
|
|
1063
|
+
(l) => {
|
|
1064
|
+
if (l instanceof Error) {
|
|
1065
|
+
let { name: s, message: i, stack: u } = a === "production" ? V(l, a) : l;
|
|
1066
|
+
return ["SanitizedError", s, i, u];
|
|
1097
1067
|
}
|
|
1098
|
-
if (
|
|
1099
|
-
let { data:
|
|
1100
|
-
return ["ErrorResponse",
|
|
1068
|
+
if (l instanceof O) {
|
|
1069
|
+
let { data: s, status: i, statusText: u } = l;
|
|
1070
|
+
return ["ErrorResponse", s, i, u];
|
|
1101
1071
|
}
|
|
1102
|
-
if (
|
|
1103
|
-
return ["SingleFetchRedirect",
|
|
1072
|
+
if (l && typeof l == "object" && I in l)
|
|
1073
|
+
return ["SingleFetchRedirect", l[I]];
|
|
1104
1074
|
}
|
|
1105
1075
|
],
|
|
1106
1076
|
postPlugins: [
|
|
1107
|
-
(
|
|
1108
|
-
if (
|
|
1077
|
+
(l) => {
|
|
1078
|
+
if (l && typeof l == "object")
|
|
1109
1079
|
return [
|
|
1110
1080
|
"SingleFetchClassInstance",
|
|
1111
|
-
Object.fromEntries(Object.entries(
|
|
1081
|
+
Object.fromEntries(Object.entries(l))
|
|
1112
1082
|
];
|
|
1113
1083
|
},
|
|
1114
1084
|
() => ["SingleFetchFallback"]
|
|
1115
1085
|
]
|
|
1116
1086
|
});
|
|
1117
1087
|
}
|
|
1118
|
-
function
|
|
1119
|
-
let r =
|
|
1088
|
+
function we(e, t) {
|
|
1089
|
+
let r = Ne(e.routes), a = Le(e.routes, e.future), n = kt(t) ? t : "production", o = Ye(a, {
|
|
1120
1090
|
basename: e.basename,
|
|
1121
1091
|
unstable_instrumentations: e.entry.module.unstable_instrumentations
|
|
1122
|
-
}),
|
|
1092
|
+
}), f = e.entry.module.handleError || ((s, { request: i }) => {
|
|
1123
1093
|
n !== "test" && !i.signal.aborted && console.error(
|
|
1124
1094
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1125
|
-
|
|
1095
|
+
P(s) && s.error ? s.error : s
|
|
1126
1096
|
);
|
|
1127
|
-
}),
|
|
1128
|
-
let
|
|
1129
|
-
t === "development" &&
|
|
1097
|
+
}), l = async (s, i) => {
|
|
1098
|
+
let u = {}, h, p = (R) => {
|
|
1099
|
+
t === "development" && W()?.processRequestError?.(R), f(R, {
|
|
1130
1100
|
context: h,
|
|
1131
|
-
params:
|
|
1101
|
+
params: u,
|
|
1132
1102
|
request: s
|
|
1133
1103
|
});
|
|
1134
1104
|
};
|
|
1135
1105
|
if (e.future.v8_middleware) {
|
|
1136
1106
|
if (i && !(i instanceof K)) {
|
|
1137
|
-
let
|
|
1107
|
+
let R = new Error(
|
|
1138
1108
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1139
1109
|
);
|
|
1140
|
-
return p(
|
|
1110
|
+
return p(R), q(R, n);
|
|
1141
1111
|
}
|
|
1142
1112
|
h = i || new K();
|
|
1143
1113
|
} else
|
|
1144
1114
|
h = i || {};
|
|
1145
|
-
let w = new URL(s.url), y =
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
e.future
|
|
1149
|
-
).pathname, R = Ne(s, "X-React-Router-SPA-Mode") === "yes";
|
|
1115
|
+
let w = new URL(s.url), y = e.basename || "/", g = w.pathname;
|
|
1116
|
+
e.future.unstable_trailingSlashAwareDataRequests ? g.endsWith("/_.data") ? g = g.replace(/_.data$/, "") : g = g.replace(/\.data$/, "") : ($(g, y) === "/_root.data" ? g = y : g.endsWith(".data") && (g = g.replace(/\.data$/, "")), $(g, y) !== "/" && g.endsWith("/") && (g = g.slice(0, -1)));
|
|
1117
|
+
let c = Pe(s, "X-React-Router-SPA-Mode") === "yes";
|
|
1150
1118
|
if (!e.ssr) {
|
|
1151
|
-
let
|
|
1152
|
-
if (
|
|
1153
|
-
let S =
|
|
1119
|
+
let R = decodeURI(g);
|
|
1120
|
+
if (y !== "/") {
|
|
1121
|
+
let S = $(R, y);
|
|
1154
1122
|
if (S == null)
|
|
1155
|
-
return
|
|
1123
|
+
return f(
|
|
1156
1124
|
new O(
|
|
1157
1125
|
404,
|
|
1158
1126
|
"Not Found",
|
|
1159
|
-
`Refusing to prerender the \`${
|
|
1127
|
+
`Refusing to prerender the \`${R}\` path because it does not start with the basename \`${y}\``
|
|
1160
1128
|
),
|
|
1161
1129
|
{
|
|
1162
1130
|
context: h,
|
|
1163
|
-
params:
|
|
1131
|
+
params: u,
|
|
1164
1132
|
request: s
|
|
1165
1133
|
}
|
|
1166
1134
|
), new Response("Not Found", {
|
|
1167
1135
|
status: 404,
|
|
1168
1136
|
statusText: "Not Found"
|
|
1169
1137
|
});
|
|
1170
|
-
|
|
1138
|
+
R = S;
|
|
1171
1139
|
}
|
|
1172
1140
|
if (e.prerender.length === 0)
|
|
1173
|
-
|
|
1174
|
-
else if (!e.prerender.includes(
|
|
1141
|
+
c = !0;
|
|
1142
|
+
else if (!e.prerender.includes(R) && !e.prerender.includes(R + "/")) {
|
|
1175
1143
|
if (w.pathname.endsWith(".data"))
|
|
1176
|
-
return
|
|
1144
|
+
return f(
|
|
1177
1145
|
new O(
|
|
1178
1146
|
404,
|
|
1179
1147
|
"Not Found",
|
|
1180
|
-
`Refusing to SSR the path \`${
|
|
1148
|
+
`Refusing to SSR the path \`${R}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
|
|
1181
1149
|
),
|
|
1182
1150
|
{
|
|
1183
1151
|
context: h,
|
|
1184
|
-
params:
|
|
1152
|
+
params: u,
|
|
1185
1153
|
request: s
|
|
1186
1154
|
}
|
|
1187
1155
|
), new Response("Not Found", {
|
|
1188
1156
|
status: 404,
|
|
1189
1157
|
statusText: "Not Found"
|
|
1190
1158
|
});
|
|
1191
|
-
|
|
1159
|
+
c = !0;
|
|
1192
1160
|
}
|
|
1193
1161
|
}
|
|
1194
|
-
let
|
|
1162
|
+
let v = lt(
|
|
1195
1163
|
e.routeDiscovery.manifestPath,
|
|
1196
|
-
|
|
1164
|
+
y
|
|
1197
1165
|
);
|
|
1198
|
-
if (w.pathname ===
|
|
1166
|
+
if (w.pathname === v)
|
|
1199
1167
|
try {
|
|
1200
|
-
return await
|
|
1201
|
-
} catch (
|
|
1202
|
-
return p(
|
|
1168
|
+
return await Ot(e, r, w);
|
|
1169
|
+
} catch (R) {
|
|
1170
|
+
return p(R), new Response("Unknown Server Error", { status: 500 });
|
|
1203
1171
|
}
|
|
1204
|
-
let
|
|
1205
|
-
|
|
1206
|
-
let
|
|
1172
|
+
let m = G(r, g, e.basename);
|
|
1173
|
+
m && m.length > 0 && Object.assign(u, m[0].params);
|
|
1174
|
+
let d;
|
|
1207
1175
|
if (w.pathname.endsWith(".data")) {
|
|
1208
|
-
let
|
|
1176
|
+
let R = new URL(s.url);
|
|
1177
|
+
R.pathname = g;
|
|
1178
|
+
let S = G(
|
|
1209
1179
|
r,
|
|
1210
|
-
|
|
1180
|
+
R.pathname,
|
|
1211
1181
|
e.basename
|
|
1212
1182
|
);
|
|
1213
|
-
|
|
1183
|
+
d = await It(
|
|
1214
1184
|
n,
|
|
1215
1185
|
e,
|
|
1216
1186
|
o,
|
|
1217
1187
|
s,
|
|
1218
|
-
|
|
1188
|
+
R,
|
|
1219
1189
|
h,
|
|
1220
1190
|
p
|
|
1221
|
-
),
|
|
1222
|
-
|
|
1191
|
+
), ie(d) && (d = ye(
|
|
1192
|
+
d,
|
|
1223
1193
|
s,
|
|
1224
1194
|
e,
|
|
1225
1195
|
n
|
|
1226
|
-
)), e.entry.module.handleDataRequest && (
|
|
1196
|
+
)), e.entry.module.handleDataRequest && (d = await e.entry.module.handleDataRequest(d, {
|
|
1227
1197
|
context: h,
|
|
1228
|
-
params:
|
|
1198
|
+
params: S ? S[0].params : {},
|
|
1229
1199
|
request: s
|
|
1230
|
-
}),
|
|
1231
|
-
|
|
1200
|
+
}), ie(d) && (d = ye(
|
|
1201
|
+
d,
|
|
1232
1202
|
s,
|
|
1233
1203
|
e,
|
|
1234
1204
|
n
|
|
1235
1205
|
)));
|
|
1236
|
-
} else if (!
|
|
1237
|
-
|
|
1206
|
+
} else if (!c && m && m[m.length - 1].route.module.default == null && m[m.length - 1].route.module.ErrorBoundary == null)
|
|
1207
|
+
d = await Mt(
|
|
1238
1208
|
n,
|
|
1239
1209
|
e,
|
|
1240
1210
|
o,
|
|
1241
|
-
|
|
1211
|
+
m.slice(-1)[0].route.id,
|
|
1242
1212
|
s,
|
|
1243
1213
|
h,
|
|
1244
1214
|
p
|
|
1245
1215
|
);
|
|
1246
1216
|
else {
|
|
1247
|
-
let { pathname:
|
|
1248
|
-
e.unstable_getCriticalCss ? S = await e.unstable_getCriticalCss({ pathname:
|
|
1217
|
+
let { pathname: R } = w, S;
|
|
1218
|
+
e.unstable_getCriticalCss ? S = await e.unstable_getCriticalCss({ pathname: R }) : t === "development" && W()?.getCriticalCss && (S = await W()?.getCriticalCss?.(R)), d = await Bt(
|
|
1249
1219
|
n,
|
|
1250
1220
|
e,
|
|
1251
1221
|
o,
|
|
1252
1222
|
s,
|
|
1253
1223
|
h,
|
|
1254
1224
|
p,
|
|
1255
|
-
|
|
1225
|
+
c,
|
|
1256
1226
|
S
|
|
1257
1227
|
);
|
|
1258
1228
|
}
|
|
1259
1229
|
return s.method === "HEAD" ? new Response(null, {
|
|
1260
|
-
headers:
|
|
1261
|
-
status:
|
|
1262
|
-
statusText:
|
|
1263
|
-
}) :
|
|
1230
|
+
headers: d.headers,
|
|
1231
|
+
status: d.status,
|
|
1232
|
+
statusText: d.statusText
|
|
1233
|
+
}) : d;
|
|
1264
1234
|
};
|
|
1265
|
-
return e.entry.module.unstable_instrumentations && (
|
|
1266
|
-
|
|
1235
|
+
return e.entry.module.unstable_instrumentations && (l = Ze(
|
|
1236
|
+
l,
|
|
1267
1237
|
e.entry.module.unstable_instrumentations.map((s) => s.handler).filter(Boolean)
|
|
1268
1238
|
)), {
|
|
1269
1239
|
routes: r,
|
|
1270
1240
|
dataRoutes: a,
|
|
1271
1241
|
serverMode: n,
|
|
1272
1242
|
staticHandler: o,
|
|
1273
|
-
errorHandler:
|
|
1274
|
-
requestHandler:
|
|
1243
|
+
errorHandler: f,
|
|
1244
|
+
requestHandler: l
|
|
1275
1245
|
};
|
|
1276
1246
|
}
|
|
1277
|
-
var
|
|
1278
|
-
let r, a, n, o,
|
|
1279
|
-
return async function(i,
|
|
1247
|
+
var ir = (e, t) => {
|
|
1248
|
+
let r, a, n, o, f, l;
|
|
1249
|
+
return async function(i, u) {
|
|
1280
1250
|
if (r = typeof e == "function" ? await e() : e, typeof e == "function") {
|
|
1281
|
-
let h =
|
|
1282
|
-
a = h.routes, n = h.serverMode, o = h.staticHandler,
|
|
1283
|
-
} else if (!a || !n || !o || !
|
|
1284
|
-
let h =
|
|
1285
|
-
a = h.routes, n = h.serverMode, o = h.staticHandler,
|
|
1251
|
+
let h = we(r, t);
|
|
1252
|
+
a = h.routes, n = h.serverMode, o = h.staticHandler, f = h.errorHandler, l = h.requestHandler;
|
|
1253
|
+
} else if (!a || !n || !o || !f || !l) {
|
|
1254
|
+
let h = we(r, t);
|
|
1255
|
+
a = h.routes, n = h.serverMode, o = h.staticHandler, f = h.errorHandler, l = h.requestHandler;
|
|
1286
1256
|
}
|
|
1287
|
-
return
|
|
1257
|
+
return l(i, u);
|
|
1288
1258
|
};
|
|
1289
1259
|
};
|
|
1290
|
-
async function
|
|
1260
|
+
async function Ot(e, t, r) {
|
|
1291
1261
|
if (e.assets.version !== r.searchParams.get("version"))
|
|
1292
1262
|
return new Response(null, {
|
|
1293
1263
|
status: 204,
|
|
@@ -1298,20 +1268,20 @@ async function Bt(e, t, r) {
|
|
|
1298
1268
|
let a = {};
|
|
1299
1269
|
if (r.searchParams.has("paths")) {
|
|
1300
1270
|
let n = /* @__PURE__ */ new Set();
|
|
1301
|
-
(r.searchParams.get("paths") || "").split(",").filter(Boolean).forEach((
|
|
1302
|
-
|
|
1303
|
-
let s =
|
|
1304
|
-
s.forEach((i,
|
|
1305
|
-
let h = s.slice(0,
|
|
1271
|
+
(r.searchParams.get("paths") || "").split(",").filter(Boolean).forEach((l) => {
|
|
1272
|
+
l.startsWith("/") || (l = `/${l}`);
|
|
1273
|
+
let s = l.split("/").slice(1);
|
|
1274
|
+
s.forEach((i, u) => {
|
|
1275
|
+
let h = s.slice(0, u + 1).join("/");
|
|
1306
1276
|
n.add(`/${h}`);
|
|
1307
1277
|
});
|
|
1308
1278
|
});
|
|
1309
|
-
for (let
|
|
1310
|
-
let s =
|
|
1279
|
+
for (let l of n) {
|
|
1280
|
+
let s = G(t, l, e.basename);
|
|
1311
1281
|
if (s)
|
|
1312
1282
|
for (let i of s) {
|
|
1313
|
-
let
|
|
1314
|
-
h && (a[
|
|
1283
|
+
let u = i.route.id, h = e.assets.routes[u];
|
|
1284
|
+
h && (a[u] = h);
|
|
1315
1285
|
}
|
|
1316
1286
|
}
|
|
1317
1287
|
return Response.json(a, {
|
|
@@ -1322,80 +1292,78 @@ async function Bt(e, t, r) {
|
|
|
1322
1292
|
}
|
|
1323
1293
|
return new Response("Invalid Request", { status: 400 });
|
|
1324
1294
|
}
|
|
1325
|
-
async function
|
|
1326
|
-
|
|
1327
|
-
return u.pathname = n, a.method !== "GET" ? await Nt(
|
|
1295
|
+
async function It(e, t, r, a, n, o, f) {
|
|
1296
|
+
return a.method !== "GET" ? await Ut(
|
|
1328
1297
|
t,
|
|
1329
1298
|
e,
|
|
1330
1299
|
r,
|
|
1331
1300
|
a,
|
|
1332
|
-
|
|
1301
|
+
n,
|
|
1333
1302
|
o,
|
|
1334
|
-
|
|
1335
|
-
) : await
|
|
1303
|
+
f
|
|
1304
|
+
) : await Nt(
|
|
1336
1305
|
t,
|
|
1337
1306
|
e,
|
|
1338
1307
|
r,
|
|
1339
1308
|
a,
|
|
1340
|
-
|
|
1309
|
+
n,
|
|
1341
1310
|
o,
|
|
1342
|
-
|
|
1311
|
+
f
|
|
1343
1312
|
);
|
|
1344
1313
|
}
|
|
1345
|
-
async function
|
|
1314
|
+
async function Bt(e, t, r, a, n, o, f, l) {
|
|
1346
1315
|
try {
|
|
1347
1316
|
if (a.method === "POST")
|
|
1348
1317
|
try {
|
|
1349
|
-
|
|
1318
|
+
Oe(
|
|
1350
1319
|
a.headers,
|
|
1351
1320
|
Array.isArray(t.allowedActionOrigins) ? t.allowedActionOrigins : []
|
|
1352
1321
|
);
|
|
1353
|
-
} catch (
|
|
1354
|
-
return o(
|
|
1322
|
+
} catch (u) {
|
|
1323
|
+
return o(u), new Response("Bad Request", { status: 400 });
|
|
1355
1324
|
}
|
|
1356
1325
|
let i = await r.query(a, {
|
|
1357
1326
|
requestContext: n,
|
|
1358
|
-
generateMiddlewareResponse: t.future.v8_middleware ? async (
|
|
1327
|
+
generateMiddlewareResponse: t.future.v8_middleware ? async (u) => {
|
|
1359
1328
|
try {
|
|
1360
|
-
let h = await
|
|
1361
|
-
return
|
|
1329
|
+
let h = await u(a);
|
|
1330
|
+
return N(h) || (h = await s(h, f)), h;
|
|
1362
1331
|
} catch (h) {
|
|
1363
1332
|
return o(h), new Response(null, { status: 500 });
|
|
1364
1333
|
}
|
|
1365
|
-
} : void 0
|
|
1366
|
-
unstable_normalizePath: (l) => M(l, t.basename, t.future)
|
|
1334
|
+
} : void 0
|
|
1367
1335
|
});
|
|
1368
|
-
return
|
|
1336
|
+
return N(i) || (i = await s(i, f)), i;
|
|
1369
1337
|
} catch (i) {
|
|
1370
1338
|
return o(i), new Response(null, { status: 500 });
|
|
1371
1339
|
}
|
|
1372
|
-
async function s(i,
|
|
1373
|
-
let h =
|
|
1374
|
-
if (
|
|
1340
|
+
async function s(i, u) {
|
|
1341
|
+
let h = ne(i, t);
|
|
1342
|
+
if (Ie.has(i.statusCode))
|
|
1375
1343
|
return new Response(null, { status: i.statusCode, headers: h });
|
|
1376
|
-
i.errors && (Object.values(i.errors).forEach((
|
|
1377
|
-
(!
|
|
1378
|
-
}), i.errors =
|
|
1344
|
+
i.errors && (Object.values(i.errors).forEach((c) => {
|
|
1345
|
+
(!P(c) || c.error) && o(c);
|
|
1346
|
+
}), i.errors = z(i.errors, e));
|
|
1379
1347
|
let p = {
|
|
1380
1348
|
loaderData: i.loaderData,
|
|
1381
1349
|
actionData: i.actionData,
|
|
1382
|
-
errors:
|
|
1350
|
+
errors: he(i.errors, e)
|
|
1383
1351
|
}, w = {
|
|
1384
1352
|
basename: t.basename,
|
|
1385
1353
|
future: t.future,
|
|
1386
1354
|
routeDiscovery: t.routeDiscovery,
|
|
1387
1355
|
ssr: t.ssr,
|
|
1388
|
-
isSpaMode:
|
|
1356
|
+
isSpaMode: u
|
|
1389
1357
|
}, y = {
|
|
1390
1358
|
manifest: t.assets,
|
|
1391
|
-
routeModules:
|
|
1359
|
+
routeModules: xt(t.routes),
|
|
1392
1360
|
staticHandlerContext: i,
|
|
1393
|
-
criticalCss:
|
|
1394
|
-
serverHandoffString:
|
|
1361
|
+
criticalCss: l,
|
|
1362
|
+
serverHandoffString: me({
|
|
1395
1363
|
...w,
|
|
1396
|
-
criticalCss:
|
|
1364
|
+
criticalCss: l
|
|
1397
1365
|
}),
|
|
1398
|
-
serverHandoffStream:
|
|
1366
|
+
serverHandoffStream: Y(
|
|
1399
1367
|
p,
|
|
1400
1368
|
a.signal,
|
|
1401
1369
|
t.entry.module.streamTimeout,
|
|
@@ -1405,45 +1373,45 @@ async function $t(e, t, r, a, n, o, c, u) {
|
|
|
1405
1373
|
future: t.future,
|
|
1406
1374
|
ssr: t.ssr,
|
|
1407
1375
|
routeDiscovery: t.routeDiscovery,
|
|
1408
|
-
isSpaMode:
|
|
1409
|
-
serializeError: (
|
|
1410
|
-
},
|
|
1376
|
+
isSpaMode: u,
|
|
1377
|
+
serializeError: (c) => Te(c, e)
|
|
1378
|
+
}, g = t.entry.module.default;
|
|
1411
1379
|
try {
|
|
1412
|
-
return await
|
|
1380
|
+
return await g(
|
|
1413
1381
|
a,
|
|
1414
1382
|
i.statusCode,
|
|
1415
1383
|
h,
|
|
1416
1384
|
y,
|
|
1417
1385
|
n
|
|
1418
1386
|
);
|
|
1419
|
-
} catch (
|
|
1420
|
-
o(
|
|
1421
|
-
let
|
|
1422
|
-
if (
|
|
1387
|
+
} catch (c) {
|
|
1388
|
+
o(c);
|
|
1389
|
+
let v = c;
|
|
1390
|
+
if (N(c))
|
|
1423
1391
|
try {
|
|
1424
|
-
let d = await
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1392
|
+
let d = await jt(c);
|
|
1393
|
+
v = new O(
|
|
1394
|
+
c.status,
|
|
1395
|
+
c.statusText,
|
|
1428
1396
|
d
|
|
1429
1397
|
);
|
|
1430
1398
|
} catch {
|
|
1431
1399
|
}
|
|
1432
|
-
i =
|
|
1400
|
+
i = dt(
|
|
1433
1401
|
r.dataRoutes,
|
|
1434
1402
|
i,
|
|
1435
|
-
|
|
1436
|
-
), i.errors && (i.errors =
|
|
1403
|
+
v
|
|
1404
|
+
), i.errors && (i.errors = z(i.errors, e));
|
|
1437
1405
|
let m = {
|
|
1438
1406
|
loaderData: i.loaderData,
|
|
1439
1407
|
actionData: i.actionData,
|
|
1440
|
-
errors:
|
|
1408
|
+
errors: he(i.errors, e)
|
|
1441
1409
|
};
|
|
1442
1410
|
y = {
|
|
1443
1411
|
...y,
|
|
1444
1412
|
staticHandlerContext: i,
|
|
1445
|
-
serverHandoffString:
|
|
1446
|
-
serverHandoffStream:
|
|
1413
|
+
serverHandoffString: me(w),
|
|
1414
|
+
serverHandoffStream: Y(
|
|
1447
1415
|
m,
|
|
1448
1416
|
a.signal,
|
|
1449
1417
|
t.entry.module.streamTimeout,
|
|
@@ -1452,7 +1420,7 @@ async function $t(e, t, r, a, n, o, c, u) {
|
|
|
1452
1420
|
renderMeta: {}
|
|
1453
1421
|
};
|
|
1454
1422
|
try {
|
|
1455
|
-
return await
|
|
1423
|
+
return await g(
|
|
1456
1424
|
a,
|
|
1457
1425
|
i.statusCode,
|
|
1458
1426
|
h,
|
|
@@ -1460,50 +1428,49 @@ async function $t(e, t, r, a, n, o, c, u) {
|
|
|
1460
1428
|
n
|
|
1461
1429
|
);
|
|
1462
1430
|
} catch (d) {
|
|
1463
|
-
return o(d),
|
|
1431
|
+
return o(d), q(d, e);
|
|
1464
1432
|
}
|
|
1465
1433
|
}
|
|
1466
1434
|
}
|
|
1467
1435
|
}
|
|
1468
|
-
async function
|
|
1436
|
+
async function Mt(e, t, r, a, n, o, f) {
|
|
1469
1437
|
try {
|
|
1470
1438
|
let i = await r.queryRoute(n, {
|
|
1471
1439
|
routeId: a,
|
|
1472
1440
|
requestContext: o,
|
|
1473
|
-
generateMiddlewareResponse: t.future.v8_middleware ? async (
|
|
1441
|
+
generateMiddlewareResponse: t.future.v8_middleware ? async (u) => {
|
|
1474
1442
|
try {
|
|
1475
|
-
let h = await
|
|
1476
|
-
return
|
|
1443
|
+
let h = await u(n);
|
|
1444
|
+
return l(h);
|
|
1477
1445
|
} catch (h) {
|
|
1478
1446
|
return s(h);
|
|
1479
1447
|
}
|
|
1480
|
-
} : void 0
|
|
1481
|
-
unstable_normalizePath: (l) => M(l, t.basename, t.future)
|
|
1448
|
+
} : void 0
|
|
1482
1449
|
});
|
|
1483
|
-
return
|
|
1450
|
+
return l(i);
|
|
1484
1451
|
} catch (i) {
|
|
1485
1452
|
return s(i);
|
|
1486
1453
|
}
|
|
1487
|
-
function
|
|
1488
|
-
return
|
|
1454
|
+
function l(i) {
|
|
1455
|
+
return N(i) ? i : typeof i == "string" ? new Response(i) : Response.json(i);
|
|
1489
1456
|
}
|
|
1490
1457
|
function s(i) {
|
|
1491
|
-
if (
|
|
1458
|
+
if (N(i))
|
|
1492
1459
|
return i;
|
|
1493
|
-
if (
|
|
1494
|
-
return
|
|
1460
|
+
if (P(i))
|
|
1461
|
+
return f(i), $t(i, e);
|
|
1495
1462
|
if (i instanceof Error && i.message === "Expected a response from queryRoute") {
|
|
1496
|
-
let
|
|
1463
|
+
let u = new Error(
|
|
1497
1464
|
"Expected a Response to be returned from resource route handler"
|
|
1498
1465
|
);
|
|
1499
|
-
return
|
|
1466
|
+
return f(u), q(u, e);
|
|
1500
1467
|
}
|
|
1501
|
-
return
|
|
1468
|
+
return f(i), q(i, e);
|
|
1502
1469
|
}
|
|
1503
1470
|
}
|
|
1504
|
-
function
|
|
1471
|
+
function $t(e, t) {
|
|
1505
1472
|
return Response.json(
|
|
1506
|
-
|
|
1473
|
+
Te(
|
|
1507
1474
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1508
1475
|
e.error || new Error("Unexpected Server Error"),
|
|
1509
1476
|
t
|
|
@@ -1514,7 +1481,7 @@ function jt(e, t) {
|
|
|
1514
1481
|
}
|
|
1515
1482
|
);
|
|
1516
1483
|
}
|
|
1517
|
-
function
|
|
1484
|
+
function q(e, t) {
|
|
1518
1485
|
let r = "Unexpected Server Error";
|
|
1519
1486
|
return t !== "production" && (r += `
|
|
1520
1487
|
|
|
@@ -1525,14 +1492,14 @@ ${String(e)}`), new Response(r, {
|
|
|
1525
1492
|
}
|
|
1526
1493
|
});
|
|
1527
1494
|
}
|
|
1528
|
-
function
|
|
1495
|
+
function jt(e) {
|
|
1529
1496
|
let t = e.headers.get("Content-Type");
|
|
1530
1497
|
return t && /\bapplication\/json\b/.test(t) ? e.body == null ? null : e.json() : e.text();
|
|
1531
1498
|
}
|
|
1532
|
-
function
|
|
1499
|
+
function X(e) {
|
|
1533
1500
|
return `__flash_${e}__`;
|
|
1534
1501
|
}
|
|
1535
|
-
var
|
|
1502
|
+
var Be = (e = {}, t = "") => {
|
|
1536
1503
|
let r = new Map(Object.entries(e));
|
|
1537
1504
|
return {
|
|
1538
1505
|
get id() {
|
|
@@ -1542,11 +1509,11 @@ var ze = (e = {}, t = "") => {
|
|
|
1542
1509
|
return Object.fromEntries(r);
|
|
1543
1510
|
},
|
|
1544
1511
|
has(a) {
|
|
1545
|
-
return r.has(a) || r.has(
|
|
1512
|
+
return r.has(a) || r.has(X(a));
|
|
1546
1513
|
},
|
|
1547
1514
|
get(a) {
|
|
1548
1515
|
if (r.has(a)) return r.get(a);
|
|
1549
|
-
let n =
|
|
1516
|
+
let n = X(a);
|
|
1550
1517
|
if (r.has(n)) {
|
|
1551
1518
|
let o = r.get(n);
|
|
1552
1519
|
return r.delete(n), o;
|
|
@@ -1556,50 +1523,50 @@ var ze = (e = {}, t = "") => {
|
|
|
1556
1523
|
r.set(a, n);
|
|
1557
1524
|
},
|
|
1558
1525
|
flash(a, n) {
|
|
1559
|
-
r.set(
|
|
1526
|
+
r.set(X(a), n);
|
|
1560
1527
|
},
|
|
1561
1528
|
unset(a) {
|
|
1562
1529
|
r.delete(a);
|
|
1563
1530
|
}
|
|
1564
1531
|
};
|
|
1565
|
-
},
|
|
1566
|
-
function
|
|
1532
|
+
}, lr = (e) => e != null && typeof e.id == "string" && typeof e.data < "u" && typeof e.has == "function" && typeof e.get == "function" && typeof e.set == "function" && typeof e.flash == "function" && typeof e.unset == "function";
|
|
1533
|
+
function zt({
|
|
1567
1534
|
cookie: e,
|
|
1568
1535
|
createData: t,
|
|
1569
1536
|
readData: r,
|
|
1570
1537
|
updateData: a,
|
|
1571
1538
|
deleteData: n
|
|
1572
1539
|
}) {
|
|
1573
|
-
let o =
|
|
1574
|
-
return
|
|
1575
|
-
async getSession(
|
|
1576
|
-
let s =
|
|
1577
|
-
return
|
|
1540
|
+
let o = He(e) ? e : De(e?.name || "__session", e);
|
|
1541
|
+
return Me(o), {
|
|
1542
|
+
async getSession(f, l) {
|
|
1543
|
+
let s = f && await o.parse(f, l), i = s && await r(s);
|
|
1544
|
+
return Be(i || {}, s || "");
|
|
1578
1545
|
},
|
|
1579
|
-
async commitSession(
|
|
1580
|
-
let { id: s, data: i } =
|
|
1581
|
-
return s ? await a(s, i,
|
|
1546
|
+
async commitSession(f, l) {
|
|
1547
|
+
let { id: s, data: i } = f, u = l?.maxAge != null ? new Date(Date.now() + l.maxAge * 1e3) : l?.expires != null ? l.expires : o.expires;
|
|
1548
|
+
return s ? await a(s, i, u) : s = await t(i, u), o.serialize(s, l);
|
|
1582
1549
|
},
|
|
1583
|
-
async destroySession(
|
|
1584
|
-
return await n(
|
|
1585
|
-
...
|
|
1550
|
+
async destroySession(f, l) {
|
|
1551
|
+
return await n(f.id), o.serialize("", {
|
|
1552
|
+
...l,
|
|
1586
1553
|
maxAge: void 0,
|
|
1587
1554
|
expires: /* @__PURE__ */ new Date(0)
|
|
1588
1555
|
});
|
|
1589
1556
|
}
|
|
1590
1557
|
};
|
|
1591
1558
|
}
|
|
1592
|
-
function
|
|
1593
|
-
|
|
1559
|
+
function Me(e) {
|
|
1560
|
+
_e(
|
|
1594
1561
|
e.isSigned,
|
|
1595
1562
|
`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`
|
|
1596
1563
|
);
|
|
1597
1564
|
}
|
|
1598
|
-
function
|
|
1599
|
-
let t =
|
|
1600
|
-
return
|
|
1565
|
+
function ur({ cookie: e } = {}) {
|
|
1566
|
+
let t = He(e) ? e : De(e?.name || "__session", e);
|
|
1567
|
+
return Me(t), {
|
|
1601
1568
|
async getSession(r, a) {
|
|
1602
|
-
return
|
|
1569
|
+
return Be(
|
|
1603
1570
|
r && await t.parse(r, a) || {}
|
|
1604
1571
|
);
|
|
1605
1572
|
},
|
|
@@ -1620,9 +1587,9 @@ function cr({ cookie: e } = {}) {
|
|
|
1620
1587
|
}
|
|
1621
1588
|
};
|
|
1622
1589
|
}
|
|
1623
|
-
function
|
|
1590
|
+
function dr({ cookie: e } = {}) {
|
|
1624
1591
|
let t = /* @__PURE__ */ new Map();
|
|
1625
|
-
return
|
|
1592
|
+
return zt({
|
|
1626
1593
|
cookie: e,
|
|
1627
1594
|
async createData(r, a) {
|
|
1628
1595
|
let n = Math.random().toString(36).substring(2, 10);
|
|
@@ -1645,13 +1612,13 @@ function fr({ cookie: e } = {}) {
|
|
|
1645
1612
|
}
|
|
1646
1613
|
});
|
|
1647
1614
|
}
|
|
1648
|
-
function
|
|
1649
|
-
let r = t[0], a =
|
|
1615
|
+
function cr(e, ...t) {
|
|
1616
|
+
let r = t[0], a = qt(e).replace(
|
|
1650
1617
|
/\/:([\w-]+)(\?)?/g,
|
|
1651
1618
|
// same regex as in .\router\utils.ts: compilePath().
|
|
1652
|
-
(n, o,
|
|
1653
|
-
const
|
|
1654
|
-
if (
|
|
1619
|
+
(n, o, f) => {
|
|
1620
|
+
const l = f === void 0, s = r?.[o];
|
|
1621
|
+
if (l && s === void 0)
|
|
1655
1622
|
throw new Error(
|
|
1656
1623
|
`Path '${e}' requires param '${o}' but it was not provided`
|
|
1657
1624
|
);
|
|
@@ -1664,51 +1631,51 @@ function hr(e, ...t) {
|
|
|
1664
1631
|
}
|
|
1665
1632
|
return a || "/";
|
|
1666
1633
|
}
|
|
1667
|
-
function
|
|
1634
|
+
function qt(e) {
|
|
1668
1635
|
let t = e.length - 1, r = e[t];
|
|
1669
1636
|
if (r !== "*" && r !== "/") return e;
|
|
1670
1637
|
for (t--; t >= 0 && e[t] === "/"; t--)
|
|
1671
1638
|
;
|
|
1672
1639
|
return e.slice(0, t + 1);
|
|
1673
1640
|
}
|
|
1674
|
-
var
|
|
1675
|
-
function
|
|
1641
|
+
var Z = new TextEncoder(), ge = "</body></html>";
|
|
1642
|
+
function Re(e) {
|
|
1676
1643
|
let t = new TextDecoder(), r, a = new Promise(
|
|
1677
1644
|
(s) => r = s
|
|
1678
|
-
), n = !1, o = [],
|
|
1679
|
-
function
|
|
1645
|
+
), n = !1, o = [], f = null;
|
|
1646
|
+
function l(s) {
|
|
1680
1647
|
for (let i of o) {
|
|
1681
|
-
let
|
|
1682
|
-
|
|
1648
|
+
let u = t.decode(i, { stream: !0 });
|
|
1649
|
+
u.endsWith(ge) && (u = u.slice(0, -ge.length)), s.enqueue(Z.encode(u));
|
|
1683
1650
|
}
|
|
1684
|
-
o.length = 0,
|
|
1651
|
+
o.length = 0, f = null;
|
|
1685
1652
|
}
|
|
1686
1653
|
return new TransformStream({
|
|
1687
1654
|
transform(s, i) {
|
|
1688
|
-
o.push(s), !
|
|
1689
|
-
|
|
1655
|
+
o.push(s), !f && (f = setTimeout(async () => {
|
|
1656
|
+
l(i), n || (n = !0, Vt(e, i).catch((u) => i.error(u)).then(r));
|
|
1690
1657
|
}, 0));
|
|
1691
1658
|
},
|
|
1692
1659
|
async flush(s) {
|
|
1693
|
-
await a,
|
|
1660
|
+
await a, f && (clearTimeout(f), l(s)), s.enqueue(Z.encode("</body></html>"));
|
|
1694
1661
|
}
|
|
1695
1662
|
});
|
|
1696
1663
|
}
|
|
1697
|
-
async function
|
|
1664
|
+
async function Vt(e, t) {
|
|
1698
1665
|
let r = new TextDecoder("utf-8", { fatal: !0 });
|
|
1699
1666
|
const a = e.getReader();
|
|
1700
1667
|
try {
|
|
1701
1668
|
let o;
|
|
1702
1669
|
for (; (o = await a.read()) && !o.done; ) {
|
|
1703
|
-
const
|
|
1670
|
+
const f = o.value;
|
|
1704
1671
|
try {
|
|
1705
|
-
|
|
1706
|
-
JSON.stringify(r.decode(
|
|
1672
|
+
J(
|
|
1673
|
+
JSON.stringify(r.decode(f, { stream: !0 })),
|
|
1707
1674
|
t
|
|
1708
1675
|
);
|
|
1709
1676
|
} catch {
|
|
1710
|
-
let s = JSON.stringify(btoa(String.fromCodePoint(...
|
|
1711
|
-
|
|
1677
|
+
let s = JSON.stringify(btoa(String.fromCodePoint(...f)));
|
|
1678
|
+
J(
|
|
1712
1679
|
`Uint8Array.from(atob(${s}), m => m.codePointAt(0))`,
|
|
1713
1680
|
t
|
|
1714
1681
|
);
|
|
@@ -1718,21 +1685,21 @@ async function Xt(e, t) {
|
|
|
1718
1685
|
a.releaseLock();
|
|
1719
1686
|
}
|
|
1720
1687
|
let n = r.decode();
|
|
1721
|
-
n.length &&
|
|
1688
|
+
n.length && J(JSON.stringify(n), t);
|
|
1722
1689
|
}
|
|
1723
|
-
function
|
|
1690
|
+
function J(e, t) {
|
|
1724
1691
|
t.enqueue(
|
|
1725
|
-
|
|
1726
|
-
`<script>${
|
|
1692
|
+
Z.encode(
|
|
1693
|
+
`<script>${Wt(
|
|
1727
1694
|
`(self.__FLIGHT_DATA||=[]).push(${e})`
|
|
1728
1695
|
)}<\/script>`
|
|
1729
1696
|
)
|
|
1730
1697
|
);
|
|
1731
1698
|
}
|
|
1732
|
-
function
|
|
1699
|
+
function Wt(e) {
|
|
1733
1700
|
return e.replace(/<!--/g, "<\\!--").replace(/<\/(script)/gi, "</\\$1");
|
|
1734
1701
|
}
|
|
1735
|
-
var
|
|
1702
|
+
var Xt = class extends A.Component {
|
|
1736
1703
|
constructor(e) {
|
|
1737
1704
|
super(e), this.state = { error: null, location: e.location };
|
|
1738
1705
|
}
|
|
@@ -1744,7 +1711,7 @@ var Qt = class extends A.Component {
|
|
|
1744
1711
|
}
|
|
1745
1712
|
render() {
|
|
1746
1713
|
return this.state.error ? /* @__PURE__ */ A.createElement(
|
|
1747
|
-
|
|
1714
|
+
$e,
|
|
1748
1715
|
{
|
|
1749
1716
|
error: this.state.error,
|
|
1750
1717
|
renderAppShell: !0
|
|
@@ -1752,7 +1719,7 @@ var Qt = class extends A.Component {
|
|
|
1752
1719
|
) : this.props.children;
|
|
1753
1720
|
}
|
|
1754
1721
|
};
|
|
1755
|
-
function
|
|
1722
|
+
function Se({
|
|
1756
1723
|
renderAppShell: e,
|
|
1757
1724
|
title: t,
|
|
1758
1725
|
children: r
|
|
@@ -1765,7 +1732,7 @@ function Ee({
|
|
|
1765
1732
|
}
|
|
1766
1733
|
), /* @__PURE__ */ A.createElement("title", null, t)), /* @__PURE__ */ A.createElement("body", null, /* @__PURE__ */ A.createElement("main", { style: { fontFamily: "system-ui, sans-serif", padding: "2rem" } }, r))) : r;
|
|
1767
1734
|
}
|
|
1768
|
-
function
|
|
1735
|
+
function $e({
|
|
1769
1736
|
error: e,
|
|
1770
1737
|
renderAppShell: t
|
|
1771
1738
|
}) {
|
|
@@ -1782,9 +1749,9 @@ function qe({
|
|
|
1782
1749
|
}
|
|
1783
1750
|
}
|
|
1784
1751
|
);
|
|
1785
|
-
if (
|
|
1752
|
+
if (P(e))
|
|
1786
1753
|
return /* @__PURE__ */ A.createElement(
|
|
1787
|
-
|
|
1754
|
+
Se,
|
|
1788
1755
|
{
|
|
1789
1756
|
renderAppShell: t,
|
|
1790
1757
|
title: "Unhandled Thrown Response!"
|
|
@@ -1799,7 +1766,7 @@ function qe({
|
|
|
1799
1766
|
let n = e == null ? "Unknown Error" : typeof e == "object" && "toString" in e ? e.toString() : JSON.stringify(e);
|
|
1800
1767
|
a = new Error(n);
|
|
1801
1768
|
}
|
|
1802
|
-
return /* @__PURE__ */ A.createElement(
|
|
1769
|
+
return /* @__PURE__ */ A.createElement(Se, { renderAppShell: t, title: "Application Error!" }, /* @__PURE__ */ A.createElement("h1", { style: { fontSize: "24px" } }, "Application Error"), /* @__PURE__ */ A.createElement(
|
|
1803
1770
|
"pre",
|
|
1804
1771
|
{
|
|
1805
1772
|
style: {
|
|
@@ -1812,42 +1779,42 @@ function qe({
|
|
|
1812
1779
|
a.stack
|
|
1813
1780
|
), r);
|
|
1814
1781
|
}
|
|
1815
|
-
function
|
|
1782
|
+
function fr({
|
|
1816
1783
|
hasRootLayout: e
|
|
1817
1784
|
}) {
|
|
1818
|
-
let t =
|
|
1785
|
+
let t = Xe();
|
|
1819
1786
|
if (e === void 0)
|
|
1820
1787
|
throw new Error("Missing 'hasRootLayout' prop");
|
|
1821
1788
|
return /* @__PURE__ */ A.createElement(
|
|
1822
|
-
|
|
1789
|
+
$e,
|
|
1823
1790
|
{
|
|
1824
1791
|
renderAppShell: !e,
|
|
1825
1792
|
error: t
|
|
1826
1793
|
}
|
|
1827
1794
|
);
|
|
1828
1795
|
}
|
|
1829
|
-
function
|
|
1796
|
+
function Jt(e) {
|
|
1830
1797
|
const t = {};
|
|
1831
1798
|
for (const r of e.matches)
|
|
1832
|
-
|
|
1799
|
+
Kt(t, r);
|
|
1833
1800
|
return t;
|
|
1834
1801
|
}
|
|
1835
|
-
function
|
|
1802
|
+
function Kt(e, t) {
|
|
1836
1803
|
t = Array.isArray(t) ? t : [t];
|
|
1837
1804
|
for (const r of t)
|
|
1838
1805
|
e[r.id] = {
|
|
1839
1806
|
links: r.links,
|
|
1840
1807
|
meta: r.meta,
|
|
1841
|
-
default:
|
|
1808
|
+
default: Qt
|
|
1842
1809
|
};
|
|
1843
1810
|
}
|
|
1844
|
-
var
|
|
1845
|
-
function
|
|
1846
|
-
if (
|
|
1847
|
-
return
|
|
1811
|
+
var Qt = () => null, Gt = "use", ve = k[Gt];
|
|
1812
|
+
function Yt(e) {
|
|
1813
|
+
if (ve)
|
|
1814
|
+
return ve(e);
|
|
1848
1815
|
throw new Error("React Router v7 requires React 19+ for RSC features.");
|
|
1849
1816
|
}
|
|
1850
|
-
async function
|
|
1817
|
+
async function hr({
|
|
1851
1818
|
request: e,
|
|
1852
1819
|
serverResponse: t,
|
|
1853
1820
|
createFromReadableStream: r,
|
|
@@ -1855,23 +1822,23 @@ async function mr({
|
|
|
1855
1822
|
hydrate: n = !0
|
|
1856
1823
|
}) {
|
|
1857
1824
|
const o = new URL(e.url);
|
|
1858
|
-
if (
|
|
1825
|
+
if (Zt(o) || er(o) || e.headers.has("rsc-action-id") || t.headers.get("React-Router-Resource") === "true")
|
|
1859
1826
|
return t;
|
|
1860
1827
|
if (!t.body)
|
|
1861
1828
|
throw new Error("Missing body in server response");
|
|
1862
1829
|
const s = t.clone();
|
|
1863
1830
|
let i = null;
|
|
1864
1831
|
n && (i = t.clone());
|
|
1865
|
-
const
|
|
1832
|
+
const u = t.body;
|
|
1866
1833
|
let h, p = [];
|
|
1867
1834
|
const w = () => h ? new ReadableStream({
|
|
1868
1835
|
start(m) {
|
|
1869
1836
|
h.forEach((d) => m.enqueue(d)), p.push(m);
|
|
1870
1837
|
}
|
|
1871
|
-
}) : (h = [],
|
|
1838
|
+
}) : (h = [], u.pipeThrough(
|
|
1872
1839
|
new TransformStream({
|
|
1873
1840
|
transform(m, d) {
|
|
1874
|
-
h.push(m), d.enqueue(m), p.forEach((
|
|
1841
|
+
h.push(m), d.enqueue(m), p.forEach((R) => R.enqueue(m));
|
|
1875
1842
|
},
|
|
1876
1843
|
flush() {
|
|
1877
1844
|
p.forEach((m) => m.close()), p = [];
|
|
@@ -1879,7 +1846,7 @@ async function mr({
|
|
|
1879
1846
|
})
|
|
1880
1847
|
));
|
|
1881
1848
|
let y = null;
|
|
1882
|
-
const
|
|
1849
|
+
const g = () => {
|
|
1883
1850
|
const m = Promise.resolve(
|
|
1884
1851
|
r(w())
|
|
1885
1852
|
);
|
|
@@ -1901,165 +1868,165 @@ async function mr({
|
|
|
1901
1868
|
}
|
|
1902
1869
|
});
|
|
1903
1870
|
};
|
|
1904
|
-
let
|
|
1871
|
+
let c, v;
|
|
1905
1872
|
try {
|
|
1906
1873
|
if (!s.body)
|
|
1907
1874
|
throw new Error("Failed to clone server response");
|
|
1908
1875
|
const m = await r(
|
|
1909
1876
|
s.body
|
|
1910
1877
|
);
|
|
1911
|
-
if (t.status ===
|
|
1912
|
-
const
|
|
1913
|
-
return
|
|
1914
|
-
headers:
|
|
1878
|
+
if (t.status === xe && m.type === "redirect") {
|
|
1879
|
+
const x = new Headers(t.headers);
|
|
1880
|
+
return x.delete("Content-Encoding"), x.delete("Content-Length"), x.delete("Content-Type"), x.delete("X-Remix-Response"), x.set("Location", m.location), new Response(i?.body || "", {
|
|
1881
|
+
headers: x,
|
|
1915
1882
|
status: m.status,
|
|
1916
1883
|
statusText: t.statusText
|
|
1917
1884
|
});
|
|
1918
1885
|
}
|
|
1919
|
-
let d = new Headers(),
|
|
1920
|
-
onError(
|
|
1921
|
-
if (typeof
|
|
1922
|
-
if (
|
|
1923
|
-
return
|
|
1924
|
-
let
|
|
1925
|
-
if (
|
|
1926
|
-
return
|
|
1886
|
+
let d = new Headers(), R = t.status, S = t.statusText, b = await a(g, {
|
|
1887
|
+
onError(x) {
|
|
1888
|
+
if (typeof x == "object" && x && "digest" in x && typeof x.digest == "string") {
|
|
1889
|
+
if (c = se(x.digest), c)
|
|
1890
|
+
return x.digest;
|
|
1891
|
+
let C = oe(x.digest);
|
|
1892
|
+
if (C)
|
|
1893
|
+
return v = C, R = C.status, S = C.statusText, x.digest;
|
|
1927
1894
|
}
|
|
1928
1895
|
},
|
|
1929
|
-
onHeaders(
|
|
1930
|
-
for (const [
|
|
1931
|
-
d.append(
|
|
1896
|
+
onHeaders(x) {
|
|
1897
|
+
for (const [C, D] of x)
|
|
1898
|
+
d.append(C, D);
|
|
1932
1899
|
}
|
|
1933
1900
|
});
|
|
1934
|
-
const
|
|
1935
|
-
for (const [
|
|
1936
|
-
|
|
1937
|
-
if (
|
|
1938
|
-
return
|
|
1939
|
-
status:
|
|
1940
|
-
headers:
|
|
1901
|
+
const E = new Headers(d);
|
|
1902
|
+
for (const [x, C] of t.headers)
|
|
1903
|
+
E.append(x, C);
|
|
1904
|
+
if (E.set("Content-Type", "text/html; charset=utf-8"), c)
|
|
1905
|
+
return E.set("Location", c.location), new Response(b, {
|
|
1906
|
+
status: c.status,
|
|
1907
|
+
headers: E
|
|
1941
1908
|
});
|
|
1942
|
-
const
|
|
1943
|
-
flush(
|
|
1944
|
-
|
|
1909
|
+
const _ = new TransformStream({
|
|
1910
|
+
flush(x) {
|
|
1911
|
+
c && x.enqueue(
|
|
1945
1912
|
new TextEncoder().encode(
|
|
1946
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
1913
|
+
`<meta http-equiv="refresh" content="0;url=${Q(c.location)}"/>`
|
|
1947
1914
|
)
|
|
1948
1915
|
);
|
|
1949
1916
|
}
|
|
1950
1917
|
});
|
|
1951
1918
|
if (!n)
|
|
1952
|
-
return new Response(b.pipeThrough(
|
|
1953
|
-
status:
|
|
1954
|
-
statusText:
|
|
1955
|
-
headers:
|
|
1919
|
+
return new Response(b.pipeThrough(_), {
|
|
1920
|
+
status: R,
|
|
1921
|
+
statusText: S,
|
|
1922
|
+
headers: E
|
|
1956
1923
|
});
|
|
1957
1924
|
if (!i?.body)
|
|
1958
1925
|
throw new Error("Failed to clone server response");
|
|
1959
|
-
const
|
|
1960
|
-
return new Response(
|
|
1961
|
-
status:
|
|
1962
|
-
statusText:
|
|
1963
|
-
headers:
|
|
1926
|
+
const F = b.pipeThrough(Re(i.body)).pipeThrough(_);
|
|
1927
|
+
return new Response(F, {
|
|
1928
|
+
status: R,
|
|
1929
|
+
statusText: S,
|
|
1930
|
+
headers: E
|
|
1964
1931
|
});
|
|
1965
1932
|
} catch (m) {
|
|
1966
1933
|
if (m instanceof Response)
|
|
1967
1934
|
return m;
|
|
1968
|
-
if (
|
|
1969
|
-
return new Response(`Redirect: ${
|
|
1970
|
-
status:
|
|
1935
|
+
if (c)
|
|
1936
|
+
return new Response(`Redirect: ${c.location}`, {
|
|
1937
|
+
status: c.status,
|
|
1971
1938
|
headers: {
|
|
1972
|
-
Location:
|
|
1939
|
+
Location: c.location
|
|
1973
1940
|
}
|
|
1974
1941
|
});
|
|
1975
1942
|
try {
|
|
1976
|
-
m =
|
|
1977
|
-
let [d,
|
|
1978
|
-
const
|
|
1943
|
+
m = v ?? m;
|
|
1944
|
+
let [d, R] = P(m) ? [m.status, m.statusText] : [500, ""], S, b = new Headers();
|
|
1945
|
+
const E = await a(
|
|
1979
1946
|
() => {
|
|
1980
|
-
const
|
|
1947
|
+
const D = Promise.resolve(
|
|
1981
1948
|
r(w())
|
|
1982
1949
|
).then(
|
|
1983
|
-
(
|
|
1950
|
+
(H) => Object.assign(H, {
|
|
1984
1951
|
status: d,
|
|
1985
1952
|
errors: y ? {
|
|
1986
1953
|
[y]: m
|
|
1987
1954
|
} : {}
|
|
1988
1955
|
})
|
|
1989
1956
|
);
|
|
1990
|
-
return Object.defineProperties(
|
|
1957
|
+
return Object.defineProperties(D, {
|
|
1991
1958
|
_deepestRenderedBoundaryId: {
|
|
1992
1959
|
get() {
|
|
1993
1960
|
return y;
|
|
1994
1961
|
},
|
|
1995
|
-
set(
|
|
1996
|
-
y =
|
|
1962
|
+
set(H) {
|
|
1963
|
+
y = H;
|
|
1997
1964
|
}
|
|
1998
1965
|
},
|
|
1999
1966
|
formState: {
|
|
2000
1967
|
get() {
|
|
2001
|
-
return
|
|
2002
|
-
(
|
|
1968
|
+
return D.then(
|
|
1969
|
+
(H) => H.type === "render" ? H.formState : void 0
|
|
2003
1970
|
);
|
|
2004
1971
|
}
|
|
2005
1972
|
}
|
|
2006
1973
|
});
|
|
2007
1974
|
},
|
|
2008
1975
|
{
|
|
2009
|
-
onError(
|
|
2010
|
-
if (typeof
|
|
2011
|
-
if (
|
|
2012
|
-
return
|
|
2013
|
-
let
|
|
2014
|
-
|
|
1976
|
+
onError(C) {
|
|
1977
|
+
if (typeof C == "object" && C && "digest" in C && typeof C.digest == "string") {
|
|
1978
|
+
if (S = se(C.digest), S)
|
|
1979
|
+
return C.digest;
|
|
1980
|
+
let D = oe(
|
|
1981
|
+
C.digest
|
|
2015
1982
|
);
|
|
2016
|
-
if (
|
|
2017
|
-
return d =
|
|
1983
|
+
if (D)
|
|
1984
|
+
return d = D.status, R = D.statusText, C.digest;
|
|
2018
1985
|
}
|
|
2019
1986
|
},
|
|
2020
|
-
onHeaders(
|
|
2021
|
-
for (const [
|
|
2022
|
-
b.append(
|
|
1987
|
+
onHeaders(C) {
|
|
1988
|
+
for (const [D, H] of C)
|
|
1989
|
+
b.append(D, H);
|
|
2023
1990
|
}
|
|
2024
1991
|
}
|
|
2025
|
-
),
|
|
2026
|
-
for (const [
|
|
2027
|
-
|
|
2028
|
-
if (
|
|
2029
|
-
return
|
|
2030
|
-
status:
|
|
2031
|
-
headers:
|
|
1992
|
+
), _ = new Headers(b);
|
|
1993
|
+
for (const [C, D] of t.headers)
|
|
1994
|
+
_.append(C, D);
|
|
1995
|
+
if (_.set("Content-Type", "text/html; charset=utf-8"), S)
|
|
1996
|
+
return _.set("Location", S.location), new Response(E, {
|
|
1997
|
+
status: S.status,
|
|
1998
|
+
headers: _
|
|
2032
1999
|
});
|
|
2033
|
-
const
|
|
2034
|
-
flush(
|
|
2035
|
-
|
|
2000
|
+
const F = new TransformStream({
|
|
2001
|
+
flush(C) {
|
|
2002
|
+
S && C.enqueue(
|
|
2036
2003
|
new TextEncoder().encode(
|
|
2037
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2004
|
+
`<meta http-equiv="refresh" content="0;url=${Q(S.location)}"/>`
|
|
2038
2005
|
)
|
|
2039
2006
|
);
|
|
2040
2007
|
}
|
|
2041
2008
|
});
|
|
2042
2009
|
if (!n)
|
|
2043
|
-
return new Response(
|
|
2010
|
+
return new Response(E.pipeThrough(F), {
|
|
2044
2011
|
status: d,
|
|
2045
|
-
statusText:
|
|
2046
|
-
headers:
|
|
2012
|
+
statusText: R,
|
|
2013
|
+
headers: _
|
|
2047
2014
|
});
|
|
2048
2015
|
if (!i?.body)
|
|
2049
2016
|
throw new Error("Failed to clone server response");
|
|
2050
|
-
const
|
|
2051
|
-
return new Response(
|
|
2017
|
+
const x = E.pipeThrough(Re(i.body)).pipeThrough(F);
|
|
2018
|
+
return new Response(x, {
|
|
2052
2019
|
status: d,
|
|
2053
|
-
statusText:
|
|
2054
|
-
headers:
|
|
2020
|
+
statusText: R,
|
|
2021
|
+
headers: _
|
|
2055
2022
|
});
|
|
2056
2023
|
} catch {
|
|
2057
2024
|
}
|
|
2058
2025
|
throw m;
|
|
2059
2026
|
}
|
|
2060
2027
|
}
|
|
2061
|
-
function
|
|
2062
|
-
const t = e(), r =
|
|
2028
|
+
function pr({ getPayload: e }) {
|
|
2029
|
+
const t = e(), r = Yt(t);
|
|
2063
2030
|
if (r.type === "redirect")
|
|
2064
2031
|
throw new Response(null, {
|
|
2065
2032
|
status: r.status,
|
|
@@ -2069,19 +2036,19 @@ function yr({ getPayload: e }) {
|
|
|
2069
2036
|
});
|
|
2070
2037
|
if (r.type !== "render") return null;
|
|
2071
2038
|
let a = { ...r.loaderData };
|
|
2072
|
-
for (const
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2039
|
+
for (const l of r.matches)
|
|
2040
|
+
ee(
|
|
2041
|
+
l.id,
|
|
2042
|
+
l.clientLoader,
|
|
2043
|
+
l.hasLoader,
|
|
2077
2044
|
!1
|
|
2078
|
-
) && (
|
|
2045
|
+
) && (l.hydrateFallbackElement || !l.hasLoader) && delete a[l.id];
|
|
2079
2046
|
const n = {
|
|
2080
2047
|
get _deepestRenderedBoundaryId() {
|
|
2081
2048
|
return t._deepestRenderedBoundaryId ?? null;
|
|
2082
2049
|
},
|
|
2083
|
-
set _deepestRenderedBoundaryId(
|
|
2084
|
-
t._deepestRenderedBoundaryId =
|
|
2050
|
+
set _deepestRenderedBoundaryId(l) {
|
|
2051
|
+
t._deepestRenderedBoundaryId = l;
|
|
2085
2052
|
},
|
|
2086
2053
|
actionData: r.actionData,
|
|
2087
2054
|
actionHeaders: {},
|
|
@@ -2091,23 +2058,23 @@ function yr({ getPayload: e }) {
|
|
|
2091
2058
|
loaderHeaders: {},
|
|
2092
2059
|
location: r.location,
|
|
2093
2060
|
statusCode: 200,
|
|
2094
|
-
matches: r.matches.map((
|
|
2095
|
-
params:
|
|
2096
|
-
pathname:
|
|
2097
|
-
pathnameBase:
|
|
2061
|
+
matches: r.matches.map((l) => ({
|
|
2062
|
+
params: l.params,
|
|
2063
|
+
pathname: l.pathname,
|
|
2064
|
+
pathnameBase: l.pathnameBase,
|
|
2098
2065
|
route: {
|
|
2099
|
-
id:
|
|
2100
|
-
action:
|
|
2101
|
-
handle:
|
|
2102
|
-
hasErrorBoundary:
|
|
2103
|
-
loader:
|
|
2104
|
-
index:
|
|
2105
|
-
path:
|
|
2106
|
-
shouldRevalidate:
|
|
2066
|
+
id: l.id,
|
|
2067
|
+
action: l.hasAction || !!l.clientAction,
|
|
2068
|
+
handle: l.handle,
|
|
2069
|
+
hasErrorBoundary: l.hasErrorBoundary,
|
|
2070
|
+
loader: l.hasLoader || !!l.clientLoader,
|
|
2071
|
+
index: l.index,
|
|
2072
|
+
path: l.path,
|
|
2073
|
+
shouldRevalidate: l.shouldRevalidate
|
|
2107
2074
|
}
|
|
2108
2075
|
}))
|
|
2109
|
-
}, o =
|
|
2110
|
-
r.matches.reduceRight((
|
|
2076
|
+
}, o = Ee(
|
|
2077
|
+
r.matches.reduceRight((l, s) => {
|
|
2111
2078
|
const i = {
|
|
2112
2079
|
id: s.id,
|
|
2113
2080
|
action: s.hasAction || !!s.clientAction,
|
|
@@ -2121,18 +2088,16 @@ function yr({ getPayload: e }) {
|
|
|
2121
2088
|
path: s.path,
|
|
2122
2089
|
shouldRevalidate: s.shouldRevalidate
|
|
2123
2090
|
};
|
|
2124
|
-
return
|
|
2091
|
+
return l.length > 0 && (i.children = l), [i];
|
|
2125
2092
|
}, []),
|
|
2126
2093
|
n
|
|
2127
|
-
),
|
|
2094
|
+
), f = {
|
|
2128
2095
|
future: {
|
|
2129
2096
|
// These flags have no runtime impact so can always be false. If we add
|
|
2130
2097
|
// flags that drive runtime behavior they'll need to be proxied through.
|
|
2131
2098
|
v8_middleware: !1,
|
|
2132
2099
|
unstable_subResourceIntegrity: !1,
|
|
2133
|
-
unstable_trailingSlashAwareDataRequests: !0
|
|
2134
|
-
// always on for RSC
|
|
2135
|
-
unstable_passThroughRequests: !0
|
|
2100
|
+
unstable_trailingSlashAwareDataRequests: !0
|
|
2136
2101
|
// always on for RSC
|
|
2137
2102
|
},
|
|
2138
2103
|
isSpaMode: !1,
|
|
@@ -2147,14 +2112,11 @@ function yr({ getPayload: e }) {
|
|
|
2147
2112
|
imports: []
|
|
2148
2113
|
}
|
|
2149
2114
|
},
|
|
2150
|
-
routeDiscovery:
|
|
2151
|
-
|
|
2152
|
-
manifestPath: r.routeDiscovery.manifestPath || Ce
|
|
2153
|
-
},
|
|
2154
|
-
routeModules: Kt(r)
|
|
2115
|
+
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2116
|
+
routeModules: Jt(r)
|
|
2155
2117
|
};
|
|
2156
|
-
return /* @__PURE__ */ k.createElement(
|
|
2157
|
-
|
|
2118
|
+
return /* @__PURE__ */ k.createElement(Ge.Provider, { value: !0 }, /* @__PURE__ */ k.createElement(Xt, { location: r.location }, /* @__PURE__ */ k.createElement(te.Provider, { value: f }, /* @__PURE__ */ k.createElement(
|
|
2119
|
+
Ce,
|
|
2158
2120
|
{
|
|
2159
2121
|
context: n,
|
|
2160
2122
|
router: o,
|
|
@@ -2163,13 +2125,13 @@ function yr({ getPayload: e }) {
|
|
|
2163
2125
|
}
|
|
2164
2126
|
))));
|
|
2165
2127
|
}
|
|
2166
|
-
function
|
|
2128
|
+
function Zt(e) {
|
|
2167
2129
|
return e.pathname.endsWith(".rsc");
|
|
2168
2130
|
}
|
|
2169
|
-
function
|
|
2131
|
+
function er(e) {
|
|
2170
2132
|
return e.pathname.endsWith(".manifest");
|
|
2171
2133
|
}
|
|
2172
|
-
function
|
|
2134
|
+
function mr(e) {
|
|
2173
2135
|
if (!e) return null;
|
|
2174
2136
|
let t = Object.entries(e), r = {};
|
|
2175
2137
|
for (let [a, n] of t)
|
|
@@ -2185,8 +2147,8 @@ function wr(e) {
|
|
|
2185
2147
|
let o = window[n.__subType];
|
|
2186
2148
|
if (typeof o == "function")
|
|
2187
2149
|
try {
|
|
2188
|
-
let
|
|
2189
|
-
|
|
2150
|
+
let f = new o(n.message);
|
|
2151
|
+
f.stack = n.stack, r[a] = f;
|
|
2190
2152
|
} catch {
|
|
2191
2153
|
}
|
|
2192
2154
|
}
|
|
@@ -2198,7 +2160,7 @@ function wr(e) {
|
|
|
2198
2160
|
r[a] = n;
|
|
2199
2161
|
return r;
|
|
2200
2162
|
}
|
|
2201
|
-
function
|
|
2163
|
+
function yr({
|
|
2202
2164
|
state: e,
|
|
2203
2165
|
routes: t,
|
|
2204
2166
|
getRouteInfo: r,
|
|
@@ -2206,163 +2168,157 @@ function gr({
|
|
|
2206
2168
|
basename: n,
|
|
2207
2169
|
isSpaMode: o
|
|
2208
2170
|
}) {
|
|
2209
|
-
let
|
|
2171
|
+
let f = {
|
|
2210
2172
|
...e,
|
|
2211
2173
|
loaderData: { ...e.loaderData }
|
|
2212
|
-
},
|
|
2213
|
-
if (
|
|
2214
|
-
for (let s of
|
|
2215
|
-
let i = s.route.id,
|
|
2216
|
-
|
|
2174
|
+
}, l = be(t, a, n);
|
|
2175
|
+
if (l)
|
|
2176
|
+
for (let s of l) {
|
|
2177
|
+
let i = s.route.id, u = r(i);
|
|
2178
|
+
ee(
|
|
2217
2179
|
i,
|
|
2218
|
-
|
|
2219
|
-
|
|
2180
|
+
u.clientLoader,
|
|
2181
|
+
u.hasLoader,
|
|
2220
2182
|
o
|
|
2221
|
-
) && (
|
|
2183
|
+
) && (u.hasHydrateFallback || !u.hasLoader) ? delete f.loaderData[i] : u.hasLoader || (f.loaderData[i] = null);
|
|
2222
2184
|
}
|
|
2223
|
-
return
|
|
2224
|
-
}
|
|
2225
|
-
const
|
|
2226
|
-
const e =
|
|
2227
|
-
return
|
|
2228
|
-
(
|
|
2229
|
-
|
|
2230
|
-
t(a);
|
|
2231
|
-
return;
|
|
2232
|
-
}
|
|
2233
|
-
e?.(a);
|
|
2234
|
-
},
|
|
2235
|
-
[t, e]
|
|
2185
|
+
return f;
|
|
2186
|
+
}
|
|
2187
|
+
const wr = () => {
|
|
2188
|
+
const e = ze((r) => r.navigateInHortiview);
|
|
2189
|
+
return je(
|
|
2190
|
+
(r) => e?.(r),
|
|
2191
|
+
[e]
|
|
2236
2192
|
);
|
|
2237
2193
|
};
|
|
2238
2194
|
export {
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2195
|
+
Sr as Await,
|
|
2196
|
+
vr as BrowserRouter,
|
|
2197
|
+
Er as Form,
|
|
2198
|
+
Cr as HashRouter,
|
|
2199
|
+
br as IDLE_BLOCKER,
|
|
2200
|
+
xr as IDLE_FETCHER,
|
|
2201
|
+
_r as IDLE_NAVIGATION,
|
|
2202
|
+
kr as Link,
|
|
2203
|
+
Ar as Links,
|
|
2204
|
+
Dr as MemoryRouter,
|
|
2205
|
+
Hr as Meta,
|
|
2206
|
+
Tr as NavLink,
|
|
2207
|
+
Fr as Navigate,
|
|
2208
|
+
Pr as NavigationType,
|
|
2209
|
+
at as Outlet,
|
|
2210
|
+
Ur as PrefetchPageLinks,
|
|
2211
|
+
Nr as Route,
|
|
2212
|
+
Lr as Router,
|
|
2257
2213
|
K as RouterContextProvider,
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2214
|
+
Qe as RouterProvider,
|
|
2215
|
+
Or as Routes,
|
|
2216
|
+
Ir as Scripts,
|
|
2217
|
+
Br as ScrollRestoration,
|
|
2218
|
+
nr as ServerRouter,
|
|
2219
|
+
Mr as StaticRouter,
|
|
2220
|
+
Ce as StaticRouterProvider,
|
|
2221
|
+
$r as UNSAFE_AwaitContextProvider,
|
|
2222
|
+
jr as UNSAFE_DataRouterContext,
|
|
2223
|
+
zr as UNSAFE_DataRouterStateContext,
|
|
2268
2224
|
O as UNSAFE_ErrorResponseImpl,
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2225
|
+
qr as UNSAFE_FetchersContext,
|
|
2226
|
+
te as UNSAFE_FrameworkContext,
|
|
2227
|
+
Vr as UNSAFE_LocationContext,
|
|
2228
|
+
Wr as UNSAFE_NavigationContext,
|
|
2229
|
+
fr as UNSAFE_RSCDefaultRootErrorBoundary,
|
|
2230
|
+
Ve as UNSAFE_RemixErrorBoundary,
|
|
2231
|
+
Xr as UNSAFE_RouteContext,
|
|
2232
|
+
_t as UNSAFE_ServerMode,
|
|
2277
2233
|
I as UNSAFE_SingleFetchRedirectSymbol,
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2234
|
+
Jr as UNSAFE_ViewTransitionContext,
|
|
2235
|
+
Kr as UNSAFE_WithComponentProps,
|
|
2236
|
+
Qr as UNSAFE_WithErrorBoundaryProps,
|
|
2237
|
+
Gr as UNSAFE_WithHydrateFallbackProps,
|
|
2238
|
+
Yr as UNSAFE_createBrowserHistory,
|
|
2239
|
+
Zr as UNSAFE_createClientRoutes,
|
|
2240
|
+
ea as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|
|
2241
|
+
ta as UNSAFE_createHashHistory,
|
|
2242
|
+
ra as UNSAFE_createMemoryHistory,
|
|
2243
|
+
aa as UNSAFE_createRouter,
|
|
2244
|
+
nt as UNSAFE_decodeViaTurboStream,
|
|
2245
|
+
mr as UNSAFE_deserializeErrors,
|
|
2246
|
+
yr as UNSAFE_getHydrationData,
|
|
2247
|
+
na as UNSAFE_getPatchRoutesOnNavigationFunction,
|
|
2248
|
+
sa as UNSAFE_getTurboStreamSingleFetchDataStrategy,
|
|
2249
|
+
oa as UNSAFE_hydrationRouteProperties,
|
|
2250
|
+
ia as UNSAFE_invariant,
|
|
2251
|
+
la as UNSAFE_mapRouteProperties,
|
|
2252
|
+
ee as UNSAFE_shouldHydrateRouteLoader,
|
|
2253
|
+
ua as UNSAFE_useFogOFWarDiscovery,
|
|
2254
|
+
da as UNSAFE_useScrollRestoration,
|
|
2255
|
+
rt as UNSAFE_withComponentProps,
|
|
2256
|
+
et as UNSAFE_withErrorBoundaryProps,
|
|
2257
|
+
tt as UNSAFE_withHydrateFallbackProps,
|
|
2258
|
+
ca as createBrowserRouter,
|
|
2259
|
+
fa as createContext,
|
|
2260
|
+
De as createCookie,
|
|
2261
|
+
ur as createCookieSessionStorage,
|
|
2262
|
+
ha as createHashRouter,
|
|
2263
|
+
Ke as createMemoryRouter,
|
|
2264
|
+
dr as createMemorySessionStorage,
|
|
2265
|
+
pa as createPath,
|
|
2266
|
+
ir as createRequestHandler,
|
|
2267
|
+
ma as createRoutesFromChildren,
|
|
2268
|
+
ya as createRoutesFromElements,
|
|
2269
|
+
sr as createRoutesStub,
|
|
2270
|
+
wa as createSearchParams,
|
|
2271
|
+
Be as createSession,
|
|
2272
|
+
zt as createSessionStorage,
|
|
2273
|
+
ga as createStaticHandler,
|
|
2274
|
+
Ee as createStaticRouter,
|
|
2275
|
+
Ra as data,
|
|
2276
|
+
Sa as generatePath,
|
|
2277
|
+
cr as href,
|
|
2278
|
+
He as isCookie,
|
|
2279
|
+
P as isRouteErrorResponse,
|
|
2280
|
+
lr as isSession,
|
|
2281
|
+
va as matchPath,
|
|
2282
|
+
be as matchRoutes,
|
|
2283
|
+
Ea as parsePath,
|
|
2284
|
+
it as redirect,
|
|
2285
|
+
st as redirectDocument,
|
|
2286
|
+
Ca as renderMatches,
|
|
2287
|
+
ot as replace,
|
|
2288
|
+
ba as resolvePath,
|
|
2289
|
+
xa as unstable_HistoryRouter,
|
|
2290
|
+
pr as unstable_RSCStaticRouter,
|
|
2291
|
+
hr as unstable_routeRSCServerRequest,
|
|
2292
|
+
or as unstable_setDevServerHooks,
|
|
2293
|
+
_a as unstable_usePrompt,
|
|
2294
|
+
ka as unstable_useRoute,
|
|
2295
|
+
Aa as useActionData,
|
|
2296
|
+
Da as useAsyncError,
|
|
2297
|
+
Ha as useAsyncValue,
|
|
2298
|
+
Ta as useBeforeUnload,
|
|
2299
|
+
Fa as useBlocker,
|
|
2300
|
+
Pa as useFetcher,
|
|
2301
|
+
Ua as useFetchers,
|
|
2302
|
+
Na as useFormAction,
|
|
2303
|
+
La as useHref,
|
|
2304
|
+
Oa as useInRouterContext,
|
|
2305
|
+
Ia as useLinkClickHandler,
|
|
2306
|
+
Ba as useLoaderData,
|
|
2307
|
+
Ma as useLocation,
|
|
2308
|
+
$a as useMatch,
|
|
2309
|
+
ja as useMatches,
|
|
2310
|
+
wr as useNavigate,
|
|
2311
|
+
za as useNavigation,
|
|
2312
|
+
qa as useNavigationType,
|
|
2313
|
+
Va as useOutlet,
|
|
2314
|
+
Wa as useOutletContext,
|
|
2315
|
+
Xa as useParams,
|
|
2316
|
+
Ja as useResolvedPath,
|
|
2317
|
+
Ka as useRevalidator,
|
|
2318
|
+
Xe as useRouteError,
|
|
2319
|
+
Qa as useRouteLoaderData,
|
|
2320
|
+
Ga as useRoutes,
|
|
2321
|
+
Ya as useSearchParams,
|
|
2322
|
+
Za as useSubmit,
|
|
2323
|
+
en as useViewTransitionState
|
|
2368
2324
|
};
|