@versini/sassysaint 8.134.2 → 8.134.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.B1gSTZI0.js → AboutChangelog.S5A7szbn.js} +2 -2
- package/dist/chunks/{AboutEntry.Cn86JVde.js → AboutEntry.D1f6W_R1.js} +8 -8
- package/dist/chunks/{App.a3Rn157s.js → App.3nJFAcWz.js} +2321 -2316
- package/dist/chunks/{BubbleActions.Cq7DCari.js → BubbleActions.Dxxjo6is.js} +3 -3
- package/dist/chunks/{ButtonIconDelete.BT1t7Ob0.js → ButtonIconDelete.CQTbCWNA.js} +4 -4
- package/dist/chunks/{Chart.B064ohlv.js → Chart.CtO5Z52V.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BdEjgI-N.js → ChatBubbleAssistant.BPltdisw.js} +314 -307
- package/dist/chunks/{ChatBubbleUser.CR991b4i.js → ChatBubbleUser.6i3uiI2x.js} +4 -4
- package/dist/chunks/{GenericPanel.C0HM0OvS.js → GenericPanel.CGVeNN5Z.js} +1 -1
- package/dist/chunks/{HistoryEntry.D9oMBpMc.js → HistoryEntry.CJMHFtv5.js} +6 -6
- package/dist/chunks/{LoginEntry.BUMr7Xf5.js → LoginEntry.BBFgFspn.js} +4 -4
- package/dist/chunks/{LogoEntry.DIiGZsiy.js → LogoEntry.CWsRUqCp.js} +1 -1
- package/dist/chunks/{MemoriesEntry.iJcUCYSL.js → MemoriesEntry.C4xIBkSe.js} +6 -6
- package/dist/chunks/{ProfileEntry.DQCL9mET.js → ProfileEntry.DLq2wFcg.js} +6 -6
- package/dist/chunks/{SettingsEntry.BsnEfAR0.js → SettingsEntry.Dk5DsPm_.js} +6 -6
- package/dist/chunks/{UsageEntry.DgqPxmgg.js → UsageEntry.C0fVJ0Qs.js} +6 -6
- package/dist/chunks/{_baseUniq.HSiid2T-.js → _baseUniq.PamnsEFu.js} +1 -1
- package/dist/chunks/{arc.CgowgDoM.js → arc.DWBbyrwt.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.DxiC3iqd.js → architecture-U656AL7Q.F6zu96zn.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.DqvteBya.js → architectureDiagram-VXUJARFQ.xMnf3Fyb.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.CpI_ujTo.js → blockDiagram-VD42YOAC.BlW1dVsH.js} +5 -5
- package/dist/chunks/{browser.BhFyCAHz.js → browser.C9Ro6lKv.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.cY5wGwy-.js → c4Diagram-YG6GDRKO.BUZMJsZm.js} +2 -2
- package/dist/chunks/{channel.VaDz6wD4.js → channel.CvtIEtTw.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.BO66mfej.js → chunk-4BX2VUAB.XUNniqyi.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.Dvhoh_Ip.js → chunk-55IACEB6.KQK11MNw.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.BWO3zZ-q.js → chunk-B4BG7PRW.leoxhVQE.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.D-suMKS7.js → chunk-DI55MBZ5.COUn6EGB.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.Czj6mbik.js → chunk-FMBD7UC4.BHnvqSm4.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.C3WX4DGk.js → chunk-QN33PNHL.CdOOd56F.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.DLykXVg6.js → chunk-QZHKN3VN.B-SUXkDc.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.CmdkdBvM.js → chunk-TZMSLE5B.Bkp7ikgx.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.BCTJOEXa.js → classDiagram-2ON5EDUG.KzuH5iXp.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.BCTJOEXa.js → classDiagram-v2-WZHVMYZB.KzuH5iXp.js} +2 -2
- package/dist/chunks/{clone.EXDo20Rp.js → clone.Bhkbjhz3.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.D-ml62SS.js → cose-bilkent-S5V4N54A.Cr7cVHcK.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.D8SmW-Oq.js → dagre-6UL2VRFP.BLR-IZCG.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.Qg8qeopF.js → diagram-PSM6KHXK.0XvgDxvq.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.Bva3r61A.js → diagram-QEK2KX5R.zrRv_2BA.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.BAB4HvV_.js → diagram-S2PKOQOG.BXpthQjw.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.mpjnnb-e.js → erDiagram-Q2GNP2WA.CLO7MWIp.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.YSRfRM8c.js → flowDiagram-NV44I4VS.CyOLQ4oR.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.CFy0kl5V.js → ganttDiagram-JELNMOA3.-s24yCP7.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.BMY8WDYu.js → gitGraph-F6HP7TQM.C5Xm949J.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.BIt4oCah.js → gitGraphDiagram-NY62KEGX.CF-x4Ujm.js} +4 -4
- package/dist/chunks/{graph.BXCpglVM.js → graph.DeZ5RJvQ.js} +2 -2
- package/dist/chunks/{index.BZAZ8dkB.js → index.1vP6MrRV.js} +1 -1
- package/dist/chunks/{index.C03L2-PJ.js → index.BPIJ_EbJ.js} +2 -2
- package/dist/chunks/{index.C4KDd8tb.js → index.BsYy8oFz.js} +1 -1
- package/dist/chunks/{index.C602CsZu.js → index.C6wxKXfi.js} +3 -3
- package/dist/chunks/{index.Bn2jnPmJ.js → index.CK5gry_2.js} +3 -3
- package/dist/chunks/{index.Bn_a3Ofc.js → index.CQVX0AhT.js} +1 -1
- package/dist/chunks/{index.Bdn4CH7A.js → index.Cgq2RYy0.js} +1 -1
- package/dist/chunks/{index.CuZXdCdk.js → index.DdyUlVE0.js} +1 -1
- package/dist/chunks/{index.BZup5KRn.js → index.DyW0gxdR.js} +1 -1
- package/dist/chunks/{index.DPlT94ws.js → index.xOQtlCwm.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.D7of6yGM.js → info-NVLQJR56.Dg0RK5Pj.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.ZxgoUXWS.js → infoDiagram-WHAUD3N6.CRkoJS3r.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.m4RIUYuA.js → journeyDiagram-XKPGCS4Q.G4wvuN0K.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.B1PJOe_2.js → kanban-definition-3W4ZIXB7.DnwoHLbP.js} +2 -2
- package/dist/chunks/{layout.Bjzz7nu0.js → layout.DS7EEtqy.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.7rES7Uwv.js → mermaid-parser.core.BLfdUAzV.js} +10 -10
- package/dist/chunks/{min.whw877nQ.js → min.CbofRHXS.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.QzaAhcU2.js → mindmap-definition-VGOIOE7T.DCet_N_2.js} +3 -3
- package/dist/chunks/{packet-BFZMPI3H.Bu3-2mxi.js → packet-BFZMPI3H.DX8BSvYu.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.D3DHCDW2.js → pie-7BOR55EZ.Z4WTMi28.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.EiCnn8Wr.js → pieDiagram-ADFJNKIX.8uNnY29L.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.B9o38Ire.js → quadrantDiagram-AYHSOK5B.B72T4MNo.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.p7YCfTfz.js → radar-NHE76QYJ.DjeMhVu2.js} +1 -1
- package/dist/chunks/{rehype-mermaid.BmoHhgEN.js → rehype-mermaid.BkSoUoEw.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.Bbpj429w.js → requirementDiagram-UZGBJVZJ.CznvVpSS.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.BqSPg87D.js → sankeyDiagram-TZEHDZUN.BCR7EaTV.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.BlCEwniG.js → sequenceDiagram-WL72ISMW.D9EOVC_O.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.DzriSM8h.js → stateDiagram-FKZM4ZOC.DGUlTIBq.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BOH80iY9.js → stateDiagram-v2-4FDKWEC3.DpDD12YI.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.OszKxS9t.js → timeline-definition-IT6M3QCI.D2Viy_ui.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.CoJxNbXM.js → treemap-KMMF4GRG.Ee2A2uqt.js} +1 -1
- package/dist/chunks/{useMarkdown.C9vlLR5G.js → useMarkdown.Dh1POpoc.js} +9 -9
- package/dist/chunks/{xychartDiagram-PRI3JC2R.DvI73n1C.js → xychartDiagram-PRI3JC2R.8nr0puhG.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as St } from "react/jsx-runtime";
|
|
2
|
-
import { n as as, useUserPreferences as os, formatTimestamp as Vt } from "./index.
|
|
3
|
-
import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.
|
|
2
|
+
import { n as as, useUserPreferences as os, formatTimestamp as Vt } from "./index.BPIJ_EbJ.js";
|
|
3
|
+
import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.3nJFAcWz.js";
|
|
4
4
|
import Jt from "clsx";
|
|
5
|
-
import fs, { useState as
|
|
6
|
-
import { useMarkdown as hs } from "./useMarkdown.
|
|
7
|
-
import { ChatContext as ds, AppContext as ps } from "./LogoEntry.
|
|
8
|
-
import { BubbleActions as ms } from "./BubbleActions.
|
|
9
|
-
const
|
|
5
|
+
import fs, { useState as Me, useEffect as Qt, useContext as At } from "react";
|
|
6
|
+
import { useMarkdown as hs } from "./useMarkdown.Dh1POpoc.js";
|
|
7
|
+
import { ChatContext as ds, AppContext as ps } from "./LogoEntry.CWsRUqCp.js";
|
|
8
|
+
import { BubbleActions as ms } from "./BubbleActions.Dxxjo6is.js";
|
|
9
|
+
const we = {
|
|
10
10
|
isEmpty: !0
|
|
11
11
|
};
|
|
12
12
|
function gs(e, t) {
|
|
@@ -17,17 +17,17 @@ function qe(e, t) {
|
|
|
17
17
|
n > -1 && e.splice(n, 1);
|
|
18
18
|
}
|
|
19
19
|
const _ = (e, t, n) => n > t ? t : n < e ? e : n;
|
|
20
|
-
function
|
|
20
|
+
function ke(e, t) {
|
|
21
21
|
return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
|
|
22
22
|
}
|
|
23
23
|
let de = () => {
|
|
24
24
|
}, I = () => {
|
|
25
25
|
};
|
|
26
26
|
typeof process < "u" && process.env?.NODE_ENV !== "production" && (de = (e, t, n) => {
|
|
27
|
-
!e && typeof console < "u" && console.warn(
|
|
27
|
+
!e && typeof console < "u" && console.warn(ke(t, n));
|
|
28
28
|
}, I = (e, t, n) => {
|
|
29
29
|
if (!e)
|
|
30
|
-
throw new Error(
|
|
30
|
+
throw new Error(ke(t, n));
|
|
31
31
|
});
|
|
32
32
|
const N = {}, en = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
|
|
33
33
|
function ys(e) {
|
|
@@ -39,7 +39,7 @@ function Ze(e) {
|
|
|
39
39
|
let t;
|
|
40
40
|
return () => (t === void 0 && (t = e()), t);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const H = /* @__NO_SIDE_EFFECTS__ */ (e) => e, bs = (e, t) => (n) => t(e(n)), He = (...e) => e.reduce(bs), Je = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
43
43
|
const s = t - e;
|
|
44
44
|
return s === 0 ? 1 : (n - e) / s;
|
|
45
45
|
};
|
|
@@ -68,13 +68,13 @@ class nn {
|
|
|
68
68
|
this.subscriptions.length = 0;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const O = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, P = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
|
|
72
72
|
function sn(e, t) {
|
|
73
73
|
return t ? e * (1e3 / t) : 0;
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const xt = /* @__PURE__ */ new Set();
|
|
76
76
|
function rn(e, t, n) {
|
|
77
|
-
e ||
|
|
77
|
+
e || xt.has(t) || (console.warn(ke(t, n)), xt.add(t));
|
|
78
78
|
}
|
|
79
79
|
const Ts = (e, t, n) => {
|
|
80
80
|
const s = t - e;
|
|
@@ -89,33 +89,33 @@ function Vs(e, t, n, s, i) {
|
|
|
89
89
|
}
|
|
90
90
|
function pe(e, t, n, s) {
|
|
91
91
|
if (e === t && n === s)
|
|
92
|
-
return
|
|
92
|
+
return H;
|
|
93
93
|
const i = (r) => Vs(r, 0, 1, e, n);
|
|
94
94
|
return (r) => r === 0 || r === 1 ? r : an(i(r), t, s);
|
|
95
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__ */ pe(0.33, 1.53, 0.69, 0.99), Qe = /* @__PURE__ */ ln(un), cn = /* @__PURE__ */ on(Qe), fn = (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)),
|
|
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__ */ pe(0.33, 1.53, 0.69, 0.99), Qe = /* @__PURE__ */ ln(un), cn = /* @__PURE__ */ on(Qe), fn = (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)), As = ln(et), hn = on(et), xs = /* @__PURE__ */ pe(0.42, 0, 1, 1), Ms = /* @__PURE__ */ pe(0, 0, 0.58, 1), dn = /* @__PURE__ */ pe(0.42, 0, 0.58, 1), pn = (e) => Array.isArray(e) && typeof e[0] != "number";
|
|
97
97
|
function mn(e, t) {
|
|
98
98
|
return pn(e) ? e[Ts(0, e.length, t)] : e;
|
|
99
99
|
}
|
|
100
|
-
const gn = (e) => Array.isArray(e) && typeof e[0] == "number",
|
|
101
|
-
linear:
|
|
102
|
-
easeIn:
|
|
100
|
+
const gn = (e) => Array.isArray(e) && typeof e[0] == "number", Mt = {
|
|
101
|
+
linear: H,
|
|
102
|
+
easeIn: xs,
|
|
103
103
|
easeInOut: dn,
|
|
104
|
-
easeOut:
|
|
104
|
+
easeOut: Ms,
|
|
105
105
|
circIn: et,
|
|
106
106
|
circInOut: hn,
|
|
107
|
-
circOut:
|
|
107
|
+
circOut: As,
|
|
108
108
|
backIn: Qe,
|
|
109
109
|
backInOut: cn,
|
|
110
110
|
backOut: un,
|
|
111
111
|
anticipate: fn
|
|
112
|
-
},
|
|
112
|
+
}, ws = (e) => typeof e == "string", wt = (e) => {
|
|
113
113
|
if (gn(e)) {
|
|
114
114
|
I(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 pe(t, n, s, i);
|
|
117
|
-
} else if (
|
|
118
|
-
return I(
|
|
117
|
+
} else if (ws(e))
|
|
118
|
+
return I(Mt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Mt[e];
|
|
119
119
|
return e;
|
|
120
120
|
}, be = [
|
|
121
121
|
"setup",
|
|
@@ -151,8 +151,8 @@ function Cs(e, t) {
|
|
|
151
151
|
* Schedule a process to run on the next frame.
|
|
152
152
|
*/
|
|
153
153
|
schedule: (l, f = !1, h = !1) => {
|
|
154
|
-
const
|
|
155
|
-
return f && a.add(l),
|
|
154
|
+
const m = h && i ? n : s;
|
|
155
|
+
return f && a.add(l), m.has(l) || m.add(l), l;
|
|
156
156
|
},
|
|
157
157
|
/**
|
|
158
158
|
* Cancel the provided callback from running on the next frame.
|
|
@@ -180,21 +180,21 @@ function yn(e, t) {
|
|
|
180
180
|
delta: 0,
|
|
181
181
|
timestamp: 0,
|
|
182
182
|
isProcessing: !1
|
|
183
|
-
}, r = () => n = !0, a = be.reduce((V,
|
|
183
|
+
}, r = () => n = !0, a = be.reduce((V, A) => (V[A] = Cs(r), V), {}), { setup: o, read: u, resolveKeyframes: c, preUpdate: l, update: f, preRender: h, render: p, postRender: m } = a, y = () => {
|
|
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, 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),
|
|
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), m.process(i), i.isProcessing = !1, n && t && (s = !1, e(y));
|
|
186
186
|
}, v = () => {
|
|
187
187
|
n = !0, s = !0, i.isProcessing || e(y);
|
|
188
188
|
};
|
|
189
|
-
return { schedule: be.reduce((V,
|
|
190
|
-
const
|
|
191
|
-
return V[
|
|
189
|
+
return { schedule: be.reduce((V, A) => {
|
|
190
|
+
const g = a[A];
|
|
191
|
+
return V[A] = (b, w = !1, T = !1) => (n || v(), g.schedule(b, w, T)), V;
|
|
192
192
|
}, {}), cancel: (V) => {
|
|
193
|
-
for (let
|
|
194
|
-
a[be[
|
|
193
|
+
for (let A = 0; A < be.length; A++)
|
|
194
|
+
a[be[A]].cancel(V);
|
|
195
195
|
}, state: i, steps: a };
|
|
196
196
|
}
|
|
197
|
-
const { schedule: K, cancel:
|
|
197
|
+
const { schedule: K, cancel: Oe, state: Se } = /* @__PURE__ */ yn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0);
|
|
198
198
|
let ve;
|
|
199
199
|
function Fs() {
|
|
200
200
|
ve = void 0;
|
|
@@ -208,21 +208,21 @@ const R = {
|
|
|
208
208
|
function Ct(e) {
|
|
209
209
|
return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const J = {
|
|
212
212
|
test: (e) => typeof e == "number",
|
|
213
213
|
parse: parseFloat,
|
|
214
214
|
transform: (e) => e
|
|
215
|
-
},
|
|
216
|
-
...
|
|
215
|
+
}, ue = {
|
|
216
|
+
...J,
|
|
217
217
|
transform: (e) => _(0, 1, e)
|
|
218
218
|
}, Te = {
|
|
219
|
-
...
|
|
219
|
+
...J,
|
|
220
220
|
default: 1
|
|
221
|
-
},
|
|
221
|
+
}, le = (e) => Math.round(e * 1e5) / 1e5, nt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
222
222
|
function Ps(e) {
|
|
223
223
|
return e == null;
|
|
224
224
|
}
|
|
225
|
-
const
|
|
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 && !Ps(n) && Object.prototype.hasOwnProperty.call(n, t)), vn = (e, t, n) => (s) => {
|
|
226
226
|
if (typeof s != "string")
|
|
227
227
|
return s;
|
|
228
228
|
const [i, r, a, o] = s.match(nt);
|
|
@@ -232,13 +232,13 @@ const Os = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
232
232
|
[n]: parseFloat(a),
|
|
233
233
|
alpha: o !== void 0 ? parseFloat(o) : 1
|
|
234
234
|
};
|
|
235
|
-
},
|
|
236
|
-
...
|
|
237
|
-
transform: (e) => Math.round(
|
|
235
|
+
}, Os = (e) => _(0, 255, e), Ce = {
|
|
236
|
+
...J,
|
|
237
|
+
transform: (e) => Math.round(Os(e))
|
|
238
238
|
}, j = {
|
|
239
239
|
test: /* @__PURE__ */ st("rgb", "red"),
|
|
240
240
|
parse: /* @__PURE__ */ vn("red", "green", "blue"),
|
|
241
|
-
transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Ce.transform(e) + ", " + Ce.transform(t) + ", " + Ce.transform(n) + ", " +
|
|
241
|
+
transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Ce.transform(e) + ", " + Ce.transform(t) + ", " + Ce.transform(n) + ", " + le(ue.transform(s)) + ")"
|
|
242
242
|
};
|
|
243
243
|
function Bs(e) {
|
|
244
244
|
let t = "", n = "", s = "", i = "";
|
|
@@ -264,7 +264,7 @@ const Be = {
|
|
|
264
264
|
}, z = {
|
|
265
265
|
test: /* @__PURE__ */ st("hsl", "hue"),
|
|
266
266
|
parse: /* @__PURE__ */ vn("hue", "saturation", "lightness"),
|
|
267
|
-
transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + q.transform(
|
|
267
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + q.transform(le(t)) + ", " + q.transform(le(n)) + ", " + le(ue.transform(s)) + ")"
|
|
268
268
|
}, D = {
|
|
269
269
|
test: (e) => j.test(e) || Be.test(e) || z.test(e),
|
|
270
270
|
parse: (e) => j.test(e) ? j.parse(e) : z.test(e) ? z.parse(e) : Be.parse(e),
|
|
@@ -278,7 +278,7 @@ function $s(e) {
|
|
|
278
278
|
return isNaN(e) && typeof e == "string" && (e.match(nt)?.length || 0) + (e.match(Ks)?.length || 0) > 0;
|
|
279
279
|
}
|
|
280
280
|
const Sn = "number", Vn = "color", Ls = "var", Ws = "var(", Ft = "${}", _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
|
-
function
|
|
281
|
+
function ce(e) {
|
|
282
282
|
const t = e.toString(), n = [], s = {
|
|
283
283
|
color: [],
|
|
284
284
|
number: [],
|
|
@@ -288,30 +288,30 @@ function ue(e) {
|
|
|
288
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, Ft)).split(Ft);
|
|
289
289
|
return { values: n, split: o, indexes: s, types: i };
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
291
|
+
function An(e) {
|
|
292
|
+
return ce(e).values;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
const { split: t, types: n } =
|
|
294
|
+
function xn(e) {
|
|
295
|
+
const { split: t, types: n } = ce(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 === Sn ? r +=
|
|
301
|
+
o === Sn ? r += le(i[a]) : o === Vn ? r += D.transform(i[a]) : r += i[a];
|
|
302
302
|
}
|
|
303
303
|
return r;
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
306
|
const Us = (e) => typeof e == "number" ? 0 : D.test(e) ? D.getAnimatableNone(e) : e;
|
|
307
307
|
function js(e) {
|
|
308
|
-
const t =
|
|
309
|
-
return
|
|
308
|
+
const t = An(e);
|
|
309
|
+
return xn(e)(t.map(Us));
|
|
310
310
|
}
|
|
311
311
|
const U = {
|
|
312
312
|
test: $s,
|
|
313
|
-
parse:
|
|
314
|
-
createTransformer:
|
|
313
|
+
parse: An,
|
|
314
|
+
createTransformer: xn,
|
|
315
315
|
getAnimatableNone: js
|
|
316
316
|
};
|
|
317
317
|
function De(e, t, n) {
|
|
@@ -336,7 +336,7 @@ function Gs({ hue: e, saturation: t, lightness: n, alpha: s }) {
|
|
|
336
336
|
function Ve(e, t) {
|
|
337
337
|
return (n) => n > 0 ? t : e;
|
|
338
338
|
}
|
|
339
|
-
const
|
|
339
|
+
const Q = (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
342
|
}, Ys = [Be, j, z], zs = (e) => Ys.find((t) => t.test(e));
|
|
@@ -352,18 +352,18 @@ const Rt = (e, t) => {
|
|
|
352
352
|
if (!n || !s)
|
|
353
353
|
return Ve(e, t);
|
|
354
354
|
const i = { ...n };
|
|
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 =
|
|
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 = Q(n.alpha, s.alpha, r), j.transform(i));
|
|
356
356
|
}, Ie = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
357
357
|
function Xs(e, t) {
|
|
358
358
|
return Ie.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
359
359
|
}
|
|
360
360
|
function qs(e, t) {
|
|
361
|
-
return (n) =>
|
|
361
|
+
return (n) => Q(e, t, n);
|
|
362
362
|
}
|
|
363
363
|
function it(e) {
|
|
364
|
-
return typeof e == "number" ? qs : typeof e == "string" ? tt(e) ? Ve : D.test(e) ? Rt : Js : Array.isArray(e) ?
|
|
364
|
+
return typeof e == "number" ? qs : typeof e == "string" ? tt(e) ? Ve : D.test(e) ? Rt : Js : Array.isArray(e) ? Mn : typeof e == "object" ? D.test(e) ? Rt : Zs : Ve;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Mn(e, t) {
|
|
367
367
|
const n = [...e], s = n.length, i = e.map((r, a) => it(r)(r, t[a]));
|
|
368
368
|
return (r) => {
|
|
369
369
|
for (let a = 0; a < s; a++)
|
|
@@ -390,17 +390,17 @@ function Hs(e, t) {
|
|
|
390
390
|
return n;
|
|
391
391
|
}
|
|
392
392
|
const Js = (e, t) => {
|
|
393
|
-
const n = U.createTransformer(t), s =
|
|
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) : He(
|
|
393
|
+
const n = U.createTransformer(t), s = ce(e), i = ce(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) : He(Mn(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
|
|
397
|
-
return typeof e == "number" && typeof t == "number" && typeof n == "number" ?
|
|
396
|
+
function wn(e, t, n) {
|
|
397
|
+
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Q(e, t, n) : it(e)(e, t);
|
|
398
398
|
}
|
|
399
399
|
const Qs = (e) => {
|
|
400
400
|
const t = ({ timestamp: n }) => e(n);
|
|
401
401
|
return {
|
|
402
402
|
start: (n = !0) => K.update(t, n),
|
|
403
|
-
stop: () =>
|
|
403
|
+
stop: () => Oe(t),
|
|
404
404
|
/**
|
|
405
405
|
* If we're processing this frame we can use the
|
|
406
406
|
* framelocked timestamp to keep things in sync.
|
|
@@ -413,17 +413,17 @@ const Qs = (e) => {
|
|
|
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
|
-
},
|
|
416
|
+
}, Ae = 2e4;
|
|
417
417
|
function rt(e) {
|
|
418
418
|
let t = 0;
|
|
419
419
|
const n = 50;
|
|
420
420
|
let s = e.next(t);
|
|
421
|
-
for (; !s.done && t <
|
|
421
|
+
for (; !s.done && t < Ae; )
|
|
422
422
|
t += n, s = e.next(t);
|
|
423
|
-
return t >=
|
|
423
|
+
return t >= Ae ? 1 / 0 : t;
|
|
424
424
|
}
|
|
425
425
|
function Dn(e, t = 100, n) {
|
|
426
|
-
const s = n({ ...e, keyframes: [0, t] }), i = Math.min(rt(s),
|
|
426
|
+
const s = n({ ...e, keyframes: [0, t] }), i = Math.min(rt(s), Ae);
|
|
427
427
|
return {
|
|
428
428
|
type: "keyframes",
|
|
429
429
|
ease: (r) => s.next(i * r).value / t,
|
|
@@ -466,14 +466,14 @@ const C = {
|
|
|
466
466
|
}, Ee = 1e-3;
|
|
467
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
|
-
de(e <= /* @__PURE__ */
|
|
469
|
+
de(e <= /* @__PURE__ */ O(C.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
470
470
|
let a = 1 - t;
|
|
471
471
|
a = _(C.minDamping, C.maxDamping, a), e = _(C.minDuration, C.maxDuration, /* @__PURE__ */ P(e)), a < 1 ? (i = (c) => {
|
|
472
|
-
const l = c * a, f = l * e, h = l - n,
|
|
473
|
-
return Ee - h /
|
|
472
|
+
const l = c * a, f = l * e, h = l - n, p = Ne(c, a), m = Math.exp(-f);
|
|
473
|
+
return Ee - h / p * m;
|
|
474
474
|
}, r = (c) => {
|
|
475
|
-
const f = c * a * e, h = f * n + n,
|
|
476
|
-
return (-i(c) + Ee > 0 ? -1 : 1) * ((h -
|
|
475
|
+
const f = c * a * e, h = f * n + n, p = Math.pow(a, 2) * Math.pow(c, 2) * e, m = Math.exp(-f), y = Ne(Math.pow(c, 2), a);
|
|
476
|
+
return (-i(c) + Ee > 0 ? -1 : 1) * ((h - p) * m) / y;
|
|
477
477
|
}) : (i = (c) => {
|
|
478
478
|
const l = Math.exp(-c * e), f = (c - n) * e + 1;
|
|
479
479
|
return -Ee + l * f;
|
|
@@ -482,7 +482,7 @@ function ti({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.ve
|
|
|
482
482
|
return l * f;
|
|
483
483
|
});
|
|
484
484
|
const o = 5 / e, u = si(i, r, o);
|
|
485
|
-
if (e = /* @__PURE__ */
|
|
485
|
+
if (e = /* @__PURE__ */ O(e), isNaN(u))
|
|
486
486
|
return {
|
|
487
487
|
stiffness: C.stiffness,
|
|
488
488
|
damping: C.damping,
|
|
@@ -539,77 +539,77 @@ function ai(e) {
|
|
|
539
539
|
}
|
|
540
540
|
return t;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function fe(e = C.visualDuration, t = C.bounce) {
|
|
543
543
|
const n = typeof e != "object" ? {
|
|
544
544
|
visualDuration: e,
|
|
545
545
|
keyframes: [0, 1],
|
|
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:
|
|
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
|
-
}),
|
|
553
|
-
s || (s =
|
|
552
|
+
}), m = h || 0, y = c / (2 * Math.sqrt(u * l)), v = a - r, S = /* @__PURE__ */ P(Math.sqrt(u / l)), M = Math.abs(v) < 5;
|
|
553
|
+
s || (s = M ? C.restSpeed.granular : C.restSpeed.default), i || (i = M ? C.restDelta.granular : C.restDelta.default);
|
|
554
554
|
let V;
|
|
555
555
|
if (y < 1) {
|
|
556
|
-
const
|
|
556
|
+
const g = Ne(S, y);
|
|
557
557
|
V = (b) => {
|
|
558
|
-
const
|
|
559
|
-
return a -
|
|
558
|
+
const w = Math.exp(-y * S * b);
|
|
559
|
+
return a - w * ((m + y * S * v) / g * Math.sin(g * b) + v * Math.cos(g * b));
|
|
560
560
|
};
|
|
561
561
|
} else if (y === 1)
|
|
562
|
-
V = (
|
|
562
|
+
V = (g) => a - Math.exp(-S * g) * (v + (m + S * v) * g);
|
|
563
563
|
else {
|
|
564
|
-
const
|
|
564
|
+
const g = S * Math.sqrt(y * y - 1);
|
|
565
565
|
V = (b) => {
|
|
566
|
-
const
|
|
567
|
-
return a -
|
|
566
|
+
const w = Math.exp(-y * S * b), T = Math.min(g * b, 300);
|
|
567
|
+
return a - w * ((m + y * S * v) * Math.sinh(T) + g * v * Math.cosh(T)) / g;
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
|
-
const
|
|
571
|
-
calculatedDuration:
|
|
572
|
-
next: (
|
|
573
|
-
const b = V(
|
|
574
|
-
if (
|
|
575
|
-
o.done =
|
|
570
|
+
const A = {
|
|
571
|
+
calculatedDuration: p && f || null,
|
|
572
|
+
next: (g) => {
|
|
573
|
+
const b = V(g);
|
|
574
|
+
if (p)
|
|
575
|
+
o.done = g >= f;
|
|
576
576
|
else {
|
|
577
|
-
let
|
|
578
|
-
y < 1 && (
|
|
579
|
-
const T = Math.abs(
|
|
580
|
-
o.done = T &&
|
|
577
|
+
let w = g === 0 ? m : 0;
|
|
578
|
+
y < 1 && (w = g === 0 ? /* @__PURE__ */ O(m) : Fn(V, g, b));
|
|
579
|
+
const T = Math.abs(w) <= s, x = Math.abs(a - b) <= i;
|
|
580
|
+
o.done = T && x;
|
|
581
581
|
}
|
|
582
582
|
return o.value = o.done ? a : b, o;
|
|
583
583
|
},
|
|
584
584
|
toString: () => {
|
|
585
|
-
const
|
|
586
|
-
return
|
|
585
|
+
const g = Math.min(rt(A), Ae), b = Cn((w) => A.next(g * w).value, g, 30);
|
|
586
|
+
return g + "ms " + b;
|
|
587
587
|
},
|
|
588
588
|
toTransition: () => {
|
|
589
589
|
}
|
|
590
590
|
};
|
|
591
|
-
return
|
|
591
|
+
return A;
|
|
592
592
|
}
|
|
593
|
-
|
|
594
|
-
const t = Dn(e, 100,
|
|
595
|
-
return e.ease = t.ease, e.duration = /* @__PURE__ */
|
|
593
|
+
fe.applyToOptions = (e) => {
|
|
594
|
+
const t = Dn(e, 100, fe);
|
|
595
|
+
return e.ease = t.ease, e.duration = /* @__PURE__ */ O(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 }) {
|
|
598
598
|
const f = e[0], h = {
|
|
599
599
|
done: !1,
|
|
600
600
|
value: f
|
|
601
|
-
},
|
|
601
|
+
}, p = (T) => o !== void 0 && T < o || u !== void 0 && T > u, m = (T) => o === void 0 ? u : u === void 0 || Math.abs(o - T) < Math.abs(u - T) ? o : u;
|
|
602
602
|
let y = n * t;
|
|
603
603
|
const v = f + y, S = a === void 0 ? v : a(v);
|
|
604
604
|
S !== v && (y = S - f);
|
|
605
|
-
const
|
|
606
|
-
const
|
|
607
|
-
h.done = Math.abs(
|
|
605
|
+
const M = (T) => -y * Math.exp(-T / s), V = (T) => S + M(T), A = (T) => {
|
|
606
|
+
const x = M(T), F = V(T);
|
|
607
|
+
h.done = Math.abs(x) <= c, h.value = h.done ? S : F;
|
|
608
608
|
};
|
|
609
|
-
let
|
|
610
|
-
const
|
|
611
|
-
|
|
612
|
-
keyframes: [h.value,
|
|
609
|
+
let g, b;
|
|
610
|
+
const w = (T) => {
|
|
611
|
+
p(h.value) && (g = T, b = fe({
|
|
612
|
+
keyframes: [h.value, m(h.value)],
|
|
613
613
|
velocity: Fn(V, T, h.value),
|
|
614
614
|
// TODO: This should be passing * 1000
|
|
615
615
|
damping: i,
|
|
@@ -618,20 +618,20 @@ function Ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
|
|
|
618
618
|
restSpeed: l
|
|
619
619
|
}));
|
|
620
620
|
};
|
|
621
|
-
return
|
|
621
|
+
return w(0), {
|
|
622
622
|
calculatedDuration: null,
|
|
623
623
|
next: (T) => {
|
|
624
|
-
let
|
|
625
|
-
return !b &&
|
|
624
|
+
let x = !1;
|
|
625
|
+
return !b && g === void 0 && (x = !0, A(T), w(T)), g !== void 0 && T >= g ? b.next(T - g) : (!x && A(T), h);
|
|
626
626
|
}
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
629
|
function oi(e, t, n) {
|
|
630
|
-
const s = [], i = n || N.mix ||
|
|
630
|
+
const s = [], i = n || N.mix || wn, 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] ||
|
|
634
|
+
const u = Array.isArray(t) ? t[a] || H : t;
|
|
635
635
|
o = He(u, o);
|
|
636
636
|
}
|
|
637
637
|
s.push(o);
|
|
@@ -662,7 +662,7 @@ function En(e, t) {
|
|
|
662
662
|
const n = e[e.length - 1];
|
|
663
663
|
for (let s = 1; s <= t; s++) {
|
|
664
664
|
const i = /* @__PURE__ */ Je(0, t, s);
|
|
665
|
-
e.push(
|
|
665
|
+
e.push(Q(n, 1, i));
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
function Rn(e) {
|
|
@@ -676,7 +676,7 @@ function ci(e, t) {
|
|
|
676
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(
|
|
679
|
+
const i = pn(s) ? s.map(wt) : wt(s), r = {
|
|
680
680
|
done: !1,
|
|
681
681
|
value: t[0]
|
|
682
682
|
}, a = ui(
|
|
@@ -702,7 +702,7 @@ const hi = {
|
|
|
702
702
|
inertia: Ke,
|
|
703
703
|
tween: X,
|
|
704
704
|
keyframes: X,
|
|
705
|
-
spring:
|
|
705
|
+
spring: fe
|
|
706
706
|
};
|
|
707
707
|
function Pn(e) {
|
|
708
708
|
typeof e.type == "string" && (e.type = hi[e.type]);
|
|
@@ -745,7 +745,7 @@ class lt extends ot {
|
|
|
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 && I(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 = He(di,
|
|
748
|
+
process.env.NODE_ENV !== "production" && u !== X && I(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 = He(di, wn(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,
|
|
@@ -763,22 +763,22 @@ class lt extends ot {
|
|
|
763
763
|
const { generator: s, totalDuration: i, mixKeyframes: r, mirroredGenerator: a, resolvedDuration: o, calculatedDuration: u } = this;
|
|
764
764
|
if (this.startTime === null)
|
|
765
765
|
return s.next(0);
|
|
766
|
-
const { delay: c = 0, keyframes: l, repeat: f, repeatType: h, repeatDelay:
|
|
766
|
+
const { delay: c = 0, keyframes: l, repeat: f, repeatType: h, repeatDelay: p, type: m, onUpdate: y, finalKeyframe: v } = this.options;
|
|
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
|
-
const S = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1),
|
|
768
|
+
const S = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), M = this.playbackSpeed >= 0 ? S < 0 : S > i;
|
|
769
769
|
this.currentTime = Math.max(S, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
|
|
770
|
-
let V = this.currentTime,
|
|
770
|
+
let V = this.currentTime, A = s;
|
|
771
771
|
if (f) {
|
|
772
772
|
const T = Math.min(this.currentTime, i) / o;
|
|
773
|
-
let
|
|
774
|
-
!F && T >= 1 && (F = 1), F === 1 &&
|
|
773
|
+
let x = Math.floor(T), F = T % 1;
|
|
774
|
+
!F && T >= 1 && (F = 1), F === 1 && x--, x = Math.min(x, f + 1), x % 2 && (h === "reverse" ? (F = 1 - F, p && (F -= p / o)) : h === "mirror" && (A = a)), V = _(0, 1, F) * o;
|
|
775
775
|
}
|
|
776
|
-
const
|
|
777
|
-
r && (
|
|
778
|
-
let { done: b } =
|
|
779
|
-
!
|
|
780
|
-
const
|
|
781
|
-
return
|
|
776
|
+
const g = M ? { done: !1, value: l[0] } : A.next(V);
|
|
777
|
+
r && (g.value = r(g.value));
|
|
778
|
+
let { done: b } = g;
|
|
779
|
+
!M && u !== null && (b = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
|
|
780
|
+
const w = this.holdTime === null && (this.state === "finished" || this.state === "running" && b);
|
|
781
|
+
return w && m !== Ke && (g.value = at(l, this.options, v, this.speed)), y && y(g.value), w && this.finish(), g;
|
|
782
782
|
}
|
|
783
783
|
/**
|
|
784
784
|
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
@@ -799,7 +799,7 @@ class lt extends ot {
|
|
|
799
799
|
return /* @__PURE__ */ P(this.currentTime);
|
|
800
800
|
}
|
|
801
801
|
set time(t) {
|
|
802
|
-
t = /* @__PURE__ */
|
|
802
|
+
t = /* @__PURE__ */ O(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), this.driver?.start(!1);
|
|
803
803
|
}
|
|
804
804
|
get speed() {
|
|
805
805
|
return this.playbackSpeed;
|
|
@@ -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),
|
|
865
|
+
}, Le = (e) => (e = e % 360, e < 0 && (e += 360), e), kt = $e, Ot = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Bt = (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:
|
|
872
|
+
scaleX: Ot,
|
|
873
873
|
scaleY: Bt,
|
|
874
|
-
scale: (e) => (
|
|
874
|
+
scale: (e) => (Ot(e) + Bt(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:
|
|
878
|
-
rotate:
|
|
877
|
+
rotateZ: kt,
|
|
878
|
+
rotate: kt,
|
|
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
|
|
@@ -906,7 +906,7 @@ const yi = (e, t) => {
|
|
|
906
906
|
function bi(e) {
|
|
907
907
|
return parseFloat(e.trim());
|
|
908
908
|
}
|
|
909
|
-
const
|
|
909
|
+
const ee = [
|
|
910
910
|
"transformPerspective",
|
|
911
911
|
"x",
|
|
912
912
|
"y",
|
|
@@ -924,7 +924,7 @@ const Q = [
|
|
|
924
924
|
"skew",
|
|
925
925
|
"skewX",
|
|
926
926
|
"skewY"
|
|
927
|
-
],
|
|
927
|
+
], te = new Set(ee), It = (e) => e === J || e === d, Ti = /* @__PURE__ */ new Set(["x", "y", "z"]), vi = ee.filter((e) => !Ti.has(e));
|
|
928
928
|
function Si(e) {
|
|
929
929
|
const t = [];
|
|
930
930
|
return vi.forEach((n) => {
|
|
@@ -948,7 +948,7 @@ W.translateX = W.x;
|
|
|
948
948
|
W.translateY = W.y;
|
|
949
949
|
const Y = /* @__PURE__ */ new Set();
|
|
950
950
|
let Ue = !1, je = !1, Ge = !1;
|
|
951
|
-
function
|
|
951
|
+
function kn() {
|
|
952
952
|
if (je) {
|
|
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) => {
|
|
@@ -966,20 +966,20 @@ function On() {
|
|
|
966
966
|
}
|
|
967
967
|
je = !1, Ue = !1, Y.forEach((e) => e.complete(Ge)), Y.clear();
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function On() {
|
|
970
970
|
Y.forEach((e) => {
|
|
971
971
|
e.readKeyframes(), e.needsMeasurement && (je = !0);
|
|
972
972
|
});
|
|
973
973
|
}
|
|
974
974
|
function Vi() {
|
|
975
|
-
Ge = !0,
|
|
975
|
+
Ge = !0, On(), kn(), Ge = !1;
|
|
976
976
|
}
|
|
977
977
|
class ut {
|
|
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), Ue || (Ue = !0, K.read(
|
|
982
|
+
this.state = "scheduled", this.isAsync ? (Y.add(this), Ue || (Ue = !0, K.read(On), K.resolveKeyframes(kn))) : (this.readKeyframes(), this.complete());
|
|
983
983
|
}
|
|
984
984
|
readKeyframes() {
|
|
985
985
|
const { unresolvedKeyframes: t, name: n, element: s, motionValue: i } = this;
|
|
@@ -1013,14 +1013,14 @@ class ut {
|
|
|
1013
1013
|
this.state === "pending" && this.scheduleResolve();
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
|
-
const
|
|
1017
|
-
function
|
|
1018
|
-
|
|
1016
|
+
const Ai = (e) => e.startsWith("--");
|
|
1017
|
+
function xi(e, t, n) {
|
|
1018
|
+
Ai(t) ? e.style.setProperty(t, n) : e.style[t] = n;
|
|
1019
1019
|
}
|
|
1020
|
-
const
|
|
1020
|
+
const Mi = /* @__PURE__ */ Ze(() => window.ScrollTimeline !== void 0), wi = {};
|
|
1021
1021
|
function Ci(e, t) {
|
|
1022
1022
|
const n = /* @__PURE__ */ Ze(e);
|
|
1023
|
-
return () =>
|
|
1023
|
+
return () => wi[t] ?? n();
|
|
1024
1024
|
}
|
|
1025
1025
|
const Bn = /* @__PURE__ */ Ci(() => {
|
|
1026
1026
|
try {
|
|
@@ -1029,20 +1029,20 @@ const Bn = /* @__PURE__ */ Ci(() => {
|
|
|
1029
1029
|
return !1;
|
|
1030
1030
|
}
|
|
1031
1031
|
return !0;
|
|
1032
|
-
}, "linearEasing"),
|
|
1032
|
+
}, "linearEasing"), oe = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Nt = {
|
|
1033
1033
|
linear: "linear",
|
|
1034
1034
|
ease: "ease",
|
|
1035
1035
|
easeIn: "ease-in",
|
|
1036
1036
|
easeOut: "ease-out",
|
|
1037
1037
|
easeInOut: "ease-in-out",
|
|
1038
|
-
circIn: /* @__PURE__ */
|
|
1039
|
-
circOut: /* @__PURE__ */
|
|
1040
|
-
backIn: /* @__PURE__ */
|
|
1041
|
-
backOut: /* @__PURE__ */
|
|
1038
|
+
circIn: /* @__PURE__ */ oe([0, 0.65, 0.55, 1]),
|
|
1039
|
+
circOut: /* @__PURE__ */ oe([0.55, 0, 1, 0.45]),
|
|
1040
|
+
backIn: /* @__PURE__ */ oe([0.31, 0.01, 0.66, -0.59]),
|
|
1041
|
+
backOut: /* @__PURE__ */ oe([0.33, 1.53, 0.69, 0.99])
|
|
1042
1042
|
};
|
|
1043
1043
|
function In(e, t) {
|
|
1044
1044
|
if (e)
|
|
1045
|
-
return typeof e == "function" ? Bn() ? Cn(e, t) : "ease-out" : gn(e) ?
|
|
1045
|
+
return typeof e == "function" ? Bn() ? Cn(e, t) : "ease-out" : gn(e) ? oe(e) : Array.isArray(e) ? e.map((n) => In(n, t) || Nt.easeOut) : Nt[e];
|
|
1046
1046
|
}
|
|
1047
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 = {
|
|
@@ -1077,7 +1077,7 @@ class Ei extends ot {
|
|
|
1077
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
1079
|
const l = at(i, this.options, o, this.speed);
|
|
1080
|
-
this.updateMotionValue ? this.updateMotionValue(l) :
|
|
1080
|
+
this.updateMotionValue ? this.updateMotionValue(l) : xi(n, s, l), this.animation.cancel();
|
|
1081
1081
|
}
|
|
1082
1082
|
u?.(), this.notifyFinished();
|
|
1083
1083
|
};
|
|
@@ -1117,7 +1117,8 @@ class Ei extends ot {
|
|
|
1117
1117
|
* while deferring the commit until the next animation frame.
|
|
1118
1118
|
*/
|
|
1119
1119
|
commitStyles() {
|
|
1120
|
-
|
|
1120
|
+
const t = this.options?.element;
|
|
1121
|
+
!this.isPseudoElement && t?.isConnected && this.animation.commitStyles?.();
|
|
1121
1122
|
}
|
|
1122
1123
|
get duration() {
|
|
1123
1124
|
const t = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
@@ -1131,7 +1132,7 @@ class Ei extends ot {
|
|
|
1131
1132
|
return /* @__PURE__ */ P(Number(this.animation.currentTime) || 0);
|
|
1132
1133
|
}
|
|
1133
1134
|
set time(t) {
|
|
1134
|
-
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */
|
|
1135
|
+
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ O(t);
|
|
1135
1136
|
}
|
|
1136
1137
|
/**
|
|
1137
1138
|
* The playback speed of the animation.
|
|
@@ -1156,7 +1157,7 @@ class Ei extends ot {
|
|
|
1156
1157
|
* Attaches a timeline to the animation, for instance the `ScrollTimeline`.
|
|
1157
1158
|
*/
|
|
1158
1159
|
attachTimeline({ timeline: t, observe: n }) {
|
|
1159
|
-
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t &&
|
|
1160
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && Mi() ? (this.animation.timeline = t, H) : n(this);
|
|
1160
1161
|
}
|
|
1161
1162
|
}
|
|
1162
1163
|
const Nn = {
|
|
@@ -1171,7 +1172,7 @@ function Pi(e) {
|
|
|
1171
1172
|
typeof e.ease == "string" && Ri(e.ease) && (e.ease = Nn[e.ease]);
|
|
1172
1173
|
}
|
|
1173
1174
|
const Re = 10;
|
|
1174
|
-
class
|
|
1175
|
+
class ki extends Ei {
|
|
1175
1176
|
constructor(t) {
|
|
1176
1177
|
Pi(t), Pn(t), super(t), t.startTime !== void 0 && (this.startTime = t.startTime), this.options = t;
|
|
1177
1178
|
}
|
|
@@ -1201,7 +1202,7 @@ class Oi extends Ei {
|
|
|
1201
1202
|
const Kt = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
|
1202
1203
|
(U.test(e) || e === "0") && // And it contains numbers and/or colors
|
|
1203
1204
|
!e.startsWith("url("));
|
|
1204
|
-
function
|
|
1205
|
+
function Oi(e) {
|
|
1205
1206
|
const t = e[0];
|
|
1206
1207
|
if (e.length === 1)
|
|
1207
1208
|
return !0;
|
|
@@ -1216,7 +1217,7 @@ function Bi(e, t, n, s) {
|
|
|
1216
1217
|
if (t === "display" || t === "visibility")
|
|
1217
1218
|
return !0;
|
|
1218
1219
|
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 :
|
|
1220
|
+
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 : Oi(e) || (n === "spring" || ct(n)) && s;
|
|
1220
1221
|
}
|
|
1221
1222
|
function Ye(e) {
|
|
1222
1223
|
e.duration = 0, e.type = "keyframes";
|
|
@@ -1257,8 +1258,8 @@ class Li extends ot {
|
|
|
1257
1258
|
motionValue: c,
|
|
1258
1259
|
element: l,
|
|
1259
1260
|
...f
|
|
1260
|
-
},
|
|
1261
|
-
this.keyframeResolver = new
|
|
1261
|
+
}, p = l?.KeyframeResolver || ut;
|
|
1262
|
+
this.keyframeResolver = new p(o, (m, y, v) => this.onKeyframesResolved(m, y, h, !v), u, c, l), this.keyframeResolver?.scheduleResolve();
|
|
1262
1263
|
}
|
|
1263
1264
|
onKeyframesResolved(t, n, s, i) {
|
|
1264
1265
|
this.keyframeResolver = void 0;
|
|
@@ -1269,13 +1270,13 @@ class Li extends ot {
|
|
|
1269
1270
|
finalKeyframe: n,
|
|
1270
1271
|
...s,
|
|
1271
1272
|
keyframes: t
|
|
1272
|
-
},
|
|
1273
|
+
}, p = !c && Ki(h), m = h.motionValue?.owner?.current, y = p ? new ki({
|
|
1273
1274
|
...h,
|
|
1274
|
-
element:
|
|
1275
|
+
element: m
|
|
1275
1276
|
}) : new lt(h);
|
|
1276
1277
|
y.finished.then(() => {
|
|
1277
1278
|
this.notifyFinished();
|
|
1278
|
-
}).catch(
|
|
1279
|
+
}).catch(H), this.pendingTimeline && (this.stopTimeline = y.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = y;
|
|
1279
1280
|
}
|
|
1280
1281
|
get finished() {
|
|
1281
1282
|
return this._animation ? this.animation.finished : this._finished;
|
|
@@ -1447,7 +1448,7 @@ const Yi = {
|
|
|
1447
1448
|
type: "keyframes",
|
|
1448
1449
|
ease: [0.25, 0.1, 0.35, 1],
|
|
1449
1450
|
duration: 0.3
|
|
1450
|
-
}, Zi = (e, { keyframes: t }) => t.length > 2 ? Xi :
|
|
1451
|
+
}, Zi = (e, { keyframes: t }) => t.length > 2 ? Xi : te.has(e) ? e.startsWith("scale") ? zi(t[1]) : Yi : qi, Hi = (e) => e !== null;
|
|
1451
1452
|
function Ji(e, { repeat: t, repeatType: n = "loop" }, s) {
|
|
1452
1453
|
const i = e.filter(Hi), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
|
|
1453
1454
|
return i[r];
|
|
@@ -1461,7 +1462,7 @@ function Qi({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDi
|
|
|
1461
1462
|
const Ln = (e, t, n, s = {}, i, r) => (a) => {
|
|
1462
1463
|
const o = $n(s, e) || {}, u = o.delay || s.delay || 0;
|
|
1463
1464
|
let { elapsed: c = 0 } = s;
|
|
1464
|
-
c = c - /* @__PURE__ */
|
|
1465
|
+
c = c - /* @__PURE__ */ O(u);
|
|
1465
1466
|
const l = {
|
|
1466
1467
|
keyframes: Array.isArray(n) ? n : [null, n],
|
|
1467
1468
|
ease: "easeOut",
|
|
@@ -1478,9 +1479,9 @@ const Ln = (e, t, n, s = {}, i, r) => (a) => {
|
|
|
1478
1479
|
motionValue: t,
|
|
1479
1480
|
element: r ? void 0 : i
|
|
1480
1481
|
};
|
|
1481
|
-
Qi(o) || Object.assign(l, Zi(e, l)), l.duration && (l.duration = /* @__PURE__ */
|
|
1482
|
+
Qi(o) || Object.assign(l, Zi(e, l)), l.duration && (l.duration = /* @__PURE__ */ O(l.duration)), l.repeatDelay && (l.repeatDelay = /* @__PURE__ */ O(l.repeatDelay)), l.from !== void 0 && (l.keyframes[0] = l.from);
|
|
1482
1483
|
let f = !1;
|
|
1483
|
-
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) {
|
|
1484
|
+
if ((l.type === !1 || l.duration === 0 && !l.repeatDelay) && (Ye(l), l.delay === 0 && (f = !0)), (N.instantAnimations || N.skipAnimations || i?.shouldSkipAnimations) && (f = !0, Ye(l), l.delay = 0), l.allowFlatten = !o.type && !o.ease, f && !r && t.get() !== void 0) {
|
|
1484
1485
|
const h = Ji(l.keyframes, o);
|
|
1485
1486
|
if (h !== void 0) {
|
|
1486
1487
|
K.update(() => {
|
|
@@ -1519,7 +1520,7 @@ const _n = /* @__PURE__ */ new Set([
|
|
|
1519
1520
|
"left",
|
|
1520
1521
|
"right",
|
|
1521
1522
|
"bottom",
|
|
1522
|
-
...
|
|
1523
|
+
...ee
|
|
1523
1524
|
]), Wt = 30, tr = (e) => !isNaN(parseFloat(e));
|
|
1524
1525
|
class nr {
|
|
1525
1526
|
/**
|
|
@@ -1720,12 +1721,12 @@ class nr {
|
|
|
1720
1721
|
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1721
1722
|
}
|
|
1722
1723
|
}
|
|
1723
|
-
function
|
|
1724
|
+
function Z(e, t) {
|
|
1724
1725
|
return new nr(e, t);
|
|
1725
1726
|
}
|
|
1726
1727
|
const sr = (e) => Array.isArray(e);
|
|
1727
1728
|
function ir(e, t, n) {
|
|
1728
|
-
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t,
|
|
1729
|
+
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Z(n));
|
|
1729
1730
|
}
|
|
1730
1731
|
function rr(e) {
|
|
1731
1732
|
return sr(e) ? e[e.length - 1] || 0 : e;
|
|
@@ -1769,28 +1770,28 @@ function dr(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
|
1769
1770
|
s && (r = s);
|
|
1770
1771
|
const c = [], l = i && e.animationState && e.animationState.getState()[i];
|
|
1771
1772
|
for (const f in o) {
|
|
1772
|
-
const h = e.getValue(f, e.latestValues[f] ?? null),
|
|
1773
|
-
if (
|
|
1773
|
+
const h = e.getValue(f, e.latestValues[f] ?? null), p = o[f];
|
|
1774
|
+
if (p === void 0 || l && hr(l, f))
|
|
1774
1775
|
continue;
|
|
1775
|
-
const
|
|
1776
|
+
const m = {
|
|
1776
1777
|
delay: n,
|
|
1777
1778
|
...$n(r || {}, f)
|
|
1778
1779
|
}, y = h.get();
|
|
1779
|
-
if (y !== void 0 && !h.isAnimating && !Array.isArray(
|
|
1780
|
+
if (y !== void 0 && !h.isAnimating && !Array.isArray(p) && p === y && !m.velocity)
|
|
1780
1781
|
continue;
|
|
1781
1782
|
let v = !1;
|
|
1782
1783
|
if (window.MotionHandoffAnimation) {
|
|
1783
1784
|
const V = fr(e);
|
|
1784
1785
|
if (V) {
|
|
1785
|
-
const
|
|
1786
|
-
|
|
1786
|
+
const A = window.MotionHandoffAnimation(V, f, K);
|
|
1787
|
+
A !== null && (m.startTime = A, v = !0);
|
|
1787
1788
|
}
|
|
1788
1789
|
}
|
|
1789
1790
|
lr(e, f);
|
|
1790
1791
|
const S = u ?? e.shouldReduceMotion;
|
|
1791
|
-
h.start(Ln(f, h,
|
|
1792
|
-
const
|
|
1793
|
-
|
|
1792
|
+
h.start(Ln(f, h, p, S && _n.has(f) ? { type: !1 } : m, e, v));
|
|
1793
|
+
const M = h.animation;
|
|
1794
|
+
M && c.push(M);
|
|
1794
1795
|
}
|
|
1795
1796
|
return a && Promise.all(c).then(() => {
|
|
1796
1797
|
K.update(() => {
|
|
@@ -1801,7 +1802,7 @@ function dr(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
|
1801
1802
|
const pr = {
|
|
1802
1803
|
test: (e) => e === "auto",
|
|
1803
1804
|
parse: (e) => e
|
|
1804
|
-
}, Un = (e) => (t) => t.test(e), jn = [
|
|
1805
|
+
}, Un = (e) => (t) => t.test(e), jn = [J, d, q, L, Ns, Is, pr], _t = (e) => jn.find(Un(e));
|
|
1805
1806
|
function mr(e) {
|
|
1806
1807
|
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || tn(e) : !0;
|
|
1807
1808
|
}
|
|
@@ -1824,7 +1825,7 @@ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
|
|
|
1824
1825
|
return t ? t.map(yr).join(" ") : e;
|
|
1825
1826
|
}
|
|
1826
1827
|
}, Ut = {
|
|
1827
|
-
...
|
|
1828
|
+
...J,
|
|
1828
1829
|
transform: Math.round
|
|
1829
1830
|
}, Tr = {
|
|
1830
1831
|
rotate: L,
|
|
@@ -1847,7 +1848,7 @@ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
|
|
|
1847
1848
|
z: d,
|
|
1848
1849
|
perspective: d,
|
|
1849
1850
|
transformPerspective: d,
|
|
1850
|
-
opacity:
|
|
1851
|
+
opacity: ue,
|
|
1851
1852
|
originX: Dt,
|
|
1852
1853
|
originY: Dt,
|
|
1853
1854
|
originZ: d
|
|
@@ -1910,8 +1911,8 @@ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
|
|
|
1910
1911
|
...Tr,
|
|
1911
1912
|
zIndex: Ut,
|
|
1912
1913
|
// SVG
|
|
1913
|
-
fillOpacity:
|
|
1914
|
-
strokeOpacity:
|
|
1914
|
+
fillOpacity: ue,
|
|
1915
|
+
strokeOpacity: ue,
|
|
1915
1916
|
numOctaves: Ut
|
|
1916
1917
|
}, vr = {
|
|
1917
1918
|
...ht,
|
|
@@ -1939,13 +1940,13 @@ function Vr(e, t, n) {
|
|
|
1939
1940
|
let s = 0, i;
|
|
1940
1941
|
for (; s < e.length && !i; ) {
|
|
1941
1942
|
const r = e[s];
|
|
1942
|
-
typeof r == "string" && !Sr.has(r) &&
|
|
1943
|
+
typeof r == "string" && !Sr.has(r) && ce(r).values.length && (i = e[s]), s++;
|
|
1943
1944
|
}
|
|
1944
1945
|
if (i && n)
|
|
1945
1946
|
for (const r of t)
|
|
1946
1947
|
e[r] = Yn(n, i);
|
|
1947
1948
|
}
|
|
1948
|
-
class
|
|
1949
|
+
class Ar extends ut {
|
|
1949
1950
|
constructor(t, n, s, i, r) {
|
|
1950
1951
|
super(t, n, s, i, r, !0);
|
|
1951
1952
|
}
|
|
@@ -2002,7 +2003,7 @@ class xr extends ut {
|
|
|
2002
2003
|
}), this.resolveNoneKeyframes();
|
|
2003
2004
|
}
|
|
2004
2005
|
}
|
|
2005
|
-
function
|
|
2006
|
+
function xr(e, t, n) {
|
|
2006
2007
|
if (e == null)
|
|
2007
2008
|
return [];
|
|
2008
2009
|
if (e instanceof EventTarget)
|
|
@@ -2015,11 +2016,11 @@ function Mr(e, t, n) {
|
|
|
2015
2016
|
}
|
|
2016
2017
|
return Array.from(e).filter((s) => s != null);
|
|
2017
2018
|
}
|
|
2018
|
-
const zn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule:
|
|
2019
|
+
const zn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: Mr } = /* @__PURE__ */ yn(queueMicrotask, !1);
|
|
2019
2020
|
function Xn(e) {
|
|
2020
2021
|
return ys(e) && "ownerSVGElement" in e;
|
|
2021
2022
|
}
|
|
2022
|
-
function
|
|
2023
|
+
function wr(e) {
|
|
2023
2024
|
return Xn(e) && e.tagName === "svg";
|
|
2024
2025
|
}
|
|
2025
2026
|
const Cr = [...jn, D, U], Dr = (e) => Cr.find(Un(e)), jt = () => ({ min: 0, max: 0 }), dt = () => ({
|
|
@@ -2041,7 +2042,7 @@ function Rr(e) {
|
|
|
2041
2042
|
function Pr(e) {
|
|
2042
2043
|
return typeof e == "string" || Array.isArray(e);
|
|
2043
2044
|
}
|
|
2044
|
-
const
|
|
2045
|
+
const kr = [
|
|
2045
2046
|
"animate",
|
|
2046
2047
|
"whileInView",
|
|
2047
2048
|
"whileFocus",
|
|
@@ -2049,9 +2050,9 @@ const Or = [
|
|
|
2049
2050
|
"whileTap",
|
|
2050
2051
|
"whileDrag",
|
|
2051
2052
|
"exit"
|
|
2052
|
-
],
|
|
2053
|
+
], Or = ["initial", ...kr];
|
|
2053
2054
|
function Zn(e) {
|
|
2054
|
-
return Rr(e.animate) ||
|
|
2055
|
+
return Rr(e.animate) || Or.some((t) => Pr(e[t]));
|
|
2055
2056
|
}
|
|
2056
2057
|
function Br(e) {
|
|
2057
2058
|
return !!(Zn(e) || e.variants);
|
|
@@ -2062,14 +2063,14 @@ function Ir(e, t, n) {
|
|
|
2062
2063
|
if (E(i))
|
|
2063
2064
|
e.addValue(s, i);
|
|
2064
2065
|
else if (E(r))
|
|
2065
|
-
e.addValue(s,
|
|
2066
|
+
e.addValue(s, Z(i, { owner: e }));
|
|
2066
2067
|
else if (r !== i)
|
|
2067
2068
|
if (e.hasValue(s)) {
|
|
2068
2069
|
const a = e.getValue(s);
|
|
2069
2070
|
a.liveStyle === !0 ? a.jump(i) : a.hasAnimated || a.set(i);
|
|
2070
2071
|
} else {
|
|
2071
2072
|
const a = e.getStaticValue(s);
|
|
2072
|
-
e.addValue(s,
|
|
2073
|
+
e.addValue(s, Z(a !== void 0 ? a : i, { owner: e }));
|
|
2073
2074
|
}
|
|
2074
2075
|
}
|
|
2075
2076
|
for (const s in n)
|
|
@@ -2097,26 +2098,26 @@ class Hn {
|
|
|
2097
2098
|
scrapeMotionValuesFromProps(t, n, s) {
|
|
2098
2099
|
return {};
|
|
2099
2100
|
}
|
|
2100
|
-
constructor({ parent: t, props: n, presenceContext: s, reducedMotionConfig: i,
|
|
2101
|
-
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 = () => {
|
|
2101
|
+
constructor({ parent: t, props: n, presenceContext: s, reducedMotionConfig: i, skipAnimations: r, blockInitialAnimation: a, visualState: o }, u = {}) {
|
|
2102
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = ut, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
2102
2103
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2103
2104
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2104
|
-
const
|
|
2105
|
-
this.renderScheduledAt <
|
|
2105
|
+
const p = R.now();
|
|
2106
|
+
this.renderScheduledAt < p && (this.renderScheduledAt = p, K.render(this.render, !1, !0));
|
|
2106
2107
|
};
|
|
2107
|
-
const { latestValues:
|
|
2108
|
-
this.latestValues =
|
|
2109
|
-
const { willChange:
|
|
2110
|
-
for (const
|
|
2111
|
-
const m =
|
|
2112
|
-
|
|
2108
|
+
const { latestValues: c, renderState: l } = o;
|
|
2109
|
+
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = l, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.skipAnimationsConfig = r, this.options = u, this.blockInitialAnimation = !!a, this.isControllingVariants = Zn(n), this.isVariantNode = Br(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
2110
|
+
const { willChange: f, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
2111
|
+
for (const p in h) {
|
|
2112
|
+
const m = h[p];
|
|
2113
|
+
c[p] !== void 0 && E(m) && m.set(c[p]);
|
|
2113
2114
|
}
|
|
2114
2115
|
}
|
|
2115
2116
|
mount(t) {
|
|
2116
|
-
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);
|
|
2117
|
+
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.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext);
|
|
2117
2118
|
}
|
|
2118
2119
|
unmount() {
|
|
2119
|
-
this.projection && this.projection.unmount(),
|
|
2120
|
+
this.projection && this.projection.unmount(), Oe(this.notifyUpdate), Oe(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
2120
2121
|
for (const t in this.events)
|
|
2121
2122
|
this.events[t].clear();
|
|
2122
2123
|
for (const t in this.features) {
|
|
@@ -2133,7 +2134,7 @@ class Hn {
|
|
|
2133
2134
|
}
|
|
2134
2135
|
bindToMotionValue(t, n) {
|
|
2135
2136
|
this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)();
|
|
2136
|
-
const s =
|
|
2137
|
+
const s = te.has(t);
|
|
2137
2138
|
s && this.onBindTransform && this.onBindTransform();
|
|
2138
2139
|
const i = n.on("change", (a) => {
|
|
2139
2140
|
this.latestValues[t] = a, this.props.onUpdate && K.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
@@ -2244,7 +2245,7 @@ class Hn {
|
|
|
2244
2245
|
if (this.props.values && this.props.values[t])
|
|
2245
2246
|
return this.props.values[t];
|
|
2246
2247
|
let s = this.values.get(t);
|
|
2247
|
-
return s === void 0 && n !== void 0 && (s =
|
|
2248
|
+
return s === void 0 && n !== void 0 && (s = Z(n === null ? void 0 : n, { owner: this }), this.addValue(t, s)), s;
|
|
2248
2249
|
}
|
|
2249
2250
|
/**
|
|
2250
2251
|
* If we're trying to animate to a previously unencountered value,
|
|
@@ -2285,12 +2286,12 @@ class Hn {
|
|
|
2285
2286
|
this.events[t] && this.events[t].notify(...n);
|
|
2286
2287
|
}
|
|
2287
2288
|
scheduleRenderMicrotask() {
|
|
2288
|
-
|
|
2289
|
+
Mr.render(this.render);
|
|
2289
2290
|
}
|
|
2290
2291
|
}
|
|
2291
2292
|
class Jn extends Hn {
|
|
2292
2293
|
constructor() {
|
|
2293
|
-
super(...arguments), this.KeyframeResolver =
|
|
2294
|
+
super(...arguments), this.KeyframeResolver = Ar;
|
|
2294
2295
|
}
|
|
2295
2296
|
sortInstanceNodePosition(t, n) {
|
|
2296
2297
|
return t.compareDocumentPosition(n) & 2 ? 1 : -1;
|
|
@@ -2335,11 +2336,11 @@ const Lr = {
|
|
|
2335
2336
|
y: "translateY",
|
|
2336
2337
|
z: "translateZ",
|
|
2337
2338
|
transformPerspective: "perspective"
|
|
2338
|
-
}, Wr =
|
|
2339
|
+
}, Wr = ee.length;
|
|
2339
2340
|
function _r(e, t, n) {
|
|
2340
2341
|
let s = "", i = !0;
|
|
2341
2342
|
for (let r = 0; r < Wr; r++) {
|
|
2342
|
-
const a =
|
|
2343
|
+
const a = ee[r], o = e[a];
|
|
2343
2344
|
if (o === void 0)
|
|
2344
2345
|
continue;
|
|
2345
2346
|
let u = !0;
|
|
@@ -2366,7 +2367,7 @@ function Qn(e, t, n) {
|
|
|
2366
2367
|
let a = !1, o = !1;
|
|
2367
2368
|
for (const u in t) {
|
|
2368
2369
|
const c = t[u];
|
|
2369
|
-
if (
|
|
2370
|
+
if (te.has(u)) {
|
|
2370
2371
|
a = !0;
|
|
2371
2372
|
continue;
|
|
2372
2373
|
} else if (Tn(u)) {
|
|
@@ -2394,7 +2395,7 @@ function es(e, { style: t, vars: n }, s, i) {
|
|
|
2394
2395
|
function zt(e, t) {
|
|
2395
2396
|
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
|
|
2396
2397
|
}
|
|
2397
|
-
const
|
|
2398
|
+
const ae = {
|
|
2398
2399
|
correct: (e, t) => {
|
|
2399
2400
|
if (!t.target)
|
|
2400
2401
|
return e;
|
|
@@ -2413,12 +2414,12 @@ const re = {
|
|
|
2413
2414
|
return s;
|
|
2414
2415
|
const r = U.createTransformer(e), a = typeof i[0] != "number" ? 1 : 0, o = n.x.scale * t.x, u = n.y.scale * t.y;
|
|
2415
2416
|
i[0 + a] /= o, i[1 + a] /= u;
|
|
2416
|
-
const c =
|
|
2417
|
+
const c = Q(o, u, 0.5);
|
|
2417
2418
|
return typeof i[2 + a] == "number" && (i[2 + a] /= c), typeof i[3 + a] == "number" && (i[3 + a] /= c), r(i);
|
|
2418
2419
|
}
|
|
2419
2420
|
}, jr = {
|
|
2420
2421
|
borderRadius: {
|
|
2421
|
-
...
|
|
2422
|
+
...ae,
|
|
2422
2423
|
applyTo: [
|
|
2423
2424
|
"borderTopLeftRadius",
|
|
2424
2425
|
"borderTopRightRadius",
|
|
@@ -2426,14 +2427,14 @@ const re = {
|
|
|
2426
2427
|
"borderBottomRightRadius"
|
|
2427
2428
|
]
|
|
2428
2429
|
},
|
|
2429
|
-
borderTopLeftRadius:
|
|
2430
|
-
borderTopRightRadius:
|
|
2431
|
-
borderBottomLeftRadius:
|
|
2432
|
-
borderBottomRightRadius:
|
|
2430
|
+
borderTopLeftRadius: ae,
|
|
2431
|
+
borderTopRightRadius: ae,
|
|
2432
|
+
borderBottomLeftRadius: ae,
|
|
2433
|
+
borderBottomRightRadius: ae,
|
|
2433
2434
|
boxShadow: Ur
|
|
2434
2435
|
};
|
|
2435
2436
|
function Gr(e, { layout: t, layoutId: n }) {
|
|
2436
|
-
return
|
|
2437
|
+
return te.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!jr[e] || e === "opacity");
|
|
2437
2438
|
}
|
|
2438
2439
|
function ts(e, t, n) {
|
|
2439
2440
|
const s = e.style, i = t?.style, r = {};
|
|
@@ -2451,7 +2452,7 @@ class zr extends Jn {
|
|
|
2451
2452
|
super(...arguments), this.type = "html", this.renderInstance = es;
|
|
2452
2453
|
}
|
|
2453
2454
|
readValueFromInstance(t, n) {
|
|
2454
|
-
if (
|
|
2455
|
+
if (te.has(n))
|
|
2455
2456
|
return this.projection?.isProjecting ? We(n) : yi(t, n);
|
|
2456
2457
|
{
|
|
2457
2458
|
const s = Yr(t), i = (Tn(n) ? s.getPropertyValue(n) : s[n]) || 0;
|
|
@@ -2535,8 +2536,8 @@ function ea(e, {
|
|
|
2535
2536
|
e.attrs = e.style, e.style = {};
|
|
2536
2537
|
const { attrs: f, style: h } = e;
|
|
2537
2538
|
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);
|
|
2538
|
-
for (const
|
|
2539
|
-
f[
|
|
2539
|
+
for (const p of Qr)
|
|
2540
|
+
f[p] !== void 0 && (h[p] = f[p], delete f[p]);
|
|
2540
2541
|
t !== void 0 && (f.x = t), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && Jr(f, i, r, a, !1);
|
|
2541
2542
|
}
|
|
2542
2543
|
const ns = /* @__PURE__ */ new Set([
|
|
@@ -2573,7 +2574,7 @@ function sa(e, t, n) {
|
|
|
2573
2574
|
const s = ts(e, t, n);
|
|
2574
2575
|
for (const i in e)
|
|
2575
2576
|
if (E(e[i]) || E(t[i])) {
|
|
2576
|
-
const r =
|
|
2577
|
+
const r = ee.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
|
|
2577
2578
|
s[r] = e[i];
|
|
2578
2579
|
}
|
|
2579
2580
|
return s;
|
|
@@ -2586,7 +2587,7 @@ class ia extends Jn {
|
|
|
2586
2587
|
return t[n];
|
|
2587
2588
|
}
|
|
2588
2589
|
readValueFromInstance(t, n) {
|
|
2589
|
-
if (
|
|
2590
|
+
if (te.has(n)) {
|
|
2590
2591
|
const s = Gn(n);
|
|
2591
2592
|
return s && s.default || 0;
|
|
2592
2593
|
}
|
|
@@ -2606,14 +2607,14 @@ class ia extends Jn {
|
|
|
2606
2607
|
}
|
|
2607
2608
|
}
|
|
2608
2609
|
function ra(e, t, n) {
|
|
2609
|
-
const s = E(e) ? e :
|
|
2610
|
+
const s = E(e) ? e : Z(e);
|
|
2610
2611
|
return s.start(Ln("", s, t, n)), s.animation;
|
|
2611
2612
|
}
|
|
2612
2613
|
function pt(e) {
|
|
2613
2614
|
return typeof e == "object" && !Array.isArray(e);
|
|
2614
2615
|
}
|
|
2615
2616
|
function ss(e, t, n, s) {
|
|
2616
|
-
return e == null ? [] : typeof e == "string" && pt(t) ?
|
|
2617
|
+
return e == null ? [] : typeof e == "string" && pt(t) ? xr(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((i) => i != null) : [e];
|
|
2617
2618
|
}
|
|
2618
2619
|
function aa(e, t, n) {
|
|
2619
2620
|
return e * (t + 1);
|
|
@@ -2632,7 +2633,7 @@ function la(e, t, n, s, i, r) {
|
|
|
2632
2633
|
for (let a = 0; a < t.length; a++)
|
|
2633
2634
|
e.push({
|
|
2634
2635
|
value: t[a],
|
|
2635
|
-
at:
|
|
2636
|
+
at: Q(i, r, s[a]),
|
|
2636
2637
|
easing: mn(n, a)
|
|
2637
2638
|
});
|
|
2638
2639
|
}
|
|
@@ -2647,90 +2648,90 @@ const fa = "easeInOut", ha = 20;
|
|
|
2647
2648
|
function da(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
|
|
2648
2649
|
const r = t.duration || 0.3, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), u = {}, c = /* @__PURE__ */ new Map();
|
|
2649
2650
|
let l = 0, f = 0, h = 0;
|
|
2650
|
-
for (let
|
|
2651
|
-
const
|
|
2652
|
-
if (typeof
|
|
2653
|
-
c.set(
|
|
2651
|
+
for (let p = 0; p < e.length; p++) {
|
|
2652
|
+
const m = e[p];
|
|
2653
|
+
if (typeof m == "string") {
|
|
2654
|
+
c.set(m, f);
|
|
2654
2655
|
continue;
|
|
2655
|
-
} else if (!Array.isArray(
|
|
2656
|
-
c.set(
|
|
2656
|
+
} else if (!Array.isArray(m)) {
|
|
2657
|
+
c.set(m.name, Xt(f, m.at, l, c));
|
|
2657
2658
|
continue;
|
|
2658
2659
|
}
|
|
2659
|
-
let [y, v, S = {}] =
|
|
2660
|
+
let [y, v, S = {}] = m;
|
|
2660
2661
|
S.at !== void 0 && (f = Xt(f, S.at, l, c));
|
|
2661
|
-
let
|
|
2662
|
-
const V = (
|
|
2663
|
-
const
|
|
2664
|
-
let { ease: $ = t.ease || "easeOut", duration: B } =
|
|
2665
|
-
const mt = typeof F == "function" ? F(
|
|
2662
|
+
let M = 0;
|
|
2663
|
+
const V = (A, g, b, w = 0, T = 0) => {
|
|
2664
|
+
const x = pa(A), { delay: F = 0, times: k = Rn(x), type: xe = t.type || "keyframes", repeat: ne, repeatType: Ca, repeatDelay: Da = 0, ...rs } = g;
|
|
2665
|
+
let { ease: $ = t.ease || "easeOut", duration: B } = g;
|
|
2666
|
+
const mt = typeof F == "function" ? F(w, T) : F, gt = x.length, yt = ct(xe) ? xe : i?.[xe || "keyframes"];
|
|
2666
2667
|
if (gt <= 2 && yt) {
|
|
2667
|
-
let
|
|
2668
|
-
if (gt === 2 && ya(
|
|
2669
|
-
const
|
|
2670
|
-
|
|
2668
|
+
let se = 100;
|
|
2669
|
+
if (gt === 2 && ya(x)) {
|
|
2670
|
+
const ie = x[1] - x[0];
|
|
2671
|
+
se = Math.abs(ie);
|
|
2671
2672
|
}
|
|
2672
2673
|
const ge = {
|
|
2673
2674
|
...t,
|
|
2674
2675
|
...rs
|
|
2675
2676
|
};
|
|
2676
|
-
B !== void 0 && (ge.duration = /* @__PURE__ */
|
|
2677
|
-
const ye = Dn(ge,
|
|
2677
|
+
B !== void 0 && (ge.duration = /* @__PURE__ */ O(B));
|
|
2678
|
+
const ye = Dn(ge, se, yt);
|
|
2678
2679
|
$ = ye.ease, B = ye.duration;
|
|
2679
2680
|
}
|
|
2680
2681
|
B ?? (B = r);
|
|
2681
2682
|
const bt = f + mt;
|
|
2682
|
-
|
|
2683
|
-
const Tt =
|
|
2684
|
-
if (Tt > 0 && En(
|
|
2685
|
-
I(
|
|
2686
|
-
const
|
|
2683
|
+
k.length === 1 && k[0] === 0 && (k[1] = 1);
|
|
2684
|
+
const Tt = k.length - x.length;
|
|
2685
|
+
if (Tt > 0 && En(k, Tt), x.length === 1 && x.unshift(null), ne) {
|
|
2686
|
+
I(ne < ha, "Repeat count too high, must be less than 20", "repeat-count-high"), B = aa(B, ne);
|
|
2687
|
+
const se = [...x], ge = [...k];
|
|
2687
2688
|
$ = Array.isArray($) ? [...$] : [$];
|
|
2688
2689
|
const ye = [...$];
|
|
2689
|
-
for (let
|
|
2690
|
-
|
|
2691
|
-
for (let
|
|
2692
|
-
|
|
2690
|
+
for (let ie = 0; ie < ne; ie++) {
|
|
2691
|
+
x.push(...se);
|
|
2692
|
+
for (let re = 0; re < se.length; re++)
|
|
2693
|
+
k.push(ge[re] + (ie + 1)), $.push(re === 0 ? "linear" : mn(ye, re - 1));
|
|
2693
2694
|
}
|
|
2694
|
-
ua(
|
|
2695
|
+
ua(k, ne);
|
|
2695
2696
|
}
|
|
2696
2697
|
const vt = bt + B;
|
|
2697
|
-
la(b,
|
|
2698
|
+
la(b, x, $, k, bt, vt), M = Math.max(mt + B, M), h = Math.max(vt, h);
|
|
2698
2699
|
};
|
|
2699
2700
|
if (E(y)) {
|
|
2700
|
-
const
|
|
2701
|
-
V(v, S, Zt("default",
|
|
2701
|
+
const A = qt(y, o);
|
|
2702
|
+
V(v, S, Zt("default", A));
|
|
2702
2703
|
} else {
|
|
2703
|
-
const
|
|
2704
|
-
for (let b = 0; b <
|
|
2704
|
+
const A = ss(y, v, s, u), g = A.length;
|
|
2705
|
+
for (let b = 0; b < g; b++) {
|
|
2705
2706
|
v = v, S = S;
|
|
2706
|
-
const
|
|
2707
|
-
for (const
|
|
2708
|
-
V(v[
|
|
2707
|
+
const w = A[b], T = qt(w, o);
|
|
2708
|
+
for (const x in v)
|
|
2709
|
+
V(v[x], ma(S, x), Zt(x, T), b, g);
|
|
2709
2710
|
}
|
|
2710
2711
|
}
|
|
2711
|
-
l = f, f +=
|
|
2712
|
+
l = f, f += M;
|
|
2712
2713
|
}
|
|
2713
|
-
return o.forEach((
|
|
2714
|
-
for (const y in
|
|
2715
|
-
const v =
|
|
2714
|
+
return o.forEach((p, m) => {
|
|
2715
|
+
for (const y in p) {
|
|
2716
|
+
const v = p[y];
|
|
2716
2717
|
v.sort(ca);
|
|
2717
|
-
const S = [],
|
|
2718
|
-
for (let
|
|
2719
|
-
const { at: T, value:
|
|
2720
|
-
S.push(
|
|
2718
|
+
const S = [], M = [], V = [];
|
|
2719
|
+
for (let w = 0; w < v.length; w++) {
|
|
2720
|
+
const { at: T, value: x, easing: F } = v[w];
|
|
2721
|
+
S.push(x), M.push(/* @__PURE__ */ Je(0, h, T)), V.push(F || "easeOut");
|
|
2721
2722
|
}
|
|
2722
|
-
|
|
2723
|
+
M[0] !== 0 && (M.unshift(0), S.unshift(S[0]), V.unshift(fa)), M[M.length - 1] !== 1 && (M.push(1), S.push(null)), a.has(m) || a.set(m, {
|
|
2723
2724
|
keyframes: {},
|
|
2724
2725
|
transition: {}
|
|
2725
2726
|
});
|
|
2726
|
-
const
|
|
2727
|
-
|
|
2728
|
-
const { type:
|
|
2729
|
-
|
|
2727
|
+
const A = a.get(m);
|
|
2728
|
+
A.keyframes[y] = S;
|
|
2729
|
+
const { type: g, ...b } = t;
|
|
2730
|
+
A.transition[y] = {
|
|
2730
2731
|
...b,
|
|
2731
2732
|
duration: h,
|
|
2732
2733
|
ease: V,
|
|
2733
|
-
times:
|
|
2734
|
+
times: M,
|
|
2734
2735
|
...n
|
|
2735
2736
|
};
|
|
2736
2737
|
}
|
|
@@ -2766,7 +2767,7 @@ function ba(e) {
|
|
|
2766
2767
|
},
|
|
2767
2768
|
latestValues: {}
|
|
2768
2769
|
}
|
|
2769
|
-
}, n = Xn(e) && !
|
|
2770
|
+
}, n = Xn(e) && !wr(e) ? new ia(t) : new zr(t);
|
|
2770
2771
|
n.mount(e), he.set(e, n);
|
|
2771
2772
|
}
|
|
2772
2773
|
function Ta(e) {
|
|
@@ -2804,15 +2805,21 @@ function is(e, t, n, s) {
|
|
|
2804
2805
|
return i;
|
|
2805
2806
|
}
|
|
2806
2807
|
function Sa(e, t, n) {
|
|
2807
|
-
const s = []
|
|
2808
|
-
|
|
2809
|
-
|
|
2808
|
+
const s = [], i = e.map((a) => {
|
|
2809
|
+
if (Array.isArray(a) && typeof a[0] == "function") {
|
|
2810
|
+
const o = a[0], u = Z(0);
|
|
2811
|
+
return u.on("change", o), a.length === 1 ? [u, [0, 1]] : a.length === 2 ? [u, [0, 1], a[1]] : [u, a[1], a[2]];
|
|
2812
|
+
}
|
|
2813
|
+
return a;
|
|
2814
|
+
});
|
|
2815
|
+
return da(i, t, n, { spring: fe }).forEach(({ keyframes: a, transition: o }, u) => {
|
|
2816
|
+
s.push(...is(u, a, o));
|
|
2810
2817
|
}), s;
|
|
2811
2818
|
}
|
|
2812
2819
|
function Va(e) {
|
|
2813
2820
|
return Array.isArray(e) && e.some(Array.isArray);
|
|
2814
2821
|
}
|
|
2815
|
-
function
|
|
2822
|
+
function Aa(e = {}) {
|
|
2816
2823
|
const { scope: t, reduceMotion: n } = e;
|
|
2817
2824
|
function s(i, r, a) {
|
|
2818
2825
|
let o = [], u;
|
|
@@ -2829,13 +2836,13 @@ function xa(e = {}) {
|
|
|
2829
2836
|
}
|
|
2830
2837
|
return s;
|
|
2831
2838
|
}
|
|
2832
|
-
const
|
|
2833
|
-
function
|
|
2834
|
-
const [n, s] =
|
|
2839
|
+
const xa = Aa(), Pe = "";
|
|
2840
|
+
function Ma(e, t = !0) {
|
|
2841
|
+
const [n, s] = Me(0), [i, r] = Me(0), [a, o] = Me(e);
|
|
2835
2842
|
return a !== e && (o(e), r(e.startsWith(a) ? n : 0)), Qt(() => {
|
|
2836
2843
|
if (!t)
|
|
2837
2844
|
return;
|
|
2838
|
-
const u =
|
|
2845
|
+
const u = xa(
|
|
2839
2846
|
// The starting value for the animation (current cursor position).
|
|
2840
2847
|
i,
|
|
2841
2848
|
// The target value: total number of characters.
|
|
@@ -2860,7 +2867,7 @@ function wa(e, t = !0) {
|
|
|
2860
2867
|
const Ht = {
|
|
2861
2868
|
MODEL: "Model",
|
|
2862
2869
|
USAGE: "Session usage"
|
|
2863
|
-
},
|
|
2870
|
+
}, wa = Jt("max-w-[99cqw]", "mt-3"), Na = fs.memo(
|
|
2864
2871
|
({
|
|
2865
2872
|
content: e,
|
|
2866
2873
|
annotations: t,
|
|
@@ -2869,7 +2876,7 @@ const Ht = {
|
|
|
2869
2876
|
messageIndex: i,
|
|
2870
2877
|
messages: r
|
|
2871
2878
|
}) => {
|
|
2872
|
-
const a =
|
|
2879
|
+
const a = Ma(e, n), {
|
|
2873
2880
|
state: {
|
|
2874
2881
|
streaming: o,
|
|
2875
2882
|
restoredModel: u,
|
|
@@ -2877,33 +2884,33 @@ const Ht = {
|
|
|
2877
2884
|
tokenUsage: l,
|
|
2878
2885
|
lastStreamingTimestamp: f
|
|
2879
2886
|
}
|
|
2880
|
-
} =
|
|
2887
|
+
} = At(ds), {
|
|
2881
2888
|
state: { fullScreen: h }
|
|
2882
|
-
} =
|
|
2889
|
+
} = At(ps), p = t?.model || u, m = l, [y, v] = hs(), { user: S, getAccessToken: M } = as(), { data: V } = os({
|
|
2883
2890
|
user: S?.username,
|
|
2884
|
-
getAccessToken:
|
|
2885
|
-
}),
|
|
2891
|
+
getAccessToken: M
|
|
2892
|
+
}), A = V?.showDetails || !1, g = Jt({
|
|
2886
2893
|
"max-w-xs sm:max-w-3xl": !h
|
|
2887
2894
|
}), b = [];
|
|
2888
|
-
if (
|
|
2889
|
-
if (
|
|
2895
|
+
if (A) {
|
|
2896
|
+
if (p && (s ? b.push({
|
|
2890
2897
|
key: Ht.MODEL,
|
|
2891
|
-
value:
|
|
2892
|
-
}) : b.push(
|
|
2898
|
+
value: p
|
|
2899
|
+
}) : b.push(we)), m)
|
|
2893
2900
|
if (s) {
|
|
2894
|
-
const
|
|
2901
|
+
const w = m === -1 ? "N/A" : `${ls.format(m)} ${us(
|
|
2895
2902
|
"token",
|
|
2896
|
-
|
|
2903
|
+
m
|
|
2897
2904
|
)}`;
|
|
2898
2905
|
b.push({
|
|
2899
2906
|
key: Ht.USAGE,
|
|
2900
|
-
value:
|
|
2907
|
+
value: w
|
|
2901
2908
|
});
|
|
2902
2909
|
} else
|
|
2903
|
-
b.push(
|
|
2910
|
+
b.push(we);
|
|
2904
2911
|
(f || c) && (s ? b.push({
|
|
2905
2912
|
value: f ? Vt(f) : Vt(c || "")
|
|
2906
|
-
}) : b.push(
|
|
2913
|
+
}) : b.push(we));
|
|
2907
2914
|
}
|
|
2908
2915
|
return Qt(() => {
|
|
2909
2916
|
a && v(a);
|
|
@@ -2912,9 +2919,9 @@ const Ht = {
|
|
|
2912
2919
|
{
|
|
2913
2920
|
tail: !0,
|
|
2914
2921
|
footer: b,
|
|
2915
|
-
className:
|
|
2922
|
+
className: wa,
|
|
2916
2923
|
footerClassName: "text-copy-medium",
|
|
2917
|
-
contentClassName:
|
|
2924
|
+
contentClassName: g,
|
|
2918
2925
|
noMaxWidth: !0,
|
|
2919
2926
|
action: /* @__PURE__ */ St(
|
|
2920
2927
|
ms,
|