@0xchain/token 1.0.0 → 1.1.0-beta.10

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.
@@ -0,0 +1,3838 @@
1
+ function ar(h, a) {
2
+ for (var E = 0; E < a.length; E++) {
3
+ const b = a[E];
4
+ if (typeof b != "string" && !Array.isArray(b)) {
5
+ for (const R in b)
6
+ if (R !== "default" && !(R in h)) {
7
+ const w = Object.getOwnPropertyDescriptor(b, R);
8
+ w && Object.defineProperty(h, R, w.get ? w : {
9
+ enumerable: !0,
10
+ get: () => b[R]
11
+ });
12
+ }
13
+ }
14
+ }
15
+ return Object.freeze(Object.defineProperty(h, Symbol.toStringTag, { value: "Module" }));
16
+ }
17
+ var ge = {}, Ie = {}, Me = {}, He = {}, xe, gt;
18
+ function sr() {
19
+ if (gt) return xe;
20
+ gt = 1;
21
+ var h = Object.defineProperty, a = Object.getOwnPropertyDescriptor, E = Object.getOwnPropertyNames, b = Object.prototype.hasOwnProperty, R = (t, l) => {
22
+ for (var o in l)
23
+ h(t, o, { get: l[o], enumerable: !0 });
24
+ }, w = (t, l, o, u) => {
25
+ if (l && typeof l == "object" || typeof l == "function")
26
+ for (let g of E(l))
27
+ !b.call(t, g) && g !== o && h(t, g, { get: () => l[g], enumerable: !(u = a(l, g)) || u.enumerable });
28
+ return t;
29
+ }, c = (t) => w(h({}, "__esModule", { value: !0 }), t), p = {};
30
+ R(p, {
31
+ RequestCookies: () => P,
32
+ ResponseCookies: () => A,
33
+ parseCookie: () => s,
34
+ parseSetCookie: () => v,
35
+ stringifyCookie: () => d
36
+ }), xe = c(p);
37
+ function d(t) {
38
+ var l;
39
+ const o = [
40
+ "path" in t && t.path && `Path=${t.path}`,
41
+ "expires" in t && (t.expires || t.expires === 0) && `Expires=${(typeof t.expires == "number" ? new Date(t.expires) : t.expires).toUTCString()}`,
42
+ "maxAge" in t && typeof t.maxAge == "number" && `Max-Age=${t.maxAge}`,
43
+ "domain" in t && t.domain && `Domain=${t.domain}`,
44
+ "secure" in t && t.secure && "Secure",
45
+ "httpOnly" in t && t.httpOnly && "HttpOnly",
46
+ "sameSite" in t && t.sameSite && `SameSite=${t.sameSite}`,
47
+ "partitioned" in t && t.partitioned && "Partitioned",
48
+ "priority" in t && t.priority && `Priority=${t.priority}`
49
+ ].filter(Boolean), u = `${t.name}=${encodeURIComponent((l = t.value) != null ? l : "")}`;
50
+ return o.length === 0 ? u : `${u}; ${o.join("; ")}`;
51
+ }
52
+ function s(t) {
53
+ const l = /* @__PURE__ */ new Map();
54
+ for (const o of t.split(/; */)) {
55
+ if (!o)
56
+ continue;
57
+ const u = o.indexOf("=");
58
+ if (u === -1) {
59
+ l.set(o, "true");
60
+ continue;
61
+ }
62
+ const [g, M] = [o.slice(0, u), o.slice(u + 1)];
63
+ try {
64
+ l.set(g, decodeURIComponent(M ?? "true"));
65
+ } catch {
66
+ }
67
+ }
68
+ return l;
69
+ }
70
+ function v(t) {
71
+ if (!t)
72
+ return;
73
+ const [[l, o], ...u] = s(t), {
74
+ domain: g,
75
+ expires: M,
76
+ httponly: F,
77
+ maxage: H,
78
+ path: J,
79
+ samesite: te,
80
+ secure: ae,
81
+ partitioned: re,
82
+ priority: oe
83
+ } = Object.fromEntries(
84
+ u.map(([se, fe]) => [
85
+ se.toLowerCase().replace(/-/g, ""),
86
+ fe
87
+ ])
88
+ ), ue = {
89
+ name: l,
90
+ value: decodeURIComponent(o),
91
+ domain: g,
92
+ ...M && { expires: new Date(M) },
93
+ ...F && { httpOnly: !0 },
94
+ ...typeof H == "string" && { maxAge: Number(H) },
95
+ path: J,
96
+ ...te && { sameSite: G(te) },
97
+ ...ae && { secure: !0 },
98
+ ...oe && { priority: S(oe) },
99
+ ...re && { partitioned: !0 }
100
+ };
101
+ return T(ue);
102
+ }
103
+ function T(t) {
104
+ const l = {};
105
+ for (const o in t)
106
+ t[o] && (l[o] = t[o]);
107
+ return l;
108
+ }
109
+ var j = ["strict", "lax", "none"];
110
+ function G(t) {
111
+ return t = t.toLowerCase(), j.includes(t) ? t : void 0;
112
+ }
113
+ var L = ["low", "medium", "high"];
114
+ function S(t) {
115
+ return t = t.toLowerCase(), L.includes(t) ? t : void 0;
116
+ }
117
+ function C(t) {
118
+ if (!t)
119
+ return [];
120
+ var l = [], o = 0, u, g, M, F, H;
121
+ function J() {
122
+ for (; o < t.length && /\s/.test(t.charAt(o)); )
123
+ o += 1;
124
+ return o < t.length;
125
+ }
126
+ function te() {
127
+ return g = t.charAt(o), g !== "=" && g !== ";" && g !== ",";
128
+ }
129
+ for (; o < t.length; ) {
130
+ for (u = o, H = !1; J(); )
131
+ if (g = t.charAt(o), g === ",") {
132
+ for (M = o, o += 1, J(), F = o; o < t.length && te(); )
133
+ o += 1;
134
+ o < t.length && t.charAt(o) === "=" ? (H = !0, o = F, l.push(t.substring(u, M)), u = o) : o = M + 1;
135
+ } else
136
+ o += 1;
137
+ (!H || o >= t.length) && l.push(t.substring(u, t.length));
138
+ }
139
+ return l;
140
+ }
141
+ var P = class {
142
+ constructor(t) {
143
+ this._parsed = /* @__PURE__ */ new Map(), this._headers = t;
144
+ const l = t.get("cookie");
145
+ if (l) {
146
+ const o = s(l);
147
+ for (const [u, g] of o)
148
+ this._parsed.set(u, { name: u, value: g });
149
+ }
150
+ }
151
+ [Symbol.iterator]() {
152
+ return this._parsed[Symbol.iterator]();
153
+ }
154
+ /**
155
+ * The amount of cookies received from the client
156
+ */
157
+ get size() {
158
+ return this._parsed.size;
159
+ }
160
+ get(...t) {
161
+ const l = typeof t[0] == "string" ? t[0] : t[0].name;
162
+ return this._parsed.get(l);
163
+ }
164
+ getAll(...t) {
165
+ var l;
166
+ const o = Array.from(this._parsed);
167
+ if (!t.length)
168
+ return o.map(([g, M]) => M);
169
+ const u = typeof t[0] == "string" ? t[0] : (l = t[0]) == null ? void 0 : l.name;
170
+ return o.filter(([g]) => g === u).map(([g, M]) => M);
171
+ }
172
+ has(t) {
173
+ return this._parsed.has(t);
174
+ }
175
+ set(...t) {
176
+ const [l, o] = t.length === 1 ? [t[0].name, t[0].value] : t, u = this._parsed;
177
+ return u.set(l, { name: l, value: o }), this._headers.set(
178
+ "cookie",
179
+ Array.from(u).map(([g, M]) => d(M)).join("; ")
180
+ ), this;
181
+ }
182
+ /**
183
+ * Delete the cookies matching the passed name or names in the request.
184
+ */
185
+ delete(t) {
186
+ const l = this._parsed, o = Array.isArray(t) ? t.map((u) => l.delete(u)) : l.delete(t);
187
+ return this._headers.set(
188
+ "cookie",
189
+ Array.from(l).map(([u, g]) => d(g)).join("; ")
190
+ ), o;
191
+ }
192
+ /**
193
+ * Delete all the cookies in the cookies in the request.
194
+ */
195
+ clear() {
196
+ return this.delete(Array.from(this._parsed.keys())), this;
197
+ }
198
+ /**
199
+ * Format the cookies in the request as a string for logging
200
+ */
201
+ [Symbol.for("edge-runtime.inspect.custom")]() {
202
+ return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
203
+ }
204
+ toString() {
205
+ return [...this._parsed.values()].map((t) => `${t.name}=${encodeURIComponent(t.value)}`).join("; ");
206
+ }
207
+ }, A = class {
208
+ constructor(t) {
209
+ this._parsed = /* @__PURE__ */ new Map();
210
+ var l, o, u;
211
+ this._headers = t;
212
+ const g = (u = (o = (l = t.getSetCookie) == null ? void 0 : l.call(t)) != null ? o : t.get("set-cookie")) != null ? u : [], M = Array.isArray(g) ? g : C(g);
213
+ for (const F of M) {
214
+ const H = v(F);
215
+ H && this._parsed.set(H.name, H);
216
+ }
217
+ }
218
+ /**
219
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
220
+ */
221
+ get(...t) {
222
+ const l = typeof t[0] == "string" ? t[0] : t[0].name;
223
+ return this._parsed.get(l);
224
+ }
225
+ /**
226
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
227
+ */
228
+ getAll(...t) {
229
+ var l;
230
+ const o = Array.from(this._parsed.values());
231
+ if (!t.length)
232
+ return o;
233
+ const u = typeof t[0] == "string" ? t[0] : (l = t[0]) == null ? void 0 : l.name;
234
+ return o.filter((g) => g.name === u);
235
+ }
236
+ has(t) {
237
+ return this._parsed.has(t);
238
+ }
239
+ /**
240
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
241
+ */
242
+ set(...t) {
243
+ const [l, o, u] = t.length === 1 ? [t[0].name, t[0].value, t[0]] : t, g = this._parsed;
244
+ return g.set(l, D({ name: l, value: o, ...u })), N(g, this._headers), this;
245
+ }
246
+ /**
247
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
248
+ */
249
+ delete(...t) {
250
+ const [l, o] = typeof t[0] == "string" ? [t[0]] : [t[0].name, t[0]];
251
+ return this.set({ ...o, name: l, value: "", expires: /* @__PURE__ */ new Date(0) });
252
+ }
253
+ [Symbol.for("edge-runtime.inspect.custom")]() {
254
+ return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
255
+ }
256
+ toString() {
257
+ return [...this._parsed.values()].map(d).join("; ");
258
+ }
259
+ };
260
+ function N(t, l) {
261
+ l.delete("set-cookie");
262
+ for (const [, o] of t) {
263
+ const u = d(o);
264
+ l.append("set-cookie", u);
265
+ }
266
+ }
267
+ function D(t = { name: "", value: "" }) {
268
+ return typeof t.expires == "number" && (t.expires = new Date(t.expires)), t.maxAge && (t.expires = new Date(Date.now() + t.maxAge * 1e3)), (t.path === null || t.path === void 0) && (t.path = "/"), t;
269
+ }
270
+ return xe;
271
+ }
272
+ var _t;
273
+ function Kt() {
274
+ return _t || (_t = 1, (function(h) {
275
+ Object.defineProperty(h, "__esModule", {
276
+ value: !0
277
+ });
278
+ function a(b, R) {
279
+ for (var w in R) Object.defineProperty(b, w, {
280
+ enumerable: !0,
281
+ get: R[w]
282
+ });
283
+ }
284
+ a(h, {
285
+ RequestCookies: function() {
286
+ return E.RequestCookies;
287
+ },
288
+ ResponseCookies: function() {
289
+ return E.ResponseCookies;
290
+ },
291
+ stringifyCookie: function() {
292
+ return E.stringifyCookie;
293
+ }
294
+ });
295
+ const E = sr();
296
+ })(He)), He;
297
+ }
298
+ var qe = {}, Et;
299
+ function st() {
300
+ return Et || (Et = 1, (function(h) {
301
+ Object.defineProperty(h, "__esModule", {
302
+ value: !0
303
+ }), Object.defineProperty(h, "ReflectAdapter", {
304
+ enumerable: !0,
305
+ get: function() {
306
+ return a;
307
+ }
308
+ });
309
+ class a {
310
+ static get(b, R, w) {
311
+ const c = Reflect.get(b, R, w);
312
+ return typeof c == "function" ? c.bind(b) : c;
313
+ }
314
+ static set(b, R, w, c) {
315
+ return Reflect.set(b, R, w, c);
316
+ }
317
+ static has(b, R) {
318
+ return Reflect.has(b, R);
319
+ }
320
+ static deleteProperty(b, R) {
321
+ return Reflect.deleteProperty(b, R);
322
+ }
323
+ }
324
+ })(qe)), qe;
325
+ }
326
+ var Le = {}, Ue = {}, We = {}, Rt;
327
+ function it() {
328
+ return Rt || (Rt = 1, (function(h) {
329
+ Object.defineProperty(h, "__esModule", {
330
+ value: !0
331
+ });
332
+ function a(d, s) {
333
+ for (var v in s) Object.defineProperty(d, v, {
334
+ enumerable: !0,
335
+ get: s[v]
336
+ });
337
+ }
338
+ a(h, {
339
+ bindSnapshot: function() {
340
+ return c;
341
+ },
342
+ createAsyncLocalStorage: function() {
343
+ return w;
344
+ },
345
+ createSnapshot: function() {
346
+ return p;
347
+ }
348
+ });
349
+ const E = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
350
+ value: "E504",
351
+ enumerable: !1,
352
+ configurable: !0
353
+ });
354
+ class b {
355
+ disable() {
356
+ throw E;
357
+ }
358
+ getStore() {
359
+ }
360
+ run() {
361
+ throw E;
362
+ }
363
+ exit() {
364
+ throw E;
365
+ }
366
+ enterWith() {
367
+ throw E;
368
+ }
369
+ static bind(s) {
370
+ return s;
371
+ }
372
+ }
373
+ const R = typeof globalThis < "u" && globalThis.AsyncLocalStorage;
374
+ function w() {
375
+ return R ? new R() : new b();
376
+ }
377
+ function c(d) {
378
+ return R ? R.bind(d) : b.bind(d);
379
+ }
380
+ function p() {
381
+ return R ? R.snapshot() : function(d, ...s) {
382
+ return d(...s);
383
+ };
384
+ }
385
+ })(We)), We;
386
+ }
387
+ var bt;
388
+ function ir() {
389
+ return bt || (bt = 1, (function(h) {
390
+ Object.defineProperty(h, "__esModule", {
391
+ value: !0
392
+ }), Object.defineProperty(h, "workAsyncStorageInstance", {
393
+ enumerable: !0,
394
+ get: function() {
395
+ return E;
396
+ }
397
+ });
398
+ const E = (0, it().createAsyncLocalStorage)();
399
+ })(Ue)), Ue;
400
+ }
401
+ var vt;
402
+ function Ee() {
403
+ return vt || (vt = 1, (function(h) {
404
+ Object.defineProperty(h, "__esModule", {
405
+ value: !0
406
+ }), Object.defineProperty(h, "workAsyncStorage", {
407
+ enumerable: !0,
408
+ get: function() {
409
+ return a.workAsyncStorageInstance;
410
+ }
411
+ });
412
+ const a = ir();
413
+ })(Le)), Le;
414
+ }
415
+ var Xe = {}, wt;
416
+ function ur() {
417
+ return wt || (wt = 1, (function(h) {
418
+ Object.defineProperty(h, "__esModule", {
419
+ value: !0
420
+ });
421
+ function a(w, c) {
422
+ for (var p in c) Object.defineProperty(w, p, {
423
+ enumerable: !0,
424
+ get: c[p]
425
+ });
426
+ }
427
+ a(h, {
428
+ ActionDidNotRevalidate: function() {
429
+ return E;
430
+ },
431
+ ActionDidRevalidateDynamicOnly: function() {
432
+ return R;
433
+ },
434
+ ActionDidRevalidateStaticAndDynamic: function() {
435
+ return b;
436
+ }
437
+ });
438
+ const E = 0, b = 1, R = 2;
439
+ })(Xe)), Xe;
440
+ }
441
+ var Ot;
442
+ function cr() {
443
+ return Ot || (Ot = 1, (function(h) {
444
+ Object.defineProperty(h, "__esModule", {
445
+ value: !0
446
+ });
447
+ function a(C, P) {
448
+ for (var A in P) Object.defineProperty(C, A, {
449
+ enumerable: !0,
450
+ get: P[A]
451
+ });
452
+ }
453
+ a(h, {
454
+ MutableRequestCookiesAdapter: function() {
455
+ return T;
456
+ },
457
+ ReadonlyRequestCookiesError: function() {
458
+ return c;
459
+ },
460
+ RequestCookiesAdapter: function() {
461
+ return p;
462
+ },
463
+ appendMutableCookies: function() {
464
+ return v;
465
+ },
466
+ areCookiesMutableInCurrentPhase: function() {
467
+ return G;
468
+ },
469
+ createCookiesWithMutableAccessCheck: function() {
470
+ return j;
471
+ },
472
+ getModifiedCookieValues: function() {
473
+ return s;
474
+ },
475
+ responseCookiesToRequestCookies: function() {
476
+ return S;
477
+ }
478
+ });
479
+ const E = Kt(), b = st(), R = Ee(), w = ur();
480
+ class c extends Error {
481
+ constructor() {
482
+ super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options");
483
+ }
484
+ static callable() {
485
+ throw new c();
486
+ }
487
+ }
488
+ class p {
489
+ static seal(P) {
490
+ return new Proxy(P, {
491
+ get(A, N, D) {
492
+ switch (N) {
493
+ case "clear":
494
+ case "delete":
495
+ case "set":
496
+ return c.callable;
497
+ default:
498
+ return b.ReflectAdapter.get(A, N, D);
499
+ }
500
+ }
501
+ });
502
+ }
503
+ }
504
+ const d = Symbol.for("next.mutated.cookies");
505
+ function s(C) {
506
+ const P = C[d];
507
+ return !P || !Array.isArray(P) || P.length === 0 ? [] : P;
508
+ }
509
+ function v(C, P) {
510
+ const A = s(P);
511
+ if (A.length === 0)
512
+ return !1;
513
+ const N = new E.ResponseCookies(C), D = N.getAll();
514
+ for (const t of A)
515
+ N.set(t);
516
+ for (const t of D)
517
+ N.set(t);
518
+ return !0;
519
+ }
520
+ class T {
521
+ static wrap(P, A) {
522
+ const N = new E.ResponseCookies(new Headers());
523
+ for (const u of P.getAll())
524
+ N.set(u);
525
+ let D = [];
526
+ const t = /* @__PURE__ */ new Set(), l = () => {
527
+ const u = R.workAsyncStorage.getStore();
528
+ if (u && (u.pathWasRevalidated = w.ActionDidRevalidateStaticAndDynamic), D = N.getAll().filter((M) => t.has(M.name)), A) {
529
+ const M = [];
530
+ for (const F of D) {
531
+ const H = new E.ResponseCookies(new Headers());
532
+ H.set(F), M.push(H.toString());
533
+ }
534
+ A(M);
535
+ }
536
+ }, o = new Proxy(N, {
537
+ get(u, g, M) {
538
+ switch (g) {
539
+ // A special symbol to get the modified cookie values
540
+ case d:
541
+ return D;
542
+ // TODO: Throw error if trying to set a cookie after the response
543
+ // headers have been set.
544
+ case "delete":
545
+ return function(...F) {
546
+ t.add(typeof F[0] == "string" ? F[0] : F[0].name);
547
+ try {
548
+ return u.delete(...F), o;
549
+ } finally {
550
+ l();
551
+ }
552
+ };
553
+ case "set":
554
+ return function(...F) {
555
+ t.add(typeof F[0] == "string" ? F[0] : F[0].name);
556
+ try {
557
+ return u.set(...F), o;
558
+ } finally {
559
+ l();
560
+ }
561
+ };
562
+ default:
563
+ return b.ReflectAdapter.get(u, g, M);
564
+ }
565
+ }
566
+ });
567
+ return o;
568
+ }
569
+ }
570
+ function j(C) {
571
+ const P = new Proxy(C.mutableCookies, {
572
+ get(A, N, D) {
573
+ switch (N) {
574
+ case "delete":
575
+ return function(...t) {
576
+ return L(C), A.delete(...t), P;
577
+ };
578
+ case "set":
579
+ return function(...t) {
580
+ return L(C), A.set(...t), P;
581
+ };
582
+ default:
583
+ return b.ReflectAdapter.get(A, N, D);
584
+ }
585
+ }
586
+ });
587
+ return P;
588
+ }
589
+ function G(C) {
590
+ return C.phase === "action";
591
+ }
592
+ function L(C, P) {
593
+ if (!G(C))
594
+ throw new c();
595
+ }
596
+ function S(C) {
597
+ const P = new E.RequestCookies(new Headers());
598
+ for (const A of C.getAll())
599
+ P.set(A);
600
+ return P;
601
+ }
602
+ })(Me)), Me;
603
+ }
604
+ var Be = {}, $e = {}, At;
605
+ function fr() {
606
+ return At || (At = 1, (function(h) {
607
+ Object.defineProperty(h, "__esModule", {
608
+ value: !0
609
+ }), Object.defineProperty(h, "workUnitAsyncStorageInstance", {
610
+ enumerable: !0,
611
+ get: function() {
612
+ return E;
613
+ }
614
+ });
615
+ const E = (0, it().createAsyncLocalStorage)();
616
+ })($e)), $e;
617
+ }
618
+ var De = { exports: {} }, Tt;
619
+ function lr() {
620
+ return Tt || (Tt = 1, (function(h, a) {
621
+ Object.defineProperty(a, "__esModule", {
622
+ value: !0
623
+ });
624
+ function E(o, u) {
625
+ for (var g in u) Object.defineProperty(o, g, {
626
+ enumerable: !0,
627
+ get: u[g]
628
+ });
629
+ }
630
+ E(a, {
631
+ ACTION_HEADER: function() {
632
+ return R;
633
+ },
634
+ FLIGHT_HEADERS: function() {
635
+ return j;
636
+ },
637
+ NEXT_ACTION_NOT_FOUND_HEADER: function() {
638
+ return N;
639
+ },
640
+ NEXT_ACTION_REVALIDATED_HEADER: function() {
641
+ return l;
642
+ },
643
+ NEXT_DID_POSTPONE_HEADER: function() {
644
+ return S;
645
+ },
646
+ NEXT_HMR_REFRESH_HASH_COOKIE: function() {
647
+ return s;
648
+ },
649
+ NEXT_HMR_REFRESH_HEADER: function() {
650
+ return d;
651
+ },
652
+ NEXT_HTML_REQUEST_ID_HEADER: function() {
653
+ return t;
654
+ },
655
+ NEXT_IS_PRERENDER_HEADER: function() {
656
+ return A;
657
+ },
658
+ NEXT_REQUEST_ID_HEADER: function() {
659
+ return D;
660
+ },
661
+ NEXT_REWRITTEN_PATH_HEADER: function() {
662
+ return C;
663
+ },
664
+ NEXT_REWRITTEN_QUERY_HEADER: function() {
665
+ return P;
666
+ },
667
+ NEXT_ROUTER_PREFETCH_HEADER: function() {
668
+ return c;
669
+ },
670
+ NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
671
+ return p;
672
+ },
673
+ NEXT_ROUTER_STALE_TIME_HEADER: function() {
674
+ return L;
675
+ },
676
+ NEXT_ROUTER_STATE_TREE_HEADER: function() {
677
+ return w;
678
+ },
679
+ NEXT_RSC_UNION_QUERY: function() {
680
+ return G;
681
+ },
682
+ NEXT_URL: function() {
683
+ return v;
684
+ },
685
+ RSC_CONTENT_TYPE_HEADER: function() {
686
+ return T;
687
+ },
688
+ RSC_HEADER: function() {
689
+ return b;
690
+ }
691
+ });
692
+ const b = "rsc", R = "next-action", w = "next-router-state-tree", c = "next-router-prefetch", p = "next-router-segment-prefetch", d = "next-hmr-refresh", s = "__next_hmr_refresh_hash__", v = "next-url", T = "text/x-component", j = [
693
+ b,
694
+ w,
695
+ c,
696
+ d,
697
+ p
698
+ ], G = "_rsc", L = "x-nextjs-stale-time", S = "x-nextjs-postponed", C = "x-nextjs-rewritten-path", P = "x-nextjs-rewritten-query", A = "x-nextjs-prerender", N = "x-nextjs-action-not-found", D = "x-nextjs-request-id", t = "x-nextjs-html-request-id", l = "x-action-revalidated";
699
+ (typeof a.default == "function" || typeof a.default == "object" && a.default !== null) && typeof a.default.__esModule > "u" && (Object.defineProperty(a.default, "__esModule", { value: !0 }), Object.assign(a.default, a), h.exports = a.default);
700
+ })(De, De.exports)), De.exports;
701
+ }
702
+ var Ye = {}, St;
703
+ function he() {
704
+ return St || (St = 1, (function(h) {
705
+ Object.defineProperty(h, "__esModule", {
706
+ value: !0
707
+ }), Object.defineProperty(h, "InvariantError", {
708
+ enumerable: !0,
709
+ get: function() {
710
+ return a;
711
+ }
712
+ });
713
+ class a extends Error {
714
+ constructor(b, R) {
715
+ super(`Invariant: ${b.endsWith(".") ? b : b + "."} This is a bug in Next.js.`, R), this.name = "InvariantError";
716
+ }
717
+ }
718
+ })(Ye)), Ye;
719
+ }
720
+ var Dt;
721
+ function je() {
722
+ return Dt || (Dt = 1, (function(h) {
723
+ Object.defineProperty(h, "__esModule", {
724
+ value: !0
725
+ });
726
+ function a(S, C) {
727
+ for (var P in C) Object.defineProperty(S, P, {
728
+ enumerable: !0,
729
+ get: C[P]
730
+ });
731
+ }
732
+ a(h, {
733
+ getCacheSignal: function() {
734
+ return G;
735
+ },
736
+ getDraftModeProviderForCacheScope: function() {
737
+ return j;
738
+ },
739
+ getHmrRefreshHash: function() {
740
+ return s;
741
+ },
742
+ getPrerenderResumeDataCache: function() {
743
+ return p;
744
+ },
745
+ getRenderResumeDataCache: function() {
746
+ return d;
747
+ },
748
+ getRuntimeStagePromise: function() {
749
+ return L;
750
+ },
751
+ getServerComponentsHmrCache: function() {
752
+ return T;
753
+ },
754
+ isHmrRefresh: function() {
755
+ return v;
756
+ },
757
+ throwForMissingRequestStore: function() {
758
+ return w;
759
+ },
760
+ throwInvariantForMissingStore: function() {
761
+ return c;
762
+ },
763
+ workUnitAsyncStorage: function() {
764
+ return E.workUnitAsyncStorageInstance;
765
+ }
766
+ });
767
+ const E = fr(), b = lr(), R = he();
768
+ function w(S) {
769
+ throw Object.defineProperty(new Error(`\`${S}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
770
+ value: "E251",
771
+ enumerable: !1,
772
+ configurable: !0
773
+ });
774
+ }
775
+ function c() {
776
+ throw Object.defineProperty(new R.InvariantError("Expected workUnitAsyncStorage to have a store."), "__NEXT_ERROR_CODE", {
777
+ value: "E696",
778
+ enumerable: !1,
779
+ configurable: !0
780
+ });
781
+ }
782
+ function p(S) {
783
+ switch (S.type) {
784
+ case "prerender":
785
+ case "prerender-runtime":
786
+ case "prerender-ppr":
787
+ return S.prerenderResumeDataCache;
788
+ case "prerender-client":
789
+ return S.prerenderResumeDataCache;
790
+ case "request":
791
+ if (S.prerenderResumeDataCache)
792
+ return S.prerenderResumeDataCache;
793
+ case "prerender-legacy":
794
+ case "cache":
795
+ case "private-cache":
796
+ case "unstable-cache":
797
+ return null;
798
+ default:
799
+ return S;
800
+ }
801
+ }
802
+ function d(S) {
803
+ switch (S.type) {
804
+ case "request":
805
+ case "prerender":
806
+ case "prerender-runtime":
807
+ case "prerender-client":
808
+ if (S.renderResumeDataCache)
809
+ return S.renderResumeDataCache;
810
+ // fallthrough
811
+ case "prerender-ppr":
812
+ return S.prerenderResumeDataCache ?? null;
813
+ case "cache":
814
+ case "private-cache":
815
+ case "unstable-cache":
816
+ case "prerender-legacy":
817
+ return null;
818
+ default:
819
+ return S;
820
+ }
821
+ }
822
+ function s(S, C) {
823
+ if (S.dev)
824
+ switch (C.type) {
825
+ case "cache":
826
+ case "private-cache":
827
+ case "prerender":
828
+ case "prerender-runtime":
829
+ return C.hmrRefreshHash;
830
+ case "request":
831
+ var P;
832
+ return (P = C.cookies.get(b.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : P.value;
833
+ }
834
+ }
835
+ function v(S, C) {
836
+ if (S.dev)
837
+ switch (C.type) {
838
+ case "cache":
839
+ case "private-cache":
840
+ case "request":
841
+ return C.isHmrRefresh ?? !1;
842
+ }
843
+ return !1;
844
+ }
845
+ function T(S, C) {
846
+ if (S.dev)
847
+ switch (C.type) {
848
+ case "cache":
849
+ case "private-cache":
850
+ case "request":
851
+ return C.serverComponentsHmrCache;
852
+ }
853
+ }
854
+ function j(S, C) {
855
+ if (S.isDraftMode)
856
+ switch (C.type) {
857
+ case "cache":
858
+ case "private-cache":
859
+ case "unstable-cache":
860
+ case "prerender-runtime":
861
+ case "request":
862
+ return C.draftMode;
863
+ }
864
+ }
865
+ function G(S) {
866
+ switch (S.type) {
867
+ case "prerender":
868
+ case "prerender-client":
869
+ case "prerender-runtime":
870
+ return S.cacheSignal;
871
+ case "request":
872
+ if (S.cacheSignal)
873
+ return S.cacheSignal;
874
+ case "prerender-ppr":
875
+ case "prerender-legacy":
876
+ case "cache":
877
+ case "private-cache":
878
+ case "unstable-cache":
879
+ return null;
880
+ default:
881
+ return S;
882
+ }
883
+ }
884
+ function L(S) {
885
+ switch (S.type) {
886
+ case "prerender-runtime":
887
+ case "private-cache":
888
+ return S.runtimeStagePromise;
889
+ case "prerender":
890
+ case "prerender-client":
891
+ case "prerender-ppr":
892
+ case "prerender-legacy":
893
+ case "request":
894
+ case "cache":
895
+ case "unstable-cache":
896
+ return null;
897
+ default:
898
+ return S;
899
+ }
900
+ }
901
+ })(Be)), Be;
902
+ }
903
+ var Ge = {}, Ce = { exports: {} }, U = {};
904
+ /**
905
+ * @license React
906
+ * react.production.js
907
+ *
908
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
909
+ *
910
+ * This source code is licensed under the MIT license found in the
911
+ * LICENSE file in the root directory of this source tree.
912
+ */
913
+ var Ct;
914
+ function dr() {
915
+ if (Ct) return U;
916
+ Ct = 1;
917
+ var h = Symbol.for("react.transitional.element"), a = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), s = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), j = Symbol.iterator;
918
+ function G(r) {
919
+ return r === null || typeof r != "object" ? null : (r = j && r[j] || r["@@iterator"], typeof r == "function" ? r : null);
920
+ }
921
+ var L = {
922
+ isMounted: function() {
923
+ return !1;
924
+ },
925
+ enqueueForceUpdate: function() {
926
+ },
927
+ enqueueReplaceState: function() {
928
+ },
929
+ enqueueSetState: function() {
930
+ }
931
+ }, S = Object.assign, C = {};
932
+ function P(r, y, q) {
933
+ this.props = r, this.context = y, this.refs = C, this.updater = q || L;
934
+ }
935
+ P.prototype.isReactComponent = {}, P.prototype.setState = function(r, y) {
936
+ if (typeof r != "object" && typeof r != "function" && r != null)
937
+ throw Error(
938
+ "takes an object of state variables to update or a function which returns an object of state variables."
939
+ );
940
+ this.updater.enqueueSetState(this, r, y, "setState");
941
+ }, P.prototype.forceUpdate = function(r) {
942
+ this.updater.enqueueForceUpdate(this, r, "forceUpdate");
943
+ };
944
+ function A() {
945
+ }
946
+ A.prototype = P.prototype;
947
+ function N(r, y, q) {
948
+ this.props = r, this.context = y, this.refs = C, this.updater = q || L;
949
+ }
950
+ var D = N.prototype = new A();
951
+ D.constructor = N, S(D, P.prototype), D.isPureReactComponent = !0;
952
+ var t = Array.isArray;
953
+ function l() {
954
+ }
955
+ var o = { H: null, A: null, T: null, S: null }, u = Object.prototype.hasOwnProperty;
956
+ function g(r, y, q) {
957
+ var I = q.ref;
958
+ return {
959
+ $$typeof: h,
960
+ type: r,
961
+ key: y,
962
+ ref: I !== void 0 ? I : null,
963
+ props: q
964
+ };
965
+ }
966
+ function M(r, y) {
967
+ return g(r.type, y, r.props);
968
+ }
969
+ function F(r) {
970
+ return typeof r == "object" && r !== null && r.$$typeof === h;
971
+ }
972
+ function H(r) {
973
+ var y = { "=": "=0", ":": "=2" };
974
+ return "$" + r.replace(/[=:]/g, function(q) {
975
+ return y[q];
976
+ });
977
+ }
978
+ var J = /\/+/g;
979
+ function te(r, y) {
980
+ return typeof r == "object" && r !== null && r.key != null ? H("" + r.key) : y.toString(36);
981
+ }
982
+ function ae(r) {
983
+ switch (r.status) {
984
+ case "fulfilled":
985
+ return r.value;
986
+ case "rejected":
987
+ throw r.reason;
988
+ default:
989
+ switch (typeof r.status == "string" ? r.then(l, l) : (r.status = "pending", r.then(
990
+ function(y) {
991
+ r.status === "pending" && (r.status = "fulfilled", r.value = y);
992
+ },
993
+ function(y) {
994
+ r.status === "pending" && (r.status = "rejected", r.reason = y);
995
+ }
996
+ )), r.status) {
997
+ case "fulfilled":
998
+ return r.value;
999
+ case "rejected":
1000
+ throw r.reason;
1001
+ }
1002
+ }
1003
+ throw r;
1004
+ }
1005
+ function re(r, y, q, I, $) {
1006
+ var Y = typeof r;
1007
+ (Y === "undefined" || Y === "boolean") && (r = null);
1008
+ var z = !1;
1009
+ if (r === null) z = !0;
1010
+ else
1011
+ switch (Y) {
1012
+ case "bigint":
1013
+ case "string":
1014
+ case "number":
1015
+ z = !0;
1016
+ break;
1017
+ case "object":
1018
+ switch (r.$$typeof) {
1019
+ case h:
1020
+ case a:
1021
+ z = !0;
1022
+ break;
1023
+ case v:
1024
+ return z = r._init, re(
1025
+ z(r._payload),
1026
+ y,
1027
+ q,
1028
+ I,
1029
+ $
1030
+ );
1031
+ }
1032
+ }
1033
+ if (z)
1034
+ return $ = $(r), z = I === "" ? "." + te(r, 0) : I, t($) ? (q = "", z != null && (q = z.replace(J, "$&/") + "/"), re($, y, q, "", function(ce) {
1035
+ return ce;
1036
+ })) : $ != null && (F($) && ($ = M(
1037
+ $,
1038
+ q + ($.key == null || r && r.key === $.key ? "" : ("" + $.key).replace(
1039
+ J,
1040
+ "$&/"
1041
+ ) + "/") + z
1042
+ )), y.push($)), 1;
1043
+ z = 0;
1044
+ var ee = I === "" ? "." : I + ":";
1045
+ if (t(r))
1046
+ for (var V = 0; V < r.length; V++)
1047
+ I = r[V], Y = ee + te(I, V), z += re(
1048
+ I,
1049
+ y,
1050
+ q,
1051
+ Y,
1052
+ $
1053
+ );
1054
+ else if (V = G(r), typeof V == "function")
1055
+ for (r = V.call(r), V = 0; !(I = r.next()).done; )
1056
+ I = I.value, Y = ee + te(I, V++), z += re(
1057
+ I,
1058
+ y,
1059
+ q,
1060
+ Y,
1061
+ $
1062
+ );
1063
+ else if (Y === "object") {
1064
+ if (typeof r.then == "function")
1065
+ return re(
1066
+ ae(r),
1067
+ y,
1068
+ q,
1069
+ I,
1070
+ $
1071
+ );
1072
+ throw y = String(r), Error(
1073
+ "Objects are not valid as a React child (found: " + (y === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : y) + "). If you meant to render a collection of children, use an array instead."
1074
+ );
1075
+ }
1076
+ return z;
1077
+ }
1078
+ function oe(r, y, q) {
1079
+ if (r == null) return r;
1080
+ var I = [], $ = 0;
1081
+ return re(r, I, "", "", function(Y) {
1082
+ return y.call(q, Y, $++);
1083
+ }), I;
1084
+ }
1085
+ function ue(r) {
1086
+ if (r._status === -1) {
1087
+ var y = r._result;
1088
+ y = y(), y.then(
1089
+ function(q) {
1090
+ (r._status === 0 || r._status === -1) && (r._status = 1, r._result = q);
1091
+ },
1092
+ function(q) {
1093
+ (r._status === 0 || r._status === -1) && (r._status = 2, r._result = q);
1094
+ }
1095
+ ), r._status === -1 && (r._status = 0, r._result = y);
1096
+ }
1097
+ if (r._status === 1) return r._result.default;
1098
+ throw r._result;
1099
+ }
1100
+ var se = typeof reportError == "function" ? reportError : function(r) {
1101
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1102
+ var y = new window.ErrorEvent("error", {
1103
+ bubbles: !0,
1104
+ cancelable: !0,
1105
+ message: typeof r == "object" && r !== null && typeof r.message == "string" ? String(r.message) : String(r),
1106
+ error: r
1107
+ });
1108
+ if (!window.dispatchEvent(y)) return;
1109
+ } else if (typeof process == "object" && typeof process.emit == "function") {
1110
+ process.emit("uncaughtException", r);
1111
+ return;
1112
+ }
1113
+ console.error(r);
1114
+ }, fe = {
1115
+ map: oe,
1116
+ forEach: function(r, y, q) {
1117
+ oe(
1118
+ r,
1119
+ function() {
1120
+ y.apply(this, arguments);
1121
+ },
1122
+ q
1123
+ );
1124
+ },
1125
+ count: function(r) {
1126
+ var y = 0;
1127
+ return oe(r, function() {
1128
+ y++;
1129
+ }), y;
1130
+ },
1131
+ toArray: function(r) {
1132
+ return oe(r, function(y) {
1133
+ return y;
1134
+ }) || [];
1135
+ },
1136
+ only: function(r) {
1137
+ if (!F(r))
1138
+ throw Error(
1139
+ "React.Children.only expected to receive a single React element child."
1140
+ );
1141
+ return r;
1142
+ }
1143
+ };
1144
+ return U.Activity = T, U.Children = fe, U.Component = P, U.Fragment = E, U.Profiler = R, U.PureComponent = N, U.StrictMode = b, U.Suspense = d, U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = o, U.__COMPILER_RUNTIME = {
1145
+ __proto__: null,
1146
+ c: function(r) {
1147
+ return o.H.useMemoCache(r);
1148
+ }
1149
+ }, U.cache = function(r) {
1150
+ return function() {
1151
+ return r.apply(null, arguments);
1152
+ };
1153
+ }, U.cacheSignal = function() {
1154
+ return null;
1155
+ }, U.cloneElement = function(r, y, q) {
1156
+ if (r == null)
1157
+ throw Error(
1158
+ "The argument must be a React element, but you passed " + r + "."
1159
+ );
1160
+ var I = S({}, r.props), $ = r.key;
1161
+ if (y != null)
1162
+ for (Y in y.key !== void 0 && ($ = "" + y.key), y)
1163
+ !u.call(y, Y) || Y === "key" || Y === "__self" || Y === "__source" || Y === "ref" && y.ref === void 0 || (I[Y] = y[Y]);
1164
+ var Y = arguments.length - 2;
1165
+ if (Y === 1) I.children = q;
1166
+ else if (1 < Y) {
1167
+ for (var z = Array(Y), ee = 0; ee < Y; ee++)
1168
+ z[ee] = arguments[ee + 2];
1169
+ I.children = z;
1170
+ }
1171
+ return g(r.type, $, I);
1172
+ }, U.createContext = function(r) {
1173
+ return r = {
1174
+ $$typeof: c,
1175
+ _currentValue: r,
1176
+ _currentValue2: r,
1177
+ _threadCount: 0,
1178
+ Provider: null,
1179
+ Consumer: null
1180
+ }, r.Provider = r, r.Consumer = {
1181
+ $$typeof: w,
1182
+ _context: r
1183
+ }, r;
1184
+ }, U.createElement = function(r, y, q) {
1185
+ var I, $ = {}, Y = null;
1186
+ if (y != null)
1187
+ for (I in y.key !== void 0 && (Y = "" + y.key), y)
1188
+ u.call(y, I) && I !== "key" && I !== "__self" && I !== "__source" && ($[I] = y[I]);
1189
+ var z = arguments.length - 2;
1190
+ if (z === 1) $.children = q;
1191
+ else if (1 < z) {
1192
+ for (var ee = Array(z), V = 0; V < z; V++)
1193
+ ee[V] = arguments[V + 2];
1194
+ $.children = ee;
1195
+ }
1196
+ if (r && r.defaultProps)
1197
+ for (I in z = r.defaultProps, z)
1198
+ $[I] === void 0 && ($[I] = z[I]);
1199
+ return g(r, Y, $);
1200
+ }, U.createRef = function() {
1201
+ return { current: null };
1202
+ }, U.forwardRef = function(r) {
1203
+ return { $$typeof: p, render: r };
1204
+ }, U.isValidElement = F, U.lazy = function(r) {
1205
+ return {
1206
+ $$typeof: v,
1207
+ _payload: { _status: -1, _result: r },
1208
+ _init: ue
1209
+ };
1210
+ }, U.memo = function(r, y) {
1211
+ return {
1212
+ $$typeof: s,
1213
+ type: r,
1214
+ compare: y === void 0 ? null : y
1215
+ };
1216
+ }, U.startTransition = function(r) {
1217
+ var y = o.T, q = {};
1218
+ o.T = q;
1219
+ try {
1220
+ var I = r(), $ = o.S;
1221
+ $ !== null && $(q, I), typeof I == "object" && I !== null && typeof I.then == "function" && I.then(l, se);
1222
+ } catch (Y) {
1223
+ se(Y);
1224
+ } finally {
1225
+ y !== null && q.types !== null && (y.types = q.types), o.T = y;
1226
+ }
1227
+ }, U.unstable_useCacheRefresh = function() {
1228
+ return o.H.useCacheRefresh();
1229
+ }, U.use = function(r) {
1230
+ return o.H.use(r);
1231
+ }, U.useActionState = function(r, y, q) {
1232
+ return o.H.useActionState(r, y, q);
1233
+ }, U.useCallback = function(r, y) {
1234
+ return o.H.useCallback(r, y);
1235
+ }, U.useContext = function(r) {
1236
+ return o.H.useContext(r);
1237
+ }, U.useDebugValue = function() {
1238
+ }, U.useDeferredValue = function(r, y) {
1239
+ return o.H.useDeferredValue(r, y);
1240
+ }, U.useEffect = function(r, y) {
1241
+ return o.H.useEffect(r, y);
1242
+ }, U.useEffectEvent = function(r) {
1243
+ return o.H.useEffectEvent(r);
1244
+ }, U.useId = function() {
1245
+ return o.H.useId();
1246
+ }, U.useImperativeHandle = function(r, y, q) {
1247
+ return o.H.useImperativeHandle(r, y, q);
1248
+ }, U.useInsertionEffect = function(r, y) {
1249
+ return o.H.useInsertionEffect(r, y);
1250
+ }, U.useLayoutEffect = function(r, y) {
1251
+ return o.H.useLayoutEffect(r, y);
1252
+ }, U.useMemo = function(r, y) {
1253
+ return o.H.useMemo(r, y);
1254
+ }, U.useOptimistic = function(r, y) {
1255
+ return o.H.useOptimistic(r, y);
1256
+ }, U.useReducer = function(r, y, q) {
1257
+ return o.H.useReducer(r, y, q);
1258
+ }, U.useRef = function(r) {
1259
+ return o.H.useRef(r);
1260
+ }, U.useState = function(r) {
1261
+ return o.H.useState(r);
1262
+ }, U.useSyncExternalStore = function(r, y, q) {
1263
+ return o.H.useSyncExternalStore(
1264
+ r,
1265
+ y,
1266
+ q
1267
+ );
1268
+ }, U.useTransition = function() {
1269
+ return o.H.useTransition();
1270
+ }, U.version = "19.2.3", U;
1271
+ }
1272
+ var _e = { exports: {} };
1273
+ /**
1274
+ * @license React
1275
+ * react.development.js
1276
+ *
1277
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1278
+ *
1279
+ * This source code is licensed under the MIT license found in the
1280
+ * LICENSE file in the root directory of this source tree.
1281
+ */
1282
+ _e.exports;
1283
+ var kt;
1284
+ function pr() {
1285
+ return kt || (kt = 1, (function(h, a) {
1286
+ process.env.NODE_ENV !== "production" && (function() {
1287
+ function E(e, n) {
1288
+ Object.defineProperty(w.prototype, e, {
1289
+ get: function() {
1290
+ console.warn(
1291
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
1292
+ n[0],
1293
+ n[1]
1294
+ );
1295
+ }
1296
+ });
1297
+ }
1298
+ function b(e) {
1299
+ return e === null || typeof e != "object" ? null : (e = ve && e[ve] || e["@@iterator"], typeof e == "function" ? e : null);
1300
+ }
1301
+ function R(e, n) {
1302
+ e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
1303
+ var m = e + "." + n;
1304
+ ie[m] || (console.error(
1305
+ "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.",
1306
+ n,
1307
+ e
1308
+ ), ie[m] = !0);
1309
+ }
1310
+ function w(e, n, m) {
1311
+ this.props = e, this.context = n, this.refs = ye, this.updater = m || we;
1312
+ }
1313
+ function c() {
1314
+ }
1315
+ function p(e, n, m) {
1316
+ this.props = e, this.context = n, this.refs = ye, this.updater = m || we;
1317
+ }
1318
+ function d() {
1319
+ }
1320
+ function s(e) {
1321
+ return "" + e;
1322
+ }
1323
+ function v(e) {
1324
+ try {
1325
+ s(e);
1326
+ var n = !1;
1327
+ } catch {
1328
+ n = !0;
1329
+ }
1330
+ if (n) {
1331
+ n = console;
1332
+ var m = n.error, O = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
1333
+ return m.call(
1334
+ n,
1335
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1336
+ O
1337
+ ), s(e);
1338
+ }
1339
+ }
1340
+ function T(e) {
1341
+ if (e == null) return null;
1342
+ if (typeof e == "function")
1343
+ return e.$$typeof === f ? null : e.displayName || e.name || null;
1344
+ if (typeof e == "string") return e;
1345
+ switch (e) {
1346
+ case r:
1347
+ return "Fragment";
1348
+ case q:
1349
+ return "Profiler";
1350
+ case y:
1351
+ return "StrictMode";
1352
+ case z:
1353
+ return "Suspense";
1354
+ case ee:
1355
+ return "SuspenseList";
1356
+ case be:
1357
+ return "Activity";
1358
+ }
1359
+ if (typeof e == "object")
1360
+ switch (typeof e.tag == "number" && console.error(
1361
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1362
+ ), e.$$typeof) {
1363
+ case fe:
1364
+ return "Portal";
1365
+ case $:
1366
+ return e.displayName || "Context";
1367
+ case I:
1368
+ return (e._context.displayName || "Context") + ".Consumer";
1369
+ case Y:
1370
+ var n = e.render;
1371
+ return e = e.displayName, e || (e = n.displayName || n.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
1372
+ case V:
1373
+ return n = e.displayName || null, n !== null ? n : T(e.type) || "Memo";
1374
+ case ce:
1375
+ n = e._payload, e = e._init;
1376
+ try {
1377
+ return T(e(n));
1378
+ } catch {
1379
+ }
1380
+ }
1381
+ return null;
1382
+ }
1383
+ function j(e) {
1384
+ if (e === r) return "<>";
1385
+ if (typeof e == "object" && e !== null && e.$$typeof === ce)
1386
+ return "<...>";
1387
+ try {
1388
+ var n = T(e);
1389
+ return n ? "<" + n + ">" : "<...>";
1390
+ } catch {
1391
+ return "<...>";
1392
+ }
1393
+ }
1394
+ function G() {
1395
+ var e = i.A;
1396
+ return e === null ? null : e.getOwner();
1397
+ }
1398
+ function L() {
1399
+ return Error("react-stack-top-frame");
1400
+ }
1401
+ function S(e) {
1402
+ if (_.call(e, "key")) {
1403
+ var n = Object.getOwnPropertyDescriptor(e, "key").get;
1404
+ if (n && n.isReactWarning) return !1;
1405
+ }
1406
+ return e.key !== void 0;
1407
+ }
1408
+ function C(e, n) {
1409
+ function m() {
1410
+ K || (K = !0, console.error(
1411
+ "%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)",
1412
+ n
1413
+ ));
1414
+ }
1415
+ m.isReactWarning = !0, Object.defineProperty(e, "key", {
1416
+ get: m,
1417
+ configurable: !0
1418
+ });
1419
+ }
1420
+ function P() {
1421
+ var e = T(this.type);
1422
+ return lt[e] || (lt[e] = !0, console.error(
1423
+ "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."
1424
+ )), e = this.props.ref, e !== void 0 ? e : null;
1425
+ }
1426
+ function A(e, n, m, O, k, X) {
1427
+ var W = m.ref;
1428
+ return e = {
1429
+ $$typeof: se,
1430
+ type: e,
1431
+ key: n,
1432
+ props: m,
1433
+ _owner: O
1434
+ }, (W !== void 0 ? W : null) !== null ? Object.defineProperty(e, "ref", {
1435
+ enumerable: !1,
1436
+ get: P
1437
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
1438
+ configurable: !1,
1439
+ enumerable: !1,
1440
+ writable: !0,
1441
+ value: 0
1442
+ }), Object.defineProperty(e, "_debugInfo", {
1443
+ configurable: !1,
1444
+ enumerable: !1,
1445
+ writable: !0,
1446
+ value: null
1447
+ }), Object.defineProperty(e, "_debugStack", {
1448
+ configurable: !1,
1449
+ enumerable: !1,
1450
+ writable: !0,
1451
+ value: k
1452
+ }), Object.defineProperty(e, "_debugTask", {
1453
+ configurable: !1,
1454
+ enumerable: !1,
1455
+ writable: !0,
1456
+ value: X
1457
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
1458
+ }
1459
+ function N(e, n) {
1460
+ return n = A(
1461
+ e.type,
1462
+ n,
1463
+ e.props,
1464
+ e._owner,
1465
+ e._debugStack,
1466
+ e._debugTask
1467
+ ), e._store && (n._store.validated = e._store.validated), n;
1468
+ }
1469
+ function D(e) {
1470
+ t(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === ce && (e._payload.status === "fulfilled" ? t(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
1471
+ }
1472
+ function t(e) {
1473
+ return typeof e == "object" && e !== null && e.$$typeof === se;
1474
+ }
1475
+ function l(e) {
1476
+ var n = { "=": "=0", ":": "=2" };
1477
+ return "$" + e.replace(/[=:]/g, function(m) {
1478
+ return n[m];
1479
+ });
1480
+ }
1481
+ function o(e, n) {
1482
+ return typeof e == "object" && e !== null && e.key != null ? (v(e.key), l("" + e.key)) : n.toString(36);
1483
+ }
1484
+ function u(e) {
1485
+ switch (e.status) {
1486
+ case "fulfilled":
1487
+ return e.value;
1488
+ case "rejected":
1489
+ throw e.reason;
1490
+ default:
1491
+ switch (typeof e.status == "string" ? e.then(d, d) : (e.status = "pending", e.then(
1492
+ function(n) {
1493
+ e.status === "pending" && (e.status = "fulfilled", e.value = n);
1494
+ },
1495
+ function(n) {
1496
+ e.status === "pending" && (e.status = "rejected", e.reason = n);
1497
+ }
1498
+ )), e.status) {
1499
+ case "fulfilled":
1500
+ return e.value;
1501
+ case "rejected":
1502
+ throw e.reason;
1503
+ }
1504
+ }
1505
+ throw e;
1506
+ }
1507
+ function g(e, n, m, O, k) {
1508
+ var X = typeof e;
1509
+ (X === "undefined" || X === "boolean") && (e = null);
1510
+ var W = !1;
1511
+ if (e === null) W = !0;
1512
+ else
1513
+ switch (X) {
1514
+ case "bigint":
1515
+ case "string":
1516
+ case "number":
1517
+ W = !0;
1518
+ break;
1519
+ case "object":
1520
+ switch (e.$$typeof) {
1521
+ case se:
1522
+ case fe:
1523
+ W = !0;
1524
+ break;
1525
+ case ce:
1526
+ return W = e._init, g(
1527
+ W(e._payload),
1528
+ n,
1529
+ m,
1530
+ O,
1531
+ k
1532
+ );
1533
+ }
1534
+ }
1535
+ if (W) {
1536
+ W = e, k = k(W);
1537
+ var Z = O === "" ? "." + o(W, 0) : O;
1538
+ return Oe(k) ? (m = "", Z != null && (m = Z.replace(pt, "$&/") + "/"), g(k, n, m, "", function(le) {
1539
+ return le;
1540
+ })) : k != null && (t(k) && (k.key != null && (W && W.key === k.key || v(k.key)), m = N(
1541
+ k,
1542
+ m + (k.key == null || W && W.key === k.key ? "" : ("" + k.key).replace(
1543
+ pt,
1544
+ "$&/"
1545
+ ) + "/") + Z
1546
+ ), O !== "" && W != null && t(W) && W.key == null && W._store && !W._store.validated && (m._store.validated = 2), k = m), n.push(k)), 1;
1547
+ }
1548
+ if (W = 0, Z = O === "" ? "." : O + ":", Oe(e))
1549
+ for (var B = 0; B < e.length; B++)
1550
+ O = e[B], X = Z + o(O, B), W += g(
1551
+ O,
1552
+ n,
1553
+ m,
1554
+ X,
1555
+ k
1556
+ );
1557
+ else if (B = b(e), typeof B == "function")
1558
+ for (B === e.entries && (dt || console.warn(
1559
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
1560
+ ), dt = !0), e = B.call(e), B = 0; !(O = e.next()).done; )
1561
+ O = O.value, X = Z + o(O, B++), W += g(
1562
+ O,
1563
+ n,
1564
+ m,
1565
+ X,
1566
+ k
1567
+ );
1568
+ else if (X === "object") {
1569
+ if (typeof e.then == "function")
1570
+ return g(
1571
+ u(e),
1572
+ n,
1573
+ m,
1574
+ O,
1575
+ k
1576
+ );
1577
+ throw n = String(e), Error(
1578
+ "Objects are not valid as a React child (found: " + (n === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : n) + "). If you meant to render a collection of children, use an array instead."
1579
+ );
1580
+ }
1581
+ return W;
1582
+ }
1583
+ function M(e, n, m) {
1584
+ if (e == null) return e;
1585
+ var O = [], k = 0;
1586
+ return g(e, O, "", "", function(X) {
1587
+ return n.call(m, X, k++);
1588
+ }), O;
1589
+ }
1590
+ function F(e) {
1591
+ if (e._status === -1) {
1592
+ var n = e._ioInfo;
1593
+ n != null && (n.start = n.end = performance.now()), n = e._result;
1594
+ var m = n();
1595
+ if (m.then(
1596
+ function(k) {
1597
+ if (e._status === 0 || e._status === -1) {
1598
+ e._status = 1, e._result = k;
1599
+ var X = e._ioInfo;
1600
+ X != null && (X.end = performance.now()), m.status === void 0 && (m.status = "fulfilled", m.value = k);
1601
+ }
1602
+ },
1603
+ function(k) {
1604
+ if (e._status === 0 || e._status === -1) {
1605
+ e._status = 2, e._result = k;
1606
+ var X = e._ioInfo;
1607
+ X != null && (X.end = performance.now()), m.status === void 0 && (m.status = "rejected", m.reason = k);
1608
+ }
1609
+ }
1610
+ ), n = e._ioInfo, n != null) {
1611
+ n.value = m;
1612
+ var O = m.displayName;
1613
+ typeof O == "string" && (n.name = O);
1614
+ }
1615
+ e._status === -1 && (e._status = 0, e._result = m);
1616
+ }
1617
+ if (e._status === 1)
1618
+ return n = e._result, n === void 0 && console.error(
1619
+ `lazy: Expected the result of a dynamic import() call. Instead received: %s
1620
+
1621
+ Your code should look like:
1622
+ const MyComponent = lazy(() => import('./MyComponent'))
1623
+
1624
+ Did you accidentally put curly braces around the import?`,
1625
+ n
1626
+ ), "default" in n || console.error(
1627
+ `lazy: Expected the result of a dynamic import() call. Instead received: %s
1628
+
1629
+ Your code should look like:
1630
+ const MyComponent = lazy(() => import('./MyComponent'))`,
1631
+ n
1632
+ ), n.default;
1633
+ throw e._result;
1634
+ }
1635
+ function H() {
1636
+ var e = i.H;
1637
+ return e === null && console.error(
1638
+ `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:
1639
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
1640
+ 2. You might be breaking the Rules of Hooks
1641
+ 3. You might have more than one copy of React in the same app
1642
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
1643
+ ), e;
1644
+ }
1645
+ function J() {
1646
+ i.asyncTransitions--;
1647
+ }
1648
+ function te(e) {
1649
+ if (Ae === null)
1650
+ try {
1651
+ var n = ("require" + Math.random()).slice(0, 7);
1652
+ Ae = (h && h[n]).call(
1653
+ h,
1654
+ "timers"
1655
+ ).setImmediate;
1656
+ } catch {
1657
+ Ae = function(O) {
1658
+ yt === !1 && (yt = !0, typeof MessageChannel > "u" && console.error(
1659
+ "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."
1660
+ ));
1661
+ var k = new MessageChannel();
1662
+ k.port1.onmessage = O, k.port2.postMessage(void 0);
1663
+ };
1664
+ }
1665
+ return Ae(e);
1666
+ }
1667
+ function ae(e) {
1668
+ return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
1669
+ }
1670
+ function re(e, n) {
1671
+ n !== Te - 1 && console.error(
1672
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1673
+ ), Te = n;
1674
+ }
1675
+ function oe(e, n, m) {
1676
+ var O = i.actQueue;
1677
+ if (O !== null)
1678
+ if (O.length !== 0)
1679
+ try {
1680
+ ue(O), te(function() {
1681
+ return oe(e, n, m);
1682
+ });
1683
+ return;
1684
+ } catch (k) {
1685
+ i.thrownErrors.push(k);
1686
+ }
1687
+ else i.actQueue = null;
1688
+ 0 < i.thrownErrors.length ? (O = ae(i.thrownErrors), i.thrownErrors.length = 0, m(O)) : n(e);
1689
+ }
1690
+ function ue(e) {
1691
+ if (!Ne) {
1692
+ Ne = !0;
1693
+ var n = 0;
1694
+ try {
1695
+ for (; n < e.length; n++) {
1696
+ var m = e[n];
1697
+ do {
1698
+ i.didUsePromise = !1;
1699
+ var O = m(!1);
1700
+ if (O !== null) {
1701
+ if (i.didUsePromise) {
1702
+ e[n] = m, e.splice(0, n);
1703
+ return;
1704
+ }
1705
+ m = O;
1706
+ } else break;
1707
+ } while (!0);
1708
+ }
1709
+ e.length = 0;
1710
+ } catch (k) {
1711
+ e.splice(0, n + 1), i.thrownErrors.push(k);
1712
+ } finally {
1713
+ Ne = !1;
1714
+ }
1715
+ }
1716
+ }
1717
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1718
+ var se = Symbol.for("react.transitional.element"), fe = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), V = Symbol.for("react.memo"), ce = Symbol.for("react.lazy"), be = Symbol.for("react.activity"), ve = Symbol.iterator, ie = {}, we = {
1719
+ isMounted: function() {
1720
+ return !1;
1721
+ },
1722
+ enqueueForceUpdate: function(e) {
1723
+ R(e, "forceUpdate");
1724
+ },
1725
+ enqueueReplaceState: function(e) {
1726
+ R(e, "replaceState");
1727
+ },
1728
+ enqueueSetState: function(e) {
1729
+ R(e, "setState");
1730
+ }
1731
+ }, de = Object.assign, ye = {};
1732
+ Object.freeze(ye), w.prototype.isReactComponent = {}, w.prototype.setState = function(e, n) {
1733
+ if (typeof e != "object" && typeof e != "function" && e != null)
1734
+ throw Error(
1735
+ "takes an object of state variables to update or a function which returns an object of state variables."
1736
+ );
1737
+ this.updater.enqueueSetState(this, e, n, "setState");
1738
+ }, w.prototype.forceUpdate = function(e) {
1739
+ this.updater.enqueueForceUpdate(this, e, "forceUpdate");
1740
+ };
1741
+ var ne = {
1742
+ isMounted: [
1743
+ "isMounted",
1744
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1745
+ ],
1746
+ replaceState: [
1747
+ "replaceState",
1748
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1749
+ ]
1750
+ };
1751
+ for (me in ne)
1752
+ ne.hasOwnProperty(me) && E(me, ne[me]);
1753
+ c.prototype = w.prototype, ne = p.prototype = new c(), ne.constructor = p, de(ne, w.prototype), ne.isPureReactComponent = !0;
1754
+ var Oe = Array.isArray, f = Symbol.for("react.client.reference"), i = {
1755
+ H: null,
1756
+ A: null,
1757
+ T: null,
1758
+ S: null,
1759
+ actQueue: null,
1760
+ asyncTransitions: 0,
1761
+ isBatchingLegacy: !1,
1762
+ didScheduleLegacyUpdate: !1,
1763
+ didUsePromise: !1,
1764
+ thrownErrors: [],
1765
+ getCurrentStack: null,
1766
+ recentlyCreatedOwnerStacks: 0
1767
+ }, _ = Object.prototype.hasOwnProperty, x = console.createTask ? console.createTask : function() {
1768
+ return null;
1769
+ };
1770
+ ne = {
1771
+ react_stack_bottom_frame: function(e) {
1772
+ return e();
1773
+ }
1774
+ };
1775
+ var K, Q, lt = {}, tr = ne.react_stack_bottom_frame.bind(
1776
+ ne,
1777
+ L
1778
+ )(), rr = x(j(L)), dt = !1, pt = /\/+/g, ht = typeof reportError == "function" ? reportError : function(e) {
1779
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1780
+ var n = new window.ErrorEvent("error", {
1781
+ bubbles: !0,
1782
+ cancelable: !0,
1783
+ message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
1784
+ error: e
1785
+ });
1786
+ if (!window.dispatchEvent(n)) return;
1787
+ } else if (typeof process == "object" && typeof process.emit == "function") {
1788
+ process.emit("uncaughtException", e);
1789
+ return;
1790
+ }
1791
+ console.error(e);
1792
+ }, yt = !1, Ae = null, Te = 0, Se = !1, Ne = !1, mt = typeof queueMicrotask == "function" ? function(e) {
1793
+ queueMicrotask(function() {
1794
+ return queueMicrotask(e);
1795
+ });
1796
+ } : te;
1797
+ ne = Object.freeze({
1798
+ __proto__: null,
1799
+ c: function(e) {
1800
+ return H().useMemoCache(e);
1801
+ }
1802
+ });
1803
+ var me = {
1804
+ map: M,
1805
+ forEach: function(e, n, m) {
1806
+ M(
1807
+ e,
1808
+ function() {
1809
+ n.apply(this, arguments);
1810
+ },
1811
+ m
1812
+ );
1813
+ },
1814
+ count: function(e) {
1815
+ var n = 0;
1816
+ return M(e, function() {
1817
+ n++;
1818
+ }), n;
1819
+ },
1820
+ toArray: function(e) {
1821
+ return M(e, function(n) {
1822
+ return n;
1823
+ }) || [];
1824
+ },
1825
+ only: function(e) {
1826
+ if (!t(e))
1827
+ throw Error(
1828
+ "React.Children.only expected to receive a single React element child."
1829
+ );
1830
+ return e;
1831
+ }
1832
+ };
1833
+ a.Activity = be, a.Children = me, a.Component = w, a.Fragment = r, a.Profiler = q, a.PureComponent = p, a.StrictMode = y, a.Suspense = z, a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, a.__COMPILER_RUNTIME = ne, a.act = function(e) {
1834
+ var n = i.actQueue, m = Te;
1835
+ Te++;
1836
+ var O = i.actQueue = n !== null ? n : [], k = !1;
1837
+ try {
1838
+ var X = e();
1839
+ } catch (B) {
1840
+ i.thrownErrors.push(B);
1841
+ }
1842
+ if (0 < i.thrownErrors.length)
1843
+ throw re(n, m), e = ae(i.thrownErrors), i.thrownErrors.length = 0, e;
1844
+ if (X !== null && typeof X == "object" && typeof X.then == "function") {
1845
+ var W = X;
1846
+ return mt(function() {
1847
+ k || Se || (Se = !0, console.error(
1848
+ "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 () => ...);"
1849
+ ));
1850
+ }), {
1851
+ then: function(B, le) {
1852
+ k = !0, W.then(
1853
+ function(pe) {
1854
+ if (re(n, m), m === 0) {
1855
+ try {
1856
+ ue(O), te(function() {
1857
+ return oe(
1858
+ pe,
1859
+ B,
1860
+ le
1861
+ );
1862
+ });
1863
+ } catch (or) {
1864
+ i.thrownErrors.push(or);
1865
+ }
1866
+ if (0 < i.thrownErrors.length) {
1867
+ var nr = ae(
1868
+ i.thrownErrors
1869
+ );
1870
+ i.thrownErrors.length = 0, le(nr);
1871
+ }
1872
+ } else B(pe);
1873
+ },
1874
+ function(pe) {
1875
+ re(n, m), 0 < i.thrownErrors.length && (pe = ae(
1876
+ i.thrownErrors
1877
+ ), i.thrownErrors.length = 0), le(pe);
1878
+ }
1879
+ );
1880
+ }
1881
+ };
1882
+ }
1883
+ var Z = X;
1884
+ if (re(n, m), m === 0 && (ue(O), O.length !== 0 && mt(function() {
1885
+ k || Se || (Se = !0, console.error(
1886
+ "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(() => ...)"
1887
+ ));
1888
+ }), i.actQueue = null), 0 < i.thrownErrors.length)
1889
+ throw e = ae(i.thrownErrors), i.thrownErrors.length = 0, e;
1890
+ return {
1891
+ then: function(B, le) {
1892
+ k = !0, m === 0 ? (i.actQueue = O, te(function() {
1893
+ return oe(
1894
+ Z,
1895
+ B,
1896
+ le
1897
+ );
1898
+ })) : B(Z);
1899
+ }
1900
+ };
1901
+ }, a.cache = function(e) {
1902
+ return function() {
1903
+ return e.apply(null, arguments);
1904
+ };
1905
+ }, a.cacheSignal = function() {
1906
+ return null;
1907
+ }, a.captureOwnerStack = function() {
1908
+ var e = i.getCurrentStack;
1909
+ return e === null ? null : e();
1910
+ }, a.cloneElement = function(e, n, m) {
1911
+ if (e == null)
1912
+ throw Error(
1913
+ "The argument must be a React element, but you passed " + e + "."
1914
+ );
1915
+ var O = de({}, e.props), k = e.key, X = e._owner;
1916
+ if (n != null) {
1917
+ var W;
1918
+ e: {
1919
+ if (_.call(n, "ref") && (W = Object.getOwnPropertyDescriptor(
1920
+ n,
1921
+ "ref"
1922
+ ).get) && W.isReactWarning) {
1923
+ W = !1;
1924
+ break e;
1925
+ }
1926
+ W = n.ref !== void 0;
1927
+ }
1928
+ W && (X = G()), S(n) && (v(n.key), k = "" + n.key);
1929
+ for (Z in n)
1930
+ !_.call(n, Z) || Z === "key" || Z === "__self" || Z === "__source" || Z === "ref" && n.ref === void 0 || (O[Z] = n[Z]);
1931
+ }
1932
+ var Z = arguments.length - 2;
1933
+ if (Z === 1) O.children = m;
1934
+ else if (1 < Z) {
1935
+ W = Array(Z);
1936
+ for (var B = 0; B < Z; B++)
1937
+ W[B] = arguments[B + 2];
1938
+ O.children = W;
1939
+ }
1940
+ for (O = A(
1941
+ e.type,
1942
+ k,
1943
+ O,
1944
+ X,
1945
+ e._debugStack,
1946
+ e._debugTask
1947
+ ), k = 2; k < arguments.length; k++)
1948
+ D(arguments[k]);
1949
+ return O;
1950
+ }, a.createContext = function(e) {
1951
+ return e = {
1952
+ $$typeof: $,
1953
+ _currentValue: e,
1954
+ _currentValue2: e,
1955
+ _threadCount: 0,
1956
+ Provider: null,
1957
+ Consumer: null
1958
+ }, e.Provider = e, e.Consumer = {
1959
+ $$typeof: I,
1960
+ _context: e
1961
+ }, e._currentRenderer = null, e._currentRenderer2 = null, e;
1962
+ }, a.createElement = function(e, n, m) {
1963
+ for (var O = 2; O < arguments.length; O++)
1964
+ D(arguments[O]);
1965
+ O = {};
1966
+ var k = null;
1967
+ if (n != null)
1968
+ for (B in Q || !("__self" in n) || "key" in n || (Q = !0, console.warn(
1969
+ "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"
1970
+ )), S(n) && (v(n.key), k = "" + n.key), n)
1971
+ _.call(n, B) && B !== "key" && B !== "__self" && B !== "__source" && (O[B] = n[B]);
1972
+ var X = arguments.length - 2;
1973
+ if (X === 1) O.children = m;
1974
+ else if (1 < X) {
1975
+ for (var W = Array(X), Z = 0; Z < X; Z++)
1976
+ W[Z] = arguments[Z + 2];
1977
+ Object.freeze && Object.freeze(W), O.children = W;
1978
+ }
1979
+ if (e && e.defaultProps)
1980
+ for (B in X = e.defaultProps, X)
1981
+ O[B] === void 0 && (O[B] = X[B]);
1982
+ k && C(
1983
+ O,
1984
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
1985
+ );
1986
+ var B = 1e4 > i.recentlyCreatedOwnerStacks++;
1987
+ return A(
1988
+ e,
1989
+ k,
1990
+ O,
1991
+ G(),
1992
+ B ? Error("react-stack-top-frame") : tr,
1993
+ B ? x(j(e)) : rr
1994
+ );
1995
+ }, a.createRef = function() {
1996
+ var e = { current: null };
1997
+ return Object.seal(e), e;
1998
+ }, a.forwardRef = function(e) {
1999
+ e != null && e.$$typeof === V ? console.error(
2000
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
2001
+ ) : typeof e != "function" ? console.error(
2002
+ "forwardRef requires a render function but was given %s.",
2003
+ e === null ? "null" : typeof e
2004
+ ) : e.length !== 0 && e.length !== 2 && console.error(
2005
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
2006
+ e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
2007
+ ), e != null && e.defaultProps != null && console.error(
2008
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
2009
+ );
2010
+ var n = { $$typeof: Y, render: e }, m;
2011
+ return Object.defineProperty(n, "displayName", {
2012
+ enumerable: !1,
2013
+ configurable: !0,
2014
+ get: function() {
2015
+ return m;
2016
+ },
2017
+ set: function(O) {
2018
+ m = O, e.name || e.displayName || (Object.defineProperty(e, "name", { value: O }), e.displayName = O);
2019
+ }
2020
+ }), n;
2021
+ }, a.isValidElement = t, a.lazy = function(e) {
2022
+ e = { _status: -1, _result: e };
2023
+ var n = {
2024
+ $$typeof: ce,
2025
+ _payload: e,
2026
+ _init: F
2027
+ }, m = {
2028
+ name: "lazy",
2029
+ start: -1,
2030
+ end: -1,
2031
+ value: null,
2032
+ owner: null,
2033
+ debugStack: Error("react-stack-top-frame"),
2034
+ debugTask: console.createTask ? console.createTask("lazy()") : null
2035
+ };
2036
+ return e._ioInfo = m, n._debugInfo = [{ awaited: m }], n;
2037
+ }, a.memo = function(e, n) {
2038
+ e == null && console.error(
2039
+ "memo: The first argument must be a component. Instead received: %s",
2040
+ e === null ? "null" : typeof e
2041
+ ), n = {
2042
+ $$typeof: V,
2043
+ type: e,
2044
+ compare: n === void 0 ? null : n
2045
+ };
2046
+ var m;
2047
+ return Object.defineProperty(n, "displayName", {
2048
+ enumerable: !1,
2049
+ configurable: !0,
2050
+ get: function() {
2051
+ return m;
2052
+ },
2053
+ set: function(O) {
2054
+ m = O, e.name || e.displayName || (Object.defineProperty(e, "name", { value: O }), e.displayName = O);
2055
+ }
2056
+ }), n;
2057
+ }, a.startTransition = function(e) {
2058
+ var n = i.T, m = {};
2059
+ m._updatedFibers = /* @__PURE__ */ new Set(), i.T = m;
2060
+ try {
2061
+ var O = e(), k = i.S;
2062
+ k !== null && k(m, O), typeof O == "object" && O !== null && typeof O.then == "function" && (i.asyncTransitions++, O.then(J, J), O.then(d, ht));
2063
+ } catch (X) {
2064
+ ht(X);
2065
+ } finally {
2066
+ n === null && m._updatedFibers && (e = m._updatedFibers.size, m._updatedFibers.clear(), 10 < e && console.warn(
2067
+ "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."
2068
+ )), n !== null && m.types !== null && (n.types !== null && n.types !== m.types && console.error(
2069
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
2070
+ ), n.types = m.types), i.T = n;
2071
+ }
2072
+ }, a.unstable_useCacheRefresh = function() {
2073
+ return H().useCacheRefresh();
2074
+ }, a.use = function(e) {
2075
+ return H().use(e);
2076
+ }, a.useActionState = function(e, n, m) {
2077
+ return H().useActionState(
2078
+ e,
2079
+ n,
2080
+ m
2081
+ );
2082
+ }, a.useCallback = function(e, n) {
2083
+ return H().useCallback(e, n);
2084
+ }, a.useContext = function(e) {
2085
+ var n = H();
2086
+ return e.$$typeof === I && console.error(
2087
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
2088
+ ), n.useContext(e);
2089
+ }, a.useDebugValue = function(e, n) {
2090
+ return H().useDebugValue(e, n);
2091
+ }, a.useDeferredValue = function(e, n) {
2092
+ return H().useDeferredValue(e, n);
2093
+ }, a.useEffect = function(e, n) {
2094
+ return e == null && console.warn(
2095
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
2096
+ ), H().useEffect(e, n);
2097
+ }, a.useEffectEvent = function(e) {
2098
+ return H().useEffectEvent(e);
2099
+ }, a.useId = function() {
2100
+ return H().useId();
2101
+ }, a.useImperativeHandle = function(e, n, m) {
2102
+ return H().useImperativeHandle(e, n, m);
2103
+ }, a.useInsertionEffect = function(e, n) {
2104
+ return e == null && console.warn(
2105
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
2106
+ ), H().useInsertionEffect(e, n);
2107
+ }, a.useLayoutEffect = function(e, n) {
2108
+ return e == null && console.warn(
2109
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
2110
+ ), H().useLayoutEffect(e, n);
2111
+ }, a.useMemo = function(e, n) {
2112
+ return H().useMemo(e, n);
2113
+ }, a.useOptimistic = function(e, n) {
2114
+ return H().useOptimistic(e, n);
2115
+ }, a.useReducer = function(e, n, m) {
2116
+ return H().useReducer(e, n, m);
2117
+ }, a.useRef = function(e) {
2118
+ return H().useRef(e);
2119
+ }, a.useState = function(e) {
2120
+ return H().useState(e);
2121
+ }, a.useSyncExternalStore = function(e, n, m) {
2122
+ return H().useSyncExternalStore(
2123
+ e,
2124
+ n,
2125
+ m
2126
+ );
2127
+ }, a.useTransition = function() {
2128
+ return H().useTransition();
2129
+ }, a.version = "19.2.3", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
2130
+ })();
2131
+ })(_e, _e.exports)), _e.exports;
2132
+ }
2133
+ var Pt;
2134
+ function Zt() {
2135
+ return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Ce.exports = dr() : Ce.exports = pr()), Ce.exports;
2136
+ }
2137
+ var ke = { exports: {} }, jt;
2138
+ function Vt() {
2139
+ return jt || (jt = 1, (function(h, a) {
2140
+ Object.defineProperty(a, "__esModule", {
2141
+ value: !0
2142
+ });
2143
+ function E(c, p) {
2144
+ for (var d in p) Object.defineProperty(c, d, {
2145
+ enumerable: !0,
2146
+ get: p[d]
2147
+ });
2148
+ }
2149
+ E(a, {
2150
+ DynamicServerError: function() {
2151
+ return R;
2152
+ },
2153
+ isDynamicServerError: function() {
2154
+ return w;
2155
+ }
2156
+ });
2157
+ const b = "DYNAMIC_SERVER_USAGE";
2158
+ class R extends Error {
2159
+ constructor(p) {
2160
+ super(`Dynamic server usage: ${p}`), this.description = p, this.digest = b;
2161
+ }
2162
+ }
2163
+ function w(c) {
2164
+ return typeof c != "object" || c === null || !("digest" in c) || typeof c.digest != "string" ? !1 : c.digest === b;
2165
+ }
2166
+ (typeof a.default == "function" || typeof a.default == "object" && a.default !== null) && typeof a.default.__esModule > "u" && (Object.defineProperty(a.default, "__esModule", { value: !0 }), Object.assign(a.default, a), h.exports = a.default);
2167
+ })(ke, ke.exports)), ke.exports;
2168
+ }
2169
+ var Pe = { exports: {} }, Nt;
2170
+ function Re() {
2171
+ return Nt || (Nt = 1, (function(h, a) {
2172
+ Object.defineProperty(a, "__esModule", {
2173
+ value: !0
2174
+ });
2175
+ function E(c, p) {
2176
+ for (var d in p) Object.defineProperty(c, d, {
2177
+ enumerable: !0,
2178
+ get: p[d]
2179
+ });
2180
+ }
2181
+ E(a, {
2182
+ StaticGenBailoutError: function() {
2183
+ return R;
2184
+ },
2185
+ isStaticGenBailoutError: function() {
2186
+ return w;
2187
+ }
2188
+ });
2189
+ const b = "NEXT_STATIC_GEN_BAILOUT";
2190
+ class R extends Error {
2191
+ constructor(...p) {
2192
+ super(...p), this.code = b;
2193
+ }
2194
+ }
2195
+ function w(c) {
2196
+ return typeof c != "object" || c === null || !("code" in c) ? !1 : c.code === b;
2197
+ }
2198
+ (typeof a.default == "function" || typeof a.default == "object" && a.default !== null) && typeof a.default.__esModule > "u" && (Object.defineProperty(a.default, "__esModule", { value: !0 }), Object.assign(a.default, a), h.exports = a.default);
2199
+ })(Pe, Pe.exports)), Pe.exports;
2200
+ }
2201
+ var Fe = {}, It;
2202
+ function ut() {
2203
+ return It || (It = 1, (function(h) {
2204
+ Object.defineProperty(h, "__esModule", {
2205
+ value: !0
2206
+ });
2207
+ function a(s, v) {
2208
+ for (var T in v) Object.defineProperty(s, T, {
2209
+ enumerable: !0,
2210
+ get: v[T]
2211
+ });
2212
+ }
2213
+ a(h, {
2214
+ isHangingPromiseRejectionError: function() {
2215
+ return E;
2216
+ },
2217
+ makeDevtoolsIOAwarePromise: function() {
2218
+ return d;
2219
+ },
2220
+ makeHangingPromise: function() {
2221
+ return c;
2222
+ }
2223
+ });
2224
+ function E(s) {
2225
+ return typeof s != "object" || s === null || !("digest" in s) ? !1 : s.digest === b;
2226
+ }
2227
+ const b = "HANGING_PROMISE_REJECTION";
2228
+ class R extends Error {
2229
+ constructor(v, T) {
2230
+ super(`During prerendering, ${T} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${T} 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 "${v}".`), this.route = v, this.expression = T, this.digest = b;
2231
+ }
2232
+ }
2233
+ const w = /* @__PURE__ */ new WeakMap();
2234
+ function c(s, v, T) {
2235
+ if (s.aborted)
2236
+ return Promise.reject(new R(v, T));
2237
+ {
2238
+ const j = new Promise((G, L) => {
2239
+ const S = L.bind(null, new R(v, T));
2240
+ let C = w.get(s);
2241
+ if (C)
2242
+ C.push(S);
2243
+ else {
2244
+ const P = [
2245
+ S
2246
+ ];
2247
+ w.set(s, P), s.addEventListener("abort", () => {
2248
+ for (let A = 0; A < P.length; A++)
2249
+ P[A]();
2250
+ }, {
2251
+ once: !0
2252
+ });
2253
+ }
2254
+ });
2255
+ return j.catch(p), j;
2256
+ }
2257
+ }
2258
+ function p() {
2259
+ }
2260
+ function d(s, v, T) {
2261
+ return v.stagedRendering ? v.stagedRendering.delayUntilStage(T, void 0, s) : new Promise((j) => {
2262
+ setTimeout(() => {
2263
+ j(s);
2264
+ }, 0);
2265
+ });
2266
+ }
2267
+ })(Fe)), Fe;
2268
+ }
2269
+ var ze = {}, Mt;
2270
+ function hr() {
2271
+ return Mt || (Mt = 1, (function(h) {
2272
+ Object.defineProperty(h, "__esModule", {
2273
+ value: !0
2274
+ });
2275
+ function a(c, p) {
2276
+ for (var d in p) Object.defineProperty(c, d, {
2277
+ enumerable: !0,
2278
+ get: p[d]
2279
+ });
2280
+ }
2281
+ a(h, {
2282
+ METADATA_BOUNDARY_NAME: function() {
2283
+ return E;
2284
+ },
2285
+ OUTLET_BOUNDARY_NAME: function() {
2286
+ return R;
2287
+ },
2288
+ ROOT_LAYOUT_BOUNDARY_NAME: function() {
2289
+ return w;
2290
+ },
2291
+ VIEWPORT_BOUNDARY_NAME: function() {
2292
+ return b;
2293
+ }
2294
+ });
2295
+ const E = "__next_metadata_boundary__", b = "__next_viewport_boundary__", R = "__next_outlet_boundary__", w = "__next_root_layout_boundary__";
2296
+ })(ze)), ze;
2297
+ }
2298
+ var Qe = {}, Ht;
2299
+ function yr() {
2300
+ return Ht || (Ht = 1, (function(h) {
2301
+ Object.defineProperty(h, "__esModule", {
2302
+ value: !0
2303
+ });
2304
+ function a(c, p) {
2305
+ for (var d in p) Object.defineProperty(c, d, {
2306
+ enumerable: !0,
2307
+ get: p[d]
2308
+ });
2309
+ }
2310
+ a(h, {
2311
+ atLeastOneTask: function() {
2312
+ return R;
2313
+ },
2314
+ scheduleImmediate: function() {
2315
+ return b;
2316
+ },
2317
+ scheduleOnNextTick: function() {
2318
+ return E;
2319
+ },
2320
+ waitAtLeastOneReactRenderTask: function() {
2321
+ return w;
2322
+ }
2323
+ });
2324
+ const E = (c) => {
2325
+ Promise.resolve().then(() => {
2326
+ process.env.NEXT_RUNTIME === "edge" ? setTimeout(c, 0) : process.nextTick(c);
2327
+ });
2328
+ }, b = (c) => {
2329
+ process.env.NEXT_RUNTIME === "edge" ? setTimeout(c, 0) : setImmediate(c);
2330
+ };
2331
+ function R() {
2332
+ return new Promise((c) => b(c));
2333
+ }
2334
+ function w() {
2335
+ return process.env.NEXT_RUNTIME === "edge" ? new Promise((c) => setTimeout(c, 0)) : new Promise((c) => setImmediate(c));
2336
+ }
2337
+ })(Qe)), Qe;
2338
+ }
2339
+ var Ke = {}, xt;
2340
+ function mr() {
2341
+ return xt || (xt = 1, (function(h) {
2342
+ Object.defineProperty(h, "__esModule", {
2343
+ value: !0
2344
+ });
2345
+ function a(w, c) {
2346
+ for (var p in c) Object.defineProperty(w, p, {
2347
+ enumerable: !0,
2348
+ get: c[p]
2349
+ });
2350
+ }
2351
+ a(h, {
2352
+ BailoutToCSRError: function() {
2353
+ return b;
2354
+ },
2355
+ isBailoutToCSRError: function() {
2356
+ return R;
2357
+ }
2358
+ });
2359
+ const E = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
2360
+ class b extends Error {
2361
+ constructor(c) {
2362
+ super(`Bail out to client-side rendering: ${c}`), this.reason = c, this.digest = E;
2363
+ }
2364
+ }
2365
+ function R(w) {
2366
+ return typeof w != "object" || w === null || !("digest" in w) ? !1 : w.digest === E;
2367
+ }
2368
+ })(Ke)), Ke;
2369
+ }
2370
+ var qt;
2371
+ function ct() {
2372
+ return qt || (qt = 1, (function(h) {
2373
+ Object.defineProperty(h, "__esModule", {
2374
+ value: !0
2375
+ });
2376
+ function a(f, i) {
2377
+ for (var _ in i) Object.defineProperty(f, _, {
2378
+ enumerable: !0,
2379
+ get: i[_]
2380
+ });
2381
+ }
2382
+ a(h, {
2383
+ Postpone: function() {
2384
+ return o;
2385
+ },
2386
+ PreludeState: function() {
2387
+ return we;
2388
+ },
2389
+ abortAndThrowOnSynchronousRequestDataAccess: function() {
2390
+ return l;
2391
+ },
2392
+ abortOnSynchronousPlatformIOAccess: function() {
2393
+ return t;
2394
+ },
2395
+ accessedDynamicData: function() {
2396
+ return ae;
2397
+ },
2398
+ annotateDynamicAccess: function() {
2399
+ return r;
2400
+ },
2401
+ consumeDynamicAccess: function() {
2402
+ return re;
2403
+ },
2404
+ createDynamicTrackingState: function() {
2405
+ return L;
2406
+ },
2407
+ createDynamicValidationState: function() {
2408
+ return S;
2409
+ },
2410
+ createHangingInputAbortSignal: function() {
2411
+ return fe;
2412
+ },
2413
+ createRenderInBrowserAbortSignal: function() {
2414
+ return se;
2415
+ },
2416
+ delayUntilRuntimeStage: function() {
2417
+ return Oe;
2418
+ },
2419
+ formatDynamicAPIAccesses: function() {
2420
+ return oe;
2421
+ },
2422
+ getFirstDynamicReason: function() {
2423
+ return C;
2424
+ },
2425
+ getStaticShellDisallowedDynamicReasons: function() {
2426
+ return ne;
2427
+ },
2428
+ isDynamicPostpone: function() {
2429
+ return M;
2430
+ },
2431
+ isPrerenderInterruptedError: function() {
2432
+ return te;
2433
+ },
2434
+ logDisallowedDynamicError: function() {
2435
+ return de;
2436
+ },
2437
+ markCurrentScopeAsDynamic: function() {
2438
+ return P;
2439
+ },
2440
+ postponeWithTracking: function() {
2441
+ return u;
2442
+ },
2443
+ throwIfDisallowedDynamic: function() {
2444
+ return ye;
2445
+ },
2446
+ throwToInterruptStaticGeneration: function() {
2447
+ return A;
2448
+ },
2449
+ trackAllowedDynamicAccess: function() {
2450
+ return ce;
2451
+ },
2452
+ trackDynamicDataInDynamicRender: function() {
2453
+ return N;
2454
+ },
2455
+ trackDynamicHoleInRuntimeShell: function() {
2456
+ return be;
2457
+ },
2458
+ trackDynamicHoleInStaticShell: function() {
2459
+ return ve;
2460
+ },
2461
+ useDynamicRouteParams: function() {
2462
+ return y;
2463
+ },
2464
+ useDynamicSearchParams: function() {
2465
+ return q;
2466
+ }
2467
+ });
2468
+ const E = /* @__PURE__ */ j(Zt()), b = Vt(), R = Re(), w = je(), c = Ee(), p = ut(), d = hr(), s = yr(), v = mr(), T = he();
2469
+ function j(f) {
2470
+ return f && f.__esModule ? f : {
2471
+ default: f
2472
+ };
2473
+ }
2474
+ const G = typeof E.default.unstable_postpone == "function";
2475
+ function L(f) {
2476
+ return {
2477
+ isDebugDynamicAccesses: f,
2478
+ dynamicAccesses: [],
2479
+ syncDynamicErrorWithStack: null
2480
+ };
2481
+ }
2482
+ function S() {
2483
+ return {
2484
+ hasSuspenseAboveBody: !1,
2485
+ hasDynamicMetadata: !1,
2486
+ dynamicMetadata: null,
2487
+ hasDynamicViewport: !1,
2488
+ hasAllowedDynamic: !1,
2489
+ dynamicErrors: []
2490
+ };
2491
+ }
2492
+ function C(f) {
2493
+ var i;
2494
+ return (i = f.dynamicAccesses[0]) == null ? void 0 : i.expression;
2495
+ }
2496
+ function P(f, i, _) {
2497
+ if (i)
2498
+ switch (i.type) {
2499
+ case "cache":
2500
+ case "unstable-cache":
2501
+ return;
2502
+ case "private-cache":
2503
+ return;
2504
+ }
2505
+ if (!(f.forceDynamic || f.forceStatic)) {
2506
+ if (f.dynamicShouldError)
2507
+ throw Object.defineProperty(new R.StaticGenBailoutError(`Route ${f.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${_}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
2508
+ value: "E553",
2509
+ enumerable: !1,
2510
+ configurable: !0
2511
+ });
2512
+ if (i)
2513
+ switch (i.type) {
2514
+ case "prerender-ppr":
2515
+ return u(f.route, _, i.dynamicTracking);
2516
+ case "prerender-legacy":
2517
+ i.revalidate = 0;
2518
+ const x = Object.defineProperty(new b.DynamicServerError(`Route ${f.route} couldn't be rendered statically because it used ${_}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
2519
+ value: "E550",
2520
+ enumerable: !1,
2521
+ configurable: !0
2522
+ });
2523
+ throw f.dynamicUsageDescription = _, f.dynamicUsageStack = x.stack, x;
2524
+ case "request":
2525
+ process.env.NODE_ENV !== "production" && (i.usedDynamic = !0);
2526
+ break;
2527
+ }
2528
+ }
2529
+ }
2530
+ function A(f, i, _) {
2531
+ const x = Object.defineProperty(new b.DynamicServerError(`Route ${i.route} couldn't be rendered statically because it used \`${f}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
2532
+ value: "E558",
2533
+ enumerable: !1,
2534
+ configurable: !0
2535
+ });
2536
+ throw _.revalidate = 0, i.dynamicUsageDescription = f, i.dynamicUsageStack = x.stack, x;
2537
+ }
2538
+ function N(f) {
2539
+ switch (f.type) {
2540
+ case "cache":
2541
+ case "unstable-cache":
2542
+ return;
2543
+ case "private-cache":
2544
+ return;
2545
+ case "prerender":
2546
+ case "prerender-runtime":
2547
+ case "prerender-legacy":
2548
+ case "prerender-ppr":
2549
+ case "prerender-client":
2550
+ break;
2551
+ case "request":
2552
+ process.env.NODE_ENV !== "production" && (f.usedDynamic = !0);
2553
+ break;
2554
+ }
2555
+ }
2556
+ function D(f, i, _) {
2557
+ const x = `Route ${f} needs to bail out of prerendering at this point because it used ${i}.`, K = J(x);
2558
+ _.controller.abort(K);
2559
+ const Q = _.dynamicTracking;
2560
+ Q && Q.dynamicAccesses.push({
2561
+ // When we aren't debugging, we don't need to create another error for the
2562
+ // stack trace.
2563
+ stack: Q.isDebugDynamicAccesses ? new Error().stack : void 0,
2564
+ expression: i
2565
+ });
2566
+ }
2567
+ function t(f, i, _, x) {
2568
+ const K = x.dynamicTracking;
2569
+ D(f, i, x), K && K.syncDynamicErrorWithStack === null && (K.syncDynamicErrorWithStack = _);
2570
+ }
2571
+ function l(f, i, _, x) {
2572
+ if (x.controller.signal.aborted === !1) {
2573
+ D(f, i, x);
2574
+ const Q = x.dynamicTracking;
2575
+ Q && Q.syncDynamicErrorWithStack === null && (Q.syncDynamicErrorWithStack = _);
2576
+ }
2577
+ throw J(`Route ${f} needs to bail out of prerendering at this point because it used ${i}.`);
2578
+ }
2579
+ function o({ reason: f, route: i }) {
2580
+ const _ = w.workUnitAsyncStorage.getStore(), x = _ && _.type === "prerender-ppr" ? _.dynamicTracking : null;
2581
+ u(i, f, x);
2582
+ }
2583
+ function u(f, i, _) {
2584
+ ue(), _ && _.dynamicAccesses.push({
2585
+ // When we aren't debugging, we don't need to create another error for the
2586
+ // stack trace.
2587
+ stack: _.isDebugDynamicAccesses ? new Error().stack : void 0,
2588
+ expression: i
2589
+ }), E.default.unstable_postpone(g(f, i));
2590
+ }
2591
+ function g(f, i) {
2592
+ return `Route ${f} needs to bail out of prerendering at this point because it used ${i}. 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`;
2593
+ }
2594
+ function M(f) {
2595
+ return typeof f == "object" && f !== null && typeof f.message == "string" ? F(f.message) : !1;
2596
+ }
2597
+ function F(f) {
2598
+ return f.includes("needs to bail out of prerendering at this point because it used") && f.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
2599
+ }
2600
+ if (F(g("%%%", "^^^")) === !1)
2601
+ throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
2602
+ value: "E296",
2603
+ enumerable: !1,
2604
+ configurable: !0
2605
+ });
2606
+ const H = "NEXT_PRERENDER_INTERRUPTED";
2607
+ function J(f) {
2608
+ const i = Object.defineProperty(new Error(f), "__NEXT_ERROR_CODE", {
2609
+ value: "E394",
2610
+ enumerable: !1,
2611
+ configurable: !0
2612
+ });
2613
+ return i.digest = H, i;
2614
+ }
2615
+ function te(f) {
2616
+ return typeof f == "object" && f !== null && f.digest === H && "name" in f && "message" in f && f instanceof Error;
2617
+ }
2618
+ function ae(f) {
2619
+ return f.length > 0;
2620
+ }
2621
+ function re(f, i) {
2622
+ return f.dynamicAccesses.push(...i.dynamicAccesses), f.dynamicAccesses;
2623
+ }
2624
+ function oe(f) {
2625
+ return f.filter((i) => typeof i.stack == "string" && i.stack.length > 0).map(({ expression: i, stack: _ }) => (_ = _.split(`
2626
+ `).slice(4).filter((x) => !(x.includes("node_modules/next/") || x.includes(" (<anonymous>)") || x.includes(" (node:"))).join(`
2627
+ `), `Dynamic API Usage Debug - ${i}:
2628
+ ${_}`));
2629
+ }
2630
+ function ue() {
2631
+ if (!G)
2632
+ 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", {
2633
+ value: "E224",
2634
+ enumerable: !1,
2635
+ configurable: !0
2636
+ });
2637
+ }
2638
+ function se() {
2639
+ const f = new AbortController();
2640
+ return f.abort(Object.defineProperty(new v.BailoutToCSRError("Render in Browser"), "__NEXT_ERROR_CODE", {
2641
+ value: "E721",
2642
+ enumerable: !1,
2643
+ configurable: !0
2644
+ })), f.signal;
2645
+ }
2646
+ function fe(f) {
2647
+ switch (f.type) {
2648
+ case "prerender":
2649
+ case "prerender-runtime":
2650
+ const i = new AbortController();
2651
+ if (f.cacheSignal)
2652
+ f.cacheSignal.inputReady().then(() => {
2653
+ i.abort();
2654
+ });
2655
+ else {
2656
+ const _ = (0, w.getRuntimeStagePromise)(f);
2657
+ _ ? _.then(() => (0, s.scheduleOnNextTick)(() => i.abort())) : (0, s.scheduleOnNextTick)(() => i.abort());
2658
+ }
2659
+ return i.signal;
2660
+ case "prerender-client":
2661
+ case "prerender-ppr":
2662
+ case "prerender-legacy":
2663
+ case "request":
2664
+ case "cache":
2665
+ case "private-cache":
2666
+ case "unstable-cache":
2667
+ return;
2668
+ }
2669
+ }
2670
+ function r(f, i) {
2671
+ const _ = i.dynamicTracking;
2672
+ _ && _.dynamicAccesses.push({
2673
+ stack: _.isDebugDynamicAccesses ? new Error().stack : void 0,
2674
+ expression: f
2675
+ });
2676
+ }
2677
+ function y(f) {
2678
+ const i = c.workAsyncStorage.getStore(), _ = w.workUnitAsyncStorage.getStore();
2679
+ if (i && _)
2680
+ switch (_.type) {
2681
+ case "prerender-client":
2682
+ case "prerender": {
2683
+ const x = _.fallbackRouteParams;
2684
+ x && x.size > 0 && E.default.use((0, p.makeHangingPromise)(_.renderSignal, i.route, f));
2685
+ break;
2686
+ }
2687
+ case "prerender-ppr": {
2688
+ const x = _.fallbackRouteParams;
2689
+ if (x && x.size > 0)
2690
+ return u(i.route, f, _.dynamicTracking);
2691
+ break;
2692
+ }
2693
+ case "prerender-runtime":
2694
+ throw Object.defineProperty(new T.InvariantError(`\`${f}\` was called during a runtime prerender. Next.js should be preventing ${f} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
2695
+ value: "E771",
2696
+ enumerable: !1,
2697
+ configurable: !0
2698
+ });
2699
+ case "cache":
2700
+ case "private-cache":
2701
+ throw Object.defineProperty(new T.InvariantError(`\`${f}\` was called inside a cache scope. Next.js should be preventing ${f} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
2702
+ value: "E745",
2703
+ enumerable: !1,
2704
+ configurable: !0
2705
+ });
2706
+ }
2707
+ }
2708
+ function q(f) {
2709
+ const i = c.workAsyncStorage.getStore(), _ = w.workUnitAsyncStorage.getStore();
2710
+ if (i)
2711
+ switch (_ || (0, w.throwForMissingRequestStore)(f), _.type) {
2712
+ case "prerender-client": {
2713
+ E.default.use((0, p.makeHangingPromise)(_.renderSignal, i.route, f));
2714
+ break;
2715
+ }
2716
+ case "prerender-legacy":
2717
+ case "prerender-ppr": {
2718
+ if (i.forceStatic)
2719
+ return;
2720
+ throw Object.defineProperty(new v.BailoutToCSRError(f), "__NEXT_ERROR_CODE", {
2721
+ value: "E394",
2722
+ enumerable: !1,
2723
+ configurable: !0
2724
+ });
2725
+ }
2726
+ case "prerender":
2727
+ case "prerender-runtime":
2728
+ throw Object.defineProperty(new T.InvariantError(`\`${f}\` was called from a Server Component. Next.js should be preventing ${f} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
2729
+ value: "E795",
2730
+ enumerable: !1,
2731
+ configurable: !0
2732
+ });
2733
+ case "cache":
2734
+ case "unstable-cache":
2735
+ case "private-cache":
2736
+ throw Object.defineProperty(new T.InvariantError(`\`${f}\` was called inside a cache scope. Next.js should be preventing ${f} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
2737
+ value: "E745",
2738
+ enumerable: !1,
2739
+ configurable: !0
2740
+ });
2741
+ case "request":
2742
+ return;
2743
+ }
2744
+ }
2745
+ const I = /\n\s+at Suspense \(<anonymous>\)/, $ = "body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6", Y = new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${$}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${d.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`), z = new RegExp(`\\n\\s+at ${d.METADATA_BOUNDARY_NAME}[\\n\\s]`), ee = new RegExp(`\\n\\s+at ${d.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), V = new RegExp(`\\n\\s+at ${d.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
2746
+ function ce(f, i, _, x) {
2747
+ if (!V.test(i))
2748
+ if (z.test(i)) {
2749
+ _.hasDynamicMetadata = !0;
2750
+ return;
2751
+ } else if (ee.test(i)) {
2752
+ _.hasDynamicViewport = !0;
2753
+ return;
2754
+ } else if (Y.test(i)) {
2755
+ _.hasAllowedDynamic = !0, _.hasSuspenseAboveBody = !0;
2756
+ return;
2757
+ } else if (I.test(i)) {
2758
+ _.hasAllowedDynamic = !0;
2759
+ return;
2760
+ } else if (x.syncDynamicErrorWithStack) {
2761
+ _.dynamicErrors.push(x.syncDynamicErrorWithStack);
2762
+ return;
2763
+ } else {
2764
+ const K = `Route "${f.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`, Q = ie(K, i);
2765
+ _.dynamicErrors.push(Q);
2766
+ return;
2767
+ }
2768
+ }
2769
+ function be(f, i, _, x) {
2770
+ if (!V.test(i))
2771
+ if (z.test(i)) {
2772
+ const K = `Route "${f.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`, Q = ie(K, i);
2773
+ _.dynamicMetadata = Q;
2774
+ return;
2775
+ } else if (ee.test(i)) {
2776
+ const K = `Route "${f.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`, Q = ie(K, i);
2777
+ _.dynamicErrors.push(Q);
2778
+ return;
2779
+ } else if (Y.test(i)) {
2780
+ _.hasAllowedDynamic = !0, _.hasSuspenseAboveBody = !0;
2781
+ return;
2782
+ } else if (I.test(i)) {
2783
+ _.hasAllowedDynamic = !0;
2784
+ return;
2785
+ } else if (x.syncDynamicErrorWithStack) {
2786
+ _.dynamicErrors.push(x.syncDynamicErrorWithStack);
2787
+ return;
2788
+ } else {
2789
+ const K = `Route "${f.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`, Q = ie(K, i);
2790
+ _.dynamicErrors.push(Q);
2791
+ return;
2792
+ }
2793
+ }
2794
+ function ve(f, i, _, x) {
2795
+ if (!V.test(i))
2796
+ if (z.test(i)) {
2797
+ const K = `Route "${f.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`, Q = ie(K, i);
2798
+ _.dynamicMetadata = Q;
2799
+ return;
2800
+ } else if (ee.test(i)) {
2801
+ const K = `Route "${f.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`, Q = ie(K, i);
2802
+ _.dynamicErrors.push(Q);
2803
+ return;
2804
+ } else if (Y.test(i)) {
2805
+ _.hasAllowedDynamic = !0, _.hasSuspenseAboveBody = !0;
2806
+ return;
2807
+ } else if (I.test(i)) {
2808
+ _.hasAllowedDynamic = !0;
2809
+ return;
2810
+ } else if (x.syncDynamicErrorWithStack) {
2811
+ _.dynamicErrors.push(x.syncDynamicErrorWithStack);
2812
+ return;
2813
+ } else {
2814
+ const K = `Route "${f.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`, Q = ie(K, i);
2815
+ _.dynamicErrors.push(Q);
2816
+ return;
2817
+ }
2818
+ }
2819
+ function ie(f, i) {
2820
+ const _ = process.env.NODE_ENV !== "production" && E.default.captureOwnerStack ? E.default.captureOwnerStack() : null, x = Object.defineProperty(new Error(f), "__NEXT_ERROR_CODE", {
2821
+ value: "E394",
2822
+ enumerable: !1,
2823
+ configurable: !0
2824
+ });
2825
+ return x.stack = x.name + ": " + f + (_ || i), x;
2826
+ }
2827
+ var we = /* @__PURE__ */ (function(f) {
2828
+ return f[f.Full = 0] = "Full", f[f.Empty = 1] = "Empty", f[f.Errored = 2] = "Errored", f;
2829
+ })({});
2830
+ function de(f, i) {
2831
+ console.error(i), f.dev || (f.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 "${f.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:
2832
+ - Start the app in development mode by running \`next dev\`, then open "${f.route}" in your browser to investigate the error.
2833
+ - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`));
2834
+ }
2835
+ function ye(f, i, _, x) {
2836
+ if (x.syncDynamicErrorWithStack)
2837
+ throw de(f, x.syncDynamicErrorWithStack), new R.StaticGenBailoutError();
2838
+ if (i !== 0) {
2839
+ if (_.hasSuspenseAboveBody)
2840
+ return;
2841
+ const K = _.dynamicErrors;
2842
+ if (K.length > 0) {
2843
+ for (let Q = 0; Q < K.length; Q++)
2844
+ de(f, K[Q]);
2845
+ throw new R.StaticGenBailoutError();
2846
+ }
2847
+ if (_.hasDynamicViewport)
2848
+ throw console.error(`Route "${f.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 R.StaticGenBailoutError();
2849
+ if (i === 1)
2850
+ throw console.error(`Route "${f.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`), new R.StaticGenBailoutError();
2851
+ } else if (_.hasAllowedDynamic === !1 && _.hasDynamicMetadata)
2852
+ throw console.error(`Route "${f.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 R.StaticGenBailoutError();
2853
+ }
2854
+ function ne(f, i, _) {
2855
+ if (_.hasSuspenseAboveBody)
2856
+ return [];
2857
+ if (i !== 0) {
2858
+ const x = _.dynamicErrors;
2859
+ if (x.length > 0)
2860
+ return x;
2861
+ if (i === 1)
2862
+ return [
2863
+ Object.defineProperty(new T.InvariantError(`Route "${f.route}" did not produce a static shell and Next.js was unable to determine a reason.`), "__NEXT_ERROR_CODE", {
2864
+ value: "E936",
2865
+ enumerable: !1,
2866
+ configurable: !0
2867
+ })
2868
+ ];
2869
+ } else if (_.hasAllowedDynamic === !1 && _.dynamicErrors.length === 0 && _.dynamicMetadata)
2870
+ return [
2871
+ _.dynamicMetadata
2872
+ ];
2873
+ return [];
2874
+ }
2875
+ function Oe(f, i) {
2876
+ return f.runtimeStagePromise ? f.runtimeStagePromise.then(() => i) : i;
2877
+ }
2878
+ })(Ge)), Ge;
2879
+ }
2880
+ var Ze = {}, Lt;
2881
+ function ft() {
2882
+ return Lt || (Lt = 1, (function(h) {
2883
+ Object.defineProperty(h, "__esModule", {
2884
+ value: !0
2885
+ }), Object.defineProperty(h, "createDedupedByCallsiteServerErrorLoggerDev", {
2886
+ enumerable: !0,
2887
+ get: function() {
2888
+ return d;
2889
+ }
2890
+ });
2891
+ const a = /* @__PURE__ */ b(Zt());
2892
+ function E(s) {
2893
+ if (typeof WeakMap != "function") return null;
2894
+ var v = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
2895
+ return (E = function(j) {
2896
+ return j ? T : v;
2897
+ })(s);
2898
+ }
2899
+ function b(s, v) {
2900
+ if (s && s.__esModule)
2901
+ return s;
2902
+ if (s === null || typeof s != "object" && typeof s != "function")
2903
+ return {
2904
+ default: s
2905
+ };
2906
+ var T = E(v);
2907
+ if (T && T.has(s))
2908
+ return T.get(s);
2909
+ var j = {
2910
+ __proto__: null
2911
+ }, G = Object.defineProperty && Object.getOwnPropertyDescriptor;
2912
+ for (var L in s)
2913
+ if (L !== "default" && Object.prototype.hasOwnProperty.call(s, L)) {
2914
+ var S = G ? Object.getOwnPropertyDescriptor(s, L) : null;
2915
+ S && (S.get || S.set) ? Object.defineProperty(j, L, S) : j[L] = s[L];
2916
+ }
2917
+ return j.default = s, T && T.set(s, j), j;
2918
+ }
2919
+ const R = {
2920
+ current: null
2921
+ }, w = typeof a.cache == "function" ? a.cache : (s) => s, c = process.env.__NEXT_CACHE_COMPONENTS ? console.error : console.warn, p = w(
2922
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- cache key
2923
+ (s) => {
2924
+ try {
2925
+ c(R.current);
2926
+ } finally {
2927
+ R.current = null;
2928
+ }
2929
+ }
2930
+ );
2931
+ function d(s) {
2932
+ return function(...T) {
2933
+ const j = s(...T);
2934
+ if (process.env.NODE_ENV !== "production") {
2935
+ var G;
2936
+ const L = (G = new Error().stack) == null ? void 0 : G.split(`
2937
+ `);
2938
+ if (L === void 0 || L.length < 4)
2939
+ c(j);
2940
+ else {
2941
+ const S = L[4];
2942
+ R.current = j, p(S);
2943
+ }
2944
+ } else
2945
+ c(j);
2946
+ };
2947
+ }
2948
+ })(Ze)), Ze;
2949
+ }
2950
+ var Ve = {}, Je = {}, et = {}, Ut;
2951
+ function gr() {
2952
+ return Ut || (Ut = 1, (function(h) {
2953
+ Object.defineProperty(h, "__esModule", {
2954
+ value: !0
2955
+ }), Object.defineProperty(h, "afterTaskAsyncStorageInstance", {
2956
+ enumerable: !0,
2957
+ get: function() {
2958
+ return E;
2959
+ }
2960
+ });
2961
+ const E = (0, it().createAsyncLocalStorage)();
2962
+ })(et)), et;
2963
+ }
2964
+ var Wt;
2965
+ function _r() {
2966
+ return Wt || (Wt = 1, (function(h) {
2967
+ Object.defineProperty(h, "__esModule", {
2968
+ value: !0
2969
+ }), Object.defineProperty(h, "afterTaskAsyncStorage", {
2970
+ enumerable: !0,
2971
+ get: function() {
2972
+ return a.afterTaskAsyncStorageInstance;
2973
+ }
2974
+ });
2975
+ const a = gr();
2976
+ })(Je)), Je;
2977
+ }
2978
+ var Xt;
2979
+ function Jt() {
2980
+ return Xt || (Xt = 1, (function(h) {
2981
+ Object.defineProperty(h, "__esModule", {
2982
+ value: !0
2983
+ });
2984
+ function a(p, d) {
2985
+ for (var s in d) Object.defineProperty(p, s, {
2986
+ enumerable: !0,
2987
+ get: d[s]
2988
+ });
2989
+ }
2990
+ a(h, {
2991
+ isRequestAPICallableInsideAfter: function() {
2992
+ return c;
2993
+ },
2994
+ throwForSearchParamsAccessInUseCache: function() {
2995
+ return w;
2996
+ },
2997
+ throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
2998
+ return R;
2999
+ }
3000
+ });
3001
+ const E = Re(), b = _r();
3002
+ function R(p, d) {
3003
+ throw Object.defineProperty(new E.StaticGenBailoutError(`Route ${p} with \`dynamic = "error"\` couldn't be rendered statically because it used ${d}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
3004
+ value: "E543",
3005
+ enumerable: !1,
3006
+ configurable: !0
3007
+ });
3008
+ }
3009
+ function w(p, d) {
3010
+ const s = Object.defineProperty(new Error(`Route ${p.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
3011
+ value: "E842",
3012
+ enumerable: !1,
3013
+ configurable: !0
3014
+ });
3015
+ throw Error.captureStackTrace(s, d), p.invalidDynamicUsageError ?? (p.invalidDynamicUsageError = s), s;
3016
+ }
3017
+ function c() {
3018
+ const p = b.afterTaskAsyncStorage.getStore();
3019
+ return (p == null ? void 0 : p.rootTaskSpawnPhase) === "action";
3020
+ }
3021
+ })(Ve)), Ve;
3022
+ }
3023
+ var tt = {}, rt = {}, Bt;
3024
+ function Er() {
3025
+ return Bt || (Bt = 1, (function(h) {
3026
+ Object.defineProperty(h, "__esModule", {
3027
+ value: !0
3028
+ }), Object.defineProperty(h, "createPromiseWithResolvers", {
3029
+ enumerable: !0,
3030
+ get: function() {
3031
+ return a;
3032
+ }
3033
+ });
3034
+ function a() {
3035
+ let E, b;
3036
+ const R = new Promise((w, c) => {
3037
+ E = w, b = c;
3038
+ });
3039
+ return {
3040
+ resolve: E,
3041
+ reject: b,
3042
+ promise: R
3043
+ };
3044
+ }
3045
+ })(rt)), rt;
3046
+ }
3047
+ var $t;
3048
+ function er() {
3049
+ return $t || ($t = 1, (function(h) {
3050
+ Object.defineProperty(h, "__esModule", {
3051
+ value: !0
3052
+ });
3053
+ function a(d, s) {
3054
+ for (var v in s) Object.defineProperty(d, v, {
3055
+ enumerable: !0,
3056
+ get: s[v]
3057
+ });
3058
+ }
3059
+ a(h, {
3060
+ RenderStage: function() {
3061
+ return R;
3062
+ },
3063
+ StagedRenderingController: function() {
3064
+ return w;
3065
+ }
3066
+ });
3067
+ const E = he(), b = Er();
3068
+ var R = /* @__PURE__ */ (function(d) {
3069
+ return d[d.Before = 1] = "Before", d[d.Static = 2] = "Static", d[d.Runtime = 3] = "Runtime", d[d.Dynamic = 4] = "Dynamic", d[d.Abandoned = 5] = "Abandoned", d;
3070
+ })({});
3071
+ class w {
3072
+ constructor(s = null, v) {
3073
+ this.abortSignal = s, this.hasRuntimePrefetch = v, this.currentStage = 1, this.staticInterruptReason = null, this.runtimeInterruptReason = null, this.staticStageEndTime = 1 / 0, this.runtimeStageEndTime = 1 / 0, this.runtimeStageListeners = [], this.dynamicStageListeners = [], this.runtimeStagePromise = (0, b.createPromiseWithResolvers)(), this.dynamicStagePromise = (0, b.createPromiseWithResolvers)(), this.mayAbandon = !1, s && (s.addEventListener("abort", () => {
3074
+ const { reason: T } = s;
3075
+ this.currentStage < 3 && (this.runtimeStagePromise.promise.catch(c), this.runtimeStagePromise.reject(T)), (this.currentStage < 4 || this.currentStage === 5) && (this.dynamicStagePromise.promise.catch(c), this.dynamicStagePromise.reject(T));
3076
+ }, {
3077
+ once: !0
3078
+ }), this.mayAbandon = !0);
3079
+ }
3080
+ onStage(s, v) {
3081
+ if (this.currentStage >= s)
3082
+ v();
3083
+ else if (s === 3)
3084
+ this.runtimeStageListeners.push(v);
3085
+ else if (s === 4)
3086
+ this.dynamicStageListeners.push(v);
3087
+ else
3088
+ throw Object.defineProperty(new E.InvariantError(`Invalid render stage: ${s}`), "__NEXT_ERROR_CODE", {
3089
+ value: "E881",
3090
+ enumerable: !1,
3091
+ configurable: !0
3092
+ });
3093
+ }
3094
+ canSyncInterrupt() {
3095
+ if (this.currentStage === 1)
3096
+ return !1;
3097
+ const s = this.hasRuntimePrefetch ? 4 : 3;
3098
+ return this.currentStage < s;
3099
+ }
3100
+ syncInterruptCurrentStageWithReason(s) {
3101
+ if (this.currentStage !== 1) {
3102
+ if (this.mayAbandon)
3103
+ return this.abandonRenderImpl();
3104
+ switch (this.currentStage) {
3105
+ case 2: {
3106
+ this.staticInterruptReason = s, this.advanceStage(4);
3107
+ return;
3108
+ }
3109
+ case 3: {
3110
+ this.hasRuntimePrefetch && (this.runtimeInterruptReason = s, this.advanceStage(4));
3111
+ return;
3112
+ }
3113
+ }
3114
+ }
3115
+ }
3116
+ getStaticInterruptReason() {
3117
+ return this.staticInterruptReason;
3118
+ }
3119
+ getRuntimeInterruptReason() {
3120
+ return this.runtimeInterruptReason;
3121
+ }
3122
+ getStaticStageEndTime() {
3123
+ return this.staticStageEndTime;
3124
+ }
3125
+ getRuntimeStageEndTime() {
3126
+ return this.runtimeStageEndTime;
3127
+ }
3128
+ abandonRender() {
3129
+ if (!this.mayAbandon)
3130
+ throw Object.defineProperty(new E.InvariantError("`abandonRender` called on a stage controller that cannot be abandoned."), "__NEXT_ERROR_CODE", {
3131
+ value: "E938",
3132
+ enumerable: !1,
3133
+ configurable: !0
3134
+ });
3135
+ this.abandonRenderImpl();
3136
+ }
3137
+ abandonRenderImpl() {
3138
+ const { currentStage: s } = this;
3139
+ switch (s) {
3140
+ case 2: {
3141
+ this.currentStage = 5, this.resolveRuntimeStage();
3142
+ return;
3143
+ }
3144
+ case 3: {
3145
+ this.currentStage = 5;
3146
+ return;
3147
+ }
3148
+ }
3149
+ }
3150
+ advanceStage(s) {
3151
+ if (s <= this.currentStage)
3152
+ return;
3153
+ let v = this.currentStage;
3154
+ if (this.currentStage = s, v < 3 && s >= 3 && (this.staticStageEndTime = performance.now() + performance.timeOrigin, this.resolveRuntimeStage()), v < 4 && s >= 4) {
3155
+ this.runtimeStageEndTime = performance.now() + performance.timeOrigin, this.resolveDynamicStage();
3156
+ return;
3157
+ }
3158
+ }
3159
+ /** Fire the `onStage` listeners for the runtime stage and unblock any promises waiting for it. */
3160
+ resolveRuntimeStage() {
3161
+ const s = this.runtimeStageListeners;
3162
+ for (let v = 0; v < s.length; v++)
3163
+ s[v]();
3164
+ s.length = 0, this.runtimeStagePromise.resolve();
3165
+ }
3166
+ /** Fire the `onStage` listeners for the dynamic stage and unblock any promises waiting for it. */
3167
+ resolveDynamicStage() {
3168
+ const s = this.dynamicStageListeners;
3169
+ for (let v = 0; v < s.length; v++)
3170
+ s[v]();
3171
+ s.length = 0, this.dynamicStagePromise.resolve();
3172
+ }
3173
+ getStagePromise(s) {
3174
+ switch (s) {
3175
+ case 3:
3176
+ return this.runtimeStagePromise.promise;
3177
+ case 4:
3178
+ return this.dynamicStagePromise.promise;
3179
+ default:
3180
+ throw Object.defineProperty(new E.InvariantError(`Invalid render stage: ${s}`), "__NEXT_ERROR_CODE", {
3181
+ value: "E881",
3182
+ enumerable: !1,
3183
+ configurable: !0
3184
+ });
3185
+ }
3186
+ }
3187
+ waitForStage(s) {
3188
+ return this.getStagePromise(s);
3189
+ }
3190
+ delayUntilStage(s, v, T) {
3191
+ const j = this.getStagePromise(s), G = p(j, v, T);
3192
+ return this.abortSignal && G.catch(c), G;
3193
+ }
3194
+ }
3195
+ function c() {
3196
+ }
3197
+ function p(d, s, v) {
3198
+ const T = new Promise((j, G) => {
3199
+ d.then(j.bind(null, v), G);
3200
+ });
3201
+ return s !== void 0 && (T.displayName = s), T;
3202
+ }
3203
+ })(tt)), tt;
3204
+ }
3205
+ var Yt;
3206
+ function Rr() {
3207
+ return Yt || (Yt = 1, (function(h) {
3208
+ Object.defineProperty(h, "__esModule", {
3209
+ value: !0
3210
+ }), Object.defineProperty(h, "cookies", {
3211
+ enumerable: !0,
3212
+ get: function() {
3213
+ return j;
3214
+ }
3215
+ });
3216
+ const a = cr(), E = Kt(), b = Ee(), R = je(), w = ct(), c = Re(), p = ut(), d = ft(), s = Jt(), v = he(), T = er();
3217
+ function j() {
3218
+ const o = "cookies", u = b.workAsyncStorage.getStore(), g = R.workUnitAsyncStorage.getStore();
3219
+ if (u) {
3220
+ if (g && g.phase === "after" && !(0, s.isRequestAPICallableInsideAfter)())
3221
+ throw Object.defineProperty(new Error(
3222
+ // TODO(after): clarify that this only applies to pages?
3223
+ `Route ${u.route} used \`cookies()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`cookies()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`
3224
+ ), "__NEXT_ERROR_CODE", {
3225
+ value: "E843",
3226
+ enumerable: !1,
3227
+ configurable: !0
3228
+ });
3229
+ if (u.forceStatic) {
3230
+ const M = G();
3231
+ return C(M);
3232
+ }
3233
+ if (u.dynamicShouldError)
3234
+ throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${u.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
3235
+ value: "E849",
3236
+ enumerable: !1,
3237
+ configurable: !0
3238
+ });
3239
+ if (g)
3240
+ switch (g.type) {
3241
+ case "cache":
3242
+ const M = Object.defineProperty(new Error(`Route ${u.route} used \`cookies()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` 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", {
3243
+ value: "E831",
3244
+ enumerable: !1,
3245
+ configurable: !0
3246
+ });
3247
+ throw Error.captureStackTrace(M, j), u.invalidDynamicUsageError ?? (u.invalidDynamicUsageError = M), M;
3248
+ case "unstable-cache":
3249
+ throw Object.defineProperty(new Error(`Route ${u.route} used \`cookies()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
3250
+ value: "E846",
3251
+ enumerable: !1,
3252
+ configurable: !0
3253
+ });
3254
+ case "prerender":
3255
+ return S(u, g);
3256
+ case "prerender-client":
3257
+ const F = "`cookies`";
3258
+ throw Object.defineProperty(new v.InvariantError(`${F} must not be used within a Client Component. Next.js should be preventing ${F} from being included in Client Components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
3259
+ value: "E832",
3260
+ enumerable: !1,
3261
+ configurable: !0
3262
+ });
3263
+ case "prerender-ppr":
3264
+ return (0, w.postponeWithTracking)(u.route, o, g.dynamicTracking);
3265
+ case "prerender-legacy":
3266
+ return (0, w.throwToInterruptStaticGeneration)(o, u, g);
3267
+ case "prerender-runtime":
3268
+ return (0, w.delayUntilRuntimeStage)(g, C(g.cookies));
3269
+ case "private-cache":
3270
+ return C(g.cookies);
3271
+ case "request":
3272
+ (0, w.trackDynamicDataInDynamicRender)(g);
3273
+ let H;
3274
+ return (0, a.areCookiesMutableInCurrentPhase)(g) ? H = g.userspaceMutableCookies : H = g.cookies, process.env.NODE_ENV === "development" ? P(g, H, u == null ? void 0 : u.route) : C(H);
3275
+ }
3276
+ }
3277
+ (0, R.throwForMissingRequestStore)(o);
3278
+ }
3279
+ function G() {
3280
+ return a.RequestCookiesAdapter.seal(new E.RequestCookies(new Headers({})));
3281
+ }
3282
+ const L = /* @__PURE__ */ new WeakMap();
3283
+ function S(o, u) {
3284
+ const g = L.get(u);
3285
+ if (g)
3286
+ return g;
3287
+ const M = (0, p.makeHangingPromise)(u.renderSignal, o.route, "`cookies()`");
3288
+ return L.set(u, M), M;
3289
+ }
3290
+ function C(o) {
3291
+ const u = L.get(o);
3292
+ if (u)
3293
+ return u;
3294
+ const g = Promise.resolve(o);
3295
+ return L.set(o, g), g;
3296
+ }
3297
+ function P(o, u, g) {
3298
+ if (o.asyncApiPromises) {
3299
+ let J;
3300
+ if (u === o.mutableCookies)
3301
+ J = o.asyncApiPromises.mutableCookies;
3302
+ else if (u === o.cookies)
3303
+ J = o.asyncApiPromises.cookies;
3304
+ else
3305
+ throw Object.defineProperty(new v.InvariantError("Received an underlying cookies object that does not match either `cookies` or `mutableCookies`"), "__NEXT_ERROR_CODE", {
3306
+ value: "E890",
3307
+ enumerable: !1,
3308
+ configurable: !0
3309
+ });
3310
+ return N(J, g);
3311
+ }
3312
+ const M = L.get(u);
3313
+ if (M)
3314
+ return M;
3315
+ const F = (0, p.makeDevtoolsIOAwarePromise)(u, o, T.RenderStage.Runtime), H = N(F, g);
3316
+ return L.set(u, H), H;
3317
+ }
3318
+ const A = (0, d.createDedupedByCallsiteServerErrorLoggerDev)(l);
3319
+ function N(o, u) {
3320
+ return Object.defineProperties(o, {
3321
+ [Symbol.iterator]: t(o, u),
3322
+ size: D(o, "size", u),
3323
+ get: D(o, "get", u),
3324
+ getAll: D(o, "getAll", u),
3325
+ has: D(o, "has", u),
3326
+ set: D(o, "set", u),
3327
+ delete: D(o, "delete", u),
3328
+ clear: D(o, "clear", u),
3329
+ toString: D(o, "toString", u)
3330
+ }), o;
3331
+ }
3332
+ function D(o, u, g) {
3333
+ return {
3334
+ enumerable: !1,
3335
+ get() {
3336
+ A(g, `\`cookies().${u}\``);
3337
+ },
3338
+ set(M) {
3339
+ Object.defineProperty(o, u, {
3340
+ value: M,
3341
+ writable: !0,
3342
+ configurable: !0
3343
+ });
3344
+ },
3345
+ configurable: !0
3346
+ };
3347
+ }
3348
+ function t(o, u) {
3349
+ return {
3350
+ enumerable: !1,
3351
+ get() {
3352
+ A(u, "`...cookies()` or similar iteration");
3353
+ },
3354
+ set(g) {
3355
+ Object.defineProperty(o, Symbol.iterator, {
3356
+ value: g,
3357
+ writable: !0,
3358
+ enumerable: !0,
3359
+ configurable: !0
3360
+ });
3361
+ },
3362
+ configurable: !0
3363
+ };
3364
+ }
3365
+ function l(o, u) {
3366
+ const g = o ? `Route "${o}" ` : "This route ";
3367
+ return Object.defineProperty(new Error(`${g}used ${u}. \`cookies()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
3368
+ value: "E830",
3369
+ enumerable: !1,
3370
+ configurable: !0
3371
+ });
3372
+ }
3373
+ })(Ie)), Ie;
3374
+ }
3375
+ var nt = {}, ot = {}, Gt;
3376
+ function br() {
3377
+ return Gt || (Gt = 1, (function(h) {
3378
+ Object.defineProperty(h, "__esModule", {
3379
+ value: !0
3380
+ });
3381
+ function a(w, c) {
3382
+ for (var p in c) Object.defineProperty(w, p, {
3383
+ enumerable: !0,
3384
+ get: c[p]
3385
+ });
3386
+ }
3387
+ a(h, {
3388
+ HeadersAdapter: function() {
3389
+ return R;
3390
+ },
3391
+ ReadonlyHeadersError: function() {
3392
+ return b;
3393
+ }
3394
+ });
3395
+ const E = st();
3396
+ class b extends Error {
3397
+ constructor() {
3398
+ super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers");
3399
+ }
3400
+ static callable() {
3401
+ throw new b();
3402
+ }
3403
+ }
3404
+ class R extends Headers {
3405
+ constructor(c) {
3406
+ super(), this.headers = new Proxy(c, {
3407
+ get(p, d, s) {
3408
+ if (typeof d == "symbol")
3409
+ return E.ReflectAdapter.get(p, d, s);
3410
+ const v = d.toLowerCase(), T = Object.keys(c).find((j) => j.toLowerCase() === v);
3411
+ if (!(typeof T > "u"))
3412
+ return E.ReflectAdapter.get(p, T, s);
3413
+ },
3414
+ set(p, d, s, v) {
3415
+ if (typeof d == "symbol")
3416
+ return E.ReflectAdapter.set(p, d, s, v);
3417
+ const T = d.toLowerCase(), j = Object.keys(c).find((G) => G.toLowerCase() === T);
3418
+ return E.ReflectAdapter.set(p, j ?? d, s, v);
3419
+ },
3420
+ has(p, d) {
3421
+ if (typeof d == "symbol") return E.ReflectAdapter.has(p, d);
3422
+ const s = d.toLowerCase(), v = Object.keys(c).find((T) => T.toLowerCase() === s);
3423
+ return typeof v > "u" ? !1 : E.ReflectAdapter.has(p, v);
3424
+ },
3425
+ deleteProperty(p, d) {
3426
+ if (typeof d == "symbol") return E.ReflectAdapter.deleteProperty(p, d);
3427
+ const s = d.toLowerCase(), v = Object.keys(c).find((T) => T.toLowerCase() === s);
3428
+ return typeof v > "u" ? !0 : E.ReflectAdapter.deleteProperty(p, v);
3429
+ }
3430
+ });
3431
+ }
3432
+ /**
3433
+ * Seals a Headers instance to prevent modification by throwing an error when
3434
+ * any mutating method is called.
3435
+ */
3436
+ static seal(c) {
3437
+ return new Proxy(c, {
3438
+ get(p, d, s) {
3439
+ switch (d) {
3440
+ case "append":
3441
+ case "delete":
3442
+ case "set":
3443
+ return b.callable;
3444
+ default:
3445
+ return E.ReflectAdapter.get(p, d, s);
3446
+ }
3447
+ }
3448
+ });
3449
+ }
3450
+ /**
3451
+ * Merges a header value into a string. This stores multiple values as an
3452
+ * array, so we need to merge them into a string.
3453
+ *
3454
+ * @param value a header value
3455
+ * @returns a merged header value (a string)
3456
+ */
3457
+ merge(c) {
3458
+ return Array.isArray(c) ? c.join(", ") : c;
3459
+ }
3460
+ /**
3461
+ * Creates a Headers instance from a plain object or a Headers instance.
3462
+ *
3463
+ * @param headers a plain object or a Headers instance
3464
+ * @returns a headers instance
3465
+ */
3466
+ static from(c) {
3467
+ return c instanceof Headers ? c : new R(c);
3468
+ }
3469
+ append(c, p) {
3470
+ const d = this.headers[c];
3471
+ typeof d == "string" ? this.headers[c] = [
3472
+ d,
3473
+ p
3474
+ ] : Array.isArray(d) ? d.push(p) : this.headers[c] = p;
3475
+ }
3476
+ delete(c) {
3477
+ delete this.headers[c];
3478
+ }
3479
+ get(c) {
3480
+ const p = this.headers[c];
3481
+ return typeof p < "u" ? this.merge(p) : null;
3482
+ }
3483
+ has(c) {
3484
+ return typeof this.headers[c] < "u";
3485
+ }
3486
+ set(c, p) {
3487
+ this.headers[c] = p;
3488
+ }
3489
+ forEach(c, p) {
3490
+ for (const [d, s] of this.entries())
3491
+ c.call(p, s, d, this);
3492
+ }
3493
+ *entries() {
3494
+ for (const c of Object.keys(this.headers)) {
3495
+ const p = c.toLowerCase(), d = this.get(p);
3496
+ yield [
3497
+ p,
3498
+ d
3499
+ ];
3500
+ }
3501
+ }
3502
+ *keys() {
3503
+ for (const c of Object.keys(this.headers))
3504
+ yield c.toLowerCase();
3505
+ }
3506
+ *values() {
3507
+ for (const c of Object.keys(this.headers))
3508
+ yield this.get(c);
3509
+ }
3510
+ [Symbol.iterator]() {
3511
+ return this.entries();
3512
+ }
3513
+ }
3514
+ })(ot)), ot;
3515
+ }
3516
+ var Ft;
3517
+ function vr() {
3518
+ return Ft || (Ft = 1, (function(h) {
3519
+ Object.defineProperty(h, "__esModule", {
3520
+ value: !0
3521
+ }), Object.defineProperty(h, "headers", {
3522
+ enumerable: !0,
3523
+ get: function() {
3524
+ return T;
3525
+ }
3526
+ });
3527
+ const a = br(), E = Ee(), b = je(), R = ct(), w = Re(), c = ut(), p = ft(), d = Jt(), s = he(), v = er();
3528
+ function T() {
3529
+ const t = "headers", l = E.workAsyncStorage.getStore(), o = b.workUnitAsyncStorage.getStore();
3530
+ if (l) {
3531
+ if (o && o.phase === "after" && !(0, d.isRequestAPICallableInsideAfter)())
3532
+ throw Object.defineProperty(new Error(`Route ${l.route} used \`headers()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`headers()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
3533
+ value: "E839",
3534
+ enumerable: !1,
3535
+ configurable: !0
3536
+ });
3537
+ if (l.forceStatic) {
3538
+ const u = a.HeadersAdapter.seal(new Headers({}));
3539
+ return L(u);
3540
+ }
3541
+ if (o)
3542
+ switch (o.type) {
3543
+ case "cache": {
3544
+ const u = Object.defineProperty(new Error(`Route ${l.route} used \`headers()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` 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", {
3545
+ value: "E833",
3546
+ enumerable: !1,
3547
+ configurable: !0
3548
+ });
3549
+ throw Error.captureStackTrace(u, T), l.invalidDynamicUsageError ?? (l.invalidDynamicUsageError = u), u;
3550
+ }
3551
+ case "unstable-cache":
3552
+ throw Object.defineProperty(new Error(`Route ${l.route} used \`headers()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
3553
+ value: "E838",
3554
+ enumerable: !1,
3555
+ configurable: !0
3556
+ });
3557
+ }
3558
+ if (l.dynamicShouldError)
3559
+ throw Object.defineProperty(new w.StaticGenBailoutError(`Route ${l.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
3560
+ value: "E828",
3561
+ enumerable: !1,
3562
+ configurable: !0
3563
+ });
3564
+ if (o)
3565
+ switch (o.type) {
3566
+ case "prerender":
3567
+ return G(l, o);
3568
+ case "prerender-client":
3569
+ const u = "`headers`";
3570
+ throw Object.defineProperty(new s.InvariantError(`${u} must not be used within a client component. Next.js should be preventing ${u} from being included in client components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
3571
+ value: "E693",
3572
+ enumerable: !1,
3573
+ configurable: !0
3574
+ });
3575
+ case "prerender-ppr":
3576
+ return (0, R.postponeWithTracking)(l.route, t, o.dynamicTracking);
3577
+ case "prerender-legacy":
3578
+ return (0, R.throwToInterruptStaticGeneration)(t, l, o);
3579
+ case "prerender-runtime":
3580
+ return (0, R.delayUntilRuntimeStage)(o, L(o.headers));
3581
+ case "private-cache":
3582
+ return L(o.headers);
3583
+ case "request":
3584
+ return (0, R.trackDynamicDataInDynamicRender)(o), process.env.NODE_ENV === "development" ? S(o.headers, l == null ? void 0 : l.route, o) : L(o.headers);
3585
+ }
3586
+ }
3587
+ (0, b.throwForMissingRequestStore)(t);
3588
+ }
3589
+ const j = /* @__PURE__ */ new WeakMap();
3590
+ function G(t, l) {
3591
+ const o = j.get(l);
3592
+ if (o)
3593
+ return o;
3594
+ const u = (0, c.makeHangingPromise)(l.renderSignal, t.route, "`headers()`");
3595
+ return j.set(l, u), u;
3596
+ }
3597
+ function L(t) {
3598
+ const l = j.get(t);
3599
+ if (l)
3600
+ return l;
3601
+ const o = Promise.resolve(t);
3602
+ return j.set(t, o), o;
3603
+ }
3604
+ function S(t, l, o) {
3605
+ if (o.asyncApiPromises) {
3606
+ const F = o.asyncApiPromises.headers;
3607
+ return P(F, l);
3608
+ }
3609
+ const u = j.get(t);
3610
+ if (u)
3611
+ return u;
3612
+ const g = (0, c.makeDevtoolsIOAwarePromise)(t, o, v.RenderStage.Runtime), M = P(g, l);
3613
+ return j.set(t, M), M;
3614
+ }
3615
+ const C = (0, p.createDedupedByCallsiteServerErrorLoggerDev)(D);
3616
+ function P(t, l) {
3617
+ return Object.defineProperties(t, {
3618
+ [Symbol.iterator]: N(t, l),
3619
+ append: A(t, "append", l),
3620
+ delete: A(t, "delete", l),
3621
+ get: A(t, "get", l),
3622
+ has: A(t, "has", l),
3623
+ set: A(t, "set", l),
3624
+ getSetCookie: A(t, "getSetCookie", l),
3625
+ forEach: A(t, "forEach", l),
3626
+ keys: A(t, "keys", l),
3627
+ values: A(t, "values", l),
3628
+ entries: A(t, "entries", l)
3629
+ }), t;
3630
+ }
3631
+ function A(t, l, o) {
3632
+ return {
3633
+ enumerable: !1,
3634
+ get() {
3635
+ C(o, `\`headers().${l}\``);
3636
+ },
3637
+ set(u) {
3638
+ Object.defineProperty(t, l, {
3639
+ value: u,
3640
+ writable: !0,
3641
+ configurable: !0
3642
+ });
3643
+ },
3644
+ configurable: !0
3645
+ };
3646
+ }
3647
+ function N(t, l) {
3648
+ return {
3649
+ enumerable: !1,
3650
+ get() {
3651
+ C(l, "`...headers()` or similar iteration");
3652
+ },
3653
+ set(o) {
3654
+ Object.defineProperty(t, Symbol.iterator, {
3655
+ value: o,
3656
+ writable: !0,
3657
+ enumerable: !0,
3658
+ configurable: !0
3659
+ });
3660
+ },
3661
+ configurable: !0
3662
+ };
3663
+ }
3664
+ function D(t, l) {
3665
+ const o = t ? `Route "${t}" ` : "This route ";
3666
+ return Object.defineProperty(new Error(`${o}used ${l}. \`headers()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
3667
+ value: "E836",
3668
+ enumerable: !1,
3669
+ configurable: !0
3670
+ });
3671
+ }
3672
+ })(nt)), nt;
3673
+ }
3674
+ var at = {}, zt;
3675
+ function wr() {
3676
+ return zt || (zt = 1, (function(h) {
3677
+ Object.defineProperty(h, "__esModule", {
3678
+ value: !0
3679
+ }), Object.defineProperty(h, "draftMode", {
3680
+ enumerable: !0,
3681
+ get: function() {
3682
+ return s;
3683
+ }
3684
+ });
3685
+ const a = je(), E = Ee(), b = ct(), R = ft(), w = Re(), c = Vt(), p = he(), d = st();
3686
+ function s() {
3687
+ const A = "draftMode", N = E.workAsyncStorage.getStore(), D = a.workUnitAsyncStorage.getStore();
3688
+ switch ((!N || !D) && (0, a.throwForMissingRequestStore)(A), D.type) {
3689
+ case "prerender-runtime":
3690
+ return (0, b.delayUntilRuntimeStage)(D, v(D.draftMode, N));
3691
+ case "request":
3692
+ return v(D.draftMode, N);
3693
+ case "cache":
3694
+ case "private-cache":
3695
+ case "unstable-cache":
3696
+ const t = (0, a.getDraftModeProviderForCacheScope)(N, D);
3697
+ if (t)
3698
+ return v(t, N);
3699
+ // Otherwise, we fall through to providing an empty draft mode.
3700
+ // eslint-disable-next-line no-fallthrough
3701
+ case "prerender":
3702
+ case "prerender-client":
3703
+ case "prerender-ppr":
3704
+ case "prerender-legacy":
3705
+ return v(null, N);
3706
+ default:
3707
+ return D;
3708
+ }
3709
+ }
3710
+ function v(A, N) {
3711
+ const D = A ?? T, t = j.get(D);
3712
+ if (t)
3713
+ return t;
3714
+ if (process.env.NODE_ENV === "development" && !(N != null && N.isPrefetchRequest)) {
3715
+ const l = N == null ? void 0 : N.route;
3716
+ return G(A, l);
3717
+ } else
3718
+ return Promise.resolve(new L(A));
3719
+ }
3720
+ const T = {}, j = /* @__PURE__ */ new WeakMap();
3721
+ function G(A, N) {
3722
+ const D = new L(A), t = Promise.resolve(D);
3723
+ return new Proxy(t, {
3724
+ get(o, u, g) {
3725
+ switch (u) {
3726
+ case "isEnabled":
3727
+ S(N, `\`draftMode().${u}\``);
3728
+ break;
3729
+ case "enable":
3730
+ case "disable": {
3731
+ S(N, `\`draftMode().${u}()\``);
3732
+ break;
3733
+ }
3734
+ }
3735
+ return d.ReflectAdapter.get(o, u, g);
3736
+ }
3737
+ });
3738
+ }
3739
+ class L {
3740
+ constructor(N) {
3741
+ this._provider = N;
3742
+ }
3743
+ get isEnabled() {
3744
+ return this._provider !== null ? this._provider.isEnabled : !1;
3745
+ }
3746
+ enable() {
3747
+ P("draftMode().enable()", this.enable), this._provider !== null && this._provider.enable();
3748
+ }
3749
+ disable() {
3750
+ P("draftMode().disable()", this.disable), this._provider !== null && this._provider.disable();
3751
+ }
3752
+ }
3753
+ const S = (0, R.createDedupedByCallsiteServerErrorLoggerDev)(C);
3754
+ function C(A, N) {
3755
+ const D = A ? `Route "${A}" ` : "This route ";
3756
+ return Object.defineProperty(new Error(`${D}used ${N}. \`draftMode()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
3757
+ value: "E835",
3758
+ enumerable: !1,
3759
+ configurable: !0
3760
+ });
3761
+ }
3762
+ function P(A, N) {
3763
+ const D = E.workAsyncStorage.getStore(), t = a.workUnitAsyncStorage.getStore();
3764
+ if (D) {
3765
+ if ((t == null ? void 0 : t.phase) === "after")
3766
+ throw Object.defineProperty(new Error(`Route ${D.route} used "${A}" inside \`after()\`. The enabled status of \`draftMode()\` can be read inside \`after()\` but you cannot enable or disable \`draftMode()\`. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
3767
+ value: "E845",
3768
+ enumerable: !1,
3769
+ configurable: !0
3770
+ });
3771
+ if (D.dynamicShouldError)
3772
+ throw Object.defineProperty(new w.StaticGenBailoutError(`Route ${D.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${A}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
3773
+ value: "E553",
3774
+ enumerable: !1,
3775
+ configurable: !0
3776
+ });
3777
+ if (t)
3778
+ switch (t.type) {
3779
+ case "cache":
3780
+ case "private-cache": {
3781
+ const u = Object.defineProperty(new Error(`Route ${D.route} used "${A}" inside "use cache". The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
3782
+ value: "E829",
3783
+ enumerable: !1,
3784
+ configurable: !0
3785
+ });
3786
+ throw Error.captureStackTrace(u, N), D.invalidDynamicUsageError ?? (D.invalidDynamicUsageError = u), u;
3787
+ }
3788
+ case "unstable-cache":
3789
+ throw Object.defineProperty(new Error(`Route ${D.route} used "${A}" inside a function cached with \`unstable_cache()\`. The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
3790
+ value: "E844",
3791
+ enumerable: !1,
3792
+ configurable: !0
3793
+ });
3794
+ case "prerender":
3795
+ case "prerender-runtime": {
3796
+ const u = Object.defineProperty(new Error(`Route ${D.route} used ${A} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`), "__NEXT_ERROR_CODE", {
3797
+ value: "E126",
3798
+ enumerable: !1,
3799
+ configurable: !0
3800
+ });
3801
+ return (0, b.abortAndThrowOnSynchronousRequestDataAccess)(D.route, A, u, t);
3802
+ }
3803
+ case "prerender-client":
3804
+ const l = "`draftMode`";
3805
+ throw Object.defineProperty(new p.InvariantError(`${l} must not be used within a Client Component. Next.js should be preventing ${l} from being included in Client Components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
3806
+ value: "E832",
3807
+ enumerable: !1,
3808
+ configurable: !0
3809
+ });
3810
+ case "prerender-ppr":
3811
+ return (0, b.postponeWithTracking)(D.route, A, t.dynamicTracking);
3812
+ case "prerender-legacy":
3813
+ t.revalidate = 0;
3814
+ const o = Object.defineProperty(new c.DynamicServerError(`Route ${D.route} couldn't be rendered statically because it used \`${A}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
3815
+ value: "E558",
3816
+ enumerable: !1,
3817
+ configurable: !0
3818
+ });
3819
+ throw D.dynamicUsageDescription = A, D.dynamicUsageStack = o.stack, o;
3820
+ case "request":
3821
+ (0, b.trackDynamicDataInDynamicRender)(t);
3822
+ break;
3823
+ }
3824
+ }
3825
+ }
3826
+ })(at)), at;
3827
+ }
3828
+ var Qt;
3829
+ function Or() {
3830
+ return Qt || (Qt = 1, ge.cookies = Rr().cookies, ge.headers = vr().headers, ge.draftMode = wr().draftMode), ge;
3831
+ }
3832
+ var Ar = Or();
3833
+ const Tr = /* @__PURE__ */ ar({
3834
+ __proto__: null
3835
+ }, [Ar]);
3836
+ export {
3837
+ Tr as h
3838
+ };