@telegraph/combobox 0.2.6 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,43 +1,42 @@
1
1
  import { DismissableLayer as e } from "@radix-ui/react-dismissable-layer";
2
- import * as t from "@radix-ui/react-portal";
3
- import { useControllableState as n } from "@radix-ui/react-use-controllable-state";
4
- import * as r from "@radix-ui/react-visually-hidden";
5
- import { Button as i } from "@telegraph/button";
6
- import { useComposedRefs as a } from "@telegraph/compose-refs";
7
- import { Icon as o } from "@telegraph/icon";
8
- import { Input as s } from "@telegraph/input";
9
- import { Box as c, Stack as l } from "@telegraph/layout";
10
- import { Menu as u } from "@telegraph/menu";
11
- import { Text as d } from "@telegraph/typography";
12
- import { ChevronsUpDown as f, Plus as p, Search as m, X as h } from "lucide-react";
13
- import g, { Fragment as _, createContext as v, createElement as y, forwardRef as b, useCallback as x, useContext as S, useEffect as C, useInsertionEffect as w, useLayoutEffect as ee, useMemo as T, useRef as E, useState as te } from "react";
14
- import { RefToTgphRef as ne } from "@telegraph/helpers";
15
- import { Tag as re } from "@telegraph/tag";
16
- import { Tooltip as ie } from "@telegraph/tooltip";
17
- import { TooltipIfTruncated as ae } from "@telegraph/truncate";
18
- import { Fragment as oe, jsx as D, jsxs as O } from "react/jsx-runtime";
2
+ import { useControllableState as t } from "@radix-ui/react-use-controllable-state";
3
+ import * as n from "@radix-ui/react-visually-hidden";
4
+ import { Button as r } from "@telegraph/button";
5
+ import { useComposedRefs as i } from "@telegraph/compose-refs";
6
+ import { Icon as a } from "@telegraph/icon";
7
+ import { Input as o } from "@telegraph/input";
8
+ import { Box as s, Stack as c } from "@telegraph/layout";
9
+ import { Menu as l } from "@telegraph/menu";
10
+ import { Text as u } from "@telegraph/typography";
11
+ import { ChevronsUpDown as d, Plus as f, Search as p, X as m } from "lucide-react";
12
+ import h, { Fragment as g, createContext as _, createElement as v, forwardRef as y, useCallback as b, useContext as x, useEffect as S, useInsertionEffect as C, useLayoutEffect as w, useMemo as T, useRef as E, useState as ee } from "react";
13
+ import { RefToTgphRef as te } from "@telegraph/helpers";
14
+ import { Tag as D } from "@telegraph/tag";
15
+ import { Tooltip as ne } from "@telegraph/tooltip";
16
+ import { TooltipIfTruncated as re } from "@telegraph/truncate";
17
+ import { Fragment as ie, jsx as O, jsxs as k } from "react/jsx-runtime";
19
18
  //#region \0rolldown/runtime.js
20
- var se = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, le = Object.getOwnPropertyNames, ue = Object.prototype.hasOwnProperty, de = (e, t) => () => (e && (t = e(e = 0)), t), fe = (e, t) => {
19
+ var ae = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, se = Object.getOwnPropertyNames, ce = Object.prototype.hasOwnProperty, le = (e, t) => () => (e && (t = e(e = 0)), t), ue = (e, t) => {
21
20
  let n = {};
22
- for (var r in e) se(n, r, {
21
+ for (var r in e) ae(n, r, {
23
22
  get: e[r],
24
23
  enumerable: !0
25
24
  });
26
- return t || se(n, Symbol.toStringTag, { value: "Module" }), n;
27
- }, pe = (e, t, n, r) => {
28
- if (t && typeof t == "object" || typeof t == "function") for (var i = le(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ue.call(e, s) && s !== n && se(e, s, {
25
+ return t || ae(n, Symbol.toStringTag, { value: "Module" }), n;
26
+ }, de = (e, t, n, r) => {
27
+ if (t && typeof t == "object" || typeof t == "function") for (var i = se(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ce.call(e, s) && s !== n && ae(e, s, {
29
28
  get: ((e) => t[e]).bind(null, s),
30
- enumerable: !(r = ce(t, s)) || r.enumerable
29
+ enumerable: !(r = oe(t, s)) || r.enumerable
31
30
  });
32
31
  return e;
33
- }, me = (e) => ue.call(e, "module.exports") ? e["module.exports"] : pe(se({}, "__esModule", { value: !0 }), e), he = {
32
+ }, fe = (e) => ce.call(e, "module.exports") ? e["module.exports"] : de(ae({}, "__esModule", { value: !0 }), e), pe = {
34
33
  0: "5",
35
34
  1: "6",
36
35
  2: "8",
37
36
  3: "10"
38
- }, k = (e) => Array.isArray(e), A = (e) => typeof e == "object" && !Array.isArray(e) || typeof e == "string" || !e, ge = (e) => {
39
- let t = (e, n = []) => (g.Children.toArray(e).forEach((e) => {
40
- if (g.isValidElement(e)) {
37
+ }, A = (e) => Array.isArray(e), j = (e) => typeof e == "object" && !Array.isArray(e) || typeof e == "string" || !e, me = (e) => {
38
+ let t = (e, n = []) => (h.Children.toArray(e).forEach((e) => {
39
+ if (h.isValidElement(e)) {
41
40
  let r = e.props;
42
41
  r.value ? n.push(e) : r.children && t(r.children, n);
43
42
  }
@@ -49,87 +48,87 @@ var se = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, le = Objec
49
48
  label: t.props?.label || t.props.children || t.props.value
50
49
  };
51
50
  });
52
- }, j = (e, t) => {
51
+ }, M = (e, t) => {
53
52
  if (e) return t === !0 ? e?.value : e;
54
- }, _e = (e, t, n) => {
53
+ }, he = (e, t, n) => {
55
54
  if (!e || !t || t.length === 0) return;
56
- let r = t.find((t) => t.value === j(e, n));
55
+ let r = t.find((t) => t.value === M(e, n));
57
56
  if (r) return r;
58
- }, ve = ({ children: e, value: t, searchQuery: n }) => {
59
- let r = ye(e);
57
+ }, ge = ({ children: e, value: t, searchQuery: n }) => {
58
+ let r = _e(e);
60
59
  return t?.toLowerCase().includes(n.toLowerCase()) || r.some((e) => e.toLowerCase().includes(n.toLowerCase()));
61
- }, ye = (e) => {
62
- let t = g.Children.toArray(e), n = [];
60
+ }, _e = (e) => {
61
+ let t = h.Children.toArray(e), n = [];
63
62
  return t.forEach((e) => {
64
- if (typeof e == "string" && n.push(e), g.isValidElement(e)) {
63
+ if (typeof e == "string" && n.push(e), h.isValidElement(e)) {
65
64
  let t = e.props;
66
- t.children && n.push(...ye(t.children));
65
+ t.children && n.push(..._e(t.children));
67
66
  }
68
67
  }), n;
69
- }, be = v({});
68
+ }, ve = _({});
70
69
  //#endregion
71
70
  //#region ../../node_modules/framer-motion/dist/es/utils/use-constant.mjs
72
- function xe(e) {
71
+ function ye(e) {
73
72
  let t = E(null);
74
73
  return t.current === null && (t.current = e()), t.current;
75
74
  }
76
75
  //#endregion
77
76
  //#region ../../node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
78
- var Se = typeof window < "u" ? ee : C, Ce = /* @__PURE__ */ v(null);
77
+ var be = typeof window < "u" ? w : S, xe = /* @__PURE__ */ _(null);
79
78
  //#endregion
80
79
  //#region ../../node_modules/motion-utils/dist/es/array.mjs
81
- function we(e, t) {
80
+ function Se(e, t) {
82
81
  e.indexOf(t) === -1 && e.push(t);
83
82
  }
84
- function Te(e, t) {
83
+ function Ce(e, t) {
85
84
  let n = e.indexOf(t);
86
85
  n > -1 && e.splice(n, 1);
87
86
  }
88
87
  //#endregion
89
88
  //#region ../../node_modules/motion-utils/dist/es/clamp.mjs
90
- var M = (e, t, n) => n > t ? t : n < e ? e : n;
89
+ var N = (e, t, n) => n > t ? t : n < e ? e : n;
91
90
  //#endregion
92
91
  //#region ../../node_modules/motion-utils/dist/es/format-error-message.mjs
93
- function Ee(e, t) {
92
+ function we(e, t) {
94
93
  return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
95
94
  }
96
95
  //#endregion
97
96
  //#region ../../node_modules/motion-utils/dist/es/errors.mjs
98
- var De = () => {}, N = () => {};
99
- typeof process < "u" && process.env.NODE_ENV !== "production" && (De = (e, t, n) => {
100
- !e && typeof console < "u" && console.warn(Ee(t, n));
101
- }, N = (e, t, n) => {
102
- if (!e) throw Error(Ee(t, n));
97
+ var Te = () => {}, P = () => {};
98
+ typeof process < "u" && process.env.NODE_ENV !== "production" && (Te = (e, t, n) => {
99
+ !e && typeof console < "u" && console.warn(we(t, n));
100
+ }, P = (e, t, n) => {
101
+ if (!e) throw Error(we(t, n));
103
102
  });
104
103
  //#endregion
105
104
  //#region ../../node_modules/motion-utils/dist/es/global-config.mjs
106
- var P = {}, Oe = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
105
+ var F = {}, Ee = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
107
106
  //#endregion
108
107
  //#region ../../node_modules/motion-utils/dist/es/is-object.mjs
109
- function ke(e) {
108
+ function De(e) {
110
109
  return typeof e == "object" && !!e;
111
110
  }
112
111
  //#endregion
113
112
  //#region ../../node_modules/motion-utils/dist/es/is-zero-value-string.mjs
114
- var Ae = (e) => /^0[^.\s]+$/u.test(e);
113
+ var Oe = (e) => /^0[^.\s]+$/u.test(e);
115
114
  //#endregion
116
115
  //#region ../../node_modules/motion-utils/dist/es/memo.mjs
117
116
  /* @__NO_SIDE_EFFECTS__ */
118
- function je(e) {
117
+ function ke(e) {
119
118
  let t;
120
119
  return () => (t === void 0 && (t = e()), t);
121
120
  }
122
121
  //#endregion
123
122
  //#region ../../node_modules/motion-utils/dist/es/noop.mjs
124
- var F = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Me = (e, t) => (n) => t(e(n)), Ne = (...e) => e.reduce(Me), Pe = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
123
+ var Ae = /* @__NO_SIDE_EFFECTS__ */ (e) => e, je = (e, t) => (n) => t(e(n)), Me = (...e) => e.reduce(je), Ne = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
125
124
  let r = t - e;
126
125
  return r === 0 ? 1 : (n - e) / r;
127
- }, Fe = class {
126
+ }, Pe = class {
128
127
  constructor() {
129
128
  this.subscriptions = [];
130
129
  }
131
130
  add(e) {
132
- return we(this.subscriptions, e), () => Te(this.subscriptions, e);
131
+ return Se(this.subscriptions, e), () => Ce(this.subscriptions, e);
133
132
  }
134
133
  notify(e, t, n) {
135
134
  let r = this.subscriptions.length;
@@ -148,52 +147,52 @@ var F = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Me = (e, t) => (n) => t(e(n)), Ne =
148
147
  }, I = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, L = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
149
148
  //#endregion
150
149
  //#region ../../node_modules/motion-utils/dist/es/velocity-per-second.mjs
151
- function Ie(e, t) {
150
+ function Fe(e, t) {
152
151
  return t ? 1e3 / t * e : 0;
153
152
  }
154
153
  //#endregion
155
154
  //#region ../../node_modules/motion-utils/dist/es/warn-once.mjs
156
- var Le = /* @__PURE__ */ new Set();
157
- function Re(e, t, n) {
158
- e || Le.has(t) || (console.warn(Ee(t, n)), Le.add(t));
155
+ var Ie = /* @__PURE__ */ new Set();
156
+ function Le(e, t, n) {
157
+ e || Ie.has(t) || (console.warn(we(t, n)), Ie.add(t));
159
158
  }
160
159
  //#endregion
161
160
  //#region ../../node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs
162
- var ze = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Be = 1e-7, Ve = 12;
163
- function He(e, t, n, r, i) {
161
+ var Re = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, ze = 1e-7, Be = 12;
162
+ function Ve(e, t, n, r, i) {
164
163
  let a, o, s = 0;
165
164
  do
166
- o = t + (n - t) / 2, a = ze(o, r, i) - e, a > 0 ? n = o : t = o;
167
- while (Math.abs(a) > Be && ++s < Ve);
165
+ o = t + (n - t) / 2, a = Re(o, r, i) - e, a > 0 ? n = o : t = o;
166
+ while (Math.abs(a) > ze && ++s < Be);
168
167
  return o;
169
168
  }
170
- function Ue(e, t, n, r) {
171
- if (e === t && n === r) return F;
172
- let i = (t) => He(t, 0, 1, e, n);
173
- return (e) => e === 0 || e === 1 ? e : ze(i(e), t, r);
169
+ function He(e, t, n, r) {
170
+ if (e === t && n === r) return Ae;
171
+ let i = (t) => Ve(t, 0, 1, e, n);
172
+ return (e) => e === 0 || e === 1 ? e : Re(i(e), t, r);
174
173
  }
175
174
  //#endregion
176
175
  //#region ../../node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
177
- var We = (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ge = (e) => (t) => 1 - e(1 - t), Ke = /* @__PURE__ */ Ue(.33, 1.53, .69, .99), qe = /* @__PURE__ */ Ge(Ke), Je = /* @__PURE__ */ We(qe), Ye = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * qe(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Xe = (e) => 1 - Math.sin(Math.acos(e)), Ze = Ge(Xe), Qe = We(Xe), $e = /* @__PURE__ */ Ue(.42, 0, 1, 1), et = /* @__PURE__ */ Ue(0, 0, .58, 1), tt = /* @__PURE__ */ Ue(.42, 0, .58, 1), nt = (e) => Array.isArray(e) && typeof e[0] != "number", rt = (e) => Array.isArray(e) && typeof e[0] == "number", it = {
178
- linear: F,
179
- easeIn: $e,
180
- easeInOut: tt,
181
- easeOut: et,
182
- circIn: Xe,
183
- circInOut: Qe,
184
- circOut: Ze,
185
- backIn: qe,
186
- backInOut: Je,
187
- backOut: Ke,
188
- anticipate: Ye
189
- }, at = (e) => typeof e == "string", ot = (e) => {
190
- if (rt(e)) {
191
- N(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
176
+ var Ue = (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, We = (e) => (t) => 1 - e(1 - t), Ge = /* @__PURE__ */ He(.33, 1.53, .69, .99), Ke = /* @__PURE__ */ We(Ge), qe = /* @__PURE__ */ Ue(Ke), Je = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Ke(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Ye = (e) => 1 - Math.sin(Math.acos(e)), Xe = We(Ye), Ze = Ue(Ye), Qe = /* @__PURE__ */ He(.42, 0, 1, 1), $e = /* @__PURE__ */ He(0, 0, .58, 1), et = /* @__PURE__ */ He(.42, 0, .58, 1), tt = (e) => Array.isArray(e) && typeof e[0] != "number", nt = (e) => Array.isArray(e) && typeof e[0] == "number", rt = {
177
+ linear: Ae,
178
+ easeIn: Qe,
179
+ easeInOut: et,
180
+ easeOut: $e,
181
+ circIn: Ye,
182
+ circInOut: Ze,
183
+ circOut: Xe,
184
+ backIn: Ke,
185
+ backInOut: qe,
186
+ backOut: Ge,
187
+ anticipate: Je
188
+ }, it = (e) => typeof e == "string", at = (e) => {
189
+ if (nt(e)) {
190
+ P(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
192
191
  let [t, n, r, i] = e;
193
- return Ue(t, n, r, i);
194
- } else if (at(e)) return N(it[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), it[e];
192
+ return He(t, n, r, i);
193
+ } else if (it(e)) return P(rt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), rt[e];
195
194
  return e;
196
- }, st = [
195
+ }, ot = [
197
196
  "setup",
198
197
  "read",
199
198
  "resolveKeyframes",
@@ -202,13 +201,13 @@ var We = (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ge = (
202
201
  "preRender",
203
202
  "render",
204
203
  "postRender"
205
- ], ct = {
204
+ ], st = {
206
205
  value: null,
207
206
  addProjectionMetrics: null
208
207
  };
209
208
  //#endregion
210
209
  //#region ../../node_modules/motion-dom/dist/es/frameloop/render-step.mjs
211
- function lt(e, t) {
210
+ function ct(e, t) {
212
211
  let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, a = !1, o = /* @__PURE__ */ new WeakSet(), s = {
213
212
  delta: 0,
214
213
  timestamp: 0,
@@ -232,32 +231,32 @@ function lt(e, t) {
232
231
  }
233
232
  i = !0;
234
233
  let o = n;
235
- n = r, r = o, n.forEach(l), t && ct.value && ct.value.frameloop[t].push(c), c = 0, n.clear(), i = !1, a && (a = !1, u.process(e));
234
+ n = r, r = o, n.forEach(l), t && st.value && st.value.frameloop[t].push(c), c = 0, n.clear(), i = !1, a && (a = !1, u.process(e));
236
235
  }
237
236
  };
238
237
  return u;
239
238
  }
240
239
  //#endregion
241
240
  //#region ../../node_modules/motion-dom/dist/es/frameloop/batcher.mjs
242
- var ut = 40;
243
- function dt(e, t) {
241
+ var lt = 40;
242
+ function ut(e, t) {
244
243
  let n = !1, r = !0, i = {
245
244
  delta: 0,
246
245
  timestamp: 0,
247
246
  isProcessing: !1
248
- }, a = () => n = !0, o = st.reduce((e, n) => (e[n] = lt(a, t ? n : void 0), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
249
- let a = P.useManualTiming, o = a ? i.timestamp : performance.now();
250
- n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, ut), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
247
+ }, a = () => n = !0, o = ot.reduce((e, n) => (e[n] = ct(a, t ? n : void 0), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
248
+ let a = F.useManualTiming, o = a ? i.timestamp : performance.now();
249
+ n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, lt), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
251
250
  }, g = () => {
252
251
  n = !0, r = !0, i.isProcessing || e(h);
253
252
  };
254
253
  return {
255
- schedule: st.reduce((e, t) => {
254
+ schedule: ot.reduce((e, t) => {
256
255
  let r = o[t];
257
256
  return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
258
257
  }, {}),
259
258
  cancel: (e) => {
260
- for (let t = 0; t < st.length; t++) o[st[t]].cancel(e);
259
+ for (let t = 0; t < ot.length; t++) o[ot[t]].cancel(e);
261
260
  },
262
261
  state: i,
263
262
  steps: o
@@ -265,63 +264,63 @@ function dt(e, t) {
265
264
  }
266
265
  //#endregion
267
266
  //#region ../../node_modules/motion-dom/dist/es/frameloop/frame.mjs
268
- var { schedule: R, cancel: ft, state: pt, steps: mt } = /* @__PURE__ */ dt(typeof requestAnimationFrame < "u" ? requestAnimationFrame : F, !0), ht;
269
- function gt() {
270
- ht = void 0;
267
+ var { schedule: R, cancel: dt, state: ft, steps: pt } = /* @__PURE__ */ ut(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Ae, !0), mt;
268
+ function ht() {
269
+ mt = void 0;
271
270
  }
272
271
  var z = {
273
- now: () => (ht === void 0 && z.set(pt.isProcessing || P.useManualTiming ? pt.timestamp : performance.now()), ht),
272
+ now: () => (mt === void 0 && z.set(ft.isProcessing || F.useManualTiming ? ft.timestamp : performance.now()), mt),
274
273
  set: (e) => {
275
- ht = e, queueMicrotask(gt);
274
+ mt = e, queueMicrotask(ht);
276
275
  }
277
- }, _t = {
276
+ }, gt = {
278
277
  layout: 0,
279
278
  mainThread: 0,
280
279
  waapi: 0
281
- }, vt = (e) => (t) => typeof t == "string" && t.startsWith(e), yt = /* @__PURE__ */ vt("--"), bt = /* @__PURE__ */ vt("var(--"), xt = (e) => bt(e) ? St.test(e.split("/*")[0].trim()) : !1, St = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
282
- function Ct(e) {
280
+ }, _t = (e) => (t) => typeof t == "string" && t.startsWith(e), vt = /* @__PURE__ */ _t("--"), yt = /* @__PURE__ */ _t("var(--"), bt = (e) => yt(e) ? xt.test(e.split("/*")[0].trim()) : !1, xt = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
281
+ function St(e) {
283
282
  return typeof e == "string" ? e.split("/*")[0].includes("var(--") : !1;
284
283
  }
285
284
  //#endregion
286
285
  //#region ../../node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
287
- var wt = {
286
+ var Ct = {
288
287
  test: (e) => typeof e == "number",
289
288
  parse: parseFloat,
290
289
  transform: (e) => e
290
+ }, wt = {
291
+ ...Ct,
292
+ transform: (e) => N(0, 1, e)
291
293
  }, Tt = {
292
- ...wt,
293
- transform: (e) => M(0, 1, e)
294
- }, Et = {
295
- ...wt,
294
+ ...Ct,
296
295
  default: 1
297
- }, Dt = (e) => Math.round(e * 1e5) / 1e5, Ot = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
296
+ }, Et = (e) => Math.round(e * 1e5) / 1e5, Dt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
298
297
  //#endregion
299
298
  //#region ../../node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
300
- function kt(e) {
299
+ function Ot(e) {
301
300
  return e == null;
302
301
  }
303
302
  //#endregion
304
303
  //#region ../../node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
305
- var At = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, jt = (e, t) => (n) => !!(typeof n == "string" && At.test(n) && n.startsWith(e) || t && !kt(n) && Object.prototype.hasOwnProperty.call(n, t)), Mt = (e, t, n) => (r) => {
304
+ var kt = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, At = (e, t) => (n) => !!(typeof n == "string" && kt.test(n) && n.startsWith(e) || t && !Ot(n) && Object.prototype.hasOwnProperty.call(n, t)), jt = (e, t, n) => (r) => {
306
305
  if (typeof r != "string") return r;
307
- let [i, a, o, s] = r.match(Ot);
306
+ let [i, a, o, s] = r.match(Dt);
308
307
  return {
309
308
  [e]: parseFloat(i),
310
309
  [t]: parseFloat(a),
311
310
  [n]: parseFloat(o),
312
311
  alpha: s === void 0 ? 1 : parseFloat(s)
313
312
  };
314
- }, Nt = (e) => M(0, 255, e), Pt = {
315
- ...wt,
316
- transform: (e) => Math.round(Nt(e))
313
+ }, Mt = (e) => N(0, 255, e), Nt = {
314
+ ...Ct,
315
+ transform: (e) => Math.round(Mt(e))
317
316
  }, B = {
318
- test: /* @__PURE__ */ jt("rgb", "red"),
319
- parse: /* @__PURE__ */ Mt("red", "green", "blue"),
320
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Pt.transform(e) + ", " + Pt.transform(t) + ", " + Pt.transform(n) + ", " + Dt(Tt.transform(r)) + ")"
317
+ test: /* @__PURE__ */ At("rgb", "red"),
318
+ parse: /* @__PURE__ */ jt("red", "green", "blue"),
319
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Nt.transform(e) + ", " + Nt.transform(t) + ", " + Nt.transform(n) + ", " + Et(wt.transform(r)) + ")"
321
320
  };
322
321
  //#endregion
323
322
  //#region ../../node_modules/motion-dom/dist/es/value/types/color/hex.mjs
324
- function Ft(e) {
323
+ function Pt(e) {
325
324
  let t = "", n = "", r = "", i = "";
326
325
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
327
326
  red: parseInt(t, 16),
@@ -330,38 +329,38 @@ function Ft(e) {
330
329
  alpha: i ? parseInt(i, 16) / 255 : 1
331
330
  };
332
331
  }
333
- var It = {
334
- test: /* @__PURE__ */ jt("#"),
335
- parse: Ft,
332
+ var Ft = {
333
+ test: /* @__PURE__ */ At("#"),
334
+ parse: Pt,
336
335
  transform: B.transform
337
- }, Lt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
336
+ }, It = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
338
337
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
339
338
  parse: parseFloat,
340
339
  transform: (t) => `${t}${e}`
341
- }), V = /* @__PURE__ */ Lt("deg"), H = /* @__PURE__ */ Lt("%"), U = /* @__PURE__ */ Lt("px"), Rt = /* @__PURE__ */ Lt("vh"), zt = /* @__PURE__ */ Lt("vw"), Bt = {
340
+ }), V = /* @__PURE__ */ It("deg"), H = /* @__PURE__ */ It("%"), U = /* @__PURE__ */ It("px"), Lt = /* @__PURE__ */ It("vh"), Rt = /* @__PURE__ */ It("vw"), zt = {
342
341
  ...H,
343
342
  parse: (e) => H.parse(e) / 100,
344
343
  transform: (e) => H.transform(e * 100)
345
- }, Vt = {
346
- test: /* @__PURE__ */ jt("hsl", "hue"),
347
- parse: /* @__PURE__ */ Mt("hue", "saturation", "lightness"),
348
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + H.transform(Dt(t)) + ", " + H.transform(Dt(n)) + ", " + Dt(Tt.transform(r)) + ")"
344
+ }, Bt = {
345
+ test: /* @__PURE__ */ At("hsl", "hue"),
346
+ parse: /* @__PURE__ */ jt("hue", "saturation", "lightness"),
347
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + H.transform(Et(t)) + ", " + H.transform(Et(n)) + ", " + Et(wt.transform(r)) + ")"
349
348
  }, W = {
350
- test: (e) => B.test(e) || It.test(e) || Vt.test(e),
351
- parse: (e) => B.test(e) ? B.parse(e) : Vt.test(e) ? Vt.parse(e) : It.parse(e),
352
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? B.transform(e) : Vt.transform(e),
349
+ test: (e) => B.test(e) || Ft.test(e) || Bt.test(e),
350
+ parse: (e) => B.test(e) ? B.parse(e) : Bt.test(e) ? Bt.parse(e) : Ft.parse(e),
351
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? B.transform(e) : Bt.transform(e),
353
352
  getAnimatableNone: (e) => {
354
353
  let t = W.parse(e);
355
354
  return t.alpha = 0, W.transform(t);
356
355
  }
357
- }, Ht = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
356
+ }, Vt = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
358
357
  //#endregion
359
358
  //#region ../../node_modules/motion-dom/dist/es/value/types/complex/index.mjs
360
- function Ut(e) {
361
- return isNaN(e) && typeof e == "string" && (e.match(Ot)?.length || 0) + (e.match(Ht)?.length || 0) > 0;
359
+ function Ht(e) {
360
+ return isNaN(e) && typeof e == "string" && (e.match(Dt)?.length || 0) + (e.match(Vt)?.length || 0) > 0;
362
361
  }
363
- var Wt = "number", Gt = "color", Kt = "var", qt = "var(", Jt = "${}", Yt = /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;
364
- function Xt(e) {
362
+ var Ut = "number", Wt = "color", Gt = "var", Kt = "var(", qt = "${}", Jt = /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;
363
+ function Yt(e) {
365
364
  let t = e.toString(), n = [], r = {
366
365
  color: [],
367
366
  number: [],
@@ -369,51 +368,51 @@ function Xt(e) {
369
368
  }, i = [], a = 0;
370
369
  return {
371
370
  values: n,
372
- split: t.replace(Yt, (e) => (W.test(e) ? (r.color.push(a), i.push(Gt), n.push(W.parse(e))) : e.startsWith(qt) ? (r.var.push(a), i.push(Kt), n.push(e)) : (r.number.push(a), i.push(Wt), n.push(parseFloat(e))), ++a, Jt)).split(Jt),
371
+ split: t.replace(Jt, (e) => (W.test(e) ? (r.color.push(a), i.push(Wt), n.push(W.parse(e))) : e.startsWith(Kt) ? (r.var.push(a), i.push(Gt), n.push(e)) : (r.number.push(a), i.push(Ut), n.push(parseFloat(e))), ++a, qt)).split(qt),
373
372
  indexes: r,
374
373
  types: i
375
374
  };
376
375
  }
377
- function Zt(e) {
378
- return Xt(e).values;
376
+ function Xt(e) {
377
+ return Yt(e).values;
379
378
  }
380
- function Qt({ split: e, types: t }) {
379
+ function Zt({ split: e, types: t }) {
381
380
  let n = e.length;
382
381
  return (r) => {
383
382
  let i = "";
384
383
  for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
385
384
  let e = t[a];
386
- e === Wt ? i += Dt(r[a]) : e === Gt ? i += W.transform(r[a]) : i += r[a];
385
+ e === Ut ? i += Et(r[a]) : e === Wt ? i += W.transform(r[a]) : i += r[a];
387
386
  }
388
387
  return i;
389
388
  };
390
389
  }
391
- function $t(e) {
392
- return Qt(Xt(e));
390
+ function Qt(e) {
391
+ return Zt(Yt(e));
393
392
  }
394
- var en = (e) => typeof e == "number" ? 0 : W.test(e) ? W.getAnimatableNone(e) : e, tn = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : en(e);
395
- function nn(e) {
396
- let t = Xt(e);
397
- return Qt(t)(t.values.map((e, n) => tn(e, t.split[n])));
393
+ var $t = (e) => typeof e == "number" ? 0 : W.test(e) ? W.getAnimatableNone(e) : e, en = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : $t(e);
394
+ function tn(e) {
395
+ let t = Yt(e);
396
+ return Zt(t)(t.values.map((e, n) => en(e, t.split[n])));
398
397
  }
399
398
  var G = {
400
- test: Ut,
401
- parse: Zt,
402
- createTransformer: $t,
403
- getAnimatableNone: nn
399
+ test: Ht,
400
+ parse: Xt,
401
+ createTransformer: Qt,
402
+ getAnimatableNone: tn
404
403
  };
405
404
  //#endregion
406
405
  //#region ../../node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
407
- function rn(e, t, n) {
406
+ function nn(e, t, n) {
408
407
  return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
409
408
  }
410
- function an({ hue: e, saturation: t, lightness: n, alpha: r }) {
409
+ function rn({ hue: e, saturation: t, lightness: n, alpha: r }) {
411
410
  e /= 360, t /= 100, n /= 100;
412
411
  let i = 0, a = 0, o = 0;
413
412
  if (!t) i = a = o = n;
414
413
  else {
415
414
  let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
416
- i = rn(s, r, e + 1 / 3), a = rn(s, r, e), o = rn(s, r, e - 1 / 3);
415
+ i = nn(s, r, e + 1 / 3), a = nn(s, r, e), o = nn(s, r, e - 1 / 3);
417
416
  }
418
417
  return {
419
418
  red: Math.round(i * 255),
@@ -424,61 +423,61 @@ function an({ hue: e, saturation: t, lightness: n, alpha: r }) {
424
423
  }
425
424
  //#endregion
426
425
  //#region ../../node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
427
- function on(e, t) {
426
+ function an(e, t) {
428
427
  return (n) => n > 0 ? t : e;
429
428
  }
430
429
  //#endregion
431
430
  //#region ../../node_modules/motion-dom/dist/es/utils/mix/number.mjs
432
- var sn = (e, t, n) => e + (t - e) * n, cn = (e, t, n) => {
431
+ var on = (e, t, n) => e + (t - e) * n, sn = (e, t, n) => {
433
432
  let r = e * e, i = n * (t * t - r) + r;
434
433
  return i < 0 ? 0 : Math.sqrt(i);
435
- }, ln = [
436
- It,
434
+ }, cn = [
435
+ Ft,
437
436
  B,
438
- Vt
439
- ], un = (e) => ln.find((t) => t.test(e));
440
- function dn(e) {
441
- let t = un(e);
442
- if (De(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t) return !1;
437
+ Bt
438
+ ], ln = (e) => cn.find((t) => t.test(e));
439
+ function un(e) {
440
+ let t = ln(e);
441
+ if (Te(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t) return !1;
443
442
  let n = t.parse(e);
444
- return t === Vt && (n = an(n)), n;
443
+ return t === Bt && (n = rn(n)), n;
445
444
  }
446
- var fn = (e, t) => {
447
- let n = dn(e), r = dn(t);
448
- if (!n || !r) return on(e, t);
445
+ var dn = (e, t) => {
446
+ let n = un(e), r = un(t);
447
+ if (!n || !r) return an(e, t);
449
448
  let i = { ...n };
450
- return (e) => (i.red = cn(n.red, r.red, e), i.green = cn(n.green, r.green, e), i.blue = cn(n.blue, r.blue, e), i.alpha = sn(n.alpha, r.alpha, e), B.transform(i));
451
- }, pn = new Set(["none", "hidden"]);
452
- function mn(e, t) {
453
- return pn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
449
+ return (e) => (i.red = sn(n.red, r.red, e), i.green = sn(n.green, r.green, e), i.blue = sn(n.blue, r.blue, e), i.alpha = on(n.alpha, r.alpha, e), B.transform(i));
450
+ }, fn = new Set(["none", "hidden"]);
451
+ function pn(e, t) {
452
+ return fn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
454
453
  }
455
454
  //#endregion
456
455
  //#region ../../node_modules/motion-dom/dist/es/utils/mix/complex.mjs
457
- function hn(e, t) {
458
- return (n) => sn(e, t, n);
456
+ function mn(e, t) {
457
+ return (n) => on(e, t, n);
459
458
  }
460
- function gn(e) {
461
- return typeof e == "number" ? hn : typeof e == "string" ? xt(e) ? on : W.test(e) ? fn : bn : Array.isArray(e) ? _n : typeof e == "object" ? W.test(e) ? fn : vn : on;
459
+ function hn(e) {
460
+ return typeof e == "number" ? mn : typeof e == "string" ? bt(e) ? an : W.test(e) ? dn : yn : Array.isArray(e) ? gn : typeof e == "object" ? W.test(e) ? dn : _n : an;
462
461
  }
463
- function _n(e, t) {
464
- let n = [...e], r = n.length, i = e.map((e, n) => gn(e)(e, t[n]));
462
+ function gn(e, t) {
463
+ let n = [...e], r = n.length, i = e.map((e, n) => hn(e)(e, t[n]));
465
464
  return (e) => {
466
465
  for (let t = 0; t < r; t++) n[t] = i[t](e);
467
466
  return n;
468
467
  };
469
468
  }
470
- function vn(e, t) {
469
+ function _n(e, t) {
471
470
  let n = {
472
471
  ...e,
473
472
  ...t
474
473
  }, r = {};
475
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = gn(e[i])(e[i], t[i]));
474
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = hn(e[i])(e[i], t[i]));
476
475
  return (e) => {
477
476
  for (let t in r) n[t] = r[t](e);
478
477
  return n;
479
478
  };
480
479
  }
481
- function yn(e, t) {
480
+ function vn(e, t) {
482
481
  let n = [], r = {
483
482
  color: 0,
484
483
  var: 0,
@@ -490,41 +489,41 @@ function yn(e, t) {
490
489
  }
491
490
  return n;
492
491
  }
493
- var bn = (e, t) => {
494
- let n = G.createTransformer(t), r = Xt(e), i = Xt(t);
495
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? pn.has(e) && !i.values.length || pn.has(t) && !r.values.length ? mn(e, t) : Ne(_n(yn(r, i), i.values), n) : (De(!0, `Complex values '${e}' and '${t}' 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.`, "complex-values-different"), on(e, t));
492
+ var yn = (e, t) => {
493
+ let n = G.createTransformer(t), r = Yt(e), i = Yt(t);
494
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? fn.has(e) && !i.values.length || fn.has(t) && !r.values.length ? pn(e, t) : Me(gn(vn(r, i), i.values), n) : (Te(!0, `Complex values '${e}' and '${t}' 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.`, "complex-values-different"), an(e, t));
496
495
  };
497
496
  //#endregion
498
497
  //#region ../../node_modules/motion-dom/dist/es/utils/mix/index.mjs
499
- function xn(e, t, n) {
500
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? sn(e, t, n) : gn(e)(e, t);
498
+ function bn(e, t, n) {
499
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? on(e, t, n) : hn(e)(e, t);
501
500
  }
502
501
  //#endregion
503
502
  //#region ../../node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
504
- var Sn = (e) => {
503
+ var xn = (e) => {
505
504
  let t = ({ timestamp: t }) => e(t);
506
505
  return {
507
506
  start: (e = !0) => R.update(t, e),
508
- stop: () => ft(t),
509
- now: () => pt.isProcessing ? pt.timestamp : z.now()
507
+ stop: () => dt(t),
508
+ now: () => ft.isProcessing ? ft.timestamp : z.now()
510
509
  };
511
- }, Cn = (e, t, n = 10) => {
510
+ }, Sn = (e, t, n = 10) => {
512
511
  let r = "", i = Math.max(Math.round(t / n), 2);
513
512
  for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
514
513
  return `linear(${r.substring(0, r.length - 2)})`;
515
- }, wn = 2e4;
516
- function Tn(e) {
514
+ }, Cn = 2e4;
515
+ function wn(e) {
517
516
  let t = 0, n = e.next(t);
518
517
  for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
519
518
  return t >= 2e4 ? Infinity : t;
520
519
  }
521
520
  //#endregion
522
521
  //#region ../../node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
523
- function En(e, t = 100, n) {
522
+ function Tn(e, t = 100, n) {
524
523
  let r = n({
525
524
  ...e,
526
525
  keyframes: [0, t]
527
- }), i = Math.min(Tn(r), wn);
526
+ }), i = Math.min(wn(r), Cn);
528
527
  return {
529
528
  type: "keyframes",
530
529
  ease: (e) => r.next(i * e).value / t,
@@ -554,31 +553,31 @@ var K = {
554
553
  minDamping: .05,
555
554
  maxDamping: 1
556
555
  };
557
- function Dn(e, t) {
556
+ function En(e, t) {
558
557
  return e * Math.sqrt(1 - t * t);
559
558
  }
560
- var On = 12;
561
- function kn(e, t, n) {
559
+ var Dn = 12;
560
+ function On(e, t, n) {
562
561
  let r = n;
563
- for (let n = 1; n < On; n++) r -= e(r) / t(r);
562
+ for (let n = 1; n < Dn; n++) r -= e(r) / t(r);
564
563
  return r;
565
564
  }
566
- var An = .001;
567
- function jn({ duration: e = K.duration, bounce: t = K.bounce, velocity: n = K.velocity, mass: r = K.mass }) {
565
+ var kn = .001;
566
+ function An({ duration: e = K.duration, bounce: t = K.bounce, velocity: n = K.velocity, mass: r = K.mass }) {
568
567
  let i, a;
569
- De(e <= /* @__PURE__ */ I(K.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
568
+ Te(e <= /* @__PURE__ */ I(K.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
570
569
  let o = 1 - t;
571
- o = M(K.minDamping, K.maxDamping, o), e = M(K.minDuration, K.maxDuration, /* @__PURE__ */ L(e)), o < 1 ? (i = (t) => {
572
- let r = t * o, i = r * e, a = r - n, s = Dn(t, o), c = Math.exp(-i);
573
- return An - a / s * c;
570
+ o = N(K.minDamping, K.maxDamping, o), e = N(K.minDuration, K.maxDuration, /* @__PURE__ */ L(e)), o < 1 ? (i = (t) => {
571
+ let r = t * o, i = r * e, a = r - n, s = En(t, o), c = Math.exp(-i);
572
+ return kn - a / s * c;
574
573
  }, a = (t) => {
575
- let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Dn(t ** 2, o);
576
- return (-i(t) + An > 0 ? -1 : 1) * ((a - s) * c) / l;
574
+ let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = En(t ** 2, o);
575
+ return (-i(t) + kn > 0 ? -1 : 1) * ((a - s) * c) / l;
577
576
  }) : (i = (t) => {
578
577
  let r = Math.exp(-t * e), i = (t - n) * e + 1;
579
- return -An + r * i;
578
+ return -kn + r * i;
580
579
  }, a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
581
- let s = 5 / e, c = kn(i, a, s);
580
+ let s = 5 / e, c = On(i, a, s);
582
581
  if (e = /* @__PURE__ */ I(e), isNaN(c)) return {
583
582
  stiffness: K.stiffness,
584
583
  damping: K.damping,
@@ -593,15 +592,15 @@ function jn({ duration: e = K.duration, bounce: t = K.bounce, velocity: n = K.ve
593
592
  };
594
593
  }
595
594
  }
596
- var Mn = ["duration", "bounce"], Nn = [
595
+ var jn = ["duration", "bounce"], Mn = [
597
596
  "stiffness",
598
597
  "damping",
599
598
  "mass"
600
599
  ];
601
- function Pn(e, t) {
600
+ function Nn(e, t) {
602
601
  return t.some((t) => e[t] !== void 0);
603
602
  }
604
- function Fn(e) {
603
+ function Pn(e) {
605
604
  let t = {
606
605
  velocity: K.velocity,
607
606
  stiffness: K.stiffness,
@@ -610,8 +609,8 @@ function Fn(e) {
610
609
  isResolvedFromDuration: !1,
611
610
  ...e
612
611
  };
613
- if (!Pn(e, Nn) && Pn(e, Mn)) if (t.velocity = 0, e.visualDuration) {
614
- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * M(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
612
+ if (!Nn(e, Mn) && Nn(e, jn)) if (t.velocity = 0, e.visualDuration) {
613
+ let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * N(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
615
614
  t = {
616
615
  ...t,
617
616
  mass: K.mass,
@@ -619,7 +618,7 @@ function Fn(e) {
619
618
  damping: a
620
619
  };
621
620
  } else {
622
- let n = jn({
621
+ let n = An({
623
622
  ...e,
624
623
  velocity: 0
625
624
  });
@@ -631,7 +630,7 @@ function Fn(e) {
631
630
  }
632
631
  return t;
633
632
  }
634
- function In(e = K.visualDuration, t = K.bounce) {
633
+ function Fn(e = K.visualDuration, t = K.bounce) {
635
634
  let n = typeof e == "object" ? e : {
636
635
  visualDuration: e,
637
636
  keyframes: [0, 1],
@@ -639,13 +638,13 @@ function In(e = K.visualDuration, t = K.bounce) {
639
638
  }, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
640
639
  done: !1,
641
640
  value: a
642
- }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = Fn({
641
+ }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = Pn({
643
642
  ...n,
644
643
  velocity: -/* @__PURE__ */ L(n.velocity || 0)
645
644
  }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ L(Math.sqrt(c / u)), v = Math.abs(g) < 5;
646
645
  r ||= v ? K.restSpeed.granular : K.restSpeed.default, i ||= v ? K.restDelta.granular : K.restDelta.default;
647
646
  let y, b, x, S, C, w;
648
- if (h < 1) x = Dn(_, h), S = (m + h * _ * g) / x, y = (e) => o - Math.exp(-h * _ * e) * (S * Math.sin(x * e) + g * Math.cos(x * e)), C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
647
+ if (h < 1) x = En(_, h), S = (m + h * _ * g) / x, y = (e) => o - Math.exp(-h * _ * e) * (S * Math.sin(x * e) + g * Math.cos(x * e)), C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
649
648
  else if (h === 1) {
650
649
  y = (e) => o - Math.exp(-_ * e) * (g + (m + _ * g) * e);
651
650
  let e = m + _ * g;
@@ -662,7 +661,7 @@ function In(e = K.visualDuration, t = K.bounce) {
662
661
  return i * (n * Math.sinh(a) + r * Math.cosh(a));
663
662
  };
664
663
  }
665
- let ee = {
664
+ let T = {
666
665
  calculatedDuration: p && d || null,
667
666
  velocity: (e) => /* @__PURE__ */ I(b(e)),
668
667
  next: (e) => {
@@ -679,27 +678,27 @@ function In(e = K.visualDuration, t = K.bounce) {
679
678
  return s.value = s.done ? o : t, s;
680
679
  },
681
680
  toString: () => {
682
- let e = Math.min(Tn(ee), wn), t = Cn((t) => ee.next(e * t).value, e, 30);
681
+ let e = Math.min(wn(T), Cn), t = Sn((t) => T.next(e * t).value, e, 30);
683
682
  return e + "ms " + t;
684
683
  },
685
684
  toTransition: () => {}
686
685
  };
687
- return ee;
686
+ return T;
688
687
  }
689
- In.applyToOptions = (e) => {
690
- let t = En(e, 100, In);
688
+ Fn.applyToOptions = (e) => {
689
+ let t = Tn(e, 100, Fn);
691
690
  return e.ease = t.ease, e.duration = /* @__PURE__ */ I(t.duration), e.type = "keyframes", e;
692
691
  };
693
692
  //#endregion
694
693
  //#region ../../node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
695
- var Ln = 5;
696
- function Rn(e, t, n) {
697
- let r = Math.max(t - Ln, 0);
698
- return Ie(n - e(r), t - r);
694
+ var In = 5;
695
+ function Ln(e, t, n) {
696
+ let r = Math.max(t - In, 0);
697
+ return Fe(n - e(r), t - r);
699
698
  }
700
699
  //#endregion
701
700
  //#region ../../node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
702
- function zn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
701
+ function Rn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
703
702
  let d = e[0], f = {
704
703
  done: !1,
705
704
  value: d
@@ -709,9 +708,9 @@ function zn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
709
708
  let t = v(e), n = y(e);
710
709
  f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
711
710
  }, x, S, C = (e) => {
712
- p(f.value) && (x = e, S = In({
711
+ p(f.value) && (x = e, S = Fn({
713
712
  keyframes: [f.value, m(f.value)],
714
- velocity: Rn(y, e, f.value),
713
+ velocity: Ln(y, e, f.value),
715
714
  damping: i,
716
715
  stiffness: a,
717
716
  restDelta: l,
@@ -728,59 +727,59 @@ function zn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
728
727
  }
729
728
  //#endregion
730
729
  //#region ../../node_modules/motion-dom/dist/es/utils/interpolate.mjs
731
- function Bn(e, t, n) {
732
- let r = [], i = n || P.mix || xn, a = e.length - 1;
730
+ function zn(e, t, n) {
731
+ let r = [], i = n || F.mix || bn, a = e.length - 1;
733
732
  for (let n = 0; n < a; n++) {
734
733
  let a = i(e[n], e[n + 1]);
735
- t && (a = Ne(Array.isArray(t) ? t[n] || F : t, a)), r.push(a);
734
+ t && (a = Me(Array.isArray(t) ? t[n] || Ae : t, a)), r.push(a);
736
735
  }
737
736
  return r;
738
737
  }
739
- function Vn(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
738
+ function Bn(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
740
739
  let a = e.length;
741
- if (N(a === t.length, "Both input and output ranges must be the same length", "range-length"), a === 1) return () => t[0];
740
+ if (P(a === t.length, "Both input and output ranges must be the same length", "range-length"), a === 1) return () => t[0];
742
741
  if (a === 2 && t[0] === t[1]) return () => t[1];
743
742
  let o = e[0] === e[1];
744
743
  e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
745
- let s = Bn(t, r, i), c = s.length, l = (n) => {
744
+ let s = zn(t, r, i), c = s.length, l = (n) => {
746
745
  if (o && n < e[0]) return t[0];
747
746
  let r = 0;
748
747
  if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
749
- let i = /* @__PURE__ */ Pe(e[r], e[r + 1], n);
748
+ let i = /* @__PURE__ */ Ne(e[r], e[r + 1], n);
750
749
  return s[r](i);
751
750
  };
752
- return n ? (t) => l(M(e[0], e[a - 1], t)) : l;
751
+ return n ? (t) => l(N(e[0], e[a - 1], t)) : l;
753
752
  }
754
753
  //#endregion
755
754
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
756
- function Hn(e, t) {
755
+ function Vn(e, t) {
757
756
  let n = e[e.length - 1];
758
757
  for (let r = 1; r <= t; r++) {
759
- let i = /* @__PURE__ */ Pe(0, t, r);
760
- e.push(sn(n, 1, i));
758
+ let i = /* @__PURE__ */ Ne(0, t, r);
759
+ e.push(on(n, 1, i));
761
760
  }
762
761
  }
763
762
  //#endregion
764
763
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
765
- function Un(e) {
764
+ function Hn(e) {
766
765
  let t = [0];
767
- return Hn(t, e.length - 1), t;
766
+ return Vn(t, e.length - 1), t;
768
767
  }
769
768
  //#endregion
770
769
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
771
- function Wn(e, t) {
770
+ function Un(e, t) {
772
771
  return e.map((e) => e * t);
773
772
  }
774
773
  //#endregion
775
774
  //#region ../../node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
776
- function Gn(e, t) {
777
- return e.map(() => t || tt).splice(0, e.length - 1);
775
+ function Wn(e, t) {
776
+ return e.map(() => t || et).splice(0, e.length - 1);
778
777
  }
779
- function Kn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
780
- let i = nt(r) ? r.map(ot) : ot(r), a = {
778
+ function Gn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
779
+ let i = tt(r) ? r.map(at) : at(r), a = {
781
780
  done: !1,
782
781
  value: t[0]
783
- }, o = Vn(Wn(n && n.length === t.length ? n : Un(t), e), t, { ease: Array.isArray(i) ? i : Gn(t, i) });
782
+ }, o = Bn(Un(n && n.length === t.length ? n : Hn(t), e), t, { ease: Array.isArray(i) ? i : Wn(t, i) });
784
783
  return {
785
784
  calculatedDuration: e,
786
785
  next: (t) => (a.value = o(t), a.done = t >= e, a)
@@ -788,26 +787,26 @@ function Kn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
788
787
  }
789
788
  //#endregion
790
789
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
791
- var qn = (e) => e !== null;
792
- function Jn(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
793
- let a = e.filter(qn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
790
+ var Kn = (e) => e !== null;
791
+ function qn(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
792
+ let a = e.filter(Kn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
794
793
  return !o || r === void 0 ? a[o] : r;
795
794
  }
796
795
  //#endregion
797
796
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
798
- var Yn = {
799
- decay: zn,
800
- inertia: zn,
801
- tween: Kn,
802
- keyframes: Kn,
803
- spring: In
797
+ var Jn = {
798
+ decay: Rn,
799
+ inertia: Rn,
800
+ tween: Gn,
801
+ keyframes: Gn,
802
+ spring: Fn
804
803
  };
805
- function Xn(e) {
806
- typeof e.type == "string" && (e.type = Yn[e.type]);
804
+ function Yn(e) {
805
+ typeof e.type == "string" && (e.type = Jn[e.type]);
807
806
  }
808
807
  //#endregion
809
808
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
810
- var Zn = class {
809
+ var Xn = class {
811
810
  constructor() {
812
811
  this.updateFinished();
813
812
  }
@@ -825,7 +824,7 @@ var Zn = class {
825
824
  then(e, t) {
826
825
  return this.finished.then(e, t);
827
826
  }
828
- }, Qn = (e) => e / 100, $n = class extends Zn {
827
+ }, Zn = (e) => e / 100, Qn = class extends Xn {
829
828
  constructor(e) {
830
829
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
831
830
  done: !1,
@@ -833,13 +832,13 @@ var Zn = class {
833
832
  }, this.stop = () => {
834
833
  let { motionValue: e } = this.options;
835
834
  e && e.updatedAt !== z.now() && this.tick(z.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
836
- }, _t.mainThread++, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
835
+ }, gt.mainThread++, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
837
836
  }
838
837
  initAnimation() {
839
838
  let { options: e } = this;
840
- Xn(e);
841
- let { type: t = Kn, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Kn;
842
- process.env.NODE_ENV !== "production" && s !== Kn && N(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), s !== Kn && typeof o[0] != "number" && (this.mixKeyframes = Ne(Qn, xn(o[0], o[1])), o = [0, 100]);
839
+ Yn(e);
840
+ let { type: t = Gn, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Gn;
841
+ process.env.NODE_ENV !== "production" && s !== Gn && P(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), s !== Gn && typeof o[0] != "number" && (this.mixKeyframes = Me(Zn, bn(o[0], o[1])), o = [0, 100]);
843
842
  let c = s({
844
843
  ...e,
845
844
  keyframes: o
@@ -848,7 +847,7 @@ var Zn = class {
848
847
  ...e,
849
848
  keyframes: [...o].reverse(),
850
849
  velocity: -a
851
- })), c.calculatedDuration === null && (c.calculatedDuration = Tn(c));
850
+ })), c.calculatedDuration === null && (c.calculatedDuration = wn(c));
852
851
  let { calculatedDuration: l } = c;
853
852
  this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
854
853
  }
@@ -866,14 +865,14 @@ var Zn = class {
866
865
  let v = this.currentTime, y = n;
867
866
  if (u) {
868
867
  let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
869
- !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = M(0, 1, n) * o;
868
+ !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = N(0, 1, n) * o;
870
869
  }
871
870
  let b;
872
871
  _ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
873
872
  let { done: x } = b;
874
873
  !_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
875
874
  let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
876
- return S && p !== zn && (b.value = Jn(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
875
+ return S && p !== Rn && (b.value = qn(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
877
876
  }
878
877
  then(e, t) {
879
878
  return this.finished.then(e, t);
@@ -896,7 +895,7 @@ var Zn = class {
896
895
  if (e <= 0) return this.options.velocity || 0;
897
896
  if (this.generator.velocity) return this.generator.velocity(e);
898
897
  let t = this.generator.next(e).value;
899
- return Rn((e) => this.generator.next(e).value, e, t);
898
+ return Ln((e) => this.generator.next(e).value, e, t);
900
899
  }
901
900
  get speed() {
902
901
  return this.playbackSpeed;
@@ -907,7 +906,7 @@ var Zn = class {
907
906
  }
908
907
  play() {
909
908
  if (this.isStopped) return;
910
- let { driver: e = Sn, startTime: t } = this.options;
909
+ let { driver: e = xn, startTime: t } = this.options;
911
910
  this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
912
911
  let n = this.driver.now();
913
912
  this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -925,7 +924,7 @@ var Zn = class {
925
924
  this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
926
925
  }
927
926
  teardown() {
928
- this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null, _t.mainThread--;
927
+ this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null, gt.mainThread--;
929
928
  }
930
929
  stopDriver() {
931
930
  this.driver &&= (this.driver.stop(), void 0);
@@ -939,12 +938,12 @@ var Zn = class {
939
938
  };
940
939
  //#endregion
941
940
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
942
- function er(e) {
941
+ function $n(e) {
943
942
  for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
944
943
  }
945
944
  //#endregion
946
945
  //#region ../../node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
947
- var q = (e) => e * 180 / Math.PI, tr = (e) => rr(q(Math.atan2(e[1], e[0]))), nr = {
946
+ var q = (e) => e * 180 / Math.PI, er = (e) => nr(q(Math.atan2(e[1], e[0]))), tr = {
948
947
  x: 4,
949
948
  y: 5,
950
949
  translateX: 4,
@@ -952,54 +951,54 @@ var q = (e) => e * 180 / Math.PI, tr = (e) => rr(q(Math.atan2(e[1], e[0]))), nr
952
951
  scaleX: 0,
953
952
  scaleY: 3,
954
953
  scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
955
- rotate: tr,
956
- rotateZ: tr,
954
+ rotate: er,
955
+ rotateZ: er,
957
956
  skewX: (e) => q(Math.atan(e[1])),
958
957
  skewY: (e) => q(Math.atan(e[2])),
959
958
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
960
- }, rr = (e) => (e %= 360, e < 0 && (e += 360), e), ir = tr, ar = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), or = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), sr = {
959
+ }, nr = (e) => (e %= 360, e < 0 && (e += 360), e), rr = er, ir = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), ar = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), or = {
961
960
  x: 12,
962
961
  y: 13,
963
962
  z: 14,
964
963
  translateX: 12,
965
964
  translateY: 13,
966
965
  translateZ: 14,
967
- scaleX: ar,
968
- scaleY: or,
969
- scale: (e) => (ar(e) + or(e)) / 2,
970
- rotateX: (e) => rr(q(Math.atan2(e[6], e[5]))),
971
- rotateY: (e) => rr(q(Math.atan2(-e[2], e[0]))),
972
- rotateZ: ir,
973
- rotate: ir,
966
+ scaleX: ir,
967
+ scaleY: ar,
968
+ scale: (e) => (ir(e) + ar(e)) / 2,
969
+ rotateX: (e) => nr(q(Math.atan2(e[6], e[5]))),
970
+ rotateY: (e) => nr(q(Math.atan2(-e[2], e[0]))),
971
+ rotateZ: rr,
972
+ rotate: rr,
974
973
  skewX: (e) => q(Math.atan(e[4])),
975
974
  skewY: (e) => q(Math.atan(e[1])),
976
975
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
977
976
  };
978
- function cr(e) {
977
+ function sr(e) {
979
978
  return +!!e.includes("scale");
980
979
  }
981
- function lr(e, t) {
982
- if (!e || e === "none") return cr(t);
980
+ function cr(e, t) {
981
+ if (!e || e === "none") return sr(t);
983
982
  let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
984
- if (n) r = sr, i = n;
983
+ if (n) r = or, i = n;
985
984
  else {
986
985
  let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
987
- r = nr, i = t;
986
+ r = tr, i = t;
988
987
  }
989
- if (!i) return cr(t);
990
- let a = r[t], o = i[1].split(",").map(dr);
988
+ if (!i) return sr(t);
989
+ let a = r[t], o = i[1].split(",").map(ur);
991
990
  return typeof a == "function" ? a(o) : o[a];
992
991
  }
993
- var ur = (e, t) => {
992
+ var lr = (e, t) => {
994
993
  let { transform: n = "none" } = getComputedStyle(e);
995
- return lr(n, t);
994
+ return cr(n, t);
996
995
  };
997
- function dr(e) {
996
+ function ur(e) {
998
997
  return parseFloat(e.trim());
999
998
  }
1000
999
  //#endregion
1001
1000
  //#region ../../node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
1002
- var fr = [
1001
+ var dr = [
1003
1002
  "transformPerspective",
1004
1003
  "x",
1005
1004
  "y",
@@ -1017,14 +1016,14 @@ var fr = [
1017
1016
  "skew",
1018
1017
  "skewX",
1019
1018
  "skewY"
1020
- ], pr = new Set(fr), mr = (e) => e === wt || e === U, hr = new Set([
1019
+ ], fr = new Set(dr), pr = (e) => e === Ct || e === U, mr = new Set([
1021
1020
  "x",
1022
1021
  "y",
1023
1022
  "z"
1024
- ]), gr = fr.filter((e) => !hr.has(e));
1025
- function _r(e) {
1023
+ ]), hr = dr.filter((e) => !mr.has(e));
1024
+ function gr(e) {
1026
1025
  let t = [];
1027
- return gr.forEach((n) => {
1026
+ return hr.forEach((n) => {
1028
1027
  let r = e.getValue(n);
1029
1028
  r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
1030
1029
  }), t;
@@ -1042,18 +1041,18 @@ var J = {
1042
1041
  left: (e, { left: t }) => parseFloat(t),
1043
1042
  bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
1044
1043
  right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
1045
- x: (e, { transform: t }) => lr(t, "x"),
1046
- y: (e, { transform: t }) => lr(t, "y")
1044
+ x: (e, { transform: t }) => cr(t, "x"),
1045
+ y: (e, { transform: t }) => cr(t, "y")
1047
1046
  };
1048
1047
  J.translateX = J.x, J.translateY = J.y;
1049
1048
  //#endregion
1050
1049
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
1051
- var Y = /* @__PURE__ */ new Set(), vr = !1, yr = !1, br = !1;
1052
- function xr() {
1053
- if (yr) {
1050
+ var Y = /* @__PURE__ */ new Set(), _r = !1, vr = !1, yr = !1;
1051
+ function br() {
1052
+ if (vr) {
1054
1053
  let e = Array.from(Y).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
1055
1054
  t.forEach((e) => {
1056
- let t = _r(e);
1055
+ let t = gr(e);
1057
1056
  t.length && (n.set(e, t), e.render());
1058
1057
  }), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
1059
1058
  e.render();
@@ -1065,22 +1064,22 @@ function xr() {
1065
1064
  e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
1066
1065
  });
1067
1066
  }
1068
- yr = !1, vr = !1, Y.forEach((e) => e.complete(br)), Y.clear();
1067
+ vr = !1, _r = !1, Y.forEach((e) => e.complete(yr)), Y.clear();
1069
1068
  }
1070
- function Sr() {
1069
+ function xr() {
1071
1070
  Y.forEach((e) => {
1072
- e.readKeyframes(), e.needsMeasurement && (yr = !0);
1071
+ e.readKeyframes(), e.needsMeasurement && (vr = !0);
1073
1072
  });
1074
1073
  }
1075
- function Cr() {
1076
- br = !0, Sr(), xr(), br = !1;
1074
+ function Sr() {
1075
+ yr = !0, xr(), br(), yr = !1;
1077
1076
  }
1078
- var wr = class {
1077
+ var Cr = class {
1079
1078
  constructor(e, t, n, r, i, a = !1) {
1080
1079
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
1081
1080
  }
1082
1081
  scheduleResolve() {
1083
- this.state = "scheduled", this.isAsync ? (Y.add(this), vr || (vr = !0, R.read(Sr), R.resolveKeyframes(xr))) : (this.readKeyframes(), this.complete());
1082
+ this.state = "scheduled", this.isAsync ? (Y.add(this), _r || (_r = !0, R.read(xr), R.resolveKeyframes(br))) : (this.readKeyframes(), this.complete());
1084
1083
  }
1085
1084
  readKeyframes() {
1086
1085
  let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -1093,7 +1092,7 @@ var wr = class {
1093
1092
  }
1094
1093
  e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
1095
1094
  }
1096
- er(e);
1095
+ $n(e);
1097
1096
  }
1098
1097
  setFinalKeyframe() {}
1099
1098
  measureInitialState() {}
@@ -1108,55 +1107,55 @@ var wr = class {
1108
1107
  resume() {
1109
1108
  this.state === "pending" && this.scheduleResolve();
1110
1109
  }
1111
- }, Tr = (e) => e.startsWith("--");
1110
+ }, wr = (e) => e.startsWith("--");
1112
1111
  //#endregion
1113
1112
  //#region ../../node_modules/motion-dom/dist/es/render/dom/style-set.mjs
1114
- function Er(e, t, n) {
1115
- Tr(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1113
+ function Tr(e, t, n) {
1114
+ wr(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1116
1115
  }
1117
1116
  //#endregion
1118
1117
  //#region ../../node_modules/motion-dom/dist/es/utils/supports/flags.mjs
1119
- var Dr = {};
1118
+ var Er = {};
1120
1119
  //#endregion
1121
1120
  //#region ../../node_modules/motion-dom/dist/es/utils/supports/memo.mjs
1122
- function Or(e, t) {
1123
- let n = /* @__PURE__ */ je(e);
1124
- return () => Dr[t] ?? n();
1121
+ function Dr(e, t) {
1122
+ let n = /* @__PURE__ */ ke(e);
1123
+ return () => Er[t] ?? n();
1125
1124
  }
1126
1125
  //#endregion
1127
1126
  //#region ../../node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
1128
- var kr = /* @__PURE__ */ Or(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Ar = /* @__PURE__ */ Or(() => {
1127
+ var Or = /* @__PURE__ */ Dr(() => window.ScrollTimeline !== void 0, "scrollTimeline"), kr = /* @__PURE__ */ Dr(() => {
1129
1128
  try {
1130
1129
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1131
1130
  } catch {
1132
1131
  return !1;
1133
1132
  }
1134
1133
  return !0;
1135
- }, "linearEasing"), jr = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Mr = {
1134
+ }, "linearEasing"), Ar = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, jr = {
1136
1135
  linear: "linear",
1137
1136
  ease: "ease",
1138
1137
  easeIn: "ease-in",
1139
1138
  easeOut: "ease-out",
1140
1139
  easeInOut: "ease-in-out",
1141
- circIn: /* @__PURE__ */ jr([
1140
+ circIn: /* @__PURE__ */ Ar([
1142
1141
  0,
1143
1142
  .65,
1144
1143
  .55,
1145
1144
  1
1146
1145
  ]),
1147
- circOut: /* @__PURE__ */ jr([
1146
+ circOut: /* @__PURE__ */ Ar([
1148
1147
  .55,
1149
1148
  0,
1150
1149
  1,
1151
1150
  .45
1152
1151
  ]),
1153
- backIn: /* @__PURE__ */ jr([
1152
+ backIn: /* @__PURE__ */ Ar([
1154
1153
  .31,
1155
1154
  .01,
1156
1155
  .66,
1157
1156
  -.59
1158
1157
  ]),
1159
- backOut: /* @__PURE__ */ jr([
1158
+ backOut: /* @__PURE__ */ Ar([
1160
1159
  .33,
1161
1160
  1.53,
1162
1161
  .69,
@@ -1165,16 +1164,16 @@ var kr = /* @__PURE__ */ Or(() => window.ScrollTimeline !== void 0, "scrollTimel
1165
1164
  };
1166
1165
  //#endregion
1167
1166
  //#region ../../node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
1168
- function Nr(e, t) {
1169
- if (e) return typeof e == "function" ? Ar() ? Cn(e, t) : "ease-out" : rt(e) ? jr(e) : Array.isArray(e) ? e.map((e) => Nr(e, t) || Mr.easeOut) : Mr[e];
1167
+ function Mr(e, t) {
1168
+ if (e) return typeof e == "function" ? kr() ? Sn(e, t) : "ease-out" : nt(e) ? Ar(e) : Array.isArray(e) ? e.map((e) => Mr(e, t) || jr.easeOut) : jr[e];
1170
1169
  }
1171
1170
  //#endregion
1172
1171
  //#region ../../node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
1173
- function Pr(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
1172
+ function Nr(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
1174
1173
  let u = { [t]: n };
1175
1174
  c && (u.offset = c);
1176
- let d = Nr(s, i);
1177
- Array.isArray(d) && (u.easing = d), ct.value && _t.waapi++;
1175
+ let d = Mr(s, i);
1176
+ Array.isArray(d) && (u.easing = d), st.value && gt.waapi++;
1178
1177
  let f = {
1179
1178
  delay: r,
1180
1179
  duration: i,
@@ -1185,32 +1184,32 @@ function Pr(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp
1185
1184
  };
1186
1185
  l && (f.pseudoElement = l);
1187
1186
  let p = e.animate(u, f);
1188
- return ct.value && p.finished.finally(() => {
1189
- _t.waapi--;
1187
+ return st.value && p.finished.finally(() => {
1188
+ gt.waapi--;
1190
1189
  }), p;
1191
1190
  }
1192
1191
  //#endregion
1193
1192
  //#region ../../node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
1194
- function Fr(e) {
1193
+ function Pr(e) {
1195
1194
  return typeof e == "function" && "applyToOptions" in e;
1196
1195
  }
1197
1196
  //#endregion
1198
1197
  //#region ../../node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
1199
- function Ir({ type: e, ...t }) {
1200
- return Fr(e) && Ar() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
1198
+ function Fr({ type: e, ...t }) {
1199
+ return Pr(e) && kr() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
1201
1200
  }
1202
1201
  //#endregion
1203
1202
  //#region ../../node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
1204
- var Lr = class extends Zn {
1203
+ var Ir = class extends Xn {
1205
1204
  constructor(e) {
1206
1205
  if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
1207
1206
  let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
1208
- this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, N(typeof e.type != "string", "Mini animate() doesn't support \"type\" as a string.", "mini-spring");
1209
- let c = Ir(e);
1210
- this.animation = Pr(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1207
+ this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, P(typeof e.type != "string", "Mini animate() doesn't support \"type\" as a string.", "mini-spring");
1208
+ let c = Fr(e);
1209
+ this.animation = Nr(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1211
1210
  if (this.finishedTime = this.time, !i) {
1212
- let e = Jn(r, this.options, o, this.speed);
1213
- this.updateMotionValue && this.updateMotionValue(e), Er(t, n, e), this.animation.cancel();
1211
+ let e = qn(r, this.options, o, this.speed);
1212
+ this.updateMotionValue && this.updateMotionValue(e), Tr(t, n, e), this.animation.cancel();
1214
1213
  }
1215
1214
  s?.(), this.notifyFinished();
1216
1215
  };
@@ -1270,24 +1269,24 @@ var Lr = class extends Zn {
1270
1269
  this.manualStartTime = this.animation.startTime = e;
1271
1270
  }
1272
1271
  attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
1273
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && kr() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), F) : r(this);
1272
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Or() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), Ae) : r(this);
1274
1273
  }
1275
- }, Rr = {
1276
- anticipate: Ye,
1277
- backInOut: Je,
1278
- circInOut: Qe
1274
+ }, Lr = {
1275
+ anticipate: Je,
1276
+ backInOut: qe,
1277
+ circInOut: Ze
1279
1278
  };
1280
- function zr(e) {
1281
- return e in Rr;
1279
+ function Rr(e) {
1280
+ return e in Lr;
1282
1281
  }
1283
- function Br(e) {
1284
- typeof e.ease == "string" && zr(e.ease) && (e.ease = Rr[e.ease]);
1282
+ function zr(e) {
1283
+ typeof e.ease == "string" && Rr(e.ease) && (e.ease = Lr[e.ease]);
1285
1284
  }
1286
1285
  //#endregion
1287
1286
  //#region ../../node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
1288
- var Vr = 10, Hr = class extends Lr {
1287
+ var Br = 10, Vr = class extends Ir {
1289
1288
  constructor(e) {
1290
- Br(e), Xn(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
1289
+ zr(e), Yn(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
1291
1290
  }
1292
1291
  updateMotionValue(e) {
1293
1292
  let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
@@ -1296,47 +1295,47 @@ var Vr = 10, Hr = class extends Lr {
1296
1295
  t.set(e);
1297
1296
  return;
1298
1297
  }
1299
- let o = new $n({
1298
+ let o = new Qn({
1300
1299
  ...a,
1301
1300
  autoplay: !1
1302
- }), s = Math.max(Vr, z.now() - this.startTime), c = M(0, Vr, s - Vr), l = o.sample(s).value, { name: u } = this.options;
1303
- i && u && Er(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
1301
+ }), s = Math.max(Br, z.now() - this.startTime), c = N(0, Br, s - Br), l = o.sample(s).value, { name: u } = this.options;
1302
+ i && u && Tr(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
1304
1303
  }
1305
- }, Ur = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (G.test(e) || e === "0") && !e.startsWith("url("));
1304
+ }, Hr = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (G.test(e) || e === "0") && !e.startsWith("url("));
1306
1305
  //#endregion
1307
1306
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
1308
- function Wr(e) {
1307
+ function Ur(e) {
1309
1308
  let t = e[0];
1310
1309
  if (e.length === 1) return !0;
1311
1310
  for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
1312
1311
  }
1313
- function Gr(e, t, n, r) {
1312
+ function Wr(e, t, n, r) {
1314
1313
  let i = e[0];
1315
1314
  if (i === null) return !1;
1316
1315
  if (t === "display" || t === "visibility") return !0;
1317
- let a = e[e.length - 1], o = Ur(i, t), s = Ur(a, t);
1318
- return De(o === s, `You are trying to animate ${t} from "${i}" to "${a}". "${o ? a : i}" is not an animatable value.`, "value-not-animatable"), !o || !s ? !1 : Wr(e) || (n === "spring" || Fr(n)) && r;
1316
+ let a = e[e.length - 1], o = Hr(i, t), s = Hr(a, t);
1317
+ return Te(o === s, `You are trying to animate ${t} from "${i}" to "${a}". "${o ? a : i}" is not an animatable value.`, "value-not-animatable"), !o || !s ? !1 : Ur(e) || (n === "spring" || Pr(n)) && r;
1319
1318
  }
1320
1319
  //#endregion
1321
1320
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
1322
- function Kr(e) {
1321
+ function Gr(e) {
1323
1322
  e.duration = 0, e.type = "keyframes";
1324
1323
  }
1325
1324
  //#endregion
1326
1325
  //#region ../../node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
1327
- var qr = new Set([
1326
+ var Kr = new Set([
1328
1327
  "opacity",
1329
1328
  "clipPath",
1330
1329
  "filter",
1331
1330
  "transform"
1332
- ]), Jr = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
1333
- function Yr(e) {
1334
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Jr.test(e[t])) return !0;
1331
+ ]), qr = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
1332
+ function Jr(e) {
1333
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && qr.test(e[t])) return !0;
1335
1334
  return !1;
1336
1335
  }
1337
1336
  //#endregion
1338
1337
  //#region ../../node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
1339
- var Xr = new Set([
1338
+ var Yr = new Set([
1340
1339
  "color",
1341
1340
  "backgroundColor",
1342
1341
  "outlineColor",
@@ -1347,16 +1346,16 @@ var Xr = new Set([
1347
1346
  "borderRightColor",
1348
1347
  "borderBottomColor",
1349
1348
  "borderLeftColor"
1350
- ]), Zr = /* @__PURE__ */ je(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1351
- function Qr(e) {
1349
+ ]), Xr = /* @__PURE__ */ ke(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1350
+ function Zr(e) {
1352
1351
  let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
1353
1352
  if (!(t?.owner?.current instanceof HTMLElement)) return !1;
1354
1353
  let { onUpdate: c, transformTemplate: l } = t.owner.getProps();
1355
- return Zr() && n && (qr.has(n) || Xr.has(n) && Yr(s)) && (n !== "transform" || !l) && !c && !r && i !== "mirror" && a !== 0 && o !== "inertia";
1354
+ return Xr() && n && (Kr.has(n) || Yr.has(n) && Jr(s)) && (n !== "transform" || !l) && !c && !r && i !== "mirror" && a !== 0 && o !== "inertia";
1356
1355
  }
1357
1356
  //#endregion
1358
1357
  //#region ../../node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
1359
- var $r = 40, ei = class extends Zn {
1358
+ var Qr = 40, $r = class extends Xn {
1360
1359
  constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
1361
1360
  super(), this.stop = () => {
1362
1361
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1373,32 +1372,32 @@ var $r = 40, ei = class extends Zn {
1373
1372
  element: l,
1374
1373
  ...u
1375
1374
  };
1376
- this.keyframeResolver = new (l?.KeyframeResolver || wr)(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
1375
+ this.keyframeResolver = new (l?.KeyframeResolver || Cr)(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
1377
1376
  }
1378
1377
  onKeyframesResolved(e, t, n, r) {
1379
1378
  this.keyframeResolver = void 0;
1380
1379
  let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
1381
1380
  this.resolvedAt = z.now();
1382
1381
  let u = !0;
1383
- Gr(e, i, a, o) || (u = !1, (P.instantAnimations || !s) && l?.(Jn(e, n, t)), e[0] = e[e.length - 1], Kr(n), n.repeat = 0);
1382
+ Wr(e, i, a, o) || (u = !1, (F.instantAnimations || !s) && l?.(qn(e, n, t)), e[0] = e[e.length - 1], Gr(n), n.repeat = 0);
1384
1383
  let d = {
1385
- startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > $r ? this.resolvedAt : this.createdAt : void 0,
1384
+ startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Qr ? this.resolvedAt : this.createdAt : void 0,
1386
1385
  finalKeyframe: t,
1387
1386
  ...n,
1388
1387
  keyframes: e
1389
- }, f = u && !c && Qr(d), p = d.motionValue?.owner?.current, m;
1388
+ }, f = u && !c && Zr(d), p = d.motionValue?.owner?.current, m;
1390
1389
  if (f) try {
1391
- m = new Hr({
1390
+ m = new Vr({
1392
1391
  ...d,
1393
1392
  element: p
1394
1393
  });
1395
1394
  } catch {
1396
- m = new $n(d);
1395
+ m = new Qn(d);
1397
1396
  }
1398
- else m = new $n(d);
1397
+ else m = new Qn(d);
1399
1398
  m.finished.then(() => {
1400
1399
  this.notifyFinished();
1401
- }).catch(F), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
1400
+ }).catch(Ae), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
1402
1401
  }
1403
1402
  get finished() {
1404
1403
  return this._animation ? this.animation.finished : this._finished;
@@ -1407,7 +1406,7 @@ var $r = 40, ei = class extends Zn {
1407
1406
  return this.finished.finally(e).then(() => {});
1408
1407
  }
1409
1408
  get animation() {
1410
- return this._animation || (this.keyframeResolver?.resume(), Cr()), this._animation;
1409
+ return this._animation || (this.keyframeResolver?.resume(), Sr()), this._animation;
1411
1410
  }
1412
1411
  get duration() {
1413
1412
  return this.animation.duration;
@@ -1451,47 +1450,47 @@ var $r = 40, ei = class extends Zn {
1451
1450
  };
1452
1451
  //#endregion
1453
1452
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
1454
- function ti(e, t, n, r = 0, i = 1) {
1453
+ function ei(e, t, n, r = 0, i = 1) {
1455
1454
  let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
1456
1455
  return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
1457
1456
  }
1458
1457
  //#endregion
1459
1458
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs
1460
- var ni = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
1461
- function ri(e) {
1462
- let t = ni.exec(e);
1459
+ var ti = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
1460
+ function ni(e) {
1461
+ let t = ti.exec(e);
1463
1462
  if (!t) return [,];
1464
1463
  let [, n, r, i] = t;
1465
1464
  return [`--${n ?? r}`, i];
1466
1465
  }
1467
- var ii = 4;
1468
- function ai(e, t, n = 1) {
1469
- N(n <= ii, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1470
- let [r, i] = ri(e);
1466
+ var ri = 4;
1467
+ function ii(e, t, n = 1) {
1468
+ P(n <= ri, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1469
+ let [r, i] = ni(e);
1471
1470
  if (!r) return;
1472
1471
  let a = window.getComputedStyle(t).getPropertyValue(r);
1473
1472
  if (a) {
1474
1473
  let e = a.trim();
1475
- return Oe(e) ? parseFloat(e) : e;
1474
+ return Ee(e) ? parseFloat(e) : e;
1476
1475
  }
1477
- return xt(i) ? ai(i, t, n + 1) : i;
1476
+ return bt(i) ? ii(i, t, n + 1) : i;
1478
1477
  }
1479
1478
  //#endregion
1480
1479
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
1481
- var oi = {
1480
+ var ai = {
1482
1481
  type: "spring",
1483
1482
  stiffness: 500,
1484
1483
  damping: 25,
1485
1484
  restSpeed: 10
1486
- }, si = (e) => ({
1485
+ }, oi = (e) => ({
1487
1486
  type: "spring",
1488
1487
  stiffness: 550,
1489
1488
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
1490
1489
  restSpeed: 10
1491
- }), ci = {
1490
+ }), si = {
1492
1491
  type: "keyframes",
1493
1492
  duration: .8
1494
- }, li = {
1493
+ }, ci = {
1495
1494
  type: "keyframes",
1496
1495
  ease: [
1497
1496
  .25,
@@ -1500,10 +1499,10 @@ var oi = {
1500
1499
  1
1501
1500
  ],
1502
1501
  duration: .3
1503
- }, ui = (e, { keyframes: t }) => t.length > 2 ? ci : pr.has(e) ? e.startsWith("scale") ? si(t[1]) : oi : li;
1502
+ }, li = (e, { keyframes: t }) => t.length > 2 ? si : fr.has(e) ? e.startsWith("scale") ? oi(t[1]) : ai : ci;
1504
1503
  //#endregion
1505
1504
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
1506
- function di(e, t) {
1505
+ function ui(e, t) {
1507
1506
  if (e?.inherit && t) {
1508
1507
  let { inherit: n, ...r } = e;
1509
1508
  return {
@@ -1515,13 +1514,13 @@ function di(e, t) {
1515
1514
  }
1516
1515
  //#endregion
1517
1516
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
1518
- function fi(e, t) {
1517
+ function di(e, t) {
1519
1518
  let n = e?.[t] ?? e?.default ?? e;
1520
- return n === e ? n : di(n, e);
1519
+ return n === e ? n : ui(n, e);
1521
1520
  }
1522
1521
  //#endregion
1523
1522
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs
1524
- var pi = new Set([
1523
+ var fi = new Set([
1525
1524
  "when",
1526
1525
  "delay",
1527
1526
  "delayChildren",
@@ -1533,14 +1532,14 @@ var pi = new Set([
1533
1532
  "from",
1534
1533
  "elapsed"
1535
1534
  ]);
1536
- function mi(e) {
1537
- for (let t in e) if (!pi.has(t)) return !0;
1535
+ function pi(e) {
1536
+ for (let t in e) if (!fi.has(t)) return !0;
1538
1537
  return !1;
1539
1538
  }
1540
1539
  //#endregion
1541
1540
  //#region ../../node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
1542
- var hi = (e, t, n, r = {}, i, a) => (o) => {
1543
- let s = fi(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
1541
+ var mi = (e, t, n, r = {}, i, a) => (o) => {
1542
+ let s = di(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
1544
1543
  l -= /* @__PURE__ */ I(c);
1545
1544
  let u = {
1546
1545
  keyframes: Array.isArray(n) ? n : [null, n],
@@ -1558,10 +1557,10 @@ var hi = (e, t, n, r = {}, i, a) => (o) => {
1558
1557
  motionValue: t,
1559
1558
  element: a ? void 0 : i
1560
1559
  };
1561
- mi(s) || Object.assign(u, ui(e, u)), u.duration &&= /* @__PURE__ */ I(u.duration), u.repeatDelay &&= /* @__PURE__ */ I(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
1560
+ pi(s) || Object.assign(u, li(e, u)), u.duration &&= /* @__PURE__ */ I(u.duration), u.repeatDelay &&= /* @__PURE__ */ I(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
1562
1561
  let d = !1;
1563
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Kr(u), u.delay === 0 && (d = !0)), (P.instantAnimations || P.skipAnimations || i?.shouldSkipAnimations) && (d = !0, Kr(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
1564
- let e = Jn(u.keyframes, s);
1562
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Gr(u), u.delay === 0 && (d = !0)), (F.instantAnimations || F.skipAnimations || i?.shouldSkipAnimations) && (d = !0, Gr(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
1563
+ let e = qn(u.keyframes, s);
1565
1564
  if (e !== void 0) {
1566
1565
  R.update(() => {
1567
1566
  u.onUpdate(e), u.onComplete();
@@ -1569,23 +1568,23 @@ var hi = (e, t, n, r = {}, i, a) => (o) => {
1569
1568
  return;
1570
1569
  }
1571
1570
  }
1572
- return s.isSync ? new $n(u) : new ei(u);
1571
+ return s.isSync ? new Qn(u) : new $r(u);
1573
1572
  };
1574
1573
  //#endregion
1575
1574
  //#region ../../node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
1576
- function gi(e) {
1575
+ function hi(e) {
1577
1576
  let t = [{}, {}];
1578
1577
  return e?.values.forEach((e, n) => {
1579
1578
  t[0][n] = e.get(), t[1][n] = e.getVelocity();
1580
1579
  }), t;
1581
1580
  }
1582
- function _i(e, t, n, r) {
1581
+ function gi(e, t, n, r) {
1583
1582
  if (typeof t == "function") {
1584
- let [i, a] = gi(r);
1583
+ let [i, a] = hi(r);
1585
1584
  t = t(n === void 0 ? e.custom : n, i, a);
1586
1585
  }
1587
1586
  if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
1588
- let [i, a] = gi(r);
1587
+ let [i, a] = hi(r);
1589
1588
  t = t(n === void 0 ? e.custom : n, i, a);
1590
1589
  }
1591
1590
  return t;
@@ -1594,19 +1593,19 @@ function _i(e, t, n, r) {
1594
1593
  //#region ../../node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
1595
1594
  function X(e, t, n) {
1596
1595
  let r = e.getProps();
1597
- return _i(r, t, n === void 0 ? r.custom : n, e);
1596
+ return gi(r, t, n === void 0 ? r.custom : n, e);
1598
1597
  }
1599
1598
  //#endregion
1600
1599
  //#region ../../node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
1601
- var vi = new Set([
1600
+ var _i = new Set([
1602
1601
  "width",
1603
1602
  "height",
1604
1603
  "top",
1605
1604
  "left",
1606
1605
  "right",
1607
1606
  "bottom",
1608
- ...fr
1609
- ]), yi = 30, bi = (e) => !isNaN(parseFloat(e)), xi = { current: void 0 }, Si = class {
1607
+ ...dr
1608
+ ]), vi = 30, yi = (e) => !isNaN(parseFloat(e)), bi = { current: void 0 }, xi = class {
1610
1609
  constructor(e, t = {}) {
1611
1610
  this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
1612
1611
  let t = z.now();
@@ -1614,16 +1613,16 @@ var vi = new Set([
1614
1613
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
1615
1614
  }
1616
1615
  setCurrent(e) {
1617
- this.current = e, this.updatedAt = z.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = bi(this.current));
1616
+ this.current = e, this.updatedAt = z.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = yi(this.current));
1618
1617
  }
1619
1618
  setPrevFrameValue(e = this.current) {
1620
1619
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
1621
1620
  }
1622
1621
  onChange(e) {
1623
- return process.env.NODE_ENV !== "production" && Re(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
1622
+ return process.env.NODE_ENV !== "production" && Le(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
1624
1623
  }
1625
1624
  on(e, t) {
1626
- this.events[e] || (this.events[e] = new Fe());
1625
+ this.events[e] || (this.events[e] = new Pe());
1627
1626
  let n = this.events[e].add(t);
1628
1627
  return e === "change" ? () => {
1629
1628
  n(), R.read(() => {
@@ -1656,16 +1655,16 @@ var vi = new Set([
1656
1655
  this.dependents && this.dependents.delete(e);
1657
1656
  }
1658
1657
  get() {
1659
- return xi.current && xi.current.push(this), this.current;
1658
+ return bi.current && bi.current.push(this), this.current;
1660
1659
  }
1661
1660
  getPrevious() {
1662
1661
  return this.prev;
1663
1662
  }
1664
1663
  getVelocity() {
1665
1664
  let e = z.now();
1666
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > yi) return 0;
1667
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, yi);
1668
- return Ie(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
1665
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > vi) return 0;
1666
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, vi);
1667
+ return Fe(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
1669
1668
  }
1670
1669
  start(e) {
1671
1670
  return this.stop(), new Promise((t) => {
@@ -1687,75 +1686,75 @@ var vi = new Set([
1687
1686
  this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1688
1687
  }
1689
1688
  };
1690
- function Ci(e, t) {
1691
- return new Si(e, t);
1689
+ function Si(e, t) {
1690
+ return new xi(e, t);
1692
1691
  }
1693
1692
  //#endregion
1694
1693
  //#region ../../node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs
1695
- var wi = (e) => Array.isArray(e);
1694
+ var Ci = (e) => Array.isArray(e);
1696
1695
  //#endregion
1697
1696
  //#region ../../node_modules/motion-dom/dist/es/render/utils/setters.mjs
1698
- function Ti(e, t, n) {
1699
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Ci(n));
1697
+ function wi(e, t, n) {
1698
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Si(n));
1700
1699
  }
1701
- function Ei(e) {
1702
- return wi(e) ? e[e.length - 1] || 0 : e;
1700
+ function Ti(e) {
1701
+ return Ci(e) ? e[e.length - 1] || 0 : e;
1703
1702
  }
1704
- function Di(e, t) {
1703
+ function Ei(e, t) {
1705
1704
  let { transitionEnd: n = {}, transition: r = {}, ...i } = X(e, t) || {};
1706
1705
  i = {
1707
1706
  ...i,
1708
1707
  ...n
1709
1708
  };
1710
- for (let t in i) Ti(e, t, Ei(i[t]));
1709
+ for (let t in i) wi(e, t, Ti(i[t]));
1711
1710
  }
1712
1711
  //#endregion
1713
1712
  //#region ../../node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
1714
1713
  var Z = (e) => !!(e && e.getVelocity);
1715
1714
  //#endregion
1716
1715
  //#region ../../node_modules/motion-dom/dist/es/value/will-change/is.mjs
1717
- function Oi(e) {
1716
+ function Di(e) {
1718
1717
  return !!(Z(e) && e.add);
1719
1718
  }
1720
1719
  //#endregion
1721
1720
  //#region ../../node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
1722
- function ki(e, t) {
1721
+ function Oi(e, t) {
1723
1722
  let n = e.getValue("willChange");
1724
- if (Oi(n)) return n.add(t);
1725
- if (!n && P.WillChange) {
1726
- let n = new P.WillChange("auto");
1723
+ if (Di(n)) return n.add(t);
1724
+ if (!n && F.WillChange) {
1725
+ let n = new F.WillChange("auto");
1727
1726
  e.addValue("willChange", n), n.add(t);
1728
1727
  }
1729
1728
  }
1730
1729
  //#endregion
1731
1730
  //#region ../../node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
1732
- function Ai(e) {
1731
+ function ki(e) {
1733
1732
  return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1734
1733
  }
1735
- var ji = "data-" + Ai("framerAppearId");
1734
+ var Ai = "data-" + ki("framerAppearId");
1736
1735
  //#endregion
1737
1736
  //#region ../../node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
1738
- function Mi(e) {
1739
- return e.props[ji];
1737
+ function ji(e) {
1738
+ return e.props[Ai];
1740
1739
  }
1741
1740
  //#endregion
1742
1741
  //#region ../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
1743
- function Ni({ protectedKeys: e, needsAnimating: t }, n) {
1742
+ function Mi({ protectedKeys: e, needsAnimating: t }, n) {
1744
1743
  let r = e.hasOwnProperty(n) && t[n] !== !0;
1745
1744
  return t[n] = !1, r;
1746
1745
  }
1747
- function Pi(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
1746
+ function Ni(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
1748
1747
  let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
1749
- a = a ? di(a, c) : c;
1748
+ a = a ? ui(a, c) : c;
1750
1749
  let l = a?.reduceMotion;
1751
1750
  r && (a = r);
1752
1751
  let u = [], d = i && e.animationState && e.animationState.getState()[i];
1753
1752
  for (let t in s) {
1754
1753
  let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
1755
- if (i === void 0 || d && Ni(d, t)) continue;
1754
+ if (i === void 0 || d && Mi(d, t)) continue;
1756
1755
  let o = {
1757
1756
  delay: n,
1758
- ...fi(a || {}, t)
1757
+ ...di(a || {}, t)
1759
1758
  }, c = r.get();
1760
1759
  if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
1761
1760
  R.update(() => r.set(i));
@@ -1763,21 +1762,21 @@ function Pi(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
1763
1762
  }
1764
1763
  let f = !1;
1765
1764
  if (window.MotionHandoffAnimation) {
1766
- let n = Mi(e);
1765
+ let n = ji(e);
1767
1766
  if (n) {
1768
1767
  let e = window.MotionHandoffAnimation(n, t, R);
1769
1768
  e !== null && (o.startTime = e, f = !0);
1770
1769
  }
1771
1770
  }
1772
- ki(e, t);
1771
+ Oi(e, t);
1773
1772
  let p = l ?? e.shouldReduceMotion;
1774
- r.start(hi(t, r, i, p && vi.has(t) ? { type: !1 } : o, e, f));
1773
+ r.start(mi(t, r, i, p && _i.has(t) ? { type: !1 } : o, e, f));
1775
1774
  let m = r.animation;
1776
1775
  m && u.push(m);
1777
1776
  }
1778
1777
  if (o) {
1779
1778
  let t = () => R.update(() => {
1780
- o && Di(e, o);
1779
+ o && Ei(e, o);
1781
1780
  });
1782
1781
  u.length ? Promise.all(u).then(t) : t();
1783
1782
  }
@@ -1785,38 +1784,38 @@ function Pi(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
1785
1784
  }
1786
1785
  //#endregion
1787
1786
  //#region ../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
1788
- function Fi(e, t, n = {}) {
1787
+ function Pi(e, t, n = {}) {
1789
1788
  let r = X(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
1790
1789
  n.transitionOverride && (i = n.transitionOverride);
1791
- let a = r ? () => Promise.all(Pi(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
1790
+ let a = r ? () => Promise.all(Ni(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
1792
1791
  let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
1793
- return Ii(e, t, r, a, o, s, n);
1792
+ return Fi(e, t, r, a, o, s, n);
1794
1793
  } : () => Promise.resolve(), { when: s } = i;
1795
1794
  if (s) {
1796
1795
  let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
1797
1796
  return e().then(() => t());
1798
1797
  } else return Promise.all([a(), o(n.delay)]);
1799
1798
  }
1800
- function Ii(e, t, n = 0, r = 0, i = 0, a = 1, o) {
1799
+ function Fi(e, t, n = 0, r = 0, i = 0, a = 1, o) {
1801
1800
  let s = [];
1802
- for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(Fi(c, t, {
1801
+ for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(Pi(c, t, {
1803
1802
  ...o,
1804
- delay: n + (typeof r == "function" ? 0 : r) + ti(e.variantChildren, c, r, i, a)
1803
+ delay: n + (typeof r == "function" ? 0 : r) + ei(e.variantChildren, c, r, i, a)
1805
1804
  }).then(() => c.notify("AnimationComplete", t)));
1806
1805
  return Promise.all(s);
1807
1806
  }
1808
1807
  //#endregion
1809
1808
  //#region ../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
1810
- function Li(e, t, n = {}) {
1809
+ function Ii(e, t, n = {}) {
1811
1810
  e.notify("AnimationStart", t);
1812
1811
  let r;
1813
1812
  if (Array.isArray(t)) {
1814
- let i = t.map((t) => Fi(e, t, n));
1813
+ let i = t.map((t) => Pi(e, t, n));
1815
1814
  r = Promise.all(i);
1816
- } else if (typeof t == "string") r = Fi(e, t, n);
1815
+ } else if (typeof t == "string") r = Pi(e, t, n);
1817
1816
  else {
1818
1817
  let i = typeof t == "function" ? X(e, t, n.custom) : t;
1819
- r = Promise.all(Pi(e, i, n));
1818
+ r = Promise.all(Ni(e, i, n));
1820
1819
  }
1821
1820
  return r.then(() => {
1822
1821
  e.notify("AnimationComplete", t);
@@ -1824,46 +1823,46 @@ function Li(e, t, n = {}) {
1824
1823
  }
1825
1824
  //#endregion
1826
1825
  //#region ../../node_modules/motion-dom/dist/es/value/types/auto.mjs
1827
- var Ri = {
1826
+ var Li = {
1828
1827
  test: (e) => e === "auto",
1829
1828
  parse: (e) => e
1830
- }, zi = (e) => (t) => t.test(e), Bi = [
1831
- wt,
1829
+ }, Ri = (e) => (t) => t.test(e), zi = [
1830
+ Ct,
1832
1831
  U,
1833
1832
  H,
1834
1833
  V,
1835
- zt,
1836
1834
  Rt,
1837
- Ri
1838
- ], Vi = (e) => Bi.find(zi(e));
1835
+ Lt,
1836
+ Li
1837
+ ], Bi = (e) => zi.find(Ri(e));
1839
1838
  //#endregion
1840
1839
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
1841
- function Hi(e) {
1842
- return typeof e == "number" ? e === 0 : e === null ? !0 : e === "none" || e === "0" || Ae(e);
1840
+ function Vi(e) {
1841
+ return typeof e == "number" ? e === 0 : e === null ? !0 : e === "none" || e === "0" || Oe(e);
1843
1842
  }
1844
1843
  //#endregion
1845
1844
  //#region ../../node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
1846
- var Ui = new Set([
1845
+ var Hi = new Set([
1847
1846
  "brightness",
1848
1847
  "contrast",
1849
1848
  "saturate",
1850
1849
  "opacity"
1851
1850
  ]);
1852
- function Wi(e) {
1851
+ function Ui(e) {
1853
1852
  let [t, n] = e.slice(0, -1).split("(");
1854
1853
  if (t === "drop-shadow") return e;
1855
- let [r] = n.match(Ot) || [];
1854
+ let [r] = n.match(Dt) || [];
1856
1855
  if (!r) return e;
1857
- let i = n.replace(r, ""), a = +!!Ui.has(t);
1856
+ let i = n.replace(r, ""), a = +!!Hi.has(t);
1858
1857
  return r !== n && (a *= 100), t + "(" + a + i + ")";
1859
1858
  }
1860
- var Gi = /\b([a-z-]*)\(.*?\)/gu, Ki = {
1859
+ var Wi = /\b([a-z-]*)\(.*?\)/gu, Gi = {
1861
1860
  ...G,
1862
1861
  getAnimatableNone: (e) => {
1863
- let t = e.match(Gi);
1864
- return t ? t.map(Wi).join(" ") : e;
1862
+ let t = e.match(Wi);
1863
+ return t ? t.map(Ui).join(" ") : e;
1865
1864
  }
1866
- }, qi = {
1865
+ }, Ki = {
1867
1866
  ...G,
1868
1867
  getAnimatableNone: (e) => {
1869
1868
  let t = G.parse(e);
@@ -1872,10 +1871,10 @@ var Gi = /\b([a-z-]*)\(.*?\)/gu, Ki = {
1872
1871
  alpha: 1
1873
1872
  } : e));
1874
1873
  }
1875
- }, Ji = {
1876
- ...wt,
1874
+ }, qi = {
1875
+ ...Ct,
1877
1876
  transform: Math.round
1878
- }, Yi = {
1877
+ }, Ji = {
1879
1878
  borderWidth: U,
1880
1879
  borderTopWidth: U,
1881
1880
  borderRightWidth: U,
@@ -1930,10 +1929,10 @@ var Gi = /\b([a-z-]*)\(.*?\)/gu, Ki = {
1930
1929
  rotateX: V,
1931
1930
  rotateY: V,
1932
1931
  rotateZ: V,
1933
- scale: Et,
1934
- scaleX: Et,
1935
- scaleY: Et,
1936
- scaleZ: Et,
1932
+ scale: Tt,
1933
+ scaleX: Tt,
1934
+ scaleY: Tt,
1935
+ scaleZ: Tt,
1937
1936
  skew: V,
1938
1937
  skewX: V,
1939
1938
  skewY: V,
@@ -1946,16 +1945,16 @@ var Gi = /\b([a-z-]*)\(.*?\)/gu, Ki = {
1946
1945
  z: U,
1947
1946
  perspective: U,
1948
1947
  transformPerspective: U,
1949
- opacity: Tt,
1950
- originX: Bt,
1951
- originY: Bt,
1948
+ opacity: wt,
1949
+ originX: zt,
1950
+ originY: zt,
1952
1951
  originZ: U,
1953
- zIndex: Ji,
1954
- fillOpacity: Tt,
1955
- strokeOpacity: Tt,
1956
- numOctaves: Ji
1957
- }, Xi = {
1958
- ...Yi,
1952
+ zIndex: qi,
1953
+ fillOpacity: wt,
1954
+ strokeOpacity: wt,
1955
+ numOctaves: qi
1956
+ }, Yi = {
1957
+ ...Ji,
1959
1958
  color: W,
1960
1959
  backgroundColor: W,
1961
1960
  outlineColor: W,
@@ -1966,33 +1965,33 @@ var Gi = /\b([a-z-]*)\(.*?\)/gu, Ki = {
1966
1965
  borderRightColor: W,
1967
1966
  borderBottomColor: W,
1968
1967
  borderLeftColor: W,
1969
- filter: Ki,
1970
- WebkitFilter: Ki,
1971
- mask: qi,
1972
- WebkitMask: qi
1973
- }, Zi = (e) => Xi[e], Qi = /* @__PURE__ */ new Set([Ki, qi]);
1974
- function $i(e, t) {
1975
- let n = Zi(e);
1976
- return Qi.has(n) || (n = G), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1968
+ filter: Gi,
1969
+ WebkitFilter: Gi,
1970
+ mask: Ki,
1971
+ WebkitMask: Ki
1972
+ }, Xi = (e) => Yi[e], Zi = /* @__PURE__ */ new Set([Gi, Ki]);
1973
+ function Qi(e, t) {
1974
+ let n = Xi(e);
1975
+ return Zi.has(n) || (n = G), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1977
1976
  }
1978
1977
  //#endregion
1979
1978
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
1980
- var ea = new Set([
1979
+ var $i = new Set([
1981
1980
  "auto",
1982
1981
  "none",
1983
1982
  "0"
1984
1983
  ]);
1985
- function ta(e, t, n) {
1984
+ function ea(e, t, n) {
1986
1985
  let r = 0, i;
1987
1986
  for (; r < e.length && !i;) {
1988
1987
  let t = e[r];
1989
- typeof t == "string" && !ea.has(t) && Xt(t).values.length && (i = e[r]), r++;
1988
+ typeof t == "string" && !$i.has(t) && Yt(t).values.length && (i = e[r]), r++;
1990
1989
  }
1991
- if (i && n) for (let r of t) e[r] = $i(n, i);
1990
+ if (i && n) for (let r of t) e[r] = Qi(n, i);
1992
1991
  }
1993
1992
  //#endregion
1994
1993
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
1995
- var na = class extends wr {
1994
+ var ta = class extends Cr {
1996
1995
  constructor(e, t, n, r, i) {
1997
1996
  super(e, t, n, r, i, !0);
1998
1997
  }
@@ -2002,18 +2001,18 @@ var na = class extends wr {
2002
2001
  super.readKeyframes();
2003
2002
  for (let n = 0; n < e.length; n++) {
2004
2003
  let r = e[n];
2005
- if (typeof r == "string" && (r = r.trim(), xt(r))) {
2006
- let i = ai(r, t.current);
2004
+ if (typeof r == "string" && (r = r.trim(), bt(r))) {
2005
+ let i = ii(r, t.current);
2007
2006
  i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
2008
2007
  }
2009
2008
  }
2010
- if (this.resolveNoneKeyframes(), !vi.has(n) || e.length !== 2) return;
2011
- let [r, i] = e, a = Vi(r), o = Vi(i);
2012
- if (Ct(r) !== Ct(i) && J[n]) {
2009
+ if (this.resolveNoneKeyframes(), !_i.has(n) || e.length !== 2) return;
2010
+ let [r, i] = e, a = Bi(r), o = Bi(i);
2011
+ if (St(r) !== St(i) && J[n]) {
2013
2012
  this.needsMeasurement = !0;
2014
2013
  return;
2015
2014
  }
2016
- if (a !== o) if (mr(a) && mr(o)) for (let t = 0; t < e.length; t++) {
2015
+ if (a !== o) if (pr(a) && pr(o)) for (let t = 0; t < e.length; t++) {
2017
2016
  let n = e[t];
2018
2017
  typeof n == "string" && (e[t] = parseFloat(n));
2019
2018
  }
@@ -2021,8 +2020,8 @@ var na = class extends wr {
2021
2020
  }
2022
2021
  resolveNoneKeyframes() {
2023
2022
  let { unresolvedKeyframes: e, name: t } = this, n = [];
2024
- for (let t = 0; t < e.length; t++) (e[t] === null || Hi(e[t])) && n.push(t);
2025
- n.length && ta(e, n, t);
2023
+ for (let t = 0; t < e.length; t++) (e[t] === null || Vi(e[t])) && n.push(t);
2024
+ n.length && ea(e, n, t);
2026
2025
  }
2027
2026
  measureInitialState() {
2028
2027
  let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -2044,7 +2043,7 @@ var na = class extends wr {
2044
2043
  };
2045
2044
  //#endregion
2046
2045
  //#region ../../node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
2047
- function ra(e, t, n) {
2046
+ function na(e, t, n) {
2048
2047
  if (e == null) return [];
2049
2048
  if (e instanceof EventTarget) return [e];
2050
2049
  if (typeof e == "string") {
@@ -2057,25 +2056,25 @@ function ra(e, t, n) {
2057
2056
  }
2058
2057
  //#endregion
2059
2058
  //#region ../../node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
2060
- var ia = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
2059
+ var ra = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
2061
2060
  //#endregion
2062
2061
  //#region ../../node_modules/motion-dom/dist/es/utils/is-html-element.mjs
2063
- function aa(e) {
2064
- return ke(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
2062
+ function ia(e) {
2063
+ return De(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
2065
2064
  }
2066
2065
  //#endregion
2067
2066
  //#region ../../node_modules/motion-dom/dist/es/frameloop/microtask.mjs
2068
- var { schedule: oa, cancel: sa } = /* @__PURE__ */ dt(queueMicrotask, !1), ca = {
2067
+ var { schedule: aa, cancel: oa } = /* @__PURE__ */ ut(queueMicrotask, !1), sa = {
2069
2068
  x: !1,
2070
2069
  y: !1
2071
2070
  };
2072
- function la() {
2073
- return ca.x || ca.y;
2071
+ function ca() {
2072
+ return sa.x || sa.y;
2074
2073
  }
2075
2074
  //#endregion
2076
2075
  //#region ../../node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
2077
- function ua(e, t) {
2078
- let n = ra(e), r = new AbortController();
2076
+ function la(e, t) {
2077
+ let n = na(e), r = new AbortController();
2079
2078
  return [
2080
2079
  n,
2081
2080
  {
@@ -2088,11 +2087,11 @@ function ua(e, t) {
2088
2087
  }
2089
2088
  //#endregion
2090
2089
  //#region ../../node_modules/motion-dom/dist/es/gestures/hover.mjs
2091
- function da(e) {
2092
- return !(e.pointerType === "touch" || la());
2090
+ function ua(e) {
2091
+ return !(e.pointerType === "touch" || ca());
2093
2092
  }
2094
- function fa(e, t, n = {}) {
2095
- let [r, i, a] = ua(e, n);
2093
+ function da(e, t, n = {}) {
2094
+ let [r, i, a] = la(e, n);
2096
2095
  return r.forEach((e) => {
2097
2096
  let n = !1, r = !1, a, o = () => {
2098
2097
  e.removeEventListener("pointerleave", u);
@@ -2112,7 +2111,7 @@ function fa(e, t, n = {}) {
2112
2111
  }
2113
2112
  };
2114
2113
  e.addEventListener("pointerenter", (n) => {
2115
- if (!da(n)) return;
2114
+ if (!ua(n)) return;
2116
2115
  r = !1;
2117
2116
  let o = t(e, n);
2118
2117
  typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -2121,95 +2120,95 @@ function fa(e, t, n = {}) {
2121
2120
  }
2122
2121
  //#endregion
2123
2122
  //#region ../../node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
2124
- var pa = (e, t) => t ? e === t ? !0 : pa(e, t.parentElement) : !1, ma = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, ha = new Set([
2123
+ var fa = (e, t) => t ? e === t ? !0 : fa(e, t.parentElement) : !1, pa = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, ma = new Set([
2125
2124
  "BUTTON",
2126
2125
  "INPUT",
2127
2126
  "SELECT",
2128
2127
  "TEXTAREA",
2129
2128
  "A"
2130
2129
  ]);
2131
- function ga(e) {
2132
- return ha.has(e.tagName) || e.isContentEditable === !0;
2130
+ function ha(e) {
2131
+ return ma.has(e.tagName) || e.isContentEditable === !0;
2133
2132
  }
2134
2133
  //#endregion
2135
2134
  //#region ../../node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
2136
- var _a = /* @__PURE__ */ new WeakSet();
2135
+ var ga = /* @__PURE__ */ new WeakSet();
2137
2136
  //#endregion
2138
2137
  //#region ../../node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
2139
- function va(e) {
2138
+ function _a(e) {
2140
2139
  return (t) => {
2141
2140
  t.key === "Enter" && e(t);
2142
2141
  };
2143
2142
  }
2144
- function ya(e, t) {
2143
+ function va(e, t) {
2145
2144
  e.dispatchEvent(new PointerEvent("pointer" + t, {
2146
2145
  isPrimary: !0,
2147
2146
  bubbles: !0
2148
2147
  }));
2149
2148
  }
2150
- var ba = (e, t) => {
2149
+ var ya = (e, t) => {
2151
2150
  let n = e.currentTarget;
2152
2151
  if (!n) return;
2153
- let r = va(() => {
2154
- if (_a.has(n)) return;
2155
- ya(n, "down");
2156
- let e = va(() => {
2157
- ya(n, "up");
2152
+ let r = _a(() => {
2153
+ if (ga.has(n)) return;
2154
+ va(n, "down");
2155
+ let e = _a(() => {
2156
+ va(n, "up");
2158
2157
  });
2159
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => ya(n, "cancel"), t);
2158
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => va(n, "cancel"), t);
2160
2159
  });
2161
2160
  n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
2162
2161
  };
2163
2162
  //#endregion
2164
2163
  //#region ../../node_modules/motion-dom/dist/es/gestures/press/index.mjs
2165
- function xa(e) {
2166
- return ma(e) && !la();
2164
+ function ba(e) {
2165
+ return pa(e) && !ca();
2167
2166
  }
2168
- var Sa = /* @__PURE__ */ new WeakSet();
2169
- function Ca(e, t, n = {}) {
2170
- let [r, i, a] = ua(e, n), o = (e) => {
2167
+ var xa = /* @__PURE__ */ new WeakSet();
2168
+ function Sa(e, t, n = {}) {
2169
+ let [r, i, a] = la(e, n), o = (e) => {
2171
2170
  let r = e.currentTarget;
2172
- if (!xa(e) || Sa.has(e)) return;
2173
- _a.add(r), n.stopPropagation && Sa.add(e);
2171
+ if (!ba(e) || xa.has(e)) return;
2172
+ ga.add(r), n.stopPropagation && xa.add(e);
2174
2173
  let a = t(r, e), o = (e, t) => {
2175
- window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c), _a.has(r) && _a.delete(r), xa(e) && typeof a == "function" && a(e, { success: t });
2174
+ window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c), ga.has(r) && ga.delete(r), ba(e) && typeof a == "function" && a(e, { success: t });
2176
2175
  }, s = (e) => {
2177
- o(e, r === window || r === document || n.useGlobalTarget || pa(r, e.target));
2176
+ o(e, r === window || r === document || n.useGlobalTarget || fa(r, e.target));
2178
2177
  }, c = (e) => {
2179
2178
  o(e, !1);
2180
2179
  };
2181
2180
  window.addEventListener("pointerup", s, i), window.addEventListener("pointercancel", c, i);
2182
2181
  };
2183
2182
  return r.forEach((e) => {
2184
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), aa(e) && (e.addEventListener("focus", (e) => ba(e, i)), !ga(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
2183
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), ia(e) && (e.addEventListener("focus", (e) => ya(e, i)), !ha(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
2185
2184
  }), a;
2186
2185
  }
2187
2186
  //#endregion
2188
2187
  //#region ../../node_modules/motion-dom/dist/es/value/types/utils/find.mjs
2189
- var wa = [
2190
- ...Bi,
2188
+ var Ca = [
2189
+ ...zi,
2191
2190
  W,
2192
2191
  G
2193
- ], Ta = (e) => wa.find(zi(e)), Ea = () => ({
2192
+ ], wa = (e) => Ca.find(Ri(e)), Ta = () => ({
2194
2193
  min: 0,
2195
2194
  max: 0
2196
- }), Da = () => ({
2197
- x: Ea(),
2198
- y: Ea()
2199
- }), Oa = /* @__PURE__ */ new WeakMap();
2195
+ }), Ea = () => ({
2196
+ x: Ta(),
2197
+ y: Ta()
2198
+ }), Da = /* @__PURE__ */ new WeakMap();
2200
2199
  //#endregion
2201
2200
  //#region ../../node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
2202
- function ka(e) {
2201
+ function Oa(e) {
2203
2202
  return typeof e == "object" && !!e && typeof e.start == "function";
2204
2203
  }
2205
2204
  //#endregion
2206
2205
  //#region ../../node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
2207
- function Aa(e) {
2206
+ function ka(e) {
2208
2207
  return typeof e == "string" || Array.isArray(e);
2209
2208
  }
2210
2209
  //#endregion
2211
2210
  //#region ../../node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
2212
- var ja = [
2211
+ var Aa = [
2213
2212
  "animate",
2214
2213
  "whileInView",
2215
2214
  "whileFocus",
@@ -2217,28 +2216,28 @@ var ja = [
2217
2216
  "whileTap",
2218
2217
  "whileDrag",
2219
2218
  "exit"
2220
- ], Ma = ["initial", ...ja];
2219
+ ], ja = ["initial", ...Aa];
2221
2220
  //#endregion
2222
2221
  //#region ../../node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
2223
- function Na(e) {
2224
- return ka(e.animate) || Ma.some((t) => Aa(e[t]));
2222
+ function Ma(e) {
2223
+ return Oa(e.animate) || ja.some((t) => ka(e[t]));
2225
2224
  }
2226
- function Pa(e) {
2227
- return !!(Na(e) || e.variants);
2225
+ function Na(e) {
2226
+ return !!(Ma(e) || e.variants);
2228
2227
  }
2229
2228
  //#endregion
2230
2229
  //#region ../../node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
2231
- function Fa(e, t, n) {
2230
+ function Pa(e, t, n) {
2232
2231
  for (let r in t) {
2233
2232
  let i = t[r], a = n[r];
2234
2233
  if (Z(i)) e.addValue(r, i);
2235
- else if (Z(a)) e.addValue(r, Ci(i, { owner: e }));
2234
+ else if (Z(a)) e.addValue(r, Si(i, { owner: e }));
2236
2235
  else if (a !== i) if (e.hasValue(r)) {
2237
2236
  let t = e.getValue(r);
2238
2237
  t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
2239
2238
  } else {
2240
2239
  let t = e.getStaticValue(r);
2241
- e.addValue(r, Ci(t === void 0 ? i : t, { owner: e }));
2240
+ e.addValue(r, Si(t === void 0 ? i : t, { owner: e }));
2242
2241
  }
2243
2242
  }
2244
2243
  for (let r in n) t[r] === void 0 && e.removeValue(r);
@@ -2246,16 +2245,16 @@ function Fa(e, t, n) {
2246
2245
  }
2247
2246
  //#endregion
2248
2247
  //#region ../../node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
2249
- var Ia = { current: null }, La = { current: !1 }, Ra = typeof window < "u";
2250
- function za() {
2251
- if (La.current = !0, Ra) if (window.matchMedia) {
2252
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Ia.current = e.matches;
2248
+ var Fa = { current: null }, Ia = { current: !1 }, La = typeof window < "u";
2249
+ function Ra() {
2250
+ if (Ia.current = !0, La) if (window.matchMedia) {
2251
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Fa.current = e.matches;
2253
2252
  e.addEventListener("change", t), t();
2254
- } else Ia.current = !1;
2253
+ } else Fa.current = !1;
2255
2254
  }
2256
2255
  //#endregion
2257
2256
  //#region ../../node_modules/motion-dom/dist/es/render/VisualElement.mjs
2258
- var Ba = [
2257
+ var za = [
2259
2258
  "AnimationStart",
2260
2259
  "AnimationComplete",
2261
2260
  "Update",
@@ -2263,26 +2262,26 @@ var Ba = [
2263
2262
  "LayoutMeasure",
2264
2263
  "LayoutAnimationStart",
2265
2264
  "LayoutAnimationComplete"
2266
- ], Va = {};
2267
- function Ha(e) {
2268
- Va = e;
2265
+ ], Ba = {};
2266
+ function Va(e) {
2267
+ Ba = e;
2269
2268
  }
2270
- function Ua() {
2271
- return Va;
2269
+ function Ha() {
2270
+ return Ba;
2272
2271
  }
2273
- var Wa = class {
2272
+ var Ua = class {
2274
2273
  scrapeMotionValuesFromProps(e, t, n) {
2275
2274
  return {};
2276
2275
  }
2277
2276
  constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
2278
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = wr, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2277
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Cr, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2279
2278
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2280
2279
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2281
2280
  let e = z.now();
2282
2281
  this.renderScheduledAt < e && (this.renderScheduledAt = e, R.render(this.render, !1, !0));
2283
2282
  };
2284
2283
  let { latestValues: c, renderState: l } = o;
2285
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = Na(t), this.isVariantNode = Pa(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2284
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = Ma(t), this.isVariantNode = Na(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2286
2285
  let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
2287
2286
  for (let e in d) {
2288
2287
  let t = d[e];
@@ -2291,10 +2290,10 @@ var Wa = class {
2291
2290
  }
2292
2291
  mount(e) {
2293
2292
  if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
2294
- this.current = e, Oa.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (La.current || za(), this.shouldReduceMotion = Ia.current), process.env.NODE_ENV !== "production" && Re(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2293
+ this.current = e, Da.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Ia.current || Ra(), this.shouldReduceMotion = Fa.current), process.env.NODE_ENV !== "production" && Le(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2295
2294
  }
2296
2295
  unmount() {
2297
- this.projection && this.projection.unmount(), ft(this.notifyUpdate), ft(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2296
+ this.projection && this.projection.unmount(), dt(this.notifyUpdate), dt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2298
2297
  for (let e in this.events) this.events[e].clear();
2299
2298
  for (let e in this.features) {
2300
2299
  let t = this.features[e];
@@ -2309,8 +2308,8 @@ var Wa = class {
2309
2308
  this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
2310
2309
  }
2311
2310
  bindToMotionValue(e, t) {
2312
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && qr.has(e) && this.current instanceof HTMLElement) {
2313
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new Lr({
2311
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Kr.has(e) && this.current instanceof HTMLElement) {
2312
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new Ir({
2314
2313
  element: this.current,
2315
2314
  name: e,
2316
2315
  keyframes: r,
@@ -2323,7 +2322,7 @@ var Wa = class {
2323
2322
  });
2324
2323
  return;
2325
2324
  }
2326
- let n = pr.has(e);
2325
+ let n = fr.has(e);
2327
2326
  n && this.onBindTransform && this.onBindTransform();
2328
2327
  let r = t.on("change", (t) => {
2329
2328
  this.latestValues[e] = t, this.props.onUpdate && R.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
@@ -2337,8 +2336,8 @@ var Wa = class {
2337
2336
  }
2338
2337
  updateFeatures() {
2339
2338
  let e = "animation";
2340
- for (e in Va) {
2341
- let t = Va[e];
2339
+ for (e in Ba) {
2340
+ let t = Ba[e];
2342
2341
  if (!t) continue;
2343
2342
  let { isEnabled: n, Feature: r } = t;
2344
2343
  if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -2351,7 +2350,7 @@ var Wa = class {
2351
2350
  this.build(this.renderState, this.latestValues, this.props);
2352
2351
  }
2353
2352
  measureViewportBox() {
2354
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Da();
2353
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Ea();
2355
2354
  }
2356
2355
  getStaticValue(e) {
2357
2356
  return this.latestValues[e];
@@ -2361,13 +2360,13 @@ var Wa = class {
2361
2360
  }
2362
2361
  update(e, t) {
2363
2362
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
2364
- for (let t = 0; t < Ba.length; t++) {
2365
- let n = Ba[t];
2363
+ for (let t = 0; t < za.length; t++) {
2364
+ let n = za[t];
2366
2365
  this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
2367
2366
  let r = e["on" + n];
2368
2367
  r && (this.propEventSubscriptions[n] = this.on(n, r));
2369
2368
  }
2370
- this.prevMotionValues = Fa(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2369
+ this.prevMotionValues = Pa(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2371
2370
  }
2372
2371
  getProps() {
2373
2372
  return this.props;
@@ -2403,11 +2402,11 @@ var Wa = class {
2403
2402
  getValue(e, t) {
2404
2403
  if (this.props.values && this.props.values[e]) return this.props.values[e];
2405
2404
  let n = this.values.get(e);
2406
- return n === void 0 && t !== void 0 && (n = Ci(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
2405
+ return n === void 0 && t !== void 0 && (n = Si(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
2407
2406
  }
2408
2407
  readValue(e, t) {
2409
2408
  let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
2410
- return n != null && (typeof n == "string" && (Oe(n) || Ae(n)) ? n = parseFloat(n) : !Ta(n) && G.test(t) && (n = $i(e, t)), this.setBaseTarget(e, Z(n) ? n.get() : n)), Z(n) ? n.get() : n;
2409
+ return n != null && (typeof n == "string" && (Ee(n) || Oe(n)) ? n = parseFloat(n) : !wa(n) && G.test(t) && (n = Qi(e, t)), this.setBaseTarget(e, Z(n) ? n.get() : n)), Z(n) ? n.get() : n;
2411
2410
  }
2412
2411
  setBaseTarget(e, t) {
2413
2412
  this.baseTarget[e] = t;
@@ -2415,7 +2414,7 @@ var Wa = class {
2415
2414
  getBaseTarget(e) {
2416
2415
  let { initial: t } = this.props, n;
2417
2416
  if (typeof t == "string" || typeof t == "object") {
2418
- let r = _i(this.props, t, this.presenceContext?.custom);
2417
+ let r = gi(this.props, t, this.presenceContext?.custom);
2419
2418
  r && (n = r[e]);
2420
2419
  }
2421
2420
  if (t && n !== void 0) return n;
@@ -2423,17 +2422,17 @@ var Wa = class {
2423
2422
  return r !== void 0 && !Z(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
2424
2423
  }
2425
2424
  on(e, t) {
2426
- return this.events[e] || (this.events[e] = new Fe()), this.events[e].add(t);
2425
+ return this.events[e] || (this.events[e] = new Pe()), this.events[e].add(t);
2427
2426
  }
2428
2427
  notify(e, ...t) {
2429
2428
  this.events[e] && this.events[e].notify(...t);
2430
2429
  }
2431
2430
  scheduleRenderMicrotask() {
2432
- oa.render(this.render);
2431
+ aa.render(this.render);
2433
2432
  }
2434
- }, Ga = class extends Wa {
2433
+ }, Wa = class extends Ua {
2435
2434
  constructor() {
2436
- super(...arguments), this.KeyframeResolver = na;
2435
+ super(...arguments), this.KeyframeResolver = ta;
2437
2436
  }
2438
2437
  sortInstanceNodePosition(e, t) {
2439
2438
  return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -2452,7 +2451,7 @@ var Wa = class {
2452
2451
  this.current && (this.current.textContent = `${e}`);
2453
2452
  }));
2454
2453
  }
2455
- }, Ka = class {
2454
+ }, Ga = class {
2456
2455
  constructor(e) {
2457
2456
  this.isMounted = !1, this.node = e;
2458
2457
  }
@@ -2460,7 +2459,7 @@ var Wa = class {
2460
2459
  };
2461
2460
  //#endregion
2462
2461
  //#region ../../node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
2463
- function qa({ top: e, left: t, right: n, bottom: r }) {
2462
+ function Ka({ top: e, left: t, right: n, bottom: r }) {
2464
2463
  return {
2465
2464
  x: {
2466
2465
  min: t,
@@ -2472,7 +2471,7 @@ function qa({ top: e, left: t, right: n, bottom: r }) {
2472
2471
  }
2473
2472
  };
2474
2473
  }
2475
- function Ja(e, t) {
2474
+ function qa(e, t) {
2476
2475
  if (!t) return e;
2477
2476
  let n = t({
2478
2477
  x: e.left,
@@ -2490,21 +2489,21 @@ function Ja(e, t) {
2490
2489
  }
2491
2490
  //#endregion
2492
2491
  //#region ../../node_modules/motion-dom/dist/es/projection/utils/measure.mjs
2493
- function Ya(e, t) {
2494
- return qa(Ja(e.getBoundingClientRect(), t));
2492
+ function Ja(e, t) {
2493
+ return Ka(qa(e.getBoundingClientRect(), t));
2495
2494
  }
2496
2495
  //#endregion
2497
2496
  //#region ../../node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
2498
- var Xa = {
2497
+ var Ya = {
2499
2498
  x: "translateX",
2500
2499
  y: "translateY",
2501
2500
  z: "translateZ",
2502
2501
  transformPerspective: "perspective"
2503
- }, Za = fr.length;
2504
- function Qa(e, t, n) {
2502
+ }, Xa = dr.length;
2503
+ function Za(e, t, n) {
2505
2504
  let r = "", i = !0;
2506
- for (let a = 0; a < Za; a++) {
2507
- let o = fr[a], s = e[o];
2505
+ for (let a = 0; a < Xa; a++) {
2506
+ let o = dr[a], s = e[o];
2508
2507
  if (s === void 0) continue;
2509
2508
  let c = !0;
2510
2509
  if (typeof s == "number") c = s === +!!o.startsWith("scale");
@@ -2513,10 +2512,10 @@ function Qa(e, t, n) {
2513
2512
  c = o.startsWith("scale") ? e === 1 : e === 0;
2514
2513
  }
2515
2514
  if (!c || n) {
2516
- let e = ia(s, Yi[o]);
2515
+ let e = ra(s, Ji[o]);
2517
2516
  if (!c) {
2518
2517
  i = !1;
2519
- let t = Xa[o] || o;
2518
+ let t = Ya[o] || o;
2520
2519
  r += `${t}(${e}) `;
2521
2520
  }
2522
2521
  n && (t[o] = e);
@@ -2526,53 +2525,53 @@ function Qa(e, t, n) {
2526
2525
  }
2527
2526
  //#endregion
2528
2527
  //#region ../../node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
2529
- function $a(e, t, n) {
2528
+ function Qa(e, t, n) {
2530
2529
  let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
2531
2530
  for (let e in t) {
2532
2531
  let n = t[e];
2533
- if (pr.has(e)) {
2532
+ if (fr.has(e)) {
2534
2533
  o = !0;
2535
2534
  continue;
2536
- } else if (yt(e)) {
2535
+ } else if (vt(e)) {
2537
2536
  i[e] = n;
2538
2537
  continue;
2539
2538
  } else {
2540
- let t = ia(n, Yi[e]);
2539
+ let t = ra(n, Ji[e]);
2541
2540
  e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
2542
2541
  }
2543
2542
  }
2544
- if (t.transform || (o || n ? r.transform = Qa(t, e.transform, n) : r.transform &&= "none"), s) {
2543
+ if (t.transform || (o || n ? r.transform = Za(t, e.transform, n) : r.transform &&= "none"), s) {
2545
2544
  let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
2546
2545
  r.transformOrigin = `${e} ${t} ${n}`;
2547
2546
  }
2548
2547
  }
2549
2548
  //#endregion
2550
2549
  //#region ../../node_modules/motion-dom/dist/es/render/html/utils/render.mjs
2551
- function eo(e, { style: t, vars: n }, r, i) {
2550
+ function $a(e, { style: t, vars: n }, r, i) {
2552
2551
  let a = e.style, o;
2553
2552
  for (o in t) a[o] = t[o];
2554
2553
  for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
2555
2554
  }
2556
2555
  //#endregion
2557
2556
  //#region ../../node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
2558
- function to(e, t) {
2557
+ function eo(e, t) {
2559
2558
  return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
2560
2559
  }
2561
- var no = { correct: (e, t) => {
2560
+ var to = { correct: (e, t) => {
2562
2561
  if (!t.target) return e;
2563
2562
  if (typeof e == "string") if (U.test(e)) e = parseFloat(e);
2564
2563
  else return e;
2565
- return `${to(e, t.target.x)}% ${to(e, t.target.y)}%`;
2566
- } }, ro = { correct: (e, { treeScale: t, projectionDelta: n }) => {
2564
+ return `${eo(e, t.target.x)}% ${eo(e, t.target.y)}%`;
2565
+ } }, no = { correct: (e, { treeScale: t, projectionDelta: n }) => {
2567
2566
  let r = e, i = G.parse(e);
2568
2567
  if (i.length > 5) return r;
2569
2568
  let a = G.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
2570
2569
  i[0 + o] /= s, i[1 + o] /= c;
2571
- let l = sn(s, c, .5);
2570
+ let l = on(s, c, .5);
2572
2571
  return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
2573
- } }, io = {
2572
+ } }, ro = {
2574
2573
  borderRadius: {
2575
- ...no,
2574
+ ...to,
2576
2575
  applyTo: [
2577
2576
  "borderTopLeftRadius",
2578
2577
  "borderTopRightRadius",
@@ -2580,84 +2579,84 @@ var no = { correct: (e, t) => {
2580
2579
  "borderBottomRightRadius"
2581
2580
  ]
2582
2581
  },
2583
- borderTopLeftRadius: no,
2584
- borderTopRightRadius: no,
2585
- borderBottomLeftRadius: no,
2586
- borderBottomRightRadius: no,
2587
- boxShadow: ro
2582
+ borderTopLeftRadius: to,
2583
+ borderTopRightRadius: to,
2584
+ borderBottomLeftRadius: to,
2585
+ borderBottomRightRadius: to,
2586
+ boxShadow: no
2588
2587
  };
2589
2588
  //#endregion
2590
2589
  //#region ../../node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
2591
- function ao(e, { layout: t, layoutId: n }) {
2592
- return pr.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!io[e] || e === "opacity");
2590
+ function io(e, { layout: t, layoutId: n }) {
2591
+ return fr.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!ro[e] || e === "opacity");
2593
2592
  }
2594
2593
  //#endregion
2595
2594
  //#region ../../node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
2596
- function oo(e, t, n) {
2595
+ function ao(e, t, n) {
2597
2596
  let r = e.style, i = t?.style, a = {};
2598
2597
  if (!r) return a;
2599
- for (let t in r) (Z(r[t]) || i && Z(i[t]) || ao(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
2598
+ for (let t in r) (Z(r[t]) || i && Z(i[t]) || io(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
2600
2599
  return a;
2601
2600
  }
2602
2601
  //#endregion
2603
2602
  //#region ../../node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
2604
- function so(e) {
2603
+ function oo(e) {
2605
2604
  return window.getComputedStyle(e);
2606
2605
  }
2607
- var co = class extends Ga {
2606
+ var so = class extends Wa {
2608
2607
  constructor() {
2609
- super(...arguments), this.type = "html", this.renderInstance = eo;
2608
+ super(...arguments), this.type = "html", this.renderInstance = $a;
2610
2609
  }
2611
2610
  readValueFromInstance(e, t) {
2612
- if (pr.has(t)) return this.projection?.isProjecting ? cr(t) : ur(e, t);
2611
+ if (fr.has(t)) return this.projection?.isProjecting ? sr(t) : lr(e, t);
2613
2612
  {
2614
- let n = so(e), r = (yt(t) ? n.getPropertyValue(t) : n[t]) || 0;
2613
+ let n = oo(e), r = (vt(t) ? n.getPropertyValue(t) : n[t]) || 0;
2615
2614
  return typeof r == "string" ? r.trim() : r;
2616
2615
  }
2617
2616
  }
2618
2617
  measureInstanceViewportBox(e, { transformPagePoint: t }) {
2619
- return Ya(e, t);
2618
+ return Ja(e, t);
2620
2619
  }
2621
2620
  build(e, t, n) {
2622
- $a(e, t, n.transformTemplate);
2621
+ Qa(e, t, n.transformTemplate);
2623
2622
  }
2624
2623
  scrapeMotionValuesFromProps(e, t, n) {
2625
- return oo(e, t, n);
2624
+ return ao(e, t, n);
2626
2625
  }
2627
- }, lo = {
2626
+ }, co = {
2628
2627
  offset: "stroke-dashoffset",
2629
2628
  array: "stroke-dasharray"
2630
- }, uo = {
2629
+ }, lo = {
2631
2630
  offset: "strokeDashoffset",
2632
2631
  array: "strokeDasharray"
2633
2632
  };
2634
- function fo(e, t, n = 1, r = 0, i = !0) {
2633
+ function uo(e, t, n = 1, r = 0, i = !0) {
2635
2634
  e.pathLength = 1;
2636
- let a = i ? lo : uo;
2635
+ let a = i ? co : lo;
2637
2636
  e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
2638
2637
  }
2639
2638
  //#endregion
2640
2639
  //#region ../../node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
2641
- var po = [
2640
+ var fo = [
2642
2641
  "offsetDistance",
2643
2642
  "offsetPath",
2644
2643
  "offsetRotate",
2645
2644
  "offsetAnchor"
2646
2645
  ];
2647
- function mo(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
2648
- if ($a(e, s, l), c) {
2646
+ function po(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
2647
+ if (Qa(e, s, l), c) {
2649
2648
  e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
2650
2649
  return;
2651
2650
  }
2652
2651
  e.attrs = e.style, e.style = {};
2653
2652
  let { attrs: d, style: f } = e;
2654
2653
  d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
2655
- for (let e of po) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
2656
- t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && fo(d, i, a, o, !1);
2654
+ for (let e of fo) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
2655
+ t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && uo(d, i, a, o, !1);
2657
2656
  }
2658
2657
  //#endregion
2659
2658
  //#region ../../node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
2660
- var ho = new Set([
2659
+ var mo = new Set([
2661
2660
  "baseFrequency",
2662
2661
  "diffuseConstant",
2663
2662
  "kernelMatrix",
@@ -2681,68 +2680,68 @@ var ho = new Set([
2681
2680
  "startOffset",
2682
2681
  "textLength",
2683
2682
  "lengthAdjust"
2684
- ]), go = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2683
+ ]), ho = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2685
2684
  //#endregion
2686
2685
  //#region ../../node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
2687
- function _o(e, t, n, r) {
2688
- eo(e, t, void 0, r);
2689
- for (let n in t.attrs) e.setAttribute(ho.has(n) ? n : Ai(n), t.attrs[n]);
2686
+ function go(e, t, n, r) {
2687
+ $a(e, t, void 0, r);
2688
+ for (let n in t.attrs) e.setAttribute(mo.has(n) ? n : ki(n), t.attrs[n]);
2690
2689
  }
2691
2690
  //#endregion
2692
2691
  //#region ../../node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
2693
- function vo(e, t, n) {
2694
- let r = oo(e, t, n);
2692
+ function _o(e, t, n) {
2693
+ let r = ao(e, t, n);
2695
2694
  for (let n in e) if (Z(e[n]) || Z(t[n])) {
2696
- let t = fr.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
2695
+ let t = dr.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
2697
2696
  r[t] = e[n];
2698
2697
  }
2699
2698
  return r;
2700
2699
  }
2701
2700
  //#endregion
2702
2701
  //#region ../../node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
2703
- var yo = class extends Ga {
2702
+ var vo = class extends Wa {
2704
2703
  constructor() {
2705
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Da;
2704
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Ea;
2706
2705
  }
2707
2706
  getBaseTargetFromProps(e, t) {
2708
2707
  return e[t];
2709
2708
  }
2710
2709
  readValueFromInstance(e, t) {
2711
- if (pr.has(t)) {
2712
- let e = Zi(t);
2710
+ if (fr.has(t)) {
2711
+ let e = Xi(t);
2713
2712
  return e && e.default || 0;
2714
2713
  }
2715
- return t = ho.has(t) ? t : Ai(t), e.getAttribute(t);
2714
+ return t = mo.has(t) ? t : ki(t), e.getAttribute(t);
2716
2715
  }
2717
2716
  scrapeMotionValuesFromProps(e, t, n) {
2718
- return vo(e, t, n);
2717
+ return _o(e, t, n);
2719
2718
  }
2720
2719
  build(e, t, n) {
2721
- mo(e, t, this.isSVGTag, n.transformTemplate, n.style);
2720
+ po(e, t, this.isSVGTag, n.transformTemplate, n.style);
2722
2721
  }
2723
2722
  renderInstance(e, t, n, r) {
2724
- _o(e, t, n, r);
2723
+ go(e, t, n, r);
2725
2724
  }
2726
2725
  mount(e) {
2727
- this.isSVGTag = go(e.tagName), super.mount(e);
2726
+ this.isSVGTag = ho(e.tagName), super.mount(e);
2728
2727
  }
2729
- }, bo = Ma.length;
2730
- function xo(e) {
2728
+ }, yo = ja.length;
2729
+ function bo(e) {
2731
2730
  if (!e) return;
2732
2731
  if (!e.isControllingVariants) {
2733
- let t = e.parent && xo(e.parent) || {};
2732
+ let t = e.parent && bo(e.parent) || {};
2734
2733
  return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
2735
2734
  }
2736
2735
  let t = {};
2737
- for (let n = 0; n < bo; n++) {
2738
- let r = Ma[n], i = e.props[r];
2739
- (Aa(i) || i === !1) && (t[r] = i);
2736
+ for (let n = 0; n < yo; n++) {
2737
+ let r = ja[n], i = e.props[r];
2738
+ (ka(i) || i === !1) && (t[r] = i);
2740
2739
  }
2741
2740
  return t;
2742
2741
  }
2743
2742
  //#endregion
2744
2743
  //#region ../../node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
2745
- function So(e, t) {
2744
+ function xo(e, t) {
2746
2745
  if (!Array.isArray(t)) return !1;
2747
2746
  let n = t.length;
2748
2747
  if (n !== e.length) return !1;
@@ -2751,12 +2750,12 @@ function So(e, t) {
2751
2750
  }
2752
2751
  //#endregion
2753
2752
  //#region ../../node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
2754
- var Co = [...ja].reverse(), wo = ja.length;
2755
- function To(e) {
2756
- return (t) => Promise.all(t.map(({ animation: t, options: n }) => Li(e, t, n)));
2753
+ var So = [...Aa].reverse(), Co = Aa.length;
2754
+ function wo(e) {
2755
+ return (t) => Promise.all(t.map(({ animation: t, options: n }) => Ii(e, t, n)));
2757
2756
  }
2758
- function Eo(e) {
2759
- let t = To(e), n = Oo(), r = !0, i = !1, a = (t) => (n, r) => {
2757
+ function To(e) {
2758
+ let t = wo(e), n = Do(), r = !0, i = !1, a = (t) => (n, r) => {
2760
2759
  let i = X(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
2761
2760
  if (i) {
2762
2761
  let { transition: e, transitionEnd: t, ...r } = i;
@@ -2772,12 +2771,12 @@ function Eo(e) {
2772
2771
  t = n(e);
2773
2772
  }
2774
2773
  function s(o) {
2775
- let { props: s } = e, c = xo(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
2776
- for (let t = 0; t < wo; t++) {
2777
- let p = Co[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = Aa(h), _ = p === o ? m.isActive : null;
2774
+ let { props: s } = e, c = bo(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
2775
+ for (let t = 0; t < Co; t++) {
2776
+ let p = So[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = ka(h), _ = p === o ? m.isActive : null;
2778
2777
  _ === !1 && (f = t);
2779
2778
  let v = h === c[p] && h !== s[p] && g;
2780
- if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || ka(h) || typeof h == "boolean") continue;
2779
+ if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || Oa(h) || typeof h == "boolean") continue;
2781
2780
  if (p === "exit" && m.isActive && _ !== !0) {
2782
2781
  m.prevResolvedValues && (d = {
2783
2782
  ...d,
@@ -2785,34 +2784,34 @@ function Eo(e) {
2785
2784
  });
2786
2785
  continue;
2787
2786
  }
2788
- let y = Do(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
2787
+ let y = Eo(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
2789
2788
  _ === !1 && (C = {});
2790
- let { prevResolvedValues: w = {} } = m, ee = {
2789
+ let { prevResolvedValues: w = {} } = m, T = {
2791
2790
  ...w,
2792
2791
  ...C
2793
- }, T = (t) => {
2792
+ }, E = (t) => {
2794
2793
  b = !0, u.has(t) && (x = !0, u.delete(t)), m.needsAnimating[t] = !0;
2795
2794
  let n = e.getValue(t);
2796
2795
  n && (n.liveStyle = !1);
2797
2796
  };
2798
- for (let e in ee) {
2797
+ for (let e in T) {
2799
2798
  let t = C[e], n = w[e];
2800
2799
  if (d.hasOwnProperty(e)) continue;
2801
2800
  let r = !1;
2802
- r = wi(t) && wi(n) ? !So(t, n) : t !== n, r ? t == null ? u.add(e) : T(e) : t !== void 0 && u.has(e) ? T(e) : m.protectedKeys[e] = !0;
2801
+ r = Ci(t) && Ci(n) ? !xo(t, n) : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
2803
2802
  }
2804
2803
  m.prevProp = h, m.prevResolvedValues = C, m.isActive && (d = {
2805
2804
  ...d,
2806
2805
  ...C
2807
2806
  }), (r || i) && e.blockInitialAnimation && (b = !1);
2808
- let E = v && y;
2809
- b && (!E || x) && l.push(...S.map((t) => {
2807
+ let ee = v && y;
2808
+ b && (!ee || x) && l.push(...S.map((t) => {
2810
2809
  let n = { type: p };
2811
- if (typeof t == "string" && (r || i) && !E && e.manuallyAnimateOnMount && e.parent) {
2810
+ if (typeof t == "string" && (r || i) && !ee && e.manuallyAnimateOnMount && e.parent) {
2812
2811
  let { parent: r } = e, i = X(r, t);
2813
2812
  if (r.enteringChildren && i) {
2814
2813
  let { delayChildren: t } = i.transition || {};
2815
- n.delay = ti(r.enteringChildren, e, t);
2814
+ n.delay = ei(r.enteringChildren, e, t);
2816
2815
  }
2817
2816
  }
2818
2817
  return {
@@ -2848,12 +2847,12 @@ function Eo(e) {
2848
2847
  setAnimateFunction: o,
2849
2848
  getState: () => n,
2850
2849
  reset: () => {
2851
- n = Oo(), i = !0;
2850
+ n = Do(), i = !0;
2852
2851
  }
2853
2852
  };
2854
2853
  }
2855
- function Do(e, t) {
2856
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !So(t, e) : !1;
2854
+ function Eo(e, t) {
2855
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !xo(t, e) : !1;
2857
2856
  }
2858
2857
  function Q(e = !1) {
2859
2858
  return {
@@ -2863,7 +2862,7 @@ function Q(e = !1) {
2863
2862
  prevResolvedValues: {}
2864
2863
  };
2865
2864
  }
2866
- function Oo() {
2865
+ function Do() {
2867
2866
  return {
2868
2867
  animate: Q(!0),
2869
2868
  whileInView: Q(),
@@ -2876,21 +2875,21 @@ function Oo() {
2876
2875
  }
2877
2876
  //#endregion
2878
2877
  //#region ../../node_modules/motion-dom/dist/es/events/add-dom-event.mjs
2879
- function ko(e, t, n, r = { passive: !0 }) {
2878
+ function Oo(e, t, n, r = { passive: !0 }) {
2880
2879
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
2881
2880
  }
2882
2881
  //#endregion
2883
2882
  //#region ../../node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
2884
- function Ao(e) {
2883
+ function ko(e) {
2885
2884
  return Z(e) ? e.get() : e;
2886
2885
  }
2887
2886
  //#endregion
2888
2887
  //#region ../../node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
2889
- var jo = v({
2888
+ var Ao = _({
2890
2889
  transformPagePoint: (e) => e,
2891
2890
  isStatic: !1,
2892
2891
  reducedMotion: "never"
2893
- }), Mo = v({ strict: !1 }), No = {
2892
+ }), jo = _({ strict: !1 }), Mo = {
2894
2893
  animation: [
2895
2894
  "animate",
2896
2895
  "variants",
@@ -2927,39 +2926,39 @@ var jo = v({
2927
2926
  "onViewportLeave"
2928
2927
  ],
2929
2928
  layout: ["layout", "layoutId"]
2930
- }, Po = !1;
2931
- function Fo() {
2932
- if (Po) return;
2929
+ }, No = !1;
2930
+ function Po() {
2931
+ if (No) return;
2933
2932
  let e = {};
2934
- for (let t in No) e[t] = { isEnabled: (e) => No[t].some((t) => !!e[t]) };
2935
- Ha(e), Po = !0;
2933
+ for (let t in Mo) e[t] = { isEnabled: (e) => Mo[t].some((t) => !!e[t]) };
2934
+ Va(e), No = !0;
2936
2935
  }
2937
- function Io() {
2938
- return Fo(), Ua();
2936
+ function Fo() {
2937
+ return Po(), Ha();
2939
2938
  }
2940
2939
  //#endregion
2941
2940
  //#region ../../node_modules/framer-motion/dist/es/motion/features/load-features.mjs
2942
- function Lo(e) {
2943
- let t = Io();
2941
+ function Io(e) {
2942
+ let t = Fo();
2944
2943
  for (let n in e) t[n] = {
2945
2944
  ...t[n],
2946
2945
  ...e[n]
2947
2946
  };
2948
- Ha(t);
2947
+ Va(t);
2949
2948
  }
2950
2949
  //#endregion
2951
2950
  //#region ../../node_modules/framer-motion/dist/es/components/LazyMotion/index.mjs
2952
- function Ro({ children: e, features: t, strict: n = !1 }) {
2953
- let [, r] = te(!zo(t)), i = E(void 0);
2954
- if (!zo(t)) {
2951
+ function Lo({ children: e, features: t, strict: n = !1 }) {
2952
+ let [, r] = ee(!Ro(t)), i = E(void 0);
2953
+ if (!Ro(t)) {
2955
2954
  let { renderer: e, ...n } = t;
2956
- i.current = e, Lo(n);
2955
+ i.current = e, Io(n);
2957
2956
  }
2958
- return C(() => {
2959
- zo(t) && t().then(({ renderer: e, ...t }) => {
2960
- Lo(t), i.current = e, r(!0);
2957
+ return S(() => {
2958
+ Ro(t) && t().then(({ renderer: e, ...t }) => {
2959
+ Io(t), i.current = e, r(!0);
2961
2960
  });
2962
- }, []), D(Mo.Provider, {
2961
+ }, []), O(jo.Provider, {
2963
2962
  value: {
2964
2963
  renderer: i.current,
2965
2964
  strict: n
@@ -2967,61 +2966,61 @@ function Ro({ children: e, features: t, strict: n = !1 }) {
2967
2966
  children: e
2968
2967
  });
2969
2968
  }
2970
- function zo(e) {
2969
+ function Ro(e) {
2971
2970
  return typeof e == "function";
2972
2971
  }
2973
2972
  //#endregion
2974
2973
  //#region ../../node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
2975
- var Bo = new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
2976
- function Vo(e) {
2977
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Bo.has(e);
2974
+ var zo = new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
2975
+ function Bo(e) {
2976
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || zo.has(e);
2978
2977
  }
2979
2978
  //#endregion
2980
2979
  //#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
2981
- var Ho = /* @__PURE__ */ fe({ default: () => Uo }), Uo, Wo = de((() => {
2982
- throw Uo = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
2983
- })), Go = (e) => !Vo(e);
2984
- function Ko(e) {
2985
- typeof e == "function" && (Go = (t) => t.startsWith("on") ? !Vo(t) : e(t));
2980
+ var Vo = /* @__PURE__ */ ue({ default: () => Ho }), Ho, Uo = le((() => {
2981
+ throw Ho = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
2982
+ })), Wo = (e) => !Bo(e);
2983
+ function Go(e) {
2984
+ typeof e == "function" && (Wo = (t) => t.startsWith("on") ? !Bo(t) : e(t));
2986
2985
  }
2987
2986
  try {
2988
- Ko((Wo(), me(Ho)).default);
2987
+ Go((Uo(), fe(Vo)).default);
2989
2988
  } catch {}
2990
- function qo(e, t, n) {
2989
+ function Ko(e, t, n) {
2991
2990
  let r = {};
2992
- for (let i in e) i === "values" && typeof e.values == "object" || Z(e[i]) || (Go(i) || n === !0 && Vo(i) || !t && !Vo(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
2991
+ for (let i in e) i === "values" && typeof e.values == "object" || Z(e[i]) || (Wo(i) || n === !0 && Bo(i) || !t && !Bo(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
2993
2992
  return r;
2994
2993
  }
2995
2994
  //#endregion
2996
2995
  //#region ../../node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
2997
- var Jo = /* @__PURE__ */ v({});
2996
+ var qo = /* @__PURE__ */ _({});
2998
2997
  //#endregion
2999
2998
  //#region ../../node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
3000
- function Yo(e, t) {
3001
- if (Na(e)) {
2999
+ function Jo(e, t) {
3000
+ if (Ma(e)) {
3002
3001
  let { initial: t, animate: n } = e;
3003
3002
  return {
3004
- initial: t === !1 || Aa(t) ? t : void 0,
3005
- animate: Aa(n) ? n : void 0
3003
+ initial: t === !1 || ka(t) ? t : void 0,
3004
+ animate: ka(n) ? n : void 0
3006
3005
  };
3007
3006
  }
3008
3007
  return e.inherit === !1 ? {} : t;
3009
3008
  }
3010
3009
  //#endregion
3011
3010
  //#region ../../node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
3012
- function Xo(e) {
3013
- let { initial: t, animate: n } = Yo(e, S(Jo));
3011
+ function Yo(e) {
3012
+ let { initial: t, animate: n } = Jo(e, x(qo));
3014
3013
  return T(() => ({
3015
3014
  initial: t,
3016
3015
  animate: n
3017
- }), [Zo(t), Zo(n)]);
3016
+ }), [Xo(t), Xo(n)]);
3018
3017
  }
3019
- function Zo(e) {
3018
+ function Xo(e) {
3020
3019
  return Array.isArray(e) ? e.join(" ") : e;
3021
3020
  }
3022
3021
  //#endregion
3023
3022
  //#region ../../node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
3024
- var Qo = () => ({
3023
+ var Zo = () => ({
3025
3024
  style: {},
3026
3025
  transform: {},
3027
3026
  transformOrigin: {},
@@ -3029,42 +3028,42 @@ var Qo = () => ({
3029
3028
  });
3030
3029
  //#endregion
3031
3030
  //#region ../../node_modules/framer-motion/dist/es/render/html/use-props.mjs
3032
- function $o(e, t, n) {
3033
- for (let r in t) !Z(t[r]) && !ao(r, n) && (e[r] = t[r]);
3031
+ function Qo(e, t, n) {
3032
+ for (let r in t) !Z(t[r]) && !io(r, n) && (e[r] = t[r]);
3034
3033
  }
3035
- function es({ transformTemplate: e }, t) {
3034
+ function $o({ transformTemplate: e }, t) {
3036
3035
  return T(() => {
3037
- let n = Qo();
3038
- return $a(n, t, e), Object.assign({}, n.vars, n.style);
3036
+ let n = Zo();
3037
+ return Qa(n, t, e), Object.assign({}, n.vars, n.style);
3039
3038
  }, [t]);
3040
3039
  }
3041
- function ts(e, t) {
3040
+ function es(e, t) {
3042
3041
  let n = e.style || {}, r = {};
3043
- return $o(r, n, e), Object.assign(r, es(e, t)), r;
3042
+ return Qo(r, n, e), Object.assign(r, $o(e, t)), r;
3044
3043
  }
3045
- function ns(e, t) {
3046
- let n = {}, r = ts(e, t);
3044
+ function ts(e, t) {
3045
+ let n = {}, r = es(e, t);
3047
3046
  return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
3048
3047
  }
3049
3048
  //#endregion
3050
3049
  //#region ../../node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
3051
- var rs = () => ({
3052
- ...Qo(),
3050
+ var ns = () => ({
3051
+ ...Zo(),
3053
3052
  attrs: {}
3054
3053
  });
3055
3054
  //#endregion
3056
3055
  //#region ../../node_modules/framer-motion/dist/es/render/svg/use-props.mjs
3057
- function is(e, t, n, r) {
3056
+ function rs(e, t, n, r) {
3058
3057
  let i = T(() => {
3059
- let n = rs();
3060
- return mo(n, t, go(r), e.transformTemplate, e.style), {
3058
+ let n = ns();
3059
+ return po(n, t, ho(r), e.transformTemplate, e.style), {
3061
3060
  ...n.attrs,
3062
3061
  style: { ...n.style }
3063
3062
  };
3064
3063
  }, [t]);
3065
3064
  if (e.style) {
3066
3065
  let t = {};
3067
- $o(t, e.style, e), i.style = {
3066
+ Qo(t, e.style, e), i.style = {
3068
3067
  ...t,
3069
3068
  ...i.style
3070
3069
  };
@@ -3073,7 +3072,7 @@ function is(e, t, n, r) {
3073
3072
  }
3074
3073
  //#endregion
3075
3074
  //#region ../../node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
3076
- var as = [
3075
+ var is = [
3077
3076
  "animate",
3078
3077
  "circle",
3079
3078
  "defs",
@@ -3102,42 +3101,42 @@ var as = [
3102
3101
  ];
3103
3102
  //#endregion
3104
3103
  //#region ../../node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
3105
- function os(e) {
3106
- return typeof e != "string" || e.includes("-") ? !1 : !!(as.indexOf(e) > -1 || /[A-Z]/u.test(e));
3104
+ function as(e) {
3105
+ return typeof e != "string" || e.includes("-") ? !1 : !!(is.indexOf(e) > -1 || /[A-Z]/u.test(e));
3107
3106
  }
3108
3107
  //#endregion
3109
3108
  //#region ../../node_modules/framer-motion/dist/es/render/dom/use-render.mjs
3110
- function ss(e, t, n, { latestValues: r }, i, a = !1, o) {
3111
- let s = (o ?? os(e) ? is : ns)(t, r, i, e), c = qo(t, typeof e == "string", a), l = e === _ ? {} : {
3109
+ function os(e, t, n, { latestValues: r }, i, a = !1, o) {
3110
+ let s = (o ?? as(e) ? rs : ts)(t, r, i, e), c = Ko(t, typeof e == "string", a), l = e === g ? {} : {
3112
3111
  ...c,
3113
3112
  ...s,
3114
3113
  ref: n
3115
3114
  }, { children: u } = t, d = T(() => Z(u) ? u.get() : u, [u]);
3116
- return y(e, {
3115
+ return v(e, {
3117
3116
  ...l,
3118
3117
  children: d
3119
3118
  });
3120
3119
  }
3121
3120
  //#endregion
3122
3121
  //#region ../../node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
3123
- function cs({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
3122
+ function ss({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
3124
3123
  return {
3125
- latestValues: ls(n, r, i, e),
3124
+ latestValues: cs(n, r, i, e),
3126
3125
  renderState: t()
3127
3126
  };
3128
3127
  }
3129
- function ls(e, t, n, r) {
3128
+ function cs(e, t, n, r) {
3130
3129
  let i = {}, a = r(e, {});
3131
- for (let e in a) i[e] = Ao(a[e]);
3132
- let { initial: o, animate: s } = e, c = Na(e), l = Pa(e);
3130
+ for (let e in a) i[e] = ko(a[e]);
3131
+ let { initial: o, animate: s } = e, c = Ma(e), l = Na(e);
3133
3132
  t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
3134
3133
  let u = n ? n.initial === !1 : !1;
3135
3134
  u ||= o === !1;
3136
3135
  let d = u ? s : o;
3137
- if (d && typeof d != "boolean" && !ka(d)) {
3136
+ if (d && typeof d != "boolean" && !Oa(d)) {
3138
3137
  let t = Array.isArray(d) ? d : [d];
3139
3138
  for (let n = 0; n < t.length; n++) {
3140
- let r = _i(e, t[n]);
3139
+ let r = gi(e, t[n]);
3141
3140
  if (r) {
3142
3141
  let { transitionEnd: e, transition: t, ...n } = r;
3143
3142
  for (let e in n) {
@@ -3154,25 +3153,25 @@ function ls(e, t, n, r) {
3154
3153
  }
3155
3154
  return i;
3156
3155
  }
3157
- var us = (e) => (t, n) => {
3158
- let r = S(Jo), i = S(Ce), a = () => cs(e, t, r, i);
3159
- return n ? a() : xe(a);
3160
- }, ds = /* @__PURE__ */ us({
3161
- scrapeMotionValuesFromProps: oo,
3162
- createRenderState: Qo
3163
- }), fs = /* @__PURE__ */ us({
3164
- scrapeMotionValuesFromProps: vo,
3165
- createRenderState: rs
3166
- }), ps = Symbol.for("motionComponentSymbol");
3156
+ var ls = (e) => (t, n) => {
3157
+ let r = x(qo), i = x(xe), a = () => ss(e, t, r, i);
3158
+ return n ? a() : ye(a);
3159
+ }, us = /* @__PURE__ */ ls({
3160
+ scrapeMotionValuesFromProps: ao,
3161
+ createRenderState: Zo
3162
+ }), ds = /* @__PURE__ */ ls({
3163
+ scrapeMotionValuesFromProps: _o,
3164
+ createRenderState: ns
3165
+ }), fs = Symbol.for("motionComponentSymbol");
3167
3166
  //#endregion
3168
3167
  //#region ../../node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
3169
- function ms(e, t, n) {
3168
+ function ps(e, t, n) {
3170
3169
  let r = E(n);
3171
- w(() => {
3170
+ C(() => {
3172
3171
  r.current = n;
3173
3172
  });
3174
3173
  let i = E(null);
3175
- return x((n) => {
3174
+ return b((n) => {
3176
3175
  n && e.onMount?.(n);
3177
3176
  let a = r.current;
3178
3177
  if (typeof a == "function") if (n) {
@@ -3185,16 +3184,16 @@ function ms(e, t, n) {
3185
3184
  }
3186
3185
  //#endregion
3187
3186
  //#region ../../node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
3188
- var hs = v({});
3187
+ var ms = _({});
3189
3188
  //#endregion
3190
3189
  //#region ../../node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
3191
- function gs(e) {
3190
+ function hs(e) {
3192
3191
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
3193
3192
  }
3194
3193
  //#endregion
3195
3194
  //#region ../../node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
3196
- function _s(e, t, n, r, i, a) {
3197
- let { visualElement: o } = S(Jo), s = S(Mo), c = S(Ce), l = S(jo), u = l.reducedMotion, d = l.skipAnimations, f = E(null), p = E(!1);
3195
+ function gs(e, t, n, r, i, a) {
3196
+ let { visualElement: o } = x(qo), s = x(jo), c = x(xe), l = x(Ao), u = l.reducedMotion, d = l.skipAnimations, f = E(null), p = E(!1);
3198
3197
  r ||= s.renderer, !f.current && r && (f.current = r(e, {
3199
3198
  visualState: t,
3200
3199
  parent: o,
@@ -3205,27 +3204,27 @@ function _s(e, t, n, r, i, a) {
3205
3204
  skipAnimations: d,
3206
3205
  isSVG: a
3207
3206
  }), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
3208
- let m = f.current, h = S(hs);
3209
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && vs(f.current, n, i, h);
3207
+ let m = f.current, h = x(ms);
3208
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && _s(f.current, n, i, h);
3210
3209
  let g = E(!1);
3211
- w(() => {
3210
+ C(() => {
3212
3211
  m && g.current && m.update(n, c);
3213
3212
  });
3214
- let _ = n[ji], v = E(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
3215
- return Se(() => {
3213
+ let _ = n[Ai], v = E(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
3214
+ return be(() => {
3216
3215
  p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
3217
- }), C(() => {
3216
+ }), S(() => {
3218
3217
  m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
3219
3218
  window.MotionHandoffMarkAsComplete?.(_);
3220
3219
  }), !1), m.enteringChildren = void 0);
3221
3220
  }), m;
3222
3221
  }
3223
- function vs(e, t, n, r) {
3222
+ function _s(e, t, n, r) {
3224
3223
  let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
3225
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : ys(e.parent)), e.projection.setOptions({
3224
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : vs(e.parent)), e.projection.setOptions({
3226
3225
  layoutId: i,
3227
3226
  layout: a,
3228
- alwaysMeasureLayout: !!o || s && gs(s),
3227
+ alwaysMeasureLayout: !!o || s && hs(s),
3229
3228
  visualElement: e,
3230
3229
  animationType: typeof a == "string" ? a : "both",
3231
3230
  initialPromotionConfig: r,
@@ -3235,50 +3234,50 @@ function vs(e, t, n, r) {
3235
3234
  layoutAnchor: u
3236
3235
  });
3237
3236
  }
3238
- function ys(e) {
3239
- if (e) return e.options.allowProjection === !1 ? ys(e.parent) : e.projection;
3237
+ function vs(e) {
3238
+ if (e) return e.options.allowProjection === !1 ? vs(e.parent) : e.projection;
3240
3239
  }
3241
3240
  //#endregion
3242
3241
  //#region ../../node_modules/framer-motion/dist/es/motion/index.mjs
3243
- function bs(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
3244
- r && Lo(r);
3245
- let a = n ? n === "svg" : os(e), o = a ? fs : ds;
3242
+ function ys(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
3243
+ r && Io(r);
3244
+ let a = n ? n === "svg" : as(e), o = a ? ds : us;
3246
3245
  function s(n, s) {
3247
3246
  let c, l = {
3248
- ...S(jo),
3247
+ ...x(Ao),
3249
3248
  ...n,
3250
- layoutId: xs(n)
3251
- }, { isStatic: u } = l, d = Xo(n), f = o(n, u);
3249
+ layoutId: bs(n)
3250
+ }, { isStatic: u } = l, d = Yo(n), f = o(n, u);
3252
3251
  if (!u && typeof window < "u") {
3253
- Ss(l, r);
3254
- let t = Cs(l);
3255
- c = t.MeasureLayout, d.visualElement = _s(e, f, l, i, t.ProjectionNode, a);
3252
+ xs(l, r);
3253
+ let t = Ss(l);
3254
+ c = t.MeasureLayout, d.visualElement = gs(e, f, l, i, t.ProjectionNode, a);
3256
3255
  }
3257
- return O(Jo.Provider, {
3256
+ return k(qo.Provider, {
3258
3257
  value: d,
3259
- children: [c && d.visualElement ? D(c, {
3258
+ children: [c && d.visualElement ? O(c, {
3260
3259
  visualElement: d.visualElement,
3261
3260
  ...l
3262
- }) : null, ss(e, n, ms(f, d.visualElement, s), f, u, t, a)]
3261
+ }) : null, os(e, n, ps(f, d.visualElement, s), f, u, t, a)]
3263
3262
  });
3264
3263
  }
3265
3264
  s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
3266
- let c = b(s);
3267
- return c[ps] = e, c;
3265
+ let c = y(s);
3266
+ return c[fs] = e, c;
3268
3267
  }
3269
- function xs({ layoutId: e }) {
3270
- let t = S(be).id;
3268
+ function bs({ layoutId: e }) {
3269
+ let t = x(ve).id;
3271
3270
  return t && e !== void 0 ? t + "-" + e : e;
3272
3271
  }
3273
- function Ss(e, t) {
3274
- let n = S(Mo).strict;
3272
+ function xs(e, t) {
3273
+ let n = x(jo).strict;
3275
3274
  if (process.env.NODE_ENV !== "production" && t && n) {
3276
3275
  let t = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
3277
- e.ignoreStrict ? De(!1, t, "lazy-strict-mode") : N(!1, t, "lazy-strict-mode");
3276
+ e.ignoreStrict ? Te(!1, t, "lazy-strict-mode") : P(!1, t, "lazy-strict-mode");
3278
3277
  }
3279
3278
  }
3280
- function Cs(e) {
3281
- let { drag: t, layout: n } = Io();
3279
+ function Ss(e) {
3280
+ let { drag: t, layout: n } = Fo();
3282
3281
  if (!t && !n) return {};
3283
3282
  let r = {
3284
3283
  ...t,
@@ -3291,13 +3290,13 @@ function Cs(e) {
3291
3290
  }
3292
3291
  //#endregion
3293
3292
  //#region ../../node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
3294
- var ws = (e, t) => t.isSVG ?? os(e) ? new yo(t) : new co(t, { allowProjection: e !== _ }), Ts = class extends Ka {
3293
+ var Cs = (e, t) => t.isSVG ?? as(e) ? new vo(t) : new so(t, { allowProjection: e !== g }), ws = class extends Ga {
3295
3294
  constructor(e) {
3296
- super(e), e.animationState ||= Eo(e);
3295
+ super(e), e.animationState ||= To(e);
3297
3296
  }
3298
3297
  updateAnimationControlsSubscription() {
3299
3298
  let { animate: e } = this.node.getProps();
3300
- ka(e) && (this.unmountControls = e.subscribe(this.node));
3299
+ Oa(e) && (this.unmountControls = e.subscribe(this.node));
3301
3300
  }
3302
3301
  mount() {
3303
3302
  this.updateAnimationControlsSubscription();
@@ -3309,11 +3308,11 @@ var ws = (e, t) => t.isSVG ?? os(e) ? new yo(t) : new co(t, { allowProjection: e
3309
3308
  unmount() {
3310
3309
  this.node.animationState.reset(), this.unmountControls?.();
3311
3310
  }
3312
- }, Es = 0, Ds = {
3313
- animation: { Feature: Ts },
3314
- exit: { Feature: class extends Ka {
3311
+ }, Ts = 0, Es = {
3312
+ animation: { Feature: ws },
3313
+ exit: { Feature: class extends Ga {
3315
3314
  constructor() {
3316
- super(...arguments), this.id = Es++, this.isExitComplete = !1;
3315
+ super(...arguments), this.id = Ts++, this.isExitComplete = !1;
3317
3316
  }
3318
3317
  update() {
3319
3318
  if (!this.node.presenceContext) return;
@@ -3348,7 +3347,7 @@ var ws = (e, t) => t.isSVG ?? os(e) ? new yo(t) : new co(t, { allowProjection: e
3348
3347
  };
3349
3348
  //#endregion
3350
3349
  //#region ../../node_modules/framer-motion/dist/es/events/event-info.mjs
3351
- function Os(e) {
3350
+ function Ds(e) {
3352
3351
  return { point: {
3353
3352
  x: e.pageX,
3354
3353
  y: e.pageY
@@ -3356,19 +3355,19 @@ function Os(e) {
3356
3355
  }
3357
3356
  //#endregion
3358
3357
  //#region ../../node_modules/framer-motion/dist/es/gestures/hover.mjs
3359
- function ks(e, t, n) {
3358
+ function Os(e, t, n) {
3360
3359
  let { props: r } = e;
3361
3360
  e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
3362
3361
  let i = r["onHover" + n];
3363
- i && R.postRender(() => i(t, Os(t)));
3362
+ i && R.postRender(() => i(t, Ds(t)));
3364
3363
  }
3365
- var As = class extends Ka {
3364
+ var ks = class extends Ga {
3366
3365
  mount() {
3367
3366
  let { current: e } = this.node;
3368
- e && (this.unmount = fa(e, (e, t) => (ks(this.node, t, "Start"), (e) => ks(this.node, e, "End"))));
3367
+ e && (this.unmount = da(e, (e, t) => (Os(this.node, t, "Start"), (e) => Os(this.node, e, "End"))));
3369
3368
  }
3370
3369
  unmount() {}
3371
- }, js = class extends Ka {
3370
+ }, As = class extends Ga {
3372
3371
  constructor() {
3373
3372
  super(...arguments), this.isActive = !1;
3374
3373
  }
@@ -3385,57 +3384,57 @@ var As = class extends Ka {
3385
3384
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
3386
3385
  }
3387
3386
  mount() {
3388
- this.unmount = Ne(ko(this.node.current, "focus", () => this.onFocus()), ko(this.node.current, "blur", () => this.onBlur()));
3387
+ this.unmount = Me(Oo(this.node.current, "focus", () => this.onFocus()), Oo(this.node.current, "blur", () => this.onBlur()));
3389
3388
  }
3390
3389
  unmount() {}
3391
3390
  };
3392
3391
  //#endregion
3393
3392
  //#region ../../node_modules/framer-motion/dist/es/gestures/press.mjs
3394
- function Ms(e, t, n) {
3393
+ function js(e, t, n) {
3395
3394
  let { props: r } = e;
3396
3395
  if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
3397
3396
  e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
3398
3397
  let i = r["onTap" + (n === "End" ? "" : n)];
3399
- i && R.postRender(() => i(t, Os(t)));
3398
+ i && R.postRender(() => i(t, Ds(t)));
3400
3399
  }
3401
- var Ns = class extends Ka {
3400
+ var Ms = class extends Ga {
3402
3401
  mount() {
3403
3402
  let { current: e } = this.node;
3404
3403
  if (!e) return;
3405
3404
  let { globalTapTarget: t, propagate: n } = this.node.props;
3406
- this.unmount = Ca(e, (e, t) => (Ms(this.node, t, "Start"), (e, { success: t }) => Ms(this.node, e, t ? "End" : "Cancel")), {
3405
+ this.unmount = Sa(e, (e, t) => (js(this.node, t, "Start"), (e, { success: t }) => js(this.node, e, t ? "End" : "Cancel")), {
3407
3406
  useGlobalTarget: t,
3408
3407
  stopPropagation: n?.tap === !1
3409
3408
  });
3410
3409
  }
3411
3410
  unmount() {}
3412
- }, Ps = /* @__PURE__ */ new WeakMap(), Fs = /* @__PURE__ */ new WeakMap(), Is = (e) => {
3413
- let t = Ps.get(e.target);
3411
+ }, Ns = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Fs = (e) => {
3412
+ let t = Ns.get(e.target);
3414
3413
  t && t(e);
3415
- }, Ls = (e) => {
3416
- e.forEach(Is);
3414
+ }, Is = (e) => {
3415
+ e.forEach(Fs);
3417
3416
  };
3418
- function Rs({ root: e, ...t }) {
3417
+ function Ls({ root: e, ...t }) {
3419
3418
  let n = e || document;
3420
- Fs.has(n) || Fs.set(n, {});
3421
- let r = Fs.get(n), i = JSON.stringify(t);
3422
- return r[i] || (r[i] = new IntersectionObserver(Ls, {
3419
+ Ps.has(n) || Ps.set(n, {});
3420
+ let r = Ps.get(n), i = JSON.stringify(t);
3421
+ return r[i] || (r[i] = new IntersectionObserver(Is, {
3423
3422
  root: e,
3424
3423
  ...t
3425
3424
  })), r[i];
3426
3425
  }
3427
- function zs(e, t, n) {
3428
- let r = Rs(t);
3429
- return Ps.set(e, n), r.observe(e), () => {
3430
- Ps.delete(e), r.unobserve(e);
3426
+ function Rs(e, t, n) {
3427
+ let r = Ls(t);
3428
+ return Ns.set(e, n), r.observe(e), () => {
3429
+ Ns.delete(e), r.unobserve(e);
3431
3430
  };
3432
3431
  }
3433
3432
  //#endregion
3434
3433
  //#region ../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
3435
- var Bs = {
3434
+ var zs = {
3436
3435
  some: 0,
3437
3436
  all: 1
3438
- }, Vs = class extends Ka {
3437
+ }, Bs = class extends Ga {
3439
3438
  constructor() {
3440
3439
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
3441
3440
  }
@@ -3444,9 +3443,9 @@ var Bs = {
3444
3443
  let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
3445
3444
  root: t ? t.current : void 0,
3446
3445
  rootMargin: n,
3447
- threshold: typeof r == "number" ? r : Bs[r]
3446
+ threshold: typeof r == "number" ? r : zs[r]
3448
3447
  };
3449
- this.stopObserver = zs(this.node.current, a, (e) => {
3448
+ this.stopObserver = Rs(this.node.current, a, (e) => {
3450
3449
  let { isIntersecting: t } = e;
3451
3450
  if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
3452
3451
  t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
@@ -3464,39 +3463,39 @@ var Bs = {
3464
3463
  "amount",
3465
3464
  "margin",
3466
3465
  "root"
3467
- ].some(Hs(e, t)) && this.startObserver();
3466
+ ].some(Vs(e, t)) && this.startObserver();
3468
3467
  }
3469
3468
  unmount() {
3470
3469
  this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
3471
3470
  }
3472
3471
  };
3473
- function Hs({ viewport: e = {} }, { viewport: t = {} } = {}) {
3472
+ function Vs({ viewport: e = {} }, { viewport: t = {} } = {}) {
3474
3473
  return (n) => e[n] !== t[n];
3475
3474
  }
3476
3475
  //#endregion
3477
3476
  //#region ../../node_modules/framer-motion/dist/es/motion/features/gestures.mjs
3478
- var Us = {
3479
- inView: { Feature: Vs },
3480
- tap: { Feature: Ns },
3481
- focus: { Feature: js },
3482
- hover: { Feature: As }
3483
- }, Ws = {
3484
- renderer: ws,
3485
- ...Ds,
3486
- ...Us
3477
+ var Hs = {
3478
+ inView: { Feature: Bs },
3479
+ tap: { Feature: Ms },
3480
+ focus: { Feature: As },
3481
+ hover: { Feature: ks }
3482
+ }, Us = {
3483
+ renderer: Cs,
3484
+ ...Es,
3485
+ ...Hs
3487
3486
  };
3488
3487
  //#endregion
3489
3488
  //#region ../../node_modules/framer-motion/dist/es/render/components/m/create.mjs
3490
- function Gs(e, t) {
3491
- return bs(e, t);
3489
+ function Ws(e, t) {
3490
+ return ys(e, t);
3492
3491
  }
3493
3492
  //#endregion
3494
3493
  //#region ../../node_modules/framer-motion/dist/es/render/components/m/elements.mjs
3495
- var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ icon: e = f, "aria-hidden": t = !0, ...n }) => {
3496
- let r = g.useContext($);
3497
- return /* @__PURE__ */ D(i.Icon, {
3498
- as: qs,
3499
- animate: { rotate: r.open ? 180 : 0 },
3494
+ var Gs = /* @__PURE__ */ Ws("div"), Ks = /* @__PURE__ */ Ws("span"), qs = ({ icon: e = d, "aria-hidden": t = !0, ...n }) => {
3495
+ let i = h.useContext($);
3496
+ return /* @__PURE__ */ O(r.Icon, {
3497
+ as: Ks,
3498
+ animate: { rotate: i.open ? 180 : 0 },
3500
3499
  transition: {
3501
3500
  duration: .15,
3502
3501
  type: "spring",
@@ -3506,37 +3505,37 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3506
3505
  "aria-hidden": t,
3507
3506
  ...n
3508
3507
  });
3509
- }, Ys = ({ tooltipProps: e, ...t }) => {
3510
- let n = g.useContext($), r = () => {
3511
- if (k(n.value)) {
3508
+ }, Js = ({ tooltipProps: e, ...t }) => {
3509
+ let n = h.useContext($), i = () => {
3510
+ if (A(n.value)) {
3512
3511
  let e = n.onValueChange;
3513
3512
  e?.([]);
3514
3513
  }
3515
- if (A(n.value)) {
3514
+ if (j(n.value)) {
3516
3515
  let e = n.onValueChange;
3517
3516
  e?.(void 0);
3518
3517
  }
3519
3518
  n.triggerRef?.current?.focus();
3520
3519
  };
3521
- return g.useMemo(() => {
3522
- if (A(n.value)) return n.clearable && n.value;
3523
- if (k(n.value)) return n.clearable && n.value?.length > 0;
3524
- }, [n.clearable, n.value]) ? /* @__PURE__ */ D(ie, {
3520
+ return h.useMemo(() => {
3521
+ if (j(n.value)) return n.clearable && n.value;
3522
+ if (A(n.value)) return n.clearable && n.value?.length > 0;
3523
+ }, [n.clearable, n.value]) ? /* @__PURE__ */ O(ne, {
3525
3524
  label: "Clear field",
3526
3525
  ...e,
3527
- children: /* @__PURE__ */ D(i, {
3526
+ children: /* @__PURE__ */ O(r, {
3528
3527
  type: "button",
3529
3528
  icon: {
3530
- icon: h,
3529
+ icon: m,
3531
3530
  alt: "Clear field"
3532
3531
  },
3533
3532
  size: "0",
3534
3533
  variant: "ghost",
3535
3534
  onClick: (e) => {
3536
- n.value && (e.stopPropagation(), r());
3535
+ n.value && (e.stopPropagation(), i());
3537
3536
  },
3538
3537
  onKeyDown: (e) => {
3539
- (e.key === "Enter" || e.key === " ") && (e.stopPropagation(), e.preventDefault(), r());
3538
+ (e.key === "Enter" || e.key === " ") && (e.stopPropagation(), e.preventDefault(), i());
3540
3539
  },
3541
3540
  "data-tgph-combobox-clear": !0,
3542
3541
  style: {
@@ -3546,10 +3545,10 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3546
3545
  ...t
3547
3546
  })
3548
3547
  }) : null;
3549
- }, Xs = ({ children: e, ...t }) => {
3550
- let n = g.useContext($), r = g.useMemo(() => {
3551
- if (!A(n.value)) return;
3552
- let e = _e(n.value, n.options, n.legacyBehavior), t = e?.label || e?.value || n.placeholder;
3548
+ }, Ys = ({ children: e, ...t }) => {
3549
+ let n = h.useContext($), i = h.useMemo(() => {
3550
+ if (!j(n.value)) return;
3551
+ let e = he(n.value, n.options, n.legacyBehavior), t = e?.label || e?.value || n.placeholder;
3553
3552
  return n.legacyBehavior && n?.value?.label || t;
3554
3553
  }, [
3555
3554
  n.value,
@@ -3557,27 +3556,27 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3557
3556
  n.legacyBehavior,
3558
3557
  n.placeholder
3559
3558
  ]);
3560
- return /* @__PURE__ */ D(ae, { children: /* @__PURE__ */ D(i.Text, {
3559
+ return /* @__PURE__ */ O(re, { children: /* @__PURE__ */ O(r.Text, {
3561
3560
  color: n.value ? "default" : "gray",
3562
3561
  textOverflow: "ellipsis",
3563
3562
  overflow: "hidden",
3564
3563
  ...t,
3565
- children: e || r
3564
+ children: e || i
3566
3565
  }) });
3567
- }, Zs = ({ children: e, ...t }) => {
3568
- let n = g.useContext($);
3569
- return /* @__PURE__ */ D(ae, { children: /* @__PURE__ */ D(i.Text, {
3566
+ }, Xs = ({ children: e, ...t }) => {
3567
+ let n = h.useContext($);
3568
+ return /* @__PURE__ */ O(re, { children: /* @__PURE__ */ O(r.Text, {
3570
3569
  color: "gray",
3571
3570
  textOverflow: "ellipsis",
3572
3571
  overflow: "hidden",
3573
3572
  ...t,
3574
3573
  children: e || n.placeholder
3575
3574
  }) });
3576
- }, Qs = ({ children: e }) => {
3577
- let t = g.useContext($);
3578
- if (!k(t.value)) return null;
3575
+ }, Zs = ({ children: e }) => {
3576
+ let t = h.useContext($);
3577
+ if (!A(t.value)) return null;
3579
3578
  let n = t.layout || "truncate", r = (t.value.length - 2).toString().split("");
3580
- return /* @__PURE__ */ O(l, {
3579
+ return /* @__PURE__ */ k(c, {
3581
3580
  gap: "0_5",
3582
3581
  w: "full",
3583
3582
  wrap: n === "wrap" ? "wrap" : "nowrap",
@@ -3586,8 +3585,8 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3586
3585
  position: "relative",
3587
3586
  flexGrow: 1
3588
3587
  },
3589
- children: [e, n === "truncate" && t.value.length > 2 && /* @__PURE__ */ D(l, {
3590
- as: Ks,
3588
+ children: [e, n === "truncate" && t.value.length > 2 && /* @__PURE__ */ O(c, {
3589
+ as: Gs,
3591
3590
  initial: { opacity: 0 },
3592
3591
  animate: { opacity: 1 },
3593
3592
  exit: { opacity: 0 },
@@ -3604,14 +3603,14 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3604
3603
  position: "absolute",
3605
3604
  right: "0",
3606
3605
  style: { backgroundImage: "linear-gradient(to left, var(--tgph-surface-1) 0 60%, transparent 90% 100%)" },
3607
- children: /* @__PURE__ */ O(d, {
3606
+ children: /* @__PURE__ */ k(u, {
3608
3607
  as: "span",
3609
3608
  size: "1",
3610
3609
  style: { whiteSpace: "nowrap" },
3611
3610
  children: [
3612
3611
  "+",
3613
- r.map((e) => /* @__PURE__ */ D(c, {
3614
- as: qs,
3612
+ r.map((e) => /* @__PURE__ */ O(s, {
3613
+ as: Ks,
3615
3614
  initial: { opacity: 0 },
3616
3615
  animate: { opacity: 1 },
3617
3616
  exit: { opacity: 0 },
@@ -3630,10 +3629,10 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3630
3629
  })
3631
3630
  })]
3632
3631
  });
3633
- }, $s = g.createContext({ value: "" }), ec = ({ value: e, children: t, ...n }) => /* @__PURE__ */ D($s.Provider, {
3632
+ }, Qs = h.createContext({ value: "" }), $s = ({ value: e, children: t, ...n }) => /* @__PURE__ */ O(Qs.Provider, {
3634
3633
  value: { value: e },
3635
- children: /* @__PURE__ */ D(re.Root, {
3636
- as: qs,
3634
+ children: /* @__PURE__ */ O(D.Root, {
3635
+ as: Ks,
3637
3636
  initial: {
3638
3637
  opacity: 0,
3639
3638
  scale: .5
@@ -3658,12 +3657,12 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3658
3657
  ...n,
3659
3658
  children: t
3660
3659
  })
3661
- }), tc = ({ children: e, ...t }) => {
3662
- let n = g.useContext($), r = g.useContext($s), i = g.useMemo(() => {
3660
+ }), ec = ({ children: e, ...t }) => {
3661
+ let n = h.useContext($), r = h.useContext(Qs), i = h.useMemo(() => {
3663
3662
  let e = n.options.find((e) => e.value === r.value);
3664
3663
  if (e) return e.label || e.value;
3665
3664
  if (!n.value) return;
3666
- let t = n.value.find((e) => j(e, n.legacyBehavior) === r.value);
3665
+ let t = n.value.find((e) => M(e, n.legacyBehavior) === r.value);
3667
3666
  if (t) return t;
3668
3667
  }, [
3669
3668
  n.options,
@@ -3671,71 +3670,71 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3671
3670
  r.value,
3672
3671
  n.legacyBehavior
3673
3672
  ]);
3674
- return /* @__PURE__ */ D(re.Text, {
3673
+ return /* @__PURE__ */ O(D.Text, {
3675
3674
  ...t,
3676
3675
  children: e || i
3677
3676
  });
3678
- }, nc = ({ children: e, ...t }) => {
3679
- let n = g.useContext($), r = g.useContext($s);
3680
- return /* @__PURE__ */ D(re.Button, {
3677
+ }, tc = ({ children: e, ...t }) => {
3678
+ let n = h.useContext($), r = h.useContext(Qs);
3679
+ return /* @__PURE__ */ O(D.Button, {
3681
3680
  icon: {
3682
- icon: h,
3681
+ icon: m,
3683
3682
  alt: `Remove ${r.value}`
3684
3683
  },
3685
3684
  height: "full",
3686
3685
  onClick: (e) => {
3687
3686
  if (!n.onValueChange) return;
3688
- let t = n.onValueChange, i = n.value.filter((e) => j(e, n.legacyBehavior) !== r.value);
3687
+ let t = n.onValueChange, i = n.value.filter((e) => M(e, n.legacyBehavior) !== r.value);
3689
3688
  t?.(i), e.stopPropagation(), e.preventDefault();
3690
3689
  },
3691
3690
  "data-tgph-combobox-tag-button": !0,
3692
3691
  ...t,
3693
3692
  children: e
3694
3693
  });
3695
- }, rc = ({ value: e, children: t, ...n }) => /* @__PURE__ */ O(oc.Root, {
3694
+ }, nc = ({ value: e, children: t, ...n }) => /* @__PURE__ */ k(ac.Root, {
3696
3695
  value: e,
3697
3696
  ...n,
3698
- children: [/* @__PURE__ */ D(oc.Text, { children: t }), /* @__PURE__ */ D(oc.Button, {})]
3699
- }), ic = (e) => /* @__PURE__ */ D(l, {
3697
+ children: [/* @__PURE__ */ O(ac.Text, { children: t }), /* @__PURE__ */ O(ac.Button, {})]
3698
+ }), rc = (e) => /* @__PURE__ */ O(c, {
3700
3699
  align: "center",
3701
3700
  gap: "1",
3702
3701
  ...e
3703
- }), ac = () => {
3704
- let e = g.useContext($);
3705
- if (e.value && k(e.value)) {
3702
+ }), ic = () => {
3703
+ let e = h.useContext($);
3704
+ if (e.value && A(e.value)) {
3706
3705
  let t = e.layout || "truncate";
3707
- return e.value.length === 0 ? /* @__PURE__ */ D(Zs, {}) : /* @__PURE__ */ D(Ro, {
3708
- features: Ws,
3709
- children: /* @__PURE__ */ D(Qs, { children: e.value.map((n, r) => {
3710
- let i = j(n, e.legacyBehavior);
3711
- if (i && (t === "truncate" && r <= 1 || t === "wrap")) return /* @__PURE__ */ D(ne, { children: /* @__PURE__ */ D(oc.Default, { value: i }) }, i);
3706
+ return e.value.length === 0 ? /* @__PURE__ */ O(Xs, {}) : /* @__PURE__ */ O(Lo, {
3707
+ features: Us,
3708
+ children: /* @__PURE__ */ O(Zs, { children: e.value.map((n, r) => {
3709
+ let i = M(n, e.legacyBehavior);
3710
+ if (i && (t === "truncate" && r <= 1 || t === "wrap")) return /* @__PURE__ */ O(te, { children: /* @__PURE__ */ O(ac.Default, { value: i }) }, i);
3712
3711
  }) })
3713
3712
  });
3714
3713
  }
3715
- if (e && A(e.value)) return e.value ? /* @__PURE__ */ D(Xs, {}) : /* @__PURE__ */ D(Zs, {});
3714
+ if (e && j(e.value)) return e.value ? /* @__PURE__ */ O(Ys, {}) : /* @__PURE__ */ O(Xs, {});
3715
+ }, ac = {
3716
+ Root: $s,
3717
+ Text: ec,
3718
+ Button: tc,
3719
+ Default: nc
3716
3720
  }, oc = {
3717
- Root: ec,
3718
- Text: tc,
3719
- Button: nc,
3720
- Default: rc
3721
- }, sc = {
3722
- TriggerIndicator: Js,
3723
- TriggerClear: Ys,
3724
- TriggerText: Xs,
3725
- TriggerPlaceholder: Zs,
3726
- TriggerTagsContainer: Qs,
3727
- TriggerActionsContainer: ic,
3728
- TriggerTag: oc,
3729
- TriggerValue: ac
3730
- }, cc = [
3721
+ TriggerIndicator: qs,
3722
+ TriggerClear: Js,
3723
+ TriggerText: Ys,
3724
+ TriggerPlaceholder: Xs,
3725
+ TriggerTagsContainer: Zs,
3726
+ TriggerActionsContainer: rc,
3727
+ TriggerTag: ac,
3728
+ TriggerValue: ic
3729
+ }, sc = [
3731
3730
  "ArrowDown",
3732
3731
  "PageUp",
3733
3732
  "Home"
3734
- ], lc = [
3733
+ ], cc = [
3735
3734
  "ArrowUp",
3736
3735
  "PageDown",
3737
3736
  "End"
3738
- ], uc = ["Enter", " "], $ = g.createContext({
3737
+ ], lc = ["Enter", " "], $ = h.createContext({
3739
3738
  value: void 0,
3740
3739
  onValueChange: () => {},
3741
3740
  contentId: "",
@@ -3747,178 +3746,175 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3747
3746
  disabled: !1,
3748
3747
  options: [],
3749
3748
  legacyBehavior: !1
3750
- }), dc = ({ modal: e = !0, closeOnSelect: t = !0, clearable: r = !1, disabled: i = !1, legacyBehavior: a = !1, open: o, onOpenChange: s, defaultOpen: c, value: l, defaultValue: d, onValueChange: f, errored: p, placeholder: m, layout: h, defaultScrollToValue: _, children: v, ...y }) => {
3751
- let b = g.useId(), x = g.useId(), S = g.useRef(null), C = g.useRef(null), w = g.useRef(null), ee = g.useMemo(() => ge(v), [v]), [T, E] = g.useState(""), [te = !1, ne] = n({
3749
+ }), uc = ({ modal: e = !0, closeOnSelect: n = !0, clearable: r = !1, disabled: i = !1, legacyBehavior: a = !1, open: o, onOpenChange: s, defaultOpen: c, value: u, defaultValue: d, onValueChange: f, errored: p, placeholder: m, layout: g, defaultScrollToValue: _, children: v, ...y }) => {
3750
+ let b = h.useId(), x = h.useId(), S = h.useRef(null), C = h.useRef(null), w = h.useRef(null), T = h.useMemo(() => me(v), [v]), [E, ee] = h.useState(""), [te = !1, D] = t({
3752
3751
  prop: o,
3753
3752
  defaultProp: c ?? !1,
3754
3753
  onChange: s
3755
- }), [re, ie] = n({
3756
- prop: l,
3754
+ }), [ne, re] = t({
3755
+ prop: u,
3757
3756
  defaultProp: d,
3758
3757
  onChange: f
3759
- }), ae = g.useCallback(() => {
3760
- ne((e) => !e);
3761
- }, [ne]);
3762
- return g.useEffect(() => {
3763
- te || E("");
3764
- }, [te]), /* @__PURE__ */ D($.Provider, {
3758
+ }), ie = h.useCallback(() => {
3759
+ D((e) => !e);
3760
+ }, [D]);
3761
+ return h.useEffect(() => {
3762
+ te || ee("");
3763
+ }, [te]), /* @__PURE__ */ O($.Provider, {
3765
3764
  value: {
3766
3765
  contentId: b,
3767
3766
  triggerId: x,
3768
- value: re,
3769
- onValueChange: ie,
3767
+ value: ne,
3768
+ onValueChange: re,
3770
3769
  placeholder: m,
3771
3770
  open: te,
3772
- setOpen: ne,
3773
- onOpenToggle: ae,
3774
- closeOnSelect: t,
3771
+ setOpen: D,
3772
+ onOpenToggle: ie,
3773
+ closeOnSelect: n,
3775
3774
  clearable: r,
3776
3775
  disabled: i,
3777
- searchQuery: T,
3778
- setSearchQuery: E,
3776
+ searchQuery: E,
3777
+ setSearchQuery: ee,
3779
3778
  triggerRef: S,
3780
3779
  searchRef: C,
3781
3780
  contentRef: w,
3782
3781
  errored: p,
3783
- layout: h,
3784
- options: ee,
3782
+ layout: g,
3783
+ options: T,
3785
3784
  legacyBehavior: a,
3786
3785
  defaultScrollToValue: _
3787
3786
  },
3788
- children: /* @__PURE__ */ D(u.Root, {
3787
+ children: /* @__PURE__ */ O(l.Root, {
3789
3788
  open: te,
3790
- onOpenChange: ne,
3789
+ onOpenChange: D,
3791
3790
  modal: e,
3792
3791
  ...y,
3793
3792
  children: v
3794
3793
  })
3795
3794
  });
3796
- }, fc = ({ size: e = "1", children: t, ...n }) => {
3797
- let r = g.useContext($), a = k(r.value) && r.value.length > 0, o = g.useMemo(() => {
3798
- if (r.value) {
3799
- if (A(r.value)) return _e(r.value, r.options, r.legacyBehavior);
3800
- if (k(r.value)) return r.value.map((e) => _e(e, r.options, r.legacyBehavior));
3795
+ }, dc = ({ size: e = "1", children: t, ...n }) => {
3796
+ let i = h.useContext($), a = A(i.value) && i.value.length > 0, o = h.useMemo(() => {
3797
+ if (i.value) {
3798
+ if (j(i.value)) return he(i.value, i.options, i.legacyBehavior);
3799
+ if (A(i.value)) return i.value.map((e) => he(e, i.options, i.legacyBehavior));
3801
3800
  }
3802
3801
  }, [
3803
- r.value,
3804
- r.options,
3805
- r.legacyBehavior
3806
- ]), s = g.useCallback(() => o ? A(o) ? o?.label || o?.value || r.placeholder : k(o) && o.map((e) => e?.label || e?.value).join(", ") || r.placeholder : r.placeholder, [o, r.placeholder]);
3807
- return /* @__PURE__ */ D(u.Trigger, {
3802
+ i.value,
3803
+ i.options,
3804
+ i.legacyBehavior
3805
+ ]), s = h.useCallback(() => o ? j(o) ? o?.label || o?.value || i.placeholder : A(o) && o.map((e) => e?.label || e?.value).join(", ") || i.placeholder : i.placeholder, [o, i.placeholder]);
3806
+ return /* @__PURE__ */ O(l.Trigger, {
3808
3807
  ...n,
3809
3808
  asChild: !0,
3810
3809
  onClick: (e) => {
3811
- e.preventDefault(), r.onOpenToggle(), r.triggerRef?.current?.focus();
3810
+ e.preventDefault(), i.onOpenToggle(), i.triggerRef?.current?.focus();
3812
3811
  },
3813
3812
  onKeyDown: (e) => {
3814
- if (e.target === r.triggerRef?.current) {
3813
+ if (e.target === i.triggerRef?.current) {
3815
3814
  if (e.key === "Tab") {
3816
3815
  e.stopPropagation();
3817
3816
  return;
3818
3817
  }
3819
- if (e.key === "ArrowDown" || uc.includes(e.key)) {
3820
- e.stopPropagation(), e.preventDefault(), r.onOpenToggle();
3818
+ if (e.key === "ArrowDown" || lc.includes(e.key)) {
3819
+ e.stopPropagation(), e.preventDefault(), i.onOpenToggle();
3821
3820
  return;
3822
3821
  }
3823
3822
  }
3824
3823
  },
3825
- tgphRef: r.triggerRef,
3826
- children: /* @__PURE__ */ D(i.Root, {
3827
- id: r.triggerId,
3824
+ tgphRef: i.triggerRef,
3825
+ children: /* @__PURE__ */ O(r.Root, {
3826
+ id: i.triggerId,
3828
3827
  type: "button",
3829
- bg: "surface-3",
3828
+ bg: "surface-1",
3830
3829
  variant: "outline",
3831
3830
  align: "center",
3832
- minH: he[e],
3831
+ minH: pe[e],
3833
3832
  h: "full",
3834
3833
  w: "full",
3835
3834
  py: "0_5",
3836
3835
  pr: "1_5",
3837
3836
  pl: a ? "0_5" : "1_5",
3838
3837
  size: e,
3839
- color: r.errored ? "red" : "gray",
3838
+ color: i.errored ? "red" : "gray",
3840
3839
  justify: "space-between",
3841
3840
  role: "combobox",
3842
3841
  "aria-label": s(),
3843
- "aria-controls": r.contentId,
3844
- "aria-expanded": r.open,
3842
+ "aria-controls": i.contentId,
3843
+ "aria-expanded": i.open,
3845
3844
  "aria-haspopup": "listbox",
3846
3845
  "data-tgph-combobox-trigger": !0,
3847
- "data-tgph-combobox-trigger-open": r.open,
3848
- disabled: r.disabled,
3846
+ "data-tgph-combobox-trigger-open": i.open,
3847
+ disabled: i.disabled,
3849
3848
  ...n,
3850
- children: t ? typeof t == "function" ? t({ value: o }) : t : /* @__PURE__ */ O(oe, { children: [/* @__PURE__ */ D(sc.TriggerValue, {}), /* @__PURE__ */ O(sc.TriggerActionsContainer, { children: [/* @__PURE__ */ D(sc.TriggerClear, {}), /* @__PURE__ */ D(sc.TriggerIndicator, {})] })] })
3849
+ children: t ? typeof t == "function" ? t({ value: o }) : t : /* @__PURE__ */ k(ie, { children: [/* @__PURE__ */ O(oc.TriggerValue, {}), /* @__PURE__ */ k(oc.TriggerActionsContainer, { children: [/* @__PURE__ */ O(oc.TriggerClear, {}), /* @__PURE__ */ O(oc.TriggerIndicator, {})] })] })
3851
3850
  })
3852
3851
  });
3853
- }, pc = ({ style: n, children: r, tgphRef: i, ...o }) => {
3854
- let s = g.useContext($), c = g.useRef(!1), d = a(i, s.contentRef), f = g.useRef(null), [p, m] = g.useState(0), [h, _] = g.useState(!1), v = g.useCallback((e) => {
3852
+ }, fc = ({ style: t, children: n, tgphRef: r, ...a }) => {
3853
+ let o = h.useContext($), s = h.useRef(!1), u = i(r, o.contentRef), d = h.useRef(null), [f, p] = h.useState(0), [m, g] = h.useState(!1), _ = h.useCallback((e) => {
3855
3854
  let t = e?.getBoundingClientRect();
3856
- t && m(t.height), h || _(!0);
3857
- }, [h]);
3858
- return g.useEffect(() => {
3855
+ t && p(t.height), m || g(!0);
3856
+ }, [m]);
3857
+ return h.useEffect(() => {
3859
3858
  let e = new ResizeObserver((e) => {
3860
3859
  for (let t of e) {
3861
3860
  let e = t.target;
3862
- v(e);
3861
+ _(e);
3863
3862
  }
3864
3863
  });
3865
- return f.current && h && e.observe(f.current), () => e.disconnect();
3866
- }, [h, v]), g.useEffect(() => {
3867
- h === !0 && s.open === !1 && _(!1);
3868
- }, [s.open, h]), g.useEffect(() => {
3864
+ return d.current && m && e.observe(d.current), () => e.disconnect();
3865
+ }, [m, _]), h.useEffect(() => {
3866
+ m === !0 && o.open === !1 && g(!1);
3867
+ }, [o.open, m]), h.useEffect(() => {
3869
3868
  let e;
3870
- return s.open && (e = setTimeout(() => {
3871
- v(f.current);
3869
+ return o.open && (e = setTimeout(() => {
3870
+ _(d.current);
3872
3871
  }, 10)), () => e && clearTimeout(e);
3873
- }, [s.open, v]), /* @__PURE__ */ D(t.Root, {
3874
- asChild: !0,
3875
- children: /* @__PURE__ */ D(e, {
3876
- onEscapeKeyDown: (e) => {
3877
- s.open && (e.stopPropagation(), e.preventDefault(), s.setOpen(!1));
3872
+ }, [o.open, _]), /* @__PURE__ */ O(e, {
3873
+ onEscapeKeyDown: (e) => {
3874
+ o.open && (e.stopPropagation(), e.preventDefault(), o.setOpen(!1));
3875
+ },
3876
+ children: /* @__PURE__ */ O(l.Content, {
3877
+ className: "tgph",
3878
+ mt: "1",
3879
+ onCloseAutoFocus: (e) => {
3880
+ s.current || o.triggerRef?.current?.focus(), s.current = !1, e.preventDefault();
3878
3881
  },
3879
- children: /* @__PURE__ */ D(u.Content, {
3880
- className: "tgph",
3881
- mt: "1",
3882
- onCloseAutoFocus: (e) => {
3883
- c.current || s.triggerRef?.current?.focus(), c.current = !1, e.preventDefault();
3884
- },
3885
- bg: "surface-1",
3886
- style: {
3887
- width: "var(--tgph-combobox-trigger-width)",
3888
- transition: "min-height 200ms ease-in-out",
3889
- minHeight: p ? `${p}px` : "0",
3890
- ...n,
3891
- "--tgph-combobox-content-transform-origin": "var(--radix-popper-transform-origin)",
3892
- "--tgph-combobox-content-available-width": "var(--radix-popper-available-width)",
3893
- "--tgph-combobox-content-available-height": "calc(var(--radix-popper-available-height) - var(--tgph-spacing-8))",
3894
- "--tgph-combobox-trigger-width": "var(--radix-popper-anchor-width)",
3895
- "--tgph-combobox-trigger-height": "var(--radix-popper-anchor-height)"
3896
- },
3897
- ...o,
3882
+ bg: "surface-1",
3883
+ style: {
3884
+ width: "var(--tgph-combobox-trigger-width)",
3885
+ transition: "min-height 200ms ease-in-out",
3886
+ minHeight: f ? `${f}px` : "0",
3887
+ ...t,
3888
+ "--tgph-combobox-content-transform-origin": "var(--radix-popper-transform-origin)",
3889
+ "--tgph-combobox-content-available-width": "var(--radix-popper-available-width)",
3890
+ "--tgph-combobox-content-available-height": "calc(var(--radix-popper-available-height) - var(--tgph-spacing-8))",
3891
+ "--tgph-combobox-trigger-width": "var(--radix-popper-anchor-width)",
3892
+ "--tgph-combobox-trigger-height": "var(--radix-popper-anchor-height)"
3893
+ },
3894
+ ...a,
3895
+ tgphRef: u,
3896
+ "data-tgph-combobox-content": !0,
3897
+ "data-tgph-combobox-content-open": o.open,
3898
+ role: void 0,
3899
+ "aria-orientation": void 0,
3900
+ onKeyDown: (e) => {
3901
+ e.stopPropagation();
3902
+ let t = o.contentRef?.current?.querySelectorAll("[data-tgph-combobox-option]");
3903
+ document.activeElement === t?.[0] && cc.includes(e.key) && o.searchRef?.current?.focus();
3904
+ },
3905
+ children: /* @__PURE__ */ O(c, {
3906
+ direction: "column",
3907
+ gap: "1",
3898
3908
  tgphRef: d,
3899
- "data-tgph-combobox-content": !0,
3900
- "data-tgph-combobox-content-open": s.open,
3901
- role: void 0,
3902
- "aria-orientation": void 0,
3903
- onKeyDown: (e) => {
3904
- e.stopPropagation();
3905
- let t = s.contentRef?.current?.querySelectorAll("[data-tgph-combobox-option]");
3906
- document.activeElement === t?.[0] && lc.includes(e.key) && s.searchRef?.current?.focus();
3907
- },
3908
- children: /* @__PURE__ */ D(l, {
3909
- direction: "column",
3910
- gap: "1",
3911
- tgphRef: f,
3912
- children: r
3913
- })
3909
+ children: n
3914
3910
  })
3915
3911
  })
3916
3912
  });
3917
- }, mc = ({ tgphRef: e, ...t }) => {
3918
- let n = g.useContext($), r = g.useRef(null), i = a(e, r);
3919
- return g.useEffect(() => {
3913
+ }, pc = ({ tgphRef: e, ...t }) => {
3914
+ let n = h.useContext($), r = h.useRef(null), a = i(e, r);
3915
+ return h.useEffect(() => {
3920
3916
  n.open && r.current && requestAnimationFrame(() => {
3921
- let e = (A(n.value) ? j(n.value, n.legacyBehavior) : k(n.value) && n.value.length > 0 ? j(n.value[0], n.legacyBehavior) : null) ?? n.defaultScrollToValue;
3917
+ let e = (j(n.value) ? M(n.value, n.legacyBehavior) : A(n.value) && n.value.length > 0 ? M(n.value[0], n.legacyBehavior) : null) ?? n.defaultScrollToValue;
3922
3918
  if (e) {
3923
3919
  let t = r.current?.querySelectorAll("[data-tgph-combobox-option]"), n = Array.from(t || []).find((t) => t.getAttribute("data-tgph-combobox-option-value") === e);
3924
3920
  n && typeof n.scrollIntoView == "function" && n.scrollIntoView({ block: "center" });
@@ -3929,7 +3925,7 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3929
3925
  n.value,
3930
3926
  n.legacyBehavior,
3931
3927
  n.defaultScrollToValue
3932
- ]), /* @__PURE__ */ D(l, {
3928
+ ]), /* @__PURE__ */ O(c, {
3933
3929
  id: n.contentId,
3934
3930
  direction: "column",
3935
3931
  gap: "1",
@@ -3938,27 +3934,27 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3938
3934
  "--max-height": t.maxHeight ? void 0 : "calc(var(--tgph-combobox-content-available-height) - var(--tgph-spacing-12))"
3939
3935
  },
3940
3936
  role: "listbox",
3941
- tgphRef: i,
3937
+ tgphRef: a,
3942
3938
  ...t
3943
3939
  });
3944
- }, hc = ({ value: e, label: t, selected: n, onSelect: r, children: i, ...a }) => {
3945
- let o = g.useContext($), [s, c] = g.useState(!1), l = o.value, d = !o.searchQuery || ve({
3940
+ }, mc = ({ value: e, label: t, selected: n, onSelect: r, children: i, ...a }) => {
3941
+ let o = h.useContext($), [s, c] = h.useState(!1), u = o.value, d = !o.searchQuery || ge({
3946
3942
  children: t || i,
3947
3943
  value: e,
3948
3944
  searchQuery: o.searchQuery
3949
- }), f = k(l) ? l.some((t) => j(t, o.legacyBehavior) === e) : j(l, o.legacyBehavior) === e, p = (n) => {
3945
+ }), f = A(u) ? u.some((t) => M(t, o.legacyBehavior) === e) : M(u, o.legacyBehavior) === e, p = (n) => {
3950
3946
  n.stopPropagation();
3951
3947
  let i = n;
3952
- if (!(i.key && !uc.includes(i.key))) {
3948
+ if (!(i.key && !lc.includes(i.key))) {
3953
3949
  if (n.preventDefault(), o.closeOnSelect === !0 && o.setOpen(!1), r) return r(n);
3954
- if (A(l)) {
3950
+ if (j(u)) {
3955
3951
  let n = o.onValueChange;
3956
3952
  o.legacyBehavior === !0 ? n?.({
3957
3953
  value: e,
3958
3954
  label: t
3959
3955
  }) : n?.(e);
3960
- } else if (k(l)) {
3961
- let n = o.onValueChange, r = o.value, i = f ? r.filter((t) => j(t, o.legacyBehavior) !== e) : [...r, o.legacyBehavior === !0 ? {
3956
+ } else if (A(u)) {
3957
+ let n = o.onValueChange, r = o.value, i = f ? r.filter((t) => M(t, o.legacyBehavior) !== e) : [...r, o.legacyBehavior === !0 ? {
3962
3958
  value: e,
3963
3959
  label: t
3964
3960
  } : e];
@@ -3967,7 +3963,7 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3967
3963
  o.triggerRef?.current?.focus();
3968
3964
  }
3969
3965
  };
3970
- if (d) return /* @__PURE__ */ D(u.Button, {
3966
+ if (d) return /* @__PURE__ */ O(l.Button, {
3971
3967
  type: "button",
3972
3968
  onSelect: p,
3973
3969
  onKeyDown: p,
@@ -3983,40 +3979,40 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
3983
3979
  ...a,
3984
3980
  children: t || i || e
3985
3981
  });
3986
- }, gc = ({ label: e = "Search", placeholder: t = "Search", tgphRef: n, value: l, onValueChange: u, ...f }) => {
3987
- let p = g.useId(), _ = g.useContext($), v = a(n, _.searchRef), y = l ?? _.searchQuery, b = u ?? _.setSearchQuery;
3988
- return g.useEffect(() => {
3982
+ }, hc = ({ label: e = "Search", placeholder: t = "Search", tgphRef: c, value: l, onValueChange: d, ...f }) => {
3983
+ let g = h.useId(), _ = h.useContext($), v = i(c, _.searchRef), y = l ?? _.searchQuery, b = d ?? _.setSearchQuery;
3984
+ return h.useEffect(() => {
3989
3985
  let e = (e) => {
3990
- cc.includes(e.key) && _.contentRef?.current?.focus({ preventScroll: !0 }), e.key === "Escape" && _.setOpen(!1), e.stopPropagation();
3986
+ sc.includes(e.key) && _.contentRef?.current?.focus({ preventScroll: !0 }), e.key === "Escape" && _.setOpen(!1), e.stopPropagation();
3991
3987
  }, t = _.searchRef?.current;
3992
3988
  if (t) return t.addEventListener("keydown", e), () => {
3993
3989
  t.removeEventListener("keydown", e);
3994
3990
  };
3995
- }, [_]), /* @__PURE__ */ O(c, {
3991
+ }, [_]), /* @__PURE__ */ k(s, {
3996
3992
  borderBottom: "px",
3997
3993
  px: "1",
3998
3994
  pb: "1",
3999
- children: [/* @__PURE__ */ D(r.Root, { children: /* @__PURE__ */ D(d, {
3995
+ children: [/* @__PURE__ */ O(n.Root, { children: /* @__PURE__ */ O(u, {
4000
3996
  as: "label",
4001
- htmlFor: p,
3997
+ htmlFor: g,
4002
3998
  children: e
4003
- }) }), /* @__PURE__ */ D(s, {
4004
- id: p,
3999
+ }) }), /* @__PURE__ */ O(o, {
4000
+ id: g,
4005
4001
  variant: "ghost",
4006
4002
  placeholder: t,
4007
4003
  value: y,
4008
4004
  onChange: (e) => {
4009
4005
  b(e.target.value);
4010
4006
  },
4011
- LeadingComponent: /* @__PURE__ */ D(o, {
4012
- icon: m,
4007
+ LeadingComponent: /* @__PURE__ */ O(a, {
4008
+ icon: p,
4013
4009
  alt: "Search Icon"
4014
4010
  }),
4015
- TrailingComponent: _?.searchQuery && _?.searchQuery?.length > 0 ? /* @__PURE__ */ D(i, {
4011
+ TrailingComponent: _?.searchQuery && _?.searchQuery?.length > 0 ? /* @__PURE__ */ O(r, {
4016
4012
  variant: "ghost",
4017
4013
  color: "gray",
4018
4014
  icon: {
4019
- icon: h,
4015
+ icon: m,
4020
4016
  alt: "Clear Search Query"
4021
4017
  },
4022
4018
  onClick: () => _.setSearchQuery?.("")
@@ -4028,18 +4024,18 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
4028
4024
  tgphRef: v
4029
4025
  })]
4030
4026
  });
4031
- }, _c = ({ icon: e = {
4032
- icon: m,
4027
+ }, gc = ({ icon: e = {
4028
+ icon: p,
4033
4029
  alt: "Search Icon"
4034
4030
  }, message: t = "No results found", children: n, ...r }) => {
4035
- let i = g.useContext($), [a, s] = g.useState(!1);
4036
- if (g.useEffect(() => {
4031
+ let i = h.useContext($), [o, s] = h.useState(!1);
4032
+ if (h.useEffect(() => {
4037
4033
  i.contentRef?.current?.querySelectorAll("[data-tgph-combobox-option]")?.length === 0 ? s(!0) : s(!1);
4038
4034
  }, [
4039
4035
  i.searchQuery,
4040
4036
  i.contentRef,
4041
4037
  n
4042
- ]), a) return /* @__PURE__ */ O(l, {
4038
+ ]), o) return /* @__PURE__ */ k(c, {
4043
4039
  gap: "1",
4044
4040
  align: "center",
4045
4041
  justify: "center",
@@ -4047,16 +4043,16 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
4047
4043
  my: "8",
4048
4044
  "data-tgph-combobox-empty": !0,
4049
4045
  ...r,
4050
- children: [e === null ? /* @__PURE__ */ D(oe, {}) : /* @__PURE__ */ D(o, { ...e }), t === null ? /* @__PURE__ */ D(oe, {}) : /* @__PURE__ */ D(d, {
4046
+ children: [e === null ? /* @__PURE__ */ O(ie, {}) : /* @__PURE__ */ O(a, { ...e }), t === null ? /* @__PURE__ */ O(ie, {}) : /* @__PURE__ */ O(u, {
4051
4047
  as: "span",
4052
4048
  children: t
4053
4049
  })]
4054
4050
  });
4055
- }, vc = ({ leadingText: e = "Create", values: t, onCreate: n, selected: r = null, legacyBehavior: i = !1, ...a }) => {
4056
- let o = g.useContext($), s = g.useCallback((e) => !t || t?.length === 0 ? !1 : t.some((t) => j(t, i) === e), [t, i]);
4057
- if (o.searchQuery && !s(o.searchQuery)) return /* @__PURE__ */ D(hc, {
4051
+ }, _c = ({ leadingText: e = "Create", values: t, onCreate: n, selected: r = null, legacyBehavior: i = !1, ...a }) => {
4052
+ let o = h.useContext($), s = h.useCallback((e) => !t || t?.length === 0 ? !1 : t.some((t) => M(t, i) === e), [t, i]);
4053
+ if (o.searchQuery && !s(o.searchQuery)) return /* @__PURE__ */ O(mc, {
4058
4054
  leadingIcon: {
4059
- icon: p,
4055
+ icon: f,
4060
4056
  "aria-hidden": !0
4061
4057
  },
4062
4058
  mx: "1",
@@ -4068,19 +4064,19 @@ var Ks = /* @__PURE__ */ Gs("div"), qs = /* @__PURE__ */ Gs("span"), Js = ({ ico
4068
4064
  },
4069
4065
  ...a
4070
4066
  });
4071
- }, yc = {};
4072
- Object.assign(yc, {
4073
- Root: dc,
4074
- Trigger: fc,
4075
- Content: pc,
4076
- Options: mc,
4077
- Option: hc,
4078
- Search: gc,
4079
- Empty: _c,
4080
- Create: vc,
4081
- Primitives: sc
4067
+ }, vc = {};
4068
+ Object.assign(vc, {
4069
+ Root: uc,
4070
+ Trigger: dc,
4071
+ Content: fc,
4072
+ Options: pc,
4073
+ Option: mc,
4074
+ Search: hc,
4075
+ Empty: gc,
4076
+ Create: _c,
4077
+ Primitives: oc
4082
4078
  });
4083
4079
  //#endregion
4084
- export { yc as Combobox };
4080
+ export { vc as Combobox };
4085
4081
 
4086
4082
  //# sourceMappingURL=index.mjs.map