@eliseubatista99/react-scaffold-core 0.1.85 → 0.1.87
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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as D from "react";
|
|
2
2
|
import q, { forwardRef as kn, useContext as Yt, useEffect as Ir, useState as Ar, useMemo as Hr, useCallback as _e, useRef as Cn } 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 qt(e) {
|
|
@@ -179,13 +179,13 @@ function Rn() {
|
|
|
179
179
|
"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."
|
|
180
180
|
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
181
181
|
}
|
|
182
|
-
function h(n, f, S, $,
|
|
182
|
+
function h(n, f, S, $, L, z, N, W) {
|
|
183
183
|
return S = z.ref, n = {
|
|
184
184
|
$$typeof: M,
|
|
185
185
|
type: n,
|
|
186
186
|
key: f,
|
|
187
187
|
props: z,
|
|
188
|
-
_owner:
|
|
188
|
+
_owner: L
|
|
189
189
|
}, (S !== void 0 ? S : null) !== null ? Object.defineProperty(n, "ref", {
|
|
190
190
|
enumerable: !1,
|
|
191
191
|
get: u
|
|
@@ -211,7 +211,7 @@ function Rn() {
|
|
|
211
211
|
value: W
|
|
212
212
|
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
213
213
|
}
|
|
214
|
-
function v(n, f, S, $,
|
|
214
|
+
function v(n, f, S, $, L, z, N, W) {
|
|
215
215
|
var V = f.children;
|
|
216
216
|
if (V !== void 0)
|
|
217
217
|
if ($)
|
|
@@ -254,7 +254,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
254
254
|
n,
|
|
255
255
|
V,
|
|
256
256
|
z,
|
|
257
|
-
|
|
257
|
+
L,
|
|
258
258
|
a(),
|
|
259
259
|
S,
|
|
260
260
|
N,
|
|
@@ -276,7 +276,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
276
276
|
R,
|
|
277
277
|
s
|
|
278
278
|
)(), H = T(i(s)), m = {};
|
|
279
|
-
ze.Fragment = p, ze.jsx = function(n, f, S, $,
|
|
279
|
+
ze.Fragment = p, ze.jsx = function(n, f, S, $, L) {
|
|
280
280
|
var z = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
281
281
|
return v(
|
|
282
282
|
n,
|
|
@@ -284,11 +284,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
284
284
|
S,
|
|
285
285
|
!1,
|
|
286
286
|
$,
|
|
287
|
-
|
|
287
|
+
L,
|
|
288
288
|
z ? Error("react-stack-top-frame") : o,
|
|
289
289
|
z ? T(i(n)) : H
|
|
290
290
|
);
|
|
291
|
-
}, ze.jsxs = function(n, f, S, $,
|
|
291
|
+
}, ze.jsxs = function(n, f, S, $, L) {
|
|
292
292
|
var z = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
293
293
|
return v(
|
|
294
294
|
n,
|
|
@@ -296,7 +296,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
296
296
|
S,
|
|
297
297
|
!0,
|
|
298
298
|
$,
|
|
299
|
-
|
|
299
|
+
L,
|
|
300
300
|
z ? Error("react-stack-top-frame") : o,
|
|
301
301
|
z ? T(i(n)) : H
|
|
302
302
|
);
|
|
@@ -406,7 +406,7 @@ function jn() {
|
|
|
406
406
|
function $(W) {
|
|
407
407
|
return A = void 0, o && E ? H(W) : (E = y = void 0, k);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function L() {
|
|
410
410
|
A !== void 0 && clearTimeout(A), T = 0, E = _ = y = A = void 0;
|
|
411
411
|
}
|
|
412
412
|
function z() {
|
|
@@ -422,7 +422,7 @@ function jn() {
|
|
|
422
422
|
}
|
|
423
423
|
return A === void 0 && (A = setTimeout(S, b)), k;
|
|
424
424
|
}
|
|
425
|
-
return N.cancel =
|
|
425
|
+
return N.cancel = L, N.flush = z, N;
|
|
426
426
|
}
|
|
427
427
|
function O(g) {
|
|
428
428
|
var b = typeof g;
|
|
@@ -629,13 +629,13 @@ function Ke() {
|
|
|
629
629
|
var f = ["onTouchStart", "onTouchMove", "onWheel"];
|
|
630
630
|
f.includes(n._reactName) || n.preventDefault();
|
|
631
631
|
}, x = Y.getOnDemandLazySlides = function(n) {
|
|
632
|
-
for (var f = [], S = R(n), $ = M(n),
|
|
633
|
-
n.lazyLoadedList.indexOf(
|
|
632
|
+
for (var f = [], S = R(n), $ = M(n), L = S; L < $; L++)
|
|
633
|
+
n.lazyLoadedList.indexOf(L) < 0 && f.push(L);
|
|
634
634
|
return f;
|
|
635
635
|
};
|
|
636
636
|
Y.getRequiredLazySlides = function(n) {
|
|
637
|
-
for (var f = [], S = R(n), $ = M(n),
|
|
638
|
-
f.push(
|
|
637
|
+
for (var f = [], S = R(n), $ = M(n), L = S; L < $; L++)
|
|
638
|
+
f.push(L);
|
|
639
639
|
return f;
|
|
640
640
|
};
|
|
641
641
|
var R = Y.lazyStartIndex = function(n) {
|
|
@@ -651,8 +651,8 @@ function Ke() {
|
|
|
651
651
|
}, O = Y.getHeight = function(n) {
|
|
652
652
|
return n && n.offsetHeight || 0;
|
|
653
653
|
}, F = Y.getSwipeDirection = function(n) {
|
|
654
|
-
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, S, $,
|
|
655
|
-
return S = n.startX - n.curX, $ = n.startY - n.curY,
|
|
654
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, S, $, L, z;
|
|
655
|
+
return S = n.startX - n.curX, $ = n.startY - n.curY, L = Math.atan2($, S), z = Math.round(L * 180 / Math.PI), z < 0 && (z = 360 - Math.abs(z)), z <= 45 && z >= 0 || z <= 360 && z >= 315 ? "left" : z >= 135 && z <= 225 ? "right" : f === !0 ? z >= 35 && z <= 135 ? "up" : "down" : "vertical";
|
|
656
656
|
}, U = Y.canGoNext = function(n) {
|
|
657
657
|
var f = !0;
|
|
658
658
|
return n.infinite || (n.centerMode && n.currentSlide >= n.slideCount - 1 || n.slideCount <= n.slidesToShow || n.currentSlide >= n.slideCount - n.slidesToShow) && (f = !1), f;
|
|
@@ -663,7 +663,7 @@ function Ke() {
|
|
|
663
663
|
return S[$] = n[$];
|
|
664
664
|
}), S;
|
|
665
665
|
}, Y.initializedState = function(n) {
|
|
666
|
-
var f = e.default.Children.count(n.children), S = n.listRef, $ = Math.ceil(I(S)),
|
|
666
|
+
var f = e.default.Children.count(n.children), S = n.listRef, $ = Math.ceil(I(S)), L = n.trackRef && n.trackRef.node, z = Math.ceil(I(L)), N;
|
|
667
667
|
if (n.vertical)
|
|
668
668
|
N = $;
|
|
669
669
|
else {
|
|
@@ -689,11 +689,11 @@ function Ke() {
|
|
|
689
689
|
};
|
|
690
690
|
return n.autoplaying === null && n.autoplay && (Z.autoplaying = "playing"), Z;
|
|
691
691
|
}, Y.slideHandler = function(n) {
|
|
692
|
-
var f = n.waitForAnimate, S = n.animating, $ = n.fade,
|
|
692
|
+
var f = n.waitForAnimate, S = n.animating, $ = n.fade, L = n.infinite, z = n.index, N = n.slideCount, W = n.lazyLoad, V = n.currentSlide, K = n.centerMode, X = n.slidesToScroll, J = n.slidesToShow, te = n.useCSS, Z = n.lazyLoadedList;
|
|
693
693
|
if (f && S) return {};
|
|
694
|
-
var ee = z, ie, le, Q, oe = {}, ue = {}, ce =
|
|
694
|
+
var ee = z, ie, le, Q, oe = {}, ue = {}, ce = L ? z : h(z, 0, N - 1);
|
|
695
695
|
if ($) {
|
|
696
|
-
if (!
|
|
696
|
+
if (!L && (z < 0 || z >= N)) return {};
|
|
697
697
|
z < 0 ? ee = z + N : z >= N && (ee = z - N), W && Z.indexOf(ee) < 0 && (Z = Z.concat(ee)), oe = {
|
|
698
698
|
animating: !0,
|
|
699
699
|
currentSlide: ee,
|
|
@@ -704,11 +704,11 @@ function Ke() {
|
|
|
704
704
|
targetSlide: ee
|
|
705
705
|
};
|
|
706
706
|
} else
|
|
707
|
-
ie = ee, ee < 0 ? (ie = ee + N,
|
|
707
|
+
ie = ee, ee < 0 ? (ie = ee + N, L ? N % X !== 0 && (ie = N - N % X) : ie = 0) : !U(n) && ee > V ? ee = ie = V : K && ee >= N ? (ee = L ? N : N - 1, ie = L ? 0 : N - 1) : ee >= N && (ie = ee - N, L ? N % X !== 0 && (ie = 0) : ie = N - J), !L && ee + J >= N && (ie = N - J), le = d(s(s({}, n), {}, {
|
|
708
708
|
slideIndex: ee
|
|
709
709
|
})), Q = d(s(s({}, n), {}, {
|
|
710
710
|
slideIndex: ie
|
|
711
|
-
})),
|
|
711
|
+
})), L || (le === Q && (ee = ie), le = Q), W && (Z = Z.concat(x(s(s({}, n), {}, {
|
|
712
712
|
currentSlide: ee
|
|
713
713
|
})))), te ? (oe = {
|
|
714
714
|
animating: !0,
|
|
@@ -739,11 +739,11 @@ function Ke() {
|
|
|
739
739
|
nextState: ue
|
|
740
740
|
};
|
|
741
741
|
}, Y.changeSlide = function(n, f) {
|
|
742
|
-
var S, $,
|
|
742
|
+
var S, $, L, z, N, W = n.slidesToScroll, V = n.slidesToShow, K = n.slideCount, X = n.currentSlide, J = n.targetSlide, te = n.lazyLoad, Z = n.infinite;
|
|
743
743
|
if (z = K % W !== 0, S = z ? 0 : (K - X) % W, f.message === "previous")
|
|
744
|
-
|
|
744
|
+
L = S === 0 ? W : V - S, N = X - L, te && !Z && ($ = X - L, N = $ === -1 ? K - 1 : $), Z || (N = J - W);
|
|
745
745
|
else if (f.message === "next")
|
|
746
|
-
|
|
746
|
+
L = S === 0 ? W : S, N = X + L, te && !Z && (N = (X + W) % K + S), Z || (N = J + W);
|
|
747
747
|
else if (f.message === "dots")
|
|
748
748
|
N = f.index * f.slidesToScroll;
|
|
749
749
|
else if (f.message === "children") {
|
|
@@ -768,10 +768,10 @@ function Ke() {
|
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
770
|
}, Y.swipeMove = function(n, f) {
|
|
771
|
-
var S = f.scrolling, $ = f.animating,
|
|
771
|
+
var S = f.scrolling, $ = f.animating, L = f.vertical, z = f.swipeToSlide, N = f.verticalSwiping, W = f.rtl, V = f.currentSlide, K = f.edgeFriction, X = f.edgeDragged, J = f.onEdge, te = f.swiped, Z = f.swiping, ee = f.slideCount, ie = f.slidesToScroll, le = f.infinite, Q = f.touchObject, oe = f.swipeEvent, ue = f.listHeight, ce = f.listWidth;
|
|
772
772
|
if (!S) {
|
|
773
773
|
if ($) return v(n);
|
|
774
|
-
|
|
774
|
+
L && z && N && v(n);
|
|
775
775
|
var pe, Ee = {}, tt = d(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)));
|
|
@@ -783,7 +783,7 @@ function Ke() {
|
|
|
783
783
|
var Ie = (W ? -1 : 1) * (Q.curX > Q.startX ? 1 : -1);
|
|
784
784
|
N && (Ie = Q.curY > Q.startY ? 1 : -1);
|
|
785
785
|
var On = Math.ceil(ee / ie), Ce = F(f.touchObject, N), Ae = Q.swipeLength;
|
|
786
|
-
return le || (V === 0 && (Ce === "right" || Ce === "down") || V + 1 >= On && (Ce === "left" || Ce === "up") || !U(f) && (Ce === "left" || Ce === "up")) && (Ae = Q.swipeLength * K, X === !1 && J && (J(Ce), Ee.edgeDragged = !0)), !te && oe && (oe(Ce), Ee.swiped = !0),
|
|
786
|
+
return le || (V === 0 && (Ce === "right" || Ce === "down") || V + 1 >= On && (Ce === "left" || Ce === "up") || !U(f) && (Ce === "left" || Ce === "up")) && (Ae = Q.swipeLength * K, X === !1 && J && (J(Ce), Ee.edgeDragged = !0)), !te && oe && (oe(Ce), Ee.swiped = !0), L ? pe = tt + Ae * (ue / ce) * Ie : W ? pe = tt - Ae * Ie : pe = tt + Ae * Ie, N && (pe = tt + Ae * Ie), Ee = s(s({}, Ee), {}, {
|
|
787
787
|
touchObject: Q,
|
|
788
788
|
swipeLeft: pe,
|
|
789
789
|
trackStyle: E(s(s({}, f), {}, {
|
|
@@ -792,10 +792,10 @@ function Ke() {
|
|
|
792
792
|
}), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (Ee.swiping = !0, v(n)), Ee;
|
|
793
793
|
}
|
|
794
794
|
}, Y.swipeEnd = function(n, f) {
|
|
795
|
-
var S = f.dragging, $ = f.swipe,
|
|
795
|
+
var S = f.dragging, $ = f.swipe, L = f.touchObject, z = f.listWidth, N = f.touchThreshold, W = f.verticalSwiping, V = f.listHeight, K = f.swipeToSlide, X = f.scrolling, J = f.onSwipe, te = f.targetSlide, Z = f.currentSlide, ee = f.infinite;
|
|
796
796
|
if (!S)
|
|
797
797
|
return $ && v(n), {};
|
|
798
|
-
var ie = W ? V / N : z / N, le = F(
|
|
798
|
+
var ie = W ? V / N : z / N, le = F(L, W), Q = {
|
|
799
799
|
dragging: !1,
|
|
800
800
|
edgeDragged: !1,
|
|
801
801
|
scrolling: !1,
|
|
@@ -804,9 +804,9 @@ function Ke() {
|
|
|
804
804
|
swipeLeft: null,
|
|
805
805
|
touchObject: {}
|
|
806
806
|
};
|
|
807
|
-
if (X || !
|
|
807
|
+
if (X || !L.swipeLength)
|
|
808
808
|
return Q;
|
|
809
|
-
if (
|
|
809
|
+
if (L.swipeLength > ie) {
|
|
810
810
|
v(n), J && J(le);
|
|
811
811
|
var oe, ue, ce = ee ? Z : te;
|
|
812
812
|
switch (le) {
|
|
@@ -831,27 +831,27 @@ function Ke() {
|
|
|
831
831
|
return Q;
|
|
832
832
|
};
|
|
833
833
|
var B = Y.getNavigableIndexes = function(n) {
|
|
834
|
-
for (var f = n.infinite ? n.slideCount * 2 : n.slideCount, S = n.infinite ? n.slidesToShow * -1 : 0, $ = n.infinite ? n.slidesToShow * -1 : 0,
|
|
835
|
-
|
|
836
|
-
return
|
|
834
|
+
for (var f = n.infinite ? n.slideCount * 2 : n.slideCount, S = n.infinite ? n.slidesToShow * -1 : 0, $ = n.infinite ? n.slidesToShow * -1 : 0, L = []; S < f; )
|
|
835
|
+
L.push(S), S = $ + n.slidesToScroll, $ += Math.min(n.slidesToScroll, n.slidesToShow);
|
|
836
|
+
return L;
|
|
837
837
|
}, g = Y.checkNavigable = function(n, f) {
|
|
838
838
|
var S = B(n), $ = 0;
|
|
839
839
|
if (f > S[S.length - 1])
|
|
840
840
|
f = S[S.length - 1];
|
|
841
841
|
else
|
|
842
|
-
for (var
|
|
843
|
-
if (f < S[
|
|
842
|
+
for (var L in S) {
|
|
843
|
+
if (f < S[L]) {
|
|
844
844
|
f = $;
|
|
845
845
|
break;
|
|
846
846
|
}
|
|
847
|
-
$ = S[
|
|
847
|
+
$ = S[L];
|
|
848
848
|
}
|
|
849
849
|
return f;
|
|
850
850
|
}, b = Y.getSlideCount = function(n) {
|
|
851
851
|
var f = n.centerMode ? n.slideWidth * Math.floor(n.slidesToShow / 2) : 0;
|
|
852
852
|
if (n.swipeToSlide) {
|
|
853
|
-
var S, $ = n.listRef,
|
|
854
|
-
if (Array.from(
|
|
853
|
+
var S, $ = n.listRef, L = $.querySelectorAll && $.querySelectorAll(".slick-slide") || [];
|
|
854
|
+
if (Array.from(L).every(function(W) {
|
|
855
855
|
if (n.vertical) {
|
|
856
856
|
if (W.offsetTop + O(W) / 2 > n.swipeLeft * -1)
|
|
857
857
|
return S = W, !1;
|
|
@@ -877,23 +877,23 @@ function Ke() {
|
|
|
877
877
|
var $ = n.unslick ? n.slideCount : n.slideCount + 2 * n.slidesToShow;
|
|
878
878
|
S = $ * n.slideHeight;
|
|
879
879
|
}
|
|
880
|
-
var
|
|
880
|
+
var L = {
|
|
881
881
|
opacity: 1,
|
|
882
882
|
transition: "",
|
|
883
883
|
WebkitTransition: ""
|
|
884
884
|
};
|
|
885
885
|
if (n.useTransform) {
|
|
886
886
|
var z = n.vertical ? "translate3d(0px, " + n.left + "px, 0px)" : "translate3d(" + n.left + "px, 0px, 0px)", N = n.vertical ? "translate3d(0px, " + n.left + "px, 0px)" : "translate3d(" + n.left + "px, 0px, 0px)", W = n.vertical ? "translateY(" + n.left + "px)" : "translateX(" + n.left + "px)";
|
|
887
|
-
|
|
887
|
+
L = s(s({}, L), {}, {
|
|
888
888
|
WebkitTransform: z,
|
|
889
889
|
transform: N,
|
|
890
890
|
msTransform: W
|
|
891
891
|
});
|
|
892
892
|
} else
|
|
893
|
-
n.vertical ?
|
|
894
|
-
return n.fade && (
|
|
893
|
+
n.vertical ? L.top = n.left : L.left = n.left;
|
|
894
|
+
return n.fade && (L = {
|
|
895
895
|
opacity: 1
|
|
896
|
-
}), f && (
|
|
896
|
+
}), f && (L.width = f), S && (L.height = S), window && !window.addEventListener && window.attachEvent && (n.vertical ? L.marginTop = n.left + "px" : L.marginLeft = n.left + "px"), L;
|
|
897
897
|
}, y = Y.getTrackAnimateCSS = function(n) {
|
|
898
898
|
w(n, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]);
|
|
899
899
|
var f = E(n);
|
|
@@ -902,13 +902,13 @@ function Ke() {
|
|
|
902
902
|
if (n.unslick)
|
|
903
903
|
return 0;
|
|
904
904
|
w(n, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
|
|
905
|
-
var f = n.slideIndex, S = n.trackRef, $ = n.infinite,
|
|
905
|
+
var f = n.slideIndex, S = n.trackRef, $ = n.infinite, L = n.centerMode, z = n.slideCount, N = n.slidesToShow, W = n.slidesToScroll, V = n.slideWidth, K = n.listWidth, X = n.variableWidth, J = n.slideHeight, te = n.fade, Z = n.vertical, ee = 0, ie, le, Q = 0;
|
|
906
906
|
if (te || n.slideCount === 1)
|
|
907
907
|
return 0;
|
|
908
908
|
var oe = 0;
|
|
909
|
-
if ($ ? (oe = -k(n), z % W !== 0 && f + W > z && (oe = -(f > z ? N - (f - z) : z % W)),
|
|
909
|
+
if ($ ? (oe = -k(n), z % W !== 0 && f + W > z && (oe = -(f > z ? N - (f - z) : z % W)), L && (oe += parseInt(N / 2))) : (z % W !== 0 && f + W > z && (oe = N - z % W), L && (oe = parseInt(N / 2))), ee = oe * V, Q = oe * J, Z ? ie = f * J * -1 + Q : ie = f * V * -1 + ee, X === !0) {
|
|
910
910
|
var ue, ce = S && S.node;
|
|
911
|
-
if (ue = f + k(n), le = ce && ce.childNodes[ue], ie = le ? le.offsetLeft * -1 : 0,
|
|
911
|
+
if (ue = f + k(n), le = ce && ce.childNodes[ue], ie = le ? le.offsetLeft * -1 : 0, L === !0) {
|
|
912
912
|
ue = $ ? f + k(n) : f, le = ce && ce.children[ue], ie = 0;
|
|
913
913
|
for (var pe = 0; pe < ue; pe++)
|
|
914
914
|
ie -= ce && ce.children[pe] && ce.children[pe].offsetWidth;
|
|
@@ -925,17 +925,17 @@ function Ke() {
|
|
|
925
925
|
}, T = Y.siblingDirection = function(n) {
|
|
926
926
|
return n.targetSlide > n.currentSlide ? n.targetSlide > n.currentSlide + C(n) ? "left" : "right" : n.targetSlide < n.currentSlide - j(n) ? "right" : "left";
|
|
927
927
|
}, C = Y.slidesOnRight = function(n) {
|
|
928
|
-
var f = n.slidesToShow, S = n.centerMode, $ = n.rtl,
|
|
928
|
+
var f = n.slidesToShow, S = n.centerMode, $ = n.rtl, L = n.centerPadding;
|
|
929
929
|
if (S) {
|
|
930
930
|
var z = (f - 1) / 2 + 1;
|
|
931
|
-
return parseInt(
|
|
931
|
+
return parseInt(L) > 0 && (z += 1), $ && f % 2 === 0 && (z += 1), z;
|
|
932
932
|
}
|
|
933
933
|
return $ ? 0 : f - 1;
|
|
934
934
|
}, j = Y.slidesOnLeft = function(n) {
|
|
935
|
-
var f = n.slidesToShow, S = n.centerMode, $ = n.rtl,
|
|
935
|
+
var f = n.slidesToShow, S = n.centerMode, $ = n.rtl, L = n.centerPadding;
|
|
936
936
|
if (S) {
|
|
937
937
|
var z = (f - 1) / 2 + 1;
|
|
938
|
-
return parseInt(
|
|
938
|
+
return parseInt(L) > 0 && (z += 1), !$ && f % 2 === 0 && (z += 1), z;
|
|
939
939
|
}
|
|
940
940
|
return $ ? f - 1 : 0;
|
|
941
941
|
};
|
|
@@ -951,7 +951,7 @@ function Ke() {
|
|
|
951
951
|
return Y;
|
|
952
952
|
}
|
|
953
953
|
var Fe = {}, cr;
|
|
954
|
-
function
|
|
954
|
+
function Ln() {
|
|
955
955
|
if (cr) return Fe;
|
|
956
956
|
cr = 1, Object.defineProperty(Fe, "__esModule", {
|
|
957
957
|
value: !0
|
|
@@ -1103,15 +1103,15 @@ function Dn() {
|
|
|
1103
1103
|
!d.lazyLoad || d.lazyLoad && d.lazyLoadedList.indexOf(m) >= 0 ? n = H : n = /* @__PURE__ */ e.default.createElement("div", null);
|
|
1104
1104
|
var S = b(O(O({}, d), {}, {
|
|
1105
1105
|
index: m
|
|
1106
|
-
})), $ = n.props.className || "",
|
|
1106
|
+
})), $ = n.props.className || "", L = g(O(O({}, d), {}, {
|
|
1107
1107
|
index: m
|
|
1108
1108
|
}));
|
|
1109
1109
|
if (A.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1110
1110
|
key: "original" + w(n, m),
|
|
1111
1111
|
"data-index": m,
|
|
1112
|
-
className: (0, t.default)(
|
|
1112
|
+
className: (0, t.default)(L, $),
|
|
1113
1113
|
tabIndex: "-1",
|
|
1114
|
-
"aria-hidden": !
|
|
1114
|
+
"aria-hidden": !L["slick-active"],
|
|
1115
1115
|
style: O(O({
|
|
1116
1116
|
outline: "none"
|
|
1117
1117
|
}, n.props.style || {}), S),
|
|
@@ -1120,26 +1120,26 @@ function Dn() {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
})), d.infinite && C > 1 && d.fade === !1 && !d.unslick) {
|
|
1122
1122
|
var z = C - m;
|
|
1123
|
-
z <= (0, r.getPreClones)(d) && (k = -z, k >= j && (n = H),
|
|
1123
|
+
z <= (0, r.getPreClones)(d) && (k = -z, k >= j && (n = H), L = g(O(O({}, d), {}, {
|
|
1124
1124
|
index: k
|
|
1125
1125
|
})), _.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1126
1126
|
key: "precloned" + w(n, k),
|
|
1127
1127
|
"data-index": k,
|
|
1128
1128
|
tabIndex: "-1",
|
|
1129
|
-
className: (0, t.default)(
|
|
1130
|
-
"aria-hidden": !
|
|
1129
|
+
className: (0, t.default)(L, $),
|
|
1130
|
+
"aria-hidden": !L["slick-active"],
|
|
1131
1131
|
style: O(O({}, n.props.style || {}), S),
|
|
1132
1132
|
onClick: function(W) {
|
|
1133
1133
|
n.props && n.props.onClick && n.props.onClick(W), d.focusOnSelect && d.focusOnSelect(f);
|
|
1134
1134
|
}
|
|
1135
|
-
}))), m < (0, r.getPostClones)(d) && (k = C + m, k < o && (n = H),
|
|
1135
|
+
}))), m < (0, r.getPostClones)(d) && (k = C + m, k < o && (n = H), L = g(O(O({}, d), {}, {
|
|
1136
1136
|
index: k
|
|
1137
1137
|
})), T.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1138
1138
|
key: "postcloned" + w(n, k),
|
|
1139
1139
|
"data-index": k,
|
|
1140
1140
|
tabIndex: "-1",
|
|
1141
|
-
className: (0, t.default)(
|
|
1142
|
-
"aria-hidden": !
|
|
1141
|
+
className: (0, t.default)(L, $),
|
|
1142
|
+
"aria-hidden": !L["slick-active"],
|
|
1143
1143
|
style: O(O({}, n.props.style || {}), S),
|
|
1144
1144
|
onClick: function(W) {
|
|
1145
1145
|
n.props && n.props.onClick && n.props.onClick(W), d.focusOnSelect && d.focusOnSelect(f);
|
|
@@ -1178,7 +1178,7 @@ function Dn() {
|
|
|
1178
1178
|
}(e.default.PureComponent), Fe;
|
|
1179
1179
|
}
|
|
1180
1180
|
var We = {}, fr;
|
|
1181
|
-
function
|
|
1181
|
+
function Dn() {
|
|
1182
1182
|
if (fr) return We;
|
|
1183
1183
|
fr = 1;
|
|
1184
1184
|
function e(g) {
|
|
@@ -1318,7 +1318,7 @@ function Ln() {
|
|
|
1318
1318
|
onMouseOver: k,
|
|
1319
1319
|
onMouseLeave: A
|
|
1320
1320
|
}, n = [], f = 0; f < H; f++) {
|
|
1321
|
-
var S = (f + 1) * T - 1, $ = _ ? S : (0, i.clamp)(S, 0, j - 1),
|
|
1321
|
+
var S = (f + 1) * T - 1, $ = _ ? S : (0, i.clamp)(S, 0, j - 1), L = $ - (T - 1), z = _ ? L : (0, i.clamp)(L, 0, j - 1), N = (0, r.default)({
|
|
1322
1322
|
"slick-active": _ ? o >= z && o <= $ : o === z
|
|
1323
1323
|
}), W = {
|
|
1324
1324
|
message: "dots",
|
|
@@ -1840,7 +1840,7 @@ function ti() {
|
|
|
1840
1840
|
pr = 1, Object.defineProperty(Ne, "__esModule", {
|
|
1841
1841
|
value: !0
|
|
1842
1842
|
}), Ne.InnerSlider = void 0;
|
|
1843
|
-
var e = h(q), t = h(Tn()), r = h(jn()), i = h(yt()), a = Ke(), s =
|
|
1843
|
+
var e = h(q), t = h(Tn()), r = h(jn()), i = h(yt()), a = Ke(), s = Ln(), c = Dn(), l = Mn(), u = h(ei);
|
|
1844
1844
|
function h(_) {
|
|
1845
1845
|
return _ && _.__esModule ? _ : { default: _ };
|
|
1846
1846
|
}
|
|
@@ -2063,8 +2063,8 @@ function ti() {
|
|
|
2063
2063
|
m = p(p({}, m), {}, {
|
|
2064
2064
|
left: $
|
|
2065
2065
|
});
|
|
2066
|
-
var
|
|
2067
|
-
(n || e.default.Children.count(o.props.children) !== e.default.Children.count(m.children)) && (S.trackStyle =
|
|
2066
|
+
var L = (0, a.getTrackCSS)(m);
|
|
2067
|
+
(n || e.default.Children.count(o.props.children) !== e.default.Children.count(m.children)) && (S.trackStyle = L), o.setState(S, f);
|
|
2068
2068
|
}), d(w(o), "ssrInit", function() {
|
|
2069
2069
|
if (o.props.variableWidth) {
|
|
2070
2070
|
var m = 0, n = 0, f = [], S = (0, a.getPreClones)(p(p(p({}, o.props), o.state), {}, {
|
|
@@ -2075,8 +2075,8 @@ function ti() {
|
|
|
2075
2075
|
o.props.children.forEach(function(le) {
|
|
2076
2076
|
f.push(le.props.style.width), m += le.props.style.width;
|
|
2077
2077
|
});
|
|
2078
|
-
for (var
|
|
2079
|
-
n += f[f.length - 1 -
|
|
2078
|
+
for (var L = 0; L < S; L++)
|
|
2079
|
+
n += f[f.length - 1 - L], m += f[f.length - 1 - L];
|
|
2080
2080
|
for (var z = 0; z < $; z++)
|
|
2081
2081
|
m += f[z];
|
|
2082
2082
|
for (var N = 0; N < o.state.currentSlide; N++)
|
|
@@ -2116,9 +2116,9 @@ function ti() {
|
|
|
2116
2116
|
return S.parentNode.focus();
|
|
2117
2117
|
};
|
|
2118
2118
|
else {
|
|
2119
|
-
var
|
|
2119
|
+
var L = S.onclick;
|
|
2120
2120
|
S.onclick = function(z) {
|
|
2121
|
-
|
|
2121
|
+
L(z), S.parentNode.focus();
|
|
2122
2122
|
};
|
|
2123
2123
|
}
|
|
2124
2124
|
S.onload || (o.props.lazyLoad ? S.onload = function() {
|
|
@@ -2144,7 +2144,7 @@ function ti() {
|
|
|
2144
2144
|
};
|
|
2145
2145
|
}), o.props.onLazyLoad && o.props.onLazyLoad(m)) : o.lazyLoadTimer && (clearInterval(o.lazyLoadTimer), delete o.lazyLoadTimer);
|
|
2146
2146
|
}), d(w(o), "slideHandler", function(m) {
|
|
2147
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, f = o.props, S = f.asNavFor, $ = f.beforeChange,
|
|
2147
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, f = o.props, S = f.asNavFor, $ = f.beforeChange, L = f.onLazyLoad, z = f.speed, N = f.afterChange, W = o.state.currentSlide, V = (0, a.slideHandler)(p(p(p({
|
|
2148
2148
|
index: m
|
|
2149
2149
|
}, o.props), o.state), {}, {
|
|
2150
2150
|
trackRef: o.track,
|
|
@@ -2155,7 +2155,7 @@ function ti() {
|
|
|
2155
2155
|
var J = K.lazyLoadedList.filter(function(te) {
|
|
2156
2156
|
return o.state.lazyLoadedList.indexOf(te) < 0;
|
|
2157
2157
|
});
|
|
2158
|
-
|
|
2158
|
+
L && J.length > 0 && L(J), !o.props.waitForAnimate && o.animationEndCallback && (clearTimeout(o.animationEndCallback), N && N(W), delete o.animationEndCallback), o.setState(K, function() {
|
|
2159
2159
|
S && o.asNavForIndex !== m && (o.asNavForIndex = m, S.innerSlider.slideHandler(m)), X && (o.animationEndCallback = setTimeout(function() {
|
|
2160
2160
|
var te = X.animating, Z = R(X, ["animating"]);
|
|
2161
2161
|
o.setState(Z, function() {
|
|
@@ -2293,13 +2293,13 @@ function ti() {
|
|
|
2293
2293
|
});
|
|
2294
2294
|
var $;
|
|
2295
2295
|
if (o.props.dots === !0 && o.state.slideCount >= o.props.slidesToShow) {
|
|
2296
|
-
var
|
|
2297
|
-
|
|
2296
|
+
var L = (0, a.extractObject)(n, ["dotsClass", "slideCount", "slidesToShow", "currentSlide", "slidesToScroll", "clickHandler", "children", "customPaging", "infinite", "appendDots"]), z = o.props.pauseOnDotsHover;
|
|
2297
|
+
L = p(p({}, L), {}, {
|
|
2298
2298
|
clickHandler: o.changeSlide,
|
|
2299
2299
|
onMouseEnter: z ? o.onDotsLeave : null,
|
|
2300
2300
|
onMouseOver: z ? o.onDotsOver : null,
|
|
2301
2301
|
onMouseLeave: z ? o.onDotsLeave : null
|
|
2302
|
-
}), $ = /* @__PURE__ */ e.default.createElement(c.Dots,
|
|
2302
|
+
}), $ = /* @__PURE__ */ e.default.createElement(c.Dots, L);
|
|
2303
2303
|
}
|
|
2304
2304
|
var N, W, V = (0, a.extractObject)(n, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
|
|
2305
2305
|
V.clickHandler = o.changeSlide, o.props.arrows && (N = /* @__PURE__ */ e.default.createElement(l.PrevArrow, V), W = /* @__PURE__ */ e.default.createElement(l.NextArrow, V));
|
|
@@ -2368,20 +2368,20 @@ function ti() {
|
|
|
2368
2368
|
}]), C;
|
|
2369
2369
|
}(e.default.Component), Ne;
|
|
2370
2370
|
}
|
|
2371
|
-
var
|
|
2371
|
+
var Lt, mr;
|
|
2372
2372
|
function ri() {
|
|
2373
|
-
if (mr) return
|
|
2373
|
+
if (mr) return Lt;
|
|
2374
2374
|
mr = 1;
|
|
2375
2375
|
var e = function(t) {
|
|
2376
2376
|
return t.replace(/[A-Z]/g, function(r) {
|
|
2377
2377
|
return "-" + r.toLowerCase();
|
|
2378
2378
|
}).toLowerCase();
|
|
2379
2379
|
};
|
|
2380
|
-
return
|
|
2380
|
+
return Lt = e, Lt;
|
|
2381
2381
|
}
|
|
2382
|
-
var
|
|
2382
|
+
var Dt, vr;
|
|
2383
2383
|
function ni() {
|
|
2384
|
-
if (vr) return
|
|
2384
|
+
if (vr) return Dt;
|
|
2385
2385
|
vr = 1;
|
|
2386
2386
|
var e = ri(), t = function(a) {
|
|
2387
2387
|
var s = /[height|width]$/;
|
|
@@ -2398,7 +2398,7 @@ function ni() {
|
|
|
2398
2398
|
s += r(c), l < a.length - 1 && (s += ", ");
|
|
2399
2399
|
}), s) : r(a);
|
|
2400
2400
|
};
|
|
2401
|
-
return
|
|
2401
|
+
return Dt = i, Dt;
|
|
2402
2402
|
}
|
|
2403
2403
|
var gr;
|
|
2404
2404
|
function ii() {
|
|
@@ -2603,12 +2603,12 @@ function ii() {
|
|
|
2603
2603
|
key: "render",
|
|
2604
2604
|
value: function() {
|
|
2605
2605
|
var A = this, _, T;
|
|
2606
|
-
this.state.breakpoint ? (T = this.props.responsive.filter(function(
|
|
2607
|
-
return
|
|
2606
|
+
this.state.breakpoint ? (T = this.props.responsive.filter(function(L) {
|
|
2607
|
+
return L.breakpoint === A.state.breakpoint;
|
|
2608
2608
|
}), _ = T[0].settings === "unslick" ? "unslick" : v(v(v({}, a.default), this.props), T[0].settings)) : _ = v(v({}, a.default), this.props), _.centerMode && (_.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(_.slidesToScroll)), _.slidesToScroll = 1), _.fade && (_.slidesToShow > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(_.slidesToShow)), _.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(_.slidesToScroll)), _.slidesToShow = 1, _.slidesToScroll = 1);
|
|
2609
2609
|
var C = t.default.Children.toArray(this.props.children);
|
|
2610
|
-
C = C.filter(function(
|
|
2611
|
-
return typeof
|
|
2610
|
+
C = C.filter(function(L) {
|
|
2611
|
+
return typeof L == "string" ? !!L.trim() : !!L;
|
|
2612
2612
|
}), _.variableWidth && (_.rows > 1 || _.slidesPerRow > 1) && (console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"), _.variableWidth = !1);
|
|
2613
2613
|
for (var j = [], o = null, H = 0; H < C.length; H += _.rows * _.slidesPerRow) {
|
|
2614
2614
|
for (var m = [], n = H; n < H + _.rows * _.slidesPerRow; n += _.slidesPerRow) {
|
|
@@ -2747,9 +2747,9 @@ function it(e, t) {
|
|
|
2747
2747
|
function gi(e, t) {
|
|
2748
2748
|
return e.map(t).join("");
|
|
2749
2749
|
}
|
|
2750
|
-
var St = 1,
|
|
2750
|
+
var St = 1, Le = 1, Xr = 0, he = 0, se = 0, De = "";
|
|
2751
2751
|
function xt(e, t, r, i, a, s, c) {
|
|
2752
|
-
return { value: e, root: t, parent: r, type: i, props: a, children: s, line: St, column:
|
|
2752
|
+
return { value: e, root: t, parent: r, type: i, props: a, children: s, line: St, column: Le, length: c, return: "" };
|
|
2753
2753
|
}
|
|
2754
2754
|
function Ue(e, t) {
|
|
2755
2755
|
return pi(xt("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
@@ -2758,19 +2758,19 @@ function yi() {
|
|
|
2758
2758
|
return se;
|
|
2759
2759
|
}
|
|
2760
2760
|
function bi() {
|
|
2761
|
-
return se = he > 0 ? fe(
|
|
2761
|
+
return se = he > 0 ? fe(De, --he) : 0, Le--, se === 10 && (Le = 1, St--), se;
|
|
2762
2762
|
}
|
|
2763
2763
|
function me() {
|
|
2764
|
-
return se = he < Xr ? fe(
|
|
2764
|
+
return se = he < Xr ? fe(De, he++) : 0, Le++, se === 10 && (Le = 1, St++), se;
|
|
2765
2765
|
}
|
|
2766
2766
|
function be() {
|
|
2767
|
-
return fe(
|
|
2767
|
+
return fe(De, he);
|
|
2768
2768
|
}
|
|
2769
2769
|
function ot() {
|
|
2770
2770
|
return he;
|
|
2771
2771
|
}
|
|
2772
2772
|
function Je(e, t) {
|
|
2773
|
-
return Be(
|
|
2773
|
+
return Be(De, e, t);
|
|
2774
2774
|
}
|
|
2775
2775
|
function Ve(e) {
|
|
2776
2776
|
switch (e) {
|
|
@@ -2811,10 +2811,10 @@ function Ve(e) {
|
|
|
2811
2811
|
return 0;
|
|
2812
2812
|
}
|
|
2813
2813
|
function Gr(e) {
|
|
2814
|
-
return St =
|
|
2814
|
+
return St = Le = 1, Xr = ge(De = e), he = 0, [];
|
|
2815
2815
|
}
|
|
2816
2816
|
function Kr(e) {
|
|
2817
|
-
return
|
|
2817
|
+
return De = "", e;
|
|
2818
2818
|
}
|
|
2819
2819
|
function st(e) {
|
|
2820
2820
|
return Vr(Je(he - 1, Nt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
@@ -3050,7 +3050,7 @@ var _i = function(t, r, i) {
|
|
|
3050
3050
|
return t;
|
|
3051
3051
|
}, ji = function(t, r) {
|
|
3052
3052
|
return Kr(Ti(Gr(t), r));
|
|
3053
|
-
}, Sr = /* @__PURE__ */ new WeakMap(),
|
|
3053
|
+
}, Sr = /* @__PURE__ */ new WeakMap(), Li = function(t) {
|
|
3054
3054
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
3055
3055
|
// negative .length indicates that this rule has been already prefixed
|
|
3056
3056
|
t.length < 1)) {
|
|
@@ -3063,7 +3063,7 @@ var _i = function(t, r, i) {
|
|
|
3063
3063
|
t.props[h] = s[u] ? c[u].replace(/&\f/g, l[v]) : l[v] + " " + c[u];
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
|
-
},
|
|
3066
|
+
}, Di = function(t) {
|
|
3067
3067
|
if (t.type === "decl") {
|
|
3068
3068
|
var r = t.value;
|
|
3069
3069
|
// charcode for l
|
|
@@ -3264,7 +3264,7 @@ var Mi = function(t, r, i, a) {
|
|
|
3264
3264
|
l.push(p);
|
|
3265
3265
|
}
|
|
3266
3266
|
);
|
|
3267
|
-
var u, h = [
|
|
3267
|
+
var u, h = [Li, Di];
|
|
3268
3268
|
{
|
|
3269
3269
|
var v, x = [Pi, Ri(function(p) {
|
|
3270
3270
|
v.insert(p);
|
|
@@ -3514,7 +3514,7 @@ function qi(e, t, r) {
|
|
|
3514
3514
|
}
|
|
3515
3515
|
var Bi = function(t) {
|
|
3516
3516
|
return t();
|
|
3517
|
-
}, Vi =
|
|
3517
|
+
}, Vi = D.useInsertionEffect ? D.useInsertionEffect : !1, Xi = Vi || Bi, tn = /* @__PURE__ */ D.createContext(
|
|
3518
3518
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
3519
3519
|
// because this module is primarily intended for the browser and node
|
|
3520
3520
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -3531,7 +3531,7 @@ var Gi = function(t) {
|
|
|
3531
3531
|
var a = Yt(tn);
|
|
3532
3532
|
return t(r, a, i);
|
|
3533
3533
|
});
|
|
3534
|
-
}, Ki = /* @__PURE__ */
|
|
3534
|
+
}, Ki = /* @__PURE__ */ D.createContext({}), Ji = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Zi = /* @__PURE__ */ Jr(
|
|
3535
3535
|
function(e) {
|
|
3536
3536
|
return Ji.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
3537
3537
|
}
|
|
@@ -3577,7 +3577,7 @@ var Gi = function(t) {
|
|
|
3577
3577
|
b = {};
|
|
3578
3578
|
for (var w in I)
|
|
3579
3579
|
b[w] = I[w];
|
|
3580
|
-
b.theme =
|
|
3580
|
+
b.theme = D.useContext(Ki);
|
|
3581
3581
|
}
|
|
3582
3582
|
typeof I.className == "string" ? B = Hi(O.registered, g, I.className) : I.className != null && (B = I.className + " ");
|
|
3583
3583
|
var E = qi(x.concat(g), O.registered, b);
|
|
@@ -3585,11 +3585,11 @@ var Gi = function(t) {
|
|
|
3585
3585
|
var y = h && l === void 0 ? Cr(U) : u, d = {};
|
|
3586
3586
|
for (var k in I)
|
|
3587
3587
|
h && k === "as" || y(k) && (d[k] = I[k]);
|
|
3588
|
-
return d.className = B, F && (d.ref = F), /* @__PURE__ */
|
|
3588
|
+
return d.className = B, F && (d.ref = F), /* @__PURE__ */ D.createElement(D.Fragment, null, /* @__PURE__ */ D.createElement(ta, {
|
|
3589
3589
|
cache: O,
|
|
3590
3590
|
serialized: E,
|
|
3591
3591
|
isStringTag: typeof U == "string"
|
|
3592
|
-
}), /* @__PURE__ */
|
|
3592
|
+
}), /* @__PURE__ */ D.createElement(U, d));
|
|
3593
3593
|
});
|
|
3594
3594
|
return p.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = x, p.__emotion_forwardProp = l, Object.defineProperty(p, "toString", {
|
|
3595
3595
|
value: function() {
|
|
@@ -4485,7 +4485,7 @@ function Pa(e, t, r = !1) {
|
|
|
4485
4485
|
// TODO: Can this as be avoided?
|
|
4486
4486
|
params: a,
|
|
4487
4487
|
pathname: Se([s, x.pathname]),
|
|
4488
|
-
pathnameBase:
|
|
4488
|
+
pathnameBase: La(
|
|
4489
4489
|
Se([s, x.pathnameBase])
|
|
4490
4490
|
),
|
|
4491
4491
|
route: R
|
|
@@ -4555,7 +4555,7 @@ function _a(e, t = "/") {
|
|
|
4555
4555
|
} = typeof e == "string" ? Me(e) : e;
|
|
4556
4556
|
return {
|
|
4557
4557
|
pathname: r ? r.startsWith("/") ? r : Ta(r, t) : t,
|
|
4558
|
-
search:
|
|
4558
|
+
search: Da(i),
|
|
4559
4559
|
hash: Ma(a)
|
|
4560
4560
|
};
|
|
4561
4561
|
}
|
|
@@ -4609,7 +4609,7 @@ function sn(e, t, r, i = !1) {
|
|
|
4609
4609
|
let u = _a(a, l), h = c && c !== "/" && c.endsWith("/"), v = (s || c === ".") && r.endsWith("/");
|
|
4610
4610
|
return !u.pathname.endsWith("/") && (h || v) && (u.pathname += "/"), u;
|
|
4611
4611
|
}
|
|
4612
|
-
var Se = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
4612
|
+
var Se = (e) => e.join("/").replace(/\/\/+/g, "/"), La = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Da = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ma = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
4613
4613
|
function $a(e) {
|
|
4614
4614
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
4615
4615
|
}
|
|
@@ -4627,35 +4627,35 @@ var Ia = [
|
|
|
4627
4627
|
...ln
|
|
4628
4628
|
];
|
|
4629
4629
|
new Set(Ia);
|
|
4630
|
-
var $e =
|
|
4630
|
+
var $e = D.createContext(null);
|
|
4631
4631
|
$e.displayName = "DataRouter";
|
|
4632
|
-
var Ot =
|
|
4632
|
+
var Ot = D.createContext(null);
|
|
4633
4633
|
Ot.displayName = "DataRouterState";
|
|
4634
|
-
var un =
|
|
4634
|
+
var un = D.createContext({
|
|
4635
4635
|
isTransitioning: !1
|
|
4636
4636
|
});
|
|
4637
4637
|
un.displayName = "ViewTransition";
|
|
4638
|
-
var Aa =
|
|
4638
|
+
var Aa = D.createContext(
|
|
4639
4639
|
/* @__PURE__ */ new Map()
|
|
4640
4640
|
);
|
|
4641
4641
|
Aa.displayName = "Fetchers";
|
|
4642
|
-
var Ha =
|
|
4642
|
+
var Ha = D.createContext(null);
|
|
4643
4643
|
Ha.displayName = "Await";
|
|
4644
|
-
var we =
|
|
4644
|
+
var we = D.createContext(
|
|
4645
4645
|
null
|
|
4646
4646
|
);
|
|
4647
4647
|
we.displayName = "Navigation";
|
|
4648
|
-
var Ze =
|
|
4648
|
+
var Ze = D.createContext(
|
|
4649
4649
|
null
|
|
4650
4650
|
);
|
|
4651
4651
|
Ze.displayName = "Location";
|
|
4652
|
-
var Oe =
|
|
4652
|
+
var Oe = D.createContext({
|
|
4653
4653
|
outlet: null,
|
|
4654
4654
|
matches: [],
|
|
4655
4655
|
isDataRoute: !1
|
|
4656
4656
|
});
|
|
4657
4657
|
Oe.displayName = "Route";
|
|
4658
|
-
var Gt =
|
|
4658
|
+
var Gt = D.createContext(null);
|
|
4659
4659
|
Gt.displayName = "RouteError";
|
|
4660
4660
|
function za(e, { relative: t } = {}) {
|
|
4661
4661
|
ae(
|
|
@@ -4664,11 +4664,11 @@ function za(e, { relative: t } = {}) {
|
|
|
4664
4664
|
// router loaded. We can help them understand how to avoid that.
|
|
4665
4665
|
"useHref() may be used only in the context of a <Router> component."
|
|
4666
4666
|
);
|
|
4667
|
-
let { basename: r, navigator: i } =
|
|
4667
|
+
let { basename: r, navigator: i } = D.useContext(we), { hash: a, pathname: s, search: c } = et(e, { relative: t }), l = s;
|
|
4668
4668
|
return r !== "/" && (l = s === "/" ? r : Se([r, s])), i.createHref({ pathname: l, search: c, hash: a });
|
|
4669
4669
|
}
|
|
4670
4670
|
function Qe() {
|
|
4671
|
-
return
|
|
4671
|
+
return D.useContext(Ze) != null;
|
|
4672
4672
|
}
|
|
4673
4673
|
function ke() {
|
|
4674
4674
|
return ae(
|
|
@@ -4676,14 +4676,14 @@ function ke() {
|
|
|
4676
4676
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
4677
4677
|
// router loaded. We can help them understand how to avoid that.
|
|
4678
4678
|
"useLocation() may be used only in the context of a <Router> component."
|
|
4679
|
-
),
|
|
4679
|
+
), D.useContext(Ze).location;
|
|
4680
4680
|
}
|
|
4681
4681
|
var cn = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
4682
4682
|
function fn(e) {
|
|
4683
|
-
|
|
4683
|
+
D.useContext(we).static || D.useLayoutEffect(e);
|
|
4684
4684
|
}
|
|
4685
4685
|
function Kt() {
|
|
4686
|
-
let { isDataRoute: e } =
|
|
4686
|
+
let { isDataRoute: e } = D.useContext(Oe);
|
|
4687
4687
|
return e ? Za() : Na();
|
|
4688
4688
|
}
|
|
4689
4689
|
function Na() {
|
|
@@ -4693,10 +4693,10 @@ function Na() {
|
|
|
4693
4693
|
// router loaded. We can help them understand how to avoid that.
|
|
4694
4694
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
4695
4695
|
);
|
|
4696
|
-
let e =
|
|
4696
|
+
let e = D.useContext($e), { basename: t, navigator: r } = D.useContext(we), { matches: i } = D.useContext(Oe), { pathname: a } = ke(), s = JSON.stringify(on(i)), c = D.useRef(!1);
|
|
4697
4697
|
return fn(() => {
|
|
4698
4698
|
c.current = !0;
|
|
4699
|
-
}),
|
|
4699
|
+
}), D.useCallback(
|
|
4700
4700
|
(u, h = {}) => {
|
|
4701
4701
|
if (ve(c.current, cn), !c.current) return;
|
|
4702
4702
|
if (typeof u == "number") {
|
|
@@ -4724,10 +4724,10 @@ function Na() {
|
|
|
4724
4724
|
]
|
|
4725
4725
|
);
|
|
4726
4726
|
}
|
|
4727
|
-
|
|
4727
|
+
D.createContext(null);
|
|
4728
4728
|
function et(e, { relative: t } = {}) {
|
|
4729
|
-
let { matches: r } =
|
|
4730
|
-
return
|
|
4729
|
+
let { matches: r } = D.useContext(Oe), { pathname: i } = ke(), a = JSON.stringify(on(r));
|
|
4730
|
+
return D.useMemo(
|
|
4731
4731
|
() => sn(
|
|
4732
4732
|
e,
|
|
4733
4733
|
JSON.parse(a),
|
|
@@ -4747,7 +4747,7 @@ function dn(e, t, r, i) {
|
|
|
4747
4747
|
// router loaded. We can help them understand how to avoid that.
|
|
4748
4748
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
4749
4749
|
);
|
|
4750
|
-
let { navigator: a } =
|
|
4750
|
+
let { navigator: a } = D.useContext(we), { matches: s } = D.useContext(Oe), c = s[s.length - 1], l = c ? c.params : {}, u = c ? c.pathname : "/", h = c ? c.pathnameBase : "/", v = c && c.route;
|
|
4751
4751
|
{
|
|
4752
4752
|
let O = v && v.path || "";
|
|
4753
4753
|
hn(
|
|
@@ -4800,7 +4800,7 @@ Please change the parent <Route path="${O}"> to <Route path="${O === "/" ? "*" :
|
|
|
4800
4800
|
r,
|
|
4801
4801
|
i
|
|
4802
4802
|
);
|
|
4803
|
-
return t && I ? /* @__PURE__ */
|
|
4803
|
+
return t && I ? /* @__PURE__ */ D.createElement(
|
|
4804
4804
|
Ze.Provider,
|
|
4805
4805
|
{
|
|
4806
4806
|
value: {
|
|
@@ -4824,9 +4824,9 @@ function Wa() {
|
|
|
4824
4824
|
return console.error(
|
|
4825
4825
|
"Error handled by React Router default ErrorBoundary:",
|
|
4826
4826
|
e
|
|
4827
|
-
), c = /* @__PURE__ */
|
|
4827
|
+
), c = /* @__PURE__ */ D.createElement(D.Fragment, null, /* @__PURE__ */ D.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ D.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ D.createElement("code", { style: s }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ D.createElement("code", { style: s }, "errorElement"), " prop on your route.")), /* @__PURE__ */ D.createElement(D.Fragment, null, /* @__PURE__ */ D.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ D.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ D.createElement("pre", { style: a }, r) : null, c);
|
|
4828
4828
|
}
|
|
4829
|
-
var Ua = /* @__PURE__ */
|
|
4829
|
+
var Ua = /* @__PURE__ */ D.createElement(Wa, null), Ya = class extends D.Component {
|
|
4830
4830
|
constructor(e) {
|
|
4831
4831
|
super(e), this.state = {
|
|
4832
4832
|
location: e.location,
|
|
@@ -4856,7 +4856,7 @@ var Ua = /* @__PURE__ */ L.createElement(Wa, null), Ya = class extends L.Compone
|
|
|
4856
4856
|
);
|
|
4857
4857
|
}
|
|
4858
4858
|
render() {
|
|
4859
|
-
return this.state.error !== void 0 ? /* @__PURE__ */
|
|
4859
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ D.createElement(Oe.Provider, { value: this.props.routeContext }, /* @__PURE__ */ D.createElement(
|
|
4860
4860
|
Gt.Provider,
|
|
4861
4861
|
{
|
|
4862
4862
|
value: this.state.error,
|
|
@@ -4866,8 +4866,8 @@ var Ua = /* @__PURE__ */ L.createElement(Wa, null), Ya = class extends L.Compone
|
|
|
4866
4866
|
}
|
|
4867
4867
|
};
|
|
4868
4868
|
function qa({ routeContext: e, match: t, children: r }) {
|
|
4869
|
-
let i =
|
|
4870
|
-
return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */
|
|
4869
|
+
let i = D.useContext($e);
|
|
4870
|
+
return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ D.createElement(Oe.Provider, { value: e }, r);
|
|
4871
4871
|
}
|
|
4872
4872
|
function Ba(e, t = [], r = null, i = null) {
|
|
4873
4873
|
if (e == null) {
|
|
@@ -4916,7 +4916,7 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4916
4916
|
), R = !0, P = null) : l === v && (R = !0, P = h.route.hydrateFallbackElement || null)));
|
|
4917
4917
|
let p = t.concat(a.slice(0, v + 1)), I = () => {
|
|
4918
4918
|
let O;
|
|
4919
|
-
return x ? O = M : R ? O = P : h.route.Component ? O = /* @__PURE__ */
|
|
4919
|
+
return x ? O = M : R ? O = P : h.route.Component ? O = /* @__PURE__ */ D.createElement(h.route.Component, null) : h.route.element ? O = h.route.element : O = u, /* @__PURE__ */ D.createElement(
|
|
4920
4920
|
qa,
|
|
4921
4921
|
{
|
|
4922
4922
|
match: h,
|
|
@@ -4929,7 +4929,7 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4929
4929
|
}
|
|
4930
4930
|
);
|
|
4931
4931
|
};
|
|
4932
|
-
return r && (h.route.ErrorBoundary || h.route.errorElement || v === 0) ? /* @__PURE__ */
|
|
4932
|
+
return r && (h.route.ErrorBoundary || h.route.errorElement || v === 0) ? /* @__PURE__ */ D.createElement(
|
|
4933
4933
|
Ya,
|
|
4934
4934
|
{
|
|
4935
4935
|
location: r.location,
|
|
@@ -4946,15 +4946,15 @@ function Jt(e) {
|
|
|
4946
4946
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
4947
4947
|
}
|
|
4948
4948
|
function Va(e) {
|
|
4949
|
-
let t =
|
|
4949
|
+
let t = D.useContext($e);
|
|
4950
4950
|
return ae(t, Jt(e)), t;
|
|
4951
4951
|
}
|
|
4952
4952
|
function Xa(e) {
|
|
4953
|
-
let t =
|
|
4953
|
+
let t = D.useContext(Ot);
|
|
4954
4954
|
return ae(t, Jt(e)), t;
|
|
4955
4955
|
}
|
|
4956
4956
|
function Ga(e) {
|
|
4957
|
-
let t =
|
|
4957
|
+
let t = D.useContext(Oe);
|
|
4958
4958
|
return ae(t, Jt(e)), t;
|
|
4959
4959
|
}
|
|
4960
4960
|
function Zt(e) {
|
|
@@ -4971,7 +4971,7 @@ function Ka() {
|
|
|
4971
4971
|
);
|
|
4972
4972
|
}
|
|
4973
4973
|
function Ja() {
|
|
4974
|
-
let e =
|
|
4974
|
+
let e = D.useContext(Gt), t = Xa(
|
|
4975
4975
|
"useRouteError"
|
|
4976
4976
|
/* UseRouteError */
|
|
4977
4977
|
), r = Zt(
|
|
@@ -4987,21 +4987,21 @@ function Za() {
|
|
|
4987
4987
|
), t = Zt(
|
|
4988
4988
|
"useNavigate"
|
|
4989
4989
|
/* UseNavigateStable */
|
|
4990
|
-
), r =
|
|
4990
|
+
), r = D.useRef(!1);
|
|
4991
4991
|
return fn(() => {
|
|
4992
4992
|
r.current = !0;
|
|
4993
|
-
}),
|
|
4993
|
+
}), D.useCallback(
|
|
4994
4994
|
async (a, s = {}) => {
|
|
4995
4995
|
ve(r.current, cn), r.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: t, ...s }));
|
|
4996
4996
|
},
|
|
4997
4997
|
[e, t]
|
|
4998
4998
|
);
|
|
4999
4999
|
}
|
|
5000
|
-
var
|
|
5000
|
+
var Lr = {};
|
|
5001
5001
|
function hn(e, t, r) {
|
|
5002
|
-
!t && !
|
|
5002
|
+
!t && !Lr[e] && (Lr[e] = !0, ve(!1, r));
|
|
5003
5003
|
}
|
|
5004
|
-
|
|
5004
|
+
D.memo(Qa);
|
|
5005
5005
|
function Qa({
|
|
5006
5006
|
routes: e,
|
|
5007
5007
|
future: t,
|
|
@@ -5027,7 +5027,7 @@ function eo({
|
|
|
5027
5027
|
!Qe(),
|
|
5028
5028
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
5029
5029
|
);
|
|
5030
|
-
let c = e.replace(/^\/*/, "/"), l =
|
|
5030
|
+
let c = e.replace(/^\/*/, "/"), l = D.useMemo(
|
|
5031
5031
|
() => ({
|
|
5032
5032
|
basename: c,
|
|
5033
5033
|
navigator: a,
|
|
@@ -5043,7 +5043,7 @@ function eo({
|
|
|
5043
5043
|
hash: v = "",
|
|
5044
5044
|
state: x = null,
|
|
5045
5045
|
key: R = "default"
|
|
5046
|
-
} = r, M =
|
|
5046
|
+
} = r, M = D.useMemo(() => {
|
|
5047
5047
|
let P = xe(u, c);
|
|
5048
5048
|
return P == null ? null : {
|
|
5049
5049
|
location: {
|
|
@@ -5059,7 +5059,7 @@ function eo({
|
|
|
5059
5059
|
return ve(
|
|
5060
5060
|
M != null,
|
|
5061
5061
|
`<Router basename="${c}"> is not able to match the URL "${u}${h}${v}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
5062
|
-
), M == null ? null : /* @__PURE__ */
|
|
5062
|
+
), M == null ? null : /* @__PURE__ */ D.createElement(we.Provider, { value: l }, /* @__PURE__ */ D.createElement(Ze.Provider, { children: t, value: M }));
|
|
5063
5063
|
}
|
|
5064
5064
|
function to({
|
|
5065
5065
|
children: e,
|
|
@@ -5069,11 +5069,11 @@ function to({
|
|
|
5069
5069
|
}
|
|
5070
5070
|
function Wt(e, t = []) {
|
|
5071
5071
|
let r = [];
|
|
5072
|
-
return
|
|
5073
|
-
if (!
|
|
5072
|
+
return D.Children.forEach(e, (i, a) => {
|
|
5073
|
+
if (!D.isValidElement(i))
|
|
5074
5074
|
return;
|
|
5075
5075
|
let s = [...t, a];
|
|
5076
|
-
if (i.type ===
|
|
5076
|
+
if (i.type === D.Fragment) {
|
|
5077
5077
|
r.push.apply(
|
|
5078
5078
|
r,
|
|
5079
5079
|
Wt(i.props.children, s)
|
|
@@ -5244,7 +5244,7 @@ async function po(e, t, r) {
|
|
|
5244
5244
|
)
|
|
5245
5245
|
);
|
|
5246
5246
|
}
|
|
5247
|
-
function
|
|
5247
|
+
function Dr(e, t, r, i, a, s) {
|
|
5248
5248
|
let c = (u, h) => r[h] ? u.route.id !== r[h].route.id : !0, l = (u, h) => (
|
|
5249
5249
|
// param change, /users/123 -> /users/456
|
|
5250
5250
|
r[h].pathname !== u.pathname || // splat param changed, which is not present in match.path
|
|
@@ -5314,31 +5314,31 @@ function wo(e, t) {
|
|
|
5314
5314
|
return r.pathname === "/" ? r.pathname = "_root.data" : t && xe(r.pathname, t) === "/" ? r.pathname = `${t.replace(/\/$/, "")}/_root.data` : r.pathname = `${r.pathname.replace(/\/$/, "")}.data`, r;
|
|
5315
5315
|
}
|
|
5316
5316
|
function mn() {
|
|
5317
|
-
let e =
|
|
5317
|
+
let e = D.useContext($e);
|
|
5318
5318
|
return Qt(
|
|
5319
5319
|
e,
|
|
5320
5320
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
5321
5321
|
), e;
|
|
5322
5322
|
}
|
|
5323
5323
|
function So() {
|
|
5324
|
-
let e =
|
|
5324
|
+
let e = D.useContext(Ot);
|
|
5325
5325
|
return Qt(
|
|
5326
5326
|
e,
|
|
5327
5327
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
5328
5328
|
), e;
|
|
5329
5329
|
}
|
|
5330
|
-
var er =
|
|
5330
|
+
var er = D.createContext(void 0);
|
|
5331
5331
|
er.displayName = "FrameworkContext";
|
|
5332
5332
|
function vn() {
|
|
5333
|
-
let e =
|
|
5333
|
+
let e = D.useContext(er);
|
|
5334
5334
|
return Qt(
|
|
5335
5335
|
e,
|
|
5336
5336
|
"You must render this element inside a <HydratedRouter> element"
|
|
5337
5337
|
), e;
|
|
5338
5338
|
}
|
|
5339
5339
|
function xo(e, t) {
|
|
5340
|
-
let r =
|
|
5341
|
-
|
|
5340
|
+
let r = D.useContext(er), [i, a] = D.useState(!1), [s, c] = D.useState(!1), { onFocus: l, onBlur: u, onMouseEnter: h, onMouseLeave: v, onTouchStart: x } = t, R = D.useRef(null);
|
|
5341
|
+
D.useEffect(() => {
|
|
5342
5342
|
if (e === "render" && c(!0), e === "viewport") {
|
|
5343
5343
|
let p = (O) => {
|
|
5344
5344
|
O.forEach((F) => {
|
|
@@ -5349,7 +5349,7 @@ function xo(e, t) {
|
|
|
5349
5349
|
I.disconnect();
|
|
5350
5350
|
};
|
|
5351
5351
|
}
|
|
5352
|
-
}, [e]),
|
|
5352
|
+
}, [e]), D.useEffect(() => {
|
|
5353
5353
|
if (i) {
|
|
5354
5354
|
let p = setTimeout(() => {
|
|
5355
5355
|
c(!0);
|
|
@@ -5385,15 +5385,15 @@ function Oo({
|
|
|
5385
5385
|
page: e,
|
|
5386
5386
|
...t
|
|
5387
5387
|
}) {
|
|
5388
|
-
let { router: r } = mn(), i =
|
|
5388
|
+
let { router: r } = mn(), i = D.useMemo(
|
|
5389
5389
|
() => rn(r.routes, e, r.basename),
|
|
5390
5390
|
[r.routes, e, r.basename]
|
|
5391
5391
|
);
|
|
5392
|
-
return i ? /* @__PURE__ */
|
|
5392
|
+
return i ? /* @__PURE__ */ D.createElement(Co, { page: e, matches: i, ...t }) : null;
|
|
5393
5393
|
}
|
|
5394
5394
|
function ko(e) {
|
|
5395
|
-
let { manifest: t, routeModules: r } = vn(), [i, a] =
|
|
5396
|
-
return
|
|
5395
|
+
let { manifest: t, routeModules: r } = vn(), [i, a] = D.useState([]);
|
|
5396
|
+
return D.useEffect(() => {
|
|
5397
5397
|
let s = !1;
|
|
5398
5398
|
return po(e, t, r).then(
|
|
5399
5399
|
(c) => {
|
|
@@ -5409,8 +5409,8 @@ function Co({
|
|
|
5409
5409
|
matches: t,
|
|
5410
5410
|
...r
|
|
5411
5411
|
}) {
|
|
5412
|
-
let i = ke(), { manifest: a, routeModules: s } = vn(), { basename: c } = mn(), { loaderData: l, matches: u } = So(), h =
|
|
5413
|
-
() =>
|
|
5412
|
+
let i = ke(), { manifest: a, routeModules: s } = vn(), { basename: c } = mn(), { loaderData: l, matches: u } = So(), h = D.useMemo(
|
|
5413
|
+
() => Dr(
|
|
5414
5414
|
e,
|
|
5415
5415
|
t,
|
|
5416
5416
|
u,
|
|
@@ -5419,8 +5419,8 @@ function Co({
|
|
|
5419
5419
|
"data"
|
|
5420
5420
|
),
|
|
5421
5421
|
[e, t, u, a, i]
|
|
5422
|
-
), v =
|
|
5423
|
-
() =>
|
|
5422
|
+
), v = D.useMemo(
|
|
5423
|
+
() => Dr(
|
|
5424
5424
|
e,
|
|
5425
5425
|
t,
|
|
5426
5426
|
u,
|
|
@@ -5429,7 +5429,7 @@ function Co({
|
|
|
5429
5429
|
"assets"
|
|
5430
5430
|
),
|
|
5431
5431
|
[e, t, u, a, i]
|
|
5432
|
-
), x =
|
|
5432
|
+
), x = D.useMemo(() => {
|
|
5433
5433
|
if (e === i.pathname + i.search + i.hash)
|
|
5434
5434
|
return [];
|
|
5435
5435
|
let P = /* @__PURE__ */ new Set(), p = !1;
|
|
@@ -5452,14 +5452,14 @@ function Co({
|
|
|
5452
5452
|
t,
|
|
5453
5453
|
e,
|
|
5454
5454
|
s
|
|
5455
|
-
]), R =
|
|
5455
|
+
]), R = D.useMemo(
|
|
5456
5456
|
() => mo(v, a),
|
|
5457
5457
|
[v, a]
|
|
5458
5458
|
), M = ko(v);
|
|
5459
|
-
return /* @__PURE__ */
|
|
5459
|
+
return /* @__PURE__ */ D.createElement(D.Fragment, null, x.map((P) => /* @__PURE__ */ D.createElement("link", { key: P, rel: "prefetch", as: "fetch", href: P, ...r })), R.map((P) => /* @__PURE__ */ D.createElement("link", { key: P, rel: "modulepreload", href: P, ...r })), M.map(({ key: P, link: p }) => (
|
|
5460
5460
|
// these don't spread `linkProps` because they are full link descriptors
|
|
5461
5461
|
// already with their own props
|
|
5462
|
-
/* @__PURE__ */
|
|
5462
|
+
/* @__PURE__ */ D.createElement("link", { key: P, ...p })
|
|
5463
5463
|
)));
|
|
5464
5464
|
}
|
|
5465
5465
|
function Po(...e) {
|
|
@@ -5479,18 +5479,18 @@ function Eo({
|
|
|
5479
5479
|
children: t,
|
|
5480
5480
|
window: r
|
|
5481
5481
|
}) {
|
|
5482
|
-
let i =
|
|
5482
|
+
let i = D.useRef();
|
|
5483
5483
|
i.current == null && (i.current = da({ window: r, v5Compat: !0 }));
|
|
5484
|
-
let a = i.current, [s, c] =
|
|
5484
|
+
let a = i.current, [s, c] = D.useState({
|
|
5485
5485
|
action: a.action,
|
|
5486
5486
|
location: a.location
|
|
5487
|
-
}), l =
|
|
5487
|
+
}), l = D.useCallback(
|
|
5488
5488
|
(u) => {
|
|
5489
|
-
|
|
5489
|
+
D.startTransition(() => c(u));
|
|
5490
5490
|
},
|
|
5491
5491
|
[c]
|
|
5492
5492
|
);
|
|
5493
|
-
return
|
|
5493
|
+
return D.useLayoutEffect(() => a.listen(l), [a, l]), /* @__PURE__ */ D.createElement(
|
|
5494
5494
|
eo,
|
|
5495
5495
|
{
|
|
5496
5496
|
basename: e,
|
|
@@ -5501,7 +5501,7 @@ function Eo({
|
|
|
5501
5501
|
}
|
|
5502
5502
|
);
|
|
5503
5503
|
}
|
|
5504
|
-
var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn =
|
|
5504
|
+
var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
5505
5505
|
function({
|
|
5506
5506
|
onClick: t,
|
|
5507
5507
|
discover: r = "render",
|
|
@@ -5516,7 +5516,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = L.forwardRef(
|
|
|
5516
5516
|
viewTransition: x,
|
|
5517
5517
|
...R
|
|
5518
5518
|
}, M) {
|
|
5519
|
-
let { basename: P } =
|
|
5519
|
+
let { basename: P } = D.useContext(we), p = typeof h == "string" && yn.test(h), I, O = !1;
|
|
5520
5520
|
if (typeof h == "string" && p && (I = h, gn))
|
|
5521
5521
|
try {
|
|
5522
5522
|
let y = new URL(window.location.href), d = h.startsWith("//") ? new URL(y.protocol + h) : new URL(h), k = xe(d.pathname, P);
|
|
@@ -5543,7 +5543,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = L.forwardRef(
|
|
|
5543
5543
|
}
|
|
5544
5544
|
let E = (
|
|
5545
5545
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
5546
|
-
/* @__PURE__ */
|
|
5546
|
+
/* @__PURE__ */ D.createElement(
|
|
5547
5547
|
"a",
|
|
5548
5548
|
{
|
|
5549
5549
|
...R,
|
|
@@ -5556,11 +5556,11 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = L.forwardRef(
|
|
|
5556
5556
|
}
|
|
5557
5557
|
)
|
|
5558
5558
|
);
|
|
5559
|
-
return U && !p ? /* @__PURE__ */
|
|
5559
|
+
return U && !p ? /* @__PURE__ */ D.createElement(D.Fragment, null, E, /* @__PURE__ */ D.createElement(Oo, { page: F })) : E;
|
|
5560
5560
|
}
|
|
5561
5561
|
);
|
|
5562
5562
|
bn.displayName = "Link";
|
|
5563
|
-
var Ro =
|
|
5563
|
+
var Ro = D.forwardRef(
|
|
5564
5564
|
function({
|
|
5565
5565
|
"aria-current": t = "page",
|
|
5566
5566
|
caseSensitive: r = !1,
|
|
@@ -5572,7 +5572,7 @@ var Ro = L.forwardRef(
|
|
|
5572
5572
|
children: u,
|
|
5573
5573
|
...h
|
|
5574
5574
|
}, v) {
|
|
5575
|
-
let x = et(c, { relative: h.relative }), R = ke(), M =
|
|
5575
|
+
let x = et(c, { relative: h.relative }), R = ke(), M = D.useContext(Ot), { navigator: P, basename: p } = D.useContext(we), I = M != null && // Conditional usage is OK here because the usage of a data router is static
|
|
5576
5576
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5577
5577
|
Ao(x) && l === !0, O = P.encodeLocation ? P.encodeLocation(x).pathname : x.pathname, F = R.pathname, U = M && M.navigation && M.navigation.location ? M.navigation.location.pathname : null;
|
|
5578
5578
|
r || (F = F.toLowerCase(), U = U ? U.toLowerCase() : null, O = O.toLowerCase()), U && p && (U = xe(U, p) || U);
|
|
@@ -5589,7 +5589,7 @@ var Ro = L.forwardRef(
|
|
|
5589
5589
|
I ? "transitioning" : null
|
|
5590
5590
|
].filter(Boolean).join(" ");
|
|
5591
5591
|
let d = typeof s == "function" ? s(w) : s;
|
|
5592
|
-
return /* @__PURE__ */
|
|
5592
|
+
return /* @__PURE__ */ D.createElement(
|
|
5593
5593
|
bn,
|
|
5594
5594
|
{
|
|
5595
5595
|
...h,
|
|
@@ -5605,7 +5605,7 @@ var Ro = L.forwardRef(
|
|
|
5605
5605
|
}
|
|
5606
5606
|
);
|
|
5607
5607
|
Ro.displayName = "NavLink";
|
|
5608
|
-
var _o =
|
|
5608
|
+
var _o = D.forwardRef(
|
|
5609
5609
|
({
|
|
5610
5610
|
discover: e = "render",
|
|
5611
5611
|
fetcherKey: t,
|
|
@@ -5636,7 +5636,7 @@ var _o = L.forwardRef(
|
|
|
5636
5636
|
viewTransition: x
|
|
5637
5637
|
});
|
|
5638
5638
|
};
|
|
5639
|
-
return /* @__PURE__ */
|
|
5639
|
+
return /* @__PURE__ */ D.createElement(
|
|
5640
5640
|
"form",
|
|
5641
5641
|
{
|
|
5642
5642
|
ref: M,
|
|
@@ -5654,7 +5654,7 @@ function To(e) {
|
|
|
5654
5654
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
5655
5655
|
}
|
|
5656
5656
|
function wn(e) {
|
|
5657
|
-
let t =
|
|
5657
|
+
let t = D.useContext($e);
|
|
5658
5658
|
return ae(t, To(e)), t;
|
|
5659
5659
|
}
|
|
5660
5660
|
function jo(e, {
|
|
@@ -5666,7 +5666,7 @@ function jo(e, {
|
|
|
5666
5666
|
viewTransition: c
|
|
5667
5667
|
} = {}) {
|
|
5668
5668
|
let l = Kt(), u = ke(), h = et(e, { relative: s });
|
|
5669
|
-
return
|
|
5669
|
+
return D.useCallback(
|
|
5670
5670
|
(v) => {
|
|
5671
5671
|
if (oo(v, t)) {
|
|
5672
5672
|
v.preventDefault();
|
|
@@ -5694,12 +5694,12 @@ function jo(e, {
|
|
|
5694
5694
|
]
|
|
5695
5695
|
);
|
|
5696
5696
|
}
|
|
5697
|
-
function
|
|
5697
|
+
function Lo(e) {
|
|
5698
5698
|
ve(
|
|
5699
5699
|
typeof URLSearchParams < "u",
|
|
5700
5700
|
"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."
|
|
5701
5701
|
);
|
|
5702
|
-
let t =
|
|
5702
|
+
let t = D.useRef(Ut(e)), r = D.useRef(!1), i = ke(), a = D.useMemo(
|
|
5703
5703
|
() => (
|
|
5704
5704
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
5705
5705
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
@@ -5710,7 +5710,7 @@ function Do(e) {
|
|
|
5710
5710
|
)
|
|
5711
5711
|
),
|
|
5712
5712
|
[i.search]
|
|
5713
|
-
), s = Kt(), c =
|
|
5713
|
+
), s = Kt(), c = D.useCallback(
|
|
5714
5714
|
(l, u) => {
|
|
5715
5715
|
const h = Ut(
|
|
5716
5716
|
typeof l == "function" ? l(a) : l
|
|
@@ -5721,13 +5721,13 @@ function Do(e) {
|
|
|
5721
5721
|
);
|
|
5722
5722
|
return [a, c];
|
|
5723
5723
|
}
|
|
5724
|
-
var
|
|
5724
|
+
var Do = 0, Mo = () => `__${String(++Do)}__`;
|
|
5725
5725
|
function $o() {
|
|
5726
5726
|
let { router: e } = wn(
|
|
5727
5727
|
"useSubmit"
|
|
5728
5728
|
/* UseSubmit */
|
|
5729
|
-
), { basename: t } =
|
|
5730
|
-
return
|
|
5729
|
+
), { basename: t } = D.useContext(we), r = Ka();
|
|
5730
|
+
return D.useCallback(
|
|
5731
5731
|
async (i, a = {}) => {
|
|
5732
5732
|
let { action: s, method: c, encType: l, formData: u, body: h } = co(
|
|
5733
5733
|
i,
|
|
@@ -5761,7 +5761,7 @@ function $o() {
|
|
|
5761
5761
|
);
|
|
5762
5762
|
}
|
|
5763
5763
|
function Io(e, { relative: t } = {}) {
|
|
5764
|
-
let { basename: r } =
|
|
5764
|
+
let { basename: r } = D.useContext(we), i = D.useContext(Oe);
|
|
5765
5765
|
ae(i, "useFormAction must be used inside a RouteContext");
|
|
5766
5766
|
let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) }, c = ke();
|
|
5767
5767
|
if (e == null) {
|
|
@@ -5776,7 +5776,7 @@ function Io(e, { relative: t } = {}) {
|
|
|
5776
5776
|
return (!e || e === ".") && a.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (s.pathname = s.pathname === "/" ? r : Se([r, s.pathname])), Ge(s);
|
|
5777
5777
|
}
|
|
5778
5778
|
function Ao(e, t = {}) {
|
|
5779
|
-
let r =
|
|
5779
|
+
let r = D.useContext(un);
|
|
5780
5780
|
ae(
|
|
5781
5781
|
r != null,
|
|
5782
5782
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
@@ -5801,7 +5801,7 @@ const Sn = q.createContext({
|
|
|
5801
5801
|
replaceHistory: () => {
|
|
5802
5802
|
}
|
|
5803
5803
|
}), Ho = () => {
|
|
5804
|
-
const [e, t] =
|
|
5804
|
+
const [e, t] = Lo(), r = Hr(
|
|
5805
5805
|
() => Object.fromEntries(e.entries()),
|
|
5806
5806
|
[e]
|
|
5807
5807
|
), i = _e(
|
|
@@ -6386,15 +6386,16 @@ const Sn = q.createContext({
|
|
|
6386
6386
|
let R = h.join(""), M = x.join("");
|
|
6387
6387
|
return l !== void 0 && (R.length > l ? R = M : R = R.slice(0, l)), R || c.endsWith(".") ? `${u}.${R}` : u;
|
|
6388
6388
|
}
|
|
6389
|
-
function i(c
|
|
6390
|
-
const
|
|
6391
|
-
|
|
6389
|
+
function i(c) {
|
|
6390
|
+
const l = Number(c);
|
|
6391
|
+
var u = e.max;
|
|
6392
|
+
return u === void 0 && (u = e.maxLength ? Number("9".repeat(e.maxLength)) : void 0), !isNaN(l) && (e.min !== void 0 && l < e.min || u !== void 0 && l > u) ? t.current ?? c : c;
|
|
6392
6393
|
}
|
|
6393
6394
|
const a = (c) => {
|
|
6394
6395
|
const l = c.target, u = l.selectionStart ?? 0, h = l.selectionEnd ?? 0;
|
|
6395
6396
|
let v = l.value;
|
|
6396
6397
|
const x = `0-9${e.allowDecimals ? "\\." : ""}${e.allowNegatives ? "\\-" : ""}`;
|
|
6397
|
-
v = v.replace(new RegExp(`[^${x}]`, "g"), ""), v = r(v, e.decimalScale), v = i(v
|
|
6398
|
+
v = v.replace(new RegExp(`[^${x}]`, "g"), ""), v = r(v, e.decimalScale), v = i(v);
|
|
6398
6399
|
const R = v.length - l.value.length;
|
|
6399
6400
|
l.value = v, l.setSelectionRange(u + R, h + R), t.current = v;
|
|
6400
6401
|
};
|
|
@@ -6402,7 +6403,7 @@ const Sn = q.createContext({
|
|
|
6402
6403
|
props: _e(() => ({
|
|
6403
6404
|
...e,
|
|
6404
6405
|
type: "text",
|
|
6405
|
-
pattern: "^-?
|
|
6406
|
+
pattern: "^-?[0-9]*.?[0-9]*$",
|
|
6406
6407
|
onInput: a
|
|
6407
6408
|
}), [])()
|
|
6408
6409
|
};
|
|
@@ -6682,15 +6683,15 @@ function Ko() {
|
|
|
6682
6683
|
return m ? J : J.endOf(h);
|
|
6683
6684
|
}, S = function(K, X) {
|
|
6684
6685
|
return k.w(H.toDate()[K].apply(H.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), H);
|
|
6685
|
-
}, $ = this.$W,
|
|
6686
|
+
}, $ = this.$W, L = this.$M, z = this.$D, N = "set" + (this.$u ? "UTC" : "");
|
|
6686
6687
|
switch (n) {
|
|
6687
6688
|
case M:
|
|
6688
6689
|
return m ? f(1, 0) : f(31, 11);
|
|
6689
6690
|
case x:
|
|
6690
|
-
return m ? f(1,
|
|
6691
|
+
return m ? f(1, L) : f(0, L + 1);
|
|
6691
6692
|
case v:
|
|
6692
6693
|
var W = this.$locale().weekStart || 0, V = ($ < W ? $ + 7 : $) - W;
|
|
6693
|
-
return f(m ? z - V : z + (6 - V),
|
|
6694
|
+
return f(m ? z - V : z + (6 - V), L);
|
|
6694
6695
|
case h:
|
|
6695
6696
|
case P:
|
|
6696
6697
|
return S(N + "Hours", 0);
|
|
@@ -6719,9 +6720,9 @@ function Ko() {
|
|
|
6719
6720
|
}, C.add = function(j, o) {
|
|
6720
6721
|
var H, m = this;
|
|
6721
6722
|
j = Number(j);
|
|
6722
|
-
var n = k.p(o), f = function(
|
|
6723
|
+
var n = k.p(o), f = function(L) {
|
|
6723
6724
|
var z = d(m);
|
|
6724
|
-
return k.w(z.date(z.date() + Math.round(
|
|
6725
|
+
return k.w(z.date(z.date() + Math.round(L * j)), m);
|
|
6725
6726
|
};
|
|
6726
6727
|
if (n === x) return this.set(x, this.$M + j);
|
|
6727
6728
|
if (n === M) return this.set(M, this.$y + j);
|
|
@@ -6734,7 +6735,7 @@ function Ko() {
|
|
|
6734
6735
|
}, C.format = function(j) {
|
|
6735
6736
|
var o = this, H = this.$locale();
|
|
6736
6737
|
if (!this.isValid()) return H.invalidDate || p;
|
|
6737
|
-
var m = j || "YYYY-MM-DDTHH:mm:ssZ", n = k.z(this), f = this.$H, S = this.$m, $ = this.$M,
|
|
6738
|
+
var m = j || "YYYY-MM-DDTHH:mm:ssZ", n = k.z(this), f = this.$H, S = this.$m, $ = this.$M, L = H.weekdays, z = H.months, N = H.meridiem, W = function(X, J, te, Z) {
|
|
6738
6739
|
return X && (X[J] || X(o, m)) || te[J].slice(0, Z);
|
|
6739
6740
|
}, V = function(X) {
|
|
6740
6741
|
return k.s(f % 12 || 12, X, "0");
|
|
@@ -6764,11 +6765,11 @@ function Ko() {
|
|
|
6764
6765
|
case "d":
|
|
6765
6766
|
return String(o.$W);
|
|
6766
6767
|
case "dd":
|
|
6767
|
-
return W(H.weekdaysMin, o.$W,
|
|
6768
|
+
return W(H.weekdaysMin, o.$W, L, 2);
|
|
6768
6769
|
case "ddd":
|
|
6769
|
-
return W(H.weekdaysShort, o.$W,
|
|
6770
|
+
return W(H.weekdaysShort, o.$W, L, 3);
|
|
6770
6771
|
case "dddd":
|
|
6771
|
-
return
|
|
6772
|
+
return L[o.$W];
|
|
6772
6773
|
case "H":
|
|
6773
6774
|
return String(f);
|
|
6774
6775
|
case "HH":
|
|
@@ -6800,7 +6801,7 @@ function Ko() {
|
|
|
6800
6801
|
}, C.utcOffset = function() {
|
|
6801
6802
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6802
6803
|
}, C.diff = function(j, o, H) {
|
|
6803
|
-
var m, n = this, f = k.p(o), S = d(j), $ = (S.utcOffset() - this.utcOffset()) * i,
|
|
6804
|
+
var m, n = this, f = k.p(o), S = d(j), $ = (S.utcOffset() - this.utcOffset()) * i, L = this - S, z = function() {
|
|
6804
6805
|
return k.m(n, S);
|
|
6805
6806
|
};
|
|
6806
6807
|
switch (f) {
|
|
@@ -6814,22 +6815,22 @@ function Ko() {
|
|
|
6814
6815
|
m = z() / 3;
|
|
6815
6816
|
break;
|
|
6816
6817
|
case v:
|
|
6817
|
-
m = (
|
|
6818
|
+
m = (L - $) / 6048e5;
|
|
6818
6819
|
break;
|
|
6819
6820
|
case h:
|
|
6820
|
-
m = (
|
|
6821
|
+
m = (L - $) / 864e5;
|
|
6821
6822
|
break;
|
|
6822
6823
|
case u:
|
|
6823
|
-
m =
|
|
6824
|
+
m = L / a;
|
|
6824
6825
|
break;
|
|
6825
6826
|
case l:
|
|
6826
|
-
m =
|
|
6827
|
+
m = L / i;
|
|
6827
6828
|
break;
|
|
6828
6829
|
case c:
|
|
6829
|
-
m =
|
|
6830
|
+
m = L / r;
|
|
6830
6831
|
break;
|
|
6831
6832
|
default:
|
|
6832
|
-
m =
|
|
6833
|
+
m = L;
|
|
6833
6834
|
}
|
|
6834
6835
|
return H ? m : k.a(m);
|
|
6835
6836
|
}, C.daysInMonth = function() {
|