@nextblock-cms/db 0.0.1
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/index.cjs.js +12 -0
- package/index.d.ts +4 -0
- package/index.es.js +1623 -0
- package/index.js +83 -0
- package/index.mjs +11169 -0
- package/invariant-error-BhRJVCqp.js +57 -0
- package/invariant-error-Df4RSFOM.mjs +8905 -0
- package/lib/supabase/client.d.ts +9 -0
- package/lib/supabase/middleware.d.ts +2 -0
- package/lib/supabase/server.d.ts +7 -0
- package/lib/supabase/ssg-client.d.ts +2 -0
- package/lib/supabase/types.d.ts +635 -0
- package/libs/db/src/index.d.ts +4 -0
- package/libs/db/src/lib/supabase/client.d.ts +9 -0
- package/libs/db/src/lib/supabase/middleware.d.ts +2 -0
- package/libs/db/src/lib/supabase/server.d.ts +7 -0
- package/libs/db/src/lib/supabase/ssg-client.d.ts +2 -0
- package/libs/db/src/lib/supabase/types.d.ts +505 -0
- package/libs/db/src/server.d.ts +9 -0
- package/package.json +7 -0
- package/server.cjs.js +2 -0
- package/server.d.ts +9 -0
- package/server.es.js +1161 -0
package/index.es.js
ADDED
|
@@ -0,0 +1,1623 @@
|
|
|
1
|
+
import { c as Mt, a as Ot, i as we, V as Xt, r as Ye, b as Ht, d as Ke, e as Ct, f as Lt, g as Ft, h as kt, j as Gt, k as Bt, l as Wt } from "./invariant-error-Df4RSFOM.mjs";
|
|
2
|
+
let Re;
|
|
3
|
+
function zt(n, d, o) {
|
|
4
|
+
var s;
|
|
5
|
+
const l = we();
|
|
6
|
+
if (l && Re)
|
|
7
|
+
return Re;
|
|
8
|
+
if (!n || !d)
|
|
9
|
+
throw new Error(`@supabase/ssr: Your project's URL and API key are required to create a Supabase client!
|
|
10
|
+
|
|
11
|
+
Check your Supabase project's API settings to find these values
|
|
12
|
+
|
|
13
|
+
https://supabase.com/dashboard/project/_/settings/api`);
|
|
14
|
+
const { storage: f } = Mt({
|
|
15
|
+
...o,
|
|
16
|
+
cookieEncoding: "base64url"
|
|
17
|
+
}, !1), p = Ot(n, d, {
|
|
18
|
+
...o,
|
|
19
|
+
global: {
|
|
20
|
+
...o == null ? void 0 : o.global,
|
|
21
|
+
headers: {
|
|
22
|
+
...(s = o == null ? void 0 : o.global) == null ? void 0 : s.headers,
|
|
23
|
+
"X-Client-Info": `supabase-ssr/${Xt} createBrowserClient`
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
auth: {
|
|
27
|
+
...o == null ? void 0 : o.auth,
|
|
28
|
+
flowType: "pkce",
|
|
29
|
+
autoRefreshToken: we(),
|
|
30
|
+
detectSessionInUrl: we(),
|
|
31
|
+
persistSession: !0,
|
|
32
|
+
storage: f
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return l && (Re = p), p;
|
|
36
|
+
}
|
|
37
|
+
const Vt = () => {
|
|
38
|
+
const n = process.env.NEXT_PUBLIC_SUPABASE_URL, d = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;
|
|
39
|
+
if (!n || !d)
|
|
40
|
+
throw new Error(
|
|
41
|
+
`CRITICAL: Supabase URL or Anon Key is missing. Please ensure NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY are set in your production environment. URL_IS_SET: ${!!n}, ANON_KEY_IS_SET: ${!!d}`
|
|
42
|
+
);
|
|
43
|
+
return zt(n, d);
|
|
44
|
+
};
|
|
45
|
+
async function mr(n, d) {
|
|
46
|
+
const { data: o, error: l } = await n.from("profiles").select("id, full_name, avatar_url, role, updated_at, username, website").eq("id", d).single();
|
|
47
|
+
return l || !o ? null : o;
|
|
48
|
+
}
|
|
49
|
+
async function gr() {
|
|
50
|
+
const n = Vt(), { data: d, error: o } = await n.from("languages").select("id, code, name, is_default, is_active, created_at, updated_at").order("name", { ascending: !0 });
|
|
51
|
+
return o ? [] : d || [];
|
|
52
|
+
}
|
|
53
|
+
var pe = { exports: {} }, ve = {}, Pe = {}, Ae = {}, rt;
|
|
54
|
+
function $t() {
|
|
55
|
+
return rt || (rt = 1, function(n) {
|
|
56
|
+
Object.defineProperty(n, "__esModule", {
|
|
57
|
+
value: !0
|
|
58
|
+
}), Object.defineProperty(n, "detectDomainLocale", {
|
|
59
|
+
enumerable: !0,
|
|
60
|
+
get: function() {
|
|
61
|
+
return d;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
function d(o, l, f) {
|
|
65
|
+
if (o) {
|
|
66
|
+
f && (f = f.toLowerCase());
|
|
67
|
+
for (const e of o) {
|
|
68
|
+
var p, s;
|
|
69
|
+
const h = (p = e.domain) == null ? void 0 : p.split(":", 1)[0].toLowerCase();
|
|
70
|
+
if (l === h || f === e.defaultLocale.toLowerCase() || (s = e.locales) != null && s.some((b) => b.toLowerCase() === f))
|
|
71
|
+
return e;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}(Ae)), Ae;
|
|
76
|
+
}
|
|
77
|
+
var Se = {}, xe = {}, nt;
|
|
78
|
+
function Yt() {
|
|
79
|
+
return nt || (nt = 1, function(n) {
|
|
80
|
+
Object.defineProperty(n, "__esModule", {
|
|
81
|
+
value: !0
|
|
82
|
+
}), Object.defineProperty(n, "removeTrailingSlash", {
|
|
83
|
+
enumerable: !0,
|
|
84
|
+
get: function() {
|
|
85
|
+
return d;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
function d(o) {
|
|
89
|
+
return o.replace(/\/$/, "") || "/";
|
|
90
|
+
}
|
|
91
|
+
}(xe)), xe;
|
|
92
|
+
}
|
|
93
|
+
var ye = {}, Te = {}, it;
|
|
94
|
+
function Qe() {
|
|
95
|
+
return it || (it = 1, function(n) {
|
|
96
|
+
Object.defineProperty(n, "__esModule", {
|
|
97
|
+
value: !0
|
|
98
|
+
}), Object.defineProperty(n, "parsePath", {
|
|
99
|
+
enumerable: !0,
|
|
100
|
+
get: function() {
|
|
101
|
+
return d;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
function d(o) {
|
|
105
|
+
const l = o.indexOf("#"), f = o.indexOf("?"), p = f > -1 && (l < 0 || f < l);
|
|
106
|
+
return p || l > -1 ? {
|
|
107
|
+
pathname: o.substring(0, p ? f : l),
|
|
108
|
+
query: p ? o.substring(f, l > -1 ? l : void 0) : "",
|
|
109
|
+
hash: l > -1 ? o.slice(l) : ""
|
|
110
|
+
} : {
|
|
111
|
+
pathname: o,
|
|
112
|
+
query: "",
|
|
113
|
+
hash: ""
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
}(Te)), Te;
|
|
117
|
+
}
|
|
118
|
+
var ot;
|
|
119
|
+
function Ut() {
|
|
120
|
+
return ot || (ot = 1, function(n) {
|
|
121
|
+
Object.defineProperty(n, "__esModule", {
|
|
122
|
+
value: !0
|
|
123
|
+
}), Object.defineProperty(n, "addPathPrefix", {
|
|
124
|
+
enumerable: !0,
|
|
125
|
+
get: function() {
|
|
126
|
+
return o;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
const d = Qe();
|
|
130
|
+
function o(l, f) {
|
|
131
|
+
if (!l.startsWith("/") || !f)
|
|
132
|
+
return l;
|
|
133
|
+
const { pathname: p, query: s, hash: e } = (0, d.parsePath)(l);
|
|
134
|
+
return "" + f + p + s + e;
|
|
135
|
+
}
|
|
136
|
+
}(ye)), ye;
|
|
137
|
+
}
|
|
138
|
+
var Ne = {}, at;
|
|
139
|
+
function Kt() {
|
|
140
|
+
return at || (at = 1, function(n) {
|
|
141
|
+
Object.defineProperty(n, "__esModule", {
|
|
142
|
+
value: !0
|
|
143
|
+
}), Object.defineProperty(n, "addPathSuffix", {
|
|
144
|
+
enumerable: !0,
|
|
145
|
+
get: function() {
|
|
146
|
+
return o;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
const d = Qe();
|
|
150
|
+
function o(l, f) {
|
|
151
|
+
if (!l.startsWith("/") || !f)
|
|
152
|
+
return l;
|
|
153
|
+
const { pathname: p, query: s, hash: e } = (0, d.parsePath)(l);
|
|
154
|
+
return "" + p + f + s + e;
|
|
155
|
+
}
|
|
156
|
+
}(Ne)), Ne;
|
|
157
|
+
}
|
|
158
|
+
var Ie = {}, Oe = {}, st;
|
|
159
|
+
function Ze() {
|
|
160
|
+
return st || (st = 1, function(n) {
|
|
161
|
+
Object.defineProperty(n, "__esModule", {
|
|
162
|
+
value: !0
|
|
163
|
+
}), Object.defineProperty(n, "pathHasPrefix", {
|
|
164
|
+
enumerable: !0,
|
|
165
|
+
get: function() {
|
|
166
|
+
return o;
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
const d = Qe();
|
|
170
|
+
function o(l, f) {
|
|
171
|
+
if (typeof l != "string")
|
|
172
|
+
return !1;
|
|
173
|
+
const { pathname: p } = (0, d.parsePath)(l);
|
|
174
|
+
return p === f || p.startsWith(f + "/");
|
|
175
|
+
}
|
|
176
|
+
}(Oe)), Oe;
|
|
177
|
+
}
|
|
178
|
+
var ut;
|
|
179
|
+
function Qt() {
|
|
180
|
+
return ut || (ut = 1, function(n) {
|
|
181
|
+
Object.defineProperty(n, "__esModule", {
|
|
182
|
+
value: !0
|
|
183
|
+
}), Object.defineProperty(n, "addLocale", {
|
|
184
|
+
enumerable: !0,
|
|
185
|
+
get: function() {
|
|
186
|
+
return l;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
const d = Ut(), o = Ze();
|
|
190
|
+
function l(f, p, s, e) {
|
|
191
|
+
if (!p || p === s) return f;
|
|
192
|
+
const h = f.toLowerCase();
|
|
193
|
+
return !e && ((0, o.pathHasPrefix)(h, "/api") || (0, o.pathHasPrefix)(h, "/" + p.toLowerCase())) ? f : (0, d.addPathPrefix)(f, "/" + p);
|
|
194
|
+
}
|
|
195
|
+
}(Ie)), Ie;
|
|
196
|
+
}
|
|
197
|
+
var ct;
|
|
198
|
+
function Zt() {
|
|
199
|
+
return ct || (ct = 1, function(n) {
|
|
200
|
+
Object.defineProperty(n, "__esModule", {
|
|
201
|
+
value: !0
|
|
202
|
+
}), Object.defineProperty(n, "formatNextPathnameInfo", {
|
|
203
|
+
enumerable: !0,
|
|
204
|
+
get: function() {
|
|
205
|
+
return p;
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
const d = Yt(), o = Ut(), l = Kt(), f = Qt();
|
|
209
|
+
function p(s) {
|
|
210
|
+
let e = (0, f.addLocale)(s.pathname, s.locale, s.buildId ? void 0 : s.defaultLocale, s.ignorePrefix);
|
|
211
|
+
return (s.buildId || !s.trailingSlash) && (e = (0, d.removeTrailingSlash)(e)), s.buildId && (e = (0, l.addPathSuffix)((0, o.addPathPrefix)(e, "/_next/data/" + s.buildId), s.pathname === "/" ? "index.json" : ".json")), e = (0, o.addPathPrefix)(e, s.basePath), !s.buildId && s.trailingSlash ? e.endsWith("/") ? e : (0, l.addPathSuffix)(e, "/") : (0, d.removeTrailingSlash)(e);
|
|
212
|
+
}
|
|
213
|
+
}(Se)), Se;
|
|
214
|
+
}
|
|
215
|
+
var Ce = {}, lt;
|
|
216
|
+
function Jt() {
|
|
217
|
+
return lt || (lt = 1, function(n) {
|
|
218
|
+
Object.defineProperty(n, "__esModule", {
|
|
219
|
+
value: !0
|
|
220
|
+
}), Object.defineProperty(n, "getHostname", {
|
|
221
|
+
enumerable: !0,
|
|
222
|
+
get: function() {
|
|
223
|
+
return d;
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
function d(o, l) {
|
|
227
|
+
let f;
|
|
228
|
+
if (l != null && l.host && !Array.isArray(l.host))
|
|
229
|
+
f = l.host.toString().split(":", 1)[0];
|
|
230
|
+
else if (o.hostname)
|
|
231
|
+
f = o.hostname;
|
|
232
|
+
else return;
|
|
233
|
+
return f.toLowerCase();
|
|
234
|
+
}
|
|
235
|
+
}(Ce)), Ce;
|
|
236
|
+
}
|
|
237
|
+
var Le = {}, ke = {}, dt;
|
|
238
|
+
function er() {
|
|
239
|
+
return dt || (dt = 1, function(n) {
|
|
240
|
+
Object.defineProperty(n, "__esModule", {
|
|
241
|
+
value: !0
|
|
242
|
+
}), Object.defineProperty(n, "normalizeLocalePath", {
|
|
243
|
+
enumerable: !0,
|
|
244
|
+
get: function() {
|
|
245
|
+
return o;
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
const d = /* @__PURE__ */ new WeakMap();
|
|
249
|
+
function o(l, f) {
|
|
250
|
+
if (!f) return {
|
|
251
|
+
pathname: l
|
|
252
|
+
};
|
|
253
|
+
let p = d.get(f);
|
|
254
|
+
p || (p = f.map((i) => i.toLowerCase()), d.set(f, p));
|
|
255
|
+
let s;
|
|
256
|
+
const e = l.split("/", 2);
|
|
257
|
+
if (!e[1]) return {
|
|
258
|
+
pathname: l
|
|
259
|
+
};
|
|
260
|
+
const h = e[1].toLowerCase(), b = p.indexOf(h);
|
|
261
|
+
return b < 0 ? {
|
|
262
|
+
pathname: l
|
|
263
|
+
} : (s = f[b], l = l.slice(s.length + 1) || "/", {
|
|
264
|
+
pathname: l,
|
|
265
|
+
detectedLocale: s
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}(ke)), ke;
|
|
269
|
+
}
|
|
270
|
+
var Ue = {}, ft;
|
|
271
|
+
function tr() {
|
|
272
|
+
return ft || (ft = 1, function(n) {
|
|
273
|
+
Object.defineProperty(n, "__esModule", {
|
|
274
|
+
value: !0
|
|
275
|
+
}), Object.defineProperty(n, "removePathPrefix", {
|
|
276
|
+
enumerable: !0,
|
|
277
|
+
get: function() {
|
|
278
|
+
return o;
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
const d = Ze();
|
|
282
|
+
function o(l, f) {
|
|
283
|
+
if (!(0, d.pathHasPrefix)(l, f))
|
|
284
|
+
return l;
|
|
285
|
+
const p = l.slice(f.length);
|
|
286
|
+
return p.startsWith("/") ? p : "/" + p;
|
|
287
|
+
}
|
|
288
|
+
}(Ue)), Ue;
|
|
289
|
+
}
|
|
290
|
+
var ht;
|
|
291
|
+
function rr() {
|
|
292
|
+
return ht || (ht = 1, function(n) {
|
|
293
|
+
Object.defineProperty(n, "__esModule", {
|
|
294
|
+
value: !0
|
|
295
|
+
}), Object.defineProperty(n, "getNextPathnameInfo", {
|
|
296
|
+
enumerable: !0,
|
|
297
|
+
get: function() {
|
|
298
|
+
return f;
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
const d = er(), o = tr(), l = Ze();
|
|
302
|
+
function f(p, s) {
|
|
303
|
+
var e;
|
|
304
|
+
const { basePath: h, i18n: b, trailingSlash: i } = (e = s.nextConfig) != null ? e : {}, u = {
|
|
305
|
+
pathname: p,
|
|
306
|
+
trailingSlash: p !== "/" ? p.endsWith("/") : i
|
|
307
|
+
};
|
|
308
|
+
h && (0, l.pathHasPrefix)(u.pathname, h) && (u.pathname = (0, o.removePathPrefix)(u.pathname, h), u.basePath = h);
|
|
309
|
+
let _ = u.pathname;
|
|
310
|
+
if (u.pathname.startsWith("/_next/data/") && u.pathname.endsWith(".json")) {
|
|
311
|
+
const E = u.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), x = E[0];
|
|
312
|
+
u.buildId = x, _ = E[1] !== "index" ? "/" + E.slice(1).join("/") : "/", s.parseData === !0 && (u.pathname = _);
|
|
313
|
+
}
|
|
314
|
+
if (b) {
|
|
315
|
+
let E = s.i18nProvider ? s.i18nProvider.analyze(u.pathname) : (0, d.normalizeLocalePath)(u.pathname, b.locales);
|
|
316
|
+
u.locale = E.detectedLocale;
|
|
317
|
+
var g;
|
|
318
|
+
u.pathname = (g = E.pathname) != null ? g : u.pathname, !E.detectedLocale && u.buildId && (E = s.i18nProvider ? s.i18nProvider.analyze(_) : (0, d.normalizeLocalePath)(_, b.locales), E.detectedLocale && (u.locale = E.detectedLocale));
|
|
319
|
+
}
|
|
320
|
+
return u;
|
|
321
|
+
}
|
|
322
|
+
}(Le)), Le;
|
|
323
|
+
}
|
|
324
|
+
var _t;
|
|
325
|
+
function Dt() {
|
|
326
|
+
return _t || (_t = 1, function(n) {
|
|
327
|
+
Object.defineProperty(n, "__esModule", {
|
|
328
|
+
value: !0
|
|
329
|
+
}), Object.defineProperty(n, "NextURL", {
|
|
330
|
+
enumerable: !0,
|
|
331
|
+
get: function() {
|
|
332
|
+
return h;
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
const d = $t(), o = Zt(), l = Jt(), f = rr(), p = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
336
|
+
function s(b, i) {
|
|
337
|
+
return new URL(String(b).replace(p, "localhost"), i && String(i).replace(p, "localhost"));
|
|
338
|
+
}
|
|
339
|
+
const e = Symbol("NextURLInternal");
|
|
340
|
+
class h {
|
|
341
|
+
constructor(i, u, _) {
|
|
342
|
+
let g, E;
|
|
343
|
+
typeof u == "object" && "pathname" in u || typeof u == "string" ? (g = u, E = _ || {}) : E = _ || u || {}, this[e] = {
|
|
344
|
+
url: s(i, g ?? E.base),
|
|
345
|
+
options: E,
|
|
346
|
+
basePath: ""
|
|
347
|
+
}, this.analyze();
|
|
348
|
+
}
|
|
349
|
+
analyze() {
|
|
350
|
+
var i, u, _, g, E;
|
|
351
|
+
const x = (0, f.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
|
+
}), t = (0, l.getHostname)(this[e].url, this[e].options.headers);
|
|
356
|
+
this[e].domainLocale = this[e].options.i18nProvider ? this[e].options.i18nProvider.detectDomainLocale(t) : (0, d.detectDomainLocale)((u = this[e].options.nextConfig) == null || (i = u.i18n) == null ? void 0 : i.domains, t);
|
|
357
|
+
const c = ((_ = this[e].domainLocale) == null ? void 0 : _.defaultLocale) || ((E = this[e].options.nextConfig) == null || (g = E.i18n) == null ? void 0 : g.defaultLocale);
|
|
358
|
+
this[e].url.pathname = x.pathname, this[e].defaultLocale = c, this[e].basePath = x.basePath ?? "", this[e].buildId = x.buildId, this[e].locale = x.locale ?? c, this[e].trailingSlash = x.trailingSlash;
|
|
359
|
+
}
|
|
360
|
+
formatPathname() {
|
|
361
|
+
return (0, o.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 u, _;
|
|
384
|
+
if (!this[e].locale || !(!((_ = this[e].options.nextConfig) == null || (u = _.i18n) == null) && u.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(), u = this.formatSearch();
|
|
427
|
+
return `${this.protocol}//${this.host}${i}${u}${this.hash}`;
|
|
428
|
+
}
|
|
429
|
+
set href(i) {
|
|
430
|
+
this[e].url = s(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 h(String(this), this[e].options);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}(Pe)), Pe;
|
|
498
|
+
}
|
|
499
|
+
var De = {}, qe = {}, pt;
|
|
500
|
+
function nr() {
|
|
501
|
+
return pt || (pt = 1, function(n) {
|
|
502
|
+
Object.defineProperty(n, "__esModule", {
|
|
503
|
+
value: !0
|
|
504
|
+
});
|
|
505
|
+
function d(ie, j) {
|
|
506
|
+
for (var Y in j) Object.defineProperty(ie, Y, {
|
|
507
|
+
enumerable: !0,
|
|
508
|
+
get: j[Y]
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
d(n, {
|
|
512
|
+
ACTION_SUFFIX: function() {
|
|
513
|
+
return u;
|
|
514
|
+
},
|
|
515
|
+
APP_DIR_ALIAS: function() {
|
|
516
|
+
return ae;
|
|
517
|
+
},
|
|
518
|
+
CACHE_ONE_YEAR: function() {
|
|
519
|
+
return P;
|
|
520
|
+
},
|
|
521
|
+
DOT_NEXT_ALIAS: function() {
|
|
522
|
+
return F;
|
|
523
|
+
},
|
|
524
|
+
ESLINT_DEFAULT_DIRS: function() {
|
|
525
|
+
return me;
|
|
526
|
+
},
|
|
527
|
+
GSP_NO_RETURNED_VALUE: function() {
|
|
528
|
+
return V;
|
|
529
|
+
},
|
|
530
|
+
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
531
|
+
return de;
|
|
532
|
+
},
|
|
533
|
+
GSSP_NO_RETURNED_VALUE: function() {
|
|
534
|
+
return re;
|
|
535
|
+
},
|
|
536
|
+
INFINITE_CACHE: function() {
|
|
537
|
+
return v;
|
|
538
|
+
},
|
|
539
|
+
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
540
|
+
return Q;
|
|
541
|
+
},
|
|
542
|
+
MATCHED_PATH_HEADER: function() {
|
|
543
|
+
return f;
|
|
544
|
+
},
|
|
545
|
+
MIDDLEWARE_FILENAME: function() {
|
|
546
|
+
return I;
|
|
547
|
+
},
|
|
548
|
+
MIDDLEWARE_LOCATION_REGEXP: function() {
|
|
549
|
+
return D;
|
|
550
|
+
},
|
|
551
|
+
NEXT_BODY_SUFFIX: function() {
|
|
552
|
+
return E;
|
|
553
|
+
},
|
|
554
|
+
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
555
|
+
return U;
|
|
556
|
+
},
|
|
557
|
+
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
558
|
+
return t;
|
|
559
|
+
},
|
|
560
|
+
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
561
|
+
return c;
|
|
562
|
+
},
|
|
563
|
+
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
564
|
+
return O;
|
|
565
|
+
},
|
|
566
|
+
NEXT_CACHE_TAGS_HEADER: function() {
|
|
567
|
+
return x;
|
|
568
|
+
},
|
|
569
|
+
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
570
|
+
return a;
|
|
571
|
+
},
|
|
572
|
+
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
573
|
+
return m;
|
|
574
|
+
},
|
|
575
|
+
NEXT_DATA_SUFFIX: function() {
|
|
576
|
+
return _;
|
|
577
|
+
},
|
|
578
|
+
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
579
|
+
return l;
|
|
580
|
+
},
|
|
581
|
+
NEXT_META_SUFFIX: function() {
|
|
582
|
+
return g;
|
|
583
|
+
},
|
|
584
|
+
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
585
|
+
return o;
|
|
586
|
+
},
|
|
587
|
+
NEXT_RESUME_HEADER: function() {
|
|
588
|
+
return r;
|
|
589
|
+
},
|
|
590
|
+
NON_STANDARD_NODE_ENV: function() {
|
|
591
|
+
return fe;
|
|
592
|
+
},
|
|
593
|
+
PAGES_DIR_ALIAS: function() {
|
|
594
|
+
return Z;
|
|
595
|
+
},
|
|
596
|
+
PRERENDER_REVALIDATE_HEADER: function() {
|
|
597
|
+
return p;
|
|
598
|
+
},
|
|
599
|
+
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
600
|
+
return s;
|
|
601
|
+
},
|
|
602
|
+
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
603
|
+
return J;
|
|
604
|
+
},
|
|
605
|
+
ROOT_DIR_ALIAS: function() {
|
|
606
|
+
return X;
|
|
607
|
+
},
|
|
608
|
+
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
609
|
+
return ue;
|
|
610
|
+
},
|
|
611
|
+
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
612
|
+
return W;
|
|
613
|
+
},
|
|
614
|
+
RSC_ACTION_PROXY_ALIAS: function() {
|
|
615
|
+
return G;
|
|
616
|
+
},
|
|
617
|
+
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
618
|
+
return q;
|
|
619
|
+
},
|
|
620
|
+
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
621
|
+
return be;
|
|
622
|
+
},
|
|
623
|
+
RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
|
|
624
|
+
return B;
|
|
625
|
+
},
|
|
626
|
+
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
627
|
+
return se;
|
|
628
|
+
},
|
|
629
|
+
RSC_PREFETCH_SUFFIX: function() {
|
|
630
|
+
return e;
|
|
631
|
+
},
|
|
632
|
+
RSC_SEGMENTS_DIR_SUFFIX: function() {
|
|
633
|
+
return h;
|
|
634
|
+
},
|
|
635
|
+
RSC_SEGMENT_SUFFIX: function() {
|
|
636
|
+
return b;
|
|
637
|
+
},
|
|
638
|
+
RSC_SUFFIX: function() {
|
|
639
|
+
return i;
|
|
640
|
+
},
|
|
641
|
+
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
642
|
+
return le;
|
|
643
|
+
},
|
|
644
|
+
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
645
|
+
return ce;
|
|
646
|
+
},
|
|
647
|
+
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
648
|
+
return z;
|
|
649
|
+
},
|
|
650
|
+
SERVER_RUNTIME: function() {
|
|
651
|
+
return $;
|
|
652
|
+
},
|
|
653
|
+
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
654
|
+
return he;
|
|
655
|
+
},
|
|
656
|
+
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
657
|
+
return ee;
|
|
658
|
+
},
|
|
659
|
+
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
660
|
+
return te;
|
|
661
|
+
},
|
|
662
|
+
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
663
|
+
return ne;
|
|
664
|
+
},
|
|
665
|
+
WEBPACK_LAYERS: function() {
|
|
666
|
+
return H;
|
|
667
|
+
},
|
|
668
|
+
WEBPACK_RESOURCE_QUERIES: function() {
|
|
669
|
+
return ge;
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
const o = "nxtP", l = "nxtI", f = "x-matched-path", p = "x-prerender-revalidate", s = "x-prerender-revalidate-if-generated", e = ".prefetch.rsc", h = ".segments", b = ".segment.rsc", i = ".rsc", u = ".action", _ = ".json", g = ".meta", E = ".body", x = "x-next-cache-tags", t = "x-next-revalidated-tags", c = "x-next-revalidate-tag-token", r = "next-resume", a = 128, m = 256, O = 1024, U = "_N_T_", P = 31536e3, v = 4294967294, I = "middleware", D = `(?:src/)?${I}`, Q = "instrumentation", Z = "private-next-pages", F = "private-dot-next", X = "private-next-root-dir", ae = "private-next-app-dir", se = "private-next-rsc-mod-ref-proxy", q = "private-next-rsc-action-validate", G = "private-next-rsc-server-reference", be = "private-next-rsc-cache-wrapper", B = "private-next-rsc-track-dynamic-import", W = "private-next-rsc-action-encryption", ue = "private-next-rsc-action-client-wrapper", J = "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", ee = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ce = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", z = "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", le = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", V = "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`?", ne = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", de = "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", fe = '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', he = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", me = [
|
|
673
|
+
"app",
|
|
674
|
+
"pages",
|
|
675
|
+
"components",
|
|
676
|
+
"lib",
|
|
677
|
+
"src"
|
|
678
|
+
], $ = {
|
|
679
|
+
edge: "edge",
|
|
680
|
+
experimentalEdge: "experimental-edge",
|
|
681
|
+
nodejs: "nodejs"
|
|
682
|
+
}, N = {
|
|
683
|
+
/**
|
|
684
|
+
* The layer for the shared code between the client and server bundles.
|
|
685
|
+
*/
|
|
686
|
+
shared: "shared",
|
|
687
|
+
/**
|
|
688
|
+
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
689
|
+
* Including app router RSC pages and app router custom routes and metadata routes.
|
|
690
|
+
*/
|
|
691
|
+
reactServerComponents: "rsc",
|
|
692
|
+
/**
|
|
693
|
+
* Server Side Rendering layer for app (ssr).
|
|
694
|
+
*/
|
|
695
|
+
serverSideRendering: "ssr",
|
|
696
|
+
/**
|
|
697
|
+
* The browser client bundle layer for actions.
|
|
698
|
+
*/
|
|
699
|
+
actionBrowser: "action-browser",
|
|
700
|
+
/**
|
|
701
|
+
* The Node.js bundle layer for the API routes.
|
|
702
|
+
*/
|
|
703
|
+
apiNode: "api-node",
|
|
704
|
+
/**
|
|
705
|
+
* The Edge Lite bundle layer for the API routes.
|
|
706
|
+
*/
|
|
707
|
+
apiEdge: "api-edge",
|
|
708
|
+
/**
|
|
709
|
+
* The layer for the middleware code.
|
|
710
|
+
*/
|
|
711
|
+
middleware: "middleware",
|
|
712
|
+
/**
|
|
713
|
+
* The layer for the instrumentation hooks.
|
|
714
|
+
*/
|
|
715
|
+
instrument: "instrument",
|
|
716
|
+
/**
|
|
717
|
+
* The layer for assets on the edge.
|
|
718
|
+
*/
|
|
719
|
+
edgeAsset: "edge-asset",
|
|
720
|
+
/**
|
|
721
|
+
* The browser client bundle layer for App directory.
|
|
722
|
+
*/
|
|
723
|
+
appPagesBrowser: "app-pages-browser",
|
|
724
|
+
/**
|
|
725
|
+
* The browser client bundle layer for Pages directory.
|
|
726
|
+
*/
|
|
727
|
+
pagesDirBrowser: "pages-dir-browser",
|
|
728
|
+
/**
|
|
729
|
+
* The Edge Lite bundle layer for Pages directory.
|
|
730
|
+
*/
|
|
731
|
+
pagesDirEdge: "pages-dir-edge",
|
|
732
|
+
/**
|
|
733
|
+
* The Node.js bundle layer for Pages directory.
|
|
734
|
+
*/
|
|
735
|
+
pagesDirNode: "pages-dir-node"
|
|
736
|
+
}, H = {
|
|
737
|
+
...N,
|
|
738
|
+
GROUP: {
|
|
739
|
+
builtinReact: [
|
|
740
|
+
N.reactServerComponents,
|
|
741
|
+
N.actionBrowser
|
|
742
|
+
],
|
|
743
|
+
serverOnly: [
|
|
744
|
+
N.reactServerComponents,
|
|
745
|
+
N.actionBrowser,
|
|
746
|
+
N.instrument,
|
|
747
|
+
N.middleware
|
|
748
|
+
],
|
|
749
|
+
neutralTarget: [
|
|
750
|
+
// pages api
|
|
751
|
+
N.apiNode,
|
|
752
|
+
N.apiEdge
|
|
753
|
+
],
|
|
754
|
+
clientOnly: [
|
|
755
|
+
N.serverSideRendering,
|
|
756
|
+
N.appPagesBrowser
|
|
757
|
+
],
|
|
758
|
+
bundled: [
|
|
759
|
+
N.reactServerComponents,
|
|
760
|
+
N.actionBrowser,
|
|
761
|
+
N.serverSideRendering,
|
|
762
|
+
N.appPagesBrowser,
|
|
763
|
+
N.shared,
|
|
764
|
+
N.instrument,
|
|
765
|
+
N.middleware
|
|
766
|
+
],
|
|
767
|
+
appPages: [
|
|
768
|
+
// app router pages and layouts
|
|
769
|
+
N.reactServerComponents,
|
|
770
|
+
N.serverSideRendering,
|
|
771
|
+
N.appPagesBrowser,
|
|
772
|
+
N.actionBrowser
|
|
773
|
+
]
|
|
774
|
+
}
|
|
775
|
+
}, ge = {
|
|
776
|
+
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
777
|
+
metadata: "__next_metadata__",
|
|
778
|
+
metadataRoute: "__next_metadata_route__",
|
|
779
|
+
metadataImageMeta: "__next_metadata_image_meta__"
|
|
780
|
+
};
|
|
781
|
+
}(qe)), qe;
|
|
782
|
+
}
|
|
783
|
+
var bt;
|
|
784
|
+
function qt() {
|
|
785
|
+
return bt || (bt = 1, function(n) {
|
|
786
|
+
Object.defineProperty(n, "__esModule", {
|
|
787
|
+
value: !0
|
|
788
|
+
});
|
|
789
|
+
function d(h, b) {
|
|
790
|
+
for (var i in b) Object.defineProperty(h, i, {
|
|
791
|
+
enumerable: !0,
|
|
792
|
+
get: b[i]
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
d(n, {
|
|
796
|
+
fromNodeOutgoingHttpHeaders: function() {
|
|
797
|
+
return l;
|
|
798
|
+
},
|
|
799
|
+
normalizeNextQueryParam: function() {
|
|
800
|
+
return e;
|
|
801
|
+
},
|
|
802
|
+
splitCookiesString: function() {
|
|
803
|
+
return f;
|
|
804
|
+
},
|
|
805
|
+
toNodeOutgoingHttpHeaders: function() {
|
|
806
|
+
return p;
|
|
807
|
+
},
|
|
808
|
+
validateURL: function() {
|
|
809
|
+
return s;
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
const o = nr();
|
|
813
|
+
function l(h) {
|
|
814
|
+
const b = new Headers();
|
|
815
|
+
for (let [i, u] of Object.entries(h)) {
|
|
816
|
+
const _ = Array.isArray(u) ? u : [
|
|
817
|
+
u
|
|
818
|
+
];
|
|
819
|
+
for (let g of _)
|
|
820
|
+
typeof g > "u" || (typeof g == "number" && (g = g.toString()), b.append(i, g));
|
|
821
|
+
}
|
|
822
|
+
return b;
|
|
823
|
+
}
|
|
824
|
+
function f(h) {
|
|
825
|
+
var b = [], i = 0, u, _, g, E, x;
|
|
826
|
+
function t() {
|
|
827
|
+
for (; i < h.length && /\s/.test(h.charAt(i)); )
|
|
828
|
+
i += 1;
|
|
829
|
+
return i < h.length;
|
|
830
|
+
}
|
|
831
|
+
function c() {
|
|
832
|
+
return _ = h.charAt(i), _ !== "=" && _ !== ";" && _ !== ",";
|
|
833
|
+
}
|
|
834
|
+
for (; i < h.length; ) {
|
|
835
|
+
for (u = i, x = !1; t(); )
|
|
836
|
+
if (_ = h.charAt(i), _ === ",") {
|
|
837
|
+
for (g = i, i += 1, t(), E = i; i < h.length && c(); )
|
|
838
|
+
i += 1;
|
|
839
|
+
i < h.length && h.charAt(i) === "=" ? (x = !0, i = E, b.push(h.substring(u, g)), u = i) : i = g + 1;
|
|
840
|
+
} else
|
|
841
|
+
i += 1;
|
|
842
|
+
(!x || i >= h.length) && b.push(h.substring(u, h.length));
|
|
843
|
+
}
|
|
844
|
+
return b;
|
|
845
|
+
}
|
|
846
|
+
function p(h) {
|
|
847
|
+
const b = {}, i = [];
|
|
848
|
+
if (h)
|
|
849
|
+
for (const [u, _] of h.entries())
|
|
850
|
+
u.toLowerCase() === "set-cookie" ? (i.push(...f(_)), b[u] = i.length === 1 ? i[0] : i) : b[u] = _;
|
|
851
|
+
return b;
|
|
852
|
+
}
|
|
853
|
+
function s(h) {
|
|
854
|
+
try {
|
|
855
|
+
return String(new URL(String(h)));
|
|
856
|
+
} catch (b) {
|
|
857
|
+
throw Object.defineProperty(new Error(`URL is malformed "${String(h)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
|
|
858
|
+
cause: b
|
|
859
|
+
}), "__NEXT_ERROR_CODE", {
|
|
860
|
+
value: "E61",
|
|
861
|
+
enumerable: !1,
|
|
862
|
+
configurable: !0
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
function e(h) {
|
|
867
|
+
const b = [
|
|
868
|
+
o.NEXT_QUERY_PARAM_PREFIX,
|
|
869
|
+
o.NEXT_INTERCEPTION_MARKER_PREFIX
|
|
870
|
+
];
|
|
871
|
+
for (const i of b)
|
|
872
|
+
if (h !== i && h.startsWith(i))
|
|
873
|
+
return h.substring(i.length);
|
|
874
|
+
return null;
|
|
875
|
+
}
|
|
876
|
+
}(De)), De;
|
|
877
|
+
}
|
|
878
|
+
var je = {}, mt;
|
|
879
|
+
function ir() {
|
|
880
|
+
return mt || (mt = 1, function(n) {
|
|
881
|
+
Object.defineProperty(n, "__esModule", {
|
|
882
|
+
value: !0
|
|
883
|
+
});
|
|
884
|
+
function d(p, s) {
|
|
885
|
+
for (var e in s) Object.defineProperty(p, e, {
|
|
886
|
+
enumerable: !0,
|
|
887
|
+
get: s[e]
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
d(n, {
|
|
891
|
+
PageSignatureError: function() {
|
|
892
|
+
return o;
|
|
893
|
+
},
|
|
894
|
+
RemovedPageError: function() {
|
|
895
|
+
return l;
|
|
896
|
+
},
|
|
897
|
+
RemovedUAError: function() {
|
|
898
|
+
return f;
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
class o extends Error {
|
|
902
|
+
constructor({ page: s }) {
|
|
903
|
+
super(`The middleware "${s}" accepts an async API directly with the form:
|
|
904
|
+
|
|
905
|
+
export function middleware(request, event) {
|
|
906
|
+
return NextResponse.redirect('/new-location')
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
|
910
|
+
`);
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
class l extends Error {
|
|
914
|
+
constructor() {
|
|
915
|
+
super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ");
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
class f extends Error {
|
|
919
|
+
constructor() {
|
|
920
|
+
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 ");
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
}(je)), je;
|
|
924
|
+
}
|
|
925
|
+
var gt;
|
|
926
|
+
function or() {
|
|
927
|
+
return gt || (gt = 1, function(n) {
|
|
928
|
+
Object.defineProperty(n, "__esModule", {
|
|
929
|
+
value: !0
|
|
930
|
+
});
|
|
931
|
+
function d(h, b) {
|
|
932
|
+
for (var i in b) Object.defineProperty(h, i, {
|
|
933
|
+
enumerable: !0,
|
|
934
|
+
get: b[i]
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
d(n, {
|
|
938
|
+
INTERNALS: function() {
|
|
939
|
+
return s;
|
|
940
|
+
},
|
|
941
|
+
NextRequest: function() {
|
|
942
|
+
return e;
|
|
943
|
+
}
|
|
944
|
+
});
|
|
945
|
+
const o = Dt(), l = qt(), f = ir(), p = Ye(), s = Symbol("internal request");
|
|
946
|
+
class e extends Request {
|
|
947
|
+
constructor(b, i = {}) {
|
|
948
|
+
const u = typeof b != "string" && "url" in b ? b.url : String(b);
|
|
949
|
+
(0, l.validateURL)(u), process.env.NEXT_RUNTIME !== "edge" && i.body && i.duplex !== "half" && (i.duplex = "half"), b instanceof Request ? super(b, i) : super(u, i);
|
|
950
|
+
const _ = new o.NextURL(u, {
|
|
951
|
+
headers: (0, l.toNodeOutgoingHttpHeaders)(this.headers),
|
|
952
|
+
nextConfig: i.nextConfig
|
|
953
|
+
});
|
|
954
|
+
this[s] = {
|
|
955
|
+
cookies: new p.RequestCookies(this.headers),
|
|
956
|
+
nextUrl: _,
|
|
957
|
+
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? u : _.toString()
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
961
|
+
return {
|
|
962
|
+
cookies: this.cookies,
|
|
963
|
+
nextUrl: this.nextUrl,
|
|
964
|
+
url: this.url,
|
|
965
|
+
// rest of props come from Request
|
|
966
|
+
bodyUsed: this.bodyUsed,
|
|
967
|
+
cache: this.cache,
|
|
968
|
+
credentials: this.credentials,
|
|
969
|
+
destination: this.destination,
|
|
970
|
+
headers: Object.fromEntries(this.headers),
|
|
971
|
+
integrity: this.integrity,
|
|
972
|
+
keepalive: this.keepalive,
|
|
973
|
+
method: this.method,
|
|
974
|
+
mode: this.mode,
|
|
975
|
+
redirect: this.redirect,
|
|
976
|
+
referrer: this.referrer,
|
|
977
|
+
referrerPolicy: this.referrerPolicy,
|
|
978
|
+
signal: this.signal
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
get cookies() {
|
|
982
|
+
return this[s].cookies;
|
|
983
|
+
}
|
|
984
|
+
get nextUrl() {
|
|
985
|
+
return this[s].nextUrl;
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* @deprecated
|
|
989
|
+
* `page` has been deprecated in favour of `URLPattern`.
|
|
990
|
+
* Read more: https://nextjs.org/docs/messages/middleware-request-page
|
|
991
|
+
*/
|
|
992
|
+
get page() {
|
|
993
|
+
throw new f.RemovedPageError();
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* @deprecated
|
|
997
|
+
* `ua` has been removed in favour of \`userAgent\` function.
|
|
998
|
+
* Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
|
|
999
|
+
*/
|
|
1000
|
+
get ua() {
|
|
1001
|
+
throw new f.RemovedUAError();
|
|
1002
|
+
}
|
|
1003
|
+
get url() {
|
|
1004
|
+
return this[s].url;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}(ve)), ve;
|
|
1008
|
+
}
|
|
1009
|
+
var Me = {}, Et;
|
|
1010
|
+
function ar() {
|
|
1011
|
+
return Et || (Et = 1, function(n) {
|
|
1012
|
+
Object.defineProperty(n, "__esModule", {
|
|
1013
|
+
value: !0
|
|
1014
|
+
}), Object.defineProperty(n, "NextResponse", {
|
|
1015
|
+
enumerable: !0,
|
|
1016
|
+
get: function() {
|
|
1017
|
+
return b;
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1020
|
+
const d = Ye(), o = Dt(), l = qt(), f = Ht(), p = Ye(), s = Symbol("internal response"), e = /* @__PURE__ */ new Set([
|
|
1021
|
+
301,
|
|
1022
|
+
302,
|
|
1023
|
+
303,
|
|
1024
|
+
307,
|
|
1025
|
+
308
|
|
1026
|
+
]);
|
|
1027
|
+
function h(i, u) {
|
|
1028
|
+
var _;
|
|
1029
|
+
if (!(i == null || (_ = i.request) == null) && _.headers) {
|
|
1030
|
+
if (!(i.request.headers instanceof Headers))
|
|
1031
|
+
throw Object.defineProperty(new Error("request.headers must be an instance of Headers"), "__NEXT_ERROR_CODE", {
|
|
1032
|
+
value: "E119",
|
|
1033
|
+
enumerable: !1,
|
|
1034
|
+
configurable: !0
|
|
1035
|
+
});
|
|
1036
|
+
const g = [];
|
|
1037
|
+
for (const [E, x] of i.request.headers)
|
|
1038
|
+
u.set("x-middleware-request-" + E, x), g.push(E);
|
|
1039
|
+
u.set("x-middleware-override-headers", g.join(","));
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
class b extends Response {
|
|
1043
|
+
constructor(u, _ = {}) {
|
|
1044
|
+
super(u, _);
|
|
1045
|
+
const g = this.headers, E = new p.ResponseCookies(g), x = new Proxy(E, {
|
|
1046
|
+
get(t, c, r) {
|
|
1047
|
+
switch (c) {
|
|
1048
|
+
case "delete":
|
|
1049
|
+
case "set":
|
|
1050
|
+
return (...a) => {
|
|
1051
|
+
const m = Reflect.apply(t[c], t, a), O = new Headers(g);
|
|
1052
|
+
return m instanceof p.ResponseCookies && g.set("x-middleware-set-cookie", m.getAll().map((U) => (0, d.stringifyCookie)(U)).join(",")), h(_, O), m;
|
|
1053
|
+
};
|
|
1054
|
+
default:
|
|
1055
|
+
return f.ReflectAdapter.get(t, c, r);
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
this[s] = {
|
|
1060
|
+
cookies: x,
|
|
1061
|
+
url: _.url ? new o.NextURL(_.url, {
|
|
1062
|
+
headers: (0, l.toNodeOutgoingHttpHeaders)(g),
|
|
1063
|
+
nextConfig: _.nextConfig
|
|
1064
|
+
}) : void 0
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1068
|
+
return {
|
|
1069
|
+
cookies: this.cookies,
|
|
1070
|
+
url: this.url,
|
|
1071
|
+
// rest of props come from Response
|
|
1072
|
+
body: this.body,
|
|
1073
|
+
bodyUsed: this.bodyUsed,
|
|
1074
|
+
headers: Object.fromEntries(this.headers),
|
|
1075
|
+
ok: this.ok,
|
|
1076
|
+
redirected: this.redirected,
|
|
1077
|
+
status: this.status,
|
|
1078
|
+
statusText: this.statusText,
|
|
1079
|
+
type: this.type
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
get cookies() {
|
|
1083
|
+
return this[s].cookies;
|
|
1084
|
+
}
|
|
1085
|
+
static json(u, _) {
|
|
1086
|
+
const g = Response.json(u, _);
|
|
1087
|
+
return new b(g.body, g);
|
|
1088
|
+
}
|
|
1089
|
+
static redirect(u, _) {
|
|
1090
|
+
const g = typeof _ == "number" ? _ : (_ == null ? void 0 : _.status) ?? 307;
|
|
1091
|
+
if (!e.has(g))
|
|
1092
|
+
throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'), "__NEXT_ERROR_CODE", {
|
|
1093
|
+
value: "E529",
|
|
1094
|
+
enumerable: !1,
|
|
1095
|
+
configurable: !0
|
|
1096
|
+
});
|
|
1097
|
+
const E = typeof _ == "object" ? _ : {}, x = new Headers(E == null ? void 0 : E.headers);
|
|
1098
|
+
return x.set("Location", (0, l.validateURL)(u)), new b(null, {
|
|
1099
|
+
...E,
|
|
1100
|
+
headers: x,
|
|
1101
|
+
status: g
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
static rewrite(u, _) {
|
|
1105
|
+
const g = new Headers(_ == null ? void 0 : _.headers);
|
|
1106
|
+
return g.set("x-middleware-rewrite", (0, l.validateURL)(u)), h(_, g), new b(null, {
|
|
1107
|
+
..._,
|
|
1108
|
+
headers: g
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
static next(u) {
|
|
1112
|
+
const _ = new Headers(u == null ? void 0 : u.headers);
|
|
1113
|
+
return _.set("x-middleware-next", "1"), h(u, _), new b(null, {
|
|
1114
|
+
...u,
|
|
1115
|
+
headers: _
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}(Me)), Me;
|
|
1120
|
+
}
|
|
1121
|
+
var Xe = {}, wt;
|
|
1122
|
+
function sr() {
|
|
1123
|
+
return wt || (wt = 1, function(n) {
|
|
1124
|
+
Object.defineProperty(n, "__esModule", {
|
|
1125
|
+
value: !0
|
|
1126
|
+
}), Object.defineProperty(n, "ImageResponse", {
|
|
1127
|
+
enumerable: !0,
|
|
1128
|
+
get: function() {
|
|
1129
|
+
return d;
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
function d() {
|
|
1133
|
+
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", {
|
|
1134
|
+
value: "E183",
|
|
1135
|
+
enumerable: !1,
|
|
1136
|
+
configurable: !0
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
}(Xe)), Xe;
|
|
1140
|
+
}
|
|
1141
|
+
var He = {}, Fe = { exports: {} }, Rt;
|
|
1142
|
+
function ur() {
|
|
1143
|
+
return Rt || (Rt = 1, (() => {
|
|
1144
|
+
var n = { 226: function(f, p) {
|
|
1145
|
+
(function(s, e) {
|
|
1146
|
+
var h = "1.0.35", b = "", i = "?", u = "function", _ = "undefined", g = "object", E = "string", x = "major", t = "model", c = "name", r = "type", a = "vendor", m = "version", O = "architecture", U = "console", P = "mobile", v = "tablet", I = "smarttv", D = "wearable", Q = "embedded", Z = 350, F = "Amazon", X = "Apple", ae = "ASUS", se = "BlackBerry", q = "Browser", G = "Chrome", be = "Edge", B = "Firefox", W = "Google", ue = "Huawei", J = "LG", ee = "Microsoft", ce = "Motorola", z = "Opera", te = "Samsung", le = "Sharp", V = "Sony", re = "Xiaomi", ne = "Zebra", de = "Facebook", fe = "Chromium OS", he = "Mac OS", me = function(A, y) {
|
|
1147
|
+
var R = {};
|
|
1148
|
+
for (var T in A)
|
|
1149
|
+
y[T] && y[T].length % 2 === 0 ? R[T] = y[T].concat(A[T]) : R[T] = A[T];
|
|
1150
|
+
return R;
|
|
1151
|
+
}, $ = function(A) {
|
|
1152
|
+
for (var y = {}, R = 0; R < A.length; R++)
|
|
1153
|
+
y[A[R].toUpperCase()] = A[R];
|
|
1154
|
+
return y;
|
|
1155
|
+
}, N = function(A, y) {
|
|
1156
|
+
return typeof A === E ? H(y).indexOf(H(A)) !== -1 : !1;
|
|
1157
|
+
}, H = function(A) {
|
|
1158
|
+
return A.toLowerCase();
|
|
1159
|
+
}, ge = function(A) {
|
|
1160
|
+
return typeof A === E ? A.replace(/[^\d\.]/g, b).split(".")[0] : e;
|
|
1161
|
+
}, ie = function(A, y) {
|
|
1162
|
+
if (typeof A === E)
|
|
1163
|
+
return A = A.replace(/^\s\s*/, b), typeof y === _ ? A : A.substring(0, Z);
|
|
1164
|
+
}, j = function(A, y) {
|
|
1165
|
+
for (var R = 0, T, M, L, S, w, k; R < y.length && !w; ) {
|
|
1166
|
+
var Ee = y[R], tt = y[R + 1];
|
|
1167
|
+
for (T = M = 0; T < Ee.length && !w && Ee[T]; )
|
|
1168
|
+
if (w = Ee[T++].exec(A), w)
|
|
1169
|
+
for (L = 0; L < tt.length; L++)
|
|
1170
|
+
k = w[++M], S = tt[L], typeof S === g && S.length > 0 ? S.length === 2 ? typeof S[1] == u ? this[S[0]] = S[1].call(this, k) : this[S[0]] = S[1] : S.length === 3 ? typeof S[1] === u && !(S[1].exec && S[1].test) ? this[S[0]] = k ? S[1].call(this, k, S[2]) : e : this[S[0]] = k ? k.replace(S[1], S[2]) : e : S.length === 4 && (this[S[0]] = k ? S[3].call(this, k.replace(S[1], S[2])) : e) : this[S] = k || e;
|
|
1171
|
+
R += 2;
|
|
1172
|
+
}
|
|
1173
|
+
}, Y = function(A, y) {
|
|
1174
|
+
for (var R in y)
|
|
1175
|
+
if (typeof y[R] === g && y[R].length > 0) {
|
|
1176
|
+
for (var T = 0; T < y[R].length; T++)
|
|
1177
|
+
if (N(y[R][T], A))
|
|
1178
|
+
return R === i ? e : R;
|
|
1179
|
+
} else if (N(y[R], A))
|
|
1180
|
+
return R === i ? e : R;
|
|
1181
|
+
return A;
|
|
1182
|
+
}, jt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Je = { 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" }, et = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [m, [c, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [m, [c, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [c, m], [/opios[\/ ]+([\w\.]+)/i], [m, [c, z + " Mini"]], [/\bopr\/([\w\.]+)/i], [m, [c, z]], [/(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], [c, m], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [m, [c, "UC" + q]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [m, [c, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [m, [c, "WeChat"]], [/konqueror\/([\w\.]+)/i], [m, [c, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [m, [c, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [m, [c, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[c, /(.+)/, "$1 Secure " + q], m], [/\bfocus\/([\w\.]+)/i], [m, [c, B + " Focus"]], [/\bopt\/([\w\.]+)/i], [m, [c, z + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [m, [c, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [m, [c, "Dolphin"]], [/coast\/([\w\.]+)/i], [m, [c, z + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [m, [c, "MIUI " + q]], [/fxios\/([-\w\.]+)/i], [m, [c, B]], [/\bqihu|(qi?ho?o?|360)browser/i], [[c, "360 " + q]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[c, /(.+)/, "$1 " + q], m], [/(comodo_dragon)\/([\w\.]+)/i], [[c, /_/g, " "], m], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [c, m], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [c], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[c, de], m], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [c, m], [/\bgsa\/([\w\.]+) .*safari\//i], [m, [c, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [m, [c, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [m, [c, G + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[c, G + " WebView"], m], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [m, [c, "Android " + q]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [c, m], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [m, [c, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [m, c], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [c, [m, Y, jt]], [/(webkit|khtml)\/([\w\.]+)/i], [c, m], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[c, "Netscape"], m], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [m, [c, B + " 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], [c, m], [/(cobalt)\/([\w\.]+)/i], [c, [m, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[O, "amd64"]], [/(ia32(?=;))/i], [[O, H]], [/((?:i[346]|x)86)[;\)]/i], [[O, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[O, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[O, "armhf"]], [/windows (ce|mobile); ppc;/i], [[O, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[O, /ower/, b, H]], [/(sun4\w)[;\)]/i], [[O, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[O, H]]], 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], [t, [a, te], [r, v]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [t, [a, te], [r, P]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [t, [a, X], [r, P]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [t, [a, X], [r, v]], [/(macintosh);/i], [t, [a, X]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [t, [a, le], [r, P]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [t, [a, ue], [r, v]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [t, [a, ue], [r, P]], [/\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], [[t, /_/g, " "], [a, re], [r, P]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[t, /_/g, " "], [a, re], [r, v]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [t, [a, "OPPO"], [r, P]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [t, [a, "Vivo"], [r, P]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [t, [a, "Realme"], [r, P]], [/\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], [t, [a, ce], [r, P]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [t, [a, ce], [r, v]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [t, [a, J], [r, v]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [t, [a, J], [r, P]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [t, [a, "Lenovo"], [r, v]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[t, /_/g, " "], [a, "Nokia"], [r, P]], [/(pixel c)\b/i], [t, [a, W], [r, v]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [t, [a, W], [r, P]], [/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], [t, [a, V], [r, P]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[t, "Xperia Tablet"], [a, V], [r, v]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [t, [a, "OnePlus"], [r, P]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [t, [a, F], [r, v]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[t, /(.+)/g, "Fire Phone $1"], [a, F], [r, P]], [/(playbook);[-\w\),; ]+(rim)/i], [t, a, [r, v]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [t, [a, se], [r, P]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [t, [a, ae], [r, v]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [t, [a, ae], [r, P]], [/(nexus 9)/i], [t, [a, "HTC"], [r, v]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [a, [t, /_/g, " "], [r, P]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [t, [a, "Acer"], [r, v]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [t, [a, "Meizu"], [r, P]], [/(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], [a, t, [r, P]], [/(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], [a, t, [r, v]], [/(surface duo)/i], [t, [a, ee], [r, v]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [t, [a, "Fairphone"], [r, P]], [/(u304aa)/i], [t, [a, "AT&T"], [r, P]], [/\bsie-(\w*)/i], [t, [a, "Siemens"], [r, P]], [/\b(rct\w+) b/i], [t, [a, "RCA"], [r, v]], [/\b(venue[\d ]{2,7}) b/i], [t, [a, "Dell"], [r, v]], [/\b(q(?:mv|ta)\w+) b/i], [t, [a, "Verizon"], [r, v]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [t, [a, "Barnes & Noble"], [r, v]], [/\b(tm\d{3}\w+) b/i], [t, [a, "NuVision"], [r, v]], [/\b(k88) b/i], [t, [a, "ZTE"], [r, v]], [/\b(nx\d{3}j) b/i], [t, [a, "ZTE"], [r, P]], [/\b(gen\d{3}) b.+49h/i], [t, [a, "Swiss"], [r, P]], [/\b(zur\d{3}) b/i], [t, [a, "Swiss"], [r, v]], [/\b((zeki)?tb.*\b) b/i], [t, [a, "Zeki"], [r, v]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[a, "Dragon Touch"], t, [r, v]], [/\b(ns-?\w{0,9}) b/i], [t, [a, "Insignia"], [r, v]], [/\b((nxa|next)-?\w{0,9}) b/i], [t, [a, "NextBook"], [r, v]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[a, "Voice"], t, [r, P]], [/\b(lvtel\-)?(v1[12]) b/i], [[a, "LvTel"], t, [r, P]], [/\b(ph-1) /i], [t, [a, "Essential"], [r, P]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [t, [a, "Envizen"], [r, v]], [/\b(trio[-\w\. ]+) b/i], [t, [a, "MachSpeed"], [r, v]], [/\btu_(1491) b/i], [t, [a, "Rotor"], [r, v]], [/(shield[\w ]+) b/i], [t, [a, "Nvidia"], [r, v]], [/(sprint) (\w+)/i], [a, t, [r, P]], [/(kin\.[onetw]{3})/i], [[t, /\./g, " "], [a, ee], [r, P]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [t, [a, ne], [r, v]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [t, [a, ne], [r, P]], [/smart-tv.+(samsung)/i], [a, [r, I]], [/hbbtv.+maple;(\d+)/i], [[t, /^/, "SmartTV"], [a, te], [r, I]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[a, J], [r, I]], [/(apple) ?tv/i], [a, [t, X + " TV"], [r, I]], [/crkey/i], [[t, G + "cast"], [a, W], [r, I]], [/droid.+aft(\w)( bui|\))/i], [t, [a, F], [r, I]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [t, [a, le], [r, I]], [/(bravia[\w ]+)( bui|\))/i], [t, [a, V], [r, I]], [/(mitv-\w{5}) bui/i], [t, [a, re], [r, I]], [/Hbbtv.*(technisat) (.*);/i], [a, t, [r, I]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[a, ie], [t, ie], [r, I]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[r, I]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [a, t, [r, U]], [/droid.+; (shield) bui/i], [t, [a, "Nvidia"], [r, U]], [/(playstation [345portablevi]+)/i], [t, [a, V], [r, U]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [t, [a, ee], [r, U]], [/((pebble))app/i], [a, t, [r, D]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [t, [a, X], [r, D]], [/droid.+; (glass) \d/i], [t, [a, W], [r, D]], [/droid.+; (wt63?0{2,3})\)/i], [t, [a, ne], [r, D]], [/(quest( 2| pro)?)/i], [t, [a, de], [r, D]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [a, [r, Q]], [/(aeobc)\b/i], [t, [a, F], [r, Q]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [t, [r, P]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [t, [r, v]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[r, v]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[r, P]], [/(android[-\w\. ]{0,9});.+buil/i], [t, [a, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [m, [c, be + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [m, [c, "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], [c, m], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [m, c]], os: [[/microsoft (windows) (vista|xp)/i], [c, m], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [c, [m, Y, Je]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[c, "Windows"], [m, Y, Je]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[m, /_/g, "."], [c, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[c, he], [m, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [m, c], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [c, m], [/\(bb(10);/i], [m, [c, se]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [m, [c, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [m, [c, B + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [m, [c, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [m, [c, "watchOS"]], [/crkey\/([\d\.]+)/i], [m, [c, G + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[c, fe], m], [/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], [c, m], [/(sunos) ?([\w\.\d]*)/i], [[c, "Solaris"], m], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [c, m]] }, C = function(A, y) {
|
|
1183
|
+
if (typeof A === g && (y = A, A = e), !(this instanceof C))
|
|
1184
|
+
return new C(A, y).getResult();
|
|
1185
|
+
var R = typeof s !== _ && s.navigator ? s.navigator : e, T = A || (R && R.userAgent ? R.userAgent : b), M = R && R.userAgentData ? R.userAgentData : e, L = y ? me(et, y) : et, S = R && R.userAgent == T;
|
|
1186
|
+
return this.getBrowser = function() {
|
|
1187
|
+
var w = {};
|
|
1188
|
+
return w[c] = e, w[m] = e, j.call(w, T, L.browser), w[x] = ge(w[m]), S && R && R.brave && typeof R.brave.isBrave == u && (w[c] = "Brave"), w;
|
|
1189
|
+
}, this.getCPU = function() {
|
|
1190
|
+
var w = {};
|
|
1191
|
+
return w[O] = e, j.call(w, T, L.cpu), w;
|
|
1192
|
+
}, this.getDevice = function() {
|
|
1193
|
+
var w = {};
|
|
1194
|
+
return w[a] = e, w[t] = e, w[r] = e, j.call(w, T, L.device), S && !w[r] && M && M.mobile && (w[r] = P), S && w[t] == "Macintosh" && R && typeof R.standalone !== _ && R.maxTouchPoints && R.maxTouchPoints > 2 && (w[t] = "iPad", w[r] = v), w;
|
|
1195
|
+
}, this.getEngine = function() {
|
|
1196
|
+
var w = {};
|
|
1197
|
+
return w[c] = e, w[m] = e, j.call(w, T, L.engine), w;
|
|
1198
|
+
}, this.getOS = function() {
|
|
1199
|
+
var w = {};
|
|
1200
|
+
return w[c] = e, w[m] = e, j.call(w, T, L.os), S && !w[c] && M && M.platform != "Unknown" && (w[c] = M.platform.replace(/chrome os/i, fe).replace(/macos/i, he)), w;
|
|
1201
|
+
}, this.getResult = function() {
|
|
1202
|
+
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1203
|
+
}, this.getUA = function() {
|
|
1204
|
+
return T;
|
|
1205
|
+
}, this.setUA = function(w) {
|
|
1206
|
+
return T = typeof w === E && w.length > Z ? ie(w, Z) : w, this;
|
|
1207
|
+
}, this.setUA(T), this;
|
|
1208
|
+
};
|
|
1209
|
+
C.VERSION = h, C.BROWSER = $([c, m, x]), C.CPU = $([O]), C.DEVICE = $([t, a, r, U, P, I, v, D, Q]), C.ENGINE = C.OS = $([c, m]), typeof p !== _ ? (f.exports && (p = f.exports = C), p.UAParser = C) : typeof s !== _ && (s.UAParser = C);
|
|
1210
|
+
var K = typeof s !== _ && (s.jQuery || s.Zepto);
|
|
1211
|
+
if (K && !K.ua) {
|
|
1212
|
+
var _e = new C();
|
|
1213
|
+
K.ua = _e.getResult(), K.ua.get = function() {
|
|
1214
|
+
return _e.getUA();
|
|
1215
|
+
}, K.ua.set = function(A) {
|
|
1216
|
+
_e.setUA(A);
|
|
1217
|
+
var y = _e.getResult();
|
|
1218
|
+
for (var R in y)
|
|
1219
|
+
K.ua[R] = y[R];
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
})(typeof window == "object" ? window : this);
|
|
1223
|
+
} }, d = {};
|
|
1224
|
+
function o(f) {
|
|
1225
|
+
var p = d[f];
|
|
1226
|
+
if (p !== void 0)
|
|
1227
|
+
return p.exports;
|
|
1228
|
+
var s = d[f] = { exports: {} }, e = !0;
|
|
1229
|
+
try {
|
|
1230
|
+
n[f].call(s.exports, s, s.exports, o), e = !1;
|
|
1231
|
+
} finally {
|
|
1232
|
+
e && delete d[f];
|
|
1233
|
+
}
|
|
1234
|
+
return s.exports;
|
|
1235
|
+
}
|
|
1236
|
+
typeof o < "u" && (o.ab = __dirname + "/");
|
|
1237
|
+
var l = o(226);
|
|
1238
|
+
Fe.exports = l;
|
|
1239
|
+
})()), Fe.exports;
|
|
1240
|
+
}
|
|
1241
|
+
var vt;
|
|
1242
|
+
function Pt() {
|
|
1243
|
+
return vt || (vt = 1, function(n) {
|
|
1244
|
+
Object.defineProperty(n, "__esModule", {
|
|
1245
|
+
value: !0
|
|
1246
|
+
});
|
|
1247
|
+
function d(e, h) {
|
|
1248
|
+
for (var b in h) Object.defineProperty(e, b, {
|
|
1249
|
+
enumerable: !0,
|
|
1250
|
+
get: h[b]
|
|
1251
|
+
});
|
|
1252
|
+
}
|
|
1253
|
+
d(n, {
|
|
1254
|
+
isBot: function() {
|
|
1255
|
+
return f;
|
|
1256
|
+
},
|
|
1257
|
+
userAgent: function() {
|
|
1258
|
+
return s;
|
|
1259
|
+
},
|
|
1260
|
+
userAgentFromString: function() {
|
|
1261
|
+
return p;
|
|
1262
|
+
}
|
|
1263
|
+
});
|
|
1264
|
+
const o = /* @__PURE__ */ l(ur());
|
|
1265
|
+
function l(e) {
|
|
1266
|
+
return e && e.__esModule ? e : {
|
|
1267
|
+
default: e
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
function f(e) {
|
|
1271
|
+
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);
|
|
1272
|
+
}
|
|
1273
|
+
function p(e) {
|
|
1274
|
+
return {
|
|
1275
|
+
...(0, o.default)(e),
|
|
1276
|
+
isBot: e === void 0 ? !1 : f(e)
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
function s({ headers: e }) {
|
|
1280
|
+
return p(e.get("user-agent") || void 0);
|
|
1281
|
+
}
|
|
1282
|
+
}(He)), He;
|
|
1283
|
+
}
|
|
1284
|
+
var Ge = {}, At;
|
|
1285
|
+
function cr() {
|
|
1286
|
+
return At || (At = 1, function(n) {
|
|
1287
|
+
Object.defineProperty(n, "__esModule", {
|
|
1288
|
+
value: !0
|
|
1289
|
+
}), Object.defineProperty(n, "URLPattern", {
|
|
1290
|
+
enumerable: !0,
|
|
1291
|
+
get: function() {
|
|
1292
|
+
return d;
|
|
1293
|
+
}
|
|
1294
|
+
});
|
|
1295
|
+
const d = (
|
|
1296
|
+
// @ts-expect-error: URLPattern is not available in Node.js
|
|
1297
|
+
typeof URLPattern > "u" ? void 0 : URLPattern
|
|
1298
|
+
);
|
|
1299
|
+
}(Ge)), Ge;
|
|
1300
|
+
}
|
|
1301
|
+
var Be = {}, We = {}, St;
|
|
1302
|
+
function lr() {
|
|
1303
|
+
return St || (St = 1, function(n) {
|
|
1304
|
+
Object.defineProperty(n, "__esModule", {
|
|
1305
|
+
value: !0
|
|
1306
|
+
}), Object.defineProperty(n, "after", {
|
|
1307
|
+
enumerable: !0,
|
|
1308
|
+
get: function() {
|
|
1309
|
+
return o;
|
|
1310
|
+
}
|
|
1311
|
+
});
|
|
1312
|
+
const d = Ke();
|
|
1313
|
+
function o(l) {
|
|
1314
|
+
const f = d.workAsyncStorage.getStore();
|
|
1315
|
+
if (!f)
|
|
1316
|
+
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", {
|
|
1317
|
+
value: "E468",
|
|
1318
|
+
enumerable: !1,
|
|
1319
|
+
configurable: !0
|
|
1320
|
+
});
|
|
1321
|
+
const { afterContext: p } = f;
|
|
1322
|
+
return p.after(l);
|
|
1323
|
+
}
|
|
1324
|
+
}(We)), We;
|
|
1325
|
+
}
|
|
1326
|
+
var xt;
|
|
1327
|
+
function dr() {
|
|
1328
|
+
return xt || (xt = 1, function(n) {
|
|
1329
|
+
Object.defineProperty(n, "__esModule", {
|
|
1330
|
+
value: !0
|
|
1331
|
+
}), d(lr(), n);
|
|
1332
|
+
function d(o, l) {
|
|
1333
|
+
return Object.keys(o).forEach(function(f) {
|
|
1334
|
+
f !== "default" && !Object.prototype.hasOwnProperty.call(l, f) && Object.defineProperty(l, f, {
|
|
1335
|
+
enumerable: !0,
|
|
1336
|
+
get: function() {
|
|
1337
|
+
return o[f];
|
|
1338
|
+
}
|
|
1339
|
+
});
|
|
1340
|
+
}), o;
|
|
1341
|
+
}
|
|
1342
|
+
}(Be)), Be;
|
|
1343
|
+
}
|
|
1344
|
+
var ze = {}, yt;
|
|
1345
|
+
function fr() {
|
|
1346
|
+
return yt || (yt = 1, function(n) {
|
|
1347
|
+
Object.defineProperty(n, "__esModule", {
|
|
1348
|
+
value: !0
|
|
1349
|
+
}), Object.defineProperty(n, "connection", {
|
|
1350
|
+
enumerable: !0,
|
|
1351
|
+
get: function() {
|
|
1352
|
+
return e;
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
const d = Ke(), o = Ct(), l = Lt(), f = Ft(), p = kt(), s = Gt();
|
|
1356
|
+
function e() {
|
|
1357
|
+
const h = d.workAsyncStorage.getStore(), b = o.workUnitAsyncStorage.getStore();
|
|
1358
|
+
if (h) {
|
|
1359
|
+
if (b && b.phase === "after" && !(0, s.isRequestAPICallableInsideAfter)())
|
|
1360
|
+
throw Object.defineProperty(new Error(`Route ${h.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", {
|
|
1361
|
+
value: "E186",
|
|
1362
|
+
enumerable: !1,
|
|
1363
|
+
configurable: !0
|
|
1364
|
+
});
|
|
1365
|
+
if (h.forceStatic)
|
|
1366
|
+
return Promise.resolve(void 0);
|
|
1367
|
+
if (b) {
|
|
1368
|
+
if (b.type === "cache")
|
|
1369
|
+
throw Object.defineProperty(new Error(`Route ${h.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", {
|
|
1370
|
+
value: "E111",
|
|
1371
|
+
enumerable: !1,
|
|
1372
|
+
configurable: !0
|
|
1373
|
+
});
|
|
1374
|
+
if (b.type === "unstable-cache")
|
|
1375
|
+
throw Object.defineProperty(new Error(`Route ${h.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", {
|
|
1376
|
+
value: "E1",
|
|
1377
|
+
enumerable: !1,
|
|
1378
|
+
configurable: !0
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
if (h.dynamicShouldError)
|
|
1382
|
+
throw Object.defineProperty(new f.StaticGenBailoutError(`Route ${h.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", {
|
|
1383
|
+
value: "E562",
|
|
1384
|
+
enumerable: !1,
|
|
1385
|
+
configurable: !0
|
|
1386
|
+
});
|
|
1387
|
+
if (b) {
|
|
1388
|
+
if (b.type === "prerender" || b.type === "prerender-client")
|
|
1389
|
+
return (0, p.makeHangingPromise)(b.renderSignal, "`connection()`");
|
|
1390
|
+
b.type === "prerender-ppr" ? (0, l.postponeWithTracking)(h.route, "connection", b.dynamicTracking) : b.type === "prerender-legacy" && (0, l.throwToInterruptStaticGeneration)("connection", h, b);
|
|
1391
|
+
}
|
|
1392
|
+
(0, l.trackDynamicDataInDynamicRender)(h, b);
|
|
1393
|
+
}
|
|
1394
|
+
return Promise.resolve(void 0);
|
|
1395
|
+
}
|
|
1396
|
+
}(ze)), ze;
|
|
1397
|
+
}
|
|
1398
|
+
var Ve = {}, $e = {}, Tt;
|
|
1399
|
+
function hr() {
|
|
1400
|
+
return Tt || (Tt = 1, function(n) {
|
|
1401
|
+
Object.defineProperty(n, "__esModule", {
|
|
1402
|
+
value: !0
|
|
1403
|
+
});
|
|
1404
|
+
function d(s, e) {
|
|
1405
|
+
for (var h in e) Object.defineProperty(s, h, {
|
|
1406
|
+
enumerable: !0,
|
|
1407
|
+
get: e[h]
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
d(n, {
|
|
1411
|
+
describeHasCheckingStringProperty: function() {
|
|
1412
|
+
return f;
|
|
1413
|
+
},
|
|
1414
|
+
describeStringPropertyAccess: function() {
|
|
1415
|
+
return l;
|
|
1416
|
+
},
|
|
1417
|
+
wellKnownProperties: function() {
|
|
1418
|
+
return p;
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
const o = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
1422
|
+
function l(s, e) {
|
|
1423
|
+
return o.test(e) ? "`" + s + "." + e + "`" : "`" + s + "[" + JSON.stringify(e) + "]`";
|
|
1424
|
+
}
|
|
1425
|
+
function f(s, e) {
|
|
1426
|
+
const h = JSON.stringify(e);
|
|
1427
|
+
return "`Reflect.has(" + s + ", " + h + ")`, `" + h + " in " + s + "`, or similar";
|
|
1428
|
+
}
|
|
1429
|
+
const p = /* @__PURE__ */ new Set([
|
|
1430
|
+
"hasOwnProperty",
|
|
1431
|
+
"isPrototypeOf",
|
|
1432
|
+
"propertyIsEnumerable",
|
|
1433
|
+
"toString",
|
|
1434
|
+
"valueOf",
|
|
1435
|
+
"toLocaleString",
|
|
1436
|
+
// Promise prototype
|
|
1437
|
+
// fallthrough
|
|
1438
|
+
"then",
|
|
1439
|
+
"catch",
|
|
1440
|
+
"finally",
|
|
1441
|
+
// React Promise extension
|
|
1442
|
+
// fallthrough
|
|
1443
|
+
"status",
|
|
1444
|
+
// React introspection
|
|
1445
|
+
"displayName",
|
|
1446
|
+
"_debugInfo",
|
|
1447
|
+
// Common tested properties
|
|
1448
|
+
// fallthrough
|
|
1449
|
+
"toJSON",
|
|
1450
|
+
"$$typeof",
|
|
1451
|
+
"__esModule"
|
|
1452
|
+
]);
|
|
1453
|
+
}($e)), $e;
|
|
1454
|
+
}
|
|
1455
|
+
var Nt;
|
|
1456
|
+
function _r() {
|
|
1457
|
+
return Nt || (Nt = 1, function(n) {
|
|
1458
|
+
Object.defineProperty(n, "__esModule", {
|
|
1459
|
+
value: !0
|
|
1460
|
+
}), Object.defineProperty(n, "unstable_rootParams", {
|
|
1461
|
+
enumerable: !0,
|
|
1462
|
+
get: function() {
|
|
1463
|
+
return h;
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
const d = Bt(), o = Lt(), l = Ke(), f = Ct(), p = kt(), s = hr(), e = /* @__PURE__ */ new WeakMap();
|
|
1467
|
+
async function h() {
|
|
1468
|
+
const u = l.workAsyncStorage.getStore();
|
|
1469
|
+
if (!u)
|
|
1470
|
+
throw Object.defineProperty(new d.InvariantError("Missing workStore in unstable_rootParams"), "__NEXT_ERROR_CODE", {
|
|
1471
|
+
value: "E615",
|
|
1472
|
+
enumerable: !1,
|
|
1473
|
+
configurable: !0
|
|
1474
|
+
});
|
|
1475
|
+
const _ = f.workUnitAsyncStorage.getStore();
|
|
1476
|
+
if (!_)
|
|
1477
|
+
throw Object.defineProperty(new Error(`Route ${u.route} used \`unstable_rootParams()\` in Pages Router. This API is only available within App Router.`), "__NEXT_ERROR_CODE", {
|
|
1478
|
+
value: "E641",
|
|
1479
|
+
enumerable: !1,
|
|
1480
|
+
configurable: !0
|
|
1481
|
+
});
|
|
1482
|
+
switch (_.type) {
|
|
1483
|
+
case "unstable-cache":
|
|
1484
|
+
case "cache":
|
|
1485
|
+
throw Object.defineProperty(new Error(`Route ${u.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", {
|
|
1486
|
+
value: "E642",
|
|
1487
|
+
enumerable: !1,
|
|
1488
|
+
configurable: !0
|
|
1489
|
+
});
|
|
1490
|
+
case "prerender":
|
|
1491
|
+
case "prerender-client":
|
|
1492
|
+
case "prerender-ppr":
|
|
1493
|
+
case "prerender-legacy":
|
|
1494
|
+
return b(_.rootParams, u, _);
|
|
1495
|
+
default:
|
|
1496
|
+
return Promise.resolve(_.rootParams);
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
function b(u, _, g) {
|
|
1500
|
+
const E = _.fallbackRouteParams;
|
|
1501
|
+
if (E) {
|
|
1502
|
+
let x = !1;
|
|
1503
|
+
for (const t in u)
|
|
1504
|
+
if (E.has(t)) {
|
|
1505
|
+
x = !0;
|
|
1506
|
+
break;
|
|
1507
|
+
}
|
|
1508
|
+
if (x)
|
|
1509
|
+
switch (g.type) {
|
|
1510
|
+
case "prerender":
|
|
1511
|
+
const t = e.get(u);
|
|
1512
|
+
if (t)
|
|
1513
|
+
return t;
|
|
1514
|
+
const c = (0, p.makeHangingPromise)(g.renderSignal, "`unstable_rootParams`");
|
|
1515
|
+
return e.set(u, c), c;
|
|
1516
|
+
case "prerender-client":
|
|
1517
|
+
const r = "`unstable_rootParams`";
|
|
1518
|
+
throw Object.defineProperty(new d.InvariantError(`${r} must not be used within a client component. Next.js should be preventing ${r} from being included in client components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
1519
|
+
value: "E693",
|
|
1520
|
+
enumerable: !1,
|
|
1521
|
+
configurable: !0
|
|
1522
|
+
});
|
|
1523
|
+
default:
|
|
1524
|
+
return i(u, E, _, g);
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
return Promise.resolve(u);
|
|
1528
|
+
}
|
|
1529
|
+
function i(u, _, g, E) {
|
|
1530
|
+
const x = e.get(u);
|
|
1531
|
+
if (x)
|
|
1532
|
+
return x;
|
|
1533
|
+
const t = {
|
|
1534
|
+
...u
|
|
1535
|
+
}, c = Promise.resolve(t);
|
|
1536
|
+
return e.set(u, c), Object.keys(u).forEach((r) => {
|
|
1537
|
+
s.wellKnownProperties.has(r) || (_.has(r) ? Object.defineProperty(t, r, {
|
|
1538
|
+
get() {
|
|
1539
|
+
const a = (0, s.describeStringPropertyAccess)("unstable_rootParams", r);
|
|
1540
|
+
E.type === "prerender-ppr" ? (0, o.postponeWithTracking)(g.route, a, E.dynamicTracking) : (0, o.throwToInterruptStaticGeneration)(a, g, E);
|
|
1541
|
+
},
|
|
1542
|
+
enumerable: !0
|
|
1543
|
+
}) : c[r] = u[r]);
|
|
1544
|
+
}), c;
|
|
1545
|
+
}
|
|
1546
|
+
}(Ve)), Ve;
|
|
1547
|
+
}
|
|
1548
|
+
var It;
|
|
1549
|
+
function pr() {
|
|
1550
|
+
return It || (It = 1, function(n, d) {
|
|
1551
|
+
const o = {
|
|
1552
|
+
NextRequest: or().NextRequest,
|
|
1553
|
+
NextResponse: ar().NextResponse,
|
|
1554
|
+
ImageResponse: sr().ImageResponse,
|
|
1555
|
+
userAgentFromString: Pt().userAgentFromString,
|
|
1556
|
+
userAgent: Pt().userAgent,
|
|
1557
|
+
URLPattern: cr().URLPattern,
|
|
1558
|
+
after: dr().after,
|
|
1559
|
+
connection: fr().connection,
|
|
1560
|
+
unstable_rootParams: _r().unstable_rootParams
|
|
1561
|
+
};
|
|
1562
|
+
n.exports = o, d.NextRequest = o.NextRequest, d.NextResponse = o.NextResponse, d.ImageResponse = o.ImageResponse, d.userAgentFromString = o.userAgentFromString, d.userAgent = o.userAgent, d.URLPattern = o.URLPattern, d.after = o.after, d.connection = o.connection, d.unstable_rootParams = o.unstable_rootParams;
|
|
1563
|
+
}(pe, pe.exports)), pe.exports;
|
|
1564
|
+
}
|
|
1565
|
+
var oe = pr();
|
|
1566
|
+
const Er = async (n) => {
|
|
1567
|
+
try {
|
|
1568
|
+
let d = oe.NextResponse.next({
|
|
1569
|
+
request: {
|
|
1570
|
+
headers: n.headers
|
|
1571
|
+
}
|
|
1572
|
+
});
|
|
1573
|
+
const o = process.env.NEXT_PUBLIC_SUPABASE_URL, l = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;
|
|
1574
|
+
if (!o || !l)
|
|
1575
|
+
throw new Error("Missing Supabase environment variables");
|
|
1576
|
+
const p = await Wt(
|
|
1577
|
+
o,
|
|
1578
|
+
l,
|
|
1579
|
+
{
|
|
1580
|
+
cookies: {
|
|
1581
|
+
getAll() {
|
|
1582
|
+
return n.cookies.getAll();
|
|
1583
|
+
},
|
|
1584
|
+
setAll(s) {
|
|
1585
|
+
s.forEach(
|
|
1586
|
+
({ name: e, value: h }) => n.cookies.set(e, h)
|
|
1587
|
+
), d = oe.NextResponse.next({
|
|
1588
|
+
request: n
|
|
1589
|
+
}), s.forEach(
|
|
1590
|
+
({ name: e, value: h, options: b }) => d.cookies.set(e, h, b)
|
|
1591
|
+
);
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
).auth.getUser();
|
|
1596
|
+
return n.nextUrl.pathname.startsWith("/protected") && p.error ? oe.NextResponse.redirect(new URL("/sign-in", n.url)) : n.nextUrl.pathname === "/" && !p.error ? oe.NextResponse.redirect(new URL("/protected", n.url)) : d;
|
|
1597
|
+
} catch {
|
|
1598
|
+
return oe.NextResponse.next({
|
|
1599
|
+
request: {
|
|
1600
|
+
headers: n.headers
|
|
1601
|
+
}
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
}, wr = () => !process.env.NEXT_PUBLIC_SUPABASE_URL || !process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ? (console.warn("Supabase URL or Anon Key is missing for SSG client. Check .env.local"), {}) : Ot(
|
|
1605
|
+
process.env.NEXT_PUBLIC_SUPABASE_URL,
|
|
1606
|
+
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY
|
|
1607
|
+
), Rr = {
|
|
1608
|
+
public: {
|
|
1609
|
+
Enums: {
|
|
1610
|
+
menu_location: ["HEADER", "FOOTER", "SIDEBAR"],
|
|
1611
|
+
page_status: ["draft", "published", "archived"],
|
|
1612
|
+
user_role: ["ADMIN", "WRITER", "USER"]
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
};
|
|
1616
|
+
export {
|
|
1617
|
+
Rr as Constants,
|
|
1618
|
+
Vt as createClient,
|
|
1619
|
+
gr as getActiveLanguagesClientSide,
|
|
1620
|
+
mr as getProfileWithRoleClientSide,
|
|
1621
|
+
wr as getSsgSupabaseClient,
|
|
1622
|
+
Er as updateSession
|
|
1623
|
+
};
|