@sigtes/ui 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button-BztPLDJi.js +69 -0
- package/dist/Button-C3Twt_rk.cjs +1 -0
- package/dist/UserProvider-BfG9Ccu3.js +395 -0
- package/dist/UserProvider-CQZEZTc7.cjs +22 -0
- package/dist/components.cjs.js +432 -193
- package/dist/components.es.js +16331 -10623
- package/dist/globals.css +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAuthorization/index.d.ts +1 -0
- package/dist/hooks/useAuthorization/useAuthorization.d.ts +5 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +40 -28
- package/dist/locale-provider-BMa5HMi7-CUCoSBuJ.js +308 -0
- package/dist/locale-provider-BMa5HMi7-jcDwp-6T.cjs +22 -0
- package/dist/locale-provider-BMa5HMi7.js +831 -0
- package/dist/locale-provider-DfKreh8K.cjs +1 -0
- package/dist/navigation-CbiZy04t.js +1857 -0
- package/dist/navigation-Czjt6ygu.cjs +6 -0
- package/dist/pages/error/error.d.ts +6 -0
- package/dist/pages/error/index.d.ts +1 -0
- package/dist/pages/forbidden/forbidden.d.ts +1 -0
- package/dist/pages/forbidden/index.d.ts +1 -0
- package/dist/pages/index.d.ts +3 -0
- package/dist/pages/not-found/index.d.ts +1 -0
- package/dist/pages/not-found/not-found.d.ts +1 -0
- package/dist/pages.cjs.js +1 -0
- package/dist/pages.es.js +64 -0
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/user-provider/UserProvider.d.ts +1 -1
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.es.js +9 -8
- package/package.json +12 -6
- package/dist/UserProvider-BzXtdnK7.cjs +0 -22
- package/dist/UserProvider-Cx4hp8vD.js +0 -1221
@@ -0,0 +1,1857 @@
|
|
1
|
+
import C from "react";
|
2
|
+
var I = { exports: {} }, ne = {}, ue = {}, Ne;
|
3
|
+
function Wt() {
|
4
|
+
if (Ne) return ue;
|
5
|
+
Ne = 1;
|
6
|
+
function n(e) {
|
7
|
+
return e && e.__esModule ? e : { default: e };
|
8
|
+
}
|
9
|
+
return ue._ = n, ue;
|
10
|
+
}
|
11
|
+
var je;
|
12
|
+
function $t() {
|
13
|
+
return je || (je = 1, (function(n) {
|
14
|
+
"use client";
|
15
|
+
Object.defineProperty(n, "__esModule", {
|
16
|
+
value: !0
|
17
|
+
});
|
18
|
+
function e(f, E) {
|
19
|
+
for (var y in E) Object.defineProperty(f, y, {
|
20
|
+
enumerable: !0,
|
21
|
+
get: E[y]
|
22
|
+
});
|
23
|
+
}
|
24
|
+
e(n, {
|
25
|
+
AppRouterContext: function() {
|
26
|
+
return c;
|
27
|
+
},
|
28
|
+
GlobalLayoutRouterContext: function() {
|
29
|
+
return i;
|
30
|
+
},
|
31
|
+
LayoutRouterContext: function() {
|
32
|
+
return u;
|
33
|
+
},
|
34
|
+
MissingSlotContext: function() {
|
35
|
+
return s;
|
36
|
+
},
|
37
|
+
TemplateContext: function() {
|
38
|
+
return a;
|
39
|
+
}
|
40
|
+
});
|
41
|
+
const r = /* @__PURE__ */ (/* @__PURE__ */ Wt())._(C), c = r.default.createContext(null), u = r.default.createContext(null), i = r.default.createContext(null), a = r.default.createContext(null);
|
42
|
+
process.env.NODE_ENV !== "production" && (c.displayName = "AppRouterContext", u.displayName = "LayoutRouterContext", i.displayName = "GlobalLayoutRouterContext", a.displayName = "TemplateContext");
|
43
|
+
const s = r.default.createContext(/* @__PURE__ */ new Set());
|
44
|
+
})(ne)), ne;
|
45
|
+
}
|
46
|
+
var oe = {}, Ce;
|
47
|
+
function Yt() {
|
48
|
+
return Ce || (Ce = 1, (function(n) {
|
49
|
+
"use client";
|
50
|
+
Object.defineProperty(n, "__esModule", {
|
51
|
+
value: !0
|
52
|
+
});
|
53
|
+
function e(i, a) {
|
54
|
+
for (var s in a) Object.defineProperty(i, s, {
|
55
|
+
enumerable: !0,
|
56
|
+
get: a[s]
|
57
|
+
});
|
58
|
+
}
|
59
|
+
e(n, {
|
60
|
+
PathParamsContext: function() {
|
61
|
+
return u;
|
62
|
+
},
|
63
|
+
PathnameContext: function() {
|
64
|
+
return c;
|
65
|
+
},
|
66
|
+
SearchParamsContext: function() {
|
67
|
+
return r;
|
68
|
+
}
|
69
|
+
});
|
70
|
+
const o = C, r = (0, o.createContext)(null), c = (0, o.createContext)(null), u = (0, o.createContext)(null);
|
71
|
+
process.env.NODE_ENV !== "production" && (r.displayName = "SearchParamsContext", c.displayName = "PathnameContext", u.displayName = "PathParamsContext");
|
72
|
+
})(oe)), oe;
|
73
|
+
}
|
74
|
+
var q = { exports: {} }, Me;
|
75
|
+
function zt() {
|
76
|
+
return Me || (Me = 1, (function(n, e) {
|
77
|
+
Object.defineProperty(e, "__esModule", {
|
78
|
+
value: !0
|
79
|
+
}), Object.defineProperty(e, "getSegmentValue", {
|
80
|
+
enumerable: !0,
|
81
|
+
get: function() {
|
82
|
+
return o;
|
83
|
+
}
|
84
|
+
});
|
85
|
+
function o(r) {
|
86
|
+
return Array.isArray(r) ? r[1] : r;
|
87
|
+
}
|
88
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
89
|
+
})(q, q.exports)), q.exports;
|
90
|
+
}
|
91
|
+
var ae = {}, Ie;
|
92
|
+
function Vt() {
|
93
|
+
return Ie || (Ie = 1, (function(n) {
|
94
|
+
Object.defineProperty(n, "__esModule", {
|
95
|
+
value: !0
|
96
|
+
});
|
97
|
+
function e(a, s) {
|
98
|
+
for (var f in s) Object.defineProperty(a, f, {
|
99
|
+
enumerable: !0,
|
100
|
+
get: s[f]
|
101
|
+
});
|
102
|
+
}
|
103
|
+
e(n, {
|
104
|
+
DEFAULT_SEGMENT_KEY: function() {
|
105
|
+
return i;
|
106
|
+
},
|
107
|
+
PAGE_SEGMENT_KEY: function() {
|
108
|
+
return u;
|
109
|
+
},
|
110
|
+
addSearchParamsIfPageSegment: function() {
|
111
|
+
return c;
|
112
|
+
},
|
113
|
+
isGroupSegment: function() {
|
114
|
+
return o;
|
115
|
+
},
|
116
|
+
isParallelRouteSegment: function() {
|
117
|
+
return r;
|
118
|
+
}
|
119
|
+
});
|
120
|
+
function o(a) {
|
121
|
+
return a[0] === "(" && a.endsWith(")");
|
122
|
+
}
|
123
|
+
function r(a) {
|
124
|
+
return a.startsWith("@") && a !== "@children";
|
125
|
+
}
|
126
|
+
function c(a, s) {
|
127
|
+
if (a.includes(u)) {
|
128
|
+
const E = JSON.stringify(s);
|
129
|
+
return E !== "{}" ? u + "?" + E : u;
|
130
|
+
}
|
131
|
+
return a;
|
132
|
+
}
|
133
|
+
const u = "__PAGE__", i = "__DEFAULT__";
|
134
|
+
})(ae)), ae;
|
135
|
+
}
|
136
|
+
var H = { exports: {} }, k = { exports: {} }, L = { exports: {} }, qe;
|
137
|
+
function pt() {
|
138
|
+
return qe || (qe = 1, (function(n, e) {
|
139
|
+
Object.defineProperty(e, "__esModule", {
|
140
|
+
value: !0
|
141
|
+
}), Object.defineProperty(e, "RedirectStatusCode", {
|
142
|
+
enumerable: !0,
|
143
|
+
get: function() {
|
144
|
+
return o;
|
145
|
+
}
|
146
|
+
});
|
147
|
+
var o = /* @__PURE__ */ (function(r) {
|
148
|
+
return r[r.SeeOther = 303] = "SeeOther", r[r.TemporaryRedirect = 307] = "TemporaryRedirect", r[r.PermanentRedirect = 308] = "PermanentRedirect", r;
|
149
|
+
})({});
|
150
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
151
|
+
})(L, L.exports)), L.exports;
|
152
|
+
}
|
153
|
+
var U = { exports: {} }, He;
|
154
|
+
function Te() {
|
155
|
+
return He || (He = 1, (function(n, e) {
|
156
|
+
Object.defineProperty(e, "__esModule", {
|
157
|
+
value: !0
|
158
|
+
});
|
159
|
+
function o(a, s) {
|
160
|
+
for (var f in s) Object.defineProperty(a, f, {
|
161
|
+
enumerable: !0,
|
162
|
+
get: s[f]
|
163
|
+
});
|
164
|
+
}
|
165
|
+
o(e, {
|
166
|
+
REDIRECT_ERROR_CODE: function() {
|
167
|
+
return c;
|
168
|
+
},
|
169
|
+
RedirectType: function() {
|
170
|
+
return u;
|
171
|
+
},
|
172
|
+
isRedirectError: function() {
|
173
|
+
return i;
|
174
|
+
}
|
175
|
+
});
|
176
|
+
const r = pt(), c = "NEXT_REDIRECT";
|
177
|
+
var u = /* @__PURE__ */ (function(a) {
|
178
|
+
return a.push = "push", a.replace = "replace", a;
|
179
|
+
})({});
|
180
|
+
function i(a) {
|
181
|
+
if (typeof a != "object" || a === null || !("digest" in a) || typeof a.digest != "string")
|
182
|
+
return !1;
|
183
|
+
const s = a.digest.split(";"), [f, E] = s, y = s.slice(2, -2).join(";"), R = s.at(-2), h = Number(R);
|
184
|
+
return f === c && (E === "replace" || E === "push") && typeof y == "string" && !isNaN(h) && h in r.RedirectStatusCode;
|
185
|
+
}
|
186
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
187
|
+
})(U, U.exports)), U.exports;
|
188
|
+
}
|
189
|
+
var ce = {}, ie = {}, se = {}, ke;
|
190
|
+
function Pe() {
|
191
|
+
return ke || (ke = 1, (function(n) {
|
192
|
+
Object.defineProperty(n, "__esModule", {
|
193
|
+
value: !0
|
194
|
+
});
|
195
|
+
function e(s, f) {
|
196
|
+
for (var E in f) Object.defineProperty(s, E, {
|
197
|
+
enumerable: !0,
|
198
|
+
get: f[E]
|
199
|
+
});
|
200
|
+
}
|
201
|
+
e(n, {
|
202
|
+
bindSnapshot: function() {
|
203
|
+
return i;
|
204
|
+
},
|
205
|
+
createAsyncLocalStorage: function() {
|
206
|
+
return u;
|
207
|
+
},
|
208
|
+
createSnapshot: function() {
|
209
|
+
return a;
|
210
|
+
}
|
211
|
+
});
|
212
|
+
const o = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
213
|
+
value: "E504",
|
214
|
+
enumerable: !1,
|
215
|
+
configurable: !0
|
216
|
+
});
|
217
|
+
class r {
|
218
|
+
disable() {
|
219
|
+
throw o;
|
220
|
+
}
|
221
|
+
getStore() {
|
222
|
+
}
|
223
|
+
run() {
|
224
|
+
throw o;
|
225
|
+
}
|
226
|
+
exit() {
|
227
|
+
throw o;
|
228
|
+
}
|
229
|
+
enterWith() {
|
230
|
+
throw o;
|
231
|
+
}
|
232
|
+
static bind(f) {
|
233
|
+
return f;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
const c = typeof globalThis < "u" && globalThis.AsyncLocalStorage;
|
237
|
+
function u() {
|
238
|
+
return c ? new c() : new r();
|
239
|
+
}
|
240
|
+
function i(s) {
|
241
|
+
return c ? c.bind(s) : r.bind(s);
|
242
|
+
}
|
243
|
+
function a() {
|
244
|
+
return c ? c.snapshot() : function(s, ...f) {
|
245
|
+
return s(...f);
|
246
|
+
};
|
247
|
+
}
|
248
|
+
})(se)), se;
|
249
|
+
}
|
250
|
+
var Le;
|
251
|
+
function Kt() {
|
252
|
+
return Le || (Le = 1, (function(n) {
|
253
|
+
Object.defineProperty(n, "__esModule", {
|
254
|
+
value: !0
|
255
|
+
}), Object.defineProperty(n, "actionAsyncStorageInstance", {
|
256
|
+
enumerable: !0,
|
257
|
+
get: function() {
|
258
|
+
return o;
|
259
|
+
}
|
260
|
+
});
|
261
|
+
const o = (0, Pe().createAsyncLocalStorage)();
|
262
|
+
})(ie)), ie;
|
263
|
+
}
|
264
|
+
var Ue;
|
265
|
+
function Qt() {
|
266
|
+
return Ue || (Ue = 1, (function(n) {
|
267
|
+
Object.defineProperty(n, "__esModule", {
|
268
|
+
value: !0
|
269
|
+
}), Object.defineProperty(n, "actionAsyncStorage", {
|
270
|
+
enumerable: !0,
|
271
|
+
get: function() {
|
272
|
+
return e.actionAsyncStorageInstance;
|
273
|
+
}
|
274
|
+
});
|
275
|
+
const e = Kt();
|
276
|
+
})(ce)), ce;
|
277
|
+
}
|
278
|
+
var xe;
|
279
|
+
function Jt() {
|
280
|
+
return xe || (xe = 1, (function(n, e) {
|
281
|
+
Object.defineProperty(e, "__esModule", {
|
282
|
+
value: !0
|
283
|
+
});
|
284
|
+
function o(R, h) {
|
285
|
+
for (var m in h) Object.defineProperty(R, m, {
|
286
|
+
enumerable: !0,
|
287
|
+
get: h[m]
|
288
|
+
});
|
289
|
+
}
|
290
|
+
o(e, {
|
291
|
+
getRedirectError: function() {
|
292
|
+
return i;
|
293
|
+
},
|
294
|
+
getRedirectStatusCodeFromError: function() {
|
295
|
+
return y;
|
296
|
+
},
|
297
|
+
getRedirectTypeFromError: function() {
|
298
|
+
return E;
|
299
|
+
},
|
300
|
+
getURLFromRedirectError: function() {
|
301
|
+
return f;
|
302
|
+
},
|
303
|
+
permanentRedirect: function() {
|
304
|
+
return s;
|
305
|
+
},
|
306
|
+
redirect: function() {
|
307
|
+
return a;
|
308
|
+
}
|
309
|
+
});
|
310
|
+
const r = pt(), c = Te(), u = typeof window > "u" ? Qt().actionAsyncStorage : void 0;
|
311
|
+
function i(R, h, m) {
|
312
|
+
m === void 0 && (m = r.RedirectStatusCode.TemporaryRedirect);
|
313
|
+
const _ = Object.defineProperty(new Error(c.REDIRECT_ERROR_CODE), "__NEXT_ERROR_CODE", {
|
314
|
+
value: "E394",
|
315
|
+
enumerable: !1,
|
316
|
+
configurable: !0
|
317
|
+
});
|
318
|
+
return _.digest = c.REDIRECT_ERROR_CODE + ";" + h + ";" + R + ";" + m + ";", _;
|
319
|
+
}
|
320
|
+
function a(R, h) {
|
321
|
+
var m;
|
322
|
+
throw h ?? (h = !(u == null || (m = u.getStore()) == null) && m.isAction ? c.RedirectType.push : c.RedirectType.replace), i(R, h, r.RedirectStatusCode.TemporaryRedirect);
|
323
|
+
}
|
324
|
+
function s(R, h) {
|
325
|
+
throw h === void 0 && (h = c.RedirectType.replace), i(R, h, r.RedirectStatusCode.PermanentRedirect);
|
326
|
+
}
|
327
|
+
function f(R) {
|
328
|
+
return (0, c.isRedirectError)(R) ? R.digest.split(";").slice(2, -2).join(";") : null;
|
329
|
+
}
|
330
|
+
function E(R) {
|
331
|
+
if (!(0, c.isRedirectError)(R))
|
332
|
+
throw Object.defineProperty(new Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
|
333
|
+
value: "E260",
|
334
|
+
enumerable: !1,
|
335
|
+
configurable: !0
|
336
|
+
});
|
337
|
+
return R.digest.split(";", 2)[1];
|
338
|
+
}
|
339
|
+
function y(R) {
|
340
|
+
if (!(0, c.isRedirectError)(R))
|
341
|
+
throw Object.defineProperty(new Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
|
342
|
+
value: "E260",
|
343
|
+
enumerable: !1,
|
344
|
+
configurable: !0
|
345
|
+
});
|
346
|
+
return Number(R.digest.split(";").at(-2));
|
347
|
+
}
|
348
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
349
|
+
})(k, k.exports)), k.exports;
|
350
|
+
}
|
351
|
+
var x = { exports: {} }, B = { exports: {} }, Be;
|
352
|
+
function Z() {
|
353
|
+
return Be || (Be = 1, (function(n, e) {
|
354
|
+
Object.defineProperty(e, "__esModule", {
|
355
|
+
value: !0
|
356
|
+
});
|
357
|
+
function o(f, E) {
|
358
|
+
for (var y in E) Object.defineProperty(f, y, {
|
359
|
+
enumerable: !0,
|
360
|
+
get: E[y]
|
361
|
+
});
|
362
|
+
}
|
363
|
+
o(e, {
|
364
|
+
HTTPAccessErrorStatus: function() {
|
365
|
+
return r;
|
366
|
+
},
|
367
|
+
HTTP_ERROR_FALLBACK_ERROR_CODE: function() {
|
368
|
+
return u;
|
369
|
+
},
|
370
|
+
getAccessFallbackErrorTypeByStatus: function() {
|
371
|
+
return s;
|
372
|
+
},
|
373
|
+
getAccessFallbackHTTPStatus: function() {
|
374
|
+
return a;
|
375
|
+
},
|
376
|
+
isHTTPAccessFallbackError: function() {
|
377
|
+
return i;
|
378
|
+
}
|
379
|
+
});
|
380
|
+
const r = {
|
381
|
+
NOT_FOUND: 404,
|
382
|
+
FORBIDDEN: 403,
|
383
|
+
UNAUTHORIZED: 401
|
384
|
+
}, c = new Set(Object.values(r)), u = "NEXT_HTTP_ERROR_FALLBACK";
|
385
|
+
function i(f) {
|
386
|
+
if (typeof f != "object" || f === null || !("digest" in f) || typeof f.digest != "string")
|
387
|
+
return !1;
|
388
|
+
const [E, y] = f.digest.split(";");
|
389
|
+
return E === u && c.has(Number(y));
|
390
|
+
}
|
391
|
+
function a(f) {
|
392
|
+
const E = f.digest.split(";")[1];
|
393
|
+
return Number(E);
|
394
|
+
}
|
395
|
+
function s(f) {
|
396
|
+
switch (f) {
|
397
|
+
case 401:
|
398
|
+
return "unauthorized";
|
399
|
+
case 403:
|
400
|
+
return "forbidden";
|
401
|
+
case 404:
|
402
|
+
return "not-found";
|
403
|
+
default:
|
404
|
+
return;
|
405
|
+
}
|
406
|
+
}
|
407
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
408
|
+
})(B, B.exports)), B.exports;
|
409
|
+
}
|
410
|
+
var Xe;
|
411
|
+
function Zt() {
|
412
|
+
return Xe || (Xe = 1, (function(n, e) {
|
413
|
+
Object.defineProperty(e, "__esModule", {
|
414
|
+
value: !0
|
415
|
+
}), Object.defineProperty(e, "notFound", {
|
416
|
+
enumerable: !0,
|
417
|
+
get: function() {
|
418
|
+
return c;
|
419
|
+
}
|
420
|
+
});
|
421
|
+
const r = "" + Z().HTTP_ERROR_FALLBACK_ERROR_CODE + ";404";
|
422
|
+
function c() {
|
423
|
+
const u = Object.defineProperty(new Error(r), "__NEXT_ERROR_CODE", {
|
424
|
+
value: "E394",
|
425
|
+
enumerable: !1,
|
426
|
+
configurable: !0
|
427
|
+
});
|
428
|
+
throw u.digest = r, u;
|
429
|
+
}
|
430
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
431
|
+
})(x, x.exports)), x.exports;
|
432
|
+
}
|
433
|
+
var X = { exports: {} }, Fe;
|
434
|
+
function er() {
|
435
|
+
return Fe || (Fe = 1, (function(n, e) {
|
436
|
+
Object.defineProperty(e, "__esModule", {
|
437
|
+
value: !0
|
438
|
+
}), Object.defineProperty(e, "forbidden", {
|
439
|
+
enumerable: !0,
|
440
|
+
get: function() {
|
441
|
+
return c;
|
442
|
+
}
|
443
|
+
});
|
444
|
+
const r = "" + Z().HTTP_ERROR_FALLBACK_ERROR_CODE + ";403";
|
445
|
+
function c() {
|
446
|
+
if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS)
|
447
|
+
throw Object.defineProperty(new Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."), "__NEXT_ERROR_CODE", {
|
448
|
+
value: "E488",
|
449
|
+
enumerable: !1,
|
450
|
+
configurable: !0
|
451
|
+
});
|
452
|
+
const u = Object.defineProperty(new Error(r), "__NEXT_ERROR_CODE", {
|
453
|
+
value: "E394",
|
454
|
+
enumerable: !1,
|
455
|
+
configurable: !0
|
456
|
+
});
|
457
|
+
throw u.digest = r, u;
|
458
|
+
}
|
459
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
460
|
+
})(X, X.exports)), X.exports;
|
461
|
+
}
|
462
|
+
var F = { exports: {} }, Ge;
|
463
|
+
function tr() {
|
464
|
+
return Ge || (Ge = 1, (function(n, e) {
|
465
|
+
Object.defineProperty(e, "__esModule", {
|
466
|
+
value: !0
|
467
|
+
}), Object.defineProperty(e, "unauthorized", {
|
468
|
+
enumerable: !0,
|
469
|
+
get: function() {
|
470
|
+
return c;
|
471
|
+
}
|
472
|
+
});
|
473
|
+
const r = "" + Z().HTTP_ERROR_FALLBACK_ERROR_CODE + ";401";
|
474
|
+
function c() {
|
475
|
+
if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS)
|
476
|
+
throw Object.defineProperty(new Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."), "__NEXT_ERROR_CODE", {
|
477
|
+
value: "E411",
|
478
|
+
enumerable: !1,
|
479
|
+
configurable: !0
|
480
|
+
});
|
481
|
+
const u = Object.defineProperty(new Error(r), "__NEXT_ERROR_CODE", {
|
482
|
+
value: "E394",
|
483
|
+
enumerable: !1,
|
484
|
+
configurable: !0
|
485
|
+
});
|
486
|
+
throw u.digest = r, u;
|
487
|
+
}
|
488
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
489
|
+
})(F, F.exports)), F.exports;
|
490
|
+
}
|
491
|
+
var G = { exports: {} }, W = { exports: {} }, fe = {}, We;
|
492
|
+
function Rt() {
|
493
|
+
return We || (We = 1, (function(n) {
|
494
|
+
Object.defineProperty(n, "__esModule", {
|
495
|
+
value: !0
|
496
|
+
});
|
497
|
+
function e(f, E) {
|
498
|
+
for (var y in E) Object.defineProperty(f, y, {
|
499
|
+
enumerable: !0,
|
500
|
+
get: E[y]
|
501
|
+
});
|
502
|
+
}
|
503
|
+
e(n, {
|
504
|
+
isHangingPromiseRejectionError: function() {
|
505
|
+
return o;
|
506
|
+
},
|
507
|
+
makeDevtoolsIOAwarePromise: function() {
|
508
|
+
return s;
|
509
|
+
},
|
510
|
+
makeHangingPromise: function() {
|
511
|
+
return i;
|
512
|
+
}
|
513
|
+
});
|
514
|
+
function o(f) {
|
515
|
+
return typeof f != "object" || f === null || !("digest" in f) ? !1 : f.digest === r;
|
516
|
+
}
|
517
|
+
const r = "HANGING_PROMISE_REJECTION";
|
518
|
+
class c extends Error {
|
519
|
+
constructor(E, y) {
|
520
|
+
super(`During prerendering, ${y} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${y} 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 occurred at route "${E}".`), this.route = E, this.expression = y, this.digest = r;
|
521
|
+
}
|
522
|
+
}
|
523
|
+
const u = /* @__PURE__ */ new WeakMap();
|
524
|
+
function i(f, E, y) {
|
525
|
+
if (f.aborted)
|
526
|
+
return Promise.reject(new c(E, y));
|
527
|
+
{
|
528
|
+
const R = new Promise((h, m) => {
|
529
|
+
const _ = m.bind(null, new c(E, y));
|
530
|
+
let g = u.get(f);
|
531
|
+
if (g)
|
532
|
+
g.push(_);
|
533
|
+
else {
|
534
|
+
const O = [
|
535
|
+
_
|
536
|
+
];
|
537
|
+
u.set(f, O), f.addEventListener("abort", () => {
|
538
|
+
for (let D = 0; D < O.length; D++)
|
539
|
+
O[D]();
|
540
|
+
}, {
|
541
|
+
once: !0
|
542
|
+
});
|
543
|
+
}
|
544
|
+
});
|
545
|
+
return R.catch(a), R;
|
546
|
+
}
|
547
|
+
}
|
548
|
+
function a() {
|
549
|
+
}
|
550
|
+
function s(f) {
|
551
|
+
return new Promise((E) => {
|
552
|
+
setTimeout(() => {
|
553
|
+
E(f);
|
554
|
+
}, 0);
|
555
|
+
});
|
556
|
+
}
|
557
|
+
})(fe)), fe;
|
558
|
+
}
|
559
|
+
var de = {}, $e;
|
560
|
+
function rr() {
|
561
|
+
return $e || ($e = 1, (function(n) {
|
562
|
+
Object.defineProperty(n, "__esModule", {
|
563
|
+
value: !0
|
564
|
+
}), Object.defineProperty(n, "isPostpone", {
|
565
|
+
enumerable: !0,
|
566
|
+
get: function() {
|
567
|
+
return o;
|
568
|
+
}
|
569
|
+
});
|
570
|
+
const e = Symbol.for("react.postpone");
|
571
|
+
function o(r) {
|
572
|
+
return typeof r == "object" && r !== null && r.$$typeof === e;
|
573
|
+
}
|
574
|
+
})(de)), de;
|
575
|
+
}
|
576
|
+
var le = {}, Ye;
|
577
|
+
function ee() {
|
578
|
+
return Ye || (Ye = 1, (function(n) {
|
579
|
+
Object.defineProperty(n, "__esModule", {
|
580
|
+
value: !0
|
581
|
+
});
|
582
|
+
function e(u, i) {
|
583
|
+
for (var a in i) Object.defineProperty(u, a, {
|
584
|
+
enumerable: !0,
|
585
|
+
get: i[a]
|
586
|
+
});
|
587
|
+
}
|
588
|
+
e(n, {
|
589
|
+
BailoutToCSRError: function() {
|
590
|
+
return r;
|
591
|
+
},
|
592
|
+
isBailoutToCSRError: function() {
|
593
|
+
return c;
|
594
|
+
}
|
595
|
+
});
|
596
|
+
const o = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
|
597
|
+
class r extends Error {
|
598
|
+
constructor(i) {
|
599
|
+
super("Bail out to client-side rendering: " + i), this.reason = i, this.digest = o;
|
600
|
+
}
|
601
|
+
}
|
602
|
+
function c(u) {
|
603
|
+
return typeof u != "object" || u === null || !("digest" in u) ? !1 : u.digest === o;
|
604
|
+
}
|
605
|
+
})(le)), le;
|
606
|
+
}
|
607
|
+
var $ = { exports: {} }, ze;
|
608
|
+
function ht() {
|
609
|
+
return ze || (ze = 1, (function(n, e) {
|
610
|
+
Object.defineProperty(e, "__esModule", {
|
611
|
+
value: !0
|
612
|
+
}), Object.defineProperty(e, "isNextRouterError", {
|
613
|
+
enumerable: !0,
|
614
|
+
get: function() {
|
615
|
+
return c;
|
616
|
+
}
|
617
|
+
});
|
618
|
+
const o = Z(), r = Te();
|
619
|
+
function c(u) {
|
620
|
+
return (0, r.isRedirectError)(u) || (0, o.isHTTPAccessFallbackError)(u);
|
621
|
+
}
|
622
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
623
|
+
})($, $.exports)), $.exports;
|
624
|
+
}
|
625
|
+
var _e = {}, Y = { exports: {} }, Ve;
|
626
|
+
function gt() {
|
627
|
+
return Ve || (Ve = 1, (function(n, e) {
|
628
|
+
Object.defineProperty(e, "__esModule", {
|
629
|
+
value: !0
|
630
|
+
});
|
631
|
+
function o(i, a) {
|
632
|
+
for (var s in a) Object.defineProperty(i, s, {
|
633
|
+
enumerable: !0,
|
634
|
+
get: a[s]
|
635
|
+
});
|
636
|
+
}
|
637
|
+
o(e, {
|
638
|
+
DynamicServerError: function() {
|
639
|
+
return c;
|
640
|
+
},
|
641
|
+
isDynamicServerError: function() {
|
642
|
+
return u;
|
643
|
+
}
|
644
|
+
});
|
645
|
+
const r = "DYNAMIC_SERVER_USAGE";
|
646
|
+
class c extends Error {
|
647
|
+
constructor(a) {
|
648
|
+
super("Dynamic server usage: " + a), this.description = a, this.digest = r;
|
649
|
+
}
|
650
|
+
}
|
651
|
+
function u(i) {
|
652
|
+
return typeof i != "object" || i === null || !("digest" in i) || typeof i.digest != "string" ? !1 : i.digest === r;
|
653
|
+
}
|
654
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
655
|
+
})(Y, Y.exports)), Y.exports;
|
656
|
+
}
|
657
|
+
var z = { exports: {} }, Ke;
|
658
|
+
function nr() {
|
659
|
+
return Ke || (Ke = 1, (function(n, e) {
|
660
|
+
Object.defineProperty(e, "__esModule", {
|
661
|
+
value: !0
|
662
|
+
});
|
663
|
+
function o(i, a) {
|
664
|
+
for (var s in a) Object.defineProperty(i, s, {
|
665
|
+
enumerable: !0,
|
666
|
+
get: a[s]
|
667
|
+
});
|
668
|
+
}
|
669
|
+
o(e, {
|
670
|
+
StaticGenBailoutError: function() {
|
671
|
+
return c;
|
672
|
+
},
|
673
|
+
isStaticGenBailoutError: function() {
|
674
|
+
return u;
|
675
|
+
}
|
676
|
+
});
|
677
|
+
const r = "NEXT_STATIC_GEN_BAILOUT";
|
678
|
+
class c extends Error {
|
679
|
+
constructor(...a) {
|
680
|
+
super(...a), this.code = r;
|
681
|
+
}
|
682
|
+
}
|
683
|
+
function u(i) {
|
684
|
+
return typeof i != "object" || i === null || !("code" in i) ? !1 : i.code === r;
|
685
|
+
}
|
686
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
687
|
+
})(z, z.exports)), z.exports;
|
688
|
+
}
|
689
|
+
var Ee = {}, ye = {}, Qe;
|
690
|
+
function ur() {
|
691
|
+
return Qe || (Qe = 1, (function(n) {
|
692
|
+
Object.defineProperty(n, "__esModule", {
|
693
|
+
value: !0
|
694
|
+
}), Object.defineProperty(n, "workUnitAsyncStorageInstance", {
|
695
|
+
enumerable: !0,
|
696
|
+
get: function() {
|
697
|
+
return o;
|
698
|
+
}
|
699
|
+
});
|
700
|
+
const o = (0, Pe().createAsyncLocalStorage)();
|
701
|
+
})(ye)), ye;
|
702
|
+
}
|
703
|
+
var V = { exports: {} }, Je;
|
704
|
+
function or() {
|
705
|
+
return Je || (Je = 1, (function(n, e) {
|
706
|
+
Object.defineProperty(e, "__esModule", {
|
707
|
+
value: !0
|
708
|
+
});
|
709
|
+
function o(v, T) {
|
710
|
+
for (var S in T) Object.defineProperty(v, S, {
|
711
|
+
enumerable: !0,
|
712
|
+
get: T[S]
|
713
|
+
});
|
714
|
+
}
|
715
|
+
o(e, {
|
716
|
+
ACTION_HEADER: function() {
|
717
|
+
return c;
|
718
|
+
},
|
719
|
+
FLIGHT_HEADERS: function() {
|
720
|
+
return R;
|
721
|
+
},
|
722
|
+
NEXT_ACTION_NOT_FOUND_HEADER: function() {
|
723
|
+
return b;
|
724
|
+
},
|
725
|
+
NEXT_DID_POSTPONE_HEADER: function() {
|
726
|
+
return _;
|
727
|
+
},
|
728
|
+
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
729
|
+
return f;
|
730
|
+
},
|
731
|
+
NEXT_HMR_REFRESH_HEADER: function() {
|
732
|
+
return s;
|
733
|
+
},
|
734
|
+
NEXT_IS_PRERENDER_HEADER: function() {
|
735
|
+
return D;
|
736
|
+
},
|
737
|
+
NEXT_REWRITTEN_PATH_HEADER: function() {
|
738
|
+
return g;
|
739
|
+
},
|
740
|
+
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
741
|
+
return O;
|
742
|
+
},
|
743
|
+
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
744
|
+
return i;
|
745
|
+
},
|
746
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
747
|
+
return a;
|
748
|
+
},
|
749
|
+
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
750
|
+
return m;
|
751
|
+
},
|
752
|
+
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
753
|
+
return u;
|
754
|
+
},
|
755
|
+
NEXT_RSC_UNION_QUERY: function() {
|
756
|
+
return h;
|
757
|
+
},
|
758
|
+
NEXT_URL: function() {
|
759
|
+
return E;
|
760
|
+
},
|
761
|
+
RSC_CONTENT_TYPE_HEADER: function() {
|
762
|
+
return y;
|
763
|
+
},
|
764
|
+
RSC_HEADER: function() {
|
765
|
+
return r;
|
766
|
+
}
|
767
|
+
});
|
768
|
+
const r = "rsc", c = "next-action", u = "next-router-state-tree", i = "next-router-prefetch", a = "next-router-segment-prefetch", s = "next-hmr-refresh", f = "__next_hmr_refresh_hash__", E = "next-url", y = "text/x-component", R = [
|
769
|
+
r,
|
770
|
+
u,
|
771
|
+
i,
|
772
|
+
s,
|
773
|
+
a
|
774
|
+
], h = "_rsc", m = "x-nextjs-stale-time", _ = "x-nextjs-postponed", g = "x-nextjs-rewritten-path", O = "x-nextjs-rewritten-query", D = "x-nextjs-prerender", b = "x-nextjs-action-not-found";
|
775
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
776
|
+
})(V, V.exports)), V.exports;
|
777
|
+
}
|
778
|
+
var pe = {}, Ze;
|
779
|
+
function bt() {
|
780
|
+
return Ze || (Ze = 1, (function(n) {
|
781
|
+
Object.defineProperty(n, "__esModule", {
|
782
|
+
value: !0
|
783
|
+
}), Object.defineProperty(n, "InvariantError", {
|
784
|
+
enumerable: !0,
|
785
|
+
get: function() {
|
786
|
+
return e;
|
787
|
+
}
|
788
|
+
});
|
789
|
+
class e extends Error {
|
790
|
+
constructor(r, c) {
|
791
|
+
super("Invariant: " + (r.endsWith(".") ? r : r + ".") + " This is a bug in Next.js.", c), this.name = "InvariantError";
|
792
|
+
}
|
793
|
+
}
|
794
|
+
})(pe)), pe;
|
795
|
+
}
|
796
|
+
var et;
|
797
|
+
function mt() {
|
798
|
+
return et || (et = 1, (function(n) {
|
799
|
+
Object.defineProperty(n, "__esModule", {
|
800
|
+
value: !0
|
801
|
+
});
|
802
|
+
function e(_, g) {
|
803
|
+
for (var O in g) Object.defineProperty(_, O, {
|
804
|
+
enumerable: !0,
|
805
|
+
get: g[O]
|
806
|
+
});
|
807
|
+
}
|
808
|
+
e(n, {
|
809
|
+
getCacheSignal: function() {
|
810
|
+
return h;
|
811
|
+
},
|
812
|
+
getDraftModeProviderForCacheScope: function() {
|
813
|
+
return R;
|
814
|
+
},
|
815
|
+
getHmrRefreshHash: function() {
|
816
|
+
return f;
|
817
|
+
},
|
818
|
+
getPrerenderResumeDataCache: function() {
|
819
|
+
return a;
|
820
|
+
},
|
821
|
+
getRenderResumeDataCache: function() {
|
822
|
+
return s;
|
823
|
+
},
|
824
|
+
getRuntimeStagePromise: function() {
|
825
|
+
return m;
|
826
|
+
},
|
827
|
+
getServerComponentsHmrCache: function() {
|
828
|
+
return y;
|
829
|
+
},
|
830
|
+
isHmrRefresh: function() {
|
831
|
+
return E;
|
832
|
+
},
|
833
|
+
throwForMissingRequestStore: function() {
|
834
|
+
return u;
|
835
|
+
},
|
836
|
+
throwInvariantForMissingStore: function() {
|
837
|
+
return i;
|
838
|
+
},
|
839
|
+
workUnitAsyncStorage: function() {
|
840
|
+
return o.workUnitAsyncStorageInstance;
|
841
|
+
}
|
842
|
+
});
|
843
|
+
const o = ur(), r = or(), c = bt();
|
844
|
+
function u(_) {
|
845
|
+
throw Object.defineProperty(new Error(`\`${_}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
846
|
+
value: "E251",
|
847
|
+
enumerable: !1,
|
848
|
+
configurable: !0
|
849
|
+
});
|
850
|
+
}
|
851
|
+
function i() {
|
852
|
+
throw Object.defineProperty(new c.InvariantError("Expected workUnitAsyncStorage to have a store."), "__NEXT_ERROR_CODE", {
|
853
|
+
value: "E696",
|
854
|
+
enumerable: !1,
|
855
|
+
configurable: !0
|
856
|
+
});
|
857
|
+
}
|
858
|
+
function a(_) {
|
859
|
+
switch (_.type) {
|
860
|
+
case "prerender":
|
861
|
+
case "prerender-runtime":
|
862
|
+
case "prerender-ppr":
|
863
|
+
return _.prerenderResumeDataCache;
|
864
|
+
case "prerender-client":
|
865
|
+
return _.prerenderResumeDataCache;
|
866
|
+
case "prerender-legacy":
|
867
|
+
case "request":
|
868
|
+
case "cache":
|
869
|
+
case "private-cache":
|
870
|
+
case "unstable-cache":
|
871
|
+
return null;
|
872
|
+
default:
|
873
|
+
return _;
|
874
|
+
}
|
875
|
+
}
|
876
|
+
function s(_) {
|
877
|
+
switch (_.type) {
|
878
|
+
case "request":
|
879
|
+
return _.renderResumeDataCache;
|
880
|
+
case "prerender":
|
881
|
+
case "prerender-runtime":
|
882
|
+
case "prerender-client":
|
883
|
+
if (_.renderResumeDataCache)
|
884
|
+
return _.renderResumeDataCache;
|
885
|
+
// fallthrough
|
886
|
+
case "prerender-ppr":
|
887
|
+
return _.prerenderResumeDataCache;
|
888
|
+
case "cache":
|
889
|
+
case "private-cache":
|
890
|
+
case "unstable-cache":
|
891
|
+
case "prerender-legacy":
|
892
|
+
return null;
|
893
|
+
default:
|
894
|
+
return _;
|
895
|
+
}
|
896
|
+
}
|
897
|
+
function f(_, g) {
|
898
|
+
if (_.dev)
|
899
|
+
switch (g.type) {
|
900
|
+
case "cache":
|
901
|
+
case "private-cache":
|
902
|
+
case "prerender":
|
903
|
+
case "prerender-runtime":
|
904
|
+
return g.hmrRefreshHash;
|
905
|
+
case "request":
|
906
|
+
var O;
|
907
|
+
return (O = g.cookies.get(r.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : O.value;
|
908
|
+
}
|
909
|
+
}
|
910
|
+
function E(_, g) {
|
911
|
+
if (_.dev)
|
912
|
+
switch (g.type) {
|
913
|
+
case "cache":
|
914
|
+
case "private-cache":
|
915
|
+
case "request":
|
916
|
+
return g.isHmrRefresh ?? !1;
|
917
|
+
}
|
918
|
+
return !1;
|
919
|
+
}
|
920
|
+
function y(_, g) {
|
921
|
+
if (_.dev)
|
922
|
+
switch (g.type) {
|
923
|
+
case "cache":
|
924
|
+
case "private-cache":
|
925
|
+
case "request":
|
926
|
+
return g.serverComponentsHmrCache;
|
927
|
+
}
|
928
|
+
}
|
929
|
+
function R(_, g) {
|
930
|
+
if (_.isDraftMode)
|
931
|
+
switch (g.type) {
|
932
|
+
case "cache":
|
933
|
+
case "private-cache":
|
934
|
+
case "unstable-cache":
|
935
|
+
case "prerender-runtime":
|
936
|
+
case "request":
|
937
|
+
return g.draftMode;
|
938
|
+
}
|
939
|
+
}
|
940
|
+
function h(_) {
|
941
|
+
switch (_.type) {
|
942
|
+
case "prerender":
|
943
|
+
case "prerender-client":
|
944
|
+
case "prerender-runtime":
|
945
|
+
return _.cacheSignal;
|
946
|
+
case "prerender-ppr":
|
947
|
+
case "prerender-legacy":
|
948
|
+
case "request":
|
949
|
+
case "cache":
|
950
|
+
case "private-cache":
|
951
|
+
case "unstable-cache":
|
952
|
+
return null;
|
953
|
+
default:
|
954
|
+
return _;
|
955
|
+
}
|
956
|
+
}
|
957
|
+
function m(_) {
|
958
|
+
switch (_.type) {
|
959
|
+
case "prerender-runtime":
|
960
|
+
case "private-cache":
|
961
|
+
return _.runtimeStagePromise;
|
962
|
+
case "prerender":
|
963
|
+
case "prerender-client":
|
964
|
+
case "prerender-ppr":
|
965
|
+
case "prerender-legacy":
|
966
|
+
case "request":
|
967
|
+
case "cache":
|
968
|
+
case "unstable-cache":
|
969
|
+
return null;
|
970
|
+
default:
|
971
|
+
return _;
|
972
|
+
}
|
973
|
+
}
|
974
|
+
})(Ee)), Ee;
|
975
|
+
}
|
976
|
+
var Re = {}, he = {}, tt;
|
977
|
+
function ar() {
|
978
|
+
return tt || (tt = 1, (function(n) {
|
979
|
+
Object.defineProperty(n, "__esModule", {
|
980
|
+
value: !0
|
981
|
+
}), Object.defineProperty(n, "workAsyncStorageInstance", {
|
982
|
+
enumerable: !0,
|
983
|
+
get: function() {
|
984
|
+
return o;
|
985
|
+
}
|
986
|
+
});
|
987
|
+
const o = (0, Pe().createAsyncLocalStorage)();
|
988
|
+
})(he)), he;
|
989
|
+
}
|
990
|
+
var rt;
|
991
|
+
function vt() {
|
992
|
+
return rt || (rt = 1, (function(n) {
|
993
|
+
Object.defineProperty(n, "__esModule", {
|
994
|
+
value: !0
|
995
|
+
}), Object.defineProperty(n, "workAsyncStorage", {
|
996
|
+
enumerable: !0,
|
997
|
+
get: function() {
|
998
|
+
return e.workAsyncStorageInstance;
|
999
|
+
}
|
1000
|
+
});
|
1001
|
+
const e = ar();
|
1002
|
+
})(Re)), Re;
|
1003
|
+
}
|
1004
|
+
var ge = {}, nt;
|
1005
|
+
function cr() {
|
1006
|
+
return nt || (nt = 1, (function(n) {
|
1007
|
+
Object.defineProperty(n, "__esModule", {
|
1008
|
+
value: !0
|
1009
|
+
});
|
1010
|
+
function e(i, a) {
|
1011
|
+
for (var s in a) Object.defineProperty(i, s, {
|
1012
|
+
enumerable: !0,
|
1013
|
+
get: a[s]
|
1014
|
+
});
|
1015
|
+
}
|
1016
|
+
e(n, {
|
1017
|
+
METADATA_BOUNDARY_NAME: function() {
|
1018
|
+
return o;
|
1019
|
+
},
|
1020
|
+
OUTLET_BOUNDARY_NAME: function() {
|
1021
|
+
return c;
|
1022
|
+
},
|
1023
|
+
ROOT_LAYOUT_BOUNDARY_NAME: function() {
|
1024
|
+
return u;
|
1025
|
+
},
|
1026
|
+
VIEWPORT_BOUNDARY_NAME: function() {
|
1027
|
+
return r;
|
1028
|
+
}
|
1029
|
+
});
|
1030
|
+
const o = "__next_metadata_boundary__", r = "__next_viewport_boundary__", c = "__next_outlet_boundary__", u = "__next_root_layout_boundary__";
|
1031
|
+
})(ge)), ge;
|
1032
|
+
}
|
1033
|
+
var be = {}, ut;
|
1034
|
+
function ir() {
|
1035
|
+
return ut || (ut = 1, (function(n) {
|
1036
|
+
Object.defineProperty(n, "__esModule", {
|
1037
|
+
value: !0
|
1038
|
+
});
|
1039
|
+
function e(i, a) {
|
1040
|
+
for (var s in a) Object.defineProperty(i, s, {
|
1041
|
+
enumerable: !0,
|
1042
|
+
get: a[s]
|
1043
|
+
});
|
1044
|
+
}
|
1045
|
+
e(n, {
|
1046
|
+
atLeastOneTask: function() {
|
1047
|
+
return c;
|
1048
|
+
},
|
1049
|
+
scheduleImmediate: function() {
|
1050
|
+
return r;
|
1051
|
+
},
|
1052
|
+
scheduleOnNextTick: function() {
|
1053
|
+
return o;
|
1054
|
+
},
|
1055
|
+
waitAtLeastOneReactRenderTask: function() {
|
1056
|
+
return u;
|
1057
|
+
}
|
1058
|
+
});
|
1059
|
+
const o = (i) => {
|
1060
|
+
Promise.resolve().then(() => {
|
1061
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(i, 0) : process.nextTick(i);
|
1062
|
+
});
|
1063
|
+
}, r = (i) => {
|
1064
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(i, 0) : setImmediate(i);
|
1065
|
+
};
|
1066
|
+
function c() {
|
1067
|
+
return new Promise((i) => r(i));
|
1068
|
+
}
|
1069
|
+
function u() {
|
1070
|
+
return process.env.NEXT_RUNTIME === "edge" ? new Promise((i) => setTimeout(i, 0)) : new Promise((i) => setImmediate(i));
|
1071
|
+
}
|
1072
|
+
})(be)), be;
|
1073
|
+
}
|
1074
|
+
var ot;
|
1075
|
+
function Ot() {
|
1076
|
+
return ot || (ot = 1, (function(n) {
|
1077
|
+
Object.defineProperty(n, "__esModule", {
|
1078
|
+
value: !0
|
1079
|
+
});
|
1080
|
+
function e(t, d) {
|
1081
|
+
for (var l in d) Object.defineProperty(t, l, {
|
1082
|
+
enumerable: !0,
|
1083
|
+
get: d[l]
|
1084
|
+
});
|
1085
|
+
}
|
1086
|
+
e(n, {
|
1087
|
+
Postpone: function() {
|
1088
|
+
return j;
|
1089
|
+
},
|
1090
|
+
PreludeState: function() {
|
1091
|
+
return Xt;
|
1092
|
+
},
|
1093
|
+
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
1094
|
+
return w;
|
1095
|
+
},
|
1096
|
+
abortOnSynchronousPlatformIOAccess: function() {
|
1097
|
+
return T;
|
1098
|
+
},
|
1099
|
+
accessedDynamicData: function() {
|
1100
|
+
return St;
|
1101
|
+
},
|
1102
|
+
annotateDynamicAccess: function() {
|
1103
|
+
return Ct;
|
1104
|
+
},
|
1105
|
+
consumeDynamicAccess: function() {
|
1106
|
+
return At;
|
1107
|
+
},
|
1108
|
+
createDynamicTrackingState: function() {
|
1109
|
+
return m;
|
1110
|
+
},
|
1111
|
+
createDynamicValidationState: function() {
|
1112
|
+
return _;
|
1113
|
+
},
|
1114
|
+
createHangingInputAbortSignal: function() {
|
1115
|
+
return jt;
|
1116
|
+
},
|
1117
|
+
createRenderInBrowserAbortSignal: function() {
|
1118
|
+
return Nt;
|
1119
|
+
},
|
1120
|
+
delayUntilRuntimeStage: function() {
|
1121
|
+
return Gt;
|
1122
|
+
},
|
1123
|
+
formatDynamicAPIAccesses: function() {
|
1124
|
+
return Dt;
|
1125
|
+
},
|
1126
|
+
getFirstDynamicReason: function() {
|
1127
|
+
return g;
|
1128
|
+
},
|
1129
|
+
isDynamicPostpone: function() {
|
1130
|
+
return Tt;
|
1131
|
+
},
|
1132
|
+
isPrerenderInterruptedError: function() {
|
1133
|
+
return Pt;
|
1134
|
+
},
|
1135
|
+
logDisallowedDynamicError: function() {
|
1136
|
+
return re;
|
1137
|
+
},
|
1138
|
+
markCurrentScopeAsDynamic: function() {
|
1139
|
+
return O;
|
1140
|
+
},
|
1141
|
+
postponeWithTracking: function() {
|
1142
|
+
return N;
|
1143
|
+
},
|
1144
|
+
throwIfDisallowedDynamic: function() {
|
1145
|
+
return Ft;
|
1146
|
+
},
|
1147
|
+
throwToInterruptStaticGeneration: function() {
|
1148
|
+
return D;
|
1149
|
+
},
|
1150
|
+
trackAllowedDynamicAccess: function() {
|
1151
|
+
return xt;
|
1152
|
+
},
|
1153
|
+
trackDynamicDataInDynamicRender: function() {
|
1154
|
+
return b;
|
1155
|
+
},
|
1156
|
+
trackSynchronousPlatformIOAccessInDev: function() {
|
1157
|
+
return S;
|
1158
|
+
},
|
1159
|
+
trackSynchronousRequestDataAccessInDev: function() {
|
1160
|
+
return te;
|
1161
|
+
},
|
1162
|
+
useDynamicRouteParams: function() {
|
1163
|
+
return Mt;
|
1164
|
+
},
|
1165
|
+
warnOnSyncDynamicError: function() {
|
1166
|
+
return M;
|
1167
|
+
}
|
1168
|
+
});
|
1169
|
+
const o = /* @__PURE__ */ R(C), r = gt(), c = nr(), u = mt(), i = vt(), a = Rt(), s = cr(), f = ir(), E = ee(), y = bt();
|
1170
|
+
function R(t) {
|
1171
|
+
return t && t.__esModule ? t : {
|
1172
|
+
default: t
|
1173
|
+
};
|
1174
|
+
}
|
1175
|
+
const h = typeof o.default.unstable_postpone == "function";
|
1176
|
+
function m(t) {
|
1177
|
+
return {
|
1178
|
+
isDebugDynamicAccesses: t,
|
1179
|
+
dynamicAccesses: [],
|
1180
|
+
syncDynamicErrorWithStack: null
|
1181
|
+
};
|
1182
|
+
}
|
1183
|
+
function _() {
|
1184
|
+
return {
|
1185
|
+
hasSuspenseAboveBody: !1,
|
1186
|
+
hasDynamicMetadata: !1,
|
1187
|
+
hasDynamicViewport: !1,
|
1188
|
+
hasAllowedDynamic: !1,
|
1189
|
+
dynamicErrors: []
|
1190
|
+
};
|
1191
|
+
}
|
1192
|
+
function g(t) {
|
1193
|
+
var d;
|
1194
|
+
return (d = t.dynamicAccesses[0]) == null ? void 0 : d.expression;
|
1195
|
+
}
|
1196
|
+
function O(t, d, l) {
|
1197
|
+
if (d)
|
1198
|
+
switch (d.type) {
|
1199
|
+
case "cache":
|
1200
|
+
case "unstable-cache":
|
1201
|
+
return;
|
1202
|
+
case "private-cache":
|
1203
|
+
return;
|
1204
|
+
}
|
1205
|
+
if (!(t.forceDynamic || t.forceStatic)) {
|
1206
|
+
if (t.dynamicShouldError)
|
1207
|
+
throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${l}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
1208
|
+
value: "E553",
|
1209
|
+
enumerable: !1,
|
1210
|
+
configurable: !0
|
1211
|
+
});
|
1212
|
+
if (d)
|
1213
|
+
switch (d.type) {
|
1214
|
+
case "prerender-ppr":
|
1215
|
+
return N(t.route, l, d.dynamicTracking);
|
1216
|
+
case "prerender-legacy":
|
1217
|
+
d.revalidate = 0;
|
1218
|
+
const p = Object.defineProperty(new r.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used ${l}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
1219
|
+
value: "E550",
|
1220
|
+
enumerable: !1,
|
1221
|
+
configurable: !0
|
1222
|
+
});
|
1223
|
+
throw t.dynamicUsageDescription = l, t.dynamicUsageStack = p.stack, p;
|
1224
|
+
case "request":
|
1225
|
+
process.env.NODE_ENV !== "production" && (d.usedDynamic = !0);
|
1226
|
+
break;
|
1227
|
+
}
|
1228
|
+
}
|
1229
|
+
}
|
1230
|
+
function D(t, d, l) {
|
1231
|
+
const p = Object.defineProperty(new r.DynamicServerError(`Route ${d.route} couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
1232
|
+
value: "E558",
|
1233
|
+
enumerable: !1,
|
1234
|
+
configurable: !0
|
1235
|
+
});
|
1236
|
+
throw l.revalidate = 0, d.dynamicUsageDescription = t, d.dynamicUsageStack = p.stack, p;
|
1237
|
+
}
|
1238
|
+
function b(t) {
|
1239
|
+
switch (t.type) {
|
1240
|
+
case "cache":
|
1241
|
+
case "unstable-cache":
|
1242
|
+
return;
|
1243
|
+
case "private-cache":
|
1244
|
+
return;
|
1245
|
+
case "prerender":
|
1246
|
+
case "prerender-runtime":
|
1247
|
+
case "prerender-legacy":
|
1248
|
+
case "prerender-ppr":
|
1249
|
+
case "prerender-client":
|
1250
|
+
break;
|
1251
|
+
case "request":
|
1252
|
+
process.env.NODE_ENV !== "production" && (t.usedDynamic = !0);
|
1253
|
+
break;
|
1254
|
+
}
|
1255
|
+
}
|
1256
|
+
function v(t, d, l) {
|
1257
|
+
const p = `Route ${t} needs to bail out of prerendering at this point because it used ${d}.`, A = we(p);
|
1258
|
+
l.controller.abort(A);
|
1259
|
+
const P = l.dynamicTracking;
|
1260
|
+
P && P.dynamicAccesses.push({
|
1261
|
+
// When we aren't debugging, we don't need to create another error for the
|
1262
|
+
// stack trace.
|
1263
|
+
stack: P.isDebugDynamicAccesses ? new Error().stack : void 0,
|
1264
|
+
expression: d
|
1265
|
+
});
|
1266
|
+
}
|
1267
|
+
function T(t, d, l, p) {
|
1268
|
+
const A = p.dynamicTracking;
|
1269
|
+
v(t, d, p), A && A.syncDynamicErrorWithStack === null && (A.syncDynamicErrorWithStack = l);
|
1270
|
+
}
|
1271
|
+
function S(t) {
|
1272
|
+
t.prerenderPhase = !1;
|
1273
|
+
}
|
1274
|
+
function w(t, d, l, p) {
|
1275
|
+
if (p.controller.signal.aborted === !1) {
|
1276
|
+
v(t, d, p);
|
1277
|
+
const P = p.dynamicTracking;
|
1278
|
+
P && P.syncDynamicErrorWithStack === null && (P.syncDynamicErrorWithStack = l);
|
1279
|
+
}
|
1280
|
+
throw we(`Route ${t} needs to bail out of prerendering at this point because it used ${d}.`);
|
1281
|
+
}
|
1282
|
+
function M(t) {
|
1283
|
+
t.syncDynamicErrorWithStack && console.error(t.syncDynamicErrorWithStack);
|
1284
|
+
}
|
1285
|
+
const te = S;
|
1286
|
+
function j({ reason: t, route: d }) {
|
1287
|
+
const l = u.workUnitAsyncStorage.getStore(), p = l && l.type === "prerender-ppr" ? l.dynamicTracking : null;
|
1288
|
+
N(d, t, p);
|
1289
|
+
}
|
1290
|
+
function N(t, d, l) {
|
1291
|
+
wt(), l && l.dynamicAccesses.push({
|
1292
|
+
// When we aren't debugging, we don't need to create another error for the
|
1293
|
+
// stack trace.
|
1294
|
+
stack: l.isDebugDynamicAccesses ? new Error().stack : void 0,
|
1295
|
+
expression: d
|
1296
|
+
}), o.default.unstable_postpone(Se(t, d));
|
1297
|
+
}
|
1298
|
+
function Se(t, d) {
|
1299
|
+
return `Route ${t} needs to bail out of prerendering at this point because it used ${d}. 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`;
|
1300
|
+
}
|
1301
|
+
function Tt(t) {
|
1302
|
+
return typeof t == "object" && t !== null && typeof t.message == "string" ? Ae(t.message) : !1;
|
1303
|
+
}
|
1304
|
+
function Ae(t) {
|
1305
|
+
return t.includes("needs to bail out of prerendering at this point because it used") && t.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
|
1306
|
+
}
|
1307
|
+
if (Ae(Se("%%%", "^^^")) === !1)
|
1308
|
+
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
1309
|
+
value: "E296",
|
1310
|
+
enumerable: !1,
|
1311
|
+
configurable: !0
|
1312
|
+
});
|
1313
|
+
const De = "NEXT_PRERENDER_INTERRUPTED";
|
1314
|
+
function we(t) {
|
1315
|
+
const d = Object.defineProperty(new Error(t), "__NEXT_ERROR_CODE", {
|
1316
|
+
value: "E394",
|
1317
|
+
enumerable: !1,
|
1318
|
+
configurable: !0
|
1319
|
+
});
|
1320
|
+
return d.digest = De, d;
|
1321
|
+
}
|
1322
|
+
function Pt(t) {
|
1323
|
+
return typeof t == "object" && t !== null && t.digest === De && "name" in t && "message" in t && t instanceof Error;
|
1324
|
+
}
|
1325
|
+
function St(t) {
|
1326
|
+
return t.length > 0;
|
1327
|
+
}
|
1328
|
+
function At(t, d) {
|
1329
|
+
return t.dynamicAccesses.push(...d.dynamicAccesses), t.dynamicAccesses;
|
1330
|
+
}
|
1331
|
+
function Dt(t) {
|
1332
|
+
return t.filter((d) => typeof d.stack == "string" && d.stack.length > 0).map(({ expression: d, stack: l }) => (l = l.split(`
|
1333
|
+
`).slice(4).filter((p) => !(p.includes("node_modules/next/") || p.includes(" (<anonymous>)") || p.includes(" (node:"))).join(`
|
1334
|
+
`), `Dynamic API Usage Debug - ${d}:
|
1335
|
+
${l}`));
|
1336
|
+
}
|
1337
|
+
function wt() {
|
1338
|
+
if (!h)
|
1339
|
+
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", {
|
1340
|
+
value: "E224",
|
1341
|
+
enumerable: !1,
|
1342
|
+
configurable: !0
|
1343
|
+
});
|
1344
|
+
}
|
1345
|
+
function Nt() {
|
1346
|
+
const t = new AbortController();
|
1347
|
+
return t.abort(Object.defineProperty(new E.BailoutToCSRError("Render in Browser"), "__NEXT_ERROR_CODE", {
|
1348
|
+
value: "E721",
|
1349
|
+
enumerable: !1,
|
1350
|
+
configurable: !0
|
1351
|
+
})), t.signal;
|
1352
|
+
}
|
1353
|
+
function jt(t) {
|
1354
|
+
switch (t.type) {
|
1355
|
+
case "prerender":
|
1356
|
+
case "prerender-runtime":
|
1357
|
+
const d = new AbortController();
|
1358
|
+
if (t.cacheSignal)
|
1359
|
+
t.cacheSignal.inputReady().then(() => {
|
1360
|
+
d.abort();
|
1361
|
+
});
|
1362
|
+
else {
|
1363
|
+
const l = (0, u.getRuntimeStagePromise)(t);
|
1364
|
+
l ? l.then(() => (0, f.scheduleOnNextTick)(() => d.abort())) : (0, f.scheduleOnNextTick)(() => d.abort());
|
1365
|
+
}
|
1366
|
+
return d.signal;
|
1367
|
+
case "prerender-client":
|
1368
|
+
case "prerender-ppr":
|
1369
|
+
case "prerender-legacy":
|
1370
|
+
case "request":
|
1371
|
+
case "cache":
|
1372
|
+
case "private-cache":
|
1373
|
+
case "unstable-cache":
|
1374
|
+
return;
|
1375
|
+
}
|
1376
|
+
}
|
1377
|
+
function Ct(t, d) {
|
1378
|
+
const l = d.dynamicTracking;
|
1379
|
+
l && l.dynamicAccesses.push({
|
1380
|
+
stack: l.isDebugDynamicAccesses ? new Error().stack : void 0,
|
1381
|
+
expression: t
|
1382
|
+
});
|
1383
|
+
}
|
1384
|
+
function Mt(t) {
|
1385
|
+
const d = i.workAsyncStorage.getStore(), l = u.workUnitAsyncStorage.getStore();
|
1386
|
+
if (d && l)
|
1387
|
+
switch (l.type) {
|
1388
|
+
case "prerender-client":
|
1389
|
+
case "prerender": {
|
1390
|
+
const p = l.fallbackRouteParams;
|
1391
|
+
p && p.size > 0 && o.default.use((0, a.makeHangingPromise)(l.renderSignal, d.route, t));
|
1392
|
+
break;
|
1393
|
+
}
|
1394
|
+
case "prerender-ppr": {
|
1395
|
+
const p = l.fallbackRouteParams;
|
1396
|
+
if (p && p.size > 0)
|
1397
|
+
return N(d.route, t, l.dynamicTracking);
|
1398
|
+
break;
|
1399
|
+
}
|
1400
|
+
case "prerender-runtime":
|
1401
|
+
throw Object.defineProperty(new y.InvariantError(`\`${t}\` was called during a runtime prerender. Next.js should be preventing ${t} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
1402
|
+
value: "E771",
|
1403
|
+
enumerable: !1,
|
1404
|
+
configurable: !0
|
1405
|
+
});
|
1406
|
+
case "cache":
|
1407
|
+
case "private-cache":
|
1408
|
+
throw Object.defineProperty(new y.InvariantError(`\`${t}\` was called inside a cache scope. Next.js should be preventing ${t} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
1409
|
+
value: "E745",
|
1410
|
+
enumerable: !1,
|
1411
|
+
configurable: !0
|
1412
|
+
});
|
1413
|
+
}
|
1414
|
+
}
|
1415
|
+
const It = /\n\s+at Suspense \(<anonymous>\)/, qt = "body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6", Ht = new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${qt}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${s.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`), kt = new RegExp(`\\n\\s+at ${s.METADATA_BOUNDARY_NAME}[\\n\\s]`), Lt = new RegExp(`\\n\\s+at ${s.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), Ut = new RegExp(`\\n\\s+at ${s.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
1416
|
+
function xt(t, d, l, p) {
|
1417
|
+
if (!Ut.test(d))
|
1418
|
+
if (kt.test(d)) {
|
1419
|
+
l.hasDynamicMetadata = !0;
|
1420
|
+
return;
|
1421
|
+
} else if (Lt.test(d)) {
|
1422
|
+
l.hasDynamicViewport = !0;
|
1423
|
+
return;
|
1424
|
+
} else if (Ht.test(d)) {
|
1425
|
+
l.hasAllowedDynamic = !0, l.hasSuspenseAboveBody = !0;
|
1426
|
+
return;
|
1427
|
+
} else if (It.test(d)) {
|
1428
|
+
l.hasAllowedDynamic = !0;
|
1429
|
+
return;
|
1430
|
+
} else if (p.syncDynamicErrorWithStack) {
|
1431
|
+
l.dynamicErrors.push(p.syncDynamicErrorWithStack);
|
1432
|
+
return;
|
1433
|
+
} else {
|
1434
|
+
const A = `Route "${t.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`, P = Bt(A, d);
|
1435
|
+
l.dynamicErrors.push(P);
|
1436
|
+
return;
|
1437
|
+
}
|
1438
|
+
}
|
1439
|
+
function Bt(t, d) {
|
1440
|
+
const l = process.env.NODE_ENV !== "production" && o.default.captureOwnerStack ? o.default.captureOwnerStack() : null, p = Object.defineProperty(new Error(t), "__NEXT_ERROR_CODE", {
|
1441
|
+
value: "E394",
|
1442
|
+
enumerable: !1,
|
1443
|
+
configurable: !0
|
1444
|
+
});
|
1445
|
+
return p.stack = p.name + ": " + t + (l ?? d), p;
|
1446
|
+
}
|
1447
|
+
var Xt = /* @__PURE__ */ (function(t) {
|
1448
|
+
return t[t.Full = 0] = "Full", t[t.Empty = 1] = "Empty", t[t.Errored = 2] = "Errored", t;
|
1449
|
+
})({});
|
1450
|
+
function re(t, d) {
|
1451
|
+
console.error(d), t.dev || (t.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 "${t.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:
|
1452
|
+
- Start the app in development mode by running \`next dev\`, then open "${t.route}" in your browser to investigate the error.
|
1453
|
+
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`));
|
1454
|
+
}
|
1455
|
+
function Ft(t, d, l, p) {
|
1456
|
+
if (d !== 0) {
|
1457
|
+
if (l.hasSuspenseAboveBody)
|
1458
|
+
return;
|
1459
|
+
if (p.syncDynamicErrorWithStack)
|
1460
|
+
throw re(t, p.syncDynamicErrorWithStack), new c.StaticGenBailoutError();
|
1461
|
+
const A = l.dynamicErrors;
|
1462
|
+
if (A.length > 0) {
|
1463
|
+
for (let P = 0; P < A.length; P++)
|
1464
|
+
re(t, A[P]);
|
1465
|
+
throw new c.StaticGenBailoutError();
|
1466
|
+
}
|
1467
|
+
if (l.hasDynamicViewport)
|
1468
|
+
throw console.error(`Route "${t.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();
|
1469
|
+
if (d === 1)
|
1470
|
+
throw console.error(`Route "${t.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();
|
1471
|
+
} else if (l.hasAllowedDynamic === !1 && l.hasDynamicMetadata)
|
1472
|
+
throw console.error(`Route "${t.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();
|
1473
|
+
}
|
1474
|
+
function Gt(t, d) {
|
1475
|
+
return t.runtimeStagePromise ? t.runtimeStagePromise.then(() => d) : d;
|
1476
|
+
}
|
1477
|
+
})(_e)), _e;
|
1478
|
+
}
|
1479
|
+
var at;
|
1480
|
+
function sr() {
|
1481
|
+
return at || (at = 1, (function(n, e) {
|
1482
|
+
Object.defineProperty(e, "__esModule", {
|
1483
|
+
value: !0
|
1484
|
+
}), Object.defineProperty(e, "unstable_rethrow", {
|
1485
|
+
enumerable: !0,
|
1486
|
+
get: function() {
|
1487
|
+
return s;
|
1488
|
+
}
|
1489
|
+
});
|
1490
|
+
const o = Rt(), r = rr(), c = ee(), u = ht(), i = Ot(), a = gt();
|
1491
|
+
function s(f) {
|
1492
|
+
if ((0, u.isNextRouterError)(f) || (0, c.isBailoutToCSRError)(f) || (0, a.isDynamicServerError)(f) || (0, i.isDynamicPostpone)(f) || (0, r.isPostpone)(f) || (0, o.isHangingPromiseRejectionError)(f))
|
1493
|
+
throw f;
|
1494
|
+
f instanceof Error && "cause" in f && s(f.cause);
|
1495
|
+
}
|
1496
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
1497
|
+
})(W, W.exports)), W.exports;
|
1498
|
+
}
|
1499
|
+
var K = { exports: {} }, ct;
|
1500
|
+
function fr() {
|
1501
|
+
return ct || (ct = 1, (function(n, e) {
|
1502
|
+
Object.defineProperty(e, "__esModule", {
|
1503
|
+
value: !0
|
1504
|
+
}), Object.defineProperty(e, "unstable_rethrow", {
|
1505
|
+
enumerable: !0,
|
1506
|
+
get: function() {
|
1507
|
+
return c;
|
1508
|
+
}
|
1509
|
+
});
|
1510
|
+
const o = ee(), r = ht();
|
1511
|
+
function c(u) {
|
1512
|
+
if ((0, r.isNextRouterError)(u) || (0, o.isBailoutToCSRError)(u))
|
1513
|
+
throw u;
|
1514
|
+
u instanceof Error && "cause" in u && c(u.cause);
|
1515
|
+
}
|
1516
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
1517
|
+
})(K, K.exports)), K.exports;
|
1518
|
+
}
|
1519
|
+
var it;
|
1520
|
+
function dr() {
|
1521
|
+
return it || (it = 1, (function(n, e) {
|
1522
|
+
Object.defineProperty(e, "__esModule", {
|
1523
|
+
value: !0
|
1524
|
+
}), Object.defineProperty(e, "unstable_rethrow", {
|
1525
|
+
enumerable: !0,
|
1526
|
+
get: function() {
|
1527
|
+
return o;
|
1528
|
+
}
|
1529
|
+
});
|
1530
|
+
const o = typeof window > "u" ? sr().unstable_rethrow : fr().unstable_rethrow;
|
1531
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
1532
|
+
})(G, G.exports)), G.exports;
|
1533
|
+
}
|
1534
|
+
var st;
|
1535
|
+
function lr() {
|
1536
|
+
return st || (st = 1, (function(n, e) {
|
1537
|
+
Object.defineProperty(e, "__esModule", {
|
1538
|
+
value: !0
|
1539
|
+
});
|
1540
|
+
function o(R, h) {
|
1541
|
+
for (var m in h) Object.defineProperty(R, m, {
|
1542
|
+
enumerable: !0,
|
1543
|
+
get: h[m]
|
1544
|
+
});
|
1545
|
+
}
|
1546
|
+
o(e, {
|
1547
|
+
ReadonlyURLSearchParams: function() {
|
1548
|
+
return E;
|
1549
|
+
},
|
1550
|
+
RedirectType: function() {
|
1551
|
+
return c.RedirectType;
|
1552
|
+
},
|
1553
|
+
forbidden: function() {
|
1554
|
+
return i.forbidden;
|
1555
|
+
},
|
1556
|
+
notFound: function() {
|
1557
|
+
return u.notFound;
|
1558
|
+
},
|
1559
|
+
permanentRedirect: function() {
|
1560
|
+
return r.permanentRedirect;
|
1561
|
+
},
|
1562
|
+
redirect: function() {
|
1563
|
+
return r.redirect;
|
1564
|
+
},
|
1565
|
+
unauthorized: function() {
|
1566
|
+
return a.unauthorized;
|
1567
|
+
},
|
1568
|
+
unstable_isUnrecognizedActionError: function() {
|
1569
|
+
return y;
|
1570
|
+
},
|
1571
|
+
unstable_rethrow: function() {
|
1572
|
+
return s.unstable_rethrow;
|
1573
|
+
}
|
1574
|
+
});
|
1575
|
+
const r = Jt(), c = Te(), u = Zt(), i = er(), a = tr(), s = dr();
|
1576
|
+
class f extends Error {
|
1577
|
+
constructor() {
|
1578
|
+
super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams");
|
1579
|
+
}
|
1580
|
+
}
|
1581
|
+
class E extends URLSearchParams {
|
1582
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
1583
|
+
append() {
|
1584
|
+
throw new f();
|
1585
|
+
}
|
1586
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
1587
|
+
delete() {
|
1588
|
+
throw new f();
|
1589
|
+
}
|
1590
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
1591
|
+
set() {
|
1592
|
+
throw new f();
|
1593
|
+
}
|
1594
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
1595
|
+
sort() {
|
1596
|
+
throw new f();
|
1597
|
+
}
|
1598
|
+
}
|
1599
|
+
function y() {
|
1600
|
+
throw Object.defineProperty(new Error("`unstable_isUnrecognizedActionError` can only be used on the client."), "__NEXT_ERROR_CODE", {
|
1601
|
+
value: "E776",
|
1602
|
+
enumerable: !1,
|
1603
|
+
configurable: !0
|
1604
|
+
});
|
1605
|
+
}
|
1606
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
1607
|
+
})(H, H.exports)), H.exports;
|
1608
|
+
}
|
1609
|
+
var me = {}, ve = {}, ft;
|
1610
|
+
function _r() {
|
1611
|
+
if (ft) return ve;
|
1612
|
+
ft = 1;
|
1613
|
+
function n(o) {
|
1614
|
+
if (typeof WeakMap != "function") return null;
|
1615
|
+
var r = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap();
|
1616
|
+
return (n = function(u) {
|
1617
|
+
return u ? c : r;
|
1618
|
+
})(o);
|
1619
|
+
}
|
1620
|
+
function e(o, r) {
|
1621
|
+
if (!r && o && o.__esModule) return o;
|
1622
|
+
if (o === null || typeof o != "object" && typeof o != "function") return { default: o };
|
1623
|
+
var c = n(r);
|
1624
|
+
if (c && c.has(o)) return c.get(o);
|
1625
|
+
var u = { __proto__: null }, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
1626
|
+
for (var a in o)
|
1627
|
+
if (a !== "default" && Object.prototype.hasOwnProperty.call(o, a)) {
|
1628
|
+
var s = i ? Object.getOwnPropertyDescriptor(o, a) : null;
|
1629
|
+
s && (s.get || s.set) ? Object.defineProperty(u, a, s) : u[a] = o[a];
|
1630
|
+
}
|
1631
|
+
return u.default = o, c && c.set(o, u), u;
|
1632
|
+
}
|
1633
|
+
return ve._ = e, ve;
|
1634
|
+
}
|
1635
|
+
var dt;
|
1636
|
+
function Er() {
|
1637
|
+
return dt || (dt = 1, (function(n) {
|
1638
|
+
"use client";
|
1639
|
+
Object.defineProperty(n, "__esModule", {
|
1640
|
+
value: !0
|
1641
|
+
});
|
1642
|
+
function e(i, a) {
|
1643
|
+
for (var s in a) Object.defineProperty(i, s, {
|
1644
|
+
enumerable: !0,
|
1645
|
+
get: a[s]
|
1646
|
+
});
|
1647
|
+
}
|
1648
|
+
e(n, {
|
1649
|
+
ServerInsertedHTMLContext: function() {
|
1650
|
+
return c;
|
1651
|
+
},
|
1652
|
+
useServerInsertedHTML: function() {
|
1653
|
+
return u;
|
1654
|
+
}
|
1655
|
+
});
|
1656
|
+
const r = /* @__PURE__ */ (/* @__PURE__ */ _r())._(C), c = /* @__PURE__ */ r.default.createContext(null);
|
1657
|
+
function u(i) {
|
1658
|
+
const a = (0, r.useContext)(c);
|
1659
|
+
a && a(i);
|
1660
|
+
}
|
1661
|
+
})(me)), me;
|
1662
|
+
}
|
1663
|
+
var Q = { exports: {} }, lt;
|
1664
|
+
function yr() {
|
1665
|
+
return lt || (lt = 1, (function(n, e) {
|
1666
|
+
Object.defineProperty(e, "__esModule", {
|
1667
|
+
value: !0
|
1668
|
+
});
|
1669
|
+
function o(u, i) {
|
1670
|
+
for (var a in i) Object.defineProperty(u, a, {
|
1671
|
+
enumerable: !0,
|
1672
|
+
get: i[a]
|
1673
|
+
});
|
1674
|
+
}
|
1675
|
+
o(e, {
|
1676
|
+
UnrecognizedActionError: function() {
|
1677
|
+
return r;
|
1678
|
+
},
|
1679
|
+
unstable_isUnrecognizedActionError: function() {
|
1680
|
+
return c;
|
1681
|
+
}
|
1682
|
+
});
|
1683
|
+
class r extends Error {
|
1684
|
+
constructor(...i) {
|
1685
|
+
super(...i), this.name = "UnrecognizedActionError";
|
1686
|
+
}
|
1687
|
+
}
|
1688
|
+
function c(u) {
|
1689
|
+
return !!(u && typeof u == "object" && u instanceof r);
|
1690
|
+
}
|
1691
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
1692
|
+
})(Q, Q.exports)), Q.exports;
|
1693
|
+
}
|
1694
|
+
var J = { exports: {} }, _t;
|
1695
|
+
function pr() {
|
1696
|
+
return _t || (_t = 1, (function(n, e) {
|
1697
|
+
Object.defineProperty(e, "__esModule", {
|
1698
|
+
value: !0
|
1699
|
+
}), Object.defineProperty(e, "bailoutToClientRendering", {
|
1700
|
+
enumerable: !0,
|
1701
|
+
get: function() {
|
1702
|
+
return u;
|
1703
|
+
}
|
1704
|
+
});
|
1705
|
+
const o = ee(), r = vt(), c = mt();
|
1706
|
+
function u(i) {
|
1707
|
+
const a = r.workAsyncStorage.getStore();
|
1708
|
+
if (a?.forceStatic) return;
|
1709
|
+
const s = c.workUnitAsyncStorage.getStore();
|
1710
|
+
if (s)
|
1711
|
+
switch (s.type) {
|
1712
|
+
case "prerender":
|
1713
|
+
case "prerender-runtime":
|
1714
|
+
case "prerender-client":
|
1715
|
+
case "prerender-ppr":
|
1716
|
+
case "prerender-legacy":
|
1717
|
+
throw Object.defineProperty(new o.BailoutToCSRError(i), "__NEXT_ERROR_CODE", {
|
1718
|
+
value: "E394",
|
1719
|
+
enumerable: !1,
|
1720
|
+
configurable: !0
|
1721
|
+
});
|
1722
|
+
}
|
1723
|
+
}
|
1724
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
1725
|
+
})(J, J.exports)), J.exports;
|
1726
|
+
}
|
1727
|
+
var Et;
|
1728
|
+
function Rr() {
|
1729
|
+
return Et || (Et = 1, (function(n, e) {
|
1730
|
+
Object.defineProperty(e, "__esModule", {
|
1731
|
+
value: !0
|
1732
|
+
});
|
1733
|
+
function o(b, v) {
|
1734
|
+
for (var T in v) Object.defineProperty(b, T, {
|
1735
|
+
enumerable: !0,
|
1736
|
+
get: v[T]
|
1737
|
+
});
|
1738
|
+
}
|
1739
|
+
o(e, {
|
1740
|
+
ReadonlyURLSearchParams: function() {
|
1741
|
+
return s.ReadonlyURLSearchParams;
|
1742
|
+
},
|
1743
|
+
RedirectType: function() {
|
1744
|
+
return s.RedirectType;
|
1745
|
+
},
|
1746
|
+
ServerInsertedHTMLContext: function() {
|
1747
|
+
return f.ServerInsertedHTMLContext;
|
1748
|
+
},
|
1749
|
+
forbidden: function() {
|
1750
|
+
return s.forbidden;
|
1751
|
+
},
|
1752
|
+
notFound: function() {
|
1753
|
+
return s.notFound;
|
1754
|
+
},
|
1755
|
+
permanentRedirect: function() {
|
1756
|
+
return s.permanentRedirect;
|
1757
|
+
},
|
1758
|
+
redirect: function() {
|
1759
|
+
return s.redirect;
|
1760
|
+
},
|
1761
|
+
unauthorized: function() {
|
1762
|
+
return s.unauthorized;
|
1763
|
+
},
|
1764
|
+
unstable_isUnrecognizedActionError: function() {
|
1765
|
+
return E.unstable_isUnrecognizedActionError;
|
1766
|
+
},
|
1767
|
+
unstable_rethrow: function() {
|
1768
|
+
return s.unstable_rethrow;
|
1769
|
+
},
|
1770
|
+
useParams: function() {
|
1771
|
+
return _;
|
1772
|
+
},
|
1773
|
+
usePathname: function() {
|
1774
|
+
return h;
|
1775
|
+
},
|
1776
|
+
useRouter: function() {
|
1777
|
+
return m;
|
1778
|
+
},
|
1779
|
+
useSearchParams: function() {
|
1780
|
+
return R;
|
1781
|
+
},
|
1782
|
+
useSelectedLayoutSegment: function() {
|
1783
|
+
return D;
|
1784
|
+
},
|
1785
|
+
useSelectedLayoutSegments: function() {
|
1786
|
+
return O;
|
1787
|
+
},
|
1788
|
+
useServerInsertedHTML: function() {
|
1789
|
+
return f.useServerInsertedHTML;
|
1790
|
+
}
|
1791
|
+
});
|
1792
|
+
const r = C, c = $t(), u = Yt(), i = zt(), a = Vt(), s = lr(), f = Er(), E = yr(), y = typeof window > "u" ? Ot().useDynamicRouteParams : void 0;
|
1793
|
+
function R() {
|
1794
|
+
const b = (0, r.useContext)(u.SearchParamsContext), v = (0, r.useMemo)(() => b ? new s.ReadonlyURLSearchParams(b) : null, [
|
1795
|
+
b
|
1796
|
+
]);
|
1797
|
+
if (typeof window > "u") {
|
1798
|
+
const { bailoutToClientRendering: T } = pr();
|
1799
|
+
T("useSearchParams()");
|
1800
|
+
}
|
1801
|
+
return v;
|
1802
|
+
}
|
1803
|
+
function h() {
|
1804
|
+
return y?.("usePathname()"), (0, r.useContext)(u.PathnameContext);
|
1805
|
+
}
|
1806
|
+
function m() {
|
1807
|
+
const b = (0, r.useContext)(c.AppRouterContext);
|
1808
|
+
if (b === null)
|
1809
|
+
throw Object.defineProperty(new Error("invariant expected app router to be mounted"), "__NEXT_ERROR_CODE", {
|
1810
|
+
value: "E238",
|
1811
|
+
enumerable: !1,
|
1812
|
+
configurable: !0
|
1813
|
+
});
|
1814
|
+
return b;
|
1815
|
+
}
|
1816
|
+
function _() {
|
1817
|
+
return y?.("useParams()"), (0, r.useContext)(u.PathParamsContext);
|
1818
|
+
}
|
1819
|
+
function g(b, v, T, S) {
|
1820
|
+
T === void 0 && (T = !0), S === void 0 && (S = []);
|
1821
|
+
let w;
|
1822
|
+
if (T)
|
1823
|
+
w = b[1][v];
|
1824
|
+
else {
|
1825
|
+
const N = b[1];
|
1826
|
+
var M;
|
1827
|
+
w = (M = N.children) != null ? M : Object.values(N)[0];
|
1828
|
+
}
|
1829
|
+
if (!w) return S;
|
1830
|
+
const te = w[0];
|
1831
|
+
let j = (0, i.getSegmentValue)(te);
|
1832
|
+
return !j || j.startsWith(a.PAGE_SEGMENT_KEY) ? S : (S.push(j), g(w, v, !1, S));
|
1833
|
+
}
|
1834
|
+
function O(b) {
|
1835
|
+
b === void 0 && (b = "children"), y?.("useSelectedLayoutSegments()");
|
1836
|
+
const v = (0, r.useContext)(c.LayoutRouterContext);
|
1837
|
+
return v ? g(v.parentTree, b) : null;
|
1838
|
+
}
|
1839
|
+
function D(b) {
|
1840
|
+
b === void 0 && (b = "children"), y?.("useSelectedLayoutSegment()");
|
1841
|
+
const v = O(b);
|
1842
|
+
if (!v || v.length === 0)
|
1843
|
+
return null;
|
1844
|
+
const T = b === "children" ? v[0] : v[v.length - 1];
|
1845
|
+
return T === a.DEFAULT_SEGMENT_KEY ? null : T;
|
1846
|
+
}
|
1847
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
1848
|
+
})(I, I.exports)), I.exports;
|
1849
|
+
}
|
1850
|
+
var Oe, yt;
|
1851
|
+
function hr() {
|
1852
|
+
return yt || (yt = 1, Oe = Rr()), Oe;
|
1853
|
+
}
|
1854
|
+
var br = hr();
|
1855
|
+
export {
|
1856
|
+
br as n
|
1857
|
+
};
|