@preprio/prepr-nextjs 2.0.2 → 2.0.3
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/chunk-26CXDAG7.mjs +72 -0
- package/dist/chunk-26CXDAG7.mjs.map +1 -0
- package/dist/chunk-2BRZNIOK.js +2 -0
- package/dist/chunk-2BRZNIOK.js.map +1 -0
- package/dist/chunk-32XGP2RS.mjs +4218 -0
- package/dist/chunk-32XGP2RS.mjs.map +1 -0
- package/dist/chunk-6FNC3XMI.js +45 -0
- package/dist/chunk-C6L3X6KZ.js +201 -0
- package/dist/chunk-C6L3X6KZ.js.map +1 -0
- package/dist/chunk-DI26GYQY.js +201 -0
- package/dist/chunk-IL3U74YL.js +2 -0
- package/dist/chunk-IL3U74YL.js.map +1 -0
- package/dist/chunk-J3Y65EMB.js +2 -0
- package/dist/chunk-J3Y65EMB.js.map +1 -0
- package/dist/chunk-JPRRZPBL.js +43 -0
- package/dist/chunk-JPRRZPBL.js.map +1 -0
- package/dist/chunk-MKSF2TOK.js +2 -0
- package/dist/chunk-MKSF2TOK.js.map +1 -0
- package/dist/chunk-MZGTV4KW.js +2 -0
- package/dist/chunk-MZGTV4KW.js.map +1 -0
- package/dist/chunk-NWRQFDMF.js +2 -0
- package/dist/chunk-NWRQFDMF.js.map +1 -0
- package/dist/chunk-QZTUT4DH.js +2 -0
- package/dist/chunk-QZTUT4DH.js.map +1 -0
- package/dist/middleware/index.cjs +1 -1
- package/dist/middleware/index.cjs.map +1 -1
- package/dist/middleware/index.js +1 -1
- package/dist/middleware/index.mjs +4 -0
- package/dist/middleware/index.mjs.map +1 -0
- package/dist/pages/react/index.cjs +8 -0
- package/dist/pages/react/index.cjs.map +1 -0
- package/dist/pages/react/index.d.cts +99 -0
- package/dist/pages/react/index.d.ts +99 -0
- package/dist/pages/react/index.js +8 -0
- package/dist/pages/react/index.js.map +1 -0
- package/dist/pages/server/index.cjs +7 -0
- package/dist/pages/server/index.cjs.map +1 -0
- package/dist/pages/server/index.d.cts +83 -0
- package/dist/pages/server/index.d.ts +83 -0
- package/dist/pages/server/index.js +7 -0
- package/dist/pages/server/index.js.map +1 -0
- package/dist/react/index.mjs +10179 -0
- package/dist/react/index.mjs.map +1 -0
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.mjs +1569 -0
- package/dist/server/index.mjs.map +1 -0
- package/dist/types/index.mjs +3 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/utils/index.mjs +3307 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,4218 @@
|
|
|
1
|
+
import { __commonJS, __spreadProps, __spreadValues, __require, __async, __toESM } from './chunk-26CXDAG7.mjs';
|
|
2
|
+
|
|
3
|
+
// node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/headers.js
|
|
4
|
+
var require_headers = __commonJS({
|
|
5
|
+
"node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/headers.js"(exports, module) {
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export2 = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var headers_exports = {};
|
|
24
|
+
__export2(headers_exports, {
|
|
25
|
+
CITY_HEADER_NAME: () => CITY_HEADER_NAME,
|
|
26
|
+
COUNTRY_HEADER_NAME: () => COUNTRY_HEADER_NAME,
|
|
27
|
+
EMOJI_FLAG_UNICODE_STARTING_POSITION: () => EMOJI_FLAG_UNICODE_STARTING_POSITION,
|
|
28
|
+
IP_HEADER_NAME: () => IP_HEADER_NAME,
|
|
29
|
+
LATITUDE_HEADER_NAME: () => LATITUDE_HEADER_NAME,
|
|
30
|
+
LONGITUDE_HEADER_NAME: () => LONGITUDE_HEADER_NAME,
|
|
31
|
+
POSTAL_CODE_HEADER_NAME: () => POSTAL_CODE_HEADER_NAME,
|
|
32
|
+
REGION_HEADER_NAME: () => REGION_HEADER_NAME,
|
|
33
|
+
REQUEST_ID_HEADER_NAME: () => REQUEST_ID_HEADER_NAME,
|
|
34
|
+
geolocation: () => geolocation2,
|
|
35
|
+
ipAddress: () => ipAddress3
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(headers_exports);
|
|
38
|
+
var CITY_HEADER_NAME = "x-vercel-ip-city";
|
|
39
|
+
var COUNTRY_HEADER_NAME = "x-vercel-ip-country";
|
|
40
|
+
var IP_HEADER_NAME = "x-real-ip";
|
|
41
|
+
var LATITUDE_HEADER_NAME = "x-vercel-ip-latitude";
|
|
42
|
+
var LONGITUDE_HEADER_NAME = "x-vercel-ip-longitude";
|
|
43
|
+
var REGION_HEADER_NAME = "x-vercel-ip-country-region";
|
|
44
|
+
var POSTAL_CODE_HEADER_NAME = "x-vercel-ip-postal-code";
|
|
45
|
+
var REQUEST_ID_HEADER_NAME = "x-vercel-id";
|
|
46
|
+
var EMOJI_FLAG_UNICODE_STARTING_POSITION = 127397;
|
|
47
|
+
function getHeader(headers, key) {
|
|
48
|
+
var _a;
|
|
49
|
+
return (_a = headers.get(key)) != null ? _a : void 0;
|
|
50
|
+
}
|
|
51
|
+
function getHeaderWithDecode(request, key) {
|
|
52
|
+
const header = getHeader(request.headers, key);
|
|
53
|
+
return header ? decodeURIComponent(header) : void 0;
|
|
54
|
+
}
|
|
55
|
+
function getFlag(countryCode) {
|
|
56
|
+
const regex = new RegExp("^[A-Z]{2}$").test(countryCode);
|
|
57
|
+
if (!countryCode || !regex)
|
|
58
|
+
return void 0;
|
|
59
|
+
return String.fromCodePoint(
|
|
60
|
+
...countryCode.split("").map((char) => EMOJI_FLAG_UNICODE_STARTING_POSITION + char.charCodeAt(0))
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
function ipAddress3(input) {
|
|
64
|
+
const headers = "headers" in input ? input.headers : input;
|
|
65
|
+
return getHeader(headers, IP_HEADER_NAME);
|
|
66
|
+
}
|
|
67
|
+
function getRegionFromRequestId(requestId) {
|
|
68
|
+
if (!requestId) {
|
|
69
|
+
return "dev1";
|
|
70
|
+
}
|
|
71
|
+
return requestId.split(":")[0];
|
|
72
|
+
}
|
|
73
|
+
function geolocation2(request) {
|
|
74
|
+
return {
|
|
75
|
+
// city name may be encoded to support multi-byte characters
|
|
76
|
+
city: getHeaderWithDecode(request, CITY_HEADER_NAME),
|
|
77
|
+
country: getHeader(request.headers, COUNTRY_HEADER_NAME),
|
|
78
|
+
flag: getFlag(getHeader(request.headers, COUNTRY_HEADER_NAME)),
|
|
79
|
+
countryRegion: getHeader(request.headers, REGION_HEADER_NAME),
|
|
80
|
+
region: getRegionFromRequestId(
|
|
81
|
+
getHeader(request.headers, REQUEST_ID_HEADER_NAME)
|
|
82
|
+
),
|
|
83
|
+
latitude: getHeader(request.headers, LATITUDE_HEADER_NAME),
|
|
84
|
+
longitude: getHeader(request.headers, LONGITUDE_HEADER_NAME),
|
|
85
|
+
postalCode: getHeader(request.headers, POSTAL_CODE_HEADER_NAME)
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
// node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/get-env.js
|
|
92
|
+
var require_get_env = __commonJS({
|
|
93
|
+
"node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/get-env.js"(exports, module) {
|
|
94
|
+
var __defProp = Object.defineProperty;
|
|
95
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
96
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
97
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
98
|
+
var __export2 = (target, all) => {
|
|
99
|
+
for (var name in all)
|
|
100
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
101
|
+
};
|
|
102
|
+
var __copyProps = (to, from, except, desc) => {
|
|
103
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
104
|
+
for (let key of __getOwnPropNames(from))
|
|
105
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
106
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
107
|
+
}
|
|
108
|
+
return to;
|
|
109
|
+
};
|
|
110
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
111
|
+
var get_env_exports = {};
|
|
112
|
+
__export2(get_env_exports, {
|
|
113
|
+
getEnv: () => getEnv2
|
|
114
|
+
});
|
|
115
|
+
module.exports = __toCommonJS(get_env_exports);
|
|
116
|
+
var getEnv2 = (env = process.env) => ({
|
|
117
|
+
/**
|
|
118
|
+
* An indicator to show that System Environment Variables have been exposed to your project's Deployments.
|
|
119
|
+
* @example "1"
|
|
120
|
+
*/
|
|
121
|
+
VERCEL: get(env, "VERCEL"),
|
|
122
|
+
/**
|
|
123
|
+
* An indicator that the code is running in a Continuous Integration environment.
|
|
124
|
+
* @example "1"
|
|
125
|
+
*/
|
|
126
|
+
CI: get(env, "CI"),
|
|
127
|
+
/**
|
|
128
|
+
* The Environment that the app is deployed and running on.
|
|
129
|
+
* @example "production"
|
|
130
|
+
*/
|
|
131
|
+
VERCEL_ENV: get(env, "VERCEL_ENV"),
|
|
132
|
+
/**
|
|
133
|
+
* The domain name of the generated deployment URL. The value does not include the protocol scheme https://.
|
|
134
|
+
* NOTE: This Variable cannot be used in conjunction with Standard Deployment Protection.
|
|
135
|
+
* @example "*.vercel.app"
|
|
136
|
+
*/
|
|
137
|
+
VERCEL_URL: get(env, "VERCEL_URL"),
|
|
138
|
+
/**
|
|
139
|
+
* The domain name of the generated Git branch URL. The value does not include the protocol scheme https://.
|
|
140
|
+
* @example "*-git-*.vercel.app"
|
|
141
|
+
*/
|
|
142
|
+
VERCEL_BRANCH_URL: get(env, "VERCEL_BRANCH_URL"),
|
|
143
|
+
/**
|
|
144
|
+
* A production domain name of the project. This is useful to reliably generate links that point to production such as OG-image URLs.
|
|
145
|
+
* The value does not include the protocol scheme https://.
|
|
146
|
+
* @example "myproject.vercel.app"
|
|
147
|
+
*/
|
|
148
|
+
VERCEL_PROJECT_PRODUCTION_URL: get(env, "VERCEL_PROJECT_PRODUCTION_URL"),
|
|
149
|
+
/**
|
|
150
|
+
* The ID of the Region where the app is running.
|
|
151
|
+
*
|
|
152
|
+
* Possible values:
|
|
153
|
+
* - arn1 (Stockholm, Sweden)
|
|
154
|
+
* - bom1 (Mumbai, India)
|
|
155
|
+
* - cdg1 (Paris, France)
|
|
156
|
+
* - cle1 (Cleveland, USA)
|
|
157
|
+
* - cpt1 (Cape Town, South Africa)
|
|
158
|
+
* - dub1 (Dublin, Ireland)
|
|
159
|
+
* - fra1 (Frankfurt, Germany)
|
|
160
|
+
* - gru1 (São Paulo, Brazil)
|
|
161
|
+
* - hkg1 (Hong Kong)
|
|
162
|
+
* - hnd1 (Tokyo, Japan)
|
|
163
|
+
* - iad1 (Washington, D.C., USA)
|
|
164
|
+
* - icn1 (Seoul, South Korea)
|
|
165
|
+
* - kix1 (Osaka, Japan)
|
|
166
|
+
* - lhr1 (London, United Kingdom)
|
|
167
|
+
* - pdx1 (Portland, USA)
|
|
168
|
+
* - sfo1 (San Francisco, USA)
|
|
169
|
+
* - sin1 (Singapore)
|
|
170
|
+
* - syd1 (Sydney, Australia)
|
|
171
|
+
* - dev1 (Development Region)
|
|
172
|
+
*
|
|
173
|
+
* @example "iad1"
|
|
174
|
+
*/
|
|
175
|
+
VERCEL_REGION: get(env, "VERCEL_REGION"),
|
|
176
|
+
/**
|
|
177
|
+
* The unique identifier for the deployment, which can be used to implement Skew Protection.
|
|
178
|
+
* @example "dpl_7Gw5ZMBpQA8h9GF832KGp7nwbuh3"
|
|
179
|
+
*/
|
|
180
|
+
VERCEL_DEPLOYMENT_ID: get(env, "VERCEL_DEPLOYMENT_ID"),
|
|
181
|
+
/**
|
|
182
|
+
* When Skew Protection is enabled in Project Settings, this value is set to 1.
|
|
183
|
+
* @example "1"
|
|
184
|
+
*/
|
|
185
|
+
VERCEL_SKEW_PROTECTION_ENABLED: get(env, "VERCEL_SKEW_PROTECTION_ENABLED"),
|
|
186
|
+
/**
|
|
187
|
+
* The Protection Bypass for Automation value, if the secret has been generated in the project's Deployment Protection settings.
|
|
188
|
+
*/
|
|
189
|
+
VERCEL_AUTOMATION_BYPASS_SECRET: get(env, "VERCEL_AUTOMATION_BYPASS_SECRET"),
|
|
190
|
+
/**
|
|
191
|
+
* The Git Provider the deployment is triggered from.
|
|
192
|
+
* @example "github"
|
|
193
|
+
*/
|
|
194
|
+
VERCEL_GIT_PROVIDER: get(env, "VERCEL_GIT_PROVIDER"),
|
|
195
|
+
/**
|
|
196
|
+
* The origin repository the deployment is triggered from.
|
|
197
|
+
* @example "my-site"
|
|
198
|
+
*/
|
|
199
|
+
VERCEL_GIT_REPO_SLUG: get(env, "VERCEL_GIT_REPO_SLUG"),
|
|
200
|
+
/**
|
|
201
|
+
* The account that owns the repository the deployment is triggered from.
|
|
202
|
+
* @example "acme"
|
|
203
|
+
*/
|
|
204
|
+
VERCEL_GIT_REPO_OWNER: get(env, "VERCEL_GIT_REPO_OWNER"),
|
|
205
|
+
/**
|
|
206
|
+
* The ID of the repository the deployment is triggered from.
|
|
207
|
+
* @example "117716146"
|
|
208
|
+
*/
|
|
209
|
+
VERCEL_GIT_REPO_ID: get(env, "VERCEL_GIT_REPO_ID"),
|
|
210
|
+
/**
|
|
211
|
+
* The git branch of the commit the deployment was triggered by.
|
|
212
|
+
* @example "improve-about-page"
|
|
213
|
+
*/
|
|
214
|
+
VERCEL_GIT_COMMIT_REF: get(env, "VERCEL_GIT_COMMIT_REF"),
|
|
215
|
+
/**
|
|
216
|
+
* The git SHA of the commit the deployment was triggered by.
|
|
217
|
+
* @example "fa1eade47b73733d6312d5abfad33ce9e4068081"
|
|
218
|
+
*/
|
|
219
|
+
VERCEL_GIT_COMMIT_SHA: get(env, "VERCEL_GIT_COMMIT_SHA"),
|
|
220
|
+
/**
|
|
221
|
+
* The message attached to the commit the deployment was triggered by.
|
|
222
|
+
* @example "Update about page"
|
|
223
|
+
*/
|
|
224
|
+
VERCEL_GIT_COMMIT_MESSAGE: get(env, "VERCEL_GIT_COMMIT_MESSAGE"),
|
|
225
|
+
/**
|
|
226
|
+
* The username attached to the author of the commit that the project was deployed by.
|
|
227
|
+
* @example "johndoe"
|
|
228
|
+
*/
|
|
229
|
+
VERCEL_GIT_COMMIT_AUTHOR_LOGIN: get(env, "VERCEL_GIT_COMMIT_AUTHOR_LOGIN"),
|
|
230
|
+
/**
|
|
231
|
+
* The name attached to the author of the commit that the project was deployed by.
|
|
232
|
+
* @example "John Doe"
|
|
233
|
+
*/
|
|
234
|
+
VERCEL_GIT_COMMIT_AUTHOR_NAME: get(env, "VERCEL_GIT_COMMIT_AUTHOR_NAME"),
|
|
235
|
+
/**
|
|
236
|
+
* The git SHA of the last successful deployment for the project and branch.
|
|
237
|
+
* NOTE: This Variable is only exposed when an Ignored Build Step is provided.
|
|
238
|
+
* @example "fa1eade47b73733d6312d5abfad33ce9e4068080"
|
|
239
|
+
*/
|
|
240
|
+
VERCEL_GIT_PREVIOUS_SHA: get(env, "VERCEL_GIT_PREVIOUS_SHA"),
|
|
241
|
+
/**
|
|
242
|
+
* The pull request id the deployment was triggered by. If a deployment is created on a branch before a pull request is made, this value will be an empty string.
|
|
243
|
+
* @example "23"
|
|
244
|
+
*/
|
|
245
|
+
VERCEL_GIT_PULL_REQUEST_ID: get(env, "VERCEL_GIT_PULL_REQUEST_ID")
|
|
246
|
+
});
|
|
247
|
+
var get = (env, key) => {
|
|
248
|
+
const value = env[key];
|
|
249
|
+
return value === "" ? void 0 : value;
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
// node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/get-context.js
|
|
255
|
+
var require_get_context = __commonJS({
|
|
256
|
+
"node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/get-context.js"(exports, module) {
|
|
257
|
+
var __defProp = Object.defineProperty;
|
|
258
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
259
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
260
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
261
|
+
var __export2 = (target, all) => {
|
|
262
|
+
for (var name in all)
|
|
263
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
264
|
+
};
|
|
265
|
+
var __copyProps = (to, from, except, desc) => {
|
|
266
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
267
|
+
for (let key of __getOwnPropNames(from))
|
|
268
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
269
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
270
|
+
}
|
|
271
|
+
return to;
|
|
272
|
+
};
|
|
273
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
274
|
+
var get_context_exports = {};
|
|
275
|
+
__export2(get_context_exports, {
|
|
276
|
+
SYMBOL_FOR_REQ_CONTEXT: () => SYMBOL_FOR_REQ_CONTEXT,
|
|
277
|
+
getContext: () => getContext
|
|
278
|
+
});
|
|
279
|
+
module.exports = __toCommonJS(get_context_exports);
|
|
280
|
+
var SYMBOL_FOR_REQ_CONTEXT = Symbol.for("@vercel/request-context");
|
|
281
|
+
function getContext() {
|
|
282
|
+
var _a, _b, _c;
|
|
283
|
+
const fromSymbol = globalThis;
|
|
284
|
+
return (_c = (_b = (_a = fromSymbol[SYMBOL_FOR_REQ_CONTEXT]) == null ? void 0 : _a.get) == null ? void 0 : _b.call(_a)) != null ? _c : {};
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
// node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/wait-until.js
|
|
290
|
+
var require_wait_until = __commonJS({
|
|
291
|
+
"node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/wait-until.js"(exports, module) {
|
|
292
|
+
var __defProp = Object.defineProperty;
|
|
293
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
294
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
295
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
296
|
+
var __export2 = (target, all) => {
|
|
297
|
+
for (var name in all)
|
|
298
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
299
|
+
};
|
|
300
|
+
var __copyProps = (to, from, except, desc) => {
|
|
301
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
302
|
+
for (let key of __getOwnPropNames(from))
|
|
303
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
304
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
305
|
+
}
|
|
306
|
+
return to;
|
|
307
|
+
};
|
|
308
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
309
|
+
var wait_until_exports = {};
|
|
310
|
+
__export2(wait_until_exports, {
|
|
311
|
+
waitUntil: () => waitUntil2
|
|
312
|
+
});
|
|
313
|
+
module.exports = __toCommonJS(wait_until_exports);
|
|
314
|
+
var import_get_context = require_get_context();
|
|
315
|
+
var waitUntil2 = (promise) => {
|
|
316
|
+
var _a, _b;
|
|
317
|
+
if (promise === null || typeof promise !== "object" || typeof promise.then !== "function") {
|
|
318
|
+
throw new TypeError(
|
|
319
|
+
`waitUntil can only be called with a Promise, got ${typeof promise}`
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
return (_b = (_a = (0, import_get_context.getContext)()).waitUntil) == null ? void 0 : _b.call(_a, promise);
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
// node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/middleware.js
|
|
328
|
+
var require_middleware = __commonJS({
|
|
329
|
+
"node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/middleware.js"(exports, module) {
|
|
330
|
+
var __defProp = Object.defineProperty;
|
|
331
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
332
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
333
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
334
|
+
var __export2 = (target, all) => {
|
|
335
|
+
for (var name in all)
|
|
336
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
337
|
+
};
|
|
338
|
+
var __copyProps = (to, from, except, desc) => {
|
|
339
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
340
|
+
for (let key of __getOwnPropNames(from))
|
|
341
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
342
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
343
|
+
}
|
|
344
|
+
return to;
|
|
345
|
+
};
|
|
346
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
347
|
+
var middleware_exports = {};
|
|
348
|
+
__export2(middleware_exports, {
|
|
349
|
+
next: () => next2,
|
|
350
|
+
rewrite: () => rewrite2
|
|
351
|
+
});
|
|
352
|
+
module.exports = __toCommonJS(middleware_exports);
|
|
353
|
+
function handleMiddlewareField(init, headers) {
|
|
354
|
+
var _a;
|
|
355
|
+
if ((_a = init == null ? void 0 : init.request) == null ? void 0 : _a.headers) {
|
|
356
|
+
if (!(init.request.headers instanceof Headers)) {
|
|
357
|
+
throw new Error("request.headers must be an instance of Headers");
|
|
358
|
+
}
|
|
359
|
+
const keys = [];
|
|
360
|
+
for (const [key, value] of init.request.headers) {
|
|
361
|
+
headers.set("x-middleware-request-" + key, value);
|
|
362
|
+
keys.push(key);
|
|
363
|
+
}
|
|
364
|
+
headers.set("x-middleware-override-headers", keys.join(","));
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
function rewrite2(destination, init) {
|
|
368
|
+
var _a;
|
|
369
|
+
const headers = new Headers((_a = init == null ? void 0 : init.headers) != null ? _a : {});
|
|
370
|
+
headers.set("x-middleware-rewrite", String(destination));
|
|
371
|
+
handleMiddlewareField(init, headers);
|
|
372
|
+
return new Response(null, __spreadProps(__spreadValues({}, init), {
|
|
373
|
+
headers
|
|
374
|
+
}));
|
|
375
|
+
}
|
|
376
|
+
function next2(init) {
|
|
377
|
+
var _a;
|
|
378
|
+
const headers = new Headers((_a = init == null ? void 0 : init.headers) != null ? _a : {});
|
|
379
|
+
headers.set("x-middleware-next", "1");
|
|
380
|
+
handleMiddlewareField(init, headers);
|
|
381
|
+
return new Response(null, __spreadProps(__spreadValues({}, init), {
|
|
382
|
+
headers
|
|
383
|
+
}));
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
// node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/cache/in-memory-cache.js
|
|
389
|
+
var require_in_memory_cache = __commonJS({
|
|
390
|
+
"node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/cache/in-memory-cache.js"(exports, module) {
|
|
391
|
+
var __defProp = Object.defineProperty;
|
|
392
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
393
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
394
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
395
|
+
var __export2 = (target, all) => {
|
|
396
|
+
for (var name in all)
|
|
397
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
398
|
+
};
|
|
399
|
+
var __copyProps = (to, from, except, desc) => {
|
|
400
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
401
|
+
for (let key of __getOwnPropNames(from))
|
|
402
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
403
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
404
|
+
}
|
|
405
|
+
return to;
|
|
406
|
+
};
|
|
407
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
408
|
+
var in_memory_cache_exports = {};
|
|
409
|
+
__export2(in_memory_cache_exports, {
|
|
410
|
+
InMemoryCache: () => InMemoryCache
|
|
411
|
+
});
|
|
412
|
+
module.exports = __toCommonJS(in_memory_cache_exports);
|
|
413
|
+
var InMemoryCache = class {
|
|
414
|
+
constructor() {
|
|
415
|
+
this.cache = {};
|
|
416
|
+
}
|
|
417
|
+
get(key, options) {
|
|
418
|
+
return __async(this, null, function* () {
|
|
419
|
+
const entry = this.cache[key];
|
|
420
|
+
if (entry) {
|
|
421
|
+
if (entry.ttl && entry.lastModified + entry.ttl * 1e3 < Date.now()) {
|
|
422
|
+
yield this.delete(key);
|
|
423
|
+
return null;
|
|
424
|
+
}
|
|
425
|
+
if (options == null ? void 0 : options.tags) {
|
|
426
|
+
for (const tag of options.tags) {
|
|
427
|
+
entry.tags.add(tag);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
return entry.value;
|
|
431
|
+
}
|
|
432
|
+
return null;
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
set(key, value, options) {
|
|
436
|
+
return __async(this, null, function* () {
|
|
437
|
+
this.cache[key] = {
|
|
438
|
+
value,
|
|
439
|
+
lastModified: Date.now(),
|
|
440
|
+
ttl: options == null ? void 0 : options.ttl,
|
|
441
|
+
tags: new Set((options == null ? void 0 : options.tags) || [])
|
|
442
|
+
};
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
delete(key) {
|
|
446
|
+
return __async(this, null, function* () {
|
|
447
|
+
delete this.cache[key];
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
expireTag(tag) {
|
|
451
|
+
return __async(this, null, function* () {
|
|
452
|
+
const tags = Array.isArray(tag) ? tag : [tag];
|
|
453
|
+
for (const key in this.cache) {
|
|
454
|
+
if (Object.prototype.hasOwnProperty.call(this.cache, key)) {
|
|
455
|
+
const entry = this.cache[key];
|
|
456
|
+
if (tags.some((t) => entry.tags.has(t))) {
|
|
457
|
+
delete this.cache[key];
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
// node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/cache/index.js
|
|
468
|
+
var require_cache = __commonJS({
|
|
469
|
+
"node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/cache/index.js"(exports, module) {
|
|
470
|
+
var __defProp = Object.defineProperty;
|
|
471
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
472
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
473
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
474
|
+
var __export2 = (target, all) => {
|
|
475
|
+
for (var name in all)
|
|
476
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
477
|
+
};
|
|
478
|
+
var __copyProps = (to, from, except, desc) => {
|
|
479
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
480
|
+
for (let key of __getOwnPropNames(from))
|
|
481
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
482
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
483
|
+
}
|
|
484
|
+
return to;
|
|
485
|
+
};
|
|
486
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
487
|
+
var cache_exports = {};
|
|
488
|
+
__export2(cache_exports, {
|
|
489
|
+
getCache: () => getCache2
|
|
490
|
+
});
|
|
491
|
+
module.exports = __toCommonJS(cache_exports);
|
|
492
|
+
var import_get_context = require_get_context();
|
|
493
|
+
var import_in_memory_cache = require_in_memory_cache();
|
|
494
|
+
var defaultKeyHashFunction = (key) => {
|
|
495
|
+
let hash = 5381;
|
|
496
|
+
for (let i = 0; i < key.length; i++) {
|
|
497
|
+
hash = hash * 33 ^ key.charCodeAt(i);
|
|
498
|
+
}
|
|
499
|
+
return (hash >>> 0).toString(16);
|
|
500
|
+
};
|
|
501
|
+
var defaultNamespaceSeparator = "$";
|
|
502
|
+
var inMemoryCacheInstance = null;
|
|
503
|
+
var getCache2 = (cacheOptions) => {
|
|
504
|
+
const resolveCache = () => {
|
|
505
|
+
const ctxCache = (0, import_get_context.getContext)().cache;
|
|
506
|
+
if (ctxCache)
|
|
507
|
+
return ctxCache;
|
|
508
|
+
if (!inMemoryCacheInstance) {
|
|
509
|
+
inMemoryCacheInstance = new import_in_memory_cache.InMemoryCache();
|
|
510
|
+
console.warn(
|
|
511
|
+
"Runtime Cache unavailable in this environment. Falling back to in-memory cache."
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
return inMemoryCacheInstance;
|
|
515
|
+
};
|
|
516
|
+
const hashFunction = (cacheOptions == null ? void 0 : cacheOptions.keyHashFunction) || defaultKeyHashFunction;
|
|
517
|
+
const makeKey = (key) => {
|
|
518
|
+
let prefix = "";
|
|
519
|
+
if (cacheOptions == null ? void 0 : cacheOptions.namespace) {
|
|
520
|
+
const namespaceSeparator = cacheOptions.namespaceSeparator || defaultNamespaceSeparator;
|
|
521
|
+
prefix = `${cacheOptions.namespace}${namespaceSeparator}`;
|
|
522
|
+
}
|
|
523
|
+
return `${prefix}${hashFunction(key)}`;
|
|
524
|
+
};
|
|
525
|
+
return {
|
|
526
|
+
get: (key, options) => {
|
|
527
|
+
return resolveCache().get(makeKey(key), options);
|
|
528
|
+
},
|
|
529
|
+
set: (key, value, options) => {
|
|
530
|
+
return resolveCache().set(makeKey(key), value, options);
|
|
531
|
+
},
|
|
532
|
+
delete: (key) => {
|
|
533
|
+
return resolveCache().delete(makeKey(key));
|
|
534
|
+
},
|
|
535
|
+
expireTag: (tag) => {
|
|
536
|
+
return resolveCache().expireTag(tag);
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
|
|
543
|
+
// node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/index.js
|
|
544
|
+
var require_functions = __commonJS({
|
|
545
|
+
"node_modules/.pnpm/@vercel+functions@2.2.2/node_modules/@vercel/functions/index.js"(exports, module) {
|
|
546
|
+
var __defProp = Object.defineProperty;
|
|
547
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
548
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
549
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
550
|
+
var __export2 = (target, all) => {
|
|
551
|
+
for (var name in all)
|
|
552
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
553
|
+
};
|
|
554
|
+
var __copyProps = (to, from, except, desc) => {
|
|
555
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
556
|
+
for (let key of __getOwnPropNames(from))
|
|
557
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
558
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
559
|
+
}
|
|
560
|
+
return to;
|
|
561
|
+
};
|
|
562
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
563
|
+
var src_exports = {};
|
|
564
|
+
__export2(src_exports, {
|
|
565
|
+
geolocation: () => import_headers.geolocation,
|
|
566
|
+
getCache: () => import_cache.getCache,
|
|
567
|
+
getEnv: () => import_get_env.getEnv,
|
|
568
|
+
ipAddress: () => import_headers.ipAddress,
|
|
569
|
+
next: () => import_middleware.next,
|
|
570
|
+
rewrite: () => import_middleware.rewrite,
|
|
571
|
+
waitUntil: () => import_wait_until.waitUntil
|
|
572
|
+
});
|
|
573
|
+
module.exports = __toCommonJS(src_exports);
|
|
574
|
+
var import_headers = require_headers();
|
|
575
|
+
var import_get_env = require_get_env();
|
|
576
|
+
var import_wait_until = require_wait_until();
|
|
577
|
+
var import_middleware = require_middleware();
|
|
578
|
+
var import_cache = require_cache();
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
|
|
582
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
|
|
583
|
+
var require_detect_domain_locale = __commonJS({
|
|
584
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"(exports) {
|
|
585
|
+
Object.defineProperty(exports, "__esModule", {
|
|
586
|
+
value: true
|
|
587
|
+
});
|
|
588
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
589
|
+
enumerable: true,
|
|
590
|
+
get: function() {
|
|
591
|
+
return detectDomainLocale;
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
function detectDomainLocale(domainItems, hostname, detectedLocale) {
|
|
595
|
+
if (!domainItems) return;
|
|
596
|
+
if (detectedLocale) {
|
|
597
|
+
detectedLocale = detectedLocale.toLowerCase();
|
|
598
|
+
}
|
|
599
|
+
for (const item of domainItems) {
|
|
600
|
+
var _item_domain, _item_locales;
|
|
601
|
+
const domainHostname = (_item_domain = item.domain) == null ? void 0 : _item_domain.split(":", 1)[0].toLowerCase();
|
|
602
|
+
if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_item_locales = item.locales) == null ? void 0 : _item_locales.some((locale) => locale.toLowerCase() === detectedLocale))) {
|
|
603
|
+
return item;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
|
|
610
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
|
|
611
|
+
var require_remove_trailing_slash = __commonJS({
|
|
612
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"(exports) {
|
|
613
|
+
Object.defineProperty(exports, "__esModule", {
|
|
614
|
+
value: true
|
|
615
|
+
});
|
|
616
|
+
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
617
|
+
enumerable: true,
|
|
618
|
+
get: function() {
|
|
619
|
+
return removeTrailingSlash;
|
|
620
|
+
}
|
|
621
|
+
});
|
|
622
|
+
function removeTrailingSlash(route) {
|
|
623
|
+
return route.replace(/\/$/, "") || "/";
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
|
|
628
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/parse-path.js
|
|
629
|
+
var require_parse_path = __commonJS({
|
|
630
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/parse-path.js"(exports) {
|
|
631
|
+
Object.defineProperty(exports, "__esModule", {
|
|
632
|
+
value: true
|
|
633
|
+
});
|
|
634
|
+
Object.defineProperty(exports, "parsePath", {
|
|
635
|
+
enumerable: true,
|
|
636
|
+
get: function() {
|
|
637
|
+
return parsePath;
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
function parsePath(path) {
|
|
641
|
+
const hashIndex = path.indexOf("#");
|
|
642
|
+
const queryIndex = path.indexOf("?");
|
|
643
|
+
const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
|
|
644
|
+
if (hasQuery || hashIndex > -1) {
|
|
645
|
+
return {
|
|
646
|
+
pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
|
|
647
|
+
query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
|
|
648
|
+
hash: hashIndex > -1 ? path.slice(hashIndex) : ""
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
return {
|
|
652
|
+
pathname: path,
|
|
653
|
+
query: "",
|
|
654
|
+
hash: ""
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
});
|
|
659
|
+
|
|
660
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
|
|
661
|
+
var require_add_path_prefix = __commonJS({
|
|
662
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"(exports) {
|
|
663
|
+
Object.defineProperty(exports, "__esModule", {
|
|
664
|
+
value: true
|
|
665
|
+
});
|
|
666
|
+
Object.defineProperty(exports, "addPathPrefix", {
|
|
667
|
+
enumerable: true,
|
|
668
|
+
get: function() {
|
|
669
|
+
return addPathPrefix;
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
var _parsepath = require_parse_path();
|
|
673
|
+
function addPathPrefix(path, prefix) {
|
|
674
|
+
if (!path.startsWith("/") || !prefix) {
|
|
675
|
+
return path;
|
|
676
|
+
}
|
|
677
|
+
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
678
|
+
return "" + prefix + pathname + query + hash;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js
|
|
684
|
+
var require_add_path_suffix = __commonJS({
|
|
685
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js"(exports) {
|
|
686
|
+
Object.defineProperty(exports, "__esModule", {
|
|
687
|
+
value: true
|
|
688
|
+
});
|
|
689
|
+
Object.defineProperty(exports, "addPathSuffix", {
|
|
690
|
+
enumerable: true,
|
|
691
|
+
get: function() {
|
|
692
|
+
return addPathSuffix;
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
var _parsepath = require_parse_path();
|
|
696
|
+
function addPathSuffix(path, suffix) {
|
|
697
|
+
if (!path.startsWith("/") || !suffix) {
|
|
698
|
+
return path;
|
|
699
|
+
}
|
|
700
|
+
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
701
|
+
return "" + pathname + suffix + query + hash;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
|
|
707
|
+
var require_path_has_prefix = __commonJS({
|
|
708
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"(exports) {
|
|
709
|
+
Object.defineProperty(exports, "__esModule", {
|
|
710
|
+
value: true
|
|
711
|
+
});
|
|
712
|
+
Object.defineProperty(exports, "pathHasPrefix", {
|
|
713
|
+
enumerable: true,
|
|
714
|
+
get: function() {
|
|
715
|
+
return pathHasPrefix;
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
var _parsepath = require_parse_path();
|
|
719
|
+
function pathHasPrefix(path, prefix) {
|
|
720
|
+
if (typeof path !== "string") {
|
|
721
|
+
return false;
|
|
722
|
+
}
|
|
723
|
+
const { pathname } = (0, _parsepath.parsePath)(path);
|
|
724
|
+
return pathname === prefix || pathname.startsWith(prefix + "/");
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
|
|
729
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/add-locale.js
|
|
730
|
+
var require_add_locale = __commonJS({
|
|
731
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/add-locale.js"(exports) {
|
|
732
|
+
Object.defineProperty(exports, "__esModule", {
|
|
733
|
+
value: true
|
|
734
|
+
});
|
|
735
|
+
Object.defineProperty(exports, "addLocale", {
|
|
736
|
+
enumerable: true,
|
|
737
|
+
get: function() {
|
|
738
|
+
return addLocale;
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
var _addpathprefix = require_add_path_prefix();
|
|
742
|
+
var _pathhasprefix = require_path_has_prefix();
|
|
743
|
+
function addLocale(path, locale, defaultLocale, ignorePrefix) {
|
|
744
|
+
if (!locale || locale === defaultLocale) return path;
|
|
745
|
+
const lower = path.toLowerCase();
|
|
746
|
+
if (!ignorePrefix) {
|
|
747
|
+
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api")) return path;
|
|
748
|
+
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/" + locale.toLowerCase())) return path;
|
|
749
|
+
}
|
|
750
|
+
return (0, _addpathprefix.addPathPrefix)(path, "/" + locale);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
});
|
|
754
|
+
|
|
755
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js
|
|
756
|
+
var require_format_next_pathname_info = __commonJS({
|
|
757
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js"(exports) {
|
|
758
|
+
Object.defineProperty(exports, "__esModule", {
|
|
759
|
+
value: true
|
|
760
|
+
});
|
|
761
|
+
Object.defineProperty(exports, "formatNextPathnameInfo", {
|
|
762
|
+
enumerable: true,
|
|
763
|
+
get: function() {
|
|
764
|
+
return formatNextPathnameInfo;
|
|
765
|
+
}
|
|
766
|
+
});
|
|
767
|
+
var _removetrailingslash = require_remove_trailing_slash();
|
|
768
|
+
var _addpathprefix = require_add_path_prefix();
|
|
769
|
+
var _addpathsuffix = require_add_path_suffix();
|
|
770
|
+
var _addlocale = require_add_locale();
|
|
771
|
+
function formatNextPathnameInfo(info) {
|
|
772
|
+
let pathname = (0, _addlocale.addLocale)(info.pathname, info.locale, info.buildId ? void 0 : info.defaultLocale, info.ignorePrefix);
|
|
773
|
+
if (info.buildId || !info.trailingSlash) {
|
|
774
|
+
pathname = (0, _removetrailingslash.removeTrailingSlash)(pathname);
|
|
775
|
+
}
|
|
776
|
+
if (info.buildId) {
|
|
777
|
+
pathname = (0, _addpathsuffix.addPathSuffix)((0, _addpathprefix.addPathPrefix)(pathname, "/_next/data/" + info.buildId), info.pathname === "/" ? "index.json" : ".json");
|
|
778
|
+
}
|
|
779
|
+
pathname = (0, _addpathprefix.addPathPrefix)(pathname, info.basePath);
|
|
780
|
+
return !info.buildId && info.trailingSlash ? !pathname.endsWith("/") ? (0, _addpathsuffix.addPathSuffix)(pathname, "/") : pathname : (0, _removetrailingslash.removeTrailingSlash)(pathname);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
|
|
785
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/get-hostname.js
|
|
786
|
+
var require_get_hostname = __commonJS({
|
|
787
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/get-hostname.js"(exports) {
|
|
788
|
+
Object.defineProperty(exports, "__esModule", {
|
|
789
|
+
value: true
|
|
790
|
+
});
|
|
791
|
+
Object.defineProperty(exports, "getHostname", {
|
|
792
|
+
enumerable: true,
|
|
793
|
+
get: function() {
|
|
794
|
+
return getHostname;
|
|
795
|
+
}
|
|
796
|
+
});
|
|
797
|
+
function getHostname(parsed, headers) {
|
|
798
|
+
let hostname;
|
|
799
|
+
if ((headers == null ? void 0 : headers.host) && !Array.isArray(headers.host)) {
|
|
800
|
+
hostname = headers.host.toString().split(":", 1)[0];
|
|
801
|
+
} else if (parsed.hostname) {
|
|
802
|
+
hostname = parsed.hostname;
|
|
803
|
+
} else return;
|
|
804
|
+
return hostname.toLowerCase();
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
});
|
|
808
|
+
|
|
809
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
|
|
810
|
+
var require_normalize_locale_path = __commonJS({
|
|
811
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"(exports) {
|
|
812
|
+
Object.defineProperty(exports, "__esModule", {
|
|
813
|
+
value: true
|
|
814
|
+
});
|
|
815
|
+
Object.defineProperty(exports, "normalizeLocalePath", {
|
|
816
|
+
enumerable: true,
|
|
817
|
+
get: function() {
|
|
818
|
+
return normalizeLocalePath;
|
|
819
|
+
}
|
|
820
|
+
});
|
|
821
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
822
|
+
function normalizeLocalePath(pathname, locales) {
|
|
823
|
+
if (!locales) return {
|
|
824
|
+
pathname
|
|
825
|
+
};
|
|
826
|
+
let lowercasedLocales = cache.get(locales);
|
|
827
|
+
if (!lowercasedLocales) {
|
|
828
|
+
lowercasedLocales = locales.map((locale) => locale.toLowerCase());
|
|
829
|
+
cache.set(locales, lowercasedLocales);
|
|
830
|
+
}
|
|
831
|
+
let detectedLocale;
|
|
832
|
+
const segments = pathname.split("/", 2);
|
|
833
|
+
if (!segments[1]) return {
|
|
834
|
+
pathname
|
|
835
|
+
};
|
|
836
|
+
const segment = segments[1].toLowerCase();
|
|
837
|
+
const index = lowercasedLocales.indexOf(segment);
|
|
838
|
+
if (index < 0) return {
|
|
839
|
+
pathname
|
|
840
|
+
};
|
|
841
|
+
detectedLocale = locales[index];
|
|
842
|
+
pathname = pathname.slice(detectedLocale.length + 1) || "/";
|
|
843
|
+
return {
|
|
844
|
+
pathname,
|
|
845
|
+
detectedLocale
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
|
|
851
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js
|
|
852
|
+
var require_remove_path_prefix = __commonJS({
|
|
853
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js"(exports) {
|
|
854
|
+
Object.defineProperty(exports, "__esModule", {
|
|
855
|
+
value: true
|
|
856
|
+
});
|
|
857
|
+
Object.defineProperty(exports, "removePathPrefix", {
|
|
858
|
+
enumerable: true,
|
|
859
|
+
get: function() {
|
|
860
|
+
return removePathPrefix;
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
var _pathhasprefix = require_path_has_prefix();
|
|
864
|
+
function removePathPrefix(path, prefix) {
|
|
865
|
+
if (!(0, _pathhasprefix.pathHasPrefix)(path, prefix)) {
|
|
866
|
+
return path;
|
|
867
|
+
}
|
|
868
|
+
const withoutPrefix = path.slice(prefix.length);
|
|
869
|
+
if (withoutPrefix.startsWith("/")) {
|
|
870
|
+
return withoutPrefix;
|
|
871
|
+
}
|
|
872
|
+
return "/" + withoutPrefix;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
|
|
877
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js
|
|
878
|
+
var require_get_next_pathname_info = __commonJS({
|
|
879
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js"(exports) {
|
|
880
|
+
Object.defineProperty(exports, "__esModule", {
|
|
881
|
+
value: true
|
|
882
|
+
});
|
|
883
|
+
Object.defineProperty(exports, "getNextPathnameInfo", {
|
|
884
|
+
enumerable: true,
|
|
885
|
+
get: function() {
|
|
886
|
+
return getNextPathnameInfo;
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
var _normalizelocalepath = require_normalize_locale_path();
|
|
890
|
+
var _removepathprefix = require_remove_path_prefix();
|
|
891
|
+
var _pathhasprefix = require_path_has_prefix();
|
|
892
|
+
function getNextPathnameInfo(pathname, options) {
|
|
893
|
+
var _options_nextConfig;
|
|
894
|
+
const { basePath, i18n, trailingSlash } = (_options_nextConfig = options.nextConfig) != null ? _options_nextConfig : {};
|
|
895
|
+
const info = {
|
|
896
|
+
pathname,
|
|
897
|
+
trailingSlash: pathname !== "/" ? pathname.endsWith("/") : trailingSlash
|
|
898
|
+
};
|
|
899
|
+
if (basePath && (0, _pathhasprefix.pathHasPrefix)(info.pathname, basePath)) {
|
|
900
|
+
info.pathname = (0, _removepathprefix.removePathPrefix)(info.pathname, basePath);
|
|
901
|
+
info.basePath = basePath;
|
|
902
|
+
}
|
|
903
|
+
let pathnameNoDataPrefix = info.pathname;
|
|
904
|
+
if (info.pathname.startsWith("/_next/data/") && info.pathname.endsWith(".json")) {
|
|
905
|
+
const paths = info.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/");
|
|
906
|
+
const buildId = paths[0];
|
|
907
|
+
info.buildId = buildId;
|
|
908
|
+
pathnameNoDataPrefix = paths[1] !== "index" ? "/" + paths.slice(1).join("/") : "/";
|
|
909
|
+
if (options.parseData === true) {
|
|
910
|
+
info.pathname = pathnameNoDataPrefix;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
if (i18n) {
|
|
914
|
+
let result = options.i18nProvider ? options.i18nProvider.analyze(info.pathname) : (0, _normalizelocalepath.normalizeLocalePath)(info.pathname, i18n.locales);
|
|
915
|
+
info.locale = result.detectedLocale;
|
|
916
|
+
var _result_pathname;
|
|
917
|
+
info.pathname = (_result_pathname = result.pathname) != null ? _result_pathname : info.pathname;
|
|
918
|
+
if (!result.detectedLocale && info.buildId) {
|
|
919
|
+
result = options.i18nProvider ? options.i18nProvider.analyze(pathnameNoDataPrefix) : (0, _normalizelocalepath.normalizeLocalePath)(pathnameNoDataPrefix, i18n.locales);
|
|
920
|
+
if (result.detectedLocale) {
|
|
921
|
+
info.locale = result.detectedLocale;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
return info;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
});
|
|
929
|
+
|
|
930
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/next-url.js
|
|
931
|
+
var require_next_url = __commonJS({
|
|
932
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/next-url.js"(exports) {
|
|
933
|
+
Object.defineProperty(exports, "__esModule", {
|
|
934
|
+
value: true
|
|
935
|
+
});
|
|
936
|
+
Object.defineProperty(exports, "NextURL", {
|
|
937
|
+
enumerable: true,
|
|
938
|
+
get: function() {
|
|
939
|
+
return NextURL;
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
var _detectdomainlocale = require_detect_domain_locale();
|
|
943
|
+
var _formatnextpathnameinfo = require_format_next_pathname_info();
|
|
944
|
+
var _gethostname = require_get_hostname();
|
|
945
|
+
var _getnextpathnameinfo = require_get_next_pathname_info();
|
|
946
|
+
var REGEX_LOCALHOST_HOSTNAME = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
947
|
+
function parseURL(url, base) {
|
|
948
|
+
return new URL(String(url).replace(REGEX_LOCALHOST_HOSTNAME, "localhost"), base && String(base).replace(REGEX_LOCALHOST_HOSTNAME, "localhost"));
|
|
949
|
+
}
|
|
950
|
+
var Internal = Symbol("NextURLInternal");
|
|
951
|
+
var NextURL = class _NextURL {
|
|
952
|
+
constructor(input, baseOrOpts, opts) {
|
|
953
|
+
let base;
|
|
954
|
+
let options;
|
|
955
|
+
if (typeof baseOrOpts === "object" && "pathname" in baseOrOpts || typeof baseOrOpts === "string") {
|
|
956
|
+
base = baseOrOpts;
|
|
957
|
+
options = opts || {};
|
|
958
|
+
} else {
|
|
959
|
+
options = opts || baseOrOpts || {};
|
|
960
|
+
}
|
|
961
|
+
this[Internal] = {
|
|
962
|
+
url: parseURL(input, base != null ? base : options.base),
|
|
963
|
+
options,
|
|
964
|
+
basePath: ""
|
|
965
|
+
};
|
|
966
|
+
this.analyze();
|
|
967
|
+
}
|
|
968
|
+
analyze() {
|
|
969
|
+
var _a, _b;
|
|
970
|
+
var _this_Internal_options_nextConfig_i18n, _this_Internal_options_nextConfig, _this_Internal_domainLocale, _this_Internal_options_nextConfig_i18n1, _this_Internal_options_nextConfig1;
|
|
971
|
+
const info = (0, _getnextpathnameinfo.getNextPathnameInfo)(this[Internal].url.pathname, {
|
|
972
|
+
nextConfig: this[Internal].options.nextConfig,
|
|
973
|
+
parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
|
|
974
|
+
i18nProvider: this[Internal].options.i18nProvider
|
|
975
|
+
});
|
|
976
|
+
const hostname = (0, _gethostname.getHostname)(this[Internal].url, this[Internal].options.headers);
|
|
977
|
+
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);
|
|
978
|
+
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);
|
|
979
|
+
this[Internal].url.pathname = info.pathname;
|
|
980
|
+
this[Internal].defaultLocale = defaultLocale;
|
|
981
|
+
this[Internal].basePath = (_a = info.basePath) != null ? _a : "";
|
|
982
|
+
this[Internal].buildId = info.buildId;
|
|
983
|
+
this[Internal].locale = (_b = info.locale) != null ? _b : defaultLocale;
|
|
984
|
+
this[Internal].trailingSlash = info.trailingSlash;
|
|
985
|
+
}
|
|
986
|
+
formatPathname() {
|
|
987
|
+
return (0, _formatnextpathnameinfo.formatNextPathnameInfo)({
|
|
988
|
+
basePath: this[Internal].basePath,
|
|
989
|
+
buildId: this[Internal].buildId,
|
|
990
|
+
defaultLocale: !this[Internal].options.forceLocale ? this[Internal].defaultLocale : void 0,
|
|
991
|
+
locale: this[Internal].locale,
|
|
992
|
+
pathname: this[Internal].url.pathname,
|
|
993
|
+
trailingSlash: this[Internal].trailingSlash
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
formatSearch() {
|
|
997
|
+
return this[Internal].url.search;
|
|
998
|
+
}
|
|
999
|
+
get buildId() {
|
|
1000
|
+
return this[Internal].buildId;
|
|
1001
|
+
}
|
|
1002
|
+
set buildId(buildId) {
|
|
1003
|
+
this[Internal].buildId = buildId;
|
|
1004
|
+
}
|
|
1005
|
+
get locale() {
|
|
1006
|
+
var _a;
|
|
1007
|
+
return (_a = this[Internal].locale) != null ? _a : "";
|
|
1008
|
+
}
|
|
1009
|
+
set locale(locale) {
|
|
1010
|
+
var _this_Internal_options_nextConfig_i18n, _this_Internal_options_nextConfig;
|
|
1011
|
+
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))) {
|
|
1012
|
+
throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${locale}"`), "__NEXT_ERROR_CODE", {
|
|
1013
|
+
value: "E597",
|
|
1014
|
+
enumerable: false,
|
|
1015
|
+
configurable: true
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
this[Internal].locale = locale;
|
|
1019
|
+
}
|
|
1020
|
+
get defaultLocale() {
|
|
1021
|
+
return this[Internal].defaultLocale;
|
|
1022
|
+
}
|
|
1023
|
+
get domainLocale() {
|
|
1024
|
+
return this[Internal].domainLocale;
|
|
1025
|
+
}
|
|
1026
|
+
get searchParams() {
|
|
1027
|
+
return this[Internal].url.searchParams;
|
|
1028
|
+
}
|
|
1029
|
+
get host() {
|
|
1030
|
+
return this[Internal].url.host;
|
|
1031
|
+
}
|
|
1032
|
+
set host(value) {
|
|
1033
|
+
this[Internal].url.host = value;
|
|
1034
|
+
}
|
|
1035
|
+
get hostname() {
|
|
1036
|
+
return this[Internal].url.hostname;
|
|
1037
|
+
}
|
|
1038
|
+
set hostname(value) {
|
|
1039
|
+
this[Internal].url.hostname = value;
|
|
1040
|
+
}
|
|
1041
|
+
get port() {
|
|
1042
|
+
return this[Internal].url.port;
|
|
1043
|
+
}
|
|
1044
|
+
set port(value) {
|
|
1045
|
+
this[Internal].url.port = value;
|
|
1046
|
+
}
|
|
1047
|
+
get protocol() {
|
|
1048
|
+
return this[Internal].url.protocol;
|
|
1049
|
+
}
|
|
1050
|
+
set protocol(value) {
|
|
1051
|
+
this[Internal].url.protocol = value;
|
|
1052
|
+
}
|
|
1053
|
+
get href() {
|
|
1054
|
+
const pathname = this.formatPathname();
|
|
1055
|
+
const search = this.formatSearch();
|
|
1056
|
+
return `${this.protocol}//${this.host}${pathname}${search}${this.hash}`;
|
|
1057
|
+
}
|
|
1058
|
+
set href(url) {
|
|
1059
|
+
this[Internal].url = parseURL(url);
|
|
1060
|
+
this.analyze();
|
|
1061
|
+
}
|
|
1062
|
+
get origin() {
|
|
1063
|
+
return this[Internal].url.origin;
|
|
1064
|
+
}
|
|
1065
|
+
get pathname() {
|
|
1066
|
+
return this[Internal].url.pathname;
|
|
1067
|
+
}
|
|
1068
|
+
set pathname(value) {
|
|
1069
|
+
this[Internal].url.pathname = value;
|
|
1070
|
+
}
|
|
1071
|
+
get hash() {
|
|
1072
|
+
return this[Internal].url.hash;
|
|
1073
|
+
}
|
|
1074
|
+
set hash(value) {
|
|
1075
|
+
this[Internal].url.hash = value;
|
|
1076
|
+
}
|
|
1077
|
+
get search() {
|
|
1078
|
+
return this[Internal].url.search;
|
|
1079
|
+
}
|
|
1080
|
+
set search(value) {
|
|
1081
|
+
this[Internal].url.search = value;
|
|
1082
|
+
}
|
|
1083
|
+
get password() {
|
|
1084
|
+
return this[Internal].url.password;
|
|
1085
|
+
}
|
|
1086
|
+
set password(value) {
|
|
1087
|
+
this[Internal].url.password = value;
|
|
1088
|
+
}
|
|
1089
|
+
get username() {
|
|
1090
|
+
return this[Internal].url.username;
|
|
1091
|
+
}
|
|
1092
|
+
set username(value) {
|
|
1093
|
+
this[Internal].url.username = value;
|
|
1094
|
+
}
|
|
1095
|
+
get basePath() {
|
|
1096
|
+
return this[Internal].basePath;
|
|
1097
|
+
}
|
|
1098
|
+
set basePath(value) {
|
|
1099
|
+
this[Internal].basePath = value.startsWith("/") ? value : `/${value}`;
|
|
1100
|
+
}
|
|
1101
|
+
toString() {
|
|
1102
|
+
return this.href;
|
|
1103
|
+
}
|
|
1104
|
+
toJSON() {
|
|
1105
|
+
return this.href;
|
|
1106
|
+
}
|
|
1107
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1108
|
+
return {
|
|
1109
|
+
href: this.href,
|
|
1110
|
+
origin: this.origin,
|
|
1111
|
+
protocol: this.protocol,
|
|
1112
|
+
username: this.username,
|
|
1113
|
+
password: this.password,
|
|
1114
|
+
host: this.host,
|
|
1115
|
+
hostname: this.hostname,
|
|
1116
|
+
port: this.port,
|
|
1117
|
+
pathname: this.pathname,
|
|
1118
|
+
search: this.search,
|
|
1119
|
+
searchParams: this.searchParams,
|
|
1120
|
+
hash: this.hash
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1123
|
+
clone() {
|
|
1124
|
+
return new _NextURL(String(this), this[Internal].options);
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
});
|
|
1129
|
+
|
|
1130
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/constants.js
|
|
1131
|
+
var require_constants = __commonJS({
|
|
1132
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/constants.js"(exports) {
|
|
1133
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1134
|
+
value: true
|
|
1135
|
+
});
|
|
1136
|
+
function _export(target, all) {
|
|
1137
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1138
|
+
enumerable: true,
|
|
1139
|
+
get: all[name]
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1142
|
+
_export(exports, {
|
|
1143
|
+
ACTION_SUFFIX: function() {
|
|
1144
|
+
return ACTION_SUFFIX;
|
|
1145
|
+
},
|
|
1146
|
+
APP_DIR_ALIAS: function() {
|
|
1147
|
+
return APP_DIR_ALIAS;
|
|
1148
|
+
},
|
|
1149
|
+
CACHE_ONE_YEAR: function() {
|
|
1150
|
+
return CACHE_ONE_YEAR;
|
|
1151
|
+
},
|
|
1152
|
+
DOT_NEXT_ALIAS: function() {
|
|
1153
|
+
return DOT_NEXT_ALIAS;
|
|
1154
|
+
},
|
|
1155
|
+
ESLINT_DEFAULT_DIRS: function() {
|
|
1156
|
+
return ESLINT_DEFAULT_DIRS;
|
|
1157
|
+
},
|
|
1158
|
+
GSP_NO_RETURNED_VALUE: function() {
|
|
1159
|
+
return GSP_NO_RETURNED_VALUE;
|
|
1160
|
+
},
|
|
1161
|
+
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
1162
|
+
return GSSP_COMPONENT_MEMBER_ERROR;
|
|
1163
|
+
},
|
|
1164
|
+
GSSP_NO_RETURNED_VALUE: function() {
|
|
1165
|
+
return GSSP_NO_RETURNED_VALUE;
|
|
1166
|
+
},
|
|
1167
|
+
INFINITE_CACHE: function() {
|
|
1168
|
+
return INFINITE_CACHE;
|
|
1169
|
+
},
|
|
1170
|
+
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
1171
|
+
return INSTRUMENTATION_HOOK_FILENAME;
|
|
1172
|
+
},
|
|
1173
|
+
MATCHED_PATH_HEADER: function() {
|
|
1174
|
+
return MATCHED_PATH_HEADER;
|
|
1175
|
+
},
|
|
1176
|
+
MIDDLEWARE_FILENAME: function() {
|
|
1177
|
+
return MIDDLEWARE_FILENAME;
|
|
1178
|
+
},
|
|
1179
|
+
MIDDLEWARE_LOCATION_REGEXP: function() {
|
|
1180
|
+
return MIDDLEWARE_LOCATION_REGEXP;
|
|
1181
|
+
},
|
|
1182
|
+
NEXT_BODY_SUFFIX: function() {
|
|
1183
|
+
return NEXT_BODY_SUFFIX;
|
|
1184
|
+
},
|
|
1185
|
+
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
1186
|
+
return NEXT_CACHE_IMPLICIT_TAG_ID;
|
|
1187
|
+
},
|
|
1188
|
+
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
1189
|
+
return NEXT_CACHE_REVALIDATED_TAGS_HEADER;
|
|
1190
|
+
},
|
|
1191
|
+
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
1192
|
+
return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER;
|
|
1193
|
+
},
|
|
1194
|
+
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
1195
|
+
return NEXT_CACHE_SOFT_TAG_MAX_LENGTH;
|
|
1196
|
+
},
|
|
1197
|
+
NEXT_CACHE_TAGS_HEADER: function() {
|
|
1198
|
+
return NEXT_CACHE_TAGS_HEADER;
|
|
1199
|
+
},
|
|
1200
|
+
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
1201
|
+
return NEXT_CACHE_TAG_MAX_ITEMS;
|
|
1202
|
+
},
|
|
1203
|
+
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
1204
|
+
return NEXT_CACHE_TAG_MAX_LENGTH;
|
|
1205
|
+
},
|
|
1206
|
+
NEXT_DATA_SUFFIX: function() {
|
|
1207
|
+
return NEXT_DATA_SUFFIX;
|
|
1208
|
+
},
|
|
1209
|
+
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
1210
|
+
return NEXT_INTERCEPTION_MARKER_PREFIX;
|
|
1211
|
+
},
|
|
1212
|
+
NEXT_META_SUFFIX: function() {
|
|
1213
|
+
return NEXT_META_SUFFIX;
|
|
1214
|
+
},
|
|
1215
|
+
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
1216
|
+
return NEXT_QUERY_PARAM_PREFIX;
|
|
1217
|
+
},
|
|
1218
|
+
NEXT_RESUME_HEADER: function() {
|
|
1219
|
+
return NEXT_RESUME_HEADER;
|
|
1220
|
+
},
|
|
1221
|
+
NON_STANDARD_NODE_ENV: function() {
|
|
1222
|
+
return NON_STANDARD_NODE_ENV;
|
|
1223
|
+
},
|
|
1224
|
+
PAGES_DIR_ALIAS: function() {
|
|
1225
|
+
return PAGES_DIR_ALIAS;
|
|
1226
|
+
},
|
|
1227
|
+
PRERENDER_REVALIDATE_HEADER: function() {
|
|
1228
|
+
return PRERENDER_REVALIDATE_HEADER;
|
|
1229
|
+
},
|
|
1230
|
+
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
1231
|
+
return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
|
|
1232
|
+
},
|
|
1233
|
+
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
1234
|
+
return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
|
|
1235
|
+
},
|
|
1236
|
+
ROOT_DIR_ALIAS: function() {
|
|
1237
|
+
return ROOT_DIR_ALIAS;
|
|
1238
|
+
},
|
|
1239
|
+
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
1240
|
+
return RSC_ACTION_CLIENT_WRAPPER_ALIAS;
|
|
1241
|
+
},
|
|
1242
|
+
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
1243
|
+
return RSC_ACTION_ENCRYPTION_ALIAS;
|
|
1244
|
+
},
|
|
1245
|
+
RSC_ACTION_PROXY_ALIAS: function() {
|
|
1246
|
+
return RSC_ACTION_PROXY_ALIAS;
|
|
1247
|
+
},
|
|
1248
|
+
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
1249
|
+
return RSC_ACTION_VALIDATE_ALIAS;
|
|
1250
|
+
},
|
|
1251
|
+
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
1252
|
+
return RSC_CACHE_WRAPPER_ALIAS;
|
|
1253
|
+
},
|
|
1254
|
+
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
1255
|
+
return RSC_MOD_REF_PROXY_ALIAS;
|
|
1256
|
+
},
|
|
1257
|
+
RSC_PREFETCH_SUFFIX: function() {
|
|
1258
|
+
return RSC_PREFETCH_SUFFIX;
|
|
1259
|
+
},
|
|
1260
|
+
RSC_SEGMENTS_DIR_SUFFIX: function() {
|
|
1261
|
+
return RSC_SEGMENTS_DIR_SUFFIX;
|
|
1262
|
+
},
|
|
1263
|
+
RSC_SEGMENT_SUFFIX: function() {
|
|
1264
|
+
return RSC_SEGMENT_SUFFIX;
|
|
1265
|
+
},
|
|
1266
|
+
RSC_SUFFIX: function() {
|
|
1267
|
+
return RSC_SUFFIX;
|
|
1268
|
+
},
|
|
1269
|
+
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
1270
|
+
return SERVER_PROPS_EXPORT_ERROR;
|
|
1271
|
+
},
|
|
1272
|
+
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
1273
|
+
return SERVER_PROPS_GET_INIT_PROPS_CONFLICT;
|
|
1274
|
+
},
|
|
1275
|
+
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
1276
|
+
return SERVER_PROPS_SSG_CONFLICT;
|
|
1277
|
+
},
|
|
1278
|
+
SERVER_RUNTIME: function() {
|
|
1279
|
+
return SERVER_RUNTIME;
|
|
1280
|
+
},
|
|
1281
|
+
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
1282
|
+
return SSG_FALLBACK_EXPORT_ERROR;
|
|
1283
|
+
},
|
|
1284
|
+
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
1285
|
+
return SSG_GET_INITIAL_PROPS_CONFLICT;
|
|
1286
|
+
},
|
|
1287
|
+
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
1288
|
+
return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
|
|
1289
|
+
},
|
|
1290
|
+
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
1291
|
+
return UNSTABLE_REVALIDATE_RENAME_ERROR;
|
|
1292
|
+
},
|
|
1293
|
+
WEBPACK_LAYERS: function() {
|
|
1294
|
+
return WEBPACK_LAYERS;
|
|
1295
|
+
},
|
|
1296
|
+
WEBPACK_RESOURCE_QUERIES: function() {
|
|
1297
|
+
return WEBPACK_RESOURCE_QUERIES;
|
|
1298
|
+
}
|
|
1299
|
+
});
|
|
1300
|
+
var NEXT_QUERY_PARAM_PREFIX = "nxtP";
|
|
1301
|
+
var NEXT_INTERCEPTION_MARKER_PREFIX = "nxtI";
|
|
1302
|
+
var MATCHED_PATH_HEADER = "x-matched-path";
|
|
1303
|
+
var PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
|
|
1304
|
+
var PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = "x-prerender-revalidate-if-generated";
|
|
1305
|
+
var RSC_PREFETCH_SUFFIX = ".prefetch.rsc";
|
|
1306
|
+
var RSC_SEGMENTS_DIR_SUFFIX = ".segments";
|
|
1307
|
+
var RSC_SEGMENT_SUFFIX = ".segment.rsc";
|
|
1308
|
+
var RSC_SUFFIX = ".rsc";
|
|
1309
|
+
var ACTION_SUFFIX = ".action";
|
|
1310
|
+
var NEXT_DATA_SUFFIX = ".json";
|
|
1311
|
+
var NEXT_META_SUFFIX = ".meta";
|
|
1312
|
+
var NEXT_BODY_SUFFIX = ".body";
|
|
1313
|
+
var NEXT_CACHE_TAGS_HEADER = "x-next-cache-tags";
|
|
1314
|
+
var NEXT_CACHE_REVALIDATED_TAGS_HEADER = "x-next-revalidated-tags";
|
|
1315
|
+
var NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER = "x-next-revalidate-tag-token";
|
|
1316
|
+
var NEXT_RESUME_HEADER = "next-resume";
|
|
1317
|
+
var NEXT_CACHE_TAG_MAX_ITEMS = 128;
|
|
1318
|
+
var NEXT_CACHE_TAG_MAX_LENGTH = 256;
|
|
1319
|
+
var NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024;
|
|
1320
|
+
var NEXT_CACHE_IMPLICIT_TAG_ID = "_N_T_";
|
|
1321
|
+
var CACHE_ONE_YEAR = 31536e3;
|
|
1322
|
+
var INFINITE_CACHE = 4294967294;
|
|
1323
|
+
var MIDDLEWARE_FILENAME = "middleware";
|
|
1324
|
+
var MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`;
|
|
1325
|
+
var INSTRUMENTATION_HOOK_FILENAME = "instrumentation";
|
|
1326
|
+
var PAGES_DIR_ALIAS = "private-next-pages";
|
|
1327
|
+
var DOT_NEXT_ALIAS = "private-dot-next";
|
|
1328
|
+
var ROOT_DIR_ALIAS = "private-next-root-dir";
|
|
1329
|
+
var APP_DIR_ALIAS = "private-next-app-dir";
|
|
1330
|
+
var RSC_MOD_REF_PROXY_ALIAS = "private-next-rsc-mod-ref-proxy";
|
|
1331
|
+
var RSC_ACTION_VALIDATE_ALIAS = "private-next-rsc-action-validate";
|
|
1332
|
+
var RSC_ACTION_PROXY_ALIAS = "private-next-rsc-server-reference";
|
|
1333
|
+
var RSC_CACHE_WRAPPER_ALIAS = "private-next-rsc-cache-wrapper";
|
|
1334
|
+
var RSC_ACTION_ENCRYPTION_ALIAS = "private-next-rsc-action-encryption";
|
|
1335
|
+
var RSC_ACTION_CLIENT_WRAPPER_ALIAS = "private-next-rsc-action-client-wrapper";
|
|
1336
|
+
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`;
|
|
1337
|
+
var SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`;
|
|
1338
|
+
var SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`;
|
|
1339
|
+
var SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`;
|
|
1340
|
+
var STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`;
|
|
1341
|
+
var SERVER_PROPS_EXPORT_ERROR = `pages with \`getServerSideProps\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`;
|
|
1342
|
+
var GSP_NO_RETURNED_VALUE = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?";
|
|
1343
|
+
var GSSP_NO_RETURNED_VALUE = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?";
|
|
1344
|
+
var UNSTABLE_REVALIDATE_RENAME_ERROR = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.";
|
|
1345
|
+
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`;
|
|
1346
|
+
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`;
|
|
1347
|
+
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`;
|
|
1348
|
+
var ESLINT_DEFAULT_DIRS = [
|
|
1349
|
+
"app",
|
|
1350
|
+
"pages",
|
|
1351
|
+
"components",
|
|
1352
|
+
"lib",
|
|
1353
|
+
"src"
|
|
1354
|
+
];
|
|
1355
|
+
var SERVER_RUNTIME = {
|
|
1356
|
+
edge: "edge",
|
|
1357
|
+
experimentalEdge: "experimental-edge",
|
|
1358
|
+
nodejs: "nodejs"
|
|
1359
|
+
};
|
|
1360
|
+
var WEBPACK_LAYERS_NAMES = {
|
|
1361
|
+
/**
|
|
1362
|
+
* The layer for the shared code between the client and server bundles.
|
|
1363
|
+
*/
|
|
1364
|
+
shared: "shared",
|
|
1365
|
+
/**
|
|
1366
|
+
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
1367
|
+
* Including app router RSC pages and app router custom routes and metadata routes.
|
|
1368
|
+
*/
|
|
1369
|
+
reactServerComponents: "rsc",
|
|
1370
|
+
/**
|
|
1371
|
+
* Server Side Rendering layer for app (ssr).
|
|
1372
|
+
*/
|
|
1373
|
+
serverSideRendering: "ssr",
|
|
1374
|
+
/**
|
|
1375
|
+
* The browser client bundle layer for actions.
|
|
1376
|
+
*/
|
|
1377
|
+
actionBrowser: "action-browser",
|
|
1378
|
+
/**
|
|
1379
|
+
* The Node.js bundle layer for the API routes.
|
|
1380
|
+
*/
|
|
1381
|
+
apiNode: "api-node",
|
|
1382
|
+
/**
|
|
1383
|
+
* The Edge Lite bundle layer for the API routes.
|
|
1384
|
+
*/
|
|
1385
|
+
apiEdge: "api-edge",
|
|
1386
|
+
/**
|
|
1387
|
+
* The layer for the middleware code.
|
|
1388
|
+
*/
|
|
1389
|
+
middleware: "middleware",
|
|
1390
|
+
/**
|
|
1391
|
+
* The layer for the instrumentation hooks.
|
|
1392
|
+
*/
|
|
1393
|
+
instrument: "instrument",
|
|
1394
|
+
/**
|
|
1395
|
+
* The layer for assets on the edge.
|
|
1396
|
+
*/
|
|
1397
|
+
edgeAsset: "edge-asset",
|
|
1398
|
+
/**
|
|
1399
|
+
* The browser client bundle layer for App directory.
|
|
1400
|
+
*/
|
|
1401
|
+
appPagesBrowser: "app-pages-browser",
|
|
1402
|
+
/**
|
|
1403
|
+
* The browser client bundle layer for Pages directory.
|
|
1404
|
+
*/
|
|
1405
|
+
pagesDirBrowser: "pages-dir-browser",
|
|
1406
|
+
/**
|
|
1407
|
+
* The Edge Lite bundle layer for Pages directory.
|
|
1408
|
+
*/
|
|
1409
|
+
pagesDirEdge: "pages-dir-edge",
|
|
1410
|
+
/**
|
|
1411
|
+
* The Node.js bundle layer for Pages directory.
|
|
1412
|
+
*/
|
|
1413
|
+
pagesDirNode: "pages-dir-node"
|
|
1414
|
+
};
|
|
1415
|
+
var WEBPACK_LAYERS = __spreadProps(__spreadValues({}, WEBPACK_LAYERS_NAMES), {
|
|
1416
|
+
GROUP: {
|
|
1417
|
+
builtinReact: [
|
|
1418
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1419
|
+
WEBPACK_LAYERS_NAMES.actionBrowser
|
|
1420
|
+
],
|
|
1421
|
+
serverOnly: [
|
|
1422
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1423
|
+
WEBPACK_LAYERS_NAMES.actionBrowser,
|
|
1424
|
+
WEBPACK_LAYERS_NAMES.instrument,
|
|
1425
|
+
WEBPACK_LAYERS_NAMES.middleware
|
|
1426
|
+
],
|
|
1427
|
+
neutralTarget: [
|
|
1428
|
+
// pages api
|
|
1429
|
+
WEBPACK_LAYERS_NAMES.apiNode,
|
|
1430
|
+
WEBPACK_LAYERS_NAMES.apiEdge
|
|
1431
|
+
],
|
|
1432
|
+
clientOnly: [
|
|
1433
|
+
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
1434
|
+
WEBPACK_LAYERS_NAMES.appPagesBrowser
|
|
1435
|
+
],
|
|
1436
|
+
bundled: [
|
|
1437
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1438
|
+
WEBPACK_LAYERS_NAMES.actionBrowser,
|
|
1439
|
+
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
1440
|
+
WEBPACK_LAYERS_NAMES.appPagesBrowser,
|
|
1441
|
+
WEBPACK_LAYERS_NAMES.shared,
|
|
1442
|
+
WEBPACK_LAYERS_NAMES.instrument,
|
|
1443
|
+
WEBPACK_LAYERS_NAMES.middleware
|
|
1444
|
+
],
|
|
1445
|
+
appPages: [
|
|
1446
|
+
// app router pages and layouts
|
|
1447
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1448
|
+
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
1449
|
+
WEBPACK_LAYERS_NAMES.appPagesBrowser,
|
|
1450
|
+
WEBPACK_LAYERS_NAMES.actionBrowser
|
|
1451
|
+
]
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
var WEBPACK_RESOURCE_QUERIES = {
|
|
1455
|
+
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
1456
|
+
metadata: "__next_metadata__",
|
|
1457
|
+
metadataRoute: "__next_metadata_route__",
|
|
1458
|
+
metadataImageMeta: "__next_metadata_image_meta__"
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
});
|
|
1462
|
+
|
|
1463
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/utils.js
|
|
1464
|
+
var require_utils = __commonJS({
|
|
1465
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/utils.js"(exports) {
|
|
1466
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1467
|
+
value: true
|
|
1468
|
+
});
|
|
1469
|
+
function _export(target, all) {
|
|
1470
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1471
|
+
enumerable: true,
|
|
1472
|
+
get: all[name]
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
_export(exports, {
|
|
1476
|
+
fromNodeOutgoingHttpHeaders: function() {
|
|
1477
|
+
return fromNodeOutgoingHttpHeaders;
|
|
1478
|
+
},
|
|
1479
|
+
normalizeNextQueryParam: function() {
|
|
1480
|
+
return normalizeNextQueryParam;
|
|
1481
|
+
},
|
|
1482
|
+
splitCookiesString: function() {
|
|
1483
|
+
return splitCookiesString;
|
|
1484
|
+
},
|
|
1485
|
+
toNodeOutgoingHttpHeaders: function() {
|
|
1486
|
+
return toNodeOutgoingHttpHeaders;
|
|
1487
|
+
},
|
|
1488
|
+
validateURL: function() {
|
|
1489
|
+
return validateURL;
|
|
1490
|
+
}
|
|
1491
|
+
});
|
|
1492
|
+
var _constants = require_constants();
|
|
1493
|
+
function fromNodeOutgoingHttpHeaders(nodeHeaders) {
|
|
1494
|
+
const headers = new Headers();
|
|
1495
|
+
for (let [key, value] of Object.entries(nodeHeaders)) {
|
|
1496
|
+
const values = Array.isArray(value) ? value : [
|
|
1497
|
+
value
|
|
1498
|
+
];
|
|
1499
|
+
for (let v of values) {
|
|
1500
|
+
if (typeof v === "undefined") continue;
|
|
1501
|
+
if (typeof v === "number") {
|
|
1502
|
+
v = v.toString();
|
|
1503
|
+
}
|
|
1504
|
+
headers.append(key, v);
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
return headers;
|
|
1508
|
+
}
|
|
1509
|
+
function splitCookiesString(cookiesString) {
|
|
1510
|
+
var cookiesStrings = [];
|
|
1511
|
+
var pos = 0;
|
|
1512
|
+
var start;
|
|
1513
|
+
var ch;
|
|
1514
|
+
var lastComma;
|
|
1515
|
+
var nextStart;
|
|
1516
|
+
var cookiesSeparatorFound;
|
|
1517
|
+
function skipWhitespace() {
|
|
1518
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
1519
|
+
pos += 1;
|
|
1520
|
+
}
|
|
1521
|
+
return pos < cookiesString.length;
|
|
1522
|
+
}
|
|
1523
|
+
function notSpecialChar() {
|
|
1524
|
+
ch = cookiesString.charAt(pos);
|
|
1525
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
1526
|
+
}
|
|
1527
|
+
while (pos < cookiesString.length) {
|
|
1528
|
+
start = pos;
|
|
1529
|
+
cookiesSeparatorFound = false;
|
|
1530
|
+
while (skipWhitespace()) {
|
|
1531
|
+
ch = cookiesString.charAt(pos);
|
|
1532
|
+
if (ch === ",") {
|
|
1533
|
+
lastComma = pos;
|
|
1534
|
+
pos += 1;
|
|
1535
|
+
skipWhitespace();
|
|
1536
|
+
nextStart = pos;
|
|
1537
|
+
while (pos < cookiesString.length && notSpecialChar()) {
|
|
1538
|
+
pos += 1;
|
|
1539
|
+
}
|
|
1540
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
1541
|
+
cookiesSeparatorFound = true;
|
|
1542
|
+
pos = nextStart;
|
|
1543
|
+
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
1544
|
+
start = pos;
|
|
1545
|
+
} else {
|
|
1546
|
+
pos = lastComma + 1;
|
|
1547
|
+
}
|
|
1548
|
+
} else {
|
|
1549
|
+
pos += 1;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
1553
|
+
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
return cookiesStrings;
|
|
1557
|
+
}
|
|
1558
|
+
function toNodeOutgoingHttpHeaders(headers) {
|
|
1559
|
+
const nodeHeaders = {};
|
|
1560
|
+
const cookies = [];
|
|
1561
|
+
if (headers) {
|
|
1562
|
+
for (const [key, value] of headers.entries()) {
|
|
1563
|
+
if (key.toLowerCase() === "set-cookie") {
|
|
1564
|
+
cookies.push(...splitCookiesString(value));
|
|
1565
|
+
nodeHeaders[key] = cookies.length === 1 ? cookies[0] : cookies;
|
|
1566
|
+
} else {
|
|
1567
|
+
nodeHeaders[key] = value;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
return nodeHeaders;
|
|
1572
|
+
}
|
|
1573
|
+
function validateURL(url) {
|
|
1574
|
+
try {
|
|
1575
|
+
return String(new URL(String(url)));
|
|
1576
|
+
} catch (error) {
|
|
1577
|
+
throw Object.defineProperty(new Error(`URL is malformed "${String(url)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
|
|
1578
|
+
cause: error
|
|
1579
|
+
}), "__NEXT_ERROR_CODE", {
|
|
1580
|
+
value: "E61",
|
|
1581
|
+
enumerable: false,
|
|
1582
|
+
configurable: true
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
function normalizeNextQueryParam(key) {
|
|
1587
|
+
const prefixes = [
|
|
1588
|
+
_constants.NEXT_QUERY_PARAM_PREFIX,
|
|
1589
|
+
_constants.NEXT_INTERCEPTION_MARKER_PREFIX
|
|
1590
|
+
];
|
|
1591
|
+
for (const prefix of prefixes) {
|
|
1592
|
+
if (key !== prefix && key.startsWith(prefix)) {
|
|
1593
|
+
return key.substring(prefix.length);
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
return null;
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
});
|
|
1600
|
+
|
|
1601
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/error.js
|
|
1602
|
+
var require_error = __commonJS({
|
|
1603
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/error.js"(exports) {
|
|
1604
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1605
|
+
value: true
|
|
1606
|
+
});
|
|
1607
|
+
function _export(target, all) {
|
|
1608
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1609
|
+
enumerable: true,
|
|
1610
|
+
get: all[name]
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
_export(exports, {
|
|
1614
|
+
PageSignatureError: function() {
|
|
1615
|
+
return PageSignatureError;
|
|
1616
|
+
},
|
|
1617
|
+
RemovedPageError: function() {
|
|
1618
|
+
return RemovedPageError;
|
|
1619
|
+
},
|
|
1620
|
+
RemovedUAError: function() {
|
|
1621
|
+
return RemovedUAError;
|
|
1622
|
+
}
|
|
1623
|
+
});
|
|
1624
|
+
var PageSignatureError = class extends Error {
|
|
1625
|
+
constructor({ page }) {
|
|
1626
|
+
super(`The middleware "${page}" accepts an async API directly with the form:
|
|
1627
|
+
|
|
1628
|
+
export function middleware(request, event) {
|
|
1629
|
+
return NextResponse.redirect('/new-location')
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
|
1633
|
+
`);
|
|
1634
|
+
}
|
|
1635
|
+
};
|
|
1636
|
+
var RemovedPageError = class extends Error {
|
|
1637
|
+
constructor() {
|
|
1638
|
+
super(`The request.page has been deprecated in favour of \`URLPattern\`.
|
|
1639
|
+
Read more: https://nextjs.org/docs/messages/middleware-request-page
|
|
1640
|
+
`);
|
|
1641
|
+
}
|
|
1642
|
+
};
|
|
1643
|
+
var RemovedUAError = class extends Error {
|
|
1644
|
+
constructor() {
|
|
1645
|
+
super(`The request.ua has been removed in favour of \`userAgent\` function.
|
|
1646
|
+
Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
|
|
1647
|
+
`);
|
|
1648
|
+
}
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
});
|
|
1652
|
+
|
|
1653
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
|
|
1654
|
+
var require_cookies = __commonJS({
|
|
1655
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js"(exports, module) {
|
|
1656
|
+
var __defProp = Object.defineProperty;
|
|
1657
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1658
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1659
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1660
|
+
var __export2 = (target, all) => {
|
|
1661
|
+
for (var name in all)
|
|
1662
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1663
|
+
};
|
|
1664
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1665
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1666
|
+
for (let key of __getOwnPropNames(from))
|
|
1667
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1668
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1669
|
+
}
|
|
1670
|
+
return to;
|
|
1671
|
+
};
|
|
1672
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1673
|
+
var src_exports = {};
|
|
1674
|
+
__export2(src_exports, {
|
|
1675
|
+
RequestCookies: () => RequestCookies,
|
|
1676
|
+
ResponseCookies: () => ResponseCookies,
|
|
1677
|
+
parseCookie: () => parseCookie,
|
|
1678
|
+
parseSetCookie: () => parseSetCookie,
|
|
1679
|
+
stringifyCookie: () => stringifyCookie
|
|
1680
|
+
});
|
|
1681
|
+
module.exports = __toCommonJS(src_exports);
|
|
1682
|
+
function stringifyCookie(c) {
|
|
1683
|
+
var _a;
|
|
1684
|
+
const attrs = [
|
|
1685
|
+
"path" in c && c.path && `Path=${c.path}`,
|
|
1686
|
+
"expires" in c && (c.expires || c.expires === 0) && `Expires=${(typeof c.expires === "number" ? new Date(c.expires) : c.expires).toUTCString()}`,
|
|
1687
|
+
"maxAge" in c && typeof c.maxAge === "number" && `Max-Age=${c.maxAge}`,
|
|
1688
|
+
"domain" in c && c.domain && `Domain=${c.domain}`,
|
|
1689
|
+
"secure" in c && c.secure && "Secure",
|
|
1690
|
+
"httpOnly" in c && c.httpOnly && "HttpOnly",
|
|
1691
|
+
"sameSite" in c && c.sameSite && `SameSite=${c.sameSite}`,
|
|
1692
|
+
"partitioned" in c && c.partitioned && "Partitioned",
|
|
1693
|
+
"priority" in c && c.priority && `Priority=${c.priority}`
|
|
1694
|
+
].filter(Boolean);
|
|
1695
|
+
const stringified = `${c.name}=${encodeURIComponent((_a = c.value) != null ? _a : "")}`;
|
|
1696
|
+
return attrs.length === 0 ? stringified : `${stringified}; ${attrs.join("; ")}`;
|
|
1697
|
+
}
|
|
1698
|
+
function parseCookie(cookie) {
|
|
1699
|
+
const map = /* @__PURE__ */ new Map();
|
|
1700
|
+
for (const pair of cookie.split(/; */)) {
|
|
1701
|
+
if (!pair)
|
|
1702
|
+
continue;
|
|
1703
|
+
const splitAt = pair.indexOf("=");
|
|
1704
|
+
if (splitAt === -1) {
|
|
1705
|
+
map.set(pair, "true");
|
|
1706
|
+
continue;
|
|
1707
|
+
}
|
|
1708
|
+
const [key, value] = [pair.slice(0, splitAt), pair.slice(splitAt + 1)];
|
|
1709
|
+
try {
|
|
1710
|
+
map.set(key, decodeURIComponent(value != null ? value : "true"));
|
|
1711
|
+
} catch (e) {
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
return map;
|
|
1715
|
+
}
|
|
1716
|
+
function parseSetCookie(setCookie) {
|
|
1717
|
+
if (!setCookie) {
|
|
1718
|
+
return void 0;
|
|
1719
|
+
}
|
|
1720
|
+
const [[name, value], ...attributes] = parseCookie(setCookie);
|
|
1721
|
+
const {
|
|
1722
|
+
domain,
|
|
1723
|
+
expires,
|
|
1724
|
+
httponly,
|
|
1725
|
+
maxage,
|
|
1726
|
+
path,
|
|
1727
|
+
samesite,
|
|
1728
|
+
secure,
|
|
1729
|
+
partitioned,
|
|
1730
|
+
priority
|
|
1731
|
+
} = Object.fromEntries(
|
|
1732
|
+
attributes.map(([key, value2]) => [
|
|
1733
|
+
key.toLowerCase().replace(/-/g, ""),
|
|
1734
|
+
value2
|
|
1735
|
+
])
|
|
1736
|
+
);
|
|
1737
|
+
const cookie = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
1738
|
+
name,
|
|
1739
|
+
value: decodeURIComponent(value),
|
|
1740
|
+
domain
|
|
1741
|
+
}, expires && { expires: new Date(expires) }), httponly && { httpOnly: true }), typeof maxage === "string" && { maxAge: Number(maxage) }), {
|
|
1742
|
+
path
|
|
1743
|
+
}), samesite && { sameSite: parseSameSite(samesite) }), secure && { secure: true }), priority && { priority: parsePriority(priority) }), partitioned && { partitioned: true });
|
|
1744
|
+
return compact(cookie);
|
|
1745
|
+
}
|
|
1746
|
+
function compact(t) {
|
|
1747
|
+
const newT = {};
|
|
1748
|
+
for (const key in t) {
|
|
1749
|
+
if (t[key]) {
|
|
1750
|
+
newT[key] = t[key];
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
return newT;
|
|
1754
|
+
}
|
|
1755
|
+
var SAME_SITE = ["strict", "lax", "none"];
|
|
1756
|
+
function parseSameSite(string) {
|
|
1757
|
+
string = string.toLowerCase();
|
|
1758
|
+
return SAME_SITE.includes(string) ? string : void 0;
|
|
1759
|
+
}
|
|
1760
|
+
var PRIORITY = ["low", "medium", "high"];
|
|
1761
|
+
function parsePriority(string) {
|
|
1762
|
+
string = string.toLowerCase();
|
|
1763
|
+
return PRIORITY.includes(string) ? string : void 0;
|
|
1764
|
+
}
|
|
1765
|
+
function splitCookiesString(cookiesString) {
|
|
1766
|
+
if (!cookiesString)
|
|
1767
|
+
return [];
|
|
1768
|
+
var cookiesStrings = [];
|
|
1769
|
+
var pos = 0;
|
|
1770
|
+
var start;
|
|
1771
|
+
var ch;
|
|
1772
|
+
var lastComma;
|
|
1773
|
+
var nextStart;
|
|
1774
|
+
var cookiesSeparatorFound;
|
|
1775
|
+
function skipWhitespace() {
|
|
1776
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
1777
|
+
pos += 1;
|
|
1778
|
+
}
|
|
1779
|
+
return pos < cookiesString.length;
|
|
1780
|
+
}
|
|
1781
|
+
function notSpecialChar() {
|
|
1782
|
+
ch = cookiesString.charAt(pos);
|
|
1783
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
1784
|
+
}
|
|
1785
|
+
while (pos < cookiesString.length) {
|
|
1786
|
+
start = pos;
|
|
1787
|
+
cookiesSeparatorFound = false;
|
|
1788
|
+
while (skipWhitespace()) {
|
|
1789
|
+
ch = cookiesString.charAt(pos);
|
|
1790
|
+
if (ch === ",") {
|
|
1791
|
+
lastComma = pos;
|
|
1792
|
+
pos += 1;
|
|
1793
|
+
skipWhitespace();
|
|
1794
|
+
nextStart = pos;
|
|
1795
|
+
while (pos < cookiesString.length && notSpecialChar()) {
|
|
1796
|
+
pos += 1;
|
|
1797
|
+
}
|
|
1798
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
1799
|
+
cookiesSeparatorFound = true;
|
|
1800
|
+
pos = nextStart;
|
|
1801
|
+
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
1802
|
+
start = pos;
|
|
1803
|
+
} else {
|
|
1804
|
+
pos = lastComma + 1;
|
|
1805
|
+
}
|
|
1806
|
+
} else {
|
|
1807
|
+
pos += 1;
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
1811
|
+
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
return cookiesStrings;
|
|
1815
|
+
}
|
|
1816
|
+
var RequestCookies = class {
|
|
1817
|
+
constructor(requestHeaders) {
|
|
1818
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
1819
|
+
this._headers = requestHeaders;
|
|
1820
|
+
const header = requestHeaders.get("cookie");
|
|
1821
|
+
if (header) {
|
|
1822
|
+
const parsed = parseCookie(header);
|
|
1823
|
+
for (const [name, value] of parsed) {
|
|
1824
|
+
this._parsed.set(name, { name, value });
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
[Symbol.iterator]() {
|
|
1829
|
+
return this._parsed[Symbol.iterator]();
|
|
1830
|
+
}
|
|
1831
|
+
/**
|
|
1832
|
+
* The amount of cookies received from the client
|
|
1833
|
+
*/
|
|
1834
|
+
get size() {
|
|
1835
|
+
return this._parsed.size;
|
|
1836
|
+
}
|
|
1837
|
+
get(...args) {
|
|
1838
|
+
const name = typeof args[0] === "string" ? args[0] : args[0].name;
|
|
1839
|
+
return this._parsed.get(name);
|
|
1840
|
+
}
|
|
1841
|
+
getAll(...args) {
|
|
1842
|
+
var _a;
|
|
1843
|
+
const all = Array.from(this._parsed);
|
|
1844
|
+
if (!args.length) {
|
|
1845
|
+
return all.map(([_, value]) => value);
|
|
1846
|
+
}
|
|
1847
|
+
const name = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
|
|
1848
|
+
return all.filter(([n]) => n === name).map(([_, value]) => value);
|
|
1849
|
+
}
|
|
1850
|
+
has(name) {
|
|
1851
|
+
return this._parsed.has(name);
|
|
1852
|
+
}
|
|
1853
|
+
set(...args) {
|
|
1854
|
+
const [name, value] = args.length === 1 ? [args[0].name, args[0].value] : args;
|
|
1855
|
+
const map = this._parsed;
|
|
1856
|
+
map.set(name, { name, value });
|
|
1857
|
+
this._headers.set(
|
|
1858
|
+
"cookie",
|
|
1859
|
+
Array.from(map).map(([_, value2]) => stringifyCookie(value2)).join("; ")
|
|
1860
|
+
);
|
|
1861
|
+
return this;
|
|
1862
|
+
}
|
|
1863
|
+
/**
|
|
1864
|
+
* Delete the cookies matching the passed name or names in the request.
|
|
1865
|
+
*/
|
|
1866
|
+
delete(names) {
|
|
1867
|
+
const map = this._parsed;
|
|
1868
|
+
const result = !Array.isArray(names) ? map.delete(names) : names.map((name) => map.delete(name));
|
|
1869
|
+
this._headers.set(
|
|
1870
|
+
"cookie",
|
|
1871
|
+
Array.from(map).map(([_, value]) => stringifyCookie(value)).join("; ")
|
|
1872
|
+
);
|
|
1873
|
+
return result;
|
|
1874
|
+
}
|
|
1875
|
+
/**
|
|
1876
|
+
* Delete all the cookies in the cookies in the request.
|
|
1877
|
+
*/
|
|
1878
|
+
clear() {
|
|
1879
|
+
this.delete(Array.from(this._parsed.keys()));
|
|
1880
|
+
return this;
|
|
1881
|
+
}
|
|
1882
|
+
/**
|
|
1883
|
+
* Format the cookies in the request as a string for logging
|
|
1884
|
+
*/
|
|
1885
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1886
|
+
return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
1887
|
+
}
|
|
1888
|
+
toString() {
|
|
1889
|
+
return [...this._parsed.values()].map((v) => `${v.name}=${encodeURIComponent(v.value)}`).join("; ");
|
|
1890
|
+
}
|
|
1891
|
+
};
|
|
1892
|
+
var ResponseCookies = class {
|
|
1893
|
+
constructor(responseHeaders) {
|
|
1894
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
1895
|
+
var _a, _b, _c;
|
|
1896
|
+
this._headers = responseHeaders;
|
|
1897
|
+
const setCookie = (_c = (_b = (_a = responseHeaders.getSetCookie) == null ? void 0 : _a.call(responseHeaders)) != null ? _b : responseHeaders.get("set-cookie")) != null ? _c : [];
|
|
1898
|
+
const cookieStrings = Array.isArray(setCookie) ? setCookie : splitCookiesString(setCookie);
|
|
1899
|
+
for (const cookieString of cookieStrings) {
|
|
1900
|
+
const parsed = parseSetCookie(cookieString);
|
|
1901
|
+
if (parsed)
|
|
1902
|
+
this._parsed.set(parsed.name, parsed);
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
/**
|
|
1906
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
1907
|
+
*/
|
|
1908
|
+
get(...args) {
|
|
1909
|
+
const key = typeof args[0] === "string" ? args[0] : args[0].name;
|
|
1910
|
+
return this._parsed.get(key);
|
|
1911
|
+
}
|
|
1912
|
+
/**
|
|
1913
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
1914
|
+
*/
|
|
1915
|
+
getAll(...args) {
|
|
1916
|
+
var _a;
|
|
1917
|
+
const all = Array.from(this._parsed.values());
|
|
1918
|
+
if (!args.length) {
|
|
1919
|
+
return all;
|
|
1920
|
+
}
|
|
1921
|
+
const key = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
|
|
1922
|
+
return all.filter((c) => c.name === key);
|
|
1923
|
+
}
|
|
1924
|
+
has(name) {
|
|
1925
|
+
return this._parsed.has(name);
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
1929
|
+
*/
|
|
1930
|
+
set(...args) {
|
|
1931
|
+
const [name, value, cookie] = args.length === 1 ? [args[0].name, args[0].value, args[0]] : args;
|
|
1932
|
+
const map = this._parsed;
|
|
1933
|
+
map.set(name, normalizeCookie(__spreadValues({ name, value }, cookie)));
|
|
1934
|
+
replace(map, this._headers);
|
|
1935
|
+
return this;
|
|
1936
|
+
}
|
|
1937
|
+
/**
|
|
1938
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
1939
|
+
*/
|
|
1940
|
+
delete(...args) {
|
|
1941
|
+
const [name, options] = typeof args[0] === "string" ? [args[0]] : [args[0].name, args[0]];
|
|
1942
|
+
return this.set(__spreadProps(__spreadValues({}, options), { name, value: "", expires: /* @__PURE__ */ new Date(0) }));
|
|
1943
|
+
}
|
|
1944
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1945
|
+
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
1946
|
+
}
|
|
1947
|
+
toString() {
|
|
1948
|
+
return [...this._parsed.values()].map(stringifyCookie).join("; ");
|
|
1949
|
+
}
|
|
1950
|
+
};
|
|
1951
|
+
function replace(bag, headers) {
|
|
1952
|
+
headers.delete("set-cookie");
|
|
1953
|
+
for (const [, value] of bag) {
|
|
1954
|
+
const serialized = stringifyCookie(value);
|
|
1955
|
+
headers.append("set-cookie", serialized);
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function normalizeCookie(cookie = { name: "", value: "" }) {
|
|
1959
|
+
if (typeof cookie.expires === "number") {
|
|
1960
|
+
cookie.expires = new Date(cookie.expires);
|
|
1961
|
+
}
|
|
1962
|
+
if (cookie.maxAge) {
|
|
1963
|
+
cookie.expires = new Date(Date.now() + cookie.maxAge * 1e3);
|
|
1964
|
+
}
|
|
1965
|
+
if (cookie.path === null || cookie.path === void 0) {
|
|
1966
|
+
cookie.path = "/";
|
|
1967
|
+
}
|
|
1968
|
+
return cookie;
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
});
|
|
1972
|
+
|
|
1973
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/cookies.js
|
|
1974
|
+
var require_cookies2 = __commonJS({
|
|
1975
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/cookies.js"(exports) {
|
|
1976
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1977
|
+
value: true
|
|
1978
|
+
});
|
|
1979
|
+
function _export(target, all) {
|
|
1980
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1981
|
+
enumerable: true,
|
|
1982
|
+
get: all[name]
|
|
1983
|
+
});
|
|
1984
|
+
}
|
|
1985
|
+
_export(exports, {
|
|
1986
|
+
RequestCookies: function() {
|
|
1987
|
+
return _cookies.RequestCookies;
|
|
1988
|
+
},
|
|
1989
|
+
ResponseCookies: function() {
|
|
1990
|
+
return _cookies.ResponseCookies;
|
|
1991
|
+
},
|
|
1992
|
+
stringifyCookie: function() {
|
|
1993
|
+
return _cookies.stringifyCookie;
|
|
1994
|
+
}
|
|
1995
|
+
});
|
|
1996
|
+
var _cookies = require_cookies();
|
|
1997
|
+
}
|
|
1998
|
+
});
|
|
1999
|
+
|
|
2000
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/request.js
|
|
2001
|
+
var require_request = __commonJS({
|
|
2002
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/request.js"(exports) {
|
|
2003
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2004
|
+
value: true
|
|
2005
|
+
});
|
|
2006
|
+
function _export(target, all) {
|
|
2007
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2008
|
+
enumerable: true,
|
|
2009
|
+
get: all[name]
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
_export(exports, {
|
|
2013
|
+
INTERNALS: function() {
|
|
2014
|
+
return INTERNALS;
|
|
2015
|
+
},
|
|
2016
|
+
NextRequest: function() {
|
|
2017
|
+
return NextRequest2;
|
|
2018
|
+
}
|
|
2019
|
+
});
|
|
2020
|
+
var _nexturl = require_next_url();
|
|
2021
|
+
var _utils = require_utils();
|
|
2022
|
+
var _error = require_error();
|
|
2023
|
+
var _cookies = require_cookies2();
|
|
2024
|
+
var INTERNALS = Symbol("internal request");
|
|
2025
|
+
var NextRequest2 = class extends Request {
|
|
2026
|
+
constructor(input, init = {}) {
|
|
2027
|
+
const url = typeof input !== "string" && "url" in input ? input.url : String(input);
|
|
2028
|
+
(0, _utils.validateURL)(url);
|
|
2029
|
+
if (process.env.NEXT_RUNTIME !== "edge") {
|
|
2030
|
+
if (init.body && init.duplex !== "half") {
|
|
2031
|
+
init.duplex = "half";
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
if (input instanceof Request) super(input, init);
|
|
2035
|
+
else super(url, init);
|
|
2036
|
+
const nextUrl = new _nexturl.NextURL(url, {
|
|
2037
|
+
headers: (0, _utils.toNodeOutgoingHttpHeaders)(this.headers),
|
|
2038
|
+
nextConfig: init.nextConfig
|
|
2039
|
+
});
|
|
2040
|
+
this[INTERNALS] = {
|
|
2041
|
+
cookies: new _cookies.RequestCookies(this.headers),
|
|
2042
|
+
nextUrl,
|
|
2043
|
+
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? url : nextUrl.toString()
|
|
2044
|
+
};
|
|
2045
|
+
}
|
|
2046
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
2047
|
+
return {
|
|
2048
|
+
cookies: this.cookies,
|
|
2049
|
+
nextUrl: this.nextUrl,
|
|
2050
|
+
url: this.url,
|
|
2051
|
+
// rest of props come from Request
|
|
2052
|
+
bodyUsed: this.bodyUsed,
|
|
2053
|
+
cache: this.cache,
|
|
2054
|
+
credentials: this.credentials,
|
|
2055
|
+
destination: this.destination,
|
|
2056
|
+
headers: Object.fromEntries(this.headers),
|
|
2057
|
+
integrity: this.integrity,
|
|
2058
|
+
keepalive: this.keepalive,
|
|
2059
|
+
method: this.method,
|
|
2060
|
+
mode: this.mode,
|
|
2061
|
+
redirect: this.redirect,
|
|
2062
|
+
referrer: this.referrer,
|
|
2063
|
+
referrerPolicy: this.referrerPolicy,
|
|
2064
|
+
signal: this.signal
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2067
|
+
get cookies() {
|
|
2068
|
+
return this[INTERNALS].cookies;
|
|
2069
|
+
}
|
|
2070
|
+
get nextUrl() {
|
|
2071
|
+
return this[INTERNALS].nextUrl;
|
|
2072
|
+
}
|
|
2073
|
+
/**
|
|
2074
|
+
* @deprecated
|
|
2075
|
+
* `page` has been deprecated in favour of `URLPattern`.
|
|
2076
|
+
* Read more: https://nextjs.org/docs/messages/middleware-request-page
|
|
2077
|
+
*/
|
|
2078
|
+
get page() {
|
|
2079
|
+
throw new _error.RemovedPageError();
|
|
2080
|
+
}
|
|
2081
|
+
/**
|
|
2082
|
+
* @deprecated
|
|
2083
|
+
* `ua` has been removed in favour of \`userAgent\` function.
|
|
2084
|
+
* Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
|
|
2085
|
+
*/
|
|
2086
|
+
get ua() {
|
|
2087
|
+
throw new _error.RemovedUAError();
|
|
2088
|
+
}
|
|
2089
|
+
get url() {
|
|
2090
|
+
return this[INTERNALS].url;
|
|
2091
|
+
}
|
|
2092
|
+
};
|
|
2093
|
+
}
|
|
2094
|
+
});
|
|
2095
|
+
|
|
2096
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js
|
|
2097
|
+
var require_reflect = __commonJS({
|
|
2098
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js"(exports) {
|
|
2099
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2100
|
+
value: true
|
|
2101
|
+
});
|
|
2102
|
+
Object.defineProperty(exports, "ReflectAdapter", {
|
|
2103
|
+
enumerable: true,
|
|
2104
|
+
get: function() {
|
|
2105
|
+
return ReflectAdapter;
|
|
2106
|
+
}
|
|
2107
|
+
});
|
|
2108
|
+
var ReflectAdapter = class {
|
|
2109
|
+
static get(target, prop, receiver) {
|
|
2110
|
+
const value = Reflect.get(target, prop, receiver);
|
|
2111
|
+
if (typeof value === "function") {
|
|
2112
|
+
return value.bind(target);
|
|
2113
|
+
}
|
|
2114
|
+
return value;
|
|
2115
|
+
}
|
|
2116
|
+
static set(target, prop, value, receiver) {
|
|
2117
|
+
return Reflect.set(target, prop, value, receiver);
|
|
2118
|
+
}
|
|
2119
|
+
static has(target, prop) {
|
|
2120
|
+
return Reflect.has(target, prop);
|
|
2121
|
+
}
|
|
2122
|
+
static deleteProperty(target, prop) {
|
|
2123
|
+
return Reflect.deleteProperty(target, prop);
|
|
2124
|
+
}
|
|
2125
|
+
};
|
|
2126
|
+
}
|
|
2127
|
+
});
|
|
2128
|
+
|
|
2129
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/response.js
|
|
2130
|
+
var require_response = __commonJS({
|
|
2131
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/response.js"(exports) {
|
|
2132
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2133
|
+
value: true
|
|
2134
|
+
});
|
|
2135
|
+
Object.defineProperty(exports, "NextResponse", {
|
|
2136
|
+
enumerable: true,
|
|
2137
|
+
get: function() {
|
|
2138
|
+
return NextResponse2;
|
|
2139
|
+
}
|
|
2140
|
+
});
|
|
2141
|
+
var _cookies = require_cookies2();
|
|
2142
|
+
var _nexturl = require_next_url();
|
|
2143
|
+
var _utils = require_utils();
|
|
2144
|
+
var _reflect = require_reflect();
|
|
2145
|
+
var _cookies1 = require_cookies2();
|
|
2146
|
+
var INTERNALS = Symbol("internal response");
|
|
2147
|
+
var REDIRECTS = /* @__PURE__ */ new Set([
|
|
2148
|
+
301,
|
|
2149
|
+
302,
|
|
2150
|
+
303,
|
|
2151
|
+
307,
|
|
2152
|
+
308
|
|
2153
|
+
]);
|
|
2154
|
+
function handleMiddlewareField(init, headers) {
|
|
2155
|
+
var _init_request;
|
|
2156
|
+
if (init == null ? void 0 : (_init_request = init.request) == null ? void 0 : _init_request.headers) {
|
|
2157
|
+
if (!(init.request.headers instanceof Headers)) {
|
|
2158
|
+
throw Object.defineProperty(new Error("request.headers must be an instance of Headers"), "__NEXT_ERROR_CODE", {
|
|
2159
|
+
value: "E119",
|
|
2160
|
+
enumerable: false,
|
|
2161
|
+
configurable: true
|
|
2162
|
+
});
|
|
2163
|
+
}
|
|
2164
|
+
const keys = [];
|
|
2165
|
+
for (const [key, value] of init.request.headers) {
|
|
2166
|
+
headers.set("x-middleware-request-" + key, value);
|
|
2167
|
+
keys.push(key);
|
|
2168
|
+
}
|
|
2169
|
+
headers.set("x-middleware-override-headers", keys.join(","));
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
var NextResponse2 = class _NextResponse extends Response {
|
|
2173
|
+
constructor(body, init = {}) {
|
|
2174
|
+
super(body, init);
|
|
2175
|
+
const headers = this.headers;
|
|
2176
|
+
const cookies = new _cookies1.ResponseCookies(headers);
|
|
2177
|
+
const cookiesProxy = new Proxy(cookies, {
|
|
2178
|
+
get(target, prop, receiver) {
|
|
2179
|
+
switch (prop) {
|
|
2180
|
+
case "delete":
|
|
2181
|
+
case "set": {
|
|
2182
|
+
return (...args) => {
|
|
2183
|
+
const result = Reflect.apply(target[prop], target, args);
|
|
2184
|
+
const newHeaders = new Headers(headers);
|
|
2185
|
+
if (result instanceof _cookies1.ResponseCookies) {
|
|
2186
|
+
headers.set("x-middleware-set-cookie", result.getAll().map((cookie) => (0, _cookies.stringifyCookie)(cookie)).join(","));
|
|
2187
|
+
}
|
|
2188
|
+
handleMiddlewareField(init, newHeaders);
|
|
2189
|
+
return result;
|
|
2190
|
+
};
|
|
2191
|
+
}
|
|
2192
|
+
default:
|
|
2193
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
});
|
|
2197
|
+
this[INTERNALS] = {
|
|
2198
|
+
cookies: cookiesProxy,
|
|
2199
|
+
url: init.url ? new _nexturl.NextURL(init.url, {
|
|
2200
|
+
headers: (0, _utils.toNodeOutgoingHttpHeaders)(headers),
|
|
2201
|
+
nextConfig: init.nextConfig
|
|
2202
|
+
}) : void 0
|
|
2203
|
+
};
|
|
2204
|
+
}
|
|
2205
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
2206
|
+
return {
|
|
2207
|
+
cookies: this.cookies,
|
|
2208
|
+
url: this.url,
|
|
2209
|
+
// rest of props come from Response
|
|
2210
|
+
body: this.body,
|
|
2211
|
+
bodyUsed: this.bodyUsed,
|
|
2212
|
+
headers: Object.fromEntries(this.headers),
|
|
2213
|
+
ok: this.ok,
|
|
2214
|
+
redirected: this.redirected,
|
|
2215
|
+
status: this.status,
|
|
2216
|
+
statusText: this.statusText,
|
|
2217
|
+
type: this.type
|
|
2218
|
+
};
|
|
2219
|
+
}
|
|
2220
|
+
get cookies() {
|
|
2221
|
+
return this[INTERNALS].cookies;
|
|
2222
|
+
}
|
|
2223
|
+
static json(body, init) {
|
|
2224
|
+
const response = Response.json(body, init);
|
|
2225
|
+
return new _NextResponse(response.body, response);
|
|
2226
|
+
}
|
|
2227
|
+
static redirect(url, init) {
|
|
2228
|
+
var _a;
|
|
2229
|
+
const status = typeof init === "number" ? init : (_a = init == null ? void 0 : init.status) != null ? _a : 307;
|
|
2230
|
+
if (!REDIRECTS.has(status)) {
|
|
2231
|
+
throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'), "__NEXT_ERROR_CODE", {
|
|
2232
|
+
value: "E529",
|
|
2233
|
+
enumerable: false,
|
|
2234
|
+
configurable: true
|
|
2235
|
+
});
|
|
2236
|
+
}
|
|
2237
|
+
const initObj = typeof init === "object" ? init : {};
|
|
2238
|
+
const headers = new Headers(initObj == null ? void 0 : initObj.headers);
|
|
2239
|
+
headers.set("Location", (0, _utils.validateURL)(url));
|
|
2240
|
+
return new _NextResponse(null, __spreadProps(__spreadValues({}, initObj), {
|
|
2241
|
+
headers,
|
|
2242
|
+
status
|
|
2243
|
+
}));
|
|
2244
|
+
}
|
|
2245
|
+
static rewrite(destination, init) {
|
|
2246
|
+
const headers = new Headers(init == null ? void 0 : init.headers);
|
|
2247
|
+
headers.set("x-middleware-rewrite", (0, _utils.validateURL)(destination));
|
|
2248
|
+
handleMiddlewareField(init, headers);
|
|
2249
|
+
return new _NextResponse(null, __spreadProps(__spreadValues({}, init), {
|
|
2250
|
+
headers
|
|
2251
|
+
}));
|
|
2252
|
+
}
|
|
2253
|
+
static next(init) {
|
|
2254
|
+
const headers = new Headers(init == null ? void 0 : init.headers);
|
|
2255
|
+
headers.set("x-middleware-next", "1");
|
|
2256
|
+
handleMiddlewareField(init, headers);
|
|
2257
|
+
return new _NextResponse(null, __spreadProps(__spreadValues({}, init), {
|
|
2258
|
+
headers
|
|
2259
|
+
}));
|
|
2260
|
+
}
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
});
|
|
2264
|
+
|
|
2265
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/image-response.js
|
|
2266
|
+
var require_image_response = __commonJS({
|
|
2267
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/image-response.js"(exports) {
|
|
2268
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2269
|
+
value: true
|
|
2270
|
+
});
|
|
2271
|
+
Object.defineProperty(exports, "ImageResponse", {
|
|
2272
|
+
enumerable: true,
|
|
2273
|
+
get: function() {
|
|
2274
|
+
return ImageResponse;
|
|
2275
|
+
}
|
|
2276
|
+
});
|
|
2277
|
+
function ImageResponse() {
|
|
2278
|
+
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", {
|
|
2279
|
+
value: "E183",
|
|
2280
|
+
enumerable: false,
|
|
2281
|
+
configurable: true
|
|
2282
|
+
});
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
});
|
|
2286
|
+
|
|
2287
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js
|
|
2288
|
+
var require_ua_parser = __commonJS({
|
|
2289
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js"(exports, module) {
|
|
2290
|
+
(() => {
|
|
2291
|
+
var i = { 226: function(i2, e2) {
|
|
2292
|
+
(function(o2, a) {
|
|
2293
|
+
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;
|
|
2294
|
+
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", F = "Xiaomi", G = "Zebra", H = "Facebook", L = "Chromium OS", Z = "Mac OS";
|
|
2295
|
+
var extend = function(i3, e3) {
|
|
2296
|
+
var o3 = {};
|
|
2297
|
+
for (var a2 in i3) {
|
|
2298
|
+
if (e3[a2] && e3[a2].length % 2 === 0) {
|
|
2299
|
+
o3[a2] = e3[a2].concat(i3[a2]);
|
|
2300
|
+
} else {
|
|
2301
|
+
o3[a2] = i3[a2];
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
return o3;
|
|
2305
|
+
}, enumerize = function(i3) {
|
|
2306
|
+
var e3 = {};
|
|
2307
|
+
for (var o3 = 0; o3 < i3.length; o3++) {
|
|
2308
|
+
e3[i3[o3].toUpperCase()] = i3[o3];
|
|
2309
|
+
}
|
|
2310
|
+
return e3;
|
|
2311
|
+
}, has = function(i3, e3) {
|
|
2312
|
+
return typeof i3 === l ? lowerize(e3).indexOf(lowerize(i3)) !== -1 : false;
|
|
2313
|
+
}, lowerize = function(i3) {
|
|
2314
|
+
return i3.toLowerCase();
|
|
2315
|
+
}, majorize = function(i3) {
|
|
2316
|
+
return typeof i3 === l ? i3.replace(/[^\d\.]/g, t).split(".")[0] : a;
|
|
2317
|
+
}, trim = function(i3, e3) {
|
|
2318
|
+
if (typeof i3 === l) {
|
|
2319
|
+
i3 = i3.replace(/^\s\s*/, t);
|
|
2320
|
+
return typeof e3 === b ? i3 : i3.substring(0, q);
|
|
2321
|
+
}
|
|
2322
|
+
};
|
|
2323
|
+
var rgxMapper = function(i3, e3) {
|
|
2324
|
+
var o3 = 0, r2, t2, n2, b2, l2, d2;
|
|
2325
|
+
while (o3 < e3.length && !l2) {
|
|
2326
|
+
var c2 = e3[o3], u2 = e3[o3 + 1];
|
|
2327
|
+
r2 = t2 = 0;
|
|
2328
|
+
while (r2 < c2.length && !l2) {
|
|
2329
|
+
if (!c2[r2]) {
|
|
2330
|
+
break;
|
|
2331
|
+
}
|
|
2332
|
+
l2 = c2[r2++].exec(i3);
|
|
2333
|
+
if (!!l2) {
|
|
2334
|
+
for (n2 = 0; n2 < u2.length; n2++) {
|
|
2335
|
+
d2 = l2[++t2];
|
|
2336
|
+
b2 = u2[n2];
|
|
2337
|
+
if (typeof b2 === w && b2.length > 0) {
|
|
2338
|
+
if (b2.length === 2) {
|
|
2339
|
+
if (typeof b2[1] == s) {
|
|
2340
|
+
this[b2[0]] = b2[1].call(this, d2);
|
|
2341
|
+
} else {
|
|
2342
|
+
this[b2[0]] = b2[1];
|
|
2343
|
+
}
|
|
2344
|
+
} else if (b2.length === 3) {
|
|
2345
|
+
if (typeof b2[1] === s && !(b2[1].exec && b2[1].test)) {
|
|
2346
|
+
this[b2[0]] = d2 ? b2[1].call(this, d2, b2[2]) : a;
|
|
2347
|
+
} else {
|
|
2348
|
+
this[b2[0]] = d2 ? d2.replace(b2[1], b2[2]) : a;
|
|
2349
|
+
}
|
|
2350
|
+
} else if (b2.length === 4) {
|
|
2351
|
+
this[b2[0]] = d2 ? b2[3].call(this, d2.replace(b2[1], b2[2])) : a;
|
|
2352
|
+
}
|
|
2353
|
+
} else {
|
|
2354
|
+
this[b2] = d2 ? d2 : a;
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
o3 += 2;
|
|
2360
|
+
}
|
|
2361
|
+
}, strMapper = function(i3, e3) {
|
|
2362
|
+
for (var o3 in e3) {
|
|
2363
|
+
if (typeof e3[o3] === w && e3[o3].length > 0) {
|
|
2364
|
+
for (var r2 = 0; r2 < e3[o3].length; r2++) {
|
|
2365
|
+
if (has(e3[o3][r2], i3)) {
|
|
2366
|
+
return o3 === n ? a : o3;
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
} else if (has(e3[o3], i3)) {
|
|
2370
|
+
return o3 === n ? a : o3;
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
return i3;
|
|
2374
|
+
};
|
|
2375
|
+
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" };
|
|
2376
|
+
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]] };
|
|
2377
|
+
var UAParser = function(i3, e3) {
|
|
2378
|
+
if (typeof i3 === w) {
|
|
2379
|
+
e3 = i3;
|
|
2380
|
+
i3 = a;
|
|
2381
|
+
}
|
|
2382
|
+
if (!(this instanceof UAParser)) {
|
|
2383
|
+
return new UAParser(i3, e3).getResult();
|
|
2384
|
+
}
|
|
2385
|
+
var r2 = typeof o2 !== b && o2.navigator ? o2.navigator : a;
|
|
2386
|
+
var n2 = i3 || (r2 && r2.userAgent ? r2.userAgent : t);
|
|
2387
|
+
var v2 = r2 && r2.userAgentData ? r2.userAgentData : a;
|
|
2388
|
+
var x2 = e3 ? extend(K, e3) : K;
|
|
2389
|
+
var _2 = r2 && r2.userAgent == n2;
|
|
2390
|
+
this.getBrowser = function() {
|
|
2391
|
+
var i4 = {};
|
|
2392
|
+
i4[u] = a;
|
|
2393
|
+
i4[f] = a;
|
|
2394
|
+
rgxMapper.call(i4, n2, x2.browser);
|
|
2395
|
+
i4[d] = majorize(i4[f]);
|
|
2396
|
+
if (_2 && r2 && r2.brave && typeof r2.brave.isBrave == s) {
|
|
2397
|
+
i4[u] = "Brave";
|
|
2398
|
+
}
|
|
2399
|
+
return i4;
|
|
2400
|
+
};
|
|
2401
|
+
this.getCPU = function() {
|
|
2402
|
+
var i4 = {};
|
|
2403
|
+
i4[h] = a;
|
|
2404
|
+
rgxMapper.call(i4, n2, x2.cpu);
|
|
2405
|
+
return i4;
|
|
2406
|
+
};
|
|
2407
|
+
this.getDevice = function() {
|
|
2408
|
+
var i4 = {};
|
|
2409
|
+
i4[m] = a;
|
|
2410
|
+
i4[c] = a;
|
|
2411
|
+
i4[p] = a;
|
|
2412
|
+
rgxMapper.call(i4, n2, x2.device);
|
|
2413
|
+
if (_2 && !i4[p] && v2 && v2.mobile) {
|
|
2414
|
+
i4[p] = g;
|
|
2415
|
+
}
|
|
2416
|
+
if (_2 && i4[c] == "Macintosh" && r2 && typeof r2.standalone !== b && r2.maxTouchPoints && r2.maxTouchPoints > 2) {
|
|
2417
|
+
i4[c] = "iPad";
|
|
2418
|
+
i4[p] = k;
|
|
2419
|
+
}
|
|
2420
|
+
return i4;
|
|
2421
|
+
};
|
|
2422
|
+
this.getEngine = function() {
|
|
2423
|
+
var i4 = {};
|
|
2424
|
+
i4[u] = a;
|
|
2425
|
+
i4[f] = a;
|
|
2426
|
+
rgxMapper.call(i4, n2, x2.engine);
|
|
2427
|
+
return i4;
|
|
2428
|
+
};
|
|
2429
|
+
this.getOS = function() {
|
|
2430
|
+
var i4 = {};
|
|
2431
|
+
i4[u] = a;
|
|
2432
|
+
i4[f] = a;
|
|
2433
|
+
rgxMapper.call(i4, n2, x2.os);
|
|
2434
|
+
if (_2 && !i4[u] && v2 && v2.platform != "Unknown") {
|
|
2435
|
+
i4[u] = v2.platform.replace(/chrome os/i, L).replace(/macos/i, Z);
|
|
2436
|
+
}
|
|
2437
|
+
return i4;
|
|
2438
|
+
};
|
|
2439
|
+
this.getResult = function() {
|
|
2440
|
+
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
2441
|
+
};
|
|
2442
|
+
this.getUA = function() {
|
|
2443
|
+
return n2;
|
|
2444
|
+
};
|
|
2445
|
+
this.setUA = function(i4) {
|
|
2446
|
+
n2 = typeof i4 === l && i4.length > q ? trim(i4, q) : i4;
|
|
2447
|
+
return this;
|
|
2448
|
+
};
|
|
2449
|
+
this.setUA(n2);
|
|
2450
|
+
return this;
|
|
2451
|
+
};
|
|
2452
|
+
UAParser.VERSION = r;
|
|
2453
|
+
UAParser.BROWSER = enumerize([u, f, d]);
|
|
2454
|
+
UAParser.CPU = enumerize([h]);
|
|
2455
|
+
UAParser.DEVICE = enumerize([c, m, p, v, g, x, k, _, y]);
|
|
2456
|
+
UAParser.ENGINE = UAParser.OS = enumerize([u, f]);
|
|
2457
|
+
if (typeof e2 !== b) {
|
|
2458
|
+
if (i2.exports) {
|
|
2459
|
+
e2 = i2.exports = UAParser;
|
|
2460
|
+
}
|
|
2461
|
+
e2.UAParser = UAParser;
|
|
2462
|
+
} else {
|
|
2463
|
+
if (typeof define === s && define.amd) {
|
|
2464
|
+
define(function() {
|
|
2465
|
+
return UAParser;
|
|
2466
|
+
});
|
|
2467
|
+
} else if (typeof o2 !== b) {
|
|
2468
|
+
o2.UAParser = UAParser;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
var Q = typeof o2 !== b && (o2.jQuery || o2.Zepto);
|
|
2472
|
+
if (Q && !Q.ua) {
|
|
2473
|
+
var Y = new UAParser();
|
|
2474
|
+
Q.ua = Y.getResult();
|
|
2475
|
+
Q.ua.get = function() {
|
|
2476
|
+
return Y.getUA();
|
|
2477
|
+
};
|
|
2478
|
+
Q.ua.set = function(i3) {
|
|
2479
|
+
Y.setUA(i3);
|
|
2480
|
+
var e3 = Y.getResult();
|
|
2481
|
+
for (var o3 in e3) {
|
|
2482
|
+
Q.ua[o3] = e3[o3];
|
|
2483
|
+
}
|
|
2484
|
+
};
|
|
2485
|
+
}
|
|
2486
|
+
})(typeof window === "object" ? window : this);
|
|
2487
|
+
} };
|
|
2488
|
+
var e = {};
|
|
2489
|
+
function __nccwpck_require__(o2) {
|
|
2490
|
+
var a = e[o2];
|
|
2491
|
+
if (a !== void 0) {
|
|
2492
|
+
return a.exports;
|
|
2493
|
+
}
|
|
2494
|
+
var r = e[o2] = { exports: {} };
|
|
2495
|
+
var t = true;
|
|
2496
|
+
try {
|
|
2497
|
+
i[o2].call(r.exports, r, r.exports, __nccwpck_require__);
|
|
2498
|
+
t = false;
|
|
2499
|
+
} finally {
|
|
2500
|
+
if (t) delete e[o2];
|
|
2501
|
+
}
|
|
2502
|
+
return r.exports;
|
|
2503
|
+
}
|
|
2504
|
+
if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
|
|
2505
|
+
var o = __nccwpck_require__(226);
|
|
2506
|
+
module.exports = o;
|
|
2507
|
+
})();
|
|
2508
|
+
}
|
|
2509
|
+
});
|
|
2510
|
+
|
|
2511
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/user-agent.js
|
|
2512
|
+
var require_user_agent = __commonJS({
|
|
2513
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/user-agent.js"(exports) {
|
|
2514
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2515
|
+
value: true
|
|
2516
|
+
});
|
|
2517
|
+
function _export(target, all) {
|
|
2518
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2519
|
+
enumerable: true,
|
|
2520
|
+
get: all[name]
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
_export(exports, {
|
|
2524
|
+
isBot: function() {
|
|
2525
|
+
return isBot;
|
|
2526
|
+
},
|
|
2527
|
+
userAgent: function() {
|
|
2528
|
+
return userAgent;
|
|
2529
|
+
},
|
|
2530
|
+
userAgentFromString: function() {
|
|
2531
|
+
return userAgentFromString;
|
|
2532
|
+
}
|
|
2533
|
+
});
|
|
2534
|
+
var _uaparserjs = /* @__PURE__ */ _interop_require_default(require_ua_parser());
|
|
2535
|
+
function _interop_require_default(obj) {
|
|
2536
|
+
return obj && obj.__esModule ? obj : {
|
|
2537
|
+
default: obj
|
|
2538
|
+
};
|
|
2539
|
+
}
|
|
2540
|
+
function isBot(input) {
|
|
2541
|
+
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);
|
|
2542
|
+
}
|
|
2543
|
+
function userAgentFromString(input) {
|
|
2544
|
+
return __spreadProps(__spreadValues({}, (0, _uaparserjs.default)(input)), {
|
|
2545
|
+
isBot: input === void 0 ? false : isBot(input)
|
|
2546
|
+
});
|
|
2547
|
+
}
|
|
2548
|
+
function userAgent({ headers }) {
|
|
2549
|
+
return userAgentFromString(headers.get("user-agent") || void 0);
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
});
|
|
2553
|
+
|
|
2554
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/url-pattern.js
|
|
2555
|
+
var require_url_pattern = __commonJS({
|
|
2556
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/spec-extension/url-pattern.js"(exports) {
|
|
2557
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2558
|
+
value: true
|
|
2559
|
+
});
|
|
2560
|
+
Object.defineProperty(exports, "URLPattern", {
|
|
2561
|
+
enumerable: true,
|
|
2562
|
+
get: function() {
|
|
2563
|
+
return GlobalURLPattern;
|
|
2564
|
+
}
|
|
2565
|
+
});
|
|
2566
|
+
var GlobalURLPattern = (
|
|
2567
|
+
// @ts-expect-error: URLPattern is not available in Node.js
|
|
2568
|
+
typeof URLPattern === "undefined" ? void 0 : URLPattern
|
|
2569
|
+
);
|
|
2570
|
+
}
|
|
2571
|
+
});
|
|
2572
|
+
|
|
2573
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/async-local-storage.js
|
|
2574
|
+
var require_async_local_storage = __commonJS({
|
|
2575
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/async-local-storage.js"(exports) {
|
|
2576
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2577
|
+
value: true
|
|
2578
|
+
});
|
|
2579
|
+
function _export(target, all) {
|
|
2580
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2581
|
+
enumerable: true,
|
|
2582
|
+
get: all[name]
|
|
2583
|
+
});
|
|
2584
|
+
}
|
|
2585
|
+
_export(exports, {
|
|
2586
|
+
bindSnapshot: function() {
|
|
2587
|
+
return bindSnapshot;
|
|
2588
|
+
},
|
|
2589
|
+
createAsyncLocalStorage: function() {
|
|
2590
|
+
return createAsyncLocalStorage;
|
|
2591
|
+
},
|
|
2592
|
+
createSnapshot: function() {
|
|
2593
|
+
return createSnapshot;
|
|
2594
|
+
}
|
|
2595
|
+
});
|
|
2596
|
+
var sharedAsyncLocalStorageNotAvailableError = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
2597
|
+
value: "E504",
|
|
2598
|
+
enumerable: false,
|
|
2599
|
+
configurable: true
|
|
2600
|
+
});
|
|
2601
|
+
var FakeAsyncLocalStorage = class {
|
|
2602
|
+
disable() {
|
|
2603
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
2604
|
+
}
|
|
2605
|
+
getStore() {
|
|
2606
|
+
return void 0;
|
|
2607
|
+
}
|
|
2608
|
+
run() {
|
|
2609
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
2610
|
+
}
|
|
2611
|
+
exit() {
|
|
2612
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
2613
|
+
}
|
|
2614
|
+
enterWith() {
|
|
2615
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
2616
|
+
}
|
|
2617
|
+
static bind(fn) {
|
|
2618
|
+
return fn;
|
|
2619
|
+
}
|
|
2620
|
+
};
|
|
2621
|
+
var maybeGlobalAsyncLocalStorage = typeof globalThis !== "undefined" && globalThis.AsyncLocalStorage;
|
|
2622
|
+
function createAsyncLocalStorage() {
|
|
2623
|
+
if (maybeGlobalAsyncLocalStorage) {
|
|
2624
|
+
return new maybeGlobalAsyncLocalStorage();
|
|
2625
|
+
}
|
|
2626
|
+
return new FakeAsyncLocalStorage();
|
|
2627
|
+
}
|
|
2628
|
+
function bindSnapshot(fn) {
|
|
2629
|
+
if (maybeGlobalAsyncLocalStorage) {
|
|
2630
|
+
return maybeGlobalAsyncLocalStorage.bind(fn);
|
|
2631
|
+
}
|
|
2632
|
+
return FakeAsyncLocalStorage.bind(fn);
|
|
2633
|
+
}
|
|
2634
|
+
function createSnapshot() {
|
|
2635
|
+
if (maybeGlobalAsyncLocalStorage) {
|
|
2636
|
+
return maybeGlobalAsyncLocalStorage.snapshot();
|
|
2637
|
+
}
|
|
2638
|
+
return function(fn, ...args) {
|
|
2639
|
+
return fn(...args);
|
|
2640
|
+
};
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
});
|
|
2644
|
+
|
|
2645
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage-instance.js
|
|
2646
|
+
var require_work_async_storage_instance = __commonJS({
|
|
2647
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage-instance.js"(exports) {
|
|
2648
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2649
|
+
value: true
|
|
2650
|
+
});
|
|
2651
|
+
Object.defineProperty(exports, "workAsyncStorageInstance", {
|
|
2652
|
+
enumerable: true,
|
|
2653
|
+
get: function() {
|
|
2654
|
+
return workAsyncStorageInstance;
|
|
2655
|
+
}
|
|
2656
|
+
});
|
|
2657
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
2658
|
+
var workAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
2659
|
+
}
|
|
2660
|
+
});
|
|
2661
|
+
|
|
2662
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage.external.js
|
|
2663
|
+
var require_work_async_storage_external = __commonJS({
|
|
2664
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage.external.js"(exports) {
|
|
2665
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2666
|
+
value: true
|
|
2667
|
+
});
|
|
2668
|
+
Object.defineProperty(exports, "workAsyncStorage", {
|
|
2669
|
+
enumerable: true,
|
|
2670
|
+
get: function() {
|
|
2671
|
+
return _workasyncstorageinstance.workAsyncStorageInstance;
|
|
2672
|
+
}
|
|
2673
|
+
});
|
|
2674
|
+
var _workasyncstorageinstance = require_work_async_storage_instance();
|
|
2675
|
+
}
|
|
2676
|
+
});
|
|
2677
|
+
|
|
2678
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/after/after.js
|
|
2679
|
+
var require_after = __commonJS({
|
|
2680
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/after/after.js"(exports) {
|
|
2681
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2682
|
+
value: true
|
|
2683
|
+
});
|
|
2684
|
+
Object.defineProperty(exports, "after", {
|
|
2685
|
+
enumerable: true,
|
|
2686
|
+
get: function() {
|
|
2687
|
+
return after;
|
|
2688
|
+
}
|
|
2689
|
+
});
|
|
2690
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
2691
|
+
function after(task) {
|
|
2692
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
2693
|
+
if (!workStore) {
|
|
2694
|
+
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", {
|
|
2695
|
+
value: "E468",
|
|
2696
|
+
enumerable: false,
|
|
2697
|
+
configurable: true
|
|
2698
|
+
});
|
|
2699
|
+
}
|
|
2700
|
+
const { afterContext } = workStore;
|
|
2701
|
+
return afterContext.after(task);
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
});
|
|
2705
|
+
|
|
2706
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/after/index.js
|
|
2707
|
+
var require_after2 = __commonJS({
|
|
2708
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/after/index.js"(exports) {
|
|
2709
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2710
|
+
value: true
|
|
2711
|
+
});
|
|
2712
|
+
_export_star(require_after(), exports);
|
|
2713
|
+
function _export_star(from, to) {
|
|
2714
|
+
Object.keys(from).forEach(function(k) {
|
|
2715
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
2716
|
+
Object.defineProperty(to, k, {
|
|
2717
|
+
enumerable: true,
|
|
2718
|
+
get: function() {
|
|
2719
|
+
return from[k];
|
|
2720
|
+
}
|
|
2721
|
+
});
|
|
2722
|
+
}
|
|
2723
|
+
});
|
|
2724
|
+
return from;
|
|
2725
|
+
}
|
|
2726
|
+
}
|
|
2727
|
+
});
|
|
2728
|
+
|
|
2729
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js
|
|
2730
|
+
var require_work_unit_async_storage_instance = __commonJS({
|
|
2731
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js"(exports) {
|
|
2732
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2733
|
+
value: true
|
|
2734
|
+
});
|
|
2735
|
+
Object.defineProperty(exports, "workUnitAsyncStorageInstance", {
|
|
2736
|
+
enumerable: true,
|
|
2737
|
+
get: function() {
|
|
2738
|
+
return workUnitAsyncStorageInstance;
|
|
2739
|
+
}
|
|
2740
|
+
});
|
|
2741
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
2742
|
+
var workUnitAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
2743
|
+
}
|
|
2744
|
+
});
|
|
2745
|
+
|
|
2746
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/app-router-headers.js
|
|
2747
|
+
var require_app_router_headers = __commonJS({
|
|
2748
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/app-router-headers.js"(exports, module) {
|
|
2749
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2750
|
+
value: true
|
|
2751
|
+
});
|
|
2752
|
+
function _export(target, all) {
|
|
2753
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2754
|
+
enumerable: true,
|
|
2755
|
+
get: all[name]
|
|
2756
|
+
});
|
|
2757
|
+
}
|
|
2758
|
+
_export(exports, {
|
|
2759
|
+
ACTION_HEADER: function() {
|
|
2760
|
+
return ACTION_HEADER;
|
|
2761
|
+
},
|
|
2762
|
+
FLIGHT_HEADERS: function() {
|
|
2763
|
+
return FLIGHT_HEADERS;
|
|
2764
|
+
},
|
|
2765
|
+
NEXT_DID_POSTPONE_HEADER: function() {
|
|
2766
|
+
return NEXT_DID_POSTPONE_HEADER;
|
|
2767
|
+
},
|
|
2768
|
+
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
2769
|
+
return NEXT_HMR_REFRESH_HASH_COOKIE;
|
|
2770
|
+
},
|
|
2771
|
+
NEXT_HMR_REFRESH_HEADER: function() {
|
|
2772
|
+
return NEXT_HMR_REFRESH_HEADER;
|
|
2773
|
+
},
|
|
2774
|
+
NEXT_IS_PRERENDER_HEADER: function() {
|
|
2775
|
+
return NEXT_IS_PRERENDER_HEADER;
|
|
2776
|
+
},
|
|
2777
|
+
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
2778
|
+
return NEXT_REWRITTEN_PATH_HEADER;
|
|
2779
|
+
},
|
|
2780
|
+
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
2781
|
+
return NEXT_REWRITTEN_QUERY_HEADER;
|
|
2782
|
+
},
|
|
2783
|
+
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
2784
|
+
return NEXT_ROUTER_PREFETCH_HEADER;
|
|
2785
|
+
},
|
|
2786
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
2787
|
+
return NEXT_ROUTER_SEGMENT_PREFETCH_HEADER;
|
|
2788
|
+
},
|
|
2789
|
+
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
2790
|
+
return NEXT_ROUTER_STALE_TIME_HEADER;
|
|
2791
|
+
},
|
|
2792
|
+
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
2793
|
+
return NEXT_ROUTER_STATE_TREE_HEADER;
|
|
2794
|
+
},
|
|
2795
|
+
NEXT_RSC_UNION_QUERY: function() {
|
|
2796
|
+
return NEXT_RSC_UNION_QUERY;
|
|
2797
|
+
},
|
|
2798
|
+
NEXT_URL: function() {
|
|
2799
|
+
return NEXT_URL;
|
|
2800
|
+
},
|
|
2801
|
+
RSC_CONTENT_TYPE_HEADER: function() {
|
|
2802
|
+
return RSC_CONTENT_TYPE_HEADER;
|
|
2803
|
+
},
|
|
2804
|
+
RSC_HEADER: function() {
|
|
2805
|
+
return RSC_HEADER;
|
|
2806
|
+
}
|
|
2807
|
+
});
|
|
2808
|
+
var RSC_HEADER = "RSC";
|
|
2809
|
+
var ACTION_HEADER = "Next-Action";
|
|
2810
|
+
var NEXT_ROUTER_STATE_TREE_HEADER = "Next-Router-State-Tree";
|
|
2811
|
+
var NEXT_ROUTER_PREFETCH_HEADER = "Next-Router-Prefetch";
|
|
2812
|
+
var NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = "Next-Router-Segment-Prefetch";
|
|
2813
|
+
var NEXT_HMR_REFRESH_HEADER = "Next-HMR-Refresh";
|
|
2814
|
+
var NEXT_HMR_REFRESH_HASH_COOKIE = "__next_hmr_refresh_hash__";
|
|
2815
|
+
var NEXT_URL = "Next-Url";
|
|
2816
|
+
var RSC_CONTENT_TYPE_HEADER = "text/x-component";
|
|
2817
|
+
var FLIGHT_HEADERS = [
|
|
2818
|
+
RSC_HEADER,
|
|
2819
|
+
NEXT_ROUTER_STATE_TREE_HEADER,
|
|
2820
|
+
NEXT_ROUTER_PREFETCH_HEADER,
|
|
2821
|
+
NEXT_HMR_REFRESH_HEADER,
|
|
2822
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER
|
|
2823
|
+
];
|
|
2824
|
+
var NEXT_RSC_UNION_QUERY = "_rsc";
|
|
2825
|
+
var NEXT_ROUTER_STALE_TIME_HEADER = "x-nextjs-stale-time";
|
|
2826
|
+
var NEXT_DID_POSTPONE_HEADER = "x-nextjs-postponed";
|
|
2827
|
+
var NEXT_REWRITTEN_PATH_HEADER = "x-nextjs-rewritten-path";
|
|
2828
|
+
var NEXT_REWRITTEN_QUERY_HEADER = "x-nextjs-rewritten-query";
|
|
2829
|
+
var NEXT_IS_PRERENDER_HEADER = "x-nextjs-prerender";
|
|
2830
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2831
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2832
|
+
Object.assign(exports.default, exports);
|
|
2833
|
+
module.exports = exports.default;
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
});
|
|
2837
|
+
|
|
2838
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js
|
|
2839
|
+
var require_work_unit_async_storage_external = __commonJS({
|
|
2840
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js"(exports) {
|
|
2841
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2842
|
+
value: true
|
|
2843
|
+
});
|
|
2844
|
+
function _export(target, all) {
|
|
2845
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2846
|
+
enumerable: true,
|
|
2847
|
+
get: all[name]
|
|
2848
|
+
});
|
|
2849
|
+
}
|
|
2850
|
+
_export(exports, {
|
|
2851
|
+
getDraftModeProviderForCacheScope: function() {
|
|
2852
|
+
return getDraftModeProviderForCacheScope;
|
|
2853
|
+
},
|
|
2854
|
+
getExpectedRequestStore: function() {
|
|
2855
|
+
return getExpectedRequestStore;
|
|
2856
|
+
},
|
|
2857
|
+
getHmrRefreshHash: function() {
|
|
2858
|
+
return getHmrRefreshHash;
|
|
2859
|
+
},
|
|
2860
|
+
getPrerenderResumeDataCache: function() {
|
|
2861
|
+
return getPrerenderResumeDataCache;
|
|
2862
|
+
},
|
|
2863
|
+
getRenderResumeDataCache: function() {
|
|
2864
|
+
return getRenderResumeDataCache;
|
|
2865
|
+
},
|
|
2866
|
+
throwForMissingRequestStore: function() {
|
|
2867
|
+
return throwForMissingRequestStore;
|
|
2868
|
+
},
|
|
2869
|
+
workUnitAsyncStorage: function() {
|
|
2870
|
+
return _workunitasyncstorageinstance.workUnitAsyncStorageInstance;
|
|
2871
|
+
}
|
|
2872
|
+
});
|
|
2873
|
+
var _workunitasyncstorageinstance = require_work_unit_async_storage_instance();
|
|
2874
|
+
var _approuterheaders = require_app_router_headers();
|
|
2875
|
+
function getExpectedRequestStore(callingExpression) {
|
|
2876
|
+
const workUnitStore = _workunitasyncstorageinstance.workUnitAsyncStorageInstance.getStore();
|
|
2877
|
+
if (!workUnitStore) {
|
|
2878
|
+
throwForMissingRequestStore(callingExpression);
|
|
2879
|
+
}
|
|
2880
|
+
switch (workUnitStore.type) {
|
|
2881
|
+
case "request":
|
|
2882
|
+
return workUnitStore;
|
|
2883
|
+
case "prerender":
|
|
2884
|
+
case "prerender-ppr":
|
|
2885
|
+
case "prerender-legacy":
|
|
2886
|
+
throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside a prerender. This is a bug in Next.js.`), "__NEXT_ERROR_CODE", {
|
|
2887
|
+
value: "E401",
|
|
2888
|
+
enumerable: false,
|
|
2889
|
+
configurable: true
|
|
2890
|
+
});
|
|
2891
|
+
case "cache":
|
|
2892
|
+
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", {
|
|
2893
|
+
value: "E37",
|
|
2894
|
+
enumerable: false,
|
|
2895
|
+
configurable: true
|
|
2896
|
+
});
|
|
2897
|
+
case "unstable-cache":
|
|
2898
|
+
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", {
|
|
2899
|
+
value: "E69",
|
|
2900
|
+
enumerable: false,
|
|
2901
|
+
configurable: true
|
|
2902
|
+
});
|
|
2903
|
+
default:
|
|
2904
|
+
const _exhaustiveCheck = workUnitStore;
|
|
2905
|
+
return _exhaustiveCheck;
|
|
2906
|
+
}
|
|
2907
|
+
}
|
|
2908
|
+
function throwForMissingRequestStore(callingExpression) {
|
|
2909
|
+
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", {
|
|
2910
|
+
value: "E251",
|
|
2911
|
+
enumerable: false,
|
|
2912
|
+
configurable: true
|
|
2913
|
+
});
|
|
2914
|
+
}
|
|
2915
|
+
function getPrerenderResumeDataCache(workUnitStore) {
|
|
2916
|
+
if (workUnitStore.type === "prerender" || workUnitStore.type === "prerender-ppr") {
|
|
2917
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
2918
|
+
}
|
|
2919
|
+
return null;
|
|
2920
|
+
}
|
|
2921
|
+
function getRenderResumeDataCache(workUnitStore) {
|
|
2922
|
+
if (workUnitStore.type !== "prerender-legacy" && workUnitStore.type !== "cache" && workUnitStore.type !== "unstable-cache") {
|
|
2923
|
+
if (workUnitStore.type === "request") {
|
|
2924
|
+
return workUnitStore.renderResumeDataCache;
|
|
2925
|
+
}
|
|
2926
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
2927
|
+
}
|
|
2928
|
+
return null;
|
|
2929
|
+
}
|
|
2930
|
+
function getHmrRefreshHash(workStore, workUnitStore) {
|
|
2931
|
+
var _workUnitStore_cookies_get;
|
|
2932
|
+
if (!workStore.dev) {
|
|
2933
|
+
return void 0;
|
|
2934
|
+
}
|
|
2935
|
+
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;
|
|
2936
|
+
}
|
|
2937
|
+
function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
|
|
2938
|
+
if (workStore.isDraftMode) {
|
|
2939
|
+
switch (workUnitStore.type) {
|
|
2940
|
+
case "cache":
|
|
2941
|
+
case "unstable-cache":
|
|
2942
|
+
case "request":
|
|
2943
|
+
return workUnitStore.draftMode;
|
|
2944
|
+
default:
|
|
2945
|
+
return void 0;
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
return void 0;
|
|
2949
|
+
}
|
|
2950
|
+
}
|
|
2951
|
+
});
|
|
2952
|
+
|
|
2953
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/hooks-server-context.js
|
|
2954
|
+
var require_hooks_server_context = __commonJS({
|
|
2955
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/hooks-server-context.js"(exports, module) {
|
|
2956
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2957
|
+
value: true
|
|
2958
|
+
});
|
|
2959
|
+
function _export(target, all) {
|
|
2960
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2961
|
+
enumerable: true,
|
|
2962
|
+
get: all[name]
|
|
2963
|
+
});
|
|
2964
|
+
}
|
|
2965
|
+
_export(exports, {
|
|
2966
|
+
DynamicServerError: function() {
|
|
2967
|
+
return DynamicServerError;
|
|
2968
|
+
},
|
|
2969
|
+
isDynamicServerError: function() {
|
|
2970
|
+
return isDynamicServerError;
|
|
2971
|
+
}
|
|
2972
|
+
});
|
|
2973
|
+
var DYNAMIC_ERROR_CODE = "DYNAMIC_SERVER_USAGE";
|
|
2974
|
+
var DynamicServerError = class extends Error {
|
|
2975
|
+
constructor(description) {
|
|
2976
|
+
super("Dynamic server usage: " + description), this.description = description, this.digest = DYNAMIC_ERROR_CODE;
|
|
2977
|
+
}
|
|
2978
|
+
};
|
|
2979
|
+
function isDynamicServerError(err) {
|
|
2980
|
+
if (typeof err !== "object" || err === null || !("digest" in err) || typeof err.digest !== "string") {
|
|
2981
|
+
return false;
|
|
2982
|
+
}
|
|
2983
|
+
return err.digest === DYNAMIC_ERROR_CODE;
|
|
2984
|
+
}
|
|
2985
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2986
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2987
|
+
Object.assign(exports.default, exports);
|
|
2988
|
+
module.exports = exports.default;
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
});
|
|
2992
|
+
|
|
2993
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/static-generation-bailout.js
|
|
2994
|
+
var require_static_generation_bailout = __commonJS({
|
|
2995
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/static-generation-bailout.js"(exports, module) {
|
|
2996
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2997
|
+
value: true
|
|
2998
|
+
});
|
|
2999
|
+
function _export(target, all) {
|
|
3000
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3001
|
+
enumerable: true,
|
|
3002
|
+
get: all[name]
|
|
3003
|
+
});
|
|
3004
|
+
}
|
|
3005
|
+
_export(exports, {
|
|
3006
|
+
StaticGenBailoutError: function() {
|
|
3007
|
+
return StaticGenBailoutError;
|
|
3008
|
+
},
|
|
3009
|
+
isStaticGenBailoutError: function() {
|
|
3010
|
+
return isStaticGenBailoutError;
|
|
3011
|
+
}
|
|
3012
|
+
});
|
|
3013
|
+
var NEXT_STATIC_GEN_BAILOUT = "NEXT_STATIC_GEN_BAILOUT";
|
|
3014
|
+
var StaticGenBailoutError = class extends Error {
|
|
3015
|
+
constructor(...args) {
|
|
3016
|
+
super(...args), this.code = NEXT_STATIC_GEN_BAILOUT;
|
|
3017
|
+
}
|
|
3018
|
+
};
|
|
3019
|
+
function isStaticGenBailoutError(error) {
|
|
3020
|
+
if (typeof error !== "object" || error === null || !("code" in error)) {
|
|
3021
|
+
return false;
|
|
3022
|
+
}
|
|
3023
|
+
return error.code === NEXT_STATIC_GEN_BAILOUT;
|
|
3024
|
+
}
|
|
3025
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
3026
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
3027
|
+
Object.assign(exports.default, exports);
|
|
3028
|
+
module.exports = exports.default;
|
|
3029
|
+
}
|
|
3030
|
+
}
|
|
3031
|
+
});
|
|
3032
|
+
|
|
3033
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/dynamic-rendering-utils.js
|
|
3034
|
+
var require_dynamic_rendering_utils = __commonJS({
|
|
3035
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/dynamic-rendering-utils.js"(exports) {
|
|
3036
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3037
|
+
value: true
|
|
3038
|
+
});
|
|
3039
|
+
function _export(target, all) {
|
|
3040
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3041
|
+
enumerable: true,
|
|
3042
|
+
get: all[name]
|
|
3043
|
+
});
|
|
3044
|
+
}
|
|
3045
|
+
_export(exports, {
|
|
3046
|
+
isHangingPromiseRejectionError: function() {
|
|
3047
|
+
return isHangingPromiseRejectionError;
|
|
3048
|
+
},
|
|
3049
|
+
makeHangingPromise: function() {
|
|
3050
|
+
return makeHangingPromise;
|
|
3051
|
+
}
|
|
3052
|
+
});
|
|
3053
|
+
function isHangingPromiseRejectionError(err) {
|
|
3054
|
+
if (typeof err !== "object" || err === null || !("digest" in err)) {
|
|
3055
|
+
return false;
|
|
3056
|
+
}
|
|
3057
|
+
return err.digest === HANGING_PROMISE_REJECTION;
|
|
3058
|
+
}
|
|
3059
|
+
var HANGING_PROMISE_REJECTION = "HANGING_PROMISE_REJECTION";
|
|
3060
|
+
var HangingPromiseRejectionError = class extends Error {
|
|
3061
|
+
constructor(expression) {
|
|
3062
|
+
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;
|
|
3063
|
+
}
|
|
3064
|
+
};
|
|
3065
|
+
var abortListenersBySignal = /* @__PURE__ */ new WeakMap();
|
|
3066
|
+
function makeHangingPromise(signal, expression) {
|
|
3067
|
+
if (signal.aborted) {
|
|
3068
|
+
return Promise.reject(new HangingPromiseRejectionError(expression));
|
|
3069
|
+
} else {
|
|
3070
|
+
const hangingPromise = new Promise((_, reject) => {
|
|
3071
|
+
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(expression));
|
|
3072
|
+
let currentListeners = abortListenersBySignal.get(signal);
|
|
3073
|
+
if (currentListeners) {
|
|
3074
|
+
currentListeners.push(boundRejection);
|
|
3075
|
+
} else {
|
|
3076
|
+
const listeners = [
|
|
3077
|
+
boundRejection
|
|
3078
|
+
];
|
|
3079
|
+
abortListenersBySignal.set(signal, listeners);
|
|
3080
|
+
signal.addEventListener("abort", () => {
|
|
3081
|
+
for (let i = 0; i < listeners.length; i++) {
|
|
3082
|
+
listeners[i]();
|
|
3083
|
+
}
|
|
3084
|
+
}, {
|
|
3085
|
+
once: true
|
|
3086
|
+
});
|
|
3087
|
+
}
|
|
3088
|
+
});
|
|
3089
|
+
hangingPromise.catch(ignoreReject);
|
|
3090
|
+
return hangingPromise;
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
function ignoreReject() {
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
});
|
|
3097
|
+
|
|
3098
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/metadata/metadata-constants.js
|
|
3099
|
+
var require_metadata_constants = __commonJS({
|
|
3100
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/metadata/metadata-constants.js"(exports) {
|
|
3101
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3102
|
+
value: true
|
|
3103
|
+
});
|
|
3104
|
+
function _export(target, all) {
|
|
3105
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3106
|
+
enumerable: true,
|
|
3107
|
+
get: all[name]
|
|
3108
|
+
});
|
|
3109
|
+
}
|
|
3110
|
+
_export(exports, {
|
|
3111
|
+
METADATA_BOUNDARY_NAME: function() {
|
|
3112
|
+
return METADATA_BOUNDARY_NAME;
|
|
3113
|
+
},
|
|
3114
|
+
OUTLET_BOUNDARY_NAME: function() {
|
|
3115
|
+
return OUTLET_BOUNDARY_NAME;
|
|
3116
|
+
},
|
|
3117
|
+
VIEWPORT_BOUNDARY_NAME: function() {
|
|
3118
|
+
return VIEWPORT_BOUNDARY_NAME;
|
|
3119
|
+
}
|
|
3120
|
+
});
|
|
3121
|
+
var METADATA_BOUNDARY_NAME = "__next_metadata_boundary__";
|
|
3122
|
+
var VIEWPORT_BOUNDARY_NAME = "__next_viewport_boundary__";
|
|
3123
|
+
var OUTLET_BOUNDARY_NAME = "__next_outlet_boundary__";
|
|
3124
|
+
}
|
|
3125
|
+
});
|
|
3126
|
+
|
|
3127
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/scheduler.js
|
|
3128
|
+
var require_scheduler = __commonJS({
|
|
3129
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/scheduler.js"(exports) {
|
|
3130
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3131
|
+
value: true
|
|
3132
|
+
});
|
|
3133
|
+
function _export(target, all) {
|
|
3134
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3135
|
+
enumerable: true,
|
|
3136
|
+
get: all[name]
|
|
3137
|
+
});
|
|
3138
|
+
}
|
|
3139
|
+
_export(exports, {
|
|
3140
|
+
atLeastOneTask: function() {
|
|
3141
|
+
return atLeastOneTask;
|
|
3142
|
+
},
|
|
3143
|
+
scheduleImmediate: function() {
|
|
3144
|
+
return scheduleImmediate;
|
|
3145
|
+
},
|
|
3146
|
+
scheduleOnNextTick: function() {
|
|
3147
|
+
return scheduleOnNextTick;
|
|
3148
|
+
},
|
|
3149
|
+
waitAtLeastOneReactRenderTask: function() {
|
|
3150
|
+
return waitAtLeastOneReactRenderTask;
|
|
3151
|
+
}
|
|
3152
|
+
});
|
|
3153
|
+
var scheduleOnNextTick = (cb) => {
|
|
3154
|
+
Promise.resolve().then(() => {
|
|
3155
|
+
if (process.env.NEXT_RUNTIME === "edge") {
|
|
3156
|
+
setTimeout(cb, 0);
|
|
3157
|
+
} else {
|
|
3158
|
+
process.nextTick(cb);
|
|
3159
|
+
}
|
|
3160
|
+
});
|
|
3161
|
+
};
|
|
3162
|
+
var scheduleImmediate = (cb) => {
|
|
3163
|
+
if (process.env.NEXT_RUNTIME === "edge") {
|
|
3164
|
+
setTimeout(cb, 0);
|
|
3165
|
+
} else {
|
|
3166
|
+
setImmediate(cb);
|
|
3167
|
+
}
|
|
3168
|
+
};
|
|
3169
|
+
function atLeastOneTask() {
|
|
3170
|
+
return new Promise((resolve) => scheduleImmediate(resolve));
|
|
3171
|
+
}
|
|
3172
|
+
function waitAtLeastOneReactRenderTask() {
|
|
3173
|
+
if (process.env.NEXT_RUNTIME === "edge") {
|
|
3174
|
+
return new Promise((r) => setTimeout(r, 0));
|
|
3175
|
+
} else {
|
|
3176
|
+
return new Promise((r) => setImmediate(r));
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
});
|
|
3181
|
+
|
|
3182
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/dynamic-rendering.js
|
|
3183
|
+
var require_dynamic_rendering = __commonJS({
|
|
3184
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/dynamic-rendering.js"(exports) {
|
|
3185
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3186
|
+
value: true
|
|
3187
|
+
});
|
|
3188
|
+
function _export(target, all) {
|
|
3189
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3190
|
+
enumerable: true,
|
|
3191
|
+
get: all[name]
|
|
3192
|
+
});
|
|
3193
|
+
}
|
|
3194
|
+
_export(exports, {
|
|
3195
|
+
Postpone: function() {
|
|
3196
|
+
return Postpone;
|
|
3197
|
+
},
|
|
3198
|
+
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
3199
|
+
return abortAndThrowOnSynchronousRequestDataAccess;
|
|
3200
|
+
},
|
|
3201
|
+
abortOnSynchronousPlatformIOAccess: function() {
|
|
3202
|
+
return abortOnSynchronousPlatformIOAccess;
|
|
3203
|
+
},
|
|
3204
|
+
accessedDynamicData: function() {
|
|
3205
|
+
return accessedDynamicData;
|
|
3206
|
+
},
|
|
3207
|
+
annotateDynamicAccess: function() {
|
|
3208
|
+
return annotateDynamicAccess;
|
|
3209
|
+
},
|
|
3210
|
+
consumeDynamicAccess: function() {
|
|
3211
|
+
return consumeDynamicAccess;
|
|
3212
|
+
},
|
|
3213
|
+
createDynamicTrackingState: function() {
|
|
3214
|
+
return createDynamicTrackingState;
|
|
3215
|
+
},
|
|
3216
|
+
createDynamicValidationState: function() {
|
|
3217
|
+
return createDynamicValidationState;
|
|
3218
|
+
},
|
|
3219
|
+
createHangingInputAbortSignal: function() {
|
|
3220
|
+
return createHangingInputAbortSignal;
|
|
3221
|
+
},
|
|
3222
|
+
createPostponedAbortSignal: function() {
|
|
3223
|
+
return createPostponedAbortSignal;
|
|
3224
|
+
},
|
|
3225
|
+
formatDynamicAPIAccesses: function() {
|
|
3226
|
+
return formatDynamicAPIAccesses;
|
|
3227
|
+
},
|
|
3228
|
+
getFirstDynamicReason: function() {
|
|
3229
|
+
return getFirstDynamicReason;
|
|
3230
|
+
},
|
|
3231
|
+
isDynamicPostpone: function() {
|
|
3232
|
+
return isDynamicPostpone;
|
|
3233
|
+
},
|
|
3234
|
+
isPrerenderInterruptedError: function() {
|
|
3235
|
+
return isPrerenderInterruptedError;
|
|
3236
|
+
},
|
|
3237
|
+
markCurrentScopeAsDynamic: function() {
|
|
3238
|
+
return markCurrentScopeAsDynamic;
|
|
3239
|
+
},
|
|
3240
|
+
postponeWithTracking: function() {
|
|
3241
|
+
return postponeWithTracking;
|
|
3242
|
+
},
|
|
3243
|
+
throwIfDisallowedDynamic: function() {
|
|
3244
|
+
return throwIfDisallowedDynamic;
|
|
3245
|
+
},
|
|
3246
|
+
throwToInterruptStaticGeneration: function() {
|
|
3247
|
+
return throwToInterruptStaticGeneration;
|
|
3248
|
+
},
|
|
3249
|
+
trackAllowedDynamicAccess: function() {
|
|
3250
|
+
return trackAllowedDynamicAccess;
|
|
3251
|
+
},
|
|
3252
|
+
trackDynamicDataInDynamicRender: function() {
|
|
3253
|
+
return trackDynamicDataInDynamicRender;
|
|
3254
|
+
},
|
|
3255
|
+
trackFallbackParamAccessed: function() {
|
|
3256
|
+
return trackFallbackParamAccessed;
|
|
3257
|
+
},
|
|
3258
|
+
trackSynchronousPlatformIOAccessInDev: function() {
|
|
3259
|
+
return trackSynchronousPlatformIOAccessInDev;
|
|
3260
|
+
},
|
|
3261
|
+
trackSynchronousRequestDataAccessInDev: function() {
|
|
3262
|
+
return trackSynchronousRequestDataAccessInDev;
|
|
3263
|
+
},
|
|
3264
|
+
useDynamicRouteParams: function() {
|
|
3265
|
+
return useDynamicRouteParams;
|
|
3266
|
+
}
|
|
3267
|
+
});
|
|
3268
|
+
var _react = /* @__PURE__ */ _interop_require_default(__require("react"));
|
|
3269
|
+
var _hooksservercontext = require_hooks_server_context();
|
|
3270
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
3271
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
3272
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
3273
|
+
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
3274
|
+
var _metadataconstants = require_metadata_constants();
|
|
3275
|
+
var _scheduler = require_scheduler();
|
|
3276
|
+
function _interop_require_default(obj) {
|
|
3277
|
+
return obj && obj.__esModule ? obj : {
|
|
3278
|
+
default: obj
|
|
3279
|
+
};
|
|
3280
|
+
}
|
|
3281
|
+
var hasPostpone = typeof _react.default.unstable_postpone === "function";
|
|
3282
|
+
function createDynamicTrackingState(isDebugDynamicAccesses) {
|
|
3283
|
+
return {
|
|
3284
|
+
isDebugDynamicAccesses,
|
|
3285
|
+
dynamicAccesses: [],
|
|
3286
|
+
syncDynamicExpression: void 0,
|
|
3287
|
+
syncDynamicErrorWithStack: null
|
|
3288
|
+
};
|
|
3289
|
+
}
|
|
3290
|
+
function createDynamicValidationState() {
|
|
3291
|
+
return {
|
|
3292
|
+
hasSuspendedDynamic: false,
|
|
3293
|
+
hasDynamicMetadata: false,
|
|
3294
|
+
hasDynamicViewport: false,
|
|
3295
|
+
hasSyncDynamicErrors: false,
|
|
3296
|
+
dynamicErrors: []
|
|
3297
|
+
};
|
|
3298
|
+
}
|
|
3299
|
+
function getFirstDynamicReason(trackingState) {
|
|
3300
|
+
var _trackingState_dynamicAccesses_;
|
|
3301
|
+
return (_trackingState_dynamicAccesses_ = trackingState.dynamicAccesses[0]) == null ? void 0 : _trackingState_dynamicAccesses_.expression;
|
|
3302
|
+
}
|
|
3303
|
+
function markCurrentScopeAsDynamic(store, workUnitStore, expression) {
|
|
3304
|
+
if (workUnitStore) {
|
|
3305
|
+
if (workUnitStore.type === "cache" || workUnitStore.type === "unstable-cache") {
|
|
3306
|
+
return;
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
if (store.forceDynamic || store.forceStatic) return;
|
|
3310
|
+
if (store.dynamicShouldError) {
|
|
3311
|
+
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", {
|
|
3312
|
+
value: "E553",
|
|
3313
|
+
enumerable: false,
|
|
3314
|
+
configurable: true
|
|
3315
|
+
});
|
|
3316
|
+
}
|
|
3317
|
+
if (workUnitStore) {
|
|
3318
|
+
if (workUnitStore.type === "prerender-ppr") {
|
|
3319
|
+
postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
|
|
3320
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
3321
|
+
workUnitStore.revalidate = 0;
|
|
3322
|
+
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", {
|
|
3323
|
+
value: "E550",
|
|
3324
|
+
enumerable: false,
|
|
3325
|
+
configurable: true
|
|
3326
|
+
});
|
|
3327
|
+
store.dynamicUsageDescription = expression;
|
|
3328
|
+
store.dynamicUsageStack = err.stack;
|
|
3329
|
+
throw err;
|
|
3330
|
+
} else if (process.env.NODE_ENV === "development" && workUnitStore && workUnitStore.type === "request") {
|
|
3331
|
+
workUnitStore.usedDynamic = true;
|
|
3332
|
+
}
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
function trackFallbackParamAccessed(store, expression) {
|
|
3336
|
+
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3337
|
+
if (!prerenderStore || prerenderStore.type !== "prerender-ppr") return;
|
|
3338
|
+
postponeWithTracking(store.route, expression, prerenderStore.dynamicTracking);
|
|
3339
|
+
}
|
|
3340
|
+
function throwToInterruptStaticGeneration(expression, store, prerenderStore) {
|
|
3341
|
+
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", {
|
|
3342
|
+
value: "E558",
|
|
3343
|
+
enumerable: false,
|
|
3344
|
+
configurable: true
|
|
3345
|
+
});
|
|
3346
|
+
prerenderStore.revalidate = 0;
|
|
3347
|
+
store.dynamicUsageDescription = expression;
|
|
3348
|
+
store.dynamicUsageStack = err.stack;
|
|
3349
|
+
throw err;
|
|
3350
|
+
}
|
|
3351
|
+
function trackDynamicDataInDynamicRender(_store, workUnitStore) {
|
|
3352
|
+
if (workUnitStore) {
|
|
3353
|
+
if (workUnitStore.type === "cache" || workUnitStore.type === "unstable-cache") {
|
|
3354
|
+
return;
|
|
3355
|
+
}
|
|
3356
|
+
if (workUnitStore.type === "prerender" || workUnitStore.type === "prerender-legacy") {
|
|
3357
|
+
workUnitStore.revalidate = 0;
|
|
3358
|
+
}
|
|
3359
|
+
if (process.env.NODE_ENV === "development" && workUnitStore.type === "request") {
|
|
3360
|
+
workUnitStore.usedDynamic = true;
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
function abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore) {
|
|
3365
|
+
const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`;
|
|
3366
|
+
const error = createPrerenderInterruptedError(reason);
|
|
3367
|
+
prerenderStore.controller.abort(error);
|
|
3368
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
3369
|
+
if (dynamicTracking) {
|
|
3370
|
+
dynamicTracking.dynamicAccesses.push({
|
|
3371
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
3372
|
+
// stack trace.
|
|
3373
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
3374
|
+
expression
|
|
3375
|
+
});
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
function abortOnSynchronousPlatformIOAccess(route, expression, errorWithStack, prerenderStore) {
|
|
3379
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
3380
|
+
if (dynamicTracking) {
|
|
3381
|
+
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
3382
|
+
dynamicTracking.syncDynamicExpression = expression;
|
|
3383
|
+
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
3384
|
+
}
|
|
3385
|
+
}
|
|
3386
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
3387
|
+
}
|
|
3388
|
+
function trackSynchronousPlatformIOAccessInDev(requestStore) {
|
|
3389
|
+
requestStore.prerenderPhase = false;
|
|
3390
|
+
}
|
|
3391
|
+
function abortAndThrowOnSynchronousRequestDataAccess(route, expression, errorWithStack, prerenderStore) {
|
|
3392
|
+
const prerenderSignal = prerenderStore.controller.signal;
|
|
3393
|
+
if (prerenderSignal.aborted === false) {
|
|
3394
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
3395
|
+
if (dynamicTracking) {
|
|
3396
|
+
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
3397
|
+
dynamicTracking.syncDynamicExpression = expression;
|
|
3398
|
+
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
3399
|
+
if (prerenderStore.validating === true) {
|
|
3400
|
+
dynamicTracking.syncDynamicLogged = true;
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3404
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
3405
|
+
}
|
|
3406
|
+
throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);
|
|
3407
|
+
}
|
|
3408
|
+
var trackSynchronousRequestDataAccessInDev = trackSynchronousPlatformIOAccessInDev;
|
|
3409
|
+
function Postpone({ reason, route }) {
|
|
3410
|
+
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3411
|
+
const dynamicTracking = prerenderStore && prerenderStore.type === "prerender-ppr" ? prerenderStore.dynamicTracking : null;
|
|
3412
|
+
postponeWithTracking(route, reason, dynamicTracking);
|
|
3413
|
+
}
|
|
3414
|
+
function postponeWithTracking(route, expression, dynamicTracking) {
|
|
3415
|
+
assertPostpone();
|
|
3416
|
+
if (dynamicTracking) {
|
|
3417
|
+
dynamicTracking.dynamicAccesses.push({
|
|
3418
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
3419
|
+
// stack trace.
|
|
3420
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
3421
|
+
expression
|
|
3422
|
+
});
|
|
3423
|
+
}
|
|
3424
|
+
_react.default.unstable_postpone(createPostponeReason(route, expression));
|
|
3425
|
+
}
|
|
3426
|
+
function createPostponeReason(route, expression) {
|
|
3427
|
+
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`;
|
|
3428
|
+
}
|
|
3429
|
+
function isDynamicPostpone(err) {
|
|
3430
|
+
if (typeof err === "object" && err !== null && typeof err.message === "string") {
|
|
3431
|
+
return isDynamicPostponeReason(err.message);
|
|
3432
|
+
}
|
|
3433
|
+
return false;
|
|
3434
|
+
}
|
|
3435
|
+
function isDynamicPostponeReason(reason) {
|
|
3436
|
+
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");
|
|
3437
|
+
}
|
|
3438
|
+
if (isDynamicPostponeReason(createPostponeReason("%%%", "^^^")) === false) {
|
|
3439
|
+
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
3440
|
+
value: "E296",
|
|
3441
|
+
enumerable: false,
|
|
3442
|
+
configurable: true
|
|
3443
|
+
});
|
|
3444
|
+
}
|
|
3445
|
+
var NEXT_PRERENDER_INTERRUPTED = "NEXT_PRERENDER_INTERRUPTED";
|
|
3446
|
+
function createPrerenderInterruptedError(message) {
|
|
3447
|
+
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
3448
|
+
value: "E394",
|
|
3449
|
+
enumerable: false,
|
|
3450
|
+
configurable: true
|
|
3451
|
+
});
|
|
3452
|
+
error.digest = NEXT_PRERENDER_INTERRUPTED;
|
|
3453
|
+
return error;
|
|
3454
|
+
}
|
|
3455
|
+
function isPrerenderInterruptedError(error) {
|
|
3456
|
+
return typeof error === "object" && error !== null && error.digest === NEXT_PRERENDER_INTERRUPTED && "name" in error && "message" in error && error instanceof Error;
|
|
3457
|
+
}
|
|
3458
|
+
function accessedDynamicData(dynamicAccesses) {
|
|
3459
|
+
return dynamicAccesses.length > 0;
|
|
3460
|
+
}
|
|
3461
|
+
function consumeDynamicAccess(serverDynamic, clientDynamic) {
|
|
3462
|
+
serverDynamic.dynamicAccesses.push(...clientDynamic.dynamicAccesses);
|
|
3463
|
+
return serverDynamic.dynamicAccesses;
|
|
3464
|
+
}
|
|
3465
|
+
function formatDynamicAPIAccesses(dynamicAccesses) {
|
|
3466
|
+
return dynamicAccesses.filter((access) => typeof access.stack === "string" && access.stack.length > 0).map(({ expression, stack }) => {
|
|
3467
|
+
stack = stack.split("\n").slice(4).filter((line) => {
|
|
3468
|
+
if (line.includes("node_modules/next/")) {
|
|
3469
|
+
return false;
|
|
3470
|
+
}
|
|
3471
|
+
if (line.includes(" (<anonymous>)")) {
|
|
3472
|
+
return false;
|
|
3473
|
+
}
|
|
3474
|
+
if (line.includes(" (node:")) {
|
|
3475
|
+
return false;
|
|
3476
|
+
}
|
|
3477
|
+
return true;
|
|
3478
|
+
}).join("\n");
|
|
3479
|
+
return `Dynamic API Usage Debug - ${expression}:
|
|
3480
|
+
${stack}`;
|
|
3481
|
+
});
|
|
3482
|
+
}
|
|
3483
|
+
function assertPostpone() {
|
|
3484
|
+
if (!hasPostpone) {
|
|
3485
|
+
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", {
|
|
3486
|
+
value: "E224",
|
|
3487
|
+
enumerable: false,
|
|
3488
|
+
configurable: true
|
|
3489
|
+
});
|
|
3490
|
+
}
|
|
3491
|
+
}
|
|
3492
|
+
function createPostponedAbortSignal(reason) {
|
|
3493
|
+
assertPostpone();
|
|
3494
|
+
const controller = new AbortController();
|
|
3495
|
+
try {
|
|
3496
|
+
_react.default.unstable_postpone(reason);
|
|
3497
|
+
} catch (x) {
|
|
3498
|
+
controller.abort(x);
|
|
3499
|
+
}
|
|
3500
|
+
return controller.signal;
|
|
3501
|
+
}
|
|
3502
|
+
function createHangingInputAbortSignal(workUnitStore) {
|
|
3503
|
+
const controller = new AbortController();
|
|
3504
|
+
if (workUnitStore.cacheSignal) {
|
|
3505
|
+
workUnitStore.cacheSignal.inputReady().then(() => {
|
|
3506
|
+
controller.abort();
|
|
3507
|
+
});
|
|
3508
|
+
} else {
|
|
3509
|
+
(0, _scheduler.scheduleOnNextTick)(() => controller.abort());
|
|
3510
|
+
}
|
|
3511
|
+
return controller.signal;
|
|
3512
|
+
}
|
|
3513
|
+
function annotateDynamicAccess(expression, prerenderStore) {
|
|
3514
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
3515
|
+
if (dynamicTracking) {
|
|
3516
|
+
dynamicTracking.dynamicAccesses.push({
|
|
3517
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
3518
|
+
expression
|
|
3519
|
+
});
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
function useDynamicRouteParams(expression) {
|
|
3523
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
3524
|
+
if (workStore && workStore.isStaticGeneration && workStore.fallbackRouteParams && workStore.fallbackRouteParams.size > 0) {
|
|
3525
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3526
|
+
if (workUnitStore) {
|
|
3527
|
+
if (workUnitStore.type === "prerender") {
|
|
3528
|
+
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, expression));
|
|
3529
|
+
} else if (workUnitStore.type === "prerender-ppr") {
|
|
3530
|
+
postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
|
|
3531
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
3532
|
+
throwToInterruptStaticGeneration(expression, workStore, workUnitStore);
|
|
3533
|
+
}
|
|
3534
|
+
}
|
|
3535
|
+
}
|
|
3536
|
+
}
|
|
3537
|
+
var hasSuspenseRegex = /\n\s+at Suspense \(<anonymous>\)/;
|
|
3538
|
+
var hasMetadataRegex = new RegExp(`\\n\\s+at ${_metadataconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
|
|
3539
|
+
var hasViewportRegex = new RegExp(`\\n\\s+at ${_metadataconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
|
|
3540
|
+
var hasOutletRegex = new RegExp(`\\n\\s+at ${_metadataconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
3541
|
+
function trackAllowedDynamicAccess(route, componentStack, dynamicValidation, serverDynamic, clientDynamic) {
|
|
3542
|
+
if (hasOutletRegex.test(componentStack)) {
|
|
3543
|
+
return;
|
|
3544
|
+
} else if (hasMetadataRegex.test(componentStack)) {
|
|
3545
|
+
dynamicValidation.hasDynamicMetadata = true;
|
|
3546
|
+
return;
|
|
3547
|
+
} else if (hasViewportRegex.test(componentStack)) {
|
|
3548
|
+
dynamicValidation.hasDynamicViewport = true;
|
|
3549
|
+
return;
|
|
3550
|
+
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
3551
|
+
dynamicValidation.hasSuspendedDynamic = true;
|
|
3552
|
+
return;
|
|
3553
|
+
} else if (serverDynamic.syncDynamicErrorWithStack || clientDynamic.syncDynamicErrorWithStack) {
|
|
3554
|
+
dynamicValidation.hasSyncDynamicErrors = true;
|
|
3555
|
+
return;
|
|
3556
|
+
} else {
|
|
3557
|
+
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`;
|
|
3558
|
+
const error = createErrorWithComponentStack(message, componentStack);
|
|
3559
|
+
dynamicValidation.dynamicErrors.push(error);
|
|
3560
|
+
return;
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
function createErrorWithComponentStack(message, componentStack) {
|
|
3564
|
+
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
3565
|
+
value: "E394",
|
|
3566
|
+
enumerable: false,
|
|
3567
|
+
configurable: true
|
|
3568
|
+
});
|
|
3569
|
+
error.stack = "Error: " + message + componentStack;
|
|
3570
|
+
return error;
|
|
3571
|
+
}
|
|
3572
|
+
function throwIfDisallowedDynamic(route, dynamicValidation, serverDynamic, clientDynamic) {
|
|
3573
|
+
let syncError;
|
|
3574
|
+
let syncExpression;
|
|
3575
|
+
let syncLogged;
|
|
3576
|
+
if (serverDynamic.syncDynamicErrorWithStack) {
|
|
3577
|
+
syncError = serverDynamic.syncDynamicErrorWithStack;
|
|
3578
|
+
syncExpression = serverDynamic.syncDynamicExpression;
|
|
3579
|
+
syncLogged = serverDynamic.syncDynamicLogged === true;
|
|
3580
|
+
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
3581
|
+
syncError = clientDynamic.syncDynamicErrorWithStack;
|
|
3582
|
+
syncExpression = clientDynamic.syncDynamicExpression;
|
|
3583
|
+
syncLogged = clientDynamic.syncDynamicLogged === true;
|
|
3584
|
+
} else {
|
|
3585
|
+
syncError = null;
|
|
3586
|
+
syncExpression = void 0;
|
|
3587
|
+
syncLogged = false;
|
|
3588
|
+
}
|
|
3589
|
+
if (dynamicValidation.hasSyncDynamicErrors && syncError) {
|
|
3590
|
+
if (!syncLogged) {
|
|
3591
|
+
console.error(syncError);
|
|
3592
|
+
}
|
|
3593
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
3594
|
+
}
|
|
3595
|
+
const dynamicErrors = dynamicValidation.dynamicErrors;
|
|
3596
|
+
if (dynamicErrors.length) {
|
|
3597
|
+
for (let i = 0; i < dynamicErrors.length; i++) {
|
|
3598
|
+
console.error(dynamicErrors[i]);
|
|
3599
|
+
}
|
|
3600
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
3601
|
+
}
|
|
3602
|
+
if (!dynamicValidation.hasSuspendedDynamic) {
|
|
3603
|
+
if (dynamicValidation.hasDynamicMetadata) {
|
|
3604
|
+
if (syncError) {
|
|
3605
|
+
console.error(syncError);
|
|
3606
|
+
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", {
|
|
3607
|
+
value: "E608",
|
|
3608
|
+
enumerable: false,
|
|
3609
|
+
configurable: true
|
|
3610
|
+
});
|
|
3611
|
+
}
|
|
3612
|
+
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", {
|
|
3613
|
+
value: "E534",
|
|
3614
|
+
enumerable: false,
|
|
3615
|
+
configurable: true
|
|
3616
|
+
});
|
|
3617
|
+
} else if (dynamicValidation.hasDynamicViewport) {
|
|
3618
|
+
if (syncError) {
|
|
3619
|
+
console.error(syncError);
|
|
3620
|
+
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", {
|
|
3621
|
+
value: "E573",
|
|
3622
|
+
enumerable: false,
|
|
3623
|
+
configurable: true
|
|
3624
|
+
});
|
|
3625
|
+
}
|
|
3626
|
+
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", {
|
|
3627
|
+
value: "E590",
|
|
3628
|
+
enumerable: false,
|
|
3629
|
+
configurable: true
|
|
3630
|
+
});
|
|
3631
|
+
}
|
|
3632
|
+
}
|
|
3633
|
+
}
|
|
3634
|
+
}
|
|
3635
|
+
});
|
|
3636
|
+
|
|
3637
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js
|
|
3638
|
+
var require_after_task_async_storage_instance = __commonJS({
|
|
3639
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js"(exports) {
|
|
3640
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3641
|
+
value: true
|
|
3642
|
+
});
|
|
3643
|
+
Object.defineProperty(exports, "afterTaskAsyncStorageInstance", {
|
|
3644
|
+
enumerable: true,
|
|
3645
|
+
get: function() {
|
|
3646
|
+
return afterTaskAsyncStorageInstance;
|
|
3647
|
+
}
|
|
3648
|
+
});
|
|
3649
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
3650
|
+
var afterTaskAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
3651
|
+
}
|
|
3652
|
+
});
|
|
3653
|
+
|
|
3654
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/after-task-async-storage.external.js
|
|
3655
|
+
var require_after_task_async_storage_external = __commonJS({
|
|
3656
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/after-task-async-storage.external.js"(exports) {
|
|
3657
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3658
|
+
value: true
|
|
3659
|
+
});
|
|
3660
|
+
Object.defineProperty(exports, "afterTaskAsyncStorage", {
|
|
3661
|
+
enumerable: true,
|
|
3662
|
+
get: function() {
|
|
3663
|
+
return _aftertaskasyncstorageinstance.afterTaskAsyncStorageInstance;
|
|
3664
|
+
}
|
|
3665
|
+
});
|
|
3666
|
+
var _aftertaskasyncstorageinstance = require_after_task_async_storage_instance();
|
|
3667
|
+
}
|
|
3668
|
+
});
|
|
3669
|
+
|
|
3670
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/request/utils.js
|
|
3671
|
+
var require_utils2 = __commonJS({
|
|
3672
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/request/utils.js"(exports) {
|
|
3673
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3674
|
+
value: true
|
|
3675
|
+
});
|
|
3676
|
+
function _export(target, all) {
|
|
3677
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3678
|
+
enumerable: true,
|
|
3679
|
+
get: all[name]
|
|
3680
|
+
});
|
|
3681
|
+
}
|
|
3682
|
+
_export(exports, {
|
|
3683
|
+
isRequestAPICallableInsideAfter: function() {
|
|
3684
|
+
return isRequestAPICallableInsideAfter;
|
|
3685
|
+
},
|
|
3686
|
+
throwForSearchParamsAccessInUseCache: function() {
|
|
3687
|
+
return throwForSearchParamsAccessInUseCache;
|
|
3688
|
+
},
|
|
3689
|
+
throwWithStaticGenerationBailoutError: function() {
|
|
3690
|
+
return throwWithStaticGenerationBailoutError;
|
|
3691
|
+
},
|
|
3692
|
+
throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
|
|
3693
|
+
return throwWithStaticGenerationBailoutErrorWithDynamicError;
|
|
3694
|
+
}
|
|
3695
|
+
});
|
|
3696
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
3697
|
+
var _aftertaskasyncstorageexternal = require_after_task_async_storage_external();
|
|
3698
|
+
function throwWithStaticGenerationBailoutError(route, expression) {
|
|
3699
|
+
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", {
|
|
3700
|
+
value: "E576",
|
|
3701
|
+
enumerable: false,
|
|
3702
|
+
configurable: true
|
|
3703
|
+
});
|
|
3704
|
+
}
|
|
3705
|
+
function throwWithStaticGenerationBailoutErrorWithDynamicError(route, expression) {
|
|
3706
|
+
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", {
|
|
3707
|
+
value: "E543",
|
|
3708
|
+
enumerable: false,
|
|
3709
|
+
configurable: true
|
|
3710
|
+
});
|
|
3711
|
+
}
|
|
3712
|
+
function throwForSearchParamsAccessInUseCache(workStore) {
|
|
3713
|
+
var _a;
|
|
3714
|
+
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", {
|
|
3715
|
+
value: "E634",
|
|
3716
|
+
enumerable: false,
|
|
3717
|
+
configurable: true
|
|
3718
|
+
});
|
|
3719
|
+
(_a = workStore.invalidUsageError) != null ? _a : workStore.invalidUsageError = error;
|
|
3720
|
+
throw error;
|
|
3721
|
+
}
|
|
3722
|
+
function isRequestAPICallableInsideAfter() {
|
|
3723
|
+
const afterTaskStore = _aftertaskasyncstorageexternal.afterTaskAsyncStorage.getStore();
|
|
3724
|
+
return (afterTaskStore == null ? void 0 : afterTaskStore.rootTaskSpawnPhase) === "action";
|
|
3725
|
+
}
|
|
3726
|
+
}
|
|
3727
|
+
});
|
|
3728
|
+
|
|
3729
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/request/connection.js
|
|
3730
|
+
var require_connection = __commonJS({
|
|
3731
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/request/connection.js"(exports) {
|
|
3732
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3733
|
+
value: true
|
|
3734
|
+
});
|
|
3735
|
+
Object.defineProperty(exports, "connection", {
|
|
3736
|
+
enumerable: true,
|
|
3737
|
+
get: function() {
|
|
3738
|
+
return connection;
|
|
3739
|
+
}
|
|
3740
|
+
});
|
|
3741
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
3742
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
3743
|
+
var _dynamicrendering = require_dynamic_rendering();
|
|
3744
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
3745
|
+
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
3746
|
+
var _utils = require_utils2();
|
|
3747
|
+
function connection() {
|
|
3748
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
3749
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3750
|
+
if (workStore) {
|
|
3751
|
+
if (workUnitStore && workUnitStore.phase === "after" && !(0, _utils.isRequestAPICallableInsideAfter)()) {
|
|
3752
|
+
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", {
|
|
3753
|
+
value: "E186",
|
|
3754
|
+
enumerable: false,
|
|
3755
|
+
configurable: true
|
|
3756
|
+
});
|
|
3757
|
+
}
|
|
3758
|
+
if (workStore.forceStatic) {
|
|
3759
|
+
return Promise.resolve(void 0);
|
|
3760
|
+
}
|
|
3761
|
+
if (workUnitStore) {
|
|
3762
|
+
if (workUnitStore.type === "cache") {
|
|
3763
|
+
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", {
|
|
3764
|
+
value: "E111",
|
|
3765
|
+
enumerable: false,
|
|
3766
|
+
configurable: true
|
|
3767
|
+
});
|
|
3768
|
+
} else if (workUnitStore.type === "unstable-cache") {
|
|
3769
|
+
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", {
|
|
3770
|
+
value: "E1",
|
|
3771
|
+
enumerable: false,
|
|
3772
|
+
configurable: true
|
|
3773
|
+
});
|
|
3774
|
+
}
|
|
3775
|
+
}
|
|
3776
|
+
if (workStore.dynamicShouldError) {
|
|
3777
|
+
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", {
|
|
3778
|
+
value: "E562",
|
|
3779
|
+
enumerable: false,
|
|
3780
|
+
configurable: true
|
|
3781
|
+
});
|
|
3782
|
+
}
|
|
3783
|
+
if (workUnitStore) {
|
|
3784
|
+
if (workUnitStore.type === "prerender") {
|
|
3785
|
+
return (0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, "`connection()`");
|
|
3786
|
+
} else if (workUnitStore.type === "prerender-ppr") {
|
|
3787
|
+
(0, _dynamicrendering.postponeWithTracking)(workStore.route, "connection", workUnitStore.dynamicTracking);
|
|
3788
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
3789
|
+
(0, _dynamicrendering.throwToInterruptStaticGeneration)("connection", workStore, workUnitStore);
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
(0, _dynamicrendering.trackDynamicDataInDynamicRender)(workStore, workUnitStore);
|
|
3793
|
+
}
|
|
3794
|
+
return Promise.resolve(void 0);
|
|
3795
|
+
}
|
|
3796
|
+
}
|
|
3797
|
+
});
|
|
3798
|
+
|
|
3799
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/invariant-error.js
|
|
3800
|
+
var require_invariant_error = __commonJS({
|
|
3801
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/invariant-error.js"(exports) {
|
|
3802
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3803
|
+
value: true
|
|
3804
|
+
});
|
|
3805
|
+
Object.defineProperty(exports, "InvariantError", {
|
|
3806
|
+
enumerable: true,
|
|
3807
|
+
get: function() {
|
|
3808
|
+
return InvariantError;
|
|
3809
|
+
}
|
|
3810
|
+
});
|
|
3811
|
+
var InvariantError = class extends Error {
|
|
3812
|
+
constructor(message, options) {
|
|
3813
|
+
super("Invariant: " + (message.endsWith(".") ? message : message + ".") + " This is a bug in Next.js.", options);
|
|
3814
|
+
this.name = "InvariantError";
|
|
3815
|
+
}
|
|
3816
|
+
};
|
|
3817
|
+
}
|
|
3818
|
+
});
|
|
3819
|
+
|
|
3820
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/utils/reflect-utils.js
|
|
3821
|
+
var require_reflect_utils = __commonJS({
|
|
3822
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/utils/reflect-utils.js"(exports) {
|
|
3823
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3824
|
+
value: true
|
|
3825
|
+
});
|
|
3826
|
+
function _export(target, all) {
|
|
3827
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3828
|
+
enumerable: true,
|
|
3829
|
+
get: all[name]
|
|
3830
|
+
});
|
|
3831
|
+
}
|
|
3832
|
+
_export(exports, {
|
|
3833
|
+
describeHasCheckingStringProperty: function() {
|
|
3834
|
+
return describeHasCheckingStringProperty;
|
|
3835
|
+
},
|
|
3836
|
+
describeStringPropertyAccess: function() {
|
|
3837
|
+
return describeStringPropertyAccess;
|
|
3838
|
+
},
|
|
3839
|
+
wellKnownProperties: function() {
|
|
3840
|
+
return wellKnownProperties;
|
|
3841
|
+
}
|
|
3842
|
+
});
|
|
3843
|
+
var isDefinitelyAValidIdentifier = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
3844
|
+
function describeStringPropertyAccess(target, prop) {
|
|
3845
|
+
if (isDefinitelyAValidIdentifier.test(prop)) {
|
|
3846
|
+
return "`" + target + "." + prop + "`";
|
|
3847
|
+
}
|
|
3848
|
+
return "`" + target + "[" + JSON.stringify(prop) + "]`";
|
|
3849
|
+
}
|
|
3850
|
+
function describeHasCheckingStringProperty(target, prop) {
|
|
3851
|
+
const stringifiedProp = JSON.stringify(prop);
|
|
3852
|
+
return "`Reflect.has(" + target + ", " + stringifiedProp + ")`, `" + stringifiedProp + " in " + target + "`, or similar";
|
|
3853
|
+
}
|
|
3854
|
+
var wellKnownProperties = /* @__PURE__ */ new Set([
|
|
3855
|
+
"hasOwnProperty",
|
|
3856
|
+
"isPrototypeOf",
|
|
3857
|
+
"propertyIsEnumerable",
|
|
3858
|
+
"toString",
|
|
3859
|
+
"valueOf",
|
|
3860
|
+
"toLocaleString",
|
|
3861
|
+
// Promise prototype
|
|
3862
|
+
// fallthrough
|
|
3863
|
+
"then",
|
|
3864
|
+
"catch",
|
|
3865
|
+
"finally",
|
|
3866
|
+
// React Promise extension
|
|
3867
|
+
// fallthrough
|
|
3868
|
+
"status",
|
|
3869
|
+
// React introspection
|
|
3870
|
+
"displayName",
|
|
3871
|
+
// Common tested properties
|
|
3872
|
+
// fallthrough
|
|
3873
|
+
"toJSON",
|
|
3874
|
+
"$$typeof",
|
|
3875
|
+
"__esModule"
|
|
3876
|
+
]);
|
|
3877
|
+
}
|
|
3878
|
+
});
|
|
3879
|
+
|
|
3880
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/request/root-params.js
|
|
3881
|
+
var require_root_params = __commonJS({
|
|
3882
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/request/root-params.js"(exports) {
|
|
3883
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3884
|
+
value: true
|
|
3885
|
+
});
|
|
3886
|
+
Object.defineProperty(exports, "unstable_rootParams", {
|
|
3887
|
+
enumerable: true,
|
|
3888
|
+
get: function() {
|
|
3889
|
+
return unstable_rootParams;
|
|
3890
|
+
}
|
|
3891
|
+
});
|
|
3892
|
+
var _invarianterror = require_invariant_error();
|
|
3893
|
+
var _dynamicrendering = require_dynamic_rendering();
|
|
3894
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
3895
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
3896
|
+
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
3897
|
+
var _reflectutils = require_reflect_utils();
|
|
3898
|
+
var CachedParams = /* @__PURE__ */ new WeakMap();
|
|
3899
|
+
function unstable_rootParams() {
|
|
3900
|
+
return __async(this, null, function* () {
|
|
3901
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
3902
|
+
if (!workStore) {
|
|
3903
|
+
throw Object.defineProperty(new _invarianterror.InvariantError("Missing workStore in unstable_rootParams"), "__NEXT_ERROR_CODE", {
|
|
3904
|
+
value: "E615",
|
|
3905
|
+
enumerable: false,
|
|
3906
|
+
configurable: true
|
|
3907
|
+
});
|
|
3908
|
+
}
|
|
3909
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3910
|
+
if (!workUnitStore) {
|
|
3911
|
+
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", {
|
|
3912
|
+
value: "E641",
|
|
3913
|
+
enumerable: false,
|
|
3914
|
+
configurable: true
|
|
3915
|
+
});
|
|
3916
|
+
}
|
|
3917
|
+
switch (workUnitStore.type) {
|
|
3918
|
+
case "unstable-cache":
|
|
3919
|
+
case "cache": {
|
|
3920
|
+
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", {
|
|
3921
|
+
value: "E642",
|
|
3922
|
+
enumerable: false,
|
|
3923
|
+
configurable: true
|
|
3924
|
+
});
|
|
3925
|
+
}
|
|
3926
|
+
case "prerender":
|
|
3927
|
+
case "prerender-ppr":
|
|
3928
|
+
case "prerender-legacy":
|
|
3929
|
+
return createPrerenderRootParams(workUnitStore.rootParams, workStore, workUnitStore);
|
|
3930
|
+
default:
|
|
3931
|
+
return Promise.resolve(workUnitStore.rootParams);
|
|
3932
|
+
}
|
|
3933
|
+
});
|
|
3934
|
+
}
|
|
3935
|
+
function createPrerenderRootParams(underlyingParams, workStore, prerenderStore) {
|
|
3936
|
+
const fallbackParams = workStore.fallbackRouteParams;
|
|
3937
|
+
if (fallbackParams) {
|
|
3938
|
+
let hasSomeFallbackParams = false;
|
|
3939
|
+
for (const key in underlyingParams) {
|
|
3940
|
+
if (fallbackParams.has(key)) {
|
|
3941
|
+
hasSomeFallbackParams = true;
|
|
3942
|
+
break;
|
|
3943
|
+
}
|
|
3944
|
+
}
|
|
3945
|
+
if (hasSomeFallbackParams) {
|
|
3946
|
+
if (prerenderStore.type === "prerender") {
|
|
3947
|
+
const cachedParams = CachedParams.get(underlyingParams);
|
|
3948
|
+
if (cachedParams) {
|
|
3949
|
+
return cachedParams;
|
|
3950
|
+
}
|
|
3951
|
+
const promise = (0, _dynamicrenderingutils.makeHangingPromise)(prerenderStore.renderSignal, "`unstable_rootParams`");
|
|
3952
|
+
CachedParams.set(underlyingParams, promise);
|
|
3953
|
+
return promise;
|
|
3954
|
+
}
|
|
3955
|
+
return makeErroringRootParams(underlyingParams, fallbackParams, workStore, prerenderStore);
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
return Promise.resolve(underlyingParams);
|
|
3959
|
+
}
|
|
3960
|
+
function makeErroringRootParams(underlyingParams, fallbackParams, workStore, prerenderStore) {
|
|
3961
|
+
const cachedParams = CachedParams.get(underlyingParams);
|
|
3962
|
+
if (cachedParams) {
|
|
3963
|
+
return cachedParams;
|
|
3964
|
+
}
|
|
3965
|
+
const augmentedUnderlying = __spreadValues({}, underlyingParams);
|
|
3966
|
+
const promise = Promise.resolve(augmentedUnderlying);
|
|
3967
|
+
CachedParams.set(underlyingParams, promise);
|
|
3968
|
+
Object.keys(underlyingParams).forEach((prop) => {
|
|
3969
|
+
if (_reflectutils.wellKnownProperties.has(prop)) ; else {
|
|
3970
|
+
if (fallbackParams.has(prop)) {
|
|
3971
|
+
Object.defineProperty(augmentedUnderlying, prop, {
|
|
3972
|
+
get() {
|
|
3973
|
+
const expression = (0, _reflectutils.describeStringPropertyAccess)("unstable_rootParams", prop);
|
|
3974
|
+
if (prerenderStore.type === "prerender-ppr") {
|
|
3975
|
+
(0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, prerenderStore.dynamicTracking);
|
|
3976
|
+
} else {
|
|
3977
|
+
(0, _dynamicrendering.throwToInterruptStaticGeneration)(expression, workStore, prerenderStore);
|
|
3978
|
+
}
|
|
3979
|
+
},
|
|
3980
|
+
enumerable: true
|
|
3981
|
+
});
|
|
3982
|
+
} else {
|
|
3983
|
+
promise[prop] = underlyingParams[prop];
|
|
3984
|
+
}
|
|
3985
|
+
}
|
|
3986
|
+
});
|
|
3987
|
+
return promise;
|
|
3988
|
+
}
|
|
3989
|
+
}
|
|
3990
|
+
});
|
|
3991
|
+
|
|
3992
|
+
// node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/server.js
|
|
3993
|
+
var require_server = __commonJS({
|
|
3994
|
+
"node_modules/.pnpm/next@15.3.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/server.js"(exports, module) {
|
|
3995
|
+
var serverExports = {
|
|
3996
|
+
NextRequest: require_request().NextRequest,
|
|
3997
|
+
NextResponse: require_response().NextResponse,
|
|
3998
|
+
ImageResponse: require_image_response().ImageResponse,
|
|
3999
|
+
userAgentFromString: require_user_agent().userAgentFromString,
|
|
4000
|
+
userAgent: require_user_agent().userAgent,
|
|
4001
|
+
URLPattern: require_url_pattern().URLPattern,
|
|
4002
|
+
after: require_after2().after,
|
|
4003
|
+
connection: require_connection().connection,
|
|
4004
|
+
unstable_rootParams: require_root_params().unstable_rootParams
|
|
4005
|
+
};
|
|
4006
|
+
module.exports = serverExports;
|
|
4007
|
+
exports.NextRequest = serverExports.NextRequest;
|
|
4008
|
+
exports.NextResponse = serverExports.NextResponse;
|
|
4009
|
+
exports.ImageResponse = serverExports.ImageResponse;
|
|
4010
|
+
exports.userAgentFromString = serverExports.userAgentFromString;
|
|
4011
|
+
exports.userAgent = serverExports.userAgent;
|
|
4012
|
+
exports.URLPattern = serverExports.URLPattern;
|
|
4013
|
+
exports.after = serverExports.after;
|
|
4014
|
+
exports.connection = serverExports.connection;
|
|
4015
|
+
exports.unstable_rootParams = serverExports.unstable_rootParams;
|
|
4016
|
+
}
|
|
4017
|
+
});
|
|
4018
|
+
|
|
4019
|
+
// src/middleware/index.ts
|
|
4020
|
+
var import_functions = __toESM(require_functions(), 1);
|
|
4021
|
+
var import_server = __toESM(require_server(), 1);
|
|
4022
|
+
|
|
4023
|
+
// package.json
|
|
4024
|
+
var version = "2.0.1";
|
|
4025
|
+
var package_default = {
|
|
4026
|
+
name: "@preprio/prepr-nextjs",
|
|
4027
|
+
version,
|
|
4028
|
+
description: "Next.js package for Prepr CMS preview functionality with advanced debugging and visual editing capabilities",
|
|
4029
|
+
main: "dist/react/index.cjs",
|
|
4030
|
+
types: "./dist/react/index.d.ts",
|
|
4031
|
+
module: "./dist/react/index.js",
|
|
4032
|
+
type: "module",
|
|
4033
|
+
scripts: {
|
|
4034
|
+
build: "tsup",
|
|
4035
|
+
dev: "tsup --watch",
|
|
4036
|
+
clean: "rm -rf dist",
|
|
4037
|
+
check: 'tsc --noEmit && eslint src --ext .ts,.tsx && prettier --check "src/**/*.{ts,tsx,js,jsx,json,md}"',
|
|
4038
|
+
fix: 'eslint src --ext .ts,.tsx --fix && prettier --write "src/**/*.{ts,tsx,js,jsx,json,md}"',
|
|
4039
|
+
changeset: "changeset",
|
|
4040
|
+
version: "changeset version",
|
|
4041
|
+
release: "pnpm run build && changeset publish",
|
|
4042
|
+
prepublishOnly: "pnpm run check && pnpm run build"
|
|
4043
|
+
},
|
|
4044
|
+
exports: {
|
|
4045
|
+
"./middleware": {
|
|
4046
|
+
import: "./dist/middleware/index.js",
|
|
4047
|
+
types: "./dist/middleware/index.d.ts",
|
|
4048
|
+
require: "./dist/middleware/index.cjs"
|
|
4049
|
+
},
|
|
4050
|
+
"./server": {
|
|
4051
|
+
import: "./dist/server/index.js",
|
|
4052
|
+
types: "./dist/server/index.d.ts",
|
|
4053
|
+
require: "./dist/server/index.cjs"
|
|
4054
|
+
},
|
|
4055
|
+
"./react": {
|
|
4056
|
+
import: "./dist/react/index.js",
|
|
4057
|
+
types: "./dist/react/index.d.ts",
|
|
4058
|
+
require: "./dist/react/index.cjs"
|
|
4059
|
+
},
|
|
4060
|
+
"./utils": {
|
|
4061
|
+
import: "./dist/utils/index.js",
|
|
4062
|
+
types: "./dist/utils/index.d.ts",
|
|
4063
|
+
require: "./dist/utils/index.cjs"
|
|
4064
|
+
},
|
|
4065
|
+
"./types": {
|
|
4066
|
+
import: "./dist/types/index.js",
|
|
4067
|
+
types: "./dist/types/index.d.ts",
|
|
4068
|
+
require: "./dist/types/index.cjs"
|
|
4069
|
+
},
|
|
4070
|
+
"./index.css": {
|
|
4071
|
+
import: "./dist/index.css",
|
|
4072
|
+
require: "./dist/index.css"
|
|
4073
|
+
}
|
|
4074
|
+
},
|
|
4075
|
+
files: [
|
|
4076
|
+
"dist",
|
|
4077
|
+
"package.json"
|
|
4078
|
+
],
|
|
4079
|
+
keywords: [
|
|
4080
|
+
"prepr",
|
|
4081
|
+
"cms",
|
|
4082
|
+
"nextjs",
|
|
4083
|
+
"preview",
|
|
4084
|
+
"visual-editing",
|
|
4085
|
+
"headless-cms",
|
|
4086
|
+
"react",
|
|
4087
|
+
"typescript",
|
|
4088
|
+
"debug",
|
|
4089
|
+
"stega"
|
|
4090
|
+
],
|
|
4091
|
+
author: "Preprio",
|
|
4092
|
+
license: "MIT",
|
|
4093
|
+
packageManager: "pnpm@10.5.2",
|
|
4094
|
+
devDependencies: {
|
|
4095
|
+
"@changesets/cli": "^2.29.5",
|
|
4096
|
+
"@eslint/js": "^9.25.1",
|
|
4097
|
+
"@types/node": "^20.11.5",
|
|
4098
|
+
"@types/react": "19.1.0",
|
|
4099
|
+
"@types/react-dom": "19.1.2",
|
|
4100
|
+
"@typescript-eslint/eslint-plugin": "^8.31.1",
|
|
4101
|
+
"@typescript-eslint/parser": "^8.31.1",
|
|
4102
|
+
autoprefixer: "^10.4.21",
|
|
4103
|
+
cssnano: "^7.0.7",
|
|
4104
|
+
eslint: "^9.25.1",
|
|
4105
|
+
"eslint-config-prettier": "^10.1.2",
|
|
4106
|
+
"eslint-plugin-prettier": "^5.2.6",
|
|
4107
|
+
"eslint-plugin-react": "^7.37.2",
|
|
4108
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
4109
|
+
next: "15.3.1",
|
|
4110
|
+
postcss: "^8",
|
|
4111
|
+
prettier: "^3.5.3",
|
|
4112
|
+
"prettier-plugin-tailwindcss": "^0.5.12",
|
|
4113
|
+
react: "^19.1.0",
|
|
4114
|
+
"react-dom": "^19.1.0",
|
|
4115
|
+
tailwindcss: "^3.4.17",
|
|
4116
|
+
tsup: "^8.5.0",
|
|
4117
|
+
typescript: "^5.8.3"
|
|
4118
|
+
},
|
|
4119
|
+
peerDependencies: {
|
|
4120
|
+
next: "^15.0.0 || ^14.0.0 || ^13.0.0",
|
|
4121
|
+
react: "^19.0.0 || ^18.0.0 || ^17.0.0 ",
|
|
4122
|
+
"react-dom": "^19.0.0 || ^18.0.0 || ^17.0.0"
|
|
4123
|
+
},
|
|
4124
|
+
dependencies: {
|
|
4125
|
+
"@headlessui/react": "^2.2.0",
|
|
4126
|
+
"@vercel/functions": "^2.0.0",
|
|
4127
|
+
"@vercel/stega": "^0.1.2",
|
|
4128
|
+
clsx: "^2.1.1",
|
|
4129
|
+
"postcss-cli": "^11.0.1",
|
|
4130
|
+
"tailwind-merge": "^3.0.1"
|
|
4131
|
+
}
|
|
4132
|
+
};
|
|
4133
|
+
|
|
4134
|
+
// src/middleware/index.ts
|
|
4135
|
+
function createPreprMiddleware(request, responseOrOptions, options) {
|
|
4136
|
+
var _a, _b, _c, _d;
|
|
4137
|
+
let response;
|
|
4138
|
+
let finalOptions;
|
|
4139
|
+
if (responseOrOptions && "headers" in responseOrOptions) {
|
|
4140
|
+
response = responseOrOptions;
|
|
4141
|
+
finalOptions = options;
|
|
4142
|
+
} else {
|
|
4143
|
+
response = import_server.NextResponse.next();
|
|
4144
|
+
finalOptions = responseOrOptions;
|
|
4145
|
+
}
|
|
4146
|
+
if (!process.env.PREPR_GRAPHQL_URL) {
|
|
4147
|
+
console.error("PREPR_GRAPHQL_URL is not set");
|
|
4148
|
+
}
|
|
4149
|
+
request.nextUrl.searchParams.forEach((value, key) => {
|
|
4150
|
+
switch (key) {
|
|
4151
|
+
case "utm_source":
|
|
4152
|
+
response.headers.set("Prepr-Context-utm_source", value);
|
|
4153
|
+
break;
|
|
4154
|
+
case "utm_medium":
|
|
4155
|
+
response.headers.set("Prepr-Context-utm_medium", value);
|
|
4156
|
+
break;
|
|
4157
|
+
case "utm_term":
|
|
4158
|
+
response.headers.set("Prepr-Context-utm_term", value);
|
|
4159
|
+
break;
|
|
4160
|
+
case "utm_content":
|
|
4161
|
+
response.headers.set("Prepr-Context-utm_content", value);
|
|
4162
|
+
break;
|
|
4163
|
+
case "utm_campaign":
|
|
4164
|
+
response.headers.set("Prepr-Context-utm_campaign", value);
|
|
4165
|
+
break;
|
|
4166
|
+
}
|
|
4167
|
+
});
|
|
4168
|
+
const referrer = request.headers.get("referer");
|
|
4169
|
+
if (referrer) {
|
|
4170
|
+
response.headers.set("Prepr-Context-initial_referral", referrer);
|
|
4171
|
+
}
|
|
4172
|
+
response.headers.set("Prepr-Package", version);
|
|
4173
|
+
const ip = (0, import_functions.ipAddress)(request);
|
|
4174
|
+
if (ip) {
|
|
4175
|
+
response.headers.set("Prepr-Visitor-IP", ip);
|
|
4176
|
+
}
|
|
4177
|
+
const hutkCookie = (_a = request.cookies.get("hubspotutk")) == null ? void 0 : _a.value;
|
|
4178
|
+
if (hutkCookie) {
|
|
4179
|
+
response.headers.set("Prepr-Hubspot-Id", hutkCookie);
|
|
4180
|
+
}
|
|
4181
|
+
let cookie = (_b = request.cookies.get("__prepr_uid")) == null ? void 0 : _b.value;
|
|
4182
|
+
if (!cookie) {
|
|
4183
|
+
cookie = crypto.randomUUID();
|
|
4184
|
+
response.cookies.set("__prepr_uid", cookie, {
|
|
4185
|
+
maxAge: 1 * 365 * 24 * 60
|
|
4186
|
+
// Set for one year
|
|
4187
|
+
});
|
|
4188
|
+
response.headers.set("Prepr-Customer-Id-Created", "true");
|
|
4189
|
+
}
|
|
4190
|
+
response.headers.set("Prepr-Customer-Id", cookie);
|
|
4191
|
+
if (!(finalOptions == null ? void 0 : finalOptions.preview) || process.env.PREPR_ENV !== "preview") {
|
|
4192
|
+
return response;
|
|
4193
|
+
}
|
|
4194
|
+
response.headers.set("Prepr-Preview-Bar", "true");
|
|
4195
|
+
const segmentCookie = (_c = request.cookies.get("Prepr-Segments")) == null ? void 0 : _c.value;
|
|
4196
|
+
if (segmentCookie) {
|
|
4197
|
+
response.headers.set("Prepr-Segments", segmentCookie);
|
|
4198
|
+
}
|
|
4199
|
+
const abCookie = (_d = request.cookies.get("Prepr-ABtesting")) == null ? void 0 : _d.value;
|
|
4200
|
+
if (abCookie) {
|
|
4201
|
+
response.headers.set("Prepr-ABtesting", abCookie);
|
|
4202
|
+
}
|
|
4203
|
+
request.nextUrl.searchParams.forEach((value, key) => {
|
|
4204
|
+
if (key === "prepr_preview_ab") {
|
|
4205
|
+
response.headers.set("Prepr-ABtesting", value);
|
|
4206
|
+
response.cookies.set("Prepr-ABtesting", value);
|
|
4207
|
+
}
|
|
4208
|
+
if (key === "prepr_preview_segment") {
|
|
4209
|
+
response.headers.set("Prepr-Segments", value);
|
|
4210
|
+
response.cookies.set("Prepr-Segments", value);
|
|
4211
|
+
}
|
|
4212
|
+
});
|
|
4213
|
+
return response;
|
|
4214
|
+
}
|
|
4215
|
+
|
|
4216
|
+
export { createPreprMiddleware, package_default, require_cookies2 as require_cookies, require_dynamic_rendering, require_dynamic_rendering_utils, require_hooks_server_context, require_reflect, require_scheduler, require_static_generation_bailout, require_utils2 as require_utils, require_work_async_storage_external, require_work_unit_async_storage_external };
|
|
4217
|
+
//# sourceMappingURL=chunk-32XGP2RS.mjs.map
|
|
4218
|
+
//# sourceMappingURL=chunk-32XGP2RS.mjs.map
|