@eliseubatista99/react-scaffold-core 0.2.2 → 0.2.4
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.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as M from "react";
|
|
2
|
-
import V, { forwardRef as Cn, useContext as Yt, useEffect as Ir, useState as Ar, useMemo as Hr, useCallback as
|
|
2
|
+
import V, { forwardRef as Cn, useContext as Yt, useEffect as Ir, useState as Ar, useMemo as Hr, useCallback as ve, useRef as Pn } from "react";
|
|
3
3
|
var rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function Vt(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -81,7 +81,7 @@ function _n() {
|
|
|
81
81
|
switch (n) {
|
|
82
82
|
case p:
|
|
83
83
|
return "Fragment";
|
|
84
|
-
case
|
|
84
|
+
case k:
|
|
85
85
|
return "Profiler";
|
|
86
86
|
case I:
|
|
87
87
|
return "StrictMode";
|
|
@@ -96,7 +96,7 @@ function _n() {
|
|
|
96
96
|
switch (typeof n.tag == "number" && console.error(
|
|
97
97
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
98
98
|
), n.$$typeof) {
|
|
99
|
-
case
|
|
99
|
+
case C:
|
|
100
100
|
return "Portal";
|
|
101
101
|
case U:
|
|
102
102
|
return (n.displayName || "Context") + ".Provider";
|
|
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
264
|
function w(n) {
|
|
265
265
|
typeof n == "object" && n !== null && n.$$typeof === L && n._store && (n._store.validated = 1);
|
|
266
266
|
}
|
|
267
|
-
var x = V, L = Symbol.for("react.transitional.element"),
|
|
267
|
+
var x = V, L = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), F = Symbol.for("react.consumer"), U = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), y = Symbol.for("react.activity"), h = Symbol.for("react.client.reference"), P = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, _ = Array.isArray, T = console.createTask ? console.createTask : function() {
|
|
268
268
|
return null;
|
|
269
269
|
};
|
|
270
270
|
x = {
|
|
@@ -374,14 +374,14 @@ var _t, or;
|
|
|
374
374
|
function Ln() {
|
|
375
375
|
if (or) return _t;
|
|
376
376
|
or = 1;
|
|
377
|
-
var e = "Expected a function", t = NaN, r = "[object Symbol]", i = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, d = /^0o[0-7]+$/i, l = parseInt, u = typeof rt == "object" && rt && rt.Object === Object && rt, c = typeof self == "object" && self && self.Object === Object && self, v = u || c || Function("return this")(), w = Object.prototype, x = w.toString, L = Math.max,
|
|
377
|
+
var e = "Expected a function", t = NaN, r = "[object Symbol]", i = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, d = /^0o[0-7]+$/i, l = parseInt, u = typeof rt == "object" && rt && rt.Object === Object && rt, c = typeof self == "object" && self && self.Object === Object && self, v = u || c || Function("return this")(), w = Object.prototype, x = w.toString, L = Math.max, C = Math.min, p = function() {
|
|
378
378
|
return v.Date.now();
|
|
379
379
|
};
|
|
380
380
|
function I(g, b, S) {
|
|
381
381
|
var R, y, h, P, A, _, T = 0, E = !1, j = !1, o = !0;
|
|
382
382
|
if (typeof g != "function")
|
|
383
383
|
throw new TypeError(e);
|
|
384
|
-
b = q(b) || 0,
|
|
384
|
+
b = q(b) || 0, k(S) && (E = !!S.leading, j = "maxWait" in S, h = j ? L(q(S.maxWait) || 0, b) : h, o = "trailing" in S ? !!S.trailing : o);
|
|
385
385
|
function H(W) {
|
|
386
386
|
var B = R, K = y;
|
|
387
387
|
return R = y = void 0, T = W, P = g.apply(K, B), P;
|
|
@@ -391,7 +391,7 @@ function Ln() {
|
|
|
391
391
|
}
|
|
392
392
|
function n(W) {
|
|
393
393
|
var B = W - _, K = W - T, G = b - B;
|
|
394
|
-
return j ?
|
|
394
|
+
return j ? C(G, h - K) : G;
|
|
395
395
|
}
|
|
396
396
|
function f(W) {
|
|
397
397
|
var B = W - _, K = W - T;
|
|
@@ -424,7 +424,7 @@ function Ln() {
|
|
|
424
424
|
}
|
|
425
425
|
return N.cancel = D, N.flush = z, N;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function k(g) {
|
|
428
428
|
var b = typeof g;
|
|
429
429
|
return !!g && (b == "object" || b == "function");
|
|
430
430
|
}
|
|
@@ -439,9 +439,9 @@ function Ln() {
|
|
|
439
439
|
return g;
|
|
440
440
|
if (U(g))
|
|
441
441
|
return t;
|
|
442
|
-
if (
|
|
442
|
+
if (k(g)) {
|
|
443
443
|
var b = typeof g.valueOf == "function" ? g.valueOf() : g;
|
|
444
|
-
g =
|
|
444
|
+
g = k(b) ? b + "" : b;
|
|
445
445
|
}
|
|
446
446
|
if (typeof g != "string")
|
|
447
447
|
return g === 0 ? g : +g;
|
|
@@ -639,16 +639,16 @@ function Ke() {
|
|
|
639
639
|
return f;
|
|
640
640
|
};
|
|
641
641
|
var x = Y.lazyStartIndex = function(n) {
|
|
642
|
-
return n.currentSlide -
|
|
642
|
+
return n.currentSlide - C(n);
|
|
643
643
|
}, L = Y.lazyEndIndex = function(n) {
|
|
644
644
|
return n.currentSlide + p(n);
|
|
645
|
-
},
|
|
645
|
+
}, C = Y.lazySlidesOnLeft = function(n) {
|
|
646
646
|
return n.centerMode ? Math.floor(n.slidesToShow / 2) + (parseInt(n.centerPadding) > 0 ? 1 : 0) : 0;
|
|
647
647
|
}, p = Y.lazySlidesOnRight = function(n) {
|
|
648
648
|
return n.centerMode ? Math.floor((n.slidesToShow - 1) / 2) + 1 + (parseInt(n.centerPadding) > 0 ? 1 : 0) : n.slidesToShow;
|
|
649
649
|
}, I = Y.getWidth = function(n) {
|
|
650
650
|
return n && n.offsetWidth || 0;
|
|
651
|
-
},
|
|
651
|
+
}, k = Y.getHeight = function(n) {
|
|
652
652
|
return n && n.offsetHeight || 0;
|
|
653
653
|
}, F = Y.getSwipeDirection = function(n) {
|
|
654
654
|
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, O, $, D, z;
|
|
@@ -670,7 +670,7 @@ function Ke() {
|
|
|
670
670
|
var W = n.centerMode && parseInt(n.centerPadding) * 2;
|
|
671
671
|
typeof n.centerPadding == "string" && n.centerPadding.slice(-1) === "%" && (W *= $ / 100), N = Math.ceil(($ - W) / n.slidesToShow);
|
|
672
672
|
}
|
|
673
|
-
var B = O &&
|
|
673
|
+
var B = O && k(O.querySelector('[data-index="0"]')), K = B * n.slidesToShow, G = n.currentSlide === void 0 ? n.initialSlide : n.currentSlide;
|
|
674
674
|
n.rtl && n.currentSlide === void 0 && (G = f - 1 - n.initialSlide);
|
|
675
675
|
var J = n.lazyLoadedList || [], te = w(s(s({}, n), {}, {
|
|
676
676
|
currentSlide: G,
|
|
@@ -772,7 +772,7 @@ function Ke() {
|
|
|
772
772
|
if (!O) {
|
|
773
773
|
if ($) return v(n);
|
|
774
774
|
D && z && N && v(n);
|
|
775
|
-
var pe,
|
|
775
|
+
var pe, Re = {}, tt = h(f);
|
|
776
776
|
Q.curX = n.touches ? n.touches[0].pageX : n.clientX, Q.curY = n.touches ? n.touches[0].pageY : n.clientY, Q.swipeLength = Math.round(Math.sqrt(Math.pow(Q.curX - Q.startX, 2)));
|
|
777
777
|
var tr = Math.round(Math.sqrt(Math.pow(Q.curY - Q.startY, 2)));
|
|
778
778
|
if (!N && !Z && tr > 10)
|
|
@@ -782,14 +782,14 @@ function Ke() {
|
|
|
782
782
|
N && (Q.swipeLength = tr);
|
|
783
783
|
var Ie = (W ? -1 : 1) * (Q.curX > Q.startX ? 1 : -1);
|
|
784
784
|
N && (Ie = Q.curY > Q.startY ? 1 : -1);
|
|
785
|
-
var kn = Math.ceil(ee / ie),
|
|
786
|
-
return le || (B === 0 && (
|
|
785
|
+
var kn = Math.ceil(ee / ie), Pe = F(f.touchObject, N), Ae = Q.swipeLength;
|
|
786
|
+
return le || (B === 0 && (Pe === "right" || Pe === "down") || B + 1 >= kn && (Pe === "left" || Pe === "up") || !U(f) && (Pe === "left" || Pe === "up")) && (Ae = Q.swipeLength * K, G === !1 && J && (J(Pe), Re.edgeDragged = !0)), !te && oe && (oe(Pe), Re.swiped = !0), D ? pe = tt + Ae * (ue / ce) * Ie : W ? pe = tt - Ae * Ie : pe = tt + Ae * Ie, N && (pe = tt + Ae * Ie), Re = s(s({}, Re), {}, {
|
|
787
787
|
touchObject: Q,
|
|
788
788
|
swipeLeft: pe,
|
|
789
789
|
trackStyle: R(s(s({}, f), {}, {
|
|
790
790
|
left: pe
|
|
791
791
|
}))
|
|
792
|
-
}), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (
|
|
792
|
+
}), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (Re.swiping = !0, v(n)), Re;
|
|
793
793
|
}
|
|
794
794
|
}, Y.swipeEnd = function(n, f) {
|
|
795
795
|
var O = f.dragging, $ = f.swipe, D = f.touchObject, z = f.listWidth, N = f.touchThreshold, W = f.verticalSwiping, B = f.listHeight, K = f.swipeToSlide, G = f.scrolling, J = f.onSwipe, te = f.targetSlide, Z = f.currentSlide, ee = f.infinite;
|
|
@@ -853,7 +853,7 @@ function Ke() {
|
|
|
853
853
|
var O, $ = n.listRef, D = $.querySelectorAll && $.querySelectorAll(".slick-slide") || [];
|
|
854
854
|
if (Array.from(D).every(function(W) {
|
|
855
855
|
if (n.vertical) {
|
|
856
|
-
if (W.offsetTop +
|
|
856
|
+
if (W.offsetTop + k(W) / 2 > n.swipeLeft * -1)
|
|
857
857
|
return O = W, !1;
|
|
858
858
|
} else if (W.offsetLeft - f + I(W) / 2 > n.swipeLeft * -1)
|
|
859
859
|
return O = W, !1;
|
|
@@ -1000,7 +1000,7 @@ function Dn() {
|
|
|
1000
1000
|
}, v(y, h);
|
|
1001
1001
|
}
|
|
1002
1002
|
function w(y) {
|
|
1003
|
-
var h =
|
|
1003
|
+
var h = C();
|
|
1004
1004
|
return function() {
|
|
1005
1005
|
var P, A = p(y);
|
|
1006
1006
|
if (h) {
|
|
@@ -1019,13 +1019,13 @@ function Dn() {
|
|
|
1019
1019
|
if (y === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1020
1020
|
return y;
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function C() {
|
|
1023
1023
|
try {
|
|
1024
1024
|
var y = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1025
1025
|
}));
|
|
1026
1026
|
} catch {
|
|
1027
1027
|
}
|
|
1028
|
-
return (
|
|
1028
|
+
return (C = function() {
|
|
1029
1029
|
return !!y;
|
|
1030
1030
|
})();
|
|
1031
1031
|
}
|
|
@@ -1044,7 +1044,7 @@ function Dn() {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
return P;
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function k(y) {
|
|
1048
1048
|
for (var h = 1; h < arguments.length; h++) {
|
|
1049
1049
|
var P = arguments[h] != null ? arguments[h] : {};
|
|
1050
1050
|
h % 2 ? I(Object(P), !0).forEach(function(A) {
|
|
@@ -1101,9 +1101,9 @@ function Dn() {
|
|
|
1101
1101
|
currentSlide: h.currentSlide
|
|
1102
1102
|
};
|
|
1103
1103
|
!h.lazyLoad || h.lazyLoad && h.lazyLoadedList.indexOf(m) >= 0 ? n = H : n = /* @__PURE__ */ e.default.createElement("div", null);
|
|
1104
|
-
var O = b(
|
|
1104
|
+
var O = b(k(k({}, h), {}, {
|
|
1105
1105
|
index: m
|
|
1106
|
-
})), $ = n.props.className || "", D = g(
|
|
1106
|
+
})), $ = n.props.className || "", D = g(k(k({}, h), {}, {
|
|
1107
1107
|
index: m
|
|
1108
1108
|
}));
|
|
1109
1109
|
if (A.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
@@ -1112,7 +1112,7 @@ function Dn() {
|
|
|
1112
1112
|
className: (0, t.default)(D, $),
|
|
1113
1113
|
tabIndex: "-1",
|
|
1114
1114
|
"aria-hidden": !D["slick-active"],
|
|
1115
|
-
style:
|
|
1115
|
+
style: k(k({
|
|
1116
1116
|
outline: "none"
|
|
1117
1117
|
}, n.props.style || {}), O),
|
|
1118
1118
|
onClick: function(W) {
|
|
@@ -1120,7 +1120,7 @@ function Dn() {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
})), h.infinite && E > 1 && h.fade === !1 && !h.unslick) {
|
|
1122
1122
|
var z = E - m;
|
|
1123
|
-
z <= (0, r.getPreClones)(h) && (P = -z, P >= j && (n = H), D = g(
|
|
1123
|
+
z <= (0, r.getPreClones)(h) && (P = -z, P >= j && (n = H), D = g(k(k({}, h), {}, {
|
|
1124
1124
|
index: P
|
|
1125
1125
|
})), _.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1126
1126
|
key: "precloned" + S(n, P),
|
|
@@ -1128,11 +1128,11 @@ function Dn() {
|
|
|
1128
1128
|
tabIndex: "-1",
|
|
1129
1129
|
className: (0, t.default)(D, $),
|
|
1130
1130
|
"aria-hidden": !D["slick-active"],
|
|
1131
|
-
style:
|
|
1131
|
+
style: k(k({}, n.props.style || {}), O),
|
|
1132
1132
|
onClick: function(W) {
|
|
1133
1133
|
n.props && n.props.onClick && n.props.onClick(W), h.focusOnSelect && h.focusOnSelect(f);
|
|
1134
1134
|
}
|
|
1135
|
-
}))), m < (0, r.getPostClones)(h) && (P = E + m, P < o && (n = H), D = g(
|
|
1135
|
+
}))), m < (0, r.getPostClones)(h) && (P = E + m, P < o && (n = H), D = g(k(k({}, h), {}, {
|
|
1136
1136
|
index: P
|
|
1137
1137
|
})), T.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1138
1138
|
key: "postcloned" + S(n, P),
|
|
@@ -1140,7 +1140,7 @@ function Dn() {
|
|
|
1140
1140
|
tabIndex: "-1",
|
|
1141
1141
|
className: (0, t.default)(D, $),
|
|
1142
1142
|
"aria-hidden": !D["slick-active"],
|
|
1143
|
-
style:
|
|
1143
|
+
style: k(k({}, n.props.style || {}), O),
|
|
1144
1144
|
onClick: function(W) {
|
|
1145
1145
|
n.props && n.props.onClick && n.props.onClick(W), h.focusOnSelect && h.focusOnSelect(f);
|
|
1146
1146
|
}
|
|
@@ -1248,12 +1248,12 @@ function Mn() {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
function L(g, b) {
|
|
1250
1250
|
if (typeof b != "function" && b !== null) throw new TypeError("Super expression must either be null or a function");
|
|
1251
|
-
g.prototype = Object.create(b && b.prototype, { constructor: { value: g, writable: !0, configurable: !0 } }), Object.defineProperty(g, "prototype", { writable: !1 }), b &&
|
|
1251
|
+
g.prototype = Object.create(b && b.prototype, { constructor: { value: g, writable: !0, configurable: !0 } }), Object.defineProperty(g, "prototype", { writable: !1 }), b && C(g, b);
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return
|
|
1253
|
+
function C(g, b) {
|
|
1254
|
+
return C = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(S, R) {
|
|
1255
1255
|
return S.__proto__ = R, S;
|
|
1256
|
-
},
|
|
1256
|
+
}, C(g, b);
|
|
1257
1257
|
}
|
|
1258
1258
|
function p(g) {
|
|
1259
1259
|
var b = F();
|
|
@@ -1269,9 +1269,9 @@ function Mn() {
|
|
|
1269
1269
|
function I(g, b) {
|
|
1270
1270
|
if (b && (e(b) == "object" || typeof b == "function")) return b;
|
|
1271
1271
|
if (b !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1272
|
-
return
|
|
1272
|
+
return k(g);
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function k(g) {
|
|
1275
1275
|
if (g === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1276
1276
|
return g;
|
|
1277
1277
|
}
|
|
@@ -1340,9 +1340,9 @@ function Mn() {
|
|
|
1340
1340
|
}]), S;
|
|
1341
1341
|
}(t.default.PureComponent), We;
|
|
1342
1342
|
}
|
|
1343
|
-
var
|
|
1343
|
+
var _e = {}, dr;
|
|
1344
1344
|
function $n() {
|
|
1345
|
-
if (dr) return
|
|
1345
|
+
if (dr) return _e;
|
|
1346
1346
|
dr = 1;
|
|
1347
1347
|
function e(g) {
|
|
1348
1348
|
"@babel/helpers - typeof";
|
|
@@ -1352,9 +1352,9 @@ function $n() {
|
|
|
1352
1352
|
return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
|
|
1353
1353
|
}, e(g);
|
|
1354
1354
|
}
|
|
1355
|
-
Object.defineProperty(
|
|
1355
|
+
Object.defineProperty(_e, "__esModule", {
|
|
1356
1356
|
value: !0
|
|
1357
|
-
}),
|
|
1357
|
+
}), _e.PrevArrow = _e.NextArrow = void 0;
|
|
1358
1358
|
var t = a(V), r = a(yt()), i = Ke();
|
|
1359
1359
|
function a(g) {
|
|
1360
1360
|
return g && g.__esModule ? g : { default: g };
|
|
@@ -1419,7 +1419,7 @@ function $n() {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
return String(g);
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function C(g, b) {
|
|
1423
1423
|
if (typeof b != "function" && b !== null) throw new TypeError("Super expression must either be null or a function");
|
|
1424
1424
|
g.prototype = Object.create(b && b.prototype, { constructor: { value: g, writable: !0, configurable: !0 } }), Object.defineProperty(g, "prototype", { writable: !1 }), b && p(g, b);
|
|
1425
1425
|
}
|
|
@@ -1436,10 +1436,10 @@ function $n() {
|
|
|
1436
1436
|
var y = q(this).constructor;
|
|
1437
1437
|
S = Reflect.construct(R, arguments, y);
|
|
1438
1438
|
} else S = R.apply(this, arguments);
|
|
1439
|
-
return
|
|
1439
|
+
return k(this, S);
|
|
1440
1440
|
};
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function k(g, b) {
|
|
1443
1443
|
if (b && (e(b) == "object" || typeof b == "function")) return b;
|
|
1444
1444
|
if (b !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1445
1445
|
return F(g);
|
|
@@ -1463,8 +1463,8 @@ function $n() {
|
|
|
1463
1463
|
return b.__proto__ || Object.getPrototypeOf(b);
|
|
1464
1464
|
}, q(g);
|
|
1465
1465
|
}
|
|
1466
|
-
return
|
|
1467
|
-
|
|
1466
|
+
return _e.PrevArrow = /* @__PURE__ */ function(g) {
|
|
1467
|
+
C(S, g);
|
|
1468
1468
|
var b = I(S);
|
|
1469
1469
|
function S() {
|
|
1470
1470
|
return c(this, S), b.apply(this, arguments);
|
|
@@ -1502,8 +1502,8 @@ function $n() {
|
|
|
1502
1502
|
}, P), " ", "Previous"), _;
|
|
1503
1503
|
}
|
|
1504
1504
|
}]), S;
|
|
1505
|
-
}(t.default.PureComponent),
|
|
1506
|
-
|
|
1505
|
+
}(t.default.PureComponent), _e.NextArrow = /* @__PURE__ */ function(g) {
|
|
1506
|
+
C(S, g);
|
|
1507
1507
|
var b = I(S);
|
|
1508
1508
|
function S() {
|
|
1509
1509
|
return c(this, S), b.apply(this, arguments);
|
|
@@ -1541,7 +1541,7 @@ function $n() {
|
|
|
1541
1541
|
}, P), " ", "Next"), _;
|
|
1542
1542
|
}
|
|
1543
1543
|
}]), S;
|
|
1544
|
-
}(t.default.PureComponent),
|
|
1544
|
+
}(t.default.PureComponent), _e;
|
|
1545
1545
|
}
|
|
1546
1546
|
var Nr = function() {
|
|
1547
1547
|
if (typeof Map < "u")
|
|
@@ -1882,7 +1882,7 @@ function ri() {
|
|
|
1882
1882
|
}
|
|
1883
1883
|
return E;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function C(_, T) {
|
|
1886
1886
|
var E = Object.keys(_);
|
|
1887
1887
|
if (Object.getOwnPropertySymbols) {
|
|
1888
1888
|
var j = Object.getOwnPropertySymbols(_);
|
|
@@ -1895,9 +1895,9 @@ function ri() {
|
|
|
1895
1895
|
function p(_) {
|
|
1896
1896
|
for (var T = 1; T < arguments.length; T++) {
|
|
1897
1897
|
var E = arguments[T] != null ? arguments[T] : {};
|
|
1898
|
-
T % 2 ?
|
|
1898
|
+
T % 2 ? C(Object(E), !0).forEach(function(j) {
|
|
1899
1899
|
h(_, j, E[j]);
|
|
1900
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_, Object.getOwnPropertyDescriptors(E)) :
|
|
1900
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_, Object.getOwnPropertyDescriptors(E)) : C(Object(E)).forEach(function(j) {
|
|
1901
1901
|
Object.defineProperty(_, j, Object.getOwnPropertyDescriptor(E, j));
|
|
1902
1902
|
});
|
|
1903
1903
|
}
|
|
@@ -1906,14 +1906,14 @@ function ri() {
|
|
|
1906
1906
|
function I(_, T) {
|
|
1907
1907
|
if (!(_ instanceof T)) throw new TypeError("Cannot call a class as a function");
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1909
|
+
function k(_, T) {
|
|
1910
1910
|
for (var E = 0; E < T.length; E++) {
|
|
1911
1911
|
var j = T[E];
|
|
1912
1912
|
j.enumerable = j.enumerable || !1, j.configurable = !0, "value" in j && (j.writable = !0), Object.defineProperty(_, P(j.key), j);
|
|
1913
1913
|
}
|
|
1914
1914
|
}
|
|
1915
1915
|
function F(_, T, E) {
|
|
1916
|
-
return T &&
|
|
1916
|
+
return T && k(_.prototype, T), Object.defineProperty(_, "prototype", { writable: !1 }), _;
|
|
1917
1917
|
}
|
|
1918
1918
|
function U(_, T) {
|
|
1919
1919
|
if (typeof T != "function" && T !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -2461,7 +2461,7 @@ function ai() {
|
|
|
2461
2461
|
function L(R, y, h) {
|
|
2462
2462
|
return y && x(R.prototype, y), Object.defineProperty(R, "prototype", { writable: !1 }), R;
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function C(R, y) {
|
|
2465
2465
|
if (typeof y != "function" && y !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2466
2466
|
R.prototype = Object.create(y && y.prototype, { constructor: { value: R, writable: !0, configurable: !0 } }), Object.defineProperty(R, "prototype", { writable: !1 }), y && p(R, y);
|
|
2467
2467
|
}
|
|
@@ -2478,10 +2478,10 @@ function ai() {
|
|
|
2478
2478
|
var A = q(this).constructor;
|
|
2479
2479
|
h = Reflect.construct(P, arguments, A);
|
|
2480
2480
|
} else h = P.apply(this, arguments);
|
|
2481
|
-
return
|
|
2481
|
+
return k(this, h);
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2484
|
+
function k(R, y) {
|
|
2485
2485
|
if (y && (l(y) == "object" || typeof y == "function")) return y;
|
|
2486
2486
|
if (y !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2487
2487
|
return F(R);
|
|
@@ -2523,7 +2523,7 @@ function ai() {
|
|
|
2523
2523
|
return (y === "string" ? String : Number)(R);
|
|
2524
2524
|
}
|
|
2525
2525
|
e.default = /* @__PURE__ */ function(R) {
|
|
2526
|
-
|
|
2526
|
+
C(h, R);
|
|
2527
2527
|
var y = I(h);
|
|
2528
2528
|
function h(P) {
|
|
2529
2529
|
var A;
|
|
@@ -2735,7 +2735,7 @@ function fe(e, t) {
|
|
|
2735
2735
|
function qe(e, t, r) {
|
|
2736
2736
|
return e.slice(t, r);
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function ye(e) {
|
|
2739
2739
|
return e.length;
|
|
2740
2740
|
}
|
|
2741
2741
|
function Xt(e) {
|
|
@@ -2763,7 +2763,7 @@ function wi() {
|
|
|
2763
2763
|
function me() {
|
|
2764
2764
|
return se = he < Xr ? fe(De, he++) : 0, Le++, se === 10 && (Le = 1, St++), se;
|
|
2765
2765
|
}
|
|
2766
|
-
function
|
|
2766
|
+
function we() {
|
|
2767
2767
|
return fe(De, he);
|
|
2768
2768
|
}
|
|
2769
2769
|
function ot() {
|
|
@@ -2811,7 +2811,7 @@ function Be(e) {
|
|
|
2811
2811
|
return 0;
|
|
2812
2812
|
}
|
|
2813
2813
|
function Gr(e) {
|
|
2814
|
-
return St = Le = 1, Xr =
|
|
2814
|
+
return St = Le = 1, Xr = ye(De = e), he = 0, [];
|
|
2815
2815
|
}
|
|
2816
2816
|
function Kr(e) {
|
|
2817
2817
|
return De = "", e;
|
|
@@ -2820,14 +2820,14 @@ function st(e) {
|
|
|
2820
2820
|
return Br(Je(he - 1, Nt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
2821
2821
|
}
|
|
2822
2822
|
function Si(e) {
|
|
2823
|
-
for (; (se =
|
|
2823
|
+
for (; (se = we()) && se < 33; )
|
|
2824
2824
|
me();
|
|
2825
2825
|
return Be(e) > 2 || Be(se) > 3 ? "" : " ";
|
|
2826
2826
|
}
|
|
2827
2827
|
function xi(e, t) {
|
|
2828
2828
|
for (; --t && me() && !(se < 48 || se > 102 || se > 57 && se < 65 || se > 70 && se < 97); )
|
|
2829
2829
|
;
|
|
2830
|
-
return Je(e, ot() + (t < 6 &&
|
|
2830
|
+
return Je(e, ot() + (t < 6 && we() == 32 && me() == 32));
|
|
2831
2831
|
}
|
|
2832
2832
|
function Nt(e) {
|
|
2833
2833
|
for (; me(); )
|
|
@@ -2853,12 +2853,12 @@ function Nt(e) {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
function Oi(e, t) {
|
|
2855
2855
|
for (; me() && e + se !== 57; )
|
|
2856
|
-
if (e + se === 84 &&
|
|
2856
|
+
if (e + se === 84 && we() === 47)
|
|
2857
2857
|
break;
|
|
2858
2858
|
return "/*" + Je(t, he - 1) + "*" + wt(e === 47 ? e : me());
|
|
2859
2859
|
}
|
|
2860
2860
|
function ki(e) {
|
|
2861
|
-
for (; !Be(
|
|
2861
|
+
for (; !Be(we()); )
|
|
2862
2862
|
me();
|
|
2863
2863
|
return Je(e, he);
|
|
2864
2864
|
}
|
|
@@ -2866,12 +2866,12 @@ function Ci(e) {
|
|
|
2866
2866
|
return Kr(lt("", null, null, null, [""], e = Gr(e), 0, [0], e));
|
|
2867
2867
|
}
|
|
2868
2868
|
function lt(e, t, r, i, a, s, d, l, u) {
|
|
2869
|
-
for (var c = 0, v = 0, w = d, x = 0, L = 0,
|
|
2870
|
-
switch (
|
|
2869
|
+
for (var c = 0, v = 0, w = d, x = 0, L = 0, C = 0, p = 1, I = 1, k = 1, F = 0, U = "", q = a, g = s, b = i, S = U; I; )
|
|
2870
|
+
switch (C = F, F = me()) {
|
|
2871
2871
|
// (
|
|
2872
2872
|
case 40:
|
|
2873
|
-
if (
|
|
2874
|
-
zt(S += ne(st(F), "&", "&\f"), "&\f") != -1 && (
|
|
2873
|
+
if (C != 108 && fe(S, w - 1) == 58) {
|
|
2874
|
+
zt(S += ne(st(F), "&", "&\f"), "&\f") != -1 && (k = -1);
|
|
2875
2875
|
break;
|
|
2876
2876
|
}
|
|
2877
2877
|
// " ' [
|
|
@@ -2885,7 +2885,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2885
2885
|
case 10:
|
|
2886
2886
|
case 13:
|
|
2887
2887
|
case 32:
|
|
2888
|
-
S += Si(
|
|
2888
|
+
S += Si(C);
|
|
2889
2889
|
break;
|
|
2890
2890
|
// \
|
|
2891
2891
|
case 92:
|
|
@@ -2893,7 +2893,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2893
2893
|
continue;
|
|
2894
2894
|
// /
|
|
2895
2895
|
case 47:
|
|
2896
|
-
switch (
|
|
2896
|
+
switch (we()) {
|
|
2897
2897
|
case 42:
|
|
2898
2898
|
case 47:
|
|
2899
2899
|
it(Pi(Oi(me(), ot()), t, r), u);
|
|
@@ -2904,7 +2904,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2904
2904
|
break;
|
|
2905
2905
|
// {
|
|
2906
2906
|
case 123 * p:
|
|
2907
|
-
l[c++] =
|
|
2907
|
+
l[c++] = ye(S) * k;
|
|
2908
2908
|
// } ; \0
|
|
2909
2909
|
case 125 * p:
|
|
2910
2910
|
case 59:
|
|
@@ -2916,7 +2916,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2916
2916
|
I = 0;
|
|
2917
2917
|
// ;
|
|
2918
2918
|
case 59 + v:
|
|
2919
|
-
|
|
2919
|
+
k == -1 && (S = ne(S, /\f/g, "")), L > 0 && ye(S) - w && it(L > 32 ? wr(S + ";", i, r, w - 1) : wr(ne(S, " ", "") + ";", i, r, w - 2), u);
|
|
2920
2920
|
break;
|
|
2921
2921
|
// @ ;
|
|
2922
2922
|
case 59:
|
|
@@ -2939,11 +2939,11 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2939
2939
|
lt(S, b, b, b, [""], g, 0, l, g);
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
|
-
c = v = L = 0, p =
|
|
2942
|
+
c = v = L = 0, p = k = 1, U = S = "", w = d;
|
|
2943
2943
|
break;
|
|
2944
2944
|
// :
|
|
2945
2945
|
case 58:
|
|
2946
|
-
w = 1 +
|
|
2946
|
+
w = 1 + ye(S), L = C;
|
|
2947
2947
|
default:
|
|
2948
2948
|
if (p < 1) {
|
|
2949
2949
|
if (F == 123)
|
|
@@ -2954,27 +2954,27 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2954
2954
|
switch (S += wt(F), F * p) {
|
|
2955
2955
|
// &
|
|
2956
2956
|
case 38:
|
|
2957
|
-
|
|
2957
|
+
k = v > 0 ? 1 : (S += "\f", -1);
|
|
2958
2958
|
break;
|
|
2959
2959
|
// ,
|
|
2960
2960
|
case 44:
|
|
2961
|
-
l[c++] = (
|
|
2961
|
+
l[c++] = (ye(S) - 1) * k, k = 1;
|
|
2962
2962
|
break;
|
|
2963
2963
|
// @
|
|
2964
2964
|
case 64:
|
|
2965
|
-
|
|
2965
|
+
we() === 45 && (S += st(me())), x = we(), v = w = ye(U = S += ki(ot())), F++;
|
|
2966
2966
|
break;
|
|
2967
2967
|
// -
|
|
2968
2968
|
case 45:
|
|
2969
|
-
|
|
2969
|
+
C === 45 && ye(S) == 2 && (p = 0);
|
|
2970
2970
|
}
|
|
2971
2971
|
}
|
|
2972
2972
|
return s;
|
|
2973
2973
|
}
|
|
2974
2974
|
function br(e, t, r, i, a, s, d, l, u, c, v) {
|
|
2975
|
-
for (var w = a - 1, x = a === 0 ? s : [""], L = Xt(x),
|
|
2976
|
-
for (var
|
|
2977
|
-
(U = Br(p > 0 ? x[
|
|
2975
|
+
for (var w = a - 1, x = a === 0 ? s : [""], L = Xt(x), C = 0, p = 0, I = 0; C < i; ++C)
|
|
2976
|
+
for (var k = 0, F = qe(e, w + 1, w = pi(p = d[C])), U = e; k < L; ++k)
|
|
2977
|
+
(U = Br(p > 0 ? x[k] + " " + F : ne(F, /&\f/g, x[k]))) && (u[I++] = U);
|
|
2978
2978
|
return xt(e, t, r, a === 0 ? qt : l, u, c, v);
|
|
2979
2979
|
}
|
|
2980
2980
|
function Pi(e, t, r) {
|
|
@@ -3002,7 +3002,7 @@ function Ei(e, t, r, i) {
|
|
|
3002
3002
|
case qt:
|
|
3003
3003
|
e.value = e.props.join(",");
|
|
3004
3004
|
}
|
|
3005
|
-
return
|
|
3005
|
+
return ye(r = Te(e.children, i)) ? e.return = e.value + "{" + r + "}" : "";
|
|
3006
3006
|
}
|
|
3007
3007
|
function Ri(e) {
|
|
3008
3008
|
var t = Xt(e);
|
|
@@ -3024,7 +3024,7 @@ function Jr(e) {
|
|
|
3024
3024
|
};
|
|
3025
3025
|
}
|
|
3026
3026
|
var Ti = function(t, r, i) {
|
|
3027
|
-
for (var a = 0, s = 0; a = s, s =
|
|
3027
|
+
for (var a = 0, s = 0; a = s, s = we(), a === 38 && s === 12 && (r[i] = 1), !Be(s); )
|
|
3028
3028
|
me();
|
|
3029
3029
|
return Je(t, he);
|
|
3030
3030
|
}, ji = function(t, r) {
|
|
@@ -3032,14 +3032,14 @@ var Ti = function(t, r, i) {
|
|
|
3032
3032
|
do
|
|
3033
3033
|
switch (Be(a)) {
|
|
3034
3034
|
case 0:
|
|
3035
|
-
a === 38 &&
|
|
3035
|
+
a === 38 && we() === 12 && (r[i] = 1), t[i] += Ti(he - 1, r, i);
|
|
3036
3036
|
break;
|
|
3037
3037
|
case 2:
|
|
3038
3038
|
t[i] += st(a);
|
|
3039
3039
|
break;
|
|
3040
3040
|
case 4:
|
|
3041
3041
|
if (a === 44) {
|
|
3042
|
-
t[++i] =
|
|
3042
|
+
t[++i] = we() === 58 ? "&\f" : "", r[i] = t[i].length;
|
|
3043
3043
|
break;
|
|
3044
3044
|
}
|
|
3045
3045
|
// fallthrough
|
|
@@ -3170,7 +3170,7 @@ function Zr(e, t) {
|
|
|
3170
3170
|
case 5789:
|
|
3171
3171
|
case 5021:
|
|
3172
3172
|
case 4765:
|
|
3173
|
-
if (
|
|
3173
|
+
if (ye(e) - 1 - t > 6) switch (fe(e, t + 1)) {
|
|
3174
3174
|
// (m)ax-content, (m)in-content
|
|
3175
3175
|
case 109:
|
|
3176
3176
|
if (fe(e, t + 4) !== 45) break;
|
|
@@ -3187,7 +3187,7 @@ function Zr(e, t) {
|
|
|
3187
3187
|
if (fe(e, t + 1) !== 115) break;
|
|
3188
3188
|
// display: (flex|inline-flex)
|
|
3189
3189
|
case 6444:
|
|
3190
|
-
switch (fe(e,
|
|
3190
|
+
switch (fe(e, ye(e) - 3 - (~zt(e, "!important") && 10))) {
|
|
3191
3191
|
// stic(k)y
|
|
3192
3192
|
case 107:
|
|
3193
3193
|
return ne(e, ":", ":" + re) + e;
|
|
@@ -3259,8 +3259,8 @@ var $i = function(t, r, i, a) {
|
|
|
3259
3259
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
3260
3260
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
3261
3261
|
function(p) {
|
|
3262
|
-
for (var I = p.getAttribute("data-emotion").split(" "),
|
|
3263
|
-
s[I[
|
|
3262
|
+
for (var I = p.getAttribute("data-emotion").split(" "), k = 1; k < I.length; k++)
|
|
3263
|
+
s[I[k]] = !0;
|
|
3264
3264
|
l.push(p);
|
|
3265
3265
|
}
|
|
3266
3266
|
);
|
|
@@ -3271,11 +3271,11 @@ var $i = function(t, r, i, a) {
|
|
|
3271
3271
|
})], x = Ri(c.concat(a, w)), L = function(I) {
|
|
3272
3272
|
return Te(Ci(I), x);
|
|
3273
3273
|
};
|
|
3274
|
-
u = function(I,
|
|
3275
|
-
v = F, L(I ? I + "{" +
|
|
3274
|
+
u = function(I, k, F, U) {
|
|
3275
|
+
v = F, L(I ? I + "{" + k.styles + "}" : k.styles), U && (C.inserted[k.name] = !0);
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
|
-
var
|
|
3278
|
+
var C = {
|
|
3279
3279
|
key: r,
|
|
3280
3280
|
sheet: new fi({
|
|
3281
3281
|
key: r,
|
|
@@ -3290,7 +3290,7 @@ var $i = function(t, r, i, a) {
|
|
|
3290
3290
|
registered: {},
|
|
3291
3291
|
insert: u
|
|
3292
3292
|
};
|
|
3293
|
-
return
|
|
3293
|
+
return C.sheet.hydrate(l), C;
|
|
3294
3294
|
}, Hi = !0;
|
|
3295
3295
|
function zi(e, t, r) {
|
|
3296
3296
|
var i = "";
|
|
@@ -3400,10 +3400,10 @@ var Wi = {
|
|
|
3400
3400
|
case "animationName":
|
|
3401
3401
|
if (typeof r == "string")
|
|
3402
3402
|
return r.replace(Yi, function(i, a, s) {
|
|
3403
|
-
return
|
|
3403
|
+
return be = {
|
|
3404
3404
|
name: a,
|
|
3405
3405
|
styles: s,
|
|
3406
|
-
next:
|
|
3406
|
+
next: be
|
|
3407
3407
|
}, a;
|
|
3408
3408
|
});
|
|
3409
3409
|
}
|
|
@@ -3421,20 +3421,20 @@ function Xe(e, t, r) {
|
|
|
3421
3421
|
case "object": {
|
|
3422
3422
|
var a = r;
|
|
3423
3423
|
if (a.anim === 1)
|
|
3424
|
-
return
|
|
3424
|
+
return be = {
|
|
3425
3425
|
name: a.name,
|
|
3426
3426
|
styles: a.styles,
|
|
3427
|
-
next:
|
|
3427
|
+
next: be
|
|
3428
3428
|
}, a.name;
|
|
3429
3429
|
var s = r;
|
|
3430
3430
|
if (s.styles !== void 0) {
|
|
3431
3431
|
var d = s.next;
|
|
3432
3432
|
if (d !== void 0)
|
|
3433
3433
|
for (; d !== void 0; )
|
|
3434
|
-
|
|
3434
|
+
be = {
|
|
3435
3435
|
name: d.name,
|
|
3436
3436
|
styles: d.styles,
|
|
3437
|
-
next:
|
|
3437
|
+
next: be
|
|
3438
3438
|
}, d = d.next;
|
|
3439
3439
|
var l = s.styles + ";";
|
|
3440
3440
|
return l;
|
|
@@ -3443,8 +3443,8 @@ function Xe(e, t, r) {
|
|
|
3443
3443
|
}
|
|
3444
3444
|
case "function": {
|
|
3445
3445
|
if (e !== void 0) {
|
|
3446
|
-
var u =
|
|
3447
|
-
return
|
|
3446
|
+
var u = be, c = r(e);
|
|
3447
|
+
return be = u, Xe(e, t, c);
|
|
3448
3448
|
}
|
|
3449
3449
|
break;
|
|
3450
3450
|
}
|
|
@@ -3484,12 +3484,12 @@ function Vi(e, t, r) {
|
|
|
3484
3484
|
}
|
|
3485
3485
|
return i;
|
|
3486
3486
|
}
|
|
3487
|
-
var kr = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
3487
|
+
var kr = /label:\s*([^\s;{]+)\s*(;|$)/g, be;
|
|
3488
3488
|
function qi(e, t, r) {
|
|
3489
3489
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
3490
3490
|
return e[0];
|
|
3491
3491
|
var i = !0, a = "";
|
|
3492
|
-
|
|
3492
|
+
be = void 0;
|
|
3493
3493
|
var s = e[0];
|
|
3494
3494
|
if (s == null || s.raw === void 0)
|
|
3495
3495
|
i = !1, a += Xe(r, t, s);
|
|
@@ -3509,7 +3509,7 @@ function qi(e, t, r) {
|
|
|
3509
3509
|
return {
|
|
3510
3510
|
name: w,
|
|
3511
3511
|
styles: a,
|
|
3512
|
-
next:
|
|
3512
|
+
next: be
|
|
3513
3513
|
};
|
|
3514
3514
|
}
|
|
3515
3515
|
var Bi = function(t) {
|
|
@@ -3568,10 +3568,10 @@ var Ki = function(t) {
|
|
|
3568
3568
|
else {
|
|
3569
3569
|
var x = v[0];
|
|
3570
3570
|
w.push(x[0]);
|
|
3571
|
-
for (var L = v.length,
|
|
3572
|
-
w.push(v[
|
|
3571
|
+
for (var L = v.length, C = 1; C < L; C++)
|
|
3572
|
+
w.push(v[C], x[C]);
|
|
3573
3573
|
}
|
|
3574
|
-
var p = Ki(function(I,
|
|
3574
|
+
var p = Ki(function(I, k, F) {
|
|
3575
3575
|
var U = c && I.as || a, q = "", g = [], b = I;
|
|
3576
3576
|
if (I.theme == null) {
|
|
3577
3577
|
b = {};
|
|
@@ -3579,14 +3579,14 @@ var Ki = function(t) {
|
|
|
3579
3579
|
b[S] = I[S];
|
|
3580
3580
|
b.theme = M.useContext(Ji);
|
|
3581
3581
|
}
|
|
3582
|
-
typeof I.className == "string" ? q = zi(
|
|
3583
|
-
var R = qi(w.concat(g),
|
|
3584
|
-
q +=
|
|
3582
|
+
typeof I.className == "string" ? q = zi(k.registered, g, I.className) : I.className != null && (q = I.className + " ");
|
|
3583
|
+
var R = qi(w.concat(g), k.registered, b);
|
|
3584
|
+
q += k.key + "-" + R.name, d !== void 0 && (q += " " + d);
|
|
3585
3585
|
var y = c && l === void 0 ? Cr(U) : u, h = {};
|
|
3586
3586
|
for (var P in I)
|
|
3587
3587
|
c && P === "as" || y(P) && (h[P] = I[P]);
|
|
3588
3588
|
return h.className = q, F && (h.ref = F), /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement(ra, {
|
|
3589
|
-
cache:
|
|
3589
|
+
cache: k,
|
|
3590
3590
|
serialized: R,
|
|
3591
3591
|
isStringTag: typeof U == "string"
|
|
3592
3592
|
}), /* @__PURE__ */ M.createElement(U, h));
|
|
@@ -3595,9 +3595,9 @@ var Ki = function(t) {
|
|
|
3595
3595
|
value: function() {
|
|
3596
3596
|
return "." + d;
|
|
3597
3597
|
}
|
|
3598
|
-
}), p.withComponent = function(I,
|
|
3599
|
-
var F = e(I, Ht({}, r,
|
|
3600
|
-
shouldForwardProp: Pr(p,
|
|
3598
|
+
}), p.withComponent = function(I, k) {
|
|
3599
|
+
var F = e(I, Ht({}, r, k, {
|
|
3600
|
+
shouldForwardProp: Pr(p, k, !0)
|
|
3601
3601
|
}));
|
|
3602
3602
|
return F.apply(void 0, w);
|
|
3603
3603
|
}, p;
|
|
@@ -3738,11 +3738,11 @@ var Ki = function(t) {
|
|
|
3738
3738
|
"svg",
|
|
3739
3739
|
"text",
|
|
3740
3740
|
"tspan"
|
|
3741
|
-
],
|
|
3741
|
+
], Ee = na.bind(null);
|
|
3742
3742
|
ia.forEach(function(e) {
|
|
3743
|
-
|
|
3743
|
+
Ee[e] = Ee(e);
|
|
3744
3744
|
});
|
|
3745
|
-
const aa =
|
|
3745
|
+
const aa = Ee.div`
|
|
3746
3746
|
width: 100%;
|
|
3747
3747
|
height: fit-content;
|
|
3748
3748
|
|
|
@@ -3818,7 +3818,7 @@ const aa = Pe.div`
|
|
|
3818
3818
|
opacity: 0.75;
|
|
3819
3819
|
color: black;
|
|
3820
3820
|
}
|
|
3821
|
-
`, oa =
|
|
3821
|
+
`, oa = Ee.div`
|
|
3822
3822
|
box-sizing: border-box;
|
|
3823
3823
|
display: flex;
|
|
3824
3824
|
flex-direction: column;
|
|
@@ -3985,29 +3985,29 @@ const aa = Pe.div`
|
|
|
3985
3985
|
const a = V.useRef(!1), s = V.useRef(!1), { pointerPosition: d, isPointerDown: l } = sa(), u = V.useRef({
|
|
3986
3986
|
isDragging: !1
|
|
3987
3987
|
}), c = V.useCallback(
|
|
3988
|
-
(
|
|
3988
|
+
(C) => {
|
|
3989
3989
|
if (!e || !e.current || !u.current)
|
|
3990
3990
|
return;
|
|
3991
3991
|
const p = { ...u.current };
|
|
3992
|
-
return p.posY =
|
|
3992
|
+
return p.posY = C.y, p.posX = C.x, u.current.startPosX && u.current.posX && (p.distanceX = u.current.startPosX - u.current.posX), u.current.startPosY && u.current.posY && (p.distanceY = -(u.current.startPosY - u.current.posY)), p;
|
|
3993
3993
|
},
|
|
3994
3994
|
[]
|
|
3995
3995
|
), v = V.useCallback(
|
|
3996
|
-
(
|
|
3997
|
-
|
|
3998
|
-
const p = c({ x:
|
|
3996
|
+
(C) => {
|
|
3997
|
+
C.preventDefault(), C.stopPropagation(), u.current.isDragging = !0, u.current.startPosY = C.clientY, u.current.startPosX = C.clientX;
|
|
3998
|
+
const p = c({ x: C.clientX, y: C.clientY });
|
|
3999
3999
|
p && (u.current = p, r?.(p));
|
|
4000
4000
|
},
|
|
4001
4001
|
[c]
|
|
4002
4002
|
), w = V.useCallback(
|
|
4003
|
-
(
|
|
4003
|
+
(C) => {
|
|
4004
4004
|
u.current.isDragging = !1;
|
|
4005
4005
|
const p = c(d);
|
|
4006
4006
|
p && (i?.(p), p.startPosX = void 0, p.startPosY = void 0, u.current = p);
|
|
4007
4007
|
},
|
|
4008
4008
|
[c, d]
|
|
4009
4009
|
), x = V.useCallback(
|
|
4010
|
-
(
|
|
4010
|
+
(C) => {
|
|
4011
4011
|
if (console.debug(
|
|
4012
4012
|
"useDrag > onPointerMove > Is Dragging >",
|
|
4013
4013
|
u.current.isDragging
|
|
@@ -4020,7 +4020,7 @@ const aa = Pe.div`
|
|
|
4020
4020
|
), L = V.useCallback(async () => {
|
|
4021
4021
|
if (!a.current) {
|
|
4022
4022
|
for (; !e?.current; )
|
|
4023
|
-
await new Promise((
|
|
4023
|
+
await new Promise((C) => setTimeout(C, 300));
|
|
4024
4024
|
a.current = !0, e.current.onpointerdown = v, e.current.style.touchAction = "none";
|
|
4025
4025
|
}
|
|
4026
4026
|
}, [e?.current, v]);
|
|
@@ -4138,106 +4138,106 @@ function da() {
|
|
|
4138
4138
|
return x.prototype = /* @__PURE__ */ Object.create(null), x;
|
|
4139
4139
|
})();
|
|
4140
4140
|
function d(x, L) {
|
|
4141
|
-
const
|
|
4141
|
+
const C = new s(), p = x.length;
|
|
4142
4142
|
if (p < 2)
|
|
4143
|
-
return
|
|
4143
|
+
return C;
|
|
4144
4144
|
const I = L?.decode || v;
|
|
4145
|
-
let
|
|
4145
|
+
let k = 0;
|
|
4146
4146
|
do {
|
|
4147
|
-
const F = x.indexOf("=",
|
|
4147
|
+
const F = x.indexOf("=", k);
|
|
4148
4148
|
if (F === -1)
|
|
4149
4149
|
break;
|
|
4150
|
-
const U = x.indexOf(";",
|
|
4150
|
+
const U = x.indexOf(";", k), q = U === -1 ? p : U;
|
|
4151
4151
|
if (F > q) {
|
|
4152
|
-
|
|
4152
|
+
k = x.lastIndexOf(";", F - 1) + 1;
|
|
4153
4153
|
continue;
|
|
4154
4154
|
}
|
|
4155
|
-
const g = l(x,
|
|
4156
|
-
if (
|
|
4155
|
+
const g = l(x, k, F), b = u(x, F, g), S = x.slice(g, b);
|
|
4156
|
+
if (C[S] === void 0) {
|
|
4157
4157
|
let R = l(x, F + 1, q), y = u(x, q, R);
|
|
4158
4158
|
const h = I(x.slice(R, y));
|
|
4159
|
-
|
|
4159
|
+
C[S] = h;
|
|
4160
4160
|
}
|
|
4161
|
-
|
|
4162
|
-
} while (
|
|
4163
|
-
return
|
|
4161
|
+
k = q + 1;
|
|
4162
|
+
} while (k < p);
|
|
4163
|
+
return C;
|
|
4164
4164
|
}
|
|
4165
|
-
function l(x, L,
|
|
4165
|
+
function l(x, L, C) {
|
|
4166
4166
|
do {
|
|
4167
4167
|
const p = x.charCodeAt(L);
|
|
4168
4168
|
if (p !== 32 && p !== 9)
|
|
4169
4169
|
return L;
|
|
4170
|
-
} while (++L <
|
|
4171
|
-
return
|
|
4170
|
+
} while (++L < C);
|
|
4171
|
+
return C;
|
|
4172
4172
|
}
|
|
4173
|
-
function u(x, L,
|
|
4174
|
-
for (; L >
|
|
4173
|
+
function u(x, L, C) {
|
|
4174
|
+
for (; L > C; ) {
|
|
4175
4175
|
const p = x.charCodeAt(--L);
|
|
4176
4176
|
if (p !== 32 && p !== 9)
|
|
4177
4177
|
return L + 1;
|
|
4178
4178
|
}
|
|
4179
|
-
return
|
|
4179
|
+
return C;
|
|
4180
4180
|
}
|
|
4181
|
-
function c(x, L,
|
|
4182
|
-
const p =
|
|
4181
|
+
function c(x, L, C) {
|
|
4182
|
+
const p = C?.encode || encodeURIComponent;
|
|
4183
4183
|
if (!e.test(x))
|
|
4184
4184
|
throw new TypeError(`argument name is invalid: ${x}`);
|
|
4185
4185
|
const I = p(L);
|
|
4186
4186
|
if (!t.test(I))
|
|
4187
4187
|
throw new TypeError(`argument val is invalid: ${L}`);
|
|
4188
|
-
let
|
|
4189
|
-
if (!
|
|
4190
|
-
return
|
|
4191
|
-
if (
|
|
4192
|
-
if (!Number.isInteger(
|
|
4193
|
-
throw new TypeError(`option maxAge is invalid: ${
|
|
4194
|
-
|
|
4195
|
-
}
|
|
4196
|
-
if (
|
|
4197
|
-
if (!r.test(
|
|
4198
|
-
throw new TypeError(`option domain is invalid: ${
|
|
4199
|
-
|
|
4200
|
-
}
|
|
4201
|
-
if (
|
|
4202
|
-
if (!i.test(
|
|
4203
|
-
throw new TypeError(`option path is invalid: ${
|
|
4204
|
-
|
|
4205
|
-
}
|
|
4206
|
-
if (
|
|
4207
|
-
if (!w(
|
|
4208
|
-
throw new TypeError(`option expires is invalid: ${
|
|
4209
|
-
|
|
4210
|
-
}
|
|
4211
|
-
if (
|
|
4212
|
-
switch (typeof
|
|
4188
|
+
let k = x + "=" + I;
|
|
4189
|
+
if (!C)
|
|
4190
|
+
return k;
|
|
4191
|
+
if (C.maxAge !== void 0) {
|
|
4192
|
+
if (!Number.isInteger(C.maxAge))
|
|
4193
|
+
throw new TypeError(`option maxAge is invalid: ${C.maxAge}`);
|
|
4194
|
+
k += "; Max-Age=" + C.maxAge;
|
|
4195
|
+
}
|
|
4196
|
+
if (C.domain) {
|
|
4197
|
+
if (!r.test(C.domain))
|
|
4198
|
+
throw new TypeError(`option domain is invalid: ${C.domain}`);
|
|
4199
|
+
k += "; Domain=" + C.domain;
|
|
4200
|
+
}
|
|
4201
|
+
if (C.path) {
|
|
4202
|
+
if (!i.test(C.path))
|
|
4203
|
+
throw new TypeError(`option path is invalid: ${C.path}`);
|
|
4204
|
+
k += "; Path=" + C.path;
|
|
4205
|
+
}
|
|
4206
|
+
if (C.expires) {
|
|
4207
|
+
if (!w(C.expires) || !Number.isFinite(C.expires.valueOf()))
|
|
4208
|
+
throw new TypeError(`option expires is invalid: ${C.expires}`);
|
|
4209
|
+
k += "; Expires=" + C.expires.toUTCString();
|
|
4210
|
+
}
|
|
4211
|
+
if (C.httpOnly && (k += "; HttpOnly"), C.secure && (k += "; Secure"), C.partitioned && (k += "; Partitioned"), C.priority)
|
|
4212
|
+
switch (typeof C.priority == "string" ? C.priority.toLowerCase() : void 0) {
|
|
4213
4213
|
case "low":
|
|
4214
|
-
|
|
4214
|
+
k += "; Priority=Low";
|
|
4215
4215
|
break;
|
|
4216
4216
|
case "medium":
|
|
4217
|
-
|
|
4217
|
+
k += "; Priority=Medium";
|
|
4218
4218
|
break;
|
|
4219
4219
|
case "high":
|
|
4220
|
-
|
|
4220
|
+
k += "; Priority=High";
|
|
4221
4221
|
break;
|
|
4222
4222
|
default:
|
|
4223
|
-
throw new TypeError(`option priority is invalid: ${
|
|
4223
|
+
throw new TypeError(`option priority is invalid: ${C.priority}`);
|
|
4224
4224
|
}
|
|
4225
|
-
if (
|
|
4226
|
-
switch (typeof
|
|
4225
|
+
if (C.sameSite)
|
|
4226
|
+
switch (typeof C.sameSite == "string" ? C.sameSite.toLowerCase() : C.sameSite) {
|
|
4227
4227
|
case !0:
|
|
4228
4228
|
case "strict":
|
|
4229
|
-
|
|
4229
|
+
k += "; SameSite=Strict";
|
|
4230
4230
|
break;
|
|
4231
4231
|
case "lax":
|
|
4232
|
-
|
|
4232
|
+
k += "; SameSite=Lax";
|
|
4233
4233
|
break;
|
|
4234
4234
|
case "none":
|
|
4235
|
-
|
|
4235
|
+
k += "; SameSite=None";
|
|
4236
4236
|
break;
|
|
4237
4237
|
default:
|
|
4238
|
-
throw new TypeError(`option sameSite is invalid: ${
|
|
4238
|
+
throw new TypeError(`option sameSite is invalid: ${C.sameSite}`);
|
|
4239
4239
|
}
|
|
4240
|
-
return
|
|
4240
|
+
return k;
|
|
4241
4241
|
}
|
|
4242
4242
|
function v(x) {
|
|
4243
4243
|
if (x.indexOf("%") === -1)
|
|
@@ -4290,7 +4290,7 @@ function ae(e, t) {
|
|
|
4290
4290
|
if (e === !1 || e === null || typeof e > "u")
|
|
4291
4291
|
throw new Error(t);
|
|
4292
4292
|
}
|
|
4293
|
-
function
|
|
4293
|
+
function ge(e, t) {
|
|
4294
4294
|
if (!e) {
|
|
4295
4295
|
typeof console < "u" && console.warn(t);
|
|
4296
4296
|
try {
|
|
@@ -4348,12 +4348,12 @@ function ma(e, t, r, i = {}) {
|
|
|
4348
4348
|
}
|
|
4349
4349
|
function w() {
|
|
4350
4350
|
l = "POP";
|
|
4351
|
-
let I = v(),
|
|
4352
|
-
c = I, u && u({ action: l, location: p.location, delta:
|
|
4351
|
+
let I = v(), k = I == null ? null : I - c;
|
|
4352
|
+
c = I, u && u({ action: l, location: p.location, delta: k });
|
|
4353
4353
|
}
|
|
4354
|
-
function x(I,
|
|
4354
|
+
function x(I, k) {
|
|
4355
4355
|
l = "PUSH";
|
|
4356
|
-
let F = Ft(p.location, I,
|
|
4356
|
+
let F = Ft(p.location, I, k);
|
|
4357
4357
|
c = v() + 1;
|
|
4358
4358
|
let U = Tr(F, c), q = p.createHref(F);
|
|
4359
4359
|
try {
|
|
@@ -4365,14 +4365,14 @@ function ma(e, t, r, i = {}) {
|
|
|
4365
4365
|
}
|
|
4366
4366
|
s && u && u({ action: l, location: p.location, delta: 1 });
|
|
4367
4367
|
}
|
|
4368
|
-
function L(I,
|
|
4368
|
+
function L(I, k) {
|
|
4369
4369
|
l = "REPLACE";
|
|
4370
|
-
let F = Ft(p.location, I,
|
|
4370
|
+
let F = Ft(p.location, I, k);
|
|
4371
4371
|
c = v();
|
|
4372
4372
|
let U = Tr(F, c), q = p.createHref(F);
|
|
4373
4373
|
d.replaceState(U, "", q), s && u && u({ action: l, location: p.location, delta: 0 });
|
|
4374
4374
|
}
|
|
4375
|
-
function
|
|
4375
|
+
function C(I) {
|
|
4376
4376
|
return va(I);
|
|
4377
4377
|
}
|
|
4378
4378
|
let p = {
|
|
@@ -4392,13 +4392,13 @@ function ma(e, t, r, i = {}) {
|
|
|
4392
4392
|
createHref(I) {
|
|
4393
4393
|
return t(a, I);
|
|
4394
4394
|
},
|
|
4395
|
-
createURL:
|
|
4395
|
+
createURL: C,
|
|
4396
4396
|
encodeLocation(I) {
|
|
4397
|
-
let
|
|
4397
|
+
let k = C(I);
|
|
4398
4398
|
return {
|
|
4399
|
-
pathname:
|
|
4400
|
-
search:
|
|
4401
|
-
hash:
|
|
4399
|
+
pathname: k.pathname,
|
|
4400
|
+
search: k.search,
|
|
4401
|
+
hash: k.hash
|
|
4402
4402
|
};
|
|
4403
4403
|
},
|
|
4404
4404
|
push: x,
|
|
@@ -4419,7 +4419,7 @@ function rn(e, t, r = "/") {
|
|
|
4419
4419
|
return ga(e, t, r, !1);
|
|
4420
4420
|
}
|
|
4421
4421
|
function ga(e, t, r, i) {
|
|
4422
|
-
let a = typeof t == "string" ? Me(t) : t, s =
|
|
4422
|
+
let a = typeof t == "string" ? Me(t) : t, s = Oe(a.pathname || "/", r);
|
|
4423
4423
|
if (s == null)
|
|
4424
4424
|
return null;
|
|
4425
4425
|
let d = nn(e);
|
|
@@ -4447,7 +4447,7 @@ function nn(e, t = [], r = [], i = "") {
|
|
|
4447
4447
|
u.relativePath.startsWith(i),
|
|
4448
4448
|
`Absolute route path "${u.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
4449
4449
|
), u.relativePath = u.relativePath.slice(i.length));
|
|
4450
|
-
let c =
|
|
4450
|
+
let c = xe([i, u.relativePath]), v = r.concat(u);
|
|
4451
4451
|
s.children && s.children.length > 0 && (ae(
|
|
4452
4452
|
// Our types know better, but runtime JS may not!
|
|
4453
4453
|
// @ts-expect-error
|
|
@@ -4530,12 +4530,12 @@ function Ea(e, t, r = !1) {
|
|
|
4530
4530
|
Object.assign(a, w.params), d.push({
|
|
4531
4531
|
// TODO: Can this as be avoided?
|
|
4532
4532
|
params: a,
|
|
4533
|
-
pathname:
|
|
4533
|
+
pathname: xe([s, w.pathname]),
|
|
4534
4534
|
pathnameBase: Da(
|
|
4535
|
-
|
|
4535
|
+
xe([s, w.pathnameBase])
|
|
4536
4536
|
),
|
|
4537
4537
|
route: x
|
|
4538
|
-
}), w.pathnameBase !== "/" && (s =
|
|
4538
|
+
}), w.pathnameBase !== "/" && (s = xe([s, w.pathnameBase]));
|
|
4539
4539
|
}
|
|
4540
4540
|
return d;
|
|
4541
4541
|
}
|
|
@@ -4552,8 +4552,8 @@ function gt(e, t) {
|
|
|
4552
4552
|
params: i.reduce(
|
|
4553
4553
|
(c, { paramName: v, isOptional: w }, x) => {
|
|
4554
4554
|
if (v === "*") {
|
|
4555
|
-
let
|
|
4556
|
-
d = s.slice(0, s.length -
|
|
4555
|
+
let C = l[x] || "";
|
|
4556
|
+
d = s.slice(0, s.length - C.length).replace(/(.)\/+$/, "$1");
|
|
4557
4557
|
}
|
|
4558
4558
|
const L = l[x];
|
|
4559
4559
|
return w && !L ? c[v] = void 0 : c[v] = (L || "").replace(/%2F/g, "/"), c;
|
|
@@ -4566,7 +4566,7 @@ function gt(e, t) {
|
|
|
4566
4566
|
};
|
|
4567
4567
|
}
|
|
4568
4568
|
function Ra(e, t = !1, r = !0) {
|
|
4569
|
-
|
|
4569
|
+
ge(
|
|
4570
4570
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
4571
4571
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
4572
4572
|
);
|
|
@@ -4580,13 +4580,13 @@ function _a(e) {
|
|
|
4580
4580
|
try {
|
|
4581
4581
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
4582
4582
|
} catch (t) {
|
|
4583
|
-
return
|
|
4583
|
+
return ge(
|
|
4584
4584
|
!1,
|
|
4585
4585
|
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
|
|
4586
4586
|
), e;
|
|
4587
4587
|
}
|
|
4588
4588
|
}
|
|
4589
|
-
function
|
|
4589
|
+
function Oe(e, t) {
|
|
4590
4590
|
if (t === "/") return e;
|
|
4591
4591
|
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
4592
4592
|
return null;
|
|
@@ -4655,7 +4655,7 @@ function sn(e, t, r, i = !1) {
|
|
|
4655
4655
|
let u = Ta(a, l), c = d && d !== "/" && d.endsWith("/"), v = (s || d === ".") && r.endsWith("/");
|
|
4656
4656
|
return !u.pathname.endsWith("/") && (c || v) && (u.pathname += "/"), u;
|
|
4657
4657
|
}
|
|
4658
|
-
var
|
|
4658
|
+
var xe = (e) => e.join("/").replace(/\/\/+/g, "/"), Da = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ma = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, $a = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
4659
4659
|
function Ia(e) {
|
|
4660
4660
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
4661
4661
|
}
|
|
@@ -4687,20 +4687,20 @@ var Ha = M.createContext(
|
|
|
4687
4687
|
Ha.displayName = "Fetchers";
|
|
4688
4688
|
var za = M.createContext(null);
|
|
4689
4689
|
za.displayName = "Await";
|
|
4690
|
-
var
|
|
4690
|
+
var Se = M.createContext(
|
|
4691
4691
|
null
|
|
4692
4692
|
);
|
|
4693
|
-
|
|
4693
|
+
Se.displayName = "Navigation";
|
|
4694
4694
|
var Ze = M.createContext(
|
|
4695
4695
|
null
|
|
4696
4696
|
);
|
|
4697
4697
|
Ze.displayName = "Location";
|
|
4698
|
-
var
|
|
4698
|
+
var ke = M.createContext({
|
|
4699
4699
|
outlet: null,
|
|
4700
4700
|
matches: [],
|
|
4701
4701
|
isDataRoute: !1
|
|
4702
4702
|
});
|
|
4703
|
-
|
|
4703
|
+
ke.displayName = "Route";
|
|
4704
4704
|
var Gt = M.createContext(null);
|
|
4705
4705
|
Gt.displayName = "RouteError";
|
|
4706
4706
|
function Na(e, { relative: t } = {}) {
|
|
@@ -4710,13 +4710,13 @@ function Na(e, { relative: t } = {}) {
|
|
|
4710
4710
|
// router loaded. We can help them understand how to avoid that.
|
|
4711
4711
|
"useHref() may be used only in the context of a <Router> component."
|
|
4712
4712
|
);
|
|
4713
|
-
let { basename: r, navigator: i } = M.useContext(
|
|
4714
|
-
return r !== "/" && (l = s === "/" ? r :
|
|
4713
|
+
let { basename: r, navigator: i } = M.useContext(Se), { hash: a, pathname: s, search: d } = et(e, { relative: t }), l = s;
|
|
4714
|
+
return r !== "/" && (l = s === "/" ? r : xe([r, s])), i.createHref({ pathname: l, search: d, hash: a });
|
|
4715
4715
|
}
|
|
4716
4716
|
function Qe() {
|
|
4717
4717
|
return M.useContext(Ze) != null;
|
|
4718
4718
|
}
|
|
4719
|
-
function
|
|
4719
|
+
function Ce() {
|
|
4720
4720
|
return ae(
|
|
4721
4721
|
Qe(),
|
|
4722
4722
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -4726,10 +4726,10 @@ function ke() {
|
|
|
4726
4726
|
}
|
|
4727
4727
|
var cn = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
4728
4728
|
function fn(e) {
|
|
4729
|
-
M.useContext(
|
|
4729
|
+
M.useContext(Se).static || M.useLayoutEffect(e);
|
|
4730
4730
|
}
|
|
4731
4731
|
function Kt() {
|
|
4732
|
-
let { isDataRoute: e } = M.useContext(
|
|
4732
|
+
let { isDataRoute: e } = M.useContext(ke);
|
|
4733
4733
|
return e ? Qa() : Fa();
|
|
4734
4734
|
}
|
|
4735
4735
|
function Fa() {
|
|
@@ -4739,12 +4739,12 @@ function Fa() {
|
|
|
4739
4739
|
// router loaded. We can help them understand how to avoid that.
|
|
4740
4740
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
4741
4741
|
);
|
|
4742
|
-
let e = M.useContext($e), { basename: t, navigator: r } = M.useContext(
|
|
4742
|
+
let e = M.useContext($e), { basename: t, navigator: r } = M.useContext(Se), { matches: i } = M.useContext(ke), { pathname: a } = Ce(), s = JSON.stringify(on(i)), d = M.useRef(!1);
|
|
4743
4743
|
return fn(() => {
|
|
4744
4744
|
d.current = !0;
|
|
4745
4745
|
}), M.useCallback(
|
|
4746
4746
|
(u, c = {}) => {
|
|
4747
|
-
if (
|
|
4747
|
+
if (ge(d.current, cn), !d.current) return;
|
|
4748
4748
|
if (typeof u == "number") {
|
|
4749
4749
|
r.go(u);
|
|
4750
4750
|
return;
|
|
@@ -4755,7 +4755,7 @@ function Fa() {
|
|
|
4755
4755
|
a,
|
|
4756
4756
|
c.relative === "path"
|
|
4757
4757
|
);
|
|
4758
|
-
e == null && t !== "/" && (v.pathname = v.pathname === "/" ? t :
|
|
4758
|
+
e == null && t !== "/" && (v.pathname = v.pathname === "/" ? t : xe([t, v.pathname])), (c.replace ? r.replace : r.push)(
|
|
4759
4759
|
v,
|
|
4760
4760
|
c.state,
|
|
4761
4761
|
c
|
|
@@ -4772,7 +4772,7 @@ function Fa() {
|
|
|
4772
4772
|
}
|
|
4773
4773
|
M.createContext(null);
|
|
4774
4774
|
function et(e, { relative: t } = {}) {
|
|
4775
|
-
let { matches: r } = M.useContext(
|
|
4775
|
+
let { matches: r } = M.useContext(ke), { pathname: i } = Ce(), a = JSON.stringify(on(r));
|
|
4776
4776
|
return M.useMemo(
|
|
4777
4777
|
() => sn(
|
|
4778
4778
|
e,
|
|
@@ -4793,52 +4793,52 @@ function dn(e, t, r, i) {
|
|
|
4793
4793
|
// router loaded. We can help them understand how to avoid that.
|
|
4794
4794
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
4795
4795
|
);
|
|
4796
|
-
let { navigator: a } = M.useContext(
|
|
4796
|
+
let { navigator: a } = M.useContext(Se), { matches: s } = M.useContext(ke), d = s[s.length - 1], l = d ? d.params : {}, u = d ? d.pathname : "/", c = d ? d.pathnameBase : "/", v = d && d.route;
|
|
4797
4797
|
{
|
|
4798
|
-
let
|
|
4798
|
+
let k = v && v.path || "";
|
|
4799
4799
|
hn(
|
|
4800
4800
|
u,
|
|
4801
|
-
!v ||
|
|
4802
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${
|
|
4801
|
+
!v || k.endsWith("*") || k.endsWith("*?"),
|
|
4802
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${k}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
4803
4803
|
|
|
4804
|
-
Please change the parent <Route path="${
|
|
4804
|
+
Please change the parent <Route path="${k}"> to <Route path="${k === "/" ? "*" : `${k}/*`}">.`
|
|
4805
4805
|
);
|
|
4806
4806
|
}
|
|
4807
|
-
let w =
|
|
4807
|
+
let w = Ce(), x;
|
|
4808
4808
|
if (t) {
|
|
4809
|
-
let
|
|
4809
|
+
let k = typeof t == "string" ? Me(t) : t;
|
|
4810
4810
|
ae(
|
|
4811
|
-
c === "/" ||
|
|
4812
|
-
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${
|
|
4813
|
-
), x =
|
|
4811
|
+
c === "/" || k.pathname?.startsWith(c),
|
|
4812
|
+
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${k.pathname}" was given in the \`location\` prop.`
|
|
4813
|
+
), x = k;
|
|
4814
4814
|
} else
|
|
4815
4815
|
x = w;
|
|
4816
|
-
let L = x.pathname || "/",
|
|
4816
|
+
let L = x.pathname || "/", C = L;
|
|
4817
4817
|
if (c !== "/") {
|
|
4818
|
-
let
|
|
4819
|
-
|
|
4818
|
+
let k = c.replace(/^\//, "").split("/");
|
|
4819
|
+
C = "/" + L.replace(/^\//, "").split("/").slice(k.length).join("/");
|
|
4820
4820
|
}
|
|
4821
|
-
let p = rn(e, { pathname:
|
|
4822
|
-
|
|
4821
|
+
let p = rn(e, { pathname: C });
|
|
4822
|
+
ge(
|
|
4823
4823
|
v || p != null,
|
|
4824
4824
|
`No routes matched location "${x.pathname}${x.search}${x.hash}" `
|
|
4825
|
-
),
|
|
4825
|
+
), ge(
|
|
4826
4826
|
p == null || p[p.length - 1].route.element !== void 0 || p[p.length - 1].route.Component !== void 0 || p[p.length - 1].route.lazy !== void 0,
|
|
4827
4827
|
`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
4828
4828
|
);
|
|
4829
4829
|
let I = Ba(
|
|
4830
4830
|
p && p.map(
|
|
4831
|
-
(
|
|
4832
|
-
params: Object.assign({}, l,
|
|
4833
|
-
pathname:
|
|
4831
|
+
(k) => Object.assign({}, k, {
|
|
4832
|
+
params: Object.assign({}, l, k.params),
|
|
4833
|
+
pathname: xe([
|
|
4834
4834
|
c,
|
|
4835
4835
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
4836
|
-
a.encodeLocation ? a.encodeLocation(
|
|
4836
|
+
a.encodeLocation ? a.encodeLocation(k.pathname).pathname : k.pathname
|
|
4837
4837
|
]),
|
|
4838
|
-
pathnameBase:
|
|
4838
|
+
pathnameBase: k.pathnameBase === "/" ? c : xe([
|
|
4839
4839
|
c,
|
|
4840
4840
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
4841
|
-
a.encodeLocation ? a.encodeLocation(
|
|
4841
|
+
a.encodeLocation ? a.encodeLocation(k.pathnameBase).pathname : k.pathnameBase
|
|
4842
4842
|
])
|
|
4843
4843
|
})
|
|
4844
4844
|
),
|
|
@@ -4902,7 +4902,7 @@ var Ya = /* @__PURE__ */ M.createElement(Ua, null), Va = class extends M.Compone
|
|
|
4902
4902
|
);
|
|
4903
4903
|
}
|
|
4904
4904
|
render() {
|
|
4905
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ M.createElement(
|
|
4905
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ M.createElement(ke.Provider, { value: this.props.routeContext }, /* @__PURE__ */ M.createElement(
|
|
4906
4906
|
Gt.Provider,
|
|
4907
4907
|
{
|
|
4908
4908
|
value: this.state.error,
|
|
@@ -4913,7 +4913,7 @@ var Ya = /* @__PURE__ */ M.createElement(Ua, null), Va = class extends M.Compone
|
|
|
4913
4913
|
};
|
|
4914
4914
|
function qa({ routeContext: e, match: t, children: r }) {
|
|
4915
4915
|
let i = M.useContext($e);
|
|
4916
|
-
return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ M.createElement(
|
|
4916
|
+
return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ M.createElement(ke.Provider, { value: e }, r);
|
|
4917
4917
|
}
|
|
4918
4918
|
function Ba(e, t = [], r = null, i = null) {
|
|
4919
4919
|
if (e == null) {
|
|
@@ -4954,15 +4954,15 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4954
4954
|
}
|
|
4955
4955
|
}
|
|
4956
4956
|
return a.reduceRight((u, c, v) => {
|
|
4957
|
-
let w, x = !1, L = null,
|
|
4957
|
+
let w, x = !1, L = null, C = null;
|
|
4958
4958
|
r && (w = s && c.route.id ? s[c.route.id] : void 0, L = c.route.errorElement || Ya, d && (l < 0 && v === 0 ? (hn(
|
|
4959
4959
|
"route-fallback",
|
|
4960
4960
|
!1,
|
|
4961
4961
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
4962
|
-
), x = !0,
|
|
4962
|
+
), x = !0, C = null) : l === v && (x = !0, C = c.route.hydrateFallbackElement || null)));
|
|
4963
4963
|
let p = t.concat(a.slice(0, v + 1)), I = () => {
|
|
4964
|
-
let
|
|
4965
|
-
return w ?
|
|
4964
|
+
let k;
|
|
4965
|
+
return w ? k = L : x ? k = C : c.route.Component ? k = /* @__PURE__ */ M.createElement(c.route.Component, null) : c.route.element ? k = c.route.element : k = u, /* @__PURE__ */ M.createElement(
|
|
4966
4966
|
qa,
|
|
4967
4967
|
{
|
|
4968
4968
|
match: c,
|
|
@@ -4971,7 +4971,7 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4971
4971
|
matches: p,
|
|
4972
4972
|
isDataRoute: r != null
|
|
4973
4973
|
},
|
|
4974
|
-
children:
|
|
4974
|
+
children: k
|
|
4975
4975
|
}
|
|
4976
4976
|
);
|
|
4977
4977
|
};
|
|
@@ -5000,7 +5000,7 @@ function Ga(e) {
|
|
|
5000
5000
|
return ae(t, Jt(e)), t;
|
|
5001
5001
|
}
|
|
5002
5002
|
function Ka(e) {
|
|
5003
|
-
let t = M.useContext(
|
|
5003
|
+
let t = M.useContext(ke);
|
|
5004
5004
|
return ae(t, Jt(e)), t;
|
|
5005
5005
|
}
|
|
5006
5006
|
function Zt(e) {
|
|
@@ -5038,14 +5038,14 @@ function Qa() {
|
|
|
5038
5038
|
r.current = !0;
|
|
5039
5039
|
}), M.useCallback(
|
|
5040
5040
|
async (a, s = {}) => {
|
|
5041
|
-
|
|
5041
|
+
ge(r.current, cn), r.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: t, ...s }));
|
|
5042
5042
|
},
|
|
5043
5043
|
[e, t]
|
|
5044
5044
|
);
|
|
5045
5045
|
}
|
|
5046
5046
|
var Lr = {};
|
|
5047
5047
|
function hn(e, t, r) {
|
|
5048
|
-
!t && !Lr[e] && (Lr[e] = !0,
|
|
5048
|
+
!t && !Lr[e] && (Lr[e] = !0, ge(!1, r));
|
|
5049
5049
|
}
|
|
5050
5050
|
M.memo(eo);
|
|
5051
5051
|
function eo({
|
|
@@ -5090,10 +5090,10 @@ function to({
|
|
|
5090
5090
|
state: w = null,
|
|
5091
5091
|
key: x = "default"
|
|
5092
5092
|
} = r, L = M.useMemo(() => {
|
|
5093
|
-
let
|
|
5094
|
-
return
|
|
5093
|
+
let C = Oe(u, d);
|
|
5094
|
+
return C == null ? null : {
|
|
5095
5095
|
location: {
|
|
5096
|
-
pathname:
|
|
5096
|
+
pathname: C,
|
|
5097
5097
|
search: c,
|
|
5098
5098
|
hash: v,
|
|
5099
5099
|
state: w,
|
|
@@ -5102,10 +5102,10 @@ function to({
|
|
|
5102
5102
|
navigationType: i
|
|
5103
5103
|
};
|
|
5104
5104
|
}, [d, u, c, v, w, x, i]);
|
|
5105
|
-
return
|
|
5105
|
+
return ge(
|
|
5106
5106
|
L != null,
|
|
5107
5107
|
`<Router basename="${d}"> is not able to match the URL "${u}${c}${v}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
5108
|
-
), L == null ? null : /* @__PURE__ */ M.createElement(
|
|
5108
|
+
), L == null ? null : /* @__PURE__ */ M.createElement(Se.Provider, { value: l }, /* @__PURE__ */ M.createElement(Ze.Provider, { children: t, value: L }));
|
|
5109
5109
|
}
|
|
5110
5110
|
function ro({
|
|
5111
5111
|
children: e,
|
|
@@ -5216,7 +5216,7 @@ var co = /* @__PURE__ */ new Set([
|
|
|
5216
5216
|
"text/plain"
|
|
5217
5217
|
]);
|
|
5218
5218
|
function It(e) {
|
|
5219
|
-
return e != null && !co.has(e) ? (
|
|
5219
|
+
return e != null && !co.has(e) ? (ge(
|
|
5220
5220
|
!1,
|
|
5221
5221
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ct}"`
|
|
5222
5222
|
), null) : e;
|
|
@@ -5225,7 +5225,7 @@ function fo(e, t) {
|
|
|
5225
5225
|
let r, i, a, s, d;
|
|
5226
5226
|
if (io(e)) {
|
|
5227
5227
|
let l = e.getAttribute("action");
|
|
5228
|
-
i = l ?
|
|
5228
|
+
i = l ? Oe(l, t) : null, r = e.getAttribute("method") || ut, a = It(e.getAttribute("enctype")) || ct, s = new FormData(e);
|
|
5229
5229
|
} else if (no(e) || ao(e) && (e.type === "submit" || e.type === "image")) {
|
|
5230
5230
|
let l = e.form;
|
|
5231
5231
|
if (l == null)
|
|
@@ -5233,7 +5233,7 @@ function fo(e, t) {
|
|
|
5233
5233
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
5234
5234
|
);
|
|
5235
5235
|
let u = e.getAttribute("formaction") || l.getAttribute("action");
|
|
5236
|
-
if (i = u ?
|
|
5236
|
+
if (i = u ? Oe(u, t) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || ut, a = It(e.getAttribute("formenctype")) || It(l.getAttribute("enctype")) || ct, s = new FormData(l, e), !uo()) {
|
|
5237
5237
|
let { name: c, type: v, value: w } = e;
|
|
5238
5238
|
if (v === "image") {
|
|
5239
5239
|
let x = c ? `${c}.` : "";
|
|
@@ -5357,7 +5357,7 @@ function So(e, t) {
|
|
|
5357
5357
|
// don't assume window is available
|
|
5358
5358
|
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
5359
5359
|
) : e;
|
|
5360
|
-
return r.pathname === "/" ? r.pathname = "_root.data" : t &&
|
|
5360
|
+
return r.pathname === "/" ? r.pathname = "_root.data" : t && Oe(r.pathname, t) === "/" ? r.pathname = `${t.replace(/\/$/, "")}/_root.data` : r.pathname = `${r.pathname.replace(/\/$/, "")}.data`, r;
|
|
5361
5361
|
}
|
|
5362
5362
|
function mn() {
|
|
5363
5363
|
let e = M.useContext($e);
|
|
@@ -5386,8 +5386,8 @@ function Oo(e, t) {
|
|
|
5386
5386
|
let r = M.useContext(er), [i, a] = M.useState(!1), [s, d] = M.useState(!1), { onFocus: l, onBlur: u, onMouseEnter: c, onMouseLeave: v, onTouchStart: w } = t, x = M.useRef(null);
|
|
5387
5387
|
M.useEffect(() => {
|
|
5388
5388
|
if (e === "render" && d(!0), e === "viewport") {
|
|
5389
|
-
let p = (
|
|
5390
|
-
|
|
5389
|
+
let p = (k) => {
|
|
5390
|
+
k.forEach((F) => {
|
|
5391
5391
|
d(F.isIntersecting);
|
|
5392
5392
|
});
|
|
5393
5393
|
}, I = new IntersectionObserver(p, { threshold: 0.5 });
|
|
@@ -5407,7 +5407,7 @@ function Oo(e, t) {
|
|
|
5407
5407
|
}, [i]);
|
|
5408
5408
|
let L = () => {
|
|
5409
5409
|
a(!0);
|
|
5410
|
-
},
|
|
5410
|
+
}, C = () => {
|
|
5411
5411
|
a(!1), d(!1);
|
|
5412
5412
|
};
|
|
5413
5413
|
return r ? e !== "intent" ? [s, x, {}] : [
|
|
@@ -5415,9 +5415,9 @@ function Oo(e, t) {
|
|
|
5415
5415
|
x,
|
|
5416
5416
|
{
|
|
5417
5417
|
onFocus: Ve(l, L),
|
|
5418
|
-
onBlur: Ve(u,
|
|
5418
|
+
onBlur: Ve(u, C),
|
|
5419
5419
|
onMouseEnter: Ve(c, L),
|
|
5420
|
-
onMouseLeave: Ve(v,
|
|
5420
|
+
onMouseLeave: Ve(v, C),
|
|
5421
5421
|
onTouchStart: Ve(w, L)
|
|
5422
5422
|
}
|
|
5423
5423
|
] : [!1, x, {}];
|
|
@@ -5455,7 +5455,7 @@ function Po({
|
|
|
5455
5455
|
matches: t,
|
|
5456
5456
|
...r
|
|
5457
5457
|
}) {
|
|
5458
|
-
let i =
|
|
5458
|
+
let i = Ce(), { manifest: a, routeModules: s } = vn(), { basename: d } = mn(), { loaderData: l, matches: u } = xo(), c = M.useMemo(
|
|
5459
5459
|
() => Dr(
|
|
5460
5460
|
e,
|
|
5461
5461
|
t,
|
|
@@ -5478,16 +5478,16 @@ function Po({
|
|
|
5478
5478
|
), w = M.useMemo(() => {
|
|
5479
5479
|
if (e === i.pathname + i.search + i.hash)
|
|
5480
5480
|
return [];
|
|
5481
|
-
let
|
|
5482
|
-
if (t.forEach((
|
|
5483
|
-
let F = a.routes[
|
|
5484
|
-
!F || !F.hasLoader || (!c.some((U) => U.route.id ===
|
|
5485
|
-
}),
|
|
5481
|
+
let C = /* @__PURE__ */ new Set(), p = !1;
|
|
5482
|
+
if (t.forEach((k) => {
|
|
5483
|
+
let F = a.routes[k.route.id];
|
|
5484
|
+
!F || !F.hasLoader || (!c.some((U) => U.route.id === k.route.id) && k.route.id in l && s[k.route.id]?.shouldRevalidate || F.hasClientLoader ? p = !0 : C.add(k.route.id));
|
|
5485
|
+
}), C.size === 0)
|
|
5486
5486
|
return [];
|
|
5487
5487
|
let I = So(e, d);
|
|
5488
|
-
return p &&
|
|
5488
|
+
return p && C.size > 0 && I.searchParams.set(
|
|
5489
5489
|
"_routes",
|
|
5490
|
-
t.filter((
|
|
5490
|
+
t.filter((k) => C.has(k.route.id)).map((k) => k.route.id).join(",")
|
|
5491
5491
|
), [I.pathname + I.search];
|
|
5492
5492
|
}, [
|
|
5493
5493
|
d,
|
|
@@ -5502,10 +5502,10 @@ function Po({
|
|
|
5502
5502
|
() => vo(v, a),
|
|
5503
5503
|
[v, a]
|
|
5504
5504
|
), L = Co(v);
|
|
5505
|
-
return /* @__PURE__ */ M.createElement(M.Fragment, null, w.map((
|
|
5505
|
+
return /* @__PURE__ */ M.createElement(M.Fragment, null, w.map((C) => /* @__PURE__ */ M.createElement("link", { key: C, rel: "prefetch", as: "fetch", href: C, ...r })), x.map((C) => /* @__PURE__ */ M.createElement("link", { key: C, rel: "modulepreload", href: C, ...r })), L.map(({ key: C, link: p }) => (
|
|
5506
5506
|
// these don't spread `linkProps` because they are full link descriptors
|
|
5507
5507
|
// already with their own props
|
|
5508
|
-
/* @__PURE__ */ M.createElement("link", { key:
|
|
5508
|
+
/* @__PURE__ */ M.createElement("link", { key: C, ...p })
|
|
5509
5509
|
)));
|
|
5510
5510
|
}
|
|
5511
5511
|
function Eo(...e) {
|
|
@@ -5562,13 +5562,13 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
|
|
|
5562
5562
|
viewTransition: w,
|
|
5563
5563
|
...x
|
|
5564
5564
|
}, L) {
|
|
5565
|
-
let { basename:
|
|
5565
|
+
let { basename: C } = M.useContext(Se), p = typeof c == "string" && yn.test(c), I, k = !1;
|
|
5566
5566
|
if (typeof c == "string" && p && (I = c, gn))
|
|
5567
5567
|
try {
|
|
5568
|
-
let y = new URL(window.location.href), h = c.startsWith("//") ? new URL(y.protocol + c) : new URL(c), P =
|
|
5569
|
-
h.origin === y.origin && P != null ? c = P + h.search + h.hash :
|
|
5568
|
+
let y = new URL(window.location.href), h = c.startsWith("//") ? new URL(y.protocol + c) : new URL(c), P = Oe(h.pathname, C);
|
|
5569
|
+
h.origin === y.origin && P != null ? c = P + h.search + h.hash : k = !0;
|
|
5570
5570
|
} catch {
|
|
5571
|
-
|
|
5571
|
+
ge(
|
|
5572
5572
|
!1,
|
|
5573
5573
|
`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
5574
5574
|
);
|
|
@@ -5595,7 +5595,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
|
|
|
5595
5595
|
...x,
|
|
5596
5596
|
...g,
|
|
5597
5597
|
href: I || F,
|
|
5598
|
-
onClick:
|
|
5598
|
+
onClick: k || s ? t : S,
|
|
5599
5599
|
ref: Eo(L, q),
|
|
5600
5600
|
target: u,
|
|
5601
5601
|
"data-discover": !p && r === "render" ? "true" : void 0
|
|
@@ -5618,12 +5618,12 @@ var _o = M.forwardRef(
|
|
|
5618
5618
|
children: u,
|
|
5619
5619
|
...c
|
|
5620
5620
|
}, v) {
|
|
5621
|
-
let w = et(d, { relative: c.relative }), x =
|
|
5621
|
+
let w = et(d, { relative: c.relative }), x = Ce(), L = M.useContext(Ot), { navigator: C, basename: p } = M.useContext(Se), I = L != null && // Conditional usage is OK here because the usage of a data router is static
|
|
5622
5622
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5623
|
-
Ho(w) && l === !0,
|
|
5624
|
-
r || (F = F.toLowerCase(), U = U ? U.toLowerCase() : null,
|
|
5625
|
-
const q =
|
|
5626
|
-
let g = F ===
|
|
5623
|
+
Ho(w) && l === !0, k = C.encodeLocation ? C.encodeLocation(w).pathname : w.pathname, F = x.pathname, U = L && L.navigation && L.navigation.location ? L.navigation.location.pathname : null;
|
|
5624
|
+
r || (F = F.toLowerCase(), U = U ? U.toLowerCase() : null, k = k.toLowerCase()), U && p && (U = Oe(U, p) || U);
|
|
5625
|
+
const q = k !== "/" && k.endsWith("/") ? k.length - 1 : k.length;
|
|
5626
|
+
let g = F === k || !a && F.startsWith(k) && F.charAt(q) === "/", b = U != null && (U === k || !a && U.startsWith(k) && U.charAt(k.length) === "/"), S = {
|
|
5627
5627
|
isActive: g,
|
|
5628
5628
|
isPending: b,
|
|
5629
5629
|
isTransitioning: I
|
|
@@ -5667,11 +5667,11 @@ var To = M.forwardRef(
|
|
|
5667
5667
|
viewTransition: w,
|
|
5668
5668
|
...x
|
|
5669
5669
|
}, L) => {
|
|
5670
|
-
let
|
|
5670
|
+
let C = Io(), p = Ao(l, { relative: c }), I = d.toLowerCase() === "get" ? "get" : "post", k = typeof l == "string" && yn.test(l), F = (U) => {
|
|
5671
5671
|
if (u && u(U), U.defaultPrevented) return;
|
|
5672
5672
|
U.preventDefault();
|
|
5673
5673
|
let q = U.nativeEvent.submitter, g = q?.getAttribute("formmethod") || d;
|
|
5674
|
-
|
|
5674
|
+
C(q || U.currentTarget, {
|
|
5675
5675
|
fetcherKey: t,
|
|
5676
5676
|
method: g,
|
|
5677
5677
|
navigate: r,
|
|
@@ -5690,7 +5690,7 @@ var To = M.forwardRef(
|
|
|
5690
5690
|
action: p,
|
|
5691
5691
|
onSubmit: i ? u : F,
|
|
5692
5692
|
...x,
|
|
5693
|
-
"data-discover": !
|
|
5693
|
+
"data-discover": !k && e === "render" ? "true" : void 0
|
|
5694
5694
|
}
|
|
5695
5695
|
);
|
|
5696
5696
|
}
|
|
@@ -5711,7 +5711,7 @@ function Lo(e, {
|
|
|
5711
5711
|
relative: s,
|
|
5712
5712
|
viewTransition: d
|
|
5713
5713
|
} = {}) {
|
|
5714
|
-
let l = Kt(), u =
|
|
5714
|
+
let l = Kt(), u = Ce(), c = et(e, { relative: s });
|
|
5715
5715
|
return M.useCallback(
|
|
5716
5716
|
(v) => {
|
|
5717
5717
|
if (so(v, t)) {
|
|
@@ -5741,11 +5741,11 @@ function Lo(e, {
|
|
|
5741
5741
|
);
|
|
5742
5742
|
}
|
|
5743
5743
|
function Do(e) {
|
|
5744
|
-
|
|
5744
|
+
ge(
|
|
5745
5745
|
typeof URLSearchParams < "u",
|
|
5746
5746
|
"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params."
|
|
5747
5747
|
);
|
|
5748
|
-
let t = M.useRef(Ut(e)), r = M.useRef(!1), i =
|
|
5748
|
+
let t = M.useRef(Ut(e)), r = M.useRef(!1), i = Ce(), a = M.useMemo(
|
|
5749
5749
|
() => (
|
|
5750
5750
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
5751
5751
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
@@ -5772,7 +5772,7 @@ function Io() {
|
|
|
5772
5772
|
let { router: e } = wn(
|
|
5773
5773
|
"useSubmit"
|
|
5774
5774
|
/* UseSubmit */
|
|
5775
|
-
), { basename: t } = M.useContext(
|
|
5775
|
+
), { basename: t } = M.useContext(Se), r = Ja();
|
|
5776
5776
|
return M.useCallback(
|
|
5777
5777
|
async (i, a = {}) => {
|
|
5778
5778
|
let { action: s, method: d, encType: l, formData: u, body: c } = fo(
|
|
@@ -5807,9 +5807,9 @@ function Io() {
|
|
|
5807
5807
|
);
|
|
5808
5808
|
}
|
|
5809
5809
|
function Ao(e, { relative: t } = {}) {
|
|
5810
|
-
let { basename: r } = M.useContext(
|
|
5810
|
+
let { basename: r } = M.useContext(Se), i = M.useContext(ke);
|
|
5811
5811
|
ae(i, "useFormAction must be used inside a RouteContext");
|
|
5812
|
-
let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) }, d =
|
|
5812
|
+
let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) }, d = Ce();
|
|
5813
5813
|
if (e == null) {
|
|
5814
5814
|
s.search = d.search;
|
|
5815
5815
|
let l = new URLSearchParams(s.search), u = l.getAll("index");
|
|
@@ -5819,7 +5819,7 @@ function Ao(e, { relative: t } = {}) {
|
|
|
5819
5819
|
s.search = v ? `?${v}` : "";
|
|
5820
5820
|
}
|
|
5821
5821
|
}
|
|
5822
|
-
return (!e || e === ".") && a.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (s.pathname = s.pathname === "/" ? r :
|
|
5822
|
+
return (!e || e === ".") && a.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (s.pathname = s.pathname === "/" ? r : xe([r, s.pathname])), Ge(s);
|
|
5823
5823
|
}
|
|
5824
5824
|
function Ho(e, t = {}) {
|
|
5825
5825
|
let r = M.useContext(un);
|
|
@@ -5833,7 +5833,7 @@ function Ho(e, t = {}) {
|
|
|
5833
5833
|
), a = et(e, { relative: t.relative });
|
|
5834
5834
|
if (!r.isTransitioning)
|
|
5835
5835
|
return !1;
|
|
5836
|
-
let s =
|
|
5836
|
+
let s = Oe(r.currentLocation.pathname, i) || r.currentLocation.pathname, d = Oe(r.nextLocation.pathname, i) || r.nextLocation.pathname;
|
|
5837
5837
|
return gt(a.pathname, d) != null || gt(a.pathname, s) != null;
|
|
5838
5838
|
}
|
|
5839
5839
|
[
|
|
@@ -5850,7 +5850,7 @@ const Sn = V.createContext({
|
|
|
5850
5850
|
const [e, t] = Do(), r = Hr(
|
|
5851
5851
|
() => Object.fromEntries(e.entries()),
|
|
5852
5852
|
[e]
|
|
5853
|
-
), i =
|
|
5853
|
+
), i = ve(
|
|
5854
5854
|
(c) => {
|
|
5855
5855
|
const v = {};
|
|
5856
5856
|
return c.forEach((w) => {
|
|
@@ -5858,19 +5858,19 @@ const Sn = V.createContext({
|
|
|
5858
5858
|
}), v;
|
|
5859
5859
|
},
|
|
5860
5860
|
[e]
|
|
5861
|
-
), a =
|
|
5861
|
+
), a = ve(
|
|
5862
5862
|
(c) => {
|
|
5863
5863
|
const v = e.get(c);
|
|
5864
5864
|
return v == null || v == null, v;
|
|
5865
5865
|
},
|
|
5866
5866
|
[e]
|
|
5867
|
-
), s =
|
|
5867
|
+
), s = ve(
|
|
5868
5868
|
(c, v) => {
|
|
5869
5869
|
const w = new URLSearchParams(e);
|
|
5870
5870
|
w.set(c, String(v)), t(w);
|
|
5871
5871
|
},
|
|
5872
5872
|
[e, t]
|
|
5873
|
-
), d =
|
|
5873
|
+
), d = ve(
|
|
5874
5874
|
(c) => {
|
|
5875
5875
|
const v = new URLSearchParams(e);
|
|
5876
5876
|
Object.entries(c).forEach(([w, x]) => {
|
|
@@ -5878,13 +5878,13 @@ const Sn = V.createContext({
|
|
|
5878
5878
|
}), t(v);
|
|
5879
5879
|
},
|
|
5880
5880
|
[e, t]
|
|
5881
|
-
), l =
|
|
5881
|
+
), l = ve(
|
|
5882
5882
|
(c) => {
|
|
5883
5883
|
const v = new URLSearchParams(e);
|
|
5884
5884
|
v.delete(c), t(v);
|
|
5885
5885
|
},
|
|
5886
5886
|
[e, t]
|
|
5887
|
-
), u =
|
|
5887
|
+
), u = ve(
|
|
5888
5888
|
(c) => {
|
|
5889
5889
|
const v = new URLSearchParams(e);
|
|
5890
5890
|
c.forEach((w) => {
|
|
@@ -5903,7 +5903,7 @@ const Sn = V.createContext({
|
|
|
5903
5903
|
removeMany: u
|
|
5904
5904
|
};
|
|
5905
5905
|
}, hs = () => {
|
|
5906
|
-
const e = Kt(), t =
|
|
5906
|
+
const e = Kt(), t = Ce(), r = zo(), i = Yt(Sn), a = (l) => {
|
|
5907
5907
|
const u = new URL(l.path, "http://dummy-base");
|
|
5908
5908
|
return l.params && Object.entries(l.params).forEach(([c, v]) => {
|
|
5909
5909
|
v != null && u.searchParams.set(c, String(v));
|
|
@@ -6018,17 +6018,17 @@ const Sn = V.createContext({
|
|
|
6018
6018
|
}) => {
|
|
6019
6019
|
const { isItemVisible: i } = Ct(), [a, s] = V.useState({
|
|
6020
6020
|
isDragging: !1
|
|
6021
|
-
}), d = V.useRef(null), l = V.useRef(null), u = V.useRef(null), [c, v] = V.useState(0), w = (
|
|
6022
|
-
s(
|
|
6023
|
-
}, x = (
|
|
6024
|
-
s(
|
|
6021
|
+
}), d = V.useRef(null), l = V.useRef(null), u = V.useRef(null), [c, v] = V.useState(0), w = (C) => {
|
|
6022
|
+
s(C);
|
|
6023
|
+
}, x = (C) => {
|
|
6024
|
+
s(C), v(0);
|
|
6025
6025
|
};
|
|
6026
6026
|
return la({
|
|
6027
6027
|
ref: u,
|
|
6028
|
-
onDrag: (
|
|
6029
|
-
s(
|
|
6028
|
+
onDrag: (C) => {
|
|
6029
|
+
s(C);
|
|
6030
6030
|
const p = l.current?.clientHeight || 0;
|
|
6031
|
-
|
|
6031
|
+
C.distanceY && (v(C.distanceY < 0 ? 0 : -C.distanceY), C.distanceY >= p - r && (t?.(), x(C)));
|
|
6032
6032
|
},
|
|
6033
6033
|
onDragEnd: x,
|
|
6034
6034
|
onDragStart: w
|
|
@@ -6115,7 +6115,11 @@ const Sn = V.createContext({
|
|
|
6115
6115
|
)
|
|
6116
6116
|
}
|
|
6117
6117
|
) });
|
|
6118
|
-
}, Fo = ({
|
|
6118
|
+
}, Fo = ({
|
|
6119
|
+
onPreSubmit: e,
|
|
6120
|
+
onSubmit: t,
|
|
6121
|
+
configurations: r
|
|
6122
|
+
}) => {
|
|
6119
6123
|
const i = V.useRef(null), a = V.useRef(!1), s = (c) => {
|
|
6120
6124
|
const v = Array.from(c.currentTarget.elements).filter(
|
|
6121
6125
|
(x) => !!x.getAttribute("name")
|
|
@@ -6130,12 +6134,12 @@ const Sn = V.createContext({
|
|
|
6130
6134
|
return w;
|
|
6131
6135
|
}, d = async (c) => {
|
|
6132
6136
|
try {
|
|
6133
|
-
const
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
var v = c.value, w = c.value, x = L.configuration;
|
|
6137
|
+
const x = (r || []).find(
|
|
6138
|
+
(L) => L.name === c.name
|
|
6139
|
+
);
|
|
6137
6140
|
if (!x)
|
|
6138
6141
|
return c;
|
|
6142
|
+
var v = c.value, w = c.value;
|
|
6139
6143
|
if (x.emptyValidation && x.emptyValidation.allow === !1 && !v)
|
|
6140
6144
|
return c.error = x.emptyValidation.errorMessage, c;
|
|
6141
6145
|
if (x.minLengthValidation && v.length < x.minLengthValidation.value)
|
|
@@ -6150,13 +6154,13 @@ const Sn = V.createContext({
|
|
|
6150
6154
|
}
|
|
6151
6155
|
if (x.exactValueValidation && x.exactValueValidation.value !== c.value)
|
|
6152
6156
|
return c.error = x.exactValueValidation.errorMessage, c;
|
|
6153
|
-
for (let
|
|
6154
|
-
const
|
|
6155
|
-
if (
|
|
6156
|
-
return c.error =
|
|
6157
|
+
for (let L = 0; L < (x.validations || []).length; L++) {
|
|
6158
|
+
const C = await x.validations?.[L](c.value);
|
|
6159
|
+
if (C)
|
|
6160
|
+
return c.error = C, c;
|
|
6157
6161
|
}
|
|
6158
|
-
} catch (
|
|
6159
|
-
console.error(`Form > Failed To Validate Field ${c.name}: `,
|
|
6162
|
+
} catch (x) {
|
|
6163
|
+
console.error(`Form > Failed To Validate Field ${c.name}: `, x);
|
|
6160
6164
|
}
|
|
6161
6165
|
return c;
|
|
6162
6166
|
}, l = V.useCallback(
|
|
@@ -6178,7 +6182,7 @@ const Sn = V.createContext({
|
|
|
6178
6182
|
},
|
|
6179
6183
|
handleFormSubmission: l
|
|
6180
6184
|
};
|
|
6181
|
-
}, Wo =
|
|
6185
|
+
}, Wo = Ee.div`
|
|
6182
6186
|
display: flex;
|
|
6183
6187
|
width: 100%;
|
|
6184
6188
|
align-items: center;
|
|
@@ -6194,12 +6198,12 @@ const Sn = V.createContext({
|
|
|
6194
6198
|
pointer-events: none;
|
|
6195
6199
|
}
|
|
6196
6200
|
`, gs = (e) => {
|
|
6197
|
-
const {
|
|
6201
|
+
const { children: t, styles: r, childrenStyles: i, submitButton: a } = e, { ref: s, handleFormSubmission: d, submitForm: l } = Fo(e);
|
|
6198
6202
|
return /* @__PURE__ */ X.jsxs(
|
|
6199
6203
|
"form",
|
|
6200
6204
|
{
|
|
6201
|
-
ref:
|
|
6202
|
-
onSubmit:
|
|
6205
|
+
ref: s,
|
|
6206
|
+
onSubmit: d,
|
|
6203
6207
|
style: {
|
|
6204
6208
|
width: "100%",
|
|
6205
6209
|
display: "flex",
|
|
@@ -6218,19 +6222,19 @@ const Sn = V.createContext({
|
|
|
6218
6222
|
flexDirection: "column",
|
|
6219
6223
|
gap: "8px",
|
|
6220
6224
|
flex: 1,
|
|
6221
|
-
...
|
|
6225
|
+
...i
|
|
6222
6226
|
},
|
|
6223
|
-
children:
|
|
6227
|
+
children: t
|
|
6224
6228
|
}
|
|
6225
6229
|
),
|
|
6226
6230
|
/* @__PURE__ */ X.jsx(
|
|
6227
6231
|
Wo,
|
|
6228
6232
|
{
|
|
6229
|
-
onClick:
|
|
6233
|
+
onClick: l,
|
|
6230
6234
|
styles: {
|
|
6231
|
-
...
|
|
6235
|
+
...a.styles
|
|
6232
6236
|
},
|
|
6233
|
-
children:
|
|
6237
|
+
children: a.content
|
|
6234
6238
|
}
|
|
6235
6239
|
)
|
|
6236
6240
|
]
|
|
@@ -6265,7 +6269,7 @@ const Sn = V.createContext({
|
|
|
6265
6269
|
onValueChanged: (a) => {
|
|
6266
6270
|
e.onChange?.(a.currentTarget.value);
|
|
6267
6271
|
}
|
|
6268
|
-
}), Yo =
|
|
6272
|
+
}), Yo = Ee.div`
|
|
6269
6273
|
display: flex;
|
|
6270
6274
|
flex-direction: column;
|
|
6271
6275
|
font-family: inherit;
|
|
@@ -6295,10 +6299,10 @@ const Sn = V.createContext({
|
|
|
6295
6299
|
value: w,
|
|
6296
6300
|
initialValue: x,
|
|
6297
6301
|
type: L = "text",
|
|
6298
|
-
maxLength:
|
|
6302
|
+
maxLength: C,
|
|
6299
6303
|
inputStyles: p,
|
|
6300
6304
|
containerStyles: I,
|
|
6301
|
-
styles:
|
|
6305
|
+
styles: k,
|
|
6302
6306
|
step: F,
|
|
6303
6307
|
pattern: U,
|
|
6304
6308
|
onInput: q
|
|
@@ -6310,7 +6314,7 @@ const Sn = V.createContext({
|
|
|
6310
6314
|
width: "100%",
|
|
6311
6315
|
maxWidth: "357px",
|
|
6312
6316
|
gap: "8px",
|
|
6313
|
-
...
|
|
6317
|
+
...k
|
|
6314
6318
|
},
|
|
6315
6319
|
children: [
|
|
6316
6320
|
s,
|
|
@@ -6346,7 +6350,7 @@ const Sn = V.createContext({
|
|
|
6346
6350
|
type: L,
|
|
6347
6351
|
autoComplete: v,
|
|
6348
6352
|
step: F,
|
|
6349
|
-
maxLength:
|
|
6353
|
+
maxLength: C,
|
|
6350
6354
|
placeholder: c,
|
|
6351
6355
|
value: w,
|
|
6352
6356
|
defaultValue: x,
|
|
@@ -6458,41 +6462,47 @@ const Sn = V.createContext({
|
|
|
6458
6462
|
}
|
|
6459
6463
|
) });
|
|
6460
6464
|
}, qo = (e) => {
|
|
6461
|
-
const t = Pn("")
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6465
|
+
const t = Pn(""), r = ve(
|
|
6466
|
+
(l) => (e.allowNegatives ? (l = l.replace(/-/g, (u, c) => c === 0 ? "-" : ""), l.indexOf("-") > 0 && (l = l.replace(/-/g, ""), l = "-" + l)) : l = l.replace(/-/g, ""), l),
|
|
6467
|
+
[e]
|
|
6468
|
+
), i = ve(
|
|
6469
|
+
(l) => {
|
|
6470
|
+
if (e.allowDecimals) {
|
|
6471
|
+
l.startsWith(".") && (l = "0" + l), l.length === 2 && l[0] === "-" && l[1] === "." && (l = "-");
|
|
6472
|
+
const u = l.indexOf(".");
|
|
6473
|
+
u !== -1 && (l = l.slice(0, u + 1) + l.slice(u + 1).replace(/\./g, ""));
|
|
6474
|
+
const [c, ...v] = l.split("."), [w, ...x] = t.current.split(".");
|
|
6475
|
+
let L = v.join(""), C = x.join("");
|
|
6476
|
+
e.decimalScale !== void 0 && (L.length > e.decimalScale ? L = C : L = L.slice(0, e.decimalScale)), l = L || l.endsWith(".") ? `${c}.${L}` : c;
|
|
6477
|
+
} else
|
|
6478
|
+
l = l.replace(/\./g, "");
|
|
6479
|
+
return l;
|
|
6480
|
+
},
|
|
6481
|
+
[e]
|
|
6482
|
+
), a = ve(
|
|
6483
|
+
(l) => {
|
|
6484
|
+
const u = Number(l);
|
|
6485
|
+
var c = e.max;
|
|
6486
|
+
return c === void 0 && (c = e.maxLength ? Number("9".repeat(e.maxLength)) : void 0), !isNaN(u) && (e.min !== void 0 && u < e.min || c !== void 0 && u > c) ? t.current ?? l : l;
|
|
6487
|
+
},
|
|
6488
|
+
[e]
|
|
6489
|
+
), s = ve(
|
|
6490
|
+
(l) => {
|
|
6491
|
+
const u = l.target, c = u.selectionStart ?? 0, v = u.selectionEnd ?? 0;
|
|
6492
|
+
let w = u.value;
|
|
6493
|
+
w = w.replace(/[^0-9\.\-]/g, ""), w = r(w), w = i(w), w = a(w);
|
|
6494
|
+
const x = w.length - u.value.length;
|
|
6495
|
+
u.value = w, u.setSelectionRange(c + x, v + x), t.current = w;
|
|
6496
|
+
},
|
|
6497
|
+
[r, i, a]
|
|
6498
|
+
);
|
|
6489
6499
|
return {
|
|
6490
|
-
props:
|
|
6500
|
+
props: ve(() => ({
|
|
6491
6501
|
...e,
|
|
6492
6502
|
type: "text",
|
|
6493
6503
|
pattern: "^-?[0-9]*.?[0-9]*$",
|
|
6494
6504
|
onInput: s
|
|
6495
|
-
}), [])()
|
|
6505
|
+
}), [e, s])()
|
|
6496
6506
|
};
|
|
6497
6507
|
}, Ss = ({
|
|
6498
6508
|
allowNegatives: e = !0,
|
|
@@ -6537,7 +6547,7 @@ const Sn = V.createContext({
|
|
|
6537
6547
|
extraHeight: c()
|
|
6538
6548
|
}
|
|
6539
6549
|
};
|
|
6540
|
-
}, Xo =
|
|
6550
|
+
}, Xo = Ee.div`
|
|
6541
6551
|
min-height: 100%;
|
|
6542
6552
|
max-height: 100%;
|
|
6543
6553
|
width: 100%;
|
|
@@ -6695,7 +6705,7 @@ function Jo() {
|
|
|
6695
6705
|
(function(r, i) {
|
|
6696
6706
|
e.exports = i();
|
|
6697
6707
|
})(Ko, function() {
|
|
6698
|
-
var r = 1e3, i = 6e4, a = 36e5, s = "millisecond", d = "second", l = "minute", u = "hour", c = "day", v = "week", w = "month", x = "quarter", L = "year",
|
|
6708
|
+
var r = 1e3, i = 6e4, a = 36e5, s = "millisecond", d = "second", l = "minute", u = "hour", c = "day", v = "week", w = "month", x = "quarter", L = "year", C = "date", p = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
6699
6709
|
var E = ["th", "st", "nd", "rd"], j = T % 100;
|
|
6700
6710
|
return "[" + T + (E[(j - 20) % 10] || E[j] || E[0]) + "]";
|
|
6701
6711
|
} }, U = function(T, E, j) {
|
|
@@ -6711,7 +6721,7 @@ function Jo() {
|
|
|
6711
6721
|
}, a: function(T) {
|
|
6712
6722
|
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
6713
6723
|
}, p: function(T) {
|
|
6714
|
-
return { M: w, y: L, w: v, d: c, D:
|
|
6724
|
+
return { M: w, y: L, w: v, d: c, D: C, h: u, m: l, s: d, ms: s, Q: x }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
6715
6725
|
}, u: function(T) {
|
|
6716
6726
|
return T === void 0;
|
|
6717
6727
|
} }, g = "en", b = {};
|
|
@@ -6795,7 +6805,7 @@ function Jo() {
|
|
|
6795
6805
|
var W = this.$locale().weekStart || 0, B = ($ < W ? $ + 7 : $) - W;
|
|
6796
6806
|
return f(m ? z - B : z + (6 - B), D);
|
|
6797
6807
|
case c:
|
|
6798
|
-
case
|
|
6808
|
+
case C:
|
|
6799
6809
|
return O(N + "Hours", 0);
|
|
6800
6810
|
case u:
|
|
6801
6811
|
return O(N + "Minutes", 1);
|
|
@@ -6809,10 +6819,10 @@ function Jo() {
|
|
|
6809
6819
|
}, E.endOf = function(j) {
|
|
6810
6820
|
return this.startOf(j, !1);
|
|
6811
6821
|
}, E.$set = function(j, o) {
|
|
6812
|
-
var H, m = P.p(j), n = "set" + (this.$u ? "UTC" : ""), f = (H = {}, H[c] = n + "Date", H[
|
|
6822
|
+
var H, m = P.p(j), n = "set" + (this.$u ? "UTC" : ""), f = (H = {}, H[c] = n + "Date", H[C] = n + "Date", H[w] = n + "Month", H[L] = n + "FullYear", H[u] = n + "Hours", H[l] = n + "Minutes", H[d] = n + "Seconds", H[s] = n + "Milliseconds", H)[m], O = m === c ? this.$D + (o - this.$W) : o;
|
|
6813
6823
|
if (m === w || m === L) {
|
|
6814
|
-
var $ = this.clone().set(
|
|
6815
|
-
$.$d[f](O), $.init(), this.$d = $.set(
|
|
6824
|
+
var $ = this.clone().set(C, 1);
|
|
6825
|
+
$.$d[f](O), $.init(), this.$d = $.set(C, Math.min(this.$D, $.daysInMonth())).$d;
|
|
6816
6826
|
} else f && this.$d[f](O);
|
|
6817
6827
|
return this.init(), this;
|
|
6818
6828
|
}, E.set = function(j, o) {
|
|
@@ -6845,7 +6855,7 @@ function Jo() {
|
|
|
6845
6855
|
var Z = G < 12 ? "AM" : "PM";
|
|
6846
6856
|
return te ? Z.toLowerCase() : Z;
|
|
6847
6857
|
};
|
|
6848
|
-
return m.replace(
|
|
6858
|
+
return m.replace(k, function(G, J) {
|
|
6849
6859
|
return J || function(te) {
|
|
6850
6860
|
switch (te) {
|
|
6851
6861
|
case "YY":
|
|
@@ -6955,7 +6965,7 @@ function Jo() {
|
|
|
6955
6965
|
return this.$d.toUTCString();
|
|
6956
6966
|
}, T;
|
|
6957
6967
|
}(), _ = A.prototype;
|
|
6958
|
-
return h.prototype = _, [["$ms", s], ["$s", d], ["$m", l], ["$H", u], ["$W", c], ["$M", w], ["$y", L], ["$D",
|
|
6968
|
+
return h.prototype = _, [["$ms", s], ["$s", d], ["$m", l], ["$H", u], ["$W", c], ["$M", w], ["$y", L], ["$D", C]].forEach(function(T) {
|
|
6959
6969
|
_[T[1]] = function(E) {
|
|
6960
6970
|
return this.$g(E, T[0], T[1]);
|
|
6961
6971
|
};
|
|
@@ -7000,8 +7010,8 @@ function es() {
|
|
|
7000
7010
|
};
|
|
7001
7011
|
var w = u.utcOffset;
|
|
7002
7012
|
u.utcOffset = function(p, I) {
|
|
7003
|
-
var
|
|
7004
|
-
if (
|
|
7013
|
+
var k = this.$utils().u;
|
|
7014
|
+
if (k(p)) return this.$u ? 0 : k(this.$offset) ? w.call(this) : this.$offset;
|
|
7005
7015
|
if (typeof p == "string" && (p = function(g) {
|
|
7006
7016
|
g === void 0 && (g = "");
|
|
7007
7017
|
var b = g.match(i);
|
|
@@ -7034,11 +7044,11 @@ function es() {
|
|
|
7034
7044
|
u.toDate = function(p) {
|
|
7035
7045
|
return p === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
|
|
7036
7046
|
};
|
|
7037
|
-
var
|
|
7038
|
-
u.diff = function(p, I,
|
|
7039
|
-
if (p && this.$u === p.$u) return
|
|
7047
|
+
var C = u.diff;
|
|
7048
|
+
u.diff = function(p, I, k) {
|
|
7049
|
+
if (p && this.$u === p.$u) return C.call(this, p, I, k);
|
|
7040
7050
|
var F = this.local(), U = l(p).local();
|
|
7041
|
-
return
|
|
7051
|
+
return C.call(F, U, I, k);
|
|
7042
7052
|
};
|
|
7043
7053
|
};
|
|
7044
7054
|
});
|
|
@@ -7202,7 +7212,7 @@ const Ps = ({
|
|
|
7202
7212
|
}
|
|
7203
7213
|
)
|
|
7204
7214
|
}
|
|
7205
|
-
), ns =
|
|
7215
|
+
), ns = Ee.div`
|
|
7206
7216
|
display: flex;
|
|
7207
7217
|
flex-direction: column;
|
|
7208
7218
|
font-family: inherit;
|
|
@@ -7240,11 +7250,11 @@ const Ps = ({
|
|
|
7240
7250
|
containerStyles: x,
|
|
7241
7251
|
styles: L
|
|
7242
7252
|
}) => {
|
|
7243
|
-
const
|
|
7244
|
-
u?.(
|
|
7245
|
-
}, p = (
|
|
7246
|
-
|
|
7247
|
-
}, I = (
|
|
7253
|
+
const C = (k) => {
|
|
7254
|
+
u?.(k.currentTarget.value);
|
|
7255
|
+
}, p = (k) => {
|
|
7256
|
+
k.preventDefault(), k.stopPropagation(), c?.();
|
|
7257
|
+
}, I = (k) => {
|
|
7248
7258
|
v?.();
|
|
7249
7259
|
};
|
|
7250
7260
|
return /* @__PURE__ */ X.jsxs(
|
|
@@ -7301,7 +7311,7 @@ const Ps = ({
|
|
|
7301
7311
|
placeholder: s,
|
|
7302
7312
|
value: d,
|
|
7303
7313
|
defaultValue: l,
|
|
7304
|
-
onChange:
|
|
7314
|
+
onChange: C,
|
|
7305
7315
|
onFocus: p,
|
|
7306
7316
|
onBlur: I
|
|
7307
7317
|
}
|