@maycolem/stories 25.0.0 → 26.0.0
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.esm.js
CHANGED
|
@@ -23,7 +23,7 @@ var dn = { exports: {} };
|
|
|
23
23
|
http://jedwatson.github.io/classnames
|
|
24
24
|
*/
|
|
25
25
|
var Nr;
|
|
26
|
-
function
|
|
26
|
+
function xa() {
|
|
27
27
|
return Nr || (Nr = 1, function(e) {
|
|
28
28
|
(function() {
|
|
29
29
|
var t = {}.hasOwnProperty;
|
|
@@ -55,8 +55,8 @@ function Ta() {
|
|
|
55
55
|
})();
|
|
56
56
|
}(dn)), dn.exports;
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
const Se = /* @__PURE__ */ co(
|
|
58
|
+
var Ta = xa();
|
|
59
|
+
const Se = /* @__PURE__ */ co(Ta);
|
|
60
60
|
function Pa() {
|
|
61
61
|
const [e, t] = Z({ width: 0, height: 0 }), n = B();
|
|
62
62
|
return [kt((i) => {
|
|
@@ -585,10 +585,10 @@ function Wa(e) {
|
|
|
585
585
|
d.forEach((g) => {
|
|
586
586
|
let {
|
|
587
587
|
contentBoxSize: m,
|
|
588
|
-
contentRect:
|
|
589
|
-
target:
|
|
588
|
+
contentRect: S,
|
|
589
|
+
target: y
|
|
590
590
|
} = g;
|
|
591
|
-
|
|
591
|
+
y && y !== t.el || (p = S ? S.width : (m[0] || m).inlineSize, h = S ? S.height : (m[0] || m).blockSize);
|
|
592
592
|
}), (p !== f || h !== v) && a();
|
|
593
593
|
});
|
|
594
594
|
}), o.observe(t.el));
|
|
@@ -739,21 +739,21 @@ function Xa() {
|
|
|
739
739
|
typeof h == "function" && (h = n.slidesOffsetBefore.call(e));
|
|
740
740
|
let g = n.slidesOffsetAfter;
|
|
741
741
|
typeof g == "function" && (g = n.slidesOffsetAfter.call(e));
|
|
742
|
-
const m = e.snapGrid.length,
|
|
743
|
-
let
|
|
742
|
+
const m = e.snapGrid.length, S = e.slidesGrid.length;
|
|
743
|
+
let y = n.spaceBetween, b = -h, w = 0, x = 0;
|
|
744
744
|
if (typeof o > "u")
|
|
745
745
|
return;
|
|
746
|
-
typeof
|
|
746
|
+
typeof y == "string" && y.indexOf("%") >= 0 ? y = parseFloat(y.replace("%", "")) / 100 * o : typeof y == "string" && (y = parseFloat(y)), e.virtualSize = -y, c.forEach((P) => {
|
|
747
747
|
s ? P.style.marginLeft = "" : P.style.marginRight = "", P.style.marginBottom = "", P.style.marginTop = "";
|
|
748
748
|
}), n.centeredSlides && n.cssMode && (Et(r, "--swiper-centered-offset-before", ""), Et(r, "--swiper-centered-offset-after", ""));
|
|
749
|
-
const
|
|
750
|
-
|
|
749
|
+
const C = n.grid && n.grid.rows > 1 && e.grid;
|
|
750
|
+
C ? e.grid.initSlides(c) : e.grid && e.grid.unsetSlides();
|
|
751
751
|
let _;
|
|
752
752
|
const T = n.slidesPerView === "auto" && n.breakpoints && Object.keys(n.breakpoints).filter((P) => typeof n.breakpoints[P].slidesPerView < "u").length > 0;
|
|
753
753
|
for (let P = 0; P < d; P += 1) {
|
|
754
754
|
_ = 0;
|
|
755
755
|
let A;
|
|
756
|
-
if (c[P] && (A = c[P]),
|
|
756
|
+
if (c[P] && (A = c[P]), C && e.grid.updateSlide(P, A, c), !(c[P] && Oe(A, "display") === "none")) {
|
|
757
757
|
if (n.slidesPerView === "auto") {
|
|
758
758
|
T && (c[P].style[e.getDirectionLabel("width")] = "");
|
|
759
759
|
const I = getComputedStyle(A), L = A.style.transform, N = A.style.webkitTransform;
|
|
@@ -773,11 +773,11 @@ function Xa() {
|
|
|
773
773
|
}
|
|
774
774
|
L && (A.style.transform = L), N && (A.style.webkitTransform = N), n.roundLengths && (_ = Math.floor(_));
|
|
775
775
|
} else
|
|
776
|
-
_ = (o - (n.slidesPerView - 1) *
|
|
777
|
-
c[P] && (c[P].swiperSlideSize = _), p.push(_), n.centeredSlides ? (b = b + _ / 2 + w / 2 +
|
|
776
|
+
_ = (o - (n.slidesPerView - 1) * y) / n.slidesPerView, n.roundLengths && (_ = Math.floor(_)), c[P] && (c[P].style[e.getDirectionLabel("width")] = `${_}px`);
|
|
777
|
+
c[P] && (c[P].swiperSlideSize = _), p.push(_), n.centeredSlides ? (b = b + _ / 2 + w / 2 + y, w === 0 && P !== 0 && (b = b - o / 2 - y), P === 0 && (b = b - o / 2 - y), Math.abs(b) < 1 / 1e3 && (b = 0), n.roundLengths && (b = Math.floor(b)), x % n.slidesPerGroup === 0 && f.push(b), v.push(b)) : (n.roundLengths && (b = Math.floor(b)), (x - Math.min(e.params.slidesPerGroupSkip, x)) % e.params.slidesPerGroup === 0 && f.push(b), v.push(b), b = b + _ + y), e.virtualSize += _ + y, w = _, x += 1;
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
|
-
if (e.virtualSize = Math.max(e.virtualSize, o) + g, s && a && (n.effect === "slide" || n.effect === "coverflow") && (r.style.width = `${e.virtualSize +
|
|
780
|
+
if (e.virtualSize = Math.max(e.virtualSize, o) + g, s && a && (n.effect === "slide" || n.effect === "coverflow") && (r.style.width = `${e.virtualSize + y}px`), n.setWrapperSize && (r.style[e.getDirectionLabel("width")] = `${e.virtualSize + y}px`), C && e.grid.updateWrapperSize(_, f), !n.centeredSlides) {
|
|
781
781
|
const P = [];
|
|
782
782
|
for (let A = 0; A < f.length; A += 1) {
|
|
783
783
|
let I = f[A];
|
|
@@ -786,7 +786,7 @@ function Xa() {
|
|
|
786
786
|
f = P, Math.floor(e.virtualSize - o) - Math.floor(f[f.length - 1]) > 1 && f.push(e.virtualSize - o);
|
|
787
787
|
}
|
|
788
788
|
if (l && n.loop) {
|
|
789
|
-
const P = p[0] +
|
|
789
|
+
const P = p[0] + y;
|
|
790
790
|
if (n.slidesPerGroup > 1) {
|
|
791
791
|
const A = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / n.slidesPerGroup), I = P * n.slidesPerGroup;
|
|
792
792
|
for (let L = 0; L < A; L += 1)
|
|
@@ -795,25 +795,25 @@ function Xa() {
|
|
|
795
795
|
for (let A = 0; A < e.virtual.slidesBefore + e.virtual.slidesAfter; A += 1)
|
|
796
796
|
n.slidesPerGroup === 1 && f.push(f[f.length - 1] + P), v.push(v[v.length - 1] + P), e.virtualSize += P;
|
|
797
797
|
}
|
|
798
|
-
if (f.length === 0 && (f = [0]),
|
|
798
|
+
if (f.length === 0 && (f = [0]), y !== 0) {
|
|
799
799
|
const P = e.isHorizontal() && s ? "marginLeft" : e.getDirectionLabel("marginRight");
|
|
800
800
|
c.filter((A, I) => !n.cssMode || n.loop ? !0 : I !== c.length - 1).forEach((A) => {
|
|
801
|
-
A.style[P] = `${
|
|
801
|
+
A.style[P] = `${y}px`;
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
if (n.centeredSlides && n.centeredSlidesBounds) {
|
|
805
805
|
let P = 0;
|
|
806
806
|
p.forEach((I) => {
|
|
807
|
-
P += I + (
|
|
808
|
-
}), P -=
|
|
807
|
+
P += I + (y || 0);
|
|
808
|
+
}), P -= y;
|
|
809
809
|
const A = P > o ? P - o : 0;
|
|
810
810
|
f = f.map((I) => I <= 0 ? -h : I > A ? A + g : I);
|
|
811
811
|
}
|
|
812
812
|
if (n.centerInsufficientSlides) {
|
|
813
813
|
let P = 0;
|
|
814
814
|
p.forEach((I) => {
|
|
815
|
-
P += I + (
|
|
816
|
-
}), P -=
|
|
815
|
+
P += I + (y || 0);
|
|
816
|
+
}), P -= y;
|
|
817
817
|
const A = (n.slidesOffsetBefore || 0) + (n.slidesOffsetAfter || 0);
|
|
818
818
|
if (P + A < o) {
|
|
819
819
|
const I = (o - P - A) / 2;
|
|
@@ -834,7 +834,7 @@ function Xa() {
|
|
|
834
834
|
const P = -e.snapGrid[0], A = -e.slidesGrid[0];
|
|
835
835
|
e.snapGrid = e.snapGrid.map((I) => I + P), e.slidesGrid = e.slidesGrid.map((I) => I + A);
|
|
836
836
|
}
|
|
837
|
-
if (d !== u && e.emit("slidesLengthChange"), f.length !== m && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), v.length !==
|
|
837
|
+
if (d !== u && e.emit("slidesLengthChange"), f.length !== m && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), v.length !== S && e.emit("slidesGridLengthChange"), n.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !l && !n.cssMode && (n.effect === "slide" || n.effect === "fade")) {
|
|
838
838
|
const P = `${n.containerModifierClass}backface-hidden`, A = e.el.classList.contains(P);
|
|
839
839
|
d <= n.maxBackfaceHiddenSlides ? A || e.el.classList.add(P) : A && e.el.classList.remove(P);
|
|
840
840
|
}
|
|
@@ -1223,24 +1223,24 @@ function hl(e, t, n, r, i) {
|
|
|
1223
1223
|
g >= l.length && (g = l.length - 1);
|
|
1224
1224
|
const m = -l[g];
|
|
1225
1225
|
if (a.normalizeSlideIndex)
|
|
1226
|
-
for (let
|
|
1227
|
-
const _ = -Math.floor(m * 100), T = Math.floor(u[
|
|
1228
|
-
typeof u[
|
|
1226
|
+
for (let C = 0; C < u.length; C += 1) {
|
|
1227
|
+
const _ = -Math.floor(m * 100), T = Math.floor(u[C] * 100), P = Math.floor(u[C + 1] * 100);
|
|
1228
|
+
typeof u[C + 1] < "u" ? _ >= T && _ < P - (P - T) / 2 ? s = C : _ >= T && _ < P && (s = C + 1) : _ >= T && (s = C);
|
|
1229
1229
|
}
|
|
1230
1230
|
if (o.initialized && s !== d && (!o.allowSlideNext && (f ? m > o.translate && m > o.minTranslate() : m < o.translate && m < o.minTranslate()) || !o.allowSlidePrev && m > o.translate && m > o.maxTranslate() && (d || 0) !== s))
|
|
1231
1231
|
return !1;
|
|
1232
1232
|
s !== (c || 0) && n && o.emit("beforeSlideChangeStart"), o.updateProgress(m);
|
|
1233
|
-
let
|
|
1234
|
-
s > d ?
|
|
1235
|
-
const
|
|
1236
|
-
if (!(
|
|
1237
|
-
return o.updateActiveIndex(s), a.autoHeight && o.updateAutoHeight(), o.updateSlidesClasses(), a.effect !== "slide" && o.setTranslate(m),
|
|
1233
|
+
let S;
|
|
1234
|
+
s > d ? S = "next" : s < d ? S = "prev" : S = "reset";
|
|
1235
|
+
const y = o.virtual && o.params.virtual.enabled;
|
|
1236
|
+
if (!(y && i) && (f && -m === o.translate || !f && m === o.translate))
|
|
1237
|
+
return o.updateActiveIndex(s), a.autoHeight && o.updateAutoHeight(), o.updateSlidesClasses(), a.effect !== "slide" && o.setTranslate(m), S !== "reset" && (o.transitionStart(n, S), o.transitionEnd(n, S)), !1;
|
|
1238
1238
|
if (a.cssMode) {
|
|
1239
|
-
const
|
|
1239
|
+
const C = o.isHorizontal(), _ = f ? m : -m;
|
|
1240
1240
|
if (t === 0)
|
|
1241
|
-
|
|
1242
|
-
v[
|
|
1243
|
-
})) : v[
|
|
1241
|
+
y && (o.wrapperEl.style.scrollSnapType = "none", o._immediateVirtual = !0), y && !o._cssModeVirtualInitialSet && o.params.initialSlide > 0 ? (o._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1242
|
+
v[C ? "scrollLeft" : "scrollTop"] = _;
|
|
1243
|
+
})) : v[C ? "scrollLeft" : "scrollTop"] = _, y && requestAnimationFrame(() => {
|
|
1244
1244
|
o.wrapperEl.style.scrollSnapType = "", o._immediateVirtual = !1;
|
|
1245
1245
|
});
|
|
1246
1246
|
else {
|
|
@@ -1248,18 +1248,18 @@ function hl(e, t, n, r, i) {
|
|
|
1248
1248
|
return ho({
|
|
1249
1249
|
swiper: o,
|
|
1250
1250
|
targetPosition: _,
|
|
1251
|
-
side:
|
|
1251
|
+
side: C ? "left" : "top"
|
|
1252
1252
|
}), !0;
|
|
1253
1253
|
v.scrollTo({
|
|
1254
|
-
[
|
|
1254
|
+
[C ? "left" : "top"]: _,
|
|
1255
1255
|
behavior: "smooth"
|
|
1256
1256
|
});
|
|
1257
1257
|
}
|
|
1258
1258
|
return !0;
|
|
1259
1259
|
}
|
|
1260
1260
|
const x = yo().isSafari;
|
|
1261
|
-
return
|
|
1262
|
-
!o || o.destroyed || _.target === this && (o.wrapperEl.removeEventListener("transitionend", o.onSlideToWrapperTransitionEnd), o.onSlideToWrapperTransitionEnd = null, delete o.onSlideToWrapperTransitionEnd, o.transitionEnd(n,
|
|
1261
|
+
return y && !i && x && o.isElement && o.virtual.update(!1, !1, s), o.setTransition(t), o.setTranslate(m), o.updateActiveIndex(s), o.updateSlidesClasses(), o.emit("beforeTransitionStart", t, r), o.transitionStart(n, S), t === 0 ? o.transitionEnd(n, S) : o.animating || (o.animating = !0, o.onSlideToWrapperTransitionEnd || (o.onSlideToWrapperTransitionEnd = function(_) {
|
|
1262
|
+
!o || o.destroyed || _.target === this && (o.wrapperEl.removeEventListener("transitionend", o.onSlideToWrapperTransitionEnd), o.onSlideToWrapperTransitionEnd = null, delete o.onSlideToWrapperTransitionEnd, o.transitionEnd(n, S));
|
|
1263
1263
|
}), o.wrapperEl.addEventListener("transitionend", o.onSlideToWrapperTransitionEnd)), !0;
|
|
1264
1264
|
}
|
|
1265
1265
|
function ml(e, t, n, r) {
|
|
@@ -1347,21 +1347,21 @@ function yl(e, t, n) {
|
|
|
1347
1347
|
}), r._clientLeft = r.wrapperEl.clientLeft;
|
|
1348
1348
|
}
|
|
1349
1349
|
const d = a ? r.translate : -r.translate;
|
|
1350
|
-
function f(
|
|
1351
|
-
return
|
|
1350
|
+
function f(S) {
|
|
1351
|
+
return S < 0 ? -Math.floor(Math.abs(S)) : Math.floor(S);
|
|
1352
1352
|
}
|
|
1353
|
-
const v = f(d), p = o.map((
|
|
1353
|
+
const v = f(d), p = o.map((S) => f(S)), h = i.freeMode && i.freeMode.enabled;
|
|
1354
1354
|
let g = o[p.indexOf(v) - 1];
|
|
1355
1355
|
if (typeof g > "u" && (i.cssMode || h)) {
|
|
1356
|
-
let
|
|
1357
|
-
o.forEach((
|
|
1358
|
-
v >=
|
|
1359
|
-
}), typeof
|
|
1356
|
+
let S;
|
|
1357
|
+
o.forEach((y, b) => {
|
|
1358
|
+
v >= y && (S = b);
|
|
1359
|
+
}), typeof S < "u" && (g = h ? o[S] : o[S > 0 ? S - 1 : S]);
|
|
1360
1360
|
}
|
|
1361
1361
|
let m = 0;
|
|
1362
1362
|
if (typeof g < "u" && (m = s.indexOf(g), m < 0 && (m = r.activeIndex - 1), i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (m = m - r.slidesPerViewDynamic("previous", !0) + 1, m = Math.max(m, 0))), i.rewind && r.isBeginning) {
|
|
1363
|
-
const
|
|
1364
|
-
return r.slideTo(
|
|
1363
|
+
const S = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
|
|
1364
|
+
return r.slideTo(S, e, t, n);
|
|
1365
1365
|
} else if (i.loop && r.activeIndex === 0 && i.cssMode)
|
|
1366
1366
|
return requestAnimationFrame(() => {
|
|
1367
1367
|
r.slideTo(m, e, t, n);
|
|
@@ -1409,7 +1409,7 @@ function bl() {
|
|
|
1409
1409
|
} else
|
|
1410
1410
|
e.slideTo(i);
|
|
1411
1411
|
}
|
|
1412
|
-
var
|
|
1412
|
+
var xl = {
|
|
1413
1413
|
slideTo: hl,
|
|
1414
1414
|
slideToLoop: ml,
|
|
1415
1415
|
slideNext: gl,
|
|
@@ -1418,7 +1418,7 @@ var Tl = {
|
|
|
1418
1418
|
slideToClosest: wl,
|
|
1419
1419
|
slideToClickedSlide: bl
|
|
1420
1420
|
};
|
|
1421
|
-
function
|
|
1421
|
+
function Tl(e, t) {
|
|
1422
1422
|
const n = this, {
|
|
1423
1423
|
params: r,
|
|
1424
1424
|
slidesEl: i
|
|
@@ -1486,32 +1486,32 @@ function Pl(e) {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
let m = p.slidesPerView;
|
|
1488
1488
|
m === "auto" ? m = u.slidesPerViewDynamic() : (m = Math.ceil(parseFloat(p.slidesPerView, 10)), h && m % 2 === 0 && (m = m + 1));
|
|
1489
|
-
const
|
|
1490
|
-
let
|
|
1491
|
-
|
|
1489
|
+
const S = p.slidesPerGroupAuto ? m : p.slidesPerGroup;
|
|
1490
|
+
let y = S;
|
|
1491
|
+
y % S !== 0 && (y += S - y % S), y += p.loopAdditionalSlides, u.loopedSlides = y;
|
|
1492
1492
|
const b = u.grid && p.grid && p.grid.rows > 1;
|
|
1493
|
-
c.length < m +
|
|
1494
|
-
const w = [], x = [],
|
|
1493
|
+
c.length < m + y || u.params.effect === "cards" && c.length < m + y * 2 ? $t("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : b && p.grid.fill === "row" && $t("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1494
|
+
const w = [], x = [], C = b ? Math.ceil(c.length / p.grid.rows) : c.length, _ = s && C - g < m && !h;
|
|
1495
1495
|
let T = _ ? g : u.activeIndex;
|
|
1496
1496
|
typeof o > "u" ? o = u.getSlideIndex(c.find((D) => D.classList.contains(p.slideActiveClass))) : T = o;
|
|
1497
1497
|
const P = r === "next" || !r, A = r === "prev" || !r;
|
|
1498
1498
|
let I = 0, L = 0;
|
|
1499
1499
|
const j = (b ? c[o].column : o) + (h && typeof i > "u" ? -m / 2 + 0.5 : 0);
|
|
1500
|
-
if (j <
|
|
1501
|
-
I = Math.max(
|
|
1502
|
-
for (let D = 0; D <
|
|
1503
|
-
const G = D - Math.floor(D /
|
|
1500
|
+
if (j < y) {
|
|
1501
|
+
I = Math.max(y - j, S);
|
|
1502
|
+
for (let D = 0; D < y - j; D += 1) {
|
|
1503
|
+
const G = D - Math.floor(D / C) * C;
|
|
1504
1504
|
if (b) {
|
|
1505
|
-
const H =
|
|
1505
|
+
const H = C - G - 1;
|
|
1506
1506
|
for (let k = c.length - 1; k >= 0; k -= 1)
|
|
1507
1507
|
c[k].column === H && w.push(k);
|
|
1508
1508
|
} else
|
|
1509
|
-
w.push(
|
|
1509
|
+
w.push(C - G - 1);
|
|
1510
1510
|
}
|
|
1511
|
-
} else if (j + m >
|
|
1512
|
-
L = Math.max(j - (
|
|
1511
|
+
} else if (j + m > C - y) {
|
|
1512
|
+
L = Math.max(j - (C - y * 2), S), _ && (L = Math.max(L, m - C + g + 1));
|
|
1513
1513
|
for (let D = 0; D < L; D += 1) {
|
|
1514
|
-
const G = D - Math.floor(D /
|
|
1514
|
+
const G = D - Math.floor(D / C) * C;
|
|
1515
1515
|
b ? c.forEach((H, k) => {
|
|
1516
1516
|
H.column === G && x.push(k);
|
|
1517
1517
|
}) : x.push(G);
|
|
@@ -1519,7 +1519,7 @@ function Pl(e) {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
if (u.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
1521
1521
|
u.__preventObserver__ = !1;
|
|
1522
|
-
}), u.params.effect === "cards" && c.length < m +
|
|
1522
|
+
}), u.params.effect === "cards" && c.length < m + y * 2 && (x.includes(o) && x.splice(x.indexOf(o), 1), w.includes(o) && w.splice(w.indexOf(o), 1)), A && w.forEach((D) => {
|
|
1523
1523
|
c[D].swiperLoopMoveDOM = !0, v.prepend(c[D]), c[D].swiperLoopMoveDOM = !1;
|
|
1524
1524
|
}), P && x.forEach((D) => {
|
|
1525
1525
|
c[D].swiperLoopMoveDOM = !0, v.append(c[D]), c[D].swiperLoopMoveDOM = !1;
|
|
@@ -1581,7 +1581,7 @@ function El() {
|
|
|
1581
1581
|
}), e.recalcSlides(), e.slideTo(e.realIndex, 0);
|
|
1582
1582
|
}
|
|
1583
1583
|
var Cl = {
|
|
1584
|
-
loopCreate:
|
|
1584
|
+
loopCreate: Tl,
|
|
1585
1585
|
loopFix: Pl,
|
|
1586
1586
|
loopDestroy: El
|
|
1587
1587
|
};
|
|
@@ -1736,9 +1736,9 @@ function Ll(e) {
|
|
|
1736
1736
|
i.oneWayMovement && (p = Math.abs(p) * (s ? 1 : -1), h = Math.abs(h) * (s ? 1 : -1)), o.diff = p, p *= i.touchRatio, s && (p = -p, h = -h);
|
|
1737
1737
|
const g = n.touchesDirection;
|
|
1738
1738
|
n.swipeDirection = p > 0 ? "prev" : "next", n.touchesDirection = h > 0 ? "prev" : "next";
|
|
1739
|
-
const m = n.params.loop && !i.cssMode,
|
|
1739
|
+
const m = n.params.loop && !i.cssMode, S = n.touchesDirection === "next" && n.allowSlideNext || n.touchesDirection === "prev" && n.allowSlidePrev;
|
|
1740
1740
|
if (!r.isMoved) {
|
|
1741
|
-
if (m &&
|
|
1741
|
+
if (m && S && n.loopFix({
|
|
1742
1742
|
direction: n.swipeDirection
|
|
1743
1743
|
}), r.startTranslate = n.getTranslate(), n.setTransition(0), n.animating) {
|
|
1744
1744
|
const w = new window.CustomEvent("transitionend", {
|
|
@@ -1752,7 +1752,7 @@ function Ll(e) {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
r.allowMomentumBounce = !1, i.grabCursor && (n.allowSlideNext === !0 || n.allowSlidePrev === !0) && n.setGrabCursor(!0), n.emit("sliderFirstMove", l);
|
|
1754
1754
|
}
|
|
1755
|
-
if ((/* @__PURE__ */ new Date()).getTime(), i._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && g !== n.touchesDirection && m &&
|
|
1755
|
+
if ((/* @__PURE__ */ new Date()).getTime(), i._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && g !== n.touchesDirection && m && S && Math.abs(p) >= 1) {
|
|
1756
1756
|
Object.assign(o, {
|
|
1757
1757
|
startX: c,
|
|
1758
1758
|
startY: d,
|
|
@@ -1763,16 +1763,16 @@ function Ll(e) {
|
|
|
1763
1763
|
return;
|
|
1764
1764
|
}
|
|
1765
1765
|
n.emit("sliderMove", l), r.isMoved = !0, r.currentTranslate = p + r.startTranslate;
|
|
1766
|
-
let
|
|
1767
|
-
if (i.touchReleaseOnEdges && (b = 0), p > 0 ? (m &&
|
|
1766
|
+
let y = !0, b = i.resistanceRatio;
|
|
1767
|
+
if (i.touchReleaseOnEdges && (b = 0), p > 0 ? (m && S && r.allowThresholdMove && r.currentTranslate > (i.centeredSlides ? n.minTranslate() - n.slidesSizesGrid[n.activeIndex + 1] - (i.slidesPerView !== "auto" && n.slides.length - i.slidesPerView >= 2 ? n.slidesSizesGrid[n.activeIndex + 1] + n.params.spaceBetween : 0) - n.params.spaceBetween : n.minTranslate()) && n.loopFix({
|
|
1768
1768
|
direction: "prev",
|
|
1769
1769
|
setTranslate: !0,
|
|
1770
1770
|
activeSlideIndex: 0
|
|
1771
|
-
}), r.currentTranslate > n.minTranslate() && (
|
|
1771
|
+
}), r.currentTranslate > n.minTranslate() && (y = !1, i.resistance && (r.currentTranslate = n.minTranslate() - 1 + (-n.minTranslate() + r.startTranslate + p) ** b))) : p < 0 && (m && S && r.allowThresholdMove && r.currentTranslate < (i.centeredSlides ? n.maxTranslate() + n.slidesSizesGrid[n.slidesSizesGrid.length - 1] + n.params.spaceBetween + (i.slidesPerView !== "auto" && n.slides.length - i.slidesPerView >= 2 ? n.slidesSizesGrid[n.slidesSizesGrid.length - 1] + n.params.spaceBetween : 0) : n.maxTranslate()) && n.loopFix({
|
|
1772
1772
|
direction: "next",
|
|
1773
1773
|
setTranslate: !0,
|
|
1774
1774
|
activeSlideIndex: n.slides.length - (i.slidesPerView === "auto" ? n.slidesPerViewDynamic() : Math.ceil(parseFloat(i.slidesPerView, 10)))
|
|
1775
|
-
}), r.currentTranslate < n.maxTranslate() && (
|
|
1775
|
+
}), r.currentTranslate < n.maxTranslate() && (y = !1, i.resistance && (r.currentTranslate = n.maxTranslate() + 1 - (n.maxTranslate() - r.startTranslate - p) ** b))), y && (l.preventedByNestedSwiper = !0), !n.allowSlideNext && n.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !n.allowSlidePrev && n.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !n.allowSlidePrev && !n.allowSlideNext && (r.currentTranslate = r.startTranslate), i.threshold > 0)
|
|
1776
1776
|
if (Math.abs(p) > i.threshold || r.allowThresholdMove) {
|
|
1777
1777
|
if (!r.allowThresholdMove) {
|
|
1778
1778
|
r.allowThresholdMove = !0, o.startX = o.currentX, o.startY = o.currentY, r.currentTranslate = r.startTranslate, o.diff = n.isHorizontal() ? o.currentX - o.startX : o.currentY - o.startY;
|
|
@@ -1838,21 +1838,21 @@ function Ol(e) {
|
|
|
1838
1838
|
const x = w < s.slidesPerGroupSkip - 1 ? 1 : s.slidesPerGroup;
|
|
1839
1839
|
typeof u[w + x] < "u" ? (p || v >= u[w] && v < u[w + x]) && (h = w, g = u[w + x] - u[w]) : (p || v >= u[w]) && (h = w, g = u[u.length - 1] - u[u.length - 2]);
|
|
1840
1840
|
}
|
|
1841
|
-
let m = null,
|
|
1842
|
-
s.rewind && (t.isBeginning ?
|
|
1843
|
-
const
|
|
1841
|
+
let m = null, S = null;
|
|
1842
|
+
s.rewind && (t.isBeginning ? S = s.virtual && s.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (m = 0));
|
|
1843
|
+
const y = (v - u[h]) / g, b = h < s.slidesPerGroupSkip - 1 ? 1 : s.slidesPerGroup;
|
|
1844
1844
|
if (f > s.longSwipesMs) {
|
|
1845
1845
|
if (!s.longSwipes) {
|
|
1846
1846
|
t.slideTo(t.activeIndex);
|
|
1847
1847
|
return;
|
|
1848
1848
|
}
|
|
1849
|
-
t.swipeDirection === "next" && (
|
|
1849
|
+
t.swipeDirection === "next" && (y >= s.longSwipesRatio ? t.slideTo(s.rewind && t.isEnd ? m : h + b) : t.slideTo(h)), t.swipeDirection === "prev" && (y > 1 - s.longSwipesRatio ? t.slideTo(h + b) : S !== null && y < 0 && Math.abs(y) > s.longSwipesRatio ? t.slideTo(S) : t.slideTo(h));
|
|
1850
1850
|
} else {
|
|
1851
1851
|
if (!s.shortSwipes) {
|
|
1852
1852
|
t.slideTo(t.activeIndex);
|
|
1853
1853
|
return;
|
|
1854
1854
|
}
|
|
1855
|
-
t.navigation && (r.target === t.navigation.nextEl || r.target === t.navigation.prevEl) ? r.target === t.navigation.nextEl ? t.slideTo(h + b) : t.slideTo(h) : (t.swipeDirection === "next" && t.slideTo(m !== null ? m : h + b), t.swipeDirection === "prev" && t.slideTo(
|
|
1855
|
+
t.navigation && (r.target === t.navigation.nextEl || r.target === t.navigation.prevEl) ? r.target === t.navigation.nextEl ? t.slideTo(h + b) : t.slideTo(h) : (t.swipeDirection === "next" && t.slideTo(m !== null ? m : h + b), t.swipeDirection === "prev" && t.slideTo(S !== null ? S : h));
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
1858
|
function Wr() {
|
|
@@ -1962,17 +1962,17 @@ function kl() {
|
|
|
1962
1962
|
const d = (u in o ? o[u] : void 0) || e.originalParams, f = Ur(e, r), v = Ur(e, d), p = e.params.grabCursor, h = d.grabCursor, g = r.enabled;
|
|
1963
1963
|
f && !v ? (i.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), e.emitContainerClasses()) : !f && v && (i.classList.add(`${r.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && r.grid.fill === "column") && i.classList.add(`${r.containerModifierClass}grid-column`), e.emitContainerClasses()), p && !h ? e.unsetGrabCursor() : !p && h && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((x) => {
|
|
1964
1964
|
if (typeof d[x] > "u") return;
|
|
1965
|
-
const
|
|
1966
|
-
|
|
1965
|
+
const C = r[x] && r[x].enabled, _ = d[x] && d[x].enabled;
|
|
1966
|
+
C && !_ && e[x].disable(), !C && _ && e[x].enable();
|
|
1967
1967
|
});
|
|
1968
|
-
const m = d.direction && d.direction !== r.direction,
|
|
1968
|
+
const m = d.direction && d.direction !== r.direction, S = r.loop && (d.slidesPerView !== r.slidesPerView || m), y = r.loop;
|
|
1969
1969
|
m && n && e.changeDirection(), se(e.params, d);
|
|
1970
1970
|
const b = e.params.enabled, w = e.params.loop;
|
|
1971
1971
|
Object.assign(e, {
|
|
1972
1972
|
allowTouchMove: e.params.allowTouchMove,
|
|
1973
1973
|
allowSlideNext: e.params.allowSlideNext,
|
|
1974
1974
|
allowSlidePrev: e.params.allowSlidePrev
|
|
1975
|
-
}), g && !b ? e.disable() : !g && b && e.enable(), e.currentBreakpoint = u, e.emit("_beforeBreakpoint", d), n && (
|
|
1975
|
+
}), g && !b ? e.disable() : !g && b && e.enable(), e.currentBreakpoint = u, e.emit("_beforeBreakpoint", d), n && (S ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !y && w ? (e.loopCreate(t), e.updateSlides()) : y && !w && e.loopDestroy()), e.emit("breakpoint", d);
|
|
1976
1976
|
}
|
|
1977
1977
|
function Gl(e, t, n) {
|
|
1978
1978
|
if (t === void 0 && (t = "window"), !e || t === "container" && !n) return;
|
|
@@ -2214,7 +2214,7 @@ const Sn = {
|
|
|
2214
2214
|
update: il,
|
|
2215
2215
|
translate: cl,
|
|
2216
2216
|
transition: vl,
|
|
2217
|
-
slide:
|
|
2217
|
+
slide: xl,
|
|
2218
2218
|
loop: Cl,
|
|
2219
2219
|
grabCursor: Al,
|
|
2220
2220
|
events: jl,
|
|
@@ -2222,7 +2222,7 @@ const Sn = {
|
|
|
2222
2222
|
checkOverflow: Xl,
|
|
2223
2223
|
classes: ql
|
|
2224
2224
|
}, wn = {};
|
|
2225
|
-
let lr = class
|
|
2225
|
+
let lr = class Te {
|
|
2226
2226
|
constructor() {
|
|
2227
2227
|
let t, n;
|
|
2228
2228
|
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
|
|
@@ -2235,7 +2235,7 @@ let lr = class xe {
|
|
|
2235
2235
|
const f = se({}, n, {
|
|
2236
2236
|
el: d
|
|
2237
2237
|
});
|
|
2238
|
-
c.push(new
|
|
2238
|
+
c.push(new Te(f));
|
|
2239
2239
|
}), c;
|
|
2240
2240
|
}
|
|
2241
2241
|
const a = this;
|
|
@@ -2517,12 +2517,12 @@ let lr = class xe {
|
|
|
2517
2517
|
return Fn;
|
|
2518
2518
|
}
|
|
2519
2519
|
static installModule(t) {
|
|
2520
|
-
|
|
2521
|
-
const n =
|
|
2520
|
+
Te.prototype.__modules__ || (Te.prototype.__modules__ = []);
|
|
2521
|
+
const n = Te.prototype.__modules__;
|
|
2522
2522
|
typeof t == "function" && n.indexOf(t) < 0 && n.push(t);
|
|
2523
2523
|
}
|
|
2524
2524
|
static use(t) {
|
|
2525
|
-
return Array.isArray(t) ? (t.forEach((n) =>
|
|
2525
|
+
return Array.isArray(t) ? (t.forEach((n) => Te.installModule(n)), Te) : (Te.installModule(t), Te);
|
|
2526
2526
|
}
|
|
2527
2527
|
};
|
|
2528
2528
|
Object.keys(Sn).forEach((e) => {
|
|
@@ -2659,10 +2659,10 @@ function Ye(e, t) {
|
|
|
2659
2659
|
typeof e[r] > "u" ? e[r] = t[r] : ze(t[r]) && ze(e[r]) && Object.keys(t[r]).length > 0 ? t[r].__swiper__ ? e[r] = t[r] : Ye(e[r], t[r]) : e[r] = t[r];
|
|
2660
2660
|
});
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2662
|
+
function xo(e) {
|
|
2663
2663
|
return e === void 0 && (e = {}), e.navigation && typeof e.navigation.nextEl > "u" && typeof e.navigation.prevEl > "u";
|
|
2664
2664
|
}
|
|
2665
|
-
function
|
|
2665
|
+
function To(e) {
|
|
2666
2666
|
return e === void 0 && (e = {}), e.pagination && typeof e.pagination.el > "u";
|
|
2667
2667
|
}
|
|
2668
2668
|
function Po(e) {
|
|
@@ -2697,19 +2697,19 @@ function Jl(e) {
|
|
|
2697
2697
|
virtual: p,
|
|
2698
2698
|
thumbs: h
|
|
2699
2699
|
} = t;
|
|
2700
|
-
let g, m,
|
|
2701
|
-
i.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (g = !0), i.includes("controller") && r.controller && r.controller.control && c.controller && !c.controller.control && (m = !0), i.includes("pagination") && r.pagination && (r.pagination.el || l) && (c.pagination || c.pagination === !1) && d && !d.el && (
|
|
2700
|
+
let g, m, S, y, b, w, x, C;
|
|
2701
|
+
i.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (g = !0), i.includes("controller") && r.controller && r.controller.control && c.controller && !c.controller.control && (m = !0), i.includes("pagination") && r.pagination && (r.pagination.el || l) && (c.pagination || c.pagination === !1) && d && !d.el && (S = !0), i.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (c.scrollbar || c.scrollbar === !1) && v && !v.el && (y = !0), i.includes("navigation") && r.navigation && (r.navigation.prevEl || s) && (r.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && f && !f.prevEl && !f.nextEl && (b = !0);
|
|
2702
2702
|
const _ = (T) => {
|
|
2703
2703
|
t[T] && (t[T].destroy(), T === "navigation" ? (t.isElement && (t[T].prevEl.remove(), t[T].nextEl.remove()), c[T].prevEl = void 0, c[T].nextEl = void 0, t[T].prevEl = void 0, t[T].nextEl = void 0) : (t.isElement && t[T].el.remove(), c[T].el = void 0, t[T].el = void 0));
|
|
2704
2704
|
};
|
|
2705
|
-
i.includes("loop") && t.isElement && (c.loop && !r.loop ? w = !0 : !c.loop && r.loop ? x = !0 :
|
|
2705
|
+
i.includes("loop") && t.isElement && (c.loop && !r.loop ? w = !0 : !c.loop && r.loop ? x = !0 : C = !0), u.forEach((T) => {
|
|
2706
2706
|
if (ze(c[T]) && ze(r[T]))
|
|
2707
2707
|
Object.assign(c[T], r[T]), (T === "navigation" || T === "pagination" || T === "scrollbar") && "enabled" in r[T] && !r[T].enabled && _(T);
|
|
2708
2708
|
else {
|
|
2709
2709
|
const P = r[T];
|
|
2710
2710
|
(P === !0 || P === !1) && (T === "navigation" || T === "pagination" || T === "scrollbar") ? P === !1 && _(T) : c[T] = r[T];
|
|
2711
2711
|
}
|
|
2712
|
-
}), u.includes("controller") && !m && t.controller && t.controller.control && c.controller && c.controller.control && (t.controller.control = c.controller.control), i.includes("children") && n && p && c.virtual.enabled ? (p.slides = n, p.update(!0)) : i.includes("virtual") && p && c.virtual.enabled && (n && (p.slides = n), p.update(!0)), i.includes("children") && n && c.loop && (
|
|
2712
|
+
}), u.includes("controller") && !m && t.controller && t.controller.control && c.controller && c.controller.control && (t.controller.control = c.controller.control), i.includes("children") && n && p && c.virtual.enabled ? (p.slides = n, p.update(!0)) : i.includes("virtual") && p && c.virtual.enabled && (n && (p.slides = n), p.update(!0)), i.includes("children") && n && c.loop && (C = !0), g && h.init() && h.update(!0), m && (t.controller.control = c.controller.control), S && (t.isElement && (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-pagination"), l.part.add("pagination"), t.el.appendChild(l)), l && (c.pagination.el = l), d.init(), d.render(), d.update()), y && (t.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), t.el.appendChild(a)), a && (c.scrollbar.el = a), v.init(), v.updateSize(), v.setTranslate()), b && (t.isElement && ((!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-button-next"), Gr(o, t.hostEl.constructor.nextButtonSvg), o.part.add("button-next"), t.el.appendChild(o)), (!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-button-prev"), Gr(s, t.hostEl.constructor.prevButtonSvg), s.part.add("button-prev"), t.el.appendChild(s))), o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), f.init(), f.update()), i.includes("allowSlideNext") && (t.allowSlideNext = r.allowSlideNext), i.includes("allowSlidePrev") && (t.allowSlidePrev = r.allowSlidePrev), i.includes("direction") && t.changeDirection(r.direction, !1), (w || C) && t.loopDestroy(), (x || C) && t.loopCreate(), t.update();
|
|
2713
2713
|
}
|
|
2714
2714
|
function Ql(e, t) {
|
|
2715
2715
|
e === void 0 && (e = {}), t === void 0 && (t = !0);
|
|
@@ -2738,7 +2738,7 @@ function eu(e, t) {
|
|
|
2738
2738
|
scrollbarEl: s,
|
|
2739
2739
|
swiper: a
|
|
2740
2740
|
} = e;
|
|
2741
|
-
|
|
2741
|
+
xo(t) && r && i && (a.params.navigation.nextEl = r, a.originalParams.navigation.nextEl = r, a.params.navigation.prevEl = i, a.originalParams.navigation.prevEl = i), To(t) && o && (a.params.pagination.el = o, a.originalParams.pagination.el = o), Po(t) && s && (a.params.scrollbar.el = s, a.originalParams.scrollbar.el = s), a.init(n);
|
|
2742
2742
|
}
|
|
2743
2743
|
function tu(e, t, n, r, i) {
|
|
2744
2744
|
const o = [];
|
|
@@ -2839,7 +2839,7 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
|
|
|
2839
2839
|
onSwiper: s,
|
|
2840
2840
|
...a
|
|
2841
2841
|
} = e === void 0 ? {} : e, l = !1;
|
|
2842
|
-
const [u, c] = Z("swiper"), [d, f] = Z(null), [v, p] = Z(!1), h = B(!1), g = B(null), m = B(null),
|
|
2842
|
+
const [u, c] = Z("swiper"), [d, f] = Z(null), [v, p] = Z(!1), h = B(!1), g = B(null), m = B(null), S = B(null), y = B(null), b = B(null), w = B(null), x = B(null), C = B(null), {
|
|
2843
2843
|
params: _,
|
|
2844
2844
|
passedParams: T,
|
|
2845
2845
|
rest: P,
|
|
@@ -2892,22 +2892,22 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
|
|
|
2892
2892
|
nextEl: b.current,
|
|
2893
2893
|
prevEl: w.current,
|
|
2894
2894
|
paginationEl: x.current,
|
|
2895
|
-
scrollbarEl:
|
|
2895
|
+
scrollbarEl: C.current,
|
|
2896
2896
|
swiper: m.current
|
|
2897
2897
|
}, _), s && !m.current.destroyed && s(m.current), () => {
|
|
2898
2898
|
m.current && !m.current.destroyed && m.current.destroy(!0, !1);
|
|
2899
2899
|
};
|
|
2900
2900
|
}, []), tt(() => {
|
|
2901
2901
|
D();
|
|
2902
|
-
const k = tu(T,
|
|
2903
|
-
return
|
|
2902
|
+
const k = tu(T, S.current, I, y.current, (J) => J.key);
|
|
2903
|
+
return S.current = T, y.current = I, k.length && m.current && !m.current.destroyed && Jl({
|
|
2904
2904
|
swiper: m.current,
|
|
2905
2905
|
slides: I,
|
|
2906
2906
|
passedParams: T,
|
|
2907
2907
|
changedParams: k,
|
|
2908
2908
|
nextEl: b.current,
|
|
2909
2909
|
prevEl: w.current,
|
|
2910
|
-
scrollbarEl:
|
|
2910
|
+
scrollbarEl: C.current,
|
|
2911
2911
|
paginationEl: x.current
|
|
2912
2912
|
}), () => {
|
|
2913
2913
|
G();
|
|
@@ -2928,16 +2928,16 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
|
|
|
2928
2928
|
value: m.current
|
|
2929
2929
|
}, L["container-start"], /* @__PURE__ */ Y.createElement(i, {
|
|
2930
2930
|
className: Zl(_.wrapperClass)
|
|
2931
|
-
}, L["wrapper-start"], H(), L["wrapper-end"]),
|
|
2931
|
+
}, L["wrapper-start"], H(), L["wrapper-end"]), xo(_) && /* @__PURE__ */ Y.createElement(Y.Fragment, null, /* @__PURE__ */ Y.createElement("div", {
|
|
2932
2932
|
ref: w,
|
|
2933
2933
|
className: "swiper-button-prev"
|
|
2934
2934
|
}), /* @__PURE__ */ Y.createElement("div", {
|
|
2935
2935
|
ref: b,
|
|
2936
2936
|
className: "swiper-button-next"
|
|
2937
2937
|
})), Po(_) && /* @__PURE__ */ Y.createElement("div", {
|
|
2938
|
-
ref:
|
|
2938
|
+
ref: C,
|
|
2939
2939
|
className: "swiper-scrollbar"
|
|
2940
|
-
}),
|
|
2940
|
+
}), To(_) && /* @__PURE__ */ Y.createElement("div", {
|
|
2941
2941
|
ref: x,
|
|
2942
2942
|
className: "swiper-pagination"
|
|
2943
2943
|
}), L["container-end"]));
|
|
@@ -2977,24 +2977,24 @@ const Ao = /* @__PURE__ */ sr(function(e, t) {
|
|
|
2977
2977
|
isVisible: f.indexOf("swiper-slide-visible") >= 0,
|
|
2978
2978
|
isPrev: f.indexOf("swiper-slide-prev") >= 0,
|
|
2979
2979
|
isNext: f.indexOf("swiper-slide-next") >= 0
|
|
2980
|
-
},
|
|
2980
|
+
}, S = () => typeof r == "function" ? r(m) : r, y = () => {
|
|
2981
2981
|
h(!0);
|
|
2982
2982
|
};
|
|
2983
2983
|
return /* @__PURE__ */ Y.createElement(n, Ht({
|
|
2984
2984
|
ref: d,
|
|
2985
2985
|
className: Eo(`${f}${i ? ` ${i}` : ""}`),
|
|
2986
2986
|
"data-swiper-slide-index": l,
|
|
2987
|
-
onLoad:
|
|
2987
|
+
onLoad: y
|
|
2988
2988
|
}, c), s && /* @__PURE__ */ Y.createElement(qr.Provider, {
|
|
2989
2989
|
value: m
|
|
2990
2990
|
}, /* @__PURE__ */ Y.createElement("div", {
|
|
2991
2991
|
className: "swiper-zoom-container",
|
|
2992
2992
|
"data-swiper-zoom": typeof s == "number" ? s : void 0
|
|
2993
|
-
},
|
|
2993
|
+
}, S(), a && !p && /* @__PURE__ */ Y.createElement("div", {
|
|
2994
2994
|
className: "swiper-lazy-preloader"
|
|
2995
2995
|
}))), !s && /* @__PURE__ */ Y.createElement(qr.Provider, {
|
|
2996
2996
|
value: m
|
|
2997
|
-
},
|
|
2997
|
+
}, S(), a && !p && /* @__PURE__ */ Y.createElement("div", {
|
|
2998
2998
|
className: "swiper-lazy-preloader"
|
|
2999
2999
|
})));
|
|
3000
3000
|
});
|
|
@@ -3066,10 +3066,10 @@ function au(e) {
|
|
|
3066
3066
|
nextEl: h,
|
|
3067
3067
|
prevEl: g
|
|
3068
3068
|
}), h = be(h), g = be(g);
|
|
3069
|
-
const m = (
|
|
3070
|
-
|
|
3069
|
+
const m = (S, y) => {
|
|
3070
|
+
S && S.addEventListener("click", y === "next" ? u : l), !t.enabled && S && S.classList.add(...p.lockClass.split(" "));
|
|
3071
3071
|
};
|
|
3072
|
-
h.forEach((
|
|
3072
|
+
h.forEach((S) => m(S, "next")), g.forEach((S) => m(S, "prev"));
|
|
3073
3073
|
}
|
|
3074
3074
|
function d() {
|
|
3075
3075
|
let {
|
|
@@ -3077,8 +3077,8 @@ function au(e) {
|
|
|
3077
3077
|
prevEl: h
|
|
3078
3078
|
} = t.navigation;
|
|
3079
3079
|
p = be(p), h = be(h);
|
|
3080
|
-
const g = (m,
|
|
3081
|
-
m.removeEventListener("click",
|
|
3080
|
+
const g = (m, S) => {
|
|
3081
|
+
m.removeEventListener("click", S === "next" ? u : l), m.classList.remove(...t.params.navigation.disabledClass.split(" "));
|
|
3082
3082
|
};
|
|
3083
3083
|
p.forEach((m) => g(m, "next")), h.forEach((m) => g(m, "prev"));
|
|
3084
3084
|
}
|
|
@@ -3104,14 +3104,14 @@ function au(e) {
|
|
|
3104
3104
|
prevEl: m
|
|
3105
3105
|
} = t.navigation;
|
|
3106
3106
|
g = be(g), m = be(m);
|
|
3107
|
-
const
|
|
3108
|
-
let
|
|
3109
|
-
if (t.isElement && !
|
|
3107
|
+
const S = h.target;
|
|
3108
|
+
let y = m.includes(S) || g.includes(S);
|
|
3109
|
+
if (t.isElement && !y) {
|
|
3110
3110
|
const b = h.path || h.composedPath && h.composedPath();
|
|
3111
|
-
b && (
|
|
3111
|
+
b && (y = b.find((w) => g.includes(w) || m.includes(w)));
|
|
3112
3112
|
}
|
|
3113
|
-
if (t.params.navigation.hideOnClick && !
|
|
3114
|
-
if (t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el ===
|
|
3113
|
+
if (t.params.navigation.hideOnClick && !y) {
|
|
3114
|
+
if (t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el === S || t.pagination.el.contains(S))) return;
|
|
3115
3115
|
let b;
|
|
3116
3116
|
g.length ? b = g[0].classList.contains(t.params.navigation.hiddenClass) : m.length && (b = m[0].classList.contains(t.params.navigation.hiddenClass)), i(b === !0 ? "navigationShow" : "navigationHide"), [...g, ...m].filter((w) => !!w).forEach((w) => w.classList.toggle(t.params.navigation.hiddenClass));
|
|
3117
3117
|
}
|
|
@@ -3197,26 +3197,26 @@ function uu(e) {
|
|
|
3197
3197
|
rtlTranslate: v,
|
|
3198
3198
|
size: p,
|
|
3199
3199
|
browser: h
|
|
3200
|
-
} = t, g = ka(t), m = t.params.cubeEffect,
|
|
3200
|
+
} = t, g = ka(t), m = t.params.cubeEffect, S = t.isHorizontal(), y = t.virtual && t.params.virtual.enabled;
|
|
3201
3201
|
let b = 0, w;
|
|
3202
|
-
m.shadow && (
|
|
3203
|
-
for (let
|
|
3204
|
-
const _ = c[
|
|
3205
|
-
let T =
|
|
3206
|
-
|
|
3202
|
+
m.shadow && (S ? (w = t.wrapperEl.querySelector(".swiper-cube-shadow"), w || (w = Le("div", "swiper-cube-shadow"), t.wrapperEl.append(w)), w.style.height = `${d}px`) : (w = l.querySelector(".swiper-cube-shadow"), w || (w = Le("div", "swiper-cube-shadow"), l.append(w))));
|
|
3203
|
+
for (let C = 0; C < c.length; C += 1) {
|
|
3204
|
+
const _ = c[C];
|
|
3205
|
+
let T = C;
|
|
3206
|
+
y && (T = parseInt(_.getAttribute("data-swiper-slide-index"), 10));
|
|
3207
3207
|
let P = T * 90, A = Math.floor(P / 360);
|
|
3208
3208
|
v && (P = -P, A = Math.floor(-P / 360));
|
|
3209
3209
|
const I = Math.max(Math.min(_.progress, 1), -1);
|
|
3210
3210
|
let L = 0, N = 0, j = 0;
|
|
3211
|
-
T % 4 === 0 ? (L = -A * 4 * p, j = 0) : (T - 1) % 4 === 0 ? (L = 0, j = -A * 4 * p) : (T - 2) % 4 === 0 ? (L = p + A * 4 * p, j = p) : (T - 3) % 4 === 0 && (L = -p, j = 3 * p + p * 4 * A), v && (L = -L),
|
|
3212
|
-
const D = `rotateX(${g(
|
|
3213
|
-
I <= 1 && I > -1 && (b = T * 90 + I * 90, v && (b = -T * 90 - I * 90)), _.style.transform = D, m.slideShadows && i(_, I,
|
|
3211
|
+
T % 4 === 0 ? (L = -A * 4 * p, j = 0) : (T - 1) % 4 === 0 ? (L = 0, j = -A * 4 * p) : (T - 2) % 4 === 0 ? (L = p + A * 4 * p, j = p) : (T - 3) % 4 === 0 && (L = -p, j = 3 * p + p * 4 * A), v && (L = -L), S || (N = L, L = 0);
|
|
3212
|
+
const D = `rotateX(${g(S ? 0 : -P)}deg) rotateY(${g(S ? P : 0)}deg) translate3d(${L}px, ${N}px, ${j}px)`;
|
|
3213
|
+
I <= 1 && I > -1 && (b = T * 90 + I * 90, v && (b = -T * 90 - I * 90)), _.style.transform = D, m.slideShadows && i(_, I, S);
|
|
3214
3214
|
}
|
|
3215
3215
|
if (u.style.transformOrigin = `50% 50% -${p / 2}px`, u.style["-webkit-transform-origin"] = `50% 50% -${p / 2}px`, m.shadow)
|
|
3216
|
-
if (
|
|
3216
|
+
if (S)
|
|
3217
3217
|
w.style.transform = `translate3d(0px, ${d / 2 + m.shadowOffset}px, ${-d / 2}px) rotateX(89.99deg) rotateZ(0deg) scale(${m.shadowScale})`;
|
|
3218
3218
|
else {
|
|
3219
|
-
const
|
|
3219
|
+
const C = Math.abs(b) - Math.floor(Math.abs(b) / 90) * 90, _ = 1.5 - (Math.sin(C * 2 * Math.PI / 360) / 2 + Math.cos(C * 2 * Math.PI / 360) / 2), T = m.shadowScale, P = m.shadowScale / _, A = m.shadowOffset;
|
|
3220
3220
|
w.style.transform = `scale3d(${T}, 1, ${P}) translate3d(0px, ${f / 2 + A}px, ${-f / 2 / P}px) rotateX(-89.99deg)`;
|
|
3221
3221
|
}
|
|
3222
3222
|
const x = (h.isSafari || h.isWebView) && h.needPerspectiveFix ? -p / 2 : 0;
|
|
@@ -3269,10 +3269,10 @@ const cu = "_StoryCube_1rp57_1", du = "_AtSwiperCubeWrap_1rp57_17", fu = "_AtSwi
|
|
|
3269
3269
|
Complete: yu,
|
|
3270
3270
|
ProgressAnimate: Su,
|
|
3271
3271
|
Pause: wu
|
|
3272
|
-
}, bu = "_story_16e19_1",
|
|
3272
|
+
}, bu = "_story_16e19_1", xu = "_BetSlip_Wrapper_16e19_17", Tu = "_BetSlip_ButtonWrap_16e19_28", nt = {
|
|
3273
3273
|
story: bu,
|
|
3274
|
-
BetSlip_Wrapper:
|
|
3275
|
-
BetSlip_ButtonWrap:
|
|
3274
|
+
BetSlip_Wrapper: xu,
|
|
3275
|
+
BetSlip_ButtonWrap: Tu
|
|
3276
3276
|
}, Pu = "es-PE";
|
|
3277
3277
|
function Eu(e, t = Pu) {
|
|
3278
3278
|
const n = new Date(e), r = n.toLocaleDateString(t, {
|
|
@@ -3289,10 +3289,10 @@ class Cu {
|
|
|
3289
3289
|
static fromRaw(t) {
|
|
3290
3290
|
var s, a, l;
|
|
3291
3291
|
const n = ((a = (s = t == null ? void 0 : t.stakes) == null ? void 0 : s.find((u) => u.isEnabled)) == null ? void 0 : a.preciseValue) ?? 0, r = (l = t == null ? void 0 : t.selections) == null ? void 0 : l.map((u) => {
|
|
3292
|
-
var g, m,
|
|
3293
|
-
const c = parseFloat((m = (g = u == null ? void 0 : u.odd) == null ? void 0 : g.price) == null ? void 0 : m.toFixed(2)), d = Eu((
|
|
3292
|
+
var g, m, S, y, b, w;
|
|
3293
|
+
const c = parseFloat((m = (g = u == null ? void 0 : u.odd) == null ? void 0 : g.price) == null ? void 0 : m.toFixed(2)), d = Eu((S = u == null ? void 0 : u.event) == null ? void 0 : S.startDate), f = (b = (y = u == null ? void 0 : u.odd) == null ? void 0 : y.offers) == null ? void 0 : b.find((x) => x.type === 0), p = u.market.name, h = (w = u == null ? void 0 : u.bbSelections) == null ? void 0 : w.map((x) => {
|
|
3294
3294
|
var P, A, I, L, N;
|
|
3295
|
-
const
|
|
3295
|
+
const C = (P = x == null ? void 0 : x.odd) == null ? void 0 : P.price, _ = parseFloat(C.toFixed(2)), T = (I = (A = x == null ? void 0 : x.odd) == null ? void 0 : A.offers) == null ? void 0 : I.find((j) => j.type === 0);
|
|
3296
3296
|
return {
|
|
3297
3297
|
marketName: (L = x == null ? void 0 : x.market) == null ? void 0 : L.name,
|
|
3298
3298
|
name: (N = x == null ? void 0 : x.odd) == null ? void 0 : N.name,
|
|
@@ -3352,7 +3352,7 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3352
3352
|
/* @__PURE__ */ E("div", { children: r == null ? void 0 : r.name })
|
|
3353
3353
|
] }, i)) }) : /* @__PURE__ */ E(jt, {})
|
|
3354
3354
|
] });
|
|
3355
|
-
}, ku = "
|
|
3355
|
+
}, ku = "_PulseButton_1x1ir_1", Gu = "_BetSlip__NextIcon_1x1ir_21", Yr = {
|
|
3356
3356
|
PulseButton: ku,
|
|
3357
3357
|
BetSlip__NextIcon: Gu
|
|
3358
3358
|
}, $u = "_Button_tq1cu_1", Hu = {
|
|
@@ -3455,83 +3455,84 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3455
3455
|
onAllStoriesEnd: n,
|
|
3456
3456
|
onLeft: r,
|
|
3457
3457
|
onRight: i,
|
|
3458
|
-
play: o
|
|
3458
|
+
play: o,
|
|
3459
|
+
initialIndex: s
|
|
3459
3460
|
}) => {
|
|
3460
|
-
var
|
|
3461
|
-
const [
|
|
3462
|
-
const
|
|
3463
|
-
|
|
3464
|
-
},
|
|
3465
|
-
|
|
3466
|
-
|
|
3461
|
+
var b, w;
|
|
3462
|
+
const [a, l] = Z(!1), u = B(), c = B(!1), [d, f] = Z(s), v = B(null), p = (x) => {
|
|
3463
|
+
const C = v.current.getBoundingClientRect();
|
|
3464
|
+
x.clientX - C.left < C.width / 2 ? d == 0 ? r == null || r(-1) : (r == null || r(d - 1), f(d - 1)) : y();
|
|
3465
|
+
}, h = B(0), g = (x) => {
|
|
3466
|
+
h.current = x.clientX, l(!0), c.current = !1, u.current = window.setTimeout(() => {
|
|
3467
|
+
c.current = !0;
|
|
3467
3468
|
}, 200);
|
|
3468
|
-
},
|
|
3469
|
-
|
|
3470
|
-
},
|
|
3471
|
-
if (
|
|
3472
|
-
|
|
3469
|
+
}, m = (x) => {
|
|
3470
|
+
l(!1), clearTimeout(u.current);
|
|
3471
|
+
}, S = (x) => {
|
|
3472
|
+
if (c.current) {
|
|
3473
|
+
x.preventDefault();
|
|
3473
3474
|
return;
|
|
3474
3475
|
}
|
|
3475
|
-
|
|
3476
|
+
p(x);
|
|
3476
3477
|
}, y = () => {
|
|
3477
|
-
var
|
|
3478
|
-
|
|
3478
|
+
var x;
|
|
3479
|
+
d >= ((x = e == null ? void 0 : e.stories) == null ? void 0 : x.length) - 1 ? (i == null || i(-1), n == null || n(d)) : (i == null || i(d), f(d + 1));
|
|
3479
3480
|
};
|
|
3480
3481
|
return F(() => {
|
|
3481
|
-
o && (t == null || t(
|
|
3482
|
-
}, [
|
|
3483
|
-
if (!o ||
|
|
3484
|
-
const
|
|
3485
|
-
y(), clearTimeout(
|
|
3482
|
+
o && (t == null || t(d, e == null ? void 0 : e.stories[d]));
|
|
3483
|
+
}, [d, o]), F(() => {
|
|
3484
|
+
if (!o || a) return;
|
|
3485
|
+
const x = setTimeout(() => {
|
|
3486
|
+
y(), clearTimeout(x);
|
|
3486
3487
|
}, 7e3);
|
|
3487
3488
|
return () => {
|
|
3488
|
-
clearTimeout(
|
|
3489
|
+
clearTimeout(x);
|
|
3489
3490
|
};
|
|
3490
|
-
}, [
|
|
3491
|
+
}, [d, o, a]), /* @__PURE__ */ U(
|
|
3491
3492
|
"div",
|
|
3492
3493
|
{
|
|
3493
3494
|
className: _e.CardStory,
|
|
3494
|
-
onClick:
|
|
3495
|
-
ref:
|
|
3496
|
-
onPointerDown:
|
|
3497
|
-
onPointerUp:
|
|
3498
|
-
onPointerLeave:
|
|
3495
|
+
onClick: S,
|
|
3496
|
+
ref: v,
|
|
3497
|
+
onPointerDown: g,
|
|
3498
|
+
onPointerUp: m,
|
|
3499
|
+
onPointerLeave: m,
|
|
3499
3500
|
children: [
|
|
3500
|
-
o && /* @__PURE__ */ E("div", { className: _e.CardStory_ProgressRoot, children: (
|
|
3501
|
-
const
|
|
3501
|
+
o && /* @__PURE__ */ E("div", { className: _e.CardStory_ProgressRoot, children: (b = e == null ? void 0 : e.stories) == null ? void 0 : b.map((x, C) => {
|
|
3502
|
+
const _ = d > C, T = d < C, P = d == C;
|
|
3502
3503
|
return /* @__PURE__ */ E(
|
|
3503
3504
|
"div",
|
|
3504
3505
|
{
|
|
3505
3506
|
className: Se(_e.CardStory_ProgressRoot_Track, {
|
|
3506
|
-
[_e.ProgressAnimate]:
|
|
3507
|
-
[_e.Complete]:
|
|
3508
|
-
[_e.NoComplete]:
|
|
3509
|
-
[_e.Pause]:
|
|
3507
|
+
[_e.ProgressAnimate]: P,
|
|
3508
|
+
[_e.Complete]: _,
|
|
3509
|
+
[_e.NoComplete]: T,
|
|
3510
|
+
[_e.Pause]: a
|
|
3510
3511
|
})
|
|
3511
3512
|
},
|
|
3512
|
-
|
|
3513
|
+
x == null ? void 0 : x.id
|
|
3513
3514
|
);
|
|
3514
3515
|
}) }),
|
|
3515
|
-
(
|
|
3516
|
+
(w = e == null ? void 0 : e.stories) == null ? void 0 : w.map((x, C) => d != C ? null : /* @__PURE__ */ U(
|
|
3516
3517
|
"div",
|
|
3517
3518
|
{
|
|
3518
|
-
"data-card-story-index":
|
|
3519
|
+
"data-card-story-index": C,
|
|
3519
3520
|
className: Se(_e.Story, {
|
|
3520
|
-
active:
|
|
3521
|
+
active: d == C
|
|
3521
3522
|
}),
|
|
3522
3523
|
children: [
|
|
3523
|
-
/* @__PURE__ */ E(qu, { story:
|
|
3524
|
+
/* @__PURE__ */ E(qu, { story: x }),
|
|
3524
3525
|
/* @__PURE__ */ E(
|
|
3525
3526
|
Ju,
|
|
3526
3527
|
{
|
|
3527
3528
|
color: e == null ? void 0 : e.color,
|
|
3528
3529
|
image: e == null ? void 0 : e.avatar,
|
|
3529
|
-
story:
|
|
3530
|
+
story: x
|
|
3530
3531
|
}
|
|
3531
3532
|
)
|
|
3532
3533
|
]
|
|
3533
3534
|
},
|
|
3534
|
-
|
|
3535
|
+
x == null ? void 0 : x.id
|
|
3535
3536
|
))
|
|
3536
3537
|
]
|
|
3537
3538
|
}
|
|
@@ -3553,14 +3554,14 @@ function Vo(e, t) {
|
|
|
3553
3554
|
}
|
|
3554
3555
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
3555
3556
|
}
|
|
3556
|
-
var
|
|
3557
|
-
return
|
|
3557
|
+
var M = function() {
|
|
3558
|
+
return M = Object.assign || function(t) {
|
|
3558
3559
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
3559
3560
|
n = arguments[r];
|
|
3560
3561
|
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
3561
3562
|
}
|
|
3562
3563
|
return t;
|
|
3563
|
-
},
|
|
3564
|
+
}, M.apply(this, arguments);
|
|
3564
3565
|
};
|
|
3565
3566
|
function ue(e, t) {
|
|
3566
3567
|
var n = {};
|
|
@@ -3592,7 +3593,7 @@ function le(e, t, n) {
|
|
|
3592
3593
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
3593
3594
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
3594
3595
|
}
|
|
3595
|
-
var Kr = "production", Lo = typeof process > "u" || process.env === void 0 ? Kr : process.env.NODE_ENV || Kr,
|
|
3596
|
+
var Kr = "production", Lo = typeof process > "u" || process.env === void 0 ? Kr : process.env.NODE_ENV || Kr, xe = function(e) {
|
|
3596
3597
|
return {
|
|
3597
3598
|
isEnabled: function(t) {
|
|
3598
3599
|
return e.some(function(n) {
|
|
@@ -3601,8 +3602,8 @@ var Kr = "production", Lo = typeof process > "u" || process.env === void 0 ? Kr
|
|
|
3601
3602
|
}
|
|
3602
3603
|
};
|
|
3603
3604
|
}, ct = {
|
|
3604
|
-
measureLayout:
|
|
3605
|
-
animation:
|
|
3605
|
+
measureLayout: xe(["layout", "layoutId", "drag"]),
|
|
3606
|
+
animation: xe([
|
|
3606
3607
|
"animate",
|
|
3607
3608
|
"exit",
|
|
3608
3609
|
"variants",
|
|
@@ -3612,18 +3613,18 @@ var Kr = "production", Lo = typeof process > "u" || process.env === void 0 ? Kr
|
|
|
3612
3613
|
"whileDrag",
|
|
3613
3614
|
"whileInView"
|
|
3614
3615
|
]),
|
|
3615
|
-
exit:
|
|
3616
|
-
drag:
|
|
3617
|
-
focus:
|
|
3618
|
-
hover:
|
|
3619
|
-
tap:
|
|
3620
|
-
pan:
|
|
3616
|
+
exit: xe(["exit"]),
|
|
3617
|
+
drag: xe(["drag", "dragControls"]),
|
|
3618
|
+
focus: xe(["whileFocus"]),
|
|
3619
|
+
hover: xe(["whileHover", "onHoverStart", "onHoverEnd"]),
|
|
3620
|
+
tap: xe(["whileTap", "onTap", "onTapStart", "onTapCancel"]),
|
|
3621
|
+
pan: xe([
|
|
3621
3622
|
"onPan",
|
|
3622
3623
|
"onPanStart",
|
|
3623
3624
|
"onPanSessionStart",
|
|
3624
3625
|
"onPanEnd"
|
|
3625
3626
|
]),
|
|
3626
|
-
inView:
|
|
3627
|
+
inView: xe([
|
|
3627
3628
|
"whileInView",
|
|
3628
3629
|
"onViewportEnter",
|
|
3629
3630
|
"onViewportLeave"
|
|
@@ -3650,7 +3651,7 @@ function nc(e, t, n) {
|
|
|
3650
3651
|
Lo !== "production" && n && i.strict && ae(!1, "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");
|
|
3651
3652
|
for (var o = 0; o < tc; o++) {
|
|
3652
3653
|
var s = Do[o], a = ct[s], l = a.isEnabled, u = a.Component;
|
|
3653
|
-
l(e) && u && r.push(Rn.createElement(u,
|
|
3654
|
+
l(e) && u && r.push(Rn.createElement(u, M({ key: s }, e, { visualElement: t })));
|
|
3654
3655
|
}
|
|
3655
3656
|
return r;
|
|
3656
3657
|
}
|
|
@@ -3843,11 +3844,11 @@ function gc(e) {
|
|
|
3843
3844
|
t && ec(t);
|
|
3844
3845
|
function a(l, u) {
|
|
3845
3846
|
var c = yc(l);
|
|
3846
|
-
l =
|
|
3847
|
+
l = M(M({}, l), { layoutId: c });
|
|
3847
3848
|
var d = ee(yt), f = null, v = fc(l), p = d.isStatic ? void 0 : vc(), h = o(l, d.isStatic);
|
|
3848
|
-
return !d.isStatic && Je && (v.visualElement = ac(s, h,
|
|
3849
|
+
return !d.isStatic && Je && (v.visualElement = ac(s, h, M(M({}, d), l), n), hc(p, l, v.visualElement, r || ct.projectionNodeConstructor), f = nc(l, v.visualElement, t)), Rn.createElement(
|
|
3849
3850
|
mc,
|
|
3850
|
-
{ visualElement: v.visualElement, props:
|
|
3851
|
+
{ visualElement: v.visualElement, props: M(M({}, d), l) },
|
|
3851
3852
|
f,
|
|
3852
3853
|
Rn.createElement(tn.Provider, { value: v }, i(s, l, p, lc(h, v.visualElement, u), h, d.isStatic, v.visualElement))
|
|
3853
3854
|
);
|
|
@@ -3927,13 +3928,13 @@ var Ut = {};
|
|
|
3927
3928
|
function bc(e) {
|
|
3928
3929
|
Object.assign(Ut, e);
|
|
3929
3930
|
}
|
|
3930
|
-
var kn = ["", "X", "Y", "Z"],
|
|
3931
|
-
|
|
3931
|
+
var kn = ["", "X", "Y", "Z"], xc = ["translate", "scale", "rotate", "skew"], dt = ["transformPerspective", "x", "y", "z"];
|
|
3932
|
+
xc.forEach(function(e) {
|
|
3932
3933
|
return kn.forEach(function(t) {
|
|
3933
3934
|
return dt.push(e + t);
|
|
3934
3935
|
});
|
|
3935
3936
|
});
|
|
3936
|
-
function
|
|
3937
|
+
function Tc(e, t) {
|
|
3937
3938
|
return dt.indexOf(e) - dt.indexOf(t);
|
|
3938
3939
|
}
|
|
3939
3940
|
var Pc = new Set(dt);
|
|
@@ -3958,7 +3959,7 @@ var ve = function(e) {
|
|
|
3958
3959
|
};
|
|
3959
3960
|
function _c(e, t, n, r) {
|
|
3960
3961
|
var i = e.transform, o = e.transformKeys, s = t.enableHardwareAcceleration, a = s === void 0 ? !0 : s, l = t.allowTransformNone, u = l === void 0 ? !0 : l, c = "";
|
|
3961
|
-
o.sort(
|
|
3962
|
+
o.sort(Tc);
|
|
3962
3963
|
for (var d = !1, f = o.length, v = 0; v < f; v++) {
|
|
3963
3964
|
var p = o[v];
|
|
3964
3965
|
c += "".concat(Cc[p] || p, "(").concat(i[p], ") "), p === "z" && (d = !0);
|
|
@@ -4001,10 +4002,10 @@ const $e = {
|
|
|
4001
4002
|
test: cr("hsl", "hue"),
|
|
4002
4003
|
parse: Wo("hue", "saturation", "lightness"),
|
|
4003
4004
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + ye.transform(it(t)) + ", " + ye.transform(it(n)) + ", " + it(ot.transform(r)) + ")"
|
|
4004
|
-
}, Oc = Ho(0, 255),
|
|
4005
|
+
}, Oc = Ho(0, 255), xn = Object.assign(Object.assign({}, $e), { transform: (e) => Math.round(Oc(e)) }), De = {
|
|
4005
4006
|
test: cr("rgb", "red"),
|
|
4006
4007
|
parse: Wo("red", "green", "blue"),
|
|
4007
|
-
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" +
|
|
4008
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + xn.transform(e) + ", " + xn.transform(t) + ", " + xn.transform(n) + ", " + it(ot.transform(r)) + ")"
|
|
4008
4009
|
};
|
|
4009
4010
|
function Dc(e) {
|
|
4010
4011
|
let t = "", n = "", r = "", i = "";
|
|
@@ -4070,7 +4071,7 @@ const jc = /([a-z-]*)\(.*?\)/g, Hn = Object.assign(Object.assign({}, Pe), { getA
|
|
|
4070
4071
|
const t = e.match(jc);
|
|
4071
4072
|
return t ? t.map(zc).join(" ") : e;
|
|
4072
4073
|
} });
|
|
4073
|
-
var Qr =
|
|
4074
|
+
var Qr = M(M({}, $e), { transform: Math.round }), Zo = {
|
|
4074
4075
|
// Border props
|
|
4075
4076
|
borderWidth: R,
|
|
4076
4077
|
borderTopWidth: R,
|
|
@@ -4174,7 +4175,7 @@ function kc(e, t, n) {
|
|
|
4174
4175
|
var i = fr();
|
|
4175
4176
|
dr(i, t, { enableHardwareAcceleration: !n }, r);
|
|
4176
4177
|
var o = i.vars, s = i.style;
|
|
4177
|
-
return
|
|
4178
|
+
return M(M({}, o), s);
|
|
4178
4179
|
}, [t]);
|
|
4179
4180
|
}
|
|
4180
4181
|
function Gc(e, t, n) {
|
|
@@ -4290,23 +4291,23 @@ function pr(e, t, n, r) {
|
|
|
4290
4291
|
p.transform && (g && (h.transform = p.transform), delete p.transform), g && (s !== void 0 || a !== void 0 || h.transform) && (h.transformOrigin = qc(g, s !== void 0 ? s : 0.5, a !== void 0 ? a : 0.5)), i !== void 0 && (p.x = i), o !== void 0 && (p.y = o), l !== void 0 && Xc(p, l, c, f);
|
|
4291
4292
|
}
|
|
4292
4293
|
var es = function() {
|
|
4293
|
-
return
|
|
4294
|
+
return M(M({}, fr()), { attrs: {} });
|
|
4294
4295
|
};
|
|
4295
4296
|
function Kc(e, t) {
|
|
4296
4297
|
var n = mt(function() {
|
|
4297
4298
|
var i = es();
|
|
4298
|
-
return pr(i, t, { enableHardwareAcceleration: !1 }, e.transformTemplate),
|
|
4299
|
+
return pr(i, t, { enableHardwareAcceleration: !1 }, e.transformTemplate), M(M({}, i.attrs), { style: M({}, i.style) });
|
|
4299
4300
|
}, [t]);
|
|
4300
4301
|
if (e.style) {
|
|
4301
4302
|
var r = {};
|
|
4302
|
-
Jo(r, e.style, e), n.style =
|
|
4303
|
+
Jo(r, e.style, e), n.style = M(M({}, r), n.style);
|
|
4303
4304
|
}
|
|
4304
4305
|
return n;
|
|
4305
4306
|
}
|
|
4306
4307
|
function Zc(e) {
|
|
4307
4308
|
e === void 0 && (e = !1);
|
|
4308
4309
|
var t = function(n, r, i, o, s, a) {
|
|
4309
|
-
var l = s.latestValues, u = ur(n) ? Kc : $c, c = u(r, l, a), d = Uc(r, typeof n == "string", e), f =
|
|
4310
|
+
var l = s.latestValues, u = ur(n) ? Kc : $c, c = u(r, l, a), d = Uc(r, typeof n == "string", e), f = M(M(M({}, d), c), { ref: o });
|
|
4310
4311
|
return i && (f["data-projection-id"] = i), da(n, f);
|
|
4311
4312
|
};
|
|
4312
4313
|
return t;
|
|
@@ -4407,17 +4408,17 @@ function td(e, t, n, r) {
|
|
|
4407
4408
|
if (g) {
|
|
4408
4409
|
var m = g.transitionEnd;
|
|
4409
4410
|
g.transition;
|
|
4410
|
-
var
|
|
4411
|
-
for (var
|
|
4412
|
-
var b = y
|
|
4411
|
+
var S = ue(g, ["transitionEnd", "transition"]);
|
|
4412
|
+
for (var y in S) {
|
|
4413
|
+
var b = S[y];
|
|
4413
4414
|
if (Array.isArray(b)) {
|
|
4414
4415
|
var w = f ? b.length - 1 : 0;
|
|
4415
4416
|
b = b[w];
|
|
4416
4417
|
}
|
|
4417
|
-
b !== null && (i[
|
|
4418
|
+
b !== null && (i[y] = b);
|
|
4418
4419
|
}
|
|
4419
|
-
for (var
|
|
4420
|
-
i[
|
|
4420
|
+
for (var y in m)
|
|
4421
|
+
i[y] = m[y];
|
|
4421
4422
|
}
|
|
4422
4423
|
});
|
|
4423
4424
|
}
|
|
@@ -4450,7 +4451,7 @@ var nd = {
|
|
|
4450
4451
|
};
|
|
4451
4452
|
function id(e, t, n, r, i) {
|
|
4452
4453
|
var o = t.forwardMotionProps, s = o === void 0 ? !1 : o, a = ur(e) ? nd : rd;
|
|
4453
|
-
return
|
|
4454
|
+
return M(M({}, a), { preloadedFeatures: n, useRender: Zc(s), createVisualElement: r, projectionNodeConstructor: i, Component: e });
|
|
4454
4455
|
}
|
|
4455
4456
|
var W;
|
|
4456
4457
|
(function(e) {
|
|
@@ -4639,13 +4640,13 @@ function bd(e, t, n) {
|
|
|
4639
4640
|
function Un(e, t) {
|
|
4640
4641
|
return e * Math.sqrt(1 - t * t);
|
|
4641
4642
|
}
|
|
4642
|
-
const
|
|
4643
|
+
const xd = ["duration", "bounce"], Td = ["stiffness", "damping", "mass"];
|
|
4643
4644
|
function ai(e, t) {
|
|
4644
4645
|
return t.some((n) => e[n] !== void 0);
|
|
4645
4646
|
}
|
|
4646
4647
|
function Pd(e) {
|
|
4647
4648
|
let t = Object.assign({ velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1 }, e);
|
|
4648
|
-
if (!ai(e,
|
|
4649
|
+
if (!ai(e, Td) && ai(e, xd)) {
|
|
4649
4650
|
const n = Sd(e);
|
|
4650
4651
|
t = Object.assign(Object.assign(Object.assign({}, t), n), { velocity: 0, mass: 1 }), t.isResolvedFromDuration = !0;
|
|
4651
4652
|
}
|
|
@@ -4656,23 +4657,23 @@ function gr(e) {
|
|
|
4656
4657
|
const s = { done: !1, value: t };
|
|
4657
4658
|
let { stiffness: a, damping: l, mass: u, velocity: c, duration: d, isResolvedFromDuration: f } = Pd(o), v = li, p = li;
|
|
4658
4659
|
function h() {
|
|
4659
|
-
const g = c ? -(c / 1e3) : 0, m = n - t,
|
|
4660
|
-
if (i === void 0 && (i = Math.min(Math.abs(n - t) / 100, 0.4)),
|
|
4661
|
-
const b = Un(
|
|
4660
|
+
const g = c ? -(c / 1e3) : 0, m = n - t, S = l / (2 * Math.sqrt(a * u)), y = Math.sqrt(a / u) / 1e3;
|
|
4661
|
+
if (i === void 0 && (i = Math.min(Math.abs(n - t) / 100, 0.4)), S < 1) {
|
|
4662
|
+
const b = Un(y, S);
|
|
4662
4663
|
v = (w) => {
|
|
4663
|
-
const x = Math.exp(-
|
|
4664
|
-
return n - x * ((g +
|
|
4664
|
+
const x = Math.exp(-S * y * w);
|
|
4665
|
+
return n - x * ((g + S * y * m) / b * Math.sin(b * w) + m * Math.cos(b * w));
|
|
4665
4666
|
}, p = (w) => {
|
|
4666
|
-
const x = Math.exp(-
|
|
4667
|
-
return
|
|
4667
|
+
const x = Math.exp(-S * y * w);
|
|
4668
|
+
return S * y * x * (Math.sin(b * w) * (g + S * y * m) / b + m * Math.cos(b * w)) - x * (Math.cos(b * w) * (g + S * y * m) - b * m * Math.sin(b * w));
|
|
4668
4669
|
};
|
|
4669
|
-
} else if (
|
|
4670
|
-
v = (b) => n - Math.exp(-
|
|
4670
|
+
} else if (S === 1)
|
|
4671
|
+
v = (b) => n - Math.exp(-y * b) * (m + (g + y * m) * b);
|
|
4671
4672
|
else {
|
|
4672
|
-
const b =
|
|
4673
|
+
const b = y * Math.sqrt(S * S - 1);
|
|
4673
4674
|
v = (w) => {
|
|
4674
|
-
const x = Math.exp(-
|
|
4675
|
-
return n - x * ((g +
|
|
4675
|
+
const x = Math.exp(-S * y * w), C = Math.min(b * w, 300);
|
|
4676
|
+
return n - x * ((g + S * y * m) * Math.sinh(C) + b * m * Math.cosh(C)) / b;
|
|
4676
4677
|
};
|
|
4677
4678
|
}
|
|
4678
4679
|
}
|
|
@@ -4682,8 +4683,8 @@ function gr(e) {
|
|
|
4682
4683
|
if (f)
|
|
4683
4684
|
s.done = g >= d;
|
|
4684
4685
|
else {
|
|
4685
|
-
const
|
|
4686
|
-
s.done =
|
|
4686
|
+
const S = p(g) * 1e3, y = Math.abs(S) <= r, b = Math.abs(n - m) <= i;
|
|
4687
|
+
s.done = y && b;
|
|
4687
4688
|
}
|
|
4688
4689
|
return s.value = s.done ? n : m, s;
|
|
4689
4690
|
},
|
|
@@ -4697,7 +4698,7 @@ const li = (e) => 0, vt = (e, t, n) => {
|
|
|
4697
4698
|
const r = t - e;
|
|
4698
4699
|
return r === 0 ? 1 : (n - e) / r;
|
|
4699
4700
|
}, K = (e, t, n) => -n * e + n * t + e;
|
|
4700
|
-
function
|
|
4701
|
+
function Tn(e, t, n) {
|
|
4701
4702
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
4702
4703
|
}
|
|
4703
4704
|
function ui({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
@@ -4707,7 +4708,7 @@ function ui({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
4707
4708
|
i = o = s = n;
|
|
4708
4709
|
else {
|
|
4709
4710
|
const a = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - a;
|
|
4710
|
-
i =
|
|
4711
|
+
i = Tn(l, a, e + 1 / 3), o = Tn(l, a, e), s = Tn(l, a, e - 1 / 3);
|
|
4711
4712
|
}
|
|
4712
4713
|
return {
|
|
4713
4714
|
red: Math.round(i * 255),
|
|
@@ -4810,14 +4811,14 @@ function yr(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
4810
4811
|
const ln = (e) => (t) => 1 - e(1 - t), Sr = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Dd = (e) => (t) => Math.pow(t, e), bs = (e) => (t) => t * t * ((e + 1) * t - e), Rd = (e) => {
|
|
4811
4812
|
const t = bs(e);
|
|
4812
4813
|
return (n) => (n *= 2) < 1 ? 0.5 * t(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1)));
|
|
4813
|
-
},
|
|
4814
|
+
}, xs = 1.525, Nd = 4 / 11, Bd = 8 / 11, Fd = 9 / 10, wr = (e) => e, br = Dd(2), zd = ln(br), Ts = Sr(br), Ps = (e) => 1 - Math.sin(Math.acos(e)), xr = ln(Ps), jd = Sr(xr), Tr = bs(xs), kd = ln(Tr), Gd = Sr(Tr), $d = Rd(xs), Hd = 4356 / 361, Wd = 35442 / 1805, Ud = 16061 / 1805, Kt = (e) => {
|
|
4814
4815
|
if (e === 1 || e === 0)
|
|
4815
4816
|
return e;
|
|
4816
4817
|
const t = e * e;
|
|
4817
4818
|
return e < Nd ? 7.5625 * t : e < Bd ? 9.075 * t - 9.9 * e + 3.4 : e < Fd ? Hd * t - Wd * e + Ud : 10.8 * e * e - 20.52 * e + 10.72;
|
|
4818
4819
|
}, qd = ln(Kt), Yd = (e) => e < 0.5 ? 0.5 * (1 - Kt(1 - e * 2)) : 0.5 * Kt(e * 2 - 1) + 0.5;
|
|
4819
4820
|
function Xd(e, t) {
|
|
4820
|
-
return e.map(() => t ||
|
|
4821
|
+
return e.map(() => t || Ts).splice(0, e.length - 1);
|
|
4821
4822
|
}
|
|
4822
4823
|
function Kd(e) {
|
|
4823
4824
|
const t = e.length;
|
|
@@ -4895,17 +4896,17 @@ let Yn = !0, ht = !1, Xn = !1;
|
|
|
4895
4896
|
const Ke = {
|
|
4896
4897
|
delta: 0,
|
|
4897
4898
|
timestamp: 0
|
|
4898
|
-
},
|
|
4899
|
+
}, xt = [
|
|
4899
4900
|
"read",
|
|
4900
4901
|
"update",
|
|
4901
4902
|
"preRender",
|
|
4902
4903
|
"render",
|
|
4903
4904
|
"postRender"
|
|
4904
|
-
], un =
|
|
4905
|
+
], un = xt.reduce((e, t) => (e[t] = tf(() => ht = !0), e), {}), pe = xt.reduce((e, t) => {
|
|
4905
4906
|
const n = un[t];
|
|
4906
4907
|
return e[t] = (r, i = !1, o = !1) => (ht || of(), n.schedule(r, i, o)), e;
|
|
4907
|
-
}, {}), Ze =
|
|
4908
|
-
ht = !1, Ke.delta = Yn ? Es : Math.max(Math.min(e - Ke.timestamp, nf), 1), Ke.timestamp = e, Xn = !0,
|
|
4908
|
+
}, {}), Ze = xt.reduce((e, t) => (e[t] = un[t].cancel, e), {}), Pn = xt.reduce((e, t) => (e[t] = () => un[t].process(Ke), e), {}), rf = (e) => un[e].process(Ke), _s = (e) => {
|
|
4909
|
+
ht = !1, Ke.delta = Yn ? Es : Math.max(Math.min(e - Ke.timestamp, nf), 1), Ke.timestamp = e, Xn = !0, xt.forEach(rf), Xn = !1, ht && (Yn = !1, Cs(_s));
|
|
4909
4910
|
}, of = () => {
|
|
4910
4911
|
ht = !0, Yn = !0, Xn || Cs(_s);
|
|
4911
4912
|
}, Zt = () => Ke;
|
|
@@ -4927,14 +4928,14 @@ const lf = (e) => {
|
|
|
4927
4928
|
};
|
|
4928
4929
|
function Pr(e) {
|
|
4929
4930
|
var t, n, { from: r, autoplay: i = !0, driver: o = lf, elapsed: s = 0, repeat: a = 0, repeatType: l = "loop", repeatDelay: u = 0, onPlay: c, onStop: d, onComplete: f, onRepeat: v, onUpdate: p } = e, h = ue(e, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
|
|
4930
|
-
let { to: g } = h, m,
|
|
4931
|
+
let { to: g } = h, m, S = 0, y = h.duration, b, w = !1, x = !0, C;
|
|
4931
4932
|
const _ = Qd(h);
|
|
4932
|
-
!((n = (t = _).needsInterpolation) === null || n === void 0) && n.call(t, r, g) && (
|
|
4933
|
+
!((n = (t = _).needsInterpolation) === null || n === void 0) && n.call(t, r, g) && (C = yr([0, 100], [r, g], {
|
|
4933
4934
|
clamp: !1
|
|
4934
4935
|
}), r = 0, g = 100);
|
|
4935
4936
|
const T = _(Object.assign(Object.assign({}, h), { from: r, to: g }));
|
|
4936
4937
|
function P() {
|
|
4937
|
-
|
|
4938
|
+
S++, l === "reverse" ? (x = S % 2 === 0, s = sf(s, y, u, x)) : (s = Ms(s, y, u), l === "mirror" && T.flipTarget()), w = !1, v && v();
|
|
4938
4939
|
}
|
|
4939
4940
|
function A() {
|
|
4940
4941
|
m.stop(), f && f();
|
|
@@ -4942,9 +4943,9 @@ function Pr(e) {
|
|
|
4942
4943
|
function I(N) {
|
|
4943
4944
|
if (x || (N = -N), s += N, !w) {
|
|
4944
4945
|
const j = T.next(Math.max(0, s));
|
|
4945
|
-
b = j.value,
|
|
4946
|
+
b = j.value, C && (b = C(b)), w = x ? j.done : s <= 0;
|
|
4946
4947
|
}
|
|
4947
|
-
p == null || p(b), w && (
|
|
4948
|
+
p == null || p(b), w && (S === 0 && (y ?? (y = s)), S < a ? af(s, y, u, x) && P() : A());
|
|
4948
4949
|
}
|
|
4949
4950
|
function L() {
|
|
4950
4951
|
c == null || c(), m = o(I), m.start();
|
|
@@ -4960,35 +4961,35 @@ function As(e, t) {
|
|
|
4960
4961
|
}
|
|
4961
4962
|
function uf({ from: e = 0, velocity: t = 0, min: n, max: r, power: i = 0.8, timeConstant: o = 750, bounceStiffness: s = 500, bounceDamping: a = 10, restDelta: l = 1, modifyTarget: u, driver: c, onUpdate: d, onComplete: f, onStop: v }) {
|
|
4962
4963
|
let p;
|
|
4963
|
-
function h(
|
|
4964
|
-
return n !== void 0 &&
|
|
4964
|
+
function h(y) {
|
|
4965
|
+
return n !== void 0 && y < n || r !== void 0 && y > r;
|
|
4965
4966
|
}
|
|
4966
|
-
function g(
|
|
4967
|
-
return n === void 0 ? r : r === void 0 || Math.abs(n -
|
|
4967
|
+
function g(y) {
|
|
4968
|
+
return n === void 0 ? r : r === void 0 || Math.abs(n - y) < Math.abs(r - y) ? n : r;
|
|
4968
4969
|
}
|
|
4969
|
-
function m(
|
|
4970
|
-
p == null || p.stop(), p = Pr(Object.assign(Object.assign({},
|
|
4970
|
+
function m(y) {
|
|
4971
|
+
p == null || p.stop(), p = Pr(Object.assign(Object.assign({}, y), {
|
|
4971
4972
|
driver: c,
|
|
4972
4973
|
onUpdate: (b) => {
|
|
4973
4974
|
var w;
|
|
4974
|
-
d == null || d(b), (w =
|
|
4975
|
+
d == null || d(b), (w = y.onUpdate) === null || w === void 0 || w.call(y, b);
|
|
4975
4976
|
},
|
|
4976
4977
|
onComplete: f,
|
|
4977
4978
|
onStop: v
|
|
4978
4979
|
}));
|
|
4979
4980
|
}
|
|
4980
|
-
function y
|
|
4981
|
-
m(Object.assign({ type: "spring", stiffness: s, damping: a, restDelta: l },
|
|
4981
|
+
function S(y) {
|
|
4982
|
+
m(Object.assign({ type: "spring", stiffness: s, damping: a, restDelta: l }, y));
|
|
4982
4983
|
}
|
|
4983
4984
|
if (h(e))
|
|
4984
|
-
|
|
4985
|
+
S({ from: e, velocity: t, to: g(e) });
|
|
4985
4986
|
else {
|
|
4986
|
-
let
|
|
4987
|
-
typeof u < "u" && (
|
|
4988
|
-
const b = g(
|
|
4989
|
-
let x,
|
|
4987
|
+
let y = i * t + e;
|
|
4988
|
+
typeof u < "u" && (y = u(y));
|
|
4989
|
+
const b = g(y), w = b === n ? -1 : 1;
|
|
4990
|
+
let x, C;
|
|
4990
4991
|
const _ = (T) => {
|
|
4991
|
-
x =
|
|
4992
|
+
x = C, C = T, t = As(T - x, Zt().delta), (w === 1 && T > b || w === -1 && T < b) && S({ from: T, to: b, velocity: t });
|
|
4992
4993
|
};
|
|
4993
4994
|
m({
|
|
4994
4995
|
type: "decay",
|
|
@@ -4998,7 +4999,7 @@ function uf({ from: e = 0, velocity: t = 0, min: n, max: r, power: i = 0.8, time
|
|
|
4998
4999
|
power: i,
|
|
4999
5000
|
restDelta: l,
|
|
5000
5001
|
modifyTarget: u,
|
|
5001
|
-
onUpdate: h(
|
|
5002
|
+
onUpdate: h(y) ? _ : void 0
|
|
5002
5003
|
});
|
|
5003
5004
|
}
|
|
5004
5005
|
return {
|
|
@@ -5089,7 +5090,7 @@ function wf(e) {
|
|
|
5089
5090
|
var t = e.root, n = ue(e, ["root"]), r = t || document;
|
|
5090
5091
|
En.has(r) || En.set(r, {});
|
|
5091
5092
|
var i = En.get(r), o = JSON.stringify(n);
|
|
5092
|
-
return i[o] || (i[o] = new IntersectionObserver(Sf,
|
|
5093
|
+
return i[o] || (i[o] = new IntersectionObserver(Sf, M({ root: t }, n))), i[o];
|
|
5093
5094
|
}
|
|
5094
5095
|
function bf(e, t, n) {
|
|
5095
5096
|
var r = wf(t);
|
|
@@ -5097,7 +5098,7 @@ function bf(e, t, n) {
|
|
|
5097
5098
|
Zn.delete(e), r.unobserve(e);
|
|
5098
5099
|
};
|
|
5099
5100
|
}
|
|
5100
|
-
function
|
|
5101
|
+
function xf(e) {
|
|
5101
5102
|
var t = e.visualElement, n = e.whileInView, r = e.onViewportEnter, i = e.onViewportLeave, o = e.viewport, s = o === void 0 ? {} : o, a = B({
|
|
5102
5103
|
hasEnteredView: !1,
|
|
5103
5104
|
isInView: !1
|
|
@@ -5106,7 +5107,7 @@ function Tf(e) {
|
|
|
5106
5107
|
var u = typeof IntersectionObserver > "u" ? Ef : Pf;
|
|
5107
5108
|
u(l, a.current, t, s);
|
|
5108
5109
|
}
|
|
5109
|
-
var
|
|
5110
|
+
var Tf = {
|
|
5110
5111
|
some: 0,
|
|
5111
5112
|
all: 1
|
|
5112
5113
|
};
|
|
@@ -5117,7 +5118,7 @@ function Pf(e, t, n, r) {
|
|
|
5117
5118
|
var u = {
|
|
5118
5119
|
root: i == null ? void 0 : i.current,
|
|
5119
5120
|
rootMargin: o,
|
|
5120
|
-
threshold: typeof a == "number" ? a :
|
|
5121
|
+
threshold: typeof a == "number" ? a : Tf[a]
|
|
5121
5122
|
}, c = function(d) {
|
|
5122
5123
|
var f, v = d.isIntersecting;
|
|
5123
5124
|
if (t.isInView !== v && (t.isInView = v, !(l && !v && t.hasEnteredView))) {
|
|
@@ -5146,7 +5147,7 @@ var Re = function(e) {
|
|
|
5146
5147
|
return e(t), null;
|
|
5147
5148
|
};
|
|
5148
5149
|
}, Cf = {
|
|
5149
|
-
inView: Re(
|
|
5150
|
+
inView: Re(xf),
|
|
5150
5151
|
tap: Re(gf),
|
|
5151
5152
|
focus: Re(od),
|
|
5152
5153
|
hover: Re(hd)
|
|
@@ -5184,12 +5185,12 @@ var Qt = function(e) {
|
|
|
5184
5185
|
}, mi = {
|
|
5185
5186
|
linear: wr,
|
|
5186
5187
|
easeIn: br,
|
|
5187
|
-
easeInOut:
|
|
5188
|
+
easeInOut: Ts,
|
|
5188
5189
|
easeOut: zd,
|
|
5189
5190
|
circIn: Ps,
|
|
5190
5191
|
circInOut: jd,
|
|
5191
|
-
circOut:
|
|
5192
|
-
backIn:
|
|
5192
|
+
circOut: xr,
|
|
5193
|
+
backIn: Tr,
|
|
5193
5194
|
backInOut: Gd,
|
|
5194
5195
|
backOut: kd,
|
|
5195
5196
|
anticipate: $d,
|
|
@@ -5253,8 +5254,8 @@ var Qt = function(e) {
|
|
|
5253
5254
|
default: Vt
|
|
5254
5255
|
}, Lf = function(e, t) {
|
|
5255
5256
|
var n;
|
|
5256
|
-
return pt(t) ? n = Vf : n = Si[e] || Si.default,
|
|
5257
|
-
}, Of =
|
|
5257
|
+
return pt(t) ? n = Vf : n = Si[e] || Si.default, M({ to: t }, n(t));
|
|
5258
|
+
}, Of = M(M({}, Zo), {
|
|
5258
5259
|
// Color props
|
|
5259
5260
|
color: re,
|
|
5260
5261
|
backgroundColor: re,
|
|
@@ -5283,7 +5284,7 @@ function Df(e) {
|
|
|
5283
5284
|
}
|
|
5284
5285
|
var wi = !1;
|
|
5285
5286
|
function Rf(e) {
|
|
5286
|
-
var t = e.ease, n = e.times, r = e.yoyo, i = e.flip, o = e.loop, s = ue(e, ["ease", "times", "yoyo", "flip", "loop"]), a =
|
|
5287
|
+
var t = e.ease, n = e.times, r = e.yoyo, i = e.flip, o = e.loop, s = ue(e, ["ease", "times", "yoyo", "flip", "loop"]), a = M({}, s);
|
|
5287
5288
|
return n && (a.offset = n), s.duration && (a.duration = Qt(s.duration)), s.repeatDelay && (a.repeatDelay = Qt(s.repeatDelay)), t && (a.ease = If(t) ? t.map(gi) : gi(t)), s.type === "tween" && (a.type = "keyframes"), (r || o || i) && (gt(!wi, "yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."), wi = !0, r ? a.repeatType = "reverse" : o ? a.repeatType = "loop" : i && (a.repeatType = "mirror"), a.repeat = o || r || i || s.repeat), s.type !== "spring" && (a.type = "keyframes"), a;
|
|
5288
5289
|
}
|
|
5289
5290
|
function Nf(e, t) {
|
|
@@ -5295,11 +5296,11 @@ function Bf(e) {
|
|
|
5295
5296
|
}
|
|
5296
5297
|
function Ff(e, t, n) {
|
|
5297
5298
|
var r;
|
|
5298
|
-
return Array.isArray(t.to) && ((r = e.duration) !== null && r !== void 0 || (e.duration = 0.8)), Bf(t), Df(e) || (e =
|
|
5299
|
+
return Array.isArray(t.to) && ((r = e.duration) !== null && r !== void 0 || (e.duration = 0.8)), Bf(t), Df(e) || (e = M(M({}, e), Lf(n, t.to))), M(M({}, t), Rf(e));
|
|
5299
5300
|
}
|
|
5300
5301
|
function zf(e, t, n, r, i) {
|
|
5301
5302
|
var o, s = _r(r, e), a = (o = s.from) !== null && o !== void 0 ? o : t.get(), l = yi(e, n);
|
|
5302
|
-
a === "none" && l && typeof n == "string" ? a = Cr(e, n) : bi(a) && typeof n == "string" ? a =
|
|
5303
|
+
a === "none" && l && typeof n == "string" ? a = Cr(e, n) : bi(a) && typeof n == "string" ? a = xi(n) : !Array.isArray(n) && bi(n) && typeof a == "string" && (n = xi(a));
|
|
5303
5304
|
var u = yi(e, a);
|
|
5304
5305
|
gt(u === l, "You are trying to animate ".concat(e, ' from "').concat(a, '" to "').concat(n, '". ').concat(a, " is not an animatable value - to enable this animation set ").concat(a, " to a value animatable to ").concat(n, " via the `style` property."));
|
|
5305
5306
|
function c() {
|
|
@@ -5312,7 +5313,7 @@ function zf(e, t, n, r, i) {
|
|
|
5312
5313
|
return t.set(v);
|
|
5313
5314
|
}
|
|
5314
5315
|
};
|
|
5315
|
-
return s.type === "inertia" || s.type === "decay" ? uf(
|
|
5316
|
+
return s.type === "inertia" || s.type === "decay" ? uf(M(M({}, f), s)) : Pr(M(M({}, Ff(s, f, e)), { onUpdate: function(v) {
|
|
5316
5317
|
var p;
|
|
5317
5318
|
f.onUpdate(v), (p = s.onUpdate) === null || p === void 0 || p.call(s, v);
|
|
5318
5319
|
}, onComplete: function() {
|
|
@@ -5330,7 +5331,7 @@ function zf(e, t, n, r, i) {
|
|
|
5330
5331
|
function bi(e) {
|
|
5331
5332
|
return e === 0 || typeof e == "string" && parseFloat(e) === 0 && e.indexOf(" ") === -1;
|
|
5332
5333
|
}
|
|
5333
|
-
function
|
|
5334
|
+
function xi(e) {
|
|
5334
5335
|
return typeof e == "number" ? 0 : Cr("", e);
|
|
5335
5336
|
}
|
|
5336
5337
|
function _r(e, t) {
|
|
@@ -5466,7 +5467,7 @@ function Vr(e, t) {
|
|
|
5466
5467
|
var n = rn(e, t), r = n ? e.makeTargetAnimatable(n, !1) : {}, i = r.transitionEnd, o = i === void 0 ? {} : i;
|
|
5467
5468
|
r.transition;
|
|
5468
5469
|
var s = ue(r, ["transitionEnd", "transition"]);
|
|
5469
|
-
s =
|
|
5470
|
+
s = M(M({}, s), o);
|
|
5470
5471
|
for (var a in s) {
|
|
5471
5472
|
var l = ss(s[a]);
|
|
5472
5473
|
qf(e, a, l);
|
|
@@ -5555,11 +5556,11 @@ function ks(e, t, n) {
|
|
|
5555
5556
|
a && (d = a);
|
|
5556
5557
|
var p = [], h = l && ((r = e.animationState) === null || r === void 0 ? void 0 : r.getState()[l]);
|
|
5557
5558
|
for (var g in v) {
|
|
5558
|
-
var m = e.getValue(g),
|
|
5559
|
-
if (!(!m ||
|
|
5560
|
-
var
|
|
5561
|
-
e.shouldReduceMotion && St(g) && (
|
|
5562
|
-
var b = Mr(g, m,
|
|
5559
|
+
var m = e.getValue(g), S = v[g];
|
|
5560
|
+
if (!(!m || S === void 0 || h && tp(h, g))) {
|
|
5561
|
+
var y = M({ delay: s }, d);
|
|
5562
|
+
e.shouldReduceMotion && St(g) && (y = M(M({}, y), { type: !1, delay: 0 }));
|
|
5563
|
+
var b = Mr(g, m, S, y);
|
|
5563
5564
|
p.push(b);
|
|
5564
5565
|
}
|
|
5565
5566
|
}
|
|
@@ -5575,7 +5576,7 @@ function Jf(e, t, n, r, i, o) {
|
|
|
5575
5576
|
return u === void 0 && (u = 0), a - u * r;
|
|
5576
5577
|
};
|
|
5577
5578
|
return Array.from(e.variantChildren).sort(ep).forEach(function(u, c) {
|
|
5578
|
-
s.push(Qn(u, t,
|
|
5579
|
+
s.push(Qn(u, t, M(M({}, o), { delay: n + l(c) })).then(function() {
|
|
5579
5580
|
return u.notifyAnimationComplete(t);
|
|
5580
5581
|
}));
|
|
5581
5582
|
}), Promise.all(s);
|
|
@@ -5615,7 +5616,7 @@ function op(e) {
|
|
|
5615
5616
|
if (f) {
|
|
5616
5617
|
f.transition;
|
|
5617
5618
|
var v = f.transitionEnd, p = ue(f, ["transition", "transitionEnd"]);
|
|
5618
|
-
c =
|
|
5619
|
+
c = M(M(M({}, c), p), v);
|
|
5619
5620
|
}
|
|
5620
5621
|
return c;
|
|
5621
5622
|
};
|
|
@@ -5626,39 +5627,39 @@ function op(e) {
|
|
|
5626
5627
|
t = c(e);
|
|
5627
5628
|
}
|
|
5628
5629
|
function l(c, d) {
|
|
5629
|
-
for (var f, v = e.getProps(), p = e.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), m = {},
|
|
5630
|
-
var _ = np[
|
|
5631
|
-
I === !1 && (
|
|
5630
|
+
for (var f, v = e.getProps(), p = e.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), m = {}, S = 1 / 0, y = function(C) {
|
|
5631
|
+
var _ = np[C], T = n[_], P = (f = v[_]) !== null && f !== void 0 ? f : p[_], A = fe(P), I = _ === d ? T.isActive : null;
|
|
5632
|
+
I === !1 && (S = C);
|
|
5632
5633
|
var L = P === p[_] && P !== v[_] && A;
|
|
5633
|
-
if (L && i && e.manuallyAnimateOnMount && (L = !1), T.protectedKeys =
|
|
5634
|
+
if (L && i && e.manuallyAnimateOnMount && (L = !1), T.protectedKeys = M({}, m), // If it isn't active and hasn't *just* been set as inactive
|
|
5634
5635
|
!T.isActive && I === null || // If we didn't and don't have any defined prop for this animation type
|
|
5635
5636
|
!P && !T.prevProp || // Or if the prop doesn't define an animation
|
|
5636
5637
|
hr(P) || typeof P == "boolean")
|
|
5637
5638
|
return "continue";
|
|
5638
5639
|
var N = sp(T.prevProp, P), j = N || // If we're making this variant active, we want to always make it active
|
|
5639
5640
|
_ === d && T.isActive && !L && A || // If we removed a higher-priority variant (i is in reverse order)
|
|
5640
|
-
|
|
5641
|
+
C > S && A, D = Array.isArray(P) ? P : [P], G = D.reduce(o, {});
|
|
5641
5642
|
I === !1 && (G = {});
|
|
5642
|
-
var H = T.prevResolvedValues, k = H === void 0 ? {} : H, J =
|
|
5643
|
+
var H = T.prevResolvedValues, k = H === void 0 ? {} : H, J = M(M({}, k), G), ce = function(O) {
|
|
5643
5644
|
j = !0, g.delete(O), T.needsAnimating[O] = !0;
|
|
5644
5645
|
};
|
|
5645
5646
|
for (var Q in J) {
|
|
5646
5647
|
var $ = G[Q], V = k[Q];
|
|
5647
5648
|
m.hasOwnProperty(Q) || ($ !== V ? pt($) && pt(V) ? !Bs($, V) || N ? ce(Q) : T.protectedKeys[Q] = !0 : $ !== void 0 ? ce(Q) : g.add(Q) : $ !== void 0 && g.has(Q) ? ce(Q) : T.protectedKeys[Q] = !0);
|
|
5648
5649
|
}
|
|
5649
|
-
T.prevProp = P, T.prevResolvedValues = G, T.isActive && (m =
|
|
5650
|
+
T.prevProp = P, T.prevResolvedValues = G, T.isActive && (m = M(M({}, m), G)), i && e.blockInitialAnimation && (j = !1), j && !L && h.push.apply(h, le([], X(D.map(function(O) {
|
|
5650
5651
|
return {
|
|
5651
5652
|
animation: O,
|
|
5652
|
-
options:
|
|
5653
|
+
options: M({ type: _ }, c)
|
|
5653
5654
|
};
|
|
5654
5655
|
})), !1));
|
|
5655
5656
|
}, b = 0; b < rp; b++)
|
|
5656
|
-
|
|
5657
|
-
if (r =
|
|
5657
|
+
y(b);
|
|
5658
|
+
if (r = M({}, m), g.size) {
|
|
5658
5659
|
var w = {};
|
|
5659
|
-
g.forEach(function(
|
|
5660
|
-
var _ = e.getBaseTarget(
|
|
5661
|
-
_ !== void 0 && (w[
|
|
5660
|
+
g.forEach(function(C) {
|
|
5661
|
+
var _ = e.getBaseTarget(C);
|
|
5662
|
+
_ !== void 0 && (w[C] = _);
|
|
5662
5663
|
}), h.push({ animation: w });
|
|
5663
5664
|
}
|
|
5664
5665
|
var x = !!h.length;
|
|
@@ -5728,9 +5729,9 @@ var lp = {
|
|
|
5728
5729
|
var f = Mn(i.lastMoveEventInfo, i.history), v = i.startEvent !== null, p = Is(f.offset, { x: 0, y: 0 }) >= 3;
|
|
5729
5730
|
if (!(!v && !p)) {
|
|
5730
5731
|
var h = f.point, g = Zt().timestamp;
|
|
5731
|
-
i.history.push(
|
|
5732
|
-
var m = i.handlers,
|
|
5733
|
-
v || (
|
|
5732
|
+
i.history.push(M(M({}, h), { timestamp: g }));
|
|
5733
|
+
var m = i.handlers, S = m.onStart, y = m.onMove;
|
|
5734
|
+
v || (S && S(i.lastMoveEvent, f), i.startEvent = i.lastMoveEvent), y && y(i.lastMoveEvent, f);
|
|
5734
5735
|
}
|
|
5735
5736
|
}
|
|
5736
5737
|
}, this.handlePointerMove = function(f, v) {
|
|
@@ -5746,7 +5747,7 @@ var lp = {
|
|
|
5746
5747
|
}, !(us(t) && t.touches.length > 1)) {
|
|
5747
5748
|
this.handlers = n, this.transformPagePoint = s;
|
|
5748
5749
|
var a = mr(t), l = _n(a, this.transformPagePoint), u = l.point, c = Zt().timestamp;
|
|
5749
|
-
this.history = [
|
|
5750
|
+
this.history = [M(M({}, u), { timestamp: c })];
|
|
5750
5751
|
var d = n.onSessionStart;
|
|
5751
5752
|
d && d(t, Mn(l, this.history)), this.removeListeners = an(Xe(window, "pointermove", this.handlePointerMove), Xe(window, "pointerup", this.handlePointerUp), Xe(window, "pointercancel", this.handlePointerUp));
|
|
5752
5753
|
}
|
|
@@ -5761,15 +5762,15 @@ var lp = {
|
|
|
5761
5762
|
function _n(e, t) {
|
|
5762
5763
|
return t ? { point: t(e.point) } : e;
|
|
5763
5764
|
}
|
|
5764
|
-
function
|
|
5765
|
+
function Ti(e, t) {
|
|
5765
5766
|
return { x: e.x - t.x, y: e.y - t.y };
|
|
5766
5767
|
}
|
|
5767
5768
|
function Mn(e, t) {
|
|
5768
5769
|
var n = e.point;
|
|
5769
5770
|
return {
|
|
5770
5771
|
point: n,
|
|
5771
|
-
delta:
|
|
5772
|
-
offset:
|
|
5772
|
+
delta: Ti(n, $s(t)),
|
|
5773
|
+
offset: Ti(n, up(t)),
|
|
5773
5774
|
velocity: cp(t, 0.1)
|
|
5774
5775
|
};
|
|
5775
5776
|
}
|
|
@@ -5960,14 +5961,14 @@ function Ni(e, t, n) {
|
|
|
5960
5961
|
var r = X(n, 3), i = r[0], o = r[1], s = r[2], a = t[s] !== void 0 ? t[s] : 0.5, l = K(e.min, e.max, a);
|
|
5961
5962
|
tr(e, t[i], t[o], l, t.scale);
|
|
5962
5963
|
}
|
|
5963
|
-
var bp = ["x", "scaleX", "originX"],
|
|
5964
|
+
var bp = ["x", "scaleX", "originX"], xp = ["y", "scaleY", "originY"];
|
|
5964
5965
|
function Ue(e, t) {
|
|
5965
|
-
Ni(e.x, t, bp), Ni(e.y, t,
|
|
5966
|
+
Ni(e.x, t, bp), Ni(e.y, t, xp);
|
|
5966
5967
|
}
|
|
5967
5968
|
function qs(e, t) {
|
|
5968
5969
|
return Hs(Sp(e.getBoundingClientRect(), t));
|
|
5969
5970
|
}
|
|
5970
|
-
function
|
|
5971
|
+
function Tp(e, t, n) {
|
|
5971
5972
|
var r = qs(e, n), i = t.scroll;
|
|
5972
5973
|
return i && (Ve(r.x, i.x), Ve(r.y, i.y)), r;
|
|
5973
5974
|
}
|
|
@@ -5984,26 +5985,26 @@ var Pp = /* @__PURE__ */ new WeakMap(), Ep = (
|
|
|
5984
5985
|
r.stopAnimation(), s && r.snapToCursor(mr(d, "page").point);
|
|
5985
5986
|
}, l = function(d, f) {
|
|
5986
5987
|
var v, p = r.getProps(), h = p.drag, g = p.dragPropagation, m = p.onDragStart;
|
|
5987
|
-
h && !g && (r.openGlobalLock && r.openGlobalLock(), r.openGlobalLock = ps(h), !r.openGlobalLock) || (r.isDragging = !0, r.currentDirection = null, r.resolveConstraints(), r.visualElement.projection && (r.visualElement.projection.isAnimationBlocked = !0, r.visualElement.projection.target = void 0), me(function(
|
|
5988
|
-
var
|
|
5988
|
+
h && !g && (r.openGlobalLock && r.openGlobalLock(), r.openGlobalLock = ps(h), !r.openGlobalLock) || (r.isDragging = !0, r.currentDirection = null, r.resolveConstraints(), r.visualElement.projection && (r.visualElement.projection.isAnimationBlocked = !0, r.visualElement.projection.target = void 0), me(function(S) {
|
|
5989
|
+
var y, b, w = r.getAxisMotionValue(S).get() || 0;
|
|
5989
5990
|
if (ye.test(w)) {
|
|
5990
|
-
var x = (b = (
|
|
5991
|
+
var x = (b = (y = r.visualElement.projection) === null || y === void 0 ? void 0 : y.layout) === null || b === void 0 ? void 0 : b.actual[S];
|
|
5991
5992
|
if (x) {
|
|
5992
|
-
var
|
|
5993
|
-
w =
|
|
5993
|
+
var C = Ee(x);
|
|
5994
|
+
w = C * (parseFloat(w) / 100);
|
|
5994
5995
|
}
|
|
5995
5996
|
}
|
|
5996
|
-
r.originPoint[
|
|
5997
|
+
r.originPoint[S] = w;
|
|
5997
5998
|
}), m == null || m(d, f), (v = r.visualElement.animationState) === null || v === void 0 || v.setActive(W.Drag, !0));
|
|
5998
5999
|
}, u = function(d, f) {
|
|
5999
6000
|
var v = r.getProps(), p = v.dragPropagation, h = v.dragDirectionLock, g = v.onDirectionLock, m = v.onDrag;
|
|
6000
6001
|
if (!(!p && !r.openGlobalLock)) {
|
|
6001
|
-
var
|
|
6002
|
+
var S = f.offset;
|
|
6002
6003
|
if (h && r.currentDirection === null) {
|
|
6003
|
-
r.currentDirection = Cp(
|
|
6004
|
+
r.currentDirection = Cp(S), r.currentDirection !== null && (g == null || g(r.currentDirection));
|
|
6004
6005
|
return;
|
|
6005
6006
|
}
|
|
6006
|
-
r.updateAxis("x", f.point,
|
|
6007
|
+
r.updateAxis("x", f.point, S), r.updateAxis("y", f.point, S), r.visualElement.syncRender(), m == null || m(d, f);
|
|
6007
6008
|
}
|
|
6008
6009
|
}, c = function(d, f) {
|
|
6009
6010
|
return r.stop(d, f);
|
|
@@ -6048,7 +6049,7 @@ var Pp = /* @__PURE__ */ new WeakMap(), Ep = (
|
|
|
6048
6049
|
var o = this.visualElement.projection;
|
|
6049
6050
|
if (!o || !o.layout)
|
|
6050
6051
|
return !1;
|
|
6051
|
-
var s =
|
|
6052
|
+
var s = Tp(i, o.root, this.visualElement.getTransformPagePoint()), a = vp(o.layout.actual, s);
|
|
6052
6053
|
if (r) {
|
|
6053
6054
|
var l = r(yp(a));
|
|
6054
6055
|
this.hasMutatedConstraints = !!l, l && (a = Hs(l));
|
|
@@ -6060,7 +6061,7 @@ var Pp = /* @__PURE__ */ new WeakMap(), Ep = (
|
|
|
6060
6061
|
if (Lt(f, i, n.currentDirection)) {
|
|
6061
6062
|
var p = (v = c == null ? void 0 : c[f]) !== null && v !== void 0 ? v : {};
|
|
6062
6063
|
l && (p = { min: 0, max: 0 });
|
|
6063
|
-
var h = s ? 200 : 1e6, g = s ? 40 : 1e7, m =
|
|
6064
|
+
var h = s ? 200 : 1e6, g = s ? 40 : 1e7, m = M(M({ type: "inertia", velocity: o ? t[f] : 0, bounceStiffness: h, bounceDamping: g, timeConstant: 750, restDelta: 1, restSpeed: 10 }, a), p);
|
|
6064
6065
|
return n.startAxisValueAnimation(f, m);
|
|
6065
6066
|
}
|
|
6066
6067
|
});
|
|
@@ -6133,7 +6134,7 @@ var Pp = /* @__PURE__ */ new WeakMap(), Ep = (
|
|
|
6133
6134
|
};
|
|
6134
6135
|
}, e.prototype.getProps = function() {
|
|
6135
6136
|
var t = this.visualElement.getProps(), n = t.drag, r = n === void 0 ? !1 : n, i = t.dragDirectionLock, o = i === void 0 ? !1 : i, s = t.dragPropagation, a = s === void 0 ? !1 : s, l = t.dragConstraints, u = l === void 0 ? !1 : l, c = t.dragElastic, d = c === void 0 ? er : c, f = t.dragMomentum, v = f === void 0 ? !0 : f;
|
|
6136
|
-
return
|
|
6137
|
+
return M(M({}, t), { drag: r, dragDirectionLock: o, dragPropagation: a, dragConstraints: u, dragElastic: d, dragMomentum: v });
|
|
6137
6138
|
}, e;
|
|
6138
6139
|
}()
|
|
6139
6140
|
);
|
|
@@ -6241,11 +6242,11 @@ function Vp(e, t, n) {
|
|
|
6241
6242
|
var Ys = function(e) {
|
|
6242
6243
|
var t = e.treeType, n = t === void 0 ? "" : t, r = e.build, i = e.getBaseTarget, o = e.makeTargetAnimatable, s = e.measureViewportBox, a = e.render, l = e.readValueFromInstance, u = e.removeValueFromRenderState, c = e.sortNodePosition, d = e.scrapeMotionValuesFromProps;
|
|
6243
6244
|
return function(f, v) {
|
|
6244
|
-
var p = f.parent, h = f.props, g = f.presenceId, m = f.blockInitialAnimation,
|
|
6245
|
+
var p = f.parent, h = f.props, g = f.presenceId, m = f.blockInitialAnimation, S = f.visualState, y = f.shouldReduceMotion;
|
|
6245
6246
|
v === void 0 && (v = {});
|
|
6246
|
-
var b = !1, w =
|
|
6247
|
+
var b = !1, w = S.latestValues, x = S.renderState, C, _ = Ip(), T = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), A = {}, I = M({}, w), L;
|
|
6247
6248
|
function N() {
|
|
6248
|
-
!
|
|
6249
|
+
!C || !b || (j(), a(C, x, h.style, $.projection));
|
|
6249
6250
|
}
|
|
6250
6251
|
function j() {
|
|
6251
6252
|
r($, x, w, v, h);
|
|
@@ -6266,7 +6267,7 @@ var Ys = function(e) {
|
|
|
6266
6267
|
var J = H[k];
|
|
6267
6268
|
w[k] !== void 0 && ve(J) && J.set(w[k], !1);
|
|
6268
6269
|
}
|
|
6269
|
-
var ce = on(h), Q = Fo(h), $ =
|
|
6270
|
+
var ce = on(h), Q = Fo(h), $ = M(M({
|
|
6270
6271
|
treeType: n,
|
|
6271
6272
|
/**
|
|
6272
6273
|
* This is a mirror of the internal instance prop, which keeps
|
|
@@ -6283,7 +6284,7 @@ var Ys = function(e) {
|
|
|
6283
6284
|
*
|
|
6284
6285
|
*/
|
|
6285
6286
|
presenceId: g,
|
|
6286
|
-
shouldReduceMotion:
|
|
6287
|
+
shouldReduceMotion: y,
|
|
6287
6288
|
/**
|
|
6288
6289
|
* If this component is part of the variant tree, it should track
|
|
6289
6290
|
* any children that are also part of the tree. This is essentially
|
|
@@ -6317,10 +6318,10 @@ var Ys = function(e) {
|
|
|
6317
6318
|
* own animations on mount.
|
|
6318
6319
|
*/
|
|
6319
6320
|
isMounted: function() {
|
|
6320
|
-
return !!
|
|
6321
|
+
return !!C;
|
|
6321
6322
|
},
|
|
6322
6323
|
mount: function(V) {
|
|
6323
|
-
b = !0,
|
|
6324
|
+
b = !0, C = $.current = V, $.projection && $.projection.mount(V), Q && p && !ce && (L = p == null ? void 0 : p.addVariantChild($)), T.forEach(function(O, z) {
|
|
6324
6325
|
return G(z, O);
|
|
6325
6326
|
}), p == null || p.children.add($), $.setProps(h);
|
|
6326
6327
|
},
|
|
@@ -6331,7 +6332,7 @@ var Ys = function(e) {
|
|
|
6331
6332
|
var V;
|
|
6332
6333
|
(V = $.projection) === null || V === void 0 || V.unmount(), Ze.update(D), Ze.render(N), P.forEach(function(O) {
|
|
6333
6334
|
return O();
|
|
6334
|
-
}), L == null || L(), p == null || p.children.delete($), _.clearAllListeners(),
|
|
6335
|
+
}), L == null || L(), p == null || p.children.delete($), _.clearAllListeners(), C = void 0, b = !1;
|
|
6335
6336
|
},
|
|
6336
6337
|
/**
|
|
6337
6338
|
* Add a child visual element to our set of children.
|
|
@@ -6363,7 +6364,7 @@ var Ys = function(e) {
|
|
|
6363
6364
|
* Returns the current instance.
|
|
6364
6365
|
*/
|
|
6365
6366
|
getInstance: function() {
|
|
6366
|
-
return
|
|
6367
|
+
return C;
|
|
6367
6368
|
},
|
|
6368
6369
|
/**
|
|
6369
6370
|
* Get/set the latest static values.
|
|
@@ -6405,7 +6406,7 @@ var Ys = function(e) {
|
|
|
6405
6406
|
* removed with a re-render to work.
|
|
6406
6407
|
*/
|
|
6407
6408
|
measureViewportBox: function() {
|
|
6408
|
-
return s(
|
|
6409
|
+
return s(C, h);
|
|
6409
6410
|
},
|
|
6410
6411
|
// Motion values ========================
|
|
6411
6412
|
/**
|
|
@@ -6448,7 +6449,7 @@ var Ys = function(e) {
|
|
|
6448
6449
|
*/
|
|
6449
6450
|
readValue: function(V) {
|
|
6450
6451
|
var O;
|
|
6451
|
-
return (O = w[V]) !== null && O !== void 0 ? O : l(
|
|
6452
|
+
return (O = w[V]) !== null && O !== void 0 ? O : l(C, V, v);
|
|
6452
6453
|
},
|
|
6453
6454
|
/**
|
|
6454
6455
|
* Set the base target to later animate back to. This is currently
|
|
@@ -6560,7 +6561,7 @@ function Rp(e, t, n) {
|
|
|
6560
6561
|
var r, i = ue(t, []), o = e.getInstance();
|
|
6561
6562
|
if (!(o instanceof Element))
|
|
6562
6563
|
return { target: i, transitionEnd: n };
|
|
6563
|
-
n && (n =
|
|
6564
|
+
n && (n = M({}, n)), e.forEachValue(function(u) {
|
|
6564
6565
|
var c = u.get();
|
|
6565
6566
|
if (nr(c)) {
|
|
6566
6567
|
var d = rr(c, o);
|
|
@@ -6660,7 +6661,7 @@ var ji = {
|
|
|
6660
6661
|
Js(c, a[u]), e[u] = ji[u](l, o);
|
|
6661
6662
|
}), e;
|
|
6662
6663
|
}, Gp = function(e, t, n, r) {
|
|
6663
|
-
n === void 0 && (n = {}), r === void 0 && (r = {}), t =
|
|
6664
|
+
n === void 0 && (n = {}), r === void 0 && (r = {}), t = M({}, t), r = M({}, r);
|
|
6664
6665
|
var i = Object.keys(t).filter(Zs), o = [], s = !1, a = [];
|
|
6665
6666
|
if (i.forEach(function(c) {
|
|
6666
6667
|
var d = e.getValue(c);
|
|
@@ -6669,14 +6670,14 @@ var ji = {
|
|
|
6669
6670
|
if (pt(p)) {
|
|
6670
6671
|
var g = p.length, m = p[0] === null ? 1 : 0;
|
|
6671
6672
|
f = p[m], v = Qe(f);
|
|
6672
|
-
for (var
|
|
6673
|
-
h ? ae(Qe(p[
|
|
6673
|
+
for (var S = m; S < g; S++)
|
|
6674
|
+
h ? ae(Qe(p[S]) === h, "All keyframes must be of the same type") : (h = Qe(p[S]), ae(h === v || Dt(v) && Dt(h), "Keyframes must be of the same dimension as the current value"));
|
|
6674
6675
|
} else
|
|
6675
6676
|
h = Qe(p);
|
|
6676
6677
|
if (v !== h)
|
|
6677
6678
|
if (Dt(v) && Dt(h)) {
|
|
6678
|
-
var
|
|
6679
|
-
typeof
|
|
6679
|
+
var y = d.get();
|
|
6680
|
+
typeof y == "string" && d.set(parseFloat(y)), typeof p == "string" ? t[c] = parseFloat(p) : Array.isArray(p) && h === R && (t[c] = p.map(parseFloat));
|
|
6680
6681
|
} else v != null && v.transform && (h != null && h.transform) && (f === 0 || p === 0) ? f === 0 ? d.set(h.transform(f)) : t[c] = v.transform(p) : (s || (o = jp(e), s = !0), a.push(c), r[c] = r[c] !== void 0 ? r[c] : t[c], Js(d, p));
|
|
6681
6682
|
}
|
|
6682
6683
|
}), a.length) {
|
|
@@ -6751,14 +6752,14 @@ var Qs = {
|
|
|
6751
6752
|
var u = Hp(e, a, l, s);
|
|
6752
6753
|
s = u.transitionEnd, a = u.target;
|
|
6753
6754
|
}
|
|
6754
|
-
return
|
|
6755
|
+
return M({ transition: o, transitionEnd: s }, a);
|
|
6755
6756
|
},
|
|
6756
6757
|
scrapeMotionValuesFromProps: vr,
|
|
6757
6758
|
build: function(e, t, n, r, i) {
|
|
6758
6759
|
e.isVisible !== void 0 && (t.style.visibility = e.isVisible ? "visible" : "hidden"), dr(t, n, r, i.transformTemplate);
|
|
6759
6760
|
},
|
|
6760
6761
|
render: ns
|
|
6761
|
-
}, Up = Ys(Qs), qp = Ys(
|
|
6762
|
+
}, Up = Ys(Qs), qp = Ys(M(M({}, Qs), { getBaseTarget: function(e, t) {
|
|
6762
6763
|
return e[t];
|
|
6763
6764
|
}, readValueFromInstance: function(e, t) {
|
|
6764
6765
|
var n;
|
|
@@ -6817,7 +6818,7 @@ var et = {
|
|
|
6817
6818
|
var n = this, r = this.props, i = r.visualElement, o = r.layoutGroup, s = r.switchLayoutGroup, a = r.layoutId, l = i.projection;
|
|
6818
6819
|
bc(Jp), l && (o != null && o.group && o.group.add(l), s != null && s.register && a && s.register(l), l.root.didUpdate(), l.addEventListener("animationComplete", function() {
|
|
6819
6820
|
n.safeToRemove();
|
|
6820
|
-
}), l.setOptions(
|
|
6821
|
+
}), l.setOptions(M(M({}, l.options), { onExitComplete: function() {
|
|
6821
6822
|
return n.safeToRemove();
|
|
6822
6823
|
} }))), rt.hasEverUpdated = !0;
|
|
6823
6824
|
}, t.prototype.getSnapshotBeforeUpdate = function(n) {
|
|
@@ -6842,10 +6843,10 @@ var et = {
|
|
|
6842
6843
|
);
|
|
6843
6844
|
function Zp(e) {
|
|
6844
6845
|
var t = X(Ns(), 2), n = t[0], r = t[1], i = ee(zo);
|
|
6845
|
-
return Y.createElement(Kp,
|
|
6846
|
+
return Y.createElement(Kp, M({}, e, { layoutGroup: i, switchLayoutGroup: ee(jo), isPresent: n, safeToRemove: r }));
|
|
6846
6847
|
}
|
|
6847
6848
|
var Jp = {
|
|
6848
|
-
borderRadius:
|
|
6849
|
+
borderRadius: M(M({}, et), { applyTo: [
|
|
6849
6850
|
"borderTopLeftRadius",
|
|
6850
6851
|
"borderTopRightRadius",
|
|
6851
6852
|
"borderBottomLeftRadius",
|
|
@@ -6899,7 +6900,7 @@ function Wi(e, t) {
|
|
|
6899
6900
|
var n;
|
|
6900
6901
|
return (n = e[t]) !== null && n !== void 0 ? n : e.borderRadius;
|
|
6901
6902
|
}
|
|
6902
|
-
var rv = ta(0, 0.5,
|
|
6903
|
+
var rv = ta(0, 0.5, xr), iv = ta(0.5, 0.95, wr);
|
|
6903
6904
|
function ta(e, t, n) {
|
|
6904
6905
|
return function(r) {
|
|
6905
6906
|
return r < e ? 0 : r > t ? 1 : n(vt(e, t, r));
|
|
@@ -7057,15 +7058,15 @@ function ia(e) {
|
|
|
7057
7058
|
});
|
|
7058
7059
|
}
|
|
7059
7060
|
f && this.root.registerSharedNode(f, this), this.options.animate !== !1 && p && (f || v) && this.addEventListener("didUpdate", function(m) {
|
|
7060
|
-
var
|
|
7061
|
+
var S, y, b, w, x, C = m.delta, _ = m.hasLayoutChanged, T = m.hasRelativeTargetChanged, P = m.layout;
|
|
7061
7062
|
if (u.isTreeAnimationBlocked()) {
|
|
7062
7063
|
u.target = void 0, u.relativeTarget = void 0;
|
|
7063
7064
|
return;
|
|
7064
7065
|
}
|
|
7065
|
-
var A = (
|
|
7066
|
+
var A = (y = (S = u.options.transition) !== null && S !== void 0 ? S : p.getDefaultTransition()) !== null && y !== void 0 ? y : Tv, I = p.getProps(), L = I.onLayoutAnimationStart, N = I.onLayoutAnimationComplete, j = !u.targetLayout || !ra(u.targetLayout, P) || T, D = !_ && T;
|
|
7066
7067
|
if (!((b = u.resumeFrom) === null || b === void 0) && b.instance || D || _ && (j || !u.currentAnimation)) {
|
|
7067
|
-
u.resumeFrom && (u.resumingFrom = u.resumeFrom, u.resumingFrom.resumingFrom = void 0), u.setAnimationOrigin(
|
|
7068
|
-
var G =
|
|
7068
|
+
u.resumeFrom && (u.resumingFrom = u.resumeFrom, u.resumingFrom.resumingFrom = void 0), u.setAnimationOrigin(C, D);
|
|
7069
|
+
var G = M(M({}, _r(A, "layout")), { onPlay: L, onComplete: N });
|
|
7069
7070
|
p.shouldReduceMotion && (G.delay = 0, G.type = !1), u.startAnimation(G);
|
|
7070
7071
|
} else
|
|
7071
7072
|
!_ && u.animationProgress === 0 && u.finishAnimation(), u.isLead() && ((x = (w = u.options).onExitComplete) === null || x === void 0 || x.call(w));
|
|
@@ -7203,7 +7204,7 @@ function ia(e) {
|
|
|
7203
7204
|
this.targetDelta = a, this.root.scheduleUpdateProjection();
|
|
7204
7205
|
}, s.prototype.setOptions = function(a) {
|
|
7205
7206
|
var l;
|
|
7206
|
-
this.options =
|
|
7207
|
+
this.options = M(M(M({}, this.options), a), { crossfade: (l = a.crossfade) !== null && l !== void 0 ? l : !0 });
|
|
7207
7208
|
}, s.prototype.clearMeasurements = function() {
|
|
7208
7209
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
7209
7210
|
}, s.prototype.resolveTargetDelta = function() {
|
|
@@ -7234,17 +7235,17 @@ function ia(e) {
|
|
|
7234
7235
|
}, s.prototype.setAnimationOrigin = function(a, l) {
|
|
7235
7236
|
var u = this, c;
|
|
7236
7237
|
l === void 0 && (l = !1);
|
|
7237
|
-
var d = this.snapshot, f = (d == null ? void 0 : d.latestValues) || {}, v =
|
|
7238
|
+
var d = this.snapshot, f = (d == null ? void 0 : d.latestValues) || {}, v = M({}, this.latestValues), p = ut();
|
|
7238
7239
|
this.relativeTarget = this.relativeTargetOrigin = void 0, this.attemptToResolveRelativeTarget = !l;
|
|
7239
|
-
var h = te(), g = d == null ? void 0 : d.isShared, m = (((c = this.getStack()) === null || c === void 0 ? void 0 : c.members.length) || 0) <= 1,
|
|
7240
|
-
this.animationProgress = 0, this.mixTargetDelta = function(
|
|
7241
|
-
var b, w =
|
|
7242
|
-
eo(p.x, a.x, w), eo(p.y, a.y, w), u.setTargetDelta(p), u.relativeTarget && u.relativeTargetOrigin && u.layout && (!((b = u.relativeParent) === null || b === void 0) && b.layout) && (lt(h, u.layout.actual, u.relativeParent.layout.actual), bv(u.relativeTarget, u.relativeTargetOrigin, h, w)), g && (u.animationValues = v, nv(v, f, u.latestValues, w,
|
|
7240
|
+
var h = te(), g = d == null ? void 0 : d.isShared, m = (((c = this.getStack()) === null || c === void 0 ? void 0 : c.members.length) || 0) <= 1, S = !!(g && !m && this.options.crossfade === !0 && !this.path.some(xv));
|
|
7241
|
+
this.animationProgress = 0, this.mixTargetDelta = function(y) {
|
|
7242
|
+
var b, w = y / 1e3;
|
|
7243
|
+
eo(p.x, a.x, w), eo(p.y, a.y, w), u.setTargetDelta(p), u.relativeTarget && u.relativeTargetOrigin && u.layout && (!((b = u.relativeParent) === null || b === void 0) && b.layout) && (lt(h, u.layout.actual, u.relativeParent.layout.actual), bv(u.relativeTarget, u.relativeTargetOrigin, h, w)), g && (u.animationValues = v, nv(v, f, u.latestValues, w, S, m)), u.root.scheduleUpdateProjection(), u.scheduleRender(), u.animationProgress = w;
|
|
7243
7244
|
}, this.mixTargetDelta(0);
|
|
7244
7245
|
}, s.prototype.startAnimation = function(a) {
|
|
7245
7246
|
var l = this, u, c;
|
|
7246
7247
|
this.notifyListeners("animationStart"), (u = this.currentAnimation) === null || u === void 0 || u.stop(), this.resumingFrom && ((c = this.resumingFrom.currentAnimation) === null || c === void 0 || c.stop()), this.pendingAnimation && (Ze.update(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = pe.update(function() {
|
|
7247
|
-
rt.hasAnimatedSinceResize = !0, l.currentAnimation = ev(0, Ji,
|
|
7248
|
+
rt.hasAnimatedSinceResize = !0, l.currentAnimation = ev(0, Ji, M(M({}, a), { onUpdate: function(d) {
|
|
7248
7249
|
var f;
|
|
7249
7250
|
l.mixTargetDelta(d), (f = a.onUpdate) === null || f === void 0 || f.call(a, d);
|
|
7250
7251
|
}, onComplete: function() {
|
|
@@ -7320,13 +7321,13 @@ function ia(e) {
|
|
|
7320
7321
|
var m = {};
|
|
7321
7322
|
return this.options.layoutId && (m.opacity = (u = this.latestValues.opacity) !== null && u !== void 0 ? u : 1, m.pointerEvents = Bt(a.pointerEvents) || ""), this.hasProjected && !Ie(this.latestValues) && (m.transform = h ? h({}, "") : "none", this.hasProjected = !1), m;
|
|
7322
7323
|
}
|
|
7323
|
-
var
|
|
7324
|
-
this.applyTransformsToTarget(), p.transform = Zi(this.projectionDeltaWithTransform, this.treeScale,
|
|
7325
|
-
var
|
|
7326
|
-
p.transformOrigin = "".concat(b.origin * 100, "% ").concat(w.origin * 100, "% 0"), g.animationValues ? p.opacity = g === this ? (d = (c =
|
|
7324
|
+
var S = g.animationValues || g.latestValues;
|
|
7325
|
+
this.applyTransformsToTarget(), p.transform = Zi(this.projectionDeltaWithTransform, this.treeScale, S), h && (p.transform = h(S, p.transform));
|
|
7326
|
+
var y = this.projectionDelta, b = y.x, w = y.y;
|
|
7327
|
+
p.transformOrigin = "".concat(b.origin * 100, "% ").concat(w.origin * 100, "% 0"), g.animationValues ? p.opacity = g === this ? (d = (c = S.opacity) !== null && c !== void 0 ? c : this.latestValues.opacity) !== null && d !== void 0 ? d : 1 : this.preserveOpacity ? this.latestValues.opacity : S.opacityExit : p.opacity = g === this ? (f = S.opacity) !== null && f !== void 0 ? f : "" : (v = S.opacityExit) !== null && v !== void 0 ? v : 0;
|
|
7327
7328
|
for (var x in Ut)
|
|
7328
|
-
if (
|
|
7329
|
-
var
|
|
7329
|
+
if (S[x] !== void 0) {
|
|
7330
|
+
var C = Ut[x], _ = C.correct, T = C.applyTo, P = _(S[x], g);
|
|
7330
7331
|
if (T)
|
|
7331
7332
|
for (var A = T.length, I = 0; I < A; I++)
|
|
7332
7333
|
p[T[I]] = P;
|
|
@@ -7352,12 +7353,12 @@ function pv(e) {
|
|
|
7352
7353
|
var t, n, r, i, o = (n = (t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) !== null && n !== void 0 ? n : e.snapshot;
|
|
7353
7354
|
if (e.isLead() && e.layout && o && e.hasListeners("didUpdate")) {
|
|
7354
7355
|
var s = e.layout, a = s.actual, l = s.measured;
|
|
7355
|
-
e.options.animationType === "size" ? me(function(
|
|
7356
|
-
var
|
|
7357
|
-
|
|
7358
|
-
}) : e.options.animationType === "position" && me(function(
|
|
7359
|
-
var
|
|
7360
|
-
|
|
7356
|
+
e.options.animationType === "size" ? me(function(S) {
|
|
7357
|
+
var y = o.isShared ? o.measured[S] : o.layout[S], b = Ee(y);
|
|
7358
|
+
y.min = a[S].min, y.max = y.min + b;
|
|
7359
|
+
}) : e.options.animationType === "position" && me(function(S) {
|
|
7360
|
+
var y = o.isShared ? o.measured[S] : o.layout[S], b = Ee(a[S]);
|
|
7361
|
+
y.max = y.min + b;
|
|
7361
7362
|
});
|
|
7362
7363
|
var u = ut();
|
|
7363
7364
|
at(u, a, o.layout);
|
|
@@ -7418,10 +7419,10 @@ function to(e, t, n, r) {
|
|
|
7418
7419
|
function bv(e, t, n, r) {
|
|
7419
7420
|
to(e.x, t.x, n.x, r), to(e.y, t.y, n.y, r);
|
|
7420
7421
|
}
|
|
7421
|
-
function
|
|
7422
|
+
function xv(e) {
|
|
7422
7423
|
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
7423
7424
|
}
|
|
7424
|
-
var
|
|
7425
|
+
var Tv = {
|
|
7425
7426
|
duration: 0.45,
|
|
7426
7427
|
ease: [0.4, 0, 0.1, 1]
|
|
7427
7428
|
};
|
|
@@ -7475,7 +7476,7 @@ var Ev = ia({
|
|
|
7475
7476
|
checkIsScrollRoot: function(e) {
|
|
7476
7477
|
return window.getComputedStyle(e).position === "fixed";
|
|
7477
7478
|
}
|
|
7478
|
-
}), _v =
|
|
7479
|
+
}), _v = M(M(M(M({}, lp), Cf), Ap), Qp), oa = /* @__PURE__ */ Sc(function(e, t) {
|
|
7479
7480
|
return id(e, t, _v, Yp, Cv);
|
|
7480
7481
|
});
|
|
7481
7482
|
function Or(e) {
|
|
@@ -7498,7 +7499,7 @@ var Mv = function(e) {
|
|
|
7498
7499
|
function Iv() {
|
|
7499
7500
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
7500
7501
|
e[t] = arguments[t];
|
|
7501
|
-
var n = !Array.isArray(e[0]), r = n ? 0 : -1, i = e[0 + r], o = e[1 + r], s = e[2 + r], a = e[3 + r], l = yr(o, s,
|
|
7502
|
+
var n = !Array.isArray(e[0]), r = n ? 0 : -1, i = e[0 + r], o = e[1 + r], s = e[2 + r], a = e[3 + r], l = yr(o, s, M({ mixer: Av(s[0]) }, a));
|
|
7502
7503
|
return n ? l(i) : l;
|
|
7503
7504
|
}
|
|
7504
7505
|
function Vv(e, t) {
|
|
@@ -7550,7 +7551,7 @@ function Rv(e, t) {
|
|
|
7550
7551
|
var n = ee(yt).isStatic, r = B(null), i = Or(ve(e) ? e.get() : e);
|
|
7551
7552
|
return mt(function() {
|
|
7552
7553
|
return i.attach(function(o, s) {
|
|
7553
|
-
return n ? s(o) : (r.current && r.current.stop(), r.current = Pr(
|
|
7554
|
+
return n ? s(o) : (r.current && r.current.stop(), r.current = Pr(M(M({ from: i.get(), to: o, velocity: i.getVelocity() }, t), { onUpdate: s })), i.get());
|
|
7554
7555
|
});
|
|
7555
7556
|
}, [JSON.stringify(t)]), Vv(e, function(o) {
|
|
7556
7557
|
return i.set(parseFloat(o));
|
|
@@ -7692,7 +7693,8 @@ function jv({
|
|
|
7692
7693
|
const [l, u] = Z(r);
|
|
7693
7694
|
zv(t, () => n == null ? void 0 : n());
|
|
7694
7695
|
const {
|
|
7695
|
-
markStorySeen: c
|
|
7696
|
+
markStorySeen: c,
|
|
7697
|
+
getNextUnseenStoryIndex: d
|
|
7696
7698
|
} = po({ container: "HOME" });
|
|
7697
7699
|
return t ? /* @__PURE__ */ E("div", { className: Ct.StoryCube, children: /* @__PURE__ */ U("div", { className: Ct.AtSwiperCubeWrap, ref: s, children: [
|
|
7698
7700
|
/* @__PURE__ */ E("div", { className: Ct.CloseIcon, onClick: n, children: /* @__PURE__ */ E(aa, {}) }),
|
|
@@ -7703,34 +7705,38 @@ function jv({
|
|
|
7703
7705
|
effect: "cube",
|
|
7704
7706
|
onSliderMove: () => o(!0),
|
|
7705
7707
|
onTransitionEnd: () => o(!1),
|
|
7706
|
-
onSwiper: (
|
|
7708
|
+
onSwiper: (f) => a.current = f,
|
|
7707
7709
|
cubeEffect: {
|
|
7708
7710
|
shadow: !1,
|
|
7709
7711
|
slideShadows: !1
|
|
7710
7712
|
},
|
|
7711
7713
|
className: Ct.AtSwiperCube,
|
|
7712
|
-
onSlideChange: (
|
|
7713
|
-
u(
|
|
7714
|
+
onSlideChange: (f) => {
|
|
7715
|
+
u(f.activeIndex);
|
|
7714
7716
|
},
|
|
7715
7717
|
initialSlide: l,
|
|
7716
|
-
children: e == null ? void 0 : e.map((
|
|
7718
|
+
children: e == null ? void 0 : e.map((f, v) => (console.log(f.id), console.log(
|
|
7719
|
+
"getNextUnseenStoryIndex=> ",
|
|
7720
|
+
d(f)
|
|
7721
|
+
), /* @__PURE__ */ E(Ao, { children: /* @__PURE__ */ E(
|
|
7717
7722
|
Qu,
|
|
7718
7723
|
{
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7724
|
+
initialIndex: d(f),
|
|
7725
|
+
play: l == v,
|
|
7726
|
+
story: f,
|
|
7727
|
+
onChangeStory: (p, h) => {
|
|
7728
|
+
c(f == null ? void 0 : f.id, h == null ? void 0 : h.id);
|
|
7723
7729
|
},
|
|
7724
7730
|
onAllStoriesEnd: () => {
|
|
7725
|
-
var v;
|
|
7726
|
-
(v = a.current) == null || v.slideNext();
|
|
7727
|
-
},
|
|
7728
|
-
onLeft: (v) => {
|
|
7729
7731
|
var p;
|
|
7730
|
-
|
|
7732
|
+
(p = a.current) == null || p.slideNext();
|
|
7733
|
+
},
|
|
7734
|
+
onLeft: (p) => {
|
|
7735
|
+
var h;
|
|
7736
|
+
p == -1 && ((h = a.current) == null || h.slidePrev());
|
|
7731
7737
|
}
|
|
7732
7738
|
}
|
|
7733
|
-
) },
|
|
7739
|
+
) }, f == null ? void 0 : f.id)))
|
|
7734
7740
|
}
|
|
7735
7741
|
) })
|
|
7736
7742
|
] }) }) : null;
|
|
@@ -7936,10 +7942,7 @@ var Vn, Hv = (Vn = "indiana-scroll-container", function(e, t) {
|
|
|
7936
7942
|
}, t.defaultProps = { nativeMobileScroll: !0, hideScrollbars: !0, activationDistance: 10, vertical: !0, horizontal: !0, stopPropagation: !1, style: {}, component: "div", buttons: [0] }, t;
|
|
7937
7943
|
}(fa);
|
|
7938
7944
|
const Oh = ({ className: e = "", data: t, isPortal: n = !0 }) => {
|
|
7939
|
-
const [r, i] = Z(null), o = (v) => i(v), [s, a] = Z(t), {
|
|
7940
|
-
hasSeenAllStories: l,
|
|
7941
|
-
sortProfilesBySeenStatus: u
|
|
7942
|
-
} = po();
|
|
7945
|
+
const [r, i] = Z(null), o = (v) => i(v), [s, a] = Z(t), { hasSeenAllStories: l, sortProfilesBySeenStatus: u } = po();
|
|
7943
7946
|
F(() => {
|
|
7944
7947
|
a(
|
|
7945
7948
|
u(t == null ? void 0 : t.filter((v) => v.stories.length))
|
|
@@ -7966,18 +7969,24 @@ const Oh = ({ className: e = "", data: t, isPortal: n = !0 }) => {
|
|
|
7966
7969
|
),
|
|
7967
7970
|
document.body
|
|
7968
7971
|
) : null;
|
|
7969
|
-
return
|
|
7970
|
-
/* @__PURE__ */ E(
|
|
7971
|
-
|
|
7972
|
+
return s != null && s.length ? /* @__PURE__ */ U(jt, { children: [
|
|
7973
|
+
/* @__PURE__ */ E(
|
|
7974
|
+
Wv,
|
|
7972
7975
|
{
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7976
|
+
className: Se(Rr.ScrollContainerClassName, e),
|
|
7977
|
+
children: s == null ? void 0 : s.map((v, p) => /* @__PURE__ */ E("div", { className: Rr.ItemClassName, children: /* @__PURE__ */ E(
|
|
7978
|
+
fo,
|
|
7979
|
+
{
|
|
7980
|
+
hasSeenAllStories: l(v),
|
|
7981
|
+
onProfileClick: () => o(v == null ? void 0 : v.id),
|
|
7982
|
+
color: v == null ? void 0 : v.color,
|
|
7983
|
+
image: v == null ? void 0 : v.avatar,
|
|
7984
|
+
title: v == null ? void 0 : v.name
|
|
7985
|
+
},
|
|
7986
|
+
v == null ? void 0 : v.id
|
|
7987
|
+
) }))
|
|
7988
|
+
}
|
|
7989
|
+
),
|
|
7981
7990
|
r != null && f()
|
|
7982
7991
|
] }) : /* @__PURE__ */ E(jt, {});
|
|
7983
7992
|
}, Uv = "_StoryPlayer_v4m0s_1", qv = "_Overlay_v4m0s_15", Yv = "_StoryPlayer__Wrap_v4m0s_25", Xv = "_progressContainer_v4m0s_37", Kv = "_CloseIcon_v4m0s_41", Zv = "_inline_v4m0s_57", Jv = "_progressBarContainer_v4m0s_75", Qv = "_progressBar_v4m0s_75", Me = {
|
|
@@ -8099,7 +8108,7 @@ function Sh(e) {
|
|
|
8099
8108
|
return E("div", q({ className: yh }, { children: E(e.story.component, { pause: e.onPause, resume: e.onResume, story: e.story, isPaused: e.isPaused }) }));
|
|
8100
8109
|
}
|
|
8101
8110
|
var wh = "SeeMore-styles_seeMoreWrapper__kwjif", bh = "SeeMore-styles_defaultSeeMore__-B1QW";
|
|
8102
|
-
function
|
|
8111
|
+
function xh(e) {
|
|
8103
8112
|
return e.story.seeMore ? E("button", q({ type: "button", onClick: function() {
|
|
8104
8113
|
e.onSeeMoreClick();
|
|
8105
8114
|
}, className: wh }, { children: function() {
|
|
@@ -8111,15 +8120,15 @@ function Th(e) {
|
|
|
8111
8120
|
return n === "function" ? E(e.story.seeMore, {}) : e.story.seeMore;
|
|
8112
8121
|
}() })) : null;
|
|
8113
8122
|
}
|
|
8114
|
-
var
|
|
8123
|
+
var Th = "SeeMoreComponent-styles_seeMoreComponentWrapper__0T6Ap", Ph = "SeeMoreComponent-styles_closeIcon__LMm3b";
|
|
8115
8124
|
function Eh(e) {
|
|
8116
|
-
return e.story.seeMore && e.story.seeMoreComponent ? U("div", q({ className:
|
|
8125
|
+
return e.story.seeMore && e.story.seeMoreComponent ? U("div", q({ className: Th }, { children: [E("button", q({ className: Ph, onClick: e.onClose }, { children: "✕" })), typeof e.story.seeMoreComponent == "function" ? E(e.story.seeMoreComponent, {}) : e.story.seeMoreComponent] })) : null;
|
|
8117
8126
|
}
|
|
8118
8127
|
function Ch(e) {
|
|
8119
8128
|
var t = Z(!1), n = t[0], r = t[1], i = cn().classNames;
|
|
8120
8129
|
return F(function() {
|
|
8121
8130
|
r(!1);
|
|
8122
|
-
}, [e.story]), U("div", q({ className: "".concat(lh, " ").concat((i == null ? void 0 : i.storyContainer) || "") }, { children: [e.story.type === On.IMAGE ? E(dh, q({}, e)) : e.story.type === On.VIDEO ? E(gh, q({}, e)) : e.story.type === On.COMPONENT ? E(Sh, q({}, e)) : null, e.story.header && E("div", q({ className: uh }, { children: typeof e.story.header == "function" ? E(e.story.header, {}) : e.story.header })), E(
|
|
8131
|
+
}, [e.story]), U("div", q({ className: "".concat(lh, " ").concat((i == null ? void 0 : i.storyContainer) || "") }, { children: [e.story.type === On.IMAGE ? E(dh, q({}, e)) : e.story.type === On.VIDEO ? E(gh, q({}, e)) : e.story.type === On.COMPONENT ? E(Sh, q({}, e)) : null, e.story.header && E("div", q({ className: uh }, { children: typeof e.story.header == "function" ? E(e.story.header, {}) : e.story.header })), E(xh, { onSeeMoreClick: function() {
|
|
8123
8132
|
var o, s;
|
|
8124
8133
|
e.onPause(), r(!0), (s = (o = e.story).onSeeMoreClick) === null || s === void 0 || s.call(o, e.story.index);
|
|
8125
8134
|
}, story: e.story }), n && E(Eh, { story: e.story, onClose: function() {
|
|
@@ -8132,17 +8141,17 @@ function ao(e) {
|
|
|
8132
8141
|
}
|
|
8133
8142
|
function Mh(e) {
|
|
8134
8143
|
var t, n, r, i, o, s, a, l = e.stories, u = l === void 0 ? [] : l, c = e.width, d = c === void 0 ? "100%" : c, f = e.height, v = f === void 0 ? "100%" : f, p = e.onStoryChange, h = p === void 0 ? function() {
|
|
8135
|
-
} : p, g = e.currentIndex, m = g === void 0 ? 0 : g,
|
|
8136
|
-
} : b, x = e.onStoriesStart,
|
|
8144
|
+
} : p, g = e.currentIndex, m = g === void 0 ? 0 : g, S = e.defaultDuration, y = S === void 0 ? 1e4 : S, b = e.onAllStoriesEnd, w = b === void 0 ? function() {
|
|
8145
|
+
} : b, x = e.onStoriesStart, C = x === void 0 ? function() {
|
|
8137
8146
|
} : x, _ = e.classNames, T = _ === void 0 ? {} : _, P = e.pauseStoryWhenInActiveWindow, A = P === void 0 || P, I = mt(function() {
|
|
8138
8147
|
return function(z, ne) {
|
|
8139
8148
|
var he = 0;
|
|
8140
8149
|
return z.map(function(we, ca) {
|
|
8141
|
-
var Dr = we.duration || ne,
|
|
8142
|
-
return
|
|
8150
|
+
var Dr = we.duration || ne, Tt = Dr + ao();
|
|
8151
|
+
return Tt === he && (Tt = Dr + ao(6)), he = Tt, q(q({}, we), { index: ca, calculatedDuration: Tt });
|
|
8143
8152
|
});
|
|
8144
|
-
}(u,
|
|
8145
|
-
}, [u,
|
|
8153
|
+
}(u, y);
|
|
8154
|
+
}, [u, y]), L = Z(), N = L[0], j = L[1], D = u.length - 1, G = Z(!1), H = G[0], k = G[1], J = B(!1), ce = B(!1);
|
|
8146
8155
|
function Q() {
|
|
8147
8156
|
J.current || (N == null ? void 0 : N.index) !== D || (w(), J.current = !0), (N == null ? void 0 : N.index) !== D && j(function(z) {
|
|
8148
8157
|
if (!z) return I[0];
|
|
@@ -8157,8 +8166,8 @@ function Mh(e) {
|
|
|
8157
8166
|
k(!1);
|
|
8158
8167
|
}
|
|
8159
8168
|
F(function() {
|
|
8160
|
-
ce.current || (ce.current = !0,
|
|
8161
|
-
}, [
|
|
8169
|
+
ce.current || (ce.current = !0, C());
|
|
8170
|
+
}, [C]), F(function() {
|
|
8162
8171
|
var z = I[m];
|
|
8163
8172
|
z && j(z);
|
|
8164
8173
|
}, [m, u]), F(function() {
|
|
@@ -8201,7 +8210,7 @@ function Mh(e) {
|
|
|
8201
8210
|
}(function(z) {
|
|
8202
8211
|
A && k(!z);
|
|
8203
8212
|
});
|
|
8204
|
-
var O = { stories: I, width: d, height: v, defaultDuration:
|
|
8213
|
+
var O = { stories: I, width: d, height: v, defaultDuration: y, isPaused: H, classNames: T };
|
|
8205
8214
|
return N ? E(ua.Provider, q({ value: O }, { children: U("div", q({ className: "".concat(_h, " ").concat(T.main || ""), style: { width: d, height: v } }, { children: [E(ah, { activeStoryIndex: N.index, isPaused: H }), E(Ch, { onPause: $, onResume: V, story: N, isPaused: H }, N.index), E(nh, { onNextClick: Q, onPrevClick: function() {
|
|
8206
8215
|
(N == null ? void 0 : N.index) !== 0 && j(function(z) {
|
|
8207
8216
|
if (!z) return I[0];
|