@gardenfi/garden-book 0.2.8 → 0.2.9
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/ui.cjs.js +6 -6
- package/dist/ui.es.js +403 -358
- package/dist/ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, Fragment as be, jsxs as E } from "react/jsx-runtime";
|
|
2
2
|
import * as M from "react";
|
|
3
|
-
import B, { useState as
|
|
3
|
+
import B, { useState as S1, useEffect as M1, forwardRef as p3, useMemo as ae, useLayoutEffect as U6, useRef as O1, createContext as Ue, useContext as x1, useId as g3, useCallback as $6, Component as H4, useInsertionEffect as W6, Fragment as z6, createElement as T4, Children as P4, isValidElement as E4, useImperativeHandle as k4 } from "react";
|
|
4
4
|
import * as A4 from "react-dom";
|
|
5
5
|
import D4 from "react-dom";
|
|
6
6
|
function G6(e) {
|
|
@@ -26,8 +26,8 @@ const tn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nn =
|
|
|
26
26
|
let [f, h] = d;
|
|
27
27
|
return h === void 0 || (u[f] = h), u;
|
|
28
28
|
}, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, d) => {
|
|
29
|
-
let { class: f, className: h, ...
|
|
30
|
-
return Object.entries(
|
|
29
|
+
let { class: f, className: h, ...g } = d;
|
|
30
|
+
return Object.entries(g).every((w) => {
|
|
31
31
|
let [C, y] = w;
|
|
32
32
|
return Array.isArray(y) ? y.includes({
|
|
33
33
|
...o,
|
|
@@ -199,10 +199,10 @@ function j4(e) {
|
|
|
199
199
|
}
|
|
200
200
|
m === "[" ? u++ : m === "]" && u--;
|
|
201
201
|
}
|
|
202
|
-
const h = c.length === 0 ? l : l.substring(d),
|
|
202
|
+
const h = c.length === 0 ? l : l.substring(d), g = h.startsWith(X6), w = g ? h.substring(1) : h, C = f && f > d ? f - d : void 0;
|
|
203
203
|
return {
|
|
204
204
|
modifiers: c,
|
|
205
|
-
hasImportantModifier:
|
|
205
|
+
hasImportantModifier: g,
|
|
206
206
|
baseClassName: w,
|
|
207
207
|
maybePostfixModifierPosition: C
|
|
208
208
|
};
|
|
@@ -258,10 +258,10 @@ function z4(e, t) {
|
|
|
258
258
|
};
|
|
259
259
|
f = !1;
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const g = U4(l).join(":");
|
|
262
262
|
return {
|
|
263
263
|
isTailwindClass: !0,
|
|
264
|
-
modifierId: c ?
|
|
264
|
+
modifierId: c ? g + X6 : g,
|
|
265
265
|
classGroupId: h,
|
|
266
266
|
originalClassName: s,
|
|
267
267
|
hasPostfixModifier: f
|
|
@@ -371,7 +371,7 @@ function d0(e) {
|
|
|
371
371
|
return t0.test(e);
|
|
372
372
|
}
|
|
373
373
|
function f0() {
|
|
374
|
-
const e = l1("colors"), t = l1("spacing"), n = l1("blur"), r = l1("brightness"), i = l1("borderColor"), o = l1("borderRadius"), s = l1("borderSpacing"), l = l1("borderWidth"), c = l1("contrast"), u = l1("grayscale"), d = l1("hueRotate"), f = l1("invert"), h = l1("gap"),
|
|
374
|
+
const e = l1("colors"), t = l1("spacing"), n = l1("blur"), r = l1("brightness"), i = l1("borderColor"), o = l1("borderRadius"), s = l1("borderSpacing"), l = l1("borderWidth"), c = l1("contrast"), u = l1("grayscale"), d = l1("hueRotate"), f = l1("invert"), h = l1("gap"), g = l1("gradientColorStops"), w = l1("gradientColorStopPositions"), C = l1("inset"), y = l1("margin"), m = l1("opacity"), S = l1("padding"), x = l1("saturate"), H = l1("scale"), k = l1("sepia"), Z = l1("skew"), A = l1("space"), P = l1("translate"), O = () => ["auto", "contain", "none"], N = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto", K, t], I = () => [K, t], _ = () => ["", K1, te], W = () => ["auto", ve, K], e1 = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], q = () => ["solid", "dashed", "dotted", "double", "none"], j = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Q = () => ["", "0", K], X = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], c1 = () => [ve, kt], d1 = () => [ve, K];
|
|
375
375
|
return {
|
|
376
376
|
cacheSize: 500,
|
|
377
377
|
separator: ":",
|
|
@@ -1363,21 +1363,21 @@ function f0() {
|
|
|
1363
1363
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1364
1364
|
*/
|
|
1365
1365
|
"gradient-from": [{
|
|
1366
|
-
from: [
|
|
1366
|
+
from: [g]
|
|
1367
1367
|
}],
|
|
1368
1368
|
/**
|
|
1369
1369
|
* Gradient Color Stops Via
|
|
1370
1370
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1371
1371
|
*/
|
|
1372
1372
|
"gradient-via": [{
|
|
1373
|
-
via: [
|
|
1373
|
+
via: [g]
|
|
1374
1374
|
}],
|
|
1375
1375
|
/**
|
|
1376
1376
|
* Gradient Color Stops To
|
|
1377
1377
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1378
1378
|
*/
|
|
1379
1379
|
"gradient-to": [{
|
|
1380
|
-
to: [
|
|
1380
|
+
to: [g]
|
|
1381
1381
|
}],
|
|
1382
1382
|
// Borders
|
|
1383
1383
|
/**
|
|
@@ -2387,8 +2387,8 @@ function f0() {
|
|
|
2387
2387
|
};
|
|
2388
2388
|
}
|
|
2389
2389
|
const h0 = /* @__PURE__ */ K4(f0), T1 = (...e) => h0(R4(e)), e5 = () => {
|
|
2390
|
-
const [e, t] =
|
|
2391
|
-
return
|
|
2390
|
+
const [e, t] = S1(!1);
|
|
2391
|
+
return M1(() => {
|
|
2392
2392
|
t(!0);
|
|
2393
2393
|
}, []), e;
|
|
2394
2394
|
}, i2 = ({ children: e, fallback: t = null }) => e5() ? /* @__PURE__ */ a(be, { children: e }) : /* @__PURE__ */ a(be, { children: t }), C0 = ({
|
|
@@ -2397,8 +2397,8 @@ const h0 = /* @__PURE__ */ K4(f0), T1 = (...e) => h0(R4(e)), e5 = () => {
|
|
|
2397
2397
|
autoplay: n = !0,
|
|
2398
2398
|
style: r
|
|
2399
2399
|
}) => {
|
|
2400
|
-
const [i, o] =
|
|
2401
|
-
return
|
|
2400
|
+
const [i, o] = S1(null);
|
|
2401
|
+
return M1(() => {
|
|
2402
2402
|
import("./index.es-BsweaPuE.js").then((s) => {
|
|
2403
2403
|
o(() => s.default);
|
|
2404
2404
|
});
|
|
@@ -2830,7 +2830,7 @@ const h0 = /* @__PURE__ */ K4(f0), T1 = (...e) => h0(R4(e)), e5 = () => {
|
|
|
2830
2830
|
colors: s,
|
|
2831
2831
|
...l
|
|
2832
2832
|
}, c) => {
|
|
2833
|
-
const u = n ? Object.entries(n).map(([h,
|
|
2833
|
+
const u = n ? Object.entries(n).map(([h, g]) => `${h}:${g}`).map(
|
|
2834
2834
|
(h) => sn({ breakpointSize: h })
|
|
2835
2835
|
).join(" ") : "", f = (() => {
|
|
2836
2836
|
if (!s || !e) return {};
|
|
@@ -2997,7 +2997,7 @@ function x2(e, t) {
|
|
|
2997
2997
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2998
2998
|
}
|
|
2999
2999
|
function A0(e, t) {
|
|
3000
|
-
var n =
|
|
3000
|
+
var n = S1(function() {
|
|
3001
3001
|
return {
|
|
3002
3002
|
// value
|
|
3003
3003
|
value: e,
|
|
@@ -3136,11 +3136,11 @@ var n5 = B0(), L2 = function() {
|
|
|
3136
3136
|
onScrollCapture: L2,
|
|
3137
3137
|
onWheelCapture: L2,
|
|
3138
3138
|
onTouchMoveCapture: L2
|
|
3139
|
-
}), i = r[0], o = r[1], s = e.forwardProps, l = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar,
|
|
3139
|
+
}), i = r[0], o = r[1], s = e.forwardProps, l = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, g = e.noIsolation, w = e.inert, C = e.allowPinchZoom, y = e.as, m = y === void 0 ? "div" : y, S = e.gapMode, x = T0(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), H = h, k = O0([n, t]), Z = oe(oe({}, x), i);
|
|
3140
3140
|
return M.createElement(
|
|
3141
3141
|
M.Fragment,
|
|
3142
3142
|
null,
|
|
3143
|
-
d && M.createElement(H, { sideCar: n5, removeScrollBar: u, shards: f, noIsolation:
|
|
3143
|
+
d && M.createElement(H, { sideCar: n5, removeScrollBar: u, shards: f, noIsolation: g, inert: w, setCallbacks: o, allowPinchZoom: !!C, lockRef: n, gapMode: S }),
|
|
3144
3144
|
s ? M.cloneElement(M.Children.only(l), oe(oe({}, Z), { ref: k })) : M.createElement(m, oe({}, Z, { className: c, ref: k }), l)
|
|
3145
3145
|
);
|
|
3146
3146
|
});
|
|
@@ -3341,7 +3341,7 @@ var Ee = Y2 ? { passive: !1 } : !1, J0 = function(e) {
|
|
|
3341
3341
|
}, o9 = function(e, t, n, r, i) {
|
|
3342
3342
|
var o = i9(e, window.getComputedStyle(t).direction), s = o * r, l = n.target, c = t.contains(l), u = !1, d = s > 0, f = 0, h = 0;
|
|
3343
3343
|
do {
|
|
3344
|
-
var
|
|
3344
|
+
var g = s5(e, l), w = g[0], C = g[1], y = g[2], m = C - y - o * w;
|
|
3345
3345
|
(w || m) && o5(e, l) && (f += m, h += w), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
|
3346
3346
|
} while (
|
|
3347
3347
|
// portaled content
|
|
@@ -3437,12 +3437,12 @@ function c9(e) {
|
|
|
3437
3437
|
}), document.removeEventListener("wheel", c, Ee), document.removeEventListener("touchmove", c, Ee), document.removeEventListener("touchstart", d, Ee);
|
|
3438
3438
|
};
|
|
3439
3439
|
}, []);
|
|
3440
|
-
var
|
|
3440
|
+
var g = e.removeScrollBar, w = e.inert;
|
|
3441
3441
|
return M.createElement(
|
|
3442
3442
|
M.Fragment,
|
|
3443
3443
|
null,
|
|
3444
3444
|
w ? M.createElement(o, { styles: a9(i) }) : null,
|
|
3445
|
-
|
|
3445
|
+
g ? M.createElement(Q0, { gapMode: e.gapMode }) : null
|
|
3446
3446
|
);
|
|
3447
3447
|
}
|
|
3448
3448
|
function u9(e) {
|
|
@@ -3502,8 +3502,8 @@ const f9 = $e(
|
|
|
3502
3502
|
}
|
|
3503
3503
|
}
|
|
3504
3504
|
), C9 = ({ open: e, onClose: t, disableScrollLock: n, children: r }) => {
|
|
3505
|
-
const [i, o] =
|
|
3506
|
-
|
|
3505
|
+
const [i, o] = S1(!1);
|
|
3506
|
+
M1(() => {
|
|
3507
3507
|
e && o(!0);
|
|
3508
3508
|
}, [e]);
|
|
3509
3509
|
const s = (l) => {
|
|
@@ -3594,13 +3594,13 @@ function v9(e, t = []) {
|
|
|
3594
3594
|
n = [...n, s];
|
|
3595
3595
|
const u = (f) => {
|
|
3596
3596
|
var m;
|
|
3597
|
-
const { scope: h, children:
|
|
3598
|
-
return /* @__PURE__ */ a(C.Provider, { value: y, children:
|
|
3597
|
+
const { scope: h, children: g, ...w } = f, C = ((m = h == null ? void 0 : h[e]) == null ? void 0 : m[c]) || l, y = M.useMemo(() => w, Object.values(w));
|
|
3598
|
+
return /* @__PURE__ */ a(C.Provider, { value: y, children: g });
|
|
3599
3599
|
};
|
|
3600
3600
|
u.displayName = o + "Provider";
|
|
3601
3601
|
function d(f, h) {
|
|
3602
3602
|
var C;
|
|
3603
|
-
const
|
|
3603
|
+
const g = ((C = h == null ? void 0 : h[e]) == null ? void 0 : C[c]) || l, w = M.useContext(g);
|
|
3604
3604
|
if (w) return w;
|
|
3605
3605
|
if (s !== void 0) return s;
|
|
3606
3606
|
throw new Error(`\`${f}\` must be used within \`${o}\``);
|
|
@@ -3799,7 +3799,7 @@ var O9 = "DismissableLayer", X2 = "dismissableLayer.update", R9 = "dismissableLa
|
|
|
3799
3799
|
onInteractOutside: s,
|
|
3800
3800
|
onDismiss: l,
|
|
3801
3801
|
...c
|
|
3802
|
-
} = e, u = M.useContext(l5), [d, f] = M.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [,
|
|
3802
|
+
} = e, u = M.useContext(l5), [d, f] = M.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = M.useState({}), w = ue(t, (A) => f(A)), C = Array.from(u.layers), [y] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), m = C.indexOf(y), S = d ? C.indexOf(d) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, H = S >= m, k = I9((A) => {
|
|
3803
3803
|
const P = A.target, O = [...u.branches].some((N) => N.contains(P));
|
|
3804
3804
|
!H || O || (i == null || i(A), s == null || s(A), A.defaultPrevented || l == null || l());
|
|
3805
3805
|
}, h), Z = N9((A) => {
|
|
@@ -3816,7 +3816,7 @@ var O9 = "DismissableLayer", X2 = "dismissableLayer.update", R9 = "dismissableLa
|
|
|
3816
3816
|
}, [d, h, n, u]), M.useEffect(() => () => {
|
|
3817
3817
|
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), pn());
|
|
3818
3818
|
}, [d, u]), M.useEffect(() => {
|
|
3819
|
-
const A = () =>
|
|
3819
|
+
const A = () => g({});
|
|
3820
3820
|
return document.addEventListener(X2, A), () => document.removeEventListener(X2, A);
|
|
3821
3821
|
}, []), /* @__PURE__ */ a(
|
|
3822
3822
|
J1.div,
|
|
@@ -3908,7 +3908,7 @@ var S2 = "focusScope.autoFocusOnMount", H2 = "focusScope.autoFocusOnUnmount", gn
|
|
|
3908
3908
|
onMountAutoFocus: i,
|
|
3909
3909
|
onUnmountAutoFocus: o,
|
|
3910
3910
|
...s
|
|
3911
|
-
} = e, [l, c] = M.useState(null), u = pt(i), d = pt(o), f = M.useRef(null), h = ue(t, (C) => c(C)),
|
|
3911
|
+
} = e, [l, c] = M.useState(null), u = pt(i), d = pt(o), f = M.useRef(null), h = ue(t, (C) => c(C)), g = M.useRef({
|
|
3912
3912
|
paused: !1,
|
|
3913
3913
|
pause() {
|
|
3914
3914
|
this.paused = !0;
|
|
@@ -3920,11 +3920,11 @@ var S2 = "focusScope.autoFocusOnMount", H2 = "focusScope.autoFocusOnUnmount", gn
|
|
|
3920
3920
|
M.useEffect(() => {
|
|
3921
3921
|
if (r) {
|
|
3922
3922
|
let C = function(x) {
|
|
3923
|
-
if (
|
|
3923
|
+
if (g.paused || !l) return;
|
|
3924
3924
|
const H = x.target;
|
|
3925
3925
|
l.contains(H) ? f.current = H : re(f.current, { select: !0 });
|
|
3926
3926
|
}, y = function(x) {
|
|
3927
|
-
if (
|
|
3927
|
+
if (g.paused || !l) return;
|
|
3928
3928
|
const H = x.relatedTarget;
|
|
3929
3929
|
H !== null && (l.contains(H) || re(f.current, { select: !0 }));
|
|
3930
3930
|
}, m = function(x) {
|
|
@@ -3938,9 +3938,9 @@ var S2 = "focusScope.autoFocusOnMount", H2 = "focusScope.autoFocusOnUnmount", gn
|
|
|
3938
3938
|
document.removeEventListener("focusin", C), document.removeEventListener("focusout", y), S.disconnect();
|
|
3939
3939
|
};
|
|
3940
3940
|
}
|
|
3941
|
-
}, [r, l,
|
|
3941
|
+
}, [r, l, g.paused]), M.useEffect(() => {
|
|
3942
3942
|
if (l) {
|
|
3943
|
-
vn.add(
|
|
3943
|
+
vn.add(g);
|
|
3944
3944
|
const C = document.activeElement;
|
|
3945
3945
|
if (!l.contains(C)) {
|
|
3946
3946
|
const m = new CustomEvent(S2, gn);
|
|
@@ -3949,21 +3949,21 @@ var S2 = "focusScope.autoFocusOnMount", H2 = "focusScope.autoFocusOnUnmount", gn
|
|
|
3949
3949
|
return () => {
|
|
3950
3950
|
l.removeEventListener(S2, u), setTimeout(() => {
|
|
3951
3951
|
const m = new CustomEvent(H2, gn);
|
|
3952
|
-
l.addEventListener(H2, d), l.dispatchEvent(m), m.defaultPrevented || re(C ?? document.body, { select: !0 }), l.removeEventListener(H2, d), vn.remove(
|
|
3952
|
+
l.addEventListener(H2, d), l.dispatchEvent(m), m.defaultPrevented || re(C ?? document.body, { select: !0 }), l.removeEventListener(H2, d), vn.remove(g);
|
|
3953
3953
|
}, 0);
|
|
3954
3954
|
};
|
|
3955
3955
|
}
|
|
3956
|
-
}, [l, u, d,
|
|
3956
|
+
}, [l, u, d, g]);
|
|
3957
3957
|
const w = M.useCallback(
|
|
3958
3958
|
(C) => {
|
|
3959
|
-
if (!n && !r ||
|
|
3959
|
+
if (!n && !r || g.paused) return;
|
|
3960
3960
|
const y = C.key === "Tab" && !C.altKey && !C.ctrlKey && !C.metaKey, m = document.activeElement;
|
|
3961
3961
|
if (y && m) {
|
|
3962
3962
|
const S = C.currentTarget, [x, H] = U9(S);
|
|
3963
3963
|
x && H ? !C.shiftKey && m === H ? (C.preventDefault(), n && re(x, { select: !0 })) : C.shiftKey && m === x && (C.preventDefault(), n && re(H, { select: !0 })) : m === S && C.preventDefault();
|
|
3964
3964
|
}
|
|
3965
3965
|
},
|
|
3966
|
-
[n, r,
|
|
3966
|
+
[n, r, g.paused]
|
|
3967
3967
|
);
|
|
3968
3968
|
return /* @__PURE__ */ a(J1.div, { tabIndex: -1, ...s, ref: h, onKeyDown: w });
|
|
3969
3969
|
});
|
|
@@ -4066,22 +4066,22 @@ function X9(e) {
|
|
|
4066
4066
|
}, [l]), Ct(() => {
|
|
4067
4067
|
const u = r.current, d = i.current;
|
|
4068
4068
|
if (d !== e) {
|
|
4069
|
-
const h = o.current,
|
|
4070
|
-
e ? c("MOUNT") :
|
|
4069
|
+
const h = o.current, g = Ot(u);
|
|
4070
|
+
e ? c("MOUNT") : g === "none" || (u == null ? void 0 : u.display) === "none" ? c("UNMOUNT") : c(d && h !== g ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
4071
4071
|
}
|
|
4072
4072
|
}, [e, c]), Ct(() => {
|
|
4073
4073
|
if (t) {
|
|
4074
4074
|
let u;
|
|
4075
|
-
const d = t.ownerDocument.defaultView ?? window, f = (
|
|
4076
|
-
const C = Ot(r.current).includes(
|
|
4077
|
-
if (
|
|
4075
|
+
const d = t.ownerDocument.defaultView ?? window, f = (g) => {
|
|
4076
|
+
const C = Ot(r.current).includes(g.animationName);
|
|
4077
|
+
if (g.target === t && C && (c("ANIMATION_END"), !i.current)) {
|
|
4078
4078
|
const y = t.style.animationFillMode;
|
|
4079
4079
|
t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
|
|
4080
4080
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = y);
|
|
4081
4081
|
});
|
|
4082
4082
|
}
|
|
4083
|
-
}, h = (
|
|
4084
|
-
|
|
4083
|
+
}, h = (g) => {
|
|
4084
|
+
g.target === t && (o.current = Ot(r.current));
|
|
4085
4085
|
};
|
|
4086
4086
|
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
4087
4087
|
d.clearTimeout(u), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
@@ -4145,7 +4145,7 @@ var J9 = function(e) {
|
|
|
4145
4145
|
d(h);
|
|
4146
4146
|
else
|
|
4147
4147
|
try {
|
|
4148
|
-
var
|
|
4148
|
+
var g = h.getAttribute(r), w = g !== null && g !== "false", C = (Ae.get(h) || 0) + 1, y = (o.get(h) || 0) + 1;
|
|
4149
4149
|
Ae.set(h, C), o.set(h, y), s.push(h), C === 1 && w && Rt.set(h, !0), y === 1 && h.setAttribute(n, "true"), w || h.setAttribute(r, "true");
|
|
4150
4150
|
} catch (m) {
|
|
4151
4151
|
console.error("aria-hidden: cannot operate on ", h, m);
|
|
@@ -4154,8 +4154,8 @@ var J9 = function(e) {
|
|
|
4154
4154
|
};
|
|
4155
4155
|
return d(t), l.clear(), P2++, function() {
|
|
4156
4156
|
s.forEach(function(f) {
|
|
4157
|
-
var h = Ae.get(f) - 1,
|
|
4158
|
-
Ae.set(f, h), o.set(f,
|
|
4157
|
+
var h = Ae.get(f) - 1, g = o.get(f) - 1;
|
|
4158
|
+
Ae.set(f, h), o.set(f, g), h || (Rt.has(f) || f.removeAttribute(r), Rt.delete(f)), g || f.removeAttribute(n);
|
|
4159
4159
|
}), P2--, P2 || (Ae = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Zt = {});
|
|
4160
4160
|
};
|
|
4161
4161
|
}, n7 = function(e, t, n) {
|
|
@@ -4475,7 +4475,7 @@ function A5() {
|
|
|
4475
4475
|
function b3(e) {
|
|
4476
4476
|
return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
|
|
4477
4477
|
}
|
|
4478
|
-
const M7 = 24, S7 = typeof window < "u" ? U6 :
|
|
4478
|
+
const M7 = 24, S7 = typeof window < "u" ? U6 : M1;
|
|
4479
4479
|
function xn(...e) {
|
|
4480
4480
|
return (...t) => {
|
|
4481
4481
|
for (let n of e)
|
|
@@ -4523,8 +4523,8 @@ function P7() {
|
|
|
4523
4523
|
f.preventDefault();
|
|
4524
4524
|
return;
|
|
4525
4525
|
}
|
|
4526
|
-
let h = f.changedTouches[0].pageY,
|
|
4527
|
-
w !== 0 && ((
|
|
4526
|
+
let h = f.changedTouches[0].pageY, g = e.scrollTop, w = e.scrollHeight - e.clientHeight;
|
|
4527
|
+
w !== 0 && ((g <= 0 && h > t || g >= w && h < t) && f.preventDefault(), t = h);
|
|
4528
4528
|
}, i = (f) => {
|
|
4529
4529
|
let h = f.target;
|
|
4530
4530
|
q2(h) && h !== document.activeElement && (f.preventDefault(), h.style.transform = "translateY(-2000px)", h.focus(), requestAnimationFrame(() => {
|
|
@@ -4700,13 +4700,13 @@ function I7({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
4700
4700
|
prop: e,
|
|
4701
4701
|
defaultProp: n == null ? void 0 : n[0],
|
|
4702
4702
|
onChange: t
|
|
4703
|
-
}), [h,
|
|
4703
|
+
}), [h, g] = B.useState(typeof window < "u" ? {
|
|
4704
4704
|
innerWidth: window.innerWidth,
|
|
4705
4705
|
innerHeight: window.innerHeight
|
|
4706
4706
|
} : void 0);
|
|
4707
4707
|
B.useEffect(() => {
|
|
4708
4708
|
function A() {
|
|
4709
|
-
|
|
4709
|
+
g({
|
|
4710
4710
|
innerWidth: window.innerWidth,
|
|
4711
4711
|
innerHeight: window.innerHeight
|
|
4712
4712
|
});
|
|
@@ -4899,8 +4899,8 @@ function j7({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
|
|
|
4899
4899
|
right: "0px",
|
|
4900
4900
|
height: "auto"
|
|
4901
4901
|
}), window.setTimeout(() => window.requestAnimationFrame(() => {
|
|
4902
|
-
const
|
|
4903
|
-
|
|
4902
|
+
const g = h - window.innerHeight;
|
|
4903
|
+
g && c.current >= h && (document.body.style.top = `${-(c.current + g)}px`);
|
|
4904
4904
|
}), 300);
|
|
4905
4905
|
}
|
|
4906
4906
|
}, [
|
|
@@ -4950,7 +4950,7 @@ function j7({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
|
|
|
4950
4950
|
restorePositionSetting: d
|
|
4951
4951
|
};
|
|
4952
4952
|
}
|
|
4953
|
-
function N5({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, snapPoints: o, shouldScaleBackground: s = !1, setBackgroundColorOnScale: l = !0, closeThreshold: c = Z7, scrollLockTimeout: u = _7, dismissible: d = !0, handleOnly: f = !1, fadeFromIndex: h = o && o.length - 1, activeSnapPoint:
|
|
4953
|
+
function N5({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, snapPoints: o, shouldScaleBackground: s = !1, setBackgroundColorOnScale: l = !0, closeThreshold: c = Z7, scrollLockTimeout: u = _7, dismissible: d = !0, handleOnly: f = !1, fadeFromIndex: h = o && o.length - 1, activeSnapPoint: g, setActiveSnapPoint: w, fixed: C, modal: y = !0, onClose: m, nested: S, noBodyStyles: x = !1, direction: H = "bottom", defaultOpen: k = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: A = !1, preventScrollRestoration: P = !1, repositionInputs: O = !0, onAnimationEnd: N, container: U, autoFocus: I = !1 }) {
|
|
4954
4954
|
var _, W;
|
|
4955
4955
|
const [e1 = !1, q] = I5({
|
|
4956
4956
|
defaultProp: k,
|
|
@@ -4962,11 +4962,11 @@ function N5({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
4962
4962
|
document.body.style.pointerEvents = "auto";
|
|
4963
4963
|
}), b || (document.body.style.pointerEvents = "auto");
|
|
4964
4964
|
}
|
|
4965
|
-
}), [j, Y] = B.useState(!1), [Q, X] = B.useState(!1), [c1, d1] = B.useState(!1), o1 = B.useRef(null), s1 = B.useRef(null), y1 = B.useRef(null), G1 = B.useRef(null), N1 = B.useRef(null), P1 = B.useRef(!1),
|
|
4965
|
+
}), [j, Y] = B.useState(!1), [Q, X] = B.useState(!1), [c1, d1] = B.useState(!1), o1 = B.useRef(null), s1 = B.useRef(null), y1 = B.useRef(null), G1 = B.useRef(null), N1 = B.useRef(null), P1 = B.useRef(!1), R1 = B.useRef(null), Z1 = B.useRef(0), h1 = B.useRef(!1), H1 = B.useRef(!k), w1 = B.useRef(0), G = B.useRef(null), Vt = B.useRef(((_ = G.current) == null ? void 0 : _.getBoundingClientRect().height) || 0), Mt = B.useRef(((W = G.current) == null ? void 0 : W.getBoundingClientRect().width) || 0), Ve = B.useRef(0), Me = B.useCallback((b) => {
|
|
4966
4966
|
o && b === he.length - 1 && (s1.current = /* @__PURE__ */ new Date());
|
|
4967
4967
|
}, []), { activeSnapPoint: Xe, activeSnapPointIndex: F1, setActiveSnapPoint: qe, onRelease: ee, snapPointsOffset: he, onDrag: St, shouldFade: Qe, getPercentageDragged: w2 } = I7({
|
|
4968
4968
|
snapPoints: o,
|
|
4969
|
-
activeSnapPointProp:
|
|
4969
|
+
activeSnapPointProp: g,
|
|
4970
4970
|
setActiveSnapPointProp: w,
|
|
4971
4971
|
drawerRef: G,
|
|
4972
4972
|
fadeFromIndex: h,
|
|
@@ -4994,7 +4994,7 @@ function N5({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
4994
4994
|
var v, L;
|
|
4995
4995
|
!d && !o || G.current && !G.current.contains(b.target) || (Vt.current = ((v = G.current) == null ? void 0 : v.getBoundingClientRect().height) || 0, Mt.current = ((L = G.current) == null ? void 0 : L.getBoundingClientRect().width) || 0, X(!0), y1.current = /* @__PURE__ */ new Date(), A5() && window.addEventListener("touchend", () => P1.current = !1, {
|
|
4996
4996
|
once: !0
|
|
4997
|
-
}), b.target.setPointerCapture(b.pointerId),
|
|
4997
|
+
}), b.target.setPointerCapture(b.pointerId), Z1.current = g1(H) ? b.pageY : b.pageX);
|
|
4998
4998
|
}
|
|
4999
4999
|
function Tt(b, v) {
|
|
5000
5000
|
var L;
|
|
@@ -5025,7 +5025,7 @@ function N5({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
5025
5025
|
}
|
|
5026
5026
|
function Pt(b) {
|
|
5027
5027
|
if (G.current && Q) {
|
|
5028
|
-
const v = H === "bottom" || H === "right" ? 1 : -1, L = (
|
|
5028
|
+
const v = H === "bottom" || H === "right" ? 1 : -1, L = (Z1.current - (g1(H) ? b.pageY : b.pageX)) * v, D = L > 0, R = o && !d && !D;
|
|
5029
5029
|
if (R && F1 === 0) return;
|
|
5030
5030
|
const F = Math.abs(L), z = document.querySelector("[data-vaul-drawer-wrapper]"), n1 = H === "bottom" || H === "top" ? Vt.current : Mt.current;
|
|
5031
5031
|
let J = F / n1;
|
|
@@ -5138,7 +5138,7 @@ function N5({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
5138
5138
|
G.current.classList.remove(D2), P1.current = !1, X(!1), G1.current = /* @__PURE__ */ new Date();
|
|
5139
5139
|
const v = Bt(G.current, H);
|
|
5140
5140
|
if (!b || !Tt(b.target, !1) || !v || Number.isNaN(v) || y1.current === null) return;
|
|
5141
|
-
const L = G1.current.getTime() - y1.current.getTime(), D =
|
|
5141
|
+
const L = G1.current.getTime() - y1.current.getTime(), D = Z1.current - (g1(H) ? b.pageY : b.pageX), R = Math.abs(D) / L;
|
|
5142
5142
|
if (R > 0.05 && (d1(!0), setTimeout(() => {
|
|
5143
5143
|
d1(!1);
|
|
5144
5144
|
}, 200)), o) {
|
|
@@ -5177,10 +5177,10 @@ function N5({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
5177
5177
|
]);
|
|
5178
5178
|
function T(b) {
|
|
5179
5179
|
const v = b ? (window.innerWidth - Ce) / window.innerWidth : 1, L = b ? -Ce : 0;
|
|
5180
|
-
|
|
5180
|
+
R1.current && window.clearTimeout(R1.current), m1(G.current, {
|
|
5181
5181
|
transition: `transform ${f1.DURATION}s cubic-bezier(${f1.EASE.join(",")})`,
|
|
5182
5182
|
transform: g1(H) ? `scale(${v}) translate3d(0, ${L}px, 0)` : `scale(${v}) translate3d(${L}px, 0, 0)`
|
|
5183
|
-
}), !b && G.current && (
|
|
5183
|
+
}), !b && G.current && (R1.current = setTimeout(() => {
|
|
5184
5184
|
const D = Bt(G.current, H);
|
|
5185
5185
|
m1(G.current, {
|
|
5186
5186
|
transition: "none",
|
|
@@ -5188,7 +5188,7 @@ function N5({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
5188
5188
|
});
|
|
5189
5189
|
}, 500));
|
|
5190
5190
|
}
|
|
5191
|
-
function
|
|
5191
|
+
function p(b, v) {
|
|
5192
5192
|
if (v < 0) return;
|
|
5193
5193
|
const L = (window.innerWidth - Ce) / window.innerWidth, D = L + v * (1 - L), R = -Ce + v * Ce;
|
|
5194
5194
|
m1(G.current, {
|
|
@@ -5233,7 +5233,7 @@ function N5({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
5233
5233
|
isDragging: Q,
|
|
5234
5234
|
shouldFade: Qe,
|
|
5235
5235
|
closeDrawer: j1,
|
|
5236
|
-
onNestedDrag:
|
|
5236
|
+
onNestedDrag: p,
|
|
5237
5237
|
onNestedOpenChange: T,
|
|
5238
5238
|
onNestedRelease: V,
|
|
5239
5239
|
keyboardIsOpen: h1,
|
|
@@ -5268,7 +5268,7 @@ const F5 = /* @__PURE__ */ B.forwardRef(function({ ...e }, t) {
|
|
|
5268
5268
|
});
|
|
5269
5269
|
F5.displayName = "Drawer.Overlay";
|
|
5270
5270
|
const j5 = /* @__PURE__ */ B.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, i) {
|
|
5271
|
-
const { drawerRef: o, onPress: s, onRelease: l, onDrag: c, keyboardIsOpen: u, snapPointsOffset: d, activeSnapPointIndex: f, modal: h, isOpen:
|
|
5271
|
+
const { drawerRef: o, onPress: s, onRelease: l, onDrag: c, keyboardIsOpen: u, snapPointsOffset: d, activeSnapPointIndex: f, modal: h, isOpen: g, direction: w, snapPoints: C, container: y, handleOnly: m, shouldAnimate: S, autoFocus: x } = ze(), [H, k] = B.useState(!1), Z = O5(i, o), A = B.useRef(null), P = B.useRef(null), O = B.useRef(!1), N = C && C.length > 0;
|
|
5272
5272
|
F7();
|
|
5273
5273
|
const U = (_, W, e1 = 0) => {
|
|
5274
5274
|
if (O.current) return !0;
|
|
@@ -5295,7 +5295,7 @@ const j5 = /* @__PURE__ */ B.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
5295
5295
|
"data-vaul-drawer-direction": w,
|
|
5296
5296
|
"data-vaul-drawer": "",
|
|
5297
5297
|
"data-vaul-delayed-snap-points": H ? "true" : "false",
|
|
5298
|
-
"data-vaul-snap-points":
|
|
5298
|
+
"data-vaul-snap-points": g && N ? "true" : "false",
|
|
5299
5299
|
"data-vaul-custom-container": y ? "true" : "false",
|
|
5300
5300
|
"data-vaul-animate": S != null && S.current ? "true" : "false",
|
|
5301
5301
|
...r,
|
|
@@ -5347,7 +5347,7 @@ const j5 = /* @__PURE__ */ B.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
5347
5347
|
});
|
|
5348
5348
|
j5.displayName = "Drawer.Content";
|
|
5349
5349
|
const U7 = 250, $7 = 120, U5 = /* @__PURE__ */ B.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
|
|
5350
|
-
const { closeDrawer: i, isDragging: o, snapPoints: s, activeSnapPoint: l, setActiveSnapPoint: c, dismissible: u, handleOnly: d, isOpen: f, onPress: h, onDrag:
|
|
5350
|
+
const { closeDrawer: i, isDragging: o, snapPoints: s, activeSnapPoint: l, setActiveSnapPoint: c, dismissible: u, handleOnly: d, isOpen: f, onPress: h, onDrag: g } = ze(), w = B.useRef(null), C = B.useRef(!1);
|
|
5351
5351
|
function y() {
|
|
5352
5352
|
if (C.current) {
|
|
5353
5353
|
x();
|
|
@@ -5390,7 +5390,7 @@ const U7 = 250, $7 = 120, U5 = /* @__PURE__ */ B.forwardRef(function({ preventCy
|
|
|
5390
5390
|
d && h(H), S();
|
|
5391
5391
|
},
|
|
5392
5392
|
onPointerMove: (H) => {
|
|
5393
|
-
d &&
|
|
5393
|
+
d && g(H);
|
|
5394
5394
|
},
|
|
5395
5395
|
// onPointerUp is already handled by the content component
|
|
5396
5396
|
ref: r,
|
|
@@ -9033,22 +9033,22 @@ const lu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ a(
|
|
|
9033
9033
|
onClose: i = !1,
|
|
9034
9034
|
...o
|
|
9035
9035
|
}) => {
|
|
9036
|
-
const [s, l] =
|
|
9036
|
+
const [s, l] = S1(!0), [c, u] = S1(!0), d = O1(null), f = O1(null), h = () => {
|
|
9037
9037
|
if (d.current) {
|
|
9038
|
-
const { scrollTop:
|
|
9039
|
-
l(
|
|
9038
|
+
const { scrollTop: g, scrollHeight: w, clientHeight: C } = d.current;
|
|
9039
|
+
l(g + C < w), u(g > 0);
|
|
9040
9040
|
}
|
|
9041
9041
|
};
|
|
9042
|
-
return
|
|
9042
|
+
return M1(() => {
|
|
9043
9043
|
i && d.current && (d.current.scrollTop = 0);
|
|
9044
|
-
}, [i]),
|
|
9045
|
-
const
|
|
9046
|
-
if (!
|
|
9044
|
+
}, [i]), M1(() => {
|
|
9045
|
+
const g = d.current, w = f.current;
|
|
9046
|
+
if (!g || !w) return;
|
|
9047
9047
|
h();
|
|
9048
9048
|
const C = new ResizeObserver(() => {
|
|
9049
9049
|
h();
|
|
9050
9050
|
});
|
|
9051
|
-
return C.observe(
|
|
9051
|
+
return C.observe(g), C.observe(w), () => {
|
|
9052
9052
|
C.disconnect();
|
|
9053
9053
|
};
|
|
9054
9054
|
}, []), /* @__PURE__ */ E(
|
|
@@ -9173,7 +9173,7 @@ const L3 = [
|
|
|
9173
9173
|
"skew",
|
|
9174
9174
|
"skewX",
|
|
9175
9175
|
"skewY"
|
|
9176
|
-
], de = new Set(wt),
|
|
9176
|
+
], de = new Set(wt), _1 = (e) => e * 1e3, U1 = (e) => e / 1e3, ci = {
|
|
9177
9177
|
type: "spring",
|
|
9178
9178
|
stiffness: 500,
|
|
9179
9179
|
damping: 25,
|
|
@@ -9222,8 +9222,8 @@ function mi(e) {
|
|
|
9222
9222
|
* Schedule a process to run on the next frame.
|
|
9223
9223
|
*/
|
|
9224
9224
|
schedule: (u, d = !1, f = !1) => {
|
|
9225
|
-
const
|
|
9226
|
-
return d && o.add(u),
|
|
9225
|
+
const g = f && r ? t : n;
|
|
9226
|
+
return d && o.add(u), g.has(u) || g.add(u), u;
|
|
9227
9227
|
},
|
|
9228
9228
|
/**
|
|
9229
9229
|
* Cancel the provided callback from running on the next frame.
|
|
@@ -9264,11 +9264,11 @@ function W5(e, t) {
|
|
|
9264
9264
|
delta: 0,
|
|
9265
9265
|
timestamp: 0,
|
|
9266
9266
|
isProcessing: !1
|
|
9267
|
-
}, o = () => n = !0, s = Nt.reduce((m, S) => (m[S] = mi(o), m), {}), { read: l, resolveKeyframes: c, update: u, preRender: d, render: f, postRender: h } = s,
|
|
9267
|
+
}, o = () => n = !0, s = Nt.reduce((m, S) => (m[S] = mi(o), m), {}), { read: l, resolveKeyframes: c, update: u, preRender: d, render: f, postRender: h } = s, g = () => {
|
|
9268
9268
|
const m = performance.now();
|
|
9269
|
-
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(m - i.timestamp, vi), 1), i.timestamp = m, i.isProcessing = !0, l.process(i), c.process(i), u.process(i), d.process(i), f.process(i), h.process(i), i.isProcessing = !1, n && t && (r = !1, e(
|
|
9269
|
+
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(m - i.timestamp, vi), 1), i.timestamp = m, i.isProcessing = !0, l.process(i), c.process(i), u.process(i), d.process(i), f.process(i), h.process(i), i.isProcessing = !1, n && t && (r = !1, e(g));
|
|
9270
9270
|
}, w = () => {
|
|
9271
|
-
n = !0, r = !0, i.isProcessing || e(
|
|
9271
|
+
n = !0, r = !0, i.isProcessing || e(g);
|
|
9272
9272
|
};
|
|
9273
9273
|
return { schedule: Nt.reduce((m, S) => {
|
|
9274
9274
|
const x = s[S];
|
|
@@ -9825,14 +9825,14 @@ function dr(e, t, n) {
|
|
|
9825
9825
|
const Z2 = 1e-3, t8 = 0.01, Rn = 10, n8 = 0.05, r8 = 1;
|
|
9826
9826
|
function i8({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1 }) {
|
|
9827
9827
|
let i, o;
|
|
9828
|
-
Ge(e <=
|
|
9828
|
+
Ge(e <= _1(Rn), "Spring duration must be 10 seconds or less");
|
|
9829
9829
|
let s = 1 - t;
|
|
9830
9830
|
s = le(n8, r8, s), e = le(t8, Rn, U1(e)), s < 1 ? (i = (u) => {
|
|
9831
|
-
const d = u * s, f = d * e, h = d - n,
|
|
9832
|
-
return Z2 - h /
|
|
9831
|
+
const d = u * s, f = d * e, h = d - n, g = i3(u, s), w = Math.exp(-f);
|
|
9832
|
+
return Z2 - h / g * w;
|
|
9833
9833
|
}, o = (u) => {
|
|
9834
|
-
const f = u * s * e, h = f * n + n,
|
|
9835
|
-
return (-i(u) + Z2 > 0 ? -1 : 1) * ((h -
|
|
9834
|
+
const f = u * s * e, h = f * n + n, g = Math.pow(s, 2) * Math.pow(u, 2) * e, w = Math.exp(-f), C = i3(Math.pow(u, 2), s);
|
|
9835
|
+
return (-i(u) + Z2 > 0 ? -1 : 1) * ((h - g) * w) / C;
|
|
9836
9836
|
}) : (i = (u) => {
|
|
9837
9837
|
const d = Math.exp(-u * e), f = (u - n) * e + 1;
|
|
9838
9838
|
return -Z2 + d * f;
|
|
@@ -9841,7 +9841,7 @@ function i8({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1
|
|
|
9841
9841
|
return d * f;
|
|
9842
9842
|
});
|
|
9843
9843
|
const l = 5 / e, c = s8(i, o, l);
|
|
9844
|
-
if (e =
|
|
9844
|
+
if (e = _1(e), isNaN(c))
|
|
9845
9845
|
return {
|
|
9846
9846
|
stiffness: 100,
|
|
9847
9847
|
damping: 10,
|
|
@@ -9893,22 +9893,22 @@ function A3({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
9893
9893
|
const i = e[0], o = e[e.length - 1], s = { done: !1, value: i }, { stiffness: l, damping: c, mass: u, duration: d, velocity: f, isResolvedFromDuration: h } = c8({
|
|
9894
9894
|
...r,
|
|
9895
9895
|
velocity: -U1(r.velocity || 0)
|
|
9896
|
-
}),
|
|
9896
|
+
}), g = f || 0, w = c / (2 * Math.sqrt(l * u)), C = o - i, y = U1(Math.sqrt(l / u)), m = Math.abs(C) < 5;
|
|
9897
9897
|
n || (n = m ? 0.01 : 2), t || (t = m ? 5e-3 : 0.5);
|
|
9898
9898
|
let S;
|
|
9899
9899
|
if (w < 1) {
|
|
9900
9900
|
const x = i3(y, w);
|
|
9901
9901
|
S = (H) => {
|
|
9902
9902
|
const k = Math.exp(-w * y * H);
|
|
9903
|
-
return o - k * ((
|
|
9903
|
+
return o - k * ((g + w * y * C) / x * Math.sin(x * H) + C * Math.cos(x * H));
|
|
9904
9904
|
};
|
|
9905
9905
|
} else if (w === 1)
|
|
9906
|
-
S = (x) => o - Math.exp(-y * x) * (C + (
|
|
9906
|
+
S = (x) => o - Math.exp(-y * x) * (C + (g + y * C) * x);
|
|
9907
9907
|
else {
|
|
9908
9908
|
const x = y * Math.sqrt(w * w - 1);
|
|
9909
9909
|
S = (H) => {
|
|
9910
9910
|
const k = Math.exp(-w * y * H), Z = Math.min(x * H, 300);
|
|
9911
|
-
return o - k * ((
|
|
9911
|
+
return o - k * ((g + w * y * C) * Math.sinh(Z) + x * C * Math.cosh(Z)) / x;
|
|
9912
9912
|
};
|
|
9913
9913
|
}
|
|
9914
9914
|
return {
|
|
@@ -9919,7 +9919,7 @@ function A3({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
9919
9919
|
s.done = x >= d;
|
|
9920
9920
|
else {
|
|
9921
9921
|
let k = 0;
|
|
9922
|
-
w < 1 && (k = x === 0 ?
|
|
9922
|
+
w < 1 && (k = x === 0 ? _1(g) : dr(S, x, H));
|
|
9923
9923
|
const Z = Math.abs(k) <= n, A = Math.abs(o - H) <= t;
|
|
9924
9924
|
s.done = Z && A;
|
|
9925
9925
|
}
|
|
@@ -9931,7 +9931,7 @@ function _n({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
9931
9931
|
const f = e[0], h = {
|
|
9932
9932
|
done: !1,
|
|
9933
9933
|
value: f
|
|
9934
|
-
},
|
|
9934
|
+
}, g = (P) => l !== void 0 && P < l || c !== void 0 && P > c, w = (P) => l === void 0 ? c : c === void 0 || Math.abs(l - P) < Math.abs(c - P) ? l : c;
|
|
9935
9935
|
let C = n * t;
|
|
9936
9936
|
const y = f + C, m = s === void 0 ? y : s(y);
|
|
9937
9937
|
m !== y && (C = m - f);
|
|
@@ -9941,7 +9941,7 @@ function _n({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
9941
9941
|
};
|
|
9942
9942
|
let k, Z;
|
|
9943
9943
|
const A = (P) => {
|
|
9944
|
-
|
|
9944
|
+
g(h.value) && (k = P, Z = A3({
|
|
9945
9945
|
keyframes: [h.value, w(h.value)],
|
|
9946
9946
|
velocity: dr(x, P, h.value),
|
|
9947
9947
|
// TODO: This should be passing * 1000
|
|
@@ -10192,14 +10192,14 @@ class Z3 extends cr {
|
|
|
10192
10192
|
keyframes: [...t].reverse(),
|
|
10193
10193
|
velocity: -s
|
|
10194
10194
|
})), d.calculatedDuration === null && (d.calculatedDuration = Vr(d));
|
|
10195
|
-
const { calculatedDuration: f } = d, h = f + i,
|
|
10195
|
+
const { calculatedDuration: f } = d, h = f + i, g = h * (r + 1) - i;
|
|
10196
10196
|
return {
|
|
10197
10197
|
generator: d,
|
|
10198
10198
|
mirroredGenerator: u,
|
|
10199
10199
|
mapPercentToKeyframes: c,
|
|
10200
10200
|
calculatedDuration: f,
|
|
10201
10201
|
resolvedDuration: h,
|
|
10202
|
-
totalDuration:
|
|
10202
|
+
totalDuration: g
|
|
10203
10203
|
};
|
|
10204
10204
|
}
|
|
10205
10205
|
onPostResolved() {
|
|
@@ -10215,15 +10215,15 @@ class Z3 extends cr {
|
|
|
10215
10215
|
const { finalKeyframe: i, generator: o, mirroredGenerator: s, mapPercentToKeyframes: l, keyframes: c, calculatedDuration: u, totalDuration: d, resolvedDuration: f } = r;
|
|
10216
10216
|
if (this.startTime === null)
|
|
10217
10217
|
return o.next(0);
|
|
10218
|
-
const { delay: h, repeat:
|
|
10218
|
+
const { delay: h, repeat: g, repeatType: w, repeatDelay: C, onUpdate: y } = this.options;
|
|
10219
10219
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - d / this.speed, this.startTime)), n ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
|
|
10220
10220
|
const m = this.currentTime - h * (this.speed >= 0 ? 1 : -1), S = this.speed >= 0 ? m < 0 : m > d;
|
|
10221
10221
|
this.currentTime = Math.max(m, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = d);
|
|
10222
10222
|
let x = this.currentTime, H = o;
|
|
10223
|
-
if (
|
|
10223
|
+
if (g) {
|
|
10224
10224
|
const P = Math.min(this.currentTime, d) / f;
|
|
10225
10225
|
let O = Math.floor(P), N = P % 1;
|
|
10226
|
-
!N && P >= 1 && (N = 1), N === 1 && O--, O = Math.min(O,
|
|
10226
|
+
!N && P >= 1 && (N = 1), N === 1 && O--, O = Math.min(O, g + 1), !!(O % 2) && (w === "reverse" ? (N = 1 - N, C && (N -= C / f)) : w === "mirror" && (H = s)), x = le(0, 1, N) * f;
|
|
10227
10227
|
}
|
|
10228
10228
|
const k = S ? { done: !1, value: c[0] } : H.next(x);
|
|
10229
10229
|
l && (k.value = l(k.value));
|
|
@@ -10240,7 +10240,7 @@ class Z3 extends cr {
|
|
|
10240
10240
|
return U1(this.currentTime);
|
|
10241
10241
|
}
|
|
10242
10242
|
set time(t) {
|
|
10243
|
-
t =
|
|
10243
|
+
t = _1(t), this.currentTime = t, this.holdTime !== null || this.speed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.speed);
|
|
10244
10244
|
}
|
|
10245
10245
|
get speed() {
|
|
10246
10246
|
return this.playbackSpeed;
|
|
@@ -10369,7 +10369,7 @@ class Fn extends cr {
|
|
|
10369
10369
|
if (!(!((r = c.owner) === null || r === void 0) && r.current))
|
|
10370
10370
|
return !1;
|
|
10371
10371
|
if (_8(this.options)) {
|
|
10372
|
-
const { onComplete: h, onUpdate:
|
|
10372
|
+
const { onComplete: h, onUpdate: g, motionValue: w, element: C, ...y } = this.options, m = B8(t, y);
|
|
10373
10373
|
t = m.keyframes, t.length === 1 && (t[1] = t[0]), i = m.duration, o = m.times, s = m.ease, l = "keyframes";
|
|
10374
10374
|
}
|
|
10375
10375
|
const f = O8(c.owner.current, u, t, { ...this.options, duration: i, times: o, ease: s });
|
|
@@ -10404,7 +10404,7 @@ class Fn extends cr {
|
|
|
10404
10404
|
if (!n)
|
|
10405
10405
|
return;
|
|
10406
10406
|
const { animation: r } = n;
|
|
10407
|
-
r.currentTime =
|
|
10407
|
+
r.currentTime = _1(t);
|
|
10408
10408
|
}
|
|
10409
10409
|
get speed() {
|
|
10410
10410
|
const { resolved: t } = this;
|
|
@@ -10477,15 +10477,15 @@ class Fn extends cr {
|
|
|
10477
10477
|
if (n.playState === "idle" || n.playState === "finished")
|
|
10478
10478
|
return;
|
|
10479
10479
|
if (this.time) {
|
|
10480
|
-
const { motionValue: u, onUpdate: d, onComplete: f, element: h, ...
|
|
10481
|
-
...
|
|
10480
|
+
const { motionValue: u, onUpdate: d, onComplete: f, element: h, ...g } = this.options, w = new Z3({
|
|
10481
|
+
...g,
|
|
10482
10482
|
keyframes: r,
|
|
10483
10483
|
duration: i,
|
|
10484
10484
|
type: o,
|
|
10485
10485
|
ease: s,
|
|
10486
10486
|
times: l,
|
|
10487
10487
|
isGenerator: !0
|
|
10488
|
-
}), C =
|
|
10488
|
+
}), C = _1(this.time);
|
|
10489
10489
|
u.setWithVelocity(w.sample(C - e2).value, w.sample(C).value, e2);
|
|
10490
10490
|
}
|
|
10491
10491
|
const { onStop: c } = this.options;
|
|
@@ -10589,15 +10589,15 @@ class B3 {
|
|
|
10589
10589
|
const I3 = (e, t, n, r = {}, i, o, s) => (l) => {
|
|
10590
10590
|
const c = M3(r, e) || {}, u = c.delay || r.delay || 0;
|
|
10591
10591
|
let { elapsed: d = 0 } = r;
|
|
10592
|
-
d = d -
|
|
10592
|
+
d = d - _1(u);
|
|
10593
10593
|
let f = {
|
|
10594
10594
|
keyframes: Array.isArray(n) ? n : [null, n],
|
|
10595
10595
|
ease: "easeOut",
|
|
10596
10596
|
velocity: t.getVelocity(),
|
|
10597
10597
|
...c,
|
|
10598
10598
|
delay: -d,
|
|
10599
|
-
onUpdate: (
|
|
10600
|
-
t.set(
|
|
10599
|
+
onUpdate: (g) => {
|
|
10600
|
+
t.set(g), c.onUpdate && c.onUpdate(g);
|
|
10601
10601
|
},
|
|
10602
10602
|
onComplete: () => {
|
|
10603
10603
|
l(), c.onComplete && c.onComplete(), s && s();
|
|
@@ -10610,13 +10610,13 @@ const I3 = (e, t, n, r = {}, i, o, s) => (l) => {
|
|
|
10610
10610
|
Ci(c) || (f = {
|
|
10611
10611
|
...f,
|
|
10612
10612
|
...hi(e, f)
|
|
10613
|
-
}), f.duration && (f.duration =
|
|
10613
|
+
}), f.duration && (f.duration = _1(f.duration)), f.repeatDelay && (f.repeatDelay = _1(f.repeatDelay)), f.from !== void 0 && (f.keyframes[0] = f.from);
|
|
10614
10614
|
let h = !1;
|
|
10615
10615
|
if ((f.type === !1 || f.duration === 0 && !f.repeatDelay) && (f.duration = 0, f.delay === 0 && (h = !0)), h && !o && t.get() !== void 0) {
|
|
10616
|
-
const
|
|
10617
|
-
if (
|
|
10616
|
+
const g = f2(f.keyframes, c);
|
|
10617
|
+
if (g !== void 0)
|
|
10618
10618
|
return r1.update(() => {
|
|
10619
|
-
f.onUpdate(
|
|
10619
|
+
f.onUpdate(g), f.onComplete();
|
|
10620
10620
|
}), new B3([]);
|
|
10621
10621
|
}
|
|
10622
10622
|
return !o && Fn.supports(f) ? new Fn(f) : new Z3(f);
|
|
@@ -10920,8 +10920,8 @@ function F3(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
10920
10920
|
r && (s = r);
|
|
10921
10921
|
const u = [], d = i && e.animationState && e.animationState.getState()[i];
|
|
10922
10922
|
for (const f in c) {
|
|
10923
|
-
const h = e.getValue(f, (o = e.latestValues[f]) !== null && o !== void 0 ? o : null),
|
|
10924
|
-
if (
|
|
10923
|
+
const h = e.getValue(f, (o = e.latestValues[f]) !== null && o !== void 0 ? o : null), g = c[f];
|
|
10924
|
+
if (g === void 0 || d && Y8(d, f))
|
|
10925
10925
|
continue;
|
|
10926
10926
|
const w = {
|
|
10927
10927
|
delay: n,
|
|
@@ -10935,7 +10935,7 @@ function F3(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
10935
10935
|
S !== null && (w.startTime = S, C = !0);
|
|
10936
10936
|
}
|
|
10937
10937
|
}
|
|
10938
|
-
h.start(I3(f, h,
|
|
10938
|
+
h.start(I3(f, h, g, e.shouldReduceMotion && de.has(f) ? { type: !1 } : w, e, C, l3(e, f)));
|
|
10939
10939
|
const y = h.animation;
|
|
10940
10940
|
y && u.push(y);
|
|
10941
10941
|
}
|
|
@@ -11013,7 +11013,7 @@ function ro(e) {
|
|
|
11013
11013
|
var f;
|
|
11014
11014
|
const h = d2(e, d, c === "exit" ? (f = e.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
|
11015
11015
|
if (h) {
|
|
11016
|
-
const { transition:
|
|
11016
|
+
const { transition: g, transitionEnd: w, ...C } = h;
|
|
11017
11017
|
u = { ...u, ...C, ...w };
|
|
11018
11018
|
}
|
|
11019
11019
|
return u;
|
|
@@ -11023,12 +11023,12 @@ function ro(e) {
|
|
|
11023
11023
|
}
|
|
11024
11024
|
function s(c) {
|
|
11025
11025
|
const { props: u } = e, d = Dr(e.parent) || {}, f = [], h = /* @__PURE__ */ new Set();
|
|
11026
|
-
let
|
|
11026
|
+
let g = {}, w = 1 / 0;
|
|
11027
11027
|
for (let y = 0; y < to; y++) {
|
|
11028
11028
|
const m = eo[y], S = n[m], x = u[m] !== void 0 ? u[m] : d[m], H = mt(x), k = m === c ? S.isActive : null;
|
|
11029
11029
|
k === !1 && (w = y);
|
|
11030
11030
|
let Z = x === d[m] && x !== u[m] && H;
|
|
11031
|
-
if (Z && r && e.manuallyAnimateOnMount && (Z = !1), S.protectedKeys = { ...
|
|
11031
|
+
if (Z && r && e.manuallyAnimateOnMount && (Z = !1), S.protectedKeys = { ...g }, // If it isn't active and hasn't *just* been set as inactive
|
|
11032
11032
|
!S.isActive && k === null || // If we didn't and don't have any defined prop for this animation type
|
|
11033
11033
|
!x && !S.prevProp || // Or if the prop doesn't define an animation
|
|
11034
11034
|
gt(x) || typeof x == "boolean")
|
|
@@ -11050,12 +11050,12 @@ function ro(e) {
|
|
|
11050
11050
|
};
|
|
11051
11051
|
for (const j in _) {
|
|
11052
11052
|
const Y = U[j], Q = I[j];
|
|
11053
|
-
if (
|
|
11053
|
+
if (g.hasOwnProperty(j))
|
|
11054
11054
|
continue;
|
|
11055
11055
|
let X = !1;
|
|
11056
11056
|
J2(Y) && J2(Q) ? X = !$5(Y, Q) : X = Y !== Q, X ? Y != null ? W(j) : h.add(j) : Y !== void 0 && h.has(j) ? W(j) : S.protectedKeys[j] = !0;
|
|
11057
11057
|
}
|
|
11058
|
-
S.prevProp = x, S.prevResolvedValues = U, S.isActive && (
|
|
11058
|
+
S.prevProp = x, S.prevResolvedValues = U, S.isActive && (g = { ...g, ...U }), r && e.blockInitialAnimation && (P = !1), P && (!(Z && A) || O) && f.push(...N.map((j) => ({
|
|
11059
11059
|
animation: j,
|
|
11060
11060
|
options: { type: m }
|
|
11061
11061
|
})));
|
|
@@ -11075,8 +11075,8 @@ function ro(e) {
|
|
|
11075
11075
|
if (n[c].isActive === u)
|
|
11076
11076
|
return Promise.resolve();
|
|
11077
11077
|
(d = e.variantChildren) === null || d === void 0 || d.forEach((h) => {
|
|
11078
|
-
var
|
|
11079
|
-
return (
|
|
11078
|
+
var g;
|
|
11079
|
+
return (g = h.animationState) === null || g === void 0 ? void 0 : g.setActive(c, u);
|
|
11080
11080
|
}), n[c].isActive = u;
|
|
11081
11081
|
const f = s(c);
|
|
11082
11082
|
for (const h in n)
|
|
@@ -11204,8 +11204,8 @@ class Rr {
|
|
|
11204
11204
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
11205
11205
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
11206
11206
|
return;
|
|
11207
|
-
const f = N2(this.lastMoveEventInfo, this.history), h = this.startEvent !== null,
|
|
11208
|
-
if (!h && !
|
|
11207
|
+
const f = N2(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, g = uo(f.offset, { x: 0, y: 0 }) >= 3;
|
|
11208
|
+
if (!h && !g)
|
|
11209
11209
|
return;
|
|
11210
11210
|
const { point: w } = f, { timestamp: C } = b1;
|
|
11211
11211
|
this.history.push({ ...w, timestamp: C });
|
|
@@ -11215,11 +11215,11 @@ class Rr {
|
|
|
11215
11215
|
this.lastMoveEvent = f, this.lastMoveEventInfo = I2(h, this.transformPagePoint), r1.update(this.updatePoint, !0);
|
|
11216
11216
|
}, this.handlePointerUp = (f, h) => {
|
|
11217
11217
|
this.end();
|
|
11218
|
-
const { onEnd:
|
|
11218
|
+
const { onEnd: g, onSessionEnd: w, resumeAnimation: C } = this.handlers;
|
|
11219
11219
|
if (this.dragSnapToOrigin && C && C(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
11220
11220
|
return;
|
|
11221
11221
|
const y = N2(f.type === "pointercancel" ? this.lastMoveEventInfo : I2(h, this.transformPagePoint), this.history);
|
|
11222
|
-
this.startEvent &&
|
|
11222
|
+
this.startEvent && g && g(f, y), w && w(f, y);
|
|
11223
11223
|
}, !Or(t))
|
|
11224
11224
|
return;
|
|
11225
11225
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
|
|
@@ -11260,7 +11260,7 @@ function ho(e, t) {
|
|
|
11260
11260
|
return { x: 0, y: 0 };
|
|
11261
11261
|
let n = e.length - 1, r = null;
|
|
11262
11262
|
const i = Zr(e);
|
|
11263
|
-
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp >
|
|
11263
|
+
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > _1(t))); )
|
|
11264
11264
|
n--;
|
|
11265
11265
|
if (!r)
|
|
11266
11266
|
return { x: 0, y: 0 };
|
|
@@ -11490,8 +11490,8 @@ class ko {
|
|
|
11490
11490
|
f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(p2(d, "page").point);
|
|
11491
11491
|
}, o = (d, f) => {
|
|
11492
11492
|
var h;
|
|
11493
|
-
const { drag:
|
|
11494
|
-
if (
|
|
11493
|
+
const { drag: g, dragPropagation: w, onDragStart: C } = this.getProps();
|
|
11494
|
+
if (g && !w && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Br(g), !this.openGlobalLock))
|
|
11495
11495
|
return;
|
|
11496
11496
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), D1((m) => {
|
|
11497
11497
|
let S = this.getAxisMotionValue(m).get() || 0;
|
|
@@ -11507,11 +11507,11 @@ class ko {
|
|
|
11507
11507
|
const { animationState: y } = this.visualElement;
|
|
11508
11508
|
y && y.setActive("whileDrag", !0);
|
|
11509
11509
|
}, s = (d, f) => {
|
|
11510
|
-
const { dragPropagation: h, dragDirectionLock:
|
|
11510
|
+
const { dragPropagation: h, dragDirectionLock: g, onDirectionLock: w, onDrag: C } = this.getProps();
|
|
11511
11511
|
if (!h && !this.openGlobalLock)
|
|
11512
11512
|
return;
|
|
11513
11513
|
const { offset: y } = f;
|
|
11514
|
-
if (
|
|
11514
|
+
if (g && this.currentDirection === null) {
|
|
11515
11515
|
this.currentDirection = Ao(y), this.currentDirection !== null && w && w(this.currentDirection);
|
|
11516
11516
|
return;
|
|
11517
11517
|
}
|
|
@@ -11588,11 +11588,11 @@ class ko {
|
|
|
11588
11588
|
return;
|
|
11589
11589
|
let f = c && c[d] || {};
|
|
11590
11590
|
s && (f = { min: 0, max: 0 });
|
|
11591
|
-
const h = i ? 200 : 1e6,
|
|
11591
|
+
const h = i ? 200 : 1e6, g = i ? 40 : 1e7, w = {
|
|
11592
11592
|
type: "inertia",
|
|
11593
11593
|
velocity: r ? t[d] : 0,
|
|
11594
11594
|
bounceStiffness: h,
|
|
11595
|
-
bounceDamping:
|
|
11595
|
+
bounceDamping: g,
|
|
11596
11596
|
timeConstant: 750,
|
|
11597
11597
|
restDelta: 1,
|
|
11598
11598
|
restSpeed: 10,
|
|
@@ -11764,7 +11764,7 @@ function Ro() {
|
|
|
11764
11764
|
if (e === null)
|
|
11765
11765
|
return [!0, null];
|
|
11766
11766
|
const { isPresent: t, onExitComplete: n, register: r } = e, i = g3();
|
|
11767
|
-
|
|
11767
|
+
M1(() => r(i), []);
|
|
11768
11768
|
const o = $6(() => n && n(i), [i, n]);
|
|
11769
11769
|
return !t && n ? [!1, o] : [!0];
|
|
11770
11770
|
}
|
|
@@ -12000,8 +12000,8 @@ function Yo(e, t, n) {
|
|
|
12000
12000
|
let r = "";
|
|
12001
12001
|
const i = e.x.translate / t.x, o = e.y.translate / t.y, s = (n == null ? void 0 : n.z) || 0;
|
|
12002
12002
|
if ((i || o || s) && (r = `translate3d(${i}px, ${o}px, ${s}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
|
|
12003
|
-
const { transformPerspective: u, rotate: d, rotateX: f, rotateY: h, skewX:
|
|
12004
|
-
u && (r = `perspective(${u}px) ${r}`), d && (r += `rotate(${d}deg) `), f && (r += `rotateX(${f}deg) `), h && (r += `rotateY(${h}deg) `),
|
|
12003
|
+
const { transformPerspective: u, rotate: d, rotateX: f, rotateY: h, skewX: g, skewY: w } = n;
|
|
12004
|
+
u && (r = `perspective(${u}px) ${r}`), d && (r += `rotate(${d}deg) `), f && (r += `rotateX(${f}deg) `), h && (r += `rotateY(${h}deg) `), g && (r += `skewX(${g}deg) `), w && (r += `skewY(${w}deg) `);
|
|
12005
12005
|
}
|
|
12006
12006
|
const l = e.x.scale * t.x, c = e.y.scale * t.y;
|
|
12007
12007
|
return (l !== 1 || c !== 1) && (r += `scale(${l}, ${c})`), r || "none";
|
|
@@ -12101,12 +12101,12 @@ function t4({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
12101
12101
|
this.root.updateBlockedByResize = !0, f && f(), f = Qo(h, 250), Kt.hasAnimatedSinceResize && (Kt.hasAnimatedSinceResize = !1, this.nodes.forEach(M6));
|
|
12102
12102
|
});
|
|
12103
12103
|
}
|
|
12104
|
-
c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && d && (c || u) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: h, hasRelativeTargetChanged:
|
|
12104
|
+
c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && d && (c || u) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: h, hasRelativeTargetChanged: g, layout: w }) => {
|
|
12105
12105
|
if (this.isTreeAnimationBlocked()) {
|
|
12106
12106
|
this.target = void 0, this.relativeTarget = void 0;
|
|
12107
12107
|
return;
|
|
12108
12108
|
}
|
|
12109
|
-
const C = this.options.transition || d.getDefaultTransition() || Cs, { onLayoutAnimationStart: y, onLayoutAnimationComplete: m } = d.getProps(), S = !this.targetLayout || !Qr(this.targetLayout, w) ||
|
|
12109
|
+
const C = this.options.transition || d.getDefaultTransition() || Cs, { onLayoutAnimationStart: y, onLayoutAnimationComplete: m } = d.getProps(), S = !this.targetLayout || !Qr(this.targetLayout, w) || g, x = !h && g;
|
|
12110
12110
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || x || h && (S || !this.currentAnimation)) {
|
|
12111
12111
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, x);
|
|
12112
12112
|
const H = {
|
|
@@ -12308,14 +12308,14 @@ function t4({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
12308
12308
|
const { layout: f, layoutId: h } = this.options;
|
|
12309
12309
|
if (!(!this.layout || !(f || h))) {
|
|
12310
12310
|
if (this.resolvedRelativeTargetAt = b1.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
12311
|
-
const
|
|
12312
|
-
|
|
12311
|
+
const g = this.getClosestProjectingParent();
|
|
12312
|
+
g && g.layout && this.animationProgress !== 1 ? (this.relativeParent = g, this.forceRelativeParentToResolveTarget(), this.relativeTarget = p1(), this.relativeTargetOrigin = p1(), ht(this.relativeTargetOrigin, this.layout.layoutBox, g.layout.layoutBox), A1(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
12313
12313
|
}
|
|
12314
12314
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
12315
12315
|
if (this.target || (this.target = p1(), this.targetWithTransforms = p1()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), yo(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : A1(this.target, this.layout.layoutBox), $r(this.target, this.targetDelta)) : A1(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
12316
12316
|
this.attemptToResolveRelativeTarget = !1;
|
|
12317
|
-
const
|
|
12318
|
-
|
|
12317
|
+
const g = this.getClosestProjectingParent();
|
|
12318
|
+
g && !!g.resumingFrom == !!this.resumingFrom && !g.options.layoutScroll && g.target && this.animationProgress !== 1 ? (this.relativeParent = g, this.forceRelativeParentToResolveTarget(), this.relativeTarget = p1(), this.relativeTargetOrigin = p1(), ht(this.relativeTargetOrigin, this.target, g.target), A1(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
12319
12319
|
}
|
|
12320
12320
|
at && me.resolvedTargetDeltas++;
|
|
12321
12321
|
}
|
|
@@ -12338,14 +12338,14 @@ function t4({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
12338
12338
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(d || f))
|
|
12339
12339
|
return;
|
|
12340
12340
|
A1(this.layoutCorrected, this.layout.layoutBox);
|
|
12341
|
-
const h = this.treeScale.x,
|
|
12341
|
+
const h = this.treeScale.x, g = this.treeScale.y;
|
|
12342
12342
|
To(this.layoutCorrected, this.treeScale, this.path, c), l.layout && !l.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (l.target = l.layout.layoutBox, l.targetWithTransforms = p1());
|
|
12343
12343
|
const { target: w } = l;
|
|
12344
12344
|
if (!w) {
|
|
12345
12345
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
12346
12346
|
return;
|
|
12347
12347
|
}
|
|
12348
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (C6(this.prevProjectionDelta.x, this.projectionDelta.x), C6(this.prevProjectionDelta.y, this.projectionDelta.y)), ft(this.projectionDelta, this.layoutCorrected, w, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !==
|
|
12348
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (C6(this.prevProjectionDelta.x, this.projectionDelta.x), C6(this.prevProjectionDelta.y, this.projectionDelta.y)), ft(this.projectionDelta, this.layoutCorrected, w, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== g || !x6(this.projectionDelta.x, this.prevProjectionDelta.x) || !x6(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", w)), at && me.recalculatedProjection++;
|
|
12349
12349
|
}
|
|
12350
12350
|
hide() {
|
|
12351
12351
|
this.isVisible = !1;
|
|
@@ -12367,7 +12367,7 @@ function t4({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
12367
12367
|
setAnimationOrigin(s, l = !1) {
|
|
12368
12368
|
const c = this.snapshot, u = c ? c.latestValues : {}, d = { ...this.latestValues }, f = Re();
|
|
12369
12369
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !l;
|
|
12370
|
-
const h = p1(),
|
|
12370
|
+
const h = p1(), g = c ? c.source : void 0, w = this.layout ? this.layout.source : void 0, C = g !== w, y = this.getStack(), m = !y || y.members.length <= 1, S = !!(C && !m && this.options.crossfade === !0 && !this.path.some(hs));
|
|
12371
12371
|
this.animationProgress = 0;
|
|
12372
12372
|
let x;
|
|
12373
12373
|
this.mixTargetDelta = (H) => {
|
|
@@ -12480,8 +12480,8 @@ function t4({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
12480
12480
|
}
|
|
12481
12481
|
const h = f.animationValues || f.latestValues;
|
|
12482
12482
|
this.applyTransformsToTarget(), u.transform = Yo(this.projectionDeltaWithTransform, this.treeScale, h), d && (u.transform = d(h, u.transform));
|
|
12483
|
-
const { x:
|
|
12484
|
-
u.transformOrigin = `${
|
|
12483
|
+
const { x: g, y: w } = this.projectionDelta;
|
|
12484
|
+
u.transformOrigin = `${g.origin * 100}% ${w.origin * 100}% 0`, f.animationValues ? u.opacity = f === this ? (c = (l = h.opacity) !== null && l !== void 0 ? l : this.latestValues.opacity) !== null && c !== void 0 ? c : 1 : this.preserveOpacity ? this.latestValues.opacity : h.opacityExit : u.opacity = f === this ? h.opacity !== void 0 ? h.opacity : "" : h.opacityExit !== void 0 ? h.opacityExit : 0;
|
|
12485
12485
|
for (const C in n2) {
|
|
12486
12486
|
if (h[C] === void 0)
|
|
12487
12487
|
continue;
|
|
@@ -12516,11 +12516,11 @@ function ns(e) {
|
|
|
12516
12516
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
12517
12517
|
const { layoutBox: r, measuredBox: i } = e.layout, { animationType: o } = e.options, s = n.source !== e.layout.source;
|
|
12518
12518
|
o === "size" ? D1((f) => {
|
|
12519
|
-
const h = s ? n.measuredBox[f] : n.layoutBox[f],
|
|
12520
|
-
h.min = r[f].min, h.max = h.min +
|
|
12519
|
+
const h = s ? n.measuredBox[f] : n.layoutBox[f], g = k1(h);
|
|
12520
|
+
h.min = r[f].min, h.max = h.min + g;
|
|
12521
12521
|
}) : n4(o, n.layoutBox, r) && D1((f) => {
|
|
12522
|
-
const h = s ? n.measuredBox[f] : n.layoutBox[f],
|
|
12523
|
-
h.max = h.min +
|
|
12522
|
+
const h = s ? n.measuredBox[f] : n.layoutBox[f], g = k1(r[f]);
|
|
12523
|
+
h.max = h.min + g, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[f].max = e.relativeTarget[f].min + g);
|
|
12524
12524
|
});
|
|
12525
12525
|
const l = Re();
|
|
12526
12526
|
ft(l, r, n.layoutBox);
|
|
@@ -12531,12 +12531,12 @@ function ns(e) {
|
|
|
12531
12531
|
if (!e.resumeFrom) {
|
|
12532
12532
|
const f = e.getClosestProjectingParent();
|
|
12533
12533
|
if (f && !f.resumeFrom) {
|
|
12534
|
-
const { snapshot: h, layout:
|
|
12535
|
-
if (h &&
|
|
12534
|
+
const { snapshot: h, layout: g } = f;
|
|
12535
|
+
if (h && g) {
|
|
12536
12536
|
const w = p1();
|
|
12537
12537
|
ht(w, n.layoutBox, h.layoutBox);
|
|
12538
12538
|
const C = p1();
|
|
12539
|
-
ht(C, r,
|
|
12539
|
+
ht(C, r, g.layoutBox), Qr(w, C) || (d = !0), f.options.layoutRoot && (e.relativeTarget = C, e.relativeTargetOrigin = w, e.relativeParent = f);
|
|
12540
12540
|
}
|
|
12541
12541
|
}
|
|
12542
12542
|
}
|
|
@@ -12840,11 +12840,11 @@ const Ps = {
|
|
|
12840
12840
|
transformPagePoint: (e) => e,
|
|
12841
12841
|
isStatic: !1,
|
|
12842
12842
|
reducedMotion: "never"
|
|
12843
|
-
}), v2 = Ue({}), W3 = typeof window < "u", z3 = W3 ? U6 :
|
|
12843
|
+
}), v2 = Ue({}), W3 = typeof window < "u", z3 = W3 ? U6 : M1, o4 = Ue({ strict: !1 });
|
|
12844
12844
|
let A6 = !1;
|
|
12845
12845
|
function ks(e, t, n, r, i) {
|
|
12846
12846
|
var o;
|
|
12847
|
-
const { visualElement: s } = x1(v2), l = x1(o4), c = x1(g2), u = x1(m2).reducedMotion, d =
|
|
12847
|
+
const { visualElement: s } = x1(v2), l = x1(o4), c = x1(g2), u = x1(m2).reducedMotion, d = O1();
|
|
12848
12848
|
r = r || l.renderer, !d.current && r && (d.current = r(e, {
|
|
12849
12849
|
visualState: t,
|
|
12850
12850
|
parent: s,
|
|
@@ -12857,10 +12857,10 @@ function ks(e, t, n, r, i) {
|
|
|
12857
12857
|
f && !f.projection && i && (f.type === "html" || f.type === "svg") && Ds(d.current, n, i, h), W6(() => {
|
|
12858
12858
|
f && f.update(n, c);
|
|
12859
12859
|
});
|
|
12860
|
-
const
|
|
12860
|
+
const g = n[Er], w = O1(!!g && !window.MotionHandoffIsComplete && ((o = window.MotionHasOptimisedAnimation) === null || o === void 0 ? void 0 : o.call(window, g)));
|
|
12861
12861
|
return z3(() => {
|
|
12862
12862
|
f && (f.updateFeatures(), U3.render(f.render), w.current && f.animationState && f.animationState.animateChanges());
|
|
12863
|
-
}),
|
|
12863
|
+
}), M1(() => {
|
|
12864
12864
|
f && (!w.current && f.animationState && f.animationState.animateChanges(), w.current = !1, A6 || (A6 = !0, queueMicrotask(As)));
|
|
12865
12865
|
}), f;
|
|
12866
12866
|
}
|
|
@@ -12967,13 +12967,13 @@ function Is({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
12967
12967
|
...x1(m2),
|
|
12968
12968
|
...l,
|
|
12969
12969
|
layoutId: Ns(l)
|
|
12970
|
-
}, { isStatic: f } = d, h = Zs(l),
|
|
12970
|
+
}, { isStatic: f } = d, h = Zs(l), g = r(l, f);
|
|
12971
12971
|
if (!f && W3) {
|
|
12972
12972
|
Fs(d, e);
|
|
12973
12973
|
const w = js(d);
|
|
12974
|
-
u = w.MeasureLayout, h.visualElement = ks(i,
|
|
12974
|
+
u = w.MeasureLayout, h.visualElement = ks(i, g, d, t, w.ProjectionNode);
|
|
12975
12975
|
}
|
|
12976
|
-
return E(v2.Provider, { value: h, children: [u && h.visualElement ? a(u, { visualElement: h.visualElement, ...d }) : null, n(i, l, Os(
|
|
12976
|
+
return E(v2.Provider, { value: h, children: [u && h.visualElement ? a(u, { visualElement: h.visualElement, ...d }) : null, n(i, l, Os(g, h.visualElement, c), g, f, h.visualElement)] });
|
|
12977
12977
|
}
|
|
12978
12978
|
const s = p3(o);
|
|
12979
12979
|
return s[Bs] = i, s;
|
|
@@ -13101,7 +13101,7 @@ function f4(e, t, n) {
|
|
|
13101
13101
|
return r;
|
|
13102
13102
|
}
|
|
13103
13103
|
function Le(e) {
|
|
13104
|
-
const t =
|
|
13104
|
+
const t = O1(null);
|
|
13105
13105
|
return t.current === null && (t.current = e()), t.current;
|
|
13106
13106
|
}
|
|
13107
13107
|
function $s({ applyWillChange: e = !1, scrapeMotionValuesFromProps: t, createRenderState: n, onMount: r }, i, o, s, l) {
|
|
@@ -13135,8 +13135,8 @@ function zs(e, t, n, r, i) {
|
|
|
13135
13135
|
for (const y in u)
|
|
13136
13136
|
s[y] = Yt(u[y]);
|
|
13137
13137
|
let { initial: d, animate: f } = e;
|
|
13138
|
-
const h = y2(e),
|
|
13139
|
-
t &&
|
|
13138
|
+
const h = y2(e), g = a4(e);
|
|
13139
|
+
t && g && !h && e.inherit !== !1 && (d === void 0 && (d = t.initial), f === void 0 && (f = t.animate));
|
|
13140
13140
|
let w = n ? n.initial === !1 : !1;
|
|
13141
13141
|
w = w || d === !1;
|
|
13142
13142
|
const C = w ? f : d;
|
|
@@ -13248,8 +13248,8 @@ function q3(e, {
|
|
|
13248
13248
|
return;
|
|
13249
13249
|
}
|
|
13250
13250
|
e.attrs = e.style, e.style = {};
|
|
13251
|
-
const { attrs: h, style:
|
|
13252
|
-
h.transform && (w && (
|
|
13251
|
+
const { attrs: h, style: g, dimensions: w } = e;
|
|
13252
|
+
h.transform && (w && (g.transform = h.transform), delete h.transform), w && (i !== void 0 || o !== void 0 || g.transform) && (g.transformOrigin = Xs(w, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5)), t !== void 0 && (h.x = t), n !== void 0 && (h.y = n), r !== void 0 && (h.scale = r), s !== void 0 && Js(h, s, l, c, !1);
|
|
13253
13253
|
}
|
|
13254
13254
|
const Q3 = (e) => typeof e == "string" && e.toLowerCase() === "svg", ea = {
|
|
13255
13255
|
useVisualState: h4({
|
|
@@ -13442,8 +13442,8 @@ class pa {
|
|
|
13442
13442
|
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = l, this.blockInitialAnimation = !!o, this.isControllingVariants = y2(n), this.isVariantNode = a4(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
13443
13443
|
const { willChange: d, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
13444
13444
|
for (const h in f) {
|
|
13445
|
-
const
|
|
13446
|
-
c[h] !== void 0 && v1(
|
|
13445
|
+
const g = f[h];
|
|
13446
|
+
c[h] !== void 0 && v1(g) && g.set(c[h], !1);
|
|
13447
13447
|
}
|
|
13448
13448
|
}
|
|
13449
13449
|
mount(t) {
|
|
@@ -13714,7 +13714,7 @@ class ya extends M.Component {
|
|
|
13714
13714
|
}
|
|
13715
13715
|
}
|
|
13716
13716
|
function wa({ children: e, isPresent: t }) {
|
|
13717
|
-
const n = g3(), r =
|
|
13717
|
+
const n = g3(), r = O1(null), i = O1({
|
|
13718
13718
|
width: 0,
|
|
13719
13719
|
height: 0,
|
|
13720
13720
|
top: 0,
|
|
@@ -13780,7 +13780,7 @@ function B6(e) {
|
|
|
13780
13780
|
}
|
|
13781
13781
|
const La = ({ children: e, exitBeforeEnter: t, custom: n, initial: r = !0, onExitComplete: i, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
|
|
13782
13782
|
B1(!t, "Replace exitBeforeEnter with mode='wait'");
|
|
13783
|
-
const l = ae(() => B6(e), [e]), c = l.map(Ut), u =
|
|
13783
|
+
const l = ae(() => B6(e), [e]), c = l.map(Ut), u = O1(!0), d = O1(l), f = Le(() => /* @__PURE__ */ new Map()), [h, g] = S1(l), [w, C] = S1(l);
|
|
13784
13784
|
z3(() => {
|
|
13785
13785
|
u.current = !1, d.current = l;
|
|
13786
13786
|
for (let S = 0; S < w.length; S++) {
|
|
@@ -13795,7 +13795,7 @@ const La = ({ children: e, exitBeforeEnter: t, custom: n, initial: r = !0, onExi
|
|
|
13795
13795
|
const H = w[x], k = Ut(H);
|
|
13796
13796
|
c.includes(k) || (S.splice(x, 0, H), y.push(H));
|
|
13797
13797
|
}
|
|
13798
|
-
s === "wait" && y.length && (S = y), C(B6(S)),
|
|
13798
|
+
s === "wait" && y.length && (S = y), C(B6(S)), g(l);
|
|
13799
13799
|
return;
|
|
13800
13800
|
}
|
|
13801
13801
|
process.env.NODE_ENV !== "production" && s === "wait" && w.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
@@ -13817,8 +13817,8 @@ const La = ({ children: e, exitBeforeEnter: t, custom: n, initial: r = !0, onExi
|
|
|
13817
13817
|
function x4(e) {
|
|
13818
13818
|
const t = Le(() => Fe(e)), { isStatic: n } = x1(m2);
|
|
13819
13819
|
if (n) {
|
|
13820
|
-
const [, r] =
|
|
13821
|
-
|
|
13820
|
+
const [, r] = S1(e);
|
|
13821
|
+
M1(() => t.on("change", r), []);
|
|
13822
13822
|
}
|
|
13823
13823
|
return t;
|
|
13824
13824
|
}
|
|
@@ -13869,7 +13869,7 @@ function V4(e, t, n) {
|
|
|
13869
13869
|
return Array.from(e || []);
|
|
13870
13870
|
}
|
|
13871
13871
|
function Pa(e) {
|
|
13872
|
-
return
|
|
13872
|
+
return M1(() => () => e(), []);
|
|
13873
13873
|
}
|
|
13874
13874
|
function Ea(e) {
|
|
13875
13875
|
return typeof e == "object" && !Array.isArray(e);
|
|
@@ -13933,15 +13933,15 @@ function Ia(e, { defaultTransition: t = {}, ...n } = {}, r) {
|
|
|
13933
13933
|
const i = t.duration || 0.3, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), l = {}, c = /* @__PURE__ */ new Map();
|
|
13934
13934
|
let u = 0, d = 0, f = 0;
|
|
13935
13935
|
for (let h = 0; h < e.length; h++) {
|
|
13936
|
-
const
|
|
13937
|
-
if (typeof
|
|
13938
|
-
c.set(
|
|
13936
|
+
const g = e[h];
|
|
13937
|
+
if (typeof g == "string") {
|
|
13938
|
+
c.set(g, d);
|
|
13939
13939
|
continue;
|
|
13940
|
-
} else if (!Array.isArray(
|
|
13941
|
-
c.set(
|
|
13940
|
+
} else if (!Array.isArray(g)) {
|
|
13941
|
+
c.set(g.name, N6(d, g.at, u, c));
|
|
13942
13942
|
continue;
|
|
13943
13943
|
}
|
|
13944
|
-
let [w, C, y = {}] =
|
|
13944
|
+
let [w, C, y = {}] = g;
|
|
13945
13945
|
y.at !== void 0 && (d = N6(d, y.at, u, c));
|
|
13946
13946
|
let m = 0;
|
|
13947
13947
|
const S = (x, H, k, Z = 0, A = 0) => {
|
|
@@ -13955,7 +13955,7 @@ function Ia(e, { defaultTransition: t = {}, ...n } = {}, r) {
|
|
|
13955
13955
|
X = Math.abs(o1);
|
|
13956
13956
|
}
|
|
13957
13957
|
const c1 = { ...I };
|
|
13958
|
-
W !== void 0 && (c1.duration =
|
|
13958
|
+
W !== void 0 && (c1.duration = _1(W));
|
|
13959
13959
|
const d1 = Aa(c1, X);
|
|
13960
13960
|
_ = d1.ease, W = d1.duration;
|
|
13961
13961
|
}
|
|
@@ -13979,7 +13979,7 @@ function Ia(e, { defaultTransition: t = {}, ...n } = {}, r) {
|
|
|
13979
13979
|
}
|
|
13980
13980
|
u = d, d += m;
|
|
13981
13981
|
}
|
|
13982
|
-
return s.forEach((h,
|
|
13982
|
+
return s.forEach((h, g) => {
|
|
13983
13983
|
for (const w in h) {
|
|
13984
13984
|
const C = h[w];
|
|
13985
13985
|
C.sort(_a);
|
|
@@ -13988,11 +13988,11 @@ function Ia(e, { defaultTransition: t = {}, ...n } = {}, r) {
|
|
|
13988
13988
|
const { at: k, value: Z, easing: A } = C[H];
|
|
13989
13989
|
y.push(Z), m.push(Ne(0, f, k)), S.push(A || "easeOut");
|
|
13990
13990
|
}
|
|
13991
|
-
m[0] !== 0 && (m.unshift(0), y.unshift(y[0]), S.unshift(Ba)), m[m.length - 1] !== 1 && (m.push(1), y.push(null)), o.has(
|
|
13991
|
+
m[0] !== 0 && (m.unshift(0), y.unshift(y[0]), S.unshift(Ba)), m[m.length - 1] !== 1 && (m.push(1), y.push(null)), o.has(g) || o.set(g, {
|
|
13992
13992
|
keyframes: {},
|
|
13993
13993
|
transition: {}
|
|
13994
13994
|
});
|
|
13995
|
-
const x = o.get(
|
|
13995
|
+
const x = o.get(g);
|
|
13996
13996
|
x.keyframes[w] = y, x.transition[w] = {
|
|
13997
13997
|
...t,
|
|
13998
13998
|
duration: f,
|
|
@@ -14080,10 +14080,10 @@ const Ya = ({
|
|
|
14080
14080
|
isLogoHovered: t,
|
|
14081
14081
|
maskUrl: n
|
|
14082
14082
|
}) => {
|
|
14083
|
-
const [r] =
|
|
14083
|
+
const [r] = S1(
|
|
14084
14084
|
"https://garden-bucket-cdn.s3.eu-central-1.amazonaws.com/flowers_bg.mp4"
|
|
14085
|
-
), [i, o] =
|
|
14086
|
-
return
|
|
14085
|
+
), [i, o] = S1("initial"), s = O1(null), l = O1(null), c = x4(45), u = Ta(c, (d) => `${d}% center`);
|
|
14086
|
+
return M1(() => {
|
|
14087
14087
|
if (t)
|
|
14088
14088
|
o("visible");
|
|
14089
14089
|
else {
|
|
@@ -14224,9 +14224,9 @@ const Ya = ({
|
|
|
14224
14224
|
return k4(i, () => ({
|
|
14225
14225
|
startAnimation: c,
|
|
14226
14226
|
stopAnimation: u
|
|
14227
|
-
})),
|
|
14227
|
+
})), M1(() => {
|
|
14228
14228
|
t ? c() : u();
|
|
14229
|
-
}, [t]),
|
|
14229
|
+
}, [t]), M1(() => {
|
|
14230
14230
|
const d = () => {
|
|
14231
14231
|
t || c();
|
|
14232
14232
|
}, f = () => {
|
|
@@ -14342,18 +14342,22 @@ const ot = ({
|
|
|
14342
14342
|
maskUrl: n = Xa,
|
|
14343
14343
|
...r
|
|
14344
14344
|
}) => {
|
|
14345
|
-
const [i, o] =
|
|
14345
|
+
const [i, o] = S1(!1), [s, l] = S1(
|
|
14346
14346
|
null
|
|
14347
|
-
), c = e5(), u =
|
|
14347
|
+
), c = e5(), u = O1(null);
|
|
14348
|
+
M1(() => () => {
|
|
14349
|
+
u.current && clearTimeout(u.current);
|
|
14350
|
+
}, []);
|
|
14351
|
+
const d = t && t === "testnet" ? "https://testnet.garden.finance" : "https://app.garden.finance", f = "https://garden.finance", h = {
|
|
14348
14352
|
Products: {
|
|
14349
14353
|
swap: {
|
|
14350
14354
|
title: "Swap",
|
|
14351
|
-
link: t && t === "testnet" ? `${
|
|
14355
|
+
link: t && t === "testnet" ? `${d}/?input-chain=bitcoin_testnet&input-asset=BTC` : `${d}/?input-chain=bitcoin&input-asset=BTC`,
|
|
14352
14356
|
isExternal: !0
|
|
14353
14357
|
},
|
|
14354
14358
|
stake: {
|
|
14355
14359
|
title: "Stake",
|
|
14356
|
-
link: t && t === "testnet" ? void 0 : `${
|
|
14360
|
+
link: t && t === "testnet" ? void 0 : `${d}/stake`,
|
|
14357
14361
|
isExternal: !0
|
|
14358
14362
|
},
|
|
14359
14363
|
explorer: {
|
|
@@ -14365,17 +14369,17 @@ const ot = ({
|
|
|
14365
14369
|
Resources: {
|
|
14366
14370
|
blog: {
|
|
14367
14371
|
title: "Blog",
|
|
14368
|
-
link: `${
|
|
14372
|
+
link: `${f}/blog`,
|
|
14369
14373
|
isExternal: !0
|
|
14370
14374
|
},
|
|
14371
14375
|
faq: {
|
|
14372
14376
|
title: "FAQs",
|
|
14373
|
-
link: `${
|
|
14377
|
+
link: `${f}/faq`,
|
|
14374
14378
|
isExternal: !0
|
|
14375
14379
|
},
|
|
14376
14380
|
brandKit: {
|
|
14377
14381
|
title: "Brand kit",
|
|
14378
|
-
link: `${
|
|
14382
|
+
link: `${f}/brand-kit`,
|
|
14379
14383
|
isExternal: !0
|
|
14380
14384
|
},
|
|
14381
14385
|
analytics: {
|
|
@@ -14406,64 +14410,64 @@ const ot = ({
|
|
|
14406
14410
|
isExternal: !0
|
|
14407
14411
|
}
|
|
14408
14412
|
}
|
|
14409
|
-
},
|
|
14413
|
+
}, g = {
|
|
14410
14414
|
btcToSol: {
|
|
14411
14415
|
title: "BTC to SOL",
|
|
14412
|
-
link:
|
|
14416
|
+
link: f + "/routes/bridge-btc-to-sol",
|
|
14413
14417
|
chain: "Solana",
|
|
14414
14418
|
isExternal: !0
|
|
14415
14419
|
},
|
|
14416
14420
|
btcToEth: {
|
|
14417
14421
|
title: "BTC to ETH",
|
|
14418
|
-
link:
|
|
14422
|
+
link: f + "/routes/bridge-btc-to-eth",
|
|
14419
14423
|
chain: "Ethereum",
|
|
14420
14424
|
isExternal: !0
|
|
14421
14425
|
},
|
|
14422
14426
|
btcToUsdc: {
|
|
14423
14427
|
title: "BTC to USDC",
|
|
14424
|
-
link:
|
|
14428
|
+
link: f + "/routes/bridge-btc-to-usdc-arbitrum",
|
|
14425
14429
|
chain: "Arbitrum",
|
|
14426
14430
|
isExternal: !0
|
|
14427
14431
|
},
|
|
14428
14432
|
btctoUsdcEth: {
|
|
14429
14433
|
title: "BTC to USDC",
|
|
14430
|
-
link:
|
|
14434
|
+
link: f + "/routes/bridge-btc-to-usdc-ethereum",
|
|
14431
14435
|
chain: "Ethereum",
|
|
14432
14436
|
isExternal: !0
|
|
14433
14437
|
},
|
|
14434
14438
|
btcToWbtc: {
|
|
14435
14439
|
title: "BTC to WBTC",
|
|
14436
|
-
link:
|
|
14440
|
+
link: f + "/routes/bridge-btc-to-wbtc-ethereum",
|
|
14437
14441
|
chain: "Ethereum",
|
|
14438
14442
|
isExternal: !0
|
|
14439
14443
|
},
|
|
14440
14444
|
btcTocbBtc: {
|
|
14441
14445
|
title: "BTC to cbBtc",
|
|
14442
|
-
link:
|
|
14446
|
+
link: f + "/routes/bridge-btc-to-cbbtc-base",
|
|
14443
14447
|
chain: "Base",
|
|
14444
14448
|
isExternal: !0
|
|
14445
14449
|
},
|
|
14446
14450
|
btcToSui: {
|
|
14447
14451
|
title: "BTC to SUI",
|
|
14448
|
-
link:
|
|
14452
|
+
link: f + "/routes/bridge-btc-to-sui",
|
|
14449
14453
|
chain: "Sui",
|
|
14450
14454
|
isExternal: !0
|
|
14451
14455
|
},
|
|
14452
14456
|
btcToWbtcUni: {
|
|
14453
14457
|
title: "BTC to WBTC",
|
|
14454
|
-
link:
|
|
14458
|
+
link: f + "/routes/bridge-btc-to-wbtc-unichain",
|
|
14455
14459
|
chain: "Unichain",
|
|
14456
14460
|
isExternal: !0
|
|
14457
14461
|
},
|
|
14458
14462
|
btcToBnb: {
|
|
14459
14463
|
title: "BTC to BNB",
|
|
14460
|
-
link:
|
|
14464
|
+
link: f + "/routes/bridge-btc-to-bnb",
|
|
14461
14465
|
chain: "BNB Chain",
|
|
14462
14466
|
isExternal: !0
|
|
14463
14467
|
},
|
|
14464
14468
|
cbBtcBaseTocbBtcSolana: {
|
|
14465
14469
|
title: " to cbBtc",
|
|
14466
|
-
link:
|
|
14470
|
+
link: f + "/routes/bridge-cbbtc-base-to-cbbtc-solana",
|
|
14467
14471
|
inputAsset: "cbBtc",
|
|
14468
14472
|
inputChain: "Base",
|
|
14469
14473
|
chain: "Solana",
|
|
@@ -14471,16 +14475,51 @@ const ot = ({
|
|
|
14471
14475
|
},
|
|
14472
14476
|
usdcBnbToBtc: {
|
|
14473
14477
|
title: " to BTC",
|
|
14474
|
-
link:
|
|
14478
|
+
link: f + "/routes/bridge-usdc-bnb-to-btc",
|
|
14475
14479
|
inputAsset: "USDC",
|
|
14476
14480
|
inputChain: "BNB Chain",
|
|
14477
|
-
|
|
14481
|
+
isExternal: !0
|
|
14482
|
+
},
|
|
14483
|
+
btcToUsdtEthereum: {
|
|
14484
|
+
title: " to USDT",
|
|
14485
|
+
link: f + "/routes/bridge-btc-to-usdt-ethereum",
|
|
14486
|
+
inputAsset: "BTC",
|
|
14487
|
+
chain: "Ethereum",
|
|
14488
|
+
isExternal: !0
|
|
14489
|
+
},
|
|
14490
|
+
btcToUsdcSolana: {
|
|
14491
|
+
title: " to USDC",
|
|
14492
|
+
link: f + "/routes/bridge-btc-to-usdc-solana",
|
|
14493
|
+
inputAsset: "BTC",
|
|
14494
|
+
chain: "Solana",
|
|
14495
|
+
isExternal: !0
|
|
14496
|
+
},
|
|
14497
|
+
usdcEthereumToBtc: {
|
|
14498
|
+
title: " to BTC",
|
|
14499
|
+
link: f + "/routes/bridge-usdc-ethereum-to-btc",
|
|
14500
|
+
inputAsset: "USDC",
|
|
14501
|
+
inputChain: "Ethereum",
|
|
14502
|
+
isExternal: !0
|
|
14503
|
+
},
|
|
14504
|
+
solToBtc: {
|
|
14505
|
+
title: " to BTC",
|
|
14506
|
+
link: f + "/routes/bridge-sol-to-btc",
|
|
14507
|
+
inputAsset: "SOL",
|
|
14508
|
+
inputChain: "Solana",
|
|
14509
|
+
isExternal: !0
|
|
14510
|
+
},
|
|
14511
|
+
usdcEthereumToUsdcBase: {
|
|
14512
|
+
title: " to USDC",
|
|
14513
|
+
link: f + "/routes/bridge-usdc-ethereum-to-usdc-base",
|
|
14514
|
+
inputAsset: "USDC",
|
|
14515
|
+
inputChain: "Ethereum",
|
|
14516
|
+
chain: "Base",
|
|
14478
14517
|
isExternal: !0
|
|
14479
14518
|
}
|
|
14480
|
-
},
|
|
14519
|
+
}, w = {
|
|
14481
14520
|
discord: "https://discord.gg/7feudTFMXB",
|
|
14482
14521
|
x: "https://x.com/gardenfi"
|
|
14483
|
-
}, { Products:
|
|
14522
|
+
}, { Products: C, Resources: y, Developers: m } = h;
|
|
14484
14523
|
return /* @__PURE__ */ E(
|
|
14485
14524
|
"footer",
|
|
14486
14525
|
{
|
|
@@ -14497,10 +14536,16 @@ const ot = ({
|
|
|
14497
14536
|
/* @__PURE__ */ a(
|
|
14498
14537
|
ii,
|
|
14499
14538
|
{
|
|
14500
|
-
onMouseEnter: () =>
|
|
14501
|
-
|
|
14539
|
+
onMouseEnter: () => {
|
|
14540
|
+
u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
14541
|
+
o(!0);
|
|
14542
|
+
}, 300);
|
|
14543
|
+
},
|
|
14544
|
+
onMouseLeave: () => {
|
|
14545
|
+
u.current && (clearTimeout(u.current), u.current = null), o(!1);
|
|
14546
|
+
},
|
|
14502
14547
|
className: "gf-h-8 gf-w-8 gf-cursor-pointer gf-duration-500 gf-ease-in-out",
|
|
14503
|
-
onClick: (
|
|
14548
|
+
onClick: (S) => S.preventDefault()
|
|
14504
14549
|
}
|
|
14505
14550
|
),
|
|
14506
14551
|
/* @__PURE__ */ E("div", { className: "gf-flex gf-items-center gf-gap-4", children: [
|
|
@@ -14508,7 +14553,7 @@ const ot = ({
|
|
|
14508
14553
|
ni,
|
|
14509
14554
|
{
|
|
14510
14555
|
onClick: () => {
|
|
14511
|
-
c && window.open(
|
|
14556
|
+
c && window.open(w.x, "_blank");
|
|
14512
14557
|
},
|
|
14513
14558
|
className: "gf-cursor-pointer gf-duration-500 gf-ease-in-out"
|
|
14514
14559
|
}
|
|
@@ -14517,7 +14562,7 @@ const ot = ({
|
|
|
14517
14562
|
ti,
|
|
14518
14563
|
{
|
|
14519
14564
|
onClick: () => {
|
|
14520
|
-
c && window.open(
|
|
14565
|
+
c && window.open(w.discord, "_blank");
|
|
14521
14566
|
},
|
|
14522
14567
|
className: "gf-cursor-pointer gf-duration-500 gf-ease-in-out"
|
|
14523
14568
|
}
|
|
@@ -14530,7 +14575,7 @@ const ot = ({
|
|
|
14530
14575
|
ot,
|
|
14531
14576
|
{
|
|
14532
14577
|
title: "Resources",
|
|
14533
|
-
links:
|
|
14578
|
+
links: y,
|
|
14534
14579
|
className: "gf-flex gf-w-full gf-flex-col gf-gap-3",
|
|
14535
14580
|
listClassName: "gf-flex gf-flex-col gf-gap-2"
|
|
14536
14581
|
}
|
|
@@ -14539,7 +14584,7 @@ const ot = ({
|
|
|
14539
14584
|
ot,
|
|
14540
14585
|
{
|
|
14541
14586
|
title: "Routes",
|
|
14542
|
-
links:
|
|
14587
|
+
links: g,
|
|
14543
14588
|
hoveredIndex: s,
|
|
14544
14589
|
onHover: l,
|
|
14545
14590
|
className: "gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",
|
|
@@ -14553,7 +14598,7 @@ const ot = ({
|
|
|
14553
14598
|
ot,
|
|
14554
14599
|
{
|
|
14555
14600
|
title: "Products",
|
|
14556
|
-
links:
|
|
14601
|
+
links: C,
|
|
14557
14602
|
className: "gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",
|
|
14558
14603
|
listClassName: "gf-flex gf-w-fit gf-flex-col gf-gap-1 gf-gap-x-6"
|
|
14559
14604
|
}
|
|
@@ -14562,7 +14607,7 @@ const ot = ({
|
|
|
14562
14607
|
ot,
|
|
14563
14608
|
{
|
|
14564
14609
|
title: "Developers",
|
|
14565
|
-
links:
|
|
14610
|
+
links: m,
|
|
14566
14611
|
className: "gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",
|
|
14567
14612
|
listClassName: "gf-flex gf-flex-col gf-gap-1"
|
|
14568
14613
|
}
|
|
@@ -14571,7 +14616,7 @@ const ot = ({
|
|
|
14571
14616
|
ot,
|
|
14572
14617
|
{
|
|
14573
14618
|
title: "Resources",
|
|
14574
|
-
links:
|
|
14619
|
+
links: y,
|
|
14575
14620
|
className: "gf-flex gf-w-full gf-flex-col gf-gap-3",
|
|
14576
14621
|
listClassName: "gf-flex gf-flex-col gf-gap-1"
|
|
14577
14622
|
}
|
|
@@ -14644,7 +14689,7 @@ const ot = ({
|
|
|
14644
14689
|
var S4 = { exports: {} };
|
|
14645
14690
|
(() => {
|
|
14646
14691
|
var e = { 181: (i, o, s) => {
|
|
14647
|
-
var l = /^\s+|\s+$/g, c = /^[-+]0x[0-9a-f]+$/i, u = /^0b[01]+$/i, d = /^0o[0-7]+$/i, f = parseInt, h = typeof s.g == "object" && s.g && s.g.Object === Object && s.g,
|
|
14692
|
+
var l = /^\s+|\s+$/g, c = /^[-+]0x[0-9a-f]+$/i, u = /^0b[01]+$/i, d = /^0o[0-7]+$/i, f = parseInt, h = typeof s.g == "object" && s.g && s.g.Object === Object && s.g, g = typeof self == "object" && self && self.Object === Object && self, w = h || g || Function("return this")(), C = Object.prototype.toString, y = Math.max, m = Math.min, S = function() {
|
|
14648
14693
|
return w.Date.now();
|
|
14649
14694
|
};
|
|
14650
14695
|
function x(k) {
|
|
@@ -14706,7 +14751,7 @@ var S4 = { exports: {} };
|
|
|
14706
14751
|
}, d1;
|
|
14707
14752
|
};
|
|
14708
14753
|
}, 858: (i, o, s) => {
|
|
14709
|
-
var l = "Expected a function", c = NaN, u = "[object Symbol]", d = /^\s+|\s+$/g, f = /^[-+]0x[0-9a-f]+$/i, h = /^0b[01]+$/i,
|
|
14754
|
+
var l = "Expected a function", c = NaN, u = "[object Symbol]", d = /^\s+|\s+$/g, f = /^[-+]0x[0-9a-f]+$/i, h = /^0b[01]+$/i, g = /^0o[0-7]+$/i, w = parseInt, C = typeof s.g == "object" && s.g && s.g.Object === Object && s.g, y = typeof self == "object" && self && self.Object === Object && self, m = C || y || Function("return this")(), S = Object.prototype.toString, x = Math.max, H = Math.min, k = function() {
|
|
14710
14755
|
return m.Date.now();
|
|
14711
14756
|
};
|
|
14712
14757
|
function Z(P) {
|
|
@@ -14727,7 +14772,7 @@ var S4 = { exports: {} };
|
|
|
14727
14772
|
if (typeof P != "string") return P === 0 ? P : +P;
|
|
14728
14773
|
P = P.replace(d, "");
|
|
14729
14774
|
var N = h.test(P);
|
|
14730
|
-
return N ||
|
|
14775
|
+
return N || g.test(P) ? w(P.slice(2), N ? 2 : 8) : f.test(P) ? c : +P;
|
|
14731
14776
|
}
|
|
14732
14777
|
i.exports = function(P, O, N) {
|
|
14733
14778
|
var U = !0, I = !0;
|
|
@@ -14745,16 +14790,16 @@ var S4 = { exports: {} };
|
|
|
14745
14790
|
}
|
|
14746
14791
|
function P1() {
|
|
14747
14792
|
var h1 = k();
|
|
14748
|
-
if (N1(h1)) return
|
|
14793
|
+
if (N1(h1)) return R1(h1);
|
|
14749
14794
|
X = setTimeout(P1, function(H1) {
|
|
14750
14795
|
var w1 = W - (H1 - c1);
|
|
14751
14796
|
return s1 ? H(w1, Y - (H1 - d1)) : w1;
|
|
14752
14797
|
}(h1));
|
|
14753
14798
|
}
|
|
14754
|
-
function
|
|
14799
|
+
function R1(h1) {
|
|
14755
14800
|
return X = void 0, y1 && q ? G1(h1) : (q = j = void 0, Q);
|
|
14756
14801
|
}
|
|
14757
|
-
function
|
|
14802
|
+
function Z1() {
|
|
14758
14803
|
var h1 = k(), H1 = N1(h1);
|
|
14759
14804
|
if (q = arguments, j = this, c1 = h1, H1) {
|
|
14760
14805
|
if (X === void 0) return function(w1) {
|
|
@@ -14764,11 +14809,11 @@ var S4 = { exports: {} };
|
|
|
14764
14809
|
}
|
|
14765
14810
|
return X === void 0 && (X = setTimeout(P1, W)), Q;
|
|
14766
14811
|
}
|
|
14767
|
-
return W = A(W) || 0, Z(e1) && (o1 = !!e1.leading, Y = (s1 = "maxWait" in e1) ? x(A(e1.maxWait) || 0, W) : Y, y1 = "trailing" in e1 ? !!e1.trailing : y1),
|
|
14812
|
+
return W = A(W) || 0, Z(e1) && (o1 = !!e1.leading, Y = (s1 = "maxWait" in e1) ? x(A(e1.maxWait) || 0, W) : Y, y1 = "trailing" in e1 ? !!e1.trailing : y1), Z1.cancel = function() {
|
|
14768
14813
|
X !== void 0 && clearTimeout(X), d1 = 0, q = c1 = j = X = void 0;
|
|
14769
|
-
},
|
|
14770
|
-
return X === void 0 ? Q :
|
|
14771
|
-
},
|
|
14814
|
+
}, Z1.flush = function() {
|
|
14815
|
+
return X === void 0 ? Q : R1(k());
|
|
14816
|
+
}, Z1;
|
|
14772
14817
|
}(P, O, { leading: U, maxWait: O, trailing: I });
|
|
14773
14818
|
};
|
|
14774
14819
|
}, 694: (i, o, s) => {
|
|
@@ -14778,7 +14823,7 @@ var S4 = { exports: {} };
|
|
|
14778
14823
|
function u() {
|
|
14779
14824
|
}
|
|
14780
14825
|
u.resetWarningCache = c, i.exports = function() {
|
|
14781
|
-
function d(
|
|
14826
|
+
function d(g, w, C, y, m, S) {
|
|
14782
14827
|
if (S !== l) {
|
|
14783
14828
|
var x = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
|
14784
14829
|
throw x.name = "Invariant Violation", x;
|
|
@@ -14826,33 +14871,33 @@ var S4 = { exports: {} };
|
|
|
14826
14871
|
return typeof window < "u" && "IntersectionObserver" in window && "isIntersecting" in window.IntersectionObserverEntry.prototype;
|
|
14827
14872
|
}
|
|
14828
14873
|
function c(T) {
|
|
14829
|
-
return c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
14830
|
-
return typeof
|
|
14831
|
-
} : function(
|
|
14832
|
-
return
|
|
14874
|
+
return c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(p) {
|
|
14875
|
+
return typeof p;
|
|
14876
|
+
} : function(p) {
|
|
14877
|
+
return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
|
|
14833
14878
|
}, c(T);
|
|
14834
14879
|
}
|
|
14835
|
-
function u(T,
|
|
14880
|
+
function u(T, p) {
|
|
14836
14881
|
var V = Object.keys(T);
|
|
14837
14882
|
if (Object.getOwnPropertySymbols) {
|
|
14838
14883
|
var b = Object.getOwnPropertySymbols(T);
|
|
14839
|
-
|
|
14884
|
+
p && (b = b.filter(function(v) {
|
|
14840
14885
|
return Object.getOwnPropertyDescriptor(T, v).enumerable;
|
|
14841
14886
|
})), V.push.apply(V, b);
|
|
14842
14887
|
}
|
|
14843
14888
|
return V;
|
|
14844
14889
|
}
|
|
14845
|
-
function d(T,
|
|
14846
|
-
return (
|
|
14890
|
+
function d(T, p, V) {
|
|
14891
|
+
return (p = h(p)) in T ? Object.defineProperty(T, p, { value: V, enumerable: !0, configurable: !0, writable: !0 }) : T[p] = V, T;
|
|
14847
14892
|
}
|
|
14848
|
-
function f(T,
|
|
14849
|
-
for (var V = 0; V <
|
|
14850
|
-
var b =
|
|
14893
|
+
function f(T, p) {
|
|
14894
|
+
for (var V = 0; V < p.length; V++) {
|
|
14895
|
+
var b = p[V];
|
|
14851
14896
|
b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(T, h(b.key), b);
|
|
14852
14897
|
}
|
|
14853
14898
|
}
|
|
14854
14899
|
function h(T) {
|
|
14855
|
-
var
|
|
14900
|
+
var p = function(V, b) {
|
|
14856
14901
|
if (c(V) != "object" || !V) return V;
|
|
14857
14902
|
var v = V[Symbol.toPrimitive];
|
|
14858
14903
|
if (v !== void 0) {
|
|
@@ -14862,17 +14907,17 @@ var S4 = { exports: {} };
|
|
|
14862
14907
|
}
|
|
14863
14908
|
return String(V);
|
|
14864
14909
|
}(T);
|
|
14865
|
-
return c(
|
|
14910
|
+
return c(p) == "symbol" ? p : p + "";
|
|
14866
14911
|
}
|
|
14867
|
-
function
|
|
14868
|
-
return
|
|
14912
|
+
function g(T, p, V) {
|
|
14913
|
+
return p = C(p), function(b, v) {
|
|
14869
14914
|
if (v && (c(v) == "object" || typeof v == "function")) return v;
|
|
14870
14915
|
if (v !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
14871
14916
|
return function(L) {
|
|
14872
14917
|
if (L === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
14873
14918
|
return L;
|
|
14874
14919
|
}(b);
|
|
14875
|
-
}(T, w() ? Reflect.construct(
|
|
14920
|
+
}(T, w() ? Reflect.construct(p, V || [], C(T).constructor) : p.apply(T, V));
|
|
14876
14921
|
}
|
|
14877
14922
|
function w() {
|
|
14878
14923
|
try {
|
|
@@ -14885,25 +14930,25 @@ var S4 = { exports: {} };
|
|
|
14885
14930
|
})();
|
|
14886
14931
|
}
|
|
14887
14932
|
function C(T) {
|
|
14888
|
-
return C = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(
|
|
14889
|
-
return
|
|
14933
|
+
return C = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(p) {
|
|
14934
|
+
return p.__proto__ || Object.getPrototypeOf(p);
|
|
14890
14935
|
}, C(T);
|
|
14891
14936
|
}
|
|
14892
|
-
function y(T,
|
|
14937
|
+
function y(T, p) {
|
|
14893
14938
|
return y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(V, b) {
|
|
14894
14939
|
return V.__proto__ = b, V;
|
|
14895
|
-
}, y(T,
|
|
14940
|
+
}, y(T, p);
|
|
14896
14941
|
}
|
|
14897
14942
|
var m = function(T) {
|
|
14898
|
-
T.forEach(function(
|
|
14899
|
-
|
|
14943
|
+
T.forEach(function(p) {
|
|
14944
|
+
p.isIntersecting && p.target.onVisible();
|
|
14900
14945
|
});
|
|
14901
14946
|
}, S = {}, x = function(T) {
|
|
14902
|
-
function
|
|
14947
|
+
function p(v) {
|
|
14903
14948
|
var L;
|
|
14904
14949
|
if (function(R, F) {
|
|
14905
14950
|
if (!(R instanceof F)) throw new TypeError("Cannot call a class as a function");
|
|
14906
|
-
}(this,
|
|
14951
|
+
}(this, p), (L = g(this, p, [v])).supportsObserver = !v.scrollPosition && v.useIntersectionObserver && l(), L.supportsObserver) {
|
|
14907
14952
|
var D = v.threshold;
|
|
14908
14953
|
L.observer = function(R) {
|
|
14909
14954
|
return S[R] = S[R] || new IntersectionObserver(m, { rootMargin: R + "px" }), S[R];
|
|
@@ -14914,7 +14959,7 @@ var S4 = { exports: {} };
|
|
|
14914
14959
|
return function(v, L) {
|
|
14915
14960
|
if (typeof L != "function" && L !== null) throw new TypeError("Super expression must either be null or a function");
|
|
14916
14961
|
v.prototype = Object.create(L && L.prototype, { constructor: { value: v, writable: !0, configurable: !0 } }), Object.defineProperty(v, "prototype", { writable: !1 }), L && y(v, L);
|
|
14917
|
-
}(
|
|
14962
|
+
}(p, T), V = p, b = [{ key: "componentDidMount", value: function() {
|
|
14918
14963
|
this.placeholder && this.observer && (this.placeholder.onVisible = this.props.onVisible, this.observer.observe(this.placeholder)), this.supportsObserver || this.updateVisibility();
|
|
14919
14964
|
} }, { key: "componentWillUnmount", value: function() {
|
|
14920
14965
|
this.observer && this.placeholder && this.observer.unobserve(this.placeholder);
|
|
@@ -14954,42 +14999,42 @@ var S4 = { exports: {} };
|
|
|
14954
14999
|
x.propTypes = { onVisible: s.PropTypes.func.isRequired, className: s.PropTypes.string, height: s.PropTypes.oneOfType([s.PropTypes.number, s.PropTypes.string]), placeholder: s.PropTypes.element, threshold: s.PropTypes.number, useIntersectionObserver: s.PropTypes.bool, scrollPosition: s.PropTypes.shape({ x: s.PropTypes.number.isRequired, y: s.PropTypes.number.isRequired }), width: s.PropTypes.oneOfType([s.PropTypes.number, s.PropTypes.string]) }, x.defaultProps = { className: "", placeholder: null, threshold: 100, useIntersectionObserver: !0 };
|
|
14955
15000
|
const H = x;
|
|
14956
15001
|
var k = n(181), Z = n.n(k), A = n(858), P = n.n(A), O = function(T) {
|
|
14957
|
-
var
|
|
14958
|
-
return
|
|
15002
|
+
var p = getComputedStyle(T, null);
|
|
15003
|
+
return p.getPropertyValue("overflow") + p.getPropertyValue("overflow-y") + p.getPropertyValue("overflow-x");
|
|
14959
15004
|
};
|
|
14960
15005
|
const N = function(T) {
|
|
14961
15006
|
if (!(T instanceof HTMLElement)) return window;
|
|
14962
|
-
for (var
|
|
14963
|
-
if (/(scroll|auto)/.test(O(
|
|
14964
|
-
|
|
15007
|
+
for (var p = T; p && p instanceof HTMLElement; ) {
|
|
15008
|
+
if (/(scroll|auto)/.test(O(p))) return p;
|
|
15009
|
+
p = p.parentNode;
|
|
14965
15010
|
}
|
|
14966
15011
|
return window;
|
|
14967
15012
|
};
|
|
14968
15013
|
function U(T) {
|
|
14969
|
-
return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
14970
|
-
return typeof
|
|
14971
|
-
} : function(
|
|
14972
|
-
return
|
|
15014
|
+
return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(p) {
|
|
15015
|
+
return typeof p;
|
|
15016
|
+
} : function(p) {
|
|
15017
|
+
return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
|
|
14973
15018
|
}, U(T);
|
|
14974
15019
|
}
|
|
14975
15020
|
var I = ["delayMethod", "delayTime"];
|
|
14976
15021
|
function _() {
|
|
14977
15022
|
return _ = Object.assign ? Object.assign.bind() : function(T) {
|
|
14978
|
-
for (var
|
|
14979
|
-
var V = arguments[
|
|
15023
|
+
for (var p = 1; p < arguments.length; p++) {
|
|
15024
|
+
var V = arguments[p];
|
|
14980
15025
|
for (var b in V) ({}).hasOwnProperty.call(V, b) && (T[b] = V[b]);
|
|
14981
15026
|
}
|
|
14982
15027
|
return T;
|
|
14983
15028
|
}, _.apply(null, arguments);
|
|
14984
15029
|
}
|
|
14985
|
-
function W(T,
|
|
14986
|
-
for (var V = 0; V <
|
|
14987
|
-
var b =
|
|
15030
|
+
function W(T, p) {
|
|
15031
|
+
for (var V = 0; V < p.length; V++) {
|
|
15032
|
+
var b = p[V];
|
|
14988
15033
|
b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(T, e1(b.key), b);
|
|
14989
15034
|
}
|
|
14990
15035
|
}
|
|
14991
15036
|
function e1(T) {
|
|
14992
|
-
var
|
|
15037
|
+
var p = function(V, b) {
|
|
14993
15038
|
if (U(V) != "object" || !V) return V;
|
|
14994
15039
|
var v = V[Symbol.toPrimitive];
|
|
14995
15040
|
if (v !== void 0) {
|
|
@@ -14999,14 +15044,14 @@ var S4 = { exports: {} };
|
|
|
14999
15044
|
}
|
|
15000
15045
|
return String(V);
|
|
15001
15046
|
}(T);
|
|
15002
|
-
return U(
|
|
15047
|
+
return U(p) == "symbol" ? p : p + "";
|
|
15003
15048
|
}
|
|
15004
|
-
function q(T,
|
|
15005
|
-
return
|
|
15049
|
+
function q(T, p, V) {
|
|
15050
|
+
return p = Q(p), j(T, Y() ? Reflect.construct(p, V || [], Q(T).constructor) : p.apply(T, V));
|
|
15006
15051
|
}
|
|
15007
|
-
function j(T,
|
|
15008
|
-
if (
|
|
15009
|
-
if (
|
|
15052
|
+
function j(T, p) {
|
|
15053
|
+
if (p && (U(p) == "object" || typeof p == "function")) return p;
|
|
15054
|
+
if (p !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
15010
15055
|
return function(V) {
|
|
15011
15056
|
if (V === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15012
15057
|
return V;
|
|
@@ -15023,14 +15068,14 @@ var S4 = { exports: {} };
|
|
|
15023
15068
|
})();
|
|
15024
15069
|
}
|
|
15025
15070
|
function Q(T) {
|
|
15026
|
-
return Q = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(
|
|
15027
|
-
return
|
|
15071
|
+
return Q = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(p) {
|
|
15072
|
+
return p.__proto__ || Object.getPrototypeOf(p);
|
|
15028
15073
|
}, Q(T);
|
|
15029
15074
|
}
|
|
15030
|
-
function X(T,
|
|
15075
|
+
function X(T, p) {
|
|
15031
15076
|
return X = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(V, b) {
|
|
15032
15077
|
return V.__proto__ = b, V;
|
|
15033
|
-
}, X(T,
|
|
15078
|
+
}, X(T, p);
|
|
15034
15079
|
}
|
|
15035
15080
|
var c1 = function() {
|
|
15036
15081
|
return typeof window > "u" ? 0 : window.scrollX || window.pageXOffset;
|
|
@@ -15038,7 +15083,7 @@ var S4 = { exports: {} };
|
|
|
15038
15083
|
return typeof window > "u" ? 0 : window.scrollY || window.pageYOffset;
|
|
15039
15084
|
};
|
|
15040
15085
|
const o1 = function(T) {
|
|
15041
|
-
var
|
|
15086
|
+
var p = function(V) {
|
|
15042
15087
|
function b(D) {
|
|
15043
15088
|
var R;
|
|
15044
15089
|
if (function(z, n1) {
|
|
@@ -15084,23 +15129,23 @@ var S4 = { exports: {} };
|
|
|
15084
15129
|
} }], L && W(v.prototype, L), Object.defineProperty(v, "prototype", { writable: !1 }), v;
|
|
15085
15130
|
var v, L;
|
|
15086
15131
|
}(o().Component);
|
|
15087
|
-
return
|
|
15132
|
+
return p.propTypes = { delayMethod: s.PropTypes.oneOf(["debounce", "throttle"]), delayTime: s.PropTypes.number, useIntersectionObserver: s.PropTypes.bool }, p.defaultProps = { delayMethod: "throttle", delayTime: 300, useIntersectionObserver: !0 }, p;
|
|
15088
15133
|
};
|
|
15089
15134
|
function s1(T) {
|
|
15090
|
-
return s1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
15091
|
-
return typeof
|
|
15092
|
-
} : function(
|
|
15093
|
-
return
|
|
15135
|
+
return s1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(p) {
|
|
15136
|
+
return typeof p;
|
|
15137
|
+
} : function(p) {
|
|
15138
|
+
return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
|
|
15094
15139
|
}, s1(T);
|
|
15095
15140
|
}
|
|
15096
|
-
function y1(T,
|
|
15097
|
-
for (var V = 0; V <
|
|
15098
|
-
var b =
|
|
15141
|
+
function y1(T, p) {
|
|
15142
|
+
for (var V = 0; V < p.length; V++) {
|
|
15143
|
+
var b = p[V];
|
|
15099
15144
|
b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(T, G1(b.key), b);
|
|
15100
15145
|
}
|
|
15101
15146
|
}
|
|
15102
15147
|
function G1(T) {
|
|
15103
|
-
var
|
|
15148
|
+
var p = function(V, b) {
|
|
15104
15149
|
if (s1(V) != "object" || !V) return V;
|
|
15105
15150
|
var v = V[Symbol.toPrimitive];
|
|
15106
15151
|
if (v !== void 0) {
|
|
@@ -15110,17 +15155,17 @@ var S4 = { exports: {} };
|
|
|
15110
15155
|
}
|
|
15111
15156
|
return String(V);
|
|
15112
15157
|
}(T);
|
|
15113
|
-
return s1(
|
|
15158
|
+
return s1(p) == "symbol" ? p : p + "";
|
|
15114
15159
|
}
|
|
15115
|
-
function N1(T,
|
|
15116
|
-
return
|
|
15160
|
+
function N1(T, p, V) {
|
|
15161
|
+
return p = R1(p), function(b, v) {
|
|
15117
15162
|
if (v && (s1(v) == "object" || typeof v == "function")) return v;
|
|
15118
15163
|
if (v !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
15119
15164
|
return function(L) {
|
|
15120
15165
|
if (L === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15121
15166
|
return L;
|
|
15122
15167
|
}(b);
|
|
15123
|
-
}(T, P1() ? Reflect.construct(
|
|
15168
|
+
}(T, P1() ? Reflect.construct(p, V || [], R1(T).constructor) : p.apply(T, V));
|
|
15124
15169
|
}
|
|
15125
15170
|
function P1() {
|
|
15126
15171
|
try {
|
|
@@ -15132,46 +15177,46 @@ var S4 = { exports: {} };
|
|
|
15132
15177
|
return !!T;
|
|
15133
15178
|
})();
|
|
15134
15179
|
}
|
|
15135
|
-
function
|
|
15136
|
-
return
|
|
15137
|
-
return
|
|
15138
|
-
},
|
|
15180
|
+
function R1(T) {
|
|
15181
|
+
return R1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(p) {
|
|
15182
|
+
return p.__proto__ || Object.getPrototypeOf(p);
|
|
15183
|
+
}, R1(T);
|
|
15139
15184
|
}
|
|
15140
|
-
function
|
|
15141
|
-
return
|
|
15185
|
+
function Z1(T, p) {
|
|
15186
|
+
return Z1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(V, b) {
|
|
15142
15187
|
return V.__proto__ = b, V;
|
|
15143
|
-
},
|
|
15188
|
+
}, Z1(T, p);
|
|
15144
15189
|
}
|
|
15145
15190
|
var h1 = function(T) {
|
|
15146
|
-
function
|
|
15191
|
+
function p(v) {
|
|
15147
15192
|
return function(L, D) {
|
|
15148
15193
|
if (!(L instanceof D)) throw new TypeError("Cannot call a class as a function");
|
|
15149
|
-
}(this,
|
|
15194
|
+
}(this, p), N1(this, p, [v]);
|
|
15150
15195
|
}
|
|
15151
15196
|
return function(v, L) {
|
|
15152
15197
|
if (typeof L != "function" && L !== null) throw new TypeError("Super expression must either be null or a function");
|
|
15153
|
-
v.prototype = Object.create(L && L.prototype, { constructor: { value: v, writable: !0, configurable: !0 } }), Object.defineProperty(v, "prototype", { writable: !1 }), L &&
|
|
15154
|
-
}(
|
|
15198
|
+
v.prototype = Object.create(L && L.prototype, { constructor: { value: v, writable: !0, configurable: !0 } }), Object.defineProperty(v, "prototype", { writable: !1 }), L && Z1(v, L);
|
|
15199
|
+
}(p, T), V = p, (b = [{ key: "render", value: function() {
|
|
15155
15200
|
return o().createElement(H, this.props);
|
|
15156
15201
|
} }]) && y1(V.prototype, b), Object.defineProperty(V, "prototype", { writable: !1 }), V;
|
|
15157
15202
|
var V, b;
|
|
15158
15203
|
}(o().Component);
|
|
15159
15204
|
const H1 = o1(h1);
|
|
15160
15205
|
function w1(T) {
|
|
15161
|
-
return w1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
15162
|
-
return typeof
|
|
15163
|
-
} : function(
|
|
15164
|
-
return
|
|
15206
|
+
return w1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(p) {
|
|
15207
|
+
return typeof p;
|
|
15208
|
+
} : function(p) {
|
|
15209
|
+
return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
|
|
15165
15210
|
}, w1(T);
|
|
15166
15211
|
}
|
|
15167
|
-
function G(T,
|
|
15168
|
-
for (var V = 0; V <
|
|
15169
|
-
var b =
|
|
15212
|
+
function G(T, p) {
|
|
15213
|
+
for (var V = 0; V < p.length; V++) {
|
|
15214
|
+
var b = p[V];
|
|
15170
15215
|
b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(T, Vt(b.key), b);
|
|
15171
15216
|
}
|
|
15172
15217
|
}
|
|
15173
15218
|
function Vt(T) {
|
|
15174
|
-
var
|
|
15219
|
+
var p = function(V, b) {
|
|
15175
15220
|
if (w1(V) != "object" || !V) return V;
|
|
15176
15221
|
var v = V[Symbol.toPrimitive];
|
|
15177
15222
|
if (v !== void 0) {
|
|
@@ -15181,17 +15226,17 @@ var S4 = { exports: {} };
|
|
|
15181
15226
|
}
|
|
15182
15227
|
return String(V);
|
|
15183
15228
|
}(T);
|
|
15184
|
-
return w1(
|
|
15229
|
+
return w1(p) == "symbol" ? p : p + "";
|
|
15185
15230
|
}
|
|
15186
|
-
function Mt(T,
|
|
15187
|
-
return
|
|
15231
|
+
function Mt(T, p, V) {
|
|
15232
|
+
return p = Me(p), function(b, v) {
|
|
15188
15233
|
if (v && (w1(v) == "object" || typeof v == "function")) return v;
|
|
15189
15234
|
if (v !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
15190
15235
|
return function(L) {
|
|
15191
15236
|
if (L === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15192
15237
|
return L;
|
|
15193
15238
|
}(b);
|
|
15194
|
-
}(T, Ve() ? Reflect.construct(
|
|
15239
|
+
}(T, Ve() ? Reflect.construct(p, V || [], Me(T).constructor) : p.apply(T, V));
|
|
15195
15240
|
}
|
|
15196
15241
|
function Ve() {
|
|
15197
15242
|
try {
|
|
@@ -15204,28 +15249,28 @@ var S4 = { exports: {} };
|
|
|
15204
15249
|
})();
|
|
15205
15250
|
}
|
|
15206
15251
|
function Me(T) {
|
|
15207
|
-
return Me = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(
|
|
15208
|
-
return
|
|
15252
|
+
return Me = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(p) {
|
|
15253
|
+
return p.__proto__ || Object.getPrototypeOf(p);
|
|
15209
15254
|
}, Me(T);
|
|
15210
15255
|
}
|
|
15211
|
-
function Xe(T,
|
|
15256
|
+
function Xe(T, p) {
|
|
15212
15257
|
return Xe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(V, b) {
|
|
15213
15258
|
return V.__proto__ = b, V;
|
|
15214
|
-
}, Xe(T,
|
|
15259
|
+
}, Xe(T, p);
|
|
15215
15260
|
}
|
|
15216
15261
|
var F1 = function(T) {
|
|
15217
|
-
function
|
|
15262
|
+
function p(v) {
|
|
15218
15263
|
var L;
|
|
15219
15264
|
(function(n1, J) {
|
|
15220
15265
|
if (!(n1 instanceof J)) throw new TypeError("Cannot call a class as a function");
|
|
15221
|
-
})(this,
|
|
15266
|
+
})(this, p), L = Mt(this, p, [v]);
|
|
15222
15267
|
var D = v.afterLoad, R = v.beforeLoad, F = v.scrollPosition, z = v.visibleByDefault;
|
|
15223
15268
|
return L.state = { visible: z }, z && (R(), D()), L.onVisible = L.onVisible.bind(L), L.isScrollTracked = !!(F && Number.isFinite(F.x) && F.x >= 0 && Number.isFinite(F.y) && F.y >= 0), L;
|
|
15224
15269
|
}
|
|
15225
15270
|
return function(v, L) {
|
|
15226
15271
|
if (typeof L != "function" && L !== null) throw new TypeError("Super expression must either be null or a function");
|
|
15227
15272
|
v.prototype = Object.create(L && L.prototype, { constructor: { value: v, writable: !0, configurable: !0 } }), Object.defineProperty(v, "prototype", { writable: !1 }), L && Xe(v, L);
|
|
15228
|
-
}(
|
|
15273
|
+
}(p, T), V = p, (b = [{ key: "componentDidUpdate", value: function(v, L) {
|
|
15229
15274
|
L.visible !== this.state.visible && this.props.afterLoad();
|
|
15230
15275
|
} }, { key: "onVisible", value: function() {
|
|
15231
15276
|
this.props.beforeLoad(), this.setState({ visible: !0 });
|
|
@@ -15243,27 +15288,27 @@ var S4 = { exports: {} };
|
|
|
15243
15288
|
}, useIntersectionObserver: !0, visibleByDefault: !1 };
|
|
15244
15289
|
const qe = F1;
|
|
15245
15290
|
function ee(T) {
|
|
15246
|
-
return ee = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
15247
|
-
return typeof
|
|
15248
|
-
} : function(
|
|
15249
|
-
return
|
|
15291
|
+
return ee = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(p) {
|
|
15292
|
+
return typeof p;
|
|
15293
|
+
} : function(p) {
|
|
15294
|
+
return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
|
|
15250
15295
|
}, ee(T);
|
|
15251
15296
|
}
|
|
15252
15297
|
var he = ["afterLoad", "beforeLoad", "delayMethod", "delayTime", "effect", "placeholder", "placeholderSrc", "scrollPosition", "threshold", "useIntersectionObserver", "visibleByDefault", "wrapperClassName", "wrapperProps"];
|
|
15253
|
-
function St(T,
|
|
15298
|
+
function St(T, p) {
|
|
15254
15299
|
var V = Object.keys(T);
|
|
15255
15300
|
if (Object.getOwnPropertySymbols) {
|
|
15256
15301
|
var b = Object.getOwnPropertySymbols(T);
|
|
15257
|
-
|
|
15302
|
+
p && (b = b.filter(function(v) {
|
|
15258
15303
|
return Object.getOwnPropertyDescriptor(T, v).enumerable;
|
|
15259
15304
|
})), V.push.apply(V, b);
|
|
15260
15305
|
}
|
|
15261
15306
|
return V;
|
|
15262
15307
|
}
|
|
15263
15308
|
function Qe(T) {
|
|
15264
|
-
for (var
|
|
15265
|
-
var V = arguments[
|
|
15266
|
-
|
|
15309
|
+
for (var p = 1; p < arguments.length; p++) {
|
|
15310
|
+
var V = arguments[p] != null ? arguments[p] : {};
|
|
15311
|
+
p % 2 ? St(Object(V), !0).forEach(function(b) {
|
|
15267
15312
|
w2(T, b, V[b]);
|
|
15268
15313
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(T, Object.getOwnPropertyDescriptors(V)) : St(Object(V)).forEach(function(b) {
|
|
15269
15314
|
Object.defineProperty(T, b, Object.getOwnPropertyDescriptor(V, b));
|
|
@@ -15271,26 +15316,26 @@ var S4 = { exports: {} };
|
|
|
15271
15316
|
}
|
|
15272
15317
|
return T;
|
|
15273
15318
|
}
|
|
15274
|
-
function w2(T,
|
|
15275
|
-
return (
|
|
15319
|
+
function w2(T, p, V) {
|
|
15320
|
+
return (p = Ht(p)) in T ? Object.defineProperty(T, p, { value: V, enumerable: !0, configurable: !0, writable: !0 }) : T[p] = V, T;
|
|
15276
15321
|
}
|
|
15277
15322
|
function Se() {
|
|
15278
15323
|
return Se = Object.assign ? Object.assign.bind() : function(T) {
|
|
15279
|
-
for (var
|
|
15280
|
-
var V = arguments[
|
|
15324
|
+
for (var p = 1; p < arguments.length; p++) {
|
|
15325
|
+
var V = arguments[p];
|
|
15281
15326
|
for (var b in V) ({}).hasOwnProperty.call(V, b) && (T[b] = V[b]);
|
|
15282
15327
|
}
|
|
15283
15328
|
return T;
|
|
15284
15329
|
}, Se.apply(null, arguments);
|
|
15285
15330
|
}
|
|
15286
|
-
function He(T,
|
|
15287
|
-
for (var V = 0; V <
|
|
15288
|
-
var b =
|
|
15331
|
+
function He(T, p) {
|
|
15332
|
+
for (var V = 0; V < p.length; V++) {
|
|
15333
|
+
var b = p[V];
|
|
15289
15334
|
b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(T, Ht(b.key), b);
|
|
15290
15335
|
}
|
|
15291
15336
|
}
|
|
15292
15337
|
function Ht(T) {
|
|
15293
|
-
var
|
|
15338
|
+
var p = function(V, b) {
|
|
15294
15339
|
if (ee(V) != "object" || !V) return V;
|
|
15295
15340
|
var v = V[Symbol.toPrimitive];
|
|
15296
15341
|
if (v !== void 0) {
|
|
@@ -15300,17 +15345,17 @@ var S4 = { exports: {} };
|
|
|
15300
15345
|
}
|
|
15301
15346
|
return String(V);
|
|
15302
15347
|
}(T);
|
|
15303
|
-
return ee(
|
|
15348
|
+
return ee(p) == "symbol" ? p : p + "";
|
|
15304
15349
|
}
|
|
15305
|
-
function Tt(T,
|
|
15306
|
-
return
|
|
15350
|
+
function Tt(T, p, V) {
|
|
15351
|
+
return p = j1(p), function(b, v) {
|
|
15307
15352
|
if (v && (ee(v) == "object" || typeof v == "function")) return v;
|
|
15308
15353
|
if (v !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
15309
15354
|
return function(L) {
|
|
15310
15355
|
if (L === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15311
15356
|
return L;
|
|
15312
15357
|
}(b);
|
|
15313
|
-
}(T, Pt() ? Reflect.construct(
|
|
15358
|
+
}(T, Pt() ? Reflect.construct(p, V || [], j1(T).constructor) : p.apply(T, V));
|
|
15314
15359
|
}
|
|
15315
15360
|
function Pt() {
|
|
15316
15361
|
try {
|
|
@@ -15323,26 +15368,26 @@ var S4 = { exports: {} };
|
|
|
15323
15368
|
})();
|
|
15324
15369
|
}
|
|
15325
15370
|
function j1(T) {
|
|
15326
|
-
return j1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(
|
|
15327
|
-
return
|
|
15371
|
+
return j1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(p) {
|
|
15372
|
+
return p.__proto__ || Object.getPrototypeOf(p);
|
|
15328
15373
|
}, j1(T);
|
|
15329
15374
|
}
|
|
15330
|
-
function Te(T,
|
|
15375
|
+
function Te(T, p) {
|
|
15331
15376
|
return Te = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(V, b) {
|
|
15332
15377
|
return V.__proto__ = b, V;
|
|
15333
|
-
}, Te(T,
|
|
15378
|
+
}, Te(T, p);
|
|
15334
15379
|
}
|
|
15335
15380
|
var Je = function(T) {
|
|
15336
|
-
function
|
|
15381
|
+
function p(v) {
|
|
15337
15382
|
var L;
|
|
15338
15383
|
return function(D, R) {
|
|
15339
15384
|
if (!(D instanceof R)) throw new TypeError("Cannot call a class as a function");
|
|
15340
|
-
}(this,
|
|
15385
|
+
}(this, p), (L = Tt(this, p, [v])).state = { loaded: !1 }, L;
|
|
15341
15386
|
}
|
|
15342
15387
|
return function(v, L) {
|
|
15343
15388
|
if (typeof L != "function" && L !== null) throw new TypeError("Super expression must either be null or a function");
|
|
15344
15389
|
v.prototype = Object.create(L && L.prototype, { constructor: { value: v, writable: !0, configurable: !0 } }), Object.defineProperty(v, "prototype", { writable: !1 }), L && Te(v, L);
|
|
15345
|
-
}(
|
|
15390
|
+
}(p, T), V = p, b = [{ key: "onImageLoad", value: function() {
|
|
15346
15391
|
var v = this;
|
|
15347
15392
|
return this.state.loaded ? null : function(L) {
|
|
15348
15393
|
v.props.onLoad(L), v.props.afterLoad(), v.setState({ loaded: !0 });
|
|
@@ -15396,8 +15441,8 @@ const G2 = "data:image/svg+xml,%3csvg%20width='384'%20height='216'%20viewBox='0%
|
|
|
15396
15441
|
className: i,
|
|
15397
15442
|
thumbnailClassName: o
|
|
15398
15443
|
}) => {
|
|
15399
|
-
const [s, l] =
|
|
15400
|
-
|
|
15444
|
+
const [s, l] = S1(!1), [c, u] = S1(e ?? G2);
|
|
15445
|
+
M1(() => {
|
|
15401
15446
|
u(e ?? G2);
|
|
15402
15447
|
}, [e]);
|
|
15403
15448
|
const d = () => {
|