uplord-ui 0.2.0 → 0.2.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/dist/index.cjs.js +5 -5
- package/dist/index.css +1 -1
- package/dist/index.es.js +297 -297
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3,10 +3,10 @@ function Lr(n) {
|
|
|
3
3
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
4
4
|
}
|
|
5
5
|
var de = { exports: {} }, oe = {};
|
|
6
|
-
var
|
|
6
|
+
var Tt;
|
|
7
7
|
function Dr() {
|
|
8
|
-
if (
|
|
9
|
-
|
|
8
|
+
if (Tt) return oe;
|
|
9
|
+
Tt = 1;
|
|
10
10
|
var n = /* @__PURE__ */ Symbol.for("react.transitional.element"), e = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
11
11
|
function a(c, s, i) {
|
|
12
12
|
var t = null;
|
|
@@ -26,9 +26,9 @@ function Dr() {
|
|
|
26
26
|
return oe.Fragment = e, oe.jsx = a, oe.jsxs = a, oe;
|
|
27
27
|
}
|
|
28
28
|
var ae = {};
|
|
29
|
-
var
|
|
29
|
+
var bt;
|
|
30
30
|
function qr() {
|
|
31
|
-
return
|
|
31
|
+
return bt || (bt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
32
32
|
function n(m) {
|
|
33
33
|
if (m == null) return null;
|
|
34
34
|
if (typeof m == "function")
|
|
@@ -37,13 +37,13 @@ function qr() {
|
|
|
37
37
|
switch (m) {
|
|
38
38
|
case p:
|
|
39
39
|
return "Fragment";
|
|
40
|
-
case
|
|
40
|
+
case T:
|
|
41
41
|
return "Profiler";
|
|
42
42
|
case d:
|
|
43
43
|
return "StrictMode";
|
|
44
44
|
case O:
|
|
45
45
|
return "Suspense";
|
|
46
|
-
case
|
|
46
|
+
case b:
|
|
47
47
|
return "SuspenseList";
|
|
48
48
|
case g:
|
|
49
49
|
return "Activity";
|
|
@@ -56,7 +56,7 @@ function qr() {
|
|
|
56
56
|
return "Portal";
|
|
57
57
|
case P:
|
|
58
58
|
return m.displayName || "Context";
|
|
59
|
-
case
|
|
59
|
+
case y:
|
|
60
60
|
return (m._context.displayName || "Context") + ".Consumer";
|
|
61
61
|
case v:
|
|
62
62
|
var S = m.render;
|
|
@@ -84,11 +84,11 @@ function qr() {
|
|
|
84
84
|
}
|
|
85
85
|
if (S) {
|
|
86
86
|
S = console;
|
|
87
|
-
var
|
|
88
|
-
return
|
|
87
|
+
var j = S.error, x = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
|
|
88
|
+
return j.call(
|
|
89
89
|
S,
|
|
90
90
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
91
|
-
|
|
91
|
+
x
|
|
92
92
|
), e(m);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -118,14 +118,14 @@ function qr() {
|
|
|
118
118
|
return m.key !== void 0;
|
|
119
119
|
}
|
|
120
120
|
function u(m, S) {
|
|
121
|
-
function
|
|
121
|
+
function j() {
|
|
122
122
|
U || (U = !0, console.error(
|
|
123
123
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
124
124
|
S
|
|
125
125
|
));
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
get:
|
|
127
|
+
j.isReactWarning = !0, Object.defineProperty(m, "key", {
|
|
128
|
+
get: j,
|
|
129
129
|
configurable: !0
|
|
130
130
|
});
|
|
131
131
|
}
|
|
@@ -135,14 +135,14 @@ function qr() {
|
|
|
135
135
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
136
136
|
)), m = this.props.ref, m !== void 0 ? m : null;
|
|
137
137
|
}
|
|
138
|
-
function o(m, S,
|
|
139
|
-
var L =
|
|
138
|
+
function o(m, S, j, x, X, V) {
|
|
139
|
+
var L = j.ref;
|
|
140
140
|
return m = {
|
|
141
141
|
$$typeof: E,
|
|
142
142
|
type: m,
|
|
143
143
|
key: S,
|
|
144
|
-
props:
|
|
145
|
-
_owner:
|
|
144
|
+
props: j,
|
|
145
|
+
_owner: x
|
|
146
146
|
}, (L !== void 0 ? L : null) !== null ? Object.defineProperty(m, "ref", {
|
|
147
147
|
enumerable: !1,
|
|
148
148
|
get: r
|
|
@@ -168,13 +168,13 @@ function qr() {
|
|
|
168
168
|
value: V
|
|
169
169
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
170
170
|
}
|
|
171
|
-
function f(m, S,
|
|
171
|
+
function f(m, S, j, x, X, V) {
|
|
172
172
|
var L = S.children;
|
|
173
173
|
if (L !== void 0)
|
|
174
|
-
if (
|
|
174
|
+
if (x)
|
|
175
175
|
if (q(L)) {
|
|
176
|
-
for (
|
|
177
|
-
_(L[
|
|
176
|
+
for (x = 0; x < L.length; x++)
|
|
177
|
+
_(L[x]);
|
|
178
178
|
Object.freeze && Object.freeze(L);
|
|
179
179
|
} else
|
|
180
180
|
console.error(
|
|
@@ -186,31 +186,31 @@ function qr() {
|
|
|
186
186
|
var Q = Object.keys(S).filter(function(re) {
|
|
187
187
|
return re !== "key";
|
|
188
188
|
});
|
|
189
|
-
|
|
189
|
+
x = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", B[L + x] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
190
190
|
`A props object containing a "key" prop is being spread into JSX:
|
|
191
191
|
let props = %s;
|
|
192
192
|
<%s {...props} />
|
|
193
193
|
React keys must be passed directly to JSX without using spread:
|
|
194
194
|
let props = %s;
|
|
195
195
|
<%s key={someKey} {...props} />`,
|
|
196
|
-
|
|
196
|
+
x,
|
|
197
197
|
L,
|
|
198
198
|
Q,
|
|
199
199
|
L
|
|
200
|
-
), B[L +
|
|
200
|
+
), B[L + x] = !0);
|
|
201
201
|
}
|
|
202
|
-
if (L = null,
|
|
203
|
-
|
|
202
|
+
if (L = null, j !== void 0 && (a(j), L = "" + j), t(S) && (a(S.key), L = "" + S.key), "key" in S) {
|
|
203
|
+
j = {};
|
|
204
204
|
for (var z in S)
|
|
205
|
-
z !== "key" && (
|
|
206
|
-
} else
|
|
205
|
+
z !== "key" && (j[z] = S[z]);
|
|
206
|
+
} else j = S;
|
|
207
207
|
return L && u(
|
|
208
|
-
|
|
208
|
+
j,
|
|
209
209
|
typeof m == "function" ? m.displayName || m.name || "Unknown" : m
|
|
210
210
|
), o(
|
|
211
211
|
m,
|
|
212
212
|
L,
|
|
213
|
-
|
|
213
|
+
j,
|
|
214
214
|
s(),
|
|
215
215
|
X,
|
|
216
216
|
V
|
|
@@ -222,7 +222,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
222
222
|
function R(m) {
|
|
223
223
|
return typeof m == "object" && m !== null && m.$$typeof === E;
|
|
224
224
|
}
|
|
225
|
-
var h = ie, E = /* @__PURE__ */ Symbol.for("react.transitional.element"), l = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"),
|
|
225
|
+
var h = ie, E = /* @__PURE__ */ Symbol.for("react.transitional.element"), l = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), T = /* @__PURE__ */ Symbol.for("react.profiler"), y = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), b = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), I = /* @__PURE__ */ Symbol.for("react.lazy"), g = /* @__PURE__ */ Symbol.for("react.activity"), A = /* @__PURE__ */ Symbol.for("react.client.reference"), C = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, w = Object.prototype.hasOwnProperty, q = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
226
226
|
return null;
|
|
227
227
|
};
|
|
228
228
|
h = {
|
|
@@ -233,57 +233,57 @@ React keys must be passed directly to JSX without using spread:
|
|
|
233
233
|
var U, W = {}, G = h.react_stack_bottom_frame.bind(
|
|
234
234
|
h,
|
|
235
235
|
i
|
|
236
|
-
)(), k =
|
|
237
|
-
ae.Fragment = p, ae.jsx = function(m, S,
|
|
238
|
-
var
|
|
236
|
+
)(), k = M(c(i)), B = {};
|
|
237
|
+
ae.Fragment = p, ae.jsx = function(m, S, j) {
|
|
238
|
+
var x = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
239
239
|
return f(
|
|
240
240
|
m,
|
|
241
241
|
S,
|
|
242
|
-
|
|
242
|
+
j,
|
|
243
243
|
!1,
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
x ? Error("react-stack-top-frame") : G,
|
|
245
|
+
x ? M(c(m)) : k
|
|
246
246
|
);
|
|
247
|
-
}, ae.jsxs = function(m, S,
|
|
248
|
-
var
|
|
247
|
+
}, ae.jsxs = function(m, S, j) {
|
|
248
|
+
var x = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
249
249
|
return f(
|
|
250
250
|
m,
|
|
251
251
|
S,
|
|
252
|
-
|
|
252
|
+
j,
|
|
253
253
|
!0,
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
x ? Error("react-stack-top-frame") : G,
|
|
255
|
+
x ? M(c(m)) : k
|
|
256
256
|
);
|
|
257
257
|
};
|
|
258
258
|
})()), ae;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
function
|
|
262
|
-
return
|
|
260
|
+
var yt;
|
|
261
|
+
function Tr() {
|
|
262
|
+
return yt || (yt = 1, process.env.NODE_ENV === "production" ? de.exports = Dr() : de.exports = qr()), de.exports;
|
|
263
263
|
}
|
|
264
|
-
var te =
|
|
264
|
+
var te = Tr();
|
|
265
265
|
const kr = "_main_88m1r_1", Ur = {
|
|
266
266
|
main: kr
|
|
267
267
|
};
|
|
268
268
|
function Xn() {
|
|
269
269
|
return /* @__PURE__ */ te.jsx("div", { className: Ur.main, children: "Test" });
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function br(n) {
|
|
272
272
|
var e, a, c = "";
|
|
273
273
|
if (typeof n == "string" || typeof n == "number") c += n;
|
|
274
274
|
else if (typeof n == "object") if (Array.isArray(n)) {
|
|
275
275
|
var s = n.length;
|
|
276
|
-
for (e = 0; e < s; e++) n[e] && (a =
|
|
276
|
+
for (e = 0; e < s; e++) n[e] && (a = br(n[e])) && (c && (c += " "), c += a);
|
|
277
277
|
} else for (a in n) n[a] && (c && (c += " "), c += a);
|
|
278
278
|
return c;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
for (var n, e, a = 0, c = "", s = arguments.length; a < s; a++) (n = arguments[a]) && (e =
|
|
280
|
+
function yr() {
|
|
281
|
+
for (var n, e, a = 0, c = "", s = arguments.length; a < s; a++) (n = arguments[a]) && (e = br(n)) && (c && (c += " "), c += e);
|
|
282
282
|
return c;
|
|
283
283
|
}
|
|
284
|
-
var pe = { exports: {} },
|
|
284
|
+
var pe = { exports: {} }, je = {}, Ot;
|
|
285
285
|
function Or() {
|
|
286
|
-
if (Ot) return
|
|
286
|
+
if (Ot) return je;
|
|
287
287
|
Ot = 1;
|
|
288
288
|
function n(a) {
|
|
289
289
|
if (typeof WeakMap != "function") return null;
|
|
@@ -305,9 +305,9 @@ function Or() {
|
|
|
305
305
|
}
|
|
306
306
|
return i.default = a, s && s.set(a, i), i;
|
|
307
307
|
}
|
|
308
|
-
return
|
|
308
|
+
return je._ = e, je;
|
|
309
309
|
}
|
|
310
|
-
var _e = { exports: {} },
|
|
310
|
+
var _e = { exports: {} }, xe = {}, At;
|
|
311
311
|
function Ar() {
|
|
312
312
|
return At || (At = 1, (function(n) {
|
|
313
313
|
Object.defineProperty(n, "__esModule", {
|
|
@@ -363,7 +363,7 @@ function Ar() {
|
|
|
363
363
|
}
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
|
-
})(
|
|
366
|
+
})(xe)), xe;
|
|
367
367
|
}
|
|
368
368
|
var Le = {}, St;
|
|
369
369
|
function Sr() {
|
|
@@ -452,7 +452,7 @@ function Oe() {
|
|
|
452
452
|
return E;
|
|
453
453
|
},
|
|
454
454
|
MiddlewareNotFoundError: function() {
|
|
455
|
-
return
|
|
455
|
+
return T;
|
|
456
456
|
},
|
|
457
457
|
MissingStaticPage: function() {
|
|
458
458
|
return d;
|
|
@@ -497,7 +497,7 @@ function Oe() {
|
|
|
497
497
|
return f;
|
|
498
498
|
},
|
|
499
499
|
stringifyError: function() {
|
|
500
|
-
return
|
|
500
|
+
return y;
|
|
501
501
|
}
|
|
502
502
|
});
|
|
503
503
|
const a = [
|
|
@@ -510,7 +510,7 @@ function Oe() {
|
|
|
510
510
|
];
|
|
511
511
|
function c(P) {
|
|
512
512
|
let v = !1, O;
|
|
513
|
-
return (...
|
|
513
|
+
return (...b) => (v || (v = !0, O = P(...b)), O);
|
|
514
514
|
}
|
|
515
515
|
const s = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, i = (P) => s.test(P);
|
|
516
516
|
function t() {
|
|
@@ -545,18 +545,18 @@ function Oe() {
|
|
|
545
545
|
return v.ctx && v.Component ? {
|
|
546
546
|
pageProps: await _(v.Component, v.ctx)
|
|
547
547
|
} : {};
|
|
548
|
-
const
|
|
548
|
+
const b = await P.getInitialProps(v);
|
|
549
549
|
if (O && o(O))
|
|
550
|
-
return
|
|
551
|
-
if (!
|
|
552
|
-
const N = `"${r(P)}.getInitialProps()" should resolve to an object. But found "${
|
|
550
|
+
return b;
|
|
551
|
+
if (!b) {
|
|
552
|
+
const N = `"${r(P)}.getInitialProps()" should resolve to an object. But found "${b}" instead.`;
|
|
553
553
|
throw Object.defineProperty(new Error(N), "__NEXT_ERROR_CODE", {
|
|
554
554
|
value: "E394",
|
|
555
555
|
enumerable: !1,
|
|
556
556
|
configurable: !0
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
return process.env.NODE_ENV !== "production" && Object.keys(
|
|
559
|
+
return process.env.NODE_ENV !== "production" && Object.keys(b).length === 0 && !v.ctx && console.warn(`${r(P)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`), b;
|
|
560
560
|
}
|
|
561
561
|
const R = typeof performance < "u", h = R && [
|
|
562
562
|
"mark",
|
|
@@ -577,12 +577,12 @@ function Oe() {
|
|
|
577
577
|
super(), this.message = `Failed to load static file for page: ${v} ${O}`;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
class
|
|
580
|
+
class T extends Error {
|
|
581
581
|
constructor() {
|
|
582
582
|
super(), this.code = "ENOENT", this.message = "Cannot find the middleware module";
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function y(P) {
|
|
586
586
|
return JSON.stringify({
|
|
587
587
|
message: P.message,
|
|
588
588
|
stack: P.stack
|
|
@@ -631,9 +631,9 @@ function gt() {
|
|
|
631
631
|
}
|
|
632
632
|
})(Ue)), Ue;
|
|
633
633
|
}
|
|
634
|
-
var
|
|
634
|
+
var Mt;
|
|
635
635
|
function Ae() {
|
|
636
|
-
return
|
|
636
|
+
return Mt || (Mt = 1, (function(n, e) {
|
|
637
637
|
Object.defineProperty(e, "__esModule", {
|
|
638
638
|
value: !0
|
|
639
639
|
}), Object.defineProperty(e, "normalizePathTrailingSlash", {
|
|
@@ -651,9 +651,9 @@ function Ae() {
|
|
|
651
651
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
|
652
652
|
})(he, he.exports)), he.exports;
|
|
653
653
|
}
|
|
654
|
-
var Xe = {}, me = { exports: {} }, Fe = {},
|
|
654
|
+
var Xe = {}, me = { exports: {} }, Fe = {}, jt;
|
|
655
655
|
function Ir() {
|
|
656
|
-
return
|
|
656
|
+
return jt || (jt = 1, (function(n) {
|
|
657
657
|
Object.defineProperty(n, "__esModule", {
|
|
658
658
|
value: !0
|
|
659
659
|
}), Object.defineProperty(n, "pathHasPrefix", {
|
|
@@ -671,9 +671,9 @@ function Ir() {
|
|
|
671
671
|
}
|
|
672
672
|
})(Fe)), Fe;
|
|
673
673
|
}
|
|
674
|
-
var
|
|
674
|
+
var xt;
|
|
675
675
|
function Fr() {
|
|
676
|
-
return
|
|
676
|
+
return xt || (xt = 1, (function(n, e) {
|
|
677
677
|
Object.defineProperty(e, "__esModule", {
|
|
678
678
|
value: !0
|
|
679
679
|
}), Object.defineProperty(e, "hasBasePath", {
|
|
@@ -945,8 +945,8 @@ function wr() {
|
|
|
945
945
|
if (h)
|
|
946
946
|
l = _[1][R];
|
|
947
947
|
else {
|
|
948
|
-
const
|
|
949
|
-
l =
|
|
948
|
+
const T = _[1];
|
|
949
|
+
l = T.children ?? Object.values(T)[0];
|
|
950
950
|
}
|
|
951
951
|
if (!l) return E;
|
|
952
952
|
const p = l[0];
|
|
@@ -1127,43 +1127,43 @@ function Yr() {
|
|
|
1127
1127
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.pathToRegexp = e.tokensToRegexp = e.regexpToFunction = e.match = e.tokensToFunction = e.compile = e.parse = void 0;
|
|
1128
1128
|
function a(l) {
|
|
1129
1129
|
for (var p = [], d = 0; d < l.length; ) {
|
|
1130
|
-
var
|
|
1131
|
-
if (
|
|
1130
|
+
var T = l[d];
|
|
1131
|
+
if (T === "*" || T === "+" || T === "?") {
|
|
1132
1132
|
p.push({ type: "MODIFIER", index: d, value: l[d++] });
|
|
1133
1133
|
continue;
|
|
1134
1134
|
}
|
|
1135
|
-
if (
|
|
1135
|
+
if (T === "\\") {
|
|
1136
1136
|
p.push({ type: "ESCAPED_CHAR", index: d++, value: l[d++] });
|
|
1137
1137
|
continue;
|
|
1138
1138
|
}
|
|
1139
|
-
if (
|
|
1139
|
+
if (T === "{") {
|
|
1140
1140
|
p.push({ type: "OPEN", index: d, value: l[d++] });
|
|
1141
1141
|
continue;
|
|
1142
1142
|
}
|
|
1143
|
-
if (
|
|
1143
|
+
if (T === "}") {
|
|
1144
1144
|
p.push({ type: "CLOSE", index: d, value: l[d++] });
|
|
1145
1145
|
continue;
|
|
1146
1146
|
}
|
|
1147
|
-
if (
|
|
1148
|
-
for (var
|
|
1147
|
+
if (T === ":") {
|
|
1148
|
+
for (var y = "", P = d + 1; P < l.length; ) {
|
|
1149
1149
|
var v = l.charCodeAt(P);
|
|
1150
1150
|
if (v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || v === 95) {
|
|
1151
|
-
|
|
1151
|
+
y += l[P++];
|
|
1152
1152
|
continue;
|
|
1153
1153
|
}
|
|
1154
1154
|
break;
|
|
1155
1155
|
}
|
|
1156
|
-
if (!
|
|
1157
|
-
p.push({ type: "NAME", index: d, value:
|
|
1156
|
+
if (!y) throw new TypeError("Missing parameter name at ".concat(d));
|
|
1157
|
+
p.push({ type: "NAME", index: d, value: y }), d = P;
|
|
1158
1158
|
continue;
|
|
1159
1159
|
}
|
|
1160
|
-
if (
|
|
1161
|
-
var O = 1,
|
|
1160
|
+
if (T === "(") {
|
|
1161
|
+
var O = 1, b = "", P = d + 1;
|
|
1162
1162
|
if (l[P] === "?")
|
|
1163
1163
|
throw new TypeError('Pattern cannot start with "?" at '.concat(P));
|
|
1164
1164
|
for (; P < l.length; ) {
|
|
1165
1165
|
if (l[P] === "\\") {
|
|
1166
|
-
|
|
1166
|
+
b += l[P++] + l[P++];
|
|
1167
1167
|
continue;
|
|
1168
1168
|
}
|
|
1169
1169
|
if (l[P] === ")") {
|
|
@@ -1173,11 +1173,11 @@ function Yr() {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
} else if (l[P] === "(" && (O++, l[P + 1] !== "?"))
|
|
1175
1175
|
throw new TypeError("Capturing groups are not allowed at ".concat(P));
|
|
1176
|
-
|
|
1176
|
+
b += l[P++];
|
|
1177
1177
|
}
|
|
1178
1178
|
if (O) throw new TypeError("Unbalanced pattern at ".concat(d));
|
|
1179
|
-
if (!
|
|
1180
|
-
p.push({ type: "PATTERN", index: d, value:
|
|
1179
|
+
if (!b) throw new TypeError("Missing pattern at ".concat(d));
|
|
1180
|
+
p.push({ type: "PATTERN", index: d, value: b }), d = P;
|
|
1181
1181
|
continue;
|
|
1182
1182
|
}
|
|
1183
1183
|
p.push({ type: "CHAR", index: d, value: l[d++] });
|
|
@@ -1186,36 +1186,36 @@ function Yr() {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
function c(l, p) {
|
|
1188
1188
|
p === void 0 && (p = {});
|
|
1189
|
-
for (var d = a(l),
|
|
1190
|
-
if (N < d.length && d[N].type ===
|
|
1191
|
-
}, A = function(
|
|
1192
|
-
var X = g(
|
|
1189
|
+
for (var d = a(l), T = p.prefixes, y = T === void 0 ? "./" : T, P = p.delimiter, v = P === void 0 ? "/#?" : P, O = [], b = 0, N = 0, I = "", g = function(x) {
|
|
1190
|
+
if (N < d.length && d[N].type === x) return d[N++].value;
|
|
1191
|
+
}, A = function(x) {
|
|
1192
|
+
var X = g(x);
|
|
1193
1193
|
if (X !== void 0) return X;
|
|
1194
1194
|
var V = d[N], L = V.type, Q = V.index;
|
|
1195
|
-
throw new TypeError("Unexpected ".concat(L, " at ").concat(Q, ", expected ").concat(
|
|
1195
|
+
throw new TypeError("Unexpected ".concat(L, " at ").concat(Q, ", expected ").concat(x));
|
|
1196
1196
|
}, C = function() {
|
|
1197
|
-
for (var
|
|
1198
|
-
|
|
1199
|
-
return
|
|
1200
|
-
}, w = function(
|
|
1197
|
+
for (var x = "", X; X = g("CHAR") || g("ESCAPED_CHAR"); )
|
|
1198
|
+
x += X;
|
|
1199
|
+
return x;
|
|
1200
|
+
}, w = function(x) {
|
|
1201
1201
|
for (var X = 0, V = v; X < V.length; X++) {
|
|
1202
1202
|
var L = V[X];
|
|
1203
|
-
if (
|
|
1203
|
+
if (x.indexOf(L) > -1) return !0;
|
|
1204
1204
|
}
|
|
1205
1205
|
return !1;
|
|
1206
|
-
}, q = function(
|
|
1207
|
-
var X = O[O.length - 1], V =
|
|
1206
|
+
}, q = function(x) {
|
|
1207
|
+
var X = O[O.length - 1], V = x || (X && typeof X == "string" ? X : "");
|
|
1208
1208
|
if (X && !V)
|
|
1209
1209
|
throw new TypeError('Must have text between two parameters, missing text after "'.concat(X.name, '"'));
|
|
1210
1210
|
return !V || w(V) ? "[^".concat(r(v), "]+?") : "(?:(?!".concat(r(V), ")[^").concat(r(v), "])+?");
|
|
1211
1211
|
}; N < d.length; ) {
|
|
1212
|
-
var
|
|
1212
|
+
var M = g("CHAR"), U = g("NAME"), W = g("PATTERN");
|
|
1213
1213
|
if (U || W) {
|
|
1214
|
-
var G =
|
|
1215
|
-
|
|
1214
|
+
var G = M || "";
|
|
1215
|
+
y.indexOf(G) === -1 && (I += G, G = ""), I && (O.push(I), I = ""), O.push({ name: U || b++, prefix: G, suffix: "", pattern: W || q(G), modifier: g("MODIFIER") || "" });
|
|
1216
1216
|
continue;
|
|
1217
1217
|
}
|
|
1218
|
-
var k =
|
|
1218
|
+
var k = M || g("ESCAPED_CHAR");
|
|
1219
1219
|
if (k) {
|
|
1220
1220
|
I += k;
|
|
1221
1221
|
continue;
|
|
@@ -1223,8 +1223,8 @@ function Yr() {
|
|
|
1223
1223
|
I && (O.push(I), I = "");
|
|
1224
1224
|
var B = g("OPEN");
|
|
1225
1225
|
if (B) {
|
|
1226
|
-
var G = C(), m = g("NAME") || "", S = g("PATTERN") || "",
|
|
1227
|
-
A("CLOSE"), O.push({ name: m || (S ?
|
|
1226
|
+
var G = C(), m = g("NAME") || "", S = g("PATTERN") || "", j = C();
|
|
1227
|
+
A("CLOSE"), O.push({ name: m || (S ? b++ : ""), pattern: m && !S ? q(G) : S, prefix: G, suffix: j, modifier: g("MODIFIER") || "" });
|
|
1228
1228
|
continue;
|
|
1229
1229
|
}
|
|
1230
1230
|
A("END");
|
|
@@ -1238,20 +1238,20 @@ function Yr() {
|
|
|
1238
1238
|
e.compile = s;
|
|
1239
1239
|
function i(l, p) {
|
|
1240
1240
|
p === void 0 && (p = {});
|
|
1241
|
-
var d = o(p),
|
|
1242
|
-
return
|
|
1243
|
-
} :
|
|
1244
|
-
if (typeof
|
|
1245
|
-
return new RegExp("^(?:".concat(
|
|
1241
|
+
var d = o(p), T = p.encode, y = T === void 0 ? function(b) {
|
|
1242
|
+
return b;
|
|
1243
|
+
} : T, P = p.validate, v = P === void 0 ? !0 : P, O = l.map((function(b) {
|
|
1244
|
+
if (typeof b == "object")
|
|
1245
|
+
return new RegExp("^(?:".concat(b.pattern, ")$"), d);
|
|
1246
1246
|
}));
|
|
1247
|
-
return function(
|
|
1247
|
+
return function(b) {
|
|
1248
1248
|
for (var N = "", I = 0; I < l.length; I++) {
|
|
1249
1249
|
var g = l[I];
|
|
1250
1250
|
if (typeof g == "string") {
|
|
1251
1251
|
N += g;
|
|
1252
1252
|
continue;
|
|
1253
1253
|
}
|
|
1254
|
-
var A =
|
|
1254
|
+
var A = b ? b[g.name] : void 0, C = g.modifier === "?" || g.modifier === "*", w = g.modifier === "*" || g.modifier === "+";
|
|
1255
1255
|
if (Array.isArray(A)) {
|
|
1256
1256
|
if (!w)
|
|
1257
1257
|
throw new TypeError('Expected "'.concat(g.name, '" to not repeat, but got an array'));
|
|
@@ -1260,18 +1260,18 @@ function Yr() {
|
|
|
1260
1260
|
throw new TypeError('Expected "'.concat(g.name, '" to not be empty'));
|
|
1261
1261
|
}
|
|
1262
1262
|
for (var q = 0; q < A.length; q++) {
|
|
1263
|
-
var
|
|
1264
|
-
if (v && !O[I].test(
|
|
1265
|
-
throw new TypeError('Expected all "'.concat(g.name, '" to match "').concat(g.pattern, '", but got "').concat(
|
|
1266
|
-
N += g.prefix +
|
|
1263
|
+
var M = y(A[q], g);
|
|
1264
|
+
if (v && !O[I].test(M))
|
|
1265
|
+
throw new TypeError('Expected all "'.concat(g.name, '" to match "').concat(g.pattern, '", but got "').concat(M, '"'));
|
|
1266
|
+
N += g.prefix + M + g.suffix;
|
|
1267
1267
|
}
|
|
1268
1268
|
continue;
|
|
1269
1269
|
}
|
|
1270
1270
|
if (typeof A == "string" || typeof A == "number") {
|
|
1271
|
-
var
|
|
1272
|
-
if (v && !O[I].test(
|
|
1273
|
-
throw new TypeError('Expected "'.concat(g.name, '" to match "').concat(g.pattern, '", but got "').concat(
|
|
1274
|
-
N += g.prefix +
|
|
1271
|
+
var M = y(String(A), g);
|
|
1272
|
+
if (v && !O[I].test(M))
|
|
1273
|
+
throw new TypeError('Expected "'.concat(g.name, '" to match "').concat(g.pattern, '", but got "').concat(M, '"'));
|
|
1274
|
+
N += g.prefix + M + g.suffix;
|
|
1275
1275
|
continue;
|
|
1276
1276
|
}
|
|
1277
1277
|
if (!C) {
|
|
@@ -1284,27 +1284,27 @@ function Yr() {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
e.tokensToFunction = i;
|
|
1286
1286
|
function t(l, p) {
|
|
1287
|
-
var d = [],
|
|
1288
|
-
return u(
|
|
1287
|
+
var d = [], T = E(l, d, p);
|
|
1288
|
+
return u(T, d, p);
|
|
1289
1289
|
}
|
|
1290
1290
|
e.match = t;
|
|
1291
1291
|
function u(l, p, d) {
|
|
1292
1292
|
d === void 0 && (d = {});
|
|
1293
|
-
var
|
|
1293
|
+
var T = d.decode, y = T === void 0 ? function(P) {
|
|
1294
1294
|
return P;
|
|
1295
|
-
} :
|
|
1295
|
+
} : T;
|
|
1296
1296
|
return function(P) {
|
|
1297
1297
|
var v = l.exec(P);
|
|
1298
1298
|
if (!v) return !1;
|
|
1299
|
-
for (var O = v[0],
|
|
1299
|
+
for (var O = v[0], b = v.index, N = /* @__PURE__ */ Object.create(null), I = function(A) {
|
|
1300
1300
|
if (v[A] === void 0) return "continue";
|
|
1301
1301
|
var C = p[A - 1];
|
|
1302
1302
|
C.modifier === "*" || C.modifier === "+" ? N[C.name] = v[A].split(C.prefix + C.suffix).map((function(w) {
|
|
1303
|
-
return
|
|
1304
|
-
})) : N[C.name] =
|
|
1303
|
+
return y(w, C);
|
|
1304
|
+
})) : N[C.name] = y(v[A], C);
|
|
1305
1305
|
}, g = 1; g < v.length; g++)
|
|
1306
1306
|
I(g);
|
|
1307
|
-
return { path: O, index:
|
|
1307
|
+
return { path: O, index: b, params: N };
|
|
1308
1308
|
};
|
|
1309
1309
|
}
|
|
1310
1310
|
e.regexpToFunction = u;
|
|
@@ -1316,24 +1316,24 @@ function Yr() {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
function f(l, p) {
|
|
1318
1318
|
if (!p) return l;
|
|
1319
|
-
for (var d = /\((?:\?<(.*?)>)?(?!\?)/g,
|
|
1320
|
-
p.push({ name:
|
|
1319
|
+
for (var d = /\((?:\?<(.*?)>)?(?!\?)/g, T = 0, y = d.exec(l.source); y; )
|
|
1320
|
+
p.push({ name: y[1] || T++, prefix: "", suffix: "", modifier: "", pattern: "" }), y = d.exec(l.source);
|
|
1321
1321
|
return l;
|
|
1322
1322
|
}
|
|
1323
1323
|
function _(l, p, d) {
|
|
1324
|
-
var
|
|
1325
|
-
return E(
|
|
1324
|
+
var T = l.map((function(y) {
|
|
1325
|
+
return E(y, p, d).source;
|
|
1326
1326
|
}));
|
|
1327
|
-
return new RegExp("(?:".concat(
|
|
1327
|
+
return new RegExp("(?:".concat(T.join("|"), ")"), o(d));
|
|
1328
1328
|
}
|
|
1329
1329
|
function R(l, p, d) {
|
|
1330
1330
|
return h(c(l, d), p, d);
|
|
1331
1331
|
}
|
|
1332
1332
|
function h(l, p, d) {
|
|
1333
1333
|
d === void 0 && (d = {});
|
|
1334
|
-
for (var
|
|
1334
|
+
for (var T = d.strict, y = T === void 0 ? !1 : T, P = d.start, v = P === void 0 ? !0 : P, O = d.end, b = O === void 0 ? !0 : O, N = d.encode, I = N === void 0 ? function(X) {
|
|
1335
1335
|
return X;
|
|
1336
|
-
} : N, g = d.delimiter, A = g === void 0 ? "/#?" : g, C = d.endsWith, w = C === void 0 ? "" : C, q = "[".concat(r(w), "]|$"),
|
|
1336
|
+
} : N, g = d.delimiter, A = g === void 0 ? "/#?" : g, C = d.endsWith, w = C === void 0 ? "" : C, q = "[".concat(r(w), "]|$"), M = "[".concat(r(A), "]"), U = v ? "^" : "", W = 0, G = l; W < G.length; W++) {
|
|
1337
1337
|
var k = G[W];
|
|
1338
1338
|
if (typeof k == "string")
|
|
1339
1339
|
U += r(I(k));
|
|
@@ -1355,11 +1355,11 @@ function Yr() {
|
|
|
1355
1355
|
U += "(?:".concat(B).concat(m, ")").concat(k.modifier);
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
if (
|
|
1359
|
-
|
|
1358
|
+
if (b)
|
|
1359
|
+
y || (U += "".concat(M, "?")), U += d.endsWith ? "(?=".concat(q, ")") : "$";
|
|
1360
1360
|
else {
|
|
1361
|
-
var
|
|
1362
|
-
|
|
1361
|
+
var j = l[l.length - 1], x = typeof j == "string" ? M.indexOf(j[j.length - 1]) > -1 : j === void 0;
|
|
1362
|
+
y || (U += "(?:".concat(M, "(?=").concat(q, "))?")), x || (U += "(?=".concat(M, "|").concat(q, ")"));
|
|
1363
1363
|
}
|
|
1364
1364
|
return new RegExp(U, o(d));
|
|
1365
1365
|
}
|
|
@@ -1513,7 +1513,7 @@ function $r() {
|
|
|
1513
1513
|
})(Qe)), Qe;
|
|
1514
1514
|
}
|
|
1515
1515
|
var Vt;
|
|
1516
|
-
function
|
|
1516
|
+
function Mr() {
|
|
1517
1517
|
return Vt || (Vt = 1, (function(n) {
|
|
1518
1518
|
Object.defineProperty(n, "__esModule", {
|
|
1519
1519
|
value: !0
|
|
@@ -1556,9 +1556,9 @@ function Kr() {
|
|
|
1556
1556
|
value: !0
|
|
1557
1557
|
});
|
|
1558
1558
|
function e(ne, we) {
|
|
1559
|
-
for (var
|
|
1559
|
+
for (var Me in we) Object.defineProperty(ne, Me, {
|
|
1560
1560
|
enumerable: !0,
|
|
1561
|
-
get: we[
|
|
1561
|
+
get: we[Me]
|
|
1562
1562
|
});
|
|
1563
1563
|
}
|
|
1564
1564
|
e(n, {
|
|
@@ -1593,7 +1593,7 @@ function Kr() {
|
|
|
1593
1593
|
return g;
|
|
1594
1594
|
},
|
|
1595
1595
|
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
1596
|
-
return
|
|
1596
|
+
return M;
|
|
1597
1597
|
},
|
|
1598
1598
|
JSON_CONTENT_TYPE_HEADER: function() {
|
|
1599
1599
|
return s;
|
|
@@ -1614,13 +1614,13 @@ function Kr() {
|
|
|
1614
1614
|
return N;
|
|
1615
1615
|
},
|
|
1616
1616
|
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
1617
|
-
return
|
|
1617
|
+
return T;
|
|
1618
1618
|
},
|
|
1619
1619
|
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
1620
|
-
return
|
|
1620
|
+
return y;
|
|
1621
1621
|
},
|
|
1622
1622
|
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
1623
|
-
return
|
|
1623
|
+
return b;
|
|
1624
1624
|
},
|
|
1625
1625
|
NEXT_CACHE_TAGS_HEADER: function() {
|
|
1626
1626
|
return d;
|
|
@@ -1683,10 +1683,10 @@ function Kr() {
|
|
|
1683
1683
|
return m;
|
|
1684
1684
|
},
|
|
1685
1685
|
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
1686
|
-
return
|
|
1686
|
+
return j;
|
|
1687
1687
|
},
|
|
1688
1688
|
RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
|
|
1689
|
-
return
|
|
1689
|
+
return x;
|
|
1690
1690
|
},
|
|
1691
1691
|
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
1692
1692
|
return B;
|
|
@@ -1737,7 +1737,7 @@ function Kr() {
|
|
|
1737
1737
|
return Ce;
|
|
1738
1738
|
}
|
|
1739
1739
|
});
|
|
1740
|
-
const a = "text/plain", c = "text/html; charset=utf-8", s = "application/json; charset=utf-8", i = "nxtP", t = "nxtI", u = "x-matched-path", r = "x-prerender-revalidate", o = "x-prerender-revalidate-if-generated", f = ".segments", _ = ".segment.rsc", R = ".rsc", h = ".action", E = ".json", l = ".meta", p = ".body", d = "x-next-cache-tags",
|
|
1740
|
+
const a = "text/plain", c = "text/html; charset=utf-8", s = "application/json; charset=utf-8", i = "nxtP", t = "nxtI", u = "x-matched-path", r = "x-prerender-revalidate", o = "x-prerender-revalidate-if-generated", f = ".segments", _ = ".segment.rsc", R = ".rsc", h = ".action", E = ".json", l = ".meta", p = ".body", d = "x-next-cache-tags", T = "x-next-revalidated-tags", y = "x-next-revalidate-tag-token", P = "next-resume", v = 128, O = 256, b = 1024, N = "_N_T_", I = 31536e3, g = 4294967294, A = "middleware", C = `(?:src/)?${A}`, w = "proxy", q = `(?:src/)?${w}`, M = "instrumentation", U = "private-next-pages", W = "private-dot-next", G = "private-next-root-dir", k = "private-next-app-dir", B = "private-next-rsc-mod-ref-proxy", m = "private-next-rsc-action-validate", S = "private-next-rsc-server-reference", j = "private-next-rsc-cache-wrapper", x = "private-next-rsc-track-dynamic-import", X = "private-next-rsc-action-encryption", V = "private-next-rsc-action-client-wrapper", L = "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", Q = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", z = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", re = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", J = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", $ = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", ue = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", ce = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", Y = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", Ne = "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", se = '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', le = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", fe = [
|
|
1741
1741
|
"app",
|
|
1742
1742
|
"pages",
|
|
1743
1743
|
"components",
|
|
@@ -2034,23 +2034,23 @@ function en() {
|
|
|
2034
2034
|
const _ = o.split("/").filter(Boolean), R = [];
|
|
2035
2035
|
let h, E, l;
|
|
2036
2036
|
for (const d of _) {
|
|
2037
|
-
const
|
|
2038
|
-
if (
|
|
2039
|
-
if (f && (
|
|
2037
|
+
const T = i(d);
|
|
2038
|
+
if (T) {
|
|
2039
|
+
if (f && (T.type === "route-group" || T.type === "parallel-route"))
|
|
2040
2040
|
throw Object.defineProperty(new a.InvariantError(`${o} is being parsed as a normalized route, but it has a route group or parallel route segment.`), "__NEXT_ERROR_CODE", {
|
|
2041
2041
|
value: "E923",
|
|
2042
2042
|
enumerable: !1,
|
|
2043
2043
|
configurable: !0
|
|
2044
2044
|
});
|
|
2045
|
-
if (R.push(
|
|
2046
|
-
const
|
|
2047
|
-
if (
|
|
2045
|
+
if (R.push(T), T.interceptionMarker) {
|
|
2046
|
+
const y = o.split(T.interceptionMarker);
|
|
2047
|
+
if (y.length !== 2)
|
|
2048
2048
|
throw Object.defineProperty(new Error(`Invalid interception route: ${o}`), "__NEXT_ERROR_CODE", {
|
|
2049
2049
|
value: "E924",
|
|
2050
2050
|
enumerable: !1,
|
|
2051
2051
|
configurable: !0
|
|
2052
2052
|
});
|
|
2053
|
-
E = f ? r(
|
|
2053
|
+
E = f ? r(y[0], !0) : r(y[0], !1), l = f ? r(y[1], !0) : r(y[1], !1), h = T.interceptionMarker;
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
2056
|
}
|
|
@@ -2205,13 +2205,13 @@ function nn() {
|
|
|
2205
2205
|
tree: R,
|
|
2206
2206
|
depth: 0
|
|
2207
2207
|
}
|
|
2208
|
-
],
|
|
2208
|
+
], T = (0, s.parseAppRoute)(E, !0);
|
|
2209
2209
|
for (; d.length > 0; ) {
|
|
2210
|
-
const { tree:
|
|
2211
|
-
if (
|
|
2210
|
+
const { tree: y, depth: P } = d.pop(), { segment: v, parallelRoutes: O } = (0, c.parseLoaderTree)(y), b = (0, s.parseAppRouteSegment)(v);
|
|
2211
|
+
if (b?.type === "dynamic" && !p.hasOwnProperty(b.param.paramName) && // If the param is in the fallback route params, we don't need to
|
|
2212
2212
|
// interpolate it because it's already marked as being unknown.
|
|
2213
|
-
!l?.has(
|
|
2214
|
-
const { paramName: I, paramType: g } =
|
|
2213
|
+
!l?.has(b.param.paramName)) {
|
|
2214
|
+
const { paramName: I, paramType: g } = b.param, A = (0, i.resolveParamValue)(I, g, P, T, p);
|
|
2215
2215
|
if (A !== void 0)
|
|
2216
2216
|
p[I] = A;
|
|
2217
2217
|
else if (g !== "optional-catchall")
|
|
@@ -2222,7 +2222,7 @@ function nn() {
|
|
|
2222
2222
|
});
|
|
2223
2223
|
}
|
|
2224
2224
|
let N = P;
|
|
2225
|
-
|
|
2225
|
+
b && b.type !== "route-group" && b.type !== "parallel-route" && N++;
|
|
2226
2226
|
for (const I of Object.values(O))
|
|
2227
2227
|
d.push({
|
|
2228
2228
|
tree: I,
|
|
@@ -2282,7 +2282,7 @@ function nn() {
|
|
|
2282
2282
|
})(nt)), nt;
|
|
2283
2283
|
}
|
|
2284
2284
|
var rr;
|
|
2285
|
-
function
|
|
2285
|
+
function jr() {
|
|
2286
2286
|
return rr || (rr = 1, (function(n) {
|
|
2287
2287
|
Object.defineProperty(n, "__esModule", {
|
|
2288
2288
|
value: !0
|
|
@@ -2307,41 +2307,41 @@ function Mr() {
|
|
|
2307
2307
|
const a = Kr(), c = Se(), s = Qr(), i = Nr(), t = nn();
|
|
2308
2308
|
function u(E, l, p) {
|
|
2309
2309
|
const d = {};
|
|
2310
|
-
let
|
|
2311
|
-
const
|
|
2310
|
+
let T = 1;
|
|
2311
|
+
const y = [];
|
|
2312
2312
|
for (const P of (0, i.removeTrailingSlash)(E).slice(1).split("/")) {
|
|
2313
|
-
const v = c.INTERCEPTION_ROUTE_MARKERS.find((
|
|
2313
|
+
const v = c.INTERCEPTION_ROUTE_MARKERS.find((b) => P.startsWith(b)), O = P.match(t.PARAMETER_PATTERN);
|
|
2314
2314
|
if (v && O && O[2]) {
|
|
2315
|
-
const { key:
|
|
2316
|
-
d[
|
|
2317
|
-
pos:
|
|
2315
|
+
const { key: b, optional: N, repeat: I } = (0, t.parseMatchedParameter)(O[2]);
|
|
2316
|
+
d[b] = {
|
|
2317
|
+
pos: T++,
|
|
2318
2318
|
repeat: I,
|
|
2319
2319
|
optional: N
|
|
2320
|
-
},
|
|
2320
|
+
}, y.push(`/${(0, s.escapeStringRegexp)(v)}([^/]+?)`);
|
|
2321
2321
|
} else if (O && O[2]) {
|
|
2322
|
-
const { key:
|
|
2323
|
-
d[
|
|
2324
|
-
pos:
|
|
2322
|
+
const { key: b, repeat: N, optional: I } = (0, t.parseMatchedParameter)(O[2]);
|
|
2323
|
+
d[b] = {
|
|
2324
|
+
pos: T++,
|
|
2325
2325
|
repeat: N,
|
|
2326
2326
|
optional: I
|
|
2327
|
-
}, p && O[1] &&
|
|
2327
|
+
}, p && O[1] && y.push(`/${(0, s.escapeStringRegexp)(O[1])}`);
|
|
2328
2328
|
let g = N ? I ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
|
|
2329
|
-
p && O[1] && (g = g.substring(1)),
|
|
2329
|
+
p && O[1] && (g = g.substring(1)), y.push(g);
|
|
2330
2330
|
} else
|
|
2331
|
-
|
|
2332
|
-
l && O && O[3] &&
|
|
2331
|
+
y.push(`/${(0, s.escapeStringRegexp)(P)}`);
|
|
2332
|
+
l && O && O[3] && y.push((0, s.escapeStringRegexp)(O[3]));
|
|
2333
2333
|
}
|
|
2334
2334
|
return {
|
|
2335
|
-
parameterizedRoute:
|
|
2335
|
+
parameterizedRoute: y.join(""),
|
|
2336
2336
|
groups: d
|
|
2337
2337
|
};
|
|
2338
2338
|
}
|
|
2339
2339
|
function r(E, { includeSuffix: l = !1, includePrefix: p = !1, excludeOptionalTrailingSlash: d = !1 } = {}) {
|
|
2340
|
-
const { parameterizedRoute:
|
|
2341
|
-
let P =
|
|
2340
|
+
const { parameterizedRoute: T, groups: y } = u(E, l, p);
|
|
2341
|
+
let P = T;
|
|
2342
2342
|
return d || (P += "(?:/)?"), {
|
|
2343
2343
|
re: new RegExp(`^${P}$`),
|
|
2344
|
-
groups:
|
|
2344
|
+
groups: y
|
|
2345
2345
|
};
|
|
2346
2346
|
}
|
|
2347
2347
|
function o() {
|
|
@@ -2353,63 +2353,63 @@ function Mr() {
|
|
|
2353
2353
|
return l;
|
|
2354
2354
|
};
|
|
2355
2355
|
}
|
|
2356
|
-
function f({ interceptionMarker: E, getSafeRouteKey: l, segment: p, routeKeys: d, keyPrefix:
|
|
2356
|
+
function f({ interceptionMarker: E, getSafeRouteKey: l, segment: p, routeKeys: d, keyPrefix: T, backreferenceDuplicateKeys: y }) {
|
|
2357
2357
|
const { key: P, optional: v, repeat: O } = (0, t.parseMatchedParameter)(p);
|
|
2358
|
-
let
|
|
2359
|
-
|
|
2358
|
+
let b = P.replace(/\W/g, "");
|
|
2359
|
+
T && (b = `${T}${b}`);
|
|
2360
2360
|
let N = !1;
|
|
2361
|
-
(
|
|
2362
|
-
const I =
|
|
2363
|
-
|
|
2361
|
+
(b.length === 0 || b.length > 30) && (N = !0), isNaN(parseInt(b.slice(0, 1))) || (N = !0), N && (b = l());
|
|
2362
|
+
const I = b in d;
|
|
2363
|
+
T ? d[b] = `${T}${P}` : d[b] = P;
|
|
2364
2364
|
const g = E ? (0, s.escapeStringRegexp)(E) : "";
|
|
2365
2365
|
let A;
|
|
2366
|
-
return I &&
|
|
2366
|
+
return I && y ? A = `\\k<${b}>` : O ? A = `(?<${b}>.+?)` : A = `(?<${b}>[^/]+?)`, {
|
|
2367
2367
|
key: P,
|
|
2368
2368
|
pattern: v ? `(?:/${g}${A})?` : `/${g}${A}`,
|
|
2369
|
-
cleanedKey:
|
|
2369
|
+
cleanedKey: b,
|
|
2370
2370
|
optional: v,
|
|
2371
2371
|
repeat: O
|
|
2372
2372
|
};
|
|
2373
2373
|
}
|
|
2374
|
-
function _(E, l, p, d,
|
|
2374
|
+
function _(E, l, p, d, T, y = {
|
|
2375
2375
|
names: {},
|
|
2376
2376
|
intercepted: {}
|
|
2377
2377
|
}) {
|
|
2378
|
-
const P = o(), v = {}, O = [],
|
|
2379
|
-
|
|
2378
|
+
const P = o(), v = {}, O = [], b = [];
|
|
2379
|
+
y = structuredClone(y);
|
|
2380
2380
|
for (const N of (0, i.removeTrailingSlash)(E).slice(1).split("/")) {
|
|
2381
2381
|
const I = c.INTERCEPTION_ROUTE_MARKERS.some((w) => N.startsWith(w)), g = N.match(t.PARAMETER_PATTERN), A = I ? g?.[1] : void 0;
|
|
2382
2382
|
let C;
|
|
2383
|
-
if (A && g?.[2] ? (C = l ? a.NEXT_INTERCEPTION_MARKER_PREFIX : void 0,
|
|
2384
|
-
const { key: w, pattern: q, cleanedKey:
|
|
2383
|
+
if (A && g?.[2] ? (C = l ? a.NEXT_INTERCEPTION_MARKER_PREFIX : void 0, y.intercepted[g[2]] = A) : g?.[2] && y.intercepted[g[2]] ? C = l ? a.NEXT_INTERCEPTION_MARKER_PREFIX : void 0 : C = l ? a.NEXT_QUERY_PARAM_PREFIX : void 0, A && g && g[2]) {
|
|
2384
|
+
const { key: w, pattern: q, cleanedKey: M, repeat: U, optional: W } = f({
|
|
2385
2385
|
getSafeRouteKey: P,
|
|
2386
2386
|
interceptionMarker: A,
|
|
2387
2387
|
segment: g[2],
|
|
2388
2388
|
routeKeys: v,
|
|
2389
2389
|
keyPrefix: C,
|
|
2390
|
-
backreferenceDuplicateKeys:
|
|
2390
|
+
backreferenceDuplicateKeys: T
|
|
2391
2391
|
});
|
|
2392
|
-
O.push(q),
|
|
2392
|
+
O.push(q), b.push(`/${g[1]}:${y.names[w] ?? M}${U ? W ? "*" : "+" : ""}`), y.names[w] ??= M;
|
|
2393
2393
|
} else if (g && g[2]) {
|
|
2394
|
-
d && g[1] && (O.push(`/${(0, s.escapeStringRegexp)(g[1])}`),
|
|
2395
|
-
const { key: w, pattern: q, cleanedKey:
|
|
2394
|
+
d && g[1] && (O.push(`/${(0, s.escapeStringRegexp)(g[1])}`), b.push(`/${g[1]}`));
|
|
2395
|
+
const { key: w, pattern: q, cleanedKey: M, repeat: U, optional: W } = f({
|
|
2396
2396
|
getSafeRouteKey: P,
|
|
2397
2397
|
segment: g[2],
|
|
2398
2398
|
routeKeys: v,
|
|
2399
2399
|
keyPrefix: C,
|
|
2400
|
-
backreferenceDuplicateKeys:
|
|
2400
|
+
backreferenceDuplicateKeys: T
|
|
2401
2401
|
});
|
|
2402
2402
|
let G = q;
|
|
2403
|
-
d && g[1] && (G = G.substring(1)), O.push(G),
|
|
2403
|
+
d && g[1] && (G = G.substring(1)), O.push(G), b.push(`/:${y.names[w] ?? M}${U ? W ? "*" : "+" : ""}`), y.names[w] ??= M;
|
|
2404
2404
|
} else
|
|
2405
|
-
O.push(`/${(0, s.escapeStringRegexp)(N)}`),
|
|
2406
|
-
p && g && g[3] && (O.push((0, s.escapeStringRegexp)(g[3])),
|
|
2405
|
+
O.push(`/${(0, s.escapeStringRegexp)(N)}`), b.push(`/${N}`);
|
|
2406
|
+
p && g && g[3] && (O.push((0, s.escapeStringRegexp)(g[3])), b.push(g[3]));
|
|
2407
2407
|
}
|
|
2408
2408
|
return {
|
|
2409
2409
|
namedParameterizedRoute: O.join(""),
|
|
2410
2410
|
routeKeys: v,
|
|
2411
|
-
pathToRegexpPattern:
|
|
2412
|
-
reference:
|
|
2411
|
+
pathToRegexpPattern: b.join(""),
|
|
2412
|
+
reference: y
|
|
2413
2413
|
};
|
|
2414
2414
|
}
|
|
2415
2415
|
function R(E, l) {
|
|
@@ -2429,9 +2429,9 @@ function Mr() {
|
|
|
2429
2429
|
return {
|
|
2430
2430
|
namedRegex: `^/${d ? ".*" : ""}$`
|
|
2431
2431
|
};
|
|
2432
|
-
const { namedParameterizedRoute:
|
|
2432
|
+
const { namedParameterizedRoute: T } = _(E, !1, !1, !1, !1, void 0);
|
|
2433
2433
|
return {
|
|
2434
|
-
namedRegex: `^${
|
|
2434
|
+
namedRegex: `^${T}${d ? "(?:(/.*)?)" : ""}$`
|
|
2435
2435
|
};
|
|
2436
2436
|
}
|
|
2437
2437
|
})(et)), et;
|
|
@@ -2447,7 +2447,7 @@ function on() {
|
|
|
2447
2447
|
return c;
|
|
2448
2448
|
}
|
|
2449
2449
|
});
|
|
2450
|
-
const e =
|
|
2450
|
+
const e = Mr(), a = jr();
|
|
2451
2451
|
function c(s, i, t) {
|
|
2452
2452
|
let u = "";
|
|
2453
2453
|
const r = (0, a.getRouteRegex)(s), o = r.groups, f = (
|
|
@@ -2490,14 +2490,14 @@ function an() {
|
|
|
2490
2490
|
return R;
|
|
2491
2491
|
}
|
|
2492
2492
|
});
|
|
2493
|
-
const a = Ar(), c = Sr(), s = Xr(), i = Oe(), t = Ae(), u = Cr(), r = Vr(), o = on(), f =
|
|
2493
|
+
const a = Ar(), c = Sr(), s = Xr(), i = Oe(), t = Ae(), u = Cr(), r = Vr(), o = on(), f = jr(), _ = Mr();
|
|
2494
2494
|
function R(h, E, l) {
|
|
2495
2495
|
let p, d = typeof E == "string" ? E : (0, c.formatWithValidation)(E);
|
|
2496
|
-
const
|
|
2497
|
-
if ((
|
|
2496
|
+
const T = d.match(/^[a-z][a-z0-9+.-]*:\/\//i), y = T ? d.slice(T[0].length) : d;
|
|
2497
|
+
if ((y.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
|
|
2498
2498
|
console.error(`Invalid href '${d}' passed to next/router in page: '${h.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);
|
|
2499
|
-
const v = (0, i.normalizeRepeatedSlashes)(
|
|
2500
|
-
d = (
|
|
2499
|
+
const v = (0, i.normalizeRepeatedSlashes)(y);
|
|
2500
|
+
d = (T ? T[0] : "") + v;
|
|
2501
2501
|
}
|
|
2502
2502
|
if (!(0, u.isLocalURL)(d))
|
|
2503
2503
|
return l ? [
|
|
@@ -2526,11 +2526,11 @@ function an() {
|
|
|
2526
2526
|
query: (0, s.omit)(N, g)
|
|
2527
2527
|
}));
|
|
2528
2528
|
}
|
|
2529
|
-
const
|
|
2529
|
+
const b = v.origin === p.origin ? v.href.slice(v.origin.length) : v.href;
|
|
2530
2530
|
return l ? [
|
|
2531
|
-
|
|
2532
|
-
O ||
|
|
2533
|
-
] :
|
|
2531
|
+
b,
|
|
2532
|
+
O || b
|
|
2533
|
+
] : b;
|
|
2534
2534
|
} catch {
|
|
2535
2535
|
return l ? [
|
|
2536
2536
|
d
|
|
@@ -2541,7 +2541,7 @@ function an() {
|
|
|
2541
2541
|
})(_e, _e.exports)), _e.exports;
|
|
2542
2542
|
}
|
|
2543
2543
|
var Ee = { exports: {} }, lt = {}, ft = {}, ar;
|
|
2544
|
-
function
|
|
2544
|
+
function xr() {
|
|
2545
2545
|
return ar || (ar = 1, (function(n) {
|
|
2546
2546
|
Object.defineProperty(n, "__esModule", {
|
|
2547
2547
|
value: !0
|
|
@@ -2571,7 +2571,7 @@ function un() {
|
|
|
2571
2571
|
return c;
|
|
2572
2572
|
}
|
|
2573
2573
|
});
|
|
2574
|
-
const e =
|
|
2574
|
+
const e = xr(), a = Ir();
|
|
2575
2575
|
function c(s, i, t, u) {
|
|
2576
2576
|
if (!i || i === t) return s;
|
|
2577
2577
|
const r = s.toLowerCase();
|
|
@@ -2676,8 +2676,8 @@ function dn() {
|
|
|
2676
2676
|
return h;
|
|
2677
2677
|
const E = /* @__PURE__ */ new Map(), l = new IntersectionObserver((p) => {
|
|
2678
2678
|
p.forEach((d) => {
|
|
2679
|
-
const
|
|
2680
|
-
|
|
2679
|
+
const T = E.get(d.target), y = d.isIntersecting || d.intersectionRatio > 0;
|
|
2680
|
+
T && y && T(y);
|
|
2681
2681
|
});
|
|
2682
2682
|
}, f);
|
|
2683
2683
|
return h = {
|
|
@@ -2691,27 +2691,27 @@ function dn() {
|
|
|
2691
2691
|
return l.set(f, _), E.observe(f), function() {
|
|
2692
2692
|
if (l.delete(f), E.unobserve(f), l.size === 0) {
|
|
2693
2693
|
E.disconnect(), i.delete(h);
|
|
2694
|
-
const d = t.findIndex((
|
|
2694
|
+
const d = t.findIndex((T) => T.root === h.root && T.margin === h.margin);
|
|
2695
2695
|
d > -1 && t.splice(d, 1);
|
|
2696
2696
|
}
|
|
2697
2697
|
};
|
|
2698
2698
|
}
|
|
2699
2699
|
function o({ rootRef: f, rootMargin: _, disabled: R }) {
|
|
2700
|
-
const h = R || !s, [E, l] = (0, a.useState)(!1), p = (0, a.useRef)(null), d = (0, a.useCallback)((
|
|
2701
|
-
p.current =
|
|
2700
|
+
const h = R || !s, [E, l] = (0, a.useState)(!1), p = (0, a.useRef)(null), d = (0, a.useCallback)((y) => {
|
|
2701
|
+
p.current = y;
|
|
2702
2702
|
}, []);
|
|
2703
2703
|
(0, a.useEffect)(() => {
|
|
2704
2704
|
if (s) {
|
|
2705
2705
|
if (h || E) return;
|
|
2706
|
-
const
|
|
2707
|
-
if (
|
|
2708
|
-
return r(
|
|
2706
|
+
const y = p.current;
|
|
2707
|
+
if (y && y.tagName)
|
|
2708
|
+
return r(y, (v) => v && l(v), {
|
|
2709
2709
|
root: f?.current,
|
|
2710
2710
|
rootMargin: _
|
|
2711
2711
|
});
|
|
2712
2712
|
} else if (!E) {
|
|
2713
|
-
const
|
|
2714
|
-
return () => (0, c.cancelIdleCallback)(
|
|
2713
|
+
const y = (0, c.requestIdleCallback)(() => l(!0));
|
|
2714
|
+
return () => (0, c.cancelIdleCallback)(y);
|
|
2715
2715
|
}
|
|
2716
2716
|
}, [
|
|
2717
2717
|
h,
|
|
@@ -2720,13 +2720,13 @@ function dn() {
|
|
|
2720
2720
|
E,
|
|
2721
2721
|
p.current
|
|
2722
2722
|
]);
|
|
2723
|
-
const
|
|
2723
|
+
const T = (0, a.useCallback)(() => {
|
|
2724
2724
|
l(!1);
|
|
2725
2725
|
}, []);
|
|
2726
2726
|
return [
|
|
2727
2727
|
d,
|
|
2728
2728
|
E,
|
|
2729
|
-
|
|
2729
|
+
T
|
|
2730
2730
|
];
|
|
2731
2731
|
}
|
|
2732
2732
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
|
@@ -2783,7 +2783,7 @@ function _n() {
|
|
|
2783
2783
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
|
2784
2784
|
})(Pe, Pe.exports)), Pe.exports;
|
|
2785
2785
|
}
|
|
2786
|
-
var
|
|
2786
|
+
var Te = { exports: {} }, ht = {}, _r;
|
|
2787
2787
|
function hn() {
|
|
2788
2788
|
return _r || (_r = 1, (function(n) {
|
|
2789
2789
|
Object.defineProperty(n, "__esModule", {
|
|
@@ -2822,7 +2822,7 @@ function mn() {
|
|
|
2822
2822
|
return hn().detectDomainLocale(...c);
|
|
2823
2823
|
};
|
|
2824
2824
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
|
2825
|
-
})(
|
|
2825
|
+
})(Te, Te.exports)), Te.exports;
|
|
2826
2826
|
}
|
|
2827
2827
|
var mr;
|
|
2828
2828
|
function En() {
|
|
@@ -2850,7 +2850,7 @@ function En() {
|
|
|
2850
2850
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
|
2851
2851
|
})(ve, ve.exports)), ve.exports;
|
|
2852
2852
|
}
|
|
2853
|
-
var
|
|
2853
|
+
var be = { exports: {} }, Er;
|
|
2854
2854
|
function Rn() {
|
|
2855
2855
|
return Er || (Er = 1, (function(n, e) {
|
|
2856
2856
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -2861,14 +2861,14 @@ function Rn() {
|
|
|
2861
2861
|
return i;
|
|
2862
2862
|
}
|
|
2863
2863
|
});
|
|
2864
|
-
const a =
|
|
2864
|
+
const a = xr(), c = Ae(), s = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
2865
2865
|
function i(t, u) {
|
|
2866
2866
|
return (0, c.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !u ? t : (0, a.addPathPrefix)(t, s));
|
|
2867
2867
|
}
|
|
2868
2868
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
|
2869
|
-
})(
|
|
2869
|
+
})(be, be.exports)), be.exports;
|
|
2870
2870
|
}
|
|
2871
|
-
var
|
|
2871
|
+
var ye = { exports: {} }, Rr;
|
|
2872
2872
|
function gn() {
|
|
2873
2873
|
return Rr || (Rr = 1, (function(n, e) {
|
|
2874
2874
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -2905,7 +2905,7 @@ function gn() {
|
|
|
2905
2905
|
};
|
|
2906
2906
|
}
|
|
2907
2907
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
|
2908
|
-
})(
|
|
2908
|
+
})(ye, ye.exports)), ye.exports;
|
|
2909
2909
|
}
|
|
2910
2910
|
var mt = {}, gr;
|
|
2911
2911
|
function vn() {
|
|
@@ -2949,17 +2949,17 @@ function Pn() {
|
|
|
2949
2949
|
return N;
|
|
2950
2950
|
}
|
|
2951
2951
|
});
|
|
2952
|
-
const c = /* @__PURE__ */ Or(), s =
|
|
2953
|
-
function
|
|
2952
|
+
const c = /* @__PURE__ */ Or(), s = Tr(), i = /* @__PURE__ */ c._(ie), t = an(), u = Cr(), r = Sr(), o = Oe(), f = cn(), _ = ln(), R = dn(), h = En(), E = Rn(), l = gn(), p = vn(), d = /* @__PURE__ */ new Set();
|
|
2953
|
+
function T(g, A, C, w) {
|
|
2954
2954
|
if (!(typeof window > "u") && (0, u.isLocalURL)(A)) {
|
|
2955
2955
|
if (!w.bypassPrefetchedCheck) {
|
|
2956
2956
|
const q = (
|
|
2957
2957
|
// Let the link's locale prop override the default router locale.
|
|
2958
2958
|
typeof w.locale < "u" ? w.locale : "locale" in g ? g.locale : void 0
|
|
2959
|
-
),
|
|
2960
|
-
if (d.has(
|
|
2959
|
+
), M = A + "%" + C + "%" + q;
|
|
2960
|
+
if (d.has(M))
|
|
2961
2961
|
return;
|
|
2962
|
-
d.add(
|
|
2962
|
+
d.add(M);
|
|
2963
2963
|
}
|
|
2964
2964
|
g.prefetch(A, C, w).catch((q) => {
|
|
2965
2965
|
if (process.env.NODE_ENV !== "production")
|
|
@@ -2967,14 +2967,14 @@ function Pn() {
|
|
|
2967
2967
|
});
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
2970
|
-
function
|
|
2970
|
+
function y(g) {
|
|
2971
2971
|
const C = g.currentTarget.getAttribute("target");
|
|
2972
2972
|
return C && C !== "_self" || g.metaKey || g.ctrlKey || g.shiftKey || g.altKey || // triggers resource download
|
|
2973
2973
|
g.nativeEvent && g.nativeEvent.which === 2;
|
|
2974
2974
|
}
|
|
2975
|
-
function P(g, A, C, w, q,
|
|
2975
|
+
function P(g, A, C, w, q, M, U, W, G) {
|
|
2976
2976
|
const { nodeName: k } = g.currentTarget;
|
|
2977
|
-
if (k.toUpperCase() === "A" &&
|
|
2977
|
+
if (k.toUpperCase() === "A" && y(g) || g.currentTarget.hasAttribute("download"))
|
|
2978
2978
|
return;
|
|
2979
2979
|
if (!(0, u.isLocalURL)(C)) {
|
|
2980
2980
|
q && (g.preventDefault(), location.replace(C));
|
|
@@ -2982,17 +2982,17 @@ function Pn() {
|
|
|
2982
2982
|
}
|
|
2983
2983
|
g.preventDefault(), (() => {
|
|
2984
2984
|
if (G) {
|
|
2985
|
-
let
|
|
2985
|
+
let j = !1;
|
|
2986
2986
|
if (G({
|
|
2987
2987
|
preventDefault: () => {
|
|
2988
|
-
|
|
2988
|
+
j = !0;
|
|
2989
2989
|
}
|
|
2990
|
-
}),
|
|
2990
|
+
}), j)
|
|
2991
2991
|
return;
|
|
2992
2992
|
}
|
|
2993
2993
|
const S = U ?? !0;
|
|
2994
2994
|
"beforePopState" in A ? A[q ? "replace" : "push"](C, w, {
|
|
2995
|
-
shallow:
|
|
2995
|
+
shallow: M,
|
|
2996
2996
|
locale: W,
|
|
2997
2997
|
scroll: S
|
|
2998
2998
|
}) : A[q ? "replace" : "push"](w || C, {
|
|
@@ -3005,7 +3005,7 @@ function Pn() {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
const O = /* @__PURE__ */ i.default.forwardRef(function(A, C) {
|
|
3007
3007
|
let w;
|
|
3008
|
-
const { href: q, as:
|
|
3008
|
+
const { href: q, as: M, children: U, prefetch: W = null, passHref: G, replace: k, shallow: B, scroll: m, locale: S, onClick: j, onNavigate: x, onMouseEnter: X, onTouchStart: V, legacyBehavior: L = !1, ...Q } = A;
|
|
3009
3009
|
w = U, L && (typeof w == "string" || typeof w == "number") && (w = /* @__PURE__ */ (0, s.jsx)("a", {
|
|
3010
3010
|
children: w
|
|
3011
3011
|
}));
|
|
@@ -3084,23 +3084,23 @@ Open your browser's console to view the Component stack trace.` : "")), "__NEXT_
|
|
|
3084
3084
|
const ne = v(q);
|
|
3085
3085
|
return {
|
|
3086
3086
|
href: ne,
|
|
3087
|
-
as:
|
|
3087
|
+
as: M ? v(M) : ne
|
|
3088
3088
|
};
|
|
3089
3089
|
}
|
|
3090
3090
|
const [H, ee] = (0, t.resolveHref)(z, q, !0);
|
|
3091
3091
|
return {
|
|
3092
3092
|
href: H,
|
|
3093
|
-
as:
|
|
3093
|
+
as: M ? (0, t.resolveHref)(z, M) : ee || H
|
|
3094
3094
|
};
|
|
3095
3095
|
}, [
|
|
3096
3096
|
z,
|
|
3097
3097
|
q,
|
|
3098
|
-
|
|
3098
|
+
M
|
|
3099
3099
|
]), ue = i.default.useRef(J), ce = i.default.useRef($);
|
|
3100
3100
|
let Y;
|
|
3101
3101
|
if (L)
|
|
3102
3102
|
if (process.env.NODE_ENV === "development") {
|
|
3103
|
-
|
|
3103
|
+
j && console.warn(`"onClick" was passed to <Link> with \`href\` of \`${q}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`), X && console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${q}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);
|
|
3104
3104
|
try {
|
|
3105
3105
|
Y = i.default.Children.only(w);
|
|
3106
3106
|
} catch {
|
|
@@ -3135,7 +3135,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3135
3135
|
se
|
|
3136
3136
|
]), Ce = (0, l.useMergedRef)(Ie, Ne);
|
|
3137
3137
|
i.default.useEffect(() => {
|
|
3138
|
-
process.env.NODE_ENV === "production" && z && (!le || !re ||
|
|
3138
|
+
process.env.NODE_ENV === "production" && z && (!le || !re || T(z, J, $, {
|
|
3139
3139
|
locale: S
|
|
3140
3140
|
}));
|
|
3141
3141
|
}, [
|
|
@@ -3156,10 +3156,10 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3156
3156
|
enumerable: !1,
|
|
3157
3157
|
configurable: !0
|
|
3158
3158
|
});
|
|
3159
|
-
!L && typeof
|
|
3159
|
+
!L && typeof j == "function" && j(H), L && Y.props && typeof Y.props.onClick == "function" && Y.props.onClick(H), z && (H.defaultPrevented || P(H, z, J, $, k, B, m, S, x));
|
|
3160
3160
|
},
|
|
3161
3161
|
onMouseEnter(H) {
|
|
3162
|
-
!L && typeof X == "function" && X(H), L && Y.props && typeof Y.props.onMouseEnter == "function" && Y.props.onMouseEnter(H), z &&
|
|
3162
|
+
!L && typeof X == "function" && X(H), L && Y.props && typeof Y.props.onMouseEnter == "function" && Y.props.onMouseEnter(H), z && T(z, J, $, {
|
|
3163
3163
|
locale: S,
|
|
3164
3164
|
priority: !0,
|
|
3165
3165
|
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
@@ -3167,7 +3167,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3167
3167
|
});
|
|
3168
3168
|
},
|
|
3169
3169
|
onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function(ee) {
|
|
3170
|
-
!L && typeof V == "function" && V(ee), L && Y.props && typeof Y.props.onTouchStart == "function" && Y.props.onTouchStart(ee), z &&
|
|
3170
|
+
!L && typeof V == "function" && V(ee), L && Y.props && typeof Y.props.onTouchStart == "function" && Y.props.onTouchStart(ee), z && T(z, J, $, {
|
|
3171
3171
|
locale: S,
|
|
3172
3172
|
priority: !0,
|
|
3173
3173
|
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
@@ -3190,45 +3190,45 @@ Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/code
|
|
|
3190
3190
|
...F,
|
|
3191
3191
|
children: w
|
|
3192
3192
|
});
|
|
3193
|
-
}),
|
|
3193
|
+
}), b = /* @__PURE__ */ (0, i.createContext)({
|
|
3194
3194
|
// We do not support link status in the Pages Router, so we always return false
|
|
3195
3195
|
pending: !1
|
|
3196
|
-
}), N = () => (0, i.useContext)(
|
|
3196
|
+
}), N = () => (0, i.useContext)(b), I = O;
|
|
3197
3197
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), n.exports = e.default);
|
|
3198
3198
|
})(pe, pe.exports)), pe.exports;
|
|
3199
3199
|
}
|
|
3200
3200
|
var Et, Pr;
|
|
3201
|
-
function
|
|
3201
|
+
function Tn() {
|
|
3202
3202
|
return Pr || (Pr = 1, Et = Pn()), Et;
|
|
3203
3203
|
}
|
|
3204
|
-
var
|
|
3205
|
-
const
|
|
3204
|
+
var bn = Tn();
|
|
3205
|
+
const yn = /* @__PURE__ */ Lr(bn), On = "_group_adt8o_48", An = "_main_adt8o_64", Sn = "_dark_adt8o_93", Nn = "_hover_adt8o_97", In = "_active_adt8o_100", Cn = "_padding_adt8o_121", wn = "_icon_adt8o_124", Mn = "_outline_adt8o_158", jn = "_loading_adt8o_1", xn = "_content_adt8o_278", Ln = "_pulse_adt8o_1", K = {
|
|
3206
3206
|
group: On,
|
|
3207
|
-
"justify-center": "_justify-
|
|
3208
|
-
"justify-start": "_justify-
|
|
3209
|
-
"justify-end": "_justify-
|
|
3207
|
+
"justify-center": "_justify-center_adt8o_54",
|
|
3208
|
+
"justify-start": "_justify-start_adt8o_57",
|
|
3209
|
+
"justify-end": "_justify-end_adt8o_60",
|
|
3210
3210
|
main: An,
|
|
3211
|
-
"is-disabled": "_is-
|
|
3211
|
+
"is-disabled": "_is-disabled_adt8o_86",
|
|
3212
3212
|
dark: Sn,
|
|
3213
3213
|
hover: Nn,
|
|
3214
3214
|
active: In,
|
|
3215
|
-
"rounded-lg": "_rounded-
|
|
3216
|
-
"rounded-md": "_rounded-
|
|
3217
|
-
"rounded-sm": "_rounded-
|
|
3218
|
-
"rounded-none": "_rounded-
|
|
3219
|
-
"size-md": "_size-
|
|
3215
|
+
"rounded-lg": "_rounded-lg_adt8o_105",
|
|
3216
|
+
"rounded-md": "_rounded-md_adt8o_108",
|
|
3217
|
+
"rounded-sm": "_rounded-sm_adt8o_111",
|
|
3218
|
+
"rounded-none": "_rounded-none_adt8o_114",
|
|
3219
|
+
"size-md": "_size-md_adt8o_118",
|
|
3220
3220
|
padding: Cn,
|
|
3221
3221
|
icon: wn,
|
|
3222
|
-
"size-sm": "_size-
|
|
3223
|
-
"variant-default": "_variant-
|
|
3224
|
-
outline:
|
|
3225
|
-
"variant-text": "_variant-
|
|
3226
|
-
"variant-custom": "_variant-
|
|
3227
|
-
"is-loading": "_is-
|
|
3228
|
-
"is-skeleton": "_is-
|
|
3229
|
-
loading:
|
|
3230
|
-
"loading-dark": "_loading-
|
|
3231
|
-
content:
|
|
3222
|
+
"size-sm": "_size-sm_adt8o_131",
|
|
3223
|
+
"variant-default": "_variant-default_adt8o_147",
|
|
3224
|
+
outline: Mn,
|
|
3225
|
+
"variant-text": "_variant-text_adt8o_192",
|
|
3226
|
+
"variant-custom": "_variant-custom_adt8o_210",
|
|
3227
|
+
"is-loading": "_is-loading_adt8o_248",
|
|
3228
|
+
"is-skeleton": "_is-skeleton_adt8o_248",
|
|
3229
|
+
loading: jn,
|
|
3230
|
+
"loading-dark": "_loading-dark_adt8o_1",
|
|
3231
|
+
content: xn,
|
|
3232
3232
|
pulse: Ln
|
|
3233
3233
|
};
|
|
3234
3234
|
function Dn(n) {
|
|
@@ -3277,10 +3277,10 @@ const Fn = ({
|
|
|
3277
3277
|
className: p = "",
|
|
3278
3278
|
...d
|
|
3279
3279
|
}) => {
|
|
3280
|
-
const
|
|
3280
|
+
const T = /* @__PURE__ */ te.jsx(te.Fragment, { children: n || e }), y = i === "primary" ? "custom" : i, P = i === "primary" ? "#e61919" : t, v = yr(
|
|
3281
3281
|
K.main,
|
|
3282
3282
|
K[`size-${s}`],
|
|
3283
|
-
K[`variant-${
|
|
3283
|
+
K[`variant-${y}`],
|
|
3284
3284
|
u && K.outline,
|
|
3285
3285
|
r && K[`rounded-${r}`],
|
|
3286
3286
|
o && K.icon,
|
|
@@ -3293,8 +3293,8 @@ const Fn = ({
|
|
|
3293
3293
|
p
|
|
3294
3294
|
), O = P ? {
|
|
3295
3295
|
"--btn-color": (() => {
|
|
3296
|
-
const { l:
|
|
3297
|
-
return `oklch(${
|
|
3296
|
+
const { l: b, c: N, h: I } = Pt(P);
|
|
3297
|
+
return `oklch(${b}% ${N} ${I})`;
|
|
3298
3298
|
})(),
|
|
3299
3299
|
"--btn-hover-color": qn(P),
|
|
3300
3300
|
"--btn-text": kn(P)
|
|
@@ -3305,7 +3305,7 @@ const Fn = ({
|
|
|
3305
3305
|
className: v,
|
|
3306
3306
|
role: "button",
|
|
3307
3307
|
"aria-disabled": "true",
|
|
3308
|
-
children:
|
|
3308
|
+
children: T
|
|
3309
3309
|
}
|
|
3310
3310
|
) : c === "_blank" ? /* @__PURE__ */ te.jsx(
|
|
3311
3311
|
"a",
|
|
@@ -3314,14 +3314,14 @@ const Fn = ({
|
|
|
3314
3314
|
target: "_blank",
|
|
3315
3315
|
rel: "noopener noreferrer",
|
|
3316
3316
|
className: v,
|
|
3317
|
-
children:
|
|
3317
|
+
children: T
|
|
3318
3318
|
}
|
|
3319
3319
|
) : /* @__PURE__ */ te.jsx(
|
|
3320
|
-
|
|
3320
|
+
yn,
|
|
3321
3321
|
{
|
|
3322
3322
|
href: a,
|
|
3323
3323
|
className: v,
|
|
3324
|
-
children:
|
|
3324
|
+
children: T
|
|
3325
3325
|
}
|
|
3326
3326
|
) : /* @__PURE__ */ te.jsx(
|
|
3327
3327
|
"button",
|
|
@@ -3329,13 +3329,13 @@ const Fn = ({
|
|
|
3329
3329
|
className: v,
|
|
3330
3330
|
style: O,
|
|
3331
3331
|
type: "button",
|
|
3332
|
-
onClick: (
|
|
3333
|
-
E || d.onClick && d.onClick(
|
|
3332
|
+
onClick: (b) => {
|
|
3333
|
+
E || d.onClick && d.onClick(b);
|
|
3334
3334
|
},
|
|
3335
|
-
children:
|
|
3335
|
+
children: T
|
|
3336
3336
|
}
|
|
3337
3337
|
);
|
|
3338
|
-
}, Hn = ({ children: n, className: e, justify: a }) => /* @__PURE__ */ te.jsx("div", { className:
|
|
3338
|
+
}, Hn = ({ children: n, className: e, justify: a }) => /* @__PURE__ */ te.jsx("div", { className: yr(K.group, e, a && K[`justify-${a}`]), children: n });
|
|
3339
3339
|
export {
|
|
3340
3340
|
Fn as Button,
|
|
3341
3341
|
Hn as ButtonGroup,
|