@ichaingo/i18n 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/lib/i18n.d.ts +2 -0
- package/dist/lib/i18n.d.ts.map +1 -0
- package/dist/middleware.d.ts +2 -0
- package/dist/middleware.d.ts.map +1 -0
- package/dist/middleware.js +9 -0
- package/dist/navigation.d.ts +313 -0
- package/dist/navigation.d.ts.map +1 -0
- package/dist/navigation.js +10 -0
- package/dist/redirectWithLanguage.d.ts +6 -0
- package/dist/redirectWithLanguage.d.ts.map +1 -0
- package/dist/redirectWithLanguage.js +4008 -0
- package/dist/request.d.ts +3 -0
- package/dist/request.d.ts.map +1 -0
- package/dist/request.js +13 -0
- package/dist/routing.d.ts +19 -0
- package/dist/routing.d.ts.map +1 -0
- package/dist/routing.js +12 -0
- package/package.json +49 -0
|
@@ -0,0 +1,4008 @@
|
|
|
1
|
+
import { routing as Ce } from "./routing.js";
|
|
2
|
+
var De = { exports: {} }, Ue = {}, He = {}, Xe = {}, jt;
|
|
3
|
+
function qr() {
|
|
4
|
+
return jt || (jt = 1, (function(s) {
|
|
5
|
+
Object.defineProperty(s, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), Object.defineProperty(s, "detectDomainLocale", {
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
get: function() {
|
|
10
|
+
return o;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
function o(p, d, c) {
|
|
14
|
+
if (p) {
|
|
15
|
+
c && (c = c.toLowerCase());
|
|
16
|
+
for (const t of p) {
|
|
17
|
+
var E, u;
|
|
18
|
+
const f = (E = t.domain) == null ? void 0 : E.split(":", 1)[0].toLowerCase();
|
|
19
|
+
if (d === f || c === t.defaultLocale.toLowerCase() || (u = t.locales) != null && u.some((m) => m.toLowerCase() === c))
|
|
20
|
+
return t;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
})(Xe)), Xe;
|
|
25
|
+
}
|
|
26
|
+
var $e = {}, Ge = {}, Lt;
|
|
27
|
+
function Ur() {
|
|
28
|
+
return Lt || (Lt = 1, (function(s) {
|
|
29
|
+
Object.defineProperty(s, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), Object.defineProperty(s, "removeTrailingSlash", {
|
|
32
|
+
enumerable: !0,
|
|
33
|
+
get: function() {
|
|
34
|
+
return o;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
function o(p) {
|
|
38
|
+
return p.replace(/\/$/, "") || "/";
|
|
39
|
+
}
|
|
40
|
+
})(Ge)), Ge;
|
|
41
|
+
}
|
|
42
|
+
var Fe = {}, We = {}, Mt;
|
|
43
|
+
function Nt() {
|
|
44
|
+
return Mt || (Mt = 1, (function(s) {
|
|
45
|
+
Object.defineProperty(s, "__esModule", {
|
|
46
|
+
value: !0
|
|
47
|
+
}), Object.defineProperty(s, "parsePath", {
|
|
48
|
+
enumerable: !0,
|
|
49
|
+
get: function() {
|
|
50
|
+
return o;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
function o(p) {
|
|
54
|
+
const d = p.indexOf("#"), c = p.indexOf("?"), E = c > -1 && (d < 0 || c < d);
|
|
55
|
+
return E || d > -1 ? {
|
|
56
|
+
pathname: p.substring(0, E ? c : d),
|
|
57
|
+
query: E ? p.substring(c, d > -1 ? d : void 0) : "",
|
|
58
|
+
hash: d > -1 ? p.slice(d) : ""
|
|
59
|
+
} : {
|
|
60
|
+
pathname: p,
|
|
61
|
+
query: "",
|
|
62
|
+
hash: ""
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
})(We)), We;
|
|
66
|
+
}
|
|
67
|
+
var qt;
|
|
68
|
+
function xr() {
|
|
69
|
+
return qt || (qt = 1, (function(s) {
|
|
70
|
+
Object.defineProperty(s, "__esModule", {
|
|
71
|
+
value: !0
|
|
72
|
+
}), Object.defineProperty(s, "addPathPrefix", {
|
|
73
|
+
enumerable: !0,
|
|
74
|
+
get: function() {
|
|
75
|
+
return p;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
const o = Nt();
|
|
79
|
+
function p(d, c) {
|
|
80
|
+
if (!d.startsWith("/") || !c)
|
|
81
|
+
return d;
|
|
82
|
+
const { pathname: E, query: u, hash: t } = (0, o.parsePath)(d);
|
|
83
|
+
return "" + c + E + u + t;
|
|
84
|
+
}
|
|
85
|
+
})(Fe)), Fe;
|
|
86
|
+
}
|
|
87
|
+
var Be = {}, Ut;
|
|
88
|
+
function Hr() {
|
|
89
|
+
return Ut || (Ut = 1, (function(s) {
|
|
90
|
+
Object.defineProperty(s, "__esModule", {
|
|
91
|
+
value: !0
|
|
92
|
+
}), Object.defineProperty(s, "addPathSuffix", {
|
|
93
|
+
enumerable: !0,
|
|
94
|
+
get: function() {
|
|
95
|
+
return p;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
const o = Nt();
|
|
99
|
+
function p(d, c) {
|
|
100
|
+
if (!d.startsWith("/") || !c)
|
|
101
|
+
return d;
|
|
102
|
+
const { pathname: E, query: u, hash: t } = (0, o.parsePath)(d);
|
|
103
|
+
return "" + E + c + u + t;
|
|
104
|
+
}
|
|
105
|
+
})(Be)), Be;
|
|
106
|
+
}
|
|
107
|
+
var Ye = {}, ze = {}, Ht;
|
|
108
|
+
function Ct() {
|
|
109
|
+
return Ht || (Ht = 1, (function(s) {
|
|
110
|
+
Object.defineProperty(s, "__esModule", {
|
|
111
|
+
value: !0
|
|
112
|
+
}), Object.defineProperty(s, "pathHasPrefix", {
|
|
113
|
+
enumerable: !0,
|
|
114
|
+
get: function() {
|
|
115
|
+
return p;
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
const o = Nt();
|
|
119
|
+
function p(d, c) {
|
|
120
|
+
if (typeof d != "string")
|
|
121
|
+
return !1;
|
|
122
|
+
const { pathname: E } = (0, o.parsePath)(d);
|
|
123
|
+
return E === c || E.startsWith(c + "/");
|
|
124
|
+
}
|
|
125
|
+
})(ze)), ze;
|
|
126
|
+
}
|
|
127
|
+
var Xt;
|
|
128
|
+
function Xr() {
|
|
129
|
+
return Xt || (Xt = 1, (function(s) {
|
|
130
|
+
Object.defineProperty(s, "__esModule", {
|
|
131
|
+
value: !0
|
|
132
|
+
}), Object.defineProperty(s, "addLocale", {
|
|
133
|
+
enumerable: !0,
|
|
134
|
+
get: function() {
|
|
135
|
+
return d;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
const o = xr(), p = Ct();
|
|
139
|
+
function d(c, E, u, t) {
|
|
140
|
+
if (!E || E === u) return c;
|
|
141
|
+
const f = c.toLowerCase();
|
|
142
|
+
return !t && ((0, p.pathHasPrefix)(f, "/api") || (0, p.pathHasPrefix)(f, "/" + E.toLowerCase())) ? c : (0, o.addPathPrefix)(c, "/" + E);
|
|
143
|
+
}
|
|
144
|
+
})(Ye)), Ye;
|
|
145
|
+
}
|
|
146
|
+
var $t;
|
|
147
|
+
function $r() {
|
|
148
|
+
return $t || ($t = 1, (function(s) {
|
|
149
|
+
Object.defineProperty(s, "__esModule", {
|
|
150
|
+
value: !0
|
|
151
|
+
}), Object.defineProperty(s, "formatNextPathnameInfo", {
|
|
152
|
+
enumerable: !0,
|
|
153
|
+
get: function() {
|
|
154
|
+
return E;
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
const o = Ur(), p = xr(), d = Hr(), c = Xr();
|
|
158
|
+
function E(u) {
|
|
159
|
+
let t = (0, c.addLocale)(u.pathname, u.locale, u.buildId ? void 0 : u.defaultLocale, u.ignorePrefix);
|
|
160
|
+
return (u.buildId || !u.trailingSlash) && (t = (0, o.removeTrailingSlash)(t)), u.buildId && (t = (0, d.addPathSuffix)((0, p.addPathPrefix)(t, "/_next/data/" + u.buildId), u.pathname === "/" ? "index.json" : ".json")), t = (0, p.addPathPrefix)(t, u.basePath), !u.buildId && u.trailingSlash ? t.endsWith("/") ? t : (0, d.addPathSuffix)(t, "/") : (0, o.removeTrailingSlash)(t);
|
|
161
|
+
}
|
|
162
|
+
})($e)), $e;
|
|
163
|
+
}
|
|
164
|
+
var Ve = {}, Gt;
|
|
165
|
+
function Gr() {
|
|
166
|
+
return Gt || (Gt = 1, (function(s) {
|
|
167
|
+
Object.defineProperty(s, "__esModule", {
|
|
168
|
+
value: !0
|
|
169
|
+
}), Object.defineProperty(s, "getHostname", {
|
|
170
|
+
enumerable: !0,
|
|
171
|
+
get: function() {
|
|
172
|
+
return o;
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
function o(p, d) {
|
|
176
|
+
let c;
|
|
177
|
+
if (d != null && d.host && !Array.isArray(d.host))
|
|
178
|
+
c = d.host.toString().split(":", 1)[0];
|
|
179
|
+
else if (p.hostname)
|
|
180
|
+
c = p.hostname;
|
|
181
|
+
else return;
|
|
182
|
+
return c.toLowerCase();
|
|
183
|
+
}
|
|
184
|
+
})(Ve)), Ve;
|
|
185
|
+
}
|
|
186
|
+
var Ke = {}, Qe = {}, Ft;
|
|
187
|
+
function Fr() {
|
|
188
|
+
return Ft || (Ft = 1, (function(s) {
|
|
189
|
+
Object.defineProperty(s, "__esModule", {
|
|
190
|
+
value: !0
|
|
191
|
+
}), Object.defineProperty(s, "normalizeLocalePath", {
|
|
192
|
+
enumerable: !0,
|
|
193
|
+
get: function() {
|
|
194
|
+
return p;
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
const o = /* @__PURE__ */ new WeakMap();
|
|
198
|
+
function p(d, c) {
|
|
199
|
+
if (!c) return {
|
|
200
|
+
pathname: d
|
|
201
|
+
};
|
|
202
|
+
let E = o.get(c);
|
|
203
|
+
E || (E = c.map((a) => a.toLowerCase()), o.set(c, E));
|
|
204
|
+
let u;
|
|
205
|
+
const t = d.split("/", 2);
|
|
206
|
+
if (!t[1]) return {
|
|
207
|
+
pathname: d
|
|
208
|
+
};
|
|
209
|
+
const f = t[1].toLowerCase(), m = E.indexOf(f);
|
|
210
|
+
return m < 0 ? {
|
|
211
|
+
pathname: d
|
|
212
|
+
} : (u = c[m], d = d.slice(u.length + 1) || "/", {
|
|
213
|
+
pathname: d,
|
|
214
|
+
detectedLocale: u
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
})(Qe)), Qe;
|
|
218
|
+
}
|
|
219
|
+
var Ze = {}, Wt;
|
|
220
|
+
function Wr() {
|
|
221
|
+
return Wt || (Wt = 1, (function(s) {
|
|
222
|
+
Object.defineProperty(s, "__esModule", {
|
|
223
|
+
value: !0
|
|
224
|
+
}), Object.defineProperty(s, "removePathPrefix", {
|
|
225
|
+
enumerable: !0,
|
|
226
|
+
get: function() {
|
|
227
|
+
return p;
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
const o = Ct();
|
|
231
|
+
function p(d, c) {
|
|
232
|
+
if (!(0, o.pathHasPrefix)(d, c))
|
|
233
|
+
return d;
|
|
234
|
+
const E = d.slice(c.length);
|
|
235
|
+
return E.startsWith("/") ? E : "/" + E;
|
|
236
|
+
}
|
|
237
|
+
})(Ze)), Ze;
|
|
238
|
+
}
|
|
239
|
+
var Bt;
|
|
240
|
+
function Br() {
|
|
241
|
+
return Bt || (Bt = 1, (function(s) {
|
|
242
|
+
Object.defineProperty(s, "__esModule", {
|
|
243
|
+
value: !0
|
|
244
|
+
}), Object.defineProperty(s, "getNextPathnameInfo", {
|
|
245
|
+
enumerable: !0,
|
|
246
|
+
get: function() {
|
|
247
|
+
return c;
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
const o = Fr(), p = Wr(), d = Ct();
|
|
251
|
+
function c(E, u) {
|
|
252
|
+
var t;
|
|
253
|
+
const { basePath: f, i18n: m, trailingSlash: a } = (t = u.nextConfig) != null ? t : {}, h = {
|
|
254
|
+
pathname: E,
|
|
255
|
+
trailingSlash: E !== "/" ? E.endsWith("/") : a
|
|
256
|
+
};
|
|
257
|
+
f && (0, d.pathHasPrefix)(h.pathname, f) && (h.pathname = (0, p.removePathPrefix)(h.pathname, f), h.basePath = f);
|
|
258
|
+
let A = h.pathname;
|
|
259
|
+
if (h.pathname.startsWith("/_next/data/") && h.pathname.endsWith(".json")) {
|
|
260
|
+
const k = h.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), X = k[0];
|
|
261
|
+
h.buildId = X, A = k[1] !== "index" ? "/" + k.slice(1).join("/") : "/", u.parseData === !0 && (h.pathname = A);
|
|
262
|
+
}
|
|
263
|
+
if (m) {
|
|
264
|
+
let k = u.i18nProvider ? u.i18nProvider.analyze(h.pathname) : (0, o.normalizeLocalePath)(h.pathname, m.locales);
|
|
265
|
+
h.locale = k.detectedLocale;
|
|
266
|
+
var x;
|
|
267
|
+
h.pathname = (x = k.pathname) != null ? x : h.pathname, !k.detectedLocale && h.buildId && (k = u.i18nProvider ? u.i18nProvider.analyze(A) : (0, o.normalizeLocalePath)(A, m.locales), k.detectedLocale && (h.locale = k.detectedLocale));
|
|
268
|
+
}
|
|
269
|
+
return h;
|
|
270
|
+
}
|
|
271
|
+
})(Ke)), Ke;
|
|
272
|
+
}
|
|
273
|
+
var Yt;
|
|
274
|
+
function Dr() {
|
|
275
|
+
return Yt || (Yt = 1, (function(s) {
|
|
276
|
+
Object.defineProperty(s, "__esModule", {
|
|
277
|
+
value: !0
|
|
278
|
+
}), Object.defineProperty(s, "NextURL", {
|
|
279
|
+
enumerable: !0,
|
|
280
|
+
get: function() {
|
|
281
|
+
return f;
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
const o = qr(), p = $r(), d = Gr(), c = Br(), E = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
285
|
+
function u(m, a) {
|
|
286
|
+
return new URL(String(m).replace(E, "localhost"), a && String(a).replace(E, "localhost"));
|
|
287
|
+
}
|
|
288
|
+
const t = Symbol("NextURLInternal");
|
|
289
|
+
class f {
|
|
290
|
+
constructor(a, h, A) {
|
|
291
|
+
let x, k;
|
|
292
|
+
typeof h == "object" && "pathname" in h || typeof h == "string" ? (x = h, k = A || {}) : k = A || h || {}, this[t] = {
|
|
293
|
+
url: u(a, x ?? k.base),
|
|
294
|
+
options: k,
|
|
295
|
+
basePath: ""
|
|
296
|
+
}, this.analyze();
|
|
297
|
+
}
|
|
298
|
+
analyze() {
|
|
299
|
+
var a, h, A, x, k;
|
|
300
|
+
const X = (0, c.getNextPathnameInfo)(this[t].url.pathname, {
|
|
301
|
+
nextConfig: this[t].options.nextConfig,
|
|
302
|
+
parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
|
|
303
|
+
i18nProvider: this[t].options.i18nProvider
|
|
304
|
+
}), l = (0, d.getHostname)(this[t].url, this[t].options.headers);
|
|
305
|
+
this[t].domainLocale = this[t].options.i18nProvider ? this[t].options.i18nProvider.detectDomainLocale(l) : (0, o.detectDomainLocale)((h = this[t].options.nextConfig) == null || (a = h.i18n) == null ? void 0 : a.domains, l);
|
|
306
|
+
const y = ((A = this[t].domainLocale) == null ? void 0 : A.defaultLocale) || ((k = this[t].options.nextConfig) == null || (x = k.i18n) == null ? void 0 : x.defaultLocale);
|
|
307
|
+
this[t].url.pathname = X.pathname, this[t].defaultLocale = y, this[t].basePath = X.basePath ?? "", this[t].buildId = X.buildId, this[t].locale = X.locale ?? y, this[t].trailingSlash = X.trailingSlash;
|
|
308
|
+
}
|
|
309
|
+
formatPathname() {
|
|
310
|
+
return (0, p.formatNextPathnameInfo)({
|
|
311
|
+
basePath: this[t].basePath,
|
|
312
|
+
buildId: this[t].buildId,
|
|
313
|
+
defaultLocale: this[t].options.forceLocale ? void 0 : this[t].defaultLocale,
|
|
314
|
+
locale: this[t].locale,
|
|
315
|
+
pathname: this[t].url.pathname,
|
|
316
|
+
trailingSlash: this[t].trailingSlash
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
formatSearch() {
|
|
320
|
+
return this[t].url.search;
|
|
321
|
+
}
|
|
322
|
+
get buildId() {
|
|
323
|
+
return this[t].buildId;
|
|
324
|
+
}
|
|
325
|
+
set buildId(a) {
|
|
326
|
+
this[t].buildId = a;
|
|
327
|
+
}
|
|
328
|
+
get locale() {
|
|
329
|
+
return this[t].locale ?? "";
|
|
330
|
+
}
|
|
331
|
+
set locale(a) {
|
|
332
|
+
var h, A;
|
|
333
|
+
if (!this[t].locale || !(!((A = this[t].options.nextConfig) == null || (h = A.i18n) == null) && h.locales.includes(a)))
|
|
334
|
+
throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${a}"`), "__NEXT_ERROR_CODE", {
|
|
335
|
+
value: "E597",
|
|
336
|
+
enumerable: !1,
|
|
337
|
+
configurable: !0
|
|
338
|
+
});
|
|
339
|
+
this[t].locale = a;
|
|
340
|
+
}
|
|
341
|
+
get defaultLocale() {
|
|
342
|
+
return this[t].defaultLocale;
|
|
343
|
+
}
|
|
344
|
+
get domainLocale() {
|
|
345
|
+
return this[t].domainLocale;
|
|
346
|
+
}
|
|
347
|
+
get searchParams() {
|
|
348
|
+
return this[t].url.searchParams;
|
|
349
|
+
}
|
|
350
|
+
get host() {
|
|
351
|
+
return this[t].url.host;
|
|
352
|
+
}
|
|
353
|
+
set host(a) {
|
|
354
|
+
this[t].url.host = a;
|
|
355
|
+
}
|
|
356
|
+
get hostname() {
|
|
357
|
+
return this[t].url.hostname;
|
|
358
|
+
}
|
|
359
|
+
set hostname(a) {
|
|
360
|
+
this[t].url.hostname = a;
|
|
361
|
+
}
|
|
362
|
+
get port() {
|
|
363
|
+
return this[t].url.port;
|
|
364
|
+
}
|
|
365
|
+
set port(a) {
|
|
366
|
+
this[t].url.port = a;
|
|
367
|
+
}
|
|
368
|
+
get protocol() {
|
|
369
|
+
return this[t].url.protocol;
|
|
370
|
+
}
|
|
371
|
+
set protocol(a) {
|
|
372
|
+
this[t].url.protocol = a;
|
|
373
|
+
}
|
|
374
|
+
get href() {
|
|
375
|
+
const a = this.formatPathname(), h = this.formatSearch();
|
|
376
|
+
return `${this.protocol}//${this.host}${a}${h}${this.hash}`;
|
|
377
|
+
}
|
|
378
|
+
set href(a) {
|
|
379
|
+
this[t].url = u(a), this.analyze();
|
|
380
|
+
}
|
|
381
|
+
get origin() {
|
|
382
|
+
return this[t].url.origin;
|
|
383
|
+
}
|
|
384
|
+
get pathname() {
|
|
385
|
+
return this[t].url.pathname;
|
|
386
|
+
}
|
|
387
|
+
set pathname(a) {
|
|
388
|
+
this[t].url.pathname = a;
|
|
389
|
+
}
|
|
390
|
+
get hash() {
|
|
391
|
+
return this[t].url.hash;
|
|
392
|
+
}
|
|
393
|
+
set hash(a) {
|
|
394
|
+
this[t].url.hash = a;
|
|
395
|
+
}
|
|
396
|
+
get search() {
|
|
397
|
+
return this[t].url.search;
|
|
398
|
+
}
|
|
399
|
+
set search(a) {
|
|
400
|
+
this[t].url.search = a;
|
|
401
|
+
}
|
|
402
|
+
get password() {
|
|
403
|
+
return this[t].url.password;
|
|
404
|
+
}
|
|
405
|
+
set password(a) {
|
|
406
|
+
this[t].url.password = a;
|
|
407
|
+
}
|
|
408
|
+
get username() {
|
|
409
|
+
return this[t].url.username;
|
|
410
|
+
}
|
|
411
|
+
set username(a) {
|
|
412
|
+
this[t].url.username = a;
|
|
413
|
+
}
|
|
414
|
+
get basePath() {
|
|
415
|
+
return this[t].basePath;
|
|
416
|
+
}
|
|
417
|
+
set basePath(a) {
|
|
418
|
+
this[t].basePath = a.startsWith("/") ? a : `/${a}`;
|
|
419
|
+
}
|
|
420
|
+
toString() {
|
|
421
|
+
return this.href;
|
|
422
|
+
}
|
|
423
|
+
toJSON() {
|
|
424
|
+
return this.href;
|
|
425
|
+
}
|
|
426
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
427
|
+
return {
|
|
428
|
+
href: this.href,
|
|
429
|
+
origin: this.origin,
|
|
430
|
+
protocol: this.protocol,
|
|
431
|
+
username: this.username,
|
|
432
|
+
password: this.password,
|
|
433
|
+
host: this.host,
|
|
434
|
+
hostname: this.hostname,
|
|
435
|
+
port: this.port,
|
|
436
|
+
pathname: this.pathname,
|
|
437
|
+
search: this.search,
|
|
438
|
+
searchParams: this.searchParams,
|
|
439
|
+
hash: this.hash
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
clone() {
|
|
443
|
+
return new f(String(this), this[t].options);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
})(He)), He;
|
|
447
|
+
}
|
|
448
|
+
var Je = {}, et = {}, zt;
|
|
449
|
+
function Yr() {
|
|
450
|
+
return zt || (zt = 1, (function(s) {
|
|
451
|
+
Object.defineProperty(s, "__esModule", {
|
|
452
|
+
value: !0
|
|
453
|
+
});
|
|
454
|
+
function o(G, Ee) {
|
|
455
|
+
for (var we in Ee) Object.defineProperty(G, we, {
|
|
456
|
+
enumerable: !0,
|
|
457
|
+
get: Ee[we]
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
o(s, {
|
|
461
|
+
ACTION_SUFFIX: function() {
|
|
462
|
+
return h;
|
|
463
|
+
},
|
|
464
|
+
APP_DIR_ALIAS: function() {
|
|
465
|
+
return se;
|
|
466
|
+
},
|
|
467
|
+
CACHE_ONE_YEAR: function() {
|
|
468
|
+
return R;
|
|
469
|
+
},
|
|
470
|
+
DOT_NEXT_ALIAS: function() {
|
|
471
|
+
return ae;
|
|
472
|
+
},
|
|
473
|
+
ESLINT_DEFAULT_DIRS: function() {
|
|
474
|
+
return w;
|
|
475
|
+
},
|
|
476
|
+
GSP_NO_RETURNED_VALUE: function() {
|
|
477
|
+
return pe;
|
|
478
|
+
},
|
|
479
|
+
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
480
|
+
return be;
|
|
481
|
+
},
|
|
482
|
+
GSSP_NO_RETURNED_VALUE: function() {
|
|
483
|
+
return ye;
|
|
484
|
+
},
|
|
485
|
+
INFINITE_CACHE: function() {
|
|
486
|
+
return P;
|
|
487
|
+
},
|
|
488
|
+
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
489
|
+
return B;
|
|
490
|
+
},
|
|
491
|
+
MATCHED_PATH_HEADER: function() {
|
|
492
|
+
return c;
|
|
493
|
+
},
|
|
494
|
+
MIDDLEWARE_FILENAME: function() {
|
|
495
|
+
return I;
|
|
496
|
+
},
|
|
497
|
+
MIDDLEWARE_LOCATION_REGEXP: function() {
|
|
498
|
+
return Q;
|
|
499
|
+
},
|
|
500
|
+
NEXT_BODY_SUFFIX: function() {
|
|
501
|
+
return k;
|
|
502
|
+
},
|
|
503
|
+
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
504
|
+
return N;
|
|
505
|
+
},
|
|
506
|
+
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
507
|
+
return l;
|
|
508
|
+
},
|
|
509
|
+
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
510
|
+
return y;
|
|
511
|
+
},
|
|
512
|
+
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
513
|
+
return n;
|
|
514
|
+
},
|
|
515
|
+
NEXT_CACHE_TAGS_HEADER: function() {
|
|
516
|
+
return X;
|
|
517
|
+
},
|
|
518
|
+
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
519
|
+
return g;
|
|
520
|
+
},
|
|
521
|
+
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
522
|
+
return S;
|
|
523
|
+
},
|
|
524
|
+
NEXT_DATA_SUFFIX: function() {
|
|
525
|
+
return A;
|
|
526
|
+
},
|
|
527
|
+
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
528
|
+
return d;
|
|
529
|
+
},
|
|
530
|
+
NEXT_META_SUFFIX: function() {
|
|
531
|
+
return x;
|
|
532
|
+
},
|
|
533
|
+
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
534
|
+
return p;
|
|
535
|
+
},
|
|
536
|
+
NEXT_RESUME_HEADER: function() {
|
|
537
|
+
return _;
|
|
538
|
+
},
|
|
539
|
+
NON_STANDARD_NODE_ENV: function() {
|
|
540
|
+
return ve;
|
|
541
|
+
},
|
|
542
|
+
PAGES_DIR_ALIAS: function() {
|
|
543
|
+
return ne;
|
|
544
|
+
},
|
|
545
|
+
PRERENDER_REVALIDATE_HEADER: function() {
|
|
546
|
+
return E;
|
|
547
|
+
},
|
|
548
|
+
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
549
|
+
return u;
|
|
550
|
+
},
|
|
551
|
+
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
552
|
+
return j;
|
|
553
|
+
},
|
|
554
|
+
ROOT_DIR_ALIAS: function() {
|
|
555
|
+
return oe;
|
|
556
|
+
},
|
|
557
|
+
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
558
|
+
return M;
|
|
559
|
+
},
|
|
560
|
+
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
561
|
+
return v;
|
|
562
|
+
},
|
|
563
|
+
RSC_ACTION_PROXY_ALIAS: function() {
|
|
564
|
+
return de;
|
|
565
|
+
},
|
|
566
|
+
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
567
|
+
return ue;
|
|
568
|
+
},
|
|
569
|
+
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
570
|
+
return me;
|
|
571
|
+
},
|
|
572
|
+
RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
|
|
573
|
+
return r;
|
|
574
|
+
},
|
|
575
|
+
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
576
|
+
return le;
|
|
577
|
+
},
|
|
578
|
+
RSC_PREFETCH_SUFFIX: function() {
|
|
579
|
+
return t;
|
|
580
|
+
},
|
|
581
|
+
RSC_SEGMENTS_DIR_SUFFIX: function() {
|
|
582
|
+
return f;
|
|
583
|
+
},
|
|
584
|
+
RSC_SEGMENT_SUFFIX: function() {
|
|
585
|
+
return m;
|
|
586
|
+
},
|
|
587
|
+
RSC_SUFFIX: function() {
|
|
588
|
+
return a;
|
|
589
|
+
},
|
|
590
|
+
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
591
|
+
return te;
|
|
592
|
+
},
|
|
593
|
+
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
594
|
+
return J;
|
|
595
|
+
},
|
|
596
|
+
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
597
|
+
return U;
|
|
598
|
+
},
|
|
599
|
+
SERVER_RUNTIME: function() {
|
|
600
|
+
return O;
|
|
601
|
+
},
|
|
602
|
+
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
603
|
+
return b;
|
|
604
|
+
},
|
|
605
|
+
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
606
|
+
return $;
|
|
607
|
+
},
|
|
608
|
+
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
609
|
+
return fe;
|
|
610
|
+
},
|
|
611
|
+
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
612
|
+
return Re;
|
|
613
|
+
},
|
|
614
|
+
WEBPACK_LAYERS: function() {
|
|
615
|
+
return ie;
|
|
616
|
+
},
|
|
617
|
+
WEBPACK_RESOURCE_QUERIES: function() {
|
|
618
|
+
return ce;
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
const p = "nxtP", d = "nxtI", c = "x-matched-path", E = "x-prerender-revalidate", u = "x-prerender-revalidate-if-generated", t = ".prefetch.rsc", f = ".segments", m = ".segment.rsc", a = ".rsc", h = ".action", A = ".json", x = ".meta", k = ".body", X = "x-next-cache-tags", l = "x-next-revalidated-tags", y = "x-next-revalidate-tag-token", _ = "next-resume", g = 128, S = 256, n = 1024, N = "_N_T_", R = 31536e3, P = 4294967294, I = "middleware", Q = `(?:src/)?${I}`, B = "instrumentation", ne = "private-next-pages", ae = "private-dot-next", oe = "private-next-root-dir", se = "private-next-app-dir", le = "private-next-rsc-mod-ref-proxy", ue = "private-next-rsc-action-validate", de = "private-next-rsc-server-reference", me = "private-next-rsc-cache-wrapper", r = "private-next-rsc-track-dynamic-import", v = "private-next-rsc-action-encryption", M = "private-next-rsc-action-client-wrapper", j = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", $ = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", J = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", U = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", fe = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", te = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", pe = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", ye = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", Re = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", be = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", ve = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', b = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", w = [
|
|
622
|
+
"app",
|
|
623
|
+
"pages",
|
|
624
|
+
"components",
|
|
625
|
+
"lib",
|
|
626
|
+
"src"
|
|
627
|
+
], O = {
|
|
628
|
+
edge: "edge",
|
|
629
|
+
experimentalEdge: "experimental-edge",
|
|
630
|
+
nodejs: "nodejs"
|
|
631
|
+
}, D = {
|
|
632
|
+
/**
|
|
633
|
+
* The layer for the shared code between the client and server bundles.
|
|
634
|
+
*/
|
|
635
|
+
shared: "shared",
|
|
636
|
+
/**
|
|
637
|
+
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
638
|
+
* Including app router RSC pages and app router custom routes and metadata routes.
|
|
639
|
+
*/
|
|
640
|
+
reactServerComponents: "rsc",
|
|
641
|
+
/**
|
|
642
|
+
* Server Side Rendering layer for app (ssr).
|
|
643
|
+
*/
|
|
644
|
+
serverSideRendering: "ssr",
|
|
645
|
+
/**
|
|
646
|
+
* The browser client bundle layer for actions.
|
|
647
|
+
*/
|
|
648
|
+
actionBrowser: "action-browser",
|
|
649
|
+
/**
|
|
650
|
+
* The Node.js bundle layer for the API routes.
|
|
651
|
+
*/
|
|
652
|
+
apiNode: "api-node",
|
|
653
|
+
/**
|
|
654
|
+
* The Edge Lite bundle layer for the API routes.
|
|
655
|
+
*/
|
|
656
|
+
apiEdge: "api-edge",
|
|
657
|
+
/**
|
|
658
|
+
* The layer for the middleware code.
|
|
659
|
+
*/
|
|
660
|
+
middleware: "middleware",
|
|
661
|
+
/**
|
|
662
|
+
* The layer for the instrumentation hooks.
|
|
663
|
+
*/
|
|
664
|
+
instrument: "instrument",
|
|
665
|
+
/**
|
|
666
|
+
* The layer for assets on the edge.
|
|
667
|
+
*/
|
|
668
|
+
edgeAsset: "edge-asset",
|
|
669
|
+
/**
|
|
670
|
+
* The browser client bundle layer for App directory.
|
|
671
|
+
*/
|
|
672
|
+
appPagesBrowser: "app-pages-browser",
|
|
673
|
+
/**
|
|
674
|
+
* The browser client bundle layer for Pages directory.
|
|
675
|
+
*/
|
|
676
|
+
pagesDirBrowser: "pages-dir-browser",
|
|
677
|
+
/**
|
|
678
|
+
* The Edge Lite bundle layer for Pages directory.
|
|
679
|
+
*/
|
|
680
|
+
pagesDirEdge: "pages-dir-edge",
|
|
681
|
+
/**
|
|
682
|
+
* The Node.js bundle layer for Pages directory.
|
|
683
|
+
*/
|
|
684
|
+
pagesDirNode: "pages-dir-node"
|
|
685
|
+
}, ie = {
|
|
686
|
+
...D,
|
|
687
|
+
GROUP: {
|
|
688
|
+
builtinReact: [
|
|
689
|
+
D.reactServerComponents,
|
|
690
|
+
D.actionBrowser
|
|
691
|
+
],
|
|
692
|
+
serverOnly: [
|
|
693
|
+
D.reactServerComponents,
|
|
694
|
+
D.actionBrowser,
|
|
695
|
+
D.instrument,
|
|
696
|
+
D.middleware
|
|
697
|
+
],
|
|
698
|
+
neutralTarget: [
|
|
699
|
+
// pages api
|
|
700
|
+
D.apiNode,
|
|
701
|
+
D.apiEdge
|
|
702
|
+
],
|
|
703
|
+
clientOnly: [
|
|
704
|
+
D.serverSideRendering,
|
|
705
|
+
D.appPagesBrowser
|
|
706
|
+
],
|
|
707
|
+
bundled: [
|
|
708
|
+
D.reactServerComponents,
|
|
709
|
+
D.actionBrowser,
|
|
710
|
+
D.serverSideRendering,
|
|
711
|
+
D.appPagesBrowser,
|
|
712
|
+
D.shared,
|
|
713
|
+
D.instrument,
|
|
714
|
+
D.middleware
|
|
715
|
+
],
|
|
716
|
+
appPages: [
|
|
717
|
+
// app router pages and layouts
|
|
718
|
+
D.reactServerComponents,
|
|
719
|
+
D.serverSideRendering,
|
|
720
|
+
D.appPagesBrowser,
|
|
721
|
+
D.actionBrowser
|
|
722
|
+
]
|
|
723
|
+
}
|
|
724
|
+
}, ce = {
|
|
725
|
+
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
726
|
+
metadata: "__next_metadata__",
|
|
727
|
+
metadataRoute: "__next_metadata_route__",
|
|
728
|
+
metadataImageMeta: "__next_metadata_image_meta__"
|
|
729
|
+
};
|
|
730
|
+
})(et)), et;
|
|
731
|
+
}
|
|
732
|
+
var Vt;
|
|
733
|
+
function kr() {
|
|
734
|
+
return Vt || (Vt = 1, (function(s) {
|
|
735
|
+
Object.defineProperty(s, "__esModule", {
|
|
736
|
+
value: !0
|
|
737
|
+
});
|
|
738
|
+
function o(f, m) {
|
|
739
|
+
for (var a in m) Object.defineProperty(f, a, {
|
|
740
|
+
enumerable: !0,
|
|
741
|
+
get: m[a]
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
o(s, {
|
|
745
|
+
fromNodeOutgoingHttpHeaders: function() {
|
|
746
|
+
return d;
|
|
747
|
+
},
|
|
748
|
+
normalizeNextQueryParam: function() {
|
|
749
|
+
return t;
|
|
750
|
+
},
|
|
751
|
+
splitCookiesString: function() {
|
|
752
|
+
return c;
|
|
753
|
+
},
|
|
754
|
+
toNodeOutgoingHttpHeaders: function() {
|
|
755
|
+
return E;
|
|
756
|
+
},
|
|
757
|
+
validateURL: function() {
|
|
758
|
+
return u;
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
const p = Yr();
|
|
762
|
+
function d(f) {
|
|
763
|
+
const m = new Headers();
|
|
764
|
+
for (let [a, h] of Object.entries(f)) {
|
|
765
|
+
const A = Array.isArray(h) ? h : [
|
|
766
|
+
h
|
|
767
|
+
];
|
|
768
|
+
for (let x of A)
|
|
769
|
+
typeof x > "u" || (typeof x == "number" && (x = x.toString()), m.append(a, x));
|
|
770
|
+
}
|
|
771
|
+
return m;
|
|
772
|
+
}
|
|
773
|
+
function c(f) {
|
|
774
|
+
var m = [], a = 0, h, A, x, k, X;
|
|
775
|
+
function l() {
|
|
776
|
+
for (; a < f.length && /\s/.test(f.charAt(a)); )
|
|
777
|
+
a += 1;
|
|
778
|
+
return a < f.length;
|
|
779
|
+
}
|
|
780
|
+
function y() {
|
|
781
|
+
return A = f.charAt(a), A !== "=" && A !== ";" && A !== ",";
|
|
782
|
+
}
|
|
783
|
+
for (; a < f.length; ) {
|
|
784
|
+
for (h = a, X = !1; l(); )
|
|
785
|
+
if (A = f.charAt(a), A === ",") {
|
|
786
|
+
for (x = a, a += 1, l(), k = a; a < f.length && y(); )
|
|
787
|
+
a += 1;
|
|
788
|
+
a < f.length && f.charAt(a) === "=" ? (X = !0, a = k, m.push(f.substring(h, x)), h = a) : a = x + 1;
|
|
789
|
+
} else
|
|
790
|
+
a += 1;
|
|
791
|
+
(!X || a >= f.length) && m.push(f.substring(h, f.length));
|
|
792
|
+
}
|
|
793
|
+
return m;
|
|
794
|
+
}
|
|
795
|
+
function E(f) {
|
|
796
|
+
const m = {}, a = [];
|
|
797
|
+
if (f)
|
|
798
|
+
for (const [h, A] of f.entries())
|
|
799
|
+
h.toLowerCase() === "set-cookie" ? (a.push(...c(A)), m[h] = a.length === 1 ? a[0] : a) : m[h] = A;
|
|
800
|
+
return m;
|
|
801
|
+
}
|
|
802
|
+
function u(f) {
|
|
803
|
+
try {
|
|
804
|
+
return String(new URL(String(f)));
|
|
805
|
+
} catch (m) {
|
|
806
|
+
throw Object.defineProperty(new Error(`URL is malformed "${String(f)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
|
|
807
|
+
cause: m
|
|
808
|
+
}), "__NEXT_ERROR_CODE", {
|
|
809
|
+
value: "E61",
|
|
810
|
+
enumerable: !1,
|
|
811
|
+
configurable: !0
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
function t(f) {
|
|
816
|
+
const m = [
|
|
817
|
+
p.NEXT_QUERY_PARAM_PREFIX,
|
|
818
|
+
p.NEXT_INTERCEPTION_MARKER_PREFIX
|
|
819
|
+
];
|
|
820
|
+
for (const a of m)
|
|
821
|
+
if (f !== a && f.startsWith(a))
|
|
822
|
+
return f.substring(a.length);
|
|
823
|
+
return null;
|
|
824
|
+
}
|
|
825
|
+
})(Je)), Je;
|
|
826
|
+
}
|
|
827
|
+
var tt = {}, Kt;
|
|
828
|
+
function zr() {
|
|
829
|
+
return Kt || (Kt = 1, (function(s) {
|
|
830
|
+
Object.defineProperty(s, "__esModule", {
|
|
831
|
+
value: !0
|
|
832
|
+
});
|
|
833
|
+
function o(E, u) {
|
|
834
|
+
for (var t in u) Object.defineProperty(E, t, {
|
|
835
|
+
enumerable: !0,
|
|
836
|
+
get: u[t]
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
o(s, {
|
|
840
|
+
PageSignatureError: function() {
|
|
841
|
+
return p;
|
|
842
|
+
},
|
|
843
|
+
RemovedPageError: function() {
|
|
844
|
+
return d;
|
|
845
|
+
},
|
|
846
|
+
RemovedUAError: function() {
|
|
847
|
+
return c;
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
class p extends Error {
|
|
851
|
+
constructor({ page: u }) {
|
|
852
|
+
super(`The middleware "${u}" accepts an async API directly with the form:
|
|
853
|
+
|
|
854
|
+
export function middleware(request, event) {
|
|
855
|
+
return NextResponse.redirect('/new-location')
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
|
859
|
+
`);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
class d extends Error {
|
|
863
|
+
constructor() {
|
|
864
|
+
super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ");
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
class c extends Error {
|
|
868
|
+
constructor() {
|
|
869
|
+
super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ");
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
})(tt)), tt;
|
|
873
|
+
}
|
|
874
|
+
var rt = {}, nt, Qt;
|
|
875
|
+
function Vr() {
|
|
876
|
+
if (Qt) return nt;
|
|
877
|
+
Qt = 1;
|
|
878
|
+
var s = Object.defineProperty, o = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, c = (n, N) => {
|
|
879
|
+
for (var R in N)
|
|
880
|
+
s(n, R, { get: N[R], enumerable: !0 });
|
|
881
|
+
}, E = (n, N, R, P) => {
|
|
882
|
+
if (N && typeof N == "object" || typeof N == "function")
|
|
883
|
+
for (let I of p(N))
|
|
884
|
+
!d.call(n, I) && I !== R && s(n, I, { get: () => N[I], enumerable: !(P = o(N, I)) || P.enumerable });
|
|
885
|
+
return n;
|
|
886
|
+
}, u = (n) => E(s({}, "__esModule", { value: !0 }), n), t = {};
|
|
887
|
+
c(t, {
|
|
888
|
+
RequestCookies: () => y,
|
|
889
|
+
ResponseCookies: () => _,
|
|
890
|
+
parseCookie: () => m,
|
|
891
|
+
parseSetCookie: () => a,
|
|
892
|
+
stringifyCookie: () => f
|
|
893
|
+
}), nt = u(t);
|
|
894
|
+
function f(n) {
|
|
895
|
+
var N;
|
|
896
|
+
const R = [
|
|
897
|
+
"path" in n && n.path && `Path=${n.path}`,
|
|
898
|
+
"expires" in n && (n.expires || n.expires === 0) && `Expires=${(typeof n.expires == "number" ? new Date(n.expires) : n.expires).toUTCString()}`,
|
|
899
|
+
"maxAge" in n && typeof n.maxAge == "number" && `Max-Age=${n.maxAge}`,
|
|
900
|
+
"domain" in n && n.domain && `Domain=${n.domain}`,
|
|
901
|
+
"secure" in n && n.secure && "Secure",
|
|
902
|
+
"httpOnly" in n && n.httpOnly && "HttpOnly",
|
|
903
|
+
"sameSite" in n && n.sameSite && `SameSite=${n.sameSite}`,
|
|
904
|
+
"partitioned" in n && n.partitioned && "Partitioned",
|
|
905
|
+
"priority" in n && n.priority && `Priority=${n.priority}`
|
|
906
|
+
].filter(Boolean), P = `${n.name}=${encodeURIComponent((N = n.value) != null ? N : "")}`;
|
|
907
|
+
return R.length === 0 ? P : `${P}; ${R.join("; ")}`;
|
|
908
|
+
}
|
|
909
|
+
function m(n) {
|
|
910
|
+
const N = /* @__PURE__ */ new Map();
|
|
911
|
+
for (const R of n.split(/; */)) {
|
|
912
|
+
if (!R)
|
|
913
|
+
continue;
|
|
914
|
+
const P = R.indexOf("=");
|
|
915
|
+
if (P === -1) {
|
|
916
|
+
N.set(R, "true");
|
|
917
|
+
continue;
|
|
918
|
+
}
|
|
919
|
+
const [I, Q] = [R.slice(0, P), R.slice(P + 1)];
|
|
920
|
+
try {
|
|
921
|
+
N.set(I, decodeURIComponent(Q ?? "true"));
|
|
922
|
+
} catch {
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
return N;
|
|
926
|
+
}
|
|
927
|
+
function a(n) {
|
|
928
|
+
if (!n)
|
|
929
|
+
return;
|
|
930
|
+
const [[N, R], ...P] = m(n), {
|
|
931
|
+
domain: I,
|
|
932
|
+
expires: Q,
|
|
933
|
+
httponly: B,
|
|
934
|
+
maxage: ne,
|
|
935
|
+
path: ae,
|
|
936
|
+
samesite: oe,
|
|
937
|
+
secure: se,
|
|
938
|
+
partitioned: le,
|
|
939
|
+
priority: ue
|
|
940
|
+
} = Object.fromEntries(
|
|
941
|
+
P.map(([me, r]) => [
|
|
942
|
+
me.toLowerCase().replace(/-/g, ""),
|
|
943
|
+
r
|
|
944
|
+
])
|
|
945
|
+
), de = {
|
|
946
|
+
name: N,
|
|
947
|
+
value: decodeURIComponent(R),
|
|
948
|
+
domain: I,
|
|
949
|
+
...Q && { expires: new Date(Q) },
|
|
950
|
+
...B && { httpOnly: !0 },
|
|
951
|
+
...typeof ne == "string" && { maxAge: Number(ne) },
|
|
952
|
+
path: ae,
|
|
953
|
+
...oe && { sameSite: x(oe) },
|
|
954
|
+
...se && { secure: !0 },
|
|
955
|
+
...ue && { priority: X(ue) },
|
|
956
|
+
...le && { partitioned: !0 }
|
|
957
|
+
};
|
|
958
|
+
return h(de);
|
|
959
|
+
}
|
|
960
|
+
function h(n) {
|
|
961
|
+
const N = {};
|
|
962
|
+
for (const R in n)
|
|
963
|
+
n[R] && (N[R] = n[R]);
|
|
964
|
+
return N;
|
|
965
|
+
}
|
|
966
|
+
var A = ["strict", "lax", "none"];
|
|
967
|
+
function x(n) {
|
|
968
|
+
return n = n.toLowerCase(), A.includes(n) ? n : void 0;
|
|
969
|
+
}
|
|
970
|
+
var k = ["low", "medium", "high"];
|
|
971
|
+
function X(n) {
|
|
972
|
+
return n = n.toLowerCase(), k.includes(n) ? n : void 0;
|
|
973
|
+
}
|
|
974
|
+
function l(n) {
|
|
975
|
+
if (!n)
|
|
976
|
+
return [];
|
|
977
|
+
var N = [], R = 0, P, I, Q, B, ne;
|
|
978
|
+
function ae() {
|
|
979
|
+
for (; R < n.length && /\s/.test(n.charAt(R)); )
|
|
980
|
+
R += 1;
|
|
981
|
+
return R < n.length;
|
|
982
|
+
}
|
|
983
|
+
function oe() {
|
|
984
|
+
return I = n.charAt(R), I !== "=" && I !== ";" && I !== ",";
|
|
985
|
+
}
|
|
986
|
+
for (; R < n.length; ) {
|
|
987
|
+
for (P = R, ne = !1; ae(); )
|
|
988
|
+
if (I = n.charAt(R), I === ",") {
|
|
989
|
+
for (Q = R, R += 1, ae(), B = R; R < n.length && oe(); )
|
|
990
|
+
R += 1;
|
|
991
|
+
R < n.length && n.charAt(R) === "=" ? (ne = !0, R = B, N.push(n.substring(P, Q)), P = R) : R = Q + 1;
|
|
992
|
+
} else
|
|
993
|
+
R += 1;
|
|
994
|
+
(!ne || R >= n.length) && N.push(n.substring(P, n.length));
|
|
995
|
+
}
|
|
996
|
+
return N;
|
|
997
|
+
}
|
|
998
|
+
var y = class {
|
|
999
|
+
constructor(n) {
|
|
1000
|
+
this._parsed = /* @__PURE__ */ new Map(), this._headers = n;
|
|
1001
|
+
const N = n.get("cookie");
|
|
1002
|
+
if (N) {
|
|
1003
|
+
const R = m(N);
|
|
1004
|
+
for (const [P, I] of R)
|
|
1005
|
+
this._parsed.set(P, { name: P, value: I });
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
[Symbol.iterator]() {
|
|
1009
|
+
return this._parsed[Symbol.iterator]();
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* The amount of cookies received from the client
|
|
1013
|
+
*/
|
|
1014
|
+
get size() {
|
|
1015
|
+
return this._parsed.size;
|
|
1016
|
+
}
|
|
1017
|
+
get(...n) {
|
|
1018
|
+
const N = typeof n[0] == "string" ? n[0] : n[0].name;
|
|
1019
|
+
return this._parsed.get(N);
|
|
1020
|
+
}
|
|
1021
|
+
getAll(...n) {
|
|
1022
|
+
var N;
|
|
1023
|
+
const R = Array.from(this._parsed);
|
|
1024
|
+
if (!n.length)
|
|
1025
|
+
return R.map(([I, Q]) => Q);
|
|
1026
|
+
const P = typeof n[0] == "string" ? n[0] : (N = n[0]) == null ? void 0 : N.name;
|
|
1027
|
+
return R.filter(([I]) => I === P).map(([I, Q]) => Q);
|
|
1028
|
+
}
|
|
1029
|
+
has(n) {
|
|
1030
|
+
return this._parsed.has(n);
|
|
1031
|
+
}
|
|
1032
|
+
set(...n) {
|
|
1033
|
+
const [N, R] = n.length === 1 ? [n[0].name, n[0].value] : n, P = this._parsed;
|
|
1034
|
+
return P.set(N, { name: N, value: R }), this._headers.set(
|
|
1035
|
+
"cookie",
|
|
1036
|
+
Array.from(P).map(([I, Q]) => f(Q)).join("; ")
|
|
1037
|
+
), this;
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Delete the cookies matching the passed name or names in the request.
|
|
1041
|
+
*/
|
|
1042
|
+
delete(n) {
|
|
1043
|
+
const N = this._parsed, R = Array.isArray(n) ? n.map((P) => N.delete(P)) : N.delete(n);
|
|
1044
|
+
return this._headers.set(
|
|
1045
|
+
"cookie",
|
|
1046
|
+
Array.from(N).map(([P, I]) => f(I)).join("; ")
|
|
1047
|
+
), R;
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* Delete all the cookies in the cookies in the request.
|
|
1051
|
+
*/
|
|
1052
|
+
clear() {
|
|
1053
|
+
return this.delete(Array.from(this._parsed.keys())), this;
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Format the cookies in the request as a string for logging
|
|
1057
|
+
*/
|
|
1058
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1059
|
+
return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
1060
|
+
}
|
|
1061
|
+
toString() {
|
|
1062
|
+
return [...this._parsed.values()].map((n) => `${n.name}=${encodeURIComponent(n.value)}`).join("; ");
|
|
1063
|
+
}
|
|
1064
|
+
}, _ = class {
|
|
1065
|
+
constructor(n) {
|
|
1066
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
1067
|
+
var N, R, P;
|
|
1068
|
+
this._headers = n;
|
|
1069
|
+
const I = (P = (R = (N = n.getSetCookie) == null ? void 0 : N.call(n)) != null ? R : n.get("set-cookie")) != null ? P : [], Q = Array.isArray(I) ? I : l(I);
|
|
1070
|
+
for (const B of Q) {
|
|
1071
|
+
const ne = a(B);
|
|
1072
|
+
ne && this._parsed.set(ne.name, ne);
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
1077
|
+
*/
|
|
1078
|
+
get(...n) {
|
|
1079
|
+
const N = typeof n[0] == "string" ? n[0] : n[0].name;
|
|
1080
|
+
return this._parsed.get(N);
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
1084
|
+
*/
|
|
1085
|
+
getAll(...n) {
|
|
1086
|
+
var N;
|
|
1087
|
+
const R = Array.from(this._parsed.values());
|
|
1088
|
+
if (!n.length)
|
|
1089
|
+
return R;
|
|
1090
|
+
const P = typeof n[0] == "string" ? n[0] : (N = n[0]) == null ? void 0 : N.name;
|
|
1091
|
+
return R.filter((I) => I.name === P);
|
|
1092
|
+
}
|
|
1093
|
+
has(n) {
|
|
1094
|
+
return this._parsed.has(n);
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
1098
|
+
*/
|
|
1099
|
+
set(...n) {
|
|
1100
|
+
const [N, R, P] = n.length === 1 ? [n[0].name, n[0].value, n[0]] : n, I = this._parsed;
|
|
1101
|
+
return I.set(N, S({ name: N, value: R, ...P })), g(I, this._headers), this;
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
1105
|
+
*/
|
|
1106
|
+
delete(...n) {
|
|
1107
|
+
const [N, R] = typeof n[0] == "string" ? [n[0]] : [n[0].name, n[0]];
|
|
1108
|
+
return this.set({ ...R, name: N, value: "", expires: /* @__PURE__ */ new Date(0) });
|
|
1109
|
+
}
|
|
1110
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1111
|
+
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
1112
|
+
}
|
|
1113
|
+
toString() {
|
|
1114
|
+
return [...this._parsed.values()].map(f).join("; ");
|
|
1115
|
+
}
|
|
1116
|
+
};
|
|
1117
|
+
function g(n, N) {
|
|
1118
|
+
N.delete("set-cookie");
|
|
1119
|
+
for (const [, R] of n) {
|
|
1120
|
+
const P = f(R);
|
|
1121
|
+
N.append("set-cookie", P);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
function S(n = { name: "", value: "" }) {
|
|
1125
|
+
return typeof n.expires == "number" && (n.expires = new Date(n.expires)), n.maxAge && (n.expires = new Date(Date.now() + n.maxAge * 1e3)), (n.path === null || n.path === void 0) && (n.path = "/"), n;
|
|
1126
|
+
}
|
|
1127
|
+
return nt;
|
|
1128
|
+
}
|
|
1129
|
+
var Zt;
|
|
1130
|
+
function Ot() {
|
|
1131
|
+
return Zt || (Zt = 1, (function(s) {
|
|
1132
|
+
Object.defineProperty(s, "__esModule", {
|
|
1133
|
+
value: !0
|
|
1134
|
+
});
|
|
1135
|
+
function o(d, c) {
|
|
1136
|
+
for (var E in c) Object.defineProperty(d, E, {
|
|
1137
|
+
enumerable: !0,
|
|
1138
|
+
get: c[E]
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
o(s, {
|
|
1142
|
+
RequestCookies: function() {
|
|
1143
|
+
return p.RequestCookies;
|
|
1144
|
+
},
|
|
1145
|
+
ResponseCookies: function() {
|
|
1146
|
+
return p.ResponseCookies;
|
|
1147
|
+
},
|
|
1148
|
+
stringifyCookie: function() {
|
|
1149
|
+
return p.stringifyCookie;
|
|
1150
|
+
}
|
|
1151
|
+
});
|
|
1152
|
+
const p = Vr();
|
|
1153
|
+
})(rt)), rt;
|
|
1154
|
+
}
|
|
1155
|
+
var Jt;
|
|
1156
|
+
function Kr() {
|
|
1157
|
+
return Jt || (Jt = 1, (function(s) {
|
|
1158
|
+
Object.defineProperty(s, "__esModule", {
|
|
1159
|
+
value: !0
|
|
1160
|
+
});
|
|
1161
|
+
function o(f, m) {
|
|
1162
|
+
for (var a in m) Object.defineProperty(f, a, {
|
|
1163
|
+
enumerable: !0,
|
|
1164
|
+
get: m[a]
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
o(s, {
|
|
1168
|
+
INTERNALS: function() {
|
|
1169
|
+
return u;
|
|
1170
|
+
},
|
|
1171
|
+
NextRequest: function() {
|
|
1172
|
+
return t;
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
const p = Dr(), d = kr(), c = zr(), E = Ot(), u = Symbol("internal request");
|
|
1176
|
+
class t extends Request {
|
|
1177
|
+
constructor(m, a = {}) {
|
|
1178
|
+
const h = typeof m != "string" && "url" in m ? m.url : String(m);
|
|
1179
|
+
(0, d.validateURL)(h), process.env.NEXT_RUNTIME !== "edge" && a.body && a.duplex !== "half" && (a.duplex = "half"), m instanceof Request ? super(m, a) : super(h, a);
|
|
1180
|
+
const A = new p.NextURL(h, {
|
|
1181
|
+
headers: (0, d.toNodeOutgoingHttpHeaders)(this.headers),
|
|
1182
|
+
nextConfig: a.nextConfig
|
|
1183
|
+
});
|
|
1184
|
+
this[u] = {
|
|
1185
|
+
cookies: new E.RequestCookies(this.headers),
|
|
1186
|
+
nextUrl: A,
|
|
1187
|
+
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? h : A.toString()
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1191
|
+
return {
|
|
1192
|
+
cookies: this.cookies,
|
|
1193
|
+
nextUrl: this.nextUrl,
|
|
1194
|
+
url: this.url,
|
|
1195
|
+
// rest of props come from Request
|
|
1196
|
+
bodyUsed: this.bodyUsed,
|
|
1197
|
+
cache: this.cache,
|
|
1198
|
+
credentials: this.credentials,
|
|
1199
|
+
destination: this.destination,
|
|
1200
|
+
headers: Object.fromEntries(this.headers),
|
|
1201
|
+
integrity: this.integrity,
|
|
1202
|
+
keepalive: this.keepalive,
|
|
1203
|
+
method: this.method,
|
|
1204
|
+
mode: this.mode,
|
|
1205
|
+
redirect: this.redirect,
|
|
1206
|
+
referrer: this.referrer,
|
|
1207
|
+
referrerPolicy: this.referrerPolicy,
|
|
1208
|
+
signal: this.signal
|
|
1209
|
+
};
|
|
1210
|
+
}
|
|
1211
|
+
get cookies() {
|
|
1212
|
+
return this[u].cookies;
|
|
1213
|
+
}
|
|
1214
|
+
get nextUrl() {
|
|
1215
|
+
return this[u].nextUrl;
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* @deprecated
|
|
1219
|
+
* `page` has been deprecated in favour of `URLPattern`.
|
|
1220
|
+
* Read more: https://nextjs.org/docs/messages/middleware-request-page
|
|
1221
|
+
*/
|
|
1222
|
+
get page() {
|
|
1223
|
+
throw new c.RemovedPageError();
|
|
1224
|
+
}
|
|
1225
|
+
/**
|
|
1226
|
+
* @deprecated
|
|
1227
|
+
* `ua` has been removed in favour of \`userAgent\` function.
|
|
1228
|
+
* Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
|
|
1229
|
+
*/
|
|
1230
|
+
get ua() {
|
|
1231
|
+
throw new c.RemovedUAError();
|
|
1232
|
+
}
|
|
1233
|
+
get url() {
|
|
1234
|
+
return this[u].url;
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
})(Ue)), Ue;
|
|
1238
|
+
}
|
|
1239
|
+
var ot = {}, it = {}, er;
|
|
1240
|
+
function Qr() {
|
|
1241
|
+
return er || (er = 1, (function(s) {
|
|
1242
|
+
Object.defineProperty(s, "__esModule", {
|
|
1243
|
+
value: !0
|
|
1244
|
+
}), Object.defineProperty(s, "ReflectAdapter", {
|
|
1245
|
+
enumerable: !0,
|
|
1246
|
+
get: function() {
|
|
1247
|
+
return o;
|
|
1248
|
+
}
|
|
1249
|
+
});
|
|
1250
|
+
class o {
|
|
1251
|
+
static get(d, c, E) {
|
|
1252
|
+
const u = Reflect.get(d, c, E);
|
|
1253
|
+
return typeof u == "function" ? u.bind(d) : u;
|
|
1254
|
+
}
|
|
1255
|
+
static set(d, c, E, u) {
|
|
1256
|
+
return Reflect.set(d, c, E, u);
|
|
1257
|
+
}
|
|
1258
|
+
static has(d, c) {
|
|
1259
|
+
return Reflect.has(d, c);
|
|
1260
|
+
}
|
|
1261
|
+
static deleteProperty(d, c) {
|
|
1262
|
+
return Reflect.deleteProperty(d, c);
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
})(it)), it;
|
|
1266
|
+
}
|
|
1267
|
+
var tr;
|
|
1268
|
+
function Zr() {
|
|
1269
|
+
return tr || (tr = 1, (function(s) {
|
|
1270
|
+
Object.defineProperty(s, "__esModule", {
|
|
1271
|
+
value: !0
|
|
1272
|
+
}), Object.defineProperty(s, "NextResponse", {
|
|
1273
|
+
enumerable: !0,
|
|
1274
|
+
get: function() {
|
|
1275
|
+
return m;
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
const o = Ot(), p = Dr(), d = kr(), c = Qr(), E = Ot(), u = Symbol("internal response"), t = /* @__PURE__ */ new Set([
|
|
1279
|
+
301,
|
|
1280
|
+
302,
|
|
1281
|
+
303,
|
|
1282
|
+
307,
|
|
1283
|
+
308
|
|
1284
|
+
]);
|
|
1285
|
+
function f(a, h) {
|
|
1286
|
+
var A;
|
|
1287
|
+
if (!(a == null || (A = a.request) == null) && A.headers) {
|
|
1288
|
+
if (!(a.request.headers instanceof Headers))
|
|
1289
|
+
throw Object.defineProperty(new Error("request.headers must be an instance of Headers"), "__NEXT_ERROR_CODE", {
|
|
1290
|
+
value: "E119",
|
|
1291
|
+
enumerable: !1,
|
|
1292
|
+
configurable: !0
|
|
1293
|
+
});
|
|
1294
|
+
const x = [];
|
|
1295
|
+
for (const [k, X] of a.request.headers)
|
|
1296
|
+
h.set("x-middleware-request-" + k, X), x.push(k);
|
|
1297
|
+
h.set("x-middleware-override-headers", x.join(","));
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
class m extends Response {
|
|
1301
|
+
constructor(h, A = {}) {
|
|
1302
|
+
super(h, A);
|
|
1303
|
+
const x = this.headers, k = new E.ResponseCookies(x), X = new Proxy(k, {
|
|
1304
|
+
get(l, y, _) {
|
|
1305
|
+
switch (y) {
|
|
1306
|
+
case "delete":
|
|
1307
|
+
case "set":
|
|
1308
|
+
return (...g) => {
|
|
1309
|
+
const S = Reflect.apply(l[y], l, g), n = new Headers(x);
|
|
1310
|
+
return S instanceof E.ResponseCookies && x.set("x-middleware-set-cookie", S.getAll().map((N) => (0, o.stringifyCookie)(N)).join(",")), f(A, n), S;
|
|
1311
|
+
};
|
|
1312
|
+
default:
|
|
1313
|
+
return c.ReflectAdapter.get(l, y, _);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
});
|
|
1317
|
+
this[u] = {
|
|
1318
|
+
cookies: X,
|
|
1319
|
+
url: A.url ? new p.NextURL(A.url, {
|
|
1320
|
+
headers: (0, d.toNodeOutgoingHttpHeaders)(x),
|
|
1321
|
+
nextConfig: A.nextConfig
|
|
1322
|
+
}) : void 0
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1326
|
+
return {
|
|
1327
|
+
cookies: this.cookies,
|
|
1328
|
+
url: this.url,
|
|
1329
|
+
// rest of props come from Response
|
|
1330
|
+
body: this.body,
|
|
1331
|
+
bodyUsed: this.bodyUsed,
|
|
1332
|
+
headers: Object.fromEntries(this.headers),
|
|
1333
|
+
ok: this.ok,
|
|
1334
|
+
redirected: this.redirected,
|
|
1335
|
+
status: this.status,
|
|
1336
|
+
statusText: this.statusText,
|
|
1337
|
+
type: this.type
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
get cookies() {
|
|
1341
|
+
return this[u].cookies;
|
|
1342
|
+
}
|
|
1343
|
+
static json(h, A) {
|
|
1344
|
+
const x = Response.json(h, A);
|
|
1345
|
+
return new m(x.body, x);
|
|
1346
|
+
}
|
|
1347
|
+
static redirect(h, A) {
|
|
1348
|
+
const x = typeof A == "number" ? A : (A == null ? void 0 : A.status) ?? 307;
|
|
1349
|
+
if (!t.has(x))
|
|
1350
|
+
throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'), "__NEXT_ERROR_CODE", {
|
|
1351
|
+
value: "E529",
|
|
1352
|
+
enumerable: !1,
|
|
1353
|
+
configurable: !0
|
|
1354
|
+
});
|
|
1355
|
+
const k = typeof A == "object" ? A : {}, X = new Headers(k == null ? void 0 : k.headers);
|
|
1356
|
+
return X.set("Location", (0, d.validateURL)(h)), new m(null, {
|
|
1357
|
+
...k,
|
|
1358
|
+
headers: X,
|
|
1359
|
+
status: x
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
static rewrite(h, A) {
|
|
1363
|
+
const x = new Headers(A == null ? void 0 : A.headers);
|
|
1364
|
+
return x.set("x-middleware-rewrite", (0, d.validateURL)(h)), f(A, x), new m(null, {
|
|
1365
|
+
...A,
|
|
1366
|
+
headers: x
|
|
1367
|
+
});
|
|
1368
|
+
}
|
|
1369
|
+
static next(h) {
|
|
1370
|
+
const A = new Headers(h == null ? void 0 : h.headers);
|
|
1371
|
+
return A.set("x-middleware-next", "1"), f(h, A), new m(null, {
|
|
1372
|
+
...h,
|
|
1373
|
+
headers: A
|
|
1374
|
+
});
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
})(ot)), ot;
|
|
1378
|
+
}
|
|
1379
|
+
var at = {}, rr;
|
|
1380
|
+
function Jr() {
|
|
1381
|
+
return rr || (rr = 1, (function(s) {
|
|
1382
|
+
Object.defineProperty(s, "__esModule", {
|
|
1383
|
+
value: !0
|
|
1384
|
+
}), Object.defineProperty(s, "ImageResponse", {
|
|
1385
|
+
enumerable: !0,
|
|
1386
|
+
get: function() {
|
|
1387
|
+
return o;
|
|
1388
|
+
}
|
|
1389
|
+
});
|
|
1390
|
+
function o() {
|
|
1391
|
+
throw Object.defineProperty(new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'), "__NEXT_ERROR_CODE", {
|
|
1392
|
+
value: "E183",
|
|
1393
|
+
enumerable: !1,
|
|
1394
|
+
configurable: !0
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
})(at)), at;
|
|
1398
|
+
}
|
|
1399
|
+
var st = {}, ut = { exports: {} }, nr;
|
|
1400
|
+
function en() {
|
|
1401
|
+
return nr || (nr = 1, (() => {
|
|
1402
|
+
var s = { 226: function(c, E) {
|
|
1403
|
+
(function(u, t) {
|
|
1404
|
+
var f = "1.0.35", m = "", a = "?", h = "function", A = "undefined", x = "object", k = "string", X = "major", l = "model", y = "name", _ = "type", g = "vendor", S = "version", n = "architecture", N = "console", R = "mobile", P = "tablet", I = "smarttv", Q = "wearable", B = "embedded", ne = 350, ae = "Amazon", oe = "Apple", se = "ASUS", le = "BlackBerry", ue = "Browser", de = "Chrome", me = "Edge", r = "Firefox", v = "Google", M = "Huawei", j = "LG", $ = "Microsoft", J = "Motorola", U = "Opera", fe = "Samsung", te = "Sharp", pe = "Sony", ye = "Xiaomi", Re = "Zebra", be = "Facebook", ve = "Chromium OS", b = "Mac OS", w = function(Y, Z) {
|
|
1405
|
+
var H = {};
|
|
1406
|
+
for (var ee in Y)
|
|
1407
|
+
Z[ee] && Z[ee].length % 2 === 0 ? H[ee] = Z[ee].concat(Y[ee]) : H[ee] = Y[ee];
|
|
1408
|
+
return H;
|
|
1409
|
+
}, O = function(Y) {
|
|
1410
|
+
for (var Z = {}, H = 0; H < Y.length; H++)
|
|
1411
|
+
Z[Y[H].toUpperCase()] = Y[H];
|
|
1412
|
+
return Z;
|
|
1413
|
+
}, D = function(Y, Z) {
|
|
1414
|
+
return typeof Y === k ? ie(Z).indexOf(ie(Y)) !== -1 : !1;
|
|
1415
|
+
}, ie = function(Y) {
|
|
1416
|
+
return Y.toLowerCase();
|
|
1417
|
+
}, ce = function(Y) {
|
|
1418
|
+
return typeof Y === k ? Y.replace(/[^\d\.]/g, m).split(".")[0] : t;
|
|
1419
|
+
}, G = function(Y, Z) {
|
|
1420
|
+
if (typeof Y === k)
|
|
1421
|
+
return Y = Y.replace(/^\s\s*/, m), typeof Z === A ? Y : Y.substring(0, ne);
|
|
1422
|
+
}, Ee = function(Y, Z) {
|
|
1423
|
+
for (var H = 0, ee, ge, he, K, q, e; H < Z.length && !q; ) {
|
|
1424
|
+
var i = Z[H], T = Z[H + 1];
|
|
1425
|
+
for (ee = ge = 0; ee < i.length && !q && i[ee]; )
|
|
1426
|
+
if (q = i[ee++].exec(Y), q)
|
|
1427
|
+
for (he = 0; he < T.length; he++)
|
|
1428
|
+
e = q[++ge], K = T[he], typeof K === x && K.length > 0 ? K.length === 2 ? typeof K[1] == h ? this[K[0]] = K[1].call(this, e) : this[K[0]] = K[1] : K.length === 3 ? typeof K[1] === h && !(K[1].exec && K[1].test) ? this[K[0]] = e ? K[1].call(this, e, K[2]) : t : this[K[0]] = e ? e.replace(K[1], K[2]) : t : K.length === 4 && (this[K[0]] = e ? K[3].call(this, e.replace(K[1], K[2])) : t) : this[K] = e || t;
|
|
1429
|
+
H += 2;
|
|
1430
|
+
}
|
|
1431
|
+
}, we = function(Y, Z) {
|
|
1432
|
+
for (var H in Z)
|
|
1433
|
+
if (typeof Z[H] === x && Z[H].length > 0) {
|
|
1434
|
+
for (var ee = 0; ee < Z[H].length; ee++)
|
|
1435
|
+
if (D(Z[H][ee], Y))
|
|
1436
|
+
return H === a ? t : H;
|
|
1437
|
+
} else if (D(Z[H], Y))
|
|
1438
|
+
return H === a ? t : H;
|
|
1439
|
+
return Y;
|
|
1440
|
+
}, xe = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Oe = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Ne = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [S, [y, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [S, [y, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [y, S], [/opios[\/ ]+([\w\.]+)/i], [S, [y, U + " Mini"]], [/\bopr\/([\w\.]+)/i], [S, [y, U]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [y, S], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [S, [y, "UC" + ue]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [S, [y, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [S, [y, "WeChat"]], [/konqueror\/([\w\.]+)/i], [S, [y, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [S, [y, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [S, [y, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[y, /(.+)/, "$1 Secure " + ue], S], [/\bfocus\/([\w\.]+)/i], [S, [y, r + " Focus"]], [/\bopt\/([\w\.]+)/i], [S, [y, U + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [S, [y, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [S, [y, "Dolphin"]], [/coast\/([\w\.]+)/i], [S, [y, U + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [S, [y, "MIUI " + ue]], [/fxios\/([-\w\.]+)/i], [S, [y, r]], [/\bqihu|(qi?ho?o?|360)browser/i], [[y, "360 " + ue]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[y, /(.+)/, "$1 " + ue], S], [/(comodo_dragon)\/([\w\.]+)/i], [[y, /_/g, " "], S], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [y, S], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [y], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[y, be], S], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [y, S], [/\bgsa\/([\w\.]+) .*safari\//i], [S, [y, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [S, [y, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [S, [y, de + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[y, de + " WebView"], S], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [S, [y, "Android " + ue]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [y, S], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [S, [y, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [S, y], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [y, [S, we, xe]], [/(webkit|khtml)\/([\w\.]+)/i], [y, S], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[y, "Netscape"], S], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [S, [y, r + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [y, S], [/(cobalt)\/([\w\.]+)/i], [y, [S, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[n, "amd64"]], [/(ia32(?=;))/i], [[n, ie]], [/((?:i[346]|x)86)[;\)]/i], [[n, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[n, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[n, "armhf"]], [/windows (ce|mobile); ppc;/i], [[n, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[n, /ower/, m, ie]], [/(sun4\w)[;\)]/i], [[n, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[n, ie]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [g, fe], [_, P]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [g, fe], [_, R]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [g, oe], [_, R]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [g, oe], [_, P]], [/(macintosh);/i], [l, [g, oe]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [g, te], [_, R]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [g, M], [_, P]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [g, M], [_, R]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [g, ye], [_, R]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [g, ye], [_, P]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [g, "OPPO"], [_, R]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [g, "Vivo"], [_, R]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [l, [g, "Realme"], [_, R]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [g, J], [_, R]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [g, J], [_, P]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [g, j], [_, P]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [g, j], [_, R]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [g, "Lenovo"], [_, P]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [g, "Nokia"], [_, R]], [/(pixel c)\b/i], [l, [g, v], [_, P]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [g, v], [_, R]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [g, pe], [_, R]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [g, pe], [_, P]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [g, "OnePlus"], [_, R]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [g, ae], [_, P]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [g, ae], [_, R]], [/(playbook);[-\w\),; ]+(rim)/i], [l, g, [_, P]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [g, le], [_, R]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [g, se], [_, P]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [g, se], [_, R]], [/(nexus 9)/i], [l, [g, "HTC"], [_, P]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [g, [l, /_/g, " "], [_, R]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [g, "Acer"], [_, P]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [g, "Meizu"], [_, R]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [g, l, [_, R]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [g, l, [_, P]], [/(surface duo)/i], [l, [g, $], [_, P]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [g, "Fairphone"], [_, R]], [/(u304aa)/i], [l, [g, "AT&T"], [_, R]], [/\bsie-(\w*)/i], [l, [g, "Siemens"], [_, R]], [/\b(rct\w+) b/i], [l, [g, "RCA"], [_, P]], [/\b(venue[\d ]{2,7}) b/i], [l, [g, "Dell"], [_, P]], [/\b(q(?:mv|ta)\w+) b/i], [l, [g, "Verizon"], [_, P]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [g, "Barnes & Noble"], [_, P]], [/\b(tm\d{3}\w+) b/i], [l, [g, "NuVision"], [_, P]], [/\b(k88) b/i], [l, [g, "ZTE"], [_, P]], [/\b(nx\d{3}j) b/i], [l, [g, "ZTE"], [_, R]], [/\b(gen\d{3}) b.+49h/i], [l, [g, "Swiss"], [_, R]], [/\b(zur\d{3}) b/i], [l, [g, "Swiss"], [_, P]], [/\b((zeki)?tb.*\b) b/i], [l, [g, "Zeki"], [_, P]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[g, "Dragon Touch"], l, [_, P]], [/\b(ns-?\w{0,9}) b/i], [l, [g, "Insignia"], [_, P]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [g, "NextBook"], [_, P]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[g, "Voice"], l, [_, R]], [/\b(lvtel\-)?(v1[12]) b/i], [[g, "LvTel"], l, [_, R]], [/\b(ph-1) /i], [l, [g, "Essential"], [_, R]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [g, "Envizen"], [_, P]], [/\b(trio[-\w\. ]+) b/i], [l, [g, "MachSpeed"], [_, P]], [/\btu_(1491) b/i], [l, [g, "Rotor"], [_, P]], [/(shield[\w ]+) b/i], [l, [g, "Nvidia"], [_, P]], [/(sprint) (\w+)/i], [g, l, [_, R]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [g, $], [_, R]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [g, Re], [_, P]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [g, Re], [_, R]], [/smart-tv.+(samsung)/i], [g, [_, I]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [g, fe], [_, I]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[g, j], [_, I]], [/(apple) ?tv/i], [g, [l, oe + " TV"], [_, I]], [/crkey/i], [[l, de + "cast"], [g, v], [_, I]], [/droid.+aft(\w)( bui|\))/i], [l, [g, ae], [_, I]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [g, te], [_, I]], [/(bravia[\w ]+)( bui|\))/i], [l, [g, pe], [_, I]], [/(mitv-\w{5}) bui/i], [l, [g, ye], [_, I]], [/Hbbtv.*(technisat) (.*);/i], [g, l, [_, I]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[g, G], [l, G], [_, I]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[_, I]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [g, l, [_, N]], [/droid.+; (shield) bui/i], [l, [g, "Nvidia"], [_, N]], [/(playstation [345portablevi]+)/i], [l, [g, pe], [_, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [g, $], [_, N]], [/((pebble))app/i], [g, l, [_, Q]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [g, oe], [_, Q]], [/droid.+; (glass) \d/i], [l, [g, v], [_, Q]], [/droid.+; (wt63?0{2,3})\)/i], [l, [g, Re], [_, Q]], [/(quest( 2| pro)?)/i], [l, [g, be], [_, Q]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [g, [_, B]], [/(aeobc)\b/i], [l, [g, ae], [_, B]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [l, [_, R]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [_, P]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[_, P]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[_, R]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [g, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [S, [y, me + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [S, [y, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [y, S], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [S, y]], os: [[/microsoft (windows) (vista|xp)/i], [y, S], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [y, [S, we, Oe]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[y, "Windows"], [S, we, Oe]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[S, /_/g, "."], [y, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[y, b], [S, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [S, y], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [y, S], [/\(bb(10);/i], [S, [y, le]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [S, [y, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [S, [y, r + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [S, [y, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [S, [y, "watchOS"]], [/crkey\/([\d\.]+)/i], [S, [y, de + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[y, ve], S], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [y, S], [/(sunos) ?([\w\.\d]*)/i], [[y, "Solaris"], S], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [y, S]] }, _e = function(Y, Z) {
|
|
1441
|
+
if (typeof Y === x && (Z = Y, Y = t), !(this instanceof _e))
|
|
1442
|
+
return new _e(Y, Z).getResult();
|
|
1443
|
+
var H = typeof u !== A && u.navigator ? u.navigator : t, ee = Y || (H && H.userAgent ? H.userAgent : m), ge = H && H.userAgentData ? H.userAgentData : t, he = Z ? w(Ne, Z) : Ne, K = H && H.userAgent == ee;
|
|
1444
|
+
return this.getBrowser = function() {
|
|
1445
|
+
var q = {};
|
|
1446
|
+
return q[y] = t, q[S] = t, Ee.call(q, ee, he.browser), q[X] = ce(q[S]), K && H && H.brave && typeof H.brave.isBrave == h && (q[y] = "Brave"), q;
|
|
1447
|
+
}, this.getCPU = function() {
|
|
1448
|
+
var q = {};
|
|
1449
|
+
return q[n] = t, Ee.call(q, ee, he.cpu), q;
|
|
1450
|
+
}, this.getDevice = function() {
|
|
1451
|
+
var q = {};
|
|
1452
|
+
return q[g] = t, q[l] = t, q[_] = t, Ee.call(q, ee, he.device), K && !q[_] && ge && ge.mobile && (q[_] = R), K && q[l] == "Macintosh" && H && typeof H.standalone !== A && H.maxTouchPoints && H.maxTouchPoints > 2 && (q[l] = "iPad", q[_] = P), q;
|
|
1453
|
+
}, this.getEngine = function() {
|
|
1454
|
+
var q = {};
|
|
1455
|
+
return q[y] = t, q[S] = t, Ee.call(q, ee, he.engine), q;
|
|
1456
|
+
}, this.getOS = function() {
|
|
1457
|
+
var q = {};
|
|
1458
|
+
return q[y] = t, q[S] = t, Ee.call(q, ee, he.os), K && !q[y] && ge && ge.platform != "Unknown" && (q[y] = ge.platform.replace(/chrome os/i, ve).replace(/macos/i, b)), q;
|
|
1459
|
+
}, this.getResult = function() {
|
|
1460
|
+
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1461
|
+
}, this.getUA = function() {
|
|
1462
|
+
return ee;
|
|
1463
|
+
}, this.setUA = function(q) {
|
|
1464
|
+
return ee = typeof q === k && q.length > ne ? G(q, ne) : q, this;
|
|
1465
|
+
}, this.setUA(ee), this;
|
|
1466
|
+
};
|
|
1467
|
+
_e.VERSION = f, _e.BROWSER = O([y, S, X]), _e.CPU = O([n]), _e.DEVICE = O([l, g, _, N, R, I, P, Q, B]), _e.ENGINE = _e.OS = O([y, S]), typeof E !== A ? (c.exports && (E = c.exports = _e), E.UAParser = _e) : typeof u !== A && (u.UAParser = _e);
|
|
1468
|
+
var Ae = typeof u !== A && (u.jQuery || u.Zepto);
|
|
1469
|
+
if (Ae && !Ae.ua) {
|
|
1470
|
+
var Te = new _e();
|
|
1471
|
+
Ae.ua = Te.getResult(), Ae.ua.get = function() {
|
|
1472
|
+
return Te.getUA();
|
|
1473
|
+
}, Ae.ua.set = function(Y) {
|
|
1474
|
+
Te.setUA(Y);
|
|
1475
|
+
var Z = Te.getResult();
|
|
1476
|
+
for (var H in Z)
|
|
1477
|
+
Ae.ua[H] = Z[H];
|
|
1478
|
+
};
|
|
1479
|
+
}
|
|
1480
|
+
})(typeof window == "object" ? window : this);
|
|
1481
|
+
} }, o = {};
|
|
1482
|
+
function p(c) {
|
|
1483
|
+
var E = o[c];
|
|
1484
|
+
if (E !== void 0)
|
|
1485
|
+
return E.exports;
|
|
1486
|
+
var u = o[c] = { exports: {} }, t = !0;
|
|
1487
|
+
try {
|
|
1488
|
+
s[c].call(u.exports, u, u.exports, p), t = !1;
|
|
1489
|
+
} finally {
|
|
1490
|
+
t && delete o[c];
|
|
1491
|
+
}
|
|
1492
|
+
return u.exports;
|
|
1493
|
+
}
|
|
1494
|
+
typeof p < "u" && (p.ab = __dirname + "/");
|
|
1495
|
+
var d = p(226);
|
|
1496
|
+
ut.exports = d;
|
|
1497
|
+
})()), ut.exports;
|
|
1498
|
+
}
|
|
1499
|
+
var or;
|
|
1500
|
+
function ir() {
|
|
1501
|
+
return or || (or = 1, (function(s) {
|
|
1502
|
+
Object.defineProperty(s, "__esModule", {
|
|
1503
|
+
value: !0
|
|
1504
|
+
});
|
|
1505
|
+
function o(t, f) {
|
|
1506
|
+
for (var m in f) Object.defineProperty(t, m, {
|
|
1507
|
+
enumerable: !0,
|
|
1508
|
+
get: f[m]
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
o(s, {
|
|
1512
|
+
isBot: function() {
|
|
1513
|
+
return c;
|
|
1514
|
+
},
|
|
1515
|
+
userAgent: function() {
|
|
1516
|
+
return u;
|
|
1517
|
+
},
|
|
1518
|
+
userAgentFromString: function() {
|
|
1519
|
+
return E;
|
|
1520
|
+
}
|
|
1521
|
+
});
|
|
1522
|
+
const p = /* @__PURE__ */ d(en());
|
|
1523
|
+
function d(t) {
|
|
1524
|
+
return t && t.__esModule ? t : {
|
|
1525
|
+
default: t
|
|
1526
|
+
};
|
|
1527
|
+
}
|
|
1528
|
+
function c(t) {
|
|
1529
|
+
return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(t);
|
|
1530
|
+
}
|
|
1531
|
+
function E(t) {
|
|
1532
|
+
return {
|
|
1533
|
+
...(0, p.default)(t),
|
|
1534
|
+
isBot: t === void 0 ? !1 : c(t)
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
function u({ headers: t }) {
|
|
1538
|
+
return E(t.get("user-agent") || void 0);
|
|
1539
|
+
}
|
|
1540
|
+
})(st)), st;
|
|
1541
|
+
}
|
|
1542
|
+
var ct = {}, ar;
|
|
1543
|
+
function tn() {
|
|
1544
|
+
return ar || (ar = 1, (function(s) {
|
|
1545
|
+
Object.defineProperty(s, "__esModule", {
|
|
1546
|
+
value: !0
|
|
1547
|
+
}), Object.defineProperty(s, "URLPattern", {
|
|
1548
|
+
enumerable: !0,
|
|
1549
|
+
get: function() {
|
|
1550
|
+
return o;
|
|
1551
|
+
}
|
|
1552
|
+
});
|
|
1553
|
+
const o = (
|
|
1554
|
+
// @ts-expect-error: URLPattern is not available in Node.js
|
|
1555
|
+
typeof URLPattern > "u" ? void 0 : URLPattern
|
|
1556
|
+
);
|
|
1557
|
+
})(ct)), ct;
|
|
1558
|
+
}
|
|
1559
|
+
var ft = {}, lt = {}, dt = {}, pt = {}, ht = {}, sr;
|
|
1560
|
+
function It() {
|
|
1561
|
+
return sr || (sr = 1, (function(s) {
|
|
1562
|
+
Object.defineProperty(s, "__esModule", {
|
|
1563
|
+
value: !0
|
|
1564
|
+
});
|
|
1565
|
+
function o(f, m) {
|
|
1566
|
+
for (var a in m) Object.defineProperty(f, a, {
|
|
1567
|
+
enumerable: !0,
|
|
1568
|
+
get: m[a]
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
o(s, {
|
|
1572
|
+
bindSnapshot: function() {
|
|
1573
|
+
return u;
|
|
1574
|
+
},
|
|
1575
|
+
createAsyncLocalStorage: function() {
|
|
1576
|
+
return E;
|
|
1577
|
+
},
|
|
1578
|
+
createSnapshot: function() {
|
|
1579
|
+
return t;
|
|
1580
|
+
}
|
|
1581
|
+
});
|
|
1582
|
+
const p = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
1583
|
+
value: "E504",
|
|
1584
|
+
enumerable: !1,
|
|
1585
|
+
configurable: !0
|
|
1586
|
+
});
|
|
1587
|
+
class d {
|
|
1588
|
+
disable() {
|
|
1589
|
+
throw p;
|
|
1590
|
+
}
|
|
1591
|
+
getStore() {
|
|
1592
|
+
}
|
|
1593
|
+
run() {
|
|
1594
|
+
throw p;
|
|
1595
|
+
}
|
|
1596
|
+
exit() {
|
|
1597
|
+
throw p;
|
|
1598
|
+
}
|
|
1599
|
+
enterWith() {
|
|
1600
|
+
throw p;
|
|
1601
|
+
}
|
|
1602
|
+
static bind(m) {
|
|
1603
|
+
return m;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
const c = typeof globalThis < "u" && globalThis.AsyncLocalStorage;
|
|
1607
|
+
function E() {
|
|
1608
|
+
return c ? new c() : new d();
|
|
1609
|
+
}
|
|
1610
|
+
function u(f) {
|
|
1611
|
+
return c ? c.bind(f) : d.bind(f);
|
|
1612
|
+
}
|
|
1613
|
+
function t() {
|
|
1614
|
+
return c ? c.snapshot() : function(f, ...m) {
|
|
1615
|
+
return f(...m);
|
|
1616
|
+
};
|
|
1617
|
+
}
|
|
1618
|
+
})(ht)), ht;
|
|
1619
|
+
}
|
|
1620
|
+
var ur;
|
|
1621
|
+
function rn() {
|
|
1622
|
+
return ur || (ur = 1, (function(s) {
|
|
1623
|
+
Object.defineProperty(s, "__esModule", {
|
|
1624
|
+
value: !0
|
|
1625
|
+
}), Object.defineProperty(s, "workAsyncStorageInstance", {
|
|
1626
|
+
enumerable: !0,
|
|
1627
|
+
get: function() {
|
|
1628
|
+
return p;
|
|
1629
|
+
}
|
|
1630
|
+
});
|
|
1631
|
+
const p = (0, It().createAsyncLocalStorage)();
|
|
1632
|
+
})(pt)), pt;
|
|
1633
|
+
}
|
|
1634
|
+
var cr;
|
|
1635
|
+
function qe() {
|
|
1636
|
+
return cr || (cr = 1, (function(s) {
|
|
1637
|
+
Object.defineProperty(s, "__esModule", {
|
|
1638
|
+
value: !0
|
|
1639
|
+
}), Object.defineProperty(s, "workAsyncStorage", {
|
|
1640
|
+
enumerable: !0,
|
|
1641
|
+
get: function() {
|
|
1642
|
+
return o.workAsyncStorageInstance;
|
|
1643
|
+
}
|
|
1644
|
+
});
|
|
1645
|
+
const o = rn();
|
|
1646
|
+
})(dt)), dt;
|
|
1647
|
+
}
|
|
1648
|
+
var fr;
|
|
1649
|
+
function nn() {
|
|
1650
|
+
return fr || (fr = 1, (function(s) {
|
|
1651
|
+
Object.defineProperty(s, "__esModule", {
|
|
1652
|
+
value: !0
|
|
1653
|
+
}), Object.defineProperty(s, "after", {
|
|
1654
|
+
enumerable: !0,
|
|
1655
|
+
get: function() {
|
|
1656
|
+
return p;
|
|
1657
|
+
}
|
|
1658
|
+
});
|
|
1659
|
+
const o = qe();
|
|
1660
|
+
function p(d) {
|
|
1661
|
+
const c = o.workAsyncStorage.getStore();
|
|
1662
|
+
if (!c)
|
|
1663
|
+
throw Object.defineProperty(new Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"), "__NEXT_ERROR_CODE", {
|
|
1664
|
+
value: "E468",
|
|
1665
|
+
enumerable: !1,
|
|
1666
|
+
configurable: !0
|
|
1667
|
+
});
|
|
1668
|
+
const { afterContext: E } = c;
|
|
1669
|
+
return E.after(d);
|
|
1670
|
+
}
|
|
1671
|
+
})(lt)), lt;
|
|
1672
|
+
}
|
|
1673
|
+
var lr;
|
|
1674
|
+
function on() {
|
|
1675
|
+
return lr || (lr = 1, (function(s) {
|
|
1676
|
+
Object.defineProperty(s, "__esModule", {
|
|
1677
|
+
value: !0
|
|
1678
|
+
}), o(nn(), s);
|
|
1679
|
+
function o(p, d) {
|
|
1680
|
+
return Object.keys(p).forEach(function(c) {
|
|
1681
|
+
c !== "default" && !Object.prototype.hasOwnProperty.call(d, c) && Object.defineProperty(d, c, {
|
|
1682
|
+
enumerable: !0,
|
|
1683
|
+
get: function() {
|
|
1684
|
+
return p[c];
|
|
1685
|
+
}
|
|
1686
|
+
});
|
|
1687
|
+
}), p;
|
|
1688
|
+
}
|
|
1689
|
+
})(ft)), ft;
|
|
1690
|
+
}
|
|
1691
|
+
var _t = {}, mt = {}, Et = {}, dr;
|
|
1692
|
+
function an() {
|
|
1693
|
+
return dr || (dr = 1, (function(s) {
|
|
1694
|
+
Object.defineProperty(s, "__esModule", {
|
|
1695
|
+
value: !0
|
|
1696
|
+
}), Object.defineProperty(s, "workUnitAsyncStorageInstance", {
|
|
1697
|
+
enumerable: !0,
|
|
1698
|
+
get: function() {
|
|
1699
|
+
return p;
|
|
1700
|
+
}
|
|
1701
|
+
});
|
|
1702
|
+
const p = (0, It().createAsyncLocalStorage)();
|
|
1703
|
+
})(Et)), Et;
|
|
1704
|
+
}
|
|
1705
|
+
var ke = { exports: {} }, pr;
|
|
1706
|
+
function sn() {
|
|
1707
|
+
return pr || (pr = 1, (function(s, o) {
|
|
1708
|
+
Object.defineProperty(o, "__esModule", {
|
|
1709
|
+
value: !0
|
|
1710
|
+
});
|
|
1711
|
+
function p(S, n) {
|
|
1712
|
+
for (var N in n) Object.defineProperty(S, N, {
|
|
1713
|
+
enumerable: !0,
|
|
1714
|
+
get: n[N]
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
p(o, {
|
|
1718
|
+
ACTION_HEADER: function() {
|
|
1719
|
+
return c;
|
|
1720
|
+
},
|
|
1721
|
+
FLIGHT_HEADERS: function() {
|
|
1722
|
+
return A;
|
|
1723
|
+
},
|
|
1724
|
+
NEXT_ACTION_NOT_FOUND_HEADER: function() {
|
|
1725
|
+
return g;
|
|
1726
|
+
},
|
|
1727
|
+
NEXT_DID_POSTPONE_HEADER: function() {
|
|
1728
|
+
return X;
|
|
1729
|
+
},
|
|
1730
|
+
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
1731
|
+
return m;
|
|
1732
|
+
},
|
|
1733
|
+
NEXT_HMR_REFRESH_HEADER: function() {
|
|
1734
|
+
return f;
|
|
1735
|
+
},
|
|
1736
|
+
NEXT_IS_PRERENDER_HEADER: function() {
|
|
1737
|
+
return _;
|
|
1738
|
+
},
|
|
1739
|
+
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
1740
|
+
return l;
|
|
1741
|
+
},
|
|
1742
|
+
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
1743
|
+
return y;
|
|
1744
|
+
},
|
|
1745
|
+
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
1746
|
+
return u;
|
|
1747
|
+
},
|
|
1748
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
1749
|
+
return t;
|
|
1750
|
+
},
|
|
1751
|
+
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
1752
|
+
return k;
|
|
1753
|
+
},
|
|
1754
|
+
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
1755
|
+
return E;
|
|
1756
|
+
},
|
|
1757
|
+
NEXT_RSC_UNION_QUERY: function() {
|
|
1758
|
+
return x;
|
|
1759
|
+
},
|
|
1760
|
+
NEXT_URL: function() {
|
|
1761
|
+
return a;
|
|
1762
|
+
},
|
|
1763
|
+
RSC_CONTENT_TYPE_HEADER: function() {
|
|
1764
|
+
return h;
|
|
1765
|
+
},
|
|
1766
|
+
RSC_HEADER: function() {
|
|
1767
|
+
return d;
|
|
1768
|
+
}
|
|
1769
|
+
});
|
|
1770
|
+
const d = "RSC", c = "Next-Action", E = "Next-Router-State-Tree", u = "Next-Router-Prefetch", t = "Next-Router-Segment-Prefetch", f = "Next-HMR-Refresh", m = "__next_hmr_refresh_hash__", a = "Next-Url", h = "text/x-component", A = [
|
|
1771
|
+
d,
|
|
1772
|
+
E,
|
|
1773
|
+
u,
|
|
1774
|
+
f,
|
|
1775
|
+
t
|
|
1776
|
+
], x = "_rsc", k = "x-nextjs-stale-time", X = "x-nextjs-postponed", l = "x-nextjs-rewritten-path", y = "x-nextjs-rewritten-query", _ = "x-nextjs-prerender", g = "x-nextjs-action-not-found";
|
|
1777
|
+
(typeof o.default == "function" || typeof o.default == "object" && o.default !== null) && typeof o.default.__esModule > "u" && (Object.defineProperty(o.default, "__esModule", { value: !0 }), Object.assign(o.default, o), s.exports = o.default);
|
|
1778
|
+
})(ke, ke.exports)), ke.exports;
|
|
1779
|
+
}
|
|
1780
|
+
var hr;
|
|
1781
|
+
function xt() {
|
|
1782
|
+
return hr || (hr = 1, (function(s) {
|
|
1783
|
+
Object.defineProperty(s, "__esModule", {
|
|
1784
|
+
value: !0
|
|
1785
|
+
});
|
|
1786
|
+
function o(a, h) {
|
|
1787
|
+
for (var A in h) Object.defineProperty(a, A, {
|
|
1788
|
+
enumerable: !0,
|
|
1789
|
+
get: h[A]
|
|
1790
|
+
});
|
|
1791
|
+
}
|
|
1792
|
+
o(s, {
|
|
1793
|
+
getDraftModeProviderForCacheScope: function() {
|
|
1794
|
+
return m;
|
|
1795
|
+
},
|
|
1796
|
+
getExpectedRequestStore: function() {
|
|
1797
|
+
return c;
|
|
1798
|
+
},
|
|
1799
|
+
getHmrRefreshHash: function() {
|
|
1800
|
+
return f;
|
|
1801
|
+
},
|
|
1802
|
+
getPrerenderResumeDataCache: function() {
|
|
1803
|
+
return u;
|
|
1804
|
+
},
|
|
1805
|
+
getRenderResumeDataCache: function() {
|
|
1806
|
+
return t;
|
|
1807
|
+
},
|
|
1808
|
+
throwForMissingRequestStore: function() {
|
|
1809
|
+
return E;
|
|
1810
|
+
},
|
|
1811
|
+
workUnitAsyncStorage: function() {
|
|
1812
|
+
return p.workUnitAsyncStorageInstance;
|
|
1813
|
+
}
|
|
1814
|
+
});
|
|
1815
|
+
const p = an(), d = sn();
|
|
1816
|
+
function c(a) {
|
|
1817
|
+
const h = p.workUnitAsyncStorageInstance.getStore();
|
|
1818
|
+
switch (h || E(a), h.type) {
|
|
1819
|
+
case "request":
|
|
1820
|
+
return h;
|
|
1821
|
+
case "prerender":
|
|
1822
|
+
case "prerender-client":
|
|
1823
|
+
case "prerender-ppr":
|
|
1824
|
+
case "prerender-legacy":
|
|
1825
|
+
throw Object.defineProperty(new Error(`\`${a}\` cannot be called inside a prerender. This is a bug in Next.js.`), "__NEXT_ERROR_CODE", {
|
|
1826
|
+
value: "E401",
|
|
1827
|
+
enumerable: !1,
|
|
1828
|
+
configurable: !0
|
|
1829
|
+
});
|
|
1830
|
+
case "cache":
|
|
1831
|
+
throw Object.defineProperty(new Error(`\`${a}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
1832
|
+
value: "E37",
|
|
1833
|
+
enumerable: !1,
|
|
1834
|
+
configurable: !0
|
|
1835
|
+
});
|
|
1836
|
+
case "unstable-cache":
|
|
1837
|
+
throw Object.defineProperty(new Error(`\`${a}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
1838
|
+
value: "E69",
|
|
1839
|
+
enumerable: !1,
|
|
1840
|
+
configurable: !0
|
|
1841
|
+
});
|
|
1842
|
+
default:
|
|
1843
|
+
return h;
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
function E(a) {
|
|
1847
|
+
throw Object.defineProperty(new Error(`\`${a}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
1848
|
+
value: "E251",
|
|
1849
|
+
enumerable: !1,
|
|
1850
|
+
configurable: !0
|
|
1851
|
+
});
|
|
1852
|
+
}
|
|
1853
|
+
function u(a) {
|
|
1854
|
+
return a.type === "prerender" || // TODO eliminate fetch caching in client scope and stop exposing this data cache during SSR
|
|
1855
|
+
a.type === "prerender-client" || a.type === "prerender-ppr" ? a.prerenderResumeDataCache : null;
|
|
1856
|
+
}
|
|
1857
|
+
function t(a) {
|
|
1858
|
+
switch (a.type) {
|
|
1859
|
+
case "request":
|
|
1860
|
+
return a.renderResumeDataCache;
|
|
1861
|
+
case "prerender":
|
|
1862
|
+
case "prerender-client":
|
|
1863
|
+
if (a.renderResumeDataCache)
|
|
1864
|
+
return a.renderResumeDataCache;
|
|
1865
|
+
// fallthrough
|
|
1866
|
+
case "prerender-ppr":
|
|
1867
|
+
return a.prerenderResumeDataCache;
|
|
1868
|
+
default:
|
|
1869
|
+
return null;
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
function f(a, h) {
|
|
1873
|
+
var A;
|
|
1874
|
+
if (a.dev)
|
|
1875
|
+
return h.type === "cache" || h.type === "prerender" ? h.hmrRefreshHash : h.type === "request" ? (A = h.cookies.get(d.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : A.value : void 0;
|
|
1876
|
+
}
|
|
1877
|
+
function m(a, h) {
|
|
1878
|
+
if (a.isDraftMode)
|
|
1879
|
+
switch (h.type) {
|
|
1880
|
+
case "cache":
|
|
1881
|
+
case "unstable-cache":
|
|
1882
|
+
case "request":
|
|
1883
|
+
return h.draftMode;
|
|
1884
|
+
default:
|
|
1885
|
+
return;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
})(mt)), mt;
|
|
1889
|
+
}
|
|
1890
|
+
var gt = {}, je = { exports: {} }, F = {};
|
|
1891
|
+
/**
|
|
1892
|
+
* @license React
|
|
1893
|
+
* react.production.js
|
|
1894
|
+
*
|
|
1895
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1896
|
+
*
|
|
1897
|
+
* This source code is licensed under the MIT license found in the
|
|
1898
|
+
* LICENSE file in the root directory of this source tree.
|
|
1899
|
+
*/
|
|
1900
|
+
var _r;
|
|
1901
|
+
function un() {
|
|
1902
|
+
if (_r) return F;
|
|
1903
|
+
_r = 1;
|
|
1904
|
+
var s = Symbol.for("react.transitional.element"), o = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), u = Symbol.for("react.context"), t = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.memo"), a = Symbol.for("react.lazy"), h = Symbol.iterator;
|
|
1905
|
+
function A(r) {
|
|
1906
|
+
return r === null || typeof r != "object" ? null : (r = h && r[h] || r["@@iterator"], typeof r == "function" ? r : null);
|
|
1907
|
+
}
|
|
1908
|
+
var x = {
|
|
1909
|
+
isMounted: function() {
|
|
1910
|
+
return !1;
|
|
1911
|
+
},
|
|
1912
|
+
enqueueForceUpdate: function() {
|
|
1913
|
+
},
|
|
1914
|
+
enqueueReplaceState: function() {
|
|
1915
|
+
},
|
|
1916
|
+
enqueueSetState: function() {
|
|
1917
|
+
}
|
|
1918
|
+
}, k = Object.assign, X = {};
|
|
1919
|
+
function l(r, v, M) {
|
|
1920
|
+
this.props = r, this.context = v, this.refs = X, this.updater = M || x;
|
|
1921
|
+
}
|
|
1922
|
+
l.prototype.isReactComponent = {}, l.prototype.setState = function(r, v) {
|
|
1923
|
+
if (typeof r != "object" && typeof r != "function" && r != null)
|
|
1924
|
+
throw Error(
|
|
1925
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1926
|
+
);
|
|
1927
|
+
this.updater.enqueueSetState(this, r, v, "setState");
|
|
1928
|
+
}, l.prototype.forceUpdate = function(r) {
|
|
1929
|
+
this.updater.enqueueForceUpdate(this, r, "forceUpdate");
|
|
1930
|
+
};
|
|
1931
|
+
function y() {
|
|
1932
|
+
}
|
|
1933
|
+
y.prototype = l.prototype;
|
|
1934
|
+
function _(r, v, M) {
|
|
1935
|
+
this.props = r, this.context = v, this.refs = X, this.updater = M || x;
|
|
1936
|
+
}
|
|
1937
|
+
var g = _.prototype = new y();
|
|
1938
|
+
g.constructor = _, k(g, l.prototype), g.isPureReactComponent = !0;
|
|
1939
|
+
var S = Array.isArray, n = { H: null, A: null, T: null, S: null, V: null }, N = Object.prototype.hasOwnProperty;
|
|
1940
|
+
function R(r, v, M, j, $, J) {
|
|
1941
|
+
return M = J.ref, {
|
|
1942
|
+
$$typeof: s,
|
|
1943
|
+
type: r,
|
|
1944
|
+
key: v,
|
|
1945
|
+
ref: M !== void 0 ? M : null,
|
|
1946
|
+
props: J
|
|
1947
|
+
};
|
|
1948
|
+
}
|
|
1949
|
+
function P(r, v) {
|
|
1950
|
+
return R(
|
|
1951
|
+
r.type,
|
|
1952
|
+
v,
|
|
1953
|
+
void 0,
|
|
1954
|
+
void 0,
|
|
1955
|
+
void 0,
|
|
1956
|
+
r.props
|
|
1957
|
+
);
|
|
1958
|
+
}
|
|
1959
|
+
function I(r) {
|
|
1960
|
+
return typeof r == "object" && r !== null && r.$$typeof === s;
|
|
1961
|
+
}
|
|
1962
|
+
function Q(r) {
|
|
1963
|
+
var v = { "=": "=0", ":": "=2" };
|
|
1964
|
+
return "$" + r.replace(/[=:]/g, function(M) {
|
|
1965
|
+
return v[M];
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
var B = /\/+/g;
|
|
1969
|
+
function ne(r, v) {
|
|
1970
|
+
return typeof r == "object" && r !== null && r.key != null ? Q("" + r.key) : v.toString(36);
|
|
1971
|
+
}
|
|
1972
|
+
function ae() {
|
|
1973
|
+
}
|
|
1974
|
+
function oe(r) {
|
|
1975
|
+
switch (r.status) {
|
|
1976
|
+
case "fulfilled":
|
|
1977
|
+
return r.value;
|
|
1978
|
+
case "rejected":
|
|
1979
|
+
throw r.reason;
|
|
1980
|
+
default:
|
|
1981
|
+
switch (typeof r.status == "string" ? r.then(ae, ae) : (r.status = "pending", r.then(
|
|
1982
|
+
function(v) {
|
|
1983
|
+
r.status === "pending" && (r.status = "fulfilled", r.value = v);
|
|
1984
|
+
},
|
|
1985
|
+
function(v) {
|
|
1986
|
+
r.status === "pending" && (r.status = "rejected", r.reason = v);
|
|
1987
|
+
}
|
|
1988
|
+
)), r.status) {
|
|
1989
|
+
case "fulfilled":
|
|
1990
|
+
return r.value;
|
|
1991
|
+
case "rejected":
|
|
1992
|
+
throw r.reason;
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
throw r;
|
|
1996
|
+
}
|
|
1997
|
+
function se(r, v, M, j, $) {
|
|
1998
|
+
var J = typeof r;
|
|
1999
|
+
(J === "undefined" || J === "boolean") && (r = null);
|
|
2000
|
+
var U = !1;
|
|
2001
|
+
if (r === null) U = !0;
|
|
2002
|
+
else
|
|
2003
|
+
switch (J) {
|
|
2004
|
+
case "bigint":
|
|
2005
|
+
case "string":
|
|
2006
|
+
case "number":
|
|
2007
|
+
U = !0;
|
|
2008
|
+
break;
|
|
2009
|
+
case "object":
|
|
2010
|
+
switch (r.$$typeof) {
|
|
2011
|
+
case s:
|
|
2012
|
+
case o:
|
|
2013
|
+
U = !0;
|
|
2014
|
+
break;
|
|
2015
|
+
case a:
|
|
2016
|
+
return U = r._init, se(
|
|
2017
|
+
U(r._payload),
|
|
2018
|
+
v,
|
|
2019
|
+
M,
|
|
2020
|
+
j,
|
|
2021
|
+
$
|
|
2022
|
+
);
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
if (U)
|
|
2026
|
+
return $ = $(r), U = j === "" ? "." + ne(r, 0) : j, S($) ? (M = "", U != null && (M = U.replace(B, "$&/") + "/"), se($, v, M, "", function(pe) {
|
|
2027
|
+
return pe;
|
|
2028
|
+
})) : $ != null && (I($) && ($ = P(
|
|
2029
|
+
$,
|
|
2030
|
+
M + ($.key == null || r && r.key === $.key ? "" : ("" + $.key).replace(
|
|
2031
|
+
B,
|
|
2032
|
+
"$&/"
|
|
2033
|
+
) + "/") + U
|
|
2034
|
+
)), v.push($)), 1;
|
|
2035
|
+
U = 0;
|
|
2036
|
+
var fe = j === "" ? "." : j + ":";
|
|
2037
|
+
if (S(r))
|
|
2038
|
+
for (var te = 0; te < r.length; te++)
|
|
2039
|
+
j = r[te], J = fe + ne(j, te), U += se(
|
|
2040
|
+
j,
|
|
2041
|
+
v,
|
|
2042
|
+
M,
|
|
2043
|
+
J,
|
|
2044
|
+
$
|
|
2045
|
+
);
|
|
2046
|
+
else if (te = A(r), typeof te == "function")
|
|
2047
|
+
for (r = te.call(r), te = 0; !(j = r.next()).done; )
|
|
2048
|
+
j = j.value, J = fe + ne(j, te++), U += se(
|
|
2049
|
+
j,
|
|
2050
|
+
v,
|
|
2051
|
+
M,
|
|
2052
|
+
J,
|
|
2053
|
+
$
|
|
2054
|
+
);
|
|
2055
|
+
else if (J === "object") {
|
|
2056
|
+
if (typeof r.then == "function")
|
|
2057
|
+
return se(
|
|
2058
|
+
oe(r),
|
|
2059
|
+
v,
|
|
2060
|
+
M,
|
|
2061
|
+
j,
|
|
2062
|
+
$
|
|
2063
|
+
);
|
|
2064
|
+
throw v = String(r), Error(
|
|
2065
|
+
"Objects are not valid as a React child (found: " + (v === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : v) + "). If you meant to render a collection of children, use an array instead."
|
|
2066
|
+
);
|
|
2067
|
+
}
|
|
2068
|
+
return U;
|
|
2069
|
+
}
|
|
2070
|
+
function le(r, v, M) {
|
|
2071
|
+
if (r == null) return r;
|
|
2072
|
+
var j = [], $ = 0;
|
|
2073
|
+
return se(r, j, "", "", function(J) {
|
|
2074
|
+
return v.call(M, J, $++);
|
|
2075
|
+
}), j;
|
|
2076
|
+
}
|
|
2077
|
+
function ue(r) {
|
|
2078
|
+
if (r._status === -1) {
|
|
2079
|
+
var v = r._result;
|
|
2080
|
+
v = v(), v.then(
|
|
2081
|
+
function(M) {
|
|
2082
|
+
(r._status === 0 || r._status === -1) && (r._status = 1, r._result = M);
|
|
2083
|
+
},
|
|
2084
|
+
function(M) {
|
|
2085
|
+
(r._status === 0 || r._status === -1) && (r._status = 2, r._result = M);
|
|
2086
|
+
}
|
|
2087
|
+
), r._status === -1 && (r._status = 0, r._result = v);
|
|
2088
|
+
}
|
|
2089
|
+
if (r._status === 1) return r._result.default;
|
|
2090
|
+
throw r._result;
|
|
2091
|
+
}
|
|
2092
|
+
var de = typeof reportError == "function" ? reportError : function(r) {
|
|
2093
|
+
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
2094
|
+
var v = new window.ErrorEvent("error", {
|
|
2095
|
+
bubbles: !0,
|
|
2096
|
+
cancelable: !0,
|
|
2097
|
+
message: typeof r == "object" && r !== null && typeof r.message == "string" ? String(r.message) : String(r),
|
|
2098
|
+
error: r
|
|
2099
|
+
});
|
|
2100
|
+
if (!window.dispatchEvent(v)) return;
|
|
2101
|
+
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
2102
|
+
process.emit("uncaughtException", r);
|
|
2103
|
+
return;
|
|
2104
|
+
}
|
|
2105
|
+
console.error(r);
|
|
2106
|
+
};
|
|
2107
|
+
function me() {
|
|
2108
|
+
}
|
|
2109
|
+
return F.Children = {
|
|
2110
|
+
map: le,
|
|
2111
|
+
forEach: function(r, v, M) {
|
|
2112
|
+
le(
|
|
2113
|
+
r,
|
|
2114
|
+
function() {
|
|
2115
|
+
v.apply(this, arguments);
|
|
2116
|
+
},
|
|
2117
|
+
M
|
|
2118
|
+
);
|
|
2119
|
+
},
|
|
2120
|
+
count: function(r) {
|
|
2121
|
+
var v = 0;
|
|
2122
|
+
return le(r, function() {
|
|
2123
|
+
v++;
|
|
2124
|
+
}), v;
|
|
2125
|
+
},
|
|
2126
|
+
toArray: function(r) {
|
|
2127
|
+
return le(r, function(v) {
|
|
2128
|
+
return v;
|
|
2129
|
+
}) || [];
|
|
2130
|
+
},
|
|
2131
|
+
only: function(r) {
|
|
2132
|
+
if (!I(r))
|
|
2133
|
+
throw Error(
|
|
2134
|
+
"React.Children.only expected to receive a single React element child."
|
|
2135
|
+
);
|
|
2136
|
+
return r;
|
|
2137
|
+
}
|
|
2138
|
+
}, F.Component = l, F.Fragment = p, F.Profiler = c, F.PureComponent = _, F.StrictMode = d, F.Suspense = f, F.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, F.__COMPILER_RUNTIME = {
|
|
2139
|
+
__proto__: null,
|
|
2140
|
+
c: function(r) {
|
|
2141
|
+
return n.H.useMemoCache(r);
|
|
2142
|
+
}
|
|
2143
|
+
}, F.cache = function(r) {
|
|
2144
|
+
return function() {
|
|
2145
|
+
return r.apply(null, arguments);
|
|
2146
|
+
};
|
|
2147
|
+
}, F.cloneElement = function(r, v, M) {
|
|
2148
|
+
if (r == null)
|
|
2149
|
+
throw Error(
|
|
2150
|
+
"The argument must be a React element, but you passed " + r + "."
|
|
2151
|
+
);
|
|
2152
|
+
var j = k({}, r.props), $ = r.key, J = void 0;
|
|
2153
|
+
if (v != null)
|
|
2154
|
+
for (U in v.ref !== void 0 && (J = void 0), v.key !== void 0 && ($ = "" + v.key), v)
|
|
2155
|
+
!N.call(v, U) || U === "key" || U === "__self" || U === "__source" || U === "ref" && v.ref === void 0 || (j[U] = v[U]);
|
|
2156
|
+
var U = arguments.length - 2;
|
|
2157
|
+
if (U === 1) j.children = M;
|
|
2158
|
+
else if (1 < U) {
|
|
2159
|
+
for (var fe = Array(U), te = 0; te < U; te++)
|
|
2160
|
+
fe[te] = arguments[te + 2];
|
|
2161
|
+
j.children = fe;
|
|
2162
|
+
}
|
|
2163
|
+
return R(r.type, $, void 0, void 0, J, j);
|
|
2164
|
+
}, F.createContext = function(r) {
|
|
2165
|
+
return r = {
|
|
2166
|
+
$$typeof: u,
|
|
2167
|
+
_currentValue: r,
|
|
2168
|
+
_currentValue2: r,
|
|
2169
|
+
_threadCount: 0,
|
|
2170
|
+
Provider: null,
|
|
2171
|
+
Consumer: null
|
|
2172
|
+
}, r.Provider = r, r.Consumer = {
|
|
2173
|
+
$$typeof: E,
|
|
2174
|
+
_context: r
|
|
2175
|
+
}, r;
|
|
2176
|
+
}, F.createElement = function(r, v, M) {
|
|
2177
|
+
var j, $ = {}, J = null;
|
|
2178
|
+
if (v != null)
|
|
2179
|
+
for (j in v.key !== void 0 && (J = "" + v.key), v)
|
|
2180
|
+
N.call(v, j) && j !== "key" && j !== "__self" && j !== "__source" && ($[j] = v[j]);
|
|
2181
|
+
var U = arguments.length - 2;
|
|
2182
|
+
if (U === 1) $.children = M;
|
|
2183
|
+
else if (1 < U) {
|
|
2184
|
+
for (var fe = Array(U), te = 0; te < U; te++)
|
|
2185
|
+
fe[te] = arguments[te + 2];
|
|
2186
|
+
$.children = fe;
|
|
2187
|
+
}
|
|
2188
|
+
if (r && r.defaultProps)
|
|
2189
|
+
for (j in U = r.defaultProps, U)
|
|
2190
|
+
$[j] === void 0 && ($[j] = U[j]);
|
|
2191
|
+
return R(r, J, void 0, void 0, null, $);
|
|
2192
|
+
}, F.createRef = function() {
|
|
2193
|
+
return { current: null };
|
|
2194
|
+
}, F.forwardRef = function(r) {
|
|
2195
|
+
return { $$typeof: t, render: r };
|
|
2196
|
+
}, F.isValidElement = I, F.lazy = function(r) {
|
|
2197
|
+
return {
|
|
2198
|
+
$$typeof: a,
|
|
2199
|
+
_payload: { _status: -1, _result: r },
|
|
2200
|
+
_init: ue
|
|
2201
|
+
};
|
|
2202
|
+
}, F.memo = function(r, v) {
|
|
2203
|
+
return {
|
|
2204
|
+
$$typeof: m,
|
|
2205
|
+
type: r,
|
|
2206
|
+
compare: v === void 0 ? null : v
|
|
2207
|
+
};
|
|
2208
|
+
}, F.startTransition = function(r) {
|
|
2209
|
+
var v = n.T, M = {};
|
|
2210
|
+
n.T = M;
|
|
2211
|
+
try {
|
|
2212
|
+
var j = r(), $ = n.S;
|
|
2213
|
+
$ !== null && $(M, j), typeof j == "object" && j !== null && typeof j.then == "function" && j.then(me, de);
|
|
2214
|
+
} catch (J) {
|
|
2215
|
+
de(J);
|
|
2216
|
+
} finally {
|
|
2217
|
+
n.T = v;
|
|
2218
|
+
}
|
|
2219
|
+
}, F.unstable_useCacheRefresh = function() {
|
|
2220
|
+
return n.H.useCacheRefresh();
|
|
2221
|
+
}, F.use = function(r) {
|
|
2222
|
+
return n.H.use(r);
|
|
2223
|
+
}, F.useActionState = function(r, v, M) {
|
|
2224
|
+
return n.H.useActionState(r, v, M);
|
|
2225
|
+
}, F.useCallback = function(r, v) {
|
|
2226
|
+
return n.H.useCallback(r, v);
|
|
2227
|
+
}, F.useContext = function(r) {
|
|
2228
|
+
return n.H.useContext(r);
|
|
2229
|
+
}, F.useDebugValue = function() {
|
|
2230
|
+
}, F.useDeferredValue = function(r, v) {
|
|
2231
|
+
return n.H.useDeferredValue(r, v);
|
|
2232
|
+
}, F.useEffect = function(r, v, M) {
|
|
2233
|
+
var j = n.H;
|
|
2234
|
+
if (typeof M == "function")
|
|
2235
|
+
throw Error(
|
|
2236
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
2237
|
+
);
|
|
2238
|
+
return j.useEffect(r, v);
|
|
2239
|
+
}, F.useId = function() {
|
|
2240
|
+
return n.H.useId();
|
|
2241
|
+
}, F.useImperativeHandle = function(r, v, M) {
|
|
2242
|
+
return n.H.useImperativeHandle(r, v, M);
|
|
2243
|
+
}, F.useInsertionEffect = function(r, v) {
|
|
2244
|
+
return n.H.useInsertionEffect(r, v);
|
|
2245
|
+
}, F.useLayoutEffect = function(r, v) {
|
|
2246
|
+
return n.H.useLayoutEffect(r, v);
|
|
2247
|
+
}, F.useMemo = function(r, v) {
|
|
2248
|
+
return n.H.useMemo(r, v);
|
|
2249
|
+
}, F.useOptimistic = function(r, v) {
|
|
2250
|
+
return n.H.useOptimistic(r, v);
|
|
2251
|
+
}, F.useReducer = function(r, v, M) {
|
|
2252
|
+
return n.H.useReducer(r, v, M);
|
|
2253
|
+
}, F.useRef = function(r) {
|
|
2254
|
+
return n.H.useRef(r);
|
|
2255
|
+
}, F.useState = function(r) {
|
|
2256
|
+
return n.H.useState(r);
|
|
2257
|
+
}, F.useSyncExternalStore = function(r, v, M) {
|
|
2258
|
+
return n.H.useSyncExternalStore(
|
|
2259
|
+
r,
|
|
2260
|
+
v,
|
|
2261
|
+
M
|
|
2262
|
+
);
|
|
2263
|
+
}, F.useTransition = function() {
|
|
2264
|
+
return n.H.useTransition();
|
|
2265
|
+
}, F.version = "19.1.1", F;
|
|
2266
|
+
}
|
|
2267
|
+
var Ie = { exports: {} };
|
|
2268
|
+
/**
|
|
2269
|
+
* @license React
|
|
2270
|
+
* react.development.js
|
|
2271
|
+
*
|
|
2272
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2273
|
+
*
|
|
2274
|
+
* This source code is licensed under the MIT license found in the
|
|
2275
|
+
* LICENSE file in the root directory of this source tree.
|
|
2276
|
+
*/
|
|
2277
|
+
Ie.exports;
|
|
2278
|
+
var mr;
|
|
2279
|
+
function cn() {
|
|
2280
|
+
return mr || (mr = 1, (function(s, o) {
|
|
2281
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
2282
|
+
function p(e, i) {
|
|
2283
|
+
Object.defineProperty(E.prototype, e, {
|
|
2284
|
+
get: function() {
|
|
2285
|
+
console.warn(
|
|
2286
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
2287
|
+
i[0],
|
|
2288
|
+
i[1]
|
|
2289
|
+
);
|
|
2290
|
+
}
|
|
2291
|
+
});
|
|
2292
|
+
}
|
|
2293
|
+
function d(e) {
|
|
2294
|
+
return e === null || typeof e != "object" ? null : (e = Re && e[Re] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
2295
|
+
}
|
|
2296
|
+
function c(e, i) {
|
|
2297
|
+
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
2298
|
+
var T = e + "." + i;
|
|
2299
|
+
be[T] || (console.error(
|
|
2300
|
+
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
2301
|
+
i,
|
|
2302
|
+
e
|
|
2303
|
+
), be[T] = !0);
|
|
2304
|
+
}
|
|
2305
|
+
function E(e, i, T) {
|
|
2306
|
+
this.props = e, this.context = i, this.refs = w, this.updater = T || ve;
|
|
2307
|
+
}
|
|
2308
|
+
function u() {
|
|
2309
|
+
}
|
|
2310
|
+
function t(e, i, T) {
|
|
2311
|
+
this.props = e, this.context = i, this.refs = w, this.updater = T || ve;
|
|
2312
|
+
}
|
|
2313
|
+
function f(e) {
|
|
2314
|
+
return "" + e;
|
|
2315
|
+
}
|
|
2316
|
+
function m(e) {
|
|
2317
|
+
try {
|
|
2318
|
+
f(e);
|
|
2319
|
+
var i = !1;
|
|
2320
|
+
} catch {
|
|
2321
|
+
i = !0;
|
|
2322
|
+
}
|
|
2323
|
+
if (i) {
|
|
2324
|
+
i = console;
|
|
2325
|
+
var T = i.error, C = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
2326
|
+
return T.call(
|
|
2327
|
+
i,
|
|
2328
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2329
|
+
C
|
|
2330
|
+
), f(e);
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
function a(e) {
|
|
2334
|
+
if (e == null) return null;
|
|
2335
|
+
if (typeof e == "function")
|
|
2336
|
+
return e.$$typeof === ce ? null : e.displayName || e.name || null;
|
|
2337
|
+
if (typeof e == "string") return e;
|
|
2338
|
+
switch (e) {
|
|
2339
|
+
case r:
|
|
2340
|
+
return "Fragment";
|
|
2341
|
+
case M:
|
|
2342
|
+
return "Profiler";
|
|
2343
|
+
case v:
|
|
2344
|
+
return "StrictMode";
|
|
2345
|
+
case U:
|
|
2346
|
+
return "Suspense";
|
|
2347
|
+
case fe:
|
|
2348
|
+
return "SuspenseList";
|
|
2349
|
+
case ye:
|
|
2350
|
+
return "Activity";
|
|
2351
|
+
}
|
|
2352
|
+
if (typeof e == "object")
|
|
2353
|
+
switch (typeof e.tag == "number" && console.error(
|
|
2354
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
2355
|
+
), e.$$typeof) {
|
|
2356
|
+
case me:
|
|
2357
|
+
return "Portal";
|
|
2358
|
+
case $:
|
|
2359
|
+
return (e.displayName || "Context") + ".Provider";
|
|
2360
|
+
case j:
|
|
2361
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
2362
|
+
case J:
|
|
2363
|
+
var i = e.render;
|
|
2364
|
+
return e = e.displayName, e || (e = i.displayName || i.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
2365
|
+
case te:
|
|
2366
|
+
return i = e.displayName || null, i !== null ? i : a(e.type) || "Memo";
|
|
2367
|
+
case pe:
|
|
2368
|
+
i = e._payload, e = e._init;
|
|
2369
|
+
try {
|
|
2370
|
+
return a(e(i));
|
|
2371
|
+
} catch {
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
return null;
|
|
2375
|
+
}
|
|
2376
|
+
function h(e) {
|
|
2377
|
+
if (e === r) return "<>";
|
|
2378
|
+
if (typeof e == "object" && e !== null && e.$$typeof === pe)
|
|
2379
|
+
return "<...>";
|
|
2380
|
+
try {
|
|
2381
|
+
var i = a(e);
|
|
2382
|
+
return i ? "<" + i + ">" : "<...>";
|
|
2383
|
+
} catch {
|
|
2384
|
+
return "<...>";
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
function A() {
|
|
2388
|
+
var e = G.A;
|
|
2389
|
+
return e === null ? null : e.getOwner();
|
|
2390
|
+
}
|
|
2391
|
+
function x() {
|
|
2392
|
+
return Error("react-stack-top-frame");
|
|
2393
|
+
}
|
|
2394
|
+
function k(e) {
|
|
2395
|
+
if (Ee.call(e, "key")) {
|
|
2396
|
+
var i = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
2397
|
+
if (i && i.isReactWarning) return !1;
|
|
2398
|
+
}
|
|
2399
|
+
return e.key !== void 0;
|
|
2400
|
+
}
|
|
2401
|
+
function X(e, i) {
|
|
2402
|
+
function T() {
|
|
2403
|
+
xe || (xe = !0, console.error(
|
|
2404
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
2405
|
+
i
|
|
2406
|
+
));
|
|
2407
|
+
}
|
|
2408
|
+
T.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
2409
|
+
get: T,
|
|
2410
|
+
configurable: !0
|
|
2411
|
+
});
|
|
2412
|
+
}
|
|
2413
|
+
function l() {
|
|
2414
|
+
var e = a(this.type);
|
|
2415
|
+
return Ne[e] || (Ne[e] = !0, console.error(
|
|
2416
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
2417
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
2418
|
+
}
|
|
2419
|
+
function y(e, i, T, C, L, V, W, re) {
|
|
2420
|
+
return T = V.ref, e = {
|
|
2421
|
+
$$typeof: de,
|
|
2422
|
+
type: e,
|
|
2423
|
+
key: i,
|
|
2424
|
+
props: V,
|
|
2425
|
+
_owner: L
|
|
2426
|
+
}, (T !== void 0 ? T : null) !== null ? Object.defineProperty(e, "ref", {
|
|
2427
|
+
enumerable: !1,
|
|
2428
|
+
get: l
|
|
2429
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
2430
|
+
configurable: !1,
|
|
2431
|
+
enumerable: !1,
|
|
2432
|
+
writable: !0,
|
|
2433
|
+
value: 0
|
|
2434
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
2435
|
+
configurable: !1,
|
|
2436
|
+
enumerable: !1,
|
|
2437
|
+
writable: !0,
|
|
2438
|
+
value: null
|
|
2439
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
2440
|
+
configurable: !1,
|
|
2441
|
+
enumerable: !1,
|
|
2442
|
+
writable: !0,
|
|
2443
|
+
value: W
|
|
2444
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
2445
|
+
configurable: !1,
|
|
2446
|
+
enumerable: !1,
|
|
2447
|
+
writable: !0,
|
|
2448
|
+
value: re
|
|
2449
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
2450
|
+
}
|
|
2451
|
+
function _(e, i) {
|
|
2452
|
+
return i = y(
|
|
2453
|
+
e.type,
|
|
2454
|
+
i,
|
|
2455
|
+
void 0,
|
|
2456
|
+
void 0,
|
|
2457
|
+
e._owner,
|
|
2458
|
+
e.props,
|
|
2459
|
+
e._debugStack,
|
|
2460
|
+
e._debugTask
|
|
2461
|
+
), e._store && (i._store.validated = e._store.validated), i;
|
|
2462
|
+
}
|
|
2463
|
+
function g(e) {
|
|
2464
|
+
return typeof e == "object" && e !== null && e.$$typeof === de;
|
|
2465
|
+
}
|
|
2466
|
+
function S(e) {
|
|
2467
|
+
var i = { "=": "=0", ":": "=2" };
|
|
2468
|
+
return "$" + e.replace(/[=:]/g, function(T) {
|
|
2469
|
+
return i[T];
|
|
2470
|
+
});
|
|
2471
|
+
}
|
|
2472
|
+
function n(e, i) {
|
|
2473
|
+
return typeof e == "object" && e !== null && e.key != null ? (m(e.key), S("" + e.key)) : i.toString(36);
|
|
2474
|
+
}
|
|
2475
|
+
function N() {
|
|
2476
|
+
}
|
|
2477
|
+
function R(e) {
|
|
2478
|
+
switch (e.status) {
|
|
2479
|
+
case "fulfilled":
|
|
2480
|
+
return e.value;
|
|
2481
|
+
case "rejected":
|
|
2482
|
+
throw e.reason;
|
|
2483
|
+
default:
|
|
2484
|
+
switch (typeof e.status == "string" ? e.then(N, N) : (e.status = "pending", e.then(
|
|
2485
|
+
function(i) {
|
|
2486
|
+
e.status === "pending" && (e.status = "fulfilled", e.value = i);
|
|
2487
|
+
},
|
|
2488
|
+
function(i) {
|
|
2489
|
+
e.status === "pending" && (e.status = "rejected", e.reason = i);
|
|
2490
|
+
}
|
|
2491
|
+
)), e.status) {
|
|
2492
|
+
case "fulfilled":
|
|
2493
|
+
return e.value;
|
|
2494
|
+
case "rejected":
|
|
2495
|
+
throw e.reason;
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
throw e;
|
|
2499
|
+
}
|
|
2500
|
+
function P(e, i, T, C, L) {
|
|
2501
|
+
var V = typeof e;
|
|
2502
|
+
(V === "undefined" || V === "boolean") && (e = null);
|
|
2503
|
+
var W = !1;
|
|
2504
|
+
if (e === null) W = !0;
|
|
2505
|
+
else
|
|
2506
|
+
switch (V) {
|
|
2507
|
+
case "bigint":
|
|
2508
|
+
case "string":
|
|
2509
|
+
case "number":
|
|
2510
|
+
W = !0;
|
|
2511
|
+
break;
|
|
2512
|
+
case "object":
|
|
2513
|
+
switch (e.$$typeof) {
|
|
2514
|
+
case de:
|
|
2515
|
+
case me:
|
|
2516
|
+
W = !0;
|
|
2517
|
+
break;
|
|
2518
|
+
case pe:
|
|
2519
|
+
return W = e._init, P(
|
|
2520
|
+
W(e._payload),
|
|
2521
|
+
i,
|
|
2522
|
+
T,
|
|
2523
|
+
C,
|
|
2524
|
+
L
|
|
2525
|
+
);
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
if (W) {
|
|
2529
|
+
W = e, L = L(W);
|
|
2530
|
+
var re = C === "" ? "." + n(W, 0) : C;
|
|
2531
|
+
return ie(L) ? (T = "", re != null && (T = re.replace(Y, "$&/") + "/"), P(L, i, T, "", function(Pe) {
|
|
2532
|
+
return Pe;
|
|
2533
|
+
})) : L != null && (g(L) && (L.key != null && (W && W.key === L.key || m(L.key)), T = _(
|
|
2534
|
+
L,
|
|
2535
|
+
T + (L.key == null || W && W.key === L.key ? "" : ("" + L.key).replace(
|
|
2536
|
+
Y,
|
|
2537
|
+
"$&/"
|
|
2538
|
+
) + "/") + re
|
|
2539
|
+
), C !== "" && W != null && g(W) && W.key == null && W._store && !W._store.validated && (T._store.validated = 2), L = T), i.push(L)), 1;
|
|
2540
|
+
}
|
|
2541
|
+
if (W = 0, re = C === "" ? "." : C + ":", ie(e))
|
|
2542
|
+
for (var z = 0; z < e.length; z++)
|
|
2543
|
+
C = e[z], V = re + n(C, z), W += P(
|
|
2544
|
+
C,
|
|
2545
|
+
i,
|
|
2546
|
+
T,
|
|
2547
|
+
V,
|
|
2548
|
+
L
|
|
2549
|
+
);
|
|
2550
|
+
else if (z = d(e), typeof z == "function")
|
|
2551
|
+
for (z === e.entries && (Te || console.warn(
|
|
2552
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
2553
|
+
), Te = !0), e = z.call(e), z = 0; !(C = e.next()).done; )
|
|
2554
|
+
C = C.value, V = re + n(C, z++), W += P(
|
|
2555
|
+
C,
|
|
2556
|
+
i,
|
|
2557
|
+
T,
|
|
2558
|
+
V,
|
|
2559
|
+
L
|
|
2560
|
+
);
|
|
2561
|
+
else if (V === "object") {
|
|
2562
|
+
if (typeof e.then == "function")
|
|
2563
|
+
return P(
|
|
2564
|
+
R(e),
|
|
2565
|
+
i,
|
|
2566
|
+
T,
|
|
2567
|
+
C,
|
|
2568
|
+
L
|
|
2569
|
+
);
|
|
2570
|
+
throw i = String(e), Error(
|
|
2571
|
+
"Objects are not valid as a React child (found: " + (i === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : i) + "). If you meant to render a collection of children, use an array instead."
|
|
2572
|
+
);
|
|
2573
|
+
}
|
|
2574
|
+
return W;
|
|
2575
|
+
}
|
|
2576
|
+
function I(e, i, T) {
|
|
2577
|
+
if (e == null) return e;
|
|
2578
|
+
var C = [], L = 0;
|
|
2579
|
+
return P(e, C, "", "", function(V) {
|
|
2580
|
+
return i.call(T, V, L++);
|
|
2581
|
+
}), C;
|
|
2582
|
+
}
|
|
2583
|
+
function Q(e) {
|
|
2584
|
+
if (e._status === -1) {
|
|
2585
|
+
var i = e._result;
|
|
2586
|
+
i = i(), i.then(
|
|
2587
|
+
function(T) {
|
|
2588
|
+
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = T);
|
|
2589
|
+
},
|
|
2590
|
+
function(T) {
|
|
2591
|
+
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = T);
|
|
2592
|
+
}
|
|
2593
|
+
), e._status === -1 && (e._status = 0, e._result = i);
|
|
2594
|
+
}
|
|
2595
|
+
if (e._status === 1)
|
|
2596
|
+
return i = e._result, i === void 0 && console.error(
|
|
2597
|
+
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2598
|
+
|
|
2599
|
+
Your code should look like:
|
|
2600
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
2601
|
+
|
|
2602
|
+
Did you accidentally put curly braces around the import?`,
|
|
2603
|
+
i
|
|
2604
|
+
), "default" in i || console.error(
|
|
2605
|
+
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2606
|
+
|
|
2607
|
+
Your code should look like:
|
|
2608
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
2609
|
+
i
|
|
2610
|
+
), i.default;
|
|
2611
|
+
throw e._result;
|
|
2612
|
+
}
|
|
2613
|
+
function B() {
|
|
2614
|
+
var e = G.H;
|
|
2615
|
+
return e === null && console.error(
|
|
2616
|
+
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
2617
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2618
|
+
2. You might be breaking the Rules of Hooks
|
|
2619
|
+
3. You might have more than one copy of React in the same app
|
|
2620
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
2621
|
+
), e;
|
|
2622
|
+
}
|
|
2623
|
+
function ne() {
|
|
2624
|
+
}
|
|
2625
|
+
function ae(e) {
|
|
2626
|
+
if (ee === null)
|
|
2627
|
+
try {
|
|
2628
|
+
var i = ("require" + Math.random()).slice(0, 7);
|
|
2629
|
+
ee = (s && s[i]).call(
|
|
2630
|
+
s,
|
|
2631
|
+
"timers"
|
|
2632
|
+
).setImmediate;
|
|
2633
|
+
} catch {
|
|
2634
|
+
ee = function(C) {
|
|
2635
|
+
H === !1 && (H = !0, typeof MessageChannel > "u" && console.error(
|
|
2636
|
+
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
2637
|
+
));
|
|
2638
|
+
var L = new MessageChannel();
|
|
2639
|
+
L.port1.onmessage = C, L.port2.postMessage(void 0);
|
|
2640
|
+
};
|
|
2641
|
+
}
|
|
2642
|
+
return ee(e);
|
|
2643
|
+
}
|
|
2644
|
+
function oe(e) {
|
|
2645
|
+
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
2646
|
+
}
|
|
2647
|
+
function se(e, i) {
|
|
2648
|
+
i !== ge - 1 && console.error(
|
|
2649
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
2650
|
+
), ge = i;
|
|
2651
|
+
}
|
|
2652
|
+
function le(e, i, T) {
|
|
2653
|
+
var C = G.actQueue;
|
|
2654
|
+
if (C !== null)
|
|
2655
|
+
if (C.length !== 0)
|
|
2656
|
+
try {
|
|
2657
|
+
ue(C), ae(function() {
|
|
2658
|
+
return le(e, i, T);
|
|
2659
|
+
});
|
|
2660
|
+
return;
|
|
2661
|
+
} catch (L) {
|
|
2662
|
+
G.thrownErrors.push(L);
|
|
2663
|
+
}
|
|
2664
|
+
else G.actQueue = null;
|
|
2665
|
+
0 < G.thrownErrors.length ? (C = oe(G.thrownErrors), G.thrownErrors.length = 0, T(C)) : i(e);
|
|
2666
|
+
}
|
|
2667
|
+
function ue(e) {
|
|
2668
|
+
if (!K) {
|
|
2669
|
+
K = !0;
|
|
2670
|
+
var i = 0;
|
|
2671
|
+
try {
|
|
2672
|
+
for (; i < e.length; i++) {
|
|
2673
|
+
var T = e[i];
|
|
2674
|
+
do {
|
|
2675
|
+
G.didUsePromise = !1;
|
|
2676
|
+
var C = T(!1);
|
|
2677
|
+
if (C !== null) {
|
|
2678
|
+
if (G.didUsePromise) {
|
|
2679
|
+
e[i] = T, e.splice(0, i);
|
|
2680
|
+
return;
|
|
2681
|
+
}
|
|
2682
|
+
T = C;
|
|
2683
|
+
} else break;
|
|
2684
|
+
} while (!0);
|
|
2685
|
+
}
|
|
2686
|
+
e.length = 0;
|
|
2687
|
+
} catch (L) {
|
|
2688
|
+
e.splice(0, i + 1), G.thrownErrors.push(L);
|
|
2689
|
+
} finally {
|
|
2690
|
+
K = !1;
|
|
2691
|
+
}
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2694
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
2695
|
+
var de = Symbol.for("react.transitional.element"), me = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), J = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), fe = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), pe = Symbol.for("react.lazy"), ye = Symbol.for("react.activity"), Re = Symbol.iterator, be = {}, ve = {
|
|
2696
|
+
isMounted: function() {
|
|
2697
|
+
return !1;
|
|
2698
|
+
},
|
|
2699
|
+
enqueueForceUpdate: function(e) {
|
|
2700
|
+
c(e, "forceUpdate");
|
|
2701
|
+
},
|
|
2702
|
+
enqueueReplaceState: function(e) {
|
|
2703
|
+
c(e, "replaceState");
|
|
2704
|
+
},
|
|
2705
|
+
enqueueSetState: function(e) {
|
|
2706
|
+
c(e, "setState");
|
|
2707
|
+
}
|
|
2708
|
+
}, b = Object.assign, w = {};
|
|
2709
|
+
Object.freeze(w), E.prototype.isReactComponent = {}, E.prototype.setState = function(e, i) {
|
|
2710
|
+
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
2711
|
+
throw Error(
|
|
2712
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
2713
|
+
);
|
|
2714
|
+
this.updater.enqueueSetState(this, e, i, "setState");
|
|
2715
|
+
}, E.prototype.forceUpdate = function(e) {
|
|
2716
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
2717
|
+
};
|
|
2718
|
+
var O = {
|
|
2719
|
+
isMounted: [
|
|
2720
|
+
"isMounted",
|
|
2721
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
2722
|
+
],
|
|
2723
|
+
replaceState: [
|
|
2724
|
+
"replaceState",
|
|
2725
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
2726
|
+
]
|
|
2727
|
+
}, D;
|
|
2728
|
+
for (D in O)
|
|
2729
|
+
O.hasOwnProperty(D) && p(D, O[D]);
|
|
2730
|
+
u.prototype = E.prototype, O = t.prototype = new u(), O.constructor = t, b(O, E.prototype), O.isPureReactComponent = !0;
|
|
2731
|
+
var ie = Array.isArray, ce = Symbol.for("react.client.reference"), G = {
|
|
2732
|
+
H: null,
|
|
2733
|
+
A: null,
|
|
2734
|
+
T: null,
|
|
2735
|
+
S: null,
|
|
2736
|
+
V: null,
|
|
2737
|
+
actQueue: null,
|
|
2738
|
+
isBatchingLegacy: !1,
|
|
2739
|
+
didScheduleLegacyUpdate: !1,
|
|
2740
|
+
didUsePromise: !1,
|
|
2741
|
+
thrownErrors: [],
|
|
2742
|
+
getCurrentStack: null,
|
|
2743
|
+
recentlyCreatedOwnerStacks: 0
|
|
2744
|
+
}, Ee = Object.prototype.hasOwnProperty, we = console.createTask ? console.createTask : function() {
|
|
2745
|
+
return null;
|
|
2746
|
+
};
|
|
2747
|
+
O = {
|
|
2748
|
+
react_stack_bottom_frame: function(e) {
|
|
2749
|
+
return e();
|
|
2750
|
+
}
|
|
2751
|
+
};
|
|
2752
|
+
var xe, Oe, Ne = {}, _e = O.react_stack_bottom_frame.bind(
|
|
2753
|
+
O,
|
|
2754
|
+
x
|
|
2755
|
+
)(), Ae = we(h(x)), Te = !1, Y = /\/+/g, Z = typeof reportError == "function" ? reportError : function(e) {
|
|
2756
|
+
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
2757
|
+
var i = new window.ErrorEvent("error", {
|
|
2758
|
+
bubbles: !0,
|
|
2759
|
+
cancelable: !0,
|
|
2760
|
+
message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
|
|
2761
|
+
error: e
|
|
2762
|
+
});
|
|
2763
|
+
if (!window.dispatchEvent(i)) return;
|
|
2764
|
+
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
2765
|
+
process.emit("uncaughtException", e);
|
|
2766
|
+
return;
|
|
2767
|
+
}
|
|
2768
|
+
console.error(e);
|
|
2769
|
+
}, H = !1, ee = null, ge = 0, he = !1, K = !1, q = typeof queueMicrotask == "function" ? function(e) {
|
|
2770
|
+
queueMicrotask(function() {
|
|
2771
|
+
return queueMicrotask(e);
|
|
2772
|
+
});
|
|
2773
|
+
} : ae;
|
|
2774
|
+
O = Object.freeze({
|
|
2775
|
+
__proto__: null,
|
|
2776
|
+
c: function(e) {
|
|
2777
|
+
return B().useMemoCache(e);
|
|
2778
|
+
}
|
|
2779
|
+
}), o.Children = {
|
|
2780
|
+
map: I,
|
|
2781
|
+
forEach: function(e, i, T) {
|
|
2782
|
+
I(
|
|
2783
|
+
e,
|
|
2784
|
+
function() {
|
|
2785
|
+
i.apply(this, arguments);
|
|
2786
|
+
},
|
|
2787
|
+
T
|
|
2788
|
+
);
|
|
2789
|
+
},
|
|
2790
|
+
count: function(e) {
|
|
2791
|
+
var i = 0;
|
|
2792
|
+
return I(e, function() {
|
|
2793
|
+
i++;
|
|
2794
|
+
}), i;
|
|
2795
|
+
},
|
|
2796
|
+
toArray: function(e) {
|
|
2797
|
+
return I(e, function(i) {
|
|
2798
|
+
return i;
|
|
2799
|
+
}) || [];
|
|
2800
|
+
},
|
|
2801
|
+
only: function(e) {
|
|
2802
|
+
if (!g(e))
|
|
2803
|
+
throw Error(
|
|
2804
|
+
"React.Children.only expected to receive a single React element child."
|
|
2805
|
+
);
|
|
2806
|
+
return e;
|
|
2807
|
+
}
|
|
2808
|
+
}, o.Component = E, o.Fragment = r, o.Profiler = M, o.PureComponent = t, o.StrictMode = v, o.Suspense = U, o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = G, o.__COMPILER_RUNTIME = O, o.act = function(e) {
|
|
2809
|
+
var i = G.actQueue, T = ge;
|
|
2810
|
+
ge++;
|
|
2811
|
+
var C = G.actQueue = i !== null ? i : [], L = !1;
|
|
2812
|
+
try {
|
|
2813
|
+
var V = e();
|
|
2814
|
+
} catch (z) {
|
|
2815
|
+
G.thrownErrors.push(z);
|
|
2816
|
+
}
|
|
2817
|
+
if (0 < G.thrownErrors.length)
|
|
2818
|
+
throw se(i, T), e = oe(G.thrownErrors), G.thrownErrors.length = 0, e;
|
|
2819
|
+
if (V !== null && typeof V == "object" && typeof V.then == "function") {
|
|
2820
|
+
var W = V;
|
|
2821
|
+
return q(function() {
|
|
2822
|
+
L || he || (he = !0, console.error(
|
|
2823
|
+
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
2824
|
+
));
|
|
2825
|
+
}), {
|
|
2826
|
+
then: function(z, Pe) {
|
|
2827
|
+
L = !0, W.then(
|
|
2828
|
+
function(Se) {
|
|
2829
|
+
if (se(i, T), T === 0) {
|
|
2830
|
+
try {
|
|
2831
|
+
ue(C), ae(function() {
|
|
2832
|
+
return le(
|
|
2833
|
+
Se,
|
|
2834
|
+
z,
|
|
2835
|
+
Pe
|
|
2836
|
+
);
|
|
2837
|
+
});
|
|
2838
|
+
} catch (Mr) {
|
|
2839
|
+
G.thrownErrors.push(Mr);
|
|
2840
|
+
}
|
|
2841
|
+
if (0 < G.thrownErrors.length) {
|
|
2842
|
+
var Lr = oe(
|
|
2843
|
+
G.thrownErrors
|
|
2844
|
+
);
|
|
2845
|
+
G.thrownErrors.length = 0, Pe(Lr);
|
|
2846
|
+
}
|
|
2847
|
+
} else z(Se);
|
|
2848
|
+
},
|
|
2849
|
+
function(Se) {
|
|
2850
|
+
se(i, T), 0 < G.thrownErrors.length && (Se = oe(
|
|
2851
|
+
G.thrownErrors
|
|
2852
|
+
), G.thrownErrors.length = 0), Pe(Se);
|
|
2853
|
+
}
|
|
2854
|
+
);
|
|
2855
|
+
}
|
|
2856
|
+
};
|
|
2857
|
+
}
|
|
2858
|
+
var re = V;
|
|
2859
|
+
if (se(i, T), T === 0 && (ue(C), C.length !== 0 && q(function() {
|
|
2860
|
+
L || he || (he = !0, console.error(
|
|
2861
|
+
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
2862
|
+
));
|
|
2863
|
+
}), G.actQueue = null), 0 < G.thrownErrors.length)
|
|
2864
|
+
throw e = oe(G.thrownErrors), G.thrownErrors.length = 0, e;
|
|
2865
|
+
return {
|
|
2866
|
+
then: function(z, Pe) {
|
|
2867
|
+
L = !0, T === 0 ? (G.actQueue = C, ae(function() {
|
|
2868
|
+
return le(
|
|
2869
|
+
re,
|
|
2870
|
+
z,
|
|
2871
|
+
Pe
|
|
2872
|
+
);
|
|
2873
|
+
})) : z(re);
|
|
2874
|
+
}
|
|
2875
|
+
};
|
|
2876
|
+
}, o.cache = function(e) {
|
|
2877
|
+
return function() {
|
|
2878
|
+
return e.apply(null, arguments);
|
|
2879
|
+
};
|
|
2880
|
+
}, o.captureOwnerStack = function() {
|
|
2881
|
+
var e = G.getCurrentStack;
|
|
2882
|
+
return e === null ? null : e();
|
|
2883
|
+
}, o.cloneElement = function(e, i, T) {
|
|
2884
|
+
if (e == null)
|
|
2885
|
+
throw Error(
|
|
2886
|
+
"The argument must be a React element, but you passed " + e + "."
|
|
2887
|
+
);
|
|
2888
|
+
var C = b({}, e.props), L = e.key, V = e._owner;
|
|
2889
|
+
if (i != null) {
|
|
2890
|
+
var W;
|
|
2891
|
+
e: {
|
|
2892
|
+
if (Ee.call(i, "ref") && (W = Object.getOwnPropertyDescriptor(
|
|
2893
|
+
i,
|
|
2894
|
+
"ref"
|
|
2895
|
+
).get) && W.isReactWarning) {
|
|
2896
|
+
W = !1;
|
|
2897
|
+
break e;
|
|
2898
|
+
}
|
|
2899
|
+
W = i.ref !== void 0;
|
|
2900
|
+
}
|
|
2901
|
+
W && (V = A()), k(i) && (m(i.key), L = "" + i.key);
|
|
2902
|
+
for (re in i)
|
|
2903
|
+
!Ee.call(i, re) || re === "key" || re === "__self" || re === "__source" || re === "ref" && i.ref === void 0 || (C[re] = i[re]);
|
|
2904
|
+
}
|
|
2905
|
+
var re = arguments.length - 2;
|
|
2906
|
+
if (re === 1) C.children = T;
|
|
2907
|
+
else if (1 < re) {
|
|
2908
|
+
W = Array(re);
|
|
2909
|
+
for (var z = 0; z < re; z++)
|
|
2910
|
+
W[z] = arguments[z + 2];
|
|
2911
|
+
C.children = W;
|
|
2912
|
+
}
|
|
2913
|
+
for (C = y(
|
|
2914
|
+
e.type,
|
|
2915
|
+
L,
|
|
2916
|
+
void 0,
|
|
2917
|
+
void 0,
|
|
2918
|
+
V,
|
|
2919
|
+
C,
|
|
2920
|
+
e._debugStack,
|
|
2921
|
+
e._debugTask
|
|
2922
|
+
), L = 2; L < arguments.length; L++)
|
|
2923
|
+
V = arguments[L], g(V) && V._store && (V._store.validated = 1);
|
|
2924
|
+
return C;
|
|
2925
|
+
}, o.createContext = function(e) {
|
|
2926
|
+
return e = {
|
|
2927
|
+
$$typeof: $,
|
|
2928
|
+
_currentValue: e,
|
|
2929
|
+
_currentValue2: e,
|
|
2930
|
+
_threadCount: 0,
|
|
2931
|
+
Provider: null,
|
|
2932
|
+
Consumer: null
|
|
2933
|
+
}, e.Provider = e, e.Consumer = {
|
|
2934
|
+
$$typeof: j,
|
|
2935
|
+
_context: e
|
|
2936
|
+
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
2937
|
+
}, o.createElement = function(e, i, T) {
|
|
2938
|
+
for (var C = 2; C < arguments.length; C++) {
|
|
2939
|
+
var L = arguments[C];
|
|
2940
|
+
g(L) && L._store && (L._store.validated = 1);
|
|
2941
|
+
}
|
|
2942
|
+
if (C = {}, L = null, i != null)
|
|
2943
|
+
for (z in Oe || !("__self" in i) || "key" in i || (Oe = !0, console.warn(
|
|
2944
|
+
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
2945
|
+
)), k(i) && (m(i.key), L = "" + i.key), i)
|
|
2946
|
+
Ee.call(i, z) && z !== "key" && z !== "__self" && z !== "__source" && (C[z] = i[z]);
|
|
2947
|
+
var V = arguments.length - 2;
|
|
2948
|
+
if (V === 1) C.children = T;
|
|
2949
|
+
else if (1 < V) {
|
|
2950
|
+
for (var W = Array(V), re = 0; re < V; re++)
|
|
2951
|
+
W[re] = arguments[re + 2];
|
|
2952
|
+
Object.freeze && Object.freeze(W), C.children = W;
|
|
2953
|
+
}
|
|
2954
|
+
if (e && e.defaultProps)
|
|
2955
|
+
for (z in V = e.defaultProps, V)
|
|
2956
|
+
C[z] === void 0 && (C[z] = V[z]);
|
|
2957
|
+
L && X(
|
|
2958
|
+
C,
|
|
2959
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
2960
|
+
);
|
|
2961
|
+
var z = 1e4 > G.recentlyCreatedOwnerStacks++;
|
|
2962
|
+
return y(
|
|
2963
|
+
e,
|
|
2964
|
+
L,
|
|
2965
|
+
void 0,
|
|
2966
|
+
void 0,
|
|
2967
|
+
A(),
|
|
2968
|
+
C,
|
|
2969
|
+
z ? Error("react-stack-top-frame") : _e,
|
|
2970
|
+
z ? we(h(e)) : Ae
|
|
2971
|
+
);
|
|
2972
|
+
}, o.createRef = function() {
|
|
2973
|
+
var e = { current: null };
|
|
2974
|
+
return Object.seal(e), e;
|
|
2975
|
+
}, o.forwardRef = function(e) {
|
|
2976
|
+
e != null && e.$$typeof === te ? console.error(
|
|
2977
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
2978
|
+
) : typeof e != "function" ? console.error(
|
|
2979
|
+
"forwardRef requires a render function but was given %s.",
|
|
2980
|
+
e === null ? "null" : typeof e
|
|
2981
|
+
) : e.length !== 0 && e.length !== 2 && console.error(
|
|
2982
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
2983
|
+
e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
2984
|
+
), e != null && e.defaultProps != null && console.error(
|
|
2985
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
2986
|
+
);
|
|
2987
|
+
var i = { $$typeof: J, render: e }, T;
|
|
2988
|
+
return Object.defineProperty(i, "displayName", {
|
|
2989
|
+
enumerable: !1,
|
|
2990
|
+
configurable: !0,
|
|
2991
|
+
get: function() {
|
|
2992
|
+
return T;
|
|
2993
|
+
},
|
|
2994
|
+
set: function(C) {
|
|
2995
|
+
T = C, e.name || e.displayName || (Object.defineProperty(e, "name", { value: C }), e.displayName = C);
|
|
2996
|
+
}
|
|
2997
|
+
}), i;
|
|
2998
|
+
}, o.isValidElement = g, o.lazy = function(e) {
|
|
2999
|
+
return {
|
|
3000
|
+
$$typeof: pe,
|
|
3001
|
+
_payload: { _status: -1, _result: e },
|
|
3002
|
+
_init: Q
|
|
3003
|
+
};
|
|
3004
|
+
}, o.memo = function(e, i) {
|
|
3005
|
+
e == null && console.error(
|
|
3006
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
3007
|
+
e === null ? "null" : typeof e
|
|
3008
|
+
), i = {
|
|
3009
|
+
$$typeof: te,
|
|
3010
|
+
type: e,
|
|
3011
|
+
compare: i === void 0 ? null : i
|
|
3012
|
+
};
|
|
3013
|
+
var T;
|
|
3014
|
+
return Object.defineProperty(i, "displayName", {
|
|
3015
|
+
enumerable: !1,
|
|
3016
|
+
configurable: !0,
|
|
3017
|
+
get: function() {
|
|
3018
|
+
return T;
|
|
3019
|
+
},
|
|
3020
|
+
set: function(C) {
|
|
3021
|
+
T = C, e.name || e.displayName || (Object.defineProperty(e, "name", { value: C }), e.displayName = C);
|
|
3022
|
+
}
|
|
3023
|
+
}), i;
|
|
3024
|
+
}, o.startTransition = function(e) {
|
|
3025
|
+
var i = G.T, T = {};
|
|
3026
|
+
G.T = T, T._updatedFibers = /* @__PURE__ */ new Set();
|
|
3027
|
+
try {
|
|
3028
|
+
var C = e(), L = G.S;
|
|
3029
|
+
L !== null && L(T, C), typeof C == "object" && C !== null && typeof C.then == "function" && C.then(ne, Z);
|
|
3030
|
+
} catch (V) {
|
|
3031
|
+
Z(V);
|
|
3032
|
+
} finally {
|
|
3033
|
+
i === null && T._updatedFibers && (e = T._updatedFibers.size, T._updatedFibers.clear(), 10 < e && console.warn(
|
|
3034
|
+
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
3035
|
+
)), G.T = i;
|
|
3036
|
+
}
|
|
3037
|
+
}, o.unstable_useCacheRefresh = function() {
|
|
3038
|
+
return B().useCacheRefresh();
|
|
3039
|
+
}, o.use = function(e) {
|
|
3040
|
+
return B().use(e);
|
|
3041
|
+
}, o.useActionState = function(e, i, T) {
|
|
3042
|
+
return B().useActionState(
|
|
3043
|
+
e,
|
|
3044
|
+
i,
|
|
3045
|
+
T
|
|
3046
|
+
);
|
|
3047
|
+
}, o.useCallback = function(e, i) {
|
|
3048
|
+
return B().useCallback(e, i);
|
|
3049
|
+
}, o.useContext = function(e) {
|
|
3050
|
+
var i = B();
|
|
3051
|
+
return e.$$typeof === j && console.error(
|
|
3052
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
3053
|
+
), i.useContext(e);
|
|
3054
|
+
}, o.useDebugValue = function(e, i) {
|
|
3055
|
+
return B().useDebugValue(e, i);
|
|
3056
|
+
}, o.useDeferredValue = function(e, i) {
|
|
3057
|
+
return B().useDeferredValue(e, i);
|
|
3058
|
+
}, o.useEffect = function(e, i, T) {
|
|
3059
|
+
e == null && console.warn(
|
|
3060
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
3061
|
+
);
|
|
3062
|
+
var C = B();
|
|
3063
|
+
if (typeof T == "function")
|
|
3064
|
+
throw Error(
|
|
3065
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
3066
|
+
);
|
|
3067
|
+
return C.useEffect(e, i);
|
|
3068
|
+
}, o.useId = function() {
|
|
3069
|
+
return B().useId();
|
|
3070
|
+
}, o.useImperativeHandle = function(e, i, T) {
|
|
3071
|
+
return B().useImperativeHandle(e, i, T);
|
|
3072
|
+
}, o.useInsertionEffect = function(e, i) {
|
|
3073
|
+
return e == null && console.warn(
|
|
3074
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
3075
|
+
), B().useInsertionEffect(e, i);
|
|
3076
|
+
}, o.useLayoutEffect = function(e, i) {
|
|
3077
|
+
return e == null && console.warn(
|
|
3078
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
3079
|
+
), B().useLayoutEffect(e, i);
|
|
3080
|
+
}, o.useMemo = function(e, i) {
|
|
3081
|
+
return B().useMemo(e, i);
|
|
3082
|
+
}, o.useOptimistic = function(e, i) {
|
|
3083
|
+
return B().useOptimistic(e, i);
|
|
3084
|
+
}, o.useReducer = function(e, i, T) {
|
|
3085
|
+
return B().useReducer(e, i, T);
|
|
3086
|
+
}, o.useRef = function(e) {
|
|
3087
|
+
return B().useRef(e);
|
|
3088
|
+
}, o.useState = function(e) {
|
|
3089
|
+
return B().useState(e);
|
|
3090
|
+
}, o.useSyncExternalStore = function(e, i, T) {
|
|
3091
|
+
return B().useSyncExternalStore(
|
|
3092
|
+
e,
|
|
3093
|
+
i,
|
|
3094
|
+
T
|
|
3095
|
+
);
|
|
3096
|
+
}, o.useTransition = function() {
|
|
3097
|
+
return B().useTransition();
|
|
3098
|
+
}, o.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3099
|
+
})();
|
|
3100
|
+
})(Ie, Ie.exports)), Ie.exports;
|
|
3101
|
+
}
|
|
3102
|
+
var Er;
|
|
3103
|
+
function fn() {
|
|
3104
|
+
return Er || (Er = 1, process.env.NODE_ENV === "production" ? je.exports = un() : je.exports = cn()), je.exports;
|
|
3105
|
+
}
|
|
3106
|
+
var Le = { exports: {} }, gr;
|
|
3107
|
+
function ln() {
|
|
3108
|
+
return gr || (gr = 1, (function(s, o) {
|
|
3109
|
+
Object.defineProperty(o, "__esModule", {
|
|
3110
|
+
value: !0
|
|
3111
|
+
});
|
|
3112
|
+
function p(u, t) {
|
|
3113
|
+
for (var f in t) Object.defineProperty(u, f, {
|
|
3114
|
+
enumerable: !0,
|
|
3115
|
+
get: t[f]
|
|
3116
|
+
});
|
|
3117
|
+
}
|
|
3118
|
+
p(o, {
|
|
3119
|
+
DynamicServerError: function() {
|
|
3120
|
+
return c;
|
|
3121
|
+
},
|
|
3122
|
+
isDynamicServerError: function() {
|
|
3123
|
+
return E;
|
|
3124
|
+
}
|
|
3125
|
+
});
|
|
3126
|
+
const d = "DYNAMIC_SERVER_USAGE";
|
|
3127
|
+
class c extends Error {
|
|
3128
|
+
constructor(t) {
|
|
3129
|
+
super("Dynamic server usage: " + t), this.description = t, this.digest = d;
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
function E(u) {
|
|
3133
|
+
return typeof u != "object" || u === null || !("digest" in u) || typeof u.digest != "string" ? !1 : u.digest === d;
|
|
3134
|
+
}
|
|
3135
|
+
(typeof o.default == "function" || typeof o.default == "object" && o.default !== null) && typeof o.default.__esModule > "u" && (Object.defineProperty(o.default, "__esModule", { value: !0 }), Object.assign(o.default, o), s.exports = o.default);
|
|
3136
|
+
})(Le, Le.exports)), Le.exports;
|
|
3137
|
+
}
|
|
3138
|
+
var Me = { exports: {} }, br;
|
|
3139
|
+
function Dt() {
|
|
3140
|
+
return br || (br = 1, (function(s, o) {
|
|
3141
|
+
Object.defineProperty(o, "__esModule", {
|
|
3142
|
+
value: !0
|
|
3143
|
+
});
|
|
3144
|
+
function p(u, t) {
|
|
3145
|
+
for (var f in t) Object.defineProperty(u, f, {
|
|
3146
|
+
enumerable: !0,
|
|
3147
|
+
get: t[f]
|
|
3148
|
+
});
|
|
3149
|
+
}
|
|
3150
|
+
p(o, {
|
|
3151
|
+
StaticGenBailoutError: function() {
|
|
3152
|
+
return c;
|
|
3153
|
+
},
|
|
3154
|
+
isStaticGenBailoutError: function() {
|
|
3155
|
+
return E;
|
|
3156
|
+
}
|
|
3157
|
+
});
|
|
3158
|
+
const d = "NEXT_STATIC_GEN_BAILOUT";
|
|
3159
|
+
class c extends Error {
|
|
3160
|
+
constructor(...t) {
|
|
3161
|
+
super(...t), this.code = d;
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
function E(u) {
|
|
3165
|
+
return typeof u != "object" || u === null || !("code" in u) ? !1 : u.code === d;
|
|
3166
|
+
}
|
|
3167
|
+
(typeof o.default == "function" || typeof o.default == "object" && o.default !== null) && typeof o.default.__esModule > "u" && (Object.defineProperty(o.default, "__esModule", { value: !0 }), Object.assign(o.default, o), s.exports = o.default);
|
|
3168
|
+
})(Me, Me.exports)), Me.exports;
|
|
3169
|
+
}
|
|
3170
|
+
var bt = {}, Rr;
|
|
3171
|
+
function kt() {
|
|
3172
|
+
return Rr || (Rr = 1, (function(s) {
|
|
3173
|
+
Object.defineProperty(s, "__esModule", {
|
|
3174
|
+
value: !0
|
|
3175
|
+
});
|
|
3176
|
+
function o(f, m) {
|
|
3177
|
+
for (var a in m) Object.defineProperty(f, a, {
|
|
3178
|
+
enumerable: !0,
|
|
3179
|
+
get: m[a]
|
|
3180
|
+
});
|
|
3181
|
+
}
|
|
3182
|
+
o(s, {
|
|
3183
|
+
isHangingPromiseRejectionError: function() {
|
|
3184
|
+
return p;
|
|
3185
|
+
},
|
|
3186
|
+
makeHangingPromise: function() {
|
|
3187
|
+
return u;
|
|
3188
|
+
}
|
|
3189
|
+
});
|
|
3190
|
+
function p(f) {
|
|
3191
|
+
return typeof f != "object" || f === null || !("digest" in f) ? !1 : f.digest === d;
|
|
3192
|
+
}
|
|
3193
|
+
const d = "HANGING_PROMISE_REJECTION";
|
|
3194
|
+
class c extends Error {
|
|
3195
|
+
constructor(m) {
|
|
3196
|
+
super(`During prerendering, ${m} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${m} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`), this.expression = m, this.digest = d;
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
const E = /* @__PURE__ */ new WeakMap();
|
|
3200
|
+
function u(f, m) {
|
|
3201
|
+
if (f.aborted)
|
|
3202
|
+
return Promise.reject(new c(m));
|
|
3203
|
+
{
|
|
3204
|
+
const a = new Promise((h, A) => {
|
|
3205
|
+
const x = A.bind(null, new c(m));
|
|
3206
|
+
let k = E.get(f);
|
|
3207
|
+
if (k)
|
|
3208
|
+
k.push(x);
|
|
3209
|
+
else {
|
|
3210
|
+
const X = [
|
|
3211
|
+
x
|
|
3212
|
+
];
|
|
3213
|
+
E.set(f, X), f.addEventListener("abort", () => {
|
|
3214
|
+
for (let l = 0; l < X.length; l++)
|
|
3215
|
+
X[l]();
|
|
3216
|
+
}, {
|
|
3217
|
+
once: !0
|
|
3218
|
+
});
|
|
3219
|
+
}
|
|
3220
|
+
});
|
|
3221
|
+
return a.catch(t), a;
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
function t() {
|
|
3225
|
+
}
|
|
3226
|
+
})(bt)), bt;
|
|
3227
|
+
}
|
|
3228
|
+
var Rt = {}, yr;
|
|
3229
|
+
function dn() {
|
|
3230
|
+
return yr || (yr = 1, (function(s) {
|
|
3231
|
+
Object.defineProperty(s, "__esModule", {
|
|
3232
|
+
value: !0
|
|
3233
|
+
});
|
|
3234
|
+
function o(E, u) {
|
|
3235
|
+
for (var t in u) Object.defineProperty(E, t, {
|
|
3236
|
+
enumerable: !0,
|
|
3237
|
+
get: u[t]
|
|
3238
|
+
});
|
|
3239
|
+
}
|
|
3240
|
+
o(s, {
|
|
3241
|
+
METADATA_BOUNDARY_NAME: function() {
|
|
3242
|
+
return p;
|
|
3243
|
+
},
|
|
3244
|
+
OUTLET_BOUNDARY_NAME: function() {
|
|
3245
|
+
return c;
|
|
3246
|
+
},
|
|
3247
|
+
VIEWPORT_BOUNDARY_NAME: function() {
|
|
3248
|
+
return d;
|
|
3249
|
+
}
|
|
3250
|
+
});
|
|
3251
|
+
const p = "__next_metadata_boundary__", d = "__next_viewport_boundary__", c = "__next_outlet_boundary__";
|
|
3252
|
+
})(Rt)), Rt;
|
|
3253
|
+
}
|
|
3254
|
+
var yt = {}, vr;
|
|
3255
|
+
function pn() {
|
|
3256
|
+
return vr || (vr = 1, (function(s) {
|
|
3257
|
+
Object.defineProperty(s, "__esModule", {
|
|
3258
|
+
value: !0
|
|
3259
|
+
});
|
|
3260
|
+
function o(u, t) {
|
|
3261
|
+
for (var f in t) Object.defineProperty(u, f, {
|
|
3262
|
+
enumerable: !0,
|
|
3263
|
+
get: t[f]
|
|
3264
|
+
});
|
|
3265
|
+
}
|
|
3266
|
+
o(s, {
|
|
3267
|
+
atLeastOneTask: function() {
|
|
3268
|
+
return c;
|
|
3269
|
+
},
|
|
3270
|
+
scheduleImmediate: function() {
|
|
3271
|
+
return d;
|
|
3272
|
+
},
|
|
3273
|
+
scheduleOnNextTick: function() {
|
|
3274
|
+
return p;
|
|
3275
|
+
},
|
|
3276
|
+
waitAtLeastOneReactRenderTask: function() {
|
|
3277
|
+
return E;
|
|
3278
|
+
}
|
|
3279
|
+
});
|
|
3280
|
+
const p = (u) => {
|
|
3281
|
+
Promise.resolve().then(() => {
|
|
3282
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(u, 0) : process.nextTick(u);
|
|
3283
|
+
});
|
|
3284
|
+
}, d = (u) => {
|
|
3285
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(u, 0) : setImmediate(u);
|
|
3286
|
+
};
|
|
3287
|
+
function c() {
|
|
3288
|
+
return new Promise((u) => d(u));
|
|
3289
|
+
}
|
|
3290
|
+
function E() {
|
|
3291
|
+
return process.env.NEXT_RUNTIME === "edge" ? new Promise((u) => setTimeout(u, 0)) : new Promise((u) => setImmediate(u));
|
|
3292
|
+
}
|
|
3293
|
+
})(yt)), yt;
|
|
3294
|
+
}
|
|
3295
|
+
var wr;
|
|
3296
|
+
function jr() {
|
|
3297
|
+
return wr || (wr = 1, (function(s) {
|
|
3298
|
+
Object.defineProperty(s, "__esModule", {
|
|
3299
|
+
value: !0
|
|
3300
|
+
});
|
|
3301
|
+
function o(b, w) {
|
|
3302
|
+
for (var O in w) Object.defineProperty(b, O, {
|
|
3303
|
+
enumerable: !0,
|
|
3304
|
+
get: w[O]
|
|
3305
|
+
});
|
|
3306
|
+
}
|
|
3307
|
+
o(s, {
|
|
3308
|
+
Postpone: function() {
|
|
3309
|
+
return P;
|
|
3310
|
+
},
|
|
3311
|
+
PreludeState: function() {
|
|
3312
|
+
return Re;
|
|
3313
|
+
},
|
|
3314
|
+
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
3315
|
+
return N;
|
|
3316
|
+
},
|
|
3317
|
+
abortOnSynchronousPlatformIOAccess: function() {
|
|
3318
|
+
return S;
|
|
3319
|
+
},
|
|
3320
|
+
accessedDynamicData: function() {
|
|
3321
|
+
return le;
|
|
3322
|
+
},
|
|
3323
|
+
annotateDynamicAccess: function() {
|
|
3324
|
+
return M;
|
|
3325
|
+
},
|
|
3326
|
+
consumeDynamicAccess: function() {
|
|
3327
|
+
return ue;
|
|
3328
|
+
},
|
|
3329
|
+
createDynamicTrackingState: function() {
|
|
3330
|
+
return A;
|
|
3331
|
+
},
|
|
3332
|
+
createDynamicValidationState: function() {
|
|
3333
|
+
return x;
|
|
3334
|
+
},
|
|
3335
|
+
createHangingInputAbortSignal: function() {
|
|
3336
|
+
return v;
|
|
3337
|
+
},
|
|
3338
|
+
createPostponedAbortSignal: function() {
|
|
3339
|
+
return r;
|
|
3340
|
+
},
|
|
3341
|
+
formatDynamicAPIAccesses: function() {
|
|
3342
|
+
return de;
|
|
3343
|
+
},
|
|
3344
|
+
getFirstDynamicReason: function() {
|
|
3345
|
+
return k;
|
|
3346
|
+
},
|
|
3347
|
+
isDynamicPostpone: function() {
|
|
3348
|
+
return B;
|
|
3349
|
+
},
|
|
3350
|
+
isPrerenderInterruptedError: function() {
|
|
3351
|
+
return se;
|
|
3352
|
+
},
|
|
3353
|
+
markCurrentScopeAsDynamic: function() {
|
|
3354
|
+
return X;
|
|
3355
|
+
},
|
|
3356
|
+
postponeWithTracking: function() {
|
|
3357
|
+
return I;
|
|
3358
|
+
},
|
|
3359
|
+
throwIfDisallowedDynamic: function() {
|
|
3360
|
+
return ve;
|
|
3361
|
+
},
|
|
3362
|
+
throwToInterruptStaticGeneration: function() {
|
|
3363
|
+
return y;
|
|
3364
|
+
},
|
|
3365
|
+
trackAllowedDynamicAccess: function() {
|
|
3366
|
+
return pe;
|
|
3367
|
+
},
|
|
3368
|
+
trackDynamicDataInDynamicRender: function() {
|
|
3369
|
+
return _;
|
|
3370
|
+
},
|
|
3371
|
+
trackFallbackParamAccessed: function() {
|
|
3372
|
+
return l;
|
|
3373
|
+
},
|
|
3374
|
+
trackSynchronousPlatformIOAccessInDev: function() {
|
|
3375
|
+
return n;
|
|
3376
|
+
},
|
|
3377
|
+
trackSynchronousRequestDataAccessInDev: function() {
|
|
3378
|
+
return R;
|
|
3379
|
+
},
|
|
3380
|
+
useDynamicRouteParams: function() {
|
|
3381
|
+
return j;
|
|
3382
|
+
}
|
|
3383
|
+
});
|
|
3384
|
+
const p = /* @__PURE__ */ a(fn()), d = ln(), c = Dt(), E = xt(), u = qe(), t = kt(), f = dn(), m = pn();
|
|
3385
|
+
function a(b) {
|
|
3386
|
+
return b && b.__esModule ? b : {
|
|
3387
|
+
default: b
|
|
3388
|
+
};
|
|
3389
|
+
}
|
|
3390
|
+
const h = typeof p.default.unstable_postpone == "function";
|
|
3391
|
+
function A(b) {
|
|
3392
|
+
return {
|
|
3393
|
+
isDebugDynamicAccesses: b,
|
|
3394
|
+
dynamicAccesses: [],
|
|
3395
|
+
syncDynamicErrorWithStack: null
|
|
3396
|
+
};
|
|
3397
|
+
}
|
|
3398
|
+
function x() {
|
|
3399
|
+
return {
|
|
3400
|
+
hasSuspenseAboveBody: !1,
|
|
3401
|
+
hasDynamicMetadata: !1,
|
|
3402
|
+
hasDynamicViewport: !1,
|
|
3403
|
+
hasAllowedDynamic: !1,
|
|
3404
|
+
dynamicErrors: []
|
|
3405
|
+
};
|
|
3406
|
+
}
|
|
3407
|
+
function k(b) {
|
|
3408
|
+
var w;
|
|
3409
|
+
return (w = b.dynamicAccesses[0]) == null ? void 0 : w.expression;
|
|
3410
|
+
}
|
|
3411
|
+
function X(b, w, O) {
|
|
3412
|
+
if (!(w && (w.type === "cache" || w.type === "unstable-cache")) && !(b.forceDynamic || b.forceStatic)) {
|
|
3413
|
+
if (b.dynamicShouldError)
|
|
3414
|
+
throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${b.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${O}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3415
|
+
value: "E553",
|
|
3416
|
+
enumerable: !1,
|
|
3417
|
+
configurable: !0
|
|
3418
|
+
});
|
|
3419
|
+
if (w)
|
|
3420
|
+
if (w.type === "prerender-ppr")
|
|
3421
|
+
I(b.route, O, w.dynamicTracking);
|
|
3422
|
+
else if (w.type === "prerender-legacy") {
|
|
3423
|
+
w.revalidate = 0;
|
|
3424
|
+
const D = Object.defineProperty(new d.DynamicServerError(`Route ${b.route} couldn't be rendered statically because it used ${O}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
3425
|
+
value: "E550",
|
|
3426
|
+
enumerable: !1,
|
|
3427
|
+
configurable: !0
|
|
3428
|
+
});
|
|
3429
|
+
throw b.dynamicUsageDescription = O, b.dynamicUsageStack = D.stack, D;
|
|
3430
|
+
} else process.env.NODE_ENV === "development" && w && w.type === "request" && (w.usedDynamic = !0);
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
function l(b, w) {
|
|
3434
|
+
const O = E.workUnitAsyncStorage.getStore();
|
|
3435
|
+
!O || O.type !== "prerender-ppr" || I(b.route, w, O.dynamicTracking);
|
|
3436
|
+
}
|
|
3437
|
+
function y(b, w, O) {
|
|
3438
|
+
const D = Object.defineProperty(new d.DynamicServerError(`Route ${w.route} couldn't be rendered statically because it used \`${b}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
3439
|
+
value: "E558",
|
|
3440
|
+
enumerable: !1,
|
|
3441
|
+
configurable: !0
|
|
3442
|
+
});
|
|
3443
|
+
throw O.revalidate = 0, w.dynamicUsageDescription = b, w.dynamicUsageStack = D.stack, D;
|
|
3444
|
+
}
|
|
3445
|
+
function _(b, w) {
|
|
3446
|
+
if (w) {
|
|
3447
|
+
if (w.type === "cache" || w.type === "unstable-cache")
|
|
3448
|
+
return;
|
|
3449
|
+
(w.type === "prerender" || w.type === "prerender-client" || w.type === "prerender-legacy") && (w.revalidate = 0), process.env.NODE_ENV === "development" && w.type === "request" && (w.usedDynamic = !0);
|
|
3450
|
+
}
|
|
3451
|
+
}
|
|
3452
|
+
function g(b, w, O) {
|
|
3453
|
+
const D = `Route ${b} needs to bail out of prerendering at this point because it used ${w}.`, ie = oe(D);
|
|
3454
|
+
O.controller.abort(ie);
|
|
3455
|
+
const ce = O.dynamicTracking;
|
|
3456
|
+
ce && ce.dynamicAccesses.push({
|
|
3457
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
3458
|
+
// stack trace.
|
|
3459
|
+
stack: ce.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
3460
|
+
expression: w
|
|
3461
|
+
});
|
|
3462
|
+
}
|
|
3463
|
+
function S(b, w, O, D) {
|
|
3464
|
+
const ie = D.dynamicTracking;
|
|
3465
|
+
g(b, w, D), ie && ie.syncDynamicErrorWithStack === null && (ie.syncDynamicErrorWithStack = O);
|
|
3466
|
+
}
|
|
3467
|
+
function n(b) {
|
|
3468
|
+
b.prerenderPhase = !1;
|
|
3469
|
+
}
|
|
3470
|
+
function N(b, w, O, D) {
|
|
3471
|
+
if (D.controller.signal.aborted === !1) {
|
|
3472
|
+
g(b, w, D);
|
|
3473
|
+
const ce = D.dynamicTracking;
|
|
3474
|
+
ce && ce.syncDynamicErrorWithStack === null && (ce.syncDynamicErrorWithStack = O);
|
|
3475
|
+
}
|
|
3476
|
+
throw oe(`Route ${b} needs to bail out of prerendering at this point because it used ${w}.`);
|
|
3477
|
+
}
|
|
3478
|
+
const R = n;
|
|
3479
|
+
function P({ reason: b, route: w }) {
|
|
3480
|
+
const O = E.workUnitAsyncStorage.getStore(), D = O && O.type === "prerender-ppr" ? O.dynamicTracking : null;
|
|
3481
|
+
I(w, b, D);
|
|
3482
|
+
}
|
|
3483
|
+
function I(b, w, O) {
|
|
3484
|
+
me(), O && O.dynamicAccesses.push({
|
|
3485
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
3486
|
+
// stack trace.
|
|
3487
|
+
stack: O.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
3488
|
+
expression: w
|
|
3489
|
+
}), p.default.unstable_postpone(Q(b, w));
|
|
3490
|
+
}
|
|
3491
|
+
function Q(b, w) {
|
|
3492
|
+
return `Route ${b} needs to bail out of prerendering at this point because it used ${w}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;
|
|
3493
|
+
}
|
|
3494
|
+
function B(b) {
|
|
3495
|
+
return typeof b == "object" && b !== null && typeof b.message == "string" ? ne(b.message) : !1;
|
|
3496
|
+
}
|
|
3497
|
+
function ne(b) {
|
|
3498
|
+
return b.includes("needs to bail out of prerendering at this point because it used") && b.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
|
|
3499
|
+
}
|
|
3500
|
+
if (ne(Q("%%%", "^^^")) === !1)
|
|
3501
|
+
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
3502
|
+
value: "E296",
|
|
3503
|
+
enumerable: !1,
|
|
3504
|
+
configurable: !0
|
|
3505
|
+
});
|
|
3506
|
+
const ae = "NEXT_PRERENDER_INTERRUPTED";
|
|
3507
|
+
function oe(b) {
|
|
3508
|
+
const w = Object.defineProperty(new Error(b), "__NEXT_ERROR_CODE", {
|
|
3509
|
+
value: "E394",
|
|
3510
|
+
enumerable: !1,
|
|
3511
|
+
configurable: !0
|
|
3512
|
+
});
|
|
3513
|
+
return w.digest = ae, w;
|
|
3514
|
+
}
|
|
3515
|
+
function se(b) {
|
|
3516
|
+
return typeof b == "object" && b !== null && b.digest === ae && "name" in b && "message" in b && b instanceof Error;
|
|
3517
|
+
}
|
|
3518
|
+
function le(b) {
|
|
3519
|
+
return b.length > 0;
|
|
3520
|
+
}
|
|
3521
|
+
function ue(b, w) {
|
|
3522
|
+
return b.dynamicAccesses.push(...w.dynamicAccesses), b.dynamicAccesses;
|
|
3523
|
+
}
|
|
3524
|
+
function de(b) {
|
|
3525
|
+
return b.filter((w) => typeof w.stack == "string" && w.stack.length > 0).map(({ expression: w, stack: O }) => (O = O.split(`
|
|
3526
|
+
`).slice(4).filter((D) => !(D.includes("node_modules/next/") || D.includes(" (<anonymous>)") || D.includes(" (node:"))).join(`
|
|
3527
|
+
`), `Dynamic API Usage Debug - ${w}:
|
|
3528
|
+
${O}`));
|
|
3529
|
+
}
|
|
3530
|
+
function me() {
|
|
3531
|
+
if (!h)
|
|
3532
|
+
throw Object.defineProperty(new Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
3533
|
+
value: "E224",
|
|
3534
|
+
enumerable: !1,
|
|
3535
|
+
configurable: !0
|
|
3536
|
+
});
|
|
3537
|
+
}
|
|
3538
|
+
function r(b) {
|
|
3539
|
+
me();
|
|
3540
|
+
const w = new AbortController();
|
|
3541
|
+
try {
|
|
3542
|
+
p.default.unstable_postpone(b);
|
|
3543
|
+
} catch (O) {
|
|
3544
|
+
w.abort(O);
|
|
3545
|
+
}
|
|
3546
|
+
return w.signal;
|
|
3547
|
+
}
|
|
3548
|
+
function v(b) {
|
|
3549
|
+
const w = new AbortController();
|
|
3550
|
+
return b.cacheSignal ? b.cacheSignal.inputReady().then(() => {
|
|
3551
|
+
w.abort();
|
|
3552
|
+
}) : (0, m.scheduleOnNextTick)(() => w.abort()), w.signal;
|
|
3553
|
+
}
|
|
3554
|
+
function M(b, w) {
|
|
3555
|
+
const O = w.dynamicTracking;
|
|
3556
|
+
O && O.dynamicAccesses.push({
|
|
3557
|
+
stack: O.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
3558
|
+
expression: b
|
|
3559
|
+
});
|
|
3560
|
+
}
|
|
3561
|
+
function j(b) {
|
|
3562
|
+
const w = u.workAsyncStorage.getStore();
|
|
3563
|
+
if (w && w.isStaticGeneration && w.fallbackRouteParams && w.fallbackRouteParams.size > 0) {
|
|
3564
|
+
const O = E.workUnitAsyncStorage.getStore();
|
|
3565
|
+
O && (O.type === "prerender-client" ? p.default.use((0, t.makeHangingPromise)(O.renderSignal, b)) : O.type === "prerender-ppr" ? I(w.route, b, O.dynamicTracking) : O.type === "prerender-legacy" && y(b, w, O));
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3568
|
+
const $ = /\n\s+at Suspense \(<anonymous>\)/, J = /\n\s+at (?:body|html) \(<anonymous>\)[\s\S]*?\n\s+at Suspense \(<anonymous>\)/, U = new RegExp(`\\n\\s+at ${f.METADATA_BOUNDARY_NAME}[\\n\\s]`), fe = new RegExp(`\\n\\s+at ${f.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), te = new RegExp(`\\n\\s+at ${f.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
3569
|
+
function pe(b, w, O, D) {
|
|
3570
|
+
if (!te.test(w))
|
|
3571
|
+
if (U.test(w)) {
|
|
3572
|
+
O.hasDynamicMetadata = !0;
|
|
3573
|
+
return;
|
|
3574
|
+
} else if (fe.test(w)) {
|
|
3575
|
+
O.hasDynamicViewport = !0;
|
|
3576
|
+
return;
|
|
3577
|
+
} else if (J.test(w)) {
|
|
3578
|
+
O.hasAllowedDynamic = !0, O.hasSuspenseAboveBody = !0;
|
|
3579
|
+
return;
|
|
3580
|
+
} else if ($.test(w)) {
|
|
3581
|
+
O.hasAllowedDynamic = !0;
|
|
3582
|
+
return;
|
|
3583
|
+
} else if (D.syncDynamicErrorWithStack) {
|
|
3584
|
+
O.dynamicErrors.push(D.syncDynamicErrorWithStack);
|
|
3585
|
+
return;
|
|
3586
|
+
} else {
|
|
3587
|
+
const ie = `Route "${b.route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`, ce = ye(ie, w);
|
|
3588
|
+
O.dynamicErrors.push(ce);
|
|
3589
|
+
return;
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
function ye(b, w) {
|
|
3593
|
+
const O = process.env.NODE_ENV !== "production" && p.default.captureOwnerStack ? p.default.captureOwnerStack() : null, D = Object.defineProperty(new Error(b), "__NEXT_ERROR_CODE", {
|
|
3594
|
+
value: "E394",
|
|
3595
|
+
enumerable: !1,
|
|
3596
|
+
configurable: !0
|
|
3597
|
+
});
|
|
3598
|
+
return D.stack = D.name + ": " + b + (O ?? w), D;
|
|
3599
|
+
}
|
|
3600
|
+
var Re = /* @__PURE__ */ (function(b) {
|
|
3601
|
+
return b[b.Full = 0] = "Full", b[b.Empty = 1] = "Empty", b[b.Errored = 2] = "Errored", b;
|
|
3602
|
+
})({});
|
|
3603
|
+
function be(b, w) {
|
|
3604
|
+
console.error(w), b.dev || (b.hasReadableErrorStacks ? console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${b.route}" in your browser to investigate the error.`) : console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
3605
|
+
- Start the app in development mode by running \`next dev\`, then open "${b.route}" in your browser to investigate the error.
|
|
3606
|
+
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`));
|
|
3607
|
+
}
|
|
3608
|
+
function ve(b, w, O, D) {
|
|
3609
|
+
if (b.invalidDynamicUsageError)
|
|
3610
|
+
throw be(b, b.invalidDynamicUsageError), new c.StaticGenBailoutError();
|
|
3611
|
+
if (w !== 0) {
|
|
3612
|
+
if (O.hasSuspenseAboveBody)
|
|
3613
|
+
return;
|
|
3614
|
+
if (D.syncDynamicErrorWithStack)
|
|
3615
|
+
throw be(b, D.syncDynamicErrorWithStack), new c.StaticGenBailoutError();
|
|
3616
|
+
const ie = O.dynamicErrors;
|
|
3617
|
+
if (ie.length > 0) {
|
|
3618
|
+
for (let ce = 0; ce < ie.length; ce++)
|
|
3619
|
+
be(b, ie[ce]);
|
|
3620
|
+
throw new c.StaticGenBailoutError();
|
|
3621
|
+
}
|
|
3622
|
+
if (O.hasDynamicViewport)
|
|
3623
|
+
throw console.error(`Route "${b.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`), new c.StaticGenBailoutError();
|
|
3624
|
+
if (w === 1)
|
|
3625
|
+
throw console.error(`Route "${b.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`), new c.StaticGenBailoutError();
|
|
3626
|
+
} else if (O.hasAllowedDynamic === !1 && O.hasDynamicMetadata)
|
|
3627
|
+
throw console.error(`Route "${b.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`), new c.StaticGenBailoutError();
|
|
3628
|
+
}
|
|
3629
|
+
})(gt)), gt;
|
|
3630
|
+
}
|
|
3631
|
+
var vt = {}, wt = {}, At = {}, Ar;
|
|
3632
|
+
function hn() {
|
|
3633
|
+
return Ar || (Ar = 1, (function(s) {
|
|
3634
|
+
Object.defineProperty(s, "__esModule", {
|
|
3635
|
+
value: !0
|
|
3636
|
+
}), Object.defineProperty(s, "afterTaskAsyncStorageInstance", {
|
|
3637
|
+
enumerable: !0,
|
|
3638
|
+
get: function() {
|
|
3639
|
+
return p;
|
|
3640
|
+
}
|
|
3641
|
+
});
|
|
3642
|
+
const p = (0, It().createAsyncLocalStorage)();
|
|
3643
|
+
})(At)), At;
|
|
3644
|
+
}
|
|
3645
|
+
var Pr;
|
|
3646
|
+
function _n() {
|
|
3647
|
+
return Pr || (Pr = 1, (function(s) {
|
|
3648
|
+
Object.defineProperty(s, "__esModule", {
|
|
3649
|
+
value: !0
|
|
3650
|
+
}), Object.defineProperty(s, "afterTaskAsyncStorage", {
|
|
3651
|
+
enumerable: !0,
|
|
3652
|
+
get: function() {
|
|
3653
|
+
return o.afterTaskAsyncStorageInstance;
|
|
3654
|
+
}
|
|
3655
|
+
});
|
|
3656
|
+
const o = hn();
|
|
3657
|
+
})(wt)), wt;
|
|
3658
|
+
}
|
|
3659
|
+
var Tr;
|
|
3660
|
+
function mn() {
|
|
3661
|
+
return Tr || (Tr = 1, (function(s) {
|
|
3662
|
+
Object.defineProperty(s, "__esModule", {
|
|
3663
|
+
value: !0
|
|
3664
|
+
});
|
|
3665
|
+
function o(f, m) {
|
|
3666
|
+
for (var a in m) Object.defineProperty(f, a, {
|
|
3667
|
+
enumerable: !0,
|
|
3668
|
+
get: m[a]
|
|
3669
|
+
});
|
|
3670
|
+
}
|
|
3671
|
+
o(s, {
|
|
3672
|
+
isRequestAPICallableInsideAfter: function() {
|
|
3673
|
+
return t;
|
|
3674
|
+
},
|
|
3675
|
+
throwForSearchParamsAccessInUseCache: function() {
|
|
3676
|
+
return u;
|
|
3677
|
+
},
|
|
3678
|
+
throwWithStaticGenerationBailoutError: function() {
|
|
3679
|
+
return c;
|
|
3680
|
+
},
|
|
3681
|
+
throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
|
|
3682
|
+
return E;
|
|
3683
|
+
}
|
|
3684
|
+
});
|
|
3685
|
+
const p = Dt(), d = _n();
|
|
3686
|
+
function c(f, m) {
|
|
3687
|
+
throw Object.defineProperty(new p.StaticGenBailoutError(`Route ${f} couldn't be rendered statically because it used ${m}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3688
|
+
value: "E576",
|
|
3689
|
+
enumerable: !1,
|
|
3690
|
+
configurable: !0
|
|
3691
|
+
});
|
|
3692
|
+
}
|
|
3693
|
+
function E(f, m) {
|
|
3694
|
+
throw Object.defineProperty(new p.StaticGenBailoutError(`Route ${f} with \`dynamic = "error"\` couldn't be rendered statically because it used ${m}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3695
|
+
value: "E543",
|
|
3696
|
+
enumerable: !1,
|
|
3697
|
+
configurable: !0
|
|
3698
|
+
});
|
|
3699
|
+
}
|
|
3700
|
+
function u(f, m) {
|
|
3701
|
+
const a = Object.defineProperty(new Error(`Route ${f.route} used "searchParams" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "searchParams" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
3702
|
+
value: "E634",
|
|
3703
|
+
enumerable: !1,
|
|
3704
|
+
configurable: !0
|
|
3705
|
+
});
|
|
3706
|
+
throw Error.captureStackTrace(a, m), f.invalidDynamicUsageError ?? (f.invalidDynamicUsageError = a), a;
|
|
3707
|
+
}
|
|
3708
|
+
function t() {
|
|
3709
|
+
const f = d.afterTaskAsyncStorage.getStore();
|
|
3710
|
+
return (f == null ? void 0 : f.rootTaskSpawnPhase) === "action";
|
|
3711
|
+
}
|
|
3712
|
+
})(vt)), vt;
|
|
3713
|
+
}
|
|
3714
|
+
var Sr;
|
|
3715
|
+
function En() {
|
|
3716
|
+
return Sr || (Sr = 1, (function(s) {
|
|
3717
|
+
Object.defineProperty(s, "__esModule", {
|
|
3718
|
+
value: !0
|
|
3719
|
+
}), Object.defineProperty(s, "connection", {
|
|
3720
|
+
enumerable: !0,
|
|
3721
|
+
get: function() {
|
|
3722
|
+
return t;
|
|
3723
|
+
}
|
|
3724
|
+
});
|
|
3725
|
+
const o = qe(), p = xt(), d = jr(), c = Dt(), E = kt(), u = mn();
|
|
3726
|
+
function t() {
|
|
3727
|
+
const f = o.workAsyncStorage.getStore(), m = p.workUnitAsyncStorage.getStore();
|
|
3728
|
+
if (f) {
|
|
3729
|
+
if (m && m.phase === "after" && !(0, u.isRequestAPICallableInsideAfter)())
|
|
3730
|
+
throw Object.defineProperty(new Error(`Route ${f.route} used "connection" inside "after(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but "after(...)" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
|
|
3731
|
+
value: "E186",
|
|
3732
|
+
enumerable: !1,
|
|
3733
|
+
configurable: !0
|
|
3734
|
+
});
|
|
3735
|
+
if (f.forceStatic)
|
|
3736
|
+
return Promise.resolve(void 0);
|
|
3737
|
+
if (m) {
|
|
3738
|
+
if (m.type === "cache")
|
|
3739
|
+
throw Object.defineProperty(new Error(`Route ${f.route} used "connection" inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
3740
|
+
value: "E111",
|
|
3741
|
+
enumerable: !1,
|
|
3742
|
+
configurable: !0
|
|
3743
|
+
});
|
|
3744
|
+
if (m.type === "unstable-cache")
|
|
3745
|
+
throw Object.defineProperty(new Error(`Route ${f.route} used "connection" inside a function cached with "unstable_cache(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
3746
|
+
value: "E1",
|
|
3747
|
+
enumerable: !1,
|
|
3748
|
+
configurable: !0
|
|
3749
|
+
});
|
|
3750
|
+
}
|
|
3751
|
+
if (f.dynamicShouldError)
|
|
3752
|
+
throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${f.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3753
|
+
value: "E562",
|
|
3754
|
+
enumerable: !1,
|
|
3755
|
+
configurable: !0
|
|
3756
|
+
});
|
|
3757
|
+
if (m) {
|
|
3758
|
+
if (m.type === "prerender" || m.type === "prerender-client")
|
|
3759
|
+
return (0, E.makeHangingPromise)(m.renderSignal, "`connection()`");
|
|
3760
|
+
m.type === "prerender-ppr" ? (0, d.postponeWithTracking)(f.route, "connection", m.dynamicTracking) : m.type === "prerender-legacy" && (0, d.throwToInterruptStaticGeneration)("connection", f, m);
|
|
3761
|
+
}
|
|
3762
|
+
(0, d.trackDynamicDataInDynamicRender)(f, m);
|
|
3763
|
+
}
|
|
3764
|
+
return Promise.resolve(void 0);
|
|
3765
|
+
}
|
|
3766
|
+
})(_t)), _t;
|
|
3767
|
+
}
|
|
3768
|
+
var Pt = {}, Tt = {}, Or;
|
|
3769
|
+
function gn() {
|
|
3770
|
+
return Or || (Or = 1, (function(s) {
|
|
3771
|
+
Object.defineProperty(s, "__esModule", {
|
|
3772
|
+
value: !0
|
|
3773
|
+
}), Object.defineProperty(s, "InvariantError", {
|
|
3774
|
+
enumerable: !0,
|
|
3775
|
+
get: function() {
|
|
3776
|
+
return o;
|
|
3777
|
+
}
|
|
3778
|
+
});
|
|
3779
|
+
class o extends Error {
|
|
3780
|
+
constructor(d, c) {
|
|
3781
|
+
super("Invariant: " + (d.endsWith(".") ? d : d + ".") + " This is a bug in Next.js.", c), this.name = "InvariantError";
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3784
|
+
})(Tt)), Tt;
|
|
3785
|
+
}
|
|
3786
|
+
var St = {}, Nr;
|
|
3787
|
+
function bn() {
|
|
3788
|
+
return Nr || (Nr = 1, (function(s) {
|
|
3789
|
+
Object.defineProperty(s, "__esModule", {
|
|
3790
|
+
value: !0
|
|
3791
|
+
});
|
|
3792
|
+
function o(u, t) {
|
|
3793
|
+
for (var f in t) Object.defineProperty(u, f, {
|
|
3794
|
+
enumerable: !0,
|
|
3795
|
+
get: t[f]
|
|
3796
|
+
});
|
|
3797
|
+
}
|
|
3798
|
+
o(s, {
|
|
3799
|
+
describeHasCheckingStringProperty: function() {
|
|
3800
|
+
return c;
|
|
3801
|
+
},
|
|
3802
|
+
describeStringPropertyAccess: function() {
|
|
3803
|
+
return d;
|
|
3804
|
+
},
|
|
3805
|
+
wellKnownProperties: function() {
|
|
3806
|
+
return E;
|
|
3807
|
+
}
|
|
3808
|
+
});
|
|
3809
|
+
const p = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
3810
|
+
function d(u, t) {
|
|
3811
|
+
return p.test(t) ? "`" + u + "." + t + "`" : "`" + u + "[" + JSON.stringify(t) + "]`";
|
|
3812
|
+
}
|
|
3813
|
+
function c(u, t) {
|
|
3814
|
+
const f = JSON.stringify(t);
|
|
3815
|
+
return "`Reflect.has(" + u + ", " + f + ")`, `" + f + " in " + u + "`, or similar";
|
|
3816
|
+
}
|
|
3817
|
+
const E = /* @__PURE__ */ new Set([
|
|
3818
|
+
"hasOwnProperty",
|
|
3819
|
+
"isPrototypeOf",
|
|
3820
|
+
"propertyIsEnumerable",
|
|
3821
|
+
"toString",
|
|
3822
|
+
"valueOf",
|
|
3823
|
+
"toLocaleString",
|
|
3824
|
+
// Promise prototype
|
|
3825
|
+
// fallthrough
|
|
3826
|
+
"then",
|
|
3827
|
+
"catch",
|
|
3828
|
+
"finally",
|
|
3829
|
+
// React Promise extension
|
|
3830
|
+
// fallthrough
|
|
3831
|
+
"status",
|
|
3832
|
+
// React introspection
|
|
3833
|
+
"displayName",
|
|
3834
|
+
"_debugInfo",
|
|
3835
|
+
// Common tested properties
|
|
3836
|
+
// fallthrough
|
|
3837
|
+
"toJSON",
|
|
3838
|
+
"$$typeof",
|
|
3839
|
+
"__esModule"
|
|
3840
|
+
]);
|
|
3841
|
+
})(St)), St;
|
|
3842
|
+
}
|
|
3843
|
+
var Cr;
|
|
3844
|
+
function Rn() {
|
|
3845
|
+
return Cr || (Cr = 1, (function(s) {
|
|
3846
|
+
Object.defineProperty(s, "__esModule", {
|
|
3847
|
+
value: !0
|
|
3848
|
+
}), Object.defineProperty(s, "unstable_rootParams", {
|
|
3849
|
+
enumerable: !0,
|
|
3850
|
+
get: function() {
|
|
3851
|
+
return f;
|
|
3852
|
+
}
|
|
3853
|
+
});
|
|
3854
|
+
const o = gn(), p = jr(), d = qe(), c = xt(), E = kt(), u = bn(), t = /* @__PURE__ */ new WeakMap();
|
|
3855
|
+
async function f() {
|
|
3856
|
+
const h = d.workAsyncStorage.getStore();
|
|
3857
|
+
if (!h)
|
|
3858
|
+
throw Object.defineProperty(new o.InvariantError("Missing workStore in unstable_rootParams"), "__NEXT_ERROR_CODE", {
|
|
3859
|
+
value: "E615",
|
|
3860
|
+
enumerable: !1,
|
|
3861
|
+
configurable: !0
|
|
3862
|
+
});
|
|
3863
|
+
const A = c.workUnitAsyncStorage.getStore();
|
|
3864
|
+
if (!A)
|
|
3865
|
+
throw Object.defineProperty(new Error(`Route ${h.route} used \`unstable_rootParams()\` in Pages Router. This API is only available within App Router.`), "__NEXT_ERROR_CODE", {
|
|
3866
|
+
value: "E641",
|
|
3867
|
+
enumerable: !1,
|
|
3868
|
+
configurable: !0
|
|
3869
|
+
});
|
|
3870
|
+
switch (A.type) {
|
|
3871
|
+
case "unstable-cache":
|
|
3872
|
+
case "cache":
|
|
3873
|
+
throw Object.defineProperty(new Error(`Route ${h.route} used \`unstable_rootParams()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.`), "__NEXT_ERROR_CODE", {
|
|
3874
|
+
value: "E642",
|
|
3875
|
+
enumerable: !1,
|
|
3876
|
+
configurable: !0
|
|
3877
|
+
});
|
|
3878
|
+
case "prerender":
|
|
3879
|
+
case "prerender-client":
|
|
3880
|
+
case "prerender-ppr":
|
|
3881
|
+
case "prerender-legacy":
|
|
3882
|
+
return m(A.rootParams, h, A);
|
|
3883
|
+
default:
|
|
3884
|
+
return Promise.resolve(A.rootParams);
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
function m(h, A, x) {
|
|
3888
|
+
const k = A.fallbackRouteParams;
|
|
3889
|
+
if (k) {
|
|
3890
|
+
let X = !1;
|
|
3891
|
+
for (const l in h)
|
|
3892
|
+
if (k.has(l)) {
|
|
3893
|
+
X = !0;
|
|
3894
|
+
break;
|
|
3895
|
+
}
|
|
3896
|
+
if (X)
|
|
3897
|
+
switch (x.type) {
|
|
3898
|
+
case "prerender":
|
|
3899
|
+
const l = t.get(h);
|
|
3900
|
+
if (l)
|
|
3901
|
+
return l;
|
|
3902
|
+
const y = (0, E.makeHangingPromise)(x.renderSignal, "`unstable_rootParams`");
|
|
3903
|
+
return t.set(h, y), y;
|
|
3904
|
+
case "prerender-client":
|
|
3905
|
+
const _ = "`unstable_rootParams`";
|
|
3906
|
+
throw Object.defineProperty(new o.InvariantError(`${_} must not be used within a client component. Next.js should be preventing ${_} from being included in client components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
3907
|
+
value: "E693",
|
|
3908
|
+
enumerable: !1,
|
|
3909
|
+
configurable: !0
|
|
3910
|
+
});
|
|
3911
|
+
default:
|
|
3912
|
+
return a(h, k, A, x);
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3915
|
+
return Promise.resolve(h);
|
|
3916
|
+
}
|
|
3917
|
+
function a(h, A, x, k) {
|
|
3918
|
+
const X = t.get(h);
|
|
3919
|
+
if (X)
|
|
3920
|
+
return X;
|
|
3921
|
+
const l = {
|
|
3922
|
+
...h
|
|
3923
|
+
}, y = Promise.resolve(l);
|
|
3924
|
+
return t.set(h, y), Object.keys(h).forEach((_) => {
|
|
3925
|
+
u.wellKnownProperties.has(_) || (A.has(_) ? Object.defineProperty(l, _, {
|
|
3926
|
+
get() {
|
|
3927
|
+
const g = (0, u.describeStringPropertyAccess)("unstable_rootParams", _);
|
|
3928
|
+
k.type === "prerender-ppr" ? (0, p.postponeWithTracking)(x.route, g, k.dynamicTracking) : (0, p.throwToInterruptStaticGeneration)(g, x, k);
|
|
3929
|
+
},
|
|
3930
|
+
enumerable: !0
|
|
3931
|
+
}) : y[_] = h[_]);
|
|
3932
|
+
}), y;
|
|
3933
|
+
}
|
|
3934
|
+
})(Pt)), Pt;
|
|
3935
|
+
}
|
|
3936
|
+
var Ir;
|
|
3937
|
+
function yn() {
|
|
3938
|
+
return Ir || (Ir = 1, (function(s, o) {
|
|
3939
|
+
const p = {
|
|
3940
|
+
NextRequest: Kr().NextRequest,
|
|
3941
|
+
NextResponse: Zr().NextResponse,
|
|
3942
|
+
ImageResponse: Jr().ImageResponse,
|
|
3943
|
+
userAgentFromString: ir().userAgentFromString,
|
|
3944
|
+
userAgent: ir().userAgent,
|
|
3945
|
+
URLPattern: tn().URLPattern,
|
|
3946
|
+
after: on().after,
|
|
3947
|
+
connection: En().connection,
|
|
3948
|
+
unstable_rootParams: Rn().unstable_rootParams
|
|
3949
|
+
};
|
|
3950
|
+
s.exports = p, o.NextRequest = p.NextRequest, o.NextResponse = p.NextResponse, o.ImageResponse = p.ImageResponse, o.userAgentFromString = p.userAgentFromString, o.userAgent = p.userAgent, o.URLPattern = p.URLPattern, o.after = p.after, o.connection = p.connection, o.unstable_rootParams = p.unstable_rootParams;
|
|
3951
|
+
})(De, De.exports)), De.exports;
|
|
3952
|
+
}
|
|
3953
|
+
var vn = yn();
|
|
3954
|
+
function An(s) {
|
|
3955
|
+
var d;
|
|
3956
|
+
const o = s.nextUrl.pathname;
|
|
3957
|
+
if (!Ce.locales.some(
|
|
3958
|
+
(c) => o.startsWith(`/${c}/`) || o === `/${c}`
|
|
3959
|
+
) && !o.startsWith("/_next") && !o.includes(".")) {
|
|
3960
|
+
let c;
|
|
3961
|
+
const E = (d = s.cookies.get("NEXT_LOCALE")) == null ? void 0 : d.value;
|
|
3962
|
+
if (E && Ce.locales.includes(E) && (c = E), !c) {
|
|
3963
|
+
const t = s.headers.get("accept-language");
|
|
3964
|
+
if (t) {
|
|
3965
|
+
const f = t.split(",").map((a) => a.split(";")[0].trim().toLowerCase()), m = {
|
|
3966
|
+
"zh-cn": "zh-hans",
|
|
3967
|
+
"zh-hans": "zh-hans",
|
|
3968
|
+
"zh-tw": "zh-hant",
|
|
3969
|
+
"zh-hk": "zh-hant",
|
|
3970
|
+
"zh-hant": "zh-hant",
|
|
3971
|
+
tw: "zh-hant",
|
|
3972
|
+
// 添加对旧的tw标识的支持
|
|
3973
|
+
ja: "ja",
|
|
3974
|
+
ko: "ko"
|
|
3975
|
+
};
|
|
3976
|
+
for (const a of f) {
|
|
3977
|
+
const h = m[a] || m[a.split("--")[0]];
|
|
3978
|
+
if (h && Ce.locales.includes(h)) {
|
|
3979
|
+
c = h;
|
|
3980
|
+
break;
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3985
|
+
(!c || !Ce.locales.includes(c)) && (c = Ce.defaultLocale);
|
|
3986
|
+
const u = new URL(
|
|
3987
|
+
`/${c}${o === "/" ? "" : o}`,
|
|
3988
|
+
s.url
|
|
3989
|
+
);
|
|
3990
|
+
return u.search = s.nextUrl.search, vn.NextResponse.redirect(u);
|
|
3991
|
+
}
|
|
3992
|
+
return null;
|
|
3993
|
+
}
|
|
3994
|
+
const Pn = {
|
|
3995
|
+
matcher: [
|
|
3996
|
+
// 匹配所有路径,但排除API路由、静态资源等
|
|
3997
|
+
"/((?!api|_next/static|_next/image|favicon.ico|.*\\.).*)",
|
|
3998
|
+
// 显式匹配/tw和/tw/开头的路径,确保能处理旧的繁体中文URL
|
|
3999
|
+
"/tw",
|
|
4000
|
+
"/tw/:path*",
|
|
4001
|
+
"/zh",
|
|
4002
|
+
"/zh/:path*"
|
|
4003
|
+
]
|
|
4004
|
+
};
|
|
4005
|
+
export {
|
|
4006
|
+
Pn as config,
|
|
4007
|
+
An as default
|
|
4008
|
+
};
|