@0xchain/i18n 0.0.1

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