@gardenfi/garden-book 0.2.0 → 0.2.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/SearchIconThin.d.ts +5 -0
- package/dist/components/atoms/Icons/index.d.ts +1 -0
- package/dist/components/molecules/TokenNetworkLogos/TokenNetworkLogos.d.ts +1 -0
- package/dist/components/molecules/TokenNetworkLogos/TokenNetworkLogos.stories.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +265 -231
- package/dist/ui.umd.js +1 -1
- package/package.json +1 -1
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"), g = fromTheme("inset"), E = fromTheme("margin"), m = fromTheme("opacity"), x = fromTheme("padding"), y = fromTheme("saturate"), S = fromTheme("scale"), T = fromTheme("sepia"), L = fromTheme("skew"), A = fromTheme("space"), V = fromTheme("translate"),
|
|
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"), g = fromTheme("inset"), E = fromTheme("margin"), m = fromTheme("opacity"), x = fromTheme("padding"), y = fromTheme("saturate"), S = fromTheme("scale"), T = fromTheme("sepia"), L = fromTheme("skew"), A = fromTheme("space"), V = fromTheme("translate"), I = () => ["auto", "contain", "none"], U = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", isArbitraryValue, t], j = () => [isArbitraryValue, t], G = () => ["", isLength, isArbitraryLength], q = () => ["auto", isNumber, isArbitraryValue], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], _ = () => ["solid", "dashed", "dotted", "double", "none"], R = () => ["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"], k = () => [isNumber, isArbitraryNumber], W = () => [isNumber, isArbitraryValue];
|
|
375
375
|
return {
|
|
376
376
|
cacheSize: 500,
|
|
377
377
|
separator: ":",
|
|
@@ -379,12 +379,12 @@ function getDefaultConfig() {
|
|
|
379
379
|
colors: [isAny],
|
|
380
380
|
spacing: [isLength, isArbitraryLength],
|
|
381
381
|
blur: ["none", "", isTshirtSize, isArbitraryValue],
|
|
382
|
-
brightness:
|
|
382
|
+
brightness: k(),
|
|
383
383
|
borderColor: [e],
|
|
384
384
|
borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
|
|
385
385
|
borderSpacing: j(),
|
|
386
386
|
borderWidth: G(),
|
|
387
|
-
contrast:
|
|
387
|
+
contrast: k(),
|
|
388
388
|
grayscale: M(),
|
|
389
389
|
hueRotate: W(),
|
|
390
390
|
invert: M(),
|
|
@@ -393,10 +393,10 @@ function getDefaultConfig() {
|
|
|
393
393
|
gradientColorStopPositions: [isPercent, isArbitraryLength],
|
|
394
394
|
inset: z(),
|
|
395
395
|
margin: z(),
|
|
396
|
-
opacity:
|
|
396
|
+
opacity: k(),
|
|
397
397
|
padding: j(),
|
|
398
|
-
saturate:
|
|
399
|
-
scale:
|
|
398
|
+
saturate: k(),
|
|
399
|
+
scale: k(),
|
|
400
400
|
sepia: M(),
|
|
401
401
|
skew: W(),
|
|
402
402
|
space: j(),
|
|
@@ -522,21 +522,21 @@ function getDefaultConfig() {
|
|
|
522
522
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
523
523
|
*/
|
|
524
524
|
overscroll: [{
|
|
525
|
-
overscroll:
|
|
525
|
+
overscroll: I()
|
|
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": I()
|
|
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": I()
|
|
540
540
|
}],
|
|
541
541
|
/**
|
|
542
542
|
* Position
|
|
@@ -2689,12 +2689,12 @@ var lottie$1 = { exports: {} };
|
|
|
2689
2689
|
n || (n = o(function(b) {
|
|
2690
2690
|
function C() {
|
|
2691
2691
|
function E(B, _) {
|
|
2692
|
-
var R, P, M = B.length, F,
|
|
2692
|
+
var R, P, M = B.length, F, k, W, K;
|
|
2693
2693
|
for (P = 0; P < M; P += 1)
|
|
2694
2694
|
if (R = B[P], "ks" in R && !R.completed) {
|
|
2695
2695
|
if (R.completed = !0, R.hasMask) {
|
|
2696
2696
|
var X = R.masksProperties;
|
|
2697
|
-
for (
|
|
2697
|
+
for (k = X.length, F = 0; F < k; F += 1)
|
|
2698
2698
|
if (X[F].pt.k.i)
|
|
2699
2699
|
T(X[F].pt.k);
|
|
2700
2700
|
else
|
|
@@ -2830,7 +2830,7 @@ var lottie$1 = { exports: {} };
|
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
};
|
|
2833
|
-
}(),
|
|
2833
|
+
}(), I = /* @__PURE__ */ function() {
|
|
2834
2834
|
var B = [5, 7, 15];
|
|
2835
2835
|
function _(P) {
|
|
2836
2836
|
var M = P.t.p;
|
|
@@ -2860,14 +2860,14 @@ var lottie$1 = { exports: {} };
|
|
|
2860
2860
|
}(), U = /* @__PURE__ */ function() {
|
|
2861
2861
|
var B = [4, 1, 9];
|
|
2862
2862
|
function _(P) {
|
|
2863
|
-
var M, F = P.length,
|
|
2863
|
+
var M, F = P.length, k, W;
|
|
2864
2864
|
for (M = 0; M < F; M += 1)
|
|
2865
2865
|
if (P[M].ty === "gr")
|
|
2866
2866
|
_(P[M].it);
|
|
2867
2867
|
else if (P[M].ty === "fl" || P[M].ty === "st")
|
|
2868
2868
|
if (P[M].c.k && P[M].c.k[0].i)
|
|
2869
|
-
for (W = P[M].c.k.length,
|
|
2870
|
-
P[M].c.k[
|
|
2869
|
+
for (W = P[M].c.k.length, k = 0; k < W; k += 1)
|
|
2870
|
+
P[M].c.k[k].s && (P[M].c.k[k].s[0] /= 255, P[M].c.k[k].s[1] /= 255, P[M].c.k[k].s[2] /= 255, P[M].c.k[k].s[3] /= 255), P[M].c.k[k].e && (P[M].c.k[k].e[0] /= 255, P[M].c.k[k].e[1] /= 255, P[M].c.k[k].e[2] /= 255, P[M].c.k[k].e[3] /= 255);
|
|
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
|
}
|
|
@@ -2886,19 +2886,19 @@ var lottie$1 = { exports: {} };
|
|
|
2886
2886
|
}(), z = /* @__PURE__ */ function() {
|
|
2887
2887
|
var B = [4, 4, 18];
|
|
2888
2888
|
function _(P) {
|
|
2889
|
-
var M, F = P.length,
|
|
2889
|
+
var M, F = P.length, k, W;
|
|
2890
2890
|
for (M = F - 1; M >= 0; M -= 1)
|
|
2891
2891
|
if (P[M].ty === "sh")
|
|
2892
2892
|
if (P[M].ks.k.i)
|
|
2893
2893
|
P[M].ks.k.c = P[M].closed;
|
|
2894
2894
|
else
|
|
2895
|
-
for (W = P[M].ks.k.length,
|
|
2896
|
-
P[M].ks.k[
|
|
2895
|
+
for (W = P[M].ks.k.length, k = 0; k < W; k += 1)
|
|
2896
|
+
P[M].ks.k[k].s && (P[M].ks.k[k].s[0].c = P[M].closed), P[M].ks.k[k].e && (P[M].ks.k[k].e[0].c = P[M].closed);
|
|
2897
2897
|
else P[M].ty === "gr" && _(P[M].it);
|
|
2898
2898
|
}
|
|
2899
2899
|
function R(P) {
|
|
2900
|
-
var M, F,
|
|
2901
|
-
for (F = 0; F <
|
|
2900
|
+
var M, F, k = P.length, W, K, X, ee;
|
|
2901
|
+
for (F = 0; F < k; F += 1) {
|
|
2902
2902
|
if (M = P[F], M.hasMask) {
|
|
2903
2903
|
var re = M.masksProperties;
|
|
2904
2904
|
for (K = re.length, W = 0; W < K; W += 1)
|
|
@@ -2920,13 +2920,13 @@ var lottie$1 = { exports: {} };
|
|
|
2920
2920
|
};
|
|
2921
2921
|
}();
|
|
2922
2922
|
function j(B) {
|
|
2923
|
-
B.__complete || (U(B), A(B), V(B),
|
|
2923
|
+
B.__complete || (U(B), A(B), V(B), I(B), z(B), E(B.layers, B.assets), m(B.chars, B.assets), B.__complete = !0);
|
|
2924
2924
|
}
|
|
2925
2925
|
function G(B) {
|
|
2926
2926
|
B.t.a.length === 0 && "m" in B.t.p;
|
|
2927
2927
|
}
|
|
2928
2928
|
var q = {};
|
|
2929
|
-
return q.completeData = j, q.checkColors = U, q.checkChars = V, q.checkPathProperties =
|
|
2929
|
+
return q.completeData = j, q.checkColors = U, q.checkChars = V, q.checkPathProperties = I, q.checkShapes = z, q.completeLayers = E, q;
|
|
2930
2930
|
}
|
|
2931
2931
|
if (a.dataManager || (a.dataManager = C()), a.assetLoader || (a.assetLoader = /* @__PURE__ */ function() {
|
|
2932
2932
|
function E(x) {
|
|
@@ -3562,10 +3562,10 @@ var lottie$1 = { exports: {} };
|
|
|
3562
3562
|
t[R].animation.destroy(_);
|
|
3563
3563
|
}
|
|
3564
3564
|
function V(_, R, P) {
|
|
3565
|
-
var M = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), F,
|
|
3566
|
-
for (F = 0; F <
|
|
3565
|
+
var M = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), F, k = M.length;
|
|
3566
|
+
for (F = 0; F < k; F += 1)
|
|
3567
3567
|
P && M[F].setAttribute("data-bm-type", P), c(M[F], _);
|
|
3568
|
-
if (R &&
|
|
3568
|
+
if (R && k === 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
|
K.style.width = "100%", K.style.height = "100%", K.setAttribute("data-bm-type", P), W.appendChild(K), c(K, _);
|
|
3574
3574
|
}
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3576
|
+
function I() {
|
|
3577
3577
|
var _;
|
|
3578
3578
|
for (_ = 0; _ < n; _ += 1)
|
|
3579
3579
|
t[_].animation.resize();
|
|
@@ -3602,7 +3602,7 @@ var lottie$1 = { exports: {} };
|
|
|
3602
3602
|
for (R = 0; R < n; R += 1)
|
|
3603
3603
|
t[R].animation.unmute(_);
|
|
3604
3604
|
}
|
|
3605
|
-
return e.registerAnimation = c, e.loadAnimation = b, e.setSpeed = C, e.setDirection = g, e.play = E, e.pause = y, e.stop = T, e.togglePause = L, e.searchAnimations = V, e.resize =
|
|
3605
|
+
return e.registerAnimation = c, e.loadAnimation = b, e.setSpeed = C, e.setDirection = g, e.play = E, e.pause = y, e.stop = T, e.togglePause = L, e.searchAnimations = V, e.resize = I, e.goToAndStop = S, e.destroy = A, e.freeze = z, e.unfreeze = j, e.setVolume = G, e.mute = q, e.unmute = B, e.getRegisteredAnimations = f, e;
|
|
3606
3606
|
}(), BezierFactory = function() {
|
|
3607
3607
|
var e = {};
|
|
3608
3608
|
e.getBezierEasing = i;
|
|
@@ -3631,10 +3631,10 @@ var lottie$1 = { exports: {} };
|
|
|
3631
3631
|
return 3 * u(y, S) * x * x + 2 * p(y, S) * x + d(y);
|
|
3632
3632
|
}
|
|
3633
3633
|
function g(x, y, S, T, L) {
|
|
3634
|
-
var A, V,
|
|
3634
|
+
var A, V, I = 0;
|
|
3635
3635
|
do
|
|
3636
3636
|
V = y + (S - y) / 2, A = b(V, T, L) - x, A > 0 ? S = V : y = V;
|
|
3637
|
-
while (Math.abs(A) > a && ++
|
|
3637
|
+
while (Math.abs(A) > a && ++I < o);
|
|
3638
3638
|
return V;
|
|
3639
3639
|
}
|
|
3640
3640
|
function E(x, y, S, T) {
|
|
@@ -3667,7 +3667,7 @@ 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(y) {
|
|
3670
|
-
for (var S = this._p[0], T = this._p[2], L = this._mSampleValues, A = 0, V = 1,
|
|
3670
|
+
for (var S = this._p[0], T = this._p[2], L = this._mSampleValues, A = 0, V = 1, I = l - 1; V !== I && L[V] <= y; ++V)
|
|
3671
3671
|
A += c;
|
|
3672
3672
|
--V;
|
|
3673
3673
|
var U = (y - L[V]) / (L[V + 1] - L[V]), z = A + U * c, j = C(z, S, T);
|
|
@@ -3734,10 +3734,10 @@ var lottie$1 = { exports: {} };
|
|
|
3734
3734
|
}
|
|
3735
3735
|
var n = /* @__PURE__ */ function() {
|
|
3736
3736
|
return function(d, b, C, g) {
|
|
3737
|
-
var E = getDefaultCurveSegments(), m, x, y, S, T, L = 0, A, V = [],
|
|
3737
|
+
var E = getDefaultCurveSegments(), m, x, y, S, T, L = 0, A, V = [], I = [], U = bezierLengthPool.newElement();
|
|
3738
3738
|
for (y = C.length, m = 0; m < E; m += 1) {
|
|
3739
3739
|
for (T = m / (E - 1), A = 0, x = 0; x < y; x += 1)
|
|
3740
|
-
S = bmPow(1 - T, 3) * d[x] + 3 * bmPow(1 - T, 2) * T * C[x] + 3 * (1 - T) * bmPow(T, 2) * g[x] + bmPow(T, 3) * b[x], V[x] = S,
|
|
3740
|
+
S = bmPow(1 - T, 3) * d[x] + 3 * bmPow(1 - T, 2) * T * C[x] + 3 * (1 - T) * bmPow(T, 2) * g[x] + bmPow(T, 3) * b[x], V[x] = S, I[x] !== null && (A += bmPow(V[x] - I[x], 2)), I[x] = V[x];
|
|
3741
3741
|
A && (A = bmSqrt(A), L += A), U.percents[m] = T, U.lengths[m] = L;
|
|
3742
3742
|
}
|
|
3743
3743
|
return U.addedLength = L, U;
|
|
@@ -3760,13 +3760,13 @@ var lottie$1 = { exports: {} };
|
|
|
3760
3760
|
return function(b, C, g, E) {
|
|
3761
3761
|
var m = (b[0] + "_" + b[1] + "_" + C[0] + "_" + C[1] + "_" + g[0] + "_" + g[1] + "_" + E[0] + "_" + E[1]).replace(/\./g, "p");
|
|
3762
3762
|
if (!d[m]) {
|
|
3763
|
-
var x = getDefaultCurveSegments(), y, S, T, L, A, V = 0,
|
|
3763
|
+
var x = getDefaultCurveSegments(), y, S, T, L, A, V = 0, I, U, 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] + g[0], b[1] + g[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 = g.length, y = 0; y < x; y += 1) {
|
|
3767
|
-
for (U = createSizedArray(T), A = y / (x - 1),
|
|
3768
|
-
L = bmPow(1 - A, 3) * b[S] + 3 * bmPow(1 - A, 2) * A * (b[S] + g[S]) + 3 * (1 - A) * bmPow(A, 2) * (C[S] + E[S]) + bmPow(A, 3) * C[S], U[S] = L, z !== null && (
|
|
3769
|
-
|
|
3767
|
+
for (U = createSizedArray(T), A = y / (x - 1), I = 0, S = 0; S < T; S += 1)
|
|
3768
|
+
L = bmPow(1 - A, 3) * b[S] + 3 * bmPow(1 - A, 2) * A * (b[S] + g[S]) + 3 * (1 - A) * bmPow(A, 2) * (C[S] + E[S]) + bmPow(A, 3) * C[S], U[S] = L, z !== null && (I += bmPow(U[S] - z[S], 2));
|
|
3769
|
+
I = bmSqrt(I), V += I, j.points[y] = new o(I, U), z = U;
|
|
3770
3770
|
}
|
|
3771
3771
|
j.segmentLength = V, 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 y = c(E, x);
|
|
3796
3796
|
m = m > 1 ? 1 : m;
|
|
3797
|
-
var S = c(m, x), T, L = d.length, A = 1 - y, V = 1 - S,
|
|
3797
|
+
var S = c(m, x), T, L = d.length, A = 1 - y, V = 1 - S, I = A * A * A, U = y * A * A * 3, z = y * y * A * 3, j = y * y * y, G = A * A * V, q = y * A * V + A * y * V + A * A * S, B = y * y * V + A * y * S + y * A * S, _ = y * y * S, R = A * V * V, P = y * V * V + A * S * V + A * V * S, M = y * S * V + A * S * S + y * V * S, F = y * S * S, k = V * V * V, W = S * V * V + V * S * V + V * V * S, K = S * S * V + V * S * S + S * V * S, X = S * S * S;
|
|
3798
3798
|
for (T = 0; T < L; T += 1)
|
|
3799
|
-
u[T * 4] = e.round((
|
|
3799
|
+
u[T * 4] = e.round((I * d[T] + U * C[T] + z * g[T] + j * b[T]) * 1e3) / 1e3, u[T * 4 + 1] = e.round((G * d[T] + q * C[T] + B * g[T] + _ * b[T]) * 1e3) / 1e3, u[T * 4 + 2] = e.round((R * d[T] + P * C[T] + M * g[T] + F * b[T]) * 1e3) / 1e3, u[T * 4 + 3] = e.round((k * d[T] + W * C[T] + K * g[T] + X * b[T]) * 1e3) / 1e3;
|
|
3800
3800
|
return u;
|
|
3801
3801
|
}
|
|
3802
3802
|
return {
|
|
@@ -3850,7 +3850,7 @@ var lottie$1 = { exports: {} };
|
|
|
3850
3850
|
t._lastPoint = g, t._lastAddedLength = V - S.points[g].partialLength, t._lastKeyframeIndex = a;
|
|
3851
3851
|
}
|
|
3852
3852
|
} else {
|
|
3853
|
-
var
|
|
3853
|
+
var I, U, z, j, G;
|
|
3854
3854
|
if (o = c.s.length, y = f.s || c.e, this.sh && c.h !== 1)
|
|
3855
3855
|
if (e >= m)
|
|
3856
3856
|
n[0] = y[0], n[1] = y[1], n[2] = y[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] : (I = c.o.x[a] === void 0 ? c.o.x[0] : c.o.x[a], U = 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(I, U, z, j).get, u.__fnct[a] = E)) : u.__fnct ? E = u.__fnct : (I = c.o.x, U = c.o.y, z = c.i.x, j = c.i.y, E = BezierFactory.getBezierEasing(I, U, z, j).get, c.keyframeMetadata = E), b = E((e - x) / (m - x)))), y = f.s || c.e, G = c.h === 1 ? c.s[a] : c.s[a] + (y[a] - c.s[a]) * b, this.propType === "multidimensional" ? n[a] = G : n = G;
|
|
3866
3866
|
}
|
|
3867
3867
|
return t.lastIndex = s, n;
|
|
3868
3868
|
}
|
|
@@ -4083,7 +4083,7 @@ var lottie$1 = { exports: {} };
|
|
|
4083
4083
|
}(), ShapePropertyFactory = function() {
|
|
4084
4084
|
var e = -999999;
|
|
4085
4085
|
function t(m, x, y) {
|
|
4086
|
-
var S = y.lastIndex, T, L, A, V,
|
|
4086
|
+
var S = y.lastIndex, T, L, A, V, I, U, z, j, G, q = this.keyframes;
|
|
4087
4087
|
if (m < q[0].t - this.offsetTime)
|
|
4088
4088
|
T = q[0].s[0], A = !0, S = 0;
|
|
4089
4089
|
else if (m >= q[q.length - 1].t - this.offsetTime)
|
|
@@ -4097,16 +4097,16 @@ var lottie$1 = { exports: {} };
|
|
|
4097
4097
|
else if (m < P.t - this.offsetTime)
|
|
4098
4098
|
j = 0;
|
|
4099
4099
|
else {
|
|
4100
|
-
var
|
|
4101
|
-
F.__fnct ?
|
|
4100
|
+
var k;
|
|
4101
|
+
F.__fnct ? k = F.__fnct : (k = BezierFactory.getBezierEasing(P.o.x, P.o.y, P.i.x, P.i.y).get, F.__fnct = k), j = k((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 (U = x._length, z = T.i[0].length, y.lastIndex = S, V = 0; V < U; V += 1)
|
|
4108
|
-
for (
|
|
4109
|
-
G = A ? T.i[V][
|
|
4108
|
+
for (I = 0; I < z; I += 1)
|
|
4109
|
+
G = A ? T.i[V][I] : T.i[V][I] + (L.i[V][I] - T.i[V][I]) * j, x.i[V][I] = G, G = A ? T.o[V][I] : T.o[V][I] + (L.o[V][I] - T.o[V][I]) * j, x.o[V][I] = G, G = A ? T.v[V][I] : T.v[V][I] + (L.v[V][I] - T.v[V][I]) * j, x.v[V][I] = G;
|
|
4110
4110
|
}
|
|
4111
4111
|
function i() {
|
|
4112
4112
|
var m = this.comp.renderedFrame - this.offsetTime, x = this.keyframes[0].t - this.offsetTime, y = 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], L = this.s.v[0] / 2, A = this.s.v[1] / 2, V = this.d !== 3,
|
|
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, V = this.d !== 3, I = this.v;
|
|
4179
|
+
I.v[0][0] = S, I.v[0][1] = T - A, I.v[1][0] = V ? S + L : S - L, I.v[1][1] = T, I.v[2][0] = S, I.v[2][1] = T + A, I.v[3][0] = V ? S - L : S + L, I.v[3][1] = T, I.i[0][0] = V ? S - L * m : S + L * m, I.i[0][1] = T - A, I.i[1][0] = V ? S + L : S - L, I.i[1][1] = T - A * m, I.i[2][0] = V ? S + L * m : S - L * m, I.i[2][1] = T + A, I.i[3][0] = V ? S - L : S + L, I.i[3][1] = T + A * m, I.o[0][0] = V ? S + L * m : S - L * m, I.o[0][1] = T - A, I.o[1][0] = V ? S + L : S - L, I.o[1][1] = T + A * m, I.o[2][0] = V ? S - L * m : S + L * m, I.o[2][1] = T + A, I.o[3][0] = V ? S - L : S + L, I.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 y = Math.floor(this.pt.v) * 2, S = Math.PI * 2 / y, T = !0, L = this.or.v, A = this.ir.v, V = this.os.v,
|
|
4192
|
+
var y = Math.floor(this.pt.v) * 2, S = Math.PI * 2 / y, T = !0, L = this.or.v, A = this.ir.v, V = this.os.v, I = this.is.v, U = 2 * Math.PI * L / (y * 2), z = 2 * Math.PI * A / (y * 2), j, G, q, B, _ = -Math.PI / 2;
|
|
4193
4193
|
_ += this.r.v;
|
|
4194
4194
|
var R = this.data.d === 3 ? -1 : 1;
|
|
4195
4195
|
for (this.v._length = 0, j = 0; j < y; j += 1) {
|
|
4196
|
-
G = T ? L : A, q = T ? V :
|
|
4197
|
-
var P = G * Math.cos(_), M = G * Math.sin(_), F = P === 0 && M === 0 ? 0 : M / Math.sqrt(P * P + M * M),
|
|
4198
|
-
P += +this.p.v[0], M += +this.p.v[1], this.v.setTripleAt(P, M, P - F * B * q * R, M -
|
|
4196
|
+
G = T ? L : A, q = T ? V : I, B = T ? U : z;
|
|
4197
|
+
var P = G * Math.cos(_), M = G * Math.sin(_), F = P === 0 && M === 0 ? 0 : M / Math.sqrt(P * P + M * M), k = 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 * B * q * R, M - k * B * q * R, P + F * B * q * R, M + k * B * q * R, j, !0), T = !T, _ += S * R;
|
|
4199
4199
|
}
|
|
4200
4200
|
},
|
|
4201
4201
|
convertPolygonToPath: function() {
|
|
4202
|
-
var y = Math.floor(this.pt.v), S = Math.PI * 2 / y, T = this.or.v, L = this.os.v, A = 2 * Math.PI * T / (y * 4), 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 - G * A * L * U, j - q * A * L * U, z + G * A * L * U, j + q * A * L * U, V, !0),
|
|
4202
|
+
var y = Math.floor(this.pt.v), S = Math.PI * 2 / y, T = this.or.v, L = this.os.v, A = 2 * Math.PI * T / (y * 4), V, I = -Math.PI * 0.5, U = this.data.d === 3 ? -1 : 1;
|
|
4203
|
+
for (I += this.r.v, this.v._length = 0, V = 0; V < y; V += 1) {
|
|
4204
|
+
var z = T * Math.cos(I), j = T * Math.sin(I), G = z === 0 && j === 0 ? 0 : j / Math.sqrt(z * z + j * j), q = 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 - G * A * L * U, j - q * A * L * U, z + G * A * L * U, j + q * A * L * U, V, !0), I += S * U;
|
|
4206
4206
|
}
|
|
4207
4207
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
4208
4208
|
}
|
|
@@ -4283,24 +4283,24 @@ var lottie$1 = { exports: {} };
|
|
|
4283
4283
|
return this.shear(i(P), i(M));
|
|
4284
4284
|
}
|
|
4285
4285
|
function p(P, M) {
|
|
4286
|
-
var F = e(M),
|
|
4287
|
-
return this._t(F,
|
|
4286
|
+
var F = e(M), k = t(M);
|
|
4287
|
+
return this._t(F, k, 0, 0, -k, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, i(P), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(F, -k, 0, 0, k, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
4288
4288
|
}
|
|
4289
4289
|
function d(P, M, F) {
|
|
4290
4290
|
return !F && F !== 0 && (F = 1), P === 1 && M === 1 && F === 1 ? this : this._t(P, 0, 0, 0, 0, M, 0, 0, 0, 0, F, 0, 0, 0, 0, 1);
|
|
4291
4291
|
}
|
|
4292
|
-
function b(P, M, F,
|
|
4293
|
-
return this.props[0] = P, this.props[1] = M, this.props[2] = F, this.props[3] =
|
|
4292
|
+
function b(P, M, F, k, W, K, X, ee, re, ce, fe, me, de, se, ue, ie) {
|
|
4293
|
+
return this.props[0] = P, this.props[1] = M, this.props[2] = F, this.props[3] = k, this.props[4] = W, this.props[5] = K, this.props[6] = X, this.props[7] = ee, this.props[8] = re, this.props[9] = ce, this.props[10] = fe, this.props[11] = me, this.props[12] = de, this.props[13] = se, this.props[14] = ue, this.props[15] = ie, this;
|
|
4294
4294
|
}
|
|
4295
4295
|
function C(P, M, F) {
|
|
4296
4296
|
return F = F || 0, P !== 0 || M !== 0 || F !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, P, M, F, 1) : this;
|
|
4297
4297
|
}
|
|
4298
|
-
function g(P, M, F,
|
|
4298
|
+
function g(P, M, F, k, W, K, X, ee, re, ce, fe, me, de, se, ue, ie) {
|
|
4299
4299
|
var Y = this.props;
|
|
4300
|
-
if (P === 1 && M === 0 && F === 0 &&
|
|
4300
|
+
if (P === 1 && M === 0 && F === 0 && k === 0 && W === 0 && K === 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] * K + Y[15] * se, Y[14] = Y[14] * fe + Y[15] * ue, Y[15] *= ie, this._identityCalculated = !1, this;
|
|
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], Re = Y[14],
|
|
4303
|
-
return Y[0] = Te * P + Ae * W + be * re + Ce * de, Y[1] = Te * M + Ae * K + be * ce + Ce * se, Y[2] = Te * F + Ae * X + be * fe + Ce * ue, Y[3] = Te *
|
|
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], Re = Y[14], ke = Y[15];
|
|
4303
|
+
return Y[0] = Te * P + Ae * W + be * re + Ce * de, Y[1] = Te * M + Ae * K + be * ce + Ce * se, Y[2] = Te * F + Ae * X + be * fe + Ce * ue, Y[3] = Te * k + Ae * ee + be * me + Ce * ie, Y[4] = Pe * P + ve * W + ye * re + xe * de, Y[5] = Pe * M + ve * K + ye * ce + xe * se, Y[6] = Pe * F + ve * X + ye * fe + xe * ue, Y[7] = Pe * k + ve * ee + ye * me + xe * ie, Y[8] = we * P + Se * W + Me * re + Ee * de, Y[9] = we * M + Se * K + Me * ce + Ee * se, Y[10] = we * F + Se * X + Me * fe + Ee * ue, Y[11] = we * k + Se * ee + Me * me + Ee * ie, Y[12] = Le * P + _e * W + Re * re + ke * de, Y[13] = Le * M + _e * K + Re * ce + ke * se, Y[14] = Le * F + _e * X + Re * fe + ke * ue, Y[15] = Le * k + _e * ee + Re * me + ke * ie, this._identityCalculated = !1, this;
|
|
4304
4304
|
}
|
|
4305
4305
|
function E(P) {
|
|
4306
4306
|
var M = P.props;
|
|
@@ -4344,33 +4344,33 @@ var lottie$1 = { exports: {} };
|
|
|
4344
4344
|
function V(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
|
|
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,
|
|
4349
|
-
return ee.props[0] = M, ee.props[1] = F, ee.props[4] =
|
|
4347
|
+
function I() {
|
|
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, k = -this.props[4] / P, W = this.props[0] / P, K = (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
|
+
return ee.props[0] = M, ee.props[1] = F, ee.props[4] = k, ee.props[5] = W, ee.props[12] = K, ee.props[13] = X, ee;
|
|
4350
4350
|
}
|
|
4351
4351
|
function U(P) {
|
|
4352
4352
|
var M = this.getInverseMatrix();
|
|
4353
4353
|
return M.applyToPointArray(P[0], P[1], P[2] || 0);
|
|
4354
4354
|
}
|
|
4355
4355
|
function z(P) {
|
|
4356
|
-
var M, F = P.length,
|
|
4356
|
+
var M, F = P.length, k = [];
|
|
4357
4357
|
for (M = 0; M < F; M += 1)
|
|
4358
|
-
|
|
4359
|
-
return
|
|
4358
|
+
k[M] = U(P[M]);
|
|
4359
|
+
return k;
|
|
4360
4360
|
}
|
|
4361
4361
|
function j(P, M, F) {
|
|
4362
|
-
var
|
|
4362
|
+
var k = createTypedArray("float32", 6);
|
|
4363
4363
|
if (this.isIdentity())
|
|
4364
|
-
|
|
4364
|
+
k[0] = P[0], k[1] = P[1], k[2] = M[0], k[3] = M[1], k[4] = F[0], k[5] = F[1];
|
|
4365
4365
|
else {
|
|
4366
4366
|
var W = this.props[0], K = this.props[1], X = this.props[4], ee = this.props[5], re = this.props[12], ce = this.props[13];
|
|
4367
|
-
|
|
4367
|
+
k[0] = P[0] * W + P[1] * X + re, k[1] = P[0] * K + P[1] * ee + ce, k[2] = M[0] * W + M[1] * X + re, k[3] = M[0] * K + M[1] * ee + ce, k[4] = F[0] * W + F[1] * X + re, k[5] = F[0] * K + F[1] * ee + ce;
|
|
4368
4368
|
}
|
|
4369
|
-
return
|
|
4369
|
+
return k;
|
|
4370
4370
|
}
|
|
4371
4371
|
function G(P, M, F) {
|
|
4372
|
-
var
|
|
4373
|
-
return this.isIdentity() ?
|
|
4372
|
+
var k;
|
|
4373
|
+
return this.isIdentity() ? k = [P, M, F] : k = [P * this.props[0] + M * this.props[4] + F * this.props[8] + this.props[12], P * this.props[1] + M * this.props[5] + F * this.props[9] + this.props[13], P * this.props[2] + M * this.props[6] + F * this.props[10] + this.props[14]], k;
|
|
4374
4374
|
}
|
|
4375
4375
|
function q(P, M) {
|
|
4376
4376
|
if (this.isIdentity())
|
|
@@ -4379,8 +4379,8 @@ var lottie$1 = { exports: {} };
|
|
|
4379
4379
|
return Math.round((P * F[0] + M * F[4] + F[12]) * 100) / 100 + "," + Math.round((P * F[1] + M * F[5] + F[13]) * 100) / 100;
|
|
4380
4380
|
}
|
|
4381
4381
|
function B() {
|
|
4382
|
-
for (var P = 0, M = this.props, F = "matrix3d(",
|
|
4383
|
-
F += n(M[P] *
|
|
4382
|
+
for (var P = 0, M = this.props, F = "matrix3d(", k = 1e4; P < 16; )
|
|
4383
|
+
F += n(M[P] * k) / k, F += P === 15 ? ")" : ",", P += 1;
|
|
4384
4384
|
return F;
|
|
4385
4385
|
}
|
|
4386
4386
|
function _(P) {
|
|
@@ -4388,11 +4388,11 @@ var lottie$1 = { exports: {} };
|
|
|
4388
4388
|
return P < 1e-6 && P > 0 || P > -1e-6 && P < 0 ? n(P * M) / M : P;
|
|
4389
4389
|
}
|
|
4390
4390
|
function R() {
|
|
4391
|
-
var P = this.props, M = _(P[0]), F = _(P[1]),
|
|
4392
|
-
return "matrix(" + M + "," + F + "," +
|
|
4391
|
+
var P = this.props, M = _(P[0]), F = _(P[1]), k = _(P[4]), W = _(P[5]), K = _(P[12]), X = _(P[13]);
|
|
4392
|
+
return "matrix(" + M + "," + F + "," + k + "," + W + "," + K + "," + 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 = g, this.multiply = E, this.applyToPoint = T, this.applyToX = L, this.applyToY = A, this.applyToZ = V, this.applyToPointArray = G, this.applyToTriplePoints = j, this.applyToPointStringified = q, this.toCSS = B, this.to2dCSS = R, this.clone = y, this.cloneFromProps = S, this.equals = x, this.inversePoints = z, this.inversePoint = U, this.getInverseMatrix =
|
|
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 = g, this.multiply = E, this.applyToPoint = T, this.applyToX = L, this.applyToY = A, this.applyToZ = V, this.applyToPointArray = G, this.applyToTriplePoints = j, this.applyToPointStringified = q, this.toCSS = B, this.to2dCSS = R, this.clone = y, this.cloneFromProps = S, this.equals = x, this.inversePoints = z, this.inversePoint = U, this.getInverseMatrix = I, 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) {
|
|
@@ -5242,8 +5242,8 @@ var lottie$1 = { exports: {} };
|
|
|
5242
5242
|
function g(_, R) {
|
|
5243
5243
|
var P = document.body && R ? "svg" : "canvas", M, F = getFontProperties(_);
|
|
5244
5244
|
if (P === "svg") {
|
|
5245
|
-
var
|
|
5246
|
-
|
|
5245
|
+
var k = createNS("text");
|
|
5246
|
+
k.style.fontSize = "100px", k.setAttribute("font-family", _.fFamily), k.setAttribute("font-style", F.style), k.setAttribute("font-weight", F.weight), k.textContent = "1", _.fClass ? (k.style.fontFamily = "inherit", k.setAttribute("class", _.fClass)) : k.style.fontFamily = _.fFamily, R.appendChild(k), M = k;
|
|
5247
5247
|
} else {
|
|
5248
5248
|
var W = new OffscreenCanvas(500, 500).getContext("2d");
|
|
5249
5249
|
W.font = F.style + " " + F.weight + " 100px " + _.fFamily, M = W;
|
|
@@ -5270,11 +5270,11 @@ var lottie$1 = { exports: {} };
|
|
|
5270
5270
|
}), this.fonts = _.list;
|
|
5271
5271
|
return;
|
|
5272
5272
|
}
|
|
5273
|
-
var P = _.list, M, F = P.length,
|
|
5273
|
+
var P = _.list, M, F = P.length, k = F;
|
|
5274
5274
|
for (M = 0; M < F; M += 1) {
|
|
5275
5275
|
var W = !0, K, X;
|
|
5276
5276
|
if (P[M].loaded = !1, P[M].monoCase = b(P[M].fFamily, "monospace"), P[M].sansCase = b(P[M].fFamily, "sans-serif"), !P[M].fPath)
|
|
5277
|
-
P[M].loaded = !0,
|
|
5277
|
+
P[M].loaded = !0, k -= 1;
|
|
5278
5278
|
else if (P[M].fOrigin === "p" || P[M].origin === 3) {
|
|
5279
5279
|
if (K = document.querySelectorAll('style[f-forigin="p"][f-family="' + P[M].fFamily + '"], style[f-origin="3"][f-family="' + P[M].fFamily + '"]'), K.length > 0 && (W = !1), W) {
|
|
5280
5280
|
var ee = createTag("style");
|
|
@@ -5297,16 +5297,16 @@ var lottie$1 = { exports: {} };
|
|
|
5297
5297
|
}
|
|
5298
5298
|
P[M].helper = g(P[M], R), P[M].cache = {}, this.fonts.push(P[M]);
|
|
5299
5299
|
}
|
|
5300
|
-
|
|
5300
|
+
k === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
5301
5301
|
}
|
|
5302
5302
|
function m(_) {
|
|
5303
5303
|
if (_) {
|
|
5304
5304
|
this.chars || (this.chars = []);
|
|
5305
|
-
var R, P = _.length, M, F = this.chars.length,
|
|
5305
|
+
var R, P = _.length, M, F = this.chars.length, k;
|
|
5306
5306
|
for (R = 0; R < P; R += 1) {
|
|
5307
|
-
for (M = 0,
|
|
5308
|
-
this.chars[M].style === _[R].style && this.chars[M].fFamily === _[R].fFamily && this.chars[M].ch === _[R].ch && (
|
|
5309
|
-
|
|
5307
|
+
for (M = 0, k = !1; M < F; )
|
|
5308
|
+
this.chars[M].style === _[R].style && this.chars[M].fFamily === _[R].fFamily && this.chars[M].ch === _[R].ch && (k = !0), M += 1;
|
|
5309
|
+
k || (this.chars.push(_[R]), F += 1);
|
|
5310
5310
|
}
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
@@ -5321,12 +5321,12 @@ var lottie$1 = { exports: {} };
|
|
|
5321
5321
|
function y(_, R, P) {
|
|
5322
5322
|
var M = this.getFontByName(R), F = _;
|
|
5323
5323
|
if (!M.cache[F]) {
|
|
5324
|
-
var
|
|
5324
|
+
var k = M.helper;
|
|
5325
5325
|
if (_ === " ") {
|
|
5326
|
-
var W =
|
|
5326
|
+
var W = k.measureText("|" + _ + "|"), K = k.measureText("||");
|
|
5327
5327
|
M.cache[F] = (W - K) / 100;
|
|
5328
5328
|
} else
|
|
5329
|
-
M.cache[F] =
|
|
5329
|
+
M.cache[F] = k.measureText(_) / 100;
|
|
5330
5330
|
}
|
|
5331
5331
|
return M.cache[F] * P;
|
|
5332
5332
|
}
|
|
@@ -5356,12 +5356,12 @@ var lottie$1 = { exports: {} };
|
|
|
5356
5356
|
function V(_) {
|
|
5357
5357
|
return _ === l;
|
|
5358
5358
|
}
|
|
5359
|
-
function
|
|
5359
|
+
function I(_) {
|
|
5360
5360
|
var R = T(_);
|
|
5361
5361
|
return R >= f && R <= u;
|
|
5362
5362
|
}
|
|
5363
5363
|
function U(_) {
|
|
5364
|
-
return
|
|
5364
|
+
return I(_.substr(0, 2)) && I(_.substr(2, 2));
|
|
5365
5365
|
}
|
|
5366
5366
|
function z(_) {
|
|
5367
5367
|
return i.indexOf(_) !== -1;
|
|
@@ -5384,7 +5384,7 @@ var lottie$1 = { exports: {} };
|
|
|
5384
5384
|
var q = 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
|
-
q.isModifier = L, q.isZeroWidthJoiner = A, q.isFlagEmoji = U, q.isRegionalCode =
|
|
5387
|
+
q.isModifier = L, q.isZeroWidthJoiner = A, q.isFlagEmoji = U, q.isRegionalCode = I, q.isCombinedCharacter = z, q.isRegionalFlag = j, q.isVariationSelector = V, q.BLACK_FLAG_CODE_POINT = n;
|
|
5388
5388
|
var B = {
|
|
5389
5389
|
addChars: m,
|
|
5390
5390
|
addFonts: E,
|
|
@@ -6343,14 +6343,14 @@ var lottie$1 = { exports: {} };
|
|
|
6343
6343
|
function a() {
|
|
6344
6344
|
}
|
|
6345
6345
|
function o(p, d, b) {
|
|
6346
|
-
var C, g, E, m, x, y, S = d.styles.length, T = d.lvl, L, A, V,
|
|
6346
|
+
var C, g, E, m, x, y, S = d.styles.length, T = d.lvl, L, A, V, I;
|
|
6347
6347
|
for (y = 0; y < S; y += 1) {
|
|
6348
6348
|
if (m = d.sh._mdf || b, d.styles[y].lvl < T) {
|
|
6349
|
-
for (A = t.reset(), V = T - d.styles[y].lvl,
|
|
6350
|
-
m = d.transformers[
|
|
6349
|
+
for (A = t.reset(), V = T - d.styles[y].lvl, I = d.transformers.length - 1; !m && V > 0; )
|
|
6350
|
+
m = d.transformers[I].mProps._mdf || m, V -= 1, I -= 1;
|
|
6351
6351
|
if (m)
|
|
6352
|
-
for (V = T - d.styles[y].lvl,
|
|
6353
|
-
A.multiply(d.transformers[
|
|
6352
|
+
for (V = T - d.styles[y].lvl, I = d.transformers.length - 1; V > 0; )
|
|
6353
|
+
A.multiply(d.transformers[I].mProps.v), V -= 1, I -= 1;
|
|
6354
6354
|
} else
|
|
6355
6355
|
A = e;
|
|
6356
6356
|
if (L = d.sh.paths, g = L._length, m) {
|
|
@@ -6382,9 +6382,9 @@ var lottie$1 = { exports: {} };
|
|
|
6382
6382
|
var T, L, A, V;
|
|
6383
6383
|
if (d.g._cmdf || b) {
|
|
6384
6384
|
T = d.cst;
|
|
6385
|
-
var
|
|
6385
|
+
var I = d.g.c;
|
|
6386
6386
|
for (A = T.length, L = 0; L < A; L += 1)
|
|
6387
|
-
V = T[L], V.setAttribute("offset",
|
|
6387
|
+
V = T[L], V.setAttribute("offset", I[L * 4] + "%"), V.setAttribute("stop-color", "rgb(" + I[L * 4 + 1] + "," + I[L * 4 + 2] + "," + I[L * 4 + 3] + ")");
|
|
6388
6388
|
}
|
|
6389
6389
|
if (g && (d.g._omdf || b)) {
|
|
6390
6390
|
var U = d.g.o;
|
|
@@ -6593,11 +6593,11 @@ var lottie$1 = { exports: {} };
|
|
|
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
6594
|
var L = e.tr / 1e3 * e.finalSize, A;
|
|
6595
6595
|
if (e.sz)
|
|
6596
|
-
for (var V = !0,
|
|
6596
|
+
for (var V = !0, I = e.sz[0], U = e.sz[1], z, j; V; ) {
|
|
6597
6597
|
j = this.buildFinalText(e.t), z = 0, C = 0, a = j.length, L = e.tr / 1e3 * e.finalSize;
|
|
6598
6598
|
var G = -1;
|
|
6599
6599
|
for (s = 0; s < a; s += 1)
|
|
6600
|
-
A = j[s].charCodeAt(0), o = !1, j[s] === " " ? G = s : (A === 13 || A === 3) && (C = 0, o = !0, z += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (y = t.getCharData(j[s], x.fStyle, x.fFamily), S = o ? 0 : y.w * e.finalSize / 100) : S = t.measureText(j[s], e.f, e.finalSize), C + S >
|
|
6600
|
+
A = j[s].charCodeAt(0), o = !1, j[s] === " " ? G = s : (A === 13 || A === 3) && (C = 0, o = !0, z += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (y = t.getCharData(j[s], x.fStyle, x.fFamily), S = o ? 0 : y.w * e.finalSize / 100) : S = t.measureText(j[s], e.f, e.finalSize), C + S > I && j[s] !== " " ? (G === -1 ? a += 1 : s = G, z += e.finalLineHeight || e.finalSize * 1.2, j.splice(s, G === s ? 1 : 0, "\r"), G = -1, C = 0) : (C += S, C += L);
|
|
6601
6601
|
z += x.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && U < z ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = j, a = e.finalText.length, V = !1);
|
|
6602
6602
|
}
|
|
6603
6603
|
C = -L, S = 0;
|
|
@@ -6642,15 +6642,15 @@ var lottie$1 = { exports: {} };
|
|
|
6642
6642
|
e.lineWidths = b;
|
|
6643
6643
|
var _ = i.a, R, P;
|
|
6644
6644
|
m = _.length;
|
|
6645
|
-
var M, F,
|
|
6645
|
+
var M, F, k = [];
|
|
6646
6646
|
for (E = 0; E < m; E += 1) {
|
|
6647
6647
|
for (R = _[E], R.a.sc && (e.strokeColorAnim = !0), R.a.sw && (e.strokeWidthAnim = !0), (R.a.fc || R.a.fh || R.a.fs || R.a.fb) && (e.fillColorAnim = !0), F = 0, M = R.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)) && (R.s.rn === 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)) && (R.s.rn === 1 && k.push(F), F += 1);
|
|
6649
6649
|
i.a[E].s.totalChars = F;
|
|
6650
6650
|
var W = -1, K;
|
|
6651
6651
|
if (R.s.rn === 1)
|
|
6652
6652
|
for (s = 0; s < a; s += 1)
|
|
6653
|
-
P = n[s], W != P.anIndexes[E] && (W = P.anIndexes[E], K =
|
|
6653
|
+
P = n[s], W != P.anIndexes[E] && (W = P.anIndexes[E], K = k.splice(Math.floor(Math.random() * k.length), 1)[0]), P.anIndexes[E] = K;
|
|
6654
6654
|
}
|
|
6655
6655
|
e.yOffset = e.finalLineHeight || e.finalSize * 1.2, e.ls = e.ls || 0, e.ascent = x.ascent * e.finalSize / 100;
|
|
6656
6656
|
}, TextProperty.prototype.updateDocumentData = function(e, t) {
|
|
@@ -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, g, E, m, x, y, S, T, L, A, V,
|
|
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, g, E, m, x, y, S, T, L, A, V, I, U, 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;
|
|
@@ -6794,7 +6794,7 @@ var lottie$1 = { exports: {} };
|
|
|
6794
6794
|
p = d.length, c = 0, f = 0;
|
|
6795
6795
|
var q = e.finalSize * 1.2 * 0.714, B = !0, _, R, P, M, F;
|
|
6796
6796
|
M = n.length;
|
|
6797
|
-
var
|
|
6797
|
+
var k, W = -1, K, X, ee, re = C, ce = y, 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
|
-
_ = n[P].a, _.t.propType && (Me && e.j === 2 && (xe += _.t.v * we), R = n[P].s,
|
|
6807
|
+
_ = n[P].a, _.t.propType && (Me && e.j === 2 && (xe += _.t.v * we), R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), k.length ? ye += _.t.v * k[0] * we : ye += _.t.v * k * we);
|
|
6808
6808
|
Me = !1;
|
|
6809
6809
|
}
|
|
6810
6810
|
for (ye && (ye += xe); Se < u; )
|
|
@@ -6829,31 +6829,31 @@ 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
|
-
_ = n[P].a, _.p.propType && (R = n[P].s,
|
|
6832
|
+
_ = n[P].a, _.p.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), k.length ? Ee += _.p.v[0] * k[0] : Ee += _.p.v[0] * k), _.a.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), k.length ? Ee += _.a.v[0] * k[0] : Ee += _.a.v[0] * k);
|
|
6833
6833
|
for (m = !0, this._pathData.a.v && (C = d[0].an * 0.5 + (V - 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 + A >= C + Ee || !T ? (
|
|
6834
|
+
E + A >= C + Ee || !T ? (I = (C + Ee - E) / g.partialLength, X = S.point[0] + (g.point[0] - S.point[0]) * I, ee = S.point[1] + (g.point[1] - S.point[1]) * I, a.translate(-i[0] * d[u].an * 5e-3, -(i[1] * q) * 0.01), m = !1) : T && (E += g.partialLength, x += 1, x >= T.length && (x = 0, y += 1, L[y] ? T = L[y].points : z.v.c ? (x = 0, y = 0, T = L[y].points) : (E -= g.partialLength, T = null)), T && (S = g, g = T[x], A = g.partialLength));
|
|
6835
6835
|
K = d[u].an / 2 - d[u].add, a.translate(-K, 0, 0);
|
|
6836
6836
|
} else
|
|
6837
6837
|
K = d[u].an / 2 - d[u].add, a.translate(-K, 0, 0), a.translate(-i[0] * d[u].an * 5e-3, -i[1] * q * 0.01, 0);
|
|
6838
6838
|
for (P = 0; P < M; P += 1)
|
|
6839
|
-
_ = n[P].a, _.t.propType && (R = n[P].s,
|
|
6839
|
+
_ = n[P].a, _.t.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), (c !== 0 || e.j !== 0) && (this._hasMaskedPath ? k.length ? C += _.t.v * k[0] : C += _.t.v * k : k.length ? c += _.t.v * k[0] : c += _.t.v * k));
|
|
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
|
-
_ = n[P].a, _.a.propType && (R = n[P].s,
|
|
6841
|
+
_ = n[P].a, _.a.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), k.length ? a.translate(-_.a.v[0] * k[0], -_.a.v[1] * k[1], _.a.v[2] * k[2]) : a.translate(-_.a.v[0] * k, -_.a.v[1] * k, _.a.v[2] * k));
|
|
6842
6842
|
for (P = 0; P < M; P += 1)
|
|
6843
|
-
_ = n[P].a, _.s.propType && (R = n[P].s,
|
|
6843
|
+
_ = n[P].a, _.s.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), k.length ? a.scale(1 + (_.s.v[0] - 1) * k[0], 1 + (_.s.v[1] - 1) * k[1], 1) : a.scale(1 + (_.s.v[0] - 1) * k, 1 + (_.s.v[1] - 1) * k, 1));
|
|
6844
6844
|
for (P = 0; P < M; P += 1) {
|
|
6845
|
-
if (_ = n[P].a, R = n[P].s,
|
|
6845
|
+
if (_ = n[P].a, R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), _.sk.propType && (k.length ? a.skewFromAxis(-_.sk.v * k[0], _.sa.v * k[1]) : a.skewFromAxis(-_.sk.v * k, _.sa.v * k)), _.r.propType && (k.length ? a.rotateZ(-_.r.v * k[2]) : a.rotateZ(-_.r.v * k)), _.ry.propType && (k.length ? a.rotateY(_.ry.v * k[1]) : a.rotateY(_.ry.v * k)), _.rx.propType && (k.length ? a.rotateX(_.rx.v * k[0]) : a.rotateX(_.rx.v * k)), _.o.propType && (k.length ? de += (_.o.v * k[0] - de) * k[0] : de += (_.o.v * k - de) * k), e.strokeWidthAnim && _.sw.propType && (k.length ? ue += _.sw.v * k[0] : ue += _.sw.v * k), e.strokeColorAnim && _.sc.propType)
|
|
6846
6846
|
for (Y = 0; Y < 3; Y += 1)
|
|
6847
|
-
|
|
6847
|
+
k.length ? se[Y] += (_.sc.v[Y] - se[Y]) * k[0] : se[Y] += (_.sc.v[Y] - se[Y]) * k;
|
|
6848
6848
|
if (e.fillColorAnim && e.fc) {
|
|
6849
6849
|
if (_.fc.propType)
|
|
6850
6850
|
for (Y = 0; Y < 3; Y += 1)
|
|
6851
|
-
|
|
6852
|
-
_.fh.propType && (
|
|
6851
|
+
k.length ? ie[Y] += (_.fc.v[Y] - ie[Y]) * k[0] : ie[Y] += (_.fc.v[Y] - ie[Y]) * k;
|
|
6852
|
+
_.fh.propType && (k.length ? ie = addHueToRGB(ie, _.fh.v * k[0]) : ie = addHueToRGB(ie, _.fh.v * k)), _.fs.propType && (k.length ? ie = addSaturationToRGB(ie, _.fs.v * k[0]) : ie = addSaturationToRGB(ie, _.fs.v * k)), _.fb.propType && (k.length ? ie = addBrightnessToRGB(ie, _.fb.v * k[0]) : ie = addBrightnessToRGB(ie, _.fb.v * k));
|
|
6853
6853
|
}
|
|
6854
6854
|
}
|
|
6855
6855
|
for (P = 0; P < M; P += 1)
|
|
6856
|
-
_ = n[P].a, _.p.propType && (R = n[P].s,
|
|
6856
|
+
_ = n[P].a, _.p.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), this._hasMaskedPath ? k.length ? a.translate(0, _.p.v[1] * k[0], -_.p.v[2] * k[1]) : a.translate(0, _.p.v[1] * k, -_.p.v[2] * k) : k.length ? a.translate(_.p.v[0] * k[0], _.p.v[1] * k[1], -_.p.v[2] * k[2]) : a.translate(_.p.v[0] * k, _.p.v[1] * k, -_.p.v[2] * k));
|
|
6857
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] * q * 0.01 + f, 0), this._pathData.p.v) {
|
|
6859
6859
|
U = (g.point[1] - S.point[1]) / (g.point[0] - S.point[0]);
|
|
@@ -8370,30 +8370,30 @@ var lottie$1 = { exports: {} };
|
|
|
8370
8370
|
S = S === !0 ? {
|
|
8371
8371
|
entropy: !0
|
|
8372
8372
|
} : S || {};
|
|
8373
|
-
var A = E(g(S.entropy ? [y, x(e)] : y === null ? m() : y, 3), L), V = new b(L),
|
|
8373
|
+
var A = E(g(S.entropy ? [y, x(e)] : y === null ? m() : y, 3), L), V = new b(L), I = function() {
|
|
8374
8374
|
for (var z = V.g(s), j = l, G = 0; z < c; )
|
|
8375
8375
|
z = (z + G) * n, j *= n, G = V.g(1);
|
|
8376
8376
|
for (; z >= f; )
|
|
8377
8377
|
z /= 2, j /= 2, G >>>= 1;
|
|
8378
8378
|
return (z + G) / j;
|
|
8379
8379
|
};
|
|
8380
|
-
return
|
|
8380
|
+
return I.int32 = function() {
|
|
8381
8381
|
return V.g(4) | 0;
|
|
8382
|
-
},
|
|
8382
|
+
}, I.quick = function() {
|
|
8383
8383
|
return V.g(4) / 4294967296;
|
|
8384
|
-
},
|
|
8384
|
+
}, I.double = I, E(x(V.S), e), (S.pass || T || function(U, z, j, G) {
|
|
8385
8385
|
return G && (G.S && C(G, V), U.state = function() {
|
|
8386
8386
|
return C(V, {});
|
|
8387
8387
|
}), j ? (t[o] = U, z) : U;
|
|
8388
|
-
})(
|
|
8388
|
+
})(I, A, "global" in S ? S.global : this == t, S.state);
|
|
8389
8389
|
}
|
|
8390
8390
|
t["seed" + o] = d;
|
|
8391
8391
|
function b(y) {
|
|
8392
|
-
var S, T = y.length, L = this, A = 0, V = L.i = L.j = 0,
|
|
8392
|
+
var S, T = y.length, L = this, A = 0, V = L.i = L.j = 0, I = L.S = [];
|
|
8393
8393
|
for (T || (y = [T++]); A < n; )
|
|
8394
|
-
|
|
8394
|
+
I[A] = A++;
|
|
8395
8395
|
for (A = 0; A < n; A++)
|
|
8396
|
-
|
|
8396
|
+
I[A] = I[V = u & V + y[A % T] + (S = I[A])], I[V] = S;
|
|
8397
8397
|
L.g = function(U) {
|
|
8398
8398
|
for (var z, j = 0, G = L.i, q = L.j, B = L.S; U--; )
|
|
8399
8399
|
z = B[G = u & G + 1], j = j * n + B[u & (B[G] = B[q = u & q + z]) + (B[q] = z)];
|
|
@@ -9605,13 +9605,13 @@ var lottie$1 = { exports: {} };
|
|
|
9605
9605
|
if (A % 2 !== 0)
|
|
9606
9606
|
return this.getValueAtTime((x - (g - y) % x + y) / this.comp.globalData.frameRate, 0);
|
|
9607
9607
|
} else if (d === "offset") {
|
|
9608
|
-
var V = this.getValueAtTime(y / this.comp.globalData.frameRate, 0),
|
|
9608
|
+
var V = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), I = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), U = this.getValueAtTime(((g - y) % x + y) / this.comp.globalData.frameRate, 0), z = Math.floor((g - y) / x);
|
|
9609
9609
|
if (this.pv.length) {
|
|
9610
9610
|
for (L = new Array(V.length), T = L.length, S = 0; S < T; S += 1)
|
|
9611
|
-
L[S] = (
|
|
9611
|
+
L[S] = (I[S] - V[S]) * z + U[S];
|
|
9612
9612
|
return L;
|
|
9613
9613
|
}
|
|
9614
|
-
return (
|
|
9614
|
+
return (I - V) * z + U;
|
|
9615
9615
|
} else if (d === "continue") {
|
|
9616
9616
|
var j = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), G = this.getValueAtTime((m - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
9617
9617
|
if (this.pv.length) {
|
|
@@ -9638,13 +9638,13 @@ var lottie$1 = { exports: {} };
|
|
|
9638
9638
|
if (A % 2 === 0)
|
|
9639
9639
|
return this.getValueAtTime(((m - g) % x + m) / this.comp.globalData.frameRate, 0);
|
|
9640
9640
|
} else if (d === "offset") {
|
|
9641
|
-
var V = this.getValueAtTime(m / this.comp.globalData.frameRate, 0),
|
|
9641
|
+
var V = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), I = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), U = this.getValueAtTime((x - (m - g) % x + m) / this.comp.globalData.frameRate, 0), z = Math.floor((m - g) / x) + 1;
|
|
9642
9642
|
if (this.pv.length) {
|
|
9643
9643
|
for (L = new Array(V.length), T = L.length, S = 0; S < T; S += 1)
|
|
9644
|
-
L[S] = U[S] - (
|
|
9644
|
+
L[S] = U[S] - (I[S] - V[S]) * z;
|
|
9645
9645
|
return L;
|
|
9646
9646
|
}
|
|
9647
|
-
return U - (
|
|
9647
|
+
return U - (I - V) * z;
|
|
9648
9648
|
} else if (d === "continue") {
|
|
9649
9649
|
var j = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), G = this.getValueAtTime((m + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
9650
9650
|
if (this.pv.length) {
|
|
@@ -9705,8 +9705,8 @@ var lottie$1 = { exports: {} };
|
|
|
9705
9705
|
if (this.data.p && this.data.p.s) {
|
|
9706
9706
|
var A = this.px.getValueAtTime(d), V = this.py.getValueAtTime(d);
|
|
9707
9707
|
if (this.data.p.z) {
|
|
9708
|
-
var
|
|
9709
|
-
b.translate(A * this.px.mult, V * this.py.mult, -
|
|
9708
|
+
var I = this.pz.getValueAtTime(d);
|
|
9709
|
+
b.translate(A * this.px.mult, V * this.py.mult, -I * this.pz.mult);
|
|
9710
9710
|
} else
|
|
9711
9711
|
b.translate(A * this.px.mult, V * this.py.mult, 0);
|
|
9712
9712
|
} else {
|
|
@@ -9771,8 +9771,8 @@ var lottie$1 = { exports: {} };
|
|
|
9771
9771
|
C !== void 0 && (g = this.getValueAtTime(C, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(g));
|
|
9772
9772
|
for (var E = this._segmentsLength, m = E.lengths, x = E.totalLength * b, y = 0, S = m.length, T = 0, L; y < S; ) {
|
|
9773
9773
|
if (T + m[y].addedLength > x) {
|
|
9774
|
-
var A = y, V = g.c && y === S - 1 ? 0 : y + 1,
|
|
9775
|
-
L = bez.getPointInSegment(g.v[A], g.v[V], g.o[A], g.i[V],
|
|
9774
|
+
var A = y, V = g.c && y === S - 1 ? 0 : y + 1, I = (x - T) / m[y].addedLength;
|
|
9775
|
+
L = bez.getPointInSegment(g.v[A], g.v[V], g.o[A], g.i[V], I, m[y]);
|
|
9776
9776
|
break;
|
|
9777
9777
|
} else
|
|
9778
9778
|
T += m[y].addedLength;
|
|
@@ -10155,7 +10155,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10155
10155
|
var m = _objectWithoutProperties(t, _excluded$1), x = useState(!1), y = _slicedToArray(x, 2), S = y[0], T = y[1], L = useRef(), A = useRef(null), V = function() {
|
|
10156
10156
|
var W;
|
|
10157
10157
|
(W = L.current) === null || W === void 0 || W.play();
|
|
10158
|
-
},
|
|
10158
|
+
}, I = function() {
|
|
10159
10159
|
var W;
|
|
10160
10160
|
(W = L.current) === null || W === void 0 || W.stop();
|
|
10161
10161
|
}, U = function() {
|
|
@@ -10199,9 +10199,9 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10199
10199
|
}
|
|
10200
10200
|
};
|
|
10201
10201
|
useEffect(function() {
|
|
10202
|
-
var
|
|
10202
|
+
var k = M();
|
|
10203
10203
|
return function() {
|
|
10204
|
-
return
|
|
10204
|
+
return k == null ? void 0 : k();
|
|
10205
10205
|
};
|
|
10206
10206
|
}, [n, s]), useEffect(function() {
|
|
10207
10207
|
L.current && (L.current.autoplay = !!a);
|
|
@@ -10214,7 +10214,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10214
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
|
-
var
|
|
10217
|
+
var k = [{
|
|
10218
10218
|
name: "complete",
|
|
10219
10219
|
handler: l
|
|
10220
10220
|
}, {
|
|
@@ -10244,7 +10244,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10244
10244
|
}, {
|
|
10245
10245
|
name: "destroy",
|
|
10246
10246
|
handler: E
|
|
10247
|
-
}], W =
|
|
10247
|
+
}], W = k.filter(function(X) {
|
|
10248
10248
|
return X.handler != null;
|
|
10249
10249
|
});
|
|
10250
10250
|
if (W.length) {
|
|
@@ -10276,7 +10276,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10276
10276
|
return {
|
|
10277
10277
|
View: F,
|
|
10278
10278
|
play: V,
|
|
10279
|
-
stop:
|
|
10279
|
+
stop: I,
|
|
10280
10280
|
pause: U,
|
|
10281
10281
|
setSpeed: z,
|
|
10282
10282
|
goToAndStop: G,
|
|
@@ -11380,8 +11380,8 @@ function RemoveScrollSideCar(e) {
|
|
|
11380
11380
|
return !1;
|
|
11381
11381
|
if (!n.current && "changedTouches" in g && (y || S) && (n.current = T), !T)
|
|
11382
11382
|
return !0;
|
|
11383
|
-
var
|
|
11384
|
-
return handleScroll(
|
|
11383
|
+
var I = n.current || T;
|
|
11384
|
+
return handleScroll(I, E, g, I === "h" ? y : S, !0);
|
|
11385
11385
|
}, []), c = React.useCallback(function(g) {
|
|
11386
11386
|
var E = g;
|
|
11387
11387
|
if (!(!lockStack.length || lockStack[lockStack.length - 1] !== a)) {
|
|
@@ -11785,8 +11785,8 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
|
|
|
11785
11785
|
onDismiss: l,
|
|
11786
11786
|
...c
|
|
11787
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)), g = Array.from(f.layers), [E] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), m = g.indexOf(E), x = u ? g.indexOf(u) : -1, y = f.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= m, T = usePointerDownOutside((A) => {
|
|
11788
|
-
const V = A.target,
|
|
11789
|
-
!S ||
|
|
11788
|
+
const V = A.target, I = [...f.branches].some((U) => U.contains(V));
|
|
11789
|
+
!S || I || (s == null || s(A), o == null || o(A), A.defaultPrevented || l == null || l());
|
|
11790
11790
|
}, d), L = useFocusOutside((A) => {
|
|
11791
11791
|
const V = A.target;
|
|
11792
11792
|
[...f.branches].some((U) => U.contains(V)) || (a == null || a(A), o == null || o(A), A.defaultPrevented || l == null || l());
|
|
@@ -12719,14 +12719,14 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12719
12719
|
height: 0
|
|
12720
12720
|
};
|
|
12721
12721
|
var V;
|
|
12722
|
-
return (V = i == null ? void 0 : i.map((
|
|
12723
|
-
const U = typeof
|
|
12722
|
+
return (V = i == null ? void 0 : i.map((I) => {
|
|
12723
|
+
const U = typeof I == "string";
|
|
12724
12724
|
let z = 0;
|
|
12725
|
-
if (U && (z = parseInt(
|
|
12726
|
-
const G = U ? z : d ?
|
|
12725
|
+
if (U && (z = parseInt(I, 10)), isVertical(l)) {
|
|
12726
|
+
const G = U ? z : d ? I * A.height : 0;
|
|
12727
12727
|
return d ? l === "bottom" ? A.height - G : -A.height + G : G;
|
|
12728
12728
|
}
|
|
12729
|
-
const j = U ? z : d ?
|
|
12729
|
+
const j = U ? z : d ? I * A.width : 0;
|
|
12730
12730
|
return d ? l === "right" ? A.width - j : -A.width + j : j;
|
|
12731
12731
|
})) != null ? V : [];
|
|
12732
12732
|
}, [
|
|
@@ -12738,17 +12738,17 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12738
12738
|
g
|
|
12739
12739
|
]), y = React__default.useCallback((A) => {
|
|
12740
12740
|
var V;
|
|
12741
|
-
const
|
|
12742
|
-
o(
|
|
12741
|
+
const I = (V = m == null ? void 0 : m.findIndex((U) => U === A)) != null ? V : null;
|
|
12742
|
+
o(I), set(n.current, {
|
|
12743
12743
|
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
12744
12744
|
transform: isVertical(l) ? `translate3d(0, ${A}px, 0)` : `translate3d(${A}px, 0, 0)`
|
|
12745
|
-
}), m &&
|
|
12745
|
+
}), m && I !== m.length - 1 && a !== void 0 && I !== a && I < 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(I, 0)]);
|
|
12752
12752
|
}, [
|
|
12753
12753
|
n.current,
|
|
12754
12754
|
i,
|
|
@@ -12760,7 +12760,7 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12760
12760
|
React__default.useEffect(() => {
|
|
12761
12761
|
if (u || e) {
|
|
12762
12762
|
var A;
|
|
12763
|
-
const V = (A = i == null ? void 0 : i.findIndex((
|
|
12763
|
+
const V = (A = i == null ? void 0 : i.findIndex((I) => I === e || I === u)) != null ? A : -1;
|
|
12764
12764
|
m && V !== -1 && typeof m[V] == "number" && y(m[V]);
|
|
12765
12765
|
}
|
|
12766
12766
|
}, [
|
|
@@ -12770,21 +12770,21 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12770
12770
|
m,
|
|
12771
12771
|
y
|
|
12772
12772
|
]);
|
|
12773
|
-
function S({ draggedDistance: A, closeDrawer: V, velocity:
|
|
12773
|
+
function S({ draggedDistance: A, closeDrawer: V, velocity: I, dismissible: U }) {
|
|
12774
12774
|
if (a === void 0) return;
|
|
12775
12775
|
const z = l === "bottom" || l === "right" ? (x ?? 0) - A : (x ?? 0) + A, j = g === a - 1, G = g === 0, q = 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 && I > 2 && !q) {
|
|
12779
12779
|
U ? V() : y(m[0]);
|
|
12780
12780
|
return;
|
|
12781
12781
|
}
|
|
12782
|
-
if (!f &&
|
|
12782
|
+
if (!f && I > 2 && q && m && i) {
|
|
12783
12783
|
y(m[i.length - 1]);
|
|
12784
12784
|
return;
|
|
12785
12785
|
}
|
|
12786
12786
|
const B = m == null ? void 0 : m.reduce((R, P) => typeof R != "number" || typeof P != "number" ? R : Math.abs(P - z) < Math.abs(R - z) ? P : R), _ = isVertical(l) ? window.innerHeight : window.innerWidth;
|
|
12787
|
-
if (
|
|
12787
|
+
if (I > VELOCITY_THRESHOLD && Math.abs(A) < _ * 0.4) {
|
|
12788
12788
|
const R = q ? 1 : -1;
|
|
12789
12789
|
if (R > 0 && C && i) {
|
|
12790
12790
|
y(m[i.length - 1]);
|
|
@@ -12805,13 +12805,13 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12805
12805
|
}
|
|
12806
12806
|
function L(A, V) {
|
|
12807
12807
|
if (!i || typeof g != "number" || !m || a === void 0) return null;
|
|
12808
|
-
const
|
|
12808
|
+
const I = g === a - 1;
|
|
12809
12809
|
if (g >= a && V)
|
|
12810
12810
|
return 0;
|
|
12811
|
-
if (
|
|
12812
|
-
if (!E && !
|
|
12813
|
-
const z =
|
|
12814
|
-
return
|
|
12811
|
+
if (I && !V) return 1;
|
|
12812
|
+
if (!E && !I) return null;
|
|
12813
|
+
const z = I ? g + 1 : g - 1, j = I ? m[z] - m[z - 1] : m[z + 1] - m[z], G = A / Math.abs(j);
|
|
12814
|
+
return I ? 1 - G : G;
|
|
12815
12815
|
}
|
|
12816
12816
|
return {
|
|
12817
12817
|
isLastSnapPoint: C,
|
|
@@ -12935,7 +12935,7 @@ 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: g, modal: E = !0, onClose: m, nested: x, noBodyStyles: y = !1, direction: S = "bottom", defaultOpen: T = !1, disablePreventScroll: L = !0, snapToSequentialPoint: A = !1, preventScrollRestoration: V = !1, repositionInputs:
|
|
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: g, modal: E = !0, onClose: m, nested: x, noBodyStyles: y = !1, direction: S = "bottom", defaultOpen: T = !1, disablePreventScroll: L = !0, snapToSequentialPoint: A = !1, preventScrollRestoration: V = !1, repositionInputs: I = !0, onAnimationEnd: U, container: z, autoFocus: j = !1 }) {
|
|
12939
12939
|
var G, q;
|
|
12940
12940
|
const [B = !1, _] = useControllableState({
|
|
12941
12941
|
defaultProp: T,
|
|
@@ -12947,7 +12947,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
12947
12947
|
document.body.style.pointerEvents = "auto";
|
|
12948
12948
|
}), H || (document.body.style.pointerEvents = "auto");
|
|
12949
12949
|
}
|
|
12950
|
-
}), [R, P] = React__default.useState(!1), [M, F] = React__default.useState(!1), [
|
|
12950
|
+
}), [R, P] = React__default.useState(!1), [M, F] = React__default.useState(!1), [k, W] = React__default.useState(!1), K = 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(((G = Y.current) == null ? void 0 : G.getBoundingClientRect().height) || 0), Ae = React__default.useRef(((q = Y.current) == null ? void 0 : q.getBoundingClientRect().width) || 0), be = React__default.useRef(0), Ce = React__default.useCallback((H) => {
|
|
12951
12951
|
a && H === 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,
|
|
@@ -12962,7 +12962,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
12962
12962
|
snapToSequentialPoint: A
|
|
12963
12963
|
});
|
|
12964
12964
|
usePreventScroll({
|
|
12965
|
-
isDisabled: !B || M || !E ||
|
|
12965
|
+
isDisabled: !B || M || !E || k || !R || !I || !L
|
|
12966
12966
|
});
|
|
12967
12967
|
const { restorePositionSetting: Le } = usePositionFixed({
|
|
12968
12968
|
isOpen: B,
|
|
@@ -12981,7 +12981,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
12981
12981
|
once: !0
|
|
12982
12982
|
}), H.target.setPointerCapture(H.pointerId), de.current = isVertical(S) ? H.pageY : H.pageX);
|
|
12983
12983
|
}
|
|
12984
|
-
function
|
|
12984
|
+
function ke(H, O) {
|
|
12985
12985
|
var N;
|
|
12986
12986
|
let J = H;
|
|
12987
12987
|
const Q = (N = window.getSelection()) == null ? void 0 : N.toString(), te = Y.current ? getTranslate(Y.current, S) : null, ne = /* @__PURE__ */ new Date();
|
|
@@ -13015,7 +13015,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13015
13015
|
const te = Math.abs(N), 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
|
-
if (oe !== null && (ae = oe), Q && ae >= 1 || !fe.current && !
|
|
13018
|
+
if (oe !== null && (ae = oe), Q && ae >= 1 || !fe.current && !ke(H.target, J)) return;
|
|
13019
13019
|
if (Y.current.classList.add(DRAG_CLASS), fe.current = !0, set(Y.current, {
|
|
13020
13020
|
transition: "none"
|
|
13021
13021
|
}), set(K.current, {
|
|
@@ -13056,7 +13056,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13056
13056
|
}, []), React__default.useEffect(() => {
|
|
13057
13057
|
var H;
|
|
13058
13058
|
function O() {
|
|
13059
|
-
if (!Y.current || !
|
|
13059
|
+
if (!Y.current || !I) return;
|
|
13060
13060
|
const N = document.activeElement;
|
|
13061
13061
|
if (isInput(N) || 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 Ie() {
|
|
13095
13095
|
if (!Y.current) return;
|
|
13096
13096
|
const H = document.querySelector("[data-vaul-drawer-wrapper]"), O = getTranslate(Y.current, S);
|
|
13097
13097
|
set(Y.current, {
|
|
@@ -13122,7 +13122,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13122
13122
|
if (!M || !Y.current) return;
|
|
13123
13123
|
Y.current.classList.remove(DRAG_CLASS), fe.current = !1, F(!1), re.current = /* @__PURE__ */ new Date();
|
|
13124
13124
|
const O = getTranslate(Y.current, S);
|
|
13125
|
-
if (!H || !
|
|
13125
|
+
if (!H || !ke(H.target, !1) || !O || Number.isNaN(O) || ee.current === null) return;
|
|
13126
13126
|
const N = re.current.getTime() - ee.current.getTime(), J = de.current - (isVertical(S) ? H.pageY : H.pageX), Q = Math.abs(J) / N;
|
|
13127
13127
|
if (Q > 0.05 && (W(!0), setTimeout(() => {
|
|
13128
13128
|
W(!1);
|
|
@@ -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
|
+
Ie(), s == null || s(H, !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(H, !1);
|
|
13152
13152
|
return;
|
|
13153
13153
|
}
|
|
13154
|
-
s == null || s(H, !0),
|
|
13154
|
+
s == null || s(H, !0), Ie();
|
|
13155
13155
|
}
|
|
13156
13156
|
React__default.useEffect(() => (B && (set(document.documentElement, {
|
|
13157
13157
|
scrollBehavior: "auto"
|
|
@@ -13253,10 +13253,10 @@ 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: g, container: E, handleOnly: m, shouldAnimate: x, autoFocus: y } = useDrawerContext(), [S, T] = React__default.useState(!1), L = useComposedRefs(s, a), A = React__default.useRef(null), V = React__default.useRef(null),
|
|
13256
|
+
const { drawerRef: a, onPress: o, onRelease: l, onDrag: c, keyboardIsOpen: f, snapPointsOffset: u, activeSnapPointIndex: p, modal: d, isOpen: b, direction: C, snapPoints: g, container: E, handleOnly: m, shouldAnimate: x, autoFocus: y } = useDrawerContext(), [S, T] = React__default.useState(!1), L = useComposedRefs(s, a), A = React__default.useRef(null), V = React__default.useRef(null), I = React__default.useRef(!1), U = g && g.length > 0;
|
|
13257
13257
|
useScaleBackground();
|
|
13258
13258
|
const z = (G, q, B = 0) => {
|
|
13259
|
-
if (
|
|
13259
|
+
if (I.current) return !0;
|
|
13260
13260
|
const _ = Math.abs(G.y), R = Math.abs(G.x), P = R > _, M = [
|
|
13261
13261
|
"bottom",
|
|
13262
13262
|
"right"
|
|
@@ -13266,7 +13266,7 @@ const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDo
|
|
|
13266
13266
|
return P;
|
|
13267
13267
|
} else if (!(G.y * M < 0) && _ >= 0 && _ <= B)
|
|
13268
13268
|
return !P;
|
|
13269
|
-
return
|
|
13269
|
+
return I.current = !0, !0;
|
|
13270
13270
|
};
|
|
13271
13271
|
React__default.useEffect(() => {
|
|
13272
13272
|
U && window.requestAnimationFrame(() => {
|
|
@@ -13274,7 +13274,7 @@ const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDo
|
|
|
13274
13274
|
});
|
|
13275
13275
|
}, []);
|
|
13276
13276
|
function j(G) {
|
|
13277
|
-
A.current = null,
|
|
13277
|
+
A.current = null, I.current = !1, l(G);
|
|
13278
13278
|
}
|
|
13279
13279
|
return /* @__PURE__ */ React__default.createElement(Content$1, {
|
|
13280
13280
|
"data-vaul-drawer-direction": C,
|
|
@@ -13320,7 +13320,7 @@ const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDo
|
|
|
13320
13320
|
}, C, _) ? c(G) : (Math.abs(B) > _ || Math.abs(q) > _) && (A.current = null);
|
|
13321
13321
|
},
|
|
13322
13322
|
onPointerUp: (G) => {
|
|
13323
|
-
n.onPointerUp == null || n.onPointerUp.call(n, G), A.current = null,
|
|
13323
|
+
n.onPointerUp == null || n.onPointerUp.call(n, G), A.current = null, I.current = !1, l(G);
|
|
13324
13324
|
},
|
|
13325
13325
|
onPointerOut: (G) => {
|
|
13326
13326
|
n.onPointerOut == null || n.onPointerOut.call(n, G), j(V.current);
|
|
@@ -14849,6 +14849,38 @@ const Drawer = {
|
|
|
14849
14849
|
)
|
|
14850
14850
|
]
|
|
14851
14851
|
}
|
|
14852
|
+
), SearchIconThin = (e) => /* @__PURE__ */ jsxs(
|
|
14853
|
+
"svg",
|
|
14854
|
+
{
|
|
14855
|
+
width: "16",
|
|
14856
|
+
height: "16",
|
|
14857
|
+
viewBox: "0 0 16 16",
|
|
14858
|
+
fill: "none",
|
|
14859
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14860
|
+
...e,
|
|
14861
|
+
children: [
|
|
14862
|
+
/* @__PURE__ */ jsx(
|
|
14863
|
+
"mask",
|
|
14864
|
+
{
|
|
14865
|
+
id: "mask0_25526_70195",
|
|
14866
|
+
style: { maskType: "alpha" },
|
|
14867
|
+
maskUnits: "userSpaceOnUse",
|
|
14868
|
+
x: "0",
|
|
14869
|
+
y: "0",
|
|
14870
|
+
width: "16",
|
|
14871
|
+
height: "16",
|
|
14872
|
+
children: /* @__PURE__ */ jsx("rect", { width: "16", height: "16", fill: "#D9D9D9" })
|
|
14873
|
+
}
|
|
14874
|
+
),
|
|
14875
|
+
/* @__PURE__ */ jsx("g", { mask: "url(#mask0_25526_70195)", children: /* @__PURE__ */ jsx(
|
|
14876
|
+
"path",
|
|
14877
|
+
{
|
|
14878
|
+
d: "M13.0245 13.7178L8.83729 9.53051C8.50396 9.80574 8.12063 10.0211 7.68729 10.1767C7.25396 10.3322 6.80568 10.41 6.34246 10.41C5.20301 10.41 4.23868 10.0155 3.44946 9.22651C2.66024 8.43751 2.26562 7.4734 2.26562 6.33418C2.26562 5.19507 2.66012 4.23063 3.44912 3.44085C4.23812 2.65118 5.20224 2.25635 6.34146 2.25635C7.48057 2.25635 8.44501 2.65096 9.23479 3.44018C10.0245 4.2294 10.4193 5.19374 10.4193 6.33318C10.4193 6.80929 10.3394 7.26402 10.1796 7.69735C10.0197 8.13068 9.80646 8.50757 9.53979 8.82802L13.727 13.0152L13.0245 13.7178ZM6.34246 9.41018C7.20146 9.41018 7.92901 9.11207 8.52513 8.51585C9.12135 7.91974 9.41946 7.19218 9.41946 6.33318C9.41946 5.47418 9.12135 4.74662 8.52513 4.15051C7.92901 3.55429 7.20146 3.25618 6.34246 3.25618C5.48346 3.25618 4.7559 3.55429 4.15979 4.15051C3.56357 4.74662 3.26546 5.47418 3.26546 6.33318C3.26546 7.19218 3.56357 7.91974 4.15979 8.51585C4.7559 9.11207 5.48346 9.41018 6.34246 9.41018Z",
|
|
14879
|
+
fill: "currentColor"
|
|
14880
|
+
}
|
|
14881
|
+
) })
|
|
14882
|
+
]
|
|
14883
|
+
}
|
|
14852
14884
|
), ArbitrumLogo = (e) => /* @__PURE__ */ jsxs(
|
|
14853
14885
|
"svg",
|
|
14854
14886
|
{
|
|
@@ -16473,25 +16505,26 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
|
|
|
16473
16505
|
), TokenNetworkLogos = ({
|
|
16474
16506
|
tokenLogo: e,
|
|
16475
16507
|
chainLogo: t,
|
|
16476
|
-
|
|
16508
|
+
iconStyle: i,
|
|
16509
|
+
...n
|
|
16477
16510
|
}) => /* @__PURE__ */ jsxs(
|
|
16478
16511
|
"div",
|
|
16479
16512
|
{
|
|
16480
16513
|
className: `gf-relative gf-flex gf-h-5 gf-items-center gf-justify-between ${t && t !== e ? "gf-w-[36px]" : "gf-w-5"}`,
|
|
16481
|
-
...
|
|
16514
|
+
...n,
|
|
16482
16515
|
children: [
|
|
16483
16516
|
/* @__PURE__ */ jsx(
|
|
16484
16517
|
"img",
|
|
16485
16518
|
{
|
|
16486
16519
|
src: e,
|
|
16487
|
-
className:
|
|
16520
|
+
className: `gf-absolute gf-left-0 gf-z-30 gf-h-5 gf-w-5 gf-rounded-full ${i ?? ""}`
|
|
16488
16521
|
}
|
|
16489
16522
|
),
|
|
16490
16523
|
t && t !== e && /* @__PURE__ */ jsx(
|
|
16491
16524
|
"img",
|
|
16492
16525
|
{
|
|
16493
16526
|
src: t,
|
|
16494
|
-
className:
|
|
16527
|
+
className: `gf-absolute gf-right-0 gf-z-20 gf-h-5 gf-w-5 gf-rounded-full ${i ?? ""}`
|
|
16495
16528
|
}
|
|
16496
16529
|
)
|
|
16497
16530
|
]
|
|
@@ -16761,8 +16794,8 @@ var build = { exports: {} };
|
|
|
16761
16794
|
function S(T) {
|
|
16762
16795
|
if (typeof T == "number") return T;
|
|
16763
16796
|
if (function(V) {
|
|
16764
|
-
return typeof V == "symbol" || /* @__PURE__ */ function(
|
|
16765
|
-
return !!
|
|
16797
|
+
return typeof V == "symbol" || /* @__PURE__ */ function(I) {
|
|
16798
|
+
return !!I && typeof I == "object";
|
|
16766
16799
|
}(V) && g.call(V) == "[object Symbol]";
|
|
16767
16800
|
}(T)) return NaN;
|
|
16768
16801
|
if (y(T)) {
|
|
@@ -16775,11 +16808,11 @@ var build = { exports: {} };
|
|
|
16775
16808
|
return A || u.test(T) ? p(T.slice(2), A ? 2 : 8) : c.test(T) ? NaN : +T;
|
|
16776
16809
|
}
|
|
16777
16810
|
s.exports = function(T, L, A) {
|
|
16778
|
-
var V,
|
|
16811
|
+
var V, I, U, z, j, G, q = 0, B = !1, _ = !1, R = !0;
|
|
16779
16812
|
if (typeof T != "function") throw new TypeError("Expected a function");
|
|
16780
16813
|
function P(K) {
|
|
16781
|
-
var X = V, ee =
|
|
16782
|
-
return V =
|
|
16814
|
+
var X = V, ee = I;
|
|
16815
|
+
return V = I = void 0, q = K, z = T.apply(ee, X);
|
|
16783
16816
|
}
|
|
16784
16817
|
function M(K) {
|
|
16785
16818
|
var X = K - G;
|
|
@@ -16787,18 +16820,18 @@ var build = { exports: {} };
|
|
|
16787
16820
|
}
|
|
16788
16821
|
function F() {
|
|
16789
16822
|
var K = x();
|
|
16790
|
-
if (M(K)) return
|
|
16823
|
+
if (M(K)) return k(K);
|
|
16791
16824
|
j = setTimeout(F, function(X) {
|
|
16792
16825
|
var ee = L - (X - G);
|
|
16793
16826
|
return _ ? m(ee, U - (X - q)) : ee;
|
|
16794
16827
|
}(K));
|
|
16795
16828
|
}
|
|
16796
|
-
function
|
|
16797
|
-
return j = void 0, R && V ? P(K) : (V =
|
|
16829
|
+
function k(K) {
|
|
16830
|
+
return j = void 0, R && V ? P(K) : (V = I = void 0, z);
|
|
16798
16831
|
}
|
|
16799
16832
|
function W() {
|
|
16800
16833
|
var K = x(), X = M(K);
|
|
16801
|
-
if (V = arguments,
|
|
16834
|
+
if (V = arguments, I = this, G = K, X) {
|
|
16802
16835
|
if (j === void 0) return function(ee) {
|
|
16803
16836
|
return q = ee, j = setTimeout(F, L), B ? P(ee) : z;
|
|
16804
16837
|
}(G);
|
|
@@ -16807,9 +16840,9 @@ var build = { exports: {} };
|
|
|
16807
16840
|
return j === void 0 && (j = setTimeout(F, L)), z;
|
|
16808
16841
|
}
|
|
16809
16842
|
return L = S(L) || 0, y(A) && (B = !!A.leading, U = (_ = "maxWait" in A) ? E(S(A.maxWait) || 0, L) : U, R = "trailing" in A ? !!A.trailing : R), W.cancel = function() {
|
|
16810
|
-
j !== void 0 && clearTimeout(j), q = 0, V = G =
|
|
16843
|
+
j !== void 0 && clearTimeout(j), q = 0, V = G = I = j = void 0;
|
|
16811
16844
|
}, W.flush = function() {
|
|
16812
|
-
return j === void 0 ? z :
|
|
16845
|
+
return j === void 0 ? z : k(x());
|
|
16813
16846
|
}, W;
|
|
16814
16847
|
};
|
|
16815
16848
|
}, 858: (s, a, o) => {
|
|
@@ -16817,8 +16850,8 @@ var build = { exports: {} };
|
|
|
16817
16850
|
return m.Date.now();
|
|
16818
16851
|
};
|
|
16819
16852
|
function L(V) {
|
|
16820
|
-
var
|
|
16821
|
-
return !!V && (
|
|
16853
|
+
var I = typeof V;
|
|
16854
|
+
return !!V && (I == "object" || I == "function");
|
|
16822
16855
|
}
|
|
16823
16856
|
function A(V) {
|
|
16824
16857
|
if (typeof V == "number") return V;
|
|
@@ -16828,33 +16861,33 @@ var build = { exports: {} };
|
|
|
16828
16861
|
}(z) && x.call(z) == f;
|
|
16829
16862
|
}(V)) return c;
|
|
16830
16863
|
if (L(V)) {
|
|
16831
|
-
var
|
|
16832
|
-
V = L(
|
|
16864
|
+
var I = typeof V.valueOf == "function" ? V.valueOf() : V;
|
|
16865
|
+
V = L(I) ? I + "" : I;
|
|
16833
16866
|
}
|
|
16834
16867
|
if (typeof V != "string") return V === 0 ? V : +V;
|
|
16835
16868
|
V = V.replace(u, "");
|
|
16836
16869
|
var U = d.test(V);
|
|
16837
16870
|
return U || b.test(V) ? C(V.slice(2), U ? 2 : 8) : p.test(V) ? c : +V;
|
|
16838
16871
|
}
|
|
16839
|
-
s.exports = function(V,
|
|
16872
|
+
s.exports = function(V, I, U) {
|
|
16840
16873
|
var z = !0, j = !0;
|
|
16841
16874
|
if (typeof V != "function") throw new TypeError(l);
|
|
16842
16875
|
return L(U) && (z = "leading" in U ? !!U.leading : z, j = "trailing" in U ? !!U.trailing : j), function(G, q, B) {
|
|
16843
|
-
var _, R, P, M, F,
|
|
16876
|
+
var _, R, P, M, F, k, W = 0, K = !1, X = !1, ee = !0;
|
|
16844
16877
|
if (typeof G != "function") throw new TypeError(l);
|
|
16845
16878
|
function re(se) {
|
|
16846
16879
|
var ue = _, ie = R;
|
|
16847
16880
|
return _ = R = void 0, W = se, M = G.apply(ie, ue);
|
|
16848
16881
|
}
|
|
16849
16882
|
function ce(se) {
|
|
16850
|
-
var ue = se -
|
|
16851
|
-
return
|
|
16883
|
+
var ue = se - k;
|
|
16884
|
+
return k === void 0 || ue >= q || ue < 0 || X && se - W >= P;
|
|
16852
16885
|
}
|
|
16853
16886
|
function fe() {
|
|
16854
16887
|
var se = T();
|
|
16855
16888
|
if (ce(se)) return me(se);
|
|
16856
16889
|
F = setTimeout(fe, function(ue) {
|
|
16857
|
-
var ie = q - (ue -
|
|
16890
|
+
var ie = q - (ue - k);
|
|
16858
16891
|
return X ? S(ie, P - (ue - W)) : ie;
|
|
16859
16892
|
}(se));
|
|
16860
16893
|
}
|
|
@@ -16863,20 +16896,20 @@ var build = { exports: {} };
|
|
|
16863
16896
|
}
|
|
16864
16897
|
function de() {
|
|
16865
16898
|
var se = T(), ue = ce(se);
|
|
16866
|
-
if (_ = arguments, R = this,
|
|
16899
|
+
if (_ = arguments, R = this, k = se, ue) {
|
|
16867
16900
|
if (F === void 0) return function(ie) {
|
|
16868
16901
|
return W = ie, F = setTimeout(fe, q), K ? re(ie) : M;
|
|
16869
|
-
}(
|
|
16870
|
-
if (X) return F = setTimeout(fe, q), re(
|
|
16902
|
+
}(k);
|
|
16903
|
+
if (X) return F = setTimeout(fe, q), re(k);
|
|
16871
16904
|
}
|
|
16872
16905
|
return F === void 0 && (F = setTimeout(fe, q)), M;
|
|
16873
16906
|
}
|
|
16874
16907
|
return q = A(q) || 0, L(B) && (K = !!B.leading, P = (X = "maxWait" in B) ? y(A(B.maxWait) || 0, q) : P, ee = "trailing" in B ? !!B.trailing : ee), de.cancel = function() {
|
|
16875
|
-
F !== void 0 && clearTimeout(F), W = 0, _ =
|
|
16908
|
+
F !== void 0 && clearTimeout(F), W = 0, _ = k = R = F = void 0;
|
|
16876
16909
|
}, de.flush = function() {
|
|
16877
16910
|
return F === void 0 ? M : me(T());
|
|
16878
16911
|
}, de;
|
|
16879
|
-
}(V,
|
|
16912
|
+
}(V, I, { leading: z, maxWait: I, trailing: j });
|
|
16880
16913
|
};
|
|
16881
16914
|
}, 694: (s, a, o) => {
|
|
16882
16915
|
var l = o(925);
|
|
@@ -17060,14 +17093,14 @@ var build = { exports: {} };
|
|
|
17060
17093
|
}(a().Component);
|
|
17061
17094
|
y.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]) }, y.defaultProps = { className: "", placeholder: null, threshold: 100, useIntersectionObserver: !0 };
|
|
17062
17095
|
const S = y;
|
|
17063
|
-
var T = i(181), L = i.n(T), A = i(858), V = i.n(A),
|
|
17096
|
+
var T = i(181), L = i.n(T), A = i(858), V = i.n(A), I = function($) {
|
|
17064
17097
|
var D = getComputedStyle($, null);
|
|
17065
17098
|
return D.getPropertyValue("overflow") + D.getPropertyValue("overflow-y") + D.getPropertyValue("overflow-x");
|
|
17066
17099
|
};
|
|
17067
17100
|
const U = function($) {
|
|
17068
17101
|
if (!($ instanceof HTMLElement)) return window;
|
|
17069
17102
|
for (var D = $; D && D instanceof HTMLElement; ) {
|
|
17070
|
-
if (/(scroll|auto)/.test(
|
|
17103
|
+
if (/(scroll|auto)/.test(I(D))) return D;
|
|
17071
17104
|
D = D.parentNode;
|
|
17072
17105
|
}
|
|
17073
17106
|
return window;
|
|
@@ -17139,7 +17172,7 @@ var build = { exports: {} };
|
|
|
17139
17172
|
return Z.__proto__ = H, Z;
|
|
17140
17173
|
}, F($, D);
|
|
17141
17174
|
}
|
|
17142
|
-
var
|
|
17175
|
+
var k = function() {
|
|
17143
17176
|
return typeof window > "u" ? 0 : window.scrollX || window.pageXOffset;
|
|
17144
17177
|
}, W = function() {
|
|
17145
17178
|
return typeof window > "u" ? 0 : window.scrollY || window.pageYOffset;
|
|
@@ -17152,7 +17185,7 @@ var build = { exports: {} };
|
|
|
17152
17185
|
if (!(ne instanceof le)) throw new TypeError("Cannot call a class as a function");
|
|
17153
17186
|
}(this, H), (Q = _(this, H, [J])).useIntersectionObserver = J.useIntersectionObserver && l(), Q.useIntersectionObserver) return R(Q);
|
|
17154
17187
|
var te = Q.onChangeScroll.bind(Q);
|
|
17155
|
-
return J.delayMethod === "debounce" ? Q.delayedScroll = L()(te, J.delayTime) : J.delayMethod === "throttle" && (Q.delayedScroll = V()(te, J.delayTime)), Q.state = { scrollPosition: { x:
|
|
17188
|
+
return J.delayMethod === "debounce" ? Q.delayedScroll = L()(te, J.delayTime) : J.delayMethod === "throttle" && (Q.delayedScroll = V()(te, J.delayTime)), Q.state = { scrollPosition: { x: k(), y: W() } }, Q.baseComponentRef = a().createRef(), Q;
|
|
17156
17189
|
}
|
|
17157
17190
|
return function(J, Q) {
|
|
17158
17191
|
if (typeof Q != "function" && Q !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -17168,7 +17201,7 @@ var build = { exports: {} };
|
|
|
17168
17201
|
} }, { key: "removeListeners", value: function() {
|
|
17169
17202
|
typeof window > "u" || this.useIntersectionObserver || (this.scrollElement.removeEventListener("scroll", this.delayedScroll), window.removeEventListener("resize", this.delayedScroll), this.scrollElement !== window && window.removeEventListener("scroll", this.delayedScroll));
|
|
17170
17203
|
} }, { key: "onChangeScroll", value: function() {
|
|
17171
|
-
this.useIntersectionObserver || this.setState({ scrollPosition: { x:
|
|
17204
|
+
this.useIntersectionObserver || this.setState({ scrollPosition: { x: k(), y: W() } });
|
|
17172
17205
|
} }, { key: "render", value: function() {
|
|
17173
17206
|
var J = this.props, Q = (J.delayMethod, J.delayTime, function(ne, le) {
|
|
17174
17207
|
if (ne == null) return {};
|
|
@@ -17409,7 +17442,7 @@ var build = { exports: {} };
|
|
|
17409
17442
|
}($);
|
|
17410
17443
|
return xe(D) == "symbol" ? D : D + "";
|
|
17411
17444
|
}
|
|
17412
|
-
function
|
|
17445
|
+
function ke($, D, Z) {
|
|
17413
17446
|
return D = Ve(D), function(H, O) {
|
|
17414
17447
|
if (O && (xe(O) == "object" || typeof O == "function")) return O;
|
|
17415
17448
|
if (O !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -17434,21 +17467,21 @@ var build = { exports: {} };
|
|
|
17434
17467
|
return D.__proto__ || Object.getPrototypeOf(D);
|
|
17435
17468
|
}, Ve($);
|
|
17436
17469
|
}
|
|
17437
|
-
function
|
|
17438
|
-
return
|
|
17470
|
+
function Ie($, D) {
|
|
17471
|
+
return Ie = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(Z, H) {
|
|
17439
17472
|
return Z.__proto__ = H, Z;
|
|
17440
|
-
},
|
|
17473
|
+
}, Ie($, D);
|
|
17441
17474
|
}
|
|
17442
17475
|
var De = function($) {
|
|
17443
17476
|
function D(O) {
|
|
17444
17477
|
var N;
|
|
17445
17478
|
return function(J, Q) {
|
|
17446
17479
|
if (!(J instanceof Q)) throw new TypeError("Cannot call a class as a function");
|
|
17447
|
-
}(this, D), (N =
|
|
17480
|
+
}(this, D), (N = ke(this, D, [O])).state = { loaded: !1 }, N;
|
|
17448
17481
|
}
|
|
17449
17482
|
return function(O, N) {
|
|
17450
17483
|
if (typeof N != "function" && N !== null) throw new TypeError("Super expression must either be null or a function");
|
|
17451
|
-
O.prototype = Object.create(N && N.prototype, { constructor: { value: O, writable: !0, configurable: !0 } }), Object.defineProperty(O, "prototype", { writable: !1 }), N &&
|
|
17484
|
+
O.prototype = Object.create(N && N.prototype, { constructor: { value: O, writable: !0, configurable: !0 } }), Object.defineProperty(O, "prototype", { writable: !1 }), N && Ie(O, N);
|
|
17452
17485
|
}(D, $), Z = D, H = [{ key: "onImageLoad", value: function() {
|
|
17453
17486
|
var O = this;
|
|
17454
17487
|
return this.state.loaded ? null : function(N) {
|
|
@@ -18434,8 +18467,8 @@ function inertia({ keyframes: e, velocity: t = 0, power: i = 0.8, timeConstant:
|
|
|
18434
18467
|
const E = p + g, m = o === void 0 ? E : o(E);
|
|
18435
18468
|
m !== E && (g = m - p);
|
|
18436
18469
|
const x = (V) => -g * Math.exp(-V / n), y = (V) => m + x(V), S = (V) => {
|
|
18437
|
-
const
|
|
18438
|
-
d.done = Math.abs(
|
|
18470
|
+
const I = x(V), U = y(V);
|
|
18471
|
+
d.done = Math.abs(I) <= f, d.value = d.done ? m : U;
|
|
18439
18472
|
};
|
|
18440
18473
|
let T, L;
|
|
18441
18474
|
const A = (V) => {
|
|
@@ -18452,8 +18485,8 @@ function inertia({ keyframes: e, velocity: t = 0, power: i = 0.8, timeConstant:
|
|
|
18452
18485
|
return A(0), {
|
|
18453
18486
|
calculatedDuration: null,
|
|
18454
18487
|
next: (V) => {
|
|
18455
|
-
let
|
|
18456
|
-
return !L && T === void 0 && (
|
|
18488
|
+
let I = !1;
|
|
18489
|
+
return !L && T === void 0 && (I = !0, S(V), A(V)), T !== void 0 && V >= T ? L.next(V - T) : (!I && S(V), d);
|
|
18457
18490
|
}
|
|
18458
18491
|
};
|
|
18459
18492
|
}
|
|
@@ -18720,8 +18753,8 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
18720
18753
|
let y = this.currentTime, S = a;
|
|
18721
18754
|
if (b) {
|
|
18722
18755
|
const V = Math.min(this.currentTime, u) / p;
|
|
18723
|
-
let
|
|
18724
|
-
!U && V >= 1 && (U = 1), U === 1 &&
|
|
18756
|
+
let I = Math.floor(V), U = V % 1;
|
|
18757
|
+
!U && V >= 1 && (U = 1), U === 1 && I--, I = Math.min(I, b + 1), !!(I % 2) && (C === "reverse" ? (U = 1 - U, g && (U -= g / p)) : C === "mirror" && (S = o)), y = clamp(0, 1, U) * p;
|
|
18725
18758
|
}
|
|
18726
18759
|
const T = x ? { done: !1, value: c[0] } : S.next(y);
|
|
18727
18760
|
l && (T.value = l(T.value));
|
|
@@ -19532,7 +19565,7 @@ function createAnimationState(e) {
|
|
|
19532
19565
|
const A = checkVariantsDidChange(x.prevProp, y);
|
|
19533
19566
|
let V = A || // If we're making this variant active, we want to always make it active
|
|
19534
19567
|
m === c && x.isActive && !L && S || // If we removed a higher-priority variant (i is in reverse order)
|
|
19535
|
-
E > C && S,
|
|
19568
|
+
E > C && S, I = !1;
|
|
19536
19569
|
const U = Array.isArray(y) ? y : [y];
|
|
19537
19570
|
let z = U.reduce(s(m), {});
|
|
19538
19571
|
T === !1 && (z = {});
|
|
@@ -19540,7 +19573,7 @@ function createAnimationState(e) {
|
|
|
19540
19573
|
...j,
|
|
19541
19574
|
...z
|
|
19542
19575
|
}, q = (R) => {
|
|
19543
|
-
V = !0, d.has(R) && (
|
|
19576
|
+
V = !0, d.has(R) && (I = !0, d.delete(R)), x.needsAnimating[R] = !0;
|
|
19544
19577
|
const P = e.getValue(R);
|
|
19545
19578
|
P && (P.liveStyle = !1);
|
|
19546
19579
|
};
|
|
@@ -19551,7 +19584,7 @@ function createAnimationState(e) {
|
|
|
19551
19584
|
let F = !1;
|
|
19552
19585
|
isKeyframesTarget(P) && isKeyframesTarget(M) ? F = !shallowCompare(P, M) : F = P !== M, F ? P != null ? q(R) : d.add(R) : P !== void 0 && d.has(R) ? q(R) : x.protectedKeys[R] = !0;
|
|
19553
19586
|
}
|
|
19554
|
-
x.prevProp = y, x.prevResolvedValues = z, x.isActive && (b = { ...b, ...z }), n && e.blockInitialAnimation && (V = !1), V && (!(L && A) ||
|
|
19587
|
+
x.prevProp = y, x.prevResolvedValues = z, x.isActive && (b = { ...b, ...z }), n && e.blockInitialAnimation && (V = !1), V && (!(L && A) || I) && p.push(...U.map((R) => ({
|
|
19555
19588
|
animation: R,
|
|
19556
19589
|
options: { type: m }
|
|
19557
19590
|
})));
|
|
@@ -22319,6 +22352,7 @@ export {
|
|
|
22319
22352
|
SDKIcon,
|
|
22320
22353
|
ScaleY,
|
|
22321
22354
|
SearchIcon,
|
|
22355
|
+
SearchIconThin,
|
|
22322
22356
|
Share,
|
|
22323
22357
|
Shine,
|
|
22324
22358
|
Sidebar,
|