@konstructio/ui 0.1.2-alpha.70 → 0.1.2-alpha.72
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/{Modal-BGcucTHv.js → Modal-CXRo8f-h.js} +1 -1
- package/dist/assets/icons/components/CheckCircleFilled.d.ts +3 -0
- package/dist/assets/icons/components/CheckCircleFilled.js +31 -0
- package/dist/assets/icons/components/CheckCircleOutline.d.ts +3 -0
- package/dist/assets/icons/components/{CheckCircle.js → CheckCircleOutline.js} +8 -8
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.d.ts +3 -0
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +26 -0
- package/dist/assets/icons/components/InfoCircle.d.ts +3 -0
- package/dist/assets/icons/components/InfoCircle.js +31 -0
- package/dist/assets/icons/components/WarningTriangle.d.ts +3 -0
- package/dist/assets/icons/components/WarningTriangle.js +28 -0
- package/dist/assets/icons/components/index.d.ts +5 -1
- package/dist/assets/icons/components/index.js +124 -116
- package/dist/assets/icons/index.js +124 -116
- package/dist/components/Alert/Alert.d.ts +5 -16
- package/dist/components/Alert/Alert.js +46 -32
- package/dist/components/Alert/Alert.types.d.ts +8 -8
- package/dist/components/Alert/Alert.variants.d.ts +11 -2
- package/dist/components/Alert/Alert.variants.js +77 -32
- package/dist/components/Badge/Badge.variants.d.ts +2 -2
- package/dist/components/Button/Button.variants.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +1 -1
- package/dist/components/Filter/Filter.d.ts +2 -2
- package/dist/components/Filter/Filter.js +20 -14
- package/dist/components/Filter/Filter.types.d.ts +3 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.d.ts +3 -0
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +122 -0
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +7 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +3 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +14 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +74 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +155 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.types.d.ts +13 -0
- package/dist/components/Filter/components/index.d.ts +4 -0
- package/dist/components/Filter/components/index.js +8 -4
- package/dist/components/LineChart/LineChart.d.ts +17 -0
- package/dist/components/LineChart/LineChart.js +154 -0
- package/dist/components/LineChart/LineChart.types.d.ts +54 -0
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PieChart/PieChart.js +51 -5095
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.variants.d.ts +1 -1
- package/dist/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/components/Toast/Toast.variants.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -9
- package/dist/components/Tooltip/Tooltip.js +35 -33
- package/dist/components/Tooltip/Tooltip.types.d.ts +22 -11
- package/dist/components/Typography/Typography.variants.d.ts +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +61 -59
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +93 -8
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +153 -71
- package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +7 -8
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.d.ts +12 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +9 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +198 -162
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +124 -118
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +124 -116
- package/dist/{index-DPcwqB8q.js → index-B7-5g1Sm.js} +169 -168
- package/dist/index-qDQP8rW4.js +7281 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +142 -135
- package/dist/package.json +8 -8
- package/dist/{proxy-CngVm5qA.js → proxy-0sbyKj-k.js} +732 -728
- package/dist/styles.css +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +16 -15
- package/package.json +8 -8
- package/dist/assets/icons/components/CheckCircle.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -6
- package/dist/components/Tooltip/Tooltip.variants.js +0 -86
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
- package/dist/components/Tooltip/hooks/useTooltip.js +0 -24
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createContext as vt, useRef as st, useLayoutEffect as
|
|
2
|
-
import { jsxs as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
1
|
+
import { createContext as vt, useRef as st, useLayoutEffect as Ir, useEffect as Xe, useContext as O, useId as Or, useCallback as Hi, useMemo as ne, createElement as jr, Fragment as Gi, useInsertionEffect as _i, forwardRef as Nr, Component as Ur } from "react";
|
|
2
|
+
import { jsxs as Wr, jsx as Xi } from "react/jsx-runtime";
|
|
3
|
+
const Yi = vt({});
|
|
4
|
+
function Kr(t) {
|
|
5
5
|
const e = st(null);
|
|
6
6
|
return e.current === null && (e.current = t()), e.current;
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const $r = typeof window < "u", zr = $r ? Ir : Xe, Ye = /* @__PURE__ */ vt(null);
|
|
9
9
|
function qe(t, e) {
|
|
10
10
|
t.indexOf(e) === -1 && t.push(e);
|
|
11
11
|
}
|
|
@@ -26,17 +26,17 @@ typeof process < "u" && process.env?.NODE_ENV !== "production" && (Tt = (t, e, n
|
|
|
26
26
|
if (!t)
|
|
27
27
|
throw new Error(be(e, n));
|
|
28
28
|
});
|
|
29
|
-
const q = {},
|
|
30
|
-
function
|
|
29
|
+
const q = {}, qi = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
|
|
30
|
+
function Zi(t) {
|
|
31
31
|
return typeof t == "object" && t !== null;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const Ji = (t) => /^0[^.\s]+$/u.test(t);
|
|
34
34
|
// @__NO_SIDE_EFFECTS__
|
|
35
|
-
function
|
|
35
|
+
function Qi(t) {
|
|
36
36
|
let e;
|
|
37
37
|
return () => (e === void 0 && (e = t()), e);
|
|
38
38
|
}
|
|
39
|
-
const W = /* @__NO_SIDE_EFFECTS__ */ (t) => t,
|
|
39
|
+
const W = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Hr = (t, e) => (n) => e(t(n)), Bt = (...t) => t.reduce(Hr), Ct = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
|
40
40
|
const i = e - t;
|
|
41
41
|
return i === 0 ? 1 : (n - t) / i;
|
|
42
42
|
};
|
|
@@ -66,45 +66,45 @@ class Ze {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
const K = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, U = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
|
|
69
|
-
function
|
|
69
|
+
function ts(t, e) {
|
|
70
70
|
return e ? t * (1e3 / e) : 0;
|
|
71
71
|
}
|
|
72
72
|
const Mn = /* @__PURE__ */ new Set();
|
|
73
73
|
function Je(t, e, n) {
|
|
74
74
|
t || Mn.has(e) || (console.warn(be(e, n)), Mn.add(e));
|
|
75
75
|
}
|
|
76
|
-
const
|
|
77
|
-
function
|
|
76
|
+
const es = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Gr = 1e-7, _r = 12;
|
|
77
|
+
function Xr(t, e, n, i, s) {
|
|
78
78
|
let o, r, a = 0;
|
|
79
79
|
do
|
|
80
|
-
r = e + (n - e) / 2, o =
|
|
81
|
-
while (Math.abs(o) >
|
|
80
|
+
r = e + (n - e) / 2, o = es(r, i, s) - t, o > 0 ? n = r : e = r;
|
|
81
|
+
while (Math.abs(o) > Gr && ++a < _r);
|
|
82
82
|
return r;
|
|
83
83
|
}
|
|
84
84
|
function Ft(t, e, n, i) {
|
|
85
85
|
if (t === e && n === i)
|
|
86
86
|
return W;
|
|
87
|
-
const s = (o) =>
|
|
88
|
-
return (o) => o === 0 || o === 1 ? o :
|
|
87
|
+
const s = (o) => Xr(o, 0, 1, t, n);
|
|
88
|
+
return (o) => o === 0 || o === 1 ? o : es(s(o), e, i);
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const ns = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, is = (t) => (e) => 1 - t(1 - e), ss = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), Qe = /* @__PURE__ */ is(ss), rs = /* @__PURE__ */ ns(Qe), os = (t) => (t *= 2) < 1 ? 0.5 * Qe(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), tn = (t) => 1 - Math.sin(Math.acos(t)), as = is(tn), ls = ns(tn), Yr = /* @__PURE__ */ Ft(0.42, 0, 1, 1), qr = /* @__PURE__ */ Ft(0, 0, 0.58, 1), cs = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), Zr = (t) => Array.isArray(t) && typeof t[0] != "number", us = (t) => Array.isArray(t) && typeof t[0] == "number", Cn = {
|
|
91
91
|
linear: W,
|
|
92
|
-
easeIn:
|
|
93
|
-
easeInOut:
|
|
94
|
-
easeOut:
|
|
92
|
+
easeIn: Yr,
|
|
93
|
+
easeInOut: cs,
|
|
94
|
+
easeOut: qr,
|
|
95
95
|
circIn: tn,
|
|
96
|
-
circInOut:
|
|
97
|
-
circOut:
|
|
96
|
+
circInOut: ls,
|
|
97
|
+
circOut: as,
|
|
98
98
|
backIn: Qe,
|
|
99
|
-
backInOut:
|
|
100
|
-
backOut:
|
|
101
|
-
anticipate:
|
|
102
|
-
},
|
|
103
|
-
if (
|
|
99
|
+
backInOut: rs,
|
|
100
|
+
backOut: ss,
|
|
101
|
+
anticipate: os
|
|
102
|
+
}, Jr = (t) => typeof t == "string", En = (t) => {
|
|
103
|
+
if (us(t)) {
|
|
104
104
|
Y(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
105
105
|
const [e, n, i, s] = t;
|
|
106
106
|
return Ft(e, n, i, s);
|
|
107
|
-
} else if (
|
|
107
|
+
} else if (Jr(t))
|
|
108
108
|
return Y(Cn[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Cn[t];
|
|
109
109
|
return t;
|
|
110
110
|
}, jt = [
|
|
@@ -125,7 +125,7 @@ const es = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ns
|
|
|
125
125
|
"postRender"
|
|
126
126
|
// Compute
|
|
127
127
|
];
|
|
128
|
-
function
|
|
128
|
+
function Qr(t, e) {
|
|
129
129
|
let n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), s = !1, o = !1;
|
|
130
130
|
const r = /* @__PURE__ */ new WeakSet();
|
|
131
131
|
let a = {
|
|
@@ -163,16 +163,16 @@ function Jr(t, e) {
|
|
|
163
163
|
};
|
|
164
164
|
return u;
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
function
|
|
166
|
+
const to = 40;
|
|
167
|
+
function hs(t, e) {
|
|
168
168
|
let n = !1, i = !0;
|
|
169
169
|
const s = {
|
|
170
170
|
delta: 0,
|
|
171
171
|
timestamp: 0,
|
|
172
172
|
isProcessing: !1
|
|
173
|
-
}, o = () => n = !0, r = jt.reduce((p, P) => (p[P] =
|
|
173
|
+
}, o = () => n = !0, r = jt.reduce((p, P) => (p[P] = Qr(o), p), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: h, preRender: f, render: d, postRender: m } = r, g = () => {
|
|
174
174
|
const p = q.useManualTiming ? s.timestamp : performance.now();
|
|
175
|
-
n = !1, q.useManualTiming || (s.delta = i ? 1e3 / 60 : Math.max(Math.min(p - s.timestamp,
|
|
175
|
+
n = !1, q.useManualTiming || (s.delta = i ? 1e3 / 60 : Math.max(Math.min(p - s.timestamp, to), 1)), s.timestamp = p, s.isProcessing = !0, a.process(s), l.process(s), u.process(s), c.process(s), h.process(s), f.process(s), d.process(s), m.process(s), s.isProcessing = !1, n && e && (i = !1, t(g));
|
|
176
176
|
}, x = () => {
|
|
177
177
|
n = !0, i = !0, s.isProcessing || t(g);
|
|
178
178
|
};
|
|
@@ -184,17 +184,17 @@ function us(t, e) {
|
|
|
184
184
|
r[jt[P]].cancel(p);
|
|
185
185
|
}, state: s, steps: r };
|
|
186
186
|
}
|
|
187
|
-
const { schedule: A, cancel: Q, state: L, steps: ae } = /* @__PURE__ */
|
|
187
|
+
const { schedule: A, cancel: Q, state: L, steps: ae } = /* @__PURE__ */ hs(typeof requestAnimationFrame < "u" ? requestAnimationFrame : W, !0);
|
|
188
188
|
let Wt;
|
|
189
|
-
function
|
|
189
|
+
function eo() {
|
|
190
190
|
Wt = void 0;
|
|
191
191
|
}
|
|
192
192
|
const F = {
|
|
193
193
|
now: () => (Wt === void 0 && F.set(L.isProcessing || q.useManualTiming ? L.timestamp : performance.now()), Wt),
|
|
194
194
|
set: (t) => {
|
|
195
|
-
Wt = t, queueMicrotask(
|
|
195
|
+
Wt = t, queueMicrotask(eo);
|
|
196
196
|
}
|
|
197
|
-
},
|
|
197
|
+
}, fs = (t) => (e) => typeof e == "string" && e.startsWith(t), ds = /* @__PURE__ */ fs("--"), no = /* @__PURE__ */ fs("var(--"), en = (t) => no(t) ? io.test(t.split("/*")[0].trim()) : !1, io = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
198
198
|
function Rn(t) {
|
|
199
199
|
return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
|
|
200
200
|
}
|
|
@@ -209,10 +209,10 @@ const xt = {
|
|
|
209
209
|
...xt,
|
|
210
210
|
default: 1
|
|
211
211
|
}, Vt = (t) => Math.round(t * 1e5) / 1e5, nn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
212
|
-
function
|
|
212
|
+
function so(t) {
|
|
213
213
|
return t == null;
|
|
214
214
|
}
|
|
215
|
-
const
|
|
215
|
+
const ro = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, sn = (t, e) => (n) => !!(typeof n == "string" && ro.test(n) && n.startsWith(t) || e && !so(n) && Object.prototype.hasOwnProperty.call(n, e)), ms = (t, e, n) => (i) => {
|
|
216
216
|
if (typeof i != "string")
|
|
217
217
|
return i;
|
|
218
218
|
const [s, o, r, a] = i.match(nn);
|
|
@@ -222,15 +222,15 @@ const so = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
222
222
|
[n]: parseFloat(r),
|
|
223
223
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
224
224
|
};
|
|
225
|
-
},
|
|
225
|
+
}, oo = (t) => X(0, 255, t), le = {
|
|
226
226
|
...xt,
|
|
227
|
-
transform: (t) => Math.round(
|
|
227
|
+
transform: (t) => Math.round(oo(t))
|
|
228
228
|
}, rt = {
|
|
229
229
|
test: /* @__PURE__ */ sn("rgb", "red"),
|
|
230
|
-
parse: /* @__PURE__ */
|
|
230
|
+
parse: /* @__PURE__ */ ms("red", "green", "blue"),
|
|
231
231
|
transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + le.transform(t) + ", " + le.transform(e) + ", " + le.transform(n) + ", " + Vt(Et.transform(i)) + ")"
|
|
232
232
|
};
|
|
233
|
-
function
|
|
233
|
+
function ao(t) {
|
|
234
234
|
let e = "", n = "", i = "", s = "";
|
|
235
235
|
return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), i = t.substring(5, 7), s = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), i = t.substring(3, 4), s = t.substring(4, 5), e += e, n += n, i += i, s += s), {
|
|
236
236
|
red: parseInt(e, 16),
|
|
@@ -241,19 +241,19 @@ function oo(t) {
|
|
|
241
241
|
}
|
|
242
242
|
const Ae = {
|
|
243
243
|
test: /* @__PURE__ */ sn("#"),
|
|
244
|
-
parse:
|
|
244
|
+
parse: ao,
|
|
245
245
|
transform: rt.transform
|
|
246
246
|
}, It = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
|
|
247
247
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
248
248
|
parse: parseFloat,
|
|
249
249
|
transform: (e) => `${e}${t}`
|
|
250
|
-
}), Z = /* @__PURE__ */ It("deg"), _ = /* @__PURE__ */ It("%"), y = /* @__PURE__ */ It("px"),
|
|
250
|
+
}), Z = /* @__PURE__ */ It("deg"), _ = /* @__PURE__ */ It("%"), y = /* @__PURE__ */ It("px"), lo = /* @__PURE__ */ It("vh"), co = /* @__PURE__ */ It("vw"), Ln = {
|
|
251
251
|
..._,
|
|
252
252
|
parse: (t) => _.parse(t) / 100,
|
|
253
253
|
transform: (t) => _.transform(t * 100)
|
|
254
254
|
}, ut = {
|
|
255
255
|
test: /* @__PURE__ */ sn("hsl", "hue"),
|
|
256
|
-
parse: /* @__PURE__ */
|
|
256
|
+
parse: /* @__PURE__ */ ms("hue", "saturation", "lightness"),
|
|
257
257
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + _.transform(Vt(e)) + ", " + _.transform(Vt(n)) + ", " + Vt(Et.transform(i)) + ")"
|
|
258
258
|
}, C = {
|
|
259
259
|
test: (t) => rt.test(t) || Ae.test(t) || ut.test(t),
|
|
@@ -263,11 +263,11 @@ const Ae = {
|
|
|
263
263
|
const e = C.parse(t);
|
|
264
264
|
return e.alpha = 0, C.transform(e);
|
|
265
265
|
}
|
|
266
|
-
},
|
|
267
|
-
function
|
|
268
|
-
return isNaN(t) && typeof t == "string" && (t.match(nn)?.length || 0) + (t.match(
|
|
266
|
+
}, uo = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
267
|
+
function ho(t) {
|
|
268
|
+
return isNaN(t) && typeof t == "string" && (t.match(nn)?.length || 0) + (t.match(uo)?.length || 0) > 0;
|
|
269
269
|
}
|
|
270
|
-
const
|
|
270
|
+
const ps = "number", gs = "color", fo = "var", mo = "var(", kn = "${}", po = /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;
|
|
271
271
|
function Rt(t) {
|
|
272
272
|
const e = t.toString(), n = [], i = {
|
|
273
273
|
color: [],
|
|
@@ -275,39 +275,39 @@ function Rt(t) {
|
|
|
275
275
|
var: []
|
|
276
276
|
}, s = [];
|
|
277
277
|
let o = 0;
|
|
278
|
-
const a = e.replace(
|
|
278
|
+
const a = e.replace(po, (l) => (C.test(l) ? (i.color.push(o), s.push(gs), n.push(C.parse(l))) : l.startsWith(mo) ? (i.var.push(o), s.push(fo), n.push(l)) : (i.number.push(o), s.push(ps), n.push(parseFloat(l))), ++o, kn)).split(kn);
|
|
279
279
|
return { values: n, split: a, indexes: i, types: s };
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function ys(t) {
|
|
282
282
|
return Rt(t).values;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function vs(t) {
|
|
285
285
|
const { split: e, types: n } = Rt(t), i = e.length;
|
|
286
286
|
return (s) => {
|
|
287
287
|
let o = "";
|
|
288
288
|
for (let r = 0; r < i; r++)
|
|
289
289
|
if (o += e[r], s[r] !== void 0) {
|
|
290
290
|
const a = n[r];
|
|
291
|
-
a ===
|
|
291
|
+
a === ps ? o += Vt(s[r]) : a === gs ? o += C.transform(s[r]) : o += s[r];
|
|
292
292
|
}
|
|
293
293
|
return o;
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
const
|
|
297
|
-
function
|
|
298
|
-
const e =
|
|
299
|
-
return
|
|
296
|
+
const go = (t) => typeof t == "number" ? 0 : C.test(t) ? C.getAnimatableNone(t) : t;
|
|
297
|
+
function yo(t) {
|
|
298
|
+
const e = ys(t);
|
|
299
|
+
return vs(t)(e.map(go));
|
|
300
300
|
}
|
|
301
301
|
const H = {
|
|
302
|
-
test:
|
|
303
|
-
parse:
|
|
304
|
-
createTransformer:
|
|
305
|
-
getAnimatableNone:
|
|
302
|
+
test: ho,
|
|
303
|
+
parse: ys,
|
|
304
|
+
createTransformer: vs,
|
|
305
|
+
getAnimatableNone: yo
|
|
306
306
|
};
|
|
307
307
|
function ce(t, e, n) {
|
|
308
308
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function vo({ hue: t, saturation: e, lightness: n, alpha: i }) {
|
|
311
311
|
t /= 360, e /= 100, n /= 100;
|
|
312
312
|
let s = 0, o = 0, r = 0;
|
|
313
313
|
if (!e)
|
|
@@ -329,13 +329,13 @@ function Yt(t, e) {
|
|
|
329
329
|
const D = (t, e, n) => t + (e - t) * n, ue = (t, e, n) => {
|
|
330
330
|
const i = t * t, s = n * (e * e - i) + i;
|
|
331
331
|
return s < 0 ? 0 : Math.sqrt(s);
|
|
332
|
-
},
|
|
332
|
+
}, To = [Ae, rt, ut], xo = (t) => To.find((e) => e.test(t));
|
|
333
333
|
function Bn(t) {
|
|
334
|
-
const e =
|
|
334
|
+
const e = xo(t);
|
|
335
335
|
if (Tt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
|
|
336
336
|
return !1;
|
|
337
337
|
let n = e.parse(t);
|
|
338
|
-
return e === ut && (n =
|
|
338
|
+
return e === ut && (n = vo(n)), n;
|
|
339
339
|
}
|
|
340
340
|
const Fn = (t, e) => {
|
|
341
341
|
const n = Bn(t), i = Bn(e);
|
|
@@ -344,16 +344,16 @@ const Fn = (t, e) => {
|
|
|
344
344
|
const s = { ...n };
|
|
345
345
|
return (o) => (s.red = ue(n.red, i.red, o), s.green = ue(n.green, i.green, o), s.blue = ue(n.blue, i.blue, o), s.alpha = D(n.alpha, i.alpha, o), rt.transform(s));
|
|
346
346
|
}, Ve = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
347
|
-
function
|
|
347
|
+
function wo(t, e) {
|
|
348
348
|
return Ve.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Po(t, e) {
|
|
351
351
|
return (n) => D(t, e, n);
|
|
352
352
|
}
|
|
353
353
|
function rn(t) {
|
|
354
|
-
return typeof t == "number" ?
|
|
354
|
+
return typeof t == "number" ? Po : typeof t == "string" ? en(t) ? Yt : C.test(t) ? Fn : Ao : Array.isArray(t) ? Ts : typeof t == "object" ? C.test(t) ? Fn : So : Yt;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Ts(t, e) {
|
|
357
357
|
const n = [...t], i = n.length, s = t.map((o, r) => rn(o)(o, e[r]));
|
|
358
358
|
return (o) => {
|
|
359
359
|
for (let r = 0; r < i; r++)
|
|
@@ -361,7 +361,7 @@ function vs(t, e) {
|
|
|
361
361
|
return n;
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function So(t, e) {
|
|
365
365
|
const n = { ...t, ...e }, i = {};
|
|
366
366
|
for (const s in n)
|
|
367
367
|
t[s] !== void 0 && e[s] !== void 0 && (i[s] = rn(t[s])(t[s], e[s]));
|
|
@@ -371,7 +371,7 @@ function Po(t, e) {
|
|
|
371
371
|
return n;
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function bo(t, e) {
|
|
375
375
|
const n = [], i = { color: 0, var: 0, number: 0 };
|
|
376
376
|
for (let s = 0; s < e.values.length; s++) {
|
|
377
377
|
const o = e.types[s], r = t.indexes[o][i[o]], a = t.values[r] ?? 0;
|
|
@@ -379,14 +379,14 @@ function So(t, e) {
|
|
|
379
379
|
}
|
|
380
380
|
return n;
|
|
381
381
|
}
|
|
382
|
-
const
|
|
382
|
+
const Ao = (t, e) => {
|
|
383
383
|
const n = H.createTransformer(e), i = Rt(t), s = Rt(e);
|
|
384
|
-
return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Ve.has(t) && !s.values.length || Ve.has(e) && !i.values.length ?
|
|
384
|
+
return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Ve.has(t) && !s.values.length || Ve.has(e) && !i.values.length ? wo(t, e) : Bt(Ts(bo(i, s), s.values), n) : (Tt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Yt(t, e));
|
|
385
385
|
};
|
|
386
|
-
function
|
|
386
|
+
function xs(t, e, n) {
|
|
387
387
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? D(t, e, n) : rn(t)(t, e);
|
|
388
388
|
}
|
|
389
|
-
const
|
|
389
|
+
const Vo = (t) => {
|
|
390
390
|
const e = ({ timestamp: n }) => t(n);
|
|
391
391
|
return {
|
|
392
392
|
start: (n = !0) => A.update(e, n),
|
|
@@ -397,7 +397,7 @@ const Ao = (t) => {
|
|
|
397
397
|
*/
|
|
398
398
|
now: () => L.isProcessing ? L.timestamp : F.now()
|
|
399
399
|
};
|
|
400
|
-
},
|
|
400
|
+
}, ws = (t, e, n = 10) => {
|
|
401
401
|
let i = "";
|
|
402
402
|
const s = Math.max(Math.round(e / n), 2);
|
|
403
403
|
for (let o = 0; o < s; o++)
|
|
@@ -412,7 +412,7 @@ function on(t) {
|
|
|
412
412
|
e += n, i = t.next(e);
|
|
413
413
|
return e >= qt ? 1 / 0 : e;
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function Do(t, e = 100, n) {
|
|
416
416
|
const i = n({ ...t, keyframes: [0, e] }), s = Math.min(on(i), qt);
|
|
417
417
|
return {
|
|
418
418
|
type: "keyframes",
|
|
@@ -420,10 +420,10 @@ function Vo(t, e = 100, n) {
|
|
|
420
420
|
duration: /* @__PURE__ */ U(s)
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
-
const
|
|
424
|
-
function
|
|
425
|
-
const i = Math.max(e -
|
|
426
|
-
return
|
|
423
|
+
const Mo = 5;
|
|
424
|
+
function Ps(t, e, n) {
|
|
425
|
+
const i = Math.max(e - Mo, 0);
|
|
426
|
+
return ts(n - t(i), e - i);
|
|
427
427
|
}
|
|
428
428
|
const V = {
|
|
429
429
|
// Default spring physics
|
|
@@ -454,7 +454,7 @@ const V = {
|
|
|
454
454
|
minDamping: 0.05,
|
|
455
455
|
maxDamping: 1
|
|
456
456
|
}, he = 1e-3;
|
|
457
|
-
function
|
|
457
|
+
function Co({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.velocity, mass: i = V.mass }) {
|
|
458
458
|
let s, o;
|
|
459
459
|
Tt(t <= /* @__PURE__ */ K(V.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
460
460
|
let r = 1 - e;
|
|
@@ -471,7 +471,7 @@ function Mo({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.ve
|
|
|
471
471
|
const c = Math.exp(-u * t), h = (n - u) * (t * t);
|
|
472
472
|
return c * h;
|
|
473
473
|
});
|
|
474
|
-
const a = 5 / t, l =
|
|
474
|
+
const a = 5 / t, l = Ro(s, o, a);
|
|
475
475
|
if (t = /* @__PURE__ */ K(t), isNaN(l))
|
|
476
476
|
return {
|
|
477
477
|
stiffness: V.stiffness,
|
|
@@ -487,21 +487,21 @@ function Mo({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.ve
|
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
const
|
|
491
|
-
function
|
|
490
|
+
const Eo = 12;
|
|
491
|
+
function Ro(t, e, n) {
|
|
492
492
|
let i = n;
|
|
493
|
-
for (let s = 1; s <
|
|
493
|
+
for (let s = 1; s < Eo; s++)
|
|
494
494
|
i = i - t(i) / e(i);
|
|
495
495
|
return i;
|
|
496
496
|
}
|
|
497
497
|
function De(t, e) {
|
|
498
498
|
return t * Math.sqrt(1 - e * e);
|
|
499
499
|
}
|
|
500
|
-
const
|
|
500
|
+
const Lo = ["duration", "bounce"], ko = ["stiffness", "damping", "mass"];
|
|
501
501
|
function In(t, e) {
|
|
502
502
|
return e.some((n) => t[n] !== void 0);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function Bo(t) {
|
|
505
505
|
let e = {
|
|
506
506
|
velocity: V.velocity,
|
|
507
507
|
stiffness: V.stiffness,
|
|
@@ -510,7 +510,7 @@ function ko(t) {
|
|
|
510
510
|
isResolvedFromDuration: !1,
|
|
511
511
|
...t
|
|
512
512
|
};
|
|
513
|
-
if (!In(t,
|
|
513
|
+
if (!In(t, ko) && In(t, Lo))
|
|
514
514
|
if (e.velocity = 0, t.visualDuration) {
|
|
515
515
|
const n = t.visualDuration, i = 2 * Math.PI / (n * 1.2), s = i * i, o = 2 * X(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(s);
|
|
516
516
|
e = {
|
|
@@ -520,7 +520,7 @@ function ko(t) {
|
|
|
520
520
|
damping: o
|
|
521
521
|
};
|
|
522
522
|
} else {
|
|
523
|
-
const n =
|
|
523
|
+
const n = Co({ ...t, velocity: 0 });
|
|
524
524
|
e = {
|
|
525
525
|
...e,
|
|
526
526
|
...n,
|
|
@@ -536,7 +536,7 @@ function Zt(t = V.visualDuration, e = V.bounce) {
|
|
|
536
536
|
bounce: e
|
|
537
537
|
} : t;
|
|
538
538
|
let { restSpeed: i, restDelta: s } = n;
|
|
539
|
-
const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: u, mass: c, duration: h, velocity: f, isResolvedFromDuration: d } =
|
|
539
|
+
const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: u, mass: c, duration: h, velocity: f, isResolvedFromDuration: d } = Bo({
|
|
540
540
|
...n,
|
|
541
541
|
velocity: -/* @__PURE__ */ U(n.velocity || 0)
|
|
542
542
|
}), m = f || 0, g = u / (2 * Math.sqrt(l * c)), x = r - o, v = /* @__PURE__ */ U(Math.sqrt(l / c)), T = Math.abs(x) < 5;
|
|
@@ -565,14 +565,14 @@ function Zt(t = V.visualDuration, e = V.bounce) {
|
|
|
565
565
|
a.done = w >= h;
|
|
566
566
|
else {
|
|
567
567
|
let M = w === 0 ? m : 0;
|
|
568
|
-
g < 1 && (M = w === 0 ? /* @__PURE__ */ K(m) :
|
|
568
|
+
g < 1 && (M = w === 0 ? /* @__PURE__ */ K(m) : Ps(p, w, b));
|
|
569
569
|
const S = Math.abs(M) <= i, B = Math.abs(r - b) <= s;
|
|
570
570
|
a.done = S && B;
|
|
571
571
|
}
|
|
572
572
|
return a.value = a.done ? r : b, a;
|
|
573
573
|
},
|
|
574
574
|
toString: () => {
|
|
575
|
-
const w = Math.min(on(P), qt), b =
|
|
575
|
+
const w = Math.min(on(P), qt), b = ws((M) => P.next(w * M).value, w, 30);
|
|
576
576
|
return w + "ms " + b;
|
|
577
577
|
},
|
|
578
578
|
toTransition: () => {
|
|
@@ -581,7 +581,7 @@ function Zt(t = V.visualDuration, e = V.bounce) {
|
|
|
581
581
|
return P;
|
|
582
582
|
}
|
|
583
583
|
Zt.applyToOptions = (t) => {
|
|
584
|
-
const e =
|
|
584
|
+
const e = Do(t, 100, Zt);
|
|
585
585
|
return t.ease = e.ease, t.duration = /* @__PURE__ */ K(e.duration), t.type = "keyframes", t;
|
|
586
586
|
};
|
|
587
587
|
function Me({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: u = 0.5, restSpeed: c }) {
|
|
@@ -600,7 +600,7 @@ function Me({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
600
600
|
const M = (S) => {
|
|
601
601
|
d(f.value) && (w = S, b = Zt({
|
|
602
602
|
keyframes: [f.value, m(f.value)],
|
|
603
|
-
velocity:
|
|
603
|
+
velocity: Ps(p, S, f.value),
|
|
604
604
|
// TODO: This should be passing * 1000
|
|
605
605
|
damping: s,
|
|
606
606
|
stiffness: o,
|
|
@@ -616,8 +616,8 @@ function Me({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
616
616
|
}
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
const i = [], s = n || q.mix ||
|
|
619
|
+
function Fo(t, e, n) {
|
|
620
|
+
const i = [], s = n || q.mix || xs, o = t.length - 1;
|
|
621
621
|
for (let r = 0; r < o; r++) {
|
|
622
622
|
let a = s(t[r], t[r + 1]);
|
|
623
623
|
if (e) {
|
|
@@ -628,7 +628,7 @@ function Bo(t, e, n) {
|
|
|
628
628
|
}
|
|
629
629
|
return i;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Io(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
|
|
632
632
|
const o = t.length;
|
|
633
633
|
if (Y(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
|
|
634
634
|
return () => e[0];
|
|
@@ -636,7 +636,7 @@ function Fo(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
|
|
|
636
636
|
return () => e[1];
|
|
637
637
|
const r = t[0] === t[1];
|
|
638
638
|
t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
|
639
|
-
const a =
|
|
639
|
+
const a = Fo(e, i, s), l = a.length, u = (c) => {
|
|
640
640
|
if (r && c < t[0])
|
|
641
641
|
return e[0];
|
|
642
642
|
let h = 0;
|
|
@@ -648,54 +648,54 @@ function Fo(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
|
|
|
648
648
|
};
|
|
649
649
|
return n ? (c) => u(X(t[0], t[o - 1], c)) : u;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Oo(t, e) {
|
|
652
652
|
const n = t[t.length - 1];
|
|
653
653
|
for (let i = 1; i <= e; i++) {
|
|
654
654
|
const s = /* @__PURE__ */ Ct(0, e, i);
|
|
655
655
|
t.push(D(n, 1, s));
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function jo(t) {
|
|
659
659
|
const e = [0];
|
|
660
|
-
return
|
|
660
|
+
return Oo(e, t.length - 1), e;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function No(t, e) {
|
|
663
663
|
return t.map((n) => n * e);
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
return t.map(() => e ||
|
|
665
|
+
function Uo(t, e) {
|
|
666
|
+
return t.map(() => e || cs).splice(0, t.length - 1);
|
|
667
667
|
}
|
|
668
668
|
function ht({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
|
|
669
|
-
const s =
|
|
669
|
+
const s = Zr(i) ? i.map(En) : En(i), o = {
|
|
670
670
|
done: !1,
|
|
671
671
|
value: e[0]
|
|
672
|
-
}, r =
|
|
672
|
+
}, r = No(
|
|
673
673
|
// Only use the provided offsets if they're the correct length
|
|
674
674
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
675
|
-
n && n.length === e.length ? n :
|
|
675
|
+
n && n.length === e.length ? n : jo(e),
|
|
676
676
|
t
|
|
677
|
-
), a =
|
|
678
|
-
ease: Array.isArray(s) ? s :
|
|
677
|
+
), a = Io(r, e, {
|
|
678
|
+
ease: Array.isArray(s) ? s : Uo(e, s)
|
|
679
679
|
});
|
|
680
680
|
return {
|
|
681
681
|
calculatedDuration: t,
|
|
682
682
|
next: (l) => (o.value = a(l), o.done = l >= t, o)
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
|
-
const
|
|
685
|
+
const Wo = (t) => t !== null;
|
|
686
686
|
function an(t, { repeat: e, repeatType: n = "loop" }, i, s = 1) {
|
|
687
|
-
const o = t.filter(
|
|
687
|
+
const o = t.filter(Wo), a = s < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
|
|
688
688
|
return !a || i === void 0 ? o[a] : i;
|
|
689
689
|
}
|
|
690
|
-
const
|
|
690
|
+
const Ko = {
|
|
691
691
|
decay: Me,
|
|
692
692
|
inertia: Me,
|
|
693
693
|
tween: ht,
|
|
694
694
|
keyframes: ht,
|
|
695
695
|
spring: Zt
|
|
696
696
|
};
|
|
697
|
-
function
|
|
698
|
-
typeof t.type == "string" && (t.type =
|
|
697
|
+
function Ss(t) {
|
|
698
|
+
typeof t.type == "string" && (t.type = Ko[t.type]);
|
|
699
699
|
}
|
|
700
700
|
class ln {
|
|
701
701
|
constructor() {
|
|
@@ -721,7 +721,7 @@ class ln {
|
|
|
721
721
|
return this.finished.then(e, n);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
const
|
|
724
|
+
const $o = (t) => t / 100;
|
|
725
725
|
class cn extends ln {
|
|
726
726
|
constructor(e) {
|
|
727
727
|
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
|
|
@@ -731,11 +731,11 @@ class cn extends ln {
|
|
|
731
731
|
}
|
|
732
732
|
initAnimation() {
|
|
733
733
|
const { options: e } = this;
|
|
734
|
-
|
|
734
|
+
Ss(e);
|
|
735
735
|
const { type: n = ht, repeat: i = 0, repeatDelay: s = 0, repeatType: o, velocity: r = 0 } = e;
|
|
736
736
|
let { keyframes: a } = e;
|
|
737
737
|
const l = n || ht;
|
|
738
|
-
process.env.NODE_ENV !== "production" && l !== ht && Y(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== ht && typeof a[0] != "number" && (this.mixKeyframes = Bt(
|
|
738
|
+
process.env.NODE_ENV !== "production" && l !== ht && Y(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== ht && typeof a[0] != "number" && (this.mixKeyframes = Bt($o, xs(a[0], a[1])), a = [0, 100]);
|
|
739
739
|
const u = l({ ...e, keyframes: a });
|
|
740
740
|
o === "mirror" && (this.mirroredGenerator = l({
|
|
741
741
|
...e,
|
|
@@ -802,7 +802,7 @@ class cn extends ln {
|
|
|
802
802
|
play() {
|
|
803
803
|
if (this.isStopped)
|
|
804
804
|
return;
|
|
805
|
-
const { driver: e =
|
|
805
|
+
const { driver: e = Vo, startTime: n } = this.options;
|
|
806
806
|
this.driver || (this.driver = e((s) => this.tick(s))), this.options.onPlay?.();
|
|
807
807
|
const i = this.driver.now();
|
|
808
808
|
this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = n ?? i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -832,14 +832,14 @@ class cn extends ln {
|
|
|
832
832
|
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function zo(t) {
|
|
836
836
|
for (let e = 1; e < t.length; e++)
|
|
837
837
|
t[e] ?? (t[e] = t[e - 1]);
|
|
838
838
|
}
|
|
839
839
|
const ot = (t) => t * 180 / Math.PI, Ce = (t) => {
|
|
840
840
|
const e = ot(Math.atan2(t[1], t[0]));
|
|
841
841
|
return Ee(e);
|
|
842
|
-
},
|
|
842
|
+
}, Ho = {
|
|
843
843
|
x: 4,
|
|
844
844
|
y: 5,
|
|
845
845
|
translateX: 4,
|
|
@@ -852,7 +852,7 @@ const ot = (t) => t * 180 / Math.PI, Ce = (t) => {
|
|
|
852
852
|
skewX: (t) => ot(Math.atan(t[1])),
|
|
853
853
|
skewY: (t) => ot(Math.atan(t[2])),
|
|
854
854
|
skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
|
|
855
|
-
}, Ee = (t) => (t = t % 360, t < 0 && (t += 360), t), On = Ce, jn = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Nn = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]),
|
|
855
|
+
}, Ee = (t) => (t = t % 360, t < 0 && (t += 360), t), On = Ce, jn = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Nn = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Go = {
|
|
856
856
|
x: 12,
|
|
857
857
|
y: 13,
|
|
858
858
|
z: 14,
|
|
@@ -879,21 +879,21 @@ function Le(t, e) {
|
|
|
879
879
|
const n = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
|
|
880
880
|
let i, s;
|
|
881
881
|
if (n)
|
|
882
|
-
i =
|
|
882
|
+
i = Go, s = n;
|
|
883
883
|
else {
|
|
884
884
|
const a = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
885
|
-
i =
|
|
885
|
+
i = Ho, s = a;
|
|
886
886
|
}
|
|
887
887
|
if (!s)
|
|
888
888
|
return Re(e);
|
|
889
|
-
const o = i[e], r = s[1].split(",").map(
|
|
889
|
+
const o = i[e], r = s[1].split(",").map(Xo);
|
|
890
890
|
return typeof o == "function" ? o(r) : r[o];
|
|
891
891
|
}
|
|
892
|
-
const
|
|
892
|
+
const _o = (t, e) => {
|
|
893
893
|
const { transform: n = "none" } = getComputedStyle(t);
|
|
894
894
|
return Le(n, e);
|
|
895
895
|
};
|
|
896
|
-
function
|
|
896
|
+
function Xo(t) {
|
|
897
897
|
return parseFloat(t.trim());
|
|
898
898
|
}
|
|
899
899
|
const wt = [
|
|
@@ -914,10 +914,10 @@ const wt = [
|
|
|
914
914
|
"skew",
|
|
915
915
|
"skewX",
|
|
916
916
|
"skewY"
|
|
917
|
-
], Pt = new Set(wt), Un = (t) => t === xt || t === y,
|
|
918
|
-
function
|
|
917
|
+
], Pt = new Set(wt), Un = (t) => t === xt || t === y, Yo = /* @__PURE__ */ new Set(["x", "y", "z"]), qo = wt.filter((t) => !Yo.has(t));
|
|
918
|
+
function Zo(t) {
|
|
919
919
|
const e = [];
|
|
920
|
-
return
|
|
920
|
+
return qo.forEach((n) => {
|
|
921
921
|
const i = t.getValue(n);
|
|
922
922
|
i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
|
|
923
923
|
}), e;
|
|
@@ -938,11 +938,11 @@ J.translateX = J.x;
|
|
|
938
938
|
J.translateY = J.y;
|
|
939
939
|
const at = /* @__PURE__ */ new Set();
|
|
940
940
|
let ke = !1, Be = !1, Fe = !1;
|
|
941
|
-
function
|
|
941
|
+
function bs() {
|
|
942
942
|
if (Be) {
|
|
943
943
|
const t = Array.from(at).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
|
|
944
944
|
e.forEach((i) => {
|
|
945
|
-
const s =
|
|
945
|
+
const s = Zo(i);
|
|
946
946
|
s.length && (n.set(i, s), i.render());
|
|
947
947
|
}), t.forEach((i) => i.measureInitialState()), e.forEach((i) => {
|
|
948
948
|
i.render();
|
|
@@ -956,20 +956,20 @@ function Ss() {
|
|
|
956
956
|
}
|
|
957
957
|
Be = !1, ke = !1, at.forEach((t) => t.complete(Fe)), at.clear();
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function As() {
|
|
960
960
|
at.forEach((t) => {
|
|
961
961
|
t.readKeyframes(), t.needsMeasurement && (Be = !0);
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
Fe = !0,
|
|
964
|
+
function Jo() {
|
|
965
|
+
Fe = !0, As(), bs(), Fe = !1;
|
|
966
966
|
}
|
|
967
967
|
class un {
|
|
968
968
|
constructor(e, n, i, s, o, r = !1) {
|
|
969
969
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = i, this.motionValue = s, this.element = o, this.isAsync = r;
|
|
970
970
|
}
|
|
971
971
|
scheduleResolve() {
|
|
972
|
-
this.state = "scheduled", this.isAsync ? (at.add(this), ke || (ke = !0, A.read(
|
|
972
|
+
this.state = "scheduled", this.isAsync ? (at.add(this), ke || (ke = !0, A.read(As), A.resolveKeyframes(bs))) : (this.readKeyframes(), this.complete());
|
|
973
973
|
}
|
|
974
974
|
readKeyframes() {
|
|
975
975
|
const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
|
|
@@ -983,7 +983,7 @@ class un {
|
|
|
983
983
|
}
|
|
984
984
|
e[0] === void 0 && (e[0] = r), s && o === void 0 && s.set(e[0]);
|
|
985
985
|
}
|
|
986
|
-
|
|
986
|
+
zo(e);
|
|
987
987
|
}
|
|
988
988
|
setFinalKeyframe() {
|
|
989
989
|
}
|
|
@@ -1003,16 +1003,16 @@ class un {
|
|
|
1003
1003
|
this.state === "pending" && this.scheduleResolve();
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
|
-
const
|
|
1007
|
-
function
|
|
1008
|
-
|
|
1006
|
+
const Qo = (t) => t.startsWith("--");
|
|
1007
|
+
function ta(t, e, n) {
|
|
1008
|
+
Qo(e) ? t.style.setProperty(e, n) : t.style[e] = n;
|
|
1009
1009
|
}
|
|
1010
|
-
const
|
|
1011
|
-
function
|
|
1012
|
-
const n = /* @__PURE__ */
|
|
1013
|
-
return () =>
|
|
1010
|
+
const ea = {};
|
|
1011
|
+
function Vs(t, e) {
|
|
1012
|
+
const n = /* @__PURE__ */ Qi(t);
|
|
1013
|
+
return () => ea[e] ?? n();
|
|
1014
1014
|
}
|
|
1015
|
-
const
|
|
1015
|
+
const na = /* @__PURE__ */ Vs(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Ds = /* @__PURE__ */ Vs(() => {
|
|
1016
1016
|
try {
|
|
1017
1017
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1018
1018
|
} catch {
|
|
@@ -1030,16 +1030,16 @@ const ea = /* @__PURE__ */ As(() => window.ScrollTimeline !== void 0, "scrollTim
|
|
|
1030
1030
|
backIn: /* @__PURE__ */ At([0.31, 0.01, 0.66, -0.59]),
|
|
1031
1031
|
backOut: /* @__PURE__ */ At([0.33, 1.53, 0.69, 0.99])
|
|
1032
1032
|
};
|
|
1033
|
-
function
|
|
1033
|
+
function Ms(t, e) {
|
|
1034
1034
|
if (t)
|
|
1035
|
-
return typeof t == "function" ?
|
|
1035
|
+
return typeof t == "function" ? Ds() ? ws(t, e) : "ease-out" : us(t) ? At(t) : Array.isArray(t) ? t.map((n) => Ms(n, e) || Wn.easeOut) : Wn[t];
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function ia(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, u = void 0) {
|
|
1038
1038
|
const c = {
|
|
1039
1039
|
[e]: n
|
|
1040
1040
|
};
|
|
1041
1041
|
l && (c.offset = l);
|
|
1042
|
-
const h =
|
|
1042
|
+
const h = Ms(a, s);
|
|
1043
1043
|
Array.isArray(h) && (c.easing = h);
|
|
1044
1044
|
const f = {
|
|
1045
1045
|
delay: i,
|
|
@@ -1051,23 +1051,23 @@ function na(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatTyp
|
|
|
1051
1051
|
};
|
|
1052
1052
|
return u && (f.pseudoElement = u), t.animate(c, f);
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function Cs(t) {
|
|
1055
1055
|
return typeof t == "function" && "applyToOptions" in t;
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1058
|
-
return
|
|
1057
|
+
function sa({ type: t, ...e }) {
|
|
1058
|
+
return Cs(t) && Ds() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
|
|
1059
1059
|
}
|
|
1060
|
-
class
|
|
1060
|
+
class Es extends ln {
|
|
1061
1061
|
constructor(e) {
|
|
1062
1062
|
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e)
|
|
1063
1063
|
return;
|
|
1064
1064
|
const { element: n, name: i, keyframes: s, pseudoElement: o, allowFlatten: r = !1, finalKeyframe: a, onComplete: l } = e;
|
|
1065
1065
|
this.isPseudoElement = !!o, this.allowFlatten = r, this.options = e, Y(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
|
|
1066
|
-
const u =
|
|
1067
|
-
this.animation =
|
|
1066
|
+
const u = sa(e);
|
|
1067
|
+
this.animation = ia(n, i, s, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
1068
1068
|
if (this.finishedTime = this.time, !o) {
|
|
1069
1069
|
const c = an(s, this.options, a, this.speed);
|
|
1070
|
-
this.updateMotionValue && this.updateMotionValue(c),
|
|
1070
|
+
this.updateMotionValue && this.updateMotionValue(c), ta(n, i, c), this.animation.cancel();
|
|
1071
1071
|
}
|
|
1072
1072
|
l?.(), this.notifyFinished();
|
|
1073
1073
|
};
|
|
@@ -1146,25 +1146,25 @@ class Cs extends ln {
|
|
|
1146
1146
|
/**
|
|
1147
1147
|
* Attaches a timeline to the animation, for instance the `ScrollTimeline`.
|
|
1148
1148
|
*/
|
|
1149
|
-
attachTimeline({ timeline: e,
|
|
1150
|
-
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e &&
|
|
1149
|
+
attachTimeline({ timeline: e, rangeStart: n, rangeEnd: i, observe: s }) {
|
|
1150
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && na() ? (this.animation.timeline = e, n && (this.animation.rangeStart = n), i && (this.animation.rangeEnd = i), W) : s(this);
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
-
const
|
|
1154
|
-
anticipate:
|
|
1155
|
-
backInOut:
|
|
1156
|
-
circInOut:
|
|
1153
|
+
const Rs = {
|
|
1154
|
+
anticipate: os,
|
|
1155
|
+
backInOut: rs,
|
|
1156
|
+
circInOut: ls
|
|
1157
1157
|
};
|
|
1158
|
-
function sa(t) {
|
|
1159
|
-
return t in Es;
|
|
1160
|
-
}
|
|
1161
1158
|
function ra(t) {
|
|
1162
|
-
|
|
1159
|
+
return t in Rs;
|
|
1160
|
+
}
|
|
1161
|
+
function oa(t) {
|
|
1162
|
+
typeof t.ease == "string" && ra(t.ease) && (t.ease = Rs[t.ease]);
|
|
1163
1163
|
}
|
|
1164
1164
|
const fe = 10;
|
|
1165
|
-
class
|
|
1165
|
+
class aa extends Es {
|
|
1166
1166
|
constructor(e) {
|
|
1167
|
-
|
|
1167
|
+
oa(e), Ss(e), super(e), e.startTime !== void 0 && (this.startTime = e.startTime), this.options = e;
|
|
1168
1168
|
}
|
|
1169
1169
|
/**
|
|
1170
1170
|
* WAAPI doesn't natively have any interruption capabilities.
|
|
@@ -1192,7 +1192,7 @@ class oa extends Cs {
|
|
|
1192
1192
|
const Kn = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
1193
1193
|
(H.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
1194
1194
|
!t.startsWith("url("));
|
|
1195
|
-
function
|
|
1195
|
+
function la(t) {
|
|
1196
1196
|
const e = t[0];
|
|
1197
1197
|
if (t.length === 1)
|
|
1198
1198
|
return !0;
|
|
@@ -1200,39 +1200,39 @@ function aa(t) {
|
|
|
1200
1200
|
if (t[n] !== e)
|
|
1201
1201
|
return !0;
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function ca(t, e, n, i) {
|
|
1204
1204
|
const s = t[0];
|
|
1205
1205
|
if (s === null)
|
|
1206
1206
|
return !1;
|
|
1207
1207
|
if (e === "display" || e === "visibility")
|
|
1208
1208
|
return !0;
|
|
1209
1209
|
const o = t[t.length - 1], r = Kn(s, e), a = Kn(o, e);
|
|
1210
|
-
return Tt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". "${r ? o : s}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 :
|
|
1210
|
+
return Tt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". "${r ? o : s}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : la(t) || (n === "spring" || Cs(n)) && i;
|
|
1211
1211
|
}
|
|
1212
1212
|
function Ie(t) {
|
|
1213
1213
|
t.duration = 0, t.type = "keyframes";
|
|
1214
1214
|
}
|
|
1215
|
-
const
|
|
1215
|
+
const ua = /* @__PURE__ */ new Set([
|
|
1216
1216
|
"opacity",
|
|
1217
1217
|
"clipPath",
|
|
1218
1218
|
"filter",
|
|
1219
1219
|
"transform"
|
|
1220
1220
|
// TODO: Could be re-enabled now we have support for linear() easing
|
|
1221
1221
|
// "background-color"
|
|
1222
|
-
]),
|
|
1223
|
-
function
|
|
1222
|
+
]), ha = /* @__PURE__ */ Qi(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1223
|
+
function fa(t) {
|
|
1224
1224
|
const { motionValue: e, name: n, repeatDelay: i, repeatType: s, damping: o, type: r } = t;
|
|
1225
1225
|
if (!(e?.owner?.current instanceof HTMLElement))
|
|
1226
1226
|
return !1;
|
|
1227
1227
|
const { onUpdate: l, transformTemplate: u } = e.owner.getProps();
|
|
1228
|
-
return
|
|
1228
|
+
return ha() && n && ua.has(n) && (n !== "transform" || !u) && /**
|
|
1229
1229
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
1230
1230
|
* no way to read the value from WAAPI every frame.
|
|
1231
1231
|
*/
|
|
1232
1232
|
!l && !i && s !== "mirror" && o !== 0 && r !== "inertia";
|
|
1233
1233
|
}
|
|
1234
|
-
const
|
|
1235
|
-
class
|
|
1234
|
+
const da = 40;
|
|
1235
|
+
class ma extends ln {
|
|
1236
1236
|
constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", keyframes: a, name: l, motionValue: u, element: c, ...h }) {
|
|
1237
1237
|
super(), this.stop = () => {
|
|
1238
1238
|
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
@@ -1254,13 +1254,13 @@ class da extends ln {
|
|
|
1254
1254
|
onKeyframesResolved(e, n, i, s) {
|
|
1255
1255
|
this.keyframeResolver = void 0;
|
|
1256
1256
|
const { name: o, type: r, velocity: a, delay: l, isHandoff: u, onUpdate: c } = i;
|
|
1257
|
-
this.resolvedAt = F.now(),
|
|
1257
|
+
this.resolvedAt = F.now(), ca(e, o, r, a) || ((q.instantAnimations || !l) && c?.(an(e, i, n)), e[0] = e[e.length - 1], Ie(i), i.repeat = 0);
|
|
1258
1258
|
const f = {
|
|
1259
|
-
startTime: s ? this.resolvedAt ? this.resolvedAt - this.createdAt >
|
|
1259
|
+
startTime: s ? this.resolvedAt ? this.resolvedAt - this.createdAt > da ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
|
|
1260
1260
|
finalKeyframe: n,
|
|
1261
1261
|
...i,
|
|
1262
1262
|
keyframes: e
|
|
1263
|
-
}, d = !u &&
|
|
1263
|
+
}, d = !u && fa(f), m = f.motionValue?.owner?.current, g = d ? new aa({
|
|
1264
1264
|
...f,
|
|
1265
1265
|
element: m
|
|
1266
1266
|
}) : new cn(f);
|
|
@@ -1276,7 +1276,7 @@ class da extends ln {
|
|
|
1276
1276
|
});
|
|
1277
1277
|
}
|
|
1278
1278
|
get animation() {
|
|
1279
|
-
return this._animation || (this.keyframeResolver?.resume(),
|
|
1279
|
+
return this._animation || (this.keyframeResolver?.resume(), Jo()), this._animation;
|
|
1280
1280
|
}
|
|
1281
1281
|
get duration() {
|
|
1282
1282
|
return this.animation.duration;
|
|
@@ -1318,57 +1318,57 @@ class da extends ln {
|
|
|
1318
1318
|
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function Ls(t, e, n, i = 0, s = 1) {
|
|
1322
1322
|
const o = Array.from(t).sort((u, c) => u.sortNodePosition(c)).indexOf(e), r = t.size, a = (r - 1) * i;
|
|
1323
1323
|
return typeof n == "function" ? n(o, r) : s === 1 ? o * i : a - o * i;
|
|
1324
1324
|
}
|
|
1325
|
-
const
|
|
1325
|
+
const pa = (
|
|
1326
1326
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
1327
1327
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
1328
1328
|
);
|
|
1329
|
-
function
|
|
1330
|
-
const e =
|
|
1329
|
+
function ga(t) {
|
|
1330
|
+
const e = pa.exec(t);
|
|
1331
1331
|
if (!e)
|
|
1332
1332
|
return [,];
|
|
1333
1333
|
const [, n, i, s] = e;
|
|
1334
1334
|
return [`--${n ?? i}`, s];
|
|
1335
1335
|
}
|
|
1336
|
-
const
|
|
1337
|
-
function
|
|
1338
|
-
Y(n <=
|
|
1339
|
-
const [i, s] =
|
|
1336
|
+
const ya = 4;
|
|
1337
|
+
function ks(t, e, n = 1) {
|
|
1338
|
+
Y(n <= ya, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
1339
|
+
const [i, s] = ga(t);
|
|
1340
1340
|
if (!i)
|
|
1341
1341
|
return;
|
|
1342
1342
|
const o = window.getComputedStyle(e).getPropertyValue(i);
|
|
1343
1343
|
if (o) {
|
|
1344
1344
|
const r = o.trim();
|
|
1345
|
-
return
|
|
1345
|
+
return qi(r) ? parseFloat(r) : r;
|
|
1346
1346
|
}
|
|
1347
|
-
return en(s) ?
|
|
1347
|
+
return en(s) ? ks(s, e, n + 1) : s;
|
|
1348
1348
|
}
|
|
1349
|
-
const
|
|
1349
|
+
const va = {
|
|
1350
1350
|
type: "spring",
|
|
1351
1351
|
stiffness: 500,
|
|
1352
1352
|
damping: 25,
|
|
1353
1353
|
restSpeed: 10
|
|
1354
|
-
},
|
|
1354
|
+
}, Ta = (t) => ({
|
|
1355
1355
|
type: "spring",
|
|
1356
1356
|
stiffness: 550,
|
|
1357
1357
|
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
1358
1358
|
restSpeed: 10
|
|
1359
|
-
}),
|
|
1359
|
+
}), xa = {
|
|
1360
1360
|
type: "keyframes",
|
|
1361
1361
|
duration: 0.8
|
|
1362
|
-
},
|
|
1362
|
+
}, wa = {
|
|
1363
1363
|
type: "keyframes",
|
|
1364
1364
|
ease: [0.25, 0.1, 0.35, 1],
|
|
1365
1365
|
duration: 0.3
|
|
1366
|
-
},
|
|
1367
|
-
function
|
|
1368
|
-
const s = t.filter(
|
|
1366
|
+
}, Pa = (t, { keyframes: e }) => e.length > 2 ? xa : Pt.has(t) ? t.startsWith("scale") ? Ta(e[1]) : va : wa, Sa = (t) => t !== null;
|
|
1367
|
+
function ba(t, { repeat: e, repeatType: n = "loop" }, i) {
|
|
1368
|
+
const s = t.filter(Sa), o = e && n !== "loop" && e % 2 === 1 ? 0 : s.length - 1;
|
|
1369
1369
|
return s[o];
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function Bs(t, e) {
|
|
1372
1372
|
if (t?.inherit && e) {
|
|
1373
1373
|
const { inherit: n, ...i } = t;
|
|
1374
1374
|
return { ...e, ...i };
|
|
@@ -1377,9 +1377,9 @@ function ks(t, e) {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
function hn(t, e) {
|
|
1379
1379
|
const n = t?.[e] ?? t?.default ?? t;
|
|
1380
|
-
return n !== t ?
|
|
1380
|
+
return n !== t ? Bs(n, t) : n;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function Aa({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: u, ...c }) {
|
|
1383
1383
|
return !!Object.keys(c).length;
|
|
1384
1384
|
}
|
|
1385
1385
|
const fn = (t, e, n, i = {}, s, o) => (r) => {
|
|
@@ -1402,10 +1402,10 @@ const fn = (t, e, n, i = {}, s, o) => (r) => {
|
|
|
1402
1402
|
motionValue: e,
|
|
1403
1403
|
element: o ? void 0 : s
|
|
1404
1404
|
};
|
|
1405
|
-
|
|
1405
|
+
Aa(a) || Object.assign(c, Pa(t, c)), c.duration && (c.duration = /* @__PURE__ */ K(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ K(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
|
|
1406
1406
|
let h = !1;
|
|
1407
1407
|
if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (Ie(c), c.delay === 0 && (h = !0)), (q.instantAnimations || q.skipAnimations || s?.shouldSkipAnimations) && (h = !0, Ie(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
|
|
1408
|
-
const f =
|
|
1408
|
+
const f = ba(c.keyframes, a);
|
|
1409
1409
|
if (f !== void 0) {
|
|
1410
1410
|
A.update(() => {
|
|
1411
1411
|
c.onUpdate(f), c.onComplete();
|
|
@@ -1413,7 +1413,7 @@ const fn = (t, e, n, i = {}, s, o) => (r) => {
|
|
|
1413
1413
|
return;
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
|
-
return a.isSync ? new cn(c) : new
|
|
1416
|
+
return a.isSync ? new cn(c) : new ma(c);
|
|
1417
1417
|
};
|
|
1418
1418
|
function $n(t) {
|
|
1419
1419
|
const e = [{}, {}];
|
|
@@ -1436,7 +1436,7 @@ function gt(t, e, n) {
|
|
|
1436
1436
|
const i = t.getProps();
|
|
1437
1437
|
return dn(i, e, n !== void 0 ? n : i.custom, t);
|
|
1438
1438
|
}
|
|
1439
|
-
const
|
|
1439
|
+
const Fs = /* @__PURE__ */ new Set([
|
|
1440
1440
|
"width",
|
|
1441
1441
|
"height",
|
|
1442
1442
|
"top",
|
|
@@ -1444,8 +1444,8 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
1444
1444
|
"right",
|
|
1445
1445
|
"bottom",
|
|
1446
1446
|
...wt
|
|
1447
|
-
]), zn = 30,
|
|
1448
|
-
class
|
|
1447
|
+
]), zn = 30, Va = (t) => !isNaN(parseFloat(t));
|
|
1448
|
+
class Da {
|
|
1449
1449
|
/**
|
|
1450
1450
|
* @param init - The initiating value
|
|
1451
1451
|
* @param config - Optional configuration options
|
|
@@ -1461,7 +1461,7 @@ class Va {
|
|
|
1461
1461
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
|
1462
1462
|
}
|
|
1463
1463
|
setCurrent(e) {
|
|
1464
|
-
this.current = e, this.updatedAt = F.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity =
|
|
1464
|
+
this.current = e, this.updatedAt = F.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Va(this.current));
|
|
1465
1465
|
}
|
|
1466
1466
|
setPrevFrameValue(e = this.current) {
|
|
1467
1467
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -1593,7 +1593,7 @@ class Va {
|
|
|
1593
1593
|
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > zn)
|
|
1594
1594
|
return 0;
|
|
1595
1595
|
const n = Math.min(this.updatedAt - this.prevUpdatedAt, zn);
|
|
1596
|
-
return
|
|
1596
|
+
return ts(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
|
|
1597
1597
|
}
|
|
1598
1598
|
/**
|
|
1599
1599
|
* Registers a new animation to control this `MotionValue`. Only one
|
|
@@ -1645,31 +1645,31 @@ class Va {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
function yt(t, e) {
|
|
1648
|
-
return new
|
|
1648
|
+
return new Da(t, e);
|
|
1649
1649
|
}
|
|
1650
1650
|
const Oe = (t) => Array.isArray(t);
|
|
1651
|
-
function
|
|
1651
|
+
function Ma(t, e, n) {
|
|
1652
1652
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, yt(n));
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1654
|
+
function Ca(t) {
|
|
1655
1655
|
return Oe(t) ? t[t.length - 1] || 0 : t;
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Ea(t, e) {
|
|
1658
1658
|
const n = gt(t, e);
|
|
1659
1659
|
let { transitionEnd: i = {}, transition: s = {}, ...o } = n || {};
|
|
1660
1660
|
o = { ...o, ...i };
|
|
1661
1661
|
for (const r in o) {
|
|
1662
|
-
const a =
|
|
1663
|
-
|
|
1662
|
+
const a = Ca(o[r]);
|
|
1663
|
+
Ma(t, r, a);
|
|
1664
1664
|
}
|
|
1665
1665
|
}
|
|
1666
1666
|
const k = (t) => !!(t && t.getVelocity);
|
|
1667
|
-
function
|
|
1667
|
+
function Ra(t) {
|
|
1668
1668
|
return !!(k(t) && t.add);
|
|
1669
1669
|
}
|
|
1670
1670
|
function je(t, e) {
|
|
1671
1671
|
const n = t.getValue("willChange");
|
|
1672
|
-
if (
|
|
1672
|
+
if (Ra(n))
|
|
1673
1673
|
return n.add(e);
|
|
1674
1674
|
if (!n && q.WillChange) {
|
|
1675
1675
|
const i = new q.WillChange("auto");
|
|
@@ -1679,24 +1679,24 @@ function je(t, e) {
|
|
|
1679
1679
|
function mn(t) {
|
|
1680
1680
|
return t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1681
1681
|
}
|
|
1682
|
-
const
|
|
1683
|
-
function
|
|
1684
|
-
return t.props[
|
|
1682
|
+
const La = "framerAppearId", Is = "data-" + mn(La);
|
|
1683
|
+
function Os(t) {
|
|
1684
|
+
return t.props[Is];
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function ka({ protectedKeys: t, needsAnimating: e }, n) {
|
|
1687
1687
|
const i = t.hasOwnProperty(n) && e[n] !== !0;
|
|
1688
1688
|
return e[n] = !1, i;
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1690
|
+
function js(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
1691
1691
|
let { transition: o, transitionEnd: r, ...a } = e;
|
|
1692
1692
|
const l = t.getDefaultTransition();
|
|
1693
|
-
o = o ?
|
|
1693
|
+
o = o ? Bs(o, l) : l;
|
|
1694
1694
|
const u = o?.reduceMotion;
|
|
1695
1695
|
i && (o = i);
|
|
1696
1696
|
const c = [], h = s && t.animationState && t.animationState.getState()[s];
|
|
1697
1697
|
for (const f in a) {
|
|
1698
1698
|
const d = t.getValue(f, t.latestValues[f] ?? null), m = a[f];
|
|
1699
|
-
if (m === void 0 || h &&
|
|
1699
|
+
if (m === void 0 || h && ka(h, f))
|
|
1700
1700
|
continue;
|
|
1701
1701
|
const g = {
|
|
1702
1702
|
delay: n,
|
|
@@ -1706,7 +1706,7 @@ function Os(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
|
1706
1706
|
continue;
|
|
1707
1707
|
let v = !1;
|
|
1708
1708
|
if (window.MotionHandoffAnimation) {
|
|
1709
|
-
const P =
|
|
1709
|
+
const P = Os(t);
|
|
1710
1710
|
if (P) {
|
|
1711
1711
|
const w = window.MotionHandoffAnimation(P, f, A);
|
|
1712
1712
|
w !== null && (g.startTime = w, v = !0);
|
|
@@ -1714,13 +1714,13 @@ function Os(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
je(t, f);
|
|
1716
1716
|
const T = u ?? t.shouldReduceMotion;
|
|
1717
|
-
d.start(fn(f, d, m, T &&
|
|
1717
|
+
d.start(fn(f, d, m, T && Fs.has(f) ? { type: !1 } : g, t, v));
|
|
1718
1718
|
const p = d.animation;
|
|
1719
1719
|
p && c.push(p);
|
|
1720
1720
|
}
|
|
1721
1721
|
if (r) {
|
|
1722
1722
|
const f = () => A.update(() => {
|
|
1723
|
-
r &&
|
|
1723
|
+
r && Ea(t, r);
|
|
1724
1724
|
});
|
|
1725
1725
|
c.length ? Promise.all(c).then(f) : f();
|
|
1726
1726
|
}
|
|
@@ -1730,9 +1730,9 @@ function Ne(t, e, n = {}) {
|
|
|
1730
1730
|
const i = gt(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
|
|
1731
1731
|
let { transition: s = t.getDefaultTransition() || {} } = i || {};
|
|
1732
1732
|
n.transitionOverride && (s = n.transitionOverride);
|
|
1733
|
-
const o = i ? () => Promise.all(
|
|
1733
|
+
const o = i ? () => Promise.all(js(t, i, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
|
|
1734
1734
|
const { delayChildren: u = 0, staggerChildren: c, staggerDirection: h } = s;
|
|
1735
|
-
return
|
|
1735
|
+
return Ba(t, e, l, u, c, h, n);
|
|
1736
1736
|
} : () => Promise.resolve(), { when: a } = s;
|
|
1737
1737
|
if (a) {
|
|
1738
1738
|
const [l, u] = a === "beforeChildren" ? [o, r] : [r, o];
|
|
@@ -1740,16 +1740,16 @@ function Ne(t, e, n = {}) {
|
|
|
1740
1740
|
} else
|
|
1741
1741
|
return Promise.all([o(), r(n.delay)]);
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1743
|
+
function Ba(t, e, n = 0, i = 0, s = 0, o = 1, r) {
|
|
1744
1744
|
const a = [];
|
|
1745
1745
|
for (const l of t.variantChildren)
|
|
1746
1746
|
l.notify("AnimationStart", e), a.push(Ne(l, e, {
|
|
1747
1747
|
...r,
|
|
1748
|
-
delay: n + (typeof i == "function" ? 0 : i) +
|
|
1748
|
+
delay: n + (typeof i == "function" ? 0 : i) + Ls(t.variantChildren, l, i, s, o)
|
|
1749
1749
|
}).then(() => l.notify("AnimationComplete", e)));
|
|
1750
1750
|
return Promise.all(a);
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function Fa(t, e, n = {}) {
|
|
1753
1753
|
t.notify("AnimationStart", e);
|
|
1754
1754
|
let i;
|
|
1755
1755
|
if (Array.isArray(e)) {
|
|
@@ -1759,21 +1759,21 @@ function Ba(t, e, n = {}) {
|
|
|
1759
1759
|
i = Ne(t, e, n);
|
|
1760
1760
|
else {
|
|
1761
1761
|
const s = typeof e == "function" ? gt(t, e, n.custom) : e;
|
|
1762
|
-
i = Promise.all(
|
|
1762
|
+
i = Promise.all(js(t, s, n));
|
|
1763
1763
|
}
|
|
1764
1764
|
return i.then(() => {
|
|
1765
1765
|
t.notify("AnimationComplete", e);
|
|
1766
1766
|
});
|
|
1767
1767
|
}
|
|
1768
|
-
const
|
|
1768
|
+
const Ia = {
|
|
1769
1769
|
test: (t) => t === "auto",
|
|
1770
1770
|
parse: (t) => t
|
|
1771
|
-
},
|
|
1772
|
-
function
|
|
1773
|
-
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" ||
|
|
1771
|
+
}, Ns = (t) => (e) => e.test(t), Us = [xt, y, _, Z, co, lo, Ia], Hn = (t) => Us.find(Ns(t));
|
|
1772
|
+
function Oa(t) {
|
|
1773
|
+
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Ji(t) : !0;
|
|
1774
1774
|
}
|
|
1775
|
-
const
|
|
1776
|
-
function
|
|
1775
|
+
const ja = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
1776
|
+
function Na(t) {
|
|
1777
1777
|
const [e, n] = t.slice(0, -1).split("(");
|
|
1778
1778
|
if (e === "drop-shadow")
|
|
1779
1779
|
return t;
|
|
@@ -1781,14 +1781,14 @@ function ja(t) {
|
|
|
1781
1781
|
if (!i)
|
|
1782
1782
|
return t;
|
|
1783
1783
|
const s = n.replace(i, "");
|
|
1784
|
-
let o =
|
|
1784
|
+
let o = ja.has(e) ? 1 : 0;
|
|
1785
1785
|
return i !== n && (o *= 100), e + "(" + o + s + ")";
|
|
1786
1786
|
}
|
|
1787
|
-
const
|
|
1787
|
+
const Ua = /\b([a-z-]*)\(.*?\)/gu, Ue = {
|
|
1788
1788
|
...H,
|
|
1789
1789
|
getAnimatableNone: (t) => {
|
|
1790
|
-
const e = t.match(
|
|
1791
|
-
return e ? e.map(
|
|
1790
|
+
const e = t.match(Ua);
|
|
1791
|
+
return e ? e.map(Na).join(" ") : t;
|
|
1792
1792
|
}
|
|
1793
1793
|
}, We = {
|
|
1794
1794
|
...H,
|
|
@@ -1799,7 +1799,7 @@ const Na = /\b([a-z-]*)\(.*?\)/gu, Ue = {
|
|
|
1799
1799
|
}, Gn = {
|
|
1800
1800
|
...xt,
|
|
1801
1801
|
transform: Math.round
|
|
1802
|
-
},
|
|
1802
|
+
}, Wa = {
|
|
1803
1803
|
rotate: Z,
|
|
1804
1804
|
rotateX: Z,
|
|
1805
1805
|
rotateY: Z,
|
|
@@ -1880,13 +1880,13 @@ const Na = /\b([a-z-]*)\(.*?\)/gu, Ue = {
|
|
|
1880
1880
|
// Misc
|
|
1881
1881
|
backgroundPositionX: y,
|
|
1882
1882
|
backgroundPositionY: y,
|
|
1883
|
-
...
|
|
1883
|
+
...Wa,
|
|
1884
1884
|
zIndex: Gn,
|
|
1885
1885
|
// SVG
|
|
1886
1886
|
fillOpacity: Et,
|
|
1887
1887
|
strokeOpacity: Et,
|
|
1888
1888
|
numOctaves: Gn
|
|
1889
|
-
},
|
|
1889
|
+
}, Ka = {
|
|
1890
1890
|
...pn,
|
|
1891
1891
|
// Color props
|
|
1892
1892
|
color: C,
|
|
@@ -1904,23 +1904,23 @@ const Na = /\b([a-z-]*)\(.*?\)/gu, Ue = {
|
|
|
1904
1904
|
WebkitFilter: Ue,
|
|
1905
1905
|
mask: We,
|
|
1906
1906
|
WebkitMask: We
|
|
1907
|
-
},
|
|
1908
|
-
function
|
|
1909
|
-
let n =
|
|
1910
|
-
return
|
|
1907
|
+
}, Ws = (t) => Ka[t], $a = /* @__PURE__ */ new Set([Ue, We]);
|
|
1908
|
+
function Ks(t, e) {
|
|
1909
|
+
let n = Ws(t);
|
|
1910
|
+
return $a.has(n) || (n = H), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
1911
1911
|
}
|
|
1912
|
-
const
|
|
1913
|
-
function
|
|
1912
|
+
const za = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
1913
|
+
function Ha(t, e, n) {
|
|
1914
1914
|
let i = 0, s;
|
|
1915
1915
|
for (; i < t.length && !s; ) {
|
|
1916
1916
|
const o = t[i];
|
|
1917
|
-
typeof o == "string" &&
|
|
1917
|
+
typeof o == "string" && !za.has(o) && Rt(o).values.length && (s = t[i]), i++;
|
|
1918
1918
|
}
|
|
1919
1919
|
if (s && n)
|
|
1920
1920
|
for (const o of e)
|
|
1921
|
-
t[o] =
|
|
1921
|
+
t[o] = Ks(n, s);
|
|
1922
1922
|
}
|
|
1923
|
-
class
|
|
1923
|
+
class Ga extends un {
|
|
1924
1924
|
constructor(e, n, i, s, o) {
|
|
1925
1925
|
super(e, n, i, s, o, !0);
|
|
1926
1926
|
}
|
|
@@ -1932,11 +1932,11 @@ class Ha extends un {
|
|
|
1932
1932
|
for (let c = 0; c < e.length; c++) {
|
|
1933
1933
|
let h = e[c];
|
|
1934
1934
|
if (typeof h == "string" && (h = h.trim(), en(h))) {
|
|
1935
|
-
const f =
|
|
1935
|
+
const f = ks(h, n.current);
|
|
1936
1936
|
f !== void 0 && (e[c] = f), c === e.length - 1 && (this.finalKeyframe = h);
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
|
-
if (this.resolveNoneKeyframes(), !
|
|
1939
|
+
if (this.resolveNoneKeyframes(), !Fs.has(i) || e.length !== 2)
|
|
1940
1940
|
return;
|
|
1941
1941
|
const [s, o] = e, r = Hn(s), a = Hn(o), l = Rn(s), u = Rn(o);
|
|
1942
1942
|
if (l !== u && J[i]) {
|
|
@@ -1954,8 +1954,8 @@ class Ha extends un {
|
|
|
1954
1954
|
resolveNoneKeyframes() {
|
|
1955
1955
|
const { unresolvedKeyframes: e, name: n } = this, i = [];
|
|
1956
1956
|
for (let s = 0; s < e.length; s++)
|
|
1957
|
-
(e[s] === null ||
|
|
1958
|
-
i.length &&
|
|
1957
|
+
(e[s] === null || Oa(e[s])) && i.push(s);
|
|
1958
|
+
i.length && Ha(e, i, n);
|
|
1959
1959
|
}
|
|
1960
1960
|
measureInitialState() {
|
|
1961
1961
|
const { element: e, unresolvedKeyframes: n, name: i } = this;
|
|
@@ -1977,7 +1977,7 @@ class Ha extends un {
|
|
|
1977
1977
|
}), this.resolveNoneKeyframes();
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
const
|
|
1980
|
+
const _a = /* @__PURE__ */ new Set([
|
|
1981
1981
|
"opacity",
|
|
1982
1982
|
"clipPath",
|
|
1983
1983
|
"filter",
|
|
@@ -1986,7 +1986,7 @@ const Ga = /* @__PURE__ */ new Set([
|
|
|
1986
1986
|
// or until we implement support for linear() easing.
|
|
1987
1987
|
// "background-color"
|
|
1988
1988
|
]);
|
|
1989
|
-
function
|
|
1989
|
+
function $s(t, e, n) {
|
|
1990
1990
|
if (t == null)
|
|
1991
1991
|
return [];
|
|
1992
1992
|
if (t instanceof EventTarget)
|
|
@@ -1998,37 +1998,37 @@ function Ks(t, e, n) {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
return Array.from(t).filter((i) => i != null);
|
|
2000
2000
|
}
|
|
2001
|
-
const
|
|
2002
|
-
function
|
|
2003
|
-
return
|
|
2001
|
+
const zs = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
|
|
2002
|
+
function Xa(t) {
|
|
2003
|
+
return Zi(t) && "offsetHeight" in t;
|
|
2004
2004
|
}
|
|
2005
|
-
const { schedule: gn } = /* @__PURE__ */
|
|
2005
|
+
const { schedule: gn } = /* @__PURE__ */ hs(queueMicrotask, !1), z = {
|
|
2006
2006
|
x: !1,
|
|
2007
2007
|
y: !1
|
|
2008
2008
|
};
|
|
2009
|
-
function
|
|
2009
|
+
function Hs() {
|
|
2010
2010
|
return z.x || z.y;
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2012
|
+
function Ya(t) {
|
|
2013
2013
|
return t === "x" || t === "y" ? z[t] ? null : (z[t] = !0, () => {
|
|
2014
2014
|
z[t] = !1;
|
|
2015
2015
|
}) : z.x || z.y ? null : (z.x = z.y = !0, () => {
|
|
2016
2016
|
z.x = z.y = !1;
|
|
2017
2017
|
});
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2020
|
-
const n =
|
|
2019
|
+
function Gs(t, e) {
|
|
2020
|
+
const n = $s(t), i = new AbortController(), s = {
|
|
2021
2021
|
passive: !0,
|
|
2022
2022
|
...e,
|
|
2023
2023
|
signal: i.signal
|
|
2024
2024
|
};
|
|
2025
2025
|
return [n, s, () => i.abort()];
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2028
|
-
return !(t.pointerType === "touch" ||
|
|
2027
|
+
function qa(t) {
|
|
2028
|
+
return !(t.pointerType === "touch" || Hs());
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2031
|
-
const [i, s, o] =
|
|
2030
|
+
function Za(t, e, n = {}) {
|
|
2031
|
+
const [i, s, o] = Gs(t, n);
|
|
2032
2032
|
return i.forEach((r) => {
|
|
2033
2033
|
let a = !1, l = !1, u;
|
|
2034
2034
|
const c = () => {
|
|
@@ -2048,7 +2048,7 @@ function qa(t, e, n = {}) {
|
|
|
2048
2048
|
h(x);
|
|
2049
2049
|
}
|
|
2050
2050
|
}, g = (x) => {
|
|
2051
|
-
if (!
|
|
2051
|
+
if (!qa(x))
|
|
2052
2052
|
return;
|
|
2053
2053
|
l = !1;
|
|
2054
2054
|
const v = e(r, x);
|
|
@@ -2057,19 +2057,19 @@ function qa(t, e, n = {}) {
|
|
|
2057
2057
|
r.addEventListener("pointerenter", g, s), r.addEventListener("pointerdown", d, s);
|
|
2058
2058
|
}), o;
|
|
2059
2059
|
}
|
|
2060
|
-
const
|
|
2060
|
+
const _s = (t, e) => e ? t === e ? !0 : _s(t, e.parentElement) : !1, yn = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Ja = /* @__PURE__ */ new Set([
|
|
2061
2061
|
"BUTTON",
|
|
2062
2062
|
"INPUT",
|
|
2063
2063
|
"SELECT",
|
|
2064
2064
|
"TEXTAREA",
|
|
2065
2065
|
"A"
|
|
2066
2066
|
]);
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2067
|
+
function Qa(t) {
|
|
2068
|
+
return Ja.has(t.tagName) || t.isContentEditable === !0;
|
|
2069
2069
|
}
|
|
2070
|
-
const
|
|
2071
|
-
function
|
|
2072
|
-
return
|
|
2070
|
+
const tl = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
|
|
2071
|
+
function el(t) {
|
|
2072
|
+
return tl.has(t.tagName) || t.isContentEditable === !0;
|
|
2073
2073
|
}
|
|
2074
2074
|
const Kt = /* @__PURE__ */ new WeakSet();
|
|
2075
2075
|
function _n(t) {
|
|
@@ -2080,7 +2080,7 @@ function _n(t) {
|
|
|
2080
2080
|
function de(t, e) {
|
|
2081
2081
|
t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
|
|
2082
2082
|
}
|
|
2083
|
-
const
|
|
2083
|
+
const nl = (t, e) => {
|
|
2084
2084
|
const n = t.currentTarget;
|
|
2085
2085
|
if (!n)
|
|
2086
2086
|
return;
|
|
@@ -2096,11 +2096,11 @@ const el = (t, e) => {
|
|
|
2096
2096
|
n.addEventListener("keydown", i, e), n.addEventListener("blur", () => n.removeEventListener("keydown", i), e);
|
|
2097
2097
|
};
|
|
2098
2098
|
function Xn(t) {
|
|
2099
|
-
return yn(t) && !
|
|
2099
|
+
return yn(t) && !Hs();
|
|
2100
2100
|
}
|
|
2101
2101
|
const Yn = /* @__PURE__ */ new WeakSet();
|
|
2102
|
-
function
|
|
2103
|
-
const [i, s, o] =
|
|
2102
|
+
function il(t, e, n = {}) {
|
|
2103
|
+
const [i, s, o] = Gs(t, n), r = (a) => {
|
|
2104
2104
|
const l = a.currentTarget;
|
|
2105
2105
|
if (!Xn(a) || Yn.has(a))
|
|
2106
2106
|
return;
|
|
@@ -2108,43 +2108,43 @@ function nl(t, e, n = {}) {
|
|
|
2108
2108
|
const u = e(l, a), c = (d, m) => {
|
|
2109
2109
|
window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), Kt.has(l) && Kt.delete(l), Xn(d) && typeof u == "function" && u(d, { success: m });
|
|
2110
2110
|
}, h = (d) => {
|
|
2111
|
-
c(d, l === window || l === document || n.useGlobalTarget ||
|
|
2111
|
+
c(d, l === window || l === document || n.useGlobalTarget || _s(l, d.target));
|
|
2112
2112
|
}, f = (d) => {
|
|
2113
2113
|
c(d, !1);
|
|
2114
2114
|
};
|
|
2115
2115
|
window.addEventListener("pointerup", h, s), window.addEventListener("pointercancel", f, s);
|
|
2116
2116
|
};
|
|
2117
2117
|
return i.forEach((a) => {
|
|
2118
|
-
(n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, s),
|
|
2118
|
+
(n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, s), Xa(a) && (a.addEventListener("focus", (u) => nl(u, s)), !Qa(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
|
|
2119
2119
|
}), o;
|
|
2120
2120
|
}
|
|
2121
2121
|
function vn(t) {
|
|
2122
|
-
return
|
|
2122
|
+
return Zi(t) && "ownerSVGElement" in t;
|
|
2123
2123
|
}
|
|
2124
2124
|
const $t = /* @__PURE__ */ new WeakMap();
|
|
2125
2125
|
let zt;
|
|
2126
|
-
const
|
|
2127
|
-
function
|
|
2126
|
+
const Xs = (t, e, n) => (i, s) => s && s[0] ? s[0][t + "Size"] : vn(i) && "getBBox" in i ? i.getBBox()[e] : i[n], sl = /* @__PURE__ */ Xs("inline", "width", "offsetWidth"), rl = /* @__PURE__ */ Xs("block", "height", "offsetHeight");
|
|
2127
|
+
function ol({ target: t, borderBoxSize: e }) {
|
|
2128
2128
|
$t.get(t)?.forEach((n) => {
|
|
2129
2129
|
n(t, {
|
|
2130
2130
|
get width() {
|
|
2131
|
-
return
|
|
2131
|
+
return sl(t, e);
|
|
2132
2132
|
},
|
|
2133
2133
|
get height() {
|
|
2134
|
-
return
|
|
2134
|
+
return rl(t, e);
|
|
2135
2135
|
}
|
|
2136
2136
|
});
|
|
2137
2137
|
});
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2140
|
-
t.forEach(
|
|
2139
|
+
function al(t) {
|
|
2140
|
+
t.forEach(ol);
|
|
2141
2141
|
}
|
|
2142
|
-
function
|
|
2143
|
-
typeof ResizeObserver > "u" || (zt = new ResizeObserver(
|
|
2142
|
+
function ll() {
|
|
2143
|
+
typeof ResizeObserver > "u" || (zt = new ResizeObserver(al));
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2146
|
-
zt ||
|
|
2147
|
-
const n =
|
|
2145
|
+
function cl(t, e) {
|
|
2146
|
+
zt || ll();
|
|
2147
|
+
const n = $s(t);
|
|
2148
2148
|
return n.forEach((i) => {
|
|
2149
2149
|
let s = $t.get(i);
|
|
2150
2150
|
s || (s = /* @__PURE__ */ new Set(), $t.set(i, s)), s.add(e), zt?.observe(i);
|
|
@@ -2157,7 +2157,7 @@ function ll(t, e) {
|
|
|
2157
2157
|
}
|
|
2158
2158
|
const Ht = /* @__PURE__ */ new Set();
|
|
2159
2159
|
let ft;
|
|
2160
|
-
function
|
|
2160
|
+
function ul() {
|
|
2161
2161
|
ft = () => {
|
|
2162
2162
|
const t = {
|
|
2163
2163
|
get width() {
|
|
@@ -2170,18 +2170,18 @@ function cl() {
|
|
|
2170
2170
|
Ht.forEach((e) => e(t));
|
|
2171
2171
|
}, window.addEventListener("resize", ft);
|
|
2172
2172
|
}
|
|
2173
|
-
function
|
|
2174
|
-
return Ht.add(t), ft ||
|
|
2173
|
+
function hl(t) {
|
|
2174
|
+
return Ht.add(t), ft || ul(), () => {
|
|
2175
2175
|
Ht.delete(t), !Ht.size && typeof ft == "function" && (window.removeEventListener("resize", ft), ft = void 0);
|
|
2176
2176
|
};
|
|
2177
2177
|
}
|
|
2178
2178
|
function qn(t, e) {
|
|
2179
|
-
return typeof t == "function" ?
|
|
2179
|
+
return typeof t == "function" ? hl(t) : cl(t, e);
|
|
2180
2180
|
}
|
|
2181
|
-
function
|
|
2181
|
+
function fl(t) {
|
|
2182
2182
|
return vn(t) && t.tagName === "svg";
|
|
2183
2183
|
}
|
|
2184
|
-
const
|
|
2184
|
+
const dl = [...Us, C, H], ml = (t) => dl.find(Ns(t)), Zn = () => ({
|
|
2185
2185
|
translate: 0,
|
|
2186
2186
|
scale: 1,
|
|
2187
2187
|
origin: 0,
|
|
@@ -2192,7 +2192,7 @@ const fl = [...Ns, C, H], dl = (t) => fl.find(js(t)), Zn = () => ({
|
|
|
2192
2192
|
}), Jn = () => ({ min: 0, max: 0 }), E = () => ({
|
|
2193
2193
|
x: Jn(),
|
|
2194
2194
|
y: Jn()
|
|
2195
|
-
}),
|
|
2195
|
+
}), pl = /* @__PURE__ */ new WeakMap();
|
|
2196
2196
|
function ie(t) {
|
|
2197
2197
|
return t !== null && typeof t == "object" && typeof t.start == "function";
|
|
2198
2198
|
}
|
|
@@ -2211,10 +2211,10 @@ const Tn = [
|
|
|
2211
2211
|
function se(t) {
|
|
2212
2212
|
return ie(t.animate) || xn.some((e) => Lt(t[e]));
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function Ys(t) {
|
|
2215
2215
|
return !!(se(t) || t.variants);
|
|
2216
2216
|
}
|
|
2217
|
-
function
|
|
2217
|
+
function gl(t, e, n) {
|
|
2218
2218
|
for (const i in e) {
|
|
2219
2219
|
const s = e[i], o = n[i];
|
|
2220
2220
|
if (k(s))
|
|
@@ -2234,9 +2234,9 @@ function pl(t, e, n) {
|
|
|
2234
2234
|
e[i] === void 0 && t.removeValue(i);
|
|
2235
2235
|
return e;
|
|
2236
2236
|
}
|
|
2237
|
-
const Ke = { current: null },
|
|
2238
|
-
function
|
|
2239
|
-
if (
|
|
2237
|
+
const Ke = { current: null }, qs = { current: !1 }, yl = typeof window < "u";
|
|
2238
|
+
function vl() {
|
|
2239
|
+
if (qs.current = !0, !!yl)
|
|
2240
2240
|
if (window.matchMedia) {
|
|
2241
2241
|
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Ke.current = t.matches;
|
|
2242
2242
|
t.addEventListener("change", e), e();
|
|
@@ -2253,13 +2253,13 @@ const Qn = [
|
|
|
2253
2253
|
"LayoutAnimationComplete"
|
|
2254
2254
|
];
|
|
2255
2255
|
let Jt = {};
|
|
2256
|
-
function
|
|
2256
|
+
function Zs(t) {
|
|
2257
2257
|
Jt = t;
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function Tl() {
|
|
2260
2260
|
return Jt;
|
|
2261
2261
|
}
|
|
2262
|
-
class
|
|
2262
|
+
class xl {
|
|
2263
2263
|
/**
|
|
2264
2264
|
* This method takes React props and returns found MotionValues. For example, HTML
|
|
2265
2265
|
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
|
@@ -2278,7 +2278,7 @@ class Tl {
|
|
|
2278
2278
|
this.renderScheduledAt < d && (this.renderScheduledAt = d, A.render(this.render, !1, !0));
|
|
2279
2279
|
};
|
|
2280
2280
|
const { latestValues: u, renderState: c } = a;
|
|
2281
|
-
this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = se(n), this.isVariantNode =
|
|
2281
|
+
this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = se(n), this.isVariantNode = Ys(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
2282
2282
|
const { willChange: h, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
2283
2283
|
for (const d in f) {
|
|
2284
2284
|
const m = f[d];
|
|
@@ -2289,7 +2289,7 @@ class Tl {
|
|
|
2289
2289
|
if (this.hasBeenMounted)
|
|
2290
2290
|
for (const n in this.initialValues)
|
|
2291
2291
|
this.values.get(n)?.jump(this.initialValues[n]), this.latestValues[n] = this.initialValues[n];
|
|
2292
|
-
this.current = e,
|
|
2292
|
+
this.current = e, pl.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (qs.current || vl(), this.shouldReduceMotion = Ke.current), process.env.NODE_ENV !== "production" && Je(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
|
|
2293
2293
|
}
|
|
2294
2294
|
unmount() {
|
|
2295
2295
|
this.projection && this.projection.unmount(), Q(this.notifyUpdate), Q(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
@@ -2308,8 +2308,8 @@ class Tl {
|
|
|
2308
2308
|
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
|
|
2309
2309
|
}
|
|
2310
2310
|
bindToMotionValue(e, n) {
|
|
2311
|
-
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), n.accelerate &&
|
|
2312
|
-
const { factory: r, keyframes: a, times: l, ease: u, duration: c } = n.accelerate, h = new
|
|
2311
|
+
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), n.accelerate && _a.has(e) && this.current instanceof HTMLElement) {
|
|
2312
|
+
const { factory: r, keyframes: a, times: l, ease: u, duration: c } = n.accelerate, h = new Es({
|
|
2313
2313
|
element: this.current,
|
|
2314
2314
|
name: e,
|
|
2315
2315
|
keyframes: a,
|
|
@@ -2377,7 +2377,7 @@ class Tl {
|
|
|
2377
2377
|
const o = "on" + s, r = e[o];
|
|
2378
2378
|
r && (this.propEventSubscriptions[s] = this.on(s, r));
|
|
2379
2379
|
}
|
|
2380
|
-
this.prevMotionValues =
|
|
2380
|
+
this.prevMotionValues = gl(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
2381
2381
|
}
|
|
2382
2382
|
getProps() {
|
|
2383
2383
|
return this.props;
|
|
@@ -2442,7 +2442,7 @@ class Tl {
|
|
|
2442
2442
|
*/
|
|
2443
2443
|
readValue(e, n) {
|
|
2444
2444
|
let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
2445
|
-
return i != null && (typeof i == "string" && (
|
|
2445
|
+
return i != null && (typeof i == "string" && (qi(i) || Ji(i)) ? i = parseFloat(i) : !ml(i) && H.test(n) && (i = Ks(e, n)), this.setBaseTarget(e, k(i) ? i.get() : i)), k(i) ? i.get() : i;
|
|
2446
2446
|
}
|
|
2447
2447
|
/**
|
|
2448
2448
|
* Set the base target to later animate back to. This is currently
|
|
@@ -2477,9 +2477,9 @@ class Tl {
|
|
|
2477
2477
|
gn.render(this.render);
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
|
-
class
|
|
2480
|
+
class Js extends xl {
|
|
2481
2481
|
constructor() {
|
|
2482
|
-
super(...arguments), this.KeyframeResolver =
|
|
2482
|
+
super(...arguments), this.KeyframeResolver = Ga;
|
|
2483
2483
|
}
|
|
2484
2484
|
sortInstanceNodePosition(e, n) {
|
|
2485
2485
|
return e.compareDocumentPosition(n) & 2 ? 1 : -1;
|
|
@@ -2506,16 +2506,16 @@ class tt {
|
|
|
2506
2506
|
update() {
|
|
2507
2507
|
}
|
|
2508
2508
|
}
|
|
2509
|
-
function
|
|
2509
|
+
function Qs({ top: t, left: e, right: n, bottom: i }) {
|
|
2510
2510
|
return {
|
|
2511
2511
|
x: { min: e, max: n },
|
|
2512
2512
|
y: { min: t, max: i }
|
|
2513
2513
|
};
|
|
2514
2514
|
}
|
|
2515
|
-
function
|
|
2515
|
+
function wl({ x: t, y: e }) {
|
|
2516
2516
|
return { top: e.min, right: t.max, bottom: e.max, left: t.min };
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function Pl(t, e) {
|
|
2519
2519
|
if (!e)
|
|
2520
2520
|
return t;
|
|
2521
2521
|
const n = e({ x: t.left, y: t.top }), i = e({ x: t.right, y: t.bottom });
|
|
@@ -2533,9 +2533,9 @@ function $e({ scale: t, scaleX: e, scaleY: n }) {
|
|
|
2533
2533
|
return !me(t) || !me(e) || !me(n);
|
|
2534
2534
|
}
|
|
2535
2535
|
function it(t) {
|
|
2536
|
-
return $e(t) ||
|
|
2536
|
+
return $e(t) || tr(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2538
|
+
function tr(t) {
|
|
2539
2539
|
return ti(t.x) || ti(t.y);
|
|
2540
2540
|
}
|
|
2541
2541
|
function ti(t) {
|
|
@@ -2551,11 +2551,11 @@ function ei(t, e, n, i, s) {
|
|
|
2551
2551
|
function ze(t, e = 0, n = 1, i, s) {
|
|
2552
2552
|
t.min = ei(t.min, e, n, i, s), t.max = ei(t.max, e, n, i, s);
|
|
2553
2553
|
}
|
|
2554
|
-
function
|
|
2554
|
+
function er(t, { x: e, y: n }) {
|
|
2555
2555
|
ze(t.x, e.translate, e.scale, e.originPoint), ze(t.y, n.translate, n.scale, n.originPoint);
|
|
2556
2556
|
}
|
|
2557
2557
|
const ni = 0.999999999999, ii = 1.0000000000001;
|
|
2558
|
-
function
|
|
2558
|
+
function Sl(t, e, n, i = !1) {
|
|
2559
2559
|
const s = n.length;
|
|
2560
2560
|
if (!s)
|
|
2561
2561
|
return;
|
|
@@ -2567,7 +2567,7 @@ function Pl(t, e, n, i = !1) {
|
|
|
2567
2567
|
l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && pt(t, {
|
|
2568
2568
|
x: -o.scroll.offset.x,
|
|
2569
2569
|
y: -o.scroll.offset.y
|
|
2570
|
-
}), r && (e.x *= r.x.scale, e.y *= r.y.scale,
|
|
2570
|
+
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, er(t, r)), i && it(o.latestValues) && pt(t, o.latestValues));
|
|
2571
2571
|
}
|
|
2572
2572
|
e.x < ii && e.x > ni && (e.x = 1), e.y < ii && e.y > ni && (e.y = 1);
|
|
2573
2573
|
}
|
|
@@ -2578,25 +2578,28 @@ function si(t, e, n, i, s = 0.5) {
|
|
|
2578
2578
|
const o = D(t.min, t.max, s);
|
|
2579
2579
|
ze(t, e, n, o, i);
|
|
2580
2580
|
}
|
|
2581
|
+
function ri(t, e) {
|
|
2582
|
+
return typeof t == "string" ? parseFloat(t) / 100 * (e.max - e.min) : t;
|
|
2583
|
+
}
|
|
2581
2584
|
function pt(t, e) {
|
|
2582
|
-
si(t.x, e.x, e.scaleX, e.scale, e.originX), si(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
2585
|
+
si(t.x, ri(e.x, t.x), e.scaleX, e.scale, e.originX), si(t.y, ri(e.y, t.y), e.scaleY, e.scale, e.originY);
|
|
2583
2586
|
}
|
|
2584
|
-
function
|
|
2585
|
-
return
|
|
2587
|
+
function nr(t, e) {
|
|
2588
|
+
return Qs(Pl(t.getBoundingClientRect(), e));
|
|
2586
2589
|
}
|
|
2587
|
-
function
|
|
2588
|
-
const i =
|
|
2590
|
+
function bl(t, e, n) {
|
|
2591
|
+
const i = nr(t, n), { scroll: s } = e;
|
|
2589
2592
|
return s && (mt(i.x, s.offset.x), mt(i.y, s.offset.y)), i;
|
|
2590
2593
|
}
|
|
2591
|
-
const
|
|
2594
|
+
const Al = {
|
|
2592
2595
|
x: "translateX",
|
|
2593
2596
|
y: "translateY",
|
|
2594
2597
|
z: "translateZ",
|
|
2595
2598
|
transformPerspective: "perspective"
|
|
2596
|
-
},
|
|
2597
|
-
function
|
|
2599
|
+
}, Vl = wt.length;
|
|
2600
|
+
function Dl(t, e, n) {
|
|
2598
2601
|
let i = "", s = !0;
|
|
2599
|
-
for (let o = 0; o <
|
|
2602
|
+
for (let o = 0; o < Vl; o++) {
|
|
2600
2603
|
const r = wt[o], a = t[r];
|
|
2601
2604
|
if (a === void 0)
|
|
2602
2605
|
continue;
|
|
@@ -2608,10 +2611,10 @@ function Vl(t, e, n) {
|
|
|
2608
2611
|
l = r.startsWith("scale") ? u === 1 : u === 0;
|
|
2609
2612
|
}
|
|
2610
2613
|
if (!l || n) {
|
|
2611
|
-
const u =
|
|
2614
|
+
const u = zs(a, pn[r]);
|
|
2612
2615
|
if (!l) {
|
|
2613
2616
|
s = !1;
|
|
2614
|
-
const c =
|
|
2617
|
+
const c = Al[r] || r;
|
|
2615
2618
|
i += `${c}(${u}) `;
|
|
2616
2619
|
}
|
|
2617
2620
|
n && (e[r] = u);
|
|
@@ -2627,20 +2630,20 @@ function wn(t, e, n) {
|
|
|
2627
2630
|
if (Pt.has(l)) {
|
|
2628
2631
|
r = !0;
|
|
2629
2632
|
continue;
|
|
2630
|
-
} else if (
|
|
2633
|
+
} else if (ds(l)) {
|
|
2631
2634
|
s[l] = u;
|
|
2632
2635
|
continue;
|
|
2633
2636
|
} else {
|
|
2634
|
-
const c =
|
|
2637
|
+
const c = zs(u, pn[l]);
|
|
2635
2638
|
l.startsWith("origin") ? (a = !0, o[l] = c) : i[l] = c;
|
|
2636
2639
|
}
|
|
2637
2640
|
}
|
|
2638
|
-
if (e.transform || (r || n ? i.transform =
|
|
2641
|
+
if (e.transform || (r || n ? i.transform = Dl(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
|
|
2639
2642
|
const { originX: l = "50%", originY: u = "50%", originZ: c = 0 } = o;
|
|
2640
2643
|
i.transformOrigin = `${l} ${u} ${c}`;
|
|
2641
2644
|
}
|
|
2642
2645
|
}
|
|
2643
|
-
function
|
|
2646
|
+
function ir(t, { style: e, vars: n }, i, s) {
|
|
2644
2647
|
const o = t.style;
|
|
2645
2648
|
let r;
|
|
2646
2649
|
for (r in e)
|
|
@@ -2649,7 +2652,7 @@ function nr(t, { style: e, vars: n }, i, s) {
|
|
|
2649
2652
|
for (r in n)
|
|
2650
2653
|
o.setProperty(r, n[r]);
|
|
2651
2654
|
}
|
|
2652
|
-
function
|
|
2655
|
+
function oi(t, e) {
|
|
2653
2656
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
2654
2657
|
}
|
|
2655
2658
|
const bt = {
|
|
@@ -2661,10 +2664,10 @@ const bt = {
|
|
|
2661
2664
|
t = parseFloat(t);
|
|
2662
2665
|
else
|
|
2663
2666
|
return t;
|
|
2664
|
-
const n =
|
|
2667
|
+
const n = oi(t, e.target.x), i = oi(t, e.target.y);
|
|
2665
2668
|
return `${n}% ${i}%`;
|
|
2666
2669
|
}
|
|
2667
|
-
},
|
|
2670
|
+
}, Ml = {
|
|
2668
2671
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
|
2669
2672
|
const i = t, s = H.parse(t);
|
|
2670
2673
|
if (s.length > 5)
|
|
@@ -2688,9 +2691,9 @@ const bt = {
|
|
|
2688
2691
|
borderTopRightRadius: bt,
|
|
2689
2692
|
borderBottomLeftRadius: bt,
|
|
2690
2693
|
borderBottomRightRadius: bt,
|
|
2691
|
-
boxShadow:
|
|
2694
|
+
boxShadow: Ml
|
|
2692
2695
|
};
|
|
2693
|
-
function
|
|
2696
|
+
function sr(t, { layout: e, layoutId: n }) {
|
|
2694
2697
|
return Pt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!He[t] || t === "opacity");
|
|
2695
2698
|
}
|
|
2696
2699
|
function Pn(t, e, n) {
|
|
@@ -2698,26 +2701,26 @@ function Pn(t, e, n) {
|
|
|
2698
2701
|
if (!i)
|
|
2699
2702
|
return o;
|
|
2700
2703
|
for (const r in i)
|
|
2701
|
-
(k(i[r]) || s && k(s[r]) ||
|
|
2704
|
+
(k(i[r]) || s && k(s[r]) || sr(r, t) || n?.getValue(r)?.liveStyle !== void 0) && (o[r] = i[r]);
|
|
2702
2705
|
return o;
|
|
2703
2706
|
}
|
|
2704
|
-
function
|
|
2707
|
+
function Cl(t) {
|
|
2705
2708
|
return window.getComputedStyle(t);
|
|
2706
2709
|
}
|
|
2707
|
-
class
|
|
2710
|
+
class El extends Js {
|
|
2708
2711
|
constructor() {
|
|
2709
|
-
super(...arguments), this.type = "html", this.renderInstance =
|
|
2712
|
+
super(...arguments), this.type = "html", this.renderInstance = ir;
|
|
2710
2713
|
}
|
|
2711
2714
|
readValueFromInstance(e, n) {
|
|
2712
2715
|
if (Pt.has(n))
|
|
2713
|
-
return this.projection?.isProjecting ? Re(n) :
|
|
2716
|
+
return this.projection?.isProjecting ? Re(n) : _o(e, n);
|
|
2714
2717
|
{
|
|
2715
|
-
const i =
|
|
2718
|
+
const i = Cl(e), s = (ds(n) ? i.getPropertyValue(n) : i[n]) || 0;
|
|
2716
2719
|
return typeof s == "string" ? s.trim() : s;
|
|
2717
2720
|
}
|
|
2718
2721
|
}
|
|
2719
2722
|
measureInstanceViewportBox(e, { transformPagePoint: n }) {
|
|
2720
|
-
return
|
|
2723
|
+
return nr(e, n);
|
|
2721
2724
|
}
|
|
2722
2725
|
build(e, n, i) {
|
|
2723
2726
|
wn(e, n, i.transformTemplate);
|
|
@@ -2726,25 +2729,25 @@ class Cl extends Zs {
|
|
|
2726
2729
|
return Pn(e, n, i);
|
|
2727
2730
|
}
|
|
2728
2731
|
}
|
|
2729
|
-
const
|
|
2732
|
+
const Rl = {
|
|
2730
2733
|
offset: "stroke-dashoffset",
|
|
2731
2734
|
array: "stroke-dasharray"
|
|
2732
|
-
},
|
|
2735
|
+
}, Ll = {
|
|
2733
2736
|
offset: "strokeDashoffset",
|
|
2734
2737
|
array: "strokeDasharray"
|
|
2735
2738
|
};
|
|
2736
|
-
function
|
|
2739
|
+
function kl(t, e, n = 1, i = 0, s = !0) {
|
|
2737
2740
|
t.pathLength = 1;
|
|
2738
|
-
const o = s ?
|
|
2741
|
+
const o = s ? Rl : Ll;
|
|
2739
2742
|
t[o.offset] = `${-i}`, t[o.array] = `${e} ${n}`;
|
|
2740
2743
|
}
|
|
2741
|
-
const
|
|
2744
|
+
const Bl = [
|
|
2742
2745
|
"offsetDistance",
|
|
2743
2746
|
"offsetPath",
|
|
2744
2747
|
"offsetRotate",
|
|
2745
2748
|
"offsetAnchor"
|
|
2746
2749
|
];
|
|
2747
|
-
function
|
|
2750
|
+
function rr(t, {
|
|
2748
2751
|
attrX: e,
|
|
2749
2752
|
attrY: n,
|
|
2750
2753
|
attrScale: i,
|
|
@@ -2761,11 +2764,11 @@ function sr(t, {
|
|
|
2761
2764
|
t.attrs = t.style, t.style = {};
|
|
2762
2765
|
const { attrs: h, style: f } = t;
|
|
2763
2766
|
h.transform && (f.transform = h.transform, delete h.transform), (f.transform || h.transformOrigin) && (f.transformOrigin = h.transformOrigin ?? "50% 50%", delete h.transformOrigin), f.transform && (f.transformBox = c?.transformBox ?? "fill-box", delete h.transformBox);
|
|
2764
|
-
for (const d of
|
|
2767
|
+
for (const d of Bl)
|
|
2765
2768
|
h[d] !== void 0 && (f[d] = h[d], delete h[d]);
|
|
2766
|
-
e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), i !== void 0 && (h.scale = i), s !== void 0 &&
|
|
2769
|
+
e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), i !== void 0 && (h.scale = i), s !== void 0 && kl(h, s, o, r, !1);
|
|
2767
2770
|
}
|
|
2768
|
-
const
|
|
2771
|
+
const or = /* @__PURE__ */ new Set([
|
|
2769
2772
|
"baseFrequency",
|
|
2770
2773
|
"diffuseConstant",
|
|
2771
2774
|
"kernelMatrix",
|
|
@@ -2789,13 +2792,13 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2789
2792
|
"startOffset",
|
|
2790
2793
|
"textLength",
|
|
2791
2794
|
"lengthAdjust"
|
|
2792
|
-
]),
|
|
2793
|
-
function
|
|
2794
|
-
|
|
2795
|
+
]), ar = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
2796
|
+
function Fl(t, e, n, i) {
|
|
2797
|
+
ir(t, e, void 0, i);
|
|
2795
2798
|
for (const s in e.attrs)
|
|
2796
|
-
t.setAttribute(
|
|
2799
|
+
t.setAttribute(or.has(s) ? s : mn(s), e.attrs[s]);
|
|
2797
2800
|
}
|
|
2798
|
-
function
|
|
2801
|
+
function lr(t, e, n) {
|
|
2799
2802
|
const i = Pn(t, e, n);
|
|
2800
2803
|
for (const s in t)
|
|
2801
2804
|
if (k(t[s]) || k(e[s])) {
|
|
@@ -2804,7 +2807,7 @@ function ar(t, e, n) {
|
|
|
2804
2807
|
}
|
|
2805
2808
|
return i;
|
|
2806
2809
|
}
|
|
2807
|
-
class
|
|
2810
|
+
class Il extends Js {
|
|
2808
2811
|
constructor() {
|
|
2809
2812
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = E;
|
|
2810
2813
|
}
|
|
@@ -2813,40 +2816,40 @@ class Fl extends Zs {
|
|
|
2813
2816
|
}
|
|
2814
2817
|
readValueFromInstance(e, n) {
|
|
2815
2818
|
if (Pt.has(n)) {
|
|
2816
|
-
const i =
|
|
2819
|
+
const i = Ws(n);
|
|
2817
2820
|
return i && i.default || 0;
|
|
2818
2821
|
}
|
|
2819
|
-
return n =
|
|
2822
|
+
return n = or.has(n) ? n : mn(n), e.getAttribute(n);
|
|
2820
2823
|
}
|
|
2821
2824
|
scrapeMotionValuesFromProps(e, n, i) {
|
|
2822
|
-
return
|
|
2825
|
+
return lr(e, n, i);
|
|
2823
2826
|
}
|
|
2824
2827
|
build(e, n, i) {
|
|
2825
|
-
|
|
2828
|
+
rr(e, n, this.isSVGTag, i.transformTemplate, i.style);
|
|
2826
2829
|
}
|
|
2827
2830
|
renderInstance(e, n, i, s) {
|
|
2828
|
-
|
|
2831
|
+
Fl(e, n, i, s);
|
|
2829
2832
|
}
|
|
2830
2833
|
mount(e) {
|
|
2831
|
-
this.isSVGTag =
|
|
2834
|
+
this.isSVGTag = ar(e.tagName), super.mount(e);
|
|
2832
2835
|
}
|
|
2833
2836
|
}
|
|
2834
|
-
const
|
|
2835
|
-
function
|
|
2837
|
+
const Ol = xn.length;
|
|
2838
|
+
function cr(t) {
|
|
2836
2839
|
if (!t)
|
|
2837
2840
|
return;
|
|
2838
2841
|
if (!t.isControllingVariants) {
|
|
2839
|
-
const n = t.parent ?
|
|
2842
|
+
const n = t.parent ? cr(t.parent) || {} : {};
|
|
2840
2843
|
return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
|
|
2841
2844
|
}
|
|
2842
2845
|
const e = {};
|
|
2843
|
-
for (let n = 0; n <
|
|
2846
|
+
for (let n = 0; n < Ol; n++) {
|
|
2844
2847
|
const i = xn[n], s = t.props[i];
|
|
2845
2848
|
(Lt(s) || s === !1) && (e[i] = s);
|
|
2846
2849
|
}
|
|
2847
2850
|
return e;
|
|
2848
2851
|
}
|
|
2849
|
-
function
|
|
2852
|
+
function ur(t, e) {
|
|
2850
2853
|
if (!Array.isArray(e))
|
|
2851
2854
|
return !1;
|
|
2852
2855
|
const n = e.length;
|
|
@@ -2857,12 +2860,12 @@ function cr(t, e) {
|
|
|
2857
2860
|
return !1;
|
|
2858
2861
|
return !0;
|
|
2859
2862
|
}
|
|
2860
|
-
const
|
|
2861
|
-
function Nl(t) {
|
|
2862
|
-
return (e) => Promise.all(e.map(({ animation: n, options: i }) => Ba(t, n, i)));
|
|
2863
|
-
}
|
|
2863
|
+
const jl = [...Tn].reverse(), Nl = Tn.length;
|
|
2864
2864
|
function Ul(t) {
|
|
2865
|
-
|
|
2865
|
+
return (e) => Promise.all(e.map(({ animation: n, options: i }) => Fa(t, n, i)));
|
|
2866
|
+
}
|
|
2867
|
+
function Wl(t) {
|
|
2868
|
+
let e = Ul(t), n = ai(), i = !0, s = !1;
|
|
2866
2869
|
const o = (u) => (c, h) => {
|
|
2867
2870
|
const f = gt(t, h, u === "exit" ? t.presenceContext?.custom : void 0);
|
|
2868
2871
|
if (f) {
|
|
@@ -2875,10 +2878,10 @@ function Ul(t) {
|
|
|
2875
2878
|
e = u(t);
|
|
2876
2879
|
}
|
|
2877
2880
|
function a(u) {
|
|
2878
|
-
const { props: c } = t, h =
|
|
2881
|
+
const { props: c } = t, h = cr(t.parent) || {}, f = [], d = /* @__PURE__ */ new Set();
|
|
2879
2882
|
let m = {}, g = 1 / 0;
|
|
2880
|
-
for (let v = 0; v <
|
|
2881
|
-
const T =
|
|
2883
|
+
for (let v = 0; v < Nl; v++) {
|
|
2884
|
+
const T = jl[v], p = n[T], P = c[T] !== void 0 ? c[T] : h[T], w = Lt(P), b = T === u ? p.isActive : null;
|
|
2882
2885
|
b === !1 && (g = v);
|
|
2883
2886
|
let M = P === h[T] && P !== c[T] && w;
|
|
2884
2887
|
if (M && (i || s) && t.manuallyAnimateOnMount && (M = !1), p.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
|
|
@@ -2893,14 +2896,14 @@ function Ul(t) {
|
|
|
2893
2896
|
});
|
|
2894
2897
|
continue;
|
|
2895
2898
|
}
|
|
2896
|
-
const S =
|
|
2899
|
+
const S = Kl(p.prevProp, P);
|
|
2897
2900
|
let B = S || // If we're making this variant active, we want to always make it active
|
|
2898
2901
|
T === u && p.isActive && !M && w || // If we removed a higher-priority variant (i is in reverse order)
|
|
2899
2902
|
v > g && w, j = !1;
|
|
2900
2903
|
const oe = Array.isArray(P) ? P : [P];
|
|
2901
2904
|
let St = oe.reduce(o(T), {});
|
|
2902
2905
|
b === !1 && (St = {});
|
|
2903
|
-
const { prevResolvedValues: An = {} } = p,
|
|
2906
|
+
const { prevResolvedValues: An = {} } = p, Br = {
|
|
2904
2907
|
...An,
|
|
2905
2908
|
...St
|
|
2906
2909
|
}, Vn = (R) => {
|
|
@@ -2908,12 +2911,12 @@ function Ul(t) {
|
|
|
2908
2911
|
const N = t.getValue(R);
|
|
2909
2912
|
N && (N.liveStyle = !1);
|
|
2910
2913
|
};
|
|
2911
|
-
for (const R in
|
|
2914
|
+
for (const R in Br) {
|
|
2912
2915
|
const N = St[R], et = An[R];
|
|
2913
2916
|
if (m.hasOwnProperty(R))
|
|
2914
2917
|
continue;
|
|
2915
2918
|
let lt = !1;
|
|
2916
|
-
Oe(N) && Oe(et) ? lt = !
|
|
2919
|
+
Oe(N) && Oe(et) ? lt = !ur(N, et) : lt = N !== et, lt ? N != null ? Vn(R) : d.add(R) : N !== void 0 && d.has(R) ? Vn(R) : p.protectedKeys[R] = !0;
|
|
2917
2920
|
}
|
|
2918
2921
|
p.prevProp = P, p.prevResolvedValues = St, p.isActive && (m = { ...m, ...St }), (i || s) && t.blockInitialAnimation && (B = !1);
|
|
2919
2922
|
const Dn = M && S;
|
|
@@ -2922,8 +2925,8 @@ function Ul(t) {
|
|
|
2922
2925
|
if (typeof R == "string" && (i || s) && !Dn && t.manuallyAnimateOnMount && t.parent) {
|
|
2923
2926
|
const { parent: et } = t, lt = gt(et, R);
|
|
2924
2927
|
if (et.enteringChildren && lt) {
|
|
2925
|
-
const { delayChildren:
|
|
2926
|
-
N.delay =
|
|
2928
|
+
const { delayChildren: Fr } = lt.transition || {};
|
|
2929
|
+
N.delay = Ls(et.enteringChildren, t, Fr);
|
|
2927
2930
|
}
|
|
2928
2931
|
}
|
|
2929
2932
|
return {
|
|
@@ -2961,12 +2964,12 @@ function Ul(t) {
|
|
|
2961
2964
|
setAnimateFunction: r,
|
|
2962
2965
|
getState: () => n,
|
|
2963
2966
|
reset: () => {
|
|
2964
|
-
n =
|
|
2967
|
+
n = ai(), s = !0;
|
|
2965
2968
|
}
|
|
2966
2969
|
};
|
|
2967
2970
|
}
|
|
2968
|
-
function
|
|
2969
|
-
return typeof e == "string" ? e !== t : Array.isArray(e) ? !
|
|
2971
|
+
function Kl(t, e) {
|
|
2972
|
+
return typeof e == "string" ? e !== t : Array.isArray(e) ? !ur(e, t) : !1;
|
|
2970
2973
|
}
|
|
2971
2974
|
function nt(t = !1) {
|
|
2972
2975
|
return {
|
|
@@ -2976,7 +2979,7 @@ function nt(t = !1) {
|
|
|
2976
2979
|
prevResolvedValues: {}
|
|
2977
2980
|
};
|
|
2978
2981
|
}
|
|
2979
|
-
function
|
|
2982
|
+
function ai() {
|
|
2980
2983
|
return {
|
|
2981
2984
|
animate: nt(!0),
|
|
2982
2985
|
whileInView: nt(),
|
|
@@ -2987,84 +2990,84 @@ function oi() {
|
|
|
2987
2990
|
exit: nt()
|
|
2988
2991
|
};
|
|
2989
2992
|
}
|
|
2990
|
-
function
|
|
2993
|
+
function li(t, e) {
|
|
2991
2994
|
t.min = e.min, t.max = e.max;
|
|
2992
2995
|
}
|
|
2993
2996
|
function $(t, e) {
|
|
2994
|
-
|
|
2997
|
+
li(t.x, e.x), li(t.y, e.y);
|
|
2995
2998
|
}
|
|
2996
|
-
function
|
|
2999
|
+
function ci(t, e) {
|
|
2997
3000
|
t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
|
|
2998
3001
|
}
|
|
2999
|
-
const
|
|
3002
|
+
const hr = 1e-4, $l = 1 - hr, zl = 1 + hr, fr = 0.01, Hl = 0 - fr, Gl = 0 + fr;
|
|
3000
3003
|
function I(t) {
|
|
3001
3004
|
return t.max - t.min;
|
|
3002
3005
|
}
|
|
3003
|
-
function
|
|
3006
|
+
function _l(t, e, n) {
|
|
3004
3007
|
return Math.abs(t - e) <= n;
|
|
3005
3008
|
}
|
|
3006
|
-
function
|
|
3007
|
-
t.origin = i, t.originPoint = D(e.min, e.max, t.origin), t.scale = I(n) / I(e), t.translate = D(n.min, n.max, t.origin) - t.originPoint, (t.scale >=
|
|
3009
|
+
function ui(t, e, n, i = 0.5) {
|
|
3010
|
+
t.origin = i, t.originPoint = D(e.min, e.max, t.origin), t.scale = I(n) / I(e), t.translate = D(n.min, n.max, t.origin) - t.originPoint, (t.scale >= $l && t.scale <= zl || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Hl && t.translate <= Gl || isNaN(t.translate)) && (t.translate = 0);
|
|
3008
3011
|
}
|
|
3009
3012
|
function Dt(t, e, n, i) {
|
|
3010
|
-
|
|
3013
|
+
ui(t.x, e.x, n.x, i ? i.originX : void 0), ui(t.y, e.y, n.y, i ? i.originY : void 0);
|
|
3011
3014
|
}
|
|
3012
|
-
function
|
|
3015
|
+
function hi(t, e, n) {
|
|
3013
3016
|
t.min = n.min + e.min, t.max = t.min + I(e);
|
|
3014
3017
|
}
|
|
3015
|
-
function
|
|
3016
|
-
|
|
3018
|
+
function Xl(t, e, n) {
|
|
3019
|
+
hi(t.x, e.x, n.x), hi(t.y, e.y, n.y);
|
|
3017
3020
|
}
|
|
3018
|
-
function
|
|
3021
|
+
function fi(t, e, n) {
|
|
3019
3022
|
t.min = e.min - n.min, t.max = t.min + I(e);
|
|
3020
3023
|
}
|
|
3021
3024
|
function te(t, e, n) {
|
|
3022
|
-
|
|
3025
|
+
fi(t.x, e.x, n.x), fi(t.y, e.y, n.y);
|
|
3023
3026
|
}
|
|
3024
|
-
function
|
|
3027
|
+
function di(t, e, n, i, s) {
|
|
3025
3028
|
return t -= e, t = Qt(t, 1 / n, i), s !== void 0 && (t = Qt(t, 1 / s, i)), t;
|
|
3026
3029
|
}
|
|
3027
|
-
function
|
|
3030
|
+
function Yl(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
|
|
3028
3031
|
if (_.test(e) && (e = parseFloat(e), e = D(r.min, r.max, e / 100) - r.min), typeof e != "number")
|
|
3029
3032
|
return;
|
|
3030
3033
|
let a = D(o.min, o.max, i);
|
|
3031
|
-
t === o && (a -= e), t.min =
|
|
3034
|
+
t === o && (a -= e), t.min = di(t.min, e, n, a, s), t.max = di(t.max, e, n, a, s);
|
|
3032
3035
|
}
|
|
3033
|
-
function
|
|
3034
|
-
|
|
3036
|
+
function mi(t, e, [n, i, s], o, r) {
|
|
3037
|
+
Yl(t, e[n], e[i], e[s], e.scale, o, r);
|
|
3035
3038
|
}
|
|
3036
|
-
const
|
|
3037
|
-
function
|
|
3038
|
-
|
|
3039
|
+
const ql = ["x", "scaleX", "originX"], Zl = ["y", "scaleY", "originY"];
|
|
3040
|
+
function pi(t, e, n, i) {
|
|
3041
|
+
mi(t.x, e, ql, n ? n.x : void 0, i ? i.x : void 0), mi(t.y, e, Zl, n ? n.y : void 0, i ? i.y : void 0);
|
|
3039
3042
|
}
|
|
3040
|
-
function
|
|
3043
|
+
function gi(t) {
|
|
3041
3044
|
return t.translate === 0 && t.scale === 1;
|
|
3042
3045
|
}
|
|
3043
|
-
function
|
|
3044
|
-
return
|
|
3046
|
+
function dr(t) {
|
|
3047
|
+
return gi(t.x) && gi(t.y);
|
|
3045
3048
|
}
|
|
3046
|
-
function
|
|
3049
|
+
function yi(t, e) {
|
|
3047
3050
|
return t.min === e.min && t.max === e.max;
|
|
3048
3051
|
}
|
|
3049
|
-
function
|
|
3050
|
-
return
|
|
3052
|
+
function Jl(t, e) {
|
|
3053
|
+
return yi(t.x, e.x) && yi(t.y, e.y);
|
|
3051
3054
|
}
|
|
3052
|
-
function
|
|
3055
|
+
function vi(t, e) {
|
|
3053
3056
|
return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
|
|
3054
3057
|
}
|
|
3055
|
-
function
|
|
3056
|
-
return
|
|
3058
|
+
function mr(t, e) {
|
|
3059
|
+
return vi(t.x, e.x) && vi(t.y, e.y);
|
|
3057
3060
|
}
|
|
3058
|
-
function
|
|
3061
|
+
function Ti(t) {
|
|
3059
3062
|
return I(t.x) / I(t.y);
|
|
3060
3063
|
}
|
|
3061
|
-
function
|
|
3064
|
+
function xi(t, e) {
|
|
3062
3065
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
3063
3066
|
}
|
|
3064
3067
|
function G(t) {
|
|
3065
3068
|
return [t("x"), t("y")];
|
|
3066
3069
|
}
|
|
3067
|
-
function
|
|
3070
|
+
function Ql(t, e, n) {
|
|
3068
3071
|
let i = "";
|
|
3069
3072
|
const s = t.x.translate / e.x, o = t.y.translate / e.y, r = n?.z || 0;
|
|
3070
3073
|
if ((s || o || r) && (i = `translate3d(${s}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
|
|
@@ -3074,34 +3077,34 @@ function Jl(t, e, n) {
|
|
|
3074
3077
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
3075
3078
|
return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
|
|
3076
3079
|
}
|
|
3077
|
-
const
|
|
3078
|
-
function
|
|
3079
|
-
s ? (t.opacity = D(0, n.opacity ?? 1,
|
|
3080
|
-
for (let r = 0; r <
|
|
3081
|
-
const a = `border${
|
|
3082
|
-
let l =
|
|
3080
|
+
const pr = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], tc = pr.length, wi = (t) => typeof t == "string" ? parseFloat(t) : t, Pi = (t) => typeof t == "number" || y.test(t);
|
|
3081
|
+
function ec(t, e, n, i, s, o) {
|
|
3082
|
+
s ? (t.opacity = D(0, n.opacity ?? 1, nc(i)), t.opacityExit = D(e.opacity ?? 1, 0, ic(i))) : o && (t.opacity = D(e.opacity ?? 1, n.opacity ?? 1, i));
|
|
3083
|
+
for (let r = 0; r < tc; r++) {
|
|
3084
|
+
const a = `border${pr[r]}Radius`;
|
|
3085
|
+
let l = Si(e, a), u = Si(n, a);
|
|
3083
3086
|
if (l === void 0 && u === void 0)
|
|
3084
3087
|
continue;
|
|
3085
|
-
l || (l = 0), u || (u = 0), l === 0 || u === 0 ||
|
|
3088
|
+
l || (l = 0), u || (u = 0), l === 0 || u === 0 || Pi(l) === Pi(u) ? (t[a] = Math.max(D(wi(l), wi(u), i), 0), (_.test(u) || _.test(l)) && (t[a] += "%")) : t[a] = u;
|
|
3086
3089
|
}
|
|
3087
3090
|
(e.rotate || n.rotate) && (t.rotate = D(e.rotate || 0, n.rotate || 0, i));
|
|
3088
3091
|
}
|
|
3089
|
-
function
|
|
3092
|
+
function Si(t, e) {
|
|
3090
3093
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
3091
3094
|
}
|
|
3092
|
-
const
|
|
3093
|
-
function
|
|
3095
|
+
const nc = /* @__PURE__ */ gr(0, 0.5, as), ic = /* @__PURE__ */ gr(0.5, 0.95, W);
|
|
3096
|
+
function gr(t, e, n) {
|
|
3094
3097
|
return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ Ct(t, e, i));
|
|
3095
3098
|
}
|
|
3096
|
-
function
|
|
3099
|
+
function sc(t, e, n) {
|
|
3097
3100
|
const i = k(t) ? t : yt(t);
|
|
3098
3101
|
return i.start(fn("", i, e, n)), i.animation;
|
|
3099
3102
|
}
|
|
3100
3103
|
function kt(t, e, n, i = { passive: !0 }) {
|
|
3101
3104
|
return t.addEventListener(e, n, i), () => t.removeEventListener(e, n);
|
|
3102
3105
|
}
|
|
3103
|
-
const
|
|
3104
|
-
class
|
|
3106
|
+
const rc = (t, e) => t.depth - e.depth;
|
|
3107
|
+
class oc {
|
|
3105
3108
|
constructor() {
|
|
3106
3109
|
this.children = [], this.isDirty = !1;
|
|
3107
3110
|
}
|
|
@@ -3112,10 +3115,10 @@ class rc {
|
|
|
3112
3115
|
Xt(this.children, e), this.isDirty = !0;
|
|
3113
3116
|
}
|
|
3114
3117
|
forEach(e) {
|
|
3115
|
-
this.isDirty && this.children.sort(
|
|
3118
|
+
this.isDirty && this.children.sort(rc), this.isDirty = !1, this.children.forEach(e);
|
|
3116
3119
|
}
|
|
3117
3120
|
}
|
|
3118
|
-
function
|
|
3121
|
+
function ac(t, e) {
|
|
3119
3122
|
const n = F.now(), i = ({ timestamp: s }) => {
|
|
3120
3123
|
const o = s - n;
|
|
3121
3124
|
o >= e && (Q(i), t(o - e));
|
|
@@ -3125,7 +3128,7 @@ function oc(t, e) {
|
|
|
3125
3128
|
function Gt(t) {
|
|
3126
3129
|
return k(t) ? t.get() : t;
|
|
3127
3130
|
}
|
|
3128
|
-
class
|
|
3131
|
+
class lc {
|
|
3129
3132
|
constructor() {
|
|
3130
3133
|
this.members = [];
|
|
3131
3134
|
}
|
|
@@ -3185,37 +3188,37 @@ const _t = {
|
|
|
3185
3188
|
* update will be given a `data-projection-id` attribute.
|
|
3186
3189
|
*/
|
|
3187
3190
|
hasEverUpdated: !1
|
|
3188
|
-
}, pe = ["", "X", "Y", "Z"],
|
|
3189
|
-
let
|
|
3191
|
+
}, pe = ["", "X", "Y", "Z"], cc = 1e3;
|
|
3192
|
+
let uc = 0;
|
|
3190
3193
|
function ge(t, e, n, i) {
|
|
3191
3194
|
const { latestValues: s } = e;
|
|
3192
3195
|
s[t] && (n[t] = s[t], e.setStaticValue(t, 0), i && (i[t] = 0));
|
|
3193
3196
|
}
|
|
3194
|
-
function
|
|
3197
|
+
function yr(t) {
|
|
3195
3198
|
if (t.hasCheckedOptimisedAppear = !0, t.root === t)
|
|
3196
3199
|
return;
|
|
3197
3200
|
const { visualElement: e } = t.options;
|
|
3198
3201
|
if (!e)
|
|
3199
3202
|
return;
|
|
3200
|
-
const n =
|
|
3203
|
+
const n = Os(e);
|
|
3201
3204
|
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
3202
3205
|
const { layout: s, layoutId: o } = t.options;
|
|
3203
3206
|
window.MotionCancelOptimisedAnimation(n, "transform", A, !(s || o));
|
|
3204
3207
|
}
|
|
3205
3208
|
const { parent: i } = t;
|
|
3206
|
-
i && !i.hasCheckedOptimisedAppear &&
|
|
3209
|
+
i && !i.hasCheckedOptimisedAppear && yr(i);
|
|
3207
3210
|
}
|
|
3208
|
-
function
|
|
3211
|
+
function vr({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
|
|
3209
3212
|
return class {
|
|
3210
3213
|
constructor(r = {}, a = e?.()) {
|
|
3211
|
-
this.id =
|
|
3214
|
+
this.id = uc++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
3212
3215
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
3213
3216
|
}, this.updateProjection = () => {
|
|
3214
|
-
this.projectionUpdateScheduled = !1, this.nodes.forEach(
|
|
3217
|
+
this.projectionUpdateScheduled = !1, this.nodes.forEach(dc), this.nodes.forEach(yc), this.nodes.forEach(vc), this.nodes.forEach(mc);
|
|
3215
3218
|
}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
3216
3219
|
for (let l = 0; l < this.path.length; l++)
|
|
3217
3220
|
this.path[l].shouldResetTransform = !0;
|
|
3218
|
-
this.root === this && (this.nodes = new
|
|
3221
|
+
this.root === this && (this.nodes = new oc());
|
|
3219
3222
|
}
|
|
3220
3223
|
addEventListener(r, a) {
|
|
3221
3224
|
return this.eventHandlers.has(r) || this.eventHandlers.set(r, new Ze()), this.eventHandlers.get(r).add(a);
|
|
@@ -3233,7 +3236,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3233
3236
|
mount(r) {
|
|
3234
3237
|
if (this.instance)
|
|
3235
3238
|
return;
|
|
3236
|
-
this.isSVG = vn(r) && !
|
|
3239
|
+
this.isSVG = vn(r) && !fl(r), this.instance = r;
|
|
3237
3240
|
const { layoutId: a, layout: l, visualElement: u } = this.options;
|
|
3238
3241
|
if (u && !u.current && u.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
|
|
3239
3242
|
let c, h = 0;
|
|
@@ -3242,7 +3245,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3242
3245
|
h = window.innerWidth;
|
|
3243
3246
|
}), t(r, () => {
|
|
3244
3247
|
const d = window.innerWidth;
|
|
3245
|
-
d !== h && (h = d, this.root.updateBlockedByResize = !0, c && c(), c =
|
|
3248
|
+
d !== h && (h = d, this.root.updateBlockedByResize = !0, c && c(), c = ac(f, 250), _t.hasAnimatedSinceResize && (_t.hasAnimatedSinceResize = !1, this.nodes.forEach(Vi)));
|
|
3246
3249
|
});
|
|
3247
3250
|
}
|
|
3248
3251
|
a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && u && (a || l) && this.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: d }) => {
|
|
@@ -3250,7 +3253,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3250
3253
|
this.target = void 0, this.relativeTarget = void 0;
|
|
3251
3254
|
return;
|
|
3252
3255
|
}
|
|
3253
|
-
const m = this.options.transition || u.getDefaultTransition() ||
|
|
3256
|
+
const m = this.options.transition || u.getDefaultTransition() || Sc, { onLayoutAnimationStart: g, onLayoutAnimationComplete: x } = u.getProps(), v = !this.targetLayout || !mr(this.targetLayout, d), T = !h && f;
|
|
3254
3257
|
if (this.options.layoutRoot || this.resumeFrom || T || h && (v || !this.currentAnimation)) {
|
|
3255
3258
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
3256
3259
|
const p = {
|
|
@@ -3260,7 +3263,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3260
3263
|
};
|
|
3261
3264
|
(u.shouldReduceMotion || this.options.layoutRoot) && (p.delay = 0, p.type = !1), this.startAnimation(p), this.setAnimationOrigin(c, T);
|
|
3262
3265
|
} else
|
|
3263
|
-
h ||
|
|
3266
|
+
h || Vi(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
3264
3267
|
this.targetLayout = d;
|
|
3265
3268
|
});
|
|
3266
3269
|
}
|
|
@@ -3284,7 +3287,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3284
3287
|
}
|
|
3285
3288
|
// Note: currently only running on root node
|
|
3286
3289
|
startUpdate() {
|
|
3287
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
|
3290
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Tc), this.animationId++);
|
|
3288
3291
|
}
|
|
3289
3292
|
getTransformTemplate() {
|
|
3290
3293
|
const { visualElement: r } = this.options;
|
|
@@ -3295,7 +3298,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3295
3298
|
this.options.onExitComplete && this.options.onExitComplete();
|
|
3296
3299
|
return;
|
|
3297
3300
|
}
|
|
3298
|
-
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear &&
|
|
3301
|
+
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && yr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
|
|
3299
3302
|
return;
|
|
3300
3303
|
this.isLayoutDirty = !0;
|
|
3301
3304
|
for (let c = 0; c < this.path.length; c++) {
|
|
@@ -3310,14 +3313,14 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3310
3313
|
}
|
|
3311
3314
|
update() {
|
|
3312
3315
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
3313
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
|
3316
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(bi);
|
|
3314
3317
|
return;
|
|
3315
3318
|
}
|
|
3316
3319
|
if (this.animationId <= this.animationCommitId) {
|
|
3317
|
-
this.nodes.forEach(
|
|
3320
|
+
this.nodes.forEach(Ai);
|
|
3318
3321
|
return;
|
|
3319
3322
|
}
|
|
3320
|
-
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(
|
|
3323
|
+
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(gc), this.nodes.forEach(hc), this.nodes.forEach(fc)) : this.nodes.forEach(Ai), this.clearAllSnapshots();
|
|
3321
3324
|
const a = F.now();
|
|
3322
3325
|
L.delta = X(0, 1e3 / 60, a - L.timestamp), L.timestamp = a, L.isProcessing = !0, ae.update.process(L), ae.preRender.process(L), ae.render.process(L), L.isProcessing = !1;
|
|
3323
3326
|
}
|
|
@@ -3325,7 +3328,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3325
3328
|
this.updateScheduled || (this.updateScheduled = !0, gn.read(this.scheduleUpdate));
|
|
3326
3329
|
}
|
|
3327
3330
|
clearAllSnapshots() {
|
|
3328
|
-
this.nodes.forEach(
|
|
3331
|
+
this.nodes.forEach(pc), this.sharedNodes.forEach(xc);
|
|
3329
3332
|
}
|
|
3330
3333
|
scheduleUpdateProjection() {
|
|
3331
3334
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, A.preRender(this.updateProjection, !1, !0));
|
|
@@ -3368,13 +3371,13 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3368
3371
|
resetTransform() {
|
|
3369
3372
|
if (!s)
|
|
3370
3373
|
return;
|
|
3371
|
-
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !
|
|
3374
|
+
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !dr(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
|
|
3372
3375
|
r && this.instance && (a || it(this.latestValues) || c) && (s(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
|
|
3373
3376
|
}
|
|
3374
3377
|
measure(r = !0) {
|
|
3375
3378
|
const a = this.measurePageBox();
|
|
3376
3379
|
let l = this.removeElementScroll(a);
|
|
3377
|
-
return r && (l = this.removeTransform(l)),
|
|
3380
|
+
return r && (l = this.removeTransform(l)), bc(l), {
|
|
3378
3381
|
animationId: this.root.animationId,
|
|
3379
3382
|
measuredBox: a,
|
|
3380
3383
|
layoutBox: l,
|
|
@@ -3387,7 +3390,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3387
3390
|
if (!r)
|
|
3388
3391
|
return E();
|
|
3389
3392
|
const a = r.measureViewportBox();
|
|
3390
|
-
if (!(this.scroll?.wasRoot || this.path.some(
|
|
3393
|
+
if (!(this.scroll?.wasRoot || this.path.some(Ac))) {
|
|
3391
3394
|
const { scroll: u } = this.root;
|
|
3392
3395
|
u && (mt(a.x, u.offset.x), mt(a.y, u.offset.y));
|
|
3393
3396
|
}
|
|
@@ -3424,9 +3427,9 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3424
3427
|
continue;
|
|
3425
3428
|
$e(u.latestValues) && u.updateSnapshot();
|
|
3426
3429
|
const c = E(), h = u.measurePageBox();
|
|
3427
|
-
$(c, h),
|
|
3430
|
+
$(c, h), pi(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
3428
3431
|
}
|
|
3429
|
-
return it(this.latestValues) &&
|
|
3432
|
+
return it(this.latestValues) && pi(a, this.latestValues), a;
|
|
3430
3433
|
}
|
|
3431
3434
|
setTargetDelta(r) {
|
|
3432
3435
|
this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -3455,10 +3458,10 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3455
3458
|
return;
|
|
3456
3459
|
this.resolvedRelativeTargetAt = L.timestamp;
|
|
3457
3460
|
const f = this.getClosestProjectingParent();
|
|
3458
|
-
f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = E(), this.targetWithTransforms = E()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
|
3461
|
+
f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = E(), this.targetWithTransforms = E()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Xl(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : $(this.target, this.layout.layoutBox), er(this.target, this.targetDelta)) : $(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
|
|
3459
3462
|
}
|
|
3460
3463
|
getClosestProjectingParent() {
|
|
3461
|
-
if (!(!this.parent || $e(this.parent.latestValues) ||
|
|
3464
|
+
if (!(!this.parent || $e(this.parent.latestValues) || tr(this.parent.latestValues)))
|
|
3462
3465
|
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
3463
3466
|
}
|
|
3464
3467
|
isProjecting() {
|
|
@@ -3480,13 +3483,13 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3480
3483
|
return;
|
|
3481
3484
|
$(this.layoutCorrected, this.layout.layoutBox);
|
|
3482
3485
|
const h = this.treeScale.x, f = this.treeScale.y;
|
|
3483
|
-
|
|
3486
|
+
Sl(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = E());
|
|
3484
3487
|
const { target: d } = r;
|
|
3485
3488
|
if (!d) {
|
|
3486
3489
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
3487
3490
|
return;
|
|
3488
3491
|
}
|
|
3489
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (
|
|
3492
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ci(this.prevProjectionDelta.x, this.projectionDelta.x), ci(this.prevProjectionDelta.y, this.projectionDelta.y)), Dt(this.projectionDelta, this.layoutCorrected, d, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !xi(this.projectionDelta.x, this.prevProjectionDelta.x) || !xi(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", d));
|
|
3490
3493
|
}
|
|
3491
3494
|
hide() {
|
|
3492
3495
|
this.isVisible = !1;
|
|
@@ -3507,17 +3510,17 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3507
3510
|
setAnimationOrigin(r, a = !1) {
|
|
3508
3511
|
const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, h = dt();
|
|
3509
3512
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
3510
|
-
const f = E(), d = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, g = d !== m, x = this.getStack(), v = !x || x.members.length <= 1, T = !!(g && !v && this.options.crossfade === !0 && !this.path.some(
|
|
3513
|
+
const f = E(), d = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, g = d !== m, x = this.getStack(), v = !x || x.members.length <= 1, T = !!(g && !v && this.options.crossfade === !0 && !this.path.some(Pc));
|
|
3511
3514
|
this.animationProgress = 0;
|
|
3512
3515
|
let p;
|
|
3513
3516
|
this.mixTargetDelta = (P) => {
|
|
3514
3517
|
const w = P / 1e3;
|
|
3515
|
-
|
|
3518
|
+
Di(h.x, r.x, w), Di(h.y, r.y, w), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (te(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), wc(this.relativeTarget, this.relativeTargetOrigin, f, w), p && Jl(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = E()), $(p, this.relativeTarget)), g && (this.animationValues = c, ec(c, u, this.latestValues, w, T, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
|
|
3516
3519
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3517
3520
|
}
|
|
3518
3521
|
startAnimation(r) {
|
|
3519
3522
|
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (Q(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = A.update(() => {
|
|
3520
|
-
_t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = yt(0)), this.motionValue.jump(0, !1), this.currentAnimation =
|
|
3523
|
+
_t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = yt(0)), this.motionValue.jump(0, !1), this.currentAnimation = sc(this.motionValue, [0, 1e3], {
|
|
3521
3524
|
...r,
|
|
3522
3525
|
velocity: 0,
|
|
3523
3526
|
isSync: !0,
|
|
@@ -3538,13 +3541,13 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3538
3541
|
r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
3539
3542
|
}
|
|
3540
3543
|
finishAnimation() {
|
|
3541
|
-
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(
|
|
3544
|
+
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(cc), this.currentAnimation.stop()), this.completeAnimation();
|
|
3542
3545
|
}
|
|
3543
3546
|
applyTransformsToTarget() {
|
|
3544
3547
|
const r = this.getLead();
|
|
3545
3548
|
let { targetWithTransforms: a, target: l, layout: u, latestValues: c } = r;
|
|
3546
3549
|
if (!(!a || !l || !u)) {
|
|
3547
|
-
if (this !== r && this.layout && u &&
|
|
3550
|
+
if (this !== r && this.layout && u && Tr(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
3548
3551
|
l = this.target || E();
|
|
3549
3552
|
const h = I(this.layout.layoutBox.x);
|
|
3550
3553
|
l.x.min = r.target.x.min, l.x.max = l.x.min + h;
|
|
@@ -3555,7 +3558,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3555
3558
|
}
|
|
3556
3559
|
}
|
|
3557
3560
|
registerSharedNode(r, a) {
|
|
3558
|
-
this.sharedNodes.has(r) || this.sharedNodes.set(r, new
|
|
3561
|
+
this.sharedNodes.has(r) || this.sharedNodes.set(r, new lc()), this.sharedNodes.get(r).add(a);
|
|
3559
3562
|
const u = a.options.initialPromotionConfig;
|
|
3560
3563
|
a.promote({
|
|
3561
3564
|
transition: u ? u.transition : void 0,
|
|
@@ -3624,7 +3627,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3624
3627
|
r.visibility = "";
|
|
3625
3628
|
const c = u.animationValues || u.latestValues;
|
|
3626
3629
|
this.applyTransformsToTarget();
|
|
3627
|
-
let h =
|
|
3630
|
+
let h = Ql(this.projectionDeltaWithTransform, this.treeScale, c);
|
|
3628
3631
|
l && (h = l(c, h)), r.transform = h;
|
|
3629
3632
|
const { x: f, y: d } = this.projectionDelta;
|
|
3630
3633
|
r.transformOrigin = `${f.origin * 100}% ${d.origin * 100}% 0`, u.animationValues ? r.opacity = u === this ? c.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : c.opacityExit : r.opacity = u === this ? c.opacity !== void 0 ? c.opacity : "" : c.opacityExit !== void 0 ? c.opacityExit : 0;
|
|
@@ -3646,21 +3649,21 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3646
3649
|
}
|
|
3647
3650
|
// Only run on root
|
|
3648
3651
|
resetTree() {
|
|
3649
|
-
this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(
|
|
3652
|
+
this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(bi), this.root.sharedNodes.clear();
|
|
3650
3653
|
}
|
|
3651
3654
|
};
|
|
3652
3655
|
}
|
|
3653
|
-
function
|
|
3656
|
+
function hc(t) {
|
|
3654
3657
|
t.updateLayout();
|
|
3655
3658
|
}
|
|
3656
|
-
function
|
|
3659
|
+
function fc(t) {
|
|
3657
3660
|
const e = t.resumeFrom?.snapshot || t.snapshot;
|
|
3658
3661
|
if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
|
|
3659
3662
|
const { layoutBox: n, measuredBox: i } = t.layout, { animationType: s } = t.options, o = e.source !== t.layout.source;
|
|
3660
3663
|
s === "size" ? G((c) => {
|
|
3661
3664
|
const h = o ? e.measuredBox[c] : e.layoutBox[c], f = I(h);
|
|
3662
3665
|
h.min = n[c].min, h.max = h.min + f;
|
|
3663
|
-
}) :
|
|
3666
|
+
}) : Tr(s, e.layoutBox, n) && G((c) => {
|
|
3664
3667
|
const h = o ? e.measuredBox[c] : e.layoutBox[c], f = I(n[c]);
|
|
3665
3668
|
h.max = h.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[c].max = t.relativeTarget[c].min + f);
|
|
3666
3669
|
});
|
|
@@ -3668,7 +3671,7 @@ function hc(t) {
|
|
|
3668
3671
|
Dt(r, n, e.layoutBox);
|
|
3669
3672
|
const a = dt();
|
|
3670
3673
|
o ? Dt(a, t.applyTransform(i, !0), e.measuredBox) : Dt(a, n, e.layoutBox);
|
|
3671
|
-
const l = !
|
|
3674
|
+
const l = !dr(r);
|
|
3672
3675
|
let u = !1;
|
|
3673
3676
|
if (!t.resumeFrom) {
|
|
3674
3677
|
const c = t.getClosestProjectingParent();
|
|
@@ -3678,7 +3681,7 @@ function hc(t) {
|
|
|
3678
3681
|
const d = E();
|
|
3679
3682
|
te(d, e.layoutBox, h.layoutBox);
|
|
3680
3683
|
const m = E();
|
|
3681
|
-
te(m, n, f.layoutBox),
|
|
3684
|
+
te(m, n, f.layoutBox), mr(d, m) || (u = !0), c.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = d, t.relativeParent = c);
|
|
3682
3685
|
}
|
|
3683
3686
|
}
|
|
3684
3687
|
}
|
|
@@ -3696,69 +3699,69 @@ function hc(t) {
|
|
|
3696
3699
|
}
|
|
3697
3700
|
t.options.transition = void 0;
|
|
3698
3701
|
}
|
|
3699
|
-
function
|
|
3702
|
+
function dc(t) {
|
|
3700
3703
|
t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
|
|
3701
3704
|
}
|
|
3702
|
-
function
|
|
3705
|
+
function mc(t) {
|
|
3703
3706
|
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
|
3704
3707
|
}
|
|
3705
|
-
function
|
|
3708
|
+
function pc(t) {
|
|
3706
3709
|
t.clearSnapshot();
|
|
3707
3710
|
}
|
|
3708
|
-
function
|
|
3711
|
+
function bi(t) {
|
|
3709
3712
|
t.clearMeasurements();
|
|
3710
3713
|
}
|
|
3711
|
-
function
|
|
3714
|
+
function Ai(t) {
|
|
3712
3715
|
t.isLayoutDirty = !1;
|
|
3713
3716
|
}
|
|
3714
|
-
function
|
|
3717
|
+
function gc(t) {
|
|
3715
3718
|
const { visualElement: e } = t.options;
|
|
3716
3719
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
3717
3720
|
}
|
|
3718
|
-
function
|
|
3721
|
+
function Vi(t) {
|
|
3719
3722
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
3720
3723
|
}
|
|
3721
|
-
function
|
|
3724
|
+
function yc(t) {
|
|
3722
3725
|
t.resolveTargetDelta();
|
|
3723
3726
|
}
|
|
3724
|
-
function
|
|
3727
|
+
function vc(t) {
|
|
3725
3728
|
t.calcProjection();
|
|
3726
3729
|
}
|
|
3727
|
-
function
|
|
3730
|
+
function Tc(t) {
|
|
3728
3731
|
t.resetSkewAndRotation();
|
|
3729
3732
|
}
|
|
3730
|
-
function
|
|
3733
|
+
function xc(t) {
|
|
3731
3734
|
t.removeLeadSnapshot();
|
|
3732
3735
|
}
|
|
3733
|
-
function
|
|
3736
|
+
function Di(t, e, n) {
|
|
3734
3737
|
t.translate = D(e.translate, 0, n), t.scale = D(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
|
|
3735
3738
|
}
|
|
3736
|
-
function
|
|
3739
|
+
function Mi(t, e, n, i) {
|
|
3737
3740
|
t.min = D(e.min, n.min, i), t.max = D(e.max, n.max, i);
|
|
3738
3741
|
}
|
|
3739
|
-
function
|
|
3740
|
-
|
|
3742
|
+
function wc(t, e, n, i) {
|
|
3743
|
+
Mi(t.x, e.x, n.x, i), Mi(t.y, e.y, n.y, i);
|
|
3741
3744
|
}
|
|
3742
|
-
function
|
|
3745
|
+
function Pc(t) {
|
|
3743
3746
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
3744
3747
|
}
|
|
3745
|
-
const
|
|
3748
|
+
const Sc = {
|
|
3746
3749
|
duration: 0.45,
|
|
3747
3750
|
ease: [0.4, 0, 0.1, 1]
|
|
3748
|
-
},
|
|
3749
|
-
function
|
|
3750
|
-
t.min =
|
|
3751
|
+
}, Ci = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ei = Ci("applewebkit/") && !Ci("chrome/") ? Math.round : W;
|
|
3752
|
+
function Ri(t) {
|
|
3753
|
+
t.min = Ei(t.min), t.max = Ei(t.max);
|
|
3751
3754
|
}
|
|
3752
|
-
function
|
|
3753
|
-
|
|
3755
|
+
function bc(t) {
|
|
3756
|
+
Ri(t.x), Ri(t.y);
|
|
3754
3757
|
}
|
|
3755
|
-
function
|
|
3756
|
-
return t === "position" || t === "preserve-aspect" && !
|
|
3758
|
+
function Tr(t, e, n) {
|
|
3759
|
+
return t === "position" || t === "preserve-aspect" && !_l(Ti(e), Ti(n), 0.2);
|
|
3757
3760
|
}
|
|
3758
|
-
function
|
|
3761
|
+
function Ac(t) {
|
|
3759
3762
|
return t !== t.root && t.scroll?.wasRoot;
|
|
3760
3763
|
}
|
|
3761
|
-
const
|
|
3764
|
+
const Vc = vr({
|
|
3762
3765
|
attachResizeListener: (t, e) => kt(t, "resize", e),
|
|
3763
3766
|
measureScroll: () => ({
|
|
3764
3767
|
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
|
|
@@ -3767,14 +3770,14 @@ const Ac = yr({
|
|
|
3767
3770
|
checkIsScrollRoot: () => !0
|
|
3768
3771
|
}), ye = {
|
|
3769
3772
|
current: void 0
|
|
3770
|
-
},
|
|
3773
|
+
}, xr = vr({
|
|
3771
3774
|
measureScroll: (t) => ({
|
|
3772
3775
|
x: t.scrollLeft,
|
|
3773
3776
|
y: t.scrollTop
|
|
3774
3777
|
}),
|
|
3775
3778
|
defaultParent: () => {
|
|
3776
3779
|
if (!ye.current) {
|
|
3777
|
-
const t = new
|
|
3780
|
+
const t = new Vc({});
|
|
3778
3781
|
t.mount(window), t.setOptions({ layoutScroll: !0 }), ye.current = t;
|
|
3779
3782
|
}
|
|
3780
3783
|
return ye.current;
|
|
@@ -3783,24 +3786,24 @@ const Ac = yr({
|
|
|
3783
3786
|
t.style.transform = e !== void 0 ? e : "none";
|
|
3784
3787
|
},
|
|
3785
3788
|
checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
|
|
3786
|
-
}),
|
|
3789
|
+
}), wr = vt({
|
|
3787
3790
|
transformPagePoint: (t) => t,
|
|
3788
3791
|
isStatic: !1,
|
|
3789
3792
|
reducedMotion: "never"
|
|
3790
3793
|
});
|
|
3791
|
-
function
|
|
3794
|
+
function Dc(t = !0) {
|
|
3792
3795
|
const e = O(Ye);
|
|
3793
3796
|
if (e === null)
|
|
3794
3797
|
return [!0, null];
|
|
3795
|
-
const { isPresent: n, onExitComplete: i, register: s } = e, o =
|
|
3798
|
+
const { isPresent: n, onExitComplete: i, register: s } = e, o = Or();
|
|
3796
3799
|
Xe(() => {
|
|
3797
3800
|
if (t)
|
|
3798
3801
|
return s(o);
|
|
3799
3802
|
}, [t]);
|
|
3800
|
-
const r =
|
|
3803
|
+
const r = Hi(() => t && i && i(o), [o, i, t]);
|
|
3801
3804
|
return !n && i ? [!1, r] : [!0];
|
|
3802
3805
|
}
|
|
3803
|
-
const
|
|
3806
|
+
const Pr = vt({ strict: !1 }), Li = {
|
|
3804
3807
|
animation: [
|
|
3805
3808
|
"animate",
|
|
3806
3809
|
"variants",
|
|
@@ -3820,30 +3823,30 @@ const wr = vt({ strict: !1 }), Ri = {
|
|
|
3820
3823
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
3821
3824
|
layout: ["layout", "layoutId"]
|
|
3822
3825
|
};
|
|
3823
|
-
let
|
|
3824
|
-
function
|
|
3825
|
-
if (
|
|
3826
|
+
let ki = !1;
|
|
3827
|
+
function Mc() {
|
|
3828
|
+
if (ki)
|
|
3826
3829
|
return;
|
|
3827
3830
|
const t = {};
|
|
3828
|
-
for (const e in
|
|
3831
|
+
for (const e in Li)
|
|
3829
3832
|
t[e] = {
|
|
3830
|
-
isEnabled: (n) =>
|
|
3833
|
+
isEnabled: (n) => Li[e].some((i) => !!n[i])
|
|
3831
3834
|
};
|
|
3832
|
-
|
|
3835
|
+
Zs(t), ki = !0;
|
|
3833
3836
|
}
|
|
3834
|
-
function
|
|
3835
|
-
return
|
|
3837
|
+
function Sr() {
|
|
3838
|
+
return Mc(), Tl();
|
|
3836
3839
|
}
|
|
3837
|
-
function
|
|
3838
|
-
const e =
|
|
3840
|
+
function Cc(t) {
|
|
3841
|
+
const e = Sr();
|
|
3839
3842
|
for (const n in t)
|
|
3840
3843
|
e[n] = {
|
|
3841
3844
|
...e[n],
|
|
3842
3845
|
...t[n]
|
|
3843
3846
|
};
|
|
3844
|
-
|
|
3847
|
+
Zs(e);
|
|
3845
3848
|
}
|
|
3846
|
-
const
|
|
3849
|
+
const Ec = /* @__PURE__ */ new Set([
|
|
3847
3850
|
"animate",
|
|
3848
3851
|
"exit",
|
|
3849
3852
|
"variants",
|
|
@@ -3877,25 +3880,25 @@ const Cc = /* @__PURE__ */ new Set([
|
|
|
3877
3880
|
"viewport"
|
|
3878
3881
|
]);
|
|
3879
3882
|
function ee(t) {
|
|
3880
|
-
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") ||
|
|
3883
|
+
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Ec.has(t);
|
|
3881
3884
|
}
|
|
3882
|
-
let
|
|
3883
|
-
function
|
|
3884
|
-
typeof t == "function" && (
|
|
3885
|
+
let br = (t) => !ee(t);
|
|
3886
|
+
function Rc(t) {
|
|
3887
|
+
typeof t == "function" && (br = (e) => e.startsWith("on") ? !ee(e) : t(e));
|
|
3885
3888
|
}
|
|
3886
3889
|
try {
|
|
3887
|
-
|
|
3890
|
+
Rc(require("@emotion/is-prop-valid").default);
|
|
3888
3891
|
} catch {
|
|
3889
3892
|
}
|
|
3890
|
-
function
|
|
3893
|
+
function Lc(t, e, n) {
|
|
3891
3894
|
const i = {};
|
|
3892
3895
|
for (const s in t)
|
|
3893
|
-
s === "values" && typeof t.values == "object" || (
|
|
3896
|
+
s === "values" && typeof t.values == "object" || (br(s) || n === !0 && ee(s) || !e && !ee(s) || // If trying to use native HTML drag events, forward drag listeners
|
|
3894
3897
|
t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
|
|
3895
3898
|
return i;
|
|
3896
3899
|
}
|
|
3897
3900
|
const re = /* @__PURE__ */ vt({});
|
|
3898
|
-
function
|
|
3901
|
+
function kc(t, e) {
|
|
3899
3902
|
if (se(t)) {
|
|
3900
3903
|
const { initial: n, animate: i } = t;
|
|
3901
3904
|
return {
|
|
@@ -3905,11 +3908,11 @@ function Lc(t, e) {
|
|
|
3905
3908
|
}
|
|
3906
3909
|
return t.inherit !== !1 ? e : {};
|
|
3907
3910
|
}
|
|
3908
|
-
function
|
|
3909
|
-
const { initial: e, animate: n } =
|
|
3910
|
-
return ne(() => ({ initial: e, animate: n }), [
|
|
3911
|
+
function Bc(t) {
|
|
3912
|
+
const { initial: e, animate: n } = kc(t, O(re));
|
|
3913
|
+
return ne(() => ({ initial: e, animate: n }), [Bi(e), Bi(n)]);
|
|
3911
3914
|
}
|
|
3912
|
-
function
|
|
3915
|
+
function Bi(t) {
|
|
3913
3916
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
3914
3917
|
}
|
|
3915
3918
|
const Sn = () => ({
|
|
@@ -3918,43 +3921,43 @@ const Sn = () => ({
|
|
|
3918
3921
|
transformOrigin: {},
|
|
3919
3922
|
vars: {}
|
|
3920
3923
|
});
|
|
3921
|
-
function
|
|
3924
|
+
function Ar(t, e, n) {
|
|
3922
3925
|
for (const i in e)
|
|
3923
|
-
!k(e[i]) && !
|
|
3926
|
+
!k(e[i]) && !sr(i, n) && (t[i] = e[i]);
|
|
3924
3927
|
}
|
|
3925
|
-
function
|
|
3928
|
+
function Fc({ transformTemplate: t }, e) {
|
|
3926
3929
|
return ne(() => {
|
|
3927
3930
|
const n = Sn();
|
|
3928
3931
|
return wn(n, e, t), Object.assign({}, n.vars, n.style);
|
|
3929
3932
|
}, [e]);
|
|
3930
3933
|
}
|
|
3931
|
-
function
|
|
3934
|
+
function Ic(t, e) {
|
|
3932
3935
|
const n = t.style || {}, i = {};
|
|
3933
|
-
return
|
|
3936
|
+
return Ar(i, n, t), Object.assign(i, Fc(t, e)), i;
|
|
3934
3937
|
}
|
|
3935
|
-
function
|
|
3936
|
-
const n = {}, i =
|
|
3938
|
+
function Oc(t, e) {
|
|
3939
|
+
const n = {}, i = Ic(t, e);
|
|
3937
3940
|
return t.drag && t.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = i, n;
|
|
3938
3941
|
}
|
|
3939
|
-
const
|
|
3942
|
+
const Vr = () => ({
|
|
3940
3943
|
...Sn(),
|
|
3941
3944
|
attrs: {}
|
|
3942
3945
|
});
|
|
3943
|
-
function
|
|
3946
|
+
function jc(t, e, n, i) {
|
|
3944
3947
|
const s = ne(() => {
|
|
3945
|
-
const o =
|
|
3946
|
-
return
|
|
3948
|
+
const o = Vr();
|
|
3949
|
+
return rr(o, e, ar(i), t.transformTemplate, t.style), {
|
|
3947
3950
|
...o.attrs,
|
|
3948
3951
|
style: { ...o.style }
|
|
3949
3952
|
};
|
|
3950
3953
|
}, [e]);
|
|
3951
3954
|
if (t.style) {
|
|
3952
3955
|
const o = {};
|
|
3953
|
-
|
|
3956
|
+
Ar(o, t.style, t), s.style = { ...o, ...s.style };
|
|
3954
3957
|
}
|
|
3955
3958
|
return s;
|
|
3956
3959
|
}
|
|
3957
|
-
const
|
|
3960
|
+
const Nc = [
|
|
3958
3961
|
"animate",
|
|
3959
3962
|
"circle",
|
|
3960
3963
|
"defs",
|
|
@@ -3994,32 +3997,32 @@ function bn(t) {
|
|
|
3994
3997
|
/**
|
|
3995
3998
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
3996
3999
|
*/
|
|
3997
|
-
!!(
|
|
4000
|
+
!!(Nc.indexOf(t) > -1 || /**
|
|
3998
4001
|
* If it contains a capital letter, it's an SVG component
|
|
3999
4002
|
*/
|
|
4000
4003
|
/[A-Z]/u.test(t))
|
|
4001
4004
|
)
|
|
4002
4005
|
);
|
|
4003
4006
|
}
|
|
4004
|
-
function
|
|
4005
|
-
const l = (r ?? bn(t) ?
|
|
4006
|
-
return
|
|
4007
|
+
function Uc(t, e, n, { latestValues: i }, s, o = !1, r) {
|
|
4008
|
+
const l = (r ?? bn(t) ? jc : Oc)(e, i, s, t), u = Lc(e, typeof t == "string", o), c = t !== Gi ? { ...u, ...l, ref: n } : {}, { children: h } = e, f = ne(() => k(h) ? h.get() : h, [h]);
|
|
4009
|
+
return jr(t, {
|
|
4007
4010
|
...c,
|
|
4008
4011
|
children: f
|
|
4009
4012
|
});
|
|
4010
4013
|
}
|
|
4011
|
-
function
|
|
4014
|
+
function Wc({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, i, s) {
|
|
4012
4015
|
return {
|
|
4013
|
-
latestValues:
|
|
4016
|
+
latestValues: Kc(n, i, s, t),
|
|
4014
4017
|
renderState: e()
|
|
4015
4018
|
};
|
|
4016
4019
|
}
|
|
4017
|
-
function
|
|
4020
|
+
function Kc(t, e, n, i) {
|
|
4018
4021
|
const s = {}, o = i(t, {});
|
|
4019
4022
|
for (const f in o)
|
|
4020
4023
|
s[f] = Gt(o[f]);
|
|
4021
4024
|
let { initial: r, animate: a } = t;
|
|
4022
|
-
const l = se(t), u =
|
|
4025
|
+
const l = se(t), u = Ys(t);
|
|
4023
4026
|
e && u && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
|
|
4024
4027
|
let c = n ? n.initial === !1 : !1;
|
|
4025
4028
|
c = c || r === !1;
|
|
@@ -4045,24 +4048,24 @@ function Wc(t, e, n, i) {
|
|
|
4045
4048
|
}
|
|
4046
4049
|
return s;
|
|
4047
4050
|
}
|
|
4048
|
-
const
|
|
4049
|
-
const i = O(re), s = O(Ye), o = () =>
|
|
4050
|
-
return n ? o() :
|
|
4051
|
-
},
|
|
4051
|
+
const Dr = (t) => (e, n) => {
|
|
4052
|
+
const i = O(re), s = O(Ye), o = () => Wc(t, e, i, s);
|
|
4053
|
+
return n ? o() : Kr(o);
|
|
4054
|
+
}, $c = /* @__PURE__ */ Dr({
|
|
4052
4055
|
scrapeMotionValuesFromProps: Pn,
|
|
4053
4056
|
createRenderState: Sn
|
|
4054
|
-
}),
|
|
4055
|
-
scrapeMotionValuesFromProps:
|
|
4056
|
-
createRenderState:
|
|
4057
|
-
}),
|
|
4058
|
-
function
|
|
4057
|
+
}), zc = /* @__PURE__ */ Dr({
|
|
4058
|
+
scrapeMotionValuesFromProps: lr,
|
|
4059
|
+
createRenderState: Vr
|
|
4060
|
+
}), Hc = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
|
|
4061
|
+
function Gc(t, e, n) {
|
|
4059
4062
|
const i = st(n);
|
|
4060
|
-
|
|
4063
|
+
_i(() => {
|
|
4061
4064
|
i.current = n;
|
|
4062
4065
|
});
|
|
4063
4066
|
const s = st(null);
|
|
4064
|
-
return
|
|
4065
|
-
o && t.onMount?.(o)
|
|
4067
|
+
return Hi((o) => {
|
|
4068
|
+
o && t.onMount?.(o);
|
|
4066
4069
|
const r = i.current;
|
|
4067
4070
|
if (typeof r == "function")
|
|
4068
4071
|
if (o) {
|
|
@@ -4070,14 +4073,15 @@ function Hc(t, e, n) {
|
|
|
4070
4073
|
typeof a == "function" && (s.current = a);
|
|
4071
4074
|
} else s.current ? (s.current(), s.current = null) : r(o);
|
|
4072
4075
|
else r && (r.current = o);
|
|
4076
|
+
e && (o ? e.mount(o) : e.unmount());
|
|
4073
4077
|
}, [e]);
|
|
4074
4078
|
}
|
|
4075
|
-
const
|
|
4079
|
+
const Mr = vt({});
|
|
4076
4080
|
function ct(t) {
|
|
4077
4081
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
4078
4082
|
}
|
|
4079
|
-
function
|
|
4080
|
-
const { visualElement: r } = O(re), a = O(
|
|
4083
|
+
function _c(t, e, n, i, s, o) {
|
|
4084
|
+
const { visualElement: r } = O(re), a = O(Pr), l = O(Ye), u = O(wr), c = u.reducedMotion, h = u.skipAnimations, f = st(null), d = st(!1);
|
|
4081
4085
|
i = i || a.renderer, !f.current && i && (f.current = i(t, {
|
|
4082
4086
|
visualState: e,
|
|
4083
4087
|
parent: r,
|
|
@@ -4088,14 +4092,14 @@ function Gc(t, e, n, i, s, o) {
|
|
|
4088
4092
|
skipAnimations: h,
|
|
4089
4093
|
isSVG: o
|
|
4090
4094
|
}), d.current && f.current && (f.current.manuallyAnimateOnMount = !0));
|
|
4091
|
-
const m = f.current, g = O(
|
|
4092
|
-
m && !m.projection && s && (m.type === "html" || m.type === "svg") &&
|
|
4095
|
+
const m = f.current, g = O(Mr);
|
|
4096
|
+
m && !m.projection && s && (m.type === "html" || m.type === "svg") && Xc(f.current, n, s, g);
|
|
4093
4097
|
const x = st(!1);
|
|
4094
|
-
|
|
4098
|
+
_i(() => {
|
|
4095
4099
|
m && x.current && m.update(n, l);
|
|
4096
4100
|
});
|
|
4097
|
-
const v = n[
|
|
4098
|
-
return
|
|
4101
|
+
const v = n[Is], T = st(!!v && typeof window < "u" && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
|
|
4102
|
+
return zr(() => {
|
|
4099
4103
|
d.current = !0, m && (x.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), T.current && m.animationState && m.animationState.animateChanges());
|
|
4100
4104
|
}), Xe(() => {
|
|
4101
4105
|
m && (!T.current && m.animationState && m.animationState.animateChanges(), T.current && (queueMicrotask(() => {
|
|
@@ -4103,9 +4107,9 @@ function Gc(t, e, n, i, s, o) {
|
|
|
4103
4107
|
}), T.current = !1), m.enteringChildren = void 0);
|
|
4104
4108
|
}), m;
|
|
4105
4109
|
}
|
|
4106
|
-
function
|
|
4110
|
+
function Xc(t, e, n, i) {
|
|
4107
4111
|
const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: u, layoutCrossfade: c } = e;
|
|
4108
|
-
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 :
|
|
4112
|
+
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Cr(t.parent)), t.projection.setOptions({
|
|
4109
4113
|
layoutId: s,
|
|
4110
4114
|
layout: o,
|
|
4111
4115
|
alwaysMeasureLayout: !!r || a && ct(a),
|
|
@@ -4124,44 +4128,44 @@ function _c(t, e, n, i) {
|
|
|
4124
4128
|
layoutRoot: u
|
|
4125
4129
|
});
|
|
4126
4130
|
}
|
|
4127
|
-
function
|
|
4131
|
+
function Cr(t) {
|
|
4128
4132
|
if (t)
|
|
4129
|
-
return t.options.allowProjection !== !1 ? t.projection :
|
|
4133
|
+
return t.options.allowProjection !== !1 ? t.projection : Cr(t.parent);
|
|
4130
4134
|
}
|
|
4131
4135
|
function ve(t, { forwardMotionProps: e = !1, type: n } = {}, i, s) {
|
|
4132
|
-
i &&
|
|
4133
|
-
const o = n ? n === "svg" : bn(t), r = o ?
|
|
4136
|
+
i && Cc(i);
|
|
4137
|
+
const o = n ? n === "svg" : bn(t), r = o ? zc : $c;
|
|
4134
4138
|
function a(u, c) {
|
|
4135
4139
|
let h;
|
|
4136
4140
|
const f = {
|
|
4137
|
-
...O(
|
|
4141
|
+
...O(wr),
|
|
4138
4142
|
...u,
|
|
4139
|
-
layoutId:
|
|
4140
|
-
}, { isStatic: d } = f, m =
|
|
4143
|
+
layoutId: Yc(u)
|
|
4144
|
+
}, { isStatic: d } = f, m = Bc(u), g = r(u, d);
|
|
4141
4145
|
if (!d && typeof window < "u") {
|
|
4142
|
-
|
|
4143
|
-
const x =
|
|
4144
|
-
h = x.MeasureLayout, m.visualElement =
|
|
4146
|
+
qc(f, i);
|
|
4147
|
+
const x = Zc(f);
|
|
4148
|
+
h = x.MeasureLayout, m.visualElement = _c(t, g, f, s, x.ProjectionNode, o);
|
|
4145
4149
|
}
|
|
4146
|
-
return
|
|
4150
|
+
return Wr(re.Provider, { value: m, children: [h && m.visualElement ? Xi(h, { visualElement: m.visualElement, ...f }) : null, Uc(t, u, Gc(g, m.visualElement, c), g, d, e, o)] });
|
|
4147
4151
|
}
|
|
4148
4152
|
a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
|
|
4149
|
-
const l =
|
|
4150
|
-
return l[
|
|
4153
|
+
const l = Nr(a);
|
|
4154
|
+
return l[Hc] = t, l;
|
|
4151
4155
|
}
|
|
4152
|
-
function
|
|
4153
|
-
const e = O(
|
|
4156
|
+
function Yc({ layoutId: t }) {
|
|
4157
|
+
const e = O(Yi).id;
|
|
4154
4158
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
4155
4159
|
}
|
|
4156
|
-
function
|
|
4157
|
-
const n = O(
|
|
4160
|
+
function qc(t, e) {
|
|
4161
|
+
const n = O(Pr).strict;
|
|
4158
4162
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
4159
4163
|
const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
4160
4164
|
t.ignoreStrict ? Tt(!1, i, "lazy-strict-mode") : Y(!1, i, "lazy-strict-mode");
|
|
4161
4165
|
}
|
|
4162
4166
|
}
|
|
4163
|
-
function
|
|
4164
|
-
const e =
|
|
4167
|
+
function Zc(t) {
|
|
4168
|
+
const e = Sr(), { drag: n, layout: i } = e;
|
|
4165
4169
|
if (!n && !i)
|
|
4166
4170
|
return {};
|
|
4167
4171
|
const s = { ...n, ...i };
|
|
@@ -4170,7 +4174,7 @@ function qc(t) {
|
|
|
4170
4174
|
ProjectionNode: s.ProjectionNode
|
|
4171
4175
|
};
|
|
4172
4176
|
}
|
|
4173
|
-
function
|
|
4177
|
+
function Jc(t, e) {
|
|
4174
4178
|
if (typeof Proxy > "u")
|
|
4175
4179
|
return ve;
|
|
4176
4180
|
const n = /* @__PURE__ */ new Map(), i = (o, r) => ve(o, r, t, e), s = (o, r) => (process.env.NODE_ENV !== "production" && Je(!1, "motion() is deprecated. Use motion.create() instead."), i(o, r));
|
|
@@ -4183,17 +4187,17 @@ function Zc(t, e) {
|
|
|
4183
4187
|
get: (o, r) => r === "create" ? i : (n.has(r) || n.set(r, ve(r, void 0, t, e)), n.get(r))
|
|
4184
4188
|
});
|
|
4185
4189
|
}
|
|
4186
|
-
const
|
|
4187
|
-
allowProjection: t !==
|
|
4190
|
+
const Qc = (t, e) => e.isSVG ?? bn(t) ? new Il(e) : new El(e, {
|
|
4191
|
+
allowProjection: t !== Gi
|
|
4188
4192
|
});
|
|
4189
|
-
class
|
|
4193
|
+
class tu extends tt {
|
|
4190
4194
|
/**
|
|
4191
4195
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
4192
4196
|
* to the underlying animation library. We only want to load that if we load this,
|
|
4193
4197
|
* so people can optionally code split it out using the `m` component.
|
|
4194
4198
|
*/
|
|
4195
4199
|
constructor(e) {
|
|
4196
|
-
super(e), e.animationState || (e.animationState =
|
|
4200
|
+
super(e), e.animationState || (e.animationState = Wl(e));
|
|
4197
4201
|
}
|
|
4198
4202
|
updateAnimationControlsSubscription() {
|
|
4199
4203
|
const { animate: e } = this.node.getProps();
|
|
@@ -4213,10 +4217,10 @@ class Qc extends tt {
|
|
|
4213
4217
|
this.node.animationState.reset(), this.unmountControls?.();
|
|
4214
4218
|
}
|
|
4215
4219
|
}
|
|
4216
|
-
let
|
|
4217
|
-
class
|
|
4220
|
+
let eu = 0;
|
|
4221
|
+
class nu extends tt {
|
|
4218
4222
|
constructor() {
|
|
4219
|
-
super(...arguments), this.id =
|
|
4223
|
+
super(...arguments), this.id = eu++;
|
|
4220
4224
|
}
|
|
4221
4225
|
update() {
|
|
4222
4226
|
if (!this.node.presenceContext)
|
|
@@ -4236,12 +4240,12 @@ class eu extends tt {
|
|
|
4236
4240
|
unmount() {
|
|
4237
4241
|
}
|
|
4238
4242
|
}
|
|
4239
|
-
const
|
|
4243
|
+
const iu = {
|
|
4240
4244
|
animation: {
|
|
4241
|
-
Feature:
|
|
4245
|
+
Feature: tu
|
|
4242
4246
|
},
|
|
4243
4247
|
exit: {
|
|
4244
|
-
Feature:
|
|
4248
|
+
Feature: nu
|
|
4245
4249
|
}
|
|
4246
4250
|
};
|
|
4247
4251
|
function Ot(t) {
|
|
@@ -4252,17 +4256,17 @@ function Ot(t) {
|
|
|
4252
4256
|
}
|
|
4253
4257
|
};
|
|
4254
4258
|
}
|
|
4255
|
-
const
|
|
4259
|
+
const su = (t) => (e) => yn(e) && t(e, Ot(e));
|
|
4256
4260
|
function Mt(t, e, n, i) {
|
|
4257
|
-
return kt(t, e,
|
|
4261
|
+
return kt(t, e, su(n), i);
|
|
4258
4262
|
}
|
|
4259
|
-
const
|
|
4260
|
-
function
|
|
4261
|
-
const n =
|
|
4263
|
+
const Er = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Fi = (t, e) => Math.abs(t - e);
|
|
4264
|
+
function ru(t, e) {
|
|
4265
|
+
const n = Fi(t.x, e.x), i = Fi(t.y, e.y);
|
|
4262
4266
|
return Math.sqrt(n ** 2 + i ** 2);
|
|
4263
4267
|
}
|
|
4264
|
-
const
|
|
4265
|
-
class
|
|
4268
|
+
const Ii = /* @__PURE__ */ new Set(["auto", "scroll"]);
|
|
4269
|
+
class Rr {
|
|
4266
4270
|
constructor(e, n, { transformPagePoint: i, contextWindow: s = window, dragSnapToOrigin: o = !1, distanceThreshold: r = 3, element: a } = {}) {
|
|
4267
4271
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (d) => {
|
|
4268
4272
|
this.handleScroll(d.target);
|
|
@@ -4271,7 +4275,7 @@ class Er {
|
|
|
4271
4275
|
}, this.updatePoint = () => {
|
|
4272
4276
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
4273
4277
|
return;
|
|
4274
|
-
const d = xe(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, g =
|
|
4278
|
+
const d = xe(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, g = ru(d.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
|
|
4275
4279
|
if (!m && !g)
|
|
4276
4280
|
return;
|
|
4277
4281
|
const { point: x } = d, { timestamp: v } = L;
|
|
@@ -4302,7 +4306,7 @@ class Er {
|
|
|
4302
4306
|
let n = e.parentElement;
|
|
4303
4307
|
for (; n; ) {
|
|
4304
4308
|
const i = getComputedStyle(n);
|
|
4305
|
-
(
|
|
4309
|
+
(Ii.has(i.overflowX) || Ii.has(i.overflowY)) && this.scrollPositions.set(n, {
|
|
4306
4310
|
x: n.scrollLeft,
|
|
4307
4311
|
y: n.scrollTop
|
|
4308
4312
|
}), n = n.parentElement;
|
|
@@ -4344,28 +4348,28 @@ class Er {
|
|
|
4344
4348
|
function Te(t, e) {
|
|
4345
4349
|
return e ? { point: e(t.point) } : t;
|
|
4346
4350
|
}
|
|
4347
|
-
function
|
|
4351
|
+
function Oi(t, e) {
|
|
4348
4352
|
return { x: t.x - e.x, y: t.y - e.y };
|
|
4349
4353
|
}
|
|
4350
4354
|
function xe({ point: t }, e) {
|
|
4351
4355
|
return {
|
|
4352
4356
|
point: t,
|
|
4353
|
-
delta:
|
|
4354
|
-
offset:
|
|
4355
|
-
velocity:
|
|
4357
|
+
delta: Oi(t, Lr(e)),
|
|
4358
|
+
offset: Oi(t, ou(e)),
|
|
4359
|
+
velocity: au(e, 0.1)
|
|
4356
4360
|
};
|
|
4357
4361
|
}
|
|
4358
|
-
function
|
|
4362
|
+
function ou(t) {
|
|
4359
4363
|
return t[0];
|
|
4360
4364
|
}
|
|
4361
|
-
function
|
|
4365
|
+
function Lr(t) {
|
|
4362
4366
|
return t[t.length - 1];
|
|
4363
4367
|
}
|
|
4364
|
-
function
|
|
4368
|
+
function au(t, e) {
|
|
4365
4369
|
if (t.length < 2)
|
|
4366
4370
|
return { x: 0, y: 0 };
|
|
4367
4371
|
let n = t.length - 1, i = null;
|
|
4368
|
-
const s =
|
|
4372
|
+
const s = Lr(t);
|
|
4369
4373
|
for (; n >= 0 && (i = t[n], !(s.timestamp - i.timestamp > /* @__PURE__ */ K(e))); )
|
|
4370
4374
|
n--;
|
|
4371
4375
|
if (!i)
|
|
@@ -4380,58 +4384,58 @@ function ou(t, e) {
|
|
|
4380
4384
|
};
|
|
4381
4385
|
return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
|
|
4382
4386
|
}
|
|
4383
|
-
function
|
|
4387
|
+
function lu(t, { min: e, max: n }, i) {
|
|
4384
4388
|
return e !== void 0 && t < e ? t = i ? D(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? D(n, t, i.max) : Math.min(t, n)), t;
|
|
4385
4389
|
}
|
|
4386
|
-
function
|
|
4390
|
+
function ji(t, e, n) {
|
|
4387
4391
|
return {
|
|
4388
4392
|
min: e !== void 0 ? t.min + e : void 0,
|
|
4389
4393
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
4390
4394
|
};
|
|
4391
4395
|
}
|
|
4392
|
-
function
|
|
4396
|
+
function cu(t, { top: e, left: n, bottom: i, right: s }) {
|
|
4393
4397
|
return {
|
|
4394
|
-
x:
|
|
4395
|
-
y:
|
|
4398
|
+
x: ji(t.x, n, s),
|
|
4399
|
+
y: ji(t.y, e, i)
|
|
4396
4400
|
};
|
|
4397
4401
|
}
|
|
4398
|
-
function
|
|
4402
|
+
function Ni(t, e) {
|
|
4399
4403
|
let n = e.min - t.min, i = e.max - t.max;
|
|
4400
4404
|
return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
|
|
4401
4405
|
}
|
|
4402
|
-
function
|
|
4406
|
+
function uu(t, e) {
|
|
4403
4407
|
return {
|
|
4404
|
-
x:
|
|
4405
|
-
y:
|
|
4408
|
+
x: Ni(t.x, e.x),
|
|
4409
|
+
y: Ni(t.y, e.y)
|
|
4406
4410
|
};
|
|
4407
4411
|
}
|
|
4408
|
-
function
|
|
4412
|
+
function hu(t, e) {
|
|
4409
4413
|
let n = 0.5;
|
|
4410
4414
|
const i = I(t), s = I(e);
|
|
4411
4415
|
return s > i ? n = /* @__PURE__ */ Ct(e.min, e.max - i, t.min) : i > s && (n = /* @__PURE__ */ Ct(t.min, t.max - s, e.min)), X(0, 1, n);
|
|
4412
4416
|
}
|
|
4413
|
-
function
|
|
4417
|
+
function fu(t, e) {
|
|
4414
4418
|
const n = {};
|
|
4415
4419
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
4416
4420
|
}
|
|
4417
4421
|
const Ge = 0.35;
|
|
4418
|
-
function
|
|
4422
|
+
function du(t = Ge) {
|
|
4419
4423
|
return t === !1 ? t = 0 : t === !0 && (t = Ge), {
|
|
4420
|
-
x:
|
|
4421
|
-
y:
|
|
4424
|
+
x: Ui(t, "left", "right"),
|
|
4425
|
+
y: Ui(t, "top", "bottom")
|
|
4422
4426
|
};
|
|
4423
4427
|
}
|
|
4424
|
-
function
|
|
4428
|
+
function Ui(t, e, n) {
|
|
4425
4429
|
return {
|
|
4426
|
-
min:
|
|
4427
|
-
max:
|
|
4430
|
+
min: Wi(t, e),
|
|
4431
|
+
max: Wi(t, n)
|
|
4428
4432
|
};
|
|
4429
4433
|
}
|
|
4430
|
-
function
|
|
4434
|
+
function Wi(t, e) {
|
|
4431
4435
|
return typeof t == "number" ? t : t[e] || 0;
|
|
4432
4436
|
}
|
|
4433
|
-
const
|
|
4434
|
-
class
|
|
4437
|
+
const mu = /* @__PURE__ */ new WeakMap();
|
|
4438
|
+
class pu {
|
|
4435
4439
|
constructor(e) {
|
|
4436
4440
|
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = E(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
|
|
4437
4441
|
}
|
|
@@ -4443,7 +4447,7 @@ class mu {
|
|
|
4443
4447
|
n && this.snapToCursor(Ot(h).point), this.stopAnimation();
|
|
4444
4448
|
}, r = (h, f) => {
|
|
4445
4449
|
const { drag: d, dragPropagation: m, onDragStart: g } = this.getProps();
|
|
4446
|
-
if (d && !m && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
4450
|
+
if (d && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = Ya(d), !this.openDragLock))
|
|
4447
4451
|
return;
|
|
4448
4452
|
this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), G((v) => {
|
|
4449
4453
|
let T = this.getAxisMotionValue(v).get() || 0;
|
|
@@ -4465,7 +4469,7 @@ class mu {
|
|
|
4465
4469
|
return;
|
|
4466
4470
|
const { offset: v } = f;
|
|
4467
4471
|
if (m && this.currentDirection === null) {
|
|
4468
|
-
this.currentDirection =
|
|
4472
|
+
this.currentDirection = yu(v), this.currentDirection !== null && g && g(this.currentDirection);
|
|
4469
4473
|
return;
|
|
4470
4474
|
}
|
|
4471
4475
|
this.updateAxis("x", f.point, v), this.updateAxis("y", f.point, v), this.visualElement.render(), x && A.update(() => x(h, f), !1, !0);
|
|
@@ -4475,7 +4479,7 @@ class mu {
|
|
|
4475
4479
|
const { dragSnapToOrigin: h } = this.getProps();
|
|
4476
4480
|
(h || this.constraints) && this.startAnimation({ x: 0, y: 0 });
|
|
4477
4481
|
}, { dragSnapToOrigin: c } = this.getProps();
|
|
4478
|
-
this.panSession = new
|
|
4482
|
+
this.panSession = new Rr(e, {
|
|
4479
4483
|
onSessionStart: o,
|
|
4480
4484
|
onStart: r,
|
|
4481
4485
|
onMove: a,
|
|
@@ -4485,7 +4489,7 @@ class mu {
|
|
|
4485
4489
|
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
4486
4490
|
dragSnapToOrigin: c,
|
|
4487
4491
|
distanceThreshold: i,
|
|
4488
|
-
contextWindow:
|
|
4492
|
+
contextWindow: Er(this.visualElement),
|
|
4489
4493
|
element: this.visualElement.current
|
|
4490
4494
|
});
|
|
4491
4495
|
}
|
|
@@ -4526,12 +4530,12 @@ class mu {
|
|
|
4526
4530
|
return;
|
|
4527
4531
|
const o = this.getAxisMotionValue(e);
|
|
4528
4532
|
let r = this.originPoint[e] + i[e];
|
|
4529
|
-
this.constraints && this.constraints[e] && (r =
|
|
4533
|
+
this.constraints && this.constraints[e] && (r = lu(r, this.constraints[e], this.elastic[e])), o.set(r);
|
|
4530
4534
|
}
|
|
4531
4535
|
resolveConstraints() {
|
|
4532
4536
|
const { dragConstraints: e, dragElastic: n } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, s = this.constraints;
|
|
4533
|
-
e && ct(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && i ? this.constraints =
|
|
4534
|
-
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] =
|
|
4537
|
+
e && ct(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && i ? this.constraints = cu(i.layoutBox, e) : this.constraints = !1, this.elastic = du(n), s !== this.constraints && !ct(e) && i && this.constraints && !this.hasMutatedConstraints && G((o) => {
|
|
4538
|
+
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = fu(i.layoutBox[o], this.constraints[o]));
|
|
4535
4539
|
});
|
|
4536
4540
|
}
|
|
4537
4541
|
resolveRefConstraints() {
|
|
@@ -4543,11 +4547,11 @@ class mu {
|
|
|
4543
4547
|
const { projection: s } = this.visualElement;
|
|
4544
4548
|
if (!s || !s.layout)
|
|
4545
4549
|
return !1;
|
|
4546
|
-
const o =
|
|
4547
|
-
let r =
|
|
4550
|
+
const o = bl(i, s.root, this.visualElement.getTransformPagePoint());
|
|
4551
|
+
let r = uu(s.layout.layoutBox, o);
|
|
4548
4552
|
if (n) {
|
|
4549
|
-
const a = n(
|
|
4550
|
-
this.hasMutatedConstraints = !!a, a && (r =
|
|
4553
|
+
const a = n(wl(r));
|
|
4554
|
+
this.hasMutatedConstraints = !!a, a && (r = Qs(a));
|
|
4551
4555
|
}
|
|
4552
4556
|
return r;
|
|
4553
4557
|
}
|
|
@@ -4618,7 +4622,7 @@ class mu {
|
|
|
4618
4622
|
const a = this.getAxisMotionValue(r);
|
|
4619
4623
|
if (a && this.constraints !== !1) {
|
|
4620
4624
|
const l = a.get();
|
|
4621
|
-
s[r] =
|
|
4625
|
+
s[r] = hu({ min: l, max: l }, this.constraints[r]);
|
|
4622
4626
|
}
|
|
4623
4627
|
});
|
|
4624
4628
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
@@ -4632,15 +4636,15 @@ class mu {
|
|
|
4632
4636
|
addListeners() {
|
|
4633
4637
|
if (!this.visualElement.current)
|
|
4634
4638
|
return;
|
|
4635
|
-
|
|
4639
|
+
mu.set(this.visualElement, this);
|
|
4636
4640
|
const e = this.visualElement.current, n = Mt(e, "pointerdown", (u) => {
|
|
4637
|
-
const { drag: c, dragListener: h = !0 } = this.getProps(), f = u.target, d = f !== e &&
|
|
4641
|
+
const { drag: c, dragListener: h = !0 } = this.getProps(), f = u.target, d = f !== e && el(f);
|
|
4638
4642
|
c && h && !d && this.start(u);
|
|
4639
4643
|
});
|
|
4640
4644
|
let i;
|
|
4641
4645
|
const s = () => {
|
|
4642
4646
|
const { dragConstraints: u } = this.getProps();
|
|
4643
|
-
ct(u) && u.current && (this.constraints = this.resolveRefConstraints(), i || (i =
|
|
4647
|
+
ct(u) && u.current && (this.constraints = this.resolveRefConstraints(), i || (i = gu(e, u.current, () => this.scalePositionWithinConstraints())));
|
|
4644
4648
|
}, { projection: o } = this.visualElement, r = o.addEventListener("measure", s);
|
|
4645
4649
|
o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), A.read(s);
|
|
4646
4650
|
const a = kt(window, "resize", () => this.scalePositionWithinConstraints()), l = o.addEventListener("didUpdate", (({ delta: u, hasLayoutChanged: c }) => {
|
|
@@ -4666,7 +4670,7 @@ class mu {
|
|
|
4666
4670
|
};
|
|
4667
4671
|
}
|
|
4668
4672
|
}
|
|
4669
|
-
function
|
|
4673
|
+
function Ki(t) {
|
|
4670
4674
|
let e = !0;
|
|
4671
4675
|
return () => {
|
|
4672
4676
|
if (e) {
|
|
@@ -4676,8 +4680,8 @@ function Wi(t) {
|
|
|
4676
4680
|
t();
|
|
4677
4681
|
};
|
|
4678
4682
|
}
|
|
4679
|
-
function
|
|
4680
|
-
const i = qn(t,
|
|
4683
|
+
function gu(t, e, n) {
|
|
4684
|
+
const i = qn(t, Ki(n)), s = qn(e, Ki(n));
|
|
4681
4685
|
return () => {
|
|
4682
4686
|
i(), s();
|
|
4683
4687
|
};
|
|
@@ -4685,13 +4689,13 @@ function pu(t, e, n) {
|
|
|
4685
4689
|
function Ut(t, e, n) {
|
|
4686
4690
|
return (e === !0 || e === t) && (n === null || n === t);
|
|
4687
4691
|
}
|
|
4688
|
-
function
|
|
4692
|
+
function yu(t, e = 10) {
|
|
4689
4693
|
let n = null;
|
|
4690
4694
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
|
4691
4695
|
}
|
|
4692
|
-
class
|
|
4696
|
+
class vu extends tt {
|
|
4693
4697
|
constructor(e) {
|
|
4694
|
-
super(e), this.removeGroupControls = W, this.removeListeners = W, this.controls = new
|
|
4698
|
+
super(e), this.removeGroupControls = W, this.removeListeners = W, this.controls = new pu(e);
|
|
4695
4699
|
}
|
|
4696
4700
|
mount() {
|
|
4697
4701
|
const { dragControls: e } = this.node.getProps();
|
|
@@ -4708,14 +4712,14 @@ class yu extends tt {
|
|
|
4708
4712
|
const we = (t) => (e, n) => {
|
|
4709
4713
|
t && A.update(() => t(e, n), !1, !0);
|
|
4710
4714
|
};
|
|
4711
|
-
class
|
|
4715
|
+
class Tu extends tt {
|
|
4712
4716
|
constructor() {
|
|
4713
4717
|
super(...arguments), this.removePointerDownListener = W;
|
|
4714
4718
|
}
|
|
4715
4719
|
onPointerDown(e) {
|
|
4716
|
-
this.session = new
|
|
4720
|
+
this.session = new Rr(e, this.createPanHandlers(), {
|
|
4717
4721
|
transformPagePoint: this.node.getTransformPagePoint(),
|
|
4718
|
-
contextWindow:
|
|
4722
|
+
contextWindow: Er(this.node)
|
|
4719
4723
|
});
|
|
4720
4724
|
}
|
|
4721
4725
|
createPanHandlers() {
|
|
@@ -4740,7 +4744,7 @@ class vu extends tt {
|
|
|
4740
4744
|
}
|
|
4741
4745
|
}
|
|
4742
4746
|
let Pe = !1;
|
|
4743
|
-
class
|
|
4747
|
+
class xu extends Ur {
|
|
4744
4748
|
/**
|
|
4745
4749
|
* This only mounts projection nodes for components that
|
|
4746
4750
|
* need measuring, we might want to do it for all components
|
|
@@ -4784,35 +4788,35 @@ class Tu extends Nr {
|
|
|
4784
4788
|
return null;
|
|
4785
4789
|
}
|
|
4786
4790
|
}
|
|
4787
|
-
function
|
|
4788
|
-
const [e, n] =
|
|
4789
|
-
return
|
|
4791
|
+
function kr(t) {
|
|
4792
|
+
const [e, n] = Dc(), i = O(Yi);
|
|
4793
|
+
return Xi(xu, { ...t, layoutGroup: i, switchLayoutGroup: O(Mr), isPresent: e, safeToRemove: n });
|
|
4790
4794
|
}
|
|
4791
|
-
const
|
|
4795
|
+
const wu = {
|
|
4792
4796
|
pan: {
|
|
4793
|
-
Feature:
|
|
4797
|
+
Feature: Tu
|
|
4794
4798
|
},
|
|
4795
4799
|
drag: {
|
|
4796
|
-
Feature:
|
|
4797
|
-
ProjectionNode:
|
|
4798
|
-
MeasureLayout:
|
|
4800
|
+
Feature: vu,
|
|
4801
|
+
ProjectionNode: xr,
|
|
4802
|
+
MeasureLayout: kr
|
|
4799
4803
|
}
|
|
4800
4804
|
};
|
|
4801
|
-
function
|
|
4805
|
+
function $i(t, e, n) {
|
|
4802
4806
|
const { props: i } = t;
|
|
4803
4807
|
t.animationState && i.whileHover && t.animationState.setActive("whileHover", n === "Start");
|
|
4804
4808
|
const s = "onHover" + n, o = i[s];
|
|
4805
4809
|
o && A.postRender(() => o(e, Ot(e)));
|
|
4806
4810
|
}
|
|
4807
|
-
class
|
|
4811
|
+
class Pu extends tt {
|
|
4808
4812
|
mount() {
|
|
4809
4813
|
const { current: e } = this.node;
|
|
4810
|
-
e && (this.unmount =
|
|
4814
|
+
e && (this.unmount = Za(e, (n, i) => ($i(this.node, i, "Start"), (s) => $i(this.node, s, "End"))));
|
|
4811
4815
|
}
|
|
4812
4816
|
unmount() {
|
|
4813
4817
|
}
|
|
4814
4818
|
}
|
|
4815
|
-
class
|
|
4819
|
+
class Su extends tt {
|
|
4816
4820
|
constructor() {
|
|
4817
4821
|
super(...arguments), this.isActive = !1;
|
|
4818
4822
|
}
|
|
@@ -4834,7 +4838,7 @@ class Pu extends tt {
|
|
|
4834
4838
|
unmount() {
|
|
4835
4839
|
}
|
|
4836
4840
|
}
|
|
4837
|
-
function
|
|
4841
|
+
function zi(t, e, n) {
|
|
4838
4842
|
const { props: i } = t;
|
|
4839
4843
|
if (t.current instanceof HTMLButtonElement && t.current.disabled)
|
|
4840
4844
|
return;
|
|
@@ -4842,13 +4846,13 @@ function $i(t, e, n) {
|
|
|
4842
4846
|
const s = "onTap" + (n === "End" ? "" : n), o = i[s];
|
|
4843
4847
|
o && A.postRender(() => o(e, Ot(e)));
|
|
4844
4848
|
}
|
|
4845
|
-
class
|
|
4849
|
+
class bu extends tt {
|
|
4846
4850
|
mount() {
|
|
4847
4851
|
const { current: e } = this.node;
|
|
4848
4852
|
if (!e)
|
|
4849
4853
|
return;
|
|
4850
4854
|
const { globalTapTarget: n, propagate: i } = this.node.props;
|
|
4851
|
-
this.unmount =
|
|
4855
|
+
this.unmount = il(e, (s, o) => (zi(this.node, o, "Start"), (r, { success: a }) => zi(this.node, r, a ? "End" : "Cancel")), {
|
|
4852
4856
|
useGlobalTarget: n,
|
|
4853
4857
|
stopPropagation: i?.tap === !1
|
|
4854
4858
|
});
|
|
@@ -4856,29 +4860,29 @@ class Su extends tt {
|
|
|
4856
4860
|
unmount() {
|
|
4857
4861
|
}
|
|
4858
4862
|
}
|
|
4859
|
-
const _e = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(),
|
|
4863
|
+
const _e = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Au = (t) => {
|
|
4860
4864
|
const e = _e.get(t.target);
|
|
4861
4865
|
e && e(t);
|
|
4862
|
-
},
|
|
4863
|
-
t.forEach(
|
|
4866
|
+
}, Vu = (t) => {
|
|
4867
|
+
t.forEach(Au);
|
|
4864
4868
|
};
|
|
4865
|
-
function
|
|
4869
|
+
function Du({ root: t, ...e }) {
|
|
4866
4870
|
const n = t || document;
|
|
4867
4871
|
Se.has(n) || Se.set(n, {});
|
|
4868
4872
|
const i = Se.get(n), s = JSON.stringify(e);
|
|
4869
|
-
return i[s] || (i[s] = new IntersectionObserver(
|
|
4873
|
+
return i[s] || (i[s] = new IntersectionObserver(Vu, { root: t, ...e })), i[s];
|
|
4870
4874
|
}
|
|
4871
|
-
function
|
|
4872
|
-
const i =
|
|
4875
|
+
function Mu(t, e, n) {
|
|
4876
|
+
const i = Du(e);
|
|
4873
4877
|
return _e.set(t, n), i.observe(t), () => {
|
|
4874
4878
|
_e.delete(t), i.unobserve(t);
|
|
4875
4879
|
};
|
|
4876
4880
|
}
|
|
4877
|
-
const
|
|
4881
|
+
const Cu = {
|
|
4878
4882
|
some: 0,
|
|
4879
4883
|
all: 1
|
|
4880
4884
|
};
|
|
4881
|
-
class
|
|
4885
|
+
class Eu extends tt {
|
|
4882
4886
|
constructor() {
|
|
4883
4887
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
4884
4888
|
}
|
|
@@ -4887,7 +4891,7 @@ class Cu extends tt {
|
|
|
4887
4891
|
const { viewport: e = {} } = this.node.getProps(), { root: n, margin: i, amount: s = "some", once: o } = e, r = {
|
|
4888
4892
|
root: n ? n.current : void 0,
|
|
4889
4893
|
rootMargin: i,
|
|
4890
|
-
threshold: typeof s == "number" ? s :
|
|
4894
|
+
threshold: typeof s == "number" ? s : Cu[s]
|
|
4891
4895
|
}, a = (l) => {
|
|
4892
4896
|
const { isIntersecting: u } = l;
|
|
4893
4897
|
if (this.isInView === u || (this.isInView = u, o && !u && this.hasEnteredView))
|
|
@@ -4896,7 +4900,7 @@ class Cu extends tt {
|
|
|
4896
4900
|
const { onViewportEnter: c, onViewportLeave: h } = this.node.getProps(), f = u ? c : h;
|
|
4897
4901
|
f && f(l);
|
|
4898
4902
|
};
|
|
4899
|
-
return
|
|
4903
|
+
return Mu(this.node.current, r, a);
|
|
4900
4904
|
}
|
|
4901
4905
|
mount() {
|
|
4902
4906
|
this.startObserver();
|
|
@@ -4905,38 +4909,38 @@ class Cu extends tt {
|
|
|
4905
4909
|
if (typeof IntersectionObserver > "u")
|
|
4906
4910
|
return;
|
|
4907
4911
|
const { props: e, prevProps: n } = this.node;
|
|
4908
|
-
["amount", "margin", "root"].some(
|
|
4912
|
+
["amount", "margin", "root"].some(Ru(e, n)) && this.startObserver();
|
|
4909
4913
|
}
|
|
4910
4914
|
unmount() {
|
|
4911
4915
|
}
|
|
4912
4916
|
}
|
|
4913
|
-
function
|
|
4917
|
+
function Ru({ viewport: t = {} }, { viewport: e = {} } = {}) {
|
|
4914
4918
|
return (n) => t[n] !== e[n];
|
|
4915
4919
|
}
|
|
4916
|
-
const
|
|
4920
|
+
const Lu = {
|
|
4917
4921
|
inView: {
|
|
4918
|
-
Feature:
|
|
4922
|
+
Feature: Eu
|
|
4919
4923
|
},
|
|
4920
4924
|
tap: {
|
|
4921
|
-
Feature:
|
|
4925
|
+
Feature: bu
|
|
4922
4926
|
},
|
|
4923
4927
|
focus: {
|
|
4924
|
-
Feature:
|
|
4928
|
+
Feature: Su
|
|
4925
4929
|
},
|
|
4926
4930
|
hover: {
|
|
4927
|
-
Feature:
|
|
4928
|
-
}
|
|
4929
|
-
}, Lu = {
|
|
4930
|
-
layout: {
|
|
4931
|
-
ProjectionNode: Tr,
|
|
4932
|
-
MeasureLayout: Lr
|
|
4931
|
+
Feature: Pu
|
|
4933
4932
|
}
|
|
4934
4933
|
}, ku = {
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
},
|
|
4934
|
+
layout: {
|
|
4935
|
+
ProjectionNode: xr,
|
|
4936
|
+
MeasureLayout: kr
|
|
4937
|
+
}
|
|
4938
|
+
}, Bu = {
|
|
4939
|
+
...iu,
|
|
4940
|
+
...Lu,
|
|
4941
|
+
...wu,
|
|
4942
|
+
...ku
|
|
4943
|
+
}, Nu = /* @__PURE__ */ Jc(Bu, Qc);
|
|
4940
4944
|
export {
|
|
4941
|
-
|
|
4945
|
+
Nu as m
|
|
4942
4946
|
};
|