@ichaingo/token 1.4.97 → 1.4.99

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