@contentmunch/contentmunch-ui 1.1.27 → 1.1.28

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/lib/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import gi, { useState as Y, Fragment as p, useRef as fe, useCallback as Ce, useEffect as je, useMemo as Oe, createContext as ze, useLayoutEffect as lo, useContext as ee, useId as co, createElement as uo, useInsertionEffect as ji, forwardRef as ho, Component as fo } from "react";
1
+ import gi, { useState as $, Fragment as p, useRef as fe, useCallback as Ce, useEffect as je, useMemo as Ie, createContext as ze, useLayoutEffect as co, useContext as ee, useId as uo, createElement as ho, useInsertionEffect as ji, forwardRef as fo, Component as po } from "react";
2
2
  var at = { exports: {} }, $e = {};
3
3
  /**
4
4
  * @license React
@@ -10,7 +10,7 @@ var at = { exports: {} }, $e = {};
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
  var qn;
13
- function po() {
13
+ function mo() {
14
14
  if (qn) return $e;
15
15
  qn = 1;
16
16
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
@@ -42,7 +42,7 @@ var Ke = {};
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
44
  var Zn;
45
- function mo() {
45
+ function xo() {
46
46
  return Zn || (Zn = 1, process.env.NODE_ENV !== "production" && function() {
47
47
  function e(j) {
48
48
  if (j == null) return null;
@@ -60,7 +60,7 @@ function mo() {
60
60
  return "Suspense";
61
61
  case E:
62
62
  return "SuspenseList";
63
- case O:
63
+ case I:
64
64
  return "Activity";
65
65
  }
66
66
  if (typeof j == "object")
@@ -76,7 +76,7 @@ function mo() {
76
76
  case M:
77
77
  var V = j.render;
78
78
  return j = j.displayName, j || (j = V.displayName || V.name || "", j = j !== "" ? "ForwardRef(" + j + ")" : "ForwardRef"), j;
79
- case k:
79
+ case D:
80
80
  return V = j.displayName || null, V !== null ? V : e(j.type) || "Memo";
81
81
  case P:
82
82
  V = j._payload, j = j._init;
@@ -99,11 +99,11 @@ function mo() {
99
99
  }
100
100
  if (V) {
101
101
  V = console;
102
- var R = V.error, K = typeof Symbol == "function" && Symbol.toStringTag && j[Symbol.toStringTag] || j.constructor.name || "Object";
102
+ var R = V.error, G = typeof Symbol == "function" && Symbol.toStringTag && j[Symbol.toStringTag] || j.constructor.name || "Object";
103
103
  return R.call(
104
104
  V,
105
105
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
- K
106
+ G
107
107
  ), t(j);
108
108
  }
109
109
  }
@@ -150,7 +150,7 @@ function mo() {
150
150
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
151
151
  )), j = this.props.ref, j !== void 0 ? j : null;
152
152
  }
153
- function h(j, V, R, K, me, le, Rt, Lt) {
153
+ function h(j, V, R, G, me, le, Rt, Lt) {
154
154
  return R = le.ref, j = {
155
155
  $$typeof: m,
156
156
  type: j,
@@ -182,48 +182,48 @@ function mo() {
182
182
  value: Lt
183
183
  }), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
184
184
  }
185
- function u(j, V, R, K, me, le, Rt, Lt) {
186
- var G = V.children;
187
- if (G !== void 0)
188
- if (K)
189
- if (X(G)) {
190
- for (K = 0; K < G.length; K++)
191
- d(G[K]);
192
- Object.freeze && Object.freeze(G);
185
+ function u(j, V, R, G, me, le, Rt, Lt) {
186
+ var Y = V.children;
187
+ if (Y !== void 0)
188
+ if (G)
189
+ if (X(Y)) {
190
+ for (G = 0; G < Y.length; G++)
191
+ d(Y[G]);
192
+ Object.freeze && Object.freeze(Y);
193
193
  } else
194
194
  console.error(
195
195
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
196
196
  );
197
- else d(G);
197
+ else d(Y);
198
198
  if (F.call(V, "key")) {
199
- G = e(j);
200
- var De = Object.keys(V).filter(function(ao) {
201
- return ao !== "key";
199
+ Y = e(j);
200
+ var ke = Object.keys(V).filter(function(lo) {
201
+ return lo !== "key";
202
202
  });
203
- K = 0 < De.length ? "{key: someKey, " + De.join(": ..., ") + ": ...}" : "{key: someKey}", _[G + K] || (De = 0 < De.length ? "{" + De.join(": ..., ") + ": ...}" : "{}", console.error(
203
+ G = 0 < ke.length ? "{key: someKey, " + ke.join(": ..., ") + ": ...}" : "{key: someKey}", _[Y + G] || (ke = 0 < ke.length ? "{" + ke.join(": ..., ") + ": ...}" : "{}", console.error(
204
204
  `A props object containing a "key" prop is being spread into JSX:
205
205
  let props = %s;
206
206
  <%s {...props} />
207
207
  React keys must be passed directly to JSX without using spread:
208
208
  let props = %s;
209
209
  <%s key={someKey} {...props} />`,
210
- K,
211
210
  G,
212
- De,
213
- G
214
- ), _[G + K] = !0);
211
+ Y,
212
+ ke,
213
+ Y
214
+ ), _[Y + G] = !0);
215
215
  }
216
- if (G = null, R !== void 0 && (n(R), G = "" + R), o(V) && (n(V.key), G = "" + V.key), "key" in V) {
216
+ if (Y = null, R !== void 0 && (n(R), Y = "" + R), o(V) && (n(V.key), Y = "" + V.key), "key" in V) {
217
217
  R = {};
218
218
  for (var Nt in V)
219
219
  Nt !== "key" && (R[Nt] = V[Nt]);
220
220
  } else R = V;
221
- return G && l(
221
+ return Y && l(
222
222
  R,
223
223
  typeof j == "function" ? j.displayName || j.name || "Unknown" : j
224
224
  ), h(
225
225
  j,
226
- G,
226
+ Y,
227
227
  le,
228
228
  me,
229
229
  r(),
@@ -235,7 +235,7 @@ React keys must be passed directly to JSX without using spread:
235
235
  function d(j) {
236
236
  typeof j == "object" && j !== null && j.$$typeof === m && j._store && (j._store.validated = 1);
237
237
  }
238
- var f = gi, m = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), b = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), C = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, X = Array.isArray, $ = console.createTask ? console.createTask : function() {
238
+ var f = gi, m = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), b = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), C = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, X = Array.isArray, K = console.createTask ? console.createTask : function() {
239
239
  return null;
240
240
  };
241
241
  f = {
@@ -246,41 +246,41 @@ React keys must be passed directly to JSX without using spread:
246
246
  var Q, q = {}, Ee = f["react-stack-bottom-frame"].bind(
247
247
  f,
248
248
  a
249
- )(), I = $(i(a)), _ = {};
250
- Ke.Fragment = g, Ke.jsx = function(j, V, R, K, me) {
249
+ )(), O = K(i(a)), _ = {};
250
+ Ke.Fragment = g, Ke.jsx = function(j, V, R, G, me) {
251
251
  var le = 1e4 > C.recentlyCreatedOwnerStacks++;
252
252
  return u(
253
253
  j,
254
254
  V,
255
255
  R,
256
256
  !1,
257
- K,
257
+ G,
258
258
  me,
259
259
  le ? Error("react-stack-top-frame") : Ee,
260
- le ? $(i(j)) : I
260
+ le ? K(i(j)) : O
261
261
  );
262
- }, Ke.jsxs = function(j, V, R, K, me) {
262
+ }, Ke.jsxs = function(j, V, R, G, me) {
263
263
  var le = 1e4 > C.recentlyCreatedOwnerStacks++;
264
264
  return u(
265
265
  j,
266
266
  V,
267
267
  R,
268
268
  !0,
269
- K,
269
+ G,
270
270
  me,
271
271
  le ? Error("react-stack-top-frame") : Ee,
272
- le ? $(i(j)) : I
272
+ le ? K(i(j)) : O
273
273
  );
274
274
  };
275
275
  }()), Ke;
276
276
  }
277
277
  var Jn;
278
- function xo() {
279
- return Jn || (Jn = 1, process.env.NODE_ENV === "production" ? at.exports = po() : at.exports = mo()), at.exports;
278
+ function yo() {
279
+ return Jn || (Jn = 1, process.env.NODE_ENV === "production" ? at.exports = mo() : at.exports = xo()), at.exports;
280
280
  }
281
- var s = xo();
281
+ var s = yo();
282
282
  const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
283
- const { folds: r } = i, [a, o] = Y(t ? -1 : 0), l = (f) => f === a ? "fold active" : "fold", c = (f) => "fold-button" + (e ? " fold-button--" + e : "") + (r[f].foldColor ? " fold-button--primary fold-button--" + r[f].foldColor : ""), h = (f) => {
283
+ const { folds: r } = i, [a, o] = $(t ? -1 : 0), l = (f) => f === a ? "fold active" : "fold", c = (f) => "fold-button" + (e ? " fold-button--" + e : "") + (r[f].foldColor ? " fold-button--primary fold-button--" + r[f].foldColor : ""), h = (f) => {
284
284
  const m = f.which.toString(), x = f.ctrlKey && m.match(/33|34/);
285
285
  if (m.match(/38|40/) || x) {
286
286
  const g = m.match(/34|40/) ? 1 : -1, y = r.length, w = (a + y + g) % y;
@@ -313,7 +313,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
313
313
  "muncher-accordion-fold-" + m
314
314
  )
315
315
  ) });
316
- }, yo = ({
316
+ }, go = ({
317
317
  show: e = !1,
318
318
  className: t,
319
319
  backdropClickHandler: n,
@@ -321,7 +321,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
321
321
  }) => {
322
322
  const r = "muncher-backdrop" + (t ? " " + t : "");
323
323
  return e ? /* @__PURE__ */ s.jsx("div", { className: r, onClick: n, ...i }) : null;
324
- }, go = ({ variant: e, rounded: t, border: n, children: i, ...r }) => {
324
+ }, jo = ({ variant: e, rounded: t, border: n, children: i, ...r }) => {
325
325
  const a = "muncher-badge" + (e ? " muncher-badge--" + e : "") + (t ? " muncher-badge--rounded" : "") + (n ? " muncher-badge--border" : "");
326
326
  return /* @__PURE__ */ s.jsx("div", { className: a, ...r, children: i });
327
327
  }, lt = {
@@ -1413,7 +1413,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1413
1413
  ...r,
1414
1414
  children: [
1415
1415
  /* @__PURE__ */ s.jsx(N, { name: t }),
1416
- n === "" ? "" : /* @__PURE__ */ s.jsx(go, { variant: e, children: n })
1416
+ n === "" ? "" : /* @__PURE__ */ s.jsx(jo, { variant: e, children: n })
1417
1417
  ]
1418
1418
  }
1419
1419
  ), ne = ({
@@ -1448,7 +1448,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1448
1448
  children: f
1449
1449
  }
1450
1450
  );
1451
- }, jo = ({
1451
+ }, vo = ({
1452
1452
  variant: e,
1453
1453
  size: t = "medium",
1454
1454
  title: n,
@@ -1482,8 +1482,8 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1482
1482
  };
1483
1483
  }, [b, v]);
1484
1484
  const M = () => {
1485
- var k;
1486
- const S = (k = y.current) == null ? void 0 : k.offsetLeft, E = window.innerWidth;
1485
+ var D;
1486
+ const S = (D = y.current) == null ? void 0 : D.offsetLeft, E = window.innerWidth;
1487
1487
  if (S) {
1488
1488
  if (S < 100) return "muncher-dropdown--content";
1489
1489
  if (E - S < 150) return "muncher-dropdown--content drop-left";
@@ -1550,15 +1550,15 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1550
1550
  }
1551
1551
  ),
1552
1552
  /* @__PURE__ */ s.jsx("div", { className: "muncher-dropdown-nav--content", children: o })
1553
- ] }), vo = (e) => {
1553
+ ] }), wo = (e) => {
1554
1554
  navigator.clipboard.writeText(e);
1555
- }, wo = ({
1555
+ }, bo = ({
1556
1556
  text: e,
1557
1557
  variant: t = "secondary",
1558
1558
  size: n = "small"
1559
1559
  }) => {
1560
- const [i, r] = Y(), [a, o] = Y("copy"), [l, c] = Y("copy link"), h = () => {
1561
- vo(e), r("green"), o("check"), c("copied!"), setTimeout(function() {
1560
+ const [i, r] = $(), [a, o] = $("copy"), [l, c] = $("copy link"), h = () => {
1561
+ wo(e), r("green"), o("check"), c("copied!"), setTimeout(function() {
1562
1562
  r(""), o("copy");
1563
1563
  }, 2e3);
1564
1564
  };
@@ -1577,9 +1577,9 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1577
1577
  size: t = "medium",
1578
1578
  title: n
1579
1579
  }) => {
1580
- const [i, r] = Y(!1);
1580
+ const [i, r] = $(!1);
1581
1581
  return /* @__PURE__ */ s.jsx("div", { className: "muncher-share", children: /* @__PURE__ */ s.jsxs(
1582
- jo,
1582
+ vo,
1583
1583
  {
1584
1584
  title: "Share to Social Media",
1585
1585
  showContent: i,
@@ -1615,11 +1615,11 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1615
1615
  children: /* @__PURE__ */ s.jsx(N, { name: "mail" })
1616
1616
  }
1617
1617
  ) }),
1618
- /* @__PURE__ */ s.jsx(wo, { text: window.location.href })
1618
+ /* @__PURE__ */ s.jsx(bo, { text: window.location.href })
1619
1619
  ]
1620
1620
  }
1621
1621
  ) });
1622
- }, bo = ({
1622
+ }, To = ({
1623
1623
  header: e,
1624
1624
  data: t,
1625
1625
  filename: n,
@@ -1634,7 +1634,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1634
1634
  ` + t.map((u) => u.join(",")).join(`
1635
1635
  `));
1636
1636
  return /* @__PURE__ */ s.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ s.jsx(ne, { variant: i, size: r, active: o, disabled: l, rounded: c, children: /* @__PURE__ */ s.jsx("a", { href: h, download: n + ".csv", children: /* @__PURE__ */ s.jsx(N, { name: "download", children: a || "Download" }) }) }) });
1637
- }, To = ({
1637
+ }, Mo = ({
1638
1638
  variant: e = "transparent",
1639
1639
  size: t = "small",
1640
1640
  title: n,
@@ -1644,7 +1644,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1644
1644
  onClick: o,
1645
1645
  children: l
1646
1646
  }) => {
1647
- const [c, h] = Y(!1), u = () => !r || r && !c ? i ? /* @__PURE__ */ s.jsx(N, { name: "sort-asc" }) : /* @__PURE__ */ s.jsx(N, { name: "sort-desc" }) : i ? /* @__PURE__ */ s.jsx(N, { name: "sort-desc" }) : /* @__PURE__ */ s.jsx(N, { name: "sort-asc" });
1647
+ const [c, h] = $(!1), u = () => !r || r && !c ? i ? /* @__PURE__ */ s.jsx(N, { name: "sort-asc" }) : /* @__PURE__ */ s.jsx(N, { name: "sort-desc" }) : i ? /* @__PURE__ */ s.jsx(N, { name: "sort-desc" }) : /* @__PURE__ */ s.jsx(N, { name: "sort-asc" });
1648
1648
  return /* @__PURE__ */ s.jsxs(
1649
1649
  ne,
1650
1650
  {
@@ -1714,7 +1714,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1714
1714
  label: r,
1715
1715
  ...a
1716
1716
  }) => {
1717
- const [o, l] = Y(i || !1);
1717
+ const [o, l] = $(i || !1);
1718
1718
  return /* @__PURE__ */ s.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ s.jsxs("div", { className: "muncher-checkbox", children: [
1719
1719
  /* @__PURE__ */ s.jsx(
1720
1720
  "input",
@@ -1748,7 +1748,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1748
1748
  className: e ? "muncher-spinner muncher-spinner-" + e : "muncher-spinner",
1749
1749
  ...t
1750
1750
  }
1751
- ), Mo = ({
1751
+ ), So = ({
1752
1752
  name: e,
1753
1753
  label: t,
1754
1754
  variant: n = "secondary",
@@ -1787,7 +1787,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1787
1787
  c && c !== "" ? /* @__PURE__ */ s.jsx("p", { className: "text-danger", children: c }) : "",
1788
1788
  h && h !== "" ? /* @__PURE__ */ s.jsx("p", { className: "text-success", children: h }) : ""
1789
1789
  ] }) });
1790
- }, Dh = ({
1790
+ }, kh = ({
1791
1791
  name: e,
1792
1792
  label: t,
1793
1793
  variant: n = "secondary",
@@ -1800,7 +1800,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1800
1800
  maxFiles: h,
1801
1801
  ...u
1802
1802
  }) => {
1803
- const [d, f] = Y(""), [m, x] = Y(""), g = h || 3, y = "muncher-button" + (n ? " muncher-button--" + n : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), w = (b) => {
1803
+ const [d, f] = $(""), [m, x] = $(""), g = h || 3, y = "muncher-button" + (n ? " muncher-button--" + n : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), w = (b) => {
1804
1804
  if (c) {
1805
1805
  let M = Array.from(b.currentTarget.files);
1806
1806
  M.length > g && (M = M.slice(0, g), x("Only first " + g + " files included")), o(M), f(M.map((S) => S.name).join(", "));
@@ -1833,7 +1833,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1833
1833
  m !== "" ? /* @__PURE__ */ s.jsx("p", { className: "text-danger", children: m }) : "",
1834
1834
  v() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(N, { name: "alert", children: l }) }) : ""
1835
1835
  ] });
1836
- }, So = ({
1836
+ }, wi = ({
1837
1837
  name: e,
1838
1838
  label: t,
1839
1839
  required: n,
@@ -1857,10 +1857,10 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1857
1857
  displayLoader: M,
1858
1858
  ...S
1859
1859
  }) => {
1860
- const E = () => f && f !== "", k = () => {
1860
+ const E = () => f && f !== "", D = () => {
1861
1861
  let T = "muncher-input";
1862
1862
  return (r || a) && (T += " muncher-input-icon"), E() && (T += " muncher-input-error"), u === "side" && (T += " muncher-label-side"), T;
1863
- }, P = () => t ? /* @__PURE__ */ s.jsx(nt, { label: t, required: n, id: e }) : "", O = (T) => {
1863
+ }, P = () => t ? /* @__PURE__ */ s.jsx(nt, { label: t, required: n, id: e }) : "", I = (T) => {
1864
1864
  T.key === "Enter" && b && b(), d && d(T);
1865
1865
  };
1866
1866
  return /* @__PURE__ */ s.jsxs("div", { className: "muncher-input--div", children: [
@@ -1877,7 +1877,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1877
1877
  "input",
1878
1878
  {
1879
1879
  id: e,
1880
- className: k(),
1880
+ className: D(),
1881
1881
  name: e,
1882
1882
  autoFocus: m,
1883
1883
  value: w,
@@ -1888,7 +1888,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1888
1888
  required: n,
1889
1889
  readOnly: i,
1890
1890
  list: c,
1891
- onKeyDown: O,
1891
+ onKeyDown: I,
1892
1892
  onBlur: h,
1893
1893
  step: y,
1894
1894
  maxLength: v,
@@ -1900,7 +1900,27 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1900
1900
  ] }),
1901
1901
  E() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(N, { name: "alert", children: f }) }) : ""
1902
1902
  ] });
1903
- }, kh = ({ name: e, required: t = !1, onChange: n, checked: i = !1, label: r, ...a }) => /* @__PURE__ */ s.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ s.jsxs("div", { className: "muncher-radio", children: [
1903
+ }, Dh = ({ name: e, label: t, required: n, placeholder: i, onChange: r, value: a, error: o, labelPosition: l }) => {
1904
+ const [c, h] = $(!1), u = () => {
1905
+ h((d) => !d);
1906
+ };
1907
+ return /* @__PURE__ */ s.jsx(
1908
+ wi,
1909
+ {
1910
+ label: t,
1911
+ name: e,
1912
+ type: c ? "text" : "password",
1913
+ hoverIcon: c ? "eye" : "eye-off",
1914
+ value: a,
1915
+ required: n,
1916
+ placeholder: i,
1917
+ onChange: r,
1918
+ error: o,
1919
+ labelPosition: l,
1920
+ onHoverIconClick: u
1921
+ }
1922
+ );
1923
+ }, Rh = ({ name: e, required: t = !1, onChange: n, checked: i = !1, label: r, ...a }) => /* @__PURE__ */ s.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ s.jsxs("div", { className: "muncher-radio", children: [
1904
1924
  /* @__PURE__ */ s.jsx(
1905
1925
  "input",
1906
1926
  {
@@ -1959,7 +1979,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1959
1979
  ) }),
1960
1980
  h() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(N, { name: "alert", children: a }) }) : ""
1961
1981
  ] });
1962
- }, Rh = ({
1982
+ }, Lh = ({
1963
1983
  name: e,
1964
1984
  label: t,
1965
1985
  required: n,
@@ -1972,7 +1992,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1972
1992
  value: h,
1973
1993
  ...u
1974
1994
  }) => {
1975
- const [d, f] = Y(h), m = (x) => {
1995
+ const [d, f] = $(h), m = (x) => {
1976
1996
  f(x.target.value), c && c(x);
1977
1997
  };
1978
1998
  return /* @__PURE__ */ s.jsxs("div", { className: "muncher-input--div", children: [
@@ -1999,7 +2019,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
1999
2019
  " characters left"
2000
2020
  ] })
2001
2021
  ] });
2002
- }, Lh = ({
2022
+ }, Nh = ({
2003
2023
  name: e = "query",
2004
2024
  focus: t = !1,
2005
2025
  inputPlaceHolder: n,
@@ -2035,7 +2055,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2035
2055
  };
2036
2056
  }, [v, w]), /* @__PURE__ */ s.jsxs("div", { className: "muncher-input-drop-down", ref: g, children: [
2037
2057
  /* @__PURE__ */ s.jsx(
2038
- So,
2058
+ wi,
2039
2059
  {
2040
2060
  focus: t,
2041
2061
  placeholder: n,
@@ -2053,7 +2073,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2053
2073
  ),
2054
2074
  r ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-drop-down--content", children: x }) : ""
2055
2075
  ] });
2056
- }, Nh = ({ children: e }) => /* @__PURE__ */ s.jsx("ul", { className: "muncher-ul", children: e }), Fh = ({ isFeatured: e, bulletIcon: t = "arrow-right", bulletWeight: n = 2, bulletSize: i = "small", bulletColor: r, children: a }) => /* @__PURE__ */ s.jsx("li", { className: e ? "muncher-li featured" : "muncher-li", children: /* @__PURE__ */ s.jsx(
2076
+ }, Fh = ({ children: e }) => /* @__PURE__ */ s.jsx("ul", { className: "muncher-ul", children: e }), Ih = ({ isFeatured: e, bulletIcon: t = "arrow-right", bulletWeight: n = 2, bulletSize: i = "small", bulletColor: r, children: a }) => /* @__PURE__ */ s.jsx("li", { className: e ? "muncher-li featured" : "muncher-li", children: /* @__PURE__ */ s.jsx(
2057
2077
  N,
2058
2078
  {
2059
2079
  name: t,
@@ -2071,7 +2091,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2071
2091
  }), [r]), je(() => {
2072
2092
  e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset";
2073
2093
  }, [e]), /* @__PURE__ */ s.jsxs(gi.Fragment, { children: [
2074
- /* @__PURE__ */ s.jsx(yo, { show: e, backdropClickHandler: () => t(!1) }),
2094
+ /* @__PURE__ */ s.jsx(go, { show: e, backdropClickHandler: () => t(!1) }),
2075
2095
  /* @__PURE__ */ s.jsx(
2076
2096
  "div",
2077
2097
  {
@@ -2085,16 +2105,16 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2085
2105
  }
2086
2106
  )
2087
2107
  ] });
2088
- }, Ih = ({ showHoverEffect: e, onClick: t, children: n }) => {
2108
+ }, Bh = ({ showHoverEffect: e, onClick: t, children: n }) => {
2089
2109
  const i = () => e ? "muncher-paper muncher-paper-hover" : "muncher-paper";
2090
2110
  return /* @__PURE__ */ s.jsx("section", { className: i(), onClick: t, children: n });
2091
- }, Bh = ({ pillCloseHandler: e, children: t, ...n }) => /* @__PURE__ */ s.jsxs("div", { className: "muncher-pill", ...n, children: [
2111
+ }, zh = ({ pillCloseHandler: e, children: t, ...n }) => /* @__PURE__ */ s.jsxs("div", { className: "muncher-pill", ...n, children: [
2092
2112
  /* @__PURE__ */ s.jsx("div", { className: "close", onClick: e, children: /* @__PURE__ */ s.jsx(N, { name: "close" }) }),
2093
2113
  /* @__PURE__ */ s.jsxs("div", { className: "content", children: [
2094
2114
  " ",
2095
2115
  t
2096
2116
  ] })
2097
- ] }), zh = ({ value: e, max: t, label: n }) => {
2117
+ ] }), Hh = ({ value: e, max: t, label: n }) => {
2098
2118
  const i = () => {
2099
2119
  const r = Math.round(e / t * 100) + "%";
2100
2120
  return n ? n + " " + r : r;
@@ -2103,11 +2123,11 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2103
2123
  /* @__PURE__ */ s.jsx("label", { htmlFor: "progress", children: i() }),
2104
2124
  /* @__PURE__ */ s.jsx("progress", { id: "progress", value: e, max: t, children: i() })
2105
2125
  ] });
2106
- }, Hh = ({ variant: e, size: t, style: n }) => {
2126
+ }, _h = ({ variant: e, size: t, style: n }) => {
2107
2127
  const i = "muncher-hr" + (e ? " muncher-hr--" + e : "") + (t ? " muncher-hr--" + t : "") + (n ? " muncher-hr--" + n : "");
2108
2128
  return /* @__PURE__ */ s.jsx("hr", { className: i });
2109
- }, _h = ({ sliderItems: e, navButtonSize: t = "large", navButtonWeight: n = 2, variant: i, navIcon: r, navButtonPlacement: a = "inside" }) => {
2110
- const [o, l] = Y(0), [c, h] = Y(0), u = () => e.length > 1 && o > 0 ? /* @__PURE__ */ s.jsx(
2129
+ }, Uh = ({ sliderItems: e, navButtonSize: t = "large", navButtonWeight: n = 2, variant: i, navIcon: r, navButtonPlacement: a = "inside" }) => {
2130
+ const [o, l] = $(0), [c, h] = $(0), u = () => e.length > 1 && o > 0 ? /* @__PURE__ */ s.jsx(
2111
2131
  Qn,
2112
2132
  {
2113
2133
  direction: "left",
@@ -2151,7 +2171,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2151
2171
  ] }),
2152
2172
  a === "outside" ? d() : ""
2153
2173
  ] });
2154
- }, Uh = ({
2174
+ }, Wh = ({
2155
2175
  min: e,
2156
2176
  max: t,
2157
2177
  minValue: n,
@@ -2199,7 +2219,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2199
2219
  /* @__PURE__ */ s.jsx("div", { className: "slider-max", children: h(t) })
2200
2220
  ] })
2201
2221
  ] });
2202
- }, Wh = ({
2222
+ }, $h = ({
2203
2223
  min: e,
2204
2224
  max: t,
2205
2225
  value: n,
@@ -2231,7 +2251,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2231
2251
  /* @__PURE__ */ s.jsx("div", { className: "slider-max", children: a(t) })
2232
2252
  ] })
2233
2253
  ] });
2234
- }, $h = ({ isFeatured: e, onClick: t }) => /* @__PURE__ */ s.jsx("span", { className: "span-featured", children: /* @__PURE__ */ s.jsx("span", { className: e ? "featured-star" : "un-featured-star", onClick: t }) }), Kh = ({ rating: e, color: t, size: n, ...i }) => {
2254
+ }, Kh = ({ isFeatured: e, onClick: t }) => /* @__PURE__ */ s.jsx("span", { className: "span-featured", children: /* @__PURE__ */ s.jsx("span", { className: e ? "featured-star" : "un-featured-star", onClick: t }) }), Gh = ({ rating: e, color: t, size: n, ...i }) => {
2235
2255
  const r = {
2236
2256
  "--r": e
2237
2257
  }, a = () => {
@@ -2239,8 +2259,8 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2239
2259
  return t && (o += " star-" + t), n && (o += " star-" + n), o;
2240
2260
  };
2241
2261
  return /* @__PURE__ */ s.jsx("span", { className: a(), style: r, ...i });
2242
- }, Gh = ({ handleTabSelected: e, children: t }) => {
2243
- const [n, i] = Y(0), { tabs: r } = t, a = (o) => {
2262
+ }, Yh = ({ handleTabSelected: e, children: t }) => {
2263
+ const [n, i] = $(0), { tabs: r } = t, a = (o) => {
2244
2264
  i(o), e && e(o);
2245
2265
  };
2246
2266
  return /* @__PURE__ */ s.jsxs("section", { className: "muncher-tabs", children: [
@@ -2273,7 +2293,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2273
2293
  )
2274
2294
  )
2275
2295
  ] });
2276
- }, Yh = ({
2296
+ }, Xh = ({
2277
2297
  fileName: e,
2278
2298
  defaultPageSize: t = 50,
2279
2299
  skeleton: n,
@@ -2289,28 +2309,28 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2289
2309
  footer: f,
2290
2310
  children: m
2291
2311
  }) => {
2292
- const { header: x, rows: g } = m, [y, w] = Y(r ?? { index: -1 }), [v, b] = Y({ num: 0, size: t }), M = (T) => {
2312
+ const { header: x, rows: g } = m, [y, w] = $(r ?? { index: -1 }), [v, b] = $({ num: 0, size: t }), M = (T) => {
2293
2313
  w(
2294
2314
  (C) => C.index === T ? { ...C, desc: !C.desc } : { index: T }
2295
2315
  );
2296
- }, S = Oe(() => {
2316
+ }, S = Ie(() => {
2297
2317
  var F;
2298
2318
  const T = [...g];
2299
2319
  if (y.index < 0)
2300
2320
  return T;
2301
2321
  const C = (F = x[y.index]) == null ? void 0 : F.sort;
2302
- return C ? T.sort(C) : T.sort((X, $) => {
2303
- var Ee, I, _, j;
2304
- const Q = ((I = (Ee = X[y.index]) == null ? void 0 : Ee.value) == null ? void 0 : I.toString().toLowerCase()) ?? "", q = ((j = (_ = $[y.index]) == null ? void 0 : _.value) == null ? void 0 : j.toString().toLowerCase()) ?? "";
2322
+ return C ? T.sort(C) : T.sort((X, K) => {
2323
+ var Ee, O, _, j;
2324
+ const Q = ((O = (Ee = X[y.index]) == null ? void 0 : Ee.value) == null ? void 0 : O.toString().toLowerCase()) ?? "", q = ((j = (_ = K[y.index]) == null ? void 0 : _.value) == null ? void 0 : j.toString().toLowerCase()) ?? "";
2305
2325
  return Q.localeCompare(q);
2306
2326
  }), y.desc ? T.reverse() : T;
2307
- }, [g, y, x]), E = Oe(
2327
+ }, [g, y, x]), E = Ie(
2308
2328
  () => S.slice(v.num * v.size, (v.num + 1) * v.size),
2309
2329
  [S, v]
2310
- ), k = x.filter((T) => !T.csvExclude).map((T) => typeof T.name == "string" ? T.name : ""), P = g.map(
2330
+ ), D = x.filter((T) => !T.csvExclude).map((T) => typeof T.name == "string" ? T.name : ""), P = g.map(
2311
2331
  (T) => T.filter((C, F) => !x[F].csvExclude).map((C) => C.csv ?? C.value ?? "")
2312
- ), O = "muncher-table" + (a ? " " + a : "");
2313
- return /* @__PURE__ */ s.jsxs("section", { className: O, children: [
2332
+ ), I = "muncher-table" + (a ? " " + a : "");
2333
+ return /* @__PURE__ */ s.jsxs("section", { className: I, children: [
2314
2334
  /* @__PURE__ */ s.jsx("div", { className: "row head", children: x.map(
2315
2335
  (T, C) => T.visibility === "hidden" ? null : /* @__PURE__ */ s.jsx(
2316
2336
  "div",
@@ -2318,7 +2338,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2318
2338
  title: T.title,
2319
2339
  className: T.visibility ? "col main" : "col",
2320
2340
  children: typeof T.name == "string" ? /* @__PURE__ */ s.jsx("div", { className: "sort-button", children: /* @__PURE__ */ s.jsx(
2321
- To,
2341
+ Mo,
2322
2342
  {
2323
2343
  onClick: () => M(C),
2324
2344
  active: y.index === C,
@@ -2344,17 +2364,17 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2344
2364
  /* @__PURE__ */ s.jsxs("div", { className: "row-footer", children: [
2345
2365
  /* @__PURE__ */ s.jsxs("div", { className: "row-footer-buttons", children: [
2346
2366
  !o && /* @__PURE__ */ s.jsx(
2347
- bo,
2367
+ To,
2348
2368
  {
2349
2369
  filename: e ?? "download",
2350
2370
  variant: "secondary",
2351
2371
  title: "Download",
2352
- header: k,
2372
+ header: D,
2353
2373
  data: P
2354
2374
  }
2355
2375
  ),
2356
2376
  l && /* @__PURE__ */ s.jsx(
2357
- Mo,
2377
+ So,
2358
2378
  {
2359
2379
  name: "csv-input-file",
2360
2380
  handleOnChange: i,
@@ -2413,12 +2433,12 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
2413
2433
  ] })
2414
2434
  ] })
2415
2435
  ] });
2416
- }, Xh = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: "muncher-card", children: e }), wi = ze({});
2436
+ }, qh = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: "muncher-card", children: e }), bi = ze({});
2417
2437
  function Po(e) {
2418
2438
  const t = fe(null);
2419
2439
  return t.current === null && (t.current = e()), t.current;
2420
2440
  }
2421
- const Vo = typeof window < "u", Co = Vo ? lo : je, Tn = /* @__PURE__ */ ze(null);
2441
+ const Vo = typeof window < "u", Co = Vo ? co : je, Tn = /* @__PURE__ */ ze(null);
2422
2442
  function Mn(e, t) {
2423
2443
  e.indexOf(t) === -1 && e.push(t);
2424
2444
  }
@@ -2440,13 +2460,13 @@ typeof process < "u" && ((yi = process.env) == null ? void 0 : yi.NODE_ENV) !==
2440
2460
  if (!e)
2441
2461
  throw new Error(Zt(t, n));
2442
2462
  });
2443
- const ve = {}, bi = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
2444
- function Ti(e) {
2463
+ const ve = {}, Ti = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
2464
+ function Mi(e) {
2445
2465
  return typeof e == "object" && e !== null;
2446
2466
  }
2447
- const Mi = (e) => /^0[^.\s]+$/u.test(e);
2467
+ const Si = (e) => /^0[^.\s]+$/u.test(e);
2448
2468
  // @__NO_SIDE_EFFECTS__
2449
- function Si(e) {
2469
+ function Ai(e) {
2450
2470
  let t;
2451
2471
  return () => (t === void 0 && (t = e()), t);
2452
2472
  }
@@ -2480,45 +2500,45 @@ class Sn {
2480
2500
  }
2481
2501
  }
2482
2502
  const te = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, se = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
2483
- function Ai(e, t) {
2503
+ function Pi(e, t) {
2484
2504
  return t ? e * (1e3 / t) : 0;
2485
2505
  }
2486
2506
  const es = /* @__PURE__ */ new Set();
2487
2507
  function An(e, t, n) {
2488
2508
  e || es.has(t) || (console.warn(Zt(t, n)), es.add(t));
2489
2509
  }
2490
- const Pi = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Do = 1e-7, ko = 12;
2510
+ const Vi = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, ko = 1e-7, Do = 12;
2491
2511
  function Ro(e, t, n, i, r) {
2492
2512
  let a, o, l = 0;
2493
2513
  do
2494
- o = t + (n - t) / 2, a = Pi(o, i, r) - e, a > 0 ? n = o : t = o;
2495
- while (Math.abs(a) > Do && ++l < ko);
2514
+ o = t + (n - t) / 2, a = Vi(o, i, r) - e, a > 0 ? n = o : t = o;
2515
+ while (Math.abs(a) > ko && ++l < Do);
2496
2516
  return o;
2497
2517
  }
2498
2518
  function it(e, t, n, i) {
2499
2519
  if (e === t && n === i)
2500
2520
  return ie;
2501
2521
  const r = (a) => Ro(a, 0, 1, e, n);
2502
- return (a) => a === 0 || a === 1 ? a : Pi(r(a), t, i);
2522
+ return (a) => a === 0 || a === 1 ? a : Vi(r(a), t, i);
2503
2523
  }
2504
- const Vi = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ci = (e) => (t) => 1 - e(1 - t), Ei = /* @__PURE__ */ it(0.33, 1.53, 0.69, 0.99), Pn = /* @__PURE__ */ Ci(Ei), Di = /* @__PURE__ */ Vi(Pn), ki = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? 0.5 * Pn(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Vn = (e) => 1 - Math.sin(Math.acos(e)), Ri = Ci(Vn), Li = Vi(Vn), Lo = /* @__PURE__ */ it(0.42, 0, 1, 1), No = /* @__PURE__ */ it(0, 0, 0.58, 1), Ni = /* @__PURE__ */ it(0.42, 0, 0.58, 1), Fo = (e) => Array.isArray(e) && typeof e[0] != "number", Fi = (e) => Array.isArray(e) && typeof e[0] == "number", ts = {
2524
+ const Ci = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ei = (e) => (t) => 1 - e(1 - t), ki = /* @__PURE__ */ it(0.33, 1.53, 0.69, 0.99), Pn = /* @__PURE__ */ Ei(ki), Di = /* @__PURE__ */ Ci(Pn), Ri = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? 0.5 * Pn(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Vn = (e) => 1 - Math.sin(Math.acos(e)), Li = Ei(Vn), Ni = Ci(Vn), Lo = /* @__PURE__ */ it(0.42, 0, 1, 1), No = /* @__PURE__ */ it(0, 0, 0.58, 1), Fi = /* @__PURE__ */ it(0.42, 0, 0.58, 1), Fo = (e) => Array.isArray(e) && typeof e[0] != "number", Ii = (e) => Array.isArray(e) && typeof e[0] == "number", ts = {
2505
2525
  linear: ie,
2506
2526
  easeIn: Lo,
2507
- easeInOut: Ni,
2527
+ easeInOut: Fi,
2508
2528
  easeOut: No,
2509
2529
  circIn: Vn,
2510
- circInOut: Li,
2511
- circOut: Ri,
2530
+ circInOut: Ni,
2531
+ circOut: Li,
2512
2532
  backIn: Pn,
2513
2533
  backInOut: Di,
2514
- backOut: Ei,
2515
- anticipate: ki
2516
- }, Oo = (e) => typeof e == "string", ns = (e) => {
2517
- if (Fi(e)) {
2534
+ backOut: ki,
2535
+ anticipate: Ri
2536
+ }, Io = (e) => typeof e == "string", ns = (e) => {
2537
+ if (Ii(e)) {
2518
2538
  pe(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
2519
2539
  const [t, n, i, r] = e;
2520
2540
  return it(t, n, i, r);
2521
- } else if (Oo(e))
2541
+ } else if (Io(e))
2522
2542
  return pe(ts[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), ts[e];
2523
2543
  return e;
2524
2544
  }, ct = [
@@ -2539,7 +2559,7 @@ const Vi = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ci
2539
2559
  "postRender"
2540
2560
  // Compute
2541
2561
  ];
2542
- function Io(e, t) {
2562
+ function Oo(e, t) {
2543
2563
  let n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), r = !1, a = !1;
2544
2564
  const o = /* @__PURE__ */ new WeakSet();
2545
2565
  let l = {
@@ -2586,7 +2606,7 @@ function Oi(e, t) {
2586
2606
  delta: 0,
2587
2607
  timestamp: 0,
2588
2608
  isProcessing: !1
2589
- }, a = () => n = !0, o = ct.reduce((b, M) => (b[M] = Io(a), b), {}), { setup: l, read: c, resolveKeyframes: h, preUpdate: u, update: d, preRender: f, render: m, postRender: x } = o, g = () => {
2609
+ }, a = () => n = !0, o = ct.reduce((b, M) => (b[M] = Oo(a), b), {}), { setup: l, read: c, resolveKeyframes: h, preUpdate: u, update: d, preRender: f, render: m, postRender: x } = o, g = () => {
2590
2610
  const b = ve.useManualTiming, M = b ? r.timestamp : performance.now();
2591
2611
  n = !1, b || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(M - r.timestamp, Bo), 1)), r.timestamp = M, r.isProcessing = !0, l.process(r), c.process(r), h.process(r), u.process(r), d.process(r), f.process(r), m.process(r), x.process(r), r.isProcessing = !1, n && t && (i = !1, e(g));
2592
2612
  }, y = () => {
@@ -2594,13 +2614,13 @@ function Oi(e, t) {
2594
2614
  };
2595
2615
  return { schedule: ct.reduce((b, M) => {
2596
2616
  const S = o[M];
2597
- return b[M] = (E, k = !1, P = !1) => (n || y(), S.schedule(E, k, P)), b;
2617
+ return b[M] = (E, D = !1, P = !1) => (n || y(), S.schedule(E, D, P)), b;
2598
2618
  }, {}), cancel: (b) => {
2599
2619
  for (let M = 0; M < ct.length; M++)
2600
2620
  o[ct[M]].cancel(b);
2601
2621
  }, state: r, steps: o };
2602
2622
  }
2603
- const { schedule: D, cancel: we, state: U, steps: Ft } = /* @__PURE__ */ Oi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ie, !0);
2623
+ const { schedule: k, cancel: we, state: U, steps: Ft } = /* @__PURE__ */ Oi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ie, !0);
2604
2624
  let ft;
2605
2625
  function zo() {
2606
2626
  ft = void 0;
@@ -2610,7 +2630,7 @@ const Z = {
2610
2630
  set: (e) => {
2611
2631
  ft = e, queueMicrotask(zo);
2612
2632
  }
2613
- }, Ii = (e) => (t) => typeof t == "string" && t.startsWith(e), Bi = /* @__PURE__ */ Ii("--"), Ho = /* @__PURE__ */ Ii("var(--"), Cn = (e) => Ho(e) ? _o.test(e.split("/*")[0].trim()) : !1, _o = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
2633
+ }, Bi = (e) => (t) => typeof t == "string" && t.startsWith(e), zi = /* @__PURE__ */ Bi("--"), Ho = /* @__PURE__ */ Bi("var(--"), Cn = (e) => Ho(e) ? _o.test(e.split("/*")[0].trim()) : !1, _o = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
2614
2634
  function ss(e) {
2615
2635
  return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
2616
2636
  }
@@ -2628,7 +2648,7 @@ const _e = {
2628
2648
  function Uo(e) {
2629
2649
  return e == null;
2630
2650
  }
2631
- const Wo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Dn = (e, t) => (n) => !!(typeof n == "string" && Wo.test(n) && n.startsWith(e) || t && !Uo(n) && Object.prototype.hasOwnProperty.call(n, t)), zi = (e, t, n) => (i) => {
2651
+ const Wo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, kn = (e, t) => (n) => !!(typeof n == "string" && Wo.test(n) && n.startsWith(e) || t && !Uo(n) && Object.prototype.hasOwnProperty.call(n, t)), Hi = (e, t, n) => (i) => {
2632
2652
  if (typeof i != "string")
2633
2653
  return i;
2634
2654
  const [r, a, o, l] = i.match(En);
@@ -2638,13 +2658,13 @@ const Wo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
2638
2658
  [n]: parseFloat(o),
2639
2659
  alpha: l !== void 0 ? parseFloat(l) : 1
2640
2660
  };
2641
- }, $o = (e) => de(0, 255, e), Ot = {
2661
+ }, $o = (e) => de(0, 255, e), It = {
2642
2662
  ..._e,
2643
2663
  transform: (e) => Math.round($o(e))
2644
2664
  }, Se = {
2645
- test: /* @__PURE__ */ Dn("rgb", "red"),
2646
- parse: /* @__PURE__ */ zi("red", "green", "blue"),
2647
- transform: ({ red: e, green: t, blue: n, alpha: i = 1 }) => "rgba(" + Ot.transform(e) + ", " + Ot.transform(t) + ", " + Ot.transform(n) + ", " + Xe(Qe.transform(i)) + ")"
2665
+ test: /* @__PURE__ */ kn("rgb", "red"),
2666
+ parse: /* @__PURE__ */ Hi("red", "green", "blue"),
2667
+ transform: ({ red: e, green: t, blue: n, alpha: i = 1 }) => "rgba(" + It.transform(e) + ", " + It.transform(t) + ", " + It.transform(n) + ", " + Xe(Qe.transform(i)) + ")"
2648
2668
  };
2649
2669
  function Ko(e) {
2650
2670
  let t = "", n = "", i = "", r = "";
@@ -2656,7 +2676,7 @@ function Ko(e) {
2656
2676
  };
2657
2677
  }
2658
2678
  const Jt = {
2659
- test: /* @__PURE__ */ Dn("#"),
2679
+ test: /* @__PURE__ */ kn("#"),
2660
2680
  parse: Ko,
2661
2681
  transform: Se.transform
2662
2682
  }, rt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
@@ -2668,8 +2688,8 @@ const Jt = {
2668
2688
  parse: (e) => he.parse(e) / 100,
2669
2689
  transform: (e) => he.transform(e * 100)
2670
2690
  }, Re = {
2671
- test: /* @__PURE__ */ Dn("hsl", "hue"),
2672
- parse: /* @__PURE__ */ zi("hue", "saturation", "lightness"),
2691
+ test: /* @__PURE__ */ kn("hsl", "hue"),
2692
+ parse: /* @__PURE__ */ Hi("hue", "saturation", "lightness"),
2673
2693
  transform: ({ hue: e, saturation: t, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(e) + ", " + he.transform(Xe(t)) + ", " + he.transform(Xe(n)) + ", " + Xe(Qe.transform(i)) + ")"
2674
2694
  }, z = {
2675
2695
  test: (e) => Se.test(e) || Jt.test(e) || Re.test(e),
@@ -2684,39 +2704,39 @@ function qo(e) {
2684
2704
  var t, n;
2685
2705
  return isNaN(e) && typeof e == "string" && (((t = e.match(En)) == null ? void 0 : t.length) || 0) + (((n = e.match(Xo)) == null ? void 0 : n.length) || 0) > 0;
2686
2706
  }
2687
- const Hi = "number", _i = "color", Zo = "var", Jo = "var(", rs = "${}", Qo = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
2688
- function Ie(e) {
2707
+ const _i = "number", Ui = "color", Zo = "var", Jo = "var(", rs = "${}", Qo = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
2708
+ function Oe(e) {
2689
2709
  const t = e.toString(), n = [], i = {
2690
2710
  color: [],
2691
2711
  number: [],
2692
2712
  var: []
2693
2713
  }, r = [];
2694
2714
  let a = 0;
2695
- const l = t.replace(Qo, (c) => (z.test(c) ? (i.color.push(a), r.push(_i), n.push(z.parse(c))) : c.startsWith(Jo) ? (i.var.push(a), r.push(Zo), n.push(c)) : (i.number.push(a), r.push(Hi), n.push(parseFloat(c))), ++a, rs)).split(rs);
2715
+ const l = t.replace(Qo, (c) => (z.test(c) ? (i.color.push(a), r.push(Ui), n.push(z.parse(c))) : c.startsWith(Jo) ? (i.var.push(a), r.push(Zo), n.push(c)) : (i.number.push(a), r.push(_i), n.push(parseFloat(c))), ++a, rs)).split(rs);
2696
2716
  return { values: n, split: l, indexes: i, types: r };
2697
2717
  }
2698
2718
  function ea(e) {
2699
- return Ie(e).values;
2719
+ return Oe(e).values;
2700
2720
  }
2701
- function Ui({ split: e, types: t }) {
2721
+ function Wi({ split: e, types: t }) {
2702
2722
  const n = e.length;
2703
2723
  return (i) => {
2704
2724
  let r = "";
2705
2725
  for (let a = 0; a < n; a++)
2706
2726
  if (r += e[a], i[a] !== void 0) {
2707
2727
  const o = t[a];
2708
- o === Hi ? r += Xe(i[a]) : o === _i ? r += z.transform(i[a]) : r += i[a];
2728
+ o === _i ? r += Xe(i[a]) : o === Ui ? r += z.transform(i[a]) : r += i[a];
2709
2729
  }
2710
2730
  return r;
2711
2731
  };
2712
2732
  }
2713
2733
  function ta(e) {
2714
- return Ui(Ie(e));
2734
+ return Wi(Oe(e));
2715
2735
  }
2716
2736
  const na = (e) => typeof e == "number" ? 0 : z.test(e) ? z.getAnimatableNone(e) : e, sa = (e, t) => typeof e == "number" ? t != null && t.trim().endsWith("/") ? e : 0 : na(e);
2717
2737
  function ia(e) {
2718
- const t = Ie(e);
2719
- return Ui(t)(t.values.map((i, r) => sa(i, t.split[r])));
2738
+ const t = Oe(e);
2739
+ return Wi(t)(t.values.map((i, r) => sa(i, t.split[r])));
2720
2740
  }
2721
2741
  const ae = {
2722
2742
  test: qo,
@@ -2724,7 +2744,7 @@ const ae = {
2724
2744
  createTransformer: ta,
2725
2745
  getAnimatableNone: ia
2726
2746
  };
2727
- function It(e, t, n) {
2747
+ function Ot(e, t, n) {
2728
2748
  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;
2729
2749
  }
2730
2750
  function ra({ hue: e, saturation: t, lightness: n, alpha: i }) {
@@ -2734,7 +2754,7 @@ function ra({ hue: e, saturation: t, lightness: n, alpha: i }) {
2734
2754
  r = a = o = n;
2735
2755
  else {
2736
2756
  const l = n < 0.5 ? n * (1 + t) : n + t - n * t, c = 2 * n - l;
2737
- r = It(c, l, e + 1 / 3), a = It(c, l, e), o = It(c, l, e - 1 / 3);
2757
+ r = Ot(c, l, e + 1 / 3), a = Ot(c, l, e), o = Ot(c, l, e - 1 / 3);
2738
2758
  }
2739
2759
  return {
2740
2760
  red: Math.round(r * 255),
@@ -2770,11 +2790,11 @@ function la(e, t) {
2770
2790
  function ca(e, t) {
2771
2791
  return (n) => L(e, t, n);
2772
2792
  }
2773
- function kn(e) {
2774
- return typeof e == "number" ? ca : typeof e == "string" ? Cn(e) ? wt : z.test(e) ? as : da : Array.isArray(e) ? Wi : typeof e == "object" ? z.test(e) ? as : ua : wt;
2793
+ function Dn(e) {
2794
+ return typeof e == "number" ? ca : typeof e == "string" ? Cn(e) ? wt : z.test(e) ? as : da : Array.isArray(e) ? $i : typeof e == "object" ? z.test(e) ? as : ua : wt;
2775
2795
  }
2776
- function Wi(e, t) {
2777
- const n = [...e], i = n.length, r = e.map((a, o) => kn(a)(a, t[o]));
2796
+ function $i(e, t) {
2797
+ const n = [...e], i = n.length, r = e.map((a, o) => Dn(a)(a, t[o]));
2778
2798
  return (a) => {
2779
2799
  for (let o = 0; o < i; o++)
2780
2800
  n[o] = r[o](a);
@@ -2784,7 +2804,7 @@ function Wi(e, t) {
2784
2804
  function ua(e, t) {
2785
2805
  const n = { ...e, ...t }, i = {};
2786
2806
  for (const r in n)
2787
- e[r] !== void 0 && t[r] !== void 0 && (i[r] = kn(e[r])(e[r], t[r]));
2807
+ e[r] !== void 0 && t[r] !== void 0 && (i[r] = Dn(e[r])(e[r], t[r]));
2788
2808
  return (r) => {
2789
2809
  for (const a in i)
2790
2810
  n[a] = i[a](r);
@@ -2800,16 +2820,16 @@ function ha(e, t) {
2800
2820
  return n;
2801
2821
  }
2802
2822
  const da = (e, t) => {
2803
- const n = ae.createTransformer(t), i = Ie(e), r = Ie(t);
2804
- return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? Qt.has(e) && !r.values.length || Qt.has(t) && !i.values.length ? la(e, t) : st(Wi(ha(i, r), r.values), n) : (He(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), wt(e, t));
2823
+ const n = ae.createTransformer(t), i = Oe(e), r = Oe(t);
2824
+ return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? Qt.has(e) && !r.values.length || Qt.has(t) && !i.values.length ? la(e, t) : st($i(ha(i, r), r.values), n) : (He(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), wt(e, t));
2805
2825
  };
2806
- function $i(e, t, n) {
2807
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? L(e, t, n) : kn(e)(e, t);
2826
+ function Ki(e, t, n) {
2827
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? L(e, t, n) : Dn(e)(e, t);
2808
2828
  }
2809
2829
  const fa = (e) => {
2810
2830
  const t = ({ timestamp: n }) => e(n);
2811
2831
  return {
2812
- start: (n = !0) => D.update(t, n),
2832
+ start: (n = !0) => k.update(t, n),
2813
2833
  stop: () => we(t),
2814
2834
  /**
2815
2835
  * If we're processing this frame we can use the
@@ -2817,7 +2837,7 @@ const fa = (e) => {
2817
2837
  */
2818
2838
  now: () => U.isProcessing ? U.timestamp : Z.now()
2819
2839
  };
2820
- }, Ki = (e, t, n = 10) => {
2840
+ }, Gi = (e, t, n = 10) => {
2821
2841
  let i = "";
2822
2842
  const r = Math.max(Math.round(t / n), 2);
2823
2843
  for (let a = 0; a < r; a++)
@@ -2957,34 +2977,34 @@ function Tt(e = B.visualDuration, t = B.bounce) {
2957
2977
  velocity: -/* @__PURE__ */ se(n.velocity || 0)
2958
2978
  }), x = f || 0, g = h / (2 * Math.sqrt(c * u)), y = o - a, w = /* @__PURE__ */ se(Math.sqrt(c / u)), v = Math.abs(y) < 5;
2959
2979
  i || (i = v ? B.restSpeed.granular : B.restSpeed.default), r || (r = v ? B.restDelta.granular : B.restDelta.default);
2960
- let b, M, S, E, k, P;
2980
+ let b, M, S, E, D, P;
2961
2981
  if (g < 1)
2962
2982
  S = en(w, g), E = (x + g * w * y) / S, b = (T) => {
2963
2983
  const C = Math.exp(-g * w * T);
2964
2984
  return o - C * (E * Math.sin(S * T) + y * Math.cos(S * T));
2965
- }, k = g * w * E + y * S, P = g * w * y - E * S, M = (T) => Math.exp(-g * w * T) * (k * Math.sin(S * T) + P * Math.cos(S * T));
2985
+ }, D = g * w * E + y * S, P = g * w * y - E * S, M = (T) => Math.exp(-g * w * T) * (D * Math.sin(S * T) + P * Math.cos(S * T));
2966
2986
  else if (g === 1) {
2967
2987
  b = (C) => o - Math.exp(-w * C) * (y + (x + w * y) * C);
2968
2988
  const T = x + w * y;
2969
2989
  M = (C) => Math.exp(-w * C) * (w * T * C - x);
2970
2990
  } else {
2971
2991
  const T = w * Math.sqrt(g * g - 1);
2972
- b = ($) => {
2973
- const Q = Math.exp(-g * w * $), q = Math.min(T * $, 300);
2992
+ b = (K) => {
2993
+ const Q = Math.exp(-g * w * K), q = Math.min(T * K, 300);
2974
2994
  return o - Q * ((x + g * w * y) * Math.sinh(q) + T * y * Math.cosh(q)) / T;
2975
2995
  };
2976
2996
  const C = (x + g * w * y) / T, F = g * w * C - y * T, X = g * w * y - C * T;
2977
- M = ($) => {
2978
- const Q = Math.exp(-g * w * $), q = Math.min(T * $, 300);
2997
+ M = (K) => {
2998
+ const Q = Math.exp(-g * w * K), q = Math.min(T * K, 300);
2979
2999
  return Q * (F * Math.sinh(q) + X * Math.cosh(q));
2980
3000
  };
2981
3001
  }
2982
- const O = {
3002
+ const I = {
2983
3003
  calculatedDuration: m && d || null,
2984
3004
  velocity: (T) => /* @__PURE__ */ te(M(T)),
2985
3005
  next: (T) => {
2986
3006
  if (!m && g < 1) {
2987
- const F = Math.exp(-g * w * T), X = Math.sin(S * T), $ = Math.cos(S * T), Q = o - F * (E * X + y * $), q = /* @__PURE__ */ te(F * (k * X + P * $));
3007
+ const F = Math.exp(-g * w * T), X = Math.sin(S * T), K = Math.cos(S * T), Q = o - F * (E * X + y * K), q = /* @__PURE__ */ te(F * (D * X + P * K));
2988
3008
  return l.done = Math.abs(q) <= i && Math.abs(o - Q) <= r, l.value = l.done ? o : Q, l;
2989
3009
  }
2990
3010
  const C = b(T);
@@ -2997,22 +3017,22 @@ function Tt(e = B.visualDuration, t = B.bounce) {
2997
3017
  return l.value = l.done ? o : C, l;
2998
3018
  },
2999
3019
  toString: () => {
3000
- const T = Math.min(Rn(O), bt), C = Ki((F) => O.next(T * F).value, T, 30);
3020
+ const T = Math.min(Rn(I), bt), C = Gi((F) => I.next(T * F).value, T, 30);
3001
3021
  return T + "ms " + C;
3002
3022
  },
3003
3023
  toTransition: () => {
3004
3024
  }
3005
3025
  };
3006
- return O;
3026
+ return I;
3007
3027
  }
3008
3028
  Tt.applyToOptions = (e) => {
3009
3029
  const t = pa(e, 100, Tt);
3010
3030
  return e.ease = t.ease, e.duration = /* @__PURE__ */ te(t.duration), e.type = "keyframes", e;
3011
3031
  };
3012
3032
  const wa = 5;
3013
- function Gi(e, t, n) {
3033
+ function Yi(e, t, n) {
3014
3034
  const i = Math.max(t - wa, 0);
3015
- return Ai(n - e(i), t - i);
3035
+ return Pi(n - e(i), t - i);
3016
3036
  }
3017
3037
  function tn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: r = 10, bounceStiffness: a = 500, modifyTarget: o, min: l, max: c, restDelta: h = 0.5, restSpeed: u }) {
3018
3038
  const d = e[0], f = {
@@ -3023,14 +3043,14 @@ function tn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: i = 3
3023
3043
  const y = d + g, w = o === void 0 ? y : o(y);
3024
3044
  w !== y && (g = w - d);
3025
3045
  const v = (P) => -g * Math.exp(-P / i), b = (P) => w + v(P), M = (P) => {
3026
- const O = v(P), T = b(P);
3027
- f.done = Math.abs(O) <= h, f.value = f.done ? w : T;
3046
+ const I = v(P), T = b(P);
3047
+ f.done = Math.abs(I) <= h, f.value = f.done ? w : T;
3028
3048
  };
3029
3049
  let S, E;
3030
- const k = (P) => {
3050
+ const D = (P) => {
3031
3051
  m(f.value) && (S = P, E = Tt({
3032
3052
  keyframes: [f.value, x(f.value)],
3033
- velocity: Gi(b, P, f.value),
3053
+ velocity: Yi(b, P, f.value),
3034
3054
  // TODO: This should be passing * 1000
3035
3055
  damping: r,
3036
3056
  stiffness: a,
@@ -3038,16 +3058,16 @@ function tn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: i = 3
3038
3058
  restSpeed: u
3039
3059
  }));
3040
3060
  };
3041
- return k(0), {
3061
+ return D(0), {
3042
3062
  calculatedDuration: null,
3043
3063
  next: (P) => {
3044
- let O = !1;
3045
- return !E && S === void 0 && (O = !0, M(P), k(P)), S !== void 0 && P >= S ? E.next(P - S) : (!O && M(P), f);
3064
+ let I = !1;
3065
+ return !E && S === void 0 && (I = !0, M(P), D(P)), S !== void 0 && P >= S ? E.next(P - S) : (!I && M(P), f);
3046
3066
  }
3047
3067
  };
3048
3068
  }
3049
3069
  function ba(e, t, n) {
3050
- const i = [], r = n || ve.mix || $i, a = e.length - 1;
3070
+ const i = [], r = n || ve.mix || Ki, a = e.length - 1;
3051
3071
  for (let o = 0; o < a; o++) {
3052
3072
  let l = r(e[o], e[o + 1]);
3053
3073
  if (t) {
@@ -3093,7 +3113,7 @@ function Aa(e, t) {
3093
3113
  return e.map((n) => n * t);
3094
3114
  }
3095
3115
  function Pa(e, t) {
3096
- return e.map(() => t || Ni).splice(0, e.length - 1);
3116
+ return e.map(() => t || Fi).splice(0, e.length - 1);
3097
3117
  }
3098
3118
  function Le({ duration: e = 300, keyframes: t, times: n, ease: i = "easeInOut" }) {
3099
3119
  const r = Fo(i) ? i.map(ns) : ns(i), a = {
@@ -3124,7 +3144,7 @@ const Ca = {
3124
3144
  keyframes: Le,
3125
3145
  spring: Tt
3126
3146
  };
3127
- function Yi(e) {
3147
+ function Xi(e) {
3128
3148
  typeof e.type == "string" && (e.type = Ca[e.type]);
3129
3149
  }
3130
3150
  class Ln {
@@ -3165,11 +3185,11 @@ class Mt extends Ln {
3165
3185
  }
3166
3186
  initAnimation() {
3167
3187
  const { options: t } = this;
3168
- Yi(t);
3188
+ Xi(t);
3169
3189
  const { type: n = Le, repeat: i = 0, repeatDelay: r = 0, repeatType: a, velocity: o = 0 } = t;
3170
3190
  let { keyframes: l } = t;
3171
3191
  const c = n || Le;
3172
- process.env.NODE_ENV !== "production" && c !== Le && pe(l.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`, "spring-two-frames"), c !== Le && typeof l[0] != "number" && (this.mixKeyframes = st(Ea, $i(l[0], l[1])), l = [0, 100]);
3192
+ process.env.NODE_ENV !== "production" && c !== Le && pe(l.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`, "spring-two-frames"), c !== Le && typeof l[0] != "number" && (this.mixKeyframes = st(Ea, Ki(l[0], l[1])), l = [0, 100]);
3173
3193
  const h = c({ ...t, keyframes: l });
3174
3194
  a === "mirror" && (this.mirroredGenerator = c({
3175
3195
  ...t,
@@ -3194,15 +3214,15 @@ class Mt extends Ln {
3194
3214
  let b = this.currentTime, M = i;
3195
3215
  if (d) {
3196
3216
  const P = Math.min(this.currentTime, r) / l;
3197
- let O = Math.floor(P), T = P % 1;
3198
- !T && P >= 1 && (T = 1), T === 1 && O--, O = Math.min(O, d + 1), !!(O % 2) && (f === "reverse" ? (T = 1 - T, m && (T -= m / l)) : f === "mirror" && (M = o)), b = de(0, 1, T) * l;
3217
+ let I = Math.floor(P), T = P % 1;
3218
+ !T && P >= 1 && (T = 1), T === 1 && I--, I = Math.min(I, d + 1), !!(I % 2) && (f === "reverse" ? (T = 1 - T, m && (T -= m / l)) : f === "mirror" && (M = o)), b = de(0, 1, T) * l;
3199
3219
  }
3200
3220
  let S;
3201
3221
  v ? (this.delayState.value = u[0], S = this.delayState) : S = M.next(b), a && !v && (S.value = a(S.value));
3202
3222
  let { done: E } = S;
3203
3223
  !v && c !== null && (E = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
3204
- const k = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
3205
- return k && x !== tn && (S.value = Ct(u, this.options, y, this.speed)), g && g(S.value), k && this.finish(), S;
3224
+ const D = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
3225
+ return D && x !== tn && (S.value = Ct(u, this.options, y, this.speed)), g && g(S.value), D && this.finish(), S;
3206
3226
  }
3207
3227
  /**
3208
3228
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -3237,7 +3257,7 @@ class Mt extends Ln {
3237
3257
  if (this.generator.velocity)
3238
3258
  return this.generator.velocity(t);
3239
3259
  const n = this.generator.next(t).value;
3240
- return Gi((i) => this.generator.next(i).value, t, n);
3260
+ return Yi((i) => this.generator.next(i).value, t, n);
3241
3261
  }
3242
3262
  get speed() {
3243
3263
  return this.playbackSpeed;
@@ -3283,14 +3303,14 @@ class Mt extends Ln {
3283
3303
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), (n = this.driver) == null || n.stop(), t.observe(this);
3284
3304
  }
3285
3305
  }
3286
- function Da(e) {
3306
+ function ka(e) {
3287
3307
  for (let t = 1; t < e.length; t++)
3288
3308
  e[t] ?? (e[t] = e[t - 1]);
3289
3309
  }
3290
3310
  const Ae = (e) => e * 180 / Math.PI, nn = (e) => {
3291
3311
  const t = Ae(Math.atan2(e[1], e[0]));
3292
3312
  return sn(t);
3293
- }, ka = {
3313
+ }, Da = {
3294
3314
  x: 4,
3295
3315
  y: 5,
3296
3316
  translateX: 4,
@@ -3333,7 +3353,7 @@ function on(e, t) {
3333
3353
  i = Ra, r = n;
3334
3354
  else {
3335
3355
  const l = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
3336
- i = ka, r = l;
3356
+ i = Da, r = l;
3337
3357
  }
3338
3358
  if (!r)
3339
3359
  return rn(t);
@@ -3365,10 +3385,10 @@ const Ue = [
3365
3385
  "skew",
3366
3386
  "skewX",
3367
3387
  "skewY"
3368
- ], We = new Set(Ue), fs = (e) => e === _e || e === A, Fa = /* @__PURE__ */ new Set(["x", "y", "z"]), Oa = Ue.filter((e) => !Fa.has(e));
3369
- function Ia(e) {
3388
+ ], We = new Set(Ue), fs = (e) => e === _e || e === A, Fa = /* @__PURE__ */ new Set(["x", "y", "z"]), Ia = Ue.filter((e) => !Fa.has(e));
3389
+ function Oa(e) {
3370
3390
  const t = [];
3371
- return Oa.forEach((n) => {
3391
+ return Ia.forEach((n) => {
3372
3392
  const i = e.getValue(n);
3373
3393
  i !== void 0 && (t.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
3374
3394
  }), t;
@@ -3395,11 +3415,11 @@ ge.translateX = ge.x;
3395
3415
  ge.translateY = ge.y;
3396
3416
  const Pe = /* @__PURE__ */ new Set();
3397
3417
  let an = !1, ln = !1, cn = !1;
3398
- function Xi() {
3418
+ function qi() {
3399
3419
  if (ln) {
3400
3420
  const e = Array.from(Pe).filter((i) => i.needsMeasurement), t = new Set(e.map((i) => i.element)), n = /* @__PURE__ */ new Map();
3401
3421
  t.forEach((i) => {
3402
- const r = Ia(i);
3422
+ const r = Oa(i);
3403
3423
  r.length && (n.set(i, r), i.render());
3404
3424
  }), e.forEach((i) => i.measureInitialState()), t.forEach((i) => {
3405
3425
  i.render();
@@ -3414,20 +3434,20 @@ function Xi() {
3414
3434
  }
3415
3435
  ln = !1, an = !1, Pe.forEach((e) => e.complete(cn)), Pe.clear();
3416
3436
  }
3417
- function qi() {
3437
+ function Zi() {
3418
3438
  Pe.forEach((e) => {
3419
3439
  e.readKeyframes(), e.needsMeasurement && (ln = !0);
3420
3440
  });
3421
3441
  }
3422
3442
  function Ba() {
3423
- cn = !0, qi(), Xi(), cn = !1;
3443
+ cn = !0, Zi(), qi(), cn = !1;
3424
3444
  }
3425
3445
  class Nn {
3426
3446
  constructor(t, n, i, r, a, o = !1) {
3427
3447
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = i, this.motionValue = r, this.element = a, this.isAsync = o;
3428
3448
  }
3429
3449
  scheduleResolve() {
3430
- this.state = "scheduled", this.isAsync ? (Pe.add(this), an || (an = !0, D.read(qi), D.resolveKeyframes(Xi))) : (this.readKeyframes(), this.complete());
3450
+ this.state = "scheduled", this.isAsync ? (Pe.add(this), an || (an = !0, k.read(Zi), k.resolveKeyframes(qi))) : (this.readKeyframes(), this.complete());
3431
3451
  }
3432
3452
  readKeyframes() {
3433
3453
  const { unresolvedKeyframes: t, name: n, element: i, motionValue: r } = this;
@@ -3441,7 +3461,7 @@ class Nn {
3441
3461
  }
3442
3462
  t[0] === void 0 && (t[0] = o), r && a === void 0 && r.set(t[0]);
3443
3463
  }
3444
- Da(t);
3464
+ ka(t);
3445
3465
  }
3446
3466
  setFinalKeyframe() {
3447
3467
  }
@@ -3462,15 +3482,15 @@ class Nn {
3462
3482
  }
3463
3483
  }
3464
3484
  const za = (e) => e.startsWith("--");
3465
- function Zi(e, t, n) {
3485
+ function Ji(e, t, n) {
3466
3486
  za(t) ? e.style.setProperty(t, n) : e.style[t] = n;
3467
3487
  }
3468
3488
  const Ha = {};
3469
- function Ji(e, t) {
3470
- const n = /* @__PURE__ */ Si(e);
3489
+ function Qi(e, t) {
3490
+ const n = /* @__PURE__ */ Ai(e);
3471
3491
  return () => Ha[t] ?? n();
3472
3492
  }
3473
- const _a = /* @__PURE__ */ Ji(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Qi = /* @__PURE__ */ Ji(() => {
3493
+ const _a = /* @__PURE__ */ Qi(() => window.ScrollTimeline !== void 0, "scrollTimeline"), er = /* @__PURE__ */ Qi(() => {
3474
3494
  try {
3475
3495
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
3476
3496
  } catch {
@@ -3488,16 +3508,16 @@ const _a = /* @__PURE__ */ Ji(() => window.ScrollTimeline !== void 0, "scrollTim
3488
3508
  backIn: /* @__PURE__ */ Ye([0.31, 0.01, 0.66, -0.59]),
3489
3509
  backOut: /* @__PURE__ */ Ye([0.33, 1.53, 0.69, 0.99])
3490
3510
  };
3491
- function er(e, t) {
3511
+ function tr(e, t) {
3492
3512
  if (e)
3493
- return typeof e == "function" ? Qi() ? Ki(e, t) : "ease-out" : Fi(e) ? Ye(e) : Array.isArray(e) ? e.map((n) => er(n, t) || ps.easeOut) : ps[e];
3513
+ return typeof e == "function" ? er() ? Gi(e, t) : "ease-out" : Ii(e) ? Ye(e) : Array.isArray(e) ? e.map((n) => tr(n, t) || ps.easeOut) : ps[e];
3494
3514
  }
3495
3515
  function Ua(e, t, n, { delay: i = 0, duration: r = 300, repeat: a = 0, repeatType: o = "loop", ease: l = "easeOut", times: c } = {}, h = void 0) {
3496
3516
  const u = {
3497
3517
  [t]: n
3498
3518
  };
3499
3519
  c && (u.offset = c);
3500
- const d = er(l, r);
3520
+ const d = tr(l, r);
3501
3521
  Array.isArray(d) && (u.easing = d);
3502
3522
  const f = {
3503
3523
  delay: i,
@@ -3509,13 +3529,13 @@ function Ua(e, t, n, { delay: i = 0, duration: r = 300, repeat: a = 0, repeatTyp
3509
3529
  };
3510
3530
  return h && (f.pseudoElement = h), e.animate(u, f);
3511
3531
  }
3512
- function tr(e) {
3532
+ function nr(e) {
3513
3533
  return typeof e == "function" && "applyToOptions" in e;
3514
3534
  }
3515
3535
  function Wa({ type: e, ...t }) {
3516
- return tr(e) && Qi() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
3536
+ return nr(e) && er() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
3517
3537
  }
3518
- class nr extends Ln {
3538
+ class sr extends Ln {
3519
3539
  constructor(t) {
3520
3540
  if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t)
3521
3541
  return;
@@ -3525,7 +3545,7 @@ class nr extends Ln {
3525
3545
  this.animation = Ua(n, i, r, h, a), h.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
3526
3546
  if (this.finishedTime = this.time, !a) {
3527
3547
  const u = Ct(r, this.options, l, this.speed);
3528
- this.updateMotionValue && this.updateMotionValue(u), Zi(n, i, u), this.animation.cancel();
3548
+ this.updateMotionValue && this.updateMotionValue(u), Ji(n, i, u), this.animation.cancel();
3529
3549
  }
3530
3550
  c == null || c(), this.notifyFinished();
3531
3551
  };
@@ -3613,21 +3633,21 @@ class nr extends Ln {
3613
3633
  return this.allowFlatten && ((a = this.animation.effect) == null || a.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && _a() ? (this.animation.timeline = t, n && (this.animation.rangeStart = n), i && (this.animation.rangeEnd = i), ie) : r(this);
3614
3634
  }
3615
3635
  }
3616
- const sr = {
3617
- anticipate: ki,
3636
+ const ir = {
3637
+ anticipate: Ri,
3618
3638
  backInOut: Di,
3619
- circInOut: Li
3639
+ circInOut: Ni
3620
3640
  };
3621
3641
  function $a(e) {
3622
- return e in sr;
3642
+ return e in ir;
3623
3643
  }
3624
3644
  function Ka(e) {
3625
- typeof e.ease == "string" && $a(e.ease) && (e.ease = sr[e.ease]);
3645
+ typeof e.ease == "string" && $a(e.ease) && (e.ease = ir[e.ease]);
3626
3646
  }
3627
3647
  const zt = 10;
3628
- class Ga extends nr {
3648
+ class Ga extends sr {
3629
3649
  constructor(t) {
3630
- Ka(t), Yi(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
3650
+ Ka(t), Xi(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
3631
3651
  }
3632
3652
  /**
3633
3653
  * WAAPI doesn't natively have any interruption capabilities.
@@ -3649,7 +3669,7 @@ class Ga extends nr {
3649
3669
  ...o,
3650
3670
  autoplay: !1
3651
3671
  }), c = Math.max(zt, Z.now() - this.startTime), h = de(0, zt, c - zt), u = l.sample(c).value, { name: d } = this.options;
3652
- a && d && Zi(a, d, u), n.setWithVelocity(l.sample(Math.max(0, c - h)).value, u, h), l.stop();
3672
+ a && d && Ji(a, d, u), n.setWithVelocity(l.sample(Math.max(0, c - h)).value, u, h), l.stop();
3653
3673
  }
3654
3674
  }
3655
3675
  const ms = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
@@ -3670,12 +3690,12 @@ function Xa(e, t, n, i) {
3670
3690
  if (t === "display" || t === "visibility")
3671
3691
  return !0;
3672
3692
  const a = e[e.length - 1], o = ms(r, t), l = ms(a, t);
3673
- return He(o === l, `You are trying to animate ${t} from "${r}" to "${a}". "${o ? a : r}" is not an animatable value.`, "value-not-animatable"), !o || !l ? !1 : Ya(e) || (n === "spring" || tr(n)) && i;
3693
+ return He(o === l, `You are trying to animate ${t} from "${r}" to "${a}". "${o ? a : r}" is not an animatable value.`, "value-not-animatable"), !o || !l ? !1 : Ya(e) || (n === "spring" || nr(n)) && i;
3674
3694
  }
3675
3695
  function un(e) {
3676
3696
  e.duration = 0, e.type = "keyframes";
3677
3697
  }
3678
- const ir = /* @__PURE__ */ new Set([
3698
+ const rr = /* @__PURE__ */ new Set([
3679
3699
  "opacity",
3680
3700
  "clipPath",
3681
3701
  "filter",
@@ -3701,7 +3721,7 @@ const Ja = /* @__PURE__ */ new Set([
3701
3721
  "borderRightColor",
3702
3722
  "borderBottomColor",
3703
3723
  "borderLeftColor"
3704
- ]), Qa = /* @__PURE__ */ Si(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
3724
+ ]), Qa = /* @__PURE__ */ Ai(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
3705
3725
  function el(e) {
3706
3726
  var d;
3707
3727
  const { motionValue: t, name: n, repeatDelay: i, repeatType: r, damping: a, type: o, keyframes: l } = e;
@@ -3712,7 +3732,7 @@ function el(e) {
3712
3732
  * Force WAAPI for color properties with browser-only color formats
3713
3733
  * (oklch, oklab, lab, lch, etc.) that the JS animation path can't parse.
3714
3734
  */
3715
- (ir.has(n) || Ja.has(n) && Za(l)) && (n !== "transform" || !u) && /**
3735
+ (rr.has(n) || Ja.has(n) && Za(l)) && (n !== "transform" || !u) && /**
3716
3736
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
3717
3737
  * no way to read the value from WAAPI every frame.
3718
3738
  */
@@ -3821,7 +3841,7 @@ class nl extends Ln {
3821
3841
  this._animation && this.animation.cancel(), (t = this.keyframeResolver) == null || t.cancel();
3822
3842
  }
3823
3843
  }
3824
- function rr(e, t, n, i = 0, r = 1) {
3844
+ function or(e, t, n, i = 0, r = 1) {
3825
3845
  const a = Array.from(e).sort((h, u) => h.sortNodePosition(u)).indexOf(t), o = e.size, l = (o - 1) * i;
3826
3846
  return typeof n == "function" ? n(a, o) : r === 1 ? a * i : l - a * i;
3827
3847
  }
@@ -3837,7 +3857,7 @@ function il(e) {
3837
3857
  return [`--${n ?? i}`, r];
3838
3858
  }
3839
3859
  const rl = 4;
3840
- function or(e, t, n = 1) {
3860
+ function ar(e, t, n = 1) {
3841
3861
  pe(n <= rl, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
3842
3862
  const [i, r] = il(e);
3843
3863
  if (!i)
@@ -3845,9 +3865,9 @@ function or(e, t, n = 1) {
3845
3865
  const a = window.getComputedStyle(t).getPropertyValue(i);
3846
3866
  if (a) {
3847
3867
  const o = a.trim();
3848
- return bi(o) ? parseFloat(o) : o;
3868
+ return Ti(o) ? parseFloat(o) : o;
3849
3869
  }
3850
- return Cn(r) ? or(r, t, n + 1) : r;
3870
+ return Cn(r) ? ar(r, t, n + 1) : r;
3851
3871
  }
3852
3872
  const ol = {
3853
3873
  type: "spring",
@@ -3867,7 +3887,7 @@ const ol = {
3867
3887
  ease: [0.25, 0.1, 0.35, 1],
3868
3888
  duration: 0.3
3869
3889
  }, ul = (e, { keyframes: t }) => t.length > 2 ? ll : We.has(e) ? e.startsWith("scale") ? al(t[1]) : ol : cl;
3870
- function ar(e, t) {
3890
+ function lr(e, t) {
3871
3891
  if (e != null && e.inherit && t) {
3872
3892
  const { inherit: n, ...i } = e;
3873
3893
  return { ...t, ...i };
@@ -3876,7 +3896,7 @@ function ar(e, t) {
3876
3896
  }
3877
3897
  function Fn(e, t) {
3878
3898
  const n = (e == null ? void 0 : e[t]) ?? (e == null ? void 0 : e.default) ?? e;
3879
- return n !== e ? ar(n, e) : n;
3899
+ return n !== e ? lr(n, e) : n;
3880
3900
  }
3881
3901
  const hl = /* @__PURE__ */ new Set([
3882
3902
  "when",
@@ -3896,7 +3916,7 @@ function dl(e) {
3896
3916
  return !0;
3897
3917
  return !1;
3898
3918
  }
3899
- const On = (e, t, n, i = {}, r, a) => (o) => {
3919
+ const In = (e, t, n, i = {}, r, a) => (o) => {
3900
3920
  const l = Fn(i, e) || {}, c = l.delay || i.delay || 0;
3901
3921
  let { elapsed: h = 0 } = i;
3902
3922
  h = h - /* @__PURE__ */ te(c);
@@ -3921,7 +3941,7 @@ const On = (e, t, n, i = {}, r, a) => (o) => {
3921
3941
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (un(u), u.delay === 0 && (d = !0)), (ve.instantAnimations || ve.skipAnimations || r != null && r.shouldSkipAnimations) && (d = !0, un(u), u.delay = 0), u.allowFlatten = !l.type && !l.ease, d && !a && t.get() !== void 0) {
3922
3942
  const f = Ct(u.keyframes, l);
3923
3943
  if (f !== void 0) {
3924
- D.update(() => {
3944
+ k.update(() => {
3925
3945
  u.onUpdate(f), u.onComplete();
3926
3946
  });
3927
3947
  return;
@@ -3935,7 +3955,7 @@ function xs(e) {
3935
3955
  t[0][i] = n.get(), t[1][i] = n.getVelocity();
3936
3956
  }), t;
3937
3957
  }
3938
- function In(e, t, n, i) {
3958
+ function On(e, t, n, i) {
3939
3959
  if (typeof t == "function") {
3940
3960
  const [r, a] = xs(i);
3941
3961
  t = t(n !== void 0 ? n : e.custom, r, a);
@@ -3948,9 +3968,9 @@ function In(e, t, n, i) {
3948
3968
  }
3949
3969
  function Ve(e, t, n) {
3950
3970
  const i = e.getProps();
3951
- return In(i, t, n !== void 0 ? n : i.custom, e);
3971
+ return On(i, t, n !== void 0 ? n : i.custom, e);
3952
3972
  }
3953
- const lr = /* @__PURE__ */ new Set([
3973
+ const cr = /* @__PURE__ */ new Set([
3954
3974
  "width",
3955
3975
  "height",
3956
3976
  "top",
@@ -4028,7 +4048,7 @@ class pl {
4028
4048
  this.events[t] || (this.events[t] = new Sn());
4029
4049
  const i = this.events[t].add(n);
4030
4050
  return t === "change" ? () => {
4031
- i(), D.read(() => {
4051
+ i(), k.read(() => {
4032
4052
  this.events.change.getSize() || this.stop();
4033
4053
  });
4034
4054
  } : i;
@@ -4109,7 +4129,7 @@ class pl {
4109
4129
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > ys)
4110
4130
  return 0;
4111
4131
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, ys);
4112
- return Ai(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
4132
+ return Pi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
4113
4133
  }
4114
4134
  /**
4115
4135
  * Registers a new animation to control this `MotionValue`. Only one
@@ -4196,18 +4216,18 @@ function dn(e, t) {
4196
4216
  function Bn(e) {
4197
4217
  return e.replace(/([A-Z])/g, (t) => `-${t.toLowerCase()}`);
4198
4218
  }
4199
- const jl = "framerAppearId", cr = "data-" + Bn(jl);
4200
- function ur(e) {
4201
- return e.props[cr];
4219
+ const jl = "framerAppearId", ur = "data-" + Bn(jl);
4220
+ function hr(e) {
4221
+ return e.props[ur];
4202
4222
  }
4203
4223
  function vl({ protectedKeys: e, needsAnimating: t }, n) {
4204
4224
  const i = e.hasOwnProperty(n) && t[n] !== !0;
4205
4225
  return t[n] = !1, i;
4206
4226
  }
4207
- function hr(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
4227
+ function dr(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
4208
4228
  let { transition: a, transitionEnd: o, ...l } = t;
4209
4229
  const c = e.getDefaultTransition();
4210
- a = a ? ar(a, c) : c;
4230
+ a = a ? lr(a, c) : c;
4211
4231
  const h = a == null ? void 0 : a.reduceMotion;
4212
4232
  i && (a = i);
4213
4233
  const u = [], d = r && e.animationState && e.animationState.getState()[r];
@@ -4220,25 +4240,25 @@ function hr(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
4220
4240
  ...Fn(a || {}, f)
4221
4241
  }, y = m.get();
4222
4242
  if (y !== void 0 && !m.isAnimating() && !Array.isArray(x) && x === y && !g.velocity) {
4223
- D.update(() => m.set(x));
4243
+ k.update(() => m.set(x));
4224
4244
  continue;
4225
4245
  }
4226
4246
  let w = !1;
4227
4247
  if (window.MotionHandoffAnimation) {
4228
- const M = ur(e);
4248
+ const M = hr(e);
4229
4249
  if (M) {
4230
- const S = window.MotionHandoffAnimation(M, f, D);
4250
+ const S = window.MotionHandoffAnimation(M, f, k);
4231
4251
  S !== null && (g.startTime = S, w = !0);
4232
4252
  }
4233
4253
  }
4234
4254
  dn(e, f);
4235
4255
  const v = h ?? e.shouldReduceMotion;
4236
- m.start(On(f, m, x, v && lr.has(f) ? { type: !1 } : g, e, w));
4256
+ m.start(In(f, m, x, v && cr.has(f) ? { type: !1 } : g, e, w));
4237
4257
  const b = m.animation;
4238
4258
  b && u.push(b);
4239
4259
  }
4240
4260
  if (o) {
4241
- const f = () => D.update(() => {
4261
+ const f = () => k.update(() => {
4242
4262
  o && yl(e, o);
4243
4263
  });
4244
4264
  u.length ? Promise.all(u).then(f) : f();
@@ -4250,7 +4270,7 @@ function fn(e, t, n = {}) {
4250
4270
  const i = Ve(e, t, n.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
4251
4271
  let { transition: r = e.getDefaultTransition() || {} } = i || {};
4252
4272
  n.transitionOverride && (r = n.transitionOverride);
4253
- const a = i ? () => Promise.all(hr(e, i, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (h = 0) => {
4273
+ const a = i ? () => Promise.all(dr(e, i, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (h = 0) => {
4254
4274
  const { delayChildren: u = 0, staggerChildren: d, staggerDirection: f } = r;
4255
4275
  return wl(e, t, h, u, d, f, n);
4256
4276
  } : () => Promise.resolve(), { when: l } = r;
@@ -4265,7 +4285,7 @@ function wl(e, t, n = 0, i = 0, r = 0, a = 1, o) {
4265
4285
  for (const c of e.variantChildren)
4266
4286
  c.notify("AnimationStart", t), l.push(fn(c, t, {
4267
4287
  ...o,
4268
- delay: n + (typeof i == "function" ? 0 : i) + rr(e.variantChildren, c, i, r, a)
4288
+ delay: n + (typeof i == "function" ? 0 : i) + or(e.variantChildren, c, i, r, a)
4269
4289
  }).then(() => c.notify("AnimationComplete", t)));
4270
4290
  return Promise.all(l);
4271
4291
  }
@@ -4279,7 +4299,7 @@ function bl(e, t, n = {}) {
4279
4299
  i = fn(e, t, n);
4280
4300
  else {
4281
4301
  const r = typeof t == "function" ? Ve(e, t, n.custom) : t;
4282
- i = Promise.all(hr(e, r, n));
4302
+ i = Promise.all(dr(e, r, n));
4283
4303
  }
4284
4304
  return i.then(() => {
4285
4305
  e.notify("AnimationComplete", t);
@@ -4288,9 +4308,9 @@ function bl(e, t, n = {}) {
4288
4308
  const Tl = {
4289
4309
  test: (e) => e === "auto",
4290
4310
  parse: (e) => e
4291
- }, dr = (e) => (t) => t.test(e), fr = [_e, A, he, xe, Yo, Go, Tl], gs = (e) => fr.find(dr(e));
4311
+ }, fr = (e) => (t) => t.test(e), pr = [_e, A, he, xe, Yo, Go, Tl], gs = (e) => pr.find(fr(e));
4292
4312
  function Ml(e) {
4293
- return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Mi(e) : !0;
4313
+ return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Si(e) : !0;
4294
4314
  }
4295
4315
  const Sl = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
4296
4316
  function Al(e) {
@@ -4424,21 +4444,21 @@ const Pl = /\b([a-z-]*)\(.*?\)/gu, pn = {
4424
4444
  WebkitFilter: pn,
4425
4445
  mask: mn,
4426
4446
  WebkitMask: mn
4427
- }, pr = (e) => Cl[e], El = /* @__PURE__ */ new Set([pn, mn]);
4428
- function mr(e, t) {
4429
- let n = pr(e);
4447
+ }, mr = (e) => Cl[e], El = /* @__PURE__ */ new Set([pn, mn]);
4448
+ function xr(e, t) {
4449
+ let n = mr(e);
4430
4450
  return El.has(n) || (n = ae), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
4431
4451
  }
4432
- const Dl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
4433
- function kl(e, t, n) {
4452
+ const kl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
4453
+ function Dl(e, t, n) {
4434
4454
  let i = 0, r;
4435
4455
  for (; i < e.length && !r; ) {
4436
4456
  const a = e[i];
4437
- typeof a == "string" && !Dl.has(a) && Ie(a).values.length && (r = e[i]), i++;
4457
+ typeof a == "string" && !kl.has(a) && Oe(a).values.length && (r = e[i]), i++;
4438
4458
  }
4439
4459
  if (r && n)
4440
4460
  for (const a of t)
4441
- e[a] = mr(n, r);
4461
+ e[a] = xr(n, r);
4442
4462
  }
4443
4463
  class Rl extends Nn {
4444
4464
  constructor(t, n, i, r, a) {
@@ -4452,11 +4472,11 @@ class Rl extends Nn {
4452
4472
  for (let u = 0; u < t.length; u++) {
4453
4473
  let d = t[u];
4454
4474
  if (typeof d == "string" && (d = d.trim(), Cn(d))) {
4455
- const f = or(d, n.current);
4475
+ const f = ar(d, n.current);
4456
4476
  f !== void 0 && (t[u] = f), u === t.length - 1 && (this.finalKeyframe = d);
4457
4477
  }
4458
4478
  }
4459
- if (this.resolveNoneKeyframes(), !lr.has(i) || t.length !== 2)
4479
+ if (this.resolveNoneKeyframes(), !cr.has(i) || t.length !== 2)
4460
4480
  return;
4461
4481
  const [r, a] = t, o = gs(r), l = gs(a), c = ss(r), h = ss(a);
4462
4482
  if (c !== h && ge[i]) {
@@ -4475,7 +4495,7 @@ class Rl extends Nn {
4475
4495
  const { unresolvedKeyframes: t, name: n } = this, i = [];
4476
4496
  for (let r = 0; r < t.length; r++)
4477
4497
  (t[r] === null || Ml(t[r])) && i.push(r);
4478
- i.length && kl(t, i, n);
4498
+ i.length && Dl(t, i, n);
4479
4499
  }
4480
4500
  measureInitialState() {
4481
4501
  const { element: t, unresolvedKeyframes: n, name: i } = this;
@@ -4498,7 +4518,7 @@ class Rl extends Nn {
4498
4518
  }), this.resolveNoneKeyframes();
4499
4519
  }
4500
4520
  }
4501
- function xr(e, t, n) {
4521
+ function yr(e, t, n) {
4502
4522
  if (e == null)
4503
4523
  return [];
4504
4524
  if (e instanceof EventTarget)
@@ -4510,15 +4530,15 @@ function xr(e, t, n) {
4510
4530
  }
4511
4531
  return Array.from(e).filter((i) => i != null);
4512
4532
  }
4513
- const yr = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
4533
+ const gr = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
4514
4534
  function Ll(e) {
4515
- return Ti(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
4535
+ return Mi(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
4516
4536
  }
4517
4537
  const { schedule: Hn } = /* @__PURE__ */ Oi(queueMicrotask, !1), oe = {
4518
4538
  x: !1,
4519
4539
  y: !1
4520
4540
  };
4521
- function gr() {
4541
+ function jr() {
4522
4542
  return oe.x || oe.y;
4523
4543
  }
4524
4544
  function Nl(e) {
@@ -4528,8 +4548,8 @@ function Nl(e) {
4528
4548
  oe.x = oe.y = !1;
4529
4549
  });
4530
4550
  }
4531
- function jr(e, t) {
4532
- const n = xr(e), i = new AbortController(), r = {
4551
+ function vr(e, t) {
4552
+ const n = yr(e), i = new AbortController(), r = {
4533
4553
  passive: !0,
4534
4554
  ...t,
4535
4555
  signal: i.signal
@@ -4537,10 +4557,10 @@ function jr(e, t) {
4537
4557
  return [n, r, () => i.abort()];
4538
4558
  }
4539
4559
  function Fl(e) {
4540
- return !(e.pointerType === "touch" || gr());
4560
+ return !(e.pointerType === "touch" || jr());
4541
4561
  }
4542
- function Ol(e, t, n = {}) {
4543
- const [i, r, a] = jr(e, n);
4562
+ function Il(e, t, n = {}) {
4563
+ const [i, r, a] = vr(e, n);
4544
4564
  return i.forEach((o) => {
4545
4565
  let l = !1, c = !1, h;
4546
4566
  const u = () => {
@@ -4569,7 +4589,7 @@ function Ol(e, t, n = {}) {
4569
4589
  o.addEventListener("pointerenter", g, r), o.addEventListener("pointerdown", m, r);
4570
4590
  }), a;
4571
4591
  }
4572
- const vr = (e, t) => t ? e === t ? !0 : vr(e, t.parentElement) : !1, _n = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Il = /* @__PURE__ */ new Set([
4592
+ const wr = (e, t) => t ? e === t ? !0 : wr(e, t.parentElement) : !1, _n = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Ol = /* @__PURE__ */ new Set([
4573
4593
  "BUTTON",
4574
4594
  "INPUT",
4575
4595
  "SELECT",
@@ -4577,7 +4597,7 @@ const vr = (e, t) => t ? e === t ? !0 : vr(e, t.parentElement) : !1, _n = (e) =>
4577
4597
  "A"
4578
4598
  ]);
4579
4599
  function Bl(e) {
4580
- return Il.has(e.tagName) || e.isContentEditable === !0;
4600
+ return Ol.has(e.tagName) || e.isContentEditable === !0;
4581
4601
  }
4582
4602
  const zl = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
4583
4603
  function Hl(e) {
@@ -4608,11 +4628,11 @@ const _l = (e, t) => {
4608
4628
  n.addEventListener("keydown", i, t), n.addEventListener("blur", () => n.removeEventListener("keydown", i), t);
4609
4629
  };
4610
4630
  function ws(e) {
4611
- return _n(e) && !gr();
4631
+ return _n(e) && !jr();
4612
4632
  }
4613
4633
  const bs = /* @__PURE__ */ new WeakSet();
4614
4634
  function Ul(e, t, n = {}) {
4615
- const [i, r, a] = jr(e, n), o = (l) => {
4635
+ const [i, r, a] = vr(e, n), o = (l) => {
4616
4636
  const c = l.currentTarget;
4617
4637
  if (!ws(l) || bs.has(l))
4618
4638
  return;
@@ -4620,7 +4640,7 @@ function Ul(e, t, n = {}) {
4620
4640
  const h = t(c, l), u = (m, x) => {
4621
4641
  window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), pt.has(c) && pt.delete(c), ws(m) && typeof h == "function" && h(m, { success: x });
4622
4642
  }, d = (m) => {
4623
- u(m, c === window || c === document || n.useGlobalTarget || vr(c, m.target));
4643
+ u(m, c === window || c === document || n.useGlobalTarget || wr(c, m.target));
4624
4644
  }, f = (m) => {
4625
4645
  u(m, !1);
4626
4646
  };
@@ -4631,11 +4651,11 @@ function Ul(e, t, n = {}) {
4631
4651
  }), a;
4632
4652
  }
4633
4653
  function Un(e) {
4634
- return Ti(e) && "ownerSVGElement" in e;
4654
+ return Mi(e) && "ownerSVGElement" in e;
4635
4655
  }
4636
4656
  const mt = /* @__PURE__ */ new WeakMap();
4637
4657
  let ye;
4638
- const wr = (e, t, n) => (i, r) => r && r[0] ? r[0][e + "Size"] : Un(i) && "getBBox" in i ? i.getBBox()[t] : i[n], Wl = /* @__PURE__ */ wr("inline", "width", "offsetWidth"), $l = /* @__PURE__ */ wr("block", "height", "offsetHeight");
4658
+ const br = (e, t, n) => (i, r) => r && r[0] ? r[0][e + "Size"] : Un(i) && "getBBox" in i ? i.getBBox()[t] : i[n], Wl = /* @__PURE__ */ br("inline", "width", "offsetWidth"), $l = /* @__PURE__ */ br("block", "height", "offsetHeight");
4639
4659
  function Kl({ target: e, borderBoxSize: t }) {
4640
4660
  var n;
4641
4661
  (n = mt.get(e)) == null || n.forEach((i) => {
@@ -4657,7 +4677,7 @@ function Yl() {
4657
4677
  }
4658
4678
  function Xl(e, t) {
4659
4679
  ye || Yl();
4660
- const n = xr(e);
4680
+ const n = yr(e);
4661
4681
  return n.forEach((i) => {
4662
4682
  let r = mt.get(i);
4663
4683
  r || (r = /* @__PURE__ */ new Set(), mt.set(i, r)), r.add(t), ye == null || ye.observe(i);
@@ -4694,7 +4714,7 @@ function Ts(e, t) {
4694
4714
  function Jl(e) {
4695
4715
  return Un(e) && e.tagName === "svg";
4696
4716
  }
4697
- const Ql = [...fr, z, ae], ec = (e) => Ql.find(dr(e)), Ms = () => ({
4717
+ const Ql = [...pr, z, ae], ec = (e) => Ql.find(fr(e)), Ms = () => ({
4698
4718
  translate: 0,
4699
4719
  scale: 1,
4700
4720
  origin: 0,
@@ -4721,11 +4741,11 @@ const Wn = [
4721
4741
  "whileDrag",
4722
4742
  "exit"
4723
4743
  ], $n = ["initial", ...Wn];
4724
- function Dt(e) {
4744
+ function kt(e) {
4725
4745
  return Et(e.animate) || $n.some((t) => et(e[t]));
4726
4746
  }
4727
- function br(e) {
4728
- return !!(Dt(e) || e.variants);
4747
+ function Tr(e) {
4748
+ return !!(kt(e) || e.variants);
4729
4749
  }
4730
4750
  function nc(e, t, n) {
4731
4751
  for (const i in t) {
@@ -4747,9 +4767,9 @@ function nc(e, t, n) {
4747
4767
  t[i] === void 0 && e.removeValue(i);
4748
4768
  return t;
4749
4769
  }
4750
- const xn = { current: null }, Tr = { current: !1 }, sc = typeof window < "u";
4770
+ const xn = { current: null }, Mr = { current: !1 }, sc = typeof window < "u";
4751
4771
  function ic() {
4752
- if (Tr.current = !0, !!sc)
4772
+ if (Mr.current = !0, !!sc)
4753
4773
  if (window.matchMedia) {
4754
4774
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => xn.current = e.matches;
4755
4775
  e.addEventListener("change", t), t();
@@ -4766,7 +4786,7 @@ const As = [
4766
4786
  "LayoutAnimationComplete"
4767
4787
  ];
4768
4788
  let St = {};
4769
- function Mr(e) {
4789
+ function Sr(e) {
4770
4790
  St = e;
4771
4791
  }
4772
4792
  function rc() {
@@ -4788,10 +4808,10 @@ class oc {
4788
4808
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
4789
4809
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
4790
4810
  const m = Z.now();
4791
- this.renderScheduledAt < m && (this.renderScheduledAt = m, D.render(this.render, !1, !0));
4811
+ this.renderScheduledAt < m && (this.renderScheduledAt = m, k.render(this.render, !1, !0));
4792
4812
  };
4793
4813
  const { latestValues: h, renderState: u } = l;
4794
- this.latestValues = h, this.baseTarget = { ...h }, this.initialValues = n.initial ? { ...h } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = a, this.options = c, this.blockInitialAnimation = !!o, this.isControllingVariants = Dt(n), this.isVariantNode = br(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
4814
+ this.latestValues = h, this.baseTarget = { ...h }, this.initialValues = n.initial ? { ...h } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = a, this.options = c, this.blockInitialAnimation = !!o, this.isControllingVariants = kt(n), this.isVariantNode = Tr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
4795
4815
  const { willChange: d, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
4796
4816
  for (const m in f) {
4797
4817
  const x = f[m];
@@ -4803,7 +4823,7 @@ class oc {
4803
4823
  if (this.hasBeenMounted)
4804
4824
  for (const r in this.initialValues)
4805
4825
  (n = this.values.get(r)) == null || n.jump(this.initialValues[r]), this.latestValues[r] = this.initialValues[r];
4806
- this.current = t, tc.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, a) => this.bindToMotionValue(a, r)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Tr.current || ic(), this.shouldReduceMotion = xn.current), process.env.NODE_ENV !== "production" && An(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, (i = this.parent) == null || i.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
4826
+ this.current = t, tc.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, a) => this.bindToMotionValue(a, r)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Mr.current || ic(), this.shouldReduceMotion = xn.current), process.env.NODE_ENV !== "production" && An(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, (i = this.parent) == null || i.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
4807
4827
  }
4808
4828
  unmount() {
4809
4829
  var t;
@@ -4823,8 +4843,8 @@ class oc {
4823
4843
  this.children.delete(t), this.enteringChildren && this.enteringChildren.delete(t);
4824
4844
  }
4825
4845
  bindToMotionValue(t, n) {
4826
- if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), n.accelerate && ir.has(t) && this.current instanceof HTMLElement) {
4827
- const { factory: o, keyframes: l, times: c, ease: h, duration: u } = n.accelerate, d = new nr({
4846
+ if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), n.accelerate && rr.has(t) && this.current instanceof HTMLElement) {
4847
+ const { factory: o, keyframes: l, times: c, ease: h, duration: u } = n.accelerate, d = new sr({
4828
4848
  element: this.current,
4829
4849
  name: t,
4830
4850
  keyframes: l,
@@ -4840,7 +4860,7 @@ class oc {
4840
4860
  const i = We.has(t);
4841
4861
  i && this.onBindTransform && this.onBindTransform();
4842
4862
  const r = n.on("change", (o) => {
4843
- this.latestValues[t] = o, this.props.onUpdate && D.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
4863
+ this.latestValues[t] = o, this.props.onUpdate && k.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
4844
4864
  });
4845
4865
  let a;
4846
4866
  typeof window < "u" && window.MotionCheckAppearSync && (a = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(t, () => {
@@ -4957,7 +4977,7 @@ class oc {
4957
4977
  */
4958
4978
  readValue(t, n) {
4959
4979
  let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
4960
- return i != null && (typeof i == "string" && (bi(i) || Mi(i)) ? i = parseFloat(i) : !ec(i) && ae.test(n) && (i = mr(t, n)), this.setBaseTarget(t, W(i) ? i.get() : i)), W(i) ? i.get() : i;
4980
+ return i != null && (typeof i == "string" && (Ti(i) || Si(i)) ? i = parseFloat(i) : !ec(i) && ae.test(n) && (i = xr(t, n)), this.setBaseTarget(t, W(i) ? i.get() : i)), W(i) ? i.get() : i;
4961
4981
  }
4962
4982
  /**
4963
4983
  * Set the base target to later animate back to. This is currently
@@ -4975,7 +4995,7 @@ class oc {
4975
4995
  const { initial: n } = this.props;
4976
4996
  let i;
4977
4997
  if (typeof n == "string" || typeof n == "object") {
4978
- const o = In(this.props, n, (a = this.presenceContext) == null ? void 0 : a.custom);
4998
+ const o = On(this.props, n, (a = this.presenceContext) == null ? void 0 : a.custom);
4979
4999
  o && (i = o[t]);
4980
5000
  }
4981
5001
  if (n && i !== void 0)
@@ -4993,7 +5013,7 @@ class oc {
4993
5013
  Hn.render(this.render);
4994
5014
  }
4995
5015
  }
4996
- class Sr extends oc {
5016
+ class Ar extends oc {
4997
5017
  constructor() {
4998
5018
  super(...arguments), this.KeyframeResolver = Rl;
4999
5019
  }
@@ -5022,7 +5042,7 @@ class be {
5022
5042
  update() {
5023
5043
  }
5024
5044
  }
5025
- function Ar({ top: e, left: t, right: n, bottom: i }) {
5045
+ function Pr({ top: e, left: t, right: n, bottom: i }) {
5026
5046
  return {
5027
5047
  x: { min: t, max: n },
5028
5048
  y: { min: e, max: i }
@@ -5049,9 +5069,9 @@ function yn({ scale: e, scaleX: t, scaleY: n }) {
5049
5069
  return !_t(e) || !_t(t) || !_t(n);
5050
5070
  }
5051
5071
  function Me(e) {
5052
- return yn(e) || Pr(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
5072
+ return yn(e) || Vr(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
5053
5073
  }
5054
- function Pr(e) {
5074
+ function Vr(e) {
5055
5075
  return Ps(e.x) || Ps(e.y);
5056
5076
  }
5057
5077
  function Ps(e) {
@@ -5067,7 +5087,7 @@ function Vs(e, t, n, i, r) {
5067
5087
  function gn(e, t = 0, n = 1, i, r) {
5068
5088
  e.min = Vs(e.min, t, n, i, r), e.max = Vs(e.max, t, n, i, r);
5069
5089
  }
5070
- function Vr(e, { x: t, y: n }) {
5090
+ function Cr(e, { x: t, y: n }) {
5071
5091
  gn(e.x, t.translate, t.scale, t.originPoint), gn(e.y, n.translate, n.scale, n.originPoint);
5072
5092
  }
5073
5093
  const Cs = 0.999999999999, Es = 1.0000000000001;
@@ -5081,29 +5101,29 @@ function cc(e, t, n, i = !1) {
5081
5101
  for (let c = 0; c < r; c++) {
5082
5102
  a = n[c], o = a.projectionDelta;
5083
5103
  const { visualElement: h } = a.options;
5084
- h && h.props.style && h.props.style.display === "contents" || (i && a.options.layoutScroll && a.scroll && a !== a.root && (ue(e.x, -a.scroll.offset.x), ue(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, Vr(e, o)), i && Me(a.latestValues) && yt(e, a.latestValues, (l = a.layout) == null ? void 0 : l.layoutBox));
5104
+ h && h.props.style && h.props.style.display === "contents" || (i && a.options.layoutScroll && a.scroll && a !== a.root && (ue(e.x, -a.scroll.offset.x), ue(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, Cr(e, o)), i && Me(a.latestValues) && yt(e, a.latestValues, (l = a.layout) == null ? void 0 : l.layoutBox));
5085
5105
  }
5086
5106
  t.x < Es && t.x > Cs && (t.x = 1), t.y < Es && t.y > Cs && (t.y = 1);
5087
5107
  }
5088
5108
  function ue(e, t) {
5089
5109
  e.min += t, e.max += t;
5090
5110
  }
5091
- function Ds(e, t, n, i, r = 0.5) {
5111
+ function ks(e, t, n, i, r = 0.5) {
5092
5112
  const a = L(e.min, e.max, r);
5093
5113
  gn(e, t, n, a, i);
5094
5114
  }
5095
- function ks(e, t) {
5115
+ function Ds(e, t) {
5096
5116
  return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
5097
5117
  }
5098
5118
  function yt(e, t, n) {
5099
5119
  const i = n ?? e;
5100
- Ds(e.x, ks(t.x, i.x), t.scaleX, t.scale, t.originX), Ds(e.y, ks(t.y, i.y), t.scaleY, t.scale, t.originY);
5120
+ ks(e.x, Ds(t.x, i.x), t.scaleX, t.scale, t.originX), ks(e.y, Ds(t.y, i.y), t.scaleY, t.scale, t.originY);
5101
5121
  }
5102
- function Cr(e, t) {
5103
- return Ar(lc(e.getBoundingClientRect(), t));
5122
+ function Er(e, t) {
5123
+ return Pr(lc(e.getBoundingClientRect(), t));
5104
5124
  }
5105
5125
  function uc(e, t, n) {
5106
- const i = Cr(e, n), { scroll: r } = t;
5126
+ const i = Er(e, n), { scroll: r } = t;
5107
5127
  return r && (ue(i.x, r.offset.x), ue(i.y, r.offset.y)), i;
5108
5128
  }
5109
5129
  const hc = {
@@ -5126,7 +5146,7 @@ function fc(e, t, n) {
5126
5146
  c = o.startsWith("scale") ? h === 1 : h === 0;
5127
5147
  }
5128
5148
  if (!c || n) {
5129
- const h = yr(l, zn[o]);
5149
+ const h = gr(l, zn[o]);
5130
5150
  if (!c) {
5131
5151
  r = !1;
5132
5152
  const u = hc[o] || o;
@@ -5145,11 +5165,11 @@ function Kn(e, t, n) {
5145
5165
  if (We.has(c)) {
5146
5166
  o = !0;
5147
5167
  continue;
5148
- } else if (Bi(c)) {
5168
+ } else if (zi(c)) {
5149
5169
  r[c] = h;
5150
5170
  continue;
5151
5171
  } else {
5152
- const u = yr(h, zn[c]);
5172
+ const u = gr(h, zn[c]);
5153
5173
  c.startsWith("origin") ? (l = !0, a[c] = u) : i[c] = u;
5154
5174
  }
5155
5175
  }
@@ -5158,7 +5178,7 @@ function Kn(e, t, n) {
5158
5178
  i.transformOrigin = `${c} ${h} ${u}`;
5159
5179
  }
5160
5180
  }
5161
- function Er(e, { style: t, vars: n }, i, r) {
5181
+ function kr(e, { style: t, vars: n }, i, r) {
5162
5182
  const a = e.style;
5163
5183
  let o;
5164
5184
  for (o in t)
@@ -5223,21 +5243,21 @@ function Gn(e, t, n) {
5223
5243
  function mc(e) {
5224
5244
  return window.getComputedStyle(e);
5225
5245
  }
5226
- class xc extends Sr {
5246
+ class xc extends Ar {
5227
5247
  constructor() {
5228
- super(...arguments), this.type = "html", this.renderInstance = Er;
5248
+ super(...arguments), this.type = "html", this.renderInstance = kr;
5229
5249
  }
5230
5250
  readValueFromInstance(t, n) {
5231
5251
  var i;
5232
5252
  if (We.has(n))
5233
5253
  return (i = this.projection) != null && i.isProjecting ? rn(n) : La(t, n);
5234
5254
  {
5235
- const r = mc(t), a = (Bi(n) ? r.getPropertyValue(n) : r[n]) || 0;
5255
+ const r = mc(t), a = (zi(n) ? r.getPropertyValue(n) : r[n]) || 0;
5236
5256
  return typeof a == "string" ? a.trim() : a;
5237
5257
  }
5238
5258
  }
5239
5259
  measureInstanceViewportBox(t, { transformPagePoint: n }) {
5240
- return Cr(t, n);
5260
+ return Er(t, n);
5241
5261
  }
5242
5262
  build(t, n, i) {
5243
5263
  Kn(t, n, i.transformTemplate);
@@ -5264,7 +5284,7 @@ const vc = [
5264
5284
  "offsetRotate",
5265
5285
  "offsetAnchor"
5266
5286
  ];
5267
- function kr(e, {
5287
+ function Rr(e, {
5268
5288
  attrX: t,
5269
5289
  attrY: n,
5270
5290
  attrScale: i,
@@ -5285,7 +5305,7 @@ function kr(e, {
5285
5305
  d[m] !== void 0 && (f[m] = d[m], delete d[m]);
5286
5306
  t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && jc(d, r, a, o, !1);
5287
5307
  }
5288
- const Rr = /* @__PURE__ */ new Set([
5308
+ const Lr = /* @__PURE__ */ new Set([
5289
5309
  "baseFrequency",
5290
5310
  "diffuseConstant",
5291
5311
  "kernelMatrix",
@@ -5309,13 +5329,13 @@ const Rr = /* @__PURE__ */ new Set([
5309
5329
  "startOffset",
5310
5330
  "textLength",
5311
5331
  "lengthAdjust"
5312
- ]), Lr = (e) => typeof e == "string" && e.toLowerCase() === "svg";
5332
+ ]), Nr = (e) => typeof e == "string" && e.toLowerCase() === "svg";
5313
5333
  function wc(e, t, n, i) {
5314
- Er(e, t, void 0, i);
5334
+ kr(e, t, void 0, i);
5315
5335
  for (const r in t.attrs)
5316
- e.setAttribute(Rr.has(r) ? r : Bn(r), t.attrs[r]);
5336
+ e.setAttribute(Lr.has(r) ? r : Bn(r), t.attrs[r]);
5317
5337
  }
5318
- function Nr(e, t, n) {
5338
+ function Fr(e, t, n) {
5319
5339
  const i = Gn(e, t, n);
5320
5340
  for (const r in e)
5321
5341
  if (W(e[r]) || W(t[r])) {
@@ -5324,7 +5344,7 @@ function Nr(e, t, n) {
5324
5344
  }
5325
5345
  return i;
5326
5346
  }
5327
- class bc extends Sr {
5347
+ class bc extends Ar {
5328
5348
  constructor() {
5329
5349
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = H;
5330
5350
  }
@@ -5333,30 +5353,30 @@ class bc extends Sr {
5333
5353
  }
5334
5354
  readValueFromInstance(t, n) {
5335
5355
  if (We.has(n)) {
5336
- const i = pr(n);
5356
+ const i = mr(n);
5337
5357
  return i && i.default || 0;
5338
5358
  }
5339
- return n = Rr.has(n) ? n : Bn(n), t.getAttribute(n);
5359
+ return n = Lr.has(n) ? n : Bn(n), t.getAttribute(n);
5340
5360
  }
5341
5361
  scrapeMotionValuesFromProps(t, n, i) {
5342
- return Nr(t, n, i);
5362
+ return Fr(t, n, i);
5343
5363
  }
5344
5364
  build(t, n, i) {
5345
- kr(t, n, this.isSVGTag, i.transformTemplate, i.style);
5365
+ Rr(t, n, this.isSVGTag, i.transformTemplate, i.style);
5346
5366
  }
5347
5367
  renderInstance(t, n, i, r) {
5348
5368
  wc(t, n, i, r);
5349
5369
  }
5350
5370
  mount(t) {
5351
- this.isSVGTag = Lr(t.tagName), super.mount(t);
5371
+ this.isSVGTag = Nr(t.tagName), super.mount(t);
5352
5372
  }
5353
5373
  }
5354
5374
  const Tc = $n.length;
5355
- function Fr(e) {
5375
+ function Ir(e) {
5356
5376
  if (!e)
5357
5377
  return;
5358
5378
  if (!e.isControllingVariants) {
5359
- const n = e.parent ? Fr(e.parent) || {} : {};
5379
+ const n = e.parent ? Ir(e.parent) || {} : {};
5360
5380
  return e.props.initial !== void 0 && (n.initial = e.props.initial), n;
5361
5381
  }
5362
5382
  const t = {};
@@ -5396,13 +5416,13 @@ function Pc(e) {
5396
5416
  t = h(e);
5397
5417
  }
5398
5418
  function l(h) {
5399
- const { props: u } = e, d = Fr(e.parent) || {}, f = [], m = /* @__PURE__ */ new Set();
5419
+ const { props: u } = e, d = Ir(e.parent) || {}, f = [], m = /* @__PURE__ */ new Set();
5400
5420
  let x = {}, g = 1 / 0;
5401
5421
  for (let w = 0; w < Sc; w++) {
5402
5422
  const v = Mc[w], b = n[v], M = u[v] !== void 0 ? u[v] : d[v], S = et(M), E = v === h ? b.isActive : null;
5403
5423
  E === !1 && (g = w);
5404
- let k = M === d[v] && M !== u[v] && S;
5405
- if (k && (i || r) && e.manuallyAnimateOnMount && (k = !1), b.protectedKeys = { ...x }, // If it isn't active and hasn't *just* been set as inactive
5424
+ let D = M === d[v] && M !== u[v] && S;
5425
+ if (D && (i || r) && e.manuallyAnimateOnMount && (D = !1), b.protectedKeys = { ...x }, // If it isn't active and hasn't *just* been set as inactive
5406
5426
  !b.isActive && E === null || // If we didn't and don't have any defined prop for this animation type
5407
5427
  !M && !b.prevProp || // Or if the prop doesn't define an animation
5408
5428
  Et(M) || typeof M == "boolean")
@@ -5415,40 +5435,40 @@ function Pc(e) {
5415
5435
  continue;
5416
5436
  }
5417
5437
  const P = Vc(b.prevProp, M);
5418
- let O = P || // If we're making this variant active, we want to always make it active
5419
- v === h && b.isActive && !k && S || // If we removed a higher-priority variant (i is in reverse order)
5438
+ let I = P || // If we're making this variant active, we want to always make it active
5439
+ v === h && b.isActive && !D && S || // If we removed a higher-priority variant (i is in reverse order)
5420
5440
  w > g && S, T = !1;
5421
5441
  const C = Array.isArray(M) ? M : [M];
5422
5442
  let F = C.reduce(a(v), {});
5423
5443
  E === !1 && (F = {});
5424
- const { prevResolvedValues: X = {} } = b, $ = {
5444
+ const { prevResolvedValues: X = {} } = b, K = {
5425
5445
  ...X,
5426
5446
  ...F
5427
- }, Q = (I) => {
5428
- O = !0, m.has(I) && (T = !0, m.delete(I)), b.needsAnimating[I] = !0;
5429
- const _ = e.getValue(I);
5447
+ }, Q = (O) => {
5448
+ I = !0, m.has(O) && (T = !0, m.delete(O)), b.needsAnimating[O] = !0;
5449
+ const _ = e.getValue(O);
5430
5450
  _ && (_.liveStyle = !1);
5431
5451
  };
5432
- for (const I in $) {
5433
- const _ = F[I], j = X[I];
5434
- if (x.hasOwnProperty(I))
5452
+ for (const O in K) {
5453
+ const _ = F[O], j = X[O];
5454
+ if (x.hasOwnProperty(O))
5435
5455
  continue;
5436
5456
  let V = !1;
5437
- hn(_) && hn(j) ? V = !Or(_, j) : V = _ !== j, V ? _ != null ? Q(I) : m.add(I) : _ !== void 0 && m.has(I) ? Q(I) : b.protectedKeys[I] = !0;
5457
+ hn(_) && hn(j) ? V = !Or(_, j) : V = _ !== j, V ? _ != null ? Q(O) : m.add(O) : _ !== void 0 && m.has(O) ? Q(O) : b.protectedKeys[O] = !0;
5438
5458
  }
5439
- b.prevProp = M, b.prevResolvedValues = F, b.isActive && (x = { ...x, ...F }), (i || r) && e.blockInitialAnimation && (O = !1);
5440
- const q = k && P;
5441
- O && (!q || T) && f.push(...C.map((I) => {
5459
+ b.prevProp = M, b.prevResolvedValues = F, b.isActive && (x = { ...x, ...F }), (i || r) && e.blockInitialAnimation && (I = !1);
5460
+ const q = D && P;
5461
+ I && (!q || T) && f.push(...C.map((O) => {
5442
5462
  const _ = { type: v };
5443
- if (typeof I == "string" && (i || r) && !q && e.manuallyAnimateOnMount && e.parent) {
5444
- const { parent: j } = e, V = Ve(j, I);
5463
+ if (typeof O == "string" && (i || r) && !q && e.manuallyAnimateOnMount && e.parent) {
5464
+ const { parent: j } = e, V = Ve(j, O);
5445
5465
  if (j.enteringChildren && V) {
5446
5466
  const { delayChildren: R } = V.transition || {};
5447
- _.delay = rr(j.enteringChildren, e, R);
5467
+ _.delay = or(j.enteringChildren, e, R);
5448
5468
  }
5449
5469
  }
5450
5470
  return {
5451
- animation: I,
5471
+ animation: O,
5452
5472
  options: _
5453
5473
  };
5454
5474
  }));
@@ -5521,7 +5541,7 @@ function re(e, t) {
5521
5541
  function Ns(e, t) {
5522
5542
  e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
5523
5543
  }
5524
- const Ir = 1e-4, Cc = 1 - Ir, Ec = 1 + Ir, Br = 0.01, Dc = 0 - Br, kc = 0 + Br;
5544
+ const Br = 1e-4, Cc = 1 - Br, Ec = 1 + Br, zr = 0.01, kc = 0 - zr, Dc = 0 + zr;
5525
5545
  function J(e) {
5526
5546
  return e.max - e.min;
5527
5547
  }
@@ -5529,24 +5549,24 @@ function Rc(e, t, n) {
5529
5549
  return Math.abs(e - t) <= n;
5530
5550
  }
5531
5551
  function Fs(e, t, n, i = 0.5) {
5532
- e.origin = i, e.originPoint = L(t.min, t.max, e.origin), e.scale = J(n) / J(t), e.translate = L(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Cc && e.scale <= Ec || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Dc && e.translate <= kc || isNaN(e.translate)) && (e.translate = 0);
5552
+ e.origin = i, e.originPoint = L(t.min, t.max, e.origin), e.scale = J(n) / J(t), e.translate = L(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Cc && e.scale <= Ec || isNaN(e.scale)) && (e.scale = 1), (e.translate >= kc && e.translate <= Dc || isNaN(e.translate)) && (e.translate = 0);
5533
5553
  }
5534
5554
  function qe(e, t, n, i) {
5535
5555
  Fs(e.x, t.x, n.x, i ? i.originX : void 0), Fs(e.y, t.y, n.y, i ? i.originY : void 0);
5536
5556
  }
5537
- function Os(e, t, n, i = 0) {
5557
+ function Is(e, t, n, i = 0) {
5538
5558
  const r = i ? L(n.min, n.max, i) : n.min;
5539
5559
  e.min = r + t.min, e.max = e.min + J(t);
5540
5560
  }
5541
5561
  function Lc(e, t, n, i) {
5542
- Os(e.x, t.x, n.x, i == null ? void 0 : i.x), Os(e.y, t.y, n.y, i == null ? void 0 : i.y);
5562
+ Is(e.x, t.x, n.x, i == null ? void 0 : i.x), Is(e.y, t.y, n.y, i == null ? void 0 : i.y);
5543
5563
  }
5544
- function Is(e, t, n, i = 0) {
5564
+ function Os(e, t, n, i = 0) {
5545
5565
  const r = i ? L(n.min, n.max, i) : n.min;
5546
5566
  e.min = t.min - r, e.max = e.min + J(t);
5547
5567
  }
5548
5568
  function Pt(e, t, n, i) {
5549
- Is(e.x, t.x, n.x, i == null ? void 0 : i.x), Is(e.y, t.y, n.y, i == null ? void 0 : i.y);
5569
+ Os(e.x, t.x, n.x, i == null ? void 0 : i.x), Os(e.y, t.y, n.y, i == null ? void 0 : i.y);
5550
5570
  }
5551
5571
  function Bs(e, t, n, i, r) {
5552
5572
  return e -= t, e = At(e, 1 / n, i), r !== void 0 && (e = At(e, 1 / r, i)), e;
@@ -5560,26 +5580,26 @@ function Nc(e, t = 0, n = 1, i = 0.5, r, a = e, o = e) {
5560
5580
  function zs(e, t, [n, i, r], a, o) {
5561
5581
  Nc(e, t[n], t[i], t[r], t.scale, a, o);
5562
5582
  }
5563
- const Fc = ["x", "scaleX", "originX"], Oc = ["y", "scaleY", "originY"];
5583
+ const Fc = ["x", "scaleX", "originX"], Ic = ["y", "scaleY", "originY"];
5564
5584
  function Hs(e, t, n, i) {
5565
- zs(e.x, t, Fc, n ? n.x : void 0, i ? i.x : void 0), zs(e.y, t, Oc, n ? n.y : void 0, i ? i.y : void 0);
5585
+ zs(e.x, t, Fc, n ? n.x : void 0, i ? i.x : void 0), zs(e.y, t, Ic, n ? n.y : void 0, i ? i.y : void 0);
5566
5586
  }
5567
5587
  function _s(e) {
5568
5588
  return e.translate === 0 && e.scale === 1;
5569
5589
  }
5570
- function zr(e) {
5590
+ function Hr(e) {
5571
5591
  return _s(e.x) && _s(e.y);
5572
5592
  }
5573
5593
  function Us(e, t) {
5574
5594
  return e.min === t.min && e.max === t.max;
5575
5595
  }
5576
- function Ic(e, t) {
5596
+ function Oc(e, t) {
5577
5597
  return Us(e.x, t.x) && Us(e.y, t.y);
5578
5598
  }
5579
5599
  function Ws(e, t) {
5580
5600
  return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
5581
5601
  }
5582
- function Hr(e, t) {
5602
+ function _r(e, t) {
5583
5603
  return Ws(e.x, t.x) && Ws(e.y, t.y);
5584
5604
  }
5585
5605
  function $s(e) {
@@ -5601,16 +5621,16 @@ function Bc(e, t, n) {
5601
5621
  const l = e.x.scale * t.x, c = e.y.scale * t.y;
5602
5622
  return (l !== 1 || c !== 1) && (i += `scale(${l}, ${c})`), i || "none";
5603
5623
  }
5604
- const _r = [
5624
+ const Ur = [
5605
5625
  "borderTopLeftRadius",
5606
5626
  "borderTopRightRadius",
5607
5627
  "borderBottomLeftRadius",
5608
5628
  "borderBottomRightRadius"
5609
- ], zc = _r.length, Gs = (e) => typeof e == "string" ? parseFloat(e) : e, Ys = (e) => typeof e == "number" || A.test(e);
5629
+ ], zc = Ur.length, Gs = (e) => typeof e == "string" ? parseFloat(e) : e, Ys = (e) => typeof e == "number" || A.test(e);
5610
5630
  function Hc(e, t, n, i, r, a) {
5611
5631
  r ? (e.opacity = L(0, n.opacity ?? 1, _c(i)), e.opacityExit = L(t.opacity ?? 1, 0, Uc(i))) : a && (e.opacity = L(t.opacity ?? 1, n.opacity ?? 1, i));
5612
5632
  for (let o = 0; o < zc; o++) {
5613
- const l = _r[o];
5633
+ const l = Ur[o];
5614
5634
  let c = Xs(t, l), h = Xs(n, l);
5615
5635
  if (c === void 0 && h === void 0)
5616
5636
  continue;
@@ -5621,13 +5641,13 @@ function Hc(e, t, n, i, r, a) {
5621
5641
  function Xs(e, t) {
5622
5642
  return e[t] !== void 0 ? e[t] : e.borderRadius;
5623
5643
  }
5624
- const _c = /* @__PURE__ */ Ur(0, 0.5, Ri), Uc = /* @__PURE__ */ Ur(0.5, 0.95, ie);
5625
- function Ur(e, t, n) {
5644
+ const _c = /* @__PURE__ */ Wr(0, 0.5, Li), Uc = /* @__PURE__ */ Wr(0.5, 0.95, ie);
5645
+ function Wr(e, t, n) {
5626
5646
  return (i) => i < e ? 0 : i > t ? 1 : n(/* @__PURE__ */ Je(e, t, i));
5627
5647
  }
5628
5648
  function Wc(e, t, n) {
5629
5649
  const i = W(e) ? e : Be(e);
5630
- return i.start(On("", i, t, n)), i.animation;
5650
+ return i.start(In("", i, t, n)), i.animation;
5631
5651
  }
5632
5652
  function tt(e, t, n, i = { passive: !0 }) {
5633
5653
  return e.addEventListener(t, n, i), () => e.removeEventListener(t, n);
@@ -5652,7 +5672,7 @@ function Gc(e, t) {
5652
5672
  const a = r - n;
5653
5673
  a >= t && (we(i), e(a - t));
5654
5674
  };
5655
- return D.setup(i, !0), () => we(i);
5675
+ return k.setup(i, !0), () => we(i);
5656
5676
  }
5657
5677
  function gt(e) {
5658
5678
  return W(e) ? e.get() : e;
@@ -5727,21 +5747,21 @@ function Wt(e, t, n, i) {
5727
5747
  const { latestValues: r } = t;
5728
5748
  r[e] && (n[e] = r[e], t.setStaticValue(e, 0), i && (i[e] = 0));
5729
5749
  }
5730
- function Wr(e) {
5750
+ function $r(e) {
5731
5751
  if (e.hasCheckedOptimisedAppear = !0, e.root === e)
5732
5752
  return;
5733
5753
  const { visualElement: t } = e.options;
5734
5754
  if (!t)
5735
5755
  return;
5736
- const n = ur(t);
5756
+ const n = hr(t);
5737
5757
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
5738
5758
  const { layout: r, layoutId: a } = e.options;
5739
- window.MotionCancelOptimisedAnimation(n, "transform", D, !(r || a));
5759
+ window.MotionCancelOptimisedAnimation(n, "transform", k, !(r || a));
5740
5760
  }
5741
5761
  const { parent: i } = e;
5742
- i && !i.hasCheckedOptimisedAppear && Wr(i);
5762
+ i && !i.hasCheckedOptimisedAppear && $r(i);
5743
5763
  }
5744
- function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: i, resetTransform: r }) {
5764
+ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: i, resetTransform: r }) {
5745
5765
  return class {
5746
5766
  constructor(o = {}, l = t == null ? void 0 : t()) {
5747
5767
  this.id = qc++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
@@ -5774,7 +5794,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5774
5794
  if (h && !h.current && h.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (c || l) && (this.isLayoutDirty = !0), e) {
5775
5795
  let u, d = 0;
5776
5796
  const f = () => this.root.updateBlockedByResize = !1;
5777
- D.read(() => {
5797
+ k.read(() => {
5778
5798
  d = window.innerWidth;
5779
5799
  }), e(o, () => {
5780
5800
  const m = window.innerWidth;
@@ -5786,7 +5806,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5786
5806
  this.target = void 0, this.relativeTarget = void 0;
5787
5807
  return;
5788
5808
  }
5789
- const x = this.options.transition || h.getDefaultTransition() || hu, { onLayoutAnimationStart: g, onLayoutAnimationComplete: y } = h.getProps(), w = !this.targetLayout || !Hr(this.targetLayout, m), v = !d && f;
5809
+ const x = this.options.transition || h.getDefaultTransition() || hu, { onLayoutAnimationStart: g, onLayoutAnimationComplete: y } = h.getProps(), w = !this.targetLayout || !_r(this.targetLayout, m), v = !d && f;
5790
5810
  if (this.options.layoutRoot || this.resumeFrom || v || d && (w || !this.currentAnimation)) {
5791
5811
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
5792
5812
  const b = {
@@ -5831,7 +5851,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5831
5851
  this.options.onExitComplete && this.options.onExitComplete();
5832
5852
  return;
5833
5853
  }
5834
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Wr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
5854
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && $r(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
5835
5855
  return;
5836
5856
  this.isLayoutDirty = !0;
5837
5857
  for (let u = 0; u < this.path.length; u++) {
@@ -5865,10 +5885,10 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5865
5885
  this.nodes.forEach(tu), this.sharedNodes.forEach(lu);
5866
5886
  }
5867
5887
  scheduleUpdateProjection() {
5868
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, D.preRender(this.updateProjection, !1, !0));
5888
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, k.preRender(this.updateProjection, !1, !0));
5869
5889
  }
5870
5890
  scheduleCheckAfterUnmount() {
5871
- D.postRender(() => {
5891
+ k.postRender(() => {
5872
5892
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
5873
5893
  });
5874
5894
  }
@@ -5905,7 +5925,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5905
5925
  resetTransform() {
5906
5926
  if (!r)
5907
5927
  return;
5908
- const o = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, l = this.projectionDelta && !zr(this.projectionDelta), c = this.getTransformTemplate(), h = c ? c(this.latestValues, "") : void 0, u = h !== this.prevTransformTemplateValue;
5928
+ const o = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, l = this.projectionDelta && !Hr(this.projectionDelta), c = this.getTransformTemplate(), h = c ? c(this.latestValues, "") : void 0, u = h !== this.prevTransformTemplateValue;
5909
5929
  o && this.instance && (l || Me(this.latestValues) || u) && (r(this.instance, h), this.shouldResetTransform = !1, this.scheduleRender());
5910
5930
  }
5911
5931
  measure(o = !0) {
@@ -5993,10 +6013,10 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5993
6013
  return;
5994
6014
  this.resolvedRelativeTargetAt = U.timestamp;
5995
6015
  const f = this.getClosestProjectingParent();
5996
- f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Lc(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : re(this.target, this.layout.layoutBox), Vr(this.target, this.targetDelta)) : re(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
6016
+ f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Lc(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : re(this.target, this.layout.layoutBox), Cr(this.target, this.targetDelta)) : re(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
5997
6017
  }
5998
6018
  getClosestProjectingParent() {
5999
- if (!(!this.parent || yn(this.parent.latestValues) || Pr(this.parent.latestValues)))
6019
+ if (!(!this.parent || yn(this.parent.latestValues) || Vr(this.parent.latestValues)))
6000
6020
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
6001
6021
  }
6002
6022
  isProjecting() {
@@ -6052,12 +6072,12 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6052
6072
  let b;
6053
6073
  this.mixTargetDelta = (M) => {
6054
6074
  const S = M / 1e3;
6055
- Qs(d.x, o.x, S), Qs(d.y, o.y, S), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Pt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), cu(this.relativeTarget, this.relativeTargetOrigin, f, S), b && Ic(this.relativeTarget, b) && (this.isProjectionDirty = !1), b || (b = H()), re(b, this.relativeTarget)), g && (this.animationValues = u, Hc(u, h, this.latestValues, S, v, w)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = S;
6075
+ Qs(d.x, o.x, S), Qs(d.y, o.y, S), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Pt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), cu(this.relativeTarget, this.relativeTargetOrigin, f, S), b && Oc(this.relativeTarget, b) && (this.isProjectionDirty = !1), b || (b = H()), re(b, this.relativeTarget)), g && (this.animationValues = u, Hc(u, h, this.latestValues, S, v, w)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = S;
6056
6076
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
6057
6077
  }
6058
6078
  startAnimation(o) {
6059
6079
  var l, c, h;
6060
- this.notifyListeners("animationStart"), (l = this.currentAnimation) == null || l.stop(), (h = (c = this.resumingFrom) == null ? void 0 : c.currentAnimation) == null || h.stop(), this.pendingAnimation && (we(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = D.update(() => {
6080
+ this.notifyListeners("animationStart"), (l = this.currentAnimation) == null || l.stop(), (h = (c = this.resumingFrom) == null ? void 0 : c.currentAnimation) == null || h.stop(), this.pendingAnimation && (we(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = k.update(() => {
6061
6081
  jt.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Be(0)), this.motionValue.jump(0, !1), this.currentAnimation = Wc(this.motionValue, [0, 1e3], {
6062
6082
  ...o,
6063
6083
  velocity: 0,
@@ -6085,7 +6105,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6085
6105
  const o = this.getLead();
6086
6106
  let { targetWithTransforms: l, target: c, layout: h, latestValues: u } = o;
6087
6107
  if (!(!l || !c || !h)) {
6088
- if (this !== o && this.layout && h && Kr(this.options.animationType, this.layout.layoutBox, h.layoutBox)) {
6108
+ if (this !== o && this.layout && h && Gr(this.options.animationType, this.layout.layoutBox, h.layoutBox)) {
6089
6109
  c = this.target || H();
6090
6110
  const d = J(this.layout.layoutBox.x);
6091
6111
  c.x.min = o.target.x.min, c.x.max = c.x.min + d;
@@ -6212,7 +6232,7 @@ function Jc(e) {
6212
6232
  else if (a === "x" || a === "y") {
6213
6233
  const d = a === "x" ? "y" : "x";
6214
6234
  vn(o ? t.measuredBox[d] : t.layoutBox[d], i[d]);
6215
- } else Kr(a, t.layoutBox, i) && ce((d) => {
6235
+ } else Gr(a, t.layoutBox, i) && ce((d) => {
6216
6236
  const f = o ? t.measuredBox[d] : t.layoutBox[d], m = J(i[d]);
6217
6237
  f.max = f.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + m);
6218
6238
  });
@@ -6220,7 +6240,7 @@ function Jc(e) {
6220
6240
  qe(l, i, t.layoutBox);
6221
6241
  const c = Fe();
6222
6242
  o ? qe(c, e.applyTransform(r, !0), t.measuredBox) : qe(c, i, t.layoutBox);
6223
- const h = !zr(l);
6243
+ const h = !Hr(l);
6224
6244
  let u = !1;
6225
6245
  if (!e.resumeFrom) {
6226
6246
  const d = e.getClosestProjectingParent();
@@ -6230,7 +6250,7 @@ function Jc(e) {
6230
6250
  const x = e.options.layoutAnchor || void 0, g = H();
6231
6251
  Pt(g, t.layoutBox, f.layoutBox, x);
6232
6252
  const y = H();
6233
- Pt(y, i, m.layoutBox, x), Hr(g, y) || (u = !0), d.options.layoutRoot && (e.relativeTarget = y, e.relativeTargetOrigin = g, e.relativeParent = d);
6253
+ Pt(y, i, m.layoutBox, x), _r(g, y) || (u = !0), d.options.layoutRoot && (e.relativeTarget = y, e.relativeTargetOrigin = g, e.relativeParent = d);
6234
6254
  }
6235
6255
  }
6236
6256
  }
@@ -6310,14 +6330,14 @@ function si(e) {
6310
6330
  function du(e) {
6311
6331
  si(e.x), si(e.y);
6312
6332
  }
6313
- function Kr(e, t, n) {
6333
+ function Gr(e, t, n) {
6314
6334
  return e === "position" || e === "preserve-aspect" && !Rc($s(t), $s(n), 0.2);
6315
6335
  }
6316
6336
  function fu(e) {
6317
6337
  var t;
6318
6338
  return e !== e.root && ((t = e.scroll) == null ? void 0 : t.wasRoot);
6319
6339
  }
6320
- const pu = $r({
6340
+ const pu = Kr({
6321
6341
  attachResizeListener: (e, t) => tt(e, "resize", t),
6322
6342
  measureScroll: () => {
6323
6343
  var e, t;
@@ -6329,7 +6349,7 @@ const pu = $r({
6329
6349
  checkIsScrollRoot: () => !0
6330
6350
  }), $t = {
6331
6351
  current: void 0
6332
- }, Gr = $r({
6352
+ }, Yr = Kr({
6333
6353
  measureScroll: (e) => ({
6334
6354
  x: e.scrollLeft,
6335
6355
  y: e.scrollTop
@@ -6345,7 +6365,7 @@ const pu = $r({
6345
6365
  e.style.transform = t !== void 0 ? t : "none";
6346
6366
  },
6347
6367
  checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
6348
- }), Yr = ze({
6368
+ }), Xr = ze({
6349
6369
  transformPagePoint: (e) => e,
6350
6370
  isStatic: !1,
6351
6371
  reducedMotion: "never"
@@ -6354,7 +6374,7 @@ function mu(e = !0) {
6354
6374
  const t = ee(Tn);
6355
6375
  if (t === null)
6356
6376
  return [!0, null];
6357
- const { isPresent: n, onExitComplete: i, register: r } = t, a = co();
6377
+ const { isPresent: n, onExitComplete: i, register: r } = t, a = uo();
6358
6378
  je(() => {
6359
6379
  if (e)
6360
6380
  return r(a);
@@ -6362,7 +6382,7 @@ function mu(e = !0) {
6362
6382
  const o = Ce(() => e && i && i(a), [a, i, e]);
6363
6383
  return !n && i ? [!1, o] : [!0];
6364
6384
  }
6365
- const Xr = ze({ strict: !1 }), ii = {
6385
+ const qr = ze({ strict: !1 }), ii = {
6366
6386
  animation: [
6367
6387
  "animate",
6368
6388
  "variants",
@@ -6391,19 +6411,19 @@ function xu() {
6391
6411
  e[t] = {
6392
6412
  isEnabled: (n) => ii[t].some((i) => !!n[i])
6393
6413
  };
6394
- Mr(e), ri = !0;
6414
+ Sr(e), ri = !0;
6395
6415
  }
6396
- function qr() {
6416
+ function Zr() {
6397
6417
  return xu(), rc();
6398
6418
  }
6399
6419
  function yu(e) {
6400
- const t = qr();
6420
+ const t = Zr();
6401
6421
  for (const n in e)
6402
6422
  t[n] = {
6403
6423
  ...t[n],
6404
6424
  ...e[n]
6405
6425
  };
6406
- Mr(t);
6426
+ Sr(t);
6407
6427
  }
6408
6428
  const gu = /* @__PURE__ */ new Set([
6409
6429
  "animate",
@@ -6441,9 +6461,9 @@ const gu = /* @__PURE__ */ new Set([
6441
6461
  function Vt(e) {
6442
6462
  return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || gu.has(e);
6443
6463
  }
6444
- let Zr = (e) => !Vt(e);
6464
+ let Jr = (e) => !Vt(e);
6445
6465
  function ju(e) {
6446
- typeof e == "function" && (Zr = (t) => t.startsWith("on") ? !Vt(t) : e(t));
6466
+ typeof e == "function" && (Jr = (t) => t.startsWith("on") ? !Vt(t) : e(t));
6447
6467
  }
6448
6468
  try {
6449
6469
  ju(require("@emotion/is-prop-valid").default);
@@ -6452,13 +6472,13 @@ try {
6452
6472
  function vu(e, t, n) {
6453
6473
  const i = {};
6454
6474
  for (const r in e)
6455
- r === "values" && typeof e.values == "object" || W(e[r]) || (Zr(r) || n === !0 && Vt(r) || !t && !Vt(r) || // If trying to use native HTML drag events, forward drag listeners
6475
+ r === "values" && typeof e.values == "object" || W(e[r]) || (Jr(r) || n === !0 && Vt(r) || !t && !Vt(r) || // If trying to use native HTML drag events, forward drag listeners
6456
6476
  e.draggable && r.startsWith("onDrag")) && (i[r] = e[r]);
6457
6477
  return i;
6458
6478
  }
6459
- const kt = /* @__PURE__ */ ze({});
6479
+ const Dt = /* @__PURE__ */ ze({});
6460
6480
  function wu(e, t) {
6461
- if (Dt(e)) {
6481
+ if (kt(e)) {
6462
6482
  const { initial: n, animate: i } = e;
6463
6483
  return {
6464
6484
  initial: n === !1 || et(n) ? n : void 0,
@@ -6468,8 +6488,8 @@ function wu(e, t) {
6468
6488
  return e.inherit !== !1 ? t : {};
6469
6489
  }
6470
6490
  function bu(e) {
6471
- const { initial: t, animate: n } = wu(e, ee(kt));
6472
- return Oe(() => ({ initial: t, animate: n }), [oi(t), oi(n)]);
6491
+ const { initial: t, animate: n } = wu(e, ee(Dt));
6492
+ return Ie(() => ({ initial: t, animate: n }), [oi(t), oi(n)]);
6473
6493
  }
6474
6494
  function oi(e) {
6475
6495
  return Array.isArray(e) ? e.join(" ") : e;
@@ -6480,39 +6500,39 @@ const Yn = () => ({
6480
6500
  transformOrigin: {},
6481
6501
  vars: {}
6482
6502
  });
6483
- function Jr(e, t, n) {
6503
+ function Qr(e, t, n) {
6484
6504
  for (const i in t)
6485
6505
  !W(t[i]) && !Dr(i, n) && (e[i] = t[i]);
6486
6506
  }
6487
6507
  function Tu({ transformTemplate: e }, t) {
6488
- return Oe(() => {
6508
+ return Ie(() => {
6489
6509
  const n = Yn();
6490
6510
  return Kn(n, t, e), Object.assign({}, n.vars, n.style);
6491
6511
  }, [t]);
6492
6512
  }
6493
6513
  function Mu(e, t) {
6494
6514
  const n = e.style || {}, i = {};
6495
- return Jr(i, n, e), Object.assign(i, Tu(e, t)), i;
6515
+ return Qr(i, n, e), Object.assign(i, Tu(e, t)), i;
6496
6516
  }
6497
6517
  function Su(e, t) {
6498
6518
  const n = {}, i = Mu(e, t);
6499
6519
  return e.drag && e.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = i, n;
6500
6520
  }
6501
- const Qr = () => ({
6521
+ const eo = () => ({
6502
6522
  ...Yn(),
6503
6523
  attrs: {}
6504
6524
  });
6505
6525
  function Au(e, t, n, i) {
6506
- const r = Oe(() => {
6507
- const a = Qr();
6508
- return kr(a, t, Lr(i), e.transformTemplate, e.style), {
6526
+ const r = Ie(() => {
6527
+ const a = eo();
6528
+ return Rr(a, t, Nr(i), e.transformTemplate, e.style), {
6509
6529
  ...a.attrs,
6510
6530
  style: { ...a.style }
6511
6531
  };
6512
6532
  }, [t]);
6513
6533
  if (e.style) {
6514
6534
  const a = {};
6515
- Jr(a, e.style, e), r.style = { ...a, ...r.style };
6535
+ Qr(a, e.style, e), r.style = { ...a, ...r.style };
6516
6536
  }
6517
6537
  return r;
6518
6538
  }
@@ -6564,8 +6584,8 @@ function Xn(e) {
6564
6584
  );
6565
6585
  }
6566
6586
  function Vu(e, t, n, { latestValues: i }, r, a = !1, o) {
6567
- const c = (o ?? Xn(e) ? Au : Su)(t, i, r, e), h = vu(t, typeof e == "string", a), u = e !== p ? { ...h, ...c, ref: n } : {}, { children: d } = t, f = Oe(() => W(d) ? d.get() : d, [d]);
6568
- return uo(e, {
6587
+ const c = (o ?? Xn(e) ? Au : Su)(t, i, r, e), h = vu(t, typeof e == "string", a), u = e !== p ? { ...h, ...c, ref: n } : {}, { children: d } = t, f = Ie(() => W(d) ? d.get() : d, [d]);
6588
+ return ho(e, {
6569
6589
  ...u,
6570
6590
  children: f
6571
6591
  });
@@ -6581,7 +6601,7 @@ function Eu(e, t, n, i) {
6581
6601
  for (const f in a)
6582
6602
  r[f] = gt(a[f]);
6583
6603
  let { initial: o, animate: l } = e;
6584
- const c = Dt(e), h = br(e);
6604
+ const c = kt(e), h = Tr(e);
6585
6605
  t && h && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), l === void 0 && (l = t.animate));
6586
6606
  let u = n ? n.initial === !1 : !1;
6587
6607
  u = u || o === !1;
@@ -6589,7 +6609,7 @@ function Eu(e, t, n, i) {
6589
6609
  if (d && typeof d != "boolean" && !Et(d)) {
6590
6610
  const f = Array.isArray(d) ? d : [d];
6591
6611
  for (let m = 0; m < f.length; m++) {
6592
- const x = In(e, f[m]);
6612
+ const x = On(e, f[m]);
6593
6613
  if (x) {
6594
6614
  const { transitionEnd: g, transition: y, ...w } = x;
6595
6615
  for (const v in w) {
@@ -6607,15 +6627,15 @@ function Eu(e, t, n, i) {
6607
6627
  }
6608
6628
  return r;
6609
6629
  }
6610
- const eo = (e) => (t, n) => {
6611
- const i = ee(kt), r = ee(Tn), a = () => Cu(e, t, i, r);
6630
+ const to = (e) => (t, n) => {
6631
+ const i = ee(Dt), r = ee(Tn), a = () => Cu(e, t, i, r);
6612
6632
  return n ? a() : Po(a);
6613
- }, Du = /* @__PURE__ */ eo({
6633
+ }, ku = /* @__PURE__ */ to({
6614
6634
  scrapeMotionValuesFromProps: Gn,
6615
6635
  createRenderState: Yn
6616
- }), ku = /* @__PURE__ */ eo({
6617
- scrapeMotionValuesFromProps: Nr,
6618
- createRenderState: Qr
6636
+ }), Du = /* @__PURE__ */ to({
6637
+ scrapeMotionValuesFromProps: Fr,
6638
+ createRenderState: eo
6619
6639
  }), Ru = Symbol.for("motionComponentSymbol");
6620
6640
  function Lu(e, t, n) {
6621
6641
  const i = fe(n);
@@ -6636,13 +6656,13 @@ function Lu(e, t, n) {
6636
6656
  t && (a ? t.mount(a) : t.unmount());
6637
6657
  }, [t]);
6638
6658
  }
6639
- const to = ze({});
6640
- function ke(e) {
6659
+ const no = ze({});
6660
+ function De(e) {
6641
6661
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
6642
6662
  }
6643
6663
  function Nu(e, t, n, i, r, a) {
6644
6664
  var b, M;
6645
- const { visualElement: o } = ee(kt), l = ee(Xr), c = ee(Tn), h = ee(Yr), u = h.reducedMotion, d = h.skipAnimations, f = fe(null), m = fe(!1);
6665
+ const { visualElement: o } = ee(Dt), l = ee(qr), c = ee(Tn), h = ee(Xr), u = h.reducedMotion, d = h.skipAnimations, f = fe(null), m = fe(!1);
6646
6666
  i = i || l.renderer, !f.current && i && (f.current = i(e, {
6647
6667
  visualState: t,
6648
6668
  parent: o,
@@ -6653,13 +6673,13 @@ function Nu(e, t, n, i, r, a) {
6653
6673
  skipAnimations: d,
6654
6674
  isSVG: a
6655
6675
  }), m.current && f.current && (f.current.manuallyAnimateOnMount = !0));
6656
- const x = f.current, g = ee(to);
6676
+ const x = f.current, g = ee(no);
6657
6677
  x && !x.projection && r && (x.type === "html" || x.type === "svg") && Fu(f.current, n, r, g);
6658
6678
  const y = fe(!1);
6659
6679
  ji(() => {
6660
6680
  x && y.current && x.update(n, c);
6661
6681
  });
6662
- const w = n[cr], v = fe(!!w && typeof window < "u" && !((b = window.MotionHandoffIsComplete) != null && b.call(window, w)) && ((M = window.MotionHasOptimisedAnimation) == null ? void 0 : M.call(window, w)));
6682
+ const w = n[ur], v = fe(!!w && typeof window < "u" && !((b = window.MotionHandoffIsComplete) != null && b.call(window, w)) && ((M = window.MotionHasOptimisedAnimation) == null ? void 0 : M.call(window, w)));
6663
6683
  return Co(() => {
6664
6684
  m.current = !0, x && (y.current = !0, window.MotionIsMounted = !0, x.updateFeatures(), x.scheduleRenderMicrotask(), v.current && x.animationState && x.animationState.animateChanges());
6665
6685
  }), je(() => {
@@ -6671,10 +6691,10 @@ function Nu(e, t, n, i, r, a) {
6671
6691
  }
6672
6692
  function Fu(e, t, n, i) {
6673
6693
  const { layoutId: r, layout: a, drag: o, dragConstraints: l, layoutScroll: c, layoutRoot: h, layoutAnchor: u, layoutCrossfade: d } = t;
6674
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : no(e.parent)), e.projection.setOptions({
6694
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : so(e.parent)), e.projection.setOptions({
6675
6695
  layoutId: r,
6676
6696
  layout: a,
6677
- alwaysMeasureLayout: !!o || l && ke(l),
6697
+ alwaysMeasureLayout: !!o || l && De(l),
6678
6698
  visualElement: e,
6679
6699
  /**
6680
6700
  * TODO: Update options in an effect. This could be tricky as it'll be too late
@@ -6691,44 +6711,44 @@ function Fu(e, t, n, i) {
6691
6711
  layoutAnchor: u
6692
6712
  });
6693
6713
  }
6694
- function no(e) {
6714
+ function so(e) {
6695
6715
  if (e)
6696
- return e.options.allowProjection !== !1 ? e.projection : no(e.parent);
6716
+ return e.options.allowProjection !== !1 ? e.projection : so(e.parent);
6697
6717
  }
6698
6718
  function Kt(e, { forwardMotionProps: t = !1, type: n } = {}, i, r) {
6699
6719
  i && yu(i);
6700
- const a = n ? n === "svg" : Xn(e), o = a ? ku : Du;
6720
+ const a = n ? n === "svg" : Xn(e), o = a ? Du : ku;
6701
6721
  function l(h, u) {
6702
6722
  let d;
6703
6723
  const f = {
6704
- ...ee(Yr),
6724
+ ...ee(Xr),
6705
6725
  ...h,
6706
- layoutId: Ou(h)
6726
+ layoutId: Iu(h)
6707
6727
  }, { isStatic: m } = f, x = bu(h), g = o(h, m);
6708
6728
  if (!m && typeof window < "u") {
6709
- Iu(f, i);
6729
+ Ou(f, i);
6710
6730
  const y = Bu(f);
6711
6731
  d = y.MeasureLayout, x.visualElement = Nu(e, g, f, r, y.ProjectionNode, a);
6712
6732
  }
6713
- return s.jsxs(kt.Provider, { value: x, children: [d && x.visualElement ? s.jsx(d, { visualElement: x.visualElement, ...f }) : null, Vu(e, h, Lu(g, x.visualElement, u), g, m, t, a)] });
6733
+ return s.jsxs(Dt.Provider, { value: x, children: [d && x.visualElement ? s.jsx(d, { visualElement: x.visualElement, ...f }) : null, Vu(e, h, Lu(g, x.visualElement, u), g, m, t, a)] });
6714
6734
  }
6715
6735
  l.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
6716
- const c = ho(l);
6736
+ const c = fo(l);
6717
6737
  return c[Ru] = e, c;
6718
6738
  }
6719
- function Ou({ layoutId: e }) {
6720
- const t = ee(wi).id;
6739
+ function Iu({ layoutId: e }) {
6740
+ const t = ee(bi).id;
6721
6741
  return t && e !== void 0 ? t + "-" + e : e;
6722
6742
  }
6723
- function Iu(e, t) {
6724
- const n = ee(Xr).strict;
6743
+ function Ou(e, t) {
6744
+ const n = ee(qr).strict;
6725
6745
  if (process.env.NODE_ENV !== "production" && t && n) {
6726
6746
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
6727
6747
  e.ignoreStrict ? He(!1, i, "lazy-strict-mode") : pe(!1, i, "lazy-strict-mode");
6728
6748
  }
6729
6749
  }
6730
6750
  function Bu(e) {
6731
- const t = qr(), { drag: n, layout: i } = t;
6751
+ const t = Zr(), { drag: n, layout: i } = t;
6732
6752
  if (!n && !i)
6733
6753
  return {};
6734
6754
  const r = { ...n, ...i };
@@ -6842,13 +6862,13 @@ const Ku = (e) => (t) => _n(t) && e(t, ot(t));
6842
6862
  function Ze(e, t, n, i) {
6843
6863
  return tt(e, t, Ku(n), i);
6844
6864
  }
6845
- const so = ({ current: e }) => e ? e.ownerDocument.defaultView : null, ai = (e, t) => Math.abs(e - t);
6865
+ const io = ({ current: e }) => e ? e.ownerDocument.defaultView : null, ai = (e, t) => Math.abs(e - t);
6846
6866
  function Gu(e, t) {
6847
6867
  const n = ai(e.x, t.x), i = ai(e.y, t.y);
6848
6868
  return Math.sqrt(n ** 2 + i ** 2);
6849
6869
  }
6850
6870
  const li = /* @__PURE__ */ new Set(["auto", "scroll"]);
6851
- class io {
6871
+ class ro {
6852
6872
  constructor(t, n, { transformPagePoint: i, contextWindow: r = window, dragSnapToOrigin: a = !1, distanceThreshold: o = 3, element: l } = {}) {
6853
6873
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (m) => {
6854
6874
  this.handleScroll(m.target);
@@ -6866,7 +6886,7 @@ class io {
6866
6886
  const { onStart: v, onMove: b } = this.handlers;
6867
6887
  x || (v && v(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, m);
6868
6888
  }, this.handlePointerMove = (m, x) => {
6869
- this.lastMoveEvent = m, this.lastRawMoveEventInfo = x, this.lastMoveEventInfo = ht(x, this.transformPagePoint), D.update(this.updatePoint, !0);
6889
+ this.lastMoveEvent = m, this.lastRawMoveEventInfo = x, this.lastMoveEventInfo = ht(x, this.transformPagePoint), k.update(this.updatePoint, !0);
6870
6890
  }, this.handlePointerUp = (m, x) => {
6871
6891
  this.end();
6872
6892
  const { onEnd: g, onSessionEnd: y, resumeAnimation: w } = this.handlers;
@@ -6919,7 +6939,7 @@ class io {
6919
6939
  x: t.scrollLeft,
6920
6940
  y: t.scrollTop
6921
6941
  }, a = { x: r.x - n.x, y: r.y - n.y };
6922
- a.x === 0 && a.y === 0 || (i ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += a.x, this.lastMoveEventInfo.point.y += a.y) : this.history.length > 0 && (this.history[0].x -= a.x, this.history[0].y -= a.y), this.scrollPositions.set(t, r), D.update(this.updatePoint, !0));
6942
+ a.x === 0 && a.y === 0 || (i ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += a.x, this.lastMoveEventInfo.point.y += a.y) : this.history.length > 0 && (this.history[0].x -= a.x, this.history[0].y -= a.y), this.scrollPositions.set(t, r), k.update(this.updatePoint, !0));
6923
6943
  }
6924
6944
  updateHandlers(t) {
6925
6945
  this.handlers = t;
@@ -6937,7 +6957,7 @@ function ci(e, t) {
6937
6957
  function Gt({ point: e }, t) {
6938
6958
  return {
6939
6959
  point: e,
6940
- delta: ci(e, ro(t)),
6960
+ delta: ci(e, oo(t)),
6941
6961
  offset: ci(e, Yu(t)),
6942
6962
  velocity: Xu(t, 0.1)
6943
6963
  };
@@ -6945,14 +6965,14 @@ function Gt({ point: e }, t) {
6945
6965
  function Yu(e) {
6946
6966
  return e[0];
6947
6967
  }
6948
- function ro(e) {
6968
+ function oo(e) {
6949
6969
  return e[e.length - 1];
6950
6970
  }
6951
6971
  function Xu(e, t) {
6952
6972
  if (e.length < 2)
6953
6973
  return { x: 0, y: 0 };
6954
6974
  let n = e.length - 1, i = null;
6955
- const r = ro(e);
6975
+ const r = oo(e);
6956
6976
  for (; n >= 0 && (i = e[n], !(r.timestamp - i.timestamp > /* @__PURE__ */ te(t))); )
6957
6977
  n--;
6958
6978
  if (!i)
@@ -7042,7 +7062,7 @@ class sh {
7042
7062
  }
7043
7063
  }
7044
7064
  this.originPoint[w] = v;
7045
- }), g && D.update(() => g(d, f), !1, !0), dn(this.visualElement, "transform");
7065
+ }), g && k.update(() => g(d, f), !1, !0), dn(this.visualElement, "transform");
7046
7066
  const { animationState: y } = this.visualElement;
7047
7067
  y && y.setActive("whileDrag", !0);
7048
7068
  }, l = (d, f) => {
@@ -7055,14 +7075,14 @@ class sh {
7055
7075
  this.currentDirection = rh(w), this.currentDirection !== null && g && g(this.currentDirection);
7056
7076
  return;
7057
7077
  }
7058
- this.updateAxis("x", f.point, w), this.updateAxis("y", f.point, w), this.visualElement.render(), y && D.update(() => y(d, f), !1, !0);
7078
+ this.updateAxis("x", f.point, w), this.updateAxis("y", f.point, w), this.visualElement.render(), y && k.update(() => y(d, f), !1, !0);
7059
7079
  }, c = (d, f) => {
7060
7080
  this.latestPointerEvent = d, this.latestPanInfo = f, this.stop(d, f), this.latestPointerEvent = null, this.latestPanInfo = null;
7061
7081
  }, h = () => {
7062
7082
  const { dragSnapToOrigin: d } = this.getProps();
7063
7083
  (d || this.constraints) && this.startAnimation({ x: 0, y: 0 });
7064
7084
  }, { dragSnapToOrigin: u } = this.getProps();
7065
- this.panSession = new io(t, {
7085
+ this.panSession = new ro(t, {
7066
7086
  onSessionStart: a,
7067
7087
  onStart: o,
7068
7088
  onMove: l,
@@ -7072,7 +7092,7 @@ class sh {
7072
7092
  transformPagePoint: this.visualElement.getTransformPagePoint(),
7073
7093
  dragSnapToOrigin: u,
7074
7094
  distanceThreshold: i,
7075
- contextWindow: so(this.visualElement),
7095
+ contextWindow: io(this.visualElement),
7076
7096
  element: this.visualElement.current
7077
7097
  });
7078
7098
  }
@@ -7086,7 +7106,7 @@ class sh {
7086
7106
  const { velocity: o } = r;
7087
7107
  this.startAnimation(o);
7088
7108
  const { onDragEnd: l } = this.getProps();
7089
- l && D.postRender(() => l(i, r));
7109
+ l && k.postRender(() => l(i, r));
7090
7110
  }
7091
7111
  /**
7092
7112
  * @internal
@@ -7118,13 +7138,13 @@ class sh {
7118
7138
  resolveConstraints() {
7119
7139
  var a;
7120
7140
  const { dragConstraints: t, dragElastic: n } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (a = this.visualElement.projection) == null ? void 0 : a.layout, r = this.constraints;
7121
- t && ke(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && i ? this.constraints = Zu(i.layoutBox, t) : this.constraints = !1, this.elastic = th(n), r !== this.constraints && !ke(t) && i && this.constraints && !this.hasMutatedConstraints && ce((o) => {
7141
+ t && De(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && i ? this.constraints = Zu(i.layoutBox, t) : this.constraints = !1, this.elastic = th(n), r !== this.constraints && !De(t) && i && this.constraints && !this.hasMutatedConstraints && ce((o) => {
7122
7142
  this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = eh(i.layoutBox[o], this.constraints[o]));
7123
7143
  });
7124
7144
  }
7125
7145
  resolveRefConstraints() {
7126
7146
  const { dragConstraints: t, onMeasureDragConstraints: n } = this.getProps();
7127
- if (!t || !ke(t))
7147
+ if (!t || !De(t))
7128
7148
  return !1;
7129
7149
  const i = t.current;
7130
7150
  pe(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
@@ -7135,7 +7155,7 @@ class sh {
7135
7155
  let o = Ju(r.layout.layoutBox, a);
7136
7156
  if (n) {
7137
7157
  const l = n(ac(o));
7138
- this.hasMutatedConstraints = !!l, l && (o = Ar(l));
7158
+ this.hasMutatedConstraints = !!l, l && (o = Pr(l));
7139
7159
  }
7140
7160
  return o;
7141
7161
  }
@@ -7162,7 +7182,7 @@ class sh {
7162
7182
  }
7163
7183
  startAxisValueAnimation(t, n) {
7164
7184
  const i = this.getAxisMotionValue(t);
7165
- return dn(this.visualElement, t), i.start(On(t, i, 0, n, this.visualElement, !1));
7185
+ return dn(this.visualElement, t), i.start(In(t, i, 0, n, this.visualElement, !1));
7166
7186
  }
7167
7187
  stopAnimation() {
7168
7188
  ce((t) => this.getAxisMotionValue(t).stop());
@@ -7198,7 +7218,7 @@ class sh {
7198
7218
  if (!this.visualElement.current)
7199
7219
  return;
7200
7220
  const { drag: t, dragConstraints: n } = this.getProps(), { projection: i } = this.visualElement;
7201
- if (!ke(n) || !i || !this.constraints)
7221
+ if (!De(n) || !i || !this.constraints)
7202
7222
  return;
7203
7223
  this.stopAnimation();
7204
7224
  const r = { x: 0, y: 0 };
@@ -7228,9 +7248,9 @@ class sh {
7228
7248
  let i;
7229
7249
  const r = () => {
7230
7250
  const { dragConstraints: h } = this.getProps();
7231
- ke(h) && h.current && (this.constraints = this.resolveRefConstraints(), i || (i = ih(t, h.current, () => this.scalePositionWithinConstraints())));
7251
+ De(h) && h.current && (this.constraints = this.resolveRefConstraints(), i || (i = ih(t, h.current, () => this.scalePositionWithinConstraints())));
7232
7252
  }, { projection: a } = this.visualElement, o = a.addEventListener("measure", r);
7233
- a && !a.layout && (a.root && a.root.updateScroll(), a.updateLayout()), D.read(r);
7253
+ a && !a.layout && (a.root && a.root.updateScroll(), a.updateLayout()), k.read(r);
7234
7254
  const l = tt(window, "resize", () => this.scalePositionWithinConstraints()), c = a.addEventListener("didUpdate", ({ delta: h, hasLayoutChanged: u }) => {
7235
7255
  this.isDragging && u && (ce((d) => {
7236
7256
  const f = this.getAxisMotionValue(d);
@@ -7294,16 +7314,16 @@ class oh extends be {
7294
7314
  }
7295
7315
  }
7296
7316
  const Yt = (e) => (t, n) => {
7297
- e && D.update(() => e(t, n), !1, !0);
7317
+ e && k.update(() => e(t, n), !1, !0);
7298
7318
  };
7299
7319
  class ah extends be {
7300
7320
  constructor() {
7301
7321
  super(...arguments), this.removePointerDownListener = ie;
7302
7322
  }
7303
7323
  onPointerDown(t) {
7304
- this.session = new io(t, this.createPanHandlers(), {
7324
+ this.session = new ro(t, this.createPanHandlers(), {
7305
7325
  transformPagePoint: this.node.getTransformPagePoint(),
7306
- contextWindow: so(this.node)
7326
+ contextWindow: io(this.node)
7307
7327
  });
7308
7328
  }
7309
7329
  createPanHandlers() {
@@ -7313,7 +7333,7 @@ class ah extends be {
7313
7333
  onStart: Yt(n),
7314
7334
  onMove: Yt(i),
7315
7335
  onEnd: (a, o) => {
7316
- delete this.session, r && D.postRender(() => r(a, o));
7336
+ delete this.session, r && k.postRender(() => r(a, o));
7317
7337
  }
7318
7338
  };
7319
7339
  }
@@ -7328,7 +7348,7 @@ class ah extends be {
7328
7348
  }
7329
7349
  }
7330
7350
  let Xt = !1;
7331
- class lh extends fo {
7351
+ class lh extends po {
7332
7352
  /**
7333
7353
  * This only mounts projection nodes for components that
7334
7354
  * need measuring, we might want to do it for all components
@@ -7349,7 +7369,7 @@ class lh extends fo {
7349
7369
  return o && (o.isPresent = a, t.layoutDependency !== n && o.setOptions({
7350
7370
  ...o.options,
7351
7371
  layoutDependency: n
7352
- }), Xt = !0, r || t.layoutDependency !== n || n === void 0 || t.isPresent !== a ? o.willUpdate() : this.safeToRemove(), t.isPresent !== a && (a ? o.promote() : o.relegate() || D.postRender(() => {
7372
+ }), Xt = !0, r || t.layoutDependency !== n || n === void 0 || t.isPresent !== a ? o.willUpdate() : this.safeToRemove(), t.isPresent !== a && (a ? o.promote() : o.relegate() || k.postRender(() => {
7353
7373
  const l = o.getStack();
7354
7374
  (!l || !l.members.length) && this.safeToRemove();
7355
7375
  }))), null;
@@ -7372,9 +7392,9 @@ class lh extends fo {
7372
7392
  return null;
7373
7393
  }
7374
7394
  }
7375
- function oo(e) {
7376
- const [t, n] = mu(), i = ee(wi);
7377
- return s.jsx(lh, { ...e, layoutGroup: i, switchLayoutGroup: ee(to), isPresent: t, safeToRemove: n });
7395
+ function ao(e) {
7396
+ const [t, n] = mu(), i = ee(bi);
7397
+ return s.jsx(lh, { ...e, layoutGroup: i, switchLayoutGroup: ee(no), isPresent: t, safeToRemove: n });
7378
7398
  }
7379
7399
  const ch = {
7380
7400
  pan: {
@@ -7382,20 +7402,20 @@ const ch = {
7382
7402
  },
7383
7403
  drag: {
7384
7404
  Feature: oh,
7385
- ProjectionNode: Gr,
7386
- MeasureLayout: oo
7405
+ ProjectionNode: Yr,
7406
+ MeasureLayout: ao
7387
7407
  }
7388
7408
  };
7389
7409
  function mi(e, t, n) {
7390
7410
  const { props: i } = e;
7391
7411
  e.animationState && i.whileHover && e.animationState.setActive("whileHover", n === "Start");
7392
7412
  const r = "onHover" + n, a = i[r];
7393
- a && D.postRender(() => a(t, ot(t)));
7413
+ a && k.postRender(() => a(t, ot(t)));
7394
7414
  }
7395
7415
  class uh extends be {
7396
7416
  mount() {
7397
7417
  const { current: t } = this.node;
7398
- t && (this.unmount = Ol(t, (n, i) => (mi(this.node, i, "Start"), (r) => mi(this.node, r, "End"))));
7418
+ t && (this.unmount = Il(t, (n, i) => (mi(this.node, i, "Start"), (r) => mi(this.node, r, "End"))));
7399
7419
  }
7400
7420
  unmount() {
7401
7421
  }
@@ -7428,7 +7448,7 @@ function xi(e, t, n) {
7428
7448
  return;
7429
7449
  e.animationState && i.whileTap && e.animationState.setActive("whileTap", n === "Start");
7430
7450
  const r = "onTap" + (n === "End" ? "" : n), a = i[r];
7431
- a && D.postRender(() => a(t, ot(t)));
7451
+ a && k.postRender(() => a(t, ot(t)));
7432
7452
  }
7433
7453
  class dh extends be {
7434
7454
  mount() {
@@ -7519,15 +7539,15 @@ const vh = {
7519
7539
  }
7520
7540
  }, wh = {
7521
7541
  layout: {
7522
- ProjectionNode: Gr,
7523
- MeasureLayout: oo
7542
+ ProjectionNode: Yr,
7543
+ MeasureLayout: ao
7524
7544
  }
7525
7545
  }, bh = {
7526
7546
  ...$u,
7527
7547
  ...vh,
7528
7548
  ...ch,
7529
7549
  ...wh
7530
- }, Th = /* @__PURE__ */ zu(bh, Hu), Zh = ({ flipped: e, setFlipped: t, front: n, back: i }) => /* @__PURE__ */ s.jsxs(
7550
+ }, Th = /* @__PURE__ */ zu(bh, Hu), Jh = ({ flipped: e, setFlipped: t, front: n, back: i }) => /* @__PURE__ */ s.jsxs(
7531
7551
  Th.div,
7532
7552
  {
7533
7553
  className: `muncher-flippable-card ${e ? "flipped" : ""}`,
@@ -7539,7 +7559,7 @@ const vh = {
7539
7559
  ]
7540
7560
  }
7541
7561
  ), Mh = () => {
7542
- const [e, t] = Y({
7562
+ const [e, t] = $({
7543
7563
  isTop: !0,
7544
7564
  isBottom: !1
7545
7565
  });
@@ -7550,7 +7570,7 @@ const vh = {
7550
7570
  };
7551
7571
  return window.addEventListener("scroll", n), n(), () => window.removeEventListener("scroll", n);
7552
7572
  }, []), e;
7553
- }, Jh = ({ variant: e = "tertiary" }) => {
7573
+ }, Qh = ({ variant: e = "tertiary" }) => {
7554
7574
  const { isBottom: t } = Mh(), n = () => window.scrollTo({ top: 0, behavior: "smooth" }), i = () => window.scrollTo({
7555
7575
  top: document.documentElement.scrollHeight,
7556
7576
  behavior: "smooth"
@@ -7559,45 +7579,46 @@ const vh = {
7559
7579
  };
7560
7580
  export {
7561
7581
  Ah as Accordion,
7562
- yo as Backdrop,
7563
- go as Badge,
7582
+ go as Backdrop,
7583
+ jo as Badge,
7564
7584
  ne as Button,
7565
- Xh as Card,
7585
+ qh as Card,
7566
7586
  Eh as Checkbox,
7567
- wo as CopyButton,
7568
- bo as CsvButton,
7569
- Mo as CsvInput,
7570
- jo as DropdownButton,
7587
+ bo as CopyButton,
7588
+ To as CsvButton,
7589
+ So as CsvInput,
7590
+ vo as DropdownButton,
7571
7591
  Vh as DropdownNavButton,
7572
- $h as Featured,
7573
- Zh as FlippableCard,
7574
- Hh as Hr,
7592
+ Kh as Featured,
7593
+ Jh as FlippableCard,
7594
+ _h as Hr,
7575
7595
  N as Icon,
7576
7596
  Ph as IconBadge,
7577
- Dh as ImageInput,
7578
- So as Input,
7579
- _h as ItemSlider,
7597
+ kh as ImageInput,
7598
+ wi as Input,
7599
+ Uh as ItemSlider,
7580
7600
  nt as Label,
7581
- Fh as Li,
7601
+ Ih as Li,
7582
7602
  Oh as Modal,
7583
7603
  Qn as NavigateButton,
7584
- Ih as Paper,
7585
- Bh as Pill,
7586
- zh as Progress,
7587
- kh as Radio,
7588
- Uh as RangeSlider,
7589
- Jh as ScrollFab,
7604
+ Bh as Paper,
7605
+ Dh as PasswordInput,
7606
+ zh as Pill,
7607
+ Hh as Progress,
7608
+ Rh as Radio,
7609
+ Wh as RangeSlider,
7610
+ Qh as ScrollFab,
7590
7611
  Ao as Select,
7591
7612
  Ch as ShareButton,
7592
- Wh as Slider,
7593
- To as SortButton,
7613
+ $h as Slider,
7614
+ Mo as SortButton,
7594
7615
  vi as Spinner,
7595
- Kh as Star,
7596
- Yh as Table,
7597
- Gh as Tabs,
7598
- Lh as TextInputDropdown,
7599
- Rh as Textarea,
7600
- Nh as Ul,
7601
- vo as copyToClipboard,
7616
+ Gh as Star,
7617
+ Xh as Table,
7618
+ Yh as Tabs,
7619
+ Nh as TextInputDropdown,
7620
+ Lh as Textarea,
7621
+ Fh as Ul,
7622
+ wo as copyToClipboard,
7602
7623
  Mh as useScrollPosition
7603
7624
  };