autumn-js 0.1.41 → 0.1.42
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/libraries/backend/better-auth.mjs +1 -0
- package/dist/libraries/backend/chunk-6DZX6EAA.mjs +37 -0
- package/dist/libraries/backend/constants.mjs +1 -0
- package/dist/libraries/backend/convex.mjs +1 -0
- package/dist/libraries/backend/elysia.mjs +1 -0
- package/dist/libraries/backend/express.mjs +1 -0
- package/dist/libraries/backend/fastify.mjs +1 -0
- package/dist/libraries/backend/hono.mjs +1 -0
- package/dist/libraries/backend/index.mjs +1 -0
- package/dist/libraries/backend/next.js +3500 -3
- package/dist/libraries/backend/next.mjs +3504 -5
- package/dist/libraries/backend/react-router.mjs +1 -0
- package/dist/libraries/backend/remix_dep.mjs +1 -0
- package/dist/libraries/backend/routes/backendRouter.mjs +1 -0
- package/dist/libraries/backend/routes/entityRoutes.mjs +1 -0
- package/dist/libraries/backend/routes/genRoutes.mjs +1 -0
- package/dist/libraries/backend/routes/productRoutes.mjs +1 -0
- package/dist/libraries/backend/routes/referralRoutes.mjs +1 -0
- package/dist/libraries/backend/schemas/zod.mjs +2 -0
- package/dist/libraries/backend/supabase.mjs +1 -0
- package/dist/libraries/backend/tanstack.js +96 -4
- package/dist/libraries/backend/tanstack.mjs +98 -1
- package/dist/libraries/backend/utils/backendRes.mjs +1 -0
- package/dist/libraries/backend/utils/betterAuth/middlewares.mjs +1 -0
- package/dist/libraries/backend/utils/logBackendErrors.mjs +1 -0
- package/dist/libraries/backend/utils/secretKeyCheck.mjs +1 -0
- package/dist/libraries/backend/utils/withAuth.mjs +1 -0
- package/dist/libraries/react/chunk-CBCX366C.mjs +743 -0
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +5 -5
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +5 -5
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +5 -5
- package/package.json +196 -196
- package/tsup.config.ts +193 -186
- package/dist/next/client/AutumnClientProvider.d.mts +0 -2
- package/dist/next/client/AutumnClientProvider.d.ts +0 -2
- package/dist/next/client/NextAutumnClient.d.mts +0 -253
- package/dist/next/client/NextAutumnClient.d.ts +0 -253
- package/dist/next/client/NextAutumnProvider.d.mts +0 -12
- package/dist/next/client/NextAutumnProvider.d.ts +0 -12
- package/dist/next/client/clientAttachTypes-BtZh00uu.d.ts +0 -121
- package/dist/next/client/clientAttachTypes-yOuJqDWt.d.mts +0 -121
- package/dist/next/client/clientEntTypes-Bsi7ciUF.d.ts +0 -73
- package/dist/next/client/clientEntTypes-aLfa3lyP.d.mts +0 -73
- package/dist/next/client/clientUtils.d.mts +0 -19
- package/dist/next/client/clientUtils.d.ts +0 -19
- package/dist/next/client/cusTypes-B-rJwpui.d.ts +0 -123
- package/dist/next/client/cusTypes-CXjHwB-c.d.mts +0 -123
- package/dist/next/client/entTypes-BkN-Puru.d.mts +0 -22
- package/dist/next/client/entTypes-DjKFS-Zk.d.ts +0 -22
- package/dist/next/client/error-DHbclCVh.d.mts +0 -17
- package/dist/next/client/error-DHbclCVh.d.ts +0 -17
- package/dist/next/client/hooks/useAutumn.d.mts +0 -19
- package/dist/next/client/hooks/useAutumn.d.ts +0 -19
- package/dist/next/client/hooks/useCustomer.d.mts +0 -87
- package/dist/next/client/hooks/useCustomer.d.ts +0 -87
- package/dist/next/client/hooks/useEntity.d.mts +0 -33
- package/dist/next/client/hooks/useEntity.d.ts +0 -33
- package/dist/next/client/hooks/usePricingTable.d.mts +0 -34
- package/dist/next/client/hooks/usePricingTable.d.ts +0 -34
- package/dist/next/client/prodTypes-B_VMILpU.d.mts +0 -162
- package/dist/next/client/prodTypes-B_VMILpU.d.ts +0 -162
- package/dist/next/client/types.d.mts +0 -75
- package/dist/next/client/types.d.ts +0 -75
- package/dist/next/server/auth/authPlugin.d.mts +0 -13
- package/dist/next/server/auth/authPlugin.d.ts +0 -13
- package/dist/next/server/auth/clerk-wrapper.d.mts +0 -3
- package/dist/next/server/auth/clerk-wrapper.d.ts +0 -3
- package/dist/next/server/auth/get-next-headers.d.mts +0 -6
- package/dist/next/server/auth/get-next-headers.d.ts +0 -6
- package/dist/next/server/auth/handleAuthProvider.d.mts +0 -44
- package/dist/next/server/auth/handleAuthProvider.d.ts +0 -44
- package/dist/next/server/auth/supabase-wrapper.d.mts +0 -3
- package/dist/next/server/auth/supabase-wrapper.d.ts +0 -3
- package/dist/next/server/auth/withNextAuth.d.mts +0 -16
- package/dist/next/server/auth/withNextAuth.d.ts +0 -16
- package/dist/next/server/componentActions.d.mts +0 -12
- package/dist/next/server/componentActions.d.ts +0 -12
- package/dist/next/server/cusActions.d.mts +0 -633
- package/dist/next/server/cusActions.d.ts +0 -633
- package/dist/next/server/cusTypes-CrLBF0Kx.d.mts +0 -327
- package/dist/next/server/cusTypes-CrLBF0Kx.d.ts +0 -327
- package/dist/next/server/genActions.d.mts +0 -84
- package/dist/next/server/genActions.d.ts +0 -84
- package/dist/next/server/response-eH4S4sg0.d.mts +0 -29
- package/dist/next/server/response-eH4S4sg0.d.ts +0 -29
- package/dist/next/server/utils.d.mts +0 -5
- package/dist/next/server/utils.d.ts +0 -5
- package/dist/utils/encryptUtils.d.mts +0 -4
- package/dist/utils/encryptUtils.d.ts +0 -4
- package/dist/utils/entityUtils.d.mts +0 -3
- package/dist/utils/entityUtils.d.ts +0 -3
- package/dist/utils/logger.d.mts +0 -45
- package/dist/utils/logger.d.ts +0 -45
- package/dist/utils/toSnakeCase.d.mts +0 -7
- package/dist/utils/toSnakeCase.d.ts +0 -7
|
@@ -16,10 +16,3509 @@ import "./chunk-2TEL6LR5.mjs";
|
|
|
16
16
|
import {
|
|
17
17
|
autumnApiUrl
|
|
18
18
|
} from "./chunk-KSG3E4Q2.mjs";
|
|
19
|
+
import {
|
|
20
|
+
__commonJS,
|
|
21
|
+
__require,
|
|
22
|
+
__toESM
|
|
23
|
+
} from "./chunk-6DZX6EAA.mjs";
|
|
24
|
+
|
|
25
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
|
|
26
|
+
var require_detect_domain_locale = __commonJS({
|
|
27
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"(exports) {
|
|
28
|
+
"use strict";
|
|
29
|
+
Object.defineProperty(exports, "__esModule", {
|
|
30
|
+
value: true
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function() {
|
|
35
|
+
return detectDomainLocale;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
function detectDomainLocale(domainItems, hostname, detectedLocale) {
|
|
39
|
+
if (!domainItems) return;
|
|
40
|
+
if (detectedLocale) {
|
|
41
|
+
detectedLocale = detectedLocale.toLowerCase();
|
|
42
|
+
}
|
|
43
|
+
for (const item of domainItems) {
|
|
44
|
+
var _item_domain, _item_locales;
|
|
45
|
+
const domainHostname = (_item_domain = item.domain) == null ? void 0 : _item_domain.split(":", 1)[0].toLowerCase();
|
|
46
|
+
if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_item_locales = item.locales) == null ? void 0 : _item_locales.some((locale) => locale.toLowerCase() === detectedLocale))) {
|
|
47
|
+
return item;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
|
|
55
|
+
var require_remove_trailing_slash = __commonJS({
|
|
56
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"(exports) {
|
|
57
|
+
"use strict";
|
|
58
|
+
Object.defineProperty(exports, "__esModule", {
|
|
59
|
+
value: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function() {
|
|
64
|
+
return removeTrailingSlash;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
function removeTrailingSlash(route) {
|
|
68
|
+
return route.replace(/\/$/, "") || "/";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/parse-path.js
|
|
74
|
+
var require_parse_path = __commonJS({
|
|
75
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/parse-path.js"(exports) {
|
|
76
|
+
"use strict";
|
|
77
|
+
Object.defineProperty(exports, "__esModule", {
|
|
78
|
+
value: true
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "parsePath", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function() {
|
|
83
|
+
return parsePath;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
function parsePath(path) {
|
|
87
|
+
const hashIndex = path.indexOf("#");
|
|
88
|
+
const queryIndex = path.indexOf("?");
|
|
89
|
+
const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
|
|
90
|
+
if (hasQuery || hashIndex > -1) {
|
|
91
|
+
return {
|
|
92
|
+
pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
|
|
93
|
+
query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
|
|
94
|
+
hash: hashIndex > -1 ? path.slice(hashIndex) : ""
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
pathname: path,
|
|
99
|
+
query: "",
|
|
100
|
+
hash: ""
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
|
|
107
|
+
var require_add_path_prefix = __commonJS({
|
|
108
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"(exports) {
|
|
109
|
+
"use strict";
|
|
110
|
+
Object.defineProperty(exports, "__esModule", {
|
|
111
|
+
value: true
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, "addPathPrefix", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function() {
|
|
116
|
+
return addPathPrefix;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
var _parsepath = require_parse_path();
|
|
120
|
+
function addPathPrefix(path, prefix) {
|
|
121
|
+
if (!path.startsWith("/") || !prefix) {
|
|
122
|
+
return path;
|
|
123
|
+
}
|
|
124
|
+
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
125
|
+
return "" + prefix + pathname + query + hash;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js
|
|
131
|
+
var require_add_path_suffix = __commonJS({
|
|
132
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js"(exports) {
|
|
133
|
+
"use strict";
|
|
134
|
+
Object.defineProperty(exports, "__esModule", {
|
|
135
|
+
value: true
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, "addPathSuffix", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function() {
|
|
140
|
+
return addPathSuffix;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
var _parsepath = require_parse_path();
|
|
144
|
+
function addPathSuffix(path, suffix) {
|
|
145
|
+
if (!path.startsWith("/") || !suffix) {
|
|
146
|
+
return path;
|
|
147
|
+
}
|
|
148
|
+
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
149
|
+
return "" + pathname + suffix + query + hash;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
|
|
155
|
+
var require_path_has_prefix = __commonJS({
|
|
156
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"(exports) {
|
|
157
|
+
"use strict";
|
|
158
|
+
Object.defineProperty(exports, "__esModule", {
|
|
159
|
+
value: true
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(exports, "pathHasPrefix", {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function() {
|
|
164
|
+
return pathHasPrefix;
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
var _parsepath = require_parse_path();
|
|
168
|
+
function pathHasPrefix(path, prefix) {
|
|
169
|
+
if (typeof path !== "string") {
|
|
170
|
+
return false;
|
|
171
|
+
}
|
|
172
|
+
const { pathname } = (0, _parsepath.parsePath)(path);
|
|
173
|
+
return pathname === prefix || pathname.startsWith(prefix + "/");
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/add-locale.js
|
|
179
|
+
var require_add_locale = __commonJS({
|
|
180
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/add-locale.js"(exports) {
|
|
181
|
+
"use strict";
|
|
182
|
+
Object.defineProperty(exports, "__esModule", {
|
|
183
|
+
value: true
|
|
184
|
+
});
|
|
185
|
+
Object.defineProperty(exports, "addLocale", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function() {
|
|
188
|
+
return addLocale;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
var _addpathprefix = require_add_path_prefix();
|
|
192
|
+
var _pathhasprefix = require_path_has_prefix();
|
|
193
|
+
function addLocale(path, locale, defaultLocale, ignorePrefix) {
|
|
194
|
+
if (!locale || locale === defaultLocale) return path;
|
|
195
|
+
const lower = path.toLowerCase();
|
|
196
|
+
if (!ignorePrefix) {
|
|
197
|
+
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api")) return path;
|
|
198
|
+
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/" + locale.toLowerCase())) return path;
|
|
199
|
+
}
|
|
200
|
+
return (0, _addpathprefix.addPathPrefix)(path, "/" + locale);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js
|
|
206
|
+
var require_format_next_pathname_info = __commonJS({
|
|
207
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js"(exports) {
|
|
208
|
+
"use strict";
|
|
209
|
+
Object.defineProperty(exports, "__esModule", {
|
|
210
|
+
value: true
|
|
211
|
+
});
|
|
212
|
+
Object.defineProperty(exports, "formatNextPathnameInfo", {
|
|
213
|
+
enumerable: true,
|
|
214
|
+
get: function() {
|
|
215
|
+
return formatNextPathnameInfo;
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
var _removetrailingslash = require_remove_trailing_slash();
|
|
219
|
+
var _addpathprefix = require_add_path_prefix();
|
|
220
|
+
var _addpathsuffix = require_add_path_suffix();
|
|
221
|
+
var _addlocale = require_add_locale();
|
|
222
|
+
function formatNextPathnameInfo(info) {
|
|
223
|
+
let pathname = (0, _addlocale.addLocale)(info.pathname, info.locale, info.buildId ? void 0 : info.defaultLocale, info.ignorePrefix);
|
|
224
|
+
if (info.buildId || !info.trailingSlash) {
|
|
225
|
+
pathname = (0, _removetrailingslash.removeTrailingSlash)(pathname);
|
|
226
|
+
}
|
|
227
|
+
if (info.buildId) {
|
|
228
|
+
pathname = (0, _addpathsuffix.addPathSuffix)((0, _addpathprefix.addPathPrefix)(pathname, "/_next/data/" + info.buildId), info.pathname === "/" ? "index.json" : ".json");
|
|
229
|
+
}
|
|
230
|
+
pathname = (0, _addpathprefix.addPathPrefix)(pathname, info.basePath);
|
|
231
|
+
return !info.buildId && info.trailingSlash ? !pathname.endsWith("/") ? (0, _addpathsuffix.addPathSuffix)(pathname, "/") : pathname : (0, _removetrailingslash.removeTrailingSlash)(pathname);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/get-hostname.js
|
|
237
|
+
var require_get_hostname = __commonJS({
|
|
238
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/get-hostname.js"(exports) {
|
|
239
|
+
"use strict";
|
|
240
|
+
Object.defineProperty(exports, "__esModule", {
|
|
241
|
+
value: true
|
|
242
|
+
});
|
|
243
|
+
Object.defineProperty(exports, "getHostname", {
|
|
244
|
+
enumerable: true,
|
|
245
|
+
get: function() {
|
|
246
|
+
return getHostname;
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
function getHostname(parsed, headers) {
|
|
250
|
+
let hostname;
|
|
251
|
+
if ((headers == null ? void 0 : headers.host) && !Array.isArray(headers.host)) {
|
|
252
|
+
hostname = headers.host.toString().split(":", 1)[0];
|
|
253
|
+
} else if (parsed.hostname) {
|
|
254
|
+
hostname = parsed.hostname;
|
|
255
|
+
} else return;
|
|
256
|
+
return hostname.toLowerCase();
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
|
|
262
|
+
var require_normalize_locale_path = __commonJS({
|
|
263
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"(exports) {
|
|
264
|
+
"use strict";
|
|
265
|
+
Object.defineProperty(exports, "__esModule", {
|
|
266
|
+
value: true
|
|
267
|
+
});
|
|
268
|
+
Object.defineProperty(exports, "normalizeLocalePath", {
|
|
269
|
+
enumerable: true,
|
|
270
|
+
get: function() {
|
|
271
|
+
return normalizeLocalePath;
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
275
|
+
function normalizeLocalePath(pathname, locales) {
|
|
276
|
+
if (!locales) return {
|
|
277
|
+
pathname
|
|
278
|
+
};
|
|
279
|
+
let lowercasedLocales = cache.get(locales);
|
|
280
|
+
if (!lowercasedLocales) {
|
|
281
|
+
lowercasedLocales = locales.map((locale) => locale.toLowerCase());
|
|
282
|
+
cache.set(locales, lowercasedLocales);
|
|
283
|
+
}
|
|
284
|
+
let detectedLocale;
|
|
285
|
+
const segments = pathname.split("/", 2);
|
|
286
|
+
if (!segments[1]) return {
|
|
287
|
+
pathname
|
|
288
|
+
};
|
|
289
|
+
const segment = segments[1].toLowerCase();
|
|
290
|
+
const index = lowercasedLocales.indexOf(segment);
|
|
291
|
+
if (index < 0) return {
|
|
292
|
+
pathname
|
|
293
|
+
};
|
|
294
|
+
detectedLocale = locales[index];
|
|
295
|
+
pathname = pathname.slice(detectedLocale.length + 1) || "/";
|
|
296
|
+
return {
|
|
297
|
+
pathname,
|
|
298
|
+
detectedLocale
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
|
|
304
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js
|
|
305
|
+
var require_remove_path_prefix = __commonJS({
|
|
306
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js"(exports) {
|
|
307
|
+
"use strict";
|
|
308
|
+
Object.defineProperty(exports, "__esModule", {
|
|
309
|
+
value: true
|
|
310
|
+
});
|
|
311
|
+
Object.defineProperty(exports, "removePathPrefix", {
|
|
312
|
+
enumerable: true,
|
|
313
|
+
get: function() {
|
|
314
|
+
return removePathPrefix;
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
var _pathhasprefix = require_path_has_prefix();
|
|
318
|
+
function removePathPrefix(path, prefix) {
|
|
319
|
+
if (!(0, _pathhasprefix.pathHasPrefix)(path, prefix)) {
|
|
320
|
+
return path;
|
|
321
|
+
}
|
|
322
|
+
const withoutPrefix = path.slice(prefix.length);
|
|
323
|
+
if (withoutPrefix.startsWith("/")) {
|
|
324
|
+
return withoutPrefix;
|
|
325
|
+
}
|
|
326
|
+
return "/" + withoutPrefix;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js
|
|
332
|
+
var require_get_next_pathname_info = __commonJS({
|
|
333
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js"(exports) {
|
|
334
|
+
"use strict";
|
|
335
|
+
Object.defineProperty(exports, "__esModule", {
|
|
336
|
+
value: true
|
|
337
|
+
});
|
|
338
|
+
Object.defineProperty(exports, "getNextPathnameInfo", {
|
|
339
|
+
enumerable: true,
|
|
340
|
+
get: function() {
|
|
341
|
+
return getNextPathnameInfo;
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
var _normalizelocalepath = require_normalize_locale_path();
|
|
345
|
+
var _removepathprefix = require_remove_path_prefix();
|
|
346
|
+
var _pathhasprefix = require_path_has_prefix();
|
|
347
|
+
function getNextPathnameInfo(pathname, options) {
|
|
348
|
+
var _options_nextConfig;
|
|
349
|
+
const { basePath, i18n, trailingSlash } = (_options_nextConfig = options.nextConfig) != null ? _options_nextConfig : {};
|
|
350
|
+
const info = {
|
|
351
|
+
pathname,
|
|
352
|
+
trailingSlash: pathname !== "/" ? pathname.endsWith("/") : trailingSlash
|
|
353
|
+
};
|
|
354
|
+
if (basePath && (0, _pathhasprefix.pathHasPrefix)(info.pathname, basePath)) {
|
|
355
|
+
info.pathname = (0, _removepathprefix.removePathPrefix)(info.pathname, basePath);
|
|
356
|
+
info.basePath = basePath;
|
|
357
|
+
}
|
|
358
|
+
let pathnameNoDataPrefix = info.pathname;
|
|
359
|
+
if (info.pathname.startsWith("/_next/data/") && info.pathname.endsWith(".json")) {
|
|
360
|
+
const paths = info.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/");
|
|
361
|
+
const buildId = paths[0];
|
|
362
|
+
info.buildId = buildId;
|
|
363
|
+
pathnameNoDataPrefix = paths[1] !== "index" ? "/" + paths.slice(1).join("/") : "/";
|
|
364
|
+
if (options.parseData === true) {
|
|
365
|
+
info.pathname = pathnameNoDataPrefix;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
if (i18n) {
|
|
369
|
+
let result = options.i18nProvider ? options.i18nProvider.analyze(info.pathname) : (0, _normalizelocalepath.normalizeLocalePath)(info.pathname, i18n.locales);
|
|
370
|
+
info.locale = result.detectedLocale;
|
|
371
|
+
var _result_pathname;
|
|
372
|
+
info.pathname = (_result_pathname = result.pathname) != null ? _result_pathname : info.pathname;
|
|
373
|
+
if (!result.detectedLocale && info.buildId) {
|
|
374
|
+
result = options.i18nProvider ? options.i18nProvider.analyze(pathnameNoDataPrefix) : (0, _normalizelocalepath.normalizeLocalePath)(pathnameNoDataPrefix, i18n.locales);
|
|
375
|
+
if (result.detectedLocale) {
|
|
376
|
+
info.locale = result.detectedLocale;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
return info;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/next-url.js
|
|
386
|
+
var require_next_url = __commonJS({
|
|
387
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/next-url.js"(exports) {
|
|
388
|
+
"use strict";
|
|
389
|
+
Object.defineProperty(exports, "__esModule", {
|
|
390
|
+
value: true
|
|
391
|
+
});
|
|
392
|
+
Object.defineProperty(exports, "NextURL", {
|
|
393
|
+
enumerable: true,
|
|
394
|
+
get: function() {
|
|
395
|
+
return NextURL;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
var _detectdomainlocale = require_detect_domain_locale();
|
|
399
|
+
var _formatnextpathnameinfo = require_format_next_pathname_info();
|
|
400
|
+
var _gethostname = require_get_hostname();
|
|
401
|
+
var _getnextpathnameinfo = require_get_next_pathname_info();
|
|
402
|
+
var REGEX_LOCALHOST_HOSTNAME = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
403
|
+
function parseURL(url, base) {
|
|
404
|
+
return new URL(String(url).replace(REGEX_LOCALHOST_HOSTNAME, "localhost"), base && String(base).replace(REGEX_LOCALHOST_HOSTNAME, "localhost"));
|
|
405
|
+
}
|
|
406
|
+
var Internal = Symbol("NextURLInternal");
|
|
407
|
+
var NextURL = class _NextURL {
|
|
408
|
+
constructor(input, baseOrOpts, opts) {
|
|
409
|
+
let base;
|
|
410
|
+
let options;
|
|
411
|
+
if (typeof baseOrOpts === "object" && "pathname" in baseOrOpts || typeof baseOrOpts === "string") {
|
|
412
|
+
base = baseOrOpts;
|
|
413
|
+
options = opts || {};
|
|
414
|
+
} else {
|
|
415
|
+
options = opts || baseOrOpts || {};
|
|
416
|
+
}
|
|
417
|
+
this[Internal] = {
|
|
418
|
+
url: parseURL(input, base ?? options.base),
|
|
419
|
+
options,
|
|
420
|
+
basePath: ""
|
|
421
|
+
};
|
|
422
|
+
this.analyze();
|
|
423
|
+
}
|
|
424
|
+
analyze() {
|
|
425
|
+
var _this_Internal_options_nextConfig_i18n, _this_Internal_options_nextConfig, _this_Internal_domainLocale, _this_Internal_options_nextConfig_i18n1, _this_Internal_options_nextConfig1;
|
|
426
|
+
const info = (0, _getnextpathnameinfo.getNextPathnameInfo)(this[Internal].url.pathname, {
|
|
427
|
+
nextConfig: this[Internal].options.nextConfig,
|
|
428
|
+
parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
|
|
429
|
+
i18nProvider: this[Internal].options.i18nProvider
|
|
430
|
+
});
|
|
431
|
+
const hostname = (0, _gethostname.getHostname)(this[Internal].url, this[Internal].options.headers);
|
|
432
|
+
this[Internal].domainLocale = this[Internal].options.i18nProvider ? this[Internal].options.i18nProvider.detectDomainLocale(hostname) : (0, _detectdomainlocale.detectDomainLocale)((_this_Internal_options_nextConfig = this[Internal].options.nextConfig) == null ? void 0 : (_this_Internal_options_nextConfig_i18n = _this_Internal_options_nextConfig.i18n) == null ? void 0 : _this_Internal_options_nextConfig_i18n.domains, hostname);
|
|
433
|
+
const defaultLocale = ((_this_Internal_domainLocale = this[Internal].domainLocale) == null ? void 0 : _this_Internal_domainLocale.defaultLocale) || ((_this_Internal_options_nextConfig1 = this[Internal].options.nextConfig) == null ? void 0 : (_this_Internal_options_nextConfig_i18n1 = _this_Internal_options_nextConfig1.i18n) == null ? void 0 : _this_Internal_options_nextConfig_i18n1.defaultLocale);
|
|
434
|
+
this[Internal].url.pathname = info.pathname;
|
|
435
|
+
this[Internal].defaultLocale = defaultLocale;
|
|
436
|
+
this[Internal].basePath = info.basePath ?? "";
|
|
437
|
+
this[Internal].buildId = info.buildId;
|
|
438
|
+
this[Internal].locale = info.locale ?? defaultLocale;
|
|
439
|
+
this[Internal].trailingSlash = info.trailingSlash;
|
|
440
|
+
}
|
|
441
|
+
formatPathname() {
|
|
442
|
+
return (0, _formatnextpathnameinfo.formatNextPathnameInfo)({
|
|
443
|
+
basePath: this[Internal].basePath,
|
|
444
|
+
buildId: this[Internal].buildId,
|
|
445
|
+
defaultLocale: !this[Internal].options.forceLocale ? this[Internal].defaultLocale : void 0,
|
|
446
|
+
locale: this[Internal].locale,
|
|
447
|
+
pathname: this[Internal].url.pathname,
|
|
448
|
+
trailingSlash: this[Internal].trailingSlash
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
formatSearch() {
|
|
452
|
+
return this[Internal].url.search;
|
|
453
|
+
}
|
|
454
|
+
get buildId() {
|
|
455
|
+
return this[Internal].buildId;
|
|
456
|
+
}
|
|
457
|
+
set buildId(buildId) {
|
|
458
|
+
this[Internal].buildId = buildId;
|
|
459
|
+
}
|
|
460
|
+
get locale() {
|
|
461
|
+
return this[Internal].locale ?? "";
|
|
462
|
+
}
|
|
463
|
+
set locale(locale) {
|
|
464
|
+
var _this_Internal_options_nextConfig_i18n, _this_Internal_options_nextConfig;
|
|
465
|
+
if (!this[Internal].locale || !((_this_Internal_options_nextConfig = this[Internal].options.nextConfig) == null ? void 0 : (_this_Internal_options_nextConfig_i18n = _this_Internal_options_nextConfig.i18n) == null ? void 0 : _this_Internal_options_nextConfig_i18n.locales.includes(locale))) {
|
|
466
|
+
throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${locale}"`), "__NEXT_ERROR_CODE", {
|
|
467
|
+
value: "E597",
|
|
468
|
+
enumerable: false,
|
|
469
|
+
configurable: true
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
this[Internal].locale = locale;
|
|
473
|
+
}
|
|
474
|
+
get defaultLocale() {
|
|
475
|
+
return this[Internal].defaultLocale;
|
|
476
|
+
}
|
|
477
|
+
get domainLocale() {
|
|
478
|
+
return this[Internal].domainLocale;
|
|
479
|
+
}
|
|
480
|
+
get searchParams() {
|
|
481
|
+
return this[Internal].url.searchParams;
|
|
482
|
+
}
|
|
483
|
+
get host() {
|
|
484
|
+
return this[Internal].url.host;
|
|
485
|
+
}
|
|
486
|
+
set host(value) {
|
|
487
|
+
this[Internal].url.host = value;
|
|
488
|
+
}
|
|
489
|
+
get hostname() {
|
|
490
|
+
return this[Internal].url.hostname;
|
|
491
|
+
}
|
|
492
|
+
set hostname(value) {
|
|
493
|
+
this[Internal].url.hostname = value;
|
|
494
|
+
}
|
|
495
|
+
get port() {
|
|
496
|
+
return this[Internal].url.port;
|
|
497
|
+
}
|
|
498
|
+
set port(value) {
|
|
499
|
+
this[Internal].url.port = value;
|
|
500
|
+
}
|
|
501
|
+
get protocol() {
|
|
502
|
+
return this[Internal].url.protocol;
|
|
503
|
+
}
|
|
504
|
+
set protocol(value) {
|
|
505
|
+
this[Internal].url.protocol = value;
|
|
506
|
+
}
|
|
507
|
+
get href() {
|
|
508
|
+
const pathname = this.formatPathname();
|
|
509
|
+
const search = this.formatSearch();
|
|
510
|
+
return `${this.protocol}//${this.host}${pathname}${search}${this.hash}`;
|
|
511
|
+
}
|
|
512
|
+
set href(url) {
|
|
513
|
+
this[Internal].url = parseURL(url);
|
|
514
|
+
this.analyze();
|
|
515
|
+
}
|
|
516
|
+
get origin() {
|
|
517
|
+
return this[Internal].url.origin;
|
|
518
|
+
}
|
|
519
|
+
get pathname() {
|
|
520
|
+
return this[Internal].url.pathname;
|
|
521
|
+
}
|
|
522
|
+
set pathname(value) {
|
|
523
|
+
this[Internal].url.pathname = value;
|
|
524
|
+
}
|
|
525
|
+
get hash() {
|
|
526
|
+
return this[Internal].url.hash;
|
|
527
|
+
}
|
|
528
|
+
set hash(value) {
|
|
529
|
+
this[Internal].url.hash = value;
|
|
530
|
+
}
|
|
531
|
+
get search() {
|
|
532
|
+
return this[Internal].url.search;
|
|
533
|
+
}
|
|
534
|
+
set search(value) {
|
|
535
|
+
this[Internal].url.search = value;
|
|
536
|
+
}
|
|
537
|
+
get password() {
|
|
538
|
+
return this[Internal].url.password;
|
|
539
|
+
}
|
|
540
|
+
set password(value) {
|
|
541
|
+
this[Internal].url.password = value;
|
|
542
|
+
}
|
|
543
|
+
get username() {
|
|
544
|
+
return this[Internal].url.username;
|
|
545
|
+
}
|
|
546
|
+
set username(value) {
|
|
547
|
+
this[Internal].url.username = value;
|
|
548
|
+
}
|
|
549
|
+
get basePath() {
|
|
550
|
+
return this[Internal].basePath;
|
|
551
|
+
}
|
|
552
|
+
set basePath(value) {
|
|
553
|
+
this[Internal].basePath = value.startsWith("/") ? value : `/${value}`;
|
|
554
|
+
}
|
|
555
|
+
toString() {
|
|
556
|
+
return this.href;
|
|
557
|
+
}
|
|
558
|
+
toJSON() {
|
|
559
|
+
return this.href;
|
|
560
|
+
}
|
|
561
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
562
|
+
return {
|
|
563
|
+
href: this.href,
|
|
564
|
+
origin: this.origin,
|
|
565
|
+
protocol: this.protocol,
|
|
566
|
+
username: this.username,
|
|
567
|
+
password: this.password,
|
|
568
|
+
host: this.host,
|
|
569
|
+
hostname: this.hostname,
|
|
570
|
+
port: this.port,
|
|
571
|
+
pathname: this.pathname,
|
|
572
|
+
search: this.search,
|
|
573
|
+
searchParams: this.searchParams,
|
|
574
|
+
hash: this.hash
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
clone() {
|
|
578
|
+
return new _NextURL(String(this), this[Internal].options);
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/constants.js
|
|
585
|
+
var require_constants = __commonJS({
|
|
586
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/constants.js"(exports) {
|
|
587
|
+
"use strict";
|
|
588
|
+
Object.defineProperty(exports, "__esModule", {
|
|
589
|
+
value: true
|
|
590
|
+
});
|
|
591
|
+
function _export(target, all) {
|
|
592
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
593
|
+
enumerable: true,
|
|
594
|
+
get: all[name]
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
_export(exports, {
|
|
598
|
+
ACTION_SUFFIX: function() {
|
|
599
|
+
return ACTION_SUFFIX;
|
|
600
|
+
},
|
|
601
|
+
APP_DIR_ALIAS: function() {
|
|
602
|
+
return APP_DIR_ALIAS;
|
|
603
|
+
},
|
|
604
|
+
CACHE_ONE_YEAR: function() {
|
|
605
|
+
return CACHE_ONE_YEAR;
|
|
606
|
+
},
|
|
607
|
+
DOT_NEXT_ALIAS: function() {
|
|
608
|
+
return DOT_NEXT_ALIAS;
|
|
609
|
+
},
|
|
610
|
+
ESLINT_DEFAULT_DIRS: function() {
|
|
611
|
+
return ESLINT_DEFAULT_DIRS;
|
|
612
|
+
},
|
|
613
|
+
GSP_NO_RETURNED_VALUE: function() {
|
|
614
|
+
return GSP_NO_RETURNED_VALUE;
|
|
615
|
+
},
|
|
616
|
+
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
617
|
+
return GSSP_COMPONENT_MEMBER_ERROR;
|
|
618
|
+
},
|
|
619
|
+
GSSP_NO_RETURNED_VALUE: function() {
|
|
620
|
+
return GSSP_NO_RETURNED_VALUE;
|
|
621
|
+
},
|
|
622
|
+
INFINITE_CACHE: function() {
|
|
623
|
+
return INFINITE_CACHE;
|
|
624
|
+
},
|
|
625
|
+
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
626
|
+
return INSTRUMENTATION_HOOK_FILENAME;
|
|
627
|
+
},
|
|
628
|
+
MATCHED_PATH_HEADER: function() {
|
|
629
|
+
return MATCHED_PATH_HEADER;
|
|
630
|
+
},
|
|
631
|
+
MIDDLEWARE_FILENAME: function() {
|
|
632
|
+
return MIDDLEWARE_FILENAME;
|
|
633
|
+
},
|
|
634
|
+
MIDDLEWARE_LOCATION_REGEXP: function() {
|
|
635
|
+
return MIDDLEWARE_LOCATION_REGEXP;
|
|
636
|
+
},
|
|
637
|
+
NEXT_BODY_SUFFIX: function() {
|
|
638
|
+
return NEXT_BODY_SUFFIX;
|
|
639
|
+
},
|
|
640
|
+
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
641
|
+
return NEXT_CACHE_IMPLICIT_TAG_ID;
|
|
642
|
+
},
|
|
643
|
+
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
644
|
+
return NEXT_CACHE_REVALIDATED_TAGS_HEADER;
|
|
645
|
+
},
|
|
646
|
+
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
647
|
+
return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER;
|
|
648
|
+
},
|
|
649
|
+
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
650
|
+
return NEXT_CACHE_SOFT_TAG_MAX_LENGTH;
|
|
651
|
+
},
|
|
652
|
+
NEXT_CACHE_TAGS_HEADER: function() {
|
|
653
|
+
return NEXT_CACHE_TAGS_HEADER;
|
|
654
|
+
},
|
|
655
|
+
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
656
|
+
return NEXT_CACHE_TAG_MAX_ITEMS;
|
|
657
|
+
},
|
|
658
|
+
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
659
|
+
return NEXT_CACHE_TAG_MAX_LENGTH;
|
|
660
|
+
},
|
|
661
|
+
NEXT_DATA_SUFFIX: function() {
|
|
662
|
+
return NEXT_DATA_SUFFIX;
|
|
663
|
+
},
|
|
664
|
+
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
665
|
+
return NEXT_INTERCEPTION_MARKER_PREFIX;
|
|
666
|
+
},
|
|
667
|
+
NEXT_META_SUFFIX: function() {
|
|
668
|
+
return NEXT_META_SUFFIX;
|
|
669
|
+
},
|
|
670
|
+
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
671
|
+
return NEXT_QUERY_PARAM_PREFIX;
|
|
672
|
+
},
|
|
673
|
+
NEXT_RESUME_HEADER: function() {
|
|
674
|
+
return NEXT_RESUME_HEADER;
|
|
675
|
+
},
|
|
676
|
+
NON_STANDARD_NODE_ENV: function() {
|
|
677
|
+
return NON_STANDARD_NODE_ENV;
|
|
678
|
+
},
|
|
679
|
+
PAGES_DIR_ALIAS: function() {
|
|
680
|
+
return PAGES_DIR_ALIAS;
|
|
681
|
+
},
|
|
682
|
+
PRERENDER_REVALIDATE_HEADER: function() {
|
|
683
|
+
return PRERENDER_REVALIDATE_HEADER;
|
|
684
|
+
},
|
|
685
|
+
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
686
|
+
return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
|
|
687
|
+
},
|
|
688
|
+
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
689
|
+
return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
|
|
690
|
+
},
|
|
691
|
+
ROOT_DIR_ALIAS: function() {
|
|
692
|
+
return ROOT_DIR_ALIAS;
|
|
693
|
+
},
|
|
694
|
+
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
695
|
+
return RSC_ACTION_CLIENT_WRAPPER_ALIAS;
|
|
696
|
+
},
|
|
697
|
+
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
698
|
+
return RSC_ACTION_ENCRYPTION_ALIAS;
|
|
699
|
+
},
|
|
700
|
+
RSC_ACTION_PROXY_ALIAS: function() {
|
|
701
|
+
return RSC_ACTION_PROXY_ALIAS;
|
|
702
|
+
},
|
|
703
|
+
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
704
|
+
return RSC_ACTION_VALIDATE_ALIAS;
|
|
705
|
+
},
|
|
706
|
+
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
707
|
+
return RSC_CACHE_WRAPPER_ALIAS;
|
|
708
|
+
},
|
|
709
|
+
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
710
|
+
return RSC_MOD_REF_PROXY_ALIAS;
|
|
711
|
+
},
|
|
712
|
+
RSC_PREFETCH_SUFFIX: function() {
|
|
713
|
+
return RSC_PREFETCH_SUFFIX;
|
|
714
|
+
},
|
|
715
|
+
RSC_SEGMENTS_DIR_SUFFIX: function() {
|
|
716
|
+
return RSC_SEGMENTS_DIR_SUFFIX;
|
|
717
|
+
},
|
|
718
|
+
RSC_SEGMENT_SUFFIX: function() {
|
|
719
|
+
return RSC_SEGMENT_SUFFIX;
|
|
720
|
+
},
|
|
721
|
+
RSC_SUFFIX: function() {
|
|
722
|
+
return RSC_SUFFIX;
|
|
723
|
+
},
|
|
724
|
+
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
725
|
+
return SERVER_PROPS_EXPORT_ERROR;
|
|
726
|
+
},
|
|
727
|
+
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
728
|
+
return SERVER_PROPS_GET_INIT_PROPS_CONFLICT;
|
|
729
|
+
},
|
|
730
|
+
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
731
|
+
return SERVER_PROPS_SSG_CONFLICT;
|
|
732
|
+
},
|
|
733
|
+
SERVER_RUNTIME: function() {
|
|
734
|
+
return SERVER_RUNTIME;
|
|
735
|
+
},
|
|
736
|
+
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
737
|
+
return SSG_FALLBACK_EXPORT_ERROR;
|
|
738
|
+
},
|
|
739
|
+
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
740
|
+
return SSG_GET_INITIAL_PROPS_CONFLICT;
|
|
741
|
+
},
|
|
742
|
+
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
743
|
+
return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
|
|
744
|
+
},
|
|
745
|
+
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
746
|
+
return UNSTABLE_REVALIDATE_RENAME_ERROR;
|
|
747
|
+
},
|
|
748
|
+
WEBPACK_LAYERS: function() {
|
|
749
|
+
return WEBPACK_LAYERS;
|
|
750
|
+
},
|
|
751
|
+
WEBPACK_RESOURCE_QUERIES: function() {
|
|
752
|
+
return WEBPACK_RESOURCE_QUERIES;
|
|
753
|
+
}
|
|
754
|
+
});
|
|
755
|
+
var NEXT_QUERY_PARAM_PREFIX = "nxtP";
|
|
756
|
+
var NEXT_INTERCEPTION_MARKER_PREFIX = "nxtI";
|
|
757
|
+
var MATCHED_PATH_HEADER = "x-matched-path";
|
|
758
|
+
var PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
|
|
759
|
+
var PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = "x-prerender-revalidate-if-generated";
|
|
760
|
+
var RSC_PREFETCH_SUFFIX = ".prefetch.rsc";
|
|
761
|
+
var RSC_SEGMENTS_DIR_SUFFIX = ".segments";
|
|
762
|
+
var RSC_SEGMENT_SUFFIX = ".segment.rsc";
|
|
763
|
+
var RSC_SUFFIX = ".rsc";
|
|
764
|
+
var ACTION_SUFFIX = ".action";
|
|
765
|
+
var NEXT_DATA_SUFFIX = ".json";
|
|
766
|
+
var NEXT_META_SUFFIX = ".meta";
|
|
767
|
+
var NEXT_BODY_SUFFIX = ".body";
|
|
768
|
+
var NEXT_CACHE_TAGS_HEADER = "x-next-cache-tags";
|
|
769
|
+
var NEXT_CACHE_REVALIDATED_TAGS_HEADER = "x-next-revalidated-tags";
|
|
770
|
+
var NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER = "x-next-revalidate-tag-token";
|
|
771
|
+
var NEXT_RESUME_HEADER = "next-resume";
|
|
772
|
+
var NEXT_CACHE_TAG_MAX_ITEMS = 128;
|
|
773
|
+
var NEXT_CACHE_TAG_MAX_LENGTH = 256;
|
|
774
|
+
var NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024;
|
|
775
|
+
var NEXT_CACHE_IMPLICIT_TAG_ID = "_N_T_";
|
|
776
|
+
var CACHE_ONE_YEAR = 31536e3;
|
|
777
|
+
var INFINITE_CACHE = 4294967294;
|
|
778
|
+
var MIDDLEWARE_FILENAME = "middleware";
|
|
779
|
+
var MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`;
|
|
780
|
+
var INSTRUMENTATION_HOOK_FILENAME = "instrumentation";
|
|
781
|
+
var PAGES_DIR_ALIAS = "private-next-pages";
|
|
782
|
+
var DOT_NEXT_ALIAS = "private-dot-next";
|
|
783
|
+
var ROOT_DIR_ALIAS = "private-next-root-dir";
|
|
784
|
+
var APP_DIR_ALIAS = "private-next-app-dir";
|
|
785
|
+
var RSC_MOD_REF_PROXY_ALIAS = "private-next-rsc-mod-ref-proxy";
|
|
786
|
+
var RSC_ACTION_VALIDATE_ALIAS = "private-next-rsc-action-validate";
|
|
787
|
+
var RSC_ACTION_PROXY_ALIAS = "private-next-rsc-server-reference";
|
|
788
|
+
var RSC_CACHE_WRAPPER_ALIAS = "private-next-rsc-cache-wrapper";
|
|
789
|
+
var RSC_ACTION_ENCRYPTION_ALIAS = "private-next-rsc-action-encryption";
|
|
790
|
+
var RSC_ACTION_CLIENT_WRAPPER_ALIAS = "private-next-rsc-action-client-wrapper";
|
|
791
|
+
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`;
|
|
792
|
+
var SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`;
|
|
793
|
+
var SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`;
|
|
794
|
+
var SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`;
|
|
795
|
+
var STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`;
|
|
796
|
+
var SERVER_PROPS_EXPORT_ERROR = `pages with \`getServerSideProps\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`;
|
|
797
|
+
var GSP_NO_RETURNED_VALUE = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?";
|
|
798
|
+
var GSSP_NO_RETURNED_VALUE = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?";
|
|
799
|
+
var UNSTABLE_REVALIDATE_RENAME_ERROR = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.";
|
|
800
|
+
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`;
|
|
801
|
+
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`;
|
|
802
|
+
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`;
|
|
803
|
+
var ESLINT_DEFAULT_DIRS = [
|
|
804
|
+
"app",
|
|
805
|
+
"pages",
|
|
806
|
+
"components",
|
|
807
|
+
"lib",
|
|
808
|
+
"src"
|
|
809
|
+
];
|
|
810
|
+
var SERVER_RUNTIME = {
|
|
811
|
+
edge: "edge",
|
|
812
|
+
experimentalEdge: "experimental-edge",
|
|
813
|
+
nodejs: "nodejs"
|
|
814
|
+
};
|
|
815
|
+
var WEBPACK_LAYERS_NAMES = {
|
|
816
|
+
/**
|
|
817
|
+
* The layer for the shared code between the client and server bundles.
|
|
818
|
+
*/
|
|
819
|
+
shared: "shared",
|
|
820
|
+
/**
|
|
821
|
+
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
822
|
+
* Including app router RSC pages and app router custom routes and metadata routes.
|
|
823
|
+
*/
|
|
824
|
+
reactServerComponents: "rsc",
|
|
825
|
+
/**
|
|
826
|
+
* Server Side Rendering layer for app (ssr).
|
|
827
|
+
*/
|
|
828
|
+
serverSideRendering: "ssr",
|
|
829
|
+
/**
|
|
830
|
+
* The browser client bundle layer for actions.
|
|
831
|
+
*/
|
|
832
|
+
actionBrowser: "action-browser",
|
|
833
|
+
/**
|
|
834
|
+
* The Node.js bundle layer for the API routes.
|
|
835
|
+
*/
|
|
836
|
+
apiNode: "api-node",
|
|
837
|
+
/**
|
|
838
|
+
* The Edge Lite bundle layer for the API routes.
|
|
839
|
+
*/
|
|
840
|
+
apiEdge: "api-edge",
|
|
841
|
+
/**
|
|
842
|
+
* The layer for the middleware code.
|
|
843
|
+
*/
|
|
844
|
+
middleware: "middleware",
|
|
845
|
+
/**
|
|
846
|
+
* The layer for the instrumentation hooks.
|
|
847
|
+
*/
|
|
848
|
+
instrument: "instrument",
|
|
849
|
+
/**
|
|
850
|
+
* The layer for assets on the edge.
|
|
851
|
+
*/
|
|
852
|
+
edgeAsset: "edge-asset",
|
|
853
|
+
/**
|
|
854
|
+
* The browser client bundle layer for App directory.
|
|
855
|
+
*/
|
|
856
|
+
appPagesBrowser: "app-pages-browser",
|
|
857
|
+
/**
|
|
858
|
+
* The browser client bundle layer for Pages directory.
|
|
859
|
+
*/
|
|
860
|
+
pagesDirBrowser: "pages-dir-browser",
|
|
861
|
+
/**
|
|
862
|
+
* The Edge Lite bundle layer for Pages directory.
|
|
863
|
+
*/
|
|
864
|
+
pagesDirEdge: "pages-dir-edge",
|
|
865
|
+
/**
|
|
866
|
+
* The Node.js bundle layer for Pages directory.
|
|
867
|
+
*/
|
|
868
|
+
pagesDirNode: "pages-dir-node"
|
|
869
|
+
};
|
|
870
|
+
var WEBPACK_LAYERS = {
|
|
871
|
+
...WEBPACK_LAYERS_NAMES,
|
|
872
|
+
GROUP: {
|
|
873
|
+
builtinReact: [
|
|
874
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
875
|
+
WEBPACK_LAYERS_NAMES.actionBrowser
|
|
876
|
+
],
|
|
877
|
+
serverOnly: [
|
|
878
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
879
|
+
WEBPACK_LAYERS_NAMES.actionBrowser,
|
|
880
|
+
WEBPACK_LAYERS_NAMES.instrument,
|
|
881
|
+
WEBPACK_LAYERS_NAMES.middleware
|
|
882
|
+
],
|
|
883
|
+
neutralTarget: [
|
|
884
|
+
// pages api
|
|
885
|
+
WEBPACK_LAYERS_NAMES.apiNode,
|
|
886
|
+
WEBPACK_LAYERS_NAMES.apiEdge
|
|
887
|
+
],
|
|
888
|
+
clientOnly: [
|
|
889
|
+
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
890
|
+
WEBPACK_LAYERS_NAMES.appPagesBrowser
|
|
891
|
+
],
|
|
892
|
+
bundled: [
|
|
893
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
894
|
+
WEBPACK_LAYERS_NAMES.actionBrowser,
|
|
895
|
+
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
896
|
+
WEBPACK_LAYERS_NAMES.appPagesBrowser,
|
|
897
|
+
WEBPACK_LAYERS_NAMES.shared,
|
|
898
|
+
WEBPACK_LAYERS_NAMES.instrument,
|
|
899
|
+
WEBPACK_LAYERS_NAMES.middleware
|
|
900
|
+
],
|
|
901
|
+
appPages: [
|
|
902
|
+
// app router pages and layouts
|
|
903
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
904
|
+
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
905
|
+
WEBPACK_LAYERS_NAMES.appPagesBrowser,
|
|
906
|
+
WEBPACK_LAYERS_NAMES.actionBrowser
|
|
907
|
+
]
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
var WEBPACK_RESOURCE_QUERIES = {
|
|
911
|
+
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
912
|
+
metadata: "__next_metadata__",
|
|
913
|
+
metadataRoute: "__next_metadata_route__",
|
|
914
|
+
metadataImageMeta: "__next_metadata_image_meta__"
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
});
|
|
918
|
+
|
|
919
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/utils.js
|
|
920
|
+
var require_utils = __commonJS({
|
|
921
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/utils.js"(exports) {
|
|
922
|
+
"use strict";
|
|
923
|
+
Object.defineProperty(exports, "__esModule", {
|
|
924
|
+
value: true
|
|
925
|
+
});
|
|
926
|
+
function _export(target, all) {
|
|
927
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
928
|
+
enumerable: true,
|
|
929
|
+
get: all[name]
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
_export(exports, {
|
|
933
|
+
fromNodeOutgoingHttpHeaders: function() {
|
|
934
|
+
return fromNodeOutgoingHttpHeaders;
|
|
935
|
+
},
|
|
936
|
+
normalizeNextQueryParam: function() {
|
|
937
|
+
return normalizeNextQueryParam;
|
|
938
|
+
},
|
|
939
|
+
splitCookiesString: function() {
|
|
940
|
+
return splitCookiesString;
|
|
941
|
+
},
|
|
942
|
+
toNodeOutgoingHttpHeaders: function() {
|
|
943
|
+
return toNodeOutgoingHttpHeaders;
|
|
944
|
+
},
|
|
945
|
+
validateURL: function() {
|
|
946
|
+
return validateURL;
|
|
947
|
+
}
|
|
948
|
+
});
|
|
949
|
+
var _constants = require_constants();
|
|
950
|
+
function fromNodeOutgoingHttpHeaders(nodeHeaders) {
|
|
951
|
+
const headers = new Headers();
|
|
952
|
+
for (let [key, value] of Object.entries(nodeHeaders)) {
|
|
953
|
+
const values = Array.isArray(value) ? value : [
|
|
954
|
+
value
|
|
955
|
+
];
|
|
956
|
+
for (let v of values) {
|
|
957
|
+
if (typeof v === "undefined") continue;
|
|
958
|
+
if (typeof v === "number") {
|
|
959
|
+
v = v.toString();
|
|
960
|
+
}
|
|
961
|
+
headers.append(key, v);
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
return headers;
|
|
965
|
+
}
|
|
966
|
+
function splitCookiesString(cookiesString) {
|
|
967
|
+
var cookiesStrings = [];
|
|
968
|
+
var pos = 0;
|
|
969
|
+
var start;
|
|
970
|
+
var ch;
|
|
971
|
+
var lastComma;
|
|
972
|
+
var nextStart;
|
|
973
|
+
var cookiesSeparatorFound;
|
|
974
|
+
function skipWhitespace() {
|
|
975
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
976
|
+
pos += 1;
|
|
977
|
+
}
|
|
978
|
+
return pos < cookiesString.length;
|
|
979
|
+
}
|
|
980
|
+
function notSpecialChar() {
|
|
981
|
+
ch = cookiesString.charAt(pos);
|
|
982
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
983
|
+
}
|
|
984
|
+
while (pos < cookiesString.length) {
|
|
985
|
+
start = pos;
|
|
986
|
+
cookiesSeparatorFound = false;
|
|
987
|
+
while (skipWhitespace()) {
|
|
988
|
+
ch = cookiesString.charAt(pos);
|
|
989
|
+
if (ch === ",") {
|
|
990
|
+
lastComma = pos;
|
|
991
|
+
pos += 1;
|
|
992
|
+
skipWhitespace();
|
|
993
|
+
nextStart = pos;
|
|
994
|
+
while (pos < cookiesString.length && notSpecialChar()) {
|
|
995
|
+
pos += 1;
|
|
996
|
+
}
|
|
997
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
998
|
+
cookiesSeparatorFound = true;
|
|
999
|
+
pos = nextStart;
|
|
1000
|
+
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
1001
|
+
start = pos;
|
|
1002
|
+
} else {
|
|
1003
|
+
pos = lastComma + 1;
|
|
1004
|
+
}
|
|
1005
|
+
} else {
|
|
1006
|
+
pos += 1;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
1010
|
+
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
return cookiesStrings;
|
|
1014
|
+
}
|
|
1015
|
+
function toNodeOutgoingHttpHeaders(headers) {
|
|
1016
|
+
const nodeHeaders = {};
|
|
1017
|
+
const cookies = [];
|
|
1018
|
+
if (headers) {
|
|
1019
|
+
for (const [key, value] of headers.entries()) {
|
|
1020
|
+
if (key.toLowerCase() === "set-cookie") {
|
|
1021
|
+
cookies.push(...splitCookiesString(value));
|
|
1022
|
+
nodeHeaders[key] = cookies.length === 1 ? cookies[0] : cookies;
|
|
1023
|
+
} else {
|
|
1024
|
+
nodeHeaders[key] = value;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
return nodeHeaders;
|
|
1029
|
+
}
|
|
1030
|
+
function validateURL(url) {
|
|
1031
|
+
try {
|
|
1032
|
+
return String(new URL(String(url)));
|
|
1033
|
+
} catch (error) {
|
|
1034
|
+
throw Object.defineProperty(new Error(`URL is malformed "${String(url)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
|
|
1035
|
+
cause: error
|
|
1036
|
+
}), "__NEXT_ERROR_CODE", {
|
|
1037
|
+
value: "E61",
|
|
1038
|
+
enumerable: false,
|
|
1039
|
+
configurable: true
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
function normalizeNextQueryParam(key) {
|
|
1044
|
+
const prefixes = [
|
|
1045
|
+
_constants.NEXT_QUERY_PARAM_PREFIX,
|
|
1046
|
+
_constants.NEXT_INTERCEPTION_MARKER_PREFIX
|
|
1047
|
+
];
|
|
1048
|
+
for (const prefix of prefixes) {
|
|
1049
|
+
if (key !== prefix && key.startsWith(prefix)) {
|
|
1050
|
+
return key.substring(prefix.length);
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
return null;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
});
|
|
1057
|
+
|
|
1058
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/error.js
|
|
1059
|
+
var require_error = __commonJS({
|
|
1060
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/error.js"(exports) {
|
|
1061
|
+
"use strict";
|
|
1062
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1063
|
+
value: true
|
|
1064
|
+
});
|
|
1065
|
+
function _export(target, all) {
|
|
1066
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1067
|
+
enumerable: true,
|
|
1068
|
+
get: all[name]
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
_export(exports, {
|
|
1072
|
+
PageSignatureError: function() {
|
|
1073
|
+
return PageSignatureError;
|
|
1074
|
+
},
|
|
1075
|
+
RemovedPageError: function() {
|
|
1076
|
+
return RemovedPageError;
|
|
1077
|
+
},
|
|
1078
|
+
RemovedUAError: function() {
|
|
1079
|
+
return RemovedUAError;
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
var PageSignatureError = class extends Error {
|
|
1083
|
+
constructor({ page }) {
|
|
1084
|
+
super(`The middleware "${page}" accepts an async API directly with the form:
|
|
1085
|
+
|
|
1086
|
+
export function middleware(request, event) {
|
|
1087
|
+
return NextResponse.redirect('/new-location')
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
|
1091
|
+
`);
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
var RemovedPageError = class extends Error {
|
|
1095
|
+
constructor() {
|
|
1096
|
+
super(`The request.page has been deprecated in favour of \`URLPattern\`.
|
|
1097
|
+
Read more: https://nextjs.org/docs/messages/middleware-request-page
|
|
1098
|
+
`);
|
|
1099
|
+
}
|
|
1100
|
+
};
|
|
1101
|
+
var RemovedUAError = class extends Error {
|
|
1102
|
+
constructor() {
|
|
1103
|
+
super(`The request.ua has been removed in favour of \`userAgent\` function.
|
|
1104
|
+
Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
|
|
1105
|
+
`);
|
|
1106
|
+
}
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
|
|
1111
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
|
|
1112
|
+
var require_cookies = __commonJS({
|
|
1113
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js"(exports, module) {
|
|
1114
|
+
"use strict";
|
|
1115
|
+
var __defProp = Object.defineProperty;
|
|
1116
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1117
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1118
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1119
|
+
var __export2 = (target, all) => {
|
|
1120
|
+
for (var name in all)
|
|
1121
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1122
|
+
};
|
|
1123
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1124
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1125
|
+
for (let key of __getOwnPropNames(from))
|
|
1126
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1127
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1128
|
+
}
|
|
1129
|
+
return to;
|
|
1130
|
+
};
|
|
1131
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1132
|
+
var src_exports = {};
|
|
1133
|
+
__export2(src_exports, {
|
|
1134
|
+
RequestCookies: () => RequestCookies,
|
|
1135
|
+
ResponseCookies: () => ResponseCookies,
|
|
1136
|
+
parseCookie: () => parseCookie,
|
|
1137
|
+
parseSetCookie: () => parseSetCookie,
|
|
1138
|
+
stringifyCookie: () => stringifyCookie
|
|
1139
|
+
});
|
|
1140
|
+
module.exports = __toCommonJS(src_exports);
|
|
1141
|
+
function stringifyCookie(c) {
|
|
1142
|
+
var _a;
|
|
1143
|
+
const attrs = [
|
|
1144
|
+
"path" in c && c.path && `Path=${c.path}`,
|
|
1145
|
+
"expires" in c && (c.expires || c.expires === 0) && `Expires=${(typeof c.expires === "number" ? new Date(c.expires) : c.expires).toUTCString()}`,
|
|
1146
|
+
"maxAge" in c && typeof c.maxAge === "number" && `Max-Age=${c.maxAge}`,
|
|
1147
|
+
"domain" in c && c.domain && `Domain=${c.domain}`,
|
|
1148
|
+
"secure" in c && c.secure && "Secure",
|
|
1149
|
+
"httpOnly" in c && c.httpOnly && "HttpOnly",
|
|
1150
|
+
"sameSite" in c && c.sameSite && `SameSite=${c.sameSite}`,
|
|
1151
|
+
"partitioned" in c && c.partitioned && "Partitioned",
|
|
1152
|
+
"priority" in c && c.priority && `Priority=${c.priority}`
|
|
1153
|
+
].filter(Boolean);
|
|
1154
|
+
const stringified = `${c.name}=${encodeURIComponent((_a = c.value) != null ? _a : "")}`;
|
|
1155
|
+
return attrs.length === 0 ? stringified : `${stringified}; ${attrs.join("; ")}`;
|
|
1156
|
+
}
|
|
1157
|
+
function parseCookie(cookie) {
|
|
1158
|
+
const map = /* @__PURE__ */ new Map();
|
|
1159
|
+
for (const pair of cookie.split(/; */)) {
|
|
1160
|
+
if (!pair)
|
|
1161
|
+
continue;
|
|
1162
|
+
const splitAt = pair.indexOf("=");
|
|
1163
|
+
if (splitAt === -1) {
|
|
1164
|
+
map.set(pair, "true");
|
|
1165
|
+
continue;
|
|
1166
|
+
}
|
|
1167
|
+
const [key, value] = [pair.slice(0, splitAt), pair.slice(splitAt + 1)];
|
|
1168
|
+
try {
|
|
1169
|
+
map.set(key, decodeURIComponent(value != null ? value : "true"));
|
|
1170
|
+
} catch {
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
return map;
|
|
1174
|
+
}
|
|
1175
|
+
function parseSetCookie(setCookie) {
|
|
1176
|
+
if (!setCookie) {
|
|
1177
|
+
return void 0;
|
|
1178
|
+
}
|
|
1179
|
+
const [[name, value], ...attributes] = parseCookie(setCookie);
|
|
1180
|
+
const {
|
|
1181
|
+
domain,
|
|
1182
|
+
expires,
|
|
1183
|
+
httponly,
|
|
1184
|
+
maxage,
|
|
1185
|
+
path,
|
|
1186
|
+
samesite,
|
|
1187
|
+
secure,
|
|
1188
|
+
partitioned,
|
|
1189
|
+
priority
|
|
1190
|
+
} = Object.fromEntries(
|
|
1191
|
+
attributes.map(([key, value2]) => [
|
|
1192
|
+
key.toLowerCase().replace(/-/g, ""),
|
|
1193
|
+
value2
|
|
1194
|
+
])
|
|
1195
|
+
);
|
|
1196
|
+
const cookie = {
|
|
1197
|
+
name,
|
|
1198
|
+
value: decodeURIComponent(value),
|
|
1199
|
+
domain,
|
|
1200
|
+
...expires && { expires: new Date(expires) },
|
|
1201
|
+
...httponly && { httpOnly: true },
|
|
1202
|
+
...typeof maxage === "string" && { maxAge: Number(maxage) },
|
|
1203
|
+
path,
|
|
1204
|
+
...samesite && { sameSite: parseSameSite(samesite) },
|
|
1205
|
+
...secure && { secure: true },
|
|
1206
|
+
...priority && { priority: parsePriority(priority) },
|
|
1207
|
+
...partitioned && { partitioned: true }
|
|
1208
|
+
};
|
|
1209
|
+
return compact(cookie);
|
|
1210
|
+
}
|
|
1211
|
+
function compact(t) {
|
|
1212
|
+
const newT = {};
|
|
1213
|
+
for (const key in t) {
|
|
1214
|
+
if (t[key]) {
|
|
1215
|
+
newT[key] = t[key];
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
return newT;
|
|
1219
|
+
}
|
|
1220
|
+
var SAME_SITE = ["strict", "lax", "none"];
|
|
1221
|
+
function parseSameSite(string) {
|
|
1222
|
+
string = string.toLowerCase();
|
|
1223
|
+
return SAME_SITE.includes(string) ? string : void 0;
|
|
1224
|
+
}
|
|
1225
|
+
var PRIORITY = ["low", "medium", "high"];
|
|
1226
|
+
function parsePriority(string) {
|
|
1227
|
+
string = string.toLowerCase();
|
|
1228
|
+
return PRIORITY.includes(string) ? string : void 0;
|
|
1229
|
+
}
|
|
1230
|
+
function splitCookiesString(cookiesString) {
|
|
1231
|
+
if (!cookiesString)
|
|
1232
|
+
return [];
|
|
1233
|
+
var cookiesStrings = [];
|
|
1234
|
+
var pos = 0;
|
|
1235
|
+
var start;
|
|
1236
|
+
var ch;
|
|
1237
|
+
var lastComma;
|
|
1238
|
+
var nextStart;
|
|
1239
|
+
var cookiesSeparatorFound;
|
|
1240
|
+
function skipWhitespace() {
|
|
1241
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
1242
|
+
pos += 1;
|
|
1243
|
+
}
|
|
1244
|
+
return pos < cookiesString.length;
|
|
1245
|
+
}
|
|
1246
|
+
function notSpecialChar() {
|
|
1247
|
+
ch = cookiesString.charAt(pos);
|
|
1248
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
1249
|
+
}
|
|
1250
|
+
while (pos < cookiesString.length) {
|
|
1251
|
+
start = pos;
|
|
1252
|
+
cookiesSeparatorFound = false;
|
|
1253
|
+
while (skipWhitespace()) {
|
|
1254
|
+
ch = cookiesString.charAt(pos);
|
|
1255
|
+
if (ch === ",") {
|
|
1256
|
+
lastComma = pos;
|
|
1257
|
+
pos += 1;
|
|
1258
|
+
skipWhitespace();
|
|
1259
|
+
nextStart = pos;
|
|
1260
|
+
while (pos < cookiesString.length && notSpecialChar()) {
|
|
1261
|
+
pos += 1;
|
|
1262
|
+
}
|
|
1263
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
1264
|
+
cookiesSeparatorFound = true;
|
|
1265
|
+
pos = nextStart;
|
|
1266
|
+
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
1267
|
+
start = pos;
|
|
1268
|
+
} else {
|
|
1269
|
+
pos = lastComma + 1;
|
|
1270
|
+
}
|
|
1271
|
+
} else {
|
|
1272
|
+
pos += 1;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
1276
|
+
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
return cookiesStrings;
|
|
1280
|
+
}
|
|
1281
|
+
var RequestCookies = class {
|
|
1282
|
+
constructor(requestHeaders) {
|
|
1283
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
1284
|
+
this._headers = requestHeaders;
|
|
1285
|
+
const header = requestHeaders.get("cookie");
|
|
1286
|
+
if (header) {
|
|
1287
|
+
const parsed = parseCookie(header);
|
|
1288
|
+
for (const [name, value] of parsed) {
|
|
1289
|
+
this._parsed.set(name, { name, value });
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
[Symbol.iterator]() {
|
|
1294
|
+
return this._parsed[Symbol.iterator]();
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
* The amount of cookies received from the client
|
|
1298
|
+
*/
|
|
1299
|
+
get size() {
|
|
1300
|
+
return this._parsed.size;
|
|
1301
|
+
}
|
|
1302
|
+
get(...args) {
|
|
1303
|
+
const name = typeof args[0] === "string" ? args[0] : args[0].name;
|
|
1304
|
+
return this._parsed.get(name);
|
|
1305
|
+
}
|
|
1306
|
+
getAll(...args) {
|
|
1307
|
+
var _a;
|
|
1308
|
+
const all = Array.from(this._parsed);
|
|
1309
|
+
if (!args.length) {
|
|
1310
|
+
return all.map(([_, value]) => value);
|
|
1311
|
+
}
|
|
1312
|
+
const name = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
|
|
1313
|
+
return all.filter(([n]) => n === name).map(([_, value]) => value);
|
|
1314
|
+
}
|
|
1315
|
+
has(name) {
|
|
1316
|
+
return this._parsed.has(name);
|
|
1317
|
+
}
|
|
1318
|
+
set(...args) {
|
|
1319
|
+
const [name, value] = args.length === 1 ? [args[0].name, args[0].value] : args;
|
|
1320
|
+
const map = this._parsed;
|
|
1321
|
+
map.set(name, { name, value });
|
|
1322
|
+
this._headers.set(
|
|
1323
|
+
"cookie",
|
|
1324
|
+
Array.from(map).map(([_, value2]) => stringifyCookie(value2)).join("; ")
|
|
1325
|
+
);
|
|
1326
|
+
return this;
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
* Delete the cookies matching the passed name or names in the request.
|
|
1330
|
+
*/
|
|
1331
|
+
delete(names) {
|
|
1332
|
+
const map = this._parsed;
|
|
1333
|
+
const result = !Array.isArray(names) ? map.delete(names) : names.map((name) => map.delete(name));
|
|
1334
|
+
this._headers.set(
|
|
1335
|
+
"cookie",
|
|
1336
|
+
Array.from(map).map(([_, value]) => stringifyCookie(value)).join("; ")
|
|
1337
|
+
);
|
|
1338
|
+
return result;
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Delete all the cookies in the cookies in the request.
|
|
1342
|
+
*/
|
|
1343
|
+
clear() {
|
|
1344
|
+
this.delete(Array.from(this._parsed.keys()));
|
|
1345
|
+
return this;
|
|
1346
|
+
}
|
|
1347
|
+
/**
|
|
1348
|
+
* Format the cookies in the request as a string for logging
|
|
1349
|
+
*/
|
|
1350
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1351
|
+
return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
1352
|
+
}
|
|
1353
|
+
toString() {
|
|
1354
|
+
return [...this._parsed.values()].map((v) => `${v.name}=${encodeURIComponent(v.value)}`).join("; ");
|
|
1355
|
+
}
|
|
1356
|
+
};
|
|
1357
|
+
var ResponseCookies = class {
|
|
1358
|
+
constructor(responseHeaders) {
|
|
1359
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
1360
|
+
var _a, _b, _c;
|
|
1361
|
+
this._headers = responseHeaders;
|
|
1362
|
+
const setCookie = (_c = (_b = (_a = responseHeaders.getSetCookie) == null ? void 0 : _a.call(responseHeaders)) != null ? _b : responseHeaders.get("set-cookie")) != null ? _c : [];
|
|
1363
|
+
const cookieStrings = Array.isArray(setCookie) ? setCookie : splitCookiesString(setCookie);
|
|
1364
|
+
for (const cookieString of cookieStrings) {
|
|
1365
|
+
const parsed = parseSetCookie(cookieString);
|
|
1366
|
+
if (parsed)
|
|
1367
|
+
this._parsed.set(parsed.name, parsed);
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
1372
|
+
*/
|
|
1373
|
+
get(...args) {
|
|
1374
|
+
const key = typeof args[0] === "string" ? args[0] : args[0].name;
|
|
1375
|
+
return this._parsed.get(key);
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
1379
|
+
*/
|
|
1380
|
+
getAll(...args) {
|
|
1381
|
+
var _a;
|
|
1382
|
+
const all = Array.from(this._parsed.values());
|
|
1383
|
+
if (!args.length) {
|
|
1384
|
+
return all;
|
|
1385
|
+
}
|
|
1386
|
+
const key = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
|
|
1387
|
+
return all.filter((c) => c.name === key);
|
|
1388
|
+
}
|
|
1389
|
+
has(name) {
|
|
1390
|
+
return this._parsed.has(name);
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
1394
|
+
*/
|
|
1395
|
+
set(...args) {
|
|
1396
|
+
const [name, value, cookie] = args.length === 1 ? [args[0].name, args[0].value, args[0]] : args;
|
|
1397
|
+
const map = this._parsed;
|
|
1398
|
+
map.set(name, normalizeCookie({ name, value, ...cookie }));
|
|
1399
|
+
replace(map, this._headers);
|
|
1400
|
+
return this;
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
1404
|
+
*/
|
|
1405
|
+
delete(...args) {
|
|
1406
|
+
const [name, options] = typeof args[0] === "string" ? [args[0]] : [args[0].name, args[0]];
|
|
1407
|
+
return this.set({ ...options, name, value: "", expires: /* @__PURE__ */ new Date(0) });
|
|
1408
|
+
}
|
|
1409
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1410
|
+
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
1411
|
+
}
|
|
1412
|
+
toString() {
|
|
1413
|
+
return [...this._parsed.values()].map(stringifyCookie).join("; ");
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
function replace(bag, headers) {
|
|
1417
|
+
headers.delete("set-cookie");
|
|
1418
|
+
for (const [, value] of bag) {
|
|
1419
|
+
const serialized = stringifyCookie(value);
|
|
1420
|
+
headers.append("set-cookie", serialized);
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
function normalizeCookie(cookie = { name: "", value: "" }) {
|
|
1424
|
+
if (typeof cookie.expires === "number") {
|
|
1425
|
+
cookie.expires = new Date(cookie.expires);
|
|
1426
|
+
}
|
|
1427
|
+
if (cookie.maxAge) {
|
|
1428
|
+
cookie.expires = new Date(Date.now() + cookie.maxAge * 1e3);
|
|
1429
|
+
}
|
|
1430
|
+
if (cookie.path === null || cookie.path === void 0) {
|
|
1431
|
+
cookie.path = "/";
|
|
1432
|
+
}
|
|
1433
|
+
return cookie;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
});
|
|
1437
|
+
|
|
1438
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/cookies.js
|
|
1439
|
+
var require_cookies2 = __commonJS({
|
|
1440
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/cookies.js"(exports) {
|
|
1441
|
+
"use strict";
|
|
1442
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1443
|
+
value: true
|
|
1444
|
+
});
|
|
1445
|
+
function _export(target, all) {
|
|
1446
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1447
|
+
enumerable: true,
|
|
1448
|
+
get: all[name]
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
_export(exports, {
|
|
1452
|
+
RequestCookies: function() {
|
|
1453
|
+
return _cookies.RequestCookies;
|
|
1454
|
+
},
|
|
1455
|
+
ResponseCookies: function() {
|
|
1456
|
+
return _cookies.ResponseCookies;
|
|
1457
|
+
},
|
|
1458
|
+
stringifyCookie: function() {
|
|
1459
|
+
return _cookies.stringifyCookie;
|
|
1460
|
+
}
|
|
1461
|
+
});
|
|
1462
|
+
var _cookies = require_cookies();
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
|
|
1466
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/request.js
|
|
1467
|
+
var require_request = __commonJS({
|
|
1468
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/request.js"(exports) {
|
|
1469
|
+
"use strict";
|
|
1470
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1471
|
+
value: true
|
|
1472
|
+
});
|
|
1473
|
+
function _export(target, all) {
|
|
1474
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1475
|
+
enumerable: true,
|
|
1476
|
+
get: all[name]
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1479
|
+
_export(exports, {
|
|
1480
|
+
INTERNALS: function() {
|
|
1481
|
+
return INTERNALS;
|
|
1482
|
+
},
|
|
1483
|
+
NextRequest: function() {
|
|
1484
|
+
return NextRequest2;
|
|
1485
|
+
}
|
|
1486
|
+
});
|
|
1487
|
+
var _nexturl = require_next_url();
|
|
1488
|
+
var _utils = require_utils();
|
|
1489
|
+
var _error = require_error();
|
|
1490
|
+
var _cookies = require_cookies2();
|
|
1491
|
+
var INTERNALS = Symbol("internal request");
|
|
1492
|
+
var NextRequest2 = class extends Request {
|
|
1493
|
+
constructor(input, init = {}) {
|
|
1494
|
+
const url = typeof input !== "string" && "url" in input ? input.url : String(input);
|
|
1495
|
+
(0, _utils.validateURL)(url);
|
|
1496
|
+
if (process.env.NEXT_RUNTIME !== "edge") {
|
|
1497
|
+
if (init.body && init.duplex !== "half") {
|
|
1498
|
+
init.duplex = "half";
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
if (input instanceof Request) super(input, init);
|
|
1502
|
+
else super(url, init);
|
|
1503
|
+
const nextUrl = new _nexturl.NextURL(url, {
|
|
1504
|
+
headers: (0, _utils.toNodeOutgoingHttpHeaders)(this.headers),
|
|
1505
|
+
nextConfig: init.nextConfig
|
|
1506
|
+
});
|
|
1507
|
+
this[INTERNALS] = {
|
|
1508
|
+
cookies: new _cookies.RequestCookies(this.headers),
|
|
1509
|
+
nextUrl,
|
|
1510
|
+
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? url : nextUrl.toString()
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1514
|
+
return {
|
|
1515
|
+
cookies: this.cookies,
|
|
1516
|
+
nextUrl: this.nextUrl,
|
|
1517
|
+
url: this.url,
|
|
1518
|
+
// rest of props come from Request
|
|
1519
|
+
bodyUsed: this.bodyUsed,
|
|
1520
|
+
cache: this.cache,
|
|
1521
|
+
credentials: this.credentials,
|
|
1522
|
+
destination: this.destination,
|
|
1523
|
+
headers: Object.fromEntries(this.headers),
|
|
1524
|
+
integrity: this.integrity,
|
|
1525
|
+
keepalive: this.keepalive,
|
|
1526
|
+
method: this.method,
|
|
1527
|
+
mode: this.mode,
|
|
1528
|
+
redirect: this.redirect,
|
|
1529
|
+
referrer: this.referrer,
|
|
1530
|
+
referrerPolicy: this.referrerPolicy,
|
|
1531
|
+
signal: this.signal
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
get cookies() {
|
|
1535
|
+
return this[INTERNALS].cookies;
|
|
1536
|
+
}
|
|
1537
|
+
get nextUrl() {
|
|
1538
|
+
return this[INTERNALS].nextUrl;
|
|
1539
|
+
}
|
|
1540
|
+
/**
|
|
1541
|
+
* @deprecated
|
|
1542
|
+
* `page` has been deprecated in favour of `URLPattern`.
|
|
1543
|
+
* Read more: https://nextjs.org/docs/messages/middleware-request-page
|
|
1544
|
+
*/
|
|
1545
|
+
get page() {
|
|
1546
|
+
throw new _error.RemovedPageError();
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* @deprecated
|
|
1550
|
+
* `ua` has been removed in favour of \`userAgent\` function.
|
|
1551
|
+
* Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
|
|
1552
|
+
*/
|
|
1553
|
+
get ua() {
|
|
1554
|
+
throw new _error.RemovedUAError();
|
|
1555
|
+
}
|
|
1556
|
+
get url() {
|
|
1557
|
+
return this[INTERNALS].url;
|
|
1558
|
+
}
|
|
1559
|
+
};
|
|
1560
|
+
}
|
|
1561
|
+
});
|
|
1562
|
+
|
|
1563
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js
|
|
1564
|
+
var require_reflect = __commonJS({
|
|
1565
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js"(exports) {
|
|
1566
|
+
"use strict";
|
|
1567
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1568
|
+
value: true
|
|
1569
|
+
});
|
|
1570
|
+
Object.defineProperty(exports, "ReflectAdapter", {
|
|
1571
|
+
enumerable: true,
|
|
1572
|
+
get: function() {
|
|
1573
|
+
return ReflectAdapter;
|
|
1574
|
+
}
|
|
1575
|
+
});
|
|
1576
|
+
var ReflectAdapter = class {
|
|
1577
|
+
static get(target, prop, receiver) {
|
|
1578
|
+
const value = Reflect.get(target, prop, receiver);
|
|
1579
|
+
if (typeof value === "function") {
|
|
1580
|
+
return value.bind(target);
|
|
1581
|
+
}
|
|
1582
|
+
return value;
|
|
1583
|
+
}
|
|
1584
|
+
static set(target, prop, value, receiver) {
|
|
1585
|
+
return Reflect.set(target, prop, value, receiver);
|
|
1586
|
+
}
|
|
1587
|
+
static has(target, prop) {
|
|
1588
|
+
return Reflect.has(target, prop);
|
|
1589
|
+
}
|
|
1590
|
+
static deleteProperty(target, prop) {
|
|
1591
|
+
return Reflect.deleteProperty(target, prop);
|
|
1592
|
+
}
|
|
1593
|
+
};
|
|
1594
|
+
}
|
|
1595
|
+
});
|
|
1596
|
+
|
|
1597
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/response.js
|
|
1598
|
+
var require_response = __commonJS({
|
|
1599
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/response.js"(exports) {
|
|
1600
|
+
"use strict";
|
|
1601
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1602
|
+
value: true
|
|
1603
|
+
});
|
|
1604
|
+
Object.defineProperty(exports, "NextResponse", {
|
|
1605
|
+
enumerable: true,
|
|
1606
|
+
get: function() {
|
|
1607
|
+
return NextResponse2;
|
|
1608
|
+
}
|
|
1609
|
+
});
|
|
1610
|
+
var _cookies = require_cookies2();
|
|
1611
|
+
var _nexturl = require_next_url();
|
|
1612
|
+
var _utils = require_utils();
|
|
1613
|
+
var _reflect = require_reflect();
|
|
1614
|
+
var _cookies1 = require_cookies2();
|
|
1615
|
+
var INTERNALS = Symbol("internal response");
|
|
1616
|
+
var REDIRECTS = /* @__PURE__ */ new Set([
|
|
1617
|
+
301,
|
|
1618
|
+
302,
|
|
1619
|
+
303,
|
|
1620
|
+
307,
|
|
1621
|
+
308
|
|
1622
|
+
]);
|
|
1623
|
+
function handleMiddlewareField(init, headers) {
|
|
1624
|
+
var _init_request;
|
|
1625
|
+
if (init == null ? void 0 : (_init_request = init.request) == null ? void 0 : _init_request.headers) {
|
|
1626
|
+
if (!(init.request.headers instanceof Headers)) {
|
|
1627
|
+
throw Object.defineProperty(new Error("request.headers must be an instance of Headers"), "__NEXT_ERROR_CODE", {
|
|
1628
|
+
value: "E119",
|
|
1629
|
+
enumerable: false,
|
|
1630
|
+
configurable: true
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
const keys = [];
|
|
1634
|
+
for (const [key, value] of init.request.headers) {
|
|
1635
|
+
headers.set("x-middleware-request-" + key, value);
|
|
1636
|
+
keys.push(key);
|
|
1637
|
+
}
|
|
1638
|
+
headers.set("x-middleware-override-headers", keys.join(","));
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
var NextResponse2 = class _NextResponse extends Response {
|
|
1642
|
+
constructor(body, init = {}) {
|
|
1643
|
+
super(body, init);
|
|
1644
|
+
const headers = this.headers;
|
|
1645
|
+
const cookies = new _cookies1.ResponseCookies(headers);
|
|
1646
|
+
const cookiesProxy = new Proxy(cookies, {
|
|
1647
|
+
get(target, prop, receiver) {
|
|
1648
|
+
switch (prop) {
|
|
1649
|
+
case "delete":
|
|
1650
|
+
case "set": {
|
|
1651
|
+
return (...args) => {
|
|
1652
|
+
const result = Reflect.apply(target[prop], target, args);
|
|
1653
|
+
const newHeaders = new Headers(headers);
|
|
1654
|
+
if (result instanceof _cookies1.ResponseCookies) {
|
|
1655
|
+
headers.set("x-middleware-set-cookie", result.getAll().map((cookie) => (0, _cookies.stringifyCookie)(cookie)).join(","));
|
|
1656
|
+
}
|
|
1657
|
+
handleMiddlewareField(init, newHeaders);
|
|
1658
|
+
return result;
|
|
1659
|
+
};
|
|
1660
|
+
}
|
|
1661
|
+
default:
|
|
1662
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
});
|
|
1666
|
+
this[INTERNALS] = {
|
|
1667
|
+
cookies: cookiesProxy,
|
|
1668
|
+
url: init.url ? new _nexturl.NextURL(init.url, {
|
|
1669
|
+
headers: (0, _utils.toNodeOutgoingHttpHeaders)(headers),
|
|
1670
|
+
nextConfig: init.nextConfig
|
|
1671
|
+
}) : void 0
|
|
1672
|
+
};
|
|
1673
|
+
}
|
|
1674
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1675
|
+
return {
|
|
1676
|
+
cookies: this.cookies,
|
|
1677
|
+
url: this.url,
|
|
1678
|
+
// rest of props come from Response
|
|
1679
|
+
body: this.body,
|
|
1680
|
+
bodyUsed: this.bodyUsed,
|
|
1681
|
+
headers: Object.fromEntries(this.headers),
|
|
1682
|
+
ok: this.ok,
|
|
1683
|
+
redirected: this.redirected,
|
|
1684
|
+
status: this.status,
|
|
1685
|
+
statusText: this.statusText,
|
|
1686
|
+
type: this.type
|
|
1687
|
+
};
|
|
1688
|
+
}
|
|
1689
|
+
get cookies() {
|
|
1690
|
+
return this[INTERNALS].cookies;
|
|
1691
|
+
}
|
|
1692
|
+
static json(body, init) {
|
|
1693
|
+
const response = Response.json(body, init);
|
|
1694
|
+
return new _NextResponse(response.body, response);
|
|
1695
|
+
}
|
|
1696
|
+
static redirect(url, init) {
|
|
1697
|
+
const status = typeof init === "number" ? init : (init == null ? void 0 : init.status) ?? 307;
|
|
1698
|
+
if (!REDIRECTS.has(status)) {
|
|
1699
|
+
throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'), "__NEXT_ERROR_CODE", {
|
|
1700
|
+
value: "E529",
|
|
1701
|
+
enumerable: false,
|
|
1702
|
+
configurable: true
|
|
1703
|
+
});
|
|
1704
|
+
}
|
|
1705
|
+
const initObj = typeof init === "object" ? init : {};
|
|
1706
|
+
const headers = new Headers(initObj == null ? void 0 : initObj.headers);
|
|
1707
|
+
headers.set("Location", (0, _utils.validateURL)(url));
|
|
1708
|
+
return new _NextResponse(null, {
|
|
1709
|
+
...initObj,
|
|
1710
|
+
headers,
|
|
1711
|
+
status
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
static rewrite(destination, init) {
|
|
1715
|
+
const headers = new Headers(init == null ? void 0 : init.headers);
|
|
1716
|
+
headers.set("x-middleware-rewrite", (0, _utils.validateURL)(destination));
|
|
1717
|
+
handleMiddlewareField(init, headers);
|
|
1718
|
+
return new _NextResponse(null, {
|
|
1719
|
+
...init,
|
|
1720
|
+
headers
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
static next(init) {
|
|
1724
|
+
const headers = new Headers(init == null ? void 0 : init.headers);
|
|
1725
|
+
headers.set("x-middleware-next", "1");
|
|
1726
|
+
handleMiddlewareField(init, headers);
|
|
1727
|
+
return new _NextResponse(null, {
|
|
1728
|
+
...init,
|
|
1729
|
+
headers
|
|
1730
|
+
});
|
|
1731
|
+
}
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/image-response.js
|
|
1737
|
+
var require_image_response = __commonJS({
|
|
1738
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/image-response.js"(exports) {
|
|
1739
|
+
"use strict";
|
|
1740
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1741
|
+
value: true
|
|
1742
|
+
});
|
|
1743
|
+
Object.defineProperty(exports, "ImageResponse", {
|
|
1744
|
+
enumerable: true,
|
|
1745
|
+
get: function() {
|
|
1746
|
+
return ImageResponse;
|
|
1747
|
+
}
|
|
1748
|
+
});
|
|
1749
|
+
function ImageResponse() {
|
|
1750
|
+
throw Object.defineProperty(new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'), "__NEXT_ERROR_CODE", {
|
|
1751
|
+
value: "E183",
|
|
1752
|
+
enumerable: false,
|
|
1753
|
+
configurable: true
|
|
1754
|
+
});
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
});
|
|
1758
|
+
|
|
1759
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js
|
|
1760
|
+
var require_ua_parser = __commonJS({
|
|
1761
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js"(exports, module) {
|
|
1762
|
+
"use strict";
|
|
1763
|
+
(() => {
|
|
1764
|
+
var i = { 226: function(i2, e2) {
|
|
1765
|
+
(function(o2, a) {
|
|
1766
|
+
"use strict";
|
|
1767
|
+
var r = "1.0.35", t = "", n = "?", s = "function", b = "undefined", w = "object", l = "string", d = "major", c = "model", u = "name", p = "type", m = "vendor", f = "version", h = "architecture", v = "console", g = "mobile", k = "tablet", x = "smarttv", _ = "wearable", y = "embedded", q = 350;
|
|
1768
|
+
var T = "Amazon", S = "Apple", z = "ASUS", N = "BlackBerry", A = "Browser", C = "Chrome", E = "Edge", O = "Firefox", U = "Google", j = "Huawei", P = "LG", R = "Microsoft", M = "Motorola", B = "Opera", V = "Samsung", D = "Sharp", I = "Sony", W = "Viera", F = "Xiaomi", G = "Zebra", H = "Facebook", L = "Chromium OS", Z = "Mac OS";
|
|
1769
|
+
var extend = function(i3, e3) {
|
|
1770
|
+
var o3 = {};
|
|
1771
|
+
for (var a2 in i3) {
|
|
1772
|
+
if (e3[a2] && e3[a2].length % 2 === 0) {
|
|
1773
|
+
o3[a2] = e3[a2].concat(i3[a2]);
|
|
1774
|
+
} else {
|
|
1775
|
+
o3[a2] = i3[a2];
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
return o3;
|
|
1779
|
+
}, enumerize = function(i3) {
|
|
1780
|
+
var e3 = {};
|
|
1781
|
+
for (var o3 = 0; o3 < i3.length; o3++) {
|
|
1782
|
+
e3[i3[o3].toUpperCase()] = i3[o3];
|
|
1783
|
+
}
|
|
1784
|
+
return e3;
|
|
1785
|
+
}, has = function(i3, e3) {
|
|
1786
|
+
return typeof i3 === l ? lowerize(e3).indexOf(lowerize(i3)) !== -1 : false;
|
|
1787
|
+
}, lowerize = function(i3) {
|
|
1788
|
+
return i3.toLowerCase();
|
|
1789
|
+
}, majorize = function(i3) {
|
|
1790
|
+
return typeof i3 === l ? i3.replace(/[^\d\.]/g, t).split(".")[0] : a;
|
|
1791
|
+
}, trim = function(i3, e3) {
|
|
1792
|
+
if (typeof i3 === l) {
|
|
1793
|
+
i3 = i3.replace(/^\s\s*/, t);
|
|
1794
|
+
return typeof e3 === b ? i3 : i3.substring(0, q);
|
|
1795
|
+
}
|
|
1796
|
+
};
|
|
1797
|
+
var rgxMapper = function(i3, e3) {
|
|
1798
|
+
var o3 = 0, r2, t2, n2, b2, l2, d2;
|
|
1799
|
+
while (o3 < e3.length && !l2) {
|
|
1800
|
+
var c2 = e3[o3], u2 = e3[o3 + 1];
|
|
1801
|
+
r2 = t2 = 0;
|
|
1802
|
+
while (r2 < c2.length && !l2) {
|
|
1803
|
+
if (!c2[r2]) {
|
|
1804
|
+
break;
|
|
1805
|
+
}
|
|
1806
|
+
l2 = c2[r2++].exec(i3);
|
|
1807
|
+
if (!!l2) {
|
|
1808
|
+
for (n2 = 0; n2 < u2.length; n2++) {
|
|
1809
|
+
d2 = l2[++t2];
|
|
1810
|
+
b2 = u2[n2];
|
|
1811
|
+
if (typeof b2 === w && b2.length > 0) {
|
|
1812
|
+
if (b2.length === 2) {
|
|
1813
|
+
if (typeof b2[1] == s) {
|
|
1814
|
+
this[b2[0]] = b2[1].call(this, d2);
|
|
1815
|
+
} else {
|
|
1816
|
+
this[b2[0]] = b2[1];
|
|
1817
|
+
}
|
|
1818
|
+
} else if (b2.length === 3) {
|
|
1819
|
+
if (typeof b2[1] === s && !(b2[1].exec && b2[1].test)) {
|
|
1820
|
+
this[b2[0]] = d2 ? b2[1].call(this, d2, b2[2]) : a;
|
|
1821
|
+
} else {
|
|
1822
|
+
this[b2[0]] = d2 ? d2.replace(b2[1], b2[2]) : a;
|
|
1823
|
+
}
|
|
1824
|
+
} else if (b2.length === 4) {
|
|
1825
|
+
this[b2[0]] = d2 ? b2[3].call(this, d2.replace(b2[1], b2[2])) : a;
|
|
1826
|
+
}
|
|
1827
|
+
} else {
|
|
1828
|
+
this[b2] = d2 ? d2 : a;
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
o3 += 2;
|
|
1834
|
+
}
|
|
1835
|
+
}, strMapper = function(i3, e3) {
|
|
1836
|
+
for (var o3 in e3) {
|
|
1837
|
+
if (typeof e3[o3] === w && e3[o3].length > 0) {
|
|
1838
|
+
for (var r2 = 0; r2 < e3[o3].length; r2++) {
|
|
1839
|
+
if (has(e3[o3][r2], i3)) {
|
|
1840
|
+
return o3 === n ? a : o3;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
} else if (has(e3[o3], i3)) {
|
|
1844
|
+
return o3 === n ? a : o3;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
return i3;
|
|
1848
|
+
};
|
|
1849
|
+
var $ = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, X = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" };
|
|
1850
|
+
var K = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [u, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [u, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [u, f], [/opios[\/ ]+([\w\.]+)/i], [f, [u, B + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [u, B]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [u, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [u, "UC" + A]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [u, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [u, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [u, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [u, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [u, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[u, /(.+)/, "$1 Secure " + A], f], [/\bfocus\/([\w\.]+)/i], [f, [u, O + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [u, B + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [u, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [u, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [u, B + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [u, "MIUI " + A]], [/fxios\/([-\w\.]+)/i], [f, [u, O]], [/\bqihu|(qi?ho?o?|360)browser/i], [[u, "360 " + A]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[u, /(.+)/, "$1 " + A], f], [/(comodo_dragon)\/([\w\.]+)/i], [[u, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [u, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [u], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[u, H], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [u, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [u, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [u, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [u, C + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[u, C + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [u, "Android " + A]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [u, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [u, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, u], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [u, [f, strMapper, $]], [/(webkit|khtml)\/([\w\.]+)/i], [u, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[u, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [u, O + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [u, f], [/(cobalt)\/([\w\.]+)/i], [u, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[h, "amd64"]], [/(ia32(?=;))/i], [[h, lowerize]], [/((?:i[346]|x)86)[;\)]/i], [[h, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[h, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[h, "armhf"]], [/windows (ce|mobile); ppc;/i], [[h, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[h, /ower/, t, lowerize]], [/(sun4\w)[;\)]/i], [[h, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[h, lowerize]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [c, [m, V], [p, k]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [c, [m, V], [p, g]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [m, S], [p, g]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [m, S], [p, k]], [/(macintosh);/i], [c, [m, S]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [m, D], [p, g]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [c, [m, j], [p, k]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [m, j], [p, g]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[c, /_/g, " "], [m, F], [p, g]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[c, /_/g, " "], [m, F], [p, k]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [c, [m, "OPPO"], [p, g]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [m, "Vivo"], [p, g]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [c, [m, "Realme"], [p, g]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [c, [m, M], [p, g]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [m, M], [p, k]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [m, P], [p, k]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [c, [m, P], [p, g]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [c, [m, "Lenovo"], [p, k]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[c, /_/g, " "], [m, "Nokia"], [p, g]], [/(pixel c)\b/i], [c, [m, U], [p, k]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [m, U], [p, g]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [c, [m, I], [p, g]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [m, I], [p, k]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [m, "OnePlus"], [p, g]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [m, T], [p, k]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [m, T], [p, g]], [/(playbook);[-\w\),; ]+(rim)/i], [c, m, [p, k]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [m, N], [p, g]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [m, z], [p, k]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [m, z], [p, g]], [/(nexus 9)/i], [c, [m, "HTC"], [p, k]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [c, /_/g, " "], [p, g]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [m, "Acer"], [p, k]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [m, "Meizu"], [p, g]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [m, c, [p, g]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, c, [p, k]], [/(surface duo)/i], [c, [m, R], [p, k]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [m, "Fairphone"], [p, g]], [/(u304aa)/i], [c, [m, "AT&T"], [p, g]], [/\bsie-(\w*)/i], [c, [m, "Siemens"], [p, g]], [/\b(rct\w+) b/i], [c, [m, "RCA"], [p, k]], [/\b(venue[\d ]{2,7}) b/i], [c, [m, "Dell"], [p, k]], [/\b(q(?:mv|ta)\w+) b/i], [c, [m, "Verizon"], [p, k]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [m, "Barnes & Noble"], [p, k]], [/\b(tm\d{3}\w+) b/i], [c, [m, "NuVision"], [p, k]], [/\b(k88) b/i], [c, [m, "ZTE"], [p, k]], [/\b(nx\d{3}j) b/i], [c, [m, "ZTE"], [p, g]], [/\b(gen\d{3}) b.+49h/i], [c, [m, "Swiss"], [p, g]], [/\b(zur\d{3}) b/i], [c, [m, "Swiss"], [p, k]], [/\b((zeki)?tb.*\b) b/i], [c, [m, "Zeki"], [p, k]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], c, [p, k]], [/\b(ns-?\w{0,9}) b/i], [c, [m, "Insignia"], [p, k]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [m, "NextBook"], [p, k]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], c, [p, g]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], c, [p, g]], [/\b(ph-1) /i], [c, [m, "Essential"], [p, g]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [m, "Envizen"], [p, k]], [/\b(trio[-\w\. ]+) b/i], [c, [m, "MachSpeed"], [p, k]], [/\btu_(1491) b/i], [c, [m, "Rotor"], [p, k]], [/(shield[\w ]+) b/i], [c, [m, "Nvidia"], [p, k]], [/(sprint) (\w+)/i], [m, c, [p, g]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [m, R], [p, g]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [m, G], [p, k]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [m, G], [p, g]], [/smart-tv.+(samsung)/i], [m, [p, x]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [m, V], [p, x]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, P], [p, x]], [/(apple) ?tv/i], [m, [c, S + " TV"], [p, x]], [/crkey/i], [[c, C + "cast"], [m, U], [p, x]], [/droid.+aft(\w)( bui|\))/i], [c, [m, T], [p, x]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [m, D], [p, x]], [/(bravia[\w ]+)( bui|\))/i], [c, [m, I], [p, x]], [/(mitv-\w{5}) bui/i], [c, [m, F], [p, x]], [/Hbbtv.*(technisat) (.*);/i], [m, c, [p, x]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, trim], [c, trim], [p, x]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[p, x]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, c, [p, v]], [/droid.+; (shield) bui/i], [c, [m, "Nvidia"], [p, v]], [/(playstation [345portablevi]+)/i], [c, [m, I], [p, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [m, R], [p, v]], [/((pebble))app/i], [m, c, [p, _]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [m, S], [p, _]], [/droid.+; (glass) \d/i], [c, [m, U], [p, _]], [/droid.+; (wt63?0{2,3})\)/i], [c, [m, G], [p, _]], [/(quest( 2| pro)?)/i], [c, [m, H], [p, _]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [p, y]], [/(aeobc)\b/i], [c, [m, T], [p, y]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [c, [p, g]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [c, [p, k]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[p, k]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[p, g]], [/(android[-\w\. ]{0,9});.+buil/i], [c, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [u, E + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [u, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [u, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, u]], os: [[/microsoft (windows) (vista|xp)/i], [u, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [u, [f, strMapper, X]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[u, "Windows"], [f, strMapper, X]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [u, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[u, Z], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, u], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [u, f], [/\(bb(10);/i], [f, [u, N]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [u, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [u, O + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [u, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [u, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [u, C + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[u, L], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [u, f], [/(sunos) ?([\w\.\d]*)/i], [[u, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [u, f]] };
|
|
1851
|
+
var UAParser = function(i3, e3) {
|
|
1852
|
+
if (typeof i3 === w) {
|
|
1853
|
+
e3 = i3;
|
|
1854
|
+
i3 = a;
|
|
1855
|
+
}
|
|
1856
|
+
if (!(this instanceof UAParser)) {
|
|
1857
|
+
return new UAParser(i3, e3).getResult();
|
|
1858
|
+
}
|
|
1859
|
+
var r2 = typeof o2 !== b && o2.navigator ? o2.navigator : a;
|
|
1860
|
+
var n2 = i3 || (r2 && r2.userAgent ? r2.userAgent : t);
|
|
1861
|
+
var v2 = r2 && r2.userAgentData ? r2.userAgentData : a;
|
|
1862
|
+
var x2 = e3 ? extend(K, e3) : K;
|
|
1863
|
+
var _2 = r2 && r2.userAgent == n2;
|
|
1864
|
+
this.getBrowser = function() {
|
|
1865
|
+
var i4 = {};
|
|
1866
|
+
i4[u] = a;
|
|
1867
|
+
i4[f] = a;
|
|
1868
|
+
rgxMapper.call(i4, n2, x2.browser);
|
|
1869
|
+
i4[d] = majorize(i4[f]);
|
|
1870
|
+
if (_2 && r2 && r2.brave && typeof r2.brave.isBrave == s) {
|
|
1871
|
+
i4[u] = "Brave";
|
|
1872
|
+
}
|
|
1873
|
+
return i4;
|
|
1874
|
+
};
|
|
1875
|
+
this.getCPU = function() {
|
|
1876
|
+
var i4 = {};
|
|
1877
|
+
i4[h] = a;
|
|
1878
|
+
rgxMapper.call(i4, n2, x2.cpu);
|
|
1879
|
+
return i4;
|
|
1880
|
+
};
|
|
1881
|
+
this.getDevice = function() {
|
|
1882
|
+
var i4 = {};
|
|
1883
|
+
i4[m] = a;
|
|
1884
|
+
i4[c] = a;
|
|
1885
|
+
i4[p] = a;
|
|
1886
|
+
rgxMapper.call(i4, n2, x2.device);
|
|
1887
|
+
if (_2 && !i4[p] && v2 && v2.mobile) {
|
|
1888
|
+
i4[p] = g;
|
|
1889
|
+
}
|
|
1890
|
+
if (_2 && i4[c] == "Macintosh" && r2 && typeof r2.standalone !== b && r2.maxTouchPoints && r2.maxTouchPoints > 2) {
|
|
1891
|
+
i4[c] = "iPad";
|
|
1892
|
+
i4[p] = k;
|
|
1893
|
+
}
|
|
1894
|
+
return i4;
|
|
1895
|
+
};
|
|
1896
|
+
this.getEngine = function() {
|
|
1897
|
+
var i4 = {};
|
|
1898
|
+
i4[u] = a;
|
|
1899
|
+
i4[f] = a;
|
|
1900
|
+
rgxMapper.call(i4, n2, x2.engine);
|
|
1901
|
+
return i4;
|
|
1902
|
+
};
|
|
1903
|
+
this.getOS = function() {
|
|
1904
|
+
var i4 = {};
|
|
1905
|
+
i4[u] = a;
|
|
1906
|
+
i4[f] = a;
|
|
1907
|
+
rgxMapper.call(i4, n2, x2.os);
|
|
1908
|
+
if (_2 && !i4[u] && v2 && v2.platform != "Unknown") {
|
|
1909
|
+
i4[u] = v2.platform.replace(/chrome os/i, L).replace(/macos/i, Z);
|
|
1910
|
+
}
|
|
1911
|
+
return i4;
|
|
1912
|
+
};
|
|
1913
|
+
this.getResult = function() {
|
|
1914
|
+
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1915
|
+
};
|
|
1916
|
+
this.getUA = function() {
|
|
1917
|
+
return n2;
|
|
1918
|
+
};
|
|
1919
|
+
this.setUA = function(i4) {
|
|
1920
|
+
n2 = typeof i4 === l && i4.length > q ? trim(i4, q) : i4;
|
|
1921
|
+
return this;
|
|
1922
|
+
};
|
|
1923
|
+
this.setUA(n2);
|
|
1924
|
+
return this;
|
|
1925
|
+
};
|
|
1926
|
+
UAParser.VERSION = r;
|
|
1927
|
+
UAParser.BROWSER = enumerize([u, f, d]);
|
|
1928
|
+
UAParser.CPU = enumerize([h]);
|
|
1929
|
+
UAParser.DEVICE = enumerize([c, m, p, v, g, x, k, _, y]);
|
|
1930
|
+
UAParser.ENGINE = UAParser.OS = enumerize([u, f]);
|
|
1931
|
+
if (typeof e2 !== b) {
|
|
1932
|
+
if ("object" !== b && i2.exports) {
|
|
1933
|
+
e2 = i2.exports = UAParser;
|
|
1934
|
+
}
|
|
1935
|
+
e2.UAParser = UAParser;
|
|
1936
|
+
} else {
|
|
1937
|
+
if (typeof define === s && define.amd) {
|
|
1938
|
+
define((function() {
|
|
1939
|
+
return UAParser;
|
|
1940
|
+
}));
|
|
1941
|
+
} else if (typeof o2 !== b) {
|
|
1942
|
+
o2.UAParser = UAParser;
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
var Q = typeof o2 !== b && (o2.jQuery || o2.Zepto);
|
|
1946
|
+
if (Q && !Q.ua) {
|
|
1947
|
+
var Y = new UAParser();
|
|
1948
|
+
Q.ua = Y.getResult();
|
|
1949
|
+
Q.ua.get = function() {
|
|
1950
|
+
return Y.getUA();
|
|
1951
|
+
};
|
|
1952
|
+
Q.ua.set = function(i3) {
|
|
1953
|
+
Y.setUA(i3);
|
|
1954
|
+
var e3 = Y.getResult();
|
|
1955
|
+
for (var o3 in e3) {
|
|
1956
|
+
Q.ua[o3] = e3[o3];
|
|
1957
|
+
}
|
|
1958
|
+
};
|
|
1959
|
+
}
|
|
1960
|
+
})(typeof window === "object" ? window : this);
|
|
1961
|
+
} };
|
|
1962
|
+
var e = {};
|
|
1963
|
+
function __nccwpck_require__(o2) {
|
|
1964
|
+
var a = e[o2];
|
|
1965
|
+
if (a !== void 0) {
|
|
1966
|
+
return a.exports;
|
|
1967
|
+
}
|
|
1968
|
+
var r = e[o2] = { exports: {} };
|
|
1969
|
+
var t = true;
|
|
1970
|
+
try {
|
|
1971
|
+
i[o2].call(r.exports, r, r.exports, __nccwpck_require__);
|
|
1972
|
+
t = false;
|
|
1973
|
+
} finally {
|
|
1974
|
+
if (t) delete e[o2];
|
|
1975
|
+
}
|
|
1976
|
+
return r.exports;
|
|
1977
|
+
}
|
|
1978
|
+
if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
|
|
1979
|
+
var o = __nccwpck_require__(226);
|
|
1980
|
+
module.exports = o;
|
|
1981
|
+
})();
|
|
1982
|
+
}
|
|
1983
|
+
});
|
|
1984
|
+
|
|
1985
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/user-agent.js
|
|
1986
|
+
var require_user_agent = __commonJS({
|
|
1987
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/user-agent.js"(exports) {
|
|
1988
|
+
"use strict";
|
|
1989
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1990
|
+
value: true
|
|
1991
|
+
});
|
|
1992
|
+
function _export(target, all) {
|
|
1993
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1994
|
+
enumerable: true,
|
|
1995
|
+
get: all[name]
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
_export(exports, {
|
|
1999
|
+
isBot: function() {
|
|
2000
|
+
return isBot;
|
|
2001
|
+
},
|
|
2002
|
+
userAgent: function() {
|
|
2003
|
+
return userAgent;
|
|
2004
|
+
},
|
|
2005
|
+
userAgentFromString: function() {
|
|
2006
|
+
return userAgentFromString;
|
|
2007
|
+
}
|
|
2008
|
+
});
|
|
2009
|
+
var _uaparserjs = /* @__PURE__ */ _interop_require_default(require_ua_parser());
|
|
2010
|
+
function _interop_require_default(obj) {
|
|
2011
|
+
return obj && obj.__esModule ? obj : {
|
|
2012
|
+
default: obj
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
function isBot(input) {
|
|
2016
|
+
return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(input);
|
|
2017
|
+
}
|
|
2018
|
+
function userAgentFromString(input) {
|
|
2019
|
+
return {
|
|
2020
|
+
...(0, _uaparserjs.default)(input),
|
|
2021
|
+
isBot: input === void 0 ? false : isBot(input)
|
|
2022
|
+
};
|
|
2023
|
+
}
|
|
2024
|
+
function userAgent({ headers }) {
|
|
2025
|
+
return userAgentFromString(headers.get("user-agent") || void 0);
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
});
|
|
2029
|
+
|
|
2030
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/url-pattern.js
|
|
2031
|
+
var require_url_pattern = __commonJS({
|
|
2032
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/web/spec-extension/url-pattern.js"(exports) {
|
|
2033
|
+
"use strict";
|
|
2034
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2035
|
+
value: true
|
|
2036
|
+
});
|
|
2037
|
+
Object.defineProperty(exports, "URLPattern", {
|
|
2038
|
+
enumerable: true,
|
|
2039
|
+
get: function() {
|
|
2040
|
+
return GlobalURLPattern;
|
|
2041
|
+
}
|
|
2042
|
+
});
|
|
2043
|
+
var GlobalURLPattern = (
|
|
2044
|
+
// @ts-expect-error: URLPattern is not available in Node.js
|
|
2045
|
+
typeof URLPattern === "undefined" ? void 0 : URLPattern
|
|
2046
|
+
);
|
|
2047
|
+
}
|
|
2048
|
+
});
|
|
2049
|
+
|
|
2050
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/async-local-storage.js
|
|
2051
|
+
var require_async_local_storage = __commonJS({
|
|
2052
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/async-local-storage.js"(exports) {
|
|
2053
|
+
"use strict";
|
|
2054
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2055
|
+
value: true
|
|
2056
|
+
});
|
|
2057
|
+
function _export(target, all) {
|
|
2058
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2059
|
+
enumerable: true,
|
|
2060
|
+
get: all[name]
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2063
|
+
_export(exports, {
|
|
2064
|
+
bindSnapshot: function() {
|
|
2065
|
+
return bindSnapshot;
|
|
2066
|
+
},
|
|
2067
|
+
createAsyncLocalStorage: function() {
|
|
2068
|
+
return createAsyncLocalStorage;
|
|
2069
|
+
},
|
|
2070
|
+
createSnapshot: function() {
|
|
2071
|
+
return createSnapshot;
|
|
2072
|
+
}
|
|
2073
|
+
});
|
|
2074
|
+
var sharedAsyncLocalStorageNotAvailableError = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
2075
|
+
value: "E504",
|
|
2076
|
+
enumerable: false,
|
|
2077
|
+
configurable: true
|
|
2078
|
+
});
|
|
2079
|
+
var FakeAsyncLocalStorage = class {
|
|
2080
|
+
disable() {
|
|
2081
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
2082
|
+
}
|
|
2083
|
+
getStore() {
|
|
2084
|
+
return void 0;
|
|
2085
|
+
}
|
|
2086
|
+
run() {
|
|
2087
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
2088
|
+
}
|
|
2089
|
+
exit() {
|
|
2090
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
2091
|
+
}
|
|
2092
|
+
enterWith() {
|
|
2093
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
2094
|
+
}
|
|
2095
|
+
static bind(fn) {
|
|
2096
|
+
return fn;
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
var maybeGlobalAsyncLocalStorage = typeof globalThis !== "undefined" && globalThis.AsyncLocalStorage;
|
|
2100
|
+
function createAsyncLocalStorage() {
|
|
2101
|
+
if (maybeGlobalAsyncLocalStorage) {
|
|
2102
|
+
return new maybeGlobalAsyncLocalStorage();
|
|
2103
|
+
}
|
|
2104
|
+
return new FakeAsyncLocalStorage();
|
|
2105
|
+
}
|
|
2106
|
+
function bindSnapshot(fn) {
|
|
2107
|
+
if (maybeGlobalAsyncLocalStorage) {
|
|
2108
|
+
return maybeGlobalAsyncLocalStorage.bind(fn);
|
|
2109
|
+
}
|
|
2110
|
+
return FakeAsyncLocalStorage.bind(fn);
|
|
2111
|
+
}
|
|
2112
|
+
function createSnapshot() {
|
|
2113
|
+
if (maybeGlobalAsyncLocalStorage) {
|
|
2114
|
+
return maybeGlobalAsyncLocalStorage.snapshot();
|
|
2115
|
+
}
|
|
2116
|
+
return function(fn, ...args) {
|
|
2117
|
+
return fn(...args);
|
|
2118
|
+
};
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
});
|
|
2122
|
+
|
|
2123
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/work-async-storage-instance.js
|
|
2124
|
+
var require_work_async_storage_instance = __commonJS({
|
|
2125
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/work-async-storage-instance.js"(exports) {
|
|
2126
|
+
"use strict";
|
|
2127
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2128
|
+
value: true
|
|
2129
|
+
});
|
|
2130
|
+
Object.defineProperty(exports, "workAsyncStorageInstance", {
|
|
2131
|
+
enumerable: true,
|
|
2132
|
+
get: function() {
|
|
2133
|
+
return workAsyncStorageInstance;
|
|
2134
|
+
}
|
|
2135
|
+
});
|
|
2136
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
2137
|
+
var workAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
2138
|
+
}
|
|
2139
|
+
});
|
|
2140
|
+
|
|
2141
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/work-async-storage.external.js
|
|
2142
|
+
var require_work_async_storage_external = __commonJS({
|
|
2143
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/work-async-storage.external.js"(exports) {
|
|
2144
|
+
"use strict";
|
|
2145
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2146
|
+
value: true
|
|
2147
|
+
});
|
|
2148
|
+
Object.defineProperty(exports, "workAsyncStorage", {
|
|
2149
|
+
enumerable: true,
|
|
2150
|
+
get: function() {
|
|
2151
|
+
return _workasyncstorageinstance.workAsyncStorageInstance;
|
|
2152
|
+
}
|
|
2153
|
+
});
|
|
2154
|
+
var _workasyncstorageinstance = require_work_async_storage_instance();
|
|
2155
|
+
}
|
|
2156
|
+
});
|
|
2157
|
+
|
|
2158
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/after/after.js
|
|
2159
|
+
var require_after = __commonJS({
|
|
2160
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/after/after.js"(exports) {
|
|
2161
|
+
"use strict";
|
|
2162
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2163
|
+
value: true
|
|
2164
|
+
});
|
|
2165
|
+
Object.defineProperty(exports, "after", {
|
|
2166
|
+
enumerable: true,
|
|
2167
|
+
get: function() {
|
|
2168
|
+
return after;
|
|
2169
|
+
}
|
|
2170
|
+
});
|
|
2171
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
2172
|
+
function after(task) {
|
|
2173
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
2174
|
+
if (!workStore) {
|
|
2175
|
+
throw Object.defineProperty(new Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"), "__NEXT_ERROR_CODE", {
|
|
2176
|
+
value: "E468",
|
|
2177
|
+
enumerable: false,
|
|
2178
|
+
configurable: true
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
2181
|
+
const { afterContext } = workStore;
|
|
2182
|
+
return afterContext.after(task);
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
});
|
|
2186
|
+
|
|
2187
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/after/index.js
|
|
2188
|
+
var require_after2 = __commonJS({
|
|
2189
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/after/index.js"(exports) {
|
|
2190
|
+
"use strict";
|
|
2191
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2192
|
+
value: true
|
|
2193
|
+
});
|
|
2194
|
+
_export_star(require_after(), exports);
|
|
2195
|
+
function _export_star(from, to) {
|
|
2196
|
+
Object.keys(from).forEach(function(k) {
|
|
2197
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
2198
|
+
Object.defineProperty(to, k, {
|
|
2199
|
+
enumerable: true,
|
|
2200
|
+
get: function() {
|
|
2201
|
+
return from[k];
|
|
2202
|
+
}
|
|
2203
|
+
});
|
|
2204
|
+
}
|
|
2205
|
+
});
|
|
2206
|
+
return from;
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
});
|
|
2210
|
+
|
|
2211
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js
|
|
2212
|
+
var require_work_unit_async_storage_instance = __commonJS({
|
|
2213
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js"(exports) {
|
|
2214
|
+
"use strict";
|
|
2215
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2216
|
+
value: true
|
|
2217
|
+
});
|
|
2218
|
+
Object.defineProperty(exports, "workUnitAsyncStorageInstance", {
|
|
2219
|
+
enumerable: true,
|
|
2220
|
+
get: function() {
|
|
2221
|
+
return workUnitAsyncStorageInstance;
|
|
2222
|
+
}
|
|
2223
|
+
});
|
|
2224
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
2225
|
+
var workUnitAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
2226
|
+
}
|
|
2227
|
+
});
|
|
2228
|
+
|
|
2229
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/app-router-headers.js
|
|
2230
|
+
var require_app_router_headers = __commonJS({
|
|
2231
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/app-router-headers.js"(exports, module) {
|
|
2232
|
+
"use strict";
|
|
2233
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2234
|
+
value: true
|
|
2235
|
+
});
|
|
2236
|
+
function _export(target, all) {
|
|
2237
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2238
|
+
enumerable: true,
|
|
2239
|
+
get: all[name]
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2242
|
+
_export(exports, {
|
|
2243
|
+
ACTION_HEADER: function() {
|
|
2244
|
+
return ACTION_HEADER;
|
|
2245
|
+
},
|
|
2246
|
+
FLIGHT_HEADERS: function() {
|
|
2247
|
+
return FLIGHT_HEADERS;
|
|
2248
|
+
},
|
|
2249
|
+
NEXT_DID_POSTPONE_HEADER: function() {
|
|
2250
|
+
return NEXT_DID_POSTPONE_HEADER;
|
|
2251
|
+
},
|
|
2252
|
+
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
2253
|
+
return NEXT_HMR_REFRESH_HASH_COOKIE;
|
|
2254
|
+
},
|
|
2255
|
+
NEXT_HMR_REFRESH_HEADER: function() {
|
|
2256
|
+
return NEXT_HMR_REFRESH_HEADER;
|
|
2257
|
+
},
|
|
2258
|
+
NEXT_IS_PRERENDER_HEADER: function() {
|
|
2259
|
+
return NEXT_IS_PRERENDER_HEADER;
|
|
2260
|
+
},
|
|
2261
|
+
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
2262
|
+
return NEXT_REWRITTEN_PATH_HEADER;
|
|
2263
|
+
},
|
|
2264
|
+
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
2265
|
+
return NEXT_REWRITTEN_QUERY_HEADER;
|
|
2266
|
+
},
|
|
2267
|
+
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
2268
|
+
return NEXT_ROUTER_PREFETCH_HEADER;
|
|
2269
|
+
},
|
|
2270
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
2271
|
+
return NEXT_ROUTER_SEGMENT_PREFETCH_HEADER;
|
|
2272
|
+
},
|
|
2273
|
+
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
2274
|
+
return NEXT_ROUTER_STALE_TIME_HEADER;
|
|
2275
|
+
},
|
|
2276
|
+
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
2277
|
+
return NEXT_ROUTER_STATE_TREE_HEADER;
|
|
2278
|
+
},
|
|
2279
|
+
NEXT_RSC_UNION_QUERY: function() {
|
|
2280
|
+
return NEXT_RSC_UNION_QUERY;
|
|
2281
|
+
},
|
|
2282
|
+
NEXT_URL: function() {
|
|
2283
|
+
return NEXT_URL;
|
|
2284
|
+
},
|
|
2285
|
+
RSC_CONTENT_TYPE_HEADER: function() {
|
|
2286
|
+
return RSC_CONTENT_TYPE_HEADER;
|
|
2287
|
+
},
|
|
2288
|
+
RSC_HEADER: function() {
|
|
2289
|
+
return RSC_HEADER;
|
|
2290
|
+
}
|
|
2291
|
+
});
|
|
2292
|
+
var RSC_HEADER = "RSC";
|
|
2293
|
+
var ACTION_HEADER = "Next-Action";
|
|
2294
|
+
var NEXT_ROUTER_STATE_TREE_HEADER = "Next-Router-State-Tree";
|
|
2295
|
+
var NEXT_ROUTER_PREFETCH_HEADER = "Next-Router-Prefetch";
|
|
2296
|
+
var NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = "Next-Router-Segment-Prefetch";
|
|
2297
|
+
var NEXT_HMR_REFRESH_HEADER = "Next-HMR-Refresh";
|
|
2298
|
+
var NEXT_HMR_REFRESH_HASH_COOKIE = "__next_hmr_refresh_hash__";
|
|
2299
|
+
var NEXT_URL = "Next-Url";
|
|
2300
|
+
var RSC_CONTENT_TYPE_HEADER = "text/x-component";
|
|
2301
|
+
var FLIGHT_HEADERS = [
|
|
2302
|
+
RSC_HEADER,
|
|
2303
|
+
NEXT_ROUTER_STATE_TREE_HEADER,
|
|
2304
|
+
NEXT_ROUTER_PREFETCH_HEADER,
|
|
2305
|
+
NEXT_HMR_REFRESH_HEADER,
|
|
2306
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER
|
|
2307
|
+
];
|
|
2308
|
+
var NEXT_RSC_UNION_QUERY = "_rsc";
|
|
2309
|
+
var NEXT_ROUTER_STALE_TIME_HEADER = "x-nextjs-stale-time";
|
|
2310
|
+
var NEXT_DID_POSTPONE_HEADER = "x-nextjs-postponed";
|
|
2311
|
+
var NEXT_REWRITTEN_PATH_HEADER = "x-nextjs-rewritten-path";
|
|
2312
|
+
var NEXT_REWRITTEN_QUERY_HEADER = "x-nextjs-rewritten-query";
|
|
2313
|
+
var NEXT_IS_PRERENDER_HEADER = "x-nextjs-prerender";
|
|
2314
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2315
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2316
|
+
Object.assign(exports.default, exports);
|
|
2317
|
+
module.exports = exports.default;
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
});
|
|
2321
|
+
|
|
2322
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js
|
|
2323
|
+
var require_work_unit_async_storage_external = __commonJS({
|
|
2324
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js"(exports) {
|
|
2325
|
+
"use strict";
|
|
2326
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2327
|
+
value: true
|
|
2328
|
+
});
|
|
2329
|
+
function _export(target, all) {
|
|
2330
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2331
|
+
enumerable: true,
|
|
2332
|
+
get: all[name]
|
|
2333
|
+
});
|
|
2334
|
+
}
|
|
2335
|
+
_export(exports, {
|
|
2336
|
+
getDraftModeProviderForCacheScope: function() {
|
|
2337
|
+
return getDraftModeProviderForCacheScope;
|
|
2338
|
+
},
|
|
2339
|
+
getExpectedRequestStore: function() {
|
|
2340
|
+
return getExpectedRequestStore;
|
|
2341
|
+
},
|
|
2342
|
+
getHmrRefreshHash: function() {
|
|
2343
|
+
return getHmrRefreshHash;
|
|
2344
|
+
},
|
|
2345
|
+
getPrerenderResumeDataCache: function() {
|
|
2346
|
+
return getPrerenderResumeDataCache;
|
|
2347
|
+
},
|
|
2348
|
+
getRenderResumeDataCache: function() {
|
|
2349
|
+
return getRenderResumeDataCache;
|
|
2350
|
+
},
|
|
2351
|
+
throwForMissingRequestStore: function() {
|
|
2352
|
+
return throwForMissingRequestStore;
|
|
2353
|
+
},
|
|
2354
|
+
workUnitAsyncStorage: function() {
|
|
2355
|
+
return _workunitasyncstorageinstance.workUnitAsyncStorageInstance;
|
|
2356
|
+
}
|
|
2357
|
+
});
|
|
2358
|
+
var _workunitasyncstorageinstance = require_work_unit_async_storage_instance();
|
|
2359
|
+
var _approuterheaders = require_app_router_headers();
|
|
2360
|
+
function getExpectedRequestStore(callingExpression) {
|
|
2361
|
+
const workUnitStore = _workunitasyncstorageinstance.workUnitAsyncStorageInstance.getStore();
|
|
2362
|
+
if (!workUnitStore) {
|
|
2363
|
+
throwForMissingRequestStore(callingExpression);
|
|
2364
|
+
}
|
|
2365
|
+
switch (workUnitStore.type) {
|
|
2366
|
+
case "request":
|
|
2367
|
+
return workUnitStore;
|
|
2368
|
+
case "prerender":
|
|
2369
|
+
case "prerender-ppr":
|
|
2370
|
+
case "prerender-legacy":
|
|
2371
|
+
throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside a prerender. This is a bug in Next.js.`), "__NEXT_ERROR_CODE", {
|
|
2372
|
+
value: "E401",
|
|
2373
|
+
enumerable: false,
|
|
2374
|
+
configurable: true
|
|
2375
|
+
});
|
|
2376
|
+
case "cache":
|
|
2377
|
+
throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
2378
|
+
value: "E37",
|
|
2379
|
+
enumerable: false,
|
|
2380
|
+
configurable: true
|
|
2381
|
+
});
|
|
2382
|
+
case "unstable-cache":
|
|
2383
|
+
throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
2384
|
+
value: "E69",
|
|
2385
|
+
enumerable: false,
|
|
2386
|
+
configurable: true
|
|
2387
|
+
});
|
|
2388
|
+
default:
|
|
2389
|
+
const _exhaustiveCheck = workUnitStore;
|
|
2390
|
+
return _exhaustiveCheck;
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
function throwForMissingRequestStore(callingExpression) {
|
|
2394
|
+
throw Object.defineProperty(new Error(`\`${callingExpression}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
2395
|
+
value: "E251",
|
|
2396
|
+
enumerable: false,
|
|
2397
|
+
configurable: true
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2400
|
+
function getPrerenderResumeDataCache(workUnitStore) {
|
|
2401
|
+
if (workUnitStore.type === "prerender" || workUnitStore.type === "prerender-ppr") {
|
|
2402
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
2403
|
+
}
|
|
2404
|
+
return null;
|
|
2405
|
+
}
|
|
2406
|
+
function getRenderResumeDataCache(workUnitStore) {
|
|
2407
|
+
if (workUnitStore.type !== "prerender-legacy" && workUnitStore.type !== "cache" && workUnitStore.type !== "unstable-cache") {
|
|
2408
|
+
if (workUnitStore.type === "request") {
|
|
2409
|
+
return workUnitStore.renderResumeDataCache;
|
|
2410
|
+
}
|
|
2411
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
2412
|
+
}
|
|
2413
|
+
return null;
|
|
2414
|
+
}
|
|
2415
|
+
function getHmrRefreshHash(workStore, workUnitStore) {
|
|
2416
|
+
var _workUnitStore_cookies_get;
|
|
2417
|
+
if (!workStore.dev) {
|
|
2418
|
+
return void 0;
|
|
2419
|
+
}
|
|
2420
|
+
return workUnitStore.type === "cache" || workUnitStore.type === "prerender" ? workUnitStore.hmrRefreshHash : workUnitStore.type === "request" ? (_workUnitStore_cookies_get = workUnitStore.cookies.get(_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : _workUnitStore_cookies_get.value : void 0;
|
|
2421
|
+
}
|
|
2422
|
+
function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
|
|
2423
|
+
if (workStore.isDraftMode) {
|
|
2424
|
+
switch (workUnitStore.type) {
|
|
2425
|
+
case "cache":
|
|
2426
|
+
case "unstable-cache":
|
|
2427
|
+
case "request":
|
|
2428
|
+
return workUnitStore.draftMode;
|
|
2429
|
+
default:
|
|
2430
|
+
return void 0;
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
return void 0;
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
});
|
|
2437
|
+
|
|
2438
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/hooks-server-context.js
|
|
2439
|
+
var require_hooks_server_context = __commonJS({
|
|
2440
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/hooks-server-context.js"(exports, module) {
|
|
2441
|
+
"use strict";
|
|
2442
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2443
|
+
value: true
|
|
2444
|
+
});
|
|
2445
|
+
function _export(target, all) {
|
|
2446
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2447
|
+
enumerable: true,
|
|
2448
|
+
get: all[name]
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2451
|
+
_export(exports, {
|
|
2452
|
+
DynamicServerError: function() {
|
|
2453
|
+
return DynamicServerError;
|
|
2454
|
+
},
|
|
2455
|
+
isDynamicServerError: function() {
|
|
2456
|
+
return isDynamicServerError;
|
|
2457
|
+
}
|
|
2458
|
+
});
|
|
2459
|
+
var DYNAMIC_ERROR_CODE = "DYNAMIC_SERVER_USAGE";
|
|
2460
|
+
var DynamicServerError = class extends Error {
|
|
2461
|
+
constructor(description) {
|
|
2462
|
+
super("Dynamic server usage: " + description), this.description = description, this.digest = DYNAMIC_ERROR_CODE;
|
|
2463
|
+
}
|
|
2464
|
+
};
|
|
2465
|
+
function isDynamicServerError(err) {
|
|
2466
|
+
if (typeof err !== "object" || err === null || !("digest" in err) || typeof err.digest !== "string") {
|
|
2467
|
+
return false;
|
|
2468
|
+
}
|
|
2469
|
+
return err.digest === DYNAMIC_ERROR_CODE;
|
|
2470
|
+
}
|
|
2471
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2472
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2473
|
+
Object.assign(exports.default, exports);
|
|
2474
|
+
module.exports = exports.default;
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
});
|
|
2478
|
+
|
|
2479
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/static-generation-bailout.js
|
|
2480
|
+
var require_static_generation_bailout = __commonJS({
|
|
2481
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/static-generation-bailout.js"(exports, module) {
|
|
2482
|
+
"use strict";
|
|
2483
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2484
|
+
value: true
|
|
2485
|
+
});
|
|
2486
|
+
function _export(target, all) {
|
|
2487
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2488
|
+
enumerable: true,
|
|
2489
|
+
get: all[name]
|
|
2490
|
+
});
|
|
2491
|
+
}
|
|
2492
|
+
_export(exports, {
|
|
2493
|
+
StaticGenBailoutError: function() {
|
|
2494
|
+
return StaticGenBailoutError;
|
|
2495
|
+
},
|
|
2496
|
+
isStaticGenBailoutError: function() {
|
|
2497
|
+
return isStaticGenBailoutError;
|
|
2498
|
+
}
|
|
2499
|
+
});
|
|
2500
|
+
var NEXT_STATIC_GEN_BAILOUT = "NEXT_STATIC_GEN_BAILOUT";
|
|
2501
|
+
var StaticGenBailoutError = class extends Error {
|
|
2502
|
+
constructor(...args) {
|
|
2503
|
+
super(...args), this.code = NEXT_STATIC_GEN_BAILOUT;
|
|
2504
|
+
}
|
|
2505
|
+
};
|
|
2506
|
+
function isStaticGenBailoutError(error) {
|
|
2507
|
+
if (typeof error !== "object" || error === null || !("code" in error)) {
|
|
2508
|
+
return false;
|
|
2509
|
+
}
|
|
2510
|
+
return error.code === NEXT_STATIC_GEN_BAILOUT;
|
|
2511
|
+
}
|
|
2512
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2513
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2514
|
+
Object.assign(exports.default, exports);
|
|
2515
|
+
module.exports = exports.default;
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
});
|
|
2519
|
+
|
|
2520
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/dynamic-rendering-utils.js
|
|
2521
|
+
var require_dynamic_rendering_utils = __commonJS({
|
|
2522
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/dynamic-rendering-utils.js"(exports) {
|
|
2523
|
+
"use strict";
|
|
2524
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2525
|
+
value: true
|
|
2526
|
+
});
|
|
2527
|
+
function _export(target, all) {
|
|
2528
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2529
|
+
enumerable: true,
|
|
2530
|
+
get: all[name]
|
|
2531
|
+
});
|
|
2532
|
+
}
|
|
2533
|
+
_export(exports, {
|
|
2534
|
+
isHangingPromiseRejectionError: function() {
|
|
2535
|
+
return isHangingPromiseRejectionError;
|
|
2536
|
+
},
|
|
2537
|
+
makeHangingPromise: function() {
|
|
2538
|
+
return makeHangingPromise;
|
|
2539
|
+
}
|
|
2540
|
+
});
|
|
2541
|
+
function isHangingPromiseRejectionError(err) {
|
|
2542
|
+
if (typeof err !== "object" || err === null || !("digest" in err)) {
|
|
2543
|
+
return false;
|
|
2544
|
+
}
|
|
2545
|
+
return err.digest === HANGING_PROMISE_REJECTION;
|
|
2546
|
+
}
|
|
2547
|
+
var HANGING_PROMISE_REJECTION = "HANGING_PROMISE_REJECTION";
|
|
2548
|
+
var HangingPromiseRejectionError = class extends Error {
|
|
2549
|
+
constructor(expression) {
|
|
2550
|
+
super(`During prerendering, ${expression} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${expression} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`), this.expression = expression, this.digest = HANGING_PROMISE_REJECTION;
|
|
2551
|
+
}
|
|
2552
|
+
};
|
|
2553
|
+
var abortListenersBySignal = /* @__PURE__ */ new WeakMap();
|
|
2554
|
+
function makeHangingPromise(signal, expression) {
|
|
2555
|
+
if (signal.aborted) {
|
|
2556
|
+
return Promise.reject(new HangingPromiseRejectionError(expression));
|
|
2557
|
+
} else {
|
|
2558
|
+
const hangingPromise = new Promise((_, reject) => {
|
|
2559
|
+
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(expression));
|
|
2560
|
+
let currentListeners = abortListenersBySignal.get(signal);
|
|
2561
|
+
if (currentListeners) {
|
|
2562
|
+
currentListeners.push(boundRejection);
|
|
2563
|
+
} else {
|
|
2564
|
+
const listeners = [
|
|
2565
|
+
boundRejection
|
|
2566
|
+
];
|
|
2567
|
+
abortListenersBySignal.set(signal, listeners);
|
|
2568
|
+
signal.addEventListener("abort", () => {
|
|
2569
|
+
for (let i = 0; i < listeners.length; i++) {
|
|
2570
|
+
listeners[i]();
|
|
2571
|
+
}
|
|
2572
|
+
}, {
|
|
2573
|
+
once: true
|
|
2574
|
+
});
|
|
2575
|
+
}
|
|
2576
|
+
});
|
|
2577
|
+
hangingPromise.catch(ignoreReject);
|
|
2578
|
+
return hangingPromise;
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
function ignoreReject() {
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
});
|
|
2585
|
+
|
|
2586
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/metadata/metadata-constants.js
|
|
2587
|
+
var require_metadata_constants = __commonJS({
|
|
2588
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/metadata/metadata-constants.js"(exports) {
|
|
2589
|
+
"use strict";
|
|
2590
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2591
|
+
value: true
|
|
2592
|
+
});
|
|
2593
|
+
function _export(target, all) {
|
|
2594
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2595
|
+
enumerable: true,
|
|
2596
|
+
get: all[name]
|
|
2597
|
+
});
|
|
2598
|
+
}
|
|
2599
|
+
_export(exports, {
|
|
2600
|
+
METADATA_BOUNDARY_NAME: function() {
|
|
2601
|
+
return METADATA_BOUNDARY_NAME;
|
|
2602
|
+
},
|
|
2603
|
+
OUTLET_BOUNDARY_NAME: function() {
|
|
2604
|
+
return OUTLET_BOUNDARY_NAME;
|
|
2605
|
+
},
|
|
2606
|
+
VIEWPORT_BOUNDARY_NAME: function() {
|
|
2607
|
+
return VIEWPORT_BOUNDARY_NAME;
|
|
2608
|
+
}
|
|
2609
|
+
});
|
|
2610
|
+
var METADATA_BOUNDARY_NAME = "__next_metadata_boundary__";
|
|
2611
|
+
var VIEWPORT_BOUNDARY_NAME = "__next_viewport_boundary__";
|
|
2612
|
+
var OUTLET_BOUNDARY_NAME = "__next_outlet_boundary__";
|
|
2613
|
+
}
|
|
2614
|
+
});
|
|
2615
|
+
|
|
2616
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/scheduler.js
|
|
2617
|
+
var require_scheduler = __commonJS({
|
|
2618
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/scheduler.js"(exports) {
|
|
2619
|
+
"use strict";
|
|
2620
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2621
|
+
value: true
|
|
2622
|
+
});
|
|
2623
|
+
function _export(target, all) {
|
|
2624
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2625
|
+
enumerable: true,
|
|
2626
|
+
get: all[name]
|
|
2627
|
+
});
|
|
2628
|
+
}
|
|
2629
|
+
_export(exports, {
|
|
2630
|
+
atLeastOneTask: function() {
|
|
2631
|
+
return atLeastOneTask;
|
|
2632
|
+
},
|
|
2633
|
+
scheduleImmediate: function() {
|
|
2634
|
+
return scheduleImmediate;
|
|
2635
|
+
},
|
|
2636
|
+
scheduleOnNextTick: function() {
|
|
2637
|
+
return scheduleOnNextTick;
|
|
2638
|
+
},
|
|
2639
|
+
waitAtLeastOneReactRenderTask: function() {
|
|
2640
|
+
return waitAtLeastOneReactRenderTask;
|
|
2641
|
+
}
|
|
2642
|
+
});
|
|
2643
|
+
var scheduleOnNextTick = (cb) => {
|
|
2644
|
+
Promise.resolve().then(() => {
|
|
2645
|
+
if (process.env.NEXT_RUNTIME === "edge") {
|
|
2646
|
+
setTimeout(cb, 0);
|
|
2647
|
+
} else {
|
|
2648
|
+
process.nextTick(cb);
|
|
2649
|
+
}
|
|
2650
|
+
});
|
|
2651
|
+
};
|
|
2652
|
+
var scheduleImmediate = (cb) => {
|
|
2653
|
+
if (process.env.NEXT_RUNTIME === "edge") {
|
|
2654
|
+
setTimeout(cb, 0);
|
|
2655
|
+
} else {
|
|
2656
|
+
setImmediate(cb);
|
|
2657
|
+
}
|
|
2658
|
+
};
|
|
2659
|
+
function atLeastOneTask() {
|
|
2660
|
+
return new Promise((resolve) => scheduleImmediate(resolve));
|
|
2661
|
+
}
|
|
2662
|
+
function waitAtLeastOneReactRenderTask() {
|
|
2663
|
+
if (process.env.NEXT_RUNTIME === "edge") {
|
|
2664
|
+
return new Promise((r) => setTimeout(r, 0));
|
|
2665
|
+
} else {
|
|
2666
|
+
return new Promise((r) => setImmediate(r));
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
});
|
|
2671
|
+
|
|
2672
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/dynamic-rendering.js
|
|
2673
|
+
var require_dynamic_rendering = __commonJS({
|
|
2674
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/dynamic-rendering.js"(exports) {
|
|
2675
|
+
"use strict";
|
|
2676
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2677
|
+
value: true
|
|
2678
|
+
});
|
|
2679
|
+
function _export(target, all) {
|
|
2680
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2681
|
+
enumerable: true,
|
|
2682
|
+
get: all[name]
|
|
2683
|
+
});
|
|
2684
|
+
}
|
|
2685
|
+
_export(exports, {
|
|
2686
|
+
Postpone: function() {
|
|
2687
|
+
return Postpone;
|
|
2688
|
+
},
|
|
2689
|
+
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
2690
|
+
return abortAndThrowOnSynchronousRequestDataAccess;
|
|
2691
|
+
},
|
|
2692
|
+
abortOnSynchronousPlatformIOAccess: function() {
|
|
2693
|
+
return abortOnSynchronousPlatformIOAccess;
|
|
2694
|
+
},
|
|
2695
|
+
accessedDynamicData: function() {
|
|
2696
|
+
return accessedDynamicData;
|
|
2697
|
+
},
|
|
2698
|
+
annotateDynamicAccess: function() {
|
|
2699
|
+
return annotateDynamicAccess;
|
|
2700
|
+
},
|
|
2701
|
+
consumeDynamicAccess: function() {
|
|
2702
|
+
return consumeDynamicAccess;
|
|
2703
|
+
},
|
|
2704
|
+
createDynamicTrackingState: function() {
|
|
2705
|
+
return createDynamicTrackingState;
|
|
2706
|
+
},
|
|
2707
|
+
createDynamicValidationState: function() {
|
|
2708
|
+
return createDynamicValidationState;
|
|
2709
|
+
},
|
|
2710
|
+
createHangingInputAbortSignal: function() {
|
|
2711
|
+
return createHangingInputAbortSignal;
|
|
2712
|
+
},
|
|
2713
|
+
createPostponedAbortSignal: function() {
|
|
2714
|
+
return createPostponedAbortSignal;
|
|
2715
|
+
},
|
|
2716
|
+
formatDynamicAPIAccesses: function() {
|
|
2717
|
+
return formatDynamicAPIAccesses;
|
|
2718
|
+
},
|
|
2719
|
+
getFirstDynamicReason: function() {
|
|
2720
|
+
return getFirstDynamicReason;
|
|
2721
|
+
},
|
|
2722
|
+
isDynamicPostpone: function() {
|
|
2723
|
+
return isDynamicPostpone;
|
|
2724
|
+
},
|
|
2725
|
+
isPrerenderInterruptedError: function() {
|
|
2726
|
+
return isPrerenderInterruptedError;
|
|
2727
|
+
},
|
|
2728
|
+
markCurrentScopeAsDynamic: function() {
|
|
2729
|
+
return markCurrentScopeAsDynamic;
|
|
2730
|
+
},
|
|
2731
|
+
postponeWithTracking: function() {
|
|
2732
|
+
return postponeWithTracking;
|
|
2733
|
+
},
|
|
2734
|
+
throwIfDisallowedDynamic: function() {
|
|
2735
|
+
return throwIfDisallowedDynamic;
|
|
2736
|
+
},
|
|
2737
|
+
throwToInterruptStaticGeneration: function() {
|
|
2738
|
+
return throwToInterruptStaticGeneration;
|
|
2739
|
+
},
|
|
2740
|
+
trackAllowedDynamicAccess: function() {
|
|
2741
|
+
return trackAllowedDynamicAccess;
|
|
2742
|
+
},
|
|
2743
|
+
trackDynamicDataInDynamicRender: function() {
|
|
2744
|
+
return trackDynamicDataInDynamicRender;
|
|
2745
|
+
},
|
|
2746
|
+
trackFallbackParamAccessed: function() {
|
|
2747
|
+
return trackFallbackParamAccessed;
|
|
2748
|
+
},
|
|
2749
|
+
trackSynchronousPlatformIOAccessInDev: function() {
|
|
2750
|
+
return trackSynchronousPlatformIOAccessInDev;
|
|
2751
|
+
},
|
|
2752
|
+
trackSynchronousRequestDataAccessInDev: function() {
|
|
2753
|
+
return trackSynchronousRequestDataAccessInDev;
|
|
2754
|
+
},
|
|
2755
|
+
useDynamicRouteParams: function() {
|
|
2756
|
+
return useDynamicRouteParams;
|
|
2757
|
+
}
|
|
2758
|
+
});
|
|
2759
|
+
var _react = /* @__PURE__ */ _interop_require_default(__require("react"));
|
|
2760
|
+
var _hooksservercontext = require_hooks_server_context();
|
|
2761
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
2762
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
2763
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
2764
|
+
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
2765
|
+
var _metadataconstants = require_metadata_constants();
|
|
2766
|
+
var _scheduler = require_scheduler();
|
|
2767
|
+
function _interop_require_default(obj) {
|
|
2768
|
+
return obj && obj.__esModule ? obj : {
|
|
2769
|
+
default: obj
|
|
2770
|
+
};
|
|
2771
|
+
}
|
|
2772
|
+
var hasPostpone = typeof _react.default.unstable_postpone === "function";
|
|
2773
|
+
function createDynamicTrackingState(isDebugDynamicAccesses) {
|
|
2774
|
+
return {
|
|
2775
|
+
isDebugDynamicAccesses,
|
|
2776
|
+
dynamicAccesses: [],
|
|
2777
|
+
syncDynamicExpression: void 0,
|
|
2778
|
+
syncDynamicErrorWithStack: null
|
|
2779
|
+
};
|
|
2780
|
+
}
|
|
2781
|
+
function createDynamicValidationState() {
|
|
2782
|
+
return {
|
|
2783
|
+
hasSuspendedDynamic: false,
|
|
2784
|
+
hasDynamicMetadata: false,
|
|
2785
|
+
hasDynamicViewport: false,
|
|
2786
|
+
hasSyncDynamicErrors: false,
|
|
2787
|
+
dynamicErrors: []
|
|
2788
|
+
};
|
|
2789
|
+
}
|
|
2790
|
+
function getFirstDynamicReason(trackingState) {
|
|
2791
|
+
var _trackingState_dynamicAccesses_;
|
|
2792
|
+
return (_trackingState_dynamicAccesses_ = trackingState.dynamicAccesses[0]) == null ? void 0 : _trackingState_dynamicAccesses_.expression;
|
|
2793
|
+
}
|
|
2794
|
+
function markCurrentScopeAsDynamic(store, workUnitStore, expression) {
|
|
2795
|
+
if (workUnitStore) {
|
|
2796
|
+
if (workUnitStore.type === "cache" || workUnitStore.type === "unstable-cache") {
|
|
2797
|
+
return;
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
if (store.forceDynamic || store.forceStatic) return;
|
|
2801
|
+
if (store.dynamicShouldError) {
|
|
2802
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${store.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2803
|
+
value: "E553",
|
|
2804
|
+
enumerable: false,
|
|
2805
|
+
configurable: true
|
|
2806
|
+
});
|
|
2807
|
+
}
|
|
2808
|
+
if (workUnitStore) {
|
|
2809
|
+
if (workUnitStore.type === "prerender-ppr") {
|
|
2810
|
+
postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
|
|
2811
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
2812
|
+
workUnitStore.revalidate = 0;
|
|
2813
|
+
const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2814
|
+
value: "E550",
|
|
2815
|
+
enumerable: false,
|
|
2816
|
+
configurable: true
|
|
2817
|
+
});
|
|
2818
|
+
store.dynamicUsageDescription = expression;
|
|
2819
|
+
store.dynamicUsageStack = err.stack;
|
|
2820
|
+
throw err;
|
|
2821
|
+
} else if (process.env.NODE_ENV === "development" && workUnitStore && workUnitStore.type === "request") {
|
|
2822
|
+
workUnitStore.usedDynamic = true;
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
function trackFallbackParamAccessed(store, expression) {
|
|
2827
|
+
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
2828
|
+
if (!prerenderStore || prerenderStore.type !== "prerender-ppr") return;
|
|
2829
|
+
postponeWithTracking(store.route, expression, prerenderStore.dynamicTracking);
|
|
2830
|
+
}
|
|
2831
|
+
function throwToInterruptStaticGeneration(expression, store, prerenderStore) {
|
|
2832
|
+
const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2833
|
+
value: "E558",
|
|
2834
|
+
enumerable: false,
|
|
2835
|
+
configurable: true
|
|
2836
|
+
});
|
|
2837
|
+
prerenderStore.revalidate = 0;
|
|
2838
|
+
store.dynamicUsageDescription = expression;
|
|
2839
|
+
store.dynamicUsageStack = err.stack;
|
|
2840
|
+
throw err;
|
|
2841
|
+
}
|
|
2842
|
+
function trackDynamicDataInDynamicRender(_store, workUnitStore) {
|
|
2843
|
+
if (workUnitStore) {
|
|
2844
|
+
if (workUnitStore.type === "cache" || workUnitStore.type === "unstable-cache") {
|
|
2845
|
+
return;
|
|
2846
|
+
}
|
|
2847
|
+
if (workUnitStore.type === "prerender" || workUnitStore.type === "prerender-legacy") {
|
|
2848
|
+
workUnitStore.revalidate = 0;
|
|
2849
|
+
}
|
|
2850
|
+
if (process.env.NODE_ENV === "development" && workUnitStore.type === "request") {
|
|
2851
|
+
workUnitStore.usedDynamic = true;
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
function abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore) {
|
|
2856
|
+
const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`;
|
|
2857
|
+
const error = createPrerenderInterruptedError(reason);
|
|
2858
|
+
prerenderStore.controller.abort(error);
|
|
2859
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2860
|
+
if (dynamicTracking) {
|
|
2861
|
+
dynamicTracking.dynamicAccesses.push({
|
|
2862
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
2863
|
+
// stack trace.
|
|
2864
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2865
|
+
expression
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
function abortOnSynchronousPlatformIOAccess(route, expression, errorWithStack, prerenderStore) {
|
|
2870
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2871
|
+
if (dynamicTracking) {
|
|
2872
|
+
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
2873
|
+
dynamicTracking.syncDynamicExpression = expression;
|
|
2874
|
+
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2877
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
2878
|
+
}
|
|
2879
|
+
function trackSynchronousPlatformIOAccessInDev(requestStore) {
|
|
2880
|
+
requestStore.prerenderPhase = false;
|
|
2881
|
+
}
|
|
2882
|
+
function abortAndThrowOnSynchronousRequestDataAccess(route, expression, errorWithStack, prerenderStore) {
|
|
2883
|
+
const prerenderSignal = prerenderStore.controller.signal;
|
|
2884
|
+
if (prerenderSignal.aborted === false) {
|
|
2885
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2886
|
+
if (dynamicTracking) {
|
|
2887
|
+
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
2888
|
+
dynamicTracking.syncDynamicExpression = expression;
|
|
2889
|
+
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
2890
|
+
if (prerenderStore.validating === true) {
|
|
2891
|
+
dynamicTracking.syncDynamicLogged = true;
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
2896
|
+
}
|
|
2897
|
+
throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);
|
|
2898
|
+
}
|
|
2899
|
+
var trackSynchronousRequestDataAccessInDev = trackSynchronousPlatformIOAccessInDev;
|
|
2900
|
+
function Postpone({ reason, route }) {
|
|
2901
|
+
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
2902
|
+
const dynamicTracking = prerenderStore && prerenderStore.type === "prerender-ppr" ? prerenderStore.dynamicTracking : null;
|
|
2903
|
+
postponeWithTracking(route, reason, dynamicTracking);
|
|
2904
|
+
}
|
|
2905
|
+
function postponeWithTracking(route, expression, dynamicTracking) {
|
|
2906
|
+
assertPostpone();
|
|
2907
|
+
if (dynamicTracking) {
|
|
2908
|
+
dynamicTracking.dynamicAccesses.push({
|
|
2909
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
2910
|
+
// stack trace.
|
|
2911
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2912
|
+
expression
|
|
2913
|
+
});
|
|
2914
|
+
}
|
|
2915
|
+
_react.default.unstable_postpone(createPostponeReason(route, expression));
|
|
2916
|
+
}
|
|
2917
|
+
function createPostponeReason(route, expression) {
|
|
2918
|
+
return `Route ${route} needs to bail out of prerendering at this point because it used ${expression}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;
|
|
2919
|
+
}
|
|
2920
|
+
function isDynamicPostpone(err) {
|
|
2921
|
+
if (typeof err === "object" && err !== null && typeof err.message === "string") {
|
|
2922
|
+
return isDynamicPostponeReason(err.message);
|
|
2923
|
+
}
|
|
2924
|
+
return false;
|
|
2925
|
+
}
|
|
2926
|
+
function isDynamicPostponeReason(reason) {
|
|
2927
|
+
return reason.includes("needs to bail out of prerendering at this point because it used") && reason.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
|
|
2928
|
+
}
|
|
2929
|
+
if (isDynamicPostponeReason(createPostponeReason("%%%", "^^^")) === false) {
|
|
2930
|
+
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
2931
|
+
value: "E296",
|
|
2932
|
+
enumerable: false,
|
|
2933
|
+
configurable: true
|
|
2934
|
+
});
|
|
2935
|
+
}
|
|
2936
|
+
var NEXT_PRERENDER_INTERRUPTED = "NEXT_PRERENDER_INTERRUPTED";
|
|
2937
|
+
function createPrerenderInterruptedError(message) {
|
|
2938
|
+
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
2939
|
+
value: "E394",
|
|
2940
|
+
enumerable: false,
|
|
2941
|
+
configurable: true
|
|
2942
|
+
});
|
|
2943
|
+
error.digest = NEXT_PRERENDER_INTERRUPTED;
|
|
2944
|
+
return error;
|
|
2945
|
+
}
|
|
2946
|
+
function isPrerenderInterruptedError(error) {
|
|
2947
|
+
return typeof error === "object" && error !== null && error.digest === NEXT_PRERENDER_INTERRUPTED && "name" in error && "message" in error && error instanceof Error;
|
|
2948
|
+
}
|
|
2949
|
+
function accessedDynamicData(dynamicAccesses) {
|
|
2950
|
+
return dynamicAccesses.length > 0;
|
|
2951
|
+
}
|
|
2952
|
+
function consumeDynamicAccess(serverDynamic, clientDynamic) {
|
|
2953
|
+
serverDynamic.dynamicAccesses.push(...clientDynamic.dynamicAccesses);
|
|
2954
|
+
return serverDynamic.dynamicAccesses;
|
|
2955
|
+
}
|
|
2956
|
+
function formatDynamicAPIAccesses(dynamicAccesses) {
|
|
2957
|
+
return dynamicAccesses.filter((access) => typeof access.stack === "string" && access.stack.length > 0).map(({ expression, stack }) => {
|
|
2958
|
+
stack = stack.split("\n").slice(4).filter((line) => {
|
|
2959
|
+
if (line.includes("node_modules/next/")) {
|
|
2960
|
+
return false;
|
|
2961
|
+
}
|
|
2962
|
+
if (line.includes(" (<anonymous>)")) {
|
|
2963
|
+
return false;
|
|
2964
|
+
}
|
|
2965
|
+
if (line.includes(" (node:")) {
|
|
2966
|
+
return false;
|
|
2967
|
+
}
|
|
2968
|
+
return true;
|
|
2969
|
+
}).join("\n");
|
|
2970
|
+
return `Dynamic API Usage Debug - ${expression}:
|
|
2971
|
+
${stack}`;
|
|
2972
|
+
});
|
|
2973
|
+
}
|
|
2974
|
+
function assertPostpone() {
|
|
2975
|
+
if (!hasPostpone) {
|
|
2976
|
+
throw Object.defineProperty(new Error(`Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js`), "__NEXT_ERROR_CODE", {
|
|
2977
|
+
value: "E224",
|
|
2978
|
+
enumerable: false,
|
|
2979
|
+
configurable: true
|
|
2980
|
+
});
|
|
2981
|
+
}
|
|
2982
|
+
}
|
|
2983
|
+
function createPostponedAbortSignal(reason) {
|
|
2984
|
+
assertPostpone();
|
|
2985
|
+
const controller = new AbortController();
|
|
2986
|
+
try {
|
|
2987
|
+
_react.default.unstable_postpone(reason);
|
|
2988
|
+
} catch (x) {
|
|
2989
|
+
controller.abort(x);
|
|
2990
|
+
}
|
|
2991
|
+
return controller.signal;
|
|
2992
|
+
}
|
|
2993
|
+
function createHangingInputAbortSignal(workUnitStore) {
|
|
2994
|
+
const controller = new AbortController();
|
|
2995
|
+
if (workUnitStore.cacheSignal) {
|
|
2996
|
+
workUnitStore.cacheSignal.inputReady().then(() => {
|
|
2997
|
+
controller.abort();
|
|
2998
|
+
});
|
|
2999
|
+
} else {
|
|
3000
|
+
(0, _scheduler.scheduleOnNextTick)(() => controller.abort());
|
|
3001
|
+
}
|
|
3002
|
+
return controller.signal;
|
|
3003
|
+
}
|
|
3004
|
+
function annotateDynamicAccess(expression, prerenderStore) {
|
|
3005
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
3006
|
+
if (dynamicTracking) {
|
|
3007
|
+
dynamicTracking.dynamicAccesses.push({
|
|
3008
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
3009
|
+
expression
|
|
3010
|
+
});
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
function useDynamicRouteParams(expression) {
|
|
3014
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
3015
|
+
if (workStore && workStore.isStaticGeneration && workStore.fallbackRouteParams && workStore.fallbackRouteParams.size > 0) {
|
|
3016
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3017
|
+
if (workUnitStore) {
|
|
3018
|
+
if (workUnitStore.type === "prerender") {
|
|
3019
|
+
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, expression));
|
|
3020
|
+
} else if (workUnitStore.type === "prerender-ppr") {
|
|
3021
|
+
postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
|
|
3022
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
3023
|
+
throwToInterruptStaticGeneration(expression, workStore, workUnitStore);
|
|
3024
|
+
}
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
var hasSuspenseRegex = /\n\s+at Suspense \(<anonymous>\)/;
|
|
3029
|
+
var hasMetadataRegex = new RegExp(`\\n\\s+at ${_metadataconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
|
|
3030
|
+
var hasViewportRegex = new RegExp(`\\n\\s+at ${_metadataconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
|
|
3031
|
+
var hasOutletRegex = new RegExp(`\\n\\s+at ${_metadataconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
3032
|
+
function trackAllowedDynamicAccess(route, componentStack, dynamicValidation, serverDynamic, clientDynamic) {
|
|
3033
|
+
if (hasOutletRegex.test(componentStack)) {
|
|
3034
|
+
return;
|
|
3035
|
+
} else if (hasMetadataRegex.test(componentStack)) {
|
|
3036
|
+
dynamicValidation.hasDynamicMetadata = true;
|
|
3037
|
+
return;
|
|
3038
|
+
} else if (hasViewportRegex.test(componentStack)) {
|
|
3039
|
+
dynamicValidation.hasDynamicViewport = true;
|
|
3040
|
+
return;
|
|
3041
|
+
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
3042
|
+
dynamicValidation.hasSuspendedDynamic = true;
|
|
3043
|
+
return;
|
|
3044
|
+
} else if (serverDynamic.syncDynamicErrorWithStack || clientDynamic.syncDynamicErrorWithStack) {
|
|
3045
|
+
dynamicValidation.hasSyncDynamicErrors = true;
|
|
3046
|
+
return;
|
|
3047
|
+
} else {
|
|
3048
|
+
const message = `Route "${route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`;
|
|
3049
|
+
const error = createErrorWithComponentStack(message, componentStack);
|
|
3050
|
+
dynamicValidation.dynamicErrors.push(error);
|
|
3051
|
+
return;
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
function createErrorWithComponentStack(message, componentStack) {
|
|
3055
|
+
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
3056
|
+
value: "E394",
|
|
3057
|
+
enumerable: false,
|
|
3058
|
+
configurable: true
|
|
3059
|
+
});
|
|
3060
|
+
error.stack = "Error: " + message + componentStack;
|
|
3061
|
+
return error;
|
|
3062
|
+
}
|
|
3063
|
+
function throwIfDisallowedDynamic(route, dynamicValidation, serverDynamic, clientDynamic) {
|
|
3064
|
+
let syncError;
|
|
3065
|
+
let syncExpression;
|
|
3066
|
+
let syncLogged;
|
|
3067
|
+
if (serverDynamic.syncDynamicErrorWithStack) {
|
|
3068
|
+
syncError = serverDynamic.syncDynamicErrorWithStack;
|
|
3069
|
+
syncExpression = serverDynamic.syncDynamicExpression;
|
|
3070
|
+
syncLogged = serverDynamic.syncDynamicLogged === true;
|
|
3071
|
+
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
3072
|
+
syncError = clientDynamic.syncDynamicErrorWithStack;
|
|
3073
|
+
syncExpression = clientDynamic.syncDynamicExpression;
|
|
3074
|
+
syncLogged = clientDynamic.syncDynamicLogged === true;
|
|
3075
|
+
} else {
|
|
3076
|
+
syncError = null;
|
|
3077
|
+
syncExpression = void 0;
|
|
3078
|
+
syncLogged = false;
|
|
3079
|
+
}
|
|
3080
|
+
if (dynamicValidation.hasSyncDynamicErrors && syncError) {
|
|
3081
|
+
if (!syncLogged) {
|
|
3082
|
+
console.error(syncError);
|
|
3083
|
+
}
|
|
3084
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
3085
|
+
}
|
|
3086
|
+
const dynamicErrors = dynamicValidation.dynamicErrors;
|
|
3087
|
+
if (dynamicErrors.length) {
|
|
3088
|
+
for (let i = 0; i < dynamicErrors.length; i++) {
|
|
3089
|
+
console.error(dynamicErrors[i]);
|
|
3090
|
+
}
|
|
3091
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
3092
|
+
}
|
|
3093
|
+
if (!dynamicValidation.hasSuspendedDynamic) {
|
|
3094
|
+
if (dynamicValidation.hasDynamicMetadata) {
|
|
3095
|
+
if (syncError) {
|
|
3096
|
+
console.error(syncError);
|
|
3097
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateMetadata\` that could not finish rendering before ${syncExpression} was used. Follow the instructions in the error for this expression to resolve.`), "__NEXT_ERROR_CODE", {
|
|
3098
|
+
value: "E608",
|
|
3099
|
+
enumerable: false,
|
|
3100
|
+
configurable: true
|
|
3101
|
+
});
|
|
3102
|
+
}
|
|
3103
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateMetadata\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`), "__NEXT_ERROR_CODE", {
|
|
3104
|
+
value: "E534",
|
|
3105
|
+
enumerable: false,
|
|
3106
|
+
configurable: true
|
|
3107
|
+
});
|
|
3108
|
+
} else if (dynamicValidation.hasDynamicViewport) {
|
|
3109
|
+
if (syncError) {
|
|
3110
|
+
console.error(syncError);
|
|
3111
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateViewport\` that could not finish rendering before ${syncExpression} was used. Follow the instructions in the error for this expression to resolve.`), "__NEXT_ERROR_CODE", {
|
|
3112
|
+
value: "E573",
|
|
3113
|
+
enumerable: false,
|
|
3114
|
+
configurable: true
|
|
3115
|
+
});
|
|
3116
|
+
}
|
|
3117
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateViewport\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`), "__NEXT_ERROR_CODE", {
|
|
3118
|
+
value: "E590",
|
|
3119
|
+
enumerable: false,
|
|
3120
|
+
configurable: true
|
|
3121
|
+
});
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
});
|
|
3127
|
+
|
|
3128
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js
|
|
3129
|
+
var require_after_task_async_storage_instance = __commonJS({
|
|
3130
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js"(exports) {
|
|
3131
|
+
"use strict";
|
|
3132
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3133
|
+
value: true
|
|
3134
|
+
});
|
|
3135
|
+
Object.defineProperty(exports, "afterTaskAsyncStorageInstance", {
|
|
3136
|
+
enumerable: true,
|
|
3137
|
+
get: function() {
|
|
3138
|
+
return afterTaskAsyncStorageInstance;
|
|
3139
|
+
}
|
|
3140
|
+
});
|
|
3141
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
3142
|
+
var afterTaskAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
3143
|
+
}
|
|
3144
|
+
});
|
|
3145
|
+
|
|
3146
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/after-task-async-storage.external.js
|
|
3147
|
+
var require_after_task_async_storage_external = __commonJS({
|
|
3148
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/app-render/after-task-async-storage.external.js"(exports) {
|
|
3149
|
+
"use strict";
|
|
3150
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3151
|
+
value: true
|
|
3152
|
+
});
|
|
3153
|
+
Object.defineProperty(exports, "afterTaskAsyncStorage", {
|
|
3154
|
+
enumerable: true,
|
|
3155
|
+
get: function() {
|
|
3156
|
+
return _aftertaskasyncstorageinstance.afterTaskAsyncStorageInstance;
|
|
3157
|
+
}
|
|
3158
|
+
});
|
|
3159
|
+
var _aftertaskasyncstorageinstance = require_after_task_async_storage_instance();
|
|
3160
|
+
}
|
|
3161
|
+
});
|
|
3162
|
+
|
|
3163
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/request/utils.js
|
|
3164
|
+
var require_utils2 = __commonJS({
|
|
3165
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/request/utils.js"(exports) {
|
|
3166
|
+
"use strict";
|
|
3167
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3168
|
+
value: true
|
|
3169
|
+
});
|
|
3170
|
+
function _export(target, all) {
|
|
3171
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3172
|
+
enumerable: true,
|
|
3173
|
+
get: all[name]
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3176
|
+
_export(exports, {
|
|
3177
|
+
isRequestAPICallableInsideAfter: function() {
|
|
3178
|
+
return isRequestAPICallableInsideAfter;
|
|
3179
|
+
},
|
|
3180
|
+
throwForSearchParamsAccessInUseCache: function() {
|
|
3181
|
+
return throwForSearchParamsAccessInUseCache;
|
|
3182
|
+
},
|
|
3183
|
+
throwWithStaticGenerationBailoutError: function() {
|
|
3184
|
+
return throwWithStaticGenerationBailoutError;
|
|
3185
|
+
},
|
|
3186
|
+
throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
|
|
3187
|
+
return throwWithStaticGenerationBailoutErrorWithDynamicError;
|
|
3188
|
+
}
|
|
3189
|
+
});
|
|
3190
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
3191
|
+
var _aftertaskasyncstorageexternal = require_after_task_async_storage_external();
|
|
3192
|
+
function throwWithStaticGenerationBailoutError(route, expression) {
|
|
3193
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3194
|
+
value: "E576",
|
|
3195
|
+
enumerable: false,
|
|
3196
|
+
configurable: true
|
|
3197
|
+
});
|
|
3198
|
+
}
|
|
3199
|
+
function throwWithStaticGenerationBailoutErrorWithDynamicError(route, expression) {
|
|
3200
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${route} with \`dynamic = "error"\` couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3201
|
+
value: "E543",
|
|
3202
|
+
enumerable: false,
|
|
3203
|
+
configurable: true
|
|
3204
|
+
});
|
|
3205
|
+
}
|
|
3206
|
+
function throwForSearchParamsAccessInUseCache(workStore) {
|
|
3207
|
+
const error = Object.defineProperty(new Error(`Route ${workStore.route} used "searchParams" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "searchParams" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
3208
|
+
value: "E634",
|
|
3209
|
+
enumerable: false,
|
|
3210
|
+
configurable: true
|
|
3211
|
+
});
|
|
3212
|
+
workStore.invalidUsageError ??= error;
|
|
3213
|
+
throw error;
|
|
3214
|
+
}
|
|
3215
|
+
function isRequestAPICallableInsideAfter() {
|
|
3216
|
+
const afterTaskStore = _aftertaskasyncstorageexternal.afterTaskAsyncStorage.getStore();
|
|
3217
|
+
return (afterTaskStore == null ? void 0 : afterTaskStore.rootTaskSpawnPhase) === "action";
|
|
3218
|
+
}
|
|
3219
|
+
}
|
|
3220
|
+
});
|
|
3221
|
+
|
|
3222
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/request/connection.js
|
|
3223
|
+
var require_connection = __commonJS({
|
|
3224
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/request/connection.js"(exports) {
|
|
3225
|
+
"use strict";
|
|
3226
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3227
|
+
value: true
|
|
3228
|
+
});
|
|
3229
|
+
Object.defineProperty(exports, "connection", {
|
|
3230
|
+
enumerable: true,
|
|
3231
|
+
get: function() {
|
|
3232
|
+
return connection;
|
|
3233
|
+
}
|
|
3234
|
+
});
|
|
3235
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
3236
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
3237
|
+
var _dynamicrendering = require_dynamic_rendering();
|
|
3238
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
3239
|
+
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
3240
|
+
var _utils = require_utils2();
|
|
3241
|
+
function connection() {
|
|
3242
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
3243
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3244
|
+
if (workStore) {
|
|
3245
|
+
if (workUnitStore && workUnitStore.phase === "after" && !(0, _utils.isRequestAPICallableInsideAfter)()) {
|
|
3246
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used "connection" inside "after(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but "after(...)" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
|
|
3247
|
+
value: "E186",
|
|
3248
|
+
enumerable: false,
|
|
3249
|
+
configurable: true
|
|
3250
|
+
});
|
|
3251
|
+
}
|
|
3252
|
+
if (workStore.forceStatic) {
|
|
3253
|
+
return Promise.resolve(void 0);
|
|
3254
|
+
}
|
|
3255
|
+
if (workUnitStore) {
|
|
3256
|
+
if (workUnitStore.type === "cache") {
|
|
3257
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used "connection" inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
3258
|
+
value: "E111",
|
|
3259
|
+
enumerable: false,
|
|
3260
|
+
configurable: true
|
|
3261
|
+
});
|
|
3262
|
+
} else if (workUnitStore.type === "unstable-cache") {
|
|
3263
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used "connection" inside a function cached with "unstable_cache(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
3264
|
+
value: "E1",
|
|
3265
|
+
enumerable: false,
|
|
3266
|
+
configurable: true
|
|
3267
|
+
});
|
|
3268
|
+
}
|
|
3269
|
+
}
|
|
3270
|
+
if (workStore.dynamicShouldError) {
|
|
3271
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${workStore.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3272
|
+
value: "E562",
|
|
3273
|
+
enumerable: false,
|
|
3274
|
+
configurable: true
|
|
3275
|
+
});
|
|
3276
|
+
}
|
|
3277
|
+
if (workUnitStore) {
|
|
3278
|
+
if (workUnitStore.type === "prerender") {
|
|
3279
|
+
return (0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, "`connection()`");
|
|
3280
|
+
} else if (workUnitStore.type === "prerender-ppr") {
|
|
3281
|
+
(0, _dynamicrendering.postponeWithTracking)(workStore.route, "connection", workUnitStore.dynamicTracking);
|
|
3282
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
3283
|
+
(0, _dynamicrendering.throwToInterruptStaticGeneration)("connection", workStore, workUnitStore);
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
(0, _dynamicrendering.trackDynamicDataInDynamicRender)(workStore, workUnitStore);
|
|
3287
|
+
}
|
|
3288
|
+
return Promise.resolve(void 0);
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
});
|
|
3292
|
+
|
|
3293
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/invariant-error.js
|
|
3294
|
+
var require_invariant_error = __commonJS({
|
|
3295
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/invariant-error.js"(exports) {
|
|
3296
|
+
"use strict";
|
|
3297
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3298
|
+
value: true
|
|
3299
|
+
});
|
|
3300
|
+
Object.defineProperty(exports, "InvariantError", {
|
|
3301
|
+
enumerable: true,
|
|
3302
|
+
get: function() {
|
|
3303
|
+
return InvariantError;
|
|
3304
|
+
}
|
|
3305
|
+
});
|
|
3306
|
+
var InvariantError = class extends Error {
|
|
3307
|
+
constructor(message, options) {
|
|
3308
|
+
super("Invariant: " + (message.endsWith(".") ? message : message + ".") + " This is a bug in Next.js.", options);
|
|
3309
|
+
this.name = "InvariantError";
|
|
3310
|
+
}
|
|
3311
|
+
};
|
|
3312
|
+
}
|
|
3313
|
+
});
|
|
3314
|
+
|
|
3315
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/utils/reflect-utils.js
|
|
3316
|
+
var require_reflect_utils = __commonJS({
|
|
3317
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/utils/reflect-utils.js"(exports) {
|
|
3318
|
+
"use strict";
|
|
3319
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3320
|
+
value: true
|
|
3321
|
+
});
|
|
3322
|
+
function _export(target, all) {
|
|
3323
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3324
|
+
enumerable: true,
|
|
3325
|
+
get: all[name]
|
|
3326
|
+
});
|
|
3327
|
+
}
|
|
3328
|
+
_export(exports, {
|
|
3329
|
+
describeHasCheckingStringProperty: function() {
|
|
3330
|
+
return describeHasCheckingStringProperty;
|
|
3331
|
+
},
|
|
3332
|
+
describeStringPropertyAccess: function() {
|
|
3333
|
+
return describeStringPropertyAccess;
|
|
3334
|
+
},
|
|
3335
|
+
wellKnownProperties: function() {
|
|
3336
|
+
return wellKnownProperties;
|
|
3337
|
+
}
|
|
3338
|
+
});
|
|
3339
|
+
var isDefinitelyAValidIdentifier = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
3340
|
+
function describeStringPropertyAccess(target, prop) {
|
|
3341
|
+
if (isDefinitelyAValidIdentifier.test(prop)) {
|
|
3342
|
+
return "`" + target + "." + prop + "`";
|
|
3343
|
+
}
|
|
3344
|
+
return "`" + target + "[" + JSON.stringify(prop) + "]`";
|
|
3345
|
+
}
|
|
3346
|
+
function describeHasCheckingStringProperty(target, prop) {
|
|
3347
|
+
const stringifiedProp = JSON.stringify(prop);
|
|
3348
|
+
return "`Reflect.has(" + target + ", " + stringifiedProp + ")`, `" + stringifiedProp + " in " + target + "`, or similar";
|
|
3349
|
+
}
|
|
3350
|
+
var wellKnownProperties = /* @__PURE__ */ new Set([
|
|
3351
|
+
"hasOwnProperty",
|
|
3352
|
+
"isPrototypeOf",
|
|
3353
|
+
"propertyIsEnumerable",
|
|
3354
|
+
"toString",
|
|
3355
|
+
"valueOf",
|
|
3356
|
+
"toLocaleString",
|
|
3357
|
+
// Promise prototype
|
|
3358
|
+
// fallthrough
|
|
3359
|
+
"then",
|
|
3360
|
+
"catch",
|
|
3361
|
+
"finally",
|
|
3362
|
+
// React Promise extension
|
|
3363
|
+
// fallthrough
|
|
3364
|
+
"status",
|
|
3365
|
+
// React introspection
|
|
3366
|
+
"displayName",
|
|
3367
|
+
// Common tested properties
|
|
3368
|
+
// fallthrough
|
|
3369
|
+
"toJSON",
|
|
3370
|
+
"$$typeof",
|
|
3371
|
+
"__esModule"
|
|
3372
|
+
]);
|
|
3373
|
+
}
|
|
3374
|
+
});
|
|
3375
|
+
|
|
3376
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/request/root-params.js
|
|
3377
|
+
var require_root_params = __commonJS({
|
|
3378
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/request/root-params.js"(exports) {
|
|
3379
|
+
"use strict";
|
|
3380
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3381
|
+
value: true
|
|
3382
|
+
});
|
|
3383
|
+
Object.defineProperty(exports, "unstable_rootParams", {
|
|
3384
|
+
enumerable: true,
|
|
3385
|
+
get: function() {
|
|
3386
|
+
return unstable_rootParams;
|
|
3387
|
+
}
|
|
3388
|
+
});
|
|
3389
|
+
var _invarianterror = require_invariant_error();
|
|
3390
|
+
var _dynamicrendering = require_dynamic_rendering();
|
|
3391
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
3392
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
3393
|
+
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
3394
|
+
var _reflectutils = require_reflect_utils();
|
|
3395
|
+
var CachedParams = /* @__PURE__ */ new WeakMap();
|
|
3396
|
+
async function unstable_rootParams() {
|
|
3397
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
3398
|
+
if (!workStore) {
|
|
3399
|
+
throw Object.defineProperty(new _invarianterror.InvariantError("Missing workStore in unstable_rootParams"), "__NEXT_ERROR_CODE", {
|
|
3400
|
+
value: "E615",
|
|
3401
|
+
enumerable: false,
|
|
3402
|
+
configurable: true
|
|
3403
|
+
});
|
|
3404
|
+
}
|
|
3405
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3406
|
+
if (!workUnitStore) {
|
|
3407
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used \`unstable_rootParams()\` in Pages Router. This API is only available within App Router.`), "__NEXT_ERROR_CODE", {
|
|
3408
|
+
value: "E641",
|
|
3409
|
+
enumerable: false,
|
|
3410
|
+
configurable: true
|
|
3411
|
+
});
|
|
3412
|
+
}
|
|
3413
|
+
switch (workUnitStore.type) {
|
|
3414
|
+
case "unstable-cache":
|
|
3415
|
+
case "cache": {
|
|
3416
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used \`unstable_rootParams()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.`), "__NEXT_ERROR_CODE", {
|
|
3417
|
+
value: "E642",
|
|
3418
|
+
enumerable: false,
|
|
3419
|
+
configurable: true
|
|
3420
|
+
});
|
|
3421
|
+
}
|
|
3422
|
+
case "prerender":
|
|
3423
|
+
case "prerender-ppr":
|
|
3424
|
+
case "prerender-legacy":
|
|
3425
|
+
return createPrerenderRootParams(workUnitStore.rootParams, workStore, workUnitStore);
|
|
3426
|
+
default:
|
|
3427
|
+
return Promise.resolve(workUnitStore.rootParams);
|
|
3428
|
+
}
|
|
3429
|
+
}
|
|
3430
|
+
function createPrerenderRootParams(underlyingParams, workStore, prerenderStore) {
|
|
3431
|
+
const fallbackParams = workStore.fallbackRouteParams;
|
|
3432
|
+
if (fallbackParams) {
|
|
3433
|
+
let hasSomeFallbackParams = false;
|
|
3434
|
+
for (const key in underlyingParams) {
|
|
3435
|
+
if (fallbackParams.has(key)) {
|
|
3436
|
+
hasSomeFallbackParams = true;
|
|
3437
|
+
break;
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
if (hasSomeFallbackParams) {
|
|
3441
|
+
if (prerenderStore.type === "prerender") {
|
|
3442
|
+
const cachedParams = CachedParams.get(underlyingParams);
|
|
3443
|
+
if (cachedParams) {
|
|
3444
|
+
return cachedParams;
|
|
3445
|
+
}
|
|
3446
|
+
const promise = (0, _dynamicrenderingutils.makeHangingPromise)(prerenderStore.renderSignal, "`unstable_rootParams`");
|
|
3447
|
+
CachedParams.set(underlyingParams, promise);
|
|
3448
|
+
return promise;
|
|
3449
|
+
}
|
|
3450
|
+
return makeErroringRootParams(underlyingParams, fallbackParams, workStore, prerenderStore);
|
|
3451
|
+
}
|
|
3452
|
+
}
|
|
3453
|
+
return Promise.resolve(underlyingParams);
|
|
3454
|
+
}
|
|
3455
|
+
function makeErroringRootParams(underlyingParams, fallbackParams, workStore, prerenderStore) {
|
|
3456
|
+
const cachedParams = CachedParams.get(underlyingParams);
|
|
3457
|
+
if (cachedParams) {
|
|
3458
|
+
return cachedParams;
|
|
3459
|
+
}
|
|
3460
|
+
const augmentedUnderlying = {
|
|
3461
|
+
...underlyingParams
|
|
3462
|
+
};
|
|
3463
|
+
const promise = Promise.resolve(augmentedUnderlying);
|
|
3464
|
+
CachedParams.set(underlyingParams, promise);
|
|
3465
|
+
Object.keys(underlyingParams).forEach((prop) => {
|
|
3466
|
+
if (_reflectutils.wellKnownProperties.has(prop)) {
|
|
3467
|
+
} else {
|
|
3468
|
+
if (fallbackParams.has(prop)) {
|
|
3469
|
+
Object.defineProperty(augmentedUnderlying, prop, {
|
|
3470
|
+
get() {
|
|
3471
|
+
const expression = (0, _reflectutils.describeStringPropertyAccess)("unstable_rootParams", prop);
|
|
3472
|
+
if (prerenderStore.type === "prerender-ppr") {
|
|
3473
|
+
(0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, prerenderStore.dynamicTracking);
|
|
3474
|
+
} else {
|
|
3475
|
+
(0, _dynamicrendering.throwToInterruptStaticGeneration)(expression, workStore, prerenderStore);
|
|
3476
|
+
}
|
|
3477
|
+
},
|
|
3478
|
+
enumerable: true
|
|
3479
|
+
});
|
|
3480
|
+
} else {
|
|
3481
|
+
;
|
|
3482
|
+
promise[prop] = underlyingParams[prop];
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
});
|
|
3486
|
+
return promise;
|
|
3487
|
+
}
|
|
3488
|
+
}
|
|
3489
|
+
});
|
|
3490
|
+
|
|
3491
|
+
// ../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/server.js
|
|
3492
|
+
var require_server = __commonJS({
|
|
3493
|
+
"../node_modules/.pnpm/next@15.3.4_@babel+core@7.28.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/server.js"(exports, module) {
|
|
3494
|
+
"use strict";
|
|
3495
|
+
var serverExports = {
|
|
3496
|
+
NextRequest: require_request().NextRequest,
|
|
3497
|
+
NextResponse: require_response().NextResponse,
|
|
3498
|
+
ImageResponse: require_image_response().ImageResponse,
|
|
3499
|
+
userAgentFromString: require_user_agent().userAgentFromString,
|
|
3500
|
+
userAgent: require_user_agent().userAgent,
|
|
3501
|
+
URLPattern: require_url_pattern().URLPattern,
|
|
3502
|
+
after: require_after2().after,
|
|
3503
|
+
connection: require_connection().connection,
|
|
3504
|
+
unstable_rootParams: require_root_params().unstable_rootParams
|
|
3505
|
+
};
|
|
3506
|
+
module.exports = serverExports;
|
|
3507
|
+
exports.NextRequest = serverExports.NextRequest;
|
|
3508
|
+
exports.NextResponse = serverExports.NextResponse;
|
|
3509
|
+
exports.ImageResponse = serverExports.ImageResponse;
|
|
3510
|
+
exports.userAgentFromString = serverExports.userAgentFromString;
|
|
3511
|
+
exports.userAgent = serverExports.userAgent;
|
|
3512
|
+
exports.URLPattern = serverExports.URLPattern;
|
|
3513
|
+
exports.after = serverExports.after;
|
|
3514
|
+
exports.connection = serverExports.connection;
|
|
3515
|
+
exports.unstable_rootParams = serverExports.unstable_rootParams;
|
|
3516
|
+
}
|
|
3517
|
+
});
|
|
19
3518
|
|
|
20
3519
|
// src/libraries/backend/next.ts
|
|
21
3520
|
import { findRoute } from "rou3";
|
|
22
|
-
|
|
3521
|
+
var import_server = __toESM(require_server());
|
|
23
3522
|
function autumnHandler(options) {
|
|
24
3523
|
const router = createRouterWithOptions();
|
|
25
3524
|
async function handler(request, response) {
|
|
@@ -29,7 +3528,7 @@ function autumnHandler(options) {
|
|
|
29
3528
|
if (isPagesRouter) {
|
|
30
3529
|
return response.status(resError.statusCode).json(resError);
|
|
31
3530
|
} else {
|
|
32
|
-
return NextResponse.json(resError, { status: resError.statusCode });
|
|
3531
|
+
return import_server.NextResponse.json(resError, { status: resError.statusCode });
|
|
33
3532
|
}
|
|
34
3533
|
}
|
|
35
3534
|
const autumn = new Autumn({
|
|
@@ -40,7 +3539,7 @@ function autumnHandler(options) {
|
|
|
40
3539
|
if (isPagesRouter) {
|
|
41
3540
|
return response.status(500).json(resError);
|
|
42
3541
|
} else {
|
|
43
|
-
return NextResponse.json(resError, { status: 500 });
|
|
3542
|
+
return import_server.NextResponse.json(resError, { status: 500 });
|
|
44
3543
|
}
|
|
45
3544
|
}
|
|
46
3545
|
const method = request.method;
|
|
@@ -57,7 +3556,7 @@ function autumnHandler(options) {
|
|
|
57
3556
|
if (isPagesRouter) {
|
|
58
3557
|
return response.status(404).json({ error: "Not found" });
|
|
59
3558
|
} else {
|
|
60
|
-
return NextResponse.json({ error: "Not found" }, { status: 404 });
|
|
3559
|
+
return import_server.NextResponse.json({ error: "Not found" }, { status: 404 });
|
|
61
3560
|
}
|
|
62
3561
|
}
|
|
63
3562
|
const { data, params: pathParams } = match;
|
|
@@ -80,7 +3579,7 @@ function autumnHandler(options) {
|
|
|
80
3579
|
if (isPagesRouter) {
|
|
81
3580
|
return response.status(result.statusCode).json(result.body);
|
|
82
3581
|
} else {
|
|
83
|
-
return NextResponse.json(result.body, { status: result.statusCode });
|
|
3582
|
+
return import_server.NextResponse.json(result.body, { status: result.statusCode });
|
|
84
3583
|
}
|
|
85
3584
|
}
|
|
86
3585
|
return {
|