@maycolem/stories 20.0.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +629 -630
- package/dist/index.esm.js.map +1 -1
- package/dist/stories.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as P, jsxs as q, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import E, { useState as Pt, useRef as Z, useCallback as
|
|
1
|
+
import { jsx as P, jsxs as q, Fragment as Xn } from "react/jsx-runtime";
|
|
2
|
+
import * as Vn from "react";
|
|
3
|
+
import E, { useState as Pt, useRef as Z, useCallback as ve, createContext as Wt, useMemo as qe, useEffect as k, Fragment as Wo, useContext as st, useLayoutEffect as Ia, forwardRef as Aa, createElement as Ma } from "react";
|
|
4
4
|
import Ra from "react-dom";
|
|
5
|
-
const La = "_ScrollMenu_hnfum_9",
|
|
5
|
+
const La = "_ScrollMenu_hnfum_9", Oa = "_scrollContainerClassName_hnfum_16", Ba = "_itemClassName_hnfum_28", sn = {
|
|
6
6
|
ScrollMenu: La,
|
|
7
|
-
scrollContainerClassName:
|
|
8
|
-
itemClassName:
|
|
7
|
+
scrollContainerClassName: Oa,
|
|
8
|
+
itemClassName: Ba
|
|
9
9
|
}, Da = "_ProfileStory_bmzly_1", Na = "_ProfileStoryWrap_bmzly_12", Fa = "_ProfileStory__wrapImage_bmzly_26", ja = "_ProfileStory__image_bmzly_35", ka = "_ProfileStory__title_bmzly_50", $a = "_hasSeenAllStories_bmzly_59", zt = {
|
|
10
10
|
ProfileStory: Da,
|
|
11
11
|
ProfileStoryWrap: Na,
|
|
@@ -23,9 +23,9 @@ var un = { exports: {} };
|
|
|
23
23
|
Licensed under the MIT License (MIT), see
|
|
24
24
|
http://jedwatson.github.io/classnames
|
|
25
25
|
*/
|
|
26
|
-
var
|
|
26
|
+
var Pr;
|
|
27
27
|
function Ua() {
|
|
28
|
-
return
|
|
28
|
+
return Pr || (Pr = 1, function(t) {
|
|
29
29
|
(function() {
|
|
30
30
|
var e = {}.hasOwnProperty;
|
|
31
31
|
function n() {
|
|
@@ -60,7 +60,7 @@ var Wa = Ua();
|
|
|
60
60
|
const Ut = /* @__PURE__ */ Ho(Wa);
|
|
61
61
|
function Ha() {
|
|
62
62
|
const [t, e] = Pt({ width: 0, height: 0 }), n = Z();
|
|
63
|
-
return [
|
|
63
|
+
return [ve((o) => {
|
|
64
64
|
n.current && n.current.disconnect(), o && (n.current = new ResizeObserver((a) => {
|
|
65
65
|
const i = a[0];
|
|
66
66
|
if (!i) return;
|
|
@@ -69,9 +69,9 @@ function Ha() {
|
|
|
69
69
|
}), n.current.observe(o));
|
|
70
70
|
}, []), t];
|
|
71
71
|
}
|
|
72
|
-
var ln,
|
|
72
|
+
var ln, wr;
|
|
73
73
|
function za() {
|
|
74
|
-
return
|
|
74
|
+
return wr || (wr = 1, ln = { hexToRGB: (r) => {
|
|
75
75
|
let o = r;
|
|
76
76
|
return o.length === 4 && (o = o[0] + o[1] + o[1] + o[2] + o[2] + o[3] + o[3]), {
|
|
77
77
|
r: parseInt(o.substring(1, 3), 16),
|
|
@@ -80,10 +80,10 @@ function za() {
|
|
|
80
80
|
};
|
|
81
81
|
}, formatRGB: ({ r, g: o, b: a }) => `rgb(${r},${o},${a})`, formatRGBA: ({ r, g: o, b: a }, i) => `rgba(${r},${o},${a},${i})` }), ln;
|
|
82
82
|
}
|
|
83
|
-
var cn,
|
|
83
|
+
var cn, _r;
|
|
84
84
|
function Ga() {
|
|
85
|
-
if (
|
|
86
|
-
|
|
85
|
+
if (_r) return cn;
|
|
86
|
+
_r = 1;
|
|
87
87
|
const { hexToRGB: t, formatRGB: e, formatRGBA: n } = za();
|
|
88
88
|
return cn = (o, a) => {
|
|
89
89
|
const i = t(o);
|
|
@@ -175,10 +175,10 @@ let is = class {
|
|
|
175
175
|
}, this.getVisible = () => this.filter((e) => e[1].visible), this.observer = new is(), this.firstRun = !0;
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
|
-
const
|
|
178
|
+
const xr = (t) => typeof t == "object" && t != null && t.nodeType === 1, Tr = (t, e) => (!e || t !== "hidden") && t !== "visible" && t !== "clip", fn = (t, e) => {
|
|
179
179
|
if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
|
|
180
180
|
const n = getComputedStyle(t, null);
|
|
181
|
-
return
|
|
181
|
+
return Tr(n.overflowY, e) || Tr(n.overflowX, e) || ((r) => {
|
|
182
182
|
const o = ((a) => {
|
|
183
183
|
if (!a.ownerDocument || !a.ownerDocument.defaultView) return null;
|
|
184
184
|
try {
|
|
@@ -191,46 +191,46 @@ const _r = (t) => typeof t == "object" && t != null && t.nodeType === 1, xr = (t
|
|
|
191
191
|
})(t);
|
|
192
192
|
}
|
|
193
193
|
return !1;
|
|
194
|
-
},
|
|
194
|
+
}, Ce = (t, e, n, r, o, a, i, s) => a < t && i > e || a > t && i < e ? 0 : a <= t && s <= n || i >= e && s >= n ? a - t - r : i > e && s < n || a < t && s > n ? i - e + o : 0, ss = (t) => {
|
|
195
195
|
const e = t.parentElement;
|
|
196
196
|
return e ?? (t.getRootNode().host || null);
|
|
197
|
-
},
|
|
197
|
+
}, Cr = (t, e) => {
|
|
198
198
|
var n, r, o, a;
|
|
199
199
|
if (typeof document > "u") return [];
|
|
200
200
|
const { scrollMode: i, block: s, inline: u, boundary: l, skipOverflowHiddenElements: c } = e, f = typeof l == "function" ? l : (Q) => Q !== l;
|
|
201
|
-
if (!
|
|
201
|
+
if (!xr(t)) throw new TypeError("Invalid target");
|
|
202
202
|
const d = document.scrollingElement || document.documentElement, p = [];
|
|
203
203
|
let v = t;
|
|
204
|
-
for (;
|
|
204
|
+
for (; xr(v) && f(v); ) {
|
|
205
205
|
if (v = ss(v), v === d) {
|
|
206
206
|
p.push(v);
|
|
207
207
|
break;
|
|
208
208
|
}
|
|
209
209
|
v != null && v === document.body && fn(v) && !fn(document.documentElement) || v != null && fn(v, c) && p.push(v);
|
|
210
210
|
}
|
|
211
|
-
const m = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, y = (a = (o = window.visualViewport) == null ? void 0 : o.height) != null ? a : innerHeight, { scrollX: h, scrollY: S } = window, { height: g, width: w, top: x, right: T, bottom: R, left:
|
|
211
|
+
const m = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, y = (a = (o = window.visualViewport) == null ? void 0 : o.height) != null ? a : innerHeight, { scrollX: h, scrollY: S } = window, { height: g, width: w, top: x, right: T, bottom: R, left: B } = t.getBoundingClientRect(), { top: V, right: F, bottom: J, left: $ } = ((Q) => {
|
|
212
212
|
const M = window.getComputedStyle(Q);
|
|
213
213
|
return { top: parseFloat(M.scrollMarginTop) || 0, right: parseFloat(M.scrollMarginRight) || 0, bottom: parseFloat(M.scrollMarginBottom) || 0, left: parseFloat(M.scrollMarginLeft) || 0 };
|
|
214
214
|
})(t);
|
|
215
|
-
let j = s === "start" || s === "nearest" ? x - V : s === "end" ? R + J : x + g / 2 - V + J, I = u === "center" ?
|
|
215
|
+
let j = s === "start" || s === "nearest" ? x - V : s === "end" ? R + J : x + g / 2 - V + J, I = u === "center" ? B + w / 2 - $ + F : u === "end" ? T + F : B - $;
|
|
216
216
|
const G = [];
|
|
217
217
|
for (let Q = 0; Q < p.length; Q++) {
|
|
218
218
|
const M = p[Q], { height: it, width: at, top: ut, right: U, bottom: X, left: D } = M.getBoundingClientRect();
|
|
219
|
-
if (i === "if-needed" && x >= 0 &&
|
|
220
|
-
const _ = getComputedStyle(M), C = parseInt(_.borderLeftWidth, 10),
|
|
219
|
+
if (i === "if-needed" && x >= 0 && B >= 0 && R <= y && T <= m && x >= ut && R <= X && B >= D && T <= U) return G;
|
|
220
|
+
const _ = getComputedStyle(M), C = parseInt(_.borderLeftWidth, 10), O = parseInt(_.borderTopWidth, 10), L = parseInt(_.borderRightWidth, 10), N = parseInt(_.borderBottomWidth, 10);
|
|
221
221
|
let W = 0, rt = 0;
|
|
222
|
-
const ot = "offsetWidth" in M ? M.offsetWidth - M.clientWidth - C - L : 0, et = "offsetHeight" in M ? M.offsetHeight - M.clientHeight -
|
|
223
|
-
if (d === M) W = s === "start" ? j : s === "end" ? j - y : s === "nearest" ?
|
|
222
|
+
const ot = "offsetWidth" in M ? M.offsetWidth - M.clientWidth - C - L : 0, et = "offsetHeight" in M ? M.offsetHeight - M.clientHeight - O - N : 0, Ct = "offsetWidth" in M ? M.offsetWidth === 0 ? 0 : at / M.offsetWidth : 0, te = "offsetHeight" in M ? M.offsetHeight === 0 ? 0 : it / M.offsetHeight : 0;
|
|
223
|
+
if (d === M) W = s === "start" ? j : s === "end" ? j - y : s === "nearest" ? Ce(S, S + y, y, O, N, S + j, S + j + g, g) : j - y / 2, rt = u === "start" ? I : u === "center" ? I - m / 2 : u === "end" ? I - m : Ce(h, h + m, m, C, L, h + I, h + I + w, w), W = Math.max(0, W + S), rt = Math.max(0, rt + h);
|
|
224
224
|
else {
|
|
225
|
-
W = s === "start" ? j - ut -
|
|
226
|
-
const { scrollLeft:
|
|
227
|
-
W =
|
|
225
|
+
W = s === "start" ? j - ut - O : s === "end" ? j - X + N + et : s === "nearest" ? Ce(ut, X, it, O, N + et, j, j + g, g) : j - (ut + it / 2) + et / 2, rt = u === "start" ? I - D - C : u === "center" ? I - (D + at / 2) + ot / 2 : u === "end" ? I - U + L + ot : Ce(D, U, at, C, L + ot, I, I + w, w);
|
|
226
|
+
const { scrollLeft: ee, scrollTop: ne } = M;
|
|
227
|
+
W = te === 0 ? 0 : Math.max(0, Math.min(ne + W / te, M.scrollHeight - it / te + et)), rt = Ct === 0 ? 0 : Math.max(0, Math.min(ee + rt / Ct, M.scrollWidth - at / Ct + ot)), j += ne - W, I += ee - rt;
|
|
228
228
|
}
|
|
229
229
|
G.push({ el: M, top: W, left: rt });
|
|
230
230
|
}
|
|
231
231
|
return G;
|
|
232
232
|
};
|
|
233
|
-
function
|
|
233
|
+
function Er(t, e) {
|
|
234
234
|
if (!t.isConnected || !((o) => {
|
|
235
235
|
let a = o;
|
|
236
236
|
for (; a && a.parentNode; ) {
|
|
@@ -243,9 +243,9 @@ function Cr(t, e) {
|
|
|
243
243
|
const a = window.getComputedStyle(o);
|
|
244
244
|
return { top: parseFloat(a.scrollMarginTop) || 0, right: parseFloat(a.scrollMarginRight) || 0, bottom: parseFloat(a.scrollMarginBottom) || 0, left: parseFloat(a.scrollMarginLeft) || 0 };
|
|
245
245
|
})(t);
|
|
246
|
-
if (((o) => typeof o == "object" && typeof o.behavior == "function")(e)) return e.behavior(
|
|
246
|
+
if (((o) => typeof o == "object" && typeof o.behavior == "function")(e)) return e.behavior(Cr(t, e));
|
|
247
247
|
const r = typeof e == "boolean" || e == null ? void 0 : e.behavior;
|
|
248
|
-
for (const { el: o, top: a, left: i } of
|
|
248
|
+
for (const { el: o, top: a, left: i } of Cr(t, ((s) => s === !1 ? { block: "end", inline: "nearest" } : ((u) => u === Object(u) && Object.keys(u).length !== 0)(s) ? s : { block: "start", inline: "nearest" })(e))) {
|
|
249
249
|
const s = a - n.top + n.bottom, u = i - n.left + n.right;
|
|
250
250
|
o.scroll({ top: s, left: u, behavior: r });
|
|
251
251
|
}
|
|
@@ -266,11 +266,11 @@ function us(t, e, n) {
|
|
|
266
266
|
}
|
|
267
267
|
const ls = function(t, e) {
|
|
268
268
|
const n = e || {};
|
|
269
|
-
return ((r) => r && !r.behavior || r.behavior === "smooth")(n) ?
|
|
269
|
+
return ((r) => r && !r.behavior || r.behavior === "smooth")(n) ? Er(t, { block: n.block, inline: n.inline, scrollMode: n.scrollMode, boundary: n.boundary, skipOverflowHiddenElements: n.skipOverflowHiddenElements, behavior: (r) => Promise.all(r.reduce((o, a) => {
|
|
270
270
|
let { el: i, left: s, top: u } = a;
|
|
271
271
|
const l = i.scrollLeft, c = i.scrollTop;
|
|
272
272
|
return l === s && c === u ? o : [...o, new Promise((f) => us(i, s, u, n.duration, n.ease, () => f({ el: i, left: [l, s], top: [c, u] }), n.onScrollChange))];
|
|
273
|
-
}, [])) }) : Promise.resolve(
|
|
273
|
+
}, [])) }) : Promise.resolve(Er(t, e));
|
|
274
274
|
}, cs = (t) => Object.values(t).map((e) => e.current).filter(Boolean);
|
|
275
275
|
function vn(t, e, n, r, o, a) {
|
|
276
276
|
var i;
|
|
@@ -280,14 +280,14 @@ function vn(t, e, n, r, o, a) {
|
|
|
280
280
|
return a ? s.scrollIntoView(u) : ls(s, Object.assign(Object.assign({}, o), u));
|
|
281
281
|
}
|
|
282
282
|
const fs = (t) => document.querySelector(`[${Go}='${t}']`), ds = (t) => document.querySelector(`[${Ko}='${t}']`);
|
|
283
|
-
function
|
|
283
|
+
function Ee(t) {
|
|
284
284
|
return E.isValidElement(t) && t || typeof t == "function" && E.createElement(t, null) || !!t && typeof t == "object" && E.createElement(t, null) || null;
|
|
285
285
|
}
|
|
286
286
|
const Xo = (t) => {
|
|
287
287
|
var e;
|
|
288
288
|
return String(((e = t == null ? void 0 : t.props) === null || e === void 0 ? void 0 : e[rs]) || String((t == null ? void 0 : t.key) || pt).replace(/^\.\$/, pt));
|
|
289
289
|
};
|
|
290
|
-
function
|
|
290
|
+
function In(t) {
|
|
291
291
|
return !!t && Object.prototype.hasOwnProperty.call(t, "current");
|
|
292
292
|
}
|
|
293
293
|
var vs = E.memo(function({ children: t, className: e, id: n, index: r, refs: o }) {
|
|
@@ -304,7 +304,7 @@ function ps({ children: t, itemClassName: e = pt, refs: n }) {
|
|
|
304
304
|
function ms({ className: t = pt, children: e, onScroll: n = () => {
|
|
305
305
|
}, scrollRef: r, containerRef: o }) {
|
|
306
306
|
const a = E.useMemo(() => `${Xa} ${t}`, [t]), i = E.useCallback((s) => {
|
|
307
|
-
|
|
307
|
+
In(r) ? r.current = s : r(s), In(o) ? o.current = s : o(s);
|
|
308
308
|
}, [r, o]);
|
|
309
309
|
return E.createElement("div", { className: a, onScroll: n, ref: i }, e);
|
|
310
310
|
}
|
|
@@ -326,10 +326,10 @@ function ys({ items: t, itemsChanged: e, refs: n, options: r }) {
|
|
|
326
326
|
};
|
|
327
327
|
}, [a, e, r, n]);
|
|
328
328
|
}
|
|
329
|
-
const Ss = (t) => E.Children.toArray(t).map(Xo).filter(Boolean),
|
|
329
|
+
const Ss = (t) => E.Children.toArray(t).map(Xo).filter(Boolean), Vr = { ratio: 0.9, rootMargin: "5px", threshold: [0.05, 0.5, 0.75, 0.95] }, bs = { current: {} }, Ve = () => {
|
|
330
330
|
};
|
|
331
|
-
function Ps({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, transitionDuration: a = 500, transitionBehavior: i, onInit: s =
|
|
332
|
-
const F =
|
|
331
|
+
function Ps({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, transitionDuration: a = 500, transitionBehavior: i, onInit: s = Ve, onUpdate: u = Ve, onMouseDown: l, onMouseLeave: c, onMouseUp: f, onMouseMove: d, onScroll: p = Ve, onTouchMove: v, onTouchStart: m, onTouchEnd: y, onWheel: h = Ve, options: S = Vr, scrollContainerClassName: g = pt, containerRef: w = os, itemClassName: x = pt, wrapperClassName: T = pt, apiRef: R = bs, RTL: B, noPolyfill: V }) {
|
|
332
|
+
const F = Ee(t), J = Ee(e), $ = Ee(r), j = Ee(o), I = E.useRef(null), [G] = E.useState({}), Q = E.useMemo(() => Object.assign(Object.assign(Object.assign({}, Vr), S), { root: I.current }), [S]), M = E.useRef(new as()).current, it = function(L, N) {
|
|
333
333
|
const [W, rt] = E.useState(pt), ot = E.useMemo(() => Ss(L), [L]);
|
|
334
334
|
return E.useEffect(() => {
|
|
335
335
|
const et = ot.filter(Boolean).join(pt);
|
|
@@ -341,27 +341,27 @@ function Ps({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, tr
|
|
|
341
341
|
ys(E.useMemo(() => ({ items: M, itemsChanged: it, options: Q, refs: G }), [M, it, G, Q]));
|
|
342
342
|
const at = E.useMemo(() => function(L, N, W) {
|
|
343
343
|
var rt, ot, et;
|
|
344
|
-
const Ct = !!(!((rt = L.first()) === null || rt === void 0) && rt.visible),
|
|
344
|
+
const Ct = !!(!((rt = L.first()) === null || rt === void 0) && rt.visible), te = !!(!((ot = L.last()) === null || ot === void 0) && ot.visible), ee = (H) => {
|
|
345
345
|
var K;
|
|
346
346
|
return (K = L.find((ft) => ft[1].key === String(H))) === null || K === void 0 ? void 0 : K[1];
|
|
347
|
-
},
|
|
347
|
+
}, ne = () => {
|
|
348
348
|
var H, K;
|
|
349
349
|
const ft = (K = (H = L.getVisible()) === null || H === void 0 ? void 0 : H[0]) === null || K === void 0 ? void 0 : K[1];
|
|
350
350
|
return ft ? L.prev(ft) : void 0;
|
|
351
|
-
},
|
|
351
|
+
}, br = () => {
|
|
352
352
|
var H;
|
|
353
353
|
const K = (H = L.getVisible().findLast(() => !0)) === null || H === void 0 ? void 0 : H[1];
|
|
354
354
|
return K ? L.next(K) : void 0;
|
|
355
355
|
}, an = (et = N == null ? void 0 : N.boundary) === null || et === void 0 ? void 0 : et.current;
|
|
356
|
-
return { getItemById:
|
|
356
|
+
return { getItemById: ee, getItemElementById: fs, getItemByIndex: (H) => {
|
|
357
357
|
var K;
|
|
358
358
|
return (K = L.find((ft) => String(ft[1].index) === String(H))) === null || K === void 0 ? void 0 : K[1];
|
|
359
|
-
}, getItemElementByIndex: ds, getNextElement:
|
|
359
|
+
}, getItemElementByIndex: ds, getNextElement: br, getPrevElement: ne, isFirstItemVisible: Ct, isItemVisible: (H) => L.getVisible().map((K) => K[0]).includes(String(H)), isLastItem: (H) => L.last() === ee(H), isLastItemVisible: te, scrollNext: (H, K, ft, { duration: Et, boundary: gt = an } = {}) => {
|
|
360
360
|
const wt = H ?? (N == null ? void 0 : N.behavior);
|
|
361
|
-
return vn(
|
|
361
|
+
return vn(br(), wt, K || "start", ft || "nearest", { boundary: gt, duration: Et ?? (N == null ? void 0 : N.duration) }, W);
|
|
362
362
|
}, scrollPrev: (H, K, ft, { duration: Et, boundary: gt = an } = {}) => {
|
|
363
363
|
const wt = H ?? (N == null ? void 0 : N.behavior);
|
|
364
|
-
return vn(
|
|
364
|
+
return vn(ne(), wt, K || "end", ft || "nearest", { boundary: gt, duration: Et ?? (N == null ? void 0 : N.duration) }, W);
|
|
365
365
|
}, useIsVisible: (H, K = !1) => {
|
|
366
366
|
const [ft, Et] = E.useState(K), gt = E.useCallback((wt) => {
|
|
367
367
|
Et(!!(wt != null && wt.visible));
|
|
@@ -380,10 +380,10 @@ function Ps({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, tr
|
|
|
380
380
|
et.unsubscribe(bt.onInit, rt), et.unsubscribe(bt.onUpdate, ot);
|
|
381
381
|
}), [et, rt, ot]);
|
|
382
382
|
})({ context: U, onInit: s, onUpdate: u }), E.useEffect(() => X(ut()), [ut]), E.useEffect(() => {
|
|
383
|
-
|
|
383
|
+
In(R) ? R.current = U : R(U);
|
|
384
384
|
}, [U, R]);
|
|
385
|
-
const D = E.useCallback((L) => p(U, L), [p, U]), _ = E.useCallback((L) => h(U, L), [h, U]), C = E.useMemo(() => `${Za} ${T}`, [T]),
|
|
386
|
-
return E.createElement("div", { className: C, onWheel: _, onMouseDown: l == null ? void 0 : l(U), onMouseLeave: c == null ? void 0 : c(U), onMouseUp: f == null ? void 0 : f(U), onMouseMove: d == null ? void 0 : d(U), onTouchStart: m == null ? void 0 : m(U), onTouchMove: v == null ? void 0 : v(U), onTouchEnd: y == null ? void 0 : y(U) }, E.createElement(hs.Provider, { value: U }, E.createElement("div", { className: Qa }, $), E.createElement("div", { className: Ja }, E.createElement("div", { className: ts }, F), E.createElement(ms, { className:
|
|
385
|
+
const D = E.useCallback((L) => p(U, L), [p, U]), _ = E.useCallback((L) => h(U, L), [h, U]), C = E.useMemo(() => `${Za} ${T}`, [T]), O = E.useMemo(() => `${g}${B ? " rtl" : pt}`, [B, g]);
|
|
386
|
+
return E.createElement("div", { className: C, onWheel: _, onMouseDown: l == null ? void 0 : l(U), onMouseLeave: c == null ? void 0 : c(U), onMouseUp: f == null ? void 0 : f(U), onMouseMove: d == null ? void 0 : d(U), onTouchStart: m == null ? void 0 : m(U), onTouchMove: v == null ? void 0 : v(U), onTouchEnd: y == null ? void 0 : y(U) }, E.createElement(hs.Provider, { value: U }, E.createElement("div", { className: Qa }, $), E.createElement("div", { className: Ja }, E.createElement("div", { className: ts }, F), E.createElement(ms, { className: O, onScroll: D, scrollRef: I, containerRef: w }, E.createElement(ps, { refs: G, itemClassName: x }, n)), E.createElement("div", { className: es }, J)), E.createElement("div", { className: ns }, j)));
|
|
387
387
|
}
|
|
388
388
|
const ws = "_StoryPlayer_v4m0s_1", _s = "_Overlay_v4m0s_15", xs = "_StoryPlayer__Wrap_v4m0s_25", Ts = "_progressContainer_v4m0s_37", Cs = "_CloseIcon_v4m0s_41", Es = "_inline_v4m0s_57", Vs = "_progressBarContainer_v4m0s_75", Is = "_progressBar_v4m0s_75", Rt = {
|
|
389
389
|
StoryPlayer: ws,
|
|
@@ -428,8 +428,8 @@ function Rs(t) {
|
|
|
428
428
|
function Xe() {
|
|
429
429
|
return st(Zo);
|
|
430
430
|
}
|
|
431
|
-
var Ls = "ProgressBar-styles_wrapper__oqUCo",
|
|
432
|
-
function
|
|
431
|
+
var Ls = "ProgressBar-styles_wrapper__oqUCo", Os = "ProgressBar-styles_bar__x0O50", Ir = 0, Ar = 0.1;
|
|
432
|
+
function Bs(t) {
|
|
433
433
|
var e, n, r, o, a, i = Xe(), s = i.defaultDuration, u = i.classNames, l = Z(null), c = Z(null), f = Pt(!1), d = f[0], p = f[1];
|
|
434
434
|
return k(function() {
|
|
435
435
|
!t.isPaused && t.isActive && t.isActive ? p(!0) : p(!1);
|
|
@@ -438,7 +438,7 @@ function Os(t) {
|
|
|
438
438
|
l.current && (t.hasStoryPassed ? l.current.style.width = "".concat((v = c == null ? void 0 : c.current) === null || v === void 0 ? void 0 : v.offsetWidth, "px") : l.current.style.width = "0px");
|
|
439
439
|
}, [t.hasStoryPassed, t.isActive]), e = function(v) {
|
|
440
440
|
var m;
|
|
441
|
-
l.current && c.current && ((
|
|
441
|
+
l.current && c.current && ((Ir = Number((l.current.style.width || "1px").slice(0, l.current.style.width.length - 2)) || 0) > c.current.offsetWidth ? p(!1) : (Ar = ((m = c == null ? void 0 : c.current) === null || m === void 0 ? void 0 : m.offsetWidth) / ((t.story.duration || s) / v), l.current.style.width = "".concat(Ir + Ar, "px")));
|
|
442
442
|
}, n = d, r = Z(), o = Z(), a = Z(e), k(function() {
|
|
443
443
|
a.current = e;
|
|
444
444
|
}, [e]), k(function() {
|
|
@@ -453,13 +453,13 @@ function Os(t) {
|
|
|
453
453
|
}) : function() {
|
|
454
454
|
r.current && (r.current = null), cancelAnimationFrame(r.current), o.current = null;
|
|
455
455
|
};
|
|
456
|
-
}, [n]), P("div", Y({ className: "".concat(Ls, " ").concat((u == null ? void 0 : u.progressBarContainer) || ""), ref: c }, { children: P("div", { className: "".concat(
|
|
456
|
+
}, [n]), P("div", Y({ className: "".concat(Ls, " ").concat((u == null ? void 0 : u.progressBarContainer) || ""), ref: c }, { children: P("div", { className: "".concat(Os, " ").concat((u == null ? void 0 : u.progressBar) || ""), ref: l }) }));
|
|
457
457
|
}
|
|
458
458
|
var Ds = "progress-styles_wrapper__qQPyW";
|
|
459
459
|
function Ns(t) {
|
|
460
460
|
var e = Xe(), n = e.stories, r = e.classNames;
|
|
461
461
|
return P("div", Y({ className: "".concat(Ds, " ").concat((r == null ? void 0 : r.progressContainer) || ""), style: { gridTemplateColumns: "repeat(".concat(n.length, ",1fr)") } }, { children: n.map(function(o) {
|
|
462
|
-
return P(
|
|
462
|
+
return P(Bs, { hasStoryPassed: o.index < t.activeStoryIndex, isActive: o.index === t.activeStoryIndex, story: o, isPaused: o.index === t.activeStoryIndex && t.isPaused }, o.index);
|
|
463
463
|
}) }));
|
|
464
464
|
}
|
|
465
465
|
var mn = Object.freeze({ IMAGE: "image", VIDEO: "video", COMPONENT: "component" }), Fs = "Story-styles_wrapper__oJP7j", js = "Story-styles_header__-rnWL", ks = "Image-styles_image__gnfW1";
|
|
@@ -476,12 +476,12 @@ var hn, Us = "Video-styles_video__BykuO", Ws = "Video-styles_loaderWrapper__TqVW
|
|
|
476
476
|
function Gs(t) {
|
|
477
477
|
return t.type === "off" ? P("svg", Y({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "white" }, { children: P("path", { d: "M3 9v6h-1v-6h1zm13-7l-9 5v2.288l7-3.889v13.202l-7-3.889v2.288l9 5v-20zm-11 5h-5v10h5v-10zm17.324 4.993l1.646-1.659-1.324-1.324-1.651 1.67-1.665-1.648-1.316 1.318 1.67 1.657-1.65 1.669 1.318 1.317 1.658-1.672 1.666 1.653 1.324-1.325-1.676-1.656z" }) })) : P("svg", Y({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "white" }, { children: P("path", { d: "M22 0v24l-11-6v-2.278l9 4.909v-17.262l-9 4.91v-2.279l11-6zm-13 6v12h-7v-12h7zm-2 2h-3v8h3v-8z" }) }));
|
|
478
478
|
}
|
|
479
|
-
var
|
|
479
|
+
var An = "RSIsMute", Gt = typeof window > "u" ? {} : window;
|
|
480
480
|
function Ks(t) {
|
|
481
|
-
var e, n = Xe().isPaused, r = Pt(((e =
|
|
481
|
+
var e, n = Xe().isPaused, r = Pt(((e = Gt == null ? void 0 : Gt.localStorage) === null || e === void 0 ? void 0 : e.getItem(An)) === "true"), o = r[0], a = r[1], i = Pt(!1), s = i[0], u = i[1], l = Z(null);
|
|
482
482
|
function c(f) {
|
|
483
483
|
var d;
|
|
484
|
-
(d =
|
|
484
|
+
(d = Gt == null ? void 0 : Gt.localStorage) === null || d === void 0 || d.setItem(An, String(f)), a(f);
|
|
485
485
|
}
|
|
486
486
|
return k(function() {
|
|
487
487
|
t.onPause(), u(!0);
|
|
@@ -498,7 +498,7 @@ function Ks(t) {
|
|
|
498
498
|
return c(!o);
|
|
499
499
|
} }, { children: P(Gs, { type: o ? "off" : "on" }) })), s && P("div", Y({ className: Ws }, { children: P("div", { className: Hs }) }))] });
|
|
500
500
|
}
|
|
501
|
-
(hn =
|
|
501
|
+
(hn = Gt == null ? void 0 : Gt.localStorage) === null || hn === void 0 || hn.setItem(An, "true");
|
|
502
502
|
var Ys = "CustomComponents-styles_component__w87Wx";
|
|
503
503
|
function qs(t) {
|
|
504
504
|
return P("div", Y({ className: Ys }, { children: P(t.story.component, { pause: t.onPause, resume: t.onResume, story: t.story, isPaused: t.isPaused }) }));
|
|
@@ -532,26 +532,26 @@ function nu(t) {
|
|
|
532
532
|
} })] }));
|
|
533
533
|
}
|
|
534
534
|
var ru = "styles_main__-0FEu";
|
|
535
|
-
function
|
|
535
|
+
function Mr(t) {
|
|
536
536
|
return t === void 0 && (t = 4), Number(Math.random().toFixed(t));
|
|
537
537
|
}
|
|
538
538
|
function ou(t) {
|
|
539
539
|
var e, n, r, o, a, i, s, u = t.stories, l = u === void 0 ? [] : u, c = t.width, f = c === void 0 ? "100%" : c, d = t.height, p = d === void 0 ? "100%" : d, v = t.onStoryChange, m = v === void 0 ? function() {
|
|
540
540
|
} : v, y = t.currentIndex, h = y === void 0 ? 0 : y, S = t.defaultDuration, g = S === void 0 ? 1e4 : S, w = t.onAllStoriesEnd, x = w === void 0 ? function() {
|
|
541
541
|
} : w, T = t.onStoriesStart, R = T === void 0 ? function() {
|
|
542
|
-
} : T,
|
|
543
|
-
return function(
|
|
542
|
+
} : T, B = t.classNames, V = B === void 0 ? {} : B, F = t.pauseStoryWhenInActiveWindow, J = F === void 0 || F, $ = qe(function() {
|
|
543
|
+
return function(O, L) {
|
|
544
544
|
var N = 0;
|
|
545
|
-
return
|
|
546
|
-
var ot = W.duration || L, et = ot +
|
|
547
|
-
return et === N && (et = ot +
|
|
545
|
+
return O.map(function(W, rt) {
|
|
546
|
+
var ot = W.duration || L, et = ot + Mr();
|
|
547
|
+
return et === N && (et = ot + Mr(6)), N = et, Y(Y({}, W), { index: rt, calculatedDuration: et });
|
|
548
548
|
});
|
|
549
549
|
}(l, g);
|
|
550
550
|
}, [l, g]), j = Pt(), I = j[0], G = j[1], Q = l.length - 1, M = Pt(!1), it = M[0], at = M[1], ut = Z(!1), U = Z(!1);
|
|
551
551
|
function X() {
|
|
552
|
-
ut.current || (I == null ? void 0 : I.index) !== Q || (x(), ut.current = !0), (I == null ? void 0 : I.index) !== Q && G(function(
|
|
553
|
-
if (!
|
|
554
|
-
var L = (
|
|
552
|
+
ut.current || (I == null ? void 0 : I.index) !== Q || (x(), ut.current = !0), (I == null ? void 0 : I.index) !== Q && G(function(O) {
|
|
553
|
+
if (!O) return $[0];
|
|
554
|
+
var L = (O == null ? void 0 : O.index) + 1;
|
|
555
555
|
return $[L];
|
|
556
556
|
});
|
|
557
557
|
}
|
|
@@ -564,8 +564,8 @@ function ou(t) {
|
|
|
564
564
|
k(function() {
|
|
565
565
|
U.current || (U.current = !0, R());
|
|
566
566
|
}, [R]), k(function() {
|
|
567
|
-
var
|
|
568
|
-
|
|
567
|
+
var O = $[h];
|
|
568
|
+
O && G(O);
|
|
569
569
|
}, [h, l]), k(function() {
|
|
570
570
|
I && m(I.index);
|
|
571
571
|
}, [I]), n = function() {
|
|
@@ -577,22 +577,22 @@ function ou(t) {
|
|
|
577
577
|
}, [r]), k(function() {
|
|
578
578
|
if (r !== null && o === !1) {
|
|
579
579
|
s.current = Date.now();
|
|
580
|
-
var
|
|
580
|
+
var O = setTimeout(function() {
|
|
581
581
|
a.current();
|
|
582
582
|
}, i.current);
|
|
583
583
|
return function() {
|
|
584
|
-
clearTimeout(
|
|
584
|
+
clearTimeout(O);
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
587
|
return function() {
|
|
588
588
|
};
|
|
589
589
|
}, [r, o]), k(function() {
|
|
590
590
|
o && (i.current = i.current - (Date.now() - s.current));
|
|
591
|
-
}, [o]), function(
|
|
592
|
-
var L = Z(
|
|
591
|
+
}, [o]), function(O) {
|
|
592
|
+
var L = Z(O);
|
|
593
593
|
k(function() {
|
|
594
|
-
L.current =
|
|
595
|
-
}, [
|
|
594
|
+
L.current = O;
|
|
595
|
+
}, [O]), k(function() {
|
|
596
596
|
function N() {
|
|
597
597
|
L.current(!0);
|
|
598
598
|
}
|
|
@@ -603,29 +603,29 @@ function ou(t) {
|
|
|
603
603
|
window.removeEventListener("focus", N), window.removeEventListener("blur", W);
|
|
604
604
|
};
|
|
605
605
|
}, []);
|
|
606
|
-
}(function(
|
|
607
|
-
J && at(!
|
|
606
|
+
}(function(O) {
|
|
607
|
+
J && at(!O);
|
|
608
608
|
});
|
|
609
609
|
var C = { stories: $, width: f, height: p, defaultDuration: g, isPaused: it, classNames: V };
|
|
610
610
|
return I ? P(Zo.Provider, Y({ value: C }, { children: q("div", Y({ className: "".concat(ru, " ").concat(V.main || ""), style: { width: f, height: p } }, { children: [P(Ns, { activeStoryIndex: I.index, isPaused: it }), P(nu, { onPause: D, onResume: _, story: I, isPaused: it }, I.index), P(Rs, { onNextClick: X, onPrevClick: function() {
|
|
611
|
-
(I == null ? void 0 : I.index) !== 0 && G(function(
|
|
612
|
-
if (!
|
|
613
|
-
var L = (
|
|
611
|
+
(I == null ? void 0 : I.index) !== 0 && G(function(O) {
|
|
612
|
+
if (!O) return $[0];
|
|
613
|
+
var L = (O == null ? void 0 : O.index) - 1;
|
|
614
614
|
return $[L];
|
|
615
615
|
});
|
|
616
616
|
}, onPause: D, onResume: _ })] })) })) : null;
|
|
617
617
|
}
|
|
618
|
-
var
|
|
619
|
-
return
|
|
618
|
+
var Mn = function(t, e) {
|
|
619
|
+
return Mn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
620
620
|
n.__proto__ = r;
|
|
621
621
|
} || function(n, r) {
|
|
622
622
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
|
|
623
|
-
},
|
|
623
|
+
}, Mn(t, e);
|
|
624
624
|
};
|
|
625
625
|
function Jo(t, e) {
|
|
626
626
|
if (typeof e != "function" && e !== null)
|
|
627
627
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
628
|
-
|
|
628
|
+
Mn(t, e);
|
|
629
629
|
function n() {
|
|
630
630
|
this.constructor = t;
|
|
631
631
|
}
|
|
@@ -670,7 +670,7 @@ function mt(t, e, n) {
|
|
|
670
670
|
(a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
|
|
671
671
|
return t.concat(a || Array.prototype.slice.call(e));
|
|
672
672
|
}
|
|
673
|
-
var
|
|
673
|
+
var Rr = "production", Qo = typeof process > "u" || process.env === void 0 ? Rr : process.env.NODE_ENV || Rr, Vt = function(t) {
|
|
674
674
|
return {
|
|
675
675
|
isEnabled: function(e) {
|
|
676
676
|
return t.some(function(n) {
|
|
@@ -678,7 +678,7 @@ var Mr = "production", Qo = typeof process > "u" || process.env === void 0 ? Mr
|
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
680
|
};
|
|
681
|
-
},
|
|
681
|
+
}, pe = {
|
|
682
682
|
measureLayout: Vt(["layout", "layoutId", "drag"]),
|
|
683
683
|
animation: Vt([
|
|
684
684
|
"animate",
|
|
@@ -709,30 +709,30 @@ var Mr = "production", Qo = typeof process > "u" || process.env === void 0 ? Mr
|
|
|
709
709
|
};
|
|
710
710
|
function iu(t) {
|
|
711
711
|
for (var e in t)
|
|
712
|
-
t[e] !== null && (e === "projectionNodeConstructor" ?
|
|
712
|
+
t[e] !== null && (e === "projectionNodeConstructor" ? pe.projectionNodeConstructor = t[e] : pe[e].Component = t[e]);
|
|
713
713
|
}
|
|
714
|
-
var
|
|
714
|
+
var be = function() {
|
|
715
715
|
}, vt = function() {
|
|
716
716
|
};
|
|
717
|
-
process.env.NODE_ENV !== "production" && (
|
|
717
|
+
process.env.NODE_ENV !== "production" && (be = function(t, e) {
|
|
718
718
|
!t && typeof console < "u" && console.warn(e);
|
|
719
719
|
}, vt = function(t, e) {
|
|
720
720
|
if (!t)
|
|
721
721
|
throw new Error(e);
|
|
722
722
|
});
|
|
723
|
-
var ti = Wt({ strict: !1 }), ei = Object.keys(
|
|
723
|
+
var ti = Wt({ strict: !1 }), ei = Object.keys(pe), au = ei.length;
|
|
724
724
|
function su(t, e, n) {
|
|
725
725
|
var r = [], o = st(ti);
|
|
726
726
|
if (!e)
|
|
727
727
|
return null;
|
|
728
728
|
Qo !== "production" && n && o.strict && vt(!1, "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");
|
|
729
729
|
for (var a = 0; a < au; a++) {
|
|
730
|
-
var i = ei[a], s =
|
|
731
|
-
u(t) && l && r.push(
|
|
730
|
+
var i = ei[a], s = pe[i], u = s.isEnabled, l = s.Component;
|
|
731
|
+
u(t) && l && r.push(Vn.createElement(l, b({ key: i }, t, { visualElement: e })));
|
|
732
732
|
}
|
|
733
733
|
return r;
|
|
734
734
|
}
|
|
735
|
-
var
|
|
735
|
+
var Zn = Wt({
|
|
736
736
|
transformPagePoint: function(t) {
|
|
737
737
|
return t;
|
|
738
738
|
},
|
|
@@ -742,24 +742,24 @@ var Xn = Wt({
|
|
|
742
742
|
function uu() {
|
|
743
743
|
return st(Ze).visualElement;
|
|
744
744
|
}
|
|
745
|
-
var Je = Wt(null),
|
|
745
|
+
var Je = Wt(null), Qt = typeof document < "u", Lr = Qt ? Ia : k, Rn = { current: null }, ni = !1;
|
|
746
746
|
function lu() {
|
|
747
|
-
if (ni = !0, !!
|
|
747
|
+
if (ni = !0, !!Qt)
|
|
748
748
|
if (window.matchMedia) {
|
|
749
749
|
var t = window.matchMedia("(prefers-reduced-motion)"), e = function() {
|
|
750
|
-
return
|
|
750
|
+
return Rn.current = t.matches;
|
|
751
751
|
};
|
|
752
752
|
t.addListener(e), e();
|
|
753
753
|
} else
|
|
754
|
-
|
|
754
|
+
Rn.current = !1;
|
|
755
755
|
}
|
|
756
756
|
function cu() {
|
|
757
757
|
!ni && lu();
|
|
758
|
-
var t = nt(Pt(
|
|
758
|
+
var t = nt(Pt(Rn.current), 1), e = t[0];
|
|
759
759
|
return e;
|
|
760
760
|
}
|
|
761
761
|
function fu() {
|
|
762
|
-
var t = cu(), e = st(
|
|
762
|
+
var t = cu(), e = st(Zn).reducedMotion;
|
|
763
763
|
return e === "never" ? !1 : e === "always" ? !0 : t;
|
|
764
764
|
}
|
|
765
765
|
function du(t, e, n, r) {
|
|
@@ -773,25 +773,25 @@ function du(t, e, n, r) {
|
|
|
773
773
|
shouldReduceMotion: s
|
|
774
774
|
}));
|
|
775
775
|
var l = u.current;
|
|
776
|
-
return
|
|
776
|
+
return Lr(function() {
|
|
777
777
|
l == null || l.syncRender();
|
|
778
778
|
}), k(function() {
|
|
779
779
|
var c;
|
|
780
780
|
(c = l == null ? void 0 : l.animationState) === null || c === void 0 || c.animateChanges();
|
|
781
|
-
}),
|
|
781
|
+
}), Lr(function() {
|
|
782
782
|
return function() {
|
|
783
783
|
return l == null ? void 0 : l.notifyUnmount();
|
|
784
784
|
};
|
|
785
785
|
}, []), l;
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Kt(t) {
|
|
788
788
|
return typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
789
789
|
}
|
|
790
790
|
function vu(t, e, n) {
|
|
791
|
-
return
|
|
791
|
+
return ve(
|
|
792
792
|
function(r) {
|
|
793
793
|
var o;
|
|
794
|
-
r && ((o = t.mount) === null || o === void 0 || o.call(t, r)), e && (r ? e.mount(r) : e.unmount()), n && (typeof n == "function" ? n(r) :
|
|
794
|
+
r && ((o = t.mount) === null || o === void 0 || o.call(t, r)), e && (r ? e.mount(r) : e.unmount()), n && (typeof n == "function" ? n(r) : Kt(n) && (n.current = r));
|
|
795
795
|
},
|
|
796
796
|
/**
|
|
797
797
|
* Only pass a new ref callback to React if we've received a visual element
|
|
@@ -848,16 +848,16 @@ function gu(t) {
|
|
|
848
848
|
var e = hu(t, st(Ze)), n = e.initial, r = e.animate;
|
|
849
849
|
return qe(function() {
|
|
850
850
|
return { initial: n, animate: r };
|
|
851
|
-
}, [
|
|
851
|
+
}, [Or(n), Or(r)]);
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function Or(t) {
|
|
854
854
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function Pe(t) {
|
|
857
857
|
var e = Z(null);
|
|
858
858
|
return e.current === null && (e.current = t()), e.current;
|
|
859
859
|
}
|
|
860
|
-
var
|
|
860
|
+
var ie = {
|
|
861
861
|
/**
|
|
862
862
|
* Global flag as to whether the tree has animated since the last time
|
|
863
863
|
* we resized the window
|
|
@@ -870,8 +870,8 @@ var ae = {
|
|
|
870
870
|
hasEverUpdated: !1
|
|
871
871
|
}, yu = 1;
|
|
872
872
|
function Su() {
|
|
873
|
-
return
|
|
874
|
-
if (
|
|
873
|
+
return Pe(function() {
|
|
874
|
+
if (ie.hasEverUpdated)
|
|
875
875
|
return yu++;
|
|
876
876
|
});
|
|
877
877
|
}
|
|
@@ -881,7 +881,7 @@ function bu(t, e, n, r) {
|
|
|
881
881
|
!r || !n || n != null && n.projection || (n.projection = new r(t, n.getLatestValues(), (o = n.parent) === null || o === void 0 ? void 0 : o.projection), n.projection.setOptions({
|
|
882
882
|
layoutId: a,
|
|
883
883
|
layout: i,
|
|
884
|
-
alwaysMeasureLayout: !!s || u &&
|
|
884
|
+
alwaysMeasureLayout: !!s || u && Kt(u),
|
|
885
885
|
visualElement: n,
|
|
886
886
|
scheduleRender: function() {
|
|
887
887
|
return n.scheduleRender();
|
|
@@ -922,12 +922,12 @@ function wu(t) {
|
|
|
922
922
|
function s(u, l) {
|
|
923
923
|
var c = _u(u);
|
|
924
924
|
u = b(b({}, u), { layoutId: c });
|
|
925
|
-
var f = st(
|
|
926
|
-
return !f.isStatic &&
|
|
925
|
+
var f = st(Zn), d = null, p = gu(u), v = f.isStatic ? void 0 : Su(), m = a(u, f.isStatic);
|
|
926
|
+
return !f.isStatic && Qt && (p.visualElement = du(i, m, b(b({}, f), u), n), bu(v, u, p.visualElement, r || pe.projectionNodeConstructor), d = su(u, p.visualElement, e)), Vn.createElement(
|
|
927
927
|
Pu,
|
|
928
928
|
{ visualElement: p.visualElement, props: b(b({}, f), u) },
|
|
929
929
|
d,
|
|
930
|
-
|
|
930
|
+
Vn.createElement(Ze.Provider, { value: p }, o(i, u, v, vu(m, p.visualElement, l), m, f.isStatic, p.visualElement))
|
|
931
931
|
);
|
|
932
932
|
}
|
|
933
933
|
return Aa(s);
|
|
@@ -981,7 +981,7 @@ var Tu = [
|
|
|
981
981
|
"use",
|
|
982
982
|
"view"
|
|
983
983
|
];
|
|
984
|
-
function
|
|
984
|
+
function Jn(t) {
|
|
985
985
|
return (
|
|
986
986
|
/**
|
|
987
987
|
* If it's not a string, it's a custom React component. Currently we only support
|
|
@@ -1005,17 +1005,17 @@ var ke = {};
|
|
|
1005
1005
|
function Cu(t) {
|
|
1006
1006
|
Object.assign(ke, t);
|
|
1007
1007
|
}
|
|
1008
|
-
var
|
|
1008
|
+
var Ln = ["", "X", "Y", "Z"], Eu = ["translate", "scale", "rotate", "skew"], me = ["transformPerspective", "x", "y", "z"];
|
|
1009
1009
|
Eu.forEach(function(t) {
|
|
1010
|
-
return
|
|
1011
|
-
return
|
|
1010
|
+
return Ln.forEach(function(e) {
|
|
1011
|
+
return me.push(t + e);
|
|
1012
1012
|
});
|
|
1013
1013
|
});
|
|
1014
1014
|
function Vu(t, e) {
|
|
1015
|
-
return
|
|
1015
|
+
return me.indexOf(t) - me.indexOf(e);
|
|
1016
1016
|
}
|
|
1017
|
-
var Iu = new Set(
|
|
1018
|
-
function
|
|
1017
|
+
var Iu = new Set(me);
|
|
1018
|
+
function we(t) {
|
|
1019
1019
|
return Iu.has(t);
|
|
1020
1020
|
}
|
|
1021
1021
|
var Au = /* @__PURE__ */ new Set(["originX", "originY", "originZ"]);
|
|
@@ -1024,7 +1024,7 @@ function ui(t) {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
function li(t, e) {
|
|
1026
1026
|
var n = e.layout, r = e.layoutId;
|
|
1027
|
-
return
|
|
1027
|
+
return we(t) || ui(t) || (n || r !== void 0) && (!!ke[t] || t === "opacity");
|
|
1028
1028
|
}
|
|
1029
1029
|
var It = function(t) {
|
|
1030
1030
|
return !!(t !== null && typeof t == "object" && t.getVelocity);
|
|
@@ -1050,25 +1050,25 @@ function Lu(t) {
|
|
|
1050
1050
|
function ci(t) {
|
|
1051
1051
|
return t.startsWith("--");
|
|
1052
1052
|
}
|
|
1053
|
-
var
|
|
1053
|
+
var Ou = function(t, e) {
|
|
1054
1054
|
return e && typeof t == "number" ? e.transform(t) : t;
|
|
1055
1055
|
};
|
|
1056
|
-
const fi = (t, e) => (n) => Math.max(Math.min(n, e), t),
|
|
1057
|
-
function
|
|
1056
|
+
const fi = (t, e) => (n) => Math.max(Math.min(n, e), t), ae = (t) => t % 1 ? Number(t.toFixed(5)) : t, he = /(-)?([\d]*\.?[\d])+/g, On = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi, Bu = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
|
|
1057
|
+
function _e(t) {
|
|
1058
1058
|
return typeof t == "string";
|
|
1059
1059
|
}
|
|
1060
1060
|
const Ht = {
|
|
1061
1061
|
test: (t) => typeof t == "number",
|
|
1062
1062
|
parse: parseFloat,
|
|
1063
1063
|
transform: (t) => t
|
|
1064
|
-
},
|
|
1065
|
-
test: (e) =>
|
|
1064
|
+
}, se = Object.assign(Object.assign({}, Ht), { transform: fi(0, 1) }), Ie = Object.assign(Object.assign({}, Ht), { default: 1 }), xe = (t) => ({
|
|
1065
|
+
test: (e) => _e(e) && e.endsWith(t) && e.split(" ").length === 1,
|
|
1066
1066
|
parse: parseFloat,
|
|
1067
1067
|
transform: (e) => `${e}${t}`
|
|
1068
|
-
}), Lt =
|
|
1069
|
-
if (!
|
|
1068
|
+
}), Lt = xe("deg"), xt = xe("%"), A = xe("px"), Du = xe("vh"), Nu = xe("vw"), Br = Object.assign(Object.assign({}, xt), { parse: (t) => xt.parse(t) / 100, transform: (t) => xt.transform(t * 100) }), Qn = (t, e) => (n) => !!(_e(n) && Bu.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)), di = (t, e, n) => (r) => {
|
|
1069
|
+
if (!_e(r))
|
|
1070
1070
|
return r;
|
|
1071
|
-
const [o, a, i, s] = r.match(
|
|
1071
|
+
const [o, a, i, s] = r.match(he);
|
|
1072
1072
|
return {
|
|
1073
1073
|
[t]: parseFloat(o),
|
|
1074
1074
|
[e]: parseFloat(a),
|
|
@@ -1076,13 +1076,13 @@ const Ht = {
|
|
|
1076
1076
|
alpha: s !== void 0 ? parseFloat(s) : 1
|
|
1077
1077
|
};
|
|
1078
1078
|
}, $t = {
|
|
1079
|
-
test:
|
|
1079
|
+
test: Qn("hsl", "hue"),
|
|
1080
1080
|
parse: di("hue", "saturation", "lightness"),
|
|
1081
|
-
transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + xt.transform(
|
|
1081
|
+
transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + xt.transform(ae(e)) + ", " + xt.transform(ae(n)) + ", " + ae(se.transform(r)) + ")"
|
|
1082
1082
|
}, Fu = fi(0, 255), gn = Object.assign(Object.assign({}, Ht), { transform: (t) => Math.round(Fu(t)) }), Dt = {
|
|
1083
|
-
test:
|
|
1083
|
+
test: Qn("rgb", "red"),
|
|
1084
1084
|
parse: di("red", "green", "blue"),
|
|
1085
|
-
transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + gn.transform(t) + ", " + gn.transform(e) + ", " + gn.transform(n) + ", " + se
|
|
1085
|
+
transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + gn.transform(t) + ", " + gn.transform(e) + ", " + gn.transform(n) + ", " + ae(se.transform(r)) + ")"
|
|
1086
1086
|
};
|
|
1087
1087
|
function ju(t) {
|
|
1088
1088
|
let e = "", n = "", r = "", o = "";
|
|
@@ -1094,26 +1094,26 @@ function ju(t) {
|
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
1096
|
const Bn = {
|
|
1097
|
-
test:
|
|
1097
|
+
test: Qn("#"),
|
|
1098
1098
|
parse: ju,
|
|
1099
1099
|
transform: Dt.transform
|
|
1100
1100
|
}, ct = {
|
|
1101
1101
|
test: (t) => Dt.test(t) || Bn.test(t) || $t.test(t),
|
|
1102
1102
|
parse: (t) => Dt.test(t) ? Dt.parse(t) : $t.test(t) ? $t.parse(t) : Bn.parse(t),
|
|
1103
|
-
transform: (t) =>
|
|
1103
|
+
transform: (t) => _e(t) ? t : t.hasOwnProperty("red") ? Dt.transform(t) : $t.transform(t)
|
|
1104
1104
|
}, vi = "${c}", pi = "${n}";
|
|
1105
1105
|
function ku(t) {
|
|
1106
1106
|
var e, n, r, o;
|
|
1107
|
-
return isNaN(t) &&
|
|
1107
|
+
return isNaN(t) && _e(t) && ((n = (e = t.match(he)) === null || e === void 0 ? void 0 : e.length) !== null && n !== void 0 ? n : 0) + ((o = (r = t.match(On)) === null || r === void 0 ? void 0 : r.length) !== null && o !== void 0 ? o : 0) > 0;
|
|
1108
1108
|
}
|
|
1109
1109
|
function mi(t) {
|
|
1110
1110
|
typeof t == "number" && (t = `${t}`);
|
|
1111
1111
|
const e = [];
|
|
1112
1112
|
let n = 0;
|
|
1113
|
-
const r = t.match(
|
|
1114
|
-
r && (n = r.length, t = t.replace(
|
|
1115
|
-
const o = t.match(
|
|
1116
|
-
return o && (t = t.replace(
|
|
1113
|
+
const r = t.match(On);
|
|
1114
|
+
r && (n = r.length, t = t.replace(On, vi), e.push(...r.map(ct.parse)));
|
|
1115
|
+
const o = t.match(he);
|
|
1116
|
+
return o && (t = t.replace(he, pi), e.push(...o.map(Ht.parse))), { values: e, numColors: n, tokenised: t };
|
|
1117
1117
|
}
|
|
1118
1118
|
function hi(t) {
|
|
1119
1119
|
return mi(t).values;
|
|
@@ -1123,7 +1123,7 @@ function gi(t) {
|
|
|
1123
1123
|
return (a) => {
|
|
1124
1124
|
let i = r;
|
|
1125
1125
|
for (let s = 0; s < o; s++)
|
|
1126
|
-
i = i.replace(s < n ? vi : pi, s < n ? ct.transform(a[s]) :
|
|
1126
|
+
i = i.replace(s < n ? vi : pi, s < n ? ct.transform(a[s]) : ae(a[s]));
|
|
1127
1127
|
return i;
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
@@ -1137,18 +1137,18 @@ function Hu(t) {
|
|
|
1137
1137
|
let [e, n] = t.slice(0, -1).split("(");
|
|
1138
1138
|
if (e === "drop-shadow")
|
|
1139
1139
|
return t;
|
|
1140
|
-
const [r] = n.match(
|
|
1140
|
+
const [r] = n.match(he) || [];
|
|
1141
1141
|
if (!r)
|
|
1142
1142
|
return t;
|
|
1143
1143
|
const o = n.replace(r, "");
|
|
1144
1144
|
let a = Wu.has(e) ? 1 : 0;
|
|
1145
1145
|
return r !== n && (a *= 100), e + "(" + a + o + ")";
|
|
1146
1146
|
}
|
|
1147
|
-
const zu = /([a-z-]*)\(.*?\)/g,
|
|
1147
|
+
const zu = /([a-z-]*)\(.*?\)/g, Dn = Object.assign(Object.assign({}, At), { getAnimatableNone: (t) => {
|
|
1148
1148
|
const e = t.match(zu);
|
|
1149
1149
|
return e ? e.map(Hu).join(" ") : t;
|
|
1150
1150
|
} });
|
|
1151
|
-
var
|
|
1151
|
+
var Dr = b(b({}, Ht), { transform: Math.round }), yi = {
|
|
1152
1152
|
// Border props
|
|
1153
1153
|
borderWidth: A,
|
|
1154
1154
|
borderTopWidth: A,
|
|
@@ -1187,10 +1187,10 @@ var Or = b(b({}, Ht), { transform: Math.round }), yi = {
|
|
|
1187
1187
|
rotateX: Lt,
|
|
1188
1188
|
rotateY: Lt,
|
|
1189
1189
|
rotateZ: Lt,
|
|
1190
|
-
scale:
|
|
1191
|
-
scaleX:
|
|
1192
|
-
scaleY:
|
|
1193
|
-
scaleZ:
|
|
1190
|
+
scale: Ie,
|
|
1191
|
+
scaleX: Ie,
|
|
1192
|
+
scaleY: Ie,
|
|
1193
|
+
scaleZ: Ie,
|
|
1194
1194
|
skew: Lt,
|
|
1195
1195
|
skewX: Lt,
|
|
1196
1196
|
skewY: Lt,
|
|
@@ -1203,18 +1203,18 @@ var Or = b(b({}, Ht), { transform: Math.round }), yi = {
|
|
|
1203
1203
|
z: A,
|
|
1204
1204
|
perspective: A,
|
|
1205
1205
|
transformPerspective: A,
|
|
1206
|
-
opacity:
|
|
1206
|
+
opacity: se,
|
|
1207
1207
|
originX: Br,
|
|
1208
1208
|
originY: Br,
|
|
1209
1209
|
originZ: A,
|
|
1210
1210
|
// Misc
|
|
1211
|
-
zIndex:
|
|
1211
|
+
zIndex: Dr,
|
|
1212
1212
|
// SVG
|
|
1213
|
-
fillOpacity:
|
|
1214
|
-
strokeOpacity:
|
|
1215
|
-
numOctaves:
|
|
1213
|
+
fillOpacity: se,
|
|
1214
|
+
strokeOpacity: se,
|
|
1215
|
+
numOctaves: Dr
|
|
1216
1216
|
};
|
|
1217
|
-
function
|
|
1217
|
+
function tr(t, e, n, r) {
|
|
1218
1218
|
var o, a = t.style, i = t.vars, s = t.transform, u = t.transformKeys, l = t.transformOrigin;
|
|
1219
1219
|
u.length = 0;
|
|
1220
1220
|
var c = !1, f = !1, d = !0;
|
|
@@ -1224,8 +1224,8 @@ function Qn(t, e, n, r) {
|
|
|
1224
1224
|
i[p] = v;
|
|
1225
1225
|
continue;
|
|
1226
1226
|
}
|
|
1227
|
-
var m = yi[p], y =
|
|
1228
|
-
if (
|
|
1227
|
+
var m = yi[p], y = Ou(v, m);
|
|
1228
|
+
if (we(p)) {
|
|
1229
1229
|
if (c = !0, s[p] = y, u.push(p), !d)
|
|
1230
1230
|
continue;
|
|
1231
1231
|
v !== ((o = m.default) !== null && o !== void 0 ? o : 0) && (d = !1);
|
|
@@ -1233,7 +1233,7 @@ function Qn(t, e, n, r) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
c ? a.transform = Ru(t, n, d, r) : r ? a.transform = r({}, "") : !e.transform && a.transform && (a.transform = "none"), f && (a.transformOrigin = Lu(l));
|
|
1235
1235
|
}
|
|
1236
|
-
var
|
|
1236
|
+
var er = function() {
|
|
1237
1237
|
return {
|
|
1238
1238
|
style: {},
|
|
1239
1239
|
transform: {},
|
|
@@ -1249,8 +1249,8 @@ function Si(t, e, n) {
|
|
|
1249
1249
|
function Gu(t, e, n) {
|
|
1250
1250
|
var r = t.transformTemplate;
|
|
1251
1251
|
return qe(function() {
|
|
1252
|
-
var o =
|
|
1253
|
-
|
|
1252
|
+
var o = er();
|
|
1253
|
+
tr(o, e, { enableHardwareAcceleration: !n }, r);
|
|
1254
1254
|
var a = o.vars, i = o.style;
|
|
1255
1255
|
return b(b({}, a), i);
|
|
1256
1256
|
}, [e]);
|
|
@@ -1343,11 +1343,11 @@ function Zu(t, e, n) {
|
|
|
1343
1343
|
t.draggable && o.startsWith("onDrag")) && (r[o] = t[o]);
|
|
1344
1344
|
return r;
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Nr(t, e, n) {
|
|
1347
1347
|
return typeof t == "string" ? t : A.transform(e + n * t);
|
|
1348
1348
|
}
|
|
1349
1349
|
function Ju(t, e, n) {
|
|
1350
|
-
var r =
|
|
1350
|
+
var r = Nr(e, t.x, t.width), o = Nr(n, t.y, t.height);
|
|
1351
1351
|
return "".concat(r, " ").concat(o);
|
|
1352
1352
|
}
|
|
1353
1353
|
var Qu = {
|
|
@@ -1361,19 +1361,19 @@ function tl(t, e, n, r, o) {
|
|
|
1361
1361
|
var i = A.transform(e), s = A.transform(n);
|
|
1362
1362
|
t[a.array] = "".concat(i, " ").concat(s);
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function nr(t, e, n, r) {
|
|
1365
1365
|
var o = e.attrX, a = e.attrY, i = e.originX, s = e.originY, u = e.pathLength, l = e.pathSpacing, c = l === void 0 ? 1 : l, f = e.pathOffset, d = f === void 0 ? 0 : f, p = ht(e, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
|
|
1366
|
-
|
|
1366
|
+
tr(t, p, n, r), t.attrs = t.style, t.style = {};
|
|
1367
1367
|
var v = t.attrs, m = t.style, y = t.dimensions;
|
|
1368
1368
|
v.transform && (y && (m.transform = v.transform), delete v.transform), y && (i !== void 0 || s !== void 0 || m.transform) && (m.transformOrigin = Ju(y, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), o !== void 0 && (v.x = o), a !== void 0 && (v.y = a), u !== void 0 && tl(v, u, c, d);
|
|
1369
1369
|
}
|
|
1370
1370
|
var Pi = function() {
|
|
1371
|
-
return b(b({},
|
|
1371
|
+
return b(b({}, er()), { attrs: {} });
|
|
1372
1372
|
};
|
|
1373
1373
|
function el(t, e) {
|
|
1374
1374
|
var n = qe(function() {
|
|
1375
1375
|
var o = Pi();
|
|
1376
|
-
return
|
|
1376
|
+
return nr(o, e, { enableHardwareAcceleration: !1 }, t.transformTemplate), b(b({}, o.attrs), { style: b({}, o.style) });
|
|
1377
1377
|
}, [e]);
|
|
1378
1378
|
if (t.style) {
|
|
1379
1379
|
var r = {};
|
|
@@ -1384,7 +1384,7 @@ function el(t, e) {
|
|
|
1384
1384
|
function nl(t) {
|
|
1385
1385
|
t === void 0 && (t = !1);
|
|
1386
1386
|
var e = function(n, r, o, a, i, s) {
|
|
1387
|
-
var u = i.latestValues, l =
|
|
1387
|
+
var u = i.latestValues, l = Jn(n) ? el : Yu, c = l(r, u, s), f = Zu(r, typeof n == "string", t), d = b(b(b({}, f), c), { ref: a });
|
|
1388
1388
|
return o && (d["data-projection-id"] = o), Ma(n, d);
|
|
1389
1389
|
};
|
|
1390
1390
|
return e;
|
|
@@ -1425,14 +1425,14 @@ function Ti(t, e, n, r) {
|
|
|
1425
1425
|
for (var o in e.attrs)
|
|
1426
1426
|
t.setAttribute(xi.has(o) ? o : wi(o), e.attrs[o]);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function rr(t) {
|
|
1429
1429
|
var e = t.style, n = {};
|
|
1430
1430
|
for (var r in e)
|
|
1431
1431
|
(It(e[r]) || li(r, t)) && (n[r] = e[r]);
|
|
1432
1432
|
return n;
|
|
1433
1433
|
}
|
|
1434
1434
|
function Ci(t) {
|
|
1435
|
-
var e =
|
|
1435
|
+
var e = rr(t);
|
|
1436
1436
|
for (var n in t)
|
|
1437
1437
|
if (It(t[n])) {
|
|
1438
1438
|
var r = n === "x" || n === "y" ? "attr" + n.toUpperCase() : n;
|
|
@@ -1440,21 +1440,21 @@ function Ci(t) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
return e;
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function or(t) {
|
|
1444
1444
|
return typeof t == "object" && typeof t.start == "function";
|
|
1445
1445
|
}
|
|
1446
|
-
var
|
|
1446
|
+
var ge = function(t) {
|
|
1447
1447
|
return Array.isArray(t);
|
|
1448
1448
|
}, il = function(t) {
|
|
1449
1449
|
return !!(t && typeof t == "object" && t.mix && t.toValue);
|
|
1450
1450
|
}, Ei = function(t) {
|
|
1451
|
-
return
|
|
1451
|
+
return ge(t) ? t[t.length - 1] || 0 : t;
|
|
1452
1452
|
};
|
|
1453
1453
|
function Ne(t) {
|
|
1454
1454
|
var e = It(t) ? t.get() : t;
|
|
1455
1455
|
return il(e) ? e.toValue() : e;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Fr(t, e, n, r) {
|
|
1458
1458
|
var o = t.scrapeMotionValuesFromProps, a = t.createRenderState, i = t.onMount, s = {
|
|
1459
1459
|
latestValues: al(e, n, r, o),
|
|
1460
1460
|
renderState: a()
|
|
@@ -1466,8 +1466,8 @@ function Nr(t, e, n, r) {
|
|
|
1466
1466
|
var Vi = function(t) {
|
|
1467
1467
|
return function(e, n) {
|
|
1468
1468
|
var r = st(Ze), o = st(Je);
|
|
1469
|
-
return n ?
|
|
1470
|
-
return
|
|
1469
|
+
return n ? Fr(t, e, r, o) : Pe(function() {
|
|
1470
|
+
return Fr(t, e, r, o);
|
|
1471
1471
|
});
|
|
1472
1472
|
};
|
|
1473
1473
|
};
|
|
@@ -1478,7 +1478,7 @@ function al(t, e, n, r) {
|
|
|
1478
1478
|
var u = t.initial, l = t.animate, c = tn(t), f = ii(t);
|
|
1479
1479
|
e && f && !c && t.inherit !== !1 && (u ?? (u = e.initial), l ?? (l = e.animate));
|
|
1480
1480
|
var d = a || u === !1, p = d ? l : u;
|
|
1481
|
-
if (p && typeof p != "boolean" && !
|
|
1481
|
+
if (p && typeof p != "boolean" && !or(p)) {
|
|
1482
1482
|
var v = Array.isArray(p) ? p : [p];
|
|
1483
1483
|
v.forEach(function(m) {
|
|
1484
1484
|
var y = oi(t, m);
|
|
@@ -1517,17 +1517,17 @@ var sl = {
|
|
|
1517
1517
|
height: 0
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
|
-
|
|
1520
|
+
nr(r, o, { enableHardwareAcceleration: !1 }, t.transformTemplate), Ti(e, r);
|
|
1521
1521
|
}
|
|
1522
1522
|
})
|
|
1523
1523
|
}, ul = {
|
|
1524
1524
|
useVisualState: Vi({
|
|
1525
|
-
scrapeMotionValuesFromProps:
|
|
1526
|
-
createRenderState:
|
|
1525
|
+
scrapeMotionValuesFromProps: rr,
|
|
1526
|
+
createRenderState: er
|
|
1527
1527
|
})
|
|
1528
1528
|
};
|
|
1529
1529
|
function ll(t, e, n, r, o) {
|
|
1530
|
-
var a = e.forwardMotionProps, i = a === void 0 ? !1 : a, s =
|
|
1530
|
+
var a = e.forwardMotionProps, i = a === void 0 ? !1 : a, s = Jn(t) ? sl : ul;
|
|
1531
1531
|
return b(b({}, s), { preloadedFeatures: n, useRender: nl(i), createVisualElement: r, projectionNodeConstructor: o, Component: t });
|
|
1532
1532
|
}
|
|
1533
1533
|
var z;
|
|
@@ -1539,7 +1539,7 @@ function en(t, e, n, r) {
|
|
|
1539
1539
|
return t.removeEventListener(e, n);
|
|
1540
1540
|
};
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function Nn(t, e, n, r) {
|
|
1543
1543
|
k(function() {
|
|
1544
1544
|
var o = t.current;
|
|
1545
1545
|
if (n && o)
|
|
@@ -1554,7 +1554,7 @@ function cl(t) {
|
|
|
1554
1554
|
var a;
|
|
1555
1555
|
(a = n.animationState) === null || a === void 0 || a.setActive(z.Focus, !1);
|
|
1556
1556
|
};
|
|
1557
|
-
|
|
1557
|
+
Nn(n, "focus", e ? r : void 0), Nn(n, "blur", e ? o : void 0);
|
|
1558
1558
|
}
|
|
1559
1559
|
function Ii(t) {
|
|
1560
1560
|
return typeof PointerEvent < "u" && t instanceof PointerEvent ? t.pointerType === "mouse" : t instanceof MouseEvent;
|
|
@@ -1584,7 +1584,7 @@ function pl(t, e) {
|
|
|
1584
1584
|
y: t[e + "Y"]
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function ir(t, e) {
|
|
1588
1588
|
return e === void 0 && (e = "page"), {
|
|
1589
1589
|
point: Ai(t) ? vl(t, e) : pl(t, e)
|
|
1590
1590
|
};
|
|
@@ -1592,15 +1592,15 @@ function or(t, e) {
|
|
|
1592
1592
|
var Mi = function(t, e) {
|
|
1593
1593
|
e === void 0 && (e = !1);
|
|
1594
1594
|
var n = function(r) {
|
|
1595
|
-
return t(r,
|
|
1595
|
+
return t(r, ir(r));
|
|
1596
1596
|
};
|
|
1597
1597
|
return e ? fl(n) : n;
|
|
1598
1598
|
}, ml = function() {
|
|
1599
|
-
return
|
|
1599
|
+
return Qt && window.onpointerdown === null;
|
|
1600
1600
|
}, hl = function() {
|
|
1601
|
-
return
|
|
1601
|
+
return Qt && window.ontouchstart === null;
|
|
1602
1602
|
}, gl = function() {
|
|
1603
|
-
return
|
|
1603
|
+
return Qt && window.onmousedown === null;
|
|
1604
1604
|
}, yl = {
|
|
1605
1605
|
pointerdown: "mousedown",
|
|
1606
1606
|
pointermove: "mousemove",
|
|
@@ -1619,11 +1619,11 @@ var Mi = function(t, e) {
|
|
|
1619
1619
|
function Ri(t) {
|
|
1620
1620
|
return ml() ? t : hl() ? Sl[t] : gl() ? yl[t] : t;
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1622
|
+
function qt(t, e, n, r) {
|
|
1623
1623
|
return en(t, Ri(e), Mi(n, e === "pointerdown"), r);
|
|
1624
1624
|
}
|
|
1625
1625
|
function Ue(t, e, n, r) {
|
|
1626
|
-
return
|
|
1626
|
+
return Nn(t, Ri(e), n && Mi(n, e === "pointerdown"), r);
|
|
1627
1627
|
}
|
|
1628
1628
|
function Li(t) {
|
|
1629
1629
|
var e = null;
|
|
@@ -1634,34 +1634,34 @@ function Li(t) {
|
|
|
1634
1634
|
return e === null ? (e = t, n) : !1;
|
|
1635
1635
|
};
|
|
1636
1636
|
}
|
|
1637
|
-
var
|
|
1638
|
-
function
|
|
1637
|
+
var jr = Li("dragHorizontal"), kr = Li("dragVertical");
|
|
1638
|
+
function Oi(t) {
|
|
1639
1639
|
var e = !1;
|
|
1640
1640
|
if (t === "y")
|
|
1641
|
-
e =
|
|
1641
|
+
e = kr();
|
|
1642
1642
|
else if (t === "x")
|
|
1643
|
-
e =
|
|
1643
|
+
e = jr();
|
|
1644
1644
|
else {
|
|
1645
|
-
var n =
|
|
1645
|
+
var n = jr(), r = kr();
|
|
1646
1646
|
n && r ? e = function() {
|
|
1647
1647
|
n(), r();
|
|
1648
1648
|
} : (n && n(), r && r());
|
|
1649
1649
|
}
|
|
1650
1650
|
return e;
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1653
|
-
var t =
|
|
1652
|
+
function Bi() {
|
|
1653
|
+
var t = Oi(!0);
|
|
1654
1654
|
return t ? (t(), !1) : !0;
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function $r(t, e, n) {
|
|
1657
1657
|
return function(r, o) {
|
|
1658
1658
|
var a;
|
|
1659
|
-
!Ii(r) ||
|
|
1659
|
+
!Ii(r) || Bi() || ((a = t.animationState) === null || a === void 0 || a.setActive(z.Hover, e), n == null || n(r, o));
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
1662
|
function bl(t) {
|
|
1663
1663
|
var e = t.onHoverStart, n = t.onHoverEnd, r = t.whileHover, o = t.visualElement;
|
|
1664
|
-
Ue(o, "pointerenter", e || r ?
|
|
1664
|
+
Ue(o, "pointerenter", e || r ? $r(o, !0, e) : void 0, { passive: !e }), Ue(o, "pointerleave", n || r ? $r(o, !1, n) : void 0, { passive: !n });
|
|
1665
1665
|
}
|
|
1666
1666
|
var Di = function(t, e) {
|
|
1667
1667
|
return e ? t === e ? !0 : Di(t, e.parentElement) : !1;
|
|
@@ -1673,17 +1673,17 @@ function Ni(t) {
|
|
|
1673
1673
|
};
|
|
1674
1674
|
}, []);
|
|
1675
1675
|
}
|
|
1676
|
-
const We = (t, e, n) => Math.min(Math.max(n, t), e),
|
|
1676
|
+
const We = (t, e, n) => Math.min(Math.max(n, t), e), Ur = 1e-3, Pl = 0.01, Wr = 10, wl = 0.05, _l = 1;
|
|
1677
1677
|
function xl({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1 }) {
|
|
1678
1678
|
let o, a;
|
|
1679
|
-
|
|
1679
|
+
be(t <= Wr * 1e3, "Spring duration must be 10 seconds or less");
|
|
1680
1680
|
let i = 1 - e;
|
|
1681
|
-
i = We(wl, _l, i), t = We(Pl,
|
|
1682
|
-
const c = l * i, f = c * t, d = c - n, p =
|
|
1683
|
-
return
|
|
1681
|
+
i = We(wl, _l, i), t = We(Pl, Wr, t / 1e3), i < 1 ? (o = (l) => {
|
|
1682
|
+
const c = l * i, f = c * t, d = c - n, p = Fn(l, i), v = Math.exp(-f);
|
|
1683
|
+
return Ur - d / p * v;
|
|
1684
1684
|
}, a = (l) => {
|
|
1685
|
-
const f = l * i * t, d = f * n + n, p = Math.pow(i, 2) * Math.pow(l, 2) * t, v = Math.exp(-f), m =
|
|
1686
|
-
return (-o(l) +
|
|
1685
|
+
const f = l * i * t, d = f * n + n, p = Math.pow(i, 2) * Math.pow(l, 2) * t, v = Math.exp(-f), m = Fn(Math.pow(l, 2), i);
|
|
1686
|
+
return (-o(l) + Ur > 0 ? -1 : 1) * ((d - p) * v) / m;
|
|
1687
1687
|
}) : (o = (l) => {
|
|
1688
1688
|
const c = Math.exp(-l * t), f = (l - n) * t + 1;
|
|
1689
1689
|
return -1e-3 + c * f;
|
|
@@ -1714,29 +1714,29 @@ function Cl(t, e, n) {
|
|
|
1714
1714
|
r = r - t(r) / e(r);
|
|
1715
1715
|
return r;
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1717
|
+
function Fn(t, e) {
|
|
1718
1718
|
return t * Math.sqrt(1 - e * e);
|
|
1719
1719
|
}
|
|
1720
1720
|
const El = ["duration", "bounce"], Vl = ["stiffness", "damping", "mass"];
|
|
1721
|
-
function
|
|
1721
|
+
function Hr(t, e) {
|
|
1722
1722
|
return e.some((n) => t[n] !== void 0);
|
|
1723
1723
|
}
|
|
1724
1724
|
function Il(t) {
|
|
1725
1725
|
let e = Object.assign({ velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1 }, t);
|
|
1726
|
-
if (!
|
|
1726
|
+
if (!Hr(t, Vl) && Hr(t, El)) {
|
|
1727
1727
|
const n = xl(t);
|
|
1728
1728
|
e = Object.assign(Object.assign(Object.assign({}, e), n), { velocity: 0, mass: 1 }), e.isResolvedFromDuration = !0;
|
|
1729
1729
|
}
|
|
1730
1730
|
return e;
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1732
|
+
function ar(t) {
|
|
1733
1733
|
var { from: e = 0, to: n = 1, restSpeed: r = 2, restDelta: o } = t, a = ht(t, ["from", "to", "restSpeed", "restDelta"]);
|
|
1734
1734
|
const i = { done: !1, value: e };
|
|
1735
|
-
let { stiffness: s, damping: u, mass: l, velocity: c, duration: f, isResolvedFromDuration: d } = Il(a), p =
|
|
1735
|
+
let { stiffness: s, damping: u, mass: l, velocity: c, duration: f, isResolvedFromDuration: d } = Il(a), p = zr, v = zr;
|
|
1736
1736
|
function m() {
|
|
1737
1737
|
const y = c ? -(c / 1e3) : 0, h = n - e, S = u / (2 * Math.sqrt(s * l)), g = Math.sqrt(s / l) / 1e3;
|
|
1738
1738
|
if (o === void 0 && (o = Math.min(Math.abs(n - e) / 100, 0.4)), S < 1) {
|
|
1739
|
-
const w =
|
|
1739
|
+
const w = Fn(g, S);
|
|
1740
1740
|
p = (x) => {
|
|
1741
1741
|
const T = Math.exp(-S * g * x);
|
|
1742
1742
|
return n - T * ((y + S * g * h) / w * Math.sin(w * x) + h * Math.cos(w * x));
|
|
@@ -1770,15 +1770,15 @@ function ir(t) {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
};
|
|
1772
1772
|
}
|
|
1773
|
-
|
|
1774
|
-
const
|
|
1773
|
+
ar.needsInterpolation = (t, e) => typeof t == "string" || typeof e == "string";
|
|
1774
|
+
const zr = (t) => 0, ye = (t, e, n) => {
|
|
1775
1775
|
const r = e - t;
|
|
1776
1776
|
return r === 0 ? 1 : (n - t) / r;
|
|
1777
1777
|
}, tt = (t, e, n) => -n * t + n * e + t;
|
|
1778
1778
|
function yn(t, e, n) {
|
|
1779
1779
|
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;
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function Gr({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
|
1782
1782
|
t /= 360, e /= 100, n /= 100;
|
|
1783
1783
|
let o = 0, a = 0, i = 0;
|
|
1784
1784
|
if (!e)
|
|
@@ -1797,20 +1797,20 @@ function zr({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
|
|
1797
1797
|
const Al = (t, e, n) => {
|
|
1798
1798
|
const r = t * t, o = e * e;
|
|
1799
1799
|
return Math.sqrt(Math.max(0, n * (o - r) + r));
|
|
1800
|
-
}, Ml = [Bn, Dt, $t],
|
|
1801
|
-
let n =
|
|
1802
|
-
vt(!!n,
|
|
1800
|
+
}, Ml = [Bn, Dt, $t], Kr = (t) => Ml.find((e) => e.test(t)), Yr = (t) => `'${t}' is not an animatable color. Use the equivalent color code instead.`, Fi = (t, e) => {
|
|
1801
|
+
let n = Kr(t), r = Kr(e);
|
|
1802
|
+
vt(!!n, Yr(t)), vt(!!r, Yr(e));
|
|
1803
1803
|
let o = n.parse(t), a = r.parse(e);
|
|
1804
|
-
n === $t && (o =
|
|
1804
|
+
n === $t && (o = Gr(o), n = Dt), r === $t && (a = Gr(a), r = Dt);
|
|
1805
1805
|
const i = Object.assign({}, o);
|
|
1806
1806
|
return (s) => {
|
|
1807
1807
|
for (const u in i)
|
|
1808
1808
|
u !== "alpha" && (i[u] = Al(o[u], a[u], s));
|
|
1809
1809
|
return i.alpha = tt(o.alpha, a.alpha, s), n.transform(i);
|
|
1810
1810
|
};
|
|
1811
|
-
},
|
|
1811
|
+
}, jn = (t) => typeof t == "number", Rl = (t, e) => (n) => e(t(n)), nn = (...t) => t.reduce(Rl);
|
|
1812
1812
|
function ji(t, e) {
|
|
1813
|
-
return
|
|
1813
|
+
return jn(t) ? (n) => tt(t, e, n) : ct.test(t) ? Fi(t, e) : $i(t, e);
|
|
1814
1814
|
}
|
|
1815
1815
|
const ki = (t, e) => {
|
|
1816
1816
|
const n = [...t], r = n.length, o = t.map((a, i) => ji(a, e[i]));
|
|
@@ -1829,7 +1829,7 @@ const ki = (t, e) => {
|
|
|
1829
1829
|
return n;
|
|
1830
1830
|
};
|
|
1831
1831
|
};
|
|
1832
|
-
function
|
|
1832
|
+
function qr(t) {
|
|
1833
1833
|
const e = At.parse(t), n = e.length;
|
|
1834
1834
|
let r = 0, o = 0, a = 0;
|
|
1835
1835
|
for (let i = 0; i < n; i++)
|
|
@@ -1837,12 +1837,12 @@ function Yr(t) {
|
|
|
1837
1837
|
return { parsed: e, numNumbers: r, numRGB: o, numHSL: a };
|
|
1838
1838
|
}
|
|
1839
1839
|
const $i = (t, e) => {
|
|
1840
|
-
const n = At.createTransformer(e), r =
|
|
1841
|
-
return r.numHSL === o.numHSL && r.numRGB === o.numRGB && r.numNumbers >= o.numNumbers ? nn(ki(r.parsed, o.parsed), n) : (
|
|
1842
|
-
},
|
|
1843
|
-
function
|
|
1840
|
+
const n = At.createTransformer(e), r = qr(t), o = qr(e);
|
|
1841
|
+
return r.numHSL === o.numHSL && r.numRGB === o.numRGB && r.numNumbers >= o.numNumbers ? nn(ki(r.parsed, o.parsed), n) : (be(!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.`), (i) => `${i > 0 ? e : t}`);
|
|
1842
|
+
}, Ol = (t, e) => (n) => tt(t, e, n);
|
|
1843
|
+
function Bl(t) {
|
|
1844
1844
|
if (typeof t == "number")
|
|
1845
|
-
return
|
|
1845
|
+
return Ol;
|
|
1846
1846
|
if (typeof t == "string")
|
|
1847
1847
|
return ct.test(t) ? Fi : $i;
|
|
1848
1848
|
if (Array.isArray(t))
|
|
@@ -1851,7 +1851,7 @@ function Ol(t) {
|
|
|
1851
1851
|
return Ll;
|
|
1852
1852
|
}
|
|
1853
1853
|
function Dl(t, e, n) {
|
|
1854
|
-
const r = [], o = n ||
|
|
1854
|
+
const r = [], o = n || Bl(t[0]), a = t.length - 1;
|
|
1855
1855
|
for (let i = 0; i < a; i++) {
|
|
1856
1856
|
let s = o(t[i], t[i + 1]);
|
|
1857
1857
|
if (e) {
|
|
@@ -1863,7 +1863,7 @@ function Dl(t, e, n) {
|
|
|
1863
1863
|
return r;
|
|
1864
1864
|
}
|
|
1865
1865
|
function Nl([t, e], [n]) {
|
|
1866
|
-
return (r) => n(
|
|
1866
|
+
return (r) => n(ye(t, e, r));
|
|
1867
1867
|
}
|
|
1868
1868
|
function Fl(t, e) {
|
|
1869
1869
|
const n = t.length, r = n - 1;
|
|
@@ -1875,7 +1875,7 @@ function Fl(t, e) {
|
|
|
1875
1875
|
;
|
|
1876
1876
|
a = u - 1;
|
|
1877
1877
|
}
|
|
1878
|
-
const s =
|
|
1878
|
+
const s = ye(t[a], t[a + 1], o);
|
|
1879
1879
|
return e[a](s);
|
|
1880
1880
|
};
|
|
1881
1881
|
}
|
|
@@ -1885,10 +1885,10 @@ function Ui(t, e, { clamp: n = !0, ease: r, mixer: o } = {}) {
|
|
|
1885
1885
|
const i = Dl(e, r, o), s = a === 2 ? Nl(t, i) : Fl(t, i);
|
|
1886
1886
|
return n ? (u) => s(We(t[0], t[a - 1], u)) : s;
|
|
1887
1887
|
}
|
|
1888
|
-
const rn = (t) => (e) => 1 - t(1 - e),
|
|
1888
|
+
const rn = (t) => (e) => 1 - t(1 - e), sr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, jl = (t) => (e) => Math.pow(e, t), Wi = (t) => (e) => e * e * ((t + 1) * e - t), kl = (t) => {
|
|
1889
1889
|
const e = Wi(t);
|
|
1890
1890
|
return (n) => (n *= 2) < 1 ? 0.5 * e(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1)));
|
|
1891
|
-
}, Hi = 1.525, $l = 4 / 11, Ul = 8 / 11, Wl = 9 / 10,
|
|
1891
|
+
}, Hi = 1.525, $l = 4 / 11, Ul = 8 / 11, Wl = 9 / 10, ur = (t) => t, lr = jl(2), Hl = rn(lr), zi = sr(lr), Gi = (t) => 1 - Math.sin(Math.acos(t)), cr = rn(Gi), zl = sr(cr), fr = Wi(Hi), Gl = rn(fr), Kl = sr(fr), Yl = kl(Hi), ql = 4356 / 361, Xl = 35442 / 1805, Zl = 16061 / 1805, He = (t) => {
|
|
1892
1892
|
if (t === 1 || t === 0)
|
|
1893
1893
|
return t;
|
|
1894
1894
|
const e = t * t;
|
|
@@ -1932,14 +1932,14 @@ function rc({ velocity: t = 0, from: e = 0, power: n = 0.8, timeConstant: r = 35
|
|
|
1932
1932
|
}
|
|
1933
1933
|
};
|
|
1934
1934
|
}
|
|
1935
|
-
const
|
|
1935
|
+
const Xr = { keyframes: Fe, spring: ar, decay: rc };
|
|
1936
1936
|
function oc(t) {
|
|
1937
1937
|
if (Array.isArray(t.to))
|
|
1938
1938
|
return Fe;
|
|
1939
|
-
if (
|
|
1940
|
-
return
|
|
1939
|
+
if (Xr[t.type])
|
|
1940
|
+
return Xr[t.type];
|
|
1941
1941
|
const e = new Set(Object.keys(t));
|
|
1942
|
-
return e.has("ease") || e.has("duration") && !e.has("dampingRatio") ? Fe : e.has("dampingRatio") || e.has("stiffness") || e.has("mass") || e.has("damping") || e.has("restSpeed") || e.has("restDelta") ?
|
|
1942
|
+
return e.has("ease") || e.has("duration") && !e.has("dampingRatio") ? Fe : e.has("dampingRatio") || e.has("stiffness") || e.has("mass") || e.has("damping") || e.has("restSpeed") || e.has("restDelta") ? ar : Fe;
|
|
1943
1943
|
}
|
|
1944
1944
|
const Ki = 1 / 60 * 1e3, ic = typeof performance < "u" ? () => performance.now() : () => Date.now(), Yi = typeof window < "u" ? (t) => window.requestAnimationFrame(t) : (t) => setTimeout(() => t(ic()), Ki);
|
|
1945
1945
|
function ac(t) {
|
|
@@ -1969,24 +1969,24 @@ function ac(t) {
|
|
|
1969
1969
|
return s;
|
|
1970
1970
|
}
|
|
1971
1971
|
const sc = 40;
|
|
1972
|
-
let
|
|
1973
|
-
const
|
|
1972
|
+
let kn = !0, Se = !1, $n = !1;
|
|
1973
|
+
const Xt = {
|
|
1974
1974
|
delta: 0,
|
|
1975
1975
|
timestamp: 0
|
|
1976
|
-
},
|
|
1976
|
+
}, Te = [
|
|
1977
1977
|
"read",
|
|
1978
1978
|
"update",
|
|
1979
1979
|
"preRender",
|
|
1980
1980
|
"render",
|
|
1981
1981
|
"postRender"
|
|
1982
|
-
], on =
|
|
1982
|
+
], on = Te.reduce((t, e) => (t[e] = ac(() => Se = !0), t), {}), Tt = Te.reduce((t, e) => {
|
|
1983
1983
|
const n = on[e];
|
|
1984
|
-
return t[e] = (r, o = !1, a = !1) => (
|
|
1985
|
-
}, {}),
|
|
1986
|
-
|
|
1984
|
+
return t[e] = (r, o = !1, a = !1) => (Se || lc(), n.schedule(r, o, a)), t;
|
|
1985
|
+
}, {}), Zt = Te.reduce((t, e) => (t[e] = on[e].cancel, t), {}), Sn = Te.reduce((t, e) => (t[e] = () => on[e].process(Xt), t), {}), uc = (t) => on[t].process(Xt), qi = (t) => {
|
|
1986
|
+
Se = !1, Xt.delta = kn ? Ki : Math.max(Math.min(t - Xt.timestamp, sc), 1), Xt.timestamp = t, $n = !0, Te.forEach(uc), $n = !1, Se && (kn = !1, Yi(qi));
|
|
1987
1987
|
}, lc = () => {
|
|
1988
|
-
|
|
1989
|
-
}, ze = () =>
|
|
1988
|
+
Se = !0, kn = !0, $n || Yi(qi);
|
|
1989
|
+
}, ze = () => Xt;
|
|
1990
1990
|
function Xi(t, e, n = 0) {
|
|
1991
1991
|
return t - e - n;
|
|
1992
1992
|
}
|
|
@@ -2000,17 +2000,17 @@ const dc = (t) => {
|
|
|
2000
2000
|
const e = ({ delta: n }) => t(n);
|
|
2001
2001
|
return {
|
|
2002
2002
|
start: () => Tt.update(e, !0),
|
|
2003
|
-
stop: () =>
|
|
2003
|
+
stop: () => Zt.update(e)
|
|
2004
2004
|
};
|
|
2005
2005
|
};
|
|
2006
2006
|
function Zi(t) {
|
|
2007
2007
|
var e, n, { from: r, autoplay: o = !0, driver: a = dc, elapsed: i = 0, repeat: s = 0, repeatType: u = "loop", repeatDelay: l = 0, onPlay: c, onStop: f, onComplete: d, onRepeat: p, onUpdate: v } = t, m = ht(t, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
|
|
2008
2008
|
let { to: y } = m, h, S = 0, g = m.duration, w, x = !1, T = !0, R;
|
|
2009
|
-
const
|
|
2010
|
-
!((n = (e =
|
|
2009
|
+
const B = oc(m);
|
|
2010
|
+
!((n = (e = B).needsInterpolation) === null || n === void 0) && n.call(e, r, y) && (R = Ui([0, 100], [r, y], {
|
|
2011
2011
|
clamp: !1
|
|
2012
2012
|
}), r = 0, y = 100);
|
|
2013
|
-
const V =
|
|
2013
|
+
const V = B(Object.assign(Object.assign({}, m), { from: r, to: y }));
|
|
2014
2014
|
function F() {
|
|
2015
2015
|
S++, u === "reverse" ? (T = S % 2 === 0, i = cc(i, g, l, T)) : (i = Xi(i, g, l), u === "mirror" && V.flipTarget()), x = !1, p && p();
|
|
2016
2016
|
}
|
|
@@ -2065,7 +2065,7 @@ function vc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, time
|
|
|
2065
2065
|
typeof l < "u" && (g = l(g));
|
|
2066
2066
|
const w = y(g), x = w === n ? -1 : 1;
|
|
2067
2067
|
let T, R;
|
|
2068
|
-
const
|
|
2068
|
+
const B = (V) => {
|
|
2069
2069
|
T = R, R = V, e = Ji(V - T, ze().delta), (x === 1 && V > w || x === -1 && V < w) && S({ from: V, to: w, velocity: e });
|
|
2070
2070
|
};
|
|
2071
2071
|
h({
|
|
@@ -2076,19 +2076,19 @@ function vc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, time
|
|
|
2076
2076
|
power: o,
|
|
2077
2077
|
restDelta: u,
|
|
2078
2078
|
modifyTarget: l,
|
|
2079
|
-
onUpdate: m(g) ?
|
|
2079
|
+
onUpdate: m(g) ? B : void 0
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
2082
|
return {
|
|
2083
2083
|
stop: () => v == null ? void 0 : v.stop()
|
|
2084
2084
|
};
|
|
2085
2085
|
}
|
|
2086
|
-
const
|
|
2086
|
+
const Un = (t) => t.hasOwnProperty("x") && t.hasOwnProperty("y"), Zr = (t) => Un(t) && t.hasOwnProperty("z"), Ae = (t, e) => Math.abs(t - e);
|
|
2087
2087
|
function Qi(t, e) {
|
|
2088
|
-
if (
|
|
2089
|
-
return
|
|
2090
|
-
if (
|
|
2091
|
-
const n =
|
|
2088
|
+
if (jn(t) && jn(e))
|
|
2089
|
+
return Ae(t, e);
|
|
2090
|
+
if (Un(t) && Un(e)) {
|
|
2091
|
+
const n = Ae(t.x, e.x), r = Ae(t.y, e.y), o = Zr(t) && Zr(e) ? Ae(t.z, e.z) : 0;
|
|
2092
2092
|
return Math.sqrt(Math.pow(n, 2) + Math.pow(r, 2) + Math.pow(o, 2));
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
@@ -2111,21 +2111,21 @@ function Sc(t, e, n, r) {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
return e;
|
|
2113
2113
|
}
|
|
2114
|
-
const je = 11,
|
|
2114
|
+
const je = 11, Me = 1 / (je - 1);
|
|
2115
2115
|
function bc(t, e, n, r) {
|
|
2116
2116
|
if (t === e && n === r)
|
|
2117
|
-
return
|
|
2117
|
+
return ur;
|
|
2118
2118
|
const o = new Float32Array(je);
|
|
2119
2119
|
for (let i = 0; i < je; ++i)
|
|
2120
|
-
o[i] = Ge(i *
|
|
2120
|
+
o[i] = Ge(i * Me, t, n);
|
|
2121
2121
|
function a(i) {
|
|
2122
2122
|
let s = 0, u = 1;
|
|
2123
2123
|
const l = je - 1;
|
|
2124
2124
|
for (; u !== l && o[u] <= i; ++u)
|
|
2125
|
-
s +=
|
|
2125
|
+
s += Me;
|
|
2126
2126
|
--u;
|
|
2127
|
-
const c = (i - o[u]) / (o[u + 1] - o[u]), f = s + c *
|
|
2128
|
-
return d >= yc ? Sc(i, f, t, n) : d === 0 ? f : hc(i, s, s +
|
|
2127
|
+
const c = (i - o[u]) / (o[u + 1] - o[u]), f = s + c * Me, d = ra(f, t, n);
|
|
2128
|
+
return d >= yc ? Sc(i, f, t, n) : d === 0 ? f : hc(i, s, s + Me, t, n);
|
|
2129
2129
|
}
|
|
2130
2130
|
return (i) => i === 0 || i === 1 ? i : Ge(a(i), e, r);
|
|
2131
2131
|
}
|
|
@@ -2139,7 +2139,7 @@ function Pc(t) {
|
|
|
2139
2139
|
}
|
|
2140
2140
|
function f() {
|
|
2141
2141
|
var m;
|
|
2142
|
-
return c(), s.current = !1, (m = a.animationState) === null || m === void 0 || m.setActive(z.Tap, !1), !
|
|
2142
|
+
return c(), s.current = !1, (m = a.animationState) === null || m === void 0 || m.setActive(z.Tap, !1), !Bi();
|
|
2143
2143
|
}
|
|
2144
2144
|
function d(m, y) {
|
|
2145
2145
|
f() && (Di(a.getInstance(), m.target) ? e == null || e(m, y) : r == null || r(m, y));
|
|
@@ -2149,17 +2149,17 @@ function Pc(t) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
function v(m, y) {
|
|
2151
2151
|
var h;
|
|
2152
|
-
c(), !s.current && (s.current = !0, u.current = nn(
|
|
2152
|
+
c(), !s.current && (s.current = !0, u.current = nn(qt(window, "pointerup", d, l), qt(window, "pointercancel", p, l)), (h = a.animationState) === null || h === void 0 || h.setActive(z.Tap, !0), n == null || n(m, y));
|
|
2153
2153
|
}
|
|
2154
2154
|
Ue(a, "pointerdown", i ? v : void 0, l), Ni(c);
|
|
2155
2155
|
}
|
|
2156
|
-
var
|
|
2156
|
+
var Jr = /* @__PURE__ */ new Set();
|
|
2157
2157
|
function oa(t, e, n) {
|
|
2158
|
-
t ||
|
|
2158
|
+
t || Jr.has(e) || (console.warn(e), Jr.add(e));
|
|
2159
2159
|
}
|
|
2160
|
-
var
|
|
2160
|
+
var Wn = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), wc = function(t) {
|
|
2161
2161
|
var e;
|
|
2162
|
-
(e =
|
|
2162
|
+
(e = Wn.get(t.target)) === null || e === void 0 || e(t);
|
|
2163
2163
|
}, _c = function(t) {
|
|
2164
2164
|
t.forEach(wc);
|
|
2165
2165
|
};
|
|
@@ -2171,8 +2171,8 @@ function xc(t) {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
function Tc(t, e, n) {
|
|
2173
2173
|
var r = xc(e);
|
|
2174
|
-
return
|
|
2175
|
-
|
|
2174
|
+
return Wn.set(t, n), r.observe(t), function() {
|
|
2175
|
+
Wn.delete(t), r.unobserve(t);
|
|
2176
2176
|
};
|
|
2177
2177
|
}
|
|
2178
2178
|
function Cc(t) {
|
|
@@ -2231,7 +2231,7 @@ var Nt = function(t) {
|
|
|
2231
2231
|
}, Mc = 0, Rc = function() {
|
|
2232
2232
|
return Mc++;
|
|
2233
2233
|
}, Lc = function() {
|
|
2234
|
-
return
|
|
2234
|
+
return Pe(Rc);
|
|
2235
2235
|
};
|
|
2236
2236
|
function ia() {
|
|
2237
2237
|
var t = st(Je);
|
|
@@ -2259,32 +2259,32 @@ function aa(t, e) {
|
|
|
2259
2259
|
}
|
|
2260
2260
|
var Ke = function(t) {
|
|
2261
2261
|
return t * 1e3;
|
|
2262
|
-
},
|
|
2263
|
-
linear:
|
|
2264
|
-
easeIn:
|
|
2262
|
+
}, Qr = {
|
|
2263
|
+
linear: ur,
|
|
2264
|
+
easeIn: lr,
|
|
2265
2265
|
easeInOut: zi,
|
|
2266
2266
|
easeOut: Hl,
|
|
2267
2267
|
circIn: Gi,
|
|
2268
2268
|
circInOut: zl,
|
|
2269
|
-
circOut:
|
|
2270
|
-
backIn:
|
|
2269
|
+
circOut: cr,
|
|
2270
|
+
backIn: fr,
|
|
2271
2271
|
backInOut: Kl,
|
|
2272
2272
|
backOut: Gl,
|
|
2273
2273
|
anticipate: Yl,
|
|
2274
2274
|
bounceIn: Jl,
|
|
2275
2275
|
bounceInOut: Ql,
|
|
2276
2276
|
bounceOut: He
|
|
2277
|
-
},
|
|
2277
|
+
}, to = function(t) {
|
|
2278
2278
|
if (Array.isArray(t)) {
|
|
2279
2279
|
vt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
2280
2280
|
var e = nt(t, 4), n = e[0], r = e[1], o = e[2], a = e[3];
|
|
2281
2281
|
return bc(n, r, o, a);
|
|
2282
2282
|
} else if (typeof t == "string")
|
|
2283
|
-
return vt(
|
|
2283
|
+
return vt(Qr[t] !== void 0, "Invalid easing type '".concat(t, "'")), Qr[t];
|
|
2284
2284
|
return t;
|
|
2285
|
-
},
|
|
2285
|
+
}, Oc = function(t) {
|
|
2286
2286
|
return Array.isArray(t) && typeof t[0] != "number";
|
|
2287
|
-
},
|
|
2287
|
+
}, eo = function(t, e) {
|
|
2288
2288
|
return t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
|
2289
2289
|
At.test(e) && // And it contains numbers and/or colors
|
|
2290
2290
|
!e.startsWith("url("));
|
|
@@ -2295,7 +2295,7 @@ var Ke = function(t) {
|
|
|
2295
2295
|
damping: 25,
|
|
2296
2296
|
restSpeed: 10
|
|
2297
2297
|
};
|
|
2298
|
-
},
|
|
2298
|
+
}, Re = function(t) {
|
|
2299
2299
|
return {
|
|
2300
2300
|
type: "spring",
|
|
2301
2301
|
stiffness: 550,
|
|
@@ -2308,13 +2308,13 @@ var Ke = function(t) {
|
|
|
2308
2308
|
ease: "linear",
|
|
2309
2309
|
duration: 0.3
|
|
2310
2310
|
};
|
|
2311
|
-
},
|
|
2311
|
+
}, Bc = function(t) {
|
|
2312
2312
|
return {
|
|
2313
2313
|
type: "keyframes",
|
|
2314
2314
|
duration: 0.8,
|
|
2315
2315
|
values: t
|
|
2316
2316
|
};
|
|
2317
|
-
},
|
|
2317
|
+
}, no = {
|
|
2318
2318
|
x: jt,
|
|
2319
2319
|
y: jt,
|
|
2320
2320
|
z: jt,
|
|
@@ -2322,16 +2322,16 @@ var Ke = function(t) {
|
|
|
2322
2322
|
rotateX: jt,
|
|
2323
2323
|
rotateY: jt,
|
|
2324
2324
|
rotateZ: jt,
|
|
2325
|
-
scaleX:
|
|
2326
|
-
scaleY:
|
|
2327
|
-
scale:
|
|
2325
|
+
scaleX: Re,
|
|
2326
|
+
scaleY: Re,
|
|
2327
|
+
scale: Re,
|
|
2328
2328
|
opacity: Pn,
|
|
2329
2329
|
backgroundColor: Pn,
|
|
2330
2330
|
color: Pn,
|
|
2331
|
-
default:
|
|
2331
|
+
default: Re
|
|
2332
2332
|
}, Dc = function(t, e) {
|
|
2333
2333
|
var n;
|
|
2334
|
-
return
|
|
2334
|
+
return ge(e) ? n = Bc : n = no[t] || no.default, b({ to: e }, n(e));
|
|
2335
2335
|
}, Nc = b(b({}, yi), {
|
|
2336
2336
|
// Color props
|
|
2337
2337
|
color: ct,
|
|
@@ -2345,27 +2345,27 @@ var Ke = function(t) {
|
|
|
2345
2345
|
borderRightColor: ct,
|
|
2346
2346
|
borderBottomColor: ct,
|
|
2347
2347
|
borderLeftColor: ct,
|
|
2348
|
-
filter:
|
|
2349
|
-
WebkitFilter:
|
|
2350
|
-
}),
|
|
2348
|
+
filter: Dn,
|
|
2349
|
+
WebkitFilter: Dn
|
|
2350
|
+
}), dr = function(t) {
|
|
2351
2351
|
return Nc[t];
|
|
2352
2352
|
};
|
|
2353
|
-
function
|
|
2354
|
-
var n, r =
|
|
2355
|
-
return r !==
|
|
2353
|
+
function vr(t, e) {
|
|
2354
|
+
var n, r = dr(t);
|
|
2355
|
+
return r !== Dn && (r = At), (n = r.getAnimatableNone) === null || n === void 0 ? void 0 : n.call(r, e);
|
|
2356
2356
|
}
|
|
2357
2357
|
function Fc(t) {
|
|
2358
2358
|
t.when, t.delay, t.delayChildren, t.staggerChildren, t.staggerDirection, t.repeat, t.repeatType, t.repeatDelay, t.from;
|
|
2359
2359
|
var e = ht(t, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
|
|
2360
2360
|
return !!Object.keys(e).length;
|
|
2361
2361
|
}
|
|
2362
|
-
var
|
|
2362
|
+
var ro = !1;
|
|
2363
2363
|
function jc(t) {
|
|
2364
2364
|
var e = t.ease, n = t.times, r = t.yoyo, o = t.flip, a = t.loop, i = ht(t, ["ease", "times", "yoyo", "flip", "loop"]), s = b({}, i);
|
|
2365
|
-
return n && (s.offset = n), i.duration && (s.duration = Ke(i.duration)), i.repeatDelay && (s.repeatDelay = Ke(i.repeatDelay)), e && (s.ease =
|
|
2365
|
+
return n && (s.offset = n), i.duration && (s.duration = Ke(i.duration)), i.repeatDelay && (s.repeatDelay = Ke(i.repeatDelay)), e && (s.ease = Oc(e) ? e.map(to) : to(e)), i.type === "tween" && (s.type = "keyframes"), (r || a || o) && (be(!ro, "yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."), ro = !0, r ? s.repeatType = "reverse" : a ? s.repeatType = "loop" : o && (s.repeatType = "mirror"), s.repeat = a || r || o || i.repeat), i.type !== "spring" && (s.type = "keyframes"), s;
|
|
2366
2366
|
}
|
|
2367
2367
|
function kc(t, e) {
|
|
2368
|
-
var n, r, o =
|
|
2368
|
+
var n, r, o = pr(t, e) || {};
|
|
2369
2369
|
return (r = (n = o.delay) !== null && n !== void 0 ? n : t.delay) !== null && r !== void 0 ? r : 0;
|
|
2370
2370
|
}
|
|
2371
2371
|
function $c(t) {
|
|
@@ -2376,10 +2376,10 @@ function Uc(t, e, n) {
|
|
|
2376
2376
|
return Array.isArray(e.to) && ((r = t.duration) !== null && r !== void 0 || (t.duration = 0.8)), $c(e), Fc(t) || (t = b(b({}, t), Dc(n, e.to))), b(b({}, e), jc(t));
|
|
2377
2377
|
}
|
|
2378
2378
|
function Wc(t, e, n, r, o) {
|
|
2379
|
-
var a, i =
|
|
2380
|
-
s === "none" && u && typeof n == "string" ? s =
|
|
2381
|
-
var l =
|
|
2382
|
-
|
|
2379
|
+
var a, i = pr(r, t), s = (a = i.from) !== null && a !== void 0 ? a : e.get(), u = eo(t, n);
|
|
2380
|
+
s === "none" && u && typeof n == "string" ? s = vr(t, n) : oo(s) && typeof n == "string" ? s = io(n) : !Array.isArray(n) && oo(n) && typeof s == "string" && (n = io(s));
|
|
2381
|
+
var l = eo(t, s);
|
|
2382
|
+
be(l === u, "You are trying to animate ".concat(t, ' from "').concat(s, '" to "').concat(n, '". ').concat(s, " is not an animatable value - to enable this animation set ").concat(s, " to a value animatable to ").concat(n, " via the `style` property."));
|
|
2383
2383
|
function c() {
|
|
2384
2384
|
var d = {
|
|
2385
2385
|
from: s,
|
|
@@ -2405,16 +2405,16 @@ function Wc(t, e, n, r, o) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
return !l || !u || i.type === !1 ? f : c;
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function oo(t) {
|
|
2409
2409
|
return t === 0 || typeof t == "string" && parseFloat(t) === 0 && t.indexOf(" ") === -1;
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2412
|
-
return typeof t == "number" ? 0 :
|
|
2411
|
+
function io(t) {
|
|
2412
|
+
return typeof t == "number" ? 0 : vr("", t);
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2414
|
+
function pr(t, e) {
|
|
2415
2415
|
return t[e] || t.default || t;
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2417
|
+
function mr(t, e, n, r) {
|
|
2418
2418
|
return r === void 0 && (r = {}), e.start(function(o) {
|
|
2419
2419
|
var a, i, s = Wc(t, e, n, r, o), u = kc(r, t), l = function() {
|
|
2420
2420
|
return i = s();
|
|
@@ -2429,14 +2429,14 @@ var Hc = function(t) {
|
|
|
2429
2429
|
}, zc = function(t) {
|
|
2430
2430
|
return /^0[^.\s]+$/.test(t);
|
|
2431
2431
|
};
|
|
2432
|
-
function
|
|
2432
|
+
function hr(t, e) {
|
|
2433
2433
|
t.indexOf(e) === -1 && t.push(e);
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2435
|
+
function gr(t, e) {
|
|
2436
2436
|
var n = t.indexOf(e);
|
|
2437
2437
|
n > -1 && t.splice(n, 1);
|
|
2438
2438
|
}
|
|
2439
|
-
var
|
|
2439
|
+
var ue = (
|
|
2440
2440
|
/** @class */
|
|
2441
2441
|
function() {
|
|
2442
2442
|
function t() {
|
|
@@ -2444,8 +2444,8 @@ var le = (
|
|
|
2444
2444
|
}
|
|
2445
2445
|
return t.prototype.add = function(e) {
|
|
2446
2446
|
var n = this;
|
|
2447
|
-
return
|
|
2448
|
-
return
|
|
2447
|
+
return hr(this.subscriptions, e), function() {
|
|
2448
|
+
return gr(n.subscriptions, e);
|
|
2449
2449
|
};
|
|
2450
2450
|
}, t.prototype.notify = function(e, n, r) {
|
|
2451
2451
|
var o = this.subscriptions.length;
|
|
@@ -2470,7 +2470,7 @@ var le = (
|
|
|
2470
2470
|
function() {
|
|
2471
2471
|
function t(e) {
|
|
2472
2472
|
var n = this;
|
|
2473
|
-
this.version = "6.5.1", this.timeDelta = 0, this.lastUpdated = 0, this.updateSubscribers = new
|
|
2473
|
+
this.version = "6.5.1", this.timeDelta = 0, this.lastUpdated = 0, this.updateSubscribers = new ue(), this.velocityUpdateSubscribers = new ue(), this.renderSubscribers = new ue(), this.canTrackVelocity = !1, this.updateAndNotify = function(r, o) {
|
|
2474
2474
|
o === void 0 && (o = !0), n.prev = n.current, n.current = r;
|
|
2475
2475
|
var a = ze(), i = a.delta, s = a.timestamp;
|
|
2476
2476
|
n.lastUpdated !== s && (n.timeDelta = i, n.lastUpdated = s, Tt.postRender(n.scheduleVelocityCheck)), n.prev !== n.current && n.updateSubscribers.notify(n.current), n.velocityUpdateSubscribers.getSize() && n.velocityUpdateSubscribers.notify(n.getVelocity()), o && n.renderSubscribers.notify(n.current);
|
|
@@ -2518,7 +2518,7 @@ var le = (
|
|
|
2518
2518
|
}, t;
|
|
2519
2519
|
}()
|
|
2520
2520
|
);
|
|
2521
|
-
function
|
|
2521
|
+
function Jt(t) {
|
|
2522
2522
|
return new Kc(t);
|
|
2523
2523
|
}
|
|
2524
2524
|
var sa = function(t) {
|
|
@@ -2532,15 +2532,15 @@ var sa = function(t) {
|
|
|
2532
2532
|
parse: function(t) {
|
|
2533
2533
|
return t;
|
|
2534
2534
|
}
|
|
2535
|
-
}, ua = [Ht, A, xt, Lt, Nu, Du, Yc],
|
|
2535
|
+
}, ua = [Ht, A, xt, Lt, Nu, Du, Yc], re = function(t) {
|
|
2536
2536
|
return ua.find(sa(t));
|
|
2537
2537
|
}, qc = mt(mt([], nt(ua), !1), [ct, At], !1), Xc = function(t) {
|
|
2538
2538
|
return qc.find(sa(t));
|
|
2539
2539
|
};
|
|
2540
2540
|
function Zc(t, e, n) {
|
|
2541
|
-
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e,
|
|
2541
|
+
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Jt(n));
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
2543
|
+
function yr(t, e) {
|
|
2544
2544
|
var n = Qe(t, e), r = n ? t.makeTargetAnimatable(n, !1) : {}, o = r.transitionEnd, a = o === void 0 ? {} : o;
|
|
2545
2545
|
r.transition;
|
|
2546
2546
|
var i = ht(r, ["transitionEnd", "transition"]);
|
|
@@ -2550,21 +2550,21 @@ function gr(t, e) {
|
|
|
2550
2550
|
Zc(t, s, u);
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2553
|
+
function Hn(t, e) {
|
|
2554
2554
|
var n = mt([], nt(e), !1).reverse();
|
|
2555
2555
|
n.forEach(function(r) {
|
|
2556
2556
|
var o, a = t.getVariant(r);
|
|
2557
|
-
a &&
|
|
2558
|
-
|
|
2557
|
+
a && yr(t, a), (o = t.variantChildren) === null || o === void 0 || o.forEach(function(i) {
|
|
2558
|
+
Hn(i, e);
|
|
2559
2559
|
});
|
|
2560
2560
|
});
|
|
2561
2561
|
}
|
|
2562
2562
|
function Jc(t, e) {
|
|
2563
2563
|
if (Array.isArray(e))
|
|
2564
|
-
return
|
|
2564
|
+
return Hn(t, e);
|
|
2565
2565
|
if (typeof e == "string")
|
|
2566
|
-
return
|
|
2567
|
-
|
|
2566
|
+
return Hn(t, [e]);
|
|
2567
|
+
yr(t, e);
|
|
2568
2568
|
}
|
|
2569
2569
|
function Qc(t, e, n) {
|
|
2570
2570
|
var r, o, a, i, s = Object.keys(e).filter(function(p) {
|
|
@@ -2573,7 +2573,7 @@ function Qc(t, e, n) {
|
|
|
2573
2573
|
if (u)
|
|
2574
2574
|
for (var l = 0; l < u; l++) {
|
|
2575
2575
|
var c = s[l], f = e[c], d = null;
|
|
2576
|
-
Array.isArray(f) && (d = f[0]), d === null && (d = (o = (r = n[c]) !== null && r !== void 0 ? r : t.readValue(c)) !== null && o !== void 0 ? o : e[c]), d != null && (typeof d == "string" && (Hc(d) || zc(d)) ? d = parseFloat(d) : !Xc(d) && At.test(f) && (d =
|
|
2576
|
+
Array.isArray(f) && (d = f[0]), d === null && (d = (o = (r = n[c]) !== null && r !== void 0 ? r : t.readValue(c)) !== null && o !== void 0 ? o : e[c]), d != null && (typeof d == "string" && (Hc(d) || zc(d)) ? d = parseFloat(d) : !Xc(d) && At.test(f) && (d = vr(c, f)), t.addValue(c, Jt(d)), (a = (i = n)[c]) !== null && a !== void 0 || (i[c] = d), t.setBaseTarget(c, d));
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
2579
|
function tf(t, e) {
|
|
@@ -2593,11 +2593,11 @@ function la(t, e, n) {
|
|
|
2593
2593
|
var r;
|
|
2594
2594
|
if (Array.isArray(e)) {
|
|
2595
2595
|
var o = e.map(function(i) {
|
|
2596
|
-
return
|
|
2596
|
+
return zn(t, i, n);
|
|
2597
2597
|
});
|
|
2598
2598
|
r = Promise.all(o);
|
|
2599
2599
|
} else if (typeof e == "string")
|
|
2600
|
-
r =
|
|
2600
|
+
r = zn(t, e, n);
|
|
2601
2601
|
else {
|
|
2602
2602
|
var a = typeof e == "function" ? Qe(t, e, n.custom) : e;
|
|
2603
2603
|
r = ca(t, a, n);
|
|
@@ -2606,7 +2606,7 @@ function la(t, e, n) {
|
|
|
2606
2606
|
return t.notifyAnimationComplete(e);
|
|
2607
2607
|
});
|
|
2608
2608
|
}
|
|
2609
|
-
function
|
|
2609
|
+
function zn(t, e, n) {
|
|
2610
2610
|
var r;
|
|
2611
2611
|
n === void 0 && (n = {});
|
|
2612
2612
|
var o = Qe(t, e, n.custom), a = (o || {}).transition, i = a === void 0 ? t.getDefaultTransition() || {} : a;
|
|
@@ -2636,13 +2636,13 @@ function ca(t, e, n) {
|
|
|
2636
2636
|
var h = t.getValue(y), S = p[y];
|
|
2637
2637
|
if (!(!h || S === void 0 || m && af(m, y))) {
|
|
2638
2638
|
var g = b({ delay: i }, f);
|
|
2639
|
-
t.shouldReduceMotion &&
|
|
2640
|
-
var w =
|
|
2639
|
+
t.shouldReduceMotion && we(y) && (g = b(b({}, g), { type: !1, delay: 0 }));
|
|
2640
|
+
var w = mr(y, h, S, g);
|
|
2641
2641
|
v.push(w);
|
|
2642
2642
|
}
|
|
2643
2643
|
}
|
|
2644
2644
|
return Promise.all(v).then(function() {
|
|
2645
|
-
d &&
|
|
2645
|
+
d && yr(t, d);
|
|
2646
2646
|
});
|
|
2647
2647
|
}
|
|
2648
2648
|
function nf(t, e, n, r, o, a) {
|
|
@@ -2653,7 +2653,7 @@ function nf(t, e, n, r, o, a) {
|
|
|
2653
2653
|
return l === void 0 && (l = 0), s - l * r;
|
|
2654
2654
|
};
|
|
2655
2655
|
return Array.from(t.variantChildren).sort(of).forEach(function(l, c) {
|
|
2656
|
-
i.push(
|
|
2656
|
+
i.push(zn(l, e, b(b({}, a), { delay: n + u(c) })).then(function() {
|
|
2657
2657
|
return l.notifyAnimationComplete(e);
|
|
2658
2658
|
}));
|
|
2659
2659
|
}), Promise.all(i);
|
|
@@ -2670,7 +2670,7 @@ function af(t, e) {
|
|
|
2670
2670
|
var n = t.protectedKeys, r = t.needsAnimating, o = n.hasOwnProperty(e) && r[e] !== !0;
|
|
2671
2671
|
return r[e] = !1, o;
|
|
2672
2672
|
}
|
|
2673
|
-
var
|
|
2673
|
+
var Sr = [
|
|
2674
2674
|
z.Animate,
|
|
2675
2675
|
z.InView,
|
|
2676
2676
|
z.Focus,
|
|
@@ -2678,7 +2678,7 @@ var yr = [
|
|
|
2678
2678
|
z.Tap,
|
|
2679
2679
|
z.Drag,
|
|
2680
2680
|
z.Exit
|
|
2681
|
-
], sf = mt([], nt(
|
|
2681
|
+
], sf = mt([], nt(Sr), !1).reverse(), uf = Sr.length;
|
|
2682
2682
|
function lf(t) {
|
|
2683
2683
|
return function(e) {
|
|
2684
2684
|
return Promise.all(e.map(function(n) {
|
|
@@ -2705,16 +2705,16 @@ function cf(t) {
|
|
|
2705
2705
|
}
|
|
2706
2706
|
function u(c, f) {
|
|
2707
2707
|
for (var d, p = t.getProps(), v = t.getVariantContext(!0) || {}, m = [], y = /* @__PURE__ */ new Set(), h = {}, S = 1 / 0, g = function(R) {
|
|
2708
|
-
var
|
|
2708
|
+
var B = sf[R], V = n[B], F = (d = p[B]) !== null && d !== void 0 ? d : v[B], J = St(F), $ = B === f ? V.isActive : null;
|
|
2709
2709
|
$ === !1 && (S = R);
|
|
2710
|
-
var j = F === v[
|
|
2710
|
+
var j = F === v[B] && F !== p[B] && J;
|
|
2711
2711
|
if (j && o && t.manuallyAnimateOnMount && (j = !1), V.protectedKeys = b({}, h), // If it isn't active and hasn't *just* been set as inactive
|
|
2712
2712
|
!V.isActive && $ === null || // If we didn't and don't have any defined prop for this animation type
|
|
2713
2713
|
!F && !V.prevProp || // Or if the prop doesn't define an animation
|
|
2714
|
-
|
|
2714
|
+
or(F) || typeof F == "boolean")
|
|
2715
2715
|
return "continue";
|
|
2716
2716
|
var I = ff(V.prevProp, F), G = I || // If we're making this variant active, we want to always make it active
|
|
2717
|
-
|
|
2717
|
+
B === f && V.isActive && !j && J || // If we removed a higher-priority variant (i is in reverse order)
|
|
2718
2718
|
R > S && J, Q = Array.isArray(F) ? F : [F], M = Q.reduce(a, {});
|
|
2719
2719
|
$ === !1 && (M = {});
|
|
2720
2720
|
var it = V.prevResolvedValues, at = it === void 0 ? {} : it, ut = b(b({}, at), M), U = function(C) {
|
|
@@ -2722,12 +2722,12 @@ function cf(t) {
|
|
|
2722
2722
|
};
|
|
2723
2723
|
for (var X in ut) {
|
|
2724
2724
|
var D = M[X], _ = at[X];
|
|
2725
|
-
h.hasOwnProperty(X) || (D !== _ ?
|
|
2725
|
+
h.hasOwnProperty(X) || (D !== _ ? ge(D) && ge(_) ? !aa(D, _) || I ? U(X) : V.protectedKeys[X] = !0 : D !== void 0 ? U(X) : y.add(X) : D !== void 0 && y.has(X) ? U(X) : V.protectedKeys[X] = !0);
|
|
2726
2726
|
}
|
|
2727
2727
|
V.prevProp = F, V.prevResolvedValues = M, V.isActive && (h = b(b({}, h), M)), o && t.blockInitialAnimation && (G = !1), G && !j && m.push.apply(m, mt([], nt(Q.map(function(C) {
|
|
2728
2728
|
return {
|
|
2729
2729
|
animation: C,
|
|
2730
|
-
options: b({ type:
|
|
2730
|
+
options: b({ type: B }, c)
|
|
2731
2731
|
};
|
|
2732
2732
|
})), !1));
|
|
2733
2733
|
}, w = 0; w < uf; w++)
|
|
@@ -2735,8 +2735,8 @@ function cf(t) {
|
|
|
2735
2735
|
if (r = b({}, h), y.size) {
|
|
2736
2736
|
var x = {};
|
|
2737
2737
|
y.forEach(function(R) {
|
|
2738
|
-
var
|
|
2739
|
-
|
|
2738
|
+
var B = t.getBaseTarget(R);
|
|
2739
|
+
B !== void 0 && (x[R] = B);
|
|
2740
2740
|
}), m.push({ animation: x });
|
|
2741
2741
|
}
|
|
2742
2742
|
var T = !!m.length;
|
|
@@ -2783,7 +2783,7 @@ function df() {
|
|
|
2783
2783
|
var vf = {
|
|
2784
2784
|
animation: Nt(function(t) {
|
|
2785
2785
|
var e = t.visualElement, n = t.animate;
|
|
2786
|
-
e.animationState || (e.animationState = cf(e)),
|
|
2786
|
+
e.animationState || (e.animationState = cf(e)), or(n) && k(function() {
|
|
2787
2787
|
return n.subscribe(e);
|
|
2788
2788
|
}, [n]);
|
|
2789
2789
|
}),
|
|
@@ -2823,31 +2823,31 @@ var vf = {
|
|
|
2823
2823
|
o.startEvent && m && m(d, h), y && y(d, h);
|
|
2824
2824
|
}, !(Ai(e) && e.touches.length > 1)) {
|
|
2825
2825
|
this.handlers = n, this.transformPagePoint = i;
|
|
2826
|
-
var s =
|
|
2826
|
+
var s = ir(e), u = wn(s, this.transformPagePoint), l = u.point, c = ze().timestamp;
|
|
2827
2827
|
this.history = [b(b({}, l), { timestamp: c })];
|
|
2828
2828
|
var f = n.onSessionStart;
|
|
2829
|
-
f && f(e, _n(u, this.history)), this.removeListeners = nn(
|
|
2829
|
+
f && f(e, _n(u, this.history)), this.removeListeners = nn(qt(window, "pointermove", this.handlePointerMove), qt(window, "pointerup", this.handlePointerUp), qt(window, "pointercancel", this.handlePointerUp));
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
return t.prototype.updateHandlers = function(e) {
|
|
2833
2833
|
this.handlers = e;
|
|
2834
2834
|
}, t.prototype.end = function() {
|
|
2835
|
-
this.removeListeners && this.removeListeners(),
|
|
2835
|
+
this.removeListeners && this.removeListeners(), Zt.update(this.updatePoint);
|
|
2836
2836
|
}, t;
|
|
2837
2837
|
}()
|
|
2838
2838
|
);
|
|
2839
2839
|
function wn(t, e) {
|
|
2840
2840
|
return e ? { point: e(t.point) } : t;
|
|
2841
2841
|
}
|
|
2842
|
-
function
|
|
2842
|
+
function ao(t, e) {
|
|
2843
2843
|
return { x: t.x - e.x, y: t.y - e.y };
|
|
2844
2844
|
}
|
|
2845
2845
|
function _n(t, e) {
|
|
2846
2846
|
var n = t.point;
|
|
2847
2847
|
return {
|
|
2848
2848
|
point: n,
|
|
2849
|
-
delta:
|
|
2850
|
-
offset:
|
|
2849
|
+
delta: ao(n, da(e)),
|
|
2850
|
+
offset: ao(n, pf(e)),
|
|
2851
2851
|
velocity: mf(e, 0.1)
|
|
2852
2852
|
};
|
|
2853
2853
|
}
|
|
@@ -2876,32 +2876,32 @@ function mf(t, e) {
|
|
|
2876
2876
|
function Mt(t) {
|
|
2877
2877
|
return t.max - t.min;
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2879
|
+
function so(t, e, n) {
|
|
2880
2880
|
return e === void 0 && (e = 0), n === void 0 && (n = 0.01), Qi(t, e) < n;
|
|
2881
2881
|
}
|
|
2882
|
-
function
|
|
2883
|
-
r === void 0 && (r = 0.5), t.origin = r, t.originPoint = tt(e.min, e.max, t.origin), t.scale = Mt(n) / Mt(e), (
|
|
2882
|
+
function uo(t, e, n, r) {
|
|
2883
|
+
r === void 0 && (r = 0.5), t.origin = r, t.originPoint = tt(e.min, e.max, t.origin), t.scale = Mt(n) / Mt(e), (so(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = tt(n.min, n.max, t.origin) - t.originPoint, (so(t.translate) || isNaN(t.translate)) && (t.translate = 0);
|
|
2884
2884
|
}
|
|
2885
|
-
function
|
|
2886
|
-
|
|
2885
|
+
function le(t, e, n, r) {
|
|
2886
|
+
uo(t.x, e.x, n.x, r == null ? void 0 : r.originX), uo(t.y, e.y, n.y, r == null ? void 0 : r.originY);
|
|
2887
2887
|
}
|
|
2888
|
-
function
|
|
2888
|
+
function lo(t, e, n) {
|
|
2889
2889
|
t.min = n.min + e.min, t.max = t.min + Mt(e);
|
|
2890
2890
|
}
|
|
2891
2891
|
function hf(t, e, n) {
|
|
2892
|
-
|
|
2892
|
+
lo(t.x, e.x, n.x), lo(t.y, e.y, n.y);
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2894
|
+
function co(t, e, n) {
|
|
2895
2895
|
t.min = e.min - n.min, t.max = t.min + Mt(e);
|
|
2896
2896
|
}
|
|
2897
|
-
function
|
|
2898
|
-
|
|
2897
|
+
function ce(t, e, n) {
|
|
2898
|
+
co(t.x, e.x, n.x), co(t.y, e.y, n.y);
|
|
2899
2899
|
}
|
|
2900
2900
|
function gf(t, e, n) {
|
|
2901
2901
|
var r = e.min, o = e.max;
|
|
2902
2902
|
return r !== void 0 && t < r ? t = n ? tt(r, t, n.min) : Math.max(t, r) : o !== void 0 && t > o && (t = n ? tt(o, t, n.max) : Math.min(t, o)), t;
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2904
|
+
function fo(t, e, n) {
|
|
2905
2905
|
return {
|
|
2906
2906
|
min: e !== void 0 ? t.min + e : void 0,
|
|
2907
2907
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
@@ -2910,63 +2910,63 @@ function co(t, e, n) {
|
|
|
2910
2910
|
function yf(t, e) {
|
|
2911
2911
|
var n = e.top, r = e.left, o = e.bottom, a = e.right;
|
|
2912
2912
|
return {
|
|
2913
|
-
x:
|
|
2914
|
-
y:
|
|
2913
|
+
x: fo(t.x, r, a),
|
|
2914
|
+
y: fo(t.y, n, o)
|
|
2915
2915
|
};
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2917
|
+
function vo(t, e) {
|
|
2918
2918
|
var n, r = e.min - t.min, o = e.max - t.max;
|
|
2919
2919
|
return e.max - e.min < t.max - t.min && (n = nt([o, r], 2), r = n[0], o = n[1]), { min: r, max: o };
|
|
2920
2920
|
}
|
|
2921
2921
|
function Sf(t, e) {
|
|
2922
2922
|
return {
|
|
2923
|
-
x:
|
|
2924
|
-
y:
|
|
2923
|
+
x: vo(t.x, e.x),
|
|
2924
|
+
y: vo(t.y, e.y)
|
|
2925
2925
|
};
|
|
2926
2926
|
}
|
|
2927
2927
|
function bf(t, e) {
|
|
2928
2928
|
var n = 0.5, r = Mt(t), o = Mt(e);
|
|
2929
|
-
return o > r ? n =
|
|
2929
|
+
return o > r ? n = ye(e.min, e.max - r, t.min) : r > o && (n = ye(t.min, t.max - o, e.min)), We(0, 1, n);
|
|
2930
2930
|
}
|
|
2931
2931
|
function Pf(t, e) {
|
|
2932
2932
|
var n = {};
|
|
2933
2933
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
2934
2934
|
}
|
|
2935
|
-
var
|
|
2935
|
+
var Gn = 0.35;
|
|
2936
2936
|
function wf(t) {
|
|
2937
|
-
return t === void 0 && (t =
|
|
2938
|
-
x:
|
|
2939
|
-
y:
|
|
2937
|
+
return t === void 0 && (t = Gn), t === !1 ? t = 0 : t === !0 && (t = Gn), {
|
|
2938
|
+
x: po(t, "left", "right"),
|
|
2939
|
+
y: po(t, "top", "bottom")
|
|
2940
2940
|
};
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function po(t, e, n) {
|
|
2943
2943
|
return {
|
|
2944
|
-
min:
|
|
2945
|
-
max:
|
|
2944
|
+
min: mo(t, e),
|
|
2945
|
+
max: mo(t, n)
|
|
2946
2946
|
};
|
|
2947
2947
|
}
|
|
2948
|
-
function
|
|
2948
|
+
function mo(t, e) {
|
|
2949
2949
|
var n;
|
|
2950
2950
|
return typeof t == "number" ? t : (n = t[e]) !== null && n !== void 0 ? n : 0;
|
|
2951
2951
|
}
|
|
2952
|
-
var
|
|
2952
|
+
var ho = function() {
|
|
2953
2953
|
return {
|
|
2954
2954
|
translate: 0,
|
|
2955
2955
|
scale: 1,
|
|
2956
2956
|
origin: 0,
|
|
2957
2957
|
originPoint: 0
|
|
2958
2958
|
};
|
|
2959
|
-
},
|
|
2959
|
+
}, fe = function() {
|
|
2960
2960
|
return {
|
|
2961
|
-
x:
|
|
2962
|
-
y:
|
|
2961
|
+
x: ho(),
|
|
2962
|
+
y: ho()
|
|
2963
2963
|
};
|
|
2964
|
-
},
|
|
2964
|
+
}, go = function() {
|
|
2965
2965
|
return { min: 0, max: 0 };
|
|
2966
2966
|
}, lt = function() {
|
|
2967
2967
|
return {
|
|
2968
|
-
x:
|
|
2969
|
-
y:
|
|
2968
|
+
x: go(),
|
|
2969
|
+
y: go()
|
|
2970
2970
|
};
|
|
2971
2971
|
};
|
|
2972
2972
|
function _t(t) {
|
|
@@ -3001,25 +3001,25 @@ function pa(t) {
|
|
|
3001
3001
|
var e = t.scale, n = t.scaleX, r = t.scaleY;
|
|
3002
3002
|
return !xn(e) || !xn(n) || !xn(r);
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3005
|
-
return pa(t) ||
|
|
3004
|
+
function Ot(t) {
|
|
3005
|
+
return pa(t) || yo(t.x) || yo(t.y) || t.z || t.rotate || t.rotateX || t.rotateY;
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function yo(t) {
|
|
3008
3008
|
return t && t !== "0%";
|
|
3009
3009
|
}
|
|
3010
3010
|
function Ye(t, e, n) {
|
|
3011
3011
|
var r = t - n, o = e * r;
|
|
3012
3012
|
return n + o;
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3014
|
+
function So(t, e, n, r, o) {
|
|
3015
3015
|
return o !== void 0 && (t = Ye(t, o, r)), Ye(t, n, r) + e;
|
|
3016
3016
|
}
|
|
3017
|
-
function
|
|
3018
|
-
e === void 0 && (e = 0), n === void 0 && (n = 1), t.min =
|
|
3017
|
+
function Kn(t, e, n, r, o) {
|
|
3018
|
+
e === void 0 && (e = 0), n === void 0 && (n = 1), t.min = So(t.min, e, n, r, o), t.max = So(t.max, e, n, r, o);
|
|
3019
3019
|
}
|
|
3020
3020
|
function ma(t, e) {
|
|
3021
3021
|
var n = e.x, r = e.y;
|
|
3022
|
-
|
|
3022
|
+
Kn(t.x, n.translate, n.scale, n.originPoint), Kn(t.y, r.translate, r.scale, r.originPoint);
|
|
3023
3023
|
}
|
|
3024
3024
|
function Tf(t, e, n, r) {
|
|
3025
3025
|
var o, a;
|
|
@@ -3028,26 +3028,26 @@ function Tf(t, e, n, r) {
|
|
|
3028
3028
|
if (i) {
|
|
3029
3029
|
e.x = e.y = 1;
|
|
3030
3030
|
for (var s, u, l = 0; l < i; l++)
|
|
3031
|
-
s = n[l], u = s.projectionDelta, ((a = (o = s.instance) === null || o === void 0 ? void 0 : o.style) === null || a === void 0 ? void 0 : a.display) !== "contents" && (r && s.options.layoutScroll && s.scroll && s !== s.root &&
|
|
3031
|
+
s = n[l], u = s.projectionDelta, ((a = (o = s.instance) === null || o === void 0 ? void 0 : o.style) === null || a === void 0 ? void 0 : a.display) !== "contents" && (r && s.options.layoutScroll && s.scroll && s !== s.root && Yt(t, { x: -s.scroll.x, y: -s.scroll.y }), u && (e.x *= u.x.scale, e.y *= u.y.scale, ma(t, u)), r && Ot(s.latestValues) && Yt(t, s.latestValues));
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3034
|
+
function Bt(t, e) {
|
|
3035
3035
|
t.min = t.min + e, t.max = t.max + e;
|
|
3036
3036
|
}
|
|
3037
|
-
function
|
|
3037
|
+
function bo(t, e, n) {
|
|
3038
3038
|
var r = nt(n, 3), o = r[0], a = r[1], i = r[2], s = e[i] !== void 0 ? e[i] : 0.5, u = tt(t.min, t.max, s);
|
|
3039
|
-
|
|
3039
|
+
Kn(t, e[o], e[a], u, e.scale);
|
|
3040
3040
|
}
|
|
3041
3041
|
var Cf = ["x", "scaleX", "originX"], Ef = ["y", "scaleY", "originY"];
|
|
3042
|
-
function
|
|
3043
|
-
|
|
3042
|
+
function Yt(t, e) {
|
|
3043
|
+
bo(t.x, e, Cf), bo(t.y, e, Ef);
|
|
3044
3044
|
}
|
|
3045
3045
|
function ha(t, e) {
|
|
3046
3046
|
return va(xf(t.getBoundingClientRect(), e));
|
|
3047
3047
|
}
|
|
3048
3048
|
function Vf(t, e, n) {
|
|
3049
3049
|
var r = ha(t, n), o = e.scroll;
|
|
3050
|
-
return o && (
|
|
3050
|
+
return o && (Bt(r.x, o.x), Bt(r.y, o.y)), r;
|
|
3051
3051
|
}
|
|
3052
3052
|
var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
3053
3053
|
/** @class */
|
|
@@ -3059,10 +3059,10 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3059
3059
|
var r = this, o = n === void 0 ? {} : n, a = o.snapToCursor, i = a === void 0 ? !1 : a;
|
|
3060
3060
|
if (this.visualElement.isPresent !== !1) {
|
|
3061
3061
|
var s = function(f) {
|
|
3062
|
-
r.stopAnimation(), i && r.snapToCursor(
|
|
3062
|
+
r.stopAnimation(), i && r.snapToCursor(ir(f, "page").point);
|
|
3063
3063
|
}, u = function(f, d) {
|
|
3064
3064
|
var p, v = r.getProps(), m = v.drag, y = v.dragPropagation, h = v.onDragStart;
|
|
3065
|
-
m && !y && (r.openGlobalLock && r.openGlobalLock(), r.openGlobalLock =
|
|
3065
|
+
m && !y && (r.openGlobalLock && r.openGlobalLock(), r.openGlobalLock = Oi(m), !r.openGlobalLock) || (r.isDragging = !0, r.currentDirection = null, r.resolveConstraints(), r.visualElement.projection && (r.visualElement.projection.isAnimationBlocked = !0, r.visualElement.projection.target = void 0), _t(function(S) {
|
|
3066
3066
|
var g, w, x = r.getAxisMotionValue(S).get() || 0;
|
|
3067
3067
|
if (xt.test(x)) {
|
|
3068
3068
|
var T = (w = (g = r.visualElement.projection) === null || g === void 0 ? void 0 : g.layout) === null || w === void 0 ? void 0 : w.actual[S];
|
|
@@ -3108,18 +3108,18 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3108
3108
|
!r && this.openGlobalLock && (this.openGlobalLock(), this.openGlobalLock = null), (n = this.visualElement.animationState) === null || n === void 0 || n.setActive(z.Drag, !1);
|
|
3109
3109
|
}, t.prototype.updateAxis = function(e, n, r) {
|
|
3110
3110
|
var o = this.getProps().drag;
|
|
3111
|
-
if (!(!r || !
|
|
3111
|
+
if (!(!r || !Le(e, o, this.currentDirection))) {
|
|
3112
3112
|
var a = this.getAxisMotionValue(e), i = this.originPoint[e] + r[e];
|
|
3113
3113
|
this.constraints && this.constraints[e] && (i = gf(i, this.constraints[e], this.elastic[e])), a.set(i);
|
|
3114
3114
|
}
|
|
3115
3115
|
}, t.prototype.resolveConstraints = function() {
|
|
3116
3116
|
var e = this, n = this.getProps(), r = n.dragConstraints, o = n.dragElastic, a = (this.visualElement.projection || {}).layout, i = this.constraints;
|
|
3117
|
-
r &&
|
|
3117
|
+
r && Kt(r) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : r && a ? this.constraints = yf(a.actual, r) : this.constraints = !1, this.elastic = wf(o), i !== this.constraints && a && this.constraints && !this.hasMutatedConstraints && _t(function(s) {
|
|
3118
3118
|
e.getAxisMotionValue(s) && (e.constraints[s] = Pf(a.actual[s], e.constraints[s]));
|
|
3119
3119
|
});
|
|
3120
3120
|
}, t.prototype.resolveRefConstraints = function() {
|
|
3121
3121
|
var e = this.getProps(), n = e.dragConstraints, r = e.onMeasureDragConstraints;
|
|
3122
|
-
if (!n || !
|
|
3122
|
+
if (!n || !Kt(n))
|
|
3123
3123
|
return !1;
|
|
3124
3124
|
var o = n.current;
|
|
3125
3125
|
vt(o !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
@@ -3135,7 +3135,7 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3135
3135
|
}, t.prototype.startAnimation = function(e) {
|
|
3136
3136
|
var n = this, r = this.getProps(), o = r.drag, a = r.dragMomentum, i = r.dragElastic, s = r.dragTransition, u = r.dragSnapToOrigin, l = r.onDragTransitionEnd, c = this.constraints || {}, f = _t(function(d) {
|
|
3137
3137
|
var p;
|
|
3138
|
-
if (
|
|
3138
|
+
if (Le(d, o, n.currentDirection)) {
|
|
3139
3139
|
var v = (p = c == null ? void 0 : c[d]) !== null && p !== void 0 ? p : {};
|
|
3140
3140
|
u && (v = { min: 0, max: 0 });
|
|
3141
3141
|
var m = i ? 200 : 1e6, y = i ? 40 : 1e7, h = b(b({ type: "inertia", velocity: a ? e[d] : 0, bounceStiffness: m, bounceDamping: y, timeConstant: 750, restDelta: 1, restSpeed: 10 }, s), v);
|
|
@@ -3145,7 +3145,7 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3145
3145
|
return Promise.all(f).then(l);
|
|
3146
3146
|
}, t.prototype.startAxisValueAnimation = function(e, n) {
|
|
3147
3147
|
var r = this.getAxisMotionValue(e);
|
|
3148
|
-
return
|
|
3148
|
+
return mr(e, r, 0, n);
|
|
3149
3149
|
}, t.prototype.stopAnimation = function() {
|
|
3150
3150
|
var e = this;
|
|
3151
3151
|
_t(function(n) {
|
|
@@ -3158,7 +3158,7 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3158
3158
|
var n = this;
|
|
3159
3159
|
_t(function(r) {
|
|
3160
3160
|
var o = n.getProps().drag;
|
|
3161
|
-
if (
|
|
3161
|
+
if (Le(r, o, n.currentDirection)) {
|
|
3162
3162
|
var a = n.visualElement.projection, i = n.getAxisMotionValue(r);
|
|
3163
3163
|
if (a && a.layout) {
|
|
3164
3164
|
var s = a.layout.actual[r], u = s.min, l = s.max;
|
|
@@ -3168,7 +3168,7 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3168
3168
|
});
|
|
3169
3169
|
}, t.prototype.scalePositionWithinConstraints = function() {
|
|
3170
3170
|
var e = this, n, r = this.getProps(), o = r.drag, a = r.dragConstraints, i = this.visualElement.projection;
|
|
3171
|
-
if (!(!
|
|
3171
|
+
if (!(!Kt(a) || !i || !this.constraints)) {
|
|
3172
3172
|
this.stopAnimation();
|
|
3173
3173
|
var s = { x: 0, y: 0 };
|
|
3174
3174
|
_t(function(l) {
|
|
@@ -3180,7 +3180,7 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3180
3180
|
});
|
|
3181
3181
|
var u = this.visualElement.getProps().transformTemplate;
|
|
3182
3182
|
this.visualElement.getInstance().style.transform = u ? u({}, "") : "none", (n = i.root) === null || n === void 0 || n.updateScroll(), i.updateLayout(), this.resolveConstraints(), _t(function(l) {
|
|
3183
|
-
if (
|
|
3183
|
+
if (Le(l, o, null)) {
|
|
3184
3184
|
var c = e.getAxisMotionValue(l), f = e.constraints[l], d = f.min, p = f.max;
|
|
3185
3185
|
c.set(tt(d, p, s[l]));
|
|
3186
3186
|
}
|
|
@@ -3189,12 +3189,12 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3189
3189
|
}, t.prototype.addListeners = function() {
|
|
3190
3190
|
var e = this, n;
|
|
3191
3191
|
If.set(this.visualElement, this);
|
|
3192
|
-
var r = this.visualElement.getInstance(), o =
|
|
3192
|
+
var r = this.visualElement.getInstance(), o = qt(r, "pointerdown", function(l) {
|
|
3193
3193
|
var c = e.getProps(), f = c.drag, d = c.dragListener, p = d === void 0 ? !0 : d;
|
|
3194
3194
|
f && p && e.start(l);
|
|
3195
3195
|
}), a = function() {
|
|
3196
3196
|
var l = e.getProps().dragConstraints;
|
|
3197
|
-
|
|
3197
|
+
Kt(l) && (e.constraints = e.resolveRefConstraints());
|
|
3198
3198
|
}, i = this.visualElement.projection, s = i.addEventListener("measure", a);
|
|
3199
3199
|
i && !i.layout && ((n = i.root) === null || n === void 0 || n.updateScroll(), i.updateLayout()), a();
|
|
3200
3200
|
var u = en(window, "resize", function() {
|
|
@@ -3210,12 +3210,12 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3210
3210
|
u(), o(), s();
|
|
3211
3211
|
};
|
|
3212
3212
|
}, t.prototype.getProps = function() {
|
|
3213
|
-
var e = this.visualElement.getProps(), n = e.drag, r = n === void 0 ? !1 : n, o = e.dragDirectionLock, a = o === void 0 ? !1 : o, i = e.dragPropagation, s = i === void 0 ? !1 : i, u = e.dragConstraints, l = u === void 0 ? !1 : u, c = e.dragElastic, f = c === void 0 ?
|
|
3213
|
+
var e = this.visualElement.getProps(), n = e.drag, r = n === void 0 ? !1 : n, o = e.dragDirectionLock, a = o === void 0 ? !1 : o, i = e.dragPropagation, s = i === void 0 ? !1 : i, u = e.dragConstraints, l = u === void 0 ? !1 : u, c = e.dragElastic, f = c === void 0 ? Gn : c, d = e.dragMomentum, p = d === void 0 ? !0 : d;
|
|
3214
3214
|
return b(b({}, e), { drag: r, dragDirectionLock: a, dragPropagation: s, dragConstraints: l, dragElastic: f, dragMomentum: p });
|
|
3215
3215
|
}, t;
|
|
3216
3216
|
}()
|
|
3217
3217
|
);
|
|
3218
|
-
function
|
|
3218
|
+
function Le(t, e, n) {
|
|
3219
3219
|
return (e === !0 || e === t) && (n === null || n === t);
|
|
3220
3220
|
}
|
|
3221
3221
|
function Mf(t, e) {
|
|
@@ -3224,7 +3224,7 @@ function Mf(t, e) {
|
|
|
3224
3224
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
|
3225
3225
|
}
|
|
3226
3226
|
function Rf(t) {
|
|
3227
|
-
var e = t.dragControls, n = t.visualElement, r =
|
|
3227
|
+
var e = t.dragControls, n = t.visualElement, r = Pe(function() {
|
|
3228
3228
|
return new Af(n);
|
|
3229
3229
|
});
|
|
3230
3230
|
k(function() {
|
|
@@ -3234,7 +3234,7 @@ function Rf(t) {
|
|
|
3234
3234
|
}, [r]);
|
|
3235
3235
|
}
|
|
3236
3236
|
function Lf(t) {
|
|
3237
|
-
var e = t.onPan, n = t.onPanStart, r = t.onPanEnd, o = t.onPanSessionStart, a = t.visualElement, i = e || n || r || o, s = Z(null), u = st(
|
|
3237
|
+
var e = t.onPan, n = t.onPanStart, r = t.onPanEnd, o = t.onPanSessionStart, a = t.visualElement, i = e || n || r || o, s = Z(null), u = st(Zn).transformPagePoint, l = {
|
|
3238
3238
|
onSessionStart: o,
|
|
3239
3239
|
onStart: n,
|
|
3240
3240
|
onMove: e,
|
|
@@ -3254,7 +3254,7 @@ function Lf(t) {
|
|
|
3254
3254
|
return s.current && s.current.end();
|
|
3255
3255
|
});
|
|
3256
3256
|
}
|
|
3257
|
-
var
|
|
3257
|
+
var Of = {
|
|
3258
3258
|
pan: Nt(Lf),
|
|
3259
3259
|
drag: Nt(Rf)
|
|
3260
3260
|
}, Oe = [
|
|
@@ -3271,9 +3271,9 @@ var Bf = {
|
|
|
3271
3271
|
"SetAxisTarget",
|
|
3272
3272
|
"Unmount"
|
|
3273
3273
|
];
|
|
3274
|
-
function
|
|
3274
|
+
function Bf() {
|
|
3275
3275
|
var t = Oe.map(function() {
|
|
3276
|
-
return new
|
|
3276
|
+
return new ue();
|
|
3277
3277
|
}), e = {}, n = {
|
|
3278
3278
|
clearAllListeners: function() {
|
|
3279
3279
|
return t.forEach(function(r) {
|
|
@@ -3304,13 +3304,13 @@ function Df(t, e, n) {
|
|
|
3304
3304
|
if (It(a))
|
|
3305
3305
|
t.addValue(o, a), process.env.NODE_ENV === "development" && oa(a.version === "6.5.1", "Attempting to mix Framer Motion versions ".concat(a.version, " with 6.5.1 may not work as expected."));
|
|
3306
3306
|
else if (It(i))
|
|
3307
|
-
t.addValue(o,
|
|
3307
|
+
t.addValue(o, Jt(a));
|
|
3308
3308
|
else if (i !== a)
|
|
3309
3309
|
if (t.hasValue(o)) {
|
|
3310
3310
|
var s = t.getValue(o);
|
|
3311
3311
|
!s.hasAnimated && s.set(a);
|
|
3312
3312
|
} else
|
|
3313
|
-
t.addValue(o,
|
|
3313
|
+
t.addValue(o, Jt((r = t.getStaticValue(o)) !== null && r !== void 0 ? r : a));
|
|
3314
3314
|
}
|
|
3315
3315
|
for (var o in n)
|
|
3316
3316
|
e[o] === void 0 && t.removeValue(o);
|
|
@@ -3321,7 +3321,7 @@ var ga = function(t) {
|
|
|
3321
3321
|
return function(d, p) {
|
|
3322
3322
|
var v = d.parent, m = d.props, y = d.presenceId, h = d.blockInitialAnimation, S = d.visualState, g = d.shouldReduceMotion;
|
|
3323
3323
|
p === void 0 && (p = {});
|
|
3324
|
-
var w = !1, x = S.latestValues, T = S.renderState, R,
|
|
3324
|
+
var w = !1, x = S.latestValues, T = S.renderState, R, B = Bf(), V = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), J = {}, $ = b({}, x), j;
|
|
3325
3325
|
function I() {
|
|
3326
3326
|
!R || !w || (G(), s(R, T, m.style, D.projection));
|
|
3327
3327
|
}
|
|
@@ -3329,14 +3329,14 @@ var ga = function(t) {
|
|
|
3329
3329
|
r(D, T, x, p, m);
|
|
3330
3330
|
}
|
|
3331
3331
|
function Q() {
|
|
3332
|
-
|
|
3332
|
+
B.notifyUpdate(x);
|
|
3333
3333
|
}
|
|
3334
3334
|
function M(_, C) {
|
|
3335
|
-
var
|
|
3335
|
+
var O = C.onChange(function(N) {
|
|
3336
3336
|
x[_] = N, m.onUpdate && Tt.update(Q, !1, !0);
|
|
3337
3337
|
}), L = C.onRenderRequest(D.scheduleRender);
|
|
3338
3338
|
F.set(_, function() {
|
|
3339
|
-
|
|
3339
|
+
O(), L();
|
|
3340
3340
|
});
|
|
3341
3341
|
}
|
|
3342
3342
|
var it = f(m);
|
|
@@ -3398,8 +3398,8 @@ var ga = function(t) {
|
|
|
3398
3398
|
return !!R;
|
|
3399
3399
|
},
|
|
3400
3400
|
mount: function(_) {
|
|
3401
|
-
w = !0, R = D.current = _, D.projection && D.projection.mount(_), X && v && !U && (j = v == null ? void 0 : v.addVariantChild(D)), V.forEach(function(C,
|
|
3402
|
-
return M(
|
|
3401
|
+
w = !0, R = D.current = _, D.projection && D.projection.mount(_), X && v && !U && (j = v == null ? void 0 : v.addVariantChild(D)), V.forEach(function(C, O) {
|
|
3402
|
+
return M(O, C);
|
|
3403
3403
|
}), v == null || v.children.add(D), D.setProps(m);
|
|
3404
3404
|
},
|
|
3405
3405
|
/**
|
|
@@ -3407,18 +3407,18 @@ var ga = function(t) {
|
|
|
3407
3407
|
*/
|
|
3408
3408
|
unmount: function() {
|
|
3409
3409
|
var _;
|
|
3410
|
-
(_ = D.projection) === null || _ === void 0 || _.unmount(),
|
|
3410
|
+
(_ = D.projection) === null || _ === void 0 || _.unmount(), Zt.update(Q), Zt.render(I), F.forEach(function(C) {
|
|
3411
3411
|
return C();
|
|
3412
|
-
}), j == null || j(), v == null || v.children.delete(D),
|
|
3412
|
+
}), j == null || j(), v == null || v.children.delete(D), B.clearAllListeners(), R = void 0, w = !1;
|
|
3413
3413
|
},
|
|
3414
3414
|
/**
|
|
3415
3415
|
* Add a child visual element to our set of children.
|
|
3416
3416
|
*/
|
|
3417
3417
|
addVariantChild: function(_) {
|
|
3418
|
-
var C,
|
|
3419
|
-
if (
|
|
3420
|
-
return (C =
|
|
3421
|
-
return
|
|
3418
|
+
var C, O = D.getClosestVariantNode();
|
|
3419
|
+
if (O)
|
|
3420
|
+
return (C = O.variantChildren) === null || C === void 0 || C.add(_), function() {
|
|
3421
|
+
return O.variantChildren.delete(_);
|
|
3422
3422
|
};
|
|
3423
3423
|
},
|
|
3424
3424
|
sortNodePosition: function(_) {
|
|
@@ -3510,8 +3510,8 @@ var ga = function(t) {
|
|
|
3510
3510
|
* value, we'll create one if none exists.
|
|
3511
3511
|
*/
|
|
3512
3512
|
getValue: function(_, C) {
|
|
3513
|
-
var
|
|
3514
|
-
return
|
|
3513
|
+
var O = V.get(_);
|
|
3514
|
+
return O === void 0 && C !== void 0 && (O = Jt(C), D.addValue(_, O)), O;
|
|
3515
3515
|
},
|
|
3516
3516
|
/**
|
|
3517
3517
|
* Iterate over our motion values.
|
|
@@ -3547,7 +3547,7 @@ var ga = function(t) {
|
|
|
3547
3547
|
}
|
|
3548
3548
|
return $[_];
|
|
3549
3549
|
}
|
|
3550
|
-
},
|
|
3550
|
+
}, B), {
|
|
3551
3551
|
/**
|
|
3552
3552
|
* Build the renderer state based on the latest visual state.
|
|
3553
3553
|
*/
|
|
@@ -3572,7 +3572,7 @@ var ga = function(t) {
|
|
|
3572
3572
|
* added to our map, old ones removed, and listeners updated.
|
|
3573
3573
|
*/
|
|
3574
3574
|
setProps: function(_) {
|
|
3575
|
-
(_.transformTemplate || m.transformTemplate) && D.scheduleRender(), m = _,
|
|
3575
|
+
(_.transformTemplate || m.transformTemplate) && D.scheduleRender(), m = _, B.updatePropListeners(_), J = Df(D, f(m), J);
|
|
3576
3576
|
},
|
|
3577
3577
|
getProps: function() {
|
|
3578
3578
|
return m;
|
|
@@ -3604,17 +3604,17 @@ var ga = function(t) {
|
|
|
3604
3604
|
var C = (v == null ? void 0 : v.getVariantContext()) || {};
|
|
3605
3605
|
return m.initial !== void 0 && (C.initial = m.initial), C;
|
|
3606
3606
|
}
|
|
3607
|
-
for (var
|
|
3607
|
+
for (var O = {}, L = 0; L < Nf; L++) {
|
|
3608
3608
|
var N = ya[L], W = m[N];
|
|
3609
|
-
(St(W) || W === !1) && (
|
|
3609
|
+
(St(W) || W === !1) && (O[N] = W);
|
|
3610
3610
|
}
|
|
3611
|
-
return
|
|
3611
|
+
return O;
|
|
3612
3612
|
}
|
|
3613
3613
|
});
|
|
3614
3614
|
return D;
|
|
3615
3615
|
};
|
|
3616
|
-
}, ya = mt(["initial"], nt(
|
|
3617
|
-
function
|
|
3616
|
+
}, ya = mt(["initial"], nt(Sr), !1), Nf = ya.length;
|
|
3617
|
+
function Yn(t) {
|
|
3618
3618
|
return typeof t == "string" && t.startsWith("var(--");
|
|
3619
3619
|
}
|
|
3620
3620
|
var Sa = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
|
|
@@ -3626,12 +3626,12 @@ function Ff(t) {
|
|
|
3626
3626
|
return [r, o];
|
|
3627
3627
|
}
|
|
3628
3628
|
var jf = 4;
|
|
3629
|
-
function
|
|
3629
|
+
function qn(t, e, n) {
|
|
3630
3630
|
n === void 0 && (n = 1), vt(n <= jf, 'Max CSS variable fallback depth detected in property "'.concat(t, '". This may indicate a circular fallback dependency.'));
|
|
3631
3631
|
var r = nt(Ff(t), 2), o = r[0], a = r[1];
|
|
3632
3632
|
if (o) {
|
|
3633
3633
|
var i = window.getComputedStyle(e).getPropertyValue(o);
|
|
3634
|
-
return i ? i.trim() :
|
|
3634
|
+
return i ? i.trim() : Yn(a) ? qn(a, e, n + 1) : a;
|
|
3635
3635
|
}
|
|
3636
3636
|
}
|
|
3637
3637
|
function kf(t, e, n) {
|
|
@@ -3640,15 +3640,15 @@ function kf(t, e, n) {
|
|
|
3640
3640
|
return { target: o, transitionEnd: n };
|
|
3641
3641
|
n && (n = b({}, n)), t.forEachValue(function(l) {
|
|
3642
3642
|
var c = l.get();
|
|
3643
|
-
if (
|
|
3644
|
-
var f =
|
|
3643
|
+
if (Yn(c)) {
|
|
3644
|
+
var f = qn(c, a);
|
|
3645
3645
|
f && l.set(f);
|
|
3646
3646
|
}
|
|
3647
3647
|
});
|
|
3648
3648
|
for (var i in o) {
|
|
3649
3649
|
var s = o[i];
|
|
3650
|
-
if (
|
|
3651
|
-
var u =
|
|
3650
|
+
if (Yn(s)) {
|
|
3651
|
+
var u = qn(s, a);
|
|
3652
3652
|
u && (o[i] = u, n && ((r = n[i]) !== null && r !== void 0 || (n[i] = s)));
|
|
3653
3653
|
}
|
|
3654
3654
|
}
|
|
@@ -3669,26 +3669,26 @@ var $f = /* @__PURE__ */ new Set([
|
|
|
3669
3669
|
return Object.keys(t).some(ba);
|
|
3670
3670
|
}, Pa = function(t, e) {
|
|
3671
3671
|
t.set(e, !1), t.set(e);
|
|
3672
|
-
},
|
|
3672
|
+
}, Be = function(t) {
|
|
3673
3673
|
return t === Ht || t === A;
|
|
3674
|
-
},
|
|
3674
|
+
}, Po;
|
|
3675
3675
|
(function(t) {
|
|
3676
3676
|
t.width = "width", t.height = "height", t.left = "left", t.right = "right", t.top = "top", t.bottom = "bottom";
|
|
3677
|
-
})(
|
|
3678
|
-
var
|
|
3677
|
+
})(Po || (Po = {}));
|
|
3678
|
+
var wo = function(t, e) {
|
|
3679
3679
|
return parseFloat(t.split(", ")[e]);
|
|
3680
|
-
},
|
|
3680
|
+
}, _o = function(t, e) {
|
|
3681
3681
|
return function(n, r) {
|
|
3682
3682
|
var o = r.transform;
|
|
3683
3683
|
if (o === "none" || !o)
|
|
3684
3684
|
return 0;
|
|
3685
3685
|
var a = o.match(/^matrix3d\((.+)\)$/);
|
|
3686
3686
|
if (a)
|
|
3687
|
-
return
|
|
3687
|
+
return wo(a[1], e);
|
|
3688
3688
|
var i = o.match(/^matrix\((.+)\)$/);
|
|
3689
|
-
return i ?
|
|
3689
|
+
return i ? wo(i[1], t) : 0;
|
|
3690
3690
|
};
|
|
3691
|
-
}, Wf = /* @__PURE__ */ new Set(["x", "y", "z"]), Hf =
|
|
3691
|
+
}, Wf = /* @__PURE__ */ new Set(["x", "y", "z"]), Hf = me.filter(function(t) {
|
|
3692
3692
|
return !Wf.has(t);
|
|
3693
3693
|
});
|
|
3694
3694
|
function zf(t) {
|
|
@@ -3698,7 +3698,7 @@ function zf(t) {
|
|
|
3698
3698
|
r !== void 0 && (e.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
|
|
3699
3699
|
}), e.length && t.syncRender(), e;
|
|
3700
3700
|
}
|
|
3701
|
-
var
|
|
3701
|
+
var xo = {
|
|
3702
3702
|
// Dimensions
|
|
3703
3703
|
width: function(t, e) {
|
|
3704
3704
|
var n = t.x, r = e.paddingLeft, o = r === void 0 ? "0" : r, a = e.paddingRight, i = a === void 0 ? "0" : a;
|
|
@@ -3725,17 +3725,17 @@ var _o = {
|
|
|
3725
3725
|
return parseFloat(r) + (n.max - n.min);
|
|
3726
3726
|
},
|
|
3727
3727
|
// Transform
|
|
3728
|
-
x:
|
|
3729
|
-
y:
|
|
3728
|
+
x: _o(4, 13),
|
|
3729
|
+
y: _o(5, 14)
|
|
3730
3730
|
}, Gf = function(t, e, n) {
|
|
3731
3731
|
var r = e.measureViewportBox(), o = e.getInstance(), a = getComputedStyle(o), i = a.display, s = {};
|
|
3732
3732
|
i === "none" && e.setStaticValue("display", t.display || "block"), n.forEach(function(l) {
|
|
3733
|
-
s[l] =
|
|
3733
|
+
s[l] = xo[l](r, a);
|
|
3734
3734
|
}), e.syncRender();
|
|
3735
3735
|
var u = e.measureViewportBox();
|
|
3736
3736
|
return n.forEach(function(l) {
|
|
3737
3737
|
var c = e.getValue(l);
|
|
3738
|
-
Pa(c, s[l]), t[l] =
|
|
3738
|
+
Pa(c, s[l]), t[l] = xo[l](u, a);
|
|
3739
3739
|
}), t;
|
|
3740
3740
|
}, Kf = function(t, e, n, r) {
|
|
3741
3741
|
n === void 0 && (n = {}), r === void 0 && (r = {}), e = b({}, e), r = b({}, r);
|
|
@@ -3743,16 +3743,16 @@ var _o = {
|
|
|
3743
3743
|
if (o.forEach(function(c) {
|
|
3744
3744
|
var f = t.getValue(c);
|
|
3745
3745
|
if (t.hasValue(c)) {
|
|
3746
|
-
var d = n[c], p =
|
|
3747
|
-
if (
|
|
3746
|
+
var d = n[c], p = re(d), v = e[c], m;
|
|
3747
|
+
if (ge(v)) {
|
|
3748
3748
|
var y = v.length, h = v[0] === null ? 1 : 0;
|
|
3749
|
-
d = v[h], p =
|
|
3749
|
+
d = v[h], p = re(d);
|
|
3750
3750
|
for (var S = h; S < y; S++)
|
|
3751
|
-
m ? vt(
|
|
3751
|
+
m ? vt(re(v[S]) === m, "All keyframes must be of the same type") : (m = re(v[S]), vt(m === p || Be(p) && Be(m), "Keyframes must be of the same dimension as the current value"));
|
|
3752
3752
|
} else
|
|
3753
|
-
m =
|
|
3753
|
+
m = re(v);
|
|
3754
3754
|
if (p !== m)
|
|
3755
|
-
if (
|
|
3755
|
+
if (Be(p) && Be(m)) {
|
|
3756
3756
|
var g = f.get();
|
|
3757
3757
|
typeof g == "string" && f.set(parseFloat(g)), typeof v == "string" ? e[c] = parseFloat(v) : Array.isArray(v) && m === A && (e[c] = v.map(parseFloat));
|
|
3758
3758
|
} else p != null && p.transform && (m != null && m.transform) && (d === 0 || v === 0) ? d === 0 ? f.set(m.transform(d)) : e[c] = p.transform(v) : (i || (a = zf(t), i = !0), s.push(c), r[c] = r[c] !== void 0 ? r[c] : e[c], Pa(f, v));
|
|
@@ -3779,8 +3779,8 @@ function Xf(t) {
|
|
|
3779
3779
|
var wa = {
|
|
3780
3780
|
treeType: "dom",
|
|
3781
3781
|
readValueFromInstance: function(t, e) {
|
|
3782
|
-
if (
|
|
3783
|
-
var n =
|
|
3782
|
+
if (we(e)) {
|
|
3783
|
+
var n = dr(e);
|
|
3784
3784
|
return n && n.default || 0;
|
|
3785
3785
|
} else {
|
|
3786
3786
|
var r = Xf(t);
|
|
@@ -3831,25 +3831,25 @@ var wa = {
|
|
|
3831
3831
|
}
|
|
3832
3832
|
return b({ transition: a, transitionEnd: i }, s);
|
|
3833
3833
|
},
|
|
3834
|
-
scrapeMotionValuesFromProps:
|
|
3834
|
+
scrapeMotionValuesFromProps: rr,
|
|
3835
3835
|
build: function(t, e, n, r, o) {
|
|
3836
|
-
t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"),
|
|
3836
|
+
t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"), tr(e, n, r, o.transformTemplate);
|
|
3837
3837
|
},
|
|
3838
3838
|
render: _i
|
|
3839
3839
|
}, Zf = ga(wa), Jf = ga(b(b({}, wa), { getBaseTarget: function(t, e) {
|
|
3840
3840
|
return t[e];
|
|
3841
3841
|
}, readValueFromInstance: function(t, e) {
|
|
3842
3842
|
var n;
|
|
3843
|
-
return
|
|
3843
|
+
return we(e) ? ((n = dr(e)) === null || n === void 0 ? void 0 : n.default) || 0 : (e = xi.has(e) ? e : wi(e), t.getAttribute(e));
|
|
3844
3844
|
}, scrapeMotionValuesFromProps: Ci, build: function(t, e, n, r, o) {
|
|
3845
|
-
|
|
3845
|
+
nr(e, n, r, o.transformTemplate);
|
|
3846
3846
|
}, render: Ti })), Qf = function(t, e) {
|
|
3847
|
-
return
|
|
3847
|
+
return Jn(t) ? Jf(e, { enableHardwareAcceleration: !1 }) : Zf(e, { enableHardwareAcceleration: !0 });
|
|
3848
3848
|
};
|
|
3849
|
-
function
|
|
3849
|
+
function To(t, e) {
|
|
3850
3850
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
3851
3851
|
}
|
|
3852
|
-
var
|
|
3852
|
+
var oe = {
|
|
3853
3853
|
correct: function(t, e) {
|
|
3854
3854
|
if (!e.target)
|
|
3855
3855
|
return t;
|
|
@@ -3858,14 +3858,14 @@ var ie = {
|
|
|
3858
3858
|
t = parseFloat(t);
|
|
3859
3859
|
else
|
|
3860
3860
|
return t;
|
|
3861
|
-
var n =
|
|
3861
|
+
var n = To(t, e.target.x), r = To(t, e.target.y);
|
|
3862
3862
|
return "".concat(n, "% ").concat(r, "%");
|
|
3863
3863
|
}
|
|
3864
|
-
},
|
|
3864
|
+
}, Co = "_$css", td = {
|
|
3865
3865
|
correct: function(t, e) {
|
|
3866
3866
|
var n = e.treeScale, r = e.projectionDelta, o = t, a = t.includes("var("), i = [];
|
|
3867
3867
|
a && (t = t.replace(Sa, function(m) {
|
|
3868
|
-
return i.push(m),
|
|
3868
|
+
return i.push(m), Co;
|
|
3869
3869
|
}));
|
|
3870
3870
|
var s = At.parse(t);
|
|
3871
3871
|
if (s.length > 5)
|
|
@@ -3877,7 +3877,7 @@ var ie = {
|
|
|
3877
3877
|
var p = u(s);
|
|
3878
3878
|
if (a) {
|
|
3879
3879
|
var v = 0;
|
|
3880
|
-
p = p.replace(
|
|
3880
|
+
p = p.replace(Co, function() {
|
|
3881
3881
|
var m = i[v];
|
|
3882
3882
|
return v++, m;
|
|
3883
3883
|
});
|
|
@@ -3897,7 +3897,7 @@ var ie = {
|
|
|
3897
3897
|
n.safeToRemove();
|
|
3898
3898
|
}), u.setOptions(b(b({}, u.options), { onExitComplete: function() {
|
|
3899
3899
|
return n.safeToRemove();
|
|
3900
|
-
} }))),
|
|
3900
|
+
} }))), ie.hasEverUpdated = !0;
|
|
3901
3901
|
}, e.prototype.getSnapshotBeforeUpdate = function(n) {
|
|
3902
3902
|
var r = this, o = this.props, a = o.layoutDependency, i = o.visualElement, s = o.drag, u = o.isPresent, l = i.projection;
|
|
3903
3903
|
return l && (l.isPresent = u, s || n.layoutDependency !== a || a === void 0 ? l.willUpdate() : this.safeToRemove(), n.isPresent !== u && (u ? l.promote() : l.relegate() || Tt.postRender(function() {
|
|
@@ -3923,24 +3923,24 @@ function nd(t) {
|
|
|
3923
3923
|
return E.createElement(ed, b({}, t, { layoutGroup: o, switchLayoutGroup: st(si), isPresent: n, safeToRemove: r }));
|
|
3924
3924
|
}
|
|
3925
3925
|
var rd = {
|
|
3926
|
-
borderRadius: b(b({},
|
|
3926
|
+
borderRadius: b(b({}, oe), { applyTo: [
|
|
3927
3927
|
"borderTopLeftRadius",
|
|
3928
3928
|
"borderTopRightRadius",
|
|
3929
3929
|
"borderBottomLeftRadius",
|
|
3930
3930
|
"borderBottomRightRadius"
|
|
3931
3931
|
] }),
|
|
3932
|
-
borderTopLeftRadius:
|
|
3933
|
-
borderTopRightRadius:
|
|
3934
|
-
borderBottomLeftRadius:
|
|
3935
|
-
borderBottomRightRadius:
|
|
3932
|
+
borderTopLeftRadius: oe,
|
|
3933
|
+
borderTopRightRadius: oe,
|
|
3934
|
+
borderBottomLeftRadius: oe,
|
|
3935
|
+
borderBottomRightRadius: oe,
|
|
3936
3936
|
boxShadow: td
|
|
3937
3937
|
}, od = {
|
|
3938
3938
|
measureLayout: nd
|
|
3939
3939
|
};
|
|
3940
3940
|
function id(t, e, n) {
|
|
3941
3941
|
n === void 0 && (n = {});
|
|
3942
|
-
var r = It(t) ? t :
|
|
3943
|
-
return
|
|
3942
|
+
var r = It(t) ? t : Jt(t);
|
|
3943
|
+
return mr("", r, e, n), {
|
|
3944
3944
|
stop: function() {
|
|
3945
3945
|
return r.stop();
|
|
3946
3946
|
},
|
|
@@ -3949,9 +3949,9 @@ function id(t, e, n) {
|
|
|
3949
3949
|
}
|
|
3950
3950
|
};
|
|
3951
3951
|
}
|
|
3952
|
-
var _a = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ad = _a.length,
|
|
3952
|
+
var _a = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ad = _a.length, Eo = function(t) {
|
|
3953
3953
|
return typeof t == "string" ? parseFloat(t) : t;
|
|
3954
|
-
},
|
|
3954
|
+
}, Vo = function(t) {
|
|
3955
3955
|
return typeof t == "number" || A.test(t);
|
|
3956
3956
|
};
|
|
3957
3957
|
function sd(t, e, n, r, o, a) {
|
|
@@ -3964,32 +3964,32 @@ function sd(t, e, n, r, o, a) {
|
|
|
3964
3964
|
ud(r)
|
|
3965
3965
|
), t.opacityExit = tt((s = e.opacity) !== null && s !== void 0 ? s : 1, 0, ld(r))) : a && (t.opacity = tt((u = e.opacity) !== null && u !== void 0 ? u : 1, (l = n.opacity) !== null && l !== void 0 ? l : 1, r));
|
|
3966
3966
|
for (var c = 0; c < ad; c++) {
|
|
3967
|
-
var f = "border".concat(_a[c], "Radius"), d =
|
|
3967
|
+
var f = "border".concat(_a[c], "Radius"), d = Io(e, f), p = Io(n, f);
|
|
3968
3968
|
if (!(d === void 0 && p === void 0)) {
|
|
3969
3969
|
d || (d = 0), p || (p = 0);
|
|
3970
|
-
var v = d === 0 || p === 0 ||
|
|
3971
|
-
v ? (t[f] = Math.max(tt(
|
|
3970
|
+
var v = d === 0 || p === 0 || Vo(d) === Vo(p);
|
|
3971
|
+
v ? (t[f] = Math.max(tt(Eo(d), Eo(p), r), 0), (xt.test(p) || xt.test(d)) && (t[f] += "%")) : t[f] = p;
|
|
3972
3972
|
}
|
|
3973
3973
|
}
|
|
3974
3974
|
(e.rotate || n.rotate) && (t.rotate = tt(e.rotate || 0, n.rotate || 0, r));
|
|
3975
3975
|
}
|
|
3976
|
-
function
|
|
3976
|
+
function Io(t, e) {
|
|
3977
3977
|
var n;
|
|
3978
3978
|
return (n = t[e]) !== null && n !== void 0 ? n : t.borderRadius;
|
|
3979
3979
|
}
|
|
3980
|
-
var ud = xa(0, 0.5,
|
|
3980
|
+
var ud = xa(0, 0.5, cr), ld = xa(0.5, 0.95, ur);
|
|
3981
3981
|
function xa(t, e, n) {
|
|
3982
3982
|
return function(r) {
|
|
3983
|
-
return r < t ? 0 : r > e ? 1 : n(
|
|
3983
|
+
return r < t ? 0 : r > e ? 1 : n(ye(t, e, r));
|
|
3984
3984
|
};
|
|
3985
3985
|
}
|
|
3986
|
-
function
|
|
3986
|
+
function Ao(t, e) {
|
|
3987
3987
|
t.min = e.min, t.max = e.max;
|
|
3988
3988
|
}
|
|
3989
3989
|
function yt(t, e) {
|
|
3990
|
-
|
|
3990
|
+
Ao(t.x, e.x), Ao(t.y, e.y);
|
|
3991
3991
|
}
|
|
3992
|
-
function
|
|
3992
|
+
function Mo(t, e, n, r, o) {
|
|
3993
3993
|
return t -= e, t = Ye(t, 1 / n, r), o !== void 0 && (t = Ye(t, 1 / o, r)), t;
|
|
3994
3994
|
}
|
|
3995
3995
|
function cd(t, e, n, r, o, a, i) {
|
|
@@ -4000,22 +4000,22 @@ function cd(t, e, n, r, o, a, i) {
|
|
|
4000
4000
|
}
|
|
4001
4001
|
if (typeof e == "number") {
|
|
4002
4002
|
var u = tt(a.min, a.max, r);
|
|
4003
|
-
t === a && (u -= e), t.min =
|
|
4003
|
+
t === a && (u -= e), t.min = Mo(t.min, e, n, u, o), t.max = Mo(t.max, e, n, u, o);
|
|
4004
4004
|
}
|
|
4005
4005
|
}
|
|
4006
|
-
function
|
|
4006
|
+
function Ro(t, e, n, r, o) {
|
|
4007
4007
|
var a = nt(n, 3), i = a[0], s = a[1], u = a[2];
|
|
4008
4008
|
cd(t, e[i], e[s], e[u], e.scale, r, o);
|
|
4009
4009
|
}
|
|
4010
4010
|
var fd = ["x", "scaleX", "originX"], dd = ["y", "scaleY", "originY"];
|
|
4011
|
-
function
|
|
4012
|
-
|
|
4011
|
+
function Lo(t, e, n, r) {
|
|
4012
|
+
Ro(t.x, e, fd, n == null ? void 0 : n.x, r == null ? void 0 : r.x), Ro(t.y, e, dd, n == null ? void 0 : n.y, r == null ? void 0 : r.y);
|
|
4013
4013
|
}
|
|
4014
|
-
function
|
|
4014
|
+
function Oo(t) {
|
|
4015
4015
|
return t.translate === 0 && t.scale === 1;
|
|
4016
4016
|
}
|
|
4017
4017
|
function Ta(t) {
|
|
4018
|
-
return
|
|
4018
|
+
return Oo(t.x) && Oo(t.y);
|
|
4019
4019
|
}
|
|
4020
4020
|
function Ca(t, e) {
|
|
4021
4021
|
return t.x.min === e.x.min && t.x.max === e.x.max && t.y.min === e.y.min && t.y.max === e.y.max;
|
|
@@ -4027,9 +4027,9 @@ var vd = (
|
|
|
4027
4027
|
this.members = [];
|
|
4028
4028
|
}
|
|
4029
4029
|
return t.prototype.add = function(e) {
|
|
4030
|
-
|
|
4030
|
+
hr(this.members, e), e.scheduleRender();
|
|
4031
4031
|
}, t.prototype.remove = function(e) {
|
|
4032
|
-
if (
|
|
4032
|
+
if (gr(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
|
4033
4033
|
var n = this.members[this.members.length - 1];
|
|
4034
4034
|
n && this.promote(n);
|
|
4035
4035
|
}
|
|
@@ -4086,14 +4086,14 @@ var md = function(t, e) {
|
|
|
4086
4086
|
this.children = [], this.isDirty = !1;
|
|
4087
4087
|
}
|
|
4088
4088
|
return t.prototype.add = function(e) {
|
|
4089
|
-
mr(this.children, e), this.isDirty = !0;
|
|
4090
|
-
}, t.prototype.remove = function(e) {
|
|
4091
4089
|
hr(this.children, e), this.isDirty = !0;
|
|
4090
|
+
}, t.prototype.remove = function(e) {
|
|
4091
|
+
gr(this.children, e), this.isDirty = !0;
|
|
4092
4092
|
}, t.prototype.forEach = function(e) {
|
|
4093
4093
|
this.isDirty && this.children.sort(md), this.isDirty = !1, this.children.forEach(e);
|
|
4094
4094
|
}, t;
|
|
4095
4095
|
}()
|
|
4096
|
-
),
|
|
4096
|
+
), Do = 1e3;
|
|
4097
4097
|
function Ea(t) {
|
|
4098
4098
|
var e = t.attachResizeListener, n = t.defaultParent, r = t.measureScroll, o = t.checkIsScrollRoot, a = t.resetTransform;
|
|
4099
4099
|
return (
|
|
@@ -4111,7 +4111,7 @@ function Ea(t) {
|
|
|
4111
4111
|
this.root === this && (this.nodes = new hd());
|
|
4112
4112
|
}
|
|
4113
4113
|
return i.prototype.addEventListener = function(s, u) {
|
|
4114
|
-
return this.eventHandlers.has(s) || this.eventHandlers.set(s, new
|
|
4114
|
+
return this.eventHandlers.has(s) || this.eventHandlers.set(s, new ue()), this.eventHandlers.get(s).add(u);
|
|
4115
4115
|
}, i.prototype.notifyListeners = function(s) {
|
|
4116
4116
|
for (var u = [], l = 1; l < arguments.length; l++)
|
|
4117
4117
|
u[l - 1] = arguments[l];
|
|
@@ -4131,28 +4131,28 @@ function Ea(t) {
|
|
|
4131
4131
|
return l.root.updateBlockedByResize = !1;
|
|
4132
4132
|
};
|
|
4133
4133
|
e(s, function() {
|
|
4134
|
-
l.root.updateBlockedByResize = !0, clearTimeout(m), m = window.setTimeout(y, 250),
|
|
4134
|
+
l.root.updateBlockedByResize = !0, clearTimeout(m), m = window.setTimeout(y, 250), ie.hasAnimatedSinceResize && (ie.hasAnimatedSinceResize = !1, l.nodes.forEach(Pd));
|
|
4135
4135
|
});
|
|
4136
4136
|
}
|
|
4137
4137
|
d && this.root.registerSharedNode(d, this), this.options.animate !== !1 && v && (d || p) && this.addEventListener("didUpdate", function(h) {
|
|
4138
|
-
var S, g, w, x, T, R = h.delta,
|
|
4138
|
+
var S, g, w, x, T, R = h.delta, B = h.hasLayoutChanged, V = h.hasRelativeTargetChanged, F = h.layout;
|
|
4139
4139
|
if (l.isTreeAnimationBlocked()) {
|
|
4140
4140
|
l.target = void 0, l.relativeTarget = void 0;
|
|
4141
4141
|
return;
|
|
4142
4142
|
}
|
|
4143
|
-
var J = (g = (S = l.options.transition) !== null && S !== void 0 ? S : v.getDefaultTransition()) !== null && g !== void 0 ? g : Vd, $ = v.getProps(), j = $.onLayoutAnimationStart, I = $.onLayoutAnimationComplete, G = !l.targetLayout || !Ca(l.targetLayout, F) || V, Q = !
|
|
4144
|
-
if (!((w = l.resumeFrom) === null || w === void 0) && w.instance || Q ||
|
|
4143
|
+
var J = (g = (S = l.options.transition) !== null && S !== void 0 ? S : v.getDefaultTransition()) !== null && g !== void 0 ? g : Vd, $ = v.getProps(), j = $.onLayoutAnimationStart, I = $.onLayoutAnimationComplete, G = !l.targetLayout || !Ca(l.targetLayout, F) || V, Q = !B && V;
|
|
4144
|
+
if (!((w = l.resumeFrom) === null || w === void 0) && w.instance || Q || B && (G || !l.currentAnimation)) {
|
|
4145
4145
|
l.resumeFrom && (l.resumingFrom = l.resumeFrom, l.resumingFrom.resumingFrom = void 0), l.setAnimationOrigin(R, Q);
|
|
4146
|
-
var M = b(b({},
|
|
4146
|
+
var M = b(b({}, pr(J, "layout")), { onPlay: j, onComplete: I });
|
|
4147
4147
|
v.shouldReduceMotion && (M.delay = 0, M.type = !1), l.startAnimation(M);
|
|
4148
4148
|
} else
|
|
4149
|
-
!
|
|
4149
|
+
!B && l.animationProgress === 0 && l.finishAnimation(), l.isLead() && ((T = (x = l.options).onExitComplete) === null || T === void 0 || T.call(x));
|
|
4150
4150
|
l.targetLayout = F;
|
|
4151
4151
|
});
|
|
4152
4152
|
}
|
|
4153
4153
|
}, i.prototype.unmount = function() {
|
|
4154
4154
|
var s, u;
|
|
4155
|
-
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), (s = this.getStack()) === null || s === void 0 || s.remove(this), (u = this.parent) === null || u === void 0 || u.children.delete(this), this.instance = void 0,
|
|
4155
|
+
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), (s = this.getStack()) === null || s === void 0 || s.remove(this), (u = this.parent) === null || u === void 0 || u.children.delete(this), this.instance = void 0, Zt.preRender(this.updateProjection);
|
|
4156
4156
|
}, i.prototype.blockUpdate = function() {
|
|
4157
4157
|
this.updateManuallyBlocked = !0;
|
|
4158
4158
|
}, i.prototype.unblockUpdate = function() {
|
|
@@ -4186,7 +4186,7 @@ function Ea(t) {
|
|
|
4186
4186
|
}, i.prototype.didUpdate = function() {
|
|
4187
4187
|
var s = this.isUpdateBlocked();
|
|
4188
4188
|
if (s) {
|
|
4189
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
|
4189
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(No);
|
|
4190
4190
|
return;
|
|
4191
4191
|
}
|
|
4192
4192
|
this.isUpdating && (this.isUpdating = !1, this.potentialNodes.size && (this.potentialNodes.forEach(Id), this.potentialNodes.clear()), this.nodes.forEach(bd), this.nodes.forEach(gd), this.nodes.forEach(yd), this.clearAllSnapshots(), Sn.update(), Sn.preRender(), Sn.render());
|
|
@@ -4202,7 +4202,7 @@ function Ea(t) {
|
|
|
4202
4202
|
}, i.prototype.updateSnapshot = function() {
|
|
4203
4203
|
if (!(this.snapshot || !this.instance)) {
|
|
4204
4204
|
var s = this.measure(), u = this.removeTransform(this.removeElementScroll(s));
|
|
4205
|
-
|
|
4205
|
+
$o(u), this.snapshot = {
|
|
4206
4206
|
measured: s,
|
|
4207
4207
|
layout: u,
|
|
4208
4208
|
latestValues: {}
|
|
@@ -4217,7 +4217,7 @@ function Ea(t) {
|
|
|
4217
4217
|
l.updateScroll();
|
|
4218
4218
|
}
|
|
4219
4219
|
var c = this.measure();
|
|
4220
|
-
|
|
4220
|
+
$o(c);
|
|
4221
4221
|
var f = this.layout;
|
|
4222
4222
|
this.layout = {
|
|
4223
4223
|
measured: c,
|
|
@@ -4230,14 +4230,14 @@ function Ea(t) {
|
|
|
4230
4230
|
var s;
|
|
4231
4231
|
if (a) {
|
|
4232
4232
|
var u = this.isLayoutDirty || this.shouldResetTransform, l = this.projectionDelta && !Ta(this.projectionDelta), c = (s = this.options.visualElement) === null || s === void 0 ? void 0 : s.getProps().transformTemplate, f = c == null ? void 0 : c(this.latestValues, ""), d = f !== this.prevTransformTemplateValue;
|
|
4233
|
-
u && (l ||
|
|
4233
|
+
u && (l || Ot(this.latestValues) || d) && (a(this.instance, f), this.shouldResetTransform = !1, this.scheduleRender());
|
|
4234
4234
|
}
|
|
4235
4235
|
}, i.prototype.measure = function() {
|
|
4236
4236
|
var s = this.options.visualElement;
|
|
4237
4237
|
if (!s)
|
|
4238
4238
|
return lt();
|
|
4239
4239
|
var u = s.measureViewportBox(), l = this.root.scroll;
|
|
4240
|
-
return l && (
|
|
4240
|
+
return l && (Bt(u.x, l.x), Bt(u.y, l.y)), u;
|
|
4241
4241
|
}, i.prototype.removeElementScroll = function(s) {
|
|
4242
4242
|
var u = lt();
|
|
4243
4243
|
yt(u, s);
|
|
@@ -4247,9 +4247,9 @@ function Ea(t) {
|
|
|
4247
4247
|
if (p) {
|
|
4248
4248
|
yt(u, s);
|
|
4249
4249
|
var v = this.root.scroll;
|
|
4250
|
-
v && (
|
|
4250
|
+
v && (Bt(u.x, -v.x), Bt(u.y, -v.y));
|
|
4251
4251
|
}
|
|
4252
|
-
|
|
4252
|
+
Bt(u.x, f.x), Bt(u.y, f.y);
|
|
4253
4253
|
}
|
|
4254
4254
|
}
|
|
4255
4255
|
return u;
|
|
@@ -4259,24 +4259,24 @@ function Ea(t) {
|
|
|
4259
4259
|
yt(l, s);
|
|
4260
4260
|
for (var c = 0; c < this.path.length; c++) {
|
|
4261
4261
|
var f = this.path[c];
|
|
4262
|
-
!u && f.options.layoutScroll && f.scroll && f !== f.root &&
|
|
4262
|
+
!u && f.options.layoutScroll && f.scroll && f !== f.root && Yt(l, {
|
|
4263
4263
|
x: -f.scroll.x,
|
|
4264
4264
|
y: -f.scroll.y
|
|
4265
|
-
}),
|
|
4265
|
+
}), Ot(f.latestValues) && Yt(l, f.latestValues);
|
|
4266
4266
|
}
|
|
4267
|
-
return
|
|
4267
|
+
return Ot(this.latestValues) && Yt(l, this.latestValues), l;
|
|
4268
4268
|
}, i.prototype.removeTransform = function(s) {
|
|
4269
4269
|
var u, l = lt();
|
|
4270
4270
|
yt(l, s);
|
|
4271
4271
|
for (var c = 0; c < this.path.length; c++) {
|
|
4272
4272
|
var f = this.path[c];
|
|
4273
|
-
if (f.instance &&
|
|
4273
|
+
if (f.instance && Ot(f.latestValues)) {
|
|
4274
4274
|
pa(f.latestValues) && f.updateSnapshot();
|
|
4275
4275
|
var d = lt(), p = f.measure();
|
|
4276
|
-
yt(d, p),
|
|
4276
|
+
yt(d, p), Lo(l, f.latestValues, (u = f.snapshot) === null || u === void 0 ? void 0 : u.layout, d);
|
|
4277
4277
|
}
|
|
4278
4278
|
}
|
|
4279
|
-
return
|
|
4279
|
+
return Ot(this.latestValues) && Lo(l, this.latestValues), l;
|
|
4280
4280
|
}, i.prototype.setTargetDelta = function(s) {
|
|
4281
4281
|
this.targetDelta = s, this.root.scheduleUpdateProjection();
|
|
4282
4282
|
}, i.prototype.setOptions = function(s) {
|
|
@@ -4286,9 +4286,9 @@ function Ea(t) {
|
|
|
4286
4286
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
4287
4287
|
}, i.prototype.resolveTargetDelta = function() {
|
|
4288
4288
|
var s, u = this.options, l = u.layout, c = u.layoutId;
|
|
4289
|
-
!this.layout || !(l || c) || (!this.targetDelta && !this.relativeTarget && (this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && this.relativeParent.layout && (this.relativeTarget = lt(), this.relativeTargetOrigin = lt(),
|
|
4289
|
+
!this.layout || !(l || c) || (!this.targetDelta && !this.relativeTarget && (this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && this.relativeParent.layout && (this.relativeTarget = lt(), this.relativeTargetOrigin = lt(), ce(this.relativeTargetOrigin, this.layout.actual, this.relativeParent.layout.actual), yt(this.relativeTarget, this.relativeTargetOrigin))), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = lt(), this.targetWithTransforms = lt()), this.relativeTarget && this.relativeTargetOrigin && (!((s = this.relativeParent) === null || s === void 0) && s.target) ? hf(this.target, this.relativeTarget, this.relativeParent.target) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.actual) : yt(this.target, this.layout.actual), ma(this.target, this.targetDelta)) : yt(this.target, this.layout.actual), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && !!this.relativeParent.resumingFrom == !!this.resumingFrom && !this.relativeParent.options.layoutScroll && this.relativeParent.target && (this.relativeTarget = lt(), this.relativeTargetOrigin = lt(), ce(this.relativeTargetOrigin, this.target, this.relativeParent.target), yt(this.relativeTarget, this.relativeTargetOrigin)))));
|
|
4290
4290
|
}, i.prototype.getClosestProjectingParent = function() {
|
|
4291
|
-
if (!(!this.parent ||
|
|
4291
|
+
if (!(!this.parent || Ot(this.parent.latestValues)))
|
|
4292
4292
|
return (this.parent.relativeTarget || this.parent.targetDelta) && this.parent.layout ? this.parent : this.parent.getClosestProjectingParent();
|
|
4293
4293
|
}, i.prototype.calcProjection = function() {
|
|
4294
4294
|
var s, u = this.options, l = u.layout, c = u.layoutId;
|
|
@@ -4297,9 +4297,9 @@ function Ea(t) {
|
|
|
4297
4297
|
yt(this.layoutCorrected, this.layout.actual), Tf(this.layoutCorrected, this.treeScale, this.path, !!this.resumingFrom || this !== f);
|
|
4298
4298
|
var d = f.target;
|
|
4299
4299
|
if (d) {
|
|
4300
|
-
this.projectionDelta || (this.projectionDelta =
|
|
4300
|
+
this.projectionDelta || (this.projectionDelta = fe(), this.projectionDeltaWithTransform = fe());
|
|
4301
4301
|
var p = this.treeScale.x, v = this.treeScale.y, m = this.projectionTransform;
|
|
4302
|
-
|
|
4302
|
+
le(this.projectionDelta, this.layoutCorrected, d, this.latestValues), this.projectionTransform = Bo(this.projectionDelta, this.treeScale), (this.projectionTransform !== m || this.treeScale.x !== p || this.treeScale.y !== v) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", d));
|
|
4303
4303
|
}
|
|
4304
4304
|
}
|
|
4305
4305
|
}, i.prototype.hide = function() {
|
|
@@ -4312,17 +4312,17 @@ function Ea(t) {
|
|
|
4312
4312
|
}, i.prototype.setAnimationOrigin = function(s, u) {
|
|
4313
4313
|
var l = this, c;
|
|
4314
4314
|
u === void 0 && (u = !1);
|
|
4315
|
-
var f = this.snapshot, d = (f == null ? void 0 : f.latestValues) || {}, p = b({}, this.latestValues), v =
|
|
4315
|
+
var f = this.snapshot, d = (f == null ? void 0 : f.latestValues) || {}, p = b({}, this.latestValues), v = fe();
|
|
4316
4316
|
this.relativeTarget = this.relativeTargetOrigin = void 0, this.attemptToResolveRelativeTarget = !u;
|
|
4317
4317
|
var m = lt(), y = f == null ? void 0 : f.isShared, h = (((c = this.getStack()) === null || c === void 0 ? void 0 : c.members.length) || 0) <= 1, S = !!(y && !h && this.options.crossfade === !0 && !this.path.some(Ed));
|
|
4318
4318
|
this.animationProgress = 0, this.mixTargetDelta = function(g) {
|
|
4319
4319
|
var w, x = g / 1e3;
|
|
4320
|
-
|
|
4320
|
+
Fo(v.x, s.x, x), Fo(v.y, s.y, x), l.setTargetDelta(v), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((w = l.relativeParent) === null || w === void 0) && w.layout) && (ce(m, l.layout.actual, l.relativeParent.layout.actual), Cd(l.relativeTarget, l.relativeTargetOrigin, m, x)), y && (l.animationValues = p, sd(p, d, l.latestValues, x, S, h)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = x;
|
|
4321
4321
|
}, this.mixTargetDelta(0);
|
|
4322
4322
|
}, i.prototype.startAnimation = function(s) {
|
|
4323
4323
|
var u = this, l, c;
|
|
4324
|
-
this.notifyListeners("animationStart"), (l = this.currentAnimation) === null || l === void 0 || l.stop(), this.resumingFrom && ((c = this.resumingFrom.currentAnimation) === null || c === void 0 || c.stop()), this.pendingAnimation && (
|
|
4325
|
-
|
|
4324
|
+
this.notifyListeners("animationStart"), (l = this.currentAnimation) === null || l === void 0 || l.stop(), this.resumingFrom && ((c = this.resumingFrom.currentAnimation) === null || c === void 0 || c.stop()), this.pendingAnimation && (Zt.update(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Tt.update(function() {
|
|
4325
|
+
ie.hasAnimatedSinceResize = !0, u.currentAnimation = id(0, Do, b(b({}, s), { onUpdate: function(f) {
|
|
4326
4326
|
var d;
|
|
4327
4327
|
u.mixTargetDelta(f), (d = s.onUpdate) === null || d === void 0 || d.call(s, f);
|
|
4328
4328
|
}, onComplete: function() {
|
|
@@ -4335,10 +4335,10 @@ function Ea(t) {
|
|
|
4335
4335
|
this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0), (s = this.getStack()) === null || s === void 0 || s.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
4336
4336
|
}, i.prototype.finishAnimation = function() {
|
|
4337
4337
|
var s;
|
|
4338
|
-
this.currentAnimation && ((s = this.mixTargetDelta) === null || s === void 0 || s.call(this,
|
|
4338
|
+
this.currentAnimation && ((s = this.mixTargetDelta) === null || s === void 0 || s.call(this, Do), this.currentAnimation.stop()), this.completeAnimation();
|
|
4339
4339
|
}, i.prototype.applyTransformsToTarget = function() {
|
|
4340
4340
|
var s = this.getLead(), u = s.targetWithTransforms, l = s.target, c = s.layout, f = s.latestValues;
|
|
4341
|
-
!u || !l || !c || (yt(u, l),
|
|
4341
|
+
!u || !l || !c || (yt(u, l), Yt(u, f), le(this.projectionDeltaWithTransform, this.layoutCorrected, u, f));
|
|
4342
4342
|
}, i.prototype.registerSharedNode = function(s, u) {
|
|
4343
4343
|
var l, c, f;
|
|
4344
4344
|
this.sharedNodes.has(s) || this.sharedNodes.set(s, new vd());
|
|
@@ -4369,8 +4369,8 @@ function Ea(t) {
|
|
|
4369
4369
|
}, i.prototype.resetRotation = function() {
|
|
4370
4370
|
var s = this.options.visualElement;
|
|
4371
4371
|
if (s) {
|
|
4372
|
-
for (var u = !1, l = {}, c = 0; c <
|
|
4373
|
-
var f =
|
|
4372
|
+
for (var u = !1, l = {}, c = 0; c < Ln.length; c++) {
|
|
4373
|
+
var f = Ln[c], d = "rotate" + f;
|
|
4374
4374
|
s.getStaticValue(d) && (u = !0, l[d] = s.getStaticValue(d), s.setStaticValue(d, 0));
|
|
4375
4375
|
}
|
|
4376
4376
|
if (u) {
|
|
@@ -4396,7 +4396,7 @@ function Ea(t) {
|
|
|
4396
4396
|
var y = this.getLead();
|
|
4397
4397
|
if (!this.projectionDelta || !this.layout || !y.target) {
|
|
4398
4398
|
var h = {};
|
|
4399
|
-
return this.options.layoutId && (h.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, h.pointerEvents = Ne(s.pointerEvents) || ""), this.hasProjected && !
|
|
4399
|
+
return this.options.layoutId && (h.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, h.pointerEvents = Ne(s.pointerEvents) || ""), this.hasProjected && !Ot(this.latestValues) && (h.transform = m ? m({}, "") : "none", this.hasProjected = !1), h;
|
|
4400
4400
|
}
|
|
4401
4401
|
var S = y.animationValues || y.latestValues;
|
|
4402
4402
|
this.applyTransformsToTarget(), v.transform = Bo(this.projectionDeltaWithTransform, this.treeScale, S), m && (v.transform = m(S, v.transform));
|
|
@@ -4404,7 +4404,7 @@ function Ea(t) {
|
|
|
4404
4404
|
v.transformOrigin = "".concat(w.origin * 100, "% ").concat(x.origin * 100, "% 0"), y.animationValues ? v.opacity = y === this ? (f = (c = S.opacity) !== null && c !== void 0 ? c : this.latestValues.opacity) !== null && f !== void 0 ? f : 1 : this.preserveOpacity ? this.latestValues.opacity : S.opacityExit : v.opacity = y === this ? (d = S.opacity) !== null && d !== void 0 ? d : "" : (p = S.opacityExit) !== null && p !== void 0 ? p : 0;
|
|
4405
4405
|
for (var T in ke)
|
|
4406
4406
|
if (S[T] !== void 0) {
|
|
4407
|
-
var R = ke[T],
|
|
4407
|
+
var R = ke[T], B = R.correct, V = R.applyTo, F = B(S[T], y);
|
|
4408
4408
|
if (V)
|
|
4409
4409
|
for (var J = V.length, $ = 0; $ < J; $++)
|
|
4410
4410
|
v[V[$]] = F;
|
|
@@ -4418,7 +4418,7 @@ function Ea(t) {
|
|
|
4418
4418
|
this.root.nodes.forEach(function(s) {
|
|
4419
4419
|
var u;
|
|
4420
4420
|
return (u = s.currentAnimation) === null || u === void 0 ? void 0 : u.stop();
|
|
4421
|
-
}), this.root.nodes.forEach(
|
|
4421
|
+
}), this.root.nodes.forEach(No), this.root.sharedNodes.clear();
|
|
4422
4422
|
}, i;
|
|
4423
4423
|
}()
|
|
4424
4424
|
);
|
|
@@ -4437,18 +4437,18 @@ function yd(t) {
|
|
|
4437
4437
|
var g = a.isShared ? a.measured[S] : a.layout[S], w = Mt(s[S]);
|
|
4438
4438
|
g.max = g.min + w;
|
|
4439
4439
|
});
|
|
4440
|
-
var l =
|
|
4441
|
-
|
|
4442
|
-
var c =
|
|
4443
|
-
a.isShared ?
|
|
4440
|
+
var l = fe();
|
|
4441
|
+
le(l, s, a.layout);
|
|
4442
|
+
var c = fe();
|
|
4443
|
+
a.isShared ? le(c, t.applyTransform(u, !0), a.measured) : le(c, s, a.layout);
|
|
4444
4444
|
var f = !Ta(l), d = !1;
|
|
4445
4445
|
if (!t.resumeFrom && (t.relativeParent = t.getClosestProjectingParent(), t.relativeParent && !t.relativeParent.resumeFrom)) {
|
|
4446
4446
|
var p = t.relativeParent, v = p.snapshot, m = p.layout;
|
|
4447
4447
|
if (v && m) {
|
|
4448
4448
|
var y = lt();
|
|
4449
|
-
|
|
4449
|
+
ce(y, a.layout, v.layout);
|
|
4450
4450
|
var h = lt();
|
|
4451
|
-
|
|
4451
|
+
ce(h, s, m.actual), Ca(y, h) || (d = !0);
|
|
4452
4452
|
}
|
|
4453
4453
|
}
|
|
4454
4454
|
t.notifyListeners("didUpdate", {
|
|
@@ -4465,7 +4465,7 @@ function yd(t) {
|
|
|
4465
4465
|
function Sd(t) {
|
|
4466
4466
|
t.clearSnapshot();
|
|
4467
4467
|
}
|
|
4468
|
-
function
|
|
4468
|
+
function No(t) {
|
|
4469
4469
|
t.clearMeasurements();
|
|
4470
4470
|
}
|
|
4471
4471
|
function bd(t) {
|
|
@@ -4487,14 +4487,14 @@ function xd(t) {
|
|
|
4487
4487
|
function Td(t) {
|
|
4488
4488
|
t.removeLeadSnapshot();
|
|
4489
4489
|
}
|
|
4490
|
-
function
|
|
4490
|
+
function Fo(t, e, n) {
|
|
4491
4491
|
t.translate = tt(e.translate, 0, n), t.scale = tt(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
|
|
4492
4492
|
}
|
|
4493
|
-
function
|
|
4493
|
+
function jo(t, e, n, r) {
|
|
4494
4494
|
t.min = tt(e.min, n.min, r), t.max = tt(e.max, n.max, r);
|
|
4495
4495
|
}
|
|
4496
4496
|
function Cd(t, e, n, r) {
|
|
4497
|
-
|
|
4497
|
+
jo(t.x, e.x, n.x, r), jo(t.y, e.y, n.y, r);
|
|
4498
4498
|
}
|
|
4499
4499
|
function Ed(t) {
|
|
4500
4500
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
@@ -4512,11 +4512,11 @@ function Id(t, e) {
|
|
|
4512
4512
|
var o = n && n !== t.root ? n.instance : document, a = o.querySelector('[data-projection-id="'.concat(e, '"]'));
|
|
4513
4513
|
a && t.mount(a, !0);
|
|
4514
4514
|
}
|
|
4515
|
-
function
|
|
4515
|
+
function ko(t) {
|
|
4516
4516
|
t.min = Math.round(t.min), t.max = Math.round(t.max);
|
|
4517
4517
|
}
|
|
4518
|
-
function
|
|
4519
|
-
|
|
4518
|
+
function $o(t) {
|
|
4519
|
+
ko(t.x), ko(t.y);
|
|
4520
4520
|
}
|
|
4521
4521
|
var Ad = Ea({
|
|
4522
4522
|
attachResizeListener: function(t, e) {
|
|
@@ -4553,10 +4553,10 @@ var Ad = Ea({
|
|
|
4553
4553
|
checkIsScrollRoot: function(t) {
|
|
4554
4554
|
return window.getComputedStyle(t).position === "fixed";
|
|
4555
4555
|
}
|
|
4556
|
-
}), Rd = b(b(b(b({}, vf), Ac),
|
|
4556
|
+
}), Rd = b(b(b(b({}, vf), Ac), Of), od), Ld = /* @__PURE__ */ xu(function(t, e) {
|
|
4557
4557
|
return ll(t, e, Rd, Qf, Md);
|
|
4558
4558
|
});
|
|
4559
|
-
function
|
|
4559
|
+
function Od() {
|
|
4560
4560
|
var t = !1, e = [], n = /* @__PURE__ */ new Set(), r = {
|
|
4561
4561
|
subscribe: function(o) {
|
|
4562
4562
|
return n.add(o), function() {
|
|
@@ -4600,11 +4600,11 @@ function Bd() {
|
|
|
4600
4600
|
};
|
|
4601
4601
|
return r;
|
|
4602
4602
|
}
|
|
4603
|
-
function
|
|
4604
|
-
var t =
|
|
4603
|
+
function Bd() {
|
|
4604
|
+
var t = Pe(Od);
|
|
4605
4605
|
return k(t.mount, []), t;
|
|
4606
4606
|
}
|
|
4607
|
-
var Dd =
|
|
4607
|
+
var Dd = Bd;
|
|
4608
4608
|
const Nd = ({
|
|
4609
4609
|
onClose: t,
|
|
4610
4610
|
threshold: e = 0.08,
|
|
@@ -4674,7 +4674,7 @@ const Nd = ({
|
|
|
4674
4674
|
}, d = () => {
|
|
4675
4675
|
n && n(), i && f();
|
|
4676
4676
|
};
|
|
4677
|
-
if ((t == null ? void 0 : t.length) == 0) return /* @__PURE__ */ P(
|
|
4677
|
+
if ((t == null ? void 0 : t.length) == 0) return /* @__PURE__ */ P(Xn, {});
|
|
4678
4678
|
const p = a ? ({ children: v }) => v : Nd;
|
|
4679
4679
|
return /* @__PURE__ */ q(
|
|
4680
4680
|
"div",
|
|
@@ -4707,7 +4707,7 @@ const Nd = ({
|
|
|
4707
4707
|
]
|
|
4708
4708
|
}
|
|
4709
4709
|
);
|
|
4710
|
-
}, kd = "_story_1f9eg_1", $d = "_BetSlip_Wrapper_1f9eg_13", Ud = "_BetSlip_ButtonWrap_1f9eg_25",
|
|
4710
|
+
}, kd = "_story_1f9eg_1", $d = "_BetSlip_Wrapper_1f9eg_13", Ud = "_BetSlip_ButtonWrap_1f9eg_25", de = {
|
|
4711
4711
|
story: kd,
|
|
4712
4712
|
BetSlip_Wrapper: $d,
|
|
4713
4713
|
BetSlip_ButtonWrap: Ud
|
|
@@ -4730,11 +4730,11 @@ class zd {
|
|
|
4730
4730
|
var y, h, S, g, w, x;
|
|
4731
4731
|
const c = parseFloat((h = (y = l == null ? void 0 : l.odd) == null ? void 0 : y.price) == null ? void 0 : h.toFixed(2)), f = Hd((S = l == null ? void 0 : l.event) == null ? void 0 : S.startDate), d = (w = (g = l == null ? void 0 : l.odd) == null ? void 0 : g.offers) == null ? void 0 : w.find((T) => T.type === 0), v = l.market.name, m = (x = l == null ? void 0 : l.bbSelections) == null ? void 0 : x.map((T) => {
|
|
4732
4732
|
var F, J, $, j, I;
|
|
4733
|
-
const R = (F = T == null ? void 0 : T.odd) == null ? void 0 : F.price,
|
|
4733
|
+
const R = (F = T == null ? void 0 : T.odd) == null ? void 0 : F.price, B = parseFloat(R.toFixed(2)), V = ($ = (J = T == null ? void 0 : T.odd) == null ? void 0 : J.offers) == null ? void 0 : $.find((G) => G.type === 0);
|
|
4734
4734
|
return {
|
|
4735
4735
|
marketName: (j = T == null ? void 0 : T.market) == null ? void 0 : j.name,
|
|
4736
4736
|
name: (I = T == null ? void 0 : T.odd) == null ? void 0 : I.name,
|
|
4737
|
-
cuota:
|
|
4737
|
+
cuota: B,
|
|
4738
4738
|
hasPA: !!V,
|
|
4739
4739
|
paParam: V == null ? void 0 : V.parameter
|
|
4740
4740
|
};
|
|
@@ -4755,24 +4755,22 @@ class zd {
|
|
|
4755
4755
|
return { selections: r, stake: n, cuotaTotal: o, gananciaTotal: a };
|
|
4756
4756
|
}
|
|
4757
4757
|
}
|
|
4758
|
-
const Gd = "
|
|
4758
|
+
const Gd = "_BetSlip_1q2rd_1", Kd = "_BetSlip_Title_1q2rd_14", Yd = "_SelectionItemWrap_1q2rd_21", qd = "_BetSlip_ButtonWrap_1q2rd_35", De = {
|
|
4759
4759
|
BetSlip: Gd,
|
|
4760
4760
|
BetSlip_Title: Kd,
|
|
4761
4761
|
SelectionItemWrap: Yd,
|
|
4762
|
-
BetSlip_ButtonWrap: qd
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
SelectionItem__BB__mn: av
|
|
4775
|
-
}, sv = ({ selection: t }) => {
|
|
4762
|
+
BetSlip_ButtonWrap: qd
|
|
4763
|
+
}, Xd = "_SelectionItem_1ut02_1", Zd = "_SelectionItemGrid_1ut02_11", Jd = "_SelectionItem_name_1ut02_17", Qd = "_SelectionItem_marketName_1ut02_21", tv = "_SelectionItem_hasPA_1ut02_28", ev = "_SelectionItem_fechahora_1ut02_37", nv = "_SelectionItem__Wrap_1ut02_42", rv = "_SelectionItem__BB_1ut02_47", ov = "_SelectionItem__BB__mn_1ut02_80", dt = {
|
|
4764
|
+
SelectionItem: Xd,
|
|
4765
|
+
SelectionItemGrid: Zd,
|
|
4766
|
+
SelectionItem_name: Jd,
|
|
4767
|
+
SelectionItem_marketName: Qd,
|
|
4768
|
+
SelectionItem_hasPA: tv,
|
|
4769
|
+
SelectionItem_fechahora: ev,
|
|
4770
|
+
SelectionItem__Wrap: nv,
|
|
4771
|
+
SelectionItem__BB: rv,
|
|
4772
|
+
SelectionItem__BB__mn: ov
|
|
4773
|
+
}, iv = ({ selection: t }) => {
|
|
4776
4774
|
var e, n;
|
|
4777
4775
|
return /* @__PURE__ */ q("div", { className: dt.SelectionItem, children: [
|
|
4778
4776
|
/* @__PURE__ */ q("div", { className: dt.SelectionItemGrid, children: [
|
|
@@ -4790,17 +4788,15 @@ const Gd = "_BetSlip_10597_1", Kd = "_BetSlip_Title_10597_14", Yd = "_SelectionI
|
|
|
4790
4788
|
t != null && t.subSelections && ((e = t == null ? void 0 : t.subSelections) == null ? void 0 : e.length) > 0 ? /* @__PURE__ */ P("div", { className: dt.SelectionItem__Wrap, children: (n = t.subSelections) == null ? void 0 : n.map((r, o) => /* @__PURE__ */ q("div", { className: dt.SelectionItem__BB, children: [
|
|
4791
4789
|
/* @__PURE__ */ P("div", { className: dt.SelectionItem__BB__mn, children: r == null ? void 0 : r.marketName }),
|
|
4792
4790
|
/* @__PURE__ */ P("div", { children: r == null ? void 0 : r.name })
|
|
4793
|
-
] }, o)) }) : /* @__PURE__ */ P(
|
|
4791
|
+
] }, o)) }) : /* @__PURE__ */ P(Xn, {})
|
|
4794
4792
|
] });
|
|
4795
|
-
},
|
|
4796
|
-
PulseButton:
|
|
4797
|
-
PulseButton_BG:
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
/* @__PURE__ */ P("a", { className: fv.Button, href: e, children: t })
|
|
4803
|
-
] }), dv = ({
|
|
4793
|
+
}, av = "_PulseButton_1sl45_1", sv = "_PulseButton_BG_1sl45_10", uv = "_BetSlip__NextIcon_1sl45_21", Cn = {
|
|
4794
|
+
PulseButton: av,
|
|
4795
|
+
PulseButton_BG: sv,
|
|
4796
|
+
BetSlip__NextIcon: uv
|
|
4797
|
+
}, lv = "_Button_1nr6o_1", cv = {
|
|
4798
|
+
Button: lv
|
|
4799
|
+
}, fv = ({
|
|
4804
4800
|
width: t = "100%",
|
|
4805
4801
|
height: e = "100%",
|
|
4806
4802
|
fill: n = "white",
|
|
@@ -4821,25 +4817,28 @@ const Gd = "_BetSlip_10597_1", Kd = "_BetSlip_Title_10597_14", Yd = "_SelectionI
|
|
|
4821
4817
|
}
|
|
4822
4818
|
)
|
|
4823
4819
|
}
|
|
4824
|
-
),
|
|
4820
|
+
), Va = ({ children: t, href: e }) => /* @__PURE__ */ q("div", { className: Cn.PulseButton, children: [
|
|
4821
|
+
/* @__PURE__ */ P("div", { className: Cn.PulseButton_BG }),
|
|
4822
|
+
/* @__PURE__ */ q("a", { className: cv.Button, href: e, children: [
|
|
4823
|
+
t,
|
|
4824
|
+
/* @__PURE__ */ P("div", { className: Cn.BetSlip__NextIcon, children: /* @__PURE__ */ P(fv, {}) })
|
|
4825
|
+
] })
|
|
4826
|
+
] }), dv = ({ slip: t, title: e }) => {
|
|
4825
4827
|
var n;
|
|
4826
|
-
return /* @__PURE__ */ q("div", { className:
|
|
4827
|
-
/* @__PURE__ */ q("div", { className:
|
|
4828
|
-
e ? /* @__PURE__ */ P("div", { className:
|
|
4829
|
-
(n = t == null ? void 0 : t.selections) == null ? void 0 : n.map((r, o) => /* @__PURE__ */ P(
|
|
4828
|
+
return /* @__PURE__ */ q("div", { className: De.BetSlip, children: [
|
|
4829
|
+
/* @__PURE__ */ q("div", { className: De.SelectionItemWrap, children: [
|
|
4830
|
+
e ? /* @__PURE__ */ P("div", { className: De.BetSlip_Title, children: e }) : null,
|
|
4831
|
+
(n = t == null ? void 0 : t.selections) == null ? void 0 : n.map((r, o) => /* @__PURE__ */ P(iv, { selection: r }, `${Date.now()}-${o}`))
|
|
4830
4832
|
] }),
|
|
4831
|
-
/* @__PURE__ */ P("div", { className: Ut(
|
|
4833
|
+
/* @__PURE__ */ P("div", { className: Ut(De.BetSlip_ButtonWrap), children: /* @__PURE__ */ P(
|
|
4832
4834
|
Va,
|
|
4833
4835
|
{
|
|
4834
4836
|
href: "https://www.apuestatotal.com/apuestas-deportivas/?reservationCode=HHHH",
|
|
4835
|
-
children:
|
|
4836
|
-
t == null ? void 0 : t.cuotaTotal,
|
|
4837
|
-
/* @__PURE__ */ P("div", { className: Gt.BetSlip__NextIcon, children: /* @__PURE__ */ P(dv, {}) })
|
|
4838
|
-
] })
|
|
4837
|
+
children: t == null ? void 0 : t.cuotaTotal
|
|
4839
4838
|
}
|
|
4840
4839
|
) })
|
|
4841
4840
|
] });
|
|
4842
|
-
},
|
|
4841
|
+
}, vv = {
|
|
4843
4842
|
stakes: [
|
|
4844
4843
|
{
|
|
4845
4844
|
value: 10,
|
|
@@ -5037,48 +5036,48 @@ const Gd = "_BetSlip_10597_1", Kd = "_BetSlip_Title_10597_14", Yd = "_SelectionI
|
|
|
5037
5036
|
betType: 1,
|
|
5038
5037
|
stakeAdjustment: { type: 0, value: 0 },
|
|
5039
5038
|
fullCoverData: { type: 1, label: null }
|
|
5040
|
-
},
|
|
5039
|
+
}, pv = ({ story: t }) => {
|
|
5041
5040
|
let e = Uo;
|
|
5042
|
-
return (t == null ? void 0 : t.type) == "promo" && (e = Uo), (t == null ? void 0 : t.type) == "betting" && (e =
|
|
5043
|
-
}, Uo = ({ story: t }) => /* @__PURE__ */ q("div", { className: Ut(
|
|
5041
|
+
return (t == null ? void 0 : t.type) == "promo" && (e = Uo), (t == null ? void 0 : t.type) == "betting" && (e = mv), /* @__PURE__ */ P(e, { story: t });
|
|
5042
|
+
}, Uo = ({ story: t }) => /* @__PURE__ */ q("div", { className: Ut(de.story), children: [
|
|
5044
5043
|
/* @__PURE__ */ P("img", { src: t == null ? void 0 : t.image, alt: "" }),
|
|
5045
|
-
t != null && t.btn_text && (t != null && t.btn_url) ? /* @__PURE__ */ P("div", { className: Ut(
|
|
5044
|
+
t != null && t.btn_text && (t != null && t.btn_url) ? /* @__PURE__ */ P("div", { className: Ut(de.BetSlip_Wrapper), children: /* @__PURE__ */ P("div", { className: de.BetSlip_ButtonWrap, children: /* @__PURE__ */ q(Va, { href: t == null ? void 0 : t.btn_url, children: [
|
|
5046
5045
|
" ",
|
|
5047
5046
|
t == null ? void 0 : t.btn_text
|
|
5048
5047
|
] }) }) }) : null
|
|
5049
|
-
] }),
|
|
5050
|
-
const e =
|
|
5051
|
-
return /* @__PURE__ */ q("div", { className: Ut(
|
|
5048
|
+
] }), mv = ({ story: t }) => {
|
|
5049
|
+
const e = vv;
|
|
5050
|
+
return /* @__PURE__ */ q("div", { className: Ut(de.story), children: [
|
|
5052
5051
|
/* @__PURE__ */ P("img", { src: t == null ? void 0 : t.image, alt: "" }),
|
|
5053
|
-
/* @__PURE__ */ P("div", { className:
|
|
5054
|
-
|
|
5052
|
+
/* @__PURE__ */ P("div", { className: de.BetSlip_Wrapper, children: /* @__PURE__ */ P(
|
|
5053
|
+
dv,
|
|
5055
5054
|
{
|
|
5056
5055
|
slip: zd.fromRaw(e),
|
|
5057
5056
|
title: t == null ? void 0 : t.coupon_title
|
|
5058
5057
|
}
|
|
5059
5058
|
) })
|
|
5060
5059
|
] });
|
|
5061
|
-
},
|
|
5062
|
-
StoryHeaderPlayer:
|
|
5063
|
-
StoryHeaderPlayer__ProfileStory:
|
|
5064
|
-
StoryHeaderPlayer__title:
|
|
5065
|
-
},
|
|
5060
|
+
}, hv = "_StoryHeaderPlayer_1oqtd_1", gv = "_StoryHeaderPlayer__ProfileStory_1oqtd_18", yv = "_StoryHeaderPlayer__title_1oqtd_24", En = {
|
|
5061
|
+
StoryHeaderPlayer: hv,
|
|
5062
|
+
StoryHeaderPlayer__ProfileStory: gv,
|
|
5063
|
+
StoryHeaderPlayer__title: yv
|
|
5064
|
+
}, Sv = ({
|
|
5066
5065
|
story: t,
|
|
5067
5066
|
onProfileClick: e = () => null,
|
|
5068
5067
|
color: n,
|
|
5069
5068
|
image: r
|
|
5070
|
-
}) => /* @__PURE__ */ q("div", { className:
|
|
5069
|
+
}) => /* @__PURE__ */ q("div", { className: En.StoryHeaderPlayer, children: [
|
|
5071
5070
|
/* @__PURE__ */ P(
|
|
5072
5071
|
zo,
|
|
5073
5072
|
{
|
|
5074
|
-
className:
|
|
5073
|
+
className: En.StoryHeaderPlayer__ProfileStory,
|
|
5075
5074
|
onProfileClick: e,
|
|
5076
5075
|
color: n,
|
|
5077
5076
|
image: r
|
|
5078
5077
|
}
|
|
5079
5078
|
),
|
|
5080
|
-
/* @__PURE__ */ P("div", { className:
|
|
5081
|
-
] }),
|
|
5079
|
+
/* @__PURE__ */ P("div", { className: En.StoryHeaderPlayer__title, children: t == null ? void 0 : t.title })
|
|
5080
|
+
] }), bv = ({ container: t = "HOME" } = {}) => {
|
|
5082
5081
|
const e = "apuestotal-stories-" + t;
|
|
5083
5082
|
function n() {
|
|
5084
5083
|
const u = localStorage.getItem(e);
|
|
@@ -5132,8 +5131,8 @@ const Gd = "_BetSlip_10597_1", Kd = "_BetSlip_Title_10597_14", Yd = "_SelectionI
|
|
|
5132
5131
|
sortProfilesBySeenStatus: s
|
|
5133
5132
|
};
|
|
5134
5133
|
};
|
|
5135
|
-
function
|
|
5136
|
-
const n =
|
|
5134
|
+
function Pv(t, e) {
|
|
5135
|
+
const n = ve(() => {
|
|
5137
5136
|
e();
|
|
5138
5137
|
}, [e]);
|
|
5139
5138
|
k(() => {
|
|
@@ -5149,8 +5148,8 @@ function wv(t, e) {
|
|
|
5149
5148
|
};
|
|
5150
5149
|
}, [t, n]);
|
|
5151
5150
|
}
|
|
5152
|
-
function
|
|
5153
|
-
const n = Z([]), r =
|
|
5151
|
+
function wv({ scroll: t, targets: e }) {
|
|
5152
|
+
const n = Z([]), r = ve((a) => {
|
|
5154
5153
|
n.current.forEach(({ el: i, originalOverflow: s }) => {
|
|
5155
5154
|
i.style.overflow = s;
|
|
5156
5155
|
}), n.current = [], a.forEach((i) => {
|
|
@@ -5171,7 +5170,7 @@ function _v({ scroll: t, targets: e }) {
|
|
|
5171
5170
|
}), s.style.overflow = "hidden";
|
|
5172
5171
|
}) : console.warn("useScrollLock: target no soportado", i);
|
|
5173
5172
|
});
|
|
5174
|
-
}, []), o =
|
|
5173
|
+
}, []), o = ve(() => {
|
|
5175
5174
|
n.current.forEach(({ el: a, originalOverflow: i }) => {
|
|
5176
5175
|
a.style.overflow = i;
|
|
5177
5176
|
}), n.current = [];
|
|
@@ -5187,21 +5186,21 @@ function _v({ scroll: t, targets: e }) {
|
|
|
5187
5186
|
}
|
|
5188
5187
|
}, [t]), { disableScroll: r, enableScroll: o };
|
|
5189
5188
|
}
|
|
5190
|
-
const
|
|
5189
|
+
const Vv = ({ className: t = "", data: e, isPortal: n = !0 }) => {
|
|
5191
5190
|
var y;
|
|
5192
5191
|
const [r, o] = Pt(null), a = (h) => o(h), {
|
|
5193
5192
|
markStorySeen: i,
|
|
5194
5193
|
hasSeenAllStories: s,
|
|
5195
5194
|
getNextUnseenStoryIndex: u,
|
|
5196
5195
|
sortProfilesBySeenStatus: l
|
|
5197
|
-
} =
|
|
5196
|
+
} = bv(), c = l(
|
|
5198
5197
|
e == null ? void 0 : e.filter((h) => h.stories.length)
|
|
5199
5198
|
), f = Z(c);
|
|
5200
5199
|
k(() => {
|
|
5201
5200
|
f.current = c;
|
|
5202
5201
|
}, [c]);
|
|
5203
5202
|
const d = e == null ? void 0 : e.find((h) => (h == null ? void 0 : h.id) == r), p = ((y = e == null ? void 0 : e.find((h) => (h == null ? void 0 : h.id) == r)) == null ? void 0 : y.stories) ?? [];
|
|
5204
|
-
|
|
5203
|
+
Pv(r, () => o(null)), wv({
|
|
5205
5204
|
targets: [document],
|
|
5206
5205
|
scroll: r ? "OFF" : "ON"
|
|
5207
5206
|
});
|
|
@@ -5211,10 +5210,10 @@ const Iv = ({ className: t = "", data: e, isPortal: n = !0 }) => {
|
|
|
5211
5210
|
if (!r) return null;
|
|
5212
5211
|
const h = p.map((g) => ({
|
|
5213
5212
|
type: "component",
|
|
5214
|
-
component: ({ pause: w, resume: x, story: T, isPaused: R }) => (i(d == null ? void 0 : d.id, g.id), /* @__PURE__ */ P(
|
|
5213
|
+
component: ({ pause: w, resume: x, story: T, isPaused: R }) => (i(d == null ? void 0 : d.id, g.id), /* @__PURE__ */ P(pv, { story: g })),
|
|
5215
5214
|
duration: g != null && g.duration ? (g == null ? void 0 : g.duration) * 1e3 : 7e3,
|
|
5216
5215
|
header: () => /* @__PURE__ */ P(
|
|
5217
|
-
|
|
5216
|
+
Sv,
|
|
5218
5217
|
{
|
|
5219
5218
|
color: d == null ? void 0 : d.color,
|
|
5220
5219
|
image: d == null ? void 0 : d.avatar,
|
|
@@ -5245,7 +5244,7 @@ const Iv = ({ className: t = "", data: e, isPortal: n = !0 }) => {
|
|
|
5245
5244
|
);
|
|
5246
5245
|
return n ? Ra.createPortal(S, document.body) : S;
|
|
5247
5246
|
};
|
|
5248
|
-
return /* @__PURE__ */ q(
|
|
5247
|
+
return /* @__PURE__ */ q(Xn, { children: [
|
|
5249
5248
|
/* @__PURE__ */ P(
|
|
5250
5249
|
Ps,
|
|
5251
5250
|
{
|
|
@@ -5269,10 +5268,10 @@ const Iv = ({ className: t = "", data: e, isPortal: n = !0 }) => {
|
|
|
5269
5268
|
] });
|
|
5270
5269
|
};
|
|
5271
5270
|
export {
|
|
5272
|
-
|
|
5273
|
-
|
|
5271
|
+
pv as ManagmentStoryComponent,
|
|
5272
|
+
Vv as ProfileStories,
|
|
5274
5273
|
zo as ProfileStory,
|
|
5275
|
-
|
|
5274
|
+
Sv as StoryHeaderPlayer,
|
|
5276
5275
|
jd as StoryPlayer
|
|
5277
5276
|
};
|
|
5278
5277
|
//# sourceMappingURL=index.esm.js.map
|