sales-frontend-api 0.0.26 → 0.0.28
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/client.cjs +73 -4
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +59 -1
- package/dist/client.d.ts +59 -1
- package/dist/client.js +72 -5
- package/dist/client.js.map +1 -1
- package/dist/method.cjs +4640 -6
- package/dist/method.cjs.map +1 -1
- package/dist/method.d.cts +20 -1
- package/dist/method.d.ts +20 -1
- package/dist/method.js +4640 -7
- package/dist/method.js.map +1 -1
- package/dist/server.cjs +82 -106
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -17
- package/dist/server.d.ts +1 -17
- package/dist/server.js +83 -106
- package/dist/server.js.map +1 -1
- package/package.json +13 -10
package/dist/method.cjs
CHANGED
|
@@ -1,16 +1,4339 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var salesFrontendUtils = require('sales-frontend-utils');
|
|
3
4
|
var axios = require('axios');
|
|
5
|
+
var zustand = require('zustand');
|
|
4
6
|
var reactQuery = require('@tanstack/react-query');
|
|
5
7
|
|
|
6
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
9
|
|
|
8
10
|
var axios__default = /*#__PURE__*/_interopDefault(axios);
|
|
9
11
|
|
|
12
|
+
var __create = Object.create;
|
|
10
13
|
var __defProp = Object.defineProperty;
|
|
14
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
16
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
17
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
18
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
19
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
20
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
21
|
+
};
|
|
22
|
+
var __copyProps = (to, from, except, desc) => {
|
|
23
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
24
|
+
for (let key of __getOwnPropNames(from))
|
|
25
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
26
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
27
|
+
}
|
|
28
|
+
return to;
|
|
29
|
+
};
|
|
30
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
31
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
32
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
33
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
34
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
35
|
+
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
36
|
+
mod
|
|
37
|
+
));
|
|
12
38
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
13
39
|
|
|
40
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
|
|
41
|
+
var require_cookies = __commonJS({
|
|
42
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js"(exports, module) {
|
|
43
|
+
var __defProp2 = Object.defineProperty;
|
|
44
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
45
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
46
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
47
|
+
var __export = (target, all) => {
|
|
48
|
+
for (var name in all)
|
|
49
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
50
|
+
};
|
|
51
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
52
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
53
|
+
for (let key of __getOwnPropNames2(from))
|
|
54
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
55
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
56
|
+
}
|
|
57
|
+
return to;
|
|
58
|
+
};
|
|
59
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
60
|
+
var src_exports = {};
|
|
61
|
+
__export(src_exports, {
|
|
62
|
+
RequestCookies: () => RequestCookies,
|
|
63
|
+
ResponseCookies: () => ResponseCookies,
|
|
64
|
+
parseCookie: () => parseCookie,
|
|
65
|
+
parseSetCookie: () => parseSetCookie,
|
|
66
|
+
stringifyCookie: () => stringifyCookie
|
|
67
|
+
});
|
|
68
|
+
module.exports = __toCommonJS(src_exports);
|
|
69
|
+
function stringifyCookie(c) {
|
|
70
|
+
var _a;
|
|
71
|
+
const attrs = [
|
|
72
|
+
"path" in c && c.path && `Path=${c.path}`,
|
|
73
|
+
"expires" in c && (c.expires || c.expires === 0) && `Expires=${(typeof c.expires === "number" ? new Date(c.expires) : c.expires).toUTCString()}`,
|
|
74
|
+
"maxAge" in c && typeof c.maxAge === "number" && `Max-Age=${c.maxAge}`,
|
|
75
|
+
"domain" in c && c.domain && `Domain=${c.domain}`,
|
|
76
|
+
"secure" in c && c.secure && "Secure",
|
|
77
|
+
"httpOnly" in c && c.httpOnly && "HttpOnly",
|
|
78
|
+
"sameSite" in c && c.sameSite && `SameSite=${c.sameSite}`,
|
|
79
|
+
"partitioned" in c && c.partitioned && "Partitioned",
|
|
80
|
+
"priority" in c && c.priority && `Priority=${c.priority}`
|
|
81
|
+
].filter(Boolean);
|
|
82
|
+
const stringified = `${c.name}=${encodeURIComponent((_a = c.value) != null ? _a : "")}`;
|
|
83
|
+
return attrs.length === 0 ? stringified : `${stringified}; ${attrs.join("; ")}`;
|
|
84
|
+
}
|
|
85
|
+
function parseCookie(cookie) {
|
|
86
|
+
const map = /* @__PURE__ */ new Map();
|
|
87
|
+
for (const pair of cookie.split(/; */)) {
|
|
88
|
+
if (!pair)
|
|
89
|
+
continue;
|
|
90
|
+
const splitAt = pair.indexOf("=");
|
|
91
|
+
if (splitAt === -1) {
|
|
92
|
+
map.set(pair, "true");
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
const [key, value] = [pair.slice(0, splitAt), pair.slice(splitAt + 1)];
|
|
96
|
+
try {
|
|
97
|
+
map.set(key, decodeURIComponent(value != null ? value : "true"));
|
|
98
|
+
} catch {
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return map;
|
|
102
|
+
}
|
|
103
|
+
function parseSetCookie(setCookie) {
|
|
104
|
+
if (!setCookie) {
|
|
105
|
+
return void 0;
|
|
106
|
+
}
|
|
107
|
+
const [[name, value], ...attributes] = parseCookie(setCookie);
|
|
108
|
+
const {
|
|
109
|
+
domain,
|
|
110
|
+
expires,
|
|
111
|
+
httponly,
|
|
112
|
+
maxage,
|
|
113
|
+
path,
|
|
114
|
+
samesite,
|
|
115
|
+
secure,
|
|
116
|
+
partitioned,
|
|
117
|
+
priority
|
|
118
|
+
} = Object.fromEntries(
|
|
119
|
+
attributes.map(([key, value2]) => [
|
|
120
|
+
key.toLowerCase().replace(/-/g, ""),
|
|
121
|
+
value2
|
|
122
|
+
])
|
|
123
|
+
);
|
|
124
|
+
const cookie = {
|
|
125
|
+
name,
|
|
126
|
+
value: decodeURIComponent(value),
|
|
127
|
+
domain,
|
|
128
|
+
...expires && { expires: new Date(expires) },
|
|
129
|
+
...httponly && { httpOnly: true },
|
|
130
|
+
...typeof maxage === "string" && { maxAge: Number(maxage) },
|
|
131
|
+
path,
|
|
132
|
+
...samesite && { sameSite: parseSameSite(samesite) },
|
|
133
|
+
...secure && { secure: true },
|
|
134
|
+
...priority && { priority: parsePriority(priority) },
|
|
135
|
+
...partitioned && { partitioned: true }
|
|
136
|
+
};
|
|
137
|
+
return compact(cookie);
|
|
138
|
+
}
|
|
139
|
+
function compact(t) {
|
|
140
|
+
const newT = {};
|
|
141
|
+
for (const key in t) {
|
|
142
|
+
if (t[key]) {
|
|
143
|
+
newT[key] = t[key];
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return newT;
|
|
147
|
+
}
|
|
148
|
+
var SAME_SITE = ["strict", "lax", "none"];
|
|
149
|
+
function parseSameSite(string) {
|
|
150
|
+
string = string.toLowerCase();
|
|
151
|
+
return SAME_SITE.includes(string) ? string : void 0;
|
|
152
|
+
}
|
|
153
|
+
var PRIORITY = ["low", "medium", "high"];
|
|
154
|
+
function parsePriority(string) {
|
|
155
|
+
string = string.toLowerCase();
|
|
156
|
+
return PRIORITY.includes(string) ? string : void 0;
|
|
157
|
+
}
|
|
158
|
+
function splitCookiesString(cookiesString) {
|
|
159
|
+
if (!cookiesString)
|
|
160
|
+
return [];
|
|
161
|
+
var cookiesStrings = [];
|
|
162
|
+
var pos = 0;
|
|
163
|
+
var start;
|
|
164
|
+
var ch;
|
|
165
|
+
var lastComma;
|
|
166
|
+
var nextStart;
|
|
167
|
+
var cookiesSeparatorFound;
|
|
168
|
+
function skipWhitespace() {
|
|
169
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
170
|
+
pos += 1;
|
|
171
|
+
}
|
|
172
|
+
return pos < cookiesString.length;
|
|
173
|
+
}
|
|
174
|
+
function notSpecialChar() {
|
|
175
|
+
ch = cookiesString.charAt(pos);
|
|
176
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
177
|
+
}
|
|
178
|
+
while (pos < cookiesString.length) {
|
|
179
|
+
start = pos;
|
|
180
|
+
cookiesSeparatorFound = false;
|
|
181
|
+
while (skipWhitespace()) {
|
|
182
|
+
ch = cookiesString.charAt(pos);
|
|
183
|
+
if (ch === ",") {
|
|
184
|
+
lastComma = pos;
|
|
185
|
+
pos += 1;
|
|
186
|
+
skipWhitespace();
|
|
187
|
+
nextStart = pos;
|
|
188
|
+
while (pos < cookiesString.length && notSpecialChar()) {
|
|
189
|
+
pos += 1;
|
|
190
|
+
}
|
|
191
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
192
|
+
cookiesSeparatorFound = true;
|
|
193
|
+
pos = nextStart;
|
|
194
|
+
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
195
|
+
start = pos;
|
|
196
|
+
} else {
|
|
197
|
+
pos = lastComma + 1;
|
|
198
|
+
}
|
|
199
|
+
} else {
|
|
200
|
+
pos += 1;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
204
|
+
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return cookiesStrings;
|
|
208
|
+
}
|
|
209
|
+
var RequestCookies = class {
|
|
210
|
+
constructor(requestHeaders) {
|
|
211
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
212
|
+
this._headers = requestHeaders;
|
|
213
|
+
const header = requestHeaders.get("cookie");
|
|
214
|
+
if (header) {
|
|
215
|
+
const parsed = parseCookie(header);
|
|
216
|
+
for (const [name, value] of parsed) {
|
|
217
|
+
this._parsed.set(name, { name, value });
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
[Symbol.iterator]() {
|
|
222
|
+
return this._parsed[Symbol.iterator]();
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* The amount of cookies received from the client
|
|
226
|
+
*/
|
|
227
|
+
get size() {
|
|
228
|
+
return this._parsed.size;
|
|
229
|
+
}
|
|
230
|
+
get(...args) {
|
|
231
|
+
const name = typeof args[0] === "string" ? args[0] : args[0].name;
|
|
232
|
+
return this._parsed.get(name);
|
|
233
|
+
}
|
|
234
|
+
getAll(...args) {
|
|
235
|
+
var _a;
|
|
236
|
+
const all = Array.from(this._parsed);
|
|
237
|
+
if (!args.length) {
|
|
238
|
+
return all.map(([_, value]) => value);
|
|
239
|
+
}
|
|
240
|
+
const name = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
|
|
241
|
+
return all.filter(([n]) => n === name).map(([_, value]) => value);
|
|
242
|
+
}
|
|
243
|
+
has(name) {
|
|
244
|
+
return this._parsed.has(name);
|
|
245
|
+
}
|
|
246
|
+
set(...args) {
|
|
247
|
+
const [name, value] = args.length === 1 ? [args[0].name, args[0].value] : args;
|
|
248
|
+
const map = this._parsed;
|
|
249
|
+
map.set(name, { name, value });
|
|
250
|
+
this._headers.set(
|
|
251
|
+
"cookie",
|
|
252
|
+
Array.from(map).map(([_, value2]) => stringifyCookie(value2)).join("; ")
|
|
253
|
+
);
|
|
254
|
+
return this;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Delete the cookies matching the passed name or names in the request.
|
|
258
|
+
*/
|
|
259
|
+
delete(names) {
|
|
260
|
+
const map = this._parsed;
|
|
261
|
+
const result = !Array.isArray(names) ? map.delete(names) : names.map((name) => map.delete(name));
|
|
262
|
+
this._headers.set(
|
|
263
|
+
"cookie",
|
|
264
|
+
Array.from(map).map(([_, value]) => stringifyCookie(value)).join("; ")
|
|
265
|
+
);
|
|
266
|
+
return result;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Delete all the cookies in the cookies in the request.
|
|
270
|
+
*/
|
|
271
|
+
clear() {
|
|
272
|
+
this.delete(Array.from(this._parsed.keys()));
|
|
273
|
+
return this;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Format the cookies in the request as a string for logging
|
|
277
|
+
*/
|
|
278
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
279
|
+
return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
280
|
+
}
|
|
281
|
+
toString() {
|
|
282
|
+
return [...this._parsed.values()].map((v) => `${v.name}=${encodeURIComponent(v.value)}`).join("; ");
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
var ResponseCookies = class {
|
|
286
|
+
constructor(responseHeaders) {
|
|
287
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
288
|
+
var _a, _b, _c;
|
|
289
|
+
this._headers = responseHeaders;
|
|
290
|
+
const setCookie = (_c = (_b = (_a = responseHeaders.getSetCookie) == null ? void 0 : _a.call(responseHeaders)) != null ? _b : responseHeaders.get("set-cookie")) != null ? _c : [];
|
|
291
|
+
const cookieStrings = Array.isArray(setCookie) ? setCookie : splitCookiesString(setCookie);
|
|
292
|
+
for (const cookieString of cookieStrings) {
|
|
293
|
+
const parsed = parseSetCookie(cookieString);
|
|
294
|
+
if (parsed)
|
|
295
|
+
this._parsed.set(parsed.name, parsed);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
300
|
+
*/
|
|
301
|
+
get(...args) {
|
|
302
|
+
const key = typeof args[0] === "string" ? args[0] : args[0].name;
|
|
303
|
+
return this._parsed.get(key);
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
307
|
+
*/
|
|
308
|
+
getAll(...args) {
|
|
309
|
+
var _a;
|
|
310
|
+
const all = Array.from(this._parsed.values());
|
|
311
|
+
if (!args.length) {
|
|
312
|
+
return all;
|
|
313
|
+
}
|
|
314
|
+
const key = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
|
|
315
|
+
return all.filter((c) => c.name === key);
|
|
316
|
+
}
|
|
317
|
+
has(name) {
|
|
318
|
+
return this._parsed.has(name);
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
322
|
+
*/
|
|
323
|
+
set(...args) {
|
|
324
|
+
const [name, value, cookie] = args.length === 1 ? [args[0].name, args[0].value, args[0]] : args;
|
|
325
|
+
const map = this._parsed;
|
|
326
|
+
map.set(name, normalizeCookie({ name, value, ...cookie }));
|
|
327
|
+
replace(map, this._headers);
|
|
328
|
+
return this;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
332
|
+
*/
|
|
333
|
+
delete(...args) {
|
|
334
|
+
const [name, options] = typeof args[0] === "string" ? [args[0]] : [args[0].name, args[0]];
|
|
335
|
+
return this.set({ ...options, name, value: "", expires: /* @__PURE__ */ new Date(0) });
|
|
336
|
+
}
|
|
337
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
338
|
+
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
339
|
+
}
|
|
340
|
+
toString() {
|
|
341
|
+
return [...this._parsed.values()].map(stringifyCookie).join("; ");
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
function replace(bag, headers2) {
|
|
345
|
+
headers2.delete("set-cookie");
|
|
346
|
+
for (const [, value] of bag) {
|
|
347
|
+
const serialized = stringifyCookie(value);
|
|
348
|
+
headers2.append("set-cookie", serialized);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
function normalizeCookie(cookie = { name: "", value: "" }) {
|
|
352
|
+
if (typeof cookie.expires === "number") {
|
|
353
|
+
cookie.expires = new Date(cookie.expires);
|
|
354
|
+
}
|
|
355
|
+
if (cookie.maxAge) {
|
|
356
|
+
cookie.expires = new Date(Date.now() + cookie.maxAge * 1e3);
|
|
357
|
+
}
|
|
358
|
+
if (cookie.path === null || cookie.path === void 0) {
|
|
359
|
+
cookie.path = "/";
|
|
360
|
+
}
|
|
361
|
+
return cookie;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/cookies.js
|
|
367
|
+
var require_cookies2 = __commonJS({
|
|
368
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/cookies.js"(exports) {
|
|
369
|
+
Object.defineProperty(exports, "__esModule", {
|
|
370
|
+
value: true
|
|
371
|
+
});
|
|
372
|
+
function _export(target, all) {
|
|
373
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
374
|
+
enumerable: true,
|
|
375
|
+
get: all[name]
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
_export(exports, {
|
|
379
|
+
RequestCookies: function() {
|
|
380
|
+
return _cookies.RequestCookies;
|
|
381
|
+
},
|
|
382
|
+
ResponseCookies: function() {
|
|
383
|
+
return _cookies.ResponseCookies;
|
|
384
|
+
},
|
|
385
|
+
stringifyCookie: function() {
|
|
386
|
+
return _cookies.stringifyCookie;
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
var _cookies = require_cookies();
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
|
|
393
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js
|
|
394
|
+
var require_reflect = __commonJS({
|
|
395
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js"(exports) {
|
|
396
|
+
Object.defineProperty(exports, "__esModule", {
|
|
397
|
+
value: true
|
|
398
|
+
});
|
|
399
|
+
Object.defineProperty(exports, "ReflectAdapter", {
|
|
400
|
+
enumerable: true,
|
|
401
|
+
get: function() {
|
|
402
|
+
return ReflectAdapter;
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
var ReflectAdapter = class {
|
|
406
|
+
static get(target, prop, receiver) {
|
|
407
|
+
const value = Reflect.get(target, prop, receiver);
|
|
408
|
+
if (typeof value === "function") {
|
|
409
|
+
return value.bind(target);
|
|
410
|
+
}
|
|
411
|
+
return value;
|
|
412
|
+
}
|
|
413
|
+
static set(target, prop, value, receiver) {
|
|
414
|
+
return Reflect.set(target, prop, value, receiver);
|
|
415
|
+
}
|
|
416
|
+
static has(target, prop) {
|
|
417
|
+
return Reflect.has(target, prop);
|
|
418
|
+
}
|
|
419
|
+
static deleteProperty(target, prop) {
|
|
420
|
+
return Reflect.deleteProperty(target, prop);
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/async-local-storage.js
|
|
427
|
+
var require_async_local_storage = __commonJS({
|
|
428
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/async-local-storage.js"(exports) {
|
|
429
|
+
Object.defineProperty(exports, "__esModule", {
|
|
430
|
+
value: true
|
|
431
|
+
});
|
|
432
|
+
function _export(target, all) {
|
|
433
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
434
|
+
enumerable: true,
|
|
435
|
+
get: all[name]
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
_export(exports, {
|
|
439
|
+
bindSnapshot: function() {
|
|
440
|
+
return bindSnapshot;
|
|
441
|
+
},
|
|
442
|
+
createAsyncLocalStorage: function() {
|
|
443
|
+
return createAsyncLocalStorage;
|
|
444
|
+
},
|
|
445
|
+
createSnapshot: function() {
|
|
446
|
+
return createSnapshot;
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
var sharedAsyncLocalStorageNotAvailableError = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
450
|
+
value: "E504",
|
|
451
|
+
enumerable: false,
|
|
452
|
+
configurable: true
|
|
453
|
+
});
|
|
454
|
+
var FakeAsyncLocalStorage = class {
|
|
455
|
+
disable() {
|
|
456
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
457
|
+
}
|
|
458
|
+
getStore() {
|
|
459
|
+
return void 0;
|
|
460
|
+
}
|
|
461
|
+
run() {
|
|
462
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
463
|
+
}
|
|
464
|
+
exit() {
|
|
465
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
466
|
+
}
|
|
467
|
+
enterWith() {
|
|
468
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
469
|
+
}
|
|
470
|
+
static bind(fn) {
|
|
471
|
+
return fn;
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
var maybeGlobalAsyncLocalStorage = typeof globalThis !== "undefined" && globalThis.AsyncLocalStorage;
|
|
475
|
+
function createAsyncLocalStorage() {
|
|
476
|
+
if (maybeGlobalAsyncLocalStorage) {
|
|
477
|
+
return new maybeGlobalAsyncLocalStorage();
|
|
478
|
+
}
|
|
479
|
+
return new FakeAsyncLocalStorage();
|
|
480
|
+
}
|
|
481
|
+
function bindSnapshot(fn) {
|
|
482
|
+
if (maybeGlobalAsyncLocalStorage) {
|
|
483
|
+
return maybeGlobalAsyncLocalStorage.bind(fn);
|
|
484
|
+
}
|
|
485
|
+
return FakeAsyncLocalStorage.bind(fn);
|
|
486
|
+
}
|
|
487
|
+
function createSnapshot() {
|
|
488
|
+
if (maybeGlobalAsyncLocalStorage) {
|
|
489
|
+
return maybeGlobalAsyncLocalStorage.snapshot();
|
|
490
|
+
}
|
|
491
|
+
return function(fn, ...args) {
|
|
492
|
+
return fn(...args);
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
|
|
498
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage-instance.js
|
|
499
|
+
var require_work_async_storage_instance = __commonJS({
|
|
500
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage-instance.js"(exports) {
|
|
501
|
+
Object.defineProperty(exports, "__esModule", {
|
|
502
|
+
value: true
|
|
503
|
+
});
|
|
504
|
+
Object.defineProperty(exports, "workAsyncStorageInstance", {
|
|
505
|
+
enumerable: true,
|
|
506
|
+
get: function() {
|
|
507
|
+
return workAsyncStorageInstance;
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
511
|
+
var workAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
|
|
515
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage.external.js
|
|
516
|
+
var require_work_async_storage_external = __commonJS({
|
|
517
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage.external.js"(exports) {
|
|
518
|
+
Object.defineProperty(exports, "__esModule", {
|
|
519
|
+
value: true
|
|
520
|
+
});
|
|
521
|
+
Object.defineProperty(exports, "workAsyncStorage", {
|
|
522
|
+
enumerable: true,
|
|
523
|
+
get: function() {
|
|
524
|
+
return _workasyncstorageinstance.workAsyncStorageInstance;
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
var _workasyncstorageinstance = require_work_async_storage_instance();
|
|
528
|
+
}
|
|
529
|
+
});
|
|
530
|
+
|
|
531
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js
|
|
532
|
+
var require_work_unit_async_storage_instance = __commonJS({
|
|
533
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js"(exports) {
|
|
534
|
+
Object.defineProperty(exports, "__esModule", {
|
|
535
|
+
value: true
|
|
536
|
+
});
|
|
537
|
+
Object.defineProperty(exports, "workUnitAsyncStorageInstance", {
|
|
538
|
+
enumerable: true,
|
|
539
|
+
get: function() {
|
|
540
|
+
return workUnitAsyncStorageInstance;
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
544
|
+
var workUnitAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
|
|
548
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/app-router-headers.js
|
|
549
|
+
var require_app_router_headers = __commonJS({
|
|
550
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/app-router-headers.js"(exports, module) {
|
|
551
|
+
Object.defineProperty(exports, "__esModule", {
|
|
552
|
+
value: true
|
|
553
|
+
});
|
|
554
|
+
function _export(target, all) {
|
|
555
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
556
|
+
enumerable: true,
|
|
557
|
+
get: all[name]
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
_export(exports, {
|
|
561
|
+
ACTION_HEADER: function() {
|
|
562
|
+
return ACTION_HEADER;
|
|
563
|
+
},
|
|
564
|
+
FLIGHT_HEADERS: function() {
|
|
565
|
+
return FLIGHT_HEADERS;
|
|
566
|
+
},
|
|
567
|
+
NEXT_DID_POSTPONE_HEADER: function() {
|
|
568
|
+
return NEXT_DID_POSTPONE_HEADER;
|
|
569
|
+
},
|
|
570
|
+
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
571
|
+
return NEXT_HMR_REFRESH_HASH_COOKIE;
|
|
572
|
+
},
|
|
573
|
+
NEXT_HMR_REFRESH_HEADER: function() {
|
|
574
|
+
return NEXT_HMR_REFRESH_HEADER;
|
|
575
|
+
},
|
|
576
|
+
NEXT_IS_PRERENDER_HEADER: function() {
|
|
577
|
+
return NEXT_IS_PRERENDER_HEADER;
|
|
578
|
+
},
|
|
579
|
+
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
580
|
+
return NEXT_REWRITTEN_PATH_HEADER;
|
|
581
|
+
},
|
|
582
|
+
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
583
|
+
return NEXT_REWRITTEN_QUERY_HEADER;
|
|
584
|
+
},
|
|
585
|
+
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
586
|
+
return NEXT_ROUTER_PREFETCH_HEADER;
|
|
587
|
+
},
|
|
588
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
589
|
+
return NEXT_ROUTER_SEGMENT_PREFETCH_HEADER;
|
|
590
|
+
},
|
|
591
|
+
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
592
|
+
return NEXT_ROUTER_STALE_TIME_HEADER;
|
|
593
|
+
},
|
|
594
|
+
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
595
|
+
return NEXT_ROUTER_STATE_TREE_HEADER;
|
|
596
|
+
},
|
|
597
|
+
NEXT_RSC_UNION_QUERY: function() {
|
|
598
|
+
return NEXT_RSC_UNION_QUERY;
|
|
599
|
+
},
|
|
600
|
+
NEXT_URL: function() {
|
|
601
|
+
return NEXT_URL;
|
|
602
|
+
},
|
|
603
|
+
RSC_CONTENT_TYPE_HEADER: function() {
|
|
604
|
+
return RSC_CONTENT_TYPE_HEADER;
|
|
605
|
+
},
|
|
606
|
+
RSC_HEADER: function() {
|
|
607
|
+
return RSC_HEADER;
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
var RSC_HEADER = "RSC";
|
|
611
|
+
var ACTION_HEADER = "Next-Action";
|
|
612
|
+
var NEXT_ROUTER_STATE_TREE_HEADER = "Next-Router-State-Tree";
|
|
613
|
+
var NEXT_ROUTER_PREFETCH_HEADER = "Next-Router-Prefetch";
|
|
614
|
+
var NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = "Next-Router-Segment-Prefetch";
|
|
615
|
+
var NEXT_HMR_REFRESH_HEADER = "Next-HMR-Refresh";
|
|
616
|
+
var NEXT_HMR_REFRESH_HASH_COOKIE = "__next_hmr_refresh_hash__";
|
|
617
|
+
var NEXT_URL = "Next-Url";
|
|
618
|
+
var RSC_CONTENT_TYPE_HEADER = "text/x-component";
|
|
619
|
+
var FLIGHT_HEADERS = [
|
|
620
|
+
RSC_HEADER,
|
|
621
|
+
NEXT_ROUTER_STATE_TREE_HEADER,
|
|
622
|
+
NEXT_ROUTER_PREFETCH_HEADER,
|
|
623
|
+
NEXT_HMR_REFRESH_HEADER,
|
|
624
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER
|
|
625
|
+
];
|
|
626
|
+
var NEXT_RSC_UNION_QUERY = "_rsc";
|
|
627
|
+
var NEXT_ROUTER_STALE_TIME_HEADER = "x-nextjs-stale-time";
|
|
628
|
+
var NEXT_DID_POSTPONE_HEADER = "x-nextjs-postponed";
|
|
629
|
+
var NEXT_REWRITTEN_PATH_HEADER = "x-nextjs-rewritten-path";
|
|
630
|
+
var NEXT_REWRITTEN_QUERY_HEADER = "x-nextjs-rewritten-query";
|
|
631
|
+
var NEXT_IS_PRERENDER_HEADER = "x-nextjs-prerender";
|
|
632
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
633
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
634
|
+
Object.assign(exports.default, exports);
|
|
635
|
+
module.exports = exports.default;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
|
|
640
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js
|
|
641
|
+
var require_work_unit_async_storage_external = __commonJS({
|
|
642
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js"(exports) {
|
|
643
|
+
Object.defineProperty(exports, "__esModule", {
|
|
644
|
+
value: true
|
|
645
|
+
});
|
|
646
|
+
function _export(target, all) {
|
|
647
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
648
|
+
enumerable: true,
|
|
649
|
+
get: all[name]
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
_export(exports, {
|
|
653
|
+
getDraftModeProviderForCacheScope: function() {
|
|
654
|
+
return getDraftModeProviderForCacheScope;
|
|
655
|
+
},
|
|
656
|
+
getExpectedRequestStore: function() {
|
|
657
|
+
return getExpectedRequestStore;
|
|
658
|
+
},
|
|
659
|
+
getHmrRefreshHash: function() {
|
|
660
|
+
return getHmrRefreshHash;
|
|
661
|
+
},
|
|
662
|
+
getPrerenderResumeDataCache: function() {
|
|
663
|
+
return getPrerenderResumeDataCache;
|
|
664
|
+
},
|
|
665
|
+
getRenderResumeDataCache: function() {
|
|
666
|
+
return getRenderResumeDataCache;
|
|
667
|
+
},
|
|
668
|
+
throwForMissingRequestStore: function() {
|
|
669
|
+
return throwForMissingRequestStore;
|
|
670
|
+
},
|
|
671
|
+
workUnitAsyncStorage: function() {
|
|
672
|
+
return _workunitasyncstorageinstance.workUnitAsyncStorageInstance;
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
var _workunitasyncstorageinstance = require_work_unit_async_storage_instance();
|
|
676
|
+
var _approuterheaders = require_app_router_headers();
|
|
677
|
+
function getExpectedRequestStore(callingExpression) {
|
|
678
|
+
const workUnitStore = _workunitasyncstorageinstance.workUnitAsyncStorageInstance.getStore();
|
|
679
|
+
if (!workUnitStore) {
|
|
680
|
+
throwForMissingRequestStore(callingExpression);
|
|
681
|
+
}
|
|
682
|
+
switch (workUnitStore.type) {
|
|
683
|
+
case "request":
|
|
684
|
+
return workUnitStore;
|
|
685
|
+
case "prerender":
|
|
686
|
+
case "prerender-ppr":
|
|
687
|
+
case "prerender-legacy":
|
|
688
|
+
throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside a prerender. This is a bug in Next.js.`), "__NEXT_ERROR_CODE", {
|
|
689
|
+
value: "E401",
|
|
690
|
+
enumerable: false,
|
|
691
|
+
configurable: true
|
|
692
|
+
});
|
|
693
|
+
case "cache":
|
|
694
|
+
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", {
|
|
695
|
+
value: "E37",
|
|
696
|
+
enumerable: false,
|
|
697
|
+
configurable: true
|
|
698
|
+
});
|
|
699
|
+
case "unstable-cache":
|
|
700
|
+
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", {
|
|
701
|
+
value: "E69",
|
|
702
|
+
enumerable: false,
|
|
703
|
+
configurable: true
|
|
704
|
+
});
|
|
705
|
+
default:
|
|
706
|
+
const _exhaustiveCheck = workUnitStore;
|
|
707
|
+
return _exhaustiveCheck;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
function throwForMissingRequestStore(callingExpression) {
|
|
711
|
+
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", {
|
|
712
|
+
value: "E251",
|
|
713
|
+
enumerable: false,
|
|
714
|
+
configurable: true
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
function getPrerenderResumeDataCache(workUnitStore) {
|
|
718
|
+
if (workUnitStore.type === "prerender" || workUnitStore.type === "prerender-ppr") {
|
|
719
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
720
|
+
}
|
|
721
|
+
return null;
|
|
722
|
+
}
|
|
723
|
+
function getRenderResumeDataCache(workUnitStore) {
|
|
724
|
+
if (workUnitStore.type !== "prerender-legacy" && workUnitStore.type !== "cache" && workUnitStore.type !== "unstable-cache") {
|
|
725
|
+
if (workUnitStore.type === "request") {
|
|
726
|
+
return workUnitStore.renderResumeDataCache;
|
|
727
|
+
}
|
|
728
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
729
|
+
}
|
|
730
|
+
return null;
|
|
731
|
+
}
|
|
732
|
+
function getHmrRefreshHash(workStore, workUnitStore) {
|
|
733
|
+
var _workUnitStore_cookies_get;
|
|
734
|
+
if (!workStore.dev) {
|
|
735
|
+
return void 0;
|
|
736
|
+
}
|
|
737
|
+
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;
|
|
738
|
+
}
|
|
739
|
+
function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
|
|
740
|
+
if (workStore.isDraftMode) {
|
|
741
|
+
switch (workUnitStore.type) {
|
|
742
|
+
case "cache":
|
|
743
|
+
case "unstable-cache":
|
|
744
|
+
case "request":
|
|
745
|
+
return workUnitStore.draftMode;
|
|
746
|
+
default:
|
|
747
|
+
return void 0;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
return void 0;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
});
|
|
754
|
+
|
|
755
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js
|
|
756
|
+
var require_request_cookies = __commonJS({
|
|
757
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js"(exports) {
|
|
758
|
+
Object.defineProperty(exports, "__esModule", {
|
|
759
|
+
value: true
|
|
760
|
+
});
|
|
761
|
+
function _export(target, all) {
|
|
762
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
763
|
+
enumerable: true,
|
|
764
|
+
get: all[name]
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
_export(exports, {
|
|
768
|
+
MutableRequestCookiesAdapter: function() {
|
|
769
|
+
return MutableRequestCookiesAdapter;
|
|
770
|
+
},
|
|
771
|
+
ReadonlyRequestCookiesError: function() {
|
|
772
|
+
return ReadonlyRequestCookiesError;
|
|
773
|
+
},
|
|
774
|
+
RequestCookiesAdapter: function() {
|
|
775
|
+
return RequestCookiesAdapter;
|
|
776
|
+
},
|
|
777
|
+
appendMutableCookies: function() {
|
|
778
|
+
return appendMutableCookies;
|
|
779
|
+
},
|
|
780
|
+
areCookiesMutableInCurrentPhase: function() {
|
|
781
|
+
return areCookiesMutableInCurrentPhase;
|
|
782
|
+
},
|
|
783
|
+
getModifiedCookieValues: function() {
|
|
784
|
+
return getModifiedCookieValues;
|
|
785
|
+
},
|
|
786
|
+
responseCookiesToRequestCookies: function() {
|
|
787
|
+
return responseCookiesToRequestCookies;
|
|
788
|
+
},
|
|
789
|
+
wrapWithMutableAccessCheck: function() {
|
|
790
|
+
return wrapWithMutableAccessCheck;
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
var _cookies = require_cookies2();
|
|
794
|
+
var _reflect = require_reflect();
|
|
795
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
796
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
797
|
+
var ReadonlyRequestCookiesError = class _ReadonlyRequestCookiesError extends Error {
|
|
798
|
+
constructor() {
|
|
799
|
+
super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options");
|
|
800
|
+
}
|
|
801
|
+
static callable() {
|
|
802
|
+
throw new _ReadonlyRequestCookiesError();
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
var RequestCookiesAdapter = class {
|
|
806
|
+
static seal(cookies2) {
|
|
807
|
+
return new Proxy(cookies2, {
|
|
808
|
+
get(target, prop, receiver) {
|
|
809
|
+
switch (prop) {
|
|
810
|
+
case "clear":
|
|
811
|
+
case "delete":
|
|
812
|
+
case "set":
|
|
813
|
+
return ReadonlyRequestCookiesError.callable;
|
|
814
|
+
default:
|
|
815
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
var SYMBOL_MODIFY_COOKIE_VALUES = Symbol.for("next.mutated.cookies");
|
|
822
|
+
function getModifiedCookieValues(cookies2) {
|
|
823
|
+
const modified = cookies2[SYMBOL_MODIFY_COOKIE_VALUES];
|
|
824
|
+
if (!modified || !Array.isArray(modified) || modified.length === 0) {
|
|
825
|
+
return [];
|
|
826
|
+
}
|
|
827
|
+
return modified;
|
|
828
|
+
}
|
|
829
|
+
function appendMutableCookies(headers2, mutableCookies) {
|
|
830
|
+
const modifiedCookieValues = getModifiedCookieValues(mutableCookies);
|
|
831
|
+
if (modifiedCookieValues.length === 0) {
|
|
832
|
+
return false;
|
|
833
|
+
}
|
|
834
|
+
const resCookies = new _cookies.ResponseCookies(headers2);
|
|
835
|
+
const returnedCookies = resCookies.getAll();
|
|
836
|
+
for (const cookie of modifiedCookieValues) {
|
|
837
|
+
resCookies.set(cookie);
|
|
838
|
+
}
|
|
839
|
+
for (const cookie of returnedCookies) {
|
|
840
|
+
resCookies.set(cookie);
|
|
841
|
+
}
|
|
842
|
+
return true;
|
|
843
|
+
}
|
|
844
|
+
var MutableRequestCookiesAdapter = class {
|
|
845
|
+
static wrap(cookies2, onUpdateCookies) {
|
|
846
|
+
const responseCookies = new _cookies.ResponseCookies(new Headers());
|
|
847
|
+
for (const cookie of cookies2.getAll()) {
|
|
848
|
+
responseCookies.set(cookie);
|
|
849
|
+
}
|
|
850
|
+
let modifiedValues = [];
|
|
851
|
+
const modifiedCookies = /* @__PURE__ */ new Set();
|
|
852
|
+
const updateResponseCookies = () => {
|
|
853
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
854
|
+
if (workStore) {
|
|
855
|
+
workStore.pathWasRevalidated = true;
|
|
856
|
+
}
|
|
857
|
+
const allCookies = responseCookies.getAll();
|
|
858
|
+
modifiedValues = allCookies.filter((c) => modifiedCookies.has(c.name));
|
|
859
|
+
if (onUpdateCookies) {
|
|
860
|
+
const serializedCookies = [];
|
|
861
|
+
for (const cookie of modifiedValues) {
|
|
862
|
+
const tempCookies = new _cookies.ResponseCookies(new Headers());
|
|
863
|
+
tempCookies.set(cookie);
|
|
864
|
+
serializedCookies.push(tempCookies.toString());
|
|
865
|
+
}
|
|
866
|
+
onUpdateCookies(serializedCookies);
|
|
867
|
+
}
|
|
868
|
+
};
|
|
869
|
+
const wrappedCookies = new Proxy(responseCookies, {
|
|
870
|
+
get(target, prop, receiver) {
|
|
871
|
+
switch (prop) {
|
|
872
|
+
// A special symbol to get the modified cookie values
|
|
873
|
+
case SYMBOL_MODIFY_COOKIE_VALUES:
|
|
874
|
+
return modifiedValues;
|
|
875
|
+
// TODO: Throw error if trying to set a cookie after the response
|
|
876
|
+
// headers have been set.
|
|
877
|
+
case "delete":
|
|
878
|
+
return function(...args) {
|
|
879
|
+
modifiedCookies.add(typeof args[0] === "string" ? args[0] : args[0].name);
|
|
880
|
+
try {
|
|
881
|
+
target.delete(...args);
|
|
882
|
+
return wrappedCookies;
|
|
883
|
+
} finally {
|
|
884
|
+
updateResponseCookies();
|
|
885
|
+
}
|
|
886
|
+
};
|
|
887
|
+
case "set":
|
|
888
|
+
return function(...args) {
|
|
889
|
+
modifiedCookies.add(typeof args[0] === "string" ? args[0] : args[0].name);
|
|
890
|
+
try {
|
|
891
|
+
target.set(...args);
|
|
892
|
+
return wrappedCookies;
|
|
893
|
+
} finally {
|
|
894
|
+
updateResponseCookies();
|
|
895
|
+
}
|
|
896
|
+
};
|
|
897
|
+
default:
|
|
898
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
return wrappedCookies;
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
function wrapWithMutableAccessCheck(responseCookies) {
|
|
906
|
+
const wrappedCookies = new Proxy(responseCookies, {
|
|
907
|
+
get(target, prop, receiver) {
|
|
908
|
+
switch (prop) {
|
|
909
|
+
case "delete":
|
|
910
|
+
return function(...args) {
|
|
911
|
+
ensureCookiesAreStillMutable("cookies().delete");
|
|
912
|
+
target.delete(...args);
|
|
913
|
+
return wrappedCookies;
|
|
914
|
+
};
|
|
915
|
+
case "set":
|
|
916
|
+
return function(...args) {
|
|
917
|
+
ensureCookiesAreStillMutable("cookies().set");
|
|
918
|
+
target.set(...args);
|
|
919
|
+
return wrappedCookies;
|
|
920
|
+
};
|
|
921
|
+
default:
|
|
922
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
});
|
|
926
|
+
return wrappedCookies;
|
|
927
|
+
}
|
|
928
|
+
function areCookiesMutableInCurrentPhase(requestStore) {
|
|
929
|
+
return requestStore.phase === "action";
|
|
930
|
+
}
|
|
931
|
+
function ensureCookiesAreStillMutable(callingExpression) {
|
|
932
|
+
const requestStore = (0, _workunitasyncstorageexternal.getExpectedRequestStore)(callingExpression);
|
|
933
|
+
if (!areCookiesMutableInCurrentPhase(requestStore)) {
|
|
934
|
+
throw new ReadonlyRequestCookiesError();
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
function responseCookiesToRequestCookies(responseCookies) {
|
|
938
|
+
const requestCookies = new _cookies.RequestCookies(new Headers());
|
|
939
|
+
for (const cookie of responseCookies.getAll()) {
|
|
940
|
+
requestCookies.set(cookie);
|
|
941
|
+
}
|
|
942
|
+
return requestCookies;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
});
|
|
946
|
+
|
|
947
|
+
// ../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js
|
|
948
|
+
var require_react_production = __commonJS({
|
|
949
|
+
"../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js"(exports) {
|
|
950
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
951
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
952
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
953
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
954
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
955
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
956
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
957
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
958
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
959
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
960
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
961
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
962
|
+
function getIteratorFn(maybeIterable) {
|
|
963
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
964
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
965
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
966
|
+
}
|
|
967
|
+
var ReactNoopUpdateQueue = {
|
|
968
|
+
isMounted: function() {
|
|
969
|
+
return false;
|
|
970
|
+
},
|
|
971
|
+
enqueueForceUpdate: function() {
|
|
972
|
+
},
|
|
973
|
+
enqueueReplaceState: function() {
|
|
974
|
+
},
|
|
975
|
+
enqueueSetState: function() {
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
var assign = Object.assign;
|
|
979
|
+
var emptyObject = {};
|
|
980
|
+
function Component(props, context, updater) {
|
|
981
|
+
this.props = props;
|
|
982
|
+
this.context = context;
|
|
983
|
+
this.refs = emptyObject;
|
|
984
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
985
|
+
}
|
|
986
|
+
Component.prototype.isReactComponent = {};
|
|
987
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
988
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
989
|
+
throw Error(
|
|
990
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
991
|
+
);
|
|
992
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
993
|
+
};
|
|
994
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
995
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
996
|
+
};
|
|
997
|
+
function ComponentDummy() {
|
|
998
|
+
}
|
|
999
|
+
ComponentDummy.prototype = Component.prototype;
|
|
1000
|
+
function PureComponent(props, context, updater) {
|
|
1001
|
+
this.props = props;
|
|
1002
|
+
this.context = context;
|
|
1003
|
+
this.refs = emptyObject;
|
|
1004
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
1005
|
+
}
|
|
1006
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
1007
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
1008
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
1009
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
1010
|
+
var isArrayImpl = Array.isArray;
|
|
1011
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
|
|
1012
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1013
|
+
function ReactElement(type, key, self, source, owner, props) {
|
|
1014
|
+
self = props.ref;
|
|
1015
|
+
return {
|
|
1016
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1017
|
+
type,
|
|
1018
|
+
key,
|
|
1019
|
+
ref: void 0 !== self ? self : null,
|
|
1020
|
+
props
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
1024
|
+
return ReactElement(
|
|
1025
|
+
oldElement.type,
|
|
1026
|
+
newKey,
|
|
1027
|
+
void 0,
|
|
1028
|
+
void 0,
|
|
1029
|
+
void 0,
|
|
1030
|
+
oldElement.props
|
|
1031
|
+
);
|
|
1032
|
+
}
|
|
1033
|
+
function isValidElement(object) {
|
|
1034
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1035
|
+
}
|
|
1036
|
+
function escape(key) {
|
|
1037
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
1038
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
1039
|
+
return escaperLookup[match];
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
1043
|
+
function getElementKey(element, index) {
|
|
1044
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
1045
|
+
}
|
|
1046
|
+
function noop$1() {
|
|
1047
|
+
}
|
|
1048
|
+
function resolveThenable(thenable) {
|
|
1049
|
+
switch (thenable.status) {
|
|
1050
|
+
case "fulfilled":
|
|
1051
|
+
return thenable.value;
|
|
1052
|
+
case "rejected":
|
|
1053
|
+
throw thenable.reason;
|
|
1054
|
+
default:
|
|
1055
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
1056
|
+
function(fulfilledValue) {
|
|
1057
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
1058
|
+
},
|
|
1059
|
+
function(error) {
|
|
1060
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
1061
|
+
}
|
|
1062
|
+
)), thenable.status) {
|
|
1063
|
+
case "fulfilled":
|
|
1064
|
+
return thenable.value;
|
|
1065
|
+
case "rejected":
|
|
1066
|
+
throw thenable.reason;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
throw thenable;
|
|
1070
|
+
}
|
|
1071
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
1072
|
+
var type = typeof children;
|
|
1073
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
1074
|
+
var invokeCallback = false;
|
|
1075
|
+
if (null === children) invokeCallback = true;
|
|
1076
|
+
else
|
|
1077
|
+
switch (type) {
|
|
1078
|
+
case "bigint":
|
|
1079
|
+
case "string":
|
|
1080
|
+
case "number":
|
|
1081
|
+
invokeCallback = true;
|
|
1082
|
+
break;
|
|
1083
|
+
case "object":
|
|
1084
|
+
switch (children.$$typeof) {
|
|
1085
|
+
case REACT_ELEMENT_TYPE:
|
|
1086
|
+
case REACT_PORTAL_TYPE:
|
|
1087
|
+
invokeCallback = true;
|
|
1088
|
+
break;
|
|
1089
|
+
case REACT_LAZY_TYPE:
|
|
1090
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
1091
|
+
invokeCallback(children._payload),
|
|
1092
|
+
array,
|
|
1093
|
+
escapedPrefix,
|
|
1094
|
+
nameSoFar,
|
|
1095
|
+
callback
|
|
1096
|
+
);
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
if (invokeCallback)
|
|
1100
|
+
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
1101
|
+
return c;
|
|
1102
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
1103
|
+
callback,
|
|
1104
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
1105
|
+
userProvidedKeyEscapeRegex,
|
|
1106
|
+
"$&/"
|
|
1107
|
+
) + "/") + invokeCallback
|
|
1108
|
+
)), array.push(callback)), 1;
|
|
1109
|
+
invokeCallback = 0;
|
|
1110
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
1111
|
+
if (isArrayImpl(children))
|
|
1112
|
+
for (var i = 0; i < children.length; i++)
|
|
1113
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
1114
|
+
nameSoFar,
|
|
1115
|
+
array,
|
|
1116
|
+
escapedPrefix,
|
|
1117
|
+
type,
|
|
1118
|
+
callback
|
|
1119
|
+
);
|
|
1120
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
1121
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
1122
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
1123
|
+
nameSoFar,
|
|
1124
|
+
array,
|
|
1125
|
+
escapedPrefix,
|
|
1126
|
+
type,
|
|
1127
|
+
callback
|
|
1128
|
+
);
|
|
1129
|
+
else if ("object" === type) {
|
|
1130
|
+
if ("function" === typeof children.then)
|
|
1131
|
+
return mapIntoArray(
|
|
1132
|
+
resolveThenable(children),
|
|
1133
|
+
array,
|
|
1134
|
+
escapedPrefix,
|
|
1135
|
+
nameSoFar,
|
|
1136
|
+
callback
|
|
1137
|
+
);
|
|
1138
|
+
array = String(children);
|
|
1139
|
+
throw Error(
|
|
1140
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1143
|
+
return invokeCallback;
|
|
1144
|
+
}
|
|
1145
|
+
function mapChildren(children, func, context) {
|
|
1146
|
+
if (null == children) return children;
|
|
1147
|
+
var result = [], count = 0;
|
|
1148
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
1149
|
+
return func.call(context, child, count++);
|
|
1150
|
+
});
|
|
1151
|
+
return result;
|
|
1152
|
+
}
|
|
1153
|
+
function lazyInitializer(payload) {
|
|
1154
|
+
if (-1 === payload._status) {
|
|
1155
|
+
var ctor = payload._result;
|
|
1156
|
+
ctor = ctor();
|
|
1157
|
+
ctor.then(
|
|
1158
|
+
function(moduleObject) {
|
|
1159
|
+
if (0 === payload._status || -1 === payload._status)
|
|
1160
|
+
payload._status = 1, payload._result = moduleObject;
|
|
1161
|
+
},
|
|
1162
|
+
function(error) {
|
|
1163
|
+
if (0 === payload._status || -1 === payload._status)
|
|
1164
|
+
payload._status = 2, payload._result = error;
|
|
1165
|
+
}
|
|
1166
|
+
);
|
|
1167
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
1168
|
+
}
|
|
1169
|
+
if (1 === payload._status) return payload._result.default;
|
|
1170
|
+
throw payload._result;
|
|
1171
|
+
}
|
|
1172
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1173
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1174
|
+
var event = new window.ErrorEvent("error", {
|
|
1175
|
+
bubbles: true,
|
|
1176
|
+
cancelable: true,
|
|
1177
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1178
|
+
error
|
|
1179
|
+
});
|
|
1180
|
+
if (!window.dispatchEvent(event)) return;
|
|
1181
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1182
|
+
process.emit("uncaughtException", error);
|
|
1183
|
+
return;
|
|
1184
|
+
}
|
|
1185
|
+
console.error(error);
|
|
1186
|
+
};
|
|
1187
|
+
function noop() {
|
|
1188
|
+
}
|
|
1189
|
+
exports.Children = {
|
|
1190
|
+
map: mapChildren,
|
|
1191
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
1192
|
+
mapChildren(
|
|
1193
|
+
children,
|
|
1194
|
+
function() {
|
|
1195
|
+
forEachFunc.apply(this, arguments);
|
|
1196
|
+
},
|
|
1197
|
+
forEachContext
|
|
1198
|
+
);
|
|
1199
|
+
},
|
|
1200
|
+
count: function(children) {
|
|
1201
|
+
var n = 0;
|
|
1202
|
+
mapChildren(children, function() {
|
|
1203
|
+
n++;
|
|
1204
|
+
});
|
|
1205
|
+
return n;
|
|
1206
|
+
},
|
|
1207
|
+
toArray: function(children) {
|
|
1208
|
+
return mapChildren(children, function(child) {
|
|
1209
|
+
return child;
|
|
1210
|
+
}) || [];
|
|
1211
|
+
},
|
|
1212
|
+
only: function(children) {
|
|
1213
|
+
if (!isValidElement(children))
|
|
1214
|
+
throw Error(
|
|
1215
|
+
"React.Children.only expected to receive a single React element child."
|
|
1216
|
+
);
|
|
1217
|
+
return children;
|
|
1218
|
+
}
|
|
1219
|
+
};
|
|
1220
|
+
exports.Component = Component;
|
|
1221
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1222
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1223
|
+
exports.PureComponent = PureComponent;
|
|
1224
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1225
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1226
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1227
|
+
exports.__COMPILER_RUNTIME = {
|
|
1228
|
+
__proto__: null,
|
|
1229
|
+
c: function(size) {
|
|
1230
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
1231
|
+
}
|
|
1232
|
+
};
|
|
1233
|
+
exports.cache = function(fn) {
|
|
1234
|
+
return function() {
|
|
1235
|
+
return fn.apply(null, arguments);
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1238
|
+
exports.cloneElement = function(element, config, children) {
|
|
1239
|
+
if (null === element || void 0 === element)
|
|
1240
|
+
throw Error(
|
|
1241
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
1242
|
+
);
|
|
1243
|
+
var props = assign({}, element.props), key = element.key, owner = void 0;
|
|
1244
|
+
if (null != config)
|
|
1245
|
+
for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
|
|
1246
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1247
|
+
var propName = arguments.length - 2;
|
|
1248
|
+
if (1 === propName) props.children = children;
|
|
1249
|
+
else if (1 < propName) {
|
|
1250
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
1251
|
+
childArray[i] = arguments[i + 2];
|
|
1252
|
+
props.children = childArray;
|
|
1253
|
+
}
|
|
1254
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
1255
|
+
};
|
|
1256
|
+
exports.createContext = function(defaultValue) {
|
|
1257
|
+
defaultValue = {
|
|
1258
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1259
|
+
_currentValue: defaultValue,
|
|
1260
|
+
_currentValue2: defaultValue,
|
|
1261
|
+
_threadCount: 0,
|
|
1262
|
+
Provider: null,
|
|
1263
|
+
Consumer: null
|
|
1264
|
+
};
|
|
1265
|
+
defaultValue.Provider = defaultValue;
|
|
1266
|
+
defaultValue.Consumer = {
|
|
1267
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
1268
|
+
_context: defaultValue
|
|
1269
|
+
};
|
|
1270
|
+
return defaultValue;
|
|
1271
|
+
};
|
|
1272
|
+
exports.createElement = function(type, config, children) {
|
|
1273
|
+
var propName, props = {}, key = null;
|
|
1274
|
+
if (null != config)
|
|
1275
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
1276
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
1277
|
+
var childrenLength = arguments.length - 2;
|
|
1278
|
+
if (1 === childrenLength) props.children = children;
|
|
1279
|
+
else if (1 < childrenLength) {
|
|
1280
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
1281
|
+
childArray[i] = arguments[i + 2];
|
|
1282
|
+
props.children = childArray;
|
|
1283
|
+
}
|
|
1284
|
+
if (type && type.defaultProps)
|
|
1285
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1286
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
1287
|
+
return ReactElement(type, key, void 0, void 0, null, props);
|
|
1288
|
+
};
|
|
1289
|
+
exports.createRef = function() {
|
|
1290
|
+
return { current: null };
|
|
1291
|
+
};
|
|
1292
|
+
exports.forwardRef = function(render) {
|
|
1293
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
1294
|
+
};
|
|
1295
|
+
exports.isValidElement = isValidElement;
|
|
1296
|
+
exports.lazy = function(ctor) {
|
|
1297
|
+
return {
|
|
1298
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1299
|
+
_payload: { _status: -1, _result: ctor },
|
|
1300
|
+
_init: lazyInitializer
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
exports.memo = function(type, compare) {
|
|
1304
|
+
return {
|
|
1305
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1306
|
+
type,
|
|
1307
|
+
compare: void 0 === compare ? null : compare
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
exports.startTransition = function(scope) {
|
|
1311
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1312
|
+
ReactSharedInternals.T = currentTransition;
|
|
1313
|
+
try {
|
|
1314
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1315
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1316
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
1317
|
+
} catch (error) {
|
|
1318
|
+
reportGlobalError(error);
|
|
1319
|
+
} finally {
|
|
1320
|
+
ReactSharedInternals.T = prevTransition;
|
|
1321
|
+
}
|
|
1322
|
+
};
|
|
1323
|
+
exports.unstable_useCacheRefresh = function() {
|
|
1324
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
1325
|
+
};
|
|
1326
|
+
exports.use = function(usable) {
|
|
1327
|
+
return ReactSharedInternals.H.use(usable);
|
|
1328
|
+
};
|
|
1329
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
1330
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
1331
|
+
};
|
|
1332
|
+
exports.useCallback = function(callback, deps) {
|
|
1333
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
1334
|
+
};
|
|
1335
|
+
exports.useContext = function(Context) {
|
|
1336
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
1337
|
+
};
|
|
1338
|
+
exports.useDebugValue = function() {
|
|
1339
|
+
};
|
|
1340
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
1341
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
1342
|
+
};
|
|
1343
|
+
exports.useEffect = function(create2, createDeps, update) {
|
|
1344
|
+
var dispatcher = ReactSharedInternals.H;
|
|
1345
|
+
if ("function" === typeof update)
|
|
1346
|
+
throw Error(
|
|
1347
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
1348
|
+
);
|
|
1349
|
+
return dispatcher.useEffect(create2, createDeps);
|
|
1350
|
+
};
|
|
1351
|
+
exports.useId = function() {
|
|
1352
|
+
return ReactSharedInternals.H.useId();
|
|
1353
|
+
};
|
|
1354
|
+
exports.useImperativeHandle = function(ref, create2, deps) {
|
|
1355
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create2, deps);
|
|
1356
|
+
};
|
|
1357
|
+
exports.useInsertionEffect = function(create2, deps) {
|
|
1358
|
+
return ReactSharedInternals.H.useInsertionEffect(create2, deps);
|
|
1359
|
+
};
|
|
1360
|
+
exports.useLayoutEffect = function(create2, deps) {
|
|
1361
|
+
return ReactSharedInternals.H.useLayoutEffect(create2, deps);
|
|
1362
|
+
};
|
|
1363
|
+
exports.useMemo = function(create2, deps) {
|
|
1364
|
+
return ReactSharedInternals.H.useMemo(create2, deps);
|
|
1365
|
+
};
|
|
1366
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
1367
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
1368
|
+
};
|
|
1369
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
1370
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
1371
|
+
};
|
|
1372
|
+
exports.useRef = function(initialValue) {
|
|
1373
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
1374
|
+
};
|
|
1375
|
+
exports.useState = function(initialState) {
|
|
1376
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
1377
|
+
};
|
|
1378
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1379
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
1380
|
+
subscribe,
|
|
1381
|
+
getSnapshot,
|
|
1382
|
+
getServerSnapshot
|
|
1383
|
+
);
|
|
1384
|
+
};
|
|
1385
|
+
exports.useTransition = function() {
|
|
1386
|
+
return ReactSharedInternals.H.useTransition();
|
|
1387
|
+
};
|
|
1388
|
+
exports.version = "19.1.0";
|
|
1389
|
+
}
|
|
1390
|
+
});
|
|
1391
|
+
|
|
1392
|
+
// ../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js
|
|
1393
|
+
var require_react_development = __commonJS({
|
|
1394
|
+
"../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js"(exports, module) {
|
|
1395
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
1396
|
+
function defineDeprecationWarning(methodName, info) {
|
|
1397
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
1398
|
+
get: function() {
|
|
1399
|
+
console.warn(
|
|
1400
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
1401
|
+
info[0],
|
|
1402
|
+
info[1]
|
|
1403
|
+
);
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
}
|
|
1407
|
+
function getIteratorFn(maybeIterable) {
|
|
1408
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
1409
|
+
return null;
|
|
1410
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
1411
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
1412
|
+
}
|
|
1413
|
+
function warnNoop(publicInstance, callerName) {
|
|
1414
|
+
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
1415
|
+
var warningKey = publicInstance + "." + callerName;
|
|
1416
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
1417
|
+
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
1418
|
+
callerName,
|
|
1419
|
+
publicInstance
|
|
1420
|
+
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
1421
|
+
}
|
|
1422
|
+
function Component(props, context, updater) {
|
|
1423
|
+
this.props = props;
|
|
1424
|
+
this.context = context;
|
|
1425
|
+
this.refs = emptyObject;
|
|
1426
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
1427
|
+
}
|
|
1428
|
+
function ComponentDummy() {
|
|
1429
|
+
}
|
|
1430
|
+
function PureComponent(props, context, updater) {
|
|
1431
|
+
this.props = props;
|
|
1432
|
+
this.context = context;
|
|
1433
|
+
this.refs = emptyObject;
|
|
1434
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
1435
|
+
}
|
|
1436
|
+
function testStringCoercion(value) {
|
|
1437
|
+
return "" + value;
|
|
1438
|
+
}
|
|
1439
|
+
function checkKeyStringCoercion(value) {
|
|
1440
|
+
try {
|
|
1441
|
+
testStringCoercion(value);
|
|
1442
|
+
var JSCompiler_inline_result = false;
|
|
1443
|
+
} catch (e) {
|
|
1444
|
+
JSCompiler_inline_result = true;
|
|
1445
|
+
}
|
|
1446
|
+
if (JSCompiler_inline_result) {
|
|
1447
|
+
JSCompiler_inline_result = console;
|
|
1448
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1449
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1450
|
+
JSCompiler_temp_const.call(
|
|
1451
|
+
JSCompiler_inline_result,
|
|
1452
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1453
|
+
JSCompiler_inline_result$jscomp$0
|
|
1454
|
+
);
|
|
1455
|
+
return testStringCoercion(value);
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
function getComponentNameFromType(type) {
|
|
1459
|
+
if (null == type) return null;
|
|
1460
|
+
if ("function" === typeof type)
|
|
1461
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1462
|
+
if ("string" === typeof type) return type;
|
|
1463
|
+
switch (type) {
|
|
1464
|
+
case REACT_FRAGMENT_TYPE:
|
|
1465
|
+
return "Fragment";
|
|
1466
|
+
case REACT_PROFILER_TYPE:
|
|
1467
|
+
return "Profiler";
|
|
1468
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1469
|
+
return "StrictMode";
|
|
1470
|
+
case REACT_SUSPENSE_TYPE:
|
|
1471
|
+
return "Suspense";
|
|
1472
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
1473
|
+
return "SuspenseList";
|
|
1474
|
+
case REACT_ACTIVITY_TYPE:
|
|
1475
|
+
return "Activity";
|
|
1476
|
+
}
|
|
1477
|
+
if ("object" === typeof type)
|
|
1478
|
+
switch ("number" === typeof type.tag && console.error(
|
|
1479
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1480
|
+
), type.$$typeof) {
|
|
1481
|
+
case REACT_PORTAL_TYPE:
|
|
1482
|
+
return "Portal";
|
|
1483
|
+
case REACT_CONTEXT_TYPE:
|
|
1484
|
+
return (type.displayName || "Context") + ".Provider";
|
|
1485
|
+
case REACT_CONSUMER_TYPE:
|
|
1486
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
1487
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1488
|
+
var innerType = type.render;
|
|
1489
|
+
type = type.displayName;
|
|
1490
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1491
|
+
return type;
|
|
1492
|
+
case REACT_MEMO_TYPE:
|
|
1493
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1494
|
+
case REACT_LAZY_TYPE:
|
|
1495
|
+
innerType = type._payload;
|
|
1496
|
+
type = type._init;
|
|
1497
|
+
try {
|
|
1498
|
+
return getComponentNameFromType(type(innerType));
|
|
1499
|
+
} catch (x) {
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
return null;
|
|
1503
|
+
}
|
|
1504
|
+
function getTaskName(type) {
|
|
1505
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
1506
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
1507
|
+
return "<...>";
|
|
1508
|
+
try {
|
|
1509
|
+
var name = getComponentNameFromType(type);
|
|
1510
|
+
return name ? "<" + name + ">" : "<...>";
|
|
1511
|
+
} catch (x) {
|
|
1512
|
+
return "<...>";
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
function getOwner() {
|
|
1516
|
+
var dispatcher = ReactSharedInternals.A;
|
|
1517
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1518
|
+
}
|
|
1519
|
+
function UnknownOwner() {
|
|
1520
|
+
return Error("react-stack-top-frame");
|
|
1521
|
+
}
|
|
1522
|
+
function hasValidKey(config) {
|
|
1523
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1524
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1525
|
+
if (getter && getter.isReactWarning) return false;
|
|
1526
|
+
}
|
|
1527
|
+
return void 0 !== config.key;
|
|
1528
|
+
}
|
|
1529
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
1530
|
+
function warnAboutAccessingKey() {
|
|
1531
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
1532
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
1533
|
+
displayName
|
|
1534
|
+
));
|
|
1535
|
+
}
|
|
1536
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
1537
|
+
Object.defineProperty(props, "key", {
|
|
1538
|
+
get: warnAboutAccessingKey,
|
|
1539
|
+
configurable: true
|
|
1540
|
+
});
|
|
1541
|
+
}
|
|
1542
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
1543
|
+
var componentName = getComponentNameFromType(this.type);
|
|
1544
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1545
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1546
|
+
));
|
|
1547
|
+
componentName = this.props.ref;
|
|
1548
|
+
return void 0 !== componentName ? componentName : null;
|
|
1549
|
+
}
|
|
1550
|
+
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
1551
|
+
self = props.ref;
|
|
1552
|
+
type = {
|
|
1553
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1554
|
+
type,
|
|
1555
|
+
key,
|
|
1556
|
+
props,
|
|
1557
|
+
_owner: owner
|
|
1558
|
+
};
|
|
1559
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
1560
|
+
enumerable: false,
|
|
1561
|
+
get: elementRefGetterWithDeprecationWarning
|
|
1562
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1563
|
+
type._store = {};
|
|
1564
|
+
Object.defineProperty(type._store, "validated", {
|
|
1565
|
+
configurable: false,
|
|
1566
|
+
enumerable: false,
|
|
1567
|
+
writable: true,
|
|
1568
|
+
value: 0
|
|
1569
|
+
});
|
|
1570
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
1571
|
+
configurable: false,
|
|
1572
|
+
enumerable: false,
|
|
1573
|
+
writable: true,
|
|
1574
|
+
value: null
|
|
1575
|
+
});
|
|
1576
|
+
Object.defineProperty(type, "_debugStack", {
|
|
1577
|
+
configurable: false,
|
|
1578
|
+
enumerable: false,
|
|
1579
|
+
writable: true,
|
|
1580
|
+
value: debugStack
|
|
1581
|
+
});
|
|
1582
|
+
Object.defineProperty(type, "_debugTask", {
|
|
1583
|
+
configurable: false,
|
|
1584
|
+
enumerable: false,
|
|
1585
|
+
writable: true,
|
|
1586
|
+
value: debugTask
|
|
1587
|
+
});
|
|
1588
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1589
|
+
return type;
|
|
1590
|
+
}
|
|
1591
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
1592
|
+
newKey = ReactElement(
|
|
1593
|
+
oldElement.type,
|
|
1594
|
+
newKey,
|
|
1595
|
+
void 0,
|
|
1596
|
+
void 0,
|
|
1597
|
+
oldElement._owner,
|
|
1598
|
+
oldElement.props,
|
|
1599
|
+
oldElement._debugStack,
|
|
1600
|
+
oldElement._debugTask
|
|
1601
|
+
);
|
|
1602
|
+
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
1603
|
+
return newKey;
|
|
1604
|
+
}
|
|
1605
|
+
function isValidElement(object) {
|
|
1606
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1607
|
+
}
|
|
1608
|
+
function escape(key) {
|
|
1609
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
1610
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
1611
|
+
return escaperLookup[match];
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
function getElementKey(element, index) {
|
|
1615
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
1616
|
+
}
|
|
1617
|
+
function noop$1() {
|
|
1618
|
+
}
|
|
1619
|
+
function resolveThenable(thenable) {
|
|
1620
|
+
switch (thenable.status) {
|
|
1621
|
+
case "fulfilled":
|
|
1622
|
+
return thenable.value;
|
|
1623
|
+
case "rejected":
|
|
1624
|
+
throw thenable.reason;
|
|
1625
|
+
default:
|
|
1626
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
1627
|
+
function(fulfilledValue) {
|
|
1628
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
1629
|
+
},
|
|
1630
|
+
function(error) {
|
|
1631
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
1632
|
+
}
|
|
1633
|
+
)), thenable.status) {
|
|
1634
|
+
case "fulfilled":
|
|
1635
|
+
return thenable.value;
|
|
1636
|
+
case "rejected":
|
|
1637
|
+
throw thenable.reason;
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
throw thenable;
|
|
1641
|
+
}
|
|
1642
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
1643
|
+
var type = typeof children;
|
|
1644
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
1645
|
+
var invokeCallback = false;
|
|
1646
|
+
if (null === children) invokeCallback = true;
|
|
1647
|
+
else
|
|
1648
|
+
switch (type) {
|
|
1649
|
+
case "bigint":
|
|
1650
|
+
case "string":
|
|
1651
|
+
case "number":
|
|
1652
|
+
invokeCallback = true;
|
|
1653
|
+
break;
|
|
1654
|
+
case "object":
|
|
1655
|
+
switch (children.$$typeof) {
|
|
1656
|
+
case REACT_ELEMENT_TYPE:
|
|
1657
|
+
case REACT_PORTAL_TYPE:
|
|
1658
|
+
invokeCallback = true;
|
|
1659
|
+
break;
|
|
1660
|
+
case REACT_LAZY_TYPE:
|
|
1661
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
1662
|
+
invokeCallback(children._payload),
|
|
1663
|
+
array,
|
|
1664
|
+
escapedPrefix,
|
|
1665
|
+
nameSoFar,
|
|
1666
|
+
callback
|
|
1667
|
+
);
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
if (invokeCallback) {
|
|
1671
|
+
invokeCallback = children;
|
|
1672
|
+
callback = callback(invokeCallback);
|
|
1673
|
+
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
1674
|
+
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
1675
|
+
return c;
|
|
1676
|
+
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
1677
|
+
callback,
|
|
1678
|
+
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
1679
|
+
userProvidedKeyEscapeRegex,
|
|
1680
|
+
"$&/"
|
|
1681
|
+
) + "/") + childKey
|
|
1682
|
+
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
1683
|
+
return 1;
|
|
1684
|
+
}
|
|
1685
|
+
invokeCallback = 0;
|
|
1686
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
1687
|
+
if (isArrayImpl(children))
|
|
1688
|
+
for (var i = 0; i < children.length; i++)
|
|
1689
|
+
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
1690
|
+
nameSoFar,
|
|
1691
|
+
array,
|
|
1692
|
+
escapedPrefix,
|
|
1693
|
+
type,
|
|
1694
|
+
callback
|
|
1695
|
+
);
|
|
1696
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
1697
|
+
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
1698
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
1699
|
+
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
1700
|
+
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
1701
|
+
nameSoFar,
|
|
1702
|
+
array,
|
|
1703
|
+
escapedPrefix,
|
|
1704
|
+
type,
|
|
1705
|
+
callback
|
|
1706
|
+
);
|
|
1707
|
+
else if ("object" === type) {
|
|
1708
|
+
if ("function" === typeof children.then)
|
|
1709
|
+
return mapIntoArray(
|
|
1710
|
+
resolveThenable(children),
|
|
1711
|
+
array,
|
|
1712
|
+
escapedPrefix,
|
|
1713
|
+
nameSoFar,
|
|
1714
|
+
callback
|
|
1715
|
+
);
|
|
1716
|
+
array = String(children);
|
|
1717
|
+
throw Error(
|
|
1718
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
1719
|
+
);
|
|
1720
|
+
}
|
|
1721
|
+
return invokeCallback;
|
|
1722
|
+
}
|
|
1723
|
+
function mapChildren(children, func, context) {
|
|
1724
|
+
if (null == children) return children;
|
|
1725
|
+
var result = [], count = 0;
|
|
1726
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
1727
|
+
return func.call(context, child, count++);
|
|
1728
|
+
});
|
|
1729
|
+
return result;
|
|
1730
|
+
}
|
|
1731
|
+
function lazyInitializer(payload) {
|
|
1732
|
+
if (-1 === payload._status) {
|
|
1733
|
+
var ctor = payload._result;
|
|
1734
|
+
ctor = ctor();
|
|
1735
|
+
ctor.then(
|
|
1736
|
+
function(moduleObject) {
|
|
1737
|
+
if (0 === payload._status || -1 === payload._status)
|
|
1738
|
+
payload._status = 1, payload._result = moduleObject;
|
|
1739
|
+
},
|
|
1740
|
+
function(error) {
|
|
1741
|
+
if (0 === payload._status || -1 === payload._status)
|
|
1742
|
+
payload._status = 2, payload._result = error;
|
|
1743
|
+
}
|
|
1744
|
+
);
|
|
1745
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
1746
|
+
}
|
|
1747
|
+
if (1 === payload._status)
|
|
1748
|
+
return ctor = payload._result, void 0 === ctor && console.error(
|
|
1749
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
1750
|
+
ctor
|
|
1751
|
+
), "default" in ctor || console.error(
|
|
1752
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
1753
|
+
ctor
|
|
1754
|
+
), ctor.default;
|
|
1755
|
+
throw payload._result;
|
|
1756
|
+
}
|
|
1757
|
+
function resolveDispatcher() {
|
|
1758
|
+
var dispatcher = ReactSharedInternals.H;
|
|
1759
|
+
null === dispatcher && console.error(
|
|
1760
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
1761
|
+
);
|
|
1762
|
+
return dispatcher;
|
|
1763
|
+
}
|
|
1764
|
+
function noop() {
|
|
1765
|
+
}
|
|
1766
|
+
function enqueueTask(task) {
|
|
1767
|
+
if (null === enqueueTaskImpl)
|
|
1768
|
+
try {
|
|
1769
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
1770
|
+
enqueueTaskImpl = (module && module[requireString]).call(
|
|
1771
|
+
module,
|
|
1772
|
+
"timers"
|
|
1773
|
+
).setImmediate;
|
|
1774
|
+
} catch (_err) {
|
|
1775
|
+
enqueueTaskImpl = function(callback) {
|
|
1776
|
+
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
1777
|
+
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
1778
|
+
));
|
|
1779
|
+
var channel = new MessageChannel();
|
|
1780
|
+
channel.port1.onmessage = callback;
|
|
1781
|
+
channel.port2.postMessage(void 0);
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
return enqueueTaskImpl(task);
|
|
1785
|
+
}
|
|
1786
|
+
function aggregateErrors(errors) {
|
|
1787
|
+
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
1788
|
+
}
|
|
1789
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
1790
|
+
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
1791
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
1792
|
+
);
|
|
1793
|
+
actScopeDepth = prevActScopeDepth;
|
|
1794
|
+
}
|
|
1795
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
1796
|
+
var queue = ReactSharedInternals.actQueue;
|
|
1797
|
+
if (null !== queue)
|
|
1798
|
+
if (0 !== queue.length)
|
|
1799
|
+
try {
|
|
1800
|
+
flushActQueue(queue);
|
|
1801
|
+
enqueueTask(function() {
|
|
1802
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
1803
|
+
});
|
|
1804
|
+
return;
|
|
1805
|
+
} catch (error) {
|
|
1806
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
1807
|
+
}
|
|
1808
|
+
else ReactSharedInternals.actQueue = null;
|
|
1809
|
+
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
1810
|
+
}
|
|
1811
|
+
function flushActQueue(queue) {
|
|
1812
|
+
if (!isFlushing) {
|
|
1813
|
+
isFlushing = true;
|
|
1814
|
+
var i = 0;
|
|
1815
|
+
try {
|
|
1816
|
+
for (; i < queue.length; i++) {
|
|
1817
|
+
var callback = queue[i];
|
|
1818
|
+
do {
|
|
1819
|
+
ReactSharedInternals.didUsePromise = false;
|
|
1820
|
+
var continuation = callback(false);
|
|
1821
|
+
if (null !== continuation) {
|
|
1822
|
+
if (ReactSharedInternals.didUsePromise) {
|
|
1823
|
+
queue[i] = callback;
|
|
1824
|
+
queue.splice(0, i);
|
|
1825
|
+
return;
|
|
1826
|
+
}
|
|
1827
|
+
callback = continuation;
|
|
1828
|
+
} else break;
|
|
1829
|
+
} while (1);
|
|
1830
|
+
}
|
|
1831
|
+
queue.length = 0;
|
|
1832
|
+
} catch (error) {
|
|
1833
|
+
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
1834
|
+
} finally {
|
|
1835
|
+
isFlushing = false;
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1840
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1841
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
1842
|
+
isMounted: function() {
|
|
1843
|
+
return false;
|
|
1844
|
+
},
|
|
1845
|
+
enqueueForceUpdate: function(publicInstance) {
|
|
1846
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
1847
|
+
},
|
|
1848
|
+
enqueueReplaceState: function(publicInstance) {
|
|
1849
|
+
warnNoop(publicInstance, "replaceState");
|
|
1850
|
+
},
|
|
1851
|
+
enqueueSetState: function(publicInstance) {
|
|
1852
|
+
warnNoop(publicInstance, "setState");
|
|
1853
|
+
}
|
|
1854
|
+
}, assign = Object.assign, emptyObject = {};
|
|
1855
|
+
Object.freeze(emptyObject);
|
|
1856
|
+
Component.prototype.isReactComponent = {};
|
|
1857
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
1858
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
1859
|
+
throw Error(
|
|
1860
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1861
|
+
);
|
|
1862
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1863
|
+
};
|
|
1864
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
1865
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1866
|
+
};
|
|
1867
|
+
var deprecatedAPIs = {
|
|
1868
|
+
isMounted: [
|
|
1869
|
+
"isMounted",
|
|
1870
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1871
|
+
],
|
|
1872
|
+
replaceState: [
|
|
1873
|
+
"replaceState",
|
|
1874
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1875
|
+
]
|
|
1876
|
+
}, fnName;
|
|
1877
|
+
for (fnName in deprecatedAPIs)
|
|
1878
|
+
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1879
|
+
ComponentDummy.prototype = Component.prototype;
|
|
1880
|
+
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1881
|
+
deprecatedAPIs.constructor = PureComponent;
|
|
1882
|
+
assign(deprecatedAPIs, Component.prototype);
|
|
1883
|
+
deprecatedAPIs.isPureReactComponent = true;
|
|
1884
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
1885
|
+
H: null,
|
|
1886
|
+
A: null,
|
|
1887
|
+
T: null,
|
|
1888
|
+
S: null,
|
|
1889
|
+
V: null,
|
|
1890
|
+
actQueue: null,
|
|
1891
|
+
isBatchingLegacy: false,
|
|
1892
|
+
didScheduleLegacyUpdate: false,
|
|
1893
|
+
didUsePromise: false,
|
|
1894
|
+
thrownErrors: [],
|
|
1895
|
+
getCurrentStack: null,
|
|
1896
|
+
recentlyCreatedOwnerStacks: 0
|
|
1897
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1898
|
+
return null;
|
|
1899
|
+
};
|
|
1900
|
+
deprecatedAPIs = {
|
|
1901
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
1902
|
+
return callStackForError();
|
|
1903
|
+
}
|
|
1904
|
+
};
|
|
1905
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1906
|
+
var didWarnAboutElementRef = {};
|
|
1907
|
+
var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
|
|
1908
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1909
|
+
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1910
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1911
|
+
var event = new window.ErrorEvent("error", {
|
|
1912
|
+
bubbles: true,
|
|
1913
|
+
cancelable: true,
|
|
1914
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1915
|
+
error
|
|
1916
|
+
});
|
|
1917
|
+
if (!window.dispatchEvent(event)) return;
|
|
1918
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1919
|
+
process.emit("uncaughtException", error);
|
|
1920
|
+
return;
|
|
1921
|
+
}
|
|
1922
|
+
console.error(error);
|
|
1923
|
+
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1924
|
+
queueMicrotask(function() {
|
|
1925
|
+
return queueMicrotask(callback);
|
|
1926
|
+
});
|
|
1927
|
+
} : enqueueTask;
|
|
1928
|
+
deprecatedAPIs = Object.freeze({
|
|
1929
|
+
__proto__: null,
|
|
1930
|
+
c: function(size) {
|
|
1931
|
+
return resolveDispatcher().useMemoCache(size);
|
|
1932
|
+
}
|
|
1933
|
+
});
|
|
1934
|
+
exports.Children = {
|
|
1935
|
+
map: mapChildren,
|
|
1936
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
1937
|
+
mapChildren(
|
|
1938
|
+
children,
|
|
1939
|
+
function() {
|
|
1940
|
+
forEachFunc.apply(this, arguments);
|
|
1941
|
+
},
|
|
1942
|
+
forEachContext
|
|
1943
|
+
);
|
|
1944
|
+
},
|
|
1945
|
+
count: function(children) {
|
|
1946
|
+
var n = 0;
|
|
1947
|
+
mapChildren(children, function() {
|
|
1948
|
+
n++;
|
|
1949
|
+
});
|
|
1950
|
+
return n;
|
|
1951
|
+
},
|
|
1952
|
+
toArray: function(children) {
|
|
1953
|
+
return mapChildren(children, function(child) {
|
|
1954
|
+
return child;
|
|
1955
|
+
}) || [];
|
|
1956
|
+
},
|
|
1957
|
+
only: function(children) {
|
|
1958
|
+
if (!isValidElement(children))
|
|
1959
|
+
throw Error(
|
|
1960
|
+
"React.Children.only expected to receive a single React element child."
|
|
1961
|
+
);
|
|
1962
|
+
return children;
|
|
1963
|
+
}
|
|
1964
|
+
};
|
|
1965
|
+
exports.Component = Component;
|
|
1966
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1967
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1968
|
+
exports.PureComponent = PureComponent;
|
|
1969
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1970
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1971
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1972
|
+
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1973
|
+
exports.act = function(callback) {
|
|
1974
|
+
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1975
|
+
actScopeDepth++;
|
|
1976
|
+
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1977
|
+
try {
|
|
1978
|
+
var result = callback();
|
|
1979
|
+
} catch (error) {
|
|
1980
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
1981
|
+
}
|
|
1982
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1983
|
+
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1984
|
+
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1985
|
+
var thenable = result;
|
|
1986
|
+
queueSeveralMicrotasks(function() {
|
|
1987
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1988
|
+
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
1989
|
+
));
|
|
1990
|
+
});
|
|
1991
|
+
return {
|
|
1992
|
+
then: function(resolve, reject) {
|
|
1993
|
+
didAwaitActCall = true;
|
|
1994
|
+
thenable.then(
|
|
1995
|
+
function(returnValue) {
|
|
1996
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1997
|
+
if (0 === prevActScopeDepth) {
|
|
1998
|
+
try {
|
|
1999
|
+
flushActQueue(queue), enqueueTask(function() {
|
|
2000
|
+
return recursivelyFlushAsyncActWork(
|
|
2001
|
+
returnValue,
|
|
2002
|
+
resolve,
|
|
2003
|
+
reject
|
|
2004
|
+
);
|
|
2005
|
+
});
|
|
2006
|
+
} catch (error$0) {
|
|
2007
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
|
2008
|
+
}
|
|
2009
|
+
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
2010
|
+
var _thrownError = aggregateErrors(
|
|
2011
|
+
ReactSharedInternals.thrownErrors
|
|
2012
|
+
);
|
|
2013
|
+
ReactSharedInternals.thrownErrors.length = 0;
|
|
2014
|
+
reject(_thrownError);
|
|
2015
|
+
}
|
|
2016
|
+
} else resolve(returnValue);
|
|
2017
|
+
},
|
|
2018
|
+
function(error) {
|
|
2019
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
2020
|
+
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
2021
|
+
ReactSharedInternals.thrownErrors
|
|
2022
|
+
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
2023
|
+
}
|
|
2024
|
+
);
|
|
2025
|
+
}
|
|
2026
|
+
};
|
|
2027
|
+
}
|
|
2028
|
+
var returnValue$jscomp$0 = result;
|
|
2029
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
2030
|
+
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
2031
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
2032
|
+
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
2033
|
+
));
|
|
2034
|
+
}), ReactSharedInternals.actQueue = null);
|
|
2035
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
2036
|
+
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
2037
|
+
return {
|
|
2038
|
+
then: function(resolve, reject) {
|
|
2039
|
+
didAwaitActCall = true;
|
|
2040
|
+
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
2041
|
+
return recursivelyFlushAsyncActWork(
|
|
2042
|
+
returnValue$jscomp$0,
|
|
2043
|
+
resolve,
|
|
2044
|
+
reject
|
|
2045
|
+
);
|
|
2046
|
+
})) : resolve(returnValue$jscomp$0);
|
|
2047
|
+
}
|
|
2048
|
+
};
|
|
2049
|
+
};
|
|
2050
|
+
exports.cache = function(fn) {
|
|
2051
|
+
return function() {
|
|
2052
|
+
return fn.apply(null, arguments);
|
|
2053
|
+
};
|
|
2054
|
+
};
|
|
2055
|
+
exports.captureOwnerStack = function() {
|
|
2056
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
2057
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
2058
|
+
};
|
|
2059
|
+
exports.cloneElement = function(element, config, children) {
|
|
2060
|
+
if (null === element || void 0 === element)
|
|
2061
|
+
throw Error(
|
|
2062
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
2063
|
+
);
|
|
2064
|
+
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
2065
|
+
if (null != config) {
|
|
2066
|
+
var JSCompiler_inline_result;
|
|
2067
|
+
a: {
|
|
2068
|
+
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
2069
|
+
config,
|
|
2070
|
+
"ref"
|
|
2071
|
+
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
2072
|
+
JSCompiler_inline_result = false;
|
|
2073
|
+
break a;
|
|
2074
|
+
}
|
|
2075
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
2076
|
+
}
|
|
2077
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
2078
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
2079
|
+
for (propName in config)
|
|
2080
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
2081
|
+
}
|
|
2082
|
+
var propName = arguments.length - 2;
|
|
2083
|
+
if (1 === propName) props.children = children;
|
|
2084
|
+
else if (1 < propName) {
|
|
2085
|
+
JSCompiler_inline_result = Array(propName);
|
|
2086
|
+
for (var i = 0; i < propName; i++)
|
|
2087
|
+
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
2088
|
+
props.children = JSCompiler_inline_result;
|
|
2089
|
+
}
|
|
2090
|
+
props = ReactElement(
|
|
2091
|
+
element.type,
|
|
2092
|
+
key,
|
|
2093
|
+
void 0,
|
|
2094
|
+
void 0,
|
|
2095
|
+
owner,
|
|
2096
|
+
props,
|
|
2097
|
+
element._debugStack,
|
|
2098
|
+
element._debugTask
|
|
2099
|
+
);
|
|
2100
|
+
for (key = 2; key < arguments.length; key++)
|
|
2101
|
+
owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
2102
|
+
return props;
|
|
2103
|
+
};
|
|
2104
|
+
exports.createContext = function(defaultValue) {
|
|
2105
|
+
defaultValue = {
|
|
2106
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
2107
|
+
_currentValue: defaultValue,
|
|
2108
|
+
_currentValue2: defaultValue,
|
|
2109
|
+
_threadCount: 0,
|
|
2110
|
+
Provider: null,
|
|
2111
|
+
Consumer: null
|
|
2112
|
+
};
|
|
2113
|
+
defaultValue.Provider = defaultValue;
|
|
2114
|
+
defaultValue.Consumer = {
|
|
2115
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
2116
|
+
_context: defaultValue
|
|
2117
|
+
};
|
|
2118
|
+
defaultValue._currentRenderer = null;
|
|
2119
|
+
defaultValue._currentRenderer2 = null;
|
|
2120
|
+
return defaultValue;
|
|
2121
|
+
};
|
|
2122
|
+
exports.createElement = function(type, config, children) {
|
|
2123
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
2124
|
+
var node = arguments[i];
|
|
2125
|
+
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
2126
|
+
}
|
|
2127
|
+
i = {};
|
|
2128
|
+
node = null;
|
|
2129
|
+
if (null != config)
|
|
2130
|
+
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
2131
|
+
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
2132
|
+
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
|
|
2133
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
2134
|
+
var childrenLength = arguments.length - 2;
|
|
2135
|
+
if (1 === childrenLength) i.children = children;
|
|
2136
|
+
else if (1 < childrenLength) {
|
|
2137
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
2138
|
+
childArray[_i] = arguments[_i + 2];
|
|
2139
|
+
Object.freeze && Object.freeze(childArray);
|
|
2140
|
+
i.children = childArray;
|
|
2141
|
+
}
|
|
2142
|
+
if (type && type.defaultProps)
|
|
2143
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
2144
|
+
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
2145
|
+
node && defineKeyPropWarningGetter(
|
|
2146
|
+
i,
|
|
2147
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
2148
|
+
);
|
|
2149
|
+
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
2150
|
+
return ReactElement(
|
|
2151
|
+
type,
|
|
2152
|
+
node,
|
|
2153
|
+
void 0,
|
|
2154
|
+
void 0,
|
|
2155
|
+
getOwner(),
|
|
2156
|
+
i,
|
|
2157
|
+
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
2158
|
+
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
2159
|
+
);
|
|
2160
|
+
};
|
|
2161
|
+
exports.createRef = function() {
|
|
2162
|
+
var refObject = { current: null };
|
|
2163
|
+
Object.seal(refObject);
|
|
2164
|
+
return refObject;
|
|
2165
|
+
};
|
|
2166
|
+
exports.forwardRef = function(render) {
|
|
2167
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
2168
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
2169
|
+
) : "function" !== typeof render ? console.error(
|
|
2170
|
+
"forwardRef requires a render function but was given %s.",
|
|
2171
|
+
null === render ? "null" : typeof render
|
|
2172
|
+
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
2173
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
2174
|
+
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
2175
|
+
);
|
|
2176
|
+
null != render && null != render.defaultProps && console.error(
|
|
2177
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
2178
|
+
);
|
|
2179
|
+
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
2180
|
+
Object.defineProperty(elementType, "displayName", {
|
|
2181
|
+
enumerable: false,
|
|
2182
|
+
configurable: true,
|
|
2183
|
+
get: function() {
|
|
2184
|
+
return ownName;
|
|
2185
|
+
},
|
|
2186
|
+
set: function(name) {
|
|
2187
|
+
ownName = name;
|
|
2188
|
+
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
2189
|
+
}
|
|
2190
|
+
});
|
|
2191
|
+
return elementType;
|
|
2192
|
+
};
|
|
2193
|
+
exports.isValidElement = isValidElement;
|
|
2194
|
+
exports.lazy = function(ctor) {
|
|
2195
|
+
return {
|
|
2196
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
2197
|
+
_payload: { _status: -1, _result: ctor },
|
|
2198
|
+
_init: lazyInitializer
|
|
2199
|
+
};
|
|
2200
|
+
};
|
|
2201
|
+
exports.memo = function(type, compare) {
|
|
2202
|
+
null == type && console.error(
|
|
2203
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
2204
|
+
null === type ? "null" : typeof type
|
|
2205
|
+
);
|
|
2206
|
+
compare = {
|
|
2207
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
2208
|
+
type,
|
|
2209
|
+
compare: void 0 === compare ? null : compare
|
|
2210
|
+
};
|
|
2211
|
+
var ownName;
|
|
2212
|
+
Object.defineProperty(compare, "displayName", {
|
|
2213
|
+
enumerable: false,
|
|
2214
|
+
configurable: true,
|
|
2215
|
+
get: function() {
|
|
2216
|
+
return ownName;
|
|
2217
|
+
},
|
|
2218
|
+
set: function(name) {
|
|
2219
|
+
ownName = name;
|
|
2220
|
+
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
2221
|
+
}
|
|
2222
|
+
});
|
|
2223
|
+
return compare;
|
|
2224
|
+
};
|
|
2225
|
+
exports.startTransition = function(scope) {
|
|
2226
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
2227
|
+
ReactSharedInternals.T = currentTransition;
|
|
2228
|
+
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
2229
|
+
try {
|
|
2230
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
2231
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
2232
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
2233
|
+
} catch (error) {
|
|
2234
|
+
reportGlobalError(error);
|
|
2235
|
+
} finally {
|
|
2236
|
+
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
2237
|
+
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
2238
|
+
)), ReactSharedInternals.T = prevTransition;
|
|
2239
|
+
}
|
|
2240
|
+
};
|
|
2241
|
+
exports.unstable_useCacheRefresh = function() {
|
|
2242
|
+
return resolveDispatcher().useCacheRefresh();
|
|
2243
|
+
};
|
|
2244
|
+
exports.use = function(usable) {
|
|
2245
|
+
return resolveDispatcher().use(usable);
|
|
2246
|
+
};
|
|
2247
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
2248
|
+
return resolveDispatcher().useActionState(
|
|
2249
|
+
action,
|
|
2250
|
+
initialState,
|
|
2251
|
+
permalink
|
|
2252
|
+
);
|
|
2253
|
+
};
|
|
2254
|
+
exports.useCallback = function(callback, deps) {
|
|
2255
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
2256
|
+
};
|
|
2257
|
+
exports.useContext = function(Context) {
|
|
2258
|
+
var dispatcher = resolveDispatcher();
|
|
2259
|
+
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
2260
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
2261
|
+
);
|
|
2262
|
+
return dispatcher.useContext(Context);
|
|
2263
|
+
};
|
|
2264
|
+
exports.useDebugValue = function(value, formatterFn) {
|
|
2265
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
2266
|
+
};
|
|
2267
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
2268
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
2269
|
+
};
|
|
2270
|
+
exports.useEffect = function(create2, createDeps, update) {
|
|
2271
|
+
null == create2 && console.warn(
|
|
2272
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
2273
|
+
);
|
|
2274
|
+
var dispatcher = resolveDispatcher();
|
|
2275
|
+
if ("function" === typeof update)
|
|
2276
|
+
throw Error(
|
|
2277
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
2278
|
+
);
|
|
2279
|
+
return dispatcher.useEffect(create2, createDeps);
|
|
2280
|
+
};
|
|
2281
|
+
exports.useId = function() {
|
|
2282
|
+
return resolveDispatcher().useId();
|
|
2283
|
+
};
|
|
2284
|
+
exports.useImperativeHandle = function(ref, create2, deps) {
|
|
2285
|
+
return resolveDispatcher().useImperativeHandle(ref, create2, deps);
|
|
2286
|
+
};
|
|
2287
|
+
exports.useInsertionEffect = function(create2, deps) {
|
|
2288
|
+
null == create2 && console.warn(
|
|
2289
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
2290
|
+
);
|
|
2291
|
+
return resolveDispatcher().useInsertionEffect(create2, deps);
|
|
2292
|
+
};
|
|
2293
|
+
exports.useLayoutEffect = function(create2, deps) {
|
|
2294
|
+
null == create2 && console.warn(
|
|
2295
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
2296
|
+
);
|
|
2297
|
+
return resolveDispatcher().useLayoutEffect(create2, deps);
|
|
2298
|
+
};
|
|
2299
|
+
exports.useMemo = function(create2, deps) {
|
|
2300
|
+
return resolveDispatcher().useMemo(create2, deps);
|
|
2301
|
+
};
|
|
2302
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
2303
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
2304
|
+
};
|
|
2305
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
2306
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
2307
|
+
};
|
|
2308
|
+
exports.useRef = function(initialValue) {
|
|
2309
|
+
return resolveDispatcher().useRef(initialValue);
|
|
2310
|
+
};
|
|
2311
|
+
exports.useState = function(initialState) {
|
|
2312
|
+
return resolveDispatcher().useState(initialState);
|
|
2313
|
+
};
|
|
2314
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
2315
|
+
return resolveDispatcher().useSyncExternalStore(
|
|
2316
|
+
subscribe,
|
|
2317
|
+
getSnapshot,
|
|
2318
|
+
getServerSnapshot
|
|
2319
|
+
);
|
|
2320
|
+
};
|
|
2321
|
+
exports.useTransition = function() {
|
|
2322
|
+
return resolveDispatcher().useTransition();
|
|
2323
|
+
};
|
|
2324
|
+
exports.version = "19.1.0";
|
|
2325
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2326
|
+
}();
|
|
2327
|
+
}
|
|
2328
|
+
});
|
|
2329
|
+
|
|
2330
|
+
// ../../node_modules/.pnpm/react@19.1.0/node_modules/react/index.js
|
|
2331
|
+
var require_react = __commonJS({
|
|
2332
|
+
"../../node_modules/.pnpm/react@19.1.0/node_modules/react/index.js"(exports, module) {
|
|
2333
|
+
if (process.env.NODE_ENV === "production") {
|
|
2334
|
+
module.exports = require_react_production();
|
|
2335
|
+
} else {
|
|
2336
|
+
module.exports = require_react_development();
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
});
|
|
2340
|
+
|
|
2341
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/hooks-server-context.js
|
|
2342
|
+
var require_hooks_server_context = __commonJS({
|
|
2343
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/hooks-server-context.js"(exports, module) {
|
|
2344
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2345
|
+
value: true
|
|
2346
|
+
});
|
|
2347
|
+
function _export(target, all) {
|
|
2348
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2349
|
+
enumerable: true,
|
|
2350
|
+
get: all[name]
|
|
2351
|
+
});
|
|
2352
|
+
}
|
|
2353
|
+
_export(exports, {
|
|
2354
|
+
DynamicServerError: function() {
|
|
2355
|
+
return DynamicServerError;
|
|
2356
|
+
},
|
|
2357
|
+
isDynamicServerError: function() {
|
|
2358
|
+
return isDynamicServerError;
|
|
2359
|
+
}
|
|
2360
|
+
});
|
|
2361
|
+
var DYNAMIC_ERROR_CODE = "DYNAMIC_SERVER_USAGE";
|
|
2362
|
+
var DynamicServerError = class extends Error {
|
|
2363
|
+
constructor(description) {
|
|
2364
|
+
super("Dynamic server usage: " + description), this.description = description, this.digest = DYNAMIC_ERROR_CODE;
|
|
2365
|
+
}
|
|
2366
|
+
};
|
|
2367
|
+
function isDynamicServerError(err) {
|
|
2368
|
+
if (typeof err !== "object" || err === null || !("digest" in err) || typeof err.digest !== "string") {
|
|
2369
|
+
return false;
|
|
2370
|
+
}
|
|
2371
|
+
return err.digest === DYNAMIC_ERROR_CODE;
|
|
2372
|
+
}
|
|
2373
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2374
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2375
|
+
Object.assign(exports.default, exports);
|
|
2376
|
+
module.exports = exports.default;
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
});
|
|
2380
|
+
|
|
2381
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/static-generation-bailout.js
|
|
2382
|
+
var require_static_generation_bailout = __commonJS({
|
|
2383
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/static-generation-bailout.js"(exports, module) {
|
|
2384
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2385
|
+
value: true
|
|
2386
|
+
});
|
|
2387
|
+
function _export(target, all) {
|
|
2388
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2389
|
+
enumerable: true,
|
|
2390
|
+
get: all[name]
|
|
2391
|
+
});
|
|
2392
|
+
}
|
|
2393
|
+
_export(exports, {
|
|
2394
|
+
StaticGenBailoutError: function() {
|
|
2395
|
+
return StaticGenBailoutError;
|
|
2396
|
+
},
|
|
2397
|
+
isStaticGenBailoutError: function() {
|
|
2398
|
+
return isStaticGenBailoutError;
|
|
2399
|
+
}
|
|
2400
|
+
});
|
|
2401
|
+
var NEXT_STATIC_GEN_BAILOUT = "NEXT_STATIC_GEN_BAILOUT";
|
|
2402
|
+
var StaticGenBailoutError = class extends Error {
|
|
2403
|
+
constructor(...args) {
|
|
2404
|
+
super(...args), this.code = NEXT_STATIC_GEN_BAILOUT;
|
|
2405
|
+
}
|
|
2406
|
+
};
|
|
2407
|
+
function isStaticGenBailoutError(error) {
|
|
2408
|
+
if (typeof error !== "object" || error === null || !("code" in error)) {
|
|
2409
|
+
return false;
|
|
2410
|
+
}
|
|
2411
|
+
return error.code === NEXT_STATIC_GEN_BAILOUT;
|
|
2412
|
+
}
|
|
2413
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2414
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2415
|
+
Object.assign(exports.default, exports);
|
|
2416
|
+
module.exports = exports.default;
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
});
|
|
2420
|
+
|
|
2421
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/dynamic-rendering-utils.js
|
|
2422
|
+
var require_dynamic_rendering_utils = __commonJS({
|
|
2423
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/dynamic-rendering-utils.js"(exports) {
|
|
2424
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2425
|
+
value: true
|
|
2426
|
+
});
|
|
2427
|
+
function _export(target, all) {
|
|
2428
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2429
|
+
enumerable: true,
|
|
2430
|
+
get: all[name]
|
|
2431
|
+
});
|
|
2432
|
+
}
|
|
2433
|
+
_export(exports, {
|
|
2434
|
+
isHangingPromiseRejectionError: function() {
|
|
2435
|
+
return isHangingPromiseRejectionError;
|
|
2436
|
+
},
|
|
2437
|
+
makeHangingPromise: function() {
|
|
2438
|
+
return makeHangingPromise;
|
|
2439
|
+
}
|
|
2440
|
+
});
|
|
2441
|
+
function isHangingPromiseRejectionError(err) {
|
|
2442
|
+
if (typeof err !== "object" || err === null || !("digest" in err)) {
|
|
2443
|
+
return false;
|
|
2444
|
+
}
|
|
2445
|
+
return err.digest === HANGING_PROMISE_REJECTION;
|
|
2446
|
+
}
|
|
2447
|
+
var HANGING_PROMISE_REJECTION = "HANGING_PROMISE_REJECTION";
|
|
2448
|
+
var HangingPromiseRejectionError = class extends Error {
|
|
2449
|
+
constructor(expression) {
|
|
2450
|
+
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;
|
|
2451
|
+
}
|
|
2452
|
+
};
|
|
2453
|
+
var abortListenersBySignal = /* @__PURE__ */ new WeakMap();
|
|
2454
|
+
function makeHangingPromise(signal, expression) {
|
|
2455
|
+
if (signal.aborted) {
|
|
2456
|
+
return Promise.reject(new HangingPromiseRejectionError(expression));
|
|
2457
|
+
} else {
|
|
2458
|
+
const hangingPromise = new Promise((_, reject) => {
|
|
2459
|
+
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(expression));
|
|
2460
|
+
let currentListeners = abortListenersBySignal.get(signal);
|
|
2461
|
+
if (currentListeners) {
|
|
2462
|
+
currentListeners.push(boundRejection);
|
|
2463
|
+
} else {
|
|
2464
|
+
const listeners = [
|
|
2465
|
+
boundRejection
|
|
2466
|
+
];
|
|
2467
|
+
abortListenersBySignal.set(signal, listeners);
|
|
2468
|
+
signal.addEventListener("abort", () => {
|
|
2469
|
+
for (let i = 0; i < listeners.length; i++) {
|
|
2470
|
+
listeners[i]();
|
|
2471
|
+
}
|
|
2472
|
+
}, {
|
|
2473
|
+
once: true
|
|
2474
|
+
});
|
|
2475
|
+
}
|
|
2476
|
+
});
|
|
2477
|
+
hangingPromise.catch(ignoreReject);
|
|
2478
|
+
return hangingPromise;
|
|
2479
|
+
}
|
|
2480
|
+
}
|
|
2481
|
+
function ignoreReject() {
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
});
|
|
2485
|
+
|
|
2486
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/metadata/metadata-constants.js
|
|
2487
|
+
var require_metadata_constants = __commonJS({
|
|
2488
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/metadata/metadata-constants.js"(exports) {
|
|
2489
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2490
|
+
value: true
|
|
2491
|
+
});
|
|
2492
|
+
function _export(target, all) {
|
|
2493
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2494
|
+
enumerable: true,
|
|
2495
|
+
get: all[name]
|
|
2496
|
+
});
|
|
2497
|
+
}
|
|
2498
|
+
_export(exports, {
|
|
2499
|
+
METADATA_BOUNDARY_NAME: function() {
|
|
2500
|
+
return METADATA_BOUNDARY_NAME;
|
|
2501
|
+
},
|
|
2502
|
+
OUTLET_BOUNDARY_NAME: function() {
|
|
2503
|
+
return OUTLET_BOUNDARY_NAME;
|
|
2504
|
+
},
|
|
2505
|
+
VIEWPORT_BOUNDARY_NAME: function() {
|
|
2506
|
+
return VIEWPORT_BOUNDARY_NAME;
|
|
2507
|
+
}
|
|
2508
|
+
});
|
|
2509
|
+
var METADATA_BOUNDARY_NAME = "__next_metadata_boundary__";
|
|
2510
|
+
var VIEWPORT_BOUNDARY_NAME = "__next_viewport_boundary__";
|
|
2511
|
+
var OUTLET_BOUNDARY_NAME = "__next_outlet_boundary__";
|
|
2512
|
+
}
|
|
2513
|
+
});
|
|
2514
|
+
|
|
2515
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/scheduler.js
|
|
2516
|
+
var require_scheduler = __commonJS({
|
|
2517
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/scheduler.js"(exports) {
|
|
2518
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2519
|
+
value: true
|
|
2520
|
+
});
|
|
2521
|
+
function _export(target, all) {
|
|
2522
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2523
|
+
enumerable: true,
|
|
2524
|
+
get: all[name]
|
|
2525
|
+
});
|
|
2526
|
+
}
|
|
2527
|
+
_export(exports, {
|
|
2528
|
+
atLeastOneTask: function() {
|
|
2529
|
+
return atLeastOneTask;
|
|
2530
|
+
},
|
|
2531
|
+
scheduleImmediate: function() {
|
|
2532
|
+
return scheduleImmediate;
|
|
2533
|
+
},
|
|
2534
|
+
scheduleOnNextTick: function() {
|
|
2535
|
+
return scheduleOnNextTick;
|
|
2536
|
+
},
|
|
2537
|
+
waitAtLeastOneReactRenderTask: function() {
|
|
2538
|
+
return waitAtLeastOneReactRenderTask;
|
|
2539
|
+
}
|
|
2540
|
+
});
|
|
2541
|
+
var scheduleOnNextTick = (cb) => {
|
|
2542
|
+
Promise.resolve().then(() => {
|
|
2543
|
+
if (process.env.NEXT_RUNTIME === "edge") {
|
|
2544
|
+
setTimeout(cb, 0);
|
|
2545
|
+
} else {
|
|
2546
|
+
process.nextTick(cb);
|
|
2547
|
+
}
|
|
2548
|
+
});
|
|
2549
|
+
};
|
|
2550
|
+
var scheduleImmediate = (cb) => {
|
|
2551
|
+
if (process.env.NEXT_RUNTIME === "edge") {
|
|
2552
|
+
setTimeout(cb, 0);
|
|
2553
|
+
} else {
|
|
2554
|
+
setImmediate(cb);
|
|
2555
|
+
}
|
|
2556
|
+
};
|
|
2557
|
+
function atLeastOneTask() {
|
|
2558
|
+
return new Promise((resolve) => scheduleImmediate(resolve));
|
|
2559
|
+
}
|
|
2560
|
+
function waitAtLeastOneReactRenderTask() {
|
|
2561
|
+
if (process.env.NEXT_RUNTIME === "edge") {
|
|
2562
|
+
return new Promise((r) => setTimeout(r, 0));
|
|
2563
|
+
} else {
|
|
2564
|
+
return new Promise((r) => setImmediate(r));
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
});
|
|
2569
|
+
|
|
2570
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/dynamic-rendering.js
|
|
2571
|
+
var require_dynamic_rendering = __commonJS({
|
|
2572
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/dynamic-rendering.js"(exports) {
|
|
2573
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2574
|
+
value: true
|
|
2575
|
+
});
|
|
2576
|
+
function _export(target, all) {
|
|
2577
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2578
|
+
enumerable: true,
|
|
2579
|
+
get: all[name]
|
|
2580
|
+
});
|
|
2581
|
+
}
|
|
2582
|
+
_export(exports, {
|
|
2583
|
+
Postpone: function() {
|
|
2584
|
+
return Postpone;
|
|
2585
|
+
},
|
|
2586
|
+
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
2587
|
+
return abortAndThrowOnSynchronousRequestDataAccess;
|
|
2588
|
+
},
|
|
2589
|
+
abortOnSynchronousPlatformIOAccess: function() {
|
|
2590
|
+
return abortOnSynchronousPlatformIOAccess;
|
|
2591
|
+
},
|
|
2592
|
+
accessedDynamicData: function() {
|
|
2593
|
+
return accessedDynamicData;
|
|
2594
|
+
},
|
|
2595
|
+
annotateDynamicAccess: function() {
|
|
2596
|
+
return annotateDynamicAccess;
|
|
2597
|
+
},
|
|
2598
|
+
consumeDynamicAccess: function() {
|
|
2599
|
+
return consumeDynamicAccess;
|
|
2600
|
+
},
|
|
2601
|
+
createDynamicTrackingState: function() {
|
|
2602
|
+
return createDynamicTrackingState;
|
|
2603
|
+
},
|
|
2604
|
+
createDynamicValidationState: function() {
|
|
2605
|
+
return createDynamicValidationState;
|
|
2606
|
+
},
|
|
2607
|
+
createHangingInputAbortSignal: function() {
|
|
2608
|
+
return createHangingInputAbortSignal;
|
|
2609
|
+
},
|
|
2610
|
+
createPostponedAbortSignal: function() {
|
|
2611
|
+
return createPostponedAbortSignal;
|
|
2612
|
+
},
|
|
2613
|
+
formatDynamicAPIAccesses: function() {
|
|
2614
|
+
return formatDynamicAPIAccesses;
|
|
2615
|
+
},
|
|
2616
|
+
getFirstDynamicReason: function() {
|
|
2617
|
+
return getFirstDynamicReason;
|
|
2618
|
+
},
|
|
2619
|
+
isDynamicPostpone: function() {
|
|
2620
|
+
return isDynamicPostpone;
|
|
2621
|
+
},
|
|
2622
|
+
isPrerenderInterruptedError: function() {
|
|
2623
|
+
return isPrerenderInterruptedError;
|
|
2624
|
+
},
|
|
2625
|
+
markCurrentScopeAsDynamic: function() {
|
|
2626
|
+
return markCurrentScopeAsDynamic;
|
|
2627
|
+
},
|
|
2628
|
+
postponeWithTracking: function() {
|
|
2629
|
+
return postponeWithTracking;
|
|
2630
|
+
},
|
|
2631
|
+
throwIfDisallowedDynamic: function() {
|
|
2632
|
+
return throwIfDisallowedDynamic;
|
|
2633
|
+
},
|
|
2634
|
+
throwToInterruptStaticGeneration: function() {
|
|
2635
|
+
return throwToInterruptStaticGeneration;
|
|
2636
|
+
},
|
|
2637
|
+
trackAllowedDynamicAccess: function() {
|
|
2638
|
+
return trackAllowedDynamicAccess;
|
|
2639
|
+
},
|
|
2640
|
+
trackDynamicDataInDynamicRender: function() {
|
|
2641
|
+
return trackDynamicDataInDynamicRender;
|
|
2642
|
+
},
|
|
2643
|
+
trackFallbackParamAccessed: function() {
|
|
2644
|
+
return trackFallbackParamAccessed;
|
|
2645
|
+
},
|
|
2646
|
+
trackSynchronousPlatformIOAccessInDev: function() {
|
|
2647
|
+
return trackSynchronousPlatformIOAccessInDev;
|
|
2648
|
+
},
|
|
2649
|
+
trackSynchronousRequestDataAccessInDev: function() {
|
|
2650
|
+
return trackSynchronousRequestDataAccessInDev;
|
|
2651
|
+
},
|
|
2652
|
+
useDynamicRouteParams: function() {
|
|
2653
|
+
return useDynamicRouteParams;
|
|
2654
|
+
}
|
|
2655
|
+
});
|
|
2656
|
+
var _react = /* @__PURE__ */ _interop_require_default(require_react());
|
|
2657
|
+
var _hooksservercontext = require_hooks_server_context();
|
|
2658
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
2659
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
2660
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
2661
|
+
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
2662
|
+
var _metadataconstants = require_metadata_constants();
|
|
2663
|
+
var _scheduler = require_scheduler();
|
|
2664
|
+
function _interop_require_default(obj) {
|
|
2665
|
+
return obj && obj.__esModule ? obj : {
|
|
2666
|
+
default: obj
|
|
2667
|
+
};
|
|
2668
|
+
}
|
|
2669
|
+
var hasPostpone = typeof _react.default.unstable_postpone === "function";
|
|
2670
|
+
function createDynamicTrackingState(isDebugDynamicAccesses) {
|
|
2671
|
+
return {
|
|
2672
|
+
isDebugDynamicAccesses,
|
|
2673
|
+
dynamicAccesses: [],
|
|
2674
|
+
syncDynamicExpression: void 0,
|
|
2675
|
+
syncDynamicErrorWithStack: null
|
|
2676
|
+
};
|
|
2677
|
+
}
|
|
2678
|
+
function createDynamicValidationState() {
|
|
2679
|
+
return {
|
|
2680
|
+
hasSuspendedDynamic: false,
|
|
2681
|
+
hasDynamicMetadata: false,
|
|
2682
|
+
hasDynamicViewport: false,
|
|
2683
|
+
hasSyncDynamicErrors: false,
|
|
2684
|
+
dynamicErrors: []
|
|
2685
|
+
};
|
|
2686
|
+
}
|
|
2687
|
+
function getFirstDynamicReason(trackingState) {
|
|
2688
|
+
var _trackingState_dynamicAccesses_;
|
|
2689
|
+
return (_trackingState_dynamicAccesses_ = trackingState.dynamicAccesses[0]) == null ? void 0 : _trackingState_dynamicAccesses_.expression;
|
|
2690
|
+
}
|
|
2691
|
+
function markCurrentScopeAsDynamic(store, workUnitStore, expression) {
|
|
2692
|
+
if (workUnitStore) {
|
|
2693
|
+
if (workUnitStore.type === "cache" || workUnitStore.type === "unstable-cache") {
|
|
2694
|
+
return;
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
if (store.forceDynamic || store.forceStatic) return;
|
|
2698
|
+
if (store.dynamicShouldError) {
|
|
2699
|
+
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", {
|
|
2700
|
+
value: "E553",
|
|
2701
|
+
enumerable: false,
|
|
2702
|
+
configurable: true
|
|
2703
|
+
});
|
|
2704
|
+
}
|
|
2705
|
+
if (workUnitStore) {
|
|
2706
|
+
if (workUnitStore.type === "prerender-ppr") {
|
|
2707
|
+
postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
|
|
2708
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
2709
|
+
workUnitStore.revalidate = 0;
|
|
2710
|
+
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", {
|
|
2711
|
+
value: "E550",
|
|
2712
|
+
enumerable: false,
|
|
2713
|
+
configurable: true
|
|
2714
|
+
});
|
|
2715
|
+
store.dynamicUsageDescription = expression;
|
|
2716
|
+
store.dynamicUsageStack = err.stack;
|
|
2717
|
+
throw err;
|
|
2718
|
+
} else if (process.env.NODE_ENV === "development" && workUnitStore && workUnitStore.type === "request") {
|
|
2719
|
+
workUnitStore.usedDynamic = true;
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
function trackFallbackParamAccessed(store, expression) {
|
|
2724
|
+
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
2725
|
+
if (!prerenderStore || prerenderStore.type !== "prerender-ppr") return;
|
|
2726
|
+
postponeWithTracking(store.route, expression, prerenderStore.dynamicTracking);
|
|
2727
|
+
}
|
|
2728
|
+
function throwToInterruptStaticGeneration(expression, store, prerenderStore) {
|
|
2729
|
+
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", {
|
|
2730
|
+
value: "E558",
|
|
2731
|
+
enumerable: false,
|
|
2732
|
+
configurable: true
|
|
2733
|
+
});
|
|
2734
|
+
prerenderStore.revalidate = 0;
|
|
2735
|
+
store.dynamicUsageDescription = expression;
|
|
2736
|
+
store.dynamicUsageStack = err.stack;
|
|
2737
|
+
throw err;
|
|
2738
|
+
}
|
|
2739
|
+
function trackDynamicDataInDynamicRender(_store, workUnitStore) {
|
|
2740
|
+
if (workUnitStore) {
|
|
2741
|
+
if (workUnitStore.type === "cache" || workUnitStore.type === "unstable-cache") {
|
|
2742
|
+
return;
|
|
2743
|
+
}
|
|
2744
|
+
if (workUnitStore.type === "prerender" || workUnitStore.type === "prerender-legacy") {
|
|
2745
|
+
workUnitStore.revalidate = 0;
|
|
2746
|
+
}
|
|
2747
|
+
if (process.env.NODE_ENV === "development" && workUnitStore.type === "request") {
|
|
2748
|
+
workUnitStore.usedDynamic = true;
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
function abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore) {
|
|
2753
|
+
const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`;
|
|
2754
|
+
const error = createPrerenderInterruptedError(reason);
|
|
2755
|
+
prerenderStore.controller.abort(error);
|
|
2756
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2757
|
+
if (dynamicTracking) {
|
|
2758
|
+
dynamicTracking.dynamicAccesses.push({
|
|
2759
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
2760
|
+
// stack trace.
|
|
2761
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2762
|
+
expression
|
|
2763
|
+
});
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
function abortOnSynchronousPlatformIOAccess(route, expression, errorWithStack, prerenderStore) {
|
|
2767
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2768
|
+
if (dynamicTracking) {
|
|
2769
|
+
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
2770
|
+
dynamicTracking.syncDynamicExpression = expression;
|
|
2771
|
+
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2774
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
2775
|
+
}
|
|
2776
|
+
function trackSynchronousPlatformIOAccessInDev(requestStore) {
|
|
2777
|
+
requestStore.prerenderPhase = false;
|
|
2778
|
+
}
|
|
2779
|
+
function abortAndThrowOnSynchronousRequestDataAccess(route, expression, errorWithStack, prerenderStore) {
|
|
2780
|
+
const prerenderSignal = prerenderStore.controller.signal;
|
|
2781
|
+
if (prerenderSignal.aborted === false) {
|
|
2782
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2783
|
+
if (dynamicTracking) {
|
|
2784
|
+
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
2785
|
+
dynamicTracking.syncDynamicExpression = expression;
|
|
2786
|
+
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
2787
|
+
if (prerenderStore.validating === true) {
|
|
2788
|
+
dynamicTracking.syncDynamicLogged = true;
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
2793
|
+
}
|
|
2794
|
+
throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);
|
|
2795
|
+
}
|
|
2796
|
+
var trackSynchronousRequestDataAccessInDev = trackSynchronousPlatformIOAccessInDev;
|
|
2797
|
+
function Postpone({ reason, route }) {
|
|
2798
|
+
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
2799
|
+
const dynamicTracking = prerenderStore && prerenderStore.type === "prerender-ppr" ? prerenderStore.dynamicTracking : null;
|
|
2800
|
+
postponeWithTracking(route, reason, dynamicTracking);
|
|
2801
|
+
}
|
|
2802
|
+
function postponeWithTracking(route, expression, dynamicTracking) {
|
|
2803
|
+
assertPostpone();
|
|
2804
|
+
if (dynamicTracking) {
|
|
2805
|
+
dynamicTracking.dynamicAccesses.push({
|
|
2806
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
2807
|
+
// stack trace.
|
|
2808
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2809
|
+
expression
|
|
2810
|
+
});
|
|
2811
|
+
}
|
|
2812
|
+
_react.default.unstable_postpone(createPostponeReason(route, expression));
|
|
2813
|
+
}
|
|
2814
|
+
function createPostponeReason(route, expression) {
|
|
2815
|
+
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`;
|
|
2816
|
+
}
|
|
2817
|
+
function isDynamicPostpone(err) {
|
|
2818
|
+
if (typeof err === "object" && err !== null && typeof err.message === "string") {
|
|
2819
|
+
return isDynamicPostponeReason(err.message);
|
|
2820
|
+
}
|
|
2821
|
+
return false;
|
|
2822
|
+
}
|
|
2823
|
+
function isDynamicPostponeReason(reason) {
|
|
2824
|
+
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");
|
|
2825
|
+
}
|
|
2826
|
+
if (isDynamicPostponeReason(createPostponeReason("%%%", "^^^")) === false) {
|
|
2827
|
+
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
2828
|
+
value: "E296",
|
|
2829
|
+
enumerable: false,
|
|
2830
|
+
configurable: true
|
|
2831
|
+
});
|
|
2832
|
+
}
|
|
2833
|
+
var NEXT_PRERENDER_INTERRUPTED = "NEXT_PRERENDER_INTERRUPTED";
|
|
2834
|
+
function createPrerenderInterruptedError(message) {
|
|
2835
|
+
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
2836
|
+
value: "E394",
|
|
2837
|
+
enumerable: false,
|
|
2838
|
+
configurable: true
|
|
2839
|
+
});
|
|
2840
|
+
error.digest = NEXT_PRERENDER_INTERRUPTED;
|
|
2841
|
+
return error;
|
|
2842
|
+
}
|
|
2843
|
+
function isPrerenderInterruptedError(error) {
|
|
2844
|
+
return typeof error === "object" && error !== null && error.digest === NEXT_PRERENDER_INTERRUPTED && "name" in error && "message" in error && error instanceof Error;
|
|
2845
|
+
}
|
|
2846
|
+
function accessedDynamicData(dynamicAccesses) {
|
|
2847
|
+
return dynamicAccesses.length > 0;
|
|
2848
|
+
}
|
|
2849
|
+
function consumeDynamicAccess(serverDynamic, clientDynamic) {
|
|
2850
|
+
serverDynamic.dynamicAccesses.push(...clientDynamic.dynamicAccesses);
|
|
2851
|
+
return serverDynamic.dynamicAccesses;
|
|
2852
|
+
}
|
|
2853
|
+
function formatDynamicAPIAccesses(dynamicAccesses) {
|
|
2854
|
+
return dynamicAccesses.filter((access) => typeof access.stack === "string" && access.stack.length > 0).map(({ expression, stack }) => {
|
|
2855
|
+
stack = stack.split("\n").slice(4).filter((line) => {
|
|
2856
|
+
if (line.includes("node_modules/next/")) {
|
|
2857
|
+
return false;
|
|
2858
|
+
}
|
|
2859
|
+
if (line.includes(" (<anonymous>)")) {
|
|
2860
|
+
return false;
|
|
2861
|
+
}
|
|
2862
|
+
if (line.includes(" (node:")) {
|
|
2863
|
+
return false;
|
|
2864
|
+
}
|
|
2865
|
+
return true;
|
|
2866
|
+
}).join("\n");
|
|
2867
|
+
return `Dynamic API Usage Debug - ${expression}:
|
|
2868
|
+
${stack}`;
|
|
2869
|
+
});
|
|
2870
|
+
}
|
|
2871
|
+
function assertPostpone() {
|
|
2872
|
+
if (!hasPostpone) {
|
|
2873
|
+
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", {
|
|
2874
|
+
value: "E224",
|
|
2875
|
+
enumerable: false,
|
|
2876
|
+
configurable: true
|
|
2877
|
+
});
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
function createPostponedAbortSignal(reason) {
|
|
2881
|
+
assertPostpone();
|
|
2882
|
+
const controller = new AbortController();
|
|
2883
|
+
try {
|
|
2884
|
+
_react.default.unstable_postpone(reason);
|
|
2885
|
+
} catch (x) {
|
|
2886
|
+
controller.abort(x);
|
|
2887
|
+
}
|
|
2888
|
+
return controller.signal;
|
|
2889
|
+
}
|
|
2890
|
+
function createHangingInputAbortSignal(workUnitStore) {
|
|
2891
|
+
const controller = new AbortController();
|
|
2892
|
+
if (workUnitStore.cacheSignal) {
|
|
2893
|
+
workUnitStore.cacheSignal.inputReady().then(() => {
|
|
2894
|
+
controller.abort();
|
|
2895
|
+
});
|
|
2896
|
+
} else {
|
|
2897
|
+
(0, _scheduler.scheduleOnNextTick)(() => controller.abort());
|
|
2898
|
+
}
|
|
2899
|
+
return controller.signal;
|
|
2900
|
+
}
|
|
2901
|
+
function annotateDynamicAccess(expression, prerenderStore) {
|
|
2902
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2903
|
+
if (dynamicTracking) {
|
|
2904
|
+
dynamicTracking.dynamicAccesses.push({
|
|
2905
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2906
|
+
expression
|
|
2907
|
+
});
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
function useDynamicRouteParams(expression) {
|
|
2911
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
2912
|
+
if (workStore && workStore.isStaticGeneration && workStore.fallbackRouteParams && workStore.fallbackRouteParams.size > 0) {
|
|
2913
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
2914
|
+
if (workUnitStore) {
|
|
2915
|
+
if (workUnitStore.type === "prerender") {
|
|
2916
|
+
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, expression));
|
|
2917
|
+
} else if (workUnitStore.type === "prerender-ppr") {
|
|
2918
|
+
postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
|
|
2919
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
2920
|
+
throwToInterruptStaticGeneration(expression, workStore, workUnitStore);
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2925
|
+
var hasSuspenseRegex = /\n\s+at Suspense \(<anonymous>\)/;
|
|
2926
|
+
var hasMetadataRegex = new RegExp(`\\n\\s+at ${_metadataconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
|
|
2927
|
+
var hasViewportRegex = new RegExp(`\\n\\s+at ${_metadataconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
|
|
2928
|
+
var hasOutletRegex = new RegExp(`\\n\\s+at ${_metadataconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
2929
|
+
function trackAllowedDynamicAccess(route, componentStack, dynamicValidation, serverDynamic, clientDynamic) {
|
|
2930
|
+
if (hasOutletRegex.test(componentStack)) {
|
|
2931
|
+
return;
|
|
2932
|
+
} else if (hasMetadataRegex.test(componentStack)) {
|
|
2933
|
+
dynamicValidation.hasDynamicMetadata = true;
|
|
2934
|
+
return;
|
|
2935
|
+
} else if (hasViewportRegex.test(componentStack)) {
|
|
2936
|
+
dynamicValidation.hasDynamicViewport = true;
|
|
2937
|
+
return;
|
|
2938
|
+
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
2939
|
+
dynamicValidation.hasSuspendedDynamic = true;
|
|
2940
|
+
return;
|
|
2941
|
+
} else if (serverDynamic.syncDynamicErrorWithStack || clientDynamic.syncDynamicErrorWithStack) {
|
|
2942
|
+
dynamicValidation.hasSyncDynamicErrors = true;
|
|
2943
|
+
return;
|
|
2944
|
+
} else {
|
|
2945
|
+
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`;
|
|
2946
|
+
const error = createErrorWithComponentStack(message, componentStack);
|
|
2947
|
+
dynamicValidation.dynamicErrors.push(error);
|
|
2948
|
+
return;
|
|
2949
|
+
}
|
|
2950
|
+
}
|
|
2951
|
+
function createErrorWithComponentStack(message, componentStack) {
|
|
2952
|
+
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
2953
|
+
value: "E394",
|
|
2954
|
+
enumerable: false,
|
|
2955
|
+
configurable: true
|
|
2956
|
+
});
|
|
2957
|
+
error.stack = "Error: " + message + componentStack;
|
|
2958
|
+
return error;
|
|
2959
|
+
}
|
|
2960
|
+
function throwIfDisallowedDynamic(route, dynamicValidation, serverDynamic, clientDynamic) {
|
|
2961
|
+
let syncError;
|
|
2962
|
+
let syncExpression;
|
|
2963
|
+
let syncLogged;
|
|
2964
|
+
if (serverDynamic.syncDynamicErrorWithStack) {
|
|
2965
|
+
syncError = serverDynamic.syncDynamicErrorWithStack;
|
|
2966
|
+
syncExpression = serverDynamic.syncDynamicExpression;
|
|
2967
|
+
syncLogged = serverDynamic.syncDynamicLogged === true;
|
|
2968
|
+
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
2969
|
+
syncError = clientDynamic.syncDynamicErrorWithStack;
|
|
2970
|
+
syncExpression = clientDynamic.syncDynamicExpression;
|
|
2971
|
+
syncLogged = clientDynamic.syncDynamicLogged === true;
|
|
2972
|
+
} else {
|
|
2973
|
+
syncError = null;
|
|
2974
|
+
syncExpression = void 0;
|
|
2975
|
+
syncLogged = false;
|
|
2976
|
+
}
|
|
2977
|
+
if (dynamicValidation.hasSyncDynamicErrors && syncError) {
|
|
2978
|
+
if (!syncLogged) {
|
|
2979
|
+
console.error(syncError);
|
|
2980
|
+
}
|
|
2981
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2982
|
+
}
|
|
2983
|
+
const dynamicErrors = dynamicValidation.dynamicErrors;
|
|
2984
|
+
if (dynamicErrors.length) {
|
|
2985
|
+
for (let i = 0; i < dynamicErrors.length; i++) {
|
|
2986
|
+
console.error(dynamicErrors[i]);
|
|
2987
|
+
}
|
|
2988
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2989
|
+
}
|
|
2990
|
+
if (!dynamicValidation.hasSuspendedDynamic) {
|
|
2991
|
+
if (dynamicValidation.hasDynamicMetadata) {
|
|
2992
|
+
if (syncError) {
|
|
2993
|
+
console.error(syncError);
|
|
2994
|
+
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", {
|
|
2995
|
+
value: "E608",
|
|
2996
|
+
enumerable: false,
|
|
2997
|
+
configurable: true
|
|
2998
|
+
});
|
|
2999
|
+
}
|
|
3000
|
+
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", {
|
|
3001
|
+
value: "E534",
|
|
3002
|
+
enumerable: false,
|
|
3003
|
+
configurable: true
|
|
3004
|
+
});
|
|
3005
|
+
} else if (dynamicValidation.hasDynamicViewport) {
|
|
3006
|
+
if (syncError) {
|
|
3007
|
+
console.error(syncError);
|
|
3008
|
+
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", {
|
|
3009
|
+
value: "E573",
|
|
3010
|
+
enumerable: false,
|
|
3011
|
+
configurable: true
|
|
3012
|
+
});
|
|
3013
|
+
}
|
|
3014
|
+
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", {
|
|
3015
|
+
value: "E590",
|
|
3016
|
+
enumerable: false,
|
|
3017
|
+
configurable: true
|
|
3018
|
+
});
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
});
|
|
3024
|
+
|
|
3025
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js
|
|
3026
|
+
var require_create_deduped_by_callsite_server_error_logger = __commonJS({
|
|
3027
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js"(exports) {
|
|
3028
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3029
|
+
value: true
|
|
3030
|
+
});
|
|
3031
|
+
Object.defineProperty(exports, "createDedupedByCallsiteServerErrorLoggerDev", {
|
|
3032
|
+
enumerable: true,
|
|
3033
|
+
get: function() {
|
|
3034
|
+
return createDedupedByCallsiteServerErrorLoggerDev;
|
|
3035
|
+
}
|
|
3036
|
+
});
|
|
3037
|
+
var _react = /* @__PURE__ */ _interop_require_wildcard(require_react());
|
|
3038
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
3039
|
+
if (typeof WeakMap !== "function") return null;
|
|
3040
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
3041
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
3042
|
+
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
3043
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
3044
|
+
})(nodeInterop);
|
|
3045
|
+
}
|
|
3046
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
3047
|
+
if (obj && obj.__esModule) {
|
|
3048
|
+
return obj;
|
|
3049
|
+
}
|
|
3050
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
3051
|
+
return {
|
|
3052
|
+
default: obj
|
|
3053
|
+
};
|
|
3054
|
+
}
|
|
3055
|
+
var cache2 = _getRequireWildcardCache(nodeInterop);
|
|
3056
|
+
if (cache2 && cache2.has(obj)) {
|
|
3057
|
+
return cache2.get(obj);
|
|
3058
|
+
}
|
|
3059
|
+
var newObj = {
|
|
3060
|
+
__proto__: null
|
|
3061
|
+
};
|
|
3062
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3063
|
+
for (var key in obj) {
|
|
3064
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
3065
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
3066
|
+
if (desc && (desc.get || desc.set)) {
|
|
3067
|
+
Object.defineProperty(newObj, key, desc);
|
|
3068
|
+
} else {
|
|
3069
|
+
newObj[key] = obj[key];
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
}
|
|
3073
|
+
newObj.default = obj;
|
|
3074
|
+
if (cache2) {
|
|
3075
|
+
cache2.set(obj, newObj);
|
|
3076
|
+
}
|
|
3077
|
+
return newObj;
|
|
3078
|
+
}
|
|
3079
|
+
var errorRef = {
|
|
3080
|
+
current: null
|
|
3081
|
+
};
|
|
3082
|
+
var cache = typeof _react.cache === "function" ? _react.cache : (fn) => fn;
|
|
3083
|
+
var logErrorOrWarn = process.env.__NEXT_DYNAMIC_IO ? console.error : console.warn;
|
|
3084
|
+
var flushCurrentErrorIfNew = cache(
|
|
3085
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- cache key
|
|
3086
|
+
(key) => {
|
|
3087
|
+
try {
|
|
3088
|
+
logErrorOrWarn(errorRef.current);
|
|
3089
|
+
} finally {
|
|
3090
|
+
errorRef.current = null;
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
);
|
|
3094
|
+
function createDedupedByCallsiteServerErrorLoggerDev(getMessage) {
|
|
3095
|
+
return function logDedupedError(...args) {
|
|
3096
|
+
const message = getMessage(...args);
|
|
3097
|
+
if (process.env.NODE_ENV !== "production") {
|
|
3098
|
+
var _stack;
|
|
3099
|
+
const callStackFrames = (_stack = new Error().stack) == null ? void 0 : _stack.split("\n");
|
|
3100
|
+
if (callStackFrames === void 0 || callStackFrames.length < 4) {
|
|
3101
|
+
logErrorOrWarn(message);
|
|
3102
|
+
} else {
|
|
3103
|
+
const key = callStackFrames[4];
|
|
3104
|
+
errorRef.current = message;
|
|
3105
|
+
flushCurrentErrorIfNew(key);
|
|
3106
|
+
}
|
|
3107
|
+
} else {
|
|
3108
|
+
logErrorOrWarn(message);
|
|
3109
|
+
}
|
|
3110
|
+
};
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
});
|
|
3114
|
+
|
|
3115
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js
|
|
3116
|
+
var require_after_task_async_storage_instance = __commonJS({
|
|
3117
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js"(exports) {
|
|
3118
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3119
|
+
value: true
|
|
3120
|
+
});
|
|
3121
|
+
Object.defineProperty(exports, "afterTaskAsyncStorageInstance", {
|
|
3122
|
+
enumerable: true,
|
|
3123
|
+
get: function() {
|
|
3124
|
+
return afterTaskAsyncStorageInstance;
|
|
3125
|
+
}
|
|
3126
|
+
});
|
|
3127
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
3128
|
+
var afterTaskAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
3129
|
+
}
|
|
3130
|
+
});
|
|
3131
|
+
|
|
3132
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage.external.js
|
|
3133
|
+
var require_after_task_async_storage_external = __commonJS({
|
|
3134
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage.external.js"(exports) {
|
|
3135
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3136
|
+
value: true
|
|
3137
|
+
});
|
|
3138
|
+
Object.defineProperty(exports, "afterTaskAsyncStorage", {
|
|
3139
|
+
enumerable: true,
|
|
3140
|
+
get: function() {
|
|
3141
|
+
return _aftertaskasyncstorageinstance.afterTaskAsyncStorageInstance;
|
|
3142
|
+
}
|
|
3143
|
+
});
|
|
3144
|
+
var _aftertaskasyncstorageinstance = require_after_task_async_storage_instance();
|
|
3145
|
+
}
|
|
3146
|
+
});
|
|
3147
|
+
|
|
3148
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/utils.js
|
|
3149
|
+
var require_utils = __commonJS({
|
|
3150
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/utils.js"(exports) {
|
|
3151
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3152
|
+
value: true
|
|
3153
|
+
});
|
|
3154
|
+
function _export(target, all) {
|
|
3155
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3156
|
+
enumerable: true,
|
|
3157
|
+
get: all[name]
|
|
3158
|
+
});
|
|
3159
|
+
}
|
|
3160
|
+
_export(exports, {
|
|
3161
|
+
isRequestAPICallableInsideAfter: function() {
|
|
3162
|
+
return isRequestAPICallableInsideAfter;
|
|
3163
|
+
},
|
|
3164
|
+
throwForSearchParamsAccessInUseCache: function() {
|
|
3165
|
+
return throwForSearchParamsAccessInUseCache;
|
|
3166
|
+
},
|
|
3167
|
+
throwWithStaticGenerationBailoutError: function() {
|
|
3168
|
+
return throwWithStaticGenerationBailoutError;
|
|
3169
|
+
},
|
|
3170
|
+
throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
|
|
3171
|
+
return throwWithStaticGenerationBailoutErrorWithDynamicError;
|
|
3172
|
+
}
|
|
3173
|
+
});
|
|
3174
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
3175
|
+
var _aftertaskasyncstorageexternal = require_after_task_async_storage_external();
|
|
3176
|
+
function throwWithStaticGenerationBailoutError(route, expression) {
|
|
3177
|
+
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", {
|
|
3178
|
+
value: "E576",
|
|
3179
|
+
enumerable: false,
|
|
3180
|
+
configurable: true
|
|
3181
|
+
});
|
|
3182
|
+
}
|
|
3183
|
+
function throwWithStaticGenerationBailoutErrorWithDynamicError(route, expression) {
|
|
3184
|
+
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", {
|
|
3185
|
+
value: "E543",
|
|
3186
|
+
enumerable: false,
|
|
3187
|
+
configurable: true
|
|
3188
|
+
});
|
|
3189
|
+
}
|
|
3190
|
+
function throwForSearchParamsAccessInUseCache(workStore) {
|
|
3191
|
+
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", {
|
|
3192
|
+
value: "E634",
|
|
3193
|
+
enumerable: false,
|
|
3194
|
+
configurable: true
|
|
3195
|
+
});
|
|
3196
|
+
workStore.invalidUsageError ?? (workStore.invalidUsageError = error);
|
|
3197
|
+
throw error;
|
|
3198
|
+
}
|
|
3199
|
+
function isRequestAPICallableInsideAfter() {
|
|
3200
|
+
const afterTaskStore = _aftertaskasyncstorageexternal.afterTaskAsyncStorage.getStore();
|
|
3201
|
+
return (afterTaskStore == null ? void 0 : afterTaskStore.rootTaskSpawnPhase) === "action";
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
});
|
|
3205
|
+
|
|
3206
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/cookies.js
|
|
3207
|
+
var require_cookies3 = __commonJS({
|
|
3208
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/cookies.js"(exports) {
|
|
3209
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3210
|
+
value: true
|
|
3211
|
+
});
|
|
3212
|
+
Object.defineProperty(exports, "cookies", {
|
|
3213
|
+
enumerable: true,
|
|
3214
|
+
get: function() {
|
|
3215
|
+
return cookies2;
|
|
3216
|
+
}
|
|
3217
|
+
});
|
|
3218
|
+
var _requestcookies = require_request_cookies();
|
|
3219
|
+
var _cookies = require_cookies2();
|
|
3220
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
3221
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
3222
|
+
var _dynamicrendering = require_dynamic_rendering();
|
|
3223
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
3224
|
+
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
3225
|
+
var _creatededupedbycallsiteservererrorlogger = require_create_deduped_by_callsite_server_error_logger();
|
|
3226
|
+
var _scheduler = require_scheduler();
|
|
3227
|
+
var _utils = require_utils();
|
|
3228
|
+
function cookies2() {
|
|
3229
|
+
const callingExpression = "cookies";
|
|
3230
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
3231
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3232
|
+
if (workStore) {
|
|
3233
|
+
if (workUnitStore && workUnitStore.phase === "after" && !(0, _utils.isRequestAPICallableInsideAfter)()) {
|
|
3234
|
+
throw Object.defineProperty(new Error(
|
|
3235
|
+
// TODO(after): clarify that this only applies to pages?
|
|
3236
|
+
`Route ${workStore.route} used "cookies" inside "after(...)". This is not supported. If you need this data inside an "after" callback, use "cookies" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`
|
|
3237
|
+
), "__NEXT_ERROR_CODE", {
|
|
3238
|
+
value: "E88",
|
|
3239
|
+
enumerable: false,
|
|
3240
|
+
configurable: true
|
|
3241
|
+
});
|
|
3242
|
+
}
|
|
3243
|
+
if (workStore.forceStatic) {
|
|
3244
|
+
const underlyingCookies2 = createEmptyCookies();
|
|
3245
|
+
return makeUntrackedExoticCookies(underlyingCookies2);
|
|
3246
|
+
}
|
|
3247
|
+
if (workUnitStore) {
|
|
3248
|
+
if (workUnitStore.type === "cache") {
|
|
3249
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used "cookies" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "cookies" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
3250
|
+
value: "E398",
|
|
3251
|
+
enumerable: false,
|
|
3252
|
+
configurable: true
|
|
3253
|
+
});
|
|
3254
|
+
} else if (workUnitStore.type === "unstable-cache") {
|
|
3255
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used "cookies" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "cookies" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
3256
|
+
value: "E157",
|
|
3257
|
+
enumerable: false,
|
|
3258
|
+
configurable: true
|
|
3259
|
+
});
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
if (workStore.dynamicShouldError) {
|
|
3263
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${workStore.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3264
|
+
value: "E549",
|
|
3265
|
+
enumerable: false,
|
|
3266
|
+
configurable: true
|
|
3267
|
+
});
|
|
3268
|
+
}
|
|
3269
|
+
if (workUnitStore) {
|
|
3270
|
+
if (workUnitStore.type === "prerender") {
|
|
3271
|
+
return makeDynamicallyTrackedExoticCookies(workStore.route, workUnitStore);
|
|
3272
|
+
} else if (workUnitStore.type === "prerender-ppr") {
|
|
3273
|
+
(0, _dynamicrendering.postponeWithTracking)(workStore.route, callingExpression, workUnitStore.dynamicTracking);
|
|
3274
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
3275
|
+
(0, _dynamicrendering.throwToInterruptStaticGeneration)(callingExpression, workStore, workUnitStore);
|
|
3276
|
+
}
|
|
3277
|
+
}
|
|
3278
|
+
(0, _dynamicrendering.trackDynamicDataInDynamicRender)(workStore, workUnitStore);
|
|
3279
|
+
}
|
|
3280
|
+
const requestStore = (0, _workunitasyncstorageexternal.getExpectedRequestStore)(callingExpression);
|
|
3281
|
+
let underlyingCookies;
|
|
3282
|
+
if ((0, _requestcookies.areCookiesMutableInCurrentPhase)(requestStore)) {
|
|
3283
|
+
underlyingCookies = requestStore.userspaceMutableCookies;
|
|
3284
|
+
} else {
|
|
3285
|
+
underlyingCookies = requestStore.cookies;
|
|
3286
|
+
}
|
|
3287
|
+
if (process.env.NODE_ENV === "development" && !(workStore == null ? void 0 : workStore.isPrefetchRequest)) {
|
|
3288
|
+
return makeUntrackedExoticCookiesWithDevWarnings(underlyingCookies, workStore == null ? void 0 : workStore.route);
|
|
3289
|
+
} else {
|
|
3290
|
+
return makeUntrackedExoticCookies(underlyingCookies);
|
|
3291
|
+
}
|
|
3292
|
+
}
|
|
3293
|
+
function createEmptyCookies() {
|
|
3294
|
+
return _requestcookies.RequestCookiesAdapter.seal(new _cookies.RequestCookies(new Headers({})));
|
|
3295
|
+
}
|
|
3296
|
+
var CachedCookies = /* @__PURE__ */ new WeakMap();
|
|
3297
|
+
function makeDynamicallyTrackedExoticCookies(route, prerenderStore) {
|
|
3298
|
+
const cachedPromise = CachedCookies.get(prerenderStore);
|
|
3299
|
+
if (cachedPromise) {
|
|
3300
|
+
return cachedPromise;
|
|
3301
|
+
}
|
|
3302
|
+
const promise = (0, _dynamicrenderingutils.makeHangingPromise)(prerenderStore.renderSignal, "`cookies()`");
|
|
3303
|
+
CachedCookies.set(prerenderStore, promise);
|
|
3304
|
+
Object.defineProperties(promise, {
|
|
3305
|
+
[Symbol.iterator]: {
|
|
3306
|
+
value: function() {
|
|
3307
|
+
const expression = "`cookies()[Symbol.iterator]()`";
|
|
3308
|
+
const error = createCookiesAccessError(route, expression);
|
|
3309
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3310
|
+
}
|
|
3311
|
+
},
|
|
3312
|
+
size: {
|
|
3313
|
+
get() {
|
|
3314
|
+
const expression = "`cookies().size`";
|
|
3315
|
+
const error = createCookiesAccessError(route, expression);
|
|
3316
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3317
|
+
}
|
|
3318
|
+
},
|
|
3319
|
+
get: {
|
|
3320
|
+
value: function get() {
|
|
3321
|
+
let expression;
|
|
3322
|
+
if (arguments.length === 0) {
|
|
3323
|
+
expression = "`cookies().get()`";
|
|
3324
|
+
} else {
|
|
3325
|
+
expression = `\`cookies().get(${describeNameArg(arguments[0])})\``;
|
|
3326
|
+
}
|
|
3327
|
+
const error = createCookiesAccessError(route, expression);
|
|
3328
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3329
|
+
}
|
|
3330
|
+
},
|
|
3331
|
+
getAll: {
|
|
3332
|
+
value: function getAll() {
|
|
3333
|
+
let expression;
|
|
3334
|
+
if (arguments.length === 0) {
|
|
3335
|
+
expression = "`cookies().getAll()`";
|
|
3336
|
+
} else {
|
|
3337
|
+
expression = `\`cookies().getAll(${describeNameArg(arguments[0])})\``;
|
|
3338
|
+
}
|
|
3339
|
+
const error = createCookiesAccessError(route, expression);
|
|
3340
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3341
|
+
}
|
|
3342
|
+
},
|
|
3343
|
+
has: {
|
|
3344
|
+
value: function has() {
|
|
3345
|
+
let expression;
|
|
3346
|
+
if (arguments.length === 0) {
|
|
3347
|
+
expression = "`cookies().has()`";
|
|
3348
|
+
} else {
|
|
3349
|
+
expression = `\`cookies().has(${describeNameArg(arguments[0])})\``;
|
|
3350
|
+
}
|
|
3351
|
+
const error = createCookiesAccessError(route, expression);
|
|
3352
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3353
|
+
}
|
|
3354
|
+
},
|
|
3355
|
+
set: {
|
|
3356
|
+
value: function set() {
|
|
3357
|
+
let expression;
|
|
3358
|
+
if (arguments.length === 0) {
|
|
3359
|
+
expression = "`cookies().set()`";
|
|
3360
|
+
} else {
|
|
3361
|
+
const arg = arguments[0];
|
|
3362
|
+
if (arg) {
|
|
3363
|
+
expression = `\`cookies().set(${describeNameArg(arg)}, ...)\``;
|
|
3364
|
+
} else {
|
|
3365
|
+
expression = "`cookies().set(...)`";
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
const error = createCookiesAccessError(route, expression);
|
|
3369
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3370
|
+
}
|
|
3371
|
+
},
|
|
3372
|
+
delete: {
|
|
3373
|
+
value: function() {
|
|
3374
|
+
let expression;
|
|
3375
|
+
if (arguments.length === 0) {
|
|
3376
|
+
expression = "`cookies().delete()`";
|
|
3377
|
+
} else if (arguments.length === 1) {
|
|
3378
|
+
expression = `\`cookies().delete(${describeNameArg(arguments[0])})\``;
|
|
3379
|
+
} else {
|
|
3380
|
+
expression = `\`cookies().delete(${describeNameArg(arguments[0])}, ...)\``;
|
|
3381
|
+
}
|
|
3382
|
+
const error = createCookiesAccessError(route, expression);
|
|
3383
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3384
|
+
}
|
|
3385
|
+
},
|
|
3386
|
+
clear: {
|
|
3387
|
+
value: function clear() {
|
|
3388
|
+
const expression = "`cookies().clear()`";
|
|
3389
|
+
const error = createCookiesAccessError(route, expression);
|
|
3390
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3391
|
+
}
|
|
3392
|
+
},
|
|
3393
|
+
toString: {
|
|
3394
|
+
value: function toString() {
|
|
3395
|
+
const expression = "`cookies().toString()`";
|
|
3396
|
+
const error = createCookiesAccessError(route, expression);
|
|
3397
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
});
|
|
3401
|
+
return promise;
|
|
3402
|
+
}
|
|
3403
|
+
function makeUntrackedExoticCookies(underlyingCookies) {
|
|
3404
|
+
const cachedCookies = CachedCookies.get(underlyingCookies);
|
|
3405
|
+
if (cachedCookies) {
|
|
3406
|
+
return cachedCookies;
|
|
3407
|
+
}
|
|
3408
|
+
const promise = Promise.resolve(underlyingCookies);
|
|
3409
|
+
CachedCookies.set(underlyingCookies, promise);
|
|
3410
|
+
Object.defineProperties(promise, {
|
|
3411
|
+
[Symbol.iterator]: {
|
|
3412
|
+
value: underlyingCookies[Symbol.iterator] ? underlyingCookies[Symbol.iterator].bind(underlyingCookies) : (
|
|
3413
|
+
// We should remove this and unify our cookies types. We could just let this continue to throw lazily
|
|
3414
|
+
// but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with
|
|
3415
|
+
// implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it
|
|
3416
|
+
// has extra properties not available on RequestCookie instances.
|
|
3417
|
+
polyfilledResponseCookiesIterator.bind(underlyingCookies)
|
|
3418
|
+
)
|
|
3419
|
+
},
|
|
3420
|
+
size: {
|
|
3421
|
+
get() {
|
|
3422
|
+
return underlyingCookies.size;
|
|
3423
|
+
}
|
|
3424
|
+
},
|
|
3425
|
+
get: {
|
|
3426
|
+
value: underlyingCookies.get.bind(underlyingCookies)
|
|
3427
|
+
},
|
|
3428
|
+
getAll: {
|
|
3429
|
+
value: underlyingCookies.getAll.bind(underlyingCookies)
|
|
3430
|
+
},
|
|
3431
|
+
has: {
|
|
3432
|
+
value: underlyingCookies.has.bind(underlyingCookies)
|
|
3433
|
+
},
|
|
3434
|
+
set: {
|
|
3435
|
+
value: underlyingCookies.set.bind(underlyingCookies)
|
|
3436
|
+
},
|
|
3437
|
+
delete: {
|
|
3438
|
+
value: underlyingCookies.delete.bind(underlyingCookies)
|
|
3439
|
+
},
|
|
3440
|
+
clear: {
|
|
3441
|
+
value: (
|
|
3442
|
+
// @ts-expect-error clear is defined in RequestCookies implementation but not in the type
|
|
3443
|
+
typeof underlyingCookies.clear === "function" ? underlyingCookies.clear.bind(underlyingCookies) : (
|
|
3444
|
+
// We should remove this and unify our cookies types. We could just let this continue to throw lazily
|
|
3445
|
+
// but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with
|
|
3446
|
+
// implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it
|
|
3447
|
+
// has extra properties not available on RequestCookie instances.
|
|
3448
|
+
polyfilledResponseCookiesClear.bind(underlyingCookies, promise)
|
|
3449
|
+
)
|
|
3450
|
+
)
|
|
3451
|
+
},
|
|
3452
|
+
toString: {
|
|
3453
|
+
value: underlyingCookies.toString.bind(underlyingCookies)
|
|
3454
|
+
}
|
|
3455
|
+
});
|
|
3456
|
+
return promise;
|
|
3457
|
+
}
|
|
3458
|
+
function makeUntrackedExoticCookiesWithDevWarnings(underlyingCookies, route) {
|
|
3459
|
+
const cachedCookies = CachedCookies.get(underlyingCookies);
|
|
3460
|
+
if (cachedCookies) {
|
|
3461
|
+
return cachedCookies;
|
|
3462
|
+
}
|
|
3463
|
+
const promise = new Promise((resolve) => (0, _scheduler.scheduleImmediate)(() => resolve(underlyingCookies)));
|
|
3464
|
+
CachedCookies.set(underlyingCookies, promise);
|
|
3465
|
+
Object.defineProperties(promise, {
|
|
3466
|
+
[Symbol.iterator]: {
|
|
3467
|
+
value: function() {
|
|
3468
|
+
const expression = "`...cookies()` or similar iteration";
|
|
3469
|
+
syncIODev(route, expression);
|
|
3470
|
+
return underlyingCookies[Symbol.iterator] ? underlyingCookies[Symbol.iterator].apply(underlyingCookies, arguments) : (
|
|
3471
|
+
// We should remove this and unify our cookies types. We could just let this continue to throw lazily
|
|
3472
|
+
// but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with
|
|
3473
|
+
// implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it
|
|
3474
|
+
// has extra properties not available on RequestCookie instances.
|
|
3475
|
+
polyfilledResponseCookiesIterator.call(underlyingCookies)
|
|
3476
|
+
);
|
|
3477
|
+
},
|
|
3478
|
+
writable: false
|
|
3479
|
+
},
|
|
3480
|
+
size: {
|
|
3481
|
+
get() {
|
|
3482
|
+
const expression = "`cookies().size`";
|
|
3483
|
+
syncIODev(route, expression);
|
|
3484
|
+
return underlyingCookies.size;
|
|
3485
|
+
}
|
|
3486
|
+
},
|
|
3487
|
+
get: {
|
|
3488
|
+
value: function get() {
|
|
3489
|
+
let expression;
|
|
3490
|
+
if (arguments.length === 0) {
|
|
3491
|
+
expression = "`cookies().get()`";
|
|
3492
|
+
} else {
|
|
3493
|
+
expression = `\`cookies().get(${describeNameArg(arguments[0])})\``;
|
|
3494
|
+
}
|
|
3495
|
+
syncIODev(route, expression);
|
|
3496
|
+
return underlyingCookies.get.apply(underlyingCookies, arguments);
|
|
3497
|
+
},
|
|
3498
|
+
writable: false
|
|
3499
|
+
},
|
|
3500
|
+
getAll: {
|
|
3501
|
+
value: function getAll() {
|
|
3502
|
+
let expression;
|
|
3503
|
+
if (arguments.length === 0) {
|
|
3504
|
+
expression = "`cookies().getAll()`";
|
|
3505
|
+
} else {
|
|
3506
|
+
expression = `\`cookies().getAll(${describeNameArg(arguments[0])})\``;
|
|
3507
|
+
}
|
|
3508
|
+
syncIODev(route, expression);
|
|
3509
|
+
return underlyingCookies.getAll.apply(underlyingCookies, arguments);
|
|
3510
|
+
},
|
|
3511
|
+
writable: false
|
|
3512
|
+
},
|
|
3513
|
+
has: {
|
|
3514
|
+
value: function get() {
|
|
3515
|
+
let expression;
|
|
3516
|
+
if (arguments.length === 0) {
|
|
3517
|
+
expression = "`cookies().has()`";
|
|
3518
|
+
} else {
|
|
3519
|
+
expression = `\`cookies().has(${describeNameArg(arguments[0])})\``;
|
|
3520
|
+
}
|
|
3521
|
+
syncIODev(route, expression);
|
|
3522
|
+
return underlyingCookies.has.apply(underlyingCookies, arguments);
|
|
3523
|
+
},
|
|
3524
|
+
writable: false
|
|
3525
|
+
},
|
|
3526
|
+
set: {
|
|
3527
|
+
value: function set() {
|
|
3528
|
+
let expression;
|
|
3529
|
+
if (arguments.length === 0) {
|
|
3530
|
+
expression = "`cookies().set()`";
|
|
3531
|
+
} else {
|
|
3532
|
+
const arg = arguments[0];
|
|
3533
|
+
if (arg) {
|
|
3534
|
+
expression = `\`cookies().set(${describeNameArg(arg)}, ...)\``;
|
|
3535
|
+
} else {
|
|
3536
|
+
expression = "`cookies().set(...)`";
|
|
3537
|
+
}
|
|
3538
|
+
}
|
|
3539
|
+
syncIODev(route, expression);
|
|
3540
|
+
return underlyingCookies.set.apply(underlyingCookies, arguments);
|
|
3541
|
+
},
|
|
3542
|
+
writable: false
|
|
3543
|
+
},
|
|
3544
|
+
delete: {
|
|
3545
|
+
value: function() {
|
|
3546
|
+
let expression;
|
|
3547
|
+
if (arguments.length === 0) {
|
|
3548
|
+
expression = "`cookies().delete()`";
|
|
3549
|
+
} else if (arguments.length === 1) {
|
|
3550
|
+
expression = `\`cookies().delete(${describeNameArg(arguments[0])})\``;
|
|
3551
|
+
} else {
|
|
3552
|
+
expression = `\`cookies().delete(${describeNameArg(arguments[0])}, ...)\``;
|
|
3553
|
+
}
|
|
3554
|
+
syncIODev(route, expression);
|
|
3555
|
+
return underlyingCookies.delete.apply(underlyingCookies, arguments);
|
|
3556
|
+
},
|
|
3557
|
+
writable: false
|
|
3558
|
+
},
|
|
3559
|
+
clear: {
|
|
3560
|
+
value: function clear() {
|
|
3561
|
+
const expression = "`cookies().clear()`";
|
|
3562
|
+
syncIODev(route, expression);
|
|
3563
|
+
return typeof underlyingCookies.clear === "function" ? underlyingCookies.clear.apply(underlyingCookies, arguments) : (
|
|
3564
|
+
// We should remove this and unify our cookies types. We could just let this continue to throw lazily
|
|
3565
|
+
// but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with
|
|
3566
|
+
// implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it
|
|
3567
|
+
// has extra properties not available on RequestCookie instances.
|
|
3568
|
+
polyfilledResponseCookiesClear.call(underlyingCookies, promise)
|
|
3569
|
+
);
|
|
3570
|
+
},
|
|
3571
|
+
writable: false
|
|
3572
|
+
},
|
|
3573
|
+
toString: {
|
|
3574
|
+
value: function toString() {
|
|
3575
|
+
const expression = "`cookies().toString()` or implicit casting";
|
|
3576
|
+
syncIODev(route, expression);
|
|
3577
|
+
return underlyingCookies.toString.apply(underlyingCookies, arguments);
|
|
3578
|
+
},
|
|
3579
|
+
writable: false
|
|
3580
|
+
}
|
|
3581
|
+
});
|
|
3582
|
+
return promise;
|
|
3583
|
+
}
|
|
3584
|
+
function describeNameArg(arg) {
|
|
3585
|
+
return typeof arg === "object" && arg !== null && typeof arg.name === "string" ? `'${arg.name}'` : typeof arg === "string" ? `'${arg}'` : "...";
|
|
3586
|
+
}
|
|
3587
|
+
function syncIODev(route, expression) {
|
|
3588
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3589
|
+
if (workUnitStore && workUnitStore.type === "request" && workUnitStore.prerenderPhase === true) {
|
|
3590
|
+
const requestStore = workUnitStore;
|
|
3591
|
+
(0, _dynamicrendering.trackSynchronousRequestDataAccessInDev)(requestStore);
|
|
3592
|
+
}
|
|
3593
|
+
warnForSyncAccess(route, expression);
|
|
3594
|
+
}
|
|
3595
|
+
var warnForSyncAccess = (0, _creatededupedbycallsiteservererrorlogger.createDedupedByCallsiteServerErrorLoggerDev)(createCookiesAccessError);
|
|
3596
|
+
function createCookiesAccessError(route, expression) {
|
|
3597
|
+
const prefix = route ? `Route "${route}" ` : "This route ";
|
|
3598
|
+
return Object.defineProperty(new Error(`${prefix}used ${expression}. \`cookies()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
|
|
3599
|
+
value: "E223",
|
|
3600
|
+
enumerable: false,
|
|
3601
|
+
configurable: true
|
|
3602
|
+
});
|
|
3603
|
+
}
|
|
3604
|
+
function polyfilledResponseCookiesIterator() {
|
|
3605
|
+
return this.getAll().map((c) => [
|
|
3606
|
+
c.name,
|
|
3607
|
+
c
|
|
3608
|
+
]).values();
|
|
3609
|
+
}
|
|
3610
|
+
function polyfilledResponseCookiesClear(returnable) {
|
|
3611
|
+
for (const cookie of this.getAll()) {
|
|
3612
|
+
this.delete(cookie.name);
|
|
3613
|
+
}
|
|
3614
|
+
return returnable;
|
|
3615
|
+
}
|
|
3616
|
+
}
|
|
3617
|
+
});
|
|
3618
|
+
|
|
3619
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/headers.js
|
|
3620
|
+
var require_headers = __commonJS({
|
|
3621
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/headers.js"(exports) {
|
|
3622
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3623
|
+
value: true
|
|
3624
|
+
});
|
|
3625
|
+
function _export(target, all) {
|
|
3626
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3627
|
+
enumerable: true,
|
|
3628
|
+
get: all[name]
|
|
3629
|
+
});
|
|
3630
|
+
}
|
|
3631
|
+
_export(exports, {
|
|
3632
|
+
HeadersAdapter: function() {
|
|
3633
|
+
return HeadersAdapter;
|
|
3634
|
+
},
|
|
3635
|
+
ReadonlyHeadersError: function() {
|
|
3636
|
+
return ReadonlyHeadersError;
|
|
3637
|
+
}
|
|
3638
|
+
});
|
|
3639
|
+
var _reflect = require_reflect();
|
|
3640
|
+
var ReadonlyHeadersError = class _ReadonlyHeadersError extends Error {
|
|
3641
|
+
constructor() {
|
|
3642
|
+
super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers");
|
|
3643
|
+
}
|
|
3644
|
+
static callable() {
|
|
3645
|
+
throw new _ReadonlyHeadersError();
|
|
3646
|
+
}
|
|
3647
|
+
};
|
|
3648
|
+
var HeadersAdapter = class _HeadersAdapter extends Headers {
|
|
3649
|
+
constructor(headers2) {
|
|
3650
|
+
super();
|
|
3651
|
+
this.headers = new Proxy(headers2, {
|
|
3652
|
+
get(target, prop, receiver) {
|
|
3653
|
+
if (typeof prop === "symbol") {
|
|
3654
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
3655
|
+
}
|
|
3656
|
+
const lowercased = prop.toLowerCase();
|
|
3657
|
+
const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
|
|
3658
|
+
if (typeof original === "undefined") return;
|
|
3659
|
+
return _reflect.ReflectAdapter.get(target, original, receiver);
|
|
3660
|
+
},
|
|
3661
|
+
set(target, prop, value, receiver) {
|
|
3662
|
+
if (typeof prop === "symbol") {
|
|
3663
|
+
return _reflect.ReflectAdapter.set(target, prop, value, receiver);
|
|
3664
|
+
}
|
|
3665
|
+
const lowercased = prop.toLowerCase();
|
|
3666
|
+
const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
|
|
3667
|
+
return _reflect.ReflectAdapter.set(target, original ?? prop, value, receiver);
|
|
3668
|
+
},
|
|
3669
|
+
has(target, prop) {
|
|
3670
|
+
if (typeof prop === "symbol") return _reflect.ReflectAdapter.has(target, prop);
|
|
3671
|
+
const lowercased = prop.toLowerCase();
|
|
3672
|
+
const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
|
|
3673
|
+
if (typeof original === "undefined") return false;
|
|
3674
|
+
return _reflect.ReflectAdapter.has(target, original);
|
|
3675
|
+
},
|
|
3676
|
+
deleteProperty(target, prop) {
|
|
3677
|
+
if (typeof prop === "symbol") return _reflect.ReflectAdapter.deleteProperty(target, prop);
|
|
3678
|
+
const lowercased = prop.toLowerCase();
|
|
3679
|
+
const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
|
|
3680
|
+
if (typeof original === "undefined") return true;
|
|
3681
|
+
return _reflect.ReflectAdapter.deleteProperty(target, original);
|
|
3682
|
+
}
|
|
3683
|
+
});
|
|
3684
|
+
}
|
|
3685
|
+
/**
|
|
3686
|
+
* Seals a Headers instance to prevent modification by throwing an error when
|
|
3687
|
+
* any mutating method is called.
|
|
3688
|
+
*/
|
|
3689
|
+
static seal(headers2) {
|
|
3690
|
+
return new Proxy(headers2, {
|
|
3691
|
+
get(target, prop, receiver) {
|
|
3692
|
+
switch (prop) {
|
|
3693
|
+
case "append":
|
|
3694
|
+
case "delete":
|
|
3695
|
+
case "set":
|
|
3696
|
+
return ReadonlyHeadersError.callable;
|
|
3697
|
+
default:
|
|
3698
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
3699
|
+
}
|
|
3700
|
+
}
|
|
3701
|
+
});
|
|
3702
|
+
}
|
|
3703
|
+
/**
|
|
3704
|
+
* Merges a header value into a string. This stores multiple values as an
|
|
3705
|
+
* array, so we need to merge them into a string.
|
|
3706
|
+
*
|
|
3707
|
+
* @param value a header value
|
|
3708
|
+
* @returns a merged header value (a string)
|
|
3709
|
+
*/
|
|
3710
|
+
merge(value) {
|
|
3711
|
+
if (Array.isArray(value)) return value.join(", ");
|
|
3712
|
+
return value;
|
|
3713
|
+
}
|
|
3714
|
+
/**
|
|
3715
|
+
* Creates a Headers instance from a plain object or a Headers instance.
|
|
3716
|
+
*
|
|
3717
|
+
* @param headers a plain object or a Headers instance
|
|
3718
|
+
* @returns a headers instance
|
|
3719
|
+
*/
|
|
3720
|
+
static from(headers2) {
|
|
3721
|
+
if (headers2 instanceof Headers) return headers2;
|
|
3722
|
+
return new _HeadersAdapter(headers2);
|
|
3723
|
+
}
|
|
3724
|
+
append(name, value) {
|
|
3725
|
+
const existing = this.headers[name];
|
|
3726
|
+
if (typeof existing === "string") {
|
|
3727
|
+
this.headers[name] = [
|
|
3728
|
+
existing,
|
|
3729
|
+
value
|
|
3730
|
+
];
|
|
3731
|
+
} else if (Array.isArray(existing)) {
|
|
3732
|
+
existing.push(value);
|
|
3733
|
+
} else {
|
|
3734
|
+
this.headers[name] = value;
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
delete(name) {
|
|
3738
|
+
delete this.headers[name];
|
|
3739
|
+
}
|
|
3740
|
+
get(name) {
|
|
3741
|
+
const value = this.headers[name];
|
|
3742
|
+
if (typeof value !== "undefined") return this.merge(value);
|
|
3743
|
+
return null;
|
|
3744
|
+
}
|
|
3745
|
+
has(name) {
|
|
3746
|
+
return typeof this.headers[name] !== "undefined";
|
|
3747
|
+
}
|
|
3748
|
+
set(name, value) {
|
|
3749
|
+
this.headers[name] = value;
|
|
3750
|
+
}
|
|
3751
|
+
forEach(callbackfn, thisArg) {
|
|
3752
|
+
for (const [name, value] of this.entries()) {
|
|
3753
|
+
callbackfn.call(thisArg, value, name, this);
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3756
|
+
*entries() {
|
|
3757
|
+
for (const key of Object.keys(this.headers)) {
|
|
3758
|
+
const name = key.toLowerCase();
|
|
3759
|
+
const value = this.get(name);
|
|
3760
|
+
yield [
|
|
3761
|
+
name,
|
|
3762
|
+
value
|
|
3763
|
+
];
|
|
3764
|
+
}
|
|
3765
|
+
}
|
|
3766
|
+
*keys() {
|
|
3767
|
+
for (const key of Object.keys(this.headers)) {
|
|
3768
|
+
const name = key.toLowerCase();
|
|
3769
|
+
yield name;
|
|
3770
|
+
}
|
|
3771
|
+
}
|
|
3772
|
+
*values() {
|
|
3773
|
+
for (const key of Object.keys(this.headers)) {
|
|
3774
|
+
const value = this.get(key);
|
|
3775
|
+
yield value;
|
|
3776
|
+
}
|
|
3777
|
+
}
|
|
3778
|
+
[Symbol.iterator]() {
|
|
3779
|
+
return this.entries();
|
|
3780
|
+
}
|
|
3781
|
+
};
|
|
3782
|
+
}
|
|
3783
|
+
});
|
|
3784
|
+
|
|
3785
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/headers.js
|
|
3786
|
+
var require_headers2 = __commonJS({
|
|
3787
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/headers.js"(exports) {
|
|
3788
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3789
|
+
value: true
|
|
3790
|
+
});
|
|
3791
|
+
Object.defineProperty(exports, "headers", {
|
|
3792
|
+
enumerable: true,
|
|
3793
|
+
get: function() {
|
|
3794
|
+
return headers2;
|
|
3795
|
+
}
|
|
3796
|
+
});
|
|
3797
|
+
var _headers = require_headers();
|
|
3798
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
3799
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
3800
|
+
var _dynamicrendering = require_dynamic_rendering();
|
|
3801
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
3802
|
+
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
3803
|
+
var _creatededupedbycallsiteservererrorlogger = require_create_deduped_by_callsite_server_error_logger();
|
|
3804
|
+
var _scheduler = require_scheduler();
|
|
3805
|
+
var _utils = require_utils();
|
|
3806
|
+
function headers2() {
|
|
3807
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
3808
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
3809
|
+
if (workStore) {
|
|
3810
|
+
if (workUnitStore && workUnitStore.phase === "after" && !(0, _utils.isRequestAPICallableInsideAfter)()) {
|
|
3811
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used "headers" inside "after(...)". This is not supported. If you need this data inside an "after" callback, use "headers" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
|
|
3812
|
+
value: "E367",
|
|
3813
|
+
enumerable: false,
|
|
3814
|
+
configurable: true
|
|
3815
|
+
});
|
|
3816
|
+
}
|
|
3817
|
+
if (workStore.forceStatic) {
|
|
3818
|
+
const underlyingHeaders = _headers.HeadersAdapter.seal(new Headers({}));
|
|
3819
|
+
return makeUntrackedExoticHeaders(underlyingHeaders);
|
|
3820
|
+
}
|
|
3821
|
+
if (workUnitStore) {
|
|
3822
|
+
if (workUnitStore.type === "cache") {
|
|
3823
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used "headers" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "headers" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
3824
|
+
value: "E304",
|
|
3825
|
+
enumerable: false,
|
|
3826
|
+
configurable: true
|
|
3827
|
+
});
|
|
3828
|
+
} else if (workUnitStore.type === "unstable-cache") {
|
|
3829
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used "headers" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "headers" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
3830
|
+
value: "E127",
|
|
3831
|
+
enumerable: false,
|
|
3832
|
+
configurable: true
|
|
3833
|
+
});
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3836
|
+
if (workStore.dynamicShouldError) {
|
|
3837
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${workStore.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3838
|
+
value: "E525",
|
|
3839
|
+
enumerable: false,
|
|
3840
|
+
configurable: true
|
|
3841
|
+
});
|
|
3842
|
+
}
|
|
3843
|
+
if (workUnitStore) {
|
|
3844
|
+
if (workUnitStore.type === "prerender") {
|
|
3845
|
+
return makeDynamicallyTrackedExoticHeaders(workStore.route, workUnitStore);
|
|
3846
|
+
} else if (workUnitStore.type === "prerender-ppr") {
|
|
3847
|
+
(0, _dynamicrendering.postponeWithTracking)(workStore.route, "headers", workUnitStore.dynamicTracking);
|
|
3848
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
3849
|
+
(0, _dynamicrendering.throwToInterruptStaticGeneration)("headers", workStore, workUnitStore);
|
|
3850
|
+
}
|
|
3851
|
+
}
|
|
3852
|
+
(0, _dynamicrendering.trackDynamicDataInDynamicRender)(workStore, workUnitStore);
|
|
3853
|
+
}
|
|
3854
|
+
const requestStore = (0, _workunitasyncstorageexternal.getExpectedRequestStore)("headers");
|
|
3855
|
+
if (process.env.NODE_ENV === "development" && !(workStore == null ? void 0 : workStore.isPrefetchRequest)) {
|
|
3856
|
+
return makeUntrackedExoticHeadersWithDevWarnings(requestStore.headers, workStore == null ? void 0 : workStore.route);
|
|
3857
|
+
} else {
|
|
3858
|
+
return makeUntrackedExoticHeaders(requestStore.headers);
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
var CachedHeaders = /* @__PURE__ */ new WeakMap();
|
|
3862
|
+
function makeDynamicallyTrackedExoticHeaders(route, prerenderStore) {
|
|
3863
|
+
const cachedHeaders = CachedHeaders.get(prerenderStore);
|
|
3864
|
+
if (cachedHeaders) {
|
|
3865
|
+
return cachedHeaders;
|
|
3866
|
+
}
|
|
3867
|
+
const promise = (0, _dynamicrenderingutils.makeHangingPromise)(prerenderStore.renderSignal, "`headers()`");
|
|
3868
|
+
CachedHeaders.set(prerenderStore, promise);
|
|
3869
|
+
Object.defineProperties(promise, {
|
|
3870
|
+
append: {
|
|
3871
|
+
value: function append() {
|
|
3872
|
+
const expression = `\`headers().append(${describeNameArg(arguments[0])}, ...)\``;
|
|
3873
|
+
const error = createHeadersAccessError(route, expression);
|
|
3874
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3875
|
+
}
|
|
3876
|
+
},
|
|
3877
|
+
delete: {
|
|
3878
|
+
value: function _delete() {
|
|
3879
|
+
const expression = `\`headers().delete(${describeNameArg(arguments[0])})\``;
|
|
3880
|
+
const error = createHeadersAccessError(route, expression);
|
|
3881
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3882
|
+
}
|
|
3883
|
+
},
|
|
3884
|
+
get: {
|
|
3885
|
+
value: function get() {
|
|
3886
|
+
const expression = `\`headers().get(${describeNameArg(arguments[0])})\``;
|
|
3887
|
+
const error = createHeadersAccessError(route, expression);
|
|
3888
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3889
|
+
}
|
|
3890
|
+
},
|
|
3891
|
+
has: {
|
|
3892
|
+
value: function has() {
|
|
3893
|
+
const expression = `\`headers().has(${describeNameArg(arguments[0])})\``;
|
|
3894
|
+
const error = createHeadersAccessError(route, expression);
|
|
3895
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3896
|
+
}
|
|
3897
|
+
},
|
|
3898
|
+
set: {
|
|
3899
|
+
value: function set() {
|
|
3900
|
+
const expression = `\`headers().set(${describeNameArg(arguments[0])}, ...)\``;
|
|
3901
|
+
const error = createHeadersAccessError(route, expression);
|
|
3902
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3903
|
+
}
|
|
3904
|
+
},
|
|
3905
|
+
getSetCookie: {
|
|
3906
|
+
value: function getSetCookie() {
|
|
3907
|
+
const expression = "`headers().getSetCookie()`";
|
|
3908
|
+
const error = createHeadersAccessError(route, expression);
|
|
3909
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3910
|
+
}
|
|
3911
|
+
},
|
|
3912
|
+
forEach: {
|
|
3913
|
+
value: function forEach() {
|
|
3914
|
+
const expression = "`headers().forEach(...)`";
|
|
3915
|
+
const error = createHeadersAccessError(route, expression);
|
|
3916
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3917
|
+
}
|
|
3918
|
+
},
|
|
3919
|
+
keys: {
|
|
3920
|
+
value: function keys() {
|
|
3921
|
+
const expression = "`headers().keys()`";
|
|
3922
|
+
const error = createHeadersAccessError(route, expression);
|
|
3923
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3924
|
+
}
|
|
3925
|
+
},
|
|
3926
|
+
values: {
|
|
3927
|
+
value: function values() {
|
|
3928
|
+
const expression = "`headers().values()`";
|
|
3929
|
+
const error = createHeadersAccessError(route, expression);
|
|
3930
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3931
|
+
}
|
|
3932
|
+
},
|
|
3933
|
+
entries: {
|
|
3934
|
+
value: function entries() {
|
|
3935
|
+
const expression = "`headers().entries()`";
|
|
3936
|
+
const error = createHeadersAccessError(route, expression);
|
|
3937
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3938
|
+
}
|
|
3939
|
+
},
|
|
3940
|
+
[Symbol.iterator]: {
|
|
3941
|
+
value: function() {
|
|
3942
|
+
const expression = "`headers()[Symbol.iterator]()`";
|
|
3943
|
+
const error = createHeadersAccessError(route, expression);
|
|
3944
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(route, expression, error, prerenderStore);
|
|
3945
|
+
}
|
|
3946
|
+
}
|
|
3947
|
+
});
|
|
3948
|
+
return promise;
|
|
3949
|
+
}
|
|
3950
|
+
function makeUntrackedExoticHeaders(underlyingHeaders) {
|
|
3951
|
+
const cachedHeaders = CachedHeaders.get(underlyingHeaders);
|
|
3952
|
+
if (cachedHeaders) {
|
|
3953
|
+
return cachedHeaders;
|
|
3954
|
+
}
|
|
3955
|
+
const promise = Promise.resolve(underlyingHeaders);
|
|
3956
|
+
CachedHeaders.set(underlyingHeaders, promise);
|
|
3957
|
+
Object.defineProperties(promise, {
|
|
3958
|
+
append: {
|
|
3959
|
+
value: underlyingHeaders.append.bind(underlyingHeaders)
|
|
3960
|
+
},
|
|
3961
|
+
delete: {
|
|
3962
|
+
value: underlyingHeaders.delete.bind(underlyingHeaders)
|
|
3963
|
+
},
|
|
3964
|
+
get: {
|
|
3965
|
+
value: underlyingHeaders.get.bind(underlyingHeaders)
|
|
3966
|
+
},
|
|
3967
|
+
has: {
|
|
3968
|
+
value: underlyingHeaders.has.bind(underlyingHeaders)
|
|
3969
|
+
},
|
|
3970
|
+
set: {
|
|
3971
|
+
value: underlyingHeaders.set.bind(underlyingHeaders)
|
|
3972
|
+
},
|
|
3973
|
+
getSetCookie: {
|
|
3974
|
+
value: underlyingHeaders.getSetCookie.bind(underlyingHeaders)
|
|
3975
|
+
},
|
|
3976
|
+
forEach: {
|
|
3977
|
+
value: underlyingHeaders.forEach.bind(underlyingHeaders)
|
|
3978
|
+
},
|
|
3979
|
+
keys: {
|
|
3980
|
+
value: underlyingHeaders.keys.bind(underlyingHeaders)
|
|
3981
|
+
},
|
|
3982
|
+
values: {
|
|
3983
|
+
value: underlyingHeaders.values.bind(underlyingHeaders)
|
|
3984
|
+
},
|
|
3985
|
+
entries: {
|
|
3986
|
+
value: underlyingHeaders.entries.bind(underlyingHeaders)
|
|
3987
|
+
},
|
|
3988
|
+
[Symbol.iterator]: {
|
|
3989
|
+
value: underlyingHeaders[Symbol.iterator].bind(underlyingHeaders)
|
|
3990
|
+
}
|
|
3991
|
+
});
|
|
3992
|
+
return promise;
|
|
3993
|
+
}
|
|
3994
|
+
function makeUntrackedExoticHeadersWithDevWarnings(underlyingHeaders, route) {
|
|
3995
|
+
const cachedHeaders = CachedHeaders.get(underlyingHeaders);
|
|
3996
|
+
if (cachedHeaders) {
|
|
3997
|
+
return cachedHeaders;
|
|
3998
|
+
}
|
|
3999
|
+
const promise = new Promise((resolve) => (0, _scheduler.scheduleImmediate)(() => resolve(underlyingHeaders)));
|
|
4000
|
+
CachedHeaders.set(underlyingHeaders, promise);
|
|
4001
|
+
Object.defineProperties(promise, {
|
|
4002
|
+
append: {
|
|
4003
|
+
value: function append() {
|
|
4004
|
+
const expression = `\`headers().append(${describeNameArg(arguments[0])}, ...)\``;
|
|
4005
|
+
syncIODev(route, expression);
|
|
4006
|
+
return underlyingHeaders.append.apply(underlyingHeaders, arguments);
|
|
4007
|
+
}
|
|
4008
|
+
},
|
|
4009
|
+
delete: {
|
|
4010
|
+
value: function _delete() {
|
|
4011
|
+
const expression = `\`headers().delete(${describeNameArg(arguments[0])})\``;
|
|
4012
|
+
syncIODev(route, expression);
|
|
4013
|
+
return underlyingHeaders.delete.apply(underlyingHeaders, arguments);
|
|
4014
|
+
}
|
|
4015
|
+
},
|
|
4016
|
+
get: {
|
|
4017
|
+
value: function get() {
|
|
4018
|
+
const expression = `\`headers().get(${describeNameArg(arguments[0])})\``;
|
|
4019
|
+
syncIODev(route, expression);
|
|
4020
|
+
return underlyingHeaders.get.apply(underlyingHeaders, arguments);
|
|
4021
|
+
}
|
|
4022
|
+
},
|
|
4023
|
+
has: {
|
|
4024
|
+
value: function has() {
|
|
4025
|
+
const expression = `\`headers().has(${describeNameArg(arguments[0])})\``;
|
|
4026
|
+
syncIODev(route, expression);
|
|
4027
|
+
return underlyingHeaders.has.apply(underlyingHeaders, arguments);
|
|
4028
|
+
}
|
|
4029
|
+
},
|
|
4030
|
+
set: {
|
|
4031
|
+
value: function set() {
|
|
4032
|
+
const expression = `\`headers().set(${describeNameArg(arguments[0])}, ...)\``;
|
|
4033
|
+
syncIODev(route, expression);
|
|
4034
|
+
return underlyingHeaders.set.apply(underlyingHeaders, arguments);
|
|
4035
|
+
}
|
|
4036
|
+
},
|
|
4037
|
+
getSetCookie: {
|
|
4038
|
+
value: function getSetCookie() {
|
|
4039
|
+
const expression = "`headers().getSetCookie()`";
|
|
4040
|
+
syncIODev(route, expression);
|
|
4041
|
+
return underlyingHeaders.getSetCookie.apply(underlyingHeaders, arguments);
|
|
4042
|
+
}
|
|
4043
|
+
},
|
|
4044
|
+
forEach: {
|
|
4045
|
+
value: function forEach() {
|
|
4046
|
+
const expression = "`headers().forEach(...)`";
|
|
4047
|
+
syncIODev(route, expression);
|
|
4048
|
+
return underlyingHeaders.forEach.apply(underlyingHeaders, arguments);
|
|
4049
|
+
}
|
|
4050
|
+
},
|
|
4051
|
+
keys: {
|
|
4052
|
+
value: function keys() {
|
|
4053
|
+
const expression = "`headers().keys()`";
|
|
4054
|
+
syncIODev(route, expression);
|
|
4055
|
+
return underlyingHeaders.keys.apply(underlyingHeaders, arguments);
|
|
4056
|
+
}
|
|
4057
|
+
},
|
|
4058
|
+
values: {
|
|
4059
|
+
value: function values() {
|
|
4060
|
+
const expression = "`headers().values()`";
|
|
4061
|
+
syncIODev(route, expression);
|
|
4062
|
+
return underlyingHeaders.values.apply(underlyingHeaders, arguments);
|
|
4063
|
+
}
|
|
4064
|
+
},
|
|
4065
|
+
entries: {
|
|
4066
|
+
value: function entries() {
|
|
4067
|
+
const expression = "`headers().entries()`";
|
|
4068
|
+
syncIODev(route, expression);
|
|
4069
|
+
return underlyingHeaders.entries.apply(underlyingHeaders, arguments);
|
|
4070
|
+
}
|
|
4071
|
+
},
|
|
4072
|
+
[Symbol.iterator]: {
|
|
4073
|
+
value: function() {
|
|
4074
|
+
const expression = "`...headers()` or similar iteration";
|
|
4075
|
+
syncIODev(route, expression);
|
|
4076
|
+
return underlyingHeaders[Symbol.iterator].apply(underlyingHeaders, arguments);
|
|
4077
|
+
}
|
|
4078
|
+
}
|
|
4079
|
+
});
|
|
4080
|
+
return promise;
|
|
4081
|
+
}
|
|
4082
|
+
function describeNameArg(arg) {
|
|
4083
|
+
return typeof arg === "string" ? `'${arg}'` : "...";
|
|
4084
|
+
}
|
|
4085
|
+
function syncIODev(route, expression) {
|
|
4086
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
4087
|
+
if (workUnitStore && workUnitStore.type === "request" && workUnitStore.prerenderPhase === true) {
|
|
4088
|
+
const requestStore = workUnitStore;
|
|
4089
|
+
(0, _dynamicrendering.trackSynchronousRequestDataAccessInDev)(requestStore);
|
|
4090
|
+
}
|
|
4091
|
+
warnForSyncAccess(route, expression);
|
|
4092
|
+
}
|
|
4093
|
+
var warnForSyncAccess = (0, _creatededupedbycallsiteservererrorlogger.createDedupedByCallsiteServerErrorLoggerDev)(createHeadersAccessError);
|
|
4094
|
+
function createHeadersAccessError(route, expression) {
|
|
4095
|
+
const prefix = route ? `Route "${route}" ` : "This route ";
|
|
4096
|
+
return Object.defineProperty(new Error(`${prefix}used ${expression}. \`headers()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
|
|
4097
|
+
value: "E277",
|
|
4098
|
+
enumerable: false,
|
|
4099
|
+
configurable: true
|
|
4100
|
+
});
|
|
4101
|
+
}
|
|
4102
|
+
}
|
|
4103
|
+
});
|
|
4104
|
+
|
|
4105
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/draft-mode.js
|
|
4106
|
+
var require_draft_mode = __commonJS({
|
|
4107
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/draft-mode.js"(exports) {
|
|
4108
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4109
|
+
value: true
|
|
4110
|
+
});
|
|
4111
|
+
Object.defineProperty(exports, "draftMode", {
|
|
4112
|
+
enumerable: true,
|
|
4113
|
+
get: function() {
|
|
4114
|
+
return draftMode;
|
|
4115
|
+
}
|
|
4116
|
+
});
|
|
4117
|
+
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
4118
|
+
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
4119
|
+
var _dynamicrendering = require_dynamic_rendering();
|
|
4120
|
+
var _creatededupedbycallsiteservererrorlogger = require_create_deduped_by_callsite_server_error_logger();
|
|
4121
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
4122
|
+
var _hooksservercontext = require_hooks_server_context();
|
|
4123
|
+
function draftMode() {
|
|
4124
|
+
const callingExpression = "draftMode";
|
|
4125
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
4126
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
4127
|
+
if (!workStore || !workUnitStore) {
|
|
4128
|
+
(0, _workunitasyncstorageexternal.throwForMissingRequestStore)(callingExpression);
|
|
4129
|
+
}
|
|
4130
|
+
switch (workUnitStore.type) {
|
|
4131
|
+
case "request":
|
|
4132
|
+
return createOrGetCachedExoticDraftMode(workUnitStore.draftMode, workStore);
|
|
4133
|
+
case "cache":
|
|
4134
|
+
case "unstable-cache":
|
|
4135
|
+
const draftModeProvider = (0, _workunitasyncstorageexternal.getDraftModeProviderForCacheScope)(workStore, workUnitStore);
|
|
4136
|
+
if (draftModeProvider) {
|
|
4137
|
+
return createOrGetCachedExoticDraftMode(draftModeProvider, workStore);
|
|
4138
|
+
}
|
|
4139
|
+
// Otherwise, we fall through to providing an empty draft mode.
|
|
4140
|
+
// eslint-disable-next-line no-fallthrough
|
|
4141
|
+
case "prerender":
|
|
4142
|
+
case "prerender-ppr":
|
|
4143
|
+
case "prerender-legacy":
|
|
4144
|
+
if (process.env.NODE_ENV === "development" && !(workStore == null ? void 0 : workStore.isPrefetchRequest)) {
|
|
4145
|
+
const route = workStore == null ? void 0 : workStore.route;
|
|
4146
|
+
return createExoticDraftModeWithDevWarnings(null, route);
|
|
4147
|
+
} else {
|
|
4148
|
+
return createExoticDraftMode(null);
|
|
4149
|
+
}
|
|
4150
|
+
default:
|
|
4151
|
+
const _exhaustiveCheck = workUnitStore;
|
|
4152
|
+
return _exhaustiveCheck;
|
|
4153
|
+
}
|
|
4154
|
+
}
|
|
4155
|
+
function createOrGetCachedExoticDraftMode(draftModeProvider, workStore) {
|
|
4156
|
+
const cachedDraftMode = CachedDraftModes.get(draftMode);
|
|
4157
|
+
if (cachedDraftMode) {
|
|
4158
|
+
return cachedDraftMode;
|
|
4159
|
+
}
|
|
4160
|
+
let promise;
|
|
4161
|
+
if (process.env.NODE_ENV === "development" && !(workStore == null ? void 0 : workStore.isPrefetchRequest)) {
|
|
4162
|
+
const route = workStore == null ? void 0 : workStore.route;
|
|
4163
|
+
promise = createExoticDraftModeWithDevWarnings(draftModeProvider, route);
|
|
4164
|
+
} else {
|
|
4165
|
+
promise = createExoticDraftMode(draftModeProvider);
|
|
4166
|
+
}
|
|
4167
|
+
CachedDraftModes.set(draftModeProvider, promise);
|
|
4168
|
+
return promise;
|
|
4169
|
+
}
|
|
4170
|
+
var CachedDraftModes = /* @__PURE__ */ new WeakMap();
|
|
4171
|
+
function createExoticDraftMode(underlyingProvider) {
|
|
4172
|
+
const instance = new DraftMode(underlyingProvider);
|
|
4173
|
+
const promise = Promise.resolve(instance);
|
|
4174
|
+
Object.defineProperty(promise, "isEnabled", {
|
|
4175
|
+
get() {
|
|
4176
|
+
return instance.isEnabled;
|
|
4177
|
+
},
|
|
4178
|
+
set(newValue) {
|
|
4179
|
+
Object.defineProperty(promise, "isEnabled", {
|
|
4180
|
+
value: newValue,
|
|
4181
|
+
writable: true,
|
|
4182
|
+
enumerable: true
|
|
4183
|
+
});
|
|
4184
|
+
},
|
|
4185
|
+
enumerable: true,
|
|
4186
|
+
configurable: true
|
|
4187
|
+
});
|
|
4188
|
+
promise.enable = instance.enable.bind(instance);
|
|
4189
|
+
promise.disable = instance.disable.bind(instance);
|
|
4190
|
+
return promise;
|
|
4191
|
+
}
|
|
4192
|
+
function createExoticDraftModeWithDevWarnings(underlyingProvider, route) {
|
|
4193
|
+
const instance = new DraftMode(underlyingProvider);
|
|
4194
|
+
const promise = Promise.resolve(instance);
|
|
4195
|
+
Object.defineProperty(promise, "isEnabled", {
|
|
4196
|
+
get() {
|
|
4197
|
+
const expression = "`draftMode().isEnabled`";
|
|
4198
|
+
syncIODev(route, expression);
|
|
4199
|
+
return instance.isEnabled;
|
|
4200
|
+
},
|
|
4201
|
+
set(newValue) {
|
|
4202
|
+
Object.defineProperty(promise, "isEnabled", {
|
|
4203
|
+
value: newValue,
|
|
4204
|
+
writable: true,
|
|
4205
|
+
enumerable: true
|
|
4206
|
+
});
|
|
4207
|
+
},
|
|
4208
|
+
enumerable: true,
|
|
4209
|
+
configurable: true
|
|
4210
|
+
});
|
|
4211
|
+
Object.defineProperty(promise, "enable", {
|
|
4212
|
+
value: function get() {
|
|
4213
|
+
const expression = "`draftMode().enable()`";
|
|
4214
|
+
syncIODev(route, expression);
|
|
4215
|
+
return instance.enable.apply(instance, arguments);
|
|
4216
|
+
}
|
|
4217
|
+
});
|
|
4218
|
+
Object.defineProperty(promise, "disable", {
|
|
4219
|
+
value: function get() {
|
|
4220
|
+
const expression = "`draftMode().disable()`";
|
|
4221
|
+
syncIODev(route, expression);
|
|
4222
|
+
return instance.disable.apply(instance, arguments);
|
|
4223
|
+
}
|
|
4224
|
+
});
|
|
4225
|
+
return promise;
|
|
4226
|
+
}
|
|
4227
|
+
var DraftMode = class {
|
|
4228
|
+
constructor(provider) {
|
|
4229
|
+
this._provider = provider;
|
|
4230
|
+
}
|
|
4231
|
+
get isEnabled() {
|
|
4232
|
+
if (this._provider !== null) {
|
|
4233
|
+
return this._provider.isEnabled;
|
|
4234
|
+
}
|
|
4235
|
+
return false;
|
|
4236
|
+
}
|
|
4237
|
+
enable() {
|
|
4238
|
+
trackDynamicDraftMode("draftMode().enable()");
|
|
4239
|
+
if (this._provider !== null) {
|
|
4240
|
+
this._provider.enable();
|
|
4241
|
+
}
|
|
4242
|
+
}
|
|
4243
|
+
disable() {
|
|
4244
|
+
trackDynamicDraftMode("draftMode().disable()");
|
|
4245
|
+
if (this._provider !== null) {
|
|
4246
|
+
this._provider.disable();
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
};
|
|
4250
|
+
function syncIODev(route, expression) {
|
|
4251
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
4252
|
+
if (workUnitStore && workUnitStore.type === "request" && workUnitStore.prerenderPhase === true) {
|
|
4253
|
+
const requestStore = workUnitStore;
|
|
4254
|
+
(0, _dynamicrendering.trackSynchronousRequestDataAccessInDev)(requestStore);
|
|
4255
|
+
}
|
|
4256
|
+
warnForSyncAccess(route, expression);
|
|
4257
|
+
}
|
|
4258
|
+
var warnForSyncAccess = (0, _creatededupedbycallsiteservererrorlogger.createDedupedByCallsiteServerErrorLoggerDev)(createDraftModeAccessError);
|
|
4259
|
+
function createDraftModeAccessError(route, expression) {
|
|
4260
|
+
const prefix = route ? `Route "${route}" ` : "This route ";
|
|
4261
|
+
return Object.defineProperty(new Error(`${prefix}used ${expression}. \`draftMode()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
|
|
4262
|
+
value: "E377",
|
|
4263
|
+
enumerable: false,
|
|
4264
|
+
configurable: true
|
|
4265
|
+
});
|
|
4266
|
+
}
|
|
4267
|
+
function trackDynamicDraftMode(expression) {
|
|
4268
|
+
const store = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
4269
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
4270
|
+
if (store) {
|
|
4271
|
+
if (workUnitStore) {
|
|
4272
|
+
if (workUnitStore.type === "cache") {
|
|
4273
|
+
throw Object.defineProperty(new Error(`Route ${store.route} used "${expression}" inside "use cache". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
4274
|
+
value: "E246",
|
|
4275
|
+
enumerable: false,
|
|
4276
|
+
configurable: true
|
|
4277
|
+
});
|
|
4278
|
+
} else if (workUnitStore.type === "unstable-cache") {
|
|
4279
|
+
throw Object.defineProperty(new Error(`Route ${store.route} used "${expression}" inside a function cached with "unstable_cache(...)". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
4280
|
+
value: "E259",
|
|
4281
|
+
enumerable: false,
|
|
4282
|
+
configurable: true
|
|
4283
|
+
});
|
|
4284
|
+
} else if (workUnitStore.phase === "after") {
|
|
4285
|
+
throw Object.defineProperty(new Error(`Route ${store.route} used "${expression}" inside \`after\`. The enabled status of draftMode can be read inside \`after\` but you cannot enable or disable draftMode. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
|
|
4286
|
+
value: "E348",
|
|
4287
|
+
enumerable: false,
|
|
4288
|
+
configurable: true
|
|
4289
|
+
});
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
if (store.dynamicShouldError) {
|
|
4293
|
+
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", {
|
|
4294
|
+
value: "E553",
|
|
4295
|
+
enumerable: false,
|
|
4296
|
+
configurable: true
|
|
4297
|
+
});
|
|
4298
|
+
}
|
|
4299
|
+
if (workUnitStore) {
|
|
4300
|
+
if (workUnitStore.type === "prerender") {
|
|
4301
|
+
const error = Object.defineProperty(new Error(`Route ${store.route} used ${expression} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`), "__NEXT_ERROR_CODE", {
|
|
4302
|
+
value: "E126",
|
|
4303
|
+
enumerable: false,
|
|
4304
|
+
configurable: true
|
|
4305
|
+
});
|
|
4306
|
+
(0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(store.route, expression, error, workUnitStore);
|
|
4307
|
+
} else if (workUnitStore.type === "prerender-ppr") {
|
|
4308
|
+
(0, _dynamicrendering.postponeWithTracking)(store.route, expression, workUnitStore.dynamicTracking);
|
|
4309
|
+
} else if (workUnitStore.type === "prerender-legacy") {
|
|
4310
|
+
workUnitStore.revalidate = 0;
|
|
4311
|
+
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", {
|
|
4312
|
+
value: "E558",
|
|
4313
|
+
enumerable: false,
|
|
4314
|
+
configurable: true
|
|
4315
|
+
});
|
|
4316
|
+
store.dynamicUsageDescription = expression;
|
|
4317
|
+
store.dynamicUsageStack = err.stack;
|
|
4318
|
+
throw err;
|
|
4319
|
+
} else if (process.env.NODE_ENV === "development" && workUnitStore && workUnitStore.type === "request") {
|
|
4320
|
+
workUnitStore.usedDynamic = true;
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
4324
|
+
}
|
|
4325
|
+
}
|
|
4326
|
+
});
|
|
4327
|
+
|
|
4328
|
+
// ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/headers.js
|
|
4329
|
+
var require_headers3 = __commonJS({
|
|
4330
|
+
"../../node_modules/.pnpm/next@15.3.4_@babel+core@7.26.10_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/headers.js"(exports, module) {
|
|
4331
|
+
module.exports.cookies = require_cookies3().cookies;
|
|
4332
|
+
module.exports.headers = require_headers2().headers;
|
|
4333
|
+
module.exports.draftMode = require_draft_mode().draftMode;
|
|
4334
|
+
}
|
|
4335
|
+
});
|
|
4336
|
+
|
|
14
4337
|
// src/http-client/cookie/cookie-client.ts
|
|
15
4338
|
var cookieClient = {
|
|
16
4339
|
getCookie(name) {
|
|
@@ -48,6 +4371,68 @@ var cookieClient = {
|
|
|
48
4371
|
cookieClient.setCookie(name, "", { ...options, expires: -1 });
|
|
49
4372
|
}
|
|
50
4373
|
};
|
|
4374
|
+
var useDebugStore = zustand.create()((set) => ({
|
|
4375
|
+
requests: [],
|
|
4376
|
+
responses: [],
|
|
4377
|
+
errors: [],
|
|
4378
|
+
addRequest: (request) => set((state) => ({ requests: [...state.requests, request] })),
|
|
4379
|
+
addResponse: (response) => set((state) => ({ responses: [...state.responses, response] })),
|
|
4380
|
+
addError: (error) => set((state) => ({ errors: [...state.errors, error] })),
|
|
4381
|
+
clear: () => set({ requests: [], responses: [], errors: [] })
|
|
4382
|
+
}));
|
|
4383
|
+
|
|
4384
|
+
// src/http-client/debug/interceptor-function.ts
|
|
4385
|
+
function addRequestLog(config) {
|
|
4386
|
+
const env = salesFrontendUtils.getEnvironmentFromHostname(location.hostname);
|
|
4387
|
+
if (env !== "prd") {
|
|
4388
|
+
const { addRequest } = useDebugStore.getState();
|
|
4389
|
+
const startTime = Date.now();
|
|
4390
|
+
addRequest({
|
|
4391
|
+
url: config.url || "",
|
|
4392
|
+
method: config.method || "",
|
|
4393
|
+
headers: config.headers,
|
|
4394
|
+
params: config.params,
|
|
4395
|
+
data: config.data,
|
|
4396
|
+
startTime
|
|
4397
|
+
});
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
function addResponseLog(response) {
|
|
4401
|
+
const env = salesFrontendUtils.getEnvironmentFromHostname(location.hostname);
|
|
4402
|
+
if (env !== "prd") {
|
|
4403
|
+
const { addResponse } = useDebugStore.getState();
|
|
4404
|
+
const { config } = response;
|
|
4405
|
+
addResponse({
|
|
4406
|
+
url: config.url || "",
|
|
4407
|
+
method: config.method || "",
|
|
4408
|
+
status: response.status,
|
|
4409
|
+
statusText: response.statusText,
|
|
4410
|
+
headers: response.headers,
|
|
4411
|
+
data: response.data
|
|
4412
|
+
});
|
|
4413
|
+
}
|
|
4414
|
+
}
|
|
4415
|
+
function addErrorLog(error) {
|
|
4416
|
+
const env = salesFrontendUtils.getEnvironmentFromHostname(location.hostname);
|
|
4417
|
+
if (env !== "prd") {
|
|
4418
|
+
const { addError } = useDebugStore.getState();
|
|
4419
|
+
const { config } = error;
|
|
4420
|
+
addError({
|
|
4421
|
+
url: config?.url || "",
|
|
4422
|
+
method: config?.method || "",
|
|
4423
|
+
message: error.message,
|
|
4424
|
+
config: error.config,
|
|
4425
|
+
response: error.response ? {
|
|
4426
|
+
url: error.response.config?.url || "",
|
|
4427
|
+
method: error.response.config?.method || "",
|
|
4428
|
+
status: error.response.status,
|
|
4429
|
+
statusText: error.response.statusText,
|
|
4430
|
+
headers: error.response.headers,
|
|
4431
|
+
data: error.response.data
|
|
4432
|
+
} : void 0
|
|
4433
|
+
});
|
|
4434
|
+
}
|
|
4435
|
+
}
|
|
51
4436
|
|
|
52
4437
|
// src/http-client/header/header.types.ts
|
|
53
4438
|
var customHeaderNames = [
|
|
@@ -141,12 +4526,13 @@ var HttpClientAxios = class {
|
|
|
141
4526
|
});
|
|
142
4527
|
this.api.interceptors.request.use(
|
|
143
4528
|
async (config2) => {
|
|
4529
|
+
addRequestLog(config2);
|
|
144
4530
|
const authClient = new AuthClient();
|
|
145
4531
|
const accessToken = await authClient.getAT();
|
|
146
4532
|
if (accessToken) {
|
|
147
4533
|
config2.headers.Authorization = `Bearer ${accessToken}`;
|
|
148
4534
|
}
|
|
149
|
-
if (
|
|
4535
|
+
if (salesFrontendUtils.getEnvironmentFromHostname(location.hostname) === "local") {
|
|
150
4536
|
console.log("localhost header setting!");
|
|
151
4537
|
config2.headers["x-channel-appversion"] = getOrSetCookie("x-channel-appversion", "3.1");
|
|
152
4538
|
config2.headers["x-channel-deviceid"] = getOrSetCookie("x-channel-deviceid", "deviceid");
|
|
@@ -176,12 +4562,14 @@ var HttpClientAxios = class {
|
|
|
176
4562
|
);
|
|
177
4563
|
this.api.interceptors.response.use(
|
|
178
4564
|
(response) => {
|
|
4565
|
+
addResponseLog(response);
|
|
179
4566
|
if (response.data.isSuccess === false) {
|
|
180
4567
|
return Promise.reject(response);
|
|
181
4568
|
}
|
|
182
4569
|
return response;
|
|
183
4570
|
},
|
|
184
4571
|
async (error) => {
|
|
4572
|
+
addErrorLog(error);
|
|
185
4573
|
const originalRequest = error.config;
|
|
186
4574
|
if (error.response?.status === 401) {
|
|
187
4575
|
isRefreshed = false;
|
|
@@ -208,10 +4596,10 @@ var HttpClientAxios = class {
|
|
|
208
4596
|
}
|
|
209
4597
|
);
|
|
210
4598
|
}
|
|
211
|
-
setHeaders(
|
|
4599
|
+
setHeaders(headers2) {
|
|
212
4600
|
this.headers = {
|
|
213
4601
|
...this.headers,
|
|
214
|
-
...
|
|
4602
|
+
...headers2
|
|
215
4603
|
};
|
|
216
4604
|
}
|
|
217
4605
|
};
|
|
@@ -223,7 +4611,7 @@ var AuthClient = class {
|
|
|
223
4611
|
* @returns boolean
|
|
224
4612
|
*/
|
|
225
4613
|
isApp() {
|
|
226
|
-
return
|
|
4614
|
+
return salesFrontendUtils.isDspWebview();
|
|
227
4615
|
}
|
|
228
4616
|
/**
|
|
229
4617
|
*
|
|
@@ -231,9 +4619,9 @@ var AuthClient = class {
|
|
|
231
4619
|
* 주소가 localhost인 경우 cookie에서 'AT' 를 읽어온다.
|
|
232
4620
|
*/
|
|
233
4621
|
async getAT() {
|
|
234
|
-
if (
|
|
4622
|
+
if (salesFrontendUtils.getEnvironmentFromHostname(location.hostname) === "local") {
|
|
235
4623
|
console.log("localhost token setting!");
|
|
236
|
-
return cookieClient.getCookie("
|
|
4624
|
+
return cookieClient.getCookie("accessToken");
|
|
237
4625
|
}
|
|
238
4626
|
if (this.isApp()) {
|
|
239
4627
|
return "";
|
|
@@ -292,7 +4680,253 @@ var useSearchModalAddressQuery = (params, options, config) => {
|
|
|
292
4680
|
});
|
|
293
4681
|
};
|
|
294
4682
|
|
|
4683
|
+
// src/http-client/cookie/cookie-server.ts
|
|
4684
|
+
var import_headers = __toESM(require_headers3());
|
|
4685
|
+
var cookieServer = {
|
|
4686
|
+
async getCookie(name) {
|
|
4687
|
+
const cookieStore = await (0, import_headers.cookies)();
|
|
4688
|
+
return cookieStore.get(name)?.value || "";
|
|
4689
|
+
},
|
|
4690
|
+
async setCookie(name, value, options) {
|
|
4691
|
+
const cookieStore = await (0, import_headers.cookies)();
|
|
4692
|
+
cookieStore.set(name, value, options);
|
|
4693
|
+
},
|
|
4694
|
+
async deleteCookie(name) {
|
|
4695
|
+
const cookieStore = await (0, import_headers.cookies)();
|
|
4696
|
+
cookieStore.delete(name);
|
|
4697
|
+
}
|
|
4698
|
+
};
|
|
4699
|
+
|
|
4700
|
+
// src/http-client/header/header-manager-async.ts
|
|
4701
|
+
__toESM(require_headers3());
|
|
4702
|
+
var HeaderManagerAsync = class {
|
|
4703
|
+
constructor(getter, setter) {
|
|
4704
|
+
__publicField(this, "getter");
|
|
4705
|
+
__publicField(this, "setter");
|
|
4706
|
+
this.getter = getter;
|
|
4707
|
+
this.setter = setter;
|
|
4708
|
+
}
|
|
4709
|
+
/**
|
|
4710
|
+
* 커스텀 헤더를 비동기적으로 설정합니다.
|
|
4711
|
+
*/
|
|
4712
|
+
async setCustomHeaders() {
|
|
4713
|
+
const headerPromises = customHeaderNames.map(async (headerName) => {
|
|
4714
|
+
const customHeaderKey = `X-Channel-${headerName}`;
|
|
4715
|
+
const headerValue = await Promise.resolve(this.getter(customHeaderKey));
|
|
4716
|
+
if (headerValue) {
|
|
4717
|
+
await Promise.resolve(this.setter(customHeaderKey, headerValue));
|
|
4718
|
+
}
|
|
4719
|
+
});
|
|
4720
|
+
await Promise.all(headerPromises);
|
|
4721
|
+
}
|
|
4722
|
+
/**
|
|
4723
|
+
* 인증 토큰을 비동기적으로 설정합니다.
|
|
4724
|
+
*/
|
|
4725
|
+
async setAuthToken() {
|
|
4726
|
+
const token = await Promise.resolve(this.getter(AT));
|
|
4727
|
+
if (token) {
|
|
4728
|
+
await Promise.resolve(this.setter("Authorization", `Bearer ${token}`));
|
|
4729
|
+
}
|
|
4730
|
+
}
|
|
4731
|
+
/**
|
|
4732
|
+
* 모든 헤더를 비동기적으로 설정합니다.
|
|
4733
|
+
*/
|
|
4734
|
+
async setAllHeaders() {
|
|
4735
|
+
await Promise.all([this.setCustomHeaders(), this.setAuthToken()]);
|
|
4736
|
+
}
|
|
4737
|
+
};
|
|
4738
|
+
|
|
4739
|
+
// src/http-client/fetch/fetch-instance.ts
|
|
4740
|
+
var HttpError = class extends Error {
|
|
4741
|
+
constructor(response, data) {
|
|
4742
|
+
super(`Request failed with status ${response.status} ${response.statusText}`);
|
|
4743
|
+
__publicField(this, "response");
|
|
4744
|
+
__publicField(this, "data");
|
|
4745
|
+
this.name = "HttpError";
|
|
4746
|
+
this.response = response;
|
|
4747
|
+
this.data = data;
|
|
4748
|
+
}
|
|
4749
|
+
};
|
|
4750
|
+
var InterceptorManager = class {
|
|
4751
|
+
constructor() {
|
|
4752
|
+
__publicField(this, "handlers", []);
|
|
4753
|
+
}
|
|
4754
|
+
/**
|
|
4755
|
+
* 체인에 새 인터셉터를 추가
|
|
4756
|
+
* @param onFulfilled - 프로미스가 이행되었을 때 호출할 함수
|
|
4757
|
+
* @param onRejected - 프로미스가 거부되었을 때 호출할 함수
|
|
4758
|
+
* @returns 인터셉터의 ID이며, 나중에 제거하는 데 사용
|
|
4759
|
+
*/
|
|
4760
|
+
use(onFulfilled, onRejected) {
|
|
4761
|
+
this.handlers.push({ onFulfilled, onRejected });
|
|
4762
|
+
return this.handlers.length - 1;
|
|
4763
|
+
}
|
|
4764
|
+
/**
|
|
4765
|
+
* ID를 사용하여 체인에서 인터셉터를 제거합니다.
|
|
4766
|
+
* @param id - 제거할 인터셉터의 ID입니다.
|
|
4767
|
+
*/
|
|
4768
|
+
eject(id) {
|
|
4769
|
+
if (this.handlers[id]) {
|
|
4770
|
+
this.handlers[id] = null;
|
|
4771
|
+
}
|
|
4772
|
+
}
|
|
4773
|
+
/**
|
|
4774
|
+
* 주어진 프로미스에 대해 인터셉터 체인을 실행합니다.
|
|
4775
|
+
* @param promise - 체인을 시작할 초기 프로미스입니다.
|
|
4776
|
+
* @returns 전체 체인이 실행된 후 확인되는 새 프로미스입니다.
|
|
4777
|
+
*/
|
|
4778
|
+
executeChain(promise) {
|
|
4779
|
+
let chain = promise;
|
|
4780
|
+
this.handlers.forEach((handler) => {
|
|
4781
|
+
if (handler) {
|
|
4782
|
+
chain = chain.then(handler.onFulfilled, handler.onRejected);
|
|
4783
|
+
}
|
|
4784
|
+
});
|
|
4785
|
+
return chain;
|
|
4786
|
+
}
|
|
4787
|
+
};
|
|
4788
|
+
var FetchInstance = class {
|
|
4789
|
+
constructor(config = {}) {
|
|
4790
|
+
__publicField(this, "defaults");
|
|
4791
|
+
__publicField(this, "interceptors");
|
|
4792
|
+
this.defaults = config;
|
|
4793
|
+
this.interceptors = {
|
|
4794
|
+
request: new InterceptorManager(),
|
|
4795
|
+
response: new InterceptorManager()
|
|
4796
|
+
};
|
|
4797
|
+
}
|
|
4798
|
+
/**
|
|
4799
|
+
* 인터셉터를 적용하고 실제 fetch 호출을 수행
|
|
4800
|
+
* @param config - 요청 설정
|
|
4801
|
+
*/
|
|
4802
|
+
async request(config) {
|
|
4803
|
+
let requestConfig = { ...this.defaults, ...config };
|
|
4804
|
+
const requestChain = this.interceptors.request.executeChain(Promise.resolve(requestConfig));
|
|
4805
|
+
requestConfig = await requestChain;
|
|
4806
|
+
const { baseURL = "", params, data, ...fetchOptions } = requestConfig;
|
|
4807
|
+
const headers2 = new Headers({ ...this.defaults.headers, ...requestConfig.headers });
|
|
4808
|
+
const url = new URL(`${baseURL}${requestConfig.url || ""}`);
|
|
4809
|
+
if (params) {
|
|
4810
|
+
Object.keys(params).forEach((key) => {
|
|
4811
|
+
const value = params[key];
|
|
4812
|
+
if (value !== void 0 && value !== null) {
|
|
4813
|
+
url.searchParams.append(key, String(value));
|
|
4814
|
+
}
|
|
4815
|
+
});
|
|
4816
|
+
}
|
|
4817
|
+
let body = void 0;
|
|
4818
|
+
if (data) {
|
|
4819
|
+
if (typeof data === "object" && !(data instanceof FormData) && !(data instanceof Blob)) {
|
|
4820
|
+
body = JSON.stringify(data);
|
|
4821
|
+
if (!headers2.has("Content-Type")) {
|
|
4822
|
+
headers2.set("Content-Type", "application/json");
|
|
4823
|
+
}
|
|
4824
|
+
} else {
|
|
4825
|
+
body = data;
|
|
4826
|
+
}
|
|
4827
|
+
}
|
|
4828
|
+
const fetchPromise = fetch(url.toString(), { ...fetchOptions, headers: headers2, body });
|
|
4829
|
+
const response = await this.interceptors.response.executeChain(fetchPromise);
|
|
4830
|
+
if (!response.ok) {
|
|
4831
|
+
let responseData2 = null;
|
|
4832
|
+
try {
|
|
4833
|
+
responseData2 = await response.clone().json();
|
|
4834
|
+
} catch {
|
|
4835
|
+
}
|
|
4836
|
+
throw new HttpError(response, responseData2);
|
|
4837
|
+
}
|
|
4838
|
+
let responseData;
|
|
4839
|
+
try {
|
|
4840
|
+
responseData = await response.json();
|
|
4841
|
+
} catch {
|
|
4842
|
+
responseData = null;
|
|
4843
|
+
}
|
|
4844
|
+
return { data: responseData, response };
|
|
4845
|
+
}
|
|
4846
|
+
// ===========================================================================
|
|
4847
|
+
// 메서드 (GET, POST, PUT, DELETE)
|
|
4848
|
+
// ===========================================================================
|
|
4849
|
+
get(url, config = {}) {
|
|
4850
|
+
return this.request({ ...config, url, method: "GET" });
|
|
4851
|
+
}
|
|
4852
|
+
post(url, data, config = {}) {
|
|
4853
|
+
return this.request({ ...config, url, method: "POST", data });
|
|
4854
|
+
}
|
|
4855
|
+
put(url, data, config = {}) {
|
|
4856
|
+
return this.request({ ...config, url, method: "PUT", data });
|
|
4857
|
+
}
|
|
4858
|
+
delete(url, config = {}) {
|
|
4859
|
+
return this.request({ ...config, url, method: "DELETE" });
|
|
4860
|
+
}
|
|
4861
|
+
};
|
|
4862
|
+
|
|
4863
|
+
// src/http-client/fetch/http-client-fetch.ts
|
|
4864
|
+
var HttpClientFetch = class extends FetchInstance {
|
|
4865
|
+
constructor(config) {
|
|
4866
|
+
super(config);
|
|
4867
|
+
__publicField(this, "headerManager");
|
|
4868
|
+
__publicField(this, "headers", {});
|
|
4869
|
+
const getter = (key) => {
|
|
4870
|
+
return cookieServer.getCookie(key);
|
|
4871
|
+
};
|
|
4872
|
+
const setter = (key, value) => {
|
|
4873
|
+
if (config?.headers) {
|
|
4874
|
+
config.headers[key] = value;
|
|
4875
|
+
}
|
|
4876
|
+
};
|
|
4877
|
+
this.headerManager = new HeaderManagerAsync(getter, setter);
|
|
4878
|
+
this.interceptors.request.use((config2) => {
|
|
4879
|
+
const headerEntries = Object.entries(this.headers);
|
|
4880
|
+
headerEntries.forEach(([key, value]) => {
|
|
4881
|
+
if (config2?.headers) {
|
|
4882
|
+
config2.headers = {
|
|
4883
|
+
...config2.headers,
|
|
4884
|
+
[key]: value
|
|
4885
|
+
};
|
|
4886
|
+
}
|
|
4887
|
+
});
|
|
4888
|
+
return config2;
|
|
4889
|
+
});
|
|
4890
|
+
}
|
|
4891
|
+
};
|
|
4892
|
+
|
|
4893
|
+
// src/http-methods/fp-login/login-dsp.service.ts
|
|
4894
|
+
var getLoginMethod = async (userId) => {
|
|
4895
|
+
const testAPI = "https://nxl-dsp-stg.hanwhalife.com/api/dat/v1/post/login";
|
|
4896
|
+
const httpClient = new HttpClientFetch();
|
|
4897
|
+
const res = await httpClient.post(testAPI, {
|
|
4898
|
+
userId,
|
|
4899
|
+
channelType: "DSP_TABLET"
|
|
4900
|
+
});
|
|
4901
|
+
return res.data;
|
|
4902
|
+
};
|
|
4903
|
+
/*! Bundled license information:
|
|
4904
|
+
|
|
4905
|
+
react/cjs/react.production.js:
|
|
4906
|
+
(**
|
|
4907
|
+
* @license React
|
|
4908
|
+
* react.production.js
|
|
4909
|
+
*
|
|
4910
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4911
|
+
*
|
|
4912
|
+
* This source code is licensed under the MIT license found in the
|
|
4913
|
+
* LICENSE file in the root directory of this source tree.
|
|
4914
|
+
*)
|
|
4915
|
+
|
|
4916
|
+
react/cjs/react.development.js:
|
|
4917
|
+
(**
|
|
4918
|
+
* @license React
|
|
4919
|
+
* react.development.js
|
|
4920
|
+
*
|
|
4921
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4922
|
+
*
|
|
4923
|
+
* This source code is licensed under the MIT license found in the
|
|
4924
|
+
* LICENSE file in the root directory of this source tree.
|
|
4925
|
+
*)
|
|
4926
|
+
*/
|
|
4927
|
+
|
|
295
4928
|
exports.getAddressMethod = getAddressMethod;
|
|
4929
|
+
exports.getLoginMethod = getLoginMethod;
|
|
296
4930
|
exports.getTestMethod = getTestMethod;
|
|
297
4931
|
exports.useSearchModalAddressQuery = useSearchModalAddressQuery;
|
|
298
4932
|
//# sourceMappingURL=method.cjs.map
|