@deframe-sdk/components 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -28,14 +28,10 @@ function _interopNamespace(e) {
28
28
 
29
29
  var React6__namespace = /*#__PURE__*/_interopNamespace(React6);
30
30
 
31
- var __create = Object.create;
32
31
  var __defProp = Object.defineProperty;
33
32
  var __defProps = Object.defineProperties;
34
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
35
33
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
36
- var __getOwnPropNames = Object.getOwnPropertyNames;
37
34
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
38
- var __getProtoOf = Object.getPrototypeOf;
39
35
  var __hasOwnProp = Object.prototype.hasOwnProperty;
40
36
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
41
37
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -51,12 +47,6 @@ var __spreadValues = (a, b) => {
51
47
  return a;
52
48
  };
53
49
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
54
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
55
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
56
- }) : x)(function(x) {
57
- if (typeof require !== "undefined") return require.apply(this, arguments);
58
- throw Error('Dynamic require of "' + x + '" is not supported');
59
- });
60
50
  var __objRest = (source, exclude) => {
61
51
  var target = {};
62
52
  for (var prop in source)
@@ -69,3914 +59,6 @@ var __objRest = (source, exclude) => {
69
59
  }
70
60
  return target;
71
61
  };
72
- var __commonJS = (cb, mod) => function __require2() {
73
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
74
- };
75
- var __copyProps = (to, from, except, desc) => {
76
- if (from && typeof from === "object" || typeof from === "function") {
77
- for (let key of __getOwnPropNames(from))
78
- if (!__hasOwnProp.call(to, key) && key !== except)
79
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
80
- }
81
- return to;
82
- };
83
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
84
- // If the importer is in node compatibility mode or this is not an ESM
85
- // file that has been converted to a CommonJS file using a Babel-
86
- // compatible transform (i.e. "__esModule" has not been set), then set
87
- // "default" to the CommonJS "module.exports" for node compatibility.
88
- !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
89
- mod
90
- ));
91
-
92
- // node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
93
- var require_interop_require_wildcard = __commonJS({
94
- "node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports$1) {
95
- function _getRequireWildcardCache(nodeInterop) {
96
- if (typeof WeakMap !== "function") return null;
97
- var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
98
- var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
99
- return (_getRequireWildcardCache = function(nodeInterop2) {
100
- return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
101
- })(nodeInterop);
102
- }
103
- function _interop_require_wildcard(obj, nodeInterop) {
104
- if (!nodeInterop && obj && obj.__esModule) return obj;
105
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
106
- var cache = _getRequireWildcardCache(nodeInterop);
107
- if (cache && cache.has(obj)) return cache.get(obj);
108
- var newObj = { __proto__: null };
109
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
110
- for (var key in obj) {
111
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
112
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
113
- if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
114
- else newObj[key] = obj[key];
115
- }
116
- }
117
- newObj.default = obj;
118
- if (cache) cache.set(obj, newObj);
119
- return newObj;
120
- }
121
- exports$1._ = _interop_require_wildcard;
122
- }
123
- });
124
-
125
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/querystring.js
126
- var require_querystring = __commonJS({
127
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/querystring.js"(exports$1) {
128
- Object.defineProperty(exports$1, "__esModule", {
129
- value: true
130
- });
131
- function _export(target, all) {
132
- for (var name in all) Object.defineProperty(target, name, {
133
- enumerable: true,
134
- get: all[name]
135
- });
136
- }
137
- _export(exports$1, {
138
- assign: function() {
139
- return assign;
140
- },
141
- searchParamsToUrlQuery: function() {
142
- return searchParamsToUrlQuery;
143
- },
144
- urlQueryToSearchParams: function() {
145
- return urlQueryToSearchParams;
146
- }
147
- });
148
- function searchParamsToUrlQuery(searchParams) {
149
- const query = {};
150
- for (const [key, value] of searchParams.entries()) {
151
- const existing = query[key];
152
- if (typeof existing === "undefined") {
153
- query[key] = value;
154
- } else if (Array.isArray(existing)) {
155
- existing.push(value);
156
- } else {
157
- query[key] = [
158
- existing,
159
- value
160
- ];
161
- }
162
- }
163
- return query;
164
- }
165
- function stringifyUrlQueryParam(param) {
166
- if (typeof param === "string") {
167
- return param;
168
- }
169
- if (typeof param === "number" && !isNaN(param) || typeof param === "boolean") {
170
- return String(param);
171
- } else {
172
- return "";
173
- }
174
- }
175
- function urlQueryToSearchParams(query) {
176
- const searchParams = new URLSearchParams();
177
- for (const [key, value] of Object.entries(query)) {
178
- if (Array.isArray(value)) {
179
- for (const item of value) {
180
- searchParams.append(key, stringifyUrlQueryParam(item));
181
- }
182
- } else {
183
- searchParams.set(key, stringifyUrlQueryParam(value));
184
- }
185
- }
186
- return searchParams;
187
- }
188
- function assign(target, ...searchParamsList) {
189
- for (const searchParams of searchParamsList) {
190
- for (const key of searchParams.keys()) {
191
- target.delete(key);
192
- }
193
- for (const [key, value] of searchParams.entries()) {
194
- target.append(key, value);
195
- }
196
- }
197
- return target;
198
- }
199
- }
200
- });
201
-
202
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/format-url.js
203
- var require_format_url = __commonJS({
204
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/format-url.js"(exports$1) {
205
- Object.defineProperty(exports$1, "__esModule", {
206
- value: true
207
- });
208
- function _export(target, all) {
209
- for (var name in all) Object.defineProperty(target, name, {
210
- enumerable: true,
211
- get: all[name]
212
- });
213
- }
214
- _export(exports$1, {
215
- formatUrl: function() {
216
- return formatUrl;
217
- },
218
- formatWithValidation: function() {
219
- return formatWithValidation;
220
- },
221
- urlObjectKeys: function() {
222
- return urlObjectKeys;
223
- }
224
- });
225
- var _interop_require_wildcard = require_interop_require_wildcard();
226
- var _querystring = /* @__PURE__ */ _interop_require_wildcard._(require_querystring());
227
- var slashedProtocols = /https?|ftp|gopher|file/;
228
- function formatUrl(urlObj) {
229
- let { auth, hostname } = urlObj;
230
- let protocol = urlObj.protocol || "";
231
- let pathname = urlObj.pathname || "";
232
- let hash = urlObj.hash || "";
233
- let query = urlObj.query || "";
234
- let host = false;
235
- auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ":") + "@" : "";
236
- if (urlObj.host) {
237
- host = auth + urlObj.host;
238
- } else if (hostname) {
239
- host = auth + (~hostname.indexOf(":") ? `[${hostname}]` : hostname);
240
- if (urlObj.port) {
241
- host += ":" + urlObj.port;
242
- }
243
- }
244
- if (query && typeof query === "object") {
245
- query = String(_querystring.urlQueryToSearchParams(query));
246
- }
247
- let search = urlObj.search || query && `?${query}` || "";
248
- if (protocol && !protocol.endsWith(":")) protocol += ":";
249
- if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
250
- host = "//" + (host || "");
251
- if (pathname && pathname[0] !== "/") pathname = "/" + pathname;
252
- } else if (!host) {
253
- host = "";
254
- }
255
- if (hash && hash[0] !== "#") hash = "#" + hash;
256
- if (search && search[0] !== "?") search = "?" + search;
257
- pathname = pathname.replace(/[?#]/g, encodeURIComponent);
258
- search = search.replace("#", "%23");
259
- return `${protocol}${host}${pathname}${search}${hash}`;
260
- }
261
- var urlObjectKeys = [
262
- "auth",
263
- "hash",
264
- "host",
265
- "hostname",
266
- "href",
267
- "path",
268
- "pathname",
269
- "port",
270
- "protocol",
271
- "query",
272
- "search",
273
- "slashes"
274
- ];
275
- function formatWithValidation(url) {
276
- if (process.env.NODE_ENV === "development") {
277
- if (url !== null && typeof url === "object") {
278
- Object.keys(url).forEach((key) => {
279
- if (!urlObjectKeys.includes(key)) {
280
- console.warn(`Unknown key passed via urlObject into url.format: ${key}`);
281
- }
282
- });
283
- }
284
- }
285
- return formatUrl(url);
286
- }
287
- }
288
- });
289
-
290
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/omit.js
291
- var require_omit = __commonJS({
292
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/omit.js"(exports$1) {
293
- Object.defineProperty(exports$1, "__esModule", {
294
- value: true
295
- });
296
- Object.defineProperty(exports$1, "omit", {
297
- enumerable: true,
298
- get: function() {
299
- return omit;
300
- }
301
- });
302
- function omit(object, keys) {
303
- const omitted = {};
304
- Object.keys(object).forEach((key) => {
305
- if (!keys.includes(key)) {
306
- omitted[key] = object[key];
307
- }
308
- });
309
- return omitted;
310
- }
311
- }
312
- });
313
-
314
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils.js
315
- var require_utils = __commonJS({
316
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils.js"(exports$1) {
317
- Object.defineProperty(exports$1, "__esModule", {
318
- value: true
319
- });
320
- function _export(target, all) {
321
- for (var name in all) Object.defineProperty(target, name, {
322
- enumerable: true,
323
- get: all[name]
324
- });
325
- }
326
- _export(exports$1, {
327
- DecodeError: function() {
328
- return DecodeError;
329
- },
330
- MiddlewareNotFoundError: function() {
331
- return MiddlewareNotFoundError;
332
- },
333
- MissingStaticPage: function() {
334
- return MissingStaticPage;
335
- },
336
- NormalizeError: function() {
337
- return NormalizeError;
338
- },
339
- PageNotFoundError: function() {
340
- return PageNotFoundError;
341
- },
342
- SP: function() {
343
- return SP;
344
- },
345
- ST: function() {
346
- return ST;
347
- },
348
- WEB_VITALS: function() {
349
- return WEB_VITALS;
350
- },
351
- execOnce: function() {
352
- return execOnce;
353
- },
354
- getDisplayName: function() {
355
- return getDisplayName;
356
- },
357
- getLocationOrigin: function() {
358
- return getLocationOrigin;
359
- },
360
- getURL: function() {
361
- return getURL;
362
- },
363
- isAbsoluteUrl: function() {
364
- return isAbsoluteUrl;
365
- },
366
- isResSent: function() {
367
- return isResSent;
368
- },
369
- loadGetInitialProps: function() {
370
- return loadGetInitialProps;
371
- },
372
- normalizeRepeatedSlashes: function() {
373
- return normalizeRepeatedSlashes;
374
- },
375
- stringifyError: function() {
376
- return stringifyError;
377
- }
378
- });
379
- var WEB_VITALS = [
380
- "CLS",
381
- "FCP",
382
- "FID",
383
- "INP",
384
- "LCP",
385
- "TTFB"
386
- ];
387
- function execOnce(fn) {
388
- let used = false;
389
- let result;
390
- return (...args) => {
391
- if (!used) {
392
- used = true;
393
- result = fn(...args);
394
- }
395
- return result;
396
- };
397
- }
398
- var ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
399
- var isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
400
- function getLocationOrigin() {
401
- const { protocol, hostname, port } = window.location;
402
- return `${protocol}//${hostname}${port ? ":" + port : ""}`;
403
- }
404
- function getURL() {
405
- const { href } = window.location;
406
- const origin = getLocationOrigin();
407
- return href.substring(origin.length);
408
- }
409
- function getDisplayName(Component) {
410
- return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown";
411
- }
412
- function isResSent(res) {
413
- return res.finished || res.headersSent;
414
- }
415
- function normalizeRepeatedSlashes(url) {
416
- const urlParts = url.split("?");
417
- const urlNoQuery = urlParts[0];
418
- return urlNoQuery.replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? `?${urlParts.slice(1).join("?")}` : "");
419
- }
420
- async function loadGetInitialProps(App, ctx) {
421
- var _a;
422
- if (process.env.NODE_ENV !== "production") {
423
- if ((_a = App.prototype) == null ? void 0 : _a.getInitialProps) {
424
- const message = `"${getDisplayName(App)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;
425
- throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
426
- value: "E394",
427
- enumerable: false,
428
- configurable: true
429
- });
430
- }
431
- }
432
- const res = ctx.res || ctx.ctx && ctx.ctx.res;
433
- if (!App.getInitialProps) {
434
- if (ctx.ctx && ctx.Component) {
435
- return {
436
- pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
437
- };
438
- }
439
- return {};
440
- }
441
- const props = await App.getInitialProps(ctx);
442
- if (res && isResSent(res)) {
443
- return props;
444
- }
445
- if (!props) {
446
- const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
447
- throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
448
- value: "E394",
449
- enumerable: false,
450
- configurable: true
451
- });
452
- }
453
- if (process.env.NODE_ENV !== "production") {
454
- if (Object.keys(props).length === 0 && !ctx.ctx) {
455
- console.warn(`${getDisplayName(App)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`);
456
- }
457
- }
458
- return props;
459
- }
460
- var SP = typeof performance !== "undefined";
461
- var ST = SP && [
462
- "mark",
463
- "measure",
464
- "getEntriesByName"
465
- ].every((method) => typeof performance[method] === "function");
466
- var DecodeError = class extends Error {
467
- };
468
- var NormalizeError = class extends Error {
469
- };
470
- var PageNotFoundError = class extends Error {
471
- constructor(page) {
472
- super();
473
- this.code = "ENOENT";
474
- this.name = "PageNotFoundError";
475
- this.message = `Cannot find module for page: ${page}`;
476
- }
477
- };
478
- var MissingStaticPage = class extends Error {
479
- constructor(page, message) {
480
- super();
481
- this.message = `Failed to load static file for page: ${page} ${message}`;
482
- }
483
- };
484
- var MiddlewareNotFoundError = class extends Error {
485
- constructor() {
486
- super();
487
- this.code = "ENOENT";
488
- this.message = `Cannot find the middleware module`;
489
- }
490
- };
491
- function stringifyError(error) {
492
- return JSON.stringify({
493
- message: error.message,
494
- stack: error.stack
495
- });
496
- }
497
- }
498
- });
499
-
500
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
501
- var require_remove_trailing_slash = __commonJS({
502
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"(exports$1) {
503
- Object.defineProperty(exports$1, "__esModule", {
504
- value: true
505
- });
506
- Object.defineProperty(exports$1, "removeTrailingSlash", {
507
- enumerable: true,
508
- get: function() {
509
- return removeTrailingSlash;
510
- }
511
- });
512
- function removeTrailingSlash(route) {
513
- return route.replace(/\/$/, "") || "/";
514
- }
515
- }
516
- });
517
-
518
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/parse-path.js
519
- var require_parse_path = __commonJS({
520
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/parse-path.js"(exports$1) {
521
- Object.defineProperty(exports$1, "__esModule", {
522
- value: true
523
- });
524
- Object.defineProperty(exports$1, "parsePath", {
525
- enumerable: true,
526
- get: function() {
527
- return parsePath;
528
- }
529
- });
530
- function parsePath(path) {
531
- const hashIndex = path.indexOf("#");
532
- const queryIndex = path.indexOf("?");
533
- const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
534
- if (hasQuery || hashIndex > -1) {
535
- return {
536
- pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
537
- query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
538
- hash: hashIndex > -1 ? path.slice(hashIndex) : ""
539
- };
540
- }
541
- return {
542
- pathname: path,
543
- query: "",
544
- hash: ""
545
- };
546
- }
547
- }
548
- });
549
-
550
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/normalize-trailing-slash.js
551
- var require_normalize_trailing_slash = __commonJS({
552
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/normalize-trailing-slash.js"(exports$1, module) {
553
- Object.defineProperty(exports$1, "__esModule", {
554
- value: true
555
- });
556
- Object.defineProperty(exports$1, "normalizePathTrailingSlash", {
557
- enumerable: true,
558
- get: function() {
559
- return normalizePathTrailingSlash;
560
- }
561
- });
562
- var _removetrailingslash = require_remove_trailing_slash();
563
- var _parsepath = require_parse_path();
564
- var normalizePathTrailingSlash = (path) => {
565
- if (!path.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH) {
566
- return path;
567
- }
568
- const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
569
- if (process.env.__NEXT_TRAILING_SLASH) {
570
- if (/\.[^/]+\/?$/.test(pathname)) {
571
- return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
572
- } else if (pathname.endsWith("/")) {
573
- return `${pathname}${query}${hash}`;
574
- } else {
575
- return `${pathname}/${query}${hash}`;
576
- }
577
- }
578
- return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
579
- };
580
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
581
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
582
- Object.assign(exports$1.default, exports$1);
583
- module.exports = exports$1.default;
584
- }
585
- }
586
- });
587
-
588
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
589
- var require_path_has_prefix = __commonJS({
590
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"(exports$1) {
591
- Object.defineProperty(exports$1, "__esModule", {
592
- value: true
593
- });
594
- Object.defineProperty(exports$1, "pathHasPrefix", {
595
- enumerable: true,
596
- get: function() {
597
- return pathHasPrefix;
598
- }
599
- });
600
- var _parsepath = require_parse_path();
601
- function pathHasPrefix(path, prefix) {
602
- if (typeof path !== "string") {
603
- return false;
604
- }
605
- const { pathname } = (0, _parsepath.parsePath)(path);
606
- return pathname === prefix || pathname.startsWith(prefix + "/");
607
- }
608
- }
609
- });
610
-
611
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/has-base-path.js
612
- var require_has_base_path = __commonJS({
613
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/has-base-path.js"(exports$1, module) {
614
- Object.defineProperty(exports$1, "__esModule", {
615
- value: true
616
- });
617
- Object.defineProperty(exports$1, "hasBasePath", {
618
- enumerable: true,
619
- get: function() {
620
- return hasBasePath;
621
- }
622
- });
623
- var _pathhasprefix = require_path_has_prefix();
624
- var basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
625
- function hasBasePath(path) {
626
- return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
627
- }
628
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
629
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
630
- Object.assign(exports$1.default, exports$1);
631
- module.exports = exports$1.default;
632
- }
633
- }
634
- });
635
-
636
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/is-local-url.js
637
- var require_is_local_url = __commonJS({
638
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/is-local-url.js"(exports$1) {
639
- Object.defineProperty(exports$1, "__esModule", {
640
- value: true
641
- });
642
- Object.defineProperty(exports$1, "isLocalURL", {
643
- enumerable: true,
644
- get: function() {
645
- return isLocalURL;
646
- }
647
- });
648
- var _utils = require_utils();
649
- var _hasbasepath = require_has_base_path();
650
- function isLocalURL(url) {
651
- if (!(0, _utils.isAbsoluteUrl)(url)) return true;
652
- try {
653
- const locationOrigin = (0, _utils.getLocationOrigin)();
654
- const resolved = new URL(url, locationOrigin);
655
- return resolved.origin === locationOrigin && (0, _hasbasepath.hasBasePath)(resolved.pathname);
656
- } catch (_) {
657
- return false;
658
- }
659
- }
660
- }
661
- });
662
-
663
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js
664
- var require_sorted_routes = __commonJS({
665
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js"(exports$1) {
666
- Object.defineProperty(exports$1, "__esModule", {
667
- value: true
668
- });
669
- function _export(target, all) {
670
- for (var name in all) Object.defineProperty(target, name, {
671
- enumerable: true,
672
- get: all[name]
673
- });
674
- }
675
- _export(exports$1, {
676
- getSortedRouteObjects: function() {
677
- return getSortedRouteObjects;
678
- },
679
- getSortedRoutes: function() {
680
- return getSortedRoutes;
681
- }
682
- });
683
- var UrlNode = class _UrlNode {
684
- insert(urlPath) {
685
- this._insert(urlPath.split("/").filter(Boolean), [], false);
686
- }
687
- smoosh() {
688
- return this._smoosh();
689
- }
690
- _smoosh(prefix = "/") {
691
- const childrenPaths = [
692
- ...this.children.keys()
693
- ].sort();
694
- if (this.slugName !== null) {
695
- childrenPaths.splice(childrenPaths.indexOf("[]"), 1);
696
- }
697
- if (this.restSlugName !== null) {
698
- childrenPaths.splice(childrenPaths.indexOf("[...]"), 1);
699
- }
700
- if (this.optionalRestSlugName !== null) {
701
- childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1);
702
- }
703
- const routes = childrenPaths.map((c) => this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr) => [
704
- ...prev,
705
- ...curr
706
- ], []);
707
- if (this.slugName !== null) {
708
- routes.push(...this.children.get("[]")._smoosh(`${prefix}[${this.slugName}]/`));
709
- }
710
- if (!this.placeholder) {
711
- const r = prefix === "/" ? "/" : prefix.slice(0, -1);
712
- if (this.optionalRestSlugName != null) {
713
- throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${r}" and "${r}[[...${this.optionalRestSlugName}]]").`), "__NEXT_ERROR_CODE", {
714
- value: "E458",
715
- enumerable: false,
716
- configurable: true
717
- });
718
- }
719
- routes.unshift(r);
720
- }
721
- if (this.restSlugName !== null) {
722
- routes.push(...this.children.get("[...]")._smoosh(`${prefix}[...${this.restSlugName}]/`));
723
- }
724
- if (this.optionalRestSlugName !== null) {
725
- routes.push(...this.children.get("[[...]]")._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));
726
- }
727
- return routes;
728
- }
729
- _insert(urlPaths, slugNames, isCatchAll) {
730
- if (urlPaths.length === 0) {
731
- this.placeholder = false;
732
- return;
733
- }
734
- if (isCatchAll) {
735
- throw Object.defineProperty(new Error(`Catch-all must be the last part of the URL.`), "__NEXT_ERROR_CODE", {
736
- value: "E392",
737
- enumerable: false,
738
- configurable: true
739
- });
740
- }
741
- let nextSegment = urlPaths[0];
742
- if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) {
743
- let handleSlug = function(previousSlug, nextSlug) {
744
- if (previousSlug !== null) {
745
- if (previousSlug !== nextSlug) {
746
- throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), "__NEXT_ERROR_CODE", {
747
- value: "E337",
748
- enumerable: false,
749
- configurable: true
750
- });
751
- }
752
- }
753
- slugNames.forEach((slug) => {
754
- if (slug === nextSlug) {
755
- throw Object.defineProperty(new Error(`You cannot have the same slug name "${nextSlug}" repeat within a single dynamic path`), "__NEXT_ERROR_CODE", {
756
- value: "E247",
757
- enumerable: false,
758
- configurable: true
759
- });
760
- }
761
- if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) {
762
- throw Object.defineProperty(new Error(`You cannot have the slug names "${slug}" and "${nextSlug}" differ only by non-word symbols within a single dynamic path`), "__NEXT_ERROR_CODE", {
763
- value: "E499",
764
- enumerable: false,
765
- configurable: true
766
- });
767
- }
768
- });
769
- slugNames.push(nextSlug);
770
- };
771
- let segmentName = nextSegment.slice(1, -1);
772
- let isOptional = false;
773
- if (segmentName.startsWith("[") && segmentName.endsWith("]")) {
774
- segmentName = segmentName.slice(1, -1);
775
- isOptional = true;
776
- }
777
- if (segmentName.startsWith("\u2026")) {
778
- throw Object.defineProperty(new Error(`Detected a three-dot character ('\u2026') at ('${segmentName}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
779
- value: "E147",
780
- enumerable: false,
781
- configurable: true
782
- });
783
- }
784
- if (segmentName.startsWith("...")) {
785
- segmentName = segmentName.substring(3);
786
- isCatchAll = true;
787
- }
788
- if (segmentName.startsWith("[") || segmentName.endsWith("]")) {
789
- throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), "__NEXT_ERROR_CODE", {
790
- value: "E421",
791
- enumerable: false,
792
- configurable: true
793
- });
794
- }
795
- if (segmentName.startsWith(".")) {
796
- throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), "__NEXT_ERROR_CODE", {
797
- value: "E288",
798
- enumerable: false,
799
- configurable: true
800
- });
801
- }
802
- if (isCatchAll) {
803
- if (isOptional) {
804
- if (this.restSlugName != null) {
805
- throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${urlPaths[0]}" ).`), "__NEXT_ERROR_CODE", {
806
- value: "E299",
807
- enumerable: false,
808
- configurable: true
809
- });
810
- }
811
- handleSlug(this.optionalRestSlugName, segmentName);
812
- this.optionalRestSlugName = segmentName;
813
- nextSegment = "[[...]]";
814
- } else {
815
- if (this.optionalRestSlugName != null) {
816
- throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
817
- value: "E300",
818
- enumerable: false,
819
- configurable: true
820
- });
821
- }
822
- handleSlug(this.restSlugName, segmentName);
823
- this.restSlugName = segmentName;
824
- nextSegment = "[...]";
825
- }
826
- } else {
827
- if (isOptional) {
828
- throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
829
- value: "E435",
830
- enumerable: false,
831
- configurable: true
832
- });
833
- }
834
- handleSlug(this.slugName, segmentName);
835
- this.slugName = segmentName;
836
- nextSegment = "[]";
837
- }
838
- }
839
- if (!this.children.has(nextSegment)) {
840
- this.children.set(nextSegment, new _UrlNode());
841
- }
842
- this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);
843
- }
844
- constructor() {
845
- this.placeholder = true;
846
- this.children = /* @__PURE__ */ new Map();
847
- this.slugName = null;
848
- this.restSlugName = null;
849
- this.optionalRestSlugName = null;
850
- }
851
- };
852
- function getSortedRoutes(normalizedPages) {
853
- const root = new UrlNode();
854
- normalizedPages.forEach((pagePath) => root.insert(pagePath));
855
- return root.smoosh();
856
- }
857
- function getSortedRouteObjects(objects, getter) {
858
- const indexes = {};
859
- const pathnames = [];
860
- for (let i = 0; i < objects.length; i++) {
861
- const pathname = getter(objects[i]);
862
- indexes[pathname] = i;
863
- pathnames[i] = pathname;
864
- }
865
- const sorted = getSortedRoutes(pathnames);
866
- return sorted.map((pathname) => objects[indexes[pathname]]);
867
- }
868
- }
869
- });
870
-
871
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js
872
- var require_ensure_leading_slash = __commonJS({
873
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js"(exports$1) {
874
- Object.defineProperty(exports$1, "__esModule", {
875
- value: true
876
- });
877
- Object.defineProperty(exports$1, "ensureLeadingSlash", {
878
- enumerable: true,
879
- get: function() {
880
- return ensureLeadingSlash;
881
- }
882
- });
883
- function ensureLeadingSlash(path) {
884
- return path.startsWith("/") ? path : `/${path}`;
885
- }
886
- }
887
- });
888
-
889
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/segment.js
890
- var require_segment = __commonJS({
891
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/segment.js"(exports$1) {
892
- Object.defineProperty(exports$1, "__esModule", {
893
- value: true
894
- });
895
- function _export(target, all) {
896
- for (var name in all) Object.defineProperty(target, name, {
897
- enumerable: true,
898
- get: all[name]
899
- });
900
- }
901
- _export(exports$1, {
902
- DEFAULT_SEGMENT_KEY: function() {
903
- return DEFAULT_SEGMENT_KEY;
904
- },
905
- NOT_FOUND_SEGMENT_KEY: function() {
906
- return NOT_FOUND_SEGMENT_KEY;
907
- },
908
- PAGE_SEGMENT_KEY: function() {
909
- return PAGE_SEGMENT_KEY;
910
- },
911
- addSearchParamsIfPageSegment: function() {
912
- return addSearchParamsIfPageSegment;
913
- },
914
- computeSelectedLayoutSegment: function() {
915
- return computeSelectedLayoutSegment;
916
- },
917
- getSegmentValue: function() {
918
- return getSegmentValue;
919
- },
920
- getSelectedLayoutSegmentPath: function() {
921
- return getSelectedLayoutSegmentPath;
922
- },
923
- isGroupSegment: function() {
924
- return isGroupSegment;
925
- },
926
- isParallelRouteSegment: function() {
927
- return isParallelRouteSegment;
928
- }
929
- });
930
- function getSegmentValue(segment) {
931
- return Array.isArray(segment) ? segment[1] : segment;
932
- }
933
- function isGroupSegment(segment) {
934
- return segment[0] === "(" && segment.endsWith(")");
935
- }
936
- function isParallelRouteSegment(segment) {
937
- return segment.startsWith("@") && segment !== "@children";
938
- }
939
- function addSearchParamsIfPageSegment(segment, searchParams) {
940
- const isPageSegment = segment.includes(PAGE_SEGMENT_KEY);
941
- if (isPageSegment) {
942
- const stringifiedQuery = JSON.stringify(searchParams);
943
- return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
944
- }
945
- return segment;
946
- }
947
- function computeSelectedLayoutSegment(segments, parallelRouteKey) {
948
- if (!segments || segments.length === 0) {
949
- return null;
950
- }
951
- const rawSegment = parallelRouteKey === "children" ? segments[0] : segments[segments.length - 1];
952
- return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
953
- }
954
- function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
955
- var _a;
956
- let node;
957
- if (first) {
958
- node = tree[1][parallelRouteKey];
959
- } else {
960
- const parallelRoutes = tree[1];
961
- node = (_a = parallelRoutes.children) != null ? _a : Object.values(parallelRoutes)[0];
962
- }
963
- if (!node) return segmentPath;
964
- const segment = node[0];
965
- let segmentValue = getSegmentValue(segment);
966
- if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {
967
- return segmentPath;
968
- }
969
- segmentPath.push(segmentValue);
970
- return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
971
- }
972
- var PAGE_SEGMENT_KEY = "__PAGE__";
973
- var DEFAULT_SEGMENT_KEY = "__DEFAULT__";
974
- var NOT_FOUND_SEGMENT_KEY = "/_not-found";
975
- }
976
- });
977
-
978
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/app-paths.js
979
- var require_app_paths = __commonJS({
980
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/app-paths.js"(exports$1) {
981
- Object.defineProperty(exports$1, "__esModule", {
982
- value: true
983
- });
984
- function _export(target, all) {
985
- for (var name in all) Object.defineProperty(target, name, {
986
- enumerable: true,
987
- get: all[name]
988
- });
989
- }
990
- _export(exports$1, {
991
- normalizeAppPath: function() {
992
- return normalizeAppPath;
993
- },
994
- normalizeRscURL: function() {
995
- return normalizeRscURL;
996
- }
997
- });
998
- var _ensureleadingslash = require_ensure_leading_slash();
999
- var _segment = require_segment();
1000
- function normalizeAppPath(route) {
1001
- return (0, _ensureleadingslash.ensureLeadingSlash)(route.split("/").reduce((pathname, segment, index, segments) => {
1002
- if (!segment) {
1003
- return pathname;
1004
- }
1005
- if ((0, _segment.isGroupSegment)(segment)) {
1006
- return pathname;
1007
- }
1008
- if (segment[0] === "@") {
1009
- return pathname;
1010
- }
1011
- if ((segment === "page" || segment === "route") && index === segments.length - 1) {
1012
- return pathname;
1013
- }
1014
- return `${pathname}/${segment}`;
1015
- }, ""));
1016
- }
1017
- function normalizeRscURL(url) {
1018
- return url.replace(
1019
- /\.rsc($|\?)/,
1020
- // $1 ensures `?` is preserved
1021
- "$1"
1022
- );
1023
- }
1024
- }
1025
- });
1026
-
1027
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interception-routes.js
1028
- var require_interception_routes = __commonJS({
1029
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interception-routes.js"(exports$1) {
1030
- Object.defineProperty(exports$1, "__esModule", {
1031
- value: true
1032
- });
1033
- function _export(target, all) {
1034
- for (var name in all) Object.defineProperty(target, name, {
1035
- enumerable: true,
1036
- get: all[name]
1037
- });
1038
- }
1039
- _export(exports$1, {
1040
- INTERCEPTION_ROUTE_MARKERS: function() {
1041
- return INTERCEPTION_ROUTE_MARKERS;
1042
- },
1043
- extractInterceptionRouteInformation: function() {
1044
- return extractInterceptionRouteInformation;
1045
- },
1046
- isInterceptionRouteAppPath: function() {
1047
- return isInterceptionRouteAppPath;
1048
- }
1049
- });
1050
- var _apppaths = require_app_paths();
1051
- var INTERCEPTION_ROUTE_MARKERS = [
1052
- "(..)(..)",
1053
- "(.)",
1054
- "(..)",
1055
- "(...)"
1056
- ];
1057
- function isInterceptionRouteAppPath(path) {
1058
- return path.split("/").find((segment) => INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m))) !== void 0;
1059
- }
1060
- function extractInterceptionRouteInformation(path) {
1061
- let interceptingRoute;
1062
- let marker;
1063
- let interceptedRoute;
1064
- for (const segment of path.split("/")) {
1065
- marker = INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
1066
- if (marker) {
1067
- [interceptingRoute, interceptedRoute] = path.split(marker, 2);
1068
- break;
1069
- }
1070
- }
1071
- if (!interceptingRoute || !marker || !interceptedRoute) {
1072
- throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
1073
- value: "E269",
1074
- enumerable: false,
1075
- configurable: true
1076
- });
1077
- }
1078
- interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute);
1079
- switch (marker) {
1080
- case "(.)":
1081
- if (interceptingRoute === "/") {
1082
- interceptedRoute = `/${interceptedRoute}`;
1083
- } else {
1084
- interceptedRoute = interceptingRoute + "/" + interceptedRoute;
1085
- }
1086
- break;
1087
- case "(..)":
1088
- if (interceptingRoute === "/") {
1089
- throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), "__NEXT_ERROR_CODE", {
1090
- value: "E207",
1091
- enumerable: false,
1092
- configurable: true
1093
- });
1094
- }
1095
- interceptedRoute = interceptingRoute.split("/").slice(0, -1).concat(interceptedRoute).join("/");
1096
- break;
1097
- case "(...)":
1098
- interceptedRoute = "/" + interceptedRoute;
1099
- break;
1100
- case "(..)(..)":
1101
- const splitInterceptingRoute = interceptingRoute.split("/");
1102
- if (splitInterceptingRoute.length <= 2) {
1103
- throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), "__NEXT_ERROR_CODE", {
1104
- value: "E486",
1105
- enumerable: false,
1106
- configurable: true
1107
- });
1108
- }
1109
- interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join("/");
1110
- break;
1111
- default:
1112
- throw Object.defineProperty(new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
1113
- value: "E112",
1114
- enumerable: false,
1115
- configurable: true
1116
- });
1117
- }
1118
- return {
1119
- interceptingRoute,
1120
- interceptedRoute
1121
- };
1122
- }
1123
- }
1124
- });
1125
-
1126
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js
1127
- var require_is_dynamic = __commonJS({
1128
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js"(exports$1) {
1129
- Object.defineProperty(exports$1, "__esModule", {
1130
- value: true
1131
- });
1132
- Object.defineProperty(exports$1, "isDynamicRoute", {
1133
- enumerable: true,
1134
- get: function() {
1135
- return isDynamicRoute;
1136
- }
1137
- });
1138
- var _interceptionroutes = require_interception_routes();
1139
- var TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
1140
- var TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
1141
- function isDynamicRoute(route, strict = true) {
1142
- if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {
1143
- route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
1144
- }
1145
- if (strict) {
1146
- return TEST_STRICT_ROUTE.test(route);
1147
- }
1148
- return TEST_ROUTE.test(route);
1149
- }
1150
- }
1151
- });
1152
-
1153
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/index.js
1154
- var require_utils2 = __commonJS({
1155
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/index.js"(exports$1) {
1156
- Object.defineProperty(exports$1, "__esModule", {
1157
- value: true
1158
- });
1159
- function _export(target, all) {
1160
- for (var name in all) Object.defineProperty(target, name, {
1161
- enumerable: true,
1162
- get: all[name]
1163
- });
1164
- }
1165
- _export(exports$1, {
1166
- getSortedRouteObjects: function() {
1167
- return _sortedroutes.getSortedRouteObjects;
1168
- },
1169
- getSortedRoutes: function() {
1170
- return _sortedroutes.getSortedRoutes;
1171
- },
1172
- isDynamicRoute: function() {
1173
- return _isdynamic.isDynamicRoute;
1174
- }
1175
- });
1176
- var _sortedroutes = require_sorted_routes();
1177
- var _isdynamic = require_is_dynamic();
1178
- }
1179
- });
1180
-
1181
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/path-to-regexp/index.js
1182
- var require_path_to_regexp = __commonJS({
1183
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/path-to-regexp/index.js"(exports$1, module) {
1184
- (() => {
1185
- if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
1186
- var e = {};
1187
- (() => {
1188
- var n = e;
1189
- Object.defineProperty(n, "__esModule", { value: true });
1190
- n.pathToRegexp = n.tokensToRegexp = n.regexpToFunction = n.match = n.tokensToFunction = n.compile = n.parse = void 0;
1191
- function lexer(e2) {
1192
- var n2 = [];
1193
- var r = 0;
1194
- while (r < e2.length) {
1195
- var t = e2[r];
1196
- if (t === "*" || t === "+" || t === "?") {
1197
- n2.push({ type: "MODIFIER", index: r, value: e2[r++] });
1198
- continue;
1199
- }
1200
- if (t === "\\") {
1201
- n2.push({ type: "ESCAPED_CHAR", index: r++, value: e2[r++] });
1202
- continue;
1203
- }
1204
- if (t === "{") {
1205
- n2.push({ type: "OPEN", index: r, value: e2[r++] });
1206
- continue;
1207
- }
1208
- if (t === "}") {
1209
- n2.push({ type: "CLOSE", index: r, value: e2[r++] });
1210
- continue;
1211
- }
1212
- if (t === ":") {
1213
- var a = "";
1214
- var i = r + 1;
1215
- while (i < e2.length) {
1216
- var o = e2.charCodeAt(i);
1217
- if (o >= 48 && o <= 57 || o >= 65 && o <= 90 || o >= 97 && o <= 122 || o === 95) {
1218
- a += e2[i++];
1219
- continue;
1220
- }
1221
- break;
1222
- }
1223
- if (!a) throw new TypeError("Missing parameter name at ".concat(r));
1224
- n2.push({ type: "NAME", index: r, value: a });
1225
- r = i;
1226
- continue;
1227
- }
1228
- if (t === "(") {
1229
- var c = 1;
1230
- var f = "";
1231
- var i = r + 1;
1232
- if (e2[i] === "?") {
1233
- throw new TypeError('Pattern cannot start with "?" at '.concat(i));
1234
- }
1235
- while (i < e2.length) {
1236
- if (e2[i] === "\\") {
1237
- f += e2[i++] + e2[i++];
1238
- continue;
1239
- }
1240
- if (e2[i] === ")") {
1241
- c--;
1242
- if (c === 0) {
1243
- i++;
1244
- break;
1245
- }
1246
- } else if (e2[i] === "(") {
1247
- c++;
1248
- if (e2[i + 1] !== "?") {
1249
- throw new TypeError("Capturing groups are not allowed at ".concat(i));
1250
- }
1251
- }
1252
- f += e2[i++];
1253
- }
1254
- if (c) throw new TypeError("Unbalanced pattern at ".concat(r));
1255
- if (!f) throw new TypeError("Missing pattern at ".concat(r));
1256
- n2.push({ type: "PATTERN", index: r, value: f });
1257
- r = i;
1258
- continue;
1259
- }
1260
- n2.push({ type: "CHAR", index: r, value: e2[r++] });
1261
- }
1262
- n2.push({ type: "END", index: r, value: "" });
1263
- return n2;
1264
- }
1265
- function parse(e2, n2) {
1266
- if (n2 === void 0) {
1267
- n2 = {};
1268
- }
1269
- var r = lexer(e2);
1270
- var t = n2.prefixes, a = t === void 0 ? "./" : t, i = n2.delimiter, o = i === void 0 ? "/#?" : i;
1271
- var c = [];
1272
- var f = 0;
1273
- var u = 0;
1274
- var p = "";
1275
- var tryConsume = function(e3) {
1276
- if (u < r.length && r[u].type === e3) return r[u++].value;
1277
- };
1278
- var mustConsume = function(e3) {
1279
- var n3 = tryConsume(e3);
1280
- if (n3 !== void 0) return n3;
1281
- var t2 = r[u], a2 = t2.type, i2 = t2.index;
1282
- throw new TypeError("Unexpected ".concat(a2, " at ").concat(i2, ", expected ").concat(e3));
1283
- };
1284
- var consumeText = function() {
1285
- var e3 = "";
1286
- var n3;
1287
- while (n3 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) {
1288
- e3 += n3;
1289
- }
1290
- return e3;
1291
- };
1292
- var isSafe = function(e3) {
1293
- for (var n3 = 0, r2 = o; n3 < r2.length; n3++) {
1294
- var t2 = r2[n3];
1295
- if (e3.indexOf(t2) > -1) return true;
1296
- }
1297
- return false;
1298
- };
1299
- var safePattern = function(e3) {
1300
- var n3 = c[c.length - 1];
1301
- var r2 = e3 || (n3 && typeof n3 === "string" ? n3 : "");
1302
- if (n3 && !r2) {
1303
- throw new TypeError('Must have text between two parameters, missing text after "'.concat(n3.name, '"'));
1304
- }
1305
- if (!r2 || isSafe(r2)) return "[^".concat(escapeString(o), "]+?");
1306
- return "(?:(?!".concat(escapeString(r2), ")[^").concat(escapeString(o), "])+?");
1307
- };
1308
- while (u < r.length) {
1309
- var v = tryConsume("CHAR");
1310
- var s = tryConsume("NAME");
1311
- var d = tryConsume("PATTERN");
1312
- if (s || d) {
1313
- var g = v || "";
1314
- if (a.indexOf(g) === -1) {
1315
- p += g;
1316
- g = "";
1317
- }
1318
- if (p) {
1319
- c.push(p);
1320
- p = "";
1321
- }
1322
- c.push({ name: s || f++, prefix: g, suffix: "", pattern: d || safePattern(g), modifier: tryConsume("MODIFIER") || "" });
1323
- continue;
1324
- }
1325
- var x = v || tryConsume("ESCAPED_CHAR");
1326
- if (x) {
1327
- p += x;
1328
- continue;
1329
- }
1330
- if (p) {
1331
- c.push(p);
1332
- p = "";
1333
- }
1334
- var h = tryConsume("OPEN");
1335
- if (h) {
1336
- var g = consumeText();
1337
- var l = tryConsume("NAME") || "";
1338
- var m = tryConsume("PATTERN") || "";
1339
- var T = consumeText();
1340
- mustConsume("CLOSE");
1341
- c.push({ name: l || (m ? f++ : ""), pattern: l && !m ? safePattern(g) : m, prefix: g, suffix: T, modifier: tryConsume("MODIFIER") || "" });
1342
- continue;
1343
- }
1344
- mustConsume("END");
1345
- }
1346
- return c;
1347
- }
1348
- n.parse = parse;
1349
- function compile(e2, n2) {
1350
- return tokensToFunction(parse(e2, n2), n2);
1351
- }
1352
- n.compile = compile;
1353
- function tokensToFunction(e2, n2) {
1354
- if (n2 === void 0) {
1355
- n2 = {};
1356
- }
1357
- var r = flags(n2);
1358
- var t = n2.encode, a = t === void 0 ? function(e3) {
1359
- return e3;
1360
- } : t, i = n2.validate, o = i === void 0 ? true : i;
1361
- var c = e2.map((function(e3) {
1362
- if (typeof e3 === "object") {
1363
- return new RegExp("^(?:".concat(e3.pattern, ")$"), r);
1364
- }
1365
- }));
1366
- return function(n3) {
1367
- var r2 = "";
1368
- for (var t2 = 0; t2 < e2.length; t2++) {
1369
- var i2 = e2[t2];
1370
- if (typeof i2 === "string") {
1371
- r2 += i2;
1372
- continue;
1373
- }
1374
- var f = n3 ? n3[i2.name] : void 0;
1375
- var u = i2.modifier === "?" || i2.modifier === "*";
1376
- var p = i2.modifier === "*" || i2.modifier === "+";
1377
- if (Array.isArray(f)) {
1378
- if (!p) {
1379
- throw new TypeError('Expected "'.concat(i2.name, '" to not repeat, but got an array'));
1380
- }
1381
- if (f.length === 0) {
1382
- if (u) continue;
1383
- throw new TypeError('Expected "'.concat(i2.name, '" to not be empty'));
1384
- }
1385
- for (var v = 0; v < f.length; v++) {
1386
- var s = a(f[v], i2);
1387
- if (o && !c[t2].test(s)) {
1388
- throw new TypeError('Expected all "'.concat(i2.name, '" to match "').concat(i2.pattern, '", but got "').concat(s, '"'));
1389
- }
1390
- r2 += i2.prefix + s + i2.suffix;
1391
- }
1392
- continue;
1393
- }
1394
- if (typeof f === "string" || typeof f === "number") {
1395
- var s = a(String(f), i2);
1396
- if (o && !c[t2].test(s)) {
1397
- throw new TypeError('Expected "'.concat(i2.name, '" to match "').concat(i2.pattern, '", but got "').concat(s, '"'));
1398
- }
1399
- r2 += i2.prefix + s + i2.suffix;
1400
- continue;
1401
- }
1402
- if (u) continue;
1403
- var d = p ? "an array" : "a string";
1404
- throw new TypeError('Expected "'.concat(i2.name, '" to be ').concat(d));
1405
- }
1406
- return r2;
1407
- };
1408
- }
1409
- n.tokensToFunction = tokensToFunction;
1410
- function match(e2, n2) {
1411
- var r = [];
1412
- var t = pathToRegexp(e2, r, n2);
1413
- return regexpToFunction(t, r, n2);
1414
- }
1415
- n.match = match;
1416
- function regexpToFunction(e2, n2, r) {
1417
- if (r === void 0) {
1418
- r = {};
1419
- }
1420
- var t = r.decode, a = t === void 0 ? function(e3) {
1421
- return e3;
1422
- } : t;
1423
- return function(r2) {
1424
- var t2 = e2.exec(r2);
1425
- if (!t2) return false;
1426
- var i = t2[0], o = t2.index;
1427
- var c = /* @__PURE__ */ Object.create(null);
1428
- var _loop_1 = function(e3) {
1429
- if (t2[e3] === void 0) return "continue";
1430
- var r3 = n2[e3 - 1];
1431
- if (r3.modifier === "*" || r3.modifier === "+") {
1432
- c[r3.name] = t2[e3].split(r3.prefix + r3.suffix).map((function(e4) {
1433
- return a(e4, r3);
1434
- }));
1435
- } else {
1436
- c[r3.name] = a(t2[e3], r3);
1437
- }
1438
- };
1439
- for (var f = 1; f < t2.length; f++) {
1440
- _loop_1(f);
1441
- }
1442
- return { path: i, index: o, params: c };
1443
- };
1444
- }
1445
- n.regexpToFunction = regexpToFunction;
1446
- function escapeString(e2) {
1447
- return e2.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
1448
- }
1449
- function flags(e2) {
1450
- return e2 && e2.sensitive ? "" : "i";
1451
- }
1452
- function regexpToRegexp(e2, n2) {
1453
- if (!n2) return e2;
1454
- var r = /\((?:\?<(.*?)>)?(?!\?)/g;
1455
- var t = 0;
1456
- var a = r.exec(e2.source);
1457
- while (a) {
1458
- n2.push({ name: a[1] || t++, prefix: "", suffix: "", modifier: "", pattern: "" });
1459
- a = r.exec(e2.source);
1460
- }
1461
- return e2;
1462
- }
1463
- function arrayToRegexp(e2, n2, r) {
1464
- var t = e2.map((function(e3) {
1465
- return pathToRegexp(e3, n2, r).source;
1466
- }));
1467
- return new RegExp("(?:".concat(t.join("|"), ")"), flags(r));
1468
- }
1469
- function stringToRegexp(e2, n2, r) {
1470
- return tokensToRegexp(parse(e2, r), n2, r);
1471
- }
1472
- function tokensToRegexp(e2, n2, r) {
1473
- if (r === void 0) {
1474
- r = {};
1475
- }
1476
- var t = r.strict, a = t === void 0 ? false : t, i = r.start, o = i === void 0 ? true : i, c = r.end, f = c === void 0 ? true : c, u = r.encode, p = u === void 0 ? function(e3) {
1477
- return e3;
1478
- } : u, v = r.delimiter, s = v === void 0 ? "/#?" : v, d = r.endsWith, g = d === void 0 ? "" : d;
1479
- var x = "[".concat(escapeString(g), "]|$");
1480
- var h = "[".concat(escapeString(s), "]");
1481
- var l = o ? "^" : "";
1482
- for (var m = 0, T = e2; m < T.length; m++) {
1483
- var E = T[m];
1484
- if (typeof E === "string") {
1485
- l += escapeString(p(E));
1486
- } else {
1487
- var w = escapeString(p(E.prefix));
1488
- var y = escapeString(p(E.suffix));
1489
- if (E.pattern) {
1490
- if (n2) n2.push(E);
1491
- if (w || y) {
1492
- if (E.modifier === "+" || E.modifier === "*") {
1493
- var R = E.modifier === "*" ? "?" : "";
1494
- l += "(?:".concat(w, "((?:").concat(E.pattern, ")(?:").concat(y).concat(w, "(?:").concat(E.pattern, "))*)").concat(y, ")").concat(R);
1495
- } else {
1496
- l += "(?:".concat(w, "(").concat(E.pattern, ")").concat(y, ")").concat(E.modifier);
1497
- }
1498
- } else {
1499
- if (E.modifier === "+" || E.modifier === "*") {
1500
- throw new TypeError('Can not repeat "'.concat(E.name, '" without a prefix and suffix'));
1501
- }
1502
- l += "(".concat(E.pattern, ")").concat(E.modifier);
1503
- }
1504
- } else {
1505
- l += "(?:".concat(w).concat(y, ")").concat(E.modifier);
1506
- }
1507
- }
1508
- }
1509
- if (f) {
1510
- if (!a) l += "".concat(h, "?");
1511
- l += !r.endsWith ? "$" : "(?=".concat(x, ")");
1512
- } else {
1513
- var A = e2[e2.length - 1];
1514
- var _ = typeof A === "string" ? h.indexOf(A[A.length - 1]) > -1 : A === void 0;
1515
- if (!a) {
1516
- l += "(?:".concat(h, "(?=").concat(x, "))?");
1517
- }
1518
- if (!_) {
1519
- l += "(?=".concat(h, "|").concat(x, ")");
1520
- }
1521
- }
1522
- return new RegExp(l, flags(r));
1523
- }
1524
- n.tokensToRegexp = tokensToRegexp;
1525
- function pathToRegexp(e2, n2, r) {
1526
- if (e2 instanceof RegExp) return regexpToRegexp(e2, n2);
1527
- if (Array.isArray(e2)) return arrayToRegexp(e2, n2, r);
1528
- return stringToRegexp(e2, n2, r);
1529
- }
1530
- n.pathToRegexp = pathToRegexp;
1531
- })();
1532
- module.exports = e;
1533
- })();
1534
- }
1535
- });
1536
-
1537
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/route-pattern-normalizer.js
1538
- var require_route_pattern_normalizer = __commonJS({
1539
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/route-pattern-normalizer.js"(exports$1) {
1540
- Object.defineProperty(exports$1, "__esModule", {
1541
- value: true
1542
- });
1543
- function _export(target, all) {
1544
- for (var name in all) Object.defineProperty(target, name, {
1545
- enumerable: true,
1546
- get: all[name]
1547
- });
1548
- }
1549
- _export(exports$1, {
1550
- PARAM_SEPARATOR: function() {
1551
- return PARAM_SEPARATOR;
1552
- },
1553
- hasAdjacentParameterIssues: function() {
1554
- return hasAdjacentParameterIssues;
1555
- },
1556
- normalizeAdjacentParameters: function() {
1557
- return normalizeAdjacentParameters;
1558
- },
1559
- normalizeTokensForRegexp: function() {
1560
- return normalizeTokensForRegexp;
1561
- },
1562
- stripNormalizedSeparators: function() {
1563
- return stripNormalizedSeparators;
1564
- },
1565
- stripParameterSeparators: function() {
1566
- return stripParameterSeparators;
1567
- }
1568
- });
1569
- var PARAM_SEPARATOR = "_NEXTSEP_";
1570
- function hasAdjacentParameterIssues(route) {
1571
- if (typeof route !== "string") return false;
1572
- if (/\/\(\.{1,3}\):[^/\s]+/.test(route)) {
1573
- return true;
1574
- }
1575
- if (/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(route)) {
1576
- return true;
1577
- }
1578
- return false;
1579
- }
1580
- function normalizeAdjacentParameters(route) {
1581
- let normalized = route;
1582
- normalized = normalized.replace(/(\([^)]*\)):([^/\s]+)/g, `$1${PARAM_SEPARATOR}:$2`);
1583
- normalized = normalized.replace(/:([^:/\s)]+)(?=:)/g, `:$1${PARAM_SEPARATOR}`);
1584
- return normalized;
1585
- }
1586
- function normalizeTokensForRegexp(tokens) {
1587
- return tokens.map((token) => {
1588
- if (typeof token === "object" && token !== null && // Not all token objects have 'modifier' property (e.g., simple text tokens)
1589
- "modifier" in token && // Only repeating modifiers (* or +) cause the validation error
1590
- // Other modifiers like '?' (optional) are fine
1591
- (token.modifier === "*" || token.modifier === "+") && // Token objects can have different shapes depending on route pattern
1592
- "prefix" in token && "suffix" in token && // Both prefix and suffix must be empty strings
1593
- // This is what causes the validation error in path-to-regexp
1594
- token.prefix === "" && token.suffix === "") {
1595
- return __spreadProps(__spreadValues({}, token), {
1596
- prefix: "/"
1597
- });
1598
- }
1599
- return token;
1600
- });
1601
- }
1602
- function stripNormalizedSeparators(pathname) {
1603
- return pathname.replace(new RegExp(`\\)${PARAM_SEPARATOR}`, "g"), ")");
1604
- }
1605
- function stripParameterSeparators(params) {
1606
- const cleaned = {};
1607
- for (const [key, value] of Object.entries(params)) {
1608
- if (typeof value === "string") {
1609
- cleaned[key] = value.replace(new RegExp(`^${PARAM_SEPARATOR}`), "");
1610
- } else if (Array.isArray(value)) {
1611
- cleaned[key] = value.map((item) => typeof item === "string" ? item.replace(new RegExp(`^${PARAM_SEPARATOR}`), "") : item);
1612
- } else {
1613
- cleaned[key] = value;
1614
- }
1615
- }
1616
- return cleaned;
1617
- }
1618
- }
1619
- });
1620
-
1621
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js
1622
- var require_route_match_utils = __commonJS({
1623
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js"(exports$1) {
1624
- Object.defineProperty(exports$1, "__esModule", {
1625
- value: true
1626
- });
1627
- function _export(target, all) {
1628
- for (var name in all) Object.defineProperty(target, name, {
1629
- enumerable: true,
1630
- get: all[name]
1631
- });
1632
- }
1633
- _export(exports$1, {
1634
- safeCompile: function() {
1635
- return safeCompile;
1636
- },
1637
- safePathToRegexp: function() {
1638
- return safePathToRegexp;
1639
- },
1640
- safeRegexpToFunction: function() {
1641
- return safeRegexpToFunction;
1642
- },
1643
- safeRouteMatcher: function() {
1644
- return safeRouteMatcher;
1645
- }
1646
- });
1647
- var _pathtoregexp = require_path_to_regexp();
1648
- var _routepatternnormalizer = require_route_pattern_normalizer();
1649
- function safePathToRegexp(route, keys, options) {
1650
- if (typeof route !== "string") {
1651
- return (0, _pathtoregexp.pathToRegexp)(route, keys, options);
1652
- }
1653
- const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
1654
- const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
1655
- try {
1656
- return (0, _pathtoregexp.pathToRegexp)(routeToUse, keys, options);
1657
- } catch (error) {
1658
- if (!needsNormalization) {
1659
- try {
1660
- const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
1661
- return (0, _pathtoregexp.pathToRegexp)(normalizedRoute, keys, options);
1662
- } catch (retryError) {
1663
- throw error;
1664
- }
1665
- }
1666
- throw error;
1667
- }
1668
- }
1669
- function safeCompile(route, options) {
1670
- const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
1671
- const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
1672
- try {
1673
- const compiler = (0, _pathtoregexp.compile)(routeToUse, options);
1674
- if (needsNormalization) {
1675
- return (params) => {
1676
- return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
1677
- };
1678
- }
1679
- return compiler;
1680
- } catch (error) {
1681
- if (!needsNormalization) {
1682
- try {
1683
- const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
1684
- const compiler = (0, _pathtoregexp.compile)(normalizedRoute, options);
1685
- return (params) => {
1686
- return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
1687
- };
1688
- } catch (retryError) {
1689
- throw error;
1690
- }
1691
- }
1692
- throw error;
1693
- }
1694
- }
1695
- function safeRegexpToFunction(regexp, keys) {
1696
- const originalMatcher = (0, _pathtoregexp.regexpToFunction)(regexp, keys || []);
1697
- return (pathname) => {
1698
- const result = originalMatcher(pathname);
1699
- if (!result) return false;
1700
- return __spreadProps(__spreadValues({}, result), {
1701
- params: (0, _routepatternnormalizer.stripParameterSeparators)(result.params)
1702
- });
1703
- };
1704
- }
1705
- function safeRouteMatcher(matcherFn) {
1706
- return (pathname) => {
1707
- const result = matcherFn(pathname);
1708
- if (!result) return false;
1709
- return (0, _routepatternnormalizer.stripParameterSeparators)(result);
1710
- };
1711
- }
1712
- }
1713
- });
1714
-
1715
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-matcher.js
1716
- var require_route_matcher = __commonJS({
1717
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-matcher.js"(exports$1) {
1718
- Object.defineProperty(exports$1, "__esModule", {
1719
- value: true
1720
- });
1721
- Object.defineProperty(exports$1, "getRouteMatcher", {
1722
- enumerable: true,
1723
- get: function() {
1724
- return getRouteMatcher;
1725
- }
1726
- });
1727
- var _utils = require_utils();
1728
- var _routematchutils = require_route_match_utils();
1729
- function getRouteMatcher({ re, groups }) {
1730
- const rawMatcher = (pathname) => {
1731
- const routeMatch = re.exec(pathname);
1732
- if (!routeMatch) return false;
1733
- const decode = (param) => {
1734
- try {
1735
- return decodeURIComponent(param);
1736
- } catch (e) {
1737
- throw Object.defineProperty(new _utils.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
1738
- value: "E528",
1739
- enumerable: false,
1740
- configurable: true
1741
- });
1742
- }
1743
- };
1744
- const params = {};
1745
- for (const [key, group] of Object.entries(groups)) {
1746
- const match = routeMatch[group.pos];
1747
- if (match !== void 0) {
1748
- if (group.repeat) {
1749
- params[key] = match.split("/").map((entry) => decode(entry));
1750
- } else {
1751
- params[key] = decode(match);
1752
- }
1753
- }
1754
- }
1755
- return params;
1756
- };
1757
- return (0, _routematchutils.safeRouteMatcher)(rawMatcher);
1758
- }
1759
- }
1760
- });
1761
-
1762
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/constants.js
1763
- var require_constants = __commonJS({
1764
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/constants.js"(exports$1) {
1765
- Object.defineProperty(exports$1, "__esModule", {
1766
- value: true
1767
- });
1768
- function _export(target, all) {
1769
- for (var name in all) Object.defineProperty(target, name, {
1770
- enumerable: true,
1771
- get: all[name]
1772
- });
1773
- }
1774
- _export(exports$1, {
1775
- ACTION_SUFFIX: function() {
1776
- return ACTION_SUFFIX;
1777
- },
1778
- APP_DIR_ALIAS: function() {
1779
- return APP_DIR_ALIAS;
1780
- },
1781
- CACHE_ONE_YEAR: function() {
1782
- return CACHE_ONE_YEAR;
1783
- },
1784
- DOT_NEXT_ALIAS: function() {
1785
- return DOT_NEXT_ALIAS;
1786
- },
1787
- ESLINT_DEFAULT_DIRS: function() {
1788
- return ESLINT_DEFAULT_DIRS;
1789
- },
1790
- GSP_NO_RETURNED_VALUE: function() {
1791
- return GSP_NO_RETURNED_VALUE;
1792
- },
1793
- GSSP_COMPONENT_MEMBER_ERROR: function() {
1794
- return GSSP_COMPONENT_MEMBER_ERROR;
1795
- },
1796
- GSSP_NO_RETURNED_VALUE: function() {
1797
- return GSSP_NO_RETURNED_VALUE;
1798
- },
1799
- HTML_CONTENT_TYPE_HEADER: function() {
1800
- return HTML_CONTENT_TYPE_HEADER;
1801
- },
1802
- INFINITE_CACHE: function() {
1803
- return INFINITE_CACHE;
1804
- },
1805
- INSTRUMENTATION_HOOK_FILENAME: function() {
1806
- return INSTRUMENTATION_HOOK_FILENAME;
1807
- },
1808
- JSON_CONTENT_TYPE_HEADER: function() {
1809
- return JSON_CONTENT_TYPE_HEADER;
1810
- },
1811
- MATCHED_PATH_HEADER: function() {
1812
- return MATCHED_PATH_HEADER;
1813
- },
1814
- MIDDLEWARE_FILENAME: function() {
1815
- return MIDDLEWARE_FILENAME;
1816
- },
1817
- MIDDLEWARE_LOCATION_REGEXP: function() {
1818
- return MIDDLEWARE_LOCATION_REGEXP;
1819
- },
1820
- NEXT_BODY_SUFFIX: function() {
1821
- return NEXT_BODY_SUFFIX;
1822
- },
1823
- NEXT_CACHE_IMPLICIT_TAG_ID: function() {
1824
- return NEXT_CACHE_IMPLICIT_TAG_ID;
1825
- },
1826
- NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
1827
- return NEXT_CACHE_REVALIDATED_TAGS_HEADER;
1828
- },
1829
- NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
1830
- return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER;
1831
- },
1832
- NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
1833
- return NEXT_CACHE_SOFT_TAG_MAX_LENGTH;
1834
- },
1835
- NEXT_CACHE_TAGS_HEADER: function() {
1836
- return NEXT_CACHE_TAGS_HEADER;
1837
- },
1838
- NEXT_CACHE_TAG_MAX_ITEMS: function() {
1839
- return NEXT_CACHE_TAG_MAX_ITEMS;
1840
- },
1841
- NEXT_CACHE_TAG_MAX_LENGTH: function() {
1842
- return NEXT_CACHE_TAG_MAX_LENGTH;
1843
- },
1844
- NEXT_DATA_SUFFIX: function() {
1845
- return NEXT_DATA_SUFFIX;
1846
- },
1847
- NEXT_INTERCEPTION_MARKER_PREFIX: function() {
1848
- return NEXT_INTERCEPTION_MARKER_PREFIX;
1849
- },
1850
- NEXT_META_SUFFIX: function() {
1851
- return NEXT_META_SUFFIX;
1852
- },
1853
- NEXT_QUERY_PARAM_PREFIX: function() {
1854
- return NEXT_QUERY_PARAM_PREFIX;
1855
- },
1856
- NEXT_RESUME_HEADER: function() {
1857
- return NEXT_RESUME_HEADER;
1858
- },
1859
- NON_STANDARD_NODE_ENV: function() {
1860
- return NON_STANDARD_NODE_ENV;
1861
- },
1862
- PAGES_DIR_ALIAS: function() {
1863
- return PAGES_DIR_ALIAS;
1864
- },
1865
- PRERENDER_REVALIDATE_HEADER: function() {
1866
- return PRERENDER_REVALIDATE_HEADER;
1867
- },
1868
- PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
1869
- return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
1870
- },
1871
- PROXY_FILENAME: function() {
1872
- return PROXY_FILENAME;
1873
- },
1874
- PROXY_LOCATION_REGEXP: function() {
1875
- return PROXY_LOCATION_REGEXP;
1876
- },
1877
- PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
1878
- return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
1879
- },
1880
- ROOT_DIR_ALIAS: function() {
1881
- return ROOT_DIR_ALIAS;
1882
- },
1883
- RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
1884
- return RSC_ACTION_CLIENT_WRAPPER_ALIAS;
1885
- },
1886
- RSC_ACTION_ENCRYPTION_ALIAS: function() {
1887
- return RSC_ACTION_ENCRYPTION_ALIAS;
1888
- },
1889
- RSC_ACTION_PROXY_ALIAS: function() {
1890
- return RSC_ACTION_PROXY_ALIAS;
1891
- },
1892
- RSC_ACTION_VALIDATE_ALIAS: function() {
1893
- return RSC_ACTION_VALIDATE_ALIAS;
1894
- },
1895
- RSC_CACHE_WRAPPER_ALIAS: function() {
1896
- return RSC_CACHE_WRAPPER_ALIAS;
1897
- },
1898
- RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
1899
- return RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS;
1900
- },
1901
- RSC_MOD_REF_PROXY_ALIAS: function() {
1902
- return RSC_MOD_REF_PROXY_ALIAS;
1903
- },
1904
- RSC_SEGMENTS_DIR_SUFFIX: function() {
1905
- return RSC_SEGMENTS_DIR_SUFFIX;
1906
- },
1907
- RSC_SEGMENT_SUFFIX: function() {
1908
- return RSC_SEGMENT_SUFFIX;
1909
- },
1910
- RSC_SUFFIX: function() {
1911
- return RSC_SUFFIX;
1912
- },
1913
- SERVER_PROPS_EXPORT_ERROR: function() {
1914
- return SERVER_PROPS_EXPORT_ERROR;
1915
- },
1916
- SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
1917
- return SERVER_PROPS_GET_INIT_PROPS_CONFLICT;
1918
- },
1919
- SERVER_PROPS_SSG_CONFLICT: function() {
1920
- return SERVER_PROPS_SSG_CONFLICT;
1921
- },
1922
- SERVER_RUNTIME: function() {
1923
- return SERVER_RUNTIME;
1924
- },
1925
- SSG_FALLBACK_EXPORT_ERROR: function() {
1926
- return SSG_FALLBACK_EXPORT_ERROR;
1927
- },
1928
- SSG_GET_INITIAL_PROPS_CONFLICT: function() {
1929
- return SSG_GET_INITIAL_PROPS_CONFLICT;
1930
- },
1931
- STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
1932
- return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
1933
- },
1934
- TEXT_PLAIN_CONTENT_TYPE_HEADER: function() {
1935
- return TEXT_PLAIN_CONTENT_TYPE_HEADER;
1936
- },
1937
- UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
1938
- return UNSTABLE_REVALIDATE_RENAME_ERROR;
1939
- },
1940
- WEBPACK_LAYERS: function() {
1941
- return WEBPACK_LAYERS;
1942
- },
1943
- WEBPACK_RESOURCE_QUERIES: function() {
1944
- return WEBPACK_RESOURCE_QUERIES;
1945
- },
1946
- WEB_SOCKET_MAX_RECONNECTIONS: function() {
1947
- return WEB_SOCKET_MAX_RECONNECTIONS;
1948
- }
1949
- });
1950
- var TEXT_PLAIN_CONTENT_TYPE_HEADER = "text/plain";
1951
- var HTML_CONTENT_TYPE_HEADER = "text/html; charset=utf-8";
1952
- var JSON_CONTENT_TYPE_HEADER = "application/json; charset=utf-8";
1953
- var NEXT_QUERY_PARAM_PREFIX = "nxtP";
1954
- var NEXT_INTERCEPTION_MARKER_PREFIX = "nxtI";
1955
- var MATCHED_PATH_HEADER = "x-matched-path";
1956
- var PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
1957
- var PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = "x-prerender-revalidate-if-generated";
1958
- var RSC_SEGMENTS_DIR_SUFFIX = ".segments";
1959
- var RSC_SEGMENT_SUFFIX = ".segment.rsc";
1960
- var RSC_SUFFIX = ".rsc";
1961
- var ACTION_SUFFIX = ".action";
1962
- var NEXT_DATA_SUFFIX = ".json";
1963
- var NEXT_META_SUFFIX = ".meta";
1964
- var NEXT_BODY_SUFFIX = ".body";
1965
- var NEXT_CACHE_TAGS_HEADER = "x-next-cache-tags";
1966
- var NEXT_CACHE_REVALIDATED_TAGS_HEADER = "x-next-revalidated-tags";
1967
- var NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER = "x-next-revalidate-tag-token";
1968
- var NEXT_RESUME_HEADER = "next-resume";
1969
- var NEXT_CACHE_TAG_MAX_ITEMS = 128;
1970
- var NEXT_CACHE_TAG_MAX_LENGTH = 256;
1971
- var NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024;
1972
- var NEXT_CACHE_IMPLICIT_TAG_ID = "_N_T_";
1973
- var CACHE_ONE_YEAR = 31536e3;
1974
- var INFINITE_CACHE = 4294967294;
1975
- var MIDDLEWARE_FILENAME = "middleware";
1976
- var MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`;
1977
- var PROXY_FILENAME = "proxy";
1978
- var PROXY_LOCATION_REGEXP = `(?:src/)?${PROXY_FILENAME}`;
1979
- var INSTRUMENTATION_HOOK_FILENAME = "instrumentation";
1980
- var PAGES_DIR_ALIAS = "private-next-pages";
1981
- var DOT_NEXT_ALIAS = "private-dot-next";
1982
- var ROOT_DIR_ALIAS = "private-next-root-dir";
1983
- var APP_DIR_ALIAS = "private-next-app-dir";
1984
- var RSC_MOD_REF_PROXY_ALIAS = "private-next-rsc-mod-ref-proxy";
1985
- var RSC_ACTION_VALIDATE_ALIAS = "private-next-rsc-action-validate";
1986
- var RSC_ACTION_PROXY_ALIAS = "private-next-rsc-server-reference";
1987
- var RSC_CACHE_WRAPPER_ALIAS = "private-next-rsc-cache-wrapper";
1988
- var RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS = "private-next-rsc-track-dynamic-import";
1989
- var RSC_ACTION_ENCRYPTION_ALIAS = "private-next-rsc-action-encryption";
1990
- var RSC_ACTION_CLIENT_WRAPPER_ALIAS = "private-next-rsc-action-client-wrapper";
1991
- var PUBLIC_DIR_MIDDLEWARE_CONFLICT = `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`;
1992
- var SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`;
1993
- var SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`;
1994
- var SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`;
1995
- var STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`;
1996
- var SERVER_PROPS_EXPORT_ERROR = `pages with \`getServerSideProps\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`;
1997
- var GSP_NO_RETURNED_VALUE = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?";
1998
- var GSSP_NO_RETURNED_VALUE = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?";
1999
- var UNSTABLE_REVALIDATE_RENAME_ERROR = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.";
2000
- var GSSP_COMPONENT_MEMBER_ERROR = `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`;
2001
- var NON_STANDARD_NODE_ENV = `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`;
2002
- var SSG_FALLBACK_EXPORT_ERROR = `Pages with \`fallback\` enabled in \`getStaticPaths\` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export`;
2003
- var ESLINT_DEFAULT_DIRS = [
2004
- "app",
2005
- "pages",
2006
- "components",
2007
- "lib",
2008
- "src"
2009
- ];
2010
- var SERVER_RUNTIME = {
2011
- edge: "edge",
2012
- experimentalEdge: "experimental-edge",
2013
- nodejs: "nodejs"
2014
- };
2015
- var WEB_SOCKET_MAX_RECONNECTIONS = 12;
2016
- var WEBPACK_LAYERS_NAMES = {
2017
- /**
2018
- * The layer for the shared code between the client and server bundles.
2019
- */
2020
- shared: "shared",
2021
- /**
2022
- * The layer for server-only runtime and picking up `react-server` export conditions.
2023
- * Including app router RSC pages and app router custom routes and metadata routes.
2024
- */
2025
- reactServerComponents: "rsc",
2026
- /**
2027
- * Server Side Rendering layer for app (ssr).
2028
- */
2029
- serverSideRendering: "ssr",
2030
- /**
2031
- * The browser client bundle layer for actions.
2032
- */
2033
- actionBrowser: "action-browser",
2034
- /**
2035
- * The Node.js bundle layer for the API routes.
2036
- */
2037
- apiNode: "api-node",
2038
- /**
2039
- * The Edge Lite bundle layer for the API routes.
2040
- */
2041
- apiEdge: "api-edge",
2042
- /**
2043
- * The layer for the middleware code.
2044
- */
2045
- middleware: "middleware",
2046
- /**
2047
- * The layer for the instrumentation hooks.
2048
- */
2049
- instrument: "instrument",
2050
- /**
2051
- * The layer for assets on the edge.
2052
- */
2053
- edgeAsset: "edge-asset",
2054
- /**
2055
- * The browser client bundle layer for App directory.
2056
- */
2057
- appPagesBrowser: "app-pages-browser",
2058
- /**
2059
- * The browser client bundle layer for Pages directory.
2060
- */
2061
- pagesDirBrowser: "pages-dir-browser",
2062
- /**
2063
- * The Edge Lite bundle layer for Pages directory.
2064
- */
2065
- pagesDirEdge: "pages-dir-edge",
2066
- /**
2067
- * The Node.js bundle layer for Pages directory.
2068
- */
2069
- pagesDirNode: "pages-dir-node"
2070
- };
2071
- var WEBPACK_LAYERS = __spreadProps(__spreadValues({}, WEBPACK_LAYERS_NAMES), {
2072
- GROUP: {
2073
- builtinReact: [
2074
- WEBPACK_LAYERS_NAMES.reactServerComponents,
2075
- WEBPACK_LAYERS_NAMES.actionBrowser
2076
- ],
2077
- serverOnly: [
2078
- WEBPACK_LAYERS_NAMES.reactServerComponents,
2079
- WEBPACK_LAYERS_NAMES.actionBrowser,
2080
- WEBPACK_LAYERS_NAMES.instrument,
2081
- WEBPACK_LAYERS_NAMES.middleware
2082
- ],
2083
- neutralTarget: [
2084
- // pages api
2085
- WEBPACK_LAYERS_NAMES.apiNode,
2086
- WEBPACK_LAYERS_NAMES.apiEdge
2087
- ],
2088
- clientOnly: [
2089
- WEBPACK_LAYERS_NAMES.serverSideRendering,
2090
- WEBPACK_LAYERS_NAMES.appPagesBrowser
2091
- ],
2092
- bundled: [
2093
- WEBPACK_LAYERS_NAMES.reactServerComponents,
2094
- WEBPACK_LAYERS_NAMES.actionBrowser,
2095
- WEBPACK_LAYERS_NAMES.serverSideRendering,
2096
- WEBPACK_LAYERS_NAMES.appPagesBrowser,
2097
- WEBPACK_LAYERS_NAMES.shared,
2098
- WEBPACK_LAYERS_NAMES.instrument,
2099
- WEBPACK_LAYERS_NAMES.middleware
2100
- ],
2101
- appPages: [
2102
- // app router pages and layouts
2103
- WEBPACK_LAYERS_NAMES.reactServerComponents,
2104
- WEBPACK_LAYERS_NAMES.serverSideRendering,
2105
- WEBPACK_LAYERS_NAMES.appPagesBrowser,
2106
- WEBPACK_LAYERS_NAMES.actionBrowser
2107
- ]
2108
- }
2109
- });
2110
- var WEBPACK_RESOURCE_QUERIES = {
2111
- edgeSSREntry: "__next_edge_ssr_entry__",
2112
- metadata: "__next_metadata__",
2113
- metadataRoute: "__next_metadata_route__",
2114
- metadataImageMeta: "__next_metadata_image_meta__"
2115
- };
2116
- }
2117
- });
2118
-
2119
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/escape-regexp.js
2120
- var require_escape_regexp = __commonJS({
2121
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/escape-regexp.js"(exports$1) {
2122
- Object.defineProperty(exports$1, "__esModule", {
2123
- value: true
2124
- });
2125
- Object.defineProperty(exports$1, "escapeStringRegexp", {
2126
- enumerable: true,
2127
- get: function() {
2128
- return escapeStringRegexp;
2129
- }
2130
- });
2131
- var reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
2132
- var reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
2133
- function escapeStringRegexp(str) {
2134
- if (reHasRegExp.test(str)) {
2135
- return str.replace(reReplaceRegExp, "\\$&");
2136
- }
2137
- return str;
2138
- }
2139
- }
2140
- });
2141
-
2142
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/invariant-error.js
2143
- var require_invariant_error = __commonJS({
2144
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/invariant-error.js"(exports$1) {
2145
- Object.defineProperty(exports$1, "__esModule", {
2146
- value: true
2147
- });
2148
- Object.defineProperty(exports$1, "InvariantError", {
2149
- enumerable: true,
2150
- get: function() {
2151
- return InvariantError;
2152
- }
2153
- });
2154
- var InvariantError = class extends Error {
2155
- constructor(message, options) {
2156
- super(`Invariant: ${message.endsWith(".") ? message : message + "."} This is a bug in Next.js.`, options);
2157
- this.name = "InvariantError";
2158
- }
2159
- };
2160
- }
2161
- });
2162
-
2163
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js
2164
- var require_parse_loader_tree = __commonJS({
2165
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js"(exports$1) {
2166
- Object.defineProperty(exports$1, "__esModule", {
2167
- value: true
2168
- });
2169
- Object.defineProperty(exports$1, "parseLoaderTree", {
2170
- enumerable: true,
2171
- get: function() {
2172
- return parseLoaderTree;
2173
- }
2174
- });
2175
- var _segment = require_segment();
2176
- function parseLoaderTree(tree) {
2177
- const [segment, parallelRoutes, modules] = tree;
2178
- const { layout, template } = modules;
2179
- let { page } = modules;
2180
- page = segment === _segment.DEFAULT_SEGMENT_KEY ? modules.defaultPage : page;
2181
- const conventionPath = (layout == null ? void 0 : layout[1]) || (template == null ? void 0 : template[1]) || (page == null ? void 0 : page[1]);
2182
- return {
2183
- page,
2184
- segment,
2185
- modules,
2186
- /* it can be either layout / template / page */
2187
- conventionPath,
2188
- parallelRoutes
2189
- };
2190
- }
2191
- }
2192
- });
2193
-
2194
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js
2195
- var require_get_segment_param = __commonJS({
2196
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js"(exports$1) {
2197
- Object.defineProperty(exports$1, "__esModule", {
2198
- value: true
2199
- });
2200
- function _export(target, all) {
2201
- for (var name in all) Object.defineProperty(target, name, {
2202
- enumerable: true,
2203
- get: all[name]
2204
- });
2205
- }
2206
- _export(exports$1, {
2207
- getParamProperties: function() {
2208
- return getParamProperties;
2209
- },
2210
- getSegmentParam: function() {
2211
- return getSegmentParam;
2212
- },
2213
- isCatchAll: function() {
2214
- return isCatchAll;
2215
- }
2216
- });
2217
- var _interceptionroutes = require_interception_routes();
2218
- function getSegmentParam(segment) {
2219
- const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((marker) => segment.startsWith(marker));
2220
- if (interceptionMarker) {
2221
- segment = segment.slice(interceptionMarker.length);
2222
- }
2223
- if (segment.startsWith("[[...") && segment.endsWith("]]")) {
2224
- return {
2225
- // TODO-APP: Optional catchall does not currently work with parallel routes,
2226
- // so for now aren't handling a potential interception marker.
2227
- paramType: "optional-catchall",
2228
- paramName: segment.slice(5, -2)
2229
- };
2230
- }
2231
- if (segment.startsWith("[...") && segment.endsWith("]")) {
2232
- return {
2233
- paramType: interceptionMarker ? `catchall-intercepted-${interceptionMarker}` : "catchall",
2234
- paramName: segment.slice(4, -1)
2235
- };
2236
- }
2237
- if (segment.startsWith("[") && segment.endsWith("]")) {
2238
- return {
2239
- paramType: interceptionMarker ? `dynamic-intercepted-${interceptionMarker}` : "dynamic",
2240
- paramName: segment.slice(1, -1)
2241
- };
2242
- }
2243
- return null;
2244
- }
2245
- function isCatchAll(type) {
2246
- return type === "catchall" || type === "catchall-intercepted-(..)(..)" || type === "catchall-intercepted-(.)" || type === "catchall-intercepted-(..)" || type === "catchall-intercepted-(...)" || type === "optional-catchall";
2247
- }
2248
- function getParamProperties(paramType) {
2249
- let repeat = false;
2250
- let optional = false;
2251
- switch (paramType) {
2252
- case "catchall":
2253
- case "catchall-intercepted-(..)(..)":
2254
- case "catchall-intercepted-(.)":
2255
- case "catchall-intercepted-(..)":
2256
- case "catchall-intercepted-(...)":
2257
- repeat = true;
2258
- break;
2259
- case "optional-catchall":
2260
- repeat = true;
2261
- optional = true;
2262
- break;
2263
- }
2264
- return {
2265
- repeat,
2266
- optional
2267
- };
2268
- }
2269
- }
2270
- });
2271
-
2272
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/routes/app.js
2273
- var require_app = __commonJS({
2274
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/routes/app.js"(exports$1) {
2275
- Object.defineProperty(exports$1, "__esModule", {
2276
- value: true
2277
- });
2278
- function _export(target, all) {
2279
- for (var name in all) Object.defineProperty(target, name, {
2280
- enumerable: true,
2281
- get: all[name]
2282
- });
2283
- }
2284
- _export(exports$1, {
2285
- isInterceptionAppRoute: function() {
2286
- return isInterceptionAppRoute;
2287
- },
2288
- isNormalizedAppRoute: function() {
2289
- return isNormalizedAppRoute;
2290
- },
2291
- parseAppRoute: function() {
2292
- return parseAppRoute;
2293
- },
2294
- parseAppRouteSegment: function() {
2295
- return parseAppRouteSegment;
2296
- }
2297
- });
2298
- var _invarianterror = require_invariant_error();
2299
- var _getsegmentparam = require_get_segment_param();
2300
- var _interceptionroutes = require_interception_routes();
2301
- function parseAppRouteSegment(segment) {
2302
- if (segment === "") {
2303
- return null;
2304
- }
2305
- const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
2306
- const param = (0, _getsegmentparam.getSegmentParam)(segment);
2307
- if (param) {
2308
- return {
2309
- type: "dynamic",
2310
- name: segment,
2311
- param,
2312
- interceptionMarker
2313
- };
2314
- } else if (segment.startsWith("(") && segment.endsWith(")")) {
2315
- return {
2316
- type: "route-group",
2317
- name: segment,
2318
- interceptionMarker
2319
- };
2320
- } else if (segment.startsWith("@")) {
2321
- return {
2322
- type: "parallel-route",
2323
- name: segment,
2324
- interceptionMarker
2325
- };
2326
- } else {
2327
- return {
2328
- type: "static",
2329
- name: segment,
2330
- interceptionMarker
2331
- };
2332
- }
2333
- }
2334
- function isNormalizedAppRoute(route) {
2335
- return route.normalized;
2336
- }
2337
- function isInterceptionAppRoute(route) {
2338
- return route.interceptionMarker !== void 0 && route.interceptingRoute !== void 0 && route.interceptedRoute !== void 0;
2339
- }
2340
- function parseAppRoute(pathname, normalized) {
2341
- const pathnameSegments = pathname.split("/").filter(Boolean);
2342
- const segments = [];
2343
- let interceptionMarker;
2344
- let interceptingRoute;
2345
- let interceptedRoute;
2346
- for (const segment of pathnameSegments) {
2347
- const appSegment = parseAppRouteSegment(segment);
2348
- if (!appSegment) {
2349
- continue;
2350
- }
2351
- if (normalized && (appSegment.type === "route-group" || appSegment.type === "parallel-route")) {
2352
- throw Object.defineProperty(new _invarianterror.InvariantError(`${pathname} is being parsed as a normalized route, but it has a route group or parallel route segment.`), "__NEXT_ERROR_CODE", {
2353
- value: "E923",
2354
- enumerable: false,
2355
- configurable: true
2356
- });
2357
- }
2358
- segments.push(appSegment);
2359
- if (appSegment.interceptionMarker) {
2360
- const parts = pathname.split(appSegment.interceptionMarker);
2361
- if (parts.length !== 2) {
2362
- throw Object.defineProperty(new Error(`Invalid interception route: ${pathname}`), "__NEXT_ERROR_CODE", {
2363
- value: "E924",
2364
- enumerable: false,
2365
- configurable: true
2366
- });
2367
- }
2368
- interceptingRoute = normalized ? parseAppRoute(parts[0], true) : parseAppRoute(parts[0], false);
2369
- interceptedRoute = normalized ? parseAppRoute(parts[1], true) : parseAppRoute(parts[1], false);
2370
- interceptionMarker = appSegment.interceptionMarker;
2371
- }
2372
- }
2373
- const dynamicSegments = segments.filter((segment) => segment.type === "dynamic");
2374
- return {
2375
- normalized,
2376
- pathname,
2377
- segments,
2378
- dynamicSegments,
2379
- interceptionMarker,
2380
- interceptingRoute,
2381
- interceptedRoute
2382
- };
2383
- }
2384
- }
2385
- });
2386
-
2387
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js
2388
- var require_interception_prefix_from_param_type = __commonJS({
2389
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js"(exports$1) {
2390
- Object.defineProperty(exports$1, "__esModule", {
2391
- value: true
2392
- });
2393
- Object.defineProperty(exports$1, "interceptionPrefixFromParamType", {
2394
- enumerable: true,
2395
- get: function() {
2396
- return interceptionPrefixFromParamType;
2397
- }
2398
- });
2399
- function interceptionPrefixFromParamType(paramType) {
2400
- switch (paramType) {
2401
- case "catchall-intercepted-(..)(..)":
2402
- case "dynamic-intercepted-(..)(..)":
2403
- return "(..)(..)";
2404
- case "catchall-intercepted-(.)":
2405
- case "dynamic-intercepted-(.)":
2406
- return "(.)";
2407
- case "catchall-intercepted-(..)":
2408
- case "dynamic-intercepted-(..)":
2409
- return "(..)";
2410
- case "catchall-intercepted-(...)":
2411
- case "dynamic-intercepted-(...)":
2412
- return "(...)";
2413
- case "catchall":
2414
- case "dynamic":
2415
- case "optional-catchall":
2416
- default:
2417
- return null;
2418
- }
2419
- }
2420
- }
2421
- });
2422
-
2423
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js
2424
- var require_resolve_param_value = __commonJS({
2425
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js"(exports$1) {
2426
- Object.defineProperty(exports$1, "__esModule", {
2427
- value: true
2428
- });
2429
- Object.defineProperty(exports$1, "resolveParamValue", {
2430
- enumerable: true,
2431
- get: function() {
2432
- return resolveParamValue;
2433
- }
2434
- });
2435
- var _invarianterror = require_invariant_error();
2436
- var _interceptionprefixfromparamtype = require_interception_prefix_from_param_type();
2437
- function getParamValueFromSegment(pathSegment, params, paramType) {
2438
- if (pathSegment.type === "dynamic") {
2439
- return params[pathSegment.param.paramName];
2440
- }
2441
- const interceptionPrefix = (0, _interceptionprefixfromparamtype.interceptionPrefixFromParamType)(paramType);
2442
- if (interceptionPrefix === pathSegment.interceptionMarker) {
2443
- return pathSegment.name.replace(pathSegment.interceptionMarker, "");
2444
- }
2445
- return pathSegment.name;
2446
- }
2447
- function resolveParamValue(paramName, paramType, depth, route, params) {
2448
- switch (paramType) {
2449
- case "catchall":
2450
- case "optional-catchall":
2451
- case "catchall-intercepted-(..)(..)":
2452
- case "catchall-intercepted-(.)":
2453
- case "catchall-intercepted-(..)":
2454
- case "catchall-intercepted-(...)":
2455
- const processedSegments = [];
2456
- for (let index = depth; index < route.segments.length; index++) {
2457
- const pathSegment = route.segments[index];
2458
- if (pathSegment.type === "static") {
2459
- let value = pathSegment.name;
2460
- const interceptionPrefix = (0, _interceptionprefixfromparamtype.interceptionPrefixFromParamType)(paramType);
2461
- if (interceptionPrefix && index === depth && interceptionPrefix === pathSegment.interceptionMarker) {
2462
- value = value.replace(pathSegment.interceptionMarker, "");
2463
- }
2464
- processedSegments.push(value);
2465
- } else {
2466
- if (!params.hasOwnProperty(pathSegment.param.paramName)) {
2467
- if (pathSegment.param.paramType === "optional-catchall") {
2468
- break;
2469
- }
2470
- return void 0;
2471
- }
2472
- const paramValue = params[pathSegment.param.paramName];
2473
- if (Array.isArray(paramValue)) {
2474
- processedSegments.push(...paramValue);
2475
- } else {
2476
- processedSegments.push(paramValue);
2477
- }
2478
- }
2479
- }
2480
- if (processedSegments.length > 0) {
2481
- return processedSegments;
2482
- } else if (paramType === "optional-catchall") {
2483
- return void 0;
2484
- } else {
2485
- throw Object.defineProperty(new _invarianterror.InvariantError(`Unexpected empty path segments match for a route "${route.pathname}" with param "${paramName}" of type "${paramType}"`), "__NEXT_ERROR_CODE", {
2486
- value: "E931",
2487
- enumerable: false,
2488
- configurable: true
2489
- });
2490
- }
2491
- case "dynamic":
2492
- case "dynamic-intercepted-(..)(..)":
2493
- case "dynamic-intercepted-(.)":
2494
- case "dynamic-intercepted-(..)":
2495
- case "dynamic-intercepted-(...)":
2496
- if (depth < route.segments.length) {
2497
- const pathSegment = route.segments[depth];
2498
- if (pathSegment.type === "dynamic" && !params.hasOwnProperty(pathSegment.param.paramName)) {
2499
- return void 0;
2500
- }
2501
- return getParamValueFromSegment(pathSegment, params, paramType);
2502
- }
2503
- return void 0;
2504
- }
2505
- }
2506
- }
2507
- });
2508
-
2509
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js
2510
- var require_get_dynamic_param = __commonJS({
2511
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js"(exports$1) {
2512
- Object.defineProperty(exports$1, "__esModule", {
2513
- value: true
2514
- });
2515
- function _export(target, all) {
2516
- for (var name in all) Object.defineProperty(target, name, {
2517
- enumerable: true,
2518
- get: all[name]
2519
- });
2520
- }
2521
- _export(exports$1, {
2522
- PARAMETER_PATTERN: function() {
2523
- return PARAMETER_PATTERN;
2524
- },
2525
- getDynamicParam: function() {
2526
- return getDynamicParam;
2527
- },
2528
- interpolateParallelRouteParams: function() {
2529
- return interpolateParallelRouteParams;
2530
- },
2531
- parseMatchedParameter: function() {
2532
- return parseMatchedParameter;
2533
- },
2534
- parseParameter: function() {
2535
- return parseParameter;
2536
- }
2537
- });
2538
- var _invarianterror = require_invariant_error();
2539
- var _parseloadertree = require_parse_loader_tree();
2540
- var _app = require_app();
2541
- var _resolveparamvalue = require_resolve_param_value();
2542
- function getParamValue(interpolatedParams, segmentKey, fallbackRouteParams) {
2543
- let value = interpolatedParams[segmentKey];
2544
- if (fallbackRouteParams == null ? void 0 : fallbackRouteParams.has(segmentKey)) {
2545
- const [searchValue] = fallbackRouteParams.get(segmentKey);
2546
- value = searchValue;
2547
- } else if (Array.isArray(value)) {
2548
- value = value.map((i) => encodeURIComponent(i));
2549
- } else if (typeof value === "string") {
2550
- value = encodeURIComponent(value);
2551
- }
2552
- return value;
2553
- }
2554
- function interpolateParallelRouteParams(loaderTree, params, pagePath, fallbackRouteParams) {
2555
- const interpolated = structuredClone(params);
2556
- const stack = [
2557
- {
2558
- tree: loaderTree,
2559
- depth: 0
2560
- }
2561
- ];
2562
- const route = (0, _app.parseAppRoute)(pagePath, true);
2563
- while (stack.length > 0) {
2564
- const { tree, depth } = stack.pop();
2565
- const { segment, parallelRoutes } = (0, _parseloadertree.parseLoaderTree)(tree);
2566
- const appSegment = (0, _app.parseAppRouteSegment)(segment);
2567
- if ((appSegment == null ? void 0 : appSegment.type) === "dynamic" && !interpolated.hasOwnProperty(appSegment.param.paramName) && // If the param is in the fallback route params, we don't need to
2568
- // interpolate it because it's already marked as being unknown.
2569
- !(fallbackRouteParams == null ? void 0 : fallbackRouteParams.has(appSegment.param.paramName))) {
2570
- const { paramName, paramType } = appSegment.param;
2571
- const paramValue = (0, _resolveparamvalue.resolveParamValue)(paramName, paramType, depth, route, interpolated);
2572
- if (paramValue !== void 0) {
2573
- interpolated[paramName] = paramValue;
2574
- } else if (paramType !== "optional-catchall") {
2575
- throw Object.defineProperty(new _invarianterror.InvariantError(`Could not resolve param value for segment: ${paramName}`), "__NEXT_ERROR_CODE", {
2576
- value: "E932",
2577
- enumerable: false,
2578
- configurable: true
2579
- });
2580
- }
2581
- }
2582
- let nextDepth = depth;
2583
- if (appSegment && appSegment.type !== "route-group" && appSegment.type !== "parallel-route") {
2584
- nextDepth++;
2585
- }
2586
- for (const parallelRoute of Object.values(parallelRoutes)) {
2587
- stack.push({
2588
- tree: parallelRoute,
2589
- depth: nextDepth
2590
- });
2591
- }
2592
- }
2593
- return interpolated;
2594
- }
2595
- function getDynamicParam(interpolatedParams, segmentKey, dynamicParamType, fallbackRouteParams) {
2596
- let value = getParamValue(interpolatedParams, segmentKey, fallbackRouteParams);
2597
- if (!value || value.length === 0) {
2598
- if (dynamicParamType === "oc") {
2599
- return {
2600
- param: segmentKey,
2601
- value: null,
2602
- type: dynamicParamType,
2603
- treeSegment: [
2604
- segmentKey,
2605
- "",
2606
- dynamicParamType
2607
- ]
2608
- };
2609
- }
2610
- throw Object.defineProperty(new _invarianterror.InvariantError(`Missing value for segment key: "${segmentKey}" with dynamic param type: ${dynamicParamType}`), "__NEXT_ERROR_CODE", {
2611
- value: "E864",
2612
- enumerable: false,
2613
- configurable: true
2614
- });
2615
- }
2616
- return {
2617
- param: segmentKey,
2618
- // The value that is passed to user code.
2619
- value,
2620
- // The value that is rendered in the router tree.
2621
- treeSegment: [
2622
- segmentKey,
2623
- Array.isArray(value) ? value.join("/") : value,
2624
- dynamicParamType
2625
- ],
2626
- type: dynamicParamType
2627
- };
2628
- }
2629
- var PARAMETER_PATTERN = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
2630
- function parseParameter(param) {
2631
- const match = param.match(PARAMETER_PATTERN);
2632
- if (!match) {
2633
- return parseMatchedParameter(param);
2634
- }
2635
- return parseMatchedParameter(match[2]);
2636
- }
2637
- function parseMatchedParameter(param) {
2638
- const optional = param.startsWith("[") && param.endsWith("]");
2639
- if (optional) {
2640
- param = param.slice(1, -1);
2641
- }
2642
- const repeat = param.startsWith("...");
2643
- if (repeat) {
2644
- param = param.slice(3);
2645
- }
2646
- return {
2647
- key: param,
2648
- repeat,
2649
- optional
2650
- };
2651
- }
2652
- }
2653
- });
2654
-
2655
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-regex.js
2656
- var require_route_regex = __commonJS({
2657
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-regex.js"(exports$1) {
2658
- Object.defineProperty(exports$1, "__esModule", {
2659
- value: true
2660
- });
2661
- function _export(target, all) {
2662
- for (var name in all) Object.defineProperty(target, name, {
2663
- enumerable: true,
2664
- get: all[name]
2665
- });
2666
- }
2667
- _export(exports$1, {
2668
- getNamedMiddlewareRegex: function() {
2669
- return getNamedMiddlewareRegex;
2670
- },
2671
- getNamedRouteRegex: function() {
2672
- return getNamedRouteRegex;
2673
- },
2674
- getRouteRegex: function() {
2675
- return getRouteRegex;
2676
- }
2677
- });
2678
- var _constants = require_constants();
2679
- var _interceptionroutes = require_interception_routes();
2680
- var _escaperegexp = require_escape_regexp();
2681
- var _removetrailingslash = require_remove_trailing_slash();
2682
- var _getdynamicparam = require_get_dynamic_param();
2683
- function getParametrizedRoute(route, includeSuffix, includePrefix) {
2684
- const groups = {};
2685
- let groupIndex = 1;
2686
- const segments = [];
2687
- for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
2688
- const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
2689
- const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
2690
- if (markerMatch && paramMatches && paramMatches[2]) {
2691
- const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
2692
- groups[key] = {
2693
- pos: groupIndex++,
2694
- repeat,
2695
- optional
2696
- };
2697
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(markerMatch)}([^/]+?)`);
2698
- } else if (paramMatches && paramMatches[2]) {
2699
- const { key, repeat, optional } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
2700
- groups[key] = {
2701
- pos: groupIndex++,
2702
- repeat,
2703
- optional
2704
- };
2705
- if (includePrefix && paramMatches[1]) {
2706
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
2707
- }
2708
- let s = repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
2709
- if (includePrefix && paramMatches[1]) {
2710
- s = s.substring(1);
2711
- }
2712
- segments.push(s);
2713
- } else {
2714
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
2715
- }
2716
- if (includeSuffix && paramMatches && paramMatches[3]) {
2717
- segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
2718
- }
2719
- }
2720
- return {
2721
- parameterizedRoute: segments.join(""),
2722
- groups
2723
- };
2724
- }
2725
- function getRouteRegex(normalizedRoute, { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = {}) {
2726
- const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);
2727
- let re = parameterizedRoute;
2728
- if (!excludeOptionalTrailingSlash) {
2729
- re += "(?:/)?";
2730
- }
2731
- return {
2732
- re: new RegExp(`^${re}$`),
2733
- groups
2734
- };
2735
- }
2736
- function buildGetSafeRouteKey() {
2737
- let i = 0;
2738
- return () => {
2739
- let routeKey = "";
2740
- let j = ++i;
2741
- while (j > 0) {
2742
- routeKey += String.fromCharCode(97 + (j - 1) % 26);
2743
- j = Math.floor((j - 1) / 26);
2744
- }
2745
- return routeKey;
2746
- };
2747
- }
2748
- function getSafeKeyFromSegment({ interceptionMarker, getSafeRouteKey, segment, routeKeys, keyPrefix, backreferenceDuplicateKeys }) {
2749
- const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(segment);
2750
- let cleanedKey = key.replace(/\W/g, "");
2751
- if (keyPrefix) {
2752
- cleanedKey = `${keyPrefix}${cleanedKey}`;
2753
- }
2754
- let invalidKey = false;
2755
- if (cleanedKey.length === 0 || cleanedKey.length > 30) {
2756
- invalidKey = true;
2757
- }
2758
- if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) {
2759
- invalidKey = true;
2760
- }
2761
- if (invalidKey) {
2762
- cleanedKey = getSafeRouteKey();
2763
- }
2764
- const duplicateKey = cleanedKey in routeKeys;
2765
- if (keyPrefix) {
2766
- routeKeys[cleanedKey] = `${keyPrefix}${key}`;
2767
- } else {
2768
- routeKeys[cleanedKey] = key;
2769
- }
2770
- const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : "";
2771
- let pattern;
2772
- if (duplicateKey && backreferenceDuplicateKeys) {
2773
- pattern = `\\k<${cleanedKey}>`;
2774
- } else if (repeat) {
2775
- pattern = `(?<${cleanedKey}>.+?)`;
2776
- } else {
2777
- pattern = `(?<${cleanedKey}>[^/]+?)`;
2778
- }
2779
- return {
2780
- key,
2781
- pattern: optional ? `(?:/${interceptionPrefix}${pattern})?` : `/${interceptionPrefix}${pattern}`,
2782
- cleanedKey,
2783
- optional,
2784
- repeat
2785
- };
2786
- }
2787
- function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys, reference = {
2788
- names: {},
2789
- intercepted: {}
2790
- }) {
2791
- var _a, _b, _c, _d, _e, _f;
2792
- const getSafeRouteKey = buildGetSafeRouteKey();
2793
- const routeKeys = {};
2794
- const segments = [];
2795
- const inverseParts = [];
2796
- reference = structuredClone(reference);
2797
- for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
2798
- const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m) => segment.startsWith(m));
2799
- const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
2800
- const interceptionMarker = hasInterceptionMarker ? paramMatches == null ? void 0 : paramMatches[1] : void 0;
2801
- let keyPrefix;
2802
- if (interceptionMarker && (paramMatches == null ? void 0 : paramMatches[2])) {
2803
- keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0;
2804
- reference.intercepted[paramMatches[2]] = interceptionMarker;
2805
- } else if ((paramMatches == null ? void 0 : paramMatches[2]) && reference.intercepted[paramMatches[2]]) {
2806
- keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0;
2807
- } else {
2808
- keyPrefix = prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : void 0;
2809
- }
2810
- if (interceptionMarker && paramMatches && paramMatches[2]) {
2811
- const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
2812
- getSafeRouteKey,
2813
- interceptionMarker,
2814
- segment: paramMatches[2],
2815
- routeKeys,
2816
- keyPrefix,
2817
- backreferenceDuplicateKeys
2818
- });
2819
- segments.push(pattern);
2820
- inverseParts.push(`/${paramMatches[1]}:${(_a = reference.names[key]) != null ? _a : cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
2821
- (_c = (_b = reference.names)[key]) != null ? _c : _b[key] = cleanedKey;
2822
- } else if (paramMatches && paramMatches[2]) {
2823
- if (includePrefix && paramMatches[1]) {
2824
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
2825
- inverseParts.push(`/${paramMatches[1]}`);
2826
- }
2827
- const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
2828
- getSafeRouteKey,
2829
- segment: paramMatches[2],
2830
- routeKeys,
2831
- keyPrefix,
2832
- backreferenceDuplicateKeys
2833
- });
2834
- let s = pattern;
2835
- if (includePrefix && paramMatches[1]) {
2836
- s = s.substring(1);
2837
- }
2838
- segments.push(s);
2839
- inverseParts.push(`/:${(_d = reference.names[key]) != null ? _d : cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
2840
- (_f = (_e = reference.names)[key]) != null ? _f : _e[key] = cleanedKey;
2841
- } else {
2842
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
2843
- inverseParts.push(`/${segment}`);
2844
- }
2845
- if (includeSuffix && paramMatches && paramMatches[3]) {
2846
- segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
2847
- inverseParts.push(paramMatches[3]);
2848
- }
2849
- }
2850
- return {
2851
- namedParameterizedRoute: segments.join(""),
2852
- routeKeys,
2853
- pathToRegexpPattern: inverseParts.join(""),
2854
- reference
2855
- };
2856
- }
2857
- function getNamedRouteRegex(normalizedRoute, options) {
2858
- var _a, _b, _c;
2859
- const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, (_a = options.includeSuffix) != null ? _a : false, (_b = options.includePrefix) != null ? _b : false, (_c = options.backreferenceDuplicateKeys) != null ? _c : false, options.reference);
2860
- let namedRegex = result.namedParameterizedRoute;
2861
- if (!options.excludeOptionalTrailingSlash) {
2862
- namedRegex += "(?:/)?";
2863
- }
2864
- return __spreadProps(__spreadValues({}, getRouteRegex(normalizedRoute, options)), {
2865
- namedRegex: `^${namedRegex}$`,
2866
- routeKeys: result.routeKeys,
2867
- pathToRegexpPattern: result.pathToRegexpPattern,
2868
- reference: result.reference
2869
- });
2870
- }
2871
- function getNamedMiddlewareRegex(normalizedRoute, options) {
2872
- const { parameterizedRoute } = getParametrizedRoute(normalizedRoute, false, false);
2873
- const { catchAll = true } = options;
2874
- if (parameterizedRoute === "/") {
2875
- let catchAllRegex = catchAll ? ".*" : "";
2876
- return {
2877
- namedRegex: `^/${catchAllRegex}$`
2878
- };
2879
- }
2880
- const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false, void 0);
2881
- let catchAllGroupedRegex = catchAll ? "(?:(/.*)?)" : "";
2882
- return {
2883
- namedRegex: `^${namedParameterizedRoute}${catchAllGroupedRegex}$`
2884
- };
2885
- }
2886
- }
2887
- });
2888
-
2889
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js
2890
- var require_interpolate_as = __commonJS({
2891
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js"(exports$1) {
2892
- Object.defineProperty(exports$1, "__esModule", {
2893
- value: true
2894
- });
2895
- Object.defineProperty(exports$1, "interpolateAs", {
2896
- enumerable: true,
2897
- get: function() {
2898
- return interpolateAs;
2899
- }
2900
- });
2901
- var _routematcher = require_route_matcher();
2902
- var _routeregex = require_route_regex();
2903
- function interpolateAs(route, asPathname, query) {
2904
- let interpolatedRoute = "";
2905
- const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
2906
- const dynamicGroups = dynamicRegex.groups;
2907
- const dynamicMatches = (
2908
- // Try to match the dynamic route against the asPath
2909
- (asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : "") || // Fall back to reading the values from the href
2910
- // TODO: should this take priority; also need to change in the router.
2911
- query
2912
- );
2913
- interpolatedRoute = route;
2914
- const params = Object.keys(dynamicGroups);
2915
- if (!params.every((param) => {
2916
- let value = dynamicMatches[param] || "";
2917
- const { repeat, optional } = dynamicGroups[param];
2918
- let replaced = `[${repeat ? "..." : ""}${param}]`;
2919
- if (optional) {
2920
- replaced = `${!value ? "/" : ""}[${replaced}]`;
2921
- }
2922
- if (repeat && !Array.isArray(value)) value = [
2923
- value
2924
- ];
2925
- return (optional || param in dynamicMatches) && // Interpolate group into data URL if present
2926
- (interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(
2927
- // these values should be fully encoded instead of just
2928
- // path delimiter escaped since they are being inserted
2929
- // into the URL and we expect URL encoded segments
2930
- // when parsing dynamic route params
2931
- (segment) => encodeURIComponent(segment)
2932
- ).join("/") : encodeURIComponent(value)) || "/");
2933
- })) {
2934
- interpolatedRoute = "";
2935
- }
2936
- return {
2937
- params,
2938
- result: interpolatedRoute
2939
- };
2940
- }
2941
- }
2942
- });
2943
-
2944
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/resolve-href.js
2945
- var require_resolve_href = __commonJS({
2946
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/resolve-href.js"(exports$1, module) {
2947
- Object.defineProperty(exports$1, "__esModule", {
2948
- value: true
2949
- });
2950
- Object.defineProperty(exports$1, "resolveHref", {
2951
- enumerable: true,
2952
- get: function() {
2953
- return resolveHref;
2954
- }
2955
- });
2956
- var _querystring = require_querystring();
2957
- var _formaturl = require_format_url();
2958
- var _omit = require_omit();
2959
- var _utils = require_utils();
2960
- var _normalizetrailingslash = require_normalize_trailing_slash();
2961
- var _islocalurl = require_is_local_url();
2962
- var _utils1 = require_utils2();
2963
- var _interpolateas = require_interpolate_as();
2964
- var _routeregex = require_route_regex();
2965
- var _routematcher = require_route_matcher();
2966
- function resolveHref(router, href, resolveAs) {
2967
- let base;
2968
- let urlAsString = typeof href === "string" ? href : (0, _formaturl.formatWithValidation)(href);
2969
- const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\/\//i);
2970
- const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
2971
- const urlParts = urlAsStringNoProto.split("?", 1);
2972
- if ((urlParts[0] || "").match(/(\/\/|\\)/)) {
2973
- console.error(`Invalid href '${urlAsString}' passed to next/router in page: '${router.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);
2974
- const normalizedUrl = (0, _utils.normalizeRepeatedSlashes)(urlAsStringNoProto);
2975
- urlAsString = (urlProtoMatch ? urlProtoMatch[0] : "") + normalizedUrl;
2976
- }
2977
- if (!(0, _islocalurl.isLocalURL)(urlAsString)) {
2978
- return resolveAs ? [
2979
- urlAsString
2980
- ] : urlAsString;
2981
- }
2982
- try {
2983
- let baseBase = urlAsString.startsWith("#") ? router.asPath : router.pathname;
2984
- if (urlAsString.startsWith("?")) {
2985
- baseBase = router.asPath;
2986
- if ((0, _utils1.isDynamicRoute)(router.pathname)) {
2987
- baseBase = router.pathname;
2988
- const routeRegex = (0, _routeregex.getRouteRegex)(router.pathname);
2989
- const match = (0, _routematcher.getRouteMatcher)(routeRegex)(router.asPath);
2990
- if (!match) {
2991
- baseBase = router.asPath;
2992
- }
2993
- }
2994
- }
2995
- base = new URL(baseBase, "http://n");
2996
- } catch (_) {
2997
- base = new URL("/", "http://n");
2998
- }
2999
- try {
3000
- const finalUrl = new URL(urlAsString, base);
3001
- finalUrl.pathname = (0, _normalizetrailingslash.normalizePathTrailingSlash)(finalUrl.pathname);
3002
- let interpolatedAs = "";
3003
- if ((0, _utils1.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
3004
- const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
3005
- const { result, params } = (0, _interpolateas.interpolateAs)(finalUrl.pathname, finalUrl.pathname, query);
3006
- if (result) {
3007
- interpolatedAs = (0, _formaturl.formatWithValidation)({
3008
- pathname: result,
3009
- hash: finalUrl.hash,
3010
- query: (0, _omit.omit)(query, params)
3011
- });
3012
- }
3013
- }
3014
- const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
3015
- return resolveAs ? [
3016
- resolvedHref,
3017
- interpolatedAs || resolvedHref
3018
- ] : resolvedHref;
3019
- } catch (_) {
3020
- return resolveAs ? [
3021
- urlAsString
3022
- ] : urlAsString;
3023
- }
3024
- }
3025
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3026
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3027
- Object.assign(exports$1.default, exports$1);
3028
- module.exports = exports$1.default;
3029
- }
3030
- }
3031
- });
3032
-
3033
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
3034
- var require_add_path_prefix = __commonJS({
3035
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"(exports$1) {
3036
- Object.defineProperty(exports$1, "__esModule", {
3037
- value: true
3038
- });
3039
- Object.defineProperty(exports$1, "addPathPrefix", {
3040
- enumerable: true,
3041
- get: function() {
3042
- return addPathPrefix;
3043
- }
3044
- });
3045
- var _parsepath = require_parse_path();
3046
- function addPathPrefix(path, prefix) {
3047
- if (!path.startsWith("/") || !prefix) {
3048
- return path;
3049
- }
3050
- const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
3051
- return `${prefix}${pathname}${query}${hash}`;
3052
- }
3053
- }
3054
- });
3055
-
3056
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/add-locale.js
3057
- var require_add_locale = __commonJS({
3058
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/add-locale.js"(exports$1) {
3059
- Object.defineProperty(exports$1, "__esModule", {
3060
- value: true
3061
- });
3062
- Object.defineProperty(exports$1, "addLocale", {
3063
- enumerable: true,
3064
- get: function() {
3065
- return addLocale;
3066
- }
3067
- });
3068
- var _addpathprefix = require_add_path_prefix();
3069
- var _pathhasprefix = require_path_has_prefix();
3070
- function addLocale(path, locale, defaultLocale, ignorePrefix) {
3071
- if (!locale || locale === defaultLocale) return path;
3072
- const lower = path.toLowerCase();
3073
- if (!ignorePrefix) {
3074
- if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api")) return path;
3075
- if ((0, _pathhasprefix.pathHasPrefix)(lower, `/${locale.toLowerCase()}`)) return path;
3076
- }
3077
- return (0, _addpathprefix.addPathPrefix)(path, `/${locale}`);
3078
- }
3079
- }
3080
- });
3081
-
3082
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/add-locale.js
3083
- var require_add_locale2 = __commonJS({
3084
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/add-locale.js"(exports$1, module) {
3085
- Object.defineProperty(exports$1, "__esModule", {
3086
- value: true
3087
- });
3088
- Object.defineProperty(exports$1, "addLocale", {
3089
- enumerable: true,
3090
- get: function() {
3091
- return addLocale;
3092
- }
3093
- });
3094
- var _normalizetrailingslash = require_normalize_trailing_slash();
3095
- var addLocale = (path, ...args) => {
3096
- if (process.env.__NEXT_I18N_SUPPORT) {
3097
- return (0, _normalizetrailingslash.normalizePathTrailingSlash)(require_add_locale().addLocale(path, ...args));
3098
- }
3099
- return path;
3100
- };
3101
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3102
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3103
- Object.assign(exports$1.default, exports$1);
3104
- module.exports = exports$1.default;
3105
- }
3106
- }
3107
- });
3108
-
3109
- // node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
3110
- var require_interop_require_default = __commonJS({
3111
- "node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports$1) {
3112
- function _interop_require_default(obj) {
3113
- return obj && obj.__esModule ? obj : { default: obj };
3114
- }
3115
- exports$1._ = _interop_require_default;
3116
- }
3117
- });
3118
-
3119
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router-context.shared-runtime.js
3120
- var require_router_context_shared_runtime = __commonJS({
3121
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router-context.shared-runtime.js"(exports$1) {
3122
- Object.defineProperty(exports$1, "__esModule", {
3123
- value: true
3124
- });
3125
- Object.defineProperty(exports$1, "RouterContext", {
3126
- enumerable: true,
3127
- get: function() {
3128
- return RouterContext;
3129
- }
3130
- });
3131
- var _interop_require_default = require_interop_require_default();
3132
- var _react = /* @__PURE__ */ _interop_require_default._(__require("react"));
3133
- var RouterContext = _react.default.createContext(null);
3134
- if (process.env.NODE_ENV !== "production") {
3135
- RouterContext.displayName = "RouterContext";
3136
- }
3137
- }
3138
- });
3139
-
3140
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/request-idle-callback.js
3141
- var require_request_idle_callback = __commonJS({
3142
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/request-idle-callback.js"(exports$1, module) {
3143
- Object.defineProperty(exports$1, "__esModule", {
3144
- value: true
3145
- });
3146
- function _export(target, all) {
3147
- for (var name in all) Object.defineProperty(target, name, {
3148
- enumerable: true,
3149
- get: all[name]
3150
- });
3151
- }
3152
- _export(exports$1, {
3153
- cancelIdleCallback: function() {
3154
- return cancelIdleCallback;
3155
- },
3156
- requestIdleCallback: function() {
3157
- return requestIdleCallback;
3158
- }
3159
- });
3160
- var requestIdleCallback = typeof self !== "undefined" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {
3161
- let start = Date.now();
3162
- return self.setTimeout(function() {
3163
- cb({
3164
- didTimeout: false,
3165
- timeRemaining: function() {
3166
- return Math.max(0, 50 - (Date.now() - start));
3167
- }
3168
- });
3169
- }, 1);
3170
- };
3171
- var cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
3172
- return clearTimeout(id);
3173
- };
3174
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3175
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3176
- Object.assign(exports$1.default, exports$1);
3177
- module.exports = exports$1.default;
3178
- }
3179
- }
3180
- });
3181
-
3182
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/use-intersection.js
3183
- var require_use_intersection = __commonJS({
3184
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/use-intersection.js"(exports$1, module) {
3185
- Object.defineProperty(exports$1, "__esModule", {
3186
- value: true
3187
- });
3188
- Object.defineProperty(exports$1, "useIntersection", {
3189
- enumerable: true,
3190
- get: function() {
3191
- return useIntersection;
3192
- }
3193
- });
3194
- var _react = __require("react");
3195
- var _requestidlecallback = require_request_idle_callback();
3196
- var hasIntersectionObserver = typeof IntersectionObserver === "function";
3197
- var observers = /* @__PURE__ */ new Map();
3198
- var idList = [];
3199
- function createObserver(options) {
3200
- const id = {
3201
- root: options.root || null,
3202
- margin: options.rootMargin || ""
3203
- };
3204
- const existing = idList.find((obj) => obj.root === id.root && obj.margin === id.margin);
3205
- let instance;
3206
- if (existing) {
3207
- instance = observers.get(existing);
3208
- if (instance) {
3209
- return instance;
3210
- }
3211
- }
3212
- const elements = /* @__PURE__ */ new Map();
3213
- const observer = new IntersectionObserver((entries) => {
3214
- entries.forEach((entry) => {
3215
- const callback = elements.get(entry.target);
3216
- const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
3217
- if (callback && isVisible) {
3218
- callback(isVisible);
3219
- }
3220
- });
3221
- }, options);
3222
- instance = {
3223
- id,
3224
- observer,
3225
- elements
3226
- };
3227
- idList.push(id);
3228
- observers.set(id, instance);
3229
- return instance;
3230
- }
3231
- function observe(element, callback, options) {
3232
- const { id, observer, elements } = createObserver(options);
3233
- elements.set(element, callback);
3234
- observer.observe(element);
3235
- return function unobserve() {
3236
- elements.delete(element);
3237
- observer.unobserve(element);
3238
- if (elements.size === 0) {
3239
- observer.disconnect();
3240
- observers.delete(id);
3241
- const index = idList.findIndex((obj) => obj.root === id.root && obj.margin === id.margin);
3242
- if (index > -1) {
3243
- idList.splice(index, 1);
3244
- }
3245
- }
3246
- };
3247
- }
3248
- function useIntersection({ rootRef, rootMargin, disabled }) {
3249
- const isDisabled = disabled || !hasIntersectionObserver;
3250
- const [visible, setVisible] = (0, _react.useState)(false);
3251
- const elementRef = (0, _react.useRef)(null);
3252
- const setElement = (0, _react.useCallback)((element) => {
3253
- elementRef.current = element;
3254
- }, []);
3255
- (0, _react.useEffect)(() => {
3256
- if (hasIntersectionObserver) {
3257
- if (isDisabled || visible) return;
3258
- const element = elementRef.current;
3259
- if (element && element.tagName) {
3260
- const unobserve = observe(element, (isVisible) => isVisible && setVisible(isVisible), {
3261
- root: rootRef == null ? void 0 : rootRef.current,
3262
- rootMargin
3263
- });
3264
- return unobserve;
3265
- }
3266
- } else {
3267
- if (!visible) {
3268
- const idleCallback = (0, _requestidlecallback.requestIdleCallback)(() => setVisible(true));
3269
- return () => (0, _requestidlecallback.cancelIdleCallback)(idleCallback);
3270
- }
3271
- }
3272
- }, [
3273
- isDisabled,
3274
- rootMargin,
3275
- rootRef,
3276
- visible,
3277
- elementRef.current
3278
- ]);
3279
- const resetVisible = (0, _react.useCallback)(() => {
3280
- setVisible(false);
3281
- }, []);
3282
- return [
3283
- setElement,
3284
- visible,
3285
- resetVisible
3286
- ];
3287
- }
3288
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3289
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3290
- Object.assign(exports$1.default, exports$1);
3291
- module.exports = exports$1.default;
3292
- }
3293
- }
3294
- });
3295
-
3296
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
3297
- var require_normalize_locale_path = __commonJS({
3298
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"(exports$1) {
3299
- Object.defineProperty(exports$1, "__esModule", {
3300
- value: true
3301
- });
3302
- Object.defineProperty(exports$1, "normalizeLocalePath", {
3303
- enumerable: true,
3304
- get: function() {
3305
- return normalizeLocalePath;
3306
- }
3307
- });
3308
- var cache = /* @__PURE__ */ new WeakMap();
3309
- function normalizeLocalePath(pathname, locales) {
3310
- if (!locales) return {
3311
- pathname
3312
- };
3313
- let lowercasedLocales = cache.get(locales);
3314
- if (!lowercasedLocales) {
3315
- lowercasedLocales = locales.map((locale) => locale.toLowerCase());
3316
- cache.set(locales, lowercasedLocales);
3317
- }
3318
- let detectedLocale;
3319
- const segments = pathname.split("/", 2);
3320
- if (!segments[1]) return {
3321
- pathname
3322
- };
3323
- const segment = segments[1].toLowerCase();
3324
- const index = lowercasedLocales.indexOf(segment);
3325
- if (index < 0) return {
3326
- pathname
3327
- };
3328
- detectedLocale = locales[index];
3329
- pathname = pathname.slice(detectedLocale.length + 1) || "/";
3330
- return {
3331
- pathname,
3332
- detectedLocale
3333
- };
3334
- }
3335
- }
3336
- });
3337
-
3338
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/normalize-locale-path.js
3339
- var require_normalize_locale_path2 = __commonJS({
3340
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/normalize-locale-path.js"(exports$1, module) {
3341
- Object.defineProperty(exports$1, "__esModule", {
3342
- value: true
3343
- });
3344
- Object.defineProperty(exports$1, "normalizeLocalePath", {
3345
- enumerable: true,
3346
- get: function() {
3347
- return normalizeLocalePath;
3348
- }
3349
- });
3350
- var normalizeLocalePath = (pathname, locales) => {
3351
- if (process.env.__NEXT_I18N_SUPPORT) {
3352
- return require_normalize_locale_path().normalizeLocalePath(pathname, locales);
3353
- }
3354
- return {
3355
- pathname,
3356
- detectedLocale: void 0
3357
- };
3358
- };
3359
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3360
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3361
- Object.assign(exports$1.default, exports$1);
3362
- module.exports = exports$1.default;
3363
- }
3364
- }
3365
- });
3366
-
3367
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
3368
- var require_detect_domain_locale = __commonJS({
3369
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"(exports$1) {
3370
- Object.defineProperty(exports$1, "__esModule", {
3371
- value: true
3372
- });
3373
- Object.defineProperty(exports$1, "detectDomainLocale", {
3374
- enumerable: true,
3375
- get: function() {
3376
- return detectDomainLocale;
3377
- }
3378
- });
3379
- function detectDomainLocale(domainItems, hostname, detectedLocale) {
3380
- var _a, _b;
3381
- if (!domainItems) return;
3382
- if (detectedLocale) {
3383
- detectedLocale = detectedLocale.toLowerCase();
3384
- }
3385
- for (const item of domainItems) {
3386
- const domainHostname = (_a = item.domain) == null ? void 0 : _a.split(":", 1)[0].toLowerCase();
3387
- if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_b = item.locales) == null ? void 0 : _b.some((locale) => locale.toLowerCase() === detectedLocale))) {
3388
- return item;
3389
- }
3390
- }
3391
- }
3392
- }
3393
- });
3394
-
3395
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/detect-domain-locale.js
3396
- var require_detect_domain_locale2 = __commonJS({
3397
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/detect-domain-locale.js"(exports$1, module) {
3398
- Object.defineProperty(exports$1, "__esModule", {
3399
- value: true
3400
- });
3401
- Object.defineProperty(exports$1, "detectDomainLocale", {
3402
- enumerable: true,
3403
- get: function() {
3404
- return detectDomainLocale;
3405
- }
3406
- });
3407
- var detectDomainLocale = (...args) => {
3408
- if (process.env.__NEXT_I18N_SUPPORT) {
3409
- return require_detect_domain_locale().detectDomainLocale(...args);
3410
- }
3411
- };
3412
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3413
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3414
- Object.assign(exports$1.default, exports$1);
3415
- module.exports = exports$1.default;
3416
- }
3417
- }
3418
- });
3419
-
3420
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/get-domain-locale.js
3421
- var require_get_domain_locale = __commonJS({
3422
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/get-domain-locale.js"(exports$1, module) {
3423
- Object.defineProperty(exports$1, "__esModule", {
3424
- value: true
3425
- });
3426
- Object.defineProperty(exports$1, "getDomainLocale", {
3427
- enumerable: true,
3428
- get: function() {
3429
- return getDomainLocale;
3430
- }
3431
- });
3432
- var _normalizetrailingslash = require_normalize_trailing_slash();
3433
- var basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
3434
- function getDomainLocale(path, locale, locales, domainLocales) {
3435
- if (process.env.__NEXT_I18N_SUPPORT) {
3436
- const normalizeLocalePath = require_normalize_locale_path2().normalizeLocalePath;
3437
- const detectDomainLocale = require_detect_domain_locale2().detectDomainLocale;
3438
- const target = locale || normalizeLocalePath(path, locales).detectedLocale;
3439
- const domain = detectDomainLocale(domainLocales, void 0, target);
3440
- if (domain) {
3441
- const proto = `http${domain.http ? "" : "s"}://`;
3442
- const finalLocale = target === domain.defaultLocale ? "" : `/${target}`;
3443
- return `${proto}${domain.domain}${(0, _normalizetrailingslash.normalizePathTrailingSlash)(`${basePath}${finalLocale}${path}`)}`;
3444
- }
3445
- return false;
3446
- } else {
3447
- return false;
3448
- }
3449
- }
3450
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3451
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3452
- Object.assign(exports$1.default, exports$1);
3453
- module.exports = exports$1.default;
3454
- }
3455
- }
3456
- });
3457
-
3458
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/add-base-path.js
3459
- var require_add_base_path = __commonJS({
3460
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/add-base-path.js"(exports$1, module) {
3461
- Object.defineProperty(exports$1, "__esModule", {
3462
- value: true
3463
- });
3464
- Object.defineProperty(exports$1, "addBasePath", {
3465
- enumerable: true,
3466
- get: function() {
3467
- return addBasePath;
3468
- }
3469
- });
3470
- var _addpathprefix = require_add_path_prefix();
3471
- var _normalizetrailingslash = require_normalize_trailing_slash();
3472
- var basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
3473
- function addBasePath(path, required) {
3474
- return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
3475
- }
3476
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3477
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3478
- Object.assign(exports$1.default, exports$1);
3479
- module.exports = exports$1.default;
3480
- }
3481
- }
3482
- });
3483
-
3484
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/use-merged-ref.js
3485
- var require_use_merged_ref = __commonJS({
3486
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/use-merged-ref.js"(exports$1, module) {
3487
- Object.defineProperty(exports$1, "__esModule", {
3488
- value: true
3489
- });
3490
- Object.defineProperty(exports$1, "useMergedRef", {
3491
- enumerable: true,
3492
- get: function() {
3493
- return useMergedRef;
3494
- }
3495
- });
3496
- var _react = __require("react");
3497
- function useMergedRef(refA, refB) {
3498
- const cleanupA = (0, _react.useRef)(null);
3499
- const cleanupB = (0, _react.useRef)(null);
3500
- return (0, _react.useCallback)((current) => {
3501
- if (current === null) {
3502
- const cleanupFnA = cleanupA.current;
3503
- if (cleanupFnA) {
3504
- cleanupA.current = null;
3505
- cleanupFnA();
3506
- }
3507
- const cleanupFnB = cleanupB.current;
3508
- if (cleanupFnB) {
3509
- cleanupB.current = null;
3510
- cleanupFnB();
3511
- }
3512
- } else {
3513
- if (refA) {
3514
- cleanupA.current = applyRef(refA, current);
3515
- }
3516
- if (refB) {
3517
- cleanupB.current = applyRef(refB, current);
3518
- }
3519
- }
3520
- }, [
3521
- refA,
3522
- refB
3523
- ]);
3524
- }
3525
- function applyRef(refA, current) {
3526
- if (typeof refA === "function") {
3527
- const cleanup = refA(current);
3528
- if (typeof cleanup === "function") {
3529
- return cleanup;
3530
- } else {
3531
- return () => refA(null);
3532
- }
3533
- } else {
3534
- refA.current = current;
3535
- return () => {
3536
- refA.current = null;
3537
- };
3538
- }
3539
- }
3540
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3541
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3542
- Object.assign(exports$1.default, exports$1);
3543
- module.exports = exports$1.default;
3544
- }
3545
- }
3546
- });
3547
-
3548
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils/error-once.js
3549
- var require_error_once = __commonJS({
3550
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils/error-once.js"(exports$1) {
3551
- Object.defineProperty(exports$1, "__esModule", {
3552
- value: true
3553
- });
3554
- Object.defineProperty(exports$1, "errorOnce", {
3555
- enumerable: true,
3556
- get: function() {
3557
- return errorOnce;
3558
- }
3559
- });
3560
- var errorOnce = (_) => {
3561
- };
3562
- if (process.env.NODE_ENV !== "production") {
3563
- const errors = /* @__PURE__ */ new Set();
3564
- errorOnce = (msg) => {
3565
- if (!errors.has(msg)) {
3566
- console.error(msg);
3567
- }
3568
- errors.add(msg);
3569
- };
3570
- }
3571
- }
3572
- });
3573
-
3574
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/link.js
3575
- var require_link = __commonJS({
3576
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/link.js"(exports$1, module) {
3577
- "use client";
3578
- Object.defineProperty(exports$1, "__esModule", {
3579
- value: true
3580
- });
3581
- function _export(target, all) {
3582
- for (var name in all) Object.defineProperty(target, name, {
3583
- enumerable: true,
3584
- get: all[name]
3585
- });
3586
- }
3587
- _export(exports$1, {
3588
- default: function() {
3589
- return _default;
3590
- },
3591
- useLinkStatus: function() {
3592
- return useLinkStatus;
3593
- }
3594
- });
3595
- var _interop_require_wildcard = require_interop_require_wildcard();
3596
- var _jsxruntime = __require("react/jsx-runtime");
3597
- var _react = /* @__PURE__ */ _interop_require_wildcard._(__require("react"));
3598
- var _resolvehref = require_resolve_href();
3599
- var _islocalurl = require_is_local_url();
3600
- var _formaturl = require_format_url();
3601
- var _utils = require_utils();
3602
- var _addlocale = require_add_locale2();
3603
- var _routercontextsharedruntime = require_router_context_shared_runtime();
3604
- var _useintersection = require_use_intersection();
3605
- var _getdomainlocale = require_get_domain_locale();
3606
- var _addbasepath = require_add_base_path();
3607
- var _usemergedref = require_use_merged_ref();
3608
- var _erroronce = require_error_once();
3609
- var prefetched = /* @__PURE__ */ new Set();
3610
- function prefetch(router, href, as, options) {
3611
- if (typeof window === "undefined") {
3612
- return;
3613
- }
3614
- if (!(0, _islocalurl.isLocalURL)(href)) {
3615
- return;
3616
- }
3617
- if (!options.bypassPrefetchedCheck) {
3618
- const locale = (
3619
- // Let the link's locale prop override the default router locale.
3620
- typeof options.locale !== "undefined" ? options.locale : "locale" in router ? router.locale : void 0
3621
- );
3622
- const prefetchedKey = href + "%" + as + "%" + locale;
3623
- if (prefetched.has(prefetchedKey)) {
3624
- return;
3625
- }
3626
- prefetched.add(prefetchedKey);
3627
- }
3628
- router.prefetch(href, as, options).catch((err) => {
3629
- if (process.env.NODE_ENV !== "production") {
3630
- throw err;
3631
- }
3632
- });
3633
- }
3634
- function isModifiedEvent(event) {
3635
- const eventTarget = event.currentTarget;
3636
- const target = eventTarget.getAttribute("target");
3637
- return target && target !== "_self" || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || // triggers resource download
3638
- event.nativeEvent && event.nativeEvent.which === 2;
3639
- }
3640
- function linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate) {
3641
- const { nodeName } = e.currentTarget;
3642
- const isAnchorNodeName = nodeName.toUpperCase() === "A";
3643
- if (isAnchorNodeName && isModifiedEvent(e) || e.currentTarget.hasAttribute("download")) {
3644
- return;
3645
- }
3646
- if (!(0, _islocalurl.isLocalURL)(href)) {
3647
- if (replace) {
3648
- e.preventDefault();
3649
- location.replace(href);
3650
- }
3651
- return;
3652
- }
3653
- e.preventDefault();
3654
- const navigate = () => {
3655
- if (onNavigate) {
3656
- let isDefaultPrevented = false;
3657
- onNavigate({
3658
- preventDefault: () => {
3659
- isDefaultPrevented = true;
3660
- }
3661
- });
3662
- if (isDefaultPrevented) {
3663
- return;
3664
- }
3665
- }
3666
- const routerScroll = scroll != null ? scroll : true;
3667
- if ("beforePopState" in router) {
3668
- router[replace ? "replace" : "push"](href, as, {
3669
- shallow,
3670
- locale,
3671
- scroll: routerScroll
3672
- });
3673
- } else {
3674
- router[replace ? "replace" : "push"](as || href, {
3675
- scroll: routerScroll
3676
- });
3677
- }
3678
- };
3679
- navigate();
3680
- }
3681
- function formatStringOrUrl(urlObjOrString) {
3682
- if (typeof urlObjOrString === "string") {
3683
- return urlObjOrString;
3684
- }
3685
- return (0, _formaturl.formatUrl)(urlObjOrString);
3686
- }
3687
- var Link2 = /* @__PURE__ */ _react.default.forwardRef(function LinkComponent(props, forwardedRef) {
3688
- let children;
3689
- const _a = props, { href: hrefProp, as: asProp, children: childrenProp, prefetch: prefetchProp = null, passHref, replace, shallow, scroll, locale, onClick, onNavigate, onMouseEnter: onMouseEnterProp, onTouchStart: onTouchStartProp, legacyBehavior = false } = _a, restProps = __objRest(_a, ["href", "as", "children", "prefetch", "passHref", "replace", "shallow", "scroll", "locale", "onClick", "onNavigate", "onMouseEnter", "onTouchStart", "legacyBehavior"]);
3690
- children = childrenProp;
3691
- if (legacyBehavior && (typeof children === "string" || typeof children === "number")) {
3692
- children = /* @__PURE__ */ (0, _jsxruntime.jsx)("a", {
3693
- children
3694
- });
3695
- }
3696
- const router = _react.default.useContext(_routercontextsharedruntime.RouterContext);
3697
- const prefetchEnabled = prefetchProp !== false;
3698
- if (process.env.NODE_ENV !== "production") {
3699
- let createPropError = function(args) {
3700
- return Object.defineProperty(new Error(`Failed prop type: The prop \`${args.key}\` expects a ${args.expected} in \`<Link>\`, but got \`${args.actual}\` instead.` + (typeof window !== "undefined" ? "\nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
3701
- value: "E319",
3702
- enumerable: false,
3703
- configurable: true
3704
- });
3705
- };
3706
- const requiredPropsGuard = {
3707
- href: true
3708
- };
3709
- const requiredProps = Object.keys(requiredPropsGuard);
3710
- requiredProps.forEach((key) => {
3711
- if (key === "href") {
3712
- if (props[key] == null || typeof props[key] !== "string" && typeof props[key] !== "object") {
3713
- throw createPropError({
3714
- key,
3715
- expected: "`string` or `object`",
3716
- actual: props[key] === null ? "null" : typeof props[key]
3717
- });
3718
- }
3719
- }
3720
- });
3721
- const optionalPropsGuard = {
3722
- as: true,
3723
- replace: true,
3724
- scroll: true,
3725
- shallow: true,
3726
- passHref: true,
3727
- prefetch: true,
3728
- locale: true,
3729
- onClick: true,
3730
- onMouseEnter: true,
3731
- onTouchStart: true,
3732
- legacyBehavior: true,
3733
- onNavigate: true
3734
- };
3735
- const optionalProps = Object.keys(optionalPropsGuard);
3736
- optionalProps.forEach((key) => {
3737
- const valType = typeof props[key];
3738
- if (key === "as") {
3739
- if (props[key] && valType !== "string" && valType !== "object") {
3740
- throw createPropError({
3741
- key,
3742
- expected: "`string` or `object`",
3743
- actual: valType
3744
- });
3745
- }
3746
- } else if (key === "locale") {
3747
- if (props[key] && valType !== "string") {
3748
- throw createPropError({
3749
- key,
3750
- expected: "`string`",
3751
- actual: valType
3752
- });
3753
- }
3754
- } else if (key === "onClick" || key === "onMouseEnter" || key === "onTouchStart" || key === "onNavigate") {
3755
- if (props[key] && valType !== "function") {
3756
- throw createPropError({
3757
- key,
3758
- expected: "`function`",
3759
- actual: valType
3760
- });
3761
- }
3762
- } else if (key === "replace" || key === "scroll" || key === "shallow" || key === "passHref" || key === "legacyBehavior") {
3763
- if (props[key] != null && valType !== "boolean") {
3764
- throw createPropError({
3765
- key,
3766
- expected: "`boolean`",
3767
- actual: valType
3768
- });
3769
- }
3770
- } else if (key === "prefetch") {
3771
- if (props[key] != null && valType !== "boolean" && props[key] !== "auto") {
3772
- throw createPropError({
3773
- key,
3774
- expected: '`boolean | "auto"`',
3775
- actual: valType
3776
- });
3777
- }
3778
- } else ;
3779
- });
3780
- }
3781
- const { href, as } = _react.default.useMemo(() => {
3782
- if (!router) {
3783
- const resolvedHref2 = formatStringOrUrl(hrefProp);
3784
- return {
3785
- href: resolvedHref2,
3786
- as: asProp ? formatStringOrUrl(asProp) : resolvedHref2
3787
- };
3788
- }
3789
- const [resolvedHref, resolvedAs] = (0, _resolvehref.resolveHref)(router, hrefProp, true);
3790
- return {
3791
- href: resolvedHref,
3792
- as: asProp ? (0, _resolvehref.resolveHref)(router, asProp) : resolvedAs || resolvedHref
3793
- };
3794
- }, [
3795
- router,
3796
- hrefProp,
3797
- asProp
3798
- ]);
3799
- const previousHref = _react.default.useRef(href);
3800
- const previousAs = _react.default.useRef(as);
3801
- let child;
3802
- if (legacyBehavior) {
3803
- if (process.env.NODE_ENV === "development") {
3804
- if (onClick) {
3805
- console.warn(`"onClick" was passed to <Link> with \`href\` of \`${hrefProp}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`);
3806
- }
3807
- if (onMouseEnterProp) {
3808
- console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${hrefProp}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);
3809
- }
3810
- try {
3811
- child = _react.default.Children.only(children);
3812
- } catch (err) {
3813
- if (!children) {
3814
- throw Object.defineProperty(new Error(`No children were passed to <Link> with \`href\` of \`${hrefProp}\` but one child is required https://nextjs.org/docs/messages/link-no-children`), "__NEXT_ERROR_CODE", {
3815
- value: "E320",
3816
- enumerable: false,
3817
- configurable: true
3818
- });
3819
- }
3820
- throw Object.defineProperty(new Error(`Multiple children were passed to <Link> with \`href\` of \`${hrefProp}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` + (typeof window !== "undefined" ? " \nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
3821
- value: "E266",
3822
- enumerable: false,
3823
- configurable: true
3824
- });
3825
- }
3826
- } else {
3827
- child = _react.default.Children.only(children);
3828
- }
3829
- } else {
3830
- if (process.env.NODE_ENV === "development") {
3831
- if ((children == null ? void 0 : children.type) === "a") {
3832
- throw Object.defineProperty(new Error("Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor"), "__NEXT_ERROR_CODE", {
3833
- value: "E209",
3834
- enumerable: false,
3835
- configurable: true
3836
- });
3837
- }
3838
- }
3839
- }
3840
- const childRef = legacyBehavior ? child && typeof child === "object" && child.ref : forwardedRef;
3841
- const [setIntersectionRef, isVisible, resetVisible] = (0, _useintersection.useIntersection)({
3842
- rootMargin: "200px"
3843
- });
3844
- const setIntersectionWithResetRef = _react.default.useCallback((el) => {
3845
- if (previousAs.current !== as || previousHref.current !== href) {
3846
- resetVisible();
3847
- previousAs.current = as;
3848
- previousHref.current = href;
3849
- }
3850
- setIntersectionRef(el);
3851
- }, [
3852
- as,
3853
- href,
3854
- resetVisible,
3855
- setIntersectionRef
3856
- ]);
3857
- const setRef = (0, _usemergedref.useMergedRef)(setIntersectionWithResetRef, childRef);
3858
- _react.default.useEffect(() => {
3859
- if (process.env.NODE_ENV !== "production") {
3860
- return;
3861
- }
3862
- if (!router) {
3863
- return;
3864
- }
3865
- if (!isVisible || !prefetchEnabled) {
3866
- return;
3867
- }
3868
- prefetch(router, href, as, {
3869
- locale
3870
- });
3871
- }, [
3872
- as,
3873
- href,
3874
- isVisible,
3875
- locale,
3876
- prefetchEnabled,
3877
- router == null ? void 0 : router.locale,
3878
- router
3879
- ]);
3880
- const childProps = {
3881
- ref: setRef,
3882
- onClick(e) {
3883
- if (process.env.NODE_ENV !== "production") {
3884
- if (!e) {
3885
- throw Object.defineProperty(new Error(`Component rendered inside next/link has to pass click event to "onClick" prop.`), "__NEXT_ERROR_CODE", {
3886
- value: "E312",
3887
- enumerable: false,
3888
- configurable: true
3889
- });
3890
- }
3891
- }
3892
- if (!legacyBehavior && typeof onClick === "function") {
3893
- onClick(e);
3894
- }
3895
- if (legacyBehavior && child.props && typeof child.props.onClick === "function") {
3896
- child.props.onClick(e);
3897
- }
3898
- if (!router) {
3899
- return;
3900
- }
3901
- if (e.defaultPrevented) {
3902
- return;
3903
- }
3904
- linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate);
3905
- },
3906
- onMouseEnter(e) {
3907
- if (!legacyBehavior && typeof onMouseEnterProp === "function") {
3908
- onMouseEnterProp(e);
3909
- }
3910
- if (legacyBehavior && child.props && typeof child.props.onMouseEnter === "function") {
3911
- child.props.onMouseEnter(e);
3912
- }
3913
- if (!router) {
3914
- return;
3915
- }
3916
- prefetch(router, href, as, {
3917
- locale,
3918
- priority: true,
3919
- // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
3920
- bypassPrefetchedCheck: true
3921
- });
3922
- },
3923
- onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function onTouchStart(e) {
3924
- if (!legacyBehavior && typeof onTouchStartProp === "function") {
3925
- onTouchStartProp(e);
3926
- }
3927
- if (legacyBehavior && child.props && typeof child.props.onTouchStart === "function") {
3928
- child.props.onTouchStart(e);
3929
- }
3930
- if (!router) {
3931
- return;
3932
- }
3933
- prefetch(router, href, as, {
3934
- locale,
3935
- priority: true,
3936
- // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
3937
- bypassPrefetchedCheck: true
3938
- });
3939
- }
3940
- };
3941
- if ((0, _utils.isAbsoluteUrl)(as)) {
3942
- childProps.href = as;
3943
- } else if (!legacyBehavior || passHref || child.type === "a" && !("href" in child.props)) {
3944
- const curLocale = typeof locale !== "undefined" ? locale : router == null ? void 0 : router.locale;
3945
- const localeDomain = (router == null ? void 0 : router.isLocaleDomain) && (0, _getdomainlocale.getDomainLocale)(as, curLocale, router == null ? void 0 : router.locales, router == null ? void 0 : router.domainLocales);
3946
- childProps.href = localeDomain || (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, curLocale, router == null ? void 0 : router.defaultLocale));
3947
- }
3948
- if (legacyBehavior) {
3949
- if (process.env.NODE_ENV === "development") {
3950
- (0, _erroronce.errorOnce)("`legacyBehavior` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:\n\nnpx @next/codemod@latest new-link .\n\nLearn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components");
3951
- }
3952
- return /* @__PURE__ */ _react.default.cloneElement(child, childProps);
3953
- }
3954
- return /* @__PURE__ */ (0, _jsxruntime.jsx)("a", __spreadProps(__spreadValues(__spreadValues({}, restProps), childProps), {
3955
- children
3956
- }));
3957
- });
3958
- var LinkStatusContext = /* @__PURE__ */ (0, _react.createContext)({
3959
- // We do not support link status in the Pages Router, so we always return false
3960
- pending: false
3961
- });
3962
- var useLinkStatus = () => {
3963
- return (0, _react.useContext)(LinkStatusContext);
3964
- };
3965
- var _default = Link2;
3966
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3967
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3968
- Object.assign(exports$1.default, exports$1);
3969
- module.exports = exports$1.default;
3970
- }
3971
- }
3972
- });
3973
-
3974
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/link.js
3975
- var require_link2 = __commonJS({
3976
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/link.js"(exports$1, module) {
3977
- module.exports = require_link();
3978
- }
3979
- });
3980
62
  function ActionButton(_a) {
3981
63
  var _b = _a, {
3982
64
  children,
@@ -4302,9 +384,6 @@ function InputField(_a) {
4302
384
  }, props)
4303
385
  );
4304
386
  }
4305
-
4306
- // src/stories/texts/Link.tsx
4307
- var import_link = __toESM(require_link2());
4308
387
  function Link(_a) {
4309
388
  var _b = _a, {
4310
389
  children,
@@ -4312,9 +391,9 @@ function Link(_a) {
4312
391
  className = "",
4313
392
  target = "_blank",
4314
393
  disabled = false,
4315
- prefetch,
4316
- replace,
4317
- scroll
394
+ prefetch: _prefetch,
395
+ replace: _replace,
396
+ scroll: _scroll
4318
397
  } = _b, props = __objRest(_b, [
4319
398
  "children",
4320
399
  "href",
@@ -4361,13 +440,10 @@ function Link(_a) {
4361
440
  );
4362
441
  }
4363
442
  return /* @__PURE__ */ jsxRuntime.jsx(
4364
- import_link.default,
443
+ "a",
4365
444
  __spreadProps(__spreadValues({
4366
445
  href,
4367
446
  target,
4368
- prefetch,
4369
- replace,
4370
- scroll,
4371
447
  "data-slot": "link",
4372
448
  "data-test-id": "link",
4373
449
  className: linkClasses,
@@ -7805,6 +3881,7 @@ exports.TabsContent = TabsContent;
7805
3881
  exports.TabsList = TabsList;
7806
3882
  exports.TabsTrigger = TabsTrigger;
7807
3883
  exports.TertiaryButton = TertiaryButton;
3884
+ exports.Text = Text_default;
7808
3885
  exports.TextAccent = TextAccent;
7809
3886
  exports.TextBody = TextBody;
7810
3887
  exports.TextHeading = TextHeading;