@versini/sassysaint 8.121.0 → 8.121.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/chunks/{AboutChangelog.BEMLUbae.js → AboutChangelog.CA33pEEF.js} +2 -2
  2. package/dist/chunks/{AboutEntry.BP20V5kd.js → AboutEntry.RE-sMgUc.js} +7 -7
  3. package/dist/chunks/{App.C4nxPutS.js → App.BZTtEa1X.js} +16 -16
  4. package/dist/chunks/{BubbleActions.C8c4YvcJ.js → BubbleActions.D8zEgDPJ.js} +3 -3
  5. package/dist/chunks/ButtonIconDelete.BMOWq-aQ.js +668 -0
  6. package/dist/chunks/{Chart.UpIl99Mp.js → Chart.DbRz1l7T.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.SZMMe-ds.js → ChatBubbleAssistant.HRfh23vx.js} +926 -942
  8. package/dist/chunks/{ChatBubbleUser.CoUxF7fg.js → ChatBubbleUser.DKBeRxTV.js} +4 -4
  9. package/dist/chunks/HistoryEntry.elhISa3G.js +721 -0
  10. package/dist/chunks/{LoginEntry.B_hnp3kn.js → LoginEntry.fdGg-21A.js} +4 -4
  11. package/dist/chunks/{LogoEntry.D5pr7J7L.js → LogoEntry.B6ql2jC9.js} +1 -1
  12. package/dist/chunks/{MemoriesEntry.CmCC7oIt.js → MemoriesEntry.C47hpH8v.js} +34 -35
  13. package/dist/chunks/{ProfileEntry.DD6EWAdg.js → ProfileEntry.YUBGCsYD.js} +4 -4
  14. package/dist/chunks/{SettingsEntry.D2vkhDVP.js → SettingsEntry.DoymboVB.js} +5 -5
  15. package/dist/chunks/{UsageEntry.CPwTEetP.js → UsageEntry.DGLfDIuf.js} +5 -5
  16. package/dist/chunks/{_baseUniq.CoZJjsf4.js → _baseUniq.D83BfBwF.js} +1 -1
  17. package/dist/chunks/{arc.DCa0ktHo.js → arc.CRqvrVmM.js} +1 -1
  18. package/dist/chunks/{architecture-U656AL7Q.jPKmAcqF.js → architecture-U656AL7Q.DyBq7p-F.js} +1 -1
  19. package/dist/chunks/{architectureDiagram-VXUJARFQ.De0i9yVs.js → architectureDiagram-VXUJARFQ.CWYwQr2M.js} +4 -4
  20. package/dist/chunks/{blockDiagram-VD42YOAC.C_-0tieR.js → blockDiagram-VD42YOAC.Buq_PYg5.js} +5 -5
  21. package/dist/chunks/{browser.CHnC-ta2.js → browser.BlDfjcb8.js} +1 -1
  22. package/dist/chunks/{c4Diagram-YG6GDRKO.BsCj771T.js → c4Diagram-YG6GDRKO.CAC2Yr_A.js} +2 -2
  23. package/dist/chunks/{channel.BMmrJgu1.js → channel.Dni1EyEH.js} +1 -1
  24. package/dist/chunks/{chunk-4BX2VUAB.PHnk2h7S.js → chunk-4BX2VUAB.DsLxUxH4.js} +1 -1
  25. package/dist/chunks/{chunk-55IACEB6.DO1lSVjK.js → chunk-55IACEB6.vHZECnmr.js} +1 -1
  26. package/dist/chunks/{chunk-B4BG7PRW.DWoXKkeu.js → chunk-B4BG7PRW.DrTJniS8.js} +4 -4
  27. package/dist/chunks/{chunk-DI55MBZ5.AFC0J_hR.js → chunk-DI55MBZ5.DnichvqR.js} +3 -3
  28. package/dist/chunks/{chunk-FMBD7UC4.MibDfgHx.js → chunk-FMBD7UC4.DEv9oMYz.js} +1 -1
  29. package/dist/chunks/{chunk-QN33PNHL.Cc4-mgjY.js → chunk-QN33PNHL.BvX9mCUk.js} +1 -1
  30. package/dist/chunks/{chunk-QZHKN3VN.JSlC3cS6.js → chunk-QZHKN3VN.BhvzNfh0.js} +1 -1
  31. package/dist/chunks/{chunk-TZMSLE5B.DwO6_k9Q.js → chunk-TZMSLE5B.ColjztB0.js} +1 -1
  32. package/dist/chunks/{classDiagram-2ON5EDUG.DTLG4V26.js → classDiagram-2ON5EDUG.M4b00FrL.js} +2 -2
  33. package/dist/chunks/{classDiagram-v2-WZHVMYZB.DTLG4V26.js → classDiagram-v2-WZHVMYZB.M4b00FrL.js} +2 -2
  34. package/dist/chunks/{clone.DKF4uk6r.js → clone.B9QEANo-.js} +1 -1
  35. package/dist/chunks/{cose-bilkent-S5V4N54A.VviytYtj.js → cose-bilkent-S5V4N54A.DtEfRJcU.js} +2 -2
  36. package/dist/chunks/{dagre-6UL2VRFP.BnyaaYxG.js → dagre-6UL2VRFP.6nF6t0kI.js} +5 -5
  37. package/dist/chunks/{diagram-PSM6KHXK._9uw_Asg.js → diagram-PSM6KHXK.CN0tpcOw.js} +4 -4
  38. package/dist/chunks/{diagram-QEK2KX5R.D8fcj4HF.js → diagram-QEK2KX5R.5Qu1Dy1e.js} +3 -3
  39. package/dist/chunks/{diagram-S2PKOQOG.dRyHvEKp.js → diagram-S2PKOQOG.C5YPq0jQ.js} +3 -3
  40. package/dist/chunks/{erDiagram-Q2GNP2WA.C1BZ7IIw.js → erDiagram-Q2GNP2WA.CfEda118.js} +4 -4
  41. package/dist/chunks/{flowDiagram-NV44I4VS.DGv1Di7m.js → flowDiagram-NV44I4VS.CHtUk6SM.js} +5 -5
  42. package/dist/chunks/{ganttDiagram-JELNMOA3.BxWIrV3k.js → ganttDiagram-JELNMOA3.DHoK3n6q.js} +2 -2
  43. package/dist/chunks/{gitGraph-F6HP7TQM.XlxG37gi.js → gitGraph-F6HP7TQM.CIVU4QxK.js} +1 -1
  44. package/dist/chunks/{gitGraphDiagram-NY62KEGX.C6IZCfaV.js → gitGraphDiagram-NY62KEGX.deg3TUFD.js} +4 -4
  45. package/dist/chunks/{graph.sJUgf4to.js → graph.DGW-X0wY.js} +2 -2
  46. package/dist/chunks/{index.BztNm3SQ.js → index.BT17WfxW.js} +17 -16
  47. package/dist/chunks/{index.CFUvysz5.js → index.Bn--Smwh.js} +1 -1
  48. package/dist/chunks/{index.B9oaH0MK.js → index.BqBBgbUD.js} +1 -1
  49. package/dist/chunks/{index.BK010vU3.js → index.CRWs4Tnn.js} +3 -3
  50. package/dist/chunks/{index.vVEbZqrY.js → index.CXWd1-W2.js} +1 -1
  51. package/dist/chunks/{index.dU_uFcp3.js → index.DFVxgFdA.js} +1 -1
  52. package/dist/chunks/{index.DiX9H7xn.js → index.DX7sUMma.js} +1 -1
  53. package/dist/chunks/{index.PkMUAYHK.js → index.DxdZPfV-.js} +3 -3
  54. package/dist/chunks/{index.CogeyeP6.js → index.Ta0oUBnF.js} +1 -1
  55. package/dist/chunks/{info-NVLQJR56.CB1yFEh0.js → info-NVLQJR56.DnYwlaY7.js} +1 -1
  56. package/dist/chunks/{infoDiagram-WHAUD3N6.C-F2hnF3.js → infoDiagram-WHAUD3N6.QYBsqnvN.js} +2 -2
  57. package/dist/chunks/{journeyDiagram-XKPGCS4Q.BOGagEe6.js → journeyDiagram-XKPGCS4Q.B-RcYNB4.js} +4 -4
  58. package/dist/chunks/{kanban-definition-3W4ZIXB7.DRixYBgm.js → kanban-definition-3W4ZIXB7.C3quuE8G.js} +2 -2
  59. package/dist/chunks/{layout.NBNj8tNt.js → layout.C98wRZLT.js} +4 -4
  60. package/dist/chunks/{mermaid-parser.core.WUAPU6bl.js → mermaid-parser.core.Tx0LTTFG.js} +10 -10
  61. package/dist/chunks/{min.pcif1d-R.js → min.DAAoqkd5.js} +2 -2
  62. package/dist/chunks/{mindmap-definition-VGOIOE7T.BoB_83-j.js → mindmap-definition-VGOIOE7T.Cy6daGIr.js} +3 -3
  63. package/dist/chunks/{packet-BFZMPI3H.obdUPGmt.js → packet-BFZMPI3H.JAwpS9gJ.js} +1 -1
  64. package/dist/chunks/{pie-7BOR55EZ.CULyWvsL.js → pie-7BOR55EZ.JFJjozd4.js} +1 -1
  65. package/dist/chunks/{pieDiagram-ADFJNKIX.cAhdeEuZ.js → pieDiagram-ADFJNKIX.DbLch8HR.js} +4 -4
  66. package/dist/chunks/{quadrantDiagram-AYHSOK5B.BzL8QKyn.js → quadrantDiagram-AYHSOK5B.DjoIHdnw.js} +1 -1
  67. package/dist/chunks/{radar-NHE76QYJ.CGQJLLyR.js → radar-NHE76QYJ.DhZ4p_it.js} +1 -1
  68. package/dist/chunks/{rehype-mermaid.CEYn3QGz.js → rehype-mermaid.BjrrnWYM.js} +33 -33
  69. package/dist/chunks/{requirementDiagram-UZGBJVZJ.HEMcLvIC.js → requirementDiagram-UZGBJVZJ.BGfJ79B6.js} +3 -3
  70. package/dist/chunks/{sankeyDiagram-TZEHDZUN.DHbrhGCv.js → sankeyDiagram-TZEHDZUN.BV0afQQg.js} +1 -1
  71. package/dist/chunks/{sequenceDiagram-WL72ISMW.DWButQpu.js → sequenceDiagram-WL72ISMW.CpTBMqCC.js} +3 -3
  72. package/dist/chunks/{stateDiagram-FKZM4ZOC.CBFgulEf.js → stateDiagram-FKZM4ZOC.CcAM7PFu.js} +4 -4
  73. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.DEk41WUx.js → stateDiagram-v2-4FDKWEC3.DdWeXwFt.js} +2 -2
  74. package/dist/chunks/{timeline-definition-IT6M3QCI.eEEdc2b2.js → timeline-definition-IT6M3QCI.Ttk8nWu8.js} +2 -2
  75. package/dist/chunks/{treemap-KMMF4GRG.DRjxIKwf.js → treemap-KMMF4GRG.DGacR1wp.js} +1 -1
  76. package/dist/chunks/{useMarkdown.DxjQgTku.js → useMarkdown.CESnRnq4.js} +8 -8
  77. package/dist/chunks/{xychartDiagram-PRI3JC2R.DoDDE7QI.js → xychartDiagram-PRI3JC2R.Dchxs2UM.js} +1 -1
  78. package/dist/components/SassySaint/SassySaint.js +1 -1
  79. package/dist/index.js +3 -3
  80. package/package.json +3 -3
  81. package/dist/chunks/ButtonIconDelete.CLpIgJ17.js +0 -550
  82. package/dist/chunks/HistoryDataGrid.BNOeaUQd.js +0 -445
  83. package/dist/chunks/HistoryEntry.CvshPCHz.js +0 -293
  84. package/dist/chunks/InlineFilter.C_2kmBp0.js +0 -123
@@ -1,18 +1,18 @@
1
- import { jsx as St } from "react/jsx-runtime";
2
- import { n as os, useUserPreferences as ls, formatTimestamp as Vt } from "./index.BztNm3SQ.js";
3
- import { numberFormatter as us, pluralize as cs, Bubble as fs } from "./App.C4nxPutS.js";
4
- import Jt from "clsx";
5
- import hs, { useState as Ae, useEffect as Qt, useContext as wt } from "react";
6
- import { useMarkdown as ds } from "./useMarkdown.DxjQgTku.js";
7
- import { ChatContext as ms, AppContext as ps } from "./LogoEntry.D5pr7J7L.js";
8
- import { BubbleActions as gs } from "./BubbleActions.C8c4YvcJ.js";
1
+ import { jsx as vt } from "react/jsx-runtime";
2
+ import { n as as, useUserPreferences as os, formatTimestamp as St } from "./index.BT17WfxW.js";
3
+ import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.BZTtEa1X.js";
4
+ import Ht from "clsx";
5
+ import fs, { useState as Ae, useEffect as Jt, useContext as Vt } from "react";
6
+ import { useMarkdown as hs } from "./useMarkdown.CESnRnq4.js";
7
+ import { ChatContext as ds, AppContext as ms } from "./LogoEntry.B6ql2jC9.js";
8
+ import { BubbleActions as ps } from "./BubbleActions.D8zEgDPJ.js";
9
9
  const Me = {
10
10
  isEmpty: !0
11
11
  };
12
- function ys(e, t) {
12
+ function gs(e, t) {
13
13
  e.indexOf(t) === -1 && e.push(t);
14
14
  }
15
- function en(e, t) {
15
+ function Qt(e, t) {
16
16
  const n = e.indexOf(t);
17
17
  n > -1 && e.splice(n, 1);
18
18
  }
@@ -29,26 +29,26 @@ typeof process < "u" && process.env?.NODE_ENV !== "production" && (de = (e, t, n
29
29
  if (!e)
30
30
  throw new Error(Oe(t, n));
31
31
  });
32
- const N = {}, tn = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
33
- function bs(e) {
32
+ const N = {}, en = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
33
+ function ys(e) {
34
34
  return typeof e == "object" && e !== null;
35
35
  }
36
- const nn = (e) => /^0[^.\s]+$/u.test(e);
36
+ const tn = (e) => /^0[^.\s]+$/u.test(e);
37
37
  // @__NO_SIDE_EFFECTS__
38
- function He(e) {
38
+ function qe(e) {
39
39
  let t;
40
40
  return () => (t === void 0 && (t = e()), t);
41
41
  }
42
- const H = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Ts = (e, t) => (n) => t(e(n)), Ze = (...e) => e.reduce(Ts), Je = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
42
+ const Z = /* @__NO_SIDE_EFFECTS__ */ (e) => e, bs = (e, t) => (n) => t(e(n)), Ze = (...e) => e.reduce(bs), He = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
43
43
  const s = t - e;
44
44
  return s === 0 ? 1 : (n - e) / s;
45
45
  };
46
- class sn {
46
+ class nn {
47
47
  constructor() {
48
48
  this.subscriptions = [];
49
49
  }
50
50
  add(t) {
51
- return ys(this.subscriptions, t), () => en(this.subscriptions, t);
51
+ return gs(this.subscriptions, t), () => Qt(this.subscriptions, t);
52
52
  }
53
53
  notify(t, n, s) {
54
54
  const i = this.subscriptions.length;
@@ -69,53 +69,53 @@ class sn {
69
69
  }
70
70
  }
71
71
  const k = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, P = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
72
- function rn(e, t) {
72
+ function sn(e, t) {
73
73
  return t ? e * (1e3 / t) : 0;
74
74
  }
75
75
  const xt = /* @__PURE__ */ new Set();
76
- function an(e, t, n) {
76
+ function rn(e, t, n) {
77
77
  e || xt.has(t) || (console.warn(Oe(t, n)), xt.add(t));
78
78
  }
79
- const vs = (e, t, n) => {
79
+ const Ts = (e, t, n) => {
80
80
  const s = t - e;
81
81
  return ((n - e) % s + s) % s + e;
82
- }, on = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Ss = 1e-7, Vs = 12;
83
- function ws(e, t, n, s, i) {
82
+ }, an = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, vs = 1e-7, Ss = 12;
83
+ function Vs(e, t, n, s, i) {
84
84
  let r, a, o = 0;
85
85
  do
86
- a = t + (n - t) / 2, r = on(a, s, i) - e, r > 0 ? n = a : t = a;
87
- while (Math.abs(r) > Ss && ++o < Vs);
86
+ a = t + (n - t) / 2, r = an(a, s, i) - e, r > 0 ? n = a : t = a;
87
+ while (Math.abs(r) > vs && ++o < Ss);
88
88
  return a;
89
89
  }
90
90
  function me(e, t, n, s) {
91
91
  if (e === t && n === s)
92
- return H;
93
- const i = (r) => ws(r, 0, 1, e, n);
94
- return (r) => r === 0 || r === 1 ? r : on(i(r), t, s);
95
- }
96
- const ln = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, un = (e) => (t) => 1 - e(1 - t), cn = /* @__PURE__ */ me(0.33, 1.53, 0.69, 0.99), Qe = /* @__PURE__ */ un(cn), fn = /* @__PURE__ */ ln(Qe), hn = (e) => (e *= 2) < 1 ? 0.5 * Qe(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), et = (e) => 1 - Math.sin(Math.acos(e)), xs = un(et), dn = ln(et), As = /* @__PURE__ */ me(0.42, 0, 1, 1), Ms = /* @__PURE__ */ me(0, 0, 0.58, 1), mn = /* @__PURE__ */ me(0.42, 0, 0.58, 1), pn = (e) => Array.isArray(e) && typeof e[0] != "number";
97
- function gn(e, t) {
98
- return pn(e) ? e[vs(0, e.length, t)] : e;
99
- }
100
- const yn = (e) => Array.isArray(e) && typeof e[0] == "number", At = {
101
- linear: H,
102
- easeIn: As,
103
- easeInOut: mn,
104
- easeOut: Ms,
105
- circIn: et,
106
- circInOut: dn,
92
+ return Z;
93
+ const i = (r) => Vs(r, 0, 1, e, n);
94
+ return (r) => r === 0 || r === 1 ? r : an(i(r), t, s);
95
+ }
96
+ const on = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ln = (e) => (t) => 1 - e(1 - t), un = /* @__PURE__ */ me(0.33, 1.53, 0.69, 0.99), Je = /* @__PURE__ */ ln(un), cn = /* @__PURE__ */ on(Je), fn = (e) => (e *= 2) < 1 ? 0.5 * Je(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Qe = (e) => 1 - Math.sin(Math.acos(e)), xs = ln(Qe), hn = on(Qe), ws = /* @__PURE__ */ me(0.42, 0, 1, 1), As = /* @__PURE__ */ me(0, 0, 0.58, 1), dn = /* @__PURE__ */ me(0.42, 0, 0.58, 1), mn = (e) => Array.isArray(e) && typeof e[0] != "number";
97
+ function pn(e, t) {
98
+ return mn(e) ? e[Ts(0, e.length, t)] : e;
99
+ }
100
+ const gn = (e) => Array.isArray(e) && typeof e[0] == "number", wt = {
101
+ linear: Z,
102
+ easeIn: ws,
103
+ easeInOut: dn,
104
+ easeOut: As,
105
+ circIn: Qe,
106
+ circInOut: hn,
107
107
  circOut: xs,
108
- backIn: Qe,
109
- backInOut: fn,
110
- backOut: cn,
111
- anticipate: hn
112
- }, Cs = (e) => typeof e == "string", Mt = (e) => {
113
- if (yn(e)) {
108
+ backIn: Je,
109
+ backInOut: cn,
110
+ backOut: un,
111
+ anticipate: fn
112
+ }, Ms = (e) => typeof e == "string", At = (e) => {
113
+ if (gn(e)) {
114
114
  B(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
115
115
  const [t, n, s, i] = e;
116
116
  return me(t, n, s, i);
117
- } else if (Cs(e))
118
- return B(At[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), At[e];
117
+ } else if (Ms(e))
118
+ return B(wt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), wt[e];
119
119
  return e;
120
120
  }, be = [
121
121
  "setup",
@@ -135,7 +135,7 @@ const yn = (e) => Array.isArray(e) && typeof e[0] == "number", At = {
135
135
  "postRender"
136
136
  // Compute
137
137
  ];
138
- function Ds(e, t) {
138
+ function Cs(e, t) {
139
139
  let n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), i = !1, r = !1;
140
140
  const a = /* @__PURE__ */ new WeakSet();
141
141
  let o = {
@@ -173,74 +173,74 @@ function Ds(e, t) {
173
173
  };
174
174
  return c;
175
175
  }
176
- const Fs = 40;
177
- function bn(e, t) {
176
+ const Ds = 40;
177
+ function yn(e, t) {
178
178
  let n = !1, s = !0;
179
179
  const i = {
180
180
  delta: 0,
181
181
  timestamp: 0,
182
182
  isProcessing: !1
183
- }, r = () => n = !0, a = be.reduce((V, w) => (V[w] = Ds(r), V), {}), { setup: o, read: u, resolveKeyframes: c, preUpdate: l, update: f, preRender: h, render: p, postRender: g } = a, T = () => {
183
+ }, r = () => n = !0, a = be.reduce((V, x) => (V[x] = Cs(r), V), {}), { setup: o, read: u, resolveKeyframes: c, preUpdate: l, update: f, preRender: h, render: p, postRender: g } = a, T = () => {
184
184
  const V = N.useManualTiming ? i.timestamp : performance.now();
185
- n = !1, N.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(V - i.timestamp, Fs), 1)), i.timestamp = V, i.isProcessing = !0, o.process(i), u.process(i), c.process(i), l.process(i), f.process(i), h.process(i), p.process(i), g.process(i), i.isProcessing = !1, n && t && (s = !1, e(T));
185
+ n = !1, N.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(V - i.timestamp, Ds), 1)), i.timestamp = V, i.isProcessing = !0, o.process(i), u.process(i), c.process(i), l.process(i), f.process(i), h.process(i), p.process(i), g.process(i), i.isProcessing = !1, n && t && (s = !1, e(T));
186
186
  }, S = () => {
187
187
  n = !0, s = !0, i.isProcessing || e(T);
188
188
  };
189
- return { schedule: be.reduce((V, w) => {
190
- const m = a[w];
191
- return V[w] = (y, M = !1, b = !1) => (n || S(), m.schedule(y, M, b)), V;
189
+ return { schedule: be.reduce((V, x) => {
190
+ const m = a[x];
191
+ return V[x] = (y, M = !1, b = !1) => (n || S(), m.schedule(y, M, b)), V;
192
192
  }, {}), cancel: (V) => {
193
- for (let w = 0; w < be.length; w++)
194
- a[be[w]].cancel(V);
193
+ for (let x = 0; x < be.length; x++)
194
+ a[be[x]].cancel(V);
195
195
  }, state: i, steps: a };
196
196
  }
197
- const { schedule: K, cancel: ke, state: Se } = /* @__PURE__ */ bn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0);
197
+ const { schedule: K, cancel: ke, state: Se } = /* @__PURE__ */ yn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Z, !0);
198
198
  let ve;
199
- function Es() {
199
+ function Fs() {
200
200
  ve = void 0;
201
201
  }
202
202
  const R = {
203
203
  now: () => (ve === void 0 && R.set(Se.isProcessing || N.useManualTiming ? Se.timestamp : performance.now()), ve),
204
204
  set: (e) => {
205
- ve = e, queueMicrotask(Es);
205
+ ve = e, queueMicrotask(Fs);
206
206
  }
207
- }, Tn = (e) => (t) => typeof t == "string" && t.startsWith(e), vn = /* @__PURE__ */ Tn("--"), Rs = /* @__PURE__ */ Tn("var(--"), tt = (e) => Rs(e) ? Ps.test(e.split("/*")[0].trim()) : !1, Ps = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
208
- function Ct(e) {
207
+ }, bn = (e) => (t) => typeof t == "string" && t.startsWith(e), Tn = /* @__PURE__ */ bn("--"), Es = /* @__PURE__ */ bn("var(--"), et = (e) => Es(e) ? Rs.test(e.split("/*")[0].trim()) : !1, Rs = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
208
+ function Mt(e) {
209
209
  return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
210
210
  }
211
- const Z = {
211
+ const H = {
212
212
  test: (e) => typeof e == "number",
213
213
  parse: parseFloat,
214
214
  transform: (e) => e
215
215
  }, le = {
216
- ...Z,
216
+ ...H,
217
217
  transform: (e) => _(0, 1, e)
218
218
  }, Te = {
219
- ...Z,
219
+ ...H,
220
220
  default: 1
221
- }, oe = (e) => Math.round(e * 1e5) / 1e5, nt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
222
- function Os(e) {
221
+ }, oe = (e) => Math.round(e * 1e5) / 1e5, tt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
222
+ function Ps(e) {
223
223
  return e == null;
224
224
  }
225
- const ks = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, st = (e, t) => (n) => !!(typeof n == "string" && ks.test(n) && n.startsWith(e) || t && !Os(n) && Object.prototype.hasOwnProperty.call(n, t)), Sn = (e, t, n) => (s) => {
225
+ const Os = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, nt = (e, t) => (n) => !!(typeof n == "string" && Os.test(n) && n.startsWith(e) || t && !Ps(n) && Object.prototype.hasOwnProperty.call(n, t)), vn = (e, t, n) => (s) => {
226
226
  if (typeof s != "string")
227
227
  return s;
228
- const [i, r, a, o] = s.match(nt);
228
+ const [i, r, a, o] = s.match(tt);
229
229
  return {
230
230
  [e]: parseFloat(i),
231
231
  [t]: parseFloat(r),
232
232
  [n]: parseFloat(a),
233
233
  alpha: o !== void 0 ? parseFloat(o) : 1
234
234
  };
235
- }, Bs = (e) => _(0, 255, e), Ce = {
236
- ...Z,
237
- transform: (e) => Math.round(Bs(e))
235
+ }, ks = (e) => _(0, 255, e), Ce = {
236
+ ...H,
237
+ transform: (e) => Math.round(ks(e))
238
238
  }, U = {
239
- test: /* @__PURE__ */ st("rgb", "red"),
240
- parse: /* @__PURE__ */ Sn("red", "green", "blue"),
239
+ test: /* @__PURE__ */ nt("rgb", "red"),
240
+ parse: /* @__PURE__ */ vn("red", "green", "blue"),
241
241
  transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Ce.transform(e) + ", " + Ce.transform(t) + ", " + Ce.transform(n) + ", " + oe(le.transform(s)) + ")"
242
242
  };
243
- function Is(e) {
243
+ function Bs(e) {
244
244
  let t = "", n = "", s = "", i = "";
245
245
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), s = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), s = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, s += s, i += i), {
246
246
  red: parseInt(t, 16),
@@ -250,20 +250,20 @@ function Is(e) {
250
250
  };
251
251
  }
252
252
  const Be = {
253
- test: /* @__PURE__ */ st("#"),
254
- parse: Is,
253
+ test: /* @__PURE__ */ nt("#"),
254
+ parse: Bs,
255
255
  transform: U.transform
256
256
  }, pe = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
257
257
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
258
258
  parse: parseFloat,
259
259
  transform: (t) => `${t}${e}`
260
- }), L = /* @__PURE__ */ pe("deg"), q = /* @__PURE__ */ pe("%"), d = /* @__PURE__ */ pe("px"), Ns = /* @__PURE__ */ pe("vh"), Ks = /* @__PURE__ */ pe("vw"), Dt = {
260
+ }), L = /* @__PURE__ */ pe("deg"), q = /* @__PURE__ */ pe("%"), d = /* @__PURE__ */ pe("px"), Is = /* @__PURE__ */ pe("vh"), Ns = /* @__PURE__ */ pe("vw"), Ct = {
261
261
  ...q,
262
262
  parse: (e) => q.parse(e) / 100,
263
263
  transform: (e) => q.transform(e * 100)
264
264
  }, z = {
265
- test: /* @__PURE__ */ st("hsl", "hue"),
266
- parse: /* @__PURE__ */ Sn("hue", "saturation", "lightness"),
265
+ test: /* @__PURE__ */ nt("hsl", "hue"),
266
+ parse: /* @__PURE__ */ vn("hue", "saturation", "lightness"),
267
267
  transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + q.transform(oe(t)) + ", " + q.transform(oe(n)) + ", " + oe(le.transform(s)) + ")"
268
268
  }, D = {
269
269
  test: (e) => U.test(e) || Be.test(e) || z.test(e),
@@ -273,11 +273,11 @@ const Be = {
273
273
  const t = D.parse(e);
274
274
  return t.alpha = 0, D.transform(t);
275
275
  }
276
- }, $s = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
277
- function Ls(e) {
278
- return isNaN(e) && typeof e == "string" && (e.match(nt)?.length || 0) + (e.match($s)?.length || 0) > 0;
276
+ }, Ks = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
277
+ function $s(e) {
278
+ return isNaN(e) && typeof e == "string" && (e.match(tt)?.length || 0) + (e.match(Ks)?.length || 0) > 0;
279
279
  }
280
- const Vn = "number", wn = "color", Ws = "var", _s = "var(", Ft = "${}", js = /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;
280
+ const Sn = "number", Vn = "color", Ls = "var", Ws = "var(", Dt = "${}", _s = /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;
281
281
  function ue(e) {
282
282
  const t = e.toString(), n = [], s = {
283
283
  color: [],
@@ -285,39 +285,39 @@ function ue(e) {
285
285
  var: []
286
286
  }, i = [];
287
287
  let r = 0;
288
- const o = t.replace(js, (u) => (D.test(u) ? (s.color.push(r), i.push(wn), n.push(D.parse(u))) : u.startsWith(_s) ? (s.var.push(r), i.push(Ws), n.push(u)) : (s.number.push(r), i.push(Vn), n.push(parseFloat(u))), ++r, Ft)).split(Ft);
288
+ const o = t.replace(_s, (u) => (D.test(u) ? (s.color.push(r), i.push(Vn), n.push(D.parse(u))) : u.startsWith(Ws) ? (s.var.push(r), i.push(Ls), n.push(u)) : (s.number.push(r), i.push(Sn), n.push(parseFloat(u))), ++r, Dt)).split(Dt);
289
289
  return { values: n, split: o, indexes: s, types: i };
290
290
  }
291
291
  function xn(e) {
292
292
  return ue(e).values;
293
293
  }
294
- function An(e) {
294
+ function wn(e) {
295
295
  const { split: t, types: n } = ue(e), s = t.length;
296
296
  return (i) => {
297
297
  let r = "";
298
298
  for (let a = 0; a < s; a++)
299
299
  if (r += t[a], i[a] !== void 0) {
300
300
  const o = n[a];
301
- o === Vn ? r += oe(i[a]) : o === wn ? r += D.transform(i[a]) : r += i[a];
301
+ o === Sn ? r += oe(i[a]) : o === Vn ? r += D.transform(i[a]) : r += i[a];
302
302
  }
303
303
  return r;
304
304
  };
305
305
  }
306
- const Us = (e) => typeof e == "number" ? 0 : D.test(e) ? D.getAnimatableNone(e) : e;
307
- function Gs(e) {
306
+ const js = (e) => typeof e == "number" ? 0 : D.test(e) ? D.getAnimatableNone(e) : e;
307
+ function Us(e) {
308
308
  const t = xn(e);
309
- return An(e)(t.map(Us));
309
+ return wn(e)(t.map(js));
310
310
  }
311
311
  const j = {
312
- test: Ls,
312
+ test: $s,
313
313
  parse: xn,
314
- createTransformer: An,
315
- getAnimatableNone: Gs
314
+ createTransformer: wn,
315
+ getAnimatableNone: Us
316
316
  };
317
317
  function De(e, t, n) {
318
318
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
319
319
  }
320
- function Ys({ hue: e, saturation: t, lightness: n, alpha: s }) {
320
+ function Gs({ hue: e, saturation: t, lightness: n, alpha: s }) {
321
321
  e /= 360, t /= 100, n /= 100;
322
322
  let i = 0, r = 0, a = 0;
323
323
  if (!t)
@@ -339,32 +339,32 @@ function Ve(e, t) {
339
339
  const J = (e, t, n) => e + (t - e) * n, Fe = (e, t, n) => {
340
340
  const s = e * e, i = n * (t * t - s) + s;
341
341
  return i < 0 ? 0 : Math.sqrt(i);
342
- }, zs = [Be, U, z], Xs = (e) => zs.find((t) => t.test(e));
343
- function Et(e) {
344
- const t = Xs(e);
342
+ }, Ys = [Be, U, z], zs = (e) => Ys.find((t) => t.test(e));
343
+ function Ft(e) {
344
+ const t = zs(e);
345
345
  if (de(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
346
346
  return !1;
347
347
  let n = t.parse(e);
348
- return t === z && (n = Ys(n)), n;
348
+ return t === z && (n = Gs(n)), n;
349
349
  }
350
- const Rt = (e, t) => {
351
- const n = Et(e), s = Et(t);
350
+ const Et = (e, t) => {
351
+ const n = Ft(e), s = Ft(t);
352
352
  if (!n || !s)
353
353
  return Ve(e, t);
354
354
  const i = { ...n };
355
355
  return (r) => (i.red = Fe(n.red, s.red, r), i.green = Fe(n.green, s.green, r), i.blue = Fe(n.blue, s.blue, r), i.alpha = J(n.alpha, s.alpha, r), U.transform(i));
356
356
  }, Ie = /* @__PURE__ */ new Set(["none", "hidden"]);
357
- function qs(e, t) {
357
+ function Xs(e, t) {
358
358
  return Ie.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
359
359
  }
360
- function Hs(e, t) {
360
+ function qs(e, t) {
361
361
  return (n) => J(e, t, n);
362
362
  }
363
- function it(e) {
364
- return typeof e == "number" ? Hs : typeof e == "string" ? tt(e) ? Ve : D.test(e) ? Rt : Qs : Array.isArray(e) ? Mn : typeof e == "object" ? D.test(e) ? Rt : Zs : Ve;
363
+ function st(e) {
364
+ return typeof e == "number" ? qs : typeof e == "string" ? et(e) ? Ve : D.test(e) ? Et : Js : Array.isArray(e) ? An : typeof e == "object" ? D.test(e) ? Et : Zs : Ve;
365
365
  }
366
- function Mn(e, t) {
367
- const n = [...e], s = n.length, i = e.map((r, a) => it(r)(r, t[a]));
366
+ function An(e, t) {
367
+ const n = [...e], s = n.length, i = e.map((r, a) => st(r)(r, t[a]));
368
368
  return (r) => {
369
369
  for (let a = 0; a < s; a++)
370
370
  n[a] = i[a](r);
@@ -374,14 +374,14 @@ function Mn(e, t) {
374
374
  function Zs(e, t) {
375
375
  const n = { ...e, ...t }, s = {};
376
376
  for (const i in n)
377
- e[i] !== void 0 && t[i] !== void 0 && (s[i] = it(e[i])(e[i], t[i]));
377
+ e[i] !== void 0 && t[i] !== void 0 && (s[i] = st(e[i])(e[i], t[i]));
378
378
  return (i) => {
379
379
  for (const r in s)
380
380
  n[r] = s[r](i);
381
381
  return n;
382
382
  };
383
383
  }
384
- function Js(e, t) {
384
+ function Hs(e, t) {
385
385
  const n = [], s = { color: 0, var: 0, number: 0 };
386
386
  for (let i = 0; i < t.values.length; i++) {
387
387
  const r = t.types[i], a = e.indexes[r][s[r]], o = e.values[a] ?? 0;
@@ -389,14 +389,14 @@ function Js(e, t) {
389
389
  }
390
390
  return n;
391
391
  }
392
- const Qs = (e, t) => {
392
+ const Js = (e, t) => {
393
393
  const n = j.createTransformer(t), s = ue(e), i = ue(t);
394
- return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Ie.has(e) && !i.values.length || Ie.has(t) && !s.values.length ? qs(e, t) : Ze(Mn(Js(s, 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"), Ve(e, t));
394
+ return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Ie.has(e) && !i.values.length || Ie.has(t) && !s.values.length ? Xs(e, t) : Ze(An(Hs(s, 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"), Ve(e, t));
395
395
  };
396
- function Cn(e, t, n) {
397
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? J(e, t, n) : it(e)(e, t);
396
+ function Mn(e, t, n) {
397
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? J(e, t, n) : st(e)(e, t);
398
398
  }
399
- const ei = (e) => {
399
+ const Qs = (e) => {
400
400
  const t = ({ timestamp: n }) => e(n);
401
401
  return {
402
402
  start: (n = !0) => K.update(t, n),
@@ -407,33 +407,33 @@ const ei = (e) => {
407
407
  */
408
408
  now: () => Se.isProcessing ? Se.timestamp : R.now()
409
409
  };
410
- }, Dn = (e, t, n = 10) => {
410
+ }, Cn = (e, t, n = 10) => {
411
411
  let s = "";
412
412
  const i = Math.max(Math.round(t / n), 2);
413
413
  for (let r = 0; r < i; r++)
414
414
  s += Math.round(e(r / (i - 1)) * 1e4) / 1e4 + ", ";
415
415
  return `linear(${s.substring(0, s.length - 2)})`;
416
- }, we = 2e4;
417
- function rt(e) {
416
+ }, xe = 2e4;
417
+ function it(e) {
418
418
  let t = 0;
419
419
  const n = 50;
420
420
  let s = e.next(t);
421
- for (; !s.done && t < we; )
421
+ for (; !s.done && t < xe; )
422
422
  t += n, s = e.next(t);
423
- return t >= we ? 1 / 0 : t;
423
+ return t >= xe ? 1 / 0 : t;
424
424
  }
425
- function Fn(e, t = 100, n) {
426
- const s = n({ ...e, keyframes: [0, t] }), i = Math.min(rt(s), we);
425
+ function Dn(e, t = 100, n) {
426
+ const s = n({ ...e, keyframes: [0, t] }), i = Math.min(it(s), xe);
427
427
  return {
428
428
  type: "keyframes",
429
429
  ease: (r) => s.next(i * r).value / t,
430
430
  duration: /* @__PURE__ */ P(i)
431
431
  };
432
432
  }
433
- const ti = 5;
434
- function En(e, t, n) {
435
- const s = Math.max(t - ti, 0);
436
- return rn(n - e(s), t - s);
433
+ const ei = 5;
434
+ function Fn(e, t, n) {
435
+ const s = Math.max(t - ei, 0);
436
+ return sn(n - e(s), t - s);
437
437
  }
438
438
  const C = {
439
439
  // Default spring physics
@@ -464,7 +464,7 @@ const C = {
464
464
  minDamping: 0.05,
465
465
  maxDamping: 1
466
466
  }, Ee = 1e-3;
467
- function ni({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.velocity, mass: s = C.mass }) {
467
+ function ti({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.velocity, mass: s = C.mass }) {
468
468
  let i, r;
469
469
  de(e <= /* @__PURE__ */ k(C.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
470
470
  let a = 1 - t;
@@ -481,7 +481,7 @@ function ni({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.ve
481
481
  const l = Math.exp(-c * e), f = (n - c) * (e * e);
482
482
  return l * f;
483
483
  });
484
- const o = 5 / e, u = ii(i, r, o);
484
+ const o = 5 / e, u = si(i, r, o);
485
485
  if (e = /* @__PURE__ */ k(e), isNaN(u))
486
486
  return {
487
487
  stiffness: C.stiffness,
@@ -497,21 +497,21 @@ function ni({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.ve
497
497
  };
498
498
  }
499
499
  }
500
- const si = 12;
501
- function ii(e, t, n) {
500
+ const ni = 12;
501
+ function si(e, t, n) {
502
502
  let s = n;
503
- for (let i = 1; i < si; i++)
503
+ for (let i = 1; i < ni; i++)
504
504
  s = s - e(s) / t(s);
505
505
  return s;
506
506
  }
507
507
  function Ne(e, t) {
508
508
  return e * Math.sqrt(1 - t * t);
509
509
  }
510
- const ri = ["duration", "bounce"], ai = ["stiffness", "damping", "mass"];
511
- function Pt(e, t) {
510
+ const ii = ["duration", "bounce"], ri = ["stiffness", "damping", "mass"];
511
+ function Rt(e, t) {
512
512
  return t.some((n) => e[n] !== void 0);
513
513
  }
514
- function oi(e) {
514
+ function ai(e) {
515
515
  let t = {
516
516
  velocity: C.velocity,
517
517
  stiffness: C.stiffness,
@@ -520,7 +520,7 @@ function oi(e) {
520
520
  isResolvedFromDuration: !1,
521
521
  ...e
522
522
  };
523
- if (!Pt(e, ai) && Pt(e, ri))
523
+ if (!Rt(e, ri) && Rt(e, ii))
524
524
  if (e.visualDuration) {
525
525
  const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, r = 2 * _(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
526
526
  t = {
@@ -530,7 +530,7 @@ function oi(e) {
530
530
  damping: r
531
531
  };
532
532
  } else {
533
- const n = ni(e);
533
+ const n = ti(e);
534
534
  t = {
535
535
  ...t,
536
536
  ...n,
@@ -546,7 +546,7 @@ function ce(e = C.visualDuration, t = C.bounce) {
546
546
  bounce: t
547
547
  } : e;
548
548
  let { restSpeed: s, restDelta: i } = n;
549
- const r = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], o = { done: !1, value: r }, { stiffness: u, damping: c, mass: l, duration: f, velocity: h, isResolvedFromDuration: p } = oi({
549
+ const r = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], o = { done: !1, value: r }, { stiffness: u, damping: c, mass: l, duration: f, velocity: h, isResolvedFromDuration: p } = ai({
550
550
  ...n,
551
551
  velocity: -/* @__PURE__ */ P(n.velocity || 0)
552
552
  }), g = h || 0, T = c / (2 * Math.sqrt(u * l)), S = a - r, v = /* @__PURE__ */ P(Math.sqrt(u / l)), A = Math.abs(S) < 5;
@@ -567,7 +567,7 @@ function ce(e = C.visualDuration, t = C.bounce) {
567
567
  return a - M * ((g + T * v * S) * Math.sinh(b) + m * S * Math.cosh(b)) / m;
568
568
  };
569
569
  }
570
- const w = {
570
+ const x = {
571
571
  calculatedDuration: p && f || null,
572
572
  next: (m) => {
573
573
  const y = V(m);
@@ -575,23 +575,23 @@ function ce(e = C.visualDuration, t = C.bounce) {
575
575
  o.done = m >= f;
576
576
  else {
577
577
  let M = m === 0 ? g : 0;
578
- T < 1 && (M = m === 0 ? /* @__PURE__ */ k(g) : En(V, m, y));
579
- const b = Math.abs(M) <= s, x = Math.abs(a - y) <= i;
580
- o.done = b && x;
578
+ T < 1 && (M = m === 0 ? /* @__PURE__ */ k(g) : Fn(V, m, y));
579
+ const b = Math.abs(M) <= s, w = Math.abs(a - y) <= i;
580
+ o.done = b && w;
581
581
  }
582
582
  return o.value = o.done ? a : y, o;
583
583
  },
584
584
  toString: () => {
585
- const m = Math.min(rt(w), we), y = Dn((M) => w.next(m * M).value, m, 30);
585
+ const m = Math.min(it(x), xe), y = Cn((M) => x.next(m * M).value, m, 30);
586
586
  return m + "ms " + y;
587
587
  },
588
588
  toTransition: () => {
589
589
  }
590
590
  };
591
- return w;
591
+ return x;
592
592
  }
593
593
  ce.applyToOptions = (e) => {
594
- const t = Fn(e, 100, ce);
594
+ const t = Dn(e, 100, ce);
595
595
  return e.ease = t.ease, e.duration = /* @__PURE__ */ k(t.duration), e.type = "keyframes", e;
596
596
  };
597
597
  function Ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: a, min: o, max: u, restDelta: c = 0.5, restSpeed: l }) {
@@ -602,15 +602,15 @@ function Ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
602
602
  let T = n * t;
603
603
  const S = f + T, v = a === void 0 ? S : a(S);
604
604
  v !== S && (T = v - f);
605
- const A = (b) => -T * Math.exp(-b / s), V = (b) => v + A(b), w = (b) => {
606
- const x = A(b), E = V(b);
607
- h.done = Math.abs(x) <= c, h.value = h.done ? v : E;
605
+ const A = (b) => -T * Math.exp(-b / s), V = (b) => v + A(b), x = (b) => {
606
+ const w = A(b), E = V(b);
607
+ h.done = Math.abs(w) <= c, h.value = h.done ? v : E;
608
608
  };
609
609
  let m, y;
610
610
  const M = (b) => {
611
611
  p(h.value) && (m = b, y = ce({
612
612
  keyframes: [h.value, g(h.value)],
613
- velocity: En(V, b, h.value),
613
+ velocity: Fn(V, b, h.value),
614
614
  // TODO: This should be passing * 1000
615
615
  damping: i,
616
616
  stiffness: r,
@@ -621,24 +621,24 @@ function Ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
621
621
  return M(0), {
622
622
  calculatedDuration: null,
623
623
  next: (b) => {
624
- let x = !1;
625
- return !y && m === void 0 && (x = !0, w(b), M(b)), m !== void 0 && b >= m ? y.next(b - m) : (!x && w(b), h);
624
+ let w = !1;
625
+ return !y && m === void 0 && (w = !0, x(b), M(b)), m !== void 0 && b >= m ? y.next(b - m) : (!w && x(b), h);
626
626
  }
627
627
  };
628
628
  }
629
- function li(e, t, n) {
630
- const s = [], i = n || N.mix || Cn, r = e.length - 1;
629
+ function oi(e, t, n) {
630
+ const s = [], i = n || N.mix || Mn, r = e.length - 1;
631
631
  for (let a = 0; a < r; a++) {
632
632
  let o = i(e[a], e[a + 1]);
633
633
  if (t) {
634
- const u = Array.isArray(t) ? t[a] || H : t;
634
+ const u = Array.isArray(t) ? t[a] || Z : t;
635
635
  o = Ze(u, o);
636
636
  }
637
637
  s.push(o);
638
638
  }
639
639
  return s;
640
640
  }
641
- function ui(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
641
+ function li(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
642
642
  const r = e.length;
643
643
  if (B(r === t.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
644
644
  return () => t[0];
@@ -646,68 +646,68 @@ function ui(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
646
646
  return () => t[1];
647
647
  const a = e[0] === e[1];
648
648
  e[0] > e[r - 1] && (e = [...e].reverse(), t = [...t].reverse());
649
- const o = li(t, s, i), u = o.length, c = (l) => {
649
+ const o = oi(t, s, i), u = o.length, c = (l) => {
650
650
  if (a && l < e[0])
651
651
  return t[0];
652
652
  let f = 0;
653
653
  if (u > 1)
654
654
  for (; f < e.length - 2 && !(l < e[f + 1]); f++)
655
655
  ;
656
- const h = /* @__PURE__ */ Je(e[f], e[f + 1], l);
656
+ const h = /* @__PURE__ */ He(e[f], e[f + 1], l);
657
657
  return o[f](h);
658
658
  };
659
659
  return n ? (l) => c(_(e[0], e[r - 1], l)) : c;
660
660
  }
661
- function Rn(e, t) {
661
+ function En(e, t) {
662
662
  const n = e[e.length - 1];
663
663
  for (let s = 1; s <= t; s++) {
664
- const i = /* @__PURE__ */ Je(0, t, s);
664
+ const i = /* @__PURE__ */ He(0, t, s);
665
665
  e.push(J(n, 1, i));
666
666
  }
667
667
  }
668
- function Pn(e) {
668
+ function Rn(e) {
669
669
  const t = [0];
670
- return Rn(t, e.length - 1), t;
670
+ return En(t, e.length - 1), t;
671
671
  }
672
- function ci(e, t) {
672
+ function ui(e, t) {
673
673
  return e.map((n) => n * t);
674
674
  }
675
- function fi(e, t) {
676
- return e.map(() => t || mn).splice(0, e.length - 1);
675
+ function ci(e, t) {
676
+ return e.map(() => t || dn).splice(0, e.length - 1);
677
677
  }
678
678
  function X({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
679
- const i = pn(s) ? s.map(Mt) : Mt(s), r = {
679
+ const i = mn(s) ? s.map(At) : At(s), r = {
680
680
  done: !1,
681
681
  value: t[0]
682
- }, a = ci(
682
+ }, a = ui(
683
683
  // Only use the provided offsets if they're the correct length
684
684
  // TODO Maybe we should warn here if there's a length mismatch
685
- n && n.length === t.length ? n : Pn(t),
685
+ n && n.length === t.length ? n : Rn(t),
686
686
  e
687
- ), o = ui(a, t, {
688
- ease: Array.isArray(i) ? i : fi(t, i)
687
+ ), o = li(a, t, {
688
+ ease: Array.isArray(i) ? i : ci(t, i)
689
689
  });
690
690
  return {
691
691
  calculatedDuration: e,
692
692
  next: (u) => (r.value = o(u), r.done = u >= e, r)
693
693
  };
694
694
  }
695
- const hi = (e) => e !== null;
696
- function at(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
697
- const r = e.filter(hi), o = i < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
695
+ const fi = (e) => e !== null;
696
+ function rt(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
697
+ const r = e.filter(fi), o = i < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
698
698
  return !o || s === void 0 ? r[o] : s;
699
699
  }
700
- const di = {
700
+ const hi = {
701
701
  decay: Ke,
702
702
  inertia: Ke,
703
703
  tween: X,
704
704
  keyframes: X,
705
705
  spring: ce
706
706
  };
707
- function On(e) {
708
- typeof e.type == "string" && (e.type = di[e.type]);
707
+ function Pn(e) {
708
+ typeof e.type == "string" && (e.type = hi[e.type]);
709
709
  }
710
- class ot {
710
+ class at {
711
711
  constructor() {
712
712
  this.updateFinished();
713
713
  }
@@ -731,8 +731,8 @@ class ot {
731
731
  return this.finished.then(t, n);
732
732
  }
733
733
  }
734
- const mi = (e) => e / 100;
735
- class lt extends ot {
734
+ const di = (e) => e / 100;
735
+ class ot extends at {
736
736
  constructor(t) {
737
737
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
738
738
  const { motionValue: n } = this.options;
@@ -741,17 +741,17 @@ class lt extends ot {
741
741
  }
742
742
  initAnimation() {
743
743
  const { options: t } = this;
744
- On(t);
744
+ Pn(t);
745
745
  const { type: n = X, repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: a = 0 } = t;
746
746
  let { keyframes: o } = t;
747
747
  const u = n || X;
748
- process.env.NODE_ENV !== "production" && u !== X && B(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), u !== X && typeof o[0] != "number" && (this.mixKeyframes = Ze(mi, Cn(o[0], o[1])), o = [0, 100]);
748
+ process.env.NODE_ENV !== "production" && u !== X && B(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), u !== X && typeof o[0] != "number" && (this.mixKeyframes = Ze(di, Mn(o[0], o[1])), o = [0, 100]);
749
749
  const c = u({ ...t, keyframes: o });
750
750
  r === "mirror" && (this.mirroredGenerator = u({
751
751
  ...t,
752
752
  keyframes: [...o].reverse(),
753
753
  velocity: -a
754
- })), c.calculatedDuration === null && (c.calculatedDuration = rt(c));
754
+ })), c.calculatedDuration === null && (c.calculatedDuration = it(c));
755
755
  const { calculatedDuration: l } = c;
756
756
  this.calculatedDuration = l, this.resolvedDuration = l + i, this.totalDuration = this.resolvedDuration * (s + 1) - i, this.generator = c;
757
757
  }
@@ -767,18 +767,18 @@ class lt extends ot {
767
767
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - i / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
768
768
  const v = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), A = this.playbackSpeed >= 0 ? v < 0 : v > i;
769
769
  this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
770
- let V = this.currentTime, w = s;
770
+ let V = this.currentTime, x = s;
771
771
  if (f) {
772
772
  const b = Math.min(this.currentTime, i) / o;
773
- let x = Math.floor(b), E = b % 1;
774
- !E && b >= 1 && (E = 1), E === 1 && x--, x = Math.min(x, f + 1), x % 2 && (h === "reverse" ? (E = 1 - E, p && (E -= p / o)) : h === "mirror" && (w = a)), V = _(0, 1, E) * o;
773
+ let w = Math.floor(b), E = b % 1;
774
+ !E && b >= 1 && (E = 1), E === 1 && w--, w = Math.min(w, f + 1), w % 2 && (h === "reverse" ? (E = 1 - E, p && (E -= p / o)) : h === "mirror" && (x = a)), V = _(0, 1, E) * o;
775
775
  }
776
- const m = A ? { done: !1, value: l[0] } : w.next(V);
776
+ const m = A ? { done: !1, value: l[0] } : x.next(V);
777
777
  r && (m.value = r(m.value));
778
778
  let { done: y } = m;
779
779
  !A && u !== null && (y = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
780
780
  const M = this.holdTime === null && (this.state === "finished" || this.state === "running" && y);
781
- return M && g !== Ke && (m.value = at(l, this.options, S, this.speed)), T && T(m.value), M && this.finish(), m;
781
+ return M && g !== Ke && (m.value = rt(l, this.options, S, this.speed)), T && T(m.value), M && this.finish(), m;
782
782
  }
783
783
  /**
784
784
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -812,7 +812,7 @@ class lt extends ot {
812
812
  play() {
813
813
  if (this.isStopped)
814
814
  return;
815
- const { driver: t = ei, startTime: n } = this.options;
815
+ const { driver: t = Qs, startTime: n } = this.options;
816
816
  this.driver || (this.driver = t((i) => this.tick(i))), this.options.onPlay?.();
817
817
  const s = this.driver.now();
818
818
  this.state === "finished" ? (this.updateFinished(), this.startTime = s) : this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime || (this.startTime = n ?? s), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -842,14 +842,14 @@ class lt extends ot {
842
842
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), t.observe(this);
843
843
  }
844
844
  }
845
- function pi(e) {
845
+ function mi(e) {
846
846
  for (let t = 1; t < e.length; t++)
847
847
  e[t] ?? (e[t] = e[t - 1]);
848
848
  }
849
849
  const G = (e) => e * 180 / Math.PI, $e = (e) => {
850
850
  const t = G(Math.atan2(e[1], e[0]));
851
851
  return Le(t);
852
- }, gi = {
852
+ }, pi = {
853
853
  x: 4,
854
854
  y: 5,
855
855
  translateX: 4,
@@ -862,20 +862,20 @@ const G = (e) => e * 180 / Math.PI, $e = (e) => {
862
862
  skewX: (e) => G(Math.atan(e[1])),
863
863
  skewY: (e) => G(Math.atan(e[2])),
864
864
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
865
- }, Le = (e) => (e = e % 360, e < 0 && (e += 360), e), Ot = $e, kt = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Bt = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), yi = {
865
+ }, Le = (e) => (e = e % 360, e < 0 && (e += 360), e), Pt = $e, Ot = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), kt = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), gi = {
866
866
  x: 12,
867
867
  y: 13,
868
868
  z: 14,
869
869
  translateX: 12,
870
870
  translateY: 13,
871
871
  translateZ: 14,
872
- scaleX: kt,
873
- scaleY: Bt,
874
- scale: (e) => (kt(e) + Bt(e)) / 2,
872
+ scaleX: Ot,
873
+ scaleY: kt,
874
+ scale: (e) => (Ot(e) + kt(e)) / 2,
875
875
  rotateX: (e) => Le(G(Math.atan2(e[6], e[5]))),
876
876
  rotateY: (e) => Le(G(Math.atan2(-e[2], e[0]))),
877
- rotateZ: Ot,
878
- rotate: Ot,
877
+ rotateZ: Pt,
878
+ rotate: Pt,
879
879
  skewX: (e) => G(Math.atan(e[4])),
880
880
  skewY: (e) => G(Math.atan(e[1])),
881
881
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
@@ -889,21 +889,21 @@ function _e(e, t) {
889
889
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
890
890
  let s, i;
891
891
  if (n)
892
- s = yi, i = n;
892
+ s = gi, i = n;
893
893
  else {
894
894
  const o = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
895
- s = gi, i = o;
895
+ s = pi, i = o;
896
896
  }
897
897
  if (!i)
898
898
  return We(t);
899
- const r = s[t], a = i[1].split(",").map(Ti);
899
+ const r = s[t], a = i[1].split(",").map(bi);
900
900
  return typeof r == "function" ? r(a) : a[r];
901
901
  }
902
- const bi = (e, t) => {
902
+ const yi = (e, t) => {
903
903
  const { transform: n = "none" } = getComputedStyle(e);
904
904
  return _e(n, t);
905
905
  };
906
- function Ti(e) {
906
+ function bi(e) {
907
907
  return parseFloat(e.trim());
908
908
  }
909
909
  const Q = [
@@ -924,10 +924,10 @@ const Q = [
924
924
  "skew",
925
925
  "skewX",
926
926
  "skewY"
927
- ], ee = new Set(Q), It = (e) => e === Z || e === d, vi = /* @__PURE__ */ new Set(["x", "y", "z"]), Si = Q.filter((e) => !vi.has(e));
928
- function Vi(e) {
927
+ ], ee = new Set(Q), Bt = (e) => e === H || e === d, Ti = /* @__PURE__ */ new Set(["x", "y", "z"]), vi = Q.filter((e) => !Ti.has(e));
928
+ function Si(e) {
929
929
  const t = [];
930
- return Si.forEach((n) => {
930
+ return vi.forEach((n) => {
931
931
  const s = e.getValue(n);
932
932
  s !== void 0 && (t.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
933
933
  }), t;
@@ -948,11 +948,11 @@ W.translateX = W.x;
948
948
  W.translateY = W.y;
949
949
  const Y = /* @__PURE__ */ new Set();
950
950
  let je = !1, Ue = !1, Ge = !1;
951
- function kn() {
951
+ function On() {
952
952
  if (Ue) {
953
953
  const e = Array.from(Y).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
954
954
  t.forEach((s) => {
955
- const i = Vi(s);
955
+ const i = Si(s);
956
956
  i.length && (n.set(s, i), s.render());
957
957
  }), e.forEach((s) => s.measureInitialState()), t.forEach((s) => {
958
958
  s.render();
@@ -966,20 +966,20 @@ function kn() {
966
966
  }
967
967
  Ue = !1, je = !1, Y.forEach((e) => e.complete(Ge)), Y.clear();
968
968
  }
969
- function Bn() {
969
+ function kn() {
970
970
  Y.forEach((e) => {
971
971
  e.readKeyframes(), e.needsMeasurement && (Ue = !0);
972
972
  });
973
973
  }
974
- function wi() {
975
- Ge = !0, Bn(), kn(), Ge = !1;
974
+ function Vi() {
975
+ Ge = !0, kn(), On(), Ge = !1;
976
976
  }
977
- class ut {
977
+ class lt {
978
978
  constructor(t, n, s, i, r, a = !1) {
979
979
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = s, this.motionValue = i, this.element = r, this.isAsync = a;
980
980
  }
981
981
  scheduleResolve() {
982
- this.state = "scheduled", this.isAsync ? (Y.add(this), je || (je = !0, K.read(Bn), K.resolveKeyframes(kn))) : (this.readKeyframes(), this.complete());
982
+ this.state = "scheduled", this.isAsync ? (Y.add(this), je || (je = !0, K.read(kn), K.resolveKeyframes(On))) : (this.readKeyframes(), this.complete());
983
983
  }
984
984
  readKeyframes() {
985
985
  const { unresolvedKeyframes: t, name: n, element: s, motionValue: i } = this;
@@ -993,7 +993,7 @@ class ut {
993
993
  }
994
994
  t[0] === void 0 && (t[0] = a), i && r === void 0 && i.set(t[0]);
995
995
  }
996
- pi(t);
996
+ mi(t);
997
997
  }
998
998
  setFinalKeyframe() {
999
999
  }
@@ -1014,22 +1014,22 @@ class ut {
1014
1014
  }
1015
1015
  }
1016
1016
  const xi = (e) => e.startsWith("--");
1017
- function Ai(e, t, n) {
1017
+ function wi(e, t, n) {
1018
1018
  xi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1019
1019
  }
1020
- const Mi = /* @__PURE__ */ He(() => window.ScrollTimeline !== void 0), Ci = {};
1021
- function Di(e, t) {
1022
- const n = /* @__PURE__ */ He(e);
1023
- return () => Ci[t] ?? n();
1020
+ const Ai = /* @__PURE__ */ qe(() => window.ScrollTimeline !== void 0), Mi = {};
1021
+ function Ci(e, t) {
1022
+ const n = /* @__PURE__ */ qe(e);
1023
+ return () => Mi[t] ?? n();
1024
1024
  }
1025
- const In = /* @__PURE__ */ Di(() => {
1025
+ const Bn = /* @__PURE__ */ Ci(() => {
1026
1026
  try {
1027
1027
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1028
1028
  } catch {
1029
1029
  return !1;
1030
1030
  }
1031
1031
  return !0;
1032
- }, "linearEasing"), ae = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Nt = {
1032
+ }, "linearEasing"), ae = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, It = {
1033
1033
  linear: "linear",
1034
1034
  ease: "ease",
1035
1035
  easeIn: "ease-in",
@@ -1040,16 +1040,16 @@ const In = /* @__PURE__ */ Di(() => {
1040
1040
  backIn: /* @__PURE__ */ ae([0.31, 0.01, 0.66, -0.59]),
1041
1041
  backOut: /* @__PURE__ */ ae([0.33, 1.53, 0.69, 0.99])
1042
1042
  };
1043
- function Nn(e, t) {
1043
+ function In(e, t) {
1044
1044
  if (e)
1045
- return typeof e == "function" ? In() ? Dn(e, t) : "ease-out" : yn(e) ? ae(e) : Array.isArray(e) ? e.map((n) => Nn(n, t) || Nt.easeOut) : Nt[e];
1045
+ return typeof e == "function" ? Bn() ? Cn(e, t) : "ease-out" : gn(e) ? ae(e) : Array.isArray(e) ? e.map((n) => In(n, t) || It.easeOut) : It[e];
1046
1046
  }
1047
- function Fi(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: a = "loop", ease: o = "easeOut", times: u } = {}, c = void 0) {
1047
+ function Di(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: a = "loop", ease: o = "easeOut", times: u } = {}, c = void 0) {
1048
1048
  const l = {
1049
1049
  [t]: n
1050
1050
  };
1051
1051
  u && (l.offset = u);
1052
- const f = Nn(o, i);
1052
+ const f = In(o, i);
1053
1053
  Array.isArray(f) && (l.easing = f);
1054
1054
  const h = {
1055
1055
  delay: s,
@@ -1061,23 +1061,23 @@ function Fi(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatTyp
1061
1061
  };
1062
1062
  return c && (h.pseudoElement = c), e.animate(l, h);
1063
1063
  }
1064
- function ct(e) {
1064
+ function ut(e) {
1065
1065
  return typeof e == "function" && "applyToOptions" in e;
1066
1066
  }
1067
- function Ei({ type: e, ...t }) {
1068
- return ct(e) && In() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1067
+ function Fi({ type: e, ...t }) {
1068
+ return ut(e) && Bn() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1069
1069
  }
1070
- class Ri extends ot {
1070
+ class Ei extends at {
1071
1071
  constructor(t) {
1072
1072
  if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t)
1073
1073
  return;
1074
1074
  const { element: n, name: s, keyframes: i, pseudoElement: r, allowFlatten: a = !1, finalKeyframe: o, onComplete: u } = t;
1075
1075
  this.isPseudoElement = !!r, this.allowFlatten = a, this.options = t, B(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1076
- const c = Ei(t);
1077
- this.animation = Fi(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1076
+ const c = Fi(t);
1077
+ this.animation = Di(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1078
1078
  if (this.finishedTime = this.time, !r) {
1079
- const l = at(i, this.options, o, this.speed);
1080
- this.updateMotionValue ? this.updateMotionValue(l) : Ai(n, s, l), this.animation.cancel();
1079
+ const l = rt(i, this.options, o, this.speed);
1080
+ this.updateMotionValue ? this.updateMotionValue(l) : wi(n, s, l), this.animation.cancel();
1081
1081
  }
1082
1082
  u?.(), this.notifyFinished();
1083
1083
  };
@@ -1156,24 +1156,24 @@ class Ri extends ot {
1156
1156
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1157
1157
  */
1158
1158
  attachTimeline({ timeline: t, observe: n }) {
1159
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && Mi() ? (this.animation.timeline = t, H) : n(this);
1159
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && Ai() ? (this.animation.timeline = t, Z) : n(this);
1160
1160
  }
1161
1161
  }
1162
- const Kn = {
1163
- anticipate: hn,
1164
- backInOut: fn,
1165
- circInOut: dn
1162
+ const Nn = {
1163
+ anticipate: fn,
1164
+ backInOut: cn,
1165
+ circInOut: hn
1166
1166
  };
1167
- function Pi(e) {
1168
- return e in Kn;
1167
+ function Ri(e) {
1168
+ return e in Nn;
1169
1169
  }
1170
- function Oi(e) {
1171
- typeof e.ease == "string" && Pi(e.ease) && (e.ease = Kn[e.ease]);
1170
+ function Pi(e) {
1171
+ typeof e.ease == "string" && Ri(e.ease) && (e.ease = Nn[e.ease]);
1172
1172
  }
1173
1173
  const Re = 10;
1174
- class ki extends Ri {
1174
+ class Oi extends Ei {
1175
1175
  constructor(t) {
1176
- Oi(t), On(t), super(t), t.startTime !== void 0 && (this.startTime = t.startTime), this.options = t;
1176
+ Pi(t), Pn(t), super(t), t.startTime !== void 0 && (this.startTime = t.startTime), this.options = t;
1177
1177
  }
1178
1178
  /**
1179
1179
  * WAAPI doesn't natively have any interruption capabilities.
@@ -1191,17 +1191,17 @@ class ki extends Ri {
1191
1191
  n.set(t);
1192
1192
  return;
1193
1193
  }
1194
- const o = new lt({
1194
+ const o = new ot({
1195
1195
  ...a,
1196
1196
  autoplay: !1
1197
1197
  }), u = Math.max(Re, R.now() - this.startTime), c = _(0, Re, u - Re);
1198
1198
  n.setWithVelocity(o.sample(Math.max(0, u - c)).value, o.sample(u).value, c), o.stop();
1199
1199
  }
1200
1200
  }
1201
- const Kt = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1201
+ const Nt = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1202
1202
  (j.test(e) || e === "0") && // And it contains numbers and/or colors
1203
1203
  !e.startsWith("url("));
1204
- function Bi(e) {
1204
+ function ki(e) {
1205
1205
  const t = e[0];
1206
1206
  if (e.length === 1)
1207
1207
  return !0;
@@ -1209,39 +1209,39 @@ function Bi(e) {
1209
1209
  if (e[n] !== t)
1210
1210
  return !0;
1211
1211
  }
1212
- function Ii(e, t, n, s) {
1212
+ function Bi(e, t, n, s) {
1213
1213
  const i = e[0];
1214
1214
  if (i === null)
1215
1215
  return !1;
1216
1216
  if (t === "display" || t === "visibility")
1217
1217
  return !0;
1218
- const r = e[e.length - 1], a = Kt(i, t), o = Kt(r, t);
1219
- return de(a === o, `You are trying to animate ${t} from "${i}" to "${r}". "${a ? r : i}" is not an animatable value.`, "value-not-animatable"), !a || !o ? !1 : Bi(e) || (n === "spring" || ct(n)) && s;
1218
+ const r = e[e.length - 1], a = Nt(i, t), o = Nt(r, t);
1219
+ return de(a === o, `You are trying to animate ${t} from "${i}" to "${r}". "${a ? r : i}" is not an animatable value.`, "value-not-animatable"), !a || !o ? !1 : ki(e) || (n === "spring" || ut(n)) && s;
1220
1220
  }
1221
1221
  function Ye(e) {
1222
1222
  e.duration = 0, e.type = "keyframes";
1223
1223
  }
1224
- const Ni = /* @__PURE__ */ new Set([
1224
+ const Ii = /* @__PURE__ */ new Set([
1225
1225
  "opacity",
1226
1226
  "clipPath",
1227
1227
  "filter",
1228
1228
  "transform"
1229
1229
  // TODO: Could be re-enabled now we have support for linear() easing
1230
1230
  // "background-color"
1231
- ]), Ki = /* @__PURE__ */ He(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1232
- function $i(e) {
1231
+ ]), Ni = /* @__PURE__ */ qe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1232
+ function Ki(e) {
1233
1233
  const { motionValue: t, name: n, repeatDelay: s, repeatType: i, damping: r, type: a } = e;
1234
1234
  if (!(t?.owner?.current instanceof HTMLElement))
1235
1235
  return !1;
1236
1236
  const { onUpdate: u, transformTemplate: c } = t.owner.getProps();
1237
- return Ki() && n && Ni.has(n) && (n !== "transform" || !c) && /**
1237
+ return Ni() && n && Ii.has(n) && (n !== "transform" || !c) && /**
1238
1238
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1239
1239
  * no way to read the value from WAAPI every frame.
1240
1240
  */
1241
1241
  !u && !s && i !== "mirror" && r !== 0 && a !== "inertia";
1242
1242
  }
1243
- const Li = 40;
1244
- class Wi extends ot {
1243
+ const $i = 40;
1244
+ class Li extends at {
1245
1245
  constructor({ autoplay: t = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: a = "loop", keyframes: o, name: u, motionValue: c, element: l, ...f }) {
1246
1246
  super(), this.stop = () => {
1247
1247
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1257,23 +1257,23 @@ class Wi extends ot {
1257
1257
  motionValue: c,
1258
1258
  element: l,
1259
1259
  ...f
1260
- }, p = l?.KeyframeResolver || ut;
1260
+ }, p = l?.KeyframeResolver || lt;
1261
1261
  this.keyframeResolver = new p(o, (g, T, S) => this.onKeyframesResolved(g, T, h, !S), u, c, l), this.keyframeResolver?.scheduleResolve();
1262
1262
  }
1263
1263
  onKeyframesResolved(t, n, s, i) {
1264
1264
  this.keyframeResolver = void 0;
1265
1265
  const { name: r, type: a, velocity: o, delay: u, isHandoff: c, onUpdate: l } = s;
1266
- this.resolvedAt = R.now(), Ii(t, r, a, o) || ((N.instantAnimations || !u) && l?.(at(t, s, n)), t[0] = t[t.length - 1], Ye(s), s.repeat = 0);
1266
+ this.resolvedAt = R.now(), Bi(t, r, a, o) || ((N.instantAnimations || !u) && l?.(rt(t, s, n)), t[0] = t[t.length - 1], Ye(s), s.repeat = 0);
1267
1267
  const h = {
1268
- startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Li ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1268
+ startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > $i ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1269
1269
  finalKeyframe: n,
1270
1270
  ...s,
1271
1271
  keyframes: t
1272
- }, p = !c && $i(h) ? new ki({
1272
+ }, p = !c && Ki(h) ? new Oi({
1273
1273
  ...h,
1274
1274
  element: h.motionValue.owner.current
1275
- }) : new lt(h);
1276
- p.finished.then(() => this.notifyFinished()).catch(H), this.pendingTimeline && (this.stopTimeline = p.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = p;
1275
+ }) : new ot(h);
1276
+ p.finished.then(() => this.notifyFinished()).catch(Z), this.pendingTimeline && (this.stopTimeline = p.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = p;
1277
1277
  }
1278
1278
  get finished() {
1279
1279
  return this._animation ? this.animation.finished : this._finished;
@@ -1283,7 +1283,7 @@ class Wi extends ot {
1283
1283
  });
1284
1284
  }
1285
1285
  get animation() {
1286
- return this._animation || (this.keyframeResolver?.resume(), wi()), this._animation;
1286
+ return this._animation || (this.keyframeResolver?.resume(), Vi()), this._animation;
1287
1287
  }
1288
1288
  get duration() {
1289
1289
  return this.animation.duration;
@@ -1325,7 +1325,7 @@ class Wi extends ot {
1325
1325
  this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1326
1326
  }
1327
1327
  }
1328
- class _i {
1328
+ class Wi {
1329
1329
  constructor(t) {
1330
1330
  this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
1331
1331
  }
@@ -1369,10 +1369,10 @@ class _i {
1369
1369
  return this.getAll("startTime");
1370
1370
  }
1371
1371
  get duration() {
1372
- return $t(this.animations, "duration");
1372
+ return Kt(this.animations, "duration");
1373
1373
  }
1374
1374
  get iterationDuration() {
1375
- return $t(this.animations, "iterationDuration");
1375
+ return Kt(this.animations, "iterationDuration");
1376
1376
  }
1377
1377
  runAll(t) {
1378
1378
  this.animations.forEach((n) => n[t]());
@@ -1390,7 +1390,7 @@ class _i {
1390
1390
  this.runAll("complete");
1391
1391
  }
1392
1392
  }
1393
- function $t(e, t) {
1393
+ function Kt(e, t) {
1394
1394
  let n = 0;
1395
1395
  for (let s = 0; s < e.length; s++) {
1396
1396
  const i = e[s][t];
@@ -1398,40 +1398,98 @@ function $t(e, t) {
1398
1398
  }
1399
1399
  return n;
1400
1400
  }
1401
- class ji extends _i {
1401
+ class _i extends Wi {
1402
1402
  then(t, n) {
1403
1403
  return this.finished.finally(t).then(() => {
1404
1404
  });
1405
1405
  }
1406
1406
  }
1407
- const Ui = (
1407
+ const ji = (
1408
1408
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1409
1409
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1410
1410
  );
1411
- function Gi(e) {
1412
- const t = Ui.exec(e);
1411
+ function Ui(e) {
1412
+ const t = ji.exec(e);
1413
1413
  if (!t)
1414
1414
  return [,];
1415
1415
  const [, n, s, i] = t;
1416
1416
  return [`--${n ?? s}`, i];
1417
1417
  }
1418
- const Yi = 4;
1419
- function $n(e, t, n = 1) {
1420
- B(n <= Yi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1421
- const [s, i] = Gi(e);
1418
+ const Gi = 4;
1419
+ function Kn(e, t, n = 1) {
1420
+ B(n <= Gi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1421
+ const [s, i] = Ui(e);
1422
1422
  if (!s)
1423
1423
  return;
1424
1424
  const r = window.getComputedStyle(t).getPropertyValue(s);
1425
1425
  if (r) {
1426
1426
  const a = r.trim();
1427
- return tn(a) ? parseFloat(a) : a;
1427
+ return en(a) ? parseFloat(a) : a;
1428
1428
  }
1429
- return tt(i) ? $n(i, t, n + 1) : i;
1429
+ return et(i) ? Kn(i, t, n + 1) : i;
1430
1430
  }
1431
- function Ln(e, t) {
1431
+ function $n(e, t) {
1432
1432
  return e?.[t] ?? e?.default ?? e;
1433
1433
  }
1434
- const Wn = /* @__PURE__ */ new Set([
1434
+ const Yi = {
1435
+ type: "spring",
1436
+ stiffness: 500,
1437
+ damping: 25,
1438
+ restSpeed: 10
1439
+ }, zi = (e) => ({
1440
+ type: "spring",
1441
+ stiffness: 550,
1442
+ damping: e === 0 ? 2 * Math.sqrt(550) : 30,
1443
+ restSpeed: 10
1444
+ }), Xi = {
1445
+ type: "keyframes",
1446
+ duration: 0.8
1447
+ }, qi = {
1448
+ type: "keyframes",
1449
+ ease: [0.25, 0.1, 0.35, 1],
1450
+ duration: 0.3
1451
+ }, Zi = (e, { keyframes: t }) => t.length > 2 ? Xi : ee.has(e) ? e.startsWith("scale") ? zi(t[1]) : Yi : qi;
1452
+ function Hi({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: a, repeatDelay: o, from: u, elapsed: c, ...l }) {
1453
+ return !!Object.keys(l).length;
1454
+ }
1455
+ const Ji = (e) => e !== null;
1456
+ function Qi(e, { repeat: t, repeatType: n = "loop" }, s) {
1457
+ const i = e.filter(Ji), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
1458
+ return i[r];
1459
+ }
1460
+ const Ln = (e, t, n, s = {}, i, r) => (a) => {
1461
+ const o = $n(s, e) || {}, u = o.delay || s.delay || 0;
1462
+ let { elapsed: c = 0 } = s;
1463
+ c = c - /* @__PURE__ */ k(u);
1464
+ const l = {
1465
+ keyframes: Array.isArray(n) ? n : [null, n],
1466
+ ease: "easeOut",
1467
+ velocity: t.getVelocity(),
1468
+ ...o,
1469
+ delay: -c,
1470
+ onUpdate: (h) => {
1471
+ t.set(h), o.onUpdate && o.onUpdate(h);
1472
+ },
1473
+ onComplete: () => {
1474
+ a(), o.onComplete && o.onComplete();
1475
+ },
1476
+ name: e,
1477
+ motionValue: t,
1478
+ element: r ? void 0 : i
1479
+ };
1480
+ Hi(o) || Object.assign(l, Zi(e, l)), l.duration && (l.duration = /* @__PURE__ */ k(l.duration)), l.repeatDelay && (l.repeatDelay = /* @__PURE__ */ k(l.repeatDelay)), l.from !== void 0 && (l.keyframes[0] = l.from);
1481
+ let f = !1;
1482
+ if ((l.type === !1 || l.duration === 0 && !l.repeatDelay) && (Ye(l), l.delay === 0 && (f = !0)), (N.instantAnimations || N.skipAnimations) && (f = !0, Ye(l), l.delay = 0), l.allowFlatten = !o.type && !o.ease, f && !r && t.get() !== void 0) {
1483
+ const h = Qi(l.keyframes, o);
1484
+ if (h !== void 0) {
1485
+ K.update(() => {
1486
+ l.onUpdate(h), l.onComplete();
1487
+ });
1488
+ return;
1489
+ }
1490
+ }
1491
+ return o.isSync ? new ot(l) : new Li(l);
1492
+ }, Wn = /* @__PURE__ */ new Set([
1435
1493
  "width",
1436
1494
  "height",
1437
1495
  "top",
@@ -1439,221 +1497,8 @@ const Wn = /* @__PURE__ */ new Set([
1439
1497
  "right",
1440
1498
  "bottom",
1441
1499
  ...Q
1442
- ]), zi = {
1443
- test: (e) => e === "auto",
1444
- parse: (e) => e
1445
- }, _n = (e) => (t) => t.test(e), jn = [Z, d, q, L, Ks, Ns, zi], Lt = (e) => jn.find(_n(e));
1446
- function Xi(e) {
1447
- return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || nn(e) : !0;
1448
- }
1449
- const qi = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1450
- function Hi(e) {
1451
- const [t, n] = e.slice(0, -1).split("(");
1452
- if (t === "drop-shadow")
1453
- return e;
1454
- const [s] = n.match(nt) || [];
1455
- if (!s)
1456
- return e;
1457
- const i = n.replace(s, "");
1458
- let r = qi.has(t) ? 1 : 0;
1459
- return s !== n && (r *= 100), t + "(" + r + i + ")";
1460
- }
1461
- const Zi = /\b([a-z-]*)\(.*?\)/gu, ze = {
1462
- ...j,
1463
- getAnimatableNone: (e) => {
1464
- const t = e.match(Zi);
1465
- return t ? t.map(Hi).join(" ") : e;
1466
- }
1467
- }, Wt = {
1468
- ...Z,
1469
- transform: Math.round
1470
- }, Ji = {
1471
- rotate: L,
1472
- rotateX: L,
1473
- rotateY: L,
1474
- rotateZ: L,
1475
- scale: Te,
1476
- scaleX: Te,
1477
- scaleY: Te,
1478
- scaleZ: Te,
1479
- skew: L,
1480
- skewX: L,
1481
- skewY: L,
1482
- distance: d,
1483
- translateX: d,
1484
- translateY: d,
1485
- translateZ: d,
1486
- x: d,
1487
- y: d,
1488
- z: d,
1489
- perspective: d,
1490
- transformPerspective: d,
1491
- opacity: le,
1492
- originX: Dt,
1493
- originY: Dt,
1494
- originZ: d
1495
- }, ft = {
1496
- // Border props
1497
- borderWidth: d,
1498
- borderTopWidth: d,
1499
- borderRightWidth: d,
1500
- borderBottomWidth: d,
1501
- borderLeftWidth: d,
1502
- borderRadius: d,
1503
- radius: d,
1504
- borderTopLeftRadius: d,
1505
- borderTopRightRadius: d,
1506
- borderBottomRightRadius: d,
1507
- borderBottomLeftRadius: d,
1508
- // Positioning props
1509
- width: d,
1510
- maxWidth: d,
1511
- height: d,
1512
- maxHeight: d,
1513
- top: d,
1514
- right: d,
1515
- bottom: d,
1516
- left: d,
1517
- inset: d,
1518
- insetBlock: d,
1519
- insetBlockStart: d,
1520
- insetBlockEnd: d,
1521
- insetInline: d,
1522
- insetInlineStart: d,
1523
- insetInlineEnd: d,
1524
- // Spacing props
1525
- padding: d,
1526
- paddingTop: d,
1527
- paddingRight: d,
1528
- paddingBottom: d,
1529
- paddingLeft: d,
1530
- paddingBlock: d,
1531
- paddingBlockStart: d,
1532
- paddingBlockEnd: d,
1533
- paddingInline: d,
1534
- paddingInlineStart: d,
1535
- paddingInlineEnd: d,
1536
- margin: d,
1537
- marginTop: d,
1538
- marginRight: d,
1539
- marginBottom: d,
1540
- marginLeft: d,
1541
- marginBlock: d,
1542
- marginBlockStart: d,
1543
- marginBlockEnd: d,
1544
- marginInline: d,
1545
- marginInlineStart: d,
1546
- marginInlineEnd: d,
1547
- // Misc
1548
- backgroundPositionX: d,
1549
- backgroundPositionY: d,
1550
- ...Ji,
1551
- zIndex: Wt,
1552
- // SVG
1553
- fillOpacity: le,
1554
- strokeOpacity: le,
1555
- numOctaves: Wt
1556
- }, Qi = {
1557
- ...ft,
1558
- // Color props
1559
- color: D,
1560
- backgroundColor: D,
1561
- outlineColor: D,
1562
- fill: D,
1563
- stroke: D,
1564
- // Border props
1565
- borderColor: D,
1566
- borderTopColor: D,
1567
- borderRightColor: D,
1568
- borderBottomColor: D,
1569
- borderLeftColor: D,
1570
- filter: ze,
1571
- WebkitFilter: ze
1572
- }, Un = (e) => Qi[e];
1573
- function Gn(e, t) {
1574
- let n = Un(e);
1575
- return n !== ze && (n = j), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1576
- }
1577
- const er = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1578
- function tr(e, t, n) {
1579
- let s = 0, i;
1580
- for (; s < e.length && !i; ) {
1581
- const r = e[s];
1582
- typeof r == "string" && !er.has(r) && ue(r).values.length && (i = e[s]), s++;
1583
- }
1584
- if (i && n)
1585
- for (const r of t)
1586
- e[r] = Gn(n, i);
1587
- }
1588
- class nr extends ut {
1589
- constructor(t, n, s, i, r) {
1590
- super(t, n, s, i, r, !0);
1591
- }
1592
- readKeyframes() {
1593
- const { unresolvedKeyframes: t, element: n, name: s } = this;
1594
- if (!n || !n.current)
1595
- return;
1596
- super.readKeyframes();
1597
- for (let l = 0; l < t.length; l++) {
1598
- let f = t[l];
1599
- if (typeof f == "string" && (f = f.trim(), tt(f))) {
1600
- const h = $n(f, n.current);
1601
- h !== void 0 && (t[l] = h), l === t.length - 1 && (this.finalKeyframe = f);
1602
- }
1603
- }
1604
- if (this.resolveNoneKeyframes(), !Wn.has(s) || t.length !== 2)
1605
- return;
1606
- const [i, r] = t, a = Lt(i), o = Lt(r), u = Ct(i), c = Ct(r);
1607
- if (u !== c && W[s]) {
1608
- this.needsMeasurement = !0;
1609
- return;
1610
- }
1611
- if (a !== o)
1612
- if (It(a) && It(o))
1613
- for (let l = 0; l < t.length; l++) {
1614
- const f = t[l];
1615
- typeof f == "string" && (t[l] = parseFloat(f));
1616
- }
1617
- else W[s] && (this.needsMeasurement = !0);
1618
- }
1619
- resolveNoneKeyframes() {
1620
- const { unresolvedKeyframes: t, name: n } = this, s = [];
1621
- for (let i = 0; i < t.length; i++)
1622
- (t[i] === null || Xi(t[i])) && s.push(i);
1623
- s.length && tr(t, s, n);
1624
- }
1625
- measureInitialState() {
1626
- const { element: t, unresolvedKeyframes: n, name: s } = this;
1627
- if (!t || !t.current)
1628
- return;
1629
- s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = W[s](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
1630
- const i = n[n.length - 1];
1631
- i !== void 0 && t.getValue(s, i).jump(i, !1);
1632
- }
1633
- measureEndState() {
1634
- const { element: t, name: n, unresolvedKeyframes: s } = this;
1635
- if (!t || !t.current)
1636
- return;
1637
- const i = t.getValue(n);
1638
- i && i.jump(this.measuredOrigin, !1);
1639
- const r = s.length - 1, a = s[r];
1640
- s[r] = W[n](t.measureViewportBox(), window.getComputedStyle(t.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([o, u]) => {
1641
- t.getValue(o).set(u);
1642
- }), this.resolveNoneKeyframes();
1643
- }
1644
- }
1645
- function sr(e, t, n) {
1646
- if (e instanceof EventTarget)
1647
- return [e];
1648
- if (typeof e == "string") {
1649
- let s = document;
1650
- const i = n?.[e] ?? s.querySelectorAll(e);
1651
- return i ? Array.from(i) : [];
1652
- }
1653
- return Array.from(e);
1654
- }
1655
- const Yn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, _t = 30, ir = (e) => !isNaN(parseFloat(e));
1656
- class rr {
1500
+ ]), $t = 30, er = (e) => !isNaN(parseFloat(e));
1501
+ class tr {
1657
1502
  /**
1658
1503
  * @param init - The initiating value
1659
1504
  * @param config - Optional configuration options
@@ -1669,7 +1514,7 @@ class rr {
1669
1514
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
1670
1515
  }
1671
1516
  setCurrent(t) {
1672
- this.current = t, this.updatedAt = R.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = ir(this.current));
1517
+ this.current = t, this.updatedAt = R.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = er(this.current));
1673
1518
  }
1674
1519
  setPrevFrameValue(t = this.current) {
1675
1520
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -1715,10 +1560,10 @@ class rr {
1715
1560
  * @deprecated
1716
1561
  */
1717
1562
  onChange(t) {
1718
- return process.env.NODE_ENV !== "production" && an(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
1563
+ return process.env.NODE_ENV !== "production" && rn(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
1719
1564
  }
1720
1565
  on(t, n) {
1721
- this.events[t] || (this.events[t] = new sn());
1566
+ this.events[t] || (this.events[t] = new nn());
1722
1567
  const s = this.events[t].add(n);
1723
1568
  return t === "change" ? () => {
1724
1569
  s(), K.read(() => {
@@ -1798,10 +1643,10 @@ class rr {
1798
1643
  */
1799
1644
  getVelocity() {
1800
1645
  const t = R.now();
1801
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > _t)
1646
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > $t)
1802
1647
  return 0;
1803
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, _t);
1804
- return rn(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1648
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, $t);
1649
+ return sn(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1805
1650
  }
1806
1651
  /**
1807
1652
  * Registers a new animation to control this `MotionValue`. Only one
@@ -1853,364 +1698,341 @@ class rr {
1853
1698
  }
1854
1699
  }
1855
1700
  function fe(e, t) {
1856
- return new rr(e, t);
1857
- }
1858
- const { schedule: ar } = /* @__PURE__ */ bn(queueMicrotask, !1);
1859
- function zn(e) {
1860
- return bs(e) && "ownerSVGElement" in e;
1701
+ return new tr(e, t);
1861
1702
  }
1862
- function or(e) {
1863
- return zn(e) && e.tagName === "svg";
1703
+ function Lt(e) {
1704
+ const t = [{}, {}];
1705
+ return e?.values.forEach((n, s) => {
1706
+ t[0][s] = n.get(), t[1][s] = n.getVelocity();
1707
+ }), t;
1864
1708
  }
1865
- const F = (e) => !!(e && e.getVelocity), lr = [...jn, D, j], ur = (e) => lr.find(_n(e));
1866
- function ht(e) {
1867
- return typeof e == "object" && !Array.isArray(e);
1709
+ function _n(e, t, n, s) {
1710
+ if (typeof t == "function") {
1711
+ const [i, r] = Lt(s);
1712
+ t = t(n !== void 0 ? n : e.custom, i, r);
1713
+ }
1714
+ if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
1715
+ const [i, r] = Lt(s);
1716
+ t = t(n !== void 0 ? n : e.custom, i, r);
1717
+ }
1718
+ return t;
1868
1719
  }
1869
- function Xn(e, t, n, s) {
1870
- return typeof e == "string" && ht(t) ? sr(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
1720
+ function nr(e, t, n) {
1721
+ const s = e.getProps();
1722
+ return _n(s, t, s.custom, e);
1871
1723
  }
1872
- function cr(e, t, n) {
1873
- return e * (t + 1);
1724
+ const sr = (e) => Array.isArray(e);
1725
+ function ir(e, t, n) {
1726
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, fe(n));
1874
1727
  }
1875
- function jt(e, t, n, s) {
1876
- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : s.get(t) ?? e;
1728
+ function rr(e) {
1729
+ return sr(e) ? e[e.length - 1] || 0 : e;
1877
1730
  }
1878
- function fr(e, t, n) {
1879
- for (let s = 0; s < e.length; s++) {
1880
- const i = e[s];
1881
- i.at > t && i.at < n && (en(e, i), s--);
1882
- }
1883
- }
1884
- function hr(e, t, n, s, i, r) {
1885
- fr(e, i, r);
1886
- for (let a = 0; a < t.length; a++)
1887
- e.push({
1888
- value: t[a],
1889
- at: J(i, r, s[a]),
1890
- easing: gn(n, a)
1891
- });
1892
- }
1893
- function dr(e, t) {
1894
- for (let n = 0; n < e.length; n++)
1895
- e[n] = e[n] / (t + 1);
1896
- }
1897
- function mr(e, t) {
1898
- return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
1899
- }
1900
- const pr = "easeInOut", gr = 20;
1901
- function yr(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
1902
- const r = t.duration || 0.3, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), u = {}, c = /* @__PURE__ */ new Map();
1903
- let l = 0, f = 0, h = 0;
1904
- for (let p = 0; p < e.length; p++) {
1905
- const g = e[p];
1906
- if (typeof g == "string") {
1907
- c.set(g, f);
1908
- continue;
1909
- } else if (!Array.isArray(g)) {
1910
- c.set(g.name, jt(f, g.at, l, c));
1911
- continue;
1912
- }
1913
- let [T, S, v = {}] = g;
1914
- v.at !== void 0 && (f = jt(f, v.at, l, c));
1915
- let A = 0;
1916
- const V = (w, m, y, M = 0, b = 0) => {
1917
- const x = br(w), { delay: E = 0, times: O = Pn(x), type: xe = "keyframes", repeat: te, repeatType: Da, repeatDelay: Fa = 0, ...as } = m;
1918
- let { ease: $ = t.ease || "easeOut", duration: I } = m;
1919
- const pt = typeof E == "function" ? E(M, b) : E, gt = x.length, yt = ct(xe) ? xe : i?.[xe || "keyframes"];
1920
- if (gt <= 2 && yt) {
1921
- let ne = 100;
1922
- if (gt === 2 && Sr(x)) {
1923
- const se = x[1] - x[0];
1924
- ne = Math.abs(se);
1925
- }
1926
- const ge = { ...as };
1927
- I !== void 0 && (ge.duration = /* @__PURE__ */ k(I));
1928
- const ye = Fn(ge, ne, yt);
1929
- $ = ye.ease, I = ye.duration;
1930
- }
1931
- I ?? (I = r);
1932
- const bt = f + pt;
1933
- O.length === 1 && O[0] === 0 && (O[1] = 1);
1934
- const Tt = O.length - x.length;
1935
- if (Tt > 0 && Rn(O, Tt), x.length === 1 && x.unshift(null), te) {
1936
- B(te < gr, "Repeat count too high, must be less than 20", "repeat-count-high"), I = cr(I, te);
1937
- const ne = [...x], ge = [...O];
1938
- $ = Array.isArray($) ? [...$] : [$];
1939
- const ye = [...$];
1940
- for (let se = 0; se < te; se++) {
1941
- x.push(...ne);
1942
- for (let ie = 0; ie < ne.length; ie++)
1943
- O.push(ge[ie] + (se + 1)), $.push(ie === 0 ? "linear" : gn(ye, ie - 1));
1944
- }
1945
- dr(O, te);
1946
- }
1947
- const vt = bt + I;
1948
- hr(y, x, $, O, bt, vt), A = Math.max(pt + I, A), h = Math.max(vt, h);
1949
- };
1950
- if (F(T)) {
1951
- const w = Ut(T, o);
1952
- V(S, v, Gt("default", w));
1953
- } else {
1954
- const w = Xn(T, S, s, u), m = w.length;
1955
- for (let y = 0; y < m; y++) {
1956
- S = S, v = v;
1957
- const M = w[y], b = Ut(M, o);
1958
- for (const x in S)
1959
- V(S[x], Tr(v, x), Gt(x, b), y, m);
1960
- }
1961
- }
1962
- l = f, f += A;
1963
- }
1964
- return o.forEach((p, g) => {
1965
- for (const T in p) {
1966
- const S = p[T];
1967
- S.sort(mr);
1968
- const v = [], A = [], V = [];
1969
- for (let m = 0; m < S.length; m++) {
1970
- const { at: y, value: M, easing: b } = S[m];
1971
- v.push(M), A.push(/* @__PURE__ */ Je(0, h, y)), V.push(b || "easeOut");
1972
- }
1973
- A[0] !== 0 && (A.unshift(0), v.unshift(v[0]), V.unshift(pr)), A[A.length - 1] !== 1 && (A.push(1), v.push(null)), a.has(g) || a.set(g, {
1974
- keyframes: {},
1975
- transition: {}
1976
- });
1977
- const w = a.get(g);
1978
- w.keyframes[T] = v, w.transition[T] = {
1979
- ...t,
1980
- duration: h,
1981
- ease: V,
1982
- times: A,
1983
- ...n
1984
- };
1985
- }
1986
- }), a;
1987
- }
1988
- function Ut(e, t) {
1989
- return !t.has(e) && t.set(e, {}), t.get(e);
1990
- }
1991
- function Gt(e, t) {
1992
- return t[e] || (t[e] = []), t[e];
1993
- }
1994
- function br(e) {
1995
- return Array.isArray(e) ? e : [e];
1996
- }
1997
- function Tr(e, t) {
1998
- return e && e[t] ? {
1999
- ...e,
2000
- ...e[t]
2001
- } : { ...e };
2002
- }
2003
- const vr = (e) => typeof e == "number", Sr = (e) => e.every(vr), he = /* @__PURE__ */ new WeakMap(), Vr = (e) => Array.isArray(e);
2004
- function Yt(e) {
2005
- const t = [{}, {}];
2006
- return e?.values.forEach((n, s) => {
2007
- t[0][s] = n.get(), t[1][s] = n.getVelocity();
2008
- }), t;
2009
- }
2010
- function qn(e, t, n, s) {
2011
- if (typeof t == "function") {
2012
- const [i, r] = Yt(s);
2013
- t = t(n !== void 0 ? n : e.custom, i, r);
2014
- }
2015
- if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
2016
- const [i, r] = Yt(s);
2017
- t = t(n !== void 0 ? n : e.custom, i, r);
2018
- }
2019
- return t;
2020
- }
2021
- function wr(e, t, n) {
2022
- const s = e.getProps();
2023
- return qn(s, t, s.custom, e);
2024
- }
2025
- function xr(e, t, n) {
2026
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, fe(n));
2027
- }
2028
- function Ar(e) {
2029
- return Vr(e) ? e[e.length - 1] || 0 : e;
2030
- }
2031
- function Mr(e, t) {
2032
- const n = wr(e, t);
1731
+ function ar(e, t) {
1732
+ const n = nr(e, t);
2033
1733
  let { transitionEnd: s = {}, transition: i = {}, ...r } = n || {};
2034
1734
  r = { ...r, ...s };
2035
1735
  for (const a in r) {
2036
- const o = Ar(r[a]);
2037
- xr(e, a, o);
1736
+ const o = rr(r[a]);
1737
+ ir(e, a, o);
2038
1738
  }
2039
1739
  }
2040
- function Cr(e) {
1740
+ const F = (e) => !!(e && e.getVelocity);
1741
+ function or(e) {
2041
1742
  return !!(F(e) && e.add);
2042
1743
  }
2043
- function Dr(e, t) {
1744
+ function lr(e, t) {
2044
1745
  const n = e.getValue("willChange");
2045
- if (Cr(n))
1746
+ if (or(n))
2046
1747
  return n.add(t);
2047
1748
  if (!n && N.WillChange) {
2048
1749
  const s = new N.WillChange("auto");
2049
1750
  e.addValue("willChange", s), s.add(t);
2050
1751
  }
2051
1752
  }
2052
- const dt = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Fr = "framerAppearId", Er = "data-" + dt(Fr);
2053
- function Rr(e) {
2054
- return e.props[Er];
2055
- }
2056
- const Pr = (e) => e !== null;
2057
- function Or(e, { repeat: t, repeatType: n = "loop" }, s) {
2058
- const i = e.filter(Pr), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
2059
- return i[r];
1753
+ function ct(e) {
1754
+ return e.replace(/([A-Z])/g, (t) => `-${t.toLowerCase()}`);
2060
1755
  }
2061
- const kr = {
2062
- type: "spring",
2063
- stiffness: 500,
2064
- damping: 25,
2065
- restSpeed: 10
2066
- }, Br = (e) => ({
2067
- type: "spring",
2068
- stiffness: 550,
2069
- damping: e === 0 ? 2 * Math.sqrt(550) : 30,
2070
- restSpeed: 10
2071
- }), Ir = {
2072
- type: "keyframes",
2073
- duration: 0.8
2074
- }, Nr = {
2075
- type: "keyframes",
2076
- ease: [0.25, 0.1, 0.35, 1],
2077
- duration: 0.3
2078
- }, Kr = (e, { keyframes: t }) => t.length > 2 ? Ir : ee.has(e) ? e.startsWith("scale") ? Br(t[1]) : kr : Nr;
2079
- function $r({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: a, repeatDelay: o, from: u, elapsed: c, ...l }) {
2080
- return !!Object.keys(l).length;
1756
+ const ur = "framerAppearId", cr = "data-" + ct(ur);
1757
+ function fr(e) {
1758
+ return e.props[cr];
2081
1759
  }
2082
- const Hn = (e, t, n, s = {}, i, r) => (a) => {
2083
- const o = Ln(s, e) || {}, u = o.delay || s.delay || 0;
2084
- let { elapsed: c = 0 } = s;
2085
- c = c - /* @__PURE__ */ k(u);
2086
- const l = {
2087
- keyframes: Array.isArray(n) ? n : [null, n],
2088
- ease: "easeOut",
2089
- velocity: t.getVelocity(),
2090
- ...o,
2091
- delay: -c,
2092
- onUpdate: (h) => {
2093
- t.set(h), o.onUpdate && o.onUpdate(h);
2094
- },
2095
- onComplete: () => {
2096
- a(), o.onComplete && o.onComplete();
2097
- },
2098
- name: e,
2099
- motionValue: t,
2100
- element: r ? void 0 : i
2101
- };
2102
- $r(o) || Object.assign(l, Kr(e, l)), l.duration && (l.duration = /* @__PURE__ */ k(l.duration)), l.repeatDelay && (l.repeatDelay = /* @__PURE__ */ k(l.repeatDelay)), l.from !== void 0 && (l.keyframes[0] = l.from);
2103
- let f = !1;
2104
- if ((l.type === !1 || l.duration === 0 && !l.repeatDelay) && (Ye(l), l.delay === 0 && (f = !0)), (N.instantAnimations || N.skipAnimations) && (f = !0, Ye(l), l.delay = 0), l.allowFlatten = !o.type && !o.ease, f && !r && t.get() !== void 0) {
2105
- const h = Or(l.keyframes, o);
2106
- if (h !== void 0) {
2107
- K.update(() => {
2108
- l.onUpdate(h), l.onComplete();
2109
- });
2110
- return;
2111
- }
2112
- }
2113
- return o.isSync ? new lt(l) : new Wi(l);
2114
- };
2115
- function Lr({ protectedKeys: e, needsAnimating: t }, n) {
1760
+ function hr({ protectedKeys: e, needsAnimating: t }, n) {
2116
1761
  const s = e.hasOwnProperty(n) && t[n] !== !0;
2117
1762
  return t[n] = !1, s;
2118
1763
  }
2119
- function Wr(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1764
+ function dr(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2120
1765
  let { transition: r = e.getDefaultTransition(), transitionEnd: a, ...o } = t;
2121
1766
  s && (r = s);
2122
1767
  const u = [], c = i && e.animationState && e.animationState.getState()[i];
2123
1768
  for (const l in o) {
2124
1769
  const f = e.getValue(l, e.latestValues[l] ?? null), h = o[l];
2125
- if (h === void 0 || c && Lr(c, l))
1770
+ if (h === void 0 || c && hr(c, l))
2126
1771
  continue;
2127
1772
  const p = {
2128
1773
  delay: n,
2129
- ...Ln(r || {}, l)
1774
+ ...$n(r || {}, l)
2130
1775
  }, g = f.get();
2131
1776
  if (g !== void 0 && !f.isAnimating && !Array.isArray(h) && h === g && !p.velocity)
2132
1777
  continue;
2133
1778
  let T = !1;
2134
1779
  if (window.MotionHandoffAnimation) {
2135
- const v = Rr(e);
1780
+ const v = fr(e);
2136
1781
  if (v) {
2137
1782
  const A = window.MotionHandoffAnimation(v, l, K);
2138
1783
  A !== null && (p.startTime = A, T = !0);
2139
1784
  }
2140
1785
  }
2141
- Dr(e, l), f.start(Hn(l, f, h, e.shouldReduceMotion && Wn.has(l) ? { type: !1 } : p, e, T));
1786
+ lr(e, l), f.start(Ln(l, f, h, e.shouldReduceMotion && Wn.has(l) ? { type: !1 } : p, e, T));
2142
1787
  const S = f.animation;
2143
1788
  S && u.push(S);
2144
1789
  }
2145
1790
  return a && Promise.all(u).then(() => {
2146
1791
  K.update(() => {
2147
- a && Mr(e, a);
1792
+ a && ar(e, a);
2148
1793
  });
2149
1794
  }), u;
2150
1795
  }
2151
- function _r({ top: e, left: t, right: n, bottom: s }) {
2152
- return {
2153
- x: { min: t, max: n },
2154
- y: { min: e, max: s }
2155
- };
1796
+ const mr = {
1797
+ test: (e) => e === "auto",
1798
+ parse: (e) => e
1799
+ }, jn = (e) => (t) => t.test(e), Un = [H, d, q, L, Ns, Is, mr], Wt = (e) => Un.find(jn(e));
1800
+ function pr(e) {
1801
+ return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || tn(e) : !0;
2156
1802
  }
2157
- function jr(e, t) {
2158
- if (!t)
1803
+ const gr = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1804
+ function yr(e) {
1805
+ const [t, n] = e.slice(0, -1).split("(");
1806
+ if (t === "drop-shadow")
2159
1807
  return e;
2160
- const n = t({ x: e.left, y: e.top }), s = t({ x: e.right, y: e.bottom });
2161
- return {
2162
- top: n.y,
2163
- left: n.x,
2164
- bottom: s.y,
2165
- right: s.x
2166
- };
1808
+ const [s] = n.match(tt) || [];
1809
+ if (!s)
1810
+ return e;
1811
+ const i = n.replace(s, "");
1812
+ let r = gr.has(t) ? 1 : 0;
1813
+ return s !== n && (r *= 100), t + "(" + r + i + ")";
2167
1814
  }
2168
- function Ur(e, t) {
2169
- return _r(jr(e.getBoundingClientRect(), t));
2170
- }
2171
- const zt = {
2172
- animation: [
2173
- "animate",
2174
- "variants",
2175
- "whileHover",
2176
- "whileTap",
2177
- "exit",
2178
- "whileInView",
2179
- "whileFocus",
2180
- "whileDrag"
2181
- ],
2182
- exit: ["exit"],
2183
- drag: ["drag", "dragControls"],
2184
- focus: ["whileFocus"],
2185
- hover: ["whileHover", "onHoverStart", "onHoverEnd"],
2186
- tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"],
2187
- pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
2188
- inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
2189
- layout: ["layout", "layoutId"]
2190
- }, Xe = {};
2191
- for (const e in zt)
2192
- Xe[e] = {
2193
- isEnabled: (t) => zt[e].some((n) => !!t[n])
2194
- };
2195
- const Xt = () => ({ min: 0, max: 0 }), mt = () => ({
2196
- x: Xt(),
2197
- y: Xt()
2198
- }), Gr = typeof window < "u", qe = { current: null }, Zn = { current: !1 };
2199
- function Yr() {
2200
- if (Zn.current = !0, !!Gr)
1815
+ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
1816
+ ...j,
1817
+ getAnimatableNone: (e) => {
1818
+ const t = e.match(br);
1819
+ return t ? t.map(yr).join(" ") : e;
1820
+ }
1821
+ }, _t = {
1822
+ ...H,
1823
+ transform: Math.round
1824
+ }, Tr = {
1825
+ rotate: L,
1826
+ rotateX: L,
1827
+ rotateY: L,
1828
+ rotateZ: L,
1829
+ scale: Te,
1830
+ scaleX: Te,
1831
+ scaleY: Te,
1832
+ scaleZ: Te,
1833
+ skew: L,
1834
+ skewX: L,
1835
+ skewY: L,
1836
+ distance: d,
1837
+ translateX: d,
1838
+ translateY: d,
1839
+ translateZ: d,
1840
+ x: d,
1841
+ y: d,
1842
+ z: d,
1843
+ perspective: d,
1844
+ transformPerspective: d,
1845
+ opacity: le,
1846
+ originX: Ct,
1847
+ originY: Ct,
1848
+ originZ: d
1849
+ }, ft = {
1850
+ // Border props
1851
+ borderWidth: d,
1852
+ borderTopWidth: d,
1853
+ borderRightWidth: d,
1854
+ borderBottomWidth: d,
1855
+ borderLeftWidth: d,
1856
+ borderRadius: d,
1857
+ radius: d,
1858
+ borderTopLeftRadius: d,
1859
+ borderTopRightRadius: d,
1860
+ borderBottomRightRadius: d,
1861
+ borderBottomLeftRadius: d,
1862
+ // Positioning props
1863
+ width: d,
1864
+ maxWidth: d,
1865
+ height: d,
1866
+ maxHeight: d,
1867
+ top: d,
1868
+ right: d,
1869
+ bottom: d,
1870
+ left: d,
1871
+ inset: d,
1872
+ insetBlock: d,
1873
+ insetBlockStart: d,
1874
+ insetBlockEnd: d,
1875
+ insetInline: d,
1876
+ insetInlineStart: d,
1877
+ insetInlineEnd: d,
1878
+ // Spacing props
1879
+ padding: d,
1880
+ paddingTop: d,
1881
+ paddingRight: d,
1882
+ paddingBottom: d,
1883
+ paddingLeft: d,
1884
+ paddingBlock: d,
1885
+ paddingBlockStart: d,
1886
+ paddingBlockEnd: d,
1887
+ paddingInline: d,
1888
+ paddingInlineStart: d,
1889
+ paddingInlineEnd: d,
1890
+ margin: d,
1891
+ marginTop: d,
1892
+ marginRight: d,
1893
+ marginBottom: d,
1894
+ marginLeft: d,
1895
+ marginBlock: d,
1896
+ marginBlockStart: d,
1897
+ marginBlockEnd: d,
1898
+ marginInline: d,
1899
+ marginInlineStart: d,
1900
+ marginInlineEnd: d,
1901
+ // Misc
1902
+ backgroundPositionX: d,
1903
+ backgroundPositionY: d,
1904
+ ...Tr,
1905
+ zIndex: _t,
1906
+ // SVG
1907
+ fillOpacity: le,
1908
+ strokeOpacity: le,
1909
+ numOctaves: _t
1910
+ }, vr = {
1911
+ ...ft,
1912
+ // Color props
1913
+ color: D,
1914
+ backgroundColor: D,
1915
+ outlineColor: D,
1916
+ fill: D,
1917
+ stroke: D,
1918
+ // Border props
1919
+ borderColor: D,
1920
+ borderTopColor: D,
1921
+ borderRightColor: D,
1922
+ borderBottomColor: D,
1923
+ borderLeftColor: D,
1924
+ filter: ze,
1925
+ WebkitFilter: ze
1926
+ }, Gn = (e) => vr[e];
1927
+ function Yn(e, t) {
1928
+ let n = Gn(e);
1929
+ return n !== ze && (n = j), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1930
+ }
1931
+ const Sr = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1932
+ function Vr(e, t, n) {
1933
+ let s = 0, i;
1934
+ for (; s < e.length && !i; ) {
1935
+ const r = e[s];
1936
+ typeof r == "string" && !Sr.has(r) && ue(r).values.length && (i = e[s]), s++;
1937
+ }
1938
+ if (i && n)
1939
+ for (const r of t)
1940
+ e[r] = Yn(n, i);
1941
+ }
1942
+ class xr extends lt {
1943
+ constructor(t, n, s, i, r) {
1944
+ super(t, n, s, i, r, !0);
1945
+ }
1946
+ readKeyframes() {
1947
+ const { unresolvedKeyframes: t, element: n, name: s } = this;
1948
+ if (!n || !n.current)
1949
+ return;
1950
+ super.readKeyframes();
1951
+ for (let l = 0; l < t.length; l++) {
1952
+ let f = t[l];
1953
+ if (typeof f == "string" && (f = f.trim(), et(f))) {
1954
+ const h = Kn(f, n.current);
1955
+ h !== void 0 && (t[l] = h), l === t.length - 1 && (this.finalKeyframe = f);
1956
+ }
1957
+ }
1958
+ if (this.resolveNoneKeyframes(), !Wn.has(s) || t.length !== 2)
1959
+ return;
1960
+ const [i, r] = t, a = Wt(i), o = Wt(r), u = Mt(i), c = Mt(r);
1961
+ if (u !== c && W[s]) {
1962
+ this.needsMeasurement = !0;
1963
+ return;
1964
+ }
1965
+ if (a !== o)
1966
+ if (Bt(a) && Bt(o))
1967
+ for (let l = 0; l < t.length; l++) {
1968
+ const f = t[l];
1969
+ typeof f == "string" && (t[l] = parseFloat(f));
1970
+ }
1971
+ else W[s] && (this.needsMeasurement = !0);
1972
+ }
1973
+ resolveNoneKeyframes() {
1974
+ const { unresolvedKeyframes: t, name: n } = this, s = [];
1975
+ for (let i = 0; i < t.length; i++)
1976
+ (t[i] === null || pr(t[i])) && s.push(i);
1977
+ s.length && Vr(t, s, n);
1978
+ }
1979
+ measureInitialState() {
1980
+ const { element: t, unresolvedKeyframes: n, name: s } = this;
1981
+ if (!t || !t.current)
1982
+ return;
1983
+ s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = W[s](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
1984
+ const i = n[n.length - 1];
1985
+ i !== void 0 && t.getValue(s, i).jump(i, !1);
1986
+ }
1987
+ measureEndState() {
1988
+ const { element: t, name: n, unresolvedKeyframes: s } = this;
1989
+ if (!t || !t.current)
1990
+ return;
1991
+ const i = t.getValue(n);
1992
+ i && i.jump(this.measuredOrigin, !1);
1993
+ const r = s.length - 1, a = s[r];
1994
+ s[r] = W[n](t.measureViewportBox(), window.getComputedStyle(t.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([o, u]) => {
1995
+ t.getValue(o).set(u);
1996
+ }), this.resolveNoneKeyframes();
1997
+ }
1998
+ }
1999
+ function wr(e, t, n) {
2000
+ if (e instanceof EventTarget)
2001
+ return [e];
2002
+ if (typeof e == "string") {
2003
+ let s = document;
2004
+ const i = n?.[e] ?? s.querySelectorAll(e);
2005
+ return i ? Array.from(i) : [];
2006
+ }
2007
+ return Array.from(e);
2008
+ }
2009
+ const zn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: Ar } = /* @__PURE__ */ yn(queueMicrotask, !1);
2010
+ function Xn(e) {
2011
+ return ys(e) && "ownerSVGElement" in e;
2012
+ }
2013
+ function Mr(e) {
2014
+ return Xn(e) && e.tagName === "svg";
2015
+ }
2016
+ const Cr = [...Un, D, j], Dr = (e) => Cr.find(jn(e)), jt = () => ({ min: 0, max: 0 }), ht = () => ({
2017
+ x: jt(),
2018
+ y: jt()
2019
+ }), Xe = { current: null }, qn = { current: !1 }, Fr = typeof window < "u";
2020
+ function Er() {
2021
+ if (qn.current = !0, !!Fr)
2201
2022
  if (window.matchMedia) {
2202
- const e = window.matchMedia("(prefers-reduced-motion)"), t = () => qe.current = e.matches;
2023
+ const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Xe.current = e.matches;
2203
2024
  e.addEventListener("change", t), t();
2204
2025
  } else
2205
- qe.current = !1;
2026
+ Xe.current = !1;
2206
2027
  }
2207
- function zr(e) {
2028
+ const he = /* @__PURE__ */ new WeakMap();
2029
+ function Rr(e) {
2208
2030
  return e !== null && typeof e == "object" && typeof e.start == "function";
2209
2031
  }
2210
- function Xr(e) {
2032
+ function Pr(e) {
2211
2033
  return typeof e == "string" || Array.isArray(e);
2212
2034
  }
2213
- const qr = [
2035
+ const Or = [
2214
2036
  "animate",
2215
2037
  "whileInView",
2216
2038
  "whileFocus",
@@ -2218,14 +2040,14 @@ const qr = [
2218
2040
  "whileTap",
2219
2041
  "whileDrag",
2220
2042
  "exit"
2221
- ], Hr = ["initial", ...qr];
2222
- function Jn(e) {
2223
- return zr(e.animate) || Hr.some((t) => Xr(e[t]));
2043
+ ], kr = ["initial", ...Or];
2044
+ function Zn(e) {
2045
+ return Rr(e.animate) || kr.some((t) => Pr(e[t]));
2224
2046
  }
2225
- function Zr(e) {
2226
- return !!(Jn(e) || e.variants);
2047
+ function Br(e) {
2048
+ return !!(Zn(e) || e.variants);
2227
2049
  }
2228
- function Jr(e, t, n) {
2050
+ function Ir(e, t, n) {
2229
2051
  for (const s in t) {
2230
2052
  const i = t[s], r = n[s];
2231
2053
  if (F(i))
@@ -2245,7 +2067,7 @@ function Jr(e, t, n) {
2245
2067
  t[s] === void 0 && e.removeValue(s);
2246
2068
  return t;
2247
2069
  }
2248
- const qt = [
2070
+ const Ut = [
2249
2071
  "AnimationStart",
2250
2072
  "AnimationComplete",
2251
2073
  "Update",
@@ -2254,7 +2076,8 @@ const qt = [
2254
2076
  "LayoutAnimationStart",
2255
2077
  "LayoutAnimationComplete"
2256
2078
  ];
2257
- class Qn {
2079
+ let Gt = {};
2080
+ class Hn {
2258
2081
  /**
2259
2082
  * This method takes React props and returns found MotionValues. For example, HTML
2260
2083
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -2266,14 +2089,14 @@ class Qn {
2266
2089
  return {};
2267
2090
  }
2268
2091
  constructor({ parent: t, props: n, presenceContext: s, reducedMotionConfig: i, blockInitialAnimation: r, visualState: a }, o = {}) {
2269
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = ut, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2092
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = lt, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2270
2093
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2271
2094
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2272
2095
  const h = R.now();
2273
2096
  this.renderScheduledAt < h && (this.renderScheduledAt = h, K.render(this.render, !1, !0));
2274
2097
  };
2275
2098
  const { latestValues: u, renderState: c } = a;
2276
- this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!r, this.isControllingVariants = Jn(n), this.isVariantNode = Zr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2099
+ this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!r, this.isControllingVariants = Zn(n), this.isVariantNode = Br(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2277
2100
  const { willChange: l, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2278
2101
  for (const h in f) {
2279
2102
  const p = f[h];
@@ -2281,7 +2104,7 @@ class Qn {
2281
2104
  }
2282
2105
  }
2283
2106
  mount(t) {
2284
- this.current = t, he.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Zn.current || Yr(), this.shouldReduceMotion = qe.current), process.env.NODE_ENV !== "production" && an(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2107
+ this.current = t, he.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (qn.current || Er(), this.shouldReduceMotion = Xe.current), process.env.NODE_ENV !== "production" && rn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2285
2108
  }
2286
2109
  unmount() {
2287
2110
  this.projection && this.projection.unmount(), ke(this.notifyUpdate), ke(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
@@ -2307,7 +2130,7 @@ class Qn {
2307
2130
  this.latestValues[t] = a, this.props.onUpdate && K.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
2308
2131
  });
2309
2132
  let r;
2310
- window.MotionCheckAppearSync && (r = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(t, () => {
2133
+ typeof window < "u" && window.MotionCheckAppearSync && (r = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(t, () => {
2311
2134
  i(), r && r(), n.owner && n.stop();
2312
2135
  });
2313
2136
  }
@@ -2316,8 +2139,8 @@ class Qn {
2316
2139
  }
2317
2140
  updateFeatures() {
2318
2141
  let t = "animation";
2319
- for (t in Xe) {
2320
- const n = Xe[t];
2142
+ for (t in Gt) {
2143
+ const n = Gt[t];
2321
2144
  if (!n)
2322
2145
  continue;
2323
2146
  const { isEnabled: s, Feature: i } = n;
@@ -2336,7 +2159,7 @@ class Qn {
2336
2159
  * removed with a re-render to work.
2337
2160
  */
2338
2161
  measureViewportBox() {
2339
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : mt();
2162
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ht();
2340
2163
  }
2341
2164
  getStaticValue(t) {
2342
2165
  return this.latestValues[t];
@@ -2350,13 +2173,13 @@ class Qn {
2350
2173
  */
2351
2174
  update(t, n) {
2352
2175
  (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
2353
- for (let s = 0; s < qt.length; s++) {
2354
- const i = qt[s];
2176
+ for (let s = 0; s < Ut.length; s++) {
2177
+ const i = Ut[s];
2355
2178
  this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
2356
2179
  const r = "on" + i, a = t[r];
2357
2180
  a && (this.propEventSubscriptions[i] = this.on(i, a));
2358
2181
  }
2359
- this.prevMotionValues = Jr(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2182
+ this.prevMotionValues = Ir(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2360
2183
  }
2361
2184
  getProps() {
2362
2185
  return this.props;
@@ -2421,7 +2244,7 @@ class Qn {
2421
2244
  */
2422
2245
  readValue(t, n) {
2423
2246
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2424
- return s != null && (typeof s == "string" && (tn(s) || nn(s)) ? s = parseFloat(s) : !ur(s) && j.test(n) && (s = Gn(t, n)), this.setBaseTarget(t, F(s) ? s.get() : s)), F(s) ? s.get() : s;
2247
+ return s != null && (typeof s == "string" && (en(s) || tn(s)) ? s = parseFloat(s) : !Dr(s) && j.test(n) && (s = Yn(t, n)), this.setBaseTarget(t, F(s) ? s.get() : s)), F(s) ? s.get() : s;
2425
2248
  }
2426
2249
  /**
2427
2250
  * Set the base target to later animate back to. This is currently
@@ -2438,7 +2261,7 @@ class Qn {
2438
2261
  const { initial: n } = this.props;
2439
2262
  let s;
2440
2263
  if (typeof n == "string" || typeof n == "object") {
2441
- const r = qn(this.props, n, this.presenceContext?.custom);
2264
+ const r = _n(this.props, n, this.presenceContext?.custom);
2442
2265
  r && (s = r[t]);
2443
2266
  }
2444
2267
  if (n && s !== void 0)
@@ -2447,24 +2270,25 @@ class Qn {
2447
2270
  return i !== void 0 && !F(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
2448
2271
  }
2449
2272
  on(t, n) {
2450
- return this.events[t] || (this.events[t] = new sn()), this.events[t].add(n);
2273
+ return this.events[t] || (this.events[t] = new nn()), this.events[t].add(n);
2451
2274
  }
2452
2275
  notify(t, ...n) {
2453
2276
  this.events[t] && this.events[t].notify(...n);
2454
2277
  }
2455
2278
  scheduleRenderMicrotask() {
2456
- ar.render(this.render);
2279
+ Ar.render(this.render);
2457
2280
  }
2458
2281
  }
2459
- class es extends Qn {
2282
+ class Jn extends Hn {
2460
2283
  constructor() {
2461
- super(...arguments), this.KeyframeResolver = nr;
2284
+ super(...arguments), this.KeyframeResolver = xr;
2462
2285
  }
2463
2286
  sortInstanceNodePosition(t, n) {
2464
2287
  return t.compareDocumentPosition(n) & 2 ? 1 : -1;
2465
2288
  }
2466
2289
  getBaseTargetFromProps(t, n) {
2467
- return t.style ? t.style[n] : void 0;
2290
+ const s = t.style;
2291
+ return s ? s[n] : void 0;
2468
2292
  }
2469
2293
  removeValueFromRenderState(t, { vars: n, style: s }) {
2470
2294
  delete n[t], delete s[t];
@@ -2477,24 +2301,44 @@ class es extends Qn {
2477
2301
  }));
2478
2302
  }
2479
2303
  }
2480
- const Qr = {
2304
+ function Nr({ top: e, left: t, right: n, bottom: s }) {
2305
+ return {
2306
+ x: { min: t, max: n },
2307
+ y: { min: e, max: s }
2308
+ };
2309
+ }
2310
+ function Kr(e, t) {
2311
+ if (!t)
2312
+ return e;
2313
+ const n = t({ x: e.left, y: e.top }), s = t({ x: e.right, y: e.bottom });
2314
+ return {
2315
+ top: n.y,
2316
+ left: n.x,
2317
+ bottom: s.y,
2318
+ right: s.x
2319
+ };
2320
+ }
2321
+ function $r(e, t) {
2322
+ return Nr(Kr(e.getBoundingClientRect(), t));
2323
+ }
2324
+ const Lr = {
2481
2325
  x: "translateX",
2482
2326
  y: "translateY",
2483
2327
  z: "translateZ",
2484
2328
  transformPerspective: "perspective"
2485
- }, ea = Q.length;
2486
- function ta(e, t, n) {
2329
+ }, Wr = Q.length;
2330
+ function _r(e, t, n) {
2487
2331
  let s = "", i = !0;
2488
- for (let r = 0; r < ea; r++) {
2332
+ for (let r = 0; r < Wr; r++) {
2489
2333
  const a = Q[r], o = e[a];
2490
2334
  if (o === void 0)
2491
2335
  continue;
2492
2336
  let u = !0;
2493
2337
  if (typeof o == "number" ? u = o === (a.startsWith("scale") ? 1 : 0) : u = parseFloat(o) === 0, !u || n) {
2494
- const c = Yn(o, ft[a]);
2338
+ const c = zn(o, ft[a]);
2495
2339
  if (!u) {
2496
2340
  i = !1;
2497
- const l = Qr[a] || a;
2341
+ const l = Lr[a] || a;
2498
2342
  s += `${l}(${c}) `;
2499
2343
  }
2500
2344
  n && (t[a] = c);
@@ -2502,7 +2346,7 @@ function ta(e, t, n) {
2502
2346
  }
2503
2347
  return s = s.trim(), n ? s = n(t, i ? "" : s) : i && (s = "none"), s;
2504
2348
  }
2505
- function ts(e, t, n) {
2349
+ function Qn(e, t, n) {
2506
2350
  const { style: s, vars: i, transformOrigin: r } = e;
2507
2351
  let a = !1, o = !1;
2508
2352
  for (const u in t) {
@@ -2510,20 +2354,20 @@ function ts(e, t, n) {
2510
2354
  if (ee.has(u)) {
2511
2355
  a = !0;
2512
2356
  continue;
2513
- } else if (vn(u)) {
2357
+ } else if (Tn(u)) {
2514
2358
  i[u] = c;
2515
2359
  continue;
2516
2360
  } else {
2517
- const l = Yn(c, ft[u]);
2361
+ const l = zn(c, ft[u]);
2518
2362
  u.startsWith("origin") ? (o = !0, r[u] = l) : s[u] = l;
2519
2363
  }
2520
2364
  }
2521
- if (t.transform || (a || n ? s.transform = ta(t, e.transform, n) : s.transform && (s.transform = "none")), o) {
2365
+ if (t.transform || (a || n ? s.transform = _r(t, e.transform, n) : s.transform && (s.transform = "none")), o) {
2522
2366
  const { originX: u = "50%", originY: c = "50%", originZ: l = 0 } = r;
2523
2367
  s.transformOrigin = `${u} ${c} ${l}`;
2524
2368
  }
2525
2369
  }
2526
- function ns(e, { style: t, vars: n }, s, i) {
2370
+ function es(e, { style: t, vars: n }, s, i) {
2527
2371
  const r = e.style;
2528
2372
  let a;
2529
2373
  for (a in t)
@@ -2532,7 +2376,7 @@ function ns(e, { style: t, vars: n }, s, i) {
2532
2376
  for (a in n)
2533
2377
  r.setProperty(a, n[a]);
2534
2378
  }
2535
- function Ht(e, t) {
2379
+ function Yt(e, t) {
2536
2380
  return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
2537
2381
  }
2538
2382
  const re = {
@@ -2544,10 +2388,10 @@ const re = {
2544
2388
  e = parseFloat(e);
2545
2389
  else
2546
2390
  return e;
2547
- const n = Ht(e, t.target.x), s = Ht(e, t.target.y);
2391
+ const n = Yt(e, t.target.x), s = Yt(e, t.target.y);
2548
2392
  return `${n}% ${s}%`;
2549
2393
  }
2550
- }, na = {
2394
+ }, jr = {
2551
2395
  correct: (e, { treeScale: t, projectionDelta: n }) => {
2552
2396
  const s = e, i = j.parse(e);
2553
2397
  if (i.length > 5)
@@ -2557,7 +2401,7 @@ const re = {
2557
2401
  const c = J(o, u, 0.5);
2558
2402
  return typeof i[2 + a] == "number" && (i[2 + a] /= c), typeof i[3 + a] == "number" && (i[3 + a] /= c), r(i);
2559
2403
  }
2560
- }, sa = {
2404
+ }, Ur = {
2561
2405
  borderRadius: {
2562
2406
  ...re,
2563
2407
  applyTo: [
@@ -2571,95 +2415,65 @@ const re = {
2571
2415
  borderTopRightRadius: re,
2572
2416
  borderBottomLeftRadius: re,
2573
2417
  borderBottomRightRadius: re,
2574
- boxShadow: na
2418
+ boxShadow: jr
2575
2419
  };
2576
- function ia(e, { layout: t, layoutId: n }) {
2577
- return ee.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!sa[e] || e === "opacity");
2420
+ function Gr(e, { layout: t, layoutId: n }) {
2421
+ return ee.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Ur[e] || e === "opacity");
2578
2422
  }
2579
- function ss(e, t, n) {
2580
- const { style: s } = e, i = {};
2581
- for (const r in s)
2582
- (F(s[r]) || t.style && F(t.style[r]) || ia(r, e) || n?.getValue(r)?.liveStyle !== void 0) && (i[r] = s[r]);
2583
- return i;
2423
+ function ts(e, t, n) {
2424
+ const s = e.style, i = t?.style, r = {};
2425
+ if (!s)
2426
+ return r;
2427
+ for (const a in s)
2428
+ (F(s[a]) || i && F(i[a]) || Gr(a, e) || n?.getValue(a)?.liveStyle !== void 0) && (r[a] = s[a]);
2429
+ return r;
2584
2430
  }
2585
- function ra(e) {
2431
+ function Yr(e) {
2586
2432
  return window.getComputedStyle(e);
2587
2433
  }
2588
- class aa extends es {
2434
+ class zr extends Jn {
2589
2435
  constructor() {
2590
- super(...arguments), this.type = "html", this.renderInstance = ns;
2436
+ super(...arguments), this.type = "html", this.renderInstance = es;
2591
2437
  }
2592
2438
  readValueFromInstance(t, n) {
2593
2439
  if (ee.has(n))
2594
- return this.projection?.isProjecting ? We(n) : bi(t, n);
2440
+ return this.projection?.isProjecting ? We(n) : yi(t, n);
2595
2441
  {
2596
- const s = ra(t), i = (vn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2442
+ const s = Yr(t), i = (Tn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2597
2443
  return typeof i == "string" ? i.trim() : i;
2598
2444
  }
2599
2445
  }
2600
2446
  measureInstanceViewportBox(t, { transformPagePoint: n }) {
2601
- return Ur(t, n);
2447
+ return $r(t, n);
2602
2448
  }
2603
2449
  build(t, n, s) {
2604
- ts(t, n, s.transformTemplate);
2450
+ Qn(t, n, s.transformTemplate);
2605
2451
  }
2606
2452
  scrapeMotionValuesFromProps(t, n, s) {
2607
- return ss(t, n, s);
2608
- }
2609
- }
2610
- function oa(e, t) {
2611
- return e in t;
2612
- }
2613
- class la extends Qn {
2614
- constructor() {
2615
- super(...arguments), this.type = "object";
2616
- }
2617
- readValueFromInstance(t, n) {
2618
- if (oa(n, t)) {
2619
- const s = t[n];
2620
- if (typeof s == "string" || typeof s == "number")
2621
- return s;
2622
- }
2623
- }
2624
- getBaseTargetFromProps() {
2625
- }
2626
- removeValueFromRenderState(t, n) {
2627
- delete n.output[t];
2628
- }
2629
- measureInstanceViewportBox() {
2630
- return mt();
2631
- }
2632
- build(t, n) {
2633
- Object.assign(t.output, n);
2634
- }
2635
- renderInstance(t, { output: n }) {
2636
- Object.assign(t, n);
2637
- }
2638
- sortInstanceNodePosition() {
2639
- return 0;
2453
+ return ts(t, n, s);
2640
2454
  }
2641
2455
  }
2642
- const ua = {
2456
+ const Xr = {
2643
2457
  offset: "stroke-dashoffset",
2644
2458
  array: "stroke-dasharray"
2645
- }, ca = {
2459
+ }, qr = {
2646
2460
  offset: "strokeDashoffset",
2647
2461
  array: "strokeDasharray"
2648
2462
  };
2649
- function fa(e, t, n = 1, s = 0, i = !0) {
2463
+ function Zr(e, t, n = 1, s = 0, i = !0) {
2650
2464
  e.pathLength = 1;
2651
- const r = i ? ua : ca;
2465
+ const r = i ? Xr : qr;
2652
2466
  e[r.offset] = d.transform(-s);
2653
2467
  const a = d.transform(t), o = d.transform(n);
2654
2468
  e[r.array] = `${a} ${o}`;
2655
2469
  }
2656
- const ha = [
2470
+ const Hr = [
2657
2471
  "offsetDistance",
2658
2472
  "offsetPath",
2659
2473
  "offsetRotate",
2660
2474
  "offsetAnchor"
2661
2475
  ];
2662
- function da(e, {
2476
+ function Jr(e, {
2663
2477
  attrX: t,
2664
2478
  attrY: n,
2665
2479
  attrScale: s,
@@ -2669,18 +2483,18 @@ function da(e, {
2669
2483
  // This is object creation, which we try to avoid per-frame.
2670
2484
  ...o
2671
2485
  }, u, c, l) {
2672
- if (ts(e, o, c), u) {
2486
+ if (Qn(e, o, c), u) {
2673
2487
  e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
2674
2488
  return;
2675
2489
  }
2676
2490
  e.attrs = e.style, e.style = {};
2677
2491
  const { attrs: f, style: h } = e;
2678
2492
  f.transform && (h.transform = f.transform, delete f.transform), (h.transform || f.transformOrigin) && (h.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), h.transform && (h.transformBox = l?.transformBox ?? "fill-box", delete f.transformBox);
2679
- for (const p of ha)
2493
+ for (const p of Hr)
2680
2494
  f[p] !== void 0 && (h[p] = f[p], delete f[p]);
2681
- t !== void 0 && (f.x = t), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && fa(f, i, r, a, !1);
2495
+ t !== void 0 && (f.x = t), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && Zr(f, i, r, a, !1);
2682
2496
  }
2683
- const is = /* @__PURE__ */ new Set([
2497
+ const ns = /* @__PURE__ */ new Set([
2684
2498
  "baseFrequency",
2685
2499
  "diffuseConstant",
2686
2500
  "kernelMatrix",
@@ -2704,14 +2518,14 @@ const is = /* @__PURE__ */ new Set([
2704
2518
  "startOffset",
2705
2519
  "textLength",
2706
2520
  "lengthAdjust"
2707
- ]), ma = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2708
- function pa(e, t, n, s) {
2709
- ns(e, t, void 0, s);
2521
+ ]), Qr = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2522
+ function ea(e, t, n, s) {
2523
+ es(e, t, void 0, s);
2710
2524
  for (const i in t.attrs)
2711
- e.setAttribute(is.has(i) ? i : dt(i), t.attrs[i]);
2525
+ e.setAttribute(ns.has(i) ? i : ct(i), t.attrs[i]);
2712
2526
  }
2713
- function ga(e, t, n) {
2714
- const s = ss(e, t, n);
2527
+ function ta(e, t, n) {
2528
+ const s = ts(e, t, n);
2715
2529
  for (const i in e)
2716
2530
  if (F(e[i]) || F(t[i])) {
2717
2531
  const r = Q.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
@@ -2719,33 +2533,207 @@ function ga(e, t, n) {
2719
2533
  }
2720
2534
  return s;
2721
2535
  }
2722
- class ya extends es {
2536
+ class na extends Jn {
2723
2537
  constructor() {
2724
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = mt;
2538
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ht;
2725
2539
  }
2726
2540
  getBaseTargetFromProps(t, n) {
2727
2541
  return t[n];
2728
2542
  }
2729
2543
  readValueFromInstance(t, n) {
2730
2544
  if (ee.has(n)) {
2731
- const s = Un(n);
2545
+ const s = Gn(n);
2732
2546
  return s && s.default || 0;
2733
2547
  }
2734
- return n = is.has(n) ? n : dt(n), t.getAttribute(n);
2548
+ return n = ns.has(n) ? n : ct(n), t.getAttribute(n);
2735
2549
  }
2736
2550
  scrapeMotionValuesFromProps(t, n, s) {
2737
- return ga(t, n, s);
2551
+ return ta(t, n, s);
2738
2552
  }
2739
2553
  build(t, n, s) {
2740
- da(t, n, this.isSVGTag, s.transformTemplate, s.style);
2554
+ Jr(t, n, this.isSVGTag, s.transformTemplate, s.style);
2741
2555
  }
2742
2556
  renderInstance(t, n, s, i) {
2743
- pa(t, n, s, i);
2557
+ ea(t, n, s, i);
2744
2558
  }
2745
2559
  mount(t) {
2746
- this.isSVGTag = ma(t.tagName), super.mount(t);
2560
+ this.isSVGTag = Qr(t.tagName), super.mount(t);
2561
+ }
2562
+ }
2563
+ function sa(e, t) {
2564
+ return e in t;
2565
+ }
2566
+ class ia extends Hn {
2567
+ constructor() {
2568
+ super(...arguments), this.type = "object";
2569
+ }
2570
+ readValueFromInstance(t, n) {
2571
+ if (sa(n, t)) {
2572
+ const s = t[n];
2573
+ if (typeof s == "string" || typeof s == "number")
2574
+ return s;
2575
+ }
2576
+ }
2577
+ getBaseTargetFromProps() {
2578
+ }
2579
+ removeValueFromRenderState(t, n) {
2580
+ delete n.output[t];
2581
+ }
2582
+ measureInstanceViewportBox() {
2583
+ return ht();
2584
+ }
2585
+ build(t, n) {
2586
+ Object.assign(t.output, n);
2587
+ }
2588
+ renderInstance(t, { output: n }) {
2589
+ Object.assign(t, n);
2590
+ }
2591
+ sortInstanceNodePosition() {
2592
+ return 0;
2593
+ }
2594
+ }
2595
+ function ra(e, t, n) {
2596
+ const s = F(e) ? e : fe(e);
2597
+ return s.start(Ln("", s, t, n)), s.animation;
2598
+ }
2599
+ function dt(e) {
2600
+ return typeof e == "object" && !Array.isArray(e);
2601
+ }
2602
+ function ss(e, t, n, s) {
2603
+ return typeof e == "string" && dt(t) ? wr(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
2604
+ }
2605
+ function aa(e, t, n) {
2606
+ return e * (t + 1);
2607
+ }
2608
+ function zt(e, t, n, s) {
2609
+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : s.get(t) ?? e;
2610
+ }
2611
+ function oa(e, t, n) {
2612
+ for (let s = 0; s < e.length; s++) {
2613
+ const i = e[s];
2614
+ i.at > t && i.at < n && (Qt(e, i), s--);
2747
2615
  }
2748
2616
  }
2617
+ function la(e, t, n, s, i, r) {
2618
+ oa(e, i, r);
2619
+ for (let a = 0; a < t.length; a++)
2620
+ e.push({
2621
+ value: t[a],
2622
+ at: J(i, r, s[a]),
2623
+ easing: pn(n, a)
2624
+ });
2625
+ }
2626
+ function ua(e, t) {
2627
+ for (let n = 0; n < e.length; n++)
2628
+ e[n] = e[n] / (t + 1);
2629
+ }
2630
+ function ca(e, t) {
2631
+ return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
2632
+ }
2633
+ const fa = "easeInOut", ha = 20;
2634
+ function da(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
2635
+ const r = t.duration || 0.3, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), u = {}, c = /* @__PURE__ */ new Map();
2636
+ let l = 0, f = 0, h = 0;
2637
+ for (let p = 0; p < e.length; p++) {
2638
+ const g = e[p];
2639
+ if (typeof g == "string") {
2640
+ c.set(g, f);
2641
+ continue;
2642
+ } else if (!Array.isArray(g)) {
2643
+ c.set(g.name, zt(f, g.at, l, c));
2644
+ continue;
2645
+ }
2646
+ let [T, S, v = {}] = g;
2647
+ v.at !== void 0 && (f = zt(f, v.at, l, c));
2648
+ let A = 0;
2649
+ const V = (x, m, y, M = 0, b = 0) => {
2650
+ const w = ma(x), { delay: E = 0, times: O = Rn(w), type: we = "keyframes", repeat: te, repeatType: Ca, repeatDelay: Da = 0, ...rs } = m;
2651
+ let { ease: $ = t.ease || "easeOut", duration: I } = m;
2652
+ const mt = typeof E == "function" ? E(M, b) : E, pt = w.length, gt = ut(we) ? we : i?.[we || "keyframes"];
2653
+ if (pt <= 2 && gt) {
2654
+ let ne = 100;
2655
+ if (pt === 2 && ya(w)) {
2656
+ const se = w[1] - w[0];
2657
+ ne = Math.abs(se);
2658
+ }
2659
+ const ge = { ...rs };
2660
+ I !== void 0 && (ge.duration = /* @__PURE__ */ k(I));
2661
+ const ye = Dn(ge, ne, gt);
2662
+ $ = ye.ease, I = ye.duration;
2663
+ }
2664
+ I ?? (I = r);
2665
+ const yt = f + mt;
2666
+ O.length === 1 && O[0] === 0 && (O[1] = 1);
2667
+ const bt = O.length - w.length;
2668
+ if (bt > 0 && En(O, bt), w.length === 1 && w.unshift(null), te) {
2669
+ B(te < ha, "Repeat count too high, must be less than 20", "repeat-count-high"), I = aa(I, te);
2670
+ const ne = [...w], ge = [...O];
2671
+ $ = Array.isArray($) ? [...$] : [$];
2672
+ const ye = [...$];
2673
+ for (let se = 0; se < te; se++) {
2674
+ w.push(...ne);
2675
+ for (let ie = 0; ie < ne.length; ie++)
2676
+ O.push(ge[ie] + (se + 1)), $.push(ie === 0 ? "linear" : pn(ye, ie - 1));
2677
+ }
2678
+ ua(O, te);
2679
+ }
2680
+ const Tt = yt + I;
2681
+ la(y, w, $, O, yt, Tt), A = Math.max(mt + I, A), h = Math.max(Tt, h);
2682
+ };
2683
+ if (F(T)) {
2684
+ const x = Xt(T, o);
2685
+ V(S, v, qt("default", x));
2686
+ } else {
2687
+ const x = ss(T, S, s, u), m = x.length;
2688
+ for (let y = 0; y < m; y++) {
2689
+ S = S, v = v;
2690
+ const M = x[y], b = Xt(M, o);
2691
+ for (const w in S)
2692
+ V(S[w], pa(v, w), qt(w, b), y, m);
2693
+ }
2694
+ }
2695
+ l = f, f += A;
2696
+ }
2697
+ return o.forEach((p, g) => {
2698
+ for (const T in p) {
2699
+ const S = p[T];
2700
+ S.sort(ca);
2701
+ const v = [], A = [], V = [];
2702
+ for (let m = 0; m < S.length; m++) {
2703
+ const { at: y, value: M, easing: b } = S[m];
2704
+ v.push(M), A.push(/* @__PURE__ */ He(0, h, y)), V.push(b || "easeOut");
2705
+ }
2706
+ A[0] !== 0 && (A.unshift(0), v.unshift(v[0]), V.unshift(fa)), A[A.length - 1] !== 1 && (A.push(1), v.push(null)), a.has(g) || a.set(g, {
2707
+ keyframes: {},
2708
+ transition: {}
2709
+ });
2710
+ const x = a.get(g);
2711
+ x.keyframes[T] = v, x.transition[T] = {
2712
+ ...t,
2713
+ duration: h,
2714
+ ease: V,
2715
+ times: A,
2716
+ ...n
2717
+ };
2718
+ }
2719
+ }), a;
2720
+ }
2721
+ function Xt(e, t) {
2722
+ return !t.has(e) && t.set(e, {}), t.get(e);
2723
+ }
2724
+ function qt(e, t) {
2725
+ return t[e] || (t[e] = []), t[e];
2726
+ }
2727
+ function ma(e) {
2728
+ return Array.isArray(e) ? e : [e];
2729
+ }
2730
+ function pa(e, t) {
2731
+ return e && e[t] ? {
2732
+ ...e,
2733
+ ...e[t]
2734
+ } : { ...e };
2735
+ }
2736
+ const ga = (e) => typeof e == "number", ya = (e) => e.every(ga);
2749
2737
  function ba(e) {
2750
2738
  const t = {
2751
2739
  presenceContext: null,
@@ -2760,7 +2748,7 @@ function ba(e) {
2760
2748
  },
2761
2749
  latestValues: {}
2762
2750
  }
2763
- }, n = zn(e) && !or(e) ? new ya(t) : new aa(t);
2751
+ }, n = Xn(e) && !Mr(e) ? new na(t) : new zr(t);
2764
2752
  n.mount(e), he.set(e, n);
2765
2753
  }
2766
2754
  function Ta(e) {
@@ -2773,22 +2761,18 @@ function Ta(e) {
2773
2761
  },
2774
2762
  latestValues: {}
2775
2763
  }
2776
- }, n = new la(t);
2764
+ }, n = new ia(t);
2777
2765
  n.mount(e), he.set(e, n);
2778
2766
  }
2779
- function va(e, t, n) {
2780
- const s = F(e) ? e : fe(e);
2781
- return s.start(Hn("", s, t, n)), s.animation;
2782
- }
2783
- function Sa(e, t) {
2784
- return F(e) || typeof e == "number" || typeof e == "string" && !ht(t);
2767
+ function va(e, t) {
2768
+ return F(e) || typeof e == "number" || typeof e == "string" && !dt(t);
2785
2769
  }
2786
- function rs(e, t, n, s) {
2770
+ function is(e, t, n, s) {
2787
2771
  const i = [];
2788
- if (Sa(e, t))
2789
- i.push(va(e, ht(t) && t.default || t, n && (n.default || n)));
2772
+ if (va(e, t))
2773
+ i.push(ra(e, dt(t) && t.default || t, n && (n.default || n)));
2790
2774
  else {
2791
- const r = Xn(e, t, s), a = r.length;
2775
+ const r = ss(e, t, s), a = r.length;
2792
2776
  B(!!a, "No valid elements provided.", "no-valid-elements");
2793
2777
  for (let o = 0; o < a; o++) {
2794
2778
  const u = r[o];
@@ -2796,41 +2780,41 @@ function rs(e, t, n, s) {
2796
2780
  const c = u instanceof Element ? ba : Ta;
2797
2781
  he.has(u) || c(u);
2798
2782
  const l = he.get(u), f = { ...n };
2799
- "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(o, a)), i.push(...Wr(l, { ...t, transition: f }, {}));
2783
+ "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(o, a)), i.push(...dr(l, { ...t, transition: f }, {}));
2800
2784
  }
2801
2785
  }
2802
2786
  return i;
2803
2787
  }
2804
- function Va(e, t, n) {
2788
+ function Sa(e, t, n) {
2805
2789
  const s = [];
2806
- return yr(e, t, n, { spring: ce }).forEach(({ keyframes: r, transition: a }, o) => {
2807
- s.push(...rs(o, r, a));
2790
+ return da(e, t, n, { spring: ce }).forEach(({ keyframes: r, transition: a }, o) => {
2791
+ s.push(...is(o, r, a));
2808
2792
  }), s;
2809
2793
  }
2810
- function wa(e) {
2794
+ function Va(e) {
2811
2795
  return Array.isArray(e) && e.some(Array.isArray);
2812
2796
  }
2813
2797
  function xa(e) {
2814
2798
  function t(n, s, i) {
2815
2799
  let r = [], a;
2816
- if (wa(n))
2817
- r = Va(n, s, e);
2800
+ if (Va(n))
2801
+ r = Sa(n, s, e);
2818
2802
  else {
2819
2803
  const { onComplete: u, ...c } = i || {};
2820
- typeof u == "function" && (a = u), r = rs(n, s, c, e);
2804
+ typeof u == "function" && (a = u), r = is(n, s, c, e);
2821
2805
  }
2822
- const o = new ji(r);
2806
+ const o = new _i(r);
2823
2807
  return a && o.finished.then(a), o;
2824
2808
  }
2825
2809
  return t;
2826
2810
  }
2827
- const Aa = xa(), Pe = "";
2828
- function Ma(e, t = !0) {
2811
+ const wa = xa(), Pe = "";
2812
+ function Aa(e, t = !0) {
2829
2813
  const [n, s] = Ae(0), [i, r] = Ae(0), [a, o] = Ae(e);
2830
- return a !== e && (o(e), r(e.startsWith(a) ? n : 0)), Qt(() => {
2814
+ return a !== e && (o(e), r(e.startsWith(a) ? n : 0)), Jt(() => {
2831
2815
  if (!t)
2832
2816
  return;
2833
- const u = Aa(
2817
+ const u = wa(
2834
2818
  // The starting value for the animation (current cursor position).
2835
2819
  i,
2836
2820
  // The target value: total number of characters.
@@ -2855,7 +2839,7 @@ function Ma(e, t = !0) {
2855
2839
  const Zt = {
2856
2840
  MODEL: "Model",
2857
2841
  USAGE: "Session usage"
2858
- }, Ca = Jt("max-w-[99cqw]", "mt-3"), Ka = hs.memo(
2842
+ }, Ma = Ht("max-w-[99cqw]", "mt-3"), Na = fs.memo(
2859
2843
  ({
2860
2844
  content: e,
2861
2845
  annotations: t,
@@ -2864,7 +2848,7 @@ const Zt = {
2864
2848
  messageIndex: i,
2865
2849
  messages: r
2866
2850
  }) => {
2867
- const a = Ma(e, n), {
2851
+ const a = Aa(e, n), {
2868
2852
  state: {
2869
2853
  streaming: o,
2870
2854
  restoredModel: u,
@@ -2872,21 +2856,21 @@ const Zt = {
2872
2856
  tokenUsage: l,
2873
2857
  lastStreamingTimestamp: f
2874
2858
  }
2875
- } = wt(ms), {
2859
+ } = Vt(ds), {
2876
2860
  state: { fullScreen: h }
2877
- } = wt(ps), p = t?.model || u, g = l, [T, S] = ds(), { user: v, getAccessToken: A } = os(), { data: V } = ls({
2861
+ } = Vt(ms), p = t?.model || u, g = l, [T, S] = hs(), { user: v, getAccessToken: A } = as(), { data: V } = os({
2878
2862
  user: v?.username,
2879
2863
  getAccessToken: A
2880
- }), w = V?.showDetails || !1, m = Jt("prose-li:ps-3", {
2864
+ }), x = V?.showDetails || !1, m = Ht("prose-li:ps-3", {
2881
2865
  "max-w-xs sm:max-w-3xl": !h
2882
2866
  }), y = [];
2883
- if (w) {
2867
+ if (x) {
2884
2868
  if (p && (s ? y.push({
2885
2869
  key: Zt.MODEL,
2886
2870
  value: p
2887
2871
  }) : y.push(Me)), g)
2888
2872
  if (s) {
2889
- const M = g === -1 ? "N/A" : `${us.format(g)} ${cs(
2873
+ const M = g === -1 ? "N/A" : `${ls.format(g)} ${us(
2890
2874
  "token",
2891
2875
  g
2892
2876
  )}`;
@@ -2897,22 +2881,22 @@ const Zt = {
2897
2881
  } else
2898
2882
  y.push(Me);
2899
2883
  (f || c) && (s ? y.push({
2900
- value: f ? Vt(f) : Vt(c || "")
2884
+ value: f ? St(f) : St(c || "")
2901
2885
  }) : y.push(Me));
2902
2886
  }
2903
- return Qt(() => {
2887
+ return Jt(() => {
2904
2888
  a && S(a);
2905
- }, [a, S]), /* @__PURE__ */ St(
2906
- fs,
2889
+ }, [a, S]), /* @__PURE__ */ vt(
2890
+ cs,
2907
2891
  {
2908
2892
  tail: !0,
2909
2893
  footer: y,
2910
- className: Ca,
2894
+ className: Ma,
2911
2895
  footerClassName: "text-copy-medium",
2912
2896
  contentClassName: m,
2913
2897
  noMaxWidth: !0,
2914
- action: /* @__PURE__ */ St(
2915
- gs,
2898
+ action: /* @__PURE__ */ vt(
2899
+ ps,
2916
2900
  {
2917
2901
  streaming: o,
2918
2902
  content: e,
@@ -2927,5 +2911,5 @@ const Zt = {
2927
2911
  }
2928
2912
  );
2929
2913
  export {
2930
- Ka as default
2914
+ Na as default
2931
2915
  };