@contentmunch/contentmunch-ui 1.1.16 → 1.1.18

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;
@@ -321,9 +321,6 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
321
321
  const a = "muncher-badge" + (e ? " muncher-badge--" + e : "") + (t ? " muncher-badge--rounded" : "") + (n ? " muncher-badge--border" : "");
322
322
  return /* @__PURE__ */ s.jsx("div", { className: a, ...r, children: i });
323
323
  }, lt = {
324
- // Navigation & Movement (Anything related to direction, traversal, layout movement)
325
- // Actions & Controls (Generic system actions and state changes)
326
- // Content & Creation
327
324
  "align-center": /* @__PURE__ */ s.jsxs(p, { children: [
328
325
  /* @__PURE__ */ s.jsx("line", { x1: "18", y1: "10", x2: "6", y2: "10" }),
329
326
  /* @__PURE__ */ s.jsx("line", { x1: "21", y1: "6", x2: "3", y2: "6" }),
@@ -739,10 +736,42 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
739
736
  /* @__PURE__ */ s.jsx("line", { x1: "12", y1: "8", x2: "12", y2: "8" }),
740
737
  /* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "12", r: "10" })
741
738
  ] }),
739
+ equals: /* @__PURE__ */ s.jsxs(p, { children: [
740
+ /* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "12", r: "10" }),
741
+ /* @__PURE__ */ s.jsx("line", { x1: "8", y1: "10", x2: "16", y2: "10" }),
742
+ /* @__PURE__ */ s.jsx("line", { x1: "8", y1: "14", x2: "16", y2: "14" })
743
+ ] }),
742
744
  disc: /* @__PURE__ */ s.jsxs(p, { children: [
743
745
  /* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "12", r: "10" }),
744
746
  /* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "12", r: "3" })
745
747
  ] }),
748
+ quiz: /* @__PURE__ */ s.jsxs(p, { children: [
749
+ /* @__PURE__ */ s.jsx(
750
+ "path",
751
+ {
752
+ d: "M12 2a7.5 7.5 0 0 0-4.8 13.263C8.19 16.089 9 17.21 9 18.5h6c0-1.29.81-2.411 1.8-3.238A7.5 7.5 0 0 0 12 2Z"
753
+ }
754
+ ),
755
+ /* @__PURE__ */ s.jsx("path", { d: "M15 18.5H9v2a1.5 1.5 0 0 0 1.5 1.5h3a1.5 1.5 0 0 0 1.5-1.5z" }),
756
+ /* @__PURE__ */ s.jsx("path", { d: "M10 8c0-1.013.895-2 2-2s2 .82 2 1.833c0 .365-.116.705-.317.991C13.085 9.676 12 10.488 12 11.5" }),
757
+ /* @__PURE__ */ s.jsx("path", { d: "M11.992 14h.009" })
758
+ ] }),
759
+ ai: /* @__PURE__ */ s.jsxs(p, { children: [
760
+ /* @__PURE__ */ s.jsx(
761
+ "path",
762
+ {
763
+ d: "M15.5 22v-.5c0-1.105.932-2 1.922-2.489c.963-.476 1.772-1.26 1.875-2.18L19.5 15l2-1l-2.5-3.75a8.25 8.25 0 1 0-13 6.746m0 0V22m0-5.004c.75.53 1.594.937 2.5 1.194"
764
+ }
765
+ ),
766
+ /* @__PURE__ */ s.jsx("path", { d: "M11.308 12L9.847 7.479A.72.72 0 0 0 9.154 7a.72.72 0 0 0-.693.479L7 12m7-5v5m-6.462-1.5h3.231" })
767
+ ] }),
768
+ "flash-card": /* @__PURE__ */ s.jsxs(p, { children: [
769
+ /* @__PURE__ */ s.jsx("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }),
770
+ /* @__PURE__ */ s.jsx("rect", { x: "8", y: "2", width: "8", height: "4", rx: "1", ry: "1" }),
771
+ /* @__PURE__ */ s.jsx("line", { x1: "7", y1: "10", x2: "17", y2: "10" }),
772
+ /* @__PURE__ */ s.jsx("line", { x1: "7", y1: "14", x2: "17", y2: "14" }),
773
+ /* @__PURE__ */ s.jsx("line", { x1: "7", y1: "18", x2: "17", y2: "18" })
774
+ ] }),
746
775
  target: /* @__PURE__ */ s.jsxs(p, { children: [
747
776
  /* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "12", r: "10" }),
748
777
  /* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "12", r: "6" }),
@@ -1336,7 +1365,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1336
1365
  /* @__PURE__ */ s.jsx("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" }),
1337
1366
  /* @__PURE__ */ s.jsx("text", { x: "6", y: "14", fontSize: "6", fontFamily: "'Lucida Grande', sans-serif", children: "360" })
1338
1367
  ] })
1339
- }, I = ({ color: e, name: t, size: n = "small", weight: i = 2, onClick: r, iconString: a, orientation: o = "left", children: l }) => {
1368
+ }, F = ({ color: e, name: t, size: n = "small", weight: i = 2, onClick: r, iconString: a, orientation: o = "left", children: l }) => {
1340
1369
  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
1370
  return /* @__PURE__ */ s.jsxs("span", { className: "muncher-icon", children: [
1342
1371
  l && o && o === "right" ? /* @__PURE__ */ s.jsx("span", { className: "content-left", children: l }) : "",
@@ -1357,7 +1386,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1357
1386
  ),
1358
1387
  l && o === "left" && /* @__PURE__ */ s.jsx("span", { className: "content-right", children: l })
1359
1388
  ] });
1360
- }, Ah = ({
1389
+ }, Ph = ({
1361
1390
  variant: e = "primary",
1362
1391
  icon: t = "bell",
1363
1392
  text: n,
@@ -1370,11 +1399,11 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1370
1399
  onClick: i,
1371
1400
  ...r,
1372
1401
  children: [
1373
- /* @__PURE__ */ s.jsx(I, { name: t }),
1402
+ /* @__PURE__ */ s.jsx(F, { name: t }),
1374
1403
  n === "" ? "" : /* @__PURE__ */ s.jsx(go, { variant: e, children: n })
1375
1404
  ]
1376
1405
  }
1377
- ), ne = ({
1406
+ ), te = ({
1378
1407
  type: e = "button",
1379
1408
  variant: t,
1380
1409
  size: n = "medium",
@@ -1425,12 +1454,12 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1425
1454
  }) => {
1426
1455
  const j = fe(null), y = (S) => {
1427
1456
  S.preventDefault(), h && h(S), f && f(!0);
1428
- }, b = Ve(() => {
1457
+ }, b = Ce(() => {
1429
1458
  f(!1), u && u();
1430
- }, [u, f]), w = Ve((S) => {
1459
+ }, [u, f]), w = Ce((S) => {
1431
1460
  S.keyCode === 27 && b();
1432
1461
  }, [b]);
1433
- Ce(() => {
1462
+ je(() => {
1434
1463
  const S = (E) => {
1435
1464
  j && j.current && E.target instanceof HTMLElement && !j.current.contains(E.target) && b();
1436
1465
  };
@@ -1460,7 +1489,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1460
1489
  };
1461
1490
  return /* @__PURE__ */ s.jsxs("div", { className: "muncher-dropdown", ref: j, children: [
1462
1491
  /* @__PURE__ */ s.jsxs(
1463
- ne,
1492
+ te,
1464
1493
  {
1465
1494
  onMouseDown: y,
1466
1495
  title: n,
@@ -1484,7 +1513,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1484
1513
  ),
1485
1514
  d ? /* @__PURE__ */ s.jsx("div", { className: T(), children: x }) : ""
1486
1515
  ] });
1487
- }, Ph = ({
1516
+ }, Vh = ({
1488
1517
  title: e,
1489
1518
  active: t,
1490
1519
  disabled: n,
@@ -1495,7 +1524,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1495
1524
  ...l
1496
1525
  }) => /* @__PURE__ */ s.jsxs("div", { className: `muncher-dropdown-nav ${a ? "drop-left" : ""}`, children: [
1497
1526
  /* @__PURE__ */ s.jsx(
1498
- ne,
1527
+ te,
1499
1528
  {
1500
1529
  type: "nav",
1501
1530
  title: e,
@@ -1514,27 +1543,27 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1514
1543
  variant: t = "secondary",
1515
1544
  size: n = "small"
1516
1545
  }) => {
1517
- const [i, r] = J(), [a, o] = J("copy"), [l, c] = J("copy link"), h = () => {
1546
+ const [i, r] = Y(), [a, o] = Y("copy"), [l, c] = Y("copy link"), h = () => {
1518
1547
  vo(e), r("green"), o("check"), c("copied!"), setTimeout(function() {
1519
1548
  r(""), o("copy");
1520
1549
  }, 2e3);
1521
1550
  };
1522
1551
  return /* @__PURE__ */ s.jsx(
1523
- ne,
1552
+ te,
1524
1553
  {
1525
1554
  size: n,
1526
1555
  variant: t,
1527
1556
  title: l,
1528
1557
  onClick: h,
1529
- children: /* @__PURE__ */ s.jsx(I, { name: a, color: i })
1558
+ children: /* @__PURE__ */ s.jsx(F, { name: a, color: i })
1530
1559
  }
1531
1560
  );
1532
- }, Vh = ({
1561
+ }, Ch = ({
1533
1562
  variant: e = "secondary",
1534
1563
  size: t = "medium",
1535
1564
  title: n
1536
1565
  }) => {
1537
- const [i, r] = J(!1);
1566
+ const [i, r] = Y(!1);
1538
1567
  return /* @__PURE__ */ s.jsx("div", { className: "muncher-share", children: /* @__PURE__ */ s.jsxs(
1539
1568
  jo,
1540
1569
  {
@@ -1543,33 +1572,33 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1543
1572
  setShowContent: r,
1544
1573
  variant: e,
1545
1574
  size: t,
1546
- element: /* @__PURE__ */ s.jsx(I, { name: "share", orientation: "right", children: "Share" }),
1575
+ element: /* @__PURE__ */ s.jsx(F, { name: "share", orientation: "right", children: "Share" }),
1547
1576
  children: [
1548
- /* @__PURE__ */ s.jsx(ne, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1577
+ /* @__PURE__ */ s.jsx(te, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1549
1578
  "a",
1550
1579
  {
1551
1580
  href: "https://twitter.com/share?url=" + window.location.href + "&text=" + n,
1552
1581
  target: "_blank",
1553
1582
  title: "Share link to Twitter",
1554
- children: /* @__PURE__ */ s.jsx(I, { name: "twitter" })
1583
+ children: /* @__PURE__ */ s.jsx(F, { name: "twitter" })
1555
1584
  }
1556
1585
  ) }),
1557
- /* @__PURE__ */ s.jsx(ne, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1586
+ /* @__PURE__ */ s.jsx(te, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1558
1587
  "a",
1559
1588
  {
1560
1589
  href: "https://www.facebook.com/sharer/sharer.php?u=" + window.location.href,
1561
1590
  target: "_blank",
1562
1591
  title: "Share link to Facebook",
1563
- children: /* @__PURE__ */ s.jsx(I, { name: "facebook" })
1592
+ children: /* @__PURE__ */ s.jsx(F, { name: "facebook" })
1564
1593
  }
1565
1594
  ) }),
1566
- /* @__PURE__ */ s.jsx(ne, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1595
+ /* @__PURE__ */ s.jsx(te, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
1567
1596
  "a",
1568
1597
  {
1569
1598
  href: "mailto:?subject=" + n + "&body=" + window.location.href,
1570
1599
  target: "_blank",
1571
1600
  title: "share link by Email",
1572
- children: /* @__PURE__ */ s.jsx(I, { name: "mail" })
1601
+ children: /* @__PURE__ */ s.jsx(F, { name: "mail" })
1573
1602
  }
1574
1603
  ) }),
1575
1604
  /* @__PURE__ */ s.jsx(wo, { text: window.location.href })
@@ -1590,7 +1619,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1590
1619
  const h = encodeURI("data:text/csv;charset=utf-8," + e.join(",") + `
1591
1620
  ` + t.map((u) => u.join(",")).join(`
1592
1621
  `));
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" }) }) }) });
1622
+ 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
1623
  }, To = ({
1595
1624
  variant: e = "transparent",
1596
1625
  size: t = "small",
@@ -1601,9 +1630,9 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1601
1630
  onClick: o,
1602
1631
  children: l
1603
1632
  }) => {
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" });
1633
+ 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
1634
  return /* @__PURE__ */ s.jsxs(
1606
- ne,
1635
+ te,
1607
1636
  {
1608
1637
  variant: e,
1609
1638
  size: t,
@@ -1648,14 +1677,14 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1648
1677
  {
1649
1678
  className: e === "left" ? "muncher-button--navigate muncher-button--navigate-left" : "muncher-button--navigate muncher-button--navigate-right",
1650
1679
  children: /* @__PURE__ */ s.jsx(
1651
- ne,
1680
+ te,
1652
1681
  {
1653
1682
  onClick: o,
1654
1683
  disabled: i,
1655
1684
  size: "small",
1656
1685
  variant: r,
1657
1686
  title: e === "left" ? "Navigate Left" : "Navigate Right",
1658
- children: /* @__PURE__ */ s.jsx(I, { name: l(), size: t, weight: n })
1687
+ children: /* @__PURE__ */ s.jsx(F, { name: l(), size: t, weight: n })
1659
1688
  }
1660
1689
  )
1661
1690
  }
@@ -1663,7 +1692,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1663
1692
  }, nt = ({ label: e, onClick: t, id: n, required: i = !1 }) => /* @__PURE__ */ s.jsxs("label", { htmlFor: n, onClick: t, children: [
1664
1693
  e,
1665
1694
  i ? /* @__PURE__ */ s.jsx("span", { className: "required", children: "*" }) : ""
1666
- ] }), Ch = ({
1695
+ ] }), Eh = ({
1667
1696
  name: e,
1668
1697
  required: t = !1,
1669
1698
  onChange: n,
@@ -1671,7 +1700,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1671
1700
  label: r,
1672
1701
  ...a
1673
1702
  }) => {
1674
- const [o, l] = J(i || !1);
1703
+ const [o, l] = Y(i || !1);
1675
1704
  return /* @__PURE__ */ s.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ s.jsxs("div", { className: "muncher-checkbox", children: [
1676
1705
  /* @__PURE__ */ s.jsx(
1677
1706
  "input",
@@ -1723,7 +1752,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1723
1752
  };
1724
1753
  return /* @__PURE__ */ s.jsx("div", { className: "muncher-file-input--div", children: /* @__PURE__ */ s.jsxs("div", { className: "file-input-element", children: [
1725
1754
  /* @__PURE__ */ s.jsxs("label", { htmlFor: e, className: d, children: [
1726
- /* @__PURE__ */ s.jsx(I, { name: "upload" }),
1755
+ /* @__PURE__ */ s.jsx(F, { name: "upload" }),
1727
1756
  " ",
1728
1757
  t || "Upload CSV",
1729
1758
  r ? /* @__PURE__ */ s.jsx("span", { className: "required", children: " *" }) : "",
@@ -1744,7 +1773,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1744
1773
  c && c !== "" ? /* @__PURE__ */ s.jsx("p", { className: "text-danger", children: c }) : "",
1745
1774
  h && h !== "" ? /* @__PURE__ */ s.jsx("p", { className: "text-success", children: h }) : ""
1746
1775
  ] }) });
1747
- }, Eh = ({
1776
+ }, Dh = ({
1748
1777
  name: e,
1749
1778
  label: t,
1750
1779
  variant: n = "secondary",
@@ -1757,7 +1786,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1757
1786
  maxFiles: h,
1758
1787
  ...u
1759
1788
  }) => {
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) => {
1789
+ 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
1790
  if (c) {
1762
1791
  let T = Array.from(w.currentTarget.files);
1763
1792
  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 +1796,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1767
1796
  return /* @__PURE__ */ s.jsxs("div", { className: "muncher-file-input--div", children: [
1768
1797
  /* @__PURE__ */ s.jsxs("div", { className: "file-input-element", children: [
1769
1798
  /* @__PURE__ */ s.jsxs("label", { htmlFor: e, className: j, children: [
1770
- /* @__PURE__ */ s.jsx(I, { name: "image" }),
1799
+ /* @__PURE__ */ s.jsx(F, { name: "image" }),
1771
1800
  " ",
1772
1801
  t,
1773
1802
  r ? /* @__PURE__ */ s.jsx("span", { className: "required", children: " *" }) : ""
@@ -1788,7 +1817,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1788
1817
  )
1789
1818
  ] }),
1790
1819
  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 }) }) : ""
1820
+ b() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(F, { name: "alert", children: l }) }) : ""
1792
1821
  ] });
1793
1822
  }, So = ({
1794
1823
  name: e,
@@ -1824,9 +1853,9 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1824
1853
  u !== "side" ? M() : "",
1825
1854
  /* @__PURE__ */ s.jsxs("div", { className: "muncher-input-element", children: [
1826
1855
  u === "side" ? M() : "",
1827
- r ? /* @__PURE__ */ s.jsx(I, { name: r }) : "",
1856
+ r ? /* @__PURE__ */ s.jsx(F, { name: r }) : "",
1828
1857
  a ? /* @__PURE__ */ s.jsxs("span", { className: "muncher-icon-hover", children: [
1829
- /* @__PURE__ */ s.jsx(I, { name: a, onClick: o }),
1858
+ /* @__PURE__ */ s.jsx(F, { name: a, onClick: o }),
1830
1859
  " "
1831
1860
  ] }) : "",
1832
1861
  /* @__PURE__ */ s.jsxs("div", { className: "muncher-input-wrapper", children: [
@@ -1855,9 +1884,9 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1855
1884
  T ? /* @__PURE__ */ s.jsx(vi, { size: "tiny" }) : ""
1856
1885
  ] })
1857
1886
  ] }),
1858
- E() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(I, { name: "alert", children: f }) }) : ""
1887
+ E() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(F, { name: "alert", children: f }) }) : ""
1859
1888
  ] });
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: [
1889
+ }, 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
1890
  /* @__PURE__ */ s.jsx(
1862
1891
  "input",
1863
1892
  {
@@ -1914,9 +1943,9 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1914
1943
  ]
1915
1944
  }
1916
1945
  ) }),
1917
- h() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(I, { name: "alert", children: a }) }) : ""
1946
+ h() ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ s.jsx(F, { name: "alert", children: a }) }) : ""
1918
1947
  ] });
1919
- }, kh = ({
1948
+ }, Rh = ({
1920
1949
  name: e,
1921
1950
  label: t,
1922
1951
  required: n,
@@ -1929,7 +1958,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1929
1958
  value: h,
1930
1959
  ...u
1931
1960
  }) => {
1932
- const [d, f] = J(h), m = (x) => {
1961
+ const [d, f] = Y(h), m = (x) => {
1933
1962
  f(x.target.value), c && c(x);
1934
1963
  };
1935
1964
  return /* @__PURE__ */ s.jsxs("div", { className: "muncher-input--div", children: [
@@ -1956,7 +1985,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1956
1985
  " characters left"
1957
1986
  ] })
1958
1987
  ] });
1959
- }, Rh = ({
1988
+ }, Lh = ({
1960
1989
  name: e = "query",
1961
1990
  focus: t = !1,
1962
1991
  inputPlaceHolder: n,
@@ -1975,12 +2004,12 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
1975
2004
  }) => {
1976
2005
  const g = fe(null), j = (w) => {
1977
2006
  a(!0), i(w.target.value);
1978
- }, y = Ve(() => {
2007
+ }, y = Ce(() => {
1979
2008
  a(!1);
1980
- }, [a]), b = Ve((w) => {
2009
+ }, [a]), b = Ce((w) => {
1981
2010
  w.keyCode === 27 && y();
1982
2011
  }, [y]);
1983
- return Ce(() => {
2012
+ return je(() => {
1984
2013
  const w = (T) => {
1985
2014
  if (g && g !== null) {
1986
2015
  const S = g.current;
@@ -2010,8 +2039,8 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2010
2039
  ),
2011
2040
  r ? /* @__PURE__ */ s.jsx("div", { className: "muncher-input-drop-down--content", children: x }) : ""
2012
2041
  ] });
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,
2042
+ }, 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(
2043
+ F,
2015
2044
  {
2016
2045
  name: t,
2017
2046
  weight: n,
@@ -2019,13 +2048,13 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2019
2048
  color: r,
2020
2049
  children: a
2021
2050
  }
2022
- ) }), Fh = ({ show: e = !1, setShow: t, children: n, ...i }) => {
2023
- const r = Ve((a) => {
2051
+ ) }), Oh = ({ show: e = !1, setShow: t, children: n, ...i }) => {
2052
+ const r = Ce((a) => {
2024
2053
  a.keyCode === 27 && t(!1);
2025
2054
  }, [t]);
2026
- return Ce(() => (document.addEventListener("keydown", r, !1), () => {
2055
+ return je(() => (document.addEventListener("keydown", r, !1), () => {
2027
2056
  document.removeEventListener("keydown", r, !1);
2028
- }), [r]), Ce(() => {
2057
+ }), [r]), je(() => {
2029
2058
  e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset";
2030
2059
  }, [e]), /* @__PURE__ */ s.jsxs(gi.Fragment, { children: [
2031
2060
  /* @__PURE__ */ s.jsx(yo, { show: e, backdropClickHandler: () => t(!1) }),
@@ -2042,16 +2071,16 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2042
2071
  }
2043
2072
  )
2044
2073
  ] });
2045
- }, Oh = ({ showHoverEffect: e, onClick: t, children: n }) => {
2074
+ }, Ih = ({ showHoverEffect: e, onClick: t, children: n }) => {
2046
2075
  const i = () => e ? "muncher-paper muncher-paper-hover" : "muncher-paper";
2047
2076
  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" }) }),
2077
+ }, Bh = ({ pillCloseHandler: e, children: t, ...n }) => /* @__PURE__ */ s.jsxs("div", { className: "muncher-pill", ...n, children: [
2078
+ /* @__PURE__ */ s.jsx("div", { className: "close", onClick: e, children: /* @__PURE__ */ s.jsx(F, { name: "close" }) }),
2050
2079
  /* @__PURE__ */ s.jsxs("div", { className: "content", children: [
2051
2080
  " ",
2052
2081
  t
2053
2082
  ] })
2054
- ] }), Bh = ({ value: e, max: t, label: n }) => {
2083
+ ] }), zh = ({ value: e, max: t, label: n }) => {
2055
2084
  const i = () => {
2056
2085
  const r = Math.round(e / t * 100) + "%";
2057
2086
  return n ? n + " " + r : r;
@@ -2060,11 +2089,11 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2060
2089
  /* @__PURE__ */ s.jsx("label", { htmlFor: "progress", children: i() }),
2061
2090
  /* @__PURE__ */ s.jsx("progress", { id: "progress", value: e, max: t, children: i() })
2062
2091
  ] });
2063
- }, zh = ({ variant: e, size: t, style: n }) => {
2092
+ }, Hh = ({ variant: e, size: t, style: n }) => {
2064
2093
  const i = "muncher-hr" + (e ? " muncher-hr--" + e : "") + (t ? " muncher-hr--" + t : "") + (n ? " muncher-hr--" + n : "");
2065
2094
  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(
2095
+ }, _h = ({ sliderItems: e, navButtonSize: t = "large", navButtonWeight: n = 2, variant: i, navIcon: r, navButtonPlacement: a = "inside" }) => {
2096
+ const [o, l] = Y(0), [c, h] = Y(0), u = () => e.length > 1 && o > 0 ? /* @__PURE__ */ s.jsx(
2068
2097
  Qn,
2069
2098
  {
2070
2099
  direction: "left",
@@ -2108,7 +2137,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2108
2137
  ] }),
2109
2138
  a === "outside" ? d() : ""
2110
2139
  ] });
2111
- }, _h = ({
2140
+ }, Uh = ({
2112
2141
  min: e,
2113
2142
  max: t,
2114
2143
  minValue: n,
@@ -2156,7 +2185,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2156
2185
  /* @__PURE__ */ s.jsx("div", { className: "slider-max", children: h(t) })
2157
2186
  ] })
2158
2187
  ] });
2159
- }, Uh = ({
2188
+ }, Wh = ({
2160
2189
  min: e,
2161
2190
  max: t,
2162
2191
  value: n,
@@ -2188,7 +2217,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2188
2217
  /* @__PURE__ */ s.jsx("div", { className: "slider-max", children: a(t) })
2189
2218
  ] })
2190
2219
  ] });
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 }) => {
2220
+ }, $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
2221
  const r = {
2193
2222
  "--r": e
2194
2223
  }, a = () => {
@@ -2196,15 +2225,15 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2196
2225
  return t && (o += " star-" + t), n && (o += " star-" + n), o;
2197
2226
  };
2198
2227
  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) => {
2228
+ }, Gh = ({ handleTabSelected: e, children: t }) => {
2229
+ const [n, i] = Y(0), { tabs: r } = t, a = (o) => {
2201
2230
  i(o), e && e(o);
2202
2231
  };
2203
2232
  return /* @__PURE__ */ s.jsxs("section", { className: "muncher-tabs", children: [
2204
2233
  /* @__PURE__ */ s.jsx("header", { children: r.map(
2205
2234
  (o, l) => /* @__PURE__ */ s.jsxs("div", { className: "muncher-tab-header--item", children: [
2206
2235
  /* @__PURE__ */ s.jsx(
2207
- ne,
2236
+ te,
2208
2237
  {
2209
2238
  variant: "transparent",
2210
2239
  active: n === l,
@@ -2230,7 +2259,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2230
2259
  )
2231
2260
  )
2232
2261
  ] });
2233
- }, Gh = ({
2262
+ }, Yh = ({
2234
2263
  fileName: e,
2235
2264
  defaultPageSize: t = 50,
2236
2265
  skeleton: n,
@@ -2245,7 +2274,7 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2245
2274
  footer: d,
2246
2275
  children: f
2247
2276
  }) => {
2248
- const { header: m, rows: x } = f, [g, j] = J(r ?? { index: 0 }), [y, b] = J({ num: 0, size: t }), w = (M) => {
2277
+ const { header: m, rows: x } = f, [g, j] = Y(r ?? { index: 0 }), [y, b] = Y({ num: 0, size: t }), w = (M) => {
2249
2278
  j(
2250
2279
  (C) => C.index === M ? { ...C, desc: !C.desc } : { index: M }
2251
2280
  );
@@ -2253,8 +2282,8 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2253
2282
  var P;
2254
2283
  const M = [...x], C = (P = m[g.index]) == null ? void 0 : P.sort;
2255
2284
  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()) ?? "";
2285
+ var X, $, Ee, O;
2286
+ 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
2287
  return ie.localeCompare(W);
2259
2288
  }), g.desc ? M.reverse() : M;
2260
2289
  }, [x, g, m]), S = Oe(
@@ -2343,35 +2372,35 @@ const Sh = ({ variant: e, collapsed: t, children: n }) => {
2343
2372
  ] }),
2344
2373
  /* @__PURE__ */ s.jsxs("div", { className: "right", children: [
2345
2374
  /* @__PURE__ */ s.jsx(
2346
- ne,
2375
+ te,
2347
2376
  {
2348
2377
  variant: "transparent",
2349
2378
  disabled: y.num === 0,
2350
2379
  size: "small",
2351
2380
  onClick: () => b({ ...y, num: y.num - 1 }),
2352
- children: /* @__PURE__ */ s.jsx(I, { name: "chevron-left" })
2381
+ children: /* @__PURE__ */ s.jsx(F, { name: "chevron-left" })
2353
2382
  }
2354
2383
  ),
2355
2384
  /* @__PURE__ */ s.jsx(
2356
- ne,
2385
+ te,
2357
2386
  {
2358
2387
  variant: "transparent",
2359
2388
  disabled: (y.num + 1) * y.size >= x.length,
2360
2389
  size: "small",
2361
2390
  onClick: () => b({ ...y, num: y.num + 1 }),
2362
- children: /* @__PURE__ */ s.jsx(I, { name: "chevron-right" })
2391
+ children: /* @__PURE__ */ s.jsx(F, { name: "chevron-right" })
2363
2392
  }
2364
2393
  )
2365
2394
  ] })
2366
2395
  ] })
2367
2396
  ] })
2368
2397
  ] });
2369
- }, Yh = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: "muncher-card", children: e }), wi = ze({});
2398
+ }, Xh = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: "muncher-card", children: e }), wi = ze({});
2370
2399
  function Po(e) {
2371
2400
  const t = fe(null);
2372
2401
  return t.current === null && (t.current = e()), t.current;
2373
2402
  }
2374
- const Vo = typeof window < "u", Co = Vo ? lo : Ce, Tn = /* @__PURE__ */ ze(null);
2403
+ const Vo = typeof window < "u", Co = Vo ? lo : je, Tn = /* @__PURE__ */ ze(null);
2375
2404
  function Mn(e, t) {
2376
2405
  e.indexOf(t) === -1 && e.push(t);
2377
2406
  }
@@ -2393,7 +2422,7 @@ typeof process < "u" && ((yi = process.env) == null ? void 0 : yi.NODE_ENV) !==
2393
2422
  if (!e)
2394
2423
  throw new Error(Zt(t, n));
2395
2424
  });
2396
- const je = {}, bi = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
2425
+ const ve = {}, bi = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
2397
2426
  function Ti(e) {
2398
2427
  return typeof e == "object" && e !== null;
2399
2428
  }
@@ -2432,7 +2461,7 @@ class Sn {
2432
2461
  this.subscriptions.length = 0;
2433
2462
  }
2434
2463
  }
2435
- const ee = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, te = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
2464
+ const ee = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ne = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
2436
2465
  function Ai(e, t) {
2437
2466
  return t ? e * (1e3 / t) : 0;
2438
2467
  }
@@ -2540,7 +2569,7 @@ function Oi(e, t) {
2540
2569
  timestamp: 0,
2541
2570
  isProcessing: !1
2542
2571
  }, 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();
2572
+ const w = ve.useManualTiming, T = w ? r.timestamp : performance.now();
2544
2573
  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
2574
  }, j = () => {
2546
2575
  n = !0, i = !0, r.isProcessing || e(g);
@@ -2553,13 +2582,13 @@ function Oi(e, t) {
2553
2582
  o[ct[T]].cancel(w);
2554
2583
  }, state: r, steps: o };
2555
2584
  }
2556
- const { schedule: k, cancel: ve, state: _, steps: Ft } = /* @__PURE__ */ Oi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : se, !0);
2585
+ const { schedule: k, cancel: we, state: _, steps: Ft } = /* @__PURE__ */ Oi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : se, !0);
2557
2586
  let ft;
2558
2587
  function zo() {
2559
2588
  ft = void 0;
2560
2589
  }
2561
- const q = {
2562
- now: () => (ft === void 0 && q.set(_.isProcessing || je.useManualTiming ? _.timestamp : performance.now()), ft),
2590
+ const Z = {
2591
+ now: () => (ft === void 0 && Z.set(_.isProcessing || ve.useManualTiming ? _.timestamp : performance.now()), ft),
2563
2592
  set: (e) => {
2564
2593
  ft = e, queueMicrotask(zo);
2565
2594
  }
@@ -2594,7 +2623,7 @@ const Wo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
2594
2623
  }, $o = (e) => de(0, 255, e), Ot = {
2595
2624
  ..._e,
2596
2625
  transform: (e) => Math.round($o(e))
2597
- }, Me = {
2626
+ }, Se = {
2598
2627
  test: /* @__PURE__ */ Dn("rgb", "red"),
2599
2628
  parse: /* @__PURE__ */ zi("red", "green", "blue"),
2600
2629
  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 +2640,7 @@ function Ko(e) {
2611
2640
  const Jt = {
2612
2641
  test: /* @__PURE__ */ Dn("#"),
2613
2642
  parse: Ko,
2614
- transform: Me.transform
2643
+ transform: Se.transform
2615
2644
  }, rt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
2616
2645
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
2617
2646
  parse: parseFloat,
@@ -2625,9 +2654,9 @@ const Jt = {
2625
2654
  parse: /* @__PURE__ */ zi("hue", "saturation", "lightness"),
2626
2655
  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
2656
  }, 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),
2657
+ test: (e) => Se.test(e) || Jt.test(e) || Re.test(e),
2658
+ parse: (e) => Se.test(e) ? Se.parse(e) : Re.test(e) ? Re.parse(e) : Jt.parse(e),
2659
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Se.transform(e) : Re.transform(e),
2631
2660
  getAnimatableNone: (e) => {
2632
2661
  const t = B.parse(e);
2633
2662
  return t.alpha = 0, B.transform(t);
@@ -2702,7 +2731,7 @@ function wt(e, t) {
2702
2731
  const N = (e, t, n) => e + (t - e) * n, Bt = (e, t, n) => {
2703
2732
  const i = e * e, r = n * (t * t - i) + i;
2704
2733
  return r < 0 ? 0 : Math.sqrt(r);
2705
- }, oa = [Jt, Me, Re], aa = (e) => oa.find((t) => t.test(e));
2734
+ }, oa = [Jt, Se, Re], aa = (e) => oa.find((t) => t.test(e));
2706
2735
  function os(e) {
2707
2736
  const t = aa(e);
2708
2737
  if (He(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
@@ -2715,7 +2744,7 @@ const as = (e, t) => {
2715
2744
  if (!n || !i)
2716
2745
  return wt(e, t);
2717
2746
  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));
2747
+ 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
2748
  }, Qt = /* @__PURE__ */ new Set(["none", "hidden"]);
2720
2749
  function la(e, t) {
2721
2750
  return Qt.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
@@ -2763,12 +2792,12 @@ const fa = (e) => {
2763
2792
  const t = ({ timestamp: n }) => e(n);
2764
2793
  return {
2765
2794
  start: (n = !0) => k.update(t, n),
2766
- stop: () => ve(t),
2795
+ stop: () => we(t),
2767
2796
  /**
2768
2797
  * If we're processing this frame we can use the
2769
2798
  * framelocked timestamp to keep things in sync.
2770
2799
  */
2771
- now: () => _.isProcessing ? _.timestamp : q.now()
2800
+ now: () => _.isProcessing ? _.timestamp : Z.now()
2772
2801
  };
2773
2802
  }, Ki = (e, t, n = 10) => {
2774
2803
  let i = "";
@@ -2790,10 +2819,10 @@ function pa(e, t = 100, n) {
2790
2819
  return {
2791
2820
  type: "keyframes",
2792
2821
  ease: (a) => i.next(r * a).value / t,
2793
- duration: /* @__PURE__ */ te(r)
2822
+ duration: /* @__PURE__ */ ne(r)
2794
2823
  };
2795
2824
  }
2796
- const O = {
2825
+ const I = {
2797
2826
  // Default spring physics
2798
2827
  stiffness: 100,
2799
2828
  damping: 10,
@@ -2833,11 +2862,11 @@ function xa(e, t, n) {
2833
2862
  return i;
2834
2863
  }
2835
2864
  const ls = 1e-3;
2836
- function ya({ duration: e = O.duration, bounce: t = O.bounce, velocity: n = O.velocity, mass: i = O.mass }) {
2865
+ function ya({ duration: e = I.duration, bounce: t = I.bounce, velocity: n = I.velocity, mass: i = I.mass }) {
2837
2866
  let r, a;
2838
- He(e <= /* @__PURE__ */ ee(O.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
2867
+ He(e <= /* @__PURE__ */ ee(I.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
2839
2868
  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) => {
2869
+ o = de(I.minDamping, I.maxDamping, o), e = de(I.minDuration, I.maxDuration, /* @__PURE__ */ ne(e)), o < 1 ? (r = (h) => {
2841
2870
  const u = h * o, d = u * e, f = u - n, m = en(h, o), x = Math.exp(-d);
2842
2871
  return ls - f / m * x;
2843
2872
  }, a = (h) => {
@@ -2853,8 +2882,8 @@ function ya({ duration: e = O.duration, bounce: t = O.bounce, velocity: n = O.ve
2853
2882
  const l = 5 / e, c = xa(r, a, l);
2854
2883
  if (e = /* @__PURE__ */ ee(e), isNaN(c))
2855
2884
  return {
2856
- stiffness: O.stiffness,
2857
- damping: O.damping,
2885
+ stiffness: I.stiffness,
2886
+ damping: I.damping,
2858
2887
  duration: e
2859
2888
  };
2860
2889
  {
@@ -2872,10 +2901,10 @@ function cs(e, t) {
2872
2901
  }
2873
2902
  function va(e) {
2874
2903
  let t = {
2875
- velocity: O.velocity,
2876
- stiffness: O.stiffness,
2877
- damping: O.damping,
2878
- mass: O.mass,
2904
+ velocity: I.velocity,
2905
+ stiffness: I.stiffness,
2906
+ damping: I.damping,
2907
+ mass: I.mass,
2879
2908
  isResolvedFromDuration: !1,
2880
2909
  ...e
2881
2910
  };
@@ -2884,7 +2913,7 @@ function va(e) {
2884
2913
  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
2914
  t = {
2886
2915
  ...t,
2887
- mass: O.mass,
2916
+ mass: I.mass,
2888
2917
  stiffness: r,
2889
2918
  damping: a
2890
2919
  };
@@ -2893,12 +2922,12 @@ function va(e) {
2893
2922
  t = {
2894
2923
  ...t,
2895
2924
  ...n,
2896
- mass: O.mass
2925
+ mass: I.mass
2897
2926
  }, t.isResolvedFromDuration = !0;
2898
2927
  }
2899
2928
  return t;
2900
2929
  }
2901
- function Tt(e = O.visualDuration, t = O.bounce) {
2930
+ function Tt(e = I.visualDuration, t = I.bounce) {
2902
2931
  const n = typeof e != "object" ? {
2903
2932
  visualDuration: e,
2904
2933
  keyframes: [0, 1],
@@ -2907,9 +2936,9 @@ function Tt(e = O.visualDuration, t = O.bounce) {
2907
2936
  let { restSpeed: i, restDelta: r } = n;
2908
2937
  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
2938
  ...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);
2939
+ velocity: -/* @__PURE__ */ ne(n.velocity || 0)
2940
+ }), 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;
2941
+ i || (i = b ? I.restSpeed.granular : I.restSpeed.default), r || (r = b ? I.restDelta.granular : I.restDelta.default);
2913
2942
  let w, T, S, E, R, M;
2914
2943
  if (g < 1)
2915
2944
  S = en(y, g), E = (x + g * y * j) / S, w = (P) => {
@@ -2923,13 +2952,13 @@ function Tt(e = O.visualDuration, t = O.bounce) {
2923
2952
  } else {
2924
2953
  const P = y * Math.sqrt(g * g - 1);
2925
2954
  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;
2955
+ const X = Math.exp(-g * y * W), $ = Math.min(P * W, 300);
2956
+ return o - X * ((x + g * y * j) * Math.sinh($) + P * j * Math.cosh($)) / P;
2928
2957
  };
2929
2958
  const D = (x + g * y * j) / P, z = g * y * D - j * P, ie = g * y * j - D * P;
2930
2959
  T = (W) => {
2931
- const Y = Math.exp(-g * y * W), $ = Math.min(P * W, 300);
2932
- return Y * (z * Math.sinh($) + ie * Math.cosh($));
2960
+ const X = Math.exp(-g * y * W), $ = Math.min(P * W, 300);
2961
+ return X * (z * Math.sinh($) + ie * Math.cosh($));
2933
2962
  };
2934
2963
  }
2935
2964
  const C = {
@@ -2937,8 +2966,8 @@ function Tt(e = O.visualDuration, t = O.bounce) {
2937
2966
  velocity: (P) => /* @__PURE__ */ ee(T(P)),
2938
2967
  next: (P) => {
2939
2968
  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;
2969
+ 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));
2970
+ return l.done = Math.abs($) <= i && Math.abs(o - X) <= r, l.value = l.done ? o : X, l;
2942
2971
  }
2943
2972
  const D = w(P);
2944
2973
  if (m)
@@ -3000,7 +3029,7 @@ function tn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: i = 3
3000
3029
  };
3001
3030
  }
3002
3031
  function ba(e, t, n) {
3003
- const i = [], r = n || je.mix || $i, a = e.length - 1;
3032
+ const i = [], r = n || ve.mix || $i, a = e.length - 1;
3004
3033
  for (let o = 0; o < a; o++) {
3005
3034
  let l = r(e[o], e[o + 1]);
3006
3035
  if (t) {
@@ -3113,7 +3142,7 @@ class Mt extends Ln {
3113
3142
  }, this.stop = () => {
3114
3143
  var i, r;
3115
3144
  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));
3145
+ 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
3146
  }, this.options = t, this.initAnimation(), this.play(), t.autoplay === !1 && this.pause();
3118
3147
  }
3119
3148
  initAnimation() {
@@ -3166,14 +3195,14 @@ class Mt extends Ln {
3166
3195
  return this.finished.then(t, n);
3167
3196
  }
3168
3197
  get duration() {
3169
- return /* @__PURE__ */ te(this.calculatedDuration);
3198
+ return /* @__PURE__ */ ne(this.calculatedDuration);
3170
3199
  }
3171
3200
  get iterationDuration() {
3172
3201
  const { delay: t = 0 } = this.options || {};
3173
- return this.duration + /* @__PURE__ */ te(t);
3202
+ return this.duration + /* @__PURE__ */ ne(t);
3174
3203
  }
3175
3204
  get time() {
3176
- return /* @__PURE__ */ te(this.currentTime);
3205
+ return /* @__PURE__ */ ne(this.currentTime);
3177
3206
  }
3178
3207
  set time(t) {
3179
3208
  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 +3226,7 @@ class Mt extends Ln {
3197
3226
  }
3198
3227
  set speed(t) {
3199
3228
  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));
3229
+ n && this.driver && this.updateTime(Z.now()), this.playbackSpeed = t, n && this.driver && (this.time = /* @__PURE__ */ ne(this.currentTime));
3201
3230
  }
3202
3231
  play() {
3203
3232
  var r, a;
@@ -3209,7 +3238,7 @@ class Mt extends Ln {
3209
3238
  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
3239
  }
3211
3240
  pause() {
3212
- this.state = "paused", this.updateTime(q.now()), this.holdTime = this.currentTime;
3241
+ this.state = "paused", this.updateTime(Z.now()), this.holdTime = this.currentTime;
3213
3242
  }
3214
3243
  complete() {
3215
3244
  this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -3240,8 +3269,8 @@ function Da(e) {
3240
3269
  for (let t = 1; t < e.length; t++)
3241
3270
  e[t] ?? (e[t] = e[t - 1]);
3242
3271
  }
3243
- const Se = (e) => e * 180 / Math.PI, nn = (e) => {
3244
- const t = Se(Math.atan2(e[1], e[0]));
3272
+ const Ae = (e) => e * 180 / Math.PI, nn = (e) => {
3273
+ const t = Ae(Math.atan2(e[1], e[0]));
3245
3274
  return sn(t);
3246
3275
  }, ka = {
3247
3276
  x: 4,
@@ -3253,8 +3282,8 @@ const Se = (e) => e * 180 / Math.PI, nn = (e) => {
3253
3282
  scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
3254
3283
  rotate: nn,
3255
3284
  rotateZ: nn,
3256
- skewX: (e) => Se(Math.atan(e[1])),
3257
- skewY: (e) => Se(Math.atan(e[2])),
3285
+ skewX: (e) => Ae(Math.atan(e[1])),
3286
+ skewY: (e) => Ae(Math.atan(e[2])),
3258
3287
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
3259
3288
  }, 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
3289
  x: 12,
@@ -3266,12 +3295,12 @@ const Se = (e) => e * 180 / Math.PI, nn = (e) => {
3266
3295
  scaleX: hs,
3267
3296
  scaleY: ds,
3268
3297
  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]))),
3298
+ rotateX: (e) => sn(Ae(Math.atan2(e[6], e[5]))),
3299
+ rotateY: (e) => sn(Ae(Math.atan2(-e[2], e[0]))),
3271
3300
  rotateZ: us,
3272
3301
  rotate: us,
3273
- skewX: (e) => Se(Math.atan(e[4])),
3274
- skewY: (e) => Se(Math.atan(e[1])),
3302
+ skewX: (e) => Ae(Math.atan(e[4])),
3303
+ skewY: (e) => Ae(Math.atan(e[1])),
3275
3304
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
3276
3305
  };
3277
3306
  function rn(e) {
@@ -3346,11 +3375,11 @@ const ge = {
3346
3375
  };
3347
3376
  ge.translateX = ge.x;
3348
3377
  ge.translateY = ge.y;
3349
- const Ae = /* @__PURE__ */ new Set();
3378
+ const Pe = /* @__PURE__ */ new Set();
3350
3379
  let an = !1, ln = !1, cn = !1;
3351
3380
  function Xi() {
3352
3381
  if (ln) {
3353
- const e = Array.from(Ae).filter((i) => i.needsMeasurement), t = new Set(e.map((i) => i.element)), n = /* @__PURE__ */ new Map();
3382
+ const e = Array.from(Pe).filter((i) => i.needsMeasurement), t = new Set(e.map((i) => i.element)), n = /* @__PURE__ */ new Map();
3354
3383
  t.forEach((i) => {
3355
3384
  const r = Ia(i);
3356
3385
  r.length && (n.set(i, r), i.render());
@@ -3365,10 +3394,10 @@ function Xi() {
3365
3394
  i.suspendedScrollY !== void 0 && window.scrollTo(0, i.suspendedScrollY);
3366
3395
  });
3367
3396
  }
3368
- ln = !1, an = !1, Ae.forEach((e) => e.complete(cn)), Ae.clear();
3397
+ ln = !1, an = !1, Pe.forEach((e) => e.complete(cn)), Pe.clear();
3369
3398
  }
3370
3399
  function qi() {
3371
- Ae.forEach((e) => {
3400
+ Pe.forEach((e) => {
3372
3401
  e.readKeyframes(), e.needsMeasurement && (ln = !0);
3373
3402
  });
3374
3403
  }
@@ -3380,7 +3409,7 @@ class Nn {
3380
3409
  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
3410
  }
3382
3411
  scheduleResolve() {
3383
- this.state = "scheduled", this.isAsync ? (Ae.add(this), an || (an = !0, k.read(qi), k.resolveKeyframes(Xi))) : (this.readKeyframes(), this.complete());
3412
+ this.state = "scheduled", this.isAsync ? (Pe.add(this), an || (an = !0, k.read(qi), k.resolveKeyframes(Xi))) : (this.readKeyframes(), this.complete());
3384
3413
  }
3385
3414
  readKeyframes() {
3386
3415
  const { unresolvedKeyframes: t, name: n, element: i, motionValue: r } = this;
@@ -3405,10 +3434,10 @@ class Nn {
3405
3434
  measureEndState() {
3406
3435
  }
3407
3436
  complete(t = !1) {
3408
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Ae.delete(this);
3437
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Pe.delete(this);
3409
3438
  }
3410
3439
  cancel() {
3411
- this.state === "scheduled" && (Ae.delete(this), this.state = "pending");
3440
+ this.state === "scheduled" && (Pe.delete(this), this.state = "pending");
3412
3441
  }
3413
3442
  resume() {
3414
3443
  this.state === "pending" && this.scheduleResolve();
@@ -3526,14 +3555,14 @@ class nr extends Ln {
3526
3555
  get duration() {
3527
3556
  var n, i;
3528
3557
  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));
3558
+ return /* @__PURE__ */ ne(Number(t));
3530
3559
  }
3531
3560
  get iterationDuration() {
3532
3561
  const { delay: t = 0 } = this.options || {};
3533
- return this.duration + /* @__PURE__ */ te(t);
3562
+ return this.duration + /* @__PURE__ */ ne(t);
3534
3563
  }
3535
3564
  get time() {
3536
- return /* @__PURE__ */ te(Number(this.animation.currentTime) || 0);
3565
+ return /* @__PURE__ */ ne(Number(this.animation.currentTime) || 0);
3537
3566
  }
3538
3567
  set time(t) {
3539
3568
  const n = this.finishedTime !== null;
@@ -3601,7 +3630,7 @@ class Ga extends nr {
3601
3630
  const l = new Mt({
3602
3631
  ...o,
3603
3632
  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;
3633
+ }), c = Math.max(zt, Z.now() - this.startTime), h = de(0, zt, c - zt), u = l.sample(c).value, { name: d } = this.options;
3605
3634
  a && d && Zi(a, d, u), n.setWithVelocity(l.sample(Math.max(0, c - h)).value, u, h), l.stop();
3606
3635
  }
3607
3636
  }
@@ -3678,7 +3707,7 @@ class nl extends Ln {
3678
3707
  super(), this.stop = () => {
3679
3708
  var g, j;
3680
3709
  this._animation && (this._animation.stop(), (g = this.stopTimeline) == null || g.call(this)), (j = this.keyframeResolver) == null || j.cancel();
3681
- }, this.createdAt = q.now();
3710
+ }, this.createdAt = Z.now();
3682
3711
  const f = {
3683
3712
  autoplay: t,
3684
3713
  delay: n,
@@ -3697,9 +3726,9 @@ class nl extends Ln {
3697
3726
  var y, b;
3698
3727
  this.keyframeResolver = void 0;
3699
3728
  const { name: a, type: o, velocity: l, delay: c, isHandoff: h, onUpdate: u } = i;
3700
- this.resolvedAt = q.now();
3729
+ this.resolvedAt = Z.now();
3701
3730
  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);
3731
+ 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
3732
  const m = {
3704
3733
  startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > tl ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
3705
3734
  finalKeyframe: n,
@@ -3871,7 +3900,7 @@ const On = (e, t, n, i = {}, r, a) => (o) => {
3871
3900
  };
3872
3901
  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
3902
  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) {
3903
+ 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
3904
  const f = Ct(u.keyframes, l);
3876
3905
  if (f !== void 0) {
3877
3906
  k.update(() => {
@@ -3899,7 +3928,7 @@ function In(e, t, n, i) {
3899
3928
  }
3900
3929
  return t;
3901
3930
  }
3902
- function Pe(e, t, n) {
3931
+ function Ve(e, t, n) {
3903
3932
  const i = e.getProps();
3904
3933
  return In(i, t, n !== void 0 ? n : i.custom, e);
3905
3934
  }
@@ -3922,14 +3951,14 @@ class pl {
3922
3951
  constructor(t, n = {}) {
3923
3952
  this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i) => {
3924
3953
  var a;
3925
- const r = q.now();
3954
+ const r = Z.now();
3926
3955
  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
3956
  for (const o of this.dependents)
3928
3957
  o.dirty();
3929
3958
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
3930
3959
  }
3931
3960
  setCurrent(t) {
3932
- this.current = t, this.updatedAt = q.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = fl(this.current));
3961
+ this.current = t, this.updatedAt = Z.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = fl(this.current));
3933
3962
  }
3934
3963
  setPrevFrameValue(t = this.current) {
3935
3964
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -4058,7 +4087,7 @@ class pl {
4058
4087
  * @public
4059
4088
  */
4060
4089
  getVelocity() {
4061
- const t = q.now();
4090
+ const t = Z.now();
4062
4091
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > ys)
4063
4092
  return 0;
4064
4093
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, ys);
@@ -4125,7 +4154,7 @@ function xl(e) {
4125
4154
  return hn(e) ? e[e.length - 1] || 0 : e;
4126
4155
  }
4127
4156
  function yl(e, t) {
4128
- const n = Pe(e, t);
4157
+ const n = Ve(e, t);
4129
4158
  let { transitionEnd: i = {}, transition: r = {}, ...a } = n || {};
4130
4159
  a = { ...a, ...i };
4131
4160
  for (const o in a) {
@@ -4141,8 +4170,8 @@ function dn(e, t) {
4141
4170
  const n = e.getValue("willChange");
4142
4171
  if (gl(n))
4143
4172
  return n.add(t);
4144
- if (!n && je.WillChange) {
4145
- const i = new je.WillChange("auto");
4173
+ if (!n && ve.WillChange) {
4174
+ const i = new ve.WillChange("auto");
4146
4175
  e.addValue("willChange", i), i.add(t);
4147
4176
  }
4148
4177
  }
@@ -4200,7 +4229,7 @@ function hr(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
4200
4229
  }
4201
4230
  function fn(e, t, n = {}) {
4202
4231
  var c;
4203
- const i = Pe(e, t, n.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
4232
+ const i = Ve(e, t, n.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
4204
4233
  let { transition: r = e.getDefaultTransition() || {} } = i || {};
4205
4234
  n.transitionOverride && (r = n.transitionOverride);
4206
4235
  const a = i ? () => Promise.all(hr(e, i, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (h = 0) => {
@@ -4231,7 +4260,7 @@ function bl(e, t, n = {}) {
4231
4260
  } else if (typeof t == "string")
4232
4261
  i = fn(e, t, n);
4233
4262
  else {
4234
- const r = typeof t == "function" ? Pe(e, t, n.custom) : t;
4263
+ const r = typeof t == "function" ? Ve(e, t, n.custom) : t;
4235
4264
  i = Promise.all(hr(e, r, n));
4236
4265
  }
4237
4266
  return i.then(() => {
@@ -4740,7 +4769,7 @@ class oc {
4740
4769
  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
4770
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
4742
4771
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
4743
- const m = q.now();
4772
+ const m = Z.now();
4744
4773
  this.renderScheduledAt < m && (this.renderScheduledAt = m, k.render(this.render, !1, !0));
4745
4774
  };
4746
4775
  const { latestValues: h, renderState: u } = l;
@@ -4760,7 +4789,7 @@ class oc {
4760
4789
  }
4761
4790
  unmount() {
4762
4791
  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);
4792
+ 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
4793
  for (const n in this.events)
4765
4794
  this.events[n].clear();
4766
4795
  for (const n in this.features) {
@@ -4968,7 +4997,7 @@ class Sr extends oc {
4968
4997
  }));
4969
4998
  }
4970
4999
  }
4971
- class we {
5000
+ class be {
4972
5001
  constructor(t) {
4973
5002
  this.isMounted = !1, this.node = t;
4974
5003
  }
@@ -5001,7 +5030,7 @@ function _t(e) {
5001
5030
  function yn({ scale: e, scaleX: t, scaleY: n }) {
5002
5031
  return !_t(e) || !_t(t) || !_t(n);
5003
5032
  }
5004
- function Te(e) {
5033
+ function Me(e) {
5005
5034
  return yn(e) || Pr(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
5006
5035
  }
5007
5036
  function Pr(e) {
@@ -5034,7 +5063,7 @@ function cc(e, t, n, i = !1) {
5034
5063
  for (let c = 0; c < r; c++) {
5035
5064
  a = n[c], o = a.projectionDelta;
5036
5065
  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));
5066
+ 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
5067
  }
5039
5068
  t.x < Es && t.x > Cs && (t.x = 1), t.y < Es && t.y > Cs && (t.y = 1);
5040
5069
  }
@@ -5338,7 +5367,7 @@ function Pc(e) {
5338
5367
  let t = Ac(e), n = Ls(), i = !0, r = !1;
5339
5368
  const a = (h) => (u, d) => {
5340
5369
  var m;
5341
- const f = Pe(e, d, h === "exit" ? (m = e.presenceContext) == null ? void 0 : m.custom : void 0);
5370
+ const f = Ve(e, d, h === "exit" ? (m = e.presenceContext) == null ? void 0 : m.custom : void 0);
5342
5371
  if (f) {
5343
5372
  const { transition: x, transitionEnd: g, ...j } = f;
5344
5373
  u = { ...u, ...j, ...g };
@@ -5377,39 +5406,39 @@ function Pc(e) {
5377
5406
  const { prevResolvedValues: ie = {} } = w, W = {
5378
5407
  ...ie,
5379
5408
  ...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);
5409
+ }, X = (O) => {
5410
+ C = !0, m.has(O) && (P = !0, m.delete(O)), w.needsAnimating[O] = !0;
5411
+ const q = e.getValue(O);
5412
+ q && (q.liveStyle = !1);
5384
5413
  };
5385
- for (const F in W) {
5386
- const X = z[F], v = ie[F];
5387
- if (x.hasOwnProperty(F))
5414
+ for (const O in W) {
5415
+ const q = z[O], v = ie[O];
5416
+ if (x.hasOwnProperty(O))
5388
5417
  continue;
5389
5418
  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;
5419
+ 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
5420
  }
5392
5421
  w.prevProp = T, w.prevResolvedValues = z, w.isActive && (x = { ...x, ...z }), (i || r) && e.blockInitialAnimation && (C = !1);
5393
5422
  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);
5423
+ C && (!$ || P) && f.push(...D.map((O) => {
5424
+ const q = { type: b };
5425
+ if (typeof O == "string" && (i || r) && !$ && e.manuallyAnimateOnMount && e.parent) {
5426
+ const { parent: v } = e, V = Ve(v, O);
5398
5427
  if (v.enteringChildren && V) {
5399
5428
  const { delayChildren: L } = V.transition || {};
5400
- X.delay = rr(v.enteringChildren, e, L);
5429
+ q.delay = rr(v.enteringChildren, e, L);
5401
5430
  }
5402
5431
  }
5403
5432
  return {
5404
- animation: F,
5405
- options: X
5433
+ animation: O,
5434
+ options: q
5406
5435
  };
5407
5436
  }));
5408
5437
  }
5409
5438
  if (m.size) {
5410
5439
  const y = {};
5411
5440
  if (typeof u.initial != "boolean") {
5412
- const b = Pe(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
5441
+ const b = Ve(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
5413
5442
  b && b.transition && (y.transition = b.transition);
5414
5443
  }
5415
5444
  m.forEach((b) => {
@@ -5446,7 +5475,7 @@ function Pc(e) {
5446
5475
  function Vc(e, t) {
5447
5476
  return typeof t == "string" ? t !== e : Array.isArray(t) ? !Or(t, e) : !1;
5448
5477
  }
5449
- function be(e = !1) {
5478
+ function Te(e = !1) {
5450
5479
  return {
5451
5480
  isActive: e,
5452
5481
  protectedKeys: {},
@@ -5456,13 +5485,13 @@ function be(e = !1) {
5456
5485
  }
5457
5486
  function Ls() {
5458
5487
  return {
5459
- animate: be(!0),
5460
- whileInView: be(),
5461
- whileHover: be(),
5462
- whileTap: be(),
5463
- whileDrag: be(),
5464
- whileFocus: be(),
5465
- exit: be()
5488
+ animate: Te(!0),
5489
+ whileInView: Te(),
5490
+ whileHover: Te(),
5491
+ whileTap: Te(),
5492
+ whileDrag: Te(),
5493
+ whileFocus: Te(),
5494
+ exit: Te()
5466
5495
  };
5467
5496
  }
5468
5497
  function vn(e, t) {
@@ -5475,28 +5504,28 @@ function Ns(e, t) {
5475
5504
  e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
5476
5505
  }
5477
5506
  const Ir = 1e-4, Cc = 1 - Ir, Ec = 1 + Ir, Br = 0.01, Dc = 0 - Br, kc = 0 + Br;
5478
- function Z(e) {
5507
+ function J(e) {
5479
5508
  return e.max - e.min;
5480
5509
  }
5481
5510
  function Rc(e, t, n) {
5482
5511
  return Math.abs(e - t) <= n;
5483
5512
  }
5484
5513
  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);
5514
+ 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
5515
  }
5487
5516
  function qe(e, t, n, i) {
5488
5517
  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
5518
  }
5490
5519
  function Os(e, t, n, i = 0) {
5491
5520
  const r = i ? N(n.min, n.max, i) : n.min;
5492
- e.min = r + t.min, e.max = e.min + Z(t);
5521
+ e.min = r + t.min, e.max = e.min + J(t);
5493
5522
  }
5494
5523
  function Lc(e, t, n, i) {
5495
5524
  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
5525
  }
5497
5526
  function Is(e, t, n, i = 0) {
5498
5527
  const r = i ? N(n.min, n.max, i) : n.min;
5499
- e.min = t.min - r, e.max = e.min + Z(t);
5528
+ e.min = t.min - r, e.max = e.min + J(t);
5500
5529
  }
5501
5530
  function Pt(e, t, n, i) {
5502
5531
  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 +5565,7 @@ function Hr(e, t) {
5536
5565
  return Ws(e.x, t.x) && Ws(e.y, t.y);
5537
5566
  }
5538
5567
  function $s(e) {
5539
- return Z(e.x) / Z(e.y);
5568
+ return J(e.x) / J(e.y);
5540
5569
  }
5541
5570
  function Ks(e, t) {
5542
5571
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
@@ -5601,11 +5630,11 @@ class Kc {
5601
5630
  }
5602
5631
  }
5603
5632
  function Gc(e, t) {
5604
- const n = q.now(), i = ({ timestamp: r }) => {
5633
+ const n = Z.now(), i = ({ timestamp: r }) => {
5605
5634
  const a = r - n;
5606
- a >= t && (ve(i), e(a - t));
5635
+ a >= t && (we(i), e(a - t));
5607
5636
  };
5608
- return k.setup(i, !0), () => ve(i);
5637
+ return k.setup(i, !0), () => we(i);
5609
5638
  }
5610
5639
  function gt(e) {
5611
5640
  return U(e) ? e.get() : e;
@@ -5756,7 +5785,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5756
5785
  unmount() {
5757
5786
  this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
5758
5787
  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);
5788
+ o && o.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), we(this.updateProjection);
5760
5789
  }
5761
5790
  // only on the root
5762
5791
  blockUpdate() {
@@ -5808,7 +5837,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5808
5837
  return;
5809
5838
  }
5810
5839
  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();
5840
+ const l = Z.now();
5812
5841
  _.delta = de(0, 1e3 / 60, l - _.timestamp), _.timestamp = l, _.isProcessing = !0, Ft.update.process(_), Ft.preRender.process(_), Ft.render.process(_), _.isProcessing = !1;
5813
5842
  }
5814
5843
  didUpdate() {
@@ -5829,7 +5858,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5829
5858
  * Update measurements
5830
5859
  */
5831
5860
  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));
5861
+ 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
5862
  }
5834
5863
  updateLayout() {
5835
5864
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
@@ -5859,7 +5888,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5859
5888
  if (!r)
5860
5889
  return;
5861
5890
  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());
5891
+ o && this.instance && (l || Me(this.latestValues) || u) && (r(this.instance, h), this.shouldResetTransform = !1, this.scheduleRender());
5863
5892
  }
5864
5893
  measure(o = !0) {
5865
5894
  const l = this.measurePageBox();
@@ -5901,9 +5930,9 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5901
5930
  re(h, o);
5902
5931
  for (let f = 0; f < this.path.length; f++) {
5903
5932
  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);
5933
+ !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
5934
  }
5906
- return Te(this.latestValues) && yt(h, this.latestValues, (d = this.layout) == null ? void 0 : d.layoutBox), h;
5935
+ return Me(this.latestValues) && yt(h, this.latestValues, (d = this.layout) == null ? void 0 : d.layoutBox), h;
5907
5936
  }
5908
5937
  removeTransform(o) {
5909
5938
  var c;
@@ -5911,12 +5940,12 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5911
5940
  re(l, o);
5912
5941
  for (let h = 0; h < this.path.length; h++) {
5913
5942
  const u = this.path[h];
5914
- if (!Te(u.latestValues))
5943
+ if (!Me(u.latestValues))
5915
5944
  continue;
5916
5945
  let d;
5917
5946
  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
5947
  }
5919
- return Te(this.latestValues) && Hs(l, this.latestValues), l;
5948
+ return Me(this.latestValues) && Hs(l, this.latestValues), l;
5920
5949
  }
5921
5950
  setTargetDelta(o) {
5922
5951
  this.targetDelta = o, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -6010,7 +6039,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6010
6039
  }
6011
6040
  startAnimation(o) {
6012
6041
  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(() => {
6042
+ 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
6043
  jt.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Be(0)), this.motionValue.jump(0, !1), this.currentAnimation = Wc(this.motionValue, [0, 1e3], {
6015
6044
  ...o,
6016
6045
  velocity: 0,
@@ -6040,9 +6069,9 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6040
6069
  if (!(!l || !c || !h)) {
6041
6070
  if (this !== o && this.layout && h && Kr(this.options.animationType, this.layout.layoutBox, h.layoutBox)) {
6042
6071
  c = this.target || H();
6043
- const d = Z(this.layout.layoutBox.x);
6072
+ const d = J(this.layout.layoutBox.x);
6044
6073
  c.x.min = o.target.x.min, c.x.max = c.x.min + d;
6045
- const f = Z(this.layout.layoutBox.y);
6074
+ const f = J(this.layout.layoutBox.y);
6046
6075
  c.y.min = o.target.y.min, c.y.max = c.y.min + f;
6047
6076
  }
6048
6077
  re(l, c), yt(l, u), qe(this.projectionDeltaWithTransform, this.layoutCorrected, l, u);
@@ -6114,7 +6143,7 @@ function $r({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6114
6143
  }
6115
6144
  const h = this.getLead();
6116
6145
  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);
6146
+ 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
6147
  return;
6119
6148
  }
6120
6149
  o.visibility = "";
@@ -6159,14 +6188,14 @@ function Jc(e) {
6159
6188
  const { layoutBox: i, measuredBox: r } = e.layout, { animationType: a } = e.options, o = t.source !== e.layout.source;
6160
6189
  if (a === "size")
6161
6190
  ce((d) => {
6162
- const f = o ? t.measuredBox[d] : t.layoutBox[d], m = Z(f);
6191
+ const f = o ? t.measuredBox[d] : t.layoutBox[d], m = J(f);
6163
6192
  f.min = i[d].min, f.max = f.min + m;
6164
6193
  });
6165
6194
  else if (a === "x" || a === "y") {
6166
6195
  const d = a === "x" ? "y" : "x";
6167
6196
  vn(o ? t.measuredBox[d] : t.layoutBox[d], i[d]);
6168
6197
  } else Kr(a, t.layoutBox, i) && ce((d) => {
6169
- const f = o ? t.measuredBox[d] : t.layoutBox[d], m = Z(i[d]);
6198
+ const f = o ? t.measuredBox[d] : t.layoutBox[d], m = J(i[d]);
6170
6199
  f.max = f.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + m);
6171
6200
  });
6172
6201
  const l = Fe();
@@ -6308,11 +6337,11 @@ function mu(e = !0) {
6308
6337
  if (t === null)
6309
6338
  return [!0, null];
6310
6339
  const { isPresent: n, onExitComplete: i, register: r } = t, a = co();
6311
- Ce(() => {
6340
+ je(() => {
6312
6341
  if (e)
6313
6342
  return r(a);
6314
6343
  }, [e]);
6315
- const o = Ve(() => e && i && i(a), [a, i, e]);
6344
+ const o = Ce(() => e && i && i(a), [a, i, e]);
6316
6345
  return !n && i ? [!1, o] : [!0];
6317
6346
  }
6318
6347
  const Xr = ze({ strict: !1 }), ii = {
@@ -6576,7 +6605,7 @@ function Lu(e, t, n) {
6576
6605
  i.current = n;
6577
6606
  });
6578
6607
  const r = fe(null);
6579
- return Ve((a) => {
6608
+ return Ce((a) => {
6580
6609
  var l;
6581
6610
  a && ((l = e.onMount) == null || l.call(e, a));
6582
6611
  const o = i.current;
@@ -6615,7 +6644,7 @@ function Nu(e, t, n, i, r, a) {
6615
6644
  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
6645
  return Co(() => {
6617
6646
  m.current = !0, x && (j.current = !0, window.MotionIsMounted = !0, x.updateFeatures(), x.scheduleRenderMicrotask(), b.current && x.animationState && x.animationState.animateChanges());
6618
- }), Ce(() => {
6647
+ }), je(() => {
6619
6648
  x && (!b.current && x.animationState && x.animationState.animateChanges(), b.current && (queueMicrotask(() => {
6620
6649
  var S;
6621
6650
  (S = window.MotionHandoffMarkAsComplete) == null || S.call(window, y);
@@ -6706,7 +6735,7 @@ function zu(e, t) {
6706
6735
  const Hu = (e, t) => t.isSVG ?? Xn(e) ? new bc(t) : new xc(t, {
6707
6736
  allowProjection: e !== p
6708
6737
  });
6709
- class _u extends we {
6738
+ class _u extends be {
6710
6739
  /**
6711
6740
  * We dynamically generate the AnimationState manager as it contains a reference
6712
6741
  * to the underlying animation library. We only want to load that if we load this,
@@ -6735,7 +6764,7 @@ class _u extends we {
6735
6764
  }
6736
6765
  }
6737
6766
  let Uu = 0;
6738
- class Wu extends we {
6767
+ class Wu extends be {
6739
6768
  constructor() {
6740
6769
  super(...arguments), this.id = Uu++, this.isExitComplete = !1;
6741
6770
  }
@@ -6750,7 +6779,7 @@ class Wu extends we {
6750
6779
  if (this.isExitComplete) {
6751
6780
  const { initial: o, custom: l } = this.node.getProps();
6752
6781
  if (typeof o == "string") {
6753
- const c = Pe(this.node, o, l);
6782
+ const c = Ve(this.node, o, l);
6754
6783
  if (c) {
6755
6784
  const { transition: h, transitionEnd: u, ...d } = c;
6756
6785
  for (const f in d)
@@ -6878,7 +6907,7 @@ class io {
6878
6907
  this.handlers = t;
6879
6908
  }
6880
6909
  end() {
6881
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), ve(this.updatePoint);
6910
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), we(this.updatePoint);
6882
6911
  }
6883
6912
  }
6884
6913
  function ht(e, t) {
@@ -6911,7 +6940,7 @@ function Xu(e, t) {
6911
6940
  if (!i)
6912
6941
  return { x: 0, y: 0 };
6913
6942
  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);
6943
+ const a = /* @__PURE__ */ ne(r.timestamp - i.timestamp);
6915
6944
  if (a === 0)
6916
6945
  return { x: 0, y: 0 };
6917
6946
  const o = {
@@ -6947,7 +6976,7 @@ function Ju(e, t) {
6947
6976
  }
6948
6977
  function Qu(e, t) {
6949
6978
  let n = 0.5;
6950
- const i = Z(e), r = Z(t);
6979
+ const i = J(e), r = J(t);
6951
6980
  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
6981
  }
6953
6982
  function eh(e, t) {
@@ -6991,7 +7020,7 @@ class sh {
6991
7020
  const { projection: w } = this.visualElement;
6992
7021
  if (w && w.layout) {
6993
7022
  const T = w.layout.layoutBox[y];
6994
- T && (b = Z(T) * (parseFloat(b) / 100));
7023
+ T && (b = J(T) * (parseFloat(b) / 100));
6995
7024
  }
6996
7025
  }
6997
7026
  this.originPoint[y] = b;
@@ -7230,7 +7259,7 @@ function rh(e, t = 10) {
7230
7259
  let n = null;
7231
7260
  return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
7232
7261
  }
7233
- class oh extends we {
7262
+ class oh extends be {
7234
7263
  constructor(t) {
7235
7264
  super(t), this.removeGroupControls = se, this.removeListeners = se, this.controls = new sh(t);
7236
7265
  }
@@ -7249,7 +7278,7 @@ class oh extends we {
7249
7278
  const Yt = (e) => (t, n) => {
7250
7279
  e && k.update(() => e(t, n), !1, !0);
7251
7280
  };
7252
- class ah extends we {
7281
+ class ah extends be {
7253
7282
  constructor() {
7254
7283
  super(...arguments), this.removePointerDownListener = se;
7255
7284
  }
@@ -7345,7 +7374,7 @@ function mi(e, t, n) {
7345
7374
  const r = "onHover" + n, a = i[r];
7346
7375
  a && k.postRender(() => a(t, ot(t)));
7347
7376
  }
7348
- class uh extends we {
7377
+ class uh extends be {
7349
7378
  mount() {
7350
7379
  const { current: t } = this.node;
7351
7380
  t && (this.unmount = Ol(t, (n, i) => (mi(this.node, i, "Start"), (r) => mi(this.node, r, "End"))));
@@ -7353,7 +7382,7 @@ class uh extends we {
7353
7382
  unmount() {
7354
7383
  }
7355
7384
  }
7356
- class hh extends we {
7385
+ class hh extends be {
7357
7386
  constructor() {
7358
7387
  super(...arguments), this.isActive = !1;
7359
7388
  }
@@ -7383,7 +7412,7 @@ function xi(e, t, n) {
7383
7412
  const r = "onTap" + (n === "End" ? "" : n), a = i[r];
7384
7413
  a && k.postRender(() => a(t, ot(t)));
7385
7414
  }
7386
- class dh extends we {
7415
+ class dh extends be {
7387
7416
  mount() {
7388
7417
  const { current: t } = this.node;
7389
7418
  if (!t)
@@ -7419,7 +7448,7 @@ const yh = {
7419
7448
  some: 0,
7420
7449
  all: 1
7421
7450
  };
7422
- class gh extends we {
7451
+ class gh extends be {
7423
7452
  constructor() {
7424
7453
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
7425
7454
  }
@@ -7480,7 +7509,7 @@ const vh = {
7480
7509
  ...vh,
7481
7510
  ...ch,
7482
7511
  ...wh
7483
- }, Th = /* @__PURE__ */ zu(bh, Hu), qh = ({ flipped: e, setFlipped: t, front: n, back: i }) => /* @__PURE__ */ s.jsxs(
7512
+ }, Th = /* @__PURE__ */ zu(bh, Hu), Zh = ({ flipped: e, setFlipped: t, front: n, back: i }) => /* @__PURE__ */ s.jsxs(
7484
7513
  Th.div,
7485
7514
  {
7486
7515
  className: `muncher-flippable-card ${e ? "flipped" : ""}`,
@@ -7491,46 +7520,66 @@ const vh = {
7491
7520
  /* @__PURE__ */ s.jsx("div", { className: "muncher-flippable-card-face back", children: i })
7492
7521
  ]
7493
7522
  }
7494
- );
7523
+ ), Mh = () => {
7524
+ const [e, t] = Y({
7525
+ isTop: !0,
7526
+ isBottom: !1
7527
+ });
7528
+ return je(() => {
7529
+ const n = () => {
7530
+ const i = window.scrollY, r = window.innerHeight, a = document.documentElement.scrollHeight, o = i < 50, l = i + r >= a - 50;
7531
+ t({ isTop: o, isBottom: l });
7532
+ };
7533
+ return window.addEventListener("scroll", n), n(), () => window.removeEventListener("scroll", n);
7534
+ }, []), e;
7535
+ }, Jh = ({ variant: e = "tertiary" }) => {
7536
+ const { isBottom: t } = Mh(), n = () => window.scrollTo({ top: 0, behavior: "smooth" }), i = () => window.scrollTo({
7537
+ top: document.documentElement.scrollHeight,
7538
+ behavior: "smooth"
7539
+ }), r = t ? "up" : "down";
7540
+ 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" }) }) });
7541
+ };
7495
7542
  export {
7496
- Sh as Accordion,
7543
+ Ah as Accordion,
7497
7544
  yo as Backdrop,
7498
7545
  go as Badge,
7499
- ne as Button,
7500
- Yh as Card,
7501
- Ch as Checkbox,
7546
+ te as Button,
7547
+ Xh as Card,
7548
+ Eh as Checkbox,
7502
7549
  wo as CopyButton,
7503
7550
  bo as CsvButton,
7504
7551
  Mo as CsvInput,
7505
7552
  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,
7553
+ Vh as DropdownNavButton,
7554
+ $h as Featured,
7555
+ Zh as FlippableCard,
7556
+ Hh as Hr,
7557
+ F as Icon,
7558
+ Ph as IconBadge,
7559
+ Dh as ImageInput,
7513
7560
  So as Input,
7514
- Hh as ItemSlider,
7561
+ _h as ItemSlider,
7515
7562
  nt as Label,
7516
- Nh as Li,
7517
- Fh as Modal,
7563
+ Fh as Li,
7564
+ Oh as Modal,
7518
7565
  Qn as NavigateButton,
7519
- Oh as Paper,
7520
- Ih as Pill,
7521
- Bh as Progress,
7522
- Dh as Radio,
7523
- _h as RangeSlider,
7566
+ Ih as Paper,
7567
+ Bh as Pill,
7568
+ zh as Progress,
7569
+ kh as Radio,
7570
+ Uh as RangeSlider,
7571
+ Jh as ScrollFab,
7524
7572
  Ao as Select,
7525
- Vh as ShareButton,
7526
- Uh as Slider,
7573
+ Ch as ShareButton,
7574
+ Wh as Slider,
7527
7575
  To as SortButton,
7528
7576
  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
7577
+ Kh as Star,
7578
+ Yh as Table,
7579
+ Gh as Tabs,
7580
+ Lh as TextInputDropdown,
7581
+ Rh as Textarea,
7582
+ Nh as Ul,
7583
+ vo as copyToClipboard,
7584
+ Mh as useScrollPosition
7536
7585
  };