react-ecosistema-unp 0.4.6 → 0.5.3
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/CardHeaderContext-DVw0yHuy.js +6 -0
- package/dist/Tarjeta-Big0dus2.js +17 -0
- package/dist/accessibility/components/BarraAccesibilidad.js +52 -0
- package/dist/accessibility.js +4 -0
- package/dist/assets/BarraAccesibilidad.css +1 -0
- package/dist/assets/Encabezado.css +1 -0
- package/dist/assets/Tabla.css +1 -1
- package/dist/assets/TablaRegistros.css +1 -1
- package/dist/assets/Tarjeta.css +1 -0
- package/dist/assets/TituloModal.css +1 -1
- package/dist/lib/accessibility/components/BarraAccesibilidad.d.ts +2 -0
- package/dist/lib/accessibility.d.ts +1 -0
- package/dist/lib/tables/components/Modal.d.ts +1 -1
- package/dist/lib/ui/components/ContenedorTarjeta.d.ts +8 -0
- package/dist/lib/ui/components/Encabezado.d.ts +2 -1
- package/dist/lib/ui/components/Tarjeta.d.ts +7 -0
- package/dist/lib/ui.d.ts +2 -0
- package/dist/shared/components/VentanaTabs.js +63 -64
- package/dist/tables/components/Modal.js +7 -7
- package/dist/tables/components/TablaRegistros.js +653 -653
- package/dist/tables/components/TituloModal.js +15 -12
- package/dist/ui/components/ContenedorTarjeta.js +6 -0
- package/dist/ui/components/Encabezado.js +11 -31
- package/dist/ui/components/Subtitulo.js +11 -9
- package/dist/ui/components/Tarjeta.js +154 -0
- package/dist/ui.js +6 -2
- package/package.json +5 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useEffect, useState, useRef } from "react";
|
|
3
3
|
import { g as getDefaultExportFromCjs } from "../../ThemeProvider-CFCmmLJC.js";
|
|
4
|
-
import { Tabla } from "./Tabla.js";
|
|
5
|
-
import CustomModal from "./Modal.js";
|
|
6
4
|
import { EncabezadoTabla } from "./EncabezadoTabla.js";
|
|
5
|
+
import { Tabla } from "./Tabla.js";
|
|
6
|
+
import { CustomModal } from "./Modal.js";
|
|
7
7
|
import '../../assets/TablaRegistros.css';var lottie$2 = { exports: {} }, lottie$1 = lottie$2.exports, hasRequiredLottie;
|
|
8
8
|
function requireLottie() {
|
|
9
9
|
return hasRequiredLottie || (hasRequiredLottie = 1, function(module, exports) {
|
|
@@ -184,25 +184,25 @@ function requireLottie() {
|
|
|
184
184
|
};
|
|
185
185
|
}();
|
|
186
186
|
function HSVtoRGB(t, e, r) {
|
|
187
|
-
var i, s, a, n, l, o,
|
|
188
|
-
switch (n = Math.floor(t * 6), l = t * 6 - n, o = r * (1 - e),
|
|
187
|
+
var i, s, a, n, l, o, p, y;
|
|
188
|
+
switch (n = Math.floor(t * 6), l = t * 6 - n, o = r * (1 - e), p = r * (1 - l * e), y = r * (1 - (1 - l) * e), n % 6) {
|
|
189
189
|
case 0:
|
|
190
190
|
i = r, s = y, a = o;
|
|
191
191
|
break;
|
|
192
192
|
case 1:
|
|
193
|
-
i =
|
|
193
|
+
i = p, s = r, a = o;
|
|
194
194
|
break;
|
|
195
195
|
case 2:
|
|
196
196
|
i = o, s = r, a = y;
|
|
197
197
|
break;
|
|
198
198
|
case 3:
|
|
199
|
-
i = o, s =
|
|
199
|
+
i = o, s = p, a = r;
|
|
200
200
|
break;
|
|
201
201
|
case 4:
|
|
202
202
|
i = y, s = o, a = r;
|
|
203
203
|
break;
|
|
204
204
|
case 5:
|
|
205
|
-
i = r, s = o, a =
|
|
205
|
+
i = r, s = o, a = p;
|
|
206
206
|
break;
|
|
207
207
|
}
|
|
208
208
|
return [i, s, a];
|
|
@@ -307,18 +307,18 @@ function requireLottie() {
|
|
|
307
307
|
for (k = 0; k < S; k += 1)
|
|
308
308
|
if (F = L[k], "ks" in F && !F.completed) {
|
|
309
309
|
if (F.completed = !0, F.hasMask) {
|
|
310
|
-
var
|
|
311
|
-
for (M =
|
|
312
|
-
if (
|
|
313
|
-
E(
|
|
310
|
+
var N = F.masksProperties;
|
|
311
|
+
for (M = N.length, V = 0; V < M; V += 1)
|
|
312
|
+
if (N[V].pt.k.i)
|
|
313
|
+
E(N[V].pt.k);
|
|
314
314
|
else
|
|
315
|
-
for (O =
|
|
316
|
-
|
|
315
|
+
for (O = N[V].pt.k.length, R = 0; R < O; R += 1)
|
|
316
|
+
N[V].pt.k[R].s && E(N[V].pt.k[R].s[0]), N[V].pt.k[R].e && E(N[V].pt.k[R].e[0]);
|
|
317
317
|
}
|
|
318
|
-
F.ty === 0 ? (F.layers = f(F.refId, _), C(F.layers, _)) : F.ty === 4 ? x(F.shapes) : F.ty === 5 &&
|
|
318
|
+
F.ty === 0 ? (F.layers = f(F.refId, _), C(F.layers, _)) : F.ty === 4 ? x(F.shapes) : F.ty === 5 && z(F);
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function c(L, _) {
|
|
322
322
|
if (L) {
|
|
323
323
|
var F = 0, k = L.length;
|
|
324
324
|
for (F = 0; F < k; F += 1)
|
|
@@ -511,7 +511,7 @@ function requireLottie() {
|
|
|
511
511
|
else k[S].ty === "gr" && _(k[S].it);
|
|
512
512
|
}
|
|
513
513
|
function F(k) {
|
|
514
|
-
var S, V, M = k.length, R, O,
|
|
514
|
+
var S, V, M = k.length, R, O, N, W;
|
|
515
515
|
for (V = 0; V < M; V += 1) {
|
|
516
516
|
if (S = k[V], S.hasMask) {
|
|
517
517
|
var q = S.masksProperties;
|
|
@@ -519,8 +519,8 @@ function requireLottie() {
|
|
|
519
519
|
if (q[R].pt.k.i)
|
|
520
520
|
q[R].pt.k.c = q[R].cl;
|
|
521
521
|
else
|
|
522
|
-
for (W = q[R].pt.k.length,
|
|
523
|
-
q[R].pt.k[
|
|
522
|
+
for (W = q[R].pt.k.length, N = 0; N < W; N += 1)
|
|
523
|
+
q[R].pt.k[N].s && (q[R].pt.k[N].s[0].c = q[R].cl), q[R].pt.k[N].e && (q[R].pt.k[N].e[0].c = q[R].cl);
|
|
524
524
|
}
|
|
525
525
|
S.ty === 4 && _(S.shapes);
|
|
526
526
|
}
|
|
@@ -534,9 +534,9 @@ function requireLottie() {
|
|
|
534
534
|
};
|
|
535
535
|
}();
|
|
536
536
|
function B(L) {
|
|
537
|
-
L.__complete || (H(L), T(L), I(L), D(L), G(L), C(L.layers, L.assets),
|
|
537
|
+
L.__complete || (H(L), T(L), I(L), D(L), G(L), C(L.layers, L.assets), c(L.chars, L.assets), L.__complete = !0);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function z(L) {
|
|
540
540
|
L.t.a.length === 0 && "m" in L.t.p;
|
|
541
541
|
}
|
|
542
542
|
var j = {};
|
|
@@ -547,7 +547,7 @@ function requireLottie() {
|
|
|
547
547
|
var f = m.getResponseHeader("content-type");
|
|
548
548
|
return f && m.responseType === "json" && f.indexOf("json") !== -1 || m.response && _typeof$5(m.response) === "object" ? m.response : m.response && typeof m.response == "string" ? JSON.parse(m.response) : m.responseText ? JSON.parse(m.responseText) : null;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function c(m, f, x, E) {
|
|
551
551
|
var A, T = new XMLHttpRequest();
|
|
552
552
|
try {
|
|
553
553
|
T.responseType = "json";
|
|
@@ -572,7 +572,7 @@ function requireLottie() {
|
|
|
572
572
|
T.send();
|
|
573
573
|
}
|
|
574
574
|
return {
|
|
575
|
-
load:
|
|
575
|
+
load: c
|
|
576
576
|
};
|
|
577
577
|
}()), b.data.type === "loadAnimation")
|
|
578
578
|
a.assetLoader.load(b.data.path, b.data.fullPath, function(C) {
|
|
@@ -619,7 +619,7 @@ function requireLottie() {
|
|
|
619
619
|
onError: b
|
|
620
620
|
}, g;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function p(u, b, g) {
|
|
623
623
|
l();
|
|
624
624
|
var d = o(b, g);
|
|
625
625
|
i.postMessage({
|
|
@@ -649,16 +649,16 @@ function requireLottie() {
|
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
651
|
return {
|
|
652
|
-
loadAnimation:
|
|
652
|
+
loadAnimation: p,
|
|
653
653
|
loadData: y,
|
|
654
654
|
completeAnimation: P
|
|
655
655
|
};
|
|
656
656
|
}(), ImagePreloader = function() {
|
|
657
657
|
var t = function() {
|
|
658
|
-
var
|
|
659
|
-
|
|
660
|
-
var m =
|
|
661
|
-
return m.fillStyle = "rgba(0,0,0,0)", m.fillRect(0, 0, 1, 1),
|
|
658
|
+
var c = createTag("canvas");
|
|
659
|
+
c.width = 1, c.height = 1;
|
|
660
|
+
var m = c.getContext("2d");
|
|
661
|
+
return m.fillStyle = "rgba(0,0,0,0)", m.fillRect(0, 0, 1, 1), c;
|
|
662
662
|
}();
|
|
663
663
|
function e() {
|
|
664
664
|
this.loadedAssets += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
@@ -666,70 +666,70 @@ function requireLottie() {
|
|
|
666
666
|
function r() {
|
|
667
667
|
this.loadedFootagesCount += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
668
668
|
}
|
|
669
|
-
function i(
|
|
669
|
+
function i(c, m, f) {
|
|
670
670
|
var x = "";
|
|
671
|
-
if (
|
|
672
|
-
x =
|
|
671
|
+
if (c.e)
|
|
672
|
+
x = c.p;
|
|
673
673
|
else if (m) {
|
|
674
|
-
var E =
|
|
674
|
+
var E = c.p;
|
|
675
675
|
E.indexOf("images/") !== -1 && (E = E.split("/")[1]), x = m + E;
|
|
676
676
|
} else
|
|
677
|
-
x = f, x +=
|
|
677
|
+
x = f, x += c.u ? c.u : "", x += c.p;
|
|
678
678
|
return x;
|
|
679
679
|
}
|
|
680
|
-
function s(
|
|
680
|
+
function s(c) {
|
|
681
681
|
var m = 0, f = setInterval((function() {
|
|
682
|
-
var x =
|
|
682
|
+
var x = c.getBBox();
|
|
683
683
|
(x.width || m > 500) && (this._imageLoaded(), clearInterval(f)), m += 1;
|
|
684
684
|
}).bind(this), 50);
|
|
685
685
|
}
|
|
686
|
-
function a(
|
|
687
|
-
var m = i(
|
|
686
|
+
function a(c) {
|
|
687
|
+
var m = i(c, this.assetsPath, this.path), f = createNS("image");
|
|
688
688
|
isSafari ? this.testImageLoaded(f) : f.addEventListener("load", this._imageLoaded, !1), f.addEventListener("error", (function() {
|
|
689
689
|
x.img = t, this._imageLoaded();
|
|
690
690
|
}).bind(this), !1), f.setAttributeNS("http://www.w3.org/1999/xlink", "href", m), this._elementHelper.append ? this._elementHelper.append(f) : this._elementHelper.appendChild(f);
|
|
691
691
|
var x = {
|
|
692
692
|
img: f,
|
|
693
|
-
assetData:
|
|
693
|
+
assetData: c
|
|
694
694
|
};
|
|
695
695
|
return x;
|
|
696
696
|
}
|
|
697
|
-
function n(
|
|
698
|
-
var m = i(
|
|
697
|
+
function n(c) {
|
|
698
|
+
var m = i(c, this.assetsPath, this.path), f = createTag("img");
|
|
699
699
|
f.crossOrigin = "anonymous", f.addEventListener("load", this._imageLoaded, !1), f.addEventListener("error", (function() {
|
|
700
700
|
x.img = t, this._imageLoaded();
|
|
701
701
|
}).bind(this), !1), f.src = m;
|
|
702
702
|
var x = {
|
|
703
703
|
img: f,
|
|
704
|
-
assetData:
|
|
704
|
+
assetData: c
|
|
705
705
|
};
|
|
706
706
|
return x;
|
|
707
707
|
}
|
|
708
|
-
function l(
|
|
708
|
+
function l(c) {
|
|
709
709
|
var m = {
|
|
710
|
-
assetData:
|
|
711
|
-
}, f = i(
|
|
710
|
+
assetData: c
|
|
711
|
+
}, f = i(c, this.assetsPath, this.path);
|
|
712
712
|
return dataManager.loadData(f, (function(x) {
|
|
713
713
|
m.img = x, this._footageLoaded();
|
|
714
714
|
}).bind(this), (function() {
|
|
715
715
|
m.img = {}, this._footageLoaded();
|
|
716
716
|
}).bind(this)), m;
|
|
717
717
|
}
|
|
718
|
-
function o(
|
|
718
|
+
function o(c, m) {
|
|
719
719
|
this.imagesLoadedCb = m;
|
|
720
|
-
var f, x =
|
|
720
|
+
var f, x = c.length;
|
|
721
721
|
for (f = 0; f < x; f += 1)
|
|
722
|
-
|
|
722
|
+
c[f].layers || (!c[f].t || c[f].t === "seq" ? (this.totalImages += 1, this.images.push(this._createImageData(c[f]))) : c[f].t === 3 && (this.totalFootages += 1, this.images.push(this.createFootageData(c[f]))));
|
|
723
723
|
}
|
|
724
|
-
function c
|
|
725
|
-
this.path =
|
|
724
|
+
function p(c) {
|
|
725
|
+
this.path = c || "";
|
|
726
726
|
}
|
|
727
|
-
function y(
|
|
728
|
-
this.assetsPath =
|
|
727
|
+
function y(c) {
|
|
728
|
+
this.assetsPath = c || "";
|
|
729
729
|
}
|
|
730
|
-
function P(
|
|
730
|
+
function P(c) {
|
|
731
731
|
for (var m = 0, f = this.images.length; m < f; ) {
|
|
732
|
-
if (this.images[m].assetData ===
|
|
732
|
+
if (this.images[m].assetData === c)
|
|
733
733
|
return this.images[m].img;
|
|
734
734
|
m += 1;
|
|
735
735
|
}
|
|
@@ -744,8 +744,8 @@ function requireLottie() {
|
|
|
744
744
|
function g() {
|
|
745
745
|
return this.totalFootages === this.loadedFootagesCount;
|
|
746
746
|
}
|
|
747
|
-
function d(
|
|
748
|
-
|
|
747
|
+
function d(c, m) {
|
|
748
|
+
c === "svg" ? (this._elementHelper = m, this._createImageData = this.createImageData.bind(this)) : this._createImageData = this.createImgData.bind(this);
|
|
749
749
|
}
|
|
750
750
|
function C() {
|
|
751
751
|
this._imageLoaded = e.bind(this), this._footageLoaded = r.bind(this), this.testImageLoaded = s.bind(this), this.createFootageData = l.bind(this), this.assetsPath = "", this.path = "", this.totalImages = 0, this.totalFootages = 0, this.loadedAssets = 0, this.loadedFootagesCount = 0, this.imagesLoadedCb = null, this.images = [];
|
|
@@ -753,7 +753,7 @@ function requireLottie() {
|
|
|
753
753
|
return C.prototype = {
|
|
754
754
|
loadAssets: o,
|
|
755
755
|
setAssetsPath: y,
|
|
756
|
-
setPath:
|
|
756
|
+
setPath: p,
|
|
757
757
|
loadedImages: b,
|
|
758
758
|
loadedFootages: g,
|
|
759
759
|
destroy: u,
|
|
@@ -1104,7 +1104,7 @@ function requireLottie() {
|
|
|
1104
1104
|
var S = new AnimationItem();
|
|
1105
1105
|
return u(S, _), S.setData(_, F), S;
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function p() {
|
|
1108
1108
|
var _, F = e.length, k = [];
|
|
1109
1109
|
for (_ = 0; _ < F; _ += 1)
|
|
1110
1110
|
k.push(e[_].animation);
|
|
@@ -1141,14 +1141,14 @@ function requireLottie() {
|
|
|
1141
1141
|
for (F = 0; F < i; F += 1)
|
|
1142
1142
|
e[F].animation.play(_);
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function c(_) {
|
|
1145
1145
|
var F = _ - r, k;
|
|
1146
1146
|
for (k = 0; k < i; k += 1)
|
|
1147
1147
|
e[k].animation.advanceTime(F);
|
|
1148
|
-
r = _, s && !n ? window.requestAnimationFrame(
|
|
1148
|
+
r = _, s && !n ? window.requestAnimationFrame(c) : a = !0;
|
|
1149
1149
|
}
|
|
1150
1150
|
function m(_) {
|
|
1151
|
-
r = _, window.requestAnimationFrame(
|
|
1151
|
+
r = _, window.requestAnimationFrame(c);
|
|
1152
1152
|
}
|
|
1153
1153
|
function f(_) {
|
|
1154
1154
|
var F;
|
|
@@ -1201,7 +1201,7 @@ function requireLottie() {
|
|
|
1201
1201
|
function B() {
|
|
1202
1202
|
n = !1, H();
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function z(_, F) {
|
|
1205
1205
|
var k;
|
|
1206
1206
|
for (k = 0; k < i; k += 1)
|
|
1207
1207
|
e[k].animation.setVolume(_, F);
|
|
@@ -1216,7 +1216,7 @@ function requireLottie() {
|
|
|
1216
1216
|
for (F = 0; F < i; F += 1)
|
|
1217
1217
|
e[F].animation.unmute(_);
|
|
1218
1218
|
}
|
|
1219
|
-
return t.registerAnimation = o, t.loadAnimation = b, t.setSpeed = g, t.setDirection = d, t.play = C, t.pause = f, t.stop = E, t.togglePause = A, t.searchAnimations = I, t.resize = D, t.goToAndStop = x, t.destroy = T, t.freeze = G, t.unfreeze = B, t.setVolume =
|
|
1219
|
+
return t.registerAnimation = o, t.loadAnimation = b, t.setSpeed = g, t.setDirection = d, t.play = C, t.pause = f, t.stop = E, t.togglePause = A, t.searchAnimations = I, t.resize = D, t.goToAndStop = x, t.destroy = T, t.freeze = G, t.unfreeze = B, t.setVolume = z, t.mute = j, t.unmute = L, t.getRegisteredAnimations = p, t;
|
|
1220
1220
|
}(), BezierFactory = function() {
|
|
1221
1221
|
var t = {};
|
|
1222
1222
|
t.getBezierEasing = r;
|
|
@@ -1225,10 +1225,10 @@ function requireLottie() {
|
|
|
1225
1225
|
var T = A || ("bez_" + m + "_" + f + "_" + x + "_" + E).replace(/\./g, "p");
|
|
1226
1226
|
if (e[T])
|
|
1227
1227
|
return e[T];
|
|
1228
|
-
var I = new
|
|
1228
|
+
var I = new c([m, f, x, E]);
|
|
1229
1229
|
return e[T] = I, I;
|
|
1230
1230
|
}
|
|
1231
|
-
var i = 4, s = 1e-3, a = 1e-7, n = 10, l = 11, o = 1 / (l - 1),
|
|
1231
|
+
var i = 4, s = 1e-3, a = 1e-7, n = 10, l = 11, o = 1 / (l - 1), p = typeof Float32Array == "function";
|
|
1232
1232
|
function y(m, f) {
|
|
1233
1233
|
return 1 - 3 * f + 3 * m;
|
|
1234
1234
|
}
|
|
@@ -1260,10 +1260,10 @@ function requireLottie() {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
return f;
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1264
|
-
this._p = m, this._mSampleValues =
|
|
1263
|
+
function c(m) {
|
|
1264
|
+
this._p = m, this._mSampleValues = p ? new Float32Array(l) : new Array(l), this._precomputed = !1, this.get = this.get.bind(this);
|
|
1265
1265
|
}
|
|
1266
|
-
return
|
|
1266
|
+
return c.prototype = {
|
|
1267
1267
|
get: function(f) {
|
|
1268
1268
|
var x = this._p[0], E = this._p[1], A = this._p[2], T = this._p[3];
|
|
1269
1269
|
return this._precomputed || this._precompute(), x === E && A === T ? f : f === 0 ? 0 : f === 1 ? 1 : b(this._getTForX(f), E, T);
|
|
@@ -1302,11 +1302,11 @@ function requireLottie() {
|
|
|
1302
1302
|
release: o
|
|
1303
1303
|
};
|
|
1304
1304
|
function l() {
|
|
1305
|
-
var
|
|
1306
|
-
return i ? (i -= 1,
|
|
1305
|
+
var p;
|
|
1306
|
+
return i ? (i -= 1, p = a[i]) : p = e(), p;
|
|
1307
1307
|
}
|
|
1308
|
-
function o(
|
|
1309
|
-
i === s && (a = pooling.double(a), s *= 2), r && r(
|
|
1308
|
+
function o(p) {
|
|
1309
|
+
i === s && (a = pooling.double(a), s *= 2), r && r(p), a[i] = p, i += 1;
|
|
1310
1310
|
}
|
|
1311
1311
|
return n;
|
|
1312
1312
|
};
|
|
@@ -1336,32 +1336,32 @@ function requireLottie() {
|
|
|
1336
1336
|
}();
|
|
1337
1337
|
function bezFunction() {
|
|
1338
1338
|
var t = Math;
|
|
1339
|
-
function e(u, b, g, d, C,
|
|
1340
|
-
var m = u * d + b * C + g *
|
|
1339
|
+
function e(u, b, g, d, C, c) {
|
|
1340
|
+
var m = u * d + b * C + g * c - C * d - c * u - g * b;
|
|
1341
1341
|
return m > -1e-3 && m < 1e-3;
|
|
1342
1342
|
}
|
|
1343
|
-
function r(u, b, g, d, C,
|
|
1344
|
-
if (g === 0 &&
|
|
1343
|
+
function r(u, b, g, d, C, c, m, f, x) {
|
|
1344
|
+
if (g === 0 && c === 0 && x === 0)
|
|
1345
1345
|
return e(u, b, d, C, m, f);
|
|
1346
|
-
var E = t.sqrt(t.pow(d - u, 2) + t.pow(C - b, 2) + t.pow(
|
|
1346
|
+
var E = t.sqrt(t.pow(d - u, 2) + t.pow(C - b, 2) + t.pow(c - g, 2)), A = t.sqrt(t.pow(m - u, 2) + t.pow(f - b, 2) + t.pow(x - g, 2)), T = t.sqrt(t.pow(m - d, 2) + t.pow(f - C, 2) + t.pow(x - c, 2)), I;
|
|
1347
1347
|
return E > A ? E > T ? I = E - A - T : I = T - A - E : T > A ? I = T - A - E : I = A - E - T, I > -1e-4 && I < 1e-4;
|
|
1348
1348
|
}
|
|
1349
1349
|
var i = /* @__PURE__ */ function() {
|
|
1350
1350
|
return function(u, b, g, d) {
|
|
1351
|
-
var C = getDefaultCurveSegments(),
|
|
1352
|
-
for (f = g.length,
|
|
1353
|
-
for (E =
|
|
1351
|
+
var C = getDefaultCurveSegments(), c, m, f, x, E, A = 0, T, I = [], D = [], H = bezierLengthPool.newElement();
|
|
1352
|
+
for (f = g.length, c = 0; c < C; c += 1) {
|
|
1353
|
+
for (E = c / (C - 1), T = 0, m = 0; m < f; m += 1)
|
|
1354
1354
|
x = bmPow(1 - E, 3) * u[m] + 3 * bmPow(1 - E, 2) * E * g[m] + 3 * (1 - E) * bmPow(E, 2) * d[m] + bmPow(E, 3) * b[m], I[m] = x, D[m] !== null && (T += bmPow(I[m] - D[m], 2)), D[m] = I[m];
|
|
1355
|
-
T && (T = bmSqrt(T), A += T), H.percents[
|
|
1355
|
+
T && (T = bmSqrt(T), A += T), H.percents[c] = E, H.lengths[c] = A;
|
|
1356
1356
|
}
|
|
1357
1357
|
return H.addedLength = A, H;
|
|
1358
1358
|
};
|
|
1359
1359
|
}();
|
|
1360
1360
|
function s(u) {
|
|
1361
|
-
var b = segmentsLengthPool.newElement(), g = u.c, d = u.v, C = u.o,
|
|
1361
|
+
var b = segmentsLengthPool.newElement(), g = u.c, d = u.v, C = u.o, c = u.i, m, f = u._length, x = b.lengths, E = 0;
|
|
1362
1362
|
for (m = 0; m < f - 1; m += 1)
|
|
1363
|
-
x[m] = i(d[m], d[m + 1], C[m],
|
|
1364
|
-
return g && f && (x[m] = i(d[m], d[0], C[m],
|
|
1363
|
+
x[m] = i(d[m], d[m + 1], C[m], c[m + 1]), E += x[m].addedLength;
|
|
1364
|
+
return g && f && (x[m] = i(d[m], d[0], C[m], c[0]), E += x[m].addedLength), b.totalLength = E, b;
|
|
1365
1365
|
}
|
|
1366
1366
|
function a(u) {
|
|
1367
1367
|
this.segmentLength = 0, this.points = new Array(u);
|
|
@@ -1372,8 +1372,8 @@ function requireLottie() {
|
|
|
1372
1372
|
var l = /* @__PURE__ */ function() {
|
|
1373
1373
|
var u = {};
|
|
1374
1374
|
return function(b, g, d, C) {
|
|
1375
|
-
var
|
|
1376
|
-
if (!u[
|
|
1375
|
+
var c = (b[0] + "_" + b[1] + "_" + g[0] + "_" + g[1] + "_" + d[0] + "_" + d[1] + "_" + C[0] + "_" + C[1]).replace(/\./g, "p");
|
|
1376
|
+
if (!u[c]) {
|
|
1377
1377
|
var m = getDefaultCurveSegments(), f, x, E, A, T, I = 0, D, H, G = null;
|
|
1378
1378
|
b.length === 2 && (b[0] !== g[0] || b[1] !== g[1]) && e(b[0], b[1], g[0], g[1], b[0] + d[0], b[1] + d[1]) && e(b[0], b[1], g[0], g[1], g[0] + C[0], g[1] + C[1]) && (m = 2);
|
|
1379
1379
|
var B = new a(m);
|
|
@@ -1382,41 +1382,41 @@ function requireLottie() {
|
|
|
1382
1382
|
A = bmPow(1 - T, 3) * b[x] + 3 * bmPow(1 - T, 2) * T * (b[x] + d[x]) + 3 * (1 - T) * bmPow(T, 2) * (g[x] + C[x]) + bmPow(T, 3) * g[x], H[x] = A, G !== null && (D += bmPow(H[x] - G[x], 2));
|
|
1383
1383
|
D = bmSqrt(D), I += D, B.points[f] = new n(D, H), G = H;
|
|
1384
1384
|
}
|
|
1385
|
-
B.segmentLength = I, u[
|
|
1385
|
+
B.segmentLength = I, u[c] = B;
|
|
1386
1386
|
}
|
|
1387
|
-
return u[
|
|
1387
|
+
return u[c];
|
|
1388
1388
|
};
|
|
1389
1389
|
}();
|
|
1390
1390
|
function o(u, b) {
|
|
1391
|
-
var g = b.percents, d = b.lengths, C = g.length,
|
|
1392
|
-
if (
|
|
1393
|
-
return g[
|
|
1394
|
-
for (var x = d[
|
|
1395
|
-
if (d[
|
|
1396
|
-
if (
|
|
1397
|
-
return g[
|
|
1391
|
+
var g = b.percents, d = b.lengths, C = g.length, c = bmFloor((C - 1) * u), m = u * b.addedLength, f = 0;
|
|
1392
|
+
if (c === C - 1 || c === 0 || m === d[c])
|
|
1393
|
+
return g[c];
|
|
1394
|
+
for (var x = d[c] > m ? -1 : 1, E = !0; E; )
|
|
1395
|
+
if (d[c] <= m && d[c + 1] > m ? (f = (m - d[c]) / (d[c + 1] - d[c]), E = !1) : c += x, c < 0 || c >= C - 1) {
|
|
1396
|
+
if (c === C - 1)
|
|
1397
|
+
return g[c];
|
|
1398
1398
|
E = !1;
|
|
1399
1399
|
}
|
|
1400
|
-
return g[
|
|
1400
|
+
return g[c] + (g[c + 1] - g[c]) * f;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1403
|
-
var m = o(C,
|
|
1402
|
+
function p(u, b, g, d, C, c) {
|
|
1403
|
+
var m = o(C, c), f = 1 - m, x = t.round((f * f * f * u[0] + (m * f * f + f * m * f + f * f * m) * g[0] + (m * m * f + f * m * m + m * f * m) * d[0] + m * m * m * b[0]) * 1e3) / 1e3, E = t.round((f * f * f * u[1] + (m * f * f + f * m * f + f * f * m) * g[1] + (m * m * f + f * m * m + m * f * m) * d[1] + m * m * m * b[1]) * 1e3) / 1e3;
|
|
1404
1404
|
return [x, E];
|
|
1405
1405
|
}
|
|
1406
1406
|
var y = createTypedArray("float32", 8);
|
|
1407
|
-
function P(u, b, g, d, C,
|
|
1407
|
+
function P(u, b, g, d, C, c, m) {
|
|
1408
1408
|
C < 0 ? C = 0 : C > 1 && (C = 1);
|
|
1409
1409
|
var f = o(C, m);
|
|
1410
|
-
|
|
1411
|
-
var x = o(
|
|
1410
|
+
c = c > 1 ? 1 : c;
|
|
1411
|
+
var x = o(c, m), E, A = u.length, T = 1 - f, I = 1 - x, D = T * T * T, H = f * T * T * 3, G = f * f * T * 3, B = f * f * f, z = T * T * I, j = f * T * I + T * f * I + T * T * x, L = f * f * I + T * f * x + f * T * x, _ = f * f * x, F = T * I * I, k = f * I * I + T * x * I + T * I * x, S = f * x * I + T * x * x + f * I * x, V = f * x * x, M = I * I * I, R = x * I * I + I * x * I + I * I * x, O = x * x * I + I * x * x + x * I * x, N = x * x * x;
|
|
1412
1412
|
for (E = 0; E < A; E += 1)
|
|
1413
|
-
y[E * 4] = t.round((D * u[E] + H * g[E] + G * d[E] + B * b[E]) * 1e3) / 1e3, y[E * 4 + 1] = t.round((
|
|
1413
|
+
y[E * 4] = t.round((D * u[E] + H * g[E] + G * d[E] + B * b[E]) * 1e3) / 1e3, y[E * 4 + 1] = t.round((z * u[E] + j * g[E] + L * d[E] + _ * b[E]) * 1e3) / 1e3, y[E * 4 + 2] = t.round((F * u[E] + k * g[E] + S * d[E] + V * b[E]) * 1e3) / 1e3, y[E * 4 + 3] = t.round((M * u[E] + R * g[E] + O * d[E] + N * b[E]) * 1e3) / 1e3;
|
|
1414
1414
|
return y;
|
|
1415
1415
|
}
|
|
1416
1416
|
return {
|
|
1417
1417
|
getSegmentsLength: s,
|
|
1418
1418
|
getNewSegment: P,
|
|
1419
|
-
getPointInSegment:
|
|
1419
|
+
getPointInSegment: p,
|
|
1420
1420
|
buildBezierData: l,
|
|
1421
1421
|
pointOnLine2D: e,
|
|
1422
1422
|
pointOnLine3D: r
|
|
@@ -1426,28 +1426,28 @@ function requireLottie() {
|
|
|
1426
1426
|
function interpolateValue(t, e) {
|
|
1427
1427
|
var r = this.offsetTime, i;
|
|
1428
1428
|
this.propType === "multidimensional" && (i = createTypedArray("float32", this.pv.length));
|
|
1429
|
-
for (var s = e.lastIndex, a = s, n = this.keyframes.length - 1, l = !0, o,
|
|
1430
|
-
if (o = this.keyframes[a],
|
|
1431
|
-
o.h && (o =
|
|
1429
|
+
for (var s = e.lastIndex, a = s, n = this.keyframes.length - 1, l = !0, o, p, y; l; ) {
|
|
1430
|
+
if (o = this.keyframes[a], p = this.keyframes[a + 1], a === n - 1 && t >= p.t - r) {
|
|
1431
|
+
o.h && (o = p), s = 0;
|
|
1432
1432
|
break;
|
|
1433
1433
|
}
|
|
1434
|
-
if (
|
|
1434
|
+
if (p.t - r > t) {
|
|
1435
1435
|
s = a;
|
|
1436
1436
|
break;
|
|
1437
1437
|
}
|
|
1438
1438
|
a < n - 1 ? a += 1 : (s = 0, l = !1);
|
|
1439
1439
|
}
|
|
1440
1440
|
y = this.keyframesMetadata[a] || {};
|
|
1441
|
-
var P, u, b, g, d, C,
|
|
1441
|
+
var P, u, b, g, d, C, c = p.t - r, m = o.t - r, f;
|
|
1442
1442
|
if (o.to) {
|
|
1443
|
-
y.bezierData || (y.bezierData = bez.buildBezierData(o.s,
|
|
1443
|
+
y.bezierData || (y.bezierData = bez.buildBezierData(o.s, p.s || o.e, o.to, o.ti));
|
|
1444
1444
|
var x = y.bezierData;
|
|
1445
|
-
if (t >=
|
|
1446
|
-
var E = t >=
|
|
1445
|
+
if (t >= c || t < m) {
|
|
1446
|
+
var E = t >= c ? x.points.length - 1 : 0;
|
|
1447
1447
|
for (u = x.points[E].point.length, P = 0; P < u; P += 1)
|
|
1448
1448
|
i[P] = x.points[E].point[P];
|
|
1449
1449
|
} else {
|
|
1450
|
-
y.__fnct ? C = y.__fnct : (C = BezierFactory.getBezierEasing(o.o.x, o.o.y, o.i.x, o.i.y, o.n).get, y.__fnct = C), b = C((t - m) / (
|
|
1450
|
+
y.__fnct ? C = y.__fnct : (C = BezierFactory.getBezierEasing(o.o.x, o.o.y, o.i.x, o.i.y, o.n).get, y.__fnct = C), b = C((t - m) / (c - m));
|
|
1451
1451
|
var A = x.segmentLength * b, T, I = e.lastFrame < t && e._lastKeyframeIndex === a ? e._lastAddedLength : 0;
|
|
1452
1452
|
for (d = e.lastFrame < t && e._lastKeyframeIndex === a ? e._lastPoint : 0, l = !0, g = x.points.length; l; ) {
|
|
1453
1453
|
if (I += x.points[d].partialLength, A === 0 || b === 0 || d === x.points.length - 1) {
|
|
@@ -1464,32 +1464,32 @@ function requireLottie() {
|
|
|
1464
1464
|
e._lastPoint = d, e._lastAddedLength = I - x.points[d].partialLength, e._lastKeyframeIndex = a;
|
|
1465
1465
|
}
|
|
1466
1466
|
} else {
|
|
1467
|
-
var D, H, G, B,
|
|
1468
|
-
if (n = o.s.length, f =
|
|
1469
|
-
if (t >=
|
|
1467
|
+
var D, H, G, B, z;
|
|
1468
|
+
if (n = o.s.length, f = p.s || o.e, this.sh && o.h !== 1)
|
|
1469
|
+
if (t >= c)
|
|
1470
1470
|
i[0] = f[0], i[1] = f[1], i[2] = f[2];
|
|
1471
1471
|
else if (t <= m)
|
|
1472
1472
|
i[0] = o.s[0], i[1] = o.s[1], i[2] = o.s[2];
|
|
1473
1473
|
else {
|
|
1474
|
-
var j = createQuaternion(o.s), L = createQuaternion(f), _ = (t - m) / (
|
|
1474
|
+
var j = createQuaternion(o.s), L = createQuaternion(f), _ = (t - m) / (c - m);
|
|
1475
1475
|
quaternionToEuler(i, slerp(j, L, _));
|
|
1476
1476
|
}
|
|
1477
1477
|
else
|
|
1478
1478
|
for (a = 0; a < n; a += 1)
|
|
1479
|
-
o.h !== 1 && (t >=
|
|
1479
|
+
o.h !== 1 && (t >= c ? b = 1 : t < m ? b = 0 : (o.o.x.constructor === Array ? (y.__fnct || (y.__fnct = []), y.__fnct[a] ? C = y.__fnct[a] : (D = o.o.x[a] === void 0 ? o.o.x[0] : o.o.x[a], H = o.o.y[a] === void 0 ? o.o.y[0] : o.o.y[a], G = o.i.x[a] === void 0 ? o.i.x[0] : o.i.x[a], B = o.i.y[a] === void 0 ? o.i.y[0] : o.i.y[a], C = BezierFactory.getBezierEasing(D, H, G, B).get, y.__fnct[a] = C)) : y.__fnct ? C = y.__fnct : (D = o.o.x, H = o.o.y, G = o.i.x, B = o.i.y, C = BezierFactory.getBezierEasing(D, H, G, B).get, o.keyframeMetadata = C), b = C((t - m) / (c - m)))), f = p.s || o.e, z = o.h === 1 ? o.s[a] : o.s[a] + (f[a] - o.s[a]) * b, this.propType === "multidimensional" ? i[a] = z : i = z;
|
|
1480
1480
|
}
|
|
1481
1481
|
return e.lastIndex = s, i;
|
|
1482
1482
|
}
|
|
1483
1483
|
function slerp(t, e, r) {
|
|
1484
|
-
var i = [], s = t[0], a = t[1], n = t[2], l = t[3], o = e[0],
|
|
1485
|
-
return b = s * o + a *
|
|
1484
|
+
var i = [], s = t[0], a = t[1], n = t[2], l = t[3], o = e[0], p = e[1], y = e[2], P = e[3], u, b, g, d, C;
|
|
1485
|
+
return b = s * o + a * p + n * y + l * P, b < 0 && (b = -b, o = -o, p = -p, y = -y, P = -P), 1 - b > 1e-6 ? (u = Math.acos(b), g = Math.sin(u), d = Math.sin((1 - r) * u) / g, C = Math.sin(r * u) / g) : (d = 1 - r, C = r), i[0] = d * s + C * o, i[1] = d * a + C * p, i[2] = d * n + C * y, i[3] = d * l + C * P, i;
|
|
1486
1486
|
}
|
|
1487
1487
|
function quaternionToEuler(t, e) {
|
|
1488
1488
|
var r = e[0], i = e[1], s = e[2], a = e[3], n = Math.atan2(2 * i * a - 2 * r * s, 1 - 2 * i * i - 2 * s * s), l = Math.asin(2 * r * i + 2 * s * a), o = Math.atan2(2 * r * a - 2 * i * s, 1 - 2 * r * r - 2 * s * s);
|
|
1489
1489
|
t[0] = n / degToRads, t[1] = l / degToRads, t[2] = o / degToRads;
|
|
1490
1490
|
}
|
|
1491
1491
|
function createQuaternion(t) {
|
|
1492
|
-
var e = t[0] * degToRads, r = t[1] * degToRads, i = t[2] * degToRads, s = Math.cos(e / 2), a = Math.cos(r / 2), n = Math.cos(i / 2), l = Math.sin(e / 2), o = Math.sin(r / 2),
|
|
1492
|
+
var e = t[0] * degToRads, r = t[1] * degToRads, i = t[2] * degToRads, s = Math.cos(e / 2), a = Math.cos(r / 2), n = Math.cos(i / 2), l = Math.sin(e / 2), o = Math.sin(r / 2), p = Math.sin(i / 2), y = s * a * n - l * o * p, P = l * o * n + s * a * p, u = l * a * n + s * o * p, b = s * o * n - l * a * p;
|
|
1493
1493
|
return [P, u, b, y];
|
|
1494
1494
|
}
|
|
1495
1495
|
function getValueAtCurrentTime() {
|
|
@@ -1545,9 +1545,9 @@ function requireLottie() {
|
|
|
1545
1545
|
}
|
|
1546
1546
|
function KeyframedMultidimensionalProperty(t, e, r, i) {
|
|
1547
1547
|
this.propType = "multidimensional";
|
|
1548
|
-
var s, a = e.k.length, n, l, o,
|
|
1548
|
+
var s, a = e.k.length, n, l, o, p;
|
|
1549
1549
|
for (s = 0; s < a - 1; s += 1)
|
|
1550
|
-
e.k[s].to && e.k[s].s && e.k[s + 1] && e.k[s + 1].s && (n = e.k[s].s, l = e.k[s + 1].s, o = e.k[s].to,
|
|
1550
|
+
e.k[s].to && e.k[s].s && e.k[s + 1] && e.k[s + 1].s && (n = e.k[s].s, l = e.k[s + 1].s, o = e.k[s].to, p = e.k[s].ti, (n.length === 2 && !(n[0] === l[0] && n[1] === l[1]) && bez.pointOnLine2D(n[0], n[1], l[0], l[1], n[0] + o[0], n[1] + o[1]) && bez.pointOnLine2D(n[0], n[1], l[0], l[1], l[0] + p[0], l[1] + p[1]) || n.length === 3 && !(n[0] === l[0] && n[1] === l[1] && n[2] === l[2]) && bez.pointOnLine3D(n[0], n[1], n[2], l[0], l[1], l[2], n[0] + o[0], n[1] + o[1], n[2] + o[2]) && bez.pointOnLine3D(n[0], n[1], n[2], l[0], l[1], l[2], l[0] + p[0], l[1] + p[1], l[2] + p[2])) && (e.k[s].to = null, e.k[s].ti = null), n[0] === l[0] && n[1] === l[1] && o[0] === 0 && o[1] === 0 && p[0] === 0 && p[1] === 0 && (n.length === 2 || n[2] === l[2] && o[2] === 0 && p[2] === 0) && (e.k[s].to = null, e.k[s].ti = null));
|
|
1551
1551
|
this.effectsSequence = [getValueAtCurrentTime.bind(this)], this.data = e, this.keyframes = e.k, this.keyframesMetadata = [], this.offsetTime = t.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = r || 1, this.elem = t, this.container = i, this.comp = t.comp, this.getValue = processEffectsSequence, this.setVValue = setVValue, this.interpolateValue = interpolateValue, this.frameId = -1;
|
|
1552
1552
|
var y = e.k[0].s.length;
|
|
1553
1553
|
for (this.v = createTypedArray("float32", y), this.pv = createTypedArray("float32", y), s = 0; s < y; s += 1)
|
|
@@ -1696,23 +1696,23 @@ function requireLottie() {
|
|
|
1696
1696
|
return t;
|
|
1697
1697
|
}(), ShapePropertyFactory = function() {
|
|
1698
1698
|
var t = -999999;
|
|
1699
|
-
function e(
|
|
1700
|
-
var x = f.lastIndex, E, A, T, I, D, H, G, B,
|
|
1701
|
-
if (
|
|
1699
|
+
function e(c, m, f) {
|
|
1700
|
+
var x = f.lastIndex, E, A, T, I, D, H, G, B, z, j = this.keyframes;
|
|
1701
|
+
if (c < j[0].t - this.offsetTime)
|
|
1702
1702
|
E = j[0].s[0], T = !0, x = 0;
|
|
1703
|
-
else if (
|
|
1703
|
+
else if (c >= j[j.length - 1].t - this.offsetTime)
|
|
1704
1704
|
E = j[j.length - 1].s ? j[j.length - 1].s[0] : j[j.length - 2].e[0], T = !0;
|
|
1705
1705
|
else {
|
|
1706
|
-
for (var L = x, _ = j.length - 1, F = !0, k, S, V; F && (k = j[L], S = j[L + 1], !(S.t - this.offsetTime >
|
|
1706
|
+
for (var L = x, _ = j.length - 1, F = !0, k, S, V; F && (k = j[L], S = j[L + 1], !(S.t - this.offsetTime > c)); )
|
|
1707
1707
|
L < _ - 1 ? L += 1 : F = !1;
|
|
1708
1708
|
if (V = this.keyframesMetadata[L] || {}, T = k.h === 1, x = L, !T) {
|
|
1709
|
-
if (
|
|
1709
|
+
if (c >= S.t - this.offsetTime)
|
|
1710
1710
|
B = 1;
|
|
1711
|
-
else if (
|
|
1711
|
+
else if (c < k.t - this.offsetTime)
|
|
1712
1712
|
B = 0;
|
|
1713
1713
|
else {
|
|
1714
1714
|
var M;
|
|
1715
|
-
V.__fnct ? M = V.__fnct : (M = BezierFactory.getBezierEasing(k.o.x, k.o.y, k.i.x, k.i.y).get, V.__fnct = M), B = M((
|
|
1715
|
+
V.__fnct ? M = V.__fnct : (M = BezierFactory.getBezierEasing(k.o.x, k.o.y, k.i.x, k.i.y).get, V.__fnct = M), B = M((c - (k.t - this.offsetTime)) / (S.t - this.offsetTime - (k.t - this.offsetTime)));
|
|
1716
1716
|
}
|
|
1717
1717
|
A = S.s ? S.s[0] : k.e[0];
|
|
1718
1718
|
}
|
|
@@ -1720,26 +1720,26 @@ function requireLottie() {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
for (H = m._length, G = E.i[0].length, f.lastIndex = x, I = 0; I < H; I += 1)
|
|
1722
1722
|
for (D = 0; D < G; D += 1)
|
|
1723
|
-
|
|
1723
|
+
z = T ? E.i[I][D] : E.i[I][D] + (A.i[I][D] - E.i[I][D]) * B, m.i[I][D] = z, z = T ? E.o[I][D] : E.o[I][D] + (A.o[I][D] - E.o[I][D]) * B, m.o[I][D] = z, z = T ? E.v[I][D] : E.v[I][D] + (A.v[I][D] - E.v[I][D]) * B, m.v[I][D] = z;
|
|
1724
1724
|
}
|
|
1725
1725
|
function r() {
|
|
1726
|
-
var
|
|
1727
|
-
return x !== t && (x < m &&
|
|
1726
|
+
var c = this.comp.renderedFrame - this.offsetTime, m = this.keyframes[0].t - this.offsetTime, f = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, x = this._caching.lastFrame;
|
|
1727
|
+
return x !== t && (x < m && c < m || x > f && c > f) || (this._caching.lastIndex = x < c ? this._caching.lastIndex : 0, this.interpolateShape(c, this.pv, this._caching)), this._caching.lastFrame = c, this.pv;
|
|
1728
1728
|
}
|
|
1729
1729
|
function i() {
|
|
1730
1730
|
this.paths = this.localShapeCollection;
|
|
1731
1731
|
}
|
|
1732
|
-
function s(
|
|
1733
|
-
if (
|
|
1732
|
+
function s(c, m) {
|
|
1733
|
+
if (c._length !== m._length || c.c !== m.c)
|
|
1734
1734
|
return !1;
|
|
1735
|
-
var f, x =
|
|
1735
|
+
var f, x = c._length;
|
|
1736
1736
|
for (f = 0; f < x; f += 1)
|
|
1737
|
-
if (
|
|
1737
|
+
if (c.v[f][0] !== m.v[f][0] || c.v[f][1] !== m.v[f][1] || c.o[f][0] !== m.o[f][0] || c.o[f][1] !== m.o[f][1] || c.i[f][0] !== m.i[f][0] || c.i[f][1] !== m.i[f][1])
|
|
1738
1738
|
return !1;
|
|
1739
1739
|
return !0;
|
|
1740
1740
|
}
|
|
1741
|
-
function a(
|
|
1742
|
-
s(this.v,
|
|
1741
|
+
function a(c) {
|
|
1742
|
+
s(this.v, c) || (this.v = shapePool.clone(c), this.localShapeCollection.releaseShapes(), this.localShapeCollection.addShape(this.v), this._mdf = !0, this.paths = this.localShapeCollection);
|
|
1743
1743
|
}
|
|
1744
1744
|
function n() {
|
|
1745
1745
|
if (this.elem.globalData.frameId !== this.frameId) {
|
|
@@ -1752,34 +1752,34 @@ function requireLottie() {
|
|
|
1752
1752
|
return;
|
|
1753
1753
|
}
|
|
1754
1754
|
this.lock = !0, this._mdf = !1;
|
|
1755
|
-
var
|
|
1756
|
-
this.kf ?
|
|
1755
|
+
var c;
|
|
1756
|
+
this.kf ? c = this.pv : this.data.ks ? c = this.data.ks.k : c = this.data.pt.k;
|
|
1757
1757
|
var m, f = this.effectsSequence.length;
|
|
1758
1758
|
for (m = 0; m < f; m += 1)
|
|
1759
|
-
|
|
1760
|
-
this.setVValue(
|
|
1759
|
+
c = this.effectsSequence[m](c);
|
|
1760
|
+
this.setVValue(c), this.lock = !1, this.frameId = this.elem.globalData.frameId;
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
|
-
function l(
|
|
1764
|
-
this.propType = "shape", this.comp =
|
|
1763
|
+
function l(c, m, f) {
|
|
1764
|
+
this.propType = "shape", this.comp = c.comp, this.container = c, this.elem = c, this.data = m, this.k = !1, this.kf = !1, this._mdf = !1;
|
|
1765
1765
|
var x = f === 3 ? m.pt.k : m.ks.k;
|
|
1766
1766
|
this.v = shapePool.clone(x), this.pv = shapePool.clone(this.v), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = i, this.effectsSequence = [];
|
|
1767
1767
|
}
|
|
1768
|
-
function o(
|
|
1769
|
-
this.effectsSequence.push(
|
|
1768
|
+
function o(c) {
|
|
1769
|
+
this.effectsSequence.push(c), this.container.addDynamicProperty(this);
|
|
1770
1770
|
}
|
|
1771
1771
|
l.prototype.interpolateShape = e, l.prototype.getValue = n, l.prototype.setVValue = a, l.prototype.addEffect = o;
|
|
1772
|
-
function c
|
|
1773
|
-
this.propType = "shape", this.comp =
|
|
1772
|
+
function p(c, m, f) {
|
|
1773
|
+
this.propType = "shape", this.comp = c.comp, this.elem = c, this.container = c, this.offsetTime = c.data.st, this.keyframes = f === 3 ? m.pt.k : m.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
|
|
1774
1774
|
var x = this.keyframes[0].s[0].i.length;
|
|
1775
1775
|
this.v = shapePool.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, x), this.pv = shapePool.clone(this.v), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = t, this.reset = i, this._caching = {
|
|
1776
1776
|
lastFrame: t,
|
|
1777
1777
|
lastIndex: 0
|
|
1778
1778
|
}, this.effectsSequence = [r.bind(this)];
|
|
1779
1779
|
}
|
|
1780
|
-
|
|
1780
|
+
p.prototype.getValue = n, p.prototype.interpolateShape = e, p.prototype.setVValue = a, p.prototype.addEffect = o;
|
|
1781
1781
|
var y = function() {
|
|
1782
|
-
var
|
|
1782
|
+
var c = roundCorner;
|
|
1783
1783
|
function m(f, x) {
|
|
1784
1784
|
this.v = shapePool.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = x.d, this.elem = f, this.comp = f.comp, this.frameId = -1, this.initDynamicPropertyContainer(f), this.p = PropertyFactory.getProp(f, x.p, 1, 0, this), this.s = PropertyFactory.getProp(f, x.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath());
|
|
1785
1785
|
}
|
|
@@ -1790,42 +1790,42 @@ function requireLottie() {
|
|
|
1790
1790
|
},
|
|
1791
1791
|
convertEllToPath: function() {
|
|
1792
1792
|
var x = this.p.v[0], E = this.p.v[1], A = this.s.v[0] / 2, T = this.s.v[1] / 2, I = this.d !== 3, D = this.v;
|
|
1793
|
-
D.v[0][0] = x, D.v[0][1] = E - T, D.v[1][0] = I ? x + A : x - A, D.v[1][1] = E, D.v[2][0] = x, D.v[2][1] = E + T, D.v[3][0] = I ? x - A : x + A, D.v[3][1] = E, D.i[0][0] = I ? x - A *
|
|
1793
|
+
D.v[0][0] = x, D.v[0][1] = E - T, D.v[1][0] = I ? x + A : x - A, D.v[1][1] = E, D.v[2][0] = x, D.v[2][1] = E + T, D.v[3][0] = I ? x - A : x + A, D.v[3][1] = E, D.i[0][0] = I ? x - A * c : x + A * c, D.i[0][1] = E - T, D.i[1][0] = I ? x + A : x - A, D.i[1][1] = E - T * c, D.i[2][0] = I ? x + A * c : x - A * c, D.i[2][1] = E + T, D.i[3][0] = I ? x - A : x + A, D.i[3][1] = E + T * c, D.o[0][0] = I ? x + A * c : x - A * c, D.o[0][1] = E - T, D.o[1][0] = I ? x + A : x - A, D.o[1][1] = E + T * c, D.o[2][0] = I ? x - A * c : x + A * c, D.o[2][1] = E + T, D.o[3][0] = I ? x - A : x + A, D.o[3][1] = E - T * c;
|
|
1794
1794
|
}
|
|
1795
1795
|
}, extendPrototype([DynamicPropertyContainer], m), m;
|
|
1796
1796
|
}(), P = function() {
|
|
1797
|
-
function
|
|
1797
|
+
function c(m, f) {
|
|
1798
1798
|
this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem = m, this.comp = m.comp, this.data = f, this.frameId = -1, this.d = f.d, this.initDynamicPropertyContainer(m), f.sy === 1 ? (this.ir = PropertyFactory.getProp(m, f.ir, 0, 0, this), this.is = PropertyFactory.getProp(m, f.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = PropertyFactory.getProp(m, f.pt, 0, 0, this), this.p = PropertyFactory.getProp(m, f.p, 1, 0, this), this.r = PropertyFactory.getProp(m, f.r, 0, degToRads, this), this.or = PropertyFactory.getProp(m, f.or, 0, 0, this), this.os = PropertyFactory.getProp(m, f.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());
|
|
1799
1799
|
}
|
|
1800
|
-
return
|
|
1800
|
+
return c.prototype = {
|
|
1801
1801
|
reset: i,
|
|
1802
1802
|
getValue: function() {
|
|
1803
1803
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
1804
1804
|
},
|
|
1805
1805
|
convertStarToPath: function() {
|
|
1806
|
-
var f = Math.floor(this.pt.v) * 2, x = Math.PI * 2 / f, E = !0, A = this.or.v, T = this.ir.v, I = this.os.v, D = this.is.v, H = 2 * Math.PI * A / (f * 2), G = 2 * Math.PI * T / (f * 2), B,
|
|
1806
|
+
var f = Math.floor(this.pt.v) * 2, x = Math.PI * 2 / f, E = !0, A = this.or.v, T = this.ir.v, I = this.os.v, D = this.is.v, H = 2 * Math.PI * A / (f * 2), G = 2 * Math.PI * T / (f * 2), B, z, j, L, _ = -Math.PI / 2;
|
|
1807
1807
|
_ += this.r.v;
|
|
1808
1808
|
var F = this.data.d === 3 ? -1 : 1;
|
|
1809
1809
|
for (this.v._length = 0, B = 0; B < f; B += 1) {
|
|
1810
|
-
|
|
1811
|
-
var k =
|
|
1810
|
+
z = E ? A : T, j = E ? I : D, L = E ? H : G;
|
|
1811
|
+
var k = z * Math.cos(_), S = z * Math.sin(_), V = k === 0 && S === 0 ? 0 : S / Math.sqrt(k * k + S * S), M = k === 0 && S === 0 ? 0 : -k / Math.sqrt(k * k + S * S);
|
|
1812
1812
|
k += +this.p.v[0], S += +this.p.v[1], this.v.setTripleAt(k, S, k - V * L * j * F, S - M * L * j * F, k + V * L * j * F, S + M * L * j * F, B, !0), E = !E, _ += x * F;
|
|
1813
1813
|
}
|
|
1814
1814
|
},
|
|
1815
1815
|
convertPolygonToPath: function() {
|
|
1816
1816
|
var f = Math.floor(this.pt.v), x = Math.PI * 2 / f, E = this.or.v, A = this.os.v, T = 2 * Math.PI * E / (f * 4), I, D = -Math.PI * 0.5, H = this.data.d === 3 ? -1 : 1;
|
|
1817
1817
|
for (D += this.r.v, this.v._length = 0, I = 0; I < f; I += 1) {
|
|
1818
|
-
var G = E * Math.cos(D), B = E * Math.sin(D),
|
|
1819
|
-
G += +this.p.v[0], B += +this.p.v[1], this.v.setTripleAt(G, B, G -
|
|
1818
|
+
var G = E * Math.cos(D), B = E * Math.sin(D), z = G === 0 && B === 0 ? 0 : B / Math.sqrt(G * G + B * B), j = G === 0 && B === 0 ? 0 : -G / Math.sqrt(G * G + B * B);
|
|
1819
|
+
G += +this.p.v[0], B += +this.p.v[1], this.v.setTripleAt(G, B, G - z * T * A * H, B - j * T * A * H, G + z * T * A * H, B + j * T * A * H, I, !0), D += x * H;
|
|
1820
1820
|
}
|
|
1821
1821
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
1822
1822
|
}
|
|
1823
|
-
}, extendPrototype([DynamicPropertyContainer],
|
|
1823
|
+
}, extendPrototype([DynamicPropertyContainer], c), c;
|
|
1824
1824
|
}(), u = function() {
|
|
1825
|
-
function
|
|
1825
|
+
function c(m, f) {
|
|
1826
1826
|
this.v = shapePool.newElement(), this.v.c = !0, this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = m, this.comp = m.comp, this.frameId = -1, this.d = f.d, this.initDynamicPropertyContainer(m), this.p = PropertyFactory.getProp(m, f.p, 1, 0, this), this.s = PropertyFactory.getProp(m, f.s, 1, 0, this), this.r = PropertyFactory.getProp(m, f.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath());
|
|
1827
1827
|
}
|
|
1828
|
-
return
|
|
1828
|
+
return c.prototype = {
|
|
1829
1829
|
convertRectToPath: function() {
|
|
1830
1830
|
var f = this.p.v[0], x = this.p.v[1], E = this.s.v[0] / 2, A = this.s.v[1] / 2, T = bmMin(E, A, this.r.v), I = T * (1 - roundCorner);
|
|
1831
1831
|
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(f + E, x - A + T, f + E, x - A + T, f + E, x - A + I, 0, !0), this.v.setTripleAt(f + E, x + A - T, f + E, x + A - I, f + E, x + A - T, 1, !0), T !== 0 ? (this.v.setTripleAt(f + E - T, x + A, f + E - T, x + A, f + E - I, x + A, 2, !0), this.v.setTripleAt(f - E + T, x + A, f - E + I, x + A, f - E + T, x + A, 3, !0), this.v.setTripleAt(f - E, x + A - T, f - E, x + A - T, f - E, x + A - I, 4, !0), this.v.setTripleAt(f - E, x - A + T, f - E, x - A + I, f - E, x - A + T, 5, !0), this.v.setTripleAt(f - E + T, x - A, f - E + T, x - A, f - E + I, x - A, 6, !0), this.v.setTripleAt(f + E - T, x - A, f + E - I, x - A, f + E - T, x - A, 7, !0)) : (this.v.setTripleAt(f - E, x + A, f - E + I, x + A, f - E, x + A, 2), this.v.setTripleAt(f - E, x - A, f - E, x - A + I, f - E, x - A, 3))) : (this.v.setTripleAt(f + E, x - A + T, f + E, x - A + I, f + E, x - A + T, 0, !0), T !== 0 ? (this.v.setTripleAt(f + E - T, x - A, f + E - T, x - A, f + E - I, x - A, 1, !0), this.v.setTripleAt(f - E + T, x - A, f - E + I, x - A, f - E + T, x - A, 2, !0), this.v.setTripleAt(f - E, x - A + T, f - E, x - A + T, f - E, x - A + I, 3, !0), this.v.setTripleAt(f - E, x + A - T, f - E, x + A - I, f - E, x + A - T, 4, !0), this.v.setTripleAt(f - E + T, x + A, f - E + T, x + A, f - E + I, x + A, 5, !0), this.v.setTripleAt(f + E - T, x + A, f + E - I, x + A, f + E - T, x + A, 6, !0), this.v.setTripleAt(f + E, x + A - T, f + E, x + A - T, f + E, x + A - I, 7, !0)) : (this.v.setTripleAt(f - E, x - A, f - E + I, x - A, f - E, x - A, 1, !0), this.v.setTripleAt(f - E, x + A, f - E, x + A - I, f - E, x + A, 2, !0), this.v.setTripleAt(f + E, x + A, f + E - I, x + A, f + E, x + A, 3, !0)));
|
|
@@ -1834,21 +1834,21 @@ function requireLottie() {
|
|
|
1834
1834
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
|
|
1835
1835
|
},
|
|
1836
1836
|
reset: i
|
|
1837
|
-
}, extendPrototype([DynamicPropertyContainer],
|
|
1837
|
+
}, extendPrototype([DynamicPropertyContainer], c), c;
|
|
1838
1838
|
}();
|
|
1839
|
-
function b(
|
|
1839
|
+
function b(c, m, f) {
|
|
1840
1840
|
var x;
|
|
1841
1841
|
if (f === 3 || f === 4) {
|
|
1842
1842
|
var E = f === 3 ? m.pt : m.ks, A = E.k;
|
|
1843
|
-
A.length ? x = new c
|
|
1844
|
-
} else f === 5 ? x = new u(
|
|
1845
|
-
return x.k &&
|
|
1843
|
+
A.length ? x = new p(c, m, f) : x = new l(c, m, f);
|
|
1844
|
+
} else f === 5 ? x = new u(c, m) : f === 6 ? x = new y(c, m) : f === 7 && (x = new P(c, m));
|
|
1845
|
+
return x.k && c.addDynamicProperty(x), x;
|
|
1846
1846
|
}
|
|
1847
1847
|
function g() {
|
|
1848
1848
|
return l;
|
|
1849
1849
|
}
|
|
1850
1850
|
function d() {
|
|
1851
|
-
return
|
|
1851
|
+
return p;
|
|
1852
1852
|
}
|
|
1853
1853
|
var C = {};
|
|
1854
1854
|
return C.getShapeProp = b, C.getConstructorFunction = g, C.getKeyframedConstructorFunction = d, C;
|
|
@@ -1890,7 +1890,7 @@ function requireLottie() {
|
|
|
1890
1890
|
var S = t(k), V = e(k);
|
|
1891
1891
|
return this._t(S, -V, 0, 0, V, S, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function p(k, S) {
|
|
1894
1894
|
return this._t(1, S, k, 1, 0, 0);
|
|
1895
1895
|
}
|
|
1896
1896
|
function y(k, S) {
|
|
@@ -1903,24 +1903,24 @@ function requireLottie() {
|
|
|
1903
1903
|
function u(k, S, V) {
|
|
1904
1904
|
return !V && V !== 0 && (V = 1), k === 1 && S === 1 && V === 1 ? this : this._t(k, 0, 0, 0, 0, S, 0, 0, 0, 0, V, 0, 0, 0, 0, 1);
|
|
1905
1905
|
}
|
|
1906
|
-
function b(k, S, V, M, R, O,
|
|
1907
|
-
return this.props[0] = k, this.props[1] = S, this.props[2] = V, this.props[3] = M, this.props[4] = R, this.props[5] = O, this.props[6] =
|
|
1906
|
+
function b(k, S, V, M, R, O, N, W, q, X, K, rt, J, Z, Q, Y) {
|
|
1907
|
+
return this.props[0] = k, this.props[1] = S, this.props[2] = V, this.props[3] = M, this.props[4] = R, this.props[5] = O, this.props[6] = N, this.props[7] = W, this.props[8] = q, this.props[9] = X, this.props[10] = K, this.props[11] = rt, this.props[12] = J, this.props[13] = Z, this.props[14] = Q, this.props[15] = Y, this;
|
|
1908
1908
|
}
|
|
1909
1909
|
function g(k, S, V) {
|
|
1910
1910
|
return V = V || 0, k !== 0 || S !== 0 || V !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, k, S, V, 1) : this;
|
|
1911
1911
|
}
|
|
1912
|
-
function d(k, S, V, M, R, O,
|
|
1912
|
+
function d(k, S, V, M, R, O, N, W, q, X, K, rt, J, Z, Q, Y) {
|
|
1913
1913
|
var $ = this.props;
|
|
1914
|
-
if (k === 1 && S === 0 && V === 0 && M === 0 && R === 0 && O === 1 &&
|
|
1914
|
+
if (k === 1 && S === 0 && V === 0 && M === 0 && R === 0 && O === 1 && N === 0 && W === 0 && q === 0 && X === 0 && K === 1 && rt === 0)
|
|
1915
1915
|
return $[12] = $[12] * k + $[15] * J, $[13] = $[13] * O + $[15] * Z, $[14] = $[14] * K + $[15] * Q, $[15] *= Y, this._identityCalculated = !1, this;
|
|
1916
1916
|
var st = $[0], ht = $[1], at = $[2], it = $[3], nt = $[4], ot = $[5], U = $[6], lt = $[7], ft = $[8], tt = $[9], pt = $[10], et = $[11], ct = $[12], ut = $[13], mt = $[14], dt = $[15];
|
|
1917
|
-
return $[0] = st * k + ht * R + at * q + it * J, $[1] = st * S + ht * O + at * X + it * Z, $[2] = st * V + ht *
|
|
1917
|
+
return $[0] = st * k + ht * R + at * q + it * J, $[1] = st * S + ht * O + at * X + it * Z, $[2] = st * V + ht * N + at * K + it * Q, $[3] = st * M + ht * W + at * rt + it * Y, $[4] = nt * k + ot * R + U * q + lt * J, $[5] = nt * S + ot * O + U * X + lt * Z, $[6] = nt * V + ot * N + U * K + lt * Q, $[7] = nt * M + ot * W + U * rt + lt * Y, $[8] = ft * k + tt * R + pt * q + et * J, $[9] = ft * S + tt * O + pt * X + et * Z, $[10] = ft * V + tt * N + pt * K + et * Q, $[11] = ft * M + tt * W + pt * rt + et * Y, $[12] = ct * k + ut * R + mt * q + dt * J, $[13] = ct * S + ut * O + mt * X + dt * Z, $[14] = ct * V + ut * N + mt * K + dt * Q, $[15] = ct * M + ut * W + mt * rt + dt * Y, this._identityCalculated = !1, this;
|
|
1918
1918
|
}
|
|
1919
1919
|
function C(k) {
|
|
1920
1920
|
var S = k.props;
|
|
1921
1921
|
return this.transform(S[0], S[1], S[2], S[3], S[4], S[5], S[6], S[7], S[8], S[9], S[10], S[11], S[12], S[13], S[14], S[15]);
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function c() {
|
|
1924
1924
|
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;
|
|
1925
1925
|
}
|
|
1926
1926
|
function m(k) {
|
|
@@ -1959,8 +1959,8 @@ function requireLottie() {
|
|
|
1959
1959
|
return k * this.props[2] + S * this.props[6] + V * this.props[10] + this.props[14];
|
|
1960
1960
|
}
|
|
1961
1961
|
function D() {
|
|
1962
|
-
var k = this.props[0] * this.props[5] - this.props[1] * this.props[4], S = this.props[5] / k, V = -this.props[1] / k, M = -this.props[4] / k, R = this.props[0] / k, O = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / k,
|
|
1963
|
-
return W.props[0] = S, W.props[1] = V, W.props[4] = M, W.props[5] = R, W.props[12] = O, W.props[13] =
|
|
1962
|
+
var k = this.props[0] * this.props[5] - this.props[1] * this.props[4], S = this.props[5] / k, V = -this.props[1] / k, M = -this.props[4] / k, R = this.props[0] / k, O = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / k, N = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / k, W = new Matrix();
|
|
1963
|
+
return W.props[0] = S, W.props[1] = V, W.props[4] = M, W.props[5] = R, W.props[12] = O, W.props[13] = N, W;
|
|
1964
1964
|
}
|
|
1965
1965
|
function H(k) {
|
|
1966
1966
|
var S = this.getInverseMatrix();
|
|
@@ -1977,12 +1977,12 @@ function requireLottie() {
|
|
|
1977
1977
|
if (this.isIdentity())
|
|
1978
1978
|
M[0] = k[0], M[1] = k[1], M[2] = S[0], M[3] = S[1], M[4] = V[0], M[5] = V[1];
|
|
1979
1979
|
else {
|
|
1980
|
-
var R = this.props[0], O = this.props[1],
|
|
1981
|
-
M[0] = k[0] * R + k[1] *
|
|
1980
|
+
var R = this.props[0], O = this.props[1], N = this.props[4], W = this.props[5], q = this.props[12], X = this.props[13];
|
|
1981
|
+
M[0] = k[0] * R + k[1] * N + q, M[1] = k[0] * O + k[1] * W + X, M[2] = S[0] * R + S[1] * N + q, M[3] = S[0] * O + S[1] * W + X, M[4] = V[0] * R + V[1] * N + q, M[5] = V[0] * O + V[1] * W + X;
|
|
1982
1982
|
}
|
|
1983
1983
|
return M;
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1985
|
+
function z(k, S, V) {
|
|
1986
1986
|
var M;
|
|
1987
1987
|
return this.isIdentity() ? M = [k, S, V] : M = [k * this.props[0] + S * this.props[4] + V * this.props[8] + this.props[12], k * this.props[1] + S * this.props[5] + V * this.props[9] + this.props[13], k * this.props[2] + S * this.props[6] + V * this.props[10] + this.props[14]], M;
|
|
1988
1988
|
}
|
|
@@ -2002,11 +2002,11 @@ function requireLottie() {
|
|
|
2002
2002
|
return k < 1e-6 && k > 0 || k > -1e-6 && k < 0 ? i(k * S) / S : k;
|
|
2003
2003
|
}
|
|
2004
2004
|
function F() {
|
|
2005
|
-
var k = this.props, S = _(k[0]), V = _(k[1]), M = _(k[4]), R = _(k[5]), O = _(k[12]),
|
|
2006
|
-
return "matrix(" + S + "," + V + "," + M + "," + R + "," + O + "," +
|
|
2005
|
+
var k = this.props, S = _(k[0]), V = _(k[1]), M = _(k[4]), R = _(k[5]), O = _(k[12]), N = _(k[13]);
|
|
2006
|
+
return "matrix(" + S + "," + V + "," + M + "," + R + "," + O + "," + N + ")";
|
|
2007
2007
|
}
|
|
2008
2008
|
return function() {
|
|
2009
|
-
this.reset = s, this.rotate = a, this.rotateX = n, this.rotateY = l, this.rotateZ = o, this.skew = y, this.skewFromAxis = P, this.shear =
|
|
2009
|
+
this.reset = s, this.rotate = a, this.rotateX = n, this.rotateY = l, this.rotateZ = o, this.skew = y, this.skewFromAxis = P, this.shear = p, this.scale = u, this.setTransform = b, this.translate = g, this.transform = d, this.multiply = C, this.applyToPoint = E, this.applyToX = A, this.applyToY = T, this.applyToZ = I, this.applyToPointArray = z, this.applyToTriplePoints = B, this.applyToPointStringified = j, this.toCSS = L, this.to2dCSS = F, this.clone = f, this.cloneFromProps = x, this.equals = m, this.inversePoints = G, this.inversePoint = H, this.getInverseMatrix = D, this._t = this.transform, this.isIdentity = c, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
2010
2010
|
};
|
|
2011
2011
|
}();
|
|
2012
2012
|
function _typeof$3(t) {
|
|
@@ -2142,11 +2142,11 @@ function requireLottie() {
|
|
|
2142
2142
|
s: 0,
|
|
2143
2143
|
e: e - 1
|
|
2144
2144
|
}));
|
|
2145
|
-
var n = [], l, o = a.length,
|
|
2145
|
+
var n = [], l, o = a.length, p;
|
|
2146
2146
|
for (l = 0; l < o; l += 1)
|
|
2147
|
-
if (
|
|
2147
|
+
if (p = a[l], !(p.e * s < i || p.s * s > i + r)) {
|
|
2148
2148
|
var y, P;
|
|
2149
|
-
|
|
2149
|
+
p.s * s <= i ? y = 0 : y = (p.s * s - i) / r, p.e * s >= i + r ? P = 1 : P = (p.e * s - i) / r, n.push([y, P]);
|
|
2150
2150
|
}
|
|
2151
2151
|
return n.length || n.push([0, 0]), n;
|
|
2152
2152
|
}, TrimModifier.prototype.releasePathsData = function(t) {
|
|
@@ -2165,7 +2165,7 @@ function requireLottie() {
|
|
|
2165
2165
|
e = Math.round(e * 1e4) * 1e-4, r = Math.round(r * 1e4) * 1e-4, this.sValue = e, this.eValue = r;
|
|
2166
2166
|
} else
|
|
2167
2167
|
e = this.sValue, r = this.eValue;
|
|
2168
|
-
var a, n, l = this.shapes.length, o,
|
|
2168
|
+
var a, n, l = this.shapes.length, o, p, y, P, u, b = 0;
|
|
2169
2169
|
if (r === e)
|
|
2170
2170
|
for (n = 0; n < l; n += 1)
|
|
2171
2171
|
this.shapes[n].localShapeCollection.releaseShapes(), this.shapes[n].shape._mdf = !0, this.shapes[n].shape.paths = this.shapes[n].localShapeCollection, this._mdf && (this.shapes[n].pathsData.length = 0);
|
|
@@ -2179,27 +2179,27 @@ function requireLottie() {
|
|
|
2179
2179
|
if (d = this.shapes[n], !d.shape._mdf && !this._mdf && !t && this.m !== 2)
|
|
2180
2180
|
d.shape.paths = d.localShapeCollection;
|
|
2181
2181
|
else {
|
|
2182
|
-
if (a = d.shape.paths,
|
|
2182
|
+
if (a = d.shape.paths, p = a._length, u = 0, !d.shape._mdf && d.pathsData.length)
|
|
2183
2183
|
u = d.totalShapeLength;
|
|
2184
2184
|
else {
|
|
2185
|
-
for (y = this.releasePathsData(d.pathsData), o = 0; o <
|
|
2185
|
+
for (y = this.releasePathsData(d.pathsData), o = 0; o < p; o += 1)
|
|
2186
2186
|
P = bez.getSegmentsLength(a.shapes[o]), y.push(P), u += P.totalLength;
|
|
2187
2187
|
d.totalShapeLength = u, d.pathsData = y;
|
|
2188
2188
|
}
|
|
2189
2189
|
b += u, d.shape._mdf = !0;
|
|
2190
2190
|
}
|
|
2191
|
-
var
|
|
2191
|
+
var c = e, m = r, f = 0, x;
|
|
2192
2192
|
for (n = l - 1; n >= 0; n -= 1)
|
|
2193
2193
|
if (d = this.shapes[n], d.shape._mdf) {
|
|
2194
|
-
for (C = d.localShapeCollection, C.releaseShapes(), this.m === 2 && l > 1 ? (x = this.calculateShapeEdges(e, r, d.totalShapeLength, f, b), f += d.totalShapeLength) : x = [[
|
|
2195
|
-
|
|
2196
|
-
s: d.totalShapeLength *
|
|
2194
|
+
for (C = d.localShapeCollection, C.releaseShapes(), this.m === 2 && l > 1 ? (x = this.calculateShapeEdges(e, r, d.totalShapeLength, f, b), f += d.totalShapeLength) : x = [[c, m]], p = x.length, o = 0; o < p; o += 1) {
|
|
2195
|
+
c = x[o][0], m = x[o][1], g.length = 0, m <= 1 ? g.push({
|
|
2196
|
+
s: d.totalShapeLength * c,
|
|
2197
2197
|
e: d.totalShapeLength * m
|
|
2198
|
-
}) :
|
|
2199
|
-
s: d.totalShapeLength * (
|
|
2198
|
+
}) : c >= 1 ? g.push({
|
|
2199
|
+
s: d.totalShapeLength * (c - 1),
|
|
2200
2200
|
e: d.totalShapeLength * (m - 1)
|
|
2201
2201
|
}) : (g.push({
|
|
2202
|
-
s: d.totalShapeLength *
|
|
2202
|
+
s: d.totalShapeLength * c,
|
|
2203
2203
|
e: d.totalShapeLength
|
|
2204
2204
|
}), g.push({
|
|
2205
2205
|
s: 0,
|
|
@@ -2230,25 +2230,25 @@ function requireLottie() {
|
|
|
2230
2230
|
}, TrimModifier.prototype.addSegmentFromArray = function(t, e, r, i) {
|
|
2231
2231
|
e.setXYAt(t[1], t[5], "o", r), e.setXYAt(t[2], t[6], "i", r + 1), i && e.setXYAt(t[0], t[4], "v", r), e.setXYAt(t[3], t[7], "v", r + 1);
|
|
2232
2232
|
}, TrimModifier.prototype.addShapes = function(t, e, r) {
|
|
2233
|
-
var i = t.pathsData, s = t.shape.paths.shapes, a, n = t.shape.paths._length, l, o,
|
|
2233
|
+
var i = t.pathsData, s = t.shape.paths.shapes, a, n = t.shape.paths._length, l, o, p = 0, y, P, u, b, g = [], d, C = !0;
|
|
2234
2234
|
for (r ? (P = r._length, d = r._length) : (r = shapePool.newElement(), P = 0, d = 0), g.push(r), a = 0; a < n; a += 1) {
|
|
2235
2235
|
for (u = i[a].lengths, r.c = s[a].c, o = s[a].c ? u.length : u.length + 1, l = 1; l < o; l += 1)
|
|
2236
|
-
if (y = u[l - 1],
|
|
2237
|
-
|
|
2238
|
-
else if (
|
|
2236
|
+
if (y = u[l - 1], p + y.addedLength < e.s)
|
|
2237
|
+
p += y.addedLength, r.c = !1;
|
|
2238
|
+
else if (p > e.e) {
|
|
2239
2239
|
r.c = !1;
|
|
2240
2240
|
break;
|
|
2241
2241
|
} else
|
|
2242
|
-
e.s <=
|
|
2242
|
+
e.s <= p && e.e >= p + y.addedLength ? (this.addSegment(s[a].v[l - 1], s[a].o[l - 1], s[a].i[l], s[a].v[l], r, P, C), C = !1) : (b = bez.getNewSegment(s[a].v[l - 1], s[a].v[l], s[a].o[l - 1], s[a].i[l], (e.s - p) / y.addedLength, (e.e - p) / y.addedLength, u[l - 1]), this.addSegmentFromArray(b, r, P, C), C = !1, r.c = !1), p += y.addedLength, P += 1;
|
|
2243
2243
|
if (s[a].c && u.length) {
|
|
2244
|
-
if (y = u[l - 1],
|
|
2245
|
-
var
|
|
2246
|
-
e.s <=
|
|
2244
|
+
if (y = u[l - 1], p <= e.e) {
|
|
2245
|
+
var c = u[l - 1].addedLength;
|
|
2246
|
+
e.s <= p && e.e >= p + c ? (this.addSegment(s[a].v[l - 1], s[a].o[l - 1], s[a].i[0], s[a].v[0], r, P, C), C = !1) : (b = bez.getNewSegment(s[a].v[l - 1], s[a].v[0], s[a].o[l - 1], s[a].i[0], (e.s - p) / c, (e.e - p) / c, u[l - 1]), this.addSegmentFromArray(b, r, P, C), C = !1, r.c = !1);
|
|
2247
2247
|
} else
|
|
2248
2248
|
r.c = !1;
|
|
2249
|
-
|
|
2249
|
+
p += y.addedLength, P += 1;
|
|
2250
2250
|
}
|
|
2251
|
-
if (r._length && (r.setXYAt(r.v[d][0], r.v[d][1], "i", d), r.setXYAt(r.v[r._length - 1][0], r.v[r._length - 1][1], "o", r._length - 1)),
|
|
2251
|
+
if (r._length && (r.setXYAt(r.v[d][0], r.v[d][1], "i", d), r.setXYAt(r.v[r._length - 1][0], r.v[r._length - 1][1], "o", r._length - 1)), p > e.e)
|
|
2252
2252
|
break;
|
|
2253
2253
|
a < n - 1 && (r = shapePool.newElement(), C = !0, g.push(r), P = 0);
|
|
2254
2254
|
}
|
|
@@ -2265,9 +2265,9 @@ function requireLottie() {
|
|
|
2265
2265
|
i[0] /= s, i[1] /= s;
|
|
2266
2266
|
var n = shapePool.newElement();
|
|
2267
2267
|
n.c = t.c;
|
|
2268
|
-
var l, o,
|
|
2268
|
+
var l, o, p, y, P, u;
|
|
2269
2269
|
for (a = 0; a < s; a += 1)
|
|
2270
|
-
l = t.v[a][0] + (i[0] - t.v[a][0]) * r, o = t.v[a][1] + (i[1] - t.v[a][1]) * r,
|
|
2270
|
+
l = t.v[a][0] + (i[0] - t.v[a][0]) * r, o = t.v[a][1] + (i[1] - t.v[a][1]) * r, p = t.o[a][0] + (i[0] - t.o[a][0]) * -r, y = t.o[a][1] + (i[1] - t.o[a][1]) * -r, P = t.i[a][0] + (i[0] - t.i[a][0]) * -r, u = t.i[a][1] + (i[1] - t.i[a][1]) * -r, n.setTripleAt(l, o, p, y, P, u, a);
|
|
2271
2271
|
return n;
|
|
2272
2272
|
}, PuckerAndBloatModifier.prototype.processShapes = function(t) {
|
|
2273
2273
|
var e, r, i = this.shapes.length, s, a, n = this.amount.v;
|
|
@@ -2285,21 +2285,21 @@ function requireLottie() {
|
|
|
2285
2285
|
var TransformPropertyFactory = function() {
|
|
2286
2286
|
var t = [0, 0];
|
|
2287
2287
|
function e(o) {
|
|
2288
|
-
var
|
|
2289
|
-
this.iterateDynamicProperties(), this._mdf = this._mdf ||
|
|
2288
|
+
var p = this._mdf;
|
|
2289
|
+
this.iterateDynamicProperties(), this._mdf = this._mdf || p, this.a && o.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.s && o.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && o.skewFromAxis(-this.sk.v, this.sa.v), this.r ? o.rotate(-this.r.v) : o.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.data.p.s ? this.data.p.z ? o.translate(this.px.v, this.py.v, -this.pz.v) : o.translate(this.px.v, this.py.v, 0) : o.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
|
|
2290
2290
|
}
|
|
2291
2291
|
function r(o) {
|
|
2292
2292
|
if (this.elem.globalData.frameId !== this.frameId) {
|
|
2293
2293
|
if (this._isDirty && (this.precalculateMatrix(), this._isDirty = !1), this.iterateDynamicProperties(), this._mdf || o) {
|
|
2294
|
-
var
|
|
2294
|
+
var p;
|
|
2295
2295
|
if (this.v.cloneFromProps(this.pre.props), this.appliedTransformations < 1 && this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations < 2 && this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && this.appliedTransformations < 3 && this.v.skewFromAxis(-this.sk.v, this.sa.v), this.r && this.appliedTransformations < 4 ? this.v.rotate(-this.r.v) : !this.r && this.appliedTransformations < 4 && this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.autoOriented) {
|
|
2296
2296
|
var y, P;
|
|
2297
|
-
if (
|
|
2298
|
-
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (y = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) /
|
|
2297
|
+
if (p = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime)
|
|
2298
|
+
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (y = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / p, 0), P = this.p.getValueAtTime(this.p.keyframes[0].t / p, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (y = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / p, 0), P = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / p, 0)) : (y = this.p.pv, P = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / p, this.p.offsetTime));
|
|
2299
2299
|
else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
|
|
2300
2300
|
y = [], P = [];
|
|
2301
2301
|
var u = this.px, b = this.py;
|
|
2302
|
-
u._caching.lastFrame + u.offsetTime <= u.keyframes[0].t ? (y[0] = u.getValueAtTime((u.keyframes[0].t + 0.01) /
|
|
2302
|
+
u._caching.lastFrame + u.offsetTime <= u.keyframes[0].t ? (y[0] = u.getValueAtTime((u.keyframes[0].t + 0.01) / p, 0), y[1] = b.getValueAtTime((b.keyframes[0].t + 0.01) / p, 0), P[0] = u.getValueAtTime(u.keyframes[0].t / p, 0), P[1] = b.getValueAtTime(b.keyframes[0].t / p, 0)) : u._caching.lastFrame + u.offsetTime >= u.keyframes[u.keyframes.length - 1].t ? (y[0] = u.getValueAtTime(u.keyframes[u.keyframes.length - 1].t / p, 0), y[1] = b.getValueAtTime(b.keyframes[b.keyframes.length - 1].t / p, 0), P[0] = u.getValueAtTime((u.keyframes[u.keyframes.length - 1].t - 0.01) / p, 0), P[1] = b.getValueAtTime((b.keyframes[b.keyframes.length - 1].t - 0.01) / p, 0)) : (y = [u.pv, b.pv], P[0] = u.getValueAtTime((u._caching.lastFrame + u.offsetTime - 0.01) / p, u.offsetTime), P[1] = b.getValueAtTime((b._caching.lastFrame + b.offsetTime - 0.01) / p, b.offsetTime));
|
|
2303
2303
|
} else
|
|
2304
2304
|
P = t, y = P;
|
|
2305
2305
|
this.v.rotate(-Math.atan2(y[1] - P[1], y[0] - P[0]));
|
|
@@ -2330,25 +2330,25 @@ function requireLottie() {
|
|
|
2330
2330
|
function a(o) {
|
|
2331
2331
|
this._addDynamicProperty(o), this.elem.addDynamicProperty(o), this._isDirty = !0;
|
|
2332
2332
|
}
|
|
2333
|
-
function n(o,
|
|
2334
|
-
if (this.elem = o, this.frameId = -1, this.propType = "transform", this.data =
|
|
2333
|
+
function n(o, p, y) {
|
|
2334
|
+
if (this.elem = o, this.frameId = -1, this.propType = "transform", this.data = p, this.v = new Matrix(), this.pre = new Matrix(), this.appliedTransformations = 0, this.initDynamicPropertyContainer(y || o), p.p && p.p.s ? (this.px = PropertyFactory.getProp(o, p.p.x, 0, 0, this), this.py = PropertyFactory.getProp(o, p.p.y, 0, 0, this), p.p.z && (this.pz = PropertyFactory.getProp(o, p.p.z, 0, 0, this))) : this.p = PropertyFactory.getProp(o, p.p || {
|
|
2335
2335
|
k: [0, 0, 0]
|
|
2336
|
-
}, 1, 0, this),
|
|
2337
|
-
if (this.rx = PropertyFactory.getProp(o,
|
|
2338
|
-
var P, u =
|
|
2336
|
+
}, 1, 0, this), p.rx) {
|
|
2337
|
+
if (this.rx = PropertyFactory.getProp(o, p.rx, 0, degToRads, this), this.ry = PropertyFactory.getProp(o, p.ry, 0, degToRads, this), this.rz = PropertyFactory.getProp(o, p.rz, 0, degToRads, this), p.or.k[0].ti) {
|
|
2338
|
+
var P, u = p.or.k.length;
|
|
2339
2339
|
for (P = 0; P < u; P += 1)
|
|
2340
|
-
|
|
2340
|
+
p.or.k[P].to = null, p.or.k[P].ti = null;
|
|
2341
2341
|
}
|
|
2342
|
-
this.or = PropertyFactory.getProp(o,
|
|
2342
|
+
this.or = PropertyFactory.getProp(o, p.or, 1, degToRads, this), this.or.sh = !0;
|
|
2343
2343
|
} else
|
|
2344
|
-
this.r = PropertyFactory.getProp(o,
|
|
2344
|
+
this.r = PropertyFactory.getProp(o, p.r || {
|
|
2345
2345
|
k: 0
|
|
2346
2346
|
}, 0, degToRads, this);
|
|
2347
|
-
|
|
2347
|
+
p.sk && (this.sk = PropertyFactory.getProp(o, p.sk, 0, degToRads, this), this.sa = PropertyFactory.getProp(o, p.sa, 0, degToRads, this)), this.a = PropertyFactory.getProp(o, p.a || {
|
|
2348
2348
|
k: [0, 0, 0]
|
|
2349
|
-
}, 1, 0, this), this.s = PropertyFactory.getProp(o,
|
|
2349
|
+
}, 1, 0, this), this.s = PropertyFactory.getProp(o, p.s || {
|
|
2350
2350
|
k: [100, 100, 100]
|
|
2351
|
-
}, 1, 0.01, this),
|
|
2351
|
+
}, 1, 0.01, this), p.o ? this.o = PropertyFactory.getProp(o, p.o, 0, 0.01, o) : this.o = {
|
|
2352
2352
|
_mdf: !1,
|
|
2353
2353
|
v: 1
|
|
2354
2354
|
}, this._isDirty = !0, this.dynamicProperties.length || this.getValue(!0);
|
|
@@ -2359,8 +2359,8 @@ function requireLottie() {
|
|
|
2359
2359
|
precalculateMatrix: i,
|
|
2360
2360
|
autoOrient: s
|
|
2361
2361
|
}, extendPrototype([DynamicPropertyContainer], n), n.prototype.addDynamicProperty = a, n.prototype._addDynamicProperty = DynamicPropertyContainer.prototype.addDynamicProperty;
|
|
2362
|
-
function l(o,
|
|
2363
|
-
return new n(o,
|
|
2362
|
+
function l(o, p, y) {
|
|
2363
|
+
return new n(o, p, y);
|
|
2364
2364
|
}
|
|
2365
2365
|
return {
|
|
2366
2366
|
getTransformProperty: l
|
|
@@ -2449,16 +2449,16 @@ function requireLottie() {
|
|
|
2449
2449
|
this.elem.reloadShapes(), n = !0;
|
|
2450
2450
|
}
|
|
2451
2451
|
a = 0;
|
|
2452
|
-
var
|
|
2452
|
+
var p;
|
|
2453
2453
|
for (i = 0; i <= this._groups.length - 1; i += 1) {
|
|
2454
|
-
if (
|
|
2454
|
+
if (p = a < l, this._groups[i]._render = p, this.changeGroupRender(this._groups[i].it, p), !p) {
|
|
2455
2455
|
var y = this.elemsData[i].it, P = y[y.length - 1];
|
|
2456
2456
|
P.transform.op.v !== 0 ? (P.transform.op._mdf = !0, P.transform.op.v = 0) : P.transform.op._mdf = !1;
|
|
2457
2457
|
}
|
|
2458
2458
|
a += 1;
|
|
2459
2459
|
}
|
|
2460
2460
|
this._currentCopies = l;
|
|
2461
|
-
var u = this.o.v, b = u % 1, g = u > 0 ? Math.floor(u) : Math.ceil(u), d = this.pMatrix.props, C = this.rMatrix.props,
|
|
2461
|
+
var u = this.o.v, b = u % 1, g = u > 0 ? Math.floor(u) : Math.ceil(u), d = this.pMatrix.props, C = this.rMatrix.props, c = this.sMatrix.props;
|
|
2462
2462
|
this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
|
|
2463
2463
|
var m = 0;
|
|
2464
2464
|
if (u > 0) {
|
|
@@ -2473,7 +2473,7 @@ function requireLottie() {
|
|
|
2473
2473
|
i = this.data.m === 1 ? 0 : this._currentCopies - 1, s = this.data.m === 1 ? 1 : -1, a = this._currentCopies;
|
|
2474
2474
|
for (var f, x; a; ) {
|
|
2475
2475
|
if (e = this.elemsData[i].it, r = e[e.length - 1].transform.mProps.v.props, x = r.length, e[e.length - 1].transform.mProps._mdf = !0, e[e.length - 1].transform.op._mdf = !0, e[e.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (i / (this._currentCopies - 1)), m !== 0) {
|
|
2476
|
-
for ((i !== 0 && s === 1 || i !== this._currentCopies - 1 && s === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(C[0], C[1], C[2], C[3], C[4], C[5], C[6], C[7], C[8], C[9], C[10], C[11], C[12], C[13], C[14], C[15]), this.matrix.transform(
|
|
2476
|
+
for ((i !== 0 && s === 1 || i !== this._currentCopies - 1 && s === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(C[0], C[1], C[2], C[3], C[4], C[5], C[6], C[7], C[8], C[9], C[10], C[11], C[12], C[13], C[14], C[15]), this.matrix.transform(c[0], c[1], c[2], c[3], c[4], c[5], c[6], c[7], c[8], c[9], c[10], c[11], c[12], c[13], c[14], c[15]), this.matrix.transform(d[0], d[1], d[2], d[3], d[4], d[5], d[6], d[7], d[8], d[9], d[10], d[11], d[12], d[13], d[14], d[15]), f = 0; f < x; f += 1)
|
|
2477
2477
|
r[f] = this.matrix.props[f];
|
|
2478
2478
|
this.matrix.reset();
|
|
2479
2479
|
} else
|
|
@@ -2494,9 +2494,9 @@ function requireLottie() {
|
|
|
2494
2494
|
}, RoundCornersModifier.prototype.processPath = function(t, e) {
|
|
2495
2495
|
var r = shapePool.newElement();
|
|
2496
2496
|
r.c = t.c;
|
|
2497
|
-
var i, s = t._length, a, n, l, o,
|
|
2497
|
+
var i, s = t._length, a, n, l, o, p, y, P = 0, u, b, g, d, C, c;
|
|
2498
2498
|
for (i = 0; i < s; i += 1)
|
|
2499
|
-
a = t.v[i], l = t.o[i], n = t.i[i], a[0] === l[0] && a[1] === l[1] && a[0] === n[0] && a[1] === n[1] ? (i === 0 || i === s - 1) && !t.c ? (r.setTripleAt(a[0], a[1], l[0], l[1], n[0], n[1], P), P += 1) : (i === 0 ? o = t.v[s - 1] : o = t.v[i - 1],
|
|
2499
|
+
a = t.v[i], l = t.o[i], n = t.i[i], a[0] === l[0] && a[1] === l[1] && a[0] === n[0] && a[1] === n[1] ? (i === 0 || i === s - 1) && !t.c ? (r.setTripleAt(a[0], a[1], l[0], l[1], n[0], n[1], P), P += 1) : (i === 0 ? o = t.v[s - 1] : o = t.v[i - 1], p = Math.sqrt(Math.pow(a[0] - o[0], 2) + Math.pow(a[1] - o[1], 2)), y = p ? Math.min(p / 2, e) / p : 0, C = a[0] + (o[0] - a[0]) * y, u = C, c = a[1] - (a[1] - o[1]) * y, b = c, g = u - (u - a[0]) * roundCorner, d = b - (b - a[1]) * roundCorner, r.setTripleAt(u, b, g, d, C, c, P), P += 1, i === s - 1 ? o = t.v[0] : o = t.v[i + 1], p = Math.sqrt(Math.pow(a[0] - o[0], 2) + Math.pow(a[1] - o[1], 2)), y = p ? Math.min(p / 2, e) / p : 0, g = a[0] + (o[0] - a[0]) * y, u = g, d = a[1] + (o[1] - a[1]) * y, b = d, C = u - (u - a[0]) * roundCorner, c = b - (b - a[1]) * roundCorner, r.setTripleAt(u, b, g, d, C, c, P), P += 1) : (r.setTripleAt(t.v[i][0], t.v[i][1], t.o[i][0], t.o[i][1], t.i[i][0], t.i[i][1], P), P += 1);
|
|
2500
2500
|
return r;
|
|
2501
2501
|
}, RoundCornersModifier.prototype.processShapes = function(t) {
|
|
2502
2502
|
var e, r, i = this.shapes.length, s, a, n = this.rd.v;
|
|
@@ -2665,8 +2665,8 @@ function requireLottie() {
|
|
|
2665
2665
|
this.getValue = this.processKeys, this.amplitude = PropertyFactory.getProp(t, e.s, 0, null, this), this.frequency = PropertyFactory.getProp(t, e.r, 0, null, this), this.pointsType = PropertyFactory.getProp(t, e.pt, 0, null, this), this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
|
|
2666
2666
|
};
|
|
2667
2667
|
function setPoint(t, e, r, i, s, a, n) {
|
|
2668
|
-
var l = r - Math.PI / 2, o = r + Math.PI / 2,
|
|
2669
|
-
t.setTripleAt(
|
|
2668
|
+
var l = r - Math.PI / 2, o = r + Math.PI / 2, p = e[0] + Math.cos(r) * i * s, y = e[1] - Math.sin(r) * i * s;
|
|
2669
|
+
t.setTripleAt(p, y, p + Math.cos(l) * a, y - Math.sin(l) * a, p + Math.cos(o) * n, y - Math.sin(o) * n, t.length());
|
|
2670
2670
|
}
|
|
2671
2671
|
function getPerpendicularVector(t, e) {
|
|
2672
2672
|
var r = [e[0] - t[0], e[1] - t[1]], i = -Math.PI * 0.5, s = [Math.cos(i) * r[0] - Math.sin(i) * r[1], Math.sin(i) * r[0] + Math.cos(i) * r[1]];
|
|
@@ -2677,13 +2677,13 @@ function requireLottie() {
|
|
|
2677
2677
|
return Math.atan2(0, 1) - Math.atan2(n[1], n[0]);
|
|
2678
2678
|
}
|
|
2679
2679
|
function zigZagCorner(t, e, r, i, s, a, n) {
|
|
2680
|
-
var l = getProjectingAngle(e, r), o = e.v[r % e._length],
|
|
2680
|
+
var l = getProjectingAngle(e, r), o = e.v[r % e._length], p = e.v[r === 0 ? e._length - 1 : r - 1], y = e.v[(r + 1) % e._length], P = a === 2 ? Math.sqrt(Math.pow(o[0] - p[0], 2) + Math.pow(o[1] - p[1], 2)) : 0, u = a === 2 ? Math.sqrt(Math.pow(o[0] - y[0], 2) + Math.pow(o[1] - y[1], 2)) : 0;
|
|
2681
2681
|
setPoint(t, e.v[r % e._length], l, n, i, u / ((s + 1) * 2), P / ((s + 1) * 2));
|
|
2682
2682
|
}
|
|
2683
2683
|
function zigZagSegment(t, e, r, i, s, a) {
|
|
2684
2684
|
for (var n = 0; n < i; n += 1) {
|
|
2685
|
-
var l = (n + 1) / (i + 1), o = s === 2 ? Math.sqrt(Math.pow(e.points[3][0] - e.points[0][0], 2) + Math.pow(e.points[3][1] - e.points[0][1], 2)) : 0,
|
|
2686
|
-
setPoint(t, y,
|
|
2685
|
+
var l = (n + 1) / (i + 1), o = s === 2 ? Math.sqrt(Math.pow(e.points[3][0] - e.points[0][0], 2) + Math.pow(e.points[3][1] - e.points[0][1], 2)) : 0, p = e.normalAngle(l), y = e.point(l);
|
|
2686
|
+
setPoint(t, y, p, a, r, o / ((i + 1) * 2), o / ((i + 1) * 2)), a = -a;
|
|
2687
2687
|
}
|
|
2688
2688
|
return a;
|
|
2689
2689
|
}
|
|
@@ -2698,12 +2698,12 @@ function requireLottie() {
|
|
|
2698
2698
|
}, ZigZagModifier.prototype.processShapes = function(t) {
|
|
2699
2699
|
var e, r, i = this.shapes.length, s, a, n = this.amplitude.v, l = Math.max(0, Math.round(this.frequency.v)), o = this.pointsType.v;
|
|
2700
2700
|
if (n !== 0) {
|
|
2701
|
-
var
|
|
2701
|
+
var p, y;
|
|
2702
2702
|
for (r = 0; r < i; r += 1) {
|
|
2703
|
-
if (
|
|
2704
|
-
for (y.releaseShapes(),
|
|
2703
|
+
if (p = this.shapes[r], y = p.localShapeCollection, !(!p.shape._mdf && !this._mdf && !t))
|
|
2704
|
+
for (y.releaseShapes(), p.shape._mdf = !0, e = p.shape.paths.shapes, a = p.shape.paths._length, s = 0; s < a; s += 1)
|
|
2705
2705
|
y.addShape(this.processPath(e[s], n, l, o));
|
|
2706
|
-
|
|
2706
|
+
p.shape.paths = p.localShapeCollection;
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
2709
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
@@ -2715,16 +2715,16 @@ function requireLottie() {
|
|
|
2715
2715
|
function offsetSegment(t, e) {
|
|
2716
2716
|
var r, i, s, a, n, l, o;
|
|
2717
2717
|
o = linearOffset(t.points[0], t.points[1], e), r = o[0], i = o[1], o = linearOffset(t.points[1], t.points[2], e), s = o[0], a = o[1], o = linearOffset(t.points[2], t.points[3], e), n = o[0], l = o[1];
|
|
2718
|
-
var
|
|
2719
|
-
|
|
2718
|
+
var p = lineIntersection(r, i, s, a);
|
|
2719
|
+
p === null && (p = i);
|
|
2720
2720
|
var y = lineIntersection(n, l, s, a);
|
|
2721
|
-
return y === null && (y = n), new PolynomialBezier(r,
|
|
2721
|
+
return y === null && (y = n), new PolynomialBezier(r, p, y, l);
|
|
2722
2722
|
}
|
|
2723
2723
|
function joinLines(t, e, r, i, s) {
|
|
2724
2724
|
var a = e.points[3], n = r.points[0];
|
|
2725
2725
|
if (i === 3 || pointEqual(a, n)) return a;
|
|
2726
2726
|
if (i === 2) {
|
|
2727
|
-
var l = -e.tangentAngle(1), o = -r.tangentAngle(0) + Math.PI,
|
|
2727
|
+
var l = -e.tangentAngle(1), o = -r.tangentAngle(0) + Math.PI, p = lineIntersection(a, polarOffset(a, l + Math.PI / 2, 100), n, polarOffset(n, l + Math.PI / 2, 100)), y = p ? pointDistance(p, a) : pointDistance(a, n) / 2, P = polarOffset(a, l, 2 * y * roundCorner);
|
|
2728
2728
|
return t.setXYAt(P[0], P[1], "o", t.length() - 1), P = polarOffset(n, o, 2 * y * roundCorner), t.setTripleAt(n[0], n[1], n[0], n[1], P[0], P[1], t.length()), n;
|
|
2729
2729
|
}
|
|
2730
2730
|
var u = pointEqual(a, e.points[2]) ? e.points[0] : e.points[2], b = pointEqual(n, r.points[1]) ? r.points[3] : r.points[1], g = lineIntersection(u, a, n, b);
|
|
@@ -2762,29 +2762,29 @@ function requireLottie() {
|
|
|
2762
2762
|
s.c = t.c;
|
|
2763
2763
|
var a = t.length();
|
|
2764
2764
|
t.c || (a -= 1);
|
|
2765
|
-
var n, l, o,
|
|
2765
|
+
var n, l, o, p = [];
|
|
2766
2766
|
for (n = 0; n < a; n += 1)
|
|
2767
|
-
o = PolynomialBezier.shapeSegment(t, n),
|
|
2767
|
+
o = PolynomialBezier.shapeSegment(t, n), p.push(offsetSegmentSplit(o, e));
|
|
2768
2768
|
if (!t.c)
|
|
2769
2769
|
for (n = a - 1; n >= 0; n -= 1)
|
|
2770
|
-
o = PolynomialBezier.shapeSegmentInverted(t, n),
|
|
2771
|
-
|
|
2770
|
+
o = PolynomialBezier.shapeSegmentInverted(t, n), p.push(offsetSegmentSplit(o, e));
|
|
2771
|
+
p = pruneIntersections(p);
|
|
2772
2772
|
var y = null, P = null;
|
|
2773
|
-
for (n = 0; n <
|
|
2774
|
-
var u =
|
|
2773
|
+
for (n = 0; n < p.length; n += 1) {
|
|
2774
|
+
var u = p[n];
|
|
2775
2775
|
for (P && (y = joinLines(s, P, u[0], r, i)), P = u[u.length - 1], l = 0; l < u.length; l += 1)
|
|
2776
2776
|
o = u[l], y && pointEqual(o.points[0], y) ? s.setXYAt(o.points[1][0], o.points[1][1], "o", s.length() - 1) : s.setTripleAt(o.points[0][0], o.points[0][1], o.points[1][0], o.points[1][1], o.points[0][0], o.points[0][1], s.length()), s.setTripleAt(o.points[3][0], o.points[3][1], o.points[3][0], o.points[3][1], o.points[2][0], o.points[2][1], s.length()), y = o.points[3];
|
|
2777
2777
|
}
|
|
2778
|
-
return
|
|
2778
|
+
return p.length && joinLines(s, P, p[0][0], r, i), s;
|
|
2779
2779
|
}, OffsetPathModifier.prototype.processShapes = function(t) {
|
|
2780
2780
|
var e, r, i = this.shapes.length, s, a, n = this.amount.v, l = this.miterLimit.v, o = this.lineJoin;
|
|
2781
2781
|
if (n !== 0) {
|
|
2782
|
-
var
|
|
2782
|
+
var p, y;
|
|
2783
2783
|
for (r = 0; r < i; r += 1) {
|
|
2784
|
-
if (
|
|
2785
|
-
for (y.releaseShapes(),
|
|
2784
|
+
if (p = this.shapes[r], y = p.localShapeCollection, !(!p.shape._mdf && !this._mdf && !t))
|
|
2785
|
+
for (y.releaseShapes(), p.shape._mdf = !0, e = p.shape.paths.shapes, a = p.shape.paths._length, s = 0; s < a; s += 1)
|
|
2786
2786
|
y.addShape(this.processPath(e[s], n, o, l));
|
|
2787
|
-
|
|
2787
|
+
p.shape.paths = p.localShapeCollection;
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
2790
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
@@ -2828,7 +2828,7 @@ function requireLottie() {
|
|
|
2828
2828
|
}
|
|
2829
2829
|
}, r = [];
|
|
2830
2830
|
r = r.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
|
|
2831
|
-
var i = 127988, s = 917631, a = 917601, n = 917626, l = 65039, o = 8205,
|
|
2831
|
+
var i = 127988, s = 917631, a = 917601, n = 917626, l = 65039, o = 8205, p = 127462, y = 127487, P = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
|
|
2832
2832
|
function u(_) {
|
|
2833
2833
|
var F = _.split(","), k, S = F.length, V = [];
|
|
2834
2834
|
for (k = 0; k < S; k += 1)
|
|
@@ -2862,8 +2862,8 @@ function requireLottie() {
|
|
|
2862
2862
|
var R = new OffscreenCanvas(500, 500).getContext("2d");
|
|
2863
2863
|
R.font = V.style + " " + V.weight + " 100px " + _.fFamily, S = R;
|
|
2864
2864
|
}
|
|
2865
|
-
function O(
|
|
2866
|
-
return k === "svg" ? (S.textContent =
|
|
2865
|
+
function O(N) {
|
|
2866
|
+
return k === "svg" ? (S.textContent = N, S.getComputedTextLength()) : S.measureText(N).width;
|
|
2867
2867
|
}
|
|
2868
2868
|
return {
|
|
2869
2869
|
measureText: O
|
|
@@ -2886,7 +2886,7 @@ function requireLottie() {
|
|
|
2886
2886
|
}
|
|
2887
2887
|
var k = _.list, S, V = k.length, M = V;
|
|
2888
2888
|
for (S = 0; S < V; S += 1) {
|
|
2889
|
-
var R = !0, O,
|
|
2889
|
+
var R = !0, O, N;
|
|
2890
2890
|
if (k[S].loaded = !1, k[S].monoCase = b(k[S].fFamily, "monospace"), k[S].sansCase = b(k[S].fFamily, "sans-serif"), !k[S].fPath)
|
|
2891
2891
|
k[S].loaded = !0, M -= 1;
|
|
2892
2892
|
else if (k[S].fOrigin === "p" || k[S].origin === 3) {
|
|
@@ -2895,15 +2895,15 @@ function requireLottie() {
|
|
|
2895
2895
|
W.setAttribute("f-forigin", k[S].fOrigin), W.setAttribute("f-origin", k[S].origin), W.setAttribute("f-family", k[S].fFamily), W.type = "text/css", W.innerText = "@font-face {font-family: " + k[S].fFamily + "; font-style: normal; src: url('" + k[S].fPath + "');}", F.appendChild(W);
|
|
2896
2896
|
}
|
|
2897
2897
|
} else if (k[S].fOrigin === "g" || k[S].origin === 1) {
|
|
2898
|
-
for (O = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),
|
|
2899
|
-
O[
|
|
2898
|
+
for (O = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), N = 0; N < O.length; N += 1)
|
|
2899
|
+
O[N].href.indexOf(k[S].fPath) !== -1 && (R = !1);
|
|
2900
2900
|
if (R) {
|
|
2901
2901
|
var q = createTag("link");
|
|
2902
2902
|
q.setAttribute("f-forigin", k[S].fOrigin), q.setAttribute("f-origin", k[S].origin), q.type = "text/css", q.rel = "stylesheet", q.href = k[S].fPath, document.body.appendChild(q);
|
|
2903
2903
|
}
|
|
2904
2904
|
} else if (k[S].fOrigin === "t" || k[S].origin === 2) {
|
|
2905
|
-
for (O = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),
|
|
2906
|
-
k[S].fPath === O[
|
|
2905
|
+
for (O = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), N = 0; N < O.length; N += 1)
|
|
2906
|
+
k[S].fPath === O[N].src && (R = !1);
|
|
2907
2907
|
if (R) {
|
|
2908
2908
|
var X = createTag("link");
|
|
2909
2909
|
X.setAttribute("f-forigin", k[S].fOrigin), X.setAttribute("f-origin", k[S].origin), X.setAttribute("rel", "stylesheet"), X.setAttribute("href", k[S].fPath), F.appendChild(X);
|
|
@@ -2913,7 +2913,7 @@ function requireLottie() {
|
|
|
2913
2913
|
}
|
|
2914
2914
|
M === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function c(_) {
|
|
2917
2917
|
if (_) {
|
|
2918
2918
|
this.chars || (this.chars = []);
|
|
2919
2919
|
var F, k = _.length, S, V = this.chars.length, M;
|
|
@@ -2972,7 +2972,7 @@ function requireLottie() {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
function D(_) {
|
|
2974
2974
|
var F = E(_);
|
|
2975
|
-
return F >=
|
|
2975
|
+
return F >= p && F <= y;
|
|
2976
2976
|
}
|
|
2977
2977
|
function H(_) {
|
|
2978
2978
|
return D(_.substr(0, 2)) && D(_.substr(2, 2));
|
|
@@ -2992,7 +2992,7 @@ function requireLottie() {
|
|
|
2992
2992
|
}
|
|
2993
2993
|
return E(_.substr(F, 2)) === s;
|
|
2994
2994
|
}
|
|
2995
|
-
function
|
|
2995
|
+
function z() {
|
|
2996
2996
|
this.isLoaded = !0;
|
|
2997
2997
|
}
|
|
2998
2998
|
var j = function() {
|
|
@@ -3000,13 +3000,13 @@ function requireLottie() {
|
|
|
3000
3000
|
};
|
|
3001
3001
|
j.isModifier = A, j.isZeroWidthJoiner = T, j.isFlagEmoji = H, j.isRegionalCode = D, j.isCombinedCharacter = G, j.isRegionalFlag = B, j.isVariationSelector = I, j.BLACK_FLAG_CODE_POINT = i;
|
|
3002
3002
|
var L = {
|
|
3003
|
-
addChars:
|
|
3003
|
+
addChars: c,
|
|
3004
3004
|
addFonts: C,
|
|
3005
3005
|
getCharData: m,
|
|
3006
3006
|
getFontByName: x,
|
|
3007
3007
|
measureText: f,
|
|
3008
3008
|
checkLoadedFonts: g,
|
|
3009
|
-
setIsLoaded:
|
|
3009
|
+
setIsLoaded: z
|
|
3010
3010
|
};
|
|
3011
3011
|
return j.prototype = L, j;
|
|
3012
3012
|
}();
|
|
@@ -3465,9 +3465,9 @@ function requireLottie() {
|
|
|
3465
3465
|
this.data = t, this.element = e, this.globalData = r, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
|
|
3466
3466
|
var i = this.globalData.defs, s, a = this.masksProperties ? this.masksProperties.length : 0;
|
|
3467
3467
|
this.viewData = createSizedArray(a), this.solidPath = "";
|
|
3468
|
-
var n, l = this.masksProperties, o = 0,
|
|
3468
|
+
var n, l = this.masksProperties, o = 0, p = [], y, P, u = createElementID(), b, g, d, C, c = "clipPath", m = "clip-path";
|
|
3469
3469
|
for (s = 0; s < a; s += 1)
|
|
3470
|
-
if ((l[s].mode !== "a" && l[s].mode !== "n" || l[s].inv || l[s].o.k !== 100 || l[s].o.x) && (
|
|
3470
|
+
if ((l[s].mode !== "a" && l[s].mode !== "n" || l[s].inv || l[s].o.k !== 100 || l[s].o.x) && (c = "mask", m = "mask"), (l[s].mode === "s" || l[s].mode === "i") && o === 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), p.push(b)) : b = null, n = createNS("path"), l[s].mode === "n")
|
|
3471
3471
|
this.viewData[s] = {
|
|
3472
3472
|
op: PropertyFactory.getProp(this.element, l[s].o, 0, 0.01, this.element),
|
|
3473
3473
|
prop: ShapePropertyFactory.getShapeProp(this.element, l[s], 3),
|
|
@@ -3477,7 +3477,7 @@ function requireLottie() {
|
|
|
3477
3477
|
else {
|
|
3478
3478
|
o += 1, n.setAttribute("fill", l[s].mode === "s" ? "#000000" : "#ffffff"), n.setAttribute("clip-rule", "nonzero");
|
|
3479
3479
|
var f;
|
|
3480
|
-
if (l[s].x.k !== 0 ? (
|
|
3480
|
+
if (l[s].x.k !== 0 ? (c = "mask", m = "mask", C = PropertyFactory.getProp(this.element, l[s].x, 0, null, this.element), f = createElementID(), g = createNS("filter"), g.setAttribute("id", f), d = createNS("feMorphology"), d.setAttribute("operator", "erode"), d.setAttribute("in", "SourceGraphic"), d.setAttribute("radius", "0"), g.appendChild(d), i.appendChild(g), n.setAttribute("stroke", l[s].mode === "s" ? "#000000" : "#ffffff")) : (d = null, C = null), this.storedData[s] = {
|
|
3481
3481
|
elem: n,
|
|
3482
3482
|
x: C,
|
|
3483
3483
|
expan: d,
|
|
@@ -3486,14 +3486,14 @@ function requireLottie() {
|
|
|
3486
3486
|
filterId: f,
|
|
3487
3487
|
lastRadius: 0
|
|
3488
3488
|
}, l[s].mode === "i") {
|
|
3489
|
-
P =
|
|
3489
|
+
P = p.length;
|
|
3490
3490
|
var x = createNS("g");
|
|
3491
3491
|
for (y = 0; y < P; y += 1)
|
|
3492
|
-
x.appendChild(
|
|
3492
|
+
x.appendChild(p[y]);
|
|
3493
3493
|
var E = createNS("mask");
|
|
3494
|
-
E.setAttribute("mask-type", "alpha"), E.setAttribute("id", u + "_" + o), E.appendChild(n), i.appendChild(E), x.setAttribute("mask", "url(" + getLocationHref() + "#" + u + "_" + o + ")"),
|
|
3494
|
+
E.setAttribute("mask-type", "alpha"), E.setAttribute("id", u + "_" + o), E.appendChild(n), i.appendChild(E), x.setAttribute("mask", "url(" + getLocationHref() + "#" + u + "_" + o + ")"), p.length = 0, p.push(x);
|
|
3495
3495
|
} else
|
|
3496
|
-
|
|
3496
|
+
p.push(n);
|
|
3497
3497
|
l[s].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[s] = {
|
|
3498
3498
|
elem: n,
|
|
3499
3499
|
lastPath: "",
|
|
@@ -3502,8 +3502,8 @@ function requireLottie() {
|
|
|
3502
3502
|
invRect: b
|
|
3503
3503
|
}, this.viewData[s].prop.k || this.drawPath(l[s], this.viewData[s].prop.v, this.viewData[s]);
|
|
3504
3504
|
}
|
|
3505
|
-
for (this.maskElement = createNS(
|
|
3506
|
-
this.maskElement.appendChild(
|
|
3505
|
+
for (this.maskElement = createNS(c), a = p.length, s = 0; s < a; s += 1)
|
|
3506
|
+
this.maskElement.appendChild(p[s]);
|
|
3507
3507
|
o > 0 && (this.maskElement.setAttribute("id", u), this.element.maskedElement.setAttribute(m, "url(" + getLocationHref() + "#" + u + ")"), i.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this);
|
|
3508
3508
|
}
|
|
3509
3509
|
MaskElement.prototype.getMaskProperty = function(t) {
|
|
@@ -3559,8 +3559,8 @@ function requireLottie() {
|
|
|
3559
3559
|
l = null;
|
|
3560
3560
|
var o = t.data.ef[e].ty;
|
|
3561
3561
|
if (registeredEffects$1[o]) {
|
|
3562
|
-
var
|
|
3563
|
-
l = new
|
|
3562
|
+
var p = registeredEffects$1[o].effect;
|
|
3563
|
+
l = new p(a, t.effectsManager.effectElements[e], t, idPrefix + n, r), r = idPrefix + n, registeredEffects$1[o].countsAsEffect && (n += 1);
|
|
3564
3564
|
}
|
|
3565
3565
|
l && this.filters.push(l);
|
|
3566
3566
|
}
|
|
@@ -3629,14 +3629,14 @@ function requireLottie() {
|
|
|
3629
3629
|
} else if (e === 2) {
|
|
3630
3630
|
var o = createNS("mask");
|
|
3631
3631
|
o.setAttribute("id", r), o.setAttribute("mask-type", "alpha");
|
|
3632
|
-
var
|
|
3633
|
-
o.appendChild(
|
|
3632
|
+
var p = createNS("g");
|
|
3633
|
+
o.appendChild(p), i = createElementID(), s = filtersFactory.createFilter(i);
|
|
3634
3634
|
var y = createNS("feComponentTransfer");
|
|
3635
3635
|
y.setAttribute("in", "SourceGraphic"), s.appendChild(y);
|
|
3636
3636
|
var P = createNS("feFuncA");
|
|
3637
3637
|
P.setAttribute("type", "table"), P.setAttribute("tableValues", "1.0 0.0"), y.appendChild(P), this.globalData.defs.appendChild(s);
|
|
3638
3638
|
var u = createNS("rect");
|
|
3639
|
-
u.setAttribute("width", this.comp.data.w), u.setAttribute("height", this.comp.data.h), u.setAttribute("x", "0"), u.setAttribute("y", "0"), u.setAttribute("fill", "#ffffff"), u.setAttribute("opacity", "0"),
|
|
3639
|
+
u.setAttribute("width", this.comp.data.w), u.setAttribute("height", this.comp.data.h), u.setAttribute("x", "0"), u.setAttribute("y", "0"), u.setAttribute("fill", "#ffffff"), u.setAttribute("opacity", "0"), p.setAttribute("filter", "url(" + getLocationHref() + "#" + i + ")"), p.appendChild(u), a = createNS("use"), a.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), p.appendChild(a), featureSupport.maskType || (o.setAttribute("mask-type", "luminance"), s.appendChild(filtersFactory.createAlphaToLuminanceFilter()), n = createNS("g"), p.appendChild(u), n.appendChild(this.layerElement), p.appendChild(n)), this.globalData.defs.appendChild(o);
|
|
3640
3640
|
}
|
|
3641
3641
|
this.matteMasks[e] = r;
|
|
3642
3642
|
}
|
|
@@ -3896,12 +3896,12 @@ function requireLottie() {
|
|
|
3896
3896
|
a.appendChild(n);
|
|
3897
3897
|
var l = createElementID(), o = createElementID();
|
|
3898
3898
|
a.setAttribute("id", o);
|
|
3899
|
-
var
|
|
3900
|
-
|
|
3899
|
+
var p = createNS(t.t === 1 ? "linearGradient" : "radialGradient");
|
|
3900
|
+
p.setAttribute("id", l), p.setAttribute("spreadMethod", "pad"), p.setAttribute("gradientUnits", "userSpaceOnUse"), s = t.g.k.k[0].s ? t.g.k.k[0].s.length : t.g.k.k.length;
|
|
3901
3901
|
var y = this.stops;
|
|
3902
3902
|
for (i = t.g.p * 4; i < s; i += 2)
|
|
3903
|
-
r = createNS("stop"), r.setAttribute("stop-color", "rgb(255,255,255)"),
|
|
3904
|
-
n.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + getLocationHref() + "#" + l + ")"), t.ty === "gs" && (n.setAttribute("stroke-linecap", lineCapEnum[t.lc || 2]), n.setAttribute("stroke-linejoin", lineJoinEnum[t.lj || 2]), t.lj === 1 && n.setAttribute("stroke-miterlimit", t.ml)), this.of =
|
|
3903
|
+
r = createNS("stop"), r.setAttribute("stop-color", "rgb(255,255,255)"), p.appendChild(r), y.push(r);
|
|
3904
|
+
n.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + getLocationHref() + "#" + l + ")"), t.ty === "gs" && (n.setAttribute("stroke-linecap", lineCapEnum[t.lc || 2]), n.setAttribute("stroke-linejoin", lineJoinEnum[t.lj || 2]), t.lj === 1 && n.setAttribute("stroke-miterlimit", t.ml)), this.of = p, this.ms = a, this.ost = y, this.maskId = o, e.msElem = n;
|
|
3905
3905
|
}
|
|
3906
3906
|
}, extendPrototype([DynamicPropertyContainer], SVGGradientFillStyleData);
|
|
3907
3907
|
function SVGGradientStrokeStyleData(t, e, r) {
|
|
@@ -3921,10 +3921,10 @@ function requireLottie() {
|
|
|
3921
3921
|
var buildShapeString = function(e, r, i, s) {
|
|
3922
3922
|
if (r === 0)
|
|
3923
3923
|
return "";
|
|
3924
|
-
var a = e.o, n = e.i, l = e.v, o,
|
|
3924
|
+
var a = e.o, n = e.i, l = e.v, o, p = " M" + s.applyToPointStringified(l[0][0], l[0][1]);
|
|
3925
3925
|
for (o = 1; o < r; o += 1)
|
|
3926
|
-
|
|
3927
|
-
return i && r && (
|
|
3926
|
+
p += " C" + s.applyToPointStringified(a[o - 1][0], a[o - 1][1]) + " " + s.applyToPointStringified(n[o][0], n[o][1]) + " " + s.applyToPointStringified(l[o][0], l[o][1]);
|
|
3927
|
+
return i && r && (p += " C" + s.applyToPointStringified(a[o - 1][0], a[o - 1][1]) + " " + s.applyToPointStringified(n[0][0], n[0][1]) + " " + s.applyToPointStringified(l[0][0], l[0][1]), p += "z"), p;
|
|
3928
3928
|
}, SVGElementsRenderer = function() {
|
|
3929
3929
|
var t = new Matrix(), e = new Matrix(), r = {
|
|
3930
3930
|
createRenderFunction: i
|
|
@@ -3934,7 +3934,7 @@ function requireLottie() {
|
|
|
3934
3934
|
case "fl":
|
|
3935
3935
|
return l;
|
|
3936
3936
|
case "gf":
|
|
3937
|
-
return
|
|
3937
|
+
return p;
|
|
3938
3938
|
case "gs":
|
|
3939
3939
|
return o;
|
|
3940
3940
|
case "st":
|
|
@@ -3958,23 +3958,23 @@ function requireLottie() {
|
|
|
3958
3958
|
function a() {
|
|
3959
3959
|
}
|
|
3960
3960
|
function n(P, u, b) {
|
|
3961
|
-
var g, d, C,
|
|
3961
|
+
var g, d, C, c, m, f, x = u.styles.length, E = u.lvl, A, T, I, D;
|
|
3962
3962
|
for (f = 0; f < x; f += 1) {
|
|
3963
|
-
if (
|
|
3964
|
-
for (T = e.reset(), I = E - u.styles[f].lvl, D = u.transformers.length - 1; !
|
|
3965
|
-
|
|
3966
|
-
if (
|
|
3963
|
+
if (c = u.sh._mdf || b, u.styles[f].lvl < E) {
|
|
3964
|
+
for (T = e.reset(), I = E - u.styles[f].lvl, D = u.transformers.length - 1; !c && I > 0; )
|
|
3965
|
+
c = u.transformers[D].mProps._mdf || c, I -= 1, D -= 1;
|
|
3966
|
+
if (c)
|
|
3967
3967
|
for (I = E - u.styles[f].lvl, D = u.transformers.length - 1; I > 0; )
|
|
3968
3968
|
T.multiply(u.transformers[D].mProps.v), I -= 1, D -= 1;
|
|
3969
3969
|
} else
|
|
3970
3970
|
T = t;
|
|
3971
|
-
if (A = u.sh.paths, d = A._length,
|
|
3971
|
+
if (A = u.sh.paths, d = A._length, c) {
|
|
3972
3972
|
for (C = "", g = 0; g < d; g += 1)
|
|
3973
3973
|
m = A.shapes[g], m && m._length && (C += buildShapeString(m, m._length, m.c, T));
|
|
3974
3974
|
u.caches[f] = C;
|
|
3975
3975
|
} else
|
|
3976
3976
|
C = u.caches[f];
|
|
3977
|
-
u.styles[f].d += P.hd === !0 ? "" : C, u.styles[f]._mdf =
|
|
3977
|
+
u.styles[f].d += P.hd === !0 ? "" : C, u.styles[f]._mdf = c || u.styles[f]._mdf;
|
|
3978
3978
|
}
|
|
3979
3979
|
}
|
|
3980
3980
|
function l(P, u, b) {
|
|
@@ -3982,10 +3982,10 @@ function requireLottie() {
|
|
|
3982
3982
|
(u.c._mdf || b) && g.pElem.setAttribute("fill", "rgb(" + bmFloor(u.c.v[0]) + "," + bmFloor(u.c.v[1]) + "," + bmFloor(u.c.v[2]) + ")"), (u.o._mdf || b) && g.pElem.setAttribute("fill-opacity", u.o.v);
|
|
3983
3983
|
}
|
|
3984
3984
|
function o(P, u, b) {
|
|
3985
|
-
|
|
3985
|
+
p(P, u, b), y(P, u, b);
|
|
3986
3986
|
}
|
|
3987
|
-
function
|
|
3988
|
-
var g = u.gf, d = u.g._hasOpacity, C = u.s.v,
|
|
3987
|
+
function p(P, u, b) {
|
|
3988
|
+
var g = u.gf, d = u.g._hasOpacity, C = u.s.v, c = u.e.v;
|
|
3989
3989
|
if (u.o._mdf || b) {
|
|
3990
3990
|
var m = P.ty === "gf" ? "fill-opacity" : "stroke-opacity";
|
|
3991
3991
|
u.style.pElem.setAttribute(m, u.o.v);
|
|
@@ -4007,14 +4007,14 @@ function requireLottie() {
|
|
|
4007
4007
|
I = E[A], u.g._collapsable || I.setAttribute("offset", H[A * 2] + "%"), I.setAttribute("stop-opacity", H[A * 2 + 1]);
|
|
4008
4008
|
}
|
|
4009
4009
|
if (P.t === 1)
|
|
4010
|
-
(u.e._mdf || b) && (g.setAttribute("x2",
|
|
4010
|
+
(u.e._mdf || b) && (g.setAttribute("x2", c[0]), g.setAttribute("y2", c[1]), d && !u.g._collapsable && (u.of.setAttribute("x2", c[0]), u.of.setAttribute("y2", c[1])));
|
|
4011
4011
|
else {
|
|
4012
4012
|
var G;
|
|
4013
|
-
if ((u.s._mdf || u.e._mdf || b) && (G = Math.sqrt(Math.pow(C[0] -
|
|
4014
|
-
G || (G = Math.sqrt(Math.pow(C[0] -
|
|
4015
|
-
var B = Math.atan2(
|
|
4016
|
-
|
|
4017
|
-
var j = G *
|
|
4013
|
+
if ((u.s._mdf || u.e._mdf || b) && (G = Math.sqrt(Math.pow(C[0] - c[0], 2) + Math.pow(C[1] - c[1], 2)), g.setAttribute("r", G), d && !u.g._collapsable && u.of.setAttribute("r", G)), u.e._mdf || u.h._mdf || u.a._mdf || b) {
|
|
4014
|
+
G || (G = Math.sqrt(Math.pow(C[0] - c[0], 2) + Math.pow(C[1] - c[1], 2)));
|
|
4015
|
+
var B = Math.atan2(c[1] - C[1], c[0] - C[0]), z = u.h.v;
|
|
4016
|
+
z >= 1 ? z = 0.99 : z <= -1 && (z = -0.99);
|
|
4017
|
+
var j = G * z, L = Math.cos(B + u.a.v) * j + C[0], _ = Math.sin(B + u.a.v) * j + C[1];
|
|
4018
4018
|
g.setAttribute("fx", L), g.setAttribute("fy", _), d && !u.g._collapsable && (u.of.setAttribute("fx", L), u.of.setAttribute("fy", _));
|
|
4019
4019
|
}
|
|
4020
4020
|
}
|
|
@@ -4089,8 +4089,8 @@ function requireLottie() {
|
|
|
4089
4089
|
this.dynamicProperties[t].getValue();
|
|
4090
4090
|
this.renderModifiers();
|
|
4091
4091
|
}, SVGShapeElement.prototype.searchShapes = function(t, e, r, i, s, a, n) {
|
|
4092
|
-
var l = [].concat(a), o,
|
|
4093
|
-
for (o =
|
|
4092
|
+
var l = [].concat(a), o, p = t.length - 1, y, P, u = [], b = [], g, d, C;
|
|
4093
|
+
for (o = p; o >= 0; o -= 1) {
|
|
4094
4094
|
if (C = this.searchProcessedElement(t[o]), C ? e[o] = r[C - 1] : t[o]._render = n, t[o].ty === "fl" || t[o].ty === "st" || t[o].ty === "gf" || t[o].ty === "gs" || t[o].ty === "no")
|
|
4095
4095
|
C ? e[o].style.closed = !1 : e[o] = this.createStyleElement(t[o], s), t[o]._render && e[o].style.pElem.parentNode !== i && i.appendChild(e[o].style.pElem), u.push(e[o].style);
|
|
4096
4096
|
else if (t[o].ty === "gr") {
|
|
@@ -4103,9 +4103,9 @@ function requireLottie() {
|
|
|
4103
4103
|
} else t[o].ty === "tr" ? (C || (e[o] = this.createTransformElement(t[o], i)), g = e[o].transform, l.push(g)) : t[o].ty === "sh" || t[o].ty === "rc" || t[o].ty === "el" || t[o].ty === "sr" ? (C || (e[o] = this.createShapeElement(t[o], l, s)), this.setElementStyles(e[o])) : t[o].ty === "tm" || t[o].ty === "rd" || t[o].ty === "ms" || t[o].ty === "pb" || t[o].ty === "zz" || t[o].ty === "op" ? (C ? (d = e[o], d.closed = !1) : (d = ShapeModifiers.getModifier(t[o].ty), d.init(this, t[o]), e[o] = d, this.shapeModifiers.push(d)), b.push(d)) : t[o].ty === "rp" && (C ? (d = e[o], d.closed = !0) : (d = ShapeModifiers.getModifier(t[o].ty), e[o] = d, d.init(this, t, o, e), this.shapeModifiers.push(d), n = !1), b.push(d));
|
|
4104
4104
|
this.addProcessedElement(t[o], o + 1);
|
|
4105
4105
|
}
|
|
4106
|
-
for (
|
|
4106
|
+
for (p = u.length, o = 0; o < p; o += 1)
|
|
4107
4107
|
u[o].closed = !0;
|
|
4108
|
-
for (
|
|
4108
|
+
for (p = b.length, o = 0; o < p; o += 1)
|
|
4109
4109
|
b[o].closed = !0;
|
|
4110
4110
|
}, SVGShapeElement.prototype.renderInnerContent = function() {
|
|
4111
4111
|
this.renderModifiers();
|
|
@@ -4204,15 +4204,15 @@ function requireLottie() {
|
|
|
4204
4204
|
return e;
|
|
4205
4205
|
}, TextProperty.prototype.completeTextData = function(t) {
|
|
4206
4206
|
t.__complete = !0;
|
|
4207
|
-
var e = this.elem.globalData.fontManager, r = this.data, i = [], s, a, n, l = 0, o,
|
|
4207
|
+
var e = this.elem.globalData.fontManager, r = this.data, i = [], s, a, n, l = 0, o, p = r.m.g, y = 0, P = 0, u = 0, b = [], g = 0, d = 0, C, c, m = e.getFontByName(t.f), f, x = 0, E = getFontProperties(m);
|
|
4208
4208
|
t.fWeight = E.weight, t.fStyle = E.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), a = t.finalText.length, t.finalLineHeight = t.lh;
|
|
4209
4209
|
var A = t.tr / 1e3 * t.finalSize, T;
|
|
4210
4210
|
if (t.sz)
|
|
4211
4211
|
for (var I = !0, D = t.sz[0], H = t.sz[1], G, B; I; ) {
|
|
4212
4212
|
B = this.buildFinalText(t.t), G = 0, g = 0, a = B.length, A = t.tr / 1e3 * t.finalSize;
|
|
4213
|
-
var
|
|
4213
|
+
var z = -1;
|
|
4214
4214
|
for (s = 0; s < a; s += 1)
|
|
4215
|
-
T = B[s].charCodeAt(0), n = !1, B[s] === " " ?
|
|
4215
|
+
T = B[s].charCodeAt(0), n = !1, B[s] === " " ? z = s : (T === 13 || T === 3) && (g = 0, n = !0, G += t.finalLineHeight || t.finalSize * 1.2), e.chars ? (f = e.getCharData(B[s], m.fStyle, m.fFamily), x = n ? 0 : f.w * t.finalSize / 100) : x = e.measureText(B[s], t.f, t.finalSize), g + x > D && B[s] !== " " ? (z === -1 ? a += 1 : s = z, G += t.finalLineHeight || t.finalSize * 1.2, B.splice(s, z === s ? 1 : 0, "\r"), z = -1, g = 0) : (g += x, g += A);
|
|
4216
4216
|
G += m.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && H < G ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = B, a = t.finalText.length, I = !1);
|
|
4217
4217
|
}
|
|
4218
4218
|
g = -A, x = 0;
|
|
@@ -4227,13 +4227,13 @@ function requireLottie() {
|
|
|
4227
4227
|
val: o,
|
|
4228
4228
|
line: u,
|
|
4229
4229
|
animatorJustifyOffset: 0
|
|
4230
|
-
}),
|
|
4230
|
+
}), p == 2) {
|
|
4231
4231
|
if (y += x, o === "" || o === " " || s === a - 1) {
|
|
4232
4232
|
for ((o === "" || o === " ") && (y -= x); P <= s; )
|
|
4233
4233
|
i[P].an = y, i[P].ind = l, i[P].extra = x, P += 1;
|
|
4234
4234
|
l += 1, y = 0;
|
|
4235
4235
|
}
|
|
4236
|
-
} else if (
|
|
4236
|
+
} else if (p == 3) {
|
|
4237
4237
|
if (y += x, o === "" || s === a - 1) {
|
|
4238
4238
|
for (o === "" && (y -= x); P <= s; )
|
|
4239
4239
|
i[P].an = y, i[P].ind = l, i[P].extra = x, P += 1;
|
|
@@ -4256,9 +4256,9 @@ function requireLottie() {
|
|
|
4256
4256
|
}
|
|
4257
4257
|
t.lineWidths = b;
|
|
4258
4258
|
var _ = r.a, F, k;
|
|
4259
|
-
|
|
4259
|
+
c = _.length;
|
|
4260
4260
|
var S, V, M = [];
|
|
4261
|
-
for (C = 0; C <
|
|
4261
|
+
for (C = 0; C < c; C += 1) {
|
|
4262
4262
|
for (F = _[C], F.a.sc && (t.strokeColorAnim = !0), F.a.sw && (t.strokeWidthAnim = !0), (F.a.fc || F.a.fh || F.a.fs || F.a.fb) && (t.fillColorAnim = !0), V = 0, S = F.s.b, s = 0; s < a; s += 1)
|
|
4263
4263
|
k = i[s], k.anIndexes[C] = V, (S == 1 && k.val !== "" || S == 2 && k.val !== "" && k.val !== " " || S == 3 && (k.n || k.val == " " || s == a - 1) || S == 4 && (k.n || s == a - 1)) && (F.s.rn === 1 && M.push(V), V += 1);
|
|
4264
4264
|
r.a[C].s.totalChars = V;
|
|
@@ -4300,9 +4300,9 @@ function requireLottie() {
|
|
|
4300
4300
|
i.prototype = {
|
|
4301
4301
|
getMult: function(n) {
|
|
4302
4302
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
4303
|
-
var l = 0, o = 0,
|
|
4304
|
-
this.ne.v > 0 ? l = this.ne.v / 100 : o = -this.ne.v / 100, this.xe.v > 0 ?
|
|
4305
|
-
var P = BezierFactory.getBezierEasing(l, o,
|
|
4303
|
+
var l = 0, o = 0, p = 1, y = 1;
|
|
4304
|
+
this.ne.v > 0 ? l = this.ne.v / 100 : o = -this.ne.v / 100, this.xe.v > 0 ? p = 1 - this.xe.v / 100 : y = 1 + this.xe.v / 100;
|
|
4305
|
+
var P = BezierFactory.getBezierEasing(l, o, p, y).get, u = 0, b = this.finalS, g = this.finalE, d = this.data.sh;
|
|
4306
4306
|
if (d === 2)
|
|
4307
4307
|
g === b ? u = n >= g ? 1 : 0 : u = t(0, e(0.5 / (g - b) + (n - b) / (g - b), 1)), u = P(u);
|
|
4308
4308
|
else if (d === 3)
|
|
@@ -4315,8 +4315,8 @@ function requireLottie() {
|
|
|
4315
4315
|
else {
|
|
4316
4316
|
var C = g - b;
|
|
4317
4317
|
n = e(t(0, n + 0.5 - b), g - b);
|
|
4318
|
-
var
|
|
4319
|
-
u = Math.sqrt(1 -
|
|
4318
|
+
var c = -C / 2 + n, m = C / 2;
|
|
4319
|
+
u = Math.sqrt(1 - c * c / (m * m));
|
|
4320
4320
|
}
|
|
4321
4321
|
u = P(u);
|
|
4322
4322
|
} else d === 6 ? (g === b ? u = 0 : (n = e(t(0, n + 0.5 - b), g - b), u = (1 + Math.cos(Math.PI + Math.PI * 2 * n / (g - b))) / 2), u = P(u)) : (n >= r(b) && (n - b < 0 ? u = t(0, e(e(g, 1) - (b - n), 1)) : u = t(0, e(g - n, 1))), u = P(u));
|
|
@@ -4330,12 +4330,12 @@ function requireLottie() {
|
|
|
4330
4330
|
},
|
|
4331
4331
|
getValue: function(n) {
|
|
4332
4332
|
this.iterateDynamicProperties(), this._mdf = n || this._mdf, this._currentTextLength = this.elem.textProperty.currentData.l.length || 0, n && this.data.r === 2 && (this.e.v = this._currentTextLength);
|
|
4333
|
-
var l = this.data.r === 2 ? 1 : 100 / this.data.totalChars, o = this.o.v / l,
|
|
4334
|
-
if (
|
|
4335
|
-
var P =
|
|
4336
|
-
|
|
4333
|
+
var l = this.data.r === 2 ? 1 : 100 / this.data.totalChars, o = this.o.v / l, p = this.s.v / l + o, y = this.e.v / l + o;
|
|
4334
|
+
if (p > y) {
|
|
4335
|
+
var P = p;
|
|
4336
|
+
p = y, y = P;
|
|
4337
4337
|
}
|
|
4338
|
-
this.finalS =
|
|
4338
|
+
this.finalS = p, this.finalE = y;
|
|
4339
4339
|
}
|
|
4340
4340
|
}, extendPrototype([DynamicPropertyContainer], i);
|
|
4341
4341
|
function s(a, n, l) {
|
|
@@ -4388,7 +4388,7 @@ function requireLottie() {
|
|
|
4388
4388
|
}, TextAnimatorProperty.prototype.getMeasures = function(t, e) {
|
|
4389
4389
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
4390
4390
|
this._isFirstFrame = !1;
|
|
4391
|
-
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, a = this.mHelper, n = this._renderType, l = this.renderedLetters.length, o,
|
|
4391
|
+
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, a = this.mHelper, n = this._renderType, l = this.renderedLetters.length, o, p, y, P, u = t.l, b, g, d, C, c, m, f, x, E, A, T, I, D, H, G;
|
|
4392
4392
|
if (this._hasMaskedPath) {
|
|
4393
4393
|
if (G = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
4394
4394
|
var B = G.v;
|
|
@@ -4396,20 +4396,20 @@ function requireLottie() {
|
|
|
4396
4396
|
tLength: 0,
|
|
4397
4397
|
segments: []
|
|
4398
4398
|
}, P = B._length - 1;
|
|
4399
|
-
var
|
|
4399
|
+
var z;
|
|
4400
4400
|
for (I = 0, y = 0; y < P; y += 1)
|
|
4401
|
-
|
|
4402
|
-
y = P, G.v.c && (
|
|
4401
|
+
z = bez.buildBezierData(B.v[y], B.v[y + 1], [B.o[y][0] - B.v[y][0], B.o[y][1] - B.v[y][1]], [B.i[y + 1][0] - B.v[y + 1][0], B.i[y + 1][1] - B.v[y + 1][1]]), b.tLength += z.segmentLength, b.segments.push(z), I += z.segmentLength;
|
|
4402
|
+
y = P, G.v.c && (z = bez.buildBezierData(B.v[y], B.v[0], [B.o[y][0] - B.v[y][0], B.o[y][1] - B.v[y][1]], [B.i[0][0] - B.v[0][0], B.i[0][1] - B.v[0][1]]), b.tLength += z.segmentLength, b.segments.push(z), I += z.segmentLength), this._pathData.pi = b;
|
|
4403
4403
|
}
|
|
4404
|
-
if (b = this._pathData.pi, g = this._pathData.f.v, f = 0, m = 1, C = 0,
|
|
4404
|
+
if (b = this._pathData.pi, g = this._pathData.f.v, f = 0, m = 1, C = 0, c = !0, A = b.segments, g < 0 && G.v.c)
|
|
4405
4405
|
for (b.tLength < Math.abs(g) && (g = -Math.abs(g) % b.tLength), f = A.length - 1, E = A[f].points, m = E.length - 1; g < 0; )
|
|
4406
4406
|
g += E[m].partialLength, m -= 1, m < 0 && (f -= 1, E = A[f].points, m = E.length - 1);
|
|
4407
4407
|
E = A[f].points, x = E[m - 1], d = E[m], T = d.partialLength;
|
|
4408
4408
|
}
|
|
4409
|
-
P = u.length, o = 0,
|
|
4409
|
+
P = u.length, o = 0, p = 0;
|
|
4410
4410
|
var j = t.finalSize * 1.2 * 0.714, L = !0, _, F, k, S, V;
|
|
4411
4411
|
S = i.length;
|
|
4412
|
-
var M, R = -1, O,
|
|
4412
|
+
var M, R = -1, O, N, W, q = g, X = f, K = m, rt = -1, J, Z, Q, Y, $, st, ht, at, it = "", nt = this.defaultPropsArray, ot;
|
|
4413
4413
|
if (t.j === 2 || t.j === 1) {
|
|
4414
4414
|
var U = 0, lt = 0, ft = t.j === 2 ? -0.5 : -1, tt = 0, pt = !0;
|
|
4415
4415
|
for (y = 0; y < P; y += 1)
|
|
@@ -4427,7 +4427,7 @@ function requireLottie() {
|
|
|
4427
4427
|
}
|
|
4428
4428
|
for (y = 0; y < P; y += 1) {
|
|
4429
4429
|
if (a.reset(), J = 1, u[y].n)
|
|
4430
|
-
o = 0,
|
|
4430
|
+
o = 0, p += t.yOffset, p += L ? 1 : 0, g = q, L = !1, this._hasMaskedPath && (f = X, m = K, E = A[f].points, x = E[m - 1], d = E[m], T = d.partialLength, C = 0), it = "", at = "", st = "", ot = "", nt = this.defaultPropsArray;
|
|
4431
4431
|
else {
|
|
4432
4432
|
if (this._hasMaskedPath) {
|
|
4433
4433
|
if (rt !== u[y].line) {
|
|
@@ -4445,8 +4445,8 @@ function requireLottie() {
|
|
|
4445
4445
|
var et = 0;
|
|
4446
4446
|
for (k = 0; k < S; k += 1)
|
|
4447
4447
|
_ = i[k].a, _.p.propType && (F = i[k].s, M = F.getMult(u[y].anIndexes[k], s.a[k].s.totalChars), M.length ? et += _.p.v[0] * M[0] : et += _.p.v[0] * M), _.a.propType && (F = i[k].s, M = F.getMult(u[y].anIndexes[k], s.a[k].s.totalChars), M.length ? et += _.a.v[0] * M[0] : et += _.a.v[0] * M);
|
|
4448
|
-
for (
|
|
4449
|
-
C + T >= g + et || !E ? (D = (g + et - C) / d.partialLength,
|
|
4448
|
+
for (c = !0, this._pathData.a.v && (g = u[0].an * 0.5 + (I - this._pathData.f.v - u[0].an * 0.5 - u[u.length - 1].an * 0.5) * R / (P - 1), g += this._pathData.f.v); c; )
|
|
4449
|
+
C + T >= g + et || !E ? (D = (g + et - C) / d.partialLength, N = x.point[0] + (d.point[0] - x.point[0]) * D, W = x.point[1] + (d.point[1] - x.point[1]) * D, a.translate(-r[0] * u[y].an * 5e-3, -(r[1] * j) * 0.01), c = !1) : E && (C += d.partialLength, m += 1, m >= E.length && (m = 0, f += 1, A[f] ? E = A[f].points : G.v.c ? (m = 0, f = 0, E = A[f].points) : (C -= d.partialLength, E = null)), E && (x = d, d = E[m], T = d.partialLength));
|
|
4450
4450
|
O = u[y].an / 2 - u[y].add, a.translate(-O, 0, 0);
|
|
4451
4451
|
} else
|
|
4452
4452
|
O = u[y].an / 2 - u[y].add, a.translate(-O, 0, 0), a.translate(-r[0] * u[y].an * 5e-3, -r[1] * j * 0.01, 0);
|
|
@@ -4470,14 +4470,14 @@ function requireLottie() {
|
|
|
4470
4470
|
for (k = 0; k < S; k += 1)
|
|
4471
4471
|
_ = i[k].a, _.p.propType && (F = i[k].s, M = F.getMult(u[y].anIndexes[k], s.a[k].s.totalChars), this._hasMaskedPath ? M.length ? a.translate(0, _.p.v[1] * M[0], -_.p.v[2] * M[1]) : a.translate(0, _.p.v[1] * M, -_.p.v[2] * M) : M.length ? a.translate(_.p.v[0] * M[0], _.p.v[1] * M[1], -_.p.v[2] * M[2]) : a.translate(_.p.v[0] * M, _.p.v[1] * M, -_.p.v[2] * M));
|
|
4472
4472
|
if (t.strokeWidthAnim && (st = Q < 0 ? 0 : Q), t.strokeColorAnim && (ht = "rgb(" + Math.round(Z[0] * 255) + "," + Math.round(Z[1] * 255) + "," + Math.round(Z[2] * 255) + ")"), t.fillColorAnim && t.fc && (at = "rgb(" + Math.round(Y[0] * 255) + "," + Math.round(Y[1] * 255) + "," + Math.round(Y[2] * 255) + ")"), this._hasMaskedPath) {
|
|
4473
|
-
if (a.translate(0, -t.ls), a.translate(0, r[1] * j * 0.01 +
|
|
4473
|
+
if (a.translate(0, -t.ls), a.translate(0, r[1] * j * 0.01 + p, 0), this._pathData.p.v) {
|
|
4474
4474
|
H = (d.point[1] - x.point[1]) / (d.point[0] - x.point[0]);
|
|
4475
4475
|
var ct = Math.atan(H) * 180 / Math.PI;
|
|
4476
4476
|
d.point[0] < x.point[0] && (ct += 180), a.rotate(-ct * Math.PI / 180);
|
|
4477
4477
|
}
|
|
4478
|
-
a.translate(
|
|
4478
|
+
a.translate(N, W, 0), g -= r[0] * u[y].an * 5e-3, u[y + 1] && R !== u[y + 1].ind && (g += u[y].an / 2, g += t.tr * 1e-3 * t.finalSize);
|
|
4479
4479
|
} else {
|
|
4480
|
-
switch (a.translate(o,
|
|
4480
|
+
switch (a.translate(o, p, 0), t.ps && a.translate(t.ps[0], t.ps[1] + t.ascent, 0), t.j) {
|
|
4481
4481
|
case 1:
|
|
4482
4482
|
a.translate(u[y].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[u[y].line]), 0, 0);
|
|
4483
4483
|
break;
|
|
@@ -4564,21 +4564,21 @@ function requireLottie() {
|
|
|
4564
4564
|
this.layerElement.setAttribute("aria-label", r.t);
|
|
4565
4565
|
var n = r.l || [], l = !!this.globalData.fontManager.chars;
|
|
4566
4566
|
e = n.length;
|
|
4567
|
-
var o,
|
|
4567
|
+
var o, p = this.mHelper, y = "", P = this.data.singleShape, u = 0, b = 0, g = !0, d = r.tr * 1e-3 * r.finalSize;
|
|
4568
4568
|
if (P && !l && !r.sz) {
|
|
4569
|
-
var C = this.textContainer,
|
|
4569
|
+
var C = this.textContainer, c = "start";
|
|
4570
4570
|
switch (r.j) {
|
|
4571
4571
|
case 1:
|
|
4572
|
-
|
|
4572
|
+
c = "end";
|
|
4573
4573
|
break;
|
|
4574
4574
|
case 2:
|
|
4575
|
-
|
|
4575
|
+
c = "middle";
|
|
4576
4576
|
break;
|
|
4577
4577
|
default:
|
|
4578
|
-
|
|
4578
|
+
c = "start";
|
|
4579
4579
|
break;
|
|
4580
4580
|
}
|
|
4581
|
-
C.setAttribute("text-anchor",
|
|
4581
|
+
C.setAttribute("text-anchor", c), C.setAttribute("letter-spacing", d);
|
|
4582
4582
|
var m = this.buildTextContents(r.finalText);
|
|
4583
4583
|
for (e = m.length, b = r.ps ? r.ps[1] + r.ascent : 0, t = 0; t < e; t += 1)
|
|
4584
4584
|
o = this.textSpans[t].span || createNS("tspan"), o.textContent = m[t], o.setAttribute("x", 0), o.setAttribute("y", b), o.style.display = "inherit", C.appendChild(o), this.textSpans[t] || (this.textSpans[t] = {
|
|
@@ -4603,7 +4603,7 @@ function requireLottie() {
|
|
|
4603
4603
|
}
|
|
4604
4604
|
o.style.display = "inherit";
|
|
4605
4605
|
}
|
|
4606
|
-
if (
|
|
4606
|
+
if (p.reset(), P && (n[t].n && (u = -d, b += r.yOffset, b += g ? 1 : 0, g = !1), this.applyTextPropertiesToMatrix(r, p, n[t].line, u, b), u += n[t].l || 0, u += d), l) {
|
|
4607
4607
|
x = this.globalData.fontManager.getCharData(r.finalText[t], i.fStyle, this.globalData.fontManager.getFontByName(r.f).fFamily);
|
|
4608
4608
|
var A;
|
|
4609
4609
|
if (x.t === 1)
|
|
@@ -4618,7 +4618,7 @@ function requireLottie() {
|
|
|
4618
4618
|
}
|
|
4619
4619
|
this.textSpans[t].glyph = A, A._debug = !0, A.prepareFrame(0), A.renderFrame(), this.textSpans[t].childSpan.appendChild(A.layerElement), x.t === 1 && this.textSpans[t].childSpan.setAttribute("transform", "scale(" + r.finalSize / 100 + "," + r.finalSize / 100 + ")");
|
|
4620
4620
|
} else
|
|
4621
|
-
P && o.setAttribute("transform", "translate(" +
|
|
4621
|
+
P && o.setAttribute("transform", "translate(" + p.props[12] + "," + p.props[13] + ")"), o.textContent = n[t].val, o.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
4622
4622
|
}
|
|
4623
4623
|
P && o && o.setAttribute("d", y);
|
|
4624
4624
|
}
|
|
@@ -4879,8 +4879,8 @@ function requireLottie() {
|
|
|
4879
4879
|
var lumaLoader = function() {
|
|
4880
4880
|
var e = "__lottie_element_luma_buffer", r = null, i = null, s = null;
|
|
4881
4881
|
function a() {
|
|
4882
|
-
var o = createNS("svg"),
|
|
4883
|
-
return
|
|
4882
|
+
var o = createNS("svg"), p = createNS("filter"), y = createNS("feColorMatrix");
|
|
4883
|
+
return p.setAttribute("id", e), y.setAttribute("type", "matrix"), y.setAttribute("color-interpolation-filters", "sRGB"), y.setAttribute("values", "0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"), p.appendChild(y), o.appendChild(p), o.setAttribute("id", e + "_svg"), featureSupport.svgLumaHidden && (o.style.display = "none"), o;
|
|
4884
4884
|
}
|
|
4885
4885
|
function n() {
|
|
4886
4886
|
r || (s = a(), document.body.appendChild(s), r = createTag("canvas"), i = r.getContext("2d"), i.filter = "url(#" + e + ")", i.fillStyle = "rgba(0,0,0,0)", i.fillRect(0, 0, 1, 1));
|
|
@@ -5116,10 +5116,10 @@ function requireLottie() {
|
|
|
5116
5116
|
for (e = 0; e < r; e += 1)
|
|
5117
5117
|
t[e].closed = !0;
|
|
5118
5118
|
}, CVShapeElement.prototype.searchShapes = function(t, e, r, i, s) {
|
|
5119
|
-
var a, n = t.length - 1, l, o,
|
|
5119
|
+
var a, n = t.length - 1, l, o, p = [], y = [], P, u, b, g = [].concat(s);
|
|
5120
5120
|
for (a = n; a >= 0; a -= 1) {
|
|
5121
5121
|
if (P = this.searchProcessedElement(t[a]), P ? e[a] = r[P - 1] : t[a]._shouldRender = i, t[a].ty === "fl" || t[a].ty === "st" || t[a].ty === "gf" || t[a].ty === "gs")
|
|
5122
|
-
P ? e[a].style.closed = !1 : e[a] = this.createStyleElement(t[a], g),
|
|
5122
|
+
P ? e[a].style.closed = !1 : e[a] = this.createStyleElement(t[a], g), p.push(e[a].style);
|
|
5123
5123
|
else if (t[a].ty === "gr") {
|
|
5124
5124
|
if (!P)
|
|
5125
5125
|
e[a] = this.createGroupElement(t[a]);
|
|
@@ -5130,20 +5130,20 @@ function requireLottie() {
|
|
|
5130
5130
|
} else t[a].ty === "tr" ? (P || (b = this.createTransformElement(t[a]), e[a] = b), g.push(e[a]), this.addTransformToStyleList(e[a])) : t[a].ty === "sh" || t[a].ty === "rc" || t[a].ty === "el" || t[a].ty === "sr" ? P || (e[a] = this.createShapeElement(t[a])) : t[a].ty === "tm" || t[a].ty === "rd" || t[a].ty === "pb" || t[a].ty === "zz" || t[a].ty === "op" ? (P ? (u = e[a], u.closed = !1) : (u = ShapeModifiers.getModifier(t[a].ty), u.init(this, t[a]), e[a] = u, this.shapeModifiers.push(u)), y.push(u)) : t[a].ty === "rp" && (P ? (u = e[a], u.closed = !0) : (u = ShapeModifiers.getModifier(t[a].ty), e[a] = u, u.init(this, t, a, e), this.shapeModifiers.push(u), i = !1), y.push(u));
|
|
5131
5131
|
this.addProcessedElement(t[a], a + 1);
|
|
5132
5132
|
}
|
|
5133
|
-
for (this.removeTransformFromStyleList(), this.closeStyles(
|
|
5133
|
+
for (this.removeTransformFromStyleList(), this.closeStyles(p), n = y.length, a = 0; a < n; a += 1)
|
|
5134
5134
|
y[a].closed = !0;
|
|
5135
5135
|
}, CVShapeElement.prototype.renderInnerContent = function() {
|
|
5136
5136
|
this.transformHelper.opacity = 1, this.transformHelper._opMdf = !1, this.renderModifiers(), this.transformsManager.processSequences(this._isFirstFrame), this.renderShape(this.transformHelper, this.shapesData, this.itemsData, !0);
|
|
5137
5137
|
}, CVShapeElement.prototype.renderShapeTransform = function(t, e) {
|
|
5138
5138
|
(t._opMdf || e.op._mdf || this._isFirstFrame) && (e.opacity = t.opacity, e.opacity *= e.op.v, e._opMdf = !0);
|
|
5139
5139
|
}, CVShapeElement.prototype.drawLayer = function() {
|
|
5140
|
-
var t, e = this.stylesList.length, r, i, s, a, n, l, o = this.globalData.renderer,
|
|
5140
|
+
var t, e = this.stylesList.length, r, i, s, a, n, l, o = this.globalData.renderer, p = this.globalData.canvasContext, y, P;
|
|
5141
5141
|
for (t = 0; t < e; t += 1)
|
|
5142
5142
|
if (P = this.stylesList[t], y = P.type, !((y === "st" || y === "gs") && P.wi === 0 || !P.data._shouldRender || P.coOp === 0 || this.globalData.currentGlobalAlpha === 0)) {
|
|
5143
|
-
for (o.save(), n = P.elements, y === "st" || y === "gs" ? (o.ctxStrokeStyle(y === "st" ? P.co : P.grd), o.ctxLineWidth(P.wi), o.ctxLineCap(P.lc), o.ctxLineJoin(P.lj), o.ctxMiterLimit(P.ml || 0)) : o.ctxFillStyle(y === "fl" ? P.co : P.grd), o.ctxOpacity(P.coOp), y !== "st" && y !== "gs" &&
|
|
5144
|
-
for ((y === "st" || y === "gs") && (
|
|
5145
|
-
l[s].t === "m" ?
|
|
5146
|
-
(y === "st" || y === "gs") && (o.ctxStroke(), P.da &&
|
|
5143
|
+
for (o.save(), n = P.elements, y === "st" || y === "gs" ? (o.ctxStrokeStyle(y === "st" ? P.co : P.grd), o.ctxLineWidth(P.wi), o.ctxLineCap(P.lc), o.ctxLineJoin(P.lj), o.ctxMiterLimit(P.ml || 0)) : o.ctxFillStyle(y === "fl" ? P.co : P.grd), o.ctxOpacity(P.coOp), y !== "st" && y !== "gs" && p.beginPath(), o.ctxTransform(P.preTransforms.finalTransform.props), i = n.length, r = 0; r < i; r += 1) {
|
|
5144
|
+
for ((y === "st" || y === "gs") && (p.beginPath(), P.da && (p.setLineDash(P.da), p.lineDashOffset = P.do)), l = n[r].trNodes, a = l.length, s = 0; s < a; s += 1)
|
|
5145
|
+
l[s].t === "m" ? p.moveTo(l[s].p[0], l[s].p[1]) : l[s].t === "c" ? p.bezierCurveTo(l[s].pts[0], l[s].pts[1], l[s].pts[2], l[s].pts[3], l[s].pts[4], l[s].pts[5]) : p.closePath();
|
|
5146
|
+
(y === "st" || y === "gs") && (o.ctxStroke(), P.da && p.setLineDash(this.dashResetter));
|
|
5147
5147
|
}
|
|
5148
5148
|
y !== "st" && y !== "gs" && this.globalData.renderer.ctxFill(P.r), o.restore();
|
|
5149
5149
|
}
|
|
@@ -5158,22 +5158,22 @@ function requireLottie() {
|
|
|
5158
5158
|
r.length = 0;
|
|
5159
5159
|
var o = t.transforms.finalTransform;
|
|
5160
5160
|
for (n = 0; n < l; n += 1) {
|
|
5161
|
-
var
|
|
5162
|
-
if (
|
|
5163
|
-
for (a =
|
|
5161
|
+
var p = i.shapes[n];
|
|
5162
|
+
if (p && p.v) {
|
|
5163
|
+
for (a = p._length, s = 1; s < a; s += 1)
|
|
5164
5164
|
s === 1 && r.push({
|
|
5165
5165
|
t: "m",
|
|
5166
|
-
p: o.applyToPointArray(
|
|
5166
|
+
p: o.applyToPointArray(p.v[0][0], p.v[0][1], 0)
|
|
5167
5167
|
}), r.push({
|
|
5168
5168
|
t: "c",
|
|
5169
|
-
pts: o.applyToTriplePoints(
|
|
5169
|
+
pts: o.applyToTriplePoints(p.o[s - 1], p.i[s], p.v[s])
|
|
5170
5170
|
});
|
|
5171
5171
|
a === 1 && r.push({
|
|
5172
5172
|
t: "m",
|
|
5173
|
-
p: o.applyToPointArray(
|
|
5174
|
-
}),
|
|
5173
|
+
p: o.applyToPointArray(p.v[0][0], p.v[0][1], 0)
|
|
5174
|
+
}), p.c && a && (r.push({
|
|
5175
5175
|
t: "c",
|
|
5176
|
-
pts: o.applyToTriplePoints(
|
|
5176
|
+
pts: o.applyToTriplePoints(p.o[s - 1], p.i[0], p.v[0])
|
|
5177
5177
|
}), r.push({
|
|
5178
5178
|
t: "z"
|
|
5179
5179
|
}));
|
|
@@ -5197,14 +5197,14 @@ function requireLottie() {
|
|
|
5197
5197
|
if (t.t === 1)
|
|
5198
5198
|
s = a.createLinearGradient(n[0], n[1], l[0], l[1]);
|
|
5199
5199
|
else {
|
|
5200
|
-
var o = Math.sqrt(Math.pow(n[0] - l[0], 2) + Math.pow(n[1] - l[1], 2)),
|
|
5200
|
+
var o = Math.sqrt(Math.pow(n[0] - l[0], 2) + Math.pow(n[1] - l[1], 2)), p = Math.atan2(l[1] - n[1], l[0] - n[0]), y = e.h.v;
|
|
5201
5201
|
y >= 1 ? y = 0.99 : y <= -1 && (y = -0.99);
|
|
5202
|
-
var P = o * y, u = Math.cos(
|
|
5202
|
+
var P = o * y, u = Math.cos(p + e.a.v) * P + n[0], b = Math.sin(p + e.a.v) * P + n[1];
|
|
5203
5203
|
s = a.createRadialGradient(u, b, 0, n[0], n[1], o);
|
|
5204
5204
|
}
|
|
5205
|
-
var g, d = t.g.p, C = e.g.c,
|
|
5205
|
+
var g, d = t.g.p, C = e.g.c, c = 1;
|
|
5206
5206
|
for (g = 0; g < d; g += 1)
|
|
5207
|
-
e.g._hasOpacity && e.g._collapsable && (
|
|
5207
|
+
e.g._hasOpacity && e.g._collapsable && (c = e.g.o[g * 2 + 1]), s.addColorStop(C[g * 4] / 100, "rgba(" + C[g * 4 + 1] + "," + C[g * 4 + 2] + "," + C[g * 4 + 3] + "," + c + ")");
|
|
5208
5208
|
i.grd = s;
|
|
5209
5209
|
}
|
|
5210
5210
|
i.coOp = e.o.v * r.opacity;
|
|
@@ -5231,15 +5231,15 @@ function requireLottie() {
|
|
|
5231
5231
|
t.sc && (r = !0, this.values.stroke = this.buildColor(t.sc), this.values.sWidth = t.sw);
|
|
5232
5232
|
var i = this.globalData.fontManager.getFontByName(t.f), s, a, n = t.l, l = this.mHelper;
|
|
5233
5233
|
this.stroke = r, this.values.fValue = t.finalSize + "px " + this.globalData.fontManager.getFontByName(t.f).fFamily, a = t.finalText.length;
|
|
5234
|
-
var o,
|
|
5234
|
+
var o, p, y, P, u, b, g, d, C, c, m = this.data.singleShape, f = t.tr * 1e-3 * t.finalSize, x = 0, E = 0, A = !0, T = 0;
|
|
5235
5235
|
for (s = 0; s < a; s += 1) {
|
|
5236
|
-
o = this.globalData.fontManager.getCharData(t.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily),
|
|
5236
|
+
o = this.globalData.fontManager.getCharData(t.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), p = o && o.data || {}, l.reset(), m && n[s].n && (x = -f, E += t.yOffset, E += A ? 1 : 0, A = !1), u = p.shapes ? p.shapes[0].it : [], g = u.length, l.scale(t.finalSize / 100, t.finalSize / 100), m && this.applyTextPropertiesToMatrix(t, l, n[s].line, x, E), C = createSizedArray(g - 1);
|
|
5237
5237
|
var I = 0;
|
|
5238
5238
|
for (b = 0; b < g; b += 1)
|
|
5239
5239
|
if (u[b].ty === "sh") {
|
|
5240
|
-
for (P = u[b].ks.k.i.length, d = u[b].ks.k,
|
|
5241
|
-
y === 1 &&
|
|
5242
|
-
|
|
5240
|
+
for (P = u[b].ks.k.i.length, d = u[b].ks.k, c = [], y = 1; y < P; y += 1)
|
|
5241
|
+
y === 1 && c.push(l.applyToX(d.v[0][0], d.v[0][1], 0), l.applyToY(d.v[0][0], d.v[0][1], 0)), c.push(l.applyToX(d.o[y - 1][0], d.o[y - 1][1], 0), l.applyToY(d.o[y - 1][0], d.o[y - 1][1], 0), l.applyToX(d.i[y][0], d.i[y][1], 0), l.applyToY(d.i[y][0], d.i[y][1], 0), l.applyToX(d.v[y][0], d.v[y][1], 0), l.applyToY(d.v[y][0], d.v[y][1], 0));
|
|
5242
|
+
c.push(l.applyToX(d.o[y - 1][0], d.o[y - 1][1], 0), l.applyToY(d.o[y - 1][0], d.o[y - 1][1], 0), l.applyToX(d.i[0][0], d.i[0][1], 0), l.applyToY(d.i[0][0], d.i[0][1], 0), l.applyToX(d.v[0][0], d.v[0][1], 0), l.applyToY(d.v[0][0], d.v[0][1], 0)), C[I] = c, I += 1;
|
|
5243
5243
|
}
|
|
5244
5244
|
m && (x += n[s].l, x += f), this.textSpans[T] ? this.textSpans[T].elem = C : this.textSpans[T] = {
|
|
5245
5245
|
elem: C
|
|
@@ -5251,22 +5251,22 @@ function requireLottie() {
|
|
|
5251
5251
|
t.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);
|
|
5252
5252
|
var e, r, i, s, a, n, l = this.textAnimator.renderedLetters, o = this.textProperty.currentData.l;
|
|
5253
5253
|
r = o.length;
|
|
5254
|
-
var
|
|
5254
|
+
var p, y = null, P = null, u = null, b, g, d = this.globalData.renderer;
|
|
5255
5255
|
for (e = 0; e < r; e += 1)
|
|
5256
5256
|
if (!o[e].n) {
|
|
5257
|
-
if (
|
|
5258
|
-
for (
|
|
5257
|
+
if (p = l[e], p && (d.save(), d.ctxTransform(p.p), d.ctxOpacity(p.o)), this.fill) {
|
|
5258
|
+
for (p && p.fc ? y !== p.fc && (d.ctxFillStyle(p.fc), y = p.fc) : y !== this.values.fill && (y = this.values.fill, d.ctxFillStyle(this.values.fill)), b = this.textSpans[e].elem, s = b.length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
|
|
5259
5259
|
for (g = b[i], n = g.length, this.globalData.canvasContext.moveTo(g[0], g[1]), a = 2; a < n; a += 6)
|
|
5260
5260
|
this.globalData.canvasContext.bezierCurveTo(g[a], g[a + 1], g[a + 2], g[a + 3], g[a + 4], g[a + 5]);
|
|
5261
5261
|
this.globalData.canvasContext.closePath(), d.ctxFill();
|
|
5262
5262
|
}
|
|
5263
5263
|
if (this.stroke) {
|
|
5264
|
-
for (
|
|
5264
|
+
for (p && p.sw ? u !== p.sw && (u = p.sw, d.ctxLineWidth(p.sw)) : u !== this.values.sWidth && (u = this.values.sWidth, d.ctxLineWidth(this.values.sWidth)), p && p.sc ? P !== p.sc && (P = p.sc, d.ctxStrokeStyle(p.sc)) : P !== this.values.stroke && (P = this.values.stroke, d.ctxStrokeStyle(this.values.stroke)), b = this.textSpans[e].elem, s = b.length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
|
|
5265
5265
|
for (g = b[i], n = g.length, this.globalData.canvasContext.moveTo(g[0], g[1]), a = 2; a < n; a += 6)
|
|
5266
5266
|
this.globalData.canvasContext.bezierCurveTo(g[a], g[a + 1], g[a + 2], g[a + 3], g[a + 4], g[a + 5]);
|
|
5267
5267
|
this.globalData.canvasContext.closePath(), d.ctxStroke();
|
|
5268
5268
|
}
|
|
5269
|
-
|
|
5269
|
+
p && this.globalData.renderer.restore();
|
|
5270
5270
|
}
|
|
5271
5271
|
};
|
|
5272
5272
|
function CVImageElement(t, e, r) {
|
|
@@ -5359,8 +5359,8 @@ function requireLottie() {
|
|
|
5359
5359
|
t ? (r = t, i = e, this.canvasContext.canvas.width = r, this.canvasContext.canvas.height = i) : (this.animationItem.wrapper && this.animationItem.container ? (r = this.animationItem.wrapper.offsetWidth, i = this.animationItem.wrapper.offsetHeight) : (r = this.canvasContext.canvas.width, i = this.canvasContext.canvas.height), this.canvasContext.canvas.width = r * this.renderConfig.dpr, this.canvasContext.canvas.height = i * this.renderConfig.dpr);
|
|
5360
5360
|
var s, a;
|
|
5361
5361
|
if (this.renderConfig.preserveAspectRatio.indexOf("meet") !== -1 || this.renderConfig.preserveAspectRatio.indexOf("slice") !== -1) {
|
|
5362
|
-
var n = this.renderConfig.preserveAspectRatio.split(" "), l = n[1] || "meet", o = n[0] || "xMidYMid",
|
|
5363
|
-
s = r / i, a = this.transformCanvas.w / this.transformCanvas.h, a > s && l === "meet" || a < s && l === "slice" ? (this.transformCanvas.sx = r / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = r / (this.transformCanvas.w / this.renderConfig.dpr)) : (this.transformCanvas.sx = i / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.sy = i / (this.transformCanvas.h / this.renderConfig.dpr)),
|
|
5362
|
+
var n = this.renderConfig.preserveAspectRatio.split(" "), l = n[1] || "meet", o = n[0] || "xMidYMid", p = o.substr(0, 4), y = o.substr(4);
|
|
5363
|
+
s = r / i, a = this.transformCanvas.w / this.transformCanvas.h, a > s && l === "meet" || a < s && l === "slice" ? (this.transformCanvas.sx = r / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = r / (this.transformCanvas.w / this.renderConfig.dpr)) : (this.transformCanvas.sx = i / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.sy = i / (this.transformCanvas.h / this.renderConfig.dpr)), p === "xMid" && (a < s && l === "meet" || a > s && l === "slice") ? this.transformCanvas.tx = (r - this.transformCanvas.w * (i / this.transformCanvas.h)) / 2 * this.renderConfig.dpr : p === "xMax" && (a < s && l === "meet" || a > s && l === "slice") ? this.transformCanvas.tx = (r - this.transformCanvas.w * (i / this.transformCanvas.h)) * this.renderConfig.dpr : this.transformCanvas.tx = 0, y === "YMid" && (a > s && l === "meet" || a < s && l === "slice") ? this.transformCanvas.ty = (i - this.transformCanvas.h * (r / this.transformCanvas.w)) / 2 * this.renderConfig.dpr : y === "YMax" && (a > s && l === "meet" || a < s && l === "slice") ? this.transformCanvas.ty = (i - this.transformCanvas.h * (r / this.transformCanvas.w)) * this.renderConfig.dpr : this.transformCanvas.ty = 0;
|
|
5364
5364
|
} else this.renderConfig.preserveAspectRatio === "none" ? (this.transformCanvas.sx = r / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = i / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.tx = 0, this.transformCanvas.ty = 0) : (this.transformCanvas.sx = this.renderConfig.dpr, this.transformCanvas.sy = this.renderConfig.dpr, this.transformCanvas.tx = 0, this.transformCanvas.ty = 0);
|
|
5365
5365
|
this.transformCanvas.props = [this.transformCanvas.sx, 0, 0, 0, 0, this.transformCanvas.sy, 0, 0, 0, 0, 1, 0, this.transformCanvas.tx, this.transformCanvas.ty, 0, 1], this.ctxTransform(this.transformCanvas.props), this.canvasContext.beginPath(), this.canvasContext.rect(0, 0, this.transformCanvas.w, this.transformCanvas.h), this.canvasContext.closePath(), this.canvasContext.clip(), this.renderFrame(this.renderedFrame, !0);
|
|
5366
5366
|
}, CanvasRendererBase.prototype.destroy = function() {
|
|
@@ -5573,11 +5573,11 @@ function requireLottie() {
|
|
|
5573
5573
|
e = t[r].mProps.v.applyToPointArray(e[0], e[1], 0);
|
|
5574
5574
|
return e;
|
|
5575
5575
|
}, HShapeElement.prototype.calculateShapeBoundingBox = function(t, e) {
|
|
5576
|
-
var r = t.sh.v, i = t.transformers, s, a = r._length, n, l, o,
|
|
5576
|
+
var r = t.sh.v, i = t.transformers, s, a = r._length, n, l, o, p;
|
|
5577
5577
|
if (!(a <= 1)) {
|
|
5578
5578
|
for (s = 0; s < a - 1; s += 1)
|
|
5579
|
-
n = this.getTransformedPoint(i, r.v[s]), l = this.getTransformedPoint(i, r.o[s]), o = this.getTransformedPoint(i, r.i[s + 1]),
|
|
5580
|
-
r.c && (n = this.getTransformedPoint(i, r.v[s]), l = this.getTransformedPoint(i, r.o[s]), o = this.getTransformedPoint(i, r.i[0]),
|
|
5579
|
+
n = this.getTransformedPoint(i, r.v[s]), l = this.getTransformedPoint(i, r.o[s]), o = this.getTransformedPoint(i, r.i[s + 1]), p = this.getTransformedPoint(i, r.v[s + 1]), this.checkBounds(n, l, o, p, e);
|
|
5580
|
+
r.c && (n = this.getTransformedPoint(i, r.v[s]), l = this.getTransformedPoint(i, r.o[s]), o = this.getTransformedPoint(i, r.i[0]), p = this.getTransformedPoint(i, r.v[0]), this.checkBounds(n, l, o, p, e));
|
|
5581
5581
|
}
|
|
5582
5582
|
}, HShapeElement.prototype.checkBounds = function(t, e, r, i, s) {
|
|
5583
5583
|
this.getBoundsOfCurve(t, e, r, i);
|
|
@@ -5596,8 +5596,8 @@ function requireLottie() {
|
|
|
5596
5596
|
width: 0,
|
|
5597
5597
|
height: 0
|
|
5598
5598
|
}, HShapeElement.prototype.getBoundsOfCurve = function(t, e, r, i) {
|
|
5599
|
-
for (var s = [[t[0], i[0]], [t[1], i[1]]], a, n, l, o,
|
|
5600
|
-
n = 6 * t[u] - 12 * e[u] + 6 * r[u], a = -3 * t[u] + 9 * e[u] - 9 * r[u] + 3 * i[u], l = 3 * e[u] - 3 * t[u], n |= 0, a |= 0, l |= 0, a === 0 && n === 0 || (a === 0 ? (o = -l / n, o > 0 && o < 1 && s[u].push(this.calculateF(o, t, e, r, i, u))) : (
|
|
5599
|
+
for (var s = [[t[0], i[0]], [t[1], i[1]]], a, n, l, o, p, y, P, u = 0; u < 2; ++u)
|
|
5600
|
+
n = 6 * t[u] - 12 * e[u] + 6 * r[u], a = -3 * t[u] + 9 * e[u] - 9 * r[u] + 3 * i[u], l = 3 * e[u] - 3 * t[u], n |= 0, a |= 0, l |= 0, a === 0 && n === 0 || (a === 0 ? (o = -l / n, o > 0 && o < 1 && s[u].push(this.calculateF(o, t, e, r, i, u))) : (p = n * n - 4 * l * a, p >= 0 && (y = (-n + bmSqrt(p)) / (2 * a), y > 0 && y < 1 && s[u].push(this.calculateF(y, t, e, r, i, u)), P = (-n - bmSqrt(p)) / (2 * a), P > 0 && P < 1 && s[u].push(this.calculateF(P, t, e, r, i, u)))));
|
|
5601
5601
|
this.shapeBoundingBox.left = bmMin.apply(null, s[0]), this.shapeBoundingBox.top = bmMin.apply(null, s[1]), this.shapeBoundingBox.right = bmMax.apply(null, s[0]), this.shapeBoundingBox.bottom = bmMax.apply(null, s[1]);
|
|
5602
5602
|
}, HShapeElement.prototype.calculateF = function(t, e, r, i, s, a) {
|
|
5603
5603
|
return bmPow(1 - t, 3) * e[a] + 3 * bmPow(1 - t, 2) * t * r[a] + 3 * (1 - t) * bmPow(t, 2) * i[a] + bmPow(t, 3) * s[a];
|
|
@@ -5663,14 +5663,14 @@ function requireLottie() {
|
|
|
5663
5663
|
}
|
|
5664
5664
|
var n, l, o = t.l;
|
|
5665
5665
|
l = o.length;
|
|
5666
|
-
var
|
|
5666
|
+
var p, y, P, u = this.mHelper, b, g = "", d = 0;
|
|
5667
5667
|
for (n = 0; n < l; n += 1) {
|
|
5668
|
-
if (this.globalData.fontManager.chars ? (this.textPaths[d] ?
|
|
5669
|
-
var C = this.globalData.fontManager.getCharData(t.finalText[n], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily),
|
|
5670
|
-
if (C ?
|
|
5671
|
-
this.innerElem.appendChild(
|
|
5668
|
+
if (this.globalData.fontManager.chars ? (this.textPaths[d] ? p = this.textPaths[d] : (p = createNS("path"), p.setAttribute("stroke-linecap", lineCapEnum[1]), p.setAttribute("stroke-linejoin", lineJoinEnum[2]), p.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[d] ? (y = this.textSpans[d], P = y.children[0]) : (y = createTag("div"), y.style.lineHeight = 0, P = createNS("svg"), P.appendChild(p), styleDiv(y)))) : this.isMasked ? p = this.textPaths[d] ? this.textPaths[d] : createNS("text") : this.textSpans[d] ? (y = this.textSpans[d], p = this.textPaths[d]) : (y = createTag("span"), styleDiv(y), p = createTag("span"), styleDiv(p), y.appendChild(p)), this.globalData.fontManager.chars) {
|
|
5669
|
+
var C = this.globalData.fontManager.getCharData(t.finalText[n], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), c;
|
|
5670
|
+
if (C ? c = C.data : c = null, u.reset(), c && c.shapes && c.shapes.length && (b = c.shapes[0].it, u.scale(t.finalSize / 100, t.finalSize / 100), g = this.createPathShape(u, b), p.setAttribute("d", g)), this.isMasked)
|
|
5671
|
+
this.innerElem.appendChild(p);
|
|
5672
5672
|
else {
|
|
5673
|
-
if (this.innerElem.appendChild(y),
|
|
5673
|
+
if (this.innerElem.appendChild(y), c && c.shapes) {
|
|
5674
5674
|
document.body.appendChild(P);
|
|
5675
5675
|
var m = P.getBBox();
|
|
5676
5676
|
P.setAttribute("width", m.width + 2), P.setAttribute("height", m.height + 2), P.setAttribute("viewBox", m.x - 1 + " " + (m.y - 1) + " " + (m.width + 2) + " " + (m.height + 2));
|
|
@@ -5680,14 +5680,14 @@ function requireLottie() {
|
|
|
5680
5680
|
P.setAttribute("width", 1), P.setAttribute("height", 1);
|
|
5681
5681
|
y.appendChild(P);
|
|
5682
5682
|
}
|
|
5683
|
-
} else if (
|
|
5684
|
-
this.innerElem.appendChild(
|
|
5683
|
+
} else if (p.textContent = o[n].val, p.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), this.isMasked)
|
|
5684
|
+
this.innerElem.appendChild(p);
|
|
5685
5685
|
else {
|
|
5686
5686
|
this.innerElem.appendChild(y);
|
|
5687
|
-
var E =
|
|
5687
|
+
var E = p.style, A = "translate3d(0," + -t.finalSize / 1.2 + "px,0)";
|
|
5688
5688
|
E.transform = A, E.webkitTransform = A;
|
|
5689
5689
|
}
|
|
5690
|
-
this.isMasked ? this.textSpans[d] =
|
|
5690
|
+
this.isMasked ? this.textSpans[d] = p : this.textSpans[d] = y, this.textSpans[d].style.display = "block", this.textPaths[d] = p, d += 1;
|
|
5691
5691
|
}
|
|
5692
5692
|
for (; d < this.textSpans.length; )
|
|
5693
5693
|
this.textSpans[d].style.display = "none", d += 1;
|
|
@@ -5706,9 +5706,9 @@ function requireLottie() {
|
|
|
5706
5706
|
if (this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag), !(!this.lettersChangedFlag && !this.textAnimator.lettersChangedFlag)) {
|
|
5707
5707
|
var r, i, s = 0, a = this.textAnimator.renderedLetters, n = this.textProperty.currentData.l;
|
|
5708
5708
|
i = n.length;
|
|
5709
|
-
var l, o,
|
|
5709
|
+
var l, o, p;
|
|
5710
5710
|
for (r = 0; r < i; r += 1)
|
|
5711
|
-
n[r].n ? s += 1 : (o = this.textSpans[r],
|
|
5711
|
+
n[r].n ? s += 1 : (o = this.textSpans[r], p = this.textPaths[r], l = a[s], s += 1, l._mdf.m && (this.isMasked ? o.setAttribute("transform", l.m) : (o.style.webkitTransform = l.m, o.style.transform = l.m)), o.style.opacity = l.o, l.sw && l._mdf.sw && p.setAttribute("stroke-width", l.sw), l.sc && l._mdf.sc && p.setAttribute("stroke", l.sc), l.fc && l._mdf.fc && (p.setAttribute("fill", l.fc), p.style.color = l.fc));
|
|
5712
5712
|
if (this.innerElem.getBBox && !this.hidden && (this._isFirstFrame || this._mdf)) {
|
|
5713
5713
|
var y = this.innerElem.getBBox();
|
|
5714
5714
|
this.currentBBox.w !== y.width && (this.currentBBox.w = y.width, this.svgElement.setAttribute("width", y.width)), this.currentBBox.h !== y.height && (this.currentBBox.h = y.height, this.svgElement.setAttribute("height", y.height));
|
|
@@ -5757,8 +5757,8 @@ function requireLottie() {
|
|
|
5757
5757
|
if (this.p ? this.mat.translate(-this.p.v[0], -this.p.v[1], this.p.v[2]) : this.mat.translate(-this.px.v, -this.py.v, this.pz.v), this.a) {
|
|
5758
5758
|
var s;
|
|
5759
5759
|
this.p ? s = [this.p.v[0] - this.a.v[0], this.p.v[1] - this.a.v[1], this.p.v[2] - this.a.v[2]] : s = [this.px.v - this.a.v[0], this.py.v - this.a.v[1], this.pz.v - this.a.v[2]];
|
|
5760
|
-
var a = Math.sqrt(Math.pow(s[0], 2) + Math.pow(s[1], 2) + Math.pow(s[2], 2)), n = [s[0] / a, s[1] / a, s[2] / a], l = Math.sqrt(n[2] * n[2] + n[0] * n[0]), o = Math.atan2(n[1], l),
|
|
5761
|
-
this.mat.rotateY(
|
|
5760
|
+
var a = Math.sqrt(Math.pow(s[0], 2) + Math.pow(s[1], 2) + Math.pow(s[2], 2)), n = [s[0] / a, s[1] / a, s[2] / a], l = Math.sqrt(n[2] * n[2] + n[0] * n[0]), o = Math.atan2(n[1], l), p = Math.atan2(n[0], -n[2]);
|
|
5761
|
+
this.mat.rotateY(p).rotateX(-o);
|
|
5762
5762
|
}
|
|
5763
5763
|
this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v), this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]), this.mat.translate(this.globalData.compSize.w / 2, this.globalData.compSize.h / 2, 0), this.mat.translate(0, 0, this.pe.v);
|
|
5764
5764
|
var y = !this._prevMat.equals(this.mat);
|
|
@@ -5979,25 +5979,25 @@ function requireLottie() {
|
|
|
5979
5979
|
}, _typeof$2(t);
|
|
5980
5980
|
}
|
|
5981
5981
|
function seedRandom(t, e) {
|
|
5982
|
-
var r = this, i = 256, s = 6, a = 52, n = "random", l = e.pow(i, s), o = e.pow(2, a),
|
|
5982
|
+
var r = this, i = 256, s = 6, a = 52, n = "random", l = e.pow(i, s), o = e.pow(2, a), p = o * 2, y = i - 1, P;
|
|
5983
5983
|
function u(f, x, E) {
|
|
5984
5984
|
var A = [];
|
|
5985
5985
|
x = x === !0 ? {
|
|
5986
5986
|
entropy: !0
|
|
5987
5987
|
} : x || {};
|
|
5988
|
-
var T = C(d(x.entropy ? [f, m(t)] : f === null ?
|
|
5989
|
-
for (var G = I.g(s), B = l,
|
|
5990
|
-
G = (G +
|
|
5991
|
-
for (; G >=
|
|
5992
|
-
G /= 2, B /= 2,
|
|
5993
|
-
return (G +
|
|
5988
|
+
var T = C(d(x.entropy ? [f, m(t)] : f === null ? c() : f, 3), A), I = new b(A), D = function() {
|
|
5989
|
+
for (var G = I.g(s), B = l, z = 0; G < o; )
|
|
5990
|
+
G = (G + z) * i, B *= i, z = I.g(1);
|
|
5991
|
+
for (; G >= p; )
|
|
5992
|
+
G /= 2, B /= 2, z >>>= 1;
|
|
5993
|
+
return (G + z) / B;
|
|
5994
5994
|
};
|
|
5995
5995
|
return D.int32 = function() {
|
|
5996
5996
|
return I.g(4) | 0;
|
|
5997
5997
|
}, D.quick = function() {
|
|
5998
5998
|
return I.g(4) / 4294967296;
|
|
5999
|
-
}, D.double = D, C(m(I.S), t), (x.pass || E || function(H, G, B,
|
|
6000
|
-
return
|
|
5999
|
+
}, D.double = D, C(m(I.S), t), (x.pass || E || function(H, G, B, z) {
|
|
6000
|
+
return z && (z.S && g(z, I), H.state = function() {
|
|
6001
6001
|
return g(I, {});
|
|
6002
6002
|
}), B ? (e[n] = H, G) : H;
|
|
6003
6003
|
})(D, T, "global" in x ? x.global : this == e, x.state);
|
|
@@ -6010,9 +6010,9 @@ function requireLottie() {
|
|
|
6010
6010
|
for (T = 0; T < i; T++)
|
|
6011
6011
|
D[T] = D[I = y & I + f[T % E] + (x = D[T])], D[I] = x;
|
|
6012
6012
|
A.g = function(H) {
|
|
6013
|
-
for (var G, B = 0,
|
|
6014
|
-
G = L[
|
|
6015
|
-
return A.i =
|
|
6013
|
+
for (var G, B = 0, z = A.i, j = A.j, L = A.S; H--; )
|
|
6014
|
+
G = L[z = y & z + 1], B = B * i + L[y & (L[z] = L[j = y & j + G]) + (L[j] = G)];
|
|
6015
|
+
return A.i = z, A.j = j, B;
|
|
6016
6016
|
};
|
|
6017
6017
|
}
|
|
6018
6018
|
function g(f, x) {
|
|
@@ -6033,7 +6033,7 @@ function requireLottie() {
|
|
|
6033
6033
|
x[y & T] = y & (A ^= x[y & T] * 19) + E.charCodeAt(T++);
|
|
6034
6034
|
return m(x);
|
|
6035
6035
|
}
|
|
6036
|
-
function
|
|
6036
|
+
function c() {
|
|
6037
6037
|
try {
|
|
6038
6038
|
var f = new Uint8Array(i);
|
|
6039
6039
|
return (r.crypto || r.msCrypto).getRandomValues(f), m(f);
|
|
@@ -6187,16 +6187,16 @@ function requireLottie() {
|
|
|
6187
6187
|
if (s === a)
|
|
6188
6188
|
n = 0, l = 0;
|
|
6189
6189
|
else {
|
|
6190
|
-
var
|
|
6191
|
-
switch (l = o > 0.5 ?
|
|
6190
|
+
var p = s - a;
|
|
6191
|
+
switch (l = o > 0.5 ? p / (2 - s - a) : p / (s + a), s) {
|
|
6192
6192
|
case e:
|
|
6193
|
-
n = (r - i) /
|
|
6193
|
+
n = (r - i) / p + (r < i ? 6 : 0);
|
|
6194
6194
|
break;
|
|
6195
6195
|
case r:
|
|
6196
|
-
n = (i - e) /
|
|
6196
|
+
n = (i - e) / p + 2;
|
|
6197
6197
|
break;
|
|
6198
6198
|
case i:
|
|
6199
|
-
n = (e - r) /
|
|
6199
|
+
n = (e - r) / p + 4;
|
|
6200
6200
|
break;
|
|
6201
6201
|
}
|
|
6202
6202
|
n /= 6;
|
|
@@ -6228,10 +6228,10 @@ function requireLottie() {
|
|
|
6228
6228
|
var n = r === e ? 0 : (t - e) / (r - e);
|
|
6229
6229
|
if (!i.length)
|
|
6230
6230
|
return i + (s - i) * n;
|
|
6231
|
-
var l, o = i.length,
|
|
6231
|
+
var l, o = i.length, p = createTypedArray("float32", o);
|
|
6232
6232
|
for (l = 0; l < o; l += 1)
|
|
6233
|
-
|
|
6234
|
-
return
|
|
6233
|
+
p[l] = i[l] + (s[l] - i[l]) * n;
|
|
6234
|
+
return p;
|
|
6235
6235
|
}
|
|
6236
6236
|
function random(t, e) {
|
|
6237
6237
|
if (e === void 0 && (t === void 0 ? (t = 0, e = 1) : (e = t, t = void 0)), e.length) {
|
|
@@ -6249,9 +6249,9 @@ function requireLottie() {
|
|
|
6249
6249
|
function createPath(t, e, r, i) {
|
|
6250
6250
|
var s, a = t.length, n = shapePool.newElement();
|
|
6251
6251
|
n.setPathData(!!i, a);
|
|
6252
|
-
var l = [0, 0], o,
|
|
6252
|
+
var l = [0, 0], o, p;
|
|
6253
6253
|
for (s = 0; s < a; s += 1)
|
|
6254
|
-
o = e && e[s] ? e[s] : l,
|
|
6254
|
+
o = e && e[s] ? e[s] : l, p = r && r[s] ? r[s] : l, n.setTripleAt(t[s][0], t[s][1], p[0] + t[s][0], p[1] + t[s][1], o[0] + t[s][0], o[1] + t[s][1], s, !0);
|
|
6255
6255
|
return n;
|
|
6256
6256
|
}
|
|
6257
6257
|
function initiateExpression(elem, data, property) {
|
|
@@ -6275,13 +6275,13 @@ function requireLottie() {
|
|
|
6275
6275
|
n[s] += -r + r * 2 * BMMath.random();
|
|
6276
6276
|
i += 1;
|
|
6277
6277
|
}
|
|
6278
|
-
var o = time * e,
|
|
6278
|
+
var o = time * e, p = o - Math.floor(o), y = createTypedArray("float32", a);
|
|
6279
6279
|
if (a > 1) {
|
|
6280
6280
|
for (s = 0; s < a; s += 1)
|
|
6281
|
-
y[s] = this.pv[s] + n[s] + (-r + r * 2 * BMMath.random()) *
|
|
6281
|
+
y[s] = this.pv[s] + n[s] + (-r + r * 2 * BMMath.random()) * p;
|
|
6282
6282
|
return y;
|
|
6283
6283
|
}
|
|
6284
|
-
return this.pv + n[0] + (-r + r * 2 * BMMath.random()) *
|
|
6284
|
+
return this.pv + n[0] + (-r + r * 2 * BMMath.random()) * p;
|
|
6285
6285
|
}).bind(this);
|
|
6286
6286
|
thisProperty.loopIn && (loopIn = thisProperty.loopIn.bind(thisProperty), loop_in = loopIn), thisProperty.loopOut && (loopOut = thisProperty.loopOut.bind(thisProperty), loop_out = loopOut), thisProperty.smooth && (smooth = thisProperty.smooth.bind(thisProperty));
|
|
6287
6287
|
function loopInDuration(t, e) {
|
|
@@ -6309,10 +6309,10 @@ function requireLottie() {
|
|
|
6309
6309
|
s === void 0 ? (s = r, a = i) : e = (e - r) / (i - r), e > 1 ? e = 1 : e < 0 && (e = 0);
|
|
6310
6310
|
var n = t(e);
|
|
6311
6311
|
if ($bm_isInstanceOfArray(s)) {
|
|
6312
|
-
var l, o = s.length,
|
|
6312
|
+
var l, o = s.length, p = createTypedArray("float32", o);
|
|
6313
6313
|
for (l = 0; l < o; l += 1)
|
|
6314
|
-
|
|
6315
|
-
return
|
|
6314
|
+
p[l] = (a[l] - s[l]) * n + s[l];
|
|
6315
|
+
return p;
|
|
6316
6316
|
}
|
|
6317
6317
|
return (a - s) * n + s;
|
|
6318
6318
|
}
|
|
@@ -6388,13 +6388,13 @@ function requireLottie() {
|
|
|
6388
6388
|
function n() {
|
|
6389
6389
|
i -= 1, i === 0 && o();
|
|
6390
6390
|
}
|
|
6391
|
-
function l(
|
|
6392
|
-
s.indexOf(
|
|
6391
|
+
function l(p) {
|
|
6392
|
+
s.indexOf(p) === -1 && s.push(p);
|
|
6393
6393
|
}
|
|
6394
6394
|
function o() {
|
|
6395
|
-
var
|
|
6396
|
-
for (
|
|
6397
|
-
s[
|
|
6395
|
+
var p, y = s.length;
|
|
6396
|
+
for (p = 0; p < y; p += 1)
|
|
6397
|
+
s[p].release();
|
|
6398
6398
|
s.length = 0;
|
|
6399
6399
|
}
|
|
6400
6400
|
r.renderer.compInterface = CompExpressionInterface(r.renderer), r.renderer.globalData.projectInterface.registerComposition(r.renderer), r.renderer.globalData.pushExpression = a, r.renderer.globalData.popExpression = n, r.renderer.globalData.registerExpressionProperty = l;
|
|
@@ -6417,9 +6417,9 @@ function requireLottie() {
|
|
|
6417
6417
|
var s = createSizedArray(i.viewData.length), a, n = i.viewData.length;
|
|
6418
6418
|
for (a = 0; a < n; a += 1)
|
|
6419
6419
|
s[a] = new t(i.viewData[a], i.masksProperties[a]);
|
|
6420
|
-
var l = function(
|
|
6420
|
+
var l = function(p) {
|
|
6421
6421
|
for (a = 0; a < n; ) {
|
|
6422
|
-
if (i.masksProperties[a].nm ===
|
|
6422
|
+
if (i.masksProperties[a].nm === p)
|
|
6423
6423
|
return s[a];
|
|
6424
6424
|
a += 1;
|
|
6425
6425
|
}
|
|
@@ -6443,30 +6443,30 @@ function requireLottie() {
|
|
|
6443
6443
|
get: function() {
|
|
6444
6444
|
return l.getVelocityAtTime(l.comp.currentFrame);
|
|
6445
6445
|
}
|
|
6446
|
-
}), n.numKeys = l.keyframes ? l.keyframes.length : 0, n.key = function(
|
|
6446
|
+
}), n.numKeys = l.keyframes ? l.keyframes.length : 0, n.key = function(p) {
|
|
6447
6447
|
if (!n.numKeys)
|
|
6448
6448
|
return 0;
|
|
6449
6449
|
var y = "";
|
|
6450
|
-
"s" in l.keyframes[
|
|
6450
|
+
"s" in l.keyframes[p - 1] ? y = l.keyframes[p - 1].s : "e" in l.keyframes[p - 2] ? y = l.keyframes[p - 2].e : y = l.keyframes[p - 2].s;
|
|
6451
6451
|
var P = o === "unidimensional" ? new Number(y) : Object.assign({}, y);
|
|
6452
|
-
return P.time = l.keyframes[
|
|
6452
|
+
return P.time = l.keyframes[p - 1].t / l.elem.comp.globalData.frameRate, P.value = o === "unidimensional" ? y[0] : y, P;
|
|
6453
6453
|
}, n.valueAtTime = l.getValueAtTime, n.speedAtTime = l.getSpeedAtTime, n.velocityAtTime = l.getVelocityAtTime, n.propertyGroup = l.propertyGroup;
|
|
6454
6454
|
}
|
|
6455
6455
|
function i(n) {
|
|
6456
6456
|
(!n || !("pv" in n)) && (n = t);
|
|
6457
|
-
var l = 1 / n.mult, o = n.pv * l,
|
|
6458
|
-
return
|
|
6459
|
-
return n.k && n.getValue(), o = n.v * l,
|
|
6457
|
+
var l = 1 / n.mult, o = n.pv * l, p = new Number(o);
|
|
6458
|
+
return p.value = o, r(p, n, "unidimensional"), function() {
|
|
6459
|
+
return n.k && n.getValue(), o = n.v * l, p.value !== o && (p = new Number(o), p.value = o, r(p, n, "unidimensional")), p;
|
|
6460
6460
|
};
|
|
6461
6461
|
}
|
|
6462
6462
|
function s(n) {
|
|
6463
6463
|
(!n || !("pv" in n)) && (n = e);
|
|
6464
|
-
var l = 1 / n.mult, o = n.data && n.data.l || n.pv.length,
|
|
6465
|
-
return
|
|
6464
|
+
var l = 1 / n.mult, o = n.data && n.data.l || n.pv.length, p = createTypedArray("float32", o), y = createTypedArray("float32", o);
|
|
6465
|
+
return p.value = y, r(p, n, "multidimensional"), function() {
|
|
6466
6466
|
n.k && n.getValue();
|
|
6467
6467
|
for (var P = 0; P < o; P += 1)
|
|
6468
|
-
y[P] = n.v[P] * l,
|
|
6469
|
-
return
|
|
6468
|
+
y[P] = n.v[P] * l, p[P] = y[P];
|
|
6469
|
+
return p;
|
|
6470
6470
|
};
|
|
6471
6471
|
}
|
|
6472
6472
|
function a() {
|
|
@@ -6554,10 +6554,10 @@ function requireLottie() {
|
|
|
6554
6554
|
}), e;
|
|
6555
6555
|
};
|
|
6556
6556
|
}(), LayerExpressionInterface = /* @__PURE__ */ function() {
|
|
6557
|
-
function t(
|
|
6557
|
+
function t(p) {
|
|
6558
6558
|
var y = new Matrix();
|
|
6559
|
-
if (
|
|
6560
|
-
var P = this._elem.finalTransform.mProp.getValueAtTime(
|
|
6559
|
+
if (p !== void 0) {
|
|
6560
|
+
var P = this._elem.finalTransform.mProp.getValueAtTime(p);
|
|
6561
6561
|
P.clone(y);
|
|
6562
6562
|
} else {
|
|
6563
6563
|
var u = this._elem.finalTransform.mProp;
|
|
@@ -6565,55 +6565,55 @@ function requireLottie() {
|
|
|
6565
6565
|
}
|
|
6566
6566
|
return y;
|
|
6567
6567
|
}
|
|
6568
|
-
function e(
|
|
6568
|
+
function e(p, y) {
|
|
6569
6569
|
var P = this.getMatrix(y);
|
|
6570
|
-
return P.props[12] = 0, P.props[13] = 0, P.props[14] = 0, this.applyPoint(P,
|
|
6570
|
+
return P.props[12] = 0, P.props[13] = 0, P.props[14] = 0, this.applyPoint(P, p);
|
|
6571
6571
|
}
|
|
6572
|
-
function r(
|
|
6572
|
+
function r(p, y) {
|
|
6573
6573
|
var P = this.getMatrix(y);
|
|
6574
|
-
return this.applyPoint(P,
|
|
6574
|
+
return this.applyPoint(P, p);
|
|
6575
6575
|
}
|
|
6576
|
-
function i(
|
|
6576
|
+
function i(p, y) {
|
|
6577
6577
|
var P = this.getMatrix(y);
|
|
6578
|
-
return P.props[12] = 0, P.props[13] = 0, P.props[14] = 0, this.invertPoint(P,
|
|
6578
|
+
return P.props[12] = 0, P.props[13] = 0, P.props[14] = 0, this.invertPoint(P, p);
|
|
6579
6579
|
}
|
|
6580
|
-
function s(
|
|
6580
|
+
function s(p, y) {
|
|
6581
6581
|
var P = this.getMatrix(y);
|
|
6582
|
-
return this.invertPoint(P,
|
|
6582
|
+
return this.invertPoint(P, p);
|
|
6583
6583
|
}
|
|
6584
|
-
function a(
|
|
6584
|
+
function a(p, y) {
|
|
6585
6585
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
6586
6586
|
var P, u = this._elem.hierarchy.length;
|
|
6587
6587
|
for (P = 0; P < u; P += 1)
|
|
6588
|
-
this._elem.hierarchy[P].finalTransform.mProp.applyToMatrix(
|
|
6588
|
+
this._elem.hierarchy[P].finalTransform.mProp.applyToMatrix(p);
|
|
6589
6589
|
}
|
|
6590
|
-
return
|
|
6590
|
+
return p.applyToPointArray(y[0], y[1], y[2] || 0);
|
|
6591
6591
|
}
|
|
6592
|
-
function n(
|
|
6592
|
+
function n(p, y) {
|
|
6593
6593
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
6594
6594
|
var P, u = this._elem.hierarchy.length;
|
|
6595
6595
|
for (P = 0; P < u; P += 1)
|
|
6596
|
-
this._elem.hierarchy[P].finalTransform.mProp.applyToMatrix(
|
|
6596
|
+
this._elem.hierarchy[P].finalTransform.mProp.applyToMatrix(p);
|
|
6597
6597
|
}
|
|
6598
|
-
return
|
|
6598
|
+
return p.inversePoint(y);
|
|
6599
6599
|
}
|
|
6600
|
-
function l(
|
|
6600
|
+
function l(p) {
|
|
6601
6601
|
var y = new Matrix();
|
|
6602
6602
|
if (y.reset(), this._elem.finalTransform.mProp.applyToMatrix(y), this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
6603
6603
|
var P, u = this._elem.hierarchy.length;
|
|
6604
6604
|
for (P = 0; P < u; P += 1)
|
|
6605
6605
|
this._elem.hierarchy[P].finalTransform.mProp.applyToMatrix(y);
|
|
6606
|
-
return y.inversePoint(
|
|
6606
|
+
return y.inversePoint(p);
|
|
6607
6607
|
}
|
|
6608
|
-
return y.inversePoint(
|
|
6608
|
+
return y.inversePoint(p);
|
|
6609
6609
|
}
|
|
6610
6610
|
function o() {
|
|
6611
6611
|
return [1, 1, 1, 1];
|
|
6612
6612
|
}
|
|
6613
|
-
return function(
|
|
6613
|
+
return function(p) {
|
|
6614
6614
|
var y;
|
|
6615
6615
|
function P(d) {
|
|
6616
|
-
b.mask = new MaskManagerInterface(d,
|
|
6616
|
+
b.mask = new MaskManagerInterface(d, p);
|
|
6617
6617
|
}
|
|
6618
6618
|
function u(d) {
|
|
6619
6619
|
b.effect = d;
|
|
@@ -6641,17 +6641,17 @@ function requireLottie() {
|
|
|
6641
6641
|
return null;
|
|
6642
6642
|
}
|
|
6643
6643
|
}
|
|
6644
|
-
b.getMatrix = t, b.invertPoint = n, b.applyPoint = a, b.toWorld = r, b.toWorldVec = e, b.fromWorld = s, b.fromWorldVec = i, b.toComp = r, b.fromComp = l, b.sampleImage = o, b.sourceRectAtTime =
|
|
6644
|
+
b.getMatrix = t, b.invertPoint = n, b.applyPoint = a, b.toWorld = r, b.toWorldVec = e, b.fromWorld = s, b.fromWorldVec = i, b.toComp = r, b.fromComp = l, b.sampleImage = o, b.sourceRectAtTime = p.sourceRectAtTime.bind(p), b._elem = p, y = TransformExpressionInterface(p.finalTransform.mProp);
|
|
6645
6645
|
var g = getDescriptor(y, "anchorPoint");
|
|
6646
6646
|
return Object.defineProperties(b, {
|
|
6647
6647
|
hasParent: {
|
|
6648
6648
|
get: function() {
|
|
6649
|
-
return
|
|
6649
|
+
return p.hierarchy.length;
|
|
6650
6650
|
}
|
|
6651
6651
|
},
|
|
6652
6652
|
parent: {
|
|
6653
6653
|
get: function() {
|
|
6654
|
-
return
|
|
6654
|
+
return p.hierarchy[0].layerInterface;
|
|
6655
6655
|
}
|
|
6656
6656
|
},
|
|
6657
6657
|
rotation: getDescriptor(y, "rotation"),
|
|
@@ -6667,10 +6667,10 @@ function requireLottie() {
|
|
|
6667
6667
|
},
|
|
6668
6668
|
active: {
|
|
6669
6669
|
get: function() {
|
|
6670
|
-
return
|
|
6670
|
+
return p.isInRange;
|
|
6671
6671
|
}
|
|
6672
6672
|
}
|
|
6673
|
-
}), b.startTime =
|
|
6673
|
+
}), b.startTime = p.data.st, b.index = p.data.ind, b.source = p.data.refId, b.height = p.data.ty === 0 ? p.data.h : 100, b.width = p.data.ty === 0 ? p.data.w : 100, b.inPoint = p.data.ip / p.comp.globalData.frameRate, b.outPoint = p.data.op / p.comp.globalData.frameRate, b._name = p.data.nm, b.registerMaskInterface = P, b.registerEffectsInterface = u, b;
|
|
6674
6674
|
};
|
|
6675
6675
|
}(), propertyGroupFactory = /* @__PURE__ */ function() {
|
|
6676
6676
|
return function(t, e) {
|
|
@@ -6694,11 +6694,11 @@ function requireLottie() {
|
|
|
6694
6694
|
};
|
|
6695
6695
|
function e(s, a) {
|
|
6696
6696
|
if (s.effectsManager) {
|
|
6697
|
-
var n = [], l = s.data.ef, o,
|
|
6698
|
-
for (o = 0; o <
|
|
6697
|
+
var n = [], l = s.data.ef, o, p = s.effectsManager.effectElements.length;
|
|
6698
|
+
for (o = 0; o < p; o += 1)
|
|
6699
6699
|
n.push(r(l[o], s.effectsManager.effectElements[o], a, s));
|
|
6700
6700
|
var y = s.data.ef || [], P = function(b) {
|
|
6701
|
-
for (o = 0,
|
|
6701
|
+
for (o = 0, p = y.length; o < p; ) {
|
|
6702
6702
|
if (b === y[o].nm || b === y[o].mn || b === y[o].ix)
|
|
6703
6703
|
return n[o];
|
|
6704
6704
|
o += 1;
|
|
@@ -6722,9 +6722,9 @@ function requireLottie() {
|
|
|
6722
6722
|
}
|
|
6723
6723
|
throw new Error();
|
|
6724
6724
|
}
|
|
6725
|
-
var
|
|
6725
|
+
var p = propertyGroupFactory(o, n), y = [], P, u = s.ef.length;
|
|
6726
6726
|
for (P = 0; P < u; P += 1)
|
|
6727
|
-
s.ef[P].ty === 5 ? y.push(r(s.ef[P], a.effectElements[P], a.effectElements[P].propertyGroup, l)) : y.push(i(a.effectElements[P], s.ef[P].ty, l,
|
|
6727
|
+
s.ef[P].ty === 5 ? y.push(r(s.ef[P], a.effectElements[P], a.effectElements[P].propertyGroup, l)) : y.push(i(a.effectElements[P], s.ef[P].ty, l, p));
|
|
6728
6728
|
return s.mn === "ADBE Color Control" && Object.defineProperty(o, "color", {
|
|
6729
6729
|
get: function() {
|
|
6730
6730
|
return y[0]();
|
|
@@ -6739,16 +6739,16 @@ function requireLottie() {
|
|
|
6739
6739
|
value: s.nm
|
|
6740
6740
|
},
|
|
6741
6741
|
propertyGroup: {
|
|
6742
|
-
value:
|
|
6742
|
+
value: p
|
|
6743
6743
|
}
|
|
6744
6744
|
}), o.enabled = s.en !== 0, o.active = o.enabled, o;
|
|
6745
6745
|
}
|
|
6746
6746
|
function i(s, a, n, l) {
|
|
6747
6747
|
var o = ExpressionPropertyInterface(s.p);
|
|
6748
|
-
function
|
|
6748
|
+
function p() {
|
|
6749
6749
|
return a === 10 ? n.comp.compInterface(s.p.v) : o();
|
|
6750
6750
|
}
|
|
6751
|
-
return s.p.setGroupProperty && s.p.setGroupProperty(PropertyInterface("", l)),
|
|
6751
|
+
return s.p.setGroupProperty && s.p.setGroupProperty(PropertyInterface("", l)), p;
|
|
6752
6752
|
}
|
|
6753
6753
|
return t;
|
|
6754
6754
|
}(), ShapePathInterface = /* @__PURE__ */ function() {
|
|
@@ -6788,51 +6788,51 @@ function requireLottie() {
|
|
|
6788
6788
|
};
|
|
6789
6789
|
}(), ShapeExpressionInterface = /* @__PURE__ */ function() {
|
|
6790
6790
|
function t(g, d, C) {
|
|
6791
|
-
var
|
|
6791
|
+
var c = [], m, f = g ? g.length : 0;
|
|
6792
6792
|
for (m = 0; m < f; m += 1)
|
|
6793
|
-
g[m].ty === "gr" ?
|
|
6794
|
-
return
|
|
6793
|
+
g[m].ty === "gr" ? c.push(r(g[m], d[m], C)) : g[m].ty === "fl" ? c.push(i(g[m], d[m], C)) : g[m].ty === "st" ? c.push(n(g[m], d[m], C)) : g[m].ty === "tm" ? c.push(l(g[m], d[m], C)) : g[m].ty === "tr" || (g[m].ty === "el" ? c.push(p(g[m], d[m], C)) : g[m].ty === "sr" ? c.push(y(g[m], d[m], C)) : g[m].ty === "sh" ? c.push(ShapePathInterface(g[m], d[m], C)) : g[m].ty === "rc" ? c.push(P(g[m], d[m], C)) : g[m].ty === "rd" ? c.push(u(g[m], d[m], C)) : g[m].ty === "rp" ? c.push(b(g[m], d[m], C)) : g[m].ty === "gf" ? c.push(s(g[m], d[m], C)) : c.push(a(g[m], d[m])));
|
|
6794
|
+
return c;
|
|
6795
6795
|
}
|
|
6796
6796
|
function e(g, d, C) {
|
|
6797
|
-
var
|
|
6798
|
-
for (var A = 0, T =
|
|
6799
|
-
if (
|
|
6800
|
-
return
|
|
6797
|
+
var c, m = function(E) {
|
|
6798
|
+
for (var A = 0, T = c.length; A < T; ) {
|
|
6799
|
+
if (c[A]._name === E || c[A].mn === E || c[A].propertyIndex === E || c[A].ix === E || c[A].ind === E)
|
|
6800
|
+
return c[A];
|
|
6801
6801
|
A += 1;
|
|
6802
6802
|
}
|
|
6803
|
-
return typeof E == "number" ?
|
|
6803
|
+
return typeof E == "number" ? c[E - 1] : null;
|
|
6804
6804
|
};
|
|
6805
|
-
m.propertyGroup = propertyGroupFactory(m, C),
|
|
6805
|
+
m.propertyGroup = propertyGroupFactory(m, C), c = t(g.it, d.it, m.propertyGroup), m.numProperties = c.length;
|
|
6806
6806
|
var f = o(g.it[g.it.length - 1], d.it[d.it.length - 1], m.propertyGroup);
|
|
6807
6807
|
return m.transform = f, m.propertyIndex = g.cix, m._name = g.nm, m;
|
|
6808
6808
|
}
|
|
6809
6809
|
function r(g, d, C) {
|
|
6810
|
-
var
|
|
6810
|
+
var c = function(E) {
|
|
6811
6811
|
switch (E) {
|
|
6812
6812
|
case "ADBE Vectors Group":
|
|
6813
6813
|
case "Contents":
|
|
6814
6814
|
case 2:
|
|
6815
|
-
return
|
|
6815
|
+
return c.content;
|
|
6816
6816
|
// Not necessary for now. Keeping them here in case a new case appears
|
|
6817
6817
|
// case 'ADBE Vector Transform Group':
|
|
6818
6818
|
// case 3:
|
|
6819
6819
|
default:
|
|
6820
|
-
return
|
|
6820
|
+
return c.transform;
|
|
6821
6821
|
}
|
|
6822
6822
|
};
|
|
6823
|
-
|
|
6824
|
-
var m = e(g, d,
|
|
6825
|
-
return
|
|
6823
|
+
c.propertyGroup = propertyGroupFactory(c, C);
|
|
6824
|
+
var m = e(g, d, c.propertyGroup), f = o(g.it[g.it.length - 1], d.it[d.it.length - 1], c.propertyGroup);
|
|
6825
|
+
return c.content = m, c.transform = f, Object.defineProperty(c, "_name", {
|
|
6826
6826
|
get: function() {
|
|
6827
6827
|
return g.nm;
|
|
6828
6828
|
}
|
|
6829
|
-
}),
|
|
6829
|
+
}), c.numProperties = g.np, c.propertyIndex = g.ix, c.nm = g.nm, c.mn = g.mn, c;
|
|
6830
6830
|
}
|
|
6831
6831
|
function i(g, d, C) {
|
|
6832
|
-
function
|
|
6833
|
-
return m === "Color" || m === "color" ?
|
|
6832
|
+
function c(m) {
|
|
6833
|
+
return m === "Color" || m === "color" ? c.color : m === "Opacity" || m === "opacity" ? c.opacity : null;
|
|
6834
6834
|
}
|
|
6835
|
-
return Object.defineProperties(
|
|
6835
|
+
return Object.defineProperties(c, {
|
|
6836
6836
|
color: {
|
|
6837
6837
|
get: ExpressionPropertyInterface(d.c)
|
|
6838
6838
|
},
|
|
@@ -6845,13 +6845,13 @@ function requireLottie() {
|
|
|
6845
6845
|
mn: {
|
|
6846
6846
|
value: g.mn
|
|
6847
6847
|
}
|
|
6848
|
-
}), d.c.setGroupProperty(PropertyInterface("Color", C)), d.o.setGroupProperty(PropertyInterface("Opacity", C)),
|
|
6848
|
+
}), d.c.setGroupProperty(PropertyInterface("Color", C)), d.o.setGroupProperty(PropertyInterface("Opacity", C)), c;
|
|
6849
6849
|
}
|
|
6850
6850
|
function s(g, d, C) {
|
|
6851
|
-
function
|
|
6852
|
-
return m === "Start Point" || m === "start point" ?
|
|
6851
|
+
function c(m) {
|
|
6852
|
+
return m === "Start Point" || m === "start point" ? c.startPoint : m === "End Point" || m === "end point" ? c.endPoint : m === "Opacity" || m === "opacity" ? c.opacity : null;
|
|
6853
6853
|
}
|
|
6854
|
-
return Object.defineProperties(
|
|
6854
|
+
return Object.defineProperties(c, {
|
|
6855
6855
|
startPoint: {
|
|
6856
6856
|
get: ExpressionPropertyInterface(d.s)
|
|
6857
6857
|
},
|
|
@@ -6872,7 +6872,7 @@ function requireLottie() {
|
|
|
6872
6872
|
mn: {
|
|
6873
6873
|
value: g.mn
|
|
6874
6874
|
}
|
|
6875
|
-
}), d.s.setGroupProperty(PropertyInterface("Start Point", C)), d.e.setGroupProperty(PropertyInterface("End Point", C)), d.o.setGroupProperty(PropertyInterface("Opacity", C)),
|
|
6875
|
+
}), d.s.setGroupProperty(PropertyInterface("Start Point", C)), d.e.setGroupProperty(PropertyInterface("End Point", C)), d.o.setGroupProperty(PropertyInterface("Opacity", C)), c;
|
|
6876
6876
|
}
|
|
6877
6877
|
function a() {
|
|
6878
6878
|
function g() {
|
|
@@ -6881,7 +6881,7 @@ function requireLottie() {
|
|
|
6881
6881
|
return g;
|
|
6882
6882
|
}
|
|
6883
6883
|
function n(g, d, C) {
|
|
6884
|
-
var
|
|
6884
|
+
var c = propertyGroupFactory(T, C), m = propertyGroupFactory(A, c);
|
|
6885
6885
|
function f(I) {
|
|
6886
6886
|
Object.defineProperty(A, g.d[I].nm, {
|
|
6887
6887
|
get: ExpressionPropertyInterface(d.d.dataProps[I].p)
|
|
@@ -6914,14 +6914,14 @@ function requireLottie() {
|
|
|
6914
6914
|
mn: {
|
|
6915
6915
|
value: g.mn
|
|
6916
6916
|
}
|
|
6917
|
-
}), d.c.setGroupProperty(PropertyInterface("Color",
|
|
6917
|
+
}), d.c.setGroupProperty(PropertyInterface("Color", c)), d.o.setGroupProperty(PropertyInterface("Opacity", c)), d.w.setGroupProperty(PropertyInterface("Stroke Width", c)), T;
|
|
6918
6918
|
}
|
|
6919
6919
|
function l(g, d, C) {
|
|
6920
|
-
function
|
|
6921
|
-
return f === g.e.ix || f === "End" || f === "end" ?
|
|
6920
|
+
function c(f) {
|
|
6921
|
+
return f === g.e.ix || f === "End" || f === "end" ? c.end : f === g.s.ix ? c.start : f === g.o.ix ? c.offset : null;
|
|
6922
6922
|
}
|
|
6923
|
-
var m = propertyGroupFactory(
|
|
6924
|
-
return
|
|
6923
|
+
var m = propertyGroupFactory(c, C);
|
|
6924
|
+
return c.propertyIndex = g.ix, d.s.setGroupProperty(PropertyInterface("Start", m)), d.e.setGroupProperty(PropertyInterface("End", m)), d.o.setGroupProperty(PropertyInterface("Offset", m)), c.propertyIndex = g.ix, c.propertyGroup = C, Object.defineProperties(c, {
|
|
6925
6925
|
start: {
|
|
6926
6926
|
get: ExpressionPropertyInterface(d.s)
|
|
6927
6927
|
},
|
|
@@ -6934,14 +6934,14 @@ function requireLottie() {
|
|
|
6934
6934
|
_name: {
|
|
6935
6935
|
value: g.nm
|
|
6936
6936
|
}
|
|
6937
|
-
}),
|
|
6937
|
+
}), c.mn = g.mn, c;
|
|
6938
6938
|
}
|
|
6939
6939
|
function o(g, d, C) {
|
|
6940
|
-
function
|
|
6941
|
-
return g.a.ix === f || f === "Anchor Point" ?
|
|
6940
|
+
function c(f) {
|
|
6941
|
+
return g.a.ix === f || f === "Anchor Point" ? c.anchorPoint : g.o.ix === f || f === "Opacity" ? c.opacity : g.p.ix === f || f === "Position" ? c.position : g.r.ix === f || f === "Rotation" || f === "ADBE Vector Rotation" ? c.rotation : g.s.ix === f || f === "Scale" ? c.scale : g.sk && g.sk.ix === f || f === "Skew" ? c.skew : g.sa && g.sa.ix === f || f === "Skew Axis" ? c.skewAxis : null;
|
|
6942
6942
|
}
|
|
6943
|
-
var m = propertyGroupFactory(
|
|
6944
|
-
return d.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity", m)), d.transform.mProps.p.setGroupProperty(PropertyInterface("Position", m)), d.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point", m)), d.transform.mProps.s.setGroupProperty(PropertyInterface("Scale", m)), d.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation", m)), d.transform.mProps.sk && (d.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew", m)), d.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle", m))), d.transform.op.setGroupProperty(PropertyInterface("Opacity", m)), Object.defineProperties(
|
|
6943
|
+
var m = propertyGroupFactory(c, C);
|
|
6944
|
+
return d.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity", m)), d.transform.mProps.p.setGroupProperty(PropertyInterface("Position", m)), d.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point", m)), d.transform.mProps.s.setGroupProperty(PropertyInterface("Scale", m)), d.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation", m)), d.transform.mProps.sk && (d.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew", m)), d.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle", m))), d.transform.op.setGroupProperty(PropertyInterface("Opacity", m)), Object.defineProperties(c, {
|
|
6945
6945
|
opacity: {
|
|
6946
6946
|
get: ExpressionPropertyInterface(d.transform.mProps.o)
|
|
6947
6947
|
},
|
|
@@ -6966,16 +6966,16 @@ function requireLottie() {
|
|
|
6966
6966
|
_name: {
|
|
6967
6967
|
value: g.nm
|
|
6968
6968
|
}
|
|
6969
|
-
}),
|
|
6969
|
+
}), c.ty = "tr", c.mn = g.mn, c.propertyGroup = C, c;
|
|
6970
6970
|
}
|
|
6971
|
-
function
|
|
6972
|
-
function
|
|
6973
|
-
return g.p.ix === x ?
|
|
6971
|
+
function p(g, d, C) {
|
|
6972
|
+
function c(x) {
|
|
6973
|
+
return g.p.ix === x ? c.position : g.s.ix === x ? c.size : null;
|
|
6974
6974
|
}
|
|
6975
|
-
var m = propertyGroupFactory(
|
|
6976
|
-
|
|
6975
|
+
var m = propertyGroupFactory(c, C);
|
|
6976
|
+
c.propertyIndex = g.ix;
|
|
6977
6977
|
var f = d.sh.ty === "tm" ? d.sh.prop : d.sh;
|
|
6978
|
-
return f.s.setGroupProperty(PropertyInterface("Size", m)), f.p.setGroupProperty(PropertyInterface("Position", m)), Object.defineProperties(
|
|
6978
|
+
return f.s.setGroupProperty(PropertyInterface("Size", m)), f.p.setGroupProperty(PropertyInterface("Position", m)), Object.defineProperties(c, {
|
|
6979
6979
|
size: {
|
|
6980
6980
|
get: ExpressionPropertyInterface(f.s)
|
|
6981
6981
|
},
|
|
@@ -6985,14 +6985,14 @@ function requireLottie() {
|
|
|
6985
6985
|
_name: {
|
|
6986
6986
|
value: g.nm
|
|
6987
6987
|
}
|
|
6988
|
-
}),
|
|
6988
|
+
}), c.mn = g.mn, c;
|
|
6989
6989
|
}
|
|
6990
6990
|
function y(g, d, C) {
|
|
6991
|
-
function
|
|
6992
|
-
return g.p.ix === x ?
|
|
6991
|
+
function c(x) {
|
|
6992
|
+
return g.p.ix === x ? c.position : g.r.ix === x ? c.rotation : g.pt.ix === x ? c.points : g.or.ix === x || x === "ADBE Vector Star Outer Radius" ? c.outerRadius : g.os.ix === x ? c.outerRoundness : g.ir && (g.ir.ix === x || x === "ADBE Vector Star Inner Radius") ? c.innerRadius : g.is && g.is.ix === x ? c.innerRoundness : null;
|
|
6993
6993
|
}
|
|
6994
|
-
var m = propertyGroupFactory(
|
|
6995
|
-
return
|
|
6994
|
+
var m = propertyGroupFactory(c, C), f = d.sh.ty === "tm" ? d.sh.prop : d.sh;
|
|
6995
|
+
return c.propertyIndex = g.ix, f.or.setGroupProperty(PropertyInterface("Outer Radius", m)), f.os.setGroupProperty(PropertyInterface("Outer Roundness", m)), f.pt.setGroupProperty(PropertyInterface("Points", m)), f.p.setGroupProperty(PropertyInterface("Position", m)), f.r.setGroupProperty(PropertyInterface("Rotation", m)), g.ir && (f.ir.setGroupProperty(PropertyInterface("Inner Radius", m)), f.is.setGroupProperty(PropertyInterface("Inner Roundness", m))), Object.defineProperties(c, {
|
|
6996
6996
|
position: {
|
|
6997
6997
|
get: ExpressionPropertyInterface(f.p)
|
|
6998
6998
|
},
|
|
@@ -7017,14 +7017,14 @@ function requireLottie() {
|
|
|
7017
7017
|
_name: {
|
|
7018
7018
|
value: g.nm
|
|
7019
7019
|
}
|
|
7020
|
-
}),
|
|
7020
|
+
}), c.mn = g.mn, c;
|
|
7021
7021
|
}
|
|
7022
7022
|
function P(g, d, C) {
|
|
7023
|
-
function
|
|
7024
|
-
return g.p.ix === x ?
|
|
7023
|
+
function c(x) {
|
|
7024
|
+
return g.p.ix === x ? c.position : g.r.ix === x ? c.roundness : g.s.ix === x || x === "Size" || x === "ADBE Vector Rect Size" ? c.size : null;
|
|
7025
7025
|
}
|
|
7026
|
-
var m = propertyGroupFactory(
|
|
7027
|
-
return
|
|
7026
|
+
var m = propertyGroupFactory(c, C), f = d.sh.ty === "tm" ? d.sh.prop : d.sh;
|
|
7027
|
+
return c.propertyIndex = g.ix, f.p.setGroupProperty(PropertyInterface("Position", m)), f.s.setGroupProperty(PropertyInterface("Size", m)), f.r.setGroupProperty(PropertyInterface("Rotation", m)), Object.defineProperties(c, {
|
|
7028
7028
|
position: {
|
|
7029
7029
|
get: ExpressionPropertyInterface(f.p)
|
|
7030
7030
|
},
|
|
@@ -7037,28 +7037,28 @@ function requireLottie() {
|
|
|
7037
7037
|
_name: {
|
|
7038
7038
|
value: g.nm
|
|
7039
7039
|
}
|
|
7040
|
-
}),
|
|
7040
|
+
}), c.mn = g.mn, c;
|
|
7041
7041
|
}
|
|
7042
7042
|
function u(g, d, C) {
|
|
7043
|
-
function
|
|
7044
|
-
return g.r.ix === x || x === "Round Corners 1" ?
|
|
7043
|
+
function c(x) {
|
|
7044
|
+
return g.r.ix === x || x === "Round Corners 1" ? c.radius : null;
|
|
7045
7045
|
}
|
|
7046
|
-
var m = propertyGroupFactory(
|
|
7047
|
-
return
|
|
7046
|
+
var m = propertyGroupFactory(c, C), f = d;
|
|
7047
|
+
return c.propertyIndex = g.ix, f.rd.setGroupProperty(PropertyInterface("Radius", m)), Object.defineProperties(c, {
|
|
7048
7048
|
radius: {
|
|
7049
7049
|
get: ExpressionPropertyInterface(f.rd)
|
|
7050
7050
|
},
|
|
7051
7051
|
_name: {
|
|
7052
7052
|
value: g.nm
|
|
7053
7053
|
}
|
|
7054
|
-
}),
|
|
7054
|
+
}), c.mn = g.mn, c;
|
|
7055
7055
|
}
|
|
7056
7056
|
function b(g, d, C) {
|
|
7057
|
-
function
|
|
7058
|
-
return g.c.ix === x || x === "Copies" ?
|
|
7057
|
+
function c(x) {
|
|
7058
|
+
return g.c.ix === x || x === "Copies" ? c.copies : g.o.ix === x || x === "Offset" ? c.offset : null;
|
|
7059
7059
|
}
|
|
7060
|
-
var m = propertyGroupFactory(
|
|
7061
|
-
return
|
|
7060
|
+
var m = propertyGroupFactory(c, C), f = d;
|
|
7061
|
+
return c.propertyIndex = g.ix, f.c.setGroupProperty(PropertyInterface("Copies", m)), f.o.setGroupProperty(PropertyInterface("Offset", m)), Object.defineProperties(c, {
|
|
7062
7062
|
copies: {
|
|
7063
7063
|
get: ExpressionPropertyInterface(f.c)
|
|
7064
7064
|
},
|
|
@@ -7068,16 +7068,16 @@ function requireLottie() {
|
|
|
7068
7068
|
_name: {
|
|
7069
7069
|
value: g.nm
|
|
7070
7070
|
}
|
|
7071
|
-
}),
|
|
7071
|
+
}), c.mn = g.mn, c;
|
|
7072
7072
|
}
|
|
7073
7073
|
return function(g, d, C) {
|
|
7074
|
-
var
|
|
7074
|
+
var c;
|
|
7075
7075
|
function m(x) {
|
|
7076
7076
|
if (typeof x == "number")
|
|
7077
|
-
return x = x === void 0 ? 1 : x, x === 0 ? C :
|
|
7078
|
-
for (var E = 0, A =
|
|
7079
|
-
if (
|
|
7080
|
-
return
|
|
7077
|
+
return x = x === void 0 ? 1 : x, x === 0 ? C : c[x - 1];
|
|
7078
|
+
for (var E = 0, A = c.length; E < A; ) {
|
|
7079
|
+
if (c[E]._name === x)
|
|
7080
|
+
return c[E];
|
|
7081
7081
|
E += 1;
|
|
7082
7082
|
}
|
|
7083
7083
|
return null;
|
|
@@ -7085,7 +7085,7 @@ function requireLottie() {
|
|
|
7085
7085
|
function f() {
|
|
7086
7086
|
return C;
|
|
7087
7087
|
}
|
|
7088
|
-
return m.propertyGroup = propertyGroupFactory(m, f),
|
|
7088
|
+
return m.propertyGroup = propertyGroupFactory(m, f), c = t(g, d, m.propertyGroup), m.numProperties = c.length, m._name = "Contents", m;
|
|
7089
7089
|
};
|
|
7090
7090
|
}(), TextExpressionInterface = /* @__PURE__ */ function() {
|
|
7091
7091
|
return function(t) {
|
|
@@ -7130,9 +7130,9 @@ function requireLottie() {
|
|
|
7130
7130
|
function l(o) {
|
|
7131
7131
|
if (a[o])
|
|
7132
7132
|
return s = o, a = a[o], _typeof(a) === "object" ? l : a;
|
|
7133
|
-
var
|
|
7134
|
-
if (
|
|
7135
|
-
var y = parseInt(o.substr(
|
|
7133
|
+
var p = o.indexOf(s);
|
|
7134
|
+
if (p !== -1) {
|
|
7135
|
+
var y = parseInt(o.substr(p + s.length), 10);
|
|
7136
7136
|
return a = a[y], _typeof(a) === "object" ? l : a;
|
|
7137
7137
|
}
|
|
7138
7138
|
return "";
|
|
@@ -7169,11 +7169,11 @@ function requireLottie() {
|
|
|
7169
7169
|
return n *= this.elem.globalData.frameRate, n -= this.offsetTime, n !== this._cachingAtTime.lastFrame && (this._cachingAtTime.lastIndex = this._cachingAtTime.lastFrame < n ? this._cachingAtTime.lastIndex : 0, this._cachingAtTime.value = this.interpolateValue(n, this._cachingAtTime), this._cachingAtTime.lastFrame = n), this._cachingAtTime.value;
|
|
7170
7170
|
}
|
|
7171
7171
|
function r(n) {
|
|
7172
|
-
var l = -0.01, o = this.getValueAtTime(n),
|
|
7172
|
+
var l = -0.01, o = this.getValueAtTime(n), p = this.getValueAtTime(n + l), y = 0;
|
|
7173
7173
|
if (o.length) {
|
|
7174
7174
|
var P;
|
|
7175
7175
|
for (P = 0; P < o.length; P += 1)
|
|
7176
|
-
y += Math.pow(
|
|
7176
|
+
y += Math.pow(p[P] - o[P], 2);
|
|
7177
7177
|
y = Math.sqrt(y) * 100;
|
|
7178
7178
|
} else
|
|
7179
7179
|
y = 0;
|
|
@@ -7182,14 +7182,14 @@ function requireLottie() {
|
|
|
7182
7182
|
function i(n) {
|
|
7183
7183
|
if (this.vel !== void 0)
|
|
7184
7184
|
return this.vel;
|
|
7185
|
-
var l = -1e-3, o = this.getValueAtTime(n),
|
|
7185
|
+
var l = -1e-3, o = this.getValueAtTime(n), p = this.getValueAtTime(n + l), y;
|
|
7186
7186
|
if (o.length) {
|
|
7187
7187
|
y = createTypedArray("float32", o.length);
|
|
7188
7188
|
var P;
|
|
7189
7189
|
for (P = 0; P < o.length; P += 1)
|
|
7190
|
-
y[P] = (
|
|
7190
|
+
y[P] = (p[P] - o[P]) / l;
|
|
7191
7191
|
} else
|
|
7192
|
-
y = (
|
|
7192
|
+
y = (p - o) / l;
|
|
7193
7193
|
return y;
|
|
7194
7194
|
}
|
|
7195
7195
|
function s() {
|
|
@@ -7212,18 +7212,18 @@ function requireLottie() {
|
|
|
7212
7212
|
if (!this.k || !this.keyframes)
|
|
7213
7213
|
return this.pv;
|
|
7214
7214
|
u = u ? u.toLowerCase() : "";
|
|
7215
|
-
var d = this.comp.renderedFrame, C = this.keyframes,
|
|
7216
|
-
if (d <=
|
|
7215
|
+
var d = this.comp.renderedFrame, C = this.keyframes, c = C[C.length - 1].t;
|
|
7216
|
+
if (d <= c)
|
|
7217
7217
|
return this.pv;
|
|
7218
7218
|
var m, f;
|
|
7219
|
-
g ? (b ? m = Math.abs(
|
|
7219
|
+
g ? (b ? m = Math.abs(c - this.elem.comp.globalData.frameRate * b) : m = Math.max(0, c - this.elem.data.ip), f = c - m) : ((!b || b > C.length - 1) && (b = C.length - 1), f = C[C.length - 1 - b].t, m = c - f);
|
|
7220
7220
|
var x, E, A;
|
|
7221
7221
|
if (u === "pingpong") {
|
|
7222
7222
|
var T = Math.floor((d - f) / m);
|
|
7223
7223
|
if (T % 2 !== 0)
|
|
7224
7224
|
return this.getValueAtTime((m - (d - f) % m + f) / this.comp.globalData.frameRate, 0);
|
|
7225
7225
|
} else if (u === "offset") {
|
|
7226
|
-
var I = this.getValueAtTime(f / this.comp.globalData.frameRate, 0), D = this.getValueAtTime(
|
|
7226
|
+
var I = this.getValueAtTime(f / this.comp.globalData.frameRate, 0), D = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), H = this.getValueAtTime(((d - f) % m + f) / this.comp.globalData.frameRate, 0), G = Math.floor((d - f) / m);
|
|
7227
7227
|
if (this.pv.length) {
|
|
7228
7228
|
for (A = new Array(I.length), E = A.length, x = 0; x < E; x += 1)
|
|
7229
7229
|
A[x] = (D[x] - I[x]) * G + H[x];
|
|
@@ -7231,13 +7231,13 @@ function requireLottie() {
|
|
|
7231
7231
|
}
|
|
7232
7232
|
return (D - I) * G + H;
|
|
7233
7233
|
} else if (u === "continue") {
|
|
7234
|
-
var B = this.getValueAtTime(
|
|
7234
|
+
var B = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), z = this.getValueAtTime((c - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
7235
7235
|
if (this.pv.length) {
|
|
7236
7236
|
for (A = new Array(B.length), E = A.length, x = 0; x < E; x += 1)
|
|
7237
|
-
A[x] = B[x] + (B[x] -
|
|
7237
|
+
A[x] = B[x] + (B[x] - z[x]) * ((d - c) / this.comp.globalData.frameRate) / 5e-4;
|
|
7238
7238
|
return A;
|
|
7239
7239
|
}
|
|
7240
|
-
return B + (B -
|
|
7240
|
+
return B + (B - z) * ((d - c) / 1e-3);
|
|
7241
7241
|
}
|
|
7242
7242
|
return this.getValueAtTime(((d - f) % m + f) / this.comp.globalData.frameRate, 0);
|
|
7243
7243
|
}
|
|
@@ -7245,18 +7245,18 @@ function requireLottie() {
|
|
|
7245
7245
|
if (!this.k)
|
|
7246
7246
|
return this.pv;
|
|
7247
7247
|
u = u ? u.toLowerCase() : "";
|
|
7248
|
-
var d = this.comp.renderedFrame, C = this.keyframes,
|
|
7249
|
-
if (d >=
|
|
7248
|
+
var d = this.comp.renderedFrame, C = this.keyframes, c = C[0].t;
|
|
7249
|
+
if (d >= c)
|
|
7250
7250
|
return this.pv;
|
|
7251
7251
|
var m, f;
|
|
7252
|
-
g ? (b ? m = Math.abs(this.elem.comp.globalData.frameRate * b) : m = Math.max(0, this.elem.data.op -
|
|
7252
|
+
g ? (b ? m = Math.abs(this.elem.comp.globalData.frameRate * b) : m = Math.max(0, this.elem.data.op - c), f = c + m) : ((!b || b > C.length - 1) && (b = C.length - 1), f = C[b].t, m = f - c);
|
|
7253
7253
|
var x, E, A;
|
|
7254
7254
|
if (u === "pingpong") {
|
|
7255
|
-
var T = Math.floor((
|
|
7255
|
+
var T = Math.floor((c - d) / m);
|
|
7256
7256
|
if (T % 2 === 0)
|
|
7257
|
-
return this.getValueAtTime(((
|
|
7257
|
+
return this.getValueAtTime(((c - d) % m + c) / this.comp.globalData.frameRate, 0);
|
|
7258
7258
|
} else if (u === "offset") {
|
|
7259
|
-
var I = this.getValueAtTime(
|
|
7259
|
+
var I = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), D = this.getValueAtTime(f / this.comp.globalData.frameRate, 0), H = this.getValueAtTime((m - (c - d) % m + c) / this.comp.globalData.frameRate, 0), G = Math.floor((c - d) / m) + 1;
|
|
7260
7260
|
if (this.pv.length) {
|
|
7261
7261
|
for (A = new Array(I.length), E = A.length, x = 0; x < E; x += 1)
|
|
7262
7262
|
A[x] = H[x] - (D[x] - I[x]) * G;
|
|
@@ -7264,25 +7264,25 @@ function requireLottie() {
|
|
|
7264
7264
|
}
|
|
7265
7265
|
return H - (D - I) * G;
|
|
7266
7266
|
} else if (u === "continue") {
|
|
7267
|
-
var B = this.getValueAtTime(
|
|
7267
|
+
var B = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), z = this.getValueAtTime((c + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
7268
7268
|
if (this.pv.length) {
|
|
7269
7269
|
for (A = new Array(B.length), E = A.length, x = 0; x < E; x += 1)
|
|
7270
|
-
A[x] = B[x] + (B[x] -
|
|
7270
|
+
A[x] = B[x] + (B[x] - z[x]) * (c - d) / 1e-3;
|
|
7271
7271
|
return A;
|
|
7272
7272
|
}
|
|
7273
|
-
return B + (B -
|
|
7273
|
+
return B + (B - z) * (c - d) / 1e-3;
|
|
7274
7274
|
}
|
|
7275
|
-
return this.getValueAtTime((m - ((
|
|
7275
|
+
return this.getValueAtTime((m - ((c - d) % m + c)) / this.comp.globalData.frameRate, 0);
|
|
7276
7276
|
}
|
|
7277
7277
|
function r(u, b) {
|
|
7278
7278
|
if (!this.k)
|
|
7279
7279
|
return this.pv;
|
|
7280
7280
|
if (u = (u || 0.4) * 0.5, b = Math.floor(b || 5), b <= 1)
|
|
7281
7281
|
return this.pv;
|
|
7282
|
-
var g = this.comp.renderedFrame / this.comp.globalData.frameRate, d = g - u, C = g + u,
|
|
7282
|
+
var g = this.comp.renderedFrame / this.comp.globalData.frameRate, d = g - u, C = g + u, c = b > 1 ? (C - d) / (b - 1) : 1, m = 0, f = 0, x;
|
|
7283
7283
|
this.pv.length ? x = createTypedArray("float32", this.pv.length) : x = 0;
|
|
7284
7284
|
for (var E; m < b; ) {
|
|
7285
|
-
if (E = this.getValueAtTime(d + m *
|
|
7285
|
+
if (E = this.getValueAtTime(d + m * c), this.pv.length)
|
|
7286
7286
|
for (f = 0; f < this.pv.length; f += 1)
|
|
7287
7287
|
x[f] += E[f];
|
|
7288
7288
|
else
|
|
@@ -7310,8 +7310,8 @@ function requireLottie() {
|
|
|
7310
7310
|
b.scale(d[0] * this.s.mult, d[1] * this.s.mult, d[2] * this.s.mult);
|
|
7311
7311
|
}
|
|
7312
7312
|
if (this.sk && this.appliedTransformations < 3) {
|
|
7313
|
-
var C = this.sk.getValueAtTime(u),
|
|
7314
|
-
b.skewFromAxis(-C * this.sk.mult,
|
|
7313
|
+
var C = this.sk.getValueAtTime(u), c = this.sa.getValueAtTime(u);
|
|
7314
|
+
b.skewFromAxis(-C * this.sk.mult, c * this.sa.mult);
|
|
7315
7315
|
}
|
|
7316
7316
|
if (this.r && this.appliedTransformations < 4) {
|
|
7317
7317
|
var m = this.r.getValueAtTime(u);
|
|
@@ -7343,14 +7343,14 @@ function requireLottie() {
|
|
|
7343
7343
|
};
|
|
7344
7344
|
var n = PropertyFactory.getProp;
|
|
7345
7345
|
PropertyFactory.getProp = function(u, b, g, d, C) {
|
|
7346
|
-
var
|
|
7347
|
-
|
|
7346
|
+
var c = n(u, b, g, d, C);
|
|
7347
|
+
c.kf ? c.getValueAtTime = expressionHelpers.getValueAtTime.bind(c) : c.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(c), c.setGroupProperty = expressionHelpers.setGroupProperty, c.loopOut = t, c.loopIn = e, c.smooth = r, c.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(c), c.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(c), c.numKeys = b.a === 1 ? b.k.length : 0, c.propertyIndex = b.ix;
|
|
7348
7348
|
var m = 0;
|
|
7349
|
-
return g !== 0 && (m = createTypedArray("float32", b.a === 1 ? b.k[0].s.length : b.k.length)),
|
|
7349
|
+
return g !== 0 && (m = createTypedArray("float32", b.a === 1 ? b.k[0].s.length : b.k.length)), c._cachingAtTime = {
|
|
7350
7350
|
lastFrame: initialDefaultFrame,
|
|
7351
7351
|
lastIndex: 0,
|
|
7352
7352
|
value: m
|
|
7353
|
-
}, expressionHelpers.searchExpressions(u, b,
|
|
7353
|
+
}, expressionHelpers.searchExpressions(u, b, c), c.k && C.addDynamicProperty(c), c;
|
|
7354
7354
|
};
|
|
7355
7355
|
function l(u) {
|
|
7356
7356
|
return this._cachingAtTime || (this._cachingAtTime = {
|
|
@@ -7359,7 +7359,7 @@ function requireLottie() {
|
|
|
7359
7359
|
lastTime: initialDefaultFrame
|
|
7360
7360
|
}), u *= this.elem.globalData.frameRate, u -= this.offsetTime, u !== this._cachingAtTime.lastTime && (this._cachingAtTime.lastIndex = this._cachingAtTime.lastTime < u ? this._caching.lastIndex : 0, this._cachingAtTime.lastTime = u, this.interpolateShape(u, this._cachingAtTime.shapeValue, this._cachingAtTime)), this._cachingAtTime.shapeValue;
|
|
7361
7361
|
}
|
|
7362
|
-
var o = ShapePropertyFactory.getConstructorFunction(),
|
|
7362
|
+
var o = ShapePropertyFactory.getConstructorFunction(), p = ShapePropertyFactory.getKeyframedConstructorFunction();
|
|
7363
7363
|
function y() {
|
|
7364
7364
|
}
|
|
7365
7365
|
y.prototype = {
|
|
@@ -7367,8 +7367,8 @@ function requireLottie() {
|
|
|
7367
7367
|
this.k && this.getValue();
|
|
7368
7368
|
var d = this.v;
|
|
7369
7369
|
g !== void 0 && (d = this.getValueAtTime(g, 0));
|
|
7370
|
-
var C,
|
|
7371
|
-
for (C = 0; C <
|
|
7370
|
+
var C, c = d._length, m = d[b], f = d.v, x = createSizedArray(c);
|
|
7371
|
+
for (C = 0; C < c; C += 1)
|
|
7372
7372
|
b === "i" || b === "o" ? x[C] = [m[C][0] - f[C][0], m[C][1] - f[C][1]] : x[C] = [m[C][0], m[C][1]];
|
|
7373
7373
|
return x;
|
|
7374
7374
|
},
|
|
@@ -7387,20 +7387,20 @@ function requireLottie() {
|
|
|
7387
7387
|
pointOnPath: function(b, g) {
|
|
7388
7388
|
var d = this.v;
|
|
7389
7389
|
g !== void 0 && (d = this.getValueAtTime(g, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(d));
|
|
7390
|
-
for (var C = this._segmentsLength,
|
|
7391
|
-
if (E +
|
|
7392
|
-
var T = f, I = d.c && f === x - 1 ? 0 : f + 1, D = (m - E) /
|
|
7393
|
-
A = bez.getPointInSegment(d.v[T], d.v[I], d.o[T], d.i[I], D,
|
|
7390
|
+
for (var C = this._segmentsLength, c = C.lengths, m = C.totalLength * b, f = 0, x = c.length, E = 0, A; f < x; ) {
|
|
7391
|
+
if (E + c[f].addedLength > m) {
|
|
7392
|
+
var T = f, I = d.c && f === x - 1 ? 0 : f + 1, D = (m - E) / c[f].addedLength;
|
|
7393
|
+
A = bez.getPointInSegment(d.v[T], d.v[I], d.o[T], d.i[I], D, c[f]);
|
|
7394
7394
|
break;
|
|
7395
7395
|
} else
|
|
7396
|
-
E +=
|
|
7396
|
+
E += c[f].addedLength;
|
|
7397
7397
|
f += 1;
|
|
7398
7398
|
}
|
|
7399
7399
|
return A || (A = d.c ? [d.v[0][0], d.v[0][1]] : [d.v[d._length - 1][0], d.v[d._length - 1][1]]), A;
|
|
7400
7400
|
},
|
|
7401
7401
|
vectorOnPath: function(b, g, d) {
|
|
7402
7402
|
b == 1 ? b = this.v.c : b == 0 && (b = 0.999);
|
|
7403
|
-
var C = this.pointOnPath(b, g),
|
|
7403
|
+
var C = this.pointOnPath(b, g), c = this.pointOnPath(b + 1e-3, g), m = c[0] - C[0], f = c[1] - C[1], x = Math.sqrt(Math.pow(m, 2) + Math.pow(f, 2));
|
|
7404
7404
|
if (x === 0)
|
|
7405
7405
|
return [0, 0];
|
|
7406
7406
|
var E = d === "tangent" ? [m / x, f / x] : [-f / x, m / x];
|
|
@@ -7414,11 +7414,11 @@ function requireLottie() {
|
|
|
7414
7414
|
},
|
|
7415
7415
|
setGroupProperty: expressionHelpers.setGroupProperty,
|
|
7416
7416
|
getValueAtTime: expressionHelpers.getStaticValueAtTime
|
|
7417
|
-
}, extendPrototype([y], o), extendPrototype([y],
|
|
7417
|
+
}, extendPrototype([y], o), extendPrototype([y], p), p.prototype.getValueAtTime = l, p.prototype.initiateExpression = ExpressionManager.initiateExpression;
|
|
7418
7418
|
var P = ShapePropertyFactory.getShapeProp;
|
|
7419
7419
|
ShapePropertyFactory.getShapeProp = function(u, b, g, d, C) {
|
|
7420
|
-
var
|
|
7421
|
-
return
|
|
7420
|
+
var c = P(u, b, g, d, C);
|
|
7421
|
+
return c.propertyIndex = b.ix, c.lock = !1, g === 3 ? expressionHelpers.searchExpressions(u, b.pt, c) : g === 4 && expressionHelpers.searchExpressions(u, b.ks, c), c.k && u.addDynamicProperty(c), c;
|
|
7422
7422
|
};
|
|
7423
7423
|
}
|
|
7424
7424
|
function initialize$1() {
|
|
@@ -7513,7 +7513,7 @@ function requireLottie() {
|
|
|
7513
7513
|
if (this.filterManager.effectElements[7].p.v !== 0 || this.filterManager.effectElements[8].p.v !== 100) {
|
|
7514
7514
|
var n = Math.min(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, l = Math.max(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, o = s.getTotalLength();
|
|
7515
7515
|
a = "0 0 0 " + o * n + " ";
|
|
7516
|
-
var
|
|
7516
|
+
var p = o * (l - n), y = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01, P = Math.floor(p / y), u;
|
|
7517
7517
|
for (u = 0; u < P; u += 1)
|
|
7518
7518
|
a += "1 " + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01 + " ";
|
|
7519
7519
|
a += "0 " + o * 10 + " 0 0";
|
|
@@ -7554,10 +7554,10 @@ function requireLottie() {
|
|
|
7554
7554
|
var r = createNS(t);
|
|
7555
7555
|
return r.setAttribute("type", "table"), e.appendChild(r), r;
|
|
7556
7556
|
}, SVGProLevelsFilter.prototype.getTableValue = function(t, e, r, i, s) {
|
|
7557
|
-
for (var a = 0, n = 256, l, o = Math.min(t, e),
|
|
7557
|
+
for (var a = 0, n = 256, l, o = Math.min(t, e), p = Math.max(t, e), y = Array.call(null, {
|
|
7558
7558
|
length: n
|
|
7559
7559
|
}), P, u = 0, b = s - i, g = e - t; a <= 256; )
|
|
7560
|
-
l = a / 256, l <= o ? P = g < 0 ? s : i : l >=
|
|
7560
|
+
l = a / 256, l <= o ? P = g < 0 ? s : i : l >= p ? P = g < 0 ? i : s : P = i + b * Math.pow((l - t) / g, 1 / r), y[u] = P, u += 1, a += 256 / (n - 1);
|
|
7561
7561
|
return y.join(" ");
|
|
7562
7562
|
}, SVGProLevelsFilter.prototype.renderFrame = function(t) {
|
|
7563
7563
|
if (t || this.filterManager._mdf) {
|
|
@@ -7572,8 +7572,8 @@ function requireLottie() {
|
|
|
7572
7572
|
l.setAttribute("in", "SourceAlpha"), l.setAttribute("result", i + "_drop_shadow_1"), l.setAttribute("stdDeviation", "0"), this.feGaussianBlur = l, t.appendChild(l);
|
|
7573
7573
|
var o = createNS("feOffset");
|
|
7574
7574
|
o.setAttribute("dx", "25"), o.setAttribute("dy", "0"), o.setAttribute("in", i + "_drop_shadow_1"), o.setAttribute("result", i + "_drop_shadow_2"), this.feOffset = o, t.appendChild(o);
|
|
7575
|
-
var
|
|
7576
|
-
|
|
7575
|
+
var p = createNS("feFlood");
|
|
7576
|
+
p.setAttribute("flood-color", "#00ff00"), p.setAttribute("flood-opacity", "1"), p.setAttribute("result", i + "_drop_shadow_3"), this.feFlood = p, t.appendChild(p);
|
|
7577
7577
|
var y = createNS("feComposite");
|
|
7578
7578
|
y.setAttribute("in", i + "_drop_shadow_3"), y.setAttribute("in2", i + "_drop_shadow_2"), y.setAttribute("operator", "in"), y.setAttribute("result", i + "_drop_shadow_4"), t.appendChild(y);
|
|
7579
7579
|
var P = this.createMergeNode(i, [i + "_drop_shadow_4", s]);
|
|
@@ -7650,8 +7650,8 @@ function requireLottie() {
|
|
|
7650
7650
|
this.effectsManager = t, this.type = effectTypes.TRANSFORM_EFFECT, this.matrix = new Matrix(), this.opacity = -1, this._mdf = !1, this._opMdf = !1;
|
|
7651
7651
|
}, TransformEffect.prototype.renderFrame = function(t) {
|
|
7652
7652
|
if (this._opMdf = !1, this._mdf = !1, t || this.effectsManager._mdf) {
|
|
7653
|
-
var e = this.effectsManager.effectElements, r = e[0].p.v, i = e[1].p.v, s = e[2].p.v === 1, a = e[3].p.v, n = s ? a : e[4].p.v, l = e[5].p.v, o = e[6].p.v,
|
|
7654
|
-
this.matrix.reset(), this.matrix.translate(-r[0], -r[1], r[2]), this.matrix.scale(n * 0.01, a * 0.01, 1), this.matrix.rotate(-
|
|
7653
|
+
var e = this.effectsManager.effectElements, r = e[0].p.v, i = e[1].p.v, s = e[2].p.v === 1, a = e[3].p.v, n = s ? a : e[4].p.v, l = e[5].p.v, o = e[6].p.v, p = e[7].p.v;
|
|
7654
|
+
this.matrix.reset(), this.matrix.translate(-r[0], -r[1], r[2]), this.matrix.scale(n * 0.01, a * 0.01, 1), this.matrix.rotate(-p * degToRads), this.matrix.skewFromAxis(-l * degToRads, (o + 90) * degToRads), this.matrix.translate(i[0], i[1], 0), this._mdf = !0, this.opacity !== e[8].p.v && (this.opacity = e[8].p.v, this._opMdf = !0);
|
|
7655
7655
|
}
|
|
7656
7656
|
};
|
|
7657
7657
|
function SVGTransformEffect(t, e) {
|
|
@@ -7686,16 +7686,16 @@ function _defineProperty(t, e, r) {
|
|
|
7686
7686
|
function _iterableToArrayLimit(t, e) {
|
|
7687
7687
|
var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
7688
7688
|
if (r != null) {
|
|
7689
|
-
var i, s, a, n, l = [], o = !0,
|
|
7689
|
+
var i, s, a, n, l = [], o = !0, p = !1;
|
|
7690
7690
|
try {
|
|
7691
7691
|
if (a = (r = r.call(t)).next, e !== 0) for (; !(o = (i = a.call(r)).done) && (l.push(i.value), l.length !== e); o = !0) ;
|
|
7692
7692
|
} catch (y) {
|
|
7693
|
-
|
|
7693
|
+
p = !0, s = y;
|
|
7694
7694
|
} finally {
|
|
7695
7695
|
try {
|
|
7696
7696
|
if (!o && r.return != null && (n = r.return(), Object(n) !== n)) return;
|
|
7697
7697
|
} finally {
|
|
7698
|
-
if (
|
|
7698
|
+
if (p) throw s;
|
|
7699
7699
|
}
|
|
7700
7700
|
}
|
|
7701
7701
|
return l;
|
|
@@ -7769,9 +7769,9 @@ function _unsupportedIterableToArray(t, e) {
|
|
|
7769
7769
|
}
|
|
7770
7770
|
}
|
|
7771
7771
|
var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"], useLottie = function t(e, r) {
|
|
7772
|
-
var i = e.animationData, s = e.loop, a = e.autoplay, n = e.initialSegment, l = e.onComplete, o = e.onLoopComplete,
|
|
7772
|
+
var i = e.animationData, s = e.loop, a = e.autoplay, n = e.initialSegment, l = e.onComplete, o = e.onLoopComplete, p = e.onEnterFrame, y = e.onSegmentStart, P = e.onConfigReady, u = e.onDataReady, b = e.onDataFailed, g = e.onLoadedImages, d = e.onDOMLoaded, C = e.onDestroy;
|
|
7773
7773
|
e.lottieRef, e.renderer, e.name, e.assetsPath, e.rendererSettings;
|
|
7774
|
-
var
|
|
7774
|
+
var c = _objectWithoutProperties(e, _excluded$1), m = useState(!1), f = _slicedToArray(m, 2), x = f[0], E = f[1], A = useRef(), T = useRef(null), I = function() {
|
|
7775
7775
|
var R;
|
|
7776
7776
|
(R = A.current) === null || R === void 0 || R.play();
|
|
7777
7777
|
}, D = function() {
|
|
@@ -7784,17 +7784,17 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
7784
7784
|
var O;
|
|
7785
7785
|
(O = A.current) === null || O === void 0 || O.setSpeed(R);
|
|
7786
7786
|
}, B = function(R, O) {
|
|
7787
|
-
var
|
|
7788
|
-
(
|
|
7789
|
-
},
|
|
7790
|
-
var
|
|
7791
|
-
(
|
|
7787
|
+
var N;
|
|
7788
|
+
(N = A.current) === null || N === void 0 || N.goToAndPlay(R, O);
|
|
7789
|
+
}, z = function(R, O) {
|
|
7790
|
+
var N;
|
|
7791
|
+
(N = A.current) === null || N === void 0 || N.goToAndStop(R, O);
|
|
7792
7792
|
}, j = function(R) {
|
|
7793
7793
|
var O;
|
|
7794
7794
|
(O = A.current) === null || O === void 0 || O.setDirection(R);
|
|
7795
7795
|
}, L = function(R, O) {
|
|
7796
|
-
var
|
|
7797
|
-
(
|
|
7796
|
+
var N;
|
|
7797
|
+
(N = A.current) === null || N === void 0 || N.playSegments(R, O);
|
|
7798
7798
|
}, _ = function(R) {
|
|
7799
7799
|
var O;
|
|
7800
7800
|
(O = A.current) === null || O === void 0 || O.setSubframe(R);
|
|
@@ -7808,10 +7808,10 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
7808
7808
|
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O;
|
|
7809
7809
|
if (T.current) {
|
|
7810
7810
|
(O = A.current) === null || O === void 0 || O.destroy();
|
|
7811
|
-
var
|
|
7811
|
+
var N = _objectSpread2(_objectSpread2(_objectSpread2({}, e), R), {}, {
|
|
7812
7812
|
container: T.current
|
|
7813
7813
|
});
|
|
7814
|
-
return A.current = lottie.loadAnimation(
|
|
7814
|
+
return A.current = lottie.loadAnimation(N), E(!!A.current), function() {
|
|
7815
7815
|
var W;
|
|
7816
7816
|
(W = A.current) === null || W === void 0 || W.destroy(), A.current = void 0;
|
|
7817
7817
|
};
|
|
@@ -7841,7 +7841,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
7841
7841
|
handler: o
|
|
7842
7842
|
}, {
|
|
7843
7843
|
name: "enterFrame",
|
|
7844
|
-
handler:
|
|
7844
|
+
handler: p
|
|
7845
7845
|
}, {
|
|
7846
7846
|
name: "segmentStart",
|
|
7847
7847
|
handler: y
|
|
@@ -7863,8 +7863,8 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
7863
7863
|
}, {
|
|
7864
7864
|
name: "destroy",
|
|
7865
7865
|
handler: C
|
|
7866
|
-
}], R = M.filter(function(
|
|
7867
|
-
return
|
|
7866
|
+
}], R = M.filter(function(N) {
|
|
7867
|
+
return N.handler != null;
|
|
7868
7868
|
});
|
|
7869
7869
|
if (R.length) {
|
|
7870
7870
|
var O = R.map(
|
|
@@ -7873,32 +7873,32 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
7873
7873
|
* @param {Listener} listener
|
|
7874
7874
|
* @return {Function} Function that deregister the listener
|
|
7875
7875
|
*/
|
|
7876
|
-
function(
|
|
7876
|
+
function(N) {
|
|
7877
7877
|
var W;
|
|
7878
|
-
return (W = A.current) === null || W === void 0 || W.addEventListener(
|
|
7878
|
+
return (W = A.current) === null || W === void 0 || W.addEventListener(N.name, N.handler), function() {
|
|
7879
7879
|
var q;
|
|
7880
|
-
(q = A.current) === null || q === void 0 || q.removeEventListener(
|
|
7880
|
+
(q = A.current) === null || q === void 0 || q.removeEventListener(N.name, N.handler);
|
|
7881
7881
|
};
|
|
7882
7882
|
}
|
|
7883
7883
|
);
|
|
7884
7884
|
return function() {
|
|
7885
|
-
O.forEach(function(
|
|
7886
|
-
return
|
|
7885
|
+
O.forEach(function(N) {
|
|
7886
|
+
return N();
|
|
7887
7887
|
});
|
|
7888
7888
|
};
|
|
7889
7889
|
}
|
|
7890
|
-
}, [l, o,
|
|
7890
|
+
}, [l, o, p, y, P, u, b, g, d, C]);
|
|
7891
7891
|
var V = /* @__PURE__ */ React__default.createElement("div", _objectSpread2({
|
|
7892
7892
|
style: r,
|
|
7893
7893
|
ref: T
|
|
7894
|
-
},
|
|
7894
|
+
}, c));
|
|
7895
7895
|
return {
|
|
7896
7896
|
View: V,
|
|
7897
7897
|
play: I,
|
|
7898
7898
|
stop: D,
|
|
7899
7899
|
pause: H,
|
|
7900
7900
|
setSpeed: G,
|
|
7901
|
-
goToAndStop:
|
|
7901
|
+
goToAndStop: z,
|
|
7902
7902
|
goToAndPlay: B,
|
|
7903
7903
|
setDirection: j,
|
|
7904
7904
|
playSegments: L,
|
|
@@ -7915,10 +7915,10 @@ function getContainerVisibility(t) {
|
|
|
7915
7915
|
return s / a;
|
|
7916
7916
|
}
|
|
7917
7917
|
function getContainerCursorPosition(t, e, r) {
|
|
7918
|
-
var i = t.getBoundingClientRect(), s = i.top, a = i.left, n = i.width, l = i.height, o = (e - a) / n,
|
|
7918
|
+
var i = t.getBoundingClientRect(), s = i.top, a = i.left, n = i.width, l = i.height, o = (e - a) / n, p = (r - s) / l;
|
|
7919
7919
|
return {
|
|
7920
7920
|
x: o,
|
|
7921
|
-
y:
|
|
7921
|
+
y: p
|
|
7922
7922
|
};
|
|
7923
7923
|
}
|
|
7924
7924
|
var useInitInteractivity = function t(e) {
|
|
@@ -7930,8 +7930,8 @@ var useInitInteractivity = function t(e) {
|
|
|
7930
7930
|
var l = function() {
|
|
7931
7931
|
var y = null, P = function() {
|
|
7932
7932
|
var b = getContainerVisibility(n), g = a.find(function(C) {
|
|
7933
|
-
var
|
|
7934
|
-
return
|
|
7933
|
+
var c = C.visibility;
|
|
7934
|
+
return c && b >= c[0] && b <= c[1];
|
|
7935
7935
|
});
|
|
7936
7936
|
if (g) {
|
|
7937
7937
|
if (g.type === "seek" && g.visibility && g.frames.length === 2) {
|
|
@@ -7947,18 +7947,18 @@ var useInitInteractivity = function t(e) {
|
|
|
7947
7947
|
};
|
|
7948
7948
|
}, o = function() {
|
|
7949
7949
|
var y = function(g, d) {
|
|
7950
|
-
var C = g,
|
|
7951
|
-
if (C !== -1 &&
|
|
7952
|
-
var m = getContainerCursorPosition(n, C,
|
|
7953
|
-
C = m.x,
|
|
7950
|
+
var C = g, c = d;
|
|
7951
|
+
if (C !== -1 && c !== -1) {
|
|
7952
|
+
var m = getContainerCursorPosition(n, C, c);
|
|
7953
|
+
C = m.x, c = m.y;
|
|
7954
7954
|
}
|
|
7955
7955
|
var f = a.find(function(A) {
|
|
7956
7956
|
var T = A.position;
|
|
7957
|
-
return T && Array.isArray(T.x) && Array.isArray(T.y) ? C >= T.x[0] && C <= T.x[1] &&
|
|
7957
|
+
return T && Array.isArray(T.x) && Array.isArray(T.y) ? C >= T.x[0] && C <= T.x[1] && c >= T.y[0] && c <= T.y[1] : T && !Number.isNaN(T.x) && !Number.isNaN(T.y) ? C === T.x && c === T.y : !1;
|
|
7958
7958
|
});
|
|
7959
7959
|
if (f) {
|
|
7960
7960
|
if (f.type === "seek" && f.position && Array.isArray(f.position.x) && Array.isArray(f.position.y) && f.frames.length === 2) {
|
|
7961
|
-
var x = (C - f.position.x[0]) / (f.position.x[1] - f.position.x[0]), E = (
|
|
7961
|
+
var x = (C - f.position.x[0]) / (f.position.x[1] - f.position.x[0]), E = (c - f.position.y[0]) / (f.position.y[1] - f.position.y[0]);
|
|
7962
7962
|
i.playSegments(f.frames, !0), i.goToAndStop(Math.ceil((x + E) / 2 * (f.frames[1] - f.frames[0])), !0);
|
|
7963
7963
|
}
|
|
7964
7964
|
f.type === "loop" && i.playSegments(f.frames, !0), f.type === "play" && (i.isPaused && i.resetSegments(!1), i.playSegments(f.frames)), f.type === "stop" && i.goToAndStop(f.frames[0], !0);
|
|
@@ -7989,7 +7989,7 @@ var useInitInteractivity = function t(e) {
|
|
|
7989
7989
|
wrapperRef: l
|
|
7990
7990
|
}), n;
|
|
7991
7991
|
}, _excluded = ["style", "interactivity"], Lottie = function t(e) {
|
|
7992
|
-
var r, i, s, a = e.style, n = e.interactivity, l = _objectWithoutProperties(e, _excluded), o = useLottie(l, a),
|
|
7992
|
+
var r, i, s, a = e.style, n = e.interactivity, l = _objectWithoutProperties(e, _excluded), o = useLottie(l, a), p = o.View, y = o.play, P = o.stop, u = o.pause, b = o.setSpeed, g = o.goToAndStop, d = o.goToAndPlay, C = o.setDirection, c = o.playSegments, m = o.setSubframe, f = o.getDuration, x = o.destroy, E = o.animationContainerRef, A = o.animationLoaded, T = o.animationItem;
|
|
7993
7993
|
return useEffect(function() {
|
|
7994
7994
|
e.lottieRef && (e.lottieRef.current = {
|
|
7995
7995
|
play: y,
|
|
@@ -7999,7 +7999,7 @@ var useInitInteractivity = function t(e) {
|
|
|
7999
7999
|
goToAndPlay: d,
|
|
8000
8000
|
goToAndStop: g,
|
|
8001
8001
|
setDirection: C,
|
|
8002
|
-
playSegments:
|
|
8002
|
+
playSegments: c,
|
|
8003
8003
|
setSubframe: m,
|
|
8004
8004
|
getDuration: f,
|
|
8005
8005
|
destroy: x,
|
|
@@ -8009,7 +8009,7 @@ var useInitInteractivity = function t(e) {
|
|
|
8009
8009
|
});
|
|
8010
8010
|
}, [(r = e.lottieRef) === null || r === void 0 ? void 0 : r.current]), useLottieInteractivity({
|
|
8011
8011
|
lottieObj: {
|
|
8012
|
-
View:
|
|
8012
|
+
View: p,
|
|
8013
8013
|
play: y,
|
|
8014
8014
|
stop: P,
|
|
8015
8015
|
pause: u,
|
|
@@ -8017,7 +8017,7 @@ var useInitInteractivity = function t(e) {
|
|
|
8017
8017
|
goToAndStop: g,
|
|
8018
8018
|
goToAndPlay: d,
|
|
8019
8019
|
setDirection: C,
|
|
8020
|
-
playSegments:
|
|
8020
|
+
playSegments: c,
|
|
8021
8021
|
setSubframe: m,
|
|
8022
8022
|
getDuration: f,
|
|
8023
8023
|
destroy: x,
|
|
@@ -8075,11 +8075,11 @@ const nm$2 = "Ani Nop ho so", ddd$2 = 0, h$2 = 250, w$2 = 250, meta$2 = { g: "Lo
|
|
|
8075
8075
|
extraInput: n,
|
|
8076
8076
|
subtitle: l,
|
|
8077
8077
|
dateColumnKey: o,
|
|
8078
|
-
isShared:
|
|
8078
|
+
isShared: p = !1,
|
|
8079
8079
|
isLoading: y,
|
|
8080
8080
|
closeModalOut: P = !0
|
|
8081
8081
|
}) => {
|
|
8082
|
-
const [u, b] = useState(""), [g, d] = useState(null), [C,
|
|
8082
|
+
const [u, b] = useState(""), [g, d] = useState(null), [C, c] = useState(!1), [m, f] = useState(23), [x, E] = useState(e.length > 23), [A, T] = useState(!1), I = getCurrentYear();
|
|
8083
8083
|
useEffect(() => {
|
|
8084
8084
|
T(e.length < 1), f(25), E(e.length > 25);
|
|
8085
8085
|
}, [u, e.length]);
|
|
@@ -8092,11 +8092,11 @@ const nm$2 = "Ani Nop ho so", ddd$2 = 0, h$2 = 250, w$2 = 250, meta$2 = { g: "Lo
|
|
|
8092
8092
|
)
|
|
8093
8093
|
)
|
|
8094
8094
|
), H = (G, B) => {
|
|
8095
|
-
if (G.hasModal && r)
|
|
8096
|
-
if (i &&
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8095
|
+
if (G.hasModal && r)
|
|
8096
|
+
if (i && B.estadoRegistro === "por_gestionar" && p) {
|
|
8097
|
+
const z = i(B, G);
|
|
8098
|
+
if (console.log("Estado por gestionar"), z === null) return;
|
|
8099
|
+
} else (B.estadoRegistro === "en_gestion" || !p) && (d({ row: B, column: G }), c(!0));
|
|
8100
8100
|
};
|
|
8101
8101
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8102
8102
|
/* @__PURE__ */ jsx(
|
|
@@ -8132,7 +8132,7 @@ const nm$2 = "Ani Nop ho so", ddd$2 = 0, h$2 = 250, w$2 = 250, meta$2 = { g: "Lo
|
|
|
8132
8132
|
searchTerm: u,
|
|
8133
8133
|
handleCellClick: H,
|
|
8134
8134
|
totalDias: s,
|
|
8135
|
-
isShared:
|
|
8135
|
+
isShared: p
|
|
8136
8136
|
}
|
|
8137
8137
|
),
|
|
8138
8138
|
/* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-between", children: [
|
|
@@ -8154,13 +8154,13 @@ const nm$2 = "Ani Nop ho so", ddd$2 = 0, h$2 = 250, w$2 = 250, meta$2 = { g: "Lo
|
|
|
8154
8154
|
CustomModal,
|
|
8155
8155
|
{
|
|
8156
8156
|
show: C,
|
|
8157
|
-
onHide: () =>
|
|
8157
|
+
onHide: () => c(!1),
|
|
8158
8158
|
title: `${g.column.label}`,
|
|
8159
8159
|
closeModalOut: P,
|
|
8160
8160
|
children: r(
|
|
8161
8161
|
g.row,
|
|
8162
8162
|
g.column,
|
|
8163
|
-
() =>
|
|
8163
|
+
() => c(!1)
|
|
8164
8164
|
)
|
|
8165
8165
|
}
|
|
8166
8166
|
)
|