@golocalinteractive/golocal-cloud-wrapper 0.0.101
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/README.md +329 -0
- package/dist/components/app-header.d.ts +6 -0
- package/dist/components/app-header.d.ts.map +1 -0
- package/dist/components/app-sidebar.d.ts +4 -0
- package/dist/components/app-sidebar.d.ts.map +1 -0
- package/dist/components/credential-form.d.ts +11 -0
- package/dist/components/credential-form.d.ts.map +1 -0
- package/dist/components/profile-dropdown.d.ts +6 -0
- package/dist/components/profile-dropdown.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/collapsible-section.d.ts +14 -0
- package/dist/components/ui/collapsible-section.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +14 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +6 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/sheet.d.ts +26 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sidebar.d.ts +70 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/skeleton.d.ts +4 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/vendor-connection-card.d.ts +15 -0
- package/dist/components/vendor-connection-card.d.ts.map +1 -0
- package/dist/components/vendor-connections.d.ts +17 -0
- package/dist/components/vendor-connections.d.ts.map +1 -0
- package/dist/components/vendor-selection.d.ts +8 -0
- package/dist/components/vendor-selection.d.ts.map +1 -0
- package/dist/context/PermissionsContext.d.ts +25 -0
- package/dist/context/PermissionsContext.d.ts.map +1 -0
- package/dist/enums/vendors.d.ts +15 -0
- package/dist/enums/vendors.d.ts.map +1 -0
- package/dist/files/geist-cyrillic-400-normal.woff +0 -0
- package/dist/files/geist-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/geist-latin-400-normal.woff +0 -0
- package/dist/files/geist-latin-400-normal.woff2 +0 -0
- package/dist/files/geist-latin-ext-400-normal.woff +0 -0
- package/dist/files/geist-latin-ext-400-normal.woff2 +0 -0
- package/dist/golocal-cloud-wrapper.cjs.js +291 -0
- package/dist/golocal-cloud-wrapper.css +1 -0
- package/dist/golocal-cloud-wrapper.es.js +10862 -0
- package/dist/hooks/use-active-route.d.ts +5 -0
- package/dist/hooks/use-active-route.d.ts.map +1 -0
- package/dist/hooks/use-active-route.test.d.ts +2 -0
- package/dist/hooks/use-active-route.test.d.ts.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-navigation-config.d.ts +7 -0
- package/dist/hooks/use-navigation-config.d.ts.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/auth/client.d.ts +5 -0
- package/dist/lib/auth/client.d.ts.map +1 -0
- package/dist/lib/auth/index.d.ts +2 -0
- package/dist/lib/auth/index.d.ts.map +1 -0
- package/dist/lib/auth/middleware.d.ts +5 -0
- package/dist/lib/auth/middleware.d.ts.map +1 -0
- package/dist/lib/auth/permissions.d.ts +10 -0
- package/dist/lib/auth/permissions.d.ts.map +1 -0
- package/dist/lib/auth/server.d.ts +7 -0
- package/dist/lib/auth/server.d.ts.map +1 -0
- package/dist/lib/auth/token.d.ts +2 -0
- package/dist/lib/auth/token.d.ts.map +1 -0
- package/dist/lib/icon-map.d.ts +32 -0
- package/dist/lib/icon-map.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/vendor-form-config.d.ts +20 -0
- package/dist/lib/vendor-form-config.d.ts.map +1 -0
- package/dist/lib/vendor-info.d.ts +9 -0
- package/dist/lib/vendor-info.d.ts.map +1 -0
- package/dist/providers/GLICloudProvider.d.ts +19 -0
- package/dist/providers/GLICloudProvider.d.ts.map +1 -0
- package/dist/server.cjs.js +11 -0
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.es.js +2795 -0
- package/dist/token-CPL6JoNm.js +25 -0
- package/dist/token-OmUSTZxZ.cjs +1 -0
- package/dist/types/credentials.d.ts +41 -0
- package/dist/types/credentials.d.ts.map +1 -0
- package/dist/types/navigation.d.ts +33 -0
- package/dist/types/navigation.d.ts.map +1 -0
- package/package.json +91 -0
- package/tailwind.preset.js +99 -0
|
@@ -0,0 +1,2795 @@
|
|
|
1
|
+
import { jwtDecode as vr } from "jwt-decode";
|
|
2
|
+
import { g as br } from "./token-CPL6JoNm.js";
|
|
3
|
+
import { a as mn } from "./token-CPL6JoNm.js";
|
|
4
|
+
import Ar from "react";
|
|
5
|
+
function Pr(r) {
|
|
6
|
+
return br(r);
|
|
7
|
+
}
|
|
8
|
+
function ln() {
|
|
9
|
+
const {
|
|
10
|
+
AUTH0_DOMAIN: r,
|
|
11
|
+
AUTH0_CLIENT_ID: o,
|
|
12
|
+
AUTH0_CLIENT_SECRET: l,
|
|
13
|
+
AUTH0_SECRET: u,
|
|
14
|
+
AUTH0_BASE_URL: s,
|
|
15
|
+
APP_BASE_URL: _,
|
|
16
|
+
AUTH0_AUDIENCE: n
|
|
17
|
+
} = process.env, e = n ? { audience: n } : void 0;
|
|
18
|
+
return {
|
|
19
|
+
...r ? { domain: r } : {},
|
|
20
|
+
...o ? { clientId: o } : {},
|
|
21
|
+
...l ? { clientSecret: l } : {},
|
|
22
|
+
...u ? { secret: u } : {},
|
|
23
|
+
...s || _ ? { appBaseUrl: s || _ } : {},
|
|
24
|
+
...e ? { authorizationParameters: e } : {}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
async function dn(r) {
|
|
28
|
+
var o, l, u, s, _, n;
|
|
29
|
+
try {
|
|
30
|
+
const a = await Pr(r).getAccessToken(), h = a == null ? void 0 : a.token, c = (o = vr(h)["https://cloud.golocal.com/org_metadata"]) == null ? void 0 : o.metadata;
|
|
31
|
+
return {
|
|
32
|
+
essentialInsights: ((l = c == null ? void 0 : c["essential-insights"]) == null ? void 0 : l.enabled) === !0,
|
|
33
|
+
organic: ((u = c == null ? void 0 : c.organic) == null ? void 0 : u.enabled) === !0,
|
|
34
|
+
paid: ((s = c == null ? void 0 : c.paid) == null ? void 0 : s.enabled) === !0,
|
|
35
|
+
web: ((_ = c == null ? void 0 : c.web) == null ? void 0 : _.enabled) === !0,
|
|
36
|
+
priceMonster: ((n = c == null ? void 0 : c["price-monster"]) == null ? void 0 : n.enabled) === !0,
|
|
37
|
+
se_company_id: (c == null ? void 0 : c.se_company_id) || null
|
|
38
|
+
};
|
|
39
|
+
} catch (e) {
|
|
40
|
+
return console.error(
|
|
41
|
+
"[getServerSidePermissions] Error getting user permissions:",
|
|
42
|
+
e
|
|
43
|
+
), {
|
|
44
|
+
essentialInsights: !1,
|
|
45
|
+
organic: !1,
|
|
46
|
+
paid: !1,
|
|
47
|
+
web: !1,
|
|
48
|
+
priceMonster: !1,
|
|
49
|
+
se_company_id: null
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
var me = { exports: {} }, Ae = {}, Pe = {}, Se = {}, vt;
|
|
54
|
+
function Sr() {
|
|
55
|
+
return vt || (vt = 1, function(r) {
|
|
56
|
+
Object.defineProperty(r, "__esModule", {
|
|
57
|
+
value: !0
|
|
58
|
+
}), Object.defineProperty(r, "detectDomainLocale", {
|
|
59
|
+
enumerable: !0,
|
|
60
|
+
get: function() {
|
|
61
|
+
return o;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
function o(l, u, s) {
|
|
65
|
+
if (l) {
|
|
66
|
+
s && (s = s.toLowerCase());
|
|
67
|
+
for (const e of l) {
|
|
68
|
+
var _, n;
|
|
69
|
+
const a = (_ = e.domain) == null ? void 0 : _.split(":", 1)[0].toLowerCase();
|
|
70
|
+
if (u === a || s === e.defaultLocale.toLowerCase() || (n = e.locales) != null && n.some((h) => h.toLowerCase() === s))
|
|
71
|
+
return e;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}(Se)), Se;
|
|
76
|
+
}
|
|
77
|
+
var Te = {}, Oe = {}, At;
|
|
78
|
+
function Tr() {
|
|
79
|
+
return At || (At = 1, function(r) {
|
|
80
|
+
Object.defineProperty(r, "__esModule", {
|
|
81
|
+
value: !0
|
|
82
|
+
}), Object.defineProperty(r, "removeTrailingSlash", {
|
|
83
|
+
enumerable: !0,
|
|
84
|
+
get: function() {
|
|
85
|
+
return o;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
function o(l) {
|
|
89
|
+
return l.replace(/\/$/, "") || "/";
|
|
90
|
+
}
|
|
91
|
+
}(Oe)), Oe;
|
|
92
|
+
}
|
|
93
|
+
var xe = {}, Ne = {}, Pt;
|
|
94
|
+
function _t() {
|
|
95
|
+
return Pt || (Pt = 1, function(r) {
|
|
96
|
+
Object.defineProperty(r, "__esModule", {
|
|
97
|
+
value: !0
|
|
98
|
+
}), Object.defineProperty(r, "parsePath", {
|
|
99
|
+
enumerable: !0,
|
|
100
|
+
get: function() {
|
|
101
|
+
return o;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
function o(l) {
|
|
105
|
+
const u = l.indexOf("#"), s = l.indexOf("?"), _ = s > -1 && (u < 0 || s < u);
|
|
106
|
+
return _ || u > -1 ? {
|
|
107
|
+
pathname: l.substring(0, _ ? s : u),
|
|
108
|
+
query: _ ? l.substring(s, u > -1 ? u : void 0) : "",
|
|
109
|
+
hash: u > -1 ? l.slice(u) : ""
|
|
110
|
+
} : {
|
|
111
|
+
pathname: l,
|
|
112
|
+
query: "",
|
|
113
|
+
hash: ""
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
}(Ne)), Ne;
|
|
117
|
+
}
|
|
118
|
+
var St;
|
|
119
|
+
function gr() {
|
|
120
|
+
return St || (St = 1, function(r) {
|
|
121
|
+
Object.defineProperty(r, "__esModule", {
|
|
122
|
+
value: !0
|
|
123
|
+
}), Object.defineProperty(r, "addPathPrefix", {
|
|
124
|
+
enumerable: !0,
|
|
125
|
+
get: function() {
|
|
126
|
+
return l;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
const o = _t();
|
|
130
|
+
function l(u, s) {
|
|
131
|
+
if (!u.startsWith("/") || !s)
|
|
132
|
+
return u;
|
|
133
|
+
const { pathname: _, query: n, hash: e } = (0, o.parsePath)(u);
|
|
134
|
+
return "" + s + _ + n + e;
|
|
135
|
+
}
|
|
136
|
+
}(xe)), xe;
|
|
137
|
+
}
|
|
138
|
+
var Ie = {}, Tt;
|
|
139
|
+
function Or() {
|
|
140
|
+
return Tt || (Tt = 1, function(r) {
|
|
141
|
+
Object.defineProperty(r, "__esModule", {
|
|
142
|
+
value: !0
|
|
143
|
+
}), Object.defineProperty(r, "addPathSuffix", {
|
|
144
|
+
enumerable: !0,
|
|
145
|
+
get: function() {
|
|
146
|
+
return l;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
const o = _t();
|
|
150
|
+
function l(u, s) {
|
|
151
|
+
if (!u.startsWith("/") || !s)
|
|
152
|
+
return u;
|
|
153
|
+
const { pathname: _, query: n, hash: e } = (0, o.parsePath)(u);
|
|
154
|
+
return "" + _ + s + n + e;
|
|
155
|
+
}
|
|
156
|
+
}(Ie)), Ie;
|
|
157
|
+
}
|
|
158
|
+
var De = {}, Ce = {}, Ot;
|
|
159
|
+
function pt() {
|
|
160
|
+
return Ot || (Ot = 1, function(r) {
|
|
161
|
+
Object.defineProperty(r, "__esModule", {
|
|
162
|
+
value: !0
|
|
163
|
+
}), Object.defineProperty(r, "pathHasPrefix", {
|
|
164
|
+
enumerable: !0,
|
|
165
|
+
get: function() {
|
|
166
|
+
return l;
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
const o = _t();
|
|
170
|
+
function l(u, s) {
|
|
171
|
+
if (typeof u != "string")
|
|
172
|
+
return !1;
|
|
173
|
+
const { pathname: _ } = (0, o.parsePath)(u);
|
|
174
|
+
return _ === s || _.startsWith(s + "/");
|
|
175
|
+
}
|
|
176
|
+
}(Ce)), Ce;
|
|
177
|
+
}
|
|
178
|
+
var xt;
|
|
179
|
+
function xr() {
|
|
180
|
+
return xt || (xt = 1, function(r) {
|
|
181
|
+
Object.defineProperty(r, "__esModule", {
|
|
182
|
+
value: !0
|
|
183
|
+
}), Object.defineProperty(r, "addLocale", {
|
|
184
|
+
enumerable: !0,
|
|
185
|
+
get: function() {
|
|
186
|
+
return u;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
const o = gr(), l = pt();
|
|
190
|
+
function u(s, _, n, e) {
|
|
191
|
+
if (!_ || _ === n) return s;
|
|
192
|
+
const a = s.toLowerCase();
|
|
193
|
+
return !e && ((0, l.pathHasPrefix)(a, "/api") || (0, l.pathHasPrefix)(a, "/" + _.toLowerCase())) ? s : (0, o.addPathPrefix)(s, "/" + _);
|
|
194
|
+
}
|
|
195
|
+
}(De)), De;
|
|
196
|
+
}
|
|
197
|
+
var Nt;
|
|
198
|
+
function Nr() {
|
|
199
|
+
return Nt || (Nt = 1, function(r) {
|
|
200
|
+
Object.defineProperty(r, "__esModule", {
|
|
201
|
+
value: !0
|
|
202
|
+
}), Object.defineProperty(r, "formatNextPathnameInfo", {
|
|
203
|
+
enumerable: !0,
|
|
204
|
+
get: function() {
|
|
205
|
+
return _;
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
const o = Tr(), l = gr(), u = Or(), s = xr();
|
|
209
|
+
function _(n) {
|
|
210
|
+
let e = (0, s.addLocale)(n.pathname, n.locale, n.buildId ? void 0 : n.defaultLocale, n.ignorePrefix);
|
|
211
|
+
return (n.buildId || !n.trailingSlash) && (e = (0, o.removeTrailingSlash)(e)), n.buildId && (e = (0, u.addPathSuffix)((0, l.addPathPrefix)(e, "/_next/data/" + n.buildId), n.pathname === "/" ? "index.json" : ".json")), e = (0, l.addPathPrefix)(e, n.basePath), !n.buildId && n.trailingSlash ? e.endsWith("/") ? e : (0, u.addPathSuffix)(e, "/") : (0, o.removeTrailingSlash)(e);
|
|
212
|
+
}
|
|
213
|
+
}(Te)), Te;
|
|
214
|
+
}
|
|
215
|
+
var ke = {}, It;
|
|
216
|
+
function Ir() {
|
|
217
|
+
return It || (It = 1, function(r) {
|
|
218
|
+
Object.defineProperty(r, "__esModule", {
|
|
219
|
+
value: !0
|
|
220
|
+
}), Object.defineProperty(r, "getHostname", {
|
|
221
|
+
enumerable: !0,
|
|
222
|
+
get: function() {
|
|
223
|
+
return o;
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
function o(l, u) {
|
|
227
|
+
let s;
|
|
228
|
+
if (u != null && u.host && !Array.isArray(u.host))
|
|
229
|
+
s = u.host.toString().split(":", 1)[0];
|
|
230
|
+
else if (l.hostname)
|
|
231
|
+
s = l.hostname;
|
|
232
|
+
else return;
|
|
233
|
+
return s.toLowerCase();
|
|
234
|
+
}
|
|
235
|
+
}(ke)), ke;
|
|
236
|
+
}
|
|
237
|
+
var je = {}, Le = {}, Dt;
|
|
238
|
+
function Dr() {
|
|
239
|
+
return Dt || (Dt = 1, function(r) {
|
|
240
|
+
Object.defineProperty(r, "__esModule", {
|
|
241
|
+
value: !0
|
|
242
|
+
}), Object.defineProperty(r, "normalizeLocalePath", {
|
|
243
|
+
enumerable: !0,
|
|
244
|
+
get: function() {
|
|
245
|
+
return l;
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
const o = /* @__PURE__ */ new WeakMap();
|
|
249
|
+
function l(u, s) {
|
|
250
|
+
if (!s) return {
|
|
251
|
+
pathname: u
|
|
252
|
+
};
|
|
253
|
+
let _ = o.get(s);
|
|
254
|
+
_ || (_ = s.map((i) => i.toLowerCase()), o.set(s, _));
|
|
255
|
+
let n;
|
|
256
|
+
const e = u.split("/", 2);
|
|
257
|
+
if (!e[1]) return {
|
|
258
|
+
pathname: u
|
|
259
|
+
};
|
|
260
|
+
const a = e[1].toLowerCase(), h = _.indexOf(a);
|
|
261
|
+
return h < 0 ? {
|
|
262
|
+
pathname: u
|
|
263
|
+
} : (n = s[h], u = u.slice(n.length + 1) || "/", {
|
|
264
|
+
pathname: u,
|
|
265
|
+
detectedLocale: n
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}(Le)), Le;
|
|
269
|
+
}
|
|
270
|
+
var qe = {}, Ct;
|
|
271
|
+
function Cr() {
|
|
272
|
+
return Ct || (Ct = 1, function(r) {
|
|
273
|
+
Object.defineProperty(r, "__esModule", {
|
|
274
|
+
value: !0
|
|
275
|
+
}), Object.defineProperty(r, "removePathPrefix", {
|
|
276
|
+
enumerable: !0,
|
|
277
|
+
get: function() {
|
|
278
|
+
return l;
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
const o = pt();
|
|
282
|
+
function l(u, s) {
|
|
283
|
+
if (!(0, o.pathHasPrefix)(u, s))
|
|
284
|
+
return u;
|
|
285
|
+
const _ = u.slice(s.length);
|
|
286
|
+
return _.startsWith("/") ? _ : "/" + _;
|
|
287
|
+
}
|
|
288
|
+
}(qe)), qe;
|
|
289
|
+
}
|
|
290
|
+
var kt;
|
|
291
|
+
function kr() {
|
|
292
|
+
return kt || (kt = 1, function(r) {
|
|
293
|
+
Object.defineProperty(r, "__esModule", {
|
|
294
|
+
value: !0
|
|
295
|
+
}), Object.defineProperty(r, "getNextPathnameInfo", {
|
|
296
|
+
enumerable: !0,
|
|
297
|
+
get: function() {
|
|
298
|
+
return s;
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
const o = Dr(), l = Cr(), u = pt();
|
|
302
|
+
function s(_, n) {
|
|
303
|
+
var e;
|
|
304
|
+
const { basePath: a, i18n: h, trailingSlash: i } = (e = n.nextConfig) != null ? e : {}, c = {
|
|
305
|
+
pathname: _,
|
|
306
|
+
trailingSlash: _ !== "/" ? _.endsWith("/") : i
|
|
307
|
+
};
|
|
308
|
+
a && (0, u.pathHasPrefix)(c.pathname, a) && (c.pathname = (0, l.removePathPrefix)(c.pathname, a), c.basePath = a);
|
|
309
|
+
let E = c.pathname;
|
|
310
|
+
if (c.pathname.startsWith("/_next/data/") && c.pathname.endsWith(".json")) {
|
|
311
|
+
const T = c.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), I = T[0];
|
|
312
|
+
c.buildId = I, E = T[1] !== "index" ? "/" + T.slice(1).join("/") : "/", n.parseData === !0 && (c.pathname = E);
|
|
313
|
+
}
|
|
314
|
+
if (h) {
|
|
315
|
+
let T = n.i18nProvider ? n.i18nProvider.analyze(c.pathname) : (0, o.normalizeLocalePath)(c.pathname, h.locales);
|
|
316
|
+
c.locale = T.detectedLocale;
|
|
317
|
+
var P;
|
|
318
|
+
c.pathname = (P = T.pathname) != null ? P : c.pathname, !T.detectedLocale && c.buildId && (T = n.i18nProvider ? n.i18nProvider.analyze(E) : (0, o.normalizeLocalePath)(E, h.locales), T.detectedLocale && (c.locale = T.detectedLocale));
|
|
319
|
+
}
|
|
320
|
+
return c;
|
|
321
|
+
}
|
|
322
|
+
}(je)), je;
|
|
323
|
+
}
|
|
324
|
+
var jt;
|
|
325
|
+
function Er() {
|
|
326
|
+
return jt || (jt = 1, function(r) {
|
|
327
|
+
Object.defineProperty(r, "__esModule", {
|
|
328
|
+
value: !0
|
|
329
|
+
}), Object.defineProperty(r, "NextURL", {
|
|
330
|
+
enumerable: !0,
|
|
331
|
+
get: function() {
|
|
332
|
+
return a;
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
const o = Sr(), l = Nr(), u = Ir(), s = kr(), _ = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
336
|
+
function n(h, i) {
|
|
337
|
+
return new URL(String(h).replace(_, "localhost"), i && String(i).replace(_, "localhost"));
|
|
338
|
+
}
|
|
339
|
+
const e = Symbol("NextURLInternal");
|
|
340
|
+
class a {
|
|
341
|
+
constructor(i, c, E) {
|
|
342
|
+
let P, T;
|
|
343
|
+
typeof c == "object" && "pathname" in c || typeof c == "string" ? (P = c, T = E || {}) : T = E || c || {}, this[e] = {
|
|
344
|
+
url: n(i, P ?? T.base),
|
|
345
|
+
options: T,
|
|
346
|
+
basePath: ""
|
|
347
|
+
}, this.analyze();
|
|
348
|
+
}
|
|
349
|
+
analyze() {
|
|
350
|
+
var i, c, E, P, T;
|
|
351
|
+
const I = (0, s.getNextPathnameInfo)(this[e].url.pathname, {
|
|
352
|
+
nextConfig: this[e].options.nextConfig,
|
|
353
|
+
parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
|
|
354
|
+
i18nProvider: this[e].options.i18nProvider
|
|
355
|
+
}), d = (0, u.getHostname)(this[e].url, this[e].options.headers);
|
|
356
|
+
this[e].domainLocale = this[e].options.i18nProvider ? this[e].options.i18nProvider.detectDomainLocale(d) : (0, o.detectDomainLocale)((c = this[e].options.nextConfig) == null || (i = c.i18n) == null ? void 0 : i.domains, d);
|
|
357
|
+
const b = ((E = this[e].domainLocale) == null ? void 0 : E.defaultLocale) || ((T = this[e].options.nextConfig) == null || (P = T.i18n) == null ? void 0 : P.defaultLocale);
|
|
358
|
+
this[e].url.pathname = I.pathname, this[e].defaultLocale = b, this[e].basePath = I.basePath ?? "", this[e].buildId = I.buildId, this[e].locale = I.locale ?? b, this[e].trailingSlash = I.trailingSlash;
|
|
359
|
+
}
|
|
360
|
+
formatPathname() {
|
|
361
|
+
return (0, l.formatNextPathnameInfo)({
|
|
362
|
+
basePath: this[e].basePath,
|
|
363
|
+
buildId: this[e].buildId,
|
|
364
|
+
defaultLocale: this[e].options.forceLocale ? void 0 : this[e].defaultLocale,
|
|
365
|
+
locale: this[e].locale,
|
|
366
|
+
pathname: this[e].url.pathname,
|
|
367
|
+
trailingSlash: this[e].trailingSlash
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
formatSearch() {
|
|
371
|
+
return this[e].url.search;
|
|
372
|
+
}
|
|
373
|
+
get buildId() {
|
|
374
|
+
return this[e].buildId;
|
|
375
|
+
}
|
|
376
|
+
set buildId(i) {
|
|
377
|
+
this[e].buildId = i;
|
|
378
|
+
}
|
|
379
|
+
get locale() {
|
|
380
|
+
return this[e].locale ?? "";
|
|
381
|
+
}
|
|
382
|
+
set locale(i) {
|
|
383
|
+
var c, E;
|
|
384
|
+
if (!this[e].locale || !(!((E = this[e].options.nextConfig) == null || (c = E.i18n) == null) && c.locales.includes(i)))
|
|
385
|
+
throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${i}"`), "__NEXT_ERROR_CODE", {
|
|
386
|
+
value: "E597",
|
|
387
|
+
enumerable: !1,
|
|
388
|
+
configurable: !0
|
|
389
|
+
});
|
|
390
|
+
this[e].locale = i;
|
|
391
|
+
}
|
|
392
|
+
get defaultLocale() {
|
|
393
|
+
return this[e].defaultLocale;
|
|
394
|
+
}
|
|
395
|
+
get domainLocale() {
|
|
396
|
+
return this[e].domainLocale;
|
|
397
|
+
}
|
|
398
|
+
get searchParams() {
|
|
399
|
+
return this[e].url.searchParams;
|
|
400
|
+
}
|
|
401
|
+
get host() {
|
|
402
|
+
return this[e].url.host;
|
|
403
|
+
}
|
|
404
|
+
set host(i) {
|
|
405
|
+
this[e].url.host = i;
|
|
406
|
+
}
|
|
407
|
+
get hostname() {
|
|
408
|
+
return this[e].url.hostname;
|
|
409
|
+
}
|
|
410
|
+
set hostname(i) {
|
|
411
|
+
this[e].url.hostname = i;
|
|
412
|
+
}
|
|
413
|
+
get port() {
|
|
414
|
+
return this[e].url.port;
|
|
415
|
+
}
|
|
416
|
+
set port(i) {
|
|
417
|
+
this[e].url.port = i;
|
|
418
|
+
}
|
|
419
|
+
get protocol() {
|
|
420
|
+
return this[e].url.protocol;
|
|
421
|
+
}
|
|
422
|
+
set protocol(i) {
|
|
423
|
+
this[e].url.protocol = i;
|
|
424
|
+
}
|
|
425
|
+
get href() {
|
|
426
|
+
const i = this.formatPathname(), c = this.formatSearch();
|
|
427
|
+
return `${this.protocol}//${this.host}${i}${c}${this.hash}`;
|
|
428
|
+
}
|
|
429
|
+
set href(i) {
|
|
430
|
+
this[e].url = n(i), this.analyze();
|
|
431
|
+
}
|
|
432
|
+
get origin() {
|
|
433
|
+
return this[e].url.origin;
|
|
434
|
+
}
|
|
435
|
+
get pathname() {
|
|
436
|
+
return this[e].url.pathname;
|
|
437
|
+
}
|
|
438
|
+
set pathname(i) {
|
|
439
|
+
this[e].url.pathname = i;
|
|
440
|
+
}
|
|
441
|
+
get hash() {
|
|
442
|
+
return this[e].url.hash;
|
|
443
|
+
}
|
|
444
|
+
set hash(i) {
|
|
445
|
+
this[e].url.hash = i;
|
|
446
|
+
}
|
|
447
|
+
get search() {
|
|
448
|
+
return this[e].url.search;
|
|
449
|
+
}
|
|
450
|
+
set search(i) {
|
|
451
|
+
this[e].url.search = i;
|
|
452
|
+
}
|
|
453
|
+
get password() {
|
|
454
|
+
return this[e].url.password;
|
|
455
|
+
}
|
|
456
|
+
set password(i) {
|
|
457
|
+
this[e].url.password = i;
|
|
458
|
+
}
|
|
459
|
+
get username() {
|
|
460
|
+
return this[e].url.username;
|
|
461
|
+
}
|
|
462
|
+
set username(i) {
|
|
463
|
+
this[e].url.username = i;
|
|
464
|
+
}
|
|
465
|
+
get basePath() {
|
|
466
|
+
return this[e].basePath;
|
|
467
|
+
}
|
|
468
|
+
set basePath(i) {
|
|
469
|
+
this[e].basePath = i.startsWith("/") ? i : `/${i}`;
|
|
470
|
+
}
|
|
471
|
+
toString() {
|
|
472
|
+
return this.href;
|
|
473
|
+
}
|
|
474
|
+
toJSON() {
|
|
475
|
+
return this.href;
|
|
476
|
+
}
|
|
477
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
478
|
+
return {
|
|
479
|
+
href: this.href,
|
|
480
|
+
origin: this.origin,
|
|
481
|
+
protocol: this.protocol,
|
|
482
|
+
username: this.username,
|
|
483
|
+
password: this.password,
|
|
484
|
+
host: this.host,
|
|
485
|
+
hostname: this.hostname,
|
|
486
|
+
port: this.port,
|
|
487
|
+
pathname: this.pathname,
|
|
488
|
+
search: this.search,
|
|
489
|
+
searchParams: this.searchParams,
|
|
490
|
+
hash: this.hash
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
clone() {
|
|
494
|
+
return new a(String(this), this[e].options);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}(Pe)), Pe;
|
|
498
|
+
}
|
|
499
|
+
var Me = {}, Ue = {}, Lt;
|
|
500
|
+
function jr() {
|
|
501
|
+
return Lt || (Lt = 1, function(r) {
|
|
502
|
+
Object.defineProperty(r, "__esModule", {
|
|
503
|
+
value: !0
|
|
504
|
+
});
|
|
505
|
+
function o(ce, he) {
|
|
506
|
+
for (var ne in he) Object.defineProperty(ce, ne, {
|
|
507
|
+
enumerable: !0,
|
|
508
|
+
get: he[ne]
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
o(r, {
|
|
512
|
+
ACTION_SUFFIX: function() {
|
|
513
|
+
return c;
|
|
514
|
+
},
|
|
515
|
+
APP_DIR_ALIAS: function() {
|
|
516
|
+
return Q;
|
|
517
|
+
},
|
|
518
|
+
CACHE_ONE_YEAR: function() {
|
|
519
|
+
return m;
|
|
520
|
+
},
|
|
521
|
+
DOT_NEXT_ALIAS: function() {
|
|
522
|
+
return G;
|
|
523
|
+
},
|
|
524
|
+
ESLINT_DEFAULT_DIRS: function() {
|
|
525
|
+
return C;
|
|
526
|
+
},
|
|
527
|
+
GSP_NO_RETURNED_VALUE: function() {
|
|
528
|
+
return fe;
|
|
529
|
+
},
|
|
530
|
+
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
531
|
+
return R;
|
|
532
|
+
},
|
|
533
|
+
GSSP_NO_RETURNED_VALUE: function() {
|
|
534
|
+
return re;
|
|
535
|
+
},
|
|
536
|
+
INFINITE_CACHE: function() {
|
|
537
|
+
return w;
|
|
538
|
+
},
|
|
539
|
+
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
540
|
+
return X;
|
|
541
|
+
},
|
|
542
|
+
MATCHED_PATH_HEADER: function() {
|
|
543
|
+
return s;
|
|
544
|
+
},
|
|
545
|
+
MIDDLEWARE_FILENAME: function() {
|
|
546
|
+
return S;
|
|
547
|
+
},
|
|
548
|
+
MIDDLEWARE_LOCATION_REGEXP: function() {
|
|
549
|
+
return j;
|
|
550
|
+
},
|
|
551
|
+
NEXT_BODY_SUFFIX: function() {
|
|
552
|
+
return T;
|
|
553
|
+
},
|
|
554
|
+
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
555
|
+
return v;
|
|
556
|
+
},
|
|
557
|
+
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
558
|
+
return d;
|
|
559
|
+
},
|
|
560
|
+
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
561
|
+
return b;
|
|
562
|
+
},
|
|
563
|
+
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
564
|
+
return t;
|
|
565
|
+
},
|
|
566
|
+
NEXT_CACHE_TAGS_HEADER: function() {
|
|
567
|
+
return I;
|
|
568
|
+
},
|
|
569
|
+
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
570
|
+
return p;
|
|
571
|
+
},
|
|
572
|
+
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
573
|
+
return y;
|
|
574
|
+
},
|
|
575
|
+
NEXT_DATA_SUFFIX: function() {
|
|
576
|
+
return E;
|
|
577
|
+
},
|
|
578
|
+
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
579
|
+
return u;
|
|
580
|
+
},
|
|
581
|
+
NEXT_META_SUFFIX: function() {
|
|
582
|
+
return P;
|
|
583
|
+
},
|
|
584
|
+
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
585
|
+
return l;
|
|
586
|
+
},
|
|
587
|
+
NEXT_RESUME_HEADER: function() {
|
|
588
|
+
return f;
|
|
589
|
+
},
|
|
590
|
+
NON_STANDARD_NODE_ENV: function() {
|
|
591
|
+
return g;
|
|
592
|
+
},
|
|
593
|
+
PAGES_DIR_ALIAS: function() {
|
|
594
|
+
return U;
|
|
595
|
+
},
|
|
596
|
+
PRERENDER_REVALIDATE_HEADER: function() {
|
|
597
|
+
return _;
|
|
598
|
+
},
|
|
599
|
+
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
600
|
+
return n;
|
|
601
|
+
},
|
|
602
|
+
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
603
|
+
return le;
|
|
604
|
+
},
|
|
605
|
+
ROOT_DIR_ALIAS: function() {
|
|
606
|
+
return H;
|
|
607
|
+
},
|
|
608
|
+
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
609
|
+
return ee;
|
|
610
|
+
},
|
|
611
|
+
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
612
|
+
return V;
|
|
613
|
+
},
|
|
614
|
+
RSC_ACTION_PROXY_ALIAS: function() {
|
|
615
|
+
return z;
|
|
616
|
+
},
|
|
617
|
+
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
618
|
+
return F;
|
|
619
|
+
},
|
|
620
|
+
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
621
|
+
return J;
|
|
622
|
+
},
|
|
623
|
+
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
624
|
+
return Z;
|
|
625
|
+
},
|
|
626
|
+
RSC_PREFETCH_SUFFIX: function() {
|
|
627
|
+
return e;
|
|
628
|
+
},
|
|
629
|
+
RSC_SEGMENTS_DIR_SUFFIX: function() {
|
|
630
|
+
return a;
|
|
631
|
+
},
|
|
632
|
+
RSC_SEGMENT_SUFFIX: function() {
|
|
633
|
+
return h;
|
|
634
|
+
},
|
|
635
|
+
RSC_SUFFIX: function() {
|
|
636
|
+
return i;
|
|
637
|
+
},
|
|
638
|
+
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
639
|
+
return se;
|
|
640
|
+
},
|
|
641
|
+
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
642
|
+
return ae;
|
|
643
|
+
},
|
|
644
|
+
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
645
|
+
return de;
|
|
646
|
+
},
|
|
647
|
+
SERVER_RUNTIME: function() {
|
|
648
|
+
return M;
|
|
649
|
+
},
|
|
650
|
+
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
651
|
+
return A;
|
|
652
|
+
},
|
|
653
|
+
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
654
|
+
return oe;
|
|
655
|
+
},
|
|
656
|
+
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
657
|
+
return te;
|
|
658
|
+
},
|
|
659
|
+
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
660
|
+
return ue;
|
|
661
|
+
},
|
|
662
|
+
WEBPACK_LAYERS: function() {
|
|
663
|
+
return B;
|
|
664
|
+
},
|
|
665
|
+
WEBPACK_RESOURCE_QUERIES: function() {
|
|
666
|
+
return W;
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
const l = "nxtP", u = "nxtI", s = "x-matched-path", _ = "x-prerender-revalidate", n = "x-prerender-revalidate-if-generated", e = ".prefetch.rsc", a = ".segments", h = ".segment.rsc", i = ".rsc", c = ".action", E = ".json", P = ".meta", T = ".body", I = "x-next-cache-tags", d = "x-next-revalidated-tags", b = "x-next-revalidate-tag-token", f = "next-resume", p = 128, y = 256, t = 1024, v = "_N_T_", m = 31536e3, w = 4294967294, S = "middleware", j = `(?:src/)?${S}`, X = "instrumentation", U = "private-next-pages", G = "private-dot-next", H = "private-next-root-dir", Q = "private-next-app-dir", Z = "private-next-rsc-mod-ref-proxy", F = "private-next-rsc-action-validate", z = "private-next-rsc-server-reference", J = "private-next-rsc-cache-wrapper", V = "private-next-rsc-action-encryption", ee = "private-next-rsc-action-client-wrapper", le = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", oe = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ae = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", de = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", te = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", se = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", fe = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", re = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", ue = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", R = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", g = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', A = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", C = [
|
|
670
|
+
"app",
|
|
671
|
+
"pages",
|
|
672
|
+
"components",
|
|
673
|
+
"lib",
|
|
674
|
+
"src"
|
|
675
|
+
], M = {
|
|
676
|
+
edge: "edge",
|
|
677
|
+
experimentalEdge: "experimental-edge",
|
|
678
|
+
nodejs: "nodejs"
|
|
679
|
+
}, O = {
|
|
680
|
+
/**
|
|
681
|
+
* The layer for the shared code between the client and server bundles.
|
|
682
|
+
*/
|
|
683
|
+
shared: "shared",
|
|
684
|
+
/**
|
|
685
|
+
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
686
|
+
* Including app router RSC pages and app router custom routes and metadata routes.
|
|
687
|
+
*/
|
|
688
|
+
reactServerComponents: "rsc",
|
|
689
|
+
/**
|
|
690
|
+
* Server Side Rendering layer for app (ssr).
|
|
691
|
+
*/
|
|
692
|
+
serverSideRendering: "ssr",
|
|
693
|
+
/**
|
|
694
|
+
* The browser client bundle layer for actions.
|
|
695
|
+
*/
|
|
696
|
+
actionBrowser: "action-browser",
|
|
697
|
+
/**
|
|
698
|
+
* The Node.js bundle layer for the API routes.
|
|
699
|
+
*/
|
|
700
|
+
apiNode: "api-node",
|
|
701
|
+
/**
|
|
702
|
+
* The Edge Lite bundle layer for the API routes.
|
|
703
|
+
*/
|
|
704
|
+
apiEdge: "api-edge",
|
|
705
|
+
/**
|
|
706
|
+
* The layer for the middleware code.
|
|
707
|
+
*/
|
|
708
|
+
middleware: "middleware",
|
|
709
|
+
/**
|
|
710
|
+
* The layer for the instrumentation hooks.
|
|
711
|
+
*/
|
|
712
|
+
instrument: "instrument",
|
|
713
|
+
/**
|
|
714
|
+
* The layer for assets on the edge.
|
|
715
|
+
*/
|
|
716
|
+
edgeAsset: "edge-asset",
|
|
717
|
+
/**
|
|
718
|
+
* The browser client bundle layer for App directory.
|
|
719
|
+
*/
|
|
720
|
+
appPagesBrowser: "app-pages-browser",
|
|
721
|
+
/**
|
|
722
|
+
* The browser client bundle layer for Pages directory.
|
|
723
|
+
*/
|
|
724
|
+
pagesDirBrowser: "pages-dir-browser",
|
|
725
|
+
/**
|
|
726
|
+
* The Edge Lite bundle layer for Pages directory.
|
|
727
|
+
*/
|
|
728
|
+
pagesDirEdge: "pages-dir-edge",
|
|
729
|
+
/**
|
|
730
|
+
* The Node.js bundle layer for Pages directory.
|
|
731
|
+
*/
|
|
732
|
+
pagesDirNode: "pages-dir-node"
|
|
733
|
+
}, B = {
|
|
734
|
+
...O,
|
|
735
|
+
GROUP: {
|
|
736
|
+
builtinReact: [
|
|
737
|
+
O.reactServerComponents,
|
|
738
|
+
O.actionBrowser
|
|
739
|
+
],
|
|
740
|
+
serverOnly: [
|
|
741
|
+
O.reactServerComponents,
|
|
742
|
+
O.actionBrowser,
|
|
743
|
+
O.instrument,
|
|
744
|
+
O.middleware
|
|
745
|
+
],
|
|
746
|
+
neutralTarget: [
|
|
747
|
+
// pages api
|
|
748
|
+
O.apiNode,
|
|
749
|
+
O.apiEdge
|
|
750
|
+
],
|
|
751
|
+
clientOnly: [
|
|
752
|
+
O.serverSideRendering,
|
|
753
|
+
O.appPagesBrowser
|
|
754
|
+
],
|
|
755
|
+
bundled: [
|
|
756
|
+
O.reactServerComponents,
|
|
757
|
+
O.actionBrowser,
|
|
758
|
+
O.serverSideRendering,
|
|
759
|
+
O.appPagesBrowser,
|
|
760
|
+
O.shared,
|
|
761
|
+
O.instrument,
|
|
762
|
+
O.middleware
|
|
763
|
+
],
|
|
764
|
+
appPages: [
|
|
765
|
+
// app router pages and layouts
|
|
766
|
+
O.reactServerComponents,
|
|
767
|
+
O.serverSideRendering,
|
|
768
|
+
O.appPagesBrowser,
|
|
769
|
+
O.actionBrowser
|
|
770
|
+
]
|
|
771
|
+
}
|
|
772
|
+
}, W = {
|
|
773
|
+
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
774
|
+
metadata: "__next_metadata__",
|
|
775
|
+
metadataRoute: "__next_metadata_route__",
|
|
776
|
+
metadataImageMeta: "__next_metadata_image_meta__"
|
|
777
|
+
};
|
|
778
|
+
}(Ue)), Ue;
|
|
779
|
+
}
|
|
780
|
+
var qt;
|
|
781
|
+
function Rr() {
|
|
782
|
+
return qt || (qt = 1, function(r) {
|
|
783
|
+
Object.defineProperty(r, "__esModule", {
|
|
784
|
+
value: !0
|
|
785
|
+
});
|
|
786
|
+
function o(a, h) {
|
|
787
|
+
for (var i in h) Object.defineProperty(a, i, {
|
|
788
|
+
enumerable: !0,
|
|
789
|
+
get: h[i]
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
o(r, {
|
|
793
|
+
fromNodeOutgoingHttpHeaders: function() {
|
|
794
|
+
return u;
|
|
795
|
+
},
|
|
796
|
+
normalizeNextQueryParam: function() {
|
|
797
|
+
return e;
|
|
798
|
+
},
|
|
799
|
+
splitCookiesString: function() {
|
|
800
|
+
return s;
|
|
801
|
+
},
|
|
802
|
+
toNodeOutgoingHttpHeaders: function() {
|
|
803
|
+
return _;
|
|
804
|
+
},
|
|
805
|
+
validateURL: function() {
|
|
806
|
+
return n;
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
const l = jr();
|
|
810
|
+
function u(a) {
|
|
811
|
+
const h = new Headers();
|
|
812
|
+
for (let [i, c] of Object.entries(a)) {
|
|
813
|
+
const E = Array.isArray(c) ? c : [
|
|
814
|
+
c
|
|
815
|
+
];
|
|
816
|
+
for (let P of E)
|
|
817
|
+
typeof P > "u" || (typeof P == "number" && (P = P.toString()), h.append(i, P));
|
|
818
|
+
}
|
|
819
|
+
return h;
|
|
820
|
+
}
|
|
821
|
+
function s(a) {
|
|
822
|
+
var h = [], i = 0, c, E, P, T, I;
|
|
823
|
+
function d() {
|
|
824
|
+
for (; i < a.length && /\s/.test(a.charAt(i)); )
|
|
825
|
+
i += 1;
|
|
826
|
+
return i < a.length;
|
|
827
|
+
}
|
|
828
|
+
function b() {
|
|
829
|
+
return E = a.charAt(i), E !== "=" && E !== ";" && E !== ",";
|
|
830
|
+
}
|
|
831
|
+
for (; i < a.length; ) {
|
|
832
|
+
for (c = i, I = !1; d(); )
|
|
833
|
+
if (E = a.charAt(i), E === ",") {
|
|
834
|
+
for (P = i, i += 1, d(), T = i; i < a.length && b(); )
|
|
835
|
+
i += 1;
|
|
836
|
+
i < a.length && a.charAt(i) === "=" ? (I = !0, i = T, h.push(a.substring(c, P)), c = i) : i = P + 1;
|
|
837
|
+
} else
|
|
838
|
+
i += 1;
|
|
839
|
+
(!I || i >= a.length) && h.push(a.substring(c, a.length));
|
|
840
|
+
}
|
|
841
|
+
return h;
|
|
842
|
+
}
|
|
843
|
+
function _(a) {
|
|
844
|
+
const h = {}, i = [];
|
|
845
|
+
if (a)
|
|
846
|
+
for (const [c, E] of a.entries())
|
|
847
|
+
c.toLowerCase() === "set-cookie" ? (i.push(...s(E)), h[c] = i.length === 1 ? i[0] : i) : h[c] = E;
|
|
848
|
+
return h;
|
|
849
|
+
}
|
|
850
|
+
function n(a) {
|
|
851
|
+
try {
|
|
852
|
+
return String(new URL(String(a)));
|
|
853
|
+
} catch (h) {
|
|
854
|
+
throw Object.defineProperty(new Error(`URL is malformed "${String(a)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
|
|
855
|
+
cause: h
|
|
856
|
+
}), "__NEXT_ERROR_CODE", {
|
|
857
|
+
value: "E61",
|
|
858
|
+
enumerable: !1,
|
|
859
|
+
configurable: !0
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
function e(a) {
|
|
864
|
+
const h = [
|
|
865
|
+
l.NEXT_QUERY_PARAM_PREFIX,
|
|
866
|
+
l.NEXT_INTERCEPTION_MARKER_PREFIX
|
|
867
|
+
];
|
|
868
|
+
for (const i of h)
|
|
869
|
+
if (a !== i && a.startsWith(i))
|
|
870
|
+
return a.substring(i.length);
|
|
871
|
+
return null;
|
|
872
|
+
}
|
|
873
|
+
}(Me)), Me;
|
|
874
|
+
}
|
|
875
|
+
var He = {}, Mt;
|
|
876
|
+
function Lr() {
|
|
877
|
+
return Mt || (Mt = 1, function(r) {
|
|
878
|
+
Object.defineProperty(r, "__esModule", {
|
|
879
|
+
value: !0
|
|
880
|
+
});
|
|
881
|
+
function o(_, n) {
|
|
882
|
+
for (var e in n) Object.defineProperty(_, e, {
|
|
883
|
+
enumerable: !0,
|
|
884
|
+
get: n[e]
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
o(r, {
|
|
888
|
+
PageSignatureError: function() {
|
|
889
|
+
return l;
|
|
890
|
+
},
|
|
891
|
+
RemovedPageError: function() {
|
|
892
|
+
return u;
|
|
893
|
+
},
|
|
894
|
+
RemovedUAError: function() {
|
|
895
|
+
return s;
|
|
896
|
+
}
|
|
897
|
+
});
|
|
898
|
+
class l extends Error {
|
|
899
|
+
constructor({ page: n }) {
|
|
900
|
+
super(`The middleware "${n}" accepts an async API directly with the form:
|
|
901
|
+
|
|
902
|
+
export function middleware(request, event) {
|
|
903
|
+
return NextResponse.redirect('/new-location')
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
|
907
|
+
`);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
class u extends Error {
|
|
911
|
+
constructor() {
|
|
912
|
+
super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ");
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
class s extends Error {
|
|
916
|
+
constructor() {
|
|
917
|
+
super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ");
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
}(He)), He;
|
|
921
|
+
}
|
|
922
|
+
var Xe = {}, Ge, Ut;
|
|
923
|
+
function qr() {
|
|
924
|
+
if (Ut) return Ge;
|
|
925
|
+
Ut = 1;
|
|
926
|
+
var r = Object.defineProperty, o = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, u = Object.prototype.hasOwnProperty, s = (t, v) => {
|
|
927
|
+
for (var m in v)
|
|
928
|
+
r(t, m, { get: v[m], enumerable: !0 });
|
|
929
|
+
}, _ = (t, v, m, w) => {
|
|
930
|
+
if (v && typeof v == "object" || typeof v == "function")
|
|
931
|
+
for (let S of l(v))
|
|
932
|
+
!u.call(t, S) && S !== m && r(t, S, { get: () => v[S], enumerable: !(w = o(v, S)) || w.enumerable });
|
|
933
|
+
return t;
|
|
934
|
+
}, n = (t) => _(r({}, "__esModule", { value: !0 }), t), e = {};
|
|
935
|
+
s(e, {
|
|
936
|
+
RequestCookies: () => b,
|
|
937
|
+
ResponseCookies: () => f,
|
|
938
|
+
parseCookie: () => h,
|
|
939
|
+
parseSetCookie: () => i,
|
|
940
|
+
stringifyCookie: () => a
|
|
941
|
+
}), Ge = n(e);
|
|
942
|
+
function a(t) {
|
|
943
|
+
var v;
|
|
944
|
+
const m = [
|
|
945
|
+
"path" in t && t.path && `Path=${t.path}`,
|
|
946
|
+
"expires" in t && (t.expires || t.expires === 0) && `Expires=${(typeof t.expires == "number" ? new Date(t.expires) : t.expires).toUTCString()}`,
|
|
947
|
+
"maxAge" in t && typeof t.maxAge == "number" && `Max-Age=${t.maxAge}`,
|
|
948
|
+
"domain" in t && t.domain && `Domain=${t.domain}`,
|
|
949
|
+
"secure" in t && t.secure && "Secure",
|
|
950
|
+
"httpOnly" in t && t.httpOnly && "HttpOnly",
|
|
951
|
+
"sameSite" in t && t.sameSite && `SameSite=${t.sameSite}`,
|
|
952
|
+
"partitioned" in t && t.partitioned && "Partitioned",
|
|
953
|
+
"priority" in t && t.priority && `Priority=${t.priority}`
|
|
954
|
+
].filter(Boolean), w = `${t.name}=${encodeURIComponent((v = t.value) != null ? v : "")}`;
|
|
955
|
+
return m.length === 0 ? w : `${w}; ${m.join("; ")}`;
|
|
956
|
+
}
|
|
957
|
+
function h(t) {
|
|
958
|
+
const v = /* @__PURE__ */ new Map();
|
|
959
|
+
for (const m of t.split(/; */)) {
|
|
960
|
+
if (!m)
|
|
961
|
+
continue;
|
|
962
|
+
const w = m.indexOf("=");
|
|
963
|
+
if (w === -1) {
|
|
964
|
+
v.set(m, "true");
|
|
965
|
+
continue;
|
|
966
|
+
}
|
|
967
|
+
const [S, j] = [m.slice(0, w), m.slice(w + 1)];
|
|
968
|
+
try {
|
|
969
|
+
v.set(S, decodeURIComponent(j ?? "true"));
|
|
970
|
+
} catch {
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
return v;
|
|
974
|
+
}
|
|
975
|
+
function i(t) {
|
|
976
|
+
if (!t)
|
|
977
|
+
return;
|
|
978
|
+
const [[v, m], ...w] = h(t), {
|
|
979
|
+
domain: S,
|
|
980
|
+
expires: j,
|
|
981
|
+
httponly: X,
|
|
982
|
+
maxage: U,
|
|
983
|
+
path: G,
|
|
984
|
+
samesite: H,
|
|
985
|
+
secure: Q,
|
|
986
|
+
partitioned: Z,
|
|
987
|
+
priority: F
|
|
988
|
+
} = Object.fromEntries(
|
|
989
|
+
w.map(([J, V]) => [
|
|
990
|
+
J.toLowerCase().replace(/-/g, ""),
|
|
991
|
+
V
|
|
992
|
+
])
|
|
993
|
+
), z = {
|
|
994
|
+
name: v,
|
|
995
|
+
value: decodeURIComponent(m),
|
|
996
|
+
domain: S,
|
|
997
|
+
...j && { expires: new Date(j) },
|
|
998
|
+
...X && { httpOnly: !0 },
|
|
999
|
+
...typeof U == "string" && { maxAge: Number(U) },
|
|
1000
|
+
path: G,
|
|
1001
|
+
...H && { sameSite: P(H) },
|
|
1002
|
+
...Q && { secure: !0 },
|
|
1003
|
+
...F && { priority: I(F) },
|
|
1004
|
+
...Z && { partitioned: !0 }
|
|
1005
|
+
};
|
|
1006
|
+
return c(z);
|
|
1007
|
+
}
|
|
1008
|
+
function c(t) {
|
|
1009
|
+
const v = {};
|
|
1010
|
+
for (const m in t)
|
|
1011
|
+
t[m] && (v[m] = t[m]);
|
|
1012
|
+
return v;
|
|
1013
|
+
}
|
|
1014
|
+
var E = ["strict", "lax", "none"];
|
|
1015
|
+
function P(t) {
|
|
1016
|
+
return t = t.toLowerCase(), E.includes(t) ? t : void 0;
|
|
1017
|
+
}
|
|
1018
|
+
var T = ["low", "medium", "high"];
|
|
1019
|
+
function I(t) {
|
|
1020
|
+
return t = t.toLowerCase(), T.includes(t) ? t : void 0;
|
|
1021
|
+
}
|
|
1022
|
+
function d(t) {
|
|
1023
|
+
if (!t)
|
|
1024
|
+
return [];
|
|
1025
|
+
var v = [], m = 0, w, S, j, X, U;
|
|
1026
|
+
function G() {
|
|
1027
|
+
for (; m < t.length && /\s/.test(t.charAt(m)); )
|
|
1028
|
+
m += 1;
|
|
1029
|
+
return m < t.length;
|
|
1030
|
+
}
|
|
1031
|
+
function H() {
|
|
1032
|
+
return S = t.charAt(m), S !== "=" && S !== ";" && S !== ",";
|
|
1033
|
+
}
|
|
1034
|
+
for (; m < t.length; ) {
|
|
1035
|
+
for (w = m, U = !1; G(); )
|
|
1036
|
+
if (S = t.charAt(m), S === ",") {
|
|
1037
|
+
for (j = m, m += 1, G(), X = m; m < t.length && H(); )
|
|
1038
|
+
m += 1;
|
|
1039
|
+
m < t.length && t.charAt(m) === "=" ? (U = !0, m = X, v.push(t.substring(w, j)), w = m) : m = j + 1;
|
|
1040
|
+
} else
|
|
1041
|
+
m += 1;
|
|
1042
|
+
(!U || m >= t.length) && v.push(t.substring(w, t.length));
|
|
1043
|
+
}
|
|
1044
|
+
return v;
|
|
1045
|
+
}
|
|
1046
|
+
var b = class {
|
|
1047
|
+
constructor(t) {
|
|
1048
|
+
this._parsed = /* @__PURE__ */ new Map(), this._headers = t;
|
|
1049
|
+
const v = t.get("cookie");
|
|
1050
|
+
if (v) {
|
|
1051
|
+
const m = h(v);
|
|
1052
|
+
for (const [w, S] of m)
|
|
1053
|
+
this._parsed.set(w, { name: w, value: S });
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
[Symbol.iterator]() {
|
|
1057
|
+
return this._parsed[Symbol.iterator]();
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* The amount of cookies received from the client
|
|
1061
|
+
*/
|
|
1062
|
+
get size() {
|
|
1063
|
+
return this._parsed.size;
|
|
1064
|
+
}
|
|
1065
|
+
get(...t) {
|
|
1066
|
+
const v = typeof t[0] == "string" ? t[0] : t[0].name;
|
|
1067
|
+
return this._parsed.get(v);
|
|
1068
|
+
}
|
|
1069
|
+
getAll(...t) {
|
|
1070
|
+
var v;
|
|
1071
|
+
const m = Array.from(this._parsed);
|
|
1072
|
+
if (!t.length)
|
|
1073
|
+
return m.map(([S, j]) => j);
|
|
1074
|
+
const w = typeof t[0] == "string" ? t[0] : (v = t[0]) == null ? void 0 : v.name;
|
|
1075
|
+
return m.filter(([S]) => S === w).map(([S, j]) => j);
|
|
1076
|
+
}
|
|
1077
|
+
has(t) {
|
|
1078
|
+
return this._parsed.has(t);
|
|
1079
|
+
}
|
|
1080
|
+
set(...t) {
|
|
1081
|
+
const [v, m] = t.length === 1 ? [t[0].name, t[0].value] : t, w = this._parsed;
|
|
1082
|
+
return w.set(v, { name: v, value: m }), this._headers.set(
|
|
1083
|
+
"cookie",
|
|
1084
|
+
Array.from(w).map(([S, j]) => a(j)).join("; ")
|
|
1085
|
+
), this;
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* Delete the cookies matching the passed name or names in the request.
|
|
1089
|
+
*/
|
|
1090
|
+
delete(t) {
|
|
1091
|
+
const v = this._parsed, m = Array.isArray(t) ? t.map((w) => v.delete(w)) : v.delete(t);
|
|
1092
|
+
return this._headers.set(
|
|
1093
|
+
"cookie",
|
|
1094
|
+
Array.from(v).map(([w, S]) => a(S)).join("; ")
|
|
1095
|
+
), m;
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Delete all the cookies in the cookies in the request.
|
|
1099
|
+
*/
|
|
1100
|
+
clear() {
|
|
1101
|
+
return this.delete(Array.from(this._parsed.keys())), this;
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Format the cookies in the request as a string for logging
|
|
1105
|
+
*/
|
|
1106
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1107
|
+
return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
1108
|
+
}
|
|
1109
|
+
toString() {
|
|
1110
|
+
return [...this._parsed.values()].map((t) => `${t.name}=${encodeURIComponent(t.value)}`).join("; ");
|
|
1111
|
+
}
|
|
1112
|
+
}, f = class {
|
|
1113
|
+
constructor(t) {
|
|
1114
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
1115
|
+
var v, m, w;
|
|
1116
|
+
this._headers = t;
|
|
1117
|
+
const S = (w = (m = (v = t.getSetCookie) == null ? void 0 : v.call(t)) != null ? m : t.get("set-cookie")) != null ? w : [], j = Array.isArray(S) ? S : d(S);
|
|
1118
|
+
for (const X of j) {
|
|
1119
|
+
const U = i(X);
|
|
1120
|
+
U && this._parsed.set(U.name, U);
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
1125
|
+
*/
|
|
1126
|
+
get(...t) {
|
|
1127
|
+
const v = typeof t[0] == "string" ? t[0] : t[0].name;
|
|
1128
|
+
return this._parsed.get(v);
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
1132
|
+
*/
|
|
1133
|
+
getAll(...t) {
|
|
1134
|
+
var v;
|
|
1135
|
+
const m = Array.from(this._parsed.values());
|
|
1136
|
+
if (!t.length)
|
|
1137
|
+
return m;
|
|
1138
|
+
const w = typeof t[0] == "string" ? t[0] : (v = t[0]) == null ? void 0 : v.name;
|
|
1139
|
+
return m.filter((S) => S.name === w);
|
|
1140
|
+
}
|
|
1141
|
+
has(t) {
|
|
1142
|
+
return this._parsed.has(t);
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
1146
|
+
*/
|
|
1147
|
+
set(...t) {
|
|
1148
|
+
const [v, m, w] = t.length === 1 ? [t[0].name, t[0].value, t[0]] : t, S = this._parsed;
|
|
1149
|
+
return S.set(v, y({ name: v, value: m, ...w })), p(S, this._headers), this;
|
|
1150
|
+
}
|
|
1151
|
+
/**
|
|
1152
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
1153
|
+
*/
|
|
1154
|
+
delete(...t) {
|
|
1155
|
+
const [v, m] = typeof t[0] == "string" ? [t[0]] : [t[0].name, t[0]];
|
|
1156
|
+
return this.set({ ...m, name: v, value: "", expires: /* @__PURE__ */ new Date(0) });
|
|
1157
|
+
}
|
|
1158
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1159
|
+
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
1160
|
+
}
|
|
1161
|
+
toString() {
|
|
1162
|
+
return [...this._parsed.values()].map(a).join("; ");
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
function p(t, v) {
|
|
1166
|
+
v.delete("set-cookie");
|
|
1167
|
+
for (const [, m] of t) {
|
|
1168
|
+
const w = a(m);
|
|
1169
|
+
v.append("set-cookie", w);
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
function y(t = { name: "", value: "" }) {
|
|
1173
|
+
return typeof t.expires == "number" && (t.expires = new Date(t.expires)), t.maxAge && (t.expires = new Date(Date.now() + t.maxAge * 1e3)), (t.path === null || t.path === void 0) && (t.path = "/"), t;
|
|
1174
|
+
}
|
|
1175
|
+
return Ge;
|
|
1176
|
+
}
|
|
1177
|
+
var Ht;
|
|
1178
|
+
function ht() {
|
|
1179
|
+
return Ht || (Ht = 1, function(r) {
|
|
1180
|
+
Object.defineProperty(r, "__esModule", {
|
|
1181
|
+
value: !0
|
|
1182
|
+
});
|
|
1183
|
+
function o(u, s) {
|
|
1184
|
+
for (var _ in s) Object.defineProperty(u, _, {
|
|
1185
|
+
enumerable: !0,
|
|
1186
|
+
get: s[_]
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
o(r, {
|
|
1190
|
+
RequestCookies: function() {
|
|
1191
|
+
return l.RequestCookies;
|
|
1192
|
+
},
|
|
1193
|
+
ResponseCookies: function() {
|
|
1194
|
+
return l.ResponseCookies;
|
|
1195
|
+
},
|
|
1196
|
+
stringifyCookie: function() {
|
|
1197
|
+
return l.stringifyCookie;
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
const l = qr();
|
|
1201
|
+
}(Xe)), Xe;
|
|
1202
|
+
}
|
|
1203
|
+
var Xt;
|
|
1204
|
+
function Mr() {
|
|
1205
|
+
return Xt || (Xt = 1, function(r) {
|
|
1206
|
+
Object.defineProperty(r, "__esModule", {
|
|
1207
|
+
value: !0
|
|
1208
|
+
});
|
|
1209
|
+
function o(a, h) {
|
|
1210
|
+
for (var i in h) Object.defineProperty(a, i, {
|
|
1211
|
+
enumerable: !0,
|
|
1212
|
+
get: h[i]
|
|
1213
|
+
});
|
|
1214
|
+
}
|
|
1215
|
+
o(r, {
|
|
1216
|
+
INTERNALS: function() {
|
|
1217
|
+
return n;
|
|
1218
|
+
},
|
|
1219
|
+
NextRequest: function() {
|
|
1220
|
+
return e;
|
|
1221
|
+
}
|
|
1222
|
+
});
|
|
1223
|
+
const l = Er(), u = Rr(), s = Lr(), _ = ht(), n = Symbol("internal request");
|
|
1224
|
+
class e extends Request {
|
|
1225
|
+
constructor(h, i = {}) {
|
|
1226
|
+
const c = typeof h != "string" && "url" in h ? h.url : String(h);
|
|
1227
|
+
(0, u.validateURL)(c), process.env.NEXT_RUNTIME !== "edge" && i.body && i.duplex !== "half" && (i.duplex = "half"), h instanceof Request ? super(h, i) : super(c, i);
|
|
1228
|
+
const E = new l.NextURL(c, {
|
|
1229
|
+
headers: (0, u.toNodeOutgoingHttpHeaders)(this.headers),
|
|
1230
|
+
nextConfig: i.nextConfig
|
|
1231
|
+
});
|
|
1232
|
+
this[n] = {
|
|
1233
|
+
cookies: new _.RequestCookies(this.headers),
|
|
1234
|
+
nextUrl: E,
|
|
1235
|
+
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? c : E.toString()
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1239
|
+
return {
|
|
1240
|
+
cookies: this.cookies,
|
|
1241
|
+
nextUrl: this.nextUrl,
|
|
1242
|
+
url: this.url,
|
|
1243
|
+
// rest of props come from Request
|
|
1244
|
+
bodyUsed: this.bodyUsed,
|
|
1245
|
+
cache: this.cache,
|
|
1246
|
+
credentials: this.credentials,
|
|
1247
|
+
destination: this.destination,
|
|
1248
|
+
headers: Object.fromEntries(this.headers),
|
|
1249
|
+
integrity: this.integrity,
|
|
1250
|
+
keepalive: this.keepalive,
|
|
1251
|
+
method: this.method,
|
|
1252
|
+
mode: this.mode,
|
|
1253
|
+
redirect: this.redirect,
|
|
1254
|
+
referrer: this.referrer,
|
|
1255
|
+
referrerPolicy: this.referrerPolicy,
|
|
1256
|
+
signal: this.signal
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
get cookies() {
|
|
1260
|
+
return this[n].cookies;
|
|
1261
|
+
}
|
|
1262
|
+
get nextUrl() {
|
|
1263
|
+
return this[n].nextUrl;
|
|
1264
|
+
}
|
|
1265
|
+
/**
|
|
1266
|
+
* @deprecated
|
|
1267
|
+
* `page` has been deprecated in favour of `URLPattern`.
|
|
1268
|
+
* Read more: https://nextjs.org/docs/messages/middleware-request-page
|
|
1269
|
+
*/
|
|
1270
|
+
get page() {
|
|
1271
|
+
throw new s.RemovedPageError();
|
|
1272
|
+
}
|
|
1273
|
+
/**
|
|
1274
|
+
* @deprecated
|
|
1275
|
+
* `ua` has been removed in favour of \`userAgent\` function.
|
|
1276
|
+
* Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
|
|
1277
|
+
*/
|
|
1278
|
+
get ua() {
|
|
1279
|
+
throw new s.RemovedUAError();
|
|
1280
|
+
}
|
|
1281
|
+
get url() {
|
|
1282
|
+
return this[n].url;
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
}(Ae)), Ae;
|
|
1286
|
+
}
|
|
1287
|
+
var Fe = {}, $e = {}, Gt;
|
|
1288
|
+
function Ur() {
|
|
1289
|
+
return Gt || (Gt = 1, function(r) {
|
|
1290
|
+
Object.defineProperty(r, "__esModule", {
|
|
1291
|
+
value: !0
|
|
1292
|
+
}), Object.defineProperty(r, "ReflectAdapter", {
|
|
1293
|
+
enumerable: !0,
|
|
1294
|
+
get: function() {
|
|
1295
|
+
return o;
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
class o {
|
|
1299
|
+
static get(u, s, _) {
|
|
1300
|
+
const n = Reflect.get(u, s, _);
|
|
1301
|
+
return typeof n == "function" ? n.bind(u) : n;
|
|
1302
|
+
}
|
|
1303
|
+
static set(u, s, _, n) {
|
|
1304
|
+
return Reflect.set(u, s, _, n);
|
|
1305
|
+
}
|
|
1306
|
+
static has(u, s) {
|
|
1307
|
+
return Reflect.has(u, s);
|
|
1308
|
+
}
|
|
1309
|
+
static deleteProperty(u, s) {
|
|
1310
|
+
return Reflect.deleteProperty(u, s);
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
}($e)), $e;
|
|
1314
|
+
}
|
|
1315
|
+
var Ft;
|
|
1316
|
+
function Hr() {
|
|
1317
|
+
return Ft || (Ft = 1, function(r) {
|
|
1318
|
+
Object.defineProperty(r, "__esModule", {
|
|
1319
|
+
value: !0
|
|
1320
|
+
}), Object.defineProperty(r, "NextResponse", {
|
|
1321
|
+
enumerable: !0,
|
|
1322
|
+
get: function() {
|
|
1323
|
+
return h;
|
|
1324
|
+
}
|
|
1325
|
+
});
|
|
1326
|
+
const o = ht(), l = Er(), u = Rr(), s = Ur(), _ = ht(), n = Symbol("internal response"), e = /* @__PURE__ */ new Set([
|
|
1327
|
+
301,
|
|
1328
|
+
302,
|
|
1329
|
+
303,
|
|
1330
|
+
307,
|
|
1331
|
+
308
|
|
1332
|
+
]);
|
|
1333
|
+
function a(i, c) {
|
|
1334
|
+
var E;
|
|
1335
|
+
if (!(i == null || (E = i.request) == null) && E.headers) {
|
|
1336
|
+
if (!(i.request.headers instanceof Headers))
|
|
1337
|
+
throw Object.defineProperty(new Error("request.headers must be an instance of Headers"), "__NEXT_ERROR_CODE", {
|
|
1338
|
+
value: "E119",
|
|
1339
|
+
enumerable: !1,
|
|
1340
|
+
configurable: !0
|
|
1341
|
+
});
|
|
1342
|
+
const P = [];
|
|
1343
|
+
for (const [T, I] of i.request.headers)
|
|
1344
|
+
c.set("x-middleware-request-" + T, I), P.push(T);
|
|
1345
|
+
c.set("x-middleware-override-headers", P.join(","));
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
class h extends Response {
|
|
1349
|
+
constructor(c, E = {}) {
|
|
1350
|
+
super(c, E);
|
|
1351
|
+
const P = this.headers, T = new _.ResponseCookies(P), I = new Proxy(T, {
|
|
1352
|
+
get(d, b, f) {
|
|
1353
|
+
switch (b) {
|
|
1354
|
+
case "delete":
|
|
1355
|
+
case "set":
|
|
1356
|
+
return (...p) => {
|
|
1357
|
+
const y = Reflect.apply(d[b], d, p), t = new Headers(P);
|
|
1358
|
+
return y instanceof _.ResponseCookies && P.set("x-middleware-set-cookie", y.getAll().map((v) => (0, o.stringifyCookie)(v)).join(",")), a(E, t), y;
|
|
1359
|
+
};
|
|
1360
|
+
default:
|
|
1361
|
+
return s.ReflectAdapter.get(d, b, f);
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1365
|
+
this[n] = {
|
|
1366
|
+
cookies: I,
|
|
1367
|
+
url: E.url ? new l.NextURL(E.url, {
|
|
1368
|
+
headers: (0, u.toNodeOutgoingHttpHeaders)(P),
|
|
1369
|
+
nextConfig: E.nextConfig
|
|
1370
|
+
}) : void 0
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1374
|
+
return {
|
|
1375
|
+
cookies: this.cookies,
|
|
1376
|
+
url: this.url,
|
|
1377
|
+
// rest of props come from Response
|
|
1378
|
+
body: this.body,
|
|
1379
|
+
bodyUsed: this.bodyUsed,
|
|
1380
|
+
headers: Object.fromEntries(this.headers),
|
|
1381
|
+
ok: this.ok,
|
|
1382
|
+
redirected: this.redirected,
|
|
1383
|
+
status: this.status,
|
|
1384
|
+
statusText: this.statusText,
|
|
1385
|
+
type: this.type
|
|
1386
|
+
};
|
|
1387
|
+
}
|
|
1388
|
+
get cookies() {
|
|
1389
|
+
return this[n].cookies;
|
|
1390
|
+
}
|
|
1391
|
+
static json(c, E) {
|
|
1392
|
+
const P = Response.json(c, E);
|
|
1393
|
+
return new h(P.body, P);
|
|
1394
|
+
}
|
|
1395
|
+
static redirect(c, E) {
|
|
1396
|
+
const P = typeof E == "number" ? E : (E == null ? void 0 : E.status) ?? 307;
|
|
1397
|
+
if (!e.has(P))
|
|
1398
|
+
throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'), "__NEXT_ERROR_CODE", {
|
|
1399
|
+
value: "E529",
|
|
1400
|
+
enumerable: !1,
|
|
1401
|
+
configurable: !0
|
|
1402
|
+
});
|
|
1403
|
+
const T = typeof E == "object" ? E : {}, I = new Headers(T == null ? void 0 : T.headers);
|
|
1404
|
+
return I.set("Location", (0, u.validateURL)(c)), new h(null, {
|
|
1405
|
+
...T,
|
|
1406
|
+
headers: I,
|
|
1407
|
+
status: P
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
static rewrite(c, E) {
|
|
1411
|
+
const P = new Headers(E == null ? void 0 : E.headers);
|
|
1412
|
+
return P.set("x-middleware-rewrite", (0, u.validateURL)(c)), a(E, P), new h(null, {
|
|
1413
|
+
...E,
|
|
1414
|
+
headers: P
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
static next(c) {
|
|
1418
|
+
const E = new Headers(c == null ? void 0 : c.headers);
|
|
1419
|
+
return E.set("x-middleware-next", "1"), a(c, E), new h(null, {
|
|
1420
|
+
...c,
|
|
1421
|
+
headers: E
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}(Fe)), Fe;
|
|
1426
|
+
}
|
|
1427
|
+
var Be = {}, $t;
|
|
1428
|
+
function Xr() {
|
|
1429
|
+
return $t || ($t = 1, function(r) {
|
|
1430
|
+
Object.defineProperty(r, "__esModule", {
|
|
1431
|
+
value: !0
|
|
1432
|
+
}), Object.defineProperty(r, "ImageResponse", {
|
|
1433
|
+
enumerable: !0,
|
|
1434
|
+
get: function() {
|
|
1435
|
+
return o;
|
|
1436
|
+
}
|
|
1437
|
+
});
|
|
1438
|
+
function o() {
|
|
1439
|
+
throw Object.defineProperty(new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'), "__NEXT_ERROR_CODE", {
|
|
1440
|
+
value: "E183",
|
|
1441
|
+
enumerable: !1,
|
|
1442
|
+
configurable: !0
|
|
1443
|
+
});
|
|
1444
|
+
}
|
|
1445
|
+
}(Be)), Be;
|
|
1446
|
+
}
|
|
1447
|
+
var We = {}, ze = { exports: {} }, Bt;
|
|
1448
|
+
function Gr() {
|
|
1449
|
+
return Bt || (Bt = 1, (() => {
|
|
1450
|
+
var r = { 226: function(s, _) {
|
|
1451
|
+
(function(n, e) {
|
|
1452
|
+
var a = "1.0.35", h = "", i = "?", c = "function", E = "undefined", P = "object", T = "string", I = "major", d = "model", b = "name", f = "type", p = "vendor", y = "version", t = "architecture", v = "console", m = "mobile", w = "tablet", S = "smarttv", j = "wearable", X = "embedded", U = 350, G = "Amazon", H = "Apple", Q = "ASUS", Z = "BlackBerry", F = "Browser", z = "Chrome", J = "Edge", V = "Firefox", ee = "Google", le = "Huawei", oe = "LG", ae = "Microsoft", de = "Motorola", te = "Opera", se = "Samsung", fe = "Sharp", re = "Sony", ue = "Xiaomi", R = "Zebra", g = "Facebook", A = "Chromium OS", C = "Mac OS", M = function(D, L) {
|
|
1453
|
+
var N = {};
|
|
1454
|
+
for (var q in D)
|
|
1455
|
+
L[q] && L[q].length % 2 === 0 ? N[q] = L[q].concat(D[q]) : N[q] = D[q];
|
|
1456
|
+
return N;
|
|
1457
|
+
}, O = function(D) {
|
|
1458
|
+
for (var L = {}, N = 0; N < D.length; N++)
|
|
1459
|
+
L[D[N].toUpperCase()] = D[N];
|
|
1460
|
+
return L;
|
|
1461
|
+
}, B = function(D, L) {
|
|
1462
|
+
return typeof D === T ? W(L).indexOf(W(D)) !== -1 : !1;
|
|
1463
|
+
}, W = function(D) {
|
|
1464
|
+
return D.toLowerCase();
|
|
1465
|
+
}, ce = function(D) {
|
|
1466
|
+
return typeof D === T ? D.replace(/[^\d\.]/g, h).split(".")[0] : e;
|
|
1467
|
+
}, he = function(D, L) {
|
|
1468
|
+
if (typeof D === T)
|
|
1469
|
+
return D = D.replace(/^\s\s*/, h), typeof L === E ? D : D.substring(0, U);
|
|
1470
|
+
}, ne = function(D, L) {
|
|
1471
|
+
for (var N = 0, q, ie, Y, k, x, K; N < L.length && !x; ) {
|
|
1472
|
+
var ve = L[N], wt = L[N + 1];
|
|
1473
|
+
for (q = ie = 0; q < ve.length && !x && ve[q]; )
|
|
1474
|
+
if (x = ve[q++].exec(D), x)
|
|
1475
|
+
for (Y = 0; Y < wt.length; Y++)
|
|
1476
|
+
K = x[++ie], k = wt[Y], typeof k === P && k.length > 0 ? k.length === 2 ? typeof k[1] == c ? this[k[0]] = k[1].call(this, K) : this[k[0]] = k[1] : k.length === 3 ? typeof k[1] === c && !(k[1].exec && k[1].test) ? this[k[0]] = K ? k[1].call(this, K, k[2]) : e : this[k[0]] = K ? K.replace(k[1], k[2]) : e : k.length === 4 && (this[k[0]] = K ? k[3].call(this, K.replace(k[1], k[2])) : e) : this[k] = K || e;
|
|
1477
|
+
N += 2;
|
|
1478
|
+
}
|
|
1479
|
+
}, we = function(D, L) {
|
|
1480
|
+
for (var N in L)
|
|
1481
|
+
if (typeof L[N] === P && L[N].length > 0) {
|
|
1482
|
+
for (var q = 0; q < L[N].length; q++)
|
|
1483
|
+
if (B(L[N][q], D))
|
|
1484
|
+
return N === i ? e : N;
|
|
1485
|
+
} else if (B(L[N], D))
|
|
1486
|
+
return N === i ? e : N;
|
|
1487
|
+
return D;
|
|
1488
|
+
}, wr = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Rt = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, yt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [y, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [y, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, y], [/opios[\/ ]+([\w\.]+)/i], [y, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [y, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, y], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [y, [b, "UC" + F]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [y, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [y, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [y, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [y, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [y, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + F], y], [/\bfocus\/([\w\.]+)/i], [y, [b, V + " Focus"]], [/\bopt\/([\w\.]+)/i], [y, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [y, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [y, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [y, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [y, [b, "MIUI " + F]], [/fxios\/([-\w\.]+)/i], [y, [b, V]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + F]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + F], y], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], y], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, y], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, g], y], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, y], [/\bgsa\/([\w\.]+) .*safari\//i], [y, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [y, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [y, [b, z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, z + " WebView"], y], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [y, [b, "Android " + F]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, y], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [y, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [y, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [y, we, wr]], [/(webkit|khtml)\/([\w\.]+)/i], [b, y], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], y], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [y, [b, V + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, y], [/(cobalt)\/([\w\.]+)/i], [b, [y, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[t, "amd64"]], [/(ia32(?=;))/i], [[t, W]], [/((?:i[346]|x)86)[;\)]/i], [[t, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[t, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[t, "armhf"]], [/windows (ce|mobile); ppc;/i], [[t, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[t, /ower/, h, W]], [/(sun4\w)[;\)]/i], [[t, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[t, W]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [d, [p, se], [f, w]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [d, [p, se], [f, m]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [d, [p, H], [f, m]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [d, [p, H], [f, w]], [/(macintosh);/i], [d, [p, H]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [d, [p, fe], [f, m]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [d, [p, le], [f, w]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [d, [p, le], [f, m]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[d, /_/g, " "], [p, ue], [f, m]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[d, /_/g, " "], [p, ue], [f, w]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [d, [p, "OPPO"], [f, m]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [d, [p, "Vivo"], [f, m]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [d, [p, "Realme"], [f, m]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [d, [p, de], [f, m]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [d, [p, de], [f, w]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [d, [p, oe], [f, w]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [d, [p, oe], [f, m]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [d, [p, "Lenovo"], [f, w]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[d, /_/g, " "], [p, "Nokia"], [f, m]], [/(pixel c)\b/i], [d, [p, ee], [f, w]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [d, [p, ee], [f, m]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [d, [p, re], [f, m]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[d, "Xperia Tablet"], [p, re], [f, w]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [d, [p, "OnePlus"], [f, m]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [d, [p, G], [f, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[d, /(.+)/g, "Fire Phone $1"], [p, G], [f, m]], [/(playbook);[-\w\),; ]+(rim)/i], [d, p, [f, w]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [d, [p, Z], [f, m]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [d, [p, Q], [f, w]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [d, [p, Q], [f, m]], [/(nexus 9)/i], [d, [p, "HTC"], [f, w]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [p, [d, /_/g, " "], [f, m]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [d, [p, "Acer"], [f, w]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [d, [p, "Meizu"], [f, m]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [p, d, [f, m]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [p, d, [f, w]], [/(surface duo)/i], [d, [p, ae], [f, w]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [d, [p, "Fairphone"], [f, m]], [/(u304aa)/i], [d, [p, "AT&T"], [f, m]], [/\bsie-(\w*)/i], [d, [p, "Siemens"], [f, m]], [/\b(rct\w+) b/i], [d, [p, "RCA"], [f, w]], [/\b(venue[\d ]{2,7}) b/i], [d, [p, "Dell"], [f, w]], [/\b(q(?:mv|ta)\w+) b/i], [d, [p, "Verizon"], [f, w]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [d, [p, "Barnes & Noble"], [f, w]], [/\b(tm\d{3}\w+) b/i], [d, [p, "NuVision"], [f, w]], [/\b(k88) b/i], [d, [p, "ZTE"], [f, w]], [/\b(nx\d{3}j) b/i], [d, [p, "ZTE"], [f, m]], [/\b(gen\d{3}) b.+49h/i], [d, [p, "Swiss"], [f, m]], [/\b(zur\d{3}) b/i], [d, [p, "Swiss"], [f, w]], [/\b((zeki)?tb.*\b) b/i], [d, [p, "Zeki"], [f, w]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[p, "Dragon Touch"], d, [f, w]], [/\b(ns-?\w{0,9}) b/i], [d, [p, "Insignia"], [f, w]], [/\b((nxa|next)-?\w{0,9}) b/i], [d, [p, "NextBook"], [f, w]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[p, "Voice"], d, [f, m]], [/\b(lvtel\-)?(v1[12]) b/i], [[p, "LvTel"], d, [f, m]], [/\b(ph-1) /i], [d, [p, "Essential"], [f, m]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [d, [p, "Envizen"], [f, w]], [/\b(trio[-\w\. ]+) b/i], [d, [p, "MachSpeed"], [f, w]], [/\btu_(1491) b/i], [d, [p, "Rotor"], [f, w]], [/(shield[\w ]+) b/i], [d, [p, "Nvidia"], [f, w]], [/(sprint) (\w+)/i], [p, d, [f, m]], [/(kin\.[onetw]{3})/i], [[d, /\./g, " "], [p, ae], [f, m]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [d, [p, R], [f, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [d, [p, R], [f, m]], [/smart-tv.+(samsung)/i], [p, [f, S]], [/hbbtv.+maple;(\d+)/i], [[d, /^/, "SmartTV"], [p, se], [f, S]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[p, oe], [f, S]], [/(apple) ?tv/i], [p, [d, H + " TV"], [f, S]], [/crkey/i], [[d, z + "cast"], [p, ee], [f, S]], [/droid.+aft(\w)( bui|\))/i], [d, [p, G], [f, S]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [d, [p, fe], [f, S]], [/(bravia[\w ]+)( bui|\))/i], [d, [p, re], [f, S]], [/(mitv-\w{5}) bui/i], [d, [p, ue], [f, S]], [/Hbbtv.*(technisat) (.*);/i], [p, d, [f, S]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[p, he], [d, he], [f, S]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[f, S]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [p, d, [f, v]], [/droid.+; (shield) bui/i], [d, [p, "Nvidia"], [f, v]], [/(playstation [345portablevi]+)/i], [d, [p, re], [f, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [d, [p, ae], [f, v]], [/((pebble))app/i], [p, d, [f, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [d, [p, H], [f, j]], [/droid.+; (glass) \d/i], [d, [p, ee], [f, j]], [/droid.+; (wt63?0{2,3})\)/i], [d, [p, R], [f, j]], [/(quest( 2| pro)?)/i], [d, [p, g], [f, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [p, [f, X]], [/(aeobc)\b/i], [d, [p, G], [f, X]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [d, [f, m]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [d, [f, w]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[f, w]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[f, m]], [/(android[-\w\. ]{0,9});.+buil/i], [d, [p, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [y, [b, J + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [y, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, y], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [y, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, y], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [y, we, Rt]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [y, we, Rt]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[y, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, C], [y, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [y, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, y], [/\(bb(10);/i], [y, [b, Z]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [y, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [y, [b, V + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [y, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [y, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [y, [b, z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, A], y], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, y], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], y], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, y]] }, $ = function(D, L) {
|
|
1489
|
+
if (typeof D === P && (L = D, D = e), !(this instanceof $))
|
|
1490
|
+
return new $(D, L).getResult();
|
|
1491
|
+
var N = typeof n !== E && n.navigator ? n.navigator : e, q = D || (N && N.userAgent ? N.userAgent : h), ie = N && N.userAgentData ? N.userAgentData : e, Y = L ? M(yt, L) : yt, k = N && N.userAgent == q;
|
|
1492
|
+
return this.getBrowser = function() {
|
|
1493
|
+
var x = {};
|
|
1494
|
+
return x[b] = e, x[y] = e, ne.call(x, q, Y.browser), x[I] = ce(x[y]), k && N && N.brave && typeof N.brave.isBrave == c && (x[b] = "Brave"), x;
|
|
1495
|
+
}, this.getCPU = function() {
|
|
1496
|
+
var x = {};
|
|
1497
|
+
return x[t] = e, ne.call(x, q, Y.cpu), x;
|
|
1498
|
+
}, this.getDevice = function() {
|
|
1499
|
+
var x = {};
|
|
1500
|
+
return x[p] = e, x[d] = e, x[f] = e, ne.call(x, q, Y.device), k && !x[f] && ie && ie.mobile && (x[f] = m), k && x[d] == "Macintosh" && N && typeof N.standalone !== E && N.maxTouchPoints && N.maxTouchPoints > 2 && (x[d] = "iPad", x[f] = w), x;
|
|
1501
|
+
}, this.getEngine = function() {
|
|
1502
|
+
var x = {};
|
|
1503
|
+
return x[b] = e, x[y] = e, ne.call(x, q, Y.engine), x;
|
|
1504
|
+
}, this.getOS = function() {
|
|
1505
|
+
var x = {};
|
|
1506
|
+
return x[b] = e, x[y] = e, ne.call(x, q, Y.os), k && !x[b] && ie && ie.platform != "Unknown" && (x[b] = ie.platform.replace(/chrome os/i, A).replace(/macos/i, C)), x;
|
|
1507
|
+
}, this.getResult = function() {
|
|
1508
|
+
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1509
|
+
}, this.getUA = function() {
|
|
1510
|
+
return q;
|
|
1511
|
+
}, this.setUA = function(x) {
|
|
1512
|
+
return q = typeof x === T && x.length > U ? he(x, U) : x, this;
|
|
1513
|
+
}, this.setUA(q), this;
|
|
1514
|
+
};
|
|
1515
|
+
$.VERSION = a, $.BROWSER = O([b, y, I]), $.CPU = O([t]), $.DEVICE = O([d, p, f, v, m, S, w, j, X]), $.ENGINE = $.OS = O([b, y]), typeof _ !== E ? (s.exports && (_ = s.exports = $), _.UAParser = $) : typeof n !== E && (n.UAParser = $);
|
|
1516
|
+
var _e = typeof n !== E && (n.jQuery || n.Zepto);
|
|
1517
|
+
if (_e && !_e.ua) {
|
|
1518
|
+
var pe = new $();
|
|
1519
|
+
_e.ua = pe.getResult(), _e.ua.get = function() {
|
|
1520
|
+
return pe.getUA();
|
|
1521
|
+
}, _e.ua.set = function(D) {
|
|
1522
|
+
pe.setUA(D);
|
|
1523
|
+
var L = pe.getResult();
|
|
1524
|
+
for (var N in L)
|
|
1525
|
+
_e.ua[N] = L[N];
|
|
1526
|
+
};
|
|
1527
|
+
}
|
|
1528
|
+
})(typeof window == "object" ? window : this);
|
|
1529
|
+
} }, o = {};
|
|
1530
|
+
function l(s) {
|
|
1531
|
+
var _ = o[s];
|
|
1532
|
+
if (_ !== void 0)
|
|
1533
|
+
return _.exports;
|
|
1534
|
+
var n = o[s] = { exports: {} }, e = !0;
|
|
1535
|
+
try {
|
|
1536
|
+
r[s].call(n.exports, n, n.exports, l), e = !1;
|
|
1537
|
+
} finally {
|
|
1538
|
+
e && delete o[s];
|
|
1539
|
+
}
|
|
1540
|
+
return n.exports;
|
|
1541
|
+
}
|
|
1542
|
+
typeof l < "u" && (l.ab = __dirname + "/");
|
|
1543
|
+
var u = l(226);
|
|
1544
|
+
ze.exports = u;
|
|
1545
|
+
})()), ze.exports;
|
|
1546
|
+
}
|
|
1547
|
+
var Wt;
|
|
1548
|
+
function zt() {
|
|
1549
|
+
return Wt || (Wt = 1, function(r) {
|
|
1550
|
+
Object.defineProperty(r, "__esModule", {
|
|
1551
|
+
value: !0
|
|
1552
|
+
});
|
|
1553
|
+
function o(e, a) {
|
|
1554
|
+
for (var h in a) Object.defineProperty(e, h, {
|
|
1555
|
+
enumerable: !0,
|
|
1556
|
+
get: a[h]
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
o(r, {
|
|
1560
|
+
isBot: function() {
|
|
1561
|
+
return s;
|
|
1562
|
+
},
|
|
1563
|
+
userAgent: function() {
|
|
1564
|
+
return n;
|
|
1565
|
+
},
|
|
1566
|
+
userAgentFromString: function() {
|
|
1567
|
+
return _;
|
|
1568
|
+
}
|
|
1569
|
+
});
|
|
1570
|
+
const l = /* @__PURE__ */ u(Gr());
|
|
1571
|
+
function u(e) {
|
|
1572
|
+
return e && e.__esModule ? e : {
|
|
1573
|
+
default: e
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
function s(e) {
|
|
1577
|
+
return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e);
|
|
1578
|
+
}
|
|
1579
|
+
function _(e) {
|
|
1580
|
+
return {
|
|
1581
|
+
...(0, l.default)(e),
|
|
1582
|
+
isBot: e === void 0 ? !1 : s(e)
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
function n({ headers: e }) {
|
|
1586
|
+
return _(e.get("user-agent") || void 0);
|
|
1587
|
+
}
|
|
1588
|
+
}(We)), We;
|
|
1589
|
+
}
|
|
1590
|
+
var Ve = {}, Vt;
|
|
1591
|
+
function Fr() {
|
|
1592
|
+
return Vt || (Vt = 1, function(r) {
|
|
1593
|
+
Object.defineProperty(r, "__esModule", {
|
|
1594
|
+
value: !0
|
|
1595
|
+
}), Object.defineProperty(r, "URLPattern", {
|
|
1596
|
+
enumerable: !0,
|
|
1597
|
+
get: function() {
|
|
1598
|
+
return o;
|
|
1599
|
+
}
|
|
1600
|
+
});
|
|
1601
|
+
const o = (
|
|
1602
|
+
// @ts-expect-error: URLPattern is not available in Node.js
|
|
1603
|
+
typeof URLPattern > "u" ? void 0 : URLPattern
|
|
1604
|
+
);
|
|
1605
|
+
}(Ve)), Ve;
|
|
1606
|
+
}
|
|
1607
|
+
var Ye = {}, Ke = {}, Qe = {}, Ze = {}, Je = {}, Yt;
|
|
1608
|
+
function mt() {
|
|
1609
|
+
return Yt || (Yt = 1, function(r) {
|
|
1610
|
+
Object.defineProperty(r, "__esModule", {
|
|
1611
|
+
value: !0
|
|
1612
|
+
});
|
|
1613
|
+
function o(a, h) {
|
|
1614
|
+
for (var i in h) Object.defineProperty(a, i, {
|
|
1615
|
+
enumerable: !0,
|
|
1616
|
+
get: h[i]
|
|
1617
|
+
});
|
|
1618
|
+
}
|
|
1619
|
+
o(r, {
|
|
1620
|
+
bindSnapshot: function() {
|
|
1621
|
+
return n;
|
|
1622
|
+
},
|
|
1623
|
+
createAsyncLocalStorage: function() {
|
|
1624
|
+
return _;
|
|
1625
|
+
},
|
|
1626
|
+
createSnapshot: function() {
|
|
1627
|
+
return e;
|
|
1628
|
+
}
|
|
1629
|
+
});
|
|
1630
|
+
const l = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
1631
|
+
value: "E504",
|
|
1632
|
+
enumerable: !1,
|
|
1633
|
+
configurable: !0
|
|
1634
|
+
});
|
|
1635
|
+
class u {
|
|
1636
|
+
disable() {
|
|
1637
|
+
throw l;
|
|
1638
|
+
}
|
|
1639
|
+
getStore() {
|
|
1640
|
+
}
|
|
1641
|
+
run() {
|
|
1642
|
+
throw l;
|
|
1643
|
+
}
|
|
1644
|
+
exit() {
|
|
1645
|
+
throw l;
|
|
1646
|
+
}
|
|
1647
|
+
enterWith() {
|
|
1648
|
+
throw l;
|
|
1649
|
+
}
|
|
1650
|
+
static bind(h) {
|
|
1651
|
+
return h;
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
const s = typeof globalThis < "u" && globalThis.AsyncLocalStorage;
|
|
1655
|
+
function _() {
|
|
1656
|
+
return s ? new s() : new u();
|
|
1657
|
+
}
|
|
1658
|
+
function n(a) {
|
|
1659
|
+
return s ? s.bind(a) : u.bind(a);
|
|
1660
|
+
}
|
|
1661
|
+
function e() {
|
|
1662
|
+
return s ? s.snapshot() : function(a, ...h) {
|
|
1663
|
+
return a(...h);
|
|
1664
|
+
};
|
|
1665
|
+
}
|
|
1666
|
+
}(Je)), Je;
|
|
1667
|
+
}
|
|
1668
|
+
var Kt;
|
|
1669
|
+
function $r() {
|
|
1670
|
+
return Kt || (Kt = 1, function(r) {
|
|
1671
|
+
Object.defineProperty(r, "__esModule", {
|
|
1672
|
+
value: !0
|
|
1673
|
+
}), Object.defineProperty(r, "workAsyncStorageInstance", {
|
|
1674
|
+
enumerable: !0,
|
|
1675
|
+
get: function() {
|
|
1676
|
+
return l;
|
|
1677
|
+
}
|
|
1678
|
+
});
|
|
1679
|
+
const l = (0, mt().createAsyncLocalStorage)();
|
|
1680
|
+
}(Ze)), Ze;
|
|
1681
|
+
}
|
|
1682
|
+
var Qt;
|
|
1683
|
+
function ye() {
|
|
1684
|
+
return Qt || (Qt = 1, function(r) {
|
|
1685
|
+
Object.defineProperty(r, "__esModule", {
|
|
1686
|
+
value: !0
|
|
1687
|
+
}), Object.defineProperty(r, "workAsyncStorage", {
|
|
1688
|
+
enumerable: !0,
|
|
1689
|
+
get: function() {
|
|
1690
|
+
return o.workAsyncStorageInstance;
|
|
1691
|
+
}
|
|
1692
|
+
});
|
|
1693
|
+
const o = $r();
|
|
1694
|
+
}(Qe)), Qe;
|
|
1695
|
+
}
|
|
1696
|
+
var Zt;
|
|
1697
|
+
function Br() {
|
|
1698
|
+
return Zt || (Zt = 1, function(r) {
|
|
1699
|
+
Object.defineProperty(r, "__esModule", {
|
|
1700
|
+
value: !0
|
|
1701
|
+
}), Object.defineProperty(r, "after", {
|
|
1702
|
+
enumerable: !0,
|
|
1703
|
+
get: function() {
|
|
1704
|
+
return l;
|
|
1705
|
+
}
|
|
1706
|
+
});
|
|
1707
|
+
const o = ye();
|
|
1708
|
+
function l(u) {
|
|
1709
|
+
const s = o.workAsyncStorage.getStore();
|
|
1710
|
+
if (!s)
|
|
1711
|
+
throw Object.defineProperty(new Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"), "__NEXT_ERROR_CODE", {
|
|
1712
|
+
value: "E468",
|
|
1713
|
+
enumerable: !1,
|
|
1714
|
+
configurable: !0
|
|
1715
|
+
});
|
|
1716
|
+
const { afterContext: _ } = s;
|
|
1717
|
+
return _.after(u);
|
|
1718
|
+
}
|
|
1719
|
+
}(Ke)), Ke;
|
|
1720
|
+
}
|
|
1721
|
+
var Jt;
|
|
1722
|
+
function Wr() {
|
|
1723
|
+
return Jt || (Jt = 1, function(r) {
|
|
1724
|
+
Object.defineProperty(r, "__esModule", {
|
|
1725
|
+
value: !0
|
|
1726
|
+
}), o(Br(), r);
|
|
1727
|
+
function o(l, u) {
|
|
1728
|
+
return Object.keys(l).forEach(function(s) {
|
|
1729
|
+
s !== "default" && !Object.prototype.hasOwnProperty.call(u, s) && Object.defineProperty(u, s, {
|
|
1730
|
+
enumerable: !0,
|
|
1731
|
+
get: function() {
|
|
1732
|
+
return l[s];
|
|
1733
|
+
}
|
|
1734
|
+
});
|
|
1735
|
+
}), l;
|
|
1736
|
+
}
|
|
1737
|
+
}(Ye)), Ye;
|
|
1738
|
+
}
|
|
1739
|
+
var et = {}, tt = {}, rt = {}, er;
|
|
1740
|
+
function zr() {
|
|
1741
|
+
return er || (er = 1, function(r) {
|
|
1742
|
+
Object.defineProperty(r, "__esModule", {
|
|
1743
|
+
value: !0
|
|
1744
|
+
}), Object.defineProperty(r, "workUnitAsyncStorageInstance", {
|
|
1745
|
+
enumerable: !0,
|
|
1746
|
+
get: function() {
|
|
1747
|
+
return l;
|
|
1748
|
+
}
|
|
1749
|
+
});
|
|
1750
|
+
const l = (0, mt().createAsyncLocalStorage)();
|
|
1751
|
+
}(rt)), rt;
|
|
1752
|
+
}
|
|
1753
|
+
var be = { exports: {} }, tr;
|
|
1754
|
+
function Vr() {
|
|
1755
|
+
return tr || (tr = 1, function(r, o) {
|
|
1756
|
+
Object.defineProperty(o, "__esModule", {
|
|
1757
|
+
value: !0
|
|
1758
|
+
});
|
|
1759
|
+
function l(p, y) {
|
|
1760
|
+
for (var t in y) Object.defineProperty(p, t, {
|
|
1761
|
+
enumerable: !0,
|
|
1762
|
+
get: y[t]
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
l(o, {
|
|
1766
|
+
ACTION_HEADER: function() {
|
|
1767
|
+
return s;
|
|
1768
|
+
},
|
|
1769
|
+
FLIGHT_HEADERS: function() {
|
|
1770
|
+
return E;
|
|
1771
|
+
},
|
|
1772
|
+
NEXT_DID_POSTPONE_HEADER: function() {
|
|
1773
|
+
return I;
|
|
1774
|
+
},
|
|
1775
|
+
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
1776
|
+
return h;
|
|
1777
|
+
},
|
|
1778
|
+
NEXT_HMR_REFRESH_HEADER: function() {
|
|
1779
|
+
return a;
|
|
1780
|
+
},
|
|
1781
|
+
NEXT_IS_PRERENDER_HEADER: function() {
|
|
1782
|
+
return f;
|
|
1783
|
+
},
|
|
1784
|
+
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
1785
|
+
return d;
|
|
1786
|
+
},
|
|
1787
|
+
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
1788
|
+
return b;
|
|
1789
|
+
},
|
|
1790
|
+
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
1791
|
+
return n;
|
|
1792
|
+
},
|
|
1793
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
1794
|
+
return e;
|
|
1795
|
+
},
|
|
1796
|
+
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
1797
|
+
return T;
|
|
1798
|
+
},
|
|
1799
|
+
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
1800
|
+
return _;
|
|
1801
|
+
},
|
|
1802
|
+
NEXT_RSC_UNION_QUERY: function() {
|
|
1803
|
+
return P;
|
|
1804
|
+
},
|
|
1805
|
+
NEXT_URL: function() {
|
|
1806
|
+
return i;
|
|
1807
|
+
},
|
|
1808
|
+
RSC_CONTENT_TYPE_HEADER: function() {
|
|
1809
|
+
return c;
|
|
1810
|
+
},
|
|
1811
|
+
RSC_HEADER: function() {
|
|
1812
|
+
return u;
|
|
1813
|
+
}
|
|
1814
|
+
});
|
|
1815
|
+
const u = "RSC", s = "Next-Action", _ = "Next-Router-State-Tree", n = "Next-Router-Prefetch", e = "Next-Router-Segment-Prefetch", a = "Next-HMR-Refresh", h = "__next_hmr_refresh_hash__", i = "Next-Url", c = "text/x-component", E = [
|
|
1816
|
+
u,
|
|
1817
|
+
_,
|
|
1818
|
+
n,
|
|
1819
|
+
a,
|
|
1820
|
+
e
|
|
1821
|
+
], P = "_rsc", T = "x-nextjs-stale-time", I = "x-nextjs-postponed", d = "x-nextjs-rewritten-path", b = "x-nextjs-rewritten-query", f = "x-nextjs-prerender";
|
|
1822
|
+
(typeof o.default == "function" || typeof o.default == "object" && o.default !== null) && typeof o.default.__esModule > "u" && (Object.defineProperty(o.default, "__esModule", { value: !0 }), Object.assign(o.default, o), r.exports = o.default);
|
|
1823
|
+
}(be, be.exports)), be.exports;
|
|
1824
|
+
}
|
|
1825
|
+
var rr;
|
|
1826
|
+
function bt() {
|
|
1827
|
+
return rr || (rr = 1, function(r) {
|
|
1828
|
+
Object.defineProperty(r, "__esModule", {
|
|
1829
|
+
value: !0
|
|
1830
|
+
});
|
|
1831
|
+
function o(i, c) {
|
|
1832
|
+
for (var E in c) Object.defineProperty(i, E, {
|
|
1833
|
+
enumerable: !0,
|
|
1834
|
+
get: c[E]
|
|
1835
|
+
});
|
|
1836
|
+
}
|
|
1837
|
+
o(r, {
|
|
1838
|
+
getDraftModeProviderForCacheScope: function() {
|
|
1839
|
+
return h;
|
|
1840
|
+
},
|
|
1841
|
+
getExpectedRequestStore: function() {
|
|
1842
|
+
return s;
|
|
1843
|
+
},
|
|
1844
|
+
getHmrRefreshHash: function() {
|
|
1845
|
+
return a;
|
|
1846
|
+
},
|
|
1847
|
+
getPrerenderResumeDataCache: function() {
|
|
1848
|
+
return n;
|
|
1849
|
+
},
|
|
1850
|
+
getRenderResumeDataCache: function() {
|
|
1851
|
+
return e;
|
|
1852
|
+
},
|
|
1853
|
+
throwForMissingRequestStore: function() {
|
|
1854
|
+
return _;
|
|
1855
|
+
},
|
|
1856
|
+
workUnitAsyncStorage: function() {
|
|
1857
|
+
return l.workUnitAsyncStorageInstance;
|
|
1858
|
+
}
|
|
1859
|
+
});
|
|
1860
|
+
const l = zr(), u = Vr();
|
|
1861
|
+
function s(i) {
|
|
1862
|
+
const c = l.workUnitAsyncStorageInstance.getStore();
|
|
1863
|
+
switch (c || _(i), c.type) {
|
|
1864
|
+
case "request":
|
|
1865
|
+
return c;
|
|
1866
|
+
case "prerender":
|
|
1867
|
+
case "prerender-ppr":
|
|
1868
|
+
case "prerender-legacy":
|
|
1869
|
+
throw Object.defineProperty(new Error(`\`${i}\` cannot be called inside a prerender. This is a bug in Next.js.`), "__NEXT_ERROR_CODE", {
|
|
1870
|
+
value: "E401",
|
|
1871
|
+
enumerable: !1,
|
|
1872
|
+
configurable: !0
|
|
1873
|
+
});
|
|
1874
|
+
case "cache":
|
|
1875
|
+
throw Object.defineProperty(new Error(`\`${i}\` 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", {
|
|
1876
|
+
value: "E37",
|
|
1877
|
+
enumerable: !1,
|
|
1878
|
+
configurable: !0
|
|
1879
|
+
});
|
|
1880
|
+
case "unstable-cache":
|
|
1881
|
+
throw Object.defineProperty(new Error(`\`${i}\` 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", {
|
|
1882
|
+
value: "E69",
|
|
1883
|
+
enumerable: !1,
|
|
1884
|
+
configurable: !0
|
|
1885
|
+
});
|
|
1886
|
+
default:
|
|
1887
|
+
return c;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
function _(i) {
|
|
1891
|
+
throw Object.defineProperty(new Error(`\`${i}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
1892
|
+
value: "E251",
|
|
1893
|
+
enumerable: !1,
|
|
1894
|
+
configurable: !0
|
|
1895
|
+
});
|
|
1896
|
+
}
|
|
1897
|
+
function n(i) {
|
|
1898
|
+
return i.type === "prerender" || i.type === "prerender-ppr" ? i.prerenderResumeDataCache : null;
|
|
1899
|
+
}
|
|
1900
|
+
function e(i) {
|
|
1901
|
+
return i.type !== "prerender-legacy" && i.type !== "cache" && i.type !== "unstable-cache" ? i.type === "request" ? i.renderResumeDataCache : i.prerenderResumeDataCache : null;
|
|
1902
|
+
}
|
|
1903
|
+
function a(i, c) {
|
|
1904
|
+
var E;
|
|
1905
|
+
if (i.dev)
|
|
1906
|
+
return c.type === "cache" || c.type === "prerender" ? c.hmrRefreshHash : c.type === "request" ? (E = c.cookies.get(u.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : E.value : void 0;
|
|
1907
|
+
}
|
|
1908
|
+
function h(i, c) {
|
|
1909
|
+
if (i.isDraftMode)
|
|
1910
|
+
switch (c.type) {
|
|
1911
|
+
case "cache":
|
|
1912
|
+
case "unstable-cache":
|
|
1913
|
+
case "request":
|
|
1914
|
+
return c.draftMode;
|
|
1915
|
+
default:
|
|
1916
|
+
return;
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
}(tt)), tt;
|
|
1920
|
+
}
|
|
1921
|
+
var nt = {}, ge = { exports: {} }, nr;
|
|
1922
|
+
function Yr() {
|
|
1923
|
+
return nr || (nr = 1, function(r, o) {
|
|
1924
|
+
Object.defineProperty(o, "__esModule", {
|
|
1925
|
+
value: !0
|
|
1926
|
+
});
|
|
1927
|
+
function l(n, e) {
|
|
1928
|
+
for (var a in e) Object.defineProperty(n, a, {
|
|
1929
|
+
enumerable: !0,
|
|
1930
|
+
get: e[a]
|
|
1931
|
+
});
|
|
1932
|
+
}
|
|
1933
|
+
l(o, {
|
|
1934
|
+
DynamicServerError: function() {
|
|
1935
|
+
return s;
|
|
1936
|
+
},
|
|
1937
|
+
isDynamicServerError: function() {
|
|
1938
|
+
return _;
|
|
1939
|
+
}
|
|
1940
|
+
});
|
|
1941
|
+
const u = "DYNAMIC_SERVER_USAGE";
|
|
1942
|
+
class s extends Error {
|
|
1943
|
+
constructor(e) {
|
|
1944
|
+
super("Dynamic server usage: " + e), this.description = e, this.digest = u;
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
function _(n) {
|
|
1948
|
+
return typeof n != "object" || n === null || !("digest" in n) || typeof n.digest != "string" ? !1 : n.digest === u;
|
|
1949
|
+
}
|
|
1950
|
+
(typeof o.default == "function" || typeof o.default == "object" && o.default !== null) && typeof o.default.__esModule > "u" && (Object.defineProperty(o.default, "__esModule", { value: !0 }), Object.assign(o.default, o), r.exports = o.default);
|
|
1951
|
+
}(ge, ge.exports)), ge.exports;
|
|
1952
|
+
}
|
|
1953
|
+
var Ee = { exports: {} }, ir;
|
|
1954
|
+
function gt() {
|
|
1955
|
+
return ir || (ir = 1, function(r, o) {
|
|
1956
|
+
Object.defineProperty(o, "__esModule", {
|
|
1957
|
+
value: !0
|
|
1958
|
+
});
|
|
1959
|
+
function l(n, e) {
|
|
1960
|
+
for (var a in e) Object.defineProperty(n, a, {
|
|
1961
|
+
enumerable: !0,
|
|
1962
|
+
get: e[a]
|
|
1963
|
+
});
|
|
1964
|
+
}
|
|
1965
|
+
l(o, {
|
|
1966
|
+
StaticGenBailoutError: function() {
|
|
1967
|
+
return s;
|
|
1968
|
+
},
|
|
1969
|
+
isStaticGenBailoutError: function() {
|
|
1970
|
+
return _;
|
|
1971
|
+
}
|
|
1972
|
+
});
|
|
1973
|
+
const u = "NEXT_STATIC_GEN_BAILOUT";
|
|
1974
|
+
class s extends Error {
|
|
1975
|
+
constructor(...e) {
|
|
1976
|
+
super(...e), this.code = u;
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
function _(n) {
|
|
1980
|
+
return typeof n != "object" || n === null || !("code" in n) ? !1 : n.code === u;
|
|
1981
|
+
}
|
|
1982
|
+
(typeof o.default == "function" || typeof o.default == "object" && o.default !== null) && typeof o.default.__esModule > "u" && (Object.defineProperty(o.default, "__esModule", { value: !0 }), Object.assign(o.default, o), r.exports = o.default);
|
|
1983
|
+
}(Ee, Ee.exports)), Ee.exports;
|
|
1984
|
+
}
|
|
1985
|
+
var it = {}, or;
|
|
1986
|
+
function Et() {
|
|
1987
|
+
return or || (or = 1, function(r) {
|
|
1988
|
+
Object.defineProperty(r, "__esModule", {
|
|
1989
|
+
value: !0
|
|
1990
|
+
});
|
|
1991
|
+
function o(a, h) {
|
|
1992
|
+
for (var i in h) Object.defineProperty(a, i, {
|
|
1993
|
+
enumerable: !0,
|
|
1994
|
+
get: h[i]
|
|
1995
|
+
});
|
|
1996
|
+
}
|
|
1997
|
+
o(r, {
|
|
1998
|
+
isHangingPromiseRejectionError: function() {
|
|
1999
|
+
return l;
|
|
2000
|
+
},
|
|
2001
|
+
makeHangingPromise: function() {
|
|
2002
|
+
return n;
|
|
2003
|
+
}
|
|
2004
|
+
});
|
|
2005
|
+
function l(a) {
|
|
2006
|
+
return typeof a != "object" || a === null || !("digest" in a) ? !1 : a.digest === u;
|
|
2007
|
+
}
|
|
2008
|
+
const u = "HANGING_PROMISE_REJECTION";
|
|
2009
|
+
class s extends Error {
|
|
2010
|
+
constructor(h) {
|
|
2011
|
+
super(`During prerendering, ${h} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${h} 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 = h, this.digest = u;
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
const _ = /* @__PURE__ */ new WeakMap();
|
|
2015
|
+
function n(a, h) {
|
|
2016
|
+
if (a.aborted)
|
|
2017
|
+
return Promise.reject(new s(h));
|
|
2018
|
+
{
|
|
2019
|
+
const i = new Promise((c, E) => {
|
|
2020
|
+
const P = E.bind(null, new s(h));
|
|
2021
|
+
let T = _.get(a);
|
|
2022
|
+
if (T)
|
|
2023
|
+
T.push(P);
|
|
2024
|
+
else {
|
|
2025
|
+
const I = [
|
|
2026
|
+
P
|
|
2027
|
+
];
|
|
2028
|
+
_.set(a, I), a.addEventListener("abort", () => {
|
|
2029
|
+
for (let d = 0; d < I.length; d++)
|
|
2030
|
+
I[d]();
|
|
2031
|
+
}, {
|
|
2032
|
+
once: !0
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
2035
|
+
});
|
|
2036
|
+
return i.catch(e), i;
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
function e() {
|
|
2040
|
+
}
|
|
2041
|
+
}(it)), it;
|
|
2042
|
+
}
|
|
2043
|
+
var ot = {}, ar;
|
|
2044
|
+
function Kr() {
|
|
2045
|
+
return ar || (ar = 1, function(r) {
|
|
2046
|
+
Object.defineProperty(r, "__esModule", {
|
|
2047
|
+
value: !0
|
|
2048
|
+
});
|
|
2049
|
+
function o(_, n) {
|
|
2050
|
+
for (var e in n) Object.defineProperty(_, e, {
|
|
2051
|
+
enumerable: !0,
|
|
2052
|
+
get: n[e]
|
|
2053
|
+
});
|
|
2054
|
+
}
|
|
2055
|
+
o(r, {
|
|
2056
|
+
METADATA_BOUNDARY_NAME: function() {
|
|
2057
|
+
return l;
|
|
2058
|
+
},
|
|
2059
|
+
OUTLET_BOUNDARY_NAME: function() {
|
|
2060
|
+
return s;
|
|
2061
|
+
},
|
|
2062
|
+
VIEWPORT_BOUNDARY_NAME: function() {
|
|
2063
|
+
return u;
|
|
2064
|
+
}
|
|
2065
|
+
});
|
|
2066
|
+
const l = "__next_metadata_boundary__", u = "__next_viewport_boundary__", s = "__next_outlet_boundary__";
|
|
2067
|
+
}(ot)), ot;
|
|
2068
|
+
}
|
|
2069
|
+
var at = {}, sr;
|
|
2070
|
+
function Qr() {
|
|
2071
|
+
return sr || (sr = 1, function(r) {
|
|
2072
|
+
Object.defineProperty(r, "__esModule", {
|
|
2073
|
+
value: !0
|
|
2074
|
+
});
|
|
2075
|
+
function o(n, e) {
|
|
2076
|
+
for (var a in e) Object.defineProperty(n, a, {
|
|
2077
|
+
enumerable: !0,
|
|
2078
|
+
get: e[a]
|
|
2079
|
+
});
|
|
2080
|
+
}
|
|
2081
|
+
o(r, {
|
|
2082
|
+
atLeastOneTask: function() {
|
|
2083
|
+
return s;
|
|
2084
|
+
},
|
|
2085
|
+
scheduleImmediate: function() {
|
|
2086
|
+
return u;
|
|
2087
|
+
},
|
|
2088
|
+
scheduleOnNextTick: function() {
|
|
2089
|
+
return l;
|
|
2090
|
+
},
|
|
2091
|
+
waitAtLeastOneReactRenderTask: function() {
|
|
2092
|
+
return _;
|
|
2093
|
+
}
|
|
2094
|
+
});
|
|
2095
|
+
const l = (n) => {
|
|
2096
|
+
Promise.resolve().then(() => {
|
|
2097
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(n, 0) : process.nextTick(n);
|
|
2098
|
+
});
|
|
2099
|
+
}, u = (n) => {
|
|
2100
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(n, 0) : setImmediate(n);
|
|
2101
|
+
};
|
|
2102
|
+
function s() {
|
|
2103
|
+
return new Promise((n) => u(n));
|
|
2104
|
+
}
|
|
2105
|
+
function _() {
|
|
2106
|
+
return process.env.NEXT_RUNTIME === "edge" ? new Promise((n) => setTimeout(n, 0)) : new Promise((n) => setImmediate(n));
|
|
2107
|
+
}
|
|
2108
|
+
}(at)), at;
|
|
2109
|
+
}
|
|
2110
|
+
var ur;
|
|
2111
|
+
function yr() {
|
|
2112
|
+
return ur || (ur = 1, function(r) {
|
|
2113
|
+
Object.defineProperty(r, "__esModule", {
|
|
2114
|
+
value: !0
|
|
2115
|
+
});
|
|
2116
|
+
function o(R, g) {
|
|
2117
|
+
for (var A in g) Object.defineProperty(R, A, {
|
|
2118
|
+
enumerable: !0,
|
|
2119
|
+
get: g[A]
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
o(r, {
|
|
2123
|
+
Postpone: function() {
|
|
2124
|
+
return w;
|
|
2125
|
+
},
|
|
2126
|
+
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
2127
|
+
return v;
|
|
2128
|
+
},
|
|
2129
|
+
abortOnSynchronousPlatformIOAccess: function() {
|
|
2130
|
+
return y;
|
|
2131
|
+
},
|
|
2132
|
+
accessedDynamicData: function() {
|
|
2133
|
+
return Z;
|
|
2134
|
+
},
|
|
2135
|
+
annotateDynamicAccess: function() {
|
|
2136
|
+
return le;
|
|
2137
|
+
},
|
|
2138
|
+
consumeDynamicAccess: function() {
|
|
2139
|
+
return F;
|
|
2140
|
+
},
|
|
2141
|
+
createDynamicTrackingState: function() {
|
|
2142
|
+
return E;
|
|
2143
|
+
},
|
|
2144
|
+
createDynamicValidationState: function() {
|
|
2145
|
+
return P;
|
|
2146
|
+
},
|
|
2147
|
+
createHangingInputAbortSignal: function() {
|
|
2148
|
+
return ee;
|
|
2149
|
+
},
|
|
2150
|
+
createPostponedAbortSignal: function() {
|
|
2151
|
+
return V;
|
|
2152
|
+
},
|
|
2153
|
+
formatDynamicAPIAccesses: function() {
|
|
2154
|
+
return z;
|
|
2155
|
+
},
|
|
2156
|
+
getFirstDynamicReason: function() {
|
|
2157
|
+
return T;
|
|
2158
|
+
},
|
|
2159
|
+
isDynamicPostpone: function() {
|
|
2160
|
+
return X;
|
|
2161
|
+
},
|
|
2162
|
+
isPrerenderInterruptedError: function() {
|
|
2163
|
+
return Q;
|
|
2164
|
+
},
|
|
2165
|
+
markCurrentScopeAsDynamic: function() {
|
|
2166
|
+
return I;
|
|
2167
|
+
},
|
|
2168
|
+
postponeWithTracking: function() {
|
|
2169
|
+
return S;
|
|
2170
|
+
},
|
|
2171
|
+
throwIfDisallowedDynamic: function() {
|
|
2172
|
+
return ue;
|
|
2173
|
+
},
|
|
2174
|
+
throwToInterruptStaticGeneration: function() {
|
|
2175
|
+
return b;
|
|
2176
|
+
},
|
|
2177
|
+
trackAllowedDynamicAccess: function() {
|
|
2178
|
+
return fe;
|
|
2179
|
+
},
|
|
2180
|
+
trackDynamicDataInDynamicRender: function() {
|
|
2181
|
+
return f;
|
|
2182
|
+
},
|
|
2183
|
+
trackFallbackParamAccessed: function() {
|
|
2184
|
+
return d;
|
|
2185
|
+
},
|
|
2186
|
+
trackSynchronousPlatformIOAccessInDev: function() {
|
|
2187
|
+
return t;
|
|
2188
|
+
},
|
|
2189
|
+
trackSynchronousRequestDataAccessInDev: function() {
|
|
2190
|
+
return m;
|
|
2191
|
+
},
|
|
2192
|
+
useDynamicRouteParams: function() {
|
|
2193
|
+
return oe;
|
|
2194
|
+
}
|
|
2195
|
+
});
|
|
2196
|
+
const l = /* @__PURE__ */ i(Ar), u = Yr(), s = gt(), _ = bt(), n = ye(), e = Et(), a = Kr(), h = Qr();
|
|
2197
|
+
function i(R) {
|
|
2198
|
+
return R && R.__esModule ? R : {
|
|
2199
|
+
default: R
|
|
2200
|
+
};
|
|
2201
|
+
}
|
|
2202
|
+
const c = typeof l.default.unstable_postpone == "function";
|
|
2203
|
+
function E(R) {
|
|
2204
|
+
return {
|
|
2205
|
+
isDebugDynamicAccesses: R,
|
|
2206
|
+
dynamicAccesses: [],
|
|
2207
|
+
syncDynamicExpression: void 0,
|
|
2208
|
+
syncDynamicErrorWithStack: null
|
|
2209
|
+
};
|
|
2210
|
+
}
|
|
2211
|
+
function P() {
|
|
2212
|
+
return {
|
|
2213
|
+
hasSuspendedDynamic: !1,
|
|
2214
|
+
hasDynamicMetadata: !1,
|
|
2215
|
+
hasDynamicViewport: !1,
|
|
2216
|
+
hasSyncDynamicErrors: !1,
|
|
2217
|
+
dynamicErrors: []
|
|
2218
|
+
};
|
|
2219
|
+
}
|
|
2220
|
+
function T(R) {
|
|
2221
|
+
var g;
|
|
2222
|
+
return (g = R.dynamicAccesses[0]) == null ? void 0 : g.expression;
|
|
2223
|
+
}
|
|
2224
|
+
function I(R, g, A) {
|
|
2225
|
+
if (!(g && (g.type === "cache" || g.type === "unstable-cache")) && !(R.forceDynamic || R.forceStatic)) {
|
|
2226
|
+
if (R.dynamicShouldError)
|
|
2227
|
+
throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${R.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${A}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2228
|
+
value: "E553",
|
|
2229
|
+
enumerable: !1,
|
|
2230
|
+
configurable: !0
|
|
2231
|
+
});
|
|
2232
|
+
if (g)
|
|
2233
|
+
if (g.type === "prerender-ppr")
|
|
2234
|
+
S(R.route, A, g.dynamicTracking);
|
|
2235
|
+
else if (g.type === "prerender-legacy") {
|
|
2236
|
+
g.revalidate = 0;
|
|
2237
|
+
const C = Object.defineProperty(new u.DynamicServerError(`Route ${R.route} couldn't be rendered statically because it used ${A}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2238
|
+
value: "E550",
|
|
2239
|
+
enumerable: !1,
|
|
2240
|
+
configurable: !0
|
|
2241
|
+
});
|
|
2242
|
+
throw R.dynamicUsageDescription = A, R.dynamicUsageStack = C.stack, C;
|
|
2243
|
+
} else process.env.NODE_ENV === "development" && g && g.type === "request" && (g.usedDynamic = !0);
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
function d(R, g) {
|
|
2247
|
+
const A = _.workUnitAsyncStorage.getStore();
|
|
2248
|
+
!A || A.type !== "prerender-ppr" || S(R.route, g, A.dynamicTracking);
|
|
2249
|
+
}
|
|
2250
|
+
function b(R, g, A) {
|
|
2251
|
+
const C = Object.defineProperty(new u.DynamicServerError(`Route ${g.route} couldn't be rendered statically because it used \`${R}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2252
|
+
value: "E558",
|
|
2253
|
+
enumerable: !1,
|
|
2254
|
+
configurable: !0
|
|
2255
|
+
});
|
|
2256
|
+
throw A.revalidate = 0, g.dynamicUsageDescription = R, g.dynamicUsageStack = C.stack, C;
|
|
2257
|
+
}
|
|
2258
|
+
function f(R, g) {
|
|
2259
|
+
if (g) {
|
|
2260
|
+
if (g.type === "cache" || g.type === "unstable-cache")
|
|
2261
|
+
return;
|
|
2262
|
+
(g.type === "prerender" || g.type === "prerender-legacy") && (g.revalidate = 0), process.env.NODE_ENV === "development" && g.type === "request" && (g.usedDynamic = !0);
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
function p(R, g, A) {
|
|
2266
|
+
const C = `Route ${R} needs to bail out of prerendering at this point because it used ${g}.`, M = H(C);
|
|
2267
|
+
A.controller.abort(M);
|
|
2268
|
+
const O = A.dynamicTracking;
|
|
2269
|
+
O && O.dynamicAccesses.push({
|
|
2270
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
2271
|
+
// stack trace.
|
|
2272
|
+
stack: O.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2273
|
+
expression: g
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
function y(R, g, A, C) {
|
|
2277
|
+
const M = C.dynamicTracking;
|
|
2278
|
+
M && M.syncDynamicErrorWithStack === null && (M.syncDynamicExpression = g, M.syncDynamicErrorWithStack = A), p(R, g, C);
|
|
2279
|
+
}
|
|
2280
|
+
function t(R) {
|
|
2281
|
+
R.prerenderPhase = !1;
|
|
2282
|
+
}
|
|
2283
|
+
function v(R, g, A, C) {
|
|
2284
|
+
if (C.controller.signal.aborted === !1) {
|
|
2285
|
+
const O = C.dynamicTracking;
|
|
2286
|
+
O && O.syncDynamicErrorWithStack === null && (O.syncDynamicExpression = g, O.syncDynamicErrorWithStack = A, C.validating === !0 && (O.syncDynamicLogged = !0)), p(R, g, C);
|
|
2287
|
+
}
|
|
2288
|
+
throw H(`Route ${R} needs to bail out of prerendering at this point because it used ${g}.`);
|
|
2289
|
+
}
|
|
2290
|
+
const m = t;
|
|
2291
|
+
function w({ reason: R, route: g }) {
|
|
2292
|
+
const A = _.workUnitAsyncStorage.getStore(), C = A && A.type === "prerender-ppr" ? A.dynamicTracking : null;
|
|
2293
|
+
S(g, R, C);
|
|
2294
|
+
}
|
|
2295
|
+
function S(R, g, A) {
|
|
2296
|
+
J(), A && A.dynamicAccesses.push({
|
|
2297
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
2298
|
+
// stack trace.
|
|
2299
|
+
stack: A.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2300
|
+
expression: g
|
|
2301
|
+
}), l.default.unstable_postpone(j(R, g));
|
|
2302
|
+
}
|
|
2303
|
+
function j(R, g) {
|
|
2304
|
+
return `Route ${R} needs to bail out of prerendering at this point because it used ${g}. 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`;
|
|
2305
|
+
}
|
|
2306
|
+
function X(R) {
|
|
2307
|
+
return typeof R == "object" && R !== null && typeof R.message == "string" ? U(R.message) : !1;
|
|
2308
|
+
}
|
|
2309
|
+
function U(R) {
|
|
2310
|
+
return R.includes("needs to bail out of prerendering at this point because it used") && R.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
|
|
2311
|
+
}
|
|
2312
|
+
if (U(j("%%%", "^^^")) === !1)
|
|
2313
|
+
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
2314
|
+
value: "E296",
|
|
2315
|
+
enumerable: !1,
|
|
2316
|
+
configurable: !0
|
|
2317
|
+
});
|
|
2318
|
+
const G = "NEXT_PRERENDER_INTERRUPTED";
|
|
2319
|
+
function H(R) {
|
|
2320
|
+
const g = Object.defineProperty(new Error(R), "__NEXT_ERROR_CODE", {
|
|
2321
|
+
value: "E394",
|
|
2322
|
+
enumerable: !1,
|
|
2323
|
+
configurable: !0
|
|
2324
|
+
});
|
|
2325
|
+
return g.digest = G, g;
|
|
2326
|
+
}
|
|
2327
|
+
function Q(R) {
|
|
2328
|
+
return typeof R == "object" && R !== null && R.digest === G && "name" in R && "message" in R && R instanceof Error;
|
|
2329
|
+
}
|
|
2330
|
+
function Z(R) {
|
|
2331
|
+
return R.length > 0;
|
|
2332
|
+
}
|
|
2333
|
+
function F(R, g) {
|
|
2334
|
+
return R.dynamicAccesses.push(...g.dynamicAccesses), R.dynamicAccesses;
|
|
2335
|
+
}
|
|
2336
|
+
function z(R) {
|
|
2337
|
+
return R.filter((g) => typeof g.stack == "string" && g.stack.length > 0).map(({ expression: g, stack: A }) => (A = A.split(`
|
|
2338
|
+
`).slice(4).filter((C) => !(C.includes("node_modules/next/") || C.includes(" (<anonymous>)") || C.includes(" (node:"))).join(`
|
|
2339
|
+
`), `Dynamic API Usage Debug - ${g}:
|
|
2340
|
+
${A}`));
|
|
2341
|
+
}
|
|
2342
|
+
function J() {
|
|
2343
|
+
if (!c)
|
|
2344
|
+
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", {
|
|
2345
|
+
value: "E224",
|
|
2346
|
+
enumerable: !1,
|
|
2347
|
+
configurable: !0
|
|
2348
|
+
});
|
|
2349
|
+
}
|
|
2350
|
+
function V(R) {
|
|
2351
|
+
J();
|
|
2352
|
+
const g = new AbortController();
|
|
2353
|
+
try {
|
|
2354
|
+
l.default.unstable_postpone(R);
|
|
2355
|
+
} catch (A) {
|
|
2356
|
+
g.abort(A);
|
|
2357
|
+
}
|
|
2358
|
+
return g.signal;
|
|
2359
|
+
}
|
|
2360
|
+
function ee(R) {
|
|
2361
|
+
const g = new AbortController();
|
|
2362
|
+
return R.cacheSignal ? R.cacheSignal.inputReady().then(() => {
|
|
2363
|
+
g.abort();
|
|
2364
|
+
}) : (0, h.scheduleOnNextTick)(() => g.abort()), g.signal;
|
|
2365
|
+
}
|
|
2366
|
+
function le(R, g) {
|
|
2367
|
+
const A = g.dynamicTracking;
|
|
2368
|
+
A && A.dynamicAccesses.push({
|
|
2369
|
+
stack: A.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2370
|
+
expression: R
|
|
2371
|
+
});
|
|
2372
|
+
}
|
|
2373
|
+
function oe(R) {
|
|
2374
|
+
const g = n.workAsyncStorage.getStore();
|
|
2375
|
+
if (g && g.isStaticGeneration && g.fallbackRouteParams && g.fallbackRouteParams.size > 0) {
|
|
2376
|
+
const A = _.workUnitAsyncStorage.getStore();
|
|
2377
|
+
A && (A.type === "prerender" ? l.default.use((0, e.makeHangingPromise)(A.renderSignal, R)) : A.type === "prerender-ppr" ? S(g.route, R, A.dynamicTracking) : A.type === "prerender-legacy" && b(R, g, A));
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
const ae = /\n\s+at Suspense \(<anonymous>\)/, de = new RegExp(`\\n\\s+at ${a.METADATA_BOUNDARY_NAME}[\\n\\s]`), te = new RegExp(`\\n\\s+at ${a.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), se = new RegExp(`\\n\\s+at ${a.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
2381
|
+
function fe(R, g, A, C, M) {
|
|
2382
|
+
if (!se.test(g))
|
|
2383
|
+
if (de.test(g)) {
|
|
2384
|
+
A.hasDynamicMetadata = !0;
|
|
2385
|
+
return;
|
|
2386
|
+
} else if (te.test(g)) {
|
|
2387
|
+
A.hasDynamicViewport = !0;
|
|
2388
|
+
return;
|
|
2389
|
+
} else if (ae.test(g)) {
|
|
2390
|
+
A.hasSuspendedDynamic = !0;
|
|
2391
|
+
return;
|
|
2392
|
+
} else if (C.syncDynamicErrorWithStack || M.syncDynamicErrorWithStack) {
|
|
2393
|
+
A.hasSyncDynamicErrors = !0;
|
|
2394
|
+
return;
|
|
2395
|
+
} else {
|
|
2396
|
+
const O = `Route "${R}": 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`, B = re(O, g);
|
|
2397
|
+
A.dynamicErrors.push(B);
|
|
2398
|
+
return;
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
function re(R, g) {
|
|
2402
|
+
const A = Object.defineProperty(new Error(R), "__NEXT_ERROR_CODE", {
|
|
2403
|
+
value: "E394",
|
|
2404
|
+
enumerable: !1,
|
|
2405
|
+
configurable: !0
|
|
2406
|
+
});
|
|
2407
|
+
return A.stack = "Error: " + R + g, A;
|
|
2408
|
+
}
|
|
2409
|
+
function ue(R, g, A, C) {
|
|
2410
|
+
let M, O, B;
|
|
2411
|
+
if (A.syncDynamicErrorWithStack ? (M = A.syncDynamicErrorWithStack, O = A.syncDynamicExpression, B = A.syncDynamicLogged === !0) : C.syncDynamicErrorWithStack ? (M = C.syncDynamicErrorWithStack, O = C.syncDynamicExpression, B = C.syncDynamicLogged === !0) : (M = null, O = void 0, B = !1), g.hasSyncDynamicErrors && M)
|
|
2412
|
+
throw B || console.error(M), new s.StaticGenBailoutError();
|
|
2413
|
+
const W = g.dynamicErrors;
|
|
2414
|
+
if (W.length) {
|
|
2415
|
+
for (let ce = 0; ce < W.length; ce++)
|
|
2416
|
+
console.error(W[ce]);
|
|
2417
|
+
throw new s.StaticGenBailoutError();
|
|
2418
|
+
}
|
|
2419
|
+
if (!g.hasSuspendedDynamic) {
|
|
2420
|
+
if (g.hasDynamicMetadata)
|
|
2421
|
+
throw M ? (console.error(M), Object.defineProperty(new s.StaticGenBailoutError(`Route "${R}" has a \`generateMetadata\` that could not finish rendering before ${O} was used. Follow the instructions in the error for this expression to resolve.`), "__NEXT_ERROR_CODE", {
|
|
2422
|
+
value: "E608",
|
|
2423
|
+
enumerable: !1,
|
|
2424
|
+
configurable: !0
|
|
2425
|
+
})) : Object.defineProperty(new s.StaticGenBailoutError(`Route "${R}" 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", {
|
|
2426
|
+
value: "E534",
|
|
2427
|
+
enumerable: !1,
|
|
2428
|
+
configurable: !0
|
|
2429
|
+
});
|
|
2430
|
+
if (g.hasDynamicViewport)
|
|
2431
|
+
throw M ? (console.error(M), Object.defineProperty(new s.StaticGenBailoutError(`Route "${R}" has a \`generateViewport\` that could not finish rendering before ${O} was used. Follow the instructions in the error for this expression to resolve.`), "__NEXT_ERROR_CODE", {
|
|
2432
|
+
value: "E573",
|
|
2433
|
+
enumerable: !1,
|
|
2434
|
+
configurable: !0
|
|
2435
|
+
})) : Object.defineProperty(new s.StaticGenBailoutError(`Route "${R}" 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", {
|
|
2436
|
+
value: "E590",
|
|
2437
|
+
enumerable: !1,
|
|
2438
|
+
configurable: !0
|
|
2439
|
+
});
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
}(nt)), nt;
|
|
2443
|
+
}
|
|
2444
|
+
var st = {}, ut = {}, ct = {}, cr;
|
|
2445
|
+
function Zr() {
|
|
2446
|
+
return cr || (cr = 1, function(r) {
|
|
2447
|
+
Object.defineProperty(r, "__esModule", {
|
|
2448
|
+
value: !0
|
|
2449
|
+
}), Object.defineProperty(r, "afterTaskAsyncStorageInstance", {
|
|
2450
|
+
enumerable: !0,
|
|
2451
|
+
get: function() {
|
|
2452
|
+
return l;
|
|
2453
|
+
}
|
|
2454
|
+
});
|
|
2455
|
+
const l = (0, mt().createAsyncLocalStorage)();
|
|
2456
|
+
}(ct)), ct;
|
|
2457
|
+
}
|
|
2458
|
+
var lr;
|
|
2459
|
+
function Jr() {
|
|
2460
|
+
return lr || (lr = 1, function(r) {
|
|
2461
|
+
Object.defineProperty(r, "__esModule", {
|
|
2462
|
+
value: !0
|
|
2463
|
+
}), Object.defineProperty(r, "afterTaskAsyncStorage", {
|
|
2464
|
+
enumerable: !0,
|
|
2465
|
+
get: function() {
|
|
2466
|
+
return o.afterTaskAsyncStorageInstance;
|
|
2467
|
+
}
|
|
2468
|
+
});
|
|
2469
|
+
const o = Zr();
|
|
2470
|
+
}(ut)), ut;
|
|
2471
|
+
}
|
|
2472
|
+
var dr;
|
|
2473
|
+
function en() {
|
|
2474
|
+
return dr || (dr = 1, function(r) {
|
|
2475
|
+
Object.defineProperty(r, "__esModule", {
|
|
2476
|
+
value: !0
|
|
2477
|
+
});
|
|
2478
|
+
function o(a, h) {
|
|
2479
|
+
for (var i in h) Object.defineProperty(a, i, {
|
|
2480
|
+
enumerable: !0,
|
|
2481
|
+
get: h[i]
|
|
2482
|
+
});
|
|
2483
|
+
}
|
|
2484
|
+
o(r, {
|
|
2485
|
+
isRequestAPICallableInsideAfter: function() {
|
|
2486
|
+
return e;
|
|
2487
|
+
},
|
|
2488
|
+
throwForSearchParamsAccessInUseCache: function() {
|
|
2489
|
+
return n;
|
|
2490
|
+
},
|
|
2491
|
+
throwWithStaticGenerationBailoutError: function() {
|
|
2492
|
+
return s;
|
|
2493
|
+
},
|
|
2494
|
+
throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
|
|
2495
|
+
return _;
|
|
2496
|
+
}
|
|
2497
|
+
});
|
|
2498
|
+
const l = gt(), u = Jr();
|
|
2499
|
+
function s(a, h) {
|
|
2500
|
+
throw Object.defineProperty(new l.StaticGenBailoutError(`Route ${a} couldn't be rendered statically because it used ${h}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2501
|
+
value: "E576",
|
|
2502
|
+
enumerable: !1,
|
|
2503
|
+
configurable: !0
|
|
2504
|
+
});
|
|
2505
|
+
}
|
|
2506
|
+
function _(a, h) {
|
|
2507
|
+
throw Object.defineProperty(new l.StaticGenBailoutError(`Route ${a} with \`dynamic = "error"\` couldn't be rendered statically because it used ${h}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2508
|
+
value: "E543",
|
|
2509
|
+
enumerable: !1,
|
|
2510
|
+
configurable: !0
|
|
2511
|
+
});
|
|
2512
|
+
}
|
|
2513
|
+
function n(a) {
|
|
2514
|
+
const h = Object.defineProperty(new Error(`Route ${a.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", {
|
|
2515
|
+
value: "E634",
|
|
2516
|
+
enumerable: !1,
|
|
2517
|
+
configurable: !0
|
|
2518
|
+
});
|
|
2519
|
+
throw a.invalidUsageError ?? (a.invalidUsageError = h), h;
|
|
2520
|
+
}
|
|
2521
|
+
function e() {
|
|
2522
|
+
const a = u.afterTaskAsyncStorage.getStore();
|
|
2523
|
+
return (a == null ? void 0 : a.rootTaskSpawnPhase) === "action";
|
|
2524
|
+
}
|
|
2525
|
+
}(st)), st;
|
|
2526
|
+
}
|
|
2527
|
+
var fr;
|
|
2528
|
+
function tn() {
|
|
2529
|
+
return fr || (fr = 1, function(r) {
|
|
2530
|
+
Object.defineProperty(r, "__esModule", {
|
|
2531
|
+
value: !0
|
|
2532
|
+
}), Object.defineProperty(r, "connection", {
|
|
2533
|
+
enumerable: !0,
|
|
2534
|
+
get: function() {
|
|
2535
|
+
return e;
|
|
2536
|
+
}
|
|
2537
|
+
});
|
|
2538
|
+
const o = ye(), l = bt(), u = yr(), s = gt(), _ = Et(), n = en();
|
|
2539
|
+
function e() {
|
|
2540
|
+
const a = o.workAsyncStorage.getStore(), h = l.workUnitAsyncStorage.getStore();
|
|
2541
|
+
if (a) {
|
|
2542
|
+
if (h && h.phase === "after" && !(0, n.isRequestAPICallableInsideAfter)())
|
|
2543
|
+
throw Object.defineProperty(new Error(`Route ${a.route} used "connection" inside "after(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but "after(...)" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
|
|
2544
|
+
value: "E186",
|
|
2545
|
+
enumerable: !1,
|
|
2546
|
+
configurable: !0
|
|
2547
|
+
});
|
|
2548
|
+
if (a.forceStatic)
|
|
2549
|
+
return Promise.resolve(void 0);
|
|
2550
|
+
if (h) {
|
|
2551
|
+
if (h.type === "cache")
|
|
2552
|
+
throw Object.defineProperty(new Error(`Route ${a.route} used "connection" inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
2553
|
+
value: "E111",
|
|
2554
|
+
enumerable: !1,
|
|
2555
|
+
configurable: !0
|
|
2556
|
+
});
|
|
2557
|
+
if (h.type === "unstable-cache")
|
|
2558
|
+
throw Object.defineProperty(new Error(`Route ${a.route} used "connection" inside a function cached with "unstable_cache(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
2559
|
+
value: "E1",
|
|
2560
|
+
enumerable: !1,
|
|
2561
|
+
configurable: !0
|
|
2562
|
+
});
|
|
2563
|
+
}
|
|
2564
|
+
if (a.dynamicShouldError)
|
|
2565
|
+
throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${a.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2566
|
+
value: "E562",
|
|
2567
|
+
enumerable: !1,
|
|
2568
|
+
configurable: !0
|
|
2569
|
+
});
|
|
2570
|
+
if (h) {
|
|
2571
|
+
if (h.type === "prerender")
|
|
2572
|
+
return (0, _.makeHangingPromise)(h.renderSignal, "`connection()`");
|
|
2573
|
+
h.type === "prerender-ppr" ? (0, u.postponeWithTracking)(a.route, "connection", h.dynamicTracking) : h.type === "prerender-legacy" && (0, u.throwToInterruptStaticGeneration)("connection", a, h);
|
|
2574
|
+
}
|
|
2575
|
+
(0, u.trackDynamicDataInDynamicRender)(a, h);
|
|
2576
|
+
}
|
|
2577
|
+
return Promise.resolve(void 0);
|
|
2578
|
+
}
|
|
2579
|
+
}(et)), et;
|
|
2580
|
+
}
|
|
2581
|
+
var lt = {}, dt = {}, hr;
|
|
2582
|
+
function rn() {
|
|
2583
|
+
return hr || (hr = 1, function(r) {
|
|
2584
|
+
Object.defineProperty(r, "__esModule", {
|
|
2585
|
+
value: !0
|
|
2586
|
+
}), Object.defineProperty(r, "InvariantError", {
|
|
2587
|
+
enumerable: !0,
|
|
2588
|
+
get: function() {
|
|
2589
|
+
return o;
|
|
2590
|
+
}
|
|
2591
|
+
});
|
|
2592
|
+
class o extends Error {
|
|
2593
|
+
constructor(u, s) {
|
|
2594
|
+
super("Invariant: " + (u.endsWith(".") ? u : u + ".") + " This is a bug in Next.js.", s), this.name = "InvariantError";
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
}(dt)), dt;
|
|
2598
|
+
}
|
|
2599
|
+
var ft = {}, _r;
|
|
2600
|
+
function nn() {
|
|
2601
|
+
return _r || (_r = 1, function(r) {
|
|
2602
|
+
Object.defineProperty(r, "__esModule", {
|
|
2603
|
+
value: !0
|
|
2604
|
+
});
|
|
2605
|
+
function o(n, e) {
|
|
2606
|
+
for (var a in e) Object.defineProperty(n, a, {
|
|
2607
|
+
enumerable: !0,
|
|
2608
|
+
get: e[a]
|
|
2609
|
+
});
|
|
2610
|
+
}
|
|
2611
|
+
o(r, {
|
|
2612
|
+
describeHasCheckingStringProperty: function() {
|
|
2613
|
+
return s;
|
|
2614
|
+
},
|
|
2615
|
+
describeStringPropertyAccess: function() {
|
|
2616
|
+
return u;
|
|
2617
|
+
},
|
|
2618
|
+
wellKnownProperties: function() {
|
|
2619
|
+
return _;
|
|
2620
|
+
}
|
|
2621
|
+
});
|
|
2622
|
+
const l = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
2623
|
+
function u(n, e) {
|
|
2624
|
+
return l.test(e) ? "`" + n + "." + e + "`" : "`" + n + "[" + JSON.stringify(e) + "]`";
|
|
2625
|
+
}
|
|
2626
|
+
function s(n, e) {
|
|
2627
|
+
const a = JSON.stringify(e);
|
|
2628
|
+
return "`Reflect.has(" + n + ", " + a + ")`, `" + a + " in " + n + "`, or similar";
|
|
2629
|
+
}
|
|
2630
|
+
const _ = /* @__PURE__ */ new Set([
|
|
2631
|
+
"hasOwnProperty",
|
|
2632
|
+
"isPrototypeOf",
|
|
2633
|
+
"propertyIsEnumerable",
|
|
2634
|
+
"toString",
|
|
2635
|
+
"valueOf",
|
|
2636
|
+
"toLocaleString",
|
|
2637
|
+
// Promise prototype
|
|
2638
|
+
// fallthrough
|
|
2639
|
+
"then",
|
|
2640
|
+
"catch",
|
|
2641
|
+
"finally",
|
|
2642
|
+
// React Promise extension
|
|
2643
|
+
// fallthrough
|
|
2644
|
+
"status",
|
|
2645
|
+
// React introspection
|
|
2646
|
+
"displayName",
|
|
2647
|
+
// Common tested properties
|
|
2648
|
+
// fallthrough
|
|
2649
|
+
"toJSON",
|
|
2650
|
+
"$$typeof",
|
|
2651
|
+
"__esModule"
|
|
2652
|
+
]);
|
|
2653
|
+
}(ft)), ft;
|
|
2654
|
+
}
|
|
2655
|
+
var pr;
|
|
2656
|
+
function on() {
|
|
2657
|
+
return pr || (pr = 1, function(r) {
|
|
2658
|
+
Object.defineProperty(r, "__esModule", {
|
|
2659
|
+
value: !0
|
|
2660
|
+
}), Object.defineProperty(r, "unstable_rootParams", {
|
|
2661
|
+
enumerable: !0,
|
|
2662
|
+
get: function() {
|
|
2663
|
+
return a;
|
|
2664
|
+
}
|
|
2665
|
+
});
|
|
2666
|
+
const o = rn(), l = yr(), u = ye(), s = bt(), _ = Et(), n = nn(), e = /* @__PURE__ */ new WeakMap();
|
|
2667
|
+
async function a() {
|
|
2668
|
+
const c = u.workAsyncStorage.getStore();
|
|
2669
|
+
if (!c)
|
|
2670
|
+
throw Object.defineProperty(new o.InvariantError("Missing workStore in unstable_rootParams"), "__NEXT_ERROR_CODE", {
|
|
2671
|
+
value: "E615",
|
|
2672
|
+
enumerable: !1,
|
|
2673
|
+
configurable: !0
|
|
2674
|
+
});
|
|
2675
|
+
const E = s.workUnitAsyncStorage.getStore();
|
|
2676
|
+
if (!E)
|
|
2677
|
+
throw Object.defineProperty(new Error(`Route ${c.route} used \`unstable_rootParams()\` in Pages Router. This API is only available within App Router.`), "__NEXT_ERROR_CODE", {
|
|
2678
|
+
value: "E641",
|
|
2679
|
+
enumerable: !1,
|
|
2680
|
+
configurable: !0
|
|
2681
|
+
});
|
|
2682
|
+
switch (E.type) {
|
|
2683
|
+
case "unstable-cache":
|
|
2684
|
+
case "cache":
|
|
2685
|
+
throw Object.defineProperty(new Error(`Route ${c.route} used \`unstable_rootParams()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.`), "__NEXT_ERROR_CODE", {
|
|
2686
|
+
value: "E642",
|
|
2687
|
+
enumerable: !1,
|
|
2688
|
+
configurable: !0
|
|
2689
|
+
});
|
|
2690
|
+
case "prerender":
|
|
2691
|
+
case "prerender-ppr":
|
|
2692
|
+
case "prerender-legacy":
|
|
2693
|
+
return h(E.rootParams, c, E);
|
|
2694
|
+
default:
|
|
2695
|
+
return Promise.resolve(E.rootParams);
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
function h(c, E, P) {
|
|
2699
|
+
const T = E.fallbackRouteParams;
|
|
2700
|
+
if (T) {
|
|
2701
|
+
let I = !1;
|
|
2702
|
+
for (const d in c)
|
|
2703
|
+
if (T.has(d)) {
|
|
2704
|
+
I = !0;
|
|
2705
|
+
break;
|
|
2706
|
+
}
|
|
2707
|
+
if (I) {
|
|
2708
|
+
if (P.type === "prerender") {
|
|
2709
|
+
const d = e.get(c);
|
|
2710
|
+
if (d)
|
|
2711
|
+
return d;
|
|
2712
|
+
const b = (0, _.makeHangingPromise)(P.renderSignal, "`unstable_rootParams`");
|
|
2713
|
+
return e.set(c, b), b;
|
|
2714
|
+
}
|
|
2715
|
+
return i(c, T, E, P);
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
return Promise.resolve(c);
|
|
2719
|
+
}
|
|
2720
|
+
function i(c, E, P, T) {
|
|
2721
|
+
const I = e.get(c);
|
|
2722
|
+
if (I)
|
|
2723
|
+
return I;
|
|
2724
|
+
const d = {
|
|
2725
|
+
...c
|
|
2726
|
+
}, b = Promise.resolve(d);
|
|
2727
|
+
return e.set(c, b), Object.keys(c).forEach((f) => {
|
|
2728
|
+
n.wellKnownProperties.has(f) || (E.has(f) ? Object.defineProperty(d, f, {
|
|
2729
|
+
get() {
|
|
2730
|
+
const p = (0, n.describeStringPropertyAccess)("unstable_rootParams", f);
|
|
2731
|
+
T.type === "prerender-ppr" ? (0, l.postponeWithTracking)(P.route, p, T.dynamicTracking) : (0, l.throwToInterruptStaticGeneration)(p, P, T);
|
|
2732
|
+
},
|
|
2733
|
+
enumerable: !0
|
|
2734
|
+
}) : b[f] = c[f]);
|
|
2735
|
+
}), b;
|
|
2736
|
+
}
|
|
2737
|
+
}(lt)), lt;
|
|
2738
|
+
}
|
|
2739
|
+
var mr;
|
|
2740
|
+
function an() {
|
|
2741
|
+
return mr || (mr = 1, function(r, o) {
|
|
2742
|
+
const l = {
|
|
2743
|
+
NextRequest: Mr().NextRequest,
|
|
2744
|
+
NextResponse: Hr().NextResponse,
|
|
2745
|
+
ImageResponse: Xr().ImageResponse,
|
|
2746
|
+
userAgentFromString: zt().userAgentFromString,
|
|
2747
|
+
userAgent: zt().userAgent,
|
|
2748
|
+
URLPattern: Fr().URLPattern,
|
|
2749
|
+
after: Wr().after,
|
|
2750
|
+
connection: tn().connection,
|
|
2751
|
+
unstable_rootParams: on().unstable_rootParams
|
|
2752
|
+
};
|
|
2753
|
+
r.exports = l, o.NextRequest = l.NextRequest, o.NextResponse = l.NextResponse, o.ImageResponse = l.ImageResponse, o.userAgentFromString = l.userAgentFromString, o.userAgent = l.userAgent, o.URLPattern = l.URLPattern, o.after = l.after, o.connection = l.connection, o.unstable_rootParams = l.unstable_rootParams;
|
|
2754
|
+
}(me, me.exports)), me.exports;
|
|
2755
|
+
}
|
|
2756
|
+
var Re = an();
|
|
2757
|
+
async function fn(r) {
|
|
2758
|
+
try {
|
|
2759
|
+
const l = await br().middleware(r);
|
|
2760
|
+
if (l instanceof Re.NextResponse) {
|
|
2761
|
+
const u = l.status;
|
|
2762
|
+
if (u === 401 || u === 403 || u === 500) {
|
|
2763
|
+
const s = new URL("/auth/login", r.url);
|
|
2764
|
+
return Re.NextResponse.redirect(s);
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
return l;
|
|
2768
|
+
} catch (o) {
|
|
2769
|
+
if (o instanceof Error && o.message === "Missing session") {
|
|
2770
|
+
const u = new URL("/auth/login", r.url);
|
|
2771
|
+
return Re.NextResponse.redirect(u);
|
|
2772
|
+
}
|
|
2773
|
+
const l = new URL("/auth/login", r.url);
|
|
2774
|
+
return Re.NextResponse.redirect(l);
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
const hn = [
|
|
2778
|
+
/*
|
|
2779
|
+
* Match all request paths except for the ones starting with:
|
|
2780
|
+
* - _next/static (static files)
|
|
2781
|
+
* - _next/image (image optimization files)
|
|
2782
|
+
* - favicon.ico, sitemap.xml, robots.txt (metadata files)
|
|
2783
|
+
* - api/auth (auth endpoints)
|
|
2784
|
+
*/
|
|
2785
|
+
"/((?!_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt|api/auth).*)"
|
|
2786
|
+
];
|
|
2787
|
+
export {
|
|
2788
|
+
mn as accessToken,
|
|
2789
|
+
hn as authMiddlewareMatcher,
|
|
2790
|
+
Pr as createServerAuth0,
|
|
2791
|
+
br as getAuth0Client,
|
|
2792
|
+
ln as getAuth0ServerConfigFromEnv,
|
|
2793
|
+
dn as getServerSidePermissions,
|
|
2794
|
+
fn as handleAuthMiddleware
|
|
2795
|
+
};
|