@purpurds/illustrative-icon 7.6.0 → 7.7.0
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/LICENSE.txt +21 -21
- package/dist/animated-illustrative-icon-DHFverVA.js +10 -0
- package/dist/animated-illustrative-icon-DHFverVA.js.map +1 -0
- package/dist/{animated-illustrative-icon-Cxd93oY1.mjs → animated-illustrative-icon-DIij22F1.mjs} +312 -312
- package/dist/animated-illustrative-icon-DIij22F1.mjs.map +1 -0
- package/dist/animated-illustrative-icon.d.ts +4 -21
- package/dist/animated-illustrative-icon.d.ts.map +1 -1
- package/dist/components/404-error-duocolor.cjs.js +1 -1
- package/dist/components/404-error-duocolor.es.js +1 -1
- package/dist/components/404-error-offblack.cjs.js +1 -1
- package/dist/components/404-error-offblack.es.js +1 -1
- package/dist/components/cart-checkmark-duocolor.cjs.js +1 -1
- package/dist/components/cart-checkmark-duocolor.es.js +1 -1
- package/dist/components/cart-checkmark-offblack.cjs.js +1 -1
- package/dist/components/cart-checkmark-offblack.es.js +1 -1
- package/dist/components/checkmark-duocolor.cjs.js +1 -1
- package/dist/components/checkmark-duocolor.es.js +1 -1
- package/dist/components/checkmark-offblack.cjs.js +1 -1
- package/dist/components/checkmark-offblack.es.js +1 -1
- package/dist/components/document-checkmark-duocolor.cjs.js +1 -1
- package/dist/components/document-checkmark-duocolor.es.js +1 -1
- package/dist/components/document-checkmark-offblack.cjs.js +1 -1
- package/dist/components/document-checkmark-offblack.es.js +1 -1
- package/dist/components/getting-started-duocolor.cjs.js +1 -1
- package/dist/components/getting-started-duocolor.es.js +1 -1
- package/dist/components/getting-started-offblack.cjs.js +1 -1
- package/dist/components/getting-started-offblack.es.js +1 -1
- package/dist/components/hand-heart-duocolor.cjs.js +1 -1
- package/dist/components/hand-heart-duocolor.es.js +1 -1
- package/dist/components/hand-heart-offblack.cjs.js +1 -1
- package/dist/components/hand-heart-offblack.es.js +1 -1
- package/dist/components/id-error-duocolor.cjs.js +1 -1
- package/dist/components/id-error-duocolor.es.js +1 -1
- package/dist/components/id-error-offblack.cjs.js +1 -1
- package/dist/components/id-error-offblack.es.js +1 -1
- package/dist/components/search-duocolor.cjs.js +1 -1
- package/dist/components/search-duocolor.es.js +1 -1
- package/dist/components/search-field-duocolor.cjs.js +1 -1
- package/dist/components/search-field-duocolor.es.js +1 -1
- package/dist/components/search-field-offblack.cjs.js +1 -1
- package/dist/components/search-field-offblack.es.js +1 -1
- package/dist/components/search-offblack.cjs.js +1 -1
- package/dist/components/search-offblack.es.js +1 -1
- package/dist/components/search-question-duocolor.cjs.js +1 -1
- package/dist/components/search-question-duocolor.es.js +1 -1
- package/dist/components/search-question-offblack.cjs.js +1 -1
- package/dist/components/search-question-offblack.es.js +1 -1
- package/dist/components/settings-time-duocolor.cjs.js +1 -1
- package/dist/components/settings-time-duocolor.es.js +1 -1
- package/dist/components/settings-time-offblack.cjs.js +1 -1
- package/dist/components/settings-time-offblack.es.js +1 -1
- package/dist/components/support-checkmark-duocolor.cjs.js +1 -1
- package/dist/components/support-checkmark-duocolor.es.js +1 -1
- package/dist/components/support-checkmark-offblack.cjs.js +1 -1
- package/dist/components/support-checkmark-offblack.es.js +1 -1
- package/dist/components/technical-error-duocolor.cjs.js +1 -1
- package/dist/components/technical-error-duocolor.es.js +1 -1
- package/dist/components/technical-error-offblack.cjs.js +1 -1
- package/dist/components/technical-error-offblack.es.js +1 -1
- package/dist/components/user-checkmark-duocolor.cjs.js +1 -1
- package/dist/components/user-checkmark-duocolor.es.js +1 -1
- package/dist/components/user-checkmark-offblack.cjs.js +1 -1
- package/dist/components/user-checkmark-offblack.es.js +1 -1
- package/dist/components/user-error-duocolor.cjs.js +1 -1
- package/dist/components/user-error-duocolor.es.js +1 -1
- package/dist/components/user-error-offblack.cjs.js +1 -1
- package/dist/components/user-error-offblack.es.js +1 -1
- package/dist/components/user-lock-duocolor.cjs.js +1 -1
- package/dist/components/user-lock-duocolor.es.js +1 -1
- package/dist/components/user-lock-offblack.cjs.js +1 -1
- package/dist/components/user-lock-offblack.es.js +1 -1
- package/dist/components/user-plus-duocolor.cjs.js +1 -1
- package/dist/components/user-plus-duocolor.es.js +1 -1
- package/dist/components/user-plus-offblack.cjs.js +1 -1
- package/dist/components/user-plus-offblack.es.js +1 -1
- package/dist/components/user-settings-duocolor.cjs.js +1 -1
- package/dist/components/user-settings-duocolor.es.js +1 -1
- package/dist/components/user-settings-offblack.cjs.js +1 -1
- package/dist/components/user-settings-offblack.es.js +1 -1
- package/dist/illustrative-icon.cjs.js +3 -3
- package/dist/illustrative-icon.cjs.js.map +1 -1
- package/dist/illustrative-icon.es.js +308 -308
- package/dist/illustrative-icon.es.js.map +1 -1
- package/dist/static-illustrative-icon-D7TEjcF7.js.map +1 -1
- package/dist/static-illustrative-icon-z57e5Jl2.mjs.map +1 -1
- package/dist/static-illustrative-icon.d.ts +4 -9
- package/dist/static-illustrative-icon.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/animated-illustrative-icon.tsx +5 -15
- package/src/illustrative-icon.stories.tsx +0 -1
- package/src/static-illustrative-icon.tsx +5 -8
- package/dist/animated-illustrative-icon-C4tsMFn9.js +0 -10
- package/dist/animated-illustrative-icon-C4tsMFn9.js.map +0 -1
- package/dist/animated-illustrative-icon-Cxd93oY1.mjs.map +0 -1
package/dist/{animated-illustrative-icon-Cxd93oY1.mjs → animated-illustrative-icon-DIij22F1.mjs}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as fs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as vr, useRef as ps, useState as mr, useEffect as us } from "react";
|
|
3
3
|
import { g as gr } from "./_commonjsHelpers-C6fGbg64.mjs";
|
|
4
|
-
var
|
|
4
|
+
var Ie = { exports: {} }, yr = Ie.exports, cs;
|
|
5
5
|
function _r() {
|
|
6
|
-
return cs || (cs = 1, function(
|
|
7
|
-
typeof navigator < "u" && function(ue, Mt) {
|
|
8
|
-
|
|
6
|
+
return cs || (cs = 1, function(Le, pe) {
|
|
7
|
+
typeof document < "u" && typeof navigator < "u" && function(ue, Mt) {
|
|
8
|
+
Le.exports = Mt();
|
|
9
9
|
}(yr, function() {
|
|
10
|
-
var ue = "http://www.w3.org/2000/svg", Mt = "",
|
|
11
|
-
|
|
10
|
+
var ue = "http://www.w3.org/2000/svg", Mt = "", Ve = !1, ce = -999999, Zt = function(e) {
|
|
11
|
+
Ve = !!e;
|
|
12
12
|
}, Et = function() {
|
|
13
|
-
return
|
|
13
|
+
return Ve;
|
|
14
14
|
}, de = function(e) {
|
|
15
15
|
Mt = e;
|
|
16
16
|
}, at = function() {
|
|
@@ -27,7 +27,7 @@ function _r() {
|
|
|
27
27
|
Object.prototype.hasOwnProperty.call(n, r) && (e.prototype[r] = n[r]);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function $e(t) {
|
|
31
31
|
function e() {
|
|
32
32
|
}
|
|
33
33
|
return e.prototype = t, e;
|
|
@@ -123,8 +123,8 @@ function _r() {
|
|
|
123
123
|
length: t
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
-
var ve = !0, me = null, se = "",
|
|
127
|
-
function
|
|
126
|
+
var ve = !0, me = null, se = "", Re = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), kt = Math.pow, gi = Math.sqrt, Ut = Math.floor, ds = Math.min, yi = 150, Q = Math.PI / 180, Bt = 0.5519;
|
|
127
|
+
function ti(t, e, i, s) {
|
|
128
128
|
this.type = t, this.currentTime = e, this.totalTime = i, this.direction = s < 0 ? -1 : 1;
|
|
129
129
|
}
|
|
130
130
|
function _i(t, e) {
|
|
@@ -151,7 +151,7 @@ function _r() {
|
|
|
151
151
|
return t += 1, se + "__lottie_element_" + t;
|
|
152
152
|
};
|
|
153
153
|
}();
|
|
154
|
-
function
|
|
154
|
+
function ei(t, e, i) {
|
|
155
155
|
var s, n, r, o, c, h, m, _;
|
|
156
156
|
switch (o = Math.floor(t * 6), c = t * 6 - o, h = i * (1 - e), m = i * (1 - c * e), _ = i * (1 - (1 - c) * e), o % 6) {
|
|
157
157
|
case 0:
|
|
@@ -175,7 +175,7 @@ function _r() {
|
|
|
175
175
|
}
|
|
176
176
|
return [s, n, r];
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function ii(t, e, i) {
|
|
179
179
|
var s = Math.max(t, e, i), n = Math.min(t, e, i), r = s - n, o, c = s === 0 ? 0 : r / s, h = s / 255;
|
|
180
180
|
switch (s) {
|
|
181
181
|
case n:
|
|
@@ -194,16 +194,16 @@ function _r() {
|
|
|
194
194
|
return [o, c, h];
|
|
195
195
|
}
|
|
196
196
|
function ki(t, e) {
|
|
197
|
-
var i =
|
|
198
|
-
return i[1] += e, i[1] > 1 ? i[1] = 1 : i[1] <= 0 && (i[1] = 0),
|
|
197
|
+
var i = ii(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
198
|
+
return i[1] += e, i[1] > 1 ? i[1] = 1 : i[1] <= 0 && (i[1] = 0), ei(i[0], i[1], i[2]);
|
|
199
199
|
}
|
|
200
200
|
function Ai(t, e) {
|
|
201
|
-
var i =
|
|
202
|
-
return i[2] += e, i[2] > 1 ? i[2] = 1 : i[2] < 0 && (i[2] = 0),
|
|
201
|
+
var i = ii(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
202
|
+
return i[2] += e, i[2] > 1 ? i[2] = 1 : i[2] < 0 && (i[2] = 0), ei(i[0], i[1], i[2]);
|
|
203
203
|
}
|
|
204
204
|
function wi(t, e) {
|
|
205
|
-
var i =
|
|
206
|
-
return i[0] += e / 360, i[0] > 1 ? i[0] -= 1 : i[0] < 0 && (i[0] += 1),
|
|
205
|
+
var i = ii(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
206
|
+
return i[0] += e / 360, i[0] > 1 ? i[0] -= 1 : i[0] < 0 && (i[0] += 1), ei(i[0], i[1], i[2]);
|
|
207
207
|
}
|
|
208
208
|
(function() {
|
|
209
209
|
var t = [], e, i;
|
|
@@ -219,11 +219,11 @@ function _r() {
|
|
|
219
219
|
return ve;
|
|
220
220
|
}, _s = function(e) {
|
|
221
221
|
me = e;
|
|
222
|
-
},
|
|
222
|
+
}, Oe = function() {
|
|
223
223
|
return me;
|
|
224
|
-
},
|
|
224
|
+
}, Be = function(e) {
|
|
225
225
|
yi = e;
|
|
226
|
-
},
|
|
226
|
+
}, Ne = function() {
|
|
227
227
|
return yi;
|
|
228
228
|
}, bs = function(e) {
|
|
229
229
|
se = e;
|
|
@@ -231,13 +231,13 @@ function _r() {
|
|
|
231
231
|
function W(t) {
|
|
232
232
|
return document.createElementNS(ue, t);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function si(t) {
|
|
235
235
|
"@babel/helpers - typeof";
|
|
236
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
237
|
-
return typeof
|
|
238
|
-
} :
|
|
239
|
-
return
|
|
240
|
-
},
|
|
236
|
+
return si = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
237
|
+
return typeof e;
|
|
238
|
+
} : function(e) {
|
|
239
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
240
|
+
}, si(t);
|
|
241
241
|
}
|
|
242
242
|
var ge = /* @__PURE__ */ function() {
|
|
243
243
|
var t = 1, e = [], i, s, n = {
|
|
@@ -268,7 +268,7 @@ function _r() {
|
|
|
268
268
|
s || (s = o(function(b) {
|
|
269
269
|
function k() {
|
|
270
270
|
function C(F, d) {
|
|
271
|
-
var P, a, l = F.length, E, w, R,
|
|
271
|
+
var P, a, l = F.length, E, w, R, z;
|
|
272
272
|
for (a = 0; a < l; a += 1)
|
|
273
273
|
if (P = F[a], "ks" in P && !P.completed) {
|
|
274
274
|
if (P.completed = !0, P.hasMask) {
|
|
@@ -277,7 +277,7 @@ function _r() {
|
|
|
277
277
|
if (D[E].pt.k.i)
|
|
278
278
|
g(D[E].pt.k);
|
|
279
279
|
else
|
|
280
|
-
for (
|
|
280
|
+
for (z = D[E].pt.k.length, R = 0; R < z; R += 1)
|
|
281
281
|
D[E].pt.k[R].s && g(D[E].pt.k[R].s[0]), D[E].pt.k[R].e && g(D[E].pt.k[R].e[0]);
|
|
282
282
|
}
|
|
283
283
|
P.ty === 0 ? (P.layers = f(P.refId, d), C(P.layers, d)) : P.ty === 4 ? u(P.shapes) : P.ty === 5 && G(P);
|
|
@@ -436,7 +436,7 @@ function _r() {
|
|
|
436
436
|
a.assets[l].layers && P(a.assets[l].layers);
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
|
-
}(),
|
|
439
|
+
}(), q = /* @__PURE__ */ function() {
|
|
440
440
|
var F = [4, 1, 9];
|
|
441
441
|
function d(a) {
|
|
442
442
|
var l, E = a.length, w, R;
|
|
@@ -476,11 +476,11 @@ function _r() {
|
|
|
476
476
|
else a[l].ty === "gr" && d(a[l].it);
|
|
477
477
|
}
|
|
478
478
|
function P(a) {
|
|
479
|
-
var l, E, w = a.length, R,
|
|
479
|
+
var l, E, w = a.length, R, z, D, Y;
|
|
480
480
|
for (E = 0; E < w; E += 1) {
|
|
481
481
|
if (l = a[E], l.hasMask) {
|
|
482
482
|
var H = l.masksProperties;
|
|
483
|
-
for (
|
|
483
|
+
for (z = H.length, R = 0; R < z; R += 1)
|
|
484
484
|
if (H[R].pt.k.i)
|
|
485
485
|
H[R].pt.k.c = H[R].cl;
|
|
486
486
|
else
|
|
@@ -499,18 +499,18 @@ function _r() {
|
|
|
499
499
|
};
|
|
500
500
|
}();
|
|
501
501
|
function L(F) {
|
|
502
|
-
F.__complete || (
|
|
502
|
+
F.__complete || (q(F), T(F), x(F), I(F), N(F), C(F.layers, F.assets), y(F.chars, F.assets), F.__complete = !0);
|
|
503
503
|
}
|
|
504
504
|
function G(F) {
|
|
505
505
|
F.t.a.length === 0 && "m" in F.t.p;
|
|
506
506
|
}
|
|
507
507
|
var O = {};
|
|
508
|
-
return O.completeData = L, O.checkColors =
|
|
508
|
+
return O.completeData = L, O.checkColors = q, O.checkChars = x, O.checkPathProperties = I, O.checkShapes = N, O.completeLayers = C, O;
|
|
509
509
|
}
|
|
510
510
|
if (r.dataManager || (r.dataManager = k()), r.assetLoader || (r.assetLoader = /* @__PURE__ */ function() {
|
|
511
511
|
function C(v) {
|
|
512
512
|
var f = v.getResponseHeader("content-type");
|
|
513
|
-
return f && v.responseType === "json" && f.indexOf("json") !== -1 || v.response &&
|
|
513
|
+
return f && v.responseType === "json" && f.indexOf("json") !== -1 || v.response && si(v.response) === "object" ? v.response : v.response && typeof v.response == "string" ? JSON.parse(v.response) : v.responseText ? JSON.parse(v.responseText) : null;
|
|
514
514
|
}
|
|
515
515
|
function y(v, f, u, g) {
|
|
516
516
|
var A, T = new XMLHttpRequest();
|
|
@@ -650,7 +650,7 @@ function _r() {
|
|
|
650
650
|
}
|
|
651
651
|
function r(y) {
|
|
652
652
|
var v = s(y, this.assetsPath, this.path), f = W("image");
|
|
653
|
-
|
|
653
|
+
Re ? this.testImageLoaded(f) : f.addEventListener("load", this._imageLoaded, !1), f.addEventListener("error", (function() {
|
|
654
654
|
u.img = t, this._imageLoaded();
|
|
655
655
|
}).bind(this), !1), f.setAttributeNS("http://www.w3.org/1999/xlink", "href", v), this._elementHelper.append ? this._elementHelper.append(f) : this._elementHelper.appendChild(f);
|
|
656
656
|
var u = {
|
|
@@ -812,29 +812,29 @@ function _r() {
|
|
|
812
812
|
return t;
|
|
813
813
|
return "";
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function je(t) {
|
|
816
816
|
"@babel/helpers - typeof";
|
|
817
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
818
|
-
return typeof
|
|
819
|
-
} :
|
|
820
|
-
return
|
|
821
|
-
},
|
|
822
|
-
}
|
|
823
|
-
var
|
|
824
|
-
this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = pt(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = ys(), this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = ks(), this.imagePreloader = new Ss(), this.audioController = Kt(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new
|
|
817
|
+
return je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
818
|
+
return typeof e;
|
|
819
|
+
} : function(e) {
|
|
820
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
821
|
+
}, je(t);
|
|
822
|
+
}
|
|
823
|
+
var j = function() {
|
|
824
|
+
this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = pt(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = ys(), this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = ks(), this.imagePreloader = new Ss(), this.audioController = Kt(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new ti("drawnFrame", 0, 0, 0), this.expressionsPlugin = Oe();
|
|
825
825
|
};
|
|
826
|
-
X([Ci],
|
|
826
|
+
X([Ci], j), j.prototype.setParams = function(t) {
|
|
827
827
|
(t.wrapper || t.container) && (this.wrapper = t.wrapper || t.container);
|
|
828
828
|
var e = "svg";
|
|
829
829
|
t.animType ? e = t.animType : t.renderer && (e = t.renderer);
|
|
830
830
|
var i = ws(e);
|
|
831
831
|
this.renderer = new i(this, t.rendererSettings), this.imagePreloader.setCacheType(e, this.renderer.globalData.defs), this.renderer.setProjectInterface(this.projectInterface), this.animType = e, t.loop === "" || t.loop === null || t.loop === void 0 || t.loop === !0 ? this.loop = !0 : t.loop === !1 ? this.loop = !1 : this.loop = parseInt(t.loop, 10), this.autoplay = "autoplay" in t ? t.autoplay : !0, this.name = t.name ? t.name : "", this.autoloadSegments = Object.prototype.hasOwnProperty.call(t, "autoloadSegments") ? t.autoloadSegments : !0, this.assetsPath = t.assetsPath, this.initialSegment = t.initialSegment, t.audioFactory && this.audioController.setAudioFactory(t.audioFactory), t.animationData ? this.setupAnimation(t.animationData) : t.path && (t.path.lastIndexOf("\\") !== -1 ? this.path = t.path.substr(0, t.path.lastIndexOf("\\") + 1) : this.path = t.path.substr(0, t.path.lastIndexOf("/") + 1), this.fileName = t.path.substr(t.path.lastIndexOf("/") + 1), this.fileName = this.fileName.substr(0, this.fileName.lastIndexOf(".json")), ge.loadAnimation(t.path, this.configAnimation, this.onSetupError));
|
|
832
|
-
},
|
|
832
|
+
}, j.prototype.onSetupError = function() {
|
|
833
833
|
this.trigger("data_failed");
|
|
834
|
-
},
|
|
834
|
+
}, j.prototype.setupAnimation = function(t) {
|
|
835
835
|
ge.completeAnimation(t, this.configAnimation);
|
|
836
|
-
},
|
|
837
|
-
e &&
|
|
836
|
+
}, j.prototype.setData = function(t, e) {
|
|
837
|
+
e && je(e) !== "object" && (e = JSON.parse(e));
|
|
838
838
|
var i = {
|
|
839
839
|
wrapper: t,
|
|
840
840
|
animationData: e
|
|
@@ -846,7 +846,7 @@ function _r() {
|
|
|
846
846
|
i.autoplay = r !== "false", i.name = s.getNamedItem("data-name") ? s.getNamedItem("data-name").value : s.getNamedItem("data-bm-name") ? s.getNamedItem("data-bm-name").value : s.getNamedItem("bm-name") ? s.getNamedItem("bm-name").value : "";
|
|
847
847
|
var o = s.getNamedItem("data-anim-prerender") ? s.getNamedItem("data-anim-prerender").value : s.getNamedItem("data-bm-prerender") ? s.getNamedItem("data-bm-prerender").value : s.getNamedItem("bm-prerender") ? s.getNamedItem("bm-prerender").value : "";
|
|
848
848
|
o === "false" && (i.prerender = !1), i.path ? this.setParams(i) : this.trigger("destroy");
|
|
849
|
-
},
|
|
849
|
+
}, j.prototype.includeLayers = function(t) {
|
|
850
850
|
t.op > this.animationData.op && (this.animationData.op = t.op, this.totalFrames = Math.floor(t.op - this.animationData.ip));
|
|
851
851
|
var e = this.animationData.layers, i, s = e.length, n = t.layers, r, o = n.length;
|
|
852
852
|
for (r = 0; r < o; r += 1)
|
|
@@ -861,11 +861,11 @@ function _r() {
|
|
|
861
861
|
for (s = t.assets.length, i = 0; i < s; i += 1)
|
|
862
862
|
this.animationData.assets.push(t.assets[i]);
|
|
863
863
|
this.animationData.__complete = !1, ge.completeAnimation(this.animationData, this.onSegmentComplete);
|
|
864
|
-
},
|
|
864
|
+
}, j.prototype.onSegmentComplete = function(t) {
|
|
865
865
|
this.animationData = t;
|
|
866
|
-
var e =
|
|
866
|
+
var e = Oe();
|
|
867
867
|
e && e.initExpressions(this), this.loadNextSegment();
|
|
868
|
-
},
|
|
868
|
+
}, j.prototype.loadNextSegment = function() {
|
|
869
869
|
var t = this.animationData.segments;
|
|
870
870
|
if (!t || t.length === 0 || !this.autoloadSegments) {
|
|
871
871
|
this.trigger("data_ready"), this.timeCompleted = this.totalFrames;
|
|
@@ -877,58 +877,58 @@ function _r() {
|
|
|
877
877
|
this.segmentPos += 1, ge.loadData(i, this.includeLayers.bind(this), (function() {
|
|
878
878
|
this.trigger("data_failed");
|
|
879
879
|
}).bind(this));
|
|
880
|
-
},
|
|
880
|
+
}, j.prototype.loadSegments = function() {
|
|
881
881
|
var t = this.animationData.segments;
|
|
882
882
|
t || (this.timeCompleted = this.totalFrames), this.loadNextSegment();
|
|
883
|
-
},
|
|
883
|
+
}, j.prototype.imagesLoaded = function() {
|
|
884
884
|
this.trigger("loaded_images"), this.checkLoaded();
|
|
885
|
-
},
|
|
885
|
+
}, j.prototype.preloadImages = function() {
|
|
886
886
|
this.imagePreloader.setAssetsPath(this.assetsPath), this.imagePreloader.setPath(this.path), this.imagePreloader.loadAssets(this.animationData.assets, this.imagesLoaded.bind(this));
|
|
887
|
-
},
|
|
887
|
+
}, j.prototype.configAnimation = function(t) {
|
|
888
888
|
if (this.renderer)
|
|
889
889
|
try {
|
|
890
890
|
this.animationData = t, this.initialSegment ? (this.totalFrames = Math.floor(this.initialSegment[1] - this.initialSegment[0]), this.firstFrame = Math.round(this.initialSegment[0])) : (this.totalFrames = Math.floor(this.animationData.op - this.animationData.ip), this.firstFrame = Math.round(this.animationData.ip)), this.renderer.configAnimation(t), t.assets || (t.assets = []), this.assets = this.animationData.assets, this.frameRate = this.animationData.fr, this.frameMult = this.animationData.fr / 1e3, this.renderer.searchExtraCompositions(t.assets), this.markers = Ps(t.markers || []), this.trigger("config_ready"), this.preloadImages(), this.loadSegments(), this.updaFrameModifier(), this.waitForFontsLoaded(), this.isPaused && this.audioController.pause();
|
|
891
891
|
} catch (e) {
|
|
892
892
|
this.triggerConfigError(e);
|
|
893
893
|
}
|
|
894
|
-
},
|
|
894
|
+
}, j.prototype.waitForFontsLoaded = function() {
|
|
895
895
|
this.renderer && (this.renderer.globalData.fontManager.isLoaded ? this.checkLoaded() : setTimeout(this.waitForFontsLoaded.bind(this), 20));
|
|
896
|
-
},
|
|
896
|
+
}, j.prototype.checkLoaded = function() {
|
|
897
897
|
if (!this.isLoaded && this.renderer.globalData.fontManager.isLoaded && (this.imagePreloader.loadedImages() || this.renderer.rendererType !== "canvas") && this.imagePreloader.loadedFootages()) {
|
|
898
898
|
this.isLoaded = !0;
|
|
899
|
-
var t =
|
|
899
|
+
var t = Oe();
|
|
900
900
|
t && t.initExpressions(this), this.renderer.initItems(), setTimeout((function() {
|
|
901
901
|
this.trigger("DOMLoaded");
|
|
902
902
|
}).bind(this), 0), this.gotoFrame(), this.autoplay && this.play();
|
|
903
903
|
}
|
|
904
|
-
},
|
|
904
|
+
}, j.prototype.resize = function(t, e) {
|
|
905
905
|
var i = typeof t == "number" ? t : void 0, s = typeof e == "number" ? e : void 0;
|
|
906
906
|
this.renderer.updateContainerSize(i, s);
|
|
907
|
-
},
|
|
907
|
+
}, j.prototype.setSubframe = function(t) {
|
|
908
908
|
this.isSubframeEnabled = !!t;
|
|
909
|
-
},
|
|
909
|
+
}, j.prototype.gotoFrame = function() {
|
|
910
910
|
this.currentFrame = this.isSubframeEnabled ? this.currentRawFrame : ~~this.currentRawFrame, this.timeCompleted !== this.totalFrames && this.currentFrame > this.timeCompleted && (this.currentFrame = this.timeCompleted), this.trigger("enterFrame"), this.renderFrame(), this.trigger("drawnFrame");
|
|
911
|
-
},
|
|
911
|
+
}, j.prototype.renderFrame = function() {
|
|
912
912
|
if (!(this.isLoaded === !1 || !this.renderer))
|
|
913
913
|
try {
|
|
914
914
|
this.expressionsPlugin && this.expressionsPlugin.resetFrame(), this.renderer.renderFrame(this.currentFrame + this.firstFrame);
|
|
915
915
|
} catch (t) {
|
|
916
916
|
this.triggerRenderFrameError(t);
|
|
917
917
|
}
|
|
918
|
-
},
|
|
918
|
+
}, j.prototype.play = function(t) {
|
|
919
919
|
t && this.name !== t || this.isPaused === !0 && (this.isPaused = !1, this.trigger("_play"), this.audioController.resume(), this._idle && (this._idle = !1, this.trigger("_active")));
|
|
920
|
-
},
|
|
920
|
+
}, j.prototype.pause = function(t) {
|
|
921
921
|
t && this.name !== t || this.isPaused === !1 && (this.isPaused = !0, this.trigger("_pause"), this._idle = !0, this.trigger("_idle"), this.audioController.pause());
|
|
922
|
-
},
|
|
922
|
+
}, j.prototype.togglePause = function(t) {
|
|
923
923
|
t && this.name !== t || (this.isPaused === !0 ? this.play() : this.pause());
|
|
924
|
-
},
|
|
924
|
+
}, j.prototype.stop = function(t) {
|
|
925
925
|
t && this.name !== t || (this.pause(), this.playCount = 0, this._completedLoop = !1, this.setCurrentRawFrameValue(0));
|
|
926
|
-
},
|
|
926
|
+
}, j.prototype.getMarkerData = function(t) {
|
|
927
927
|
for (var e, i = 0; i < this.markers.length; i += 1)
|
|
928
928
|
if (e = this.markers[i], e.payload && e.payload.name === t)
|
|
929
929
|
return e;
|
|
930
930
|
return null;
|
|
931
|
-
},
|
|
931
|
+
}, j.prototype.goToAndStop = function(t, e, i) {
|
|
932
932
|
if (!(i && this.name !== i)) {
|
|
933
933
|
var s = Number(t);
|
|
934
934
|
if (isNaN(s)) {
|
|
@@ -937,7 +937,7 @@ function _r() {
|
|
|
937
937
|
} else e ? this.setCurrentRawFrameValue(t) : this.setCurrentRawFrameValue(t * this.frameModifier);
|
|
938
938
|
this.pause();
|
|
939
939
|
}
|
|
940
|
-
},
|
|
940
|
+
}, j.prototype.goToAndPlay = function(t, e, i) {
|
|
941
941
|
if (!(i && this.name !== i)) {
|
|
942
942
|
var s = Number(t);
|
|
943
943
|
if (isNaN(s)) {
|
|
@@ -947,51 +947,51 @@ function _r() {
|
|
|
947
947
|
this.goToAndStop(s, e, i);
|
|
948
948
|
this.play();
|
|
949
949
|
}
|
|
950
|
-
},
|
|
950
|
+
}, j.prototype.advanceTime = function(t) {
|
|
951
951
|
if (!(this.isPaused === !0 || this.isLoaded === !1)) {
|
|
952
952
|
var e = this.currentRawFrame + t * this.frameModifier, i = !1;
|
|
953
953
|
e >= this.totalFrames - 1 && this.frameModifier > 0 ? !this.loop || this.playCount === this.loop ? this.checkSegments(e > this.totalFrames ? e % this.totalFrames : 0) || (i = !0, e = this.totalFrames - 1) : e >= this.totalFrames ? (this.playCount += 1, this.checkSegments(e % this.totalFrames) || (this.setCurrentRawFrameValue(e % this.totalFrames), this._completedLoop = !0, this.trigger("loopComplete"))) : this.setCurrentRawFrameValue(e) : e < 0 ? this.checkSegments(e % this.totalFrames) || (this.loop && !(this.playCount-- <= 0 && this.loop !== !0) ? (this.setCurrentRawFrameValue(this.totalFrames + e % this.totalFrames), this._completedLoop ? this.trigger("loopComplete") : this._completedLoop = !0) : (i = !0, e = 0)) : this.setCurrentRawFrameValue(e), i && (this.setCurrentRawFrameValue(e), this.pause(), this.trigger("complete"));
|
|
954
954
|
}
|
|
955
|
-
},
|
|
955
|
+
}, j.prototype.adjustSegment = function(t, e) {
|
|
956
956
|
this.playCount = 0, t[1] < t[0] ? (this.frameModifier > 0 && (this.playSpeed < 0 ? this.setSpeed(-this.playSpeed) : this.setDirection(-1)), this.totalFrames = t[0] - t[1], this.timeCompleted = this.totalFrames, this.firstFrame = t[1], this.setCurrentRawFrameValue(this.totalFrames - 1e-3 - e)) : t[1] > t[0] && (this.frameModifier < 0 && (this.playSpeed < 0 ? this.setSpeed(-this.playSpeed) : this.setDirection(1)), this.totalFrames = t[1] - t[0], this.timeCompleted = this.totalFrames, this.firstFrame = t[0], this.setCurrentRawFrameValue(1e-3 + e)), this.trigger("segmentStart");
|
|
957
|
-
},
|
|
957
|
+
}, j.prototype.setSegment = function(t, e) {
|
|
958
958
|
var i = -1;
|
|
959
959
|
this.isPaused && (this.currentRawFrame + this.firstFrame < t ? i = t : this.currentRawFrame + this.firstFrame > e && (i = e - t)), this.firstFrame = t, this.totalFrames = e - t, this.timeCompleted = this.totalFrames, i !== -1 && this.goToAndStop(i, !0);
|
|
960
|
-
},
|
|
961
|
-
if (e && (this.segments.length = 0),
|
|
960
|
+
}, j.prototype.playSegments = function(t, e) {
|
|
961
|
+
if (e && (this.segments.length = 0), je(t[0]) === "object") {
|
|
962
962
|
var i, s = t.length;
|
|
963
963
|
for (i = 0; i < s; i += 1)
|
|
964
964
|
this.segments.push(t[i]);
|
|
965
965
|
} else
|
|
966
966
|
this.segments.push(t);
|
|
967
967
|
this.segments.length && e && this.adjustSegment(this.segments.shift(), 0), this.isPaused && this.play();
|
|
968
|
-
},
|
|
968
|
+
}, j.prototype.resetSegments = function(t) {
|
|
969
969
|
this.segments.length = 0, this.segments.push([this.animationData.ip, this.animationData.op]), t && this.checkSegments(0);
|
|
970
|
-
},
|
|
970
|
+
}, j.prototype.checkSegments = function(t) {
|
|
971
971
|
return this.segments.length ? (this.adjustSegment(this.segments.shift(), t), !0) : !1;
|
|
972
|
-
},
|
|
972
|
+
}, j.prototype.destroy = function(t) {
|
|
973
973
|
t && this.name !== t || !this.renderer || (this.renderer.destroy(), this.imagePreloader.destroy(), this.trigger("destroy"), this._cbs = null, this.onEnterFrame = null, this.onLoopComplete = null, this.onComplete = null, this.onSegmentStart = null, this.onDestroy = null, this.renderer = null, this.expressionsPlugin = null, this.imagePreloader = null, this.projectInterface = null);
|
|
974
|
-
},
|
|
974
|
+
}, j.prototype.setCurrentRawFrameValue = function(t) {
|
|
975
975
|
this.currentRawFrame = t, this.gotoFrame();
|
|
976
|
-
},
|
|
976
|
+
}, j.prototype.setSpeed = function(t) {
|
|
977
977
|
this.playSpeed = t, this.updaFrameModifier();
|
|
978
|
-
},
|
|
978
|
+
}, j.prototype.setDirection = function(t) {
|
|
979
979
|
this.playDirection = t < 0 ? -1 : 1, this.updaFrameModifier();
|
|
980
|
-
},
|
|
980
|
+
}, j.prototype.setLoop = function(t) {
|
|
981
981
|
this.loop = t;
|
|
982
|
-
},
|
|
982
|
+
}, j.prototype.setVolume = function(t, e) {
|
|
983
983
|
e && this.name !== e || this.audioController.setVolume(t);
|
|
984
|
-
},
|
|
984
|
+
}, j.prototype.getVolume = function() {
|
|
985
985
|
return this.audioController.getVolume();
|
|
986
|
-
},
|
|
986
|
+
}, j.prototype.mute = function(t) {
|
|
987
987
|
t && this.name !== t || this.audioController.mute();
|
|
988
|
-
},
|
|
988
|
+
}, j.prototype.unmute = function(t) {
|
|
989
989
|
t && this.name !== t || this.audioController.unmute();
|
|
990
|
-
},
|
|
990
|
+
}, j.prototype.updaFrameModifier = function() {
|
|
991
991
|
this.frameModifier = this.frameMult * this.playSpeed * this.playDirection, this.audioController.setRate(this.playSpeed * this.playDirection);
|
|
992
|
-
},
|
|
992
|
+
}, j.prototype.getPath = function() {
|
|
993
993
|
return this.path;
|
|
994
|
-
},
|
|
994
|
+
}, j.prototype.getAssetsPath = function(t) {
|
|
995
995
|
var e = "";
|
|
996
996
|
if (t.e)
|
|
997
997
|
e = t.p;
|
|
@@ -1001,30 +1001,30 @@ function _r() {
|
|
|
1001
1001
|
} else
|
|
1002
1002
|
e = this.path, e += t.u ? t.u : "", e += t.p;
|
|
1003
1003
|
return e;
|
|
1004
|
-
},
|
|
1004
|
+
}, j.prototype.getAssetData = function(t) {
|
|
1005
1005
|
for (var e = 0, i = this.assets.length; e < i; ) {
|
|
1006
1006
|
if (t === this.assets[e].id)
|
|
1007
1007
|
return this.assets[e];
|
|
1008
1008
|
e += 1;
|
|
1009
1009
|
}
|
|
1010
1010
|
return null;
|
|
1011
|
-
},
|
|
1011
|
+
}, j.prototype.hide = function() {
|
|
1012
1012
|
this.renderer.hide();
|
|
1013
|
-
},
|
|
1013
|
+
}, j.prototype.show = function() {
|
|
1014
1014
|
this.renderer.show();
|
|
1015
|
-
},
|
|
1015
|
+
}, j.prototype.getDuration = function(t) {
|
|
1016
1016
|
return t ? this.totalFrames : this.totalFrames / this.frameRate;
|
|
1017
|
-
},
|
|
1017
|
+
}, j.prototype.updateDocumentData = function(t, e, i) {
|
|
1018
1018
|
try {
|
|
1019
1019
|
var s = this.renderer.getElementByPath(t);
|
|
1020
1020
|
s.updateDocumentData(e, i);
|
|
1021
1021
|
} catch {
|
|
1022
1022
|
}
|
|
1023
|
-
},
|
|
1023
|
+
}, j.prototype.trigger = function(t) {
|
|
1024
1024
|
if (this._cbs && this._cbs[t])
|
|
1025
1025
|
switch (t) {
|
|
1026
1026
|
case "enterFrame":
|
|
1027
|
-
this.triggerEvent(t, new
|
|
1027
|
+
this.triggerEvent(t, new ti(t, this.currentFrame, this.totalFrames, this.frameModifier));
|
|
1028
1028
|
break;
|
|
1029
1029
|
case "drawnFrame":
|
|
1030
1030
|
this.drawnFrameEvent.currentTime = this.currentFrame, this.drawnFrameEvent.totalTime = this.totalFrames, this.drawnFrameEvent.direction = this.frameModifier, this.triggerEvent(t, this.drawnFrameEvent);
|
|
@@ -1044,11 +1044,11 @@ function _r() {
|
|
|
1044
1044
|
default:
|
|
1045
1045
|
this.triggerEvent(t);
|
|
1046
1046
|
}
|
|
1047
|
-
t === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new
|
|
1048
|
-
},
|
|
1047
|
+
t === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new ti(t, this.currentFrame, this.totalFrames, this.frameMult)), t === "loopComplete" && this.onLoopComplete && this.onLoopComplete.call(this, new bi(t, this.loop, this.playCount, this.frameMult)), t === "complete" && this.onComplete && this.onComplete.call(this, new _i(t, this.frameMult)), t === "segmentStart" && this.onSegmentStart && this.onSegmentStart.call(this, new Si(t, this.firstFrame, this.totalFrames)), t === "destroy" && this.onDestroy && this.onDestroy.call(this, new Pi(t, this));
|
|
1048
|
+
}, j.prototype.triggerRenderFrameError = function(t) {
|
|
1049
1049
|
var e = new vs(t, this.currentFrame);
|
|
1050
1050
|
this.triggerEvent("error", e), this.onError && this.onError.call(this, e);
|
|
1051
|
-
},
|
|
1051
|
+
}, j.prototype.triggerConfigError = function(t) {
|
|
1052
1052
|
var e = new ms(t, this.currentFrame);
|
|
1053
1053
|
this.triggerEvent("error", e), this.onError && this.onError.call(this, e);
|
|
1054
1054
|
};
|
|
@@ -1066,7 +1066,7 @@ function _r() {
|
|
|
1066
1066
|
return e[a].animation;
|
|
1067
1067
|
a += 1;
|
|
1068
1068
|
}
|
|
1069
|
-
var l = new
|
|
1069
|
+
var l = new j();
|
|
1070
1070
|
return p(l, d), l.setData(d, P), l;
|
|
1071
1071
|
}
|
|
1072
1072
|
function m() {
|
|
@@ -1076,7 +1076,7 @@ function _r() {
|
|
|
1076
1076
|
return a;
|
|
1077
1077
|
}
|
|
1078
1078
|
function _() {
|
|
1079
|
-
n += 1,
|
|
1079
|
+
n += 1, q();
|
|
1080
1080
|
}
|
|
1081
1081
|
function M() {
|
|
1082
1082
|
n -= 1;
|
|
@@ -1088,7 +1088,7 @@ function _r() {
|
|
|
1088
1088
|
}), s += 1;
|
|
1089
1089
|
}
|
|
1090
1090
|
function b(d) {
|
|
1091
|
-
var P = new
|
|
1091
|
+
var P = new j();
|
|
1092
1092
|
return p(P, null), P.setParams(d), P;
|
|
1093
1093
|
}
|
|
1094
1094
|
function k(d, P) {
|
|
@@ -1148,8 +1148,8 @@ function _r() {
|
|
|
1148
1148
|
a || (a = "svg");
|
|
1149
1149
|
var R = document.getElementsByTagName("body")[0];
|
|
1150
1150
|
R.innerText = "";
|
|
1151
|
-
var
|
|
1152
|
-
|
|
1151
|
+
var z = _t("div");
|
|
1152
|
+
z.style.width = "100%", z.style.height = "100%", z.setAttribute("data-bm-type", a), R.appendChild(z), h(z, d);
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
function I() {
|
|
@@ -1157,14 +1157,14 @@ function _r() {
|
|
|
1157
1157
|
for (d = 0; d < s; d += 1)
|
|
1158
1158
|
e[d].animation.resize();
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function q() {
|
|
1161
1161
|
!o && n && r && (window.requestAnimationFrame(v), r = !1);
|
|
1162
1162
|
}
|
|
1163
1163
|
function N() {
|
|
1164
1164
|
o = !0;
|
|
1165
1165
|
}
|
|
1166
1166
|
function L() {
|
|
1167
|
-
o = !1,
|
|
1167
|
+
o = !1, q();
|
|
1168
1168
|
}
|
|
1169
1169
|
function G(d, P) {
|
|
1170
1170
|
var a;
|
|
@@ -1182,7 +1182,7 @@ function _r() {
|
|
|
1182
1182
|
e[P].animation.unmute(d);
|
|
1183
1183
|
}
|
|
1184
1184
|
return t.registerAnimation = h, t.loadAnimation = b, t.setSpeed = k, t.setDirection = S, t.play = C, t.pause = f, t.stop = g, t.togglePause = A, t.searchAnimations = x, t.resize = I, t.goToAndStop = u, t.destroy = T, t.freeze = N, t.unfreeze = L, t.setVolume = G, t.mute = O, t.unmute = F, t.getRegisteredAnimations = m, t;
|
|
1185
|
-
}(),
|
|
1185
|
+
}(), _e = function() {
|
|
1186
1186
|
var t = {};
|
|
1187
1187
|
t.getBezierEasing = i;
|
|
1188
1188
|
var e = {};
|
|
@@ -1249,7 +1249,7 @@ function _r() {
|
|
|
1249
1249
|
for (var u = this._p[0], g = this._p[2], A = this._mSampleValues, T = 0, x = 1, I = c - 1; x !== I && A[x] <= f; ++x)
|
|
1250
1250
|
T += h;
|
|
1251
1251
|
--x;
|
|
1252
|
-
var
|
|
1252
|
+
var q = (f - A[x]) / (A[x + 1] - A[x]), N = T + q * h, L = k(N, u, g);
|
|
1253
1253
|
return L >= n ? C(f, N, u, g) : L === 0 ? N : S(f, T, T + h, u, g);
|
|
1254
1254
|
}
|
|
1255
1255
|
}, t;
|
|
@@ -1260,7 +1260,7 @@ function _r() {
|
|
|
1260
1260
|
return {
|
|
1261
1261
|
double: t
|
|
1262
1262
|
};
|
|
1263
|
-
}(),
|
|
1263
|
+
}(), ze = /* @__PURE__ */ function() {
|
|
1264
1264
|
return function(t, e, i) {
|
|
1265
1265
|
var s = 0, n = t, r = tt(n), o = {
|
|
1266
1266
|
newElement: c,
|
|
@@ -1279,11 +1279,11 @@ function _r() {
|
|
|
1279
1279
|
function t() {
|
|
1280
1280
|
return {
|
|
1281
1281
|
addedLength: 0,
|
|
1282
|
-
percents: U("float32",
|
|
1283
|
-
lengths: U("float32",
|
|
1282
|
+
percents: U("float32", Ne()),
|
|
1283
|
+
lengths: U("float32", Ne())
|
|
1284
1284
|
};
|
|
1285
1285
|
}
|
|
1286
|
-
return
|
|
1286
|
+
return ze(8, t);
|
|
1287
1287
|
}(), Ei = function() {
|
|
1288
1288
|
function t() {
|
|
1289
1289
|
return {
|
|
@@ -1297,7 +1297,7 @@ function _r() {
|
|
|
1297
1297
|
Mi.release(i.lengths[s]);
|
|
1298
1298
|
i.lengths.length = 0;
|
|
1299
1299
|
}
|
|
1300
|
-
return
|
|
1300
|
+
return ze(8, t, e);
|
|
1301
1301
|
}();
|
|
1302
1302
|
function Ts() {
|
|
1303
1303
|
var t = Math;
|
|
@@ -1313,13 +1313,13 @@ function _r() {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
var s = /* @__PURE__ */ function() {
|
|
1315
1315
|
return function(p, b, k, S) {
|
|
1316
|
-
var C =
|
|
1316
|
+
var C = Ne(), y, v, f, u, g, A = 0, T, x = [], I = [], q = Mi.newElement();
|
|
1317
1317
|
for (f = k.length, y = 0; y < C; y += 1) {
|
|
1318
1318
|
for (g = y / (C - 1), T = 0, v = 0; v < f; v += 1)
|
|
1319
1319
|
u = kt(1 - g, 3) * p[v] + 3 * kt(1 - g, 2) * g * k[v] + 3 * (1 - g) * kt(g, 2) * S[v] + kt(g, 3) * b[v], x[v] = u, I[v] !== null && (T += kt(x[v] - I[v], 2)), I[v] = x[v];
|
|
1320
|
-
T && (T = gi(T), A += T),
|
|
1320
|
+
T && (T = gi(T), A += T), q.percents[y] = g, q.lengths[y] = A;
|
|
1321
1321
|
}
|
|
1322
|
-
return
|
|
1322
|
+
return q.addedLength = A, q;
|
|
1323
1323
|
};
|
|
1324
1324
|
}();
|
|
1325
1325
|
function n(p) {
|
|
@@ -1339,13 +1339,13 @@ function _r() {
|
|
|
1339
1339
|
return function(b, k, S, C) {
|
|
1340
1340
|
var y = (b[0] + "_" + b[1] + "_" + k[0] + "_" + k[1] + "_" + S[0] + "_" + S[1] + "_" + C[0] + "_" + C[1]).replace(/\./g, "p");
|
|
1341
1341
|
if (!p[y]) {
|
|
1342
|
-
var v =
|
|
1342
|
+
var v = Ne(), f, u, g, A, T, x = 0, I, q, N = null;
|
|
1343
1343
|
b.length === 2 && (b[0] !== k[0] || b[1] !== k[1]) && e(b[0], b[1], k[0], k[1], b[0] + S[0], b[1] + S[1]) && e(b[0], b[1], k[0], k[1], k[0] + C[0], k[1] + C[1]) && (v = 2);
|
|
1344
1344
|
var L = new r(v);
|
|
1345
1345
|
for (g = S.length, f = 0; f < v; f += 1) {
|
|
1346
|
-
for (
|
|
1347
|
-
A = kt(1 - T, 3) * b[u] + 3 * kt(1 - T, 2) * T * (b[u] + S[u]) + 3 * (1 - T) * kt(T, 2) * (k[u] + C[u]) + kt(T, 3) * k[u],
|
|
1348
|
-
I = gi(I), x += I, L.points[f] = new o(I,
|
|
1346
|
+
for (q = tt(g), T = f / (v - 1), I = 0, u = 0; u < g; u += 1)
|
|
1347
|
+
A = kt(1 - T, 3) * b[u] + 3 * kt(1 - T, 2) * T * (b[u] + S[u]) + 3 * (1 - T) * kt(T, 2) * (k[u] + C[u]) + kt(T, 3) * k[u], q[u] = A, N !== null && (I += kt(q[u] - N[u], 2));
|
|
1348
|
+
I = gi(I), x += I, L.points[f] = new o(I, q), N = q;
|
|
1349
1349
|
}
|
|
1350
1350
|
L.segmentLength = x, p[y] = L;
|
|
1351
1351
|
}
|
|
@@ -1373,9 +1373,9 @@ function _r() {
|
|
|
1373
1373
|
C < 0 ? C = 0 : C > 1 && (C = 1);
|
|
1374
1374
|
var f = h(C, v);
|
|
1375
1375
|
y = y > 1 ? 1 : y;
|
|
1376
|
-
var u = h(y, v), g, A = p.length, T = 1 - f, x = 1 - u, I = T * T * T,
|
|
1376
|
+
var u = h(y, v), g, A = p.length, T = 1 - f, x = 1 - u, I = T * T * T, q = f * T * T * 3, N = f * f * T * 3, L = f * f * f, G = T * T * x, O = f * T * x + T * f * x + T * T * u, F = f * f * x + T * f * u + f * T * u, d = f * f * u, P = T * x * x, a = f * x * x + T * u * x + T * x * u, l = f * u * x + T * u * u + f * x * u, E = f * u * u, w = x * x * x, R = u * x * x + x * u * x + x * x * u, z = u * u * x + x * u * u + u * x * u, D = u * u * u;
|
|
1377
1377
|
for (g = 0; g < A; g += 1)
|
|
1378
|
-
_[g * 4] = t.round((I * p[g] +
|
|
1378
|
+
_[g * 4] = t.round((I * p[g] + q * k[g] + N * S[g] + L * b[g]) * 1e3) / 1e3, _[g * 4 + 1] = t.round((G * p[g] + O * k[g] + F * S[g] + d * b[g]) * 1e3) / 1e3, _[g * 4 + 2] = t.round((P * p[g] + a * k[g] + l * S[g] + E * b[g]) * 1e3) / 1e3, _[g * 4 + 3] = t.round((w * p[g] + R * k[g] + z * S[g] + D * b[g]) * 1e3) / 1e3;
|
|
1379
1379
|
return _;
|
|
1380
1380
|
}
|
|
1381
1381
|
return {
|
|
@@ -1412,7 +1412,7 @@ function _r() {
|
|
|
1412
1412
|
for (p = u.points[g].point.length, M = 0; M < p; M += 1)
|
|
1413
1413
|
s[M] = u.points[g].point[M];
|
|
1414
1414
|
} else {
|
|
1415
|
-
_.__fnct ? C = _.__fnct : (C =
|
|
1415
|
+
_.__fnct ? C = _.__fnct : (C = _e.getBezierEasing(h.o.x, h.o.y, h.i.x, h.i.y, h.n).get, _.__fnct = C), b = C((t - v) / (y - v));
|
|
1416
1416
|
var A = u.segmentLength * b, T, x = e.lastFrame < t && e._lastKeyframeIndex === r ? e._lastAddedLength : 0;
|
|
1417
1417
|
for (S = e.lastFrame < t && e._lastKeyframeIndex === r ? e._lastPoint : 0, c = !0, k = u.points.length; c; ) {
|
|
1418
1418
|
if (x += u.points[S].partialLength, A === 0 || b === 0 || S === u.points.length - 1) {
|
|
@@ -1429,7 +1429,7 @@ function _r() {
|
|
|
1429
1429
|
e._lastPoint = S, e._lastAddedLength = x - u.points[S].partialLength, e._lastKeyframeIndex = r;
|
|
1430
1430
|
}
|
|
1431
1431
|
} else {
|
|
1432
|
-
var I,
|
|
1432
|
+
var I, q, N, L, G;
|
|
1433
1433
|
if (o = h.s.length, f = m.s || h.e, this.sh && h.h !== 1)
|
|
1434
1434
|
if (t >= y)
|
|
1435
1435
|
s[0] = f[0], s[1] = f[1], s[2] = f[2];
|
|
@@ -1441,7 +1441,7 @@ function _r() {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
else
|
|
1443
1443
|
for (r = 0; r < o; r += 1)
|
|
1444
|
-
h.h !== 1 && (t >= y ? b = 1 : t < v ? b = 0 : (h.o.x.constructor === Array ? (_.__fnct || (_.__fnct = []), _.__fnct[r] ? C = _.__fnct[r] : (I = h.o.x[r] === void 0 ? h.o.x[0] : h.o.x[r],
|
|
1444
|
+
h.h !== 1 && (t >= y ? b = 1 : t < v ? b = 0 : (h.o.x.constructor === Array ? (_.__fnct || (_.__fnct = []), _.__fnct[r] ? C = _.__fnct[r] : (I = h.o.x[r] === void 0 ? h.o.x[0] : h.o.x[r], q = h.o.y[r] === void 0 ? h.o.y[0] : h.o.y[r], N = h.i.x[r] === void 0 ? h.i.x[0] : h.i.x[r], L = h.i.y[r] === void 0 ? h.i.y[0] : h.i.y[r], C = _e.getBezierEasing(I, q, N, L).get, _.__fnct[r] = C)) : _.__fnct ? C = _.__fnct : (I = h.o.x, q = h.o.y, N = h.i.x, L = h.i.y, C = _e.getBezierEasing(I, q, N, L).get, h.keyframeMetadata = C), b = C((t - v) / (y - v)))), f = m.s || h.e, G = h.h === 1 ? h.s[r] : h.s[r] + (f[r] - h.s[r]) * b, this.propType === "multidimensional" ? s[r] = G : s = G;
|
|
1445
1445
|
}
|
|
1446
1446
|
return e.lastIndex = n, s;
|
|
1447
1447
|
}
|
|
@@ -1466,7 +1466,7 @@ function _r() {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
return this._caching.lastFrame = t, this.pv;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function qe(t) {
|
|
1470
1470
|
var e;
|
|
1471
1471
|
if (this.propType === "unidimensional")
|
|
1472
1472
|
e = t * this.mult, xi(this.v - e) > 1e-5 && (this.v = e, this._mdf = !0);
|
|
@@ -1474,7 +1474,7 @@ function _r() {
|
|
|
1474
1474
|
for (var i = 0, s = this.v.length; i < s; )
|
|
1475
1475
|
e = t[i] * this.mult, xi(this.v[i] - e) > 1e-5 && (this.v[i] = e, this._mdf = !0), i += 1;
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function De() {
|
|
1478
1478
|
if (!(this.elem.globalData.frameId === this.frameId || !this.effectsSequence.length)) {
|
|
1479
1479
|
if (this.lock) {
|
|
1480
1480
|
this.setVValue(this.pv);
|
|
@@ -1487,18 +1487,18 @@ function _r() {
|
|
|
1487
1487
|
this.setVValue(i), this._isFirstFrame = !1, this.lock = !1, this.frameId = this.elem.globalData.frameId;
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function We(t) {
|
|
1491
1491
|
this.effectsSequence.push(t), this.container.addDynamicProperty(this);
|
|
1492
1492
|
}
|
|
1493
1493
|
function xs(t, e, i, s) {
|
|
1494
|
-
this.propType = "unidimensional", this.mult = i || 1, this.data = e, this.v = i ? e.k * i : e.k, this.pv = e.k, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.vel = 0, this.effectsSequence = [], this._isFirstFrame = !0, this.getValue =
|
|
1494
|
+
this.propType = "unidimensional", this.mult = i || 1, this.data = e, this.v = i ? e.k * i : e.k, this.pv = e.k, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.vel = 0, this.effectsSequence = [], this._isFirstFrame = !0, this.getValue = De, this.setVValue = qe, this.addEffect = We;
|
|
1495
1495
|
}
|
|
1496
1496
|
function Fs(t, e, i, s) {
|
|
1497
1497
|
this.propType = "multidimensional", this.mult = i || 1, this.data = e, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.frameId = -1;
|
|
1498
1498
|
var n, r = e.k.length;
|
|
1499
1499
|
for (this.v = U("float32", r), this.pv = U("float32", r), this.vel = U("float32", r), n = 0; n < r; n += 1)
|
|
1500
1500
|
this.v[n] = e.k[n] * this.mult, this.pv[n] = e.k[n];
|
|
1501
|
-
this._isFirstFrame = !0, this.effectsSequence = [], this.getValue =
|
|
1501
|
+
this._isFirstFrame = !0, this.effectsSequence = [], this.getValue = De, this.setVValue = qe, this.addEffect = We;
|
|
1502
1502
|
}
|
|
1503
1503
|
function Is(t, e, i, s) {
|
|
1504
1504
|
this.propType = "unidimensional", this.keyframes = e.k, this.keyframesMetadata = [], this.offsetTime = t.data.st, this.frameId = -1, this._caching = {
|
|
@@ -1506,14 +1506,14 @@ function _r() {
|
|
|
1506
1506
|
lastIndex: 0,
|
|
1507
1507
|
value: 0,
|
|
1508
1508
|
_lastKeyframeIndex: -1
|
|
1509
|
-
}, this.k = !0, this.kf = !0, this.data = e, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.v = Jt, this.pv = Jt, this._isFirstFrame = !0, this.getValue =
|
|
1509
|
+
}, this.k = !0, this.kf = !0, this.data = e, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.v = Jt, this.pv = Jt, this._isFirstFrame = !0, this.getValue = De, this.setVValue = qe, this.interpolateValue = Fi, this.effectsSequence = [Li.bind(this)], this.addEffect = We;
|
|
1510
1510
|
}
|
|
1511
1511
|
function Ls(t, e, i, s) {
|
|
1512
1512
|
this.propType = "multidimensional";
|
|
1513
1513
|
var n, r = e.k.length, o, c, h, m;
|
|
1514
1514
|
for (n = 0; n < r - 1; n += 1)
|
|
1515
1515
|
e.k[n].to && e.k[n].s && e.k[n + 1] && e.k[n + 1].s && (o = e.k[n].s, c = e.k[n + 1].s, h = e.k[n].to, m = e.k[n].ti, (o.length === 2 && !(o[0] === c[0] && o[1] === c[1]) && At.pointOnLine2D(o[0], o[1], c[0], c[1], o[0] + h[0], o[1] + h[1]) && At.pointOnLine2D(o[0], o[1], c[0], c[1], c[0] + m[0], c[1] + m[1]) || o.length === 3 && !(o[0] === c[0] && o[1] === c[1] && o[2] === c[2]) && At.pointOnLine3D(o[0], o[1], o[2], c[0], c[1], c[2], o[0] + h[0], o[1] + h[1], o[2] + h[2]) && At.pointOnLine3D(o[0], o[1], o[2], c[0], c[1], c[2], c[0] + m[0], c[1] + m[1], c[2] + m[2])) && (e.k[n].to = null, e.k[n].ti = null), o[0] === c[0] && o[1] === c[1] && h[0] === 0 && h[1] === 0 && m[0] === 0 && m[1] === 0 && (o.length === 2 || o[2] === c[2] && h[2] === 0 && m[2] === 0) && (e.k[n].to = null, e.k[n].ti = null));
|
|
1516
|
-
this.effectsSequence = [Li.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 = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.getValue =
|
|
1516
|
+
this.effectsSequence = [Li.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 = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.getValue = De, this.setVValue = qe, this.interpolateValue = Fi, this.frameId = -1;
|
|
1517
1517
|
var _ = e.k[0].s.length;
|
|
1518
1518
|
for (this.v = U("float32", _), this.pv = U("float32", _), n = 0; n < _; n += 1)
|
|
1519
1519
|
this.v[n] = Jt, this.pv[n] = Jt;
|
|
@@ -1521,7 +1521,7 @@ function _r() {
|
|
|
1521
1521
|
lastFrame: Jt,
|
|
1522
1522
|
lastIndex: 0,
|
|
1523
1523
|
value: U("float32", _)
|
|
1524
|
-
}, this.addEffect =
|
|
1524
|
+
}, this.addEffect = We;
|
|
1525
1525
|
}
|
|
1526
1526
|
var V = /* @__PURE__ */ function() {
|
|
1527
1527
|
function t(i, s, n, r, o) {
|
|
@@ -1567,7 +1567,7 @@ function _r() {
|
|
|
1567
1567
|
function t() {
|
|
1568
1568
|
return U("float32", 2);
|
|
1569
1569
|
}
|
|
1570
|
-
return
|
|
1570
|
+
return ze(8, t);
|
|
1571
1571
|
}();
|
|
1572
1572
|
function xt() {
|
|
1573
1573
|
this.c = !1, this._length = 0, this._maxLength = 8, this.v = tt(this._maxLength), this.o = tt(this._maxLength), this.i = tt(this._maxLength);
|
|
@@ -1629,15 +1629,15 @@ function _r() {
|
|
|
1629
1629
|
r.setTripleAt(n.v[o][0], n.v[o][1], n.o[o][0], n.o[o][1], n.i[o][0], n.i[o][1], o);
|
|
1630
1630
|
return r;
|
|
1631
1631
|
}
|
|
1632
|
-
var s =
|
|
1632
|
+
var s = ze(4, t, e);
|
|
1633
1633
|
return s.clone = i, s;
|
|
1634
1634
|
}();
|
|
1635
|
-
function
|
|
1635
|
+
function ri() {
|
|
1636
1636
|
this._length = 0, this._maxLength = 4, this.shapes = tt(this._maxLength);
|
|
1637
1637
|
}
|
|
1638
|
-
|
|
1638
|
+
ri.prototype.addShape = function(t) {
|
|
1639
1639
|
this._length === this._maxLength && (this.shapes = this.shapes.concat(tt(this._maxLength)), this._maxLength *= 2), this.shapes[this._length] = t, this._length += 1;
|
|
1640
|
-
},
|
|
1640
|
+
}, ri.prototype.releaseShapes = function() {
|
|
1641
1641
|
var t;
|
|
1642
1642
|
for (t = 0; t < this._length; t += 1)
|
|
1643
1643
|
ot.release(this.shapes[t]);
|
|
@@ -1650,7 +1650,7 @@ function _r() {
|
|
|
1650
1650
|
}, e = 0, i = 4, s = tt(i);
|
|
1651
1651
|
function n() {
|
|
1652
1652
|
var o;
|
|
1653
|
-
return e ? (e -= 1, o = s[e]) : o = new
|
|
1653
|
+
return e ? (e -= 1, o = s[e]) : o = new ri(), o;
|
|
1654
1654
|
}
|
|
1655
1655
|
function r(o) {
|
|
1656
1656
|
var c, h = o._length;
|
|
@@ -1659,10 +1659,10 @@ function _r() {
|
|
|
1659
1659
|
o._length = 0, e === i && (s = Ti.double(s), i *= 2), s[e] = o, e += 1;
|
|
1660
1660
|
}
|
|
1661
1661
|
return t;
|
|
1662
|
-
}(),
|
|
1662
|
+
}(), Ge = function() {
|
|
1663
1663
|
var t = -999999;
|
|
1664
1664
|
function e(y, v, f) {
|
|
1665
|
-
var u = f.lastIndex, g, A, T, x, I,
|
|
1665
|
+
var u = f.lastIndex, g, A, T, x, I, q, N, L, G, O = this.keyframes;
|
|
1666
1666
|
if (y < O[0].t - this.offsetTime)
|
|
1667
1667
|
g = O[0].s[0], T = !0, u = 0;
|
|
1668
1668
|
else if (y >= O[O.length - 1].t - this.offsetTime)
|
|
@@ -1677,13 +1677,13 @@ function _r() {
|
|
|
1677
1677
|
L = 0;
|
|
1678
1678
|
else {
|
|
1679
1679
|
var w;
|
|
1680
|
-
E.__fnct ? w = E.__fnct : (w =
|
|
1680
|
+
E.__fnct ? w = E.__fnct : (w = _e.getBezierEasing(a.o.x, a.o.y, a.i.x, a.i.y).get, E.__fnct = w), L = w((y - (a.t - this.offsetTime)) / (l.t - this.offsetTime - (a.t - this.offsetTime)));
|
|
1681
1681
|
}
|
|
1682
1682
|
A = l.s ? l.s[0] : a.e[0];
|
|
1683
1683
|
}
|
|
1684
1684
|
g = a.s[0];
|
|
1685
1685
|
}
|
|
1686
|
-
for (
|
|
1686
|
+
for (q = v._length, N = g.i[0].length, f.lastIndex = u, x = 0; x < q; x += 1)
|
|
1687
1687
|
for (I = 0; I < N; I += 1)
|
|
1688
1688
|
G = T ? g.i[x][I] : g.i[x][I] + (A.i[x][I] - g.i[x][I]) * L, v.i[x][I] = G, G = T ? g.o[x][I] : g.o[x][I] + (A.o[x][I] - g.o[x][I]) * L, v.o[x][I] = G, G = T ? g.v[x][I] : g.v[x][I] + (A.v[x][I] - g.v[x][I]) * L, v.v[x][I] = G;
|
|
1689
1689
|
}
|
|
@@ -1768,20 +1768,20 @@ function _r() {
|
|
|
1768
1768
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
1769
1769
|
},
|
|
1770
1770
|
convertStarToPath: function() {
|
|
1771
|
-
var f = Math.floor(this.pt.v) * 2, u = Math.PI * 2 / f, g = !0, A = this.or.v, T = this.ir.v, x = this.os.v, I = this.is.v,
|
|
1771
|
+
var f = Math.floor(this.pt.v) * 2, u = Math.PI * 2 / f, g = !0, A = this.or.v, T = this.ir.v, x = this.os.v, I = this.is.v, q = 2 * Math.PI * A / (f * 2), N = 2 * Math.PI * T / (f * 2), L, G, O, F, d = -Math.PI / 2;
|
|
1772
1772
|
d += this.r.v;
|
|
1773
1773
|
var P = this.data.d === 3 ? -1 : 1;
|
|
1774
1774
|
for (this.v._length = 0, L = 0; L < f; L += 1) {
|
|
1775
|
-
G = g ? A : T, O = g ? x : I, F = g ?
|
|
1775
|
+
G = g ? A : T, O = g ? x : I, F = g ? q : N;
|
|
1776
1776
|
var a = G * Math.cos(d), l = G * Math.sin(d), E = a === 0 && l === 0 ? 0 : l / Math.sqrt(a * a + l * l), w = a === 0 && l === 0 ? 0 : -a / Math.sqrt(a * a + l * l);
|
|
1777
1777
|
a += +this.p.v[0], l += +this.p.v[1], this.v.setTripleAt(a, l, a - E * F * O * P, l - w * F * O * P, a + E * F * O * P, l + w * F * O * P, L, !0), g = !g, d += u * P;
|
|
1778
1778
|
}
|
|
1779
1779
|
},
|
|
1780
1780
|
convertPolygonToPath: function() {
|
|
1781
|
-
var f = Math.floor(this.pt.v), u = Math.PI * 2 / f, g = this.or.v, A = this.os.v, T = 2 * Math.PI * g / (f * 4), x, I = -Math.PI * 0.5,
|
|
1781
|
+
var f = Math.floor(this.pt.v), u = Math.PI * 2 / f, g = this.or.v, A = this.os.v, T = 2 * Math.PI * g / (f * 4), x, I = -Math.PI * 0.5, q = this.data.d === 3 ? -1 : 1;
|
|
1782
1782
|
for (I += this.r.v, this.v._length = 0, x = 0; x < f; x += 1) {
|
|
1783
1783
|
var N = g * Math.cos(I), L = g * Math.sin(I), G = N === 0 && L === 0 ? 0 : L / Math.sqrt(N * N + L * L), O = N === 0 && L === 0 ? 0 : -N / Math.sqrt(N * N + L * L);
|
|
1784
|
-
N += +this.p.v[0], L += +this.p.v[1], this.v.setTripleAt(N, L, N - G * T * A *
|
|
1784
|
+
N += +this.p.v[0], L += +this.p.v[1], this.v.setTripleAt(N, L, N - G * T * A * q, L - O * T * A * q, N + G * T * A * q, L + O * T * A * q, x, !0), I += u * q;
|
|
1785
1785
|
}
|
|
1786
1786
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
1787
1787
|
}
|
|
@@ -1868,18 +1868,18 @@ function _r() {
|
|
|
1868
1868
|
function p(a, l, E) {
|
|
1869
1869
|
return !E && E !== 0 && (E = 1), a === 1 && l === 1 && E === 1 ? this : this._t(a, 0, 0, 0, 0, l, 0, 0, 0, 0, E, 0, 0, 0, 0, 1);
|
|
1870
1870
|
}
|
|
1871
|
-
function b(a, l, E, w, R,
|
|
1872
|
-
return this.props[0] = a, this.props[1] = l, this.props[2] = E, this.props[3] = w, this.props[4] = R, this.props[5] =
|
|
1871
|
+
function b(a, l, E, w, R, z, D, Y, H, et, ct, Ct, dt, nt, mt, K) {
|
|
1872
|
+
return this.props[0] = a, this.props[1] = l, this.props[2] = E, this.props[3] = w, this.props[4] = R, this.props[5] = z, this.props[6] = D, this.props[7] = Y, this.props[8] = H, this.props[9] = et, this.props[10] = ct, this.props[11] = Ct, this.props[12] = dt, this.props[13] = nt, this.props[14] = mt, this.props[15] = K, this;
|
|
1873
1873
|
}
|
|
1874
1874
|
function k(a, l, E) {
|
|
1875
1875
|
return E = E || 0, a !== 0 || l !== 0 || E !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, a, l, E, 1) : this;
|
|
1876
1876
|
}
|
|
1877
|
-
function S(a, l, E, w, R,
|
|
1877
|
+
function S(a, l, E, w, R, z, D, Y, H, et, ct, Ct, dt, nt, mt, K) {
|
|
1878
1878
|
var B = this.props;
|
|
1879
|
-
if (a === 1 && l === 0 && E === 0 && w === 0 && R === 0 &&
|
|
1880
|
-
return B[12] = B[12] * a + B[15] * dt, B[13] = B[13] *
|
|
1881
|
-
var Lt = B[0], Gt = B[1], Vt = B[2], Tt = B[3], Rt = B[4], Ot = B[5], vt = B[6], Xt = B[7], Yt = B[8], St = B[9], Ht = B[10], Pt = B[11], ie = B[12],
|
|
1882
|
-
return B[0] = Lt * a + Gt * R + Vt * H + Tt * dt, B[1] = Lt * l + Gt *
|
|
1879
|
+
if (a === 1 && l === 0 && E === 0 && w === 0 && R === 0 && z === 1 && D === 0 && Y === 0 && H === 0 && et === 0 && ct === 1 && Ct === 0)
|
|
1880
|
+
return B[12] = B[12] * a + B[15] * dt, B[13] = B[13] * z + B[15] * nt, B[14] = B[14] * ct + B[15] * mt, B[15] *= K, this._identityCalculated = !1, this;
|
|
1881
|
+
var Lt = B[0], Gt = B[1], Vt = B[2], Tt = B[3], Rt = B[4], Ot = B[5], vt = B[6], Xt = B[7], Yt = B[8], St = B[9], Ht = B[10], Pt = B[11], ie = B[12], Ue = B[13], Je = B[14], Qe = B[15];
|
|
1882
|
+
return B[0] = Lt * a + Gt * R + Vt * H + Tt * dt, B[1] = Lt * l + Gt * z + Vt * et + Tt * nt, B[2] = Lt * E + Gt * D + Vt * ct + Tt * mt, B[3] = Lt * w + Gt * Y + Vt * Ct + Tt * K, B[4] = Rt * a + Ot * R + vt * H + Xt * dt, B[5] = Rt * l + Ot * z + vt * et + Xt * nt, B[6] = Rt * E + Ot * D + vt * ct + Xt * mt, B[7] = Rt * w + Ot * Y + vt * Ct + Xt * K, B[8] = Yt * a + St * R + Ht * H + Pt * dt, B[9] = Yt * l + St * z + Ht * et + Pt * nt, B[10] = Yt * E + St * D + Ht * ct + Pt * mt, B[11] = Yt * w + St * Y + Ht * Ct + Pt * K, B[12] = ie * a + Ue * R + Je * H + Qe * dt, B[13] = ie * l + Ue * z + Je * et + Qe * nt, B[14] = ie * E + Ue * D + Je * ct + Qe * mt, B[15] = ie * w + Ue * Y + Je * Ct + Qe * K, this._identityCalculated = !1, this;
|
|
1883
1883
|
}
|
|
1884
1884
|
function C(a) {
|
|
1885
1885
|
var l = a.props;
|
|
@@ -1924,17 +1924,17 @@ function _r() {
|
|
|
1924
1924
|
return a * this.props[2] + l * this.props[6] + E * this.props[10] + this.props[14];
|
|
1925
1925
|
}
|
|
1926
1926
|
function I() {
|
|
1927
|
-
var a = this.props[0] * this.props[5] - this.props[1] * this.props[4], l = this.props[5] / a, E = -this.props[1] / a, w = -this.props[4] / a, R = this.props[0] / a,
|
|
1928
|
-
return Y.props[0] = l, Y.props[1] = E, Y.props[4] = w, Y.props[5] = R, Y.props[12] =
|
|
1927
|
+
var a = this.props[0] * this.props[5] - this.props[1] * this.props[4], l = this.props[5] / a, E = -this.props[1] / a, w = -this.props[4] / a, R = this.props[0] / a, z = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / a, D = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / a, Y = new ht();
|
|
1928
|
+
return Y.props[0] = l, Y.props[1] = E, Y.props[4] = w, Y.props[5] = R, Y.props[12] = z, Y.props[13] = D, Y;
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1930
|
+
function q(a) {
|
|
1931
1931
|
var l = this.getInverseMatrix();
|
|
1932
1932
|
return l.applyToPointArray(a[0], a[1], a[2] || 0);
|
|
1933
1933
|
}
|
|
1934
1934
|
function N(a) {
|
|
1935
1935
|
var l, E = a.length, w = [];
|
|
1936
1936
|
for (l = 0; l < E; l += 1)
|
|
1937
|
-
w[l] =
|
|
1937
|
+
w[l] = q(a[l]);
|
|
1938
1938
|
return w;
|
|
1939
1939
|
}
|
|
1940
1940
|
function L(a, l, E) {
|
|
@@ -1942,8 +1942,8 @@ function _r() {
|
|
|
1942
1942
|
if (this.isIdentity())
|
|
1943
1943
|
w[0] = a[0], w[1] = a[1], w[2] = l[0], w[3] = l[1], w[4] = E[0], w[5] = E[1];
|
|
1944
1944
|
else {
|
|
1945
|
-
var R = this.props[0],
|
|
1946
|
-
w[0] = a[0] * R + a[1] * D + H, w[1] = a[0] *
|
|
1945
|
+
var R = this.props[0], z = this.props[1], D = this.props[4], Y = this.props[5], H = this.props[12], et = this.props[13];
|
|
1946
|
+
w[0] = a[0] * R + a[1] * D + H, w[1] = a[0] * z + a[1] * Y + et, w[2] = l[0] * R + l[1] * D + H, w[3] = l[0] * z + l[1] * Y + et, w[4] = E[0] * R + E[1] * D + H, w[5] = E[0] * z + E[1] * Y + et;
|
|
1947
1947
|
}
|
|
1948
1948
|
return w;
|
|
1949
1949
|
}
|
|
@@ -1967,20 +1967,20 @@ function _r() {
|
|
|
1967
1967
|
return a < 1e-6 && a > 0 || a > -1e-6 && a < 0 ? s(a * l) / l : a;
|
|
1968
1968
|
}
|
|
1969
1969
|
function P() {
|
|
1970
|
-
var a = this.props, l = d(a[0]), E = d(a[1]), w = d(a[4]), R = d(a[5]),
|
|
1971
|
-
return "matrix(" + l + "," + E + "," + w + "," + R + "," +
|
|
1970
|
+
var a = this.props, l = d(a[0]), E = d(a[1]), w = d(a[4]), R = d(a[5]), z = d(a[12]), D = d(a[13]);
|
|
1971
|
+
return "matrix(" + l + "," + E + "," + w + "," + R + "," + z + "," + D + ")";
|
|
1972
1972
|
}
|
|
1973
1973
|
return function() {
|
|
1974
|
-
this.reset = n, this.rotate = r, this.rotateX = o, this.rotateY = c, this.rotateZ = h, this.skew = _, this.skewFromAxis = M, this.shear = m, this.scale = p, this.setTransform = b, this.translate = k, this.transform = S, this.multiply = C, this.applyToPoint = g, this.applyToX = A, this.applyToY = T, this.applyToZ = x, this.applyToPointArray = G, this.applyToTriplePoints = L, this.applyToPointStringified = O, this.toCSS = F, this.to2dCSS = P, this.clone = f, this.cloneFromProps = u, this.equals = v, this.inversePoints = N, this.inversePoint =
|
|
1974
|
+
this.reset = n, this.rotate = r, this.rotateX = o, this.rotateY = c, this.rotateZ = h, this.skew = _, this.skewFromAxis = M, this.shear = m, this.scale = p, this.setTransform = b, this.translate = k, this.transform = S, this.multiply = C, this.applyToPoint = g, this.applyToX = A, this.applyToY = T, this.applyToZ = x, this.applyToPointArray = G, this.applyToTriplePoints = L, this.applyToPointStringified = O, this.toCSS = F, this.to2dCSS = P, this.clone = f, this.cloneFromProps = u, this.equals = v, this.inversePoints = N, this.inversePoint = q, this.getInverseMatrix = I, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = U("float32", 16), this.reset();
|
|
1975
1975
|
};
|
|
1976
1976
|
}();
|
|
1977
|
-
function
|
|
1977
|
+
function ni(t) {
|
|
1978
1978
|
"@babel/helpers - typeof";
|
|
1979
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
1980
|
-
return typeof
|
|
1981
|
-
} :
|
|
1982
|
-
return
|
|
1983
|
-
},
|
|
1979
|
+
return ni = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1980
|
+
return typeof e;
|
|
1981
|
+
} : function(e) {
|
|
1982
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1983
|
+
}, ni(t);
|
|
1984
1984
|
}
|
|
1985
1985
|
var Z = {};
|
|
1986
1986
|
function Vs(t) {
|
|
@@ -2002,37 +2002,37 @@ function _r() {
|
|
|
2002
2002
|
if (typeof t == "string")
|
|
2003
2003
|
switch (t) {
|
|
2004
2004
|
case "high":
|
|
2005
|
-
|
|
2005
|
+
Be(200);
|
|
2006
2006
|
break;
|
|
2007
2007
|
default:
|
|
2008
2008
|
case "medium":
|
|
2009
|
-
|
|
2009
|
+
Be(50);
|
|
2010
2010
|
break;
|
|
2011
2011
|
case "low":
|
|
2012
|
-
|
|
2012
|
+
Be(10);
|
|
2013
2013
|
break;
|
|
2014
2014
|
}
|
|
2015
|
-
else !isNaN(t) && t > 1 &&
|
|
2015
|
+
else !isNaN(t) && t > 1 && Be(t);
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function js() {
|
|
2018
2018
|
return typeof navigator < "u";
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2020
|
+
function zs(t, e) {
|
|
2021
2021
|
t === "expressions" && _s(e);
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function qs(t) {
|
|
2024
2024
|
switch (t) {
|
|
2025
2025
|
case "propertyFactory":
|
|
2026
2026
|
return V;
|
|
2027
2027
|
case "shapePropertyFactory":
|
|
2028
|
-
return
|
|
2028
|
+
return Ge;
|
|
2029
2029
|
case "matrix":
|
|
2030
2030
|
return ht;
|
|
2031
2031
|
default:
|
|
2032
2032
|
return null;
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
|
-
Z.play = it.play, Z.pause = it.pause, Z.setLocationHref = Vs, Z.togglePause = it.togglePause, Z.setSpeed = it.setSpeed, Z.setDirection = it.setDirection, Z.stop = it.stop, Z.searchAnimations = Vi, Z.registerAnimation = it.registerAnimation, Z.loadAnimation = Bs, Z.setSubframeRendering = Rs, Z.resize = it.resize, Z.goToAndStop = it.goToAndStop, Z.destroy = it.destroy, Z.setQuality = Ns, Z.inBrowser =
|
|
2035
|
+
Z.play = it.play, Z.pause = it.pause, Z.setLocationHref = Vs, Z.togglePause = it.togglePause, Z.setSpeed = it.setSpeed, Z.setDirection = it.setDirection, Z.stop = it.stop, Z.searchAnimations = Vi, Z.registerAnimation = it.registerAnimation, Z.loadAnimation = Bs, Z.setSubframeRendering = Rs, Z.resize = it.resize, Z.goToAndStop = it.goToAndStop, Z.destroy = it.destroy, Z.setQuality = Ns, Z.inBrowser = js, Z.installPlugin = zs, Z.freeze = it.freeze, Z.unfreeze = it.unfreeze, Z.setVolume = it.setVolume, Z.mute = it.mute, Z.unmute = it.unmute, Z.getRegisteredAnimations = it.getRegisteredAnimations, Z.useWebWorker = Zt, Z.setIDPrefix = Os, Z.__getFactory = qs, Z.version = "5.13.0";
|
|
2036
2036
|
function Ds() {
|
|
2037
2037
|
document.readyState === "complete" && (clearInterval(Xs), Vi());
|
|
2038
2038
|
}
|
|
@@ -2053,7 +2053,7 @@ function _r() {
|
|
|
2053
2053
|
}
|
|
2054
2054
|
var Xs = setInterval(Ds, 100);
|
|
2055
2055
|
try {
|
|
2056
|
-
|
|
2056
|
+
ni(pe) !== "object" && (window.bodymovin = Z);
|
|
2057
2057
|
} catch {
|
|
2058
2058
|
}
|
|
2059
2059
|
var Nt = function() {
|
|
@@ -2219,11 +2219,11 @@ function _r() {
|
|
|
2219
2219
|
}
|
|
2220
2220
|
return k;
|
|
2221
2221
|
};
|
|
2222
|
-
function
|
|
2222
|
+
function be() {
|
|
2223
2223
|
}
|
|
2224
|
-
X([gt],
|
|
2224
|
+
X([gt], be), be.prototype.initModifierProperties = function(t, e) {
|
|
2225
2225
|
this.getValue = this.processKeys, this.amount = V.getProp(t, e.a, 0, null, this), this._isAnimated = !!this.amount.effectsSequence.length;
|
|
2226
|
-
},
|
|
2226
|
+
}, be.prototype.processPath = function(t, e) {
|
|
2227
2227
|
var i = e / 100, s = [0, 0], n = t._length, r = 0;
|
|
2228
2228
|
for (r = 0; r < n; r += 1)
|
|
2229
2229
|
s[0] += t.v[r][0], s[1] += t.v[r][1];
|
|
@@ -2234,7 +2234,7 @@ function _r() {
|
|
|
2234
2234
|
for (r = 0; r < n; r += 1)
|
|
2235
2235
|
c = t.v[r][0] + (s[0] - t.v[r][0]) * i, h = t.v[r][1] + (s[1] - t.v[r][1]) * i, m = t.o[r][0] + (s[0] - t.o[r][0]) * -i, _ = t.o[r][1] + (s[1] - t.o[r][1]) * -i, M = t.i[r][0] + (s[0] - t.i[r][0]) * -i, p = t.i[r][1] + (s[1] - t.i[r][1]) * -i, o.setTripleAt(c, h, m, _, M, p, r);
|
|
2236
2236
|
return o;
|
|
2237
|
-
},
|
|
2237
|
+
}, be.prototype.processShapes = function(t) {
|
|
2238
2238
|
var e, i, s = this.shapes.length, n, r, o = this.amount.v;
|
|
2239
2239
|
if (o !== 0) {
|
|
2240
2240
|
var c, h;
|
|
@@ -2452,18 +2452,18 @@ function _r() {
|
|
|
2452
2452
|
return o;
|
|
2453
2453
|
}, wt.prototype.addShape = function() {
|
|
2454
2454
|
};
|
|
2455
|
-
function
|
|
2455
|
+
function Se() {
|
|
2456
2456
|
}
|
|
2457
|
-
X([gt],
|
|
2457
|
+
X([gt], Se), Se.prototype.initModifierProperties = function(t, e) {
|
|
2458
2458
|
this.getValue = this.processKeys, this.rd = V.getProp(t, e.r, 0, null, this), this._isAnimated = !!this.rd.effectsSequence.length;
|
|
2459
|
-
},
|
|
2459
|
+
}, Se.prototype.processPath = function(t, e) {
|
|
2460
2460
|
var i = ot.newElement();
|
|
2461
2461
|
i.c = t.c;
|
|
2462
2462
|
var s, n = t._length, r, o, c, h, m, _, M = 0, p, b, k, S, C, y;
|
|
2463
2463
|
for (s = 0; s < n; s += 1)
|
|
2464
2464
|
r = t.v[s], c = t.o[s], o = t.i[s], r[0] === c[0] && r[1] === c[1] && r[0] === o[0] && r[1] === o[1] ? (s === 0 || s === n - 1) && !t.c ? (i.setTripleAt(r[0], r[1], c[0], c[1], o[0], o[1], M), M += 1) : (s === 0 ? h = t.v[n - 1] : h = t.v[s - 1], m = Math.sqrt(Math.pow(r[0] - h[0], 2) + Math.pow(r[1] - h[1], 2)), _ = m ? Math.min(m / 2, e) / m : 0, C = r[0] + (h[0] - r[0]) * _, p = C, y = r[1] - (r[1] - h[1]) * _, b = y, k = p - (p - r[0]) * Bt, S = b - (b - r[1]) * Bt, i.setTripleAt(p, b, k, S, C, y, M), M += 1, s === n - 1 ? h = t.v[0] : h = t.v[s + 1], m = Math.sqrt(Math.pow(r[0] - h[0], 2) + Math.pow(r[1] - h[1], 2)), _ = m ? Math.min(m / 2, e) / m : 0, k = r[0] + (h[0] - r[0]) * _, p = k, S = r[1] + (h[1] - r[1]) * _, b = S, C = p - (p - r[0]) * Bt, y = b - (b - r[1]) * Bt, i.setTripleAt(p, b, k, S, C, y, M), M += 1) : (i.setTripleAt(t.v[s][0], t.v[s][1], t.o[s][0], t.o[s][1], t.i[s][0], t.i[s][1], M), M += 1);
|
|
2465
2465
|
return i;
|
|
2466
|
-
},
|
|
2466
|
+
}, Se.prototype.processShapes = function(t) {
|
|
2467
2467
|
var e, i, s = this.shapes.length, n, r, o = this.rd.v;
|
|
2468
2468
|
if (o !== 0) {
|
|
2469
2469
|
var c, h;
|
|
@@ -2476,7 +2476,7 @@ function _r() {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
2478
2478
|
};
|
|
2479
|
-
function
|
|
2479
|
+
function Xe(t, e) {
|
|
2480
2480
|
return Math.abs(t - e) * 1e5 <= Math.min(Math.abs(t), Math.abs(e));
|
|
2481
2481
|
}
|
|
2482
2482
|
function oi(t) {
|
|
@@ -2485,7 +2485,7 @@ function _r() {
|
|
|
2485
2485
|
function Ni(t, e, i) {
|
|
2486
2486
|
return t * (1 - i) + e * i;
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2488
|
+
function jt(t, e, i) {
|
|
2489
2489
|
return [Ni(t[0], e[0], i), Ni(t[1], e[1], i)];
|
|
2490
2490
|
}
|
|
2491
2491
|
function Ys(t, e, i) {
|
|
@@ -2497,15 +2497,15 @@ function _r() {
|
|
|
2497
2497
|
var r = Math.sqrt(s) / (2 * t);
|
|
2498
2498
|
return [n - r, n + r];
|
|
2499
2499
|
}
|
|
2500
|
-
function
|
|
2500
|
+
function ji(t, e, i, s) {
|
|
2501
2501
|
return [-t + 3 * e - 3 * i + s, 3 * t - 6 * e + 3 * i, -3 * t + 3 * e, t];
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
function zi(t) {
|
|
2504
2504
|
return new J(t, t, t, t, !1);
|
|
2505
2505
|
}
|
|
2506
2506
|
function J(t, e, i, s, n) {
|
|
2507
|
-
n && ae(t, e) && (e =
|
|
2508
|
-
var r =
|
|
2507
|
+
n && ae(t, e) && (e = jt(t, s, 1 / 3)), n && ae(i, s) && (i = jt(t, s, 2 / 3));
|
|
2508
|
+
var r = ji(t[0], e[0], i[0], s[0]), o = ji(t[1], e[1], i[1], s[1]);
|
|
2509
2509
|
this.a = [r[0], o[0]], this.b = [r[1], o[1]], this.c = [r[2], o[2]], this.d = [r[3], o[3]], this.points = [t, e, i, s];
|
|
2510
2510
|
}
|
|
2511
2511
|
J.prototype.point = function(t) {
|
|
@@ -2528,12 +2528,12 @@ function _r() {
|
|
|
2528
2528
|
return n > 0 && n < 1;
|
|
2529
2529
|
});
|
|
2530
2530
|
}, J.prototype.split = function(t) {
|
|
2531
|
-
if (t <= 0) return [
|
|
2532
|
-
if (t >= 1) return [this,
|
|
2533
|
-
var e =
|
|
2531
|
+
if (t <= 0) return [zi(this.points[0]), this];
|
|
2532
|
+
if (t >= 1) return [this, zi(this.points[this.points.length - 1])];
|
|
2533
|
+
var e = jt(this.points[0], this.points[1], t), i = jt(this.points[1], this.points[2], t), s = jt(this.points[2], this.points[3], t), n = jt(e, i, t), r = jt(i, s, t), o = jt(n, r, t);
|
|
2534
2534
|
return [new J(this.points[0], e, n, o, !0), new J(o, r, s, this.points[3], !0)];
|
|
2535
2535
|
};
|
|
2536
|
-
function
|
|
2536
|
+
function qi(t, e) {
|
|
2537
2537
|
var i = t.points[0][e], s = t.points[t.points.length - 1][e];
|
|
2538
2538
|
if (i > s) {
|
|
2539
2539
|
var n = s;
|
|
@@ -2551,8 +2551,8 @@ function _r() {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
J.prototype.bounds = function() {
|
|
2553
2553
|
return {
|
|
2554
|
-
x:
|
|
2555
|
-
y:
|
|
2554
|
+
x: qi(this, 0),
|
|
2555
|
+
y: qi(this, 1)
|
|
2556
2556
|
};
|
|
2557
2557
|
}, J.prototype.boundingBox = function() {
|
|
2558
2558
|
var t = this.bounds();
|
|
@@ -2567,7 +2567,7 @@ function _r() {
|
|
|
2567
2567
|
cy: (t.y.max + t.y.min) / 2
|
|
2568
2568
|
};
|
|
2569
2569
|
};
|
|
2570
|
-
function
|
|
2570
|
+
function Ye(t, e, i) {
|
|
2571
2571
|
var s = t.boundingBox();
|
|
2572
2572
|
return {
|
|
2573
2573
|
cx: s.cx,
|
|
@@ -2582,25 +2582,25 @@ function _r() {
|
|
|
2582
2582
|
}
|
|
2583
2583
|
function Di(t) {
|
|
2584
2584
|
var e = t.bez.split(0.5);
|
|
2585
|
-
return [
|
|
2585
|
+
return [Ye(e[0], t.t1, t.t), Ye(e[1], t.t, t.t2)];
|
|
2586
2586
|
}
|
|
2587
2587
|
function Hs(t, e) {
|
|
2588
2588
|
return Math.abs(t.cx - e.cx) * 2 < t.width + e.width && Math.abs(t.cy - e.cy) * 2 < t.height + e.height;
|
|
2589
2589
|
}
|
|
2590
|
-
function
|
|
2590
|
+
function Pe(t, e, i, s, n, r) {
|
|
2591
2591
|
if (Hs(t, e)) {
|
|
2592
2592
|
if (i >= r || t.width <= s && t.height <= s && e.width <= s && e.height <= s) {
|
|
2593
2593
|
n.push([t.t, e.t]);
|
|
2594
2594
|
return;
|
|
2595
2595
|
}
|
|
2596
2596
|
var o = Di(t), c = Di(e);
|
|
2597
|
-
|
|
2597
|
+
Pe(o[0], c[0], i + 1, s, n, r), Pe(o[0], c[1], i + 1, s, n, r), Pe(o[1], c[0], i + 1, s, n, r), Pe(o[1], c[1], i + 1, s, n, r);
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
2600
2600
|
J.prototype.intersections = function(t, e, i) {
|
|
2601
2601
|
e === void 0 && (e = 2), i === void 0 && (i = 7);
|
|
2602
2602
|
var s = [];
|
|
2603
|
-
return
|
|
2603
|
+
return Pe(Ye(this, 0, 1), Ye(t, 0, 1), 0, e, s, i), s;
|
|
2604
2604
|
}, J.shapeSegment = function(t, e) {
|
|
2605
2605
|
var i = (e + 1) % t.length();
|
|
2606
2606
|
return new J(t.v[e], t.o[e], t.i[i], t.v[i], !0);
|
|
@@ -2611,7 +2611,7 @@ function _r() {
|
|
|
2611
2611
|
function hi(t, e) {
|
|
2612
2612
|
return [t[1] * e[2] - t[2] * e[1], t[2] * e[0] - t[0] * e[2], t[0] * e[1] - t[1] * e[0]];
|
|
2613
2613
|
}
|
|
2614
|
-
function
|
|
2614
|
+
function He(t, e, i, s) {
|
|
2615
2615
|
var n = [t[0], t[1], 1], r = [e[0], e[1], 1], o = [i[0], i[1], 1], c = [s[0], s[1], 1], h = hi(hi(n, r), hi(o, c));
|
|
2616
2616
|
return oi(h[2]) ? null : [h[0] / h[2], h[1] / h[2]];
|
|
2617
2617
|
}
|
|
@@ -2622,11 +2622,11 @@ function _r() {
|
|
|
2622
2622
|
return Math.hypot(t[0] - e[0], t[1] - e[1]);
|
|
2623
2623
|
}
|
|
2624
2624
|
function ae(t, e) {
|
|
2625
|
-
return
|
|
2625
|
+
return Xe(t[0], e[0]) && Xe(t[1], e[1]);
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2627
|
+
function ke() {
|
|
2628
2628
|
}
|
|
2629
|
-
X([gt],
|
|
2629
|
+
X([gt], ke), ke.prototype.initModifierProperties = function(t, e) {
|
|
2630
2630
|
this.getValue = this.processKeys, this.amplitude = V.getProp(t, e.s, 0, null, this), this.frequency = V.getProp(t, e.r, 0, null, this), this.pointsType = V.getProp(t, e.pt, 0, null, this), this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
|
|
2631
2631
|
};
|
|
2632
2632
|
function Wi(t, e, i, s, n, r, o) {
|
|
@@ -2652,7 +2652,7 @@ function _r() {
|
|
|
2652
2652
|
}
|
|
2653
2653
|
return r;
|
|
2654
2654
|
}
|
|
2655
|
-
|
|
2655
|
+
ke.prototype.processPath = function(t, e, i, s) {
|
|
2656
2656
|
var n = t._length, r = ot.newElement();
|
|
2657
2657
|
if (r.c = t.c, t.c || (n -= 1), n === 0) return r;
|
|
2658
2658
|
var o = -1, c = J.shapeSegment(t, 0);
|
|
@@ -2660,7 +2660,7 @@ function _r() {
|
|
|
2660
2660
|
for (var h = 0; h < n; h += 1)
|
|
2661
2661
|
o = Us(r, c, e, i, s, -o), h === n - 1 && !t.c ? c = null : c = J.shapeSegment(t, (h + 1) % n), Gi(r, t, h + 1, e, i, s, o);
|
|
2662
2662
|
return r;
|
|
2663
|
-
},
|
|
2663
|
+
}, ke.prototype.processShapes = function(t) {
|
|
2664
2664
|
var e, i, s = this.shapes.length, n, r, o = this.amplitude.v, c = Math.max(0, Math.round(this.frequency.v)), h = this.pointsType.v;
|
|
2665
2665
|
if (o !== 0) {
|
|
2666
2666
|
var m, _;
|
|
@@ -2680,24 +2680,24 @@ function _r() {
|
|
|
2680
2680
|
function oe(t, e) {
|
|
2681
2681
|
var i, s, n, r, o, c, h;
|
|
2682
2682
|
h = fi(t.points[0], t.points[1], e), i = h[0], s = h[1], h = fi(t.points[1], t.points[2], e), n = h[0], r = h[1], h = fi(t.points[2], t.points[3], e), o = h[0], c = h[1];
|
|
2683
|
-
var m =
|
|
2683
|
+
var m = He(i, s, n, r);
|
|
2684
2684
|
m === null && (m = s);
|
|
2685
|
-
var _ =
|
|
2685
|
+
var _ = He(o, c, n, r);
|
|
2686
2686
|
return _ === null && (_ = o), new J(i, m, _, c);
|
|
2687
2687
|
}
|
|
2688
2688
|
function Xi(t, e, i, s, n) {
|
|
2689
2689
|
var r = e.points[3], o = i.points[0];
|
|
2690
2690
|
if (s === 3 || ae(r, o)) return r;
|
|
2691
2691
|
if (s === 2) {
|
|
2692
|
-
var c = -e.tangentAngle(1), h = -i.tangentAngle(0) + Math.PI, m =
|
|
2692
|
+
var c = -e.tangentAngle(1), h = -i.tangentAngle(0) + Math.PI, m = He(r, ne(r, c + Math.PI / 2, 100), o, ne(o, c + Math.PI / 2, 100)), _ = m ? li(m, r) : li(r, o) / 2, M = ne(r, c, 2 * _ * Bt);
|
|
2693
2693
|
return t.setXYAt(M[0], M[1], "o", t.length() - 1), M = ne(o, h, 2 * _ * Bt), t.setTripleAt(o[0], o[1], o[0], o[1], M[0], M[1], t.length()), o;
|
|
2694
2694
|
}
|
|
2695
|
-
var p = ae(r, e.points[2]) ? e.points[0] : e.points[2], b = ae(o, i.points[1]) ? i.points[3] : i.points[1], k =
|
|
2695
|
+
var p = ae(r, e.points[2]) ? e.points[0] : e.points[2], b = ae(o, i.points[1]) ? i.points[3] : i.points[1], k = He(p, r, o, b);
|
|
2696
2696
|
return k && li(k, r) < n ? (t.setTripleAt(k[0], k[1], k[0], k[1], k[0], k[1], t.length()), k) : r;
|
|
2697
2697
|
}
|
|
2698
2698
|
function Yi(t, e) {
|
|
2699
2699
|
var i = t.intersections(e);
|
|
2700
|
-
return i.length &&
|
|
2700
|
+
return i.length && Xe(i[0][0], 1) && i.shift(), i.length ? i[0] : null;
|
|
2701
2701
|
}
|
|
2702
2702
|
function Hi(t, e) {
|
|
2703
2703
|
var i = t.slice(), s = e.slice(), n = Yi(t[t.length - 1], e[0]);
|
|
@@ -2712,17 +2712,17 @@ function _r() {
|
|
|
2712
2712
|
var i = t.inflectionPoints(), s, n, r, o;
|
|
2713
2713
|
if (i.length === 0)
|
|
2714
2714
|
return [oe(t, e)];
|
|
2715
|
-
if (i.length === 1 ||
|
|
2715
|
+
if (i.length === 1 || Xe(i[1], 1))
|
|
2716
2716
|
return r = t.split(i[0]), s = r[0], n = r[1], [oe(s, e), oe(n, e)];
|
|
2717
2717
|
r = t.split(i[0]), s = r[0];
|
|
2718
2718
|
var c = (i[1] - i[0]) / (1 - i[0]);
|
|
2719
2719
|
return r = r[1].split(c), o = r[0], n = r[1], [oe(s, e), oe(o, e), oe(n, e)];
|
|
2720
2720
|
}
|
|
2721
|
-
function
|
|
2721
|
+
function Ae() {
|
|
2722
2722
|
}
|
|
2723
|
-
X([gt],
|
|
2723
|
+
X([gt], Ae), Ae.prototype.initModifierProperties = function(t, e) {
|
|
2724
2724
|
this.getValue = this.processKeys, this.amount = V.getProp(t, e.a, 0, null, this), this.miterLimit = V.getProp(t, e.ml, 0, null, this), this.lineJoin = e.lj, this._isAnimated = this.amount.effectsSequence.length !== 0;
|
|
2725
|
-
},
|
|
2725
|
+
}, Ae.prototype.processPath = function(t, e, i, s) {
|
|
2726
2726
|
var n = ot.newElement();
|
|
2727
2727
|
n.c = t.c;
|
|
2728
2728
|
var r = t.length();
|
|
@@ -2741,7 +2741,7 @@ function _r() {
|
|
|
2741
2741
|
h = p[c], _ && ae(h.points[0], _) ? n.setXYAt(h.points[1][0], h.points[1][1], "o", n.length() - 1) : n.setTripleAt(h.points[0][0], h.points[0][1], h.points[1][0], h.points[1][1], h.points[0][0], h.points[0][1], n.length()), n.setTripleAt(h.points[3][0], h.points[3][1], h.points[3][0], h.points[3][1], h.points[2][0], h.points[2][1], n.length()), _ = h.points[3];
|
|
2742
2742
|
}
|
|
2743
2743
|
return m.length && Xi(n, M, m[0][0], i, s), n;
|
|
2744
|
-
},
|
|
2744
|
+
}, Ae.prototype.processShapes = function(t) {
|
|
2745
2745
|
var e, i, s = this.shapes.length, n, r, o = this.amount.v, c = this.miterLimit.v, h = this.lineJoin;
|
|
2746
2746
|
if (o !== 0) {
|
|
2747
2747
|
var m, _;
|
|
@@ -2827,11 +2827,11 @@ function _r() {
|
|
|
2827
2827
|
var R = new OffscreenCanvas(500, 500).getContext("2d");
|
|
2828
2828
|
R.font = E.style + " " + E.weight + " 100px " + d.fFamily, l = R;
|
|
2829
2829
|
}
|
|
2830
|
-
function
|
|
2830
|
+
function z(D) {
|
|
2831
2831
|
return a === "svg" ? (l.textContent = D, l.getComputedTextLength()) : l.measureText(D).width;
|
|
2832
2832
|
}
|
|
2833
2833
|
return {
|
|
2834
|
-
measureText:
|
|
2834
|
+
measureText: z
|
|
2835
2835
|
};
|
|
2836
2836
|
}
|
|
2837
2837
|
function C(d, P) {
|
|
@@ -2851,24 +2851,24 @@ function _r() {
|
|
|
2851
2851
|
}
|
|
2852
2852
|
var a = d.list, l, E = a.length, w = E;
|
|
2853
2853
|
for (l = 0; l < E; l += 1) {
|
|
2854
|
-
var R = !0,
|
|
2854
|
+
var R = !0, z, D;
|
|
2855
2855
|
if (a[l].loaded = !1, a[l].monoCase = b(a[l].fFamily, "monospace"), a[l].sansCase = b(a[l].fFamily, "sans-serif"), !a[l].fPath)
|
|
2856
2856
|
a[l].loaded = !0, w -= 1;
|
|
2857
2857
|
else if (a[l].fOrigin === "p" || a[l].origin === 3) {
|
|
2858
|
-
if (
|
|
2858
|
+
if (z = document.querySelectorAll('style[f-forigin="p"][f-family="' + a[l].fFamily + '"], style[f-origin="3"][f-family="' + a[l].fFamily + '"]'), z.length > 0 && (R = !1), R) {
|
|
2859
2859
|
var Y = _t("style");
|
|
2860
2860
|
Y.setAttribute("f-forigin", a[l].fOrigin), Y.setAttribute("f-origin", a[l].origin), Y.setAttribute("f-family", a[l].fFamily), Y.type = "text/css", Y.innerText = "@font-face {font-family: " + a[l].fFamily + "; font-style: normal; src: url('" + a[l].fPath + "');}", P.appendChild(Y);
|
|
2861
2861
|
}
|
|
2862
2862
|
} else if (a[l].fOrigin === "g" || a[l].origin === 1) {
|
|
2863
|
-
for (
|
|
2864
|
-
|
|
2863
|
+
for (z = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), D = 0; D < z.length; D += 1)
|
|
2864
|
+
z[D].href.indexOf(a[l].fPath) !== -1 && (R = !1);
|
|
2865
2865
|
if (R) {
|
|
2866
2866
|
var H = _t("link");
|
|
2867
2867
|
H.setAttribute("f-forigin", a[l].fOrigin), H.setAttribute("f-origin", a[l].origin), H.type = "text/css", H.rel = "stylesheet", H.href = a[l].fPath, document.body.appendChild(H);
|
|
2868
2868
|
}
|
|
2869
2869
|
} else if (a[l].fOrigin === "t" || a[l].origin === 2) {
|
|
2870
|
-
for (
|
|
2871
|
-
a[l].fPath ===
|
|
2870
|
+
for (z = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), D = 0; D < z.length; D += 1)
|
|
2871
|
+
a[l].fPath === z[D].src && (R = !1);
|
|
2872
2872
|
if (R) {
|
|
2873
2873
|
var et = _t("link");
|
|
2874
2874
|
et.setAttribute("f-forigin", a[l].fOrigin), et.setAttribute("f-origin", a[l].origin), et.setAttribute("rel", "stylesheet"), et.setAttribute("href", a[l].fPath), P.appendChild(et);
|
|
@@ -2902,8 +2902,8 @@ function _r() {
|
|
|
2902
2902
|
if (!l.cache[E]) {
|
|
2903
2903
|
var w = l.helper;
|
|
2904
2904
|
if (d === " ") {
|
|
2905
|
-
var R = w.measureText("|" + d + "|"),
|
|
2906
|
-
l.cache[E] = (R -
|
|
2905
|
+
var R = w.measureText("|" + d + "|"), z = w.measureText("||");
|
|
2906
|
+
l.cache[E] = (R - z) / 100;
|
|
2907
2907
|
} else
|
|
2908
2908
|
l.cache[E] = w.measureText(d) / 100;
|
|
2909
2909
|
}
|
|
@@ -2939,7 +2939,7 @@ function _r() {
|
|
|
2939
2939
|
var P = g(d);
|
|
2940
2940
|
return P >= m && P <= _;
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function q(d) {
|
|
2943
2943
|
return I(d.substr(0, 2)) && I(d.substr(2, 2));
|
|
2944
2944
|
}
|
|
2945
2945
|
function N(d) {
|
|
@@ -2963,7 +2963,7 @@ function _r() {
|
|
|
2963
2963
|
var O = function() {
|
|
2964
2964
|
this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
|
|
2965
2965
|
};
|
|
2966
|
-
O.isModifier = A, O.isZeroWidthJoiner = T, O.isFlagEmoji =
|
|
2966
|
+
O.isModifier = A, O.isZeroWidthJoiner = T, O.isFlagEmoji = q, O.isRegionalCode = I, O.isCombinedCharacter = N, O.isRegionalFlag = L, O.isVariationSelector = x, O.BLACK_FLAG_CODE_POINT = s;
|
|
2967
2967
|
var F = {
|
|
2968
2968
|
addChars: y,
|
|
2969
2969
|
addFonts: C,
|
|
@@ -2984,9 +2984,9 @@ function _r() {
|
|
|
2984
2984
|
function Qs(t) {
|
|
2985
2985
|
return new Ui(t);
|
|
2986
2986
|
}
|
|
2987
|
-
function
|
|
2987
|
+
function Ze() {
|
|
2988
2988
|
}
|
|
2989
|
-
|
|
2989
|
+
Ze.prototype = {
|
|
2990
2990
|
initRenderable: function() {
|
|
2991
2991
|
this.isInRange = !1, this.hidden = !1, this.isTransparent = !1, this.renderableComponents = [];
|
|
2992
2992
|
},
|
|
@@ -3088,12 +3088,12 @@ function _r() {
|
|
|
3088
3088
|
this.effectElements = [];
|
|
3089
3089
|
var s, n = i.length, r;
|
|
3090
3090
|
for (s = 0; s < n; s += 1)
|
|
3091
|
-
r = new
|
|
3091
|
+
r = new we(i[s], e), this.effectElements.push(r);
|
|
3092
3092
|
}
|
|
3093
|
-
function
|
|
3093
|
+
function we(t, e) {
|
|
3094
3094
|
this.init(t, e);
|
|
3095
3095
|
}
|
|
3096
|
-
X([rt],
|
|
3096
|
+
X([rt], we), we.prototype.getValue = we.prototype.iterateDynamicProperties, we.prototype.init = function(t, e) {
|
|
3097
3097
|
this.data = t, this.effectElements = [], this.initDynamicPropertyContainer(e);
|
|
3098
3098
|
var i, s = this.data.ef.length, n, r = this.data.ef;
|
|
3099
3099
|
for (i = 0; i < s; i += 1) {
|
|
@@ -3131,9 +3131,9 @@ function _r() {
|
|
|
3131
3131
|
n && this.effectElements.push(n);
|
|
3132
3132
|
}
|
|
3133
3133
|
};
|
|
3134
|
-
function
|
|
3134
|
+
function zt() {
|
|
3135
3135
|
}
|
|
3136
|
-
|
|
3136
|
+
zt.prototype = {
|
|
3137
3137
|
checkMasks: function() {
|
|
3138
3138
|
if (!this.data.hasMask)
|
|
3139
3139
|
return !1;
|
|
@@ -3159,9 +3159,9 @@ function _r() {
|
|
|
3159
3159
|
sourceRectAtTime: function() {
|
|
3160
3160
|
}
|
|
3161
3161
|
};
|
|
3162
|
-
function
|
|
3162
|
+
function qt() {
|
|
3163
3163
|
}
|
|
3164
|
-
|
|
3164
|
+
qt.prototype = {
|
|
3165
3165
|
/**
|
|
3166
3166
|
* @function
|
|
3167
3167
|
* Initializes frame related properties.
|
|
@@ -3193,7 +3193,7 @@ function _r() {
|
|
|
3193
3193
|
this.initFrame(), this.initRenderable(), this.assetData = e.getAssetData(t.refId), this.footageData = e.imageLoader.getAsset(this.assetData), this.initBaseData(t, e, i);
|
|
3194
3194
|
}
|
|
3195
3195
|
Dt.prototype.prepareFrame = function() {
|
|
3196
|
-
}, X([
|
|
3196
|
+
}, X([Ze, zt, qt], Dt), Dt.prototype.getBaseElement = function() {
|
|
3197
3197
|
return null;
|
|
3198
3198
|
}, Dt.prototype.renderFrame = function() {
|
|
3199
3199
|
}, Dt.prototype.destroy = function() {
|
|
@@ -3220,7 +3220,7 @@ function _r() {
|
|
|
3220
3220
|
this._volume = this.lv.v[0];
|
|
3221
3221
|
var i = this._volume * this._volumeMultiplier;
|
|
3222
3222
|
this._previousVolume !== i && (this._previousVolume = i, this.audio.volume(i));
|
|
3223
|
-
}, X([
|
|
3223
|
+
}, X([Ze, zt, qt], ut), ut.prototype.renderFrame = function() {
|
|
3224
3224
|
this.isInRange && this._canPlay && (this._isPlaying ? (!this.audio.playing() || Math.abs(this._currentTime / this.globalData.frameRate - this.audio.seek()) > 0.1) && this.audio.seek(this._currentTime / this.globalData.frameRate) : (this.audio.play(), this.audio.seek(this._currentTime / this.globalData.frameRate), this._isPlaying = !0));
|
|
3225
3225
|
}, ut.prototype.show = function() {
|
|
3226
3226
|
}, ut.prototype.hide = function() {
|
|
@@ -3367,7 +3367,7 @@ function _r() {
|
|
|
3367
3367
|
for (e = this.finalTransform.mProp.v.props, i.cloneFromProps(e), s = 0; s < n; s += 1)
|
|
3368
3368
|
i.multiply(this.hierarchy[s].finalTransform.mProp.v);
|
|
3369
3369
|
}
|
|
3370
|
-
this.finalTransform._matMdf && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
|
|
3370
|
+
(!this.localTransforms || this.finalTransform._matMdf) && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
|
|
3371
3371
|
},
|
|
3372
3372
|
renderLocalTransform: function() {
|
|
3373
3373
|
if (this.localTransforms) {
|
|
@@ -3423,7 +3423,7 @@ function _r() {
|
|
|
3423
3423
|
if ((c[n].mode !== "a" && c[n].mode !== "n" || c[n].inv || c[n].o.k !== 100 || c[n].o.x) && (y = "mask", v = "mask"), (c[n].mode === "s" || c[n].mode === "i") && h === 0 ? (b = W("rect"), b.setAttribute("fill", "#ffffff"), b.setAttribute("width", this.element.comp.data.w || 0), b.setAttribute("height", this.element.comp.data.h || 0), m.push(b)) : b = null, o = W("path"), c[n].mode === "n")
|
|
3424
3424
|
this.viewData[n] = {
|
|
3425
3425
|
op: V.getProp(this.element, c[n].o, 0, 0.01, this.element),
|
|
3426
|
-
prop:
|
|
3426
|
+
prop: Ge.getShapeProp(this.element, c[n], 3),
|
|
3427
3427
|
elem: o,
|
|
3428
3428
|
lastPath: ""
|
|
3429
3429
|
}, s.appendChild(o);
|
|
@@ -3451,7 +3451,7 @@ function _r() {
|
|
|
3451
3451
|
elem: o,
|
|
3452
3452
|
lastPath: "",
|
|
3453
3453
|
op: V.getProp(this.element, c[n].o, 0, 0.01, this.element),
|
|
3454
|
-
prop:
|
|
3454
|
+
prop: Ge.getShapeProp(this.element, c[n], 3),
|
|
3455
3455
|
invRect: b
|
|
3456
3456
|
}, this.viewData[n].prop.k || this.drawPath(c[n], this.viewData[n].prop.v, this.viewData[n]);
|
|
3457
3457
|
}
|
|
@@ -3484,7 +3484,7 @@ function _r() {
|
|
|
3484
3484
|
}, te.prototype.destroy = function() {
|
|
3485
3485
|
this.element = null, this.globalData = null, this.maskElement = null, this.data = null, this.masksProperties = null;
|
|
3486
3486
|
};
|
|
3487
|
-
var
|
|
3487
|
+
var Ce = function() {
|
|
3488
3488
|
var t = {};
|
|
3489
3489
|
t.createFilter = e, t.createAlphaToLuminanceFilter = i;
|
|
3490
3490
|
function e(s, n) {
|
|
@@ -3505,7 +3505,7 @@ function _r() {
|
|
|
3505
3505
|
return (/MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userAgent)) && (t.maskType = !1), /firefox/i.test(navigator.userAgent) && (t.svgLumaHidden = !1), t;
|
|
3506
3506
|
}(), ui = {}, $i = "filter_result_";
|
|
3507
3507
|
function ci(t) {
|
|
3508
|
-
var e, i = "SourceGraphic", s = t.data.ef ? t.data.ef.length : 0, n = pt(), r =
|
|
3508
|
+
var e, i = "SourceGraphic", s = t.data.ef ? t.data.ef.length : 0, n = pt(), r = Ce.createFilter(n, !0), o = 0;
|
|
3509
3509
|
this.filters = [];
|
|
3510
3510
|
var c;
|
|
3511
3511
|
for (e = 0; e < s; e += 1) {
|
|
@@ -3529,9 +3529,9 @@ function _r() {
|
|
|
3529
3529
|
this.filters[e].type === t && s.push(this.filters[e]);
|
|
3530
3530
|
return s;
|
|
3531
3531
|
};
|
|
3532
|
-
function
|
|
3532
|
+
function Te() {
|
|
3533
3533
|
}
|
|
3534
|
-
|
|
3534
|
+
Te.prototype = {
|
|
3535
3535
|
initRendererElement: function() {
|
|
3536
3536
|
this.layerElement = W("g");
|
|
3537
3537
|
},
|
|
@@ -3572,18 +3572,18 @@ function _r() {
|
|
|
3572
3572
|
var i = this.layerId + "_" + e, s, n, r, o;
|
|
3573
3573
|
if (e === 1 || e === 3) {
|
|
3574
3574
|
var c = W("mask");
|
|
3575
|
-
c.setAttribute("id", i), c.setAttribute("mask-type", e === 3 ? "luminance" : "alpha"), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), c.appendChild(r), this.globalData.defs.appendChild(c), !Qi.maskType && e === 1 && (c.setAttribute("mask-type", "luminance"), s = pt(), n =
|
|
3575
|
+
c.setAttribute("id", i), c.setAttribute("mask-type", e === 3 ? "luminance" : "alpha"), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), c.appendChild(r), this.globalData.defs.appendChild(c), !Qi.maskType && e === 1 && (c.setAttribute("mask-type", "luminance"), s = pt(), n = Ce.createFilter(s), this.globalData.defs.appendChild(n), n.appendChild(Ce.createAlphaToLuminanceFilter()), o = W("g"), o.appendChild(r), c.appendChild(o), o.setAttribute("filter", "url(" + at() + "#" + s + ")"));
|
|
3576
3576
|
} else if (e === 2) {
|
|
3577
3577
|
var h = W("mask");
|
|
3578
3578
|
h.setAttribute("id", i), h.setAttribute("mask-type", "alpha");
|
|
3579
3579
|
var m = W("g");
|
|
3580
|
-
h.appendChild(m), s = pt(), n =
|
|
3580
|
+
h.appendChild(m), s = pt(), n = Ce.createFilter(s);
|
|
3581
3581
|
var _ = W("feComponentTransfer");
|
|
3582
3582
|
_.setAttribute("in", "SourceGraphic"), n.appendChild(_);
|
|
3583
3583
|
var M = W("feFuncA");
|
|
3584
3584
|
M.setAttribute("type", "table"), M.setAttribute("tableValues", "1.0 0.0"), _.appendChild(M), this.globalData.defs.appendChild(n);
|
|
3585
3585
|
var p = W("rect");
|
|
3586
|
-
p.setAttribute("width", this.comp.data.w), p.setAttribute("height", this.comp.data.h), p.setAttribute("x", "0"), p.setAttribute("y", "0"), p.setAttribute("fill", "#ffffff"), p.setAttribute("opacity", "0"), m.setAttribute("filter", "url(" + at() + "#" + s + ")"), m.appendChild(p), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), m.appendChild(r), Qi.maskType || (h.setAttribute("mask-type", "luminance"), n.appendChild(
|
|
3586
|
+
p.setAttribute("width", this.comp.data.w), p.setAttribute("height", this.comp.data.h), p.setAttribute("x", "0"), p.setAttribute("y", "0"), p.setAttribute("fill", "#ffffff"), p.setAttribute("opacity", "0"), m.setAttribute("filter", "url(" + at() + "#" + s + ")"), m.appendChild(p), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), m.appendChild(r), Qi.maskType || (h.setAttribute("mask-type", "luminance"), n.appendChild(Ce.createAlphaToLuminanceFilter()), o = W("g"), m.appendChild(p), o.appendChild(this.layerElement), m.appendChild(o)), this.globalData.defs.appendChild(h);
|
|
3587
3587
|
}
|
|
3588
3588
|
this.matteMasks[e] = i;
|
|
3589
3589
|
}
|
|
@@ -3631,7 +3631,7 @@ function _r() {
|
|
|
3631
3631
|
this.data.parent !== void 0 && this.comp.buildElementParenting(this, this.data.parent, []);
|
|
3632
3632
|
}
|
|
3633
3633
|
};
|
|
3634
|
-
function
|
|
3634
|
+
function Me() {
|
|
3635
3635
|
}
|
|
3636
3636
|
(function() {
|
|
3637
3637
|
var t = {
|
|
@@ -3665,9 +3665,9 @@ function _r() {
|
|
|
3665
3665
|
this.innerElem = null, this.destroyBaseElement();
|
|
3666
3666
|
}
|
|
3667
3667
|
};
|
|
3668
|
-
X([
|
|
3668
|
+
X([Ze, $e(t)], Me);
|
|
3669
3669
|
})();
|
|
3670
|
-
function
|
|
3670
|
+
function Ee(t, e, i) {
|
|
3671
3671
|
this.assetData = e.getAssetData(t.refId), this.assetData && this.assetData.sid && (this.assetData = e.slotManager.getProp(this.assetData)), this.initElement(t, e, i), this.sourceRect = {
|
|
3672
3672
|
top: 0,
|
|
3673
3673
|
left: 0,
|
|
@@ -3675,10 +3675,10 @@ function _r() {
|
|
|
3675
3675
|
height: this.assetData.h
|
|
3676
3676
|
};
|
|
3677
3677
|
}
|
|
3678
|
-
X([
|
|
3678
|
+
X([zt, he, Te, le, qt, Me], Ee), Ee.prototype.createContent = function() {
|
|
3679
3679
|
var t = this.globalData.getAssetsPath(this.assetData);
|
|
3680
3680
|
this.innerElem = W("image"), this.innerElem.setAttribute("width", this.assetData.w + "px"), this.innerElem.setAttribute("height", this.assetData.h + "px"), this.innerElem.setAttribute("preserveAspectRatio", this.assetData.pr || this.globalData.renderConfig.imagePreserveAspectRatio), this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink", "href", t), this.layerElement.appendChild(this.innerElem);
|
|
3681
|
-
},
|
|
3681
|
+
}, Ee.prototype.sourceRectAtTime = function() {
|
|
3682
3682
|
return this.sourceRect;
|
|
3683
3683
|
};
|
|
3684
3684
|
function hr(t, e) {
|
|
@@ -3757,7 +3757,7 @@ function _r() {
|
|
|
3757
3757
|
rs.prototype.reset = function() {
|
|
3758
3758
|
this.d = "", this._mdf = !1;
|
|
3759
3759
|
};
|
|
3760
|
-
function
|
|
3760
|
+
function Ke(t, e, i, s) {
|
|
3761
3761
|
this.elem = t, this.frameId = -1, this.dataProps = tt(e.length), this.renderer = i, this.k = !1, this.dashStr = "", this.dashArray = U("float32", e.length ? e.length - 1 : 0), this.dashoffset = U("float32", 1), this.initDynamicPropertyContainer(s);
|
|
3762
3762
|
var n, r = e.length || 0, o;
|
|
3763
3763
|
for (n = 0; n < r; n += 1)
|
|
@@ -3767,15 +3767,15 @@ function _r() {
|
|
|
3767
3767
|
};
|
|
3768
3768
|
this.k || this.getValue(!0), this._isAnimated = this.k;
|
|
3769
3769
|
}
|
|
3770
|
-
|
|
3770
|
+
Ke.prototype.getValue = function(t) {
|
|
3771
3771
|
if (!(this.elem.globalData.frameId === this.frameId && !t) && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf = this._mdf || t, this._mdf)) {
|
|
3772
3772
|
var e = 0, i = this.dataProps.length;
|
|
3773
3773
|
for (this.renderer === "svg" && (this.dashStr = ""), e = 0; e < i; e += 1)
|
|
3774
3774
|
this.dataProps[e].n !== "o" ? this.renderer === "svg" ? this.dashStr += " " + this.dataProps[e].p.v : this.dashArray[e] = this.dataProps[e].p.v : this.dashoffset[0] = this.dataProps[e].p.v;
|
|
3775
3775
|
}
|
|
3776
|
-
}, X([rt],
|
|
3776
|
+
}, X([rt], Ke);
|
|
3777
3777
|
function ns(t, e, i) {
|
|
3778
|
-
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.o = V.getProp(t, e.o, 0, 0.01, this), this.w = V.getProp(t, e.w, 0, null, this), this.d = new
|
|
3778
|
+
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.o = V.getProp(t, e.o, 0, 0.01, this), this.w = V.getProp(t, e.w, 0, null, this), this.d = new Ke(t, e.d || {}, "svg", this), this.c = V.getProp(t, e.c, 1, 255, this), this.style = i, this._isAnimated = !!this._isAnimated;
|
|
3779
3779
|
}
|
|
3780
3780
|
X([rt], ns);
|
|
3781
3781
|
function as(t, e, i) {
|
|
@@ -3786,19 +3786,19 @@ function _r() {
|
|
|
3786
3786
|
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.style = i;
|
|
3787
3787
|
}
|
|
3788
3788
|
X([rt], os);
|
|
3789
|
-
function
|
|
3789
|
+
function xe(t, e, i) {
|
|
3790
3790
|
this.data = e, this.c = U("uint8c", e.p * 4);
|
|
3791
3791
|
var s = e.k.k[0].s ? e.k.k[0].s.length - e.p * 4 : e.k.k.length - e.p * 4;
|
|
3792
3792
|
this.o = U("float32", s), this._cmdf = !1, this._omdf = !1, this._collapsable = this.checkCollapsable(), this._hasOpacity = s, this.initDynamicPropertyContainer(i), this.prop = V.getProp(t, e.k, 1, null, this), this.k = this.prop.k, this.getValue(!0);
|
|
3793
3793
|
}
|
|
3794
|
-
|
|
3794
|
+
xe.prototype.comparePoints = function(t, e) {
|
|
3795
3795
|
for (var i = 0, s = this.o.length / 2, n; i < s; ) {
|
|
3796
3796
|
if (n = Math.abs(t[i * 4] - t[e * 4 + i * 2]), n > 0.01)
|
|
3797
3797
|
return !1;
|
|
3798
3798
|
i += 1;
|
|
3799
3799
|
}
|
|
3800
3800
|
return !0;
|
|
3801
|
-
},
|
|
3801
|
+
}, xe.prototype.checkCollapsable = function() {
|
|
3802
3802
|
if (this.o.length / 2 !== this.c.length / 4)
|
|
3803
3803
|
return !1;
|
|
3804
3804
|
if (this.data.k.k[0].s)
|
|
@@ -3810,7 +3810,7 @@ function _r() {
|
|
|
3810
3810
|
else if (!this.comparePoints(this.data.k.k, this.data.p))
|
|
3811
3811
|
return !1;
|
|
3812
3812
|
return !0;
|
|
3813
|
-
},
|
|
3813
|
+
}, xe.prototype.getValue = function(t) {
|
|
3814
3814
|
if (this.prop.getValue(), this._mdf = !1, this._cmdf = !1, this._omdf = !1, this.prop._mdf || t) {
|
|
3815
3815
|
var e, i = this.data.p * 4, s, n;
|
|
3816
3816
|
for (e = 0; e < i; e += 1)
|
|
@@ -3820,7 +3820,7 @@ function _r() {
|
|
|
3820
3820
|
s = e % 2 === 0 ? 100 : 1, n = e % 2 === 0 ? Math.round(this.prop.v[e] * 100) : this.prop.v[e], this.o[e - this.data.p * 4] !== n && (this.o[e - this.data.p * 4] = n, this._omdf = !t);
|
|
3821
3821
|
this._mdf = !t;
|
|
3822
3822
|
}
|
|
3823
|
-
}, X([rt],
|
|
3823
|
+
}, X([rt], xe);
|
|
3824
3824
|
function fe(t, e, i) {
|
|
3825
3825
|
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.initGradientData(t, e, i);
|
|
3826
3826
|
}
|
|
@@ -3829,7 +3829,7 @@ function _r() {
|
|
|
3829
3829
|
k: 0
|
|
3830
3830
|
}, 0, 0.01, this), this.a = V.getProp(t, e.a || {
|
|
3831
3831
|
k: 0
|
|
3832
|
-
}, 0, Q, this), this.g = new
|
|
3832
|
+
}, 0, Q, this), this.g = new xe(t, e.g, this), this.style = i, this.stops = [], this.setGradientData(i.pElem, e), this.setGradientOpacity(e, i), this._isAnimated = !!this._isAnimated;
|
|
3833
3833
|
}, fe.prototype.setGradientData = function(t, e) {
|
|
3834
3834
|
var i = pt(), s = W(e.t === 1 ? "linearGradient" : "radialGradient");
|
|
3835
3835
|
s.setAttribute("id", i), s.setAttribute("spreadMethod", "pad"), s.setAttribute("gradientUnits", "userSpaceOnUse");
|
|
@@ -3852,7 +3852,7 @@ function _r() {
|
|
|
3852
3852
|
}
|
|
3853
3853
|
}, X([rt], fe);
|
|
3854
3854
|
function hs(t, e, i) {
|
|
3855
|
-
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.w = V.getProp(t, e.w, 0, null, this), this.d = new
|
|
3855
|
+
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.w = V.getProp(t, e.w, 0, null, this), this.d = new Ke(t, e.d || {}, "svg", this), this.initGradientData(t, e, i), this._isAnimated = !!this._isAnimated;
|
|
3856
3856
|
}
|
|
3857
3857
|
X([fe, rt], hs);
|
|
3858
3858
|
function lr() {
|
|
@@ -3949,15 +3949,15 @@ function _r() {
|
|
|
3949
3949
|
x = g[A], x.setAttribute("offset", I[A * 4] + "%"), x.setAttribute("stop-color", "rgb(" + I[A * 4 + 1] + "," + I[A * 4 + 2] + "," + I[A * 4 + 3] + ")");
|
|
3950
3950
|
}
|
|
3951
3951
|
if (S && (p.g._omdf || b)) {
|
|
3952
|
-
var
|
|
3952
|
+
var q = p.g.o;
|
|
3953
3953
|
for (p.g._collapsable ? g = p.cst : g = p.ost, T = g.length, A = 0; A < T; A += 1)
|
|
3954
|
-
x = g[A], p.g._collapsable || x.setAttribute("offset",
|
|
3954
|
+
x = g[A], p.g._collapsable || x.setAttribute("offset", q[A * 2] + "%"), x.setAttribute("stop-opacity", q[A * 2 + 1]);
|
|
3955
3955
|
}
|
|
3956
3956
|
if (M.t === 1)
|
|
3957
3957
|
(p.e._mdf || b) && (k.setAttribute("x2", y[0]), k.setAttribute("y2", y[1]), S && !p.g._collapsable && (p.of.setAttribute("x2", y[0]), p.of.setAttribute("y2", y[1])));
|
|
3958
3958
|
else {
|
|
3959
3959
|
var N;
|
|
3960
|
-
if ((p.s._mdf || p.e._mdf || b) && (N = Math.sqrt(Math.pow(C[0] - y[0], 2) + Math.pow(C[1] - y[1], 2)), k.setAttribute("r", N), S && !p.g._collapsable && p.of.setAttribute("r", N)), p.e._mdf || p.h._mdf || p.a._mdf || b) {
|
|
3960
|
+
if ((p.s._mdf || p.e._mdf || b) && (N = Math.sqrt(Math.pow(C[0] - y[0], 2) + Math.pow(C[1] - y[1], 2)), k.setAttribute("r", N), S && !p.g._collapsable && p.of.setAttribute("r", N)), p.s._mdf || p.e._mdf || p.h._mdf || p.a._mdf || b) {
|
|
3961
3961
|
N || (N = Math.sqrt(Math.pow(C[0] - y[0], 2) + Math.pow(C[1] - y[1], 2)));
|
|
3962
3962
|
var L = Math.atan2(y[1] - C[1], y[0] - C[0]), G = p.h.v;
|
|
3963
3963
|
G >= 1 ? G = 0.99 : G <= -1 && (G = -0.99);
|
|
@@ -3975,7 +3975,7 @@ function _r() {
|
|
|
3975
3975
|
function $(t, e, i) {
|
|
3976
3976
|
this.shapes = [], this.shapesData = t.shapes, this.stylesList = [], this.shapeModifiers = [], this.itemsData = [], this.processedElements = [], this.animatedContents = [], this.initElement(t, e, i), this.prevViewData = [];
|
|
3977
3977
|
}
|
|
3978
|
-
X([
|
|
3978
|
+
X([zt, he, Te, ts, le, qt, Me], $), $.prototype.initSecondaryElement = function() {
|
|
3979
3979
|
}, $.prototype.identityMatrix = new ht(), $.prototype.buildExpressionInterface = function() {
|
|
3980
3980
|
}, $.prototype.createContent = function() {
|
|
3981
3981
|
this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes();
|
|
@@ -4010,7 +4010,7 @@ function _r() {
|
|
|
4010
4010
|
}, $.prototype.createShapeElement = function(t, e, i) {
|
|
4011
4011
|
var s = 4;
|
|
4012
4012
|
t.ty === "rc" ? s = 5 : t.ty === "el" ? s = 6 : t.ty === "sr" && (s = 7);
|
|
4013
|
-
var n =
|
|
4013
|
+
var n = Ge.getShapeProp(this, t, s, this), r = new ss(e, i, n);
|
|
4014
4014
|
return this.shapes.push(r), this.addShapeToModifiers(r), this.addToAnimatedContents(t, r), r;
|
|
4015
4015
|
}, $.prototype.addToAnimatedContents = function(t, e) {
|
|
4016
4016
|
for (var i = 0, s = this.animatedContents.length; i < s; ) {
|
|
@@ -4026,7 +4026,7 @@ function _r() {
|
|
|
4026
4026
|
}, $.prototype.setElementStyles = function(t) {
|
|
4027
4027
|
var e = t.styles, i, s = this.stylesList.length;
|
|
4028
4028
|
for (i = 0; i < s; i += 1)
|
|
4029
|
-
this.stylesList[i].closed
|
|
4029
|
+
e.indexOf(this.stylesList[i]) === -1 && !this.stylesList[i].closed && e.push(this.stylesList[i]);
|
|
4030
4030
|
}, $.prototype.reloadShapes = function() {
|
|
4031
4031
|
this._isFirstFrame = !0;
|
|
4032
4032
|
var t, e = this.itemsData.length;
|
|
@@ -4039,7 +4039,7 @@ function _r() {
|
|
|
4039
4039
|
var c = [].concat(r), h, m = t.length - 1, _, M, p = [], b = [], k, S, C;
|
|
4040
4040
|
for (h = m; h >= 0; h -= 1) {
|
|
4041
4041
|
if (C = this.searchProcessedElement(t[h]), C ? e[h] = i[C - 1] : t[h]._render = o, t[h].ty === "fl" || t[h].ty === "st" || t[h].ty === "gf" || t[h].ty === "gs" || t[h].ty === "no")
|
|
4042
|
-
C ? e[h].style.closed =
|
|
4042
|
+
C ? e[h].style.closed = t[h].hd : e[h] = this.createStyleElement(t[h], n), t[h]._render && e[h].style.pElem.parentNode !== s && s.appendChild(e[h].style.pElem), p.push(e[h].style);
|
|
4043
4043
|
else if (t[h].ty === "gr") {
|
|
4044
4044
|
if (!C)
|
|
4045
4045
|
e[h] = this.createGroupElement(t[h]);
|
|
@@ -4155,12 +4155,12 @@ function _r() {
|
|
|
4155
4155
|
t.fWeight = g.weight, t.fStyle = g.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), r = t.finalText.length, t.finalLineHeight = t.lh;
|
|
4156
4156
|
var A = t.tr / 1e3 * t.finalSize, T;
|
|
4157
4157
|
if (t.sz)
|
|
4158
|
-
for (var x = !0, I = t.sz[0],
|
|
4158
|
+
for (var x = !0, I = t.sz[0], q = t.sz[1], N, L; x; ) {
|
|
4159
4159
|
L = this.buildFinalText(t.t), N = 0, k = 0, r = L.length, A = t.tr / 1e3 * t.finalSize;
|
|
4160
4160
|
var G = -1;
|
|
4161
4161
|
for (n = 0; n < r; n += 1)
|
|
4162
4162
|
T = L[n].charCodeAt(0), o = !1, L[n] === " " ? G = n : (T === 13 || T === 3) && (k = 0, o = !0, N += t.finalLineHeight || t.finalSize * 1.2), e.chars ? (f = e.getCharData(L[n], v.fStyle, v.fFamily), u = o ? 0 : f.w * t.finalSize / 100) : u = e.measureText(L[n], t.f, t.finalSize), k + u > I && L[n] !== " " ? (G === -1 ? r += 1 : n = G, N += t.finalLineHeight || t.finalSize * 1.2, L.splice(n, G === n ? 1 : 0, "\r"), G = -1, k = 0) : (k += u, k += A);
|
|
4163
|
-
N += v.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize &&
|
|
4163
|
+
N += v.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && q < N ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = L, r = t.finalText.length, x = !1);
|
|
4164
4164
|
}
|
|
4165
4165
|
k = -A, u = 0;
|
|
4166
4166
|
var O = 0, F;
|
|
@@ -4209,10 +4209,10 @@ function _r() {
|
|
|
4209
4209
|
for (P = d[C], P.a.sc && (t.strokeColorAnim = !0), P.a.sw && (t.strokeWidthAnim = !0), (P.a.fc || P.a.fh || P.a.fs || P.a.fb) && (t.fillColorAnim = !0), E = 0, l = P.s.b, n = 0; n < r; n += 1)
|
|
4210
4210
|
a = s[n], a.anIndexes[C] = E, (l == 1 && a.val !== "" || l == 2 && a.val !== "" && a.val !== " " || l == 3 && (a.n || a.val == " " || n == r - 1) || l == 4 && (a.n || n == r - 1)) && (P.s.rn === 1 && w.push(E), E += 1);
|
|
4211
4211
|
i.a[C].s.totalChars = E;
|
|
4212
|
-
var R = -1,
|
|
4212
|
+
var R = -1, z;
|
|
4213
4213
|
if (P.s.rn === 1)
|
|
4214
4214
|
for (n = 0; n < r; n += 1)
|
|
4215
|
-
a = s[n], R != a.anIndexes[C] && (R = a.anIndexes[C],
|
|
4215
|
+
a = s[n], R != a.anIndexes[C] && (R = a.anIndexes[C], z = w.splice(Math.floor(Math.random() * w.length), 1)[0]), a.anIndexes[C] = z;
|
|
4216
4216
|
}
|
|
4217
4217
|
t.yOffset = t.finalLineHeight || t.finalSize * 1.2, t.ls = t.ls || 0, t.ascent = v.ascent * t.finalSize / 100;
|
|
4218
4218
|
}, ft.prototype.updateDocumentData = function(t, e) {
|
|
@@ -4249,7 +4249,7 @@ function _r() {
|
|
|
4249
4249
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
4250
4250
|
var c = 0, h = 0, m = 1, _ = 1;
|
|
4251
4251
|
this.ne.v > 0 ? c = this.ne.v / 100 : h = -this.ne.v / 100, this.xe.v > 0 ? m = 1 - this.xe.v / 100 : _ = 1 + this.xe.v / 100;
|
|
4252
|
-
var M =
|
|
4252
|
+
var M = _e.getBezierEasing(c, h, m, _).get, p = 0, b = this.finalS, k = this.finalE, S = this.data.sh;
|
|
4253
4253
|
if (S === 2)
|
|
4254
4254
|
k === b ? p = o >= k ? 1 : 0 : p = t(0, e(0.5 / (k - b) + (o - b) / (k - b), 1)), p = M(p);
|
|
4255
4255
|
else if (S === 3)
|
|
@@ -4335,7 +4335,7 @@ function _r() {
|
|
|
4335
4335
|
}, ee.prototype.getMeasures = function(t, e) {
|
|
4336
4336
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
4337
4337
|
this._isFirstFrame = !1;
|
|
4338
|
-
var i = this._moreOptions.alignment.v, s = this._animatorsData, n = this._textData, r = this.mHelper, o = this._renderType, c = this.renderedLetters.length, h, m, _, M, p = t.l, b, k, S, C, y, v, f, u, g, A, T, x, I,
|
|
4338
|
+
var i = this._moreOptions.alignment.v, s = this._animatorsData, n = this._textData, r = this.mHelper, o = this._renderType, c = this.renderedLetters.length, h, m, _, M, p = t.l, b, k, S, C, y, v, f, u, g, A, T, x, I, q, N;
|
|
4339
4339
|
if (this._hasMaskedPath) {
|
|
4340
4340
|
if (N = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
4341
4341
|
var L = N.v;
|
|
@@ -4356,7 +4356,7 @@ function _r() {
|
|
|
4356
4356
|
M = p.length, h = 0, m = 0;
|
|
4357
4357
|
var O = t.finalSize * 1.2 * 0.714, F = !0, d, P, a, l, E;
|
|
4358
4358
|
l = s.length;
|
|
4359
|
-
var w, R = -1,
|
|
4359
|
+
var w, R = -1, z, D, Y, H = k, et = f, ct = v, Ct = -1, dt, nt, mt, K, B, Lt, Gt, Vt, Tt = "", Rt = this.defaultPropsArray, Ot;
|
|
4360
4360
|
if (t.j === 2 || t.j === 1) {
|
|
4361
4361
|
var vt = 0, Xt = 0, Yt = t.j === 2 ? -0.5 : -1, St = 0, Ht = !0;
|
|
4362
4362
|
for (_ = 0; _ < M; _ += 1)
|
|
@@ -4394,9 +4394,9 @@ function _r() {
|
|
|
4394
4394
|
d = s[a].a, d.p.propType && (P = s[a].s, w = P.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), w.length ? Pt += d.p.v[0] * w[0] : Pt += d.p.v[0] * w), d.a.propType && (P = s[a].s, w = P.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), w.length ? Pt += d.a.v[0] * w[0] : Pt += d.a.v[0] * w);
|
|
4395
4395
|
for (y = !0, this._pathData.a.v && (k = p[0].an * 0.5 + (x - this._pathData.f.v - p[0].an * 0.5 - p[p.length - 1].an * 0.5) * R / (M - 1), k += this._pathData.f.v); y; )
|
|
4396
4396
|
C + T >= k + Pt || !g ? (I = (k + Pt - C) / S.partialLength, D = u.point[0] + (S.point[0] - u.point[0]) * I, Y = u.point[1] + (S.point[1] - u.point[1]) * I, r.translate(-i[0] * p[_].an * 5e-3, -(i[1] * O) * 0.01), y = !1) : g && (C += S.partialLength, v += 1, v >= g.length && (v = 0, f += 1, A[f] ? g = A[f].points : N.v.c ? (v = 0, f = 0, g = A[f].points) : (C -= S.partialLength, g = null)), g && (u = S, S = g[v], T = S.partialLength));
|
|
4397
|
-
|
|
4397
|
+
z = p[_].an / 2 - p[_].add, r.translate(-z, 0, 0);
|
|
4398
4398
|
} else
|
|
4399
|
-
|
|
4399
|
+
z = p[_].an / 2 - p[_].add, r.translate(-z, 0, 0), r.translate(-i[0] * p[_].an * 5e-3, -i[1] * O * 0.01, 0);
|
|
4400
4400
|
for (a = 0; a < l; a += 1)
|
|
4401
4401
|
d = s[a].a, d.t.propType && (P = s[a].s, w = P.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), (h !== 0 || t.j !== 0) && (this._hasMaskedPath ? w.length ? k += d.t.v * w[0] : k += d.t.v * w : w.length ? h += d.t.v * w[0] : h += d.t.v * w));
|
|
4402
4402
|
for (t.strokeWidthAnim && (mt = t.sw || 0), t.strokeColorAnim && (t.sc ? nt = [t.sc[0], t.sc[1], t.sc[2]] : nt = [0, 0, 0]), t.fillColorAnim && t.fc && (K = [t.fc[0], t.fc[1], t.fc[2]]), a = 0; a < l; a += 1)
|
|
@@ -4418,8 +4418,8 @@ function _r() {
|
|
|
4418
4418
|
d = s[a].a, d.p.propType && (P = s[a].s, w = P.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), this._hasMaskedPath ? w.length ? r.translate(0, d.p.v[1] * w[0], -d.p.v[2] * w[1]) : r.translate(0, d.p.v[1] * w, -d.p.v[2] * w) : w.length ? r.translate(d.p.v[0] * w[0], d.p.v[1] * w[1], -d.p.v[2] * w[2]) : r.translate(d.p.v[0] * w, d.p.v[1] * w, -d.p.v[2] * w));
|
|
4419
4419
|
if (t.strokeWidthAnim && (Lt = mt < 0 ? 0 : mt), t.strokeColorAnim && (Gt = "rgb(" + Math.round(nt[0] * 255) + "," + Math.round(nt[1] * 255) + "," + Math.round(nt[2] * 255) + ")"), t.fillColorAnim && t.fc && (Vt = "rgb(" + Math.round(K[0] * 255) + "," + Math.round(K[1] * 255) + "," + Math.round(K[2] * 255) + ")"), this._hasMaskedPath) {
|
|
4420
4420
|
if (r.translate(0, -t.ls), r.translate(0, i[1] * O * 0.01 + m, 0), this._pathData.p.v) {
|
|
4421
|
-
|
|
4422
|
-
var ie = Math.atan(
|
|
4421
|
+
q = (S.point[1] - u.point[1]) / (S.point[0] - u.point[0]);
|
|
4422
|
+
var ie = Math.atan(q) * 180 / Math.PI;
|
|
4423
4423
|
S.point[0] < u.point[0] && (ie += 180), r.rotate(-ie * Math.PI / 180);
|
|
4424
4424
|
}
|
|
4425
4425
|
r.translate(D, Y, 0), k -= i[0] * p[_].an * 5e-3, p[_ + 1] && R !== p[_ + 1].ind && (k += p[_].an / 2, k += t.tr * 1e-3 * t.finalSize);
|
|
@@ -4432,7 +4432,7 @@ function _r() {
|
|
|
4432
4432
|
r.translate(p[_].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[p[_].line]) / 2, 0, 0);
|
|
4433
4433
|
break;
|
|
4434
4434
|
}
|
|
4435
|
-
r.translate(0, -t.ls), r.translate(
|
|
4435
|
+
r.translate(0, -t.ls), r.translate(z, 0, 0), r.translate(i[0] * p[_].an * 5e-3, i[1] * O * 0.01, 0), h += p[_].l + t.tr * 1e-3 * t.finalSize;
|
|
4436
4436
|
}
|
|
4437
4437
|
o === "html" ? Tt = r.toCSS() : o === "svg" ? Tt = r.to2dCSS() : Rt = [r.props[0], r.props[1], r.props[2], r.props[3], r.props[4], r.props[5], r.props[6], r.props[7], r.props[8], r.props[9], r.props[10], r.props[11], r.props[12], r.props[13], r.props[14], r.props[15]], Ot = dt;
|
|
4438
4438
|
}
|
|
@@ -4481,7 +4481,7 @@ function _r() {
|
|
|
4481
4481
|
function Ft(t, e, i) {
|
|
4482
4482
|
this.textSpans = [], this.renderType = "svg", this.initElement(t, e, i);
|
|
4483
4483
|
}
|
|
4484
|
-
X([
|
|
4484
|
+
X([zt, he, Te, le, qt, Me, yt], Ft), Ft.prototype.createContent = function() {
|
|
4485
4485
|
this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = W("text"));
|
|
4486
4486
|
}, Ft.prototype.buildTextContents = function(t) {
|
|
4487
4487
|
for (var e = 0, i = t.length, s = [], n = ""; e < i; )
|
|
@@ -4554,7 +4554,7 @@ function _r() {
|
|
|
4554
4554
|
u = this.globalData.fontManager.getCharData(i.finalText[t], s.fStyle, this.globalData.fontManager.getFontByName(i.f).fFamily);
|
|
4555
4555
|
var A;
|
|
4556
4556
|
if (u.t === 1)
|
|
4557
|
-
A = new
|
|
4557
|
+
A = new Fe(u.data, this.globalData, this);
|
|
4558
4558
|
else {
|
|
4559
4559
|
var T = dr;
|
|
4560
4560
|
u.data && u.data.shapes && (T = this.buildShapeData(u.data, i.finalSize)), A = new $(T, this.globalData, this);
|
|
@@ -4601,7 +4601,7 @@ function _r() {
|
|
|
4601
4601
|
function vi(t, e, i) {
|
|
4602
4602
|
this.initElement(t, e, i);
|
|
4603
4603
|
}
|
|
4604
|
-
X([
|
|
4604
|
+
X([Ee], vi), vi.prototype.createContent = function() {
|
|
4605
4605
|
var t = W("rect");
|
|
4606
4606
|
t.setAttribute("width", this.data.sw), t.setAttribute("height", this.data.sh), t.setAttribute("fill", this.data.sc), this.layerElement.appendChild(t);
|
|
4607
4607
|
};
|
|
@@ -4616,7 +4616,7 @@ function _r() {
|
|
|
4616
4616
|
}, Wt.prototype.destroy = function() {
|
|
4617
4617
|
}, Wt.prototype.sourceRectAtTime = function() {
|
|
4618
4618
|
}, Wt.prototype.hide = function() {
|
|
4619
|
-
}, X([
|
|
4619
|
+
}, X([zt, he, le, qt], Wt);
|
|
4620
4620
|
function st() {
|
|
4621
4621
|
}
|
|
4622
4622
|
X([lt], st), st.prototype.createNull = function(t) {
|
|
@@ -4626,7 +4626,7 @@ function _r() {
|
|
|
4626
4626
|
}, st.prototype.createText = function(t) {
|
|
4627
4627
|
return new Ft(t, this.globalData, this);
|
|
4628
4628
|
}, st.prototype.createImage = function(t) {
|
|
4629
|
-
return new
|
|
4629
|
+
return new Ee(t, this.globalData, this);
|
|
4630
4630
|
}, st.prototype.createSolid = function(t) {
|
|
4631
4631
|
return new vi(t, this.globalData, this);
|
|
4632
4632
|
}, st.prototype.configAnimation = function(t) {
|
|
@@ -4655,7 +4655,7 @@ function _r() {
|
|
|
4655
4655
|
if (!(e[t] || this.layers[t].ty === 99)) {
|
|
4656
4656
|
e[t] = !0;
|
|
4657
4657
|
var i = this.createItem(this.layers[t]);
|
|
4658
|
-
if (e[t] = i,
|
|
4658
|
+
if (e[t] = i, Oe() && (this.layers[t].ty === 0 && this.globalData.projectInterface.registerComposition(i), i.initExpressions()), this.appendElementInPos(i, t), this.layers[t].tt) {
|
|
4659
4659
|
var s = "tp" in this.layers[t] ? this.findIndexByInd(this.layers[t].tp) : t - 1;
|
|
4660
4660
|
if (s === -1)
|
|
4661
4661
|
return;
|
|
@@ -4704,7 +4704,7 @@ function _r() {
|
|
|
4704
4704
|
};
|
|
4705
4705
|
function It() {
|
|
4706
4706
|
}
|
|
4707
|
-
X([
|
|
4707
|
+
X([zt, he, le, qt, Me], It), It.prototype.initElement = function(t, e, i) {
|
|
4708
4708
|
this.initFrame(), this.initBaseData(t, e, i), this.initTransform(t, e, i), this.initRenderable(), this.initHierarchy(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), (this.data.xt || !e.progressiveLoad) && this.buildAllItems(), this.hide();
|
|
4709
4709
|
}, It.prototype.prepareFrame = function(t) {
|
|
4710
4710
|
if (this._mdf = !1, this.prepareRenderableFrame(t), this.prepareProperties(t, this.isInRange), !(!this.isInRange && !this.data.xt)) {
|
|
@@ -4733,13 +4733,13 @@ function _r() {
|
|
|
4733
4733
|
}, It.prototype.destroy = function() {
|
|
4734
4734
|
this.destroyElements(), this.destroyBaseElement();
|
|
4735
4735
|
};
|
|
4736
|
-
function
|
|
4736
|
+
function Fe(t, e, i) {
|
|
4737
4737
|
this.layers = t.layers, this.supports3d = !0, this.completeLayers = !1, this.pendingElements = [], this.elements = this.layers ? tt(this.layers.length) : [], this.initElement(t, e, i), this.tm = t.tm ? V.getProp(this, t.tm, 0, e.frameRate, this) : {
|
|
4738
4738
|
_placeholder: !0
|
|
4739
4739
|
};
|
|
4740
4740
|
}
|
|
4741
|
-
X([st, It,
|
|
4742
|
-
return new
|
|
4741
|
+
X([st, It, Te], Fe), Fe.prototype.createComp = function(t) {
|
|
4742
|
+
return new Fe(t, this.globalData, this);
|
|
4743
4743
|
};
|
|
4744
4744
|
function mi(t, e) {
|
|
4745
4745
|
this.animationItem = t, this.layers = null, this.renderedFrame = -1, this.svgElement = W("svg");
|
|
@@ -4784,14 +4784,14 @@ function _r() {
|
|
|
4784
4784
|
}, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg";
|
|
4785
4785
|
}
|
|
4786
4786
|
return X([st], mi), mi.prototype.createComp = function(t) {
|
|
4787
|
-
return new
|
|
4788
|
-
}, As("svg", mi), Nt.registerModifier("tm", bt), Nt.registerModifier("pb",
|
|
4787
|
+
return new Fe(t, this.globalData, this);
|
|
4788
|
+
}, As("svg", mi), Nt.registerModifier("tm", bt), Nt.registerModifier("pb", be), Nt.registerModifier("rp", wt), Nt.registerModifier("rd", Se), Nt.registerModifier("zz", ke), Nt.registerModifier("op", Ae), Z;
|
|
4789
4789
|
});
|
|
4790
|
-
}(
|
|
4790
|
+
}(Ie, Ie.exports)), Ie.exports;
|
|
4791
4791
|
}
|
|
4792
|
-
var br = _r();
|
|
4792
|
+
var br = /* @__PURE__ */ _r();
|
|
4793
4793
|
const Sr = /* @__PURE__ */ gr(br), Pr = vr(
|
|
4794
|
-
({ json:
|
|
4794
|
+
({ json: Le, autoplay: pe = !0, delay: ue = 0, onAnimationEnd: Mt, ...Ve }, ce) => {
|
|
4795
4795
|
const Zt = ps(null), Et = ps(null), [de, at] = mr(!1), _t = (X) => {
|
|
4796
4796
|
at(X.matches);
|
|
4797
4797
|
};
|
|
@@ -4801,7 +4801,7 @@ const Sr = /* @__PURE__ */ gr(br), Pr = vr(
|
|
|
4801
4801
|
X.removeEventListener("change", _t);
|
|
4802
4802
|
};
|
|
4803
4803
|
}, []), us(() => {
|
|
4804
|
-
const
|
|
4804
|
+
const $e = setTimeout(() => {
|
|
4805
4805
|
if (Zt.current) {
|
|
4806
4806
|
const Kt = {
|
|
4807
4807
|
"rgb(153,10,227)": "--purpur-color-brand-core-purple",
|
|
@@ -4813,7 +4813,7 @@ const Sr = /* @__PURE__ */ gr(br), Pr = vr(
|
|
|
4813
4813
|
renderer: "svg",
|
|
4814
4814
|
loop: !1,
|
|
4815
4815
|
autoplay: !de && pe,
|
|
4816
|
-
animationData:
|
|
4816
|
+
animationData: Le,
|
|
4817
4817
|
rendererSettings: {
|
|
4818
4818
|
preserveAspectRatio: "xMidYMid slice"
|
|
4819
4819
|
}
|
|
@@ -4824,8 +4824,8 @@ const Sr = /* @__PURE__ */ gr(br), Pr = vr(
|
|
|
4824
4824
|
["fill", "stroke"].forEach((me) => {
|
|
4825
4825
|
const se = ve.getAttribute(me);
|
|
4826
4826
|
if (se && Object.prototype.hasOwnProperty.call(Kt, se)) {
|
|
4827
|
-
const
|
|
4828
|
-
|
|
4827
|
+
const Re = U.getPropertyValue(Kt[se]).trim();
|
|
4828
|
+
Re && ve.setAttribute(me, Re);
|
|
4829
4829
|
}
|
|
4830
4830
|
});
|
|
4831
4831
|
});
|
|
@@ -4839,13 +4839,13 @@ const Sr = /* @__PURE__ */ gr(br), Pr = vr(
|
|
|
4839
4839
|
}, ue);
|
|
4840
4840
|
return () => {
|
|
4841
4841
|
var Kt;
|
|
4842
|
-
clearTimeout(
|
|
4842
|
+
clearTimeout($e), (Kt = Et.current) == null || Kt.destroy();
|
|
4843
4843
|
};
|
|
4844
|
-
}, [de,
|
|
4844
|
+
}, [de, Le, pe, Mt, ue]), /* @__PURE__ */ fs("div", { ref: ce, ...Ve, children: /* @__PURE__ */ fs("div", { ref: Zt }) });
|
|
4845
4845
|
}
|
|
4846
4846
|
);
|
|
4847
4847
|
Pr.displayName = "AnimatedIllustrativeIcon";
|
|
4848
4848
|
export {
|
|
4849
4849
|
Pr as A
|
|
4850
4850
|
};
|
|
4851
|
-
//# sourceMappingURL=animated-illustrative-icon-
|
|
4851
|
+
//# sourceMappingURL=animated-illustrative-icon-DIij22F1.mjs.map
|