@janbox/storefront-builder 1.0.7 → 1.0.8

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.
@@ -1,11 +1,11 @@
1
1
  import { jsx as y, Fragment as Mt, jsxs as N } from "@emotion/react/jsx-runtime";
2
2
  import * as Mn from "react";
3
- import ns, { isValidElement as Wt, useCallback as le, useMemo as Z, Fragment as Ie, useSyncExternalStore as da, lazy as fa, forwardRef as z, Suspense as ha, useId as Le, cloneElement as kn, useRef as rt, useState as dn, createContext as ut, useContext as W, useInsertionEffect as is, useEffect as Fe, Children as pa, useLayoutEffect as ma, createElement as ga, Component as va, useImperativeHandle as ya } from "react";
3
+ import ns, { isValidElement as Wt, useCallback as le, useMemo as Z, Fragment as Ie, useSyncExternalStore as da, lazy as fa, forwardRef as $, Suspense as ha, useId as Le, cloneElement as kn, useRef as rt, useState as dn, createContext as ut, useContext as W, useInsertionEffect as is, useEffect as Fe, Children as pa, useLayoutEffect as ma, createElement as ga, Component as va, useImperativeHandle as ya } from "react";
4
4
  import { flatten as wa } from "flat";
5
5
  import { parseInt as ba, isString as fn, isNil as st, isUndefined as hn, isFunction as Ta, assign as xa, get as rs } from "lodash-es";
6
6
  import { useEditor as Aa, useNode as _, Element as Sa } from "@craftjs/core";
7
7
  import { useMergeRefs as U, useFloating as ss, autoUpdate as os, flip as as, offset as ls, size as cs, useClick as us, useHover as ds, useDismiss as fs, useRole as hs, useInteractions as ps, useFloatingParentNodeId as ms, FloatingTree as gs, FloatingPortal as Vn, useFocus as Ea, FloatingOverlay as Pa, FloatingFocusManager as Ca } from "@floating-ui/react";
8
- import { Button as vs, Grid as Ra, Cell as Da, Link as Ma, Flexbox as ka, FlexItem as Va, Text as Re, Image as _a, Marquee as Na, MarqueeDataAttributes as Oa, MarqueeItem as Ia, Tabs as La, TabList as Fa, Tab as ja, TabContent as Ba, TabPanel as Ua, Swiper as Ha, SwiperSlide as Ga, UnorderedList as Wa, ListItem as za, Icon as qa, Accordion as Ka, AccordionSummary as Xa, AccordionContent as Ya, AccordionGroup as $a, Video as Za, Box as Ja, CountdownTimer as Qa, Primitive as pi } from "@janbox/storefront-ui";
8
+ import { Button as vs, Grid as Ra, Cell as Da, Link as Ma, Flexbox as ka, FlexItem as Va, Text as Re, Image as _a, Marquee as Na, MarqueeDataAttributes as Oa, MarqueeItem as Ia, Tabs as La, TabList as Fa, Tab as ja, TabContent as Ba, TabPanel as Ua, Swiper as Ha, SwiperSlide as Ga, UnorderedList as Wa, ListItem as $a, Icon as za, Accordion as qa, AccordionSummary as Ka, AccordionContent as Xa, AccordionGroup as Ya, Video as Za, Box as Ja, CountdownTimer as Qa, Primitive as pi } from "@janbox/storefront-ui";
9
9
  import { FLOATING_Z_INDEX as ys, parseColor as ws, paletteVars as tl, groupedColors as el, mediaQuery as nl } from "@janbox/storefront-ui/theme";
10
10
  import { useControllableState as il } from "@janbox/storefront-ui/hooks";
11
11
  import "@janbox/storefront-ui/utils";
@@ -24,7 +24,7 @@ var M = /* @__PURE__ */ ((t) => (t.Root = "root", t.Unknown = "unknown", t.Box =
24
24
  function dl(t) {
25
25
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
26
26
  }
27
- var Yt = {}, _t = {}, ye = {}, pt = {}, St = {}, Xe = {}, mi;
27
+ var Xt = {}, _t = {}, ye = {}, pt = {}, St = {}, Ke = {}, mi;
28
28
  function Ts() {
29
29
  return mi || (mi = 1, (function(t) {
30
30
  Object.defineProperty(t, "__esModule", { value: !0 }), t.Doctype = t.CDATA = t.Tag = t.Style = t.Script = t.Comment = t.Directive = t.Text = t.Root = t.isTag = t.ElementType = void 0;
@@ -36,7 +36,7 @@ function Ts() {
36
36
  return i.type === e.Tag || i.type === e.Script || i.type === e.Style;
37
37
  }
38
38
  t.isTag = n, t.Root = e.Root, t.Text = e.Text, t.Directive = e.Directive, t.Comment = e.Comment, t.Script = e.Script, t.Style = e.Style, t.Tag = e.Tag, t.CDATA = e.CDATA, t.Doctype = e.Doctype;
39
- })(Xe)), Xe;
39
+ })(Ke)), Ke;
40
40
  }
41
41
  var D = {}, gi;
42
42
  function vi() {
@@ -362,8 +362,8 @@ function vi() {
362
362
  w = new s(f.data);
363
363
  else if (h(f)) {
364
364
  var x = m ? P(f.children) : [], E = new d(f.name, e({}, f.attribs), x);
365
- x.forEach(function(Xt) {
366
- return Xt.parent = E;
365
+ x.forEach(function(Kt) {
366
+ return Kt.parent = E;
367
367
  }), f.namespace != null && (E.namespace = f.namespace), f["x-attribsNamespace"] && (E["x-attribsNamespace"] = e({}, f["x-attribsNamespace"])), f["x-attribsPrefix"] && (E["x-attribsPrefix"] = e({}, f["x-attribsPrefix"])), w = E;
368
368
  } else if (p(f)) {
369
369
  var x = m ? P(f.children) : [], R = new c(x);
@@ -473,7 +473,7 @@ function xs() {
473
473
  t.DomHandler = s, t.default = s;
474
474
  })(St)), St;
475
475
  }
476
- var Ye = {}, wi;
476
+ var Xe = {}, wi;
477
477
  function fl() {
478
478
  return wi || (wi = 1, (function(t) {
479
479
  Object.defineProperty(t, "__esModule", { value: !0 }), t.CARRIAGE_RETURN_PLACEHOLDER_REGEX = t.CARRIAGE_RETURN_PLACEHOLDER = t.CARRIAGE_RETURN_REGEX = t.CARRIAGE_RETURN = t.CASE_SENSITIVE_TAG_NAMES_MAP = t.CASE_SENSITIVE_TAG_NAMES = void 0, t.CASE_SENSITIVE_TAG_NAMES = [
@@ -511,7 +511,7 @@ function fl() {
511
511
  ], t.CASE_SENSITIVE_TAG_NAMES_MAP = t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e, n) {
512
512
  return e[n.toLowerCase()] = n, e;
513
513
  }, {}), t.CARRIAGE_RETURN = "\r", t.CARRIAGE_RETURN_REGEX = new RegExp(t.CARRIAGE_RETURN, "g"), t.CARRIAGE_RETURN_PLACEHOLDER = "__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(), "__"), t.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER, "g");
514
- })(Ye)), Ye;
514
+ })(Xe)), Xe;
515
515
  }
516
516
  var bi;
517
517
  function As() {
@@ -665,14 +665,14 @@ function pl() {
665
665
  }
666
666
  return _t;
667
667
  }
668
- var we = {}, et = {}, $t = {}, Ai;
668
+ var we = {}, et = {}, Yt = {}, Ai;
669
669
  function ml() {
670
- if (Ai) return $t;
670
+ if (Ai) return Yt;
671
671
  Ai = 1;
672
672
  var t = 0;
673
- $t.SAME = t;
673
+ Yt.SAME = t;
674
674
  var e = 1;
675
- return $t.CAMELCASE = e, $t.possibleStandardNames = {
675
+ return Yt.CAMELCASE = e, Yt.possibleStandardNames = {
676
676
  accept: 0,
677
677
  acceptCharset: 1,
678
678
  "accept-charset": "acceptCharset",
@@ -1156,7 +1156,7 @@ function ml() {
1156
1156
  yChannelSelector: 1,
1157
1157
  z: 0,
1158
1158
  zoomAndPan: 1
1159
- }, $t;
1159
+ }, Yt;
1160
1160
  }
1161
1161
  var Si;
1162
1162
  function gl() {
@@ -1576,9 +1576,9 @@ function gl() {
1576
1576
  }, {});
1577
1577
  return et.BOOLEAN = i, et.BOOLEANISH_STRING = n, et.NUMERIC = o, et.OVERLOADED_BOOLEAN = r, et.POSITIVE_NUMERIC = s, et.RESERVED = t, et.STRING = e, et.getPropertyInfo = a, et.isCustomAttribute = S, et.possibleStandardNames = P, et;
1578
1578
  }
1579
- var Zt = {}, Nt = {}, $e, Ei;
1579
+ var Zt = {}, Nt = {}, Ye, Ei;
1580
1580
  function vl() {
1581
- if (Ei) return $e;
1581
+ if (Ei) return Ye;
1582
1582
  Ei = 1;
1583
1583
  var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, e = /\n/g, n = /^\s*/, i = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, r = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, s = /^[;\s]*/, a = /^\s+|\s+$/g, l = `
1584
1584
  `, c = "/", u = "*", d = "", h = "comment", p = "declaration";
@@ -1644,27 +1644,27 @@ function vl() {
1644
1644
  var V = f(), k = x(i);
1645
1645
  if (k) {
1646
1646
  if (I(), !x(r)) return w("property missing ':'");
1647
- var tt = x(o), q = V({
1647
+ var tt = x(o), z = V({
1648
1648
  type: p,
1649
1649
  property: v(k[0].replace(t, d)),
1650
1650
  value: tt ? v(tt[0].replace(t, d)) : d
1651
1651
  });
1652
- return x(s), q;
1652
+ return x(s), z;
1653
1653
  }
1654
1654
  }
1655
- function Xt() {
1655
+ function Kt() {
1656
1656
  var V = [];
1657
1657
  R(V);
1658
1658
  for (var k; k = Q(); )
1659
1659
  k !== !1 && (V.push(k), R(V));
1660
1660
  return V;
1661
1661
  }
1662
- return E(), Xt();
1662
+ return E(), Kt();
1663
1663
  }
1664
1664
  function v(g) {
1665
1665
  return g ? g.replace(a, d) : d;
1666
1666
  }
1667
- return $e = b, $e;
1667
+ return Ye = b, Ye;
1668
1668
  }
1669
1669
  var Pi;
1670
1670
  function yl() {
@@ -1878,7 +1878,7 @@ function Tl() {
1878
1878
  var Vi;
1879
1879
  function xl() {
1880
1880
  return Vi || (Vi = 1, (function(t) {
1881
- var e = Yt && Yt.__importDefault || function(l) {
1881
+ var e = Xt && Xt.__importDefault || function(l) {
1882
1882
  return l && l.__esModule ? l : { default: l };
1883
1883
  };
1884
1884
  Object.defineProperty(t, "__esModule", { value: !0 }), t.htmlToDOM = t.domToReact = t.attributesToProps = t.Text = t.ProcessingInstruction = t.Element = t.Comment = void 0, t.default = a;
@@ -1905,7 +1905,7 @@ function xl() {
1905
1905
  throw new TypeError("First argument must be a string");
1906
1906
  return l ? (0, r.default)((0, n.default)(l, (u = c?.htmlparser2) !== null && u !== void 0 ? u : s), c) : [];
1907
1907
  }
1908
- })(Yt)), Yt;
1908
+ })(Xt)), Xt;
1909
1909
  }
1910
1910
  var Al = xl();
1911
1911
  const _i = /* @__PURE__ */ dl(Al), Sl = _i.default || _i, Tp = (t, e = "int", n = ",") => {
@@ -2127,7 +2127,7 @@ let Ni = !1;
2127
2127
  const Rs = (t) => (t && !Ni && (Ni = !0, be.initialize(t)), {
2128
2128
  ...da(be.subscribe, be.getSnapshot),
2129
2129
  setState: be.setState
2130
- }), Vl = fa(() => import("./index-Bvy64nrI.js").then((t) => ({ default: t.WbTooltip }))), _l = z(
2130
+ }), Vl = fa(() => import("./index-DGKFfr43.js").then((t) => ({ default: t.WbTooltip }))), _l = $(
2131
2131
  ({ tooltip: t, size: e = "24", className: n, type: i = "button", isHighlighted: r, ...o }, s) => {
2132
2132
  const a = {
2133
2133
  width: Number(e),
@@ -2150,7 +2150,7 @@ const Rs = (t) => (t && !Ni && (Ni = !0, be.initialize(t)), {
2150
2150
  );
2151
2151
  return st(t) ? l : /* @__PURE__ */ y(ha, { fallback: l, children: /* @__PURE__ */ y(Vl, { ...t, children: l }) });
2152
2152
  }
2153
- ), Ds = z(({ source: t, ...e }, n) => {
2153
+ ), Ds = $(({ source: t, ...e }, n) => {
2154
2154
  const i = Le(), r = Z(() => El(t, i), [t, i]);
2155
2155
  return /* @__PURE__ */ y(Mt, { children: !!r && kn(r, {
2156
2156
  ...e,
@@ -2166,7 +2166,7 @@ const Rs = (t) => (t && !Ni && (Ni = !0, be.initialize(t)), {
2166
2166
  <path d="M21 12H19.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2167
2167
  <path d="M18.36 18.3597L17.83 17.8297" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2168
2168
  </svg>
2169
- `, Pp = z(
2169
+ `, Pp = $(
2170
2170
  ({
2171
2171
  size: t = "32",
2172
2172
  variant: e = "contained",
@@ -2356,7 +2356,7 @@ const Rs = (t) => (t && !Ni && (Ni = !0, be.initialize(t)), {
2356
2356
  return rl(() => {
2357
2357
  hn(s) || (p.setReference?.(s), h.onOpenChange(!st(s)));
2358
2358
  }, [s]), /* @__PURE__ */ y(Ms.Provider, { value: S, children: r });
2359
- }, Ll = (t) => ms() ? /* @__PURE__ */ y(Oi, { ...t }) : /* @__PURE__ */ y(gs, { children: /* @__PURE__ */ y(Oi, { ...t }) }), Fl = z(({ children: t, ...e }, n) => {
2359
+ }, Ll = (t) => ms() ? /* @__PURE__ */ y(Oi, { ...t }) : /* @__PURE__ */ y(gs, { children: /* @__PURE__ */ y(Oi, { ...t }) }), Fl = $(({ children: t, ...e }, n) => {
2360
2360
  const { getReferenceProps: i, context: r } = ks(), o = U([r.refs.setReference, rs(t, "ref"), n]);
2361
2361
  return Wt(t) ? kn(
2362
2362
  t,
@@ -2365,7 +2365,7 @@ const Rs = (t) => (t && !Ni && (Ni = !0, be.initialize(t)), {
2365
2365
  ref: o
2366
2366
  })
2367
2367
  ) : /* @__PURE__ */ y("button", { type: "button", ...i(e), ref: o, children: t });
2368
- }), jl = z(
2368
+ }), jl = $(
2369
2369
  ({ style: t, className: e, ...n }, i) => {
2370
2370
  const { getFloatingProps: r, context: o } = ks(), s = U([o.refs.setFloating, i]);
2371
2371
  if (!o.open) return /* @__PURE__ */ y(Mt, {});
@@ -2385,7 +2385,7 @@ const Rs = (t) => (t && !Ni && (Ni = !0, be.initialize(t)), {
2385
2385
  }
2386
2386
  ) });
2387
2387
  }
2388
- ), Bl = ({ className: t, ...e }) => /* @__PURE__ */ y("div", { className: G("es-color-picker", t), children: /* @__PURE__ */ y(sl, { ...e }) }), Ul = ut({}), Vs = () => W(Ul), Rp = z(({ children: t, ...e }, n) => {
2388
+ ), Bl = ({ className: t, ...e }) => /* @__PURE__ */ y("div", { className: G("es-color-picker", t), children: /* @__PURE__ */ y(sl, { ...e }) }), Ul = ut({}), Vs = () => W(Ul), Rp = $(({ children: t, ...e }, n) => {
2389
2389
  const { getReferenceProps: i, context: r } = Vs(), o = U([r.refs.setReference, rs(t, "ref"), n]);
2390
2390
  return Wt(t) ? kn(
2391
2391
  t,
@@ -2394,7 +2394,7 @@ const Rs = (t) => (t && !Ni && (Ni = !0, be.initialize(t)), {
2394
2394
  ref: o
2395
2395
  })
2396
2396
  ) : /* @__PURE__ */ y("button", { type: "button", ...i(e), ref: o, children: t });
2397
- }), Dp = z(
2397
+ }), Dp = $(
2398
2398
  ({ style: t, className: e, ...n }, i) => {
2399
2399
  const { getFloatingProps: r, context: o, refs: s } = Vs();
2400
2400
  if (!o.open) return /* @__PURE__ */ y(Mt, {});
@@ -2421,7 +2421,7 @@ const Rs = (t) => (t && !Ni && (Ni = !0, be.initialize(t)), {
2421
2421
  }
2422
2422
  ) });
2423
2423
  }
2424
- ), Mp = z(
2424
+ ), Mp = $(
2425
2425
  ({ children: t, className: e, isActive: n, ...i }, r) => /* @__PURE__ */ y(
2426
2426
  "li",
2427
2427
  {
@@ -2436,7 +2436,7 @@ const Rs = (t) => (t && !Ni && (Ni = !0, be.initialize(t)), {
2436
2436
  }
2437
2437
  )
2438
2438
  );
2439
- z(
2439
+ $(
2440
2440
  ({ children: t, size: e = 20, ...n }, i) => /* @__PURE__ */ N("label", { className: "tw:inline-flex tw:items-center tw:gap-2 tw:cursor-pointer tw:text-xs", children: [
2441
2441
  /* @__PURE__ */ N("span", { css: {
2442
2442
  width: e,
@@ -2502,8 +2502,8 @@ function Wl({ children: t, isPresent: e }) {
2502
2502
  };
2503
2503
  }, [e]), kt(Gl, { isPresent: e, childRef: i, sizeRef: r, children: Mn.cloneElement(t, { ref: i }) });
2504
2504
  }
2505
- const zl = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: r, presenceAffectsLayout: o, mode: s }) => {
2506
- const a = On(ql), l = Le(), c = le((d) => {
2505
+ const $l = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: r, presenceAffectsLayout: o, mode: s }) => {
2506
+ const a = On(zl), l = Le(), c = le((d) => {
2507
2507
  a.set(d, !0);
2508
2508
  for (const h of a.values())
2509
2509
  if (!h)
@@ -2531,7 +2531,7 @@ const zl = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
2531
2531
  !n && !a.size && i && i();
2532
2532
  }, [n]), s === "popLayout" && (t = kt(Wl, { isPresent: n, children: t })), kt(je.Provider, { value: u, children: t });
2533
2533
  };
2534
- function ql() {
2534
+ function zl() {
2535
2535
  return /* @__PURE__ */ new Map();
2536
2536
  }
2537
2537
  function _s(t = !0) {
@@ -2552,7 +2552,7 @@ function Ii(t) {
2552
2552
  Wt(n) && e.push(n);
2553
2553
  }), e;
2554
2554
  }
2555
- const Ln = typeof window < "u", Ns = Ln ? ma : Fe, Kl = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presenceAffectsLayout: r = !0, mode: o = "sync", propagate: s = !1 }) => {
2555
+ const Ln = typeof window < "u", Ns = Ln ? ma : Fe, ql = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presenceAffectsLayout: r = !0, mode: o = "sync", propagate: s = !1 }) => {
2556
2556
  const [a, l] = _s(s), c = Z(() => Ii(t), [t]), u = s && !a ? [] : c.map(Te), d = rt(!0), h = rt(c), p = On(() => /* @__PURE__ */ new Map()), [b, v] = dn(c), [g, T] = dn(c);
2557
2557
  Ns(() => {
2558
2558
  d.current = !1, h.current = c;
@@ -2584,20 +2584,20 @@ const Ln = typeof window < "u", Ns = Ln ? ma : Fe, Kl = ({ children: t, custom:
2584
2584
  E || (x = !1);
2585
2585
  }), x && (S?.(), T(h.current), s && l?.(), i && i());
2586
2586
  };
2587
- return kt(zl, { isPresent: m, initial: !d.current || n ? void 0 : !1, custom: m ? void 0 : e, presenceAffectsLayout: r, mode: o, onExitComplete: m ? void 0 : w, children: P }, f);
2587
+ return kt($l, { isPresent: m, initial: !d.current || n ? void 0 : !1, custom: m ? void 0 : e, presenceAffectsLayout: r, mode: o, onExitComplete: m ? void 0 : w, children: P }, f);
2588
2588
  }) });
2589
- }, $ = /* @__NO_SIDE_EFFECTS__ */ (t) => t;
2590
- let zt = $, vt = $;
2591
- process.env.NODE_ENV !== "production" && (zt = (t, e) => {
2589
+ }, Y = /* @__NO_SIDE_EFFECTS__ */ (t) => t;
2590
+ let $t = Y, vt = Y;
2591
+ process.env.NODE_ENV !== "production" && ($t = (t, e) => {
2592
2592
  !t && typeof console < "u" && console.warn(e);
2593
2593
  }, vt = (t, e) => {
2594
2594
  if (!t)
2595
2595
  throw new Error(e);
2596
2596
  });
2597
- const Xl = {
2597
+ const Kl = {
2598
2598
  useManualTiming: !1
2599
2599
  };
2600
- function Yl(t) {
2600
+ function Xl(t) {
2601
2601
  let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = !1, r = !1;
2602
2602
  const o = /* @__PURE__ */ new WeakSet();
2603
2603
  let s = {
@@ -2648,16 +2648,16 @@ const xe = [
2648
2648
  // Write
2649
2649
  "postRender"
2650
2650
  // Compute
2651
- ], $l = 40;
2651
+ ], Yl = 40;
2652
2652
  function Os(t, e) {
2653
2653
  let n = !1, i = !0;
2654
2654
  const r = {
2655
2655
  delta: 0,
2656
2656
  timestamp: 0,
2657
2657
  isProcessing: !1
2658
- }, o = () => n = !0, s = xe.reduce((T, A) => (T[A] = Yl(o), T), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: d, postRender: h } = s, p = () => {
2658
+ }, o = () => n = !0, s = xe.reduce((T, A) => (T[A] = Xl(o), T), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: d, postRender: h } = s, p = () => {
2659
2659
  const T = performance.now();
2660
- n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(T - r.timestamp, $l), 1), r.timestamp = T, r.isProcessing = !0, a.process(r), l.process(r), c.process(r), u.process(r), d.process(r), h.process(r), r.isProcessing = !1, n && e && (i = !1, t(p));
2660
+ n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(T - r.timestamp, Yl), 1), r.timestamp = T, r.isProcessing = !0, a.process(r), l.process(r), c.process(r), u.process(r), d.process(r), h.process(r), r.isProcessing = !1, n && e && (i = !1, t(p));
2661
2661
  }, b = () => {
2662
2662
  n = !0, i = !0, r.isProcessing || t(p);
2663
2663
  };
@@ -2669,7 +2669,7 @@ function Os(t, e) {
2669
2669
  s[xe[A]].cancel(T);
2670
2670
  }, state: r, steps: s };
2671
2671
  }
2672
- const { schedule: L, cancel: yt, state: K, steps: Ze } = Os(typeof requestAnimationFrame < "u" ? requestAnimationFrame : $, !0), Is = ut({ strict: !1 }), Li = {
2672
+ const { schedule: L, cancel: yt, state: q, steps: Ze } = Os(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Y, !0), Is = ut({ strict: !1 }), Li = {
2673
2673
  animation: [
2674
2674
  "animate",
2675
2675
  "variants",
@@ -2893,7 +2893,7 @@ function cc({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
2893
2893
  return cl(Ue.Provider, { value: b, children: [d && b.visualElement ? kt(d, { visualElement: b.visualElement, ...h }) : null, n(r, c, sc(v, b.visualElement, u), v, p, b.visualElement)] });
2894
2894
  }
2895
2895
  a.displayName = `motion.${typeof r == "string" ? r : `create(${(s = (o = r.displayName) !== null && o !== void 0 ? o : r.name) !== null && s !== void 0 ? s : ""})`}`;
2896
- const l = z(a);
2896
+ const l = $(a);
2897
2897
  return l[rc] = r, l;
2898
2898
  }
2899
2899
  function uc({ layoutId: t }) {
@@ -2904,7 +2904,7 @@ function dc(t, e) {
2904
2904
  const n = W(Is).strict;
2905
2905
  if (process.env.NODE_ENV !== "production" && e && n) {
2906
2906
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
2907
- t.ignoreStrict ? zt(!1, i) : vt(!1, i);
2907
+ t.ignoreStrict ? $t(!1, i) : vt(!1, i);
2908
2908
  }
2909
2909
  }
2910
2910
  function fc(t) {
@@ -2981,9 +2981,9 @@ function Gn(t, e, n, i) {
2981
2981
  }
2982
2982
  return e;
2983
2983
  }
2984
- const pn = (t) => Array.isArray(t), pc = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), mc = (t) => pn(t) ? t[t.length - 1] || 0 : t, Y = (t) => !!(t && t.getVelocity);
2984
+ const pn = (t) => Array.isArray(t), pc = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), mc = (t) => pn(t) ? t[t.length - 1] || 0 : t, X = (t) => !!(t && t.getVelocity);
2985
2985
  function Ee(t) {
2986
- const e = Y(t) ? t.get() : t;
2986
+ const e = X(t) ? t.get() : t;
2987
2987
  return pc(e) ? e.toValue() : e;
2988
2988
  }
2989
2989
  function gc({ scrapeMotionValuesFromProps: t, createRenderState: e, onUpdate: n }, i, r, o) {
@@ -3028,7 +3028,7 @@ function vc(t, e, n, i) {
3028
3028
  }
3029
3029
  return r;
3030
3030
  }
3031
- const qt = [
3031
+ const zt = [
3032
3032
  "transformPerspective",
3033
3033
  "x",
3034
3034
  "y",
@@ -3046,15 +3046,15 @@ const qt = [
3046
3046
  "skew",
3047
3047
  "skewX",
3048
3048
  "skewY"
3049
- ], Vt = new Set(qt), Gs = (t) => (e) => typeof e == "string" && e.startsWith(t), Ws = /* @__PURE__ */ Gs("--"), yc = /* @__PURE__ */ Gs("var(--"), Wn = (t) => yc(t) ? wc.test(t.split("/*")[0].trim()) : !1, wc = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, zs = (t, e) => e && typeof t == "number" ? e.transform(t) : t, ht = (t, e, n) => n > e ? e : n < t ? t : n, Kt = {
3049
+ ], Vt = new Set(zt), Gs = (t) => (e) => typeof e == "string" && e.startsWith(t), Ws = /* @__PURE__ */ Gs("--"), yc = /* @__PURE__ */ Gs("var(--"), Wn = (t) => yc(t) ? wc.test(t.split("/*")[0].trim()) : !1, wc = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, $s = (t, e) => e && typeof t == "number" ? e.transform(t) : t, ht = (t, e, n) => n > e ? e : n < t ? t : n, qt = {
3050
3050
  test: (t) => typeof t == "number",
3051
3051
  parse: parseFloat,
3052
3052
  transform: (t) => t
3053
3053
  }, ue = {
3054
- ...Kt,
3054
+ ...qt,
3055
3055
  transform: (t) => ht(0, 1, t)
3056
3056
  }, Ae = {
3057
- ...Kt,
3057
+ ...qt,
3058
3058
  default: 1
3059
3059
  }, pe = (t) => ({
3060
3060
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
@@ -3126,9 +3126,9 @@ const qt = [
3126
3126
  originY: Ui,
3127
3127
  originZ: C
3128
3128
  }, Hi = {
3129
- ...Kt,
3129
+ ...qt,
3130
3130
  transform: Math.round
3131
- }, zn = {
3131
+ }, $n = {
3132
3132
  ...xc,
3133
3133
  ...Ac,
3134
3134
  zIndex: Hi,
@@ -3142,16 +3142,16 @@ const qt = [
3142
3142
  y: "translateY",
3143
3143
  z: "translateZ",
3144
3144
  transformPerspective: "perspective"
3145
- }, Ec = qt.length;
3145
+ }, Ec = zt.length;
3146
3146
  function Pc(t, e, n) {
3147
3147
  let i = "", r = !0;
3148
3148
  for (let o = 0; o < Ec; o++) {
3149
- const s = qt[o], a = t[s];
3149
+ const s = zt[o], a = t[s];
3150
3150
  if (a === void 0)
3151
3151
  continue;
3152
3152
  let l = !0;
3153
3153
  if (typeof a == "number" ? l = a === (s.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
3154
- const c = zs(a, zn[s]);
3154
+ const c = $s(a, $n[s]);
3155
3155
  if (!l) {
3156
3156
  r = !1;
3157
3157
  const u = Sc[s] || s;
@@ -3162,7 +3162,7 @@ function Pc(t, e, n) {
3162
3162
  }
3163
3163
  return i = i.trim(), n ? i = n(e, r ? "" : i) : r && (i = "none"), i;
3164
3164
  }
3165
- function qn(t, e, n) {
3165
+ function zn(t, e, n) {
3166
3166
  const { style: i, vars: r, transformOrigin: o } = t;
3167
3167
  let s = !1, a = !1;
3168
3168
  for (const l in e) {
@@ -3174,7 +3174,7 @@ function qn(t, e, n) {
3174
3174
  r[l] = c;
3175
3175
  continue;
3176
3176
  } else {
3177
- const u = zs(c, zn[l]);
3177
+ const u = $s(c, $n[l]);
3178
3178
  l.startsWith("origin") ? (a = !0, o[l] = u) : i[l] = u;
3179
3179
  }
3180
3180
  }
@@ -3204,7 +3204,7 @@ function Mc(t, e, n) {
3204
3204
  const i = Gi(e, t.x, t.width), r = Gi(n, t.y, t.height);
3205
3205
  return `${i} ${r}`;
3206
3206
  }
3207
- function Kn(t, {
3207
+ function qn(t, {
3208
3208
  attrX: e,
3209
3209
  attrY: n,
3210
3210
  attrScale: i,
@@ -3216,7 +3216,7 @@ function Kn(t, {
3216
3216
  // This is object creation, which we try to avoid per-frame.
3217
3217
  ...c
3218
3218
  }, u, d) {
3219
- if (qn(t, c, d), u) {
3219
+ if (zn(t, c, d), u) {
3220
3220
  t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
3221
3221
  return;
3222
3222
  }
@@ -3224,21 +3224,21 @@ function Kn(t, {
3224
3224
  const { attrs: h, style: p, dimensions: b } = t;
3225
3225
  h.transform && (b && (p.transform = h.transform), delete h.transform), b && (r !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = Mc(b, r !== void 0 ? r : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), i !== void 0 && (h.scale = i), s !== void 0 && Dc(h, s, a, l, !1);
3226
3226
  }
3227
- const Xn = () => ({
3227
+ const Kn = () => ({
3228
3228
  style: {},
3229
3229
  transform: {},
3230
3230
  transformOrigin: {},
3231
3231
  vars: {}
3232
- }), qs = () => ({
3233
- ...Xn(),
3232
+ }), zs = () => ({
3233
+ ...Kn(),
3234
3234
  attrs: {}
3235
- }), Yn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
3236
- function Ks(t, { style: e, vars: n }, i, r) {
3235
+ }), Xn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
3236
+ function qs(t, { style: e, vars: n }, i, r) {
3237
3237
  Object.assign(t.style, e, r && r.getProjectionStyles(i));
3238
3238
  for (const o in n)
3239
3239
  t.style.setProperty(o, n[o]);
3240
3240
  }
3241
- const Xs = /* @__PURE__ */ new Set([
3241
+ const Ks = /* @__PURE__ */ new Set([
3242
3242
  "baseFrequency",
3243
3243
  "diffuseConstant",
3244
3244
  "kernelMatrix",
@@ -3263,30 +3263,30 @@ const Xs = /* @__PURE__ */ new Set([
3263
3263
  "textLength",
3264
3264
  "lengthAdjust"
3265
3265
  ]);
3266
- function Ys(t, e, n, i) {
3267
- Ks(t, e, void 0, i);
3266
+ function Xs(t, e, n, i) {
3267
+ qs(t, e, void 0, i);
3268
3268
  for (const r in e.attrs)
3269
- t.setAttribute(Xs.has(r) ? r : Bn(r), e.attrs[r]);
3269
+ t.setAttribute(Ks.has(r) ? r : Bn(r), e.attrs[r]);
3270
3270
  }
3271
3271
  const Me = {};
3272
3272
  function kc(t) {
3273
3273
  Object.assign(Me, t);
3274
3274
  }
3275
- function $s(t, { layout: e, layoutId: n }) {
3275
+ function Ys(t, { layout: e, layoutId: n }) {
3276
3276
  return Vt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Me[t] || t === "opacity");
3277
3277
  }
3278
- function $n(t, e, n) {
3278
+ function Yn(t, e, n) {
3279
3279
  var i;
3280
3280
  const { style: r } = t, o = {};
3281
3281
  for (const s in r)
3282
- (Y(r[s]) || e.style && Y(e.style[s]) || $s(s, t) || ((i = n?.getValue(s)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[s] = r[s]);
3282
+ (X(r[s]) || e.style && X(e.style[s]) || Ys(s, t) || ((i = n?.getValue(s)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[s] = r[s]);
3283
3283
  return o;
3284
3284
  }
3285
3285
  function Zs(t, e, n) {
3286
- const i = $n(t, e, n);
3286
+ const i = Yn(t, e, n);
3287
3287
  for (const r in t)
3288
- if (Y(t[r]) || Y(e[r])) {
3289
- const o = qt.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
3288
+ if (X(t[r]) || X(e[r])) {
3289
+ const o = zt.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
3290
3290
  i[o] = t[r];
3291
3291
  }
3292
3292
  return i;
@@ -3306,7 +3306,7 @@ function Vc(t, e) {
3306
3306
  const Wi = ["x", "y", "width", "height", "cx", "cy", "r"], _c = {
3307
3307
  useVisualState: Hs({
3308
3308
  scrapeMotionValuesFromProps: Zs,
3309
- createRenderState: qs,
3309
+ createRenderState: zs,
3310
3310
  onUpdate: ({ props: t, prevProps: e, current: n, renderState: i, latestValues: r }) => {
3311
3311
  if (!n)
3312
3312
  return;
@@ -3328,25 +3328,25 @@ const Wi = ["x", "y", "width", "height", "cx", "cy", "r"], _c = {
3328
3328
  }
3329
3329
  s && L.read(() => {
3330
3330
  Vc(n, i), L.render(() => {
3331
- Kn(i, r, Yn(n.tagName), t.transformTemplate), Ys(n, i);
3331
+ qn(i, r, Xn(n.tagName), t.transformTemplate), Xs(n, i);
3332
3332
  });
3333
3333
  });
3334
3334
  }
3335
3335
  })
3336
3336
  }, Nc = {
3337
3337
  useVisualState: Hs({
3338
- scrapeMotionValuesFromProps: $n,
3339
- createRenderState: Xn
3338
+ scrapeMotionValuesFromProps: Yn,
3339
+ createRenderState: Kn
3340
3340
  })
3341
3341
  };
3342
3342
  function Js(t, e, n) {
3343
3343
  for (const i in e)
3344
- !Y(e[i]) && !$s(i, n) && (t[i] = e[i]);
3344
+ !X(e[i]) && !Ys(i, n) && (t[i] = e[i]);
3345
3345
  }
3346
3346
  function Oc({ transformTemplate: t }, e) {
3347
3347
  return Z(() => {
3348
- const n = Xn();
3349
- return qn(n, e, t), Object.assign({}, n.vars, n.style);
3348
+ const n = Kn();
3349
+ return zn(n, e, t), Object.assign({}, n.vars, n.style);
3350
3350
  }, [e]);
3351
3351
  }
3352
3352
  function Ic(t, e) {
@@ -3359,8 +3359,8 @@ function Lc(t, e) {
3359
3359
  }
3360
3360
  function Fc(t, e, n, i) {
3361
3361
  const r = Z(() => {
3362
- const o = qs();
3363
- return Kn(o, e, Yn(i), t.transformTemplate), {
3362
+ const o = zs();
3363
+ return qn(o, e, Xn(i), t.transformTemplate), {
3364
3364
  ...o.attrs,
3365
3365
  style: { ...o.style }
3366
3366
  };
@@ -3373,7 +3373,7 @@ function Fc(t, e, n, i) {
3373
3373
  }
3374
3374
  function jc(t = !1) {
3375
3375
  return (n, i, r, { latestValues: o }, s) => {
3376
- const l = (Hn(n) ? Fc : Lc)(i, o, s, n), c = tc(i, typeof n == "string", t), u = n !== Ie ? { ...c, ...l, ref: r } : {}, { children: d } = i, h = Z(() => Y(d) ? d.get() : d, [d]);
3376
+ const l = (Hn(n) ? Fc : Lc)(i, o, s, n), c = tc(i, typeof n == "string", t), u = n !== Ie ? { ...c, ...l, ref: r } : {}, { children: d } = i, h = Z(() => X(d) ? d.get() : d, [d]);
3377
3377
  return ga(n, {
3378
3378
  ...u,
3379
3379
  children: h
@@ -3417,14 +3417,14 @@ const to = /* @__PURE__ */ new Set([
3417
3417
  "left",
3418
3418
  "right",
3419
3419
  "bottom",
3420
- ...qt
3420
+ ...zt
3421
3421
  ]);
3422
3422
  let Pe;
3423
3423
  function Uc() {
3424
3424
  Pe = void 0;
3425
3425
  }
3426
3426
  const lt = {
3427
- now: () => (Pe === void 0 && lt.set(K.isProcessing || Xl.useManualTiming ? K.timestamp : performance.now()), Pe),
3427
+ now: () => (Pe === void 0 && lt.set(q.isProcessing || Kl.useManualTiming ? q.timestamp : performance.now()), Pe),
3428
3428
  set: (t) => {
3429
3429
  Pe = t, queueMicrotask(Uc);
3430
3430
  }
@@ -3464,7 +3464,7 @@ class ti {
3464
3464
  function eo(t, e) {
3465
3465
  return e ? t * (1e3 / e) : 0;
3466
3466
  }
3467
- const zi = 30, Hc = (t) => !isNaN(parseFloat(t));
3467
+ const $i = 30, Hc = (t) => !isNaN(parseFloat(t));
3468
3468
  class Gc {
3469
3469
  /**
3470
3470
  * @param init - The initiating value
@@ -3603,9 +3603,9 @@ class Gc {
3603
3603
  */
3604
3604
  getVelocity() {
3605
3605
  const e = lt.now();
3606
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > zi)
3606
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > $i)
3607
3607
  return 0;
3608
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, zi);
3608
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, $i);
3609
3609
  return eo(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3610
3610
  }
3611
3611
  /**
@@ -3665,7 +3665,7 @@ function de(t, e) {
3665
3665
  function Wc(t, e, n) {
3666
3666
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, de(n));
3667
3667
  }
3668
- function zc(t, e) {
3668
+ function $c(t, e) {
3669
3669
  const n = We(t, e);
3670
3670
  let { transitionEnd: i = {}, transition: r = {}, ...o } = n || {};
3671
3671
  o = { ...o, ...i };
@@ -3674,12 +3674,12 @@ function zc(t, e) {
3674
3674
  Wc(t, s, a);
3675
3675
  }
3676
3676
  }
3677
- function qc(t) {
3678
- return !!(Y(t) && t.add);
3677
+ function zc(t) {
3678
+ return !!(X(t) && t.add);
3679
3679
  }
3680
3680
  function mn(t, e) {
3681
3681
  const n = t.getValue("willChange");
3682
- if (qc(n))
3682
+ if (zc(n))
3683
3683
  return n.add(e);
3684
3684
  }
3685
3685
  function no(t) {
@@ -3690,8 +3690,8 @@ function ei(t) {
3690
3690
  let e;
3691
3691
  return () => (e === void 0 && (e = t()), e);
3692
3692
  }
3693
- const Kc = /* @__PURE__ */ ei(() => window.ScrollTimeline !== void 0);
3694
- class Xc {
3693
+ const qc = /* @__PURE__ */ ei(() => window.ScrollTimeline !== void 0);
3694
+ class Kc {
3695
3695
  constructor(e) {
3696
3696
  this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
3697
3697
  }
@@ -3710,7 +3710,7 @@ class Xc {
3710
3710
  }
3711
3711
  attachTimeline(e, n) {
3712
3712
  const i = this.animations.map((r) => {
3713
- if (Kc() && r.attachTimeline)
3713
+ if (qc() && r.attachTimeline)
3714
3714
  return r.attachTimeline(e);
3715
3715
  if (typeof n == "function")
3716
3716
  return n(r);
@@ -3761,7 +3761,7 @@ class Xc {
3761
3761
  this.runAll("complete");
3762
3762
  }
3763
3763
  }
3764
- class Yc extends Xc {
3764
+ class Xc extends Kc {
3765
3765
  then(e, n) {
3766
3766
  return Promise.all(this.animations).then(e).catch(n);
3767
3767
  }
@@ -3770,17 +3770,17 @@ const ct = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, ft = /* @__NO_SIDE_EFFECTS
3770
3770
  function ni(t) {
3771
3771
  return typeof t == "function";
3772
3772
  }
3773
- function qi(t, e) {
3773
+ function zi(t, e) {
3774
3774
  t.timeline = e, t.onfinish = null;
3775
3775
  }
3776
- const ii = (t) => Array.isArray(t) && typeof t[0] == "number", $c = {
3776
+ const ii = (t) => Array.isArray(t) && typeof t[0] == "number", Yc = {
3777
3777
  linearEasing: void 0
3778
3778
  };
3779
3779
  function Zc(t, e) {
3780
3780
  const n = /* @__PURE__ */ ei(t);
3781
3781
  return () => {
3782
3782
  var i;
3783
- return (i = $c[e]) !== null && i !== void 0 ? i : n();
3783
+ return (i = Yc[e]) !== null && i !== void 0 ? i : n();
3784
3784
  };
3785
3785
  }
3786
3786
  const ke = /* @__PURE__ */ Zc(() => {
@@ -3828,7 +3828,7 @@ function tu(t, e, n, i, r) {
3828
3828
  }
3829
3829
  function me(t, e, n, i) {
3830
3830
  if (t === e && n === i)
3831
- return $;
3831
+ return Y;
3832
3832
  const r = (o) => tu(o, 0, 1, t, n);
3833
3833
  return (o) => o === 0 || o === 1 ? o : oo(r(o), e, i);
3834
3834
  }
@@ -3851,7 +3851,7 @@ const iu = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
3851
3851
  alpha: a !== void 0 ? parseFloat(a) : 1
3852
3852
  };
3853
3853
  }, ru = (t) => ht(0, 255, t), Je = {
3854
- ...Kt,
3854
+ ...qt,
3855
3855
  transform: (t) => Math.round(ru(t))
3856
3856
  }, Rt = {
3857
3857
  test: /* @__PURE__ */ ai("rgb", "red"),
@@ -3875,7 +3875,7 @@ const vn = {
3875
3875
  test: /* @__PURE__ */ ai("hsl", "hue"),
3876
3876
  parse: /* @__PURE__ */ go("hue", "saturation", "lightness"),
3877
3877
  transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + at.transform(re(e)) + ", " + at.transform(re(n)) + ", " + re(ue.transform(i)) + ")"
3878
- }, X = {
3878
+ }, K = {
3879
3879
  test: (t) => Rt.test(t) || vn.test(t) || Lt.test(t),
3880
3880
  parse: (t) => Rt.test(t) ? Rt.parse(t) : Lt.test(t) ? Lt.parse(t) : vn.parse(t),
3881
3881
  transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Rt.transform(t) : Lt.transform(t)
@@ -3884,7 +3884,7 @@ function au(t) {
3884
3884
  var e, n;
3885
3885
  return isNaN(t) && typeof t == "string" && (((e = t.match(oi)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(ou)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
3886
3886
  }
3887
- const vo = "number", yo = "color", lu = "var", cu = "var(", Ki = "${}", uu = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
3887
+ const vo = "number", yo = "color", lu = "var", cu = "var(", qi = "${}", uu = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
3888
3888
  function fe(t) {
3889
3889
  const e = t.toString(), n = [], i = {
3890
3890
  color: [],
@@ -3892,7 +3892,7 @@ function fe(t) {
3892
3892
  var: []
3893
3893
  }, r = [];
3894
3894
  let o = 0;
3895
- const a = e.replace(uu, (l) => (X.test(l) ? (i.color.push(o), r.push(yo), n.push(X.parse(l))) : l.startsWith(cu) ? (i.var.push(o), r.push(lu), n.push(l)) : (i.number.push(o), r.push(vo), n.push(parseFloat(l))), ++o, Ki)).split(Ki);
3895
+ const a = e.replace(uu, (l) => (K.test(l) ? (i.color.push(o), r.push(yo), n.push(K.parse(l))) : l.startsWith(cu) ? (i.var.push(o), r.push(lu), n.push(l)) : (i.number.push(o), r.push(vo), n.push(parseFloat(l))), ++o, qi)).split(qi);
3896
3896
  return { values: n, split: a, indexes: i, types: r };
3897
3897
  }
3898
3898
  function wo(t) {
@@ -3905,7 +3905,7 @@ function bo(t) {
3905
3905
  for (let s = 0; s < i; s++)
3906
3906
  if (o += e[s], r[s] !== void 0) {
3907
3907
  const a = n[s];
3908
- a === vo ? o += re(r[s]) : a === yo ? o += X.transform(r[s]) : o += r[s];
3908
+ a === vo ? o += re(r[s]) : a === yo ? o += K.transform(r[s]) : o += r[s];
3909
3909
  }
3910
3910
  return o;
3911
3911
  };
@@ -3939,19 +3939,19 @@ const mu = /\b([a-z-]*)\(.*?\)/gu, yn = {
3939
3939
  return e ? e.map(pu).join(" ") : t;
3940
3940
  }
3941
3941
  }, gu = {
3942
- ...zn,
3942
+ ...$n,
3943
3943
  // Color props
3944
- color: X,
3945
- backgroundColor: X,
3946
- outlineColor: X,
3947
- fill: X,
3948
- stroke: X,
3944
+ color: K,
3945
+ backgroundColor: K,
3946
+ outlineColor: K,
3947
+ fill: K,
3948
+ stroke: K,
3949
3949
  // Border props
3950
- borderColor: X,
3951
- borderTopColor: X,
3952
- borderRightColor: X,
3953
- borderBottomColor: X,
3954
- borderLeftColor: X,
3950
+ borderColor: K,
3951
+ borderTopColor: K,
3952
+ borderRightColor: K,
3953
+ borderBottomColor: K,
3954
+ borderLeftColor: K,
3955
3955
  filter: yn,
3956
3956
  WebkitFilter: yn
3957
3957
  }, li = (t) => gu[t];
@@ -3970,17 +3970,17 @@ function yu(t, e, n) {
3970
3970
  for (const o of e)
3971
3971
  t[o] = To(n, r);
3972
3972
  }
3973
- const Xi = (t) => t === Kt || t === C, Yi = (t, e) => parseFloat(t.split(", ")[e]), $i = (t, e) => (n, { transform: i }) => {
3973
+ const Ki = (t) => t === qt || t === C, Xi = (t, e) => parseFloat(t.split(", ")[e]), Yi = (t, e) => (n, { transform: i }) => {
3974
3974
  if (i === "none" || !i)
3975
3975
  return 0;
3976
3976
  const r = i.match(/^matrix3d\((.+)\)$/u);
3977
3977
  if (r)
3978
- return Yi(r[1], e);
3978
+ return Xi(r[1], e);
3979
3979
  {
3980
3980
  const o = i.match(/^matrix\((.+)\)$/u);
3981
- return o ? Yi(o[1], t) : 0;
3981
+ return o ? Xi(o[1], t) : 0;
3982
3982
  }
3983
- }, wu = /* @__PURE__ */ new Set(["x", "y", "z"]), bu = qt.filter((t) => !wu.has(t));
3983
+ }, wu = /* @__PURE__ */ new Set(["x", "y", "z"]), bu = zt.filter((t) => !wu.has(t));
3984
3984
  function Tu(t) {
3985
3985
  const e = [];
3986
3986
  return bu.forEach((n) => {
@@ -3997,8 +3997,8 @@ const Gt = {
3997
3997
  bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
3998
3998
  right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
3999
3999
  // Transform
4000
- x: $i(4, 13),
4001
- y: $i(5, 14)
4000
+ x: Yi(4, 13),
4001
+ y: Yi(5, 14)
4002
4002
  };
4003
4003
  Gt.translateX = Gt.x;
4004
4004
  Gt.translateY = Gt.y;
@@ -4099,7 +4099,7 @@ function Eo(t, e, n = 1) {
4099
4099
  const Po = (t) => (e) => e.test(t), Pu = {
4100
4100
  test: (t) => t === "auto",
4101
4101
  parse: (t) => t
4102
- }, Co = [Kt, C, at, gt, Tc, bc, Pu], Zi = (t) => Co.find(Po(t));
4102
+ }, Co = [qt, C, at, gt, Tc, bc, Pu], Zi = (t) => Co.find(Po(t));
4103
4103
  class Ro extends ci {
4104
4104
  constructor(e, n, i, r, o) {
4105
4105
  super(e, n, i, r, o, !0);
@@ -4120,7 +4120,7 @@ class Ro extends ci {
4120
4120
  return;
4121
4121
  const [r, o] = e, s = Zi(r), a = Zi(o);
4122
4122
  if (s !== a)
4123
- if (Xi(s) && Xi(a))
4123
+ if (Ki(s) && Ki(a))
4124
4124
  for (let l = 0; l < e.length; l++) {
4125
4125
  const c = e[l];
4126
4126
  typeof c == "string" && (e[l] = parseFloat(c));
@@ -4173,10 +4173,10 @@ function Ru(t, e, n, i) {
4173
4173
  if (e === "display" || e === "visibility")
4174
4174
  return !0;
4175
4175
  const o = t[t.length - 1], s = Ji(r, e), a = Ji(o, e);
4176
- return zt(s === a, `You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`), !s || !a ? !1 : Cu(t) || (n === "spring" || ni(n)) && i;
4176
+ return $t(s === a, `You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`), !s || !a ? !1 : Cu(t) || (n === "spring" || ni(n)) && i;
4177
4177
  }
4178
4178
  const Du = (t) => t !== null;
4179
- function ze(t, { repeat: e, repeatType: n = "loop" }, i) {
4179
+ function $e(t, { repeat: e, repeatType: n = "loop" }, i) {
4180
4180
  const r = t.filter(Du), o = e && n !== "loop" && e % 2 === 1 ? 0 : r.length - 1;
4181
4181
  return !o || i === void 0 ? r[o] : i;
4182
4182
  }
@@ -4226,7 +4226,7 @@ class Do {
4226
4226
  if (s)
4227
4227
  this.options.duration = 0;
4228
4228
  else {
4229
- l && l(ze(e, this.options, n)), a && a(), this.resolveFinishedPromise();
4229
+ l && l($e(e, this.options, n)), a && a(), this.resolveFinishedPromise();
4230
4230
  return;
4231
4231
  }
4232
4232
  const u = this.initPlayback(e, n);
@@ -4293,7 +4293,7 @@ const tn = (t, e, n) => {
4293
4293
  }, Vu = [vn, Rt, Lt], _u = (t) => Vu.find((e) => e.test(t));
4294
4294
  function Qi(t) {
4295
4295
  const e = _u(t);
4296
- if (zt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
4296
+ if ($t(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
4297
4297
  return !1;
4298
4298
  let n = e.parse(t);
4299
4299
  return e === Lt && (n = ku(n)), n;
@@ -4312,7 +4312,7 @@ function Iu(t, e) {
4312
4312
  return (n) => B(t, e, n);
4313
4313
  }
4314
4314
  function ui(t) {
4315
- return typeof t == "number" ? Iu : typeof t == "string" ? Wn(t) ? Ve : X.test(t) ? tr : ju : Array.isArray(t) ? ko : typeof t == "object" ? X.test(t) ? tr : Lu : Ve;
4315
+ return typeof t == "number" ? Iu : typeof t == "string" ? Wn(t) ? Ve : K.test(t) ? tr : ju : Array.isArray(t) ? ko : typeof t == "object" ? K.test(t) ? tr : Lu : Ve;
4316
4316
  }
4317
4317
  function ko(t, e) {
4318
4318
  const n = [...t], i = n.length, r = t.map((o, s) => ui(o)(o, e[s]));
@@ -4343,7 +4343,7 @@ function Fu(t, e) {
4343
4343
  }
4344
4344
  const ju = (t, e) => {
4345
4345
  const n = wt.createTransformer(e), i = fe(t), r = fe(e);
4346
- return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? xn.has(t) && !r.values.length || xn.has(e) && !i.values.length ? Ou(t, e) : ge(ko(Fu(i, r), r.values), n) : (zt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ve(t, e));
4346
+ return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? xn.has(t) && !r.values.length || xn.has(e) && !i.values.length ? Ou(t, e) : ge(ko(Fu(i, r), r.values), n) : ($t(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ve(t, e));
4347
4347
  };
4348
4348
  function Vo(t, e, n) {
4349
4349
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? B(t, e, n) : ui(t)(t, e);
@@ -4384,7 +4384,7 @@ const j = {
4384
4384
  }, en = 1e-3;
4385
4385
  function Uu({ duration: t = j.duration, bounce: e = j.bounce, velocity: n = j.velocity, mass: i = j.mass }) {
4386
4386
  let r, o;
4387
- zt(t <= /* @__PURE__ */ ct(j.maxDuration), "Spring duration must be 10 seconds or less");
4387
+ $t(t <= /* @__PURE__ */ ct(j.maxDuration), "Spring duration must be 10 seconds or less");
4388
4388
  let s = 1 - e;
4389
4389
  s = ht(j.minDamping, j.maxDamping, s), t = ht(j.minDuration, j.maxDuration, /* @__PURE__ */ ft(t)), s < 1 ? (r = (c) => {
4390
4390
  const u = c * s, d = u * t, h = u - n, p = An(c, s), b = Math.exp(-d);
@@ -4425,11 +4425,11 @@ function Gu(t, e, n) {
4425
4425
  function An(t, e) {
4426
4426
  return t * Math.sqrt(1 - e * e);
4427
4427
  }
4428
- const Wu = ["duration", "bounce"], zu = ["stiffness", "damping", "mass"];
4428
+ const Wu = ["duration", "bounce"], $u = ["stiffness", "damping", "mass"];
4429
4429
  function er(t, e) {
4430
4430
  return e.some((n) => t[n] !== void 0);
4431
4431
  }
4432
- function qu(t) {
4432
+ function zu(t) {
4433
4433
  let e = {
4434
4434
  velocity: j.velocity,
4435
4435
  stiffness: j.stiffness,
@@ -4438,7 +4438,7 @@ function qu(t) {
4438
4438
  isResolvedFromDuration: !1,
4439
4439
  ...t
4440
4440
  };
4441
- if (!er(t, zu) && er(t, Wu))
4441
+ if (!er(t, $u) && er(t, Wu))
4442
4442
  if (t.visualDuration) {
4443
4443
  const n = t.visualDuration, i = 2 * Math.PI / (n * 1.2), r = i * i, o = 2 * ht(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(r);
4444
4444
  e = {
@@ -4464,7 +4464,7 @@ function No(t = j.visualDuration, e = j.bounce) {
4464
4464
  bounce: e
4465
4465
  } : t;
4466
4466
  let { restSpeed: i, restDelta: r } = n;
4467
- const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: d, velocity: h, isResolvedFromDuration: p } = qu({
4467
+ const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: d, velocity: h, isResolvedFromDuration: p } = zu({
4468
4468
  ...n,
4469
4469
  velocity: -/* @__PURE__ */ ft(n.velocity || 0)
4470
4470
  }), b = h || 0, v = c / (2 * Math.sqrt(l * u)), g = s - o, T = /* @__PURE__ */ ft(Math.sqrt(l / u)), A = Math.abs(g) < 5;
@@ -4538,11 +4538,11 @@ function nr({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
4538
4538
  }
4539
4539
  };
4540
4540
  }
4541
- const Ku = /* @__PURE__ */ me(0.42, 0, 1, 1), Xu = /* @__PURE__ */ me(0, 0, 0.58, 1), Oo = /* @__PURE__ */ me(0.42, 0, 0.58, 1), Yu = (t) => Array.isArray(t) && typeof t[0] != "number", ir = {
4542
- linear: $,
4543
- easeIn: Ku,
4541
+ const qu = /* @__PURE__ */ me(0.42, 0, 1, 1), Ku = /* @__PURE__ */ me(0, 0, 0.58, 1), Oo = /* @__PURE__ */ me(0.42, 0, 0.58, 1), Xu = (t) => Array.isArray(t) && typeof t[0] != "number", ir = {
4542
+ linear: Y,
4543
+ easeIn: qu,
4544
4544
  easeInOut: Oo,
4545
- easeOut: Xu,
4545
+ easeOut: Ku,
4546
4546
  circIn: si,
4547
4547
  circInOut: po,
4548
4548
  circOut: ho,
@@ -4559,12 +4559,12 @@ const Ku = /* @__PURE__ */ me(0.42, 0, 1, 1), Xu = /* @__PURE__ */ me(0, 0, 0.58
4559
4559
  return vt(ir[t] !== void 0, `Invalid easing type '${t}'`), ir[t];
4560
4560
  return t;
4561
4561
  };
4562
- function $u(t, e, n) {
4562
+ function Yu(t, e, n) {
4563
4563
  const i = [], r = n || Vo, o = t.length - 1;
4564
4564
  for (let s = 0; s < o; s++) {
4565
4565
  let a = r(t[s], t[s + 1]);
4566
4566
  if (e) {
4567
- const l = Array.isArray(e) ? e[s] || $ : e;
4567
+ const l = Array.isArray(e) ? e[s] || Y : e;
4568
4568
  a = ge(l, a);
4569
4569
  }
4570
4570
  i.push(a);
@@ -4579,7 +4579,7 @@ function Zu(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
4579
4579
  return () => e[1];
4580
4580
  const s = t[0] === t[1];
4581
4581
  t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
4582
- const a = $u(e, i, r), l = a.length, c = (u) => {
4582
+ const a = Yu(e, i, r), l = a.length, c = (u) => {
4583
4583
  if (s && u < t[0])
4584
4584
  return e[0];
4585
4585
  let d = 0;
@@ -4609,7 +4609,7 @@ function ed(t, e) {
4609
4609
  return t.map(() => e || Oo).splice(0, t.length - 1);
4610
4610
  }
4611
4611
  function _e({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
4612
- const r = Yu(i) ? i.map(rr) : rr(i), o = {
4612
+ const r = Xu(i) ? i.map(rr) : rr(i), o = {
4613
4613
  done: !1,
4614
4614
  value: e[0]
4615
4615
  }, s = td(
@@ -4634,7 +4634,7 @@ const nd = (t) => {
4634
4634
  * If we're processing this frame we can use the
4635
4635
  * framelocked timestamp to keep things in sync.
4636
4636
  */
4637
- now: () => K.isProcessing ? K.timestamp : lt.now()
4637
+ now: () => q.isProcessing ? q.timestamp : lt.now()
4638
4638
  };
4639
4639
  }, id = {
4640
4640
  decay: nr,
@@ -4706,7 +4706,7 @@ class di extends Do {
4706
4706
  let { done: m } = f;
4707
4707
  !A && c !== null && (m = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
4708
4708
  const w = this.holdTime === null && (this.state === "finished" || this.state === "running" && m);
4709
- return w && r !== void 0 && (f.value = ze(l, this.options, r)), g && g(f.value), w && this.finish(), f;
4709
+ return w && r !== void 0 && (f.value = $e(l, this.options, r)), g && g(f.value), w && this.finish(), f;
4710
4710
  }
4711
4711
  get duration() {
4712
4712
  const { resolved: e } = this;
@@ -4835,9 +4835,9 @@ class sr extends Do {
4835
4835
  e = g.keyframes, e.length === 1 && (e[1] = e[0]), i = g.duration, r = g.times, o = g.ease, s = "keyframes";
4836
4836
  }
4837
4837
  const u = od(a.owner.current, l, e, { ...this.options, duration: i, times: r, ease: o });
4838
- return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (qi(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
4838
+ return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (zi(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
4839
4839
  const { onComplete: d } = this.options;
4840
- a.set(ze(e, this.options, n)), d && d(), this.cancel(), this.resolveFinishedPromise();
4840
+ a.set($e(e, this.options, n)), d && d(), this.cancel(), this.resolveFinishedPromise();
4841
4841
  }, {
4842
4842
  animation: u,
4843
4843
  duration: i,
@@ -4906,11 +4906,11 @@ class sr extends Do {
4906
4906
  else {
4907
4907
  const { resolved: n } = this;
4908
4908
  if (!n)
4909
- return $;
4909
+ return Y;
4910
4910
  const { animation: i } = n;
4911
- qi(i, e);
4911
+ zi(i, e);
4912
4912
  }
4913
- return $;
4913
+ return Y;
4914
4914
  }
4915
4915
  play() {
4916
4916
  if (this.isStopped)
@@ -5020,11 +5020,11 @@ const fi = (t, e, n, i = {}, r, o) => (s) => {
5020
5020
  }), u.duration && (u.duration = /* @__PURE__ */ ct(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ ct(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
5021
5021
  let d = !1;
5022
5022
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (d = !0)), d && !o && e.get() !== void 0) {
5023
- const h = ze(u.keyframes, a);
5023
+ const h = $e(u.keyframes, a);
5024
5024
  if (h !== void 0)
5025
5025
  return L.update(() => {
5026
5026
  u.onUpdate(h), u.onComplete();
5027
- }), new Yc([]);
5027
+ }), new Xc([]);
5028
5028
  }
5029
5029
  return !o && sr.supports(u) ? new sr(u) : new di(u);
5030
5030
  };
@@ -5059,7 +5059,7 @@ function Lo(t, e, { delay: n = 0, transitionOverride: i, type: r } = {}) {
5059
5059
  }
5060
5060
  return a && Promise.all(c).then(() => {
5061
5061
  L.update(() => {
5062
- a && zc(t, a);
5062
+ a && $c(t, a);
5063
5063
  });
5064
5064
  }), c;
5065
5065
  }
@@ -5158,23 +5158,23 @@ function Pd(t) {
5158
5158
  const R = Array.isArray(S) ? S : [S];
5159
5159
  let I = R.reduce(r(T), {});
5160
5160
  f === !1 && (I = {});
5161
- const { prevResolvedValues: Q = {} } = A, Xt = {
5161
+ const { prevResolvedValues: Q = {} } = A, Kt = {
5162
5162
  ...Q,
5163
5163
  ...I
5164
- }, V = (q) => {
5165
- x = !0, h.has(q) && (E = !0, h.delete(q)), A.needsAnimating[q] = !0;
5166
- const dt = t.getValue(q);
5164
+ }, V = (z) => {
5165
+ x = !0, h.has(z) && (E = !0, h.delete(z)), A.needsAnimating[z] = !0;
5166
+ const dt = t.getValue(z);
5167
5167
  dt && (dt.liveStyle = !1);
5168
5168
  };
5169
- for (const q in Xt) {
5170
- const dt = I[q], qe = Q[q];
5171
- if (p.hasOwnProperty(q))
5169
+ for (const z in Kt) {
5170
+ const dt = I[z], ze = Q[z];
5171
+ if (p.hasOwnProperty(z))
5172
5172
  continue;
5173
- let Ke = !1;
5174
- pn(dt) && pn(qe) ? Ke = !Qs(dt, qe) : Ke = dt !== qe, Ke ? dt != null ? V(q) : h.add(q) : dt !== void 0 && h.has(q) ? V(q) : A.protectedKeys[q] = !0;
5173
+ let qe = !1;
5174
+ pn(dt) && pn(ze) ? qe = !Qs(dt, ze) : qe = dt !== ze, qe ? dt != null ? V(z) : h.add(z) : dt !== void 0 && h.has(z) ? V(z) : A.protectedKeys[z] = !0;
5175
5175
  }
5176
- A.prevProp = S, A.prevResolvedValues = I, A.isActive && (p = { ...p, ...I }), i && t.blockInitialAnimation && (x = !1), x && (!(m && w) || E) && d.push(...R.map((q) => ({
5177
- animation: q,
5176
+ A.prevProp = S, A.prevResolvedValues = I, A.isActive && (p = { ...p, ...I }), i && t.blockInitialAnimation && (x = !1), x && (!(m && w) || E) && d.push(...R.map((z) => ({
5177
+ animation: z,
5178
5178
  options: { type: T }
5179
5179
  })));
5180
5180
  }
@@ -5339,7 +5339,7 @@ class Bo {
5339
5339
  const d = rn(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, p = Nd(d.offset, { x: 0, y: 0 }) >= 3;
5340
5340
  if (!h && !p)
5341
5341
  return;
5342
- const { point: b } = d, { timestamp: v } = K;
5342
+ const { point: b } = d, { timestamp: v } = q;
5343
5343
  this.history.push({ ...b, timestamp: v });
5344
5344
  const { onStart: g, onMove: T } = this.handlers;
5345
5345
  h || (g && g(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), T && T(this.lastMoveEvent, d);
@@ -5355,7 +5355,7 @@ class Bo {
5355
5355
  }, !hi(e))
5356
5356
  return;
5357
5357
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = r || window;
5358
- const s = ve(e), a = nn(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = K;
5358
+ const s = ve(e), a = nn(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = q;
5359
5359
  this.history = [{ ...l, timestamp: c }];
5360
5360
  const { onSessionStart: u } = n;
5361
5361
  u && u(e, rn(a, this.history)), this.removeListeners = ge(se(this.contextWindow, "pointermove", this.handlePointerMove), se(this.contextWindow, "pointerup", this.handlePointerUp), se(this.contextWindow, "pointercancel", this.handlePointerUp));
@@ -5449,23 +5449,23 @@ function hr(t, e) {
5449
5449
  let n = e.min - t.min, i = e.max - t.max;
5450
5450
  return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
5451
5451
  }
5452
- function zd(t, e) {
5452
+ function $d(t, e) {
5453
5453
  return {
5454
5454
  x: hr(t.x, e.x),
5455
5455
  y: hr(t.y, e.y)
5456
5456
  };
5457
5457
  }
5458
- function qd(t, e) {
5458
+ function zd(t, e) {
5459
5459
  let n = 0.5;
5460
5460
  const i = J(t), r = J(e);
5461
5461
  return r > i ? n = /* @__PURE__ */ Ht(e.min, e.max - i, t.min) : i > r && (n = /* @__PURE__ */ Ht(t.min, t.max - r, e.min)), ht(0, 1, n);
5462
5462
  }
5463
- function Kd(t, e) {
5463
+ function qd(t, e) {
5464
5464
  const n = {};
5465
5465
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
5466
5466
  }
5467
5467
  const En = 0.35;
5468
- function Xd(t = En) {
5468
+ function Kd(t = En) {
5469
5469
  return t === !1 ? t = 0 : t === !0 && (t = En), {
5470
5470
  x: pr(t, "left", "right"),
5471
5471
  y: pr(t, "top", "bottom")
@@ -5501,10 +5501,10 @@ function Wo({ top: t, left: e, right: n, bottom: i }) {
5501
5501
  y: { min: t, max: i }
5502
5502
  };
5503
5503
  }
5504
- function Yd({ x: t, y: e }) {
5504
+ function Xd({ x: t, y: e }) {
5505
5505
  return { top: e.min, right: t.max, bottom: e.max, left: t.min };
5506
5506
  }
5507
- function $d(t, e) {
5507
+ function Yd(t, e) {
5508
5508
  if (!e)
5509
5509
  return t;
5510
5510
  const n = e({ x: t.left, y: t.top }), i = e({ x: t.right, y: t.bottom });
@@ -5522,9 +5522,9 @@ function Pn({ scale: t, scaleX: e, scaleY: n }) {
5522
5522
  return !sn(t) || !sn(e) || !sn(n);
5523
5523
  }
5524
5524
  function Pt(t) {
5525
- return Pn(t) || zo(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
5525
+ return Pn(t) || $o(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
5526
5526
  }
5527
- function zo(t) {
5527
+ function $o(t) {
5528
5528
  return yr(t.x) || yr(t.y);
5529
5529
  }
5530
5530
  function yr(t) {
@@ -5540,7 +5540,7 @@ function wr(t, e, n, i, r) {
5540
5540
  function Cn(t, e = 0, n = 1, i, r) {
5541
5541
  t.min = wr(t.min, e, n, i, r), t.max = wr(t.max, e, n, i, r);
5542
5542
  }
5543
- function qo(t, { x: e, y: n }) {
5543
+ function zo(t, { x: e, y: n }) {
5544
5544
  Cn(t.x, e.translate, e.scale, e.originPoint), Cn(t.y, n.translate, n.scale, n.originPoint);
5545
5545
  }
5546
5546
  const br = 0.999999999999, Tr = 1.0000000000001;
@@ -5556,7 +5556,7 @@ function Zd(t, e, n, i = !1) {
5556
5556
  l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && Bt(t, {
5557
5557
  x: -o.scroll.offset.x,
5558
5558
  y: -o.scroll.offset.y
5559
- }), s && (e.x *= s.x.scale, e.y *= s.y.scale, qo(t, s)), i && Pt(o.latestValues) && Bt(t, o.latestValues));
5559
+ }), s && (e.x *= s.x.scale, e.y *= s.y.scale, zo(t, s)), i && Pt(o.latestValues) && Bt(t, o.latestValues));
5560
5560
  }
5561
5561
  e.x < Tr && e.x > br && (e.x = 1), e.y < Tr && e.y > br && (e.y = 1);
5562
5562
  }
@@ -5570,14 +5570,14 @@ function xr(t, e, n, i, r = 0.5) {
5570
5570
  function Bt(t, e) {
5571
5571
  xr(t.x, e.x, e.scaleX, e.scale, e.originX), xr(t.y, e.y, e.scaleY, e.scale, e.originY);
5572
5572
  }
5573
- function Ko(t, e) {
5574
- return Wo($d(t.getBoundingClientRect(), e));
5573
+ function qo(t, e) {
5574
+ return Wo(Yd(t.getBoundingClientRect(), e));
5575
5575
  }
5576
5576
  function Jd(t, e, n) {
5577
- const i = Ko(t, n), { scroll: r } = e;
5577
+ const i = qo(t, n), { scroll: r } = e;
5578
5578
  return r && (jt(i.x, r.offset.x), jt(i.y, r.offset.y)), i;
5579
5579
  }
5580
- const Xo = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Qd = /* @__PURE__ */ new WeakMap();
5580
+ const Ko = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Qd = /* @__PURE__ */ new WeakMap();
5581
5581
  class tf {
5582
5582
  constructor(e) {
5583
5583
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = H(), this.visualElement = e;
@@ -5629,7 +5629,7 @@ class tf {
5629
5629
  }, {
5630
5630
  transformPagePoint: this.visualElement.getTransformPagePoint(),
5631
5631
  dragSnapToOrigin: c,
5632
- contextWindow: Xo(this.visualElement)
5632
+ contextWindow: Ko(this.visualElement)
5633
5633
  });
5634
5634
  }
5635
5635
  stop(e, n) {
@@ -5659,8 +5659,8 @@ class tf {
5659
5659
  resolveConstraints() {
5660
5660
  var e;
5661
5661
  const { dragConstraints: n, dragElastic: i } = this.getProps(), r = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
5662
- n && It(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints = Wd(r.layoutBox, n) : this.constraints = !1, this.elastic = Xd(i), o !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && it((s) => {
5663
- this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = Kd(r.layoutBox[s], this.constraints[s]));
5662
+ n && It(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints = Wd(r.layoutBox, n) : this.constraints = !1, this.elastic = Kd(i), o !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && it((s) => {
5663
+ this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = qd(r.layoutBox[s], this.constraints[s]));
5664
5664
  });
5665
5665
  }
5666
5666
  resolveRefConstraints() {
@@ -5673,9 +5673,9 @@ class tf {
5673
5673
  if (!r || !r.layout)
5674
5674
  return !1;
5675
5675
  const o = Jd(i, r.root, this.visualElement.getTransformPagePoint());
5676
- let s = zd(r.layout.layoutBox, o);
5676
+ let s = $d(r.layout.layoutBox, o);
5677
5677
  if (n) {
5678
- const a = n(Yd(s));
5678
+ const a = n(Xd(s));
5679
5679
  this.hasMutatedConstraints = !!a, a && (s = Wo(a));
5680
5680
  }
5681
5681
  return s;
@@ -5757,7 +5757,7 @@ class tf {
5757
5757
  const a = this.getAxisMotionValue(s);
5758
5758
  if (a && this.constraints !== !1) {
5759
5759
  const l = a.get();
5760
- r[s] = qd({ min: l, max: l }, this.constraints[s]);
5760
+ r[s] = zd({ min: l, max: l }, this.constraints[s]);
5761
5761
  }
5762
5762
  });
5763
5763
  const { transformTemplate: o } = this.visualElement.getProps();
@@ -5812,11 +5812,11 @@ function ef(t, e = 10) {
5812
5812
  }
5813
5813
  class nf extends xt {
5814
5814
  constructor(e) {
5815
- super(e), this.removeGroupControls = $, this.removeListeners = $, this.controls = new tf(e);
5815
+ super(e), this.removeGroupControls = Y, this.removeListeners = Y, this.controls = new tf(e);
5816
5816
  }
5817
5817
  mount() {
5818
5818
  const { dragControls: e } = this.node.getProps();
5819
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || $;
5819
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Y;
5820
5820
  }
5821
5821
  unmount() {
5822
5822
  this.removeGroupControls(), this.removeListeners();
@@ -5827,12 +5827,12 @@ const Ar = (t) => (e, n) => {
5827
5827
  };
5828
5828
  class rf extends xt {
5829
5829
  constructor() {
5830
- super(...arguments), this.removePointerDownListener = $;
5830
+ super(...arguments), this.removePointerDownListener = Y;
5831
5831
  }
5832
5832
  onPointerDown(e) {
5833
5833
  this.session = new Bo(e, this.createPanHandlers(), {
5834
5834
  transformPagePoint: this.node.getTransformPagePoint(),
5835
- contextWindow: Xo(this.node)
5835
+ contextWindow: Ko(this.node)
5836
5836
  });
5837
5837
  }
5838
5838
  createPanHandlers() {
@@ -5934,7 +5934,7 @@ class of extends va {
5934
5934
  return null;
5935
5935
  }
5936
5936
  }
5937
- function Yo(t) {
5937
+ function Xo(t) {
5938
5938
  const [e, n] = _s(), i = W(Nn);
5939
5939
  return kt(of, { ...t, layoutGroup: i, switchLayoutGroup: W(Bs), isPresent: e, safeToRemove: n });
5940
5940
  }
@@ -5955,7 +5955,7 @@ const af = {
5955
5955
  boxShadow: sf
5956
5956
  };
5957
5957
  function lf(t, e, n) {
5958
- const i = Y(t) ? t : de(t);
5958
+ const i = X(t) ? t : de(t);
5959
5959
  return i.start(fi("", i, e, n)), i.animation;
5960
5960
  }
5961
5961
  function cf(t) {
@@ -5983,7 +5983,7 @@ function ff(t, e) {
5983
5983
  };
5984
5984
  return L.read(i, !0), () => yt(i);
5985
5985
  }
5986
- const $o = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], hf = $o.length, Er = (t) => typeof t == "string" ? parseFloat(t) : t, Pr = (t) => typeof t == "number" || C.test(t);
5986
+ const Yo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], hf = Yo.length, Er = (t) => typeof t == "string" ? parseFloat(t) : t, Pr = (t) => typeof t == "number" || C.test(t);
5987
5987
  function pf(t, e, n, i, r, o) {
5988
5988
  r ? (t.opacity = B(
5989
5989
  0,
@@ -5992,7 +5992,7 @@ function pf(t, e, n, i, r, o) {
5992
5992
  mf(i)
5993
5993
  ), t.opacityExit = B(e.opacity !== void 0 ? e.opacity : 1, 0, gf(i))) : o && (t.opacity = B(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
5994
5994
  for (let s = 0; s < hf; s++) {
5995
- const a = `border${$o[s]}Radius`;
5995
+ const a = `border${Yo[s]}Radius`;
5996
5996
  let l = Cr(e, a), c = Cr(n, a);
5997
5997
  if (l === void 0 && c === void 0)
5998
5998
  continue;
@@ -6003,7 +6003,7 @@ function pf(t, e, n, i, r, o) {
6003
6003
  function Cr(t, e) {
6004
6004
  return t[e] !== void 0 ? t[e] : t.borderRadius;
6005
6005
  }
6006
- const mf = /* @__PURE__ */ Zo(0, 0.5, ho), gf = /* @__PURE__ */ Zo(0.5, 0.95, $);
6006
+ const mf = /* @__PURE__ */ Zo(0, 0.5, ho), gf = /* @__PURE__ */ Zo(0.5, 0.95, Y);
6007
6007
  function Zo(t, e, n) {
6008
6008
  return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ Ht(t, e, i));
6009
6009
  }
@@ -6252,7 +6252,7 @@ function ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6252
6252
  }
6253
6253
  this.isUpdating || this.nodes.forEach(Mf), this.isUpdating = !1, this.nodes.forEach(kf), this.nodes.forEach(Ef), this.nodes.forEach(Pf), this.clearAllSnapshots();
6254
6254
  const a = lt.now();
6255
- K.delta = ht(0, 1e3 / 60, a - K.timestamp), K.timestamp = a, K.isProcessing = !0, Ze.update.process(K), Ze.preRender.process(K), Ze.render.process(K), K.isProcessing = !1;
6255
+ q.delta = ht(0, 1e3 / 60, a - q.timestamp), q.timestamp = a, q.isProcessing = !0, Ze.update.process(q), Ze.preRender.process(q), Ze.render.process(q), q.isProcessing = !1;
6256
6256
  }
6257
6257
  didUpdate() {
6258
6258
  this.updateScheduled || (this.updateScheduled = !0, Un.read(this.scheduleUpdate));
@@ -6377,7 +6377,7 @@ function ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6377
6377
  this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
6378
6378
  }
6379
6379
  forceRelativeParentToResolveTarget() {
6380
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== K.timestamp && this.relativeParent.resolveTargetDelta(!0);
6380
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== q.timestamp && this.relativeParent.resolveTargetDelta(!0);
6381
6381
  }
6382
6382
  resolveTargetDelta(s = !1) {
6383
6383
  var a;
@@ -6388,12 +6388,12 @@ function ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6388
6388
  return;
6389
6389
  const { layout: d, layoutId: h } = this.options;
6390
6390
  if (!(!this.layout || !(d || h))) {
6391
- if (this.resolvedRelativeTargetAt = K.timestamp, !this.targetDelta && !this.relativeTarget) {
6391
+ if (this.resolvedRelativeTargetAt = q.timestamp, !this.targetDelta && !this.relativeTarget) {
6392
6392
  const p = this.getClosestProjectingParent();
6393
6393
  p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = H(), this.relativeTargetOrigin = H(), ae(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), nt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
6394
6394
  }
6395
6395
  if (!(!this.relativeTarget && !this.targetDelta)) {
6396
- if (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Hd(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nt(this.target, this.layout.layoutBox), qo(this.target, this.targetDelta)) : nt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
6396
+ if (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Hd(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nt(this.target, this.layout.layoutBox), zo(this.target, this.targetDelta)) : nt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
6397
6397
  this.attemptToResolveRelativeTarget = !1;
6398
6398
  const p = this.getClosestProjectingParent();
6399
6399
  p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = H(), this.relativeTargetOrigin = H(), ae(this.relativeTargetOrigin, this.target, p.target), nt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -6403,7 +6403,7 @@ function ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6403
6403
  }
6404
6404
  }
6405
6405
  getClosestProjectingParent() {
6406
- if (!(!this.parent || Pn(this.parent.latestValues) || zo(this.parent.latestValues)))
6406
+ if (!(!this.parent || Pn(this.parent.latestValues) || $o(this.parent.latestValues)))
6407
6407
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
6408
6408
  }
6409
6409
  isProjecting() {
@@ -6413,7 +6413,7 @@ function ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6413
6413
  var s;
6414
6414
  const a = this.getLead(), l = !!this.resumingFrom || this !== a;
6415
6415
  let c = !0;
6416
- if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === K.timestamp && (c = !1), c)
6416
+ if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === q.timestamp && (c = !1), c)
6417
6417
  return;
6418
6418
  const { layout: u, layoutId: d } = this.options;
6419
6419
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || d))
@@ -6684,12 +6684,12 @@ function Lf(t) {
6684
6684
  const Ff = {
6685
6685
  duration: 0.45,
6686
6686
  ease: [0.4, 0, 0.1, 1]
6687
- }, Gr = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Wr = Gr("applewebkit/") && !Gr("chrome/") ? Math.round : $;
6688
- function zr(t) {
6687
+ }, Gr = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Wr = Gr("applewebkit/") && !Gr("chrome/") ? Math.round : Y;
6688
+ function $r(t) {
6689
6689
  t.min = Wr(t.min), t.max = Wr(t.max);
6690
6690
  }
6691
6691
  function jf(t) {
6692
- zr(t.x), zr(t.y);
6692
+ $r(t.x), $r(t.y);
6693
6693
  }
6694
6694
  function na(t, e, n) {
6695
6695
  return t === "position" || t === "preserve-aspect" && !Ud(Ir(e), Ir(n), 0.2);
@@ -6730,7 +6730,7 @@ const Uf = ea({
6730
6730
  drag: {
6731
6731
  Feature: nf,
6732
6732
  ProjectionNode: ia,
6733
- MeasureLayout: Yo
6733
+ MeasureLayout: Xo
6734
6734
  }
6735
6735
  };
6736
6736
  function Gf(t, e, n) {
@@ -6752,17 +6752,17 @@ function ra(t, e) {
6752
6752
  };
6753
6753
  return [n, r, () => i.abort()];
6754
6754
  }
6755
- function qr(t) {
6755
+ function zr(t) {
6756
6756
  return (e) => {
6757
6757
  e.pointerType === "touch" || jo() || t(e);
6758
6758
  };
6759
6759
  }
6760
6760
  function Wf(t, e, n = {}) {
6761
- const [i, r, o] = ra(t, n), s = qr((a) => {
6761
+ const [i, r, o] = ra(t, n), s = zr((a) => {
6762
6762
  const { target: l } = a, c = e(a);
6763
6763
  if (typeof c != "function" || !l)
6764
6764
  return;
6765
- const u = qr((d) => {
6765
+ const u = zr((d) => {
6766
6766
  c(d), l.removeEventListener("pointerleave", u);
6767
6767
  });
6768
6768
  l.addEventListener("pointerleave", u, r);
@@ -6771,21 +6771,21 @@ function Wf(t, e, n = {}) {
6771
6771
  a.addEventListener("pointerenter", s, r);
6772
6772
  }), o;
6773
6773
  }
6774
- function Kr(t, e, n) {
6774
+ function qr(t, e, n) {
6775
6775
  const { props: i } = t;
6776
6776
  t.animationState && i.whileHover && t.animationState.setActive("whileHover", n === "Start");
6777
6777
  const r = "onHover" + n, o = i[r];
6778
6778
  o && L.postRender(() => o(e, ve(e)));
6779
6779
  }
6780
- class zf extends xt {
6780
+ class $f extends xt {
6781
6781
  mount() {
6782
6782
  const { current: e } = this.node;
6783
- e && (this.unmount = Wf(e, (n) => (Kr(this.node, n, "Start"), (i) => Kr(this.node, i, "End"))));
6783
+ e && (this.unmount = Wf(e, (n) => (qr(this.node, n, "Start"), (i) => qr(this.node, i, "End"))));
6784
6784
  }
6785
6785
  unmount() {
6786
6786
  }
6787
6787
  }
6788
- class qf extends xt {
6788
+ class zf extends xt {
6789
6789
  constructor() {
6790
6790
  super(...arguments), this.isActive = !1;
6791
6791
  }
@@ -6807,18 +6807,18 @@ class qf extends xt {
6807
6807
  unmount() {
6808
6808
  }
6809
6809
  }
6810
- const sa = (t, e) => e ? t === e ? !0 : sa(t, e.parentElement) : !1, Kf = /* @__PURE__ */ new Set([
6810
+ const sa = (t, e) => e ? t === e ? !0 : sa(t, e.parentElement) : !1, qf = /* @__PURE__ */ new Set([
6811
6811
  "BUTTON",
6812
6812
  "INPUT",
6813
6813
  "SELECT",
6814
6814
  "TEXTAREA",
6815
6815
  "A"
6816
6816
  ]);
6817
- function Xf(t) {
6818
- return Kf.has(t.tagName) || t.tabIndex !== -1;
6817
+ function Kf(t) {
6818
+ return qf.has(t.tagName) || t.tabIndex !== -1;
6819
6819
  }
6820
6820
  const ie = /* @__PURE__ */ new WeakSet();
6821
- function Xr(t) {
6821
+ function Kr(t) {
6822
6822
  return (e) => {
6823
6823
  e.key === "Enter" && t(e);
6824
6824
  };
@@ -6826,32 +6826,32 @@ function Xr(t) {
6826
6826
  function cn(t, e) {
6827
6827
  t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
6828
6828
  }
6829
- const Yf = (t, e) => {
6829
+ const Xf = (t, e) => {
6830
6830
  const n = t.currentTarget;
6831
6831
  if (!n)
6832
6832
  return;
6833
- const i = Xr(() => {
6833
+ const i = Kr(() => {
6834
6834
  if (ie.has(n))
6835
6835
  return;
6836
6836
  cn(n, "down");
6837
- const r = Xr(() => {
6837
+ const r = Kr(() => {
6838
6838
  cn(n, "up");
6839
6839
  }), o = () => cn(n, "cancel");
6840
6840
  n.addEventListener("keyup", r, e), n.addEventListener("blur", o, e);
6841
6841
  });
6842
6842
  n.addEventListener("keydown", i, e), n.addEventListener("blur", () => n.removeEventListener("keydown", i), e);
6843
6843
  };
6844
- function Yr(t) {
6844
+ function Xr(t) {
6845
6845
  return hi(t) && !jo();
6846
6846
  }
6847
- function $f(t, e, n = {}) {
6847
+ function Yf(t, e, n = {}) {
6848
6848
  const [i, r, o] = ra(t, n), s = (a) => {
6849
6849
  const l = a.currentTarget;
6850
- if (!Yr(a) || ie.has(l))
6850
+ if (!Xr(a) || ie.has(l))
6851
6851
  return;
6852
6852
  ie.add(l);
6853
6853
  const c = e(a), u = (p, b) => {
6854
- window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", h), !(!Yr(p) || !ie.has(l)) && (ie.delete(l), typeof c == "function" && c(p, { success: b }));
6854
+ window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", h), !(!Xr(p) || !ie.has(l)) && (ie.delete(l), typeof c == "function" && c(p, { success: b }));
6855
6855
  }, d = (p) => {
6856
6856
  u(p, n.useGlobalTarget || sa(l, p.target));
6857
6857
  }, h = (p) => {
@@ -6860,10 +6860,10 @@ function $f(t, e, n = {}) {
6860
6860
  window.addEventListener("pointerup", d, r), window.addEventListener("pointercancel", h, r);
6861
6861
  };
6862
6862
  return i.forEach((a) => {
6863
- !Xf(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0), (n.useGlobalTarget ? window : a).addEventListener("pointerdown", s, r), a.addEventListener("focus", (c) => Yf(c, r), r);
6863
+ !Kf(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0), (n.useGlobalTarget ? window : a).addEventListener("pointerdown", s, r), a.addEventListener("focus", (c) => Xf(c, r), r);
6864
6864
  }), o;
6865
6865
  }
6866
- function $r(t, e, n) {
6866
+ function Yr(t, e, n) {
6867
6867
  const { props: i } = t;
6868
6868
  t.animationState && i.whileTap && t.animationState.setActive("whileTap", n === "Start");
6869
6869
  const r = "onTap" + (n === "End" ? "" : n), o = i[r];
@@ -6872,7 +6872,7 @@ function $r(t, e, n) {
6872
6872
  class Zf extends xt {
6873
6873
  mount() {
6874
6874
  const { current: e } = this.node;
6875
- e && (this.unmount = $f(e, (n) => ($r(this.node, n, "Start"), (i, { success: r }) => $r(this.node, i, r ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
6875
+ e && (this.unmount = Yf(e, (n) => (Yr(this.node, n, "Start"), (i, { success: r }) => Yr(this.node, i, r ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
6876
6876
  }
6877
6877
  unmount() {
6878
6878
  }
@@ -6942,15 +6942,15 @@ const sh = {
6942
6942
  Feature: Zf
6943
6943
  },
6944
6944
  focus: {
6945
- Feature: qf
6945
+ Feature: zf
6946
6946
  },
6947
6947
  hover: {
6948
- Feature: zf
6948
+ Feature: $f
6949
6949
  }
6950
6950
  }, oh = {
6951
6951
  layout: {
6952
6952
  ProjectionNode: ia,
6953
- MeasureLayout: Yo
6953
+ MeasureLayout: Xo
6954
6954
  }
6955
6955
  }, Dn = { current: null }, oa = { current: !1 };
6956
6956
  function ah() {
@@ -6961,13 +6961,13 @@ function ah() {
6961
6961
  } else
6962
6962
  Dn.current = !1;
6963
6963
  }
6964
- const lh = [...Co, X, wt], ch = (t) => lh.find(Po(t)), Zr = /* @__PURE__ */ new WeakMap();
6964
+ const lh = [...Co, K, wt], ch = (t) => lh.find(Po(t)), Zr = /* @__PURE__ */ new WeakMap();
6965
6965
  function uh(t, e, n) {
6966
6966
  for (const i in e) {
6967
6967
  const r = e[i], o = n[i];
6968
- if (Y(r))
6968
+ if (X(r))
6969
6969
  t.addValue(i, r), process.env.NODE_ENV === "development" && Be(r.version === "11.18.2", `Attempting to mix Motion versions ${r.version} with 11.18.2 may not work as expected.`);
6970
- else if (Y(o))
6970
+ else if (X(o))
6971
6971
  t.addValue(i, de(r, { owner: t }));
6972
6972
  else if (o !== r)
6973
6973
  if (t.hasValue(i)) {
@@ -7014,7 +7014,7 @@ class dh {
7014
7014
  const { willChange: d, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
7015
7015
  for (const p in h) {
7016
7016
  const b = h[p];
7017
- l[p] !== void 0 && Y(b) && b.set(l[p], !1);
7017
+ l[p] !== void 0 && X(b) && b.set(l[p], !1);
7018
7018
  }
7019
7019
  }
7020
7020
  mount(e) {
@@ -7151,7 +7151,7 @@ class dh {
7151
7151
  readValue(e, n) {
7152
7152
  var i;
7153
7153
  let r = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
7154
- return r != null && (typeof r == "string" && (So(r) || mo(r)) ? r = parseFloat(r) : !ch(r) && wt.test(n) && (r = To(e, n)), this.setBaseTarget(e, Y(r) ? r.get() : r)), Y(r) ? r.get() : r;
7154
+ return r != null && (typeof r == "string" && (So(r) || mo(r)) ? r = parseFloat(r) : !ch(r) && wt.test(n) && (r = To(e, n)), this.setBaseTarget(e, X(r) ? r.get() : r)), X(r) ? r.get() : r;
7155
7155
  }
7156
7156
  /**
7157
7157
  * Set the base target to later animate back to. This is currently
@@ -7175,7 +7175,7 @@ class dh {
7175
7175
  if (i && r !== void 0)
7176
7176
  return r;
7177
7177
  const o = this.getBaseTargetFromProps(this.props, e);
7178
- return o !== void 0 && !Y(o) ? o : this.initialValues[e] !== void 0 && r === void 0 ? void 0 : this.baseTarget[e];
7178
+ return o !== void 0 && !X(o) ? o : this.initialValues[e] !== void 0 && r === void 0 ? void 0 : this.baseTarget[e];
7179
7179
  }
7180
7180
  on(e, n) {
7181
7181
  return this.events[e] || (this.events[e] = new ti()), this.events[e].add(n);
@@ -7200,7 +7200,7 @@ class aa extends dh {
7200
7200
  handleChildMotionValue() {
7201
7201
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
7202
7202
  const { children: e } = this.props;
7203
- Y(e) && (this.childSubscription = e.on("change", (n) => {
7203
+ X(e) && (this.childSubscription = e.on("change", (n) => {
7204
7204
  this.current && (this.current.textContent = `${n}`);
7205
7205
  }));
7206
7206
  }
@@ -7210,7 +7210,7 @@ function fh(t) {
7210
7210
  }
7211
7211
  class hh extends aa {
7212
7212
  constructor() {
7213
- super(...arguments), this.type = "html", this.renderInstance = Ks;
7213
+ super(...arguments), this.type = "html", this.renderInstance = qs;
7214
7214
  }
7215
7215
  readValueFromInstance(e, n) {
7216
7216
  if (Vt.has(n)) {
@@ -7222,13 +7222,13 @@ class hh extends aa {
7222
7222
  }
7223
7223
  }
7224
7224
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
7225
- return Ko(e, n);
7225
+ return qo(e, n);
7226
7226
  }
7227
7227
  build(e, n, i) {
7228
- qn(e, n, i.transformTemplate);
7228
+ zn(e, n, i.transformTemplate);
7229
7229
  }
7230
7230
  scrapeMotionValuesFromProps(e, n, i) {
7231
- return $n(e, n, i);
7231
+ return Yn(e, n, i);
7232
7232
  }
7233
7233
  }
7234
7234
  class ph extends aa {
@@ -7243,19 +7243,19 @@ class ph extends aa {
7243
7243
  const i = li(n);
7244
7244
  return i && i.default || 0;
7245
7245
  }
7246
- return n = Xs.has(n) ? n : Bn(n), e.getAttribute(n);
7246
+ return n = Ks.has(n) ? n : Bn(n), e.getAttribute(n);
7247
7247
  }
7248
7248
  scrapeMotionValuesFromProps(e, n, i) {
7249
7249
  return Zs(e, n, i);
7250
7250
  }
7251
7251
  build(e, n, i) {
7252
- Kn(e, n, this.isSVGTag, i.transformTemplate);
7252
+ qn(e, n, this.isSVGTag, i.transformTemplate);
7253
7253
  }
7254
7254
  renderInstance(e, n, i, r) {
7255
- Ys(e, n, i, r);
7255
+ Xs(e, n, i, r);
7256
7256
  }
7257
7257
  mount(e) {
7258
- this.isSVGTag = Yn(e.tagName), super.mount(e);
7258
+ this.isSVGTag = Xn(e.tagName), super.mount(e);
7259
7259
  }
7260
7260
  }
7261
7261
  const mh = (t, e) => Hn(t) ? new ph(e) : new hh(e, {
@@ -7265,7 +7265,7 @@ const mh = (t, e) => Hn(t) ? new ph(e) : new hh(e, {
7265
7265
  ...sh,
7266
7266
  ...Hf,
7267
7267
  ...oh
7268
- }, mh), la = /* @__PURE__ */ ec(gh), _p = z(({ children: t, className: e, ...n }, i) => /* @__PURE__ */ N("label", { className: G("tw:inline-flex tw:items-center tw:cursor-pointer tw:gap-2 tw:text-ic-white-6s tw:text-xs", e), children: [
7268
+ }, mh), la = /* @__PURE__ */ ec(gh), _p = $(({ children: t, className: e, ...n }, i) => /* @__PURE__ */ N("label", { className: G("tw:inline-flex tw:items-center tw:cursor-pointer tw:gap-2 tw:text-ic-white-6s tw:text-xs", e), children: [
7269
7269
  /* @__PURE__ */ y("input", { ...n, type: "checkbox", className: G("tw:sr-only tw:peer"), ref: i }),
7270
7270
  /* @__PURE__ */ y(
7271
7271
  "span",
@@ -7286,7 +7286,7 @@ const mh = (t, e) => Hn(t) ? new ph(e) : new hh(e, {
7286
7286
  children: t
7287
7287
  }
7288
7288
  )
7289
- ] })), Np = z(({ className: t, ...e }, n) => /* @__PURE__ */ y(
7289
+ ] })), Np = $(({ className: t, ...e }, n) => /* @__PURE__ */ y(
7290
7290
  "textarea",
7291
7291
  {
7292
7292
  className: G(
@@ -7297,7 +7297,7 @@ const mh = (t, e) => Hn(t) ? new ph(e) : new hh(e, {
7297
7297
  ...e,
7298
7298
  ref: n
7299
7299
  }
7300
- )), Op = z(
7300
+ )), Op = $(
7301
7301
  ({ children: t, open: e = !0, collapsedSize: n = 0, orientation: i = "vertical", className: r, ...o }, s) => {
7302
7302
  const a = rt(e), l = Z(() => {
7303
7303
  const u = {};
@@ -7319,7 +7319,7 @@ const mh = (t, e) => Hn(t) ? new ph(e) : new hh(e, {
7319
7319
  }
7320
7320
  );
7321
7321
  }
7322
- ), ca = ut({}), ua = () => W(ca), Qr = z(
7322
+ ), ca = ut({}), ua = () => W(ca), Qr = $(
7323
7323
  ({
7324
7324
  open: t,
7325
7325
  placement: e = "bottom",
@@ -7361,11 +7361,11 @@ const mh = (t, e) => Hn(t) ? new ph(e) : new hh(e, {
7361
7361
  return /* @__PURE__ */ y(ca.Provider, { value: f, children: r });
7362
7362
  }
7363
7363
  );
7364
- z((t, e) => ms() ? /* @__PURE__ */ y(Qr, { ...t, ref: e }) : /* @__PURE__ */ y(gs, { children: /* @__PURE__ */ y(Qr, { ...t, ref: e }) }));
7365
- z(
7364
+ $((t, e) => ms() ? /* @__PURE__ */ y(Qr, { ...t, ref: e }) : /* @__PURE__ */ y(gs, { children: /* @__PURE__ */ y(Qr, { ...t, ref: e }) }));
7365
+ $(
7366
7366
  ({ style: t, floatingPortalProps: e, floatingFocusManagerProps: n, floatingOverlayProps: i, ...r }, o) => {
7367
7367
  const { getFloatingProps: s, context: a } = ua(), { document: l } = ul(), c = U([a.refs.setFloating, o]);
7368
- return /* @__PURE__ */ y(Kl, { children: a.open && /* @__PURE__ */ y(Vn, { root: l?.body ?? document.body, ...e, children: /* @__PURE__ */ y(
7368
+ return /* @__PURE__ */ y(ql, { children: a.open && /* @__PURE__ */ y(Vn, { root: l?.body ?? document.body, ...e, children: /* @__PURE__ */ y(
7369
7369
  Pa,
7370
7370
  {
7371
7371
  ...i,
@@ -7393,7 +7393,7 @@ z(
7393
7393
  ) }) });
7394
7394
  }
7395
7395
  );
7396
- const vh = z(
7396
+ const vh = $(
7397
7397
  ({ event: t = "click", reason: e, className: n, ...i }, r) => {
7398
7398
  const o = rt(null), {
7399
7399
  context: { onOpenChange: s }
@@ -7410,7 +7410,7 @@ const vh = z(
7410
7410
  }, [t, s, e]), /* @__PURE__ */ y("div", { className: G("tw:contents", n), ...i, ref: a });
7411
7411
  }
7412
7412
  ), yh = vh;
7413
- z(({ className: t, ...e }, n) => /* @__PURE__ */ y("div", { className: G("tw:flex tw:justify-end tw:gap-2 tw:py-2 tw:px-4 tw:sm:px-5 tw:relative", t), ...e, ref: n }));
7413
+ $(({ className: t, ...e }, n) => /* @__PURE__ */ y("div", { className: G("tw:flex tw:justify-end tw:gap-2 tw:py-2 tw:px-4 tw:sm:px-5 tw:relative", t), ...e, ref: n }));
7414
7414
  const wh = ` <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
7415
7415
  <g clip-path="url(#clip0_16378_125816)">
7416
7416
  <path d="M5.80078 5.80005L17.8008 17.8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
@@ -7424,7 +7424,7 @@ const wh = ` <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns=
7424
7424
  </clipPath>
7425
7425
  </defs>
7426
7426
  </svg>`;
7427
- z(
7427
+ $(
7428
7428
  ({ className: t, children: e, closeable: n = !0, ...i }, r) => /* @__PURE__ */ N(
7429
7429
  "div",
7430
7430
  {
@@ -7922,7 +7922,7 @@ const Gh = (t) => {
7922
7922
  r && n.connect(r);
7923
7923
  }
7924
7924
  ]);
7925
- return /* @__PURE__ */ y(za, { ...t, ...e, ref: i });
7925
+ return /* @__PURE__ */ y($a, { ...t, ...e, ref: i });
7926
7926
  };
7927
7927
  O(Gh, {
7928
7928
  isCanvas: !0,
@@ -7935,7 +7935,7 @@ O(Gh, {
7935
7935
  const Wh = (t) => {
7936
7936
  const { connectors: e } = _(), n = F();
7937
7937
  return /* @__PURE__ */ y(
7938
- qa,
7938
+ za,
7939
7939
  {
7940
7940
  ...n,
7941
7941
  ...t,
@@ -7952,25 +7952,25 @@ O(Wh, {
7952
7952
  displayName: "Icon"
7953
7953
  }
7954
7954
  });
7955
- const zh = (t) => {
7955
+ const $h = (t) => {
7956
7956
  const { connectors: e } = _(), n = F(), i = U([
7957
7957
  (r) => {
7958
7958
  r && e.connect(r);
7959
7959
  }
7960
7960
  ]);
7961
- return /* @__PURE__ */ y(Ka, { ...t, ...n, ref: i });
7961
+ return /* @__PURE__ */ y(qa, { ...t, ...n, ref: i });
7962
7962
  };
7963
- O(zh, {
7963
+ O($h, {
7964
7964
  resolved: M.Accordion,
7965
7965
  isCanvas: !1,
7966
7966
  info: {
7967
7967
  selectable: !1
7968
7968
  }
7969
7969
  });
7970
- const qh = ({ children: t, ...e }) => {
7970
+ const zh = ({ children: t, ...e }) => {
7971
7971
  const { connectors: n } = _(), i = F();
7972
7972
  return /* @__PURE__ */ N(
7973
- Xa,
7973
+ Ka,
7974
7974
  {
7975
7975
  ...e,
7976
7976
  ...i,
@@ -7979,12 +7979,12 @@ const qh = ({ children: t, ...e }) => {
7979
7979
  },
7980
7980
  children: [
7981
7981
  t,
7982
- st(t) && /* @__PURE__ */ y(At, { placeholder: Kh })
7982
+ st(t) && /* @__PURE__ */ y(At, { placeholder: qh })
7983
7983
  ]
7984
7984
  }
7985
7985
  );
7986
- }, Kh = "Accordion summary";
7987
- O(qh, {
7986
+ }, qh = "Accordion summary";
7987
+ O(zh, {
7988
7988
  resolved: M.AccordionSummary,
7989
7989
  isCanvas: !0,
7990
7990
  rules: {
@@ -7995,10 +7995,10 @@ O(qh, {
7995
7995
  selectable: !1
7996
7996
  }
7997
7997
  });
7998
- const Xh = ({ children: t, ...e }) => {
7998
+ const Kh = ({ children: t, ...e }) => {
7999
7999
  const { connectors: n } = _(), i = F();
8000
8000
  return /* @__PURE__ */ N(
8001
- Ya,
8001
+ Xa,
8002
8002
  {
8003
8003
  ...e,
8004
8004
  ...i,
@@ -8009,12 +8009,12 @@ const Xh = ({ children: t, ...e }) => {
8009
8009
  },
8010
8010
  children: [
8011
8011
  t,
8012
- st(t) && /* @__PURE__ */ y(At, { placeholder: Yh })
8012
+ st(t) && /* @__PURE__ */ y(At, { placeholder: Xh })
8013
8013
  ]
8014
8014
  }
8015
8015
  );
8016
- }, Yh = "Accordion Content";
8017
- O(Xh, {
8016
+ }, Xh = "Accordion Content";
8017
+ O(Kh, {
8018
8018
  resolved: M.AccordionContent,
8019
8019
  isCanvas: !0,
8020
8020
  rules: {
@@ -8025,10 +8025,10 @@ O(Xh, {
8025
8025
  selectable: !1
8026
8026
  }
8027
8027
  });
8028
- const $h = (t) => {
8028
+ const Yh = (t) => {
8029
8029
  const { connectors: e } = _(), n = F();
8030
8030
  return /* @__PURE__ */ y(
8031
- $a,
8031
+ Ya,
8032
8032
  {
8033
8033
  ...t,
8034
8034
  ...n,
@@ -8038,7 +8038,7 @@ const $h = (t) => {
8038
8038
  }
8039
8039
  );
8040
8040
  };
8041
- O($h, {
8041
+ O(Yh, {
8042
8042
  resolved: M.AccordionGroup,
8043
8043
  isCanvas: !0,
8044
8044
  rules: {
@@ -8172,7 +8172,7 @@ O(Qh, {
8172
8172
  });
8173
8173
  export {
8174
8174
  Pp as $,
8175
- Xh as A,
8175
+ Kh as A,
8176
8176
  Jh as B,
8177
8177
  At as C,
8178
8178
  Tp as D,
@@ -8199,7 +8199,7 @@ export {
8199
8199
  bs as Y,
8200
8200
  _l as Z,
8201
8201
  _n as _,
8202
- $h as a,
8202
+ Yh as a,
8203
8203
  Ol as a0,
8204
8204
  Op as a1,
8205
8205
  Ds as a2,
@@ -8224,9 +8224,9 @@ export {
8224
8224
  Ch as al,
8225
8225
  Np as am,
8226
8226
  M as an,
8227
- zh as b,
8227
+ $h as b,
8228
8228
  G as c,
8229
- qh as d,
8229
+ zh as d,
8230
8230
  Ah as e,
8231
8231
  Th as f,
8232
8232
  Qh as g,