@maycolem/stories 25.0.0 → 27.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
@@ -1,4 +1,4 @@
1
- import { jsx as E, jsxs as U, Fragment as jt } from "react/jsx-runtime";
1
+ import { jsx as C, jsxs as U, Fragment as jt } from "react/jsx-runtime";
2
2
  import * as Rn from "react";
3
3
  import Y, { useState as Z, useRef as B, useCallback as kt, useEffect as F, forwardRef as sr, createContext as Ce, useLayoutEffect as lo, useContext as ee, useMemo as mt, createElement as da, PureComponent as fa, Fragment as uo } from "react";
4
4
  import pa from "react-dom";
@@ -23,7 +23,7 @@ var dn = { exports: {} };
23
23
  http://jedwatson.github.io/classnames
24
24
  */
25
25
  var Nr;
26
- function Ta() {
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 xa = Ta();
59
- const Se = /* @__PURE__ */ co(xa);
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) => {
@@ -100,7 +100,7 @@ const Ma = /* @__PURE__ */ co(_a), fo = ({
100
100
  hasSeenAllStories: s
101
101
  }) => {
102
102
  const [a, { width: l, height: u }] = Pa();
103
- return /* @__PURE__ */ E("div", { ref: a, children: /* @__PURE__ */ U(
103
+ return /* @__PURE__ */ C("div", { ref: a, children: /* @__PURE__ */ U(
104
104
  "div",
105
105
  {
106
106
  className: Se(He.ProfileStory, r, {
@@ -113,8 +113,8 @@ const Ma = /* @__PURE__ */ co(_a), fo = ({
113
113
  "--story-width": o ?? `${l}px`
114
114
  },
115
115
  children: [
116
- /* @__PURE__ */ E("div", { className: He.ProfileStoryWrap, children: /* @__PURE__ */ E("div", { className: He.ProfileStory__wrapImage, children: /* @__PURE__ */ E("div", { className: He.ProfileStory__image, children: /* @__PURE__ */ E("img", { src: e, alt: "", draggable: !1 }) }) }) }),
117
- t && /* @__PURE__ */ E("div", { className: He.ProfileStory__title, children: t })
116
+ /* @__PURE__ */ C("div", { className: He.ProfileStoryWrap, children: /* @__PURE__ */ C("div", { className: He.ProfileStory__wrapImage, children: /* @__PURE__ */ C("div", { className: He.ProfileStory__image, children: /* @__PURE__ */ C("img", { src: e, alt: "", draggable: !1 }) }) }) }),
117
+ t && /* @__PURE__ */ C("div", { className: He.ProfileStory__title, children: t })
118
118
  ]
119
119
  }
120
120
  ) });
@@ -740,44 +740,44 @@ function Xa() {
740
740
  let g = n.slidesOffsetAfter;
741
741
  typeof g == "function" && (g = n.slidesOffsetAfter.call(e));
742
742
  const m = e.snapGrid.length, y = e.slidesGrid.length;
743
- let S = n.spaceBetween, b = -h, w = 0, x = 0;
743
+ let S = n.spaceBetween, b = -h, w = 0, _ = 0;
744
744
  if (typeof o > "u")
745
745
  return;
746
746
  typeof S == "string" && S.indexOf("%") >= 0 ? S = parseFloat(S.replace("%", "")) / 100 * o : typeof S == "string" && (S = parseFloat(S)), e.virtualSize = -S, 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 M = n.grid && n.grid.rows > 1 && e.grid;
750
- M ? e.grid.initSlides(c) : e.grid && e.grid.unsetSlides();
751
- let _;
752
- const T = n.slidesPerView === "auto" && n.breakpoints && Object.keys(n.breakpoints).filter((P) => typeof n.breakpoints[P].slidesPerView < "u").length > 0;
749
+ const T = n.grid && n.grid.rows > 1 && e.grid;
750
+ T ? e.grid.initSlides(c) : e.grid && e.grid.unsetSlides();
751
+ let E;
752
+ const x = 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
- _ = 0;
754
+ E = 0;
755
755
  let A;
756
- if (c[P] && (A = c[P]), M && e.grid.updateSlide(P, A, c), !(c[P] && Oe(A, "display") === "none")) {
756
+ if (c[P] && (A = c[P]), T && e.grid.updateSlide(P, A, c), !(c[P] && Oe(A, "display") === "none")) {
757
757
  if (n.slidesPerView === "auto") {
758
- T && (c[P].style[e.getDirectionLabel("width")] = "");
758
+ x && (c[P].style[e.getDirectionLabel("width")] = "");
759
759
  const I = getComputedStyle(A), L = A.style.transform, N = A.style.webkitTransform;
760
760
  if (L && (A.style.transform = "none"), N && (A.style.webkitTransform = "none"), n.roundLengths)
761
- _ = e.isHorizontal() ? kr(A, "width") : kr(A, "height");
761
+ E = e.isHorizontal() ? kr(A, "width") : kr(A, "height");
762
762
  else {
763
763
  const j = t(I, "width"), D = t(I, "padding-left"), G = t(I, "padding-right"), H = t(I, "margin-left"), k = t(I, "margin-right"), J = I.getPropertyValue("box-sizing");
764
764
  if (J && J === "border-box")
765
- _ = j + H + k;
765
+ E = j + H + k;
766
766
  else {
767
767
  const {
768
768
  clientWidth: ce,
769
769
  offsetWidth: Q
770
770
  } = A;
771
- _ = j + D + G + H + k + (Q - ce);
771
+ E = j + D + G + H + k + (Q - ce);
772
772
  }
773
773
  }
774
- L && (A.style.transform = L), N && (A.style.webkitTransform = N), n.roundLengths && (_ = Math.floor(_));
774
+ L && (A.style.transform = L), N && (A.style.webkitTransform = N), n.roundLengths && (E = Math.floor(E));
775
775
  } else
776
- _ = (o - (n.slidesPerView - 1) * S) / 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 + S, w === 0 && P !== 0 && (b = b - o / 2 - S), P === 0 && (b = b - o / 2 - S), 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 + _ + S), e.virtualSize += _ + S, w = _, x += 1;
776
+ E = (o - (n.slidesPerView - 1) * S) / n.slidesPerView, n.roundLengths && (E = Math.floor(E)), c[P] && (c[P].style[e.getDirectionLabel("width")] = `${E}px`);
777
+ c[P] && (c[P].swiperSlideSize = E), p.push(E), n.centeredSlides ? (b = b + E / 2 + w / 2 + S, w === 0 && P !== 0 && (b = b - o / 2 - S), P === 0 && (b = b - o / 2 - S), Math.abs(b) < 1 / 1e3 && (b = 0), n.roundLengths && (b = Math.floor(b)), _ % n.slidesPerGroup === 0 && f.push(b), v.push(b)) : (n.roundLengths && (b = Math.floor(b)), (_ - Math.min(e.params.slidesPerGroupSkip, _)) % e.params.slidesPerGroup === 0 && f.push(b), v.push(b), b = b + E + S), e.virtualSize += E + S, w = E, _ += 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 + S}px`), n.setWrapperSize && (r.style[e.getDirectionLabel("width")] = `${e.virtualSize + S}px`), M && e.grid.updateWrapperSize(_, f), !n.centeredSlides) {
780
+ if (e.virtualSize = Math.max(e.virtualSize, o) + g, s && a && (n.effect === "slide" || n.effect === "coverflow") && (r.style.width = `${e.virtualSize + S}px`), n.setWrapperSize && (r.style[e.getDirectionLabel("width")] = `${e.virtualSize + S}px`), T && e.grid.updateWrapperSize(E, f), !n.centeredSlides) {
781
781
  const P = [];
782
782
  for (let A = 0; A < f.length; A += 1) {
783
783
  let I = f[A];
@@ -1223,9 +1223,9 @@ 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 M = 0; M < u.length; M += 1) {
1227
- const _ = -Math.floor(m * 100), T = Math.floor(u[M] * 100), P = Math.floor(u[M + 1] * 100);
1228
- typeof u[M + 1] < "u" ? _ >= T && _ < P - (P - T) / 2 ? s = M : _ >= T && _ < P && (s = M + 1) : _ >= T && (s = M);
1226
+ for (let T = 0; T < u.length; T += 1) {
1227
+ const E = -Math.floor(m * 100), x = Math.floor(u[T] * 100), P = Math.floor(u[T + 1] * 100);
1228
+ typeof u[T + 1] < "u" ? E >= x && E < P - (P - x) / 2 ? s = T : E >= x && E < P && (s = T + 1) : E >= x && (s = T);
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;
@@ -1236,30 +1236,30 @@ function hl(e, t, n, r, i) {
1236
1236
  if (!(S && i) && (f && -m === o.translate || !f && m === o.translate))
1237
1237
  return o.updateActiveIndex(s), a.autoHeight && o.updateAutoHeight(), o.updateSlidesClasses(), a.effect !== "slide" && o.setTranslate(m), y !== "reset" && (o.transitionStart(n, y), o.transitionEnd(n, y)), !1;
1238
1238
  if (a.cssMode) {
1239
- const M = o.isHorizontal(), _ = f ? m : -m;
1239
+ const T = o.isHorizontal(), E = f ? m : -m;
1240
1240
  if (t === 0)
1241
1241
  S && (o.wrapperEl.style.scrollSnapType = "none", o._immediateVirtual = !0), S && !o._cssModeVirtualInitialSet && o.params.initialSlide > 0 ? (o._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1242
- v[M ? "scrollLeft" : "scrollTop"] = _;
1243
- })) : v[M ? "scrollLeft" : "scrollTop"] = _, S && requestAnimationFrame(() => {
1242
+ v[T ? "scrollLeft" : "scrollTop"] = E;
1243
+ })) : v[T ? "scrollLeft" : "scrollTop"] = E, S && requestAnimationFrame(() => {
1244
1244
  o.wrapperEl.style.scrollSnapType = "", o._immediateVirtual = !1;
1245
1245
  });
1246
1246
  else {
1247
1247
  if (!o.support.smoothScroll)
1248
1248
  return ho({
1249
1249
  swiper: o,
1250
- targetPosition: _,
1251
- side: M ? "left" : "top"
1250
+ targetPosition: E,
1251
+ side: T ? "left" : "top"
1252
1252
  }), !0;
1253
1253
  v.scrollTo({
1254
- [M ? "left" : "top"]: _,
1254
+ [T ? "left" : "top"]: E,
1255
1255
  behavior: "smooth"
1256
1256
  });
1257
1257
  }
1258
1258
  return !0;
1259
1259
  }
1260
- const x = yo().isSafari;
1261
- return S && !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, y), t === 0 ? o.transitionEnd(n, y) : 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, y));
1260
+ const _ = yo().isSafari;
1261
+ return S && !i && _ && 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, y), t === 0 ? o.transitionEnd(n, y) : o.animating || (o.animating = !0, o.onSlideToWrapperTransitionEnd || (o.onSlideToWrapperTransitionEnd = function(E) {
1262
+ !o || o.destroyed || E.target === this && (o.wrapperEl.removeEventListener("transitionend", o.onSlideToWrapperTransitionEnd), o.onSlideToWrapperTransitionEnd = null, delete o.onSlideToWrapperTransitionEnd, o.transitionEnd(n, y));
1263
1263
  }), o.wrapperEl.addEventListener("transitionend", o.onSlideToWrapperTransitionEnd)), !0;
1264
1264
  }
1265
1265
  function ml(e, t, n, r) {
@@ -1409,7 +1409,7 @@ function bl() {
1409
1409
  } else
1410
1410
  e.slideTo(i);
1411
1411
  }
1412
- var Tl = {
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 xl(e, t) {
1421
+ function Tl(e, t) {
1422
1422
  const n = this, {
1423
1423
  params: r,
1424
1424
  slidesEl: i
@@ -1491,55 +1491,55 @@ function Pl(e) {
1491
1491
  S % y !== 0 && (S += y - S % y), S += p.loopAdditionalSlides, u.loopedSlides = S;
1492
1492
  const b = u.grid && p.grid && p.grid.rows > 1;
1493
1493
  c.length < m + S || u.params.effect === "cards" && c.length < m + S * 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 = [], M = b ? Math.ceil(c.length / p.grid.rows) : c.length, _ = s && M - g < m && !h;
1495
- let T = _ ? g : u.activeIndex;
1496
- typeof o > "u" ? o = u.getSlideIndex(c.find((D) => D.classList.contains(p.slideActiveClass))) : T = o;
1494
+ const w = [], _ = [], T = b ? Math.ceil(c.length / p.grid.rows) : c.length, E = s && T - g < m && !h;
1495
+ let x = E ? g : u.activeIndex;
1496
+ typeof o > "u" ? o = u.getSlideIndex(c.find((D) => D.classList.contains(p.slideActiveClass))) : x = 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
1500
  if (j < S) {
1501
1501
  I = Math.max(S - j, y);
1502
1502
  for (let D = 0; D < S - j; D += 1) {
1503
- const G = D - Math.floor(D / M) * M;
1503
+ const G = D - Math.floor(D / T) * T;
1504
1504
  if (b) {
1505
- const H = M - G - 1;
1505
+ const H = T - 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(M - G - 1);
1509
+ w.push(T - G - 1);
1510
1510
  }
1511
- } else if (j + m > M - S) {
1512
- L = Math.max(j - (M - S * 2), y), _ && (L = Math.max(L, m - M + g + 1));
1511
+ } else if (j + m > T - S) {
1512
+ L = Math.max(j - (T - S * 2), y), E && (L = Math.max(L, m - T + g + 1));
1513
1513
  for (let D = 0; D < L; D += 1) {
1514
- const G = D - Math.floor(D / M) * M;
1514
+ const G = D - Math.floor(D / T) * T;
1515
1515
  b ? c.forEach((H, k) => {
1516
- H.column === G && x.push(k);
1517
- }) : x.push(G);
1516
+ H.column === G && _.push(k);
1517
+ }) : _.push(G);
1518
1518
  }
1519
1519
  }
1520
1520
  if (u.__preventObserver__ = !0, requestAnimationFrame(() => {
1521
1521
  u.__preventObserver__ = !1;
1522
- }), u.params.effect === "cards" && c.length < m + S * 2 && (x.includes(o) && x.splice(x.indexOf(o), 1), w.includes(o) && w.splice(w.indexOf(o), 1)), A && w.forEach((D) => {
1522
+ }), u.params.effect === "cards" && c.length < m + S * 2 && (_.includes(o) && _.splice(_.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
- }), P && x.forEach((D) => {
1524
+ }), P && _.forEach((D) => {
1525
1525
  c[D].swiperLoopMoveDOM = !0, v.append(c[D]), c[D].swiperLoopMoveDOM = !1;
1526
- }), u.recalcSlides(), p.slidesPerView === "auto" ? u.updateSlides() : b && (w.length > 0 && A || x.length > 0 && P) && u.slides.forEach((D, G) => {
1526
+ }), u.recalcSlides(), p.slidesPerView === "auto" ? u.updateSlides() : b && (w.length > 0 && A || _.length > 0 && P) && u.slides.forEach((D, G) => {
1527
1527
  u.grid.updateSlide(G, D, u.slides);
1528
1528
  }), p.watchSlidesProgress && u.updateSlidesOffset(), n) {
1529
1529
  if (w.length > 0 && A) {
1530
1530
  if (typeof t > "u") {
1531
- const D = u.slidesGrid[T], H = u.slidesGrid[T + I] - D;
1532
- l ? u.setTranslate(u.translate - H) : (u.slideTo(T + Math.ceil(I), 0, !1, !0), i && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - H, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - H));
1531
+ const D = u.slidesGrid[x], H = u.slidesGrid[x + I] - D;
1532
+ l ? u.setTranslate(u.translate - H) : (u.slideTo(x + Math.ceil(I), 0, !1, !0), i && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - H, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - H));
1533
1533
  } else if (i) {
1534
1534
  const D = b ? w.length / p.grid.rows : w.length;
1535
1535
  u.slideTo(u.activeIndex + D, 0, !1, !0), u.touchEventsData.currentTranslate = u.translate;
1536
1536
  }
1537
- } else if (x.length > 0 && P)
1537
+ } else if (_.length > 0 && P)
1538
1538
  if (typeof t > "u") {
1539
- const D = u.slidesGrid[T], H = u.slidesGrid[T - L] - D;
1540
- l ? u.setTranslate(u.translate - H) : (u.slideTo(T - L, 0, !1, !0), i && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - H, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - H));
1539
+ const D = u.slidesGrid[x], H = u.slidesGrid[x - L] - D;
1540
+ l ? u.setTranslate(u.translate - H) : (u.slideTo(x - L, 0, !1, !0), i && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - H, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - H));
1541
1541
  } else {
1542
- const D = b ? x.length / p.grid.rows : x.length;
1542
+ const D = b ? _.length / p.grid.rows : _.length;
1543
1543
  u.slideTo(u.activeIndex - D, 0, !1, !0);
1544
1544
  }
1545
1545
  }
@@ -1581,7 +1581,7 @@ function El() {
1581
1581
  }), e.recalcSlides(), e.slideTo(e.realIndex, 0);
1582
1582
  }
1583
1583
  var Cl = {
1584
- loopCreate: xl,
1584
+ loopCreate: Tl,
1585
1585
  loopFix: Pl,
1586
1586
  loopDestroy: El
1587
1587
  };
@@ -1835,8 +1835,8 @@ function Ol(e) {
1835
1835
  const p = v >= -t.maxTranslate() && !t.params.loop;
1836
1836
  let h = 0, g = t.slidesSizesGrid[0];
1837
1837
  for (let w = 0; w < u.length; w += w < s.slidesPerGroupSkip ? 1 : s.slidesPerGroup) {
1838
- const x = w < s.slidesPerGroupSkip - 1 ? 1 : s.slidesPerGroup;
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]);
1838
+ const _ = w < s.slidesPerGroupSkip - 1 ? 1 : s.slidesPerGroup;
1839
+ typeof u[w + _] < "u" ? (p || v >= u[w] && v < u[w + _]) && (h = w, g = u[w + _] - u[w]) : (p || v >= u[w]) && (h = w, g = u[u.length - 1] - u[u.length - 2]);
1840
1840
  }
1841
1841
  let m = null, y = null;
1842
1842
  s.rewind && (t.isBeginning ? y = s.virtual && s.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (m = 0));
@@ -1960,10 +1960,10 @@ function kl() {
1960
1960
  const s = ke(), a = r.breakpointsBase === "window" || !r.breakpointsBase ? r.breakpointsBase : "container", l = ["window", "container"].includes(r.breakpointsBase) || !r.breakpointsBase ? e.el : s.querySelector(r.breakpointsBase), u = e.getBreakpoint(o, a, l);
1961
1961
  if (!u || e.currentBreakpoint === u) return;
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
- 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
- if (typeof d[x] > "u") return;
1965
- const M = r[x] && r[x].enabled, _ = d[x] && d[x].enabled;
1966
- M && !_ && e[x].disable(), !M && _ && e[x].enable();
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((_) => {
1964
+ if (typeof d[_] > "u") return;
1965
+ const T = r[_] && r[_].enabled, E = d[_] && d[_].enabled;
1966
+ T && !E && e[_].disable(), !T && E && e[_].enable();
1967
1967
  });
1968
1968
  const m = d.direction && d.direction !== r.direction, y = r.loop && (d.slidesPerView !== r.slidesPerView || m), S = r.loop;
1969
1969
  m && n && e.changeDirection(), se(e.params, d);
@@ -2214,7 +2214,7 @@ const Sn = {
2214
2214
  update: il,
2215
2215
  translate: cl,
2216
2216
  transition: vl,
2217
- slide: Tl,
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 xe {
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 xe(f));
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
- xe.prototype.__modules__ || (xe.prototype.__modules__ = []);
2521
- const n = xe.prototype.__modules__;
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) => xe.installModule(n)), xe) : (xe.installModule(t), xe);
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 To(e) {
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 xo(e) {
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) {
@@ -2689,7 +2689,7 @@ function Jl(e) {
2689
2689
  scrollbarEl: a,
2690
2690
  paginationEl: l
2691
2691
  } = e;
2692
- const u = i.filter((T) => T !== "children" && T !== "direction" && T !== "wrapperClass"), {
2692
+ const u = i.filter((x) => x !== "children" && x !== "direction" && x !== "wrapperClass"), {
2693
2693
  params: c,
2694
2694
  pagination: d,
2695
2695
  navigation: f,
@@ -2697,19 +2697,19 @@ function Jl(e) {
2697
2697
  virtual: p,
2698
2698
  thumbs: h
2699
2699
  } = t;
2700
- let g, m, y, S, b, w, x, M;
2700
+ let g, m, y, S, b, w, _, T;
2701
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 && (y = !0), i.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (c.scrollbar || c.scrollbar === !1) && v && !v.el && (S = !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
- const _ = (T) => {
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));
2702
+ const E = (x) => {
2703
+ t[x] && (t[x].destroy(), x === "navigation" ? (t.isElement && (t[x].prevEl.remove(), t[x].nextEl.remove()), c[x].prevEl = void 0, c[x].nextEl = void 0, t[x].prevEl = void 0, t[x].nextEl = void 0) : (t.isElement && t[x].el.remove(), c[x].el = void 0, t[x].el = void 0));
2704
2704
  };
2705
- i.includes("loop") && t.isElement && (c.loop && !r.loop ? w = !0 : !c.loop && r.loop ? x = !0 : M = !0), u.forEach((T) => {
2706
- if (ze(c[T]) && ze(r[T]))
2707
- Object.assign(c[T], r[T]), (T === "navigation" || T === "pagination" || T === "scrollbar") && "enabled" in r[T] && !r[T].enabled && _(T);
2705
+ i.includes("loop") && t.isElement && (c.loop && !r.loop ? w = !0 : !c.loop && r.loop ? _ = !0 : T = !0), u.forEach((x) => {
2706
+ if (ze(c[x]) && ze(r[x]))
2707
+ Object.assign(c[x], r[x]), (x === "navigation" || x === "pagination" || x === "scrollbar") && "enabled" in r[x] && !r[x].enabled && E(x);
2708
2708
  else {
2709
- const P = r[T];
2710
- (P === !0 || P === !1) && (T === "navigation" || T === "pagination" || T === "scrollbar") ? P === !1 && _(T) : c[T] = r[T];
2709
+ const P = r[x];
2710
+ (P === !0 || P === !1) && (x === "navigation" || x === "pagination" || x === "scrollbar") ? P === !1 && E(x) : c[x] = r[x];
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 && (M = !0), g && h.init() && h.update(!0), m && (t.controller.control = c.controller.control), y && (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()), S && (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 || M) && t.loopDestroy(), (x || M) && t.loopCreate(), t.update();
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 && (T = !0), g && h.init() && h.update(!0), m && (t.controller.control = c.controller.control), y && (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()), S && (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 || T) && t.loopDestroy(), (_ || T) && 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
- To(t) && r && i && (a.params.navigation.nextEl = r, a.originalParams.navigation.nextEl = r, a.params.navigation.prevEl = i, a.originalParams.navigation.prevEl = i), xo(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);
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,9 +2839,9 @@ 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), y = B(null), S = B(null), b = B(null), w = B(null), x = B(null), M = B(null), {
2843
- params: _,
2844
- passedParams: T,
2842
+ const [u, c] = Z("swiper"), [d, f] = Z(null), [v, p] = Z(!1), h = B(!1), g = B(null), m = B(null), y = B(null), S = B(null), b = B(null), w = B(null), _ = B(null), T = B(null), {
2843
+ params: E,
2844
+ passedParams: x,
2845
2845
  rest: P,
2846
2846
  events: A
2847
2847
  } = Ql(a), {
@@ -2850,15 +2850,15 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
2850
2850
  } = ru(o), N = () => {
2851
2851
  p(!v);
2852
2852
  };
2853
- Object.assign(_.on, {
2853
+ Object.assign(E.on, {
2854
2854
  _containerClasses(k, J) {
2855
2855
  c(J);
2856
2856
  }
2857
2857
  });
2858
2858
  const j = () => {
2859
- Object.assign(_.on, A), l = !0;
2859
+ Object.assign(E.on, A), l = !0;
2860
2860
  const k = {
2861
- ..._
2861
+ ...E
2862
2862
  };
2863
2863
  if (delete k.wrapperClass, m.current = new lr(k), m.current.virtual && m.current.params.virtual.enabled) {
2864
2864
  m.current.virtual.slides = I;
@@ -2891,24 +2891,24 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
2891
2891
  el: g.current,
2892
2892
  nextEl: b.current,
2893
2893
  prevEl: w.current,
2894
- paginationEl: x.current,
2895
- scrollbarEl: M.current,
2894
+ paginationEl: _.current,
2895
+ scrollbarEl: T.current,
2896
2896
  swiper: m.current
2897
- }, _), s && !m.current.destroyed && s(m.current), () => {
2897
+ }, E), 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, y.current, I, S.current, (J) => J.key);
2903
- return y.current = T, S.current = I, k.length && m.current && !m.current.destroyed && Jl({
2902
+ const k = tu(x, y.current, I, S.current, (J) => J.key);
2903
+ return y.current = x, S.current = I, k.length && m.current && !m.current.destroyed && Jl({
2904
2904
  swiper: m.current,
2905
2905
  slides: I,
2906
- passedParams: T,
2906
+ passedParams: x,
2907
2907
  changedParams: k,
2908
2908
  nextEl: b.current,
2909
2909
  prevEl: w.current,
2910
- scrollbarEl: M.current,
2911
- paginationEl: x.current
2910
+ scrollbarEl: T.current,
2911
+ paginationEl: _.current
2912
2912
  }), () => {
2913
2913
  G();
2914
2914
  };
@@ -2916,7 +2916,7 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
2916
2916
  nu(m.current);
2917
2917
  }, [d]);
2918
2918
  function H() {
2919
- return _.virtual ? iu(m.current, I, d) : I.map((k, J) => /* @__PURE__ */ Y.cloneElement(k, {
2919
+ return E.virtual ? iu(m.current, I, d) : I.map((k, J) => /* @__PURE__ */ Y.cloneElement(k, {
2920
2920
  swiper: m.current,
2921
2921
  swiperSlideIndex: J
2922
2922
  }));
@@ -2927,18 +2927,18 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
2927
2927
  }, P), /* @__PURE__ */ Y.createElement(ou.Provider, {
2928
2928
  value: m.current
2929
2929
  }, L["container-start"], /* @__PURE__ */ Y.createElement(i, {
2930
- className: Zl(_.wrapperClass)
2931
- }, L["wrapper-start"], H(), L["wrapper-end"]), To(_) && /* @__PURE__ */ Y.createElement(Y.Fragment, null, /* @__PURE__ */ Y.createElement("div", {
2930
+ className: Zl(E.wrapperClass)
2931
+ }, L["wrapper-start"], H(), L["wrapper-end"]), xo(E) && /* @__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
- })), Po(_) && /* @__PURE__ */ Y.createElement("div", {
2938
- ref: M,
2937
+ })), Po(E) && /* @__PURE__ */ Y.createElement("div", {
2938
+ ref: T,
2939
2939
  className: "swiper-scrollbar"
2940
- }), xo(_) && /* @__PURE__ */ Y.createElement("div", {
2941
- ref: x,
2940
+ }), To(E) && /* @__PURE__ */ Y.createElement("div", {
2941
+ ref: _,
2942
2942
  className: "swiper-pagination"
2943
2943
  }), L["container-end"]));
2944
2944
  });
@@ -2956,8 +2956,8 @@ const Ao = /* @__PURE__ */ sr(function(e, t) {
2956
2956
  ...c
2957
2957
  } = e === void 0 ? {} : e;
2958
2958
  const d = B(null), [f, v] = Z("swiper-slide"), [p, h] = Z(!1);
2959
- function g(b, w, x) {
2960
- w === d.current && v(x);
2959
+ function g(b, w, _) {
2960
+ w === d.current && v(_);
2961
2961
  }
2962
2962
  tt(() => {
2963
2963
  if (typeof u < "u" && (d.current.swiperSlideIndex = u), t && (t.current = d.current), !(!d.current || !o)) {
@@ -3200,27 +3200,27 @@ function uu(e) {
3200
3200
  } = t, g = ka(t), m = t.params.cubeEffect, y = t.isHorizontal(), S = t.virtual && t.params.virtual.enabled;
3201
3201
  let b = 0, w;
3202
3202
  m.shadow && (y ? (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 M = 0; M < c.length; M += 1) {
3204
- const _ = c[M];
3205
- let T = M;
3206
- S && (T = parseInt(_.getAttribute("data-swiper-slide-index"), 10));
3207
- let P = T * 90, A = Math.floor(P / 360);
3203
+ for (let T = 0; T < c.length; T += 1) {
3204
+ const E = c[T];
3205
+ let x = T;
3206
+ S && (x = parseInt(E.getAttribute("data-swiper-slide-index"), 10));
3207
+ let P = x * 90, A = Math.floor(P / 360);
3208
3208
  v && (P = -P, A = Math.floor(-P / 360));
3209
- const I = Math.max(Math.min(_.progress, 1), -1);
3209
+ const I = Math.max(Math.min(E.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), y || (N = L, L = 0);
3211
+ x % 4 === 0 ? (L = -A * 4 * p, j = 0) : (x - 1) % 4 === 0 ? (L = 0, j = -A * 4 * p) : (x - 2) % 4 === 0 ? (L = p + A * 4 * p, j = p) : (x - 3) % 4 === 0 && (L = -p, j = 3 * p + p * 4 * A), v && (L = -L), y || (N = L, L = 0);
3212
3212
  const D = `rotateX(${g(y ? 0 : -P)}deg) rotateY(${g(y ? 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, y);
3213
+ I <= 1 && I > -1 && (b = x * 90 + I * 90, v && (b = -x * 90 - I * 90)), E.style.transform = D, m.slideShadows && i(E, I, y);
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
3216
  if (y)
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 M = Math.abs(b) - Math.floor(Math.abs(b) / 90) * 90, _ = 1.5 - (Math.sin(M * 2 * Math.PI / 360) / 2 + Math.cos(M * 2 * Math.PI / 360) / 2), T = m.shadowScale, P = m.shadowScale / _, A = m.shadowOffset;
3220
- w.style.transform = `scale3d(${T}, 1, ${P}) translate3d(0px, ${f / 2 + A}px, ${-f / 2 / P}px) rotateX(-89.99deg)`;
3219
+ const T = Math.abs(b) - Math.floor(Math.abs(b) / 90) * 90, E = 1.5 - (Math.sin(T * 2 * Math.PI / 360) / 2 + Math.cos(T * 2 * Math.PI / 360) / 2), x = m.shadowScale, P = m.shadowScale / E, A = m.shadowOffset;
3220
+ w.style.transform = `scale3d(${x}, 1, ${P}) translate3d(0px, ${f / 2 + A}px, ${-f / 2 / P}px) rotateX(-89.99deg)`;
3221
3221
  }
3222
- const x = (h.isSafari || h.isWebView) && h.needPerspectiveFix ? -p / 2 : 0;
3223
- u.style.transform = `translate3d(0px,0,${x}px) rotateX(${g(t.isHorizontal() ? 0 : b)}deg) rotateY(${g(t.isHorizontal() ? -b : 0)}deg)`, u.style.setProperty("--swiper-cube-translate-z", `${x}px`);
3222
+ const _ = (h.isSafari || h.isWebView) && h.needPerspectiveFix ? -p / 2 : 0;
3223
+ u.style.transform = `translate3d(0px,0,${_}px) rotateX(${g(t.isHorizontal() ? 0 : b)}deg) rotateY(${g(t.isHorizontal() ? -b : 0)}deg)`, u.style.setProperty("--swiper-cube-translate-z", `${_}px`);
3224
3224
  },
3225
3225
  setTransition: (l) => {
3226
3226
  const {
@@ -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", Tu = "_BetSlip_Wrapper_16e19_17", xu = "_BetSlip_ButtonWrap_16e19_28", nt = {
3272
+ }, bu = "_story_16e19_1", xu = "_BetSlip_Wrapper_16e19_17", Tu = "_BetSlip_ButtonWrap_16e19_28", nt = {
3273
3273
  story: bu,
3274
- BetSlip_Wrapper: Tu,
3275
- BetSlip_ButtonWrap: xu
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, {
@@ -3290,15 +3290,15 @@ class Cu {
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
3292
  var g, m, y, S, 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((y = u == null ? void 0 : u.event) == null ? void 0 : y.startDate), f = (b = (S = u == null ? void 0 : u.odd) == null ? void 0 : S.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) => {
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((y = u == null ? void 0 : u.event) == null ? void 0 : y.startDate), f = (b = (S = u == null ? void 0 : u.odd) == null ? void 0 : S.offers) == null ? void 0 : b.find((_) => _.type === 0), p = u.market.name, h = (w = u == null ? void 0 : u.bbSelections) == null ? void 0 : w.map((_) => {
3294
3294
  var P, A, I, L, N;
3295
- const M = (P = x == null ? void 0 : x.odd) == null ? void 0 : P.price, _ = parseFloat(M.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);
3295
+ const T = (P = _ == null ? void 0 : _.odd) == null ? void 0 : P.price, E = parseFloat(T.toFixed(2)), x = (I = (A = _ == null ? void 0 : _.odd) == null ? void 0 : A.offers) == null ? void 0 : I.find((j) => j.type === 0);
3296
3296
  return {
3297
- marketName: (L = x == null ? void 0 : x.market) == null ? void 0 : L.name,
3298
- name: (N = x == null ? void 0 : x.odd) == null ? void 0 : N.name,
3299
- cuota: _,
3300
- hasPA: !!T,
3301
- paParam: T == null ? void 0 : T.parameter
3297
+ marketName: (L = _ == null ? void 0 : _.market) == null ? void 0 : L.name,
3298
+ name: (N = _ == null ? void 0 : _.odd) == null ? void 0 : N.name,
3299
+ cuota: E,
3300
+ hasPA: !!x,
3301
+ paParam: x == null ? void 0 : x.parameter
3302
3302
  };
3303
3303
  });
3304
3304
  return {
@@ -3336,23 +3336,23 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
3336
3336
  var t, n;
3337
3337
  return /* @__PURE__ */ U("div", { className: oe.SelectionItem, children: [
3338
3338
  /* @__PURE__ */ U("div", { className: oe.SelectionItemGrid, children: [
3339
- /* @__PURE__ */ E("div", { className: oe.SelectionItem_name, children: e != null && e.subSelections ? "Crear Apuesta" : e.name }),
3340
- /* @__PURE__ */ E("div", { className: oe.SelectionItem_sc, children: e.cuota.toFixed(2) })
3339
+ /* @__PURE__ */ C("div", { className: oe.SelectionItem_name, children: e != null && e.subSelections ? "Crear Apuesta" : e.name }),
3340
+ /* @__PURE__ */ C("div", { className: oe.SelectionItem_sc, children: e.cuota.toFixed(2) })
3341
3341
  ] }),
3342
- e != null && e.subSelections ? null : /* @__PURE__ */ E("div", { className: oe.SelectionItemGrid, children: /* @__PURE__ */ U("div", { className: oe.SelectionItem_marketName, children: [
3343
- /* @__PURE__ */ E("div", { children: e.marketName }),
3344
- e.hasPA && /* @__PURE__ */ E("div", { className: oe.SelectionItem_hasPA, children: "PA" })
3342
+ e != null && e.subSelections ? null : /* @__PURE__ */ C("div", { className: oe.SelectionItemGrid, children: /* @__PURE__ */ U("div", { className: oe.SelectionItem_marketName, children: [
3343
+ /* @__PURE__ */ C("div", { children: e.marketName }),
3344
+ e.hasPA && /* @__PURE__ */ C("div", { className: oe.SelectionItem_hasPA, children: "PA" })
3345
3345
  ] }) }),
3346
3346
  /* @__PURE__ */ U("div", { className: oe.SelectionItemGrid, children: [
3347
- /* @__PURE__ */ E("div", { className: oe.SelectionItem_event, children: e.event }),
3348
- /* @__PURE__ */ E("div", { className: oe.SelectionItem_fechahora, children: e.fechaHora })
3347
+ /* @__PURE__ */ C("div", { className: oe.SelectionItem_event, children: e.event }),
3348
+ /* @__PURE__ */ C("div", { className: oe.SelectionItem_fechahora, children: e.fechaHora })
3349
3349
  ] }),
3350
- e != null && e.subSelections && ((t = e == null ? void 0 : e.subSelections) == null ? void 0 : t.length) > 0 ? /* @__PURE__ */ E("div", { className: oe.SelectionItem__Wrap, children: (n = e.subSelections) == null ? void 0 : n.map((r, i) => /* @__PURE__ */ U("div", { className: oe.SelectionItem__BB, children: [
3351
- /* @__PURE__ */ E("div", { className: oe.SelectionItem__BB__mn, children: r == null ? void 0 : r.marketName }),
3352
- /* @__PURE__ */ E("div", { children: r == null ? void 0 : r.name })
3353
- ] }, i)) }) : /* @__PURE__ */ E(jt, {})
3350
+ e != null && e.subSelections && ((t = e == null ? void 0 : e.subSelections) == null ? void 0 : t.length) > 0 ? /* @__PURE__ */ C("div", { className: oe.SelectionItem__Wrap, children: (n = e.subSelections) == null ? void 0 : n.map((r, i) => /* @__PURE__ */ U("div", { className: oe.SelectionItem__BB, children: [
3351
+ /* @__PURE__ */ C("div", { className: oe.SelectionItem__BB__mn, children: r == null ? void 0 : r.marketName }),
3352
+ /* @__PURE__ */ C("div", { children: r == null ? void 0 : r.name })
3353
+ ] }, i)) }) : /* @__PURE__ */ C(jt, {})
3354
3354
  ] });
3355
- }, ku = "_PulseButton_1ggse_1", Gu = "_BetSlip__NextIcon_1ggse_21", Yr = {
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 = {
@@ -3362,7 +3362,7 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
3362
3362
  height: t = "100%",
3363
3363
  fill: n = "white",
3364
3364
  ...r
3365
- }) => /* @__PURE__ */ E(
3365
+ }) => /* @__PURE__ */ C(
3366
3366
  "svg",
3367
3367
  {
3368
3368
  xmlns: "http://www.w3.org/2000/svg",
@@ -3370,7 +3370,7 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
3370
3370
  height: t,
3371
3371
  fill: n,
3372
3372
  ...r,
3373
- children: /* @__PURE__ */ E(
3373
+ children: /* @__PURE__ */ C(
3374
3374
  "path",
3375
3375
  {
3376
3376
  fill: "#fff",
@@ -3378,54 +3378,77 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
3378
3378
  }
3379
3379
  )
3380
3380
  }
3381
- ), Io = ({ children: e, href: t }) => /* @__PURE__ */ E("div", { className: Yr.PulseButton, children: /* @__PURE__ */ U("a", { className: Hu.Button, href: t, children: [
3382
- e,
3383
- /* @__PURE__ */ E("div", { className: Yr.BetSlip__NextIcon, children: /* @__PURE__ */ E(Wu, {}) })
3384
- ] }) }), Uu = ({ slip: e, title: t }) => {
3385
- var n;
3381
+ ), Io = ({ children: e, onClick: t }) => /* @__PURE__ */ C("div", { className: Yr.PulseButton, children: /* @__PURE__ */ U(
3382
+ "a",
3383
+ {
3384
+ className: Hu.Button,
3385
+ onClick: (n) => {
3386
+ n.preventDefault(), n.stopPropagation(), t();
3387
+ },
3388
+ children: [
3389
+ e,
3390
+ /* @__PURE__ */ C("div", { className: Yr.BetSlip__NextIcon, children: /* @__PURE__ */ C(Wu, {}) })
3391
+ ]
3392
+ }
3393
+ ) }), Uu = ({
3394
+ slip: e,
3395
+ title: t,
3396
+ onButtonStoryClick: n
3397
+ }) => {
3398
+ var r;
3386
3399
  return /* @__PURE__ */ U("div", { className: _t.BetSlip, children: [
3387
3400
  /* @__PURE__ */ U(
3388
3401
  "div",
3389
3402
  {
3390
3403
  className: Se(_t.SelectionItemWrap),
3391
- onWheel: (r) => {
3392
- r.stopPropagation();
3404
+ onWheel: (i) => {
3405
+ i.stopPropagation();
3393
3406
  },
3394
- onPointerDown: (r) => {
3395
- r.stopPropagation();
3407
+ onPointerDown: (i) => {
3408
+ i.stopPropagation();
3396
3409
  },
3397
3410
  children: [
3398
- t ? /* @__PURE__ */ E("div", { className: _t.BetSlip_Title, children: t }) : null,
3399
- (n = e == null ? void 0 : e.selections) == null ? void 0 : n.map((r, i) => /* @__PURE__ */ E(ju, { selection: r }, `${Date.now()}-${i}`))
3411
+ t ? /* @__PURE__ */ C("div", { className: _t.BetSlip_Title, children: t }) : null,
3412
+ (r = e == null ? void 0 : e.selections) == null ? void 0 : r.map((i, o) => /* @__PURE__ */ C(ju, { selection: i }, `${Date.now()}-${o}`))
3400
3413
  ]
3401
3414
  }
3402
3415
  ),
3403
- /* @__PURE__ */ E("div", { className: Se(_t.BetSlip_ButtonWrap), children: /* @__PURE__ */ E(
3404
- Io,
3405
- {
3406
- href: "https://www.apuestatotal.com/apuestas-deportivas/?reservationCode=HHHH",
3407
- children: e == null ? void 0 : e.cuotaTotal
3408
- }
3409
- ) })
3416
+ /* @__PURE__ */ C("div", { className: Se(_t.BetSlip_ButtonWrap), children: /* @__PURE__ */ C(Io, { onClick: n, children: e == null ? void 0 : e.cuotaTotal }) })
3410
3417
  ] });
3411
- }, qu = ({ story: e }) => {
3412
- let t = Xr;
3413
- return (e == null ? void 0 : e.type) == "promo" && (t = Xr), (e == null ? void 0 : e.type) == "betting" && (t = Yu), /* @__PURE__ */ E(t, { story: e });
3414
- }, Xr = ({ story: e }) => /* @__PURE__ */ U("div", { className: Se(nt.story), children: [
3415
- /* @__PURE__ */ E("img", { src: e == null ? void 0 : e.image, alt: "" }),
3416
- e != null && e.btn_text && (e != null && e.btn_url) ? /* @__PURE__ */ E("div", { className: Se(nt.BetSlip_Wrapper), children: /* @__PURE__ */ E("div", { className: nt.BetSlip_ButtonWrap, children: /* @__PURE__ */ U(Io, { href: e == null ? void 0 : e.btn_url, children: [
3418
+ }, qu = ({
3419
+ story: e,
3420
+ onButtonStoryClick: t
3421
+ }) => {
3422
+ let n = Xr;
3423
+ return (e == null ? void 0 : e.type) == "promo" && (n = Xr), (e == null ? void 0 : e.type) == "betting" && (n = Yu), /* @__PURE__ */ C(
3424
+ n,
3425
+ {
3426
+ story: e,
3427
+ onButtonStoryClick: t
3428
+ }
3429
+ );
3430
+ }, Xr = ({
3431
+ story: e,
3432
+ onButtonStoryClick: t
3433
+ }) => /* @__PURE__ */ U("div", { className: Se(nt.story), children: [
3434
+ /* @__PURE__ */ C("img", { src: e == null ? void 0 : e.image, alt: "" }),
3435
+ e != null && e.btn_text && (e != null && e.btn_url) ? /* @__PURE__ */ C("div", { className: Se(nt.BetSlip_Wrapper), children: /* @__PURE__ */ C("div", { className: nt.BetSlip_ButtonWrap, children: /* @__PURE__ */ U(Io, { onClick: e, children: [
3417
3436
  " ",
3418
3437
  e == null ? void 0 : e.btn_text
3419
3438
  ] }) }) }) : null
3420
- ] }), Yu = ({ story: e }) => {
3421
- const t = JSON.parse((e == null ? void 0 : e.coupon_result) ?? "{}");
3439
+ ] }), Yu = ({
3440
+ story: e,
3441
+ onButtonStoryClick: t
3442
+ }) => {
3443
+ const n = JSON.parse((e == null ? void 0 : e.coupon_result) ?? "{}");
3422
3444
  return /* @__PURE__ */ U("div", { className: Se(nt.story), children: [
3423
- /* @__PURE__ */ E("img", { src: e == null ? void 0 : e.image, alt: "" }),
3424
- /* @__PURE__ */ E("div", { className: nt.BetSlip_Wrapper, children: /* @__PURE__ */ E(
3445
+ /* @__PURE__ */ C("img", { src: e == null ? void 0 : e.image, alt: "" }),
3446
+ /* @__PURE__ */ C("div", { className: nt.BetSlip_Wrapper, children: /* @__PURE__ */ C(
3425
3447
  Uu,
3426
3448
  {
3427
- slip: Cu.fromRaw(t),
3428
- title: e == null ? void 0 : e.coupon_title
3449
+ slip: Cu.fromRaw(n),
3450
+ title: e == null ? void 0 : e.coupon_title,
3451
+ onButtonStoryClick: () => t == null ? void 0 : t(e)
3429
3452
  }
3430
3453
  ) })
3431
3454
  ] });
@@ -3439,7 +3462,7 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
3439
3462
  color: n,
3440
3463
  image: r
3441
3464
  }) => /* @__PURE__ */ U("div", { className: bn.StoryHeaderPlayer, children: [
3442
- /* @__PURE__ */ E(
3465
+ /* @__PURE__ */ C(
3443
3466
  fo,
3444
3467
  {
3445
3468
  className: bn.StoryHeaderPlayer__ProfileStory,
@@ -3448,90 +3471,98 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
3448
3471
  image: r
3449
3472
  }
3450
3473
  ),
3451
- /* @__PURE__ */ E("div", { className: bn.StoryHeaderPlayer__title, children: e == null ? void 0 : e.title })
3474
+ /* @__PURE__ */ C("div", { className: bn.StoryHeaderPlayer__title, children: e == null ? void 0 : e.title })
3452
3475
  ] }), Qu = ({
3453
3476
  story: e,
3454
3477
  onChangeStory: t,
3455
3478
  onAllStoriesEnd: n,
3456
3479
  onLeft: r,
3457
3480
  onRight: i,
3458
- play: o
3481
+ play: o,
3482
+ initialIndex: s,
3483
+ onButtonStoryClick: a
3459
3484
  }) => {
3460
- var S, b;
3461
- const [s, a] = Z(!1), l = B(), u = B(!1), [c, d] = Z(0), f = B(null), v = (w) => {
3462
- const x = f.current.getBoundingClientRect();
3463
- w.clientX - x.left < x.width / 2 ? c == 0 ? r == null || r(-1) : (r == null || r(c - 1), d(c - 1)) : y();
3464
- }, p = B(0), h = (w) => {
3465
- p.current = w.clientX, a(!0), u.current = !1, l.current = window.setTimeout(() => {
3466
- u.current = !0;
3485
+ var w, _;
3486
+ const [l, u] = Z(!1), c = B(), d = B(!1), [f, v] = Z(s), p = B(null), h = (T) => {
3487
+ const E = p.current.getBoundingClientRect();
3488
+ T.clientX - E.left < E.width / 2 ? f == 0 ? r == null || r(-1) : (r == null || r(f - 1), v(f - 1)) : b();
3489
+ }, g = B(0), m = (T) => {
3490
+ g.current = T.clientX, u(!0), d.current = !1, c.current = window.setTimeout(() => {
3491
+ d.current = !0;
3467
3492
  }, 200);
3468
- }, g = (w) => {
3469
- a(!1), clearTimeout(l.current);
3470
- }, m = (w) => {
3471
- if (u.current) {
3472
- w.preventDefault();
3493
+ }, y = (T) => {
3494
+ u(!1), clearTimeout(c.current);
3495
+ }, S = (T) => {
3496
+ if (d.current) {
3497
+ T.preventDefault();
3473
3498
  return;
3474
3499
  }
3475
- v(w);
3476
- }, y = () => {
3477
- var w;
3478
- c >= ((w = e == null ? void 0 : e.stories) == null ? void 0 : w.length) - 1 ? (i == null || i(-1), n == null || n(c)) : (i == null || i(c), d(c + 1));
3500
+ h(T);
3501
+ }, b = () => {
3502
+ var T;
3503
+ f >= ((T = e == null ? void 0 : e.stories) == null ? void 0 : T.length) - 1 ? (i == null || i(-1), n == null || n(f)) : (i == null || i(f), v(f + 1));
3479
3504
  };
3480
3505
  return F(() => {
3481
- o && (t == null || t(c, e == null ? void 0 : e.stories[c]));
3482
- }, [c, o]), F(() => {
3483
- if (!o || s) return;
3484
- const w = setTimeout(() => {
3485
- y(), clearTimeout(w);
3506
+ o && (t == null || t(f, e == null ? void 0 : e.stories[f]));
3507
+ }, [f, o]), F(() => {
3508
+ if (!o || l) return;
3509
+ const T = setTimeout(() => {
3510
+ b(), clearTimeout(T);
3486
3511
  }, 7e3);
3487
3512
  return () => {
3488
- clearTimeout(w);
3513
+ clearTimeout(T);
3489
3514
  };
3490
- }, [c, o, s]), /* @__PURE__ */ U(
3515
+ }, [f, o, l]), /* @__PURE__ */ U(
3491
3516
  "div",
3492
3517
  {
3493
3518
  className: _e.CardStory,
3494
- onClick: m,
3495
- ref: f,
3496
- onPointerDown: h,
3497
- onPointerUp: g,
3498
- onPointerLeave: g,
3519
+ onClick: S,
3520
+ ref: p,
3521
+ onPointerDown: m,
3522
+ onPointerUp: y,
3523
+ onPointerLeave: y,
3499
3524
  children: [
3500
- o && /* @__PURE__ */ E("div", { className: _e.CardStory_ProgressRoot, children: (S = e == null ? void 0 : e.stories) == null ? void 0 : S.map((w, x) => {
3501
- const M = c > x, _ = c < x, T = c == x;
3502
- return /* @__PURE__ */ E(
3525
+ o && /* @__PURE__ */ C("div", { className: _e.CardStory_ProgressRoot, children: (w = e == null ? void 0 : e.stories) == null ? void 0 : w.map((T, E) => {
3526
+ const x = f > E, P = f < E, A = f == E;
3527
+ return /* @__PURE__ */ C(
3503
3528
  "div",
3504
3529
  {
3505
3530
  className: Se(_e.CardStory_ProgressRoot_Track, {
3506
- [_e.ProgressAnimate]: T,
3507
- [_e.Complete]: M,
3508
- [_e.NoComplete]: _,
3509
- [_e.Pause]: s
3531
+ [_e.ProgressAnimate]: A,
3532
+ [_e.Complete]: x,
3533
+ [_e.NoComplete]: P,
3534
+ [_e.Pause]: l
3510
3535
  })
3511
3536
  },
3512
- w == null ? void 0 : w.id
3537
+ T == null ? void 0 : T.id
3513
3538
  );
3514
3539
  }) }),
3515
- (b = e == null ? void 0 : e.stories) == null ? void 0 : b.map((w, x) => c != x ? null : /* @__PURE__ */ U(
3540
+ (_ = e == null ? void 0 : e.stories) == null ? void 0 : _.map((T, E) => f != E ? null : /* @__PURE__ */ U(
3516
3541
  "div",
3517
3542
  {
3518
- "data-card-story-index": x,
3543
+ "data-card-story-index": E,
3519
3544
  className: Se(_e.Story, {
3520
- active: c == x
3545
+ active: f == E
3521
3546
  }),
3522
3547
  children: [
3523
- /* @__PURE__ */ E(qu, { story: w }),
3524
- /* @__PURE__ */ E(
3548
+ /* @__PURE__ */ C(
3549
+ qu,
3550
+ {
3551
+ story: T,
3552
+ onButtonStoryClick: a
3553
+ }
3554
+ ),
3555
+ /* @__PURE__ */ C(
3525
3556
  Ju,
3526
3557
  {
3527
3558
  color: e == null ? void 0 : e.color,
3528
3559
  image: e == null ? void 0 : e.avatar,
3529
- story: w
3560
+ story: T
3530
3561
  }
3531
3562
  )
3532
3563
  ]
3533
3564
  },
3534
- w == null ? void 0 : w.id
3565
+ T == null ? void 0 : T.id
3535
3566
  ))
3536
3567
  ]
3537
3568
  }
@@ -3553,14 +3584,14 @@ function Vo(e, t) {
3553
3584
  }
3554
3585
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
3555
3586
  }
3556
- var C = function() {
3557
- return C = Object.assign || function(t) {
3587
+ var M = function() {
3588
+ return M = Object.assign || function(t) {
3558
3589
  for (var n, r = 1, i = arguments.length; r < i; r++) {
3559
3590
  n = arguments[r];
3560
3591
  for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
3561
3592
  }
3562
3593
  return t;
3563
- }, C.apply(this, arguments);
3594
+ }, M.apply(this, arguments);
3564
3595
  };
3565
3596
  function ue(e, t) {
3566
3597
  var n = {};
@@ -3592,7 +3623,7 @@ function le(e, t, n) {
3592
3623
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
3593
3624
  return e.concat(o || Array.prototype.slice.call(t));
3594
3625
  }
3595
- var Kr = "production", Lo = typeof process > "u" || process.env === void 0 ? Kr : process.env.NODE_ENV || Kr, Te = function(e) {
3626
+ var Kr = "production", Lo = typeof process > "u" || process.env === void 0 ? Kr : process.env.NODE_ENV || Kr, xe = function(e) {
3596
3627
  return {
3597
3628
  isEnabled: function(t) {
3598
3629
  return e.some(function(n) {
@@ -3601,8 +3632,8 @@ var Kr = "production", Lo = typeof process > "u" || process.env === void 0 ? Kr
3601
3632
  }
3602
3633
  };
3603
3634
  }, ct = {
3604
- measureLayout: Te(["layout", "layoutId", "drag"]),
3605
- animation: Te([
3635
+ measureLayout: xe(["layout", "layoutId", "drag"]),
3636
+ animation: xe([
3606
3637
  "animate",
3607
3638
  "exit",
3608
3639
  "variants",
@@ -3612,18 +3643,18 @@ var Kr = "production", Lo = typeof process > "u" || process.env === void 0 ? Kr
3612
3643
  "whileDrag",
3613
3644
  "whileInView"
3614
3645
  ]),
3615
- exit: Te(["exit"]),
3616
- drag: Te(["drag", "dragControls"]),
3617
- focus: Te(["whileFocus"]),
3618
- hover: Te(["whileHover", "onHoverStart", "onHoverEnd"]),
3619
- tap: Te(["whileTap", "onTap", "onTapStart", "onTapCancel"]),
3620
- pan: Te([
3646
+ exit: xe(["exit"]),
3647
+ drag: xe(["drag", "dragControls"]),
3648
+ focus: xe(["whileFocus"]),
3649
+ hover: xe(["whileHover", "onHoverStart", "onHoverEnd"]),
3650
+ tap: xe(["whileTap", "onTap", "onTapStart", "onTapCancel"]),
3651
+ pan: xe([
3621
3652
  "onPan",
3622
3653
  "onPanStart",
3623
3654
  "onPanSessionStart",
3624
3655
  "onPanEnd"
3625
3656
  ]),
3626
- inView: Te([
3657
+ inView: xe([
3627
3658
  "whileInView",
3628
3659
  "onViewportEnter",
3629
3660
  "onViewportLeave"
@@ -3650,7 +3681,7 @@ function nc(e, t, n) {
3650
3681
  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
3682
  for (var o = 0; o < tc; o++) {
3652
3683
  var s = Do[o], a = ct[s], l = a.isEnabled, u = a.Component;
3653
- l(e) && u && r.push(Rn.createElement(u, C({ key: s }, e, { visualElement: t })));
3684
+ l(e) && u && r.push(Rn.createElement(u, M({ key: s }, e, { visualElement: t })));
3654
3685
  }
3655
3686
  return r;
3656
3687
  }
@@ -3843,11 +3874,11 @@ function gc(e) {
3843
3874
  t && ec(t);
3844
3875
  function a(l, u) {
3845
3876
  var c = yc(l);
3846
- l = C(C({}, l), { layoutId: c });
3877
+ l = M(M({}, l), { layoutId: c });
3847
3878
  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, C(C({}, d), l), n), hc(p, l, v.visualElement, r || ct.projectionNodeConstructor), f = nc(l, v.visualElement, t)), Rn.createElement(
3879
+ 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
3880
  mc,
3850
- { visualElement: v.visualElement, props: C(C({}, d), l) },
3881
+ { visualElement: v.visualElement, props: M(M({}, d), l) },
3851
3882
  f,
3852
3883
  Rn.createElement(tn.Provider, { value: v }, i(s, l, p, lc(h, v.visualElement, u), h, d.isStatic, v.visualElement))
3853
3884
  );
@@ -3927,13 +3958,13 @@ var Ut = {};
3927
3958
  function bc(e) {
3928
3959
  Object.assign(Ut, e);
3929
3960
  }
3930
- var kn = ["", "X", "Y", "Z"], Tc = ["translate", "scale", "rotate", "skew"], dt = ["transformPerspective", "x", "y", "z"];
3931
- Tc.forEach(function(e) {
3961
+ var kn = ["", "X", "Y", "Z"], xc = ["translate", "scale", "rotate", "skew"], dt = ["transformPerspective", "x", "y", "z"];
3962
+ xc.forEach(function(e) {
3932
3963
  return kn.forEach(function(t) {
3933
3964
  return dt.push(e + t);
3934
3965
  });
3935
3966
  });
3936
- function xc(e, t) {
3967
+ function Tc(e, t) {
3937
3968
  return dt.indexOf(e) - dt.indexOf(t);
3938
3969
  }
3939
3970
  var Pc = new Set(dt);
@@ -3958,7 +3989,7 @@ var ve = function(e) {
3958
3989
  };
3959
3990
  function _c(e, t, n, r) {
3960
3991
  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(xc);
3992
+ o.sort(Tc);
3962
3993
  for (var d = !1, f = o.length, v = 0; v < f; v++) {
3963
3994
  var p = o[v];
3964
3995
  c += "".concat(Cc[p] || p, "(").concat(i[p], ") "), p === "z" && (d = !0);
@@ -4001,10 +4032,10 @@ const $e = {
4001
4032
  test: cr("hsl", "hue"),
4002
4033
  parse: Wo("hue", "saturation", "lightness"),
4003
4034
  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), Tn = Object.assign(Object.assign({}, $e), { transform: (e) => Math.round(Oc(e)) }), De = {
4035
+ }, Oc = Ho(0, 255), xn = Object.assign(Object.assign({}, $e), { transform: (e) => Math.round(Oc(e)) }), De = {
4005
4036
  test: cr("rgb", "red"),
4006
4037
  parse: Wo("red", "green", "blue"),
4007
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Tn.transform(e) + ", " + Tn.transform(t) + ", " + Tn.transform(n) + ", " + it(ot.transform(r)) + ")"
4038
+ 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
4039
  };
4009
4040
  function Dc(e) {
4010
4041
  let t = "", n = "", r = "", i = "";
@@ -4070,7 +4101,7 @@ const jc = /([a-z-]*)\(.*?\)/g, Hn = Object.assign(Object.assign({}, Pe), { getA
4070
4101
  const t = e.match(jc);
4071
4102
  return t ? t.map(zc).join(" ") : e;
4072
4103
  } });
4073
- var Qr = C(C({}, $e), { transform: Math.round }), Zo = {
4104
+ var Qr = M(M({}, $e), { transform: Math.round }), Zo = {
4074
4105
  // Border props
4075
4106
  borderWidth: R,
4076
4107
  borderTopWidth: R,
@@ -4174,7 +4205,7 @@ function kc(e, t, n) {
4174
4205
  var i = fr();
4175
4206
  dr(i, t, { enableHardwareAcceleration: !n }, r);
4176
4207
  var o = i.vars, s = i.style;
4177
- return C(C({}, o), s);
4208
+ return M(M({}, o), s);
4178
4209
  }, [t]);
4179
4210
  }
4180
4211
  function Gc(e, t, n) {
@@ -4290,23 +4321,23 @@ function pr(e, t, n, r) {
4290
4321
  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
4322
  }
4292
4323
  var es = function() {
4293
- return C(C({}, fr()), { attrs: {} });
4324
+ return M(M({}, fr()), { attrs: {} });
4294
4325
  };
4295
4326
  function Kc(e, t) {
4296
4327
  var n = mt(function() {
4297
4328
  var i = es();
4298
- return pr(i, t, { enableHardwareAcceleration: !1 }, e.transformTemplate), C(C({}, i.attrs), { style: C({}, i.style) });
4329
+ return pr(i, t, { enableHardwareAcceleration: !1 }, e.transformTemplate), M(M({}, i.attrs), { style: M({}, i.style) });
4299
4330
  }, [t]);
4300
4331
  if (e.style) {
4301
4332
  var r = {};
4302
- Jo(r, e.style, e), n.style = C(C({}, r), n.style);
4333
+ Jo(r, e.style, e), n.style = M(M({}, r), n.style);
4303
4334
  }
4304
4335
  return n;
4305
4336
  }
4306
4337
  function Zc(e) {
4307
4338
  e === void 0 && (e = !1);
4308
4339
  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 = C(C(C({}, d), c), { ref: o });
4340
+ 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
4341
  return i && (f["data-projection-id"] = i), da(n, f);
4311
4342
  };
4312
4343
  return t;
@@ -4450,7 +4481,7 @@ var nd = {
4450
4481
  };
4451
4482
  function id(e, t, n, r, i) {
4452
4483
  var o = t.forwardMotionProps, s = o === void 0 ? !1 : o, a = ur(e) ? nd : rd;
4453
- return C(C({}, a), { preloadedFeatures: n, useRender: Zc(s), createVisualElement: r, projectionNodeConstructor: i, Component: e });
4484
+ return M(M({}, a), { preloadedFeatures: n, useRender: Zc(s), createVisualElement: r, projectionNodeConstructor: i, Component: e });
4454
4485
  }
4455
4486
  var W;
4456
4487
  (function(e) {
@@ -4639,13 +4670,13 @@ function bd(e, t, n) {
4639
4670
  function Un(e, t) {
4640
4671
  return e * Math.sqrt(1 - t * t);
4641
4672
  }
4642
- const Td = ["duration", "bounce"], xd = ["stiffness", "damping", "mass"];
4673
+ const xd = ["duration", "bounce"], Td = ["stiffness", "damping", "mass"];
4643
4674
  function ai(e, t) {
4644
4675
  return t.some((n) => e[n] !== void 0);
4645
4676
  }
4646
4677
  function Pd(e) {
4647
4678
  let t = Object.assign({ velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1 }, e);
4648
- if (!ai(e, xd) && ai(e, Td)) {
4679
+ if (!ai(e, Td) && ai(e, xd)) {
4649
4680
  const n = Sd(e);
4650
4681
  t = Object.assign(Object.assign(Object.assign({}, t), n), { velocity: 0, mass: 1 }), t.isResolvedFromDuration = !0;
4651
4682
  }
@@ -4660,19 +4691,19 @@ function gr(e) {
4660
4691
  if (i === void 0 && (i = Math.min(Math.abs(n - t) / 100, 0.4)), y < 1) {
4661
4692
  const b = Un(S, y);
4662
4693
  v = (w) => {
4663
- const x = Math.exp(-y * S * w);
4664
- return n - x * ((g + y * S * m) / b * Math.sin(b * w) + m * Math.cos(b * w));
4694
+ const _ = Math.exp(-y * S * w);
4695
+ return n - _ * ((g + y * S * m) / b * Math.sin(b * w) + m * Math.cos(b * w));
4665
4696
  }, p = (w) => {
4666
- const x = Math.exp(-y * S * w);
4667
- return y * S * x * (Math.sin(b * w) * (g + y * S * m) / b + m * Math.cos(b * w)) - x * (Math.cos(b * w) * (g + y * S * m) - b * m * Math.sin(b * w));
4697
+ const _ = Math.exp(-y * S * w);
4698
+ return y * S * _ * (Math.sin(b * w) * (g + y * S * m) / b + m * Math.cos(b * w)) - _ * (Math.cos(b * w) * (g + y * S * m) - b * m * Math.sin(b * w));
4668
4699
  };
4669
4700
  } else if (y === 1)
4670
4701
  v = (b) => n - Math.exp(-S * b) * (m + (g + S * m) * b);
4671
4702
  else {
4672
4703
  const b = S * Math.sqrt(y * y - 1);
4673
4704
  v = (w) => {
4674
- const x = Math.exp(-y * S * w), M = Math.min(b * w, 300);
4675
- return n - x * ((g + y * S * m) * Math.sinh(M) + b * m * Math.cosh(M)) / b;
4705
+ const _ = Math.exp(-y * S * w), T = Math.min(b * w, 300);
4706
+ return n - _ * ((g + y * S * m) * Math.sinh(T) + b * m * Math.cosh(T)) / b;
4676
4707
  };
4677
4708
  }
4678
4709
  }
@@ -4697,7 +4728,7 @@ const li = (e) => 0, vt = (e, t, n) => {
4697
4728
  const r = t - e;
4698
4729
  return r === 0 ? 1 : (n - e) / r;
4699
4730
  }, K = (e, t, n) => -n * e + n * t + e;
4700
- function xn(e, t, n) {
4731
+ function Tn(e, t, n) {
4701
4732
  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
4733
  }
4703
4734
  function ui({ hue: e, saturation: t, lightness: n, alpha: r }) {
@@ -4707,7 +4738,7 @@ function ui({ hue: e, saturation: t, lightness: n, alpha: r }) {
4707
4738
  i = o = s = n;
4708
4739
  else {
4709
4740
  const a = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - a;
4710
- i = xn(l, a, e + 1 / 3), o = xn(l, a, e), s = xn(l, a, e - 1 / 3);
4741
+ i = Tn(l, a, e + 1 / 3), o = Tn(l, a, e), s = Tn(l, a, e - 1 / 3);
4711
4742
  }
4712
4743
  return {
4713
4744
  red: Math.round(i * 255),
@@ -4810,14 +4841,14 @@ function yr(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
4810
4841
  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
4842
  const t = bs(e);
4812
4843
  return (n) => (n *= 2) < 1 ? 0.5 * t(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1)));
4813
- }, Ts = 1.525, Nd = 4 / 11, Bd = 8 / 11, Fd = 9 / 10, wr = (e) => e, br = Dd(2), zd = ln(br), xs = Sr(br), Ps = (e) => 1 - Math.sin(Math.acos(e)), Tr = ln(Ps), jd = Sr(Tr), xr = bs(Ts), kd = ln(xr), Gd = Sr(xr), $d = Rd(Ts), Hd = 4356 / 361, Wd = 35442 / 1805, Ud = 16061 / 1805, Kt = (e) => {
4844
+ }, 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
4845
  if (e === 1 || e === 0)
4815
4846
  return e;
4816
4847
  const t = e * e;
4817
4848
  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
4849
  }, qd = ln(Kt), Yd = (e) => e < 0.5 ? 0.5 * (1 - Kt(1 - e * 2)) : 0.5 * Kt(e * 2 - 1) + 0.5;
4819
4850
  function Xd(e, t) {
4820
- return e.map(() => t || xs).splice(0, e.length - 1);
4851
+ return e.map(() => t || Ts).splice(0, e.length - 1);
4821
4852
  }
4822
4853
  function Kd(e) {
4823
4854
  const t = e.length;
@@ -4895,17 +4926,17 @@ let Yn = !0, ht = !1, Xn = !1;
4895
4926
  const Ke = {
4896
4927
  delta: 0,
4897
4928
  timestamp: 0
4898
- }, Tt = [
4929
+ }, xt = [
4899
4930
  "read",
4900
4931
  "update",
4901
4932
  "preRender",
4902
4933
  "render",
4903
4934
  "postRender"
4904
- ], un = Tt.reduce((e, t) => (e[t] = tf(() => ht = !0), e), {}), pe = Tt.reduce((e, t) => {
4935
+ ], un = xt.reduce((e, t) => (e[t] = tf(() => ht = !0), e), {}), pe = xt.reduce((e, t) => {
4905
4936
  const n = un[t];
4906
4937
  return e[t] = (r, i = !1, o = !1) => (ht || of(), n.schedule(r, i, o)), e;
4907
- }, {}), Ze = Tt.reduce((e, t) => (e[t] = un[t].cancel, e), {}), Pn = Tt.reduce((e, t) => (e[t] = () => un[t].process(Ke), e), {}), rf = (e) => un[e].process(Ke), _s = (e) => {
4908
- ht = !1, Ke.delta = Yn ? Es : Math.max(Math.min(e - Ke.timestamp, nf), 1), Ke.timestamp = e, Xn = !0, Tt.forEach(rf), Xn = !1, ht && (Yn = !1, Cs(_s));
4938
+ }, {}), 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) => {
4939
+ 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
4940
  }, of = () => {
4910
4941
  ht = !0, Yn = !0, Xn || Cs(_s);
4911
4942
  }, Zt = () => Ke;
@@ -4927,24 +4958,24 @@ const lf = (e) => {
4927
4958
  };
4928
4959
  function Pr(e) {
4929
4960
  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, y = 0, S = h.duration, b, w = !1, x = !0, M;
4931
- const _ = Qd(h);
4932
- !((n = (t = _).needsInterpolation) === null || n === void 0) && n.call(t, r, g) && (M = yr([0, 100], [r, g], {
4961
+ let { to: g } = h, m, y = 0, S = h.duration, b, w = !1, _ = !0, T;
4962
+ const E = Qd(h);
4963
+ !((n = (t = E).needsInterpolation) === null || n === void 0) && n.call(t, r, g) && (T = yr([0, 100], [r, g], {
4933
4964
  clamp: !1
4934
4965
  }), r = 0, g = 100);
4935
- const T = _(Object.assign(Object.assign({}, h), { from: r, to: g }));
4966
+ const x = E(Object.assign(Object.assign({}, h), { from: r, to: g }));
4936
4967
  function P() {
4937
- y++, l === "reverse" ? (x = y % 2 === 0, s = sf(s, S, u, x)) : (s = Ms(s, S, u), l === "mirror" && T.flipTarget()), w = !1, v && v();
4968
+ y++, l === "reverse" ? (_ = y % 2 === 0, s = sf(s, S, u, _)) : (s = Ms(s, S, u), l === "mirror" && x.flipTarget()), w = !1, v && v();
4938
4969
  }
4939
4970
  function A() {
4940
4971
  m.stop(), f && f();
4941
4972
  }
4942
4973
  function I(N) {
4943
- if (x || (N = -N), s += N, !w) {
4944
- const j = T.next(Math.max(0, s));
4945
- b = j.value, M && (b = M(b)), w = x ? j.done : s <= 0;
4974
+ if (_ || (N = -N), s += N, !w) {
4975
+ const j = x.next(Math.max(0, s));
4976
+ b = j.value, T && (b = T(b)), w = _ ? j.done : s <= 0;
4946
4977
  }
4947
- p == null || p(b), w && (y === 0 && (S ?? (S = s)), y < a ? af(s, S, u, x) && P() : A());
4978
+ p == null || p(b), w && (y === 0 && (S ?? (S = s)), y < a ? af(s, S, u, _) && P() : A());
4948
4979
  }
4949
4980
  function L() {
4950
4981
  c == null || c(), m = o(I), m.start();
@@ -4986,9 +5017,9 @@ function uf({ from: e = 0, velocity: t = 0, min: n, max: r, power: i = 0.8, time
4986
5017
  let S = i * t + e;
4987
5018
  typeof u < "u" && (S = u(S));
4988
5019
  const b = g(S), w = b === n ? -1 : 1;
4989
- let x, M;
4990
- const _ = (T) => {
4991
- x = M, M = T, t = As(T - x, Zt().delta), (w === 1 && T > b || w === -1 && T < b) && y({ from: T, to: b, velocity: t });
5020
+ let _, T;
5021
+ const E = (x) => {
5022
+ _ = T, T = x, t = As(x - _, Zt().delta), (w === 1 && x > b || w === -1 && x < b) && y({ from: x, to: b, velocity: t });
4992
5023
  };
4993
5024
  m({
4994
5025
  type: "decay",
@@ -4998,7 +5029,7 @@ function uf({ from: e = 0, velocity: t = 0, min: n, max: r, power: i = 0.8, time
4998
5029
  power: i,
4999
5030
  restDelta: l,
5000
5031
  modifyTarget: u,
5001
- onUpdate: h(S) ? _ : void 0
5032
+ onUpdate: h(S) ? E : void 0
5002
5033
  });
5003
5034
  }
5004
5035
  return {
@@ -5089,7 +5120,7 @@ function wf(e) {
5089
5120
  var t = e.root, n = ue(e, ["root"]), r = t || document;
5090
5121
  En.has(r) || En.set(r, {});
5091
5122
  var i = En.get(r), o = JSON.stringify(n);
5092
- return i[o] || (i[o] = new IntersectionObserver(Sf, C({ root: t }, n))), i[o];
5123
+ return i[o] || (i[o] = new IntersectionObserver(Sf, M({ root: t }, n))), i[o];
5093
5124
  }
5094
5125
  function bf(e, t, n) {
5095
5126
  var r = wf(t);
@@ -5097,7 +5128,7 @@ function bf(e, t, n) {
5097
5128
  Zn.delete(e), r.unobserve(e);
5098
5129
  };
5099
5130
  }
5100
- function Tf(e) {
5131
+ function xf(e) {
5101
5132
  var t = e.visualElement, n = e.whileInView, r = e.onViewportEnter, i = e.onViewportLeave, o = e.viewport, s = o === void 0 ? {} : o, a = B({
5102
5133
  hasEnteredView: !1,
5103
5134
  isInView: !1
@@ -5106,7 +5137,7 @@ function Tf(e) {
5106
5137
  var u = typeof IntersectionObserver > "u" ? Ef : Pf;
5107
5138
  u(l, a.current, t, s);
5108
5139
  }
5109
- var xf = {
5140
+ var Tf = {
5110
5141
  some: 0,
5111
5142
  all: 1
5112
5143
  };
@@ -5117,7 +5148,7 @@ function Pf(e, t, n, r) {
5117
5148
  var u = {
5118
5149
  root: i == null ? void 0 : i.current,
5119
5150
  rootMargin: o,
5120
- threshold: typeof a == "number" ? a : xf[a]
5151
+ threshold: typeof a == "number" ? a : Tf[a]
5121
5152
  }, c = function(d) {
5122
5153
  var f, v = d.isIntersecting;
5123
5154
  if (t.isInView !== v && (t.isInView = v, !(l && !v && t.hasEnteredView))) {
@@ -5146,7 +5177,7 @@ var Re = function(e) {
5146
5177
  return e(t), null;
5147
5178
  };
5148
5179
  }, Cf = {
5149
- inView: Re(Tf),
5180
+ inView: Re(xf),
5150
5181
  tap: Re(gf),
5151
5182
  focus: Re(od),
5152
5183
  hover: Re(hd)
@@ -5184,12 +5215,12 @@ var Qt = function(e) {
5184
5215
  }, mi = {
5185
5216
  linear: wr,
5186
5217
  easeIn: br,
5187
- easeInOut: xs,
5218
+ easeInOut: Ts,
5188
5219
  easeOut: zd,
5189
5220
  circIn: Ps,
5190
5221
  circInOut: jd,
5191
- circOut: Tr,
5192
- backIn: xr,
5222
+ circOut: xr,
5223
+ backIn: Tr,
5193
5224
  backInOut: Gd,
5194
5225
  backOut: kd,
5195
5226
  anticipate: $d,
@@ -5253,8 +5284,8 @@ var Qt = function(e) {
5253
5284
  default: Vt
5254
5285
  }, Lf = function(e, t) {
5255
5286
  var n;
5256
- return pt(t) ? n = Vf : n = Si[e] || Si.default, C({ to: t }, n(t));
5257
- }, Of = C(C({}, Zo), {
5287
+ return pt(t) ? n = Vf : n = Si[e] || Si.default, M({ to: t }, n(t));
5288
+ }, Of = M(M({}, Zo), {
5258
5289
  // Color props
5259
5290
  color: re,
5260
5291
  backgroundColor: re,
@@ -5283,7 +5314,7 @@ function Df(e) {
5283
5314
  }
5284
5315
  var wi = !1;
5285
5316
  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 = C({}, s);
5317
+ 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
5318
  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
5319
  }
5289
5320
  function Nf(e, t) {
@@ -5295,11 +5326,11 @@ function Bf(e) {
5295
5326
  }
5296
5327
  function Ff(e, t, n) {
5297
5328
  var r;
5298
- return Array.isArray(t.to) && ((r = e.duration) !== null && r !== void 0 || (e.duration = 0.8)), Bf(t), Df(e) || (e = C(C({}, e), Lf(n, t.to))), C(C({}, t), Rf(e));
5329
+ 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
5330
  }
5300
5331
  function zf(e, t, n, r, i) {
5301
5332
  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 = Ti(n) : !Array.isArray(n) && bi(n) && typeof a == "string" && (n = Ti(a));
5333
+ 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
5334
  var u = yi(e, a);
5304
5335
  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
5336
  function c() {
@@ -5312,7 +5343,7 @@ function zf(e, t, n, r, i) {
5312
5343
  return t.set(v);
5313
5344
  }
5314
5345
  };
5315
- return s.type === "inertia" || s.type === "decay" ? uf(C(C({}, f), s)) : Pr(C(C({}, Ff(s, f, e)), { onUpdate: function(v) {
5346
+ return s.type === "inertia" || s.type === "decay" ? uf(M(M({}, f), s)) : Pr(M(M({}, Ff(s, f, e)), { onUpdate: function(v) {
5316
5347
  var p;
5317
5348
  f.onUpdate(v), (p = s.onUpdate) === null || p === void 0 || p.call(s, v);
5318
5349
  }, onComplete: function() {
@@ -5330,7 +5361,7 @@ function zf(e, t, n, r, i) {
5330
5361
  function bi(e) {
5331
5362
  return e === 0 || typeof e == "string" && parseFloat(e) === 0 && e.indexOf(" ") === -1;
5332
5363
  }
5333
- function Ti(e) {
5364
+ function xi(e) {
5334
5365
  return typeof e == "number" ? 0 : Cr("", e);
5335
5366
  }
5336
5367
  function _r(e, t) {
@@ -5466,7 +5497,7 @@ function Vr(e, t) {
5466
5497
  var n = rn(e, t), r = n ? e.makeTargetAnimatable(n, !1) : {}, i = r.transitionEnd, o = i === void 0 ? {} : i;
5467
5498
  r.transition;
5468
5499
  var s = ue(r, ["transitionEnd", "transition"]);
5469
- s = C(C({}, s), o);
5500
+ s = M(M({}, s), o);
5470
5501
  for (var a in s) {
5471
5502
  var l = ss(s[a]);
5472
5503
  qf(e, a, l);
@@ -5557,8 +5588,8 @@ function ks(e, t, n) {
5557
5588
  for (var g in v) {
5558
5589
  var m = e.getValue(g), y = v[g];
5559
5590
  if (!(!m || y === void 0 || h && tp(h, g))) {
5560
- var S = C({ delay: s }, d);
5561
- e.shouldReduceMotion && St(g) && (S = C(C({}, S), { type: !1, delay: 0 }));
5591
+ var S = M({ delay: s }, d);
5592
+ e.shouldReduceMotion && St(g) && (S = M(M({}, S), { type: !1, delay: 0 }));
5562
5593
  var b = Mr(g, m, y, S);
5563
5594
  p.push(b);
5564
5595
  }
@@ -5575,7 +5606,7 @@ function Jf(e, t, n, r, i, o) {
5575
5606
  return u === void 0 && (u = 0), a - u * r;
5576
5607
  };
5577
5608
  return Array.from(e.variantChildren).sort(ep).forEach(function(u, c) {
5578
- s.push(Qn(u, t, C(C({}, o), { delay: n + l(c) })).then(function() {
5609
+ s.push(Qn(u, t, M(M({}, o), { delay: n + l(c) })).then(function() {
5579
5610
  return u.notifyAnimationComplete(t);
5580
5611
  }));
5581
5612
  }), Promise.all(s);
@@ -5615,7 +5646,7 @@ function op(e) {
5615
5646
  if (f) {
5616
5647
  f.transition;
5617
5648
  var v = f.transitionEnd, p = ue(f, ["transition", "transitionEnd"]);
5618
- c = C(C(C({}, c), p), v);
5649
+ c = M(M(M({}, c), p), v);
5619
5650
  }
5620
5651
  return c;
5621
5652
  };
@@ -5626,43 +5657,43 @@ function op(e) {
5626
5657
  t = c(e);
5627
5658
  }
5628
5659
  function l(c, d) {
5629
- for (var f, v = e.getProps(), p = e.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), m = {}, y = 1 / 0, S = function(M) {
5630
- var _ = np[M], T = n[_], P = (f = v[_]) !== null && f !== void 0 ? f : p[_], A = fe(P), I = _ === d ? T.isActive : null;
5631
- I === !1 && (y = M);
5632
- var L = P === p[_] && P !== v[_] && A;
5633
- if (L && i && e.manuallyAnimateOnMount && (L = !1), T.protectedKeys = C({}, m), // If it isn't active and hasn't *just* been set as inactive
5634
- !T.isActive && I === null || // If we didn't and don't have any defined prop for this animation type
5635
- !P && !T.prevProp || // Or if the prop doesn't define an animation
5660
+ for (var f, v = e.getProps(), p = e.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), m = {}, y = 1 / 0, S = function(T) {
5661
+ var E = np[T], x = n[E], P = (f = v[E]) !== null && f !== void 0 ? f : p[E], A = fe(P), I = E === d ? x.isActive : null;
5662
+ I === !1 && (y = T);
5663
+ var L = P === p[E] && P !== v[E] && A;
5664
+ if (L && i && e.manuallyAnimateOnMount && (L = !1), x.protectedKeys = M({}, m), // If it isn't active and hasn't *just* been set as inactive
5665
+ !x.isActive && I === null || // If we didn't and don't have any defined prop for this animation type
5666
+ !P && !x.prevProp || // Or if the prop doesn't define an animation
5636
5667
  hr(P) || typeof P == "boolean")
5637
5668
  return "continue";
5638
- var N = sp(T.prevProp, P), j = N || // If we're making this variant active, we want to always make it active
5639
- _ === d && T.isActive && !L && A || // If we removed a higher-priority variant (i is in reverse order)
5640
- M > y && A, D = Array.isArray(P) ? P : [P], G = D.reduce(o, {});
5669
+ var N = sp(x.prevProp, P), j = N || // If we're making this variant active, we want to always make it active
5670
+ E === d && x.isActive && !L && A || // If we removed a higher-priority variant (i is in reverse order)
5671
+ T > y && A, D = Array.isArray(P) ? P : [P], G = D.reduce(o, {});
5641
5672
  I === !1 && (G = {});
5642
- var H = T.prevResolvedValues, k = H === void 0 ? {} : H, J = C(C({}, k), G), ce = function(O) {
5643
- j = !0, g.delete(O), T.needsAnimating[O] = !0;
5673
+ var H = x.prevResolvedValues, k = H === void 0 ? {} : H, J = M(M({}, k), G), ce = function(O) {
5674
+ j = !0, g.delete(O), x.needsAnimating[O] = !0;
5644
5675
  };
5645
5676
  for (var Q in J) {
5646
5677
  var $ = G[Q], V = k[Q];
5647
- 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);
5678
+ m.hasOwnProperty(Q) || ($ !== V ? pt($) && pt(V) ? !Bs($, V) || N ? ce(Q) : x.protectedKeys[Q] = !0 : $ !== void 0 ? ce(Q) : g.add(Q) : $ !== void 0 && g.has(Q) ? ce(Q) : x.protectedKeys[Q] = !0);
5648
5679
  }
5649
- T.prevProp = P, T.prevResolvedValues = G, T.isActive && (m = C(C({}, m), G)), i && e.blockInitialAnimation && (j = !1), j && !L && h.push.apply(h, le([], X(D.map(function(O) {
5680
+ x.prevProp = P, x.prevResolvedValues = G, x.isActive && (m = M(M({}, m), G)), i && e.blockInitialAnimation && (j = !1), j && !L && h.push.apply(h, le([], X(D.map(function(O) {
5650
5681
  return {
5651
5682
  animation: O,
5652
- options: C({ type: _ }, c)
5683
+ options: M({ type: E }, c)
5653
5684
  };
5654
5685
  })), !1));
5655
5686
  }, b = 0; b < rp; b++)
5656
5687
  S(b);
5657
- if (r = C({}, m), g.size) {
5688
+ if (r = M({}, m), g.size) {
5658
5689
  var w = {};
5659
- g.forEach(function(M) {
5660
- var _ = e.getBaseTarget(M);
5661
- _ !== void 0 && (w[M] = _);
5690
+ g.forEach(function(T) {
5691
+ var E = e.getBaseTarget(T);
5692
+ E !== void 0 && (w[T] = E);
5662
5693
  }), h.push({ animation: w });
5663
5694
  }
5664
- var x = !!h.length;
5665
- return i && v.initial === !1 && !e.manuallyAnimateOnMount && (x = !1), i = !1, x ? t(h) : Promise.resolve();
5695
+ var _ = !!h.length;
5696
+ return i && v.initial === !1 && !e.manuallyAnimateOnMount && (_ = !1), i = !1, _ ? t(h) : Promise.resolve();
5666
5697
  }
5667
5698
  function u(c, d, f) {
5668
5699
  var v;
@@ -5728,7 +5759,7 @@ var lp = {
5728
5759
  var f = Mn(i.lastMoveEventInfo, i.history), v = i.startEvent !== null, p = Is(f.offset, { x: 0, y: 0 }) >= 3;
5729
5760
  if (!(!v && !p)) {
5730
5761
  var h = f.point, g = Zt().timestamp;
5731
- i.history.push(C(C({}, h), { timestamp: g }));
5762
+ i.history.push(M(M({}, h), { timestamp: g }));
5732
5763
  var m = i.handlers, y = m.onStart, S = m.onMove;
5733
5764
  v || (y && y(i.lastMoveEvent, f), i.startEvent = i.lastMoveEvent), S && S(i.lastMoveEvent, f);
5734
5765
  }
@@ -5746,7 +5777,7 @@ var lp = {
5746
5777
  }, !(us(t) && t.touches.length > 1)) {
5747
5778
  this.handlers = n, this.transformPagePoint = s;
5748
5779
  var a = mr(t), l = _n(a, this.transformPagePoint), u = l.point, c = Zt().timestamp;
5749
- this.history = [C(C({}, u), { timestamp: c })];
5780
+ this.history = [M(M({}, u), { timestamp: c })];
5750
5781
  var d = n.onSessionStart;
5751
5782
  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
5783
  }
@@ -5761,15 +5792,15 @@ var lp = {
5761
5792
  function _n(e, t) {
5762
5793
  return t ? { point: t(e.point) } : e;
5763
5794
  }
5764
- function xi(e, t) {
5795
+ function Ti(e, t) {
5765
5796
  return { x: e.x - t.x, y: e.y - t.y };
5766
5797
  }
5767
5798
  function Mn(e, t) {
5768
5799
  var n = e.point;
5769
5800
  return {
5770
5801
  point: n,
5771
- delta: xi(n, $s(t)),
5772
- offset: xi(n, up(t)),
5802
+ delta: Ti(n, $s(t)),
5803
+ offset: Ti(n, up(t)),
5773
5804
  velocity: cp(t, 0.1)
5774
5805
  };
5775
5806
  }
@@ -5960,14 +5991,14 @@ function Ni(e, t, n) {
5960
5991
  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
5992
  tr(e, t[i], t[o], l, t.scale);
5962
5993
  }
5963
- var bp = ["x", "scaleX", "originX"], Tp = ["y", "scaleY", "originY"];
5994
+ var bp = ["x", "scaleX", "originX"], xp = ["y", "scaleY", "originY"];
5964
5995
  function Ue(e, t) {
5965
- Ni(e.x, t, bp), Ni(e.y, t, Tp);
5996
+ Ni(e.x, t, bp), Ni(e.y, t, xp);
5966
5997
  }
5967
5998
  function qs(e, t) {
5968
5999
  return Hs(Sp(e.getBoundingClientRect(), t));
5969
6000
  }
5970
- function xp(e, t, n) {
6001
+ function Tp(e, t, n) {
5971
6002
  var r = qs(e, n), i = t.scroll;
5972
6003
  return i && (Ve(r.x, i.x), Ve(r.y, i.y)), r;
5973
6004
  }
@@ -5987,10 +6018,10 @@ var Pp = /* @__PURE__ */ new WeakMap(), Ep = (
5987
6018
  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(y) {
5988
6019
  var S, b, w = r.getAxisMotionValue(y).get() || 0;
5989
6020
  if (ye.test(w)) {
5990
- var x = (b = (S = r.visualElement.projection) === null || S === void 0 ? void 0 : S.layout) === null || b === void 0 ? void 0 : b.actual[y];
5991
- if (x) {
5992
- var M = Ee(x);
5993
- w = M * (parseFloat(w) / 100);
6021
+ var _ = (b = (S = r.visualElement.projection) === null || S === void 0 ? void 0 : S.layout) === null || b === void 0 ? void 0 : b.actual[y];
6022
+ if (_) {
6023
+ var T = Ee(_);
6024
+ w = T * (parseFloat(w) / 100);
5994
6025
  }
5995
6026
  }
5996
6027
  r.originPoint[y] = w;
@@ -6048,7 +6079,7 @@ var Pp = /* @__PURE__ */ new WeakMap(), Ep = (
6048
6079
  var o = this.visualElement.projection;
6049
6080
  if (!o || !o.layout)
6050
6081
  return !1;
6051
- var s = xp(i, o.root, this.visualElement.getTransformPagePoint()), a = vp(o.layout.actual, s);
6082
+ var s = Tp(i, o.root, this.visualElement.getTransformPagePoint()), a = vp(o.layout.actual, s);
6052
6083
  if (r) {
6053
6084
  var l = r(yp(a));
6054
6085
  this.hasMutatedConstraints = !!l, l && (a = Hs(l));
@@ -6060,7 +6091,7 @@ var Pp = /* @__PURE__ */ new WeakMap(), Ep = (
6060
6091
  if (Lt(f, i, n.currentDirection)) {
6061
6092
  var p = (v = c == null ? void 0 : c[f]) !== null && v !== void 0 ? v : {};
6062
6093
  l && (p = { min: 0, max: 0 });
6063
- var h = s ? 200 : 1e6, g = s ? 40 : 1e7, m = C(C({ type: "inertia", velocity: o ? t[f] : 0, bounceStiffness: h, bounceDamping: g, timeConstant: 750, restDelta: 1, restSpeed: 10 }, a), p);
6094
+ 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
6095
  return n.startAxisValueAnimation(f, m);
6065
6096
  }
6066
6097
  });
@@ -6133,7 +6164,7 @@ var Pp = /* @__PURE__ */ new WeakMap(), Ep = (
6133
6164
  };
6134
6165
  }, e.prototype.getProps = function() {
6135
6166
  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 C(C({}, t), { drag: r, dragDirectionLock: o, dragPropagation: a, dragConstraints: u, dragElastic: d, dragMomentum: v });
6167
+ return M(M({}, t), { drag: r, dragDirectionLock: o, dragPropagation: a, dragConstraints: u, dragElastic: d, dragMomentum: v });
6137
6168
  }, e;
6138
6169
  }()
6139
6170
  );
@@ -6243,15 +6274,15 @@ var Ys = function(e) {
6243
6274
  return function(f, v) {
6244
6275
  var p = f.parent, h = f.props, g = f.presenceId, m = f.blockInitialAnimation, y = f.visualState, S = f.shouldReduceMotion;
6245
6276
  v === void 0 && (v = {});
6246
- var b = !1, w = y.latestValues, x = y.renderState, M, _ = Ip(), T = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), A = {}, I = C({}, w), L;
6277
+ var b = !1, w = y.latestValues, _ = y.renderState, T, E = Ip(), x = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), A = {}, I = M({}, w), L;
6247
6278
  function N() {
6248
- !M || !b || (j(), a(M, x, h.style, $.projection));
6279
+ !T || !b || (j(), a(T, _, h.style, $.projection));
6249
6280
  }
6250
6281
  function j() {
6251
- r($, x, w, v, h);
6282
+ r($, _, w, v, h);
6252
6283
  }
6253
6284
  function D() {
6254
- _.notifyUpdate(w);
6285
+ E.notifyUpdate(w);
6255
6286
  }
6256
6287
  function G(V, O) {
6257
6288
  var z = O.onChange(function(he) {
@@ -6266,7 +6297,7 @@ var Ys = function(e) {
6266
6297
  var J = H[k];
6267
6298
  w[k] !== void 0 && ve(J) && J.set(w[k], !1);
6268
6299
  }
6269
- var ce = on(h), Q = Fo(h), $ = C(C({
6300
+ var ce = on(h), Q = Fo(h), $ = M(M({
6270
6301
  treeType: n,
6271
6302
  /**
6272
6303
  * This is a mirror of the internal instance prop, which keeps
@@ -6317,10 +6348,10 @@ var Ys = function(e) {
6317
6348
  * own animations on mount.
6318
6349
  */
6319
6350
  isMounted: function() {
6320
- return !!M;
6351
+ return !!T;
6321
6352
  },
6322
6353
  mount: function(V) {
6323
- b = !0, M = $.current = V, $.projection && $.projection.mount(V), Q && p && !ce && (L = p == null ? void 0 : p.addVariantChild($)), T.forEach(function(O, z) {
6354
+ b = !0, T = $.current = V, $.projection && $.projection.mount(V), Q && p && !ce && (L = p == null ? void 0 : p.addVariantChild($)), x.forEach(function(O, z) {
6324
6355
  return G(z, O);
6325
6356
  }), p == null || p.children.add($), $.setProps(h);
6326
6357
  },
@@ -6331,7 +6362,7 @@ var Ys = function(e) {
6331
6362
  var V;
6332
6363
  (V = $.projection) === null || V === void 0 || V.unmount(), Ze.update(D), Ze.render(N), P.forEach(function(O) {
6333
6364
  return O();
6334
- }), L == null || L(), p == null || p.children.delete($), _.clearAllListeners(), M = void 0, b = !1;
6365
+ }), L == null || L(), p == null || p.children.delete($), E.clearAllListeners(), T = void 0, b = !1;
6335
6366
  },
6336
6367
  /**
6337
6368
  * Add a child visual element to our set of children.
@@ -6363,7 +6394,7 @@ var Ys = function(e) {
6363
6394
  * Returns the current instance.
6364
6395
  */
6365
6396
  getInstance: function() {
6366
- return M;
6397
+ return T;
6367
6398
  },
6368
6399
  /**
6369
6400
  * Get/set the latest static values.
@@ -6405,41 +6436,41 @@ var Ys = function(e) {
6405
6436
  * removed with a re-render to work.
6406
6437
  */
6407
6438
  measureViewportBox: function() {
6408
- return s(M, h);
6439
+ return s(T, h);
6409
6440
  },
6410
6441
  // Motion values ========================
6411
6442
  /**
6412
6443
  * Add a motion value and bind it to this visual element.
6413
6444
  */
6414
6445
  addValue: function(V, O) {
6415
- $.hasValue(V) && $.removeValue(V), T.set(V, O), w[V] = O.get(), G(V, O);
6446
+ $.hasValue(V) && $.removeValue(V), x.set(V, O), w[V] = O.get(), G(V, O);
6416
6447
  },
6417
6448
  /**
6418
6449
  * Remove a motion value and unbind any active subscriptions.
6419
6450
  */
6420
6451
  removeValue: function(V) {
6421
6452
  var O;
6422
- T.delete(V), (O = P.get(V)) === null || O === void 0 || O(), P.delete(V), delete w[V], u(V, x);
6453
+ x.delete(V), (O = P.get(V)) === null || O === void 0 || O(), P.delete(V), delete w[V], u(V, _);
6423
6454
  },
6424
6455
  /**
6425
6456
  * Check whether we have a motion value for this key
6426
6457
  */
6427
6458
  hasValue: function(V) {
6428
- return T.has(V);
6459
+ return x.has(V);
6429
6460
  },
6430
6461
  /**
6431
6462
  * Get a motion value for this key. If called with a default
6432
6463
  * value, we'll create one if none exists.
6433
6464
  */
6434
6465
  getValue: function(V, O) {
6435
- var z = T.get(V);
6466
+ var z = x.get(V);
6436
6467
  return z === void 0 && O !== void 0 && (z = je(O), $.addValue(V, z)), z;
6437
6468
  },
6438
6469
  /**
6439
6470
  * Iterate over our motion values.
6440
6471
  */
6441
6472
  forEachValue: function(V) {
6442
- return T.forEach(V);
6473
+ return x.forEach(V);
6443
6474
  },
6444
6475
  /**
6445
6476
  * If we're trying to animate to a previously unencountered value,
@@ -6448,7 +6479,7 @@ var Ys = function(e) {
6448
6479
  */
6449
6480
  readValue: function(V) {
6450
6481
  var O;
6451
- return (O = w[V]) !== null && O !== void 0 ? O : l(M, V, v);
6482
+ return (O = w[V]) !== null && O !== void 0 ? O : l(T, V, v);
6452
6483
  },
6453
6484
  /**
6454
6485
  * Set the base target to later animate back to. This is currently
@@ -6469,12 +6500,12 @@ var Ys = function(e) {
6469
6500
  }
6470
6501
  return I[V];
6471
6502
  }
6472
- }, _), {
6503
+ }, E), {
6473
6504
  /**
6474
6505
  * Build the renderer state based on the latest visual state.
6475
6506
  */
6476
6507
  build: function() {
6477
- return j(), x;
6508
+ return j(), _;
6478
6509
  },
6479
6510
  /**
6480
6511
  * Schedule a render on the next animation frame.
@@ -6494,7 +6525,7 @@ var Ys = function(e) {
6494
6525
  * added to our map, old ones removed, and listeners updated.
6495
6526
  */
6496
6527
  setProps: function(V) {
6497
- (V.transformTemplate || h.transformTemplate) && $.scheduleRender(), h = V, _.updatePropListeners(V), A = Vp($, d(h), A);
6528
+ (V.transformTemplate || h.transformTemplate) && $.scheduleRender(), h = V, E.updatePropListeners(V), A = Vp($, d(h), A);
6498
6529
  },
6499
6530
  getProps: function() {
6500
6531
  return h;
@@ -6560,7 +6591,7 @@ function Rp(e, t, n) {
6560
6591
  var r, i = ue(t, []), o = e.getInstance();
6561
6592
  if (!(o instanceof Element))
6562
6593
  return { target: i, transitionEnd: n };
6563
- n && (n = C({}, n)), e.forEachValue(function(u) {
6594
+ n && (n = M({}, n)), e.forEachValue(function(u) {
6564
6595
  var c = u.get();
6565
6596
  if (nr(c)) {
6566
6597
  var d = rr(c, o);
@@ -6660,7 +6691,7 @@ var ji = {
6660
6691
  Js(c, a[u]), e[u] = ji[u](l, o);
6661
6692
  }), e;
6662
6693
  }, Gp = function(e, t, n, r) {
6663
- n === void 0 && (n = {}), r === void 0 && (r = {}), t = C({}, t), r = C({}, r);
6694
+ n === void 0 && (n = {}), r === void 0 && (r = {}), t = M({}, t), r = M({}, r);
6664
6695
  var i = Object.keys(t).filter(Zs), o = [], s = !1, a = [];
6665
6696
  if (i.forEach(function(c) {
6666
6697
  var d = e.getValue(c);
@@ -6751,14 +6782,14 @@ var Qs = {
6751
6782
  var u = Hp(e, a, l, s);
6752
6783
  s = u.transitionEnd, a = u.target;
6753
6784
  }
6754
- return C({ transition: o, transitionEnd: s }, a);
6785
+ return M({ transition: o, transitionEnd: s }, a);
6755
6786
  },
6756
6787
  scrapeMotionValuesFromProps: vr,
6757
6788
  build: function(e, t, n, r, i) {
6758
6789
  e.isVisible !== void 0 && (t.style.visibility = e.isVisible ? "visible" : "hidden"), dr(t, n, r, i.transformTemplate);
6759
6790
  },
6760
6791
  render: ns
6761
- }, Up = Ys(Qs), qp = Ys(C(C({}, Qs), { getBaseTarget: function(e, t) {
6792
+ }, Up = Ys(Qs), qp = Ys(M(M({}, Qs), { getBaseTarget: function(e, t) {
6762
6793
  return e[t];
6763
6794
  }, readValueFromInstance: function(e, t) {
6764
6795
  var n;
@@ -6817,7 +6848,7 @@ var et = {
6817
6848
  var n = this, r = this.props, i = r.visualElement, o = r.layoutGroup, s = r.switchLayoutGroup, a = r.layoutId, l = i.projection;
6818
6849
  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
6850
  n.safeToRemove();
6820
- }), l.setOptions(C(C({}, l.options), { onExitComplete: function() {
6851
+ }), l.setOptions(M(M({}, l.options), { onExitComplete: function() {
6821
6852
  return n.safeToRemove();
6822
6853
  } }))), rt.hasEverUpdated = !0;
6823
6854
  }, t.prototype.getSnapshotBeforeUpdate = function(n) {
@@ -6842,10 +6873,10 @@ var et = {
6842
6873
  );
6843
6874
  function Zp(e) {
6844
6875
  var t = X(Ns(), 2), n = t[0], r = t[1], i = ee(zo);
6845
- return Y.createElement(Kp, C({}, e, { layoutGroup: i, switchLayoutGroup: ee(jo), isPresent: n, safeToRemove: r }));
6876
+ return Y.createElement(Kp, M({}, e, { layoutGroup: i, switchLayoutGroup: ee(jo), isPresent: n, safeToRemove: r }));
6846
6877
  }
6847
6878
  var Jp = {
6848
- borderRadius: C(C({}, et), { applyTo: [
6879
+ borderRadius: M(M({}, et), { applyTo: [
6849
6880
  "borderTopLeftRadius",
6850
6881
  "borderTopRightRadius",
6851
6882
  "borderBottomLeftRadius",
@@ -6899,7 +6930,7 @@ function Wi(e, t) {
6899
6930
  var n;
6900
6931
  return (n = e[t]) !== null && n !== void 0 ? n : e.borderRadius;
6901
6932
  }
6902
- var rv = ta(0, 0.5, Tr), iv = ta(0.5, 0.95, wr);
6933
+ var rv = ta(0, 0.5, xr), iv = ta(0.5, 0.95, wr);
6903
6934
  function ta(e, t, n) {
6904
6935
  return function(r) {
6905
6936
  return r < e ? 0 : r > t ? 1 : n(vt(e, t, r));
@@ -7057,18 +7088,18 @@ function ia(e) {
7057
7088
  });
7058
7089
  }
7059
7090
  f && this.root.registerSharedNode(f, this), this.options.animate !== !1 && p && (f || v) && this.addEventListener("didUpdate", function(m) {
7060
- var y, S, b, w, x, M = m.delta, _ = m.hasLayoutChanged, T = m.hasRelativeTargetChanged, P = m.layout;
7091
+ var y, S, b, w, _, T = m.delta, E = m.hasLayoutChanged, x = m.hasRelativeTargetChanged, P = m.layout;
7061
7092
  if (u.isTreeAnimationBlocked()) {
7062
7093
  u.target = void 0, u.relativeTarget = void 0;
7063
7094
  return;
7064
7095
  }
7065
- var A = (S = (y = u.options.transition) !== null && y !== void 0 ? y : p.getDefaultTransition()) !== null && S !== void 0 ? S : xv, I = p.getProps(), L = I.onLayoutAnimationStart, N = I.onLayoutAnimationComplete, j = !u.targetLayout || !ra(u.targetLayout, P) || T, D = !_ && T;
7066
- 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(M, D);
7068
- var G = C(C({}, _r(A, "layout")), { onPlay: L, onComplete: N });
7096
+ var A = (S = (y = u.options.transition) !== null && y !== void 0 ? y : p.getDefaultTransition()) !== null && S !== void 0 ? S : Tv, I = p.getProps(), L = I.onLayoutAnimationStart, N = I.onLayoutAnimationComplete, j = !u.targetLayout || !ra(u.targetLayout, P) || x, D = !E && x;
7097
+ if (!((b = u.resumeFrom) === null || b === void 0) && b.instance || D || E && (j || !u.currentAnimation)) {
7098
+ u.resumeFrom && (u.resumingFrom = u.resumeFrom, u.resumingFrom.resumingFrom = void 0), u.setAnimationOrigin(T, D);
7099
+ var G = M(M({}, _r(A, "layout")), { onPlay: L, onComplete: N });
7069
7100
  p.shouldReduceMotion && (G.delay = 0, G.type = !1), u.startAnimation(G);
7070
7101
  } else
7071
- !_ && u.animationProgress === 0 && u.finishAnimation(), u.isLead() && ((x = (w = u.options).onExitComplete) === null || x === void 0 || x.call(w));
7102
+ !E && u.animationProgress === 0 && u.finishAnimation(), u.isLead() && ((_ = (w = u.options).onExitComplete) === null || _ === void 0 || _.call(w));
7072
7103
  u.targetLayout = P;
7073
7104
  });
7074
7105
  }
@@ -7203,7 +7234,7 @@ function ia(e) {
7203
7234
  this.targetDelta = a, this.root.scheduleUpdateProjection();
7204
7235
  }, s.prototype.setOptions = function(a) {
7205
7236
  var l;
7206
- this.options = C(C(C({}, this.options), a), { crossfade: (l = a.crossfade) !== null && l !== void 0 ? l : !0 });
7237
+ this.options = M(M(M({}, this.options), a), { crossfade: (l = a.crossfade) !== null && l !== void 0 ? l : !0 });
7207
7238
  }, s.prototype.clearMeasurements = function() {
7208
7239
  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
7240
  }, s.prototype.resolveTargetDelta = function() {
@@ -7234,9 +7265,9 @@ function ia(e) {
7234
7265
  }, s.prototype.setAnimationOrigin = function(a, l) {
7235
7266
  var u = this, c;
7236
7267
  l === void 0 && (l = !1);
7237
- var d = this.snapshot, f = (d == null ? void 0 : d.latestValues) || {}, v = C({}, this.latestValues), p = ut();
7268
+ var d = this.snapshot, f = (d == null ? void 0 : d.latestValues) || {}, v = M({}, this.latestValues), p = ut();
7238
7269
  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, y = !!(g && !m && this.options.crossfade === !0 && !this.path.some(Tv));
7270
+ 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, y = !!(g && !m && this.options.crossfade === !0 && !this.path.some(xv));
7240
7271
  this.animationProgress = 0, this.mixTargetDelta = function(S) {
7241
7272
  var b, w = S / 1e3;
7242
7273
  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, y, m)), u.root.scheduleUpdateProjection(), u.scheduleRender(), u.animationProgress = w;
@@ -7244,7 +7275,7 @@ function ia(e) {
7244
7275
  }, s.prototype.startAnimation = function(a) {
7245
7276
  var l = this, u, c;
7246
7277
  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, C(C({}, a), { onUpdate: function(d) {
7278
+ rt.hasAnimatedSinceResize = !0, l.currentAnimation = ev(0, Ji, M(M({}, a), { onUpdate: function(d) {
7248
7279
  var f;
7249
7280
  l.mixTargetDelta(d), (f = a.onUpdate) === null || f === void 0 || f.call(a, d);
7250
7281
  }, onComplete: function() {
@@ -7324,14 +7355,14 @@ function ia(e) {
7324
7355
  this.applyTransformsToTarget(), p.transform = Zi(this.projectionDeltaWithTransform, this.treeScale, y), h && (p.transform = h(y, p.transform));
7325
7356
  var S = this.projectionDelta, b = S.x, w = S.y;
7326
7357
  p.transformOrigin = "".concat(b.origin * 100, "% ").concat(w.origin * 100, "% 0"), g.animationValues ? p.opacity = g === this ? (d = (c = y.opacity) !== null && c !== void 0 ? c : this.latestValues.opacity) !== null && d !== void 0 ? d : 1 : this.preserveOpacity ? this.latestValues.opacity : y.opacityExit : p.opacity = g === this ? (f = y.opacity) !== null && f !== void 0 ? f : "" : (v = y.opacityExit) !== null && v !== void 0 ? v : 0;
7327
- for (var x in Ut)
7328
- if (y[x] !== void 0) {
7329
- var M = Ut[x], _ = M.correct, T = M.applyTo, P = _(y[x], g);
7330
- if (T)
7331
- for (var A = T.length, I = 0; I < A; I++)
7332
- p[T[I]] = P;
7358
+ for (var _ in Ut)
7359
+ if (y[_] !== void 0) {
7360
+ var T = Ut[_], E = T.correct, x = T.applyTo, P = E(y[_], g);
7361
+ if (x)
7362
+ for (var A = x.length, I = 0; I < A; I++)
7363
+ p[x[I]] = P;
7333
7364
  else
7334
- p[x] = P;
7365
+ p[_] = P;
7335
7366
  }
7336
7367
  return this.options.layoutId && (p.pointerEvents = g === this ? Bt(a.pointerEvents) || "" : "none"), p;
7337
7368
  }, s.prototype.clearSnapshot = function() {
@@ -7418,10 +7449,10 @@ function to(e, t, n, r) {
7418
7449
  function bv(e, t, n, r) {
7419
7450
  to(e.x, t.x, n.x, r), to(e.y, t.y, n.y, r);
7420
7451
  }
7421
- function Tv(e) {
7452
+ function xv(e) {
7422
7453
  return e.animationValues && e.animationValues.opacityExit !== void 0;
7423
7454
  }
7424
- var xv = {
7455
+ var Tv = {
7425
7456
  duration: 0.45,
7426
7457
  ease: [0.4, 0, 0.1, 1]
7427
7458
  };
@@ -7475,7 +7506,7 @@ var Ev = ia({
7475
7506
  checkIsScrollRoot: function(e) {
7476
7507
  return window.getComputedStyle(e).position === "fixed";
7477
7508
  }
7478
- }), _v = C(C(C(C({}, lp), Cf), Ap), Qp), oa = /* @__PURE__ */ Sc(function(e, t) {
7509
+ }), _v = M(M(M(M({}, lp), Cf), Ap), Qp), oa = /* @__PURE__ */ Sc(function(e, t) {
7479
7510
  return id(e, t, _v, Yp, Cv);
7480
7511
  });
7481
7512
  function Or(e) {
@@ -7498,7 +7529,7 @@ var Mv = function(e) {
7498
7529
  function Iv() {
7499
7530
  for (var e = [], t = 0; t < arguments.length; t++)
7500
7531
  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, C({ mixer: Av(s[0]) }, a));
7532
+ 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
7533
  return n ? l(i) : l;
7503
7534
  }
7504
7535
  function Vv(e, t) {
@@ -7550,7 +7581,7 @@ function Rv(e, t) {
7550
7581
  var n = ee(yt).isStatic, r = B(null), i = Or(ve(e) ? e.get() : e);
7551
7582
  return mt(function() {
7552
7583
  return i.attach(function(o, s) {
7553
- return n ? s(o) : (r.current && r.current.stop(), r.current = Pr(C(C({ from: i.get(), to: o, velocity: i.getVelocity() }, t), { onUpdate: s })), i.get());
7584
+ 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
7585
  });
7555
7586
  }, [JSON.stringify(t)]), Vv(e, function(o) {
7556
7587
  return i.set(parseFloat(o));
@@ -7612,7 +7643,7 @@ function Fv({
7612
7643
  onDragProgress: r
7613
7644
  }) {
7614
7645
  const i = Or(0), o = 150, s = Rv(i, { stiffness: 300, damping: 30 }), a = Dv(s, [0, 300], [1, 0.95], { clamp: !0 }), l = sa();
7615
- return /* @__PURE__ */ E(
7646
+ return /* @__PURE__ */ C(
7616
7647
  oa.div,
7617
7648
  {
7618
7649
  style: {
@@ -7644,7 +7675,7 @@ const aa = ({
7644
7675
  height: t = "100%",
7645
7676
  fill: n = "white",
7646
7677
  ...r
7647
- }) => /* @__PURE__ */ E(
7678
+ }) => /* @__PURE__ */ C(
7648
7679
  "svg",
7649
7680
  {
7650
7681
  xmlns: "http://www.w3.org/2000/svg",
@@ -7653,7 +7684,7 @@ const aa = ({
7653
7684
  fill: "none",
7654
7685
  viewBox: "0 0 24 24",
7655
7686
  ...r,
7656
- children: /* @__PURE__ */ E(
7687
+ children: /* @__PURE__ */ C(
7657
7688
  "path",
7658
7689
  {
7659
7690
  fill: n,
@@ -7685,52 +7716,59 @@ function jv({
7685
7716
  stories: e,
7686
7717
  open: t,
7687
7718
  onClose: n,
7688
- initialSlide: r
7719
+ initialSlide: r,
7720
+ onButtonStoryClick: i
7689
7721
  }) {
7690
- const [i, o] = Z(!1), s = B(null), a = B(null);
7722
+ const [o, s] = Z(!1), a = B(null), l = B(null);
7691
7723
  console.log(r);
7692
- const [l, u] = Z(r);
7724
+ const [u, c] = Z(r);
7693
7725
  zv(t, () => n == null ? void 0 : n());
7694
7726
  const {
7695
- markStorySeen: c
7727
+ markStorySeen: d,
7728
+ getNextUnseenStoryIndex: f
7696
7729
  } = po({ container: "HOME" });
7697
- return t ? /* @__PURE__ */ E("div", { className: Ct.StoryCube, children: /* @__PURE__ */ U("div", { className: Ct.AtSwiperCubeWrap, ref: s, children: [
7698
- /* @__PURE__ */ E("div", { className: Ct.CloseIcon, onClick: n, children: /* @__PURE__ */ E(aa, {}) }),
7699
- /* @__PURE__ */ E(Fv, { disabled: !1, onClose: n, children: /* @__PURE__ */ E(
7730
+ return t ? /* @__PURE__ */ C("div", { className: Ct.StoryCube, children: /* @__PURE__ */ U("div", { className: Ct.AtSwiperCubeWrap, ref: a, children: [
7731
+ /* @__PURE__ */ C("div", { className: Ct.CloseIcon, onClick: n, children: /* @__PURE__ */ C(aa, {}) }),
7732
+ /* @__PURE__ */ C(Fv, { disabled: !1, onClose: n, children: /* @__PURE__ */ C(
7700
7733
  Mo,
7701
7734
  {
7702
7735
  modules: [uu, au],
7703
7736
  effect: "cube",
7704
- onSliderMove: () => o(!0),
7705
- onTransitionEnd: () => o(!1),
7706
- onSwiper: (d) => a.current = d,
7737
+ onSliderMove: () => s(!0),
7738
+ onTransitionEnd: () => s(!1),
7739
+ onSwiper: (v) => l.current = v,
7707
7740
  cubeEffect: {
7708
7741
  shadow: !1,
7709
7742
  slideShadows: !1
7710
7743
  },
7711
7744
  className: Ct.AtSwiperCube,
7712
- onSlideChange: (d) => {
7713
- u(d.activeIndex);
7745
+ onSlideChange: (v) => {
7746
+ c(v.activeIndex);
7714
7747
  },
7715
- initialSlide: l,
7716
- children: e == null ? void 0 : e.map((d, f) => /* @__PURE__ */ E(Ao, { children: /* @__PURE__ */ E(
7748
+ initialSlide: u,
7749
+ children: e == null ? void 0 : e.map((v, p) => (console.log(v.id), console.log(
7750
+ "getNextUnseenStoryIndex=> ",
7751
+ f(v)
7752
+ ), /* @__PURE__ */ C(Ao, { children: /* @__PURE__ */ C(
7717
7753
  Qu,
7718
7754
  {
7719
- play: l == f,
7720
- story: d,
7721
- onChangeStory: (v, p) => {
7722
- c(d == null ? void 0 : d.id, p == null ? void 0 : p.id);
7755
+ onButtonStoryClick: i,
7756
+ initialIndex: f(v),
7757
+ play: u == p,
7758
+ story: v,
7759
+ onChangeStory: (h, g) => {
7760
+ d(v == null ? void 0 : v.id, g == null ? void 0 : g.id);
7723
7761
  },
7724
7762
  onAllStoriesEnd: () => {
7725
- var v;
7726
- (v = a.current) == null || v.slideNext();
7763
+ var h;
7764
+ (h = l.current) == null || h.slideNext();
7727
7765
  },
7728
- onLeft: (v) => {
7729
- var p;
7730
- v == -1 && ((p = a.current) == null || p.slidePrev());
7766
+ onLeft: (h) => {
7767
+ var g;
7768
+ h == -1 && ((g = l.current) == null || g.slidePrev());
7731
7769
  }
7732
7770
  }
7733
- ) }, d == null ? void 0 : d.id))
7771
+ ) }, v == null ? void 0 : v.id)))
7734
7772
  }
7735
7773
  ) })
7736
7774
  ] }) }) : null;
@@ -7935,51 +7973,60 @@ var Vn, Hv = (Vn = "indiana-scroll-container", function(e, t) {
7935
7973
  return Y.createElement(l, { className: Gv(o, this.pressed && i, Hv({ dragging: this.pressed, "hide-scrollbars": a, "native-scroll": this.isMobile })), style: s, ref: this.getRef, onScroll: this.onScroll }, r);
7936
7974
  }, t.defaultProps = { nativeMobileScroll: !0, hideScrollbars: !0, activationDistance: 10, vertical: !0, horizontal: !0, stopPropagation: !1, style: {}, component: "div", buttons: [0] }, t;
7937
7975
  }(fa);
7938
- 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();
7976
+ const Oh = ({
7977
+ className: e = "",
7978
+ data: t,
7979
+ isPortal: n = !0,
7980
+ onButtonStoryClick: r
7981
+ }) => {
7982
+ const [i, o] = Z(null), s = (p) => o(p), [a, l] = Z(t), { hasSeenAllStories: u, sortProfilesBySeenStatus: c } = po();
7943
7983
  F(() => {
7944
- a(
7945
- u(t == null ? void 0 : t.filter((v) => v.stories.length))
7984
+ l(
7985
+ c(t == null ? void 0 : t.filter((p) => p.stories.length))
7946
7986
  );
7947
7987
  }, [t]);
7948
- const c = s == null ? void 0 : s.findIndex((v) => v.id == r);
7988
+ const d = a == null ? void 0 : a.findIndex((p) => p.id == i);
7949
7989
  Aa({
7950
7990
  targets: [document],
7951
- scroll: r ? "OFF" : "ON"
7991
+ scroll: i ? "OFF" : "ON"
7952
7992
  });
7953
- const d = () => {
7954
- a(
7955
- u(t == null ? void 0 : t.filter((v) => v.stories.length))
7956
- ), i(null);
7957
- }, f = () => r ? pa.createPortal(
7958
- /* @__PURE__ */ E(
7993
+ const f = () => {
7994
+ l(
7995
+ c(t == null ? void 0 : t.filter((p) => p.stories.length))
7996
+ ), o(null);
7997
+ }, v = () => i ? pa.createPortal(
7998
+ /* @__PURE__ */ C(
7959
7999
  jv,
7960
8000
  {
7961
- stories: s,
7962
- open: r,
7963
- onClose: d,
7964
- initialSlide: c
8001
+ stories: a,
8002
+ open: i,
8003
+ onClose: f,
8004
+ initialSlide: d,
8005
+ onButtonStoryClick: r
7965
8006
  }
7966
8007
  ),
7967
8008
  document.body
7968
8009
  ) : null;
7969
- return console.log(s), s != null && s.length ? /* @__PURE__ */ U(jt, { children: [
7970
- /* @__PURE__ */ E(Wv, { className: Se(Rr.ScrollContainerClassName, e), children: s == null ? void 0 : s.map((v, p) => /* @__PURE__ */ E("div", { className: Rr.ItemClassName, children: /* @__PURE__ */ E(
7971
- fo,
8010
+ return a != null && a.length ? /* @__PURE__ */ U(jt, { children: [
8011
+ /* @__PURE__ */ C(
8012
+ Wv,
7972
8013
  {
7973
- hasSeenAllStories: l(v),
7974
- onProfileClick: () => o(v == null ? void 0 : v.id),
7975
- color: v == null ? void 0 : v.color,
7976
- image: v == null ? void 0 : v.avatar,
7977
- title: v == null ? void 0 : v.name
7978
- },
7979
- v == null ? void 0 : v.id
7980
- ) })) }),
7981
- r != null && f()
7982
- ] }) : /* @__PURE__ */ E(jt, {});
8014
+ className: Se(Rr.ScrollContainerClassName, e),
8015
+ children: a == null ? void 0 : a.map((p, h) => /* @__PURE__ */ C("div", { className: Rr.ItemClassName, children: /* @__PURE__ */ C(
8016
+ fo,
8017
+ {
8018
+ hasSeenAllStories: u(p),
8019
+ onProfileClick: () => s(p == null ? void 0 : p.id),
8020
+ color: p == null ? void 0 : p.color,
8021
+ image: p == null ? void 0 : p.avatar,
8022
+ title: p == null ? void 0 : p.name
8023
+ },
8024
+ p == null ? void 0 : p.id
8025
+ ) }))
8026
+ }
8027
+ ),
8028
+ i != null && v()
8029
+ ] }) : /* @__PURE__ */ C(jt, {});
7983
8030
  }, 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 = {
7984
8031
  StoryPlayer: Uv,
7985
8032
  Overlay: qv,
@@ -8018,7 +8065,7 @@ function nh(e) {
8018
8065
  return u(v);
8019
8066
  } };
8020
8067
  }
8021
- return U(uo, { children: [E("div", q({ className: eh }, d(Ln.LEFT))), E("div", q({ className: th }, d(Ln.RIGHT)))] });
8068
+ return U(uo, { children: [C("div", q({ className: eh }, d(Ln.LEFT))), C("div", q({ className: th }, d(Ln.RIGHT)))] });
8022
8069
  }
8023
8070
  function cn() {
8024
8071
  return ee(ua);
@@ -8048,20 +8095,20 @@ function oh(e) {
8048
8095
  }) : function() {
8049
8096
  r.current && (r.current = null), cancelAnimationFrame(r.current), i.current = null;
8050
8097
  };
8051
- }, [n]), E("div", q({ className: "".concat(rh, " ").concat((l == null ? void 0 : l.progressBarContainer) || ""), ref: c }, { children: E("div", { className: "".concat(ih, " ").concat((l == null ? void 0 : l.progressBar) || ""), ref: u }) }));
8098
+ }, [n]), C("div", q({ className: "".concat(rh, " ").concat((l == null ? void 0 : l.progressBarContainer) || ""), ref: c }, { children: C("div", { className: "".concat(ih, " ").concat((l == null ? void 0 : l.progressBar) || ""), ref: u }) }));
8052
8099
  }
8053
8100
  var sh = "progress-styles_wrapper__qQPyW";
8054
8101
  function ah(e) {
8055
8102
  var t = cn(), n = t.stories, r = t.classNames;
8056
- return E("div", q({ className: "".concat(sh, " ").concat((r == null ? void 0 : r.progressContainer) || ""), style: { gridTemplateColumns: "repeat(".concat(n.length, ",1fr)") } }, { children: n.map(function(i) {
8057
- return E(oh, { hasStoryPassed: i.index < e.activeStoryIndex, isActive: i.index === e.activeStoryIndex, story: i, isPaused: i.index === e.activeStoryIndex && e.isPaused }, i.index);
8103
+ return C("div", q({ className: "".concat(sh, " ").concat((r == null ? void 0 : r.progressContainer) || ""), style: { gridTemplateColumns: "repeat(".concat(n.length, ",1fr)") } }, { children: n.map(function(i) {
8104
+ return C(oh, { hasStoryPassed: i.index < e.activeStoryIndex, isActive: i.index === e.activeStoryIndex, story: i, isPaused: i.index === e.activeStoryIndex && e.isPaused }, i.index);
8058
8105
  }) }));
8059
8106
  }
8060
8107
  var On = Object.freeze({ IMAGE: "image", VIDEO: "video", COMPONENT: "component" }), lh = "Story-styles_wrapper__oJP7j", uh = "Story-styles_header__-rnWL", ch = "Image-styles_image__gnfW1";
8061
8108
  function dh(e) {
8062
8109
  return F(function() {
8063
8110
  e.onPause();
8064
- }, []), E("img", { className: ch, src: e.story.url, alt: "story", onLoad: function() {
8111
+ }, []), C("img", { className: ch, src: e.story.url, alt: "story", onLoad: function() {
8065
8112
  setTimeout(function() {
8066
8113
  e.onResume();
8067
8114
  }, 4);
@@ -8069,7 +8116,7 @@ function dh(e) {
8069
8116
  }
8070
8117
  var Dn, fh = "Video-styles_video__BykuO", ph = "Video-styles_loaderWrapper__TqVWk", vh = "Video-styles_loader__FxxSV", hh = "Video-styles_soundIcon__ZvYXE";
8071
8118
  function mh(e) {
8072
- return e.type === "off" ? E("svg", q({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "white" }, { children: E("path", { d: "M3 9v6h-1v-6h1zm13-7l-9 5v2.288l7-3.889v13.202l-7-3.889v2.288l9 5v-20zm-11 5h-5v10h5v-10zm17.324 4.993l1.646-1.659-1.324-1.324-1.651 1.67-1.665-1.648-1.316 1.318 1.67 1.657-1.65 1.669 1.318 1.317 1.658-1.672 1.666 1.653 1.324-1.325-1.676-1.656z" }) })) : E("svg", q({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "white" }, { children: E("path", { d: "M22 0v24l-11-6v-2.278l9 4.909v-17.262l-9 4.91v-2.279l11-6zm-13 6v12h-7v-12h7zm-2 2h-3v8h3v-8z" }) }));
8119
+ return e.type === "off" ? C("svg", q({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "white" }, { children: C("path", { d: "M3 9v6h-1v-6h1zm13-7l-9 5v2.288l7-3.889v13.202l-7-3.889v2.288l9 5v-20zm-11 5h-5v10h5v-10zm17.324 4.993l1.646-1.659-1.324-1.324-1.651 1.67-1.665-1.648-1.316 1.318 1.67 1.657-1.65 1.669 1.318 1.317 1.658-1.672 1.666 1.653 1.324-1.325-1.676-1.656z" }) })) : C("svg", q({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "white" }, { children: C("path", { d: "M22 0v24l-11-6v-2.278l9 4.909v-17.262l-9 4.91v-2.279l11-6zm-13 6v12h-7v-12h7zm-2 2h-3v8h3v-8z" }) }));
8073
8120
  }
8074
8121
  var or = "RSIsMute", qe = typeof window > "u" ? {} : window;
8075
8122
  function gh(e) {
@@ -8089,40 +8136,40 @@ function gh(e) {
8089
8136
  setTimeout(function() {
8090
8137
  e.onResume(), l(!1);
8091
8138
  }, 4);
8092
- }, muted: i }, { children: [E("source", { src: e.story.url, type: "video/mp4" }), E("source", { src: e.story.url, type: "video/webm" }), E("source", { src: e.story.url, type: "video/ogg" }), E("p", { children: "Video not supported" })] })), E("div", q({ className: hh, onClick: function() {
8139
+ }, muted: i }, { children: [C("source", { src: e.story.url, type: "video/mp4" }), C("source", { src: e.story.url, type: "video/webm" }), C("source", { src: e.story.url, type: "video/ogg" }), C("p", { children: "Video not supported" })] })), C("div", q({ className: hh, onClick: function() {
8093
8140
  return c(!i);
8094
- } }, { children: E(mh, { type: i ? "off" : "on" }) })), a && E("div", q({ className: ph }, { children: E("div", { className: vh }) }))] });
8141
+ } }, { children: C(mh, { type: i ? "off" : "on" }) })), a && C("div", q({ className: ph }, { children: C("div", { className: vh }) }))] });
8095
8142
  }
8096
8143
  (Dn = qe == null ? void 0 : qe.localStorage) === null || Dn === void 0 || Dn.setItem(or, "true");
8097
8144
  var yh = "CustomComponents-styles_component__w87Wx";
8098
8145
  function Sh(e) {
8099
- return E("div", q({ className: yh }, { children: E(e.story.component, { pause: e.onPause, resume: e.onResume, story: e.story, isPaused: e.isPaused }) }));
8146
+ return C("div", q({ className: yh }, { children: C(e.story.component, { pause: e.onPause, resume: e.onResume, story: e.story, isPaused: e.isPaused }) }));
8100
8147
  }
8101
8148
  var wh = "SeeMore-styles_seeMoreWrapper__kwjif", bh = "SeeMore-styles_defaultSeeMore__-B1QW";
8102
- function Th(e) {
8103
- return e.story.seeMore ? E("button", q({ type: "button", onClick: function() {
8149
+ function xh(e) {
8150
+ return e.story.seeMore ? C("button", q({ type: "button", onClick: function() {
8104
8151
  e.onSeeMoreClick();
8105
8152
  }, className: wh }, { children: function() {
8106
8153
  var t = e.story.seeMore, n = typeof t;
8107
8154
  if (["string", "boolean"].includes(n)) {
8108
8155
  var r = n === "string" ? t : "See More";
8109
- return U("div", q({ className: bh }, { children: [E("span", { children: "^" }), E("p", { children: r })] }));
8156
+ return U("div", q({ className: bh }, { children: [C("span", { children: "^" }), C("p", { children: r })] }));
8110
8157
  }
8111
- return n === "function" ? E(e.story.seeMore, {}) : e.story.seeMore;
8158
+ return n === "function" ? C(e.story.seeMore, {}) : e.story.seeMore;
8112
8159
  }() })) : null;
8113
8160
  }
8114
- var xh = "SeeMoreComponent-styles_seeMoreComponentWrapper__0T6Ap", Ph = "SeeMoreComponent-styles_closeIcon__LMm3b";
8161
+ var Th = "SeeMoreComponent-styles_seeMoreComponentWrapper__0T6Ap", Ph = "SeeMoreComponent-styles_closeIcon__LMm3b";
8115
8162
  function Eh(e) {
8116
- return e.story.seeMore && e.story.seeMoreComponent ? U("div", q({ className: xh }, { children: [E("button", q({ className: Ph, onClick: e.onClose }, { children: "✕" })), typeof e.story.seeMoreComponent == "function" ? E(e.story.seeMoreComponent, {}) : e.story.seeMoreComponent] })) : null;
8163
+ return e.story.seeMore && e.story.seeMoreComponent ? U("div", q({ className: Th }, { children: [C("button", q({ className: Ph, onClick: e.onClose }, { children: "✕" })), typeof e.story.seeMoreComponent == "function" ? C(e.story.seeMoreComponent, {}) : e.story.seeMoreComponent] })) : null;
8117
8164
  }
8118
8165
  function Ch(e) {
8119
8166
  var t = Z(!1), n = t[0], r = t[1], i = cn().classNames;
8120
8167
  return F(function() {
8121
8168
  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(Th, { onSeeMoreClick: function() {
8169
+ }, [e.story]), U("div", q({ className: "".concat(lh, " ").concat((i == null ? void 0 : i.storyContainer) || "") }, { children: [e.story.type === On.IMAGE ? C(dh, q({}, e)) : e.story.type === On.VIDEO ? C(gh, q({}, e)) : e.story.type === On.COMPONENT ? C(Sh, q({}, e)) : null, e.story.header && C("div", q({ className: uh }, { children: typeof e.story.header == "function" ? C(e.story.header, {}) : e.story.header })), C(xh, { onSeeMoreClick: function() {
8123
8170
  var o, s;
8124
8171
  e.onPause(), r(!0), (s = (o = e.story).onSeeMoreClick) === null || s === void 0 || s.call(o, e.story.index);
8125
- }, story: e.story }), n && E(Eh, { story: e.story, onClose: function() {
8172
+ }, story: e.story }), n && C(Eh, { story: e.story, onClose: function() {
8126
8173
  e.onResume(), r(!1);
8127
8174
  } })] }));
8128
8175
  }
@@ -8133,13 +8180,13 @@ function ao(e) {
8133
8180
  function Mh(e) {
8134
8181
  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
8182
  } : p, g = e.currentIndex, m = g === void 0 ? 0 : g, y = e.defaultDuration, S = y === void 0 ? 1e4 : y, b = e.onAllStoriesEnd, w = b === void 0 ? function() {
8136
- } : b, x = e.onStoriesStart, M = x === void 0 ? function() {
8137
- } : x, _ = e.classNames, T = _ === void 0 ? {} : _, P = e.pauseStoryWhenInActiveWindow, A = P === void 0 || P, I = mt(function() {
8183
+ } : b, _ = e.onStoriesStart, T = _ === void 0 ? function() {
8184
+ } : _, E = e.classNames, x = E === void 0 ? {} : E, P = e.pauseStoryWhenInActiveWindow, A = P === void 0 || P, I = mt(function() {
8138
8185
  return function(z, ne) {
8139
8186
  var he = 0;
8140
8187
  return z.map(function(we, ca) {
8141
- var Dr = we.duration || ne, xt = Dr + ao();
8142
- return xt === he && (xt = Dr + ao(6)), he = xt, q(q({}, we), { index: ca, calculatedDuration: xt });
8188
+ var Dr = we.duration || ne, Tt = Dr + ao();
8189
+ return Tt === he && (Tt = Dr + ao(6)), he = Tt, q(q({}, we), { index: ca, calculatedDuration: Tt });
8143
8190
  });
8144
8191
  }(u, S);
8145
8192
  }, [u, S]), 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);
@@ -8157,8 +8204,8 @@ function Mh(e) {
8157
8204
  k(!1);
8158
8205
  }
8159
8206
  F(function() {
8160
- ce.current || (ce.current = !0, M());
8161
- }, [M]), F(function() {
8207
+ ce.current || (ce.current = !0, T());
8208
+ }, [T]), F(function() {
8162
8209
  var z = I[m];
8163
8210
  z && j(z);
8164
8211
  }, [m, u]), F(function() {
@@ -8201,8 +8248,8 @@ function Mh(e) {
8201
8248
  }(function(z) {
8202
8249
  A && k(!z);
8203
8250
  });
8204
- var O = { stories: I, width: d, height: v, defaultDuration: S, isPaused: H, classNames: T };
8205
- 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() {
8251
+ var O = { stories: I, width: d, height: v, defaultDuration: S, isPaused: H, classNames: x };
8252
+ return N ? C(ua.Provider, q({ value: O }, { children: U("div", q({ className: "".concat(_h, " ").concat(x.main || ""), style: { width: d, height: v } }, { children: [C(ah, { activeStoryIndex: N.index, isPaused: H }), C(Ch, { onPause: $, onResume: V, story: N, isPaused: H }, N.index), C(nh, { onNextClick: Q, onPrevClick: function() {
8206
8253
  (N == null ? void 0 : N.index) !== 0 && j(function(z) {
8207
8254
  if (!z) return I[0];
8208
8255
  var ne = (z == null ? void 0 : z.index) - 1;
@@ -8224,7 +8271,7 @@ const Ah = ({
8224
8271
  transition: { type: "spring", stiffness: 300, damping: 30 }
8225
8272
  });
8226
8273
  };
8227
- return /* @__PURE__ */ E(
8274
+ return /* @__PURE__ */ C(
8228
8275
  oa.div,
8229
8276
  {
8230
8277
  ref: r,
@@ -8262,7 +8309,7 @@ const Ah = ({
8262
8309
  }, f = () => {
8263
8310
  n && n(), s && d();
8264
8311
  };
8265
- if ((e == null ? void 0 : e.length) == 0) return /* @__PURE__ */ E(jt, {});
8312
+ if ((e == null ? void 0 : e.length) == 0) return /* @__PURE__ */ C(jt, {});
8266
8313
  const v = o ? ({ children: p }) => p : Ah;
8267
8314
  return /* @__PURE__ */ U(
8268
8315
  "div",
@@ -8271,10 +8318,10 @@ const Ah = ({
8271
8318
  [Me.inline]: o
8272
8319
  }),
8273
8320
  children: [
8274
- /* @__PURE__ */ E("div", { className: Me.Overlay, onClick: r }),
8275
- /* @__PURE__ */ E("div", { className: Me.StoryPlayer__Wrap, children: /* @__PURE__ */ U(v, { onClose: a, children: [
8276
- /* @__PURE__ */ E("div", { className: Me.CloseIcon, onClick: a, children: /* @__PURE__ */ E(aa, {}) }),
8277
- /* @__PURE__ */ E(
8321
+ /* @__PURE__ */ C("div", { className: Me.Overlay, onClick: r }),
8322
+ /* @__PURE__ */ C("div", { className: Me.StoryPlayer__Wrap, children: /* @__PURE__ */ U(v, { onClose: a, children: [
8323
+ /* @__PURE__ */ C("div", { className: Me.CloseIcon, onClick: a, children: /* @__PURE__ */ C(aa, {}) }),
8324
+ /* @__PURE__ */ C(
8278
8325
  Mh,
8279
8326
  {
8280
8327
  onStoryChange: i,