@gardenfi/garden-book 0.2.3-beta.0 → 0.2.3-beta.1
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/components/atoms/Icons/EncryptedIcon.d.ts +5 -0
- package/dist/components/atoms/Icons/Rotate360Icon.d.ts +5 -0
- package/dist/components/atoms/Icons/RoutingIcon.d.ts +5 -0
- package/dist/components/atoms/Icons/index.d.ts +3 -0
- package/dist/components/organisms/Footer/Footer.d.ts +2 -0
- package/dist/components/organisms/Footer/Footer.stories.d.ts +2 -0
- package/dist/components/organisms/Footer/FooterBackgroundAnimation.d.ts +2 -1
- package/dist/components/organisms/Footer/FooterLink.d.ts +1 -0
- package/dist/ui.cjs.js +10 -10
- package/dist/ui.es.js +769 -685
- package/dist/ui.umd.js +10 -10
- package/package.json +10 -9
package/dist/ui.es.js
CHANGED
|
@@ -371,7 +371,7 @@ function isImage(e) {
|
|
|
371
371
|
return imageRegex.test(e);
|
|
372
372
|
}
|
|
373
373
|
function getDefaultConfig() {
|
|
374
|
-
const e = fromTheme("colors"), t = fromTheme("spacing"), i = fromTheme("blur"), n = fromTheme("brightness"), s = fromTheme("borderColor"), a = fromTheme("borderRadius"), o = fromTheme("borderSpacing"), l = fromTheme("borderWidth"), c = fromTheme("contrast"), f = fromTheme("grayscale"), u = fromTheme("hueRotate"), p = fromTheme("invert"), d = fromTheme("gap"), b = fromTheme("gradientColorStops"), C = fromTheme("gradientColorStopPositions"), y = fromTheme("inset"), E = fromTheme("margin"), m = fromTheme("opacity"), x = fromTheme("padding"), g = fromTheme("saturate"), S = fromTheme("scale"), T = fromTheme("sepia"),
|
|
374
|
+
const e = fromTheme("colors"), t = fromTheme("spacing"), i = fromTheme("blur"), n = fromTheme("brightness"), s = fromTheme("borderColor"), a = fromTheme("borderRadius"), o = fromTheme("borderSpacing"), l = fromTheme("borderWidth"), c = fromTheme("contrast"), f = fromTheme("grayscale"), u = fromTheme("hueRotate"), p = fromTheme("invert"), d = fromTheme("gap"), b = fromTheme("gradientColorStops"), C = fromTheme("gradientColorStopPositions"), y = fromTheme("inset"), E = fromTheme("margin"), m = fromTheme("opacity"), x = fromTheme("padding"), g = fromTheme("saturate"), S = fromTheme("scale"), T = fromTheme("sepia"), L = fromTheme("skew"), A = fromTheme("space"), _ = fromTheme("translate"), R = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", isArbitraryValue, t], j = () => [isArbitraryValue, t], N = () => ["", isLength, isArbitraryLength], K = () => ["auto", isNumber$1, isArbitraryValue], H = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], k = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], M = () => ["", "0", isArbitraryValue], F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [isNumber$1, isArbitraryNumber], W = () => [isNumber$1, isArbitraryValue];
|
|
375
375
|
return {
|
|
376
376
|
cacheSize: 500,
|
|
377
377
|
separator: ":",
|
|
@@ -522,21 +522,21 @@ function getDefaultConfig() {
|
|
|
522
522
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
523
523
|
*/
|
|
524
524
|
overscroll: [{
|
|
525
|
-
overscroll:
|
|
525
|
+
overscroll: R()
|
|
526
526
|
}],
|
|
527
527
|
/**
|
|
528
528
|
* Overscroll Behavior X
|
|
529
529
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
530
530
|
*/
|
|
531
531
|
"overscroll-x": [{
|
|
532
|
-
"overscroll-x":
|
|
532
|
+
"overscroll-x": R()
|
|
533
533
|
}],
|
|
534
534
|
/**
|
|
535
535
|
* Overscroll Behavior Y
|
|
536
536
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
537
537
|
*/
|
|
538
538
|
"overscroll-y": [{
|
|
539
|
-
"overscroll-y":
|
|
539
|
+
"overscroll-y": R()
|
|
540
540
|
}],
|
|
541
541
|
/**
|
|
542
542
|
* Position
|
|
@@ -965,7 +965,7 @@ function getDefaultConfig() {
|
|
|
965
965
|
* @see https://tailwindcss.com/docs/space
|
|
966
966
|
*/
|
|
967
967
|
"space-x": [{
|
|
968
|
-
"space-x": [
|
|
968
|
+
"space-x": [A]
|
|
969
969
|
}],
|
|
970
970
|
/**
|
|
971
971
|
* Space Between X Reverse
|
|
@@ -977,7 +977,7 @@ function getDefaultConfig() {
|
|
|
977
977
|
* @see https://tailwindcss.com/docs/space
|
|
978
978
|
*/
|
|
979
979
|
"space-y": [{
|
|
980
|
-
"space-y": [
|
|
980
|
+
"space-y": [A]
|
|
981
981
|
}],
|
|
982
982
|
/**
|
|
983
983
|
* Space Between Y Reverse
|
|
@@ -1751,14 +1751,14 @@ function getDefaultConfig() {
|
|
|
1751
1751
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1752
1752
|
*/
|
|
1753
1753
|
"mix-blend": [{
|
|
1754
|
-
"mix-blend": [...
|
|
1754
|
+
"mix-blend": [...k(), "plus-lighter", "plus-darker"]
|
|
1755
1755
|
}],
|
|
1756
1756
|
/**
|
|
1757
1757
|
* Background Blend Mode
|
|
1758
1758
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1759
1759
|
*/
|
|
1760
1760
|
"bg-blend": [{
|
|
1761
|
-
"bg-blend":
|
|
1761
|
+
"bg-blend": k()
|
|
1762
1762
|
}],
|
|
1763
1763
|
// Filters
|
|
1764
1764
|
/**
|
|
@@ -2037,14 +2037,14 @@ function getDefaultConfig() {
|
|
|
2037
2037
|
* @see https://tailwindcss.com/docs/skew
|
|
2038
2038
|
*/
|
|
2039
2039
|
"skew-x": [{
|
|
2040
|
-
"skew-x": [
|
|
2040
|
+
"skew-x": [L]
|
|
2041
2041
|
}],
|
|
2042
2042
|
/**
|
|
2043
2043
|
* Skew Y
|
|
2044
2044
|
* @see https://tailwindcss.com/docs/skew
|
|
2045
2045
|
*/
|
|
2046
2046
|
"skew-y": [{
|
|
2047
|
-
"skew-y": [
|
|
2047
|
+
"skew-y": [L]
|
|
2048
2048
|
}],
|
|
2049
2049
|
/**
|
|
2050
2050
|
* Transform Origin
|
|
@@ -2689,11 +2689,11 @@ var lottie$1 = { exports: {} };
|
|
|
2689
2689
|
n || (n = o(function(b) {
|
|
2690
2690
|
function C() {
|
|
2691
2691
|
function E(H, V) {
|
|
2692
|
-
var
|
|
2692
|
+
var k, P, M = H.length, F, I, W, q;
|
|
2693
2693
|
for (P = 0; P < M; P += 1)
|
|
2694
|
-
if (
|
|
2695
|
-
if (
|
|
2696
|
-
var X =
|
|
2694
|
+
if (k = H[P], "ks" in k && !k.completed) {
|
|
2695
|
+
if (k.completed = !0, k.hasMask) {
|
|
2696
|
+
var X = k.masksProperties;
|
|
2697
2697
|
for (I = X.length, F = 0; F < I; F += 1)
|
|
2698
2698
|
if (X[F].pt.k.i)
|
|
2699
2699
|
T(X[F].pt.k);
|
|
@@ -2701,31 +2701,31 @@ var lottie$1 = { exports: {} };
|
|
|
2701
2701
|
for (q = X[F].pt.k.length, W = 0; W < q; W += 1)
|
|
2702
2702
|
X[F].pt.k[W].s && T(X[F].pt.k[W].s[0]), X[F].pt.k[W].e && T(X[F].pt.k[W].e[0]);
|
|
2703
2703
|
}
|
|
2704
|
-
|
|
2704
|
+
k.ty === 0 ? (k.layers = g(k.refId, V), E(k.layers, V)) : k.ty === 4 ? S(k.shapes) : k.ty === 5 && N(k);
|
|
2705
2705
|
}
|
|
2706
2706
|
}
|
|
2707
2707
|
function m(H, V) {
|
|
2708
2708
|
if (H) {
|
|
2709
|
-
var
|
|
2710
|
-
for (
|
|
2711
|
-
H[
|
|
2709
|
+
var k = 0, P = H.length;
|
|
2710
|
+
for (k = 0; k < P; k += 1)
|
|
2711
|
+
H[k].t === 1 && (H[k].data.layers = g(H[k].data.refId, V), E(H[k].data.layers, V));
|
|
2712
2712
|
}
|
|
2713
2713
|
}
|
|
2714
2714
|
function x(H, V) {
|
|
2715
|
-
for (var
|
|
2716
|
-
if (V[
|
|
2717
|
-
return V[
|
|
2718
|
-
|
|
2715
|
+
for (var k = 0, P = V.length; k < P; ) {
|
|
2716
|
+
if (V[k].id === H)
|
|
2717
|
+
return V[k];
|
|
2718
|
+
k += 1;
|
|
2719
2719
|
}
|
|
2720
2720
|
return null;
|
|
2721
2721
|
}
|
|
2722
2722
|
function g(H, V) {
|
|
2723
|
-
var
|
|
2724
|
-
return
|
|
2723
|
+
var k = x(H, V);
|
|
2724
|
+
return k ? k.layers.__used ? JSON.parse(JSON.stringify(k.layers)) : (k.layers.__used = !0, k.layers) : null;
|
|
2725
2725
|
}
|
|
2726
2726
|
function S(H) {
|
|
2727
|
-
var V,
|
|
2728
|
-
for (V =
|
|
2727
|
+
var V, k = H.length, P, M;
|
|
2728
|
+
for (V = k - 1; V >= 0; V -= 1)
|
|
2729
2729
|
if (H[V].ty === "sh")
|
|
2730
2730
|
if (H[V].ks.k.i)
|
|
2731
2731
|
T(H[V].ks.k);
|
|
@@ -2735,15 +2735,15 @@ var lottie$1 = { exports: {} };
|
|
|
2735
2735
|
else H[V].ty === "gr" && S(H[V].it);
|
|
2736
2736
|
}
|
|
2737
2737
|
function T(H) {
|
|
2738
|
-
var V,
|
|
2739
|
-
for (V = 0; V <
|
|
2738
|
+
var V, k = H.i.length;
|
|
2739
|
+
for (V = 0; V < k; V += 1)
|
|
2740
2740
|
H.i[V][0] += H.v[V][0], H.i[V][1] += H.v[V][1], H.o[V][0] += H.v[V][0], H.o[V][1] += H.v[V][1];
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2743
|
-
var
|
|
2744
|
-
return H[0] >
|
|
2742
|
+
function L(H, V) {
|
|
2743
|
+
var k = V ? V.split(".") : [100, 100, 100];
|
|
2744
|
+
return H[0] > k[0] ? !0 : k[0] > H[0] ? !1 : H[1] > k[1] ? !0 : k[1] > H[1] ? !1 : H[2] > k[2] ? !0 : k[2] > H[2] ? !1 : null;
|
|
2745
2745
|
}
|
|
2746
|
-
var
|
|
2746
|
+
var A = /* @__PURE__ */ function() {
|
|
2747
2747
|
var H = [4, 4, 14];
|
|
2748
2748
|
function V(P) {
|
|
2749
2749
|
var M = P.t.d;
|
|
@@ -2754,25 +2754,25 @@ var lottie$1 = { exports: {} };
|
|
|
2754
2754
|
}]
|
|
2755
2755
|
};
|
|
2756
2756
|
}
|
|
2757
|
-
function
|
|
2757
|
+
function k(P) {
|
|
2758
2758
|
var M, F = P.length;
|
|
2759
2759
|
for (M = 0; M < F; M += 1)
|
|
2760
2760
|
P[M].ty === 5 && V(P[M]);
|
|
2761
2761
|
}
|
|
2762
2762
|
return function(P) {
|
|
2763
|
-
if (
|
|
2763
|
+
if (L(H, P.v) && (k(P.layers), P.assets)) {
|
|
2764
2764
|
var M, F = P.assets.length;
|
|
2765
2765
|
for (M = 0; M < F; M += 1)
|
|
2766
|
-
P.assets[M].layers &&
|
|
2766
|
+
P.assets[M].layers && k(P.assets[M].layers);
|
|
2767
2767
|
}
|
|
2768
2768
|
};
|
|
2769
2769
|
}(), _ = /* @__PURE__ */ function() {
|
|
2770
2770
|
var H = [4, 7, 99];
|
|
2771
2771
|
return function(V) {
|
|
2772
|
-
if (V.chars && !
|
|
2773
|
-
var
|
|
2774
|
-
for (
|
|
2775
|
-
var M = V.chars[
|
|
2772
|
+
if (V.chars && !L(H, V.v)) {
|
|
2773
|
+
var k, P = V.chars.length;
|
|
2774
|
+
for (k = 0; k < P; k += 1) {
|
|
2775
|
+
var M = V.chars[k];
|
|
2776
2776
|
M.data && M.data.shapes && (S(M.data.shapes), M.data.ip = 0, M.data.op = 99999, M.data.st = 0, M.data.sr = 1, M.data.ks = {
|
|
2777
2777
|
p: {
|
|
2778
2778
|
k: [0, 0],
|
|
@@ -2794,7 +2794,7 @@ var lottie$1 = { exports: {} };
|
|
|
2794
2794
|
k: 100,
|
|
2795
2795
|
a: 0
|
|
2796
2796
|
}
|
|
2797
|
-
}, V.chars[
|
|
2797
|
+
}, V.chars[k].t || (M.data.shapes.push({
|
|
2798
2798
|
ty: "no"
|
|
2799
2799
|
}), M.data.shapes[0].it.push({
|
|
2800
2800
|
p: {
|
|
@@ -2830,7 +2830,7 @@ var lottie$1 = { exports: {} };
|
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
};
|
|
2833
|
-
}(),
|
|
2833
|
+
}(), R = /* @__PURE__ */ function() {
|
|
2834
2834
|
var H = [5, 7, 15];
|
|
2835
2835
|
function V(P) {
|
|
2836
2836
|
var M = P.t.p;
|
|
@@ -2845,16 +2845,16 @@ var lottie$1 = { exports: {} };
|
|
|
2845
2845
|
k: M.r
|
|
2846
2846
|
});
|
|
2847
2847
|
}
|
|
2848
|
-
function
|
|
2848
|
+
function k(P) {
|
|
2849
2849
|
var M, F = P.length;
|
|
2850
2850
|
for (M = 0; M < F; M += 1)
|
|
2851
2851
|
P[M].ty === 5 && V(P[M]);
|
|
2852
2852
|
}
|
|
2853
2853
|
return function(P) {
|
|
2854
|
-
if (
|
|
2854
|
+
if (L(H, P.v) && (k(P.layers), P.assets)) {
|
|
2855
2855
|
var M, F = P.assets.length;
|
|
2856
2856
|
for (M = 0; M < F; M += 1)
|
|
2857
|
-
P.assets[M].layers &&
|
|
2857
|
+
P.assets[M].layers && k(P.assets[M].layers);
|
|
2858
2858
|
}
|
|
2859
2859
|
};
|
|
2860
2860
|
}(), $ = /* @__PURE__ */ function() {
|
|
@@ -2871,16 +2871,16 @@ var lottie$1 = { exports: {} };
|
|
|
2871
2871
|
else
|
|
2872
2872
|
P[M].c.k[0] /= 255, P[M].c.k[1] /= 255, P[M].c.k[2] /= 255, P[M].c.k[3] /= 255;
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2874
|
+
function k(P) {
|
|
2875
2875
|
var M, F = P.length;
|
|
2876
2876
|
for (M = 0; M < F; M += 1)
|
|
2877
2877
|
P[M].ty === 4 && V(P[M].shapes);
|
|
2878
2878
|
}
|
|
2879
2879
|
return function(P) {
|
|
2880
|
-
if (
|
|
2880
|
+
if (L(H, P.v) && (k(P.layers), P.assets)) {
|
|
2881
2881
|
var M, F = P.assets.length;
|
|
2882
2882
|
for (M = 0; M < F; M += 1)
|
|
2883
|
-
P.assets[M].layers &&
|
|
2883
|
+
P.assets[M].layers && k(P.assets[M].layers);
|
|
2884
2884
|
}
|
|
2885
2885
|
};
|
|
2886
2886
|
}(), z = /* @__PURE__ */ function() {
|
|
@@ -2896,7 +2896,7 @@ var lottie$1 = { exports: {} };
|
|
|
2896
2896
|
P[M].ks.k[I].s && (P[M].ks.k[I].s[0].c = P[M].closed), P[M].ks.k[I].e && (P[M].ks.k[I].e[0].c = P[M].closed);
|
|
2897
2897
|
else P[M].ty === "gr" && V(P[M].it);
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2899
|
+
function k(P) {
|
|
2900
2900
|
var M, F, I = P.length, W, q, X, ee;
|
|
2901
2901
|
for (F = 0; F < I; F += 1) {
|
|
2902
2902
|
if (M = P[F], M.hasMask) {
|
|
@@ -2912,21 +2912,21 @@ var lottie$1 = { exports: {} };
|
|
|
2912
2912
|
}
|
|
2913
2913
|
}
|
|
2914
2914
|
return function(P) {
|
|
2915
|
-
if (
|
|
2915
|
+
if (L(H, P.v) && (k(P.layers), P.assets)) {
|
|
2916
2916
|
var M, F = P.assets.length;
|
|
2917
2917
|
for (M = 0; M < F; M += 1)
|
|
2918
|
-
P.assets[M].layers &&
|
|
2918
|
+
P.assets[M].layers && k(P.assets[M].layers);
|
|
2919
2919
|
}
|
|
2920
2920
|
};
|
|
2921
2921
|
}();
|
|
2922
2922
|
function j(H) {
|
|
2923
|
-
H.__complete || ($(H),
|
|
2923
|
+
H.__complete || ($(H), A(H), _(H), R(H), z(H), E(H.layers, H.assets), m(H.chars, H.assets), H.__complete = !0);
|
|
2924
2924
|
}
|
|
2925
2925
|
function N(H) {
|
|
2926
2926
|
H.t.a.length === 0 && "m" in H.t.p;
|
|
2927
2927
|
}
|
|
2928
2928
|
var K = {};
|
|
2929
|
-
return K.completeData = j, K.checkColors = $, K.checkChars = _, K.checkPathProperties =
|
|
2929
|
+
return K.completeData = j, K.checkColors = $, K.checkChars = _, K.checkPathProperties = R, K.checkShapes = z, K.completeLayers = E, K;
|
|
2930
2930
|
}
|
|
2931
2931
|
if (a.dataManager || (a.dataManager = C()), a.assetLoader || (a.assetLoader = /* @__PURE__ */ function() {
|
|
2932
2932
|
function E(x) {
|
|
@@ -2934,28 +2934,28 @@ var lottie$1 = { exports: {} };
|
|
|
2934
2934
|
return g && x.responseType === "json" && g.indexOf("json") !== -1 || x.response && _typeof$5(x.response) === "object" ? x.response : x.response && typeof x.response == "string" ? JSON.parse(x.response) : x.responseText ? JSON.parse(x.responseText) : null;
|
|
2935
2935
|
}
|
|
2936
2936
|
function m(x, g, S, T) {
|
|
2937
|
-
var
|
|
2937
|
+
var L, A = new XMLHttpRequest();
|
|
2938
2938
|
try {
|
|
2939
|
-
|
|
2939
|
+
A.responseType = "json";
|
|
2940
2940
|
} catch {
|
|
2941
2941
|
}
|
|
2942
|
-
|
|
2943
|
-
if (
|
|
2944
|
-
if (
|
|
2945
|
-
|
|
2942
|
+
A.onreadystatechange = function() {
|
|
2943
|
+
if (A.readyState === 4)
|
|
2944
|
+
if (A.status === 200)
|
|
2945
|
+
L = E(A), S(L);
|
|
2946
2946
|
else
|
|
2947
2947
|
try {
|
|
2948
|
-
|
|
2948
|
+
L = E(A), S(L);
|
|
2949
2949
|
} catch (_) {
|
|
2950
2950
|
T && T(_);
|
|
2951
2951
|
}
|
|
2952
2952
|
};
|
|
2953
2953
|
try {
|
|
2954
|
-
|
|
2954
|
+
A.open(["G", "E", "T"].join(""), x, !0);
|
|
2955
2955
|
} catch {
|
|
2956
|
-
|
|
2956
|
+
A.open(["G", "E", "T"].join(""), g + "/" + x, !0);
|
|
2957
2957
|
}
|
|
2958
|
-
|
|
2958
|
+
A.send();
|
|
2959
2959
|
}
|
|
2960
2960
|
return {
|
|
2961
2961
|
load: m
|
|
@@ -3476,10 +3476,10 @@ var lottie$1 = { exports: {} };
|
|
|
3476
3476
|
var animationManager = function() {
|
|
3477
3477
|
var e = {}, t = [], i = 0, n = 0, s = 0, a = !0, o = !1;
|
|
3478
3478
|
function l(V) {
|
|
3479
|
-
for (var
|
|
3480
|
-
t[
|
|
3479
|
+
for (var k = 0, P = V.target; k < n; )
|
|
3480
|
+
t[k].animation === P && (t.splice(k, 1), k -= 1, n -= 1, P.isPaused || p()), k += 1;
|
|
3481
3481
|
}
|
|
3482
|
-
function c(V,
|
|
3482
|
+
function c(V, k) {
|
|
3483
3483
|
if (!V)
|
|
3484
3484
|
return null;
|
|
3485
3485
|
for (var P = 0; P < n; ) {
|
|
@@ -3488,11 +3488,11 @@ var lottie$1 = { exports: {} };
|
|
|
3488
3488
|
P += 1;
|
|
3489
3489
|
}
|
|
3490
3490
|
var M = new AnimationItem();
|
|
3491
|
-
return d(M, V), M.setData(V,
|
|
3491
|
+
return d(M, V), M.setData(V, k), M;
|
|
3492
3492
|
}
|
|
3493
3493
|
function f() {
|
|
3494
|
-
var V,
|
|
3495
|
-
for (V = 0; V <
|
|
3494
|
+
var V, k = t.length, P = [];
|
|
3495
|
+
for (V = 0; V < k; V += 1)
|
|
3496
3496
|
P.push(t[V].animation);
|
|
3497
3497
|
return P;
|
|
3498
3498
|
}
|
|
@@ -3502,70 +3502,70 @@ var lottie$1 = { exports: {} };
|
|
|
3502
3502
|
function p() {
|
|
3503
3503
|
s -= 1;
|
|
3504
3504
|
}
|
|
3505
|
-
function d(V,
|
|
3505
|
+
function d(V, k) {
|
|
3506
3506
|
V.addEventListener("destroy", l), V.addEventListener("_active", u), V.addEventListener("_idle", p), t.push({
|
|
3507
|
-
elem:
|
|
3507
|
+
elem: k,
|
|
3508
3508
|
animation: V
|
|
3509
3509
|
}), n += 1;
|
|
3510
3510
|
}
|
|
3511
3511
|
function b(V) {
|
|
3512
|
-
var
|
|
3513
|
-
return d(
|
|
3512
|
+
var k = new AnimationItem();
|
|
3513
|
+
return d(k, null), k.setParams(V), k;
|
|
3514
3514
|
}
|
|
3515
|
-
function C(V,
|
|
3515
|
+
function C(V, k) {
|
|
3516
3516
|
var P;
|
|
3517
3517
|
for (P = 0; P < n; P += 1)
|
|
3518
|
-
t[P].animation.setSpeed(V,
|
|
3518
|
+
t[P].animation.setSpeed(V, k);
|
|
3519
3519
|
}
|
|
3520
|
-
function y(V,
|
|
3520
|
+
function y(V, k) {
|
|
3521
3521
|
var P;
|
|
3522
3522
|
for (P = 0; P < n; P += 1)
|
|
3523
|
-
t[P].animation.setDirection(V,
|
|
3523
|
+
t[P].animation.setDirection(V, k);
|
|
3524
3524
|
}
|
|
3525
3525
|
function E(V) {
|
|
3526
|
-
var
|
|
3527
|
-
for (
|
|
3528
|
-
t[
|
|
3526
|
+
var k;
|
|
3527
|
+
for (k = 0; k < n; k += 1)
|
|
3528
|
+
t[k].animation.play(V);
|
|
3529
3529
|
}
|
|
3530
3530
|
function m(V) {
|
|
3531
|
-
var
|
|
3531
|
+
var k = V - i, P;
|
|
3532
3532
|
for (P = 0; P < n; P += 1)
|
|
3533
|
-
t[P].animation.advanceTime(
|
|
3533
|
+
t[P].animation.advanceTime(k);
|
|
3534
3534
|
i = V, s && !o ? window.requestAnimationFrame(m) : a = !0;
|
|
3535
3535
|
}
|
|
3536
3536
|
function x(V) {
|
|
3537
3537
|
i = V, window.requestAnimationFrame(m);
|
|
3538
3538
|
}
|
|
3539
3539
|
function g(V) {
|
|
3540
|
-
var
|
|
3541
|
-
for (
|
|
3542
|
-
t[
|
|
3540
|
+
var k;
|
|
3541
|
+
for (k = 0; k < n; k += 1)
|
|
3542
|
+
t[k].animation.pause(V);
|
|
3543
3543
|
}
|
|
3544
|
-
function S(V,
|
|
3544
|
+
function S(V, k, P) {
|
|
3545
3545
|
var M;
|
|
3546
3546
|
for (M = 0; M < n; M += 1)
|
|
3547
|
-
t[M].animation.goToAndStop(V,
|
|
3547
|
+
t[M].animation.goToAndStop(V, k, P);
|
|
3548
3548
|
}
|
|
3549
3549
|
function T(V) {
|
|
3550
|
-
var
|
|
3551
|
-
for (
|
|
3552
|
-
t[
|
|
3553
|
-
}
|
|
3554
|
-
function A(V) {
|
|
3555
|
-
var R;
|
|
3556
|
-
for (R = 0; R < n; R += 1)
|
|
3557
|
-
t[R].animation.togglePause(V);
|
|
3550
|
+
var k;
|
|
3551
|
+
for (k = 0; k < n; k += 1)
|
|
3552
|
+
t[k].animation.stop(V);
|
|
3558
3553
|
}
|
|
3559
3554
|
function L(V) {
|
|
3560
|
-
var
|
|
3561
|
-
for (
|
|
3562
|
-
t[
|
|
3555
|
+
var k;
|
|
3556
|
+
for (k = 0; k < n; k += 1)
|
|
3557
|
+
t[k].animation.togglePause(V);
|
|
3558
|
+
}
|
|
3559
|
+
function A(V) {
|
|
3560
|
+
var k;
|
|
3561
|
+
for (k = n - 1; k >= 0; k -= 1)
|
|
3562
|
+
t[k].animation.destroy(V);
|
|
3563
3563
|
}
|
|
3564
|
-
function _(V,
|
|
3564
|
+
function _(V, k, P) {
|
|
3565
3565
|
var M = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), F, I = M.length;
|
|
3566
3566
|
for (F = 0; F < I; F += 1)
|
|
3567
3567
|
P && M[F].setAttribute("data-bm-type", P), c(M[F], V);
|
|
3568
|
-
if (
|
|
3568
|
+
if (k && I === 0) {
|
|
3569
3569
|
P || (P = "svg");
|
|
3570
3570
|
var W = document.getElementsByTagName("body")[0];
|
|
3571
3571
|
W.innerText = "";
|
|
@@ -3573,7 +3573,7 @@ var lottie$1 = { exports: {} };
|
|
|
3573
3573
|
q.style.width = "100%", q.style.height = "100%", q.setAttribute("data-bm-type", P), W.appendChild(q), c(q, V);
|
|
3574
3574
|
}
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3576
|
+
function R() {
|
|
3577
3577
|
var V;
|
|
3578
3578
|
for (V = 0; V < n; V += 1)
|
|
3579
3579
|
t[V].animation.resize();
|
|
@@ -3587,32 +3587,32 @@ var lottie$1 = { exports: {} };
|
|
|
3587
3587
|
function j() {
|
|
3588
3588
|
o = !1, $();
|
|
3589
3589
|
}
|
|
3590
|
-
function N(V,
|
|
3590
|
+
function N(V, k) {
|
|
3591
3591
|
var P;
|
|
3592
3592
|
for (P = 0; P < n; P += 1)
|
|
3593
|
-
t[P].animation.setVolume(V,
|
|
3593
|
+
t[P].animation.setVolume(V, k);
|
|
3594
3594
|
}
|
|
3595
3595
|
function K(V) {
|
|
3596
|
-
var
|
|
3597
|
-
for (
|
|
3598
|
-
t[
|
|
3596
|
+
var k;
|
|
3597
|
+
for (k = 0; k < n; k += 1)
|
|
3598
|
+
t[k].animation.mute(V);
|
|
3599
3599
|
}
|
|
3600
3600
|
function H(V) {
|
|
3601
|
-
var
|
|
3602
|
-
for (
|
|
3603
|
-
t[
|
|
3601
|
+
var k;
|
|
3602
|
+
for (k = 0; k < n; k += 1)
|
|
3603
|
+
t[k].animation.unmute(V);
|
|
3604
3604
|
}
|
|
3605
|
-
return e.registerAnimation = c, e.loadAnimation = b, e.setSpeed = C, e.setDirection = y, e.play = E, e.pause = g, e.stop = T, e.togglePause =
|
|
3605
|
+
return e.registerAnimation = c, e.loadAnimation = b, e.setSpeed = C, e.setDirection = y, e.play = E, e.pause = g, e.stop = T, e.togglePause = L, e.searchAnimations = _, e.resize = R, e.goToAndStop = S, e.destroy = A, e.freeze = z, e.unfreeze = j, e.setVolume = N, e.mute = K, e.unmute = H, e.getRegisteredAnimations = f, e;
|
|
3606
3606
|
}(), BezierFactory = function() {
|
|
3607
3607
|
var e = {};
|
|
3608
3608
|
e.getBezierEasing = i;
|
|
3609
3609
|
var t = {};
|
|
3610
|
-
function i(x, g, S, T,
|
|
3611
|
-
var
|
|
3612
|
-
if (t[
|
|
3613
|
-
return t[
|
|
3610
|
+
function i(x, g, S, T, L) {
|
|
3611
|
+
var A = L || ("bez_" + x + "_" + g + "_" + S + "_" + T).replace(/\./g, "p");
|
|
3612
|
+
if (t[A])
|
|
3613
|
+
return t[A];
|
|
3614
3614
|
var _ = new m([x, g, S, T]);
|
|
3615
|
-
return t[
|
|
3615
|
+
return t[A] = _, _;
|
|
3616
3616
|
}
|
|
3617
3617
|
var n = 4, s = 1e-3, a = 1e-7, o = 10, l = 11, c = 1 / (l - 1), f = typeof Float32Array == "function";
|
|
3618
3618
|
function u(x, g) {
|
|
@@ -3630,19 +3630,19 @@ var lottie$1 = { exports: {} };
|
|
|
3630
3630
|
function C(x, g, S) {
|
|
3631
3631
|
return 3 * u(g, S) * x * x + 2 * p(g, S) * x + d(g);
|
|
3632
3632
|
}
|
|
3633
|
-
function y(x, g, S, T,
|
|
3634
|
-
var
|
|
3633
|
+
function y(x, g, S, T, L) {
|
|
3634
|
+
var A, _, R = 0;
|
|
3635
3635
|
do
|
|
3636
|
-
_ = g + (S - g) / 2,
|
|
3637
|
-
while (Math.abs(
|
|
3636
|
+
_ = g + (S - g) / 2, A = b(_, T, L) - x, A > 0 ? S = _ : g = _;
|
|
3637
|
+
while (Math.abs(A) > a && ++R < o);
|
|
3638
3638
|
return _;
|
|
3639
3639
|
}
|
|
3640
3640
|
function E(x, g, S, T) {
|
|
3641
|
-
for (var
|
|
3642
|
-
var
|
|
3643
|
-
if (
|
|
3641
|
+
for (var L = 0; L < n; ++L) {
|
|
3642
|
+
var A = C(g, S, T);
|
|
3643
|
+
if (A === 0) return g;
|
|
3644
3644
|
var _ = b(g, S, T) - x;
|
|
3645
|
-
g -= _ /
|
|
3645
|
+
g -= _ / A;
|
|
3646
3646
|
}
|
|
3647
3647
|
return g;
|
|
3648
3648
|
}
|
|
@@ -3651,13 +3651,13 @@ var lottie$1 = { exports: {} };
|
|
|
3651
3651
|
}
|
|
3652
3652
|
return m.prototype = {
|
|
3653
3653
|
get: function(g) {
|
|
3654
|
-
var S = this._p[0], T = this._p[1],
|
|
3655
|
-
return this._precomputed || this._precompute(), S === T &&
|
|
3654
|
+
var S = this._p[0], T = this._p[1], L = this._p[2], A = this._p[3];
|
|
3655
|
+
return this._precomputed || this._precompute(), S === T && L === A ? g : g === 0 ? 0 : g === 1 ? 1 : b(this._getTForX(g), T, A);
|
|
3656
3656
|
},
|
|
3657
3657
|
// Private part
|
|
3658
3658
|
_precompute: function() {
|
|
3659
|
-
var g = this._p[0], S = this._p[1], T = this._p[2],
|
|
3660
|
-
this._precomputed = !0, (g !== S || T !==
|
|
3659
|
+
var g = this._p[0], S = this._p[1], T = this._p[2], L = this._p[3];
|
|
3660
|
+
this._precomputed = !0, (g !== S || T !== L) && this._calcSampleValues();
|
|
3661
3661
|
},
|
|
3662
3662
|
_calcSampleValues: function() {
|
|
3663
3663
|
for (var g = this._p[0], S = this._p[2], T = 0; T < l; ++T)
|
|
@@ -3667,11 +3667,11 @@ var lottie$1 = { exports: {} };
|
|
|
3667
3667
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
3668
3668
|
*/
|
|
3669
3669
|
_getTForX: function(g) {
|
|
3670
|
-
for (var S = this._p[0], T = this._p[2],
|
|
3671
|
-
|
|
3670
|
+
for (var S = this._p[0], T = this._p[2], L = this._mSampleValues, A = 0, _ = 1, R = l - 1; _ !== R && L[_] <= g; ++_)
|
|
3671
|
+
A += c;
|
|
3672
3672
|
--_;
|
|
3673
|
-
var $ = (g -
|
|
3674
|
-
return j >= s ? E(g, z, S, T) : j === 0 ? z : y(g,
|
|
3673
|
+
var $ = (g - L[_]) / (L[_ + 1] - L[_]), z = A + $ * c, j = C(z, S, T);
|
|
3674
|
+
return j >= s ? E(g, z, S, T) : j === 0 ? z : y(g, A, A + c, S, T);
|
|
3675
3675
|
}
|
|
3676
3676
|
}, e;
|
|
3677
3677
|
}(), pooling = /* @__PURE__ */ function() {
|
|
@@ -3729,18 +3729,18 @@ var lottie$1 = { exports: {} };
|
|
|
3729
3729
|
function i(d, b, C, y, E, m, x, g, S) {
|
|
3730
3730
|
if (C === 0 && m === 0 && S === 0)
|
|
3731
3731
|
return t(d, b, y, E, x, g);
|
|
3732
|
-
var T = e.sqrt(e.pow(y - d, 2) + e.pow(E - b, 2) + e.pow(m - C, 2)),
|
|
3733
|
-
return T >
|
|
3732
|
+
var T = e.sqrt(e.pow(y - d, 2) + e.pow(E - b, 2) + e.pow(m - C, 2)), L = e.sqrt(e.pow(x - d, 2) + e.pow(g - b, 2) + e.pow(S - C, 2)), A = e.sqrt(e.pow(x - y, 2) + e.pow(g - E, 2) + e.pow(S - m, 2)), _;
|
|
3733
|
+
return T > L ? T > A ? _ = T - L - A : _ = A - L - T : A > L ? _ = A - L - T : _ = L - T - A, _ > -1e-4 && _ < 1e-4;
|
|
3734
3734
|
}
|
|
3735
3735
|
var n = /* @__PURE__ */ function() {
|
|
3736
3736
|
return function(d, b, C, y) {
|
|
3737
|
-
var E = getDefaultCurveSegments(), m, x, g, S, T,
|
|
3737
|
+
var E = getDefaultCurveSegments(), m, x, g, S, T, L = 0, A, _ = [], R = [], $ = bezierLengthPool.newElement();
|
|
3738
3738
|
for (g = C.length, m = 0; m < E; m += 1) {
|
|
3739
|
-
for (T = m / (E - 1),
|
|
3740
|
-
S = bmPow(1 - T, 3) * d[x] + 3 * bmPow(1 - T, 2) * T * C[x] + 3 * (1 - T) * bmPow(T, 2) * y[x] + bmPow(T, 3) * b[x], _[x] = S,
|
|
3741
|
-
|
|
3739
|
+
for (T = m / (E - 1), A = 0, x = 0; x < g; x += 1)
|
|
3740
|
+
S = bmPow(1 - T, 3) * d[x] + 3 * bmPow(1 - T, 2) * T * C[x] + 3 * (1 - T) * bmPow(T, 2) * y[x] + bmPow(T, 3) * b[x], _[x] = S, R[x] !== null && (A += bmPow(_[x] - R[x], 2)), R[x] = _[x];
|
|
3741
|
+
A && (A = bmSqrt(A), L += A), $.percents[m] = T, $.lengths[m] = L;
|
|
3742
3742
|
}
|
|
3743
|
-
return $.addedLength =
|
|
3743
|
+
return $.addedLength = L, $;
|
|
3744
3744
|
};
|
|
3745
3745
|
}();
|
|
3746
3746
|
function s(d) {
|
|
@@ -3760,13 +3760,13 @@ var lottie$1 = { exports: {} };
|
|
|
3760
3760
|
return function(b, C, y, E) {
|
|
3761
3761
|
var m = (b[0] + "_" + b[1] + "_" + C[0] + "_" + C[1] + "_" + y[0] + "_" + y[1] + "_" + E[0] + "_" + E[1]).replace(/\./g, "p");
|
|
3762
3762
|
if (!d[m]) {
|
|
3763
|
-
var x = getDefaultCurveSegments(), g, S, T,
|
|
3763
|
+
var x = getDefaultCurveSegments(), g, S, T, L, A, _ = 0, R, $, z = null;
|
|
3764
3764
|
b.length === 2 && (b[0] !== C[0] || b[1] !== C[1]) && t(b[0], b[1], C[0], C[1], b[0] + y[0], b[1] + y[1]) && t(b[0], b[1], C[0], C[1], C[0] + E[0], C[1] + E[1]) && (x = 2);
|
|
3765
3765
|
var j = new a(x);
|
|
3766
3766
|
for (T = y.length, g = 0; g < x; g += 1) {
|
|
3767
|
-
for ($ = createSizedArray(T),
|
|
3768
|
-
|
|
3769
|
-
|
|
3767
|
+
for ($ = createSizedArray(T), A = g / (x - 1), R = 0, S = 0; S < T; S += 1)
|
|
3768
|
+
L = bmPow(1 - A, 3) * b[S] + 3 * bmPow(1 - A, 2) * A * (b[S] + y[S]) + 3 * (1 - A) * bmPow(A, 2) * (C[S] + E[S]) + bmPow(A, 3) * C[S], $[S] = L, z !== null && (R += bmPow($[S] - z[S], 2));
|
|
3769
|
+
R = bmSqrt(R), _ += R, j.points[g] = new o(R, $), z = $;
|
|
3770
3770
|
}
|
|
3771
3771
|
j.segmentLength = _, d[m] = j;
|
|
3772
3772
|
}
|
|
@@ -3794,9 +3794,9 @@ var lottie$1 = { exports: {} };
|
|
|
3794
3794
|
E < 0 ? E = 0 : E > 1 && (E = 1);
|
|
3795
3795
|
var g = c(E, x);
|
|
3796
3796
|
m = m > 1 ? 1 : m;
|
|
3797
|
-
var S = c(m, x), T,
|
|
3798
|
-
for (T = 0; T <
|
|
3799
|
-
u[T * 4] = e.round((
|
|
3797
|
+
var S = c(m, x), T, L = d.length, A = 1 - g, _ = 1 - S, R = A * A * A, $ = g * A * A * 3, z = g * g * A * 3, j = g * g * g, N = A * A * _, K = g * A * _ + A * g * _ + A * A * S, H = g * g * _ + A * g * S + g * A * S, V = g * g * S, k = A * _ * _, P = g * _ * _ + A * S * _ + A * _ * S, M = g * S * _ + A * S * S + g * _ * S, F = g * S * S, I = _ * _ * _, W = S * _ * _ + _ * S * _ + _ * _ * S, q = S * S * _ + _ * S * S + S * _ * S, X = S * S * S;
|
|
3798
|
+
for (T = 0; T < L; T += 1)
|
|
3799
|
+
u[T * 4] = e.round((R * d[T] + $ * C[T] + z * y[T] + j * b[T]) * 1e3) / 1e3, u[T * 4 + 1] = e.round((N * d[T] + K * C[T] + H * y[T] + V * b[T]) * 1e3) / 1e3, u[T * 4 + 2] = e.round((k * d[T] + P * C[T] + M * y[T] + F * b[T]) * 1e3) / 1e3, u[T * 4 + 3] = e.round((I * d[T] + W * C[T] + q * y[T] + X * b[T]) * 1e3) / 1e3;
|
|
3800
3800
|
return u;
|
|
3801
3801
|
}
|
|
3802
3802
|
return {
|
|
@@ -3834,15 +3834,15 @@ var lottie$1 = { exports: {} };
|
|
|
3834
3834
|
n[p] = S.points[T].point[p];
|
|
3835
3835
|
} else {
|
|
3836
3836
|
u.__fnct ? E = u.__fnct : (E = BezierFactory.getBezierEasing(c.o.x, c.o.y, c.i.x, c.i.y, c.n).get, u.__fnct = E), b = E((e - x) / (m - x));
|
|
3837
|
-
var
|
|
3837
|
+
var L = S.segmentLength * b, A, _ = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastAddedLength : 0;
|
|
3838
3838
|
for (y = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastPoint : 0, l = !0, C = S.points.length; l; ) {
|
|
3839
|
-
if (_ += S.points[y].partialLength,
|
|
3839
|
+
if (_ += S.points[y].partialLength, L === 0 || b === 0 || y === S.points.length - 1) {
|
|
3840
3840
|
for (d = S.points[y].point.length, p = 0; p < d; p += 1)
|
|
3841
3841
|
n[p] = S.points[y].point[p];
|
|
3842
3842
|
break;
|
|
3843
|
-
} else if (
|
|
3844
|
-
for (
|
|
3845
|
-
n[p] = S.points[y].point[p] + (S.points[y + 1].point[p] - S.points[y].point[p]) *
|
|
3843
|
+
} else if (L >= _ && L < _ + S.points[y + 1].partialLength) {
|
|
3844
|
+
for (A = (L - _) / S.points[y + 1].partialLength, d = S.points[y].point.length, p = 0; p < d; p += 1)
|
|
3845
|
+
n[p] = S.points[y].point[p] + (S.points[y + 1].point[p] - S.points[y].point[p]) * A;
|
|
3846
3846
|
break;
|
|
3847
3847
|
}
|
|
3848
3848
|
y < C - 1 ? y += 1 : l = !1;
|
|
@@ -3850,7 +3850,7 @@ var lottie$1 = { exports: {} };
|
|
|
3850
3850
|
t._lastPoint = y, t._lastAddedLength = _ - S.points[y].partialLength, t._lastKeyframeIndex = a;
|
|
3851
3851
|
}
|
|
3852
3852
|
} else {
|
|
3853
|
-
var
|
|
3853
|
+
var R, $, z, j, N;
|
|
3854
3854
|
if (o = c.s.length, g = f.s || c.e, this.sh && c.h !== 1)
|
|
3855
3855
|
if (e >= m)
|
|
3856
3856
|
n[0] = g[0], n[1] = g[1], n[2] = g[2];
|
|
@@ -3862,7 +3862,7 @@ var lottie$1 = { exports: {} };
|
|
|
3862
3862
|
}
|
|
3863
3863
|
else
|
|
3864
3864
|
for (a = 0; a < o; a += 1)
|
|
3865
|
-
c.h !== 1 && (e >= m ? b = 1 : e < x ? b = 0 : (c.o.x.constructor === Array ? (u.__fnct || (u.__fnct = []), u.__fnct[a] ? E = u.__fnct[a] : (
|
|
3865
|
+
c.h !== 1 && (e >= m ? b = 1 : e < x ? b = 0 : (c.o.x.constructor === Array ? (u.__fnct || (u.__fnct = []), u.__fnct[a] ? E = u.__fnct[a] : (R = c.o.x[a] === void 0 ? c.o.x[0] : c.o.x[a], $ = c.o.y[a] === void 0 ? c.o.y[0] : c.o.y[a], z = c.i.x[a] === void 0 ? c.i.x[0] : c.i.x[a], j = c.i.y[a] === void 0 ? c.i.y[0] : c.i.y[a], E = BezierFactory.getBezierEasing(R, $, z, j).get, u.__fnct[a] = E)) : u.__fnct ? E = u.__fnct : (R = c.o.x, $ = c.o.y, z = c.i.x, j = c.i.y, E = BezierFactory.getBezierEasing(R, $, z, j).get, c.keyframeMetadata = E), b = E((e - x) / (m - x)))), g = f.s || c.e, N = c.h === 1 ? c.s[a] : c.s[a] + (g[a] - c.s[a]) * b, this.propType === "multidimensional" ? n[a] = N : n = N;
|
|
3866
3866
|
}
|
|
3867
3867
|
return t.lastIndex = s, n;
|
|
3868
3868
|
}
|
|
@@ -4083,15 +4083,15 @@ var lottie$1 = { exports: {} };
|
|
|
4083
4083
|
}(), ShapePropertyFactory = function() {
|
|
4084
4084
|
var e = -999999;
|
|
4085
4085
|
function t(m, x, g) {
|
|
4086
|
-
var S = g.lastIndex, T,
|
|
4086
|
+
var S = g.lastIndex, T, L, A, _, R, $, z, j, N, K = this.keyframes;
|
|
4087
4087
|
if (m < K[0].t - this.offsetTime)
|
|
4088
|
-
T = K[0].s[0],
|
|
4088
|
+
T = K[0].s[0], A = !0, S = 0;
|
|
4089
4089
|
else if (m >= K[K.length - 1].t - this.offsetTime)
|
|
4090
|
-
T = K[K.length - 1].s ? K[K.length - 1].s[0] : K[K.length - 2].e[0],
|
|
4090
|
+
T = K[K.length - 1].s ? K[K.length - 1].s[0] : K[K.length - 2].e[0], A = !0;
|
|
4091
4091
|
else {
|
|
4092
|
-
for (var H = S, V = K.length - 1,
|
|
4093
|
-
H < V - 1 ? H += 1 :
|
|
4094
|
-
if (F = this.keyframesMetadata[H] || {},
|
|
4092
|
+
for (var H = S, V = K.length - 1, k = !0, P, M, F; k && (P = K[H], M = K[H + 1], !(M.t - this.offsetTime > m)); )
|
|
4093
|
+
H < V - 1 ? H += 1 : k = !1;
|
|
4094
|
+
if (F = this.keyframesMetadata[H] || {}, A = P.h === 1, S = H, !A) {
|
|
4095
4095
|
if (m >= M.t - this.offsetTime)
|
|
4096
4096
|
j = 1;
|
|
4097
4097
|
else if (m < P.t - this.offsetTime)
|
|
@@ -4100,13 +4100,13 @@ var lottie$1 = { exports: {} };
|
|
|
4100
4100
|
var I;
|
|
4101
4101
|
F.__fnct ? I = F.__fnct : (I = BezierFactory.getBezierEasing(P.o.x, P.o.y, P.i.x, P.i.y).get, F.__fnct = I), j = I((m - (P.t - this.offsetTime)) / (M.t - this.offsetTime - (P.t - this.offsetTime)));
|
|
4102
4102
|
}
|
|
4103
|
-
|
|
4103
|
+
L = M.s ? M.s[0] : P.e[0];
|
|
4104
4104
|
}
|
|
4105
4105
|
T = P.s[0];
|
|
4106
4106
|
}
|
|
4107
4107
|
for ($ = x._length, z = T.i[0].length, g.lastIndex = S, _ = 0; _ < $; _ += 1)
|
|
4108
|
-
for (
|
|
4109
|
-
N =
|
|
4108
|
+
for (R = 0; R < z; R += 1)
|
|
4109
|
+
N = A ? T.i[_][R] : T.i[_][R] + (L.i[_][R] - T.i[_][R]) * j, x.i[_][R] = N, N = A ? T.o[_][R] : T.o[_][R] + (L.o[_][R] - T.o[_][R]) * j, x.o[_][R] = N, N = A ? T.v[_][R] : T.v[_][R] + (L.v[_][R] - T.v[_][R]) * j, x.v[_][R] = N;
|
|
4110
4110
|
}
|
|
4111
4111
|
function i() {
|
|
4112
4112
|
var m = this.comp.renderedFrame - this.offsetTime, x = this.keyframes[0].t - this.offsetTime, g = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, S = this._caching.lastFrame;
|
|
@@ -4175,8 +4175,8 @@ var lottie$1 = { exports: {} };
|
|
|
4175
4175
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
|
|
4176
4176
|
},
|
|
4177
4177
|
convertEllToPath: function() {
|
|
4178
|
-
var S = this.p.v[0], T = this.p.v[1],
|
|
4179
|
-
|
|
4178
|
+
var S = this.p.v[0], T = this.p.v[1], L = this.s.v[0] / 2, A = this.s.v[1] / 2, _ = this.d !== 3, R = this.v;
|
|
4179
|
+
R.v[0][0] = S, R.v[0][1] = T - A, R.v[1][0] = _ ? S + L : S - L, R.v[1][1] = T, R.v[2][0] = S, R.v[2][1] = T + A, R.v[3][0] = _ ? S - L : S + L, R.v[3][1] = T, R.i[0][0] = _ ? S - L * m : S + L * m, R.i[0][1] = T - A, R.i[1][0] = _ ? S + L : S - L, R.i[1][1] = T - A * m, R.i[2][0] = _ ? S + L * m : S - L * m, R.i[2][1] = T + A, R.i[3][0] = _ ? S - L : S + L, R.i[3][1] = T + A * m, R.o[0][0] = _ ? S + L * m : S - L * m, R.o[0][1] = T - A, R.o[1][0] = _ ? S + L : S - L, R.o[1][1] = T + A * m, R.o[2][0] = _ ? S - L * m : S + L * m, R.o[2][1] = T + A, R.o[3][0] = _ ? S - L : S + L, R.o[3][1] = T - A * m;
|
|
4180
4180
|
}
|
|
4181
4181
|
}, extendPrototype([DynamicPropertyContainer], x), x;
|
|
4182
4182
|
}(), p = function() {
|
|
@@ -4189,20 +4189,20 @@ var lottie$1 = { exports: {} };
|
|
|
4189
4189
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
4190
4190
|
},
|
|
4191
4191
|
convertStarToPath: function() {
|
|
4192
|
-
var g = Math.floor(this.pt.v) * 2, S = Math.PI * 2 / g, T = !0,
|
|
4192
|
+
var g = Math.floor(this.pt.v) * 2, S = Math.PI * 2 / g, T = !0, L = this.or.v, A = this.ir.v, _ = this.os.v, R = this.is.v, $ = 2 * Math.PI * L / (g * 2), z = 2 * Math.PI * A / (g * 2), j, N, K, H, V = -Math.PI / 2;
|
|
4193
4193
|
V += this.r.v;
|
|
4194
|
-
var
|
|
4194
|
+
var k = this.data.d === 3 ? -1 : 1;
|
|
4195
4195
|
for (this.v._length = 0, j = 0; j < g; j += 1) {
|
|
4196
|
-
N = T ?
|
|
4196
|
+
N = T ? L : A, K = T ? _ : R, H = T ? $ : z;
|
|
4197
4197
|
var P = N * Math.cos(V), M = N * Math.sin(V), F = P === 0 && M === 0 ? 0 : M / Math.sqrt(P * P + M * M), I = P === 0 && M === 0 ? 0 : -P / Math.sqrt(P * P + M * M);
|
|
4198
|
-
P += +this.p.v[0], M += +this.p.v[1], this.v.setTripleAt(P, M, P - F * H * K *
|
|
4198
|
+
P += +this.p.v[0], M += +this.p.v[1], this.v.setTripleAt(P, M, P - F * H * K * k, M - I * H * K * k, P + F * H * K * k, M + I * H * K * k, j, !0), T = !T, V += S * k;
|
|
4199
4199
|
}
|
|
4200
4200
|
},
|
|
4201
4201
|
convertPolygonToPath: function() {
|
|
4202
|
-
var g = Math.floor(this.pt.v), S = Math.PI * 2 / g, T = this.or.v,
|
|
4203
|
-
for (
|
|
4204
|
-
var z = T * Math.cos(
|
|
4205
|
-
z += +this.p.v[0], j += +this.p.v[1], this.v.setTripleAt(z, j, z - N *
|
|
4202
|
+
var g = Math.floor(this.pt.v), S = Math.PI * 2 / g, T = this.or.v, L = this.os.v, A = 2 * Math.PI * T / (g * 4), _, R = -Math.PI * 0.5, $ = this.data.d === 3 ? -1 : 1;
|
|
4203
|
+
for (R += this.r.v, this.v._length = 0, _ = 0; _ < g; _ += 1) {
|
|
4204
|
+
var z = T * Math.cos(R), j = T * Math.sin(R), N = z === 0 && j === 0 ? 0 : j / Math.sqrt(z * z + j * j), K = z === 0 && j === 0 ? 0 : -z / Math.sqrt(z * z + j * j);
|
|
4205
|
+
z += +this.p.v[0], j += +this.p.v[1], this.v.setTripleAt(z, j, z - N * A * L * $, j - K * A * L * $, z + N * A * L * $, j + K * A * L * $, _, !0), R += S * $;
|
|
4206
4206
|
}
|
|
4207
4207
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
4208
4208
|
}
|
|
@@ -4213,8 +4213,8 @@ var lottie$1 = { exports: {} };
|
|
|
4213
4213
|
}
|
|
4214
4214
|
return m.prototype = {
|
|
4215
4215
|
convertRectToPath: function() {
|
|
4216
|
-
var g = this.p.v[0], S = this.p.v[1], T = this.s.v[0] / 2,
|
|
4217
|
-
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(g + T, S -
|
|
4216
|
+
var g = this.p.v[0], S = this.p.v[1], T = this.s.v[0] / 2, L = this.s.v[1] / 2, A = bmMin(T, L, this.r.v), _ = A * (1 - roundCorner);
|
|
4217
|
+
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(g + T, S - L + A, g + T, S - L + A, g + T, S - L + _, 0, !0), this.v.setTripleAt(g + T, S + L - A, g + T, S + L - _, g + T, S + L - A, 1, !0), A !== 0 ? (this.v.setTripleAt(g + T - A, S + L, g + T - A, S + L, g + T - _, S + L, 2, !0), this.v.setTripleAt(g - T + A, S + L, g - T + _, S + L, g - T + A, S + L, 3, !0), this.v.setTripleAt(g - T, S + L - A, g - T, S + L - A, g - T, S + L - _, 4, !0), this.v.setTripleAt(g - T, S - L + A, g - T, S - L + _, g - T, S - L + A, 5, !0), this.v.setTripleAt(g - T + A, S - L, g - T + A, S - L, g - T + _, S - L, 6, !0), this.v.setTripleAt(g + T - A, S - L, g + T - _, S - L, g + T - A, S - L, 7, !0)) : (this.v.setTripleAt(g - T, S + L, g - T + _, S + L, g - T, S + L, 2), this.v.setTripleAt(g - T, S - L, g - T, S - L + _, g - T, S - L, 3))) : (this.v.setTripleAt(g + T, S - L + A, g + T, S - L + _, g + T, S - L + A, 0, !0), A !== 0 ? (this.v.setTripleAt(g + T - A, S - L, g + T - A, S - L, g + T - _, S - L, 1, !0), this.v.setTripleAt(g - T + A, S - L, g - T + _, S - L, g - T + A, S - L, 2, !0), this.v.setTripleAt(g - T, S - L + A, g - T, S - L + A, g - T, S - L + _, 3, !0), this.v.setTripleAt(g - T, S + L - A, g - T, S + L - _, g - T, S + L - A, 4, !0), this.v.setTripleAt(g - T + A, S + L, g - T + A, S + L, g - T + _, S + L, 5, !0), this.v.setTripleAt(g + T - A, S + L, g + T - _, S + L, g + T - A, S + L, 6, !0), this.v.setTripleAt(g + T, S + L - A, g + T, S + L - A, g + T, S + L - _, 7, !0)) : (this.v.setTripleAt(g - T, S - L, g - T + _, S - L, g - T, S - L, 1, !0), this.v.setTripleAt(g - T, S + L, g - T, S + L - _, g - T, S + L, 2, !0), this.v.setTripleAt(g + T, S + L, g + T - _, S + L, g + T, S + L, 3, !0)));
|
|
4218
4218
|
},
|
|
4219
4219
|
getValue: function() {
|
|
4220
4220
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
|
|
@@ -4225,8 +4225,8 @@ var lottie$1 = { exports: {} };
|
|
|
4225
4225
|
function b(m, x, g) {
|
|
4226
4226
|
var S;
|
|
4227
4227
|
if (g === 3 || g === 4) {
|
|
4228
|
-
var T = g === 3 ? x.pt : x.ks,
|
|
4229
|
-
|
|
4228
|
+
var T = g === 3 ? x.pt : x.ks, L = T.k;
|
|
4229
|
+
L.length ? S = new f(m, x, g) : S = new l(m, x, g);
|
|
4230
4230
|
} else g === 5 ? S = new d(m, x) : g === 6 ? S = new u(m, x) : g === 7 && (S = new p(m, x));
|
|
4231
4231
|
return S.k && m.addDynamicProperty(S), S;
|
|
4232
4232
|
}
|
|
@@ -4299,8 +4299,8 @@ var lottie$1 = { exports: {} };
|
|
|
4299
4299
|
var Y = this.props;
|
|
4300
4300
|
if (P === 1 && M === 0 && F === 0 && I === 0 && W === 0 && q === 1 && X === 0 && ee === 0 && re === 0 && ce === 0 && fe === 1 && me === 0)
|
|
4301
4301
|
return Y[12] = Y[12] * P + Y[15] * de, Y[13] = Y[13] * q + Y[15] * se, Y[14] = Y[14] * fe + Y[15] * ue, Y[15] *= ie, this._identityCalculated = !1, this;
|
|
4302
|
-
var Te = Y[0],
|
|
4303
|
-
return Y[0] = Te * P +
|
|
4302
|
+
var Te = Y[0], Ae = Y[1], be = Y[2], Ce = Y[3], Pe = Y[4], ve = Y[5], ye = Y[6], xe = Y[7], we = Y[8], Se = Y[9], Me = Y[10], Ee = Y[11], Le = Y[12], _e = Y[13], ke = Y[14], Ie = Y[15];
|
|
4303
|
+
return Y[0] = Te * P + Ae * W + be * re + Ce * de, Y[1] = Te * M + Ae * q + be * ce + Ce * se, Y[2] = Te * F + Ae * X + be * fe + Ce * ue, Y[3] = Te * I + Ae * ee + be * me + Ce * ie, Y[4] = Pe * P + ve * W + ye * re + xe * de, Y[5] = Pe * M + ve * q + ye * ce + xe * se, Y[6] = Pe * F + ve * X + ye * fe + xe * ue, Y[7] = Pe * I + ve * ee + ye * me + xe * ie, Y[8] = we * P + Se * W + Me * re + Ee * de, Y[9] = we * M + Se * q + Me * ce + Ee * se, Y[10] = we * F + Se * X + Me * fe + Ee * ue, Y[11] = we * I + Se * ee + Me * me + Ee * ie, Y[12] = Le * P + _e * W + ke * re + Ie * de, Y[13] = Le * M + _e * q + ke * ce + Ie * se, Y[14] = Le * F + _e * X + ke * fe + Ie * ue, Y[15] = Le * I + _e * ee + ke * me + Ie * ie, this._identityCalculated = !1, this;
|
|
4304
4304
|
}
|
|
4305
4305
|
function E(P) {
|
|
4306
4306
|
var M = P.props;
|
|
@@ -4335,16 +4335,16 @@ var lottie$1 = { exports: {} };
|
|
|
4335
4335
|
z: P * this.props[2] + M * this.props[6] + F * this.props[10] + this.props[14]
|
|
4336
4336
|
};
|
|
4337
4337
|
}
|
|
4338
|
-
function
|
|
4338
|
+
function L(P, M, F) {
|
|
4339
4339
|
return P * this.props[0] + M * this.props[4] + F * this.props[8] + this.props[12];
|
|
4340
4340
|
}
|
|
4341
|
-
function
|
|
4341
|
+
function A(P, M, F) {
|
|
4342
4342
|
return P * this.props[1] + M * this.props[5] + F * this.props[9] + this.props[13];
|
|
4343
4343
|
}
|
|
4344
4344
|
function _(P, M, F) {
|
|
4345
4345
|
return P * this.props[2] + M * this.props[6] + F * this.props[10] + this.props[14];
|
|
4346
4346
|
}
|
|
4347
|
-
function
|
|
4347
|
+
function R() {
|
|
4348
4348
|
var P = this.props[0] * this.props[5] - this.props[1] * this.props[4], M = this.props[5] / P, F = -this.props[1] / P, I = -this.props[4] / P, W = this.props[0] / P, q = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / P, X = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / P, ee = new Matrix();
|
|
4349
4349
|
return ee.props[0] = M, ee.props[1] = F, ee.props[4] = I, ee.props[5] = W, ee.props[12] = q, ee.props[13] = X, ee;
|
|
4350
4350
|
}
|
|
@@ -4387,12 +4387,12 @@ var lottie$1 = { exports: {} };
|
|
|
4387
4387
|
var M = 1e4;
|
|
4388
4388
|
return P < 1e-6 && P > 0 || P > -1e-6 && P < 0 ? n(P * M) / M : P;
|
|
4389
4389
|
}
|
|
4390
|
-
function
|
|
4390
|
+
function k() {
|
|
4391
4391
|
var P = this.props, M = V(P[0]), F = V(P[1]), I = V(P[4]), W = V(P[5]), q = V(P[12]), X = V(P[13]);
|
|
4392
4392
|
return "matrix(" + M + "," + F + "," + I + "," + W + "," + q + "," + X + ")";
|
|
4393
4393
|
}
|
|
4394
4394
|
return function() {
|
|
4395
|
-
this.reset = s, this.rotate = a, this.rotateX = o, this.rotateY = l, this.rotateZ = c, this.skew = u, this.skewFromAxis = p, this.shear = f, this.scale = d, this.setTransform = b, this.translate = C, this.transform = y, this.multiply = E, this.applyToPoint = T, this.applyToX =
|
|
4395
|
+
this.reset = s, this.rotate = a, this.rotateX = o, this.rotateY = l, this.rotateZ = c, this.skew = u, this.skewFromAxis = p, this.shear = f, this.scale = d, this.setTransform = b, this.translate = C, this.transform = y, this.multiply = E, this.applyToPoint = T, this.applyToX = L, this.applyToY = A, this.applyToZ = _, this.applyToPointArray = N, this.applyToTriplePoints = j, this.applyToPointStringified = K, this.toCSS = H, this.to2dCSS = k, this.clone = g, this.cloneFromProps = S, this.equals = x, this.inversePoints = z, this.inversePoint = $, this.getInverseMatrix = R, this._t = this.transform, this.isIdentity = m, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
4396
4396
|
};
|
|
4397
4397
|
}();
|
|
4398
4398
|
function _typeof$3(e) {
|
|
@@ -4594,10 +4594,10 @@ var lottie$1 = { exports: {} };
|
|
|
4594
4594
|
var T = this.addShapes(y, C[0]);
|
|
4595
4595
|
if (C[0].s !== C[0].e) {
|
|
4596
4596
|
if (C.length > 1) {
|
|
4597
|
-
var
|
|
4598
|
-
if (
|
|
4599
|
-
var
|
|
4600
|
-
this.addPaths(T, E), T = this.addShapes(y, C[1],
|
|
4597
|
+
var L = y.shape.paths.shapes[y.shape.paths._length - 1];
|
|
4598
|
+
if (L.c) {
|
|
4599
|
+
var A = T.pop();
|
|
4600
|
+
this.addPaths(T, E), T = this.addShapes(y, C[1], A);
|
|
4601
4601
|
} else
|
|
4602
4602
|
this.addPaths(T, E), T = this.addShapes(y, C[1]);
|
|
4603
4603
|
}
|
|
@@ -5216,34 +5216,34 @@ var lottie$1 = { exports: {} };
|
|
|
5216
5216
|
i = i.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
|
|
5217
5217
|
var n = 127988, s = 917631, a = 917601, o = 917626, l = 65039, c = 8205, f = 127462, u = 127487, p = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
|
|
5218
5218
|
function d(V) {
|
|
5219
|
-
var
|
|
5219
|
+
var k = V.split(","), P, M = k.length, F = [];
|
|
5220
5220
|
for (P = 0; P < M; P += 1)
|
|
5221
|
-
|
|
5221
|
+
k[P] !== "sans-serif" && k[P] !== "monospace" && F.push(k[P]);
|
|
5222
5222
|
return F.join(",");
|
|
5223
5223
|
}
|
|
5224
|
-
function b(V,
|
|
5224
|
+
function b(V, k) {
|
|
5225
5225
|
var P = createTag("span");
|
|
5226
|
-
P.setAttribute("aria-hidden", !0), P.style.fontFamily =
|
|
5226
|
+
P.setAttribute("aria-hidden", !0), P.style.fontFamily = k;
|
|
5227
5227
|
var M = createTag("span");
|
|
5228
5228
|
M.innerText = "giItT1WQy@!-/#", P.style.position = "absolute", P.style.left = "-10000px", P.style.top = "-10000px", P.style.fontSize = "300px", P.style.fontVariant = "normal", P.style.fontStyle = "normal", P.style.fontWeight = "normal", P.style.letterSpacing = "0", P.appendChild(M), document.body.appendChild(P);
|
|
5229
5229
|
var F = M.offsetWidth;
|
|
5230
|
-
return M.style.fontFamily = d(V) + ", " +
|
|
5230
|
+
return M.style.fontFamily = d(V) + ", " + k, {
|
|
5231
5231
|
node: M,
|
|
5232
5232
|
w: F,
|
|
5233
5233
|
parent: P
|
|
5234
5234
|
};
|
|
5235
5235
|
}
|
|
5236
5236
|
function C() {
|
|
5237
|
-
var V,
|
|
5238
|
-
for (V = 0; V <
|
|
5237
|
+
var V, k = this.fonts.length, P, M, F = k;
|
|
5238
|
+
for (V = 0; V < k; V += 1)
|
|
5239
5239
|
this.fonts[V].loaded ? F -= 1 : this.fonts[V].fOrigin === "n" || this.fonts[V].origin === 0 ? this.fonts[V].loaded = !0 : (P = this.fonts[V].monoCase.node, M = this.fonts[V].monoCase.w, P.offsetWidth !== M ? (F -= 1, this.fonts[V].loaded = !0) : (P = this.fonts[V].sansCase.node, M = this.fonts[V].sansCase.w, P.offsetWidth !== M && (F -= 1, this.fonts[V].loaded = !0)), this.fonts[V].loaded && (this.fonts[V].sansCase.parent.parentNode.removeChild(this.fonts[V].sansCase.parent), this.fonts[V].monoCase.parent.parentNode.removeChild(this.fonts[V].monoCase.parent)));
|
|
5240
5240
|
F !== 0 && Date.now() - this.initTime < e ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
|
|
5241
5241
|
}
|
|
5242
|
-
function y(V,
|
|
5243
|
-
var P = document.body &&
|
|
5242
|
+
function y(V, k) {
|
|
5243
|
+
var P = document.body && k ? "svg" : "canvas", M, F = getFontProperties(V);
|
|
5244
5244
|
if (P === "svg") {
|
|
5245
5245
|
var I = createNS("text");
|
|
5246
|
-
I.style.fontSize = "100px", I.setAttribute("font-family", V.fFamily), I.setAttribute("font-style", F.style), I.setAttribute("font-weight", F.weight), I.textContent = "1", V.fClass ? (I.style.fontFamily = "inherit", I.setAttribute("class", V.fClass)) : I.style.fontFamily = V.fFamily,
|
|
5246
|
+
I.style.fontSize = "100px", I.setAttribute("font-family", V.fFamily), I.setAttribute("font-style", F.style), I.setAttribute("font-weight", F.weight), I.textContent = "1", V.fClass ? (I.style.fontFamily = "inherit", I.setAttribute("class", V.fClass)) : I.style.fontFamily = V.fFamily, k.appendChild(I), M = I;
|
|
5247
5247
|
} else {
|
|
5248
5248
|
var W = new OffscreenCanvas(500, 500).getContext("2d");
|
|
5249
5249
|
W.font = F.style + " " + F.weight + " 100px " + V.fFamily, M = W;
|
|
@@ -5255,7 +5255,7 @@ var lottie$1 = { exports: {} };
|
|
|
5255
5255
|
measureText: q
|
|
5256
5256
|
};
|
|
5257
5257
|
}
|
|
5258
|
-
function E(V,
|
|
5258
|
+
function E(V, k) {
|
|
5259
5259
|
if (!V) {
|
|
5260
5260
|
this.isLoaded = !0;
|
|
5261
5261
|
return;
|
|
@@ -5278,7 +5278,7 @@ var lottie$1 = { exports: {} };
|
|
|
5278
5278
|
else if (P[M].fOrigin === "p" || P[M].origin === 3) {
|
|
5279
5279
|
if (q = document.querySelectorAll('style[f-forigin="p"][f-family="' + P[M].fFamily + '"], style[f-origin="3"][f-family="' + P[M].fFamily + '"]'), q.length > 0 && (W = !1), W) {
|
|
5280
5280
|
var ee = createTag("style");
|
|
5281
|
-
ee.setAttribute("f-forigin", P[M].fOrigin), ee.setAttribute("f-origin", P[M].origin), ee.setAttribute("f-family", P[M].fFamily), ee.type = "text/css", ee.innerText = "@font-face {font-family: " + P[M].fFamily + "; font-style: normal; src: url('" + P[M].fPath + "');}",
|
|
5281
|
+
ee.setAttribute("f-forigin", P[M].fOrigin), ee.setAttribute("f-origin", P[M].origin), ee.setAttribute("f-family", P[M].fFamily), ee.type = "text/css", ee.innerText = "@font-face {font-family: " + P[M].fFamily + "; font-style: normal; src: url('" + P[M].fPath + "');}", k.appendChild(ee);
|
|
5282
5282
|
}
|
|
5283
5283
|
} else if (P[M].fOrigin === "g" || P[M].origin === 1) {
|
|
5284
5284
|
for (q = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), X = 0; X < q.length; X += 1)
|
|
@@ -5292,34 +5292,34 @@ var lottie$1 = { exports: {} };
|
|
|
5292
5292
|
P[M].fPath === q[X].src && (W = !1);
|
|
5293
5293
|
if (W) {
|
|
5294
5294
|
var ce = createTag("link");
|
|
5295
|
-
ce.setAttribute("f-forigin", P[M].fOrigin), ce.setAttribute("f-origin", P[M].origin), ce.setAttribute("rel", "stylesheet"), ce.setAttribute("href", P[M].fPath),
|
|
5295
|
+
ce.setAttribute("f-forigin", P[M].fOrigin), ce.setAttribute("f-origin", P[M].origin), ce.setAttribute("rel", "stylesheet"), ce.setAttribute("href", P[M].fPath), k.appendChild(ce);
|
|
5296
5296
|
}
|
|
5297
5297
|
}
|
|
5298
|
-
P[M].helper = y(P[M],
|
|
5298
|
+
P[M].helper = y(P[M], k), P[M].cache = {}, this.fonts.push(P[M]);
|
|
5299
5299
|
}
|
|
5300
5300
|
I === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
5301
5301
|
}
|
|
5302
5302
|
function m(V) {
|
|
5303
5303
|
if (V) {
|
|
5304
5304
|
this.chars || (this.chars = []);
|
|
5305
|
-
var
|
|
5306
|
-
for (
|
|
5305
|
+
var k, P = V.length, M, F = this.chars.length, I;
|
|
5306
|
+
for (k = 0; k < P; k += 1) {
|
|
5307
5307
|
for (M = 0, I = !1; M < F; )
|
|
5308
|
-
this.chars[M].style === V[
|
|
5309
|
-
I || (this.chars.push(V[
|
|
5308
|
+
this.chars[M].style === V[k].style && this.chars[M].fFamily === V[k].fFamily && this.chars[M].ch === V[k].ch && (I = !0), M += 1;
|
|
5309
|
+
I || (this.chars.push(V[k]), F += 1);
|
|
5310
5310
|
}
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
5313
|
-
function x(V,
|
|
5313
|
+
function x(V, k, P) {
|
|
5314
5314
|
for (var M = 0, F = this.chars.length; M < F; ) {
|
|
5315
|
-
if (this.chars[M].ch === V && this.chars[M].style ===
|
|
5315
|
+
if (this.chars[M].ch === V && this.chars[M].style === k && this.chars[M].fFamily === P)
|
|
5316
5316
|
return this.chars[M];
|
|
5317
5317
|
M += 1;
|
|
5318
5318
|
}
|
|
5319
|
-
return (typeof V == "string" && V.charCodeAt(0) !== 13 || !V) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", V,
|
|
5319
|
+
return (typeof V == "string" && V.charCodeAt(0) !== 13 || !V) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", V, k, P)), t;
|
|
5320
5320
|
}
|
|
5321
|
-
function g(V,
|
|
5322
|
-
var M = this.getFontByName(
|
|
5321
|
+
function g(V, k, P) {
|
|
5322
|
+
var M = this.getFontByName(k), F = V;
|
|
5323
5323
|
if (!M.cache[F]) {
|
|
5324
5324
|
var I = M.helper;
|
|
5325
5325
|
if (V === " ") {
|
|
@@ -5331,52 +5331,52 @@ var lottie$1 = { exports: {} };
|
|
|
5331
5331
|
return M.cache[F] * P;
|
|
5332
5332
|
}
|
|
5333
5333
|
function S(V) {
|
|
5334
|
-
for (var
|
|
5335
|
-
if (this.fonts[
|
|
5336
|
-
return this.fonts[
|
|
5337
|
-
|
|
5334
|
+
for (var k = 0, P = this.fonts.length; k < P; ) {
|
|
5335
|
+
if (this.fonts[k].fName === V)
|
|
5336
|
+
return this.fonts[k];
|
|
5337
|
+
k += 1;
|
|
5338
5338
|
}
|
|
5339
5339
|
return this.fonts[0];
|
|
5340
5340
|
}
|
|
5341
5341
|
function T(V) {
|
|
5342
|
-
var
|
|
5342
|
+
var k = 0, P = V.charCodeAt(0);
|
|
5343
5343
|
if (P >= 55296 && P <= 56319) {
|
|
5344
5344
|
var M = V.charCodeAt(1);
|
|
5345
|
-
M >= 56320 && M <= 57343 && (
|
|
5345
|
+
M >= 56320 && M <= 57343 && (k = (P - 55296) * 1024 + M - 56320 + 65536);
|
|
5346
5346
|
}
|
|
5347
|
-
return
|
|
5347
|
+
return k;
|
|
5348
5348
|
}
|
|
5349
|
-
function
|
|
5350
|
-
var P = V.toString(16) +
|
|
5349
|
+
function L(V, k) {
|
|
5350
|
+
var P = V.toString(16) + k.toString(16);
|
|
5351
5351
|
return p.indexOf(P) !== -1;
|
|
5352
5352
|
}
|
|
5353
|
-
function
|
|
5353
|
+
function A(V) {
|
|
5354
5354
|
return V === c;
|
|
5355
5355
|
}
|
|
5356
5356
|
function _(V) {
|
|
5357
5357
|
return V === l;
|
|
5358
5358
|
}
|
|
5359
|
-
function
|
|
5360
|
-
var
|
|
5361
|
-
return
|
|
5359
|
+
function R(V) {
|
|
5360
|
+
var k = T(V);
|
|
5361
|
+
return k >= f && k <= u;
|
|
5362
5362
|
}
|
|
5363
5363
|
function $(V) {
|
|
5364
|
-
return
|
|
5364
|
+
return R(V.substr(0, 2)) && R(V.substr(2, 2));
|
|
5365
5365
|
}
|
|
5366
5366
|
function z(V) {
|
|
5367
5367
|
return i.indexOf(V) !== -1;
|
|
5368
5368
|
}
|
|
5369
|
-
function j(V,
|
|
5370
|
-
var P = T(V.substr(
|
|
5369
|
+
function j(V, k) {
|
|
5370
|
+
var P = T(V.substr(k, 2));
|
|
5371
5371
|
if (P !== n)
|
|
5372
5372
|
return !1;
|
|
5373
5373
|
var M = 0;
|
|
5374
|
-
for (
|
|
5375
|
-
if (P = T(V.substr(
|
|
5374
|
+
for (k += 2; M < 5; ) {
|
|
5375
|
+
if (P = T(V.substr(k, 2)), P < a || P > o)
|
|
5376
5376
|
return !1;
|
|
5377
|
-
M += 1,
|
|
5377
|
+
M += 1, k += 2;
|
|
5378
5378
|
}
|
|
5379
|
-
return T(V.substr(
|
|
5379
|
+
return T(V.substr(k, 2)) === s;
|
|
5380
5380
|
}
|
|
5381
5381
|
function N() {
|
|
5382
5382
|
this.isLoaded = !0;
|
|
@@ -5384,7 +5384,7 @@ var lottie$1 = { exports: {} };
|
|
|
5384
5384
|
var K = function() {
|
|
5385
5385
|
this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
|
|
5386
5386
|
};
|
|
5387
|
-
K.isModifier =
|
|
5387
|
+
K.isModifier = L, K.isZeroWidthJoiner = A, K.isFlagEmoji = $, K.isRegionalCode = R, K.isCombinedCharacter = z, K.isRegionalFlag = j, K.isVariationSelector = _, K.BLACK_FLAG_CODE_POINT = n;
|
|
5388
5388
|
var H = {
|
|
5389
5389
|
addChars: m,
|
|
5390
5390
|
addFonts: E,
|
|
@@ -6343,19 +6343,19 @@ var lottie$1 = { exports: {} };
|
|
|
6343
6343
|
function a() {
|
|
6344
6344
|
}
|
|
6345
6345
|
function o(p, d, b) {
|
|
6346
|
-
var C, y, E, m, x, g, S = d.styles.length, T = d.lvl,
|
|
6346
|
+
var C, y, E, m, x, g, S = d.styles.length, T = d.lvl, L, A, _, R;
|
|
6347
6347
|
for (g = 0; g < S; g += 1) {
|
|
6348
6348
|
if (m = d.sh._mdf || b, d.styles[g].lvl < T) {
|
|
6349
|
-
for (
|
|
6350
|
-
m = d.transformers[
|
|
6349
|
+
for (A = t.reset(), _ = T - d.styles[g].lvl, R = d.transformers.length - 1; !m && _ > 0; )
|
|
6350
|
+
m = d.transformers[R].mProps._mdf || m, _ -= 1, R -= 1;
|
|
6351
6351
|
if (m)
|
|
6352
|
-
for (_ = T - d.styles[g].lvl,
|
|
6353
|
-
|
|
6352
|
+
for (_ = T - d.styles[g].lvl, R = d.transformers.length - 1; _ > 0; )
|
|
6353
|
+
A.multiply(d.transformers[R].mProps.v), _ -= 1, R -= 1;
|
|
6354
6354
|
} else
|
|
6355
|
-
|
|
6356
|
-
if (
|
|
6355
|
+
A = e;
|
|
6356
|
+
if (L = d.sh.paths, y = L._length, m) {
|
|
6357
6357
|
for (E = "", C = 0; C < y; C += 1)
|
|
6358
|
-
x =
|
|
6358
|
+
x = L.shapes[C], x && x._length && (E += buildShapeString(x, x._length, x.c, A));
|
|
6359
6359
|
d.caches[g] = E;
|
|
6360
6360
|
} else
|
|
6361
6361
|
E = d.caches[g];
|
|
@@ -6379,17 +6379,17 @@ var lottie$1 = { exports: {} };
|
|
|
6379
6379
|
var g = p.t === 1 ? "x1" : "cx", S = g === "x1" ? "y1" : "cy";
|
|
6380
6380
|
C.setAttribute(g, E[0]), C.setAttribute(S, E[1]), y && !d.g._collapsable && (d.of.setAttribute(g, E[0]), d.of.setAttribute(S, E[1]));
|
|
6381
6381
|
}
|
|
6382
|
-
var T,
|
|
6382
|
+
var T, L, A, _;
|
|
6383
6383
|
if (d.g._cmdf || b) {
|
|
6384
6384
|
T = d.cst;
|
|
6385
|
-
var
|
|
6386
|
-
for (
|
|
6387
|
-
_ = T[
|
|
6385
|
+
var R = d.g.c;
|
|
6386
|
+
for (A = T.length, L = 0; L < A; L += 1)
|
|
6387
|
+
_ = T[L], _.setAttribute("offset", R[L * 4] + "%"), _.setAttribute("stop-color", "rgb(" + R[L * 4 + 1] + "," + R[L * 4 + 2] + "," + R[L * 4 + 3] + ")");
|
|
6388
6388
|
}
|
|
6389
6389
|
if (y && (d.g._omdf || b)) {
|
|
6390
6390
|
var $ = d.g.o;
|
|
6391
|
-
for (d.g._collapsable ? T = d.cst : T = d.ost,
|
|
6392
|
-
_ = T[
|
|
6391
|
+
for (d.g._collapsable ? T = d.cst : T = d.ost, A = T.length, L = 0; L < A; L += 1)
|
|
6392
|
+
_ = T[L], d.g._collapsable || _.setAttribute("offset", $[L * 2] + "%"), _.setAttribute("stop-opacity", $[L * 2 + 1]);
|
|
6393
6393
|
}
|
|
6394
6394
|
if (p.t === 1)
|
|
6395
6395
|
(d.e._mdf || b) && (C.setAttribute("x2", m[0]), C.setAttribute("y2", m[1]), y && !d.g._collapsable && (d.of.setAttribute("x2", m[0]), d.of.setAttribute("y2", m[1])));
|
|
@@ -6591,19 +6591,19 @@ var lottie$1 = { exports: {} };
|
|
|
6591
6591
|
e.__complete = !0;
|
|
6592
6592
|
var t = this.elem.globalData.fontManager, i = this.data, n = [], s, a, o, l = 0, c, f = i.m.g, u = 0, p = 0, d = 0, b = [], C = 0, y = 0, E, m, x = t.getFontByName(e.f), g, S = 0, T = getFontProperties(x);
|
|
6593
6593
|
e.fWeight = T.weight, e.fStyle = T.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), a = e.finalText.length, e.finalLineHeight = e.lh;
|
|
6594
|
-
var
|
|
6594
|
+
var L = e.tr / 1e3 * e.finalSize, A;
|
|
6595
6595
|
if (e.sz)
|
|
6596
|
-
for (var _ = !0,
|
|
6597
|
-
j = this.buildFinalText(e.t), z = 0, C = 0, a = j.length,
|
|
6596
|
+
for (var _ = !0, R = e.sz[0], $ = e.sz[1], z, j; _; ) {
|
|
6597
|
+
j = this.buildFinalText(e.t), z = 0, C = 0, a = j.length, L = e.tr / 1e3 * e.finalSize;
|
|
6598
6598
|
var N = -1;
|
|
6599
6599
|
for (s = 0; s < a; s += 1)
|
|
6600
|
-
|
|
6600
|
+
A = j[s].charCodeAt(0), o = !1, j[s] === " " ? N = s : (A === 13 || A === 3) && (C = 0, o = !0, z += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (g = t.getCharData(j[s], x.fStyle, x.fFamily), S = o ? 0 : g.w * e.finalSize / 100) : S = t.measureText(j[s], e.f, e.finalSize), C + S > R && j[s] !== " " ? (N === -1 ? a += 1 : s = N, z += e.finalLineHeight || e.finalSize * 1.2, j.splice(s, N === s ? 1 : 0, "\r"), N = -1, C = 0) : (C += S, C += L);
|
|
6601
6601
|
z += x.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && $ < z ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = j, a = e.finalText.length, _ = !1);
|
|
6602
6602
|
}
|
|
6603
|
-
C = -
|
|
6603
|
+
C = -L, S = 0;
|
|
6604
6604
|
var K = 0, H;
|
|
6605
6605
|
for (s = 0; s < a; s += 1)
|
|
6606
|
-
if (o = !1, H = e.finalText[s],
|
|
6606
|
+
if (o = !1, H = e.finalText[s], A = H.charCodeAt(0), A === 13 || A === 3 ? (K = 0, b.push(C), y = C > y ? C : y, C = -2 * L, c = "", o = !0, d += 1) : c = H, t.chars ? (g = t.getCharData(H, x.fStyle, t.getFontByName(e.f).fFamily), S = o ? 0 : g.w * e.finalSize / 100) : S = t.measureText(c, e.f, e.finalSize), H === " " ? K += S + L : (C += S + L + K, K = 0), n.push({
|
|
6607
6607
|
l: S,
|
|
6608
6608
|
an: S,
|
|
6609
6609
|
add: u,
|
|
@@ -6640,15 +6640,15 @@ var lottie$1 = { exports: {} };
|
|
|
6640
6640
|
e.justifyOffset = 0;
|
|
6641
6641
|
}
|
|
6642
6642
|
e.lineWidths = b;
|
|
6643
|
-
var V = i.a,
|
|
6643
|
+
var V = i.a, k, P;
|
|
6644
6644
|
m = V.length;
|
|
6645
6645
|
var M, F, I = [];
|
|
6646
6646
|
for (E = 0; E < m; E += 1) {
|
|
6647
|
-
for (
|
|
6648
|
-
P = n[s], P.anIndexes[E] = F, (M == 1 && P.val !== "" || M == 2 && P.val !== "" && P.val !== " " || M == 3 && (P.n || P.val == " " || s == a - 1) || M == 4 && (P.n || s == a - 1)) && (
|
|
6647
|
+
for (k = V[E], k.a.sc && (e.strokeColorAnim = !0), k.a.sw && (e.strokeWidthAnim = !0), (k.a.fc || k.a.fh || k.a.fs || k.a.fb) && (e.fillColorAnim = !0), F = 0, M = k.s.b, s = 0; s < a; s += 1)
|
|
6648
|
+
P = n[s], P.anIndexes[E] = F, (M == 1 && P.val !== "" || M == 2 && P.val !== "" && P.val !== " " || M == 3 && (P.n || P.val == " " || s == a - 1) || M == 4 && (P.n || s == a - 1)) && (k.s.rn === 1 && I.push(F), F += 1);
|
|
6649
6649
|
i.a[E].s.totalChars = F;
|
|
6650
6650
|
var W = -1, q;
|
|
6651
|
-
if (
|
|
6651
|
+
if (k.s.rn === 1)
|
|
6652
6652
|
for (s = 0; s < a; s += 1)
|
|
6653
6653
|
P = n[s], W != P.anIndexes[E] && (W = P.anIndexes[E], q = I.splice(Math.floor(Math.random() * I.length), 1)[0]), P.anIndexes[E] = q;
|
|
6654
6654
|
}
|
|
@@ -6773,7 +6773,7 @@ var lottie$1 = { exports: {} };
|
|
|
6773
6773
|
}, TextAnimatorProperty.prototype.getMeasures = function(e, t) {
|
|
6774
6774
|
if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
6775
6775
|
this._isFirstFrame = !1;
|
|
6776
|
-
var i = this._moreOptions.alignment.v, n = this._animatorsData, s = this._textData, a = this.mHelper, o = this._renderType, l = this.renderedLetters.length, c, f, u, p, d = e.l, b, C, y, E, m, x, g, S, T,
|
|
6776
|
+
var i = this._moreOptions.alignment.v, n = this._animatorsData, s = this._textData, a = this.mHelper, o = this._renderType, l = this.renderedLetters.length, c, f, u, p, d = e.l, b, C, y, E, m, x, g, S, T, L, A, _, R, $, z;
|
|
6777
6777
|
if (this._hasMaskedPath) {
|
|
6778
6778
|
if (z = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
6779
6779
|
var j = z.v;
|
|
@@ -6786,15 +6786,15 @@ var lottie$1 = { exports: {} };
|
|
|
6786
6786
|
N = bez.buildBezierData(j.v[u], j.v[u + 1], [j.o[u][0] - j.v[u][0], j.o[u][1] - j.v[u][1]], [j.i[u + 1][0] - j.v[u + 1][0], j.i[u + 1][1] - j.v[u + 1][1]]), b.tLength += N.segmentLength, b.segments.push(N), _ += N.segmentLength;
|
|
6787
6787
|
u = p, z.v.c && (N = bez.buildBezierData(j.v[u], j.v[0], [j.o[u][0] - j.v[u][0], j.o[u][1] - j.v[u][1]], [j.i[0][0] - j.v[0][0], j.i[0][1] - j.v[0][1]]), b.tLength += N.segmentLength, b.segments.push(N), _ += N.segmentLength), this._pathData.pi = b;
|
|
6788
6788
|
}
|
|
6789
|
-
if (b = this._pathData.pi, C = this._pathData.f.v, g = 0, x = 1, E = 0, m = !0,
|
|
6790
|
-
for (b.tLength < Math.abs(C) && (C = -Math.abs(C) % b.tLength), g =
|
|
6791
|
-
C += T[x].partialLength, x -= 1, x < 0 && (g -= 1, T =
|
|
6792
|
-
T =
|
|
6789
|
+
if (b = this._pathData.pi, C = this._pathData.f.v, g = 0, x = 1, E = 0, m = !0, L = b.segments, C < 0 && z.v.c)
|
|
6790
|
+
for (b.tLength < Math.abs(C) && (C = -Math.abs(C) % b.tLength), g = L.length - 1, T = L[g].points, x = T.length - 1; C < 0; )
|
|
6791
|
+
C += T[x].partialLength, x -= 1, x < 0 && (g -= 1, T = L[g].points, x = T.length - 1);
|
|
6792
|
+
T = L[g].points, S = T[x - 1], y = T[x], A = y.partialLength;
|
|
6793
6793
|
}
|
|
6794
6794
|
p = d.length, c = 0, f = 0;
|
|
6795
|
-
var K = e.finalSize * 1.2 * 0.714, H = !0, V,
|
|
6795
|
+
var K = e.finalSize * 1.2 * 0.714, H = !0, V, k, P, M, F;
|
|
6796
6796
|
M = n.length;
|
|
6797
|
-
var I, W = -1, q, X, ee, re = C, ce = g, fe = x, me = -1, de, se, ue, ie, Y, Te,
|
|
6797
|
+
var I, W = -1, q, X, ee, re = C, ce = g, fe = x, me = -1, de, se, ue, ie, Y, Te, Ae, be, Ce = "", Pe = this.defaultPropsArray, ve;
|
|
6798
6798
|
if (e.j === 2 || e.j === 1) {
|
|
6799
6799
|
var ye = 0, xe = 0, we = e.j === 2 ? -0.5 : -1, Se = 0, Me = !0;
|
|
6800
6800
|
for (u = 0; u < p; u += 1)
|
|
@@ -6804,7 +6804,7 @@ var lottie$1 = { exports: {} };
|
|
|
6804
6804
|
ye = 0, Me = !0;
|
|
6805
6805
|
} else {
|
|
6806
6806
|
for (P = 0; P < M; P += 1)
|
|
6807
|
-
V = n[P].a, V.t.propType && (Me && e.j === 2 && (xe += V.t.v * we),
|
|
6807
|
+
V = n[P].a, V.t.propType && (Me && e.j === 2 && (xe += V.t.v * we), k = n[P].s, I = k.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), I.length ? ye += V.t.v * I[0] * we : ye += V.t.v * I * we);
|
|
6808
6808
|
Me = !1;
|
|
6809
6809
|
}
|
|
6810
6810
|
for (ye && (ye += xe); Se < u; )
|
|
@@ -6812,7 +6812,7 @@ var lottie$1 = { exports: {} };
|
|
|
6812
6812
|
}
|
|
6813
6813
|
for (u = 0; u < p; u += 1) {
|
|
6814
6814
|
if (a.reset(), de = 1, d[u].n)
|
|
6815
|
-
c = 0, f += e.yOffset, f += H ? 1 : 0, C = re, H = !1, this._hasMaskedPath && (g = ce, x = fe, T =
|
|
6815
|
+
c = 0, f += e.yOffset, f += H ? 1 : 0, C = re, H = !1, this._hasMaskedPath && (g = ce, x = fe, T = L[g].points, S = T[x - 1], y = T[x], A = y.partialLength, E = 0), Ce = "", be = "", Te = "", ve = "", Pe = this.defaultPropsArray;
|
|
6816
6816
|
else {
|
|
6817
6817
|
if (this._hasMaskedPath) {
|
|
6818
6818
|
if (me !== d[u].line) {
|
|
@@ -6829,20 +6829,20 @@ var lottie$1 = { exports: {} };
|
|
|
6829
6829
|
W !== d[u].ind && (d[W] && (C += d[W].extra), C += d[u].an / 2, W = d[u].ind), C += i[0] * d[u].an * 5e-3;
|
|
6830
6830
|
var Ee = 0;
|
|
6831
6831
|
for (P = 0; P < M; P += 1)
|
|
6832
|
-
V = n[P].a, V.p.propType && (
|
|
6832
|
+
V = n[P].a, V.p.propType && (k = n[P].s, I = k.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), I.length ? Ee += V.p.v[0] * I[0] : Ee += V.p.v[0] * I), V.a.propType && (k = n[P].s, I = k.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), I.length ? Ee += V.a.v[0] * I[0] : Ee += V.a.v[0] * I);
|
|
6833
6833
|
for (m = !0, this._pathData.a.v && (C = d[0].an * 0.5 + (_ - this._pathData.f.v - d[0].an * 0.5 - d[d.length - 1].an * 0.5) * W / (p - 1), C += this._pathData.f.v); m; )
|
|
6834
|
-
E +
|
|
6834
|
+
E + A >= C + Ee || !T ? (R = (C + Ee - E) / y.partialLength, X = S.point[0] + (y.point[0] - S.point[0]) * R, ee = S.point[1] + (y.point[1] - S.point[1]) * R, a.translate(-i[0] * d[u].an * 5e-3, -(i[1] * K) * 0.01), m = !1) : T && (E += y.partialLength, x += 1, x >= T.length && (x = 0, g += 1, L[g] ? T = L[g].points : z.v.c ? (x = 0, g = 0, T = L[g].points) : (E -= y.partialLength, T = null)), T && (S = y, y = T[x], A = y.partialLength));
|
|
6835
6835
|
q = d[u].an / 2 - d[u].add, a.translate(-q, 0, 0);
|
|
6836
6836
|
} else
|
|
6837
6837
|
q = d[u].an / 2 - d[u].add, a.translate(-q, 0, 0), a.translate(-i[0] * d[u].an * 5e-3, -i[1] * K * 0.01, 0);
|
|
6838
6838
|
for (P = 0; P < M; P += 1)
|
|
6839
|
-
V = n[P].a, V.t.propType && (
|
|
6839
|
+
V = n[P].a, V.t.propType && (k = n[P].s, I = k.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), (c !== 0 || e.j !== 0) && (this._hasMaskedPath ? I.length ? C += V.t.v * I[0] : C += V.t.v * I : I.length ? c += V.t.v * I[0] : c += V.t.v * I));
|
|
6840
6840
|
for (e.strokeWidthAnim && (ue = e.sw || 0), e.strokeColorAnim && (e.sc ? se = [e.sc[0], e.sc[1], e.sc[2]] : se = [0, 0, 0]), e.fillColorAnim && e.fc && (ie = [e.fc[0], e.fc[1], e.fc[2]]), P = 0; P < M; P += 1)
|
|
6841
|
-
V = n[P].a, V.a.propType && (
|
|
6841
|
+
V = n[P].a, V.a.propType && (k = n[P].s, I = k.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), I.length ? a.translate(-V.a.v[0] * I[0], -V.a.v[1] * I[1], V.a.v[2] * I[2]) : a.translate(-V.a.v[0] * I, -V.a.v[1] * I, V.a.v[2] * I));
|
|
6842
6842
|
for (P = 0; P < M; P += 1)
|
|
6843
|
-
V = n[P].a, V.s.propType && (
|
|
6843
|
+
V = n[P].a, V.s.propType && (k = n[P].s, I = k.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), I.length ? a.scale(1 + (V.s.v[0] - 1) * I[0], 1 + (V.s.v[1] - 1) * I[1], 1) : a.scale(1 + (V.s.v[0] - 1) * I, 1 + (V.s.v[1] - 1) * I, 1));
|
|
6844
6844
|
for (P = 0; P < M; P += 1) {
|
|
6845
|
-
if (V = n[P].a,
|
|
6845
|
+
if (V = n[P].a, k = n[P].s, I = k.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), V.sk.propType && (I.length ? a.skewFromAxis(-V.sk.v * I[0], V.sa.v * I[1]) : a.skewFromAxis(-V.sk.v * I, V.sa.v * I)), V.r.propType && (I.length ? a.rotateZ(-V.r.v * I[2]) : a.rotateZ(-V.r.v * I)), V.ry.propType && (I.length ? a.rotateY(V.ry.v * I[1]) : a.rotateY(V.ry.v * I)), V.rx.propType && (I.length ? a.rotateX(V.rx.v * I[0]) : a.rotateX(V.rx.v * I)), V.o.propType && (I.length ? de += (V.o.v * I[0] - de) * I[0] : de += (V.o.v * I - de) * I), e.strokeWidthAnim && V.sw.propType && (I.length ? ue += V.sw.v * I[0] : ue += V.sw.v * I), e.strokeColorAnim && V.sc.propType)
|
|
6846
6846
|
for (Y = 0; Y < 3; Y += 1)
|
|
6847
6847
|
I.length ? se[Y] += (V.sc.v[Y] - se[Y]) * I[0] : se[Y] += (V.sc.v[Y] - se[Y]) * I;
|
|
6848
6848
|
if (e.fillColorAnim && e.fc) {
|
|
@@ -6853,12 +6853,12 @@ var lottie$1 = { exports: {} };
|
|
|
6853
6853
|
}
|
|
6854
6854
|
}
|
|
6855
6855
|
for (P = 0; P < M; P += 1)
|
|
6856
|
-
V = n[P].a, V.p.propType && (
|
|
6857
|
-
if (e.strokeWidthAnim && (Te = ue < 0 ? 0 : ue), e.strokeColorAnim && (
|
|
6856
|
+
V = n[P].a, V.p.propType && (k = n[P].s, I = k.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), this._hasMaskedPath ? I.length ? a.translate(0, V.p.v[1] * I[0], -V.p.v[2] * I[1]) : a.translate(0, V.p.v[1] * I, -V.p.v[2] * I) : I.length ? a.translate(V.p.v[0] * I[0], V.p.v[1] * I[1], -V.p.v[2] * I[2]) : a.translate(V.p.v[0] * I, V.p.v[1] * I, -V.p.v[2] * I));
|
|
6857
|
+
if (e.strokeWidthAnim && (Te = ue < 0 ? 0 : ue), e.strokeColorAnim && (Ae = "rgb(" + Math.round(se[0] * 255) + "," + Math.round(se[1] * 255) + "," + Math.round(se[2] * 255) + ")"), e.fillColorAnim && e.fc && (be = "rgb(" + Math.round(ie[0] * 255) + "," + Math.round(ie[1] * 255) + "," + Math.round(ie[2] * 255) + ")"), this._hasMaskedPath) {
|
|
6858
6858
|
if (a.translate(0, -e.ls), a.translate(0, i[1] * K * 0.01 + f, 0), this._pathData.p.v) {
|
|
6859
6859
|
$ = (y.point[1] - S.point[1]) / (y.point[0] - S.point[0]);
|
|
6860
|
-
var
|
|
6861
|
-
y.point[0] < S.point[0] && (
|
|
6860
|
+
var Le = Math.atan($) * 180 / Math.PI;
|
|
6861
|
+
y.point[0] < S.point[0] && (Le += 180), a.rotate(-Le * Math.PI / 180);
|
|
6862
6862
|
}
|
|
6863
6863
|
a.translate(X, ee, 0), C -= i[0] * d[u].an * 5e-3, d[u + 1] && W !== d[u + 1].ind && (C += d[u].an / 2, C += e.tr * 1e-3 * e.finalSize);
|
|
6864
6864
|
} else {
|
|
@@ -6874,7 +6874,7 @@ var lottie$1 = { exports: {} };
|
|
|
6874
6874
|
}
|
|
6875
6875
|
o === "html" ? Ce = a.toCSS() : o === "svg" ? Ce = a.to2dCSS() : Pe = [a.props[0], a.props[1], a.props[2], a.props[3], a.props[4], a.props[5], a.props[6], a.props[7], a.props[8], a.props[9], a.props[10], a.props[11], a.props[12], a.props[13], a.props[14], a.props[15]], ve = de;
|
|
6876
6876
|
}
|
|
6877
|
-
l <= u ? (F = new LetterProps(ve, Te,
|
|
6877
|
+
l <= u ? (F = new LetterProps(ve, Te, Ae, be, Ce, Pe), this.renderedLetters.push(F), l += 1, this.lettersChangedFlag = !0) : (F = this.renderedLetters[u], this.lettersChangedFlag = F.update(ve, Te, Ae, be, Ce, Pe) || this.lettersChangedFlag);
|
|
6878
6878
|
}
|
|
6879
6879
|
}
|
|
6880
6880
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -6990,18 +6990,18 @@ var lottie$1 = { exports: {} };
|
|
|
6990
6990
|
}
|
|
6991
6991
|
if (f.reset(), p && (o[e].n && (d = -y, b += i.yOffset, b += C ? 1 : 0, C = !1), this.applyTextPropertiesToMatrix(i, f, o[e].line, d, b), d += o[e].l || 0, d += y), l) {
|
|
6992
6992
|
S = this.globalData.fontManager.getCharData(i.finalText[e], n.fStyle, this.globalData.fontManager.getFontByName(i.f).fFamily);
|
|
6993
|
-
var
|
|
6993
|
+
var L;
|
|
6994
6994
|
if (S.t === 1)
|
|
6995
|
-
|
|
6995
|
+
L = new SVGCompElement(S.data, this.globalData, this);
|
|
6996
6996
|
else {
|
|
6997
|
-
var
|
|
6998
|
-
S.data && S.data.shapes && (
|
|
6997
|
+
var A = emptyShapeData;
|
|
6998
|
+
S.data && S.data.shapes && (A = this.buildShapeData(S.data, i.finalSize)), L = new SVGShapeElement(A, this.globalData, this);
|
|
6999
6999
|
}
|
|
7000
7000
|
if (this.textSpans[e].glyph) {
|
|
7001
7001
|
var _ = this.textSpans[e].glyph;
|
|
7002
7002
|
this.textSpans[e].childSpan.removeChild(_.layerElement), _.destroy();
|
|
7003
7003
|
}
|
|
7004
|
-
this.textSpans[e].glyph =
|
|
7004
|
+
this.textSpans[e].glyph = L, L._debug = !0, L.prepareFrame(0), L.renderFrame(), this.textSpans[e].childSpan.appendChild(L.layerElement), S.t === 1 && this.textSpans[e].childSpan.setAttribute("transform", "scale(" + i.finalSize / 100 + "," + i.finalSize / 100 + ")");
|
|
7005
7005
|
} else
|
|
7006
7006
|
p && c.setAttribute("transform", "translate(" + f.props[12] + "," + f.props[13] + ")"), c.textContent = o[e].val, c.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
7007
7007
|
}
|
|
@@ -7616,9 +7616,9 @@ var lottie$1 = { exports: {} };
|
|
|
7616
7616
|
e.sc && (i = !0, this.values.stroke = this.buildColor(e.sc), this.values.sWidth = e.sw);
|
|
7617
7617
|
var n = this.globalData.fontManager.getFontByName(e.f), s, a, o = e.l, l = this.mHelper;
|
|
7618
7618
|
this.stroke = i, this.values.fValue = e.finalSize + "px " + this.globalData.fontManager.getFontByName(e.f).fFamily, a = e.finalText.length;
|
|
7619
|
-
var c, f, u, p, d, b, C, y, E, m, x = this.data.singleShape, g = e.tr * 1e-3 * e.finalSize, S = 0, T = 0,
|
|
7619
|
+
var c, f, u, p, d, b, C, y, E, m, x = this.data.singleShape, g = e.tr * 1e-3 * e.finalSize, S = 0, T = 0, L = !0, A = 0;
|
|
7620
7620
|
for (s = 0; s < a; s += 1) {
|
|
7621
|
-
c = this.globalData.fontManager.getCharData(e.finalText[s], n.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), f = c && c.data || {}, l.reset(), x && o[s].n && (S = -g, T += e.yOffset, T +=
|
|
7621
|
+
c = this.globalData.fontManager.getCharData(e.finalText[s], n.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), f = c && c.data || {}, l.reset(), x && o[s].n && (S = -g, T += e.yOffset, T += L ? 1 : 0, L = !1), d = f.shapes ? f.shapes[0].it : [], C = d.length, l.scale(e.finalSize / 100, e.finalSize / 100), x && this.applyTextPropertiesToMatrix(e, l, o[s].line, S, T), E = createSizedArray(C - 1);
|
|
7622
7622
|
var _ = 0;
|
|
7623
7623
|
for (b = 0; b < C; b += 1)
|
|
7624
7624
|
if (d[b].ty === "sh") {
|
|
@@ -7626,9 +7626,9 @@ var lottie$1 = { exports: {} };
|
|
|
7626
7626
|
u === 1 && m.push(l.applyToX(y.v[0][0], y.v[0][1], 0), l.applyToY(y.v[0][0], y.v[0][1], 0)), m.push(l.applyToX(y.o[u - 1][0], y.o[u - 1][1], 0), l.applyToY(y.o[u - 1][0], y.o[u - 1][1], 0), l.applyToX(y.i[u][0], y.i[u][1], 0), l.applyToY(y.i[u][0], y.i[u][1], 0), l.applyToX(y.v[u][0], y.v[u][1], 0), l.applyToY(y.v[u][0], y.v[u][1], 0));
|
|
7627
7627
|
m.push(l.applyToX(y.o[u - 1][0], y.o[u - 1][1], 0), l.applyToY(y.o[u - 1][0], y.o[u - 1][1], 0), l.applyToX(y.i[0][0], y.i[0][1], 0), l.applyToY(y.i[0][0], y.i[0][1], 0), l.applyToX(y.v[0][0], y.v[0][1], 0), l.applyToY(y.v[0][0], y.v[0][1], 0)), E[_] = m, _ += 1;
|
|
7628
7628
|
}
|
|
7629
|
-
x && (S += o[s].l, S += g), this.textSpans[
|
|
7629
|
+
x && (S += o[s].l, S += g), this.textSpans[A] ? this.textSpans[A].elem = E : this.textSpans[A] = {
|
|
7630
7630
|
elem: E
|
|
7631
|
-
},
|
|
7631
|
+
}, A += 1;
|
|
7632
7632
|
}
|
|
7633
7633
|
}, CVTextElement.prototype.renderInnerContent = function() {
|
|
7634
7634
|
this.validateText();
|
|
@@ -8069,8 +8069,8 @@ var lottie$1 = { exports: {} };
|
|
|
8069
8069
|
this.innerElem.appendChild(f);
|
|
8070
8070
|
else {
|
|
8071
8071
|
this.innerElem.appendChild(u);
|
|
8072
|
-
var T = f.style,
|
|
8073
|
-
T.transform =
|
|
8072
|
+
var T = f.style, L = "translate3d(0," + -e.finalSize / 1.2 + "px,0)";
|
|
8073
|
+
T.transform = L, T.webkitTransform = L;
|
|
8074
8074
|
}
|
|
8075
8075
|
this.isMasked ? this.textSpans[y] = f : this.textSpans[y] = u, this.textSpans[y].style.display = "block", this.textPaths[y] = f, y += 1;
|
|
8076
8076
|
}
|
|
@@ -8366,56 +8366,56 @@ var lottie$1 = { exports: {} };
|
|
|
8366
8366
|
function seedRandom(e, t) {
|
|
8367
8367
|
var i = this, n = 256, s = 6, a = 52, o = "random", l = t.pow(n, s), c = t.pow(2, a), f = c * 2, u = n - 1, p;
|
|
8368
8368
|
function d(g, S, T) {
|
|
8369
|
-
var
|
|
8369
|
+
var L = [];
|
|
8370
8370
|
S = S === !0 ? {
|
|
8371
8371
|
entropy: !0
|
|
8372
8372
|
} : S || {};
|
|
8373
|
-
var
|
|
8373
|
+
var A = E(y(S.entropy ? [g, x(e)] : g === null ? m() : g, 3), L), _ = new b(L), R = function() {
|
|
8374
8374
|
for (var z = _.g(s), j = l, N = 0; z < c; )
|
|
8375
8375
|
z = (z + N) * n, j *= n, N = _.g(1);
|
|
8376
8376
|
for (; z >= f; )
|
|
8377
8377
|
z /= 2, j /= 2, N >>>= 1;
|
|
8378
8378
|
return (z + N) / j;
|
|
8379
8379
|
};
|
|
8380
|
-
return
|
|
8380
|
+
return R.int32 = function() {
|
|
8381
8381
|
return _.g(4) | 0;
|
|
8382
|
-
},
|
|
8382
|
+
}, R.quick = function() {
|
|
8383
8383
|
return _.g(4) / 4294967296;
|
|
8384
|
-
},
|
|
8384
|
+
}, R.double = R, E(x(_.S), e), (S.pass || T || function($, z, j, N) {
|
|
8385
8385
|
return N && (N.S && C(N, _), $.state = function() {
|
|
8386
8386
|
return C(_, {});
|
|
8387
8387
|
}), j ? (t[o] = $, z) : $;
|
|
8388
|
-
})(
|
|
8388
|
+
})(R, A, "global" in S ? S.global : this == t, S.state);
|
|
8389
8389
|
}
|
|
8390
8390
|
t["seed" + o] = d;
|
|
8391
8391
|
function b(g) {
|
|
8392
|
-
var S, T = g.length,
|
|
8393
|
-
for (T || (g = [T++]);
|
|
8394
|
-
|
|
8395
|
-
for (
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
for (var z, j = 0, N =
|
|
8392
|
+
var S, T = g.length, L = this, A = 0, _ = L.i = L.j = 0, R = L.S = [];
|
|
8393
|
+
for (T || (g = [T++]); A < n; )
|
|
8394
|
+
R[A] = A++;
|
|
8395
|
+
for (A = 0; A < n; A++)
|
|
8396
|
+
R[A] = R[_ = u & _ + g[A % T] + (S = R[A])], R[_] = S;
|
|
8397
|
+
L.g = function($) {
|
|
8398
|
+
for (var z, j = 0, N = L.i, K = L.j, H = L.S; $--; )
|
|
8399
8399
|
z = H[N = u & N + 1], j = j * n + H[u & (H[N] = H[K = u & K + z]) + (H[K] = z)];
|
|
8400
|
-
return
|
|
8400
|
+
return L.i = N, L.j = K, j;
|
|
8401
8401
|
};
|
|
8402
8402
|
}
|
|
8403
8403
|
function C(g, S) {
|
|
8404
8404
|
return S.i = g.i, S.j = g.j, S.S = g.S.slice(), S;
|
|
8405
8405
|
}
|
|
8406
8406
|
function y(g, S) {
|
|
8407
|
-
var T = [],
|
|
8408
|
-
if (S &&
|
|
8409
|
-
for (
|
|
8407
|
+
var T = [], L = _typeof$2(g), A;
|
|
8408
|
+
if (S && L == "object")
|
|
8409
|
+
for (A in g)
|
|
8410
8410
|
try {
|
|
8411
|
-
T.push(y(g[
|
|
8411
|
+
T.push(y(g[A], S - 1));
|
|
8412
8412
|
} catch {
|
|
8413
8413
|
}
|
|
8414
|
-
return T.length ? T :
|
|
8414
|
+
return T.length ? T : L == "string" ? g : g + "\0";
|
|
8415
8415
|
}
|
|
8416
8416
|
function E(g, S) {
|
|
8417
|
-
for (var T = g + "",
|
|
8418
|
-
S[u &
|
|
8417
|
+
for (var T = g + "", L, A = 0; A < T.length; )
|
|
8418
|
+
S[u & A] = u & (L ^= S[u & A] * 19) + T.charCodeAt(A++);
|
|
8419
8419
|
return x(S);
|
|
8420
8420
|
}
|
|
8421
8421
|
function m() {
|
|
@@ -9180,10 +9180,10 @@ var lottie$1 = { exports: {} };
|
|
|
9180
9180
|
}
|
|
9181
9181
|
function t(C, y, E) {
|
|
9182
9182
|
var m, x = function(T) {
|
|
9183
|
-
for (var
|
|
9184
|
-
if (m[
|
|
9185
|
-
return m[
|
|
9186
|
-
|
|
9183
|
+
for (var L = 0, A = m.length; L < A; ) {
|
|
9184
|
+
if (m[L]._name === T || m[L].mn === T || m[L].propertyIndex === T || m[L].ix === T || m[L].ind === T)
|
|
9185
|
+
return m[L];
|
|
9186
|
+
L += 1;
|
|
9187
9187
|
}
|
|
9188
9188
|
return typeof T == "number" ? m[T - 1] : null;
|
|
9189
9189
|
};
|
|
@@ -9263,19 +9263,19 @@ var lottie$1 = { exports: {} };
|
|
|
9263
9263
|
return C;
|
|
9264
9264
|
}
|
|
9265
9265
|
function o(C, y, E) {
|
|
9266
|
-
var m = propertyGroupFactory(
|
|
9266
|
+
var m = propertyGroupFactory(A, E), x = propertyGroupFactory(L, m);
|
|
9267
9267
|
function g(_) {
|
|
9268
|
-
Object.defineProperty(
|
|
9268
|
+
Object.defineProperty(L, C.d[_].nm, {
|
|
9269
9269
|
get: ExpressionPropertyInterface(y.d.dataProps[_].p)
|
|
9270
9270
|
});
|
|
9271
9271
|
}
|
|
9272
|
-
var S, T = C.d ? C.d.length : 0,
|
|
9272
|
+
var S, T = C.d ? C.d.length : 0, L = {};
|
|
9273
9273
|
for (S = 0; S < T; S += 1)
|
|
9274
9274
|
g(S), y.d.dataProps[S].p.setGroupProperty(x);
|
|
9275
|
-
function
|
|
9276
|
-
return _ === "Color" || _ === "color" ?
|
|
9275
|
+
function A(_) {
|
|
9276
|
+
return _ === "Color" || _ === "color" ? A.color : _ === "Opacity" || _ === "opacity" ? A.opacity : _ === "Stroke Width" || _ === "stroke width" ? A.strokeWidth : null;
|
|
9277
9277
|
}
|
|
9278
|
-
return Object.defineProperties(
|
|
9278
|
+
return Object.defineProperties(A, {
|
|
9279
9279
|
color: {
|
|
9280
9280
|
get: ExpressionPropertyInterface(y.c)
|
|
9281
9281
|
},
|
|
@@ -9287,7 +9287,7 @@ var lottie$1 = { exports: {} };
|
|
|
9287
9287
|
},
|
|
9288
9288
|
dash: {
|
|
9289
9289
|
get: function() {
|
|
9290
|
-
return
|
|
9290
|
+
return L;
|
|
9291
9291
|
}
|
|
9292
9292
|
},
|
|
9293
9293
|
_name: {
|
|
@@ -9296,7 +9296,7 @@ var lottie$1 = { exports: {} };
|
|
|
9296
9296
|
mn: {
|
|
9297
9297
|
value: C.mn
|
|
9298
9298
|
}
|
|
9299
|
-
}), y.c.setGroupProperty(PropertyInterface("Color", m)), y.o.setGroupProperty(PropertyInterface("Opacity", m)), y.w.setGroupProperty(PropertyInterface("Stroke Width", m)),
|
|
9299
|
+
}), y.c.setGroupProperty(PropertyInterface("Color", m)), y.o.setGroupProperty(PropertyInterface("Opacity", m)), y.w.setGroupProperty(PropertyInterface("Stroke Width", m)), A;
|
|
9300
9300
|
}
|
|
9301
9301
|
function l(C, y, E) {
|
|
9302
9302
|
function m(g) {
|
|
@@ -9457,7 +9457,7 @@ var lottie$1 = { exports: {} };
|
|
|
9457
9457
|
function x(S) {
|
|
9458
9458
|
if (typeof S == "number")
|
|
9459
9459
|
return S = S === void 0 ? 1 : S, S === 0 ? E : m[S - 1];
|
|
9460
|
-
for (var T = 0,
|
|
9460
|
+
for (var T = 0, L = m.length; T < L; ) {
|
|
9461
9461
|
if (m[T]._name === S)
|
|
9462
9462
|
return m[T];
|
|
9463
9463
|
T += 1;
|
|
@@ -9599,25 +9599,25 @@ var lottie$1 = { exports: {} };
|
|
|
9599
9599
|
return this.pv;
|
|
9600
9600
|
var x, g;
|
|
9601
9601
|
C ? (b ? x = Math.abs(m - this.elem.comp.globalData.frameRate * b) : x = Math.max(0, m - this.elem.data.ip), g = m - x) : ((!b || b > E.length - 1) && (b = E.length - 1), g = E[E.length - 1 - b].t, x = m - g);
|
|
9602
|
-
var S, T,
|
|
9602
|
+
var S, T, L;
|
|
9603
9603
|
if (d === "pingpong") {
|
|
9604
|
-
var
|
|
9605
|
-
if (
|
|
9604
|
+
var A = Math.floor((y - g) / x);
|
|
9605
|
+
if (A % 2 !== 0)
|
|
9606
9606
|
return this.getValueAtTime((x - (y - g) % x + g) / this.comp.globalData.frameRate, 0);
|
|
9607
9607
|
} else if (d === "offset") {
|
|
9608
|
-
var _ = this.getValueAtTime(g / this.comp.globalData.frameRate, 0),
|
|
9608
|
+
var _ = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), R = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), $ = this.getValueAtTime(((y - g) % x + g) / this.comp.globalData.frameRate, 0), z = Math.floor((y - g) / x);
|
|
9609
9609
|
if (this.pv.length) {
|
|
9610
|
-
for (
|
|
9611
|
-
|
|
9612
|
-
return
|
|
9610
|
+
for (L = new Array(_.length), T = L.length, S = 0; S < T; S += 1)
|
|
9611
|
+
L[S] = (R[S] - _[S]) * z + $[S];
|
|
9612
|
+
return L;
|
|
9613
9613
|
}
|
|
9614
|
-
return (
|
|
9614
|
+
return (R - _) * z + $;
|
|
9615
9615
|
} else if (d === "continue") {
|
|
9616
9616
|
var j = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), N = this.getValueAtTime((m - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
9617
9617
|
if (this.pv.length) {
|
|
9618
|
-
for (
|
|
9619
|
-
|
|
9620
|
-
return
|
|
9618
|
+
for (L = new Array(j.length), T = L.length, S = 0; S < T; S += 1)
|
|
9619
|
+
L[S] = j[S] + (j[S] - N[S]) * ((y - m) / this.comp.globalData.frameRate) / 5e-4;
|
|
9620
|
+
return L;
|
|
9621
9621
|
}
|
|
9622
9622
|
return j + (j - N) * ((y - m) / 1e-3);
|
|
9623
9623
|
}
|
|
@@ -9632,25 +9632,25 @@ var lottie$1 = { exports: {} };
|
|
|
9632
9632
|
return this.pv;
|
|
9633
9633
|
var x, g;
|
|
9634
9634
|
C ? (b ? x = Math.abs(this.elem.comp.globalData.frameRate * b) : x = Math.max(0, this.elem.data.op - m), g = m + x) : ((!b || b > E.length - 1) && (b = E.length - 1), g = E[b].t, x = g - m);
|
|
9635
|
-
var S, T,
|
|
9635
|
+
var S, T, L;
|
|
9636
9636
|
if (d === "pingpong") {
|
|
9637
|
-
var
|
|
9638
|
-
if (
|
|
9637
|
+
var A = Math.floor((m - y) / x);
|
|
9638
|
+
if (A % 2 === 0)
|
|
9639
9639
|
return this.getValueAtTime(((m - y) % x + m) / this.comp.globalData.frameRate, 0);
|
|
9640
9640
|
} else if (d === "offset") {
|
|
9641
|
-
var _ = this.getValueAtTime(m / this.comp.globalData.frameRate, 0),
|
|
9641
|
+
var _ = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), R = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), $ = this.getValueAtTime((x - (m - y) % x + m) / this.comp.globalData.frameRate, 0), z = Math.floor((m - y) / x) + 1;
|
|
9642
9642
|
if (this.pv.length) {
|
|
9643
|
-
for (
|
|
9644
|
-
|
|
9645
|
-
return
|
|
9643
|
+
for (L = new Array(_.length), T = L.length, S = 0; S < T; S += 1)
|
|
9644
|
+
L[S] = $[S] - (R[S] - _[S]) * z;
|
|
9645
|
+
return L;
|
|
9646
9646
|
}
|
|
9647
|
-
return $ - (
|
|
9647
|
+
return $ - (R - _) * z;
|
|
9648
9648
|
} else if (d === "continue") {
|
|
9649
9649
|
var j = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), N = this.getValueAtTime((m + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
9650
9650
|
if (this.pv.length) {
|
|
9651
|
-
for (
|
|
9652
|
-
|
|
9653
|
-
return
|
|
9651
|
+
for (L = new Array(j.length), T = L.length, S = 0; S < T; S += 1)
|
|
9652
|
+
L[S] = j[S] + (j[S] - N[S]) * (m - y) / 1e-3;
|
|
9653
|
+
return L;
|
|
9654
9654
|
}
|
|
9655
9655
|
return j + (j - N) * (m - y) / 1e-3;
|
|
9656
9656
|
}
|
|
@@ -9699,16 +9699,16 @@ var lottie$1 = { exports: {} };
|
|
|
9699
9699
|
var x = this.r.getValueAtTime(d);
|
|
9700
9700
|
b.rotate(-x * this.r.mult);
|
|
9701
9701
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
9702
|
-
var g = this.rz.getValueAtTime(d), S = this.ry.getValueAtTime(d), T = this.rx.getValueAtTime(d),
|
|
9703
|
-
b.rotateZ(-g * this.rz.mult).rotateY(S * this.ry.mult).rotateX(T * this.rx.mult).rotateZ(-
|
|
9702
|
+
var g = this.rz.getValueAtTime(d), S = this.ry.getValueAtTime(d), T = this.rx.getValueAtTime(d), L = this.or.getValueAtTime(d);
|
|
9703
|
+
b.rotateZ(-g * this.rz.mult).rotateY(S * this.ry.mult).rotateX(T * this.rx.mult).rotateZ(-L[2] * this.or.mult).rotateY(L[1] * this.or.mult).rotateX(L[0] * this.or.mult);
|
|
9704
9704
|
}
|
|
9705
9705
|
if (this.data.p && this.data.p.s) {
|
|
9706
|
-
var
|
|
9706
|
+
var A = this.px.getValueAtTime(d), _ = this.py.getValueAtTime(d);
|
|
9707
9707
|
if (this.data.p.z) {
|
|
9708
|
-
var
|
|
9709
|
-
b.translate(
|
|
9708
|
+
var R = this.pz.getValueAtTime(d);
|
|
9709
|
+
b.translate(A * this.px.mult, _ * this.py.mult, -R * this.pz.mult);
|
|
9710
9710
|
} else
|
|
9711
|
-
b.translate(
|
|
9711
|
+
b.translate(A * this.px.mult, _ * this.py.mult, 0);
|
|
9712
9712
|
} else {
|
|
9713
9713
|
var $ = this.p.getValueAtTime(d);
|
|
9714
9714
|
b.translate($[0] * this.p.mult, $[1] * this.p.mult, -$[2] * this.p.mult);
|
|
@@ -9769,16 +9769,16 @@ var lottie$1 = { exports: {} };
|
|
|
9769
9769
|
pointOnPath: function(b, C) {
|
|
9770
9770
|
var y = this.v;
|
|
9771
9771
|
C !== void 0 && (y = this.getValueAtTime(C, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(y));
|
|
9772
|
-
for (var E = this._segmentsLength, m = E.lengths, x = E.totalLength * b, g = 0, S = m.length, T = 0,
|
|
9772
|
+
for (var E = this._segmentsLength, m = E.lengths, x = E.totalLength * b, g = 0, S = m.length, T = 0, L; g < S; ) {
|
|
9773
9773
|
if (T + m[g].addedLength > x) {
|
|
9774
|
-
var
|
|
9775
|
-
|
|
9774
|
+
var A = g, _ = y.c && g === S - 1 ? 0 : g + 1, R = (x - T) / m[g].addedLength;
|
|
9775
|
+
L = bez.getPointInSegment(y.v[A], y.v[_], y.o[A], y.i[_], R, m[g]);
|
|
9776
9776
|
break;
|
|
9777
9777
|
} else
|
|
9778
9778
|
T += m[g].addedLength;
|
|
9779
9779
|
g += 1;
|
|
9780
9780
|
}
|
|
9781
|
-
return
|
|
9781
|
+
return L || (L = y.c ? [y.v[0][0], y.v[0][1]] : [y.v[y._length - 1][0], y.v[y._length - 1][1]]), L;
|
|
9782
9782
|
},
|
|
9783
9783
|
vectorOnPath: function(b, C, y) {
|
|
9784
9784
|
b == 1 ? b = this.v.c : b == 0 && (b = 0.999);
|
|
@@ -10152,49 +10152,49 @@ function _toPropertyKey(e) {
|
|
|
10152
10152
|
var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"], useLottie = function e(t, i) {
|
|
10153
10153
|
var n = t.animationData, s = t.loop, a = t.autoplay, o = t.initialSegment, l = t.onComplete, c = t.onLoopComplete, f = t.onEnterFrame, u = t.onSegmentStart, p = t.onConfigReady, d = t.onDataReady, b = t.onDataFailed, C = t.onLoadedImages, y = t.onDOMLoaded, E = t.onDestroy;
|
|
10154
10154
|
t.lottieRef, t.renderer, t.name, t.assetsPath, t.rendererSettings;
|
|
10155
|
-
var m = _objectWithoutProperties(t, _excluded$1), x = useState(!1), g = _slicedToArray(x, 2), S = g[0], T = g[1],
|
|
10155
|
+
var m = _objectWithoutProperties(t, _excluded$1), x = useState(!1), g = _slicedToArray(x, 2), S = g[0], T = g[1], L = useRef(), A = useRef(null), _ = function() {
|
|
10156
10156
|
var W;
|
|
10157
|
-
(W =
|
|
10158
|
-
},
|
|
10157
|
+
(W = L.current) === null || W === void 0 || W.play();
|
|
10158
|
+
}, R = function() {
|
|
10159
10159
|
var W;
|
|
10160
|
-
(W =
|
|
10160
|
+
(W = L.current) === null || W === void 0 || W.stop();
|
|
10161
10161
|
}, $ = function() {
|
|
10162
10162
|
var W;
|
|
10163
|
-
(W =
|
|
10163
|
+
(W = L.current) === null || W === void 0 || W.pause();
|
|
10164
10164
|
}, z = function(W) {
|
|
10165
10165
|
var q;
|
|
10166
|
-
(q =
|
|
10166
|
+
(q = L.current) === null || q === void 0 || q.setSpeed(W);
|
|
10167
10167
|
}, j = function(W, q) {
|
|
10168
10168
|
var X;
|
|
10169
|
-
(X =
|
|
10169
|
+
(X = L.current) === null || X === void 0 || X.goToAndPlay(W, q);
|
|
10170
10170
|
}, N = function(W, q) {
|
|
10171
10171
|
var X;
|
|
10172
|
-
(X =
|
|
10172
|
+
(X = L.current) === null || X === void 0 || X.goToAndStop(W, q);
|
|
10173
10173
|
}, K = function(W) {
|
|
10174
10174
|
var q;
|
|
10175
|
-
(q =
|
|
10175
|
+
(q = L.current) === null || q === void 0 || q.setDirection(W);
|
|
10176
10176
|
}, H = function(W, q) {
|
|
10177
10177
|
var X;
|
|
10178
|
-
(X =
|
|
10178
|
+
(X = L.current) === null || X === void 0 || X.playSegments(W, q);
|
|
10179
10179
|
}, V = function(W) {
|
|
10180
10180
|
var q;
|
|
10181
|
-
(q =
|
|
10182
|
-
},
|
|
10181
|
+
(q = L.current) === null || q === void 0 || q.setSubframe(W);
|
|
10182
|
+
}, k = function(W) {
|
|
10183
10183
|
var q;
|
|
10184
|
-
return (q =
|
|
10184
|
+
return (q = L.current) === null || q === void 0 ? void 0 : q.getDuration(W);
|
|
10185
10185
|
}, P = function() {
|
|
10186
10186
|
var W;
|
|
10187
|
-
(W =
|
|
10187
|
+
(W = L.current) === null || W === void 0 || W.destroy(), L.current = void 0;
|
|
10188
10188
|
}, M = function() {
|
|
10189
10189
|
var W = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, q;
|
|
10190
|
-
if (
|
|
10191
|
-
(q =
|
|
10190
|
+
if (A.current) {
|
|
10191
|
+
(q = L.current) === null || q === void 0 || q.destroy();
|
|
10192
10192
|
var X = _objectSpread2(_objectSpread2(_objectSpread2({}, t), W), {}, {
|
|
10193
|
-
container:
|
|
10193
|
+
container: A.current
|
|
10194
10194
|
});
|
|
10195
|
-
return
|
|
10195
|
+
return L.current = lottie.loadAnimation(X), T(!!L.current), function() {
|
|
10196
10196
|
var ee;
|
|
10197
|
-
(ee =
|
|
10197
|
+
(ee = L.current) === null || ee === void 0 || ee.destroy(), L.current = void 0;
|
|
10198
10198
|
};
|
|
10199
10199
|
}
|
|
10200
10200
|
};
|
|
@@ -10204,14 +10204,14 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10204
10204
|
return I == null ? void 0 : I();
|
|
10205
10205
|
};
|
|
10206
10206
|
}, [n, s]), useEffect(function() {
|
|
10207
|
-
|
|
10207
|
+
L.current && (L.current.autoplay = !!a);
|
|
10208
10208
|
}, [a]), useEffect(function() {
|
|
10209
|
-
if (
|
|
10209
|
+
if (L.current) {
|
|
10210
10210
|
if (!o) {
|
|
10211
|
-
|
|
10211
|
+
L.current.resetSegments(!0);
|
|
10212
10212
|
return;
|
|
10213
10213
|
}
|
|
10214
|
-
!Array.isArray(o) || !o.length || ((
|
|
10214
|
+
!Array.isArray(o) || !o.length || ((L.current.currentRawFrame < o[0] || L.current.currentRawFrame > o[1]) && (L.current.currentRawFrame = o[0]), L.current.setSegment(o[0], o[1]));
|
|
10215
10215
|
}
|
|
10216
10216
|
}, [o]), useEffect(function() {
|
|
10217
10217
|
var I = [{
|
|
@@ -10256,9 +10256,9 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10256
10256
|
*/
|
|
10257
10257
|
function(X) {
|
|
10258
10258
|
var ee;
|
|
10259
|
-
return (ee =
|
|
10259
|
+
return (ee = L.current) === null || ee === void 0 || ee.addEventListener(X.name, X.handler), function() {
|
|
10260
10260
|
var re;
|
|
10261
|
-
(re =
|
|
10261
|
+
(re = L.current) === null || re === void 0 || re.removeEventListener(X.name, X.handler);
|
|
10262
10262
|
};
|
|
10263
10263
|
}
|
|
10264
10264
|
);
|
|
@@ -10271,12 +10271,12 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10271
10271
|
}, [l, c, f, u, p, d, b, C, y, E]);
|
|
10272
10272
|
var F = /* @__PURE__ */ React__default.createElement("div", _objectSpread2({
|
|
10273
10273
|
style: i,
|
|
10274
|
-
ref:
|
|
10274
|
+
ref: A
|
|
10275
10275
|
}, m));
|
|
10276
10276
|
return {
|
|
10277
10277
|
View: F,
|
|
10278
10278
|
play: _,
|
|
10279
|
-
stop:
|
|
10279
|
+
stop: R,
|
|
10280
10280
|
pause: $,
|
|
10281
10281
|
setSpeed: z,
|
|
10282
10282
|
goToAndStop: N,
|
|
@@ -10284,11 +10284,11 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10284
10284
|
setDirection: K,
|
|
10285
10285
|
playSegments: H,
|
|
10286
10286
|
setSubframe: V,
|
|
10287
|
-
getDuration:
|
|
10287
|
+
getDuration: k,
|
|
10288
10288
|
destroy: P,
|
|
10289
|
-
animationContainerRef:
|
|
10289
|
+
animationContainerRef: A,
|
|
10290
10290
|
animationLoaded: S,
|
|
10291
|
-
animationItem:
|
|
10291
|
+
animationItem: L.current
|
|
10292
10292
|
};
|
|
10293
10293
|
};
|
|
10294
10294
|
function getContainerVisibility(e) {
|
|
@@ -10333,9 +10333,9 @@ var useInitInteractivity = function e(t) {
|
|
|
10333
10333
|
var x = getContainerCursorPosition(o, E, m);
|
|
10334
10334
|
E = x.x, m = x.y;
|
|
10335
10335
|
}
|
|
10336
|
-
var g = a.find(function(
|
|
10337
|
-
var
|
|
10338
|
-
return
|
|
10336
|
+
var g = a.find(function(L) {
|
|
10337
|
+
var A = L.position;
|
|
10338
|
+
return A && Array.isArray(A.x) && Array.isArray(A.y) ? E >= A.x[0] && E <= A.x[1] && m >= A.y[0] && m <= A.y[1] : A && !Number.isNaN(A.x) && !Number.isNaN(A.y) ? E === A.x && m === A.y : !1;
|
|
10339
10339
|
});
|
|
10340
10340
|
if (g) {
|
|
10341
10341
|
if (g.type === "seek" && g.position && Array.isArray(g.position.x) && Array.isArray(g.position.y) && g.frames.length === 2) {
|
|
@@ -10370,7 +10370,7 @@ var useInitInteractivity = function e(t) {
|
|
|
10370
10370
|
wrapperRef: l
|
|
10371
10371
|
}), o;
|
|
10372
10372
|
}, _excluded = ["style", "interactivity"], Lottie = function e(t) {
|
|
10373
|
-
var i, n, s, a = t.style, o = t.interactivity, l = _objectWithoutProperties(t, _excluded), c = useLottie(l, a), f = c.View, u = c.play, p = c.stop, d = c.pause, b = c.setSpeed, C = c.goToAndStop, y = c.goToAndPlay, E = c.setDirection, m = c.playSegments, x = c.setSubframe, g = c.getDuration, S = c.destroy, T = c.animationContainerRef,
|
|
10373
|
+
var i, n, s, a = t.style, o = t.interactivity, l = _objectWithoutProperties(t, _excluded), c = useLottie(l, a), f = c.View, u = c.play, p = c.stop, d = c.pause, b = c.setSpeed, C = c.goToAndStop, y = c.goToAndPlay, E = c.setDirection, m = c.playSegments, x = c.setSubframe, g = c.getDuration, S = c.destroy, T = c.animationContainerRef, L = c.animationLoaded, A = c.animationItem;
|
|
10374
10374
|
return useEffect(function() {
|
|
10375
10375
|
t.lottieRef && (t.lottieRef.current = {
|
|
10376
10376
|
play: u,
|
|
@@ -10385,8 +10385,8 @@ var useInitInteractivity = function e(t) {
|
|
|
10385
10385
|
getDuration: g,
|
|
10386
10386
|
destroy: S,
|
|
10387
10387
|
animationContainerRef: T,
|
|
10388
|
-
animationLoaded:
|
|
10389
|
-
animationItem:
|
|
10388
|
+
animationLoaded: L,
|
|
10389
|
+
animationItem: A
|
|
10390
10390
|
});
|
|
10391
10391
|
}, [(i = t.lottieRef) === null || i === void 0 ? void 0 : i.current]), useLottieInteractivity({
|
|
10392
10392
|
lottieObj: {
|
|
@@ -10403,8 +10403,8 @@ var useInitInteractivity = function e(t) {
|
|
|
10403
10403
|
getDuration: g,
|
|
10404
10404
|
destroy: S,
|
|
10405
10405
|
animationContainerRef: T,
|
|
10406
|
-
animationLoaded:
|
|
10407
|
-
animationItem:
|
|
10406
|
+
animationLoaded: L,
|
|
10407
|
+
animationItem: A
|
|
10408
10408
|
},
|
|
10409
10409
|
actions: (n = o == null ? void 0 : o.actions) !== null && n !== void 0 ? n : [],
|
|
10410
10410
|
mode: (s = o == null ? void 0 : o.mode) !== null && s !== void 0 ? s : "scroll"
|
|
@@ -11123,12 +11123,12 @@ var effectCar = createSidecarMedium(), nothing = function() {
|
|
|
11123
11123
|
onScrollCapture: nothing,
|
|
11124
11124
|
onWheelCapture: nothing,
|
|
11125
11125
|
onTouchMoveCapture: nothing
|
|
11126
|
-
}), s = n[0], a = n[1], o = e.forwardProps, l = e.children, c = e.className, f = e.removeScrollBar, u = e.enabled, p = e.shards, d = e.sideCar, b = e.noIsolation, C = e.inert, y = e.allowPinchZoom, E = e.as, m = E === void 0 ? "div" : E, x = e.gapMode, g = __rest$1(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = d, T = useMergeRefs([i, t]),
|
|
11126
|
+
}), s = n[0], a = n[1], o = e.forwardProps, l = e.children, c = e.className, f = e.removeScrollBar, u = e.enabled, p = e.shards, d = e.sideCar, b = e.noIsolation, C = e.inert, y = e.allowPinchZoom, E = e.as, m = E === void 0 ? "div" : E, x = e.gapMode, g = __rest$1(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = d, T = useMergeRefs([i, t]), L = __assign$1(__assign$1({}, g), s);
|
|
11127
11127
|
return React.createElement(
|
|
11128
11128
|
React.Fragment,
|
|
11129
11129
|
null,
|
|
11130
11130
|
u && React.createElement(S, { sideCar: effectCar, removeScrollBar: f, shards: p, noIsolation: b, inert: C, setCallbacks: a, allowPinchZoom: !!y, lockRef: i, gapMode: x }),
|
|
11131
|
-
o ? React.cloneElement(React.Children.only(l), __assign$1(__assign$1({},
|
|
11131
|
+
o ? React.cloneElement(React.Children.only(l), __assign$1(__assign$1({}, L), { ref: T })) : React.createElement(m, __assign$1({}, L, { className: c, ref: T }), l)
|
|
11132
11132
|
);
|
|
11133
11133
|
});
|
|
11134
11134
|
RemoveScroll.defaultProps = {
|
|
@@ -11370,18 +11370,18 @@ function RemoveScrollSideCar(e) {
|
|
|
11370
11370
|
var l = React.useCallback(function(y, E) {
|
|
11371
11371
|
if ("touches" in y && y.touches.length === 2 || y.type === "wheel" && y.ctrlKey)
|
|
11372
11372
|
return !o.current.allowPinchZoom;
|
|
11373
|
-
var m = getTouchXY(y), x = i.current, g = "deltaX" in y ? y.deltaX : x[0] - m[0], S = "deltaY" in y ? y.deltaY : x[1] - m[1], T,
|
|
11374
|
-
if ("touches" in y &&
|
|
11373
|
+
var m = getTouchXY(y), x = i.current, g = "deltaX" in y ? y.deltaX : x[0] - m[0], S = "deltaY" in y ? y.deltaY : x[1] - m[1], T, L = y.target, A = Math.abs(g) > Math.abs(S) ? "h" : "v";
|
|
11374
|
+
if ("touches" in y && A === "h" && L.type === "range")
|
|
11375
11375
|
return !1;
|
|
11376
|
-
var _ = locationCouldBeScrolled(
|
|
11376
|
+
var _ = locationCouldBeScrolled(A, L);
|
|
11377
11377
|
if (!_)
|
|
11378
11378
|
return !0;
|
|
11379
|
-
if (_ ? T =
|
|
11379
|
+
if (_ ? T = A : (T = A === "v" ? "h" : "v", _ = locationCouldBeScrolled(A, L)), !_)
|
|
11380
11380
|
return !1;
|
|
11381
11381
|
if (!n.current && "changedTouches" in y && (g || S) && (n.current = T), !T)
|
|
11382
11382
|
return !0;
|
|
11383
|
-
var
|
|
11384
|
-
return handleScroll(
|
|
11383
|
+
var R = n.current || T;
|
|
11384
|
+
return handleScroll(R, E, y, R === "h" ? g : S, !0);
|
|
11385
11385
|
}, []), c = React.useCallback(function(y) {
|
|
11386
11386
|
var E = y;
|
|
11387
11387
|
if (!(!lockStack.length || lockStack[lockStack.length - 1] !== a)) {
|
|
@@ -11784,15 +11784,15 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
|
|
|
11784
11784
|
onInteractOutside: o,
|
|
11785
11785
|
onDismiss: l,
|
|
11786
11786
|
...c
|
|
11787
|
-
} = e, f = React.useContext(DismissableLayerContext), [u, p] = React.useState(null), d = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, b] = React.useState({}), C = useComposedRefs$1(t, (
|
|
11788
|
-
const _ =
|
|
11789
|
-
!S ||
|
|
11790
|
-
}, d),
|
|
11791
|
-
const _ =
|
|
11792
|
-
[...f.branches].some(($) => $.contains(_)) || (a == null || a(
|
|
11787
|
+
} = e, f = React.useContext(DismissableLayerContext), [u, p] = React.useState(null), d = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, b] = React.useState({}), C = useComposedRefs$1(t, (A) => p(A)), y = Array.from(f.layers), [E] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), m = y.indexOf(E), x = u ? y.indexOf(u) : -1, g = f.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= m, T = usePointerDownOutside((A) => {
|
|
11788
|
+
const _ = A.target, R = [...f.branches].some(($) => $.contains(_));
|
|
11789
|
+
!S || R || (s == null || s(A), o == null || o(A), A.defaultPrevented || l == null || l());
|
|
11790
|
+
}, d), L = useFocusOutside((A) => {
|
|
11791
|
+
const _ = A.target;
|
|
11792
|
+
[...f.branches].some(($) => $.contains(_)) || (a == null || a(A), o == null || o(A), A.defaultPrevented || l == null || l());
|
|
11793
11793
|
}, d);
|
|
11794
|
-
return useEscapeKeydown((
|
|
11795
|
-
x === f.layers.size - 1 && (n == null || n(
|
|
11794
|
+
return useEscapeKeydown((A) => {
|
|
11795
|
+
x === f.layers.size - 1 && (n == null || n(A), !A.defaultPrevented && l && (A.preventDefault(), l()));
|
|
11796
11796
|
}, d), React.useEffect(() => {
|
|
11797
11797
|
if (u)
|
|
11798
11798
|
return i && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (originalBodyPointerEvents = d.body.style.pointerEvents, d.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(u)), f.layers.add(u), dispatchUpdate(), () => {
|
|
@@ -11801,8 +11801,8 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
|
|
|
11801
11801
|
}, [u, d, i, f]), React.useEffect(() => () => {
|
|
11802
11802
|
u && (f.layers.delete(u), f.layersWithOutsidePointerEventsDisabled.delete(u), dispatchUpdate());
|
|
11803
11803
|
}, [u, f]), React.useEffect(() => {
|
|
11804
|
-
const
|
|
11805
|
-
return document.addEventListener(CONTEXT_UPDATE,
|
|
11804
|
+
const A = () => b({});
|
|
11805
|
+
return document.addEventListener(CONTEXT_UPDATE, A), () => document.removeEventListener(CONTEXT_UPDATE, A);
|
|
11806
11806
|
}, []), /* @__PURE__ */ jsx(
|
|
11807
11807
|
Primitive.div,
|
|
11808
11808
|
{
|
|
@@ -11812,8 +11812,8 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
|
|
|
11812
11812
|
pointerEvents: g ? S ? "auto" : "none" : void 0,
|
|
11813
11813
|
...e.style
|
|
11814
11814
|
},
|
|
11815
|
-
onFocusCapture: composeEventHandlers(e.onFocusCapture,
|
|
11816
|
-
onBlurCapture: composeEventHandlers(e.onBlurCapture,
|
|
11815
|
+
onFocusCapture: composeEventHandlers(e.onFocusCapture, L.onFocusCapture),
|
|
11816
|
+
onBlurCapture: composeEventHandlers(e.onBlurCapture, L.onBlurCapture),
|
|
11817
11817
|
onPointerDownCapture: composeEventHandlers(
|
|
11818
11818
|
e.onPointerDownCapture,
|
|
11819
11819
|
T.onPointerDownCapture
|
|
@@ -12690,25 +12690,25 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12690
12690
|
innerHeight: window.innerHeight
|
|
12691
12691
|
} : void 0);
|
|
12692
12692
|
React__default.useEffect(() => {
|
|
12693
|
-
function
|
|
12693
|
+
function A() {
|
|
12694
12694
|
b({
|
|
12695
12695
|
innerWidth: window.innerWidth,
|
|
12696
12696
|
innerHeight: window.innerHeight
|
|
12697
12697
|
});
|
|
12698
12698
|
}
|
|
12699
|
-
return window.addEventListener("resize",
|
|
12699
|
+
return window.addEventListener("resize", A), () => window.removeEventListener("resize", A);
|
|
12700
12700
|
}, []);
|
|
12701
12701
|
const C = React__default.useMemo(() => u === (i == null ? void 0 : i[i.length - 1]) || null, [
|
|
12702
12702
|
i,
|
|
12703
12703
|
u
|
|
12704
12704
|
]), y = React__default.useMemo(() => {
|
|
12705
|
-
var
|
|
12706
|
-
return (
|
|
12705
|
+
var A;
|
|
12706
|
+
return (A = i == null ? void 0 : i.findIndex((_) => _ === u)) != null ? A : null;
|
|
12707
12707
|
}, [
|
|
12708
12708
|
i,
|
|
12709
12709
|
u
|
|
12710
12710
|
]), E = i && i.length > 0 && (a || a === 0) && !Number.isNaN(a) && i[a] === u || !i, m = React__default.useMemo(() => {
|
|
12711
|
-
const
|
|
12711
|
+
const A = c ? {
|
|
12712
12712
|
width: c.getBoundingClientRect().width,
|
|
12713
12713
|
height: c.getBoundingClientRect().height
|
|
12714
12714
|
} : typeof window < "u" ? {
|
|
@@ -12719,15 +12719,15 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12719
12719
|
height: 0
|
|
12720
12720
|
};
|
|
12721
12721
|
var _;
|
|
12722
|
-
return (_ = i == null ? void 0 : i.map((
|
|
12723
|
-
const $ = typeof
|
|
12722
|
+
return (_ = i == null ? void 0 : i.map((R) => {
|
|
12723
|
+
const $ = typeof R == "string";
|
|
12724
12724
|
let z = 0;
|
|
12725
|
-
if ($ && (z = parseInt(
|
|
12726
|
-
const N = $ ? z : d ?
|
|
12727
|
-
return d ? l === "bottom" ?
|
|
12725
|
+
if ($ && (z = parseInt(R, 10)), isVertical(l)) {
|
|
12726
|
+
const N = $ ? z : d ? R * A.height : 0;
|
|
12727
|
+
return d ? l === "bottom" ? A.height - N : -A.height + N : N;
|
|
12728
12728
|
}
|
|
12729
|
-
const j = $ ? z : d ?
|
|
12730
|
-
return d ? l === "right" ?
|
|
12729
|
+
const j = $ ? z : d ? R * A.width : 0;
|
|
12730
|
+
return d ? l === "right" ? A.width - j : -A.width + j : j;
|
|
12731
12731
|
})) != null ? _ : [];
|
|
12732
12732
|
}, [
|
|
12733
12733
|
i,
|
|
@@ -12736,19 +12736,19 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12736
12736
|
]), x = React__default.useMemo(() => y !== null ? m == null ? void 0 : m[y] : null, [
|
|
12737
12737
|
m,
|
|
12738
12738
|
y
|
|
12739
|
-
]), g = React__default.useCallback((
|
|
12739
|
+
]), g = React__default.useCallback((A) => {
|
|
12740
12740
|
var _;
|
|
12741
|
-
const
|
|
12742
|
-
o(
|
|
12741
|
+
const R = (_ = m == null ? void 0 : m.findIndex(($) => $ === A)) != null ? _ : null;
|
|
12742
|
+
o(R), set(n.current, {
|
|
12743
12743
|
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
12744
|
-
transform: isVertical(l) ? `translate3d(0, ${
|
|
12745
|
-
}), m &&
|
|
12744
|
+
transform: isVertical(l) ? `translate3d(0, ${A}px, 0)` : `translate3d(${A}px, 0, 0)`
|
|
12745
|
+
}), m && R !== m.length - 1 && a !== void 0 && R !== a && R < a ? set(s.current, {
|
|
12746
12746
|
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
12747
12747
|
opacity: "0"
|
|
12748
12748
|
}) : set(s.current, {
|
|
12749
12749
|
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
12750
12750
|
opacity: "1"
|
|
12751
|
-
}), p(i == null ? void 0 : i[Math.max(
|
|
12751
|
+
}), p(i == null ? void 0 : i[Math.max(R, 0)]);
|
|
12752
12752
|
}, [
|
|
12753
12753
|
n.current,
|
|
12754
12754
|
i,
|
|
@@ -12759,8 +12759,8 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12759
12759
|
]);
|
|
12760
12760
|
React__default.useEffect(() => {
|
|
12761
12761
|
if (u || e) {
|
|
12762
|
-
var
|
|
12763
|
-
const _ = (
|
|
12762
|
+
var A;
|
|
12763
|
+
const _ = (A = i == null ? void 0 : i.findIndex((R) => R === e || R === u)) != null ? A : -1;
|
|
12764
12764
|
m && _ !== -1 && typeof m[_] == "number" && g(m[_]);
|
|
12765
12765
|
}
|
|
12766
12766
|
}, [
|
|
@@ -12770,54 +12770,54 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12770
12770
|
m,
|
|
12771
12771
|
g
|
|
12772
12772
|
]);
|
|
12773
|
-
function S({ draggedDistance:
|
|
12773
|
+
function S({ draggedDistance: A, closeDrawer: _, velocity: R, dismissible: $ }) {
|
|
12774
12774
|
if (a === void 0) return;
|
|
12775
|
-
const z = l === "bottom" || l === "right" ? (x ?? 0) -
|
|
12775
|
+
const z = l === "bottom" || l === "right" ? (x ?? 0) - A : (x ?? 0) + A, j = y === a - 1, N = y === 0, K = A > 0;
|
|
12776
12776
|
if (j && set(s.current, {
|
|
12777
12777
|
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`
|
|
12778
|
-
}), !f &&
|
|
12778
|
+
}), !f && R > 2 && !K) {
|
|
12779
12779
|
$ ? _() : g(m[0]);
|
|
12780
12780
|
return;
|
|
12781
12781
|
}
|
|
12782
|
-
if (!f &&
|
|
12782
|
+
if (!f && R > 2 && K && m && i) {
|
|
12783
12783
|
g(m[i.length - 1]);
|
|
12784
12784
|
return;
|
|
12785
12785
|
}
|
|
12786
|
-
const H = m == null ? void 0 : m.reduce((
|
|
12787
|
-
if (
|
|
12788
|
-
const
|
|
12789
|
-
if (
|
|
12786
|
+
const H = m == null ? void 0 : m.reduce((k, P) => typeof k != "number" || typeof P != "number" ? k : Math.abs(P - z) < Math.abs(k - z) ? P : k), V = isVertical(l) ? window.innerHeight : window.innerWidth;
|
|
12787
|
+
if (R > VELOCITY_THRESHOLD && Math.abs(A) < V * 0.4) {
|
|
12788
|
+
const k = K ? 1 : -1;
|
|
12789
|
+
if (k > 0 && C && i) {
|
|
12790
12790
|
g(m[i.length - 1]);
|
|
12791
12791
|
return;
|
|
12792
12792
|
}
|
|
12793
|
-
if (N &&
|
|
12794
|
-
g(m[y +
|
|
12793
|
+
if (N && k < 0 && $ && _(), y === null) return;
|
|
12794
|
+
g(m[y + k]);
|
|
12795
12795
|
return;
|
|
12796
12796
|
}
|
|
12797
12797
|
g(H);
|
|
12798
12798
|
}
|
|
12799
|
-
function T({ draggedDistance:
|
|
12799
|
+
function T({ draggedDistance: A }) {
|
|
12800
12800
|
if (x === null) return;
|
|
12801
|
-
const _ = l === "bottom" || l === "right" ? x -
|
|
12801
|
+
const _ = l === "bottom" || l === "right" ? x - A : x + A;
|
|
12802
12802
|
(l === "bottom" || l === "right") && _ < m[m.length - 1] || (l === "top" || l === "left") && _ > m[m.length - 1] || set(n.current, {
|
|
12803
12803
|
transform: isVertical(l) ? `translate3d(0, ${_}px, 0)` : `translate3d(${_}px, 0, 0)`
|
|
12804
12804
|
});
|
|
12805
12805
|
}
|
|
12806
|
-
function A
|
|
12806
|
+
function L(A, _) {
|
|
12807
12807
|
if (!i || typeof y != "number" || !m || a === void 0) return null;
|
|
12808
|
-
const
|
|
12808
|
+
const R = y === a - 1;
|
|
12809
12809
|
if (y >= a && _)
|
|
12810
12810
|
return 0;
|
|
12811
|
-
if (
|
|
12812
|
-
if (!E && !
|
|
12813
|
-
const z =
|
|
12814
|
-
return
|
|
12811
|
+
if (R && !_) return 1;
|
|
12812
|
+
if (!E && !R) return null;
|
|
12813
|
+
const z = R ? y + 1 : y - 1, j = R ? m[z] - m[z - 1] : m[z + 1] - m[z], N = A / Math.abs(j);
|
|
12814
|
+
return R ? 1 - N : N;
|
|
12815
12815
|
}
|
|
12816
12816
|
return {
|
|
12817
12817
|
isLastSnapPoint: C,
|
|
12818
12818
|
activeSnapPoint: u,
|
|
12819
12819
|
shouldFade: E,
|
|
12820
|
-
getPercentageDragged:
|
|
12820
|
+
getPercentageDragged: L,
|
|
12821
12821
|
setActiveSnapPoint: p,
|
|
12822
12822
|
activeSnapPointIndex: y,
|
|
12823
12823
|
onRelease: S,
|
|
@@ -12935,19 +12935,19 @@ function usePositionFixed({ isOpen: e, modal: t, nested: i, hasBeenOpened: n, pr
|
|
|
12935
12935
|
restorePositionSetting: u
|
|
12936
12936
|
};
|
|
12937
12937
|
}
|
|
12938
|
-
function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s, snapPoints: a, shouldScaleBackground: o = !1, setBackgroundColorOnScale: l = !0, closeThreshold: c = CLOSE_THRESHOLD, scrollLockTimeout: f = SCROLL_LOCK_TIMEOUT, dismissible: u = !0, handleOnly: p = !1, fadeFromIndex: d = a && a.length - 1, activeSnapPoint: b, setActiveSnapPoint: C, fixed: y, modal: E = !0, onClose: m, nested: x, noBodyStyles: g = !1, direction: S = "bottom", defaultOpen: T = !1, disablePreventScroll:
|
|
12938
|
+
function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s, snapPoints: a, shouldScaleBackground: o = !1, setBackgroundColorOnScale: l = !0, closeThreshold: c = CLOSE_THRESHOLD, scrollLockTimeout: f = SCROLL_LOCK_TIMEOUT, dismissible: u = !0, handleOnly: p = !1, fadeFromIndex: d = a && a.length - 1, activeSnapPoint: b, setActiveSnapPoint: C, fixed: y, modal: E = !0, onClose: m, nested: x, noBodyStyles: g = !1, direction: S = "bottom", defaultOpen: T = !1, disablePreventScroll: L = !0, snapToSequentialPoint: A = !1, preventScrollRestoration: _ = !1, repositionInputs: R = !0, onAnimationEnd: $, container: z, autoFocus: j = !1 }) {
|
|
12939
12939
|
var N, K;
|
|
12940
12940
|
const [H = !1, V] = useControllableState({
|
|
12941
12941
|
defaultProp: T,
|
|
12942
12942
|
prop: e,
|
|
12943
12943
|
onChange: (B) => {
|
|
12944
|
-
t == null || t(B), !B && !x &&
|
|
12944
|
+
t == null || t(B), !B && !x && Le(), setTimeout(() => {
|
|
12945
12945
|
$ == null || $(B);
|
|
12946
12946
|
}, TRANSITIONS.DURATION * 1e3), B && !E && typeof window < "u" && window.requestAnimationFrame(() => {
|
|
12947
12947
|
document.body.style.pointerEvents = "auto";
|
|
12948
12948
|
}), B || (document.body.style.pointerEvents = "auto");
|
|
12949
12949
|
}
|
|
12950
|
-
}), [
|
|
12950
|
+
}), [k, P] = React__default.useState(!1), [M, F] = React__default.useState(!1), [I, W] = React__default.useState(!1), q = React__default.useRef(null), X = React__default.useRef(null), ee = React__default.useRef(null), re = React__default.useRef(null), ce = React__default.useRef(null), fe = React__default.useRef(!1), me = React__default.useRef(null), de = React__default.useRef(0), se = React__default.useRef(!1), ue = React__default.useRef(!T), ie = React__default.useRef(0), Y = React__default.useRef(null), Te = React__default.useRef(((N = Y.current) == null ? void 0 : N.getBoundingClientRect().height) || 0), Ae = React__default.useRef(((K = Y.current) == null ? void 0 : K.getBoundingClientRect().width) || 0), be = React__default.useRef(0), Ce = React__default.useCallback((B) => {
|
|
12951
12951
|
a && B === we.length - 1 && (X.current = /* @__PURE__ */ new Date());
|
|
12952
12952
|
}, []), { activeSnapPoint: Pe, activeSnapPointIndex: ve, setActiveSnapPoint: ye, onRelease: xe, snapPointsOffset: we, onDrag: Se, shouldFade: Me, getPercentageDragged: Ee } = useSnapPoints({
|
|
12953
12953
|
snapPoints: a,
|
|
@@ -12959,25 +12959,25 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
12959
12959
|
onSnapPointChange: Ce,
|
|
12960
12960
|
direction: S,
|
|
12961
12961
|
container: z,
|
|
12962
|
-
snapToSequentialPoint:
|
|
12962
|
+
snapToSequentialPoint: A
|
|
12963
12963
|
});
|
|
12964
12964
|
usePreventScroll({
|
|
12965
|
-
isDisabled: !H || M || !E || I || !
|
|
12965
|
+
isDisabled: !H || M || !E || I || !k || !R || !L
|
|
12966
12966
|
});
|
|
12967
|
-
const { restorePositionSetting:
|
|
12967
|
+
const { restorePositionSetting: Le } = usePositionFixed({
|
|
12968
12968
|
isOpen: H,
|
|
12969
12969
|
modal: E,
|
|
12970
12970
|
nested: x ?? !1,
|
|
12971
|
-
hasBeenOpened:
|
|
12971
|
+
hasBeenOpened: k,
|
|
12972
12972
|
preventScrollRestoration: _,
|
|
12973
12973
|
noBodyStyles: g
|
|
12974
12974
|
});
|
|
12975
12975
|
function _e() {
|
|
12976
12976
|
return (window.innerWidth - WINDOW_TOP_OFFSET) / window.innerWidth;
|
|
12977
12977
|
}
|
|
12978
|
-
function
|
|
12978
|
+
function ke(B) {
|
|
12979
12979
|
var O, Z;
|
|
12980
|
-
!u && !a || Y.current && !Y.current.contains(B.target) || (Te.current = ((O = Y.current) == null ? void 0 : O.getBoundingClientRect().height) || 0,
|
|
12980
|
+
!u && !a || Y.current && !Y.current.contains(B.target) || (Te.current = ((O = Y.current) == null ? void 0 : O.getBoundingClientRect().height) || 0, Ae.current = ((Z = Y.current) == null ? void 0 : Z.getBoundingClientRect().width) || 0, F(!0), ee.current = /* @__PURE__ */ new Date(), isIOS() && window.addEventListener("touchend", () => fe.current = !1, {
|
|
12981
12981
|
once: !0
|
|
12982
12982
|
}), B.target.setPointerCapture(B.pointerId), de.current = isVertical(S) ? B.pageY : B.pageX);
|
|
12983
12983
|
}
|
|
@@ -13012,7 +13012,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13012
13012
|
if (Y.current && M) {
|
|
13013
13013
|
const O = S === "bottom" || S === "right" ? 1 : -1, Z = (de.current - (isVertical(S) ? B.pageY : B.pageX)) * O, J = Z > 0, Q = a && !u && !J;
|
|
13014
13014
|
if (Q && ve === 0) return;
|
|
13015
|
-
const te = Math.abs(Z), ne = document.querySelector("[data-vaul-drawer-wrapper]"), le = S === "bottom" || S === "top" ? Te.current :
|
|
13015
|
+
const te = Math.abs(Z), ne = document.querySelector("[data-vaul-drawer-wrapper]"), le = S === "bottom" || S === "top" ? Te.current : Ae.current;
|
|
13016
13016
|
let ae = te / le;
|
|
13017
13017
|
const oe = Ee(te, J);
|
|
13018
13018
|
if (oe !== null && (ae = oe), Q && ae >= 1 || !fe.current && !Ie(B.target, J)) return;
|
|
@@ -13056,7 +13056,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13056
13056
|
}, []), React__default.useEffect(() => {
|
|
13057
13057
|
var B;
|
|
13058
13058
|
function O() {
|
|
13059
|
-
if (!Y.current || !
|
|
13059
|
+
if (!Y.current || !R) return;
|
|
13060
13060
|
const Z = document.activeElement;
|
|
13061
13061
|
if (isInput(Z) || se.current) {
|
|
13062
13062
|
var J;
|
|
@@ -13091,7 +13091,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13091
13091
|
a && ye(a[0]);
|
|
13092
13092
|
}, TRANSITIONS.DURATION * 1e3);
|
|
13093
13093
|
}
|
|
13094
|
-
function
|
|
13094
|
+
function Re() {
|
|
13095
13095
|
if (!Y.current) return;
|
|
13096
13096
|
const B = document.querySelector("[data-vaul-drawer-wrapper]"), O = getTranslate(Y.current, S);
|
|
13097
13097
|
set(Y.current, {
|
|
@@ -13136,7 +13136,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13136
13136
|
return;
|
|
13137
13137
|
}
|
|
13138
13138
|
if (S === "bottom" || S === "right" ? J > 0 : J < 0) {
|
|
13139
|
-
|
|
13139
|
+
Re(), s == null || s(B, !0);
|
|
13140
13140
|
return;
|
|
13141
13141
|
}
|
|
13142
13142
|
if (Q > VELOCITY_THRESHOLD) {
|
|
@@ -13151,7 +13151,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13151
13151
|
Ve(), s == null || s(B, !1);
|
|
13152
13152
|
return;
|
|
13153
13153
|
}
|
|
13154
|
-
s == null || s(B, !0),
|
|
13154
|
+
s == null || s(B, !0), Re();
|
|
13155
13155
|
}
|
|
13156
13156
|
React__default.useEffect(() => (H && (set(document.documentElement, {
|
|
13157
13157
|
scrollBehavior: "auto"
|
|
@@ -13208,7 +13208,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13208
13208
|
drawerRef: Y,
|
|
13209
13209
|
overlayRef: q,
|
|
13210
13210
|
onOpenChange: t,
|
|
13211
|
-
onPress:
|
|
13211
|
+
onPress: ke,
|
|
13212
13212
|
onRelease: Be,
|
|
13213
13213
|
onDrag: Oe,
|
|
13214
13214
|
dismissible: u,
|
|
@@ -13253,20 +13253,20 @@ const Overlay = /* @__PURE__ */ React__default.forwardRef(function({ ...e }, t)
|
|
|
13253
13253
|
});
|
|
13254
13254
|
Overlay.displayName = "Drawer.Overlay";
|
|
13255
13255
|
const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: i, ...n }, s) {
|
|
13256
|
-
const { drawerRef: a, onPress: o, onRelease: l, onDrag: c, keyboardIsOpen: f, snapPointsOffset: u, activeSnapPointIndex: p, modal: d, isOpen: b, direction: C, snapPoints: y, container: E, handleOnly: m, shouldAnimate: x, autoFocus: g } = useDrawerContext(), [S, T] = React__default.useState(!1),
|
|
13256
|
+
const { drawerRef: a, onPress: o, onRelease: l, onDrag: c, keyboardIsOpen: f, snapPointsOffset: u, activeSnapPointIndex: p, modal: d, isOpen: b, direction: C, snapPoints: y, container: E, handleOnly: m, shouldAnimate: x, autoFocus: g } = useDrawerContext(), [S, T] = React__default.useState(!1), L = useComposedRefs(s, a), A = React__default.useRef(null), _ = React__default.useRef(null), R = React__default.useRef(!1), $ = y && y.length > 0;
|
|
13257
13257
|
useScaleBackground();
|
|
13258
13258
|
const z = (N, K, H = 0) => {
|
|
13259
|
-
if (
|
|
13260
|
-
const V = Math.abs(N.y),
|
|
13259
|
+
if (R.current) return !0;
|
|
13260
|
+
const V = Math.abs(N.y), k = Math.abs(N.x), P = k > V, M = [
|
|
13261
13261
|
"bottom",
|
|
13262
13262
|
"right"
|
|
13263
13263
|
].includes(K) ? 1 : -1;
|
|
13264
13264
|
if (K === "left" || K === "right") {
|
|
13265
|
-
if (!(N.x * M < 0) &&
|
|
13265
|
+
if (!(N.x * M < 0) && k >= 0 && k <= H)
|
|
13266
13266
|
return P;
|
|
13267
13267
|
} else if (!(N.y * M < 0) && V >= 0 && V <= H)
|
|
13268
13268
|
return !P;
|
|
13269
|
-
return
|
|
13269
|
+
return R.current = !0, !0;
|
|
13270
13270
|
};
|
|
13271
13271
|
React__default.useEffect(() => {
|
|
13272
13272
|
$ && window.requestAnimationFrame(() => {
|
|
@@ -13274,7 +13274,7 @@ const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDo
|
|
|
13274
13274
|
});
|
|
13275
13275
|
}, []);
|
|
13276
13276
|
function j(N) {
|
|
13277
|
-
|
|
13277
|
+
A.current = null, R.current = !1, l(N);
|
|
13278
13278
|
}
|
|
13279
13279
|
return /* @__PURE__ */ React__default.createElement(Content$1, {
|
|
13280
13280
|
"data-vaul-drawer-direction": C,
|
|
@@ -13284,13 +13284,13 @@ const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDo
|
|
|
13284
13284
|
"data-vaul-custom-container": E ? "true" : "false",
|
|
13285
13285
|
"data-vaul-animate": x != null && x.current ? "true" : "false",
|
|
13286
13286
|
...n,
|
|
13287
|
-
ref:
|
|
13287
|
+
ref: L,
|
|
13288
13288
|
style: u && u.length > 0 ? {
|
|
13289
13289
|
"--snap-point-height": `${u[p ?? 0]}px`,
|
|
13290
13290
|
...t
|
|
13291
13291
|
} : t,
|
|
13292
13292
|
onPointerDown: (N) => {
|
|
13293
|
-
m || (n.onPointerDown == null || n.onPointerDown.call(n, N),
|
|
13293
|
+
m || (n.onPointerDown == null || n.onPointerDown.call(n, N), A.current = {
|
|
13294
13294
|
x: N.pageX,
|
|
13295
13295
|
y: N.pageY
|
|
13296
13296
|
}, o(N));
|
|
@@ -13312,15 +13312,15 @@ const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDo
|
|
|
13312
13312
|
}
|
|
13313
13313
|
},
|
|
13314
13314
|
onPointerMove: (N) => {
|
|
13315
|
-
if (_.current = N, m || (n.onPointerMove == null || n.onPointerMove.call(n, N), !
|
|
13316
|
-
const K = N.pageY -
|
|
13315
|
+
if (_.current = N, m || (n.onPointerMove == null || n.onPointerMove.call(n, N), !A.current)) return;
|
|
13316
|
+
const K = N.pageY - A.current.y, H = N.pageX - A.current.x, V = N.pointerType === "touch" ? 10 : 2;
|
|
13317
13317
|
z({
|
|
13318
13318
|
x: H,
|
|
13319
13319
|
y: K
|
|
13320
|
-
}, C, V) ? c(N) : (Math.abs(H) > V || Math.abs(K) > V) && (
|
|
13320
|
+
}, C, V) ? c(N) : (Math.abs(H) > V || Math.abs(K) > V) && (A.current = null);
|
|
13321
13321
|
},
|
|
13322
13322
|
onPointerUp: (N) => {
|
|
13323
|
-
n.onPointerUp == null || n.onPointerUp.call(n, N),
|
|
13323
|
+
n.onPointerUp == null || n.onPointerUp.call(n, N), A.current = null, R.current = !1, l(N);
|
|
13324
13324
|
},
|
|
13325
13325
|
onPointerOut: (N) => {
|
|
13326
13326
|
n.onPointerOut == null || n.onPointerOut.call(n, N), j(_.current);
|
|
@@ -13355,10 +13355,10 @@ const LONG_HANDLE_PRESS_TIMEOUT = 250, DOUBLE_TAP_TIMEOUT = 120, Handle = /* @__
|
|
|
13355
13355
|
s();
|
|
13356
13356
|
return;
|
|
13357
13357
|
}
|
|
13358
|
-
const T = o.findIndex((
|
|
13358
|
+
const T = o.findIndex((A) => A === l);
|
|
13359
13359
|
if (T === -1) return;
|
|
13360
|
-
const
|
|
13361
|
-
c(
|
|
13360
|
+
const L = o[T + 1];
|
|
13361
|
+
c(L);
|
|
13362
13362
|
}
|
|
13363
13363
|
function x() {
|
|
13364
13364
|
C.current = window.setTimeout(() => {
|
|
@@ -14881,6 +14881,102 @@ const Drawer = {
|
|
|
14881
14881
|
) })
|
|
14882
14882
|
]
|
|
14883
14883
|
}
|
|
14884
|
+
), Rotate360Icon = (e) => /* @__PURE__ */ jsxs(
|
|
14885
|
+
"svg",
|
|
14886
|
+
{
|
|
14887
|
+
width: "21",
|
|
14888
|
+
height: "20",
|
|
14889
|
+
viewBox: "0 0 21 20",
|
|
14890
|
+
fill: "none",
|
|
14891
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14892
|
+
...e,
|
|
14893
|
+
children: [
|
|
14894
|
+
/* @__PURE__ */ jsx(
|
|
14895
|
+
"mask",
|
|
14896
|
+
{
|
|
14897
|
+
id: "mask0_26898_28846",
|
|
14898
|
+
style: { maskType: "alpha" },
|
|
14899
|
+
maskUnits: "userSpaceOnUse",
|
|
14900
|
+
x: "0",
|
|
14901
|
+
y: "0",
|
|
14902
|
+
width: "21",
|
|
14903
|
+
height: "20",
|
|
14904
|
+
children: /* @__PURE__ */ jsx("rect", { x: "0.335938", width: "20", height: "20", fill: "#D9D9D9" })
|
|
14905
|
+
}
|
|
14906
|
+
),
|
|
14907
|
+
/* @__PURE__ */ jsx("g", { mask: "url(#mask0_26898_28846)", children: /* @__PURE__ */ jsx(
|
|
14908
|
+
"path",
|
|
14909
|
+
{
|
|
14910
|
+
d: "M7.83333 16.6666L6.66667 15.4999L8.125 13.9999C6.34722 13.7638 4.88194 13.2777 3.72917 12.5416C2.57639 11.8055 2 10.9583 2 9.99992C2 8.84714 2.80208 7.8645 4.40625 7.052C6.01042 6.2395 7.98611 5.83325 10.3333 5.83325C12.6806 5.83325 14.6563 6.2395 16.2604 7.052C17.8646 7.8645 18.6667 8.84714 18.6667 9.99992C18.6667 10.861 18.2049 11.6319 17.2812 12.3124C16.3576 12.993 15.1528 13.4999 13.6667 13.8333V12.1249C14.7361 11.8471 15.559 11.5034 16.1354 11.0937C16.7118 10.6839 17 10.3194 17 9.99992C17 9.55547 16.4062 9.0277 15.2188 8.41659C14.0312 7.80547 12.4028 7.49992 10.3333 7.49992C8.26389 7.49992 6.63542 7.80547 5.44792 8.41659C4.26042 9.0277 3.66667 9.55547 3.66667 9.99992C3.66667 10.3333 4.02083 10.7326 4.72917 11.1978C5.4375 11.6631 6.44444 12.0138 7.75 12.2499L6.66667 11.1666L7.83333 9.99992L11.1667 13.3333L7.83333 16.6666Z",
|
|
14911
|
+
fill: "currentColor"
|
|
14912
|
+
}
|
|
14913
|
+
) })
|
|
14914
|
+
]
|
|
14915
|
+
}
|
|
14916
|
+
), EncryptedIcon = (e) => /* @__PURE__ */ jsxs(
|
|
14917
|
+
"svg",
|
|
14918
|
+
{
|
|
14919
|
+
width: "21",
|
|
14920
|
+
height: "20",
|
|
14921
|
+
viewBox: "0 0 21 20",
|
|
14922
|
+
fill: "none",
|
|
14923
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14924
|
+
...e,
|
|
14925
|
+
children: [
|
|
14926
|
+
/* @__PURE__ */ jsx(
|
|
14927
|
+
"mask",
|
|
14928
|
+
{
|
|
14929
|
+
id: "mask0_26898_28855",
|
|
14930
|
+
style: { maskType: "alpha" },
|
|
14931
|
+
maskUnits: "userSpaceOnUse",
|
|
14932
|
+
x: "0",
|
|
14933
|
+
y: "0",
|
|
14934
|
+
width: "21",
|
|
14935
|
+
height: "20",
|
|
14936
|
+
children: /* @__PURE__ */ jsx("rect", { x: "0.671875", width: "20", height: "20", fill: "#D9D9D9" })
|
|
14937
|
+
}
|
|
14938
|
+
),
|
|
14939
|
+
/* @__PURE__ */ jsx("g", { mask: "url(#mask0_26898_28855)", children: /* @__PURE__ */ jsx(
|
|
14940
|
+
"path",
|
|
14941
|
+
{
|
|
14942
|
+
d: "M9.42448 12.5001H11.9245L11.4453 9.81258C11.7231 9.67369 11.9418 9.4723 12.1016 9.20841C12.2613 8.94453 12.3411 8.65286 12.3411 8.33341C12.3411 7.87508 12.178 7.48272 11.8516 7.15633C11.5252 6.82994 11.1328 6.66675 10.6745 6.66675C10.2161 6.66675 9.82378 6.82994 9.4974 7.15633C9.17101 7.48272 9.00781 7.87508 9.00781 8.33341C9.00781 8.65286 9.08767 8.94453 9.2474 9.20841C9.40712 9.4723 9.62587 9.67369 9.90365 9.81258L9.42448 12.5001ZM10.6745 18.3334C8.74392 17.8473 7.15017 16.7397 5.89323 15.0105C4.63628 13.2813 4.00781 11.3612 4.00781 9.25008V4.16675L10.6745 1.66675L17.3411 4.16675V9.25008C17.3411 11.3612 16.7127 13.2813 15.4557 15.0105C14.1988 16.7397 12.605 17.8473 10.6745 18.3334ZM10.6745 16.5834C12.1189 16.1251 13.3134 15.2084 14.2578 13.8334C15.2023 12.4584 15.6745 10.9306 15.6745 9.25008V5.31258L10.6745 3.43758L5.67448 5.31258V9.25008C5.67448 10.9306 6.1467 12.4584 7.09115 13.8334C8.03559 15.2084 9.23003 16.1251 10.6745 16.5834Z",
|
|
14943
|
+
fill: "currentColor"
|
|
14944
|
+
}
|
|
14945
|
+
) })
|
|
14946
|
+
]
|
|
14947
|
+
}
|
|
14948
|
+
), RoutingIcon = (e) => /* @__PURE__ */ jsxs(
|
|
14949
|
+
"svg",
|
|
14950
|
+
{
|
|
14951
|
+
width: "20",
|
|
14952
|
+
height: "20",
|
|
14953
|
+
viewBox: "0 0 20 20",
|
|
14954
|
+
fill: "none",
|
|
14955
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14956
|
+
...e,
|
|
14957
|
+
children: [
|
|
14958
|
+
/* @__PURE__ */ jsx(
|
|
14959
|
+
"mask",
|
|
14960
|
+
{
|
|
14961
|
+
id: "mask0_27034_20191",
|
|
14962
|
+
style: { maskType: "alpha" },
|
|
14963
|
+
maskUnits: "userSpaceOnUse",
|
|
14964
|
+
x: "0",
|
|
14965
|
+
y: "0",
|
|
14966
|
+
width: "20",
|
|
14967
|
+
height: "20",
|
|
14968
|
+
children: /* @__PURE__ */ jsx("rect", { width: "20", height: "20", fill: "#D9D9D9" })
|
|
14969
|
+
}
|
|
14970
|
+
),
|
|
14971
|
+
/* @__PURE__ */ jsx("g", { mask: "url(#mask0_27034_20191)", children: /* @__PURE__ */ jsx(
|
|
14972
|
+
"path",
|
|
14973
|
+
{
|
|
14974
|
+
d: "M15.8333 17.2916C15.3131 17.2916 14.8497 17.1353 14.4431 16.8228C14.0366 16.5103 13.7687 16.111 13.6394 15.6249H9.16667C8.30347 15.6249 7.56681 15.3199 6.95667 14.7099C6.34667 14.0998 6.04167 13.3631 6.04167 12.4999C6.04167 11.6367 6.34667 10.9001 6.95667 10.2899C7.56681 9.67992 8.30347 9.37492 9.16667 9.37492H10.8333C11.349 9.37492 11.7904 9.19117 12.1575 8.82367C12.5247 8.45617 12.7083 8.01443 12.7083 7.49846C12.7083 6.98235 12.5247 6.54103 12.1575 6.1745C11.7904 5.80811 11.349 5.62492 10.8333 5.62492H6.36062C6.22271 6.11103 5.95264 6.51034 5.55042 6.82284C5.14819 7.13534 4.68694 7.29159 4.16667 7.29159C3.53014 7.29159 2.98903 7.06888 2.54333 6.62346C2.09778 6.17804 1.875 5.63721 1.875 5.00096C1.875 4.36457 2.09778 3.82339 2.54333 3.37742C2.98903 2.93131 3.53014 2.70825 4.16667 2.70825C4.68694 2.70825 5.14819 2.8645 5.55042 3.177C5.95264 3.4895 6.22271 3.88881 6.36062 4.37492H10.8333C11.6965 4.37492 12.4332 4.67992 13.0433 5.28992C13.6533 5.90006 13.9583 6.63672 13.9583 7.49992C13.9583 8.36311 13.6533 9.09978 13.0433 9.70992C12.4332 10.3199 11.6965 10.6249 10.8333 10.6249H9.16667C8.65097 10.6249 8.20958 10.8087 7.8425 11.1762C7.47528 11.5437 7.29167 11.9854 7.29167 12.5014C7.29167 13.0175 7.47528 13.4588 7.8425 13.8253C8.20958 14.1917 8.65097 14.3749 9.16667 14.3749H13.6394C13.7773 13.8888 14.0474 13.4895 14.4496 13.177C14.8518 12.8645 15.3131 12.7083 15.8333 12.7083C16.4699 12.7083 17.011 12.931 17.4567 13.3764C17.9022 13.8218 18.125 14.3626 18.125 14.9989C18.125 15.6353 17.9022 16.1764 17.4567 16.6224C17.011 17.0685 16.4699 17.2916 15.8333 17.2916ZM4.16667 6.04159C4.45625 6.04159 4.70222 5.94033 4.90458 5.73783C5.10708 5.53547 5.20833 5.2895 5.20833 4.99992C5.20833 4.71034 5.10708 4.46436 4.90458 4.262C4.70222 4.0595 4.45625 3.95825 4.16667 3.95825C3.87708 3.95825 3.63111 4.0595 3.42875 4.262C3.22625 4.46436 3.125 4.71034 3.125 4.99992C3.125 5.2895 3.22625 5.53547 3.42875 5.73783C3.63111 5.94033 3.87708 6.04159 4.16667 6.04159Z",
|
|
14975
|
+
fill: "currentColor"
|
|
14976
|
+
}
|
|
14977
|
+
) })
|
|
14978
|
+
]
|
|
14979
|
+
}
|
|
14884
14980
|
), ArbitrumLogo = (e) => /* @__PURE__ */ jsxs(
|
|
14885
14981
|
"svg",
|
|
14886
14982
|
{
|
|
@@ -16772,7 +16868,7 @@ function createRenderBatcher(e, t) {
|
|
|
16772
16868
|
};
|
|
16773
16869
|
return { schedule: stepsOrder.reduce((m, x) => {
|
|
16774
16870
|
const g = o[x];
|
|
16775
|
-
return m[x] = (S, T = !1,
|
|
16871
|
+
return m[x] = (S, T = !1, L = !1) => (i || C(), g.schedule(S, T, L)), m;
|
|
16776
16872
|
}, {}), cancel: (m) => {
|
|
16777
16873
|
for (let x = 0; x < stepsOrder.length; x++)
|
|
16778
16874
|
o[stepsOrder[x]].cancel(m);
|
|
@@ -17407,8 +17503,8 @@ function spring({ keyframes: e, restDelta: t, restSpeed: i, ...n }) {
|
|
|
17407
17503
|
else {
|
|
17408
17504
|
const g = E * Math.sqrt(C * C - 1);
|
|
17409
17505
|
x = (S) => {
|
|
17410
|
-
const T = Math.exp(-C * E * S),
|
|
17411
|
-
return a - T * ((b + C * E * y) * Math.sinh(
|
|
17506
|
+
const T = Math.exp(-C * E * S), L = Math.min(g * S, 300);
|
|
17507
|
+
return a - T * ((b + C * E * y) * Math.sinh(L) + g * y * Math.cosh(L)) / g;
|
|
17412
17508
|
};
|
|
17413
17509
|
}
|
|
17414
17510
|
return {
|
|
@@ -17420,8 +17516,8 @@ function spring({ keyframes: e, restDelta: t, restSpeed: i, ...n }) {
|
|
|
17420
17516
|
else {
|
|
17421
17517
|
let T = 0;
|
|
17422
17518
|
C < 1 && (T = g === 0 ? secondsToMilliseconds(b) : calcGeneratorVelocity(x, g, S));
|
|
17423
|
-
const
|
|
17424
|
-
o.done =
|
|
17519
|
+
const L = Math.abs(T) <= i, A = Math.abs(a - S) <= t;
|
|
17520
|
+
o.done = L && A;
|
|
17425
17521
|
}
|
|
17426
17522
|
return o.value = o.done ? a : S, o;
|
|
17427
17523
|
}
|
|
@@ -17436,12 +17532,12 @@ function inertia({ keyframes: e, velocity: t = 0, power: i = 0.8, timeConstant:
|
|
|
17436
17532
|
const E = p + y, m = o === void 0 ? E : o(E);
|
|
17437
17533
|
m !== E && (y = m - p);
|
|
17438
17534
|
const x = (_) => -y * Math.exp(-_ / n), g = (_) => m + x(_), S = (_) => {
|
|
17439
|
-
const
|
|
17440
|
-
d.done = Math.abs(
|
|
17535
|
+
const R = x(_), $ = g(_);
|
|
17536
|
+
d.done = Math.abs(R) <= f, d.value = d.done ? m : $;
|
|
17441
17537
|
};
|
|
17442
|
-
let T,
|
|
17443
|
-
const
|
|
17444
|
-
b(d.value) && (T = _,
|
|
17538
|
+
let T, L;
|
|
17539
|
+
const A = (_) => {
|
|
17540
|
+
b(d.value) && (T = _, L = spring({
|
|
17445
17541
|
keyframes: [d.value, C(d.value)],
|
|
17446
17542
|
velocity: calcGeneratorVelocity(g, _, d.value),
|
|
17447
17543
|
// TODO: This should be passing * 1000
|
|
@@ -17451,11 +17547,11 @@ function inertia({ keyframes: e, velocity: t = 0, power: i = 0.8, timeConstant:
|
|
|
17451
17547
|
restSpeed: u
|
|
17452
17548
|
}));
|
|
17453
17549
|
};
|
|
17454
|
-
return
|
|
17550
|
+
return A(0), {
|
|
17455
17551
|
calculatedDuration: null,
|
|
17456
17552
|
next: (_) => {
|
|
17457
|
-
let
|
|
17458
|
-
return !
|
|
17553
|
+
let R = !1;
|
|
17554
|
+
return !L && T === void 0 && (R = !0, S(_), A(_)), T !== void 0 && _ >= T ? L.next(_ - T) : (!R && S(_), d);
|
|
17459
17555
|
}
|
|
17460
17556
|
};
|
|
17461
17557
|
}
|
|
@@ -17722,15 +17818,15 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
17722
17818
|
let g = this.currentTime, S = a;
|
|
17723
17819
|
if (b) {
|
|
17724
17820
|
const _ = Math.min(this.currentTime, u) / p;
|
|
17725
|
-
let
|
|
17726
|
-
!$ && _ >= 1 && ($ = 1), $ === 1 &&
|
|
17821
|
+
let R = Math.floor(_), $ = _ % 1;
|
|
17822
|
+
!$ && _ >= 1 && ($ = 1), $ === 1 && R--, R = Math.min(R, b + 1), !!(R % 2) && (C === "reverse" ? ($ = 1 - $, y && ($ -= y / p)) : C === "mirror" && (S = o)), g = clamp(0, 1, $) * p;
|
|
17727
17823
|
}
|
|
17728
17824
|
const T = x ? { done: !1, value: c[0] } : S.next(g);
|
|
17729
17825
|
l && (T.value = l(T.value));
|
|
17730
|
-
let { done:
|
|
17731
|
-
!x && f !== null && (
|
|
17732
|
-
const
|
|
17733
|
-
return
|
|
17826
|
+
let { done: L } = T;
|
|
17827
|
+
!x && f !== null && (L = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
|
|
17828
|
+
const A = this.holdTime === null && (this.state === "finished" || this.state === "running" && L);
|
|
17829
|
+
return A && s !== void 0 && (T.value = getFinalKeyframe(c, this.options, s)), E && E(T.value), A && this.finish(), T;
|
|
17734
17830
|
}
|
|
17735
17831
|
get duration() {
|
|
17736
17832
|
const { resolved: t } = this;
|
|
@@ -18527,36 +18623,36 @@ function createAnimationState(e) {
|
|
|
18527
18623
|
for (let E = 0; E < numAnimationTypes; E++) {
|
|
18528
18624
|
const m = reversePriorityOrder[E], x = i[m], g = f[m] !== void 0 ? f[m] : u[m], S = isVariantLabel(g), T = m === c ? x.isActive : null;
|
|
18529
18625
|
T === !1 && (C = E);
|
|
18530
|
-
let
|
|
18531
|
-
if (
|
|
18626
|
+
let L = g === u[m] && g !== f[m] && S;
|
|
18627
|
+
if (L && n && e.manuallyAnimateOnMount && (L = !1), x.protectedKeys = { ...b }, // If it isn't active and hasn't *just* been set as inactive
|
|
18532
18628
|
!x.isActive && T === null || // If we didn't and don't have any defined prop for this animation type
|
|
18533
18629
|
!g && !x.prevProp || // Or if the prop doesn't define an animation
|
|
18534
18630
|
isAnimationControls(g) || typeof g == "boolean")
|
|
18535
18631
|
continue;
|
|
18536
|
-
const
|
|
18537
|
-
let _ =
|
|
18538
|
-
m === c && x.isActive && !
|
|
18539
|
-
E > C && S,
|
|
18632
|
+
const A = checkVariantsDidChange(x.prevProp, g);
|
|
18633
|
+
let _ = A || // If we're making this variant active, we want to always make it active
|
|
18634
|
+
m === c && x.isActive && !L && S || // If we removed a higher-priority variant (i is in reverse order)
|
|
18635
|
+
E > C && S, R = !1;
|
|
18540
18636
|
const $ = Array.isArray(g) ? g : [g];
|
|
18541
18637
|
let z = $.reduce(s(m), {});
|
|
18542
18638
|
T === !1 && (z = {});
|
|
18543
18639
|
const { prevResolvedValues: j = {} } = x, N = {
|
|
18544
18640
|
...j,
|
|
18545
18641
|
...z
|
|
18546
|
-
}, K = (
|
|
18547
|
-
_ = !0, d.has(
|
|
18548
|
-
const P = e.getValue(
|
|
18642
|
+
}, K = (k) => {
|
|
18643
|
+
_ = !0, d.has(k) && (R = !0, d.delete(k)), x.needsAnimating[k] = !0;
|
|
18644
|
+
const P = e.getValue(k);
|
|
18549
18645
|
P && (P.liveStyle = !1);
|
|
18550
18646
|
};
|
|
18551
|
-
for (const
|
|
18552
|
-
const P = z[
|
|
18553
|
-
if (b.hasOwnProperty(
|
|
18647
|
+
for (const k in N) {
|
|
18648
|
+
const P = z[k], M = j[k];
|
|
18649
|
+
if (b.hasOwnProperty(k))
|
|
18554
18650
|
continue;
|
|
18555
18651
|
let F = !1;
|
|
18556
|
-
isKeyframesTarget(P) && isKeyframesTarget(M) ? F = !shallowCompare(P, M) : F = P !== M, F ? P != null ? K(
|
|
18652
|
+
isKeyframesTarget(P) && isKeyframesTarget(M) ? F = !shallowCompare(P, M) : F = P !== M, F ? P != null ? K(k) : d.add(k) : P !== void 0 && d.has(k) ? K(k) : x.protectedKeys[k] = !0;
|
|
18557
18653
|
}
|
|
18558
|
-
x.prevProp = g, x.prevResolvedValues = z, x.isActive && (b = { ...b, ...z }), n && e.blockInitialAnimation && (_ = !1), _ && (!(
|
|
18559
|
-
animation:
|
|
18654
|
+
x.prevProp = g, x.prevResolvedValues = z, x.isActive && (b = { ...b, ...z }), n && e.blockInitialAnimation && (_ = !1), _ && (!(L && A) || R) && p.push(...$.map((k) => ({
|
|
18655
|
+
animation: k,
|
|
18560
18656
|
options: { type: m }
|
|
18561
18657
|
})));
|
|
18562
18658
|
}
|
|
@@ -21306,10 +21402,10 @@ const AnimatePresence = ({ children: e, exitBeforeEnter: t, custom: i, initial:
|
|
|
21306
21402
|
p.set(g, !0);
|
|
21307
21403
|
else
|
|
21308
21404
|
return;
|
|
21309
|
-
let
|
|
21310
|
-
p.forEach((
|
|
21311
|
-
|
|
21312
|
-
}),
|
|
21405
|
+
let L = !0;
|
|
21406
|
+
p.forEach((A) => {
|
|
21407
|
+
A || (L = !1);
|
|
21408
|
+
}), L && (m == null || m(), y(u.current), s && s());
|
|
21313
21409
|
};
|
|
21314
21410
|
return jsx(PresenceChild, { isPresent: S, initial: !f.current || n ? void 0 : !1, custom: S ? void 0 : i, presenceAffectsLayout: a, mode: o, onExitComplete: S ? void 0 : T, children: x }, g);
|
|
21315
21411
|
}) });
|
|
@@ -21444,10 +21540,10 @@ function createAnimationsFromSequence(e, { defaultTransition: t = {}, ...i } = {
|
|
|
21444
21540
|
let [C, y, E = {}] = b;
|
|
21445
21541
|
E.at !== void 0 && (u = calcNextTime(u, E.at, f, c));
|
|
21446
21542
|
let m = 0;
|
|
21447
|
-
const x = (g, S, T,
|
|
21448
|
-
const _ = keyframesAsList(g), { delay:
|
|
21543
|
+
const x = (g, S, T, L = 0, A = 0) => {
|
|
21544
|
+
const _ = keyframesAsList(g), { delay: R = 0, times: $ = defaultOffset(_), type: z = "keyframes", ...j } = S;
|
|
21449
21545
|
let { ease: N = t.ease || "easeOut", duration: K } = S;
|
|
21450
|
-
const H = typeof
|
|
21546
|
+
const H = typeof R == "function" ? R(L, A) : R, V = _.length;
|
|
21451
21547
|
if (V <= 2 && z === "spring") {
|
|
21452
21548
|
let F = 100;
|
|
21453
21549
|
if (V === 2 && isNumberKeyframesArray(_)) {
|
|
@@ -21460,10 +21556,10 @@ function createAnimationsFromSequence(e, { defaultTransition: t = {}, ...i } = {
|
|
|
21460
21556
|
N = W.ease, K = W.duration;
|
|
21461
21557
|
}
|
|
21462
21558
|
K ?? (K = s);
|
|
21463
|
-
const
|
|
21559
|
+
const k = u + H, P = k + K;
|
|
21464
21560
|
$.length === 1 && $[0] === 0 && ($[1] = 1);
|
|
21465
21561
|
const M = $.length - _.length;
|
|
21466
|
-
M > 0 && fillOffset($, M), _.length === 1 && _.unshift(null), addKeyframes(T, _, N, $,
|
|
21562
|
+
M > 0 && fillOffset($, M), _.length === 1 && _.unshift(null), addKeyframes(T, _, N, $, k, P), m = Math.max(H + K, m), p = Math.max(P, p);
|
|
21467
21563
|
};
|
|
21468
21564
|
if (isMotionValue(C)) {
|
|
21469
21565
|
const g = getSubjectSequence(C, o);
|
|
@@ -21472,9 +21568,9 @@ function createAnimationsFromSequence(e, { defaultTransition: t = {}, ...i } = {
|
|
|
21472
21568
|
const g = resolveElements(C, n, l), S = g.length;
|
|
21473
21569
|
for (let T = 0; T < S; T++) {
|
|
21474
21570
|
y = y, E = E;
|
|
21475
|
-
const
|
|
21571
|
+
const L = g[T], A = getSubjectSequence(L, o);
|
|
21476
21572
|
for (const _ in y)
|
|
21477
|
-
x(y[_], getValueTransition(E, _), getValueSequence(_,
|
|
21573
|
+
x(y[_], getValueTransition(E, _), getValueSequence(_, A), T, S);
|
|
21478
21574
|
}
|
|
21479
21575
|
}
|
|
21480
21576
|
f = u, u += m;
|
|
@@ -21485,8 +21581,8 @@ function createAnimationsFromSequence(e, { defaultTransition: t = {}, ...i } = {
|
|
|
21485
21581
|
y.sort(compareByTime);
|
|
21486
21582
|
const E = [], m = [], x = [];
|
|
21487
21583
|
for (let S = 0; S < y.length; S++) {
|
|
21488
|
-
const { at: T, value:
|
|
21489
|
-
E.push(
|
|
21584
|
+
const { at: T, value: L, easing: A } = y[S];
|
|
21585
|
+
E.push(L), m.push(progress(0, p, T)), x.push(A || "easeOut");
|
|
21490
21586
|
}
|
|
21491
21587
|
m[0] !== 0 && (m.unshift(0), E.unshift(E[0]), x.unshift(defaultSegmentEasing)), m[m.length - 1] !== 1 && (m.push(1), E.push(null)), a.has(b) || a.set(b, {
|
|
21492
21588
|
keyframes: {},
|
|
@@ -21575,29 +21671,30 @@ function stagger(e = 0.1, { startDelay: t = 0, from: i = 0, ease: n } = {}) {
|
|
|
21575
21671
|
return t + c;
|
|
21576
21672
|
};
|
|
21577
21673
|
}
|
|
21578
|
-
const
|
|
21674
|
+
const FooterBackgroundAnimation = ({
|
|
21579
21675
|
isMobile: e,
|
|
21580
|
-
isLogoHovered: t
|
|
21676
|
+
isLogoHovered: t,
|
|
21677
|
+
maskUrl: i
|
|
21581
21678
|
}) => {
|
|
21582
|
-
const [
|
|
21679
|
+
const [n] = useState(
|
|
21583
21680
|
"https://garden-bucket-cdn.s3.eu-central-1.amazonaws.com/flowers_bg.mp4"
|
|
21584
|
-
), [
|
|
21681
|
+
), [s, a] = useState("initial"), o = useRef(null), l = useRef(null), c = useMotionValue(45), f = useTransform(c, (u) => `${u}% center`);
|
|
21585
21682
|
return useEffect(() => {
|
|
21586
21683
|
if (t)
|
|
21587
|
-
|
|
21684
|
+
a("visible");
|
|
21588
21685
|
else {
|
|
21589
|
-
|
|
21590
|
-
const
|
|
21591
|
-
|
|
21686
|
+
a("exit");
|
|
21687
|
+
const u = setTimeout(() => {
|
|
21688
|
+
a("initial");
|
|
21592
21689
|
}, 800);
|
|
21593
|
-
return () => clearTimeout(
|
|
21690
|
+
return () => clearTimeout(u);
|
|
21594
21691
|
}
|
|
21595
21692
|
}, [t]), /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21596
21693
|
/* @__PURE__ */ jsx(
|
|
21597
21694
|
"video",
|
|
21598
21695
|
{
|
|
21599
|
-
ref:
|
|
21600
|
-
src:
|
|
21696
|
+
ref: o,
|
|
21697
|
+
src: n,
|
|
21601
21698
|
autoPlay: !0,
|
|
21602
21699
|
loop: !0,
|
|
21603
21700
|
muted: !0,
|
|
@@ -21611,7 +21708,7 @@ const MaskUrl = "data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewB
|
|
|
21611
21708
|
/* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsx(
|
|
21612
21709
|
motion.div,
|
|
21613
21710
|
{
|
|
21614
|
-
animate:
|
|
21711
|
+
animate: s,
|
|
21615
21712
|
variants: {
|
|
21616
21713
|
initial: { maskPosition: "45%", opacity: 0 },
|
|
21617
21714
|
visible: { maskPosition: "10%", opacity: 1 },
|
|
@@ -21636,17 +21733,17 @@ const MaskUrl = "data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewB
|
|
|
21636
21733
|
}
|
|
21637
21734
|
},
|
|
21638
21735
|
style: {
|
|
21639
|
-
maskImage: `linear-gradient(black, black), url('${
|
|
21736
|
+
maskImage: `linear-gradient(black, black), url('${i}')`,
|
|
21640
21737
|
maskComposite: "exclude",
|
|
21641
21738
|
maskSize: e ? "1200% 200%" : "820% 600%",
|
|
21642
|
-
maskPosition:
|
|
21739
|
+
maskPosition: f
|
|
21643
21740
|
},
|
|
21644
21741
|
className: "gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-full gf-overflow-hidden gf-opacity-0",
|
|
21645
21742
|
children: /* @__PURE__ */ jsx(
|
|
21646
21743
|
"video",
|
|
21647
21744
|
{
|
|
21648
|
-
ref:
|
|
21649
|
-
src:
|
|
21745
|
+
ref: l,
|
|
21746
|
+
src: n,
|
|
21650
21747
|
autoPlay: !0,
|
|
21651
21748
|
loop: !0,
|
|
21652
21749
|
muted: !0,
|
|
@@ -21655,10 +21752,10 @@ const MaskUrl = "data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewB
|
|
|
21655
21752
|
playsInline: !0,
|
|
21656
21753
|
className: "gf-pointer-events-none gf-h-full gf-w-screen gf-object-cover",
|
|
21657
21754
|
onCanPlayThrough: () => {
|
|
21658
|
-
|
|
21755
|
+
l.current && l.current.play().catch(console.error);
|
|
21659
21756
|
},
|
|
21660
21757
|
onLoadStart: () => {
|
|
21661
|
-
|
|
21758
|
+
l.current && l.current.play().catch(console.error);
|
|
21662
21759
|
}
|
|
21663
21760
|
},
|
|
21664
21761
|
"video-flowers-animated"
|
|
@@ -21701,9 +21798,7 @@ const MaskUrl = "data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewB
|
|
|
21701
21798
|
}
|
|
21702
21799
|
), StackText = forwardRef(
|
|
21703
21800
|
({ value: e, isHovered: t }, i) => {
|
|
21704
|
-
const n = e.split(""), [s, a] = useAnimate()
|
|
21705
|
-
console.log(e, t);
|
|
21706
|
-
const o = () => {
|
|
21801
|
+
const n = e.split(""), [s, a] = useAnimate(), o = () => {
|
|
21707
21802
|
a([
|
|
21708
21803
|
[
|
|
21709
21804
|
".gf-letter",
|
|
@@ -21755,8 +21850,9 @@ const FooterLinks = ({
|
|
|
21755
21850
|
className: s = "gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",
|
|
21756
21851
|
listClassName: a = "gf-flex gf-flex-col gf-gap-1",
|
|
21757
21852
|
isRoutes: o = !1,
|
|
21758
|
-
isHomepage: l = !1
|
|
21759
|
-
|
|
21853
|
+
isHomepage: l = !1,
|
|
21854
|
+
navigate: c
|
|
21855
|
+
}) => /* @__PURE__ */ jsxs("div", { className: s, children: [
|
|
21760
21856
|
/* @__PURE__ */ jsx(
|
|
21761
21857
|
Typography,
|
|
21762
21858
|
{
|
|
@@ -21767,18 +21863,18 @@ const FooterLinks = ({
|
|
|
21767
21863
|
}
|
|
21768
21864
|
),
|
|
21769
21865
|
/* @__PURE__ */ jsx("ul", { className: a, children: Object.values(t).map(
|
|
21770
|
-
(
|
|
21866
|
+
(f, u) => f.link && /* @__PURE__ */ jsx(
|
|
21771
21867
|
"li",
|
|
21772
21868
|
{
|
|
21773
21869
|
className: o ? "gf-w-fit" : "",
|
|
21774
21870
|
onMouseEnter: () => {
|
|
21775
|
-
n == null || n(
|
|
21871
|
+
n == null || n(u);
|
|
21776
21872
|
},
|
|
21777
21873
|
onMouseLeave: () => {
|
|
21778
21874
|
n == null || n(null);
|
|
21779
21875
|
},
|
|
21780
|
-
onClick: () =>
|
|
21781
|
-
"https://garden.finance/" +
|
|
21876
|
+
onClick: () => f.isExternal ? window.open(f.link, "_blank") : l ? c ? c(f.link) : window.location.href = f.link : window.open(
|
|
21877
|
+
"https://garden.finance/" + f.link,
|
|
21782
21878
|
"_blank"
|
|
21783
21879
|
),
|
|
21784
21880
|
children: /* @__PURE__ */ jsxs(
|
|
@@ -21791,39 +21887,41 @@ const FooterLinks = ({
|
|
|
21791
21887
|
/* @__PURE__ */ jsx(
|
|
21792
21888
|
StackText,
|
|
21793
21889
|
{
|
|
21794
|
-
value:
|
|
21795
|
-
isHovered: i ===
|
|
21890
|
+
value: f.title,
|
|
21891
|
+
isHovered: i === u
|
|
21796
21892
|
}
|
|
21797
21893
|
),
|
|
21798
|
-
/* @__PURE__ */ jsx("span", { children: i ===
|
|
21799
|
-
o &&
|
|
21894
|
+
/* @__PURE__ */ jsx("span", { children: i === u }),
|
|
21895
|
+
o && f.chain && /* @__PURE__ */ jsx("span", { className: "gf-text-xs gf-italic", children: f.chain })
|
|
21800
21896
|
]
|
|
21801
21897
|
}
|
|
21802
21898
|
)
|
|
21803
21899
|
},
|
|
21804
|
-
|
|
21900
|
+
u
|
|
21805
21901
|
)
|
|
21806
21902
|
) })
|
|
21807
|
-
] })), Footer = ({
|
|
21903
|
+
] }), MaskURL = "data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewBox='0%200%203956%20906'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='3956'%20height='906'%20fill='url(%23paint0_linear_579_2)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_579_2'%20x1='1465.5'%20y1='731.406'%20x2='2604.91'%20y2='227.235'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0'/%3e%3cstop%20offset='0.115385'/%3e%3cstop%20offset='0.88'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Footer = ({
|
|
21808
21904
|
className: e,
|
|
21809
21905
|
network: t = "mainnet",
|
|
21810
|
-
|
|
21906
|
+
navigate: i,
|
|
21907
|
+
maskUrl: n = MaskURL,
|
|
21908
|
+
...s
|
|
21811
21909
|
}) => {
|
|
21812
|
-
const [
|
|
21910
|
+
const [a, o] = useState(!1), [l, c] = useState(
|
|
21813
21911
|
null
|
|
21814
|
-
),
|
|
21912
|
+
), f = t && t === "testnet" ? "https://testnet.garden.finance" : "https://app.garden.finance", u = "https://garden.finance", p = window.location.href === u || new RegExp(`^${u.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`).test(
|
|
21815
21913
|
window.location.href
|
|
21816
|
-
),
|
|
21914
|
+
), d = {
|
|
21817
21915
|
Products: {
|
|
21818
21916
|
swap: {
|
|
21819
21917
|
title: "Swap",
|
|
21820
|
-
link: t && t === "testnet" ? `${
|
|
21918
|
+
link: t && t === "testnet" ? `${f}/?input-chain=bitcoin_testnet&input-asset=BTC` : `${f}/?input-chain=bitcoin&input-asset=BTC`,
|
|
21821
21919
|
isExternal: !0,
|
|
21822
21920
|
icon: /* @__PURE__ */ jsx(SwapHorizontalIcon, {})
|
|
21823
21921
|
},
|
|
21824
21922
|
stake: {
|
|
21825
21923
|
title: "Stake",
|
|
21826
|
-
link: t && t === "testnet" ? void 0 : `${
|
|
21924
|
+
link: t && t === "testnet" ? void 0 : `${f}/stake`,
|
|
21827
21925
|
isExternal: !0,
|
|
21828
21926
|
icon: /* @__PURE__ */ jsx(StakeIcon, {})
|
|
21829
21927
|
},
|
|
@@ -21880,74 +21978,50 @@ const FooterLinks = ({
|
|
|
21880
21978
|
icon: /* @__PURE__ */ jsx(SDKIcon, {})
|
|
21881
21979
|
}
|
|
21882
21980
|
}
|
|
21883
|
-
},
|
|
21884
|
-
|
|
21981
|
+
}, b = {
|
|
21982
|
+
btcToSol: {
|
|
21885
21983
|
title: "BTC to SOL",
|
|
21886
|
-
link:
|
|
21984
|
+
link: u + "/routes/bridge-btc-to-sol",
|
|
21887
21985
|
chain: "Solana",
|
|
21888
|
-
isExternal: !
|
|
21986
|
+
isExternal: !1
|
|
21889
21987
|
},
|
|
21890
|
-
|
|
21988
|
+
btcToEth: {
|
|
21891
21989
|
title: "BTC to ETH",
|
|
21892
|
-
link:
|
|
21990
|
+
link: u + "/routes/bridge-btc-to-eth",
|
|
21893
21991
|
chain: "Ethereum",
|
|
21894
|
-
isExternal: !
|
|
21992
|
+
isExternal: !1
|
|
21895
21993
|
},
|
|
21896
|
-
|
|
21897
|
-
title: "BTC to
|
|
21898
|
-
link:
|
|
21994
|
+
btcToUsdc: {
|
|
21995
|
+
title: "BTC to USDC",
|
|
21996
|
+
link: u + "/routes/bridge-btc-to-usdc-arbitrum",
|
|
21899
21997
|
chain: "Arbitrum",
|
|
21900
|
-
isExternal: !
|
|
21998
|
+
isExternal: !1
|
|
21901
21999
|
},
|
|
21902
|
-
|
|
21903
|
-
title: "BTC to
|
|
21904
|
-
link:
|
|
21905
|
-
chain: "
|
|
21906
|
-
isExternal: !
|
|
22000
|
+
btcToWbtc: {
|
|
22001
|
+
title: "BTC to WBTC",
|
|
22002
|
+
link: u + "/routes/bridge-btc-to-wbtc-ethereum",
|
|
22003
|
+
chain: "Ethereum",
|
|
22004
|
+
isExternal: !1
|
|
21907
22005
|
},
|
|
21908
|
-
|
|
21909
|
-
title: "BTC to
|
|
21910
|
-
link:
|
|
22006
|
+
btcTocbBtc: {
|
|
22007
|
+
title: "BTC to cbBtc",
|
|
22008
|
+
link: u + "/routes/bridge-btc-to-cbbtc-ethereum",
|
|
21911
22009
|
chain: "Base",
|
|
21912
|
-
isExternal: !
|
|
21913
|
-
},
|
|
21914
|
-
ubtcToBtcHyder: {
|
|
21915
|
-
title: "uBTC to BTC",
|
|
21916
|
-
link: t && t === "mainnet" ? `${l}/?input-chain=hyperliquid&input-asset=uBTC&output-chain=bitcoin&output-asset=BTC` : void 0,
|
|
21917
|
-
chain: "HyperEVM",
|
|
21918
|
-
isExternal: !0
|
|
21919
|
-
},
|
|
21920
|
-
usdcToBtcUnichain: {
|
|
21921
|
-
title: "USDC to BTC",
|
|
21922
|
-
link: t && t === "mainnet" ? `${l}/?input-chain=unichain&input-asset=USDC&output-chain=bitcoin&output-asset=BTC` : void 0,
|
|
21923
|
-
chain: "Unichain",
|
|
21924
|
-
isExternal: !0
|
|
21925
|
-
},
|
|
21926
|
-
btctbToBtcBinance: {
|
|
21927
|
-
title: "BTCB to BTC",
|
|
21928
|
-
link: t && t === "mainnet" ? `${l}/?input-chain=bnbchain&input-asset=BTCB&output-chain=bitcoin&output-asset=BTC` : void 0,
|
|
21929
|
-
chain: "BNB Chain",
|
|
21930
|
-
isExternal: !0
|
|
21931
|
-
},
|
|
21932
|
-
lbtcToBtcBerachain: {
|
|
21933
|
-
title: "LBTC to BTC",
|
|
21934
|
-
link: t && t === "mainnet" ? `${l}/?input-chain=bera&input-asset=LBTC&output-chain=bitcoin&output-asset=BTC` : void 0,
|
|
21935
|
-
chain: "Berachain",
|
|
21936
|
-
isExternal: !0
|
|
22010
|
+
isExternal: !1
|
|
21937
22011
|
}
|
|
21938
|
-
},
|
|
22012
|
+
}, C = {
|
|
21939
22013
|
discord: "https://discord.gg/7feudTFMXB",
|
|
21940
22014
|
x: "https://x.com/garden_finance"
|
|
21941
|
-
}, { Products:
|
|
22015
|
+
}, { Products: y, Resources: E, Developers: m } = d;
|
|
21942
22016
|
return /* @__PURE__ */ jsxs(
|
|
21943
22017
|
"footer",
|
|
21944
22018
|
{
|
|
21945
22019
|
className: cn(
|
|
21946
22020
|
"gf-z-10 gf-relative gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-center gf-justify-center gf-bg-white gf-px-6 gf-pb-10 gf-pt-20 md:gf-px-10",
|
|
21947
22021
|
e,
|
|
21948
|
-
|
|
22022
|
+
a ? "gf-text-white" : "gf-text-dark-grey"
|
|
21949
22023
|
),
|
|
21950
|
-
...
|
|
22024
|
+
...s,
|
|
21951
22025
|
children: [
|
|
21952
22026
|
/* @__PURE__ */ jsxs("div", { className: "gf-z-30 gf-w-full gf-max-w-screen-2xl", children: [
|
|
21953
22027
|
/* @__PURE__ */ jsxs("div", { className: "gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-start gf-justify-between gf-gap-8", children: [
|
|
@@ -21955,10 +22029,10 @@ const FooterLinks = ({
|
|
|
21955
22029
|
/* @__PURE__ */ jsx(
|
|
21956
22030
|
GardenIcon,
|
|
21957
22031
|
{
|
|
21958
|
-
onMouseEnter: () =>
|
|
21959
|
-
onMouseLeave: () =>
|
|
22032
|
+
onMouseEnter: () => o(!0),
|
|
22033
|
+
onMouseLeave: () => o(!1),
|
|
21960
22034
|
className: "gf-h-8 gf-w-8 gf-cursor-pointer gf-duration-500 gf-ease-in-out",
|
|
21961
|
-
onClick: (
|
|
22035
|
+
onClick: (x) => x.preventDefault()
|
|
21962
22036
|
}
|
|
21963
22037
|
),
|
|
21964
22038
|
/* @__PURE__ */ jsxs("div", { className: "gf-flex gf-items-center gf-gap-4", children: [
|
|
@@ -21966,7 +22040,7 @@ const FooterLinks = ({
|
|
|
21966
22040
|
XIcon,
|
|
21967
22041
|
{
|
|
21968
22042
|
onClick: () => {
|
|
21969
|
-
window.open(
|
|
22043
|
+
window.open(C.x, "_blank");
|
|
21970
22044
|
},
|
|
21971
22045
|
className: "gf-cursor-pointer gf-duration-500 gf-ease-in-out"
|
|
21972
22046
|
}
|
|
@@ -21975,7 +22049,7 @@ const FooterLinks = ({
|
|
|
21975
22049
|
DiscordIcon,
|
|
21976
22050
|
{
|
|
21977
22051
|
onClick: () => {
|
|
21978
|
-
window.open(
|
|
22052
|
+
window.open(C.discord, "_blank");
|
|
21979
22053
|
},
|
|
21980
22054
|
className: "gf-cursor-pointer gf-duration-500 gf-ease-in-out"
|
|
21981
22055
|
}
|
|
@@ -21988,8 +22062,9 @@ const FooterLinks = ({
|
|
|
21988
22062
|
FooterLinks,
|
|
21989
22063
|
{
|
|
21990
22064
|
title: "Resources",
|
|
21991
|
-
links:
|
|
21992
|
-
isHomepage:
|
|
22065
|
+
links: E,
|
|
22066
|
+
isHomepage: p,
|
|
22067
|
+
navigate: i,
|
|
21993
22068
|
className: "gf-flex gf-w-full gf-flex-col gf-gap-3",
|
|
21994
22069
|
listClassName: "gf-flex gf-flex-col gf-gap-2"
|
|
21995
22070
|
}
|
|
@@ -21998,9 +22073,11 @@ const FooterLinks = ({
|
|
|
21998
22073
|
FooterLinks,
|
|
21999
22074
|
{
|
|
22000
22075
|
title: "Routes",
|
|
22001
|
-
links:
|
|
22002
|
-
|
|
22003
|
-
|
|
22076
|
+
links: b,
|
|
22077
|
+
isHomepage: p,
|
|
22078
|
+
hoveredIndex: l,
|
|
22079
|
+
onHover: c,
|
|
22080
|
+
navigate: i,
|
|
22004
22081
|
className: "gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",
|
|
22005
22082
|
listClassName: "gf-grid gf-w-full gf-grid-cols-1 gf-gap-1 gf-gap-x-8 md:gf-grid-cols-2 md:gf-grid-rows-2",
|
|
22006
22083
|
isRoutes: !0
|
|
@@ -22012,7 +22089,8 @@ const FooterLinks = ({
|
|
|
22012
22089
|
FooterLinks,
|
|
22013
22090
|
{
|
|
22014
22091
|
title: "Products",
|
|
22015
|
-
links:
|
|
22092
|
+
links: y,
|
|
22093
|
+
navigate: i,
|
|
22016
22094
|
className: "gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",
|
|
22017
22095
|
listClassName: "gf-flex gf-w-fit gf-flex-col gf-gap-1 gf-gap-x-6"
|
|
22018
22096
|
}
|
|
@@ -22021,7 +22099,8 @@ const FooterLinks = ({
|
|
|
22021
22099
|
FooterLinks,
|
|
22022
22100
|
{
|
|
22023
22101
|
title: "Developers",
|
|
22024
|
-
links:
|
|
22102
|
+
links: m,
|
|
22103
|
+
navigate: i,
|
|
22025
22104
|
className: "gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",
|
|
22026
22105
|
listClassName: "gf-flex gf-flex-col gf-gap-1"
|
|
22027
22106
|
}
|
|
@@ -22030,8 +22109,9 @@ const FooterLinks = ({
|
|
|
22030
22109
|
FooterLinks,
|
|
22031
22110
|
{
|
|
22032
22111
|
title: "Resources",
|
|
22033
|
-
links:
|
|
22034
|
-
isHomepage:
|
|
22112
|
+
links: E,
|
|
22113
|
+
isHomepage: p,
|
|
22114
|
+
navigate: i,
|
|
22035
22115
|
className: "gf-flex gf-w-full gf-flex-col gf-gap-3",
|
|
22036
22116
|
listClassName: "gf-flex gf-flex-col gf-gap-1"
|
|
22037
22117
|
}
|
|
@@ -22043,7 +22123,7 @@ const FooterLinks = ({
|
|
|
22043
22123
|
/* @__PURE__ */ jsx(
|
|
22044
22124
|
"div",
|
|
22045
22125
|
{
|
|
22046
|
-
className: `gf-absolute gf-left-0 gf-top-0 gf-h-[1px] gf-w-full gf-transition-all gf-duration-500 gf-ease-in-out ${
|
|
22126
|
+
className: `gf-absolute gf-left-0 gf-top-0 gf-h-[1px] gf-w-full gf-transition-all gf-duration-500 gf-ease-in-out ${a ? "gf-bg-white" : "gf-bg-dark-grey"}`
|
|
22047
22127
|
}
|
|
22048
22128
|
),
|
|
22049
22129
|
/* @__PURE__ */ jsxs("div", { className: "gf-z-10 gf-my-6 gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-4", children: [
|
|
@@ -22087,7 +22167,8 @@ const FooterLinks = ({
|
|
|
22087
22167
|
FooterBackgroundAnimation,
|
|
22088
22168
|
{
|
|
22089
22169
|
isMobile: !1,
|
|
22090
|
-
isLogoHovered:
|
|
22170
|
+
isLogoHovered: a,
|
|
22171
|
+
maskUrl: n
|
|
22091
22172
|
}
|
|
22092
22173
|
)
|
|
22093
22174
|
]
|
|
@@ -22101,59 +22182,59 @@ var build = { exports: {} };
|
|
|
22101
22182
|
return C.Date.now();
|
|
22102
22183
|
};
|
|
22103
22184
|
function g(T) {
|
|
22104
|
-
var
|
|
22105
|
-
return !!T && (
|
|
22185
|
+
var L = typeof T;
|
|
22186
|
+
return !!T && (L == "object" || L == "function");
|
|
22106
22187
|
}
|
|
22107
22188
|
function S(T) {
|
|
22108
22189
|
if (typeof T == "number") return T;
|
|
22109
22190
|
if (function(_) {
|
|
22110
|
-
return typeof _ == "symbol" || /* @__PURE__ */ function(
|
|
22111
|
-
return !!
|
|
22191
|
+
return typeof _ == "symbol" || /* @__PURE__ */ function(R) {
|
|
22192
|
+
return !!R && typeof R == "object";
|
|
22112
22193
|
}(_) && y.call(_) == "[object Symbol]";
|
|
22113
22194
|
}(T)) return NaN;
|
|
22114
22195
|
if (g(T)) {
|
|
22115
|
-
var
|
|
22116
|
-
T = g(
|
|
22196
|
+
var L = typeof T.valueOf == "function" ? T.valueOf() : T;
|
|
22197
|
+
T = g(L) ? L + "" : L;
|
|
22117
22198
|
}
|
|
22118
22199
|
if (typeof T != "string") return T === 0 ? T : +T;
|
|
22119
22200
|
T = T.replace(l, "");
|
|
22120
|
-
var
|
|
22121
|
-
return
|
|
22201
|
+
var A = f.test(T);
|
|
22202
|
+
return A || u.test(T) ? p(T.slice(2), A ? 2 : 8) : c.test(T) ? NaN : +T;
|
|
22122
22203
|
}
|
|
22123
|
-
s.exports = function(T,
|
|
22124
|
-
var _,
|
|
22204
|
+
s.exports = function(T, L, A) {
|
|
22205
|
+
var _, R, $, z, j, N, K = 0, H = !1, V = !1, k = !0;
|
|
22125
22206
|
if (typeof T != "function") throw new TypeError("Expected a function");
|
|
22126
22207
|
function P(q) {
|
|
22127
|
-
var X = _, ee =
|
|
22128
|
-
return _ =
|
|
22208
|
+
var X = _, ee = R;
|
|
22209
|
+
return _ = R = void 0, K = q, z = T.apply(ee, X);
|
|
22129
22210
|
}
|
|
22130
22211
|
function M(q) {
|
|
22131
22212
|
var X = q - N;
|
|
22132
|
-
return N === void 0 || X >=
|
|
22213
|
+
return N === void 0 || X >= L || X < 0 || V && q - K >= $;
|
|
22133
22214
|
}
|
|
22134
22215
|
function F() {
|
|
22135
22216
|
var q = x();
|
|
22136
22217
|
if (M(q)) return I(q);
|
|
22137
22218
|
j = setTimeout(F, function(X) {
|
|
22138
|
-
var ee =
|
|
22219
|
+
var ee = L - (X - N);
|
|
22139
22220
|
return V ? m(ee, $ - (X - K)) : ee;
|
|
22140
22221
|
}(q));
|
|
22141
22222
|
}
|
|
22142
22223
|
function I(q) {
|
|
22143
|
-
return j = void 0,
|
|
22224
|
+
return j = void 0, k && _ ? P(q) : (_ = R = void 0, z);
|
|
22144
22225
|
}
|
|
22145
22226
|
function W() {
|
|
22146
22227
|
var q = x(), X = M(q);
|
|
22147
|
-
if (_ = arguments,
|
|
22228
|
+
if (_ = arguments, R = this, N = q, X) {
|
|
22148
22229
|
if (j === void 0) return function(ee) {
|
|
22149
|
-
return K = ee, j = setTimeout(F,
|
|
22230
|
+
return K = ee, j = setTimeout(F, L), H ? P(ee) : z;
|
|
22150
22231
|
}(N);
|
|
22151
|
-
if (V) return j = setTimeout(F,
|
|
22232
|
+
if (V) return j = setTimeout(F, L), P(N);
|
|
22152
22233
|
}
|
|
22153
|
-
return j === void 0 && (j = setTimeout(F,
|
|
22234
|
+
return j === void 0 && (j = setTimeout(F, L)), z;
|
|
22154
22235
|
}
|
|
22155
|
-
return
|
|
22156
|
-
j !== void 0 && clearTimeout(j), K = 0, _ = N =
|
|
22236
|
+
return L = S(L) || 0, g(A) && (H = !!A.leading, $ = (V = "maxWait" in A) ? E(S(A.maxWait) || 0, L) : $, k = "trailing" in A ? !!A.trailing : k), W.cancel = function() {
|
|
22237
|
+
j !== void 0 && clearTimeout(j), K = 0, _ = N = R = j = void 0;
|
|
22157
22238
|
}, W.flush = function() {
|
|
22158
22239
|
return j === void 0 ? z : I(x());
|
|
22159
22240
|
}, W;
|
|
@@ -22162,35 +22243,35 @@ var build = { exports: {} };
|
|
|
22162
22243
|
var l = "Expected a function", c = NaN, f = "[object Symbol]", u = /^\s+|\s+$/g, p = /^[-+]0x[0-9a-f]+$/i, d = /^0b[01]+$/i, b = /^0o[0-7]+$/i, C = parseInt, y = typeof o.g == "object" && o.g && o.g.Object === Object && o.g, E = typeof self == "object" && self && self.Object === Object && self, m = y || E || Function("return this")(), x = Object.prototype.toString, g = Math.max, S = Math.min, T = function() {
|
|
22163
22244
|
return m.Date.now();
|
|
22164
22245
|
};
|
|
22165
|
-
function A(_) {
|
|
22166
|
-
var k = typeof _;
|
|
22167
|
-
return !!_ && (k == "object" || k == "function");
|
|
22168
|
-
}
|
|
22169
22246
|
function L(_) {
|
|
22247
|
+
var R = typeof _;
|
|
22248
|
+
return !!_ && (R == "object" || R == "function");
|
|
22249
|
+
}
|
|
22250
|
+
function A(_) {
|
|
22170
22251
|
if (typeof _ == "number") return _;
|
|
22171
22252
|
if (function(z) {
|
|
22172
22253
|
return typeof z == "symbol" || /* @__PURE__ */ function(j) {
|
|
22173
22254
|
return !!j && typeof j == "object";
|
|
22174
22255
|
}(z) && x.call(z) == f;
|
|
22175
22256
|
}(_)) return c;
|
|
22176
|
-
if (
|
|
22177
|
-
var
|
|
22178
|
-
_ =
|
|
22257
|
+
if (L(_)) {
|
|
22258
|
+
var R = typeof _.valueOf == "function" ? _.valueOf() : _;
|
|
22259
|
+
_ = L(R) ? R + "" : R;
|
|
22179
22260
|
}
|
|
22180
22261
|
if (typeof _ != "string") return _ === 0 ? _ : +_;
|
|
22181
22262
|
_ = _.replace(u, "");
|
|
22182
22263
|
var $ = d.test(_);
|
|
22183
22264
|
return $ || b.test(_) ? C(_.slice(2), $ ? 2 : 8) : p.test(_) ? c : +_;
|
|
22184
22265
|
}
|
|
22185
|
-
s.exports = function(_,
|
|
22266
|
+
s.exports = function(_, R, $) {
|
|
22186
22267
|
var z = !0, j = !0;
|
|
22187
22268
|
if (typeof _ != "function") throw new TypeError(l);
|
|
22188
|
-
return
|
|
22189
|
-
var V,
|
|
22269
|
+
return L($) && (z = "leading" in $ ? !!$.leading : z, j = "trailing" in $ ? !!$.trailing : j), function(N, K, H) {
|
|
22270
|
+
var V, k, P, M, F, I, W = 0, q = !1, X = !1, ee = !0;
|
|
22190
22271
|
if (typeof N != "function") throw new TypeError(l);
|
|
22191
22272
|
function re(se) {
|
|
22192
|
-
var ue = V, ie =
|
|
22193
|
-
return V =
|
|
22273
|
+
var ue = V, ie = k;
|
|
22274
|
+
return V = k = void 0, W = se, M = N.apply(ie, ue);
|
|
22194
22275
|
}
|
|
22195
22276
|
function ce(se) {
|
|
22196
22277
|
var ue = se - I;
|
|
@@ -22205,11 +22286,11 @@ var build = { exports: {} };
|
|
|
22205
22286
|
}(se));
|
|
22206
22287
|
}
|
|
22207
22288
|
function me(se) {
|
|
22208
|
-
return F = void 0, ee && V ? re(se) : (V =
|
|
22289
|
+
return F = void 0, ee && V ? re(se) : (V = k = void 0, M);
|
|
22209
22290
|
}
|
|
22210
22291
|
function de() {
|
|
22211
22292
|
var se = T(), ue = ce(se);
|
|
22212
|
-
if (V = arguments,
|
|
22293
|
+
if (V = arguments, k = this, I = se, ue) {
|
|
22213
22294
|
if (F === void 0) return function(ie) {
|
|
22214
22295
|
return W = ie, F = setTimeout(fe, K), q ? re(ie) : M;
|
|
22215
22296
|
}(I);
|
|
@@ -22217,12 +22298,12 @@ var build = { exports: {} };
|
|
|
22217
22298
|
}
|
|
22218
22299
|
return F === void 0 && (F = setTimeout(fe, K)), M;
|
|
22219
22300
|
}
|
|
22220
|
-
return K =
|
|
22221
|
-
F !== void 0 && clearTimeout(F), W = 0, V = I =
|
|
22301
|
+
return K = A(K) || 0, L(H) && (q = !!H.leading, P = (X = "maxWait" in H) ? g(A(H.maxWait) || 0, K) : P, ee = "trailing" in H ? !!H.trailing : ee), de.cancel = function() {
|
|
22302
|
+
F !== void 0 && clearTimeout(F), W = 0, V = I = k = F = void 0;
|
|
22222
22303
|
}, de.flush = function() {
|
|
22223
22304
|
return F === void 0 ? M : me(T());
|
|
22224
22305
|
}, de;
|
|
22225
|
-
}(_,
|
|
22306
|
+
}(_, R, { leading: z, maxWait: R, trailing: j });
|
|
22226
22307
|
};
|
|
22227
22308
|
}, 694: (s, a, o) => {
|
|
22228
22309
|
var l = o(925);
|
|
@@ -22406,14 +22487,14 @@ var build = { exports: {} };
|
|
|
22406
22487
|
}(a().Component);
|
|
22407
22488
|
g.propTypes = { onVisible: o.PropTypes.func.isRequired, className: o.PropTypes.string, height: o.PropTypes.oneOfType([o.PropTypes.number, o.PropTypes.string]), placeholder: o.PropTypes.element, threshold: o.PropTypes.number, useIntersectionObserver: o.PropTypes.bool, scrollPosition: o.PropTypes.shape({ x: o.PropTypes.number.isRequired, y: o.PropTypes.number.isRequired }), width: o.PropTypes.oneOfType([o.PropTypes.number, o.PropTypes.string]) }, g.defaultProps = { className: "", placeholder: null, threshold: 100, useIntersectionObserver: !0 };
|
|
22408
22489
|
const S = g;
|
|
22409
|
-
var T = i(181),
|
|
22490
|
+
var T = i(181), L = i.n(T), A = i(858), _ = i.n(A), R = function(U) {
|
|
22410
22491
|
var D = getComputedStyle(U, null);
|
|
22411
22492
|
return D.getPropertyValue("overflow") + D.getPropertyValue("overflow-y") + D.getPropertyValue("overflow-x");
|
|
22412
22493
|
};
|
|
22413
22494
|
const $ = function(U) {
|
|
22414
22495
|
if (!(U instanceof HTMLElement)) return window;
|
|
22415
22496
|
for (var D = U; D && D instanceof HTMLElement; ) {
|
|
22416
|
-
if (/(scroll|auto)/.test(
|
|
22497
|
+
if (/(scroll|auto)/.test(R(D))) return D;
|
|
22417
22498
|
D = D.parentNode;
|
|
22418
22499
|
}
|
|
22419
22500
|
return window;
|
|
@@ -22455,9 +22536,9 @@ var build = { exports: {} };
|
|
|
22455
22536
|
return z(D) == "symbol" ? D : D + "";
|
|
22456
22537
|
}
|
|
22457
22538
|
function V(U, D, G) {
|
|
22458
|
-
return D = M(D),
|
|
22539
|
+
return D = M(D), k(U, P() ? Reflect.construct(D, G || [], M(U).constructor) : D.apply(U, G));
|
|
22459
22540
|
}
|
|
22460
|
-
function
|
|
22541
|
+
function k(U, D) {
|
|
22461
22542
|
if (D && (z(D) == "object" || typeof D == "function")) return D;
|
|
22462
22543
|
if (D !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
22463
22544
|
return function(G) {
|
|
@@ -22496,9 +22577,9 @@ var build = { exports: {} };
|
|
|
22496
22577
|
var Q;
|
|
22497
22578
|
if (function(ne, le) {
|
|
22498
22579
|
if (!(ne instanceof le)) throw new TypeError("Cannot call a class as a function");
|
|
22499
|
-
}(this, B), (Q = V(this, B, [J])).useIntersectionObserver = J.useIntersectionObserver && l(), Q.useIntersectionObserver) return
|
|
22580
|
+
}(this, B), (Q = V(this, B, [J])).useIntersectionObserver = J.useIntersectionObserver && l(), Q.useIntersectionObserver) return k(Q);
|
|
22500
22581
|
var te = Q.onChangeScroll.bind(Q);
|
|
22501
|
-
return J.delayMethod === "debounce" ? Q.delayedScroll =
|
|
22582
|
+
return J.delayMethod === "debounce" ? Q.delayedScroll = L()(te, J.delayTime) : J.delayMethod === "throttle" && (Q.delayedScroll = _()(te, J.delayTime)), Q.state = { scrollPosition: { x: I(), y: W() } }, Q.baseComponentRef = a().createRef(), Q;
|
|
22502
22583
|
}
|
|
22503
22584
|
return function(J, Q) {
|
|
22504
22585
|
if (typeof Q != "function" && Q !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -22636,7 +22717,7 @@ var build = { exports: {} };
|
|
|
22636
22717
|
}(U);
|
|
22637
22718
|
return ie(D) == "symbol" ? D : D + "";
|
|
22638
22719
|
}
|
|
22639
|
-
function
|
|
22720
|
+
function Ae(U, D, G) {
|
|
22640
22721
|
return D = Ce(D), function(B, O) {
|
|
22641
22722
|
if (O && (ie(O) == "object" || typeof O == "function")) return O;
|
|
22642
22723
|
if (O !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -22671,7 +22752,7 @@ var build = { exports: {} };
|
|
|
22671
22752
|
var Z;
|
|
22672
22753
|
(function(le, ae) {
|
|
22673
22754
|
if (!(le instanceof ae)) throw new TypeError("Cannot call a class as a function");
|
|
22674
|
-
})(this, D), Z =
|
|
22755
|
+
})(this, D), Z = Ae(this, D, [O]);
|
|
22675
22756
|
var J = O.afterLoad, Q = O.beforeLoad, te = O.scrollPosition, ne = O.visibleByDefault;
|
|
22676
22757
|
return Z.state = { visible: ne }, ne && (Q(), J()), Z.onVisible = Z.onVisible.bind(Z), Z.isScrollTracked = !!(te && Number.isFinite(te.x) && te.x >= 0 && Number.isFinite(te.y) && te.y >= 0), Z;
|
|
22677
22758
|
}
|
|
@@ -22725,24 +22806,24 @@ var build = { exports: {} };
|
|
|
22725
22806
|
return U;
|
|
22726
22807
|
}
|
|
22727
22808
|
function Ee(U, D, G) {
|
|
22728
|
-
return (D =
|
|
22809
|
+
return (D = ke(D)) in U ? Object.defineProperty(U, D, { value: G, enumerable: !0, configurable: !0, writable: !0 }) : U[D] = G, U;
|
|
22729
22810
|
}
|
|
22730
|
-
function
|
|
22731
|
-
return
|
|
22811
|
+
function Le() {
|
|
22812
|
+
return Le = Object.assign ? Object.assign.bind() : function(U) {
|
|
22732
22813
|
for (var D = 1; D < arguments.length; D++) {
|
|
22733
22814
|
var G = arguments[D];
|
|
22734
22815
|
for (var B in G) ({}).hasOwnProperty.call(G, B) && (U[B] = G[B]);
|
|
22735
22816
|
}
|
|
22736
22817
|
return U;
|
|
22737
|
-
},
|
|
22818
|
+
}, Le.apply(null, arguments);
|
|
22738
22819
|
}
|
|
22739
22820
|
function _e(U, D) {
|
|
22740
22821
|
for (var G = 0; G < D.length; G++) {
|
|
22741
22822
|
var B = D[G];
|
|
22742
|
-
B.enumerable = B.enumerable || !1, B.configurable = !0, "value" in B && (B.writable = !0), Object.defineProperty(U,
|
|
22823
|
+
B.enumerable = B.enumerable || !1, B.configurable = !0, "value" in B && (B.writable = !0), Object.defineProperty(U, ke(B.key), B);
|
|
22743
22824
|
}
|
|
22744
22825
|
}
|
|
22745
|
-
function
|
|
22826
|
+
function ke(U) {
|
|
22746
22827
|
var D = function(G, B) {
|
|
22747
22828
|
if (xe(G) != "object" || !G) return G;
|
|
22748
22829
|
var O = G[Symbol.toPrimitive];
|
|
@@ -22780,10 +22861,10 @@ var build = { exports: {} };
|
|
|
22780
22861
|
return D.__proto__ || Object.getPrototypeOf(D);
|
|
22781
22862
|
}, Ve(U);
|
|
22782
22863
|
}
|
|
22783
|
-
function
|
|
22784
|
-
return
|
|
22864
|
+
function Re(U, D) {
|
|
22865
|
+
return Re = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(G, B) {
|
|
22785
22866
|
return G.__proto__ = B, G;
|
|
22786
|
-
},
|
|
22867
|
+
}, Re(U, D);
|
|
22787
22868
|
}
|
|
22788
22869
|
var De = function(U) {
|
|
22789
22870
|
function D(O) {
|
|
@@ -22794,7 +22875,7 @@ var build = { exports: {} };
|
|
|
22794
22875
|
}
|
|
22795
22876
|
return function(O, Z) {
|
|
22796
22877
|
if (typeof Z != "function" && Z !== null) throw new TypeError("Super expression must either be null or a function");
|
|
22797
|
-
O.prototype = Object.create(Z && Z.prototype, { constructor: { value: O, writable: !0, configurable: !0 } }), Object.defineProperty(O, "prototype", { writable: !1 }), Z &&
|
|
22878
|
+
O.prototype = Object.create(Z && Z.prototype, { constructor: { value: O, writable: !0, configurable: !0 } }), Object.defineProperty(O, "prototype", { writable: !1 }), Z && Re(O, Z);
|
|
22798
22879
|
}(D, U), G = D, B = [{ key: "onImageLoad", value: function() {
|
|
22799
22880
|
var O = this;
|
|
22800
22881
|
return this.state.loaded ? null : function(Z) {
|
|
@@ -22818,13 +22899,13 @@ var build = { exports: {} };
|
|
|
22818
22899
|
}
|
|
22819
22900
|
return le;
|
|
22820
22901
|
}(O, we));
|
|
22821
|
-
return a().createElement("img",
|
|
22902
|
+
return a().createElement("img", Le({}, Z, { onLoad: this.onImageLoad() }));
|
|
22822
22903
|
} }, { key: "getLazyLoadImage", value: function() {
|
|
22823
22904
|
var O = this.props, Z = O.beforeLoad, J = O.className, Q = O.delayMethod, te = O.delayTime, ne = O.height, le = O.placeholder, ae = O.scrollPosition, oe = O.style, pe = O.threshold, he = O.useIntersectionObserver, ge = O.visibleByDefault, Fe = O.width;
|
|
22824
22905
|
return a().createElement(ye, { beforeLoad: Z, className: J, delayMethod: Q, delayTime: te, height: ne, placeholder: le, scrollPosition: ae, style: oe, threshold: pe, useIntersectionObserver: he, visibleByDefault: ge, width: Fe }, this.getImg());
|
|
22825
22906
|
} }, { key: "getWrappedLazyLoadImage", value: function(O) {
|
|
22826
22907
|
var Z = this.props, J = Z.effect, Q = Z.height, te = Z.placeholderSrc, ne = Z.width, le = Z.wrapperClassName, ae = Z.wrapperProps, oe = this.state.loaded, pe = oe ? " lazy-load-image-loaded" : "", he = oe || !te ? {} : { backgroundImage: "url(".concat(te, ")"), backgroundSize: "100% 100%" };
|
|
22827
|
-
return a().createElement("span",
|
|
22908
|
+
return a().createElement("span", Le({ className: le + " lazy-load-image-background " + J + pe, style: Me(Me({}, he), {}, { color: "transparent", display: "inline-block", height: Q, width: ne }) }, ae), O);
|
|
22828
22909
|
} }, { key: "render", value: function() {
|
|
22829
22910
|
var O = this.props, Z = O.effect, J = O.placeholderSrc, Q = O.visibleByDefault, te = O.wrapperClassName, ne = O.wrapperProps, le = this.getLazyLoadImage();
|
|
22830
22911
|
return (Z || J) && !Q || te || ne ? this.getWrappedLazyLoadImage(le) : le;
|
|
@@ -22981,6 +23062,7 @@ export {
|
|
|
22981
23062
|
Dodo,
|
|
22982
23063
|
DraftIcon,
|
|
22983
23064
|
EditIcon,
|
|
23065
|
+
EncryptedIcon,
|
|
22984
23066
|
EthereumLogo,
|
|
22985
23067
|
ExchangeIcon,
|
|
22986
23068
|
FeesIcon,
|
|
@@ -23029,6 +23111,8 @@ export {
|
|
|
23029
23111
|
ReferralIcon,
|
|
23030
23112
|
RelayLinkIcon,
|
|
23031
23113
|
RemoveIcon,
|
|
23114
|
+
Rotate360Icon,
|
|
23115
|
+
RoutingIcon,
|
|
23032
23116
|
SDKIcon,
|
|
23033
23117
|
ScaleY,
|
|
23034
23118
|
SearchIcon,
|