@sankhyatronics/sankhya-ui 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Xn from "react";
2
- import nl, { forwardRef as Cr, useState as ve, useEffect as Qe, createElement as Nn, createContext as ht, useRef as Pe, useLayoutEffect as yf, useId as Pr, useContext as ce, useInsertionEffect as il, useMemo as ct, useCallback as Ar, Children as xf, isValidElement as bf, Fragment as rl, Component as kf } from "react";
2
+ import nl, { forwardRef as Cr, useState as fe, useEffect as He, createElement as Nn, createContext as ht, useRef as Pe, useLayoutEffect as yf, useId as Pr, useContext as ce, useInsertionEffect as il, useMemo as ct, useCallback as Ar, Children as xf, isValidElement as bf, Fragment as rl, Component as kf } from "react";
3
3
  import { Link as Er } from "react-router";
4
4
  import './index.css';function sl(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -185,10 +185,10 @@ function vf() {
185
185
  else f(ee);
186
186
  if (q.call(B, "key")) {
187
187
  ee = e(P);
188
- var ge = Object.keys(B).filter(function(Ke) {
189
- return Ke !== "key";
188
+ var ye = Object.keys(B).filter(function(Ye) {
189
+ return Ye !== "key";
190
190
  });
191
- Y = 0 < ge.length ? "{key: someKey, " + ge.join(": ..., ") + ": ...}" : "{key: someKey}", k[ee + Y] || (ge = 0 < ge.length ? "{" + ge.join(": ..., ") + ": ...}" : "{}", console.error(
191
+ Y = 0 < ye.length ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}", k[ee + Y] || (ye = 0 < ye.length ? "{" + ye.join(": ..., ") + ": ...}" : "{}", console.error(
192
192
  `A props object containing a "key" prop is being spread into JSX:
193
193
  let props = %s;
194
194
  <%s {...props} />
@@ -197,7 +197,7 @@ React keys must be passed directly to JSX without using spread:
197
197
  <%s key={someKey} {...props} />`,
198
198
  Y,
199
199
  ee,
200
- ge,
200
+ ye,
201
201
  ee
202
202
  ), k[ee + Y] = !0);
203
203
  }
@@ -1272,7 +1272,7 @@ if (typeof document < "u" && typeof window < "u") {
1272
1272
  }
1273
1273
  }
1274
1274
  function xl(e) {
1275
- const [t, n] = ve(!!e.ssr), [i, r] = ve({});
1275
+ const [t, n] = fe(!!e.ssr), [i, r] = fe({});
1276
1276
  function o(d) {
1277
1277
  if (d) {
1278
1278
  const p = e.icon;
@@ -1292,7 +1292,7 @@ function xl(e) {
1292
1292
  name: ""
1293
1293
  };
1294
1294
  }
1295
- const [s, a] = ve(o(!!e.ssr));
1295
+ const [s, a] = fe(o(!!e.ssr));
1296
1296
  function l() {
1297
1297
  const d = i.callback;
1298
1298
  d && (d(), r({}));
@@ -1323,7 +1323,7 @@ function xl(e) {
1323
1323
  });
1324
1324
  } else m && ((d = e.onLoad) === null || d === void 0 || d.call(e, p));
1325
1325
  }
1326
- Qe(() => (n(!0), l), []), Qe(() => {
1326
+ He(() => (n(!0), l), []), He(() => {
1327
1327
  t && c();
1328
1328
  }, [e.icon, t]);
1329
1329
  const { name: f, data: h } = s;
@@ -1332,7 +1332,7 @@ function xl(e) {
1332
1332
  ...h
1333
1333
  }, e, f) : e.children ? e.children : e.fallback ? e.fallback : Nn("span", {});
1334
1334
  }
1335
- const fe = Cr((e, t) => xl({
1335
+ const he = Cr((e, t) => xl({
1336
1336
  ...e,
1337
1337
  _ref: t
1338
1338
  }));
@@ -1357,7 +1357,7 @@ const Ch = ({
1357
1357
  return /* @__PURE__ */ b.jsxs(u, { ...c, children: [
1358
1358
  o.image && /* @__PURE__ */ b.jsx("div", { className: "bento-card-image-wrapper", children: /* @__PURE__ */ b.jsx("img", { src: o.image.imageSrc, alt: o.image.alt, className: "bento-card-image" }) }),
1359
1359
  /* @__PURE__ */ b.jsxs("div", { className: "bento-card-content", children: [
1360
- o.icon && /* @__PURE__ */ b.jsx("div", { className: "bento-card-icon", children: /* @__PURE__ */ b.jsx(fe, { icon: o.icon, width: "24", height: "24" }) }),
1360
+ o.icon && /* @__PURE__ */ b.jsx("div", { className: "bento-card-icon", children: /* @__PURE__ */ b.jsx(he, { icon: o.icon, width: "24", height: "24" }) }),
1361
1361
  /* @__PURE__ */ b.jsxs("div", { className: `bento-card-text ${o.cardTextClassName}`, children: [
1362
1362
  /* @__PURE__ */ b.jsx("h3", { className: "bento-card-title", children: o.title }),
1363
1363
  o.description && /* @__PURE__ */ b.jsx("p", { className: "bento-card-description", children: o.description })
@@ -1397,7 +1397,7 @@ const Ch = ({
1397
1397
  logoClassName: l = "",
1398
1398
  altText: u = "Logo",
1399
1399
  inverted: c = !1
1400
- } = e, [f, h] = ve(!1);
1400
+ } = e, [f, h] = fe(!1);
1401
1401
  return /* @__PURE__ */ b.jsxs("header", { className: `header ${i ? "header-sticky" : ""} ${c ? "theme-inverted" : ""} ${r}`, children: [
1402
1402
  /* @__PURE__ */ b.jsx("div", { className: "header-logo-wrapper", children: s && /* @__PURE__ */ b.jsx(
1403
1403
  "a",
@@ -1421,7 +1421,7 @@ const Ch = ({
1421
1421
  className: "header-toggle",
1422
1422
  onClick: () => h(!f),
1423
1423
  "aria-label": "Toggle navigation",
1424
- children: /* @__PURE__ */ b.jsx(fe, { icon: f ? "mdi:close" : "mdi:menu" })
1424
+ children: /* @__PURE__ */ b.jsx(he, { icon: f ? "mdi:close" : "mdi:menu" })
1425
1425
  }
1426
1426
  ),
1427
1427
  /* @__PURE__ */ b.jsxs(
@@ -1441,7 +1441,7 @@ function Lr(e) {
1441
1441
  const t = Pe(null);
1442
1442
  return t.current === null && (t.current = e()), t.current;
1443
1443
  }
1444
- const Nr = typeof window < "u", kl = Nr ? yf : Qe, Zn = /* @__PURE__ */ ht(null);
1444
+ const Nr = typeof window < "u", kl = Nr ? yf : He, Zn = /* @__PURE__ */ ht(null);
1445
1445
  function Fr(e, t) {
1446
1446
  e.indexOf(t) === -1 && e.push(t);
1447
1447
  }
@@ -1449,20 +1449,20 @@ function Or(e, t) {
1449
1449
  const n = e.indexOf(t);
1450
1450
  n > -1 && e.splice(n, 1);
1451
1451
  }
1452
- const He = (e, t, n) => n > t ? t : n < e ? e : n;
1452
+ const We = (e, t, n) => n > t ? t : n < e ? e : n;
1453
1453
  function Wi(e, t) {
1454
1454
  return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
1455
1455
  }
1456
1456
  let Dt = () => {
1457
- }, We = () => {
1457
+ }, qe = () => {
1458
1458
  };
1459
1459
  typeof process < "u" && process.env?.NODE_ENV !== "production" && (Dt = (e, t, n) => {
1460
1460
  !e && typeof console < "u" && console.warn(Wi(t, n));
1461
- }, We = (e, t, n) => {
1461
+ }, qe = (e, t, n) => {
1462
1462
  if (!e)
1463
1463
  throw new Error(Wi(t, n));
1464
1464
  });
1465
- const qe = {}, wl = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
1465
+ const Ge = {}, wl = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
1466
1466
  function vl(e) {
1467
1467
  return typeof e == "object" && e !== null;
1468
1468
  }
@@ -1537,11 +1537,11 @@ const Pl = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Al
1537
1537
  anticipate: Dl
1538
1538
  }, Nh = (e) => typeof e == "string", Zs = (e) => {
1539
1539
  if (Ll(e)) {
1540
- We(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
1540
+ qe(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
1541
1541
  const [t, n, i, r] = e;
1542
1542
  return hn(t, n, i, r);
1543
1543
  } else if (Nh(e))
1544
- return We(Qs[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Qs[e];
1544
+ return qe(Qs[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Qs[e];
1545
1545
  return e;
1546
1546
  }, kn = [
1547
1547
  "setup",
@@ -1607,8 +1607,8 @@ function Nl(e, t) {
1607
1607
  timestamp: 0,
1608
1608
  isProcessing: !1
1609
1609
  }, o = () => n = !0, s = kn.reduce((w, E) => (w[E] = Fh(o), w), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: f, preRender: h, render: d, postRender: p } = s, m = () => {
1610
- const w = qe.useManualTiming ? r.timestamp : performance.now();
1611
- n = !1, qe.useManualTiming || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(w - r.timestamp, Oh), 1)), r.timestamp = w, r.isProcessing = !0, a.process(r), l.process(r), u.process(r), c.process(r), f.process(r), h.process(r), d.process(r), p.process(r), r.isProcessing = !1, n && t && (i = !1, e(m));
1610
+ const w = Ge.useManualTiming ? r.timestamp : performance.now();
1611
+ n = !1, Ge.useManualTiming || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(w - r.timestamp, Oh), 1)), r.timestamp = w, r.isProcessing = !0, a.process(r), l.process(r), u.process(r), c.process(r), f.process(r), h.process(r), d.process(r), p.process(r), r.isProcessing = !1, n && t && (i = !1, e(m));
1612
1612
  }, y = () => {
1613
1613
  n = !0, i = !0, r.isProcessing || e(m);
1614
1614
  };
@@ -1625,8 +1625,8 @@ let Dn;
1625
1625
  function Vh() {
1626
1626
  Dn = void 0;
1627
1627
  }
1628
- const we = {
1629
- now: () => (Dn === void 0 && we.set(ue.isProcessing || qe.useManualTiming ? ue.timestamp : performance.now()), Dn),
1628
+ const ve = {
1629
+ now: () => (Dn === void 0 && ve.set(ue.isProcessing || Ge.useManualTiming ? ue.timestamp : performance.now()), Dn),
1630
1630
  set: (e) => {
1631
1631
  Dn = e, queueMicrotask(Vh);
1632
1632
  }
@@ -1636,7 +1636,7 @@ const we = {
1636
1636
  transform: (e) => e
1637
1637
  }, sn = {
1638
1638
  ...Rt,
1639
- transform: (e) => He(0, 1, e)
1639
+ transform: (e) => We(0, 1, e)
1640
1640
  }, wn = {
1641
1641
  ...Rt,
1642
1642
  default: 1
@@ -1654,7 +1654,7 @@ const $h = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
1654
1654
  [n]: parseFloat(s),
1655
1655
  alpha: a !== void 0 ? parseFloat(a) : 1
1656
1656
  };
1657
- }, Uh = (e) => He(0, 255, e), ci = {
1657
+ }, Uh = (e) => We(0, 255, e), ci = {
1658
1658
  ...Rt,
1659
1659
  transform: (e) => Math.round(Uh(e))
1660
1660
  }, ot = {
@@ -1679,7 +1679,7 @@ const qi = {
1679
1679
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
1680
1680
  parse: parseFloat,
1681
1681
  transform: (t) => `${t}${e}`
1682
- }), Xe = /* @__PURE__ */ dn("deg"), Be = /* @__PURE__ */ dn("%"), N = /* @__PURE__ */ dn("px"), Wh = /* @__PURE__ */ dn("vh"), qh = /* @__PURE__ */ dn("vw"), Js = {
1682
+ }), Qe = /* @__PURE__ */ dn("deg"), Be = /* @__PURE__ */ dn("%"), N = /* @__PURE__ */ dn("px"), Wh = /* @__PURE__ */ dn("vh"), qh = /* @__PURE__ */ dn("vw"), Js = {
1683
1683
  ...Be,
1684
1684
  parse: (e) => Be.parse(e) / 100,
1685
1685
  transform: (e) => Be.transform(e * 100)
@@ -1827,7 +1827,7 @@ const ld = (e) => {
1827
1827
  * If we're processing this frame we can use the
1828
1828
  * framelocked timestamp to keep things in sync.
1829
1829
  */
1830
- now: () => ue.isProcessing ? ue.timestamp : we.now()
1830
+ now: () => ue.isProcessing ? ue.timestamp : ve.now()
1831
1831
  };
1832
1832
  }, Wl = (e, t, n = 10) => {
1833
1833
  let i = "";
@@ -1890,7 +1890,7 @@ function fd({ duration: e = ne.duration, bounce: t = ne.bounce, velocity: n = ne
1890
1890
  let r, o;
1891
1891
  Dt(e <= /* @__PURE__ */ Fe(ne.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
1892
1892
  let s = 1 - t;
1893
- s = He(ne.minDamping, ne.maxDamping, s), e = He(ne.minDuration, ne.maxDuration, /* @__PURE__ */ Re(e)), s < 1 ? (r = (u) => {
1893
+ s = We(ne.minDamping, ne.maxDamping, s), e = We(ne.minDuration, ne.maxDuration, /* @__PURE__ */ Re(e)), s < 1 ? (r = (u) => {
1894
1894
  const c = u * s, f = c * e, h = c - n, d = Ki(u, s), p = Math.exp(-f);
1895
1895
  return di - h / d * p;
1896
1896
  }, o = (u) => {
@@ -1944,7 +1944,7 @@ function gd(e) {
1944
1944
  };
1945
1945
  if (!io(e, md) && io(e, pd))
1946
1946
  if (e.visualDuration) {
1947
- const n = e.visualDuration, i = 2 * Math.PI / (n * 1.2), r = i * i, o = 2 * He(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
1947
+ const n = e.visualDuration, i = 2 * Math.PI / (n * 1.2), r = i * i, o = 2 * We(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
1948
1948
  t = {
1949
1949
  ...t,
1950
1950
  mass: ne.mass,
@@ -2049,7 +2049,7 @@ function Yi({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: i = 3
2049
2049
  };
2050
2050
  }
2051
2051
  function yd(e, t, n) {
2052
- const i = [], r = n || qe.mix || Hl, o = e.length - 1;
2052
+ const i = [], r = n || Ge.mix || Hl, o = e.length - 1;
2053
2053
  for (let s = 0; s < o; s++) {
2054
2054
  let a = r(e[s], e[s + 1]);
2055
2055
  if (t) {
@@ -2062,7 +2062,7 @@ function yd(e, t, n) {
2062
2062
  }
2063
2063
  function xd(e, t, { clamp: n = !0, ease: i, mixer: r } = {}) {
2064
2064
  const o = e.length;
2065
- if (We(o === t.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
2065
+ if (qe(o === t.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
2066
2066
  return () => t[0];
2067
2067
  if (o === 2 && t[0] === t[1])
2068
2068
  return () => t[1];
@@ -2078,7 +2078,7 @@ function xd(e, t, { clamp: n = !0, ease: i, mixer: r } = {}) {
2078
2078
  const h = /* @__PURE__ */ rn(e[f], e[f + 1], c);
2079
2079
  return a[f](h);
2080
2080
  };
2081
- return n ? (c) => u(He(e[0], e[o - 1], c)) : u;
2081
+ return n ? (c) => u(We(e[0], e[o - 1], c)) : u;
2082
2082
  }
2083
2083
  function bd(e, t) {
2084
2084
  const n = e[e.length - 1];
@@ -2158,7 +2158,7 @@ class Xr extends Yr {
2158
2158
  constructor(t) {
2159
2159
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
2160
2160
  const { motionValue: n } = this.options;
2161
- n && n.updatedAt !== we.now() && this.tick(we.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
2161
+ n && n.updatedAt !== ve.now() && this.tick(ve.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
2162
2162
  }, this.options = t, this.initAnimation(), this.play(), t.autoplay === !1 && this.pause();
2163
2163
  }
2164
2164
  initAnimation() {
@@ -2167,7 +2167,7 @@ class Xr extends Yr {
2167
2167
  const { type: n = bt, repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = t;
2168
2168
  let { keyframes: a } = t;
2169
2169
  const l = n || bt;
2170
- process.env.NODE_ENV !== "production" && l !== bt && We(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== bt && typeof a[0] != "number" && (this.mixKeyframes = fn(Cd, Hl(a[0], a[1])), a = [0, 100]);
2170
+ process.env.NODE_ENV !== "production" && l !== bt && qe(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== bt && typeof a[0] != "number" && (this.mixKeyframes = fn(Cd, Hl(a[0], a[1])), a = [0, 100]);
2171
2171
  const u = l({ ...t, keyframes: a });
2172
2172
  o === "mirror" && (this.mirroredGenerator = l({
2173
2173
  ...t,
@@ -2193,7 +2193,7 @@ class Xr extends Yr {
2193
2193
  if (f) {
2194
2194
  const I = Math.min(this.currentTime, r) / a;
2195
2195
  let O = Math.floor(I), T = I % 1;
2196
- !T && I >= 1 && (T = 1), T === 1 && O--, O = Math.min(O, f + 1), !!(O % 2) && (h === "reverse" ? (T = 1 - T, d && (T -= d / a)) : h === "mirror" && (E = s)), w = He(0, 1, T) * a;
2196
+ !T && I >= 1 && (T = 1), T === 1 && O--, O = Math.min(O, f + 1), !!(O % 2) && (h === "reverse" ? (T = 1 - T, d && (T -= d / a)) : h === "mirror" && (E = s)), w = We(0, 1, T) * a;
2197
2197
  }
2198
2198
  const A = v ? { done: !1, value: c[0] } : E.next(w);
2199
2199
  o && (A.value = o(A.value));
@@ -2227,7 +2227,7 @@ class Xr extends Yr {
2227
2227
  return this.playbackSpeed;
2228
2228
  }
2229
2229
  set speed(t) {
2230
- this.updateTime(we.now());
2230
+ this.updateTime(ve.now());
2231
2231
  const n = this.playbackSpeed !== t;
2232
2232
  this.playbackSpeed = t, n && (this.time = /* @__PURE__ */ Re(this.currentTime));
2233
2233
  }
@@ -2240,7 +2240,7 @@ class Xr extends Yr {
2240
2240
  this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = n ?? i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
2241
2241
  }
2242
2242
  pause() {
2243
- this.state = "paused", this.updateTime(we.now()), this.holdTime = this.currentTime;
2243
+ this.state = "paused", this.updateTime(ve.now()), this.holdTime = this.currentTime;
2244
2244
  }
2245
2245
  complete() {
2246
2246
  this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -2494,7 +2494,7 @@ class $d extends Yr {
2494
2494
  if (super(), this.finishedTime = null, this.isStopped = !1, !t)
2495
2495
  return;
2496
2496
  const { element: n, name: i, keyframes: r, pseudoElement: o, allowFlatten: s = !1, finalKeyframe: a, onComplete: l } = t;
2497
- this.isPseudoElement = !!o, this.allowFlatten = s, this.options = t, We(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
2497
+ this.isPseudoElement = !!o, this.allowFlatten = s, this.options = t, qe(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
2498
2498
  const u = zd(t);
2499
2499
  this.animation = Bd(n, i, r, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
2500
2500
  if (this.finishedTime = this.time, !o) {
@@ -2667,7 +2667,7 @@ class Zd extends Yr {
2667
2667
  constructor({ autoplay: t = !0, delay: n = 0, type: i = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: s = "loop", keyframes: a, name: l, motionValue: u, element: c, ...f }) {
2668
2668
  super(), this.stop = () => {
2669
2669
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
2670
- }, this.createdAt = we.now();
2670
+ }, this.createdAt = ve.now();
2671
2671
  const h = {
2672
2672
  autoplay: t,
2673
2673
  delay: n,
@@ -2685,7 +2685,7 @@ class Zd extends Yr {
2685
2685
  onKeyframesResolved(t, n, i, r) {
2686
2686
  this.keyframeResolver = void 0;
2687
2687
  const { name: o, type: s, velocity: a, delay: l, isHandoff: u, onUpdate: c } = i;
2688
- this.resolvedAt = we.now(), Gd(t, o, s, a) || ((qe.instantAnimations || !l) && c?.(Kr(t, i, n)), t[0] = t[t.length - 1], ir(i), i.repeat = 0);
2688
+ this.resolvedAt = ve.now(), Gd(t, o, s, a) || ((Ge.instantAnimations || !l) && c?.(Kr(t, i, n)), t[0] = t[t.length - 1], ir(i), i.repeat = 0);
2689
2689
  const h = {
2690
2690
  startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > Qd ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
2691
2691
  finalKeyframe: n,
@@ -2760,7 +2760,7 @@ function ep(e) {
2760
2760
  }
2761
2761
  const tp = 4;
2762
2762
  function eu(e, t, n = 1) {
2763
- We(n <= tp, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
2763
+ qe(n <= tp, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
2764
2764
  const [i, r] = ep(e);
2765
2765
  if (!i)
2766
2766
  return;
@@ -2785,7 +2785,7 @@ const tu = /* @__PURE__ */ new Set([
2785
2785
  ]), np = {
2786
2786
  test: (e) => e === "auto",
2787
2787
  parse: (e) => e
2788
- }, nu = (e) => (t) => t.test(e), iu = [Rt, N, Be, Xe, qh, Wh, np], fo = (e) => iu.find(nu(e));
2788
+ }, nu = (e) => (t) => t.test(e), iu = [Rt, N, Be, Qe, qh, Wh, np], fo = (e) => iu.find(nu(e));
2789
2789
  function ip(e) {
2790
2790
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Sl(e) : !0;
2791
2791
  }
@@ -2811,17 +2811,17 @@ const op = /\b([a-z-]*)\(.*?\)/gu, rr = {
2811
2811
  ...Rt,
2812
2812
  transform: Math.round
2813
2813
  }, ap = {
2814
- rotate: Xe,
2815
- rotateX: Xe,
2816
- rotateY: Xe,
2817
- rotateZ: Xe,
2814
+ rotate: Qe,
2815
+ rotateX: Qe,
2816
+ rotateY: Qe,
2817
+ rotateZ: Qe,
2818
2818
  scale: wn,
2819
2819
  scaleX: wn,
2820
2820
  scaleY: wn,
2821
2821
  scaleZ: wn,
2822
- skew: Xe,
2823
- skewX: Xe,
2824
- skewY: Xe,
2822
+ skew: Qe,
2823
+ skewX: Qe,
2824
+ skewY: Qe,
2825
2825
  distance: N,
2826
2826
  translateX: N,
2827
2827
  translateY: N,
@@ -3005,14 +3005,14 @@ class pp {
3005
3005
  */
3006
3006
  constructor(t, n = {}) {
3007
3007
  this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i) => {
3008
- const r = we.now();
3008
+ const r = ve.now();
3009
3009
  if (this.updatedAt !== r && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents))
3010
3010
  for (const o of this.dependents)
3011
3011
  o.dirty();
3012
3012
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
3013
3013
  }
3014
3014
  setCurrent(t) {
3015
- this.current = t, this.updatedAt = we.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = dp(this.current));
3015
+ this.current = t, this.updatedAt = ve.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = dp(this.current));
3016
3016
  }
3017
3017
  setPrevFrameValue(t = this.current) {
3018
3018
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -3140,7 +3140,7 @@ class pp {
3140
3140
  * @public
3141
3141
  */
3142
3142
  getVelocity() {
3143
- const t = we.now();
3143
+ const t = ve.now();
3144
3144
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > po)
3145
3145
  return 0;
3146
3146
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, po);
@@ -3301,7 +3301,7 @@ function fu(e) {
3301
3301
  function wp(e) {
3302
3302
  return fu(e) && e.tagName === "svg";
3303
3303
  }
3304
- const he = (e) => !!(e && e.getVelocity), vp = [...iu, ae, Je], Sp = (e) => vp.find(nu(e)), ns = ht({
3304
+ const de = (e) => !!(e && e.getVelocity), vp = [...iu, ae, Je], Sp = (e) => vp.find(nu(e)), ns = ht({
3305
3305
  transformPagePoint: (e) => e,
3306
3306
  isStatic: !1,
3307
3307
  reducedMotion: "never"
@@ -3408,7 +3408,7 @@ function hu(e = !0) {
3408
3408
  if (t === null)
3409
3409
  return [!0, null];
3410
3410
  const { isPresent: n, onExitComplete: i, register: r } = t, o = Pr();
3411
- Qe(() => {
3411
+ He(() => {
3412
3412
  if (e)
3413
3413
  return r(o);
3414
3414
  }, [e]);
@@ -3423,7 +3423,7 @@ function bo(e) {
3423
3423
  }), t;
3424
3424
  }
3425
3425
  const Dp = ({ children: e, custom: t, initial: n = !0, onExitComplete: i, presenceAffectsLayout: r = !0, mode: o = "sync", propagate: s = !1, anchorX: a = "left", root: l }) => {
3426
- const [u, c] = hu(s), f = ct(() => bo(e), [e]), h = s && !u ? [] : f.map(vn), d = Pe(!0), p = Pe(f), m = Lr(() => /* @__PURE__ */ new Map()), y = Pe(/* @__PURE__ */ new Set()), [g, v] = ve(f), [w, E] = ve(f);
3426
+ const [u, c] = hu(s), f = ct(() => bo(e), [e]), h = s && !u ? [] : f.map(vn), d = Pe(!0), p = Pe(f), m = Lr(() => /* @__PURE__ */ new Map()), y = Pe(/* @__PURE__ */ new Set()), [g, v] = fe(f), [w, E] = fe(f);
3427
3427
  kl(() => {
3428
3428
  d.current = !1, p.current = f;
3429
3429
  for (let R = 0; R < w.length; R++) {
@@ -3675,7 +3675,7 @@ const os = () => ({
3675
3675
  });
3676
3676
  function yu(e, t, n) {
3677
3677
  for (const i in t)
3678
- !he(t[i]) && !gu(i, n) && (e[i] = t[i]);
3678
+ !de(t[i]) && !gu(i, n) && (e[i] = t[i]);
3679
3679
  }
3680
3680
  function zp({ transformTemplate: e }, t) {
3681
3681
  return ct(() => {
@@ -3798,7 +3798,7 @@ function as(e) {
3798
3798
  );
3799
3799
  }
3800
3800
  function Xp(e, t, n, { latestValues: i }, r, o = !1, s) {
3801
- const l = (s ?? as(e) ? Kp : Up)(t, i, r, e), u = Lp(t, typeof e == "string", o), c = e !== rl ? { ...u, ...l, ref: n } : {}, { children: f } = t, h = ct(() => he(f) ? f.get() : f, [f]);
3801
+ const l = (s ?? as(e) ? Kp : Up)(t, i, r, e), u = Lp(t, typeof e == "string", o), c = e !== rl ? { ...u, ...l, ref: n } : {}, { children: f } = t, h = ct(() => de(f) ? f.get() : f, [f]);
3802
3802
  return Nn(e, {
3803
3803
  ...c,
3804
3804
  children: h
@@ -3822,7 +3822,7 @@ function ls(e, t, n, i) {
3822
3822
  return t;
3823
3823
  }
3824
3824
  function Mn(e) {
3825
- return he(e) ? e.get() : e;
3825
+ return de(e) ? e.get() : e;
3826
3826
  }
3827
3827
  function Qp({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, i, r) {
3828
3828
  return {
@@ -3868,7 +3868,7 @@ const wu = (e) => (t, n) => {
3868
3868
  function us(e, t, n) {
3869
3869
  const { style: i } = e, r = {};
3870
3870
  for (const o in i)
3871
- (he(i[o]) || t.style && he(t.style[o]) || gu(o, e) || n?.getValue(o)?.liveStyle !== void 0) && (r[o] = i[o]);
3871
+ (de(i[o]) || t.style && de(t.style[o]) || gu(o, e) || n?.getValue(o)?.liveStyle !== void 0) && (r[o] = i[o]);
3872
3872
  return r;
3873
3873
  }
3874
3874
  const Jp = /* @__PURE__ */ wu({
@@ -3878,7 +3878,7 @@ const Jp = /* @__PURE__ */ wu({
3878
3878
  function vu(e, t, n) {
3879
3879
  const i = us(e, t, n);
3880
3880
  for (const r in e)
3881
- if (he(e[r]) || he(t[r])) {
3881
+ if (de(e[r]) || de(t[r])) {
3882
3882
  const o = Mt.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
3883
3883
  i[o] = e[r];
3884
3884
  }
@@ -3934,7 +3934,7 @@ function rm(e, t, n, i, r, o) {
3934
3934
  const p = n[Su], m = Pe(!!p && !window.MotionHandoffIsComplete?.(p) && window.MotionHasOptimisedAnimation?.(p));
3935
3935
  return kl(() => {
3936
3936
  f && (d.current = !0, window.MotionIsMounted = !0, f.updateFeatures(), f.scheduleRenderMicrotask(), m.current && f.animationState && f.animationState.animateChanges());
3937
- }), Qe(() => {
3937
+ }), He(() => {
3938
3938
  f && (!m.current && f.animationState && f.animationState.animateChanges(), m.current && (queueMicrotask(() => {
3939
3939
  window.MotionHandoffMarkAsComplete?.(p);
3940
3940
  }), m.current = !1), f.enteringChildren = void 0);
@@ -3994,7 +3994,7 @@ function am(e, t) {
3994
3994
  const n = ce(du).strict;
3995
3995
  if (process.env.NODE_ENV !== "production" && t && n) {
3996
3996
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
3997
- e.ignoreStrict ? Dt(!1, i, "lazy-strict-mode") : We(!1, i, "lazy-strict-mode");
3997
+ e.ignoreStrict ? Dt(!1, i, "lazy-strict-mode") : qe(!1, i, "lazy-strict-mode");
3998
3998
  }
3999
3999
  }
4000
4000
  function lm(e) {
@@ -4126,9 +4126,9 @@ const mm = /* @__PURE__ */ new WeakMap();
4126
4126
  function gm(e, t, n) {
4127
4127
  for (const i in t) {
4128
4128
  const r = t[i], o = n[i];
4129
- if (he(r))
4129
+ if (de(r))
4130
4130
  e.addValue(i, r);
4131
- else if (he(o))
4131
+ else if (de(o))
4132
4132
  e.addValue(i, At(r, { owner: e }));
4133
4133
  else if (o !== r)
4134
4134
  if (e.hasValue(i)) {
@@ -4167,7 +4167,7 @@ class ym {
4167
4167
  this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Qr, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
4168
4168
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
4169
4169
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
4170
- const h = we.now();
4170
+ const h = ve.now();
4171
4171
  this.renderScheduledAt < h && (this.renderScheduledAt = h, te.render(this.render, !1, !0));
4172
4172
  };
4173
4173
  const { latestValues: l, renderState: u } = s;
@@ -4175,7 +4175,7 @@ class ym {
4175
4175
  const { willChange: c, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
4176
4176
  for (const h in f) {
4177
4177
  const d = f[h];
4178
- l[h] !== void 0 && he(d) && d.set(l[h]);
4178
+ l[h] !== void 0 && de(d) && d.set(l[h]);
4179
4179
  }
4180
4180
  }
4181
4181
  mount(t) {
@@ -4319,7 +4319,7 @@ class ym {
4319
4319
  */
4320
4320
  readValue(t, n) {
4321
4321
  let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
4322
- return i != null && (typeof i == "string" && (wl(i) || Sl(i)) ? i = parseFloat(i) : !Sp(i) && Je.test(n) && (i = su(t, n)), this.setBaseTarget(t, he(i) ? i.get() : i)), he(i) ? i.get() : i;
4322
+ return i != null && (typeof i == "string" && (wl(i) || Sl(i)) ? i = parseFloat(i) : !Sp(i) && Je.test(n) && (i = su(t, n)), this.setBaseTarget(t, de(i) ? i.get() : i)), de(i) ? i.get() : i;
4323
4323
  }
4324
4324
  /**
4325
4325
  * Set the base target to later animate back to. This is currently
@@ -4342,7 +4342,7 @@ class ym {
4342
4342
  if (n && i !== void 0)
4343
4343
  return i;
4344
4344
  const r = this.getBaseTargetFromProps(this.props, t);
4345
- return r !== void 0 && !he(r) ? r : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
4345
+ return r !== void 0 && !de(r) ? r : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
4346
4346
  }
4347
4347
  on(t, n) {
4348
4348
  return this.events[t] || (this.events[t] = new _r()), this.events[t].add(n);
@@ -4370,7 +4370,7 @@ class Ru extends ym {
4370
4370
  handleChildMotionValue() {
4371
4371
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
4372
4372
  const { children: t } = this.props;
4373
- he(t) && (this.childSubscription = t.on("change", (n) => {
4373
+ de(t) && (this.childSubscription = t.on("change", (n) => {
4374
4374
  this.current && (this.current.textContent = `${n}`);
4375
4375
  }));
4376
4376
  }
@@ -4490,14 +4490,14 @@ function Cm(e, t) {
4490
4490
  }
4491
4491
  }
4492
4492
  function Pm(e) {
4493
- return !!(he(e) && e.add);
4493
+ return !!(de(e) && e.add);
4494
4494
  }
4495
4495
  function cr(e, t) {
4496
4496
  const n = e.getValue("willChange");
4497
4497
  if (Pm(n))
4498
4498
  return n.add(t);
4499
- if (!n && qe.WillChange) {
4500
- const i = new qe.WillChange("auto");
4499
+ if (!n && Ge.WillChange) {
4500
+ const i = new Ge.WillChange("auto");
4501
4501
  e.addValue("willChange", i), i.add(t);
4502
4502
  }
4503
4503
  }
@@ -4552,7 +4552,7 @@ const fs = (e, t, n, i = {}, r, o) => (s) => {
4552
4552
  };
4553
4553
  Lm(a) || Object.assign(c, jm(e, c)), c.duration && (c.duration = /* @__PURE__ */ Fe(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ Fe(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
4554
4554
  let f = !1;
4555
- if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (ir(c), c.delay === 0 && (f = !0)), (qe.instantAnimations || qe.skipAnimations) && (f = !0, ir(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, f && !o && t.get() !== void 0) {
4555
+ if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (ir(c), c.delay === 0 && (f = !0)), (Ge.instantAnimations || Ge.skipAnimations) && (f = !0, ir(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, f && !o && t.get() !== void 0) {
4556
4556
  const h = Em(c.keyframes, a);
4557
4557
  if (h !== void 0) {
4558
4558
  te.update(() => {
@@ -4872,26 +4872,26 @@ function Qt(e, t, n, i) {
4872
4872
  return ln(e, t, Km(n), i);
4873
4873
  }
4874
4874
  const _u = 1e-4, Ym = 1 - _u, Xm = 1 + _u, Bu = 0.01, Qm = 0 - Bu, Zm = 0 + Bu;
4875
- function xe(e) {
4875
+ function be(e) {
4876
4876
  return e.max - e.min;
4877
4877
  }
4878
4878
  function Jm(e, t, n) {
4879
4879
  return Math.abs(e - t) <= n;
4880
4880
  }
4881
4881
  function Lo(e, t, n, i = 0.5) {
4882
- e.origin = i, e.originPoint = ie(t.min, t.max, e.origin), e.scale = xe(n) / xe(t), e.translate = ie(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Ym && e.scale <= Xm || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Qm && e.translate <= Zm || isNaN(e.translate)) && (e.translate = 0);
4882
+ e.origin = i, e.originPoint = ie(t.min, t.max, e.origin), e.scale = be(n) / be(t), e.translate = ie(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Ym && e.scale <= Xm || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Qm && e.translate <= Zm || isNaN(e.translate)) && (e.translate = 0);
4883
4883
  }
4884
4884
  function Zt(e, t, n, i) {
4885
4885
  Lo(e.x, t.x, n.x, i ? i.originX : void 0), Lo(e.y, t.y, n.y, i ? i.originY : void 0);
4886
4886
  }
4887
4887
  function No(e, t, n) {
4888
- e.min = n.min + t.min, e.max = e.min + xe(t);
4888
+ e.min = n.min + t.min, e.max = e.min + be(t);
4889
4889
  }
4890
4890
  function eg(e, t, n) {
4891
4891
  No(e.x, t.x, n.x), No(e.y, t.y, n.y);
4892
4892
  }
4893
4893
  function Fo(e, t, n) {
4894
- e.min = t.min - n.min, e.max = e.min + xe(t);
4894
+ e.min = t.min - n.min, e.max = e.min + be(t);
4895
4895
  }
4896
4896
  function $n(e, t, n) {
4897
4897
  Fo(e.x, t.x, n.x), Fo(e.y, t.y, n.y);
@@ -5005,8 +5005,8 @@ function og(e, t) {
5005
5005
  }
5006
5006
  function ag(e, t) {
5007
5007
  let n = 0.5;
5008
- const i = xe(e), r = xe(t);
5009
- return r > i ? n = /* @__PURE__ */ rn(t.min, t.max - i, e.min) : i > r && (n = /* @__PURE__ */ rn(e.min, e.max - r, t.min)), He(0, 1, n);
5008
+ const i = be(e), r = be(t);
5009
+ return r > i ? n = /* @__PURE__ */ rn(t.min, t.max - i, e.min) : i > r && (n = /* @__PURE__ */ rn(e.min, e.max - r, t.min)), We(0, 1, n);
5010
5010
  }
5011
5011
  function lg(e, t) {
5012
5012
  const n = {};
@@ -5050,7 +5050,7 @@ class fg {
5050
5050
  const { projection: w } = this.visualElement;
5051
5051
  if (w && w.layout) {
5052
5052
  const E = w.layout.layoutBox[g];
5053
- E && (v = xe(E) * (parseFloat(v) / 100));
5053
+ E && (v = be(E) * (parseFloat(v) / 100));
5054
5054
  }
5055
5055
  }
5056
5056
  this.originPoint[g] = v;
@@ -5125,7 +5125,7 @@ class fg {
5125
5125
  if (!t || !kt(t))
5126
5126
  return !1;
5127
5127
  const i = t.current;
5128
- We(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
5128
+ qe(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
5129
5129
  const { projection: r } = this.visualElement;
5130
5130
  if (!r || !r.layout)
5131
5131
  return !1;
@@ -5371,7 +5371,7 @@ function Hu(e) {
5371
5371
  return b.jsx(mg, { ...e, layoutGroup: i, switchLayoutGroup: ce(Tu), isPresent: t, safeToRemove: n });
5372
5372
  }
5373
5373
  function gg(e, t, n) {
5374
- const i = he(e) ? e : At(e);
5374
+ const i = de(e) ? e : At(e);
5375
5375
  return i.start(fs("", i, t, n)), i.animation;
5376
5376
  }
5377
5377
  const yg = (e, t) => e.depth - t.depth;
@@ -5390,7 +5390,7 @@ class xg {
5390
5390
  }
5391
5391
  }
5392
5392
  function bg(e, t) {
5393
- const n = we.now(), i = ({ timestamp: r }) => {
5393
+ const n = ve.now(), i = ({ timestamp: r }) => {
5394
5394
  const o = r - n;
5395
5395
  o >= t && (Ze(i), e(o - t));
5396
5396
  };
@@ -5459,7 +5459,7 @@ function Ku(e, t) {
5459
5459
  return ea(e.x, t.x) && ea(e.y, t.y);
5460
5460
  }
5461
5461
  function ta(e) {
5462
- return xe(e.x) / xe(e.y);
5462
+ return be(e.x) / be(e.y);
5463
5463
  }
5464
5464
  function na(e, t) {
5465
5465
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
@@ -5661,8 +5661,8 @@ function Xu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5661
5661
  return;
5662
5662
  }
5663
5663
  this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Og), this.nodes.forEach(Mg), this.nodes.forEach(jg)) : this.nodes.forEach(ra), this.clearAllSnapshots();
5664
- const a = we.now();
5665
- ue.delta = He(0, 1e3 / 60, a - ue.timestamp), ue.timestamp = a, ue.isProcessing = !0, ui.update.process(ue), ui.preRender.process(ue), ui.render.process(ue), ue.isProcessing = !1;
5664
+ const a = ve.now();
5665
+ ue.delta = We(0, 1e3 / 60, a - ue.timestamp), ue.timestamp = a, ue.isProcessing = !0, ui.update.process(ue), ui.preRender.process(ue), ui.render.process(ue), ue.isProcessing = !1;
5666
5666
  }
5667
5667
  didUpdate() {
5668
5668
  this.updateScheduled || (this.updateScheduled = !0, es.read(this.scheduleUpdate));
@@ -5682,7 +5682,7 @@ function Xu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5682
5682
  * Update measurements
5683
5683
  */
5684
5684
  updateSnapshot() {
5685
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !xe(this.snapshot.measuredBox.x) && !xe(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
5685
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !be(this.snapshot.measuredBox.x) && !be(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
5686
5686
  }
5687
5687
  updateLayout() {
5688
5688
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
@@ -5889,9 +5889,9 @@ function Xu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5889
5889
  if (!(!a || !l || !u)) {
5890
5890
  if (this !== s && this.layout && u && Qu(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
5891
5891
  l = this.target || le();
5892
- const f = xe(this.layout.layoutBox.x);
5892
+ const f = be(this.layout.layoutBox.x);
5893
5893
  l.x.min = s.target.x.min, l.x.max = l.x.min + f;
5894
- const h = xe(this.layout.layoutBox.y);
5894
+ const h = be(this.layout.layoutBox.y);
5895
5895
  l.y.min = s.target.y.min, l.y.max = l.y.min + h;
5896
5896
  }
5897
5897
  Le(a, l), vt(a, c), Zt(this.projectionDeltaWithTransform, this.layoutCorrected, a, c);
@@ -6001,10 +6001,10 @@ function jg(e) {
6001
6001
  if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
6002
6002
  const { layoutBox: n, measuredBox: i } = e.layout, { animationType: r } = e.options, o = t.source !== e.layout.source;
6003
6003
  r === "size" ? Ie((c) => {
6004
- const f = o ? t.measuredBox[c] : t.layoutBox[c], h = xe(f);
6004
+ const f = o ? t.measuredBox[c] : t.layoutBox[c], h = be(f);
6005
6005
  f.min = n[c].min, f.max = f.min + h;
6006
6006
  }) : Qu(r, t.layoutBox, n) && Ie((c) => {
6007
- const f = o ? t.measuredBox[c] : t.layoutBox[c], h = xe(n[c]);
6007
+ const f = o ? t.measuredBox[c] : t.layoutBox[c], h = be(n[c]);
6008
6008
  f.max = f.min + h, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[c].max = e.relativeTarget[c].min + h);
6009
6009
  });
6010
6010
  const s = St();
@@ -6268,7 +6268,7 @@ const sy = {
6268
6268
  ...sy,
6269
6269
  ...Kg,
6270
6270
  ...oy
6271
- }, ke = /* @__PURE__ */ um(ay, vm), ly = (e) => {
6271
+ }, we = /* @__PURE__ */ um(ay, vm), ly = (e) => {
6272
6272
  const {
6273
6273
  title: t,
6274
6274
  href: n,
@@ -6289,7 +6289,7 @@ const sy = {
6289
6289
  a
6290
6290
  ].filter(Boolean).join(" ");
6291
6291
  return /* @__PURE__ */ b.jsxs(
6292
- ke.a,
6292
+ we.a,
6293
6293
  {
6294
6294
  href: n,
6295
6295
  target: c,
@@ -6300,18 +6300,18 @@ const sy = {
6300
6300
  transition: { duration: 0.1 },
6301
6301
  children: [
6302
6302
  r && /* @__PURE__ */ b.jsx(
6303
- ke.div,
6303
+ we.div,
6304
6304
  {
6305
6305
  className: "menu-item-icon",
6306
6306
  whileHover: { rotate: 5 },
6307
- children: /* @__PURE__ */ b.jsx(fe, { icon: r })
6307
+ children: /* @__PURE__ */ b.jsx(he, { icon: r })
6308
6308
  }
6309
6309
  ),
6310
6310
  /* @__PURE__ */ b.jsxs("div", { className: "menu-item-content", children: [
6311
6311
  /* @__PURE__ */ b.jsxs("div", { className: "menu-item-header", children: [
6312
6312
  /* @__PURE__ */ b.jsx("span", { className: "menu-item-title", children: t }),
6313
6313
  o && /* @__PURE__ */ b.jsx(
6314
- ke.span,
6314
+ we.span,
6315
6315
  {
6316
6316
  className: "menu-item-badge",
6317
6317
  initial: { scale: 0 },
@@ -6322,7 +6322,7 @@ const sy = {
6322
6322
  )
6323
6323
  ] }),
6324
6324
  i && l && /* @__PURE__ */ b.jsx(
6325
- ke.p,
6325
+ we.p,
6326
6326
  {
6327
6327
  className: "menu-item-description",
6328
6328
  initial: { opacity: 0, height: 0 },
@@ -6356,7 +6356,7 @@ const sy = {
6356
6356
  // children
6357
6357
  } = e, u = `menu-grid-item ${s ? "compact" : "regular"} ${l}`;
6358
6358
  return /* @__PURE__ */ b.jsx(
6359
- ke.div,
6359
+ we.div,
6360
6360
  {
6361
6361
  className: `${u} hover-lift`,
6362
6362
  initial: { opacity: 0, y: 20 },
@@ -6366,7 +6366,7 @@ const sy = {
6366
6366
  whileTap: { scale: 0.98 },
6367
6367
  children: i.startsWith("http") ? /* @__PURE__ */ b.jsxs("a", { href: i, className: "menu-grid-link", target: "_blank", rel: "noopener noreferrer", children: [
6368
6368
  o && /* @__PURE__ */ b.jsx(
6369
- ke.span,
6369
+ we.span,
6370
6370
  {
6371
6371
  className: "menu-grid-badge",
6372
6372
  initial: { scale: 0 },
@@ -6376,11 +6376,11 @@ const sy = {
6376
6376
  ),
6377
6377
  /* @__PURE__ */ b.jsxs("div", { className: "menu-grid-header", children: [
6378
6378
  r && /* @__PURE__ */ b.jsx(
6379
- ke.div,
6379
+ we.div,
6380
6380
  {
6381
6381
  className: "menu-grid-icon",
6382
6382
  whileHover: { rotate: 5, scale: 1.1 },
6383
- children: /* @__PURE__ */ b.jsx(fe, { icon: r })
6383
+ children: /* @__PURE__ */ b.jsx(he, { icon: r })
6384
6384
  }
6385
6385
  ),
6386
6386
  /* @__PURE__ */ b.jsx("span", { className: "menu-grid-title", children: t })
@@ -6388,7 +6388,7 @@ const sy = {
6388
6388
  n && a && /* @__PURE__ */ b.jsx("span", { className: "menu-grid-description", children: n })
6389
6389
  ] }) : /* @__PURE__ */ b.jsxs(Er, { to: i, className: "menu-grid-link", children: [
6390
6390
  o && /* @__PURE__ */ b.jsx(
6391
- ke.span,
6391
+ we.span,
6392
6392
  {
6393
6393
  className: "menu-grid-badge",
6394
6394
  initial: { scale: 0 },
@@ -6398,11 +6398,11 @@ const sy = {
6398
6398
  ),
6399
6399
  /* @__PURE__ */ b.jsxs("div", { className: "menu-grid-header", children: [
6400
6400
  r && /* @__PURE__ */ b.jsx(
6401
- ke.div,
6401
+ we.div,
6402
6402
  {
6403
6403
  className: "menu-grid-icon",
6404
6404
  whileHover: { rotate: 5, scale: 1.1 },
6405
- children: /* @__PURE__ */ b.jsx(fe, { icon: r })
6405
+ children: /* @__PURE__ */ b.jsx(he, { icon: r })
6406
6406
  }
6407
6407
  ),
6408
6408
  /* @__PURE__ */ b.jsx("span", { className: "menu-grid-title", children: t })
@@ -6444,7 +6444,7 @@ const sy = {
6444
6444
  large: "p-large"
6445
6445
  }[s];
6446
6446
  return /* @__PURE__ */ b.jsxs(
6447
- ke.div,
6447
+ we.div,
6448
6448
  {
6449
6449
  className: `hero-image relative ${a} ${l ? "theme-inverted" : ""}`,
6450
6450
  style: f,
@@ -6456,7 +6456,7 @@ const sy = {
6456
6456
  /* @__PURE__ */ b.jsx("div", { className: "hero-overlay" }),
6457
6457
  /* @__PURE__ */ b.jsxs("div", { className: `hero-text ${h} ${d}`, children: [
6458
6458
  /* @__PURE__ */ b.jsx(
6459
- ke.div,
6459
+ we.div,
6460
6460
  {
6461
6461
  className: "hero-text-primary hero-title",
6462
6462
  initial: { opacity: 0, y: 30 },
@@ -6466,7 +6466,7 @@ const sy = {
6466
6466
  }
6467
6467
  ),
6468
6468
  t && /* @__PURE__ */ b.jsx(
6469
- ke.div,
6469
+ we.div,
6470
6470
  {
6471
6471
  className: "hero-text-primary hero-subtitle",
6472
6472
  initial: { opacity: 0 },
@@ -6476,7 +6476,7 @@ const sy = {
6476
6476
  }
6477
6477
  ),
6478
6478
  i && /* @__PURE__ */ b.jsx("div", { className: "hero-actions", children: /* @__PURE__ */ b.jsx(
6479
- ke.a,
6479
+ we.a,
6480
6480
  {
6481
6481
  className: "btn hero-btn-primary hover-lift active-scale",
6482
6482
  href: r,
@@ -6505,7 +6505,7 @@ const sy = {
6505
6505
  onClick: n,
6506
6506
  "aria-label": i,
6507
6507
  type: "button",
6508
- children: /* @__PURE__ */ b.jsx(fe, { icon: t, className: "icon-button-icon" })
6508
+ children: /* @__PURE__ */ b.jsx(he, { icon: t, className: "icon-button-icon" })
6509
6509
  }
6510
6510
  );
6511
6511
  };
@@ -7866,7 +7866,7 @@ function wa(e) {
7866
7866
  function va(e) {
7867
7867
  return e && typeof e == "number" ? e : 1;
7868
7868
  }
7869
- class pe extends Error {
7869
+ class me extends Error {
7870
7870
  /**
7871
7871
  * Create a message for `reason`.
7872
7872
  *
@@ -7940,19 +7940,19 @@ class pe extends Error {
7940
7940
  this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = a ? a.line : void 0, this.name = Jt(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = s && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
7941
7941
  }
7942
7942
  }
7943
- pe.prototype.file = "";
7944
- pe.prototype.name = "";
7945
- pe.prototype.reason = "";
7946
- pe.prototype.message = "";
7947
- pe.prototype.stack = "";
7948
- pe.prototype.column = void 0;
7949
- pe.prototype.line = void 0;
7950
- pe.prototype.ancestors = void 0;
7951
- pe.prototype.cause = void 0;
7952
- pe.prototype.fatal = void 0;
7953
- pe.prototype.place = void 0;
7954
- pe.prototype.ruleId = void 0;
7955
- pe.prototype.source = void 0;
7943
+ me.prototype.file = "";
7944
+ me.prototype.name = "";
7945
+ me.prototype.reason = "";
7946
+ me.prototype.message = "";
7947
+ me.prototype.stack = "";
7948
+ me.prototype.column = void 0;
7949
+ me.prototype.line = void 0;
7950
+ me.prototype.ancestors = void 0;
7951
+ me.prototype.cause = void 0;
7952
+ me.prototype.fatal = void 0;
7953
+ me.prototype.place = void 0;
7954
+ me.prototype.ruleId = void 0;
7955
+ me.prototype.source = void 0;
7956
7956
  const ms = {}.hasOwnProperty, Oy = /* @__PURE__ */ new Map(), Vy = /[A-Z]/g, _y = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), By = /* @__PURE__ */ new Set(["td", "th"]), lc = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
7957
7957
  function zy(e, t) {
7958
7958
  if (!t || t.Fragment === void 0)
@@ -8175,7 +8175,7 @@ function Jy(e, t) {
8175
8175
  const i = (
8176
8176
  /** @type {Error} */
8177
8177
  n
8178
- ), r = new pe("Cannot parse `style` attribute", {
8178
+ ), r = new me("Cannot parse `style` attribute", {
8179
8179
  ancestors: e.ancestors,
8180
8180
  cause: i,
8181
8181
  ruleId: "style",
@@ -8216,7 +8216,7 @@ function fc(e, t, n) {
8216
8216
  un(e);
8217
8217
  }
8218
8218
  function un(e, t) {
8219
- const n = new pe(
8219
+ const n = new me(
8220
8220
  "Cannot handle MDX estrees without `createEvaluater`",
8221
8221
  {
8222
8222
  ancestors: e.ancestors,
@@ -8360,7 +8360,7 @@ function pc(e, t) {
8360
8360
  function Oe(e) {
8361
8361
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
8362
8362
  }
8363
- const ye = tt(/[A-Za-z]/), de = tt(/[\dA-Za-z]/), ax = tt(/[#-'*+\--9=?A-Z^-~]/);
8363
+ const xe = tt(/[A-Za-z]/), pe = tt(/[\dA-Za-z]/), ax = tt(/[#-'*+\--9=?A-Z^-~]/);
8364
8364
  function Un(e) {
8365
8365
  return (
8366
8366
  // Special whitespace codes (which have negative values), C0 and Control
@@ -8391,7 +8391,7 @@ function Nt(e) {
8391
8391
  for (; ++n < e.length; ) {
8392
8392
  const o = e.charCodeAt(n);
8393
8393
  let s = "";
8394
- if (o === 37 && de(e.charCodeAt(n + 1)) && de(e.charCodeAt(n + 2)))
8394
+ if (o === 37 && pe(e.charCodeAt(n + 1)) && pe(e.charCodeAt(n + 2)))
8395
8395
  r = 2;
8396
8396
  else if (o < 128)
8397
8397
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (s = String.fromCharCode(o));
@@ -8670,13 +8670,13 @@ function xx(e, t, n) {
8670
8670
  return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), o;
8671
8671
  }
8672
8672
  function o(d) {
8673
- return ye(d) ? (e.consume(d), s) : d === 64 ? n(d) : u(d);
8673
+ return xe(d) ? (e.consume(d), s) : d === 64 ? n(d) : u(d);
8674
8674
  }
8675
8675
  function s(d) {
8676
- return d === 43 || d === 45 || d === 46 || de(d) ? (i = 1, a(d)) : u(d);
8676
+ return d === 43 || d === 45 || d === 46 || pe(d) ? (i = 1, a(d)) : u(d);
8677
8677
  }
8678
8678
  function a(d) {
8679
- return d === 58 ? (e.consume(d), i = 0, l) : (d === 43 || d === 45 || d === 46 || de(d)) && i++ < 32 ? (e.consume(d), a) : (i = 0, u(d));
8679
+ return d === 58 ? (e.consume(d), i = 0, l) : (d === 43 || d === 45 || d === 46 || pe(d)) && i++ < 32 ? (e.consume(d), a) : (i = 0, u(d));
8680
8680
  }
8681
8681
  function l(d) {
8682
8682
  return d === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : d === null || d === 32 || d === 60 || Un(d) ? n(d) : (e.consume(d), l);
@@ -8685,13 +8685,13 @@ function xx(e, t, n) {
8685
8685
  return d === 64 ? (e.consume(d), c) : ax(d) ? (e.consume(d), u) : n(d);
8686
8686
  }
8687
8687
  function c(d) {
8688
- return de(d) ? f(d) : n(d);
8688
+ return pe(d) ? f(d) : n(d);
8689
8689
  }
8690
8690
  function f(d) {
8691
8691
  return d === 46 ? (e.consume(d), i = 0, c) : d === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : h(d);
8692
8692
  }
8693
8693
  function h(d) {
8694
- if ((d === 45 || de(d)) && i++ < 63) {
8694
+ if ((d === 45 || pe(d)) && i++ < 63) {
8695
8695
  const p = d === 45 ? h : f;
8696
8696
  return e.consume(d), p;
8697
8697
  }
@@ -8773,7 +8773,7 @@ function Tx(e, t, n) {
8773
8773
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), l;
8774
8774
  }
8775
8775
  function l(f) {
8776
- return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, s = de, c(f));
8776
+ return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, s = pe, c(f));
8777
8777
  }
8778
8778
  function u(f) {
8779
8779
  return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, s = lx, c) : (e.enter("characterReferenceValue"), o = 7, s = xr, c(f));
@@ -8781,7 +8781,7 @@ function Tx(e, t, n) {
8781
8781
  function c(f) {
8782
8782
  if (f === 59 && r) {
8783
8783
  const h = e.exit("characterReferenceValue");
8784
- return s === de && !bs(i.sliceSerialize(h)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
8784
+ return s === pe && !bs(i.sliceSerialize(h)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
8785
8785
  }
8786
8786
  return s(f) && r++ < o ? (e.consume(f), c) : n(f);
8787
8787
  }
@@ -9513,10 +9513,10 @@ function tb(e, t, n) {
9513
9513
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(x), f;
9514
9514
  }
9515
9515
  function f(x) {
9516
- return x === 33 ? (e.consume(x), h) : x === 47 ? (e.consume(x), o = !0, m) : x === 63 ? (e.consume(x), r = 3, i.interrupt ? t : k) : ye(x) ? (e.consume(x), s = String.fromCharCode(x), y) : n(x);
9516
+ return x === 33 ? (e.consume(x), h) : x === 47 ? (e.consume(x), o = !0, m) : x === 63 ? (e.consume(x), r = 3, i.interrupt ? t : k) : xe(x) ? (e.consume(x), s = String.fromCharCode(x), y) : n(x);
9517
9517
  }
9518
9518
  function h(x) {
9519
- return x === 45 ? (e.consume(x), r = 2, d) : x === 91 ? (e.consume(x), r = 5, a = 0, p) : ye(x) ? (e.consume(x), r = 4, i.interrupt ? t : k) : n(x);
9519
+ return x === 45 ? (e.consume(x), r = 2, d) : x === 91 ? (e.consume(x), r = 5, a = 0, p) : xe(x) ? (e.consume(x), r = 4, i.interrupt ? t : k) : n(x);
9520
9520
  }
9521
9521
  function d(x) {
9522
9522
  return x === 45 ? (e.consume(x), i.interrupt ? t : k) : n(x);
@@ -9526,14 +9526,14 @@ function tb(e, t, n) {
9526
9526
  return x === Y.charCodeAt(a++) ? (e.consume(x), a === Y.length ? i.interrupt ? t : F : p) : n(x);
9527
9527
  }
9528
9528
  function m(x) {
9529
- return ye(x) ? (e.consume(x), s = String.fromCharCode(x), y) : n(x);
9529
+ return xe(x) ? (e.consume(x), s = String.fromCharCode(x), y) : n(x);
9530
9530
  }
9531
9531
  function y(x) {
9532
9532
  if (x === null || x === 47 || x === 62 || Z(x)) {
9533
9533
  const Y = x === 47, Ee = s.toLowerCase();
9534
9534
  return !Y && !o && Da.includes(Ee) ? (r = 1, i.interrupt ? t(x) : F(x)) : Xx.includes(s.toLowerCase()) ? (r = 6, Y ? (e.consume(x), g) : i.interrupt ? t(x) : F(x)) : (r = 7, i.interrupt && !i.parser.lazy[i.now().line] ? n(x) : o ? v(x) : w(x));
9535
9535
  }
9536
- return x === 45 || de(x) ? (e.consume(x), s += String.fromCharCode(x), y) : n(x);
9536
+ return x === 45 || pe(x) ? (e.consume(x), s += String.fromCharCode(x), y) : n(x);
9537
9537
  }
9538
9538
  function g(x) {
9539
9539
  return x === 62 ? (e.consume(x), i.interrupt ? t : F) : n(x);
@@ -9542,10 +9542,10 @@ function tb(e, t, n) {
9542
9542
  return H(x) ? (e.consume(x), v) : T(x);
9543
9543
  }
9544
9544
  function w(x) {
9545
- return x === 47 ? (e.consume(x), T) : x === 58 || x === 95 || ye(x) ? (e.consume(x), E) : H(x) ? (e.consume(x), w) : T(x);
9545
+ return x === 47 ? (e.consume(x), T) : x === 58 || x === 95 || xe(x) ? (e.consume(x), E) : H(x) ? (e.consume(x), w) : T(x);
9546
9546
  }
9547
9547
  function E(x) {
9548
- return x === 45 || x === 46 || x === 58 || x === 95 || de(x) ? (e.consume(x), E) : A(x);
9548
+ return x === 45 || x === 46 || x === 58 || x === 95 || pe(x) ? (e.consume(x), E) : A(x);
9549
9549
  }
9550
9550
  function A(x) {
9551
9551
  return x === 61 ? (e.consume(x), S) : H(x) ? (e.consume(x), A) : w(x);
@@ -9591,7 +9591,7 @@ function tb(e, t, n) {
9591
9591
  const Y = s.toLowerCase();
9592
9592
  return Da.includes(Y) ? (e.consume(x), P) : F(x);
9593
9593
  }
9594
- return ye(x) && s.length < 8 ? (e.consume(x), s += String.fromCharCode(x), X) : F(x);
9594
+ return xe(x) && s.length < 8 ? (e.consume(x), s += String.fromCharCode(x), X) : F(x);
9595
9595
  }
9596
9596
  function se(x) {
9597
9597
  return x === 93 ? (e.consume(x), k) : F(x);
@@ -9634,10 +9634,10 @@ function sb(e, t, n) {
9634
9634
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(k), l;
9635
9635
  }
9636
9636
  function l(k) {
9637
- return k === 33 ? (e.consume(k), u) : k === 47 ? (e.consume(k), A) : k === 63 ? (e.consume(k), w) : ye(k) ? (e.consume(k), I) : n(k);
9637
+ return k === 33 ? (e.consume(k), u) : k === 47 ? (e.consume(k), A) : k === 63 ? (e.consume(k), w) : xe(k) ? (e.consume(k), I) : n(k);
9638
9638
  }
9639
9639
  function u(k) {
9640
- return k === 45 ? (e.consume(k), c) : k === 91 ? (e.consume(k), o = 0, p) : ye(k) ? (e.consume(k), v) : n(k);
9640
+ return k === 45 ? (e.consume(k), c) : k === 91 ? (e.consume(k), o = 0, p) : xe(k) ? (e.consume(k), v) : n(k);
9641
9641
  }
9642
9642
  function c(k) {
9643
9643
  return k === 45 ? (e.consume(k), d) : n(k);
@@ -9674,22 +9674,22 @@ function sb(e, t, n) {
9674
9674
  return k === 62 ? K(k) : w(k);
9675
9675
  }
9676
9676
  function A(k) {
9677
- return ye(k) ? (e.consume(k), S) : n(k);
9677
+ return xe(k) ? (e.consume(k), S) : n(k);
9678
9678
  }
9679
9679
  function S(k) {
9680
- return k === 45 || de(k) ? (e.consume(k), S) : R(k);
9680
+ return k === 45 || pe(k) ? (e.consume(k), S) : R(k);
9681
9681
  }
9682
9682
  function R(k) {
9683
9683
  return _(k) ? (s = R, U(k)) : H(k) ? (e.consume(k), R) : K(k);
9684
9684
  }
9685
9685
  function I(k) {
9686
- return k === 45 || de(k) ? (e.consume(k), I) : k === 47 || k === 62 || Z(k) ? O(k) : n(k);
9686
+ return k === 45 || pe(k) ? (e.consume(k), I) : k === 47 || k === 62 || Z(k) ? O(k) : n(k);
9687
9687
  }
9688
9688
  function O(k) {
9689
- return k === 47 ? (e.consume(k), K) : k === 58 || k === 95 || ye(k) ? (e.consume(k), T) : _(k) ? (s = O, U(k)) : H(k) ? (e.consume(k), O) : K(k);
9689
+ return k === 47 ? (e.consume(k), K) : k === 58 || k === 95 || xe(k) ? (e.consume(k), T) : _(k) ? (s = O, U(k)) : H(k) ? (e.consume(k), O) : K(k);
9690
9690
  }
9691
9691
  function T(k) {
9692
- return k === 45 || k === 46 || k === 58 || k === 95 || de(k) ? (e.consume(k), T) : L(k);
9692
+ return k === 45 || k === 46 || k === 58 || k === 95 || pe(k) ? (e.consume(k), T) : L(k);
9693
9693
  }
9694
9694
  function L(k) {
9695
9695
  return k === 61 ? (e.consume(k), F) : _(k) ? (s = L, U(k)) : H(k) ? (e.consume(k), L) : O(k);
@@ -9923,7 +9923,7 @@ function kb(e, t, n) {
9923
9923
  return u === r ? (e.consume(u), i++, l) : (e.exit("thematicBreakSequence"), H(u) ? G(e, a, "whitespace")(u) : a(u));
9924
9924
  }
9925
9925
  }
9926
- const be = {
9926
+ const ke = {
9927
9927
  continuation: {
9928
9928
  tokenize: Tb
9929
9929
  },
@@ -9984,7 +9984,7 @@ function Tb(e, t, n) {
9984
9984
  return i.containerState.furtherBlankLines || !H(a) ? (i.containerState.furtherBlankLines = void 0, i.containerState.initialBlankLine = void 0, s(a)) : (i.containerState.furtherBlankLines = void 0, i.containerState.initialBlankLine = void 0, e.attempt(vb, t, s)(a));
9985
9985
  }
9986
9986
  function s(a) {
9987
- return i.containerState._closeFlow = !0, i.interrupt = void 0, G(e, e.attempt(be, t, n), "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
9987
+ return i.containerState._closeFlow = !0, i.interrupt = void 0, G(e, e.attempt(ke, t, n), "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
9988
9988
  }
9989
9989
  }
9990
9990
  function Cb(e, t, n) {
@@ -10176,19 +10176,19 @@ function Nb(e, t) {
10176
10176
  return e;
10177
10177
  }
10178
10178
  const Fb = {
10179
- 42: be,
10180
- 43: be,
10181
- 45: be,
10182
- 48: be,
10183
- 49: be,
10184
- 50: be,
10185
- 51: be,
10186
- 52: be,
10187
- 53: be,
10188
- 54: be,
10189
- 55: be,
10190
- 56: be,
10191
- 57: be,
10179
+ 42: ke,
10180
+ 43: ke,
10181
+ 45: ke,
10182
+ 48: ke,
10183
+ 49: ke,
10184
+ 50: ke,
10185
+ 51: ke,
10186
+ 52: ke,
10187
+ 53: ke,
10188
+ 54: ke,
10189
+ 55: ke,
10190
+ 56: ke,
10191
+ 57: ke,
10192
10192
  62: mc
10193
10193
  }, Ob = {
10194
10194
  91: zx
@@ -10350,14 +10350,14 @@ function qb(e, t, n) {
10350
10350
  ) : P(V);
10351
10351
  function P(re) {
10352
10352
  return ee;
10353
- function ee(ge) {
10354
- const Ve = ge !== null && re[ge], Ke = ge !== null && re.null, xn = [
10353
+ function ee(ye) {
10354
+ const Ve = ye !== null && re[ye], Ye = ye !== null && re.null, xn = [
10355
10355
  // To do: add more extension tests.
10356
10356
  /* c8 ignore next 2 */
10357
10357
  ...Array.isArray(Ve) ? Ve : Ve ? [Ve] : [],
10358
- ...Array.isArray(Ke) ? Ke : Ke ? [Ke] : []
10358
+ ...Array.isArray(Ye) ? Ye : Ye ? [Ye] : []
10359
10359
  ];
10360
- return B(xn)(ge);
10360
+ return B(xn)(ye);
10361
10361
  }
10362
10362
  }
10363
10363
  function B(re) {
@@ -10365,7 +10365,7 @@ function qb(e, t, n) {
10365
10365
  }
10366
10366
  function x(re) {
10367
10367
  return ee;
10368
- function ee(ge) {
10368
+ function ee(ye) {
10369
10369
  return k = O(), se = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? Ee() : re.tokenize.call(
10370
10370
  // If we do have fields, create an object w/ `context` as its
10371
10371
  // prototype.
@@ -10374,7 +10374,7 @@ function qb(e, t, n) {
10374
10374
  l,
10375
10375
  Y,
10376
10376
  Ee
10377
- )(ge);
10377
+ )(ye);
10378
10378
  }
10379
10379
  }
10380
10380
  function Y(re) {
@@ -10545,7 +10545,7 @@ function nk(e) {
10545
10545
  autolinkProtocol: O,
10546
10546
  autolinkEmail: O,
10547
10547
  atxHeading: o(Rs),
10548
- blockQuote: o(Ke),
10548
+ blockQuote: o(Ye),
10549
10549
  characterEscape: O,
10550
10550
  characterReference: O,
10551
10551
  codeFenced: o(xn),
@@ -10588,7 +10588,7 @@ function nk(e) {
10588
10588
  atxHeadingSequence: A,
10589
10589
  autolink: l(),
10590
10590
  autolinkEmail: Ve,
10591
- autolinkProtocol: ge,
10591
+ autolinkProtocol: ye,
10592
10592
  blockQuote: l(),
10593
10593
  characterEscapeValue: T,
10594
10594
  characterReferenceMarkerHexadecimal: Ee,
@@ -10673,12 +10673,12 @@ function nk(e) {
10673
10673
  (je[1] || ja).call(z, void 0, je[0]);
10674
10674
  }
10675
10675
  for (M.position = {
10676
- start: Ye(C.length > 0 ? C[0][1].start : {
10676
+ start: Xe(C.length > 0 ? C[0][1].start : {
10677
10677
  line: 1,
10678
10678
  column: 1,
10679
10679
  offset: 0
10680
10680
  }),
10681
- end: Ye(C.length > 0 ? C[C.length - 2][1].end : {
10681
+ end: Xe(C.length > 0 ? C[C.length - 2][1].end : {
10682
10682
  line: 1,
10683
10683
  column: 1,
10684
10684
  offset: 0
@@ -10751,7 +10751,7 @@ function nk(e) {
10751
10751
  }
10752
10752
  function a(C, M, z) {
10753
10753
  this.stack[this.stack.length - 1].children.push(C), this.stack.push(C), this.tokenStack.push([M, z || void 0]), C.position = {
10754
- start: Ye(M.start),
10754
+ start: Xe(M.start),
10755
10755
  // @ts-expect-error: `end` will be patched later.
10756
10756
  end: void 0
10757
10757
  };
@@ -10770,7 +10770,7 @@ function nk(e) {
10770
10770
  start: C.start,
10771
10771
  end: C.end
10772
10772
  }) + "): it’s not open");
10773
- z.position.end = Ye(C.end);
10773
+ z.position.end = Xe(C.end);
10774
10774
  }
10775
10775
  function c() {
10776
10776
  return xs(this.stack.pop());
@@ -10836,20 +10836,20 @@ function nk(e) {
10836
10836
  const z = this.stack[this.stack.length - 1].children;
10837
10837
  let W = z[z.length - 1];
10838
10838
  (!W || W.type !== "text") && (W = mf(), W.position = {
10839
- start: Ye(C.start),
10839
+ start: Xe(C.start),
10840
10840
  // @ts-expect-error: we’ll add `end` later.
10841
10841
  end: void 0
10842
10842
  }, z.push(W)), this.stack.push(W);
10843
10843
  }
10844
10844
  function T(C) {
10845
10845
  const M = this.stack.pop();
10846
- M.value += this.sliceSerialize(C), M.position.end = Ye(C.end);
10846
+ M.value += this.sliceSerialize(C), M.position.end = Xe(C.end);
10847
10847
  }
10848
10848
  function L(C) {
10849
10849
  const M = this.stack[this.stack.length - 1];
10850
10850
  if (this.data.atHardBreak) {
10851
10851
  const z = M.children[M.children.length - 1];
10852
- z.position.end = Ye(C.end), this.data.atHardBreak = void 0;
10852
+ z.position.end = Xe(C.end), this.data.atHardBreak = void 0;
10853
10853
  return;
10854
10854
  }
10855
10855
  !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(M.type) && (O.call(this, C), T.call(this, C));
@@ -10929,9 +10929,9 @@ function nk(e) {
10929
10929
  }
10930
10930
  function ee(C) {
10931
10931
  const M = this.stack.pop();
10932
- M.position.end = Ye(C.end);
10932
+ M.position.end = Xe(C.end);
10933
10933
  }
10934
- function ge(C) {
10934
+ function ye(C) {
10935
10935
  T.call(this, C);
10936
10936
  const M = this.stack[this.stack.length - 1];
10937
10937
  M.url = this.sliceSerialize(C);
@@ -10941,7 +10941,7 @@ function nk(e) {
10941
10941
  const M = this.stack[this.stack.length - 1];
10942
10942
  M.url = "mailto:" + this.sliceSerialize(C);
10943
10943
  }
10944
- function Ke() {
10944
+ function Ye() {
10945
10945
  return {
10946
10946
  type: "blockquote",
10947
10947
  children: []
@@ -11052,7 +11052,7 @@ function nk(e) {
11052
11052
  };
11053
11053
  }
11054
11054
  }
11055
- function Ye(e) {
11055
+ function Xe(e) {
11056
11056
  return {
11057
11057
  line: e.line,
11058
11058
  column: e.column,
@@ -12587,7 +12587,7 @@ class jc {
12587
12587
  * Message.
12588
12588
  */
12589
12589
  message(t, n, i) {
12590
- const r = new pe(
12590
+ const r = new me(
12591
12591
  // @ts-expect-error: the overloads are fine.
12592
12592
  t,
12593
12593
  n,
@@ -14494,7 +14494,7 @@ const e1 = {
14494
14494
  name: "protocolAutolink",
14495
14495
  tokenize: s1,
14496
14496
  previous: nf
14497
- }, Ge = {
14497
+ }, Ke = {
14498
14498
  name: "emailAutolink",
14499
14499
  tokenize: i1,
14500
14500
  previous: rf
@@ -14506,15 +14506,15 @@ function n1() {
14506
14506
  }
14507
14507
  let rt = 48;
14508
14508
  for (; rt < 123; )
14509
- ze[rt] = Ge, rt++, rt === 58 ? rt = 65 : rt === 91 && (rt = 97);
14510
- ze[43] = Ge;
14511
- ze[45] = Ge;
14512
- ze[46] = Ge;
14513
- ze[95] = Ge;
14514
- ze[72] = [Ge, ef];
14515
- ze[104] = [Ge, ef];
14516
- ze[87] = [Ge, Jc];
14517
- ze[119] = [Ge, Jc];
14509
+ ze[rt] = Ke, rt++, rt === 58 ? rt = 65 : rt === 91 && (rt = 97);
14510
+ ze[43] = Ke;
14511
+ ze[45] = Ke;
14512
+ ze[46] = Ke;
14513
+ ze[95] = Ke;
14514
+ ze[72] = [Ke, ef];
14515
+ ze[104] = [Ke, ef];
14516
+ ze[87] = [Ke, Jc];
14517
+ ze[119] = [Ke, Jc];
14518
14518
  function i1(e, t, n) {
14519
14519
  const i = this;
14520
14520
  let r, o;
@@ -14526,13 +14526,13 @@ function i1(e, t, n) {
14526
14526
  return Tr(f) ? (e.consume(f), a) : f === 64 ? (e.consume(f), l) : n(f);
14527
14527
  }
14528
14528
  function l(f) {
14529
- return f === 46 ? e.check(t1, c, u)(f) : f === 45 || f === 95 || de(f) ? (o = !0, e.consume(f), l) : c(f);
14529
+ return f === 46 ? e.check(t1, c, u)(f) : f === 45 || f === 95 || pe(f) ? (o = !0, e.consume(f), l) : c(f);
14530
14530
  }
14531
14531
  function u(f) {
14532
14532
  return e.consume(f), r = !0, l;
14533
14533
  }
14534
14534
  function c(f) {
14535
- return o && r && ye(i.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(f)) : n(f);
14535
+ return o && r && xe(i.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(f)) : n(f);
14536
14536
  }
14537
14537
  }
14538
14538
  function r1(e, t, n) {
@@ -14553,7 +14553,7 @@ function s1(e, t, n) {
14553
14553
  return (f === 72 || f === 104) && nf.call(i, i.previous) && !Is(i.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), r += String.fromCodePoint(f), e.consume(f), a) : n(f);
14554
14554
  }
14555
14555
  function a(f) {
14556
- if (ye(f) && r.length < 5)
14556
+ if (xe(f) && r.length < 5)
14557
14557
  return r += String.fromCodePoint(f), e.consume(f), a;
14558
14558
  if (f === 58) {
14559
14559
  const h = r.toLowerCase();
@@ -14618,10 +14618,10 @@ function u1(e, t, n) {
14618
14618
  return a === null || a === 40 || a === 91 || Z(a) || ft(a) ? t(a) : i(a);
14619
14619
  }
14620
14620
  function o(a) {
14621
- return ye(a) ? s(a) : n(a);
14621
+ return xe(a) ? s(a) : n(a);
14622
14622
  }
14623
14623
  function s(a) {
14624
- return a === 59 ? (e.consume(a), i) : ye(a) ? (e.consume(a), s) : n(a);
14624
+ return a === 59 ? (e.consume(a), i) : xe(a) ? (e.consume(a), s) : n(a);
14625
14625
  }
14626
14626
  }
14627
14627
  function c1(e, t, n) {
@@ -14630,20 +14630,20 @@ function c1(e, t, n) {
14630
14630
  return e.consume(o), r;
14631
14631
  }
14632
14632
  function r(o) {
14633
- return de(o) ? n(o) : t(o);
14633
+ return pe(o) ? n(o) : t(o);
14634
14634
  }
14635
14635
  }
14636
14636
  function tf(e) {
14637
14637
  return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || Z(e);
14638
14638
  }
14639
14639
  function nf(e) {
14640
- return !ye(e);
14640
+ return !xe(e);
14641
14641
  }
14642
14642
  function rf(e) {
14643
14643
  return !(e === 47 || Tr(e));
14644
14644
  }
14645
14645
  function Tr(e) {
14646
- return e === 43 || e === 45 || e === 46 || e === 95 || de(e);
14646
+ return e === 43 || e === 45 || e === 46 || e === 95 || pe(e);
14647
14647
  }
14648
14648
  function Is(e) {
14649
14649
  let t = e.length, n = !1;
@@ -15204,7 +15204,7 @@ const j1 = ({
15204
15204
  /* @__PURE__ */ b.jsx("div", { className: "section-title feature-split-title", children: e }),
15205
15205
  t && /* @__PURE__ */ b.jsx("div", { className: "feature-split-description", children: /* @__PURE__ */ b.jsx(qn, { remarkPlugins: [Gn, Yn], children: t }) }),
15206
15206
  n && n.length > 0 && /* @__PURE__ */ b.jsx("div", { className: "feature-split-list", children: n.map((u, c) => /* @__PURE__ */ b.jsxs("div", { className: "feature-split-item", children: [
15207
- u.icon && /* @__PURE__ */ b.jsx("div", { className: "feature-split-icon-wrapper", children: /* @__PURE__ */ b.jsx(fe, { icon: u.icon, width: "24", height: "24" }) }),
15207
+ u.icon && /* @__PURE__ */ b.jsx("div", { className: "feature-split-icon-wrapper", children: /* @__PURE__ */ b.jsx(he, { icon: u.icon, width: "24", height: "24" }) }),
15208
15208
  /* @__PURE__ */ b.jsxs("div", { children: [
15209
15209
  /* @__PURE__ */ b.jsx("h3", { className: "card-title feature-split-item-title", children: u.title }),
15210
15210
  /* @__PURE__ */ b.jsx("div", { className: "feature-split-item-description", children: /* @__PURE__ */ b.jsx(qn, { remarkPlugins: [Gn, Yn], children: u.description }) })
@@ -15219,25 +15219,53 @@ const j1 = ({
15219
15219
  ) })
15220
15220
  ] }),
15221
15221
  /* @__PURE__ */ b.jsx("div", { className: "feature-split-image-wrapper", children: /* @__PURE__ */ b.jsx("img", { src: i.imageSrc, alt: i.alt, className: "feature-split-image" }) })
15222
- ] }) }), L1 = ({
15222
+ ] }) }), L1 = (e) => {
15223
+ const [t, n] = fe(""), [i, r] = fe(!1), [o, s] = fe(null);
15224
+ return He(() => {
15225
+ if (!e) {
15226
+ n("");
15227
+ return;
15228
+ }
15229
+ (async () => {
15230
+ r(!0), s(null);
15231
+ try {
15232
+ const l = await fetch(e);
15233
+ if (!l.ok)
15234
+ throw new Error(`Failed to fetch markdown: ${l.statusText}`);
15235
+ const u = await l.text();
15236
+ n(u);
15237
+ } catch (l) {
15238
+ s(l instanceof Error ? l : new Error("Unknown error fetching markdown")), console.error("Error fetching markdown:", l);
15239
+ } finally {
15240
+ r(!1);
15241
+ }
15242
+ })();
15243
+ }, [e]), { content: t, loading: i, error: o };
15244
+ }, N1 = ({
15223
15245
  title: e,
15224
15246
  subtitle: t,
15225
- content: n,
15226
- format: i = "markdown",
15227
- className: r = "",
15228
- image: o,
15229
- inverted: s = !1
15230
- }) => /* @__PURE__ */ b.jsx("section", { className: `content-block-section ${s ? "theme-inverted" : ""} ${r}`, children: /* @__PURE__ */ b.jsxs("div", { className: "content-block-container", children: [
15231
- /* @__PURE__ */ b.jsxs("div", { className: "content-block-header", children: [
15232
- e && /* @__PURE__ */ b.jsx("div", { className: "section-title content-block-title", children: e }),
15233
- t && /* @__PURE__ */ b.jsx("div", { className: "section-subtitle content-block-subtitle", children: t })
15234
- ] }),
15235
- o && /* @__PURE__ */ b.jsxs("div", { className: "content-block-featured-image", children: [
15236
- /* @__PURE__ */ b.jsx("img", { src: o.imageSrc, alt: o.alt }),
15237
- o.caption && /* @__PURE__ */ b.jsx("figcaption", { children: o.caption })
15238
- ] }),
15239
- /* @__PURE__ */ b.jsx("div", { className: "content-block-body markdown-body", children: i === "html" ? /* @__PURE__ */ b.jsx("div", { dangerouslySetInnerHTML: { __html: n || "" } }) : /* @__PURE__ */ b.jsx(qn, { remarkPlugins: [Gn, Yn], children: n || "" }) })
15240
- ] }) }), sf = ({
15247
+ contentUrl: n,
15248
+ className: i = "",
15249
+ image: r,
15250
+ inverted: o = !1
15251
+ }) => {
15252
+ const { content: s, loading: a, error: l } = L1(n);
15253
+ return /* @__PURE__ */ b.jsx("section", { className: `content-block-section ${o ? "theme-inverted" : ""} ${i}`, children: /* @__PURE__ */ b.jsxs("div", { className: "content-block-container", children: [
15254
+ /* @__PURE__ */ b.jsxs("div", { className: "content-block-header", children: [
15255
+ e && /* @__PURE__ */ b.jsx("div", { className: "section-title content-block-title", children: e }),
15256
+ t && /* @__PURE__ */ b.jsx("div", { className: "section-subtitle content-block-subtitle", children: t })
15257
+ ] }),
15258
+ r && /* @__PURE__ */ b.jsxs("div", { className: "content-block-featured-image", children: [
15259
+ /* @__PURE__ */ b.jsx("img", { src: r.imageSrc, alt: r.alt }),
15260
+ r.caption && /* @__PURE__ */ b.jsx("figcaption", { children: r.caption })
15261
+ ] }),
15262
+ /* @__PURE__ */ b.jsxs("div", { className: "content-block-body markdown-body", children: [
15263
+ a && /* @__PURE__ */ b.jsx("div", { children: "Loading content..." }),
15264
+ l && /* @__PURE__ */ b.jsx("div", { children: "Error loading content." }),
15265
+ !a && !l && /* @__PURE__ */ b.jsx(qn, { remarkPlugins: [Gn, Yn], children: s || "" })
15266
+ ] })
15267
+ ] }) });
15268
+ }, sf = ({
15241
15269
  icon: e,
15242
15270
  title: t,
15243
15271
  description: n,
@@ -15246,7 +15274,7 @@ const j1 = ({
15246
15274
  className: o = "",
15247
15275
  inverted: s = !1
15248
15276
  }) => /* @__PURE__ */ b.jsx(bl, { hoverable: !0, elevation: "sm", className: `feature-card ${o}`, inverted: s, children: /* @__PURE__ */ b.jsxs("div", { className: "feature-card-content", children: [
15249
- e && /* @__PURE__ */ b.jsx("div", { className: "feature-icon-wrapper", children: /* @__PURE__ */ b.jsx(fe, { icon: e, width: "24", height: "24" }) }),
15277
+ e && /* @__PURE__ */ b.jsx("div", { className: "feature-icon-wrapper", children: /* @__PURE__ */ b.jsx(he, { icon: e, width: "24", height: "24" }) }),
15250
15278
  /* @__PURE__ */ b.jsx("h3", { className: "card-title feature-title", children: t }),
15251
15279
  /* @__PURE__ */ b.jsx("div", { className: "card-description feature-description", children: /* @__PURE__ */ b.jsx(qn, { remarkPlugins: [Gn, Yn], children: n }) }),
15252
15280
  i && (i.startsWith("http") ? /* @__PURE__ */ b.jsxs("a", { href: i, className: "feature-link", target: "_blank", rel: "noopener noreferrer", children: [
@@ -15258,7 +15286,7 @@ const j1 = ({
15258
15286
  " ",
15259
15287
  /* @__PURE__ */ b.jsx("span", { children: "→" })
15260
15288
  ] }))
15261
- ] }) }), N1 = ({
15289
+ ] }) }), F1 = ({
15262
15290
  title: e,
15263
15291
  subtitle: t,
15264
15292
  items: n,
@@ -15279,13 +15307,13 @@ const j1 = ({
15279
15307
  n && n.map((u, c) => /* @__PURE__ */ b.jsx(sf, { ...u, actionLabel: s, inverted: a }, c))
15280
15308
  ] })
15281
15309
  ] }) });
15282
- }, of = ht(void 0), F1 = () => {
15310
+ }, of = ht(void 0), O1 = () => {
15283
15311
  const e = ce(of);
15284
15312
  if (!e)
15285
15313
  throw new Error("useDropdownContext must be used within DropdownProvider");
15286
15314
  return e;
15287
- }, Z1 = ({ children: e }) => {
15288
- const [t, n] = ve(null);
15315
+ }, J1 = ({ children: e }) => {
15316
+ const [t, n] = fe(null);
15289
15317
  return /* @__PURE__ */ b.jsx(of.Provider, { value: { activeDropdown: t, setActiveDropdown: n }, children: e });
15290
15318
  }, af = (e) => {
15291
15319
  const {
@@ -15300,8 +15328,8 @@ const j1 = ({
15300
15328
  href: u,
15301
15329
  id: c = t || n || "dropdown",
15302
15330
  target: f = "_self"
15303
- } = e, { activeDropdown: h, setActiveDropdown: d } = F1(), p = Pe(null), m = Pe(null), y = h === c, g = y;
15304
- Qe(() => {
15331
+ } = e, { activeDropdown: h, setActiveDropdown: d } = O1(), p = Pe(null), m = Pe(null), y = h === c, g = y;
15332
+ He(() => {
15305
15333
  const w = (E) => {
15306
15334
  p.current && !p.current.contains(E.target) && h === c && d(null);
15307
15335
  };
@@ -15329,7 +15357,7 @@ const j1 = ({
15329
15357
  "aria-expanded": g,
15330
15358
  children: [
15331
15359
  n && i === "left" && /* @__PURE__ */ b.jsx(
15332
- fe,
15360
+ he,
15333
15361
  {
15334
15362
  icon: n,
15335
15363
  style: { width: r, height: r, color: o },
@@ -15338,7 +15366,7 @@ const j1 = ({
15338
15366
  ),
15339
15367
  t && /* @__PURE__ */ b.jsx("span", { children: t }),
15340
15368
  n && i === "right" && /* @__PURE__ */ b.jsx(
15341
- fe,
15369
+ he,
15342
15370
  {
15343
15371
  icon: n,
15344
15372
  style: { width: r, height: r, color: o },
@@ -15358,7 +15386,7 @@ const j1 = ({
15358
15386
  "aria-expanded": g,
15359
15387
  children: [
15360
15388
  n && i === "left" && /* @__PURE__ */ b.jsx(
15361
- fe,
15389
+ he,
15362
15390
  {
15363
15391
  icon: n,
15364
15392
  style: { width: r, height: r, color: o },
@@ -15367,7 +15395,7 @@ const j1 = ({
15367
15395
  ),
15368
15396
  t && /* @__PURE__ */ b.jsx("span", { children: t }),
15369
15397
  n && i === "right" && /* @__PURE__ */ b.jsx(
15370
- fe,
15398
+ he,
15371
15399
  {
15372
15400
  icon: n,
15373
15401
  style: { width: r, height: r, color: o },
@@ -15390,11 +15418,11 @@ const j1 = ({
15390
15418
  ]
15391
15419
  }
15392
15420
  );
15393
- }, O1 = ({ items: e, className: t = "" }) => /* @__PURE__ */ b.jsx("section", { className: `stats-section ${t}`, children: /* @__PURE__ */ b.jsx("div", { className: "stats-container", children: /* @__PURE__ */ b.jsx("div", { className: "stats-grid", children: e.map((n, i) => /* @__PURE__ */ b.jsxs("div", { className: "stat-item", children: [
15421
+ }, V1 = ({ items: e, className: t = "" }) => /* @__PURE__ */ b.jsx("section", { className: `stats-section ${t}`, children: /* @__PURE__ */ b.jsx("div", { className: "stats-container", children: /* @__PURE__ */ b.jsx("div", { className: "stats-grid", children: e.map((n, i) => /* @__PURE__ */ b.jsxs("div", { className: "stat-item", children: [
15394
15422
  /* @__PURE__ */ b.jsx("span", { className: "stat-value", children: n.value }),
15395
15423
  /* @__PURE__ */ b.jsx("span", { className: "stat-label", children: n.label }),
15396
15424
  n.description && /* @__PURE__ */ b.jsx("span", { className: "stat-description", children: n.description })
15397
- ] }, i)) }) }) }), V1 = ({
15425
+ ] }, i)) }) }) }), _1 = ({
15398
15426
  title: e,
15399
15427
  subtitle: t,
15400
15428
  actionLabel: n,
@@ -15415,7 +15443,7 @@ const j1 = ({
15415
15443
  }
15416
15444
  ) })
15417
15445
  ] }) });
15418
- }, _1 = ({
15446
+ }, B1 = ({
15419
15447
  title: e,
15420
15448
  subtitle: t,
15421
15449
  items: n,
@@ -15426,7 +15454,7 @@ const j1 = ({
15426
15454
  t && /* @__PURE__ */ b.jsx("p", { className: "section-subtitle testimonials-subtitle", children: t })
15427
15455
  ] }),
15428
15456
  /* @__PURE__ */ b.jsx("div", { className: "testimonials-grid", children: n.map((r) => /* @__PURE__ */ b.jsx(bl, { elevation: "sm", className: "testimonial-card", children: /* @__PURE__ */ b.jsxs("div", { className: "testimonial-card-content", children: [
15429
- /* @__PURE__ */ b.jsx("div", { className: "testimonial-stars", children: [...Array(r.rating || 5)].map((o, s) => /* @__PURE__ */ b.jsx(fe, { icon: "mdi:star", width: "20", height: "20" }, s)) }),
15457
+ /* @__PURE__ */ b.jsx("div", { className: "testimonial-stars", children: [...Array(r.rating || 5)].map((o, s) => /* @__PURE__ */ b.jsx(he, { icon: "mdi:star", width: "20", height: "20" }, s)) }),
15430
15458
  /* @__PURE__ */ b.jsxs("blockquote", { className: "testimonial-quote", children: [
15431
15459
  '"',
15432
15460
  r.quote,
@@ -15451,7 +15479,7 @@ const j1 = ({
15451
15479
  ] })
15452
15480
  ] })
15453
15481
  ] }) }, r.id)) })
15454
- ] }) }), B1 = ({
15482
+ ] }) }), z1 = ({
15455
15483
  options: e = [],
15456
15484
  value: t,
15457
15485
  defaultValue: n,
@@ -15460,7 +15488,7 @@ const j1 = ({
15460
15488
  id: o,
15461
15489
  hideSelectedLabel: s = !1
15462
15490
  }) => {
15463
- const [a, l] = ve(n), u = t !== void 0, c = u ? t : a, f = (m) => {
15491
+ const [a, l] = fe(n), u = t !== void 0, c = u ? t : a, f = (m) => {
15464
15492
  u || l(m.value), m.onClick?.();
15465
15493
  }, h = e.find((m) => m.value === c), d = h?.icon || r;
15466
15494
  let p = h?.label || h?.value || c || "";
@@ -15480,7 +15508,7 @@ const j1 = ({
15480
15508
  role: "option",
15481
15509
  "aria-selected": m.value === c,
15482
15510
  children: [
15483
- m.icon && /* @__PURE__ */ b.jsx("span", { className: "option-icon", children: /* @__PURE__ */ b.jsx(fe, { icon: m.icon }) }),
15511
+ m.icon && /* @__PURE__ */ b.jsx("span", { className: "option-icon", children: /* @__PURE__ */ b.jsx(he, { icon: m.icon }) }),
15484
15512
  m.label && /* @__PURE__ */ b.jsx("span", { className: `option-label ${i}`, children: m.label })
15485
15513
  ]
15486
15514
  },
@@ -15488,7 +15516,7 @@ const j1 = ({
15488
15516
  ))
15489
15517
  }
15490
15518
  );
15491
- }, z1 = ({
15519
+ }, $1 = ({
15492
15520
  children: e,
15493
15521
  autoPlay: t = !0,
15494
15522
  interval: n = 5e3,
@@ -15496,14 +15524,14 @@ const j1 = ({
15496
15524
  showArrows: r = !0,
15497
15525
  showIndicators: o = !0
15498
15526
  }) => {
15499
- const [s, a] = ve(0), [l, u] = ve(0), c = Ar(() => {
15527
+ const [s, a] = fe(0), [l, u] = fe(0), c = Ar(() => {
15500
15528
  u(1), a((p) => (p + 1) % e.length);
15501
15529
  }, [e.length]), f = () => {
15502
15530
  u(-1), a((p) => (p - 1 + e.length) % e.length);
15503
15531
  }, h = (p) => {
15504
15532
  u(p > s ? 1 : -1), a(p);
15505
15533
  };
15506
- Qe(() => {
15534
+ He(() => {
15507
15535
  if (!t) return;
15508
15536
  const p = setInterval(c, n);
15509
15537
  return () => clearInterval(p);
@@ -15526,7 +15554,7 @@ const j1 = ({
15526
15554
  };
15527
15555
  return !e || e.length === 0 ? null : /* @__PURE__ */ b.jsxs("div", { className: `carousel-container ${i}`, children: [
15528
15556
  /* @__PURE__ */ b.jsx(Dp, { initial: !1, custom: l, mode: "wait", children: /* @__PURE__ */ b.jsx(
15529
- ke.div,
15557
+ we.div,
15530
15558
  {
15531
15559
  custom: l,
15532
15560
  variants: d,
@@ -15556,7 +15584,7 @@ const j1 = ({
15556
15584
  m
15557
15585
  )) })
15558
15586
  ] });
15559
- }, $1 = {
15587
+ }, U1 = {
15560
15588
  Header: Ah,
15561
15589
  MenuItem: ly,
15562
15590
  MenuGrid: uy,
@@ -15565,27 +15593,27 @@ const j1 = ({
15565
15593
  Hero: fy,
15566
15594
  IconButton: hy,
15567
15595
  FeatureSplit: j1,
15568
- ContentBlock: L1,
15569
- FeaturesSection: N1,
15596
+ ContentBlock: N1,
15597
+ FeaturesSection: F1,
15570
15598
  FeatureItem: sf,
15571
15599
  BentoGrid: Ch,
15572
- Stats: O1,
15573
- CTASection: V1,
15574
- Testimonials: _1,
15575
- Select: B1,
15576
- Carousel: z1
15600
+ Stats: V1,
15601
+ CTASection: _1,
15602
+ Testimonials: B1,
15603
+ Select: z1,
15604
+ Carousel: $1
15577
15605
  };
15578
- let Ds = { ...$1 };
15579
- function J1(e, t) {
15606
+ let Ds = { ...U1 };
15607
+ function e0(e, t) {
15580
15608
  Ds[e] = t;
15581
15609
  }
15582
- function U1(e) {
15610
+ function H1(e) {
15583
15611
  return Ds[e];
15584
15612
  }
15585
- function H1(e) {
15613
+ function W1(e) {
15586
15614
  return e in Ds;
15587
15615
  }
15588
- function W1(e) {
15616
+ function q1(e) {
15589
15617
  return typeof e == "string" && e.trim().length > 0;
15590
15618
  }
15591
15619
  const Gt = ({
@@ -15608,15 +15636,15 @@ const Gt = ({
15608
15636
  if (!e || typeof e != "object")
15609
15637
  return null;
15610
15638
  const { type: r, data: o, children: s, id: a, ...l } = e, u = a || o?.id || r;
15611
- if (!W1(r)) {
15639
+ if (!q1(r)) {
15612
15640
  const m = new Error(`Invalid component type: "${r}"`);
15613
15641
  return i?.(m, e), console.error(`Invalid component type: "${r}"`), null;
15614
15642
  }
15615
- if (!H1(r)) {
15643
+ if (!W1(r)) {
15616
15644
  const m = new Error(`Component "${r}" is not registered`);
15617
15645
  return i?.(m, e), console.error(`Component "${r}" is not registered`), null;
15618
15646
  }
15619
- const c = U1(r);
15647
+ const c = H1(r);
15620
15648
  if (!c) {
15621
15649
  const m = new Error(`Failed to load component: "${r}"`);
15622
15650
  return i?.(m, e), console.error(`Failed to load component: "${r}"`), null;
@@ -15718,7 +15746,7 @@ const Gt = ({
15718
15746
  y.message
15719
15747
  ] }, u);
15720
15748
  }
15721
- }, e0 = ({
15749
+ }, t0 = ({
15722
15750
  imageSrc: e,
15723
15751
  companyName: t,
15724
15752
  description: n,
@@ -15746,7 +15774,7 @@ const Gt = ({
15746
15774
  className: "footer-social-link",
15747
15775
  target: "_blank",
15748
15776
  rel: "noopener noreferrer",
15749
- children: /* @__PURE__ */ b.jsx(fe, { icon: h.icon, width: "24", height: "24" })
15777
+ children: /* @__PURE__ */ b.jsx(he, { icon: h.icon, width: "24", height: "24" })
15750
15778
  },
15751
15779
  d
15752
15780
  )) })
@@ -15761,14 +15789,14 @@ const Gt = ({
15761
15789
  o && /* @__PURE__ */ b.jsx("a", { href: s, target: "_blank", rel: "noopener noreferrer", className: "footer-powered-by", children: o })
15762
15790
  ] }) })
15763
15791
  ] }) });
15764
- }, t0 = ({
15792
+ }, n0 = ({
15765
15793
  title: e,
15766
15794
  subtitle: t,
15767
15795
  items: n,
15768
15796
  className: i = "",
15769
15797
  allowMultiple: r = !1
15770
15798
  }) => {
15771
- const [o, s] = ve(/* @__PURE__ */ new Set()), a = Pe({}), l = (u) => {
15799
+ const [o, s] = fe(/* @__PURE__ */ new Set()), a = Pe({}), l = (u) => {
15772
15800
  s((c) => {
15773
15801
  const f = new Set(r ? c : []);
15774
15802
  return c.has(u) ? f.delete(u) : f.add(u), f;
@@ -15794,7 +15822,7 @@ const Gt = ({
15794
15822
  children: [
15795
15823
  /* @__PURE__ */ b.jsx("span", { className: "accordion-item-title", children: u.title }),
15796
15824
  /* @__PURE__ */ b.jsx(
15797
- fe,
15825
+ he,
15798
15826
  {
15799
15827
  icon: "mdi:chevron-down",
15800
15828
  width: "24",
@@ -15829,8 +15857,8 @@ const Gt = ({
15829
15857
  }) })
15830
15858
  ] }) });
15831
15859
  };
15832
- let q1;
15833
- function G1({
15860
+ let G1;
15861
+ function K1({
15834
15862
  endpoint: e,
15835
15863
  storyName: t = "Default",
15836
15864
  params: n = {},
@@ -15838,7 +15866,7 @@ function G1({
15838
15866
  apiService: r
15839
15867
  // Allow custom API service per hook instance
15840
15868
  }) {
15841
- const [o, s] = ve(null), [a, l] = ve(i), [u, c] = ve(null), f = r || q1, h = async (d, p) => {
15869
+ const [o, s] = fe(null), [a, l] = fe(i), [u, c] = fe(null), f = r || G1, h = async (d, p) => {
15842
15870
  if (!f) {
15843
15871
  c("API service not configured"), l(!1);
15844
15872
  return;
@@ -15858,7 +15886,7 @@ function G1({
15858
15886
  l(!1);
15859
15887
  }
15860
15888
  };
15861
- return Qe(() => {
15889
+ return He(() => {
15862
15890
  i && f ? h() : i && !f && (c("API service not configured"), l(!1));
15863
15891
  }, [e, t, JSON.stringify(n), i, f]), {
15864
15892
  data: o,
@@ -15868,7 +15896,7 @@ function G1({
15868
15896
  setData: s
15869
15897
  };
15870
15898
  }
15871
- const K1 = {
15899
+ const Y1 = {
15872
15900
  MenuGridItem: "/menu-grid-item",
15873
15901
  MenuGrid: "/menu-grid",
15874
15902
  Dropdown: "/dropdown",
@@ -15887,104 +15915,104 @@ const K1 = {
15887
15915
  Select: "/select",
15888
15916
  Carousel: "/carousel"
15889
15917
  };
15890
- function me(e) {
15891
- const { component: t, story: n = "Default", variant: i, apiService: r } = e, o = K1[t], s = {};
15892
- return i && (s.variant = i), G1({
15918
+ function ge(e) {
15919
+ const { component: t, story: n = "Default", variant: i, apiService: r } = e, o = Y1[t], s = {};
15920
+ return i && (s.variant = i), K1({
15893
15921
  endpoint: o,
15894
15922
  storyName: n,
15895
15923
  params: s,
15896
15924
  apiService: r
15897
15925
  });
15898
15926
  }
15899
- function n0(e, t, n) {
15900
- return me({ component: "MenuGridItem", story: e, apiService: t, variant: n });
15901
- }
15902
15927
  function i0(e, t, n) {
15903
- return me({ component: "MenuGrid", story: e, apiService: t, variant: n });
15928
+ return ge({ component: "MenuGridItem", story: e, apiService: t, variant: n });
15904
15929
  }
15905
15930
  function r0(e, t, n) {
15906
- return me({ component: "Dropdown", story: e, apiService: t, variant: n });
15931
+ return ge({ component: "MenuGrid", story: e, apiService: t, variant: n });
15907
15932
  }
15908
15933
  function s0(e, t, n) {
15909
- return me({ component: "Hero", story: e, apiService: t, variant: n });
15934
+ return ge({ component: "Dropdown", story: e, apiService: t, variant: n });
15910
15935
  }
15911
15936
  function o0(e, t, n) {
15912
- return me({ component: "Header", story: e, apiService: t, variant: n });
15937
+ return ge({ component: "Hero", story: e, apiService: t, variant: n });
15913
15938
  }
15914
15939
  function a0(e, t, n) {
15915
- return me({ component: "ItemsAccordion", story: e, apiService: t, variant: n });
15940
+ return ge({ component: "Header", story: e, apiService: t, variant: n });
15916
15941
  }
15917
15942
  function l0(e, t, n) {
15918
- return me({ component: "Footer", story: e, apiService: t, variant: n });
15943
+ return ge({ component: "ItemsAccordion", story: e, apiService: t, variant: n });
15919
15944
  }
15920
15945
  function u0(e, t, n) {
15921
- return me({ component: "Stats", story: e, apiService: t, variant: n });
15946
+ return ge({ component: "Footer", story: e, apiService: t, variant: n });
15922
15947
  }
15923
15948
  function c0(e, t, n) {
15924
- return me({ component: "FeatureSplit", story: e, apiService: t, variant: n });
15949
+ return ge({ component: "Stats", story: e, apiService: t, variant: n });
15925
15950
  }
15926
15951
  function f0(e, t, n) {
15927
- return me({ component: "ContentBlock", story: e, apiService: t, variant: n });
15952
+ return ge({ component: "FeatureSplit", story: e, apiService: t, variant: n });
15928
15953
  }
15929
15954
  function h0(e, t, n) {
15930
- return me({ component: "FeaturesSection", story: e, apiService: t, variant: n });
15955
+ return ge({ component: "ContentBlock", story: e, apiService: t, variant: n });
15931
15956
  }
15932
15957
  function d0(e, t, n) {
15933
- return me({ component: "BentoGrid", story: e, apiService: t, variant: n });
15958
+ return ge({ component: "FeaturesSection", story: e, apiService: t, variant: n });
15934
15959
  }
15935
15960
  function p0(e, t, n) {
15936
- return me({ component: "CTASection", story: e, apiService: t, variant: n });
15961
+ return ge({ component: "BentoGrid", story: e, apiService: t, variant: n });
15937
15962
  }
15938
15963
  function m0(e, t, n) {
15939
- return me({ component: "Testimonials", story: e, apiService: t, variant: n });
15964
+ return ge({ component: "CTASection", story: e, apiService: t, variant: n });
15940
15965
  }
15941
15966
  function g0(e, t, n) {
15942
- return me({ component: "Select", story: e, apiService: t, variant: n });
15967
+ return ge({ component: "Testimonials", story: e, apiService: t, variant: n });
15943
15968
  }
15944
15969
  function y0(e, t, n) {
15945
- return me({ component: "Carousel", story: e, apiService: t, variant: n });
15970
+ return ge({ component: "Select", story: e, apiService: t, variant: n });
15971
+ }
15972
+ function x0(e, t, n) {
15973
+ return ge({ component: "Carousel", story: e, apiService: t, variant: n });
15946
15974
  }
15947
15975
  export {
15948
15976
  Ch as BentoGrid,
15949
- V1 as CTASection,
15977
+ _1 as CTASection,
15950
15978
  bl as Card,
15951
- z1 as Carousel,
15952
- L1 as ContentBlock,
15979
+ $1 as Carousel,
15980
+ N1 as ContentBlock,
15953
15981
  af as Dropdown,
15954
- Z1 as DropdownProvider,
15982
+ J1 as DropdownProvider,
15955
15983
  Gt as DynamicRenderer,
15956
15984
  sf as FeatureItem,
15957
15985
  j1 as FeatureSplit,
15958
- N1 as FeaturesSection,
15959
- e0 as Footer,
15986
+ F1 as FeaturesSection,
15987
+ t0 as Footer,
15960
15988
  Ah as Header,
15961
15989
  fy as Hero,
15962
15990
  hy as IconButton,
15963
- t0 as ItemsAccordion,
15991
+ n0 as ItemsAccordion,
15964
15992
  uy as MenuGrid,
15965
15993
  cy as MenuGridItem,
15966
15994
  ly as MenuItem,
15967
- B1 as Select,
15968
- O1 as Stats,
15969
- _1 as Testimonials,
15970
- $1 as baseComponents,
15971
- U1 as getComponent,
15972
- J1 as registerComponent,
15973
- d0 as useBentoGridConfig,
15974
- p0 as useCTASectionConfig,
15975
- y0 as useCarouselConfig,
15976
- f0 as useContentBlockConfig,
15977
- r0 as useDropdownConfig,
15978
- c0 as useFeatureSplitConfig,
15979
- h0 as useFeaturesSectionConfig,
15980
- l0 as useFooterConfig,
15981
- o0 as useHeaderConfig,
15982
- s0 as useHeroConfig,
15983
- a0 as useItemsAccordionConfig,
15984
- i0 as useMenuGridConfig,
15985
- n0 as useMenuGridItemConfig,
15986
- g0 as useSelectConfig,
15987
- u0 as useStatsConfig,
15988
- m0 as useTestimonialsConfig
15995
+ z1 as Select,
15996
+ V1 as Stats,
15997
+ B1 as Testimonials,
15998
+ U1 as baseComponents,
15999
+ H1 as getComponent,
16000
+ e0 as registerComponent,
16001
+ p0 as useBentoGridConfig,
16002
+ m0 as useCTASectionConfig,
16003
+ x0 as useCarouselConfig,
16004
+ h0 as useContentBlockConfig,
16005
+ s0 as useDropdownConfig,
16006
+ f0 as useFeatureSplitConfig,
16007
+ d0 as useFeaturesSectionConfig,
16008
+ u0 as useFooterConfig,
16009
+ a0 as useHeaderConfig,
16010
+ o0 as useHeroConfig,
16011
+ l0 as useItemsAccordionConfig,
16012
+ r0 as useMenuGridConfig,
16013
+ i0 as useMenuGridItemConfig,
16014
+ y0 as useSelectConfig,
16015
+ c0 as useStatsConfig,
16016
+ g0 as useTestimonialsConfig
15989
16017
  };
15990
16018
  //# sourceMappingURL=index.es.js.map