@a4ui/core 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{Checkbox-B5Gb3h5J.js → Checkbox-BZjX1GMG.js} +153 -146
  2. package/dist/commerce/ProductCard.d.ts +10 -0
  3. package/dist/commerce/createCart.d.ts +53 -0
  4. package/dist/commerce/index.d.ts +1 -0
  5. package/dist/commerce.js +160 -133
  6. package/dist/elements.css +244 -0
  7. package/dist/elements.iife.js +3 -3
  8. package/dist/elements.js +590 -583
  9. package/dist/full.css +244 -0
  10. package/dist/index.d.ts +5 -1
  11. package/dist/index.js +3090 -2798
  12. package/dist/layout/ActionBar.d.ts +53 -0
  13. package/dist/layout/Section.d.ts +31 -0
  14. package/dist/styles.css +66 -0
  15. package/dist/ui/Badge.d.ts +6 -0
  16. package/dist/ui/BeforeAfter.d.ts +34 -0
  17. package/dist/ui/Carousel.d.ts +6 -0
  18. package/dist/ui/FloatingActionButton.d.ts +6 -0
  19. package/dist/ui/Image.d.ts +6 -0
  20. package/dist/ui/List.d.ts +5 -0
  21. package/dist/ui/PricingTable.d.ts +60 -0
  22. package/dist/ui/Skeleton.d.ts +10 -3
  23. package/package.json +1 -1
  24. package/src/commerce/ProductCard.tsx +26 -2
  25. package/src/commerce/createCart.ts +102 -0
  26. package/src/commerce/index.ts +1 -0
  27. package/src/index.ts +5 -1
  28. package/src/layout/ActionBar.tsx +121 -0
  29. package/src/layout/Section.tsx +69 -0
  30. package/src/ui/Accordion.tsx +3 -1
  31. package/src/ui/Badge.tsx +14 -2
  32. package/src/ui/BeforeAfter.tsx +162 -0
  33. package/src/ui/Carousel.tsx +48 -3
  34. package/src/ui/Collapse.tsx +13 -4
  35. package/src/ui/FloatingActionButton.tsx +16 -1
  36. package/src/ui/Image.tsx +29 -1
  37. package/src/ui/List.tsx +10 -2
  38. package/src/ui/PricingTable.tsx +196 -0
  39. package/src/ui/Skeleton.tsx +17 -5
  40. package/src/ui/SpeedDial.tsx +3 -1
package/dist/elements.js CHANGED
@@ -93,14 +93,14 @@ function To(e, t, n) {
93
93
  function At(e) {
94
94
  Ve(() => re(e));
95
95
  }
96
- function ge(e) {
96
+ function pe(e) {
97
97
  return _ === null || (_.cleanups === null ? _.cleanups = [e] : _.cleanups.push(e)), e;
98
98
  }
99
99
  function Ct(e, t) {
100
100
  const n = Symbol("context");
101
101
  return {
102
102
  id: n,
103
- Provider: Eo(n),
103
+ Provider: $o(n),
104
104
  defaultValue: e
105
105
  };
106
106
  }
@@ -290,7 +290,7 @@ function wn(e) {
290
290
  }
291
291
  return e;
292
292
  }
293
- function Eo(e, t) {
293
+ function $o(e, t) {
294
294
  return function(r) {
295
295
  let s;
296
296
  return q(() => s = re(() => (_.context = {
@@ -303,14 +303,14 @@ const xn = Symbol("fallback");
303
303
  function Ht(e) {
304
304
  for (let t = 0; t < e.length; t++) e[t]();
305
305
  }
306
- function $o(e, t, n = {}) {
306
+ function Eo(e, t, n = {}) {
307
307
  let r = [], s = [], i = [], o = 0, a = t.length > 1 ? [] : null;
308
- return ge(() => Ht(i)), () => {
308
+ return pe(() => Ht(i)), () => {
309
309
  let l = e() || [], c = l.length, u, d;
310
310
  return l[ms], re(() => {
311
311
  let m, y, h, p, v, k, C, T, A;
312
312
  if (c === 0)
313
- o !== 0 && (Ht(i), i = [], r = [], s = [], o = 0, a && (a = [])), n.fallback && (r = [xn], s[0] = He(($) => (i[0] = $, n.fallback())), o = 1);
313
+ o !== 0 && (Ht(i), i = [], r = [], s = [], o = 0, a && (a = [])), n.fallback && (r = [xn], s[0] = He((E) => (i[0] = E, n.fallback())), o = 1);
314
314
  else if (o === 0) {
315
315
  for (s = new Array(c), d = 0; d < c; d++)
316
316
  r[d] = l[d], s[d] = He(f);
@@ -340,7 +340,7 @@ function $o(e, t, n = {}) {
340
340
  }
341
341
  function Io(e, t, n = {}) {
342
342
  let r = [], s = [], i = [], o = [], a = 0, l;
343
- return ge(() => Ht(i)), () => {
343
+ return pe(() => Ht(i)), () => {
344
344
  const c = e() || [], u = c.length;
345
345
  return c[ms], re(() => {
346
346
  if (u === 0)
@@ -500,7 +500,7 @@ function qt(e) {
500
500
  const t = "fallback" in e && {
501
501
  fallback: () => e.fallback
502
502
  };
503
- return ne($o(() => e.each, e.children, t || void 0));
503
+ return ne(Eo(() => e.each, e.children, t || void 0));
504
504
  }
505
505
  function Xn(e) {
506
506
  const t = "fallback" in e && {
@@ -508,7 +508,7 @@ function Xn(e) {
508
508
  };
509
509
  return ne(Io(() => e.each, e.children, t || void 0));
510
510
  }
511
- function pe(e) {
511
+ function he(e) {
512
512
  const t = e.keyed, n = ne(() => e.when, void 0, void 0), r = t ? n : ne(n, void 0, {
513
513
  equals: (s, i) => !s == !i
514
514
  });
@@ -1307,7 +1307,7 @@ function As(e) {
1307
1307
  }
1308
1308
  var Cs = As;
1309
1309
  /**
1310
- * @license lucide-solid v1.24.0 - ISC
1310
+ * @license lucide-solid v1.25.0 - ISC
1311
1311
  *
1312
1312
  * This source code is licensed under the ISC license.
1313
1313
  * See the LICENSE file in the root directory of this source tree.
@@ -1368,7 +1368,7 @@ var va = {
1368
1368
  }, o))
1369
1369
  })), s;
1370
1370
  })();
1371
- }, Et = Ca, Ma = [["circle", {
1371
+ }, $t = Ca, Ma = [["circle", {
1372
1372
  cx: "12",
1373
1373
  cy: "12",
1374
1374
  r: "10",
@@ -1376,10 +1376,10 @@ var va = {
1376
1376
  }], ["path", {
1377
1377
  d: "m9 12 2 2 4-4",
1378
1378
  key: "dzmm74"
1379
- }]], Va = (e) => b(Et, D(e, {
1379
+ }]], Va = (e) => b($t, D(e, {
1380
1380
  iconNode: Ma,
1381
1381
  name: "circle-check"
1382
- })), Pa = Va, Ea = [["circle", {
1382
+ })), Pa = Va, $a = [["circle", {
1383
1383
  cx: "12",
1384
1384
  cy: "12",
1385
1385
  r: "10",
@@ -1390,10 +1390,10 @@ var va = {
1390
1390
  }], ["path", {
1391
1391
  d: "m9 9 6 6",
1392
1392
  key: "z0biqf"
1393
- }]], $a = (e) => b(Et, D(e, {
1394
- iconNode: Ea,
1393
+ }]], Ea = (e) => b($t, D(e, {
1394
+ iconNode: $a,
1395
1395
  name: "circle-x"
1396
- })), Ia = $a, Ra = [["circle", {
1396
+ })), Ia = Ea, Ra = [["circle", {
1397
1397
  cx: "12",
1398
1398
  cy: "12",
1399
1399
  r: "10",
@@ -1404,13 +1404,13 @@ var va = {
1404
1404
  }], ["path", {
1405
1405
  d: "M12 8h.01",
1406
1406
  key: "e9boi3"
1407
- }]], Oa = (e) => b(Et, D(e, {
1407
+ }]], Oa = (e) => b($t, D(e, {
1408
1408
  iconNode: Ra,
1409
1409
  name: "info"
1410
1410
  })), La = Oa, Da = [["path", {
1411
1411
  d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",
1412
1412
  key: "r04s7s"
1413
- }]], Fa = (e) => b(Et, D(e, {
1413
+ }]], Fa = (e) => b($t, D(e, {
1414
1414
  iconNode: Da,
1415
1415
  name: "star"
1416
1416
  })), Mr = Fa, _a = [["path", {
@@ -1422,7 +1422,7 @@ var va = {
1422
1422
  }], ["path", {
1423
1423
  d: "M12 17h.01",
1424
1424
  key: "p32p05"
1425
- }]], Na = (e) => b(Et, D(e, {
1425
+ }]], Na = (e) => b($t, D(e, {
1426
1426
  iconNode: _a,
1427
1427
  name: "triangle-alert"
1428
1428
  })), za = Na;
@@ -1523,7 +1523,7 @@ const ja = (e, t) => {
1523
1523
  }
1524
1524
  Ja(e, t, n, r);
1525
1525
  }, qa = (e, t, n) => {
1526
- const r = e === "" ? t : Es(t, e);
1526
+ const r = e === "" ? t : $s(t, e);
1527
1527
  r.classGroupId = n;
1528
1528
  }, Za = (e, t, n, r) => {
1529
1529
  if (Qa(e)) {
@@ -1535,9 +1535,9 @@ const ja = (e, t) => {
1535
1535
  const s = Object.entries(e), i = s.length;
1536
1536
  for (let o = 0; o < i; o++) {
1537
1537
  const [a, l] = s[o];
1538
- Jn(l, Es(t, a), n, r);
1538
+ Jn(l, $s(t, a), n, r);
1539
1539
  }
1540
- }, Es = (e, t) => {
1540
+ }, $s = (e, t) => {
1541
1541
  let n = e;
1542
1542
  const r = t.split(Zt), s = r.length;
1543
1543
  for (let i = 0; i < s; i++) {
@@ -1570,7 +1570,7 @@ const ja = (e, t) => {
1570
1570
  i in n ? n[i] = o : s(i, o);
1571
1571
  }
1572
1572
  };
1573
- }, Tn = "!", Pr = ":", tl = [], Er = (e, t, n, r, s) => ({
1573
+ }, Tn = "!", Pr = ":", tl = [], $r = (e, t, n, r, s) => ({
1574
1574
  modifiers: e,
1575
1575
  hasImportantModifier: t,
1576
1576
  baseClassName: n,
@@ -1609,11 +1609,11 @@ const ja = (e, t) => {
1609
1609
  d.startsWith(Tn) && (f = d.slice(1), m = !0)
1610
1610
  );
1611
1611
  const y = c && c > l ? c - l : void 0;
1612
- return Er(i, m, f, y);
1612
+ return $r(i, m, f, y);
1613
1613
  };
1614
1614
  if (t) {
1615
1615
  const s = t + Pr, i = r;
1616
- r = (o) => o.startsWith(s) ? i(o.slice(s.length)) : Er(tl, !1, o, void 0, !0);
1616
+ r = (o) => o.startsWith(s) ? i(o.slice(s.length)) : $r(tl, !1, o, void 0, !0);
1617
1617
  }
1618
1618
  if (n) {
1619
1619
  const s = r;
@@ -1671,8 +1671,8 @@ const ja = (e, t) => {
1671
1671
  }
1672
1672
  let v = !!p, k;
1673
1673
  if (v) {
1674
- const E = h.substring(0, p);
1675
- k = r(E);
1674
+ const $ = h.substring(0, p);
1675
+ k = r($);
1676
1676
  const g = k && o[k] ? r(h) : void 0;
1677
1677
  g && g !== k && (k = g, v = !1);
1678
1678
  } else
@@ -1692,9 +1692,9 @@ const ja = (e, t) => {
1692
1692
  if (a.indexOf(A) > -1)
1693
1693
  continue;
1694
1694
  a.push(A);
1695
- const $ = s(k, v);
1696
- for (let E = 0; E < $.length; ++E) {
1697
- const g = $[E];
1695
+ const E = s(k, v);
1696
+ for (let $ = 0; $ < E.length; ++$) {
1697
+ const g = E[$];
1698
1698
  a.push(T + g);
1699
1699
  }
1700
1700
  c = d + (c.length > 0 ? " " + c : c);
@@ -1703,14 +1703,14 @@ const ja = (e, t) => {
1703
1703
  }, ll = (...e) => {
1704
1704
  let t = 0, n, r, s = "";
1705
1705
  for (; t < e.length; )
1706
- (n = e[t++]) && (r = $s(n)) && (s && (s += " "), s += r);
1706
+ (n = e[t++]) && (r = Es(n)) && (s && (s += " "), s += r);
1707
1707
  return s;
1708
- }, $s = (e) => {
1708
+ }, Es = (e) => {
1709
1709
  if (typeof e == "string")
1710
1710
  return e;
1711
1711
  let t, n = "";
1712
1712
  for (let r = 0; r < e.length; r++)
1713
- e[r] && (t = $s(e[r])) && (n && (n += " "), n += t);
1713
+ e[r] && (t = Es(e[r])) && (n && (n += " "), n += t);
1714
1714
  return n;
1715
1715
  }, cl = (e, ...t) => {
1716
1716
  let n, r, s, i;
@@ -1733,13 +1733,13 @@ const ja = (e, t) => {
1733
1733
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1734
1734
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1735
1735
  hl.test(e) && !ml.test(e)
1736
- ), Qn = () => !1, yl = (e) => gl.test(e), vl = (e) => pl.test(e), wl = (e) => !w(e) && !x(e), xl = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), kl = (e) => Re(e, Fs, Qn), w = (e) => Is.test(e), De = (e) => Re(e, _s, bl), $r = (e) => Re(e, El, I), Sl = (e) => Re(e, zs, Os), Tl = (e) => Re(e, Ns, Qn), Ir = (e) => Re(e, Ls, Qn), Al = (e) => Re(e, Ds, vl), Ft = (e) => Re(e, Bs, yl), x = (e) => Rs.test(e), dt = (e) => Be(e, _s), Cl = (e) => Be(e, Ns), Rr = (e) => Be(e, Ls), Ml = (e) => Be(e, Fs), Vl = (e) => Be(e, Ds), _t = (e) => Be(e, Bs, !0), Pl = (e) => Be(e, zs, !0), Re = (e, t, n) => {
1736
+ ), Qn = () => !1, yl = (e) => gl.test(e), vl = (e) => pl.test(e), wl = (e) => !w(e) && !x(e), xl = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), kl = (e) => Re(e, Fs, Qn), w = (e) => Is.test(e), De = (e) => Re(e, _s, bl), Er = (e) => Re(e, $l, I), Sl = (e) => Re(e, zs, Os), Tl = (e) => Re(e, Ns, Qn), Ir = (e) => Re(e, Ls, Qn), Al = (e) => Re(e, Ds, vl), Ft = (e) => Re(e, Bs, yl), x = (e) => Rs.test(e), dt = (e) => Be(e, _s), Cl = (e) => Be(e, Ns), Rr = (e) => Be(e, Ls), Ml = (e) => Be(e, Fs), Vl = (e) => Be(e, Ds), _t = (e) => Be(e, Bs, !0), Pl = (e) => Be(e, zs, !0), Re = (e, t, n) => {
1737
1737
  const r = Is.exec(e);
1738
1738
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
1739
1739
  }, Be = (e, t, n = !1) => {
1740
1740
  const r = Rs.exec(e);
1741
1741
  return r ? r[1] ? t(r[1]) : n : !1;
1742
- }, Ls = (e) => e === "position" || e === "percentage", Ds = (e) => e === "image" || e === "url", Fs = (e) => e === "length" || e === "size" || e === "bg-size", _s = (e) => e === "length", El = (e) => e === "number", Ns = (e) => e === "family-name", zs = (e) => e === "number" || e === "weight", Bs = (e) => e === "shadow", $l = () => {
1742
+ }, Ls = (e) => e === "position" || e === "percentage", Ds = (e) => e === "image" || e === "url", Fs = (e) => e === "length" || e === "size" || e === "bg-size", _s = (e) => e === "length", $l = (e) => e === "number", Ns = (e) => e === "family-name", zs = (e) => e === "number" || e === "weight", Bs = (e) => e === "shadow", El = () => {
1743
1743
  const e = H("color"), t = H("font"), n = H("text"), r = H("font-weight"), s = H("tracking"), i = H("leading"), o = H("breakpoint"), a = H("container"), l = H("spacing"), c = H("radius"), u = H("shadow"), d = H("inset-shadow"), f = H("text-shadow"), m = H("drop-shadow"), y = H("blur"), h = H("perspective"), p = H("aspect"), v = H("ease"), k = H("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], T = () => [
1744
1744
  "center",
1745
1745
  "top",
@@ -1758,7 +1758,7 @@ const ja = (e, t) => {
1758
1758
  "bottom-left",
1759
1759
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1760
1760
  "left-bottom"
1761
- ], A = () => [...T(), x, w], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], g = () => [x, w, l], V = () => [Ce, "full", "auto", ...g()], M = () => [be, "none", "subgrid", x, w], O = () => ["auto", {
1761
+ ], A = () => [...T(), x, w], E = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], g = () => [x, w, l], V = () => [Ce, "full", "auto", ...g()], M = () => [be, "none", "subgrid", x, w], O = () => ["auto", {
1762
1762
  span: ["full", be, x, w]
1763
1763
  }, be, x, w], N = () => [be, "auto", x, w], J = () => ["auto", "min", "max", "fr", x, w], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], ee = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], K = () => ["auto", ...g()], Z = () => [Ce, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], ie = () => [Ce, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...g()], je = () => [Ce, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...g()], P = () => [e, x, w], ot = () => [...T(), Rr, Ir, {
1764
1764
  position: [x, w]
@@ -1924,42 +1924,42 @@ const ja = (e, t) => {
1924
1924
  * @see https://tailwindcss.com/docs/overflow
1925
1925
  */
1926
1926
  overflow: [{
1927
- overflow: $()
1927
+ overflow: E()
1928
1928
  }],
1929
1929
  /**
1930
1930
  * Overflow X
1931
1931
  * @see https://tailwindcss.com/docs/overflow
1932
1932
  */
1933
1933
  "overflow-x": [{
1934
- "overflow-x": $()
1934
+ "overflow-x": E()
1935
1935
  }],
1936
1936
  /**
1937
1937
  * Overflow Y
1938
1938
  * @see https://tailwindcss.com/docs/overflow
1939
1939
  */
1940
1940
  "overflow-y": [{
1941
- "overflow-y": $()
1941
+ "overflow-y": E()
1942
1942
  }],
1943
1943
  /**
1944
1944
  * Overscroll Behavior
1945
1945
  * @see https://tailwindcss.com/docs/overscroll-behavior
1946
1946
  */
1947
1947
  overscroll: [{
1948
- overscroll: E()
1948
+ overscroll: $()
1949
1949
  }],
1950
1950
  /**
1951
1951
  * Overscroll Behavior X
1952
1952
  * @see https://tailwindcss.com/docs/overscroll-behavior
1953
1953
  */
1954
1954
  "overscroll-x": [{
1955
- "overscroll-x": E()
1955
+ "overscroll-x": $()
1956
1956
  }],
1957
1957
  /**
1958
1958
  * Overscroll Behavior Y
1959
1959
  * @see https://tailwindcss.com/docs/overscroll-behavior
1960
1960
  */
1961
1961
  "overscroll-y": [{
1962
- "overscroll-y": E()
1962
+ "overscroll-y": $()
1963
1963
  }],
1964
1964
  /**
1965
1965
  * Position
@@ -2664,7 +2664,7 @@ const ja = (e, t) => {
2664
2664
  * @see https://tailwindcss.com/docs/line-clamp
2665
2665
  */
2666
2666
  "line-clamp": [{
2667
- "line-clamp": [I, "none", x, $r]
2667
+ "line-clamp": [I, "none", x, Er]
2668
2668
  }],
2669
2669
  /**
2670
2670
  * Line Height
@@ -4347,7 +4347,7 @@ const ja = (e, t) => {
4347
4347
  * @see https://tailwindcss.com/docs/stroke-width
4348
4348
  */
4349
4349
  "stroke-w": [{
4350
- stroke: [I, dt, De, $r]
4350
+ stroke: [I, dt, De, Er]
4351
4351
  }],
4352
4352
  /**
4353
4353
  * Stroke
@@ -4424,7 +4424,7 @@ const ja = (e, t) => {
4424
4424
  postfixLookupClassGroups: ["container-type"],
4425
4425
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
4426
4426
  };
4427
- }, Il = /* @__PURE__ */ cl($l);
4427
+ }, Il = /* @__PURE__ */ cl(El);
4428
4428
  function X(...e) {
4429
4429
  return Il(Ba(e));
4430
4430
  }
@@ -4467,7 +4467,7 @@ function Dl(e) {
4467
4467
  }
4468
4468
  }), (() => {
4469
4469
  var n = Ol(), r = n.firstChild;
4470
- return L(n, b(pe, {
4470
+ return L(n, b(he, {
4471
4471
  get when() {
4472
4472
  return e.title;
4473
4473
  },
@@ -4501,9 +4501,9 @@ function Ks(e) {
4501
4501
  const s = t.fallbackDelay();
4502
4502
  if (s !== void 0) {
4503
4503
  const i = window.setTimeout(() => r(!0), s);
4504
- ge(() => window.clearTimeout(i));
4504
+ pe(() => window.clearTimeout(i));
4505
4505
  }
4506
- }), b(pe, {
4506
+ }), b(he, {
4507
4507
  get when() {
4508
4508
  return Hn(() => !!n())() && t.imageLoadingStatus() !== "loaded";
4509
4509
  },
@@ -4525,13 +4525,13 @@ function Gs(e) {
4525
4525
  const o = new window.Image(), a = (l) => () => {
4526
4526
  i && r(l);
4527
4527
  };
4528
- r("loading"), e.crossOrigin !== void 0 && (o.crossOrigin = e.crossOrigin), e.referrerPolicy !== void 0 && (o.referrerPolicy = e.referrerPolicy), o.onload = a("loaded"), o.onerror = a("error"), o.src = s, ge(() => {
4528
+ r("loading"), e.crossOrigin !== void 0 && (o.crossOrigin = e.crossOrigin), e.referrerPolicy !== void 0 && (o.referrerPolicy = e.referrerPolicy), o.onload = a("loaded"), o.onerror = a("error"), o.src = s, pe(() => {
4529
4529
  i = !1;
4530
4530
  });
4531
4531
  })), Ve(() => {
4532
4532
  const s = n();
4533
4533
  s !== "idle" && t.onImageLoadingStatusChange(s);
4534
- }), b(pe, {
4534
+ }), b(he, {
4535
4535
  get when() {
4536
4536
  return n() === "loaded";
4537
4537
  },
@@ -4587,36 +4587,43 @@ function _l(e) {
4587
4587
  }
4588
4588
  });
4589
4589
  }
4590
- var Nl = /* @__PURE__ */ F("<span>");
4591
- const zl = {
4590
+ var Nl = /* @__PURE__ */ F('<span class="relative flex h-1.5 w-1.5"aria-hidden=true><span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-current opacity-75"></span><span class="relative inline-flex h-1.5 w-1.5 rounded-full bg-current">'), zl = /* @__PURE__ */ F("<span>");
4591
+ const Bl = {
4592
4592
  neutral: "bg-muted text-muted-foreground ring-border",
4593
4593
  success: "bg-emerald-500/15 text-emerald-600 ring-emerald-500/30",
4594
4594
  warning: "bg-amber-500/15 text-amber-600 ring-amber-500/30",
4595
4595
  danger: "bg-rose-500/15 text-rose-600 ring-rose-500/30",
4596
4596
  info: "bg-sky-500/15 text-sky-600 ring-sky-500/30"
4597
- }, Bl = "badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";
4598
- function jl(e) {
4599
- const [t, n] = ae(e, ["tone", "class", "children"]);
4597
+ }, jl = "badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";
4598
+ function Kl(e) {
4599
+ const [t, n] = ae(e, ["tone", "class", "children", "pulse"]);
4600
4600
  return (() => {
4601
- var r = Nl();
4601
+ var r = zl();
4602
4602
  return et(r, D({
4603
4603
  get class() {
4604
- return X(Bl, zl[t.tone ?? "neutral"], t.class);
4604
+ return X(jl, Bl[t.tone ?? "neutral"], t.class);
4605
4605
  }
4606
- }, n), !1, !0), L(r, () => t.children), r;
4606
+ }, n), !1, !0), L(r, b(he, {
4607
+ get when() {
4608
+ return t.pulse;
4609
+ },
4610
+ get children() {
4611
+ return Nl();
4612
+ }
4613
+ }), null), L(r, () => t.children, null), r;
4607
4614
  })();
4608
4615
  }
4609
- function Kl(e, t) {
4616
+ function Gl(e, t) {
4610
4617
  e.indexOf(t) === -1 && e.push(t);
4611
4618
  }
4612
4619
  function tr(e, t) {
4613
4620
  const n = e.indexOf(t);
4614
4621
  n > -1 && e.splice(n, 1);
4615
4622
  }
4616
- const Ee = (e, t, n) => n > t ? t : n < e ? e : n;
4623
+ const $e = (e, t, n) => n > t ? t : n < e ? e : n;
4617
4624
  let nr = () => {
4618
4625
  };
4619
- const $e = {}, Us = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Gl = (e) => typeof e == "object" && e !== null, Ys = (e) => /^0[^.\s]+$/u.test(e);
4626
+ const Ee = {}, Us = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Wl = (e) => typeof e == "object" && e !== null, Ys = (e) => /^0[^.\s]+$/u.test(e);
4620
4627
  // @__NO_SIDE_EFFECTS__
4621
4628
  function Xs(e) {
4622
4629
  let t;
@@ -4631,7 +4638,7 @@ class Hs {
4631
4638
  this.subscriptions = [];
4632
4639
  }
4633
4640
  add(t) {
4634
- return Kl(this.subscriptions, t), () => tr(this.subscriptions, t);
4641
+ return Gl(this.subscriptions, t), () => tr(this.subscriptions, t);
4635
4642
  }
4636
4643
  notify(t, n, r) {
4637
4644
  const s = this.subscriptions.length;
@@ -4651,48 +4658,48 @@ class Hs {
4651
4658
  this.subscriptions.length = 0;
4652
4659
  }
4653
4660
  }
4654
- const fe = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, he = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, qs = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? e * (1e3 / t) : 0, Wl = (e, t, n) => {
4661
+ const fe = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, me = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, qs = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? e * (1e3 / t) : 0, Ul = (e, t, n) => {
4655
4662
  const r = t - e;
4656
4663
  return ((n - e) % r + r) % r + e;
4657
- }, Zs = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Ul = 1e-7, Yl = 12;
4658
- function Xl(e, t, n, r, s) {
4664
+ }, Zs = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Yl = 1e-7, Xl = 12;
4665
+ function Hl(e, t, n, r, s) {
4659
4666
  let i, o, a = 0;
4660
4667
  do
4661
4668
  o = t + (n - t) / 2, i = Zs(o, r, s) - e, i > 0 ? n = o : t = o;
4662
- while (Math.abs(i) > Ul && ++a < Yl);
4669
+ while (Math.abs(i) > Yl && ++a < Xl);
4663
4670
  return o;
4664
4671
  }
4665
4672
  // @__NO_SIDE_EFFECTS__
4666
- function $t(e, t, n, r) {
4673
+ function Et(e, t, n, r) {
4667
4674
  if (e === t && n === r)
4668
4675
  return tt;
4669
- const s = (i) => Xl(i, 0, 1, e, n);
4676
+ const s = (i) => Hl(i, 0, 1, e, n);
4670
4677
  return (i) => i === 0 || i === 1 ? i : Zs(s(i), t, r);
4671
4678
  }
4672
- const Js = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ir = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Qs = /* @__PURE__ */ $t(0.33, 1.53, 0.69, 0.99), or = /* @__PURE__ */ ir(Qs), ei = /* @__PURE__ */ Js(or), ti = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? 0.5 * or(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), ar = (e) => 1 - Math.sin(Math.acos(e)), Hl = /* @__PURE__ */ ir(ar), ni = /* @__PURE__ */ Js(ar), ql = /* @__PURE__ */ $t(0.42, 0, 1, 1), Zl = /* @__PURE__ */ $t(0, 0, 0.58, 1), ri = /* @__PURE__ */ $t(0.42, 0, 0.58, 1), si = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
4679
+ const Js = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ir = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Qs = /* @__PURE__ */ Et(0.33, 1.53, 0.69, 0.99), or = /* @__PURE__ */ ir(Qs), ei = /* @__PURE__ */ Js(or), ti = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? 0.5 * or(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), ar = (e) => 1 - Math.sin(Math.acos(e)), ql = /* @__PURE__ */ ir(ar), ni = /* @__PURE__ */ Js(ar), Zl = /* @__PURE__ */ Et(0.42, 0, 1, 1), Jl = /* @__PURE__ */ Et(0, 0, 0.58, 1), ri = /* @__PURE__ */ Et(0.42, 0, 0.58, 1), si = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
4673
4680
  // @__NO_SIDE_EFFECTS__
4674
4681
  function ii(e, t) {
4675
- return /* @__PURE__ */ si(e) ? e[Wl(0, e.length, t)] : e;
4682
+ return /* @__PURE__ */ si(e) ? e[Ul(0, e.length, t)] : e;
4676
4683
  }
4677
- const oi = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Jl = {
4684
+ const oi = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Ql = {
4678
4685
  linear: tt,
4679
- easeIn: ql,
4686
+ easeIn: Zl,
4680
4687
  easeInOut: ri,
4681
- easeOut: Zl,
4688
+ easeOut: Jl,
4682
4689
  circIn: ar,
4683
4690
  circInOut: ni,
4684
- circOut: Hl,
4691
+ circOut: ql,
4685
4692
  backIn: or,
4686
4693
  backInOut: ei,
4687
4694
  backOut: Qs,
4688
4695
  anticipate: ti
4689
- }, Ql = (e) => typeof e == "string", Or = (e) => {
4696
+ }, ec = (e) => typeof e == "string", Or = (e) => {
4690
4697
  if (/* @__PURE__ */ oi(e)) {
4691
4698
  nr(e.length === 4);
4692
4699
  const [t, n, r, s] = e;
4693
- return /* @__PURE__ */ $t(t, n, r, s);
4694
- } else if (Ql(e))
4695
- return Jl[e];
4700
+ return /* @__PURE__ */ Et(t, n, r, s);
4701
+ } else if (ec(e))
4702
+ return Ql[e];
4696
4703
  return e;
4697
4704
  }, Nt = [
4698
4705
  "setup",
@@ -4712,7 +4719,7 @@ const oi = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] ==
4712
4719
  "postRender"
4713
4720
  // Compute
4714
4721
  ];
4715
- function ec(e) {
4722
+ function tc(e) {
4716
4723
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, s = !1;
4717
4724
  const i = /* @__PURE__ */ new WeakSet();
4718
4725
  let o = {
@@ -4752,22 +4759,22 @@ function ec(e) {
4752
4759
  };
4753
4760
  return l;
4754
4761
  }
4755
- const tc = 40;
4762
+ const nc = 40;
4756
4763
  function ai(e, t) {
4757
4764
  let n = !1, r = !0;
4758
4765
  const s = {
4759
4766
  delta: 0,
4760
4767
  timestamp: 0,
4761
4768
  isProcessing: !1
4762
- }, i = () => n = !0, o = Nt.reduce((C, T) => (C[T] = ec(i), C), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: d, preRender: f, render: m, postRender: y } = o, h = () => {
4763
- const C = $e.useManualTiming, T = C ? s.timestamp : performance.now();
4764
- n = !1, C || (s.delta = r ? 1e3 / 60 : Math.max(Math.min(T - s.timestamp, tc), 1)), s.timestamp = T, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), d.process(s), f.process(s), m.process(s), y.process(s), s.isProcessing = !1, n && t && (r = !1, e(h));
4769
+ }, i = () => n = !0, o = Nt.reduce((C, T) => (C[T] = tc(i), C), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: d, preRender: f, render: m, postRender: y } = o, h = () => {
4770
+ const C = Ee.useManualTiming, T = C ? s.timestamp : performance.now();
4771
+ n = !1, C || (s.delta = r ? 1e3 / 60 : Math.max(Math.min(T - s.timestamp, nc), 1)), s.timestamp = T, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), d.process(s), f.process(s), m.process(s), y.process(s), s.isProcessing = !1, n && t && (r = !1, e(h));
4765
4772
  }, p = () => {
4766
4773
  n = !0, r = !0, s.isProcessing || e(h);
4767
4774
  };
4768
4775
  return { schedule: Nt.reduce((C, T) => {
4769
4776
  const A = o[T];
4770
- return C[T] = ($, E = !1, g = !1) => (n || p(), A.schedule($, E, g)), C;
4777
+ return C[T] = (E, $ = !1, g = !1) => (n || p(), A.schedule(E, $, g)), C;
4771
4778
  }, {}), cancel: (C) => {
4772
4779
  for (let T = 0; T < Nt.length; T++)
4773
4780
  o[Nt[T]].cancel(C);
@@ -4775,15 +4782,15 @@ function ai(e, t) {
4775
4782
  }
4776
4783
  const { schedule: ve, cancel: An, state: Jt } = /* @__PURE__ */ ai(typeof requestAnimationFrame < "u" ? requestAnimationFrame : tt, !0);
4777
4784
  let Kt;
4778
- function nc() {
4785
+ function rc() {
4779
4786
  Kt = void 0;
4780
4787
  }
4781
4788
  const de = {
4782
- now: () => (Kt === void 0 && de.set(Jt.isProcessing || $e.useManualTiming ? Jt.timestamp : performance.now()), Kt),
4789
+ now: () => (Kt === void 0 && de.set(Jt.isProcessing || Ee.useManualTiming ? Jt.timestamp : performance.now()), Kt),
4783
4790
  set: (e) => {
4784
- Kt = e, queueMicrotask(nc);
4791
+ Kt = e, queueMicrotask(rc);
4785
4792
  }
4786
- }, li = (e) => (t) => typeof t == "string" && t.startsWith(e), ci = /* @__PURE__ */ li("--"), rc = /* @__PURE__ */ li("var(--"), lr = (e) => rc(e) ? sc.test(e.split("/*")[0].trim()) : !1, sc = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
4793
+ }, li = (e) => (t) => typeof t == "string" && t.startsWith(e), ci = /* @__PURE__ */ li("--"), sc = /* @__PURE__ */ li("var(--"), lr = (e) => sc(e) ? ic.test(e.split("/*")[0].trim()) : !1, ic = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
4787
4794
  function Lr(e) {
4788
4795
  return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
4789
4796
  }
@@ -4793,15 +4800,15 @@ const nt = {
4793
4800
  transform: (e) => e
4794
4801
  }, kt = {
4795
4802
  ...nt,
4796
- transform: (e) => Ee(0, 1, e)
4803
+ transform: (e) => $e(0, 1, e)
4797
4804
  }, zt = {
4798
4805
  ...nt,
4799
4806
  default: 1
4800
4807
  }, yt = (e) => Math.round(e * 1e5) / 1e5, cr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
4801
- function ic(e) {
4808
+ function oc(e) {
4802
4809
  return e == null;
4803
4810
  }
4804
- const oc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, ur = (e, t) => (n) => !!(typeof n == "string" && oc.test(n) && n.startsWith(e) || t && !ic(n) && Object.prototype.hasOwnProperty.call(n, t)), ui = (e, t, n) => (r) => {
4811
+ const ac = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, ur = (e, t) => (n) => !!(typeof n == "string" && ac.test(n) && n.startsWith(e) || t && !oc(n) && Object.prototype.hasOwnProperty.call(n, t)), ui = (e, t, n) => (r) => {
4805
4812
  if (typeof r != "string")
4806
4813
  return r;
4807
4814
  const [s, i, o, a] = r.match(cr);
@@ -4811,15 +4818,15 @@ const oc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
4811
4818
  [n]: parseFloat(o),
4812
4819
  alpha: a !== void 0 ? parseFloat(a) : 1
4813
4820
  };
4814
- }, ac = (e) => Ee(0, 255, e), hn = {
4821
+ }, lc = (e) => $e(0, 255, e), hn = {
4815
4822
  ...nt,
4816
- transform: (e) => Math.round(ac(e))
4823
+ transform: (e) => Math.round(lc(e))
4817
4824
  }, Fe = {
4818
4825
  test: /* @__PURE__ */ ur("rgb", "red"),
4819
4826
  parse: /* @__PURE__ */ ui("red", "green", "blue"),
4820
4827
  transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + hn.transform(e) + ", " + hn.transform(t) + ", " + hn.transform(n) + ", " + yt(kt.transform(r)) + ")"
4821
4828
  };
4822
- function lc(e) {
4829
+ function cc(e) {
4823
4830
  let t = "", n = "", r = "", s = "";
4824
4831
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), s = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), s = e.substring(4, 5), t += t, n += n, r += r, s += s), {
4825
4832
  red: parseInt(t, 16),
@@ -4830,13 +4837,13 @@ function lc(e) {
4830
4837
  }
4831
4838
  const Cn = {
4832
4839
  test: /* @__PURE__ */ ur("#"),
4833
- parse: lc,
4840
+ parse: cc,
4834
4841
  transform: Fe.transform
4835
4842
  }, It = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
4836
4843
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
4837
4844
  parse: parseFloat,
4838
4845
  transform: (t) => `${t}${e}`
4839
- }), Se = /* @__PURE__ */ It("deg"), Ze = /* @__PURE__ */ It("%"), S = /* @__PURE__ */ It("px"), cc = /* @__PURE__ */ It("vh"), uc = /* @__PURE__ */ It("vw"), Dr = {
4846
+ }), Se = /* @__PURE__ */ It("deg"), Ze = /* @__PURE__ */ It("%"), S = /* @__PURE__ */ It("px"), uc = /* @__PURE__ */ It("vh"), dc = /* @__PURE__ */ It("vw"), Dr = {
4840
4847
  ...Ze,
4841
4848
  parse: (e) => Ze.parse(e) / 100,
4842
4849
  transform: (e) => Ze.transform(e * 100)
@@ -4852,12 +4859,12 @@ const Cn = {
4852
4859
  const t = Y.parse(e);
4853
4860
  return t.alpha = 0, Y.transform(t);
4854
4861
  }
4855
- }, dc = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
4856
- function fc(e) {
4862
+ }, fc = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
4863
+ function hc(e) {
4857
4864
  var t, n;
4858
- return isNaN(e) && typeof e == "string" && (((t = e.match(cr)) == null ? void 0 : t.length) || 0) + (((n = e.match(dc)) == null ? void 0 : n.length) || 0) > 0;
4865
+ return isNaN(e) && typeof e == "string" && (((t = e.match(cr)) == null ? void 0 : t.length) || 0) + (((n = e.match(fc)) == null ? void 0 : n.length) || 0) > 0;
4859
4866
  }
4860
- const di = "number", fi = "color", hc = "var", mc = "var(", Fr = "${}", gc = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
4867
+ const di = "number", fi = "color", mc = "var", gc = "var(", Fr = "${}", pc = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
4861
4868
  function Je(e) {
4862
4869
  const t = e.toString(), n = [], r = {
4863
4870
  color: [],
@@ -4865,10 +4872,10 @@ function Je(e) {
4865
4872
  var: []
4866
4873
  }, s = [];
4867
4874
  let i = 0;
4868
- const a = t.replace(gc, (l) => (Y.test(l) ? (r.color.push(i), s.push(fi), n.push(Y.parse(l))) : l.startsWith(mc) ? (r.var.push(i), s.push(hc), n.push(l)) : (r.number.push(i), s.push(di), n.push(parseFloat(l))), ++i, Fr)).split(Fr);
4875
+ const a = t.replace(pc, (l) => (Y.test(l) ? (r.color.push(i), s.push(fi), n.push(Y.parse(l))) : l.startsWith(gc) ? (r.var.push(i), s.push(mc), n.push(l)) : (r.number.push(i), s.push(di), n.push(parseFloat(l))), ++i, Fr)).split(Fr);
4869
4876
  return { values: n, split: a, indexes: r, types: s };
4870
4877
  }
4871
- function pc(e) {
4878
+ function bc(e) {
4872
4879
  return Je(e).values;
4873
4880
  }
4874
4881
  function hi({ split: e, types: t }) {
@@ -4883,24 +4890,24 @@ function hi({ split: e, types: t }) {
4883
4890
  return s;
4884
4891
  };
4885
4892
  }
4886
- function bc(e) {
4893
+ function yc(e) {
4887
4894
  return hi(Je(e));
4888
4895
  }
4889
- const yc = (e) => typeof e == "number" ? 0 : Y.test(e) ? Y.getAnimatableNone(e) : e, vc = (e, t) => typeof e == "number" ? t != null && t.trim().endsWith("/") ? e : 0 : yc(e);
4890
- function wc(e) {
4896
+ const vc = (e) => typeof e == "number" ? 0 : Y.test(e) ? Y.getAnimatableNone(e) : e, wc = (e, t) => typeof e == "number" ? t != null && t.trim().endsWith("/") ? e : 0 : vc(e);
4897
+ function xc(e) {
4891
4898
  const t = Je(e);
4892
- return hi(t)(t.values.map((r, s) => vc(r, t.split[s])));
4899
+ return hi(t)(t.values.map((r, s) => wc(r, t.split[s])));
4893
4900
  }
4894
- const me = {
4895
- test: fc,
4896
- parse: pc,
4897
- createTransformer: bc,
4898
- getAnimatableNone: wc
4901
+ const ge = {
4902
+ test: hc,
4903
+ parse: bc,
4904
+ createTransformer: yc,
4905
+ getAnimatableNone: xc
4899
4906
  };
4900
4907
  function mn(e, t, n) {
4901
4908
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
4902
4909
  }
4903
- function xc({ hue: e, saturation: t, lightness: n, alpha: r }) {
4910
+ function kc({ hue: e, saturation: t, lightness: n, alpha: r }) {
4904
4911
  e /= 360, t /= 100, n /= 100;
4905
4912
  let s = 0, i = 0, o = 0;
4906
4913
  if (!t)
@@ -4922,13 +4929,13 @@ function Qt(e, t) {
4922
4929
  const rt = (e, t, n) => e + (t - e) * n, gn = (e, t, n) => {
4923
4930
  const r = e * e, s = n * (t * t - r) + r;
4924
4931
  return s < 0 ? 0 : Math.sqrt(s);
4925
- }, kc = [Cn, Fe, Xe], Sc = (e) => kc.find((t) => t.test(e));
4932
+ }, Sc = [Cn, Fe, Xe], Tc = (e) => Sc.find((t) => t.test(e));
4926
4933
  function _r(e) {
4927
- const t = Sc(e);
4934
+ const t = Tc(e);
4928
4935
  if (!t)
4929
4936
  return !1;
4930
4937
  let n = t.parse(e);
4931
- return t === Xe && (n = xc(n)), n;
4938
+ return t === Xe && (n = kc(n)), n;
4932
4939
  }
4933
4940
  const Nr = (e, t) => {
4934
4941
  const n = _r(e), r = _r(t);
@@ -4937,14 +4944,14 @@ const Nr = (e, t) => {
4937
4944
  const s = { ...n };
4938
4945
  return (i) => (s.red = gn(n.red, r.red, i), s.green = gn(n.green, r.green, i), s.blue = gn(n.blue, r.blue, i), s.alpha = rt(n.alpha, r.alpha, i), Fe.transform(s));
4939
4946
  }, Mn = /* @__PURE__ */ new Set(["none", "hidden"]);
4940
- function Tc(e, t) {
4947
+ function Ac(e, t) {
4941
4948
  return Mn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
4942
4949
  }
4943
- function Ac(e, t) {
4950
+ function Cc(e, t) {
4944
4951
  return (n) => rt(e, t, n);
4945
4952
  }
4946
4953
  function dr(e) {
4947
- return typeof e == "number" ? Ac : typeof e == "string" ? lr(e) ? Qt : Y.test(e) ? Nr : Vc : Array.isArray(e) ? mi : typeof e == "object" ? Y.test(e) ? Nr : Cc : Qt;
4954
+ return typeof e == "number" ? Cc : typeof e == "string" ? lr(e) ? Qt : Y.test(e) ? Nr : Pc : Array.isArray(e) ? mi : typeof e == "object" ? Y.test(e) ? Nr : Mc : Qt;
4948
4955
  }
4949
4956
  function mi(e, t) {
4950
4957
  const n = [...e], r = n.length, s = e.map((i, o) => dr(i)(i, t[o]));
@@ -4954,7 +4961,7 @@ function mi(e, t) {
4954
4961
  return n;
4955
4962
  };
4956
4963
  }
4957
- function Cc(e, t) {
4964
+ function Mc(e, t) {
4958
4965
  const n = { ...e, ...t }, r = {};
4959
4966
  for (const s in n)
4960
4967
  e[s] !== void 0 && t[s] !== void 0 && (r[s] = dr(e[s])(e[s], t[s]));
@@ -4964,7 +4971,7 @@ function Cc(e, t) {
4964
4971
  return n;
4965
4972
  };
4966
4973
  }
4967
- function Mc(e, t) {
4974
+ function Vc(e, t) {
4968
4975
  const n = [], r = { color: 0, var: 0, number: 0 };
4969
4976
  for (let s = 0; s < t.values.length; s++) {
4970
4977
  const i = t.types[s], o = e.indexes[i][r[i]], a = e.values[o] ?? 0;
@@ -4972,14 +4979,14 @@ function Mc(e, t) {
4972
4979
  }
4973
4980
  return n;
4974
4981
  }
4975
- const Vc = (e, t) => {
4976
- const n = me.createTransformer(t), r = Je(e), s = Je(t);
4977
- return r.indexes.var.length === s.indexes.var.length && r.indexes.color.length === s.indexes.color.length && r.indexes.number.length >= s.indexes.number.length ? Mn.has(e) && !s.values.length || Mn.has(t) && !r.values.length ? Tc(e, t) : rr(mi(Mc(r, s), s.values), n) : Qt(e, t);
4982
+ const Pc = (e, t) => {
4983
+ const n = ge.createTransformer(t), r = Je(e), s = Je(t);
4984
+ return r.indexes.var.length === s.indexes.var.length && r.indexes.color.length === s.indexes.color.length && r.indexes.number.length >= s.indexes.number.length ? Mn.has(e) && !s.values.length || Mn.has(t) && !r.values.length ? Ac(e, t) : rr(mi(Vc(r, s), s.values), n) : Qt(e, t);
4978
4985
  };
4979
4986
  function gi(e, t, n) {
4980
4987
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? rt(e, t, n) : dr(e)(e, t);
4981
4988
  }
4982
- const Pc = (e) => {
4989
+ const $c = (e) => {
4983
4990
  const t = ({ timestamp: n }) => e(n);
4984
4991
  return {
4985
4992
  start: (n = !0) => ve.update(t, n),
@@ -5010,7 +5017,7 @@ function bi(e, t = 100, n) {
5010
5017
  return {
5011
5018
  type: "keyframes",
5012
5019
  ease: (i) => r.next(s * i).value / t,
5013
- duration: /* @__PURE__ */ he(s)
5020
+ duration: /* @__PURE__ */ me(s)
5014
5021
  };
5015
5022
  }
5016
5023
  const j = {
@@ -5046,16 +5053,16 @@ function Vn(e, t) {
5046
5053
  return e * Math.sqrt(1 - t * t);
5047
5054
  }
5048
5055
  const Ec = 12;
5049
- function $c(e, t, n) {
5056
+ function Ic(e, t, n) {
5050
5057
  let r = n;
5051
5058
  for (let s = 1; s < Ec; s++)
5052
5059
  r = r - e(r) / t(r);
5053
5060
  return r;
5054
5061
  }
5055
5062
  const pn = 1e-3;
5056
- function Ic({ duration: e = j.duration, bounce: t = j.bounce, velocity: n = j.velocity, mass: r = j.mass }) {
5063
+ function Rc({ duration: e = j.duration, bounce: t = j.bounce, velocity: n = j.velocity, mass: r = j.mass }) {
5057
5064
  let s, i, o = 1 - t;
5058
- o = Ee(j.minDamping, j.maxDamping, o), e = Ee(j.minDuration, j.maxDuration, /* @__PURE__ */ he(e)), o < 1 ? (s = (c) => {
5065
+ o = $e(j.minDamping, j.maxDamping, o), e = $e(j.minDuration, j.maxDuration, /* @__PURE__ */ me(e)), o < 1 ? (s = (c) => {
5059
5066
  const u = c * o, d = u * e, f = u - n, m = Vn(c, o), y = Math.exp(-d);
5060
5067
  return pn - f / m * y;
5061
5068
  }, i = (c) => {
@@ -5068,7 +5075,7 @@ function Ic({ duration: e = j.duration, bounce: t = j.bounce, velocity: n = j.ve
5068
5075
  const u = Math.exp(-c * e), d = (n - c) * (e * e);
5069
5076
  return u * d;
5070
5077
  });
5071
- const a = 5 / e, l = $c(s, i, a);
5078
+ const a = 5 / e, l = Ic(s, i, a);
5072
5079
  if (e = /* @__PURE__ */ fe(e), isNaN(l))
5073
5080
  return {
5074
5081
  stiffness: j.stiffness,
@@ -5084,11 +5091,11 @@ function Ic({ duration: e = j.duration, bounce: t = j.bounce, velocity: n = j.ve
5084
5091
  };
5085
5092
  }
5086
5093
  }
5087
- const Rc = ["duration", "bounce"], Oc = ["stiffness", "damping", "mass"];
5094
+ const Oc = ["duration", "bounce"], Lc = ["stiffness", "damping", "mass"];
5088
5095
  function zr(e, t) {
5089
5096
  return t.some((n) => e[n] !== void 0);
5090
5097
  }
5091
- function Lc(e) {
5098
+ function Dc(e) {
5092
5099
  let t = {
5093
5100
  velocity: j.velocity,
5094
5101
  stiffness: j.stiffness,
@@ -5097,9 +5104,9 @@ function Lc(e) {
5097
5104
  isResolvedFromDuration: !1,
5098
5105
  ...e
5099
5106
  };
5100
- if (!zr(e, Oc) && zr(e, Rc))
5107
+ if (!zr(e, Lc) && zr(e, Oc))
5101
5108
  if (t.velocity = 0, e.visualDuration) {
5102
- const n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), s = r * r, i = 2 * Ee(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(s);
5109
+ const n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), s = r * r, i = 2 * $e(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(s);
5103
5110
  t = {
5104
5111
  ...t,
5105
5112
  mass: j.mass,
@@ -5107,7 +5114,7 @@ function Lc(e) {
5107
5114
  damping: i
5108
5115
  };
5109
5116
  } else {
5110
- const n = Ic({ ...e, velocity: 0 });
5117
+ const n = Rc({ ...e, velocity: 0 });
5111
5118
  t = {
5112
5119
  ...t,
5113
5120
  ...n,
@@ -5123,17 +5130,17 @@ function St(e = j.visualDuration, t = j.bounce) {
5123
5130
  bounce: t
5124
5131
  } : e;
5125
5132
  let { restSpeed: r, restDelta: s } = n;
5126
- const i = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: i }, { stiffness: l, damping: c, mass: u, duration: d, velocity: f, isResolvedFromDuration: m } = Lc({
5133
+ const i = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: i }, { stiffness: l, damping: c, mass: u, duration: d, velocity: f, isResolvedFromDuration: m } = Dc({
5127
5134
  ...n,
5128
- velocity: -/* @__PURE__ */ he(n.velocity || 0)
5129
- }), y = f || 0, h = c / (2 * Math.sqrt(l * u)), p = o - i, v = /* @__PURE__ */ he(Math.sqrt(l / u)), k = Math.abs(p) < 5;
5135
+ velocity: -/* @__PURE__ */ me(n.velocity || 0)
5136
+ }), y = f || 0, h = c / (2 * Math.sqrt(l * u)), p = o - i, v = /* @__PURE__ */ me(Math.sqrt(l / u)), k = Math.abs(p) < 5;
5130
5137
  r || (r = k ? j.restSpeed.granular : j.restSpeed.default), s || (s = k ? j.restDelta.granular : j.restDelta.default);
5131
- let C, T, A, $, E, g;
5138
+ let C, T, A, E, $, g;
5132
5139
  if (h < 1)
5133
- A = Vn(v, h), $ = (y + h * v * p) / A, C = (M) => {
5140
+ A = Vn(v, h), E = (y + h * v * p) / A, C = (M) => {
5134
5141
  const O = Math.exp(-h * v * M);
5135
- return o - O * ($ * Math.sin(A * M) + p * Math.cos(A * M));
5136
- }, E = h * v * $ + p * A, g = h * v * p - $ * A, T = (M) => Math.exp(-h * v * M) * (E * Math.sin(A * M) + g * Math.cos(A * M));
5142
+ return o - O * (E * Math.sin(A * M) + p * Math.cos(A * M));
5143
+ }, $ = h * v * E + p * A, g = h * v * p - E * A, T = (M) => Math.exp(-h * v * M) * ($ * Math.sin(A * M) + g * Math.cos(A * M));
5137
5144
  else if (h === 1) {
5138
5145
  C = (O) => o - Math.exp(-v * O) * (p + (y + v * p) * O);
5139
5146
  const M = y + v * p;
@@ -5155,7 +5162,7 @@ function St(e = j.visualDuration, t = j.bounce) {
5155
5162
  velocity: (M) => /* @__PURE__ */ fe(T(M)),
5156
5163
  next: (M) => {
5157
5164
  if (!m && h < 1) {
5158
- const N = Math.exp(-h * v * M), J = Math.sin(A * M), Q = Math.cos(A * M), ee = o - N * ($ * J + p * Q), K = /* @__PURE__ */ fe(N * (E * J + g * Q));
5165
+ const N = Math.exp(-h * v * M), J = Math.sin(A * M), Q = Math.cos(A * M), ee = o - N * (E * J + p * Q), K = /* @__PURE__ */ fe(N * ($ * J + g * Q));
5159
5166
  return a.done = Math.abs(K) <= r && Math.abs(o - ee) <= s, a.value = a.done ? o : ee, a;
5160
5167
  }
5161
5168
  const O = C(M);
@@ -5180,9 +5187,9 @@ St.applyToOptions = (e) => {
5180
5187
  const t = bi(e, 100, St);
5181
5188
  return e.ease = t.ease, e.duration = /* @__PURE__ */ fe(t.duration), e.type = "keyframes", e;
5182
5189
  };
5183
- const Dc = 5;
5190
+ const Fc = 5;
5184
5191
  function yi(e, t, n) {
5185
- const r = Math.max(t - Dc, 0);
5192
+ const r = Math.max(t - Fc, 0);
5186
5193
  return /* @__PURE__ */ qs(n - e(r), t - r);
5187
5194
  }
5188
5195
  function Pn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: s = 10, bounceStiffness: i = 500, modifyTarget: o, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
@@ -5197,9 +5204,9 @@ function Pn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
5197
5204
  const V = k(g), M = C(g);
5198
5205
  f.done = Math.abs(V) <= c, f.value = f.done ? v : M;
5199
5206
  };
5200
- let A, $;
5201
- const E = (g) => {
5202
- m(f.value) && (A = g, $ = St({
5207
+ let A, E;
5208
+ const $ = (g) => {
5209
+ m(f.value) && (A = g, E = St({
5203
5210
  keyframes: [f.value, y(f.value)],
5204
5211
  velocity: yi(C, g, f.value),
5205
5212
  // TODO: This should be passing * 1000
@@ -5209,16 +5216,16 @@ function Pn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
5209
5216
  restSpeed: u
5210
5217
  }));
5211
5218
  };
5212
- return E(0), {
5219
+ return $(0), {
5213
5220
  calculatedDuration: null,
5214
5221
  next: (g) => {
5215
5222
  let V = !1;
5216
- return !$ && A === void 0 && (V = !0, T(g), E(g)), A !== void 0 && g >= A ? $.next(g - A) : (!V && T(g), f);
5223
+ return !E && A === void 0 && (V = !0, T(g), $(g)), A !== void 0 && g >= A ? E.next(g - A) : (!V && T(g), f);
5217
5224
  }
5218
5225
  };
5219
5226
  }
5220
- function Fc(e, t, n) {
5221
- const r = [], s = n || $e.mix || gi, i = e.length - 1;
5227
+ function _c(e, t, n) {
5228
+ const r = [], s = n || Ee.mix || gi, i = e.length - 1;
5222
5229
  for (let o = 0; o < i; o++) {
5223
5230
  let a = s(e[o], e[o + 1]);
5224
5231
  if (t) {
@@ -5229,7 +5236,7 @@ function Fc(e, t, n) {
5229
5236
  }
5230
5237
  return r;
5231
5238
  }
5232
- function _c(e, t, { clamp: n = !0, ease: r, mixer: s } = {}) {
5239
+ function Nc(e, t, { clamp: n = !0, ease: r, mixer: s } = {}) {
5233
5240
  const i = e.length;
5234
5241
  if (nr(i === t.length), i === 1)
5235
5242
  return () => t[0];
@@ -5237,7 +5244,7 @@ function _c(e, t, { clamp: n = !0, ease: r, mixer: s } = {}) {
5237
5244
  return () => t[1];
5238
5245
  const o = e[0] === e[1];
5239
5246
  e[0] > e[i - 1] && (e = [...e].reverse(), t = [...t].reverse());
5240
- const a = Fc(t, r, s), l = a.length, c = (u) => {
5247
+ const a = _c(t, r, s), l = a.length, c = (u) => {
5241
5248
  if (o && u < e[0])
5242
5249
  return t[0];
5243
5250
  let d = 0;
@@ -5247,7 +5254,7 @@ function _c(e, t, { clamp: n = !0, ease: r, mixer: s } = {}) {
5247
5254
  const f = /* @__PURE__ */ sr(e[d], e[d + 1], u);
5248
5255
  return a[d](f);
5249
5256
  };
5250
- return n ? (u) => c(Ee(e[0], e[i - 1], u)) : c;
5257
+ return n ? (u) => c($e(e[0], e[i - 1], u)) : c;
5251
5258
  }
5252
5259
  function vi(e, t) {
5253
5260
  const n = e[e.length - 1];
@@ -5260,35 +5267,35 @@ function wi(e) {
5260
5267
  const t = [0];
5261
5268
  return vi(t, e.length - 1), t;
5262
5269
  }
5263
- function Nc(e, t) {
5270
+ function zc(e, t) {
5264
5271
  return e.map((n) => n * t);
5265
5272
  }
5266
- function zc(e, t) {
5273
+ function Bc(e, t) {
5267
5274
  return e.map(() => t || ri).splice(0, e.length - 1);
5268
5275
  }
5269
5276
  function vt({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
5270
5277
  const s = /* @__PURE__ */ si(r) ? r.map(Or) : Or(r), i = {
5271
5278
  done: !1,
5272
5279
  value: t[0]
5273
- }, o = Nc(
5280
+ }, o = zc(
5274
5281
  // Only use the provided offsets if they're the correct length
5275
5282
  // TODO Maybe we should warn here if there's a length mismatch
5276
5283
  n && n.length === t.length ? n : wi(t),
5277
5284
  e
5278
- ), a = _c(o, t, {
5279
- ease: Array.isArray(s) ? s : zc(t, s)
5285
+ ), a = Nc(o, t, {
5286
+ ease: Array.isArray(s) ? s : Bc(t, s)
5280
5287
  });
5281
5288
  return {
5282
5289
  calculatedDuration: e,
5283
5290
  next: (l) => (i.value = a(l), i.done = l >= e, i)
5284
5291
  };
5285
5292
  }
5286
- const Bc = (e) => e !== null;
5293
+ const jc = (e) => e !== null;
5287
5294
  function ln(e, { repeat: t, repeatType: n = "loop" }, r, s = 1) {
5288
- const i = e.filter(Bc), a = s < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
5295
+ const i = e.filter(jc), a = s < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
5289
5296
  return !a || r === void 0 ? i[a] : r;
5290
5297
  }
5291
- const jc = {
5298
+ const Kc = {
5292
5299
  decay: Pn,
5293
5300
  inertia: Pn,
5294
5301
  tween: vt,
@@ -5296,7 +5303,7 @@ const jc = {
5296
5303
  spring: St
5297
5304
  };
5298
5305
  function xi(e) {
5299
- typeof e.type == "string" && (e.type = jc[e.type]);
5306
+ typeof e.type == "string" && (e.type = Kc[e.type]);
5300
5307
  }
5301
5308
  class hr {
5302
5309
  constructor() {
@@ -5322,7 +5329,7 @@ class hr {
5322
5329
  return this.finished.then(t, n);
5323
5330
  }
5324
5331
  }
5325
- const Kc = (e) => e / 100;
5332
+ const Gc = (e) => e / 100;
5326
5333
  class tn extends hr {
5327
5334
  constructor(t) {
5328
5335
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
@@ -5340,7 +5347,7 @@ class tn extends hr {
5340
5347
  const { type: n = vt, repeat: r = 0, repeatDelay: s = 0, repeatType: i, velocity: o = 0 } = t;
5341
5348
  let { keyframes: a } = t;
5342
5349
  const l = n || vt;
5343
- l !== vt && typeof a[0] != "number" && (this.mixKeyframes = rr(Kc, gi(a[0], a[1])), a = [0, 100]);
5350
+ l !== vt && typeof a[0] != "number" && (this.mixKeyframes = rr(Gc, gi(a[0], a[1])), a = [0, 100]);
5344
5351
  const c = l({ ...t, keyframes: a });
5345
5352
  i === "mirror" && (this.mirroredGenerator = l({
5346
5353
  ...t,
@@ -5366,14 +5373,14 @@ class tn extends hr {
5366
5373
  if (d) {
5367
5374
  const g = Math.min(this.currentTime, s) / a;
5368
5375
  let V = Math.floor(g), M = g % 1;
5369
- !M && g >= 1 && (M = 1), M === 1 && V--, V = Math.min(V, d + 1), !!(V % 2) && (f === "reverse" ? (M = 1 - M, m && (M -= m / a)) : f === "mirror" && (T = o)), C = Ee(0, 1, M) * a;
5376
+ !M && g >= 1 && (M = 1), M === 1 && V--, V = Math.min(V, d + 1), !!(V % 2) && (f === "reverse" ? (M = 1 - M, m && (M -= m / a)) : f === "mirror" && (T = o)), C = $e(0, 1, M) * a;
5370
5377
  }
5371
5378
  let A;
5372
5379
  k ? (this.delayState.value = u[0], A = this.delayState) : A = T.next(C), i && !k && (A.value = i(A.value));
5373
- let { done: $ } = A;
5374
- !k && l !== null && ($ = this.playbackSpeed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
5375
- const E = this.holdTime === null && (this.state === "finished" || this.state === "running" && $);
5376
- return E && y !== Pn && (A.value = ln(u, this.options, p, this.speed)), h && h(A.value), E && this.finish(), A;
5380
+ let { done: E } = A;
5381
+ !k && l !== null && (E = this.playbackSpeed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
5382
+ const $ = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
5383
+ return $ && y !== Pn && (A.value = ln(u, this.options, p, this.speed)), h && h(A.value), $ && this.finish(), A;
5377
5384
  }
5378
5385
  /**
5379
5386
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -5384,14 +5391,14 @@ class tn extends hr {
5384
5391
  return this.finished.then(t, n);
5385
5392
  }
5386
5393
  get duration() {
5387
- return /* @__PURE__ */ he(this.calculatedDuration);
5394
+ return /* @__PURE__ */ me(this.calculatedDuration);
5388
5395
  }
5389
5396
  get iterationDuration() {
5390
5397
  const { delay: t = 0 } = this.options || {};
5391
- return this.duration + /* @__PURE__ */ he(t);
5398
+ return this.duration + /* @__PURE__ */ me(t);
5392
5399
  }
5393
5400
  get time() {
5394
- return /* @__PURE__ */ he(this.currentTime);
5401
+ return /* @__PURE__ */ me(this.currentTime);
5395
5402
  }
5396
5403
  set time(t) {
5397
5404
  t = /* @__PURE__ */ fe(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));
@@ -5415,13 +5422,13 @@ class tn extends hr {
5415
5422
  }
5416
5423
  set speed(t) {
5417
5424
  const n = this.playbackSpeed !== t;
5418
- n && this.driver && this.updateTime(de.now()), this.playbackSpeed = t, n && this.driver && (this.time = /* @__PURE__ */ he(this.currentTime));
5425
+ n && this.driver && this.updateTime(de.now()), this.playbackSpeed = t, n && this.driver && (this.time = /* @__PURE__ */ me(this.currentTime));
5419
5426
  }
5420
5427
  play() {
5421
5428
  var s, i;
5422
5429
  if (this.isStopped)
5423
5430
  return;
5424
- const { driver: t = Pc, startTime: n } = this.options;
5431
+ const { driver: t = $c, startTime: n } = this.options;
5425
5432
  this.driver || (this.driver = t((o) => this.tick(o))), (i = (s = this.options).onPlay) == null || i.call(s);
5426
5433
  const r = this.driver.now();
5427
5434
  this.state === "finished" ? (this.updateFinished(), this.startTime = r) : this.holdTime !== null ? this.startTime = r - this.holdTime : this.startTime || (this.startTime = n ?? r), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -5454,14 +5461,14 @@ class tn extends hr {
5454
5461
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), (n = this.driver) == null || n.stop(), t.observe(this);
5455
5462
  }
5456
5463
  }
5457
- function Gc(e) {
5464
+ function Wc(e) {
5458
5465
  for (let t = 1; t < e.length; t++)
5459
5466
  e[t] ?? (e[t] = e[t - 1]);
5460
5467
  }
5461
- const _e = (e) => e * 180 / Math.PI, En = (e) => {
5468
+ const _e = (e) => e * 180 / Math.PI, $n = (e) => {
5462
5469
  const t = _e(Math.atan2(e[1], e[0]));
5463
- return $n(t);
5464
- }, Wc = {
5470
+ return En(t);
5471
+ }, Uc = {
5465
5472
  x: 4,
5466
5473
  y: 5,
5467
5474
  translateX: 4,
@@ -5469,12 +5476,12 @@ const _e = (e) => e * 180 / Math.PI, En = (e) => {
5469
5476
  scaleX: 0,
5470
5477
  scaleY: 3,
5471
5478
  scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
5472
- rotate: En,
5473
- rotateZ: En,
5479
+ rotate: $n,
5480
+ rotateZ: $n,
5474
5481
  skewX: (e) => _e(Math.atan(e[1])),
5475
5482
  skewY: (e) => _e(Math.atan(e[2])),
5476
5483
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
5477
- }, $n = (e) => (e = e % 360, e < 0 && (e += 360), e), Br = En, jr = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Kr = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Uc = {
5484
+ }, En = (e) => (e = e % 360, e < 0 && (e += 360), e), Br = $n, jr = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Kr = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Yc = {
5478
5485
  x: 12,
5479
5486
  y: 13,
5480
5487
  z: 14,
@@ -5484,8 +5491,8 @@ const _e = (e) => e * 180 / Math.PI, En = (e) => {
5484
5491
  scaleX: jr,
5485
5492
  scaleY: Kr,
5486
5493
  scale: (e) => (jr(e) + Kr(e)) / 2,
5487
- rotateX: (e) => $n(_e(Math.atan2(e[6], e[5]))),
5488
- rotateY: (e) => $n(_e(Math.atan2(-e[2], e[0]))),
5494
+ rotateX: (e) => En(_e(Math.atan2(e[6], e[5]))),
5495
+ rotateY: (e) => En(_e(Math.atan2(-e[2], e[0]))),
5489
5496
  rotateZ: Br,
5490
5497
  rotate: Br,
5491
5498
  skewX: (e) => _e(Math.atan(e[4])),
@@ -5501,21 +5508,21 @@ function Rn(e, t) {
5501
5508
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
5502
5509
  let r, s;
5503
5510
  if (n)
5504
- r = Uc, s = n;
5511
+ r = Yc, s = n;
5505
5512
  else {
5506
5513
  const a = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
5507
- r = Wc, s = a;
5514
+ r = Uc, s = a;
5508
5515
  }
5509
5516
  if (!s)
5510
5517
  return In(t);
5511
- const i = r[t], o = s[1].split(",").map(Xc);
5518
+ const i = r[t], o = s[1].split(",").map(Hc);
5512
5519
  return typeof i == "function" ? i(o) : o[i];
5513
5520
  }
5514
- const Yc = (e, t) => {
5521
+ const Xc = (e, t) => {
5515
5522
  const { transform: n = "none" } = getComputedStyle(e);
5516
5523
  return Rn(n, t);
5517
5524
  };
5518
- function Xc(e) {
5525
+ function Hc(e) {
5519
5526
  return parseFloat(e.trim());
5520
5527
  }
5521
5528
  const st = [
@@ -5536,10 +5543,10 @@ const st = [
5536
5543
  "skew",
5537
5544
  "skewX",
5538
5545
  "skewY"
5539
- ], it = /* @__PURE__ */ new Set([...st, "pathRotation"]), Gr = (e) => e === nt || e === S, Hc = /* @__PURE__ */ new Set(["x", "y", "z"]), qc = st.filter((e) => !Hc.has(e));
5540
- function Zc(e) {
5546
+ ], it = /* @__PURE__ */ new Set([...st, "pathRotation"]), Gr = (e) => e === nt || e === S, qc = /* @__PURE__ */ new Set(["x", "y", "z"]), Zc = st.filter((e) => !qc.has(e));
5547
+ function Jc(e) {
5541
5548
  const t = [];
5542
- return qc.forEach((n) => {
5549
+ return Zc.forEach((n) => {
5543
5550
  const r = e.getValue(n);
5544
5551
  r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
5545
5552
  }), t;
@@ -5570,7 +5577,7 @@ function ki() {
5570
5577
  if (Ln) {
5571
5578
  const e = Array.from(Ne).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = /* @__PURE__ */ new Map();
5572
5579
  t.forEach((r) => {
5573
- const s = Zc(r);
5580
+ const s = Jc(r);
5574
5581
  s.length && (n.set(r, s), r.render());
5575
5582
  }), e.forEach((r) => r.measureInitialState()), t.forEach((r) => {
5576
5583
  r.render();
@@ -5590,7 +5597,7 @@ function Si() {
5590
5597
  e.readKeyframes(), e.needsMeasurement && (Ln = !0);
5591
5598
  });
5592
5599
  }
5593
- function Jc() {
5600
+ function Qc() {
5594
5601
  Dn = !0, Si(), ki(), Dn = !1;
5595
5602
  }
5596
5603
  class mr {
@@ -5612,7 +5619,7 @@ class mr {
5612
5619
  }
5613
5620
  t[0] === void 0 && (t[0] = o), s && i === void 0 && s.set(t[0]);
5614
5621
  }
5615
- Gc(t);
5622
+ Wc(t);
5616
5623
  }
5617
5624
  setFinalKeyframe() {
5618
5625
  }
@@ -5632,16 +5639,16 @@ class mr {
5632
5639
  this.state === "pending" && this.scheduleResolve();
5633
5640
  }
5634
5641
  }
5635
- const Qc = (e) => e.startsWith("--");
5642
+ const eu = (e) => e.startsWith("--");
5636
5643
  function Ti(e, t, n) {
5637
- Qc(t) ? e.style.setProperty(t, n) : e.style[t] = n;
5644
+ eu(t) ? e.style.setProperty(t, n) : e.style[t] = n;
5638
5645
  }
5639
- const eu = {};
5646
+ const tu = {};
5640
5647
  function Ai(e, t) {
5641
5648
  const n = /* @__PURE__ */ Xs(e);
5642
- return () => eu[t] ?? n();
5649
+ return () => tu[t] ?? n();
5643
5650
  }
5644
- const tu = /* @__PURE__ */ Ai(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Ci = /* @__PURE__ */ Ai(() => {
5651
+ const nu = /* @__PURE__ */ Ai(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Ci = /* @__PURE__ */ Ai(() => {
5645
5652
  try {
5646
5653
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
5647
5654
  } catch {
@@ -5663,7 +5670,7 @@ function Mi(e, t) {
5663
5670
  if (e)
5664
5671
  return typeof e == "function" ? Ci() ? pi(e, t) : "ease-out" : /* @__PURE__ */ oi(e) ? gt(e) : Array.isArray(e) ? e.map((n) => Mi(n, t) || Wr.easeOut) : Wr[e];
5665
5672
  }
5666
- function nu(e, t, n, { delay: r = 0, duration: s = 300, repeat: i = 0, repeatType: o = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
5673
+ function ru(e, t, n, { delay: r = 0, duration: s = 300, repeat: i = 0, repeatType: o = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
5667
5674
  const u = {
5668
5675
  [t]: n
5669
5676
  };
@@ -5683,7 +5690,7 @@ function nu(e, t, n, { delay: r = 0, duration: s = 300, repeat: i = 0, repeatTyp
5683
5690
  function gr(e) {
5684
5691
  return typeof e == "function" && "applyToOptions" in e;
5685
5692
  }
5686
- function ru({ type: e, ...t }) {
5693
+ function su({ type: e, ...t }) {
5687
5694
  return gr(e) && Ci() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
5688
5695
  }
5689
5696
  class Vi extends hr {
@@ -5692,8 +5699,8 @@ class Vi extends hr {
5692
5699
  return;
5693
5700
  const { element: n, name: r, keyframes: s, pseudoElement: i, allowFlatten: o = !1, finalKeyframe: a, onComplete: l } = t;
5694
5701
  this.isPseudoElement = !!i, this.allowFlatten = o, this.options = t, nr(typeof t.type != "string");
5695
- const c = ru(t);
5696
- this.animation = nu(n, r, s, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
5702
+ const c = su(t);
5703
+ this.animation = ru(n, r, s, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
5697
5704
  if (this.finishedTime = this.time, !i) {
5698
5705
  const u = ln(s, this.options, a, this.speed);
5699
5706
  this.updateMotionValue && this.updateMotionValue(u), Ti(n, r, u), this.animation.cancel();
@@ -5744,14 +5751,14 @@ class Vi extends hr {
5744
5751
  get duration() {
5745
5752
  var n, r;
5746
5753
  const t = ((r = (n = this.animation.effect) == null ? void 0 : n.getComputedTiming) == null ? void 0 : r.call(n).duration) || 0;
5747
- return /* @__PURE__ */ he(Number(t));
5754
+ return /* @__PURE__ */ me(Number(t));
5748
5755
  }
5749
5756
  get iterationDuration() {
5750
5757
  const { delay: t = 0 } = this.options || {};
5751
- return this.duration + /* @__PURE__ */ he(t);
5758
+ return this.duration + /* @__PURE__ */ me(t);
5752
5759
  }
5753
5760
  get time() {
5754
- return /* @__PURE__ */ he(Number(this.animation.currentTime) || 0);
5761
+ return /* @__PURE__ */ me(Number(this.animation.currentTime) || 0);
5755
5762
  }
5756
5763
  set time(t) {
5757
5764
  const n = this.finishedTime !== null;
@@ -5781,7 +5788,7 @@ class Vi extends hr {
5781
5788
  */
5782
5789
  attachTimeline({ timeline: t, rangeStart: n, rangeEnd: r, observe: s }) {
5783
5790
  var i;
5784
- return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && tu() ? (this.animation.timeline = t, n && (this.animation.rangeStart = n), r && (this.animation.rangeEnd = r), tt) : s(this);
5791
+ return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && nu() ? (this.animation.timeline = t, n && (this.animation.rangeStart = n), r && (this.animation.rangeEnd = r), tt) : s(this);
5785
5792
  }
5786
5793
  }
5787
5794
  const Pi = {
@@ -5789,16 +5796,16 @@ const Pi = {
5789
5796
  backInOut: ei,
5790
5797
  circInOut: ni
5791
5798
  };
5792
- function su(e) {
5799
+ function iu(e) {
5793
5800
  return e in Pi;
5794
5801
  }
5795
- function iu(e) {
5796
- typeof e.ease == "string" && su(e.ease) && (e.ease = Pi[e.ease]);
5802
+ function ou(e) {
5803
+ typeof e.ease == "string" && iu(e.ease) && (e.ease = Pi[e.ease]);
5797
5804
  }
5798
5805
  const bn = 10;
5799
- class ou extends Vi {
5806
+ class au extends Vi {
5800
5807
  constructor(t) {
5801
- iu(t), xi(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
5808
+ ou(t), xi(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
5802
5809
  }
5803
5810
  /**
5804
5811
  * WAAPI doesn't natively have any interruption capabilities.
@@ -5819,14 +5826,14 @@ class ou extends Vi {
5819
5826
  const a = new tn({
5820
5827
  ...o,
5821
5828
  autoplay: !1
5822
- }), l = Math.max(bn, de.now() - this.startTime), c = Ee(0, bn, l - bn), u = a.sample(l).value, { name: d } = this.options;
5829
+ }), l = Math.max(bn, de.now() - this.startTime), c = $e(0, bn, l - bn), u = a.sample(l).value, { name: d } = this.options;
5823
5830
  i && d && Ti(i, d, u), n.setWithVelocity(a.sample(Math.max(0, l - c)).value, u, c), a.stop();
5824
5831
  }
5825
5832
  }
5826
5833
  const Ur = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
5827
- (me.test(e) || e === "0") && // And it contains numbers and/or colors
5834
+ (ge.test(e) || e === "0") && // And it contains numbers and/or colors
5828
5835
  !e.startsWith("url("));
5829
- function au(e) {
5836
+ function lu(e) {
5830
5837
  const t = e[0];
5831
5838
  if (e.length === 1)
5832
5839
  return !0;
@@ -5834,19 +5841,19 @@ function au(e) {
5834
5841
  if (e[n] !== t)
5835
5842
  return !0;
5836
5843
  }
5837
- function lu(e, t, n, r) {
5844
+ function cu(e, t, n, r) {
5838
5845
  const s = e[0];
5839
5846
  if (s === null)
5840
5847
  return !1;
5841
5848
  if (t === "display" || t === "visibility")
5842
5849
  return !0;
5843
5850
  const i = e[e.length - 1], o = Ur(s, t), a = Ur(i, t);
5844
- return !o || !a ? !1 : au(e) || (n === "spring" || gr(n)) && r;
5851
+ return !o || !a ? !1 : lu(e) || (n === "spring" || gr(n)) && r;
5845
5852
  }
5846
5853
  function Fn(e) {
5847
5854
  e.duration = 0, e.type = "keyframes";
5848
5855
  }
5849
- const Ei = /* @__PURE__ */ new Set([
5856
+ const $i = /* @__PURE__ */ new Set([
5850
5857
  "opacity",
5851
5858
  "clipPath",
5852
5859
  "filter",
@@ -5854,14 +5861,14 @@ const Ei = /* @__PURE__ */ new Set([
5854
5861
  // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
5855
5862
  // or until we implement support for linear() easing.
5856
5863
  // "background-color"
5857
- ]), cu = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
5858
- function uu(e) {
5864
+ ]), uu = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
5865
+ function du(e) {
5859
5866
  for (let t = 0; t < e.length; t++)
5860
- if (typeof e[t] == "string" && cu.test(e[t]))
5867
+ if (typeof e[t] == "string" && uu.test(e[t]))
5861
5868
  return !0;
5862
5869
  return !1;
5863
5870
  }
5864
- const du = /* @__PURE__ */ new Set([
5871
+ const fu = /* @__PURE__ */ new Set([
5865
5872
  "color",
5866
5873
  "backgroundColor",
5867
5874
  "outlineColor",
@@ -5872,25 +5879,25 @@ const du = /* @__PURE__ */ new Set([
5872
5879
  "borderRightColor",
5873
5880
  "borderBottomColor",
5874
5881
  "borderLeftColor"
5875
- ]), fu = /* @__PURE__ */ Xs(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
5876
- function hu(e) {
5882
+ ]), hu = /* @__PURE__ */ Xs(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
5883
+ function mu(e) {
5877
5884
  var d;
5878
5885
  const { motionValue: t, name: n, repeatDelay: r, repeatType: s, damping: i, type: o, keyframes: a } = e;
5879
5886
  if (!(((d = t == null ? void 0 : t.owner) == null ? void 0 : d.current) instanceof HTMLElement))
5880
5887
  return !1;
5881
5888
  const { onUpdate: c, transformTemplate: u } = t.owner.getProps();
5882
- return fu() && n && /**
5889
+ return hu() && n && /**
5883
5890
  * Force WAAPI for color properties with browser-only color formats
5884
5891
  * (oklch, oklab, lab, lch, etc.) that the JS animation path can't parse.
5885
5892
  */
5886
- (Ei.has(n) || du.has(n) && uu(a)) && (n !== "transform" || !u) && /**
5893
+ ($i.has(n) || fu.has(n) && du(a)) && (n !== "transform" || !u) && /**
5887
5894
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
5888
5895
  * no way to read the value from WAAPI every frame.
5889
5896
  */
5890
5897
  !c && !r && s !== "mirror" && i !== 0 && o !== "inertia";
5891
5898
  }
5892
- const mu = 40;
5893
- class gu extends hr {
5899
+ const gu = 40;
5900
+ class pu extends hr {
5894
5901
  constructor({ autoplay: t = !0, delay: n = 0, type: r = "keyframes", repeat: s = 0, repeatDelay: i = 0, repeatType: o = "loop", keyframes: a, name: l, motionValue: c, element: u, ...d }) {
5895
5902
  var y;
5896
5903
  super(), this.stop = () => {
@@ -5917,17 +5924,17 @@ class gu extends hr {
5917
5924
  const { name: i, type: o, velocity: a, delay: l, isHandoff: c, onUpdate: u } = r;
5918
5925
  this.resolvedAt = de.now();
5919
5926
  let d = !0;
5920
- lu(t, i, o, a) || (d = !1, ($e.instantAnimations || !l) && (u == null || u(ln(t, r, n))), t[0] = t[t.length - 1], Fn(r), r.repeat = 0);
5927
+ cu(t, i, o, a) || (d = !1, (Ee.instantAnimations || !l) && (u == null || u(ln(t, r, n))), t[0] = t[t.length - 1], Fn(r), r.repeat = 0);
5921
5928
  const m = {
5922
- startTime: s ? this.resolvedAt ? this.resolvedAt - this.createdAt > mu ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
5929
+ startTime: s ? this.resolvedAt ? this.resolvedAt - this.createdAt > gu ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
5923
5930
  finalKeyframe: n,
5924
5931
  ...r,
5925
5932
  keyframes: t
5926
- }, y = d && !c && hu(m), h = (k = (v = m.motionValue) == null ? void 0 : v.owner) == null ? void 0 : k.current;
5933
+ }, y = d && !c && mu(m), h = (k = (v = m.motionValue) == null ? void 0 : v.owner) == null ? void 0 : k.current;
5927
5934
  let p;
5928
5935
  if (y)
5929
5936
  try {
5930
- p = new ou({
5937
+ p = new au({
5931
5938
  ...m,
5932
5939
  element: h
5933
5940
  });
@@ -5949,7 +5956,7 @@ class gu extends hr {
5949
5956
  }
5950
5957
  get animation() {
5951
5958
  var t;
5952
- return this._animation || ((t = this.keyframeResolver) == null || t.resume(), Jc()), this._animation;
5959
+ return this._animation || ((t = this.keyframeResolver) == null || t.resume(), Qc()), this._animation;
5953
5960
  }
5954
5961
  get duration() {
5955
5962
  return this.animation.duration;
@@ -5992,7 +5999,7 @@ class gu extends hr {
5992
5999
  this._animation && this.animation.cancel(), (t = this.keyframeResolver) == null || t.cancel();
5993
6000
  }
5994
6001
  }
5995
- class pu {
6002
+ class bu {
5996
6003
  constructor(t) {
5997
6004
  this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
5998
6005
  }
@@ -6065,14 +6072,14 @@ function Yr(e, t) {
6065
6072
  }
6066
6073
  return n;
6067
6074
  }
6068
- class bu extends pu {
6075
+ class yu extends bu {
6069
6076
  then(t, n) {
6070
6077
  return this.finished.finally(t).then(() => {
6071
6078
  });
6072
6079
  }
6073
6080
  }
6074
- const Xr = 30, yu = (e) => !isNaN(parseFloat(e));
6075
- class vu {
6081
+ const Xr = 30, vu = (e) => !isNaN(parseFloat(e));
6082
+ class wu {
6076
6083
  /**
6077
6084
  * @param init - The initiating value
6078
6085
  * @param config - Optional configuration options
@@ -6089,7 +6096,7 @@ class vu {
6089
6096
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
6090
6097
  }
6091
6098
  setCurrent(t) {
6092
- this.current = t, this.updatedAt = de.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = yu(this.current));
6099
+ this.current = t, this.updatedAt = de.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = vu(this.current));
6093
6100
  }
6094
6101
  setPrevFrameValue(t = this.current) {
6095
6102
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -6275,9 +6282,9 @@ class vu {
6275
6282
  }
6276
6283
  }
6277
6284
  function Qe(e, t) {
6278
- return new vu(e, t);
6285
+ return new wu(e, t);
6279
6286
  }
6280
- function $i(e, t) {
6287
+ function Ei(e, t) {
6281
6288
  if (e != null && e.inherit && t) {
6282
6289
  const { inherit: n, ...r } = e;
6283
6290
  return { ...t, ...r };
@@ -6286,26 +6293,26 @@ function $i(e, t) {
6286
6293
  }
6287
6294
  function Ii(e, t) {
6288
6295
  const n = (e == null ? void 0 : e[t]) ?? (e == null ? void 0 : e.default) ?? e;
6289
- return n !== e ? $i(n, e) : n;
6296
+ return n !== e ? Ei(n, e) : n;
6290
6297
  }
6291
- const wu = {
6298
+ const xu = {
6292
6299
  type: "spring",
6293
6300
  stiffness: 500,
6294
6301
  damping: 25,
6295
6302
  restSpeed: 10
6296
- }, xu = (e) => ({
6303
+ }, ku = (e) => ({
6297
6304
  type: "spring",
6298
6305
  stiffness: 550,
6299
6306
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
6300
6307
  restSpeed: 10
6301
- }), ku = {
6308
+ }), Su = {
6302
6309
  type: "keyframes",
6303
6310
  duration: 0.8
6304
- }, Su = {
6311
+ }, Tu = {
6305
6312
  type: "keyframes",
6306
6313
  ease: [0.25, 0.1, 0.35, 1],
6307
6314
  duration: 0.3
6308
- }, Tu = (e, { keyframes: t }) => t.length > 2 ? ku : it.has(e) ? e.startsWith("scale") ? xu(t[1]) : wu : Su, Au = /* @__PURE__ */ new Set([
6315
+ }, Au = (e, { keyframes: t }) => t.length > 2 ? Su : it.has(e) ? e.startsWith("scale") ? ku(t[1]) : xu : Tu, Cu = /* @__PURE__ */ new Set([
6309
6316
  "when",
6310
6317
  "delay",
6311
6318
  "delayChildren",
@@ -6317,9 +6324,9 @@ const wu = {
6317
6324
  "from",
6318
6325
  "elapsed"
6319
6326
  ]);
6320
- function Cu(e) {
6327
+ function Mu(e) {
6321
6328
  for (const t in e)
6322
- if (!Au.has(t))
6329
+ if (!Cu.has(t))
6323
6330
  return !0;
6324
6331
  return !1;
6325
6332
  }
@@ -6343,9 +6350,9 @@ const Ri = (e, t, n, r = {}, s, i) => (o) => {
6343
6350
  motionValue: t,
6344
6351
  element: i ? void 0 : s
6345
6352
  };
6346
- Cu(a) || Object.assign(u, Tu(e, u)), u.duration && (u.duration = /* @__PURE__ */ fe(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ fe(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
6353
+ Mu(a) || Object.assign(u, Au(e, u)), u.duration && (u.duration = /* @__PURE__ */ fe(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ fe(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
6347
6354
  let d = !1;
6348
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Fn(u), u.delay === 0 && (d = !0)), ($e.instantAnimations || $e.skipAnimations || s != null && s.shouldSkipAnimations || a.skipAnimations) && (d = !0, Fn(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, d && !i && t.get() !== void 0) {
6355
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Fn(u), u.delay === 0 && (d = !0)), (Ee.instantAnimations || Ee.skipAnimations || s != null && s.shouldSkipAnimations || a.skipAnimations) && (d = !0, Fn(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, d && !i && t.get() !== void 0) {
6349
6356
  const f = ln(u.keyframes, a);
6350
6357
  if (f !== void 0) {
6351
6358
  ve.update(() => {
@@ -6354,20 +6361,20 @@ const Ri = (e, t, n, r = {}, s, i) => (o) => {
6354
6361
  return;
6355
6362
  }
6356
6363
  }
6357
- return a.isSync ? new tn(u) : new gu(u);
6358
- }, Mu = (
6364
+ return a.isSync ? new tn(u) : new pu(u);
6365
+ }, Vu = (
6359
6366
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
6360
6367
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
6361
6368
  );
6362
- function Vu(e) {
6363
- const t = Mu.exec(e);
6369
+ function Pu(e) {
6370
+ const t = Vu.exec(e);
6364
6371
  if (!t)
6365
6372
  return [,];
6366
6373
  const [, n, r, s] = t;
6367
6374
  return [`--${n ?? r}`, s];
6368
6375
  }
6369
6376
  function Oi(e, t, n = 1) {
6370
- const [r, s] = Vu(e);
6377
+ const [r, s] = Pu(e);
6371
6378
  if (!r)
6372
6379
  return;
6373
6380
  const i = window.getComputedStyle(t).getPropertyValue(r);
@@ -6394,7 +6401,7 @@ function Li(e, t, n, r) {
6394
6401
  }
6395
6402
  return t;
6396
6403
  }
6397
- function Pu(e, t, n) {
6404
+ function $u(e, t, n) {
6398
6405
  const r = e.getProps();
6399
6406
  return Li(r, t, r.custom, e);
6400
6407
  }
@@ -6407,56 +6414,56 @@ const Di = /* @__PURE__ */ new Set([
6407
6414
  "bottom",
6408
6415
  ...st
6409
6416
  ]), Eu = (e) => Array.isArray(e);
6410
- function $u(e, t, n) {
6417
+ function Iu(e, t, n) {
6411
6418
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Qe(n));
6412
6419
  }
6413
- function Iu(e) {
6420
+ function Ru(e) {
6414
6421
  return Eu(e) ? e[e.length - 1] || 0 : e;
6415
6422
  }
6416
- function Ru(e, t) {
6417
- const n = Pu(e, t);
6423
+ function Ou(e, t) {
6424
+ const n = $u(e, t);
6418
6425
  let { transitionEnd: r = {}, transition: s = {}, ...i } = n || {};
6419
6426
  i = { ...i, ...r };
6420
6427
  for (const o in i) {
6421
- const a = Iu(i[o]);
6422
- $u(e, o, a);
6428
+ const a = Ru(i[o]);
6429
+ Iu(e, o, a);
6423
6430
  }
6424
6431
  }
6425
6432
  const oe = (e) => !!(e && e.getVelocity);
6426
- function Ou(e) {
6433
+ function Lu(e) {
6427
6434
  return !!(oe(e) && e.add);
6428
6435
  }
6429
- function Lu(e, t) {
6436
+ function Du(e, t) {
6430
6437
  const n = e.getValue("willChange");
6431
- if (Ou(n))
6438
+ if (Lu(n))
6432
6439
  return n.add(t);
6433
- if (!n && $e.WillChange) {
6434
- const r = new $e.WillChange("auto");
6440
+ if (!n && Ee.WillChange) {
6441
+ const r = new Ee.WillChange("auto");
6435
6442
  e.addValue("willChange", r), r.add(t);
6436
6443
  }
6437
6444
  }
6438
6445
  function pr(e) {
6439
6446
  return e.replace(/([A-Z])/g, (t) => `-${t.toLowerCase()}`);
6440
6447
  }
6441
- const Du = "framerAppearId", Fu = "data-" + pr(Du);
6442
- function _u(e) {
6443
- return e.props[Fu];
6448
+ const Fu = "framerAppearId", _u = "data-" + pr(Fu);
6449
+ function Nu(e) {
6450
+ return e.props[_u];
6444
6451
  }
6445
- function Nu({ protectedKeys: e, needsAnimating: t }, n) {
6452
+ function zu({ protectedKeys: e, needsAnimating: t }, n) {
6446
6453
  const r = e.hasOwnProperty(n) && t[n] !== !0;
6447
6454
  return t[n] = !1, r;
6448
6455
  }
6449
- function zu(e, t, { delay: n = 0, transitionOverride: r, type: s } = {}) {
6456
+ function Bu(e, t, { delay: n = 0, transitionOverride: r, type: s } = {}) {
6450
6457
  let { transition: i, transitionEnd: o, ...a } = t;
6451
6458
  const l = e.getDefaultTransition();
6452
- i = i ? $i(i, l) : l;
6459
+ i = i ? Ei(i, l) : l;
6453
6460
  const c = i == null ? void 0 : i.reduceMotion, u = i == null ? void 0 : i.skipAnimations;
6454
6461
  r && (i = r);
6455
6462
  const d = [], f = s && e.animationState && e.animationState.getState()[s], m = i == null ? void 0 : i.path;
6456
6463
  m && m.animateVisualElement(e, a, i, n, d);
6457
6464
  for (const y in a) {
6458
6465
  const h = e.getValue(y, e.latestValues[y] ?? null), p = a[y];
6459
- if (p === void 0 || f && Nu(f, y))
6466
+ if (p === void 0 || f && zu(f, y))
6460
6467
  continue;
6461
6468
  const v = {
6462
6469
  delay: n,
@@ -6470,13 +6477,13 @@ function zu(e, t, { delay: n = 0, transitionOverride: r, type: s } = {}) {
6470
6477
  }
6471
6478
  let C = !1;
6472
6479
  if (window.MotionHandoffAnimation) {
6473
- const $ = _u(e);
6474
- if ($) {
6475
- const E = window.MotionHandoffAnimation($, y, ve);
6476
- E !== null && (v.startTime = E, C = !0);
6480
+ const E = Nu(e);
6481
+ if (E) {
6482
+ const $ = window.MotionHandoffAnimation(E, y, ve);
6483
+ $ !== null && (v.startTime = $, C = !0);
6477
6484
  }
6478
6485
  }
6479
- Lu(e, y);
6486
+ Du(e, y);
6480
6487
  const T = c ?? e.shouldReduceMotion;
6481
6488
  h.start(Ri(y, h, p, T && Di.has(y) ? { type: !1 } : v, e, C));
6482
6489
  const A = h.animation;
@@ -6484,21 +6491,21 @@ function zu(e, t, { delay: n = 0, transitionOverride: r, type: s } = {}) {
6484
6491
  }
6485
6492
  if (o) {
6486
6493
  const y = () => ve.update(() => {
6487
- o && Ru(e, o);
6494
+ o && Ou(e, o);
6488
6495
  });
6489
6496
  d.length ? Promise.all(d).then(y) : y();
6490
6497
  }
6491
6498
  return d;
6492
6499
  }
6493
- const Bu = {
6500
+ const ju = {
6494
6501
  test: (e) => e === "auto",
6495
6502
  parse: (e) => e
6496
- }, Fi = (e) => (t) => t.test(e), _i = [nt, S, Ze, Se, uc, cc, Bu], qr = (e) => _i.find(Fi(e));
6497
- function ju(e) {
6503
+ }, Fi = (e) => (t) => t.test(e), _i = [nt, S, Ze, Se, dc, uc, ju], qr = (e) => _i.find(Fi(e));
6504
+ function Ku(e) {
6498
6505
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Ys(e) : !0;
6499
6506
  }
6500
- const Ku = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
6501
- function Gu(e) {
6507
+ const Gu = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
6508
+ function Wu(e) {
6502
6509
  const [t, n] = e.slice(0, -1).split("(");
6503
6510
  if (t === "drop-shadow")
6504
6511
  return e;
@@ -6506,25 +6513,25 @@ function Gu(e) {
6506
6513
  if (!r)
6507
6514
  return e;
6508
6515
  const s = n.replace(r, "");
6509
- let i = Ku.has(t) ? 1 : 0;
6516
+ let i = Gu.has(t) ? 1 : 0;
6510
6517
  return r !== n && (i *= 100), t + "(" + i + s + ")";
6511
6518
  }
6512
- const Wu = /\b([a-z-]*)\(.*?\)/gu, _n = {
6513
- ...me,
6519
+ const Uu = /\b([a-z-]*)\(.*?\)/gu, _n = {
6520
+ ...ge,
6514
6521
  getAnimatableNone: (e) => {
6515
- const t = e.match(Wu);
6516
- return t ? t.map(Gu).join(" ") : e;
6522
+ const t = e.match(Uu);
6523
+ return t ? t.map(Wu).join(" ") : e;
6517
6524
  }
6518
6525
  }, Nn = {
6519
- ...me,
6526
+ ...ge,
6520
6527
  getAnimatableNone: (e) => {
6521
- const t = me.parse(e);
6522
- return me.createTransformer(e)(t.map((r) => typeof r == "number" ? 0 : typeof r == "object" ? { ...r, alpha: 1 } : r));
6528
+ const t = ge.parse(e);
6529
+ return ge.createTransformer(e)(t.map((r) => typeof r == "number" ? 0 : typeof r == "object" ? { ...r, alpha: 1 } : r));
6523
6530
  }
6524
6531
  }, Zr = {
6525
6532
  ...nt,
6526
6533
  transform: Math.round
6527
- }, Uu = {
6534
+ }, Yu = {
6528
6535
  rotate: Se,
6529
6536
  /**
6530
6537
  * Internal channel for `transition.path` orientToPath. Composed onto
@@ -6611,13 +6618,13 @@ const Wu = /\b([a-z-]*)\(.*?\)/gu, _n = {
6611
6618
  // Misc
6612
6619
  backgroundPositionX: S,
6613
6620
  backgroundPositionY: S,
6614
- ...Uu,
6621
+ ...Yu,
6615
6622
  zIndex: Zr,
6616
6623
  // SVG
6617
6624
  fillOpacity: kt,
6618
6625
  strokeOpacity: kt,
6619
6626
  numOctaves: Zr
6620
- }, Yu = {
6627
+ }, Xu = {
6621
6628
  ...nn,
6622
6629
  // Color props
6623
6630
  color: Y,
@@ -6635,23 +6642,23 @@ const Wu = /\b([a-z-]*)\(.*?\)/gu, _n = {
6635
6642
  WebkitFilter: _n,
6636
6643
  mask: Nn,
6637
6644
  WebkitMask: Nn
6638
- }, Ni = (e) => Yu[e], Xu = /* @__PURE__ */ new Set([_n, Nn]);
6645
+ }, Ni = (e) => Xu[e], Hu = /* @__PURE__ */ new Set([_n, Nn]);
6639
6646
  function zi(e, t) {
6640
6647
  let n = Ni(e);
6641
- return Xu.has(n) || (n = me), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
6648
+ return Hu.has(n) || (n = ge), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
6642
6649
  }
6643
- const Hu = /* @__PURE__ */ new Set(["auto", "none", "0"]);
6644
- function qu(e, t, n) {
6650
+ const qu = /* @__PURE__ */ new Set(["auto", "none", "0"]);
6651
+ function Zu(e, t, n) {
6645
6652
  let r = 0, s;
6646
6653
  for (; r < e.length && !s; ) {
6647
6654
  const i = e[r];
6648
- typeof i == "string" && !Hu.has(i) && Je(i).values.length && (s = e[r]), r++;
6655
+ typeof i == "string" && !qu.has(i) && Je(i).values.length && (s = e[r]), r++;
6649
6656
  }
6650
6657
  if (s && n)
6651
6658
  for (const i of t)
6652
6659
  e[i] = zi(n, s);
6653
6660
  }
6654
- class Zu extends mr {
6661
+ class Ju extends mr {
6655
6662
  constructor(t, n, r, s, i) {
6656
6663
  super(t, n, r, s, i, !0);
6657
6664
  }
@@ -6685,8 +6692,8 @@ class Zu extends mr {
6685
6692
  resolveNoneKeyframes() {
6686
6693
  const { unresolvedKeyframes: t, name: n } = this, r = [];
6687
6694
  for (let s = 0; s < t.length; s++)
6688
- (t[s] === null || ju(t[s])) && r.push(s);
6689
- r.length && qu(t, r, n);
6695
+ (t[s] === null || Ku(t[s])) && r.push(s);
6696
+ r.length && Zu(t, r, n);
6690
6697
  }
6691
6698
  measureInitialState() {
6692
6699
  const { element: t, unresolvedKeyframes: n, name: r } = this;
@@ -6709,13 +6716,13 @@ class Zu extends mr {
6709
6716
  }), this.resolveNoneKeyframes();
6710
6717
  }
6711
6718
  }
6712
- const Ju = [
6719
+ const Qu = [
6713
6720
  "borderTopLeftRadius",
6714
6721
  "borderTopRightRadius",
6715
6722
  "borderBottomRightRadius",
6716
6723
  "borderBottomLeftRadius"
6717
6724
  ];
6718
- function Qu(e, t, n) {
6725
+ function ed(e, t, n) {
6719
6726
  if (e == null)
6720
6727
  return [];
6721
6728
  if (e instanceof EventTarget)
@@ -6728,24 +6735,24 @@ function Qu(e, t, n) {
6728
6735
  }
6729
6736
  return Array.from(e).filter((r) => r != null);
6730
6737
  }
6731
- const zn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: ed } = /* @__PURE__ */ ai(queueMicrotask, !1);
6738
+ const zn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: td } = /* @__PURE__ */ ai(queueMicrotask, !1);
6732
6739
  function Bi(e) {
6733
- return Gl(e) && "ownerSVGElement" in e;
6740
+ return Wl(e) && "ownerSVGElement" in e;
6734
6741
  }
6735
- function td(e) {
6742
+ function nd(e) {
6736
6743
  return Bi(e) && e.tagName === "svg";
6737
6744
  }
6738
- const nd = [..._i, Y, me], rd = (e) => nd.find(Fi(e)), Jr = () => ({ min: 0, max: 0 }), br = () => ({
6745
+ const rd = [..._i, Y, ge], sd = (e) => rd.find(Fi(e)), Jr = () => ({ min: 0, max: 0 }), br = () => ({
6739
6746
  x: Jr(),
6740
6747
  y: Jr()
6741
6748
  }), Tt = /* @__PURE__ */ new WeakMap();
6742
- function sd(e) {
6749
+ function id(e) {
6743
6750
  return e !== null && typeof e == "object" && typeof e.start == "function";
6744
6751
  }
6745
- function id(e) {
6752
+ function od(e) {
6746
6753
  return typeof e == "string" || Array.isArray(e);
6747
6754
  }
6748
- const od = [
6755
+ const ad = [
6749
6756
  "animate",
6750
6757
  "whileInView",
6751
6758
  "whileFocus",
@@ -6753,14 +6760,14 @@ const od = [
6753
6760
  "whileTap",
6754
6761
  "whileDrag",
6755
6762
  "exit"
6756
- ], ad = ["initial", ...od];
6763
+ ], ld = ["initial", ...ad];
6757
6764
  function ji(e) {
6758
- return sd(e.animate) || ad.some((t) => id(e[t]));
6765
+ return id(e.animate) || ld.some((t) => od(e[t]));
6759
6766
  }
6760
- function ld(e) {
6767
+ function cd(e) {
6761
6768
  return !!(ji(e) || e.variants);
6762
6769
  }
6763
- function cd(e, t, n) {
6770
+ function ud(e, t, n) {
6764
6771
  for (const r in t) {
6765
6772
  const s = t[r], i = n[r];
6766
6773
  if (oe(s))
@@ -6780,9 +6787,9 @@ function cd(e, t, n) {
6780
6787
  t[r] === void 0 && e.removeValue(r);
6781
6788
  return t;
6782
6789
  }
6783
- const Bn = { current: null }, Ki = { current: !1 }, ud = typeof window < "u";
6784
- function dd() {
6785
- if (Ki.current = !0, !!ud)
6790
+ const Bn = { current: null }, Ki = { current: !1 }, dd = typeof window < "u";
6791
+ function fd() {
6792
+ if (Ki.current = !0, !!dd)
6786
6793
  if (window.matchMedia) {
6787
6794
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Bn.current = e.matches;
6788
6795
  e.addEventListener("change", t), t();
@@ -6818,7 +6825,7 @@ class Gi {
6818
6825
  this.renderScheduledAt < m && (this.renderScheduledAt = m, ve.render(this.render, !1, !0));
6819
6826
  };
6820
6827
  const { latestValues: c, renderState: u } = a;
6821
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = s, this.skipAnimationsConfig = i, this.options = l, this.blockInitialAnimation = !!o, this.isControllingVariants = ji(n), this.isVariantNode = ld(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
6828
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = s, this.skipAnimationsConfig = i, this.options = l, this.blockInitialAnimation = !!o, this.isControllingVariants = ji(n), this.isVariantNode = cd(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
6822
6829
  const { willChange: d, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
6823
6830
  for (const m in f) {
6824
6831
  const y = f[m];
@@ -6830,7 +6837,7 @@ class Gi {
6830
6837
  if (this.hasBeenMounted)
6831
6838
  for (const s in this.initialValues)
6832
6839
  (n = this.values.get(s)) == null || n.jump(this.initialValues[s]), this.latestValues[s] = this.initialValues[s];
6833
- this.current = t, Tt.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((s, i) => this.bindToMotionValue(i, s)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Ki.current || dd(), this.shouldReduceMotion = Bn.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, (r = this.parent) == null || r.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
6840
+ this.current = t, Tt.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((s, i) => this.bindToMotionValue(i, s)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Ki.current || fd(), this.shouldReduceMotion = Bn.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, (r = this.parent) == null || r.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
6834
6841
  }
6835
6842
  unmount() {
6836
6843
  var t;
@@ -6850,7 +6857,7 @@ class Gi {
6850
6857
  this.children.delete(t), this.enteringChildren && this.enteringChildren.delete(t);
6851
6858
  }
6852
6859
  bindToMotionValue(t, n) {
6853
- if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), n.accelerate && Ei.has(t) && this.current instanceof HTMLElement) {
6860
+ if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), n.accelerate && $i.has(t) && this.current instanceof HTMLElement) {
6854
6861
  const { factory: o, keyframes: a, times: l, ease: c, duration: u } = n.accelerate, d = new Vi({
6855
6862
  element: this.current,
6856
6863
  name: t,
@@ -6919,7 +6926,7 @@ class Gi {
6919
6926
  const i = "on" + s, o = t[i];
6920
6927
  o && (this.propEventSubscriptions[s] = this.on(s, o));
6921
6928
  }
6922
- this.prevMotionValues = cd(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
6929
+ this.prevMotionValues = ud(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
6923
6930
  }
6924
6931
  getProps() {
6925
6932
  return this.props;
@@ -6984,7 +6991,7 @@ class Gi {
6984
6991
  */
6985
6992
  readValue(t, n) {
6986
6993
  let r = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
6987
- return r != null && (typeof r == "string" && (Us(r) || Ys(r)) ? r = parseFloat(r) : !rd(r) && me.test(n) && (r = zi(t, n)), this.setBaseTarget(t, oe(r) ? r.get() : r)), oe(r) ? r.get() : r;
6994
+ return r != null && (typeof r == "string" && (Us(r) || Ys(r)) ? r = parseFloat(r) : !sd(r) && ge.test(n) && (r = zi(t, n)), this.setBaseTarget(t, oe(r) ? r.get() : r)), oe(r) ? r.get() : r;
6988
6995
  }
6989
6996
  /**
6990
6997
  * Set the base target to later animate back to. This is currently
@@ -7017,12 +7024,12 @@ class Gi {
7017
7024
  this.events[t] && this.events[t].notify(...n);
7018
7025
  }
7019
7026
  scheduleRenderMicrotask() {
7020
- ed.render(this.render);
7027
+ td.render(this.render);
7021
7028
  }
7022
7029
  }
7023
7030
  class Wi extends Gi {
7024
7031
  constructor() {
7025
- super(...arguments), this.KeyframeResolver = Zu;
7032
+ super(...arguments), this.KeyframeResolver = Ju;
7026
7033
  }
7027
7034
  sortInstanceNodePosition(t, n) {
7028
7035
  return t.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -7042,13 +7049,13 @@ class Wi extends Gi {
7042
7049
  }));
7043
7050
  }
7044
7051
  }
7045
- function fd({ top: e, left: t, right: n, bottom: r }) {
7052
+ function hd({ top: e, left: t, right: n, bottom: r }) {
7046
7053
  return {
7047
7054
  x: { min: t, max: n },
7048
7055
  y: { min: e, max: r }
7049
7056
  };
7050
7057
  }
7051
- function hd(e, t) {
7058
+ function md(e, t) {
7052
7059
  if (!t)
7053
7060
  return e;
7054
7061
  const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom });
@@ -7059,18 +7066,18 @@ function hd(e, t) {
7059
7066
  right: r.x
7060
7067
  };
7061
7068
  }
7062
- function md(e, t) {
7063
- return fd(hd(e.getBoundingClientRect(), t));
7069
+ function gd(e, t) {
7070
+ return hd(md(e.getBoundingClientRect(), t));
7064
7071
  }
7065
- const gd = {
7072
+ const pd = {
7066
7073
  x: "translateX",
7067
7074
  y: "translateY",
7068
7075
  z: "translateZ",
7069
7076
  transformPerspective: "perspective"
7070
- }, pd = st.length;
7071
- function bd(e, t, n) {
7077
+ }, bd = st.length;
7078
+ function yd(e, t, n) {
7072
7079
  let r = "", s = !0;
7073
- for (let o = 0; o < pd; o++) {
7080
+ for (let o = 0; o < bd; o++) {
7074
7081
  const a = st[o], l = e[a];
7075
7082
  if (l === void 0)
7076
7083
  continue;
@@ -7085,7 +7092,7 @@ function bd(e, t, n) {
7085
7092
  const u = zn(l, nn[a]);
7086
7093
  if (!c) {
7087
7094
  s = !1;
7088
- const d = gd[a] || a;
7095
+ const d = pd[a] || a;
7089
7096
  r += `${d}(${u}) `;
7090
7097
  }
7091
7098
  n && (t[a] = u);
@@ -7110,7 +7117,7 @@ function Ui(e, t, n) {
7110
7117
  l.startsWith("origin") ? (a = !0, i[l] = u) : r[l] = u;
7111
7118
  }
7112
7119
  }
7113
- if (t.transform || (o || n ? r.transform = bd(t, e.transform, n) : r.transform && (r.transform = "none")), a) {
7120
+ if (t.transform || (o || n ? r.transform = yd(t, e.transform, n) : r.transform && (r.transform = "none")), a) {
7114
7121
  const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = i;
7115
7122
  r.transformOrigin = `${l} ${c} ${u}`;
7116
7123
  }
@@ -7139,29 +7146,29 @@ const ft = {
7139
7146
  const n = ts(e, t.target.x), r = ts(e, t.target.y);
7140
7147
  return `${n}% ${r}%`;
7141
7148
  }
7142
- }, yd = {
7149
+ }, vd = {
7143
7150
  correct: (e, { treeScale: t, projectionDelta: n }) => {
7144
- const r = e, s = me.parse(e);
7151
+ const r = e, s = ge.parse(e);
7145
7152
  if (s.length > 5)
7146
7153
  return r;
7147
- const i = me.createTransformer(e), o = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * t.x, l = n.y.scale * t.y;
7154
+ const i = ge.createTransformer(e), o = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * t.x, l = n.y.scale * t.y;
7148
7155
  s[0 + o] /= a, s[1 + o] /= l;
7149
7156
  const c = rt(a, l, 0.5);
7150
7157
  return typeof s[2 + o] == "number" && (s[2 + o] /= c), typeof s[3 + o] == "number" && (s[3 + o] /= c), i(s);
7151
7158
  }
7152
- }, vd = {
7159
+ }, wd = {
7153
7160
  borderRadius: {
7154
7161
  ...ft,
7155
- applyTo: [...Ju]
7162
+ applyTo: [...Qu]
7156
7163
  },
7157
7164
  borderTopLeftRadius: ft,
7158
7165
  borderTopRightRadius: ft,
7159
7166
  borderBottomLeftRadius: ft,
7160
7167
  borderBottomRightRadius: ft,
7161
- boxShadow: yd
7168
+ boxShadow: vd
7162
7169
  };
7163
- function wd(e, { layout: t, layoutId: n }) {
7164
- return it.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!vd[e] || e === "opacity");
7170
+ function xd(e, { layout: t, layoutId: n }) {
7171
+ return it.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!wd[e] || e === "opacity");
7165
7172
  }
7166
7173
  function Xi(e, t, n) {
7167
7174
  var o;
@@ -7169,27 +7176,27 @@ function Xi(e, t, n) {
7169
7176
  if (!r)
7170
7177
  return i;
7171
7178
  for (const a in r)
7172
- (oe(r[a]) || s && oe(s[a]) || wd(a, e) || ((o = n == null ? void 0 : n.getValue(a)) == null ? void 0 : o.liveStyle) !== void 0) && (i[a] = r[a]);
7179
+ (oe(r[a]) || s && oe(s[a]) || xd(a, e) || ((o = n == null ? void 0 : n.getValue(a)) == null ? void 0 : o.liveStyle) !== void 0) && (i[a] = r[a]);
7173
7180
  return i;
7174
7181
  }
7175
- function xd(e) {
7182
+ function kd(e) {
7176
7183
  return window.getComputedStyle(e);
7177
7184
  }
7178
- class kd extends Wi {
7185
+ class Sd extends Wi {
7179
7186
  constructor() {
7180
7187
  super(...arguments), this.type = "html", this.renderInstance = Yi;
7181
7188
  }
7182
7189
  readValueFromInstance(t, n) {
7183
7190
  var r;
7184
7191
  if (it.has(n))
7185
- return (r = this.projection) != null && r.isProjecting ? In(n) : Yc(t, n);
7192
+ return (r = this.projection) != null && r.isProjecting ? In(n) : Xc(t, n);
7186
7193
  {
7187
- const s = xd(t), i = (ci(n) ? s.getPropertyValue(n) : s[n]) || 0;
7194
+ const s = kd(t), i = (ci(n) ? s.getPropertyValue(n) : s[n]) || 0;
7188
7195
  return typeof i == "string" ? i.trim() : i;
7189
7196
  }
7190
7197
  }
7191
7198
  measureInstanceViewportBox(t, { transformPagePoint: n }) {
7192
- return md(t, n);
7199
+ return gd(t, n);
7193
7200
  }
7194
7201
  build(t, n, r) {
7195
7202
  Ui(t, n, r.transformTemplate);
@@ -7198,15 +7205,15 @@ class kd extends Wi {
7198
7205
  return Xi(t, n, r);
7199
7206
  }
7200
7207
  }
7201
- function Sd(e, t) {
7208
+ function Td(e, t) {
7202
7209
  return e in t;
7203
7210
  }
7204
- class Td extends Gi {
7211
+ class Ad extends Gi {
7205
7212
  constructor() {
7206
7213
  super(...arguments), this.type = "object";
7207
7214
  }
7208
7215
  readValueFromInstance(t, n) {
7209
- if (Sd(n, t)) {
7216
+ if (Td(n, t)) {
7210
7217
  const r = t[n];
7211
7218
  if (typeof r == "string" || typeof r == "number")
7212
7219
  return r;
@@ -7230,25 +7237,25 @@ class Td extends Gi {
7230
7237
  return 0;
7231
7238
  }
7232
7239
  }
7233
- const Ad = {
7240
+ const Cd = {
7234
7241
  offset: "stroke-dashoffset",
7235
7242
  array: "stroke-dasharray"
7236
- }, Cd = {
7243
+ }, Md = {
7237
7244
  offset: "strokeDashoffset",
7238
7245
  array: "strokeDasharray"
7239
7246
  };
7240
- function Md(e, t, n = 1, r = 0, s = !0) {
7247
+ function Vd(e, t, n = 1, r = 0, s = !0) {
7241
7248
  e.pathLength = 1;
7242
- const i = s ? Ad : Cd;
7249
+ const i = s ? Cd : Md;
7243
7250
  e[i.offset] = `${-r}`, e[i.array] = `${t} ${n}`;
7244
7251
  }
7245
- const Vd = [
7252
+ const Pd = [
7246
7253
  "offsetDistance",
7247
7254
  "offsetPath",
7248
7255
  "offsetRotate",
7249
7256
  "offsetAnchor"
7250
7257
  ];
7251
- function Pd(e, {
7258
+ function $d(e, {
7252
7259
  attrX: t,
7253
7260
  attrY: n,
7254
7261
  attrScale: r,
@@ -7265,9 +7272,9 @@ function Pd(e, {
7265
7272
  e.attrs = e.style, e.style = {};
7266
7273
  const { attrs: d, style: f } = e;
7267
7274
  d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = (u == null ? void 0 : u.transformBox) ?? "fill-box", delete d.transformBox);
7268
- for (const m of Vd)
7275
+ for (const m of Pd)
7269
7276
  d[m] !== void 0 && (f[m] = d[m], delete d[m]);
7270
- t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), s !== void 0 && Md(d, s, i, o, !1);
7277
+ t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), s !== void 0 && Vd(d, s, i, o, !1);
7271
7278
  }
7272
7279
  const Hi = /* @__PURE__ */ new Set([
7273
7280
  "baseFrequency",
@@ -7294,12 +7301,12 @@ const Hi = /* @__PURE__ */ new Set([
7294
7301
  "textLength",
7295
7302
  "lengthAdjust"
7296
7303
  ]), Ed = (e) => typeof e == "string" && e.toLowerCase() === "svg";
7297
- function $d(e, t, n, r) {
7304
+ function Id(e, t, n, r) {
7298
7305
  Yi(e, t, void 0, r);
7299
7306
  for (const s in t.attrs)
7300
7307
  e.setAttribute(Hi.has(s) ? s : pr(s), t.attrs[s]);
7301
7308
  }
7302
- function Id(e, t, n) {
7309
+ function Rd(e, t, n) {
7303
7310
  const r = Xi(e, t, n);
7304
7311
  for (const s in e)
7305
7312
  if (oe(e[s]) || oe(t[s])) {
@@ -7308,7 +7315,7 @@ function Id(e, t, n) {
7308
7315
  }
7309
7316
  return r;
7310
7317
  }
7311
- class Rd extends Wi {
7318
+ class Od extends Wi {
7312
7319
  constructor() {
7313
7320
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = br;
7314
7321
  }
@@ -7323,19 +7330,19 @@ class Rd extends Wi {
7323
7330
  return n = Hi.has(n) ? n : pr(n), t.getAttribute(n);
7324
7331
  }
7325
7332
  scrapeMotionValuesFromProps(t, n, r) {
7326
- return Id(t, n, r);
7333
+ return Rd(t, n, r);
7327
7334
  }
7328
7335
  build(t, n, r) {
7329
- Pd(t, n, this.isSVGTag, r.transformTemplate, r.style);
7336
+ $d(t, n, this.isSVGTag, r.transformTemplate, r.style);
7330
7337
  }
7331
7338
  renderInstance(t, n, r, s) {
7332
- $d(t, n, r, s);
7339
+ Id(t, n, r, s);
7333
7340
  }
7334
7341
  mount(t) {
7335
7342
  this.isSVGTag = Ed(t.tagName), super.mount(t);
7336
7343
  }
7337
7344
  }
7338
- function Od(e, t, n) {
7345
+ function Ld(e, t, n) {
7339
7346
  const r = oe(e) ? e : Qe(e);
7340
7347
  return r.start(Ri("", r, t, n)), r.animation;
7341
7348
  }
@@ -7343,22 +7350,22 @@ function yr(e) {
7343
7350
  return typeof e == "object" && !Array.isArray(e);
7344
7351
  }
7345
7352
  function qi(e, t, n, r) {
7346
- return e == null ? [] : typeof e == "string" && yr(t) ? Qu(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((s) => s != null) : [e];
7353
+ return e == null ? [] : typeof e == "string" && yr(t) ? ed(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((s) => s != null) : [e];
7347
7354
  }
7348
- function Ld(e, t, n) {
7355
+ function Dd(e, t, n) {
7349
7356
  return e * (t + 1) + n * t;
7350
7357
  }
7351
7358
  function ns(e, t, n, r) {
7352
7359
  return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : r.get(t) ?? e;
7353
7360
  }
7354
- function Dd(e, t, n) {
7361
+ function Fd(e, t, n) {
7355
7362
  for (let r = 0; r < e.length; r++) {
7356
7363
  const s = e[r];
7357
7364
  s.at > t && s.at < n && (tr(e, s), r--);
7358
7365
  }
7359
7366
  }
7360
- function Fd(e, t, n, r, s, i) {
7361
- Dd(e, s, i);
7367
+ function _d(e, t, n, r, s, i) {
7368
+ Fd(e, s, i);
7362
7369
  for (let o = 0; o < t.length; o++)
7363
7370
  e.push({
7364
7371
  value: t[o],
@@ -7366,16 +7373,16 @@ function Fd(e, t, n, r, s, i) {
7366
7373
  easing: /* @__PURE__ */ ii(n, o)
7367
7374
  });
7368
7375
  }
7369
- function _d(e, t, n = 0) {
7376
+ function Nd(e, t, n = 0) {
7370
7377
  const r = t + 1 + t * n;
7371
7378
  for (let s = 0; s < e.length; s++)
7372
7379
  e[s] = e[s] / r;
7373
7380
  }
7374
- function Nd(e, t) {
7381
+ function zd(e, t) {
7375
7382
  return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
7376
7383
  }
7377
- const zd = "easeInOut", Bd = 20;
7378
- function jd(e, { defaultTransition: t = {}, ...n } = {}, r, s) {
7384
+ const Bd = "easeInOut", jd = 20;
7385
+ function Kd(e, { defaultTransition: t = {}, ...n } = {}, r, s) {
7379
7386
  const i = t.duration || 0.3, o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), l = {}, c = /* @__PURE__ */ new Map();
7380
7387
  let u = 0, d = 0, f = 0;
7381
7388
  for (let m = 0; m < e.length; m++) {
@@ -7390,13 +7397,13 @@ function jd(e, { defaultTransition: t = {}, ...n } = {}, r, s) {
7390
7397
  let [h, p, v = {}] = y;
7391
7398
  v.at !== void 0 && (d = ns(d, v.at, u, c));
7392
7399
  let k = 0;
7393
- const C = (T, A, $, E = 0, g = 0) => {
7394
- const V = Kd(T), { delay: M = 0, times: O = wi(V), type: N = t.type || "keyframes", repeat: J, repeatType: Q, repeatDelay: ee = 0, ...K } = A;
7400
+ const C = (T, A, E, $ = 0, g = 0) => {
7401
+ const V = Gd(T), { delay: M = 0, times: O = wi(V), type: N = t.type || "keyframes", repeat: J, repeatType: Q, repeatDelay: ee = 0, ...K } = A;
7395
7402
  let { ease: Z = t.ease || "easeOut", duration: ie } = A;
7396
- const je = typeof M == "function" ? M(E, g) : M, P = V.length, ot = gr(N) ? N : s == null ? void 0 : s[N || "keyframes"];
7403
+ const je = typeof M == "function" ? M($, g) : M, P = V.length, ot = gr(N) ? N : s == null ? void 0 : s[N || "keyframes"];
7397
7404
  if (P <= 2 && ot) {
7398
7405
  let z = 100;
7399
- if (P === 2 && Ud(V)) {
7406
+ if (P === 2 && Yd(V)) {
7400
7407
  const Ae = V[1] - V[0];
7401
7408
  z = Math.abs(Ae);
7402
7409
  }
@@ -7412,9 +7419,9 @@ function jd(e, { defaultTransition: t = {}, ...n } = {}, r, s) {
7412
7419
  const at = d + je;
7413
7420
  O.length === 1 && O[0] === 0 && (O[1] = 1);
7414
7421
  const lt = O.length - V.length;
7415
- if (lt > 0 && vi(O, lt), V.length === 1 && V.unshift(null), J && J < Bd) {
7422
+ if (lt > 0 && vi(O, lt), V.length === 1 && V.unshift(null), J && J < jd) {
7416
7423
  const z = ie > 0 ? ee / ie : 0;
7417
- ie = Ld(ie, J, ee);
7424
+ ie = Dd(ie, J, ee);
7418
7425
  const B = [...V], xe = [...O];
7419
7426
  Z = Array.isArray(Z) ? [...Z] : [Z];
7420
7427
  const Ae = [...Z], G = Q === "reverse" || Q === "mirror";
@@ -7426,21 +7433,21 @@ function jd(e, { defaultTransition: t = {}, ...n } = {}, r, s) {
7426
7433
  for (let ut = 0; ut < Le.length; ut++)
7427
7434
  O.push(xe[ut] + vr), Z.push(ut === 0 ? "linear" : /* @__PURE__ */ ii(vo, ut - 1));
7428
7435
  }
7429
- _d(O, J, z);
7436
+ Nd(O, J, z);
7430
7437
  }
7431
7438
  const Ke = at + ie;
7432
- Fd($, V, Z, O, at, Ke), k = Math.max(je + ie, k), f = Math.max(Ke, f);
7439
+ _d(E, V, Z, O, at, Ke), k = Math.max(je + ie, k), f = Math.max(Ke, f);
7433
7440
  };
7434
7441
  if (oe(h)) {
7435
7442
  const T = rs(h, a);
7436
7443
  C(p, v, ss("default", T));
7437
7444
  } else {
7438
7445
  const T = qi(h, p, r, l), A = T.length;
7439
- for (let $ = 0; $ < A; $++) {
7446
+ for (let E = 0; E < A; E++) {
7440
7447
  p = p, v = v;
7441
- const E = T[$], g = rs(E, a);
7448
+ const $ = T[E], g = rs($, a);
7442
7449
  for (const V in p)
7443
- C(p[V], Gd(v, V), ss(V, g), $, A);
7450
+ C(p[V], Wd(v, V), ss(V, g), E, A);
7444
7451
  }
7445
7452
  }
7446
7453
  u = d, d += k;
@@ -7448,21 +7455,21 @@ function jd(e, { defaultTransition: t = {}, ...n } = {}, r, s) {
7448
7455
  return a.forEach((m, y) => {
7449
7456
  for (const h in m) {
7450
7457
  const p = m[h];
7451
- p.sort(Nd);
7458
+ p.sort(zd);
7452
7459
  const v = [], k = [], C = [];
7453
- for (let E = 0; E < p.length; E++) {
7454
- const { at: g, value: V, easing: M } = p[E];
7460
+ for (let $ = 0; $ < p.length; $++) {
7461
+ const { at: g, value: V, easing: M } = p[$];
7455
7462
  v.push(V), k.push(/* @__PURE__ */ sr(0, f, g)), C.push(M || "easeOut");
7456
7463
  }
7457
- k[0] !== 0 && (k.unshift(0), v.unshift(v[0]), C.unshift(zd)), k[k.length - 1] !== 1 && (k.push(1), v.push(null)), o.has(y) || o.set(y, {
7464
+ k[0] !== 0 && (k.unshift(0), v.unshift(v[0]), C.unshift(Bd)), k[k.length - 1] !== 1 && (k.push(1), v.push(null)), o.has(y) || o.set(y, {
7458
7465
  keyframes: {},
7459
7466
  transition: {}
7460
7467
  });
7461
7468
  const T = o.get(y);
7462
7469
  T.keyframes[h] = v;
7463
- const { type: A, ...$ } = t;
7470
+ const { type: A, ...E } = t;
7464
7471
  T.transition[h] = {
7465
- ...$,
7472
+ ...E,
7466
7473
  duration: f,
7467
7474
  ease: C,
7468
7475
  times: k,
@@ -7477,17 +7484,17 @@ function rs(e, t) {
7477
7484
  function ss(e, t) {
7478
7485
  return t[e] || (t[e] = []), t[e];
7479
7486
  }
7480
- function Kd(e) {
7487
+ function Gd(e) {
7481
7488
  return Array.isArray(e) ? e : [e];
7482
7489
  }
7483
- function Gd(e, t) {
7490
+ function Wd(e, t) {
7484
7491
  return e && e[t] ? {
7485
7492
  ...e,
7486
7493
  ...e[t]
7487
7494
  } : { ...e };
7488
7495
  }
7489
- const Wd = (e) => typeof e == "number", Ud = (e) => e.every(Wd);
7490
- function Yd(e) {
7496
+ const Ud = (e) => typeof e == "number", Yd = (e) => e.every(Ud);
7497
+ function Xd(e) {
7491
7498
  const t = {
7492
7499
  presenceContext: null,
7493
7500
  props: {},
@@ -7501,10 +7508,10 @@ function Yd(e) {
7501
7508
  },
7502
7509
  latestValues: {}
7503
7510
  }
7504
- }, n = Bi(e) && !td(e) ? new Rd(t) : new kd(t);
7511
+ }, n = Bi(e) && !nd(e) ? new Od(t) : new Sd(t);
7505
7512
  n.mount(e), Tt.set(e, n);
7506
7513
  }
7507
- function Xd(e) {
7514
+ function Hd(e) {
7508
7515
  const t = {
7509
7516
  presenceContext: null,
7510
7517
  props: {},
@@ -7514,30 +7521,30 @@ function Xd(e) {
7514
7521
  },
7515
7522
  latestValues: {}
7516
7523
  }
7517
- }, n = new Td(t);
7524
+ }, n = new Ad(t);
7518
7525
  n.mount(e), Tt.set(e, n);
7519
7526
  }
7520
- function Hd(e, t) {
7527
+ function qd(e, t) {
7521
7528
  return oe(e) || typeof e == "number" || typeof e == "string" && !yr(t);
7522
7529
  }
7523
7530
  function Zi(e, t, n, r) {
7524
7531
  const s = [];
7525
- if (Hd(e, t))
7526
- s.push(Od(e, yr(t) && t.default || t, n && (n.default || n)));
7532
+ if (qd(e, t))
7533
+ s.push(Ld(e, yr(t) && t.default || t, n && (n.default || n)));
7527
7534
  else {
7528
7535
  if (e == null)
7529
7536
  return s;
7530
7537
  const i = qi(e, t, r), o = i.length;
7531
7538
  for (let a = 0; a < o; a++) {
7532
- const l = i[a], c = l instanceof Element ? Yd : Xd;
7539
+ const l = i[a], c = l instanceof Element ? Xd : Hd;
7533
7540
  Tt.has(l) || c(l);
7534
7541
  const u = Tt.get(l), d = { ...n };
7535
- "delay" in d && typeof d.delay == "function" && (d.delay = d.delay(a, o)), s.push(...zu(u, { ...t, transition: d }, {}));
7542
+ "delay" in d && typeof d.delay == "function" && (d.delay = d.delay(a, o)), s.push(...Bu(u, { ...t, transition: d }, {}));
7536
7543
  }
7537
7544
  }
7538
7545
  return s;
7539
7546
  }
7540
- function qd(e, t, n) {
7547
+ function Zd(e, t, n) {
7541
7548
  const r = [], s = e.map((o) => {
7542
7549
  if (Array.isArray(o) && typeof o[0] == "function") {
7543
7550
  const a = o[0], l = Qe(0);
@@ -7545,64 +7552,64 @@ function qd(e, t, n) {
7545
7552
  }
7546
7553
  return o;
7547
7554
  });
7548
- return jd(s, t, n, { spring: St }).forEach(({ keyframes: o, transition: a }, l) => {
7555
+ return Kd(s, t, n, { spring: St }).forEach(({ keyframes: o, transition: a }, l) => {
7549
7556
  r.push(...Zi(l, o, a));
7550
7557
  }), r;
7551
7558
  }
7552
- function Zd(e) {
7559
+ function Jd(e) {
7553
7560
  return Array.isArray(e) && e.some(Array.isArray);
7554
7561
  }
7555
- function Jd(e = {}) {
7562
+ function Qd(e = {}) {
7556
7563
  const { scope: t, reduceMotion: n, skipAnimations: r } = e;
7557
7564
  function s(i, o, a) {
7558
7565
  let l = [], c;
7559
7566
  const u = {};
7560
- if (n !== void 0 && (u.reduceMotion = n), r !== void 0 && (u.skipAnimations = r), Zd(i)) {
7567
+ if (n !== void 0 && (u.reduceMotion = n), r !== void 0 && (u.skipAnimations = r), Jd(i)) {
7561
7568
  const { onComplete: f, ...m } = o || {};
7562
- typeof f == "function" && (c = f), l = qd(i, { ...u, ...m }, t);
7569
+ typeof f == "function" && (c = f), l = Zd(i, { ...u, ...m }, t);
7563
7570
  } else {
7564
7571
  const { onComplete: f, ...m } = a || {};
7565
7572
  typeof f == "function" && (c = f), l = Zi(i, o, { ...u, ...m }, t);
7566
7573
  }
7567
- const d = new bu(l);
7574
+ const d = new yu(l);
7568
7575
  return c && d.finished.then(c), t && (t.animations.push(d), d.finished.then(() => {
7569
7576
  tr(t.animations, d);
7570
7577
  })), d;
7571
7578
  }
7572
7579
  return s;
7573
7580
  }
7574
- const Ji = Jd(), Qd = "a4ui-effects";
7575
- function ef() {
7581
+ const Ji = Qd(), ef = "a4ui-effects";
7582
+ function tf() {
7576
7583
  try {
7577
7584
  return window.localStorage;
7578
7585
  } catch {
7579
7586
  return null;
7580
7587
  }
7581
7588
  }
7582
- function tf() {
7589
+ function nf() {
7583
7590
  var t;
7584
7591
  try {
7585
7592
  if (new URLSearchParams(window.location.search).get("calm") === "1") return !1;
7586
7593
  } catch {
7587
7594
  }
7588
- const e = (t = ef()) == null ? void 0 : t.getItem(Qd);
7595
+ const e = (t = tf()) == null ? void 0 : t.getItem(ef);
7589
7596
  return e === null ? !0 : e === "1";
7590
7597
  }
7591
- function nf(e) {
7598
+ function rf(e) {
7592
7599
  typeof document > "u" || document.documentElement.classList.toggle("calm", !e);
7593
7600
  }
7594
- const Qi = tf();
7595
- nf(Qi);
7596
- const [rf] = se(Qi);
7597
- function sf() {
7598
- return !rf();
7601
+ const Qi = nf();
7602
+ rf(Qi);
7603
+ const [sf] = se(Qi);
7604
+ function of() {
7605
+ return !sf();
7599
7606
  }
7600
- const of = "(prefers-reduced-motion: reduce)";
7601
- function af() {
7602
- return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(of).matches;
7607
+ const af = "(prefers-reduced-motion: reduce)";
7608
+ function lf() {
7609
+ return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(af).matches;
7603
7610
  }
7604
- const lf = "a4ui-motion-forced";
7605
- function cf() {
7611
+ const cf = "a4ui-motion-forced";
7612
+ function uf() {
7606
7613
  try {
7607
7614
  return window.localStorage;
7608
7615
  } catch {
@@ -7610,12 +7617,12 @@ function cf() {
7610
7617
  }
7611
7618
  }
7612
7619
  var fs;
7613
- const [eo] = se(((fs = cf()) == null ? void 0 : fs.getItem(lf)) === "1");
7620
+ const [eo] = se(((fs = uf()) == null ? void 0 : fs.getItem(cf)) === "1");
7614
7621
  typeof document < "u" && document.documentElement.classList.toggle("force-motion", re(eo));
7615
7622
  function Rt() {
7616
- return sf() || af() && !eo();
7623
+ return of() || lf() && !eo();
7617
7624
  }
7618
- function uf(e, t = 600) {
7625
+ function df(e, t = 600) {
7619
7626
  const [n, r] = se(0);
7620
7627
  let s;
7621
7628
  return Ve(() => {
@@ -7630,16 +7637,16 @@ function uf(e, t = 600) {
7630
7637
  ease: "easeOut",
7631
7638
  onUpdate: (a) => r(a)
7632
7639
  }));
7633
- }), ge(() => s == null ? void 0 : s.stop()), n;
7640
+ }), pe(() => s == null ? void 0 : s.stop()), n;
7634
7641
  }
7635
- function df(e, t = {}) {
7642
+ function ff(e, t = {}) {
7636
7643
  Rt() || Ji(
7637
7644
  e,
7638
7645
  { opacity: [0, 1], y: [t.y ?? 8, 0] },
7639
7646
  { duration: t.duration ?? 0.32, delay: t.delay ?? 0, ease: "easeOut" }
7640
7647
  );
7641
7648
  }
7642
- function ff(e, t, n = {}) {
7649
+ function hf(e, t, n = {}) {
7643
7650
  if (Rt()) return;
7644
7651
  const r = e.getBoundingClientRect(), s = t.clientX - r.left, i = t.clientY - r.top, o = 2 * Math.max(Math.hypot(s, i), Math.hypot(r.width - s, i), Math.hypot(s, r.height - i), Math.hypot(r.width - s, r.height - i)), a = document.createElement("span");
7645
7652
  a.setAttribute("aria-hidden", "true"), Object.assign(a.style, {
@@ -7666,37 +7673,37 @@ function ff(e, t, n = {}) {
7666
7673
  l.finished.then(c).catch(c);
7667
7674
  }
7668
7675
  on(["pointerdown"]);
7669
- var hf = /* @__PURE__ */ F("<button>");
7670
- const mf = {
7676
+ var mf = /* @__PURE__ */ F("<button>");
7677
+ const gf = {
7671
7678
  primary: "bg-primary text-primary-foreground hover:bg-primary/90",
7672
7679
  secondary: "bg-muted text-foreground hover:bg-muted/70",
7673
7680
  outline: "border border-border bg-transparent text-foreground hover:bg-muted",
7674
7681
  ghost: "bg-transparent text-foreground hover:bg-muted"
7675
- }, gf = "inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";
7676
- function pf(e) {
7682
+ }, pf = "inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";
7683
+ function bf(e) {
7677
7684
  const [t, n] = ae(e, ["variant", "class", "type", "children", "ripple", "onPointerDown"]), r = (s) => {
7678
- t.ripple && ff(s.currentTarget, s, {
7685
+ t.ripple && hf(s.currentTarget, s, {
7679
7686
  opacity: 0.35
7680
7687
  });
7681
7688
  const i = t.onPointerDown;
7682
7689
  typeof i == "function" ? i(s) : i && i[0](i[1], s);
7683
7690
  };
7684
7691
  return (() => {
7685
- var s = hf();
7692
+ var s = mf();
7686
7693
  return s.$$pointerdown = r, et(s, D({
7687
7694
  get type() {
7688
7695
  return t.type ?? "button";
7689
7696
  },
7690
7697
  get class() {
7691
- return X(gf, mf[t.variant ?? "primary"], t.ripple && "relative overflow-hidden", t.class);
7698
+ return X(pf, gf[t.variant ?? "primary"], t.ripple && "relative overflow-hidden", t.class);
7692
7699
  }
7693
7700
  }, n), !1, !0), L(s, () => t.children), s;
7694
7701
  })();
7695
7702
  }
7696
7703
  on(["pointerdown"]);
7697
- var bf = /* @__PURE__ */ F('<span class="text-base font-normal text-muted-foreground">'), yf = /* @__PURE__ */ F('<div><span class="flex items-baseline gap-2 tabular-nums text-4xl font-bold tracking-tight text-foreground"><span>'), vf = /* @__PURE__ */ F("<svg><polyline stroke=hsl(var(--primary)) stroke-width=1.5 stroke-linecap=round style=transform-origin:center;transform-box:view-box></svg>", !1, !0, !1), wf = /* @__PURE__ */ F('<svg role=img aria-label="Analog clock"><circle fill=none stroke=hsl(var(--border)) stroke-width=2></circle><polyline stroke=hsl(var(--foreground)) stroke-width=4 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><polyline stroke=hsl(var(--foreground)) stroke-width=3 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><circle r=3.5 fill=hsl(var(--primary))>'), xf = /* @__PURE__ */ F("<svg><line stroke=hsl(var(--muted-foreground)) stroke-linecap=round></svg>", !1, !0, !1);
7704
+ var yf = /* @__PURE__ */ F('<span class="text-base font-normal text-muted-foreground">'), vf = /* @__PURE__ */ F('<div><span class="flex items-baseline gap-2 tabular-nums text-4xl font-bold tracking-tight text-foreground"><span>'), wf = /* @__PURE__ */ F("<svg><polyline stroke=hsl(var(--primary)) stroke-width=1.5 stroke-linecap=round style=transform-origin:center;transform-box:view-box></svg>", !1, !0, !1), xf = /* @__PURE__ */ F('<svg role=img aria-label="Analog clock"><circle fill=none stroke=hsl(var(--border)) stroke-width=2></circle><polyline stroke=hsl(var(--foreground)) stroke-width=4 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><polyline stroke=hsl(var(--foreground)) stroke-width=3 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><circle r=3.5 fill=hsl(var(--primary))>'), kf = /* @__PURE__ */ F("<svg><line stroke=hsl(var(--muted-foreground)) stroke-linecap=round></svg>", !1, !0, !1);
7698
7705
  const ht = (e) => String(e).padStart(2, "0");
7699
- function kf(e, t) {
7706
+ function Sf(e, t) {
7700
7707
  if (!t)
7701
7708
  return {
7702
7709
  hours: e.getHours(),
@@ -7719,7 +7726,7 @@ function kf(e, t) {
7719
7726
  seconds: r("second")
7720
7727
  };
7721
7728
  }
7722
- function Sf(e) {
7729
+ function Tf(e) {
7723
7730
  const t = () => {
7724
7731
  const {
7725
7732
  hours: n,
@@ -7733,19 +7740,19 @@ function Sf(e) {
7733
7740
  };
7734
7741
  };
7735
7742
  return (() => {
7736
- var n = yf(), r = n.firstChild, s = r.firstChild;
7737
- return L(s, () => t().time), L(r, b(pe, {
7743
+ var n = vf(), r = n.firstChild, s = r.firstChild;
7744
+ return L(s, () => t().time), L(r, b(he, {
7738
7745
  get when() {
7739
7746
  return e.hour12;
7740
7747
  },
7741
7748
  get children() {
7742
- var i = bf();
7749
+ var i = yf();
7743
7750
  return L(i, () => t().suffix), i;
7744
7751
  }
7745
7752
  }), null), q(() => Pe(n, X("flex flex-col items-center justify-center", e.class))), n;
7746
7753
  })();
7747
7754
  }
7748
- function Tf(e) {
7755
+ function Af(e) {
7749
7756
  const t = () => e.size, n = () => t() / 2, r = () => t() / 2, s = () => t() / 2, i = () => e.parts.hours % 12 * 30 + e.parts.minutes * 0.5, o = () => e.parts.minutes * 6 + e.parts.seconds * 0.1, a = () => e.parts.seconds * 6, l = Array.from({
7750
7757
  length: 12
7751
7758
  }, (u, d) => d), c = (u) => {
@@ -7753,22 +7760,22 @@ function Tf(e) {
7753
7760
  return `${n()},${r()} ${n()},${r() - d}`;
7754
7761
  };
7755
7762
  return (() => {
7756
- var u = wf(), d = u.firstChild, f = d.nextSibling, m = f.nextSibling, y = m.nextSibling;
7763
+ var u = xf(), d = u.firstChild, f = d.nextSibling, m = f.nextSibling, y = m.nextSibling;
7757
7764
  return L(u, b(qt, {
7758
7765
  each: l,
7759
7766
  children: (h) => {
7760
- const p = h * 30, v = s() - 4, k = s() - (h % 3 === 0 ? 14 : 9), C = n() + v * Math.sin(p * Math.PI / 180), T = r() - v * Math.cos(p * Math.PI / 180), A = n() + k * Math.sin(p * Math.PI / 180), $ = r() - k * Math.cos(p * Math.PI / 180);
7767
+ const p = h * 30, v = s() - 4, k = s() - (h % 3 === 0 ? 14 : 9), C = n() + v * Math.sin(p * Math.PI / 180), T = r() - v * Math.cos(p * Math.PI / 180), A = n() + k * Math.sin(p * Math.PI / 180), E = r() - k * Math.cos(p * Math.PI / 180);
7761
7768
  return (() => {
7762
- var E = xf();
7763
- return R(E, "x1", C), R(E, "y1", T), R(E, "x2", A), R(E, "y2", $), R(E, "stroke-width", h % 3 === 0 ? 2 : 1), E;
7769
+ var $ = kf();
7770
+ return R($, "x1", C), R($, "y1", T), R($, "x2", A), R($, "y2", E), R($, "stroke-width", h % 3 === 0 ? 2 : 1), $;
7764
7771
  })();
7765
7772
  }
7766
- }), f), L(u, b(pe, {
7773
+ }), f), L(u, b(he, {
7767
7774
  get when() {
7768
7775
  return e.seconds;
7769
7776
  },
7770
7777
  get children() {
7771
- var h = vf();
7778
+ var h = wf();
7772
7779
  return q((p) => {
7773
7780
  var v = c(0.75), k = `rotate(${a()}deg)`;
7774
7781
  return v !== p.e && R(h, "points", p.e = v), k !== p.t && qe(h, "transform", p.t = k), p;
@@ -7778,8 +7785,8 @@ function Tf(e) {
7778
7785
  }), h;
7779
7786
  }
7780
7787
  }), y), q((h) => {
7781
- var p = t(), v = t(), k = `0 0 ${t()} ${t()}`, C = X("inline-block", e.class), T = n(), A = r(), $ = s() - 2, E = c(0.45), g = `rotate(${i()}deg)`, V = c(0.65), M = `rotate(${o()}deg)`, O = n(), N = r();
7782
- return p !== h.e && R(u, "width", h.e = p), v !== h.t && R(u, "height", h.t = v), k !== h.a && R(u, "viewBox", h.a = k), C !== h.o && R(u, "class", h.o = C), T !== h.i && R(d, "cx", h.i = T), A !== h.n && R(d, "cy", h.n = A), $ !== h.s && R(d, "r", h.s = $), E !== h.h && R(f, "points", h.h = E), g !== h.r && qe(f, "transform", h.r = g), V !== h.d && R(m, "points", h.d = V), M !== h.l && qe(m, "transform", h.l = M), O !== h.u && R(y, "cx", h.u = O), N !== h.c && R(y, "cy", h.c = N), h;
7788
+ var p = t(), v = t(), k = `0 0 ${t()} ${t()}`, C = X("inline-block", e.class), T = n(), A = r(), E = s() - 2, $ = c(0.45), g = `rotate(${i()}deg)`, V = c(0.65), M = `rotate(${o()}deg)`, O = n(), N = r();
7789
+ return p !== h.e && R(u, "width", h.e = p), v !== h.t && R(u, "height", h.t = v), k !== h.a && R(u, "viewBox", h.a = k), C !== h.o && R(u, "class", h.o = C), T !== h.i && R(d, "cx", h.i = T), A !== h.n && R(d, "cy", h.n = A), E !== h.s && R(d, "r", h.s = E), $ !== h.h && R(f, "points", h.h = $), g !== h.r && qe(f, "transform", h.r = g), V !== h.d && R(m, "points", h.d = V), M !== h.l && qe(m, "transform", h.l = M), O !== h.u && R(y, "cx", h.u = O), N !== h.c && R(y, "cy", h.c = N), h;
7783
7790
  }, {
7784
7791
  e: void 0,
7785
7792
  t: void 0,
@@ -7797,19 +7804,19 @@ function Tf(e) {
7797
7804
  }), u;
7798
7805
  })();
7799
7806
  }
7800
- function Af(e) {
7807
+ function Cf(e) {
7801
7808
  const [t, n] = se(/* @__PURE__ */ new Date());
7802
7809
  At(() => {
7803
7810
  const l = setInterval(() => n(/* @__PURE__ */ new Date()), 1e3);
7804
- ge(() => clearInterval(l));
7811
+ pe(() => clearInterval(l));
7805
7812
  });
7806
- const r = () => e.variant ?? "digital", s = () => e.seconds ?? !0, i = () => e.hour12 ?? !1, o = () => e.size ?? 160, a = () => kf(t(), e.timeZone);
7807
- return b(pe, {
7813
+ const r = () => e.variant ?? "digital", s = () => e.seconds ?? !0, i = () => e.hour12 ?? !1, o = () => e.size ?? 160, a = () => Sf(t(), e.timeZone);
7814
+ return b(he, {
7808
7815
  get when() {
7809
7816
  return r() === "analog";
7810
7817
  },
7811
7818
  get fallback() {
7812
- return b(Sf, {
7819
+ return b(Tf, {
7813
7820
  get parts() {
7814
7821
  return a();
7815
7822
  },
@@ -7825,7 +7832,7 @@ function Af(e) {
7825
7832
  });
7826
7833
  },
7827
7834
  get children() {
7828
- return b(Tf, {
7835
+ return b(Af, {
7829
7836
  get parts() {
7830
7837
  return a();
7831
7838
  },
@@ -7842,30 +7849,30 @@ function Af(e) {
7842
7849
  }
7843
7850
  });
7844
7851
  }
7845
- var Cf = /* @__PURE__ */ F('<span class="relative inline-block h-[1em] w-[0.62em] overflow-hidden align-top"><span class="absolute inset-x-0 top-0 flex flex-col transition-transform duration-500 ease-out">'), Mf = /* @__PURE__ */ F('<span class="block h-[1em] text-center leading-none">'), Vf = /* @__PURE__ */ F('<span class="flex text-2xl font-bold tabular-nums text-foreground">'), Pf = /* @__PURE__ */ F("<div>"), Ef = /* @__PURE__ */ F('<div class="flex flex-col items-center"><span class="text-[10px] uppercase tracking-wide text-muted-foreground">');
7846
- const jn = 1e3, Kn = 60 * jn, Gn = 60 * Kn, is = 24 * Gn, $f = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], yn = (e) => String(e).padStart(2, "0");
7847
- function If(e) {
7852
+ var Mf = /* @__PURE__ */ F('<span class="relative inline-block h-[1em] w-[0.62em] overflow-hidden align-top"><span class="absolute inset-x-0 top-0 flex flex-col transition-transform duration-500 ease-out">'), Vf = /* @__PURE__ */ F('<span class="block h-[1em] text-center leading-none">'), Pf = /* @__PURE__ */ F('<span class="flex text-2xl font-bold tabular-nums text-foreground">'), $f = /* @__PURE__ */ F("<div>"), Ef = /* @__PURE__ */ F('<div class="flex flex-col items-center"><span class="text-[10px] uppercase tracking-wide text-muted-foreground">');
7853
+ const jn = 1e3, Kn = 60 * jn, Gn = 60 * Kn, is = 24 * Gn, If = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], yn = (e) => String(e).padStart(2, "0");
7854
+ function Rf(e) {
7848
7855
  const t = () => e.char >= "0" && e.char <= "9" ? Number(e.char) : 0;
7849
7856
  return (() => {
7850
- var n = Cf(), r = n.firstChild;
7857
+ var n = Mf(), r = n.firstChild;
7851
7858
  return L(r, b(Xn, {
7852
- each: $f,
7859
+ each: If,
7853
7860
  children: (s) => (() => {
7854
- var i = Mf();
7861
+ var i = Vf();
7855
7862
  return L(i, s), i;
7856
7863
  })()
7857
7864
  })), q((s) => qe(r, "transform", `translateY(${t() * -10}%)`)), n;
7858
7865
  })();
7859
7866
  }
7860
- function Rf(e) {
7867
+ function Of(e) {
7861
7868
  const t = () => e.value.split("");
7862
7869
  return (() => {
7863
- var n = Vf();
7870
+ var n = Pf();
7864
7871
  return L(n, b(Xn, {
7865
7872
  get each() {
7866
7873
  return t();
7867
7874
  },
7868
- children: (r) => b(If, {
7875
+ children: (r) => b(Rf, {
7869
7876
  get char() {
7870
7877
  return r();
7871
7878
  }
@@ -7873,7 +7880,7 @@ function Rf(e) {
7873
7880
  })), n;
7874
7881
  })();
7875
7882
  }
7876
- function Of(e) {
7883
+ function Lf(e) {
7877
7884
  const t = ne(() => e.to.getTime()), n = () => Math.max(0, t() - Date.now()), [r, s] = se(n());
7878
7885
  let i = !1;
7879
7886
  const o = (f) => {
@@ -7885,7 +7892,7 @@ function Of(e) {
7885
7892
  const m = n();
7886
7893
  s(m), o(m);
7887
7894
  }, jn);
7888
- ge(() => clearInterval(f));
7895
+ pe(() => clearInterval(f));
7889
7896
  });
7890
7897
  const a = () => Math.floor(r() / is), l = () => Math.floor(r() % is / Gn), c = () => Math.floor(r() % Gn / Kn), u = () => Math.floor(r() % Kn / jn), d = () => [{
7891
7898
  label: "Days",
@@ -7901,14 +7908,14 @@ function Of(e) {
7901
7908
  value: yn(u())
7902
7909
  }];
7903
7910
  return (() => {
7904
- var f = Pf();
7911
+ var f = $f();
7905
7912
  return L(f, b(Xn, {
7906
7913
  get each() {
7907
7914
  return d();
7908
7915
  },
7909
7916
  children: (m) => (() => {
7910
7917
  var y = Ef(), h = y.firstChild;
7911
- return L(y, b(Rf, {
7918
+ return L(y, b(Of, {
7912
7919
  get value() {
7913
7920
  return m().value;
7914
7921
  }
@@ -7917,25 +7924,25 @@ function Of(e) {
7917
7924
  })), q(() => Pe(f, X("flex gap-4", e.class))), f;
7918
7925
  })();
7919
7926
  }
7920
- var Lf = /* @__PURE__ */ F("<kbd>");
7921
- const Df = "inline-flex min-w-[1.5rem] items-center justify-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground shadow-sm";
7922
- function Ff(e) {
7927
+ var Df = /* @__PURE__ */ F("<kbd>");
7928
+ const Ff = "inline-flex min-w-[1.5rem] items-center justify-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground shadow-sm";
7929
+ function _f(e) {
7923
7930
  return (() => {
7924
- var t = Lf();
7925
- return L(t, () => e.children), q(() => Pe(t, X(Df, e.class))), t;
7931
+ var t = Df();
7932
+ return L(t, () => e.children), q(() => Pe(t, X(Ff, e.class))), t;
7926
7933
  })();
7927
7934
  }
7928
- function _f(e) {
7935
+ function Nf(e) {
7929
7936
  return (...t) => {
7930
7937
  for (const n of e)
7931
7938
  n && n(...t);
7932
7939
  };
7933
7940
  }
7934
- const Nf = (e) => typeof e == "function" && !e.length ? e() : e, zf = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
7941
+ const zf = (e) => typeof e == "function" && !e.length ? e() : e, Bf = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
7935
7942
  function os(e) {
7936
7943
  const t = {};
7937
7944
  let n;
7938
- for (; n = zf.exec(e); )
7945
+ for (; n = Bf.exec(e); )
7939
7946
  t[n[1]] = n[2];
7940
7947
  return t;
7941
7948
  }
@@ -7947,10 +7954,10 @@ function to(e, t) {
7947
7954
  } else typeof t == "string" && (t = os(t));
7948
7955
  return { ...e, ...t };
7949
7956
  }
7950
- function Bf(...e) {
7951
- return _f(e);
7957
+ function jf(...e) {
7958
+ return Nf(e);
7952
7959
  }
7953
- function jf(e) {
7960
+ function Kf(e) {
7954
7961
  return Object.prototype.toString.call(e) === "[object String]";
7955
7962
  }
7956
7963
  function no(e) {
@@ -8015,9 +8022,9 @@ const so = {
8015
8022
  }
8016
8023
  }
8017
8024
  };
8018
- class Kf {
8025
+ class Gf {
8019
8026
  constructor(t, n = {}) {
8020
- this.numberFormatter = Gf(t, n), this.options = n;
8027
+ this.numberFormatter = Wf(t, n), this.options = n;
8021
8028
  }
8022
8029
  /**
8023
8030
  * Formats a number value as a string, according to the locale and options provided to the
@@ -8026,7 +8033,7 @@ class Kf {
8026
8033
  format(t) {
8027
8034
  var r;
8028
8035
  let n = "";
8029
- if (!Wn && this.options.signDisplay != null ? n = Wf(this.numberFormatter, this.options.signDisplay, t) : n = this.numberFormatter.format(t), this.options.style === "unit" && !rn) {
8036
+ if (!Wn && this.options.signDisplay != null ? n = Uf(this.numberFormatter, this.options.signDisplay, t) : n = this.numberFormatter.format(t), this.options.style === "unit" && !rn) {
8030
8037
  let { unit: s, unitDisplay: i = "short", locale: o } = this.resolvedOptions();
8031
8038
  if (!s) return n;
8032
8039
  let a = (r = so[s]) == null ? void 0 : r[i];
@@ -8079,7 +8086,7 @@ class Kf {
8079
8086
  }), t;
8080
8087
  }
8081
8088
  }
8082
- function Gf(e, t = {}) {
8089
+ function Wf(e, t = {}) {
8083
8090
  var i;
8084
8091
  let { numberingSystem: n } = t;
8085
8092
  if (n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`), t.style === "unit" && !rn) {
@@ -8096,7 +8103,7 @@ function Gf(e, t = {}) {
8096
8103
  let s = new Intl.NumberFormat(e, t);
8097
8104
  return vn.set(r, s), s;
8098
8105
  }
8099
- function Wf(e, t, n) {
8106
+ function Uf(e, t, n) {
8100
8107
  if (t === "auto") return e.format(n);
8101
8108
  if (t === "never") return e.format(Math.abs(n));
8102
8109
  {
@@ -8109,17 +8116,17 @@ function Wf(e, t, n) {
8109
8116
  } else return e.format(n);
8110
8117
  }
8111
8118
  }
8112
- var Uf = /* @__PURE__ */ new Set(["Avst", "Arab", "Armi", "Syrc", "Samr", "Mand", "Thaa", "Mend", "Nkoo", "Adlm", "Rohg", "Hebr"]), Yf = /* @__PURE__ */ new Set(["ae", "ar", "arc", "bcc", "bqi", "ckb", "dv", "fa", "glk", "he", "ku", "mzn", "nqo", "pnb", "ps", "sd", "ug", "ur", "yi"]);
8113
- function Xf(e) {
8119
+ var Yf = /* @__PURE__ */ new Set(["Avst", "Arab", "Armi", "Syrc", "Samr", "Mand", "Thaa", "Mend", "Nkoo", "Adlm", "Rohg", "Hebr"]), Xf = /* @__PURE__ */ new Set(["ae", "ar", "arc", "bcc", "bqi", "ckb", "dv", "fa", "glk", "he", "ku", "mzn", "nqo", "pnb", "ps", "sd", "ug", "ur", "yi"]);
8120
+ function Hf(e) {
8114
8121
  if (Intl.Locale) {
8115
8122
  const n = new Intl.Locale(e).maximize().script ?? "";
8116
- return Uf.has(n);
8123
+ return Yf.has(n);
8117
8124
  }
8118
8125
  const t = e.split("-")[0];
8119
- return Yf.has(t);
8126
+ return Xf.has(t);
8120
8127
  }
8121
- function Hf(e) {
8122
- return Xf(e) ? "rtl" : "ltr";
8128
+ function qf(e) {
8129
+ return Hf(e) ? "rtl" : "ltr";
8123
8130
  }
8124
8131
  function io() {
8125
8132
  let e = typeof navigator < "u" && // @ts-ignore
@@ -8131,7 +8138,7 @@ function io() {
8131
8138
  }
8132
8139
  return {
8133
8140
  locale: e,
8134
- direction: Hf(e)
8141
+ direction: qf(e)
8135
8142
  };
8136
8143
  }
8137
8144
  var Un = io(), pt = /* @__PURE__ */ new Set();
@@ -8140,10 +8147,10 @@ function cs() {
8140
8147
  for (const e of pt)
8141
8148
  e(Un);
8142
8149
  }
8143
- function qf() {
8150
+ function Zf() {
8144
8151
  const [e, t] = se(Un), n = ne(() => e());
8145
8152
  return At(() => {
8146
- pt.size === 0 && window.addEventListener("languagechange", cs), pt.add(t), ge(() => {
8153
+ pt.size === 0 && window.addEventListener("languagechange", cs), pt.add(t), pe(() => {
8147
8154
  pt.delete(t), pt.size === 0 && window.removeEventListener("languagechange", cs);
8148
8155
  });
8149
8156
  }), {
@@ -8151,16 +8158,16 @@ function qf() {
8151
8158
  direction: () => n().direction
8152
8159
  };
8153
8160
  }
8154
- var Zf = Ct();
8155
- function Jf() {
8156
- const e = qf();
8157
- return Mt(Zf) || e;
8161
+ var Jf = Ct();
8162
+ function Qf() {
8163
+ const e = Zf();
8164
+ return Mt(Jf) || e;
8158
8165
  }
8159
8166
  function oo(e) {
8160
8167
  const {
8161
8168
  locale: t
8162
- } = Jf();
8163
- return ne(() => new Kf(t(), Nf(e)));
8169
+ } = Qf();
8170
+ return ne(() => new Gf(t(), zf(e)));
8164
8171
  }
8165
8172
  function ao(e) {
8166
8173
  return (t) => (e(t), () => e(void 0));
@@ -8172,7 +8179,7 @@ function cn() {
8172
8179
  throw new Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");
8173
8180
  return e;
8174
8181
  }
8175
- function Qf(e) {
8182
+ function eh(e) {
8176
8183
  const t = cn(), [n, r] = ae(e, ["style"]);
8177
8184
  return b(we, D({
8178
8185
  as: "div",
@@ -8183,18 +8190,18 @@ function Qf(e) {
8183
8190
  }
8184
8191
  }, () => t.dataset(), r));
8185
8192
  }
8186
- function eh(e) {
8193
+ function th(e) {
8187
8194
  const t = cn(), n = Ot({
8188
8195
  id: t.generateId("label")
8189
8196
  }, e), [r, s] = ae(n, ["id"]);
8190
- return Ve(() => ge(t.registerLabelId(r.id))), b(we, D({
8197
+ return Ve(() => pe(t.registerLabelId(r.id))), b(we, D({
8191
8198
  as: "span",
8192
8199
  get id() {
8193
8200
  return r.id;
8194
8201
  }
8195
8202
  }, () => t.dataset(), s));
8196
8203
  }
8197
- function th(e) {
8204
+ function nh(e) {
8198
8205
  const t = `meter-${ks()}`, n = Ot({
8199
8206
  id: t,
8200
8207
  value: 0,
@@ -8248,13 +8255,13 @@ function th(e) {
8248
8255
  }
8249
8256
  });
8250
8257
  }
8251
- function nh(e) {
8258
+ function rh(e) {
8252
8259
  const t = cn();
8253
8260
  return b(we, D({
8254
8261
  as: "div"
8255
8262
  }, () => t.dataset(), e));
8256
8263
  }
8257
- function rh(e) {
8264
+ function sh(e) {
8258
8265
  const t = cn();
8259
8266
  return b(we, D({
8260
8267
  as: "div"
@@ -8264,13 +8271,13 @@ function rh(e) {
8264
8271
  }
8265
8272
  }));
8266
8273
  }
8267
- var ye = Object.assign(th, {
8268
- Fill: Qf,
8269
- Label: eh,
8270
- Track: nh,
8271
- ValueLabel: rh
8272
- }), sh = /* @__PURE__ */ F('<div class="flex items-center justify-between text-sm text-foreground">');
8273
- function ih(e) {
8274
+ var ye = Object.assign(nh, {
8275
+ Fill: eh,
8276
+ Label: th,
8277
+ Track: rh,
8278
+ ValueLabel: sh
8279
+ }), ih = /* @__PURE__ */ F('<div class="flex items-center justify-between text-sm text-foreground">');
8280
+ function oh(e) {
8274
8281
  const t = () => {
8275
8282
  const n = e.max ?? 100;
8276
8283
  return n <= 0 ? 0 : Math.max(0, Math.min(100, e.value / n * 100));
@@ -8287,12 +8294,12 @@ function ih(e) {
8287
8294
  return X("flex flex-col gap-1.5", e.class);
8288
8295
  },
8289
8296
  get children() {
8290
- return [b(pe, {
8297
+ return [b(he, {
8291
8298
  get when() {
8292
8299
  return e.label;
8293
8300
  },
8294
8301
  get children() {
8295
- var n = sh();
8302
+ var n = ih();
8296
8303
  return L(n, b(ye.Label, {
8297
8304
  get children() {
8298
8305
  return e.label;
@@ -8317,8 +8324,8 @@ function ih(e) {
8317
8324
  }
8318
8325
  });
8319
8326
  }
8320
- var oh = {};
8321
- an(oh, {
8327
+ var ah = {};
8328
+ an(ah, {
8322
8329
  Fill: () => uo,
8323
8330
  Label: () => fo,
8324
8331
  Progress: () => Ye,
@@ -8348,7 +8355,7 @@ function fo(e) {
8348
8355
  const t = Lt(), n = Ot({
8349
8356
  id: t.generateId("label")
8350
8357
  }, e), [r, s] = ae(n, ["id"]);
8351
- return Ve(() => ge(t.registerLabelId(r.id))), b(ye.Label, D({
8358
+ return Ve(() => pe(t.registerLabelId(r.id))), b(ye.Label, D({
8352
8359
  get id() {
8353
8360
  return r.id;
8354
8361
  }
@@ -8410,8 +8417,8 @@ var Ye = Object.assign(ho, {
8410
8417
  Label: fo,
8411
8418
  Track: mo,
8412
8419
  ValueLabel: go
8413
- }), ah = /* @__PURE__ */ F('<div class="flex items-center justify-between text-sm text-foreground">');
8414
- function lh(e) {
8420
+ }), lh = /* @__PURE__ */ F('<div class="flex items-center justify-between text-sm text-foreground">');
8421
+ function ch(e) {
8415
8422
  const t = () => {
8416
8423
  const n = e.max ?? 100;
8417
8424
  return n <= 0 ? 0 : Math.max(0, Math.min(100, e.value / n * 100));
@@ -8428,12 +8435,12 @@ function lh(e) {
8428
8435
  return X("flex flex-col gap-1.5", e.class);
8429
8436
  },
8430
8437
  get children() {
8431
- return [b(pe, {
8438
+ return [b(he, {
8432
8439
  get when() {
8433
8440
  return e.label;
8434
8441
  },
8435
8442
  get children() {
8436
- var n = ah();
8443
+ var n = lh();
8437
8444
  return L(n, b(Ye.Label, {
8438
8445
  get children() {
8439
8446
  return e.label;
@@ -8458,21 +8465,21 @@ function lh(e) {
8458
8465
  }
8459
8466
  });
8460
8467
  }
8461
- var ch = /* @__PURE__ */ F("<div role=radiogroup>"), uh = /* @__PURE__ */ F("<div role=img>"), dh = /* @__PURE__ */ F('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');
8462
- function fh(e) {
8468
+ var uh = /* @__PURE__ */ F("<div role=radiogroup>"), dh = /* @__PURE__ */ F("<div role=img>"), fh = /* @__PURE__ */ F('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');
8469
+ function hh(e) {
8463
8470
  const [t, n] = se(0), r = () => e.max ?? 5, s = () => Array.from({
8464
8471
  length: r()
8465
8472
  }, (l, c) => c + 1), i = () => t() > 0 ? t() : e.value, o = (l) => {
8466
8473
  var c;
8467
8474
  e.readonly || (c = e.onChange) == null || c.call(e, l);
8468
8475
  }, a = (l) => X("h-5 w-5 transition-colors", l <= i() ? "fill-primary text-primary" : "fill-transparent text-muted-foreground");
8469
- return b(pe, {
8476
+ return b(he, {
8470
8477
  get when() {
8471
8478
  return !e.readonly;
8472
8479
  },
8473
8480
  get fallback() {
8474
8481
  return (() => {
8475
- var l = uh();
8482
+ var l = dh();
8476
8483
  return L(l, b(qt, {
8477
8484
  get each() {
8478
8485
  return s();
@@ -8493,13 +8500,13 @@ function fh(e) {
8493
8500
  })();
8494
8501
  },
8495
8502
  get children() {
8496
- var l = ch();
8503
+ var l = uh();
8497
8504
  return l.addEventListener("mouseleave", () => n(0)), L(l, b(qt, {
8498
8505
  get each() {
8499
8506
  return s();
8500
8507
  },
8501
8508
  children: (c) => (() => {
8502
- var u = dh();
8509
+ var u = fh();
8503
8510
  return u.$$keydown = (d) => {
8504
8511
  d.key === "ArrowRight" || d.key === "ArrowUp" ? (d.preventDefault(), o(Math.min(e.value + 1, r()))) : (d.key === "ArrowLeft" || d.key === "ArrowDown") && (d.preventDefault(), o(Math.max(e.value - 1, 0)));
8505
8512
  }, u.$$click = () => o(c), u.addEventListener("blur", () => n(0)), u.addEventListener("focus", () => n(c)), u.addEventListener("mouseenter", () => n(c)), L(u, b(Mr, {
@@ -8520,12 +8527,12 @@ function fh(e) {
8520
8527
  });
8521
8528
  }
8522
8529
  on(["click", "keydown"]);
8523
- var hh = /* @__PURE__ */ F('<div role=progressbar aria-valuemin=0 aria-valuemax=100><svg class=-rotate-90><circle fill=none stroke=hsl(var(--muted))></circle><circle fill=none stroke=hsl(var(--primary)) stroke-linecap=round class=transition-all></circle></svg><div class="absolute inset-0 flex items-center justify-center text-sm font-medium text-foreground">');
8524
- function mh(e) {
8530
+ var mh = /* @__PURE__ */ F('<div role=progressbar aria-valuemin=0 aria-valuemax=100><svg class=-rotate-90><circle fill=none stroke=hsl(var(--muted))></circle><circle fill=none stroke=hsl(var(--primary)) stroke-linecap=round class=transition-all></circle></svg><div class="absolute inset-0 flex items-center justify-center text-sm font-medium text-foreground">');
8531
+ function gh(e) {
8525
8532
  const t = () => e.size ?? 96, n = () => e.thickness ?? 8, r = () => Math.min(100, Math.max(0, e.value)), s = () => (t() - n()) / 2, i = () => 2 * Math.PI * s(), o = () => i() * (1 - r() / 100);
8526
8533
  return (() => {
8527
- var a = hh(), l = a.firstChild, c = l.firstChild, u = c.nextSibling, d = l.nextSibling;
8528
- return L(d, b(pe, {
8534
+ var a = mh(), l = a.firstChild, c = l.firstChild, u = c.nextSibling, d = l.nextSibling;
8535
+ return L(d, b(he, {
8529
8536
  get when() {
8530
8537
  return e.label;
8531
8538
  },
@@ -8536,8 +8543,8 @@ function mh(e) {
8536
8543
  return e.label;
8537
8544
  }
8538
8545
  })), q((f) => {
8539
- var m = r(), y = X("relative inline-flex items-center justify-center", e.class), h = `${t()}px`, p = `${t()}px`, v = t(), k = t(), C = `0 0 ${t()} ${t()}`, T = t() / 2, A = t() / 2, $ = s(), E = n(), g = t() / 2, V = t() / 2, M = s(), O = n(), N = String(i()), J = String(o());
8540
- return m !== f.e && R(a, "aria-valuenow", f.e = m), y !== f.t && Pe(a, f.t = y), h !== f.a && qe(a, "width", f.a = h), p !== f.o && qe(a, "height", f.o = p), v !== f.i && R(l, "width", f.i = v), k !== f.n && R(l, "height", f.n = k), C !== f.s && R(l, "viewBox", f.s = C), T !== f.h && R(c, "cx", f.h = T), A !== f.r && R(c, "cy", f.r = A), $ !== f.d && R(c, "r", f.d = $), E !== f.l && R(c, "stroke-width", f.l = E), g !== f.u && R(u, "cx", f.u = g), V !== f.c && R(u, "cy", f.c = V), M !== f.w && R(u, "r", f.w = M), O !== f.m && R(u, "stroke-width", f.m = O), N !== f.f && R(u, "stroke-dasharray", f.f = N), J !== f.y && R(u, "stroke-dashoffset", f.y = J), f;
8546
+ var m = r(), y = X("relative inline-flex items-center justify-center", e.class), h = `${t()}px`, p = `${t()}px`, v = t(), k = t(), C = `0 0 ${t()} ${t()}`, T = t() / 2, A = t() / 2, E = s(), $ = n(), g = t() / 2, V = t() / 2, M = s(), O = n(), N = String(i()), J = String(o());
8547
+ return m !== f.e && R(a, "aria-valuenow", f.e = m), y !== f.t && Pe(a, f.t = y), h !== f.a && qe(a, "width", f.a = h), p !== f.o && qe(a, "height", f.o = p), v !== f.i && R(l, "width", f.i = v), k !== f.n && R(l, "height", f.n = k), C !== f.s && R(l, "viewBox", f.s = C), T !== f.h && R(c, "cx", f.h = T), A !== f.r && R(c, "cy", f.r = A), E !== f.d && R(c, "r", f.d = E), $ !== f.l && R(c, "stroke-width", f.l = $), g !== f.u && R(u, "cx", f.u = g), V !== f.c && R(u, "cy", f.c = V), M !== f.w && R(u, "r", f.w = M), O !== f.m && R(u, "stroke-width", f.m = O), N !== f.f && R(u, "stroke-dasharray", f.f = N), J !== f.y && R(u, "stroke-dashoffset", f.y = J), f;
8541
8548
  }, {
8542
8549
  e: void 0,
8543
8550
  t: void 0,
@@ -8559,7 +8566,7 @@ function mh(e) {
8559
8566
  }), a;
8560
8567
  })();
8561
8568
  }
8562
- function gh(e, t) {
8569
+ function ph(e, t) {
8563
8570
  const [n, r] = se(us(t == null ? void 0 : t()));
8564
8571
  return Ve(() => {
8565
8572
  var s;
@@ -8567,10 +8574,10 @@ function gh(e, t) {
8567
8574
  }), n;
8568
8575
  }
8569
8576
  function us(e) {
8570
- return jf(e) ? e : void 0;
8577
+ return Kf(e) ? e : void 0;
8571
8578
  }
8572
- var ph = {};
8573
- an(ph, {
8579
+ var bh = {};
8580
+ an(bh, {
8574
8581
  Root: () => po,
8575
8582
  Separator: () => bo
8576
8583
  });
@@ -8578,11 +8585,11 @@ function po(e) {
8578
8585
  let t;
8579
8586
  const n = Ot({
8580
8587
  orientation: "horizontal"
8581
- }, e), [r, s] = ae(n, ["ref", "orientation"]), i = gh(() => t, () => "hr");
8588
+ }, e), [r, s] = ae(n, ["ref", "orientation"]), i = ph(() => t, () => "hr");
8582
8589
  return b(we, D({
8583
8590
  as: "hr",
8584
8591
  ref(o) {
8585
- var a = Bf((l) => t = l, r.ref);
8592
+ var a = jf((l) => t = l, r.ref);
8586
8593
  typeof a == "function" && a(o);
8587
8594
  },
8588
8595
  get role() {
@@ -8597,7 +8604,7 @@ function po(e) {
8597
8604
  }, s));
8598
8605
  }
8599
8606
  var bo = po;
8600
- function bh(e) {
8607
+ function yh(e) {
8601
8608
  const t = () => e.orientation ?? "horizontal";
8602
8609
  return b(bo, {
8603
8610
  get orientation() {
@@ -8608,10 +8615,10 @@ function bh(e) {
8608
8615
  }
8609
8616
  });
8610
8617
  }
8611
- var yh = /* @__PURE__ */ F('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');
8612
- function vh(e) {
8618
+ var vh = /* @__PURE__ */ F('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');
8619
+ function wh(e) {
8613
8620
  return (() => {
8614
- var t = yh();
8621
+ var t = vh();
8615
8622
  return q((n) => {
8616
8623
  var r = X("h-5 w-5 animate-spin text-muted-foreground", e.class), s = e.label ?? "Loading";
8617
8624
  return r !== n.e && R(t, "class", n.e = r), s !== n.t && R(t, "aria-label", n.t = s), n;
@@ -8621,7 +8628,7 @@ function vh(e) {
8621
8628
  }), t;
8622
8629
  })();
8623
8630
  }
8624
- function wh(e, t = {}) {
8631
+ function xh(e, t = {}) {
8625
8632
  if (Rt()) return () => {
8626
8633
  };
8627
8634
  const n = document.createElement("span");
@@ -8640,7 +8647,7 @@ function wh(e, t = {}) {
8640
8647
  e.removeEventListener("pointermove", o), e.removeEventListener("pointerenter", a), e.removeEventListener("pointerleave", l), n.remove();
8641
8648
  };
8642
8649
  }
8643
- function xh(e, t, n = {}) {
8650
+ function kh(e, t, n = {}) {
8644
8651
  if (Rt()) return () => {
8645
8652
  };
8646
8653
  t.style.willChange = "transform";
@@ -8655,12 +8662,12 @@ function xh(e, t, n = {}) {
8655
8662
  };
8656
8663
  }
8657
8664
  var yo = /* @__PURE__ */ F("<div>");
8658
- function kh(e) {
8665
+ function Sh(e) {
8659
8666
  const [t, n] = ae(e, ["class", "children", "glass", "glow", "tilt", "spotlight"]), r = () => (t.glow ?? t.glass) === !0;
8660
8667
  let s;
8661
8668
  return At(() => {
8662
- const i = [t.tilt && s ? xh(s, s) : null, t.spotlight && s ? wh(s) : null].filter((o) => o !== null);
8663
- ge(() => i.forEach((o) => o()));
8669
+ const i = [t.tilt && s ? kh(s, s) : null, t.spotlight && s ? xh(s) : null].filter((o) => o !== null);
8670
+ pe(() => i.forEach((o) => o()));
8664
8671
  }), (() => {
8665
8672
  var i = yo(), o = s;
8666
8673
  return typeof o == "function" ? qn(o, i) : s = i, et(i, D({
@@ -8670,7 +8677,7 @@ function kh(e) {
8670
8677
  }, n), !1, !0), L(i, () => t.children), i;
8671
8678
  })();
8672
8679
  }
8673
- function Sh(e) {
8680
+ function Th(e) {
8674
8681
  const [t, n] = ae(e, ["class", "children"]);
8675
8682
  return (() => {
8676
8683
  var r = yo();
@@ -8681,42 +8688,42 @@ function Sh(e) {
8681
8688
  }, n), !1, !0), L(r, () => t.children), r;
8682
8689
  })();
8683
8690
  }
8684
- var ds = /* @__PURE__ */ F("<div>"), Th = /* @__PURE__ */ F('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');
8685
- const Ah = {
8691
+ var ds = /* @__PURE__ */ F("<div>"), Ah = /* @__PURE__ */ F('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');
8692
+ const Ch = {
8686
8693
  primary: "bg-primary/15 text-primary",
8687
8694
  success: "bg-emerald-500/15 text-emerald-600",
8688
8695
  danger: "bg-rose-500/15 text-rose-600",
8689
8696
  neutral: "bg-muted text-muted-foreground"
8690
8697
  };
8691
- function Ch(e) {
8692
- const t = uf(() => e.value), n = () => (e.format ?? ((s) => String(Math.round(s))))(t());
8698
+ function Mh(e) {
8699
+ const t = df(() => e.value), n = () => (e.format ?? ((s) => String(Math.round(s))))(t());
8693
8700
  let r;
8694
8701
  return At(() => {
8695
- r && df(r, {
8702
+ r && ff(r, {
8696
8703
  delay: e.delay ?? 0
8697
8704
  });
8698
8705
  }), (() => {
8699
8706
  var s = ds(), i = r;
8700
- return typeof i == "function" ? qn(i, s) : r = s, L(s, b(kh, {
8707
+ return typeof i == "function" ? qn(i, s) : r = s, L(s, b(Sh, {
8701
8708
  glass: !0,
8702
8709
  glow: !0,
8703
8710
  get class() {
8704
8711
  return e.class;
8705
8712
  },
8706
8713
  get children() {
8707
- return b(Sh, {
8714
+ return b(Th, {
8708
8715
  class: "flex items-center gap-4 p-5",
8709
8716
  get children() {
8710
- return [b(pe, {
8717
+ return [b(he, {
8711
8718
  get when() {
8712
8719
  return e.icon;
8713
8720
  },
8714
8721
  get children() {
8715
8722
  var o = ds();
8716
- return L(o, () => e.icon), q(() => Pe(o, X("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg", Ah[e.tone ?? "neutral"]))), o;
8723
+ return L(o, () => e.icon), q(() => Pe(o, X("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg", Ch[e.tone ?? "neutral"]))), o;
8717
8724
  }
8718
8725
  }), (() => {
8719
- var o = Th(), a = o.firstChild, l = a.nextSibling;
8726
+ var o = Ah(), a = o.firstChild, l = a.nextSibling;
8720
8727
  return L(a, () => e.label), L(l, n), o;
8721
8728
  })()];
8722
8729
  }
@@ -8728,7 +8735,7 @@ function Ch(e) {
8728
8735
  function Bt(e) {
8729
8736
  return (e.textContent ?? "").trim();
8730
8737
  }
8731
- function Mh() {
8738
+ function Vh() {
8732
8739
  ce("a4-button", {
8733
8740
  variant: "primary",
8734
8741
  disabled: !1,
@@ -8739,7 +8746,7 @@ function Mh() {
8739
8746
  }) => {
8740
8747
  le();
8741
8748
  const n = e.label || Bt(t);
8742
- return b(pf, {
8749
+ return b(bf, {
8743
8750
  get variant() {
8744
8751
  return e.variant;
8745
8752
  },
@@ -8756,7 +8763,7 @@ function Mh() {
8756
8763
  label: ""
8757
8764
  }, (e, {
8758
8765
  element: t
8759
- }) => (le(), b(jl, {
8766
+ }) => (le(), b(Kl, {
8760
8767
  get tone() {
8761
8768
  return e.tone;
8762
8769
  },
@@ -8787,7 +8794,7 @@ function Mh() {
8787
8794
  }))
8788
8795
  ), ce("a4-spinner", {
8789
8796
  label: "Loading"
8790
- }, (e) => (le(), b(vh, {
8797
+ }, (e) => (le(), b(wh, {
8791
8798
  get label() {
8792
8799
  return e.label;
8793
8800
  }
@@ -8809,7 +8816,7 @@ function Mh() {
8809
8816
  value: 0,
8810
8817
  max: 100,
8811
8818
  label: ""
8812
- }, (e) => (le(), b(lh, {
8819
+ }, (e) => (le(), b(ch, {
8813
8820
  get value() {
8814
8821
  return e.value;
8815
8822
  },
@@ -8823,7 +8830,7 @@ function Mh() {
8823
8830
  value: 0,
8824
8831
  max: 100,
8825
8832
  label: ""
8826
- }, (e) => (le(), b(ih, {
8833
+ }, (e) => (le(), b(oh, {
8827
8834
  get value() {
8828
8835
  return e.value;
8829
8836
  },
@@ -8838,7 +8845,7 @@ function Mh() {
8838
8845
  size: 96,
8839
8846
  thickness: 8,
8840
8847
  label: ""
8841
- }, (e) => (le(), b(mh, {
8848
+ }, (e) => (le(), b(gh, {
8842
8849
  get value() {
8843
8850
  return e.value;
8844
8851
  },
@@ -8855,7 +8862,7 @@ function Mh() {
8855
8862
  label: "",
8856
8863
  value: 0,
8857
8864
  tone: "neutral"
8858
- }, (e) => (le(), b(Ch, {
8865
+ }, (e) => (le(), b(Mh, {
8859
8866
  get label() {
8860
8867
  return e.label;
8861
8868
  },
@@ -8869,13 +8876,13 @@ function Mh() {
8869
8876
  label: ""
8870
8877
  }, (e, {
8871
8878
  element: t
8872
- }) => (le(), b(Ff, {
8879
+ }) => (le(), b(_f, {
8873
8880
  get children() {
8874
8881
  return e.label || Bt(t);
8875
8882
  }
8876
8883
  }))), ce("a4-separator", {
8877
8884
  orientation: "horizontal"
8878
- }, (e) => (le(), b(bh, {
8885
+ }, (e) => (le(), b(yh, {
8879
8886
  get orientation() {
8880
8887
  return e.orientation;
8881
8888
  }
@@ -8885,7 +8892,7 @@ function Mh() {
8885
8892
  readonly: !1
8886
8893
  }, (e, {
8887
8894
  element: t
8888
- }) => (le(), b(fh, {
8895
+ }) => (le(), b(hh, {
8889
8896
  get value() {
8890
8897
  return e.value;
8891
8898
  },
@@ -8903,7 +8910,7 @@ function Mh() {
8903
8910
  }, (e) => {
8904
8911
  le();
8905
8912
  const t = e.to ? new Date(e.to) : new Date(Date.now() + 864e5);
8906
- return b(Of, {
8913
+ return b(Lf, {
8907
8914
  to: t
8908
8915
  });
8909
8916
  }), ce("a4-clock", {
@@ -8912,7 +8919,7 @@ function Mh() {
8912
8919
  hour12: !1,
8913
8920
  timezone: "",
8914
8921
  size: 160
8915
- }, (e) => (le(), b(Af, {
8922
+ }, (e) => (le(), b(Cf, {
8916
8923
  get variant() {
8917
8924
  return e.variant;
8918
8925
  },
@@ -8930,7 +8937,7 @@ function Mh() {
8930
8937
  }
8931
8938
  })));
8932
8939
  }
8933
- Mh();
8940
+ Vh();
8934
8941
  export {
8935
- Mh as defineA4uiElements
8942
+ Vh as defineA4uiElements
8936
8943
  };