@gardenfi/garden-book 0.1.79 → 0.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.cjs.js +8 -8
- package/dist/ui.es.js +601 -593
- package/dist/ui.umd.js +8 -8
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -25,8 +25,8 @@ const falsyToString = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0
|
|
|
25
25
|
return p === void 0 || (f[m] = p), f;
|
|
26
26
|
}, {}), l = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((f, u) => {
|
|
27
27
|
let { class: m, className: p, ...b } = u;
|
|
28
|
-
return Object.entries(b).every((
|
|
29
|
-
let [y, A] =
|
|
28
|
+
return Object.entries(b).every((C) => {
|
|
29
|
+
let [y, A] = C;
|
|
30
30
|
return Array.isArray(A) ? A.includes({
|
|
31
31
|
...a,
|
|
32
32
|
...c
|
|
@@ -197,11 +197,11 @@ function createParseClassName(e) {
|
|
|
197
197
|
}
|
|
198
198
|
g === "[" ? f++ : g === "]" && f--;
|
|
199
199
|
}
|
|
200
|
-
const p = l.length === 0 ? c : c.substring(u), b = p.startsWith(IMPORTANT_MODIFIER),
|
|
200
|
+
const p = l.length === 0 ? c : c.substring(u), b = p.startsWith(IMPORTANT_MODIFIER), C = b ? p.substring(1) : p, y = m && m > u ? m - u : void 0;
|
|
201
201
|
return {
|
|
202
202
|
modifiers: l,
|
|
203
203
|
hasImportantModifier: b,
|
|
204
|
-
baseClassName:
|
|
204
|
+
baseClassName: C,
|
|
205
205
|
maybePostfixModifierPosition: y
|
|
206
206
|
};
|
|
207
207
|
}
|
|
@@ -369,7 +369,7 @@ function isImage(e) {
|
|
|
369
369
|
return imageRegex.test(e);
|
|
370
370
|
}
|
|
371
371
|
function getDefaultConfig() {
|
|
372
|
-
const e = fromTheme("colors"), t = fromTheme("spacing"), i = fromTheme("blur"), n = fromTheme("brightness"), s = fromTheme("borderColor"), a = fromTheme("borderRadius"), o = fromTheme("borderSpacing"), c = fromTheme("borderWidth"), l = fromTheme("contrast"), f = fromTheme("grayscale"), u = fromTheme("hueRotate"), m = fromTheme("invert"), p = fromTheme("gap"), b = fromTheme("gradientColorStops"),
|
|
372
|
+
const e = fromTheme("colors"), t = fromTheme("spacing"), i = fromTheme("blur"), n = fromTheme("brightness"), s = fromTheme("borderColor"), a = fromTheme("borderRadius"), o = fromTheme("borderSpacing"), c = fromTheme("borderWidth"), l = fromTheme("contrast"), f = fromTheme("grayscale"), u = fromTheme("hueRotate"), m = fromTheme("invert"), p = fromTheme("gap"), b = fromTheme("gradientColorStops"), C = fromTheme("gradientColorStopPositions"), y = fromTheme("inset"), A = fromTheme("margin"), g = fromTheme("opacity"), x = fromTheme("padding"), d = fromTheme("saturate"), S = fromTheme("scale"), T = fromTheme("sepia"), E = fromTheme("skew"), _ = fromTheme("space"), V = fromTheme("translate"), B = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], Z = () => ["auto", isArbitraryValue, t], D = () => [isArbitraryValue, t], X = () => ["", isLength, isArbitraryLength], q = () => ["auto", isNumber, isArbitraryValue], N = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], L = () => ["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], R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [isNumber, isArbitraryNumber], G = () => [isNumber, isArbitraryValue];
|
|
373
373
|
return {
|
|
374
374
|
cacheSize: 500,
|
|
375
375
|
separator: ":",
|
|
@@ -837,63 +837,63 @@ function getDefaultConfig() {
|
|
|
837
837
|
* @see https://tailwindcss.com/docs/padding
|
|
838
838
|
*/
|
|
839
839
|
p: [{
|
|
840
|
-
p: [
|
|
840
|
+
p: [x]
|
|
841
841
|
}],
|
|
842
842
|
/**
|
|
843
843
|
* Padding X
|
|
844
844
|
* @see https://tailwindcss.com/docs/padding
|
|
845
845
|
*/
|
|
846
846
|
px: [{
|
|
847
|
-
px: [
|
|
847
|
+
px: [x]
|
|
848
848
|
}],
|
|
849
849
|
/**
|
|
850
850
|
* Padding Y
|
|
851
851
|
* @see https://tailwindcss.com/docs/padding
|
|
852
852
|
*/
|
|
853
853
|
py: [{
|
|
854
|
-
py: [
|
|
854
|
+
py: [x]
|
|
855
855
|
}],
|
|
856
856
|
/**
|
|
857
857
|
* Padding Start
|
|
858
858
|
* @see https://tailwindcss.com/docs/padding
|
|
859
859
|
*/
|
|
860
860
|
ps: [{
|
|
861
|
-
ps: [
|
|
861
|
+
ps: [x]
|
|
862
862
|
}],
|
|
863
863
|
/**
|
|
864
864
|
* Padding End
|
|
865
865
|
* @see https://tailwindcss.com/docs/padding
|
|
866
866
|
*/
|
|
867
867
|
pe: [{
|
|
868
|
-
pe: [
|
|
868
|
+
pe: [x]
|
|
869
869
|
}],
|
|
870
870
|
/**
|
|
871
871
|
* Padding Top
|
|
872
872
|
* @see https://tailwindcss.com/docs/padding
|
|
873
873
|
*/
|
|
874
874
|
pt: [{
|
|
875
|
-
pt: [
|
|
875
|
+
pt: [x]
|
|
876
876
|
}],
|
|
877
877
|
/**
|
|
878
878
|
* Padding Right
|
|
879
879
|
* @see https://tailwindcss.com/docs/padding
|
|
880
880
|
*/
|
|
881
881
|
pr: [{
|
|
882
|
-
pr: [
|
|
882
|
+
pr: [x]
|
|
883
883
|
}],
|
|
884
884
|
/**
|
|
885
885
|
* Padding Bottom
|
|
886
886
|
* @see https://tailwindcss.com/docs/padding
|
|
887
887
|
*/
|
|
888
888
|
pb: [{
|
|
889
|
-
pb: [
|
|
889
|
+
pb: [x]
|
|
890
890
|
}],
|
|
891
891
|
/**
|
|
892
892
|
* Padding Left
|
|
893
893
|
* @see https://tailwindcss.com/docs/padding
|
|
894
894
|
*/
|
|
895
895
|
pl: [{
|
|
896
|
-
pl: [
|
|
896
|
+
pl: [x]
|
|
897
897
|
}],
|
|
898
898
|
/**
|
|
899
899
|
* Margin
|
|
@@ -1340,21 +1340,21 @@ function getDefaultConfig() {
|
|
|
1340
1340
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1341
1341
|
*/
|
|
1342
1342
|
"gradient-from-pos": [{
|
|
1343
|
-
from: [
|
|
1343
|
+
from: [C]
|
|
1344
1344
|
}],
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Gradient Color Stops Via Position
|
|
1347
1347
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1348
1348
|
*/
|
|
1349
1349
|
"gradient-via-pos": [{
|
|
1350
|
-
via: [
|
|
1350
|
+
via: [C]
|
|
1351
1351
|
}],
|
|
1352
1352
|
/**
|
|
1353
1353
|
* Gradient Color Stops To Position
|
|
1354
1354
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1355
1355
|
*/
|
|
1356
1356
|
"gradient-to-pos": [{
|
|
1357
|
-
to: [
|
|
1357
|
+
to: [C]
|
|
1358
1358
|
}],
|
|
1359
1359
|
/**
|
|
1360
1360
|
* Gradient Color Stops From
|
|
@@ -2678,14 +2678,14 @@ var lottie$1 = { exports: {} };
|
|
|
2678
2678
|
if (window.Worker && window.Blob && getWebWorker()) {
|
|
2679
2679
|
var b = new Blob(["var _workerSelf = self; self.onmessage = ", p.toString()], {
|
|
2680
2680
|
type: "text/javascript"
|
|
2681
|
-
}),
|
|
2682
|
-
return new Worker(
|
|
2681
|
+
}), C = URL.createObjectURL(b);
|
|
2682
|
+
return new Worker(C);
|
|
2683
2683
|
}
|
|
2684
2684
|
return i = p, s;
|
|
2685
2685
|
}
|
|
2686
2686
|
function c() {
|
|
2687
2687
|
n || (n = o(function(b) {
|
|
2688
|
-
function
|
|
2688
|
+
function C() {
|
|
2689
2689
|
function A(N, L) {
|
|
2690
2690
|
var k, P, M = N.length, R, I, G, U;
|
|
2691
2691
|
for (P = 0; P < M; P += 1)
|
|
@@ -2709,7 +2709,7 @@ var lottie$1 = { exports: {} };
|
|
|
2709
2709
|
N[k].t === 1 && (N[k].data.layers = d(N[k].data.refId, L), A(N[k].data.layers, L));
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2712
|
+
function x(N, L) {
|
|
2713
2713
|
for (var k = 0, P = L.length; k < P; ) {
|
|
2714
2714
|
if (L[k].id === N)
|
|
2715
2715
|
return L[k];
|
|
@@ -2718,7 +2718,7 @@ var lottie$1 = { exports: {} };
|
|
|
2718
2718
|
return null;
|
|
2719
2719
|
}
|
|
2720
2720
|
function d(N, L) {
|
|
2721
|
-
var k =
|
|
2721
|
+
var k = x(N, L);
|
|
2722
2722
|
return k ? k.layers.__used ? JSON.parse(JSON.stringify(k.layers)) : (k.layers.__used = !0, k.layers) : null;
|
|
2723
2723
|
}
|
|
2724
2724
|
function S(N) {
|
|
@@ -2926,12 +2926,12 @@ var lottie$1 = { exports: {} };
|
|
|
2926
2926
|
var q = {};
|
|
2927
2927
|
return q.completeData = D, q.checkColors = $, q.checkChars = V, q.checkPathProperties = B, q.checkShapes = Z, q.completeLayers = A, q;
|
|
2928
2928
|
}
|
|
2929
|
-
if (a.dataManager || (a.dataManager =
|
|
2930
|
-
function A(
|
|
2931
|
-
var d =
|
|
2932
|
-
return d &&
|
|
2929
|
+
if (a.dataManager || (a.dataManager = C()), a.assetLoader || (a.assetLoader = /* @__PURE__ */ function() {
|
|
2930
|
+
function A(x) {
|
|
2931
|
+
var d = x.getResponseHeader("content-type");
|
|
2932
|
+
return d && x.responseType === "json" && d.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;
|
|
2933
2933
|
}
|
|
2934
|
-
function g(
|
|
2934
|
+
function g(x, d, S, T) {
|
|
2935
2935
|
var E, _ = new XMLHttpRequest();
|
|
2936
2936
|
try {
|
|
2937
2937
|
_.responseType = "json";
|
|
@@ -2949,9 +2949,9 @@ var lottie$1 = { exports: {} };
|
|
|
2949
2949
|
}
|
|
2950
2950
|
};
|
|
2951
2951
|
try {
|
|
2952
|
-
_.open(["G", "E", "T"].join(""),
|
|
2952
|
+
_.open(["G", "E", "T"].join(""), x, !0);
|
|
2953
2953
|
} catch {
|
|
2954
|
-
_.open(["G", "E", "T"].join(""), d + "/" +
|
|
2954
|
+
_.open(["G", "E", "T"].join(""), d + "/" + x, !0);
|
|
2955
2955
|
}
|
|
2956
2956
|
_.send();
|
|
2957
2957
|
}
|
|
@@ -2991,21 +2991,21 @@ var lottie$1 = { exports: {} };
|
|
|
2991
2991
|
});
|
|
2992
2992
|
});
|
|
2993
2993
|
}), n.onmessage = function(p) {
|
|
2994
|
-
var b = p.data,
|
|
2995
|
-
t[
|
|
2994
|
+
var b = p.data, C = b.id, y = t[C];
|
|
2995
|
+
t[C] = null, b.status === "success" ? y.onComplete(b.payload) : y.onError && y.onError();
|
|
2996
2996
|
});
|
|
2997
2997
|
}
|
|
2998
2998
|
function l(p, b) {
|
|
2999
2999
|
e += 1;
|
|
3000
|
-
var
|
|
3001
|
-
return t[
|
|
3000
|
+
var C = "processId_" + e;
|
|
3001
|
+
return t[C] = {
|
|
3002
3002
|
onComplete: p,
|
|
3003
3003
|
onError: b
|
|
3004
|
-
},
|
|
3004
|
+
}, C;
|
|
3005
3005
|
}
|
|
3006
|
-
function f(p, b,
|
|
3006
|
+
function f(p, b, C) {
|
|
3007
3007
|
c();
|
|
3008
|
-
var y = l(b,
|
|
3008
|
+
var y = l(b, C);
|
|
3009
3009
|
n.postMessage({
|
|
3010
3010
|
type: "loadAnimation",
|
|
3011
3011
|
path: p,
|
|
@@ -3013,9 +3013,9 @@ var lottie$1 = { exports: {} };
|
|
|
3013
3013
|
id: y
|
|
3014
3014
|
});
|
|
3015
3015
|
}
|
|
3016
|
-
function u(p, b,
|
|
3016
|
+
function u(p, b, C) {
|
|
3017
3017
|
c();
|
|
3018
|
-
var y = l(b,
|
|
3018
|
+
var y = l(b, C);
|
|
3019
3019
|
n.postMessage({
|
|
3020
3020
|
type: "loadData",
|
|
3021
3021
|
path: p,
|
|
@@ -3023,9 +3023,9 @@ var lottie$1 = { exports: {} };
|
|
|
3023
3023
|
id: y
|
|
3024
3024
|
});
|
|
3025
3025
|
}
|
|
3026
|
-
function m(p, b,
|
|
3026
|
+
function m(p, b, C) {
|
|
3027
3027
|
c();
|
|
3028
|
-
var y = l(b,
|
|
3028
|
+
var y = l(b, C);
|
|
3029
3029
|
n.postMessage({
|
|
3030
3030
|
type: "complete",
|
|
3031
3031
|
animation: p,
|
|
@@ -3041,8 +3041,8 @@ var lottie$1 = { exports: {} };
|
|
|
3041
3041
|
var e = function() {
|
|
3042
3042
|
var g = createTag("canvas");
|
|
3043
3043
|
g.width = 1, g.height = 1;
|
|
3044
|
-
var
|
|
3045
|
-
return
|
|
3044
|
+
var x = g.getContext("2d");
|
|
3045
|
+
return x.fillStyle = "rgba(0,0,0,0)", x.fillRect(0, 0, 1, 1), g;
|
|
3046
3046
|
}();
|
|
3047
3047
|
function t() {
|
|
3048
3048
|
this.loadedAssets += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
@@ -3050,28 +3050,28 @@ var lottie$1 = { exports: {} };
|
|
|
3050
3050
|
function i() {
|
|
3051
3051
|
this.loadedFootagesCount += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
3052
3052
|
}
|
|
3053
|
-
function n(g,
|
|
3053
|
+
function n(g, x, d) {
|
|
3054
3054
|
var S = "";
|
|
3055
3055
|
if (g.e)
|
|
3056
3056
|
S = g.p;
|
|
3057
|
-
else if (
|
|
3057
|
+
else if (x) {
|
|
3058
3058
|
var T = g.p;
|
|
3059
|
-
T.indexOf("images/") !== -1 && (T = T.split("/")[1]), S =
|
|
3059
|
+
T.indexOf("images/") !== -1 && (T = T.split("/")[1]), S = x + T;
|
|
3060
3060
|
} else
|
|
3061
3061
|
S = d, S += g.u ? g.u : "", S += g.p;
|
|
3062
3062
|
return S;
|
|
3063
3063
|
}
|
|
3064
3064
|
function s(g) {
|
|
3065
|
-
var
|
|
3065
|
+
var x = 0, d = setInterval((function() {
|
|
3066
3066
|
var S = g.getBBox();
|
|
3067
|
-
(S.width ||
|
|
3067
|
+
(S.width || x > 500) && (this._imageLoaded(), clearInterval(d)), x += 1;
|
|
3068
3068
|
}).bind(this), 50);
|
|
3069
3069
|
}
|
|
3070
3070
|
function a(g) {
|
|
3071
|
-
var
|
|
3071
|
+
var x = n(g, this.assetsPath, this.path), d = createNS("image");
|
|
3072
3072
|
isSafari ? this.testImageLoaded(d) : d.addEventListener("load", this._imageLoaded, !1), d.addEventListener("error", (function() {
|
|
3073
3073
|
S.img = e, this._imageLoaded();
|
|
3074
|
-
}).bind(this), !1), d.setAttributeNS("http://www.w3.org/1999/xlink", "href",
|
|
3074
|
+
}).bind(this), !1), d.setAttributeNS("http://www.w3.org/1999/xlink", "href", x), this._elementHelper.append ? this._elementHelper.append(d) : this._elementHelper.appendChild(d);
|
|
3075
3075
|
var S = {
|
|
3076
3076
|
img: d,
|
|
3077
3077
|
assetData: g
|
|
@@ -3079,10 +3079,10 @@ var lottie$1 = { exports: {} };
|
|
|
3079
3079
|
return S;
|
|
3080
3080
|
}
|
|
3081
3081
|
function o(g) {
|
|
3082
|
-
var
|
|
3082
|
+
var x = n(g, this.assetsPath, this.path), d = createTag("img");
|
|
3083
3083
|
d.crossOrigin = "anonymous", d.addEventListener("load", this._imageLoaded, !1), d.addEventListener("error", (function() {
|
|
3084
3084
|
S.img = e, this._imageLoaded();
|
|
3085
|
-
}).bind(this), !1), d.src =
|
|
3085
|
+
}).bind(this), !1), d.src = x;
|
|
3086
3086
|
var S = {
|
|
3087
3087
|
img: d,
|
|
3088
3088
|
assetData: g
|
|
@@ -3090,17 +3090,17 @@ var lottie$1 = { exports: {} };
|
|
|
3090
3090
|
return S;
|
|
3091
3091
|
}
|
|
3092
3092
|
function c(g) {
|
|
3093
|
-
var
|
|
3093
|
+
var x = {
|
|
3094
3094
|
assetData: g
|
|
3095
3095
|
}, d = n(g, this.assetsPath, this.path);
|
|
3096
3096
|
return dataManager.loadData(d, (function(S) {
|
|
3097
|
-
|
|
3097
|
+
x.img = S, this._footageLoaded();
|
|
3098
3098
|
}).bind(this), (function() {
|
|
3099
|
-
|
|
3100
|
-
}).bind(this)),
|
|
3099
|
+
x.img = {}, this._footageLoaded();
|
|
3100
|
+
}).bind(this)), x;
|
|
3101
3101
|
}
|
|
3102
|
-
function l(g,
|
|
3103
|
-
this.imagesLoadedCb =
|
|
3102
|
+
function l(g, x) {
|
|
3103
|
+
this.imagesLoadedCb = x;
|
|
3104
3104
|
var d, S = g.length;
|
|
3105
3105
|
for (d = 0; d < S; d += 1)
|
|
3106
3106
|
g[d].layers || (!g[d].t || g[d].t === "seq" ? (this.totalImages += 1, this.images.push(this._createImageData(g[d]))) : g[d].t === 3 && (this.totalFootages += 1, this.images.push(this.createFootageData(g[d]))));
|
|
@@ -3112,10 +3112,10 @@ var lottie$1 = { exports: {} };
|
|
|
3112
3112
|
this.assetsPath = g || "";
|
|
3113
3113
|
}
|
|
3114
3114
|
function m(g) {
|
|
3115
|
-
for (var
|
|
3116
|
-
if (this.images[
|
|
3117
|
-
return this.images[
|
|
3118
|
-
|
|
3115
|
+
for (var x = 0, d = this.images.length; x < d; ) {
|
|
3116
|
+
if (this.images[x].assetData === g)
|
|
3117
|
+
return this.images[x].img;
|
|
3118
|
+
x += 1;
|
|
3119
3119
|
}
|
|
3120
3120
|
return null;
|
|
3121
3121
|
}
|
|
@@ -3125,11 +3125,11 @@ var lottie$1 = { exports: {} };
|
|
|
3125
3125
|
function b() {
|
|
3126
3126
|
return this.totalImages === this.loadedAssets;
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function C() {
|
|
3129
3129
|
return this.totalFootages === this.loadedFootagesCount;
|
|
3130
3130
|
}
|
|
3131
|
-
function y(g,
|
|
3132
|
-
g === "svg" ? (this._elementHelper =
|
|
3131
|
+
function y(g, x) {
|
|
3132
|
+
g === "svg" ? (this._elementHelper = x, this._createImageData = this.createImageData.bind(this)) : this._createImageData = this.createImgData.bind(this);
|
|
3133
3133
|
}
|
|
3134
3134
|
function A() {
|
|
3135
3135
|
this._imageLoaded = t.bind(this), this._footageLoaded = i.bind(this), this.testImageLoaded = s.bind(this), this.createFootageData = c.bind(this), this.assetsPath = "", this.path = "", this.totalImages = 0, this.totalFootages = 0, this.loadedAssets = 0, this.loadedFootagesCount = 0, this.imagesLoadedCb = null, this.images = [];
|
|
@@ -3139,7 +3139,7 @@ var lottie$1 = { exports: {} };
|
|
|
3139
3139
|
setAssetsPath: u,
|
|
3140
3140
|
setPath: f,
|
|
3141
3141
|
loadedImages: b,
|
|
3142
|
-
loadedFootages:
|
|
3142
|
+
loadedFootages: C,
|
|
3143
3143
|
destroy: p,
|
|
3144
3144
|
getAsset: m,
|
|
3145
3145
|
createImgData: o,
|
|
@@ -3510,7 +3510,7 @@ var lottie$1 = { exports: {} };
|
|
|
3510
3510
|
var k = new AnimationItem();
|
|
3511
3511
|
return p(k, null), k.setParams(L), k;
|
|
3512
3512
|
}
|
|
3513
|
-
function
|
|
3513
|
+
function C(L, k) {
|
|
3514
3514
|
var P;
|
|
3515
3515
|
for (P = 0; P < n; P += 1)
|
|
3516
3516
|
t[P].animation.setSpeed(L, k);
|
|
@@ -3531,7 +3531,7 @@ var lottie$1 = { exports: {} };
|
|
|
3531
3531
|
t[P].animation.advanceTime(k);
|
|
3532
3532
|
i = L, s && !o ? window.requestAnimationFrame(g) : a = !0;
|
|
3533
3533
|
}
|
|
3534
|
-
function
|
|
3534
|
+
function x(L) {
|
|
3535
3535
|
i = L, window.requestAnimationFrame(g);
|
|
3536
3536
|
}
|
|
3537
3537
|
function d(L) {
|
|
@@ -3577,7 +3577,7 @@ var lottie$1 = { exports: {} };
|
|
|
3577
3577
|
t[L].animation.resize();
|
|
3578
3578
|
}
|
|
3579
3579
|
function $() {
|
|
3580
|
-
!o && s && a && (window.requestAnimationFrame(
|
|
3580
|
+
!o && s && a && (window.requestAnimationFrame(x), a = !1);
|
|
3581
3581
|
}
|
|
3582
3582
|
function Z() {
|
|
3583
3583
|
o = !0;
|
|
@@ -3600,52 +3600,52 @@ var lottie$1 = { exports: {} };
|
|
|
3600
3600
|
for (k = 0; k < n; k += 1)
|
|
3601
3601
|
t[k].animation.unmute(L);
|
|
3602
3602
|
}
|
|
3603
|
-
return e.registerAnimation = l, e.loadAnimation = b, e.setSpeed =
|
|
3603
|
+
return e.registerAnimation = l, e.loadAnimation = b, e.setSpeed = C, e.setDirection = y, e.play = A, e.pause = d, e.stop = T, e.togglePause = E, e.searchAnimations = V, e.resize = B, e.goToAndStop = S, e.destroy = _, e.freeze = Z, e.unfreeze = D, e.setVolume = X, e.mute = q, e.unmute = N, e.getRegisteredAnimations = f, e;
|
|
3604
3604
|
}(), BezierFactory = function() {
|
|
3605
3605
|
var e = {};
|
|
3606
3606
|
e.getBezierEasing = i;
|
|
3607
3607
|
var t = {};
|
|
3608
|
-
function i(
|
|
3609
|
-
var _ = E || ("bez_" +
|
|
3608
|
+
function i(x, d, S, T, E) {
|
|
3609
|
+
var _ = E || ("bez_" + x + "_" + d + "_" + S + "_" + T).replace(/\./g, "p");
|
|
3610
3610
|
if (t[_])
|
|
3611
3611
|
return t[_];
|
|
3612
|
-
var V = new g([
|
|
3612
|
+
var V = new g([x, d, S, T]);
|
|
3613
3613
|
return t[_] = V, V;
|
|
3614
3614
|
}
|
|
3615
3615
|
var n = 4, s = 1e-3, a = 1e-7, o = 10, c = 11, l = 1 / (c - 1), f = typeof Float32Array == "function";
|
|
3616
|
-
function u(
|
|
3617
|
-
return 1 - 3 * d + 3 *
|
|
3616
|
+
function u(x, d) {
|
|
3617
|
+
return 1 - 3 * d + 3 * x;
|
|
3618
3618
|
}
|
|
3619
|
-
function m(
|
|
3620
|
-
return 3 * d - 6 *
|
|
3619
|
+
function m(x, d) {
|
|
3620
|
+
return 3 * d - 6 * x;
|
|
3621
3621
|
}
|
|
3622
|
-
function p(
|
|
3623
|
-
return 3 *
|
|
3622
|
+
function p(x) {
|
|
3623
|
+
return 3 * x;
|
|
3624
3624
|
}
|
|
3625
|
-
function b(
|
|
3626
|
-
return ((u(d, S) *
|
|
3625
|
+
function b(x, d, S) {
|
|
3626
|
+
return ((u(d, S) * x + m(d, S)) * x + p(d)) * x;
|
|
3627
3627
|
}
|
|
3628
|
-
function x
|
|
3629
|
-
return 3 * u(d, S) *
|
|
3628
|
+
function C(x, d, S) {
|
|
3629
|
+
return 3 * u(d, S) * x * x + 2 * m(d, S) * x + p(d);
|
|
3630
3630
|
}
|
|
3631
|
-
function y(
|
|
3631
|
+
function y(x, d, S, T, E) {
|
|
3632
3632
|
var _, V, B = 0;
|
|
3633
3633
|
do
|
|
3634
|
-
V = d + (S - d) / 2, _ = b(V, T, E) -
|
|
3634
|
+
V = d + (S - d) / 2, _ = b(V, T, E) - x, _ > 0 ? S = V : d = V;
|
|
3635
3635
|
while (Math.abs(_) > a && ++B < o);
|
|
3636
3636
|
return V;
|
|
3637
3637
|
}
|
|
3638
|
-
function A(
|
|
3638
|
+
function A(x, d, S, T) {
|
|
3639
3639
|
for (var E = 0; E < n; ++E) {
|
|
3640
|
-
var _ =
|
|
3640
|
+
var _ = C(d, S, T);
|
|
3641
3641
|
if (_ === 0) return d;
|
|
3642
|
-
var V = b(d, S, T) -
|
|
3642
|
+
var V = b(d, S, T) - x;
|
|
3643
3643
|
d -= V / _;
|
|
3644
3644
|
}
|
|
3645
3645
|
return d;
|
|
3646
3646
|
}
|
|
3647
|
-
function g(
|
|
3648
|
-
this._p =
|
|
3647
|
+
function g(x) {
|
|
3648
|
+
this._p = x, this._mSampleValues = f ? new Float32Array(c) : new Array(c), this._precomputed = !1, this.get = this.get.bind(this);
|
|
3649
3649
|
}
|
|
3650
3650
|
return g.prototype = {
|
|
3651
3651
|
get: function(d) {
|
|
@@ -3668,7 +3668,7 @@ var lottie$1 = { exports: {} };
|
|
|
3668
3668
|
for (var S = this._p[0], T = this._p[2], E = this._mSampleValues, _ = 0, V = 1, B = c - 1; V !== B && E[V] <= d; ++V)
|
|
3669
3669
|
_ += l;
|
|
3670
3670
|
--V;
|
|
3671
|
-
var $ = (d - E[V]) / (E[V + 1] - E[V]), Z = _ + $ * l, D =
|
|
3671
|
+
var $ = (d - E[V]) / (E[V + 1] - E[V]), Z = _ + $ * l, D = C(Z, S, T);
|
|
3672
3672
|
return D >= s ? A(d, Z, S, T) : D === 0 ? Z : y(d, _, _ + l, S, T);
|
|
3673
3673
|
}
|
|
3674
3674
|
}, e;
|
|
@@ -3720,32 +3720,32 @@ var lottie$1 = { exports: {} };
|
|
|
3720
3720
|
}();
|
|
3721
3721
|
function bezFunction() {
|
|
3722
3722
|
var e = Math;
|
|
3723
|
-
function t(p, b,
|
|
3724
|
-
var
|
|
3725
|
-
return
|
|
3726
|
-
}
|
|
3727
|
-
function i(p, b,
|
|
3728
|
-
if (
|
|
3729
|
-
return t(p, b, y, A,
|
|
3730
|
-
var T = e.sqrt(e.pow(y - p, 2) + e.pow(A - b, 2) + e.pow(g -
|
|
3723
|
+
function t(p, b, C, y, A, g) {
|
|
3724
|
+
var x = p * y + b * A + C * g - A * y - g * p - C * b;
|
|
3725
|
+
return x > -1e-3 && x < 1e-3;
|
|
3726
|
+
}
|
|
3727
|
+
function i(p, b, C, y, A, g, x, d, S) {
|
|
3728
|
+
if (C === 0 && g === 0 && S === 0)
|
|
3729
|
+
return t(p, b, y, A, x, d);
|
|
3730
|
+
var T = e.sqrt(e.pow(y - p, 2) + e.pow(A - b, 2) + e.pow(g - C, 2)), E = e.sqrt(e.pow(x - p, 2) + e.pow(d - b, 2) + e.pow(S - C, 2)), _ = e.sqrt(e.pow(x - y, 2) + e.pow(d - A, 2) + e.pow(S - g, 2)), V;
|
|
3731
3731
|
return T > E ? T > _ ? V = T - E - _ : V = _ - E - T : _ > E ? V = _ - E - T : V = E - T - _, V > -1e-4 && V < 1e-4;
|
|
3732
3732
|
}
|
|
3733
3733
|
var n = /* @__PURE__ */ function() {
|
|
3734
|
-
return function(p, b,
|
|
3735
|
-
var A = getDefaultCurveSegments(), g,
|
|
3736
|
-
for (d =
|
|
3737
|
-
for (T = g / (A - 1), _ = 0,
|
|
3738
|
-
S = bmPow(1 - T, 3) * p[
|
|
3734
|
+
return function(p, b, C, y) {
|
|
3735
|
+
var A = getDefaultCurveSegments(), g, x, d, S, T, E = 0, _, V = [], B = [], $ = bezierLengthPool.newElement();
|
|
3736
|
+
for (d = C.length, g = 0; g < A; g += 1) {
|
|
3737
|
+
for (T = g / (A - 1), _ = 0, x = 0; x < d; x += 1)
|
|
3738
|
+
S = bmPow(1 - T, 3) * p[x] + 3 * bmPow(1 - T, 2) * T * C[x] + 3 * (1 - T) * bmPow(T, 2) * y[x] + bmPow(T, 3) * b[x], V[x] = S, B[x] !== null && (_ += bmPow(V[x] - B[x], 2)), B[x] = V[x];
|
|
3739
3739
|
_ && (_ = bmSqrt(_), E += _), $.percents[g] = T, $.lengths[g] = E;
|
|
3740
3740
|
}
|
|
3741
3741
|
return $.addedLength = E, $;
|
|
3742
3742
|
};
|
|
3743
3743
|
}();
|
|
3744
3744
|
function s(p) {
|
|
3745
|
-
var b = segmentsLengthPool.newElement(),
|
|
3746
|
-
for (
|
|
3747
|
-
S[
|
|
3748
|
-
return
|
|
3745
|
+
var b = segmentsLengthPool.newElement(), C = p.c, y = p.v, A = p.o, g = p.i, x, d = p._length, S = b.lengths, T = 0;
|
|
3746
|
+
for (x = 0; x < d - 1; x += 1)
|
|
3747
|
+
S[x] = n(y[x], y[x + 1], A[x], g[x + 1]), T += S[x].addedLength;
|
|
3748
|
+
return C && d && (S[x] = n(y[x], y[0], A[x], g[0]), T += S[x].addedLength), b.totalLength = T, b;
|
|
3749
3749
|
}
|
|
3750
3750
|
function a(p) {
|
|
3751
3751
|
this.segmentLength = 0, this.points = new Array(p);
|
|
@@ -3755,15 +3755,15 @@ var lottie$1 = { exports: {} };
|
|
|
3755
3755
|
}
|
|
3756
3756
|
var c = /* @__PURE__ */ function() {
|
|
3757
3757
|
var p = {};
|
|
3758
|
-
return function(b,
|
|
3759
|
-
var g = (b[0] + "_" + b[1] + "_" +
|
|
3758
|
+
return function(b, C, y, A) {
|
|
3759
|
+
var g = (b[0] + "_" + b[1] + "_" + C[0] + "_" + C[1] + "_" + y[0] + "_" + y[1] + "_" + A[0] + "_" + A[1]).replace(/\./g, "p");
|
|
3760
3760
|
if (!p[g]) {
|
|
3761
|
-
var
|
|
3762
|
-
b.length === 2 && (b[0] !==
|
|
3763
|
-
var D = new a(
|
|
3764
|
-
for (T = y.length, d = 0; d <
|
|
3765
|
-
for ($ = createSizedArray(T), _ = d / (
|
|
3766
|
-
E = bmPow(1 - _, 3) * b[S] + 3 * bmPow(1 - _, 2) * _ * (b[S] + y[S]) + 3 * (1 - _) * bmPow(_, 2) * (
|
|
3761
|
+
var x = getDefaultCurveSegments(), d, S, T, E, _, V = 0, B, $, Z = null;
|
|
3762
|
+
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] + A[0], C[1] + A[1]) && (x = 2);
|
|
3763
|
+
var D = new a(x);
|
|
3764
|
+
for (T = y.length, d = 0; d < x; d += 1) {
|
|
3765
|
+
for ($ = createSizedArray(T), _ = d / (x - 1), B = 0, S = 0; S < T; S += 1)
|
|
3766
|
+
E = bmPow(1 - _, 3) * b[S] + 3 * bmPow(1 - _, 2) * _ * (b[S] + y[S]) + 3 * (1 - _) * bmPow(_, 2) * (C[S] + A[S]) + bmPow(_, 3) * C[S], $[S] = E, Z !== null && (B += bmPow($[S] - Z[S], 2));
|
|
3767
3767
|
B = bmSqrt(B), V += B, D.points[d] = new o(B, $), Z = $;
|
|
3768
3768
|
}
|
|
3769
3769
|
D.segmentLength = V, p[g] = D;
|
|
@@ -3772,29 +3772,29 @@ var lottie$1 = { exports: {} };
|
|
|
3772
3772
|
};
|
|
3773
3773
|
}();
|
|
3774
3774
|
function l(p, b) {
|
|
3775
|
-
var
|
|
3776
|
-
if (g === A - 1 || g === 0 ||
|
|
3777
|
-
return
|
|
3778
|
-
for (var S = y[g] >
|
|
3779
|
-
if (y[g] <=
|
|
3775
|
+
var C = b.percents, y = b.lengths, A = C.length, g = bmFloor((A - 1) * p), x = p * b.addedLength, d = 0;
|
|
3776
|
+
if (g === A - 1 || g === 0 || x === y[g])
|
|
3777
|
+
return C[g];
|
|
3778
|
+
for (var S = y[g] > x ? -1 : 1, T = !0; T; )
|
|
3779
|
+
if (y[g] <= x && y[g + 1] > x ? (d = (x - y[g]) / (y[g + 1] - y[g]), T = !1) : g += S, g < 0 || g >= A - 1) {
|
|
3780
3780
|
if (g === A - 1)
|
|
3781
|
-
return
|
|
3781
|
+
return C[g];
|
|
3782
3782
|
T = !1;
|
|
3783
3783
|
}
|
|
3784
|
-
return
|
|
3784
|
+
return C[g] + (C[g + 1] - C[g]) * d;
|
|
3785
3785
|
}
|
|
3786
|
-
function f(p, b,
|
|
3787
|
-
var
|
|
3786
|
+
function f(p, b, C, y, A, g) {
|
|
3787
|
+
var x = l(A, g), d = 1 - x, S = e.round((d * d * d * p[0] + (x * d * d + d * x * d + d * d * x) * C[0] + (x * x * d + d * x * x + x * d * x) * y[0] + x * x * x * b[0]) * 1e3) / 1e3, T = e.round((d * d * d * p[1] + (x * d * d + d * x * d + d * d * x) * C[1] + (x * x * d + d * x * x + x * d * x) * y[1] + x * x * x * b[1]) * 1e3) / 1e3;
|
|
3788
3788
|
return [S, T];
|
|
3789
3789
|
}
|
|
3790
3790
|
var u = createTypedArray("float32", 8);
|
|
3791
|
-
function m(p, b,
|
|
3791
|
+
function m(p, b, C, y, A, g, x) {
|
|
3792
3792
|
A < 0 ? A = 0 : A > 1 && (A = 1);
|
|
3793
|
-
var d = l(A,
|
|
3793
|
+
var d = l(A, x);
|
|
3794
3794
|
g = g > 1 ? 1 : g;
|
|
3795
|
-
var S = l(g,
|
|
3795
|
+
var S = l(g, x), T, E = p.length, _ = 1 - d, V = 1 - S, B = _ * _ * _, $ = d * _ * _ * 3, Z = d * d * _ * 3, D = d * d * d, X = _ * _ * V, q = d * _ * V + _ * d * V + _ * _ * S, N = d * d * V + _ * d * S + d * _ * S, L = d * d * S, k = _ * V * V, P = d * V * V + _ * S * V + _ * V * S, M = d * S * V + _ * S * S + d * V * S, R = d * S * S, I = V * V * V, G = S * V * V + V * S * V + V * V * S, U = S * S * V + V * S * S + S * V * S, K = S * S * S;
|
|
3796
3796
|
for (T = 0; T < E; T += 1)
|
|
3797
|
-
u[T * 4] = e.round((B * p[T] + $ *
|
|
3797
|
+
u[T * 4] = e.round((B * p[T] + $ * C[T] + Z * y[T] + D * b[T]) * 1e3) / 1e3, u[T * 4 + 1] = e.round((X * p[T] + q * C[T] + N * y[T] + L * b[T]) * 1e3) / 1e3, u[T * 4 + 2] = e.round((k * p[T] + P * C[T] + M * y[T] + R * b[T]) * 1e3) / 1e3, u[T * 4 + 3] = e.round((I * p[T] + G * C[T] + U * y[T] + K * b[T]) * 1e3) / 1e3;
|
|
3798
3798
|
return u;
|
|
3799
3799
|
}
|
|
3800
3800
|
return {
|
|
@@ -3822,18 +3822,18 @@ var lottie$1 = { exports: {} };
|
|
|
3822
3822
|
a < o - 1 ? a += 1 : (s = 0, c = !1);
|
|
3823
3823
|
}
|
|
3824
3824
|
u = this.keyframesMetadata[a] || {};
|
|
3825
|
-
var m, p, b,
|
|
3825
|
+
var m, p, b, C, y, A, g = f.t - i, x = l.t - i, d;
|
|
3826
3826
|
if (l.to) {
|
|
3827
3827
|
u.bezierData || (u.bezierData = bez.buildBezierData(l.s, f.s || l.e, l.to, l.ti));
|
|
3828
3828
|
var S = u.bezierData;
|
|
3829
|
-
if (e >= g || e <
|
|
3829
|
+
if (e >= g || e < x) {
|
|
3830
3830
|
var T = e >= g ? S.points.length - 1 : 0;
|
|
3831
3831
|
for (p = S.points[T].point.length, m = 0; m < p; m += 1)
|
|
3832
3832
|
n[m] = S.points[T].point[m];
|
|
3833
3833
|
} else {
|
|
3834
|
-
u.__fnct ? A = u.__fnct : (A = BezierFactory.getBezierEasing(l.o.x, l.o.y, l.i.x, l.i.y, l.n).get, u.__fnct = A), b = A((e -
|
|
3834
|
+
u.__fnct ? A = u.__fnct : (A = BezierFactory.getBezierEasing(l.o.x, l.o.y, l.i.x, l.i.y, l.n).get, u.__fnct = A), b = A((e - x) / (g - x));
|
|
3835
3835
|
var E = S.segmentLength * b, _, V = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastAddedLength : 0;
|
|
3836
|
-
for (y = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastPoint : 0, c = !0,
|
|
3836
|
+
for (y = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastPoint : 0, c = !0, C = S.points.length; c; ) {
|
|
3837
3837
|
if (V += S.points[y].partialLength, E === 0 || b === 0 || y === S.points.length - 1) {
|
|
3838
3838
|
for (p = S.points[y].point.length, m = 0; m < p; m += 1)
|
|
3839
3839
|
n[m] = S.points[y].point[m];
|
|
@@ -3843,7 +3843,7 @@ var lottie$1 = { exports: {} };
|
|
|
3843
3843
|
n[m] = S.points[y].point[m] + (S.points[y + 1].point[m] - S.points[y].point[m]) * _;
|
|
3844
3844
|
break;
|
|
3845
3845
|
}
|
|
3846
|
-
y <
|
|
3846
|
+
y < C - 1 ? y += 1 : c = !1;
|
|
3847
3847
|
}
|
|
3848
3848
|
t._lastPoint = y, t._lastAddedLength = V - S.points[y].partialLength, t._lastKeyframeIndex = a;
|
|
3849
3849
|
}
|
|
@@ -3852,21 +3852,21 @@ var lottie$1 = { exports: {} };
|
|
|
3852
3852
|
if (o = l.s.length, d = f.s || l.e, this.sh && l.h !== 1)
|
|
3853
3853
|
if (e >= g)
|
|
3854
3854
|
n[0] = d[0], n[1] = d[1], n[2] = d[2];
|
|
3855
|
-
else if (e <=
|
|
3855
|
+
else if (e <= x)
|
|
3856
3856
|
n[0] = l.s[0], n[1] = l.s[1], n[2] = l.s[2];
|
|
3857
3857
|
else {
|
|
3858
|
-
var q = createQuaternion(l.s), N = createQuaternion(d), L = (e -
|
|
3858
|
+
var q = createQuaternion(l.s), N = createQuaternion(d), L = (e - x) / (g - x);
|
|
3859
3859
|
quaternionToEuler(n, slerp(q, N, L));
|
|
3860
3860
|
}
|
|
3861
3861
|
else
|
|
3862
3862
|
for (a = 0; a < o; a += 1)
|
|
3863
|
-
l.h !== 1 && (e >= g ? b = 1 : e <
|
|
3863
|
+
l.h !== 1 && (e >= g ? b = 1 : e < x ? b = 0 : (l.o.x.constructor === Array ? (u.__fnct || (u.__fnct = []), u.__fnct[a] ? A = u.__fnct[a] : (B = l.o.x[a] === void 0 ? l.o.x[0] : l.o.x[a], $ = l.o.y[a] === void 0 ? l.o.y[0] : l.o.y[a], Z = l.i.x[a] === void 0 ? l.i.x[0] : l.i.x[a], D = l.i.y[a] === void 0 ? l.i.y[0] : l.i.y[a], A = BezierFactory.getBezierEasing(B, $, Z, D).get, u.__fnct[a] = A)) : u.__fnct ? A = u.__fnct : (B = l.o.x, $ = l.o.y, Z = l.i.x, D = l.i.y, A = BezierFactory.getBezierEasing(B, $, Z, D).get, l.keyframeMetadata = A), b = A((e - x) / (g - x)))), d = f.s || l.e, X = l.h === 1 ? l.s[a] : l.s[a] + (d[a] - l.s[a]) * b, this.propType === "multidimensional" ? n[a] = X : n = X;
|
|
3864
3864
|
}
|
|
3865
3865
|
return t.lastIndex = s, n;
|
|
3866
3866
|
}
|
|
3867
3867
|
function slerp(e, t, i) {
|
|
3868
|
-
var n = [], s = e[0], a = e[1], o = e[2], c = e[3], l = t[0], f = t[1], u = t[2], m = t[3], p, b,
|
|
3869
|
-
return b = s * l + a * f + o * u + c * m, b < 0 && (b = -b, l = -l, f = -f, u = -u, m = -m), 1 - b > 1e-6 ? (p = Math.acos(b),
|
|
3868
|
+
var n = [], s = e[0], a = e[1], o = e[2], c = e[3], l = t[0], f = t[1], u = t[2], m = t[3], p, b, C, y, A;
|
|
3869
|
+
return b = s * l + a * f + o * u + c * m, b < 0 && (b = -b, l = -l, f = -f, u = -u, m = -m), 1 - b > 1e-6 ? (p = Math.acos(b), C = Math.sin(p), y = Math.sin((1 - i) * p) / C, A = Math.sin(i * p) / C) : (y = 1 - i, A = i), n[0] = y * s + A * l, n[1] = y * a + A * f, n[2] = y * o + A * u, n[3] = y * c + A * m, n;
|
|
3870
3870
|
}
|
|
3871
3871
|
function quaternionToEuler(e, t) {
|
|
3872
3872
|
var i = t[0], n = t[1], s = t[2], a = t[3], o = Math.atan2(2 * n * a - 2 * i * s, 1 - 2 * n * n - 2 * s * s), c = Math.asin(2 * i * n + 2 * s * a), l = Math.atan2(2 * i * a - 2 * n * s, 1 - 2 * i * i - 2 * s * s);
|
|
@@ -4080,7 +4080,7 @@ var lottie$1 = { exports: {} };
|
|
|
4080
4080
|
return e;
|
|
4081
4081
|
}(), ShapePropertyFactory = function() {
|
|
4082
4082
|
var e = -999999;
|
|
4083
|
-
function t(g,
|
|
4083
|
+
function t(g, x, d) {
|
|
4084
4084
|
var S = d.lastIndex, T, E, _, V, B, $, Z, D, X, q = this.keyframes;
|
|
4085
4085
|
if (g < q[0].t - this.offsetTime)
|
|
4086
4086
|
T = q[0].s[0], _ = !0, S = 0;
|
|
@@ -4102,23 +4102,23 @@ var lottie$1 = { exports: {} };
|
|
|
4102
4102
|
}
|
|
4103
4103
|
T = P.s[0];
|
|
4104
4104
|
}
|
|
4105
|
-
for ($ =
|
|
4105
|
+
for ($ = x._length, Z = T.i[0].length, d.lastIndex = S, V = 0; V < $; V += 1)
|
|
4106
4106
|
for (B = 0; B < Z; B += 1)
|
|
4107
|
-
X = _ ? T.i[V][B] : T.i[V][B] + (E.i[V][B] - T.i[V][B]) * D,
|
|
4107
|
+
X = _ ? T.i[V][B] : T.i[V][B] + (E.i[V][B] - T.i[V][B]) * D, x.i[V][B] = X, X = _ ? T.o[V][B] : T.o[V][B] + (E.o[V][B] - T.o[V][B]) * D, x.o[V][B] = X, X = _ ? T.v[V][B] : T.v[V][B] + (E.v[V][B] - T.v[V][B]) * D, x.v[V][B] = X;
|
|
4108
4108
|
}
|
|
4109
4109
|
function i() {
|
|
4110
|
-
var g = this.comp.renderedFrame - this.offsetTime,
|
|
4111
|
-
return S !== e && (S <
|
|
4110
|
+
var g = this.comp.renderedFrame - this.offsetTime, x = this.keyframes[0].t - this.offsetTime, d = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, S = this._caching.lastFrame;
|
|
4111
|
+
return S !== e && (S < x && g < x || S > d && g > d) || (this._caching.lastIndex = S < g ? this._caching.lastIndex : 0, this.interpolateShape(g, this.pv, this._caching)), this._caching.lastFrame = g, this.pv;
|
|
4112
4112
|
}
|
|
4113
4113
|
function n() {
|
|
4114
4114
|
this.paths = this.localShapeCollection;
|
|
4115
4115
|
}
|
|
4116
|
-
function s(g,
|
|
4117
|
-
if (g._length !==
|
|
4116
|
+
function s(g, x) {
|
|
4117
|
+
if (g._length !== x._length || g.c !== x.c)
|
|
4118
4118
|
return !1;
|
|
4119
4119
|
var d, S = g._length;
|
|
4120
4120
|
for (d = 0; d < S; d += 1)
|
|
4121
|
-
if (g.v[d][0] !==
|
|
4121
|
+
if (g.v[d][0] !== x.v[d][0] || g.v[d][1] !== x.v[d][1] || g.o[d][0] !== x.o[d][0] || g.o[d][1] !== x.o[d][1] || g.i[d][0] !== x.i[d][0] || g.i[d][1] !== x.i[d][1])
|
|
4122
4122
|
return !1;
|
|
4123
4123
|
return !0;
|
|
4124
4124
|
}
|
|
@@ -4138,23 +4138,23 @@ var lottie$1 = { exports: {} };
|
|
|
4138
4138
|
this.lock = !0, this._mdf = !1;
|
|
4139
4139
|
var g;
|
|
4140
4140
|
this.kf ? g = this.pv : this.data.ks ? g = this.data.ks.k : g = this.data.pt.k;
|
|
4141
|
-
var
|
|
4142
|
-
for (
|
|
4143
|
-
g = this.effectsSequence[
|
|
4141
|
+
var x, d = this.effectsSequence.length;
|
|
4142
|
+
for (x = 0; x < d; x += 1)
|
|
4143
|
+
g = this.effectsSequence[x](g);
|
|
4144
4144
|
this.setVValue(g), this.lock = !1, this.frameId = this.elem.globalData.frameId;
|
|
4145
4145
|
}
|
|
4146
4146
|
}
|
|
4147
|
-
function c(g,
|
|
4148
|
-
this.propType = "shape", this.comp = g.comp, this.container = g, this.elem = g, this.data =
|
|
4149
|
-
var S = d === 3 ?
|
|
4147
|
+
function c(g, x, d) {
|
|
4148
|
+
this.propType = "shape", this.comp = g.comp, this.container = g, this.elem = g, this.data = x, this.k = !1, this.kf = !1, this._mdf = !1;
|
|
4149
|
+
var S = d === 3 ? x.pt.k : x.ks.k;
|
|
4150
4150
|
this.v = shapePool.clone(S), this.pv = shapePool.clone(this.v), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = n, this.effectsSequence = [];
|
|
4151
4151
|
}
|
|
4152
4152
|
function l(g) {
|
|
4153
4153
|
this.effectsSequence.push(g), this.container.addDynamicProperty(this);
|
|
4154
4154
|
}
|
|
4155
4155
|
c.prototype.interpolateShape = t, c.prototype.getValue = o, c.prototype.setVValue = a, c.prototype.addEffect = l;
|
|
4156
|
-
function f(g,
|
|
4157
|
-
this.propType = "shape", this.comp = g.comp, this.elem = g, this.container = g, this.offsetTime = g.data.st, this.keyframes = d === 3 ?
|
|
4156
|
+
function f(g, x, d) {
|
|
4157
|
+
this.propType = "shape", this.comp = g.comp, this.elem = g, this.container = g, this.offsetTime = g.data.st, this.keyframes = d === 3 ? x.pt.k : x.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
|
|
4158
4158
|
var S = this.keyframes[0].s[0].i.length;
|
|
4159
4159
|
this.v = shapePool.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, S), this.pv = shapePool.clone(this.v), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = e, this.reset = n, this._caching = {
|
|
4160
4160
|
lastFrame: e,
|
|
@@ -4164,10 +4164,10 @@ var lottie$1 = { exports: {} };
|
|
|
4164
4164
|
f.prototype.getValue = o, f.prototype.interpolateShape = t, f.prototype.setVValue = a, f.prototype.addEffect = l;
|
|
4165
4165
|
var u = function() {
|
|
4166
4166
|
var g = roundCorner;
|
|
4167
|
-
function
|
|
4167
|
+
function x(d, S) {
|
|
4168
4168
|
this.v = shapePool.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = S.d, this.elem = d, this.comp = d.comp, this.frameId = -1, this.initDynamicPropertyContainer(d), this.p = PropertyFactory.getProp(d, S.p, 1, 0, this), this.s = PropertyFactory.getProp(d, S.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath());
|
|
4169
4169
|
}
|
|
4170
|
-
return
|
|
4170
|
+
return x.prototype = {
|
|
4171
4171
|
reset: n,
|
|
4172
4172
|
getValue: function() {
|
|
4173
4173
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
|
|
@@ -4176,10 +4176,10 @@ var lottie$1 = { exports: {} };
|
|
|
4176
4176
|
var S = this.p.v[0], T = this.p.v[1], E = this.s.v[0] / 2, _ = this.s.v[1] / 2, V = this.d !== 3, B = this.v;
|
|
4177
4177
|
B.v[0][0] = S, B.v[0][1] = T - _, B.v[1][0] = V ? S + E : S - E, B.v[1][1] = T, B.v[2][0] = S, B.v[2][1] = T + _, B.v[3][0] = V ? S - E : S + E, B.v[3][1] = T, B.i[0][0] = V ? S - E * g : S + E * g, B.i[0][1] = T - _, B.i[1][0] = V ? S + E : S - E, B.i[1][1] = T - _ * g, B.i[2][0] = V ? S + E * g : S - E * g, B.i[2][1] = T + _, B.i[3][0] = V ? S - E : S + E, B.i[3][1] = T + _ * g, B.o[0][0] = V ? S + E * g : S - E * g, B.o[0][1] = T - _, B.o[1][0] = V ? S + E : S - E, B.o[1][1] = T + _ * g, B.o[2][0] = V ? S - E * g : S + E * g, B.o[2][1] = T + _, B.o[3][0] = V ? S - E : S + E, B.o[3][1] = T - _ * g;
|
|
4178
4178
|
}
|
|
4179
|
-
}, extendPrototype([DynamicPropertyContainer],
|
|
4179
|
+
}, extendPrototype([DynamicPropertyContainer], x), x;
|
|
4180
4180
|
}(), m = function() {
|
|
4181
|
-
function g(
|
|
4182
|
-
this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem =
|
|
4181
|
+
function g(x, d) {
|
|
4182
|
+
this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem = x, this.comp = x.comp, this.data = d, this.frameId = -1, this.d = d.d, this.initDynamicPropertyContainer(x), d.sy === 1 ? (this.ir = PropertyFactory.getProp(x, d.ir, 0, 0, this), this.is = PropertyFactory.getProp(x, d.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = PropertyFactory.getProp(x, d.pt, 0, 0, this), this.p = PropertyFactory.getProp(x, d.p, 1, 0, this), this.r = PropertyFactory.getProp(x, d.r, 0, degToRads, this), this.or = PropertyFactory.getProp(x, d.or, 0, 0, this), this.os = PropertyFactory.getProp(x, d.os, 0, 0.01, this), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath());
|
|
4183
4183
|
}
|
|
4184
4184
|
return g.prototype = {
|
|
4185
4185
|
reset: n,
|
|
@@ -4206,8 +4206,8 @@ var lottie$1 = { exports: {} };
|
|
|
4206
4206
|
}
|
|
4207
4207
|
}, extendPrototype([DynamicPropertyContainer], g), g;
|
|
4208
4208
|
}(), p = function() {
|
|
4209
|
-
function g(
|
|
4210
|
-
this.v = shapePool.newElement(), this.v.c = !0, this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem =
|
|
4209
|
+
function g(x, d) {
|
|
4210
|
+
this.v = shapePool.newElement(), this.v.c = !0, this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = x, this.comp = x.comp, this.frameId = -1, this.d = d.d, this.initDynamicPropertyContainer(x), this.p = PropertyFactory.getProp(x, d.p, 1, 0, this), this.s = PropertyFactory.getProp(x, d.s, 1, 0, this), this.r = PropertyFactory.getProp(x, d.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath());
|
|
4211
4211
|
}
|
|
4212
4212
|
return g.prototype = {
|
|
4213
4213
|
convertRectToPath: function() {
|
|
@@ -4220,22 +4220,22 @@ var lottie$1 = { exports: {} };
|
|
|
4220
4220
|
reset: n
|
|
4221
4221
|
}, extendPrototype([DynamicPropertyContainer], g), g;
|
|
4222
4222
|
}();
|
|
4223
|
-
function b(g,
|
|
4223
|
+
function b(g, x, d) {
|
|
4224
4224
|
var S;
|
|
4225
4225
|
if (d === 3 || d === 4) {
|
|
4226
|
-
var T = d === 3 ?
|
|
4227
|
-
E.length ? S = new f(g,
|
|
4228
|
-
} else d === 5 ? S = new p(g,
|
|
4226
|
+
var T = d === 3 ? x.pt : x.ks, E = T.k;
|
|
4227
|
+
E.length ? S = new f(g, x, d) : S = new c(g, x, d);
|
|
4228
|
+
} else d === 5 ? S = new p(g, x) : d === 6 ? S = new u(g, x) : d === 7 && (S = new m(g, x));
|
|
4229
4229
|
return S.k && g.addDynamicProperty(S), S;
|
|
4230
4230
|
}
|
|
4231
|
-
function
|
|
4231
|
+
function C() {
|
|
4232
4232
|
return c;
|
|
4233
4233
|
}
|
|
4234
4234
|
function y() {
|
|
4235
4235
|
return f;
|
|
4236
4236
|
}
|
|
4237
4237
|
var A = {};
|
|
4238
|
-
return A.getShapeProp = b, A.getConstructorFunction =
|
|
4238
|
+
return A.getShapeProp = b, A.getConstructorFunction = C, A.getKeyframedConstructorFunction = y, A;
|
|
4239
4239
|
}();
|
|
4240
4240
|
/*!
|
|
4241
4241
|
Transformation Matrix v2.0
|
|
@@ -4290,7 +4290,7 @@ var lottie$1 = { exports: {} };
|
|
|
4290
4290
|
function b(P, M, R, I, G, U, K, J, re, le, fe, pe, ue, ne, oe, te) {
|
|
4291
4291
|
return this.props[0] = P, this.props[1] = M, this.props[2] = R, this.props[3] = I, this.props[4] = G, this.props[5] = U, this.props[6] = K, this.props[7] = J, this.props[8] = re, this.props[9] = le, this.props[10] = fe, this.props[11] = pe, this.props[12] = ue, this.props[13] = ne, this.props[14] = oe, this.props[15] = te, this;
|
|
4292
4292
|
}
|
|
4293
|
-
function
|
|
4293
|
+
function C(P, M, R) {
|
|
4294
4294
|
return R = R || 0, P !== 0 || M !== 0 || R !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, P, M, R, 1) : this;
|
|
4295
4295
|
}
|
|
4296
4296
|
function y(P, M, R, I, G, U, K, J, re, le, fe, pe, ue, ne, oe, te) {
|
|
@@ -4307,7 +4307,7 @@ var lottie$1 = { exports: {} };
|
|
|
4307
4307
|
function g() {
|
|
4308
4308
|
return this._identityCalculated || (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), this._identityCalculated = !0), this._identity;
|
|
4309
4309
|
}
|
|
4310
|
-
function
|
|
4310
|
+
function x(P) {
|
|
4311
4311
|
for (var M = 0; M < 16; ) {
|
|
4312
4312
|
if (P.props[M] !== this.props[M])
|
|
4313
4313
|
return !1;
|
|
@@ -4390,7 +4390,7 @@ var lottie$1 = { exports: {} };
|
|
|
4390
4390
|
return "matrix(" + M + "," + R + "," + I + "," + G + "," + U + "," + K + ")";
|
|
4391
4391
|
}
|
|
4392
4392
|
return function() {
|
|
4393
|
-
this.reset = s, this.rotate = a, this.rotateX = o, this.rotateY = c, this.rotateZ = l, this.skew = u, this.skewFromAxis = m, this.shear = f, this.scale = p, this.setTransform = b, this.translate =
|
|
4393
|
+
this.reset = s, this.rotate = a, this.rotateX = o, this.rotateY = c, this.rotateZ = l, this.skew = u, this.skewFromAxis = m, this.shear = f, this.scale = p, this.setTransform = b, this.translate = C, this.transform = y, this.multiply = A, this.applyToPoint = T, this.applyToX = E, this.applyToY = _, this.applyToZ = V, this.applyToPointArray = X, this.applyToTriplePoints = D, this.applyToPointStringified = q, this.toCSS = N, this.to2dCSS = k, this.clone = d, this.cloneFromProps = S, this.equals = x, this.inversePoints = Z, this.inversePoint = $, this.getInverseMatrix = B, this._t = this.transform, this.isIdentity = g, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
4394
4394
|
};
|
|
4395
4395
|
}();
|
|
4396
4396
|
function _typeof$3(e) {
|
|
@@ -4558,7 +4558,7 @@ var lottie$1 = { exports: {} };
|
|
|
4558
4558
|
for (o = 0; o < c; o += 1)
|
|
4559
4559
|
this.shapes[o].pathsData.length = 0, this.shapes[o].shape._mdf = !0;
|
|
4560
4560
|
} else {
|
|
4561
|
-
var
|
|
4561
|
+
var C = [], y, A;
|
|
4562
4562
|
for (o = 0; o < c; o += 1)
|
|
4563
4563
|
if (y = this.shapes[o], !y.shape._mdf && !this._mdf && !e && this.m !== 2)
|
|
4564
4564
|
y.shape.paths = y.localShapeCollection;
|
|
@@ -4572,32 +4572,32 @@ var lottie$1 = { exports: {} };
|
|
|
4572
4572
|
}
|
|
4573
4573
|
b += p, y.shape._mdf = !0;
|
|
4574
4574
|
}
|
|
4575
|
-
var g = t,
|
|
4575
|
+
var g = t, x = i, d = 0, S;
|
|
4576
4576
|
for (o = c - 1; o >= 0; o -= 1)
|
|
4577
4577
|
if (y = this.shapes[o], y.shape._mdf) {
|
|
4578
|
-
for (A = y.localShapeCollection, A.releaseShapes(), this.m === 2 && c > 1 ? (S = this.calculateShapeEdges(t, i, y.totalShapeLength, d, b), d += y.totalShapeLength) : S = [[g,
|
|
4579
|
-
g = S[l][0],
|
|
4578
|
+
for (A = y.localShapeCollection, A.releaseShapes(), this.m === 2 && c > 1 ? (S = this.calculateShapeEdges(t, i, y.totalShapeLength, d, b), d += y.totalShapeLength) : S = [[g, x]], f = S.length, l = 0; l < f; l += 1) {
|
|
4579
|
+
g = S[l][0], x = S[l][1], C.length = 0, x <= 1 ? C.push({
|
|
4580
4580
|
s: y.totalShapeLength * g,
|
|
4581
|
-
e: y.totalShapeLength *
|
|
4582
|
-
}) : g >= 1 ?
|
|
4581
|
+
e: y.totalShapeLength * x
|
|
4582
|
+
}) : g >= 1 ? C.push({
|
|
4583
4583
|
s: y.totalShapeLength * (g - 1),
|
|
4584
|
-
e: y.totalShapeLength * (
|
|
4585
|
-
}) : (
|
|
4584
|
+
e: y.totalShapeLength * (x - 1)
|
|
4585
|
+
}) : (C.push({
|
|
4586
4586
|
s: y.totalShapeLength * g,
|
|
4587
4587
|
e: y.totalShapeLength
|
|
4588
|
-
}),
|
|
4588
|
+
}), C.push({
|
|
4589
4589
|
s: 0,
|
|
4590
|
-
e: y.totalShapeLength * (
|
|
4590
|
+
e: y.totalShapeLength * (x - 1)
|
|
4591
4591
|
}));
|
|
4592
|
-
var T = this.addShapes(y,
|
|
4593
|
-
if (
|
|
4594
|
-
if (
|
|
4592
|
+
var T = this.addShapes(y, C[0]);
|
|
4593
|
+
if (C[0].s !== C[0].e) {
|
|
4594
|
+
if (C.length > 1) {
|
|
4595
4595
|
var E = y.shape.paths.shapes[y.shape.paths._length - 1];
|
|
4596
4596
|
if (E.c) {
|
|
4597
4597
|
var _ = T.pop();
|
|
4598
|
-
this.addPaths(T, A), T = this.addShapes(y,
|
|
4598
|
+
this.addPaths(T, A), T = this.addShapes(y, C[1], _);
|
|
4599
4599
|
} else
|
|
4600
|
-
this.addPaths(T, A), T = this.addShapes(y,
|
|
4600
|
+
this.addPaths(T, A), T = this.addShapes(y, C[1]);
|
|
4601
4601
|
}
|
|
4602
4602
|
this.addPaths(T, A);
|
|
4603
4603
|
}
|
|
@@ -4614,8 +4614,8 @@ var lottie$1 = { exports: {} };
|
|
|
4614
4614
|
}, TrimModifier.prototype.addSegmentFromArray = function(e, t, i, n) {
|
|
4615
4615
|
t.setXYAt(e[1], e[5], "o", i), t.setXYAt(e[2], e[6], "i", i + 1), n && t.setXYAt(e[0], e[4], "v", i), t.setXYAt(e[3], e[7], "v", i + 1);
|
|
4616
4616
|
}, TrimModifier.prototype.addShapes = function(e, t, i) {
|
|
4617
|
-
var n = e.pathsData, s = e.shape.paths.shapes, a, o = e.shape.paths._length, c, l, f = 0, u, m, p, b,
|
|
4618
|
-
for (i ? (m = i._length, y = i._length) : (i = shapePool.newElement(), m = 0, y = 0),
|
|
4617
|
+
var n = e.pathsData, s = e.shape.paths.shapes, a, o = e.shape.paths._length, c, l, f = 0, u, m, p, b, C = [], y, A = !0;
|
|
4618
|
+
for (i ? (m = i._length, y = i._length) : (i = shapePool.newElement(), m = 0, y = 0), C.push(i), a = 0; a < o; a += 1) {
|
|
4619
4619
|
for (p = n[a].lengths, i.c = s[a].c, l = s[a].c ? p.length : p.length + 1, c = 1; c < l; c += 1)
|
|
4620
4620
|
if (u = p[c - 1], f + u.addedLength < t.s)
|
|
4621
4621
|
f += u.addedLength, i.c = !1;
|
|
@@ -4634,9 +4634,9 @@ var lottie$1 = { exports: {} };
|
|
|
4634
4634
|
}
|
|
4635
4635
|
if (i._length && (i.setXYAt(i.v[y][0], i.v[y][1], "i", y), i.setXYAt(i.v[i._length - 1][0], i.v[i._length - 1][1], "o", i._length - 1)), f > t.e)
|
|
4636
4636
|
break;
|
|
4637
|
-
a < o - 1 && (i = shapePool.newElement(), A = !0,
|
|
4637
|
+
a < o - 1 && (i = shapePool.newElement(), A = !0, C.push(i), m = 0);
|
|
4638
4638
|
}
|
|
4639
|
-
return
|
|
4639
|
+
return C;
|
|
4640
4640
|
};
|
|
4641
4641
|
function PuckerAndBloatModifier() {
|
|
4642
4642
|
}
|
|
@@ -4842,28 +4842,28 @@ var lottie$1 = { exports: {} };
|
|
|
4842
4842
|
a += 1;
|
|
4843
4843
|
}
|
|
4844
4844
|
this._currentCopies = c;
|
|
4845
|
-
var p = this.o.v, b = p % 1,
|
|
4845
|
+
var p = this.o.v, b = p % 1, C = p > 0 ? Math.floor(p) : Math.ceil(p), y = this.pMatrix.props, A = this.rMatrix.props, g = this.sMatrix.props;
|
|
4846
4846
|
this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
|
|
4847
|
-
var
|
|
4847
|
+
var x = 0;
|
|
4848
4848
|
if (p > 0) {
|
|
4849
|
-
for (;
|
|
4850
|
-
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1),
|
|
4851
|
-
b && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, b, !1),
|
|
4849
|
+
for (; x < C; )
|
|
4850
|
+
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), x += 1;
|
|
4851
|
+
b && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, b, !1), x += b);
|
|
4852
4852
|
} else if (p < 0) {
|
|
4853
|
-
for (;
|
|
4854
|
-
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0),
|
|
4855
|
-
b && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -b, !0),
|
|
4853
|
+
for (; x > C; )
|
|
4854
|
+
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), x -= 1;
|
|
4855
|
+
b && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -b, !0), x -= b);
|
|
4856
4856
|
}
|
|
4857
4857
|
n = this.data.m === 1 ? 0 : this._currentCopies - 1, s = this.data.m === 1 ? 1 : -1, a = this._currentCopies;
|
|
4858
4858
|
for (var d, S; a; ) {
|
|
4859
|
-
if (t = this.elemsData[n].it, i = t[t.length - 1].transform.mProps.v.props, S = i.length, t[t.length - 1].transform.mProps._mdf = !0, t[t.length - 1].transform.op._mdf = !0, t[t.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (n / (this._currentCopies - 1)),
|
|
4859
|
+
if (t = this.elemsData[n].it, i = t[t.length - 1].transform.mProps.v.props, S = i.length, t[t.length - 1].transform.mProps._mdf = !0, t[t.length - 1].transform.op._mdf = !0, t[t.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (n / (this._currentCopies - 1)), x !== 0) {
|
|
4860
4860
|
for ((n !== 0 && s === 1 || n !== this._currentCopies - 1 && s === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(A[0], A[1], A[2], A[3], A[4], A[5], A[6], A[7], A[8], A[9], A[10], A[11], A[12], A[13], A[14], A[15]), this.matrix.transform(g[0], g[1], g[2], g[3], g[4], g[5], g[6], g[7], g[8], g[9], g[10], g[11], g[12], g[13], g[14], g[15]), this.matrix.transform(y[0], y[1], y[2], y[3], y[4], y[5], y[6], y[7], y[8], y[9], y[10], y[11], y[12], y[13], y[14], y[15]), d = 0; d < S; d += 1)
|
|
4861
4861
|
i[d] = this.matrix.props[d];
|
|
4862
4862
|
this.matrix.reset();
|
|
4863
4863
|
} else
|
|
4864
4864
|
for (this.matrix.reset(), d = 0; d < S; d += 1)
|
|
4865
4865
|
i[d] = this.matrix.props[d];
|
|
4866
|
-
|
|
4866
|
+
x += 1, a -= 1, n += s;
|
|
4867
4867
|
}
|
|
4868
4868
|
} else
|
|
4869
4869
|
for (a = this._currentCopies, n = 0, s = 1; a; )
|
|
@@ -4878,9 +4878,9 @@ var lottie$1 = { exports: {} };
|
|
|
4878
4878
|
}, RoundCornersModifier.prototype.processPath = function(e, t) {
|
|
4879
4879
|
var i = shapePool.newElement();
|
|
4880
4880
|
i.c = e.c;
|
|
4881
|
-
var n, s = e._length, a, o, c, l, f, u, m = 0, p, b,
|
|
4881
|
+
var n, s = e._length, a, o, c, l, f, u, m = 0, p, b, C, y, A, g;
|
|
4882
4882
|
for (n = 0; n < s; n += 1)
|
|
4883
|
-
a = e.v[n], c = e.o[n], o = e.i[n], a[0] === c[0] && a[1] === c[1] && a[0] === o[0] && a[1] === o[1] ? (n === 0 || n === s - 1) && !e.c ? (i.setTripleAt(a[0], a[1], c[0], c[1], o[0], o[1], m), m += 1) : (n === 0 ? l = e.v[s - 1] : l = e.v[n - 1], f = Math.sqrt(Math.pow(a[0] - l[0], 2) + Math.pow(a[1] - l[1], 2)), u = f ? Math.min(f / 2, t) / f : 0, A = a[0] + (l[0] - a[0]) * u, p = A, g = a[1] - (a[1] - l[1]) * u, b = g,
|
|
4883
|
+
a = e.v[n], c = e.o[n], o = e.i[n], a[0] === c[0] && a[1] === c[1] && a[0] === o[0] && a[1] === o[1] ? (n === 0 || n === s - 1) && !e.c ? (i.setTripleAt(a[0], a[1], c[0], c[1], o[0], o[1], m), m += 1) : (n === 0 ? l = e.v[s - 1] : l = e.v[n - 1], f = Math.sqrt(Math.pow(a[0] - l[0], 2) + Math.pow(a[1] - l[1], 2)), u = f ? Math.min(f / 2, t) / f : 0, A = a[0] + (l[0] - a[0]) * u, p = A, g = a[1] - (a[1] - l[1]) * u, b = g, C = p - (p - a[0]) * roundCorner, y = b - (b - a[1]) * roundCorner, i.setTripleAt(p, b, C, y, A, g, m), m += 1, n === s - 1 ? l = e.v[0] : l = e.v[n + 1], f = Math.sqrt(Math.pow(a[0] - l[0], 2) + Math.pow(a[1] - l[1], 2)), u = f ? Math.min(f / 2, t) / f : 0, C = a[0] + (l[0] - a[0]) * u, p = C, y = a[1] + (l[1] - a[1]) * u, b = y, A = p - (p - a[0]) * roundCorner, g = b - (b - a[1]) * roundCorner, i.setTripleAt(p, b, C, y, A, g, m), m += 1) : (i.setTripleAt(e.v[n][0], e.v[n][1], e.o[n][0], e.o[n][1], e.i[n][0], e.i[n][1], m), m += 1);
|
|
4884
4884
|
return i;
|
|
4885
4885
|
}, RoundCornersModifier.prototype.processShapes = function(e) {
|
|
4886
4886
|
var t, i, n = this.shapes.length, s, a, o = this.rd.v;
|
|
@@ -5111,8 +5111,8 @@ var lottie$1 = { exports: {} };
|
|
|
5111
5111
|
var c = -t.tangentAngle(1), l = -i.tangentAngle(0) + Math.PI, f = lineIntersection(a, polarOffset(a, c + Math.PI / 2, 100), o, polarOffset(o, c + Math.PI / 2, 100)), u = f ? pointDistance(f, a) : pointDistance(a, o) / 2, m = polarOffset(a, c, 2 * u * roundCorner);
|
|
5112
5112
|
return e.setXYAt(m[0], m[1], "o", e.length() - 1), m = polarOffset(o, l, 2 * u * roundCorner), e.setTripleAt(o[0], o[1], o[0], o[1], m[0], m[1], e.length()), o;
|
|
5113
5113
|
}
|
|
5114
|
-
var p = pointEqual(a, t.points[2]) ? t.points[0] : t.points[2], b = pointEqual(o, i.points[1]) ? i.points[3] : i.points[1],
|
|
5115
|
-
return
|
|
5114
|
+
var p = pointEqual(a, t.points[2]) ? t.points[0] : t.points[2], b = pointEqual(o, i.points[1]) ? i.points[3] : i.points[1], C = lineIntersection(p, a, o, b);
|
|
5115
|
+
return C && pointDistance(C, a) < s ? (e.setTripleAt(C[0], C[1], C[0], C[1], C[0], C[1], e.length()), C) : a;
|
|
5116
5116
|
}
|
|
5117
5117
|
function getIntersection(e, t) {
|
|
5118
5118
|
var i = e.intersections(t);
|
|
@@ -5231,7 +5231,7 @@ var lottie$1 = { exports: {} };
|
|
|
5231
5231
|
parent: P
|
|
5232
5232
|
};
|
|
5233
5233
|
}
|
|
5234
|
-
function
|
|
5234
|
+
function C() {
|
|
5235
5235
|
var L, k = this.fonts.length, P, M, R = k;
|
|
5236
5236
|
for (L = 0; L < k; L += 1)
|
|
5237
5237
|
this.fonts[L].loaded ? R -= 1 : this.fonts[L].fOrigin === "n" || this.fonts[L].origin === 0 ? this.fonts[L].loaded = !0 : (P = this.fonts[L].monoCase.node, M = this.fonts[L].monoCase.w, P.offsetWidth !== M ? (R -= 1, this.fonts[L].loaded = !0) : (P = this.fonts[L].sansCase.node, M = this.fonts[L].sansCase.w, P.offsetWidth !== M && (R -= 1, this.fonts[L].loaded = !0)), this.fonts[L].loaded && (this.fonts[L].sansCase.parent.parentNode.removeChild(this.fonts[L].sansCase.parent), this.fonts[L].monoCase.parent.parentNode.removeChild(this.fonts[L].monoCase.parent)));
|
|
@@ -5308,7 +5308,7 @@ var lottie$1 = { exports: {} };
|
|
|
5308
5308
|
}
|
|
5309
5309
|
}
|
|
5310
5310
|
}
|
|
5311
|
-
function
|
|
5311
|
+
function x(L, k, P) {
|
|
5312
5312
|
for (var M = 0, R = this.chars.length; M < R; ) {
|
|
5313
5313
|
if (this.chars[M].ch === L && this.chars[M].style === k && this.chars[M].fFamily === P)
|
|
5314
5314
|
return this.chars[M];
|
|
@@ -5386,10 +5386,10 @@ var lottie$1 = { exports: {} };
|
|
|
5386
5386
|
var N = {
|
|
5387
5387
|
addChars: g,
|
|
5388
5388
|
addFonts: A,
|
|
5389
|
-
getCharData:
|
|
5389
|
+
getCharData: x,
|
|
5390
5390
|
getFontByName: S,
|
|
5391
5391
|
measureText: d,
|
|
5392
|
-
checkLoadedFonts:
|
|
5392
|
+
checkLoadedFonts: C,
|
|
5393
5393
|
setIsLoaded: X
|
|
5394
5394
|
};
|
|
5395
5395
|
return q.prototype = N, q;
|
|
@@ -5848,9 +5848,9 @@ var lottie$1 = { exports: {} };
|
|
|
5848
5848
|
this.data = e, this.element = t, this.globalData = i, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
|
|
5849
5849
|
var n = this.globalData.defs, s, a = this.masksProperties ? this.masksProperties.length : 0;
|
|
5850
5850
|
this.viewData = createSizedArray(a), this.solidPath = "";
|
|
5851
|
-
var o, c = this.masksProperties, l = 0, f = [], u, m, p = createElementID(), b,
|
|
5851
|
+
var o, c = this.masksProperties, l = 0, f = [], u, m, p = createElementID(), b, C, y, A, g = "clipPath", x = "clip-path";
|
|
5852
5852
|
for (s = 0; s < a; s += 1)
|
|
5853
|
-
if ((c[s].mode !== "a" && c[s].mode !== "n" || c[s].inv || c[s].o.k !== 100 || c[s].o.x) && (g = "mask",
|
|
5853
|
+
if ((c[s].mode !== "a" && c[s].mode !== "n" || c[s].inv || c[s].o.k !== 100 || c[s].o.x) && (g = "mask", x = "mask"), (c[s].mode === "s" || c[s].mode === "i") && l === 0 ? (b = createNS("rect"), b.setAttribute("fill", "#ffffff"), b.setAttribute("width", this.element.comp.data.w || 0), b.setAttribute("height", this.element.comp.data.h || 0), f.push(b)) : b = null, o = createNS("path"), c[s].mode === "n")
|
|
5854
5854
|
this.viewData[s] = {
|
|
5855
5855
|
op: PropertyFactory.getProp(this.element, c[s].o, 0, 0.01, this.element),
|
|
5856
5856
|
prop: ShapePropertyFactory.getShapeProp(this.element, c[s], 3),
|
|
@@ -5860,7 +5860,7 @@ var lottie$1 = { exports: {} };
|
|
|
5860
5860
|
else {
|
|
5861
5861
|
l += 1, o.setAttribute("fill", c[s].mode === "s" ? "#000000" : "#ffffff"), o.setAttribute("clip-rule", "nonzero");
|
|
5862
5862
|
var d;
|
|
5863
|
-
if (c[s].x.k !== 0 ? (g = "mask",
|
|
5863
|
+
if (c[s].x.k !== 0 ? (g = "mask", x = "mask", A = PropertyFactory.getProp(this.element, c[s].x, 0, null, this.element), d = createElementID(), C = createNS("filter"), C.setAttribute("id", d), y = createNS("feMorphology"), y.setAttribute("operator", "erode"), y.setAttribute("in", "SourceGraphic"), y.setAttribute("radius", "0"), C.appendChild(y), n.appendChild(C), o.setAttribute("stroke", c[s].mode === "s" ? "#000000" : "#ffffff")) : (y = null, A = null), this.storedData[s] = {
|
|
5864
5864
|
elem: o,
|
|
5865
5865
|
x: A,
|
|
5866
5866
|
expan: y,
|
|
@@ -5887,7 +5887,7 @@ var lottie$1 = { exports: {} };
|
|
|
5887
5887
|
}
|
|
5888
5888
|
for (this.maskElement = createNS(g), a = f.length, s = 0; s < a; s += 1)
|
|
5889
5889
|
this.maskElement.appendChild(f[s]);
|
|
5890
|
-
l > 0 && (this.maskElement.setAttribute("id", p), this.element.maskedElement.setAttribute(
|
|
5890
|
+
l > 0 && (this.maskElement.setAttribute("id", p), this.element.maskedElement.setAttribute(x, "url(" + getLocationHref() + "#" + p + ")"), n.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this);
|
|
5891
5891
|
}
|
|
5892
5892
|
MaskElement.prototype.getMaskProperty = function(e) {
|
|
5893
5893
|
return this.viewData[e].prop;
|
|
@@ -6341,7 +6341,7 @@ var lottie$1 = { exports: {} };
|
|
|
6341
6341
|
function a() {
|
|
6342
6342
|
}
|
|
6343
6343
|
function o(m, p, b) {
|
|
6344
|
-
var
|
|
6344
|
+
var C, y, A, g, x, d, S = p.styles.length, T = p.lvl, E, _, V, B;
|
|
6345
6345
|
for (d = 0; d < S; d += 1) {
|
|
6346
6346
|
if (g = p.sh._mdf || b, p.styles[d].lvl < T) {
|
|
6347
6347
|
for (_ = t.reset(), V = T - p.styles[d].lvl, B = p.transformers.length - 1; !g && V > 0; )
|
|
@@ -6352,8 +6352,8 @@ var lottie$1 = { exports: {} };
|
|
|
6352
6352
|
} else
|
|
6353
6353
|
_ = e;
|
|
6354
6354
|
if (E = p.sh.paths, y = E._length, g) {
|
|
6355
|
-
for (A = "",
|
|
6356
|
-
|
|
6355
|
+
for (A = "", C = 0; C < y; C += 1)
|
|
6356
|
+
x = E.shapes[C], x && x._length && (A += buildShapeString(x, x._length, x.c, _));
|
|
6357
6357
|
p.caches[d] = A;
|
|
6358
6358
|
} else
|
|
6359
6359
|
A = p.caches[d];
|
|
@@ -6361,21 +6361,21 @@ var lottie$1 = { exports: {} };
|
|
|
6361
6361
|
}
|
|
6362
6362
|
}
|
|
6363
6363
|
function c(m, p, b) {
|
|
6364
|
-
var
|
|
6365
|
-
(p.c._mdf || b) &&
|
|
6364
|
+
var C = p.style;
|
|
6365
|
+
(p.c._mdf || b) && C.pElem.setAttribute("fill", "rgb(" + bmFloor(p.c.v[0]) + "," + bmFloor(p.c.v[1]) + "," + bmFloor(p.c.v[2]) + ")"), (p.o._mdf || b) && C.pElem.setAttribute("fill-opacity", p.o.v);
|
|
6366
6366
|
}
|
|
6367
6367
|
function l(m, p, b) {
|
|
6368
6368
|
f(m, p, b), u(m, p, b);
|
|
6369
6369
|
}
|
|
6370
6370
|
function f(m, p, b) {
|
|
6371
|
-
var
|
|
6371
|
+
var C = p.gf, y = p.g._hasOpacity, A = p.s.v, g = p.e.v;
|
|
6372
6372
|
if (p.o._mdf || b) {
|
|
6373
|
-
var
|
|
6374
|
-
p.style.pElem.setAttribute(
|
|
6373
|
+
var x = m.ty === "gf" ? "fill-opacity" : "stroke-opacity";
|
|
6374
|
+
p.style.pElem.setAttribute(x, p.o.v);
|
|
6375
6375
|
}
|
|
6376
6376
|
if (p.s._mdf || b) {
|
|
6377
6377
|
var d = m.t === 1 ? "x1" : "cx", S = d === "x1" ? "y1" : "cy";
|
|
6378
|
-
|
|
6378
|
+
C.setAttribute(d, A[0]), C.setAttribute(S, A[1]), y && !p.g._collapsable && (p.of.setAttribute(d, A[0]), p.of.setAttribute(S, A[1]));
|
|
6379
6379
|
}
|
|
6380
6380
|
var T, E, _, V;
|
|
6381
6381
|
if (p.g._cmdf || b) {
|
|
@@ -6390,21 +6390,21 @@ var lottie$1 = { exports: {} };
|
|
|
6390
6390
|
V = T[E], p.g._collapsable || V.setAttribute("offset", $[E * 2] + "%"), V.setAttribute("stop-opacity", $[E * 2 + 1]);
|
|
6391
6391
|
}
|
|
6392
6392
|
if (m.t === 1)
|
|
6393
|
-
(p.e._mdf || b) && (
|
|
6393
|
+
(p.e._mdf || b) && (C.setAttribute("x2", g[0]), C.setAttribute("y2", g[1]), y && !p.g._collapsable && (p.of.setAttribute("x2", g[0]), p.of.setAttribute("y2", g[1])));
|
|
6394
6394
|
else {
|
|
6395
6395
|
var Z;
|
|
6396
|
-
if ((p.s._mdf || p.e._mdf || b) && (Z = Math.sqrt(Math.pow(A[0] - g[0], 2) + Math.pow(A[1] - g[1], 2)),
|
|
6396
|
+
if ((p.s._mdf || p.e._mdf || b) && (Z = Math.sqrt(Math.pow(A[0] - g[0], 2) + Math.pow(A[1] - g[1], 2)), C.setAttribute("r", Z), y && !p.g._collapsable && p.of.setAttribute("r", Z)), p.e._mdf || p.h._mdf || p.a._mdf || b) {
|
|
6397
6397
|
Z || (Z = Math.sqrt(Math.pow(A[0] - g[0], 2) + Math.pow(A[1] - g[1], 2)));
|
|
6398
6398
|
var D = Math.atan2(g[1] - A[1], g[0] - A[0]), X = p.h.v;
|
|
6399
6399
|
X >= 1 ? X = 0.99 : X <= -1 && (X = -0.99);
|
|
6400
6400
|
var q = Z * X, N = Math.cos(D + p.a.v) * q + A[0], L = Math.sin(D + p.a.v) * q + A[1];
|
|
6401
|
-
|
|
6401
|
+
C.setAttribute("fx", N), C.setAttribute("fy", L), y && !p.g._collapsable && (p.of.setAttribute("fx", N), p.of.setAttribute("fy", L));
|
|
6402
6402
|
}
|
|
6403
6403
|
}
|
|
6404
6404
|
}
|
|
6405
6405
|
function u(m, p, b) {
|
|
6406
|
-
var
|
|
6407
|
-
y && (y._mdf || b) && y.dashStr && (
|
|
6406
|
+
var C = p.style, y = p.d;
|
|
6407
|
+
y && (y._mdf || b) && y.dashStr && (C.pElem.setAttribute("stroke-dasharray", y.dashStr), C.pElem.setAttribute("stroke-dashoffset", y.dashoffset[0])), p.c && (p.c._mdf || b) && C.pElem.setAttribute("stroke", "rgb(" + bmFloor(p.c.v[0]) + "," + bmFloor(p.c.v[1]) + "," + bmFloor(p.c.v[2]) + ")"), (p.o._mdf || b) && C.pElem.setAttribute("stroke-opacity", p.o.v), (p.w._mdf || b) && (C.pElem.setAttribute("stroke-width", p.w.v), C.msElem && C.msElem.setAttribute("stroke-width", p.w.v));
|
|
6408
6408
|
}
|
|
6409
6409
|
return i;
|
|
6410
6410
|
}();
|
|
@@ -6472,7 +6472,7 @@ var lottie$1 = { exports: {} };
|
|
|
6472
6472
|
this.dynamicProperties[e].getValue();
|
|
6473
6473
|
this.renderModifiers();
|
|
6474
6474
|
}, SVGShapeElement.prototype.searchShapes = function(e, t, i, n, s, a, o) {
|
|
6475
|
-
var c = [].concat(a), l, f = e.length - 1, u, m, p = [], b = [],
|
|
6475
|
+
var c = [].concat(a), l, f = e.length - 1, u, m, p = [], b = [], C, y, A;
|
|
6476
6476
|
for (l = f; l >= 0; l -= 1) {
|
|
6477
6477
|
if (A = this.searchProcessedElement(e[l]), A ? t[l] = i[A - 1] : e[l]._render = o, e[l].ty === "fl" || e[l].ty === "st" || e[l].ty === "gf" || e[l].ty === "gs" || e[l].ty === "no")
|
|
6478
6478
|
A ? t[l].style.closed = !1 : t[l] = this.createStyleElement(e[l], s), e[l]._render && t[l].style.pElem.parentNode !== n && n.appendChild(t[l].style.pElem), p.push(t[l].style);
|
|
@@ -6483,7 +6483,7 @@ var lottie$1 = { exports: {} };
|
|
|
6483
6483
|
for (m = t[l].it.length, u = 0; u < m; u += 1)
|
|
6484
6484
|
t[l].prevViewData[u] = t[l].it[u];
|
|
6485
6485
|
this.searchShapes(e[l].it, t[l].it, t[l].prevViewData, t[l].gr, s + 1, c, o), e[l]._render && t[l].gr.parentNode !== n && n.appendChild(t[l].gr);
|
|
6486
|
-
} else e[l].ty === "tr" ? (A || (t[l] = this.createTransformElement(e[l], n)),
|
|
6486
|
+
} else e[l].ty === "tr" ? (A || (t[l] = this.createTransformElement(e[l], n)), C = t[l].transform, c.push(C)) : e[l].ty === "sh" || e[l].ty === "rc" || e[l].ty === "el" || e[l].ty === "sr" ? (A || (t[l] = this.createShapeElement(e[l], c, s)), this.setElementStyles(t[l])) : e[l].ty === "tm" || e[l].ty === "rd" || e[l].ty === "ms" || e[l].ty === "pb" || e[l].ty === "zz" || e[l].ty === "op" ? (A ? (y = t[l], y.closed = !1) : (y = ShapeModifiers.getModifier(e[l].ty), y.init(this, e[l]), t[l] = y, this.shapeModifiers.push(y)), b.push(y)) : e[l].ty === "rp" && (A ? (y = t[l], y.closed = !0) : (y = ShapeModifiers.getModifier(e[l].ty), t[l] = y, y.init(this, e, l, t), this.shapeModifiers.push(y), o = !1), b.push(y));
|
|
6487
6487
|
this.addProcessedElement(e[l], l + 1);
|
|
6488
6488
|
}
|
|
6489
6489
|
for (f = p.length, l = 0; l < f; l += 1)
|
|
@@ -6587,21 +6587,21 @@ var lottie$1 = { exports: {} };
|
|
|
6587
6587
|
return t;
|
|
6588
6588
|
}, TextProperty.prototype.completeTextData = function(e) {
|
|
6589
6589
|
e.__complete = !0;
|
|
6590
|
-
var t = this.elem.globalData.fontManager, i = this.data, n = [], s, a, o, c = 0, l, f = i.m.g, u = 0, m = 0, p = 0, b = [],
|
|
6590
|
+
var t = this.elem.globalData.fontManager, i = this.data, n = [], s, a, o, c = 0, l, f = i.m.g, u = 0, m = 0, p = 0, b = [], C = 0, y = 0, A, g, x = t.getFontByName(e.f), d, S = 0, T = getFontProperties(x);
|
|
6591
6591
|
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;
|
|
6592
6592
|
var E = e.tr / 1e3 * e.finalSize, _;
|
|
6593
6593
|
if (e.sz)
|
|
6594
6594
|
for (var V = !0, B = e.sz[0], $ = e.sz[1], Z, D; V; ) {
|
|
6595
|
-
D = this.buildFinalText(e.t), Z = 0,
|
|
6595
|
+
D = this.buildFinalText(e.t), Z = 0, C = 0, a = D.length, E = e.tr / 1e3 * e.finalSize;
|
|
6596
6596
|
var X = -1;
|
|
6597
6597
|
for (s = 0; s < a; s += 1)
|
|
6598
|
-
_ = D[s].charCodeAt(0), o = !1, D[s] === " " ? X = s : (_ === 13 || _ === 3) && (
|
|
6599
|
-
Z +=
|
|
6598
|
+
_ = D[s].charCodeAt(0), o = !1, D[s] === " " ? X = s : (_ === 13 || _ === 3) && (C = 0, o = !0, Z += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (d = t.getCharData(D[s], x.fStyle, x.fFamily), S = o ? 0 : d.w * e.finalSize / 100) : S = t.measureText(D[s], e.f, e.finalSize), C + S > B && D[s] !== " " ? (X === -1 ? a += 1 : s = X, Z += e.finalLineHeight || e.finalSize * 1.2, D.splice(s, X === s ? 1 : 0, "\r"), X = -1, C = 0) : (C += S, C += E);
|
|
6599
|
+
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 = D, a = e.finalText.length, V = !1);
|
|
6600
6600
|
}
|
|
6601
|
-
|
|
6601
|
+
C = -E, S = 0;
|
|
6602
6602
|
var q = 0, N;
|
|
6603
6603
|
for (s = 0; s < a; s += 1)
|
|
6604
|
-
if (o = !1, N = e.finalText[s], _ = N.charCodeAt(0), _ === 13 || _ === 3 ? (q = 0, b.push(
|
|
6604
|
+
if (o = !1, N = e.finalText[s], _ = N.charCodeAt(0), _ === 13 || _ === 3 ? (q = 0, b.push(C), y = C > y ? C : y, C = -2 * E, l = "", o = !0, p += 1) : l = N, t.chars ? (d = t.getCharData(N, x.fStyle, t.getFontByName(e.f).fFamily), S = o ? 0 : d.w * e.finalSize / 100) : S = t.measureText(l, e.f, e.finalSize), N === " " ? q += S + E : (C += S + E + q, q = 0), n.push({
|
|
6605
6605
|
l: S,
|
|
6606
6606
|
an: S,
|
|
6607
6607
|
add: u,
|
|
@@ -6624,7 +6624,7 @@ var lottie$1 = { exports: {} };
|
|
|
6624
6624
|
}
|
|
6625
6625
|
} else
|
|
6626
6626
|
n[c].ind = c, n[c].extra = 0, c += 1;
|
|
6627
|
-
if (e.l = n, y =
|
|
6627
|
+
if (e.l = n, y = C > y ? C : y, b.push(C), e.sz)
|
|
6628
6628
|
e.boxWidth = e.sz[0], e.justifyOffset = 0;
|
|
6629
6629
|
else
|
|
6630
6630
|
switch (e.boxWidth = y, e.j) {
|
|
@@ -6650,7 +6650,7 @@ var lottie$1 = { exports: {} };
|
|
|
6650
6650
|
for (s = 0; s < a; s += 1)
|
|
6651
6651
|
P = n[s], G != P.anIndexes[A] && (G = P.anIndexes[A], U = I.splice(Math.floor(Math.random() * I.length), 1)[0]), P.anIndexes[A] = U;
|
|
6652
6652
|
}
|
|
6653
|
-
e.yOffset = e.finalLineHeight || e.finalSize * 1.2, e.ls = e.ls || 0, e.ascent =
|
|
6653
|
+
e.yOffset = e.finalLineHeight || e.finalSize * 1.2, e.ls = e.ls || 0, e.ascent = x.ascent * e.finalSize / 100;
|
|
6654
6654
|
}, TextProperty.prototype.updateDocumentData = function(e, t) {
|
|
6655
6655
|
t = t === void 0 ? this.keysIndex : t;
|
|
6656
6656
|
var i = this.copyData({}, this.data.d.k[t].s);
|
|
@@ -6685,24 +6685,24 @@ var lottie$1 = { exports: {} };
|
|
|
6685
6685
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
6686
6686
|
var c = 0, l = 0, f = 1, u = 1;
|
|
6687
6687
|
this.ne.v > 0 ? c = this.ne.v / 100 : l = -this.ne.v / 100, this.xe.v > 0 ? f = 1 - this.xe.v / 100 : u = 1 + this.xe.v / 100;
|
|
6688
|
-
var m = BezierFactory.getBezierEasing(c, l, f, u).get, p = 0, b = this.finalS,
|
|
6688
|
+
var m = BezierFactory.getBezierEasing(c, l, f, u).get, p = 0, b = this.finalS, C = this.finalE, y = this.data.sh;
|
|
6689
6689
|
if (y === 2)
|
|
6690
|
-
|
|
6690
|
+
C === b ? p = o >= C ? 1 : 0 : p = e(0, t(0.5 / (C - b) + (o - b) / (C - b), 1)), p = m(p);
|
|
6691
6691
|
else if (y === 3)
|
|
6692
|
-
|
|
6692
|
+
C === b ? p = o >= C ? 0 : 1 : p = 1 - e(0, t(0.5 / (C - b) + (o - b) / (C - b), 1)), p = m(p);
|
|
6693
6693
|
else if (y === 4)
|
|
6694
|
-
|
|
6694
|
+
C === b ? p = 0 : (p = e(0, t(0.5 / (C - b) + (o - b) / (C - b), 1)), p < 0.5 ? p *= 2 : p = 1 - 2 * (p - 0.5)), p = m(p);
|
|
6695
6695
|
else if (y === 5) {
|
|
6696
|
-
if (
|
|
6696
|
+
if (C === b)
|
|
6697
6697
|
p = 0;
|
|
6698
6698
|
else {
|
|
6699
|
-
var A =
|
|
6700
|
-
o = t(e(0, o + 0.5 - b),
|
|
6701
|
-
var g = -A / 2 + o,
|
|
6702
|
-
p = Math.sqrt(1 - g * g / (
|
|
6699
|
+
var A = C - b;
|
|
6700
|
+
o = t(e(0, o + 0.5 - b), C - b);
|
|
6701
|
+
var g = -A / 2 + o, x = A / 2;
|
|
6702
|
+
p = Math.sqrt(1 - g * g / (x * x));
|
|
6703
6703
|
}
|
|
6704
6704
|
p = m(p);
|
|
6705
|
-
} else y === 6 ? (
|
|
6705
|
+
} else y === 6 ? (C === b ? p = 0 : (o = t(e(0, o + 0.5 - b), C - b), p = (1 + Math.cos(Math.PI + Math.PI * 2 * o / (C - b))) / 2), p = m(p)) : (o >= i(b) && (o - b < 0 ? p = e(0, t(t(C, 1) - (b - o), 1)) : p = e(0, t(C - o, 1))), p = m(p));
|
|
6706
6706
|
if (this.sm.v !== 100) {
|
|
6707
6707
|
var d = this.sm.v * 0.01;
|
|
6708
6708
|
d === 0 && (d = 1e-8);
|
|
@@ -6771,7 +6771,7 @@ var lottie$1 = { exports: {} };
|
|
|
6771
6771
|
}, TextAnimatorProperty.prototype.getMeasures = function(e, t) {
|
|
6772
6772
|
if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
6773
6773
|
this._isFirstFrame = !1;
|
|
6774
|
-
var i = this._moreOptions.alignment.v, n = this._animatorsData, s = this._textData, a = this.mHelper, o = this._renderType, c = this.renderedLetters.length, l, f, u, m, p = e.l, b,
|
|
6774
|
+
var i = this._moreOptions.alignment.v, n = this._animatorsData, s = this._textData, a = this.mHelper, o = this._renderType, c = this.renderedLetters.length, l, f, u, m, p = e.l, b, C, y, A, g, x, d, S, T, E, _, V, B, $, Z;
|
|
6775
6775
|
if (this._hasMaskedPath) {
|
|
6776
6776
|
if (Z = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
6777
6777
|
var D = Z.v;
|
|
@@ -6784,15 +6784,15 @@ var lottie$1 = { exports: {} };
|
|
|
6784
6784
|
X = bez.buildBezierData(D.v[u], D.v[u + 1], [D.o[u][0] - D.v[u][0], D.o[u][1] - D.v[u][1]], [D.i[u + 1][0] - D.v[u + 1][0], D.i[u + 1][1] - D.v[u + 1][1]]), b.tLength += X.segmentLength, b.segments.push(X), V += X.segmentLength;
|
|
6785
6785
|
u = m, Z.v.c && (X = bez.buildBezierData(D.v[u], D.v[0], [D.o[u][0] - D.v[u][0], D.o[u][1] - D.v[u][1]], [D.i[0][0] - D.v[0][0], D.i[0][1] - D.v[0][1]]), b.tLength += X.segmentLength, b.segments.push(X), V += X.segmentLength), this._pathData.pi = b;
|
|
6786
6786
|
}
|
|
6787
|
-
if (b = this._pathData.pi,
|
|
6788
|
-
for (b.tLength < Math.abs(
|
|
6789
|
-
|
|
6790
|
-
T = E[d].points, S = T[
|
|
6787
|
+
if (b = this._pathData.pi, C = this._pathData.f.v, d = 0, x = 1, A = 0, g = !0, E = b.segments, C < 0 && Z.v.c)
|
|
6788
|
+
for (b.tLength < Math.abs(C) && (C = -Math.abs(C) % b.tLength), d = E.length - 1, T = E[d].points, x = T.length - 1; C < 0; )
|
|
6789
|
+
C += T[x].partialLength, x -= 1, x < 0 && (d -= 1, T = E[d].points, x = T.length - 1);
|
|
6790
|
+
T = E[d].points, S = T[x - 1], y = T[x], _ = y.partialLength;
|
|
6791
6791
|
}
|
|
6792
6792
|
m = p.length, l = 0, f = 0;
|
|
6793
6793
|
var q = e.finalSize * 1.2 * 0.714, N = !0, L, k, P, M, R;
|
|
6794
6794
|
M = n.length;
|
|
6795
|
-
var I, G = -1, U, K, J, re =
|
|
6795
|
+
var I, G = -1, U, K, J, re = C, le = d, fe = x, pe = -1, ue, ne, oe, te, Y, Te, Ee, Pe, ye = "", be = this.defaultPropsArray, we;
|
|
6796
6796
|
if (e.j === 2 || e.j === 1) {
|
|
6797
6797
|
var me = 0, Ce = 0, Le = e.j === 2 ? -0.5 : -1, xe = 0, Me = !0;
|
|
6798
6798
|
for (u = 0; u < m; u += 1)
|
|
@@ -6810,31 +6810,31 @@ var lottie$1 = { exports: {} };
|
|
|
6810
6810
|
}
|
|
6811
6811
|
for (u = 0; u < m; u += 1) {
|
|
6812
6812
|
if (a.reset(), ue = 1, p[u].n)
|
|
6813
|
-
l = 0, f += e.yOffset, f += N ? 1 : 0,
|
|
6813
|
+
l = 0, f += e.yOffset, f += N ? 1 : 0, C = re, N = !1, this._hasMaskedPath && (d = le, x = fe, T = E[d].points, S = T[x - 1], y = T[x], _ = y.partialLength, A = 0), ye = "", Pe = "", Te = "", we = "", be = this.defaultPropsArray;
|
|
6814
6814
|
else {
|
|
6815
6815
|
if (this._hasMaskedPath) {
|
|
6816
6816
|
if (pe !== p[u].line) {
|
|
6817
6817
|
switch (e.j) {
|
|
6818
6818
|
case 1:
|
|
6819
|
-
|
|
6819
|
+
C += V - e.lineWidths[p[u].line];
|
|
6820
6820
|
break;
|
|
6821
6821
|
case 2:
|
|
6822
|
-
|
|
6822
|
+
C += (V - e.lineWidths[p[u].line]) / 2;
|
|
6823
6823
|
break;
|
|
6824
6824
|
}
|
|
6825
6825
|
pe = p[u].line;
|
|
6826
6826
|
}
|
|
6827
|
-
G !== p[u].ind && (p[G] && (
|
|
6827
|
+
G !== p[u].ind && (p[G] && (C += p[G].extra), C += p[u].an / 2, G = p[u].ind), C += i[0] * p[u].an * 5e-3;
|
|
6828
6828
|
var Se = 0;
|
|
6829
6829
|
for (P = 0; P < M; P += 1)
|
|
6830
6830
|
L = n[P].a, L.p.propType && (k = n[P].s, I = k.getMult(p[u].anIndexes[P], s.a[P].s.totalChars), I.length ? Se += L.p.v[0] * I[0] : Se += L.p.v[0] * I), L.a.propType && (k = n[P].s, I = k.getMult(p[u].anIndexes[P], s.a[P].s.totalChars), I.length ? Se += L.a.v[0] * I[0] : Se += L.a.v[0] * I);
|
|
6831
|
-
for (g = !0, this._pathData.a.v && (
|
|
6832
|
-
A + _ >=
|
|
6831
|
+
for (g = !0, this._pathData.a.v && (C = p[0].an * 0.5 + (V - this._pathData.f.v - p[0].an * 0.5 - p[p.length - 1].an * 0.5) * G / (m - 1), C += this._pathData.f.v); g; )
|
|
6832
|
+
A + _ >= C + Se || !T ? (B = (C + Se - A) / y.partialLength, K = S.point[0] + (y.point[0] - S.point[0]) * B, J = S.point[1] + (y.point[1] - S.point[1]) * B, a.translate(-i[0] * p[u].an * 5e-3, -(i[1] * q) * 0.01), g = !1) : T && (A += y.partialLength, x += 1, x >= T.length && (x = 0, d += 1, E[d] ? T = E[d].points : Z.v.c ? (x = 0, d = 0, T = E[d].points) : (A -= y.partialLength, T = null)), T && (S = y, y = T[x], _ = y.partialLength));
|
|
6833
6833
|
U = p[u].an / 2 - p[u].add, a.translate(-U, 0, 0);
|
|
6834
6834
|
} else
|
|
6835
6835
|
U = p[u].an / 2 - p[u].add, a.translate(-U, 0, 0), a.translate(-i[0] * p[u].an * 5e-3, -i[1] * q * 0.01, 0);
|
|
6836
6836
|
for (P = 0; P < M; P += 1)
|
|
6837
|
-
L = n[P].a, L.t.propType && (k = n[P].s, I = k.getMult(p[u].anIndexes[P], s.a[P].s.totalChars), (l !== 0 || e.j !== 0) && (this._hasMaskedPath ? I.length ?
|
|
6837
|
+
L = n[P].a, L.t.propType && (k = n[P].s, I = k.getMult(p[u].anIndexes[P], s.a[P].s.totalChars), (l !== 0 || e.j !== 0) && (this._hasMaskedPath ? I.length ? C += L.t.v * I[0] : C += L.t.v * I : I.length ? l += L.t.v * I[0] : l += L.t.v * I));
|
|
6838
6838
|
for (e.strokeWidthAnim && (oe = e.sw || 0), e.strokeColorAnim && (e.sc ? ne = [e.sc[0], e.sc[1], e.sc[2]] : ne = [0, 0, 0]), e.fillColorAnim && e.fc && (te = [e.fc[0], e.fc[1], e.fc[2]]), P = 0; P < M; P += 1)
|
|
6839
6839
|
L = n[P].a, L.a.propType && (k = n[P].s, I = k.getMult(p[u].anIndexes[P], s.a[P].s.totalChars), I.length ? a.translate(-L.a.v[0] * I[0], -L.a.v[1] * I[1], L.a.v[2] * I[2]) : a.translate(-L.a.v[0] * I, -L.a.v[1] * I, L.a.v[2] * I));
|
|
6840
6840
|
for (P = 0; P < M; P += 1)
|
|
@@ -6858,7 +6858,7 @@ var lottie$1 = { exports: {} };
|
|
|
6858
6858
|
var Ae = Math.atan($) * 180 / Math.PI;
|
|
6859
6859
|
y.point[0] < S.point[0] && (Ae += 180), a.rotate(-Ae * Math.PI / 180);
|
|
6860
6860
|
}
|
|
6861
|
-
a.translate(K, J, 0),
|
|
6861
|
+
a.translate(K, J, 0), C -= i[0] * p[u].an * 5e-3, p[u + 1] && G !== p[u + 1].ind && (C += p[u].an / 2, C += e.tr * 1e-3 * e.finalSize);
|
|
6862
6862
|
} else {
|
|
6863
6863
|
switch (a.translate(l, f, 0), e.ps && a.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
|
|
6864
6864
|
case 1:
|
|
@@ -6947,7 +6947,7 @@ var lottie$1 = { exports: {} };
|
|
|
6947
6947
|
this.layerElement.setAttribute("aria-label", i.t);
|
|
6948
6948
|
var o = i.l || [], c = !!this.globalData.fontManager.chars;
|
|
6949
6949
|
t = o.length;
|
|
6950
|
-
var l, f = this.mHelper, u = "", m = this.data.singleShape, p = 0, b = 0,
|
|
6950
|
+
var l, f = this.mHelper, u = "", m = this.data.singleShape, p = 0, b = 0, C = !0, y = i.tr * 1e-3 * i.finalSize;
|
|
6951
6951
|
if (m && !c && !i.sz) {
|
|
6952
6952
|
var A = this.textContainer, g = "start";
|
|
6953
6953
|
switch (i.j) {
|
|
@@ -6962,9 +6962,9 @@ var lottie$1 = { exports: {} };
|
|
|
6962
6962
|
break;
|
|
6963
6963
|
}
|
|
6964
6964
|
A.setAttribute("text-anchor", g), A.setAttribute("letter-spacing", y);
|
|
6965
|
-
var
|
|
6966
|
-
for (t =
|
|
6967
|
-
l = this.textSpans[e].span || createNS("tspan"), l.textContent =
|
|
6965
|
+
var x = this.buildTextContents(i.finalText);
|
|
6966
|
+
for (t = x.length, b = i.ps ? i.ps[1] + i.ascent : 0, e = 0; e < t; e += 1)
|
|
6967
|
+
l = this.textSpans[e].span || createNS("tspan"), l.textContent = x[e], l.setAttribute("x", 0), l.setAttribute("y", b), l.style.display = "inherit", A.appendChild(l), this.textSpans[e] || (this.textSpans[e] = {
|
|
6968
6968
|
span: null,
|
|
6969
6969
|
glyph: null
|
|
6970
6970
|
}), this.textSpans[e].span = l, b += i.finalLineHeight;
|
|
@@ -6986,7 +6986,7 @@ var lottie$1 = { exports: {} };
|
|
|
6986
6986
|
}
|
|
6987
6987
|
l.style.display = "inherit";
|
|
6988
6988
|
}
|
|
6989
|
-
if (f.reset(), m && (o[e].n && (p = -y, b += i.yOffset, b +=
|
|
6989
|
+
if (f.reset(), m && (o[e].n && (p = -y, b += i.yOffset, b += C ? 1 : 0, C = !1), this.applyTextPropertiesToMatrix(i, f, o[e].line, p, b), p += o[e].l || 0, p += y), c) {
|
|
6990
6990
|
S = this.globalData.fontManager.getCharData(i.finalText[e], n.fStyle, this.globalData.fontManager.getFontByName(i.f).fFamily);
|
|
6991
6991
|
var E;
|
|
6992
6992
|
if (S.t === 1)
|
|
@@ -7499,18 +7499,18 @@ var lottie$1 = { exports: {} };
|
|
|
7499
7499
|
for (t = 0; t < i; t += 1)
|
|
7500
7500
|
e[t].closed = !0;
|
|
7501
7501
|
}, CVShapeElement.prototype.searchShapes = function(e, t, i, n, s) {
|
|
7502
|
-
var a, o = e.length - 1, c, l, f = [], u = [], m, p, b,
|
|
7502
|
+
var a, o = e.length - 1, c, l, f = [], u = [], m, p, b, C = [].concat(s);
|
|
7503
7503
|
for (a = o; a >= 0; a -= 1) {
|
|
7504
7504
|
if (m = this.searchProcessedElement(e[a]), m ? t[a] = i[m - 1] : e[a]._shouldRender = n, e[a].ty === "fl" || e[a].ty === "st" || e[a].ty === "gf" || e[a].ty === "gs")
|
|
7505
|
-
m ? t[a].style.closed = !1 : t[a] = this.createStyleElement(e[a],
|
|
7505
|
+
m ? t[a].style.closed = !1 : t[a] = this.createStyleElement(e[a], C), f.push(t[a].style);
|
|
7506
7506
|
else if (e[a].ty === "gr") {
|
|
7507
7507
|
if (!m)
|
|
7508
7508
|
t[a] = this.createGroupElement(e[a]);
|
|
7509
7509
|
else
|
|
7510
7510
|
for (l = t[a].it.length, c = 0; c < l; c += 1)
|
|
7511
7511
|
t[a].prevViewData[c] = t[a].it[c];
|
|
7512
|
-
this.searchShapes(e[a].it, t[a].it, t[a].prevViewData, n,
|
|
7513
|
-
} else e[a].ty === "tr" ? (m || (b = this.createTransformElement(e[a]), t[a] = b),
|
|
7512
|
+
this.searchShapes(e[a].it, t[a].it, t[a].prevViewData, n, C);
|
|
7513
|
+
} else e[a].ty === "tr" ? (m || (b = this.createTransformElement(e[a]), t[a] = b), C.push(t[a]), this.addTransformToStyleList(t[a])) : e[a].ty === "sh" || e[a].ty === "rc" || e[a].ty === "el" || e[a].ty === "sr" ? m || (t[a] = this.createShapeElement(e[a])) : e[a].ty === "tm" || e[a].ty === "rd" || e[a].ty === "pb" || e[a].ty === "zz" || e[a].ty === "op" ? (m ? (p = t[a], p.closed = !1) : (p = ShapeModifiers.getModifier(e[a].ty), p.init(this, e[a]), t[a] = p, this.shapeModifiers.push(p)), u.push(p)) : e[a].ty === "rp" && (m ? (p = t[a], p.closed = !0) : (p = ShapeModifiers.getModifier(e[a].ty), t[a] = p, p.init(this, e, a, t), this.shapeModifiers.push(p), n = !1), u.push(p));
|
|
7514
7514
|
this.addProcessedElement(e[a], a + 1);
|
|
7515
7515
|
}
|
|
7516
7516
|
for (this.removeTransformFromStyleList(), this.closeStyles(f), o = u.length, a = 0; a < o; a += 1)
|
|
@@ -7585,9 +7585,9 @@ var lottie$1 = { exports: {} };
|
|
|
7585
7585
|
var m = l * u, p = Math.cos(f + t.a.v) * m + o[0], b = Math.sin(f + t.a.v) * m + o[1];
|
|
7586
7586
|
s = a.createRadialGradient(p, b, 0, o[0], o[1], l);
|
|
7587
7587
|
}
|
|
7588
|
-
var
|
|
7589
|
-
for (
|
|
7590
|
-
t.g._hasOpacity && t.g._collapsable && (g = t.g.o[
|
|
7588
|
+
var C, y = e.g.p, A = t.g.c, g = 1;
|
|
7589
|
+
for (C = 0; C < y; C += 1)
|
|
7590
|
+
t.g._hasOpacity && t.g._collapsable && (g = t.g.o[C * 2 + 1]), s.addColorStop(A[C * 4] / 100, "rgba(" + A[C * 4 + 1] + "," + A[C * 4 + 2] + "," + A[C * 4 + 3] + "," + g + ")");
|
|
7591
7591
|
n.grd = s;
|
|
7592
7592
|
}
|
|
7593
7593
|
n.coOp = t.o.v * i.opacity;
|
|
@@ -7614,17 +7614,17 @@ var lottie$1 = { exports: {} };
|
|
|
7614
7614
|
e.sc && (i = !0, this.values.stroke = this.buildColor(e.sc), this.values.sWidth = e.sw);
|
|
7615
7615
|
var n = this.globalData.fontManager.getFontByName(e.f), s, a, o = e.l, c = this.mHelper;
|
|
7616
7616
|
this.stroke = i, this.values.fValue = e.finalSize + "px " + this.globalData.fontManager.getFontByName(e.f).fFamily, a = e.finalText.length;
|
|
7617
|
-
var l, f, u, m, p, b,
|
|
7617
|
+
var l, f, u, m, p, b, C, y, A, g, x = this.data.singleShape, d = e.tr * 1e-3 * e.finalSize, S = 0, T = 0, E = !0, _ = 0;
|
|
7618
7618
|
for (s = 0; s < a; s += 1) {
|
|
7619
|
-
l = this.globalData.fontManager.getCharData(e.finalText[s], n.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), f = l && l.data || {}, c.reset(),
|
|
7619
|
+
l = this.globalData.fontManager.getCharData(e.finalText[s], n.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), f = l && l.data || {}, c.reset(), x && o[s].n && (S = -d, T += e.yOffset, T += E ? 1 : 0, E = !1), p = f.shapes ? f.shapes[0].it : [], C = p.length, c.scale(e.finalSize / 100, e.finalSize / 100), x && this.applyTextPropertiesToMatrix(e, c, o[s].line, S, T), A = createSizedArray(C - 1);
|
|
7620
7620
|
var V = 0;
|
|
7621
|
-
for (b = 0; b <
|
|
7621
|
+
for (b = 0; b < C; b += 1)
|
|
7622
7622
|
if (p[b].ty === "sh") {
|
|
7623
7623
|
for (m = p[b].ks.k.i.length, y = p[b].ks.k, g = [], u = 1; u < m; u += 1)
|
|
7624
7624
|
u === 1 && g.push(c.applyToX(y.v[0][0], y.v[0][1], 0), c.applyToY(y.v[0][0], y.v[0][1], 0)), g.push(c.applyToX(y.o[u - 1][0], y.o[u - 1][1], 0), c.applyToY(y.o[u - 1][0], y.o[u - 1][1], 0), c.applyToX(y.i[u][0], y.i[u][1], 0), c.applyToY(y.i[u][0], y.i[u][1], 0), c.applyToX(y.v[u][0], y.v[u][1], 0), c.applyToY(y.v[u][0], y.v[u][1], 0));
|
|
7625
7625
|
g.push(c.applyToX(y.o[u - 1][0], y.o[u - 1][1], 0), c.applyToY(y.o[u - 1][0], y.o[u - 1][1], 0), c.applyToX(y.i[0][0], y.i[0][1], 0), c.applyToY(y.i[0][0], y.i[0][1], 0), c.applyToX(y.v[0][0], y.v[0][1], 0), c.applyToY(y.v[0][0], y.v[0][1], 0)), A[V] = g, V += 1;
|
|
7626
7626
|
}
|
|
7627
|
-
|
|
7627
|
+
x && (S += o[s].l, S += d), this.textSpans[_] ? this.textSpans[_].elem = A : this.textSpans[_] = {
|
|
7628
7628
|
elem: A
|
|
7629
7629
|
}, _ += 1;
|
|
7630
7630
|
}
|
|
@@ -7634,19 +7634,19 @@ var lottie$1 = { exports: {} };
|
|
|
7634
7634
|
e.font = this.values.fValue, this.globalData.renderer.ctxLineCap("butt"), this.globalData.renderer.ctxLineJoin("miter"), this.globalData.renderer.ctxMiterLimit(4), this.data.singleShape || this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
|
|
7635
7635
|
var t, i, n, s, a, o, c = this.textAnimator.renderedLetters, l = this.textProperty.currentData.l;
|
|
7636
7636
|
i = l.length;
|
|
7637
|
-
var f, u = null, m = null, p = null, b,
|
|
7637
|
+
var f, u = null, m = null, p = null, b, C, y = this.globalData.renderer;
|
|
7638
7638
|
for (t = 0; t < i; t += 1)
|
|
7639
7639
|
if (!l[t].n) {
|
|
7640
7640
|
if (f = c[t], f && (y.save(), y.ctxTransform(f.p), y.ctxOpacity(f.o)), this.fill) {
|
|
7641
7641
|
for (f && f.fc ? u !== f.fc && (y.ctxFillStyle(f.fc), u = f.fc) : u !== this.values.fill && (u = this.values.fill, y.ctxFillStyle(this.values.fill)), b = this.textSpans[t].elem, s = b.length, this.globalData.canvasContext.beginPath(), n = 0; n < s; n += 1)
|
|
7642
|
-
for (
|
|
7643
|
-
this.globalData.canvasContext.bezierCurveTo(
|
|
7642
|
+
for (C = b[n], o = C.length, this.globalData.canvasContext.moveTo(C[0], C[1]), a = 2; a < o; a += 6)
|
|
7643
|
+
this.globalData.canvasContext.bezierCurveTo(C[a], C[a + 1], C[a + 2], C[a + 3], C[a + 4], C[a + 5]);
|
|
7644
7644
|
this.globalData.canvasContext.closePath(), y.ctxFill();
|
|
7645
7645
|
}
|
|
7646
7646
|
if (this.stroke) {
|
|
7647
7647
|
for (f && f.sw ? p !== f.sw && (p = f.sw, y.ctxLineWidth(f.sw)) : p !== this.values.sWidth && (p = this.values.sWidth, y.ctxLineWidth(this.values.sWidth)), f && f.sc ? m !== f.sc && (m = f.sc, y.ctxStrokeStyle(f.sc)) : m !== this.values.stroke && (m = this.values.stroke, y.ctxStrokeStyle(this.values.stroke)), b = this.textSpans[t].elem, s = b.length, this.globalData.canvasContext.beginPath(), n = 0; n < s; n += 1)
|
|
7648
|
-
for (
|
|
7649
|
-
this.globalData.canvasContext.bezierCurveTo(
|
|
7648
|
+
for (C = b[n], o = C.length, this.globalData.canvasContext.moveTo(C[0], C[1]), a = 2; a < o; a += 6)
|
|
7649
|
+
this.globalData.canvasContext.bezierCurveTo(C[a], C[a + 1], C[a + 2], C[a + 3], C[a + 4], C[a + 5]);
|
|
7650
7650
|
this.globalData.canvasContext.closePath(), y.ctxStroke();
|
|
7651
7651
|
}
|
|
7652
7652
|
f && this.globalData.renderer.restore();
|
|
@@ -8046,19 +8046,19 @@ var lottie$1 = { exports: {} };
|
|
|
8046
8046
|
}
|
|
8047
8047
|
var o, c, l = e.l;
|
|
8048
8048
|
c = l.length;
|
|
8049
|
-
var f, u, m, p = this.mHelper, b,
|
|
8049
|
+
var f, u, m, p = this.mHelper, b, C = "", y = 0;
|
|
8050
8050
|
for (o = 0; o < c; o += 1) {
|
|
8051
8051
|
if (this.globalData.fontManager.chars ? (this.textPaths[y] ? f = this.textPaths[y] : (f = createNS("path"), f.setAttribute("stroke-linecap", lineCapEnum[1]), f.setAttribute("stroke-linejoin", lineJoinEnum[2]), f.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[y] ? (u = this.textSpans[y], m = u.children[0]) : (u = createTag("div"), u.style.lineHeight = 0, m = createNS("svg"), m.appendChild(f), styleDiv(u)))) : this.isMasked ? f = this.textPaths[y] ? this.textPaths[y] : createNS("text") : this.textSpans[y] ? (u = this.textSpans[y], f = this.textPaths[y]) : (u = createTag("span"), styleDiv(u), f = createTag("span"), styleDiv(f), u.appendChild(f)), this.globalData.fontManager.chars) {
|
|
8052
8052
|
var A = this.globalData.fontManager.getCharData(e.finalText[o], n.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), g;
|
|
8053
|
-
if (A ? g = A.data : g = null, p.reset(), g && g.shapes && g.shapes.length && (b = g.shapes[0].it, p.scale(e.finalSize / 100, e.finalSize / 100),
|
|
8053
|
+
if (A ? g = A.data : g = null, p.reset(), g && g.shapes && g.shapes.length && (b = g.shapes[0].it, p.scale(e.finalSize / 100, e.finalSize / 100), C = this.createPathShape(p, b), f.setAttribute("d", C)), this.isMasked)
|
|
8054
8054
|
this.innerElem.appendChild(f);
|
|
8055
8055
|
else {
|
|
8056
8056
|
if (this.innerElem.appendChild(u), g && g.shapes) {
|
|
8057
8057
|
document.body.appendChild(m);
|
|
8058
|
-
var
|
|
8059
|
-
m.setAttribute("width",
|
|
8060
|
-
var d = m.style, S = "translate(" + (
|
|
8061
|
-
d.transform = S, d.webkitTransform = S, l[o].yOffset =
|
|
8058
|
+
var x = m.getBBox();
|
|
8059
|
+
m.setAttribute("width", x.width + 2), m.setAttribute("height", x.height + 2), m.setAttribute("viewBox", x.x - 1 + " " + (x.y - 1) + " " + (x.width + 2) + " " + (x.height + 2));
|
|
8060
|
+
var d = m.style, S = "translate(" + (x.x - 1) + "px," + (x.y - 1) + "px)";
|
|
8061
|
+
d.transform = S, d.webkitTransform = S, l[o].yOffset = x.y - 1;
|
|
8062
8062
|
} else
|
|
8063
8063
|
m.setAttribute("width", 1), m.setAttribute("height", 1);
|
|
8064
8064
|
u.appendChild(m);
|
|
@@ -8151,8 +8151,8 @@ var lottie$1 = { exports: {} };
|
|
|
8151
8151
|
for (t = 0; t < i; t += 1)
|
|
8152
8152
|
if (m = this.comp.threeDElements[t], m.type === "3d") {
|
|
8153
8153
|
if (u) {
|
|
8154
|
-
var
|
|
8155
|
-
b = m.container.style, b.transform =
|
|
8154
|
+
var C = this.mat.toCSS();
|
|
8155
|
+
b = m.container.style, b.transform = C, b.webkitTransform = C;
|
|
8156
8156
|
}
|
|
8157
8157
|
this.pe._mdf && (p = m.perspectiveElem.style, p.perspective = this.pe.v + "px", p.webkitPerspective = this.pe.v + "px");
|
|
8158
8158
|
}
|
|
@@ -8368,7 +8368,7 @@ var lottie$1 = { exports: {} };
|
|
|
8368
8368
|
S = S === !0 ? {
|
|
8369
8369
|
entropy: !0
|
|
8370
8370
|
} : S || {};
|
|
8371
|
-
var _ = A(y(S.entropy ? [d,
|
|
8371
|
+
var _ = A(y(S.entropy ? [d, x(e)] : d === null ? g() : d, 3), E), V = new b(E), B = function() {
|
|
8372
8372
|
for (var Z = V.g(s), D = c, X = 0; Z < l; )
|
|
8373
8373
|
Z = (Z + X) * n, D *= n, X = V.g(1);
|
|
8374
8374
|
for (; Z >= f; )
|
|
@@ -8379,9 +8379,9 @@ var lottie$1 = { exports: {} };
|
|
|
8379
8379
|
return V.g(4) | 0;
|
|
8380
8380
|
}, B.quick = function() {
|
|
8381
8381
|
return V.g(4) / 4294967296;
|
|
8382
|
-
}, B.double = B, A(
|
|
8383
|
-
return X && (X.S &&
|
|
8384
|
-
return
|
|
8382
|
+
}, B.double = B, A(x(V.S), e), (S.pass || T || function($, Z, D, X) {
|
|
8383
|
+
return X && (X.S && C(X, V), $.state = function() {
|
|
8384
|
+
return C(V, {});
|
|
8385
8385
|
}), D ? (t[o] = $, Z) : $;
|
|
8386
8386
|
})(B, _, "global" in S ? S.global : this == t, S.state);
|
|
8387
8387
|
}
|
|
@@ -8398,7 +8398,7 @@ var lottie$1 = { exports: {} };
|
|
|
8398
8398
|
return E.i = X, E.j = q, D;
|
|
8399
8399
|
};
|
|
8400
8400
|
}
|
|
8401
|
-
function
|
|
8401
|
+
function C(d, S) {
|
|
8402
8402
|
return S.i = d.i, S.j = d.j, S.S = d.S.slice(), S;
|
|
8403
8403
|
}
|
|
8404
8404
|
function y(d, S) {
|
|
@@ -8414,18 +8414,18 @@ var lottie$1 = { exports: {} };
|
|
|
8414
8414
|
function A(d, S) {
|
|
8415
8415
|
for (var T = d + "", E, _ = 0; _ < T.length; )
|
|
8416
8416
|
S[u & _] = u & (E ^= S[u & _] * 19) + T.charCodeAt(_++);
|
|
8417
|
-
return
|
|
8417
|
+
return x(S);
|
|
8418
8418
|
}
|
|
8419
8419
|
function g() {
|
|
8420
8420
|
try {
|
|
8421
8421
|
var d = new Uint8Array(n);
|
|
8422
|
-
return (i.crypto || i.msCrypto).getRandomValues(d),
|
|
8422
|
+
return (i.crypto || i.msCrypto).getRandomValues(d), x(d);
|
|
8423
8423
|
} catch {
|
|
8424
8424
|
var S = i.navigator, T = S && S.plugins;
|
|
8425
|
-
return [+/* @__PURE__ */ new Date(), i, T, i.screen,
|
|
8425
|
+
return [+/* @__PURE__ */ new Date(), i, T, i.screen, x(e)];
|
|
8426
8426
|
}
|
|
8427
8427
|
}
|
|
8428
|
-
function
|
|
8428
|
+
function x(d) {
|
|
8429
8429
|
return String.fromCharCode.apply(0, d);
|
|
8430
8430
|
}
|
|
8431
8431
|
A(t.random(), e);
|
|
@@ -9025,7 +9025,7 @@ var lottie$1 = { exports: {} };
|
|
|
9025
9025
|
}
|
|
9026
9026
|
}
|
|
9027
9027
|
b.getMatrix = e, b.invertPoint = o, b.applyPoint = a, b.toWorld = i, b.toWorldVec = t, b.fromWorld = s, b.fromWorldVec = n, b.toComp = i, b.fromComp = c, b.sampleImage = l, b.sourceRectAtTime = f.sourceRectAtTime.bind(f), b._elem = f, u = TransformExpressionInterface(f.finalTransform.mProp);
|
|
9028
|
-
var
|
|
9028
|
+
var C = getDescriptor(u, "anchorPoint");
|
|
9029
9029
|
return Object.defineProperties(b, {
|
|
9030
9030
|
hasParent: {
|
|
9031
9031
|
get: function() {
|
|
@@ -9041,8 +9041,8 @@ var lottie$1 = { exports: {} };
|
|
|
9041
9041
|
scale: getDescriptor(u, "scale"),
|
|
9042
9042
|
position: getDescriptor(u, "position"),
|
|
9043
9043
|
opacity: getDescriptor(u, "opacity"),
|
|
9044
|
-
anchorPoint:
|
|
9045
|
-
anchor_point:
|
|
9044
|
+
anchorPoint: C,
|
|
9045
|
+
anchor_point: C,
|
|
9046
9046
|
transform: {
|
|
9047
9047
|
get: function() {
|
|
9048
9048
|
return u;
|
|
@@ -9098,9 +9098,9 @@ var lottie$1 = { exports: {} };
|
|
|
9098
9098
|
}
|
|
9099
9099
|
function i(s, a, o, c) {
|
|
9100
9100
|
function l(b) {
|
|
9101
|
-
for (var
|
|
9102
|
-
if (b ===
|
|
9103
|
-
return
|
|
9101
|
+
for (var C = s.ef, y = 0, A = C.length; y < A; ) {
|
|
9102
|
+
if (b === C[y].nm || b === C[y].mn || b === C[y].ix)
|
|
9103
|
+
return C[y].ty === 5 ? u[y] : u[y]();
|
|
9104
9104
|
y += 1;
|
|
9105
9105
|
}
|
|
9106
9106
|
throw new Error();
|
|
@@ -9170,14 +9170,14 @@ var lottie$1 = { exports: {} };
|
|
|
9170
9170
|
}), a;
|
|
9171
9171
|
};
|
|
9172
9172
|
}(), ShapeExpressionInterface = /* @__PURE__ */ function() {
|
|
9173
|
-
function e(
|
|
9174
|
-
var g = [],
|
|
9175
|
-
for (
|
|
9176
|
-
x
|
|
9173
|
+
function e(C, y, A) {
|
|
9174
|
+
var g = [], x, d = C ? C.length : 0;
|
|
9175
|
+
for (x = 0; x < d; x += 1)
|
|
9176
|
+
C[x].ty === "gr" ? g.push(i(C[x], y[x], A)) : C[x].ty === "fl" ? g.push(n(C[x], y[x], A)) : C[x].ty === "st" ? g.push(o(C[x], y[x], A)) : C[x].ty === "tm" ? g.push(c(C[x], y[x], A)) : C[x].ty === "tr" || (C[x].ty === "el" ? g.push(f(C[x], y[x], A)) : C[x].ty === "sr" ? g.push(u(C[x], y[x], A)) : C[x].ty === "sh" ? g.push(ShapePathInterface(C[x], y[x], A)) : C[x].ty === "rc" ? g.push(m(C[x], y[x], A)) : C[x].ty === "rd" ? g.push(p(C[x], y[x], A)) : C[x].ty === "rp" ? g.push(b(C[x], y[x], A)) : C[x].ty === "gf" ? g.push(s(C[x], y[x], A)) : g.push(a(C[x], y[x])));
|
|
9177
9177
|
return g;
|
|
9178
9178
|
}
|
|
9179
|
-
function t(
|
|
9180
|
-
var g,
|
|
9179
|
+
function t(C, y, A) {
|
|
9180
|
+
var g, x = function(T) {
|
|
9181
9181
|
for (var E = 0, _ = g.length; E < _; ) {
|
|
9182
9182
|
if (g[E]._name === T || g[E].mn === T || g[E].propertyIndex === T || g[E].ix === T || g[E].ind === T)
|
|
9183
9183
|
return g[E];
|
|
@@ -9185,11 +9185,11 @@ var lottie$1 = { exports: {} };
|
|
|
9185
9185
|
}
|
|
9186
9186
|
return typeof T == "number" ? g[T - 1] : null;
|
|
9187
9187
|
};
|
|
9188
|
-
|
|
9189
|
-
var d = l(
|
|
9190
|
-
return
|
|
9188
|
+
x.propertyGroup = propertyGroupFactory(x, A), g = e(C.it, y.it, x.propertyGroup), x.numProperties = g.length;
|
|
9189
|
+
var d = l(C.it[C.it.length - 1], y.it[y.it.length - 1], x.propertyGroup);
|
|
9190
|
+
return x.transform = d, x.propertyIndex = C.cix, x._name = C.nm, x;
|
|
9191
9191
|
}
|
|
9192
|
-
function i(
|
|
9192
|
+
function i(C, y, A) {
|
|
9193
9193
|
var g = function(T) {
|
|
9194
9194
|
switch (T) {
|
|
9195
9195
|
case "ADBE Vectors Group":
|
|
@@ -9201,16 +9201,16 @@ var lottie$1 = { exports: {} };
|
|
|
9201
9201
|
}
|
|
9202
9202
|
};
|
|
9203
9203
|
g.propertyGroup = propertyGroupFactory(g, A);
|
|
9204
|
-
var
|
|
9205
|
-
return g.content =
|
|
9204
|
+
var x = t(C, y, g.propertyGroup), d = l(C.it[C.it.length - 1], y.it[y.it.length - 1], g.propertyGroup);
|
|
9205
|
+
return g.content = x, g.transform = d, Object.defineProperty(g, "_name", {
|
|
9206
9206
|
get: function() {
|
|
9207
|
-
return
|
|
9207
|
+
return C.nm;
|
|
9208
9208
|
}
|
|
9209
|
-
}), g.numProperties =
|
|
9209
|
+
}), g.numProperties = C.np, g.propertyIndex = C.ix, g.nm = C.nm, g.mn = C.mn, g;
|
|
9210
9210
|
}
|
|
9211
|
-
function n(
|
|
9212
|
-
function g(
|
|
9213
|
-
return
|
|
9211
|
+
function n(C, y, A) {
|
|
9212
|
+
function g(x) {
|
|
9213
|
+
return x === "Color" || x === "color" ? g.color : x === "Opacity" || x === "opacity" ? g.opacity : null;
|
|
9214
9214
|
}
|
|
9215
9215
|
return Object.defineProperties(g, {
|
|
9216
9216
|
color: {
|
|
@@ -9220,16 +9220,16 @@ var lottie$1 = { exports: {} };
|
|
|
9220
9220
|
get: ExpressionPropertyInterface(y.o)
|
|
9221
9221
|
},
|
|
9222
9222
|
_name: {
|
|
9223
|
-
value:
|
|
9223
|
+
value: C.nm
|
|
9224
9224
|
},
|
|
9225
9225
|
mn: {
|
|
9226
|
-
value:
|
|
9226
|
+
value: C.mn
|
|
9227
9227
|
}
|
|
9228
9228
|
}), y.c.setGroupProperty(PropertyInterface("Color", A)), y.o.setGroupProperty(PropertyInterface("Opacity", A)), g;
|
|
9229
9229
|
}
|
|
9230
|
-
function s(
|
|
9231
|
-
function g(
|
|
9232
|
-
return
|
|
9230
|
+
function s(C, y, A) {
|
|
9231
|
+
function g(x) {
|
|
9232
|
+
return x === "Start Point" || x === "start point" ? g.startPoint : x === "End Point" || x === "end point" ? g.endPoint : x === "Opacity" || x === "opacity" ? g.opacity : null;
|
|
9233
9233
|
}
|
|
9234
9234
|
return Object.defineProperties(g, {
|
|
9235
9235
|
startPoint: {
|
|
@@ -9247,29 +9247,29 @@ var lottie$1 = { exports: {} };
|
|
|
9247
9247
|
}
|
|
9248
9248
|
},
|
|
9249
9249
|
_name: {
|
|
9250
|
-
value:
|
|
9250
|
+
value: C.nm
|
|
9251
9251
|
},
|
|
9252
9252
|
mn: {
|
|
9253
|
-
value:
|
|
9253
|
+
value: C.mn
|
|
9254
9254
|
}
|
|
9255
9255
|
}), y.s.setGroupProperty(PropertyInterface("Start Point", A)), y.e.setGroupProperty(PropertyInterface("End Point", A)), y.o.setGroupProperty(PropertyInterface("Opacity", A)), g;
|
|
9256
9256
|
}
|
|
9257
9257
|
function a() {
|
|
9258
|
-
function
|
|
9258
|
+
function C() {
|
|
9259
9259
|
return null;
|
|
9260
9260
|
}
|
|
9261
|
-
return
|
|
9261
|
+
return C;
|
|
9262
9262
|
}
|
|
9263
|
-
function o(
|
|
9264
|
-
var g = propertyGroupFactory(_, A),
|
|
9263
|
+
function o(C, y, A) {
|
|
9264
|
+
var g = propertyGroupFactory(_, A), x = propertyGroupFactory(E, g);
|
|
9265
9265
|
function d(V) {
|
|
9266
|
-
Object.defineProperty(E,
|
|
9266
|
+
Object.defineProperty(E, C.d[V].nm, {
|
|
9267
9267
|
get: ExpressionPropertyInterface(y.d.dataProps[V].p)
|
|
9268
9268
|
});
|
|
9269
9269
|
}
|
|
9270
|
-
var S, T =
|
|
9270
|
+
var S, T = C.d ? C.d.length : 0, E = {};
|
|
9271
9271
|
for (S = 0; S < T; S += 1)
|
|
9272
|
-
d(S), y.d.dataProps[S].p.setGroupProperty(
|
|
9272
|
+
d(S), y.d.dataProps[S].p.setGroupProperty(x);
|
|
9273
9273
|
function _(V) {
|
|
9274
9274
|
return V === "Color" || V === "color" ? _.color : V === "Opacity" || V === "opacity" ? _.opacity : V === "Stroke Width" || V === "stroke width" ? _.strokeWidth : null;
|
|
9275
9275
|
}
|
|
@@ -9289,19 +9289,19 @@ var lottie$1 = { exports: {} };
|
|
|
9289
9289
|
}
|
|
9290
9290
|
},
|
|
9291
9291
|
_name: {
|
|
9292
|
-
value:
|
|
9292
|
+
value: C.nm
|
|
9293
9293
|
},
|
|
9294
9294
|
mn: {
|
|
9295
|
-
value:
|
|
9295
|
+
value: C.mn
|
|
9296
9296
|
}
|
|
9297
9297
|
}), y.c.setGroupProperty(PropertyInterface("Color", g)), y.o.setGroupProperty(PropertyInterface("Opacity", g)), y.w.setGroupProperty(PropertyInterface("Stroke Width", g)), _;
|
|
9298
9298
|
}
|
|
9299
|
-
function c(
|
|
9299
|
+
function c(C, y, A) {
|
|
9300
9300
|
function g(d) {
|
|
9301
|
-
return d ===
|
|
9301
|
+
return d === C.e.ix || d === "End" || d === "end" ? g.end : d === C.s.ix ? g.start : d === C.o.ix ? g.offset : null;
|
|
9302
9302
|
}
|
|
9303
|
-
var
|
|
9304
|
-
return g.propertyIndex =
|
|
9303
|
+
var x = propertyGroupFactory(g, A);
|
|
9304
|
+
return g.propertyIndex = C.ix, y.s.setGroupProperty(PropertyInterface("Start", x)), y.e.setGroupProperty(PropertyInterface("End", x)), y.o.setGroupProperty(PropertyInterface("Offset", x)), g.propertyIndex = C.ix, g.propertyGroup = A, Object.defineProperties(g, {
|
|
9305
9305
|
start: {
|
|
9306
9306
|
get: ExpressionPropertyInterface(y.s)
|
|
9307
9307
|
},
|
|
@@ -9312,16 +9312,16 @@ var lottie$1 = { exports: {} };
|
|
|
9312
9312
|
get: ExpressionPropertyInterface(y.o)
|
|
9313
9313
|
},
|
|
9314
9314
|
_name: {
|
|
9315
|
-
value:
|
|
9315
|
+
value: C.nm
|
|
9316
9316
|
}
|
|
9317
|
-
}), g.mn =
|
|
9317
|
+
}), g.mn = C.mn, g;
|
|
9318
9318
|
}
|
|
9319
|
-
function l(
|
|
9319
|
+
function l(C, y, A) {
|
|
9320
9320
|
function g(d) {
|
|
9321
|
-
return
|
|
9321
|
+
return C.a.ix === d || d === "Anchor Point" ? g.anchorPoint : C.o.ix === d || d === "Opacity" ? g.opacity : C.p.ix === d || d === "Position" ? g.position : C.r.ix === d || d === "Rotation" || d === "ADBE Vector Rotation" ? g.rotation : C.s.ix === d || d === "Scale" ? g.scale : C.sk && C.sk.ix === d || d === "Skew" ? g.skew : C.sa && C.sa.ix === d || d === "Skew Axis" ? g.skewAxis : null;
|
|
9322
9322
|
}
|
|
9323
|
-
var
|
|
9324
|
-
return y.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",
|
|
9323
|
+
var x = propertyGroupFactory(g, A);
|
|
9324
|
+
return y.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity", x)), y.transform.mProps.p.setGroupProperty(PropertyInterface("Position", x)), y.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point", x)), y.transform.mProps.s.setGroupProperty(PropertyInterface("Scale", x)), y.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation", x)), y.transform.mProps.sk && (y.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew", x)), y.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle", x))), y.transform.op.setGroupProperty(PropertyInterface("Opacity", x)), Object.defineProperties(g, {
|
|
9325
9325
|
opacity: {
|
|
9326
9326
|
get: ExpressionPropertyInterface(y.transform.mProps.o)
|
|
9327
9327
|
},
|
|
@@ -9344,18 +9344,18 @@ var lottie$1 = { exports: {} };
|
|
|
9344
9344
|
get: ExpressionPropertyInterface(y.transform.mProps.sa)
|
|
9345
9345
|
},
|
|
9346
9346
|
_name: {
|
|
9347
|
-
value:
|
|
9347
|
+
value: C.nm
|
|
9348
9348
|
}
|
|
9349
|
-
}), g.ty = "tr", g.mn =
|
|
9349
|
+
}), g.ty = "tr", g.mn = C.mn, g.propertyGroup = A, g;
|
|
9350
9350
|
}
|
|
9351
|
-
function f(
|
|
9351
|
+
function f(C, y, A) {
|
|
9352
9352
|
function g(S) {
|
|
9353
|
-
return
|
|
9353
|
+
return C.p.ix === S ? g.position : C.s.ix === S ? g.size : null;
|
|
9354
9354
|
}
|
|
9355
|
-
var
|
|
9356
|
-
g.propertyIndex =
|
|
9355
|
+
var x = propertyGroupFactory(g, A);
|
|
9356
|
+
g.propertyIndex = C.ix;
|
|
9357
9357
|
var d = y.sh.ty === "tm" ? y.sh.prop : y.sh;
|
|
9358
|
-
return d.s.setGroupProperty(PropertyInterface("Size",
|
|
9358
|
+
return d.s.setGroupProperty(PropertyInterface("Size", x)), d.p.setGroupProperty(PropertyInterface("Position", x)), Object.defineProperties(g, {
|
|
9359
9359
|
size: {
|
|
9360
9360
|
get: ExpressionPropertyInterface(d.s)
|
|
9361
9361
|
},
|
|
@@ -9363,16 +9363,16 @@ var lottie$1 = { exports: {} };
|
|
|
9363
9363
|
get: ExpressionPropertyInterface(d.p)
|
|
9364
9364
|
},
|
|
9365
9365
|
_name: {
|
|
9366
|
-
value:
|
|
9366
|
+
value: C.nm
|
|
9367
9367
|
}
|
|
9368
|
-
}), g.mn =
|
|
9368
|
+
}), g.mn = C.mn, g;
|
|
9369
9369
|
}
|
|
9370
|
-
function u(
|
|
9370
|
+
function u(C, y, A) {
|
|
9371
9371
|
function g(S) {
|
|
9372
|
-
return
|
|
9372
|
+
return C.p.ix === S ? g.position : C.r.ix === S ? g.rotation : C.pt.ix === S ? g.points : C.or.ix === S || S === "ADBE Vector Star Outer Radius" ? g.outerRadius : C.os.ix === S ? g.outerRoundness : C.ir && (C.ir.ix === S || S === "ADBE Vector Star Inner Radius") ? g.innerRadius : C.is && C.is.ix === S ? g.innerRoundness : null;
|
|
9373
9373
|
}
|
|
9374
|
-
var
|
|
9375
|
-
return g.propertyIndex =
|
|
9374
|
+
var x = propertyGroupFactory(g, A), d = y.sh.ty === "tm" ? y.sh.prop : y.sh;
|
|
9375
|
+
return g.propertyIndex = C.ix, d.or.setGroupProperty(PropertyInterface("Outer Radius", x)), d.os.setGroupProperty(PropertyInterface("Outer Roundness", x)), d.pt.setGroupProperty(PropertyInterface("Points", x)), d.p.setGroupProperty(PropertyInterface("Position", x)), d.r.setGroupProperty(PropertyInterface("Rotation", x)), C.ir && (d.ir.setGroupProperty(PropertyInterface("Inner Radius", x)), d.is.setGroupProperty(PropertyInterface("Inner Roundness", x))), Object.defineProperties(g, {
|
|
9376
9376
|
position: {
|
|
9377
9377
|
get: ExpressionPropertyInterface(d.p)
|
|
9378
9378
|
},
|
|
@@ -9395,16 +9395,16 @@ var lottie$1 = { exports: {} };
|
|
|
9395
9395
|
get: ExpressionPropertyInterface(d.is)
|
|
9396
9396
|
},
|
|
9397
9397
|
_name: {
|
|
9398
|
-
value:
|
|
9398
|
+
value: C.nm
|
|
9399
9399
|
}
|
|
9400
|
-
}), g.mn =
|
|
9400
|
+
}), g.mn = C.mn, g;
|
|
9401
9401
|
}
|
|
9402
|
-
function m(
|
|
9402
|
+
function m(C, y, A) {
|
|
9403
9403
|
function g(S) {
|
|
9404
|
-
return
|
|
9404
|
+
return C.p.ix === S ? g.position : C.r.ix === S ? g.roundness : C.s.ix === S || S === "Size" || S === "ADBE Vector Rect Size" ? g.size : null;
|
|
9405
9405
|
}
|
|
9406
|
-
var
|
|
9407
|
-
return g.propertyIndex =
|
|
9406
|
+
var x = propertyGroupFactory(g, A), d = y.sh.ty === "tm" ? y.sh.prop : y.sh;
|
|
9407
|
+
return g.propertyIndex = C.ix, d.p.setGroupProperty(PropertyInterface("Position", x)), d.s.setGroupProperty(PropertyInterface("Size", x)), d.r.setGroupProperty(PropertyInterface("Rotation", x)), Object.defineProperties(g, {
|
|
9408
9408
|
position: {
|
|
9409
9409
|
get: ExpressionPropertyInterface(d.p)
|
|
9410
9410
|
},
|
|
@@ -9415,30 +9415,30 @@ var lottie$1 = { exports: {} };
|
|
|
9415
9415
|
get: ExpressionPropertyInterface(d.s)
|
|
9416
9416
|
},
|
|
9417
9417
|
_name: {
|
|
9418
|
-
value:
|
|
9418
|
+
value: C.nm
|
|
9419
9419
|
}
|
|
9420
|
-
}), g.mn =
|
|
9420
|
+
}), g.mn = C.mn, g;
|
|
9421
9421
|
}
|
|
9422
|
-
function p(
|
|
9422
|
+
function p(C, y, A) {
|
|
9423
9423
|
function g(S) {
|
|
9424
|
-
return
|
|
9424
|
+
return C.r.ix === S || S === "Round Corners 1" ? g.radius : null;
|
|
9425
9425
|
}
|
|
9426
|
-
var
|
|
9427
|
-
return g.propertyIndex =
|
|
9426
|
+
var x = propertyGroupFactory(g, A), d = y;
|
|
9427
|
+
return g.propertyIndex = C.ix, d.rd.setGroupProperty(PropertyInterface("Radius", x)), Object.defineProperties(g, {
|
|
9428
9428
|
radius: {
|
|
9429
9429
|
get: ExpressionPropertyInterface(d.rd)
|
|
9430
9430
|
},
|
|
9431
9431
|
_name: {
|
|
9432
|
-
value:
|
|
9432
|
+
value: C.nm
|
|
9433
9433
|
}
|
|
9434
|
-
}), g.mn =
|
|
9434
|
+
}), g.mn = C.mn, g;
|
|
9435
9435
|
}
|
|
9436
|
-
function b(
|
|
9436
|
+
function b(C, y, A) {
|
|
9437
9437
|
function g(S) {
|
|
9438
|
-
return
|
|
9438
|
+
return C.c.ix === S || S === "Copies" ? g.copies : C.o.ix === S || S === "Offset" ? g.offset : null;
|
|
9439
9439
|
}
|
|
9440
|
-
var
|
|
9441
|
-
return g.propertyIndex =
|
|
9440
|
+
var x = propertyGroupFactory(g, A), d = y;
|
|
9441
|
+
return g.propertyIndex = C.ix, d.c.setGroupProperty(PropertyInterface("Copies", x)), d.o.setGroupProperty(PropertyInterface("Offset", x)), Object.defineProperties(g, {
|
|
9442
9442
|
copies: {
|
|
9443
9443
|
get: ExpressionPropertyInterface(d.c)
|
|
9444
9444
|
},
|
|
@@ -9446,13 +9446,13 @@ var lottie$1 = { exports: {} };
|
|
|
9446
9446
|
get: ExpressionPropertyInterface(d.o)
|
|
9447
9447
|
},
|
|
9448
9448
|
_name: {
|
|
9449
|
-
value:
|
|
9449
|
+
value: C.nm
|
|
9450
9450
|
}
|
|
9451
|
-
}), g.mn =
|
|
9451
|
+
}), g.mn = C.mn, g;
|
|
9452
9452
|
}
|
|
9453
|
-
return function(
|
|
9453
|
+
return function(C, y, A) {
|
|
9454
9454
|
var g;
|
|
9455
|
-
function
|
|
9455
|
+
function x(S) {
|
|
9456
9456
|
if (typeof S == "number")
|
|
9457
9457
|
return S = S === void 0 ? 1 : S, S === 0 ? A : g[S - 1];
|
|
9458
9458
|
for (var T = 0, E = g.length; T < E; ) {
|
|
@@ -9465,7 +9465,7 @@ var lottie$1 = { exports: {} };
|
|
|
9465
9465
|
function d() {
|
|
9466
9466
|
return A;
|
|
9467
9467
|
}
|
|
9468
|
-
return
|
|
9468
|
+
return x.propertyGroup = propertyGroupFactory(x, d), g = e(C, y, x.propertyGroup), x.numProperties = g.length, x._name = "Contents", x;
|
|
9469
9469
|
};
|
|
9470
9470
|
}(), TextExpressionInterface = /* @__PURE__ */ function() {
|
|
9471
9471
|
return function(e) {
|
|
@@ -9588,22 +9588,22 @@ var lottie$1 = { exports: {} };
|
|
|
9588
9588
|
};
|
|
9589
9589
|
}();
|
|
9590
9590
|
function addPropertyDecorator() {
|
|
9591
|
-
function e(p, b,
|
|
9591
|
+
function e(p, b, C) {
|
|
9592
9592
|
if (!this.k || !this.keyframes)
|
|
9593
9593
|
return this.pv;
|
|
9594
9594
|
p = p ? p.toLowerCase() : "";
|
|
9595
9595
|
var y = this.comp.renderedFrame, A = this.keyframes, g = A[A.length - 1].t;
|
|
9596
9596
|
if (y <= g)
|
|
9597
9597
|
return this.pv;
|
|
9598
|
-
var
|
|
9599
|
-
|
|
9598
|
+
var x, d;
|
|
9599
|
+
C ? (b ? x = Math.abs(g - this.elem.comp.globalData.frameRate * b) : x = Math.max(0, g - this.elem.data.ip), d = g - x) : ((!b || b > A.length - 1) && (b = A.length - 1), d = A[A.length - 1 - b].t, x = g - d);
|
|
9600
9600
|
var S, T, E;
|
|
9601
9601
|
if (p === "pingpong") {
|
|
9602
|
-
var _ = Math.floor((y - d) /
|
|
9602
|
+
var _ = Math.floor((y - d) / x);
|
|
9603
9603
|
if (_ % 2 !== 0)
|
|
9604
|
-
return this.getValueAtTime((
|
|
9604
|
+
return this.getValueAtTime((x - (y - d) % x + d) / this.comp.globalData.frameRate, 0);
|
|
9605
9605
|
} else if (p === "offset") {
|
|
9606
|
-
var V = this.getValueAtTime(d / this.comp.globalData.frameRate, 0), B = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), $ = this.getValueAtTime(((y - d) %
|
|
9606
|
+
var V = this.getValueAtTime(d / this.comp.globalData.frameRate, 0), B = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), $ = this.getValueAtTime(((y - d) % x + d) / this.comp.globalData.frameRate, 0), Z = Math.floor((y - d) / x);
|
|
9607
9607
|
if (this.pv.length) {
|
|
9608
9608
|
for (E = new Array(V.length), T = E.length, S = 0; S < T; S += 1)
|
|
9609
9609
|
E[S] = (B[S] - V[S]) * Z + $[S];
|
|
@@ -9619,24 +9619,24 @@ var lottie$1 = { exports: {} };
|
|
|
9619
9619
|
}
|
|
9620
9620
|
return D + (D - X) * ((y - g) / 1e-3);
|
|
9621
9621
|
}
|
|
9622
|
-
return this.getValueAtTime(((y - d) %
|
|
9622
|
+
return this.getValueAtTime(((y - d) % x + d) / this.comp.globalData.frameRate, 0);
|
|
9623
9623
|
}
|
|
9624
|
-
function t(p, b,
|
|
9624
|
+
function t(p, b, C) {
|
|
9625
9625
|
if (!this.k)
|
|
9626
9626
|
return this.pv;
|
|
9627
9627
|
p = p ? p.toLowerCase() : "";
|
|
9628
9628
|
var y = this.comp.renderedFrame, A = this.keyframes, g = A[0].t;
|
|
9629
9629
|
if (y >= g)
|
|
9630
9630
|
return this.pv;
|
|
9631
|
-
var
|
|
9632
|
-
|
|
9631
|
+
var x, d;
|
|
9632
|
+
C ? (b ? x = Math.abs(this.elem.comp.globalData.frameRate * b) : x = Math.max(0, this.elem.data.op - g), d = g + x) : ((!b || b > A.length - 1) && (b = A.length - 1), d = A[b].t, x = d - g);
|
|
9633
9633
|
var S, T, E;
|
|
9634
9634
|
if (p === "pingpong") {
|
|
9635
|
-
var _ = Math.floor((g - y) /
|
|
9635
|
+
var _ = Math.floor((g - y) / x);
|
|
9636
9636
|
if (_ % 2 === 0)
|
|
9637
|
-
return this.getValueAtTime(((g - y) %
|
|
9637
|
+
return this.getValueAtTime(((g - y) % x + g) / this.comp.globalData.frameRate, 0);
|
|
9638
9638
|
} else if (p === "offset") {
|
|
9639
|
-
var V = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), B = this.getValueAtTime(d / this.comp.globalData.frameRate, 0), $ = this.getValueAtTime((
|
|
9639
|
+
var V = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), B = this.getValueAtTime(d / this.comp.globalData.frameRate, 0), $ = this.getValueAtTime((x - (g - y) % x + g) / this.comp.globalData.frameRate, 0), Z = Math.floor((g - y) / x) + 1;
|
|
9640
9640
|
if (this.pv.length) {
|
|
9641
9641
|
for (E = new Array(V.length), T = E.length, S = 0; S < T; S += 1)
|
|
9642
9642
|
E[S] = $[S] - (B[S] - V[S]) * Z;
|
|
@@ -9652,22 +9652,22 @@ var lottie$1 = { exports: {} };
|
|
|
9652
9652
|
}
|
|
9653
9653
|
return D + (D - X) * (g - y) / 1e-3;
|
|
9654
9654
|
}
|
|
9655
|
-
return this.getValueAtTime((
|
|
9655
|
+
return this.getValueAtTime((x - ((g - y) % x + g)) / this.comp.globalData.frameRate, 0);
|
|
9656
9656
|
}
|
|
9657
9657
|
function i(p, b) {
|
|
9658
9658
|
if (!this.k)
|
|
9659
9659
|
return this.pv;
|
|
9660
9660
|
if (p = (p || 0.4) * 0.5, b = Math.floor(b || 5), b <= 1)
|
|
9661
9661
|
return this.pv;
|
|
9662
|
-
var
|
|
9662
|
+
var C = this.comp.renderedFrame / this.comp.globalData.frameRate, y = C - p, A = C + p, g = b > 1 ? (A - y) / (b - 1) : 1, x = 0, d = 0, S;
|
|
9663
9663
|
this.pv.length ? S = createTypedArray("float32", this.pv.length) : S = 0;
|
|
9664
|
-
for (var T;
|
|
9665
|
-
if (T = this.getValueAtTime(y +
|
|
9664
|
+
for (var T; x < b; ) {
|
|
9665
|
+
if (T = this.getValueAtTime(y + x * g), this.pv.length)
|
|
9666
9666
|
for (d = 0; d < this.pv.length; d += 1)
|
|
9667
9667
|
S[d] += T[d];
|
|
9668
9668
|
else
|
|
9669
9669
|
S += T;
|
|
9670
|
-
|
|
9670
|
+
x += 1;
|
|
9671
9671
|
}
|
|
9672
9672
|
if (this.pv.length)
|
|
9673
9673
|
for (d = 0; d < this.pv.length; d += 1)
|
|
@@ -9682,8 +9682,8 @@ var lottie$1 = { exports: {} };
|
|
|
9682
9682
|
});
|
|
9683
9683
|
var b = this._transformCachingAtTime.v;
|
|
9684
9684
|
if (b.cloneFromProps(this.pre.props), this.appliedTransformations < 1) {
|
|
9685
|
-
var
|
|
9686
|
-
b.translate(-
|
|
9685
|
+
var C = this.a.getValueAtTime(p);
|
|
9686
|
+
b.translate(-C[0] * this.a.mult, -C[1] * this.a.mult, C[2] * this.a.mult);
|
|
9687
9687
|
}
|
|
9688
9688
|
if (this.appliedTransformations < 2) {
|
|
9689
9689
|
var y = this.s.getValueAtTime(p);
|
|
@@ -9694,8 +9694,8 @@ var lottie$1 = { exports: {} };
|
|
|
9694
9694
|
b.skewFromAxis(-A * this.sk.mult, g * this.sa.mult);
|
|
9695
9695
|
}
|
|
9696
9696
|
if (this.r && this.appliedTransformations < 4) {
|
|
9697
|
-
var
|
|
9698
|
-
b.rotate(-
|
|
9697
|
+
var x = this.r.getValueAtTime(p);
|
|
9698
|
+
b.rotate(-x * this.r.mult);
|
|
9699
9699
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
9700
9700
|
var d = this.rz.getValueAtTime(p), S = this.ry.getValueAtTime(p), T = this.rx.getValueAtTime(p), E = this.or.getValueAtTime(p);
|
|
9701
9701
|
b.rotateZ(-d * this.rz.mult).rotateY(S * this.ry.mult).rotateX(T * this.rx.mult).rotateZ(-E[2] * this.or.mult).rotateY(E[1] * this.or.mult).rotateX(E[0] * this.or.mult);
|
|
@@ -9717,19 +9717,19 @@ var lottie$1 = { exports: {} };
|
|
|
9717
9717
|
return this.v.clone(new Matrix());
|
|
9718
9718
|
}
|
|
9719
9719
|
var a = TransformPropertyFactory.getTransformProperty;
|
|
9720
|
-
TransformPropertyFactory.getTransformProperty = function(p, b,
|
|
9721
|
-
var y = a(p, b,
|
|
9720
|
+
TransformPropertyFactory.getTransformProperty = function(p, b, C) {
|
|
9721
|
+
var y = a(p, b, C);
|
|
9722
9722
|
return y.dynamicProperties.length ? y.getValueAtTime = n.bind(y) : y.getValueAtTime = s.bind(y), y.setGroupProperty = expressionHelpers.setGroupProperty, y;
|
|
9723
9723
|
};
|
|
9724
9724
|
var o = PropertyFactory.getProp;
|
|
9725
|
-
PropertyFactory.getProp = function(p, b,
|
|
9726
|
-
var g = o(p, b,
|
|
9725
|
+
PropertyFactory.getProp = function(p, b, C, y, A) {
|
|
9726
|
+
var g = o(p, b, C, y, A);
|
|
9727
9727
|
g.kf ? g.getValueAtTime = expressionHelpers.getValueAtTime.bind(g) : g.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(g), g.setGroupProperty = expressionHelpers.setGroupProperty, g.loopOut = e, g.loopIn = t, g.smooth = i, g.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(g), g.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(g), g.numKeys = b.a === 1 ? b.k.length : 0, g.propertyIndex = b.ix;
|
|
9728
|
-
var
|
|
9729
|
-
return
|
|
9728
|
+
var x = 0;
|
|
9729
|
+
return C !== 0 && (x = createTypedArray("float32", b.a === 1 ? b.k[0].s.length : b.k.length)), g._cachingAtTime = {
|
|
9730
9730
|
lastFrame: initialDefaultFrame,
|
|
9731
9731
|
lastIndex: 0,
|
|
9732
|
-
value:
|
|
9732
|
+
value: x
|
|
9733
9733
|
}, expressionHelpers.searchExpressions(p, b, g), g.k && A.addDynamicProperty(g), g;
|
|
9734
9734
|
};
|
|
9735
9735
|
function c(p) {
|
|
@@ -9743,13 +9743,13 @@ var lottie$1 = { exports: {} };
|
|
|
9743
9743
|
function u() {
|
|
9744
9744
|
}
|
|
9745
9745
|
u.prototype = {
|
|
9746
|
-
vertices: function(b,
|
|
9746
|
+
vertices: function(b, C) {
|
|
9747
9747
|
this.k && this.getValue();
|
|
9748
9748
|
var y = this.v;
|
|
9749
|
-
|
|
9750
|
-
var A, g = y._length,
|
|
9749
|
+
C !== void 0 && (y = this.getValueAtTime(C, 0));
|
|
9750
|
+
var A, g = y._length, x = y[b], d = y.v, S = createSizedArray(g);
|
|
9751
9751
|
for (A = 0; A < g; A += 1)
|
|
9752
|
-
b === "i" || b === "o" ? S[A] = [
|
|
9752
|
+
b === "i" || b === "o" ? S[A] = [x[A][0] - d[A][0], x[A][1] - d[A][1]] : S[A] = [x[A][0], x[A][1]];
|
|
9753
9753
|
return S;
|
|
9754
9754
|
},
|
|
9755
9755
|
points: function(b) {
|
|
@@ -9764,12 +9764,12 @@ var lottie$1 = { exports: {} };
|
|
|
9764
9764
|
isClosed: function() {
|
|
9765
9765
|
return this.v.c;
|
|
9766
9766
|
},
|
|
9767
|
-
pointOnPath: function(b,
|
|
9767
|
+
pointOnPath: function(b, C) {
|
|
9768
9768
|
var y = this.v;
|
|
9769
|
-
|
|
9770
|
-
for (var A = this._segmentsLength, g = A.lengths,
|
|
9771
|
-
if (T + g[d].addedLength >
|
|
9772
|
-
var _ = d, V = y.c && d === S - 1 ? 0 : d + 1, B = (
|
|
9769
|
+
C !== void 0 && (y = this.getValueAtTime(C, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(y));
|
|
9770
|
+
for (var A = this._segmentsLength, g = A.lengths, x = A.totalLength * b, d = 0, S = g.length, T = 0, E; d < S; ) {
|
|
9771
|
+
if (T + g[d].addedLength > x) {
|
|
9772
|
+
var _ = d, V = y.c && d === S - 1 ? 0 : d + 1, B = (x - T) / g[d].addedLength;
|
|
9773
9773
|
E = bez.getPointInSegment(y.v[_], y.v[V], y.o[_], y.i[V], B, g[d]);
|
|
9774
9774
|
break;
|
|
9775
9775
|
} else
|
|
@@ -9778,27 +9778,27 @@ var lottie$1 = { exports: {} };
|
|
|
9778
9778
|
}
|
|
9779
9779
|
return E || (E = y.c ? [y.v[0][0], y.v[0][1]] : [y.v[y._length - 1][0], y.v[y._length - 1][1]]), E;
|
|
9780
9780
|
},
|
|
9781
|
-
vectorOnPath: function(b,
|
|
9781
|
+
vectorOnPath: function(b, C, y) {
|
|
9782
9782
|
b == 1 ? b = this.v.c : b == 0 && (b = 0.999);
|
|
9783
|
-
var A = this.pointOnPath(b,
|
|
9783
|
+
var A = this.pointOnPath(b, C), g = this.pointOnPath(b + 1e-3, C), x = g[0] - A[0], d = g[1] - A[1], S = Math.sqrt(Math.pow(x, 2) + Math.pow(d, 2));
|
|
9784
9784
|
if (S === 0)
|
|
9785
9785
|
return [0, 0];
|
|
9786
|
-
var T = y === "tangent" ? [
|
|
9786
|
+
var T = y === "tangent" ? [x / S, d / S] : [-d / S, x / S];
|
|
9787
9787
|
return T;
|
|
9788
9788
|
},
|
|
9789
|
-
tangentOnPath: function(b,
|
|
9790
|
-
return this.vectorOnPath(b,
|
|
9789
|
+
tangentOnPath: function(b, C) {
|
|
9790
|
+
return this.vectorOnPath(b, C, "tangent");
|
|
9791
9791
|
},
|
|
9792
|
-
normalOnPath: function(b,
|
|
9793
|
-
return this.vectorOnPath(b,
|
|
9792
|
+
normalOnPath: function(b, C) {
|
|
9793
|
+
return this.vectorOnPath(b, C, "normal");
|
|
9794
9794
|
},
|
|
9795
9795
|
setGroupProperty: expressionHelpers.setGroupProperty,
|
|
9796
9796
|
getValueAtTime: expressionHelpers.getStaticValueAtTime
|
|
9797
9797
|
}, extendPrototype([u], l), extendPrototype([u], f), f.prototype.getValueAtTime = c, f.prototype.initiateExpression = ExpressionManager.initiateExpression;
|
|
9798
9798
|
var m = ShapePropertyFactory.getShapeProp;
|
|
9799
|
-
ShapePropertyFactory.getShapeProp = function(p, b,
|
|
9800
|
-
var g = m(p, b,
|
|
9801
|
-
return g.propertyIndex = b.ix, g.lock = !1,
|
|
9799
|
+
ShapePropertyFactory.getShapeProp = function(p, b, C, y, A) {
|
|
9800
|
+
var g = m(p, b, C, y, A);
|
|
9801
|
+
return g.propertyIndex = b.ix, g.lock = !1, C === 3 ? expressionHelpers.searchExpressions(p, b.pt, g) : C === 4 && expressionHelpers.searchExpressions(p, b.ks, g), g.k && p.addDynamicProperty(g), g;
|
|
9802
9802
|
};
|
|
9803
9803
|
}
|
|
9804
9804
|
function initialize$1() {
|
|
@@ -9936,8 +9936,8 @@ var lottie$1 = { exports: {} };
|
|
|
9936
9936
|
}, SVGProLevelsFilter.prototype.getTableValue = function(e, t, i, n, s) {
|
|
9937
9937
|
for (var a = 0, o = 256, c, l = Math.min(e, t), f = Math.max(e, t), u = Array.call(null, {
|
|
9938
9938
|
length: o
|
|
9939
|
-
}), m, p = 0, b = s - n,
|
|
9940
|
-
c = a / 256, c <= l ? m =
|
|
9939
|
+
}), m, p = 0, b = s - n, C = t - e; a <= 256; )
|
|
9940
|
+
c = a / 256, c <= l ? m = C < 0 ? s : n : c >= f ? m = C < 0 ? n : s : m = n + b * Math.pow((c - e) / C, 1 / i), u[p] = m, p += 1, a += 256 / (o - 1);
|
|
9941
9941
|
return u.join(" ");
|
|
9942
9942
|
}, SVGProLevelsFilter.prototype.renderFrame = function(e) {
|
|
9943
9943
|
if (e || this.filterManager._mdf) {
|
|
@@ -10148,9 +10148,9 @@ function _toPropertyKey(e) {
|
|
|
10148
10148
|
return typeof t == "symbol" ? t : String(t);
|
|
10149
10149
|
}
|
|
10150
10150
|
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) {
|
|
10151
|
-
var n = t.animationData, s = t.loop, a = t.autoplay, o = t.initialSegment, c = t.onComplete, l = t.onLoopComplete, f = t.onEnterFrame, u = t.onSegmentStart, m = t.onConfigReady, p = t.onDataReady, b = t.onDataFailed,
|
|
10151
|
+
var n = t.animationData, s = t.loop, a = t.autoplay, o = t.initialSegment, c = t.onComplete, l = t.onLoopComplete, f = t.onEnterFrame, u = t.onSegmentStart, m = t.onConfigReady, p = t.onDataReady, b = t.onDataFailed, C = t.onLoadedImages, y = t.onDOMLoaded, A = t.onDestroy;
|
|
10152
10152
|
t.lottieRef, t.renderer, t.name, t.assetsPath, t.rendererSettings;
|
|
10153
|
-
var g = _objectWithoutProperties(t, _excluded$1),
|
|
10153
|
+
var g = _objectWithoutProperties(t, _excluded$1), x = useState(!1), d = _slicedToArray(x, 2), S = d[0], T = d[1], E = useRef(), _ = useRef(null), V = function() {
|
|
10154
10154
|
var G;
|
|
10155
10155
|
(G = E.current) === null || G === void 0 || G.play();
|
|
10156
10156
|
}, B = function() {
|
|
@@ -10235,7 +10235,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10235
10235
|
handler: b
|
|
10236
10236
|
}, {
|
|
10237
10237
|
name: "loaded_images",
|
|
10238
|
-
handler:
|
|
10238
|
+
handler: C
|
|
10239
10239
|
}, {
|
|
10240
10240
|
name: "DOMLoaded",
|
|
10241
10241
|
handler: y
|
|
@@ -10266,7 +10266,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10266
10266
|
});
|
|
10267
10267
|
};
|
|
10268
10268
|
}
|
|
10269
|
-
}, [c, l, f, u, m, p, b,
|
|
10269
|
+
}, [c, l, f, u, m, p, b, C, y, A]);
|
|
10270
10270
|
var R = /* @__PURE__ */ React__default.createElement("div", _objectSpread2({
|
|
10271
10271
|
style: i,
|
|
10272
10272
|
ref: _
|
|
@@ -10308,28 +10308,28 @@ var useInitInteractivity = function e(t) {
|
|
|
10308
10308
|
n.stop();
|
|
10309
10309
|
var c = function() {
|
|
10310
10310
|
var u = null, m = function() {
|
|
10311
|
-
var b = getContainerVisibility(o),
|
|
10311
|
+
var b = getContainerVisibility(o), C = a.find(function(A) {
|
|
10312
10312
|
var g = A.visibility;
|
|
10313
10313
|
return g && b >= g[0] && b <= g[1];
|
|
10314
10314
|
});
|
|
10315
|
-
if (
|
|
10316
|
-
if (
|
|
10317
|
-
var y =
|
|
10315
|
+
if (C) {
|
|
10316
|
+
if (C.type === "seek" && C.visibility && C.frames.length === 2) {
|
|
10317
|
+
var y = C.frames[0] + Math.ceil((b - C.visibility[0]) / (C.visibility[1] - C.visibility[0]) * C.frames[1]);
|
|
10318
10318
|
//! goToAndStop must be relative to the start of the current segment
|
|
10319
10319
|
n.goToAndStop(y - n.firstFrame - 1, !0);
|
|
10320
10320
|
}
|
|
10321
|
-
|
|
10321
|
+
C.type === "loop" && (u === null || u !== C.frames || n.isPaused) && (n.playSegments(C.frames, !0), u = C.frames), C.type === "play" && n.isPaused && (n.resetSegments(!0), n.play()), C.type === "stop" && n.goToAndStop(C.frames[0] - n.firstFrame - 1, !0);
|
|
10322
10322
|
}
|
|
10323
10323
|
};
|
|
10324
10324
|
return document.addEventListener("scroll", m), function() {
|
|
10325
10325
|
document.removeEventListener("scroll", m);
|
|
10326
10326
|
};
|
|
10327
10327
|
}, l = function() {
|
|
10328
|
-
var u = function(
|
|
10329
|
-
var A =
|
|
10328
|
+
var u = function(C, y) {
|
|
10329
|
+
var A = C, g = y;
|
|
10330
10330
|
if (A !== -1 && g !== -1) {
|
|
10331
|
-
var
|
|
10332
|
-
A =
|
|
10331
|
+
var x = getContainerCursorPosition(o, A, g);
|
|
10332
|
+
A = x.x, g = x.y;
|
|
10333
10333
|
}
|
|
10334
10334
|
var d = a.find(function(E) {
|
|
10335
10335
|
var _ = E.position;
|
|
@@ -10342,8 +10342,8 @@ var useInitInteractivity = function e(t) {
|
|
|
10342
10342
|
}
|
|
10343
10343
|
d.type === "loop" && n.playSegments(d.frames, !0), d.type === "play" && (n.isPaused && n.resetSegments(!1), n.playSegments(d.frames)), d.type === "stop" && n.goToAndStop(d.frames[0], !0);
|
|
10344
10344
|
}
|
|
10345
|
-
}, m = function(
|
|
10346
|
-
u(
|
|
10345
|
+
}, m = function(C) {
|
|
10346
|
+
u(C.clientX, C.clientY);
|
|
10347
10347
|
}, p = function() {
|
|
10348
10348
|
u(-1, -1);
|
|
10349
10349
|
};
|
|
@@ -10368,7 +10368,7 @@ var useInitInteractivity = function e(t) {
|
|
|
10368
10368
|
wrapperRef: c
|
|
10369
10369
|
}), o;
|
|
10370
10370
|
}, _excluded = ["style", "interactivity"], Lottie = function e(t) {
|
|
10371
|
-
var i, n, s, a = t.style, o = t.interactivity, c = _objectWithoutProperties(t, _excluded), l = useLottie(c, a), f = l.View, u = l.play, m = l.stop, p = l.pause, b = l.setSpeed,
|
|
10371
|
+
var i, n, s, a = t.style, o = t.interactivity, c = _objectWithoutProperties(t, _excluded), l = useLottie(c, a), f = l.View, u = l.play, m = l.stop, p = l.pause, b = l.setSpeed, C = l.goToAndStop, y = l.goToAndPlay, A = l.setDirection, g = l.playSegments, x = l.setSubframe, d = l.getDuration, S = l.destroy, T = l.animationContainerRef, E = l.animationLoaded, _ = l.animationItem;
|
|
10372
10372
|
return useEffect(function() {
|
|
10373
10373
|
t.lottieRef && (t.lottieRef.current = {
|
|
10374
10374
|
play: u,
|
|
@@ -10376,10 +10376,10 @@ var useInitInteractivity = function e(t) {
|
|
|
10376
10376
|
pause: p,
|
|
10377
10377
|
setSpeed: b,
|
|
10378
10378
|
goToAndPlay: y,
|
|
10379
|
-
goToAndStop:
|
|
10379
|
+
goToAndStop: C,
|
|
10380
10380
|
setDirection: A,
|
|
10381
10381
|
playSegments: g,
|
|
10382
|
-
setSubframe:
|
|
10382
|
+
setSubframe: x,
|
|
10383
10383
|
getDuration: d,
|
|
10384
10384
|
destroy: S,
|
|
10385
10385
|
animationContainerRef: T,
|
|
@@ -10393,11 +10393,11 @@ var useInitInteractivity = function e(t) {
|
|
|
10393
10393
|
stop: m,
|
|
10394
10394
|
pause: p,
|
|
10395
10395
|
setSpeed: b,
|
|
10396
|
-
goToAndStop:
|
|
10396
|
+
goToAndStop: C,
|
|
10397
10397
|
goToAndPlay: y,
|
|
10398
10398
|
setDirection: A,
|
|
10399
10399
|
playSegments: g,
|
|
10400
|
-
setSubframe:
|
|
10400
|
+
setSubframe: x,
|
|
10401
10401
|
getDuration: d,
|
|
10402
10402
|
destroy: S,
|
|
10403
10403
|
animationContainerRef: T,
|
|
@@ -11140,11 +11140,11 @@ var effectCar = createSidecarMedium(), nothing = function() {
|
|
|
11140
11140
|
onScrollCapture: nothing,
|
|
11141
11141
|
onWheelCapture: nothing,
|
|
11142
11142
|
onTouchMoveCapture: nothing
|
|
11143
|
-
}), s = n[0], a = n[1], o = e.forwardProps, c = e.children, l = e.className, f = e.removeScrollBar, u = e.enabled, m = e.shards, p = e.sideCar, b = e.noIsolation,
|
|
11143
|
+
}), s = n[0], a = n[1], o = e.forwardProps, c = e.children, l = e.className, f = e.removeScrollBar, u = e.enabled, m = e.shards, p = e.sideCar, b = e.noIsolation, C = e.inert, y = e.allowPinchZoom, A = e.as, g = A === void 0 ? "div" : A, x = e.gapMode, d = __rest$1(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = p, T = useMergeRefs([i, t]), E = __assign$1(__assign$1({}, d), s);
|
|
11144
11144
|
return React.createElement(
|
|
11145
11145
|
React.Fragment,
|
|
11146
11146
|
null,
|
|
11147
|
-
u && React.createElement(S, { sideCar: effectCar, removeScrollBar: f, shards: m, noIsolation: b, inert:
|
|
11147
|
+
u && React.createElement(S, { sideCar: effectCar, removeScrollBar: f, shards: m, noIsolation: b, inert: C, setCallbacks: a, allowPinchZoom: !!y, lockRef: i, gapMode: x }),
|
|
11148
11148
|
o ? React.cloneElement(React.Children.only(c), __assign$1(__assign$1({}, E), { ref: T })) : React.createElement(g, __assign$1({}, E, { className: l, ref: T }), c)
|
|
11149
11149
|
);
|
|
11150
11150
|
});
|
|
@@ -11345,8 +11345,8 @@ var nonPassive = passiveSupported ? { passive: !1 } : !1, alwaysContainsScroll =
|
|
|
11345
11345
|
}, handleScroll = function(e, t, i, n, s) {
|
|
11346
11346
|
var a = getDirectionFactor(e, window.getComputedStyle(t).direction), o = a * n, c = i.target, l = t.contains(c), f = !1, u = o > 0, m = 0, p = 0;
|
|
11347
11347
|
do {
|
|
11348
|
-
var b = getScrollVariables(e, c),
|
|
11349
|
-
(
|
|
11348
|
+
var b = getScrollVariables(e, c), C = b[0], y = b[1], A = b[2], g = y - A - a * C;
|
|
11349
|
+
(C || g) && elementCouldBeScrolled(e, c) && (m += g, p += C), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
|
|
11350
11350
|
} while (
|
|
11351
11351
|
// portaled content
|
|
11352
11352
|
!l && c !== document.body || // self content
|
|
@@ -11387,7 +11387,7 @@ function RemoveScrollSideCar(e) {
|
|
|
11387
11387
|
var c = React.useCallback(function(y, A) {
|
|
11388
11388
|
if ("touches" in y && y.touches.length === 2 || y.type === "wheel" && y.ctrlKey)
|
|
11389
11389
|
return !o.current.allowPinchZoom;
|
|
11390
|
-
var g = getTouchXY(y),
|
|
11390
|
+
var g = getTouchXY(y), x = i.current, d = "deltaX" in y ? y.deltaX : x[0] - g[0], S = "deltaY" in y ? y.deltaY : x[1] - g[1], T, E = y.target, _ = Math.abs(d) > Math.abs(S) ? "h" : "v";
|
|
11391
11391
|
if ("touches" in y && _ === "h" && E.type === "range")
|
|
11392
11392
|
return !1;
|
|
11393
11393
|
var V = locationCouldBeScrolled(_, E);
|
|
@@ -11402,22 +11402,22 @@ function RemoveScrollSideCar(e) {
|
|
|
11402
11402
|
}, []), l = React.useCallback(function(y) {
|
|
11403
11403
|
var A = y;
|
|
11404
11404
|
if (!(!lockStack.length || lockStack[lockStack.length - 1] !== a)) {
|
|
11405
|
-
var g = "deltaY" in A ? getDeltaXY(A) : getTouchXY(A),
|
|
11405
|
+
var g = "deltaY" in A ? getDeltaXY(A) : getTouchXY(A), x = t.current.filter(function(T) {
|
|
11406
11406
|
return T.name === A.type && (T.target === A.target || A.target === T.shadowParent) && deltaCompare(T.delta, g);
|
|
11407
11407
|
})[0];
|
|
11408
|
-
if (
|
|
11408
|
+
if (x && x.should) {
|
|
11409
11409
|
A.cancelable && A.preventDefault();
|
|
11410
11410
|
return;
|
|
11411
11411
|
}
|
|
11412
|
-
if (!
|
|
11412
|
+
if (!x) {
|
|
11413
11413
|
var d = (o.current.shards || []).map(extractRef).filter(Boolean).filter(function(T) {
|
|
11414
11414
|
return T.contains(A.target);
|
|
11415
11415
|
}), S = d.length > 0 ? c(A, d[0]) : !o.current.noIsolation;
|
|
11416
11416
|
S && A.cancelable && A.preventDefault();
|
|
11417
11417
|
}
|
|
11418
11418
|
}
|
|
11419
|
-
}, []), f = React.useCallback(function(y, A, g,
|
|
11420
|
-
var d = { name: y, delta: A, target: g, should:
|
|
11419
|
+
}, []), f = React.useCallback(function(y, A, g, x) {
|
|
11420
|
+
var d = { name: y, delta: A, target: g, should: x, shadowParent: getOutermostShadowParent(g) };
|
|
11421
11421
|
t.current.push(d), setTimeout(function() {
|
|
11422
11422
|
t.current = t.current.filter(function(S) {
|
|
11423
11423
|
return S !== d;
|
|
@@ -11441,11 +11441,11 @@ function RemoveScrollSideCar(e) {
|
|
|
11441
11441
|
}), document.removeEventListener("wheel", l, nonPassive), document.removeEventListener("touchmove", l, nonPassive), document.removeEventListener("touchstart", u, nonPassive);
|
|
11442
11442
|
};
|
|
11443
11443
|
}, []);
|
|
11444
|
-
var b = e.removeScrollBar,
|
|
11444
|
+
var b = e.removeScrollBar, C = e.inert;
|
|
11445
11445
|
return React.createElement(
|
|
11446
11446
|
React.Fragment,
|
|
11447
11447
|
null,
|
|
11448
|
-
|
|
11448
|
+
C ? React.createElement(a, { styles: generateStyle(s) }) : null,
|
|
11449
11449
|
b ? React.createElement(RemoveScrollBar, { gapMode: e.gapMode }) : null
|
|
11450
11450
|
);
|
|
11451
11451
|
}
|
|
@@ -14229,14 +14229,22 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
|
|
|
14229
14229
|
gradientHeight: n = 24,
|
|
14230
14230
|
...s
|
|
14231
14231
|
}) => {
|
|
14232
|
-
const [a, o] = useState(!0), [c, l] = useState(!0), f = useRef(null), u = () => {
|
|
14232
|
+
const [a, o] = useState(!0), [c, l] = useState(!0), f = useRef(null), u = useRef(null), m = () => {
|
|
14233
14233
|
if (f.current) {
|
|
14234
|
-
const { scrollTop:
|
|
14235
|
-
o(
|
|
14234
|
+
const { scrollTop: p, scrollHeight: b, clientHeight: C } = f.current;
|
|
14235
|
+
o(p + C < b), l(p > 0);
|
|
14236
14236
|
}
|
|
14237
14237
|
};
|
|
14238
14238
|
return useEffect(() => {
|
|
14239
|
-
u
|
|
14239
|
+
const p = f.current, b = u.current;
|
|
14240
|
+
if (!p || !b) return;
|
|
14241
|
+
m();
|
|
14242
|
+
const C = new ResizeObserver(() => {
|
|
14243
|
+
m();
|
|
14244
|
+
});
|
|
14245
|
+
return C.observe(p), C.observe(b), () => {
|
|
14246
|
+
C.disconnect();
|
|
14247
|
+
};
|
|
14240
14248
|
}, []), /* @__PURE__ */ jsxs(
|
|
14241
14249
|
"div",
|
|
14242
14250
|
{
|
|
@@ -14251,9 +14259,9 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
|
|
|
14251
14259
|
"div",
|
|
14252
14260
|
{
|
|
14253
14261
|
className: "gf-h-full gf-w-full gf-overflow-auto gf-no-scrollbar",
|
|
14254
|
-
onScroll:
|
|
14262
|
+
onScroll: m,
|
|
14255
14263
|
ref: f,
|
|
14256
|
-
children: e
|
|
14264
|
+
children: /* @__PURE__ */ jsx("div", { ref: u, children: e })
|
|
14257
14265
|
}
|
|
14258
14266
|
),
|
|
14259
14267
|
c && /* @__PURE__ */ jsx(
|
|
@@ -14423,8 +14431,8 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
|
|
|
14423
14431
|
var build = { exports: {} };
|
|
14424
14432
|
(() => {
|
|
14425
14433
|
var e = { 181: (s, a, o) => {
|
|
14426
|
-
var c = /^\s+|\s+$/g, l = /^[-+]0x[0-9a-f]+$/i, f = /^0b[01]+$/i, u = /^0o[0-7]+$/i, m = parseInt, p = typeof o.g == "object" && o.g && o.g.Object === Object && o.g, b = typeof self == "object" && self && self.Object === Object && self,
|
|
14427
|
-
return
|
|
14434
|
+
var c = /^\s+|\s+$/g, l = /^[-+]0x[0-9a-f]+$/i, f = /^0b[01]+$/i, u = /^0o[0-7]+$/i, m = parseInt, p = typeof o.g == "object" && o.g && o.g.Object === Object && o.g, b = typeof self == "object" && self && self.Object === Object && self, C = p || b || Function("return this")(), y = Object.prototype.toString, A = Math.max, g = Math.min, x = function() {
|
|
14435
|
+
return C.Date.now();
|
|
14428
14436
|
};
|
|
14429
14437
|
function d(T) {
|
|
14430
14438
|
var E = typeof T;
|
|
@@ -14458,7 +14466,7 @@ var build = { exports: {} };
|
|
|
14458
14466
|
return X === void 0 || K >= E || K < 0 || L && U - q >= $;
|
|
14459
14467
|
}
|
|
14460
14468
|
function R() {
|
|
14461
|
-
var U =
|
|
14469
|
+
var U = x();
|
|
14462
14470
|
if (M(U)) return I(U);
|
|
14463
14471
|
D = setTimeout(R, function(K) {
|
|
14464
14472
|
var J = E - (K - X);
|
|
@@ -14469,7 +14477,7 @@ var build = { exports: {} };
|
|
|
14469
14477
|
return D = void 0, k && V ? P(U) : (V = B = void 0, Z);
|
|
14470
14478
|
}
|
|
14471
14479
|
function G() {
|
|
14472
|
-
var U =
|
|
14480
|
+
var U = x(), K = M(U);
|
|
14473
14481
|
if (V = arguments, B = this, X = U, K) {
|
|
14474
14482
|
if (D === void 0) return function(J) {
|
|
14475
14483
|
return q = J, D = setTimeout(R, E), N ? P(J) : Z;
|
|
@@ -14481,11 +14489,11 @@ var build = { exports: {} };
|
|
|
14481
14489
|
return E = S(E) || 0, d(_) && (N = !!_.leading, $ = (L = "maxWait" in _) ? A(S(_.maxWait) || 0, E) : $, k = "trailing" in _ ? !!_.trailing : k), G.cancel = function() {
|
|
14482
14490
|
D !== void 0 && clearTimeout(D), q = 0, V = X = B = D = void 0;
|
|
14483
14491
|
}, G.flush = function() {
|
|
14484
|
-
return D === void 0 ? Z : I(
|
|
14492
|
+
return D === void 0 ? Z : I(x());
|
|
14485
14493
|
}, G;
|
|
14486
14494
|
};
|
|
14487
14495
|
}, 858: (s, a, o) => {
|
|
14488
|
-
var c = "Expected a function", l = NaN, f = "[object Symbol]", u = /^\s+|\s+$/g, m = /^[-+]0x[0-9a-f]+$/i, p = /^0b[01]+$/i, b = /^0o[0-7]+$/i,
|
|
14496
|
+
var c = "Expected a function", l = NaN, f = "[object Symbol]", u = /^\s+|\s+$/g, m = /^[-+]0x[0-9a-f]+$/i, p = /^0b[01]+$/i, b = /^0o[0-7]+$/i, C = parseInt, y = typeof o.g == "object" && o.g && o.g.Object === Object && o.g, A = typeof self == "object" && self && self.Object === Object && self, g = y || A || Function("return this")(), x = Object.prototype.toString, d = Math.max, S = Math.min, T = function() {
|
|
14489
14497
|
return g.Date.now();
|
|
14490
14498
|
};
|
|
14491
14499
|
function E(V) {
|
|
@@ -14497,7 +14505,7 @@ var build = { exports: {} };
|
|
|
14497
14505
|
if (function(Z) {
|
|
14498
14506
|
return typeof Z == "symbol" || /* @__PURE__ */ function(D) {
|
|
14499
14507
|
return !!D && typeof D == "object";
|
|
14500
|
-
}(Z) &&
|
|
14508
|
+
}(Z) && x.call(Z) == f;
|
|
14501
14509
|
}(V)) return l;
|
|
14502
14510
|
if (E(V)) {
|
|
14503
14511
|
var B = typeof V.valueOf == "function" ? V.valueOf() : V;
|
|
@@ -14506,7 +14514,7 @@ var build = { exports: {} };
|
|
|
14506
14514
|
if (typeof V != "string") return V === 0 ? V : +V;
|
|
14507
14515
|
V = V.replace(u, "");
|
|
14508
14516
|
var $ = p.test(V);
|
|
14509
|
-
return $ || b.test(V) ?
|
|
14517
|
+
return $ || b.test(V) ? C(V.slice(2), $ ? 2 : 8) : m.test(V) ? l : +V;
|
|
14510
14518
|
}
|
|
14511
14519
|
s.exports = function(V, B, $) {
|
|
14512
14520
|
var Z = !0, D = !0;
|
|
@@ -14557,8 +14565,8 @@ var build = { exports: {} };
|
|
|
14557
14565
|
function f() {
|
|
14558
14566
|
}
|
|
14559
14567
|
f.resetWarningCache = l, s.exports = function() {
|
|
14560
|
-
function u(b,
|
|
14561
|
-
if (
|
|
14568
|
+
function u(b, C, y, A, g, x) {
|
|
14569
|
+
if (x !== c) {
|
|
14562
14570
|
var d = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
|
14563
14571
|
throw d.name = "Invariant Violation", d;
|
|
14564
14572
|
}
|
|
@@ -14651,15 +14659,15 @@ var build = { exports: {} };
|
|
|
14651
14659
|
if (z === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
14652
14660
|
return z;
|
|
14653
14661
|
}(W);
|
|
14654
|
-
}(H,
|
|
14662
|
+
}(H, C() ? Reflect.construct(F, O || [], y(H).constructor) : F.apply(H, O));
|
|
14655
14663
|
}
|
|
14656
|
-
function
|
|
14664
|
+
function C() {
|
|
14657
14665
|
try {
|
|
14658
14666
|
var H = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
14659
14667
|
}));
|
|
14660
14668
|
} catch {
|
|
14661
14669
|
}
|
|
14662
|
-
return (
|
|
14670
|
+
return (C = function() {
|
|
14663
14671
|
return !!H;
|
|
14664
14672
|
})();
|
|
14665
14673
|
}
|
|
@@ -14677,7 +14685,7 @@ var build = { exports: {} };
|
|
|
14677
14685
|
H.forEach(function(F) {
|
|
14678
14686
|
F.isIntersecting && F.target.onVisible();
|
|
14679
14687
|
});
|
|
14680
|
-
},
|
|
14688
|
+
}, x = {}, d = function(H) {
|
|
14681
14689
|
function F(j) {
|
|
14682
14690
|
var z;
|
|
14683
14691
|
if (function(Q, ie) {
|
|
@@ -14685,7 +14693,7 @@ var build = { exports: {} };
|
|
|
14685
14693
|
}(this, F), (z = b(this, F, [j])).supportsObserver = !j.scrollPosition && j.useIntersectionObserver && c(), z.supportsObserver) {
|
|
14686
14694
|
var ee = j.threshold;
|
|
14687
14695
|
z.observer = function(Q) {
|
|
14688
|
-
return
|
|
14696
|
+
return x[Q] = x[Q] || new IntersectionObserver(g, { rootMargin: Q + "px" }), x[Q];
|
|
14689
14697
|
}(ee);
|
|
14690
14698
|
}
|
|
14691
14699
|
return z;
|
|
@@ -15434,18 +15442,18 @@ function createRenderBatcher(e, t) {
|
|
|
15434
15442
|
delta: 0,
|
|
15435
15443
|
timestamp: 0,
|
|
15436
15444
|
isProcessing: !1
|
|
15437
|
-
}, a = () => i = !0, o = stepsOrder.reduce((g,
|
|
15445
|
+
}, a = () => i = !0, o = stepsOrder.reduce((g, x) => (g[x] = createRenderStep(a), g), {}), { read: c, resolveKeyframes: l, update: f, preRender: u, render: m, postRender: p } = o, b = () => {
|
|
15438
15446
|
const g = performance.now();
|
|
15439
15447
|
i = !1, s.delta = n ? 1e3 / 60 : Math.max(Math.min(g - s.timestamp, maxElapsed), 1), s.timestamp = g, s.isProcessing = !0, c.process(s), l.process(s), f.process(s), u.process(s), m.process(s), p.process(s), s.isProcessing = !1, i && t && (n = !1, e(b));
|
|
15440
|
-
},
|
|
15448
|
+
}, C = () => {
|
|
15441
15449
|
i = !0, n = !0, s.isProcessing || e(b);
|
|
15442
15450
|
};
|
|
15443
|
-
return { schedule: stepsOrder.reduce((g,
|
|
15444
|
-
const d = o[
|
|
15445
|
-
return g[
|
|
15451
|
+
return { schedule: stepsOrder.reduce((g, x) => {
|
|
15452
|
+
const d = o[x];
|
|
15453
|
+
return g[x] = (S, T = !1, E = !1) => (i || C(), d.schedule(S, T, E)), g;
|
|
15446
15454
|
}, {}), cancel: (g) => {
|
|
15447
|
-
for (let
|
|
15448
|
-
o[stepsOrder[
|
|
15455
|
+
for (let x = 0; x < stepsOrder.length; x++)
|
|
15456
|
+
o[stepsOrder[x]].cancel(g);
|
|
15449
15457
|
}, state: s, steps: o };
|
|
15450
15458
|
}
|
|
15451
15459
|
const { schedule: frame, cancel: cancelFrame, state: frameData, steps } = createRenderBatcher(typeof requestAnimationFrame < "u" ? requestAnimationFrame : noop, !0), isZeroValueString = (e) => /^0[^.\s]+$/u.test(e);
|
|
@@ -15998,11 +16006,11 @@ function findSpring({ duration: e = 800, bounce: t = 0.25, velocity: i = 0, mass
|
|
|
15998
16006
|
warning(e <= secondsToMilliseconds(maxDuration$1), "Spring duration must be 10 seconds or less");
|
|
15999
16007
|
let o = 1 - t;
|
|
16000
16008
|
o = clamp(minDamping, maxDamping, o), e = clamp(minDuration, maxDuration$1, millisecondsToSeconds(e)), o < 1 ? (s = (f) => {
|
|
16001
|
-
const u = f * o, m = u * e, p = u - i, b = calcAngularFreq(f, o),
|
|
16002
|
-
return safeMin - p / b *
|
|
16009
|
+
const u = f * o, m = u * e, p = u - i, b = calcAngularFreq(f, o), C = Math.exp(-m);
|
|
16010
|
+
return safeMin - p / b * C;
|
|
16003
16011
|
}, a = (f) => {
|
|
16004
|
-
const m = f * o * e, p = m * i + i, b = Math.pow(o, 2) * Math.pow(f, 2) * e,
|
|
16005
|
-
return (-s(f) + safeMin > 0 ? -1 : 1) * ((p - b) *
|
|
16012
|
+
const m = f * o * e, p = m * i + i, b = Math.pow(o, 2) * Math.pow(f, 2) * e, C = Math.exp(-m), y = calcAngularFreq(Math.pow(f, 2), o);
|
|
16013
|
+
return (-s(f) + safeMin > 0 ? -1 : 1) * ((p - b) * C) / y;
|
|
16006
16014
|
}) : (s = (f) => {
|
|
16007
16015
|
const u = Math.exp(-f * e), m = (f - i) * e + 1;
|
|
16008
16016
|
return -safeMin + u * m;
|
|
@@ -16063,33 +16071,33 @@ function spring({ keyframes: e, restDelta: t, restSpeed: i, ...n }) {
|
|
|
16063
16071
|
const s = e[0], a = e[e.length - 1], o = { done: !1, value: s }, { stiffness: c, damping: l, mass: f, duration: u, velocity: m, isResolvedFromDuration: p } = getSpringOptions({
|
|
16064
16072
|
...n,
|
|
16065
16073
|
velocity: -millisecondsToSeconds(n.velocity || 0)
|
|
16066
|
-
}), b = m || 0,
|
|
16074
|
+
}), b = m || 0, C = l / (2 * Math.sqrt(c * f)), y = a - s, A = millisecondsToSeconds(Math.sqrt(c / f)), g = Math.abs(y) < 5;
|
|
16067
16075
|
i || (i = g ? 0.01 : 2), t || (t = g ? 5e-3 : 0.5);
|
|
16068
|
-
let
|
|
16069
|
-
if (
|
|
16070
|
-
const d = calcAngularFreq(A,
|
|
16071
|
-
|
|
16072
|
-
const T = Math.exp(-
|
|
16073
|
-
return a - T * ((b +
|
|
16076
|
+
let x;
|
|
16077
|
+
if (C < 1) {
|
|
16078
|
+
const d = calcAngularFreq(A, C);
|
|
16079
|
+
x = (S) => {
|
|
16080
|
+
const T = Math.exp(-C * A * S);
|
|
16081
|
+
return a - T * ((b + C * A * y) / d * Math.sin(d * S) + y * Math.cos(d * S));
|
|
16074
16082
|
};
|
|
16075
|
-
} else if (
|
|
16076
|
-
|
|
16083
|
+
} else if (C === 1)
|
|
16084
|
+
x = (d) => a - Math.exp(-A * d) * (y + (b + A * y) * d);
|
|
16077
16085
|
else {
|
|
16078
|
-
const d = A * Math.sqrt(
|
|
16079
|
-
|
|
16080
|
-
const T = Math.exp(-
|
|
16081
|
-
return a - T * ((b +
|
|
16086
|
+
const d = A * Math.sqrt(C * C - 1);
|
|
16087
|
+
x = (S) => {
|
|
16088
|
+
const T = Math.exp(-C * A * S), E = Math.min(d * S, 300);
|
|
16089
|
+
return a - T * ((b + C * A * y) * Math.sinh(E) + d * y * Math.cosh(E)) / d;
|
|
16082
16090
|
};
|
|
16083
16091
|
}
|
|
16084
16092
|
return {
|
|
16085
16093
|
calculatedDuration: p && u || null,
|
|
16086
16094
|
next: (d) => {
|
|
16087
|
-
const S =
|
|
16095
|
+
const S = x(d);
|
|
16088
16096
|
if (p)
|
|
16089
16097
|
o.done = d >= u;
|
|
16090
16098
|
else {
|
|
16091
16099
|
let T = 0;
|
|
16092
|
-
|
|
16100
|
+
C < 1 && (T = d === 0 ? secondsToMilliseconds(b) : calcGeneratorVelocity(x, d, S));
|
|
16093
16101
|
const E = Math.abs(T) <= i, _ = Math.abs(a - S) <= t;
|
|
16094
16102
|
o.done = E && _;
|
|
16095
16103
|
}
|
|
@@ -16101,18 +16109,18 @@ function inertia({ keyframes: e, velocity: t = 0, power: i = 0.8, timeConstant:
|
|
|
16101
16109
|
const m = e[0], p = {
|
|
16102
16110
|
done: !1,
|
|
16103
16111
|
value: m
|
|
16104
|
-
}, b = (V) => c !== void 0 && V < c || l !== void 0 && V > l,
|
|
16112
|
+
}, b = (V) => c !== void 0 && V < c || l !== void 0 && V > l, C = (V) => c === void 0 ? l : l === void 0 || Math.abs(c - V) < Math.abs(l - V) ? c : l;
|
|
16105
16113
|
let y = i * t;
|
|
16106
16114
|
const A = m + y, g = o === void 0 ? A : o(A);
|
|
16107
16115
|
g !== A && (y = g - m);
|
|
16108
|
-
const
|
|
16109
|
-
const B =
|
|
16116
|
+
const x = (V) => -y * Math.exp(-V / n), d = (V) => g + x(V), S = (V) => {
|
|
16117
|
+
const B = x(V), $ = d(V);
|
|
16110
16118
|
p.done = Math.abs(B) <= f, p.value = p.done ? g : $;
|
|
16111
16119
|
};
|
|
16112
16120
|
let T, E;
|
|
16113
16121
|
const _ = (V) => {
|
|
16114
16122
|
b(p.value) && (T = V, E = spring({
|
|
16115
|
-
keyframes: [p.value,
|
|
16123
|
+
keyframes: [p.value, C(p.value)],
|
|
16116
16124
|
velocity: calcGeneratorVelocity(d, V, p.value),
|
|
16117
16125
|
// TODO: This should be passing * 1000
|
|
16118
16126
|
damping: s,
|
|
@@ -16385,20 +16393,20 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
16385
16393
|
const { finalKeyframe: s, generator: a, mirroredGenerator: o, mapPercentToKeyframes: c, keyframes: l, calculatedDuration: f, totalDuration: u, resolvedDuration: m } = n;
|
|
16386
16394
|
if (this.startTime === null)
|
|
16387
16395
|
return a.next(0);
|
|
16388
|
-
const { delay: p, repeat: b, repeatType:
|
|
16396
|
+
const { delay: p, repeat: b, repeatType: C, repeatDelay: y, onUpdate: A } = this.options;
|
|
16389
16397
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - u / this.speed, this.startTime)), i ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
|
|
16390
|
-
const g = this.currentTime - p * (this.speed >= 0 ? 1 : -1),
|
|
16398
|
+
const g = this.currentTime - p * (this.speed >= 0 ? 1 : -1), x = this.speed >= 0 ? g < 0 : g > u;
|
|
16391
16399
|
this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
|
|
16392
16400
|
let d = this.currentTime, S = a;
|
|
16393
16401
|
if (b) {
|
|
16394
16402
|
const V = Math.min(this.currentTime, u) / m;
|
|
16395
16403
|
let B = Math.floor(V), $ = V % 1;
|
|
16396
|
-
!$ && V >= 1 && ($ = 1), $ === 1 && B--, B = Math.min(B, b + 1), !!(B % 2) && (
|
|
16404
|
+
!$ && V >= 1 && ($ = 1), $ === 1 && B--, B = Math.min(B, b + 1), !!(B % 2) && (C === "reverse" ? ($ = 1 - $, y && ($ -= y / m)) : C === "mirror" && (S = o)), d = clamp(0, 1, $) * m;
|
|
16397
16405
|
}
|
|
16398
|
-
const T =
|
|
16406
|
+
const T = x ? { done: !1, value: l[0] } : S.next(d);
|
|
16399
16407
|
c && (T.value = c(T.value));
|
|
16400
16408
|
let { done: E } = T;
|
|
16401
|
-
!
|
|
16409
|
+
!x && f !== null && (E = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
|
|
16402
16410
|
const _ = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
|
|
16403
16411
|
return _ && s !== void 0 && (T.value = getFinalKeyframe(l, this.options, s)), A && A(T.value), _ && this.finish(), T;
|
|
16404
16412
|
}
|
|
@@ -16539,7 +16547,7 @@ class AcceleratedAnimation extends BaseAnimation {
|
|
|
16539
16547
|
if (!(!((n = l.owner) === null || n === void 0) && n.current))
|
|
16540
16548
|
return !1;
|
|
16541
16549
|
if (requiresPregeneratedKeyframes(this.options)) {
|
|
16542
|
-
const { onComplete: p, onUpdate: b, motionValue:
|
|
16550
|
+
const { onComplete: p, onUpdate: b, motionValue: C, element: y, ...A } = this.options, g = pregenerateKeyframes(t, A);
|
|
16543
16551
|
t = g.keyframes, t.length === 1 && (t[1] = t[0]), s = g.duration, a = g.times, o = g.ease, c = "keyframes";
|
|
16544
16552
|
}
|
|
16545
16553
|
const m = animateStyle(l.owner.current, f, t, { ...this.options, duration: s, times: a, ease: o });
|
|
@@ -16647,7 +16655,7 @@ class AcceleratedAnimation extends BaseAnimation {
|
|
|
16647
16655
|
if (i.playState === "idle" || i.playState === "finished")
|
|
16648
16656
|
return;
|
|
16649
16657
|
if (this.time) {
|
|
16650
|
-
const { motionValue: f, onUpdate: u, onComplete: m, element: p, ...b } = this.options,
|
|
16658
|
+
const { motionValue: f, onUpdate: u, onComplete: m, element: p, ...b } = this.options, C = new MainThreadAnimation({
|
|
16651
16659
|
...b,
|
|
16652
16660
|
keyframes: n,
|
|
16653
16661
|
duration: s,
|
|
@@ -16656,7 +16664,7 @@ class AcceleratedAnimation extends BaseAnimation {
|
|
|
16656
16664
|
times: c,
|
|
16657
16665
|
isGenerator: !0
|
|
16658
16666
|
}), y = secondsToMilliseconds(this.time);
|
|
16659
|
-
f.setWithVelocity(
|
|
16667
|
+
f.setWithVelocity(C.sample(y - sampleDelta).value, C.sample(y).value, sampleDelta);
|
|
16660
16668
|
}
|
|
16661
16669
|
const { onStop: l } = this.options;
|
|
16662
16670
|
l && l(), this.cancel();
|
|
@@ -17091,7 +17099,7 @@ function animateTarget(e, t, { delay: i = 0, transitionOverride: n, type: s } =
|
|
|
17091
17099
|
const p = e.getValue(m, (a = e.latestValues[m]) !== null && a !== void 0 ? a : null), b = l[m];
|
|
17092
17100
|
if (b === void 0 || u && shouldBlockAnimation(u, m))
|
|
17093
17101
|
continue;
|
|
17094
|
-
const
|
|
17102
|
+
const C = {
|
|
17095
17103
|
delay: i,
|
|
17096
17104
|
...getValueTransition(o || {}, m)
|
|
17097
17105
|
};
|
|
@@ -17099,11 +17107,11 @@ function animateTarget(e, t, { delay: i = 0, transitionOverride: n, type: s } =
|
|
|
17099
17107
|
if (window.MotionHandoffAnimation) {
|
|
17100
17108
|
const g = getOptimisedAppearId(e);
|
|
17101
17109
|
if (g) {
|
|
17102
|
-
const
|
|
17103
|
-
|
|
17110
|
+
const x = window.MotionHandoffAnimation(g, m, frame);
|
|
17111
|
+
x !== null && (C.startTime = x, y = !0);
|
|
17104
17112
|
}
|
|
17105
17113
|
}
|
|
17106
|
-
p.start(animateMotionValue(m, p, b, e.shouldReduceMotion && transformProps.has(m) ? { type: !1 } :
|
|
17114
|
+
p.start(animateMotionValue(m, p, b, e.shouldReduceMotion && transformProps.has(m) ? { type: !1 } : C, e, y, addValueToWillChange(e, m)));
|
|
17107
17115
|
const A = p.animation;
|
|
17108
17116
|
A && f.push(A);
|
|
17109
17117
|
}
|
|
@@ -17181,8 +17189,8 @@ function createAnimationState(e) {
|
|
|
17181
17189
|
var m;
|
|
17182
17190
|
const p = resolveVariant(e, u, l === "exit" ? (m = e.presenceContext) === null || m === void 0 ? void 0 : m.custom : void 0);
|
|
17183
17191
|
if (p) {
|
|
17184
|
-
const { transition: b, transitionEnd:
|
|
17185
|
-
f = { ...f, ...y, ...
|
|
17192
|
+
const { transition: b, transitionEnd: C, ...y } = p;
|
|
17193
|
+
f = { ...f, ...y, ...C };
|
|
17186
17194
|
}
|
|
17187
17195
|
return f;
|
|
17188
17196
|
};
|
|
@@ -17191,28 +17199,28 @@ function createAnimationState(e) {
|
|
|
17191
17199
|
}
|
|
17192
17200
|
function o(l) {
|
|
17193
17201
|
const { props: f } = e, u = getVariantContext(e.parent) || {}, m = [], p = /* @__PURE__ */ new Set();
|
|
17194
|
-
let b = {},
|
|
17202
|
+
let b = {}, C = 1 / 0;
|
|
17195
17203
|
for (let A = 0; A < numAnimationTypes; A++) {
|
|
17196
|
-
const g = reversePriorityOrder[A],
|
|
17197
|
-
T === !1 && (
|
|
17204
|
+
const g = reversePriorityOrder[A], x = i[g], d = f[g] !== void 0 ? f[g] : u[g], S = isVariantLabel(d), T = g === l ? x.isActive : null;
|
|
17205
|
+
T === !1 && (C = A);
|
|
17198
17206
|
let E = d === u[g] && d !== f[g] && S;
|
|
17199
|
-
if (E && n && e.manuallyAnimateOnMount && (E = !1),
|
|
17200
|
-
!
|
|
17201
|
-
!d && !
|
|
17207
|
+
if (E && n && e.manuallyAnimateOnMount && (E = !1), x.protectedKeys = { ...b }, // If it isn't active and hasn't *just* been set as inactive
|
|
17208
|
+
!x.isActive && T === null || // If we didn't and don't have any defined prop for this animation type
|
|
17209
|
+
!d && !x.prevProp || // Or if the prop doesn't define an animation
|
|
17202
17210
|
isAnimationControls(d) || typeof d == "boolean")
|
|
17203
17211
|
continue;
|
|
17204
|
-
const _ = checkVariantsDidChange(
|
|
17212
|
+
const _ = checkVariantsDidChange(x.prevProp, d);
|
|
17205
17213
|
let V = _ || // If we're making this variant active, we want to always make it active
|
|
17206
|
-
g === l &&
|
|
17207
|
-
A >
|
|
17214
|
+
g === l && x.isActive && !E && S || // If we removed a higher-priority variant (i is in reverse order)
|
|
17215
|
+
A > C && S, B = !1;
|
|
17208
17216
|
const $ = Array.isArray(d) ? d : [d];
|
|
17209
17217
|
let Z = $.reduce(s(g), {});
|
|
17210
17218
|
T === !1 && (Z = {});
|
|
17211
|
-
const { prevResolvedValues: D = {} } =
|
|
17219
|
+
const { prevResolvedValues: D = {} } = x, X = {
|
|
17212
17220
|
...D,
|
|
17213
17221
|
...Z
|
|
17214
17222
|
}, q = (k) => {
|
|
17215
|
-
V = !0, p.has(k) && (B = !0, p.delete(k)),
|
|
17223
|
+
V = !0, p.has(k) && (B = !0, p.delete(k)), x.needsAnimating[k] = !0;
|
|
17216
17224
|
const P = e.getValue(k);
|
|
17217
17225
|
P && (P.liveStyle = !1);
|
|
17218
17226
|
};
|
|
@@ -17221,9 +17229,9 @@ function createAnimationState(e) {
|
|
|
17221
17229
|
if (b.hasOwnProperty(k))
|
|
17222
17230
|
continue;
|
|
17223
17231
|
let R = !1;
|
|
17224
|
-
isKeyframesTarget(P) && isKeyframesTarget(M) ? R = !shallowCompare(P, M) : R = P !== M, R ? P != null ? q(k) : p.add(k) : P !== void 0 && p.has(k) ? q(k) :
|
|
17232
|
+
isKeyframesTarget(P) && isKeyframesTarget(M) ? R = !shallowCompare(P, M) : R = P !== M, R ? P != null ? q(k) : p.add(k) : P !== void 0 && p.has(k) ? q(k) : x.protectedKeys[k] = !0;
|
|
17225
17233
|
}
|
|
17226
|
-
|
|
17234
|
+
x.prevProp = d, x.prevResolvedValues = Z, x.isActive && (b = { ...b, ...Z }), n && e.blockInitialAnimation && (V = !1), V && (!(E && _) || B) && m.push(...$.map((k) => ({
|
|
17227
17235
|
animation: k,
|
|
17228
17236
|
options: { type: g }
|
|
17229
17237
|
})));
|
|
@@ -17231,8 +17239,8 @@ function createAnimationState(e) {
|
|
|
17231
17239
|
if (p.size) {
|
|
17232
17240
|
const A = {};
|
|
17233
17241
|
p.forEach((g) => {
|
|
17234
|
-
const
|
|
17235
|
-
d && (d.liveStyle = !0), A[g] =
|
|
17242
|
+
const x = e.getBaseTarget(g), d = e.getValue(g);
|
|
17243
|
+
d && (d.liveStyle = !0), A[g] = x ?? null;
|
|
17236
17244
|
}), m.push({ animation: A });
|
|
17237
17245
|
}
|
|
17238
17246
|
let y = !!m.length;
|
|
@@ -17375,19 +17383,19 @@ class PanSession {
|
|
|
17375
17383
|
const m = getPanInfo(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, b = distance2D(m.offset, { x: 0, y: 0 }) >= 3;
|
|
17376
17384
|
if (!p && !b)
|
|
17377
17385
|
return;
|
|
17378
|
-
const { point:
|
|
17379
|
-
this.history.push({ ...
|
|
17386
|
+
const { point: C } = m, { timestamp: y } = frameData;
|
|
17387
|
+
this.history.push({ ...C, timestamp: y });
|
|
17380
17388
|
const { onStart: A, onMove: g } = this.handlers;
|
|
17381
17389
|
p || (A && A(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), g && g(this.lastMoveEvent, m);
|
|
17382
17390
|
}, this.handlePointerMove = (m, p) => {
|
|
17383
17391
|
this.lastMoveEvent = m, this.lastMoveEventInfo = transformPoint(p, this.transformPagePoint), frame.update(this.updatePoint, !0);
|
|
17384
17392
|
}, this.handlePointerUp = (m, p) => {
|
|
17385
17393
|
this.end();
|
|
17386
|
-
const { onEnd: b, onSessionEnd:
|
|
17394
|
+
const { onEnd: b, onSessionEnd: C, resumeAnimation: y } = this.handlers;
|
|
17387
17395
|
if (this.dragSnapToOrigin && y && y(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
17388
17396
|
return;
|
|
17389
17397
|
const A = getPanInfo(m.type === "pointercancel" ? this.lastMoveEventInfo : transformPoint(p, this.transformPagePoint), this.history);
|
|
17390
|
-
this.startEvent && b && b(m, A),
|
|
17398
|
+
this.startEvent && b && b(m, A), C && C(m, A);
|
|
17391
17399
|
}, !isPrimaryPointer(t))
|
|
17392
17400
|
return;
|
|
17393
17401
|
this.dragSnapToOrigin = a, this.handlers = i, this.transformPagePoint = n, this.contextWindow = s || window;
|
|
@@ -17658,29 +17666,29 @@ class VisualElementDragControls {
|
|
|
17658
17666
|
m ? this.pauseAnimation() : this.stopAnimation(), i && this.snapToCursor(extractEventInfo(u, "page").point);
|
|
17659
17667
|
}, a = (u, m) => {
|
|
17660
17668
|
var p;
|
|
17661
|
-
const { drag: b, dragPropagation:
|
|
17662
|
-
if (b && !
|
|
17669
|
+
const { drag: b, dragPropagation: C, onDragStart: y } = this.getProps();
|
|
17670
|
+
if (b && !C && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = getGlobalLock(b), !this.openGlobalLock))
|
|
17663
17671
|
return;
|
|
17664
17672
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), eachAxis((g) => {
|
|
17665
|
-
let
|
|
17666
|
-
if (percent.test(
|
|
17673
|
+
let x = this.getAxisMotionValue(g).get() || 0;
|
|
17674
|
+
if (percent.test(x)) {
|
|
17667
17675
|
const { projection: d } = this.visualElement;
|
|
17668
17676
|
if (d && d.layout) {
|
|
17669
17677
|
const S = d.layout.layoutBox[g];
|
|
17670
|
-
S && (
|
|
17678
|
+
S && (x = calcLength(S) * (parseFloat(x) / 100));
|
|
17671
17679
|
}
|
|
17672
17680
|
}
|
|
17673
|
-
this.originPoint[g] =
|
|
17681
|
+
this.originPoint[g] = x;
|
|
17674
17682
|
}), y && frame.postRender(() => y(u, m)), (p = this.removeWillChange) === null || p === void 0 || p.call(this), this.removeWillChange = addValueToWillChange(this.visualElement, "transform");
|
|
17675
17683
|
const { animationState: A } = this.visualElement;
|
|
17676
17684
|
A && A.setActive("whileDrag", !0);
|
|
17677
17685
|
}, o = (u, m) => {
|
|
17678
|
-
const { dragPropagation: p, dragDirectionLock: b, onDirectionLock:
|
|
17686
|
+
const { dragPropagation: p, dragDirectionLock: b, onDirectionLock: C, onDrag: y } = this.getProps();
|
|
17679
17687
|
if (!p && !this.openGlobalLock)
|
|
17680
17688
|
return;
|
|
17681
17689
|
const { offset: A } = m;
|
|
17682
17690
|
if (b && this.currentDirection === null) {
|
|
17683
|
-
this.currentDirection = getCurrentDirection(A), this.currentDirection !== null &&
|
|
17691
|
+
this.currentDirection = getCurrentDirection(A), this.currentDirection !== null && C && C(this.currentDirection);
|
|
17684
17692
|
return;
|
|
17685
17693
|
}
|
|
17686
17694
|
this.updateAxis("x", m.point, A), this.updateAxis("y", m.point, A), this.visualElement.render(), y && y(u, m);
|
|
@@ -17756,7 +17764,7 @@ class VisualElementDragControls {
|
|
|
17756
17764
|
return;
|
|
17757
17765
|
let m = l && l[u] || {};
|
|
17758
17766
|
o && (m = { min: 0, max: 0 });
|
|
17759
|
-
const p = s ? 200 : 1e6, b = s ? 40 : 1e7,
|
|
17767
|
+
const p = s ? 200 : 1e6, b = s ? 40 : 1e7, C = {
|
|
17760
17768
|
type: "inertia",
|
|
17761
17769
|
velocity: n ? t[u] : 0,
|
|
17762
17770
|
bounceStiffness: p,
|
|
@@ -17767,7 +17775,7 @@ class VisualElementDragControls {
|
|
|
17767
17775
|
...a,
|
|
17768
17776
|
...m
|
|
17769
17777
|
};
|
|
17770
|
-
return this.startAxisValueAnimation(u,
|
|
17778
|
+
return this.startAxisValueAnimation(u, C);
|
|
17771
17779
|
});
|
|
17772
17780
|
return Promise.all(f).then(c);
|
|
17773
17781
|
}
|
|
@@ -18168,8 +18176,8 @@ function buildProjectionTransform(e, t, i) {
|
|
|
18168
18176
|
let n = "";
|
|
18169
18177
|
const s = e.x.translate / t.x, a = e.y.translate / t.y, o = (i == null ? void 0 : i.z) || 0;
|
|
18170
18178
|
if ((s || a || o) && (n = `translate3d(${s}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (n += `scale(${1 / t.x}, ${1 / t.y}) `), i) {
|
|
18171
|
-
const { transformPerspective: f, rotate: u, rotateX: m, rotateY: p, skewX: b, skewY:
|
|
18172
|
-
f && (n = `perspective(${f}px) ${n}`), u && (n += `rotate(${u}deg) `), m && (n += `rotateX(${m}deg) `), p && (n += `rotateY(${p}deg) `), b && (n += `skewX(${b}deg) `),
|
|
18179
|
+
const { transformPerspective: f, rotate: u, rotateX: m, rotateY: p, skewX: b, skewY: C } = i;
|
|
18180
|
+
f && (n = `perspective(${f}px) ${n}`), u && (n += `rotate(${u}deg) `), m && (n += `rotateX(${m}deg) `), p && (n += `rotateY(${p}deg) `), b && (n += `skewX(${b}deg) `), C && (n += `skewY(${C}deg) `);
|
|
18173
18181
|
}
|
|
18174
18182
|
const c = e.x.scale * t.x, l = e.y.scale * t.y;
|
|
18175
18183
|
return (c !== 1 || l !== 1) && (n += `scale(${c}, ${l})`), n || "none";
|
|
@@ -18269,13 +18277,13 @@ function createProjectionNode$1({ attachResizeListener: e, defaultParent: t, mea
|
|
|
18269
18277
|
this.root.updateBlockedByResize = !0, m && m(), m = delay(p, 250), globalProjectionState.hasAnimatedSinceResize && (globalProjectionState.hasAnimatedSinceResize = !1, this.nodes.forEach(finishAnimation));
|
|
18270
18278
|
});
|
|
18271
18279
|
}
|
|
18272
|
-
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || f) && this.addEventListener("didUpdate", ({ delta: m, hasLayoutChanged: p, hasRelativeTargetChanged: b, layout:
|
|
18280
|
+
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || f) && this.addEventListener("didUpdate", ({ delta: m, hasLayoutChanged: p, hasRelativeTargetChanged: b, layout: C }) => {
|
|
18273
18281
|
if (this.isTreeAnimationBlocked()) {
|
|
18274
18282
|
this.target = void 0, this.relativeTarget = void 0;
|
|
18275
18283
|
return;
|
|
18276
18284
|
}
|
|
18277
|
-
const y = this.options.transition || u.getDefaultTransition() || defaultLayoutTransition, { onLayoutAnimationStart: A, onLayoutAnimationComplete: g } = u.getProps(),
|
|
18278
|
-
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || d || p && (
|
|
18285
|
+
const y = this.options.transition || u.getDefaultTransition() || defaultLayoutTransition, { onLayoutAnimationStart: A, onLayoutAnimationComplete: g } = u.getProps(), x = !this.targetLayout || !boxEqualsRounded(this.targetLayout, C) || b, d = !p && b;
|
|
18286
|
+
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || d || p && (x || !this.currentAnimation)) {
|
|
18279
18287
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(m, d);
|
|
18280
18288
|
const S = {
|
|
18281
18289
|
...getValueTransition(y, "layout"),
|
|
@@ -18285,7 +18293,7 @@ function createProjectionNode$1({ attachResizeListener: e, defaultParent: t, mea
|
|
|
18285
18293
|
(u.shouldReduceMotion || this.options.layoutRoot) && (S.delay = 0, S.type = !1), this.startAnimation(S);
|
|
18286
18294
|
} else
|
|
18287
18295
|
p || finishAnimation(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
18288
|
-
this.targetLayout =
|
|
18296
|
+
this.targetLayout = C;
|
|
18289
18297
|
});
|
|
18290
18298
|
}
|
|
18291
18299
|
unmount() {
|
|
@@ -18508,12 +18516,12 @@ function createProjectionNode$1({ attachResizeListener: e, defaultParent: t, mea
|
|
|
18508
18516
|
copyBoxInto(this.layoutCorrected, this.layout.layoutBox);
|
|
18509
18517
|
const p = this.treeScale.x, b = this.treeScale.y;
|
|
18510
18518
|
applyTreeDeltas(this.layoutCorrected, this.treeScale, this.path, l), c.layout && !c.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (c.target = c.layout.layoutBox, c.targetWithTransforms = createBox());
|
|
18511
|
-
const { target:
|
|
18512
|
-
if (!
|
|
18519
|
+
const { target: C } = c;
|
|
18520
|
+
if (!C) {
|
|
18513
18521
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
18514
18522
|
return;
|
|
18515
18523
|
}
|
|
18516
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (copyAxisDeltaInto(this.prevProjectionDelta.x, this.projectionDelta.x), copyAxisDeltaInto(this.prevProjectionDelta.y, this.projectionDelta.y)), calcBoxDelta(this.projectionDelta, this.layoutCorrected,
|
|
18524
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (copyAxisDeltaInto(this.prevProjectionDelta.x, this.projectionDelta.x), copyAxisDeltaInto(this.prevProjectionDelta.y, this.projectionDelta.y)), calcBoxDelta(this.projectionDelta, this.layoutCorrected, C, this.latestValues), (this.treeScale.x !== p || this.treeScale.y !== b || !axisDeltaEquals(this.projectionDelta.x, this.prevProjectionDelta.x) || !axisDeltaEquals(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", C)), isDebug && metrics.recalculatedProjection++;
|
|
18517
18525
|
}
|
|
18518
18526
|
hide() {
|
|
18519
18527
|
this.isVisible = !1;
|
|
@@ -18535,12 +18543,12 @@ function createProjectionNode$1({ attachResizeListener: e, defaultParent: t, mea
|
|
|
18535
18543
|
setAnimationOrigin(o, c = !1) {
|
|
18536
18544
|
const l = this.snapshot, f = l ? l.latestValues : {}, u = { ...this.latestValues }, m = createDelta();
|
|
18537
18545
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !c;
|
|
18538
|
-
const p = createBox(), b = l ? l.source : void 0,
|
|
18546
|
+
const p = createBox(), b = l ? l.source : void 0, C = this.layout ? this.layout.source : void 0, y = b !== C, A = this.getStack(), g = !A || A.members.length <= 1, x = !!(y && !g && this.options.crossfade === !0 && !this.path.some(hasOpacityCrossfade));
|
|
18539
18547
|
this.animationProgress = 0;
|
|
18540
18548
|
let d;
|
|
18541
18549
|
this.mixTargetDelta = (S) => {
|
|
18542
18550
|
const T = S / 1e3;
|
|
18543
|
-
mixAxisDelta(m.x, o.x, T), mixAxisDelta(m.y, o.y, T), this.setTargetDelta(m), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (calcRelativePosition(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox), mixBox(this.relativeTarget, this.relativeTargetOrigin, p, T), d && boxEquals(this.relativeTarget, d) && (this.isProjectionDirty = !1), d || (d = createBox()), copyBoxInto(d, this.relativeTarget)), y && (this.animationValues = u, mixValues(u, f, this.latestValues, T,
|
|
18551
|
+
mixAxisDelta(m.x, o.x, T), mixAxisDelta(m.y, o.y, T), this.setTargetDelta(m), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (calcRelativePosition(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox), mixBox(this.relativeTarget, this.relativeTargetOrigin, p, T), d && boxEquals(this.relativeTarget, d) && (this.isProjectionDirty = !1), d || (d = createBox()), copyBoxInto(d, this.relativeTarget)), y && (this.animationValues = u, mixValues(u, f, this.latestValues, T, x, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = T;
|
|
18544
18552
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
18545
18553
|
}
|
|
18546
18554
|
startAnimation(o) {
|
|
@@ -18648,18 +18656,18 @@ function createProjectionNode$1({ attachResizeListener: e, defaultParent: t, mea
|
|
|
18648
18656
|
}
|
|
18649
18657
|
const p = m.animationValues || m.latestValues;
|
|
18650
18658
|
this.applyTransformsToTarget(), f.transform = buildProjectionTransform(this.projectionDeltaWithTransform, this.treeScale, p), u && (f.transform = u(p, f.transform));
|
|
18651
|
-
const { x: b, y:
|
|
18652
|
-
f.transformOrigin = `${b.origin * 100}% ${
|
|
18659
|
+
const { x: b, y: C } = this.projectionDelta;
|
|
18660
|
+
f.transformOrigin = `${b.origin * 100}% ${C.origin * 100}% 0`, m.animationValues ? f.opacity = m === this ? (l = (c = p.opacity) !== null && c !== void 0 ? c : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : p.opacityExit : f.opacity = m === this ? p.opacity !== void 0 ? p.opacity : "" : p.opacityExit !== void 0 ? p.opacityExit : 0;
|
|
18653
18661
|
for (const y in scaleCorrectors) {
|
|
18654
18662
|
if (p[y] === void 0)
|
|
18655
18663
|
continue;
|
|
18656
|
-
const { correct: A, applyTo: g } = scaleCorrectors[y],
|
|
18664
|
+
const { correct: A, applyTo: g } = scaleCorrectors[y], x = f.transform === "none" ? p[y] : A(p[y], m);
|
|
18657
18665
|
if (g) {
|
|
18658
18666
|
const d = g.length;
|
|
18659
18667
|
for (let S = 0; S < d; S++)
|
|
18660
|
-
f[g[S]] =
|
|
18668
|
+
f[g[S]] = x;
|
|
18661
18669
|
} else
|
|
18662
|
-
f[y] =
|
|
18670
|
+
f[y] = x;
|
|
18663
18671
|
}
|
|
18664
18672
|
return this.options.layoutId && (f.pointerEvents = m === this ? resolveMotionValue(o == null ? void 0 : o.pointerEvents) || "" : "none"), f;
|
|
18665
18673
|
}
|
|
@@ -18701,10 +18709,10 @@ function notifyLayoutUpdate(e) {
|
|
|
18701
18709
|
if (m && !m.resumeFrom) {
|
|
18702
18710
|
const { snapshot: p, layout: b } = m;
|
|
18703
18711
|
if (p && b) {
|
|
18704
|
-
const
|
|
18705
|
-
calcRelativePosition(
|
|
18712
|
+
const C = createBox();
|
|
18713
|
+
calcRelativePosition(C, i.layoutBox, p.layoutBox);
|
|
18706
18714
|
const y = createBox();
|
|
18707
|
-
calcRelativePosition(y, n, b.layoutBox), boxEqualsRounded(
|
|
18715
|
+
calcRelativePosition(y, n, b.layoutBox), boxEqualsRounded(C, y) || (u = !0), m.options.layoutRoot && (e.relativeTarget = y, e.relativeTargetOrigin = C, e.relativeParent = m);
|
|
18708
18716
|
}
|
|
18709
18717
|
}
|
|
18710
18718
|
}
|
|
@@ -19025,11 +19033,11 @@ function useVisualElement(e, t, i, n, s) {
|
|
|
19025
19033
|
m && !m.projection && s && (m.type === "html" || m.type === "svg") && createProjectionNode(u.current, i, s, p), useInsertionEffect(() => {
|
|
19026
19034
|
m && m.update(i, l);
|
|
19027
19035
|
});
|
|
19028
|
-
const b = i[optimizedAppearDataAttribute],
|
|
19036
|
+
const b = i[optimizedAppearDataAttribute], C = useRef(!!b && !window.MotionHandoffIsComplete && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, b)));
|
|
19029
19037
|
return useIsomorphicLayoutEffect(() => {
|
|
19030
|
-
m && (m.updateFeatures(), microtask.render(m.render),
|
|
19038
|
+
m && (m.updateFeatures(), microtask.render(m.render), C.current && m.animationState && m.animationState.animateChanges());
|
|
19031
19039
|
}), useEffect(() => {
|
|
19032
|
-
m && (!
|
|
19040
|
+
m && (!C.current && m.animationState && m.animationState.animateChanges(), C.current = !1, scheduleHandoffComplete || (scheduleHandoffComplete = !0, queueMicrotask(completeHandoff)));
|
|
19033
19041
|
}), m;
|
|
19034
19042
|
}
|
|
19035
19043
|
function completeHandoff() {
|
|
@@ -19138,8 +19146,8 @@ function createRendererMotionComponent({ preloadedFeatures: e, createVisualEleme
|
|
|
19138
19146
|
}, { isStatic: m } = u, p = useCreateMotionContext(c), b = n(c, m);
|
|
19139
19147
|
if (!m && isBrowser) {
|
|
19140
19148
|
useStrictMode(u, e);
|
|
19141
|
-
const
|
|
19142
|
-
f =
|
|
19149
|
+
const C = getProjectionFunctionality(u);
|
|
19150
|
+
f = C.MeasureLayout, p.visualElement = useVisualElement(s, b, u, t, C.ProjectionNode);
|
|
19143
19151
|
}
|
|
19144
19152
|
return jsxs(MotionContext.Provider, { value: p, children: [f && p.visualElement ? jsx(f, { visualElement: p.visualElement, ...u }) : null, i(s, c, useMotionRef(b, p.visualElement, l), b, m, p.visualElement)] });
|
|
19145
19153
|
}
|
|
@@ -19305,20 +19313,20 @@ function makeLatestValues(e, t, i, n, s) {
|
|
|
19305
19313
|
let { initial: u, animate: m } = e;
|
|
19306
19314
|
const p = isControllingVariants(e), b = isVariantNode(e);
|
|
19307
19315
|
t && b && !p && e.inherit !== !1 && (u === void 0 && (u = t.initial), m === void 0 && (m = t.animate));
|
|
19308
|
-
let
|
|
19309
|
-
|
|
19310
|
-
const y =
|
|
19316
|
+
let C = i ? i.initial === !1 : !1;
|
|
19317
|
+
C = C || u === !1;
|
|
19318
|
+
const y = C ? m : u;
|
|
19311
19319
|
return y && typeof y != "boolean" && !isAnimationControls(y) && forEachDefinition(e, y, (A, g) => {
|
|
19312
|
-
for (const
|
|
19313
|
-
let d = A[
|
|
19320
|
+
for (const x in A) {
|
|
19321
|
+
let d = A[x];
|
|
19314
19322
|
if (Array.isArray(d)) {
|
|
19315
|
-
const S =
|
|
19323
|
+
const S = C ? d.length - 1 : 0;
|
|
19316
19324
|
d = d[S];
|
|
19317
19325
|
}
|
|
19318
|
-
d !== null && (o[
|
|
19326
|
+
d !== null && (o[x] = d);
|
|
19319
19327
|
}
|
|
19320
|
-
for (const
|
|
19321
|
-
o[
|
|
19328
|
+
for (const x in g)
|
|
19329
|
+
o[x] = g[x];
|
|
19322
19330
|
}), l && (m && u !== !1 && !isAnimationControls(m) && forEachDefinition(e, m, (A) => {
|
|
19323
19331
|
for (const g in A)
|
|
19324
19332
|
addWillChange(c, g);
|
|
@@ -19416,8 +19424,8 @@ function buildSVGAttrs(e, {
|
|
|
19416
19424
|
return;
|
|
19417
19425
|
}
|
|
19418
19426
|
e.attrs = e.style, e.style = {};
|
|
19419
|
-
const { attrs: p, style: b, dimensions:
|
|
19420
|
-
p.transform && (
|
|
19427
|
+
const { attrs: p, style: b, dimensions: C } = e;
|
|
19428
|
+
p.transform && (C && (b.transform = p.transform), delete p.transform), C && (s !== void 0 || a !== void 0 || b.transform) && (b.transformOrigin = calcSVGTransformOrigin(C, s !== void 0 ? s : 0.5, a !== void 0 ? a : 0.5)), t !== void 0 && (p.x = t), i !== void 0 && (p.y = i), n !== void 0 && (p.scale = n), o !== void 0 && buildSVGPath(p, o, c, l, !1);
|
|
19421
19429
|
}
|
|
19422
19430
|
const isSVGTag = (e) => typeof e == "string" && e.toLowerCase() === "svg", svgMotionConfig = {
|
|
19423
19431
|
useVisualState: makeUseVisualState({
|