@contentmunch/contentmunch-ui 1.1.16 → 1.1.17

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 J, Fragment as p, useRef as fe, useCallback as Ve, useEffect as Ce, useMemo as Oe, createContext as ze, useLayoutEffect as lo, useContext as Q, useId as co, createElement as uo, useInsertionEffect as ji, forwardRef as ho, Component as fo } from "react";
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 Q, useId as co, createElement as uo, useInsertionEffect as ji, forwardRef as ho, Component as fo } from "react";
2
2
  var at = { exports: {} }, $e = {};
3
3
  /**
4
4
  * @license React
@@ -134,7 +134,7 @@ function mo() {
134
134
  }
135
135
  function l(v, V) {
136
136
  function L() {
137
- Y || (Y = !0, console.error(
137
+ X || (X = !0, console.error(
138
138
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
139
139
  V
140
140
  ));
@@ -200,7 +200,7 @@ function mo() {
200
200
  var De = Object.keys(V).filter(function(ao) {
201
201
  return ao !== "key";
202
202
  });
203
- K = 0 < De.length ? "{key: someKey, " + De.join(": ..., ") + ": ...}" : "{key: someKey}", X[G + K] || (De = 0 < De.length ? "{" + De.join(": ..., ") + ": ...}" : "{}", console.error(
203
+ K = 0 < De.length ? "{key: someKey, " + De.join(": ..., ") + ": ...}" : "{key: someKey}", q[G + K] || (De = 0 < De.length ? "{" + De.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} />
@@ -211,7 +211,7 @@ React keys must be passed directly to JSX without using spread:
211
211
  G,
212
212
  De,
213
213
  G
214
- ), X[G + K] = !0);
214
+ ), q[G + K] = !0);
215
215
  }
216
216
  if (G = null, L !== void 0 && (n(L), G = "" + L), o(V) && (n(V.key), G = "" + V.key), "key" in V) {
217
217
  L = {};
@@ -243,10 +243,10 @@ React keys must be passed directly to JSX without using spread:
243
243
  return v();
244
244
  }
245
245
  };
246
- var Y, $ = {}, Ee = f["react-stack-bottom-frame"].bind(
246
+ var X, $ = {}, Ee = f["react-stack-bottom-frame"].bind(
247
247
  f,
248
248
  a
249
- )(), F = W(i(a)), X = {};
249
+ )(), O = W(i(a)), q = {};
250
250
  Ke.Fragment = g, Ke.jsx = function(v, V, L, K, me) {
251
251
  var le = 1e4 > D.recentlyCreatedOwnerStacks++;
252
252
  return u(
@@ -257,7 +257,7 @@ React keys must be passed directly to JSX without using spread:
257
257
  K,
258
258
  me,
259
259
  le ? Error("react-stack-top-frame") : Ee,
260
- le ? W(i(v)) : F
260
+ le ? W(i(v)) : O
261
261
  );
262
262
  }, Ke.jsxs = function(v, V, L, K, me) {
263
263
  var le = 1e4 > D.recentlyCreatedOwnerStacks++;
@@ -269,7 +269,7 @@ React keys must be passed directly to JSX without using spread:
269
269
  K,
270
270
  me,
271
271
  le ? Error("react-stack-top-frame") : Ee,
272
- le ? W(i(v)) : F
272
+ le ? W(i(v)) : O
273
273
  );
274
274
  };
275
275
  }()), Ke;
@@ -279,8 +279,8 @@ function xo() {
279
279
  return Jn || (Jn = 1, process.env.NODE_ENV === "production" ? at.exports = po() : at.exports = mo()), at.exports;
280
280
  }
281
281
  var s = xo();
282
- const Sh = ({ variant: e, collapsed: t, children: n }) => {
283
- const { folds: i } = n, [r, a] = J(t ? -1 : 0), o = (u) => u === r ? "fold active" : "fold", l = (u) => "fold-button" + (e ? " fold-button--" + e : "") + (i[u].foldColor ? " fold-button--primary fold-button--" + i[u].foldColor : ""), c = (u) => {
282
+ const Ah = ({ variant: e, collapsed: t, children: n }) => {
283
+ const { folds: i } = n, [r, a] = Y(t ? -1 : 0), o = (u) => u === r ? "fold active" : "fold", l = (u) => "fold-button" + (e ? " fold-button--" + e : "") + (i[u].foldColor ? " fold-button--primary fold-button--" + i[u].foldColor : ""), c = (u) => {
284
284
  const d = u.which.toString(), f = u.ctrlKey && d.match(/33|34/);
285
285
  if (d.match(/38|40/) || f) {
286
286
  const m = d.match(/34|40/) ? 1 : -1, x = i.length, g = (r + x + m) % x;
@@ -1336,7 +1336,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1336
1336
  /* @__PURE__ */ s.jsx("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" }),
1337
1337
  /* @__PURE__ */ s.jsx("text", { x: "6", y: "14", fontSize: "6", fontFamily: "'Lucida Grande', sans-serif", children: "360" })
1338
1338
  ] })
1339
- }, I = ({ color: e, name: t, size: n = "small", weight: i = 2, onClick: r, iconString: a, orientation: o = "left", children: l }) => {
1339
+ }, F = ({ color: e, name: t, size: n = "small", weight: i = 2, onClick: r, iconString: a, orientation: o = "left", children: l }) => {
1340
1340
  const c = `muncher-icon--${n}`, h = t ? lt[t] : a && a in lt ? lt[a] : (process.env.NODE_ENV === "development" && console.warn("Unknown icon:", a), lt.muncher);
1341
1341
  return /* @__PURE__ */ s.jsxs("span", { className: "muncher-icon", children: [
1342
1342
  l && o && o === "right" ? /* @__PURE__ */ s.jsx("span", { className: "content-left", children: l }) : "",
@@ -1357,7 +1357,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1357
1357
  ),
1358
1358
  l && o === "left" && /* @__PURE__ */ s.jsx("span", { className: "content-right", children: l })
1359
1359
  ] });
1360
- }, Ah = ({
1360
+ }, Ph = ({
1361
1361
  variant: e = "primary",
1362
1362
  icon: t = "bell",
1363
1363
  text: n,
@@ -1370,11 +1370,11 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1370
1370
  onClick: i,
1371
1371
  ...r,
1372
1372
  children: [
1373
- /* @__PURE__ */ s.jsx(I, { name: t }),
1373
+ /* @__PURE__ */ s.jsx(F, { name: t }),
1374
1374
  n === "" ? "" : /* @__PURE__ */ s.jsx(go, { variant: e, children: n })
1375
1375
  ]
1376
1376
  }
1377
- ), ne = ({
1377
+ ), te = ({
1378
1378
  type: e = "button",
1379
1379
  variant: t,
1380
1380
  size: n = "medium",
@@ -1425,12 +1425,12 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1425
1425
  }) => {
1426
1426
  const j = fe(null), y = (S) => {
1427
1427
  S.preventDefault(), h && h(S), f && f(!0);
1428
- }, b = Ve(() => {
1428
+ }, b = Ce(() => {
1429
1429
  f(!1), u && u();
1430
- }, [u, f]), w = Ve((S) => {
1430
+ }, [u, f]), w = Ce((S) => {
1431
1431
  S.keyCode === 27 && b();
1432
1432
  }, [b]);
1433
- Ce(() => {
1433
+ je(() => {
1434
1434
  const S = (E) => {
1435
1435
  j && j.current && E.target instanceof HTMLElement && !j.current.contains(E.target) && b();
1436
1436
  };
@@ -1460,7 +1460,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1460
1460
  };
1461
1461
  return /* @__PURE__ */ s.jsxs("div", { className: "muncher-dropdown", ref: j, children: [
1462
1462
  /* @__PURE__ */ s.jsxs(
1463
- ne,
1463
+ te,
1464
1464
  {
1465
1465
  onMouseDown: y,
1466
1466
  title: n,
@@ -1484,7 +1484,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1484
1484
  ),
1485
1485
  d ? /* @__PURE__ */ s.jsx("div", { className: T(), children: x }) : ""
1486
1486
  ] });
1487
- }, Ph = ({
1487
+ }, Vh = ({
1488
1488
  title: e,
1489
1489
  active: t,
1490
1490
  disabled: n,
@@ -1495,7 +1495,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1495
1495
  ...l
1496
1496
  }) => /* @__PURE__ */ s.jsxs("div", { className: `muncher-dropdown-nav ${a ? "drop-left" : ""}`, children: [
1497
1497
  /* @__PURE__ */ s.jsx(
1498
- ne,
1498
+ te,
1499
1499
  {
1500
1500
  type: "nav",
1501
1501
  title: e,
@@ -1514,27 +1514,27 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1514
1514
  variant: t = "secondary",
1515
1515
  size: n = "small"
1516
1516
  }) => {
1517
- const [i, r] = J(), [a, o] = J("copy"), [l, c] = J("copy link"), h = () => {
1517
+ const [i, r] = Y(), [a, o] = Y("copy"), [l, c] = Y("copy link"), h = () => {
1518
1518
  vo(e), r("green"), o("check"), c("copied!"), setTimeout(function() {
1519
1519
  r(""), o("copy");
1520
1520
  }, 2e3);
1521
1521
  };
1522
1522
  return /* @__PURE__ */ s.jsx(
1523
- ne,
1523
+ te,
1524
1524
  {
1525
1525
  size: n,
1526
1526
  variant: t,
1527
1527
  title: l,
1528
1528
  onClick: h,
1529
- children: /* @__PURE__ */ s.jsx(I, { name: a, color: i })
1529
+ children: /* @__PURE__ */ s.jsx(F, { name: a, color: i })
1530
1530
  }
1531
1531
  );
1532
- }, Vh = ({
1532
+ }, Ch = ({
1533
1533
  variant: e = "secondary",
1534
1534
  size: t = "medium",
1535
1535
  title: n
1536
1536
  }) => {
1537
- const [i, r] = J(!1);
1537
+ const [i, r] = Y(!1);
1538
1538
  return /* @__PURE__ */ s.jsx("div", { className: "muncher-share", children: /* @__PURE__ */ s.jsxs(
1539
1539
  jo,
1540
1540
  {
@@ -1543,33 +1543,33 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1543
1543
  setShowContent: r,
1544
1544
  variant: e,
1545
1545
  size: t,
1546
- element: /* @__PURE__ */ s.jsx(I, { name: "share", orientation: "right", children: "Share" }),
1546
+ element: /* @__PURE__ */ s.jsx(F, { name: "share", orientation: "right", children: "Share" }),
1547
1547
  children: [
1548
- /* @__PURE__ */ s.jsx(ne, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1548
+ /* @__PURE__ */ s.jsx(te, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1549
1549
  "a",
1550
1550
  {
1551
1551
  href: "https://twitter.com/share?url=" + window.location.href + "&text=" + n,
1552
1552
  target: "_blank",
1553
1553
  title: "Share link to Twitter",
1554
- children: /* @__PURE__ */ s.jsx(I, { name: "twitter" })
1554
+ children: /* @__PURE__ */ s.jsx(F, { name: "twitter" })
1555
1555
  }
1556
1556
  ) }),
1557
- /* @__PURE__ */ s.jsx(ne, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1557
+ /* @__PURE__ */ s.jsx(te, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1558
1558
  "a",
1559
1559
  {
1560
1560
  href: "https://www.facebook.com/sharer/sharer.php?u=" + window.location.href,
1561
1561
  target: "_blank",
1562
1562
  title: "Share link to Facebook",
1563
- children: /* @__PURE__ */ s.jsx(I, { name: "facebook" })
1563
+ children: /* @__PURE__ */ s.jsx(F, { name: "facebook" })
1564
1564
  }
1565
1565
  ) }),
1566
- /* @__PURE__ */ s.jsx(ne, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1566
+ /* @__PURE__ */ s.jsx(te, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1567
1567
  "a",
1568
1568
  {
1569
1569
  href: "mailto:?subject=" + n + "&body=" + window.location.href,
1570
1570
  target: "_blank",
1571
1571
  title: "share link by Email",
1572
- children: /* @__PURE__ */ s.jsx(I, { name: "mail" })
1572
+ children: /* @__PURE__ */ s.jsx(F, { name: "mail" })
1573
1573
  }
1574
1574
  ) }),
1575
1575
  /* @__PURE__ */ s.jsx(wo, { text: window.location.href })
@@ -1590,7 +1590,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1590
1590
  const h = encodeURI("data:text/csv;charset=utf-8," + e.join(",") + `
1591
1591
  ` + t.map((u) => u.join(",")).join(`
1592
1592
  `));
1593
- 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(I, { name: "download", children: a || "Download" }) }) }) });
1593
+ return /* @__PURE__ */ s.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ s.jsx(te, { variant: i, size: r, active: o, disabled: l, rounded: c, children: /* @__PURE__ */ s.jsx("a", { href: h, download: n + ".csv", children: /* @__PURE__ */ s.jsx(F, { name: "download", children: a || "Download" }) }) }) });
1594
1594
  }, To = ({
1595
1595
  variant: e = "transparent",
1596
1596
  size: t = "small",
@@ -1601,9 +1601,9 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1601
1601
  onClick: o,
1602
1602
  children: l
1603
1603
  }) => {
1604
- const [c, h] = J(!1), u = () => !r || r && !c ? i ? /* @__PURE__ */ s.jsx(I, { name: "sort-asc" }) : /* @__PURE__ */ s.jsx(I, { name: "sort-desc" }) : i ? /* @__PURE__ */ s.jsx(I, { name: "sort-desc" }) : /* @__PURE__ */ s.jsx(I, { name: "sort-asc" });
1604
+ const [c, h] = Y(!1), u = () => !r || r && !c ? i ? /* @__PURE__ */ s.jsx(F, { name: "sort-asc" }) : /* @__PURE__ */ s.jsx(F, { name: "sort-desc" }) : i ? /* @__PURE__ */ s.jsx(F, { name: "sort-desc" }) : /* @__PURE__ */ s.jsx(F, { name: "sort-asc" });
1605
1605
  return /* @__PURE__ */ s.jsxs(
1606
- ne,
1606
+ te,
1607
1607
  {
1608
1608
  variant: e,
1609
1609
  size: t,
@@ -1648,14 +1648,14 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1648
1648
  {
1649
1649
  className: e === "left" ? "muncher-button--navigate muncher-button--navigate-left" : "muncher-button--navigate muncher-button--navigate-right",
1650
1650
  children: /* @__PURE__ */ s.jsx(
1651
- ne,
1651
+ te,
1652
1652
  {
1653
1653
  onClick: o,
1654
1654
  disabled: i,
1655
1655
  size: "small",
1656
1656
  variant: r,
1657
1657
  title: e === "left" ? "Navigate Left" : "Navigate Right",
1658
- children: /* @__PURE__ */ s.jsx(I, { name: l(), size: t, weight: n })
1658
+ children: /* @__PURE__ */ s.jsx(F, { name: l(), size: t, weight: n })
1659
1659
  }
1660
1660
  )
1661
1661
  }
@@ -1663,7 +1663,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1663
1663
  }, nt = ({ label: e, onClick: t, id: n, required: i = !1 }) => /* @__PURE__ */ s.jsxs("label", { htmlFor: n, onClick: t, children: [
1664
1664
  e,
1665
1665
  i ? /* @__PURE__ */ s.jsx("span", { className: "required", children: "*" }) : ""
1666
- ] }), Ch = ({
1666
+ ] }), Eh = ({
1667
1667
  name: e,
1668
1668
  required: t = !1,
1669
1669
  onChange: n,
@@ -1671,7 +1671,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1671
1671
  label: r,
1672
1672
  ...a
1673
1673
  }) => {
1674
- const [o, l] = J(i || !1);
1674
+ const [o, l] = Y(i || !1);
1675
1675
  return /* @__PURE__ */ s.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ s.jsxs("div", { className: "muncher-checkbox", children: [
1676
1676
  /* @__PURE__ */ s.jsx(
1677
1677
  "input",
@@ -1723,7 +1723,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1723
1723
  };
1724
1724
  return /* @__PURE__ */ s.jsx("div", { className: "muncher-file-input--div", children: /* @__PURE__ */ s.jsxs("div", { className: "file-input-element", children: [
1725
1725
  /* @__PURE__ */ s.jsxs("label", { htmlFor: e, className: d, children: [
1726
- /* @__PURE__ */ s.jsx(I, { name: "upload" }),
1726
+ /* @__PURE__ */ s.jsx(F, { name: "upload" }),
1727
1727
  " ",
1728
1728
  t || "Upload CSV",
1729
1729
  r ? /* @__PURE__ */ s.jsx("span", { className: "required", children: " *" }) : "",
@@ -1744,7 +1744,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1744
1744
  c && c !== "" ? /* @__PURE__ */ s.jsx("p", { className: "text-danger", children: c }) : "",
1745
1745
  h && h !== "" ? /* @__PURE__ */ s.jsx("p", { className: "text-success", children: h }) : ""
1746
1746
  ] }) });
1747
- }, Eh = ({
1747
+ }, Dh = ({
1748
1748
  name: e,
1749
1749
  label: t,
1750
1750
  variant: n = "secondary",
@@ -1757,7 +1757,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1757
1757
  maxFiles: h,
1758
1758
  ...u
1759
1759
  }) => {
1760
- const [d, f] = J(""), [m, x] = J(""), g = h || 3, j = "muncher-button" + (n ? " muncher-button--" + n : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), y = (w) => {
1760
+ const [d, f] = Y(""), [m, x] = Y(""), g = h || 3, j = "muncher-button" + (n ? " muncher-button--" + n : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), y = (w) => {
1761
1761
  if (c) {
1762
1762
  let T = Array.from(w.currentTarget.files);
1763
1763
  T.length > g && (T = T.slice(0, g), x("Only first " + g + " files included")), o(T), f(T.map((S) => S.name).join(", "));
@@ -1767,7 +1767,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1767
1767
  return /* @__PURE__ */ s.jsxs("div", { className: "muncher-file-input--div", children: [
1768
1768
  /* @__PURE__ */ s.jsxs("div", { className: "file-input-element", children: [
1769
1769
  /* @__PURE__ */ s.jsxs("label", { htmlFor: e, className: j, children: [
1770
- /* @__PURE__ */ s.jsx(I, { name: "image" }),
1770
+ /* @__PURE__ */ s.jsx(F, { name: "image" }),
1771
1771
  " ",
1772
1772
  t,
1773
1773
  r ? /* @__PURE__ */ s.jsx("span", { className: "required", children: " *" }) : ""
@@ -1788,7 +1788,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1788
1788
  )
1789
1789
  ] }),
1790
1790
  m !== "" ? /* @__PURE__ */ s.jsx("p", { className: "text-danger", children: m }) : "",
1791
- b() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(I, { name: "alert", children: l }) }) : ""
1791
+ b() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(F, { name: "alert", children: l }) }) : ""
1792
1792
  ] });
1793
1793
  }, So = ({
1794
1794
  name: e,
@@ -1824,9 +1824,9 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1824
1824
  u !== "side" ? M() : "",
1825
1825
  /* @__PURE__ */ s.jsxs("div", { className: "muncher-input-element", children: [
1826
1826
  u === "side" ? M() : "",
1827
- r ? /* @__PURE__ */ s.jsx(I, { name: r }) : "",
1827
+ r ? /* @__PURE__ */ s.jsx(F, { name: r }) : "",
1828
1828
  a ? /* @__PURE__ */ s.jsxs("span", { className: "muncher-icon-hover", children: [
1829
- /* @__PURE__ */ s.jsx(I, { name: a, onClick: o }),
1829
+ /* @__PURE__ */ s.jsx(F, { name: a, onClick: o }),
1830
1830
  " "
1831
1831
  ] }) : "",
1832
1832
  /* @__PURE__ */ s.jsxs("div", { className: "muncher-input-wrapper", children: [
@@ -1855,9 +1855,9 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1855
1855
  T ? /* @__PURE__ */ s.jsx(vi, { size: "tiny" }) : ""
1856
1856
  ] })
1857
1857
  ] }),
1858
- E() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(I, { name: "alert", children: f }) }) : ""
1858
+ E() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(F, { name: "alert", children: f }) }) : ""
1859
1859
  ] });
1860
- }, Dh = ({ 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: [
1860
+ }, 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: [
1861
1861
  /* @__PURE__ */ s.jsx(
1862
1862
  "input",
1863
1863
  {
@@ -1914,9 +1914,9 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1914
1914
  ]
1915
1915
  }
1916
1916
  ) }),
1917
- h() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(I, { name: "alert", children: a }) }) : ""
1917
+ h() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(F, { name: "alert", children: a }) }) : ""
1918
1918
  ] });
1919
- }, kh = ({
1919
+ }, Rh = ({
1920
1920
  name: e,
1921
1921
  label: t,
1922
1922
  required: n,
@@ -1929,7 +1929,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1929
1929
  value: h,
1930
1930
  ...u
1931
1931
  }) => {
1932
- const [d, f] = J(h), m = (x) => {
1932
+ const [d, f] = Y(h), m = (x) => {
1933
1933
  f(x.target.value), c && c(x);
1934
1934
  };
1935
1935
  return /* @__PURE__ */ s.jsxs("div", { className: "muncher-input--div", children: [
@@ -1956,7 +1956,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1956
1956
  " characters left"
1957
1957
  ] })
1958
1958
  ] });
1959
- }, Rh = ({
1959
+ }, Lh = ({
1960
1960
  name: e = "query",
1961
1961
  focus: t = !1,
1962
1962
  inputPlaceHolder: n,
@@ -1975,12 +1975,12 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1975
1975
  }) => {
1976
1976
  const g = fe(null), j = (w) => {
1977
1977
  a(!0), i(w.target.value);
1978
- }, y = Ve(() => {
1978
+ }, y = Ce(() => {
1979
1979
  a(!1);
1980
- }, [a]), b = Ve((w) => {
1980
+ }, [a]), b = Ce((w) => {
1981
1981
  w.keyCode === 27 && y();
1982
1982
  }, [y]);
1983
- return Ce(() => {
1983
+ return je(() => {
1984
1984
  const w = (T) => {
1985
1985
  if (g && g !== null) {
1986
1986
  const S = g.current;
@@ -2010,8 +2010,8 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2010
2010
  ),
2011
2011
  r ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-drop-down--content", children: x }) : ""
2012
2012
  ] });
2013
- }, Lh = ({ children: e }) => /* @__PURE__ */ s.jsx("ul", { className: "muncher-ul", children: e }), Nh = ({ 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(
2014
- I,
2013
+ }, 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(
2014
+ F,
2015
2015
  {
2016
2016
  name: t,
2017
2017
  weight: n,
@@ -2019,13 +2019,13 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2019
2019
  color: r,
2020
2020
  children: a
2021
2021
  }
2022
- ) }), Fh = ({ show: e = !1, setShow: t, children: n, ...i }) => {
2023
- const r = Ve((a) => {
2022
+ ) }), Oh = ({ show: e = !1, setShow: t, children: n, ...i }) => {
2023
+ const r = Ce((a) => {
2024
2024
  a.keyCode === 27 && t(!1);
2025
2025
  }, [t]);
2026
- return Ce(() => (document.addEventListener("keydown", r, !1), () => {
2026
+ return je(() => (document.addEventListener("keydown", r, !1), () => {
2027
2027
  document.removeEventListener("keydown", r, !1);
2028
- }), [r]), Ce(() => {
2028
+ }), [r]), je(() => {
2029
2029
  e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset";
2030
2030
  }, [e]), /* @__PURE__ */ s.jsxs(gi.Fragment, { children: [
2031
2031
  /* @__PURE__ */ s.jsx(yo, { show: e, backdropClickHandler: () => t(!1) }),
@@ -2042,16 +2042,16 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2042
2042
  }
2043
2043
  )
2044
2044
  ] });
2045
- }, Oh = ({ showHoverEffect: e, onClick: t, children: n }) => {
2045
+ }, Ih = ({ showHoverEffect: e, onClick: t, children: n }) => {
2046
2046
  const i = () => e ? "muncher-paper muncher-paper-hover" : "muncher-paper";
2047
2047
  return /* @__PURE__ */ s.jsx("section", { className: i(), onClick: t, children: n });
2048
- }, Ih = ({ pillCloseHandler: e, children: t, ...n }) => /* @__PURE__ */ s.jsxs("div", { className: "muncher-pill", ...n, children: [
2049
- /* @__PURE__ */ s.jsx("div", { className: "close", onClick: e, children: /* @__PURE__ */ s.jsx(I, { name: "close" }) }),
2048
+ }, Bh = ({ pillCloseHandler: e, children: t, ...n }) => /* @__PURE__ */ s.jsxs("div", { className: "muncher-pill", ...n, children: [
2049
+ /* @__PURE__ */ s.jsx("div", { className: "close", onClick: e, children: /* @__PURE__ */ s.jsx(F, { name: "close" }) }),
2050
2050
  /* @__PURE__ */ s.jsxs("div", { className: "content", children: [
2051
2051
  " ",
2052
2052
  t
2053
2053
  ] })
2054
- ] }), Bh = ({ value: e, max: t, label: n }) => {
2054
+ ] }), zh = ({ value: e, max: t, label: n }) => {
2055
2055
  const i = () => {
2056
2056
  const r = Math.round(e / t * 100) + "%";
2057
2057
  return n ? n + " " + r : r;
@@ -2060,11 +2060,11 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2060
2060
  /* @__PURE__ */ s.jsx("label", { htmlFor: "progress", children: i() }),
2061
2061
  /* @__PURE__ */ s.jsx("progress", { id: "progress", value: e, max: t, children: i() })
2062
2062
  ] });
2063
- }, zh = ({ variant: e, size: t, style: n }) => {
2063
+ }, Hh = ({ variant: e, size: t, style: n }) => {
2064
2064
  const i = "muncher-hr" + (e ? " muncher-hr--" + e : "") + (t ? " muncher-hr--" + t : "") + (n ? " muncher-hr--" + n : "");
2065
2065
  return /* @__PURE__ */ s.jsx("hr", { className: i });
2066
- }, Hh = ({ sliderItems: e, navButtonSize: t = "large", navButtonWeight: n = 2, variant: i, navIcon: r, navButtonPlacement: a = "inside" }) => {
2067
- const [o, l] = J(0), [c, h] = J(0), u = () => e.length > 1 && o > 0 ? /* @__PURE__ */ s.jsx(
2066
+ }, _h = ({ sliderItems: e, navButtonSize: t = "large", navButtonWeight: n = 2, variant: i, navIcon: r, navButtonPlacement: a = "inside" }) => {
2067
+ const [o, l] = Y(0), [c, h] = Y(0), u = () => e.length > 1 && o > 0 ? /* @__PURE__ */ s.jsx(
2068
2068
  Qn,
2069
2069
  {
2070
2070
  direction: "left",
@@ -2108,7 +2108,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2108
2108
  ] }),
2109
2109
  a === "outside" ? d() : ""
2110
2110
  ] });
2111
- }, _h = ({
2111
+ }, Uh = ({
2112
2112
  min: e,
2113
2113
  max: t,
2114
2114
  minValue: n,
@@ -2156,7 +2156,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2156
2156
  /* @__PURE__ */ s.jsx("div", { className: "slider-max", children: h(t) })
2157
2157
  ] })
2158
2158
  ] });
2159
- }, Uh = ({
2159
+ }, Wh = ({
2160
2160
  min: e,
2161
2161
  max: t,
2162
2162
  value: n,
@@ -2188,7 +2188,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2188
2188
  /* @__PURE__ */ s.jsx("div", { className: "slider-max", children: a(t) })
2189
2189
  ] })
2190
2190
  ] });
2191
- }, Wh = ({ 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 }) }), $h = ({ rating: e, color: t, size: n, ...i }) => {
2191
+ }, $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 }) => {
2192
2192
  const r = {
2193
2193
  "--r": e
2194
2194
  }, a = () => {
@@ -2196,15 +2196,15 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2196
2196
  return t && (o += " star-" + t), n && (o += " star-" + n), o;
2197
2197
  };
2198
2198
  return /* @__PURE__ */ s.jsx("span", { className: a(), style: r, ...i });
2199
- }, Kh = ({ handleTabSelected: e, children: t }) => {
2200
- const [n, i] = J(0), { tabs: r } = t, a = (o) => {
2199
+ }, Gh = ({ handleTabSelected: e, children: t }) => {
2200
+ const [n, i] = Y(0), { tabs: r } = t, a = (o) => {
2201
2201
  i(o), e && e(o);
2202
2202
  };
2203
2203
  return /* @__PURE__ */ s.jsxs("section", { className: "muncher-tabs", children: [
2204
2204
  /* @__PURE__ */ s.jsx("header", { children: r.map(
2205
2205
  (o, l) => /* @__PURE__ */ s.jsxs("div", { className: "muncher-tab-header--item", children: [
2206
2206
  /* @__PURE__ */ s.jsx(
2207
- ne,
2207
+ te,
2208
2208
  {
2209
2209
  variant: "transparent",
2210
2210
  active: n === l,
@@ -2230,7 +2230,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2230
2230
  )
2231
2231
  )
2232
2232
  ] });
2233
- }, Gh = ({
2233
+ }, Yh = ({
2234
2234
  fileName: e,
2235
2235
  defaultPageSize: t = 50,
2236
2236
  skeleton: n,
@@ -2245,7 +2245,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2245
2245
  footer: d,
2246
2246
  children: f
2247
2247
  }) => {
2248
- const { header: m, rows: x } = f, [g, j] = J(r ?? { index: 0 }), [y, b] = J({ num: 0, size: t }), w = (M) => {
2248
+ const { header: m, rows: x } = f, [g, j] = Y(r ?? { index: 0 }), [y, b] = Y({ num: 0, size: t }), w = (M) => {
2249
2249
  j(
2250
2250
  (C) => C.index === M ? { ...C, desc: !C.desc } : { index: M }
2251
2251
  );
@@ -2253,8 +2253,8 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2253
2253
  var P;
2254
2254
  const M = [...x], C = (P = m[g.index]) == null ? void 0 : P.sort;
2255
2255
  return C ? M.sort(C) : M.sort((D, z) => {
2256
- var Y, $, Ee, F;
2257
- const ie = (($ = (Y = D[g.index]) == null ? void 0 : Y.value) == null ? void 0 : $.toString().toLowerCase()) ?? "", W = ((F = (Ee = z[g.index]) == null ? void 0 : Ee.value) == null ? void 0 : F.toString().toLowerCase()) ?? "";
2256
+ var X, $, Ee, O;
2257
+ const ie = (($ = (X = D[g.index]) == null ? void 0 : X.value) == null ? void 0 : $.toString().toLowerCase()) ?? "", W = ((O = (Ee = z[g.index]) == null ? void 0 : Ee.value) == null ? void 0 : O.toString().toLowerCase()) ?? "";
2258
2258
  return ie.localeCompare(W);
2259
2259
  }), g.desc ? M.reverse() : M;
2260
2260
  }, [x, g, m]), S = Oe(
@@ -2343,35 +2343,35 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2343
2343
  ] }),
2344
2344
  /* @__PURE__ */ s.jsxs("div", { className: "right", children: [
2345
2345
  /* @__PURE__ */ s.jsx(
2346
- ne,
2346
+ te,
2347
2347
  {
2348
2348
  variant: "transparent",
2349
2349
  disabled: y.num === 0,
2350
2350
  size: "small",
2351
2351
  onClick: () => b({ ...y, num: y.num - 1 }),
2352
- children: /* @__PURE__ */ s.jsx(I, { name: "chevron-left" })
2352
+ children: /* @__PURE__ */ s.jsx(F, { name: "chevron-left" })
2353
2353
  }
2354
2354
  ),
2355
2355
  /* @__PURE__ */ s.jsx(
2356
- ne,
2356
+ te,
2357
2357
  {
2358
2358
  variant: "transparent",
2359
2359
  disabled: (y.num + 1) * y.size >= x.length,
2360
2360
  size: "small",
2361
2361
  onClick: () => b({ ...y, num: y.num + 1 }),
2362
- children: /* @__PURE__ */ s.jsx(I, { name: "chevron-right" })
2362
+ children: /* @__PURE__ */ s.jsx(F, { name: "chevron-right" })
2363
2363
  }
2364
2364
  )
2365
2365
  ] })
2366
2366
  ] })
2367
2367
  ] })
2368
2368
  ] });
2369
- }, Yh = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: "muncher-card", children: e }), wi = ze({});
2369
+ }, Xh = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: "muncher-card", children: e }), wi = ze({});
2370
2370
  function Po(e) {
2371
2371
  const t = fe(null);
2372
2372
  return t.current === null && (t.current = e()), t.current;
2373
2373
  }
2374
- const Vo = typeof window < "u", Co = Vo ? lo : Ce, Tn = /* @__PURE__ */ ze(null);
2374
+ const Vo = typeof window < "u", Co = Vo ? lo : je, Tn = /* @__PURE__ */ ze(null);
2375
2375
  function Mn(e, t) {
2376
2376
  e.indexOf(t) === -1 && e.push(t);
2377
2377
  }
@@ -2393,7 +2393,7 @@ typeof process < "u" && ((yi = process.env) == null ? void 0 : yi.NODE_ENV) !==
2393
2393
  if (!e)
2394
2394
  throw new Error(Zt(t, n));
2395
2395
  });
2396
- const je = {}, bi = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
2396
+ const ve = {}, bi = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
2397
2397
  function Ti(e) {
2398
2398
  return typeof e == "object" && e !== null;
2399
2399
  }
@@ -2432,7 +2432,7 @@ class Sn {
2432
2432
  this.subscriptions.length = 0;
2433
2433
  }
2434
2434
  }
2435
- const ee = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, te = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
2435
+ const ee = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ne = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
2436
2436
  function Ai(e, t) {
2437
2437
  return t ? e * (1e3 / t) : 0;
2438
2438
  }
@@ -2540,7 +2540,7 @@ function Oi(e, t) {
2540
2540
  timestamp: 0,
2541
2541
  isProcessing: !1
2542
2542
  }, a = () => n = !0, o = ct.reduce((w, T) => (w[T] = Io(a), w), {}), { setup: l, read: c, resolveKeyframes: h, preUpdate: u, update: d, preRender: f, render: m, postRender: x } = o, g = () => {
2543
- const w = je.useManualTiming, T = w ? r.timestamp : performance.now();
2543
+ const w = ve.useManualTiming, T = w ? r.timestamp : performance.now();
2544
2544
  n = !1, w || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(T - r.timestamp, Bo), 1)), r.timestamp = T, 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));
2545
2545
  }, j = () => {
2546
2546
  n = !0, i = !0, r.isProcessing || e(g);
@@ -2553,13 +2553,13 @@ function Oi(e, t) {
2553
2553
  o[ct[T]].cancel(w);
2554
2554
  }, state: r, steps: o };
2555
2555
  }
2556
- const { schedule: k, cancel: ve, state: _, steps: Ft } = /* @__PURE__ */ Oi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : se, !0);
2556
+ const { schedule: k, cancel: we, state: _, steps: Ft } = /* @__PURE__ */ Oi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : se, !0);
2557
2557
  let ft;
2558
2558
  function zo() {
2559
2559
  ft = void 0;
2560
2560
  }
2561
- const q = {
2562
- now: () => (ft === void 0 && q.set(_.isProcessing || je.useManualTiming ? _.timestamp : performance.now()), ft),
2561
+ const Z = {
2562
+ now: () => (ft === void 0 && Z.set(_.isProcessing || ve.useManualTiming ? _.timestamp : performance.now()), ft),
2563
2563
  set: (e) => {
2564
2564
  ft = e, queueMicrotask(zo);
2565
2565
  }
@@ -2594,7 +2594,7 @@ const Wo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
2594
2594
  }, $o = (e) => de(0, 255, e), Ot = {
2595
2595
  ..._e,
2596
2596
  transform: (e) => Math.round($o(e))
2597
- }, Me = {
2597
+ }, Se = {
2598
2598
  test: /* @__PURE__ */ Dn("rgb", "red"),
2599
2599
  parse: /* @__PURE__ */ zi("red", "green", "blue"),
2600
2600
  transform: ({ red: e, green: t, blue: n, alpha: i = 1 }) => "rgba(" + Ot.transform(e) + ", " + Ot.transform(t) + ", " + Ot.transform(n) + ", " + Xe(Qe.transform(i)) + ")"
@@ -2611,7 +2611,7 @@ function Ko(e) {
2611
2611
  const Jt = {
2612
2612
  test: /* @__PURE__ */ Dn("#"),
2613
2613
  parse: Ko,
2614
- transform: Me.transform
2614
+ transform: Se.transform
2615
2615
  }, rt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
2616
2616
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
2617
2617
  parse: parseFloat,
@@ -2625,9 +2625,9 @@ const Jt = {
2625
2625
  parse: /* @__PURE__ */ zi("hue", "saturation", "lightness"),
2626
2626
  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)) + ")"
2627
2627
  }, B = {
2628
- test: (e) => Me.test(e) || Jt.test(e) || Re.test(e),
2629
- parse: (e) => Me.test(e) ? Me.parse(e) : Re.test(e) ? Re.parse(e) : Jt.parse(e),
2630
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Me.transform(e) : Re.transform(e),
2628
+ test: (e) => Se.test(e) || Jt.test(e) || Re.test(e),
2629
+ parse: (e) => Se.test(e) ? Se.parse(e) : Re.test(e) ? Re.parse(e) : Jt.parse(e),
2630
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Se.transform(e) : Re.transform(e),
2631
2631
  getAnimatableNone: (e) => {
2632
2632
  const t = B.parse(e);
2633
2633
  return t.alpha = 0, B.transform(t);
@@ -2702,7 +2702,7 @@ function wt(e, t) {
2702
2702
  const N = (e, t, n) => e + (t - e) * n, Bt = (e, t, n) => {
2703
2703
  const i = e * e, r = n * (t * t - i) + i;
2704
2704
  return r < 0 ? 0 : Math.sqrt(r);
2705
- }, oa = [Jt, Me, Re], aa = (e) => oa.find((t) => t.test(e));
2705
+ }, oa = [Jt, Se, Re], aa = (e) => oa.find((t) => t.test(e));
2706
2706
  function os(e) {
2707
2707
  const t = aa(e);
2708
2708
  if (He(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
@@ -2715,7 +2715,7 @@ const as = (e, t) => {
2715
2715
  if (!n || !i)
2716
2716
  return wt(e, t);
2717
2717
  const r = { ...n };
2718
- return (a) => (r.red = Bt(n.red, i.red, a), r.green = Bt(n.green, i.green, a), r.blue = Bt(n.blue, i.blue, a), r.alpha = N(n.alpha, i.alpha, a), Me.transform(r));
2718
+ return (a) => (r.red = Bt(n.red, i.red, a), r.green = Bt(n.green, i.green, a), r.blue = Bt(n.blue, i.blue, a), r.alpha = N(n.alpha, i.alpha, a), Se.transform(r));
2719
2719
  }, Qt = /* @__PURE__ */ new Set(["none", "hidden"]);
2720
2720
  function la(e, t) {
2721
2721
  return Qt.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
@@ -2763,12 +2763,12 @@ const fa = (e) => {
2763
2763
  const t = ({ timestamp: n }) => e(n);
2764
2764
  return {
2765
2765
  start: (n = !0) => k.update(t, n),
2766
- stop: () => ve(t),
2766
+ stop: () => we(t),
2767
2767
  /**
2768
2768
  * If we're processing this frame we can use the
2769
2769
  * framelocked timestamp to keep things in sync.
2770
2770
  */
2771
- now: () => _.isProcessing ? _.timestamp : q.now()
2771
+ now: () => _.isProcessing ? _.timestamp : Z.now()
2772
2772
  };
2773
2773
  }, Ki = (e, t, n = 10) => {
2774
2774
  let i = "";
@@ -2790,10 +2790,10 @@ function pa(e, t = 100, n) {
2790
2790
  return {
2791
2791
  type: "keyframes",
2792
2792
  ease: (a) => i.next(r * a).value / t,
2793
- duration: /* @__PURE__ */ te(r)
2793
+ duration: /* @__PURE__ */ ne(r)
2794
2794
  };
2795
2795
  }
2796
- const O = {
2796
+ const I = {
2797
2797
  // Default spring physics
2798
2798
  stiffness: 100,
2799
2799
  damping: 10,
@@ -2833,11 +2833,11 @@ function xa(e, t, n) {
2833
2833
  return i;
2834
2834
  }
2835
2835
  const ls = 1e-3;
2836
- function ya({ duration: e = O.duration, bounce: t = O.bounce, velocity: n = O.velocity, mass: i = O.mass }) {
2836
+ function ya({ duration: e = I.duration, bounce: t = I.bounce, velocity: n = I.velocity, mass: i = I.mass }) {
2837
2837
  let r, a;
2838
- He(e <= /* @__PURE__ */ ee(O.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
2838
+ He(e <= /* @__PURE__ */ ee(I.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
2839
2839
  let o = 1 - t;
2840
- o = de(O.minDamping, O.maxDamping, o), e = de(O.minDuration, O.maxDuration, /* @__PURE__ */ te(e)), o < 1 ? (r = (h) => {
2840
+ o = de(I.minDamping, I.maxDamping, o), e = de(I.minDuration, I.maxDuration, /* @__PURE__ */ ne(e)), o < 1 ? (r = (h) => {
2841
2841
  const u = h * o, d = u * e, f = u - n, m = en(h, o), x = Math.exp(-d);
2842
2842
  return ls - f / m * x;
2843
2843
  }, a = (h) => {
@@ -2853,8 +2853,8 @@ function ya({ duration: e = O.duration, bounce: t = O.bounce, velocity: n = O.ve
2853
2853
  const l = 5 / e, c = xa(r, a, l);
2854
2854
  if (e = /* @__PURE__ */ ee(e), isNaN(c))
2855
2855
  return {
2856
- stiffness: O.stiffness,
2857
- damping: O.damping,
2856
+ stiffness: I.stiffness,
2857
+ damping: I.damping,
2858
2858
  duration: e
2859
2859
  };
2860
2860
  {
@@ -2872,10 +2872,10 @@ function cs(e, t) {
2872
2872
  }
2873
2873
  function va(e) {
2874
2874
  let t = {
2875
- velocity: O.velocity,
2876
- stiffness: O.stiffness,
2877
- damping: O.damping,
2878
- mass: O.mass,
2875
+ velocity: I.velocity,
2876
+ stiffness: I.stiffness,
2877
+ damping: I.damping,
2878
+ mass: I.mass,
2879
2879
  isResolvedFromDuration: !1,
2880
2880
  ...e
2881
2881
  };
@@ -2884,7 +2884,7 @@ function va(e) {
2884
2884
  const n = e.visualDuration, i = 2 * Math.PI / (n * 1.2), r = i * i, a = 2 * de(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
2885
2885
  t = {
2886
2886
  ...t,
2887
- mass: O.mass,
2887
+ mass: I.mass,
2888
2888
  stiffness: r,
2889
2889
  damping: a
2890
2890
  };
@@ -2893,12 +2893,12 @@ function va(e) {
2893
2893
  t = {
2894
2894
  ...t,
2895
2895
  ...n,
2896
- mass: O.mass
2896
+ mass: I.mass
2897
2897
  }, t.isResolvedFromDuration = !0;
2898
2898
  }
2899
2899
  return t;
2900
2900
  }
2901
- function Tt(e = O.visualDuration, t = O.bounce) {
2901
+ function Tt(e = I.visualDuration, t = I.bounce) {
2902
2902
  const n = typeof e != "object" ? {
2903
2903
  visualDuration: e,
2904
2904
  keyframes: [0, 1],
@@ -2907,9 +2907,9 @@ function Tt(e = O.visualDuration, t = O.bounce) {
2907
2907
  let { restSpeed: i, restDelta: r } = n;
2908
2908
  const a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: a }, { stiffness: c, damping: h, mass: u, duration: d, velocity: f, isResolvedFromDuration: m } = va({
2909
2909
  ...n,
2910
- velocity: -/* @__PURE__ */ te(n.velocity || 0)
2911
- }), x = f || 0, g = h / (2 * Math.sqrt(c * u)), j = o - a, y = /* @__PURE__ */ te(Math.sqrt(c / u)), b = Math.abs(j) < 5;
2912
- i || (i = b ? O.restSpeed.granular : O.restSpeed.default), r || (r = b ? O.restDelta.granular : O.restDelta.default);
2910
+ velocity: -/* @__PURE__ */ ne(n.velocity || 0)
2911
+ }), x = f || 0, g = h / (2 * Math.sqrt(c * u)), j = o - a, y = /* @__PURE__ */ ne(Math.sqrt(c / u)), b = Math.abs(j) < 5;
2912
+ i || (i = b ? I.restSpeed.granular : I.restSpeed.default), r || (r = b ? I.restDelta.granular : I.restDelta.default);
2913
2913
  let w, T, S, E, R, M;
2914
2914
  if (g < 1)
2915
2915
  S = en(y, g), E = (x + g * y * j) / S, w = (P) => {
@@ -2923,13 +2923,13 @@ function Tt(e = O.visualDuration, t = O.bounce) {
2923
2923
  } else {
2924
2924
  const P = y * Math.sqrt(g * g - 1);
2925
2925
  w = (W) => {
2926
- const Y = Math.exp(-g * y * W), $ = Math.min(P * W, 300);
2927
- return o - Y * ((x + g * y * j) * Math.sinh($) + P * j * Math.cosh($)) / P;
2926
+ const X = Math.exp(-g * y * W), $ = Math.min(P * W, 300);
2927
+ return o - X * ((x + g * y * j) * Math.sinh($) + P * j * Math.cosh($)) / P;
2928
2928
  };
2929
2929
  const D = (x + g * y * j) / P, z = g * y * D - j * P, ie = g * y * j - D * P;
2930
2930
  T = (W) => {
2931
- const Y = Math.exp(-g * y * W), $ = Math.min(P * W, 300);
2932
- return Y * (z * Math.sinh($) + ie * Math.cosh($));
2931
+ const X = Math.exp(-g * y * W), $ = Math.min(P * W, 300);
2932
+ return X * (z * Math.sinh($) + ie * Math.cosh($));
2933
2933
  };
2934
2934
  }
2935
2935
  const C = {
@@ -2937,8 +2937,8 @@ function Tt(e = O.visualDuration, t = O.bounce) {
2937
2937
  velocity: (P) => /* @__PURE__ */ ee(T(P)),
2938
2938
  next: (P) => {
2939
2939
  if (!m && g < 1) {
2940
- const z = Math.exp(-g * y * P), ie = Math.sin(S * P), W = Math.cos(S * P), Y = o - z * (E * ie + j * W), $ = /* @__PURE__ */ ee(z * (R * ie + M * W));
2941
- return l.done = Math.abs($) <= i && Math.abs(o - Y) <= r, l.value = l.done ? o : Y, l;
2940
+ const z = Math.exp(-g * y * P), ie = Math.sin(S * P), W = Math.cos(S * P), X = o - z * (E * ie + j * W), $ = /* @__PURE__ */ ee(z * (R * ie + M * W));
2941
+ return l.done = Math.abs($) <= i && Math.abs(o - X) <= r, l.value = l.done ? o : X, l;
2942
2942
  }
2943
2943
  const D = w(P);
2944
2944
  if (m)
@@ -3000,7 +3000,7 @@ function tn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: i = 3
3000
3000
  };
3001
3001
  }
3002
3002
  function ba(e, t, n) {
3003
- const i = [], r = n || je.mix || $i, a = e.length - 1;
3003
+ const i = [], r = n || ve.mix || $i, a = e.length - 1;
3004
3004
  for (let o = 0; o < a; o++) {
3005
3005
  let l = r(e[o], e[o + 1]);
3006
3006
  if (t) {
@@ -3113,7 +3113,7 @@ class Mt extends Ln {
3113
3113
  }, this.stop = () => {
3114
3114
  var i, r;
3115
3115
  const { motionValue: n } = this.options;
3116
- n && n.updatedAt !== q.now() && this.tick(q.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), (r = (i = this.options).onStop) == null || r.call(i));
3116
+ n && n.updatedAt !== Z.now() && this.tick(Z.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), (r = (i = this.options).onStop) == null || r.call(i));
3117
3117
  }, this.options = t, this.initAnimation(), this.play(), t.autoplay === !1 && this.pause();
3118
3118
  }
3119
3119
  initAnimation() {
@@ -3166,14 +3166,14 @@ class Mt extends Ln {
3166
3166
  return this.finished.then(t, n);
3167
3167
  }
3168
3168
  get duration() {
3169
- return /* @__PURE__ */ te(this.calculatedDuration);
3169
+ return /* @__PURE__ */ ne(this.calculatedDuration);
3170
3170
  }
3171
3171
  get iterationDuration() {
3172
3172
  const { delay: t = 0 } = this.options || {};
3173
- return this.duration + /* @__PURE__ */ te(t);
3173
+ return this.duration + /* @__PURE__ */ ne(t);
3174
3174
  }
3175
3175
  get time() {
3176
- return /* @__PURE__ */ te(this.currentTime);
3176
+ return /* @__PURE__ */ ne(this.currentTime);
3177
3177
  }
3178
3178
  set time(t) {
3179
3179
  t = /* @__PURE__ */ ee(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = t, this.tick(t));
@@ -3197,7 +3197,7 @@ class Mt extends Ln {
3197
3197
  }
3198
3198
  set speed(t) {
3199
3199
  const n = this.playbackSpeed !== t;
3200
- n && this.driver && this.updateTime(q.now()), this.playbackSpeed = t, n && this.driver && (this.time = /* @__PURE__ */ te(this.currentTime));
3200
+ n && this.driver && this.updateTime(Z.now()), this.playbackSpeed = t, n && this.driver && (this.time = /* @__PURE__ */ ne(this.currentTime));
3201
3201
  }
3202
3202
  play() {
3203
3203
  var r, a;
@@ -3209,7 +3209,7 @@ class Mt extends Ln {
3209
3209
  this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = n ?? i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
3210
3210
  }
3211
3211
  pause() {
3212
- this.state = "paused", this.updateTime(q.now()), this.holdTime = this.currentTime;
3212
+ this.state = "paused", this.updateTime(Z.now()), this.holdTime = this.currentTime;
3213
3213
  }
3214
3214
  complete() {
3215
3215
  this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -3240,8 +3240,8 @@ function Da(e) {
3240
3240
  for (let t = 1; t < e.length; t++)
3241
3241
  e[t] ?? (e[t] = e[t - 1]);
3242
3242
  }
3243
- const Se = (e) => e * 180 / Math.PI, nn = (e) => {
3244
- const t = Se(Math.atan2(e[1], e[0]));
3243
+ const Ae = (e) => e * 180 / Math.PI, nn = (e) => {
3244
+ const t = Ae(Math.atan2(e[1], e[0]));
3245
3245
  return sn(t);
3246
3246
  }, ka = {
3247
3247
  x: 4,
@@ -3253,8 +3253,8 @@ const Se = (e) => e * 180 / Math.PI, nn = (e) => {
3253
3253
  scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
3254
3254
  rotate: nn,
3255
3255
  rotateZ: nn,
3256
- skewX: (e) => Se(Math.atan(e[1])),
3257
- skewY: (e) => Se(Math.atan(e[2])),
3256
+ skewX: (e) => Ae(Math.atan(e[1])),
3257
+ skewY: (e) => Ae(Math.atan(e[2])),
3258
3258
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
3259
3259
  }, sn = (e) => (e = e % 360, e < 0 && (e += 360), e), us = nn, hs = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), ds = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Ra = {
3260
3260
  x: 12,
@@ -3266,12 +3266,12 @@ const Se = (e) => e * 180 / Math.PI, nn = (e) => {
3266
3266
  scaleX: hs,
3267
3267
  scaleY: ds,
3268
3268
  scale: (e) => (hs(e) + ds(e)) / 2,
3269
- rotateX: (e) => sn(Se(Math.atan2(e[6], e[5]))),
3270
- rotateY: (e) => sn(Se(Math.atan2(-e[2], e[0]))),
3269
+ rotateX: (e) => sn(Ae(Math.atan2(e[6], e[5]))),
3270
+ rotateY: (e) => sn(Ae(Math.atan2(-e[2], e[0]))),
3271
3271
  rotateZ: us,
3272
3272
  rotate: us,
3273
- skewX: (e) => Se(Math.atan(e[4])),
3274
- skewY: (e) => Se(Math.atan(e[1])),
3273
+ skewX: (e) => Ae(Math.atan(e[4])),
3274
+ skewY: (e) => Ae(Math.atan(e[1])),
3275
3275
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
3276
3276
  };
3277
3277
  function rn(e) {
@@ -3346,11 +3346,11 @@ const ge = {
3346
3346
  };
3347
3347
  ge.translateX = ge.x;
3348
3348
  ge.translateY = ge.y;
3349
- const Ae = /* @__PURE__ */ new Set();
3349
+ const Pe = /* @__PURE__ */ new Set();
3350
3350
  let an = !1, ln = !1, cn = !1;
3351
3351
  function Xi() {
3352
3352
  if (ln) {
3353
- const e = Array.from(Ae).filter((i) => i.needsMeasurement), t = new Set(e.map((i) => i.element)), n = /* @__PURE__ */ new Map();
3353
+ const e = Array.from(Pe).filter((i) => i.needsMeasurement), t = new Set(e.map((i) => i.element)), n = /* @__PURE__ */ new Map();
3354
3354
  t.forEach((i) => {
3355
3355
  const r = Ia(i);
3356
3356
  r.length && (n.set(i, r), i.render());
@@ -3365,10 +3365,10 @@ function Xi() {
3365
3365
  i.suspendedScrollY !== void 0 && window.scrollTo(0, i.suspendedScrollY);
3366
3366
  });
3367
3367
  }
3368
- ln = !1, an = !1, Ae.forEach((e) => e.complete(cn)), Ae.clear();
3368
+ ln = !1, an = !1, Pe.forEach((e) => e.complete(cn)), Pe.clear();
3369
3369
  }
3370
3370
  function qi() {
3371
- Ae.forEach((e) => {
3371
+ Pe.forEach((e) => {
3372
3372
  e.readKeyframes(), e.needsMeasurement && (ln = !0);
3373
3373
  });
3374
3374
  }
@@ -3380,7 +3380,7 @@ class Nn {
3380
3380
  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;
3381
3381
  }
3382
3382
  scheduleResolve() {
3383
- this.state = "scheduled", this.isAsync ? (Ae.add(this), an || (an = !0, k.read(qi), k.resolveKeyframes(Xi))) : (this.readKeyframes(), this.complete());
3383
+ this.state = "scheduled", this.isAsync ? (Pe.add(this), an || (an = !0, k.read(qi), k.resolveKeyframes(Xi))) : (this.readKeyframes(), this.complete());
3384
3384
  }
3385
3385
  readKeyframes() {
3386
3386
  const { unresolvedKeyframes: t, name: n, element: i, motionValue: r } = this;
@@ -3405,10 +3405,10 @@ class Nn {
3405
3405
  measureEndState() {
3406
3406
  }
3407
3407
  complete(t = !1) {
3408
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Ae.delete(this);
3408
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Pe.delete(this);
3409
3409
  }
3410
3410
  cancel() {
3411
- this.state === "scheduled" && (Ae.delete(this), this.state = "pending");
3411
+ this.state === "scheduled" && (Pe.delete(this), this.state = "pending");
3412
3412
  }
3413
3413
  resume() {
3414
3414
  this.state === "pending" && this.scheduleResolve();
@@ -3526,14 +3526,14 @@ class nr extends Ln {
3526
3526
  get duration() {
3527
3527
  var n, i;
3528
3528
  const t = ((i = (n = this.animation.effect) == null ? void 0 : n.getComputedTiming) == null ? void 0 : i.call(n).duration) || 0;
3529
- return /* @__PURE__ */ te(Number(t));
3529
+ return /* @__PURE__ */ ne(Number(t));
3530
3530
  }
3531
3531
  get iterationDuration() {
3532
3532
  const { delay: t = 0 } = this.options || {};
3533
- return this.duration + /* @__PURE__ */ te(t);
3533
+ return this.duration + /* @__PURE__ */ ne(t);
3534
3534
  }
3535
3535
  get time() {
3536
- return /* @__PURE__ */ te(Number(this.animation.currentTime) || 0);
3536
+ return /* @__PURE__ */ ne(Number(this.animation.currentTime) || 0);
3537
3537
  }
3538
3538
  set time(t) {
3539
3539
  const n = this.finishedTime !== null;
@@ -3601,7 +3601,7 @@ class Ga extends nr {
3601
3601
  const l = new Mt({
3602
3602
  ...o,
3603
3603
  autoplay: !1
3604
- }), c = Math.max(zt, q.now() - this.startTime), h = de(0, zt, c - zt), u = l.sample(c).value, { name: d } = this.options;
3604
+ }), c = Math.max(zt, Z.now() - this.startTime), h = de(0, zt, c - zt), u = l.sample(c).value, { name: d } = this.options;
3605
3605
  a && d && Zi(a, d, u), n.setWithVelocity(l.sample(Math.max(0, c - h)).value, u, h), l.stop();
3606
3606
  }
3607
3607
  }
@@ -3678,7 +3678,7 @@ class nl extends Ln {
3678
3678
  super(), this.stop = () => {
3679
3679
  var g, j;
3680
3680
  this._animation && (this._animation.stop(), (g = this.stopTimeline) == null || g.call(this)), (j = this.keyframeResolver) == null || j.cancel();
3681
- }, this.createdAt = q.now();
3681
+ }, this.createdAt = Z.now();
3682
3682
  const f = {
3683
3683
  autoplay: t,
3684
3684
  delay: n,
@@ -3697,9 +3697,9 @@ class nl extends Ln {
3697
3697
  var y, b;
3698
3698
  this.keyframeResolver = void 0;
3699
3699
  const { name: a, type: o, velocity: l, delay: c, isHandoff: h, onUpdate: u } = i;
3700
- this.resolvedAt = q.now();
3700
+ this.resolvedAt = Z.now();
3701
3701
  let d = !0;
3702
- Xa(t, a, o, l) || (d = !1, (je.instantAnimations || !c) && (u == null || u(Ct(t, i, n))), t[0] = t[t.length - 1], un(i), i.repeat = 0);
3702
+ Xa(t, a, o, l) || (d = !1, (ve.instantAnimations || !c) && (u == null || u(Ct(t, i, n))), t[0] = t[t.length - 1], un(i), i.repeat = 0);
3703
3703
  const m = {
3704
3704
  startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > tl ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
3705
3705
  finalKeyframe: n,
@@ -3871,7 +3871,7 @@ const On = (e, t, n, i = {}, r, a) => (o) => {
3871
3871
  };
3872
3872
  dl(l) || Object.assign(u, ul(e, u)), u.duration && (u.duration = /* @__PURE__ */ ee(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ ee(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
3873
3873
  let d = !1;
3874
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (un(u), u.delay === 0 && (d = !0)), (je.instantAnimations || je.skipAnimations || r != null && r.shouldSkipAnimations) && (d = !0, un(u), u.delay = 0), u.allowFlatten = !l.type && !l.ease, d && !a && t.get() !== void 0) {
3874
+ 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) {
3875
3875
  const f = Ct(u.keyframes, l);
3876
3876
  if (f !== void 0) {
3877
3877
  k.update(() => {
@@ -3899,7 +3899,7 @@ function In(e, t, n, i) {
3899
3899
  }
3900
3900
  return t;
3901
3901
  }
3902
- function Pe(e, t, n) {
3902
+ function Ve(e, t, n) {
3903
3903
  const i = e.getProps();
3904
3904
  return In(i, t, n !== void 0 ? n : i.custom, e);
3905
3905
  }
@@ -3922,14 +3922,14 @@ class pl {
3922
3922
  constructor(t, n = {}) {
3923
3923
  this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i) => {
3924
3924
  var a;
3925
- const r = q.now();
3925
+ const r = Z.now();
3926
3926
  if (this.updatedAt !== r && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && ((a = this.events.change) == null || a.notify(this.current), this.dependents))
3927
3927
  for (const o of this.dependents)
3928
3928
  o.dirty();
3929
3929
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
3930
3930
  }
3931
3931
  setCurrent(t) {
3932
- this.current = t, this.updatedAt = q.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = fl(this.current));
3932
+ this.current = t, this.updatedAt = Z.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = fl(this.current));
3933
3933
  }
3934
3934
  setPrevFrameValue(t = this.current) {
3935
3935
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -4058,7 +4058,7 @@ class pl {
4058
4058
  * @public
4059
4059
  */
4060
4060
  getVelocity() {
4061
- const t = q.now();
4061
+ const t = Z.now();
4062
4062
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > ys)
4063
4063
  return 0;
4064
4064
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, ys);
@@ -4125,7 +4125,7 @@ function xl(e) {
4125
4125
  return hn(e) ? e[e.length - 1] || 0 : e;
4126
4126
  }
4127
4127
  function yl(e, t) {
4128
- const n = Pe(e, t);
4128
+ const n = Ve(e, t);
4129
4129
  let { transitionEnd: i = {}, transition: r = {}, ...a } = n || {};
4130
4130
  a = { ...a, ...i };
4131
4131
  for (const o in a) {
@@ -4141,8 +4141,8 @@ function dn(e, t) {
4141
4141
  const n = e.getValue("willChange");
4142
4142
  if (gl(n))
4143
4143
  return n.add(t);
4144
- if (!n && je.WillChange) {
4145
- const i = new je.WillChange("auto");
4144
+ if (!n && ve.WillChange) {
4145
+ const i = new ve.WillChange("auto");
4146
4146
  e.addValue("willChange", i), i.add(t);
4147
4147
  }
4148
4148
  }
@@ -4200,7 +4200,7 @@ function hr(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
4200
4200
  }
4201
4201
  function fn(e, t, n = {}) {
4202
4202
  var c;
4203
- const i = Pe(e, t, n.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
4203
+ const i = Ve(e, t, n.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
4204
4204
  let { transition: r = e.getDefaultTransition() || {} } = i || {};
4205
4205
  n.transitionOverride && (r = n.transitionOverride);
4206
4206
  const a = i ? () => Promise.all(hr(e, i, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (h = 0) => {
@@ -4231,7 +4231,7 @@ function bl(e, t, n = {}) {
4231
4231
  } else if (typeof t == "string")
4232
4232
  i = fn(e, t, n);
4233
4233
  else {
4234
- const r = typeof t == "function" ? Pe(e, t, n.custom) : t;
4234
+ const r = typeof t == "function" ? Ve(e, t, n.custom) : t;
4235
4235
  i = Promise.all(hr(e, r, n));
4236
4236
  }
4237
4237
  return i.then(() => {
@@ -4740,7 +4740,7 @@ class oc {
4740
4740
  this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Nn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
4741
4741
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
4742
4742
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
4743
- const m = q.now();
4743
+ const m = Z.now();
4744
4744
  this.renderScheduledAt < m && (this.renderScheduledAt = m, k.render(this.render, !1, !0));
4745
4745
  };
4746
4746
  const { latestValues: h, renderState: u } = l;
@@ -4760,7 +4760,7 @@ class oc {
4760
4760
  }
4761
4761
  unmount() {
4762
4762
  var t;
4763
- this.projection && this.projection.unmount(), ve(this.notifyUpdate), ve(this.render), this.valueSubscriptions.forEach((n) => n()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), (t = this.parent) == null || t.removeChild(this);
4763
+ this.projection && this.projection.unmount(), we(this.notifyUpdate), we(this.render), this.valueSubscriptions.forEach((n) => n()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), (t = this.parent) == null || t.removeChild(this);
4764
4764
  for (const n in this.events)
4765
4765
  this.events[n].clear();
4766
4766
  for (const n in this.features) {
@@ -4968,7 +4968,7 @@ class Sr extends oc {
4968
4968
  }));
4969
4969
  }
4970
4970
  }
4971
- class we {
4971
+ class be {
4972
4972
  constructor(t) {
4973
4973
  this.isMounted = !1, this.node = t;
4974
4974
  }
@@ -5001,7 +5001,7 @@ function _t(e) {
5001
5001
  function yn({ scale: e, scaleX: t, scaleY: n }) {
5002
5002
  return !_t(e) || !_t(t) || !_t(n);
5003
5003
  }
5004
- function Te(e) {
5004
+ function Me(e) {
5005
5005
  return yn(e) || Pr(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
5006
5006
  }
5007
5007
  function Pr(e) {
@@ -5034,7 +5034,7 @@ function cc(e, t, n, i = !1) {
5034
5034
  for (let c = 0; c < r; c++) {
5035
5035
  a = n[c], o = a.projectionDelta;
5036
5036
  const { visualElement: h } = a.options;
5037
- 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 && Te(a.latestValues) && yt(e, a.latestValues, (l = a.layout) == null ? void 0 : l.layoutBox));
5037
+ 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));
5038
5038
  }
5039
5039
  t.x < Es && t.x > Cs && (t.x = 1), t.y < Es && t.y > Cs && (t.y = 1);
5040
5040
  }
@@ -5338,7 +5338,7 @@ function Pc(e) {
5338
5338
  let t = Ac(e), n = Ls(), i = !0, r = !1;
5339
5339
  const a = (h) => (u, d) => {
5340
5340
  var m;
5341
- const f = Pe(e, d, h === "exit" ? (m = e.presenceContext) == null ? void 0 : m.custom : void 0);
5341
+ const f = Ve(e, d, h === "exit" ? (m = e.presenceContext) == null ? void 0 : m.custom : void 0);
5342
5342
  if (f) {
5343
5343
  const { transition: x, transitionEnd: g, ...j } = f;
5344
5344
  u = { ...u, ...j, ...g };
@@ -5377,39 +5377,39 @@ function Pc(e) {
5377
5377
  const { prevResolvedValues: ie = {} } = w, W = {
5378
5378
  ...ie,
5379
5379
  ...z
5380
- }, Y = (F) => {
5381
- C = !0, m.has(F) && (P = !0, m.delete(F)), w.needsAnimating[F] = !0;
5382
- const X = e.getValue(F);
5383
- X && (X.liveStyle = !1);
5380
+ }, X = (O) => {
5381
+ C = !0, m.has(O) && (P = !0, m.delete(O)), w.needsAnimating[O] = !0;
5382
+ const q = e.getValue(O);
5383
+ q && (q.liveStyle = !1);
5384
5384
  };
5385
- for (const F in W) {
5386
- const X = z[F], v = ie[F];
5387
- if (x.hasOwnProperty(F))
5385
+ for (const O in W) {
5386
+ const q = z[O], v = ie[O];
5387
+ if (x.hasOwnProperty(O))
5388
5388
  continue;
5389
5389
  let V = !1;
5390
- hn(X) && hn(v) ? V = !Or(X, v) : V = X !== v, V ? X != null ? Y(F) : m.add(F) : X !== void 0 && m.has(F) ? Y(F) : w.protectedKeys[F] = !0;
5390
+ hn(q) && hn(v) ? V = !Or(q, v) : V = q !== v, V ? q != null ? X(O) : m.add(O) : q !== void 0 && m.has(O) ? X(O) : w.protectedKeys[O] = !0;
5391
5391
  }
5392
5392
  w.prevProp = T, w.prevResolvedValues = z, w.isActive && (x = { ...x, ...z }), (i || r) && e.blockInitialAnimation && (C = !1);
5393
5393
  const $ = R && M;
5394
- C && (!$ || P) && f.push(...D.map((F) => {
5395
- const X = { type: b };
5396
- if (typeof F == "string" && (i || r) && !$ && e.manuallyAnimateOnMount && e.parent) {
5397
- const { parent: v } = e, V = Pe(v, F);
5394
+ C && (!$ || P) && f.push(...D.map((O) => {
5395
+ const q = { type: b };
5396
+ if (typeof O == "string" && (i || r) && !$ && e.manuallyAnimateOnMount && e.parent) {
5397
+ const { parent: v } = e, V = Ve(v, O);
5398
5398
  if (v.enteringChildren && V) {
5399
5399
  const { delayChildren: L } = V.transition || {};
5400
- X.delay = rr(v.enteringChildren, e, L);
5400
+ q.delay = rr(v.enteringChildren, e, L);
5401
5401
  }
5402
5402
  }
5403
5403
  return {
5404
- animation: F,
5405
- options: X
5404
+ animation: O,
5405
+ options: q
5406
5406
  };
5407
5407
  }));
5408
5408
  }
5409
5409
  if (m.size) {
5410
5410
  const y = {};
5411
5411
  if (typeof u.initial != "boolean") {
5412
- const b = Pe(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
5412
+ const b = Ve(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
5413
5413
  b && b.transition && (y.transition = b.transition);
5414
5414
  }
5415
5415
  m.forEach((b) => {
@@ -5446,7 +5446,7 @@ function Pc(e) {
5446
5446
  function Vc(e, t) {
5447
5447
  return typeof t == "string" ? t !== e : Array.isArray(t) ? !Or(t, e) : !1;
5448
5448
  }
5449
- function be(e = !1) {
5449
+ function Te(e = !1) {
5450
5450
  return {
5451
5451
  isActive: e,
5452
5452
  protectedKeys: {},
@@ -5456,13 +5456,13 @@ function be(e = !1) {
5456
5456
  }
5457
5457
  function Ls() {
5458
5458
  return {
5459
- animate: be(!0),
5460
- whileInView: be(),
5461
- whileHover: be(),
5462
- whileTap: be(),
5463
- whileDrag: be(),
5464
- whileFocus: be(),
5465
- exit: be()
5459
+ animate: Te(!0),
5460
+ whileInView: Te(),
5461
+ whileHover: Te(),
5462
+ whileTap: Te(),
5463
+ whileDrag: Te(),
5464
+ whileFocus: Te(),
5465
+ exit: Te()
5466
5466
  };
5467
5467
  }
5468
5468
  function vn(e, t) {
@@ -5475,28 +5475,28 @@ function Ns(e, t) {
5475
5475
  e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
5476
5476
  }
5477
5477
  const Ir = 1e-4, Cc = 1 - Ir, Ec = 1 + Ir, Br = 0.01, Dc = 0 - Br, kc = 0 + Br;
5478
- function Z(e) {
5478
+ function J(e) {
5479
5479
  return e.max - e.min;
5480
5480
  }
5481
5481
  function Rc(e, t, n) {
5482
5482
  return Math.abs(e - t) <= n;
5483
5483
  }
5484
5484
  function Fs(e, t, n, i = 0.5) {
5485
- e.origin = i, e.originPoint = N(t.min, t.max, e.origin), e.scale = Z(n) / Z(t), e.translate = N(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);
5485
+ e.origin = i, e.originPoint = N(t.min, t.max, e.origin), e.scale = J(n) / J(t), e.translate = N(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);
5486
5486
  }
5487
5487
  function qe(e, t, n, i) {
5488
5488
  Fs(e.x, t.x, n.x, i ? i.originX : void 0), Fs(e.y, t.y, n.y, i ? i.originY : void 0);
5489
5489
  }
5490
5490
  function Os(e, t, n, i = 0) {
5491
5491
  const r = i ? N(n.min, n.max, i) : n.min;
5492
- e.min = r + t.min, e.max = e.min + Z(t);
5492
+ e.min = r + t.min, e.max = e.min + J(t);
5493
5493
  }
5494
5494
  function Lc(e, t, n, i) {
5495
5495
  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);
5496
5496
  }
5497
5497
  function Is(e, t, n, i = 0) {
5498
5498
  const r = i ? N(n.min, n.max, i) : n.min;
5499
- e.min = t.min - r, e.max = e.min + Z(t);
5499
+ e.min = t.min - r, e.max = e.min + J(t);
5500
5500
  }
5501
5501
  function Pt(e, t, n, i) {
5502
5502
  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);
@@ -5536,7 +5536,7 @@ function Hr(e, t) {
5536
5536
  return Ws(e.x, t.x) && Ws(e.y, t.y);
5537
5537
  }
5538
5538
  function $s(e) {
5539
- return Z(e.x) / Z(e.y);
5539
+ return J(e.x) / J(e.y);
5540
5540
  }
5541
5541
  function Ks(e, t) {
5542
5542
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
@@ -5601,11 +5601,11 @@ class Kc {
5601
5601
  }
5602
5602
  }
5603
5603
  function Gc(e, t) {
5604
- const n = q.now(), i = ({ timestamp: r }) => {
5604
+ const n = Z.now(), i = ({ timestamp: r }) => {
5605
5605
  const a = r - n;
5606
- a >= t && (ve(i), e(a - t));
5606
+ a >= t && (we(i), e(a - t));
5607
5607
  };
5608
- return k.setup(i, !0), () => ve(i);
5608
+ return k.setup(i, !0), () => we(i);
5609
5609
  }
5610
5610
  function gt(e) {
5611
5611
  return U(e) ? e.get() : e;
@@ -5756,7 +5756,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5756
5756
  unmount() {
5757
5757
  this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
5758
5758
  const o = this.getStack();
5759
- o && o.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), ve(this.updateProjection);
5759
+ o && o.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), we(this.updateProjection);
5760
5760
  }
5761
5761
  // only on the root
5762
5762
  blockUpdate() {
@@ -5808,7 +5808,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5808
5808
  return;
5809
5809
  }
5810
5810
  this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(su), this.nodes.forEach(iu), this.nodes.forEach(Zc), this.nodes.forEach(Jc)) : this.nodes.forEach(Zs), this.clearAllSnapshots();
5811
- const l = q.now();
5811
+ const l = Z.now();
5812
5812
  _.delta = de(0, 1e3 / 60, l - _.timestamp), _.timestamp = l, _.isProcessing = !0, Ft.update.process(_), Ft.preRender.process(_), Ft.render.process(_), _.isProcessing = !1;
5813
5813
  }
5814
5814
  didUpdate() {
@@ -5829,7 +5829,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5829
5829
  * Update measurements
5830
5830
  */
5831
5831
  updateSnapshot() {
5832
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !Z(this.snapshot.measuredBox.x) && !Z(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
5832
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !J(this.snapshot.measuredBox.x) && !J(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
5833
5833
  }
5834
5834
  updateLayout() {
5835
5835
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
@@ -5859,7 +5859,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5859
5859
  if (!r)
5860
5860
  return;
5861
5861
  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;
5862
- o && this.instance && (l || Te(this.latestValues) || u) && (r(this.instance, h), this.shouldResetTransform = !1, this.scheduleRender());
5862
+ o && this.instance && (l || Me(this.latestValues) || u) && (r(this.instance, h), this.shouldResetTransform = !1, this.scheduleRender());
5863
5863
  }
5864
5864
  measure(o = !0) {
5865
5865
  const l = this.measurePageBox();
@@ -5901,9 +5901,9 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5901
5901
  re(h, o);
5902
5902
  for (let f = 0; f < this.path.length; f++) {
5903
5903
  const m = this.path[f];
5904
- !l && m.options.layoutScroll && m.scroll && m !== m.root && (ue(h.x, -m.scroll.offset.x), ue(h.y, -m.scroll.offset.y)), Te(m.latestValues) && yt(h, m.latestValues, (u = m.layout) == null ? void 0 : u.layoutBox);
5904
+ !l && m.options.layoutScroll && m.scroll && m !== m.root && (ue(h.x, -m.scroll.offset.x), ue(h.y, -m.scroll.offset.y)), Me(m.latestValues) && yt(h, m.latestValues, (u = m.layout) == null ? void 0 : u.layoutBox);
5905
5905
  }
5906
- return Te(this.latestValues) && yt(h, this.latestValues, (d = this.layout) == null ? void 0 : d.layoutBox), h;
5906
+ return Me(this.latestValues) && yt(h, this.latestValues, (d = this.layout) == null ? void 0 : d.layoutBox), h;
5907
5907
  }
5908
5908
  removeTransform(o) {
5909
5909
  var c;
@@ -5911,12 +5911,12 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5911
5911
  re(l, o);
5912
5912
  for (let h = 0; h < this.path.length; h++) {
5913
5913
  const u = this.path[h];
5914
- if (!Te(u.latestValues))
5914
+ if (!Me(u.latestValues))
5915
5915
  continue;
5916
5916
  let d;
5917
5917
  u.instance && (yn(u.latestValues) && u.updateSnapshot(), d = H(), re(d, u.measurePageBox())), Hs(l, u.latestValues, (c = u.snapshot) == null ? void 0 : c.layoutBox, d);
5918
5918
  }
5919
- return Te(this.latestValues) && Hs(l, this.latestValues), l;
5919
+ return Me(this.latestValues) && Hs(l, this.latestValues), l;
5920
5920
  }
5921
5921
  setTargetDelta(o) {
5922
5922
  this.targetDelta = o, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -6010,7 +6010,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6010
6010
  }
6011
6011
  startAnimation(o) {
6012
6012
  var l, c, h;
6013
- this.notifyListeners("animationStart"), (l = this.currentAnimation) == null || l.stop(), (h = (c = this.resumingFrom) == null ? void 0 : c.currentAnimation) == null || h.stop(), this.pendingAnimation && (ve(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = k.update(() => {
6013
+ 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(() => {
6014
6014
  jt.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Be(0)), this.motionValue.jump(0, !1), this.currentAnimation = Wc(this.motionValue, [0, 1e3], {
6015
6015
  ...o,
6016
6016
  velocity: 0,
@@ -6040,9 +6040,9 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6040
6040
  if (!(!l || !c || !h)) {
6041
6041
  if (this !== o && this.layout && h && Kr(this.options.animationType, this.layout.layoutBox, h.layoutBox)) {
6042
6042
  c = this.target || H();
6043
- const d = Z(this.layout.layoutBox.x);
6043
+ const d = J(this.layout.layoutBox.x);
6044
6044
  c.x.min = o.target.x.min, c.x.max = c.x.min + d;
6045
- const f = Z(this.layout.layoutBox.y);
6045
+ const f = J(this.layout.layoutBox.y);
6046
6046
  c.y.min = o.target.y.min, c.y.max = c.y.min + f;
6047
6047
  }
6048
6048
  re(l, c), yt(l, u), qe(this.projectionDeltaWithTransform, this.layoutCorrected, l, u);
@@ -6114,7 +6114,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6114
6114
  }
6115
6115
  const h = this.getLead();
6116
6116
  if (!this.projectionDelta || !this.layout || !h.target) {
6117
- this.options.layoutId && (o.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, o.pointerEvents = gt(l == null ? void 0 : l.pointerEvents) || ""), this.hasProjected && !Te(this.latestValues) && (o.transform = c ? c({}, "") : "none", this.hasProjected = !1);
6117
+ this.options.layoutId && (o.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, o.pointerEvents = gt(l == null ? void 0 : l.pointerEvents) || ""), this.hasProjected && !Me(this.latestValues) && (o.transform = c ? c({}, "") : "none", this.hasProjected = !1);
6118
6118
  return;
6119
6119
  }
6120
6120
  o.visibility = "";
@@ -6159,14 +6159,14 @@ function Jc(e) {
6159
6159
  const { layoutBox: i, measuredBox: r } = e.layout, { animationType: a } = e.options, o = t.source !== e.layout.source;
6160
6160
  if (a === "size")
6161
6161
  ce((d) => {
6162
- const f = o ? t.measuredBox[d] : t.layoutBox[d], m = Z(f);
6162
+ const f = o ? t.measuredBox[d] : t.layoutBox[d], m = J(f);
6163
6163
  f.min = i[d].min, f.max = f.min + m;
6164
6164
  });
6165
6165
  else if (a === "x" || a === "y") {
6166
6166
  const d = a === "x" ? "y" : "x";
6167
6167
  vn(o ? t.measuredBox[d] : t.layoutBox[d], i[d]);
6168
6168
  } else Kr(a, t.layoutBox, i) && ce((d) => {
6169
- const f = o ? t.measuredBox[d] : t.layoutBox[d], m = Z(i[d]);
6169
+ const f = o ? t.measuredBox[d] : t.layoutBox[d], m = J(i[d]);
6170
6170
  f.max = f.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + m);
6171
6171
  });
6172
6172
  const l = Fe();
@@ -6308,11 +6308,11 @@ function mu(e = !0) {
6308
6308
  if (t === null)
6309
6309
  return [!0, null];
6310
6310
  const { isPresent: n, onExitComplete: i, register: r } = t, a = co();
6311
- Ce(() => {
6311
+ je(() => {
6312
6312
  if (e)
6313
6313
  return r(a);
6314
6314
  }, [e]);
6315
- const o = Ve(() => e && i && i(a), [a, i, e]);
6315
+ const o = Ce(() => e && i && i(a), [a, i, e]);
6316
6316
  return !n && i ? [!1, o] : [!0];
6317
6317
  }
6318
6318
  const Xr = ze({ strict: !1 }), ii = {
@@ -6576,7 +6576,7 @@ function Lu(e, t, n) {
6576
6576
  i.current = n;
6577
6577
  });
6578
6578
  const r = fe(null);
6579
- return Ve((a) => {
6579
+ return Ce((a) => {
6580
6580
  var l;
6581
6581
  a && ((l = e.onMount) == null || l.call(e, a));
6582
6582
  const o = i.current;
@@ -6615,7 +6615,7 @@ function Nu(e, t, n, i, r, a) {
6615
6615
  const y = n[cr], b = fe(!!y && typeof window < "u" && !((w = window.MotionHandoffIsComplete) != null && w.call(window, y)) && ((T = window.MotionHasOptimisedAnimation) == null ? void 0 : T.call(window, y)));
6616
6616
  return Co(() => {
6617
6617
  m.current = !0, x && (j.current = !0, window.MotionIsMounted = !0, x.updateFeatures(), x.scheduleRenderMicrotask(), b.current && x.animationState && x.animationState.animateChanges());
6618
- }), Ce(() => {
6618
+ }), je(() => {
6619
6619
  x && (!b.current && x.animationState && x.animationState.animateChanges(), b.current && (queueMicrotask(() => {
6620
6620
  var S;
6621
6621
  (S = window.MotionHandoffMarkAsComplete) == null || S.call(window, y);
@@ -6706,7 +6706,7 @@ function zu(e, t) {
6706
6706
  const Hu = (e, t) => t.isSVG ?? Xn(e) ? new bc(t) : new xc(t, {
6707
6707
  allowProjection: e !== p
6708
6708
  });
6709
- class _u extends we {
6709
+ class _u extends be {
6710
6710
  /**
6711
6711
  * We dynamically generate the AnimationState manager as it contains a reference
6712
6712
  * to the underlying animation library. We only want to load that if we load this,
@@ -6735,7 +6735,7 @@ class _u extends we {
6735
6735
  }
6736
6736
  }
6737
6737
  let Uu = 0;
6738
- class Wu extends we {
6738
+ class Wu extends be {
6739
6739
  constructor() {
6740
6740
  super(...arguments), this.id = Uu++, this.isExitComplete = !1;
6741
6741
  }
@@ -6750,7 +6750,7 @@ class Wu extends we {
6750
6750
  if (this.isExitComplete) {
6751
6751
  const { initial: o, custom: l } = this.node.getProps();
6752
6752
  if (typeof o == "string") {
6753
- const c = Pe(this.node, o, l);
6753
+ const c = Ve(this.node, o, l);
6754
6754
  if (c) {
6755
6755
  const { transition: h, transitionEnd: u, ...d } = c;
6756
6756
  for (const f in d)
@@ -6878,7 +6878,7 @@ class io {
6878
6878
  this.handlers = t;
6879
6879
  }
6880
6880
  end() {
6881
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), ve(this.updatePoint);
6881
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), we(this.updatePoint);
6882
6882
  }
6883
6883
  }
6884
6884
  function ht(e, t) {
@@ -6911,7 +6911,7 @@ function Xu(e, t) {
6911
6911
  if (!i)
6912
6912
  return { x: 0, y: 0 };
6913
6913
  i === e[0] && e.length > 2 && r.timestamp - i.timestamp > /* @__PURE__ */ ee(t) * 2 && (i = e[1]);
6914
- const a = /* @__PURE__ */ te(r.timestamp - i.timestamp);
6914
+ const a = /* @__PURE__ */ ne(r.timestamp - i.timestamp);
6915
6915
  if (a === 0)
6916
6916
  return { x: 0, y: 0 };
6917
6917
  const o = {
@@ -6947,7 +6947,7 @@ function Ju(e, t) {
6947
6947
  }
6948
6948
  function Qu(e, t) {
6949
6949
  let n = 0.5;
6950
- const i = Z(e), r = Z(t);
6950
+ const i = J(e), r = J(t);
6951
6951
  return r > i ? n = /* @__PURE__ */ Je(t.min, t.max - i, e.min) : i > r && (n = /* @__PURE__ */ Je(e.min, e.max - r, t.min)), de(0, 1, n);
6952
6952
  }
6953
6953
  function eh(e, t) {
@@ -6991,7 +6991,7 @@ class sh {
6991
6991
  const { projection: w } = this.visualElement;
6992
6992
  if (w && w.layout) {
6993
6993
  const T = w.layout.layoutBox[y];
6994
- T && (b = Z(T) * (parseFloat(b) / 100));
6994
+ T && (b = J(T) * (parseFloat(b) / 100));
6995
6995
  }
6996
6996
  }
6997
6997
  this.originPoint[y] = b;
@@ -7230,7 +7230,7 @@ function rh(e, t = 10) {
7230
7230
  let n = null;
7231
7231
  return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
7232
7232
  }
7233
- class oh extends we {
7233
+ class oh extends be {
7234
7234
  constructor(t) {
7235
7235
  super(t), this.removeGroupControls = se, this.removeListeners = se, this.controls = new sh(t);
7236
7236
  }
@@ -7249,7 +7249,7 @@ class oh extends we {
7249
7249
  const Yt = (e) => (t, n) => {
7250
7250
  e && k.update(() => e(t, n), !1, !0);
7251
7251
  };
7252
- class ah extends we {
7252
+ class ah extends be {
7253
7253
  constructor() {
7254
7254
  super(...arguments), this.removePointerDownListener = se;
7255
7255
  }
@@ -7345,7 +7345,7 @@ function mi(e, t, n) {
7345
7345
  const r = "onHover" + n, a = i[r];
7346
7346
  a && k.postRender(() => a(t, ot(t)));
7347
7347
  }
7348
- class uh extends we {
7348
+ class uh extends be {
7349
7349
  mount() {
7350
7350
  const { current: t } = this.node;
7351
7351
  t && (this.unmount = Ol(t, (n, i) => (mi(this.node, i, "Start"), (r) => mi(this.node, r, "End"))));
@@ -7353,7 +7353,7 @@ class uh extends we {
7353
7353
  unmount() {
7354
7354
  }
7355
7355
  }
7356
- class hh extends we {
7356
+ class hh extends be {
7357
7357
  constructor() {
7358
7358
  super(...arguments), this.isActive = !1;
7359
7359
  }
@@ -7383,7 +7383,7 @@ function xi(e, t, n) {
7383
7383
  const r = "onTap" + (n === "End" ? "" : n), a = i[r];
7384
7384
  a && k.postRender(() => a(t, ot(t)));
7385
7385
  }
7386
- class dh extends we {
7386
+ class dh extends be {
7387
7387
  mount() {
7388
7388
  const { current: t } = this.node;
7389
7389
  if (!t)
@@ -7419,7 +7419,7 @@ const yh = {
7419
7419
  some: 0,
7420
7420
  all: 1
7421
7421
  };
7422
- class gh extends we {
7422
+ class gh extends be {
7423
7423
  constructor() {
7424
7424
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
7425
7425
  }
@@ -7480,7 +7480,7 @@ const vh = {
7480
7480
  ...vh,
7481
7481
  ...ch,
7482
7482
  ...wh
7483
- }, Th = /* @__PURE__ */ zu(bh, Hu), qh = ({ flipped: e, setFlipped: t, front: n, back: i }) => /* @__PURE__ */ s.jsxs(
7483
+ }, Th = /* @__PURE__ */ zu(bh, Hu), Zh = ({ flipped: e, setFlipped: t, front: n, back: i }) => /* @__PURE__ */ s.jsxs(
7484
7484
  Th.div,
7485
7485
  {
7486
7486
  className: `muncher-flippable-card ${e ? "flipped" : ""}`,
@@ -7491,46 +7491,66 @@ const vh = {
7491
7491
  /* @__PURE__ */ s.jsx("div", { className: "muncher-flippable-card-face back", children: i })
7492
7492
  ]
7493
7493
  }
7494
- );
7494
+ ), Mh = () => {
7495
+ const [e, t] = Y({
7496
+ isTop: !0,
7497
+ isBottom: !1
7498
+ });
7499
+ return je(() => {
7500
+ const n = () => {
7501
+ const i = window.scrollY, r = window.innerHeight, a = document.documentElement.scrollHeight, o = i < 50, l = i + r >= a - 50;
7502
+ t({ isTop: o, isBottom: l });
7503
+ };
7504
+ return window.addEventListener("scroll", n), n(), () => window.removeEventListener("scroll", n);
7505
+ }, []), e;
7506
+ }, Jh = ({ variant: e = "tertiary" }) => {
7507
+ const { isBottom: t } = Mh(), n = () => window.scrollTo({ top: 0, behavior: "smooth" }), i = () => window.scrollTo({
7508
+ top: document.documentElement.scrollHeight,
7509
+ behavior: "smooth"
7510
+ }), r = t ? "up" : "down";
7511
+ return /* @__PURE__ */ s.jsx("div", { className: "muncher-fab-container", children: /* @__PURE__ */ s.jsx(te, { variant: e, onClick: r === "up" ? n : i, rounded: !0, children: r === "up" ? /* @__PURE__ */ s.jsx(F, { name: "arrow-up" }) : /* @__PURE__ */ s.jsx(F, { name: "arrow-down" }) }) });
7512
+ };
7495
7513
  export {
7496
- Sh as Accordion,
7514
+ Ah as Accordion,
7497
7515
  yo as Backdrop,
7498
7516
  go as Badge,
7499
- ne as Button,
7500
- Yh as Card,
7501
- Ch as Checkbox,
7517
+ te as Button,
7518
+ Xh as Card,
7519
+ Eh as Checkbox,
7502
7520
  wo as CopyButton,
7503
7521
  bo as CsvButton,
7504
7522
  Mo as CsvInput,
7505
7523
  jo as DropdownButton,
7506
- Ph as DropdownNavButton,
7507
- Wh as Featured,
7508
- qh as FlippableCard,
7509
- zh as Hr,
7510
- I as Icon,
7511
- Ah as IconBadge,
7512
- Eh as ImageInput,
7524
+ Vh as DropdownNavButton,
7525
+ $h as Featured,
7526
+ Zh as FlippableCard,
7527
+ Hh as Hr,
7528
+ F as Icon,
7529
+ Ph as IconBadge,
7530
+ Dh as ImageInput,
7513
7531
  So as Input,
7514
- Hh as ItemSlider,
7532
+ _h as ItemSlider,
7515
7533
  nt as Label,
7516
- Nh as Li,
7517
- Fh as Modal,
7534
+ Fh as Li,
7535
+ Oh as Modal,
7518
7536
  Qn as NavigateButton,
7519
- Oh as Paper,
7520
- Ih as Pill,
7521
- Bh as Progress,
7522
- Dh as Radio,
7523
- _h as RangeSlider,
7537
+ Ih as Paper,
7538
+ Bh as Pill,
7539
+ zh as Progress,
7540
+ kh as Radio,
7541
+ Uh as RangeSlider,
7542
+ Jh as ScrollFab,
7524
7543
  Ao as Select,
7525
- Vh as ShareButton,
7526
- Uh as Slider,
7544
+ Ch as ShareButton,
7545
+ Wh as Slider,
7527
7546
  To as SortButton,
7528
7547
  vi as Spinner,
7529
- $h as Star,
7530
- Gh as Table,
7531
- Kh as Tabs,
7532
- Rh as TextInputDropdown,
7533
- kh as Textarea,
7534
- Lh as Ul,
7535
- vo as copyToClipboard
7548
+ Kh as Star,
7549
+ Yh as Table,
7550
+ Gh as Tabs,
7551
+ Lh as TextInputDropdown,
7552
+ Rh as Textarea,
7553
+ Nh as Ul,
7554
+ vo as copyToClipboard,
7555
+ Mh as useScrollPosition
7536
7556
  };