@maycolem/stories 9.0.0 → 11.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
@@ -199,14 +199,14 @@ const Tr = (t) => typeof t == "object" && t != null && t.nodeType === 1, wr = (t
199
199
  if (typeof document > "u") return [];
200
200
  const { scrollMode: i, block: s, inline: u, boundary: l, skipOverflowHiddenElements: c } = e, f = typeof l == "function" ? l : (_) => _ !== l;
201
201
  if (!Tr(t)) throw new TypeError("Invalid target");
202
- const d = document.scrollingElement || document.documentElement, v = [];
203
- let p = t;
204
- for (; Tr(p) && f(p); ) {
205
- if (p = cs(p), p === d) {
206
- v.push(p);
202
+ const d = document.scrollingElement || document.documentElement, p = [];
203
+ let v = t;
204
+ for (; Tr(v) && f(v); ) {
205
+ if (v = cs(v), v === d) {
206
+ p.push(v);
207
207
  break;
208
208
  }
209
- p != null && p === document.body && fn(p) && !fn(document.documentElement) || p != null && fn(p, c) && v.push(p);
209
+ v != null && v === document.body && fn(v) && !fn(document.documentElement) || v != null && fn(v, c) && p.push(v);
210
210
  }
211
211
  const h = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, g = (a = (o = window.visualViewport) == null ? void 0 : o.height) != null ? a : innerHeight, { scrollX: m, scrollY: b } = window, { height: y, width: P, top: w, right: E, bottom: R, left: j } = t.getBoundingClientRect(), { top: M, right: k, bottom: rt, left: q } = ((_) => {
212
212
  const I = window.getComputedStyle(_);
@@ -214,8 +214,8 @@ const Tr = (t) => typeof t == "object" && t != null && t.nodeType === 1, wr = (t
214
214
  })(t);
215
215
  let H = s === "start" || s === "nearest" ? w - M : s === "end" ? R + rt : w + y / 2 - M + rt, O = u === "center" ? j + P / 2 - q + k : u === "end" ? E + k : j - q;
216
216
  const K = [];
217
- for (let _ = 0; _ < v.length; _++) {
218
- const I = v[_], { height: it, width: at, top: ut, right: W, bottom: J, left: D } = I.getBoundingClientRect();
217
+ for (let _ = 0; _ < p.length; _++) {
218
+ const I = p[_], { height: it, width: at, top: ut, right: W, bottom: J, left: D } = I.getBoundingClientRect();
219
219
  if (i === "if-needed" && w >= 0 && j >= 0 && R <= g && E <= h && w >= ut && R <= J && j >= D && E <= W) return K;
220
220
  const T = getComputedStyle(I), V = parseInt(T.borderLeftWidth, 10), N = parseInt(T.borderTopWidth, 10), L = parseInt(T.borderRightWidth, 10), B = parseInt(T.borderBottomWidth, 10);
221
221
  let G = 0, nt = 0;
@@ -259,9 +259,9 @@ function Zo(t) {
259
259
  function fs(t, e, n) {
260
260
  let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 600, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : (c) => 1 + --c * c * c * c * c, a = arguments.length > 5 ? arguments[5] : void 0, i = arguments.length > 6 ? arguments[6] : void 0;
261
261
  const s = t, u = t.scrollLeft, l = t.scrollTop;
262
- Zo({ scrollable: s, method: (c, f, d, v) => {
263
- const p = Math.ceil(c), h = Math.ceil(f);
264
- t.scrollLeft = p, t.scrollTop = h, i == null || i({ target: t, elapsed: d, value: v, left: p, top: h });
262
+ Zo({ scrollable: s, method: (c, f, d, p) => {
263
+ const v = Math.ceil(c), h = Math.ceil(f);
264
+ t.scrollLeft = v, t.scrollTop = h, i == null || i({ target: t, elapsed: d, value: p, left: v, top: h });
265
265
  }, startTime: Xo(), startX: u, startY: l, x: e, y: n, duration: r, ease: o, cb: a });
266
266
  }
267
267
  const ds = function(t, e) {
@@ -313,9 +313,9 @@ function xs({ items: t, itemsChanged: e, refs: n, options: r }) {
313
313
  const o = C.useRef(), a = C.useCallback((i) => {
314
314
  t.setBatch(function(s, u) {
315
315
  return [...s].map((l) => {
316
- var c, f, d, v;
317
- const p = l.target, h = String((f = (c = p == null ? void 0 : p.dataset) === null || c === void 0 ? void 0 : c.key) !== null && f !== void 0 ? f : pt);
318
- return [h, { index: String((v = (d = p == null ? void 0 : p.dataset) === null || d === void 0 ? void 0 : d.index) !== null && v !== void 0 ? v : pt), key: h, entry: l, visible: l.intersectionRatio >= u.ratio }];
316
+ var c, f, d, p;
317
+ const v = l.target, h = String((f = (c = v == null ? void 0 : v.dataset) === null || c === void 0 ? void 0 : c.key) !== null && f !== void 0 ? f : pt);
318
+ return [h, { index: String((p = (d = v == null ? void 0 : v.dataset) === null || d === void 0 ? void 0 : d.index) !== null && p !== void 0 ? p : pt), key: h, entry: l, visible: l.intersectionRatio >= u.ratio }];
319
319
  });
320
320
  }(i, r));
321
321
  }, [t, r]);
@@ -328,7 +328,7 @@ function xs({ items: t, itemsChanged: e, refs: n, options: r }) {
328
328
  }
329
329
  const Ps = (t) => C.Children.toArray(t).map(Ko).filter(Boolean), Cr = { ratio: 0.9, rootMargin: "5px", threshold: [0.05, 0.5, 0.75, 0.95] }, Ts = { current: {} }, Ae = () => {
330
330
  };
331
- function ws({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, transitionDuration: a = 500, transitionBehavior: i, onInit: s = Ae, onUpdate: u = Ae, onMouseDown: l, onMouseLeave: c, onMouseUp: f, onMouseMove: d, onScroll: v = Ae, onTouchMove: p, onTouchStart: h, onTouchEnd: g, onWheel: m = Ae, options: b = Cr, scrollContainerClassName: y = pt, containerRef: P = ss, itemClassName: w = pt, wrapperClassName: E = pt, apiRef: R = Ts, RTL: j, noPolyfill: M }) {
331
+ function ws({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, transitionDuration: a = 500, transitionBehavior: i, onInit: s = Ae, onUpdate: u = Ae, onMouseDown: l, onMouseLeave: c, onMouseUp: f, onMouseMove: d, onScroll: p = Ae, onTouchMove: v, onTouchStart: h, onTouchEnd: g, onWheel: m = Ae, options: b = Cr, scrollContainerClassName: y = pt, containerRef: P = ss, itemClassName: w = pt, wrapperClassName: E = pt, apiRef: R = Ts, RTL: j, noPolyfill: M }) {
332
332
  const k = Ce(t), rt = Ce(e), q = Ce(r), H = Ce(o), O = C.useRef(null), [K] = C.useState({}), _ = C.useMemo(() => Object.assign(Object.assign(Object.assign({}, Cr), b), { root: O.current }), [b]), I = C.useRef(new ls()).current, it = function(L, B) {
333
333
  const [G, nt] = C.useState(pt), ot = C.useMemo(() => Ps(L), [L]);
334
334
  return C.useEffect(() => {
@@ -382,8 +382,8 @@ function ws({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, tr
382
382
  })({ context: W, onInit: s, onUpdate: u }), C.useEffect(() => J(ut()), [ut]), C.useEffect(() => {
383
383
  An(R) ? R.current = W : R(W);
384
384
  }, [W, R]);
385
- const D = C.useCallback((L) => v(W, L), [v, W]), T = C.useCallback((L) => m(W, L), [m, W]), V = C.useMemo(() => `${ts} ${E}`, [E]), N = C.useMemo(() => `${y}${j ? " rtl" : pt}`, [j, y]);
386
- return C.createElement("div", { className: V, onWheel: T, onMouseDown: l == null ? void 0 : l(W), onMouseLeave: c == null ? void 0 : c(W), onMouseUp: f == null ? void 0 : f(W), onMouseMove: d == null ? void 0 : d(W), onTouchStart: h == null ? void 0 : h(W), onTouchMove: p == null ? void 0 : p(W), onTouchEnd: g == null ? void 0 : g(W) }, C.createElement(Ss.Provider, { value: W }, C.createElement("div", { className: ns }, q), C.createElement("div", { className: es }, C.createElement("div", { className: rs }, k), C.createElement(ys, { className: N, onScroll: D, scrollRef: O, containerRef: P }, C.createElement(gs, { refs: K, itemClassName: w }, n)), C.createElement("div", { className: os }, rt)), C.createElement("div", { className: is }, H)));
385
+ const D = C.useCallback((L) => p(W, L), [p, W]), T = C.useCallback((L) => m(W, L), [m, W]), V = C.useMemo(() => `${ts} ${E}`, [E]), N = C.useMemo(() => `${y}${j ? " rtl" : pt}`, [j, y]);
386
+ return C.createElement("div", { className: V, onWheel: T, onMouseDown: l == null ? void 0 : l(W), onMouseLeave: c == null ? void 0 : c(W), onMouseUp: f == null ? void 0 : f(W), onMouseMove: d == null ? void 0 : d(W), onTouchStart: h == null ? void 0 : h(W), onTouchMove: v == null ? void 0 : v(W), onTouchEnd: g == null ? void 0 : g(W) }, C.createElement(Ss.Provider, { value: W }, C.createElement("div", { className: ns }, q), C.createElement("div", { className: es }, C.createElement("div", { className: rs }, k), C.createElement(ys, { className: N, onScroll: D, scrollRef: O, containerRef: P }, C.createElement(gs, { refs: K, itemClassName: w }, n)), C.createElement("div", { className: os }, rt)), C.createElement("div", { className: is }, H)));
387
387
  }
388
388
  const Vs = "_StoryPlayer_3s15o_1", Es = "_Overlay_3s15o_15", Cs = "_StoryPlayer__Wrap_3s15o_25", As = "_progressContainer_3s15o_37", Rs = "_CloseIcon_3s15o_41", Ms = "_inline_3s15o_57", Is = "_progressBarContainer_3s15o_75", Os = "_progressBar_3s15o_75", Ot = {
389
389
  StoryPlayer: Vs,
@@ -408,19 +408,19 @@ function js(t) {
408
408
  r(), s(!0);
409
409
  }, 200);
410
410
  }
411
- function c(d, v) {
412
- if (v.stopPropagation(), v.preventDefault(), clearTimeout(u.current), i) return o(), void s(!1);
411
+ function c(d, p) {
412
+ if (p.stopPropagation(), p.preventDefault(), clearTimeout(u.current), i) return o(), void s(!1);
413
413
  o(), d != pn.LEFT ? e() : n();
414
414
  }
415
415
  function f(d) {
416
- return { onMouseUp: function(v) {
417
- return c(d, v);
418
- }, onTouchEnd: function(v) {
419
- return c(d, v);
420
- }, onTouchStart: function(v) {
421
- return l(v);
422
- }, onMouseDown: function(v) {
423
- return l(v);
416
+ return { onMouseUp: function(p) {
417
+ return c(d, p);
418
+ }, onTouchEnd: function(p) {
419
+ return c(d, p);
420
+ }, onTouchStart: function(p) {
421
+ return l(p);
422
+ }, onMouseDown: function(p) {
423
+ return l(p);
424
424
  } };
425
425
  }
426
426
  return Z(Go, { children: [S("div", X({ className: Ls }, f(pn.LEFT))), S("div", X({ className: Ns }, f(pn.RIGHT)))] });
@@ -430,24 +430,24 @@ function Je() {
430
430
  }
431
431
  var Ds = "ProgressBar-styles_wrapper__oqUCo", Bs = "ProgressBar-styles_bar__x0O50", Ar = 0, Rr = 0.1;
432
432
  function ks(t) {
433
- var e, n, r, o, a, i = Je(), s = i.defaultDuration, u = i.classNames, l = Q(null), c = Q(null), f = mt(!1), d = f[0], v = f[1];
433
+ var e, n, r, o, a, i = Je(), s = i.defaultDuration, u = i.classNames, l = Q(null), c = Q(null), f = mt(!1), d = f[0], p = f[1];
434
434
  return F(function() {
435
- !t.isPaused && t.isActive && t.isActive ? v(!0) : v(!1);
435
+ !t.isPaused && t.isActive && t.isActive ? p(!0) : p(!1);
436
436
  }, [t.isActive, t.isPaused]), F(function() {
437
- var p;
438
- l.current && (t.hasStoryPassed ? l.current.style.width = "".concat((p = c == null ? void 0 : c.current) === null || p === void 0 ? void 0 : p.offsetWidth, "px") : l.current.style.width = "0px");
439
- }, [t.hasStoryPassed, t.isActive]), e = function(p) {
437
+ var v;
438
+ l.current && (t.hasStoryPassed ? l.current.style.width = "".concat((v = c == null ? void 0 : c.current) === null || v === void 0 ? void 0 : v.offsetWidth, "px") : l.current.style.width = "0px");
439
+ }, [t.hasStoryPassed, t.isActive]), e = function(v) {
440
440
  var h;
441
- l.current && c.current && ((Ar = Number((l.current.style.width || "1px").slice(0, l.current.style.width.length - 2)) || 0) > c.current.offsetWidth ? v(!1) : (Rr = ((h = c == null ? void 0 : c.current) === null || h === void 0 ? void 0 : h.offsetWidth) / ((t.story.duration || s) / p), l.current.style.width = "".concat(Ar + Rr, "px")));
441
+ l.current && c.current && ((Ar = Number((l.current.style.width || "1px").slice(0, l.current.style.width.length - 2)) || 0) > c.current.offsetWidth ? p(!1) : (Rr = ((h = c == null ? void 0 : c.current) === null || h === void 0 ? void 0 : h.offsetWidth) / ((t.story.duration || s) / v), l.current.style.width = "".concat(Ar + Rr, "px")));
442
442
  }, n = d, r = Q(), o = Q(), a = Q(e), F(function() {
443
443
  a.current = e;
444
444
  }, [e]), F(function() {
445
- return n !== !1 ? (r.current = requestAnimationFrame(function p(h) {
445
+ return n !== !1 ? (r.current = requestAnimationFrame(function v(h) {
446
446
  if (o.current != null) {
447
447
  var g = h - o.current;
448
448
  a.current(g);
449
449
  }
450
- o.current = h, r.current = requestAnimationFrame(p);
450
+ o.current = h, r.current = requestAnimationFrame(v);
451
451
  }), function() {
452
452
  cancelAnimationFrame(r.current), r.current = null, o.current = null;
453
453
  }) : function() {
@@ -536,8 +536,8 @@ function Mr(t) {
536
536
  return t === void 0 && (t = 4), Number(Math.random().toFixed(t));
537
537
  }
538
538
  function su(t) {
539
- var e, n, r, o, a, i, s, u = t.stories, l = u === void 0 ? [] : u, c = t.width, f = c === void 0 ? "100%" : c, d = t.height, v = d === void 0 ? "100%" : d, p = t.onStoryChange, h = p === void 0 ? function() {
540
- } : p, g = t.currentIndex, m = g === void 0 ? 0 : g, b = t.defaultDuration, y = b === void 0 ? 1e4 : b, P = t.onAllStoriesEnd, w = P === void 0 ? function() {
539
+ var e, n, r, o, a, i, s, u = t.stories, l = u === void 0 ? [] : u, c = t.width, f = c === void 0 ? "100%" : c, d = t.height, p = d === void 0 ? "100%" : d, v = t.onStoryChange, h = v === void 0 ? function() {
540
+ } : v, g = t.currentIndex, m = g === void 0 ? 0 : g, b = t.defaultDuration, y = b === void 0 ? 1e4 : b, P = t.onAllStoriesEnd, w = P === void 0 ? function() {
541
541
  } : P, E = t.onStoriesStart, R = E === void 0 ? function() {
542
542
  } : E, j = t.classNames, M = j === void 0 ? {} : j, k = t.pauseStoryWhenInActiveWindow, rt = k === void 0 || k, q = Ke(function() {
543
543
  return function(N, L) {
@@ -606,8 +606,8 @@ function su(t) {
606
606
  }(function(N) {
607
607
  rt && at(!N);
608
608
  });
609
- var V = { stories: q, width: f, height: v, defaultDuration: y, isPaused: it, classNames: M };
610
- return O ? S(Jo.Provider, X({ value: V }, { children: Z("div", X({ className: "".concat(au, " ").concat(M.main || ""), style: { width: f, height: v } }, { children: [S(Hs, { activeStoryIndex: O.index, isPaused: it }), S(iu, { onPause: D, onResume: T, story: O, isPaused: it }, O.index), S(js, { onNextClick: J, onPrevClick: function() {
609
+ var V = { stories: q, width: f, height: p, defaultDuration: y, isPaused: it, classNames: M };
610
+ return O ? S(Jo.Provider, X({ value: V }, { children: Z("div", X({ className: "".concat(au, " ").concat(M.main || ""), style: { width: f, height: p } }, { children: [S(Hs, { activeStoryIndex: O.index, isPaused: it }), S(iu, { onPause: D, onResume: T, story: O, isPaused: it }, O.index), S(js, { onNextClick: J, onPrevClick: function() {
611
611
  (O == null ? void 0 : O.index) !== 0 && K(function(N) {
612
612
  if (!N) return q[0];
613
613
  var L = (N == null ? void 0 : N.index) - 1;
@@ -922,12 +922,12 @@ function Vu(t) {
922
922
  function s(u, l) {
923
923
  var c = Eu(u);
924
924
  u = x(x({}, u), { layoutId: c });
925
- var f = st(Jn), d = null, v = bu(u), p = f.isStatic ? void 0 : Pu(), h = a(u, f.isStatic);
926
- return !f.isStatic && $t && (v.visualElement = hu(i, h, x(x({}, f), u), n), Tu(p, u, v.visualElement, r || pe.projectionNodeConstructor), d = cu(u, v.visualElement, e)), Cn.createElement(
925
+ var f = st(Jn), d = null, p = bu(u), v = f.isStatic ? void 0 : Pu(), h = a(u, f.isStatic);
926
+ return !f.isStatic && $t && (p.visualElement = hu(i, h, x(x({}, f), u), n), Tu(v, u, p.visualElement, r || pe.projectionNodeConstructor), d = cu(u, p.visualElement, e)), Cn.createElement(
927
927
  wu,
928
- { visualElement: v.visualElement, props: x(x({}, f), u) },
928
+ { visualElement: p.visualElement, props: x(x({}, f), u) },
929
929
  d,
930
- Cn.createElement(Qe.Provider, { value: v }, o(i, u, p, mu(h, v.visualElement, l), h, f.isStatic, v.visualElement))
930
+ Cn.createElement(Qe.Provider, { value: p }, o(i, u, v, mu(h, p.visualElement, l), h, f.isStatic, p.visualElement))
931
931
  );
932
932
  }
933
933
  return Oa(s);
@@ -1037,9 +1037,9 @@ var Rt = function(t) {
1037
1037
  function ju(t, e, n, r) {
1038
1038
  var o = t.transform, a = t.transformKeys, i = e.enableHardwareAcceleration, s = i === void 0 ? !0 : i, u = e.allowTransformNone, l = u === void 0 ? !0 : u, c = "";
1039
1039
  a.sort(Iu);
1040
- for (var f = !1, d = a.length, v = 0; v < d; v++) {
1041
- var p = a[v];
1042
- c += "".concat(Nu[p] || p, "(").concat(o[p], ") "), p === "z" && (f = !0);
1040
+ for (var f = !1, d = a.length, p = 0; p < d; p++) {
1041
+ var v = a[p];
1042
+ c += "".concat(Nu[v] || v, "(").concat(o[v], ") "), v === "z" && (f = !0);
1043
1043
  }
1044
1044
  return !f && s ? c += "translateZ(0)" : c = c.trim(), r ? c = r(o, n ? "" : c) : l && n && (c = "none"), c;
1045
1045
  }
@@ -1218,18 +1218,18 @@ function $n(t, e, n, r) {
1218
1218
  var o, a = t.style, i = t.vars, s = t.transform, u = t.transformKeys, l = t.transformOrigin;
1219
1219
  u.length = 0;
1220
1220
  var c = !1, f = !1, d = !0;
1221
- for (var v in e) {
1222
- var p = e[v];
1223
- if (li(v)) {
1224
- i[v] = p;
1221
+ for (var p in e) {
1222
+ var v = e[p];
1223
+ if (li(p)) {
1224
+ i[p] = v;
1225
1225
  continue;
1226
1226
  }
1227
- var h = gi[v], g = Bu(p, h);
1228
- if (Pe(v)) {
1229
- if (c = !0, s[v] = g, u.push(v), !d)
1227
+ var h = gi[p], g = Bu(v, h);
1228
+ if (Pe(p)) {
1229
+ if (c = !0, s[p] = g, u.push(p), !d)
1230
1230
  continue;
1231
- p !== ((o = h.default) !== null && o !== void 0 ? o : 0) && (d = !1);
1232
- } else si(v) ? (l[v] = g, f = !0) : a[v] = g;
1231
+ v !== ((o = h.default) !== null && o !== void 0 ? o : 0) && (d = !1);
1232
+ } else si(p) ? (l[p] = g, f = !0) : a[p] = g;
1233
1233
  }
1234
1234
  c ? a.transform = ju(t, n, d, r) : r ? a.transform = r({}, "") : !e.transform && a.transform && (a.transform = "none"), f && (a.transformOrigin = Du(l));
1235
1235
  }
@@ -1362,10 +1362,10 @@ function rl(t, e, n, r, o) {
1362
1362
  t[a.array] = "".concat(i, " ").concat(s);
1363
1363
  }
1364
1364
  function er(t, e, n, r) {
1365
- var o = e.attrX, a = e.attrY, i = e.originX, s = e.originY, u = e.pathLength, l = e.pathSpacing, c = l === void 0 ? 1 : l, f = e.pathOffset, d = f === void 0 ? 0 : f, v = gt(e, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
1366
- $n(t, v, n, r), t.attrs = t.style, t.style = {};
1367
- var p = t.attrs, h = t.style, g = t.dimensions;
1368
- p.transform && (g && (h.transform = p.transform), delete p.transform), g && (i !== void 0 || s !== void 0 || h.transform) && (h.transformOrigin = el(g, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), o !== void 0 && (p.x = o), a !== void 0 && (p.y = a), u !== void 0 && rl(p, u, c, d);
1365
+ var o = e.attrX, a = e.attrY, i = e.originX, s = e.originY, u = e.pathLength, l = e.pathSpacing, c = l === void 0 ? 1 : l, f = e.pathOffset, d = f === void 0 ? 0 : f, p = gt(e, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
1366
+ $n(t, p, n, r), t.attrs = t.style, t.style = {};
1367
+ var v = t.attrs, h = t.style, g = t.dimensions;
1368
+ v.transform && (g && (h.transform = v.transform), delete v.transform), g && (i !== void 0 || s !== void 0 || h.transform) && (h.transformOrigin = el(g, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), o !== void 0 && (v.x = o), a !== void 0 && (v.y = a), u !== void 0 && rl(v, u, c, d);
1369
1369
  }
1370
1370
  var bi = function() {
1371
1371
  return x(x({}, tr()), { attrs: {} });
@@ -1477,10 +1477,10 @@ function ll(t, e, n, r) {
1477
1477
  o[s] = Be(i[s]);
1478
1478
  var u = t.initial, l = t.animate, c = tn(t), f = oi(t);
1479
1479
  e && f && !c && t.inherit !== !1 && (u ?? (u = e.initial), l ?? (l = e.animate));
1480
- var d = a || u === !1, v = d ? l : u;
1481
- if (v && typeof v != "boolean" && !rr(v)) {
1482
- var p = Array.isArray(v) ? v : [v];
1483
- p.forEach(function(h) {
1480
+ var d = a || u === !1, p = d ? l : u;
1481
+ if (p && typeof p != "boolean" && !rr(p)) {
1482
+ var v = Array.isArray(p) ? p : [p];
1483
+ v.forEach(function(h) {
1484
1484
  var g = ri(t, h);
1485
1485
  if (g) {
1486
1486
  var m = g.transitionEnd;
@@ -1679,11 +1679,11 @@ function Cl({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1
1679
1679
  be(t <= qr * 1e3, "Spring duration must be 10 seconds or less");
1680
1680
  let i = 1 - e;
1681
1681
  i = Ge(Vl, El, i), t = Ge(wl, qr, t / 1e3), i < 1 ? (o = (l) => {
1682
- const c = l * i, f = c * t, d = c - n, v = Bn(l, i), p = Math.exp(-f);
1683
- return Wr - d / v * p;
1682
+ const c = l * i, f = c * t, d = c - n, p = Bn(l, i), v = Math.exp(-f);
1683
+ return Wr - d / p * v;
1684
1684
  }, a = (l) => {
1685
- const f = l * i * t, d = f * n + n, v = Math.pow(i, 2) * Math.pow(l, 2) * t, p = Math.exp(-f), h = Bn(Math.pow(l, 2), i);
1686
- return (-o(l) + Wr > 0 ? -1 : 1) * ((d - v) * p) / h;
1685
+ const f = l * i * t, d = f * n + n, p = Math.pow(i, 2) * Math.pow(l, 2) * t, v = Math.exp(-f), h = Bn(Math.pow(l, 2), i);
1686
+ return (-o(l) + Wr > 0 ? -1 : 1) * ((d - p) * v) / h;
1687
1687
  }) : (o = (l) => {
1688
1688
  const c = Math.exp(-l * t), f = (l - n) * t + 1;
1689
1689
  return -1e-3 + c * f;
@@ -1732,23 +1732,23 @@ function Ol(t) {
1732
1732
  function ir(t) {
1733
1733
  var { from: e = 0, to: n = 1, restSpeed: r = 2, restDelta: o } = t, a = gt(t, ["from", "to", "restSpeed", "restDelta"]);
1734
1734
  const i = { done: !1, value: e };
1735
- let { stiffness: s, damping: u, mass: l, velocity: c, duration: f, isResolvedFromDuration: d } = Ol(a), v = zr, p = zr;
1735
+ let { stiffness: s, damping: u, mass: l, velocity: c, duration: f, isResolvedFromDuration: d } = Ol(a), p = zr, v = zr;
1736
1736
  function h() {
1737
1737
  const g = c ? -(c / 1e3) : 0, m = n - e, b = u / (2 * Math.sqrt(s * l)), y = Math.sqrt(s / l) / 1e3;
1738
1738
  if (o === void 0 && (o = Math.min(Math.abs(n - e) / 100, 0.4)), b < 1) {
1739
1739
  const P = Bn(y, b);
1740
- v = (w) => {
1740
+ p = (w) => {
1741
1741
  const E = Math.exp(-b * y * w);
1742
1742
  return n - E * ((g + b * y * m) / P * Math.sin(P * w) + m * Math.cos(P * w));
1743
- }, p = (w) => {
1743
+ }, v = (w) => {
1744
1744
  const E = Math.exp(-b * y * w);
1745
1745
  return b * y * E * (Math.sin(P * w) * (g + b * y * m) / P + m * Math.cos(P * w)) - E * (Math.cos(P * w) * (g + b * y * m) - P * m * Math.sin(P * w));
1746
1746
  };
1747
1747
  } else if (b === 1)
1748
- v = (P) => n - Math.exp(-y * P) * (m + (g + y * m) * P);
1748
+ p = (P) => n - Math.exp(-y * P) * (m + (g + y * m) * P);
1749
1749
  else {
1750
1750
  const P = y * Math.sqrt(b * b - 1);
1751
- v = (w) => {
1751
+ p = (w) => {
1752
1752
  const E = Math.exp(-b * y * w), R = Math.min(P * w, 300);
1753
1753
  return n - E * ((g + b * y * m) * Math.sinh(R) + P * m * Math.cosh(R)) / P;
1754
1754
  };
@@ -1756,11 +1756,11 @@ function ir(t) {
1756
1756
  }
1757
1757
  return h(), {
1758
1758
  next: (g) => {
1759
- const m = v(g);
1759
+ const m = p(g);
1760
1760
  if (d)
1761
1761
  i.done = g >= f;
1762
1762
  else {
1763
- const b = p(g) * 1e3, y = Math.abs(b) <= r, P = Math.abs(n - m) <= o;
1763
+ const b = v(g) * 1e3, y = Math.abs(b) <= r, P = Math.abs(n - m) <= o;
1764
1764
  i.done = y && P;
1765
1765
  }
1766
1766
  return i.value = i.done ? n : m, i;
@@ -2004,7 +2004,7 @@ const hc = (t) => {
2004
2004
  };
2005
2005
  };
2006
2006
  function Ji(t) {
2007
- var e, n, { from: r, autoplay: o = !0, driver: a = hc, elapsed: i = 0, repeat: s = 0, repeatType: u = "loop", repeatDelay: l = 0, onPlay: c, onStop: f, onComplete: d, onRepeat: v, onUpdate: p } = t, h = gt(t, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
2007
+ var e, n, { from: r, autoplay: o = !0, driver: a = hc, elapsed: i = 0, repeat: s = 0, repeatType: u = "loop", repeatDelay: l = 0, onPlay: c, onStop: f, onComplete: d, onRepeat: p, onUpdate: v } = t, h = gt(t, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
2008
2008
  let { to: g } = h, m, b = 0, y = h.duration, P, w = !1, E = !0, R;
2009
2009
  const j = sc(h);
2010
2010
  !((n = (e = j).needsInterpolation) === null || n === void 0) && n.call(e, r, g) && (R = Wi([0, 100], [r, g], {
@@ -2012,7 +2012,7 @@ function Ji(t) {
2012
2012
  }), r = 0, g = 100);
2013
2013
  const M = j(Object.assign(Object.assign({}, h), { from: r, to: g }));
2014
2014
  function k() {
2015
- b++, u === "reverse" ? (E = b % 2 === 0, i = vc(i, y, l, E)) : (i = Ki(i, y, l), u === "mirror" && M.flipTarget()), w = !1, v && v();
2015
+ b++, u === "reverse" ? (E = b % 2 === 0, i = vc(i, y, l, E)) : (i = Ki(i, y, l), u === "mirror" && M.flipTarget()), w = !1, p && p();
2016
2016
  }
2017
2017
  function rt() {
2018
2018
  m.stop(), d && d();
@@ -2022,7 +2022,7 @@ function Ji(t) {
2022
2022
  const K = M.next(Math.max(0, i));
2023
2023
  P = K.value, R && (P = R(P)), w = E ? K.done : i <= 0;
2024
2024
  }
2025
- p == null || p(P), w && (b === 0 && (y ?? (y = i)), b < s ? pc(i, y, l, E) && k() : rt());
2025
+ v == null || v(P), w && (b === 0 && (y ?? (y = i)), b < s ? pc(i, y, l, E) && k() : rt());
2026
2026
  }
2027
2027
  function H() {
2028
2028
  c == null || c(), m = a(q), m.start();
@@ -2036,8 +2036,8 @@ function Ji(t) {
2036
2036
  function Qi(t, e) {
2037
2037
  return e ? t * (1e3 / e) : 0;
2038
2038
  }
2039
- function mc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, timeConstant: a = 750, bounceStiffness: i = 500, bounceDamping: s = 10, restDelta: u = 1, modifyTarget: l, driver: c, onUpdate: f, onComplete: d, onStop: v }) {
2040
- let p;
2039
+ function mc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, timeConstant: a = 750, bounceStiffness: i = 500, bounceDamping: s = 10, restDelta: u = 1, modifyTarget: l, driver: c, onUpdate: f, onComplete: d, onStop: p }) {
2040
+ let v;
2041
2041
  function h(y) {
2042
2042
  return n !== void 0 && y < n || r !== void 0 && y > r;
2043
2043
  }
@@ -2045,14 +2045,14 @@ function mc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, time
2045
2045
  return n === void 0 ? r : r === void 0 || Math.abs(n - y) < Math.abs(r - y) ? n : r;
2046
2046
  }
2047
2047
  function m(y) {
2048
- p == null || p.stop(), p = Ji(Object.assign(Object.assign({}, y), {
2048
+ v == null || v.stop(), v = Ji(Object.assign(Object.assign({}, y), {
2049
2049
  driver: c,
2050
2050
  onUpdate: (P) => {
2051
2051
  var w;
2052
2052
  f == null || f(P), (w = y.onUpdate) === null || w === void 0 || w.call(y, P);
2053
2053
  },
2054
2054
  onComplete: d,
2055
- onStop: v
2055
+ onStop: p
2056
2056
  }));
2057
2057
  }
2058
2058
  function b(y) {
@@ -2080,7 +2080,7 @@ function mc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, time
2080
2080
  });
2081
2081
  }
2082
2082
  return {
2083
- stop: () => p == null ? void 0 : p.stop()
2083
+ stop: () => v == null ? void 0 : v.stop()
2084
2084
  };
2085
2085
  }
2086
2086
  const Wn = (t) => t.hasOwnProperty("x") && t.hasOwnProperty("y"), Jr = (t) => Wn(t) && t.hasOwnProperty("z"), Me = (t, e) => Math.abs(t - e);
@@ -2131,7 +2131,7 @@ function Tc(t, e, n, r) {
2131
2131
  }
2132
2132
  function wc(t) {
2133
2133
  var e = t.onTap, n = t.onTapStart, r = t.onTapCancel, o = t.whileTap, a = t.visualElement, i = e || n || r || o, s = Q(!1), u = Q(null), l = {
2134
- passive: !(n || e || r || p)
2134
+ passive: !(n || e || r || v)
2135
2135
  };
2136
2136
  function c() {
2137
2137
  var h;
@@ -2144,14 +2144,14 @@ function wc(t) {
2144
2144
  function d(h, g) {
2145
2145
  f() && (ji(a.getInstance(), h.target) ? e == null || e(h, g) : r == null || r(h, g));
2146
2146
  }
2147
- function v(h, g) {
2147
+ function p(h, g) {
2148
2148
  f() && (r == null || r(h, g));
2149
2149
  }
2150
- function p(h, g) {
2150
+ function v(h, g) {
2151
2151
  var m;
2152
- c(), !s.current && (s.current = !0, u.current = nn(Kt(window, "pointerup", d, l), Kt(window, "pointercancel", v, l)), (m = a.animationState) === null || m === void 0 || m.setActive(U.Tap, !0), n == null || n(h, g));
2152
+ c(), !s.current && (s.current = !0, u.current = nn(Kt(window, "pointerup", d, l), Kt(window, "pointercancel", p, l)), (m = a.animationState) === null || m === void 0 || m.setActive(U.Tap, !0), n == null || n(h, g));
2153
2153
  }
2154
- qe(a, "pointerdown", i ? p : void 0, l), Di(c);
2154
+ qe(a, "pointerdown", i ? v : void 0, l), Di(c);
2155
2155
  }
2156
2156
  var Qr = /* @__PURE__ */ new Set();
2157
2157
  function ra(t, e, n) {
@@ -2197,10 +2197,10 @@ function Ic(t, e, n, r) {
2197
2197
  rootMargin: a,
2198
2198
  threshold: typeof s == "number" ? s : Mc[s]
2199
2199
  }, c = function(f) {
2200
- var d, v = f.isIntersecting;
2201
- if (e.isInView !== v && (e.isInView = v, !(u && !v && e.hasEnteredView))) {
2202
- v && (e.hasEnteredView = !0), (d = n.animationState) === null || d === void 0 || d.setActive(U.InView, v);
2203
- var p = n.getProps(), h = v ? p.onViewportEnter : p.onViewportLeave;
2200
+ var d, p = f.isIntersecting;
2201
+ if (e.isInView !== p && (e.isInView = p, !(u && !p && e.hasEnteredView))) {
2202
+ p && (e.hasEnteredView = !0), (d = n.animationState) === null || d === void 0 || d.setActive(U.InView, p);
2203
+ var v = n.getProps(), h = p ? v.onViewportEnter : v.onViewportLeave;
2204
2204
  h == null || h(f);
2205
2205
  }
2206
2206
  };
@@ -2386,21 +2386,21 @@ function Yc(t, e, n, r, o) {
2386
2386
  to: n,
2387
2387
  velocity: e.getVelocity(),
2388
2388
  onComplete: o,
2389
- onUpdate: function(v) {
2390
- return e.set(v);
2389
+ onUpdate: function(p) {
2390
+ return e.set(p);
2391
2391
  }
2392
2392
  };
2393
- return i.type === "inertia" || i.type === "decay" ? mc(x(x({}, d), i)) : Ji(x(x({}, Uc(i, d, t)), { onUpdate: function(v) {
2394
- var p;
2395
- d.onUpdate(v), (p = i.onUpdate) === null || p === void 0 || p.call(i, v);
2396
- }, onComplete: function() {
2393
+ return i.type === "inertia" || i.type === "decay" ? mc(x(x({}, d), i)) : Ji(x(x({}, Uc(i, d, t)), { onUpdate: function(p) {
2397
2394
  var v;
2398
- d.onComplete(), (v = i.onComplete) === null || v === void 0 || v.call(i);
2395
+ d.onUpdate(p), (v = i.onUpdate) === null || v === void 0 || v.call(i, p);
2396
+ }, onComplete: function() {
2397
+ var p;
2398
+ d.onComplete(), (p = i.onComplete) === null || p === void 0 || p.call(i);
2399
2399
  } }));
2400
2400
  }
2401
2401
  function f() {
2402
- var d, v, p = Ei(n);
2403
- return e.set(p), o(), (d = i == null ? void 0 : i.onUpdate) === null || d === void 0 || d.call(i, p), (v = i == null ? void 0 : i.onComplete) === null || v === void 0 || v.call(i), { stop: function() {
2402
+ var d, p, v = Ei(n);
2403
+ return e.set(v), o(), (d = i == null ? void 0 : i.onUpdate) === null || d === void 0 || d.call(i, v), (p = i == null ? void 0 : i.onComplete) === null || p === void 0 || p.call(i), { stop: function() {
2404
2404
  } };
2405
2405
  }
2406
2406
  return !l || !u || i.type === !1 ? f : c;
@@ -2567,8 +2567,8 @@ function ef(t, e) {
2567
2567
  gr(t, e);
2568
2568
  }
2569
2569
  function nf(t, e, n) {
2570
- var r, o, a, i, s = Object.keys(e).filter(function(v) {
2571
- return !t.hasValue(v);
2570
+ var r, o, a, i, s = Object.keys(e).filter(function(p) {
2571
+ return !t.hasValue(p);
2572
2572
  }), u = s.length;
2573
2573
  if (u)
2574
2574
  for (var l = 0; l < u; l++) {
@@ -2615,10 +2615,10 @@ function zn(t, e, n) {
2615
2615
  return la(t, o, n);
2616
2616
  } : function() {
2617
2617
  return Promise.resolve();
2618
- }, u = !((r = t.variantChildren) === null || r === void 0) && r.size ? function(v) {
2619
- v === void 0 && (v = 0);
2620
- var p = i.delayChildren, h = p === void 0 ? 0 : p, g = i.staggerChildren, m = i.staggerDirection;
2621
- return af(t, e, h + v, g, m, n);
2618
+ }, u = !((r = t.variantChildren) === null || r === void 0) && r.size ? function(p) {
2619
+ p === void 0 && (p = 0);
2620
+ var v = i.delayChildren, h = v === void 0 ? 0 : v, g = i.staggerChildren, m = i.staggerDirection;
2621
+ return af(t, e, h + p, g, m, n);
2622
2622
  } : function() {
2623
2623
  return Promise.resolve();
2624
2624
  }, l = i.when;
@@ -2629,19 +2629,19 @@ function zn(t, e, n) {
2629
2629
  return Promise.all([s(), u(n.delay)]);
2630
2630
  }
2631
2631
  function la(t, e, n) {
2632
- var r, o = n === void 0 ? {} : n, a = o.delay, i = a === void 0 ? 0 : a, s = o.transitionOverride, u = o.type, l = t.makeTargetAnimatable(e), c = l.transition, f = c === void 0 ? t.getDefaultTransition() : c, d = l.transitionEnd, v = gt(l, ["transition", "transitionEnd"]);
2632
+ var r, o = n === void 0 ? {} : n, a = o.delay, i = a === void 0 ? 0 : a, s = o.transitionOverride, u = o.type, l = t.makeTargetAnimatable(e), c = l.transition, f = c === void 0 ? t.getDefaultTransition() : c, d = l.transitionEnd, p = gt(l, ["transition", "transitionEnd"]);
2633
2633
  s && (f = s);
2634
- var p = [], h = u && ((r = t.animationState) === null || r === void 0 ? void 0 : r.getState()[u]);
2635
- for (var g in v) {
2636
- var m = t.getValue(g), b = v[g];
2634
+ var v = [], h = u && ((r = t.animationState) === null || r === void 0 ? void 0 : r.getState()[u]);
2635
+ for (var g in p) {
2636
+ var m = t.getValue(g), b = p[g];
2637
2637
  if (!(!m || b === void 0 || h && lf(h, g))) {
2638
2638
  var y = x({ delay: i }, f);
2639
2639
  t.shouldReduceMotion && Pe(g) && (y = x(x({}, y), { type: !1, delay: 0 }));
2640
2640
  var P = pr(g, m, b, y);
2641
- p.push(P);
2641
+ v.push(P);
2642
2642
  }
2643
2643
  }
2644
- return Promise.all(p).then(function() {
2644
+ return Promise.all(v).then(function() {
2645
2645
  d && gr(t, d);
2646
2646
  });
2647
2647
  }
@@ -2692,8 +2692,8 @@ function vf(t) {
2692
2692
  var d = $e(t, f);
2693
2693
  if (d) {
2694
2694
  d.transition;
2695
- var v = d.transitionEnd, p = gt(d, ["transition", "transitionEnd"]);
2696
- c = x(x(x({}, c), p), v);
2695
+ var p = d.transitionEnd, v = gt(d, ["transition", "transitionEnd"]);
2696
+ c = x(x(x({}, c), v), p);
2697
2697
  }
2698
2698
  return c;
2699
2699
  };
@@ -2704,10 +2704,10 @@ function vf(t) {
2704
2704
  e = c(t);
2705
2705
  }
2706
2706
  function u(c, f) {
2707
- for (var d, v = t.getProps(), p = t.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), m = {}, b = 1 / 0, y = function(R) {
2708
- var j = cf[R], M = n[j], k = (d = v[j]) !== null && d !== void 0 ? d : p[j], rt = bt(k), q = j === f ? M.isActive : null;
2707
+ for (var d, p = t.getProps(), v = t.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), m = {}, b = 1 / 0, y = function(R) {
2708
+ var j = cf[R], M = n[j], k = (d = p[j]) !== null && d !== void 0 ? d : v[j], rt = bt(k), q = j === f ? M.isActive : null;
2709
2709
  q === !1 && (b = R);
2710
- var H = k === p[j] && k !== v[j] && rt;
2710
+ var H = k === v[j] && k !== p[j] && rt;
2711
2711
  if (H && o && t.manuallyAnimateOnMount && (H = !1), M.protectedKeys = x({}, m), // If it isn't active and hasn't *just* been set as inactive
2712
2712
  !M.isActive && q === null || // If we didn't and don't have any defined prop for this animation type
2713
2713
  !k && !M.prevProp || // Or if the prop doesn't define an animation
@@ -2740,20 +2740,20 @@ function vf(t) {
2740
2740
  }), h.push({ animation: w });
2741
2741
  }
2742
2742
  var E = !!h.length;
2743
- return o && v.initial === !1 && !t.manuallyAnimateOnMount && (E = !1), o = !1, E ? e(h) : Promise.resolve();
2743
+ return o && p.initial === !1 && !t.manuallyAnimateOnMount && (E = !1), o = !1, E ? e(h) : Promise.resolve();
2744
2744
  }
2745
2745
  function l(c, f, d) {
2746
- var v;
2746
+ var p;
2747
2747
  if (n[c].isActive === f)
2748
2748
  return Promise.resolve();
2749
- (v = t.variantChildren) === null || v === void 0 || v.forEach(function(g) {
2749
+ (p = t.variantChildren) === null || p === void 0 || p.forEach(function(g) {
2750
2750
  var m;
2751
2751
  return (m = g.animationState) === null || m === void 0 ? void 0 : m.setActive(c, f);
2752
2752
  }), n[c].isActive = f;
2753
- var p = u(d, c);
2753
+ var v = u(d, c);
2754
2754
  for (var h in n)
2755
2755
  n[h].protectedKeys = {};
2756
- return p;
2756
+ return v;
2757
2757
  }
2758
2758
  return {
2759
2759
  isAnimated: i,
@@ -2803,23 +2803,23 @@ var mf = {
2803
2803
  var o = this, a = r === void 0 ? {} : r, i = a.transformPagePoint;
2804
2804
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = function() {
2805
2805
  if (o.lastMoveEvent && o.lastMoveEventInfo) {
2806
- var d = Tn(o.lastMoveEventInfo, o.history), v = o.startEvent !== null, p = _i(d.offset, { x: 0, y: 0 }) >= 3;
2807
- if (!(!v && !p)) {
2806
+ var d = Tn(o.lastMoveEventInfo, o.history), p = o.startEvent !== null, v = _i(d.offset, { x: 0, y: 0 }) >= 3;
2807
+ if (!(!p && !v)) {
2808
2808
  var h = d.point, g = Ue().timestamp;
2809
2809
  o.history.push(x(x({}, h), { timestamp: g }));
2810
2810
  var m = o.handlers, b = m.onStart, y = m.onMove;
2811
- v || (b && b(o.lastMoveEvent, d), o.startEvent = o.lastMoveEvent), y && y(o.lastMoveEvent, d);
2811
+ p || (b && b(o.lastMoveEvent, d), o.startEvent = o.lastMoveEvent), y && y(o.lastMoveEvent, d);
2812
2812
  }
2813
2813
  }
2814
- }, this.handlePointerMove = function(d, v) {
2815
- if (o.lastMoveEvent = d, o.lastMoveEventInfo = Pn(v, o.transformPagePoint), Ai(d) && d.buttons === 0) {
2816
- o.handlePointerUp(d, v);
2814
+ }, this.handlePointerMove = function(d, p) {
2815
+ if (o.lastMoveEvent = d, o.lastMoveEventInfo = Pn(p, o.transformPagePoint), Ai(d) && d.buttons === 0) {
2816
+ o.handlePointerUp(d, p);
2817
2817
  return;
2818
2818
  }
2819
2819
  Vt.update(o.updatePoint, !0);
2820
- }, this.handlePointerUp = function(d, v) {
2820
+ }, this.handlePointerUp = function(d, p) {
2821
2821
  o.end();
2822
- var p = o.handlers, h = p.onEnd, g = p.onSessionEnd, m = Tn(Pn(v, o.transformPagePoint), o.history);
2822
+ var v = o.handlers, h = v.onEnd, g = v.onSessionEnd, m = Tn(Pn(p, o.transformPagePoint), o.history);
2823
2823
  o.startEvent && h && h(d, m), g && g(d, m);
2824
2824
  }, !(Ri(e) && e.touches.length > 1)) {
2825
2825
  this.handlers = n, this.transformPagePoint = i;
@@ -3061,7 +3061,7 @@ var Of = /* @__PURE__ */ new WeakMap(), Lf = (
3061
3061
  var s = function(f) {
3062
3062
  r.stopAnimation(), i && r.snapToCursor(or(f, "page").point);
3063
3063
  }, u = function(f, d) {
3064
- var v, p = r.getProps(), h = p.drag, g = p.dragPropagation, m = p.onDragStart;
3064
+ var p, v = r.getProps(), h = v.drag, g = v.dragPropagation, m = v.onDragStart;
3065
3065
  h && !g && (r.openGlobalLock && r.openGlobalLock(), r.openGlobalLock = Li(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), Tt(function(b) {
3066
3066
  var y, P, w = r.getAxisMotionValue(b).get() || 0;
3067
3067
  if (wt.test(w)) {
@@ -3072,10 +3072,10 @@ var Of = /* @__PURE__ */ new WeakMap(), Lf = (
3072
3072
  }
3073
3073
  }
3074
3074
  r.originPoint[b] = w;
3075
- }), m == null || m(f, d), (v = r.visualElement.animationState) === null || v === void 0 || v.setActive(U.Drag, !0));
3075
+ }), m == null || m(f, d), (p = r.visualElement.animationState) === null || p === void 0 || p.setActive(U.Drag, !0));
3076
3076
  }, l = function(f, d) {
3077
- var v = r.getProps(), p = v.dragPropagation, h = v.dragDirectionLock, g = v.onDirectionLock, m = v.onDrag;
3078
- if (!(!p && !r.openGlobalLock)) {
3077
+ var p = r.getProps(), v = p.dragPropagation, h = p.dragDirectionLock, g = p.onDirectionLock, m = p.onDrag;
3078
+ if (!(!v && !r.openGlobalLock)) {
3079
3079
  var b = d.offset;
3080
3080
  if (h && r.currentDirection === null) {
3081
3081
  r.currentDirection = Nf(b), r.currentDirection !== null && (g == null || g(r.currentDirection));
@@ -3134,11 +3134,11 @@ var Of = /* @__PURE__ */ new WeakMap(), Lf = (
3134
3134
  return s;
3135
3135
  }, t.prototype.startAnimation = function(e) {
3136
3136
  var n = this, r = this.getProps(), o = r.drag, a = r.dragMomentum, i = r.dragElastic, s = r.dragTransition, u = r.dragSnapToOrigin, l = r.onDragTransitionEnd, c = this.constraints || {}, f = Tt(function(d) {
3137
- var v;
3137
+ var p;
3138
3138
  if (Le(d, o, n.currentDirection)) {
3139
- var p = (v = c == null ? void 0 : c[d]) !== null && v !== void 0 ? v : {};
3140
- u && (p = { min: 0, max: 0 });
3141
- var h = i ? 200 : 1e6, g = i ? 40 : 1e7, m = x(x({ type: "inertia", velocity: a ? e[d] : 0, bounceStiffness: h, bounceDamping: g, timeConstant: 750, restDelta: 1, restSpeed: 10 }, s), p);
3139
+ var v = (p = c == null ? void 0 : c[d]) !== null && p !== void 0 ? p : {};
3140
+ u && (v = { min: 0, max: 0 });
3141
+ var h = i ? 200 : 1e6, g = i ? 40 : 1e7, m = x(x({ type: "inertia", velocity: a ? e[d] : 0, bounceStiffness: h, bounceDamping: g, timeConstant: 750, restDelta: 1, restSpeed: 10 }, s), v);
3142
3142
  return n.startAxisValueAnimation(d, m);
3143
3143
  }
3144
3144
  });
@@ -3181,8 +3181,8 @@ var Of = /* @__PURE__ */ new WeakMap(), Lf = (
3181
3181
  var u = this.visualElement.getProps().transformTemplate;
3182
3182
  this.visualElement.getInstance().style.transform = u ? u({}, "") : "none", (n = i.root) === null || n === void 0 || n.updateScroll(), i.updateLayout(), this.resolveConstraints(), Tt(function(l) {
3183
3183
  if (Le(l, o, null)) {
3184
- var c = e.getAxisMotionValue(l), f = e.constraints[l], d = f.min, v = f.max;
3185
- c.set($(d, v, s[l]));
3184
+ var c = e.getAxisMotionValue(l), f = e.constraints[l], d = f.min, p = f.max;
3185
+ c.set($(d, p, s[l]));
3186
3186
  }
3187
3187
  });
3188
3188
  }
@@ -3190,8 +3190,8 @@ var Of = /* @__PURE__ */ new WeakMap(), Lf = (
3190
3190
  var e = this, n;
3191
3191
  Of.set(this.visualElement, this);
3192
3192
  var r = this.visualElement.getInstance(), o = Kt(r, "pointerdown", function(l) {
3193
- var c = e.getProps(), f = c.drag, d = c.dragListener, v = d === void 0 ? !0 : d;
3194
- f && v && e.start(l);
3193
+ var c = e.getProps(), f = c.drag, d = c.dragListener, p = d === void 0 ? !0 : d;
3194
+ f && p && e.start(l);
3195
3195
  }), a = function() {
3196
3196
  var l = e.getProps().dragConstraints;
3197
3197
  Xt(l) && (e.constraints = e.resolveRefConstraints());
@@ -3203,15 +3203,15 @@ var Of = /* @__PURE__ */ new WeakMap(), Lf = (
3203
3203
  return i.addEventListener("didUpdate", function(l) {
3204
3204
  var c = l.delta, f = l.hasLayoutChanged;
3205
3205
  e.isDragging && f && (Tt(function(d) {
3206
- var v = e.getAxisMotionValue(d);
3207
- v && (e.originPoint[d] += c[d].translate, v.set(v.get() + c[d].translate));
3206
+ var p = e.getAxisMotionValue(d);
3207
+ p && (e.originPoint[d] += c[d].translate, p.set(p.get() + c[d].translate));
3208
3208
  }), e.visualElement.syncRender());
3209
3209
  }), function() {
3210
3210
  u(), o(), s();
3211
3211
  };
3212
3212
  }, t.prototype.getProps = function() {
3213
- var e = this.visualElement.getProps(), n = e.drag, r = n === void 0 ? !1 : n, o = e.dragDirectionLock, a = o === void 0 ? !1 : o, i = e.dragPropagation, s = i === void 0 ? !1 : i, u = e.dragConstraints, l = u === void 0 ? !1 : u, c = e.dragElastic, f = c === void 0 ? Un : c, d = e.dragMomentum, v = d === void 0 ? !0 : d;
3214
- return x(x({}, e), { drag: r, dragDirectionLock: a, dragPropagation: s, dragConstraints: l, dragElastic: f, dragMomentum: v });
3213
+ var e = this.visualElement.getProps(), n = e.drag, r = n === void 0 ? !1 : n, o = e.dragDirectionLock, a = o === void 0 ? !1 : o, i = e.dragPropagation, s = i === void 0 ? !1 : i, u = e.dragConstraints, l = u === void 0 ? !1 : u, c = e.dragElastic, f = c === void 0 ? Un : c, d = e.dragMomentum, p = d === void 0 ? !0 : d;
3214
+ return x(x({}, e), { drag: r, dragDirectionLock: a, dragPropagation: s, dragConstraints: l, dragElastic: f, dragMomentum: p });
3215
3215
  }, t;
3216
3216
  }()
3217
3217
  );
@@ -3318,15 +3318,15 @@ function Ff(t, e, n) {
3318
3318
  }
3319
3319
  var ma = function(t) {
3320
3320
  var e = t.treeType, n = e === void 0 ? "" : e, r = t.build, o = t.getBaseTarget, a = t.makeTargetAnimatable, i = t.measureViewportBox, s = t.render, u = t.readValueFromInstance, l = t.removeValueFromRenderState, c = t.sortNodePosition, f = t.scrapeMotionValuesFromProps;
3321
- return function(d, v) {
3322
- var p = d.parent, h = d.props, g = d.presenceId, m = d.blockInitialAnimation, b = d.visualState, y = d.shouldReduceMotion;
3323
- v === void 0 && (v = {});
3321
+ return function(d, p) {
3322
+ var v = d.parent, h = d.props, g = d.presenceId, m = d.blockInitialAnimation, b = d.visualState, y = d.shouldReduceMotion;
3323
+ p === void 0 && (p = {});
3324
3324
  var P = !1, w = b.latestValues, E = b.renderState, R, j = kf(), M = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), rt = {}, q = x({}, w), H;
3325
3325
  function O() {
3326
3326
  !R || !P || (K(), s(R, E, h.style, D.projection));
3327
3327
  }
3328
3328
  function K() {
3329
- r(D, E, w, v, h);
3329
+ r(D, E, w, p, h);
3330
3330
  }
3331
3331
  function _() {
3332
3332
  j.notifyUpdate(w);
@@ -3354,8 +3354,8 @@ var ma = function(t) {
3354
3354
  /**
3355
3355
  * The depth of this visual element within the visual element tree.
3356
3356
  */
3357
- depth: p ? p.depth + 1 : 0,
3358
- parent: p,
3357
+ depth: v ? v.depth + 1 : 0,
3358
+ parent: v,
3359
3359
  children: /* @__PURE__ */ new Set(),
3360
3360
  /**
3361
3361
  *
@@ -3383,7 +3383,7 @@ var ma = function(t) {
3383
3383
  *
3384
3384
  * TODO: This might be better replaced with a method isParentMounted
3385
3385
  */
3386
- manuallyAnimateOnMount: !!(p != null && p.isMounted()),
3386
+ manuallyAnimateOnMount: !!(v != null && v.isMounted()),
3387
3387
  /**
3388
3388
  * This can be set by AnimatePresence to force components that mount
3389
3389
  * at the same time as it to mount as if they have initial={false} set.
@@ -3398,9 +3398,9 @@ var ma = function(t) {
3398
3398
  return !!R;
3399
3399
  },
3400
3400
  mount: function(T) {
3401
- P = !0, R = D.current = T, D.projection && D.projection.mount(T), J && p && !W && (H = p == null ? void 0 : p.addVariantChild(D)), M.forEach(function(V, N) {
3401
+ P = !0, R = D.current = T, D.projection && D.projection.mount(T), J && v && !W && (H = v == null ? void 0 : v.addVariantChild(D)), M.forEach(function(V, N) {
3402
3402
  return I(N, V);
3403
- }), p == null || p.children.add(D), D.setProps(h);
3403
+ }), v == null || v.children.add(D), D.setProps(h);
3404
3404
  },
3405
3405
  /**
3406
3406
  *
@@ -3409,7 +3409,7 @@ var ma = function(t) {
3409
3409
  var T;
3410
3410
  (T = D.projection) === null || T === void 0 || T.unmount(), Qt.update(_), Qt.render(O), k.forEach(function(V) {
3411
3411
  return V();
3412
- }), H == null || H(), p == null || p.children.delete(D), j.clearAllListeners(), R = void 0, P = !1;
3412
+ }), H == null || H(), v == null || v.children.delete(D), j.clearAllListeners(), R = void 0, P = !1;
3413
3413
  },
3414
3414
  /**
3415
3415
  * Add a child visual element to our set of children.
@@ -3429,7 +3429,7 @@ var ma = function(t) {
3429
3429
  * this visual element.
3430
3430
  */
3431
3431
  getClosestVariantNode: function() {
3432
- return J ? D : p == null ? void 0 : p.getClosestVariantNode();
3432
+ return J ? D : v == null ? void 0 : v.getClosestVariantNode();
3433
3433
  },
3434
3434
  /**
3435
3435
  * Expose the latest layoutId prop.
@@ -3526,7 +3526,7 @@ var ma = function(t) {
3526
3526
  */
3527
3527
  readValue: function(T) {
3528
3528
  var V;
3529
- return (V = w[T]) !== null && V !== void 0 ? V : u(R, T, v);
3529
+ return (V = w[T]) !== null && V !== void 0 ? V : u(R, T, p);
3530
3530
  },
3531
3531
  /**
3532
3532
  * Set the base target to later animate back to. This is currently
@@ -3599,9 +3599,9 @@ var ma = function(t) {
3599
3599
  */
3600
3600
  getVariantContext: function(T) {
3601
3601
  if (T === void 0 && (T = !1), T)
3602
- return p == null ? void 0 : p.getVariantContext();
3602
+ return v == null ? void 0 : v.getVariantContext();
3603
3603
  if (!W) {
3604
- var V = (p == null ? void 0 : p.getVariantContext()) || {};
3604
+ var V = (v == null ? void 0 : v.getVariantContext()) || {};
3605
3605
  return h.initial !== void 0 && (V.initial = h.initial), V;
3606
3606
  }
3607
3607
  for (var N = {}, L = 0; L < Hf; L++) {
@@ -3743,25 +3743,25 @@ var To = {
3743
3743
  if (o.forEach(function(c) {
3744
3744
  var f = t.getValue(c);
3745
3745
  if (t.hasValue(c)) {
3746
- var d = n[c], v = re(d), p = e[c], h;
3747
- if (ge(p)) {
3748
- var g = p.length, m = p[0] === null ? 1 : 0;
3749
- d = p[m], v = re(d);
3746
+ var d = n[c], p = re(d), v = e[c], h;
3747
+ if (ge(v)) {
3748
+ var g = v.length, m = v[0] === null ? 1 : 0;
3749
+ d = v[m], p = re(d);
3750
3750
  for (var b = m; b < g; b++)
3751
- h ? vt(re(p[b]) === h, "All keyframes must be of the same type") : (h = re(p[b]), vt(h === v || je(v) && je(h), "Keyframes must be of the same dimension as the current value"));
3751
+ h ? vt(re(v[b]) === h, "All keyframes must be of the same type") : (h = re(v[b]), vt(h === p || je(p) && je(h), "Keyframes must be of the same dimension as the current value"));
3752
3752
  } else
3753
- h = re(p);
3754
- if (v !== h)
3755
- if (je(v) && je(h)) {
3753
+ h = re(v);
3754
+ if (p !== h)
3755
+ if (je(p) && je(h)) {
3756
3756
  var y = f.get();
3757
- typeof y == "string" && f.set(parseFloat(y)), typeof p == "string" ? e[c] = parseFloat(p) : Array.isArray(p) && h === A && (e[c] = p.map(parseFloat));
3758
- } else v != null && v.transform && (h != null && h.transform) && (d === 0 || p === 0) ? d === 0 ? f.set(h.transform(d)) : e[c] = v.transform(p) : (i || (a = Zf(t), i = !0), s.push(c), r[c] = r[c] !== void 0 ? r[c] : e[c], ba(f, p));
3757
+ typeof y == "string" && f.set(parseFloat(y)), typeof v == "string" ? e[c] = parseFloat(v) : Array.isArray(v) && h === A && (e[c] = v.map(parseFloat));
3758
+ } else p != null && p.transform && (h != null && h.transform) && (d === 0 || v === 0) ? d === 0 ? f.set(h.transform(d)) : e[c] = p.transform(v) : (i || (a = Zf(t), i = !0), s.push(c), r[c] = r[c] !== void 0 ? r[c] : e[c], ba(f, v));
3759
3759
  }
3760
3760
  }), s.length) {
3761
3761
  var u = s.indexOf("height") >= 0 ? window.pageYOffset : null, l = Kf(e, t, s);
3762
3762
  return a.length && a.forEach(function(c) {
3763
- var f = et(c, 2), d = f[0], v = f[1];
3764
- t.getValue(d).set(v);
3763
+ var f = et(c, 2), d = f[0], p = f[1];
3764
+ t.getValue(d).set(p);
3765
3765
  }), t.syncRender(), u !== null && window.scrollTo({ top: u }), { target: l, transitionEnd: r };
3766
3766
  } else
3767
3767
  return { target: e, transitionEnd: r };
@@ -3874,15 +3874,15 @@ var oe = {
3874
3874
  s[0 + l] /= c, s[1 + l] /= f;
3875
3875
  var d = $(c, f, 0.5);
3876
3876
  typeof s[2 + l] == "number" && (s[2 + l] /= d), typeof s[3 + l] == "number" && (s[3 + l] /= d);
3877
- var v = u(s);
3877
+ var p = u(s);
3878
3878
  if (a) {
3879
- var p = 0;
3880
- v = v.replace(Vo, function() {
3881
- var h = i[p];
3882
- return p++, h;
3879
+ var v = 0;
3880
+ p = p.replace(Vo, function() {
3881
+ var h = i[v];
3882
+ return v++, h;
3883
3883
  });
3884
3884
  }
3885
- return v;
3885
+ return p;
3886
3886
  }
3887
3887
  }, od = (
3888
3888
  /** @class */
@@ -3964,11 +3964,11 @@ function cd(t, e, n, r, o, a) {
3964
3964
  fd(r)
3965
3965
  ), t.opacityExit = $((s = e.opacity) !== null && s !== void 0 ? s : 1, 0, dd(r))) : a && (t.opacity = $((u = e.opacity) !== null && u !== void 0 ? u : 1, (l = n.opacity) !== null && l !== void 0 ? l : 1, r));
3966
3966
  for (var c = 0; c < ld; c++) {
3967
- var f = "border".concat(Pa[c], "Radius"), d = Ao(e, f), v = Ao(n, f);
3968
- if (!(d === void 0 && v === void 0)) {
3969
- d || (d = 0), v || (v = 0);
3970
- var p = d === 0 || v === 0 || Co(d) === Co(v);
3971
- p ? (t[f] = Math.max($(Eo(d), Eo(v), r), 0), (wt.test(v) || wt.test(d)) && (t[f] += "%")) : t[f] = v;
3967
+ var f = "border".concat(Pa[c], "Radius"), d = Ao(e, f), p = Ao(n, f);
3968
+ if (!(d === void 0 && p === void 0)) {
3969
+ d || (d = 0), p || (p = 0);
3970
+ var v = d === 0 || p === 0 || Co(d) === Co(p);
3971
+ v ? (t[f] = Math.max($(Eo(d), Eo(p), r), 0), (wt.test(p) || wt.test(d)) && (t[f] += "%")) : t[f] = p;
3972
3972
  }
3973
3973
  }
3974
3974
  (e.rotate || n.rotate) && (t.rotate = $(e.rotate || 0, n.rotate || 0, r));
@@ -4125,8 +4125,8 @@ function Ea(t) {
4125
4125
  var l = this, c;
4126
4126
  if (u === void 0 && (u = !1), !this.instance) {
4127
4127
  this.isSVG = s instanceof SVGElement && s.tagName !== "svg", this.instance = s;
4128
- var f = this.options, d = f.layoutId, v = f.layout, p = f.visualElement;
4129
- if (p && !p.getInstance() && p.mount(s), this.root.nodes.add(this), (c = this.parent) === null || c === void 0 || c.children.add(this), this.id && this.root.potentialNodes.delete(this.id), u && (v || d) && (this.isLayoutDirty = !0), e) {
4128
+ var f = this.options, d = f.layoutId, p = f.layout, v = f.visualElement;
4129
+ if (v && !v.getInstance() && v.mount(s), this.root.nodes.add(this), (c = this.parent) === null || c === void 0 || c.children.add(this), this.id && this.root.potentialNodes.delete(this.id), u && (p || d) && (this.isLayoutDirty = !0), e) {
4130
4130
  var h, g = function() {
4131
4131
  return l.root.updateBlockedByResize = !1;
4132
4132
  };
@@ -4134,17 +4134,17 @@ function Ea(t) {
4134
4134
  l.root.updateBlockedByResize = !0, clearTimeout(h), h = window.setTimeout(g, 250), ie.hasAnimatedSinceResize && (ie.hasAnimatedSinceResize = !1, l.nodes.forEach(wd));
4135
4135
  });
4136
4136
  }
4137
- d && this.root.registerSharedNode(d, this), this.options.animate !== !1 && p && (d || v) && this.addEventListener("didUpdate", function(m) {
4137
+ d && this.root.registerSharedNode(d, this), this.options.animate !== !1 && v && (d || p) && this.addEventListener("didUpdate", function(m) {
4138
4138
  var b, y, P, w, E, R = m.delta, j = m.hasLayoutChanged, M = m.hasRelativeTargetChanged, k = m.layout;
4139
4139
  if (l.isTreeAnimationBlocked()) {
4140
4140
  l.target = void 0, l.relativeTarget = void 0;
4141
4141
  return;
4142
4142
  }
4143
- var rt = (y = (b = l.options.transition) !== null && b !== void 0 ? b : p.getDefaultTransition()) !== null && y !== void 0 ? y : Id, q = p.getProps(), H = q.onLayoutAnimationStart, O = q.onLayoutAnimationComplete, K = !l.targetLayout || !Va(l.targetLayout, k) || M, _ = !j && M;
4143
+ var rt = (y = (b = l.options.transition) !== null && b !== void 0 ? b : v.getDefaultTransition()) !== null && y !== void 0 ? y : Id, q = v.getProps(), H = q.onLayoutAnimationStart, O = q.onLayoutAnimationComplete, K = !l.targetLayout || !Va(l.targetLayout, k) || M, _ = !j && M;
4144
4144
  if (!((P = l.resumeFrom) === null || P === void 0) && P.instance || _ || j && (K || !l.currentAnimation)) {
4145
4145
  l.resumeFrom && (l.resumingFrom = l.resumeFrom, l.resumingFrom.resumingFrom = void 0), l.setAnimationOrigin(R, _);
4146
4146
  var I = x(x({}, vr(rt, "layout")), { onPlay: H, onComplete: O });
4147
- p.shouldReduceMotion && (I.delay = 0, I.type = !1), l.startAnimation(I);
4147
+ v.shouldReduceMotion && (I.delay = 0, I.type = !1), l.startAnimation(I);
4148
4148
  } else
4149
4149
  !j && l.animationProgress === 0 && l.finishAnimation(), l.isLead() && ((E = (w = l.options).onExitComplete) === null || E === void 0 || E.call(w));
4150
4150
  l.targetLayout = k;
@@ -4177,8 +4177,8 @@ function Ea(t) {
4177
4177
  var d = this.path[f];
4178
4178
  d.shouldResetTransform = !0, d.updateScroll();
4179
4179
  }
4180
- var v = this.options, p = v.layoutId, h = v.layout;
4181
- if (!(p === void 0 && !h)) {
4180
+ var p = this.options, v = p.layoutId, h = p.layout;
4181
+ if (!(v === void 0 && !h)) {
4182
4182
  var g = (c = this.options.visualElement) === null || c === void 0 ? void 0 : c.getProps().transformTemplate;
4183
4183
  this.prevTransformTemplateValue = g == null ? void 0 : g(this.latestValues, ""), this.updateSnapshot(), s && this.notifyListeners("willUpdate");
4184
4184
  }
@@ -4242,12 +4242,12 @@ function Ea(t) {
4242
4242
  var u = lt();
4243
4243
  St(u, s);
4244
4244
  for (var l = 0; l < this.path.length; l++) {
4245
- var c = this.path[l], f = c.scroll, d = c.options, v = c.isScrollRoot;
4245
+ var c = this.path[l], f = c.scroll, d = c.options, p = c.isScrollRoot;
4246
4246
  if (c !== this.root && f && d.layoutScroll) {
4247
- if (v) {
4247
+ if (p) {
4248
4248
  St(u, s);
4249
- var p = this.root.scroll;
4250
- p && (jt(u.x, -p.x), jt(u.y, -p.y));
4249
+ var v = this.root.scroll;
4250
+ v && (jt(u.x, -v.x), jt(u.y, -v.y));
4251
4251
  }
4252
4252
  jt(u.x, f.x), jt(u.y, f.y);
4253
4253
  }
@@ -4272,8 +4272,8 @@ function Ea(t) {
4272
4272
  var f = this.path[c];
4273
4273
  if (f.instance && Nt(f.latestValues)) {
4274
4274
  va(f.latestValues) && f.updateSnapshot();
4275
- var d = lt(), v = f.measure();
4276
- St(d, v), Oo(l, f.latestValues, (u = f.snapshot) === null || u === void 0 ? void 0 : u.layout, d);
4275
+ var d = lt(), p = f.measure();
4276
+ St(d, p), Oo(l, f.latestValues, (u = f.snapshot) === null || u === void 0 ? void 0 : u.layout, d);
4277
4277
  }
4278
4278
  }
4279
4279
  return Nt(this.latestValues) && Oo(l, this.latestValues), l;
@@ -4298,8 +4298,8 @@ function Ea(t) {
4298
4298
  var d = f.target;
4299
4299
  if (d) {
4300
4300
  this.projectionDelta || (this.projectionDelta = fe(), this.projectionDeltaWithTransform = fe());
4301
- var v = this.treeScale.x, p = this.treeScale.y, h = this.projectionTransform;
4302
- le(this.projectionDelta, this.layoutCorrected, d, this.latestValues), this.projectionTransform = No(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== v || this.treeScale.y !== p) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", d));
4301
+ var p = this.treeScale.x, v = this.treeScale.y, h = this.projectionTransform;
4302
+ le(this.projectionDelta, this.layoutCorrected, d, this.latestValues), this.projectionTransform = No(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== p || this.treeScale.y !== v) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", d));
4303
4303
  }
4304
4304
  }
4305
4305
  }, i.prototype.hide = function() {
@@ -4312,12 +4312,12 @@ function Ea(t) {
4312
4312
  }, i.prototype.setAnimationOrigin = function(s, u) {
4313
4313
  var l = this, c;
4314
4314
  u === void 0 && (u = !1);
4315
- var f = this.snapshot, d = (f == null ? void 0 : f.latestValues) || {}, v = x({}, this.latestValues), p = fe();
4315
+ var f = this.snapshot, d = (f == null ? void 0 : f.latestValues) || {}, p = x({}, this.latestValues), v = fe();
4316
4316
  this.relativeTarget = this.relativeTargetOrigin = void 0, this.attemptToResolveRelativeTarget = !u;
4317
4317
  var h = lt(), g = f == null ? void 0 : f.isShared, m = (((c = this.getStack()) === null || c === void 0 ? void 0 : c.members.length) || 0) <= 1, b = !!(g && !m && this.options.crossfade === !0 && !this.path.some(Md));
4318
4318
  this.animationProgress = 0, this.mixTargetDelta = function(y) {
4319
4319
  var P, w = y / 1e3;
4320
- Bo(p.x, s.x, w), Bo(p.y, s.y, w), l.setTargetDelta(p), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((P = l.relativeParent) === null || P === void 0) && P.layout) && (ce(h, l.layout.actual, l.relativeParent.layout.actual), Rd(l.relativeTarget, l.relativeTargetOrigin, h, w)), g && (l.animationValues = v, cd(v, d, l.latestValues, w, b, m)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = w;
4320
+ Bo(v.x, s.x, w), Bo(v.y, s.y, w), l.setTargetDelta(v), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((P = l.relativeParent) === null || P === void 0) && P.layout) && (ce(h, l.layout.actual, l.relativeParent.layout.actual), Rd(l.relativeTarget, l.relativeTargetOrigin, h, w)), g && (l.animationValues = p, cd(p, d, l.latestValues, w, b, m)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = w;
4321
4321
  }, this.mixTargetDelta(0);
4322
4322
  }, i.prototype.startAnimation = function(s) {
4323
4323
  var u = this, l, c;
@@ -4381,37 +4381,37 @@ function Ea(t) {
4381
4381
  }
4382
4382
  }
4383
4383
  }, i.prototype.getProjectionStyles = function(s) {
4384
- var u, l, c, f, d, v;
4384
+ var u, l, c, f, d, p;
4385
4385
  s === void 0 && (s = {});
4386
- var p = {};
4386
+ var v = {};
4387
4387
  if (!this.instance || this.isSVG)
4388
- return p;
4388
+ return v;
4389
4389
  if (this.isVisible)
4390
- p.visibility = "";
4390
+ v.visibility = "";
4391
4391
  else
4392
4392
  return { visibility: "hidden" };
4393
4393
  var h = (u = this.options.visualElement) === null || u === void 0 ? void 0 : u.getProps().transformTemplate;
4394
4394
  if (this.needsReset)
4395
- return this.needsReset = !1, p.opacity = "", p.pointerEvents = Be(s.pointerEvents) || "", p.transform = h ? h(this.latestValues, "") : "none", p;
4395
+ return this.needsReset = !1, v.opacity = "", v.pointerEvents = Be(s.pointerEvents) || "", v.transform = h ? h(this.latestValues, "") : "none", v;
4396
4396
  var g = this.getLead();
4397
4397
  if (!this.projectionDelta || !this.layout || !g.target) {
4398
4398
  var m = {};
4399
4399
  return this.options.layoutId && (m.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, m.pointerEvents = Be(s.pointerEvents) || ""), this.hasProjected && !Nt(this.latestValues) && (m.transform = h ? h({}, "") : "none", this.hasProjected = !1), m;
4400
4400
  }
4401
4401
  var b = g.animationValues || g.latestValues;
4402
- this.applyTransformsToTarget(), p.transform = No(this.projectionDeltaWithTransform, this.treeScale, b), h && (p.transform = h(b, p.transform));
4402
+ this.applyTransformsToTarget(), v.transform = No(this.projectionDeltaWithTransform, this.treeScale, b), h && (v.transform = h(b, v.transform));
4403
4403
  var y = this.projectionDelta, P = y.x, w = y.y;
4404
- p.transformOrigin = "".concat(P.origin * 100, "% ").concat(w.origin * 100, "% 0"), g.animationValues ? p.opacity = g === this ? (f = (c = b.opacity) !== null && c !== void 0 ? c : this.latestValues.opacity) !== null && f !== void 0 ? f : 1 : this.preserveOpacity ? this.latestValues.opacity : b.opacityExit : p.opacity = g === this ? (d = b.opacity) !== null && d !== void 0 ? d : "" : (v = b.opacityExit) !== null && v !== void 0 ? v : 0;
4404
+ v.transformOrigin = "".concat(P.origin * 100, "% ").concat(w.origin * 100, "% 0"), g.animationValues ? v.opacity = g === this ? (f = (c = b.opacity) !== null && c !== void 0 ? c : this.latestValues.opacity) !== null && f !== void 0 ? f : 1 : this.preserveOpacity ? this.latestValues.opacity : b.opacityExit : v.opacity = g === this ? (d = b.opacity) !== null && d !== void 0 ? d : "" : (p = b.opacityExit) !== null && p !== void 0 ? p : 0;
4405
4405
  for (var E in He)
4406
4406
  if (b[E] !== void 0) {
4407
4407
  var R = He[E], j = R.correct, M = R.applyTo, k = j(b[E], g);
4408
4408
  if (M)
4409
4409
  for (var rt = M.length, q = 0; q < rt; q++)
4410
- p[M[q]] = k;
4410
+ v[M[q]] = k;
4411
4411
  else
4412
- p[E] = k;
4412
+ v[E] = k;
4413
4413
  }
4414
- return this.options.layoutId && (p.pointerEvents = g === this ? Be(s.pointerEvents) || "" : "none"), p;
4414
+ return this.options.layoutId && (v.pointerEvents = g === this ? Be(s.pointerEvents) || "" : "none"), v;
4415
4415
  }, i.prototype.clearSnapshot = function() {
4416
4416
  this.resumeFrom = this.snapshot = void 0;
4417
4417
  }, i.prototype.resetTree = function() {
@@ -4443,10 +4443,10 @@ function xd(t) {
4443
4443
  a.isShared ? le(c, t.applyTransform(u, !0), a.measured) : le(c, s, a.layout);
4444
4444
  var f = !wa(l), d = !1;
4445
4445
  if (!t.resumeFrom && (t.relativeParent = t.getClosestProjectingParent(), t.relativeParent && !t.relativeParent.resumeFrom)) {
4446
- var v = t.relativeParent, p = v.snapshot, h = v.layout;
4447
- if (p && h) {
4446
+ var p = t.relativeParent, v = p.snapshot, h = p.layout;
4447
+ if (v && h) {
4448
4448
  var g = lt();
4449
- ce(g, a.layout, p.layout);
4449
+ ce(g, a.layout, v.layout);
4450
4450
  var m = lt();
4451
4451
  ce(m, s, h.actual), Va(g, m) || (d = !0);
4452
4452
  }
@@ -4666,38 +4666,47 @@ const Hd = ({
4666
4666
  onStoryChange: o,
4667
4667
  inline: a,
4668
4668
  loop: i,
4669
- onClose: s
4669
+ onClose: s,
4670
+ className: u = ""
4670
4671
  }) => {
4671
- const [u, l] = mt(0), c = () => {
4672
- l((v) => v + 1);
4673
- }, f = () => {
4674
- n && n(), i && c();
4672
+ const [l, c] = mt(0), f = () => {
4673
+ c((v) => v + 1);
4674
+ }, d = () => {
4675
+ n && n(), i && f();
4675
4676
  };
4676
4677
  if (t.length == 0) return /* @__PURE__ */ S(qo, {});
4677
- const d = a ? ({ children: v }) => v : Hd;
4678
- return /* @__PURE__ */ Z("div", { className: qt(Ot.StoryPlayer, { [Ot.inline]: a }), children: [
4679
- /* @__PURE__ */ S("div", { className: Ot.Overlay, onClick: r }),
4680
- /* @__PURE__ */ S("div", { className: Ot.StoryPlayer__Wrap, children: /* @__PURE__ */ Z(d, { onClose: s, children: [
4681
- /* @__PURE__ */ S("div", { className: Ot.CloseIcon, onClick: s, children: /* @__PURE__ */ S(Wd, {}) }),
4682
- /* @__PURE__ */ S(
4683
- su,
4684
- {
4685
- onStoryChange: o,
4686
- currentIndex: e,
4687
- stories: t,
4688
- width: "100%",
4689
- height: "100%",
4690
- onAllStoriesEnd: f,
4691
- classNames: {
4692
- progressContainer: Ot.progressContainer,
4693
- progressBar: Ot.progressBar,
4694
- progressBarContainer: Ot.progressBarContainer
4695
- }
4696
- },
4697
- u
4698
- )
4699
- ] }) })
4700
- ] });
4678
+ const p = a ? ({ children: v }) => v : Hd;
4679
+ return /* @__PURE__ */ Z(
4680
+ "div",
4681
+ {
4682
+ className: qt(Ot.StoryPlayer, u, {
4683
+ [Ot.inline]: a
4684
+ }),
4685
+ children: [
4686
+ /* @__PURE__ */ S("div", { className: Ot.Overlay, onClick: r }),
4687
+ /* @__PURE__ */ S("div", { className: Ot.StoryPlayer__Wrap, children: /* @__PURE__ */ Z(p, { onClose: s, children: [
4688
+ /* @__PURE__ */ S("div", { className: Ot.CloseIcon, onClick: s, children: /* @__PURE__ */ S(Wd, {}) }),
4689
+ /* @__PURE__ */ S(
4690
+ su,
4691
+ {
4692
+ onStoryChange: o,
4693
+ currentIndex: e,
4694
+ stories: t,
4695
+ width: "100%",
4696
+ height: "100%",
4697
+ onAllStoriesEnd: d,
4698
+ classNames: {
4699
+ progressContainer: Ot.progressContainer,
4700
+ progressBar: Ot.progressBar,
4701
+ progressBarContainer: Ot.progressBarContainer
4702
+ }
4703
+ },
4704
+ l
4705
+ )
4706
+ ] }) })
4707
+ ]
4708
+ }
4709
+ );
4701
4710
  }, qd = "_story_1c26c_1", Gd = "_BetSlip_Wrapper_1c26c_12", zd = "_BetSlip_ButtonWrap_1c26c_23", de = {
4702
4711
  story: qd,
4703
4712
  BetSlip_Wrapper: Gd,
@@ -4718,8 +4727,8 @@ class Xd {
4718
4727
  static fromRaw(e) {
4719
4728
  var i;
4720
4729
  const n = ((i = e.stakes.find((s) => s.isEnabled)) == null ? void 0 : i.preciseValue) ?? 0, r = e.selections.map((s) => {
4721
- var p, h, g;
4722
- const u = parseFloat(s.odd.price.toFixed(2)), l = Yd(s.event.startDate), c = (h = (p = s == null ? void 0 : s.odd) == null ? void 0 : p.offers) == null ? void 0 : h.find((m) => m.type === 0), d = s.market.name, v = (g = s == null ? void 0 : s.bbSelections) == null ? void 0 : g.map((m) => {
4730
+ var v, h, g;
4731
+ const u = parseFloat(s.odd.price.toFixed(2)), l = Yd(s.event.startDate), c = (h = (v = s == null ? void 0 : s.odd) == null ? void 0 : v.offers) == null ? void 0 : h.find((m) => m.type === 0), d = s.market.name, p = (g = s == null ? void 0 : s.bbSelections) == null ? void 0 : g.map((m) => {
4723
4732
  var w, E, R, j, M;
4724
4733
  const b = (w = m == null ? void 0 : m.odd) == null ? void 0 : w.price, y = parseFloat(b.toFixed(2)), P = (R = (E = m == null ? void 0 : m.odd) == null ? void 0 : E.offers) == null ? void 0 : R.find((k) => k.type === 0);
4725
4734
  return {
@@ -4739,7 +4748,7 @@ class Xd {
4739
4748
  paParam: c == null ? void 0 : c.parameter,
4740
4749
  marketName: d,
4741
4750
  // si ya lo tienes
4742
- subSelections: v
4751
+ subSelections: p
4743
4752
  // ← aquí
4744
4753
  };
4745
4754
  }), o = parseFloat(
@@ -4966,16 +4975,16 @@ const xv = ({ className: t = "", data: e, isPortal: n = !0 }) => {
4966
4975
  F(() => {
4967
4976
  f.current = c;
4968
4977
  }, [c]);
4969
- const d = e == null ? void 0 : e.find((m) => (m == null ? void 0 : m.id) == r), v = ((g = e == null ? void 0 : e.find((m) => (m == null ? void 0 : m.id) == r)) == null ? void 0 : g.stories) ?? [];
4978
+ const d = e == null ? void 0 : e.find((m) => (m == null ? void 0 : m.id) == r), p = ((g = e == null ? void 0 : e.find((m) => (m == null ? void 0 : m.id) == r)) == null ? void 0 : g.stories) ?? [];
4970
4979
  Sv(r, () => o(null)), bv({
4971
4980
  targets: [document],
4972
4981
  scroll: r ? "OFF" : "ON"
4973
4982
  });
4974
- const p = () => {
4983
+ const v = () => {
4975
4984
  o(null), f.current = c;
4976
4985
  }, h = () => {
4977
4986
  if (!r) return null;
4978
- const m = v.map((y) => ({
4987
+ const m = p.map((y) => ({
4979
4988
  type: "component",
4980
4989
  component: ({ pause: P, resume: w, story: E, isPaused: R }) => (i(d == null ? void 0 : d.id, y.id), /* @__PURE__ */ S(Ra, { story: y })),
4981
4990
  duration: y != null && y.duration ? (y == null ? void 0 : y.duration) * 1e3 : 7e3,
@@ -4991,8 +5000,8 @@ const xv = ({ className: t = "", data: e, isPortal: n = !0 }) => {
4991
5000
  })), b = /* @__PURE__ */ S(
4992
5001
  Ca,
4993
5002
  {
4994
- onClose: p,
4995
- onOverlayClick: p,
5003
+ onClose: v,
5004
+ onOverlayClick: v,
4996
5005
  onStoryChange: (y) => {
4997
5006
  },
4998
5007
  onAllStoriesEnd: async () => {