@justeattakeaway/pie-lottie-player 0.3.13 → 0.4.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.
|
@@ -20,7 +20,7 @@ function fa(Tt) {
|
|
|
20
20
|
}
|
|
21
21
|
var As = { exports: {} };
|
|
22
22
|
(function(Tt, ze) {
|
|
23
|
-
typeof navigator < "u" && function(ie, It) {
|
|
23
|
+
typeof document < "u" && typeof navigator < "u" && function(ie, It) {
|
|
24
24
|
Tt.exports = It();
|
|
25
25
|
}(pa, function() {
|
|
26
26
|
var ie = "", It = !1, Jt = -999999, dt = function() {
|
|
@@ -125,30 +125,30 @@ var As = { exports: {} };
|
|
|
125
125
|
return Ts + "__lottie_element_" + (zs += 1);
|
|
126
126
|
});
|
|
127
127
|
function rs(t, e, s) {
|
|
128
|
-
var i, a, r, h, n,
|
|
129
|
-
switch (
|
|
128
|
+
var i, a, r, h, n, g, y, o;
|
|
129
|
+
switch (g = s * (1 - e), y = s * (1 - (n = 6 * t - (h = Math.floor(6 * t))) * e), o = s * (1 - (1 - n) * e), h % 6) {
|
|
130
130
|
case 0:
|
|
131
|
-
i = s, a = o, r =
|
|
131
|
+
i = s, a = o, r = g;
|
|
132
132
|
break;
|
|
133
133
|
case 1:
|
|
134
|
-
i = y, a = s, r =
|
|
134
|
+
i = y, a = s, r = g;
|
|
135
135
|
break;
|
|
136
136
|
case 2:
|
|
137
|
-
i =
|
|
137
|
+
i = g, a = s, r = o;
|
|
138
138
|
break;
|
|
139
139
|
case 3:
|
|
140
|
-
i =
|
|
140
|
+
i = g, a = y, r = s;
|
|
141
141
|
break;
|
|
142
142
|
case 4:
|
|
143
|
-
i = o, a =
|
|
143
|
+
i = o, a = g, r = s;
|
|
144
144
|
break;
|
|
145
145
|
case 5:
|
|
146
|
-
i = s, a =
|
|
146
|
+
i = s, a = g, r = y;
|
|
147
147
|
}
|
|
148
148
|
return [i, a, r];
|
|
149
149
|
}
|
|
150
150
|
function ns(t, e, s) {
|
|
151
|
-
var i, a = Math.max(t, e, s), r = Math.min(t, e, s), h = a - r, n = a === 0 ? 0 : h / a,
|
|
151
|
+
var i, a = Math.max(t, e, s), r = Math.min(t, e, s), h = a - r, n = a === 0 ? 0 : h / a, g = a / 255;
|
|
152
152
|
switch (a) {
|
|
153
153
|
case r:
|
|
154
154
|
i = 0;
|
|
@@ -162,7 +162,7 @@ var As = { exports: {} };
|
|
|
162
162
|
case s:
|
|
163
163
|
i = t - e + 4 * h, i /= 6 * h;
|
|
164
164
|
}
|
|
165
|
-
return [i, n,
|
|
165
|
+
return [i, n, g];
|
|
166
166
|
}
|
|
167
167
|
function Os(t, e) {
|
|
168
168
|
var s = ns(255 * t[0], 255 * t[1], 255 * t[2]);
|
|
@@ -214,98 +214,98 @@ var As = { exports: {} };
|
|
|
214
214
|
function n() {
|
|
215
215
|
e || (e = h(function(y) {
|
|
216
216
|
if (r.dataManager || (r.dataManager = function() {
|
|
217
|
-
function d(
|
|
218
|
-
var M, _, D, w, P, V, O =
|
|
219
|
-
for (_ = 0; _ < O; _ += 1) if ("ks" in (M =
|
|
217
|
+
function d(x, T) {
|
|
218
|
+
var M, _, D, w, P, V, O = x.length;
|
|
219
|
+
for (_ = 0; _ < O; _ += 1) if ("ks" in (M = x[_]) && !M.completed) {
|
|
220
220
|
if (M.completed = !0, M.hasMask) {
|
|
221
221
|
var B = M.masksProperties;
|
|
222
222
|
for (w = B.length, D = 0; D < w; D += 1) if (B[D].pt.k.i) l(B[D].pt.k);
|
|
223
223
|
else for (V = B[D].pt.k.length, P = 0; P < V; P += 1) B[D].pt.k[P].s && l(B[D].pt.k[P].s[0]), B[D].pt.k[P].e && l(B[D].pt.k[P].e[0]);
|
|
224
224
|
}
|
|
225
|
-
M.ty === 0 ? (M.layers = c(M.refId,
|
|
225
|
+
M.ty === 0 ? (M.layers = c(M.refId, T), d(M.layers, T)) : M.ty === 4 ? m(M.shapes) : M.ty === 5 && F(M);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
function c(
|
|
228
|
+
function c(x, T) {
|
|
229
229
|
var M = function(_, D) {
|
|
230
230
|
for (var w = 0, P = D.length; w < P; ) {
|
|
231
231
|
if (D[w].id === _) return D[w];
|
|
232
232
|
w += 1;
|
|
233
233
|
}
|
|
234
234
|
return null;
|
|
235
|
-
}(
|
|
235
|
+
}(x, T);
|
|
236
236
|
return M ? M.layers.__used ? JSON.parse(JSON.stringify(M.layers)) : (M.layers.__used = !0, M.layers) : null;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
var
|
|
240
|
-
for (
|
|
241
|
-
else for (_ =
|
|
242
|
-
else
|
|
238
|
+
function m(x) {
|
|
239
|
+
var T, M, _;
|
|
240
|
+
for (T = x.length - 1; T >= 0; T -= 1) if (x[T].ty === "sh") if (x[T].ks.k.i) l(x[T].ks.k);
|
|
241
|
+
else for (_ = x[T].ks.k.length, M = 0; M < _; M += 1) x[T].ks.k[M].s && l(x[T].ks.k[M].s[0]), x[T].ks.k[M].e && l(x[T].ks.k[M].e[0]);
|
|
242
|
+
else x[T].ty === "gr" && m(x[T].it);
|
|
243
243
|
}
|
|
244
|
-
function l(
|
|
245
|
-
var
|
|
246
|
-
for (
|
|
244
|
+
function l(x) {
|
|
245
|
+
var T, M = x.i.length;
|
|
246
|
+
for (T = 0; T < M; T += 1) x.i[T][0] += x.v[T][0], x.i[T][1] += x.v[T][1], x.o[T][0] += x.v[T][0], x.o[T][1] += x.v[T][1];
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
var M =
|
|
250
|
-
return
|
|
248
|
+
function f(x, T) {
|
|
249
|
+
var M = T ? T.split(".") : [100, 100, 100];
|
|
250
|
+
return x[0] > M[0] || !(M[0] > x[0]) && (x[1] > M[1] || !(M[1] > x[1]) && (x[2] > M[2] || !(M[2] > x[2]) && null));
|
|
251
251
|
}
|
|
252
|
-
var
|
|
253
|
-
var
|
|
254
|
-
function
|
|
252
|
+
var p, u = /* @__PURE__ */ function() {
|
|
253
|
+
var x = [4, 4, 14];
|
|
254
|
+
function T(M) {
|
|
255
255
|
var _, D, w, P = M.length;
|
|
256
256
|
for (_ = 0; _ < P; _ += 1) M[_].ty === 5 && (w = void 0, w = (D = M[_]).t.d, D.t.d = { k: [{ s: w, t: 0 }] });
|
|
257
257
|
}
|
|
258
258
|
return function(M) {
|
|
259
|
-
if (
|
|
259
|
+
if (f(x, M.v) && (T(M.layers), M.assets)) {
|
|
260
260
|
var _, D = M.assets.length;
|
|
261
|
-
for (_ = 0; _ < D; _ += 1) M.assets[_].layers &&
|
|
261
|
+
for (_ = 0; _ < D; _ += 1) M.assets[_].layers && T(M.assets[_].layers);
|
|
262
262
|
}
|
|
263
263
|
};
|
|
264
|
-
}(), v = (
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
for (
|
|
268
|
-
var _ =
|
|
269
|
-
_.data && _.data.shapes && (
|
|
264
|
+
}(), v = (p = [4, 7, 99], function(x) {
|
|
265
|
+
if (x.chars && !f(p, x.v)) {
|
|
266
|
+
var T, M = x.chars.length;
|
|
267
|
+
for (T = 0; T < M; T += 1) {
|
|
268
|
+
var _ = x.chars[T];
|
|
269
|
+
_.data && _.data.shapes && (m(_.data.shapes), _.data.ip = 0, _.data.op = 99999, _.data.st = 0, _.data.sr = 1, _.data.ks = { p: { k: [0, 0], a: 0 }, s: { k: [100, 100], a: 0 }, a: { k: [0, 0], a: 0 }, r: { k: 0, a: 0 }, o: { k: 100, a: 0 } }, x.chars[T].t || (_.data.shapes.push({ ty: "no" }), _.data.shapes[0].it.push({ p: { k: [0, 0], a: 0 }, s: { k: [100, 100], a: 0 }, a: { k: [0, 0], a: 0 }, r: { k: 0, a: 0 }, o: { k: 100, a: 0 }, sk: { k: 0, a: 0 }, sa: { k: 0, a: 0 }, ty: "tr" })));
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
}),
|
|
273
|
-
var
|
|
274
|
-
function
|
|
272
|
+
}), k = /* @__PURE__ */ function() {
|
|
273
|
+
var x = [5, 7, 15];
|
|
274
|
+
function T(M) {
|
|
275
275
|
var _, D, w = M.length;
|
|
276
276
|
for (_ = 0; _ < w; _ += 1) M[_].ty === 5 && (D = void 0, typeof (D = M[_].t.p).a == "number" && (D.a = { a: 0, k: D.a }), typeof D.p == "number" && (D.p = { a: 0, k: D.p }), typeof D.r == "number" && (D.r = { a: 0, k: D.r }));
|
|
277
277
|
}
|
|
278
278
|
return function(M) {
|
|
279
|
-
if (
|
|
279
|
+
if (f(x, M.v) && (T(M.layers), M.assets)) {
|
|
280
280
|
var _, D = M.assets.length;
|
|
281
|
-
for (_ = 0; _ < D; _ += 1) M.assets[_].layers &&
|
|
281
|
+
for (_ = 0; _ < D; _ += 1) M.assets[_].layers && T(M.assets[_].layers);
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
284
|
}(), C = /* @__PURE__ */ function() {
|
|
285
|
-
var
|
|
286
|
-
function
|
|
285
|
+
var x = [4, 1, 9];
|
|
286
|
+
function T(_) {
|
|
287
287
|
var D, w, P, V = _.length;
|
|
288
|
-
for (D = 0; D < V; D += 1) if (_[D].ty === "gr")
|
|
288
|
+
for (D = 0; D < V; D += 1) if (_[D].ty === "gr") T(_[D].it);
|
|
289
289
|
else if (_[D].ty === "fl" || _[D].ty === "st") if (_[D].c.k && _[D].c.k[0].i) for (P = _[D].c.k.length, w = 0; w < P; w += 1) _[D].c.k[w].s && (_[D].c.k[w].s[0] /= 255, _[D].c.k[w].s[1] /= 255, _[D].c.k[w].s[2] /= 255, _[D].c.k[w].s[3] /= 255), _[D].c.k[w].e && (_[D].c.k[w].e[0] /= 255, _[D].c.k[w].e[1] /= 255, _[D].c.k[w].e[2] /= 255, _[D].c.k[w].e[3] /= 255);
|
|
290
290
|
else _[D].c.k[0] /= 255, _[D].c.k[1] /= 255, _[D].c.k[2] /= 255, _[D].c.k[3] /= 255;
|
|
291
291
|
}
|
|
292
292
|
function M(_) {
|
|
293
293
|
var D, w = _.length;
|
|
294
|
-
for (D = 0; D < w; D += 1) _[D].ty === 4 &&
|
|
294
|
+
for (D = 0; D < w; D += 1) _[D].ty === 4 && T(_[D].shapes);
|
|
295
295
|
}
|
|
296
296
|
return function(_) {
|
|
297
|
-
if (
|
|
297
|
+
if (f(x, _.v) && (M(_.layers), _.assets)) {
|
|
298
298
|
var D, w = _.assets.length;
|
|
299
299
|
for (D = 0; D < w; D += 1) _.assets[D].layers && M(_.assets[D].layers);
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
302
|
}(), A = /* @__PURE__ */ function() {
|
|
303
|
-
var
|
|
304
|
-
function
|
|
303
|
+
var x = [4, 4, 18];
|
|
304
|
+
function T(_) {
|
|
305
305
|
var D, w, P;
|
|
306
306
|
for (D = _.length - 1; D >= 0; D -= 1) if (_[D].ty === "sh") if (_[D].ks.k.i) _[D].ks.k.c = _[D].closed;
|
|
307
307
|
else for (P = _[D].ks.k.length, w = 0; w < P; w += 1) _[D].ks.k[w].s && (_[D].ks.k[w].s[0].c = _[D].closed), _[D].ks.k[w].e && (_[D].ks.k[w].e[0].c = _[D].closed);
|
|
308
|
-
else _[D].ty === "gr" &&
|
|
308
|
+
else _[D].ty === "gr" && T(_[D].it);
|
|
309
309
|
}
|
|
310
310
|
function M(_) {
|
|
311
311
|
var D, w, P, V, O, B, b = _.length;
|
|
@@ -315,51 +315,51 @@ var As = { exports: {} };
|
|
|
315
315
|
for (V = S.length, P = 0; P < V; P += 1) if (S[P].pt.k.i) S[P].pt.k.c = S[P].cl;
|
|
316
316
|
else for (B = S[P].pt.k.length, O = 0; O < B; O += 1) S[P].pt.k[O].s && (S[P].pt.k[O].s[0].c = S[P].cl), S[P].pt.k[O].e && (S[P].pt.k[O].e[0].c = S[P].cl);
|
|
317
317
|
}
|
|
318
|
-
D.ty === 4 &&
|
|
318
|
+
D.ty === 4 && T(D.shapes);
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return function(_) {
|
|
322
|
-
if (
|
|
322
|
+
if (f(x, _.v) && (M(_.layers), _.assets)) {
|
|
323
323
|
var D, w = _.assets.length;
|
|
324
324
|
for (D = 0; D < w; D += 1) _.assets[D].layers && M(_.assets[D].layers);
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
327
|
}();
|
|
328
|
-
function
|
|
329
|
-
|
|
328
|
+
function F(x) {
|
|
329
|
+
x.t.a.length === 0 && x.t.p;
|
|
330
330
|
}
|
|
331
|
-
var I = { completeData: function(
|
|
332
|
-
|
|
333
|
-
if (
|
|
334
|
-
var _ = 0, D =
|
|
335
|
-
for (_ = 0; _ < D; _ += 1)
|
|
331
|
+
var I = { completeData: function(x) {
|
|
332
|
+
x.__complete || (C(x), u(x), v(x), k(x), A(x), d(x.layers, x.assets), function(T, M) {
|
|
333
|
+
if (T) {
|
|
334
|
+
var _ = 0, D = T.length;
|
|
335
|
+
for (_ = 0; _ < D; _ += 1) T[_].t === 1 && (T[_].data.layers = c(T[_].data.refId, M), d(T[_].data.layers, M));
|
|
336
336
|
}
|
|
337
|
-
}(
|
|
337
|
+
}(x.chars, x.assets), x.__complete = !0);
|
|
338
338
|
} };
|
|
339
|
-
return I.checkColors = C, I.checkChars = v, I.checkPathProperties =
|
|
339
|
+
return I.checkColors = C, I.checkChars = v, I.checkPathProperties = k, I.checkShapes = A, I.completeLayers = d, I;
|
|
340
340
|
}()), r.assetLoader || (r.assetLoader = /* @__PURE__ */ function() {
|
|
341
341
|
function d(c) {
|
|
342
|
-
var
|
|
343
|
-
return
|
|
342
|
+
var m = c.getResponseHeader("content-type");
|
|
343
|
+
return m && c.responseType === "json" && m.indexOf("json") !== -1 || c.response && os(c.response) === "object" ? c.response : c.response && typeof c.response == "string" ? JSON.parse(c.response) : c.responseText ? JSON.parse(c.responseText) : null;
|
|
344
344
|
}
|
|
345
|
-
return { load: function(c,
|
|
346
|
-
var
|
|
345
|
+
return { load: function(c, m, l, f) {
|
|
346
|
+
var p, u = new XMLHttpRequest();
|
|
347
347
|
try {
|
|
348
348
|
u.responseType = "json";
|
|
349
349
|
} catch {
|
|
350
350
|
}
|
|
351
351
|
u.onreadystatechange = function() {
|
|
352
|
-
if (u.readyState === 4) if (u.status === 200)
|
|
352
|
+
if (u.readyState === 4) if (u.status === 200) p = d(u), l(p);
|
|
353
353
|
else try {
|
|
354
|
-
|
|
354
|
+
p = d(u), l(p);
|
|
355
355
|
} catch (v) {
|
|
356
|
-
|
|
356
|
+
f && f(v);
|
|
357
357
|
}
|
|
358
358
|
};
|
|
359
359
|
try {
|
|
360
360
|
u.open(["G", "E", "T"].join(""), c, !0);
|
|
361
361
|
} catch {
|
|
362
|
-
u.open(["G", "E", "T"].join(""),
|
|
362
|
+
u.open(["G", "E", "T"].join(""), m + "/" + c, !0);
|
|
363
363
|
}
|
|
364
364
|
u.send();
|
|
365
365
|
} };
|
|
@@ -381,29 +381,29 @@ var As = { exports: {} };
|
|
|
381
381
|
i[d] = null, o.status === "success" ? c.onComplete(o.payload) : c.onError && c.onError();
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function g(y, o) {
|
|
385
385
|
var d = "processId_" + (s += 1);
|
|
386
386
|
return i[d] = { onComplete: y, onError: o }, d;
|
|
387
387
|
}
|
|
388
388
|
return { loadAnimation: function(y, o, d) {
|
|
389
389
|
n();
|
|
390
|
-
var c =
|
|
390
|
+
var c = g(o, d);
|
|
391
391
|
e.postMessage({ type: "loadAnimation", path: y, fullPath: window.location.origin + window.location.pathname, id: c });
|
|
392
392
|
}, loadData: function(y, o, d) {
|
|
393
393
|
n();
|
|
394
|
-
var c =
|
|
394
|
+
var c = g(o, d);
|
|
395
395
|
e.postMessage({ type: "loadData", path: y, fullPath: window.location.origin + window.location.pathname, id: c });
|
|
396
396
|
}, completeAnimation: function(y, o, d) {
|
|
397
397
|
n();
|
|
398
|
-
var c =
|
|
398
|
+
var c = g(o, d);
|
|
399
399
|
e.postMessage({ type: "complete", animation: y, id: c });
|
|
400
400
|
} };
|
|
401
401
|
}(), Ri = function() {
|
|
402
402
|
var t = function() {
|
|
403
403
|
var n = Pt("canvas");
|
|
404
404
|
n.width = 1, n.height = 1;
|
|
405
|
-
var
|
|
406
|
-
return
|
|
405
|
+
var g = n.getContext("2d");
|
|
406
|
+
return g.fillStyle = "rgba(0,0,0,0)", g.fillRect(0, 0, 1, 1), n;
|
|
407
407
|
}();
|
|
408
408
|
function e() {
|
|
409
409
|
this.loadedAssets += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
@@ -411,34 +411,34 @@ var As = { exports: {} };
|
|
|
411
411
|
function s() {
|
|
412
412
|
this.loadedFootagesCount += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
413
413
|
}
|
|
414
|
-
function i(n,
|
|
414
|
+
function i(n, g, y) {
|
|
415
415
|
var o = "";
|
|
416
416
|
if (n.e) o = n.p;
|
|
417
|
-
else if (
|
|
417
|
+
else if (g) {
|
|
418
418
|
var d = n.p;
|
|
419
|
-
d.indexOf("images/") !== -1 && (d = d.split("/")[1]), o =
|
|
419
|
+
d.indexOf("images/") !== -1 && (d = d.split("/")[1]), o = g + d;
|
|
420
420
|
} else o = y, o += n.u ? n.u : "", o += n.p;
|
|
421
421
|
return o;
|
|
422
422
|
}
|
|
423
423
|
function a(n) {
|
|
424
|
-
var
|
|
425
|
-
(n.getBBox().width ||
|
|
424
|
+
var g = 0, y = setInterval((function() {
|
|
425
|
+
(n.getBBox().width || g > 500) && (this._imageLoaded(), clearInterval(y)), g += 1;
|
|
426
426
|
}).bind(this), 50);
|
|
427
427
|
}
|
|
428
428
|
function r(n) {
|
|
429
|
-
var
|
|
429
|
+
var g = { assetData: n }, y = i(n, this.assetsPath, this.path);
|
|
430
430
|
return Ce.loadData(y, (function(o) {
|
|
431
|
-
|
|
431
|
+
g.img = o, this._footageLoaded();
|
|
432
432
|
}).bind(this), (function() {
|
|
433
|
-
|
|
434
|
-
}).bind(this)),
|
|
433
|
+
g.img = {}, this._footageLoaded();
|
|
434
|
+
}).bind(this)), g;
|
|
435
435
|
}
|
|
436
436
|
function h() {
|
|
437
437
|
this._imageLoaded = e.bind(this), this._footageLoaded = s.bind(this), this.testImageLoaded = a.bind(this), this.createFootageData = r.bind(this), this.assetsPath = "", this.path = "", this.totalImages = 0, this.totalFootages = 0, this.loadedAssets = 0, this.loadedFootagesCount = 0, this.imagesLoadedCb = null, this.images = [];
|
|
438
438
|
}
|
|
439
|
-
return h.prototype = { loadAssets: function(n,
|
|
439
|
+
return h.prototype = { loadAssets: function(n, g) {
|
|
440
440
|
var y;
|
|
441
|
-
this.imagesLoadedCb =
|
|
441
|
+
this.imagesLoadedCb = g;
|
|
442
442
|
var o = n.length;
|
|
443
443
|
for (y = 0; y < o; y += 1) n[y].layers || (n[y].t && n[y].t !== "seq" ? n[y].t === 3 && (this.totalFootages += 1, this.images.push(this.createFootageData(n[y]))) : (this.totalImages += 1, this.images.push(this._createImageData(n[y]))));
|
|
444
444
|
}, setAssetsPath: function(n) {
|
|
@@ -452,27 +452,27 @@ var As = { exports: {} };
|
|
|
452
452
|
}, destroy: function() {
|
|
453
453
|
this.imagesLoadedCb = null, this.images.length = 0;
|
|
454
454
|
}, getAsset: function(n) {
|
|
455
|
-
for (var
|
|
456
|
-
if (this.images[
|
|
457
|
-
|
|
455
|
+
for (var g = 0, y = this.images.length; g < y; ) {
|
|
456
|
+
if (this.images[g].assetData === n) return this.images[g].img;
|
|
457
|
+
g += 1;
|
|
458
458
|
}
|
|
459
459
|
return null;
|
|
460
460
|
}, createImgData: function(n) {
|
|
461
|
-
var
|
|
461
|
+
var g = i(n, this.assetsPath, this.path), y = Pt("img");
|
|
462
462
|
y.crossOrigin = "anonymous", y.addEventListener("load", this._imageLoaded, !1), y.addEventListener("error", (function() {
|
|
463
463
|
o.img = t, this._imageLoaded();
|
|
464
|
-
}).bind(this), !1), y.src =
|
|
464
|
+
}).bind(this), !1), y.src = g;
|
|
465
465
|
var o = { img: y, assetData: n };
|
|
466
466
|
return o;
|
|
467
467
|
}, createImageData: function(n) {
|
|
468
|
-
var
|
|
468
|
+
var g = i(n, this.assetsPath, this.path), y = z("image");
|
|
469
469
|
Ei ? this.testImageLoaded(y) : y.addEventListener("load", this._imageLoaded, !1), y.addEventListener("error", (function() {
|
|
470
470
|
o.img = t, this._imageLoaded();
|
|
471
|
-
}).bind(this), !1), y.setAttributeNS("http://www.w3.org/1999/xlink", "href",
|
|
471
|
+
}).bind(this), !1), y.setAttributeNS("http://www.w3.org/1999/xlink", "href", g), this._elementHelper.append ? this._elementHelper.append(y) : this._elementHelper.appendChild(y);
|
|
472
472
|
var o = { img: y, assetData: n };
|
|
473
473
|
return o;
|
|
474
|
-
}, imageLoaded: e, footageLoaded: s, setCacheType: function(n,
|
|
475
|
-
n === "svg" ? (this._elementHelper =
|
|
474
|
+
}, imageLoaded: e, footageLoaded: s, setCacheType: function(n, g) {
|
|
475
|
+
n === "svg" ? (this._elementHelper = g, this._createImageData = this.createImageData.bind(this)) : this._createImageData = this.createImgData.bind(this);
|
|
476
476
|
} }, h;
|
|
477
477
|
}();
|
|
478
478
|
function Bs() {
|
|
@@ -750,17 +750,17 @@ var As = { exports: {} };
|
|
|
750
750
|
};
|
|
751
751
|
var lt = function() {
|
|
752
752
|
var t = {}, e = [], s = 0, i = 0, a = 0, r = !0, h = !1;
|
|
753
|
-
function n(
|
|
754
|
-
for (var
|
|
753
|
+
function n(f) {
|
|
754
|
+
for (var p = 0, u = f.target; p < i; ) e[p].animation === u && (e.splice(p, 1), p -= 1, i -= 1, u.isPaused || o()), p += 1;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
if (!
|
|
756
|
+
function g(f, p) {
|
|
757
|
+
if (!f) return null;
|
|
758
758
|
for (var u = 0; u < i; ) {
|
|
759
|
-
if (e[u].elem ===
|
|
759
|
+
if (e[u].elem === f && e[u].elem !== null) return e[u].animation;
|
|
760
760
|
u += 1;
|
|
761
761
|
}
|
|
762
762
|
var v = new R();
|
|
763
|
-
return d(v,
|
|
763
|
+
return d(v, f), v.setData(f, p), v;
|
|
764
764
|
}
|
|
765
765
|
function y() {
|
|
766
766
|
a += 1, l();
|
|
@@ -768,128 +768,128 @@ var As = { exports: {} };
|
|
|
768
768
|
function o() {
|
|
769
769
|
a -= 1;
|
|
770
770
|
}
|
|
771
|
-
function d(
|
|
772
|
-
|
|
771
|
+
function d(f, p) {
|
|
772
|
+
f.addEventListener("destroy", n), f.addEventListener("_active", y), f.addEventListener("_idle", o), e.push({ elem: p, animation: f }), i += 1;
|
|
773
773
|
}
|
|
774
|
-
function c(
|
|
775
|
-
var
|
|
776
|
-
for (
|
|
777
|
-
s =
|
|
774
|
+
function c(f) {
|
|
775
|
+
var p, u = f - s;
|
|
776
|
+
for (p = 0; p < i; p += 1) e[p].animation.advanceTime(u);
|
|
777
|
+
s = f, a && !h ? window.requestAnimationFrame(c) : r = !0;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
s =
|
|
779
|
+
function m(f) {
|
|
780
|
+
s = f, window.requestAnimationFrame(c);
|
|
781
781
|
}
|
|
782
782
|
function l() {
|
|
783
|
-
!h && a && r && (window.requestAnimationFrame(
|
|
783
|
+
!h && a && r && (window.requestAnimationFrame(m), r = !1);
|
|
784
784
|
}
|
|
785
|
-
return t.registerAnimation =
|
|
786
|
-
var
|
|
787
|
-
return d(
|
|
788
|
-
}, t.setSpeed = function(
|
|
785
|
+
return t.registerAnimation = g, t.loadAnimation = function(f) {
|
|
786
|
+
var p = new R();
|
|
787
|
+
return d(p, null), p.setParams(f), p;
|
|
788
|
+
}, t.setSpeed = function(f, p) {
|
|
789
789
|
var u;
|
|
790
|
-
for (u = 0; u < i; u += 1) e[u].animation.setSpeed(
|
|
791
|
-
}, t.setDirection = function(
|
|
790
|
+
for (u = 0; u < i; u += 1) e[u].animation.setSpeed(f, p);
|
|
791
|
+
}, t.setDirection = function(f, p) {
|
|
792
792
|
var u;
|
|
793
|
-
for (u = 0; u < i; u += 1) e[u].animation.setDirection(
|
|
794
|
-
}, t.play = function(
|
|
795
|
-
var
|
|
796
|
-
for (
|
|
797
|
-
}, t.pause = function(
|
|
798
|
-
var
|
|
799
|
-
for (
|
|
800
|
-
}, t.stop = function(
|
|
801
|
-
var
|
|
802
|
-
for (
|
|
803
|
-
}, t.togglePause = function(
|
|
804
|
-
var
|
|
805
|
-
for (
|
|
806
|
-
}, t.searchAnimations = function(
|
|
807
|
-
var v,
|
|
808
|
-
for (v = 0; v < C; v += 1) u &&
|
|
809
|
-
if (
|
|
793
|
+
for (u = 0; u < i; u += 1) e[u].animation.setDirection(f, p);
|
|
794
|
+
}, t.play = function(f) {
|
|
795
|
+
var p;
|
|
796
|
+
for (p = 0; p < i; p += 1) e[p].animation.play(f);
|
|
797
|
+
}, t.pause = function(f) {
|
|
798
|
+
var p;
|
|
799
|
+
for (p = 0; p < i; p += 1) e[p].animation.pause(f);
|
|
800
|
+
}, t.stop = function(f) {
|
|
801
|
+
var p;
|
|
802
|
+
for (p = 0; p < i; p += 1) e[p].animation.stop(f);
|
|
803
|
+
}, t.togglePause = function(f) {
|
|
804
|
+
var p;
|
|
805
|
+
for (p = 0; p < i; p += 1) e[p].animation.togglePause(f);
|
|
806
|
+
}, t.searchAnimations = function(f, p, u) {
|
|
807
|
+
var v, k = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), C = k.length;
|
|
808
|
+
for (v = 0; v < C; v += 1) u && k[v].setAttribute("data-bm-type", u), g(k[v], f);
|
|
809
|
+
if (p && C === 0) {
|
|
810
810
|
u || (u = "svg");
|
|
811
811
|
var A = document.getElementsByTagName("body")[0];
|
|
812
812
|
A.innerText = "";
|
|
813
|
-
var
|
|
814
|
-
|
|
813
|
+
var F = Pt("div");
|
|
814
|
+
F.style.width = "100%", F.style.height = "100%", F.setAttribute("data-bm-type", u), A.appendChild(F), g(F, f);
|
|
815
815
|
}
|
|
816
816
|
}, t.resize = function() {
|
|
817
|
-
var p;
|
|
818
|
-
for (p = 0; p < i; p += 1) e[p].animation.resize();
|
|
819
|
-
}, t.goToAndStop = function(p, f, u) {
|
|
820
|
-
var v;
|
|
821
|
-
for (v = 0; v < i; v += 1) e[v].animation.goToAndStop(p, f, u);
|
|
822
|
-
}, t.destroy = function(p) {
|
|
823
817
|
var f;
|
|
824
|
-
for (f =
|
|
818
|
+
for (f = 0; f < i; f += 1) e[f].animation.resize();
|
|
819
|
+
}, t.goToAndStop = function(f, p, u) {
|
|
820
|
+
var v;
|
|
821
|
+
for (v = 0; v < i; v += 1) e[v].animation.goToAndStop(f, p, u);
|
|
822
|
+
}, t.destroy = function(f) {
|
|
823
|
+
var p;
|
|
824
|
+
for (p = i - 1; p >= 0; p -= 1) e[p].animation.destroy(f);
|
|
825
825
|
}, t.freeze = function() {
|
|
826
826
|
h = !0;
|
|
827
827
|
}, t.unfreeze = function() {
|
|
828
828
|
h = !1, l();
|
|
829
|
-
}, t.setVolume = function(
|
|
829
|
+
}, t.setVolume = function(f, p) {
|
|
830
830
|
var u;
|
|
831
|
-
for (u = 0; u < i; u += 1) e[u].animation.setVolume(
|
|
832
|
-
}, t.mute = function(
|
|
833
|
-
var
|
|
834
|
-
for (
|
|
835
|
-
}, t.unmute = function(
|
|
836
|
-
var
|
|
837
|
-
for (
|
|
831
|
+
for (u = 0; u < i; u += 1) e[u].animation.setVolume(f, p);
|
|
832
|
+
}, t.mute = function(f) {
|
|
833
|
+
var p;
|
|
834
|
+
for (p = 0; p < i; p += 1) e[p].animation.mute(f);
|
|
835
|
+
}, t.unmute = function(f) {
|
|
836
|
+
var p;
|
|
837
|
+
for (p = 0; p < i; p += 1) e[p].animation.unmute(f);
|
|
838
838
|
}, t.getRegisteredAnimations = function() {
|
|
839
|
-
var
|
|
840
|
-
for (
|
|
839
|
+
var f, p = e.length, u = [];
|
|
840
|
+
for (f = 0; f < p; f += 1) u.push(e[f].animation);
|
|
841
841
|
return u;
|
|
842
842
|
}, t;
|
|
843
843
|
}(), ke = function() {
|
|
844
|
-
var t = { getBezierEasing: function(
|
|
845
|
-
var p =
|
|
844
|
+
var t = { getBezierEasing: function(d, c, m, l, f) {
|
|
845
|
+
var p = f || ("bez_" + d + "_" + c + "_" + m + "_" + l).replace(/\./g, "p");
|
|
846
846
|
if (e[p]) return e[p];
|
|
847
|
-
var
|
|
848
|
-
return e[p] =
|
|
849
|
-
} }, e = {}, s =
|
|
850
|
-
function
|
|
851
|
-
return 1 - 3 *
|
|
847
|
+
var u = new o([d, c, m, l]);
|
|
848
|
+
return e[p] = u, u;
|
|
849
|
+
} }, e = {}, s = 11, i = 1 / (s - 1), a = typeof Float32Array == "function";
|
|
850
|
+
function r(d, c) {
|
|
851
|
+
return 1 - 3 * c + 3 * d;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
return 3 *
|
|
853
|
+
function h(d, c) {
|
|
854
|
+
return 3 * c - 6 * d;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
return 3 *
|
|
856
|
+
function n(d) {
|
|
857
|
+
return 3 * d;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
860
|
-
return ((
|
|
859
|
+
function g(d, c, m) {
|
|
860
|
+
return ((r(c, m) * d + h(c, m)) * d + n(c)) * d;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
863
|
-
return 3 *
|
|
862
|
+
function y(d, c, m) {
|
|
863
|
+
return 3 * r(c, m) * d * d + 2 * h(c, m) * d + n(c);
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
this._p =
|
|
865
|
+
function o(d) {
|
|
866
|
+
this._p = d, this._mSampleValues = a ? new Float32Array(s) : new Array(s), this._precomputed = !1, this.get = this.get.bind(this);
|
|
867
867
|
}
|
|
868
|
-
return
|
|
869
|
-
var
|
|
870
|
-
return this._precomputed || this._precompute(),
|
|
868
|
+
return o.prototype = { get: function(d) {
|
|
869
|
+
var c = this._p[0], m = this._p[1], l = this._p[2], f = this._p[3];
|
|
870
|
+
return this._precomputed || this._precompute(), c === m && l === f ? d : d === 0 ? 0 : d === 1 ? 1 : g(this._getTForX(d), m, f);
|
|
871
871
|
}, _precompute: function() {
|
|
872
|
-
var
|
|
873
|
-
this._precomputed = !0,
|
|
872
|
+
var d = this._p[0], c = this._p[1], m = this._p[2], l = this._p[3];
|
|
873
|
+
this._precomputed = !0, d === c && m === l || this._calcSampleValues();
|
|
874
874
|
}, _calcSampleValues: function() {
|
|
875
|
-
for (var
|
|
876
|
-
}, _getTForX: function(
|
|
877
|
-
for (var
|
|
878
|
-
var
|
|
879
|
-
return
|
|
880
|
-
for (var
|
|
881
|
-
var
|
|
882
|
-
if (
|
|
883
|
-
|
|
875
|
+
for (var d = this._p[0], c = this._p[2], m = 0; m < s; ++m) this._mSampleValues[m] = g(m * i, d, c);
|
|
876
|
+
}, _getTForX: function(d) {
|
|
877
|
+
for (var c = this._p[0], m = this._p[2], l = this._mSampleValues, f = 0, p = 1, u = s - 1; p !== u && l[p] <= d; ++p) f += i;
|
|
878
|
+
var v = f + (d - l[--p]) / (l[p + 1] - l[p]) * i, k = y(v, c, m);
|
|
879
|
+
return k >= 1e-3 ? function(C, A, F, I) {
|
|
880
|
+
for (var x = 0; x < 4; ++x) {
|
|
881
|
+
var T = y(A, F, I);
|
|
882
|
+
if (T === 0) return A;
|
|
883
|
+
A -= (g(A, F, I) - C) / T;
|
|
884
884
|
}
|
|
885
|
-
return
|
|
886
|
-
}(
|
|
887
|
-
var
|
|
885
|
+
return A;
|
|
886
|
+
}(d, v, c, m) : k === 0 ? v : function(C, A, F, I, x) {
|
|
887
|
+
var T, M, _ = 0;
|
|
888
888
|
do
|
|
889
|
-
(
|
|
890
|
-
while (Math.abs(
|
|
891
|
-
return
|
|
892
|
-
}(
|
|
889
|
+
(T = g(M = A + (F - A) / 2, I, x) - C) > 0 ? F = M : A = M;
|
|
890
|
+
while (Math.abs(T) > 1e-7 && ++_ < 10);
|
|
891
|
+
return M;
|
|
892
|
+
}(d, f, f + i, c, m);
|
|
893
893
|
} }, t;
|
|
894
894
|
}(), Ws = { double: function(t) {
|
|
895
895
|
return t.concat(K(t.length));
|
|
@@ -910,15 +910,15 @@ var As = { exports: {} };
|
|
|
910
910
|
t.lengths.length = 0;
|
|
911
911
|
}), Rt = function() {
|
|
912
912
|
var t = Math;
|
|
913
|
-
function e(y, o, d, c,
|
|
914
|
-
var
|
|
915
|
-
return
|
|
913
|
+
function e(y, o, d, c, m, l) {
|
|
914
|
+
var f = y * c + o * m + d * l - m * c - l * y - d * o;
|
|
915
|
+
return f > -1e-3 && f < 1e-3;
|
|
916
916
|
}
|
|
917
917
|
var s = function(y, o, d, c) {
|
|
918
|
-
var
|
|
919
|
-
for (
|
|
920
|
-
for (u =
|
|
921
|
-
v && (C += v = Fs(v)), I.percents[
|
|
918
|
+
var m, l, f, p, u, v, k = qe(), C = 0, A = [], F = [], I = js.newElement();
|
|
919
|
+
for (f = d.length, m = 0; m < k; m += 1) {
|
|
920
|
+
for (u = m / (k - 1), v = 0, l = 0; l < f; l += 1) p = Vt(1 - u, 3) * y[l] + 3 * Vt(1 - u, 2) * u * d[l] + 3 * (1 - u) * Vt(u, 2) * c[l] + Vt(u, 3) * o[l], A[l] = p, F[l] !== null && (v += Vt(A[l] - F[l], 2)), F[l] = A[l];
|
|
921
|
+
v && (C += v = Fs(v)), I.percents[m] = u, I.lengths[m] = C;
|
|
922
922
|
}
|
|
923
923
|
return I.addedLength = C, I;
|
|
924
924
|
};
|
|
@@ -929,103 +929,103 @@ var As = { exports: {} };
|
|
|
929
929
|
this.partialLength = y, this.point = o;
|
|
930
930
|
}
|
|
931
931
|
var r, h = (r = {}, function(y, o, d, c) {
|
|
932
|
-
var
|
|
933
|
-
if (!r[
|
|
934
|
-
var l,
|
|
932
|
+
var m = (y[0] + "_" + y[1] + "_" + o[0] + "_" + o[1] + "_" + d[0] + "_" + d[1] + "_" + c[0] + "_" + c[1]).replace(/\./g, "p");
|
|
933
|
+
if (!r[m]) {
|
|
934
|
+
var l, f, p, u, v, k, C, A = qe(), F = 0, I = null;
|
|
935
935
|
y.length === 2 && (y[0] !== o[0] || y[1] !== o[1]) && e(y[0], y[1], o[0], o[1], y[0] + d[0], y[1] + d[1]) && e(y[0], y[1], o[0], o[1], o[0] + c[0], o[1] + c[1]) && (A = 2);
|
|
936
|
-
var
|
|
937
|
-
for (
|
|
938
|
-
for (C = K(
|
|
939
|
-
|
|
936
|
+
var x = new i(A);
|
|
937
|
+
for (p = d.length, l = 0; l < A; l += 1) {
|
|
938
|
+
for (C = K(p), v = l / (A - 1), k = 0, f = 0; f < p; f += 1) u = Vt(1 - v, 3) * y[f] + 3 * Vt(1 - v, 2) * v * (y[f] + d[f]) + 3 * (1 - v) * Vt(v, 2) * (o[f] + c[f]) + Vt(v, 3) * o[f], C[f] = u, I !== null && (k += Vt(C[f] - I[f], 2));
|
|
939
|
+
F += k = Fs(k), x.points[l] = new a(k, C), I = C;
|
|
940
940
|
}
|
|
941
|
-
|
|
941
|
+
x.segmentLength = F, r[m] = x;
|
|
942
942
|
}
|
|
943
|
-
return r[
|
|
943
|
+
return r[m];
|
|
944
944
|
});
|
|
945
945
|
function n(y, o) {
|
|
946
|
-
var d = o.percents, c = o.lengths,
|
|
947
|
-
if (l ===
|
|
948
|
-
for (var u = c[l] >
|
|
949
|
-
if (l ===
|
|
946
|
+
var d = o.percents, c = o.lengths, m = d.length, l = gt((m - 1) * y), f = y * o.addedLength, p = 0;
|
|
947
|
+
if (l === m - 1 || l === 0 || f === c[l]) return d[l];
|
|
948
|
+
for (var u = c[l] > f ? -1 : 1, v = !0; v; ) if (c[l] <= f && c[l + 1] > f ? (p = (f - c[l]) / (c[l + 1] - c[l]), v = !1) : l += u, l < 0 || l >= m - 1) {
|
|
949
|
+
if (l === m - 1) return d[l];
|
|
950
950
|
v = !1;
|
|
951
951
|
}
|
|
952
|
-
return d[l] + (d[l + 1] - d[l]) *
|
|
952
|
+
return d[l] + (d[l + 1] - d[l]) * p;
|
|
953
953
|
}
|
|
954
|
-
var
|
|
954
|
+
var g = ht("float32", 8);
|
|
955
955
|
return { getSegmentsLength: function(y) {
|
|
956
|
-
var o, d = Js.newElement(), c = y.c,
|
|
957
|
-
for (o = 0; o <
|
|
958
|
-
return c &&
|
|
959
|
-
}, getNewSegment: function(y, o, d, c,
|
|
960
|
-
|
|
961
|
-
var
|
|
962
|
-
for (
|
|
963
|
-
return
|
|
964
|
-
}, getPointInSegment: function(y, o, d, c,
|
|
965
|
-
var
|
|
966
|
-
return [t.round(1e3 * (
|
|
967
|
-
}, buildBezierData: h, pointOnLine2D: e, pointOnLine3D: function(y, o, d, c,
|
|
968
|
-
if (d === 0 && l === 0 && u === 0) return e(y, o, c,
|
|
969
|
-
var v,
|
|
970
|
-
return (v =
|
|
956
|
+
var o, d = Js.newElement(), c = y.c, m = y.v, l = y.o, f = y.i, p = y._length, u = d.lengths, v = 0;
|
|
957
|
+
for (o = 0; o < p - 1; o += 1) u[o] = s(m[o], m[o + 1], l[o], f[o + 1]), v += u[o].addedLength;
|
|
958
|
+
return c && p && (u[o] = s(m[o], m[0], l[o], f[0]), v += u[o].addedLength), d.totalLength = v, d;
|
|
959
|
+
}, getNewSegment: function(y, o, d, c, m, l, f) {
|
|
960
|
+
m < 0 ? m = 0 : m > 1 && (m = 1);
|
|
961
|
+
var p, u = n(m, f), v = n(l = l > 1 ? 1 : l, f), k = y.length, C = 1 - u, A = 1 - v, F = C * C * C, I = u * C * C * 3, x = u * u * C * 3, T = u * u * u, M = C * C * A, _ = u * C * A + C * u * A + C * C * v, D = u * u * A + C * u * v + u * C * v, w = u * u * v, P = C * A * A, V = u * A * A + C * v * A + C * A * v, O = u * v * A + C * v * v + u * A * v, B = u * v * v, b = A * A * A, S = v * A * A + A * v * A + A * A * v, L = v * v * A + A * v * v + v * A * v, N = v * v * v;
|
|
962
|
+
for (p = 0; p < k; p += 1) g[4 * p] = t.round(1e3 * (F * y[p] + I * d[p] + x * c[p] + T * o[p])) / 1e3, g[4 * p + 1] = t.round(1e3 * (M * y[p] + _ * d[p] + D * c[p] + w * o[p])) / 1e3, g[4 * p + 2] = t.round(1e3 * (P * y[p] + V * d[p] + O * c[p] + B * o[p])) / 1e3, g[4 * p + 3] = t.round(1e3 * (b * y[p] + S * d[p] + L * c[p] + N * o[p])) / 1e3;
|
|
963
|
+
return g;
|
|
964
|
+
}, getPointInSegment: function(y, o, d, c, m, l) {
|
|
965
|
+
var f = n(m, l), p = 1 - f;
|
|
966
|
+
return [t.round(1e3 * (p * p * p * y[0] + (f * p * p + p * f * p + p * p * f) * d[0] + (f * f * p + p * f * f + f * p * f) * c[0] + f * f * f * o[0])) / 1e3, t.round(1e3 * (p * p * p * y[1] + (f * p * p + p * f * p + p * p * f) * d[1] + (f * f * p + p * f * f + f * p * f) * c[1] + f * f * f * o[1])) / 1e3];
|
|
967
|
+
}, buildBezierData: h, pointOnLine2D: e, pointOnLine3D: function(y, o, d, c, m, l, f, p, u) {
|
|
968
|
+
if (d === 0 && l === 0 && u === 0) return e(y, o, c, m, f, p);
|
|
969
|
+
var v, k = t.sqrt(t.pow(c - y, 2) + t.pow(m - o, 2) + t.pow(l - d, 2)), C = t.sqrt(t.pow(f - y, 2) + t.pow(p - o, 2) + t.pow(u - d, 2)), A = t.sqrt(t.pow(f - c, 2) + t.pow(p - m, 2) + t.pow(u - l, 2));
|
|
970
|
+
return (v = k > C ? k > A ? k - C - A : A - C - k : A > C ? A - C - k : C - k - A) > -1e-4 && v < 1e-4;
|
|
971
971
|
} };
|
|
972
972
|
}(), ae = Jt, Ys = Math.abs;
|
|
973
973
|
function Xs(t, e) {
|
|
974
974
|
var s, i = this.offsetTime;
|
|
975
975
|
this.propType === "multidimensional" && (s = ht("float32", this.pv.length));
|
|
976
|
-
for (var a, r, h, n,
|
|
977
|
-
if (a = this.keyframes[l], r = this.keyframes[l + 1], l ===
|
|
978
|
-
a.h && (a = r),
|
|
976
|
+
for (var a, r, h, n, g, y, o, d, c, m = e.lastIndex, l = m, f = this.keyframes.length - 1, p = !0; p; ) {
|
|
977
|
+
if (a = this.keyframes[l], r = this.keyframes[l + 1], l === f - 1 && t >= r.t - i) {
|
|
978
|
+
a.h && (a = r), m = 0;
|
|
979
979
|
break;
|
|
980
980
|
}
|
|
981
981
|
if (r.t - i > t) {
|
|
982
|
-
|
|
982
|
+
m = l;
|
|
983
983
|
break;
|
|
984
984
|
}
|
|
985
|
-
l <
|
|
985
|
+
l < f - 1 ? l += 1 : (m = 0, p = !1);
|
|
986
986
|
}
|
|
987
987
|
h = this.keyframesMetadata[l] || {};
|
|
988
|
-
var u, v,
|
|
988
|
+
var u, v, k, C, A, F, I, x, T, M, _ = r.t - i, D = a.t - i;
|
|
989
989
|
if (a.to) {
|
|
990
990
|
h.bezierData || (h.bezierData = Rt.buildBezierData(a.s, r.s || a.e, a.to, a.ti));
|
|
991
991
|
var w = h.bezierData;
|
|
992
992
|
if (t >= _ || t < D) {
|
|
993
993
|
var P = t >= _ ? w.points.length - 1 : 0;
|
|
994
|
-
for (
|
|
994
|
+
for (g = w.points[P].point.length, n = 0; n < g; n += 1) s[n] = w.points[P].point[n];
|
|
995
995
|
} else {
|
|
996
996
|
h.__fnct ? c = h.__fnct : (c = ke.getBezierEasing(a.o.x, a.o.y, a.i.x, a.i.y, a.n).get, h.__fnct = c), y = c((t - D) / (_ - D));
|
|
997
997
|
var V, O = w.segmentLength * y, B = e.lastFrame < t && e._lastKeyframeIndex === l ? e._lastAddedLength : 0;
|
|
998
|
-
for (d = e.lastFrame < t && e._lastKeyframeIndex === l ? e._lastPoint : 0,
|
|
998
|
+
for (d = e.lastFrame < t && e._lastKeyframeIndex === l ? e._lastPoint : 0, p = !0, o = w.points.length; p; ) {
|
|
999
999
|
if (B += w.points[d].partialLength, O === 0 || y === 0 || d === w.points.length - 1) {
|
|
1000
|
-
for (
|
|
1000
|
+
for (g = w.points[d].point.length, n = 0; n < g; n += 1) s[n] = w.points[d].point[n];
|
|
1001
1001
|
break;
|
|
1002
1002
|
}
|
|
1003
1003
|
if (O >= B && O < B + w.points[d + 1].partialLength) {
|
|
1004
|
-
for (V = (O - B) / w.points[d + 1].partialLength,
|
|
1004
|
+
for (V = (O - B) / w.points[d + 1].partialLength, g = w.points[d].point.length, n = 0; n < g; n += 1) s[n] = w.points[d].point[n] + (w.points[d + 1].point[n] - w.points[d].point[n]) * V;
|
|
1005
1005
|
break;
|
|
1006
1006
|
}
|
|
1007
|
-
d < o - 1 ? d += 1 :
|
|
1007
|
+
d < o - 1 ? d += 1 : p = !1;
|
|
1008
1008
|
}
|
|
1009
1009
|
e._lastPoint = d, e._lastAddedLength = B - w.points[d].partialLength, e._lastKeyframeIndex = l;
|
|
1010
1010
|
}
|
|
1011
1011
|
} else {
|
|
1012
1012
|
var b, S, L, N, U;
|
|
1013
|
-
if (
|
|
1013
|
+
if (f = a.s.length, u = r.s || a.e, this.sh && a.h !== 1) if (t >= _) s[0] = u[0], s[1] = u[1], s[2] = u[2];
|
|
1014
1014
|
else if (t <= D) s[0] = a.s[0], s[1] = a.s[1], s[2] = a.s[2];
|
|
1015
1015
|
else {
|
|
1016
1016
|
var $ = Hs(a.s), Q = Hs(u);
|
|
1017
|
-
v = s,
|
|
1017
|
+
v = s, k = function(J, tt, j) {
|
|
1018
1018
|
var Y, ct, bt, rt, nt, at = [], q = J[0], Ht = J[1], Gt = J[2], jt = J[3], _t = tt[0], kt = tt[1], ot = tt[2], St = tt[3];
|
|
1019
1019
|
return (ct = q * _t + Ht * kt + Gt * ot + jt * St) < 0 && (ct = -ct, _t = -_t, kt = -kt, ot = -ot, St = -St), 1 - ct > 1e-6 ? (Y = Math.acos(ct), bt = Math.sin(Y), rt = Math.sin((1 - j) * Y) / bt, nt = Math.sin(j * Y) / bt) : (rt = 1 - j, nt = j), at[0] = rt * q + nt * _t, at[1] = rt * Ht + nt * kt, at[2] = rt * Gt + nt * ot, at[3] = rt * jt + nt * St, at;
|
|
1020
|
-
}($, Q, (t - D) / (_ - D)), C =
|
|
1020
|
+
}($, Q, (t - D) / (_ - D)), C = k[0], A = k[1], F = k[2], I = k[3], x = Math.atan2(2 * A * I - 2 * C * F, 1 - 2 * A * A - 2 * F * F), T = Math.asin(2 * C * A + 2 * F * I), M = Math.atan2(2 * C * I - 2 * A * F, 1 - 2 * C * C - 2 * F * F), v[0] = x / et, v[1] = T / et, v[2] = M / et;
|
|
1021
1021
|
}
|
|
1022
|
-
else for (l = 0; l <
|
|
1022
|
+
else for (l = 0; l < f; l += 1) a.h !== 1 && (t >= _ ? y = 1 : t < D ? y = 0 : (a.o.x.constructor === Array ? (h.__fnct || (h.__fnct = []), h.__fnct[l] ? c = h.__fnct[l] : (b = a.o.x[l] === void 0 ? a.o.x[0] : a.o.x[l], S = a.o.y[l] === void 0 ? a.o.y[0] : a.o.y[l], L = a.i.x[l] === void 0 ? a.i.x[0] : a.i.x[l], N = a.i.y[l] === void 0 ? a.i.y[0] : a.i.y[l], c = ke.getBezierEasing(b, S, L, N).get, h.__fnct[l] = c)) : h.__fnct ? c = h.__fnct : (b = a.o.x, S = a.o.y, L = a.i.x, N = a.i.y, c = ke.getBezierEasing(b, S, L, N).get, a.keyframeMetadata = c), y = c((t - D) / (_ - D)))), u = r.s || a.e, U = a.h === 1 ? a.s[l] : a.s[l] + (u[l] - a.s[l]) * y, this.propType === "multidimensional" ? s[l] = U : s = U;
|
|
1023
1023
|
}
|
|
1024
|
-
return e.lastIndex =
|
|
1024
|
+
return e.lastIndex = m, s;
|
|
1025
1025
|
}
|
|
1026
1026
|
function Hs(t) {
|
|
1027
|
-
var e = t[0] * et, s = t[1] * et, i = t[2] * et, a = Math.cos(e / 2), r = Math.cos(s / 2), h = Math.cos(i / 2), n = Math.sin(e / 2),
|
|
1028
|
-
return [n *
|
|
1027
|
+
var e = t[0] * et, s = t[1] * et, i = t[2] * et, a = Math.cos(e / 2), r = Math.cos(s / 2), h = Math.cos(i / 2), n = Math.sin(e / 2), g = Math.sin(s / 2), y = Math.sin(i / 2);
|
|
1028
|
+
return [n * g * h + a * r * y, n * r * h + a * g * y, a * g * h - n * r * y, a * r * h - n * g * y];
|
|
1029
1029
|
}
|
|
1030
1030
|
function Gs() {
|
|
1031
1031
|
var t = this.comp.renderedFrame - this.offsetTime, e = this.keyframes[0].t - this.offsetTime, s = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
|
|
@@ -1070,8 +1070,8 @@ var As = { exports: {} };
|
|
|
1070
1070
|
function Wi(t, e, s, i) {
|
|
1071
1071
|
var a;
|
|
1072
1072
|
this.propType = "multidimensional";
|
|
1073
|
-
var r, h, n,
|
|
1074
|
-
for (a = 0; a < y - 1; a += 1) e.k[a].to && e.k[a].s && e.k[a + 1] && e.k[a + 1].s && (r = e.k[a].s, h = e.k[a + 1].s, n = e.k[a].to,
|
|
1073
|
+
var r, h, n, g, y = e.k.length;
|
|
1074
|
+
for (a = 0; a < y - 1; a += 1) e.k[a].to && e.k[a].s && e.k[a + 1] && e.k[a + 1].s && (r = e.k[a].s, h = e.k[a + 1].s, n = e.k[a].to, g = e.k[a].ti, (r.length === 2 && (r[0] !== h[0] || r[1] !== h[1]) && Rt.pointOnLine2D(r[0], r[1], h[0], h[1], r[0] + n[0], r[1] + n[1]) && Rt.pointOnLine2D(r[0], r[1], h[0], h[1], h[0] + g[0], h[1] + g[1]) || r.length === 3 && (r[0] !== h[0] || r[1] !== h[1] || r[2] !== h[2]) && Rt.pointOnLine3D(r[0], r[1], r[2], h[0], h[1], h[2], r[0] + n[0], r[1] + n[1], r[2] + n[2]) && Rt.pointOnLine3D(r[0], r[1], r[2], h[0], h[1], h[2], h[0] + g[0], h[1] + g[1], h[2] + g[2])) && (e.k[a].to = null, e.k[a].ti = null), r[0] === h[0] && r[1] === h[1] && n[0] === 0 && n[1] === 0 && g[0] === 0 && g[1] === 0 && (r.length === 2 || r[2] === h[2] && n[2] === 0 && g[2] === 0) && (e.k[a].to = null, e.k[a].ti = null));
|
|
1075
1075
|
this.effectsSequence = [Gs.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 = s || 1, this.elem = t, this.container = i, this.comp = t.comp, this.getValue = Je, this.setVValue = je, this.interpolateValue = Xs, this.frameId = -1;
|
|
1076
1076
|
var o = e.k[0].s.length;
|
|
1077
1077
|
for (this.v = ht("float32", o), this.pv = ht("float32", o), a = 0; a < o; a += 1) this.v[a] = ae, this.pv[a] = ae;
|
|
@@ -1174,116 +1174,116 @@ var As = { exports: {} };
|
|
|
1174
1174
|
t._length = 0, fe === ps && (Pe = Ws.double(Pe), ps *= 2), Pe[fe] = t, fe += 1;
|
|
1175
1175
|
} }, fe = 0, Pe = K(ps = 4), Ks), de = function() {
|
|
1176
1176
|
var t = -999999;
|
|
1177
|
-
function e(
|
|
1178
|
-
var
|
|
1179
|
-
if (
|
|
1180
|
-
else if (
|
|
1177
|
+
function e(m, l, f) {
|
|
1178
|
+
var p, u, v, k, C, A, F, I, x, T = f.lastIndex, M = this.keyframes;
|
|
1179
|
+
if (m < M[0].t - this.offsetTime) p = M[0].s[0], v = !0, T = 0;
|
|
1180
|
+
else if (m >= M[M.length - 1].t - this.offsetTime) p = M[M.length - 1].s ? M[M.length - 1].s[0] : M[M.length - 2].e[0], v = !0;
|
|
1181
1181
|
else {
|
|
1182
|
-
for (var _, D, w, P =
|
|
1183
|
-
if (w = this.keyframesMetadata[P] || {},
|
|
1184
|
-
if (
|
|
1185
|
-
else if (
|
|
1182
|
+
for (var _, D, w, P = T, V = M.length - 1, O = !0; O && (_ = M[P], !((D = M[P + 1]).t - this.offsetTime > m)); ) P < V - 1 ? P += 1 : O = !1;
|
|
1183
|
+
if (w = this.keyframesMetadata[P] || {}, T = P, !(v = _.h === 1)) {
|
|
1184
|
+
if (m >= D.t - this.offsetTime) I = 1;
|
|
1185
|
+
else if (m < _.t - this.offsetTime) I = 0;
|
|
1186
1186
|
else {
|
|
1187
1187
|
var B;
|
|
1188
|
-
w.__fnct ? B = w.__fnct : (B = ke.getBezierEasing(_.o.x, _.o.y, _.i.x, _.i.y).get, w.__fnct = B), I = B((
|
|
1188
|
+
w.__fnct ? B = w.__fnct : (B = ke.getBezierEasing(_.o.x, _.o.y, _.i.x, _.i.y).get, w.__fnct = B), I = B((m - (_.t - this.offsetTime)) / (D.t - this.offsetTime - (_.t - this.offsetTime)));
|
|
1189
1189
|
}
|
|
1190
1190
|
u = D.s ? D.s[0] : _.e[0];
|
|
1191
1191
|
}
|
|
1192
|
-
|
|
1192
|
+
p = _.s[0];
|
|
1193
1193
|
}
|
|
1194
|
-
for (A = l._length,
|
|
1194
|
+
for (A = l._length, F = p.i[0].length, f.lastIndex = T, k = 0; k < A; k += 1) for (C = 0; C < F; C += 1) x = v ? p.i[k][C] : p.i[k][C] + (u.i[k][C] - p.i[k][C]) * I, l.i[k][C] = x, x = v ? p.o[k][C] : p.o[k][C] + (u.o[k][C] - p.o[k][C]) * I, l.o[k][C] = x, x = v ? p.v[k][C] : p.v[k][C] + (u.v[k][C] - p.v[k][C]) * I, l.v[k][C] = x;
|
|
1195
1195
|
}
|
|
1196
1196
|
function s() {
|
|
1197
|
-
var
|
|
1198
|
-
return
|
|
1197
|
+
var m = this.comp.renderedFrame - this.offsetTime, l = this.keyframes[0].t - this.offsetTime, f = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, p = this._caching.lastFrame;
|
|
1198
|
+
return p !== t && (p < l && m < l || p > f && m > f) || (this._caching.lastIndex = p < m ? this._caching.lastIndex : 0, this.interpolateShape(m, this.pv, this._caching)), this._caching.lastFrame = m, this.pv;
|
|
1199
1199
|
}
|
|
1200
1200
|
function i() {
|
|
1201
1201
|
this.paths = this.localShapeCollection;
|
|
1202
1202
|
}
|
|
1203
|
-
function a(
|
|
1204
|
-
(function(l,
|
|
1205
|
-
if (l._length !==
|
|
1206
|
-
var
|
|
1207
|
-
for (
|
|
1203
|
+
function a(m) {
|
|
1204
|
+
(function(l, f) {
|
|
1205
|
+
if (l._length !== f._length || l.c !== f.c) return !1;
|
|
1206
|
+
var p, u = l._length;
|
|
1207
|
+
for (p = 0; p < u; p += 1) if (l.v[p][0] !== f.v[p][0] || l.v[p][1] !== f.v[p][1] || l.o[p][0] !== f.o[p][0] || l.o[p][1] !== f.o[p][1] || l.i[p][0] !== f.i[p][0] || l.i[p][1] !== f.i[p][1]) return !1;
|
|
1208
1208
|
return !0;
|
|
1209
|
-
})(this.v,
|
|
1209
|
+
})(this.v, m) || (this.v = yt.clone(m), this.localShapeCollection.releaseShapes(), this.localShapeCollection.addShape(this.v), this._mdf = !0, this.paths = this.localShapeCollection);
|
|
1210
1210
|
}
|
|
1211
1211
|
function r() {
|
|
1212
1212
|
if (this.elem.globalData.frameId !== this.frameId) if (this.effectsSequence.length) if (this.lock) this.setVValue(this.pv);
|
|
1213
1213
|
else {
|
|
1214
|
-
var
|
|
1215
|
-
this.lock = !0, this._mdf = !1,
|
|
1216
|
-
var
|
|
1217
|
-
for (l = 0; l <
|
|
1218
|
-
this.setVValue(
|
|
1214
|
+
var m, l;
|
|
1215
|
+
this.lock = !0, this._mdf = !1, m = this.kf ? this.pv : this.data.ks ? this.data.ks.k : this.data.pt.k;
|
|
1216
|
+
var f = this.effectsSequence.length;
|
|
1217
|
+
for (l = 0; l < f; l += 1) m = this.effectsSequence[l](m);
|
|
1218
|
+
this.setVValue(m), this.lock = !1, this.frameId = this.elem.globalData.frameId;
|
|
1219
1219
|
}
|
|
1220
1220
|
else this._mdf = !1;
|
|
1221
1221
|
}
|
|
1222
|
-
function h(
|
|
1223
|
-
this.propType = "shape", this.comp =
|
|
1224
|
-
var
|
|
1225
|
-
this.v = yt.clone(
|
|
1222
|
+
function h(m, l, f) {
|
|
1223
|
+
this.propType = "shape", this.comp = m.comp, this.container = m, this.elem = m, this.data = l, this.k = !1, this.kf = !1, this._mdf = !1;
|
|
1224
|
+
var p = f === 3 ? l.pt.k : l.ks.k;
|
|
1225
|
+
this.v = yt.clone(p), this.pv = yt.clone(this.v), this.localShapeCollection = ce.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = i, this.effectsSequence = [];
|
|
1226
1226
|
}
|
|
1227
|
-
function n(
|
|
1228
|
-
this.effectsSequence.push(
|
|
1227
|
+
function n(m) {
|
|
1228
|
+
this.effectsSequence.push(m), this.container.addDynamicProperty(this);
|
|
1229
1229
|
}
|
|
1230
|
-
function m
|
|
1231
|
-
this.propType = "shape", this.comp =
|
|
1232
|
-
var
|
|
1233
|
-
this.v = yt.newElement(), this.v.setPathData(this.keyframes[0].s[0].c,
|
|
1230
|
+
function g(m, l, f) {
|
|
1231
|
+
this.propType = "shape", this.comp = m.comp, this.elem = m, this.container = m, this.offsetTime = m.data.st, this.keyframes = f === 3 ? l.pt.k : l.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
|
|
1232
|
+
var p = this.keyframes[0].s[0].i.length;
|
|
1233
|
+
this.v = yt.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, p), this.pv = yt.clone(this.v), this.localShapeCollection = ce.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = t, this.reset = i, this._caching = { lastFrame: t, lastIndex: 0 }, this.effectsSequence = [s.bind(this)];
|
|
1234
1234
|
}
|
|
1235
|
-
h.prototype.interpolateShape = e, h.prototype.getValue = r, h.prototype.setVValue = a, h.prototype.addEffect = n,
|
|
1235
|
+
h.prototype.interpolateShape = e, h.prototype.getValue = r, h.prototype.setVValue = a, h.prototype.addEffect = n, g.prototype.getValue = r, g.prototype.interpolateShape = e, g.prototype.setVValue = a, g.prototype.addEffect = n;
|
|
1236
1236
|
var y = function() {
|
|
1237
|
-
var
|
|
1238
|
-
function l(
|
|
1239
|
-
this.v = yt.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = ce.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d =
|
|
1237
|
+
var m = Kt;
|
|
1238
|
+
function l(f, p) {
|
|
1239
|
+
this.v = yt.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = ce.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = p.d, this.elem = f, this.comp = f.comp, this.frameId = -1, this.initDynamicPropertyContainer(f), this.p = E.getProp(f, p.p, 1, 0, this), this.s = E.getProp(f, p.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath());
|
|
1240
1240
|
}
|
|
1241
1241
|
return l.prototype = { reset: i, getValue: function() {
|
|
1242
1242
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
|
|
1243
1243
|
}, convertEllToPath: function() {
|
|
1244
|
-
var
|
|
1245
|
-
C.v[0][0] =
|
|
1244
|
+
var f = this.p.v[0], p = this.p.v[1], u = this.s.v[0] / 2, v = this.s.v[1] / 2, k = this.d !== 3, C = this.v;
|
|
1245
|
+
C.v[0][0] = f, C.v[0][1] = p - v, C.v[1][0] = k ? f + u : f - u, C.v[1][1] = p, C.v[2][0] = f, C.v[2][1] = p + v, C.v[3][0] = k ? f - u : f + u, C.v[3][1] = p, C.i[0][0] = k ? f - u * m : f + u * m, C.i[0][1] = p - v, C.i[1][0] = k ? f + u : f - u, C.i[1][1] = p - v * m, C.i[2][0] = k ? f + u * m : f - u * m, C.i[2][1] = p + v, C.i[3][0] = k ? f - u : f + u, C.i[3][1] = p + v * m, C.o[0][0] = k ? f + u * m : f - u * m, C.o[0][1] = p - v, C.o[1][0] = k ? f + u : f - u, C.o[1][1] = p + v * m, C.o[2][0] = k ? f - u * m : f + u * m, C.o[2][1] = p + v, C.o[3][0] = k ? f - u : f + u, C.o[3][1] = p - v * m;
|
|
1246
1246
|
} }, W([ut], l), l;
|
|
1247
1247
|
}(), o = function() {
|
|
1248
|
-
function
|
|
1249
|
-
this.v = yt.newElement(), this.v.setPathData(!0, 0), this.elem = l, this.comp = l.comp, this.data =
|
|
1248
|
+
function m(l, f) {
|
|
1249
|
+
this.v = yt.newElement(), this.v.setPathData(!0, 0), this.elem = l, this.comp = l.comp, this.data = f, this.frameId = -1, this.d = f.d, this.initDynamicPropertyContainer(l), f.sy === 1 ? (this.ir = E.getProp(l, f.ir, 0, 0, this), this.is = E.getProp(l, f.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = E.getProp(l, f.pt, 0, 0, this), this.p = E.getProp(l, f.p, 1, 0, this), this.r = E.getProp(l, f.r, 0, et, this), this.or = E.getProp(l, f.or, 0, 0, this), this.os = E.getProp(l, f.os, 0, 0.01, this), this.localShapeCollection = ce.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath());
|
|
1250
1250
|
}
|
|
1251
|
-
return
|
|
1251
|
+
return m.prototype = { reset: i, getValue: function() {
|
|
1252
1252
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
1253
1253
|
}, convertStarToPath: function() {
|
|
1254
|
-
var l,
|
|
1254
|
+
var l, f, p, u, v = 2 * Math.floor(this.pt.v), k = 2 * Math.PI / v, C = !0, A = this.or.v, F = this.ir.v, I = this.os.v, x = this.is.v, T = 2 * Math.PI * A / (2 * v), M = 2 * Math.PI * F / (2 * v), _ = -Math.PI / 2;
|
|
1255
1255
|
_ += this.r.v;
|
|
1256
1256
|
var D = this.data.d === 3 ? -1 : 1;
|
|
1257
1257
|
for (this.v._length = 0, l = 0; l < v; l += 1) {
|
|
1258
|
-
|
|
1259
|
-
var w = (
|
|
1260
|
-
w += +this.p.v[0], P += +this.p.v[1], this.v.setTripleAt(w, P, w - V * u *
|
|
1258
|
+
p = C ? I : x, u = C ? T : M;
|
|
1259
|
+
var w = (f = C ? A : F) * Math.cos(_), P = f * Math.sin(_), V = w === 0 && P === 0 ? 0 : P / Math.sqrt(w * w + P * P), O = w === 0 && P === 0 ? 0 : -w / Math.sqrt(w * w + P * P);
|
|
1260
|
+
w += +this.p.v[0], P += +this.p.v[1], this.v.setTripleAt(w, P, w - V * u * p * D, P - O * u * p * D, w + V * u * p * D, P + O * u * p * D, l, !0), C = !C, _ += k * D;
|
|
1261
1261
|
}
|
|
1262
1262
|
}, convertPolygonToPath: function() {
|
|
1263
|
-
var l,
|
|
1264
|
-
for (C += this.r.v, this.v._length = 0, l = 0; l <
|
|
1265
|
-
var
|
|
1266
|
-
|
|
1263
|
+
var l, f = Math.floor(this.pt.v), p = 2 * Math.PI / f, u = this.or.v, v = this.os.v, k = 2 * Math.PI * u / (4 * f), C = 0.5 * -Math.PI, A = this.data.d === 3 ? -1 : 1;
|
|
1264
|
+
for (C += this.r.v, this.v._length = 0, l = 0; l < f; l += 1) {
|
|
1265
|
+
var F = u * Math.cos(C), I = u * Math.sin(C), x = F === 0 && I === 0 ? 0 : I / Math.sqrt(F * F + I * I), T = F === 0 && I === 0 ? 0 : -F / Math.sqrt(F * F + I * I);
|
|
1266
|
+
F += +this.p.v[0], I += +this.p.v[1], this.v.setTripleAt(F, I, F - x * k * v * A, I - T * k * v * A, F + x * k * v * A, I + T * k * v * A, l, !0), C += p * A;
|
|
1267
1267
|
}
|
|
1268
1268
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
1269
|
-
} }, W([ut],
|
|
1269
|
+
} }, W([ut], m), m;
|
|
1270
1270
|
}(), d = function() {
|
|
1271
|
-
function
|
|
1272
|
-
this.v = yt.newElement(), this.v.c = !0, this.localShapeCollection = ce.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = l, this.comp = l.comp, this.frameId = -1, this.d =
|
|
1271
|
+
function m(l, f) {
|
|
1272
|
+
this.v = yt.newElement(), this.v.c = !0, this.localShapeCollection = ce.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = l, this.comp = l.comp, this.frameId = -1, this.d = f.d, this.initDynamicPropertyContainer(l), this.p = E.getProp(l, f.p, 1, 0, this), this.s = E.getProp(l, f.s, 1, 0, this), this.r = E.getProp(l, f.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath());
|
|
1273
1273
|
}
|
|
1274
|
-
return
|
|
1275
|
-
var l = this.p.v[0],
|
|
1276
|
-
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(l +
|
|
1274
|
+
return m.prototype = { convertRectToPath: function() {
|
|
1275
|
+
var l = this.p.v[0], f = this.p.v[1], p = this.s.v[0] / 2, u = this.s.v[1] / 2, v = Li(p, u, this.r.v), k = v * (1 - Kt);
|
|
1276
|
+
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(l + p, f - u + v, l + p, f - u + v, l + p, f - u + k, 0, !0), this.v.setTripleAt(l + p, f + u - v, l + p, f + u - k, l + p, f + u - v, 1, !0), v !== 0 ? (this.v.setTripleAt(l + p - v, f + u, l + p - v, f + u, l + p - k, f + u, 2, !0), this.v.setTripleAt(l - p + v, f + u, l - p + k, f + u, l - p + v, f + u, 3, !0), this.v.setTripleAt(l - p, f + u - v, l - p, f + u - v, l - p, f + u - k, 4, !0), this.v.setTripleAt(l - p, f - u + v, l - p, f - u + k, l - p, f - u + v, 5, !0), this.v.setTripleAt(l - p + v, f - u, l - p + v, f - u, l - p + k, f - u, 6, !0), this.v.setTripleAt(l + p - v, f - u, l + p - k, f - u, l + p - v, f - u, 7, !0)) : (this.v.setTripleAt(l - p, f + u, l - p + k, f + u, l - p, f + u, 2), this.v.setTripleAt(l - p, f - u, l - p, f - u + k, l - p, f - u, 3))) : (this.v.setTripleAt(l + p, f - u + v, l + p, f - u + k, l + p, f - u + v, 0, !0), v !== 0 ? (this.v.setTripleAt(l + p - v, f - u, l + p - v, f - u, l + p - k, f - u, 1, !0), this.v.setTripleAt(l - p + v, f - u, l - p + k, f - u, l - p + v, f - u, 2, !0), this.v.setTripleAt(l - p, f - u + v, l - p, f - u + v, l - p, f - u + k, 3, !0), this.v.setTripleAt(l - p, f + u - v, l - p, f + u - k, l - p, f + u - v, 4, !0), this.v.setTripleAt(l - p + v, f + u, l - p + v, f + u, l - p + k, f + u, 5, !0), this.v.setTripleAt(l + p - v, f + u, l + p - k, f + u, l + p - v, f + u, 6, !0), this.v.setTripleAt(l + p, f + u - v, l + p, f + u - v, l + p, f + u - k, 7, !0)) : (this.v.setTripleAt(l - p, f - u, l - p + k, f - u, l - p, f - u, 1, !0), this.v.setTripleAt(l - p, f + u, l - p, f + u - k, l - p, f + u, 2, !0), this.v.setTripleAt(l + p, f + u, l + p - k, f + u, l + p, f + u, 3, !0)));
|
|
1277
1277
|
}, getValue: function() {
|
|
1278
1278
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
|
|
1279
|
-
}, reset: i }, W([ut],
|
|
1280
|
-
}(), c = { getShapeProp: function(
|
|
1281
|
-
var
|
|
1282
|
-
return
|
|
1279
|
+
}, reset: i }, W([ut], m), m;
|
|
1280
|
+
}(), c = { getShapeProp: function(m, l, f) {
|
|
1281
|
+
var p;
|
|
1282
|
+
return f === 3 || f === 4 ? p = (f === 3 ? l.pt : l.ks).k.length ? new g(m, l, f) : new h(m, l, f) : f === 5 ? p = new d(m, l) : f === 6 ? p = new y(m, l) : f === 7 && (p = new o(m, l)), p.k && m.addDynamicProperty(p), p;
|
|
1283
1283
|
}, getConstructorFunction: function() {
|
|
1284
1284
|
return h;
|
|
1285
1285
|
}, getKeyframedConstructorFunction: function() {
|
|
1286
|
-
return
|
|
1286
|
+
return g;
|
|
1287
1287
|
} };
|
|
1288
1288
|
return c;
|
|
1289
1289
|
}(), st = /* @__PURE__ */ function() {
|
|
@@ -1306,7 +1306,7 @@ var As = { exports: {} };
|
|
|
1306
1306
|
var S = t(b), L = e(b);
|
|
1307
1307
|
return this._t(S, 0, L, 0, 0, 1, 0, 0, -L, 0, S, 0, 0, 0, 0, 1);
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function g(b) {
|
|
1310
1310
|
if (b === 0) return this;
|
|
1311
1311
|
var S = t(b), L = e(b);
|
|
1312
1312
|
return this._t(S, -L, 0, 0, L, S, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
@@ -1324,19 +1324,19 @@ var As = { exports: {} };
|
|
|
1324
1324
|
function c(b, S, L) {
|
|
1325
1325
|
return L || L === 0 || (L = 1), b === 1 && S === 1 && L === 1 ? this : this._t(b, 0, 0, 0, 0, S, 0, 0, 0, 0, L, 0, 0, 0, 0, 1);
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function m(b, S, L, N, U, $, Q, J, tt, j, Y, ct, bt, rt, nt, at) {
|
|
1328
1328
|
return this.props[0] = b, this.props[1] = S, this.props[2] = L, this.props[3] = N, this.props[4] = U, this.props[5] = $, this.props[6] = Q, this.props[7] = J, this.props[8] = tt, this.props[9] = j, this.props[10] = Y, this.props[11] = ct, this.props[12] = bt, this.props[13] = rt, this.props[14] = nt, this.props[15] = at, this;
|
|
1329
1329
|
}
|
|
1330
1330
|
function l(b, S, L) {
|
|
1331
1331
|
return L = L || 0, b !== 0 || S !== 0 || L !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, b, S, L, 1) : this;
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function f(b, S, L, N, U, $, Q, J, tt, j, Y, ct, bt, rt, nt, at) {
|
|
1334
1334
|
var q = this.props;
|
|
1335
1335
|
if (b === 1 && S === 0 && L === 0 && N === 0 && U === 0 && $ === 1 && Q === 0 && J === 0 && tt === 0 && j === 0 && Y === 1 && ct === 0) return q[12] = q[12] * b + q[15] * bt, q[13] = q[13] * $ + q[15] * rt, q[14] = q[14] * Y + q[15] * nt, q[15] *= at, this._identityCalculated = !1, this;
|
|
1336
1336
|
var Ht = q[0], Gt = q[1], jt = q[2], _t = q[3], kt = q[4], ot = q[5], St = q[6], ee = q[7], Et = q[8], se = q[9], Lt = q[10], pe = q[11], ts = q[12], es = q[13], ss = q[14], is = q[15];
|
|
1337
1337
|
return q[0] = Ht * b + Gt * U + jt * tt + _t * bt, q[1] = Ht * S + Gt * $ + jt * j + _t * rt, q[2] = Ht * L + Gt * Q + jt * Y + _t * nt, q[3] = Ht * N + Gt * J + jt * ct + _t * at, q[4] = kt * b + ot * U + St * tt + ee * bt, q[5] = kt * S + ot * $ + St * j + ee * rt, q[6] = kt * L + ot * Q + St * Y + ee * nt, q[7] = kt * N + ot * J + St * ct + ee * at, q[8] = Et * b + se * U + Lt * tt + pe * bt, q[9] = Et * S + se * $ + Lt * j + pe * rt, q[10] = Et * L + se * Q + Lt * Y + pe * nt, q[11] = Et * N + se * J + Lt * ct + pe * at, q[12] = ts * b + es * U + ss * tt + is * bt, q[13] = ts * S + es * $ + ss * j + is * rt, q[14] = ts * L + es * Q + ss * Y + is * nt, q[15] = ts * N + es * J + ss * ct + is * at, this._identityCalculated = !1, this;
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function p(b) {
|
|
1340
1340
|
var S = b.props;
|
|
1341
1341
|
return this.transform(S[0], S[1], S[2], S[3], S[4], S[5], S[6], S[7], S[8], S[9], S[10], S[11], S[12], S[13], S[14], S[15]);
|
|
1342
1342
|
}
|
|
@@ -1350,7 +1350,7 @@ var As = { exports: {} };
|
|
|
1350
1350
|
}
|
|
1351
1351
|
return !0;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function k(b) {
|
|
1354
1354
|
var S;
|
|
1355
1355
|
for (S = 0; S < 16; S += 1) b.props[S] = this.props[S];
|
|
1356
1356
|
return b;
|
|
@@ -1362,16 +1362,16 @@ var As = { exports: {} };
|
|
|
1362
1362
|
function A(b, S, L) {
|
|
1363
1363
|
return { x: b * this.props[0] + S * this.props[4] + L * this.props[8] + this.props[12], y: b * this.props[1] + S * this.props[5] + L * this.props[9] + this.props[13], z: b * this.props[2] + S * this.props[6] + L * this.props[10] + this.props[14] };
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function F(b, S, L) {
|
|
1366
1366
|
return b * this.props[0] + S * this.props[4] + L * this.props[8] + this.props[12];
|
|
1367
1367
|
}
|
|
1368
1368
|
function I(b, S, L) {
|
|
1369
1369
|
return b * this.props[1] + S * this.props[5] + L * this.props[9] + this.props[13];
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function x(b, S, L) {
|
|
1372
1372
|
return b * this.props[2] + S * this.props[6] + L * this.props[10] + this.props[14];
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function T() {
|
|
1375
1375
|
var b = this.props[0] * this.props[5] - this.props[1] * this.props[4], S = this.props[5] / b, L = -this.props[1] / b, N = -this.props[4] / b, U = this.props[0] / b, $ = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / b, Q = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / b, J = new st();
|
|
1376
1376
|
return J.props[0] = S, J.props[1] = L, J.props[4] = N, J.props[5] = U, J.props[12] = $, J.props[13] = Q, J;
|
|
1377
1377
|
}
|
|
@@ -1412,7 +1412,7 @@ var As = { exports: {} };
|
|
|
1412
1412
|
return "matrix(" + O(b[0]) + "," + O(b[1]) + "," + O(b[4]) + "," + O(b[5]) + "," + O(b[12]) + "," + O(b[13]) + ")";
|
|
1413
1413
|
}
|
|
1414
1414
|
return function() {
|
|
1415
|
-
this.reset = a, this.rotate = r, this.rotateX = h, this.rotateY = n, this.rotateZ =
|
|
1415
|
+
this.reset = a, this.rotate = r, this.rotateX = h, this.rotateY = n, this.rotateZ = g, this.skew = o, this.skewFromAxis = d, this.shear = y, this.scale = c, this.setTransform = m, this.translate = l, this.transform = f, this.multiply = p, this.applyToPoint = A, this.applyToX = F, this.applyToY = I, this.applyToZ = x, this.applyToPointArray = w, this.applyToTriplePoints = D, this.applyToPointStringified = P, this.toCSS = V, this.to2dCSS = B, this.clone = k, this.cloneFromProps = C, this.equals = v, this.inversePoints = _, this.inversePoint = M, this.getInverseMatrix = T, this._t = this.transform, this.isIdentity = u, this._identity = !0, this._identityCalculated = !1, this.props = ht("float32", 16), this.reset();
|
|
1416
1416
|
};
|
|
1417
1417
|
}();
|
|
1418
1418
|
function fs(t) {
|
|
@@ -1466,14 +1466,18 @@ var As = { exports: {} };
|
|
|
1466
1466
|
default:
|
|
1467
1467
|
return null;
|
|
1468
1468
|
}
|
|
1469
|
-
}, H.version = "5.
|
|
1470
|
-
var Zs = ""
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1469
|
+
}, H.version = "5.13.0";
|
|
1470
|
+
var Zs = "";
|
|
1471
|
+
{
|
|
1472
|
+
var $s = document.getElementsByTagName("script"), Qs = $s[$s.length - 1] || { src: "" };
|
|
1473
|
+
Zs = Qs.src ? Qs.src.replace(/^[^\?]+\??/, "") : "", function(t) {
|
|
1474
|
+
for (var e = Zs.split("&"), s = 0; s < e.length; s += 1) {
|
|
1475
|
+
var i = e[s].split("=");
|
|
1476
|
+
if (decodeURIComponent(i[0]) == t) return decodeURIComponent(i[1]);
|
|
1477
|
+
}
|
|
1478
|
+
return null;
|
|
1479
|
+
}("renderer");
|
|
1480
|
+
}
|
|
1477
1481
|
var ji = setInterval(function() {
|
|
1478
1482
|
document.readyState === "complete" && (clearInterval(ji), Us());
|
|
1479
1483
|
}, 100);
|
|
@@ -1514,12 +1518,12 @@ var As = { exports: {} };
|
|
|
1514
1518
|
}, Ft.prototype.calculateShapeEdges = function(t, e, s, i, a) {
|
|
1515
1519
|
var r = [];
|
|
1516
1520
|
e <= 1 ? r.push({ s: t, e }) : t >= 1 ? r.push({ s: t - 1, e: e - 1 }) : (r.push({ s: t, e: 1 }), r.push({ s: 0, e: e - 1 }));
|
|
1517
|
-
var h, n,
|
|
1521
|
+
var h, n, g = [], y = r.length;
|
|
1518
1522
|
for (h = 0; h < y; h += 1) {
|
|
1519
1523
|
var o, d;
|
|
1520
|
-
(n = r[h]).e * a < i || n.s * a > i + s || (o = n.s * a <= i ? 0 : (n.s * a - i) / s, d = n.e * a >= i + s ? 1 : (n.e * a - i) / s,
|
|
1524
|
+
(n = r[h]).e * a < i || n.s * a > i + s || (o = n.s * a <= i ? 0 : (n.s * a - i) / s, d = n.e * a >= i + s ? 1 : (n.e * a - i) / s, g.push([o, d]));
|
|
1521
1525
|
}
|
|
1522
|
-
return
|
|
1526
|
+
return g.length || g.push([0, 0]), g;
|
|
1523
1527
|
}, Ft.prototype.releasePathsData = function(t) {
|
|
1524
1528
|
var e, s = t.length;
|
|
1525
1529
|
for (e = 0; e < s; e += 1) Js.release(t[e]);
|
|
@@ -1534,34 +1538,34 @@ var As = { exports: {} };
|
|
|
1534
1538
|
}
|
|
1535
1539
|
e = 1e-4 * Math.round(1e4 * e), s = 1e-4 * Math.round(1e4 * s), this.sValue = e, this.eValue = s;
|
|
1536
1540
|
} else e = this.sValue, s = this.eValue;
|
|
1537
|
-
var n,
|
|
1541
|
+
var n, g, y, o, d, c = this.shapes.length, m = 0;
|
|
1538
1542
|
if (s === e) for (a = 0; a < c; a += 1) this.shapes[a].localShapeCollection.releaseShapes(), this.shapes[a].shape._mdf = !0, this.shapes[a].shape.paths = this.shapes[a].localShapeCollection, this._mdf && (this.shapes[a].pathsData.length = 0);
|
|
1539
1543
|
else if (s === 1 && e === 0 || s === 0 && e === 1) {
|
|
1540
1544
|
if (this._mdf) for (a = 0; a < c; a += 1) this.shapes[a].pathsData.length = 0, this.shapes[a].shape._mdf = !0;
|
|
1541
1545
|
} else {
|
|
1542
|
-
var l,
|
|
1546
|
+
var l, f, p = [];
|
|
1543
1547
|
for (a = 0; a < c; a += 1) if ((l = this.shapes[a]).shape._mdf || this._mdf || t || this.m === 2) {
|
|
1544
|
-
if (
|
|
1548
|
+
if (g = (i = l.shape.paths)._length, d = 0, !l.shape._mdf && l.pathsData.length) d = l.totalShapeLength;
|
|
1545
1549
|
else {
|
|
1546
|
-
for (y = this.releasePathsData(l.pathsData), n = 0; n <
|
|
1550
|
+
for (y = this.releasePathsData(l.pathsData), n = 0; n < g; n += 1) o = Rt.getSegmentsLength(i.shapes[n]), y.push(o), d += o.totalLength;
|
|
1547
1551
|
l.totalShapeLength = d, l.pathsData = y;
|
|
1548
1552
|
}
|
|
1549
|
-
|
|
1553
|
+
m += d, l.shape._mdf = !0;
|
|
1550
1554
|
} else l.shape.paths = l.localShapeCollection;
|
|
1551
|
-
var u, v = e,
|
|
1555
|
+
var u, v = e, k = s, C = 0;
|
|
1552
1556
|
for (a = c - 1; a >= 0; a -= 1) if ((l = this.shapes[a]).shape._mdf) {
|
|
1553
|
-
for ((
|
|
1554
|
-
v = u[n][0],
|
|
1555
|
-
var A = this.addShapes(l,
|
|
1556
|
-
if (
|
|
1557
|
-
if (
|
|
1558
|
-
var
|
|
1559
|
-
this.addPaths(A,
|
|
1560
|
-
} else this.addPaths(A,
|
|
1561
|
-
this.addPaths(A,
|
|
1557
|
+
for ((f = l.localShapeCollection).releaseShapes(), this.m === 2 && c > 1 ? (u = this.calculateShapeEdges(e, s, l.totalShapeLength, C, m), C += l.totalShapeLength) : u = [[v, k]], g = u.length, n = 0; n < g; n += 1) {
|
|
1558
|
+
v = u[n][0], k = u[n][1], p.length = 0, k <= 1 ? p.push({ s: l.totalShapeLength * v, e: l.totalShapeLength * k }) : v >= 1 ? p.push({ s: l.totalShapeLength * (v - 1), e: l.totalShapeLength * (k - 1) }) : (p.push({ s: l.totalShapeLength * v, e: l.totalShapeLength }), p.push({ s: 0, e: l.totalShapeLength * (k - 1) }));
|
|
1559
|
+
var A = this.addShapes(l, p[0]);
|
|
1560
|
+
if (p[0].s !== p[0].e) {
|
|
1561
|
+
if (p.length > 1) if (l.shape.paths.shapes[l.shape.paths._length - 1].c) {
|
|
1562
|
+
var F = A.pop();
|
|
1563
|
+
this.addPaths(A, f), A = this.addShapes(l, p[1], F);
|
|
1564
|
+
} else this.addPaths(A, f), A = this.addShapes(l, p[1]);
|
|
1565
|
+
this.addPaths(A, f);
|
|
1562
1566
|
}
|
|
1563
1567
|
}
|
|
1564
|
-
l.shape.paths =
|
|
1568
|
+
l.shape.paths = f;
|
|
1565
1569
|
}
|
|
1566
1570
|
}
|
|
1567
1571
|
}, Ft.prototype.addPaths = function(t, e) {
|
|
@@ -1572,40 +1576,40 @@ var As = { exports: {} };
|
|
|
1572
1576
|
}, Ft.prototype.addSegmentFromArray = function(t, e, s, i) {
|
|
1573
1577
|
e.setXYAt(t[1], t[5], "o", s), e.setXYAt(t[2], t[6], "i", s + 1), i && e.setXYAt(t[0], t[4], "v", s), e.setXYAt(t[3], t[7], "v", s + 1);
|
|
1574
1578
|
}, Ft.prototype.addShapes = function(t, e, s) {
|
|
1575
|
-
var i, a, r, h, n,
|
|
1576
|
-
for (s ? (n = s._length, o = s._length) : (s = yt.newElement(), n = 0, o = 0),
|
|
1577
|
-
for (
|
|
1579
|
+
var i, a, r, h, n, g, y, o, d = t.pathsData, c = t.shape.paths.shapes, m = t.shape.paths._length, l = 0, f = [], p = !0;
|
|
1580
|
+
for (s ? (n = s._length, o = s._length) : (s = yt.newElement(), n = 0, o = 0), f.push(s), i = 0; i < m; i += 1) {
|
|
1581
|
+
for (g = d[i].lengths, s.c = c[i].c, r = c[i].c ? g.length : g.length + 1, a = 1; a < r; a += 1) if (l + (h = g[a - 1]).addedLength < e.s) l += h.addedLength, s.c = !1;
|
|
1578
1582
|
else {
|
|
1579
1583
|
if (l > e.e) {
|
|
1580
1584
|
s.c = !1;
|
|
1581
1585
|
break;
|
|
1582
1586
|
}
|
|
1583
|
-
e.s <= l && e.e >= l + h.addedLength ? (this.addSegment(c[i].v[a - 1], c[i].o[a - 1], c[i].i[a], c[i].v[a], s, n,
|
|
1587
|
+
e.s <= l && e.e >= l + h.addedLength ? (this.addSegment(c[i].v[a - 1], c[i].o[a - 1], c[i].i[a], c[i].v[a], s, n, p), p = !1) : (y = Rt.getNewSegment(c[i].v[a - 1], c[i].v[a], c[i].o[a - 1], c[i].i[a], (e.s - l) / h.addedLength, (e.e - l) / h.addedLength, g[a - 1]), this.addSegmentFromArray(y, s, n, p), p = !1, s.c = !1), l += h.addedLength, n += 1;
|
|
1584
1588
|
}
|
|
1585
|
-
if (c[i].c &&
|
|
1586
|
-
if (h =
|
|
1587
|
-
var u =
|
|
1588
|
-
e.s <= l && e.e >= l + u ? (this.addSegment(c[i].v[a - 1], c[i].o[a - 1], c[i].i[0], c[i].v[0], s, n,
|
|
1589
|
+
if (c[i].c && g.length) {
|
|
1590
|
+
if (h = g[a - 1], l <= e.e) {
|
|
1591
|
+
var u = g[a - 1].addedLength;
|
|
1592
|
+
e.s <= l && e.e >= l + u ? (this.addSegment(c[i].v[a - 1], c[i].o[a - 1], c[i].i[0], c[i].v[0], s, n, p), p = !1) : (y = Rt.getNewSegment(c[i].v[a - 1], c[i].v[0], c[i].o[a - 1], c[i].i[0], (e.s - l) / u, (e.e - l) / u, g[a - 1]), this.addSegmentFromArray(y, s, n, p), p = !1, s.c = !1);
|
|
1589
1593
|
} else s.c = !1;
|
|
1590
1594
|
l += h.addedLength, n += 1;
|
|
1591
1595
|
}
|
|
1592
1596
|
if (s._length && (s.setXYAt(s.v[o][0], s.v[o][1], "i", o), s.setXYAt(s.v[s._length - 1][0], s.v[s._length - 1][1], "o", s._length - 1)), l > e.e) break;
|
|
1593
|
-
i <
|
|
1597
|
+
i < m - 1 && (s = yt.newElement(), p = !0, f.push(s), n = 0);
|
|
1594
1598
|
}
|
|
1595
|
-
return
|
|
1599
|
+
return f;
|
|
1596
1600
|
}, W([At], De), De.prototype.initModifierProperties = function(t, e) {
|
|
1597
1601
|
this.getValue = this.processKeys, this.amount = E.getProp(t, e.a, 0, null, this), this._isAnimated = !!this.amount.effectsSequence.length;
|
|
1598
1602
|
}, De.prototype.processPath = function(t, e) {
|
|
1599
1603
|
var s = e / 100, i = [0, 0], a = t._length, r = 0;
|
|
1600
1604
|
for (r = 0; r < a; r += 1) i[0] += t.v[r][0], i[1] += t.v[r][1];
|
|
1601
1605
|
i[0] /= a, i[1] /= a;
|
|
1602
|
-
var h, n,
|
|
1603
|
-
for (c.c = t.c, r = 0; r < a; r += 1) h = t.v[r][0] + (i[0] - t.v[r][0]) * s, n = t.v[r][1] + (i[1] - t.v[r][1]) * s,
|
|
1606
|
+
var h, n, g, y, o, d, c = yt.newElement();
|
|
1607
|
+
for (c.c = t.c, r = 0; r < a; r += 1) h = t.v[r][0] + (i[0] - t.v[r][0]) * s, n = t.v[r][1] + (i[1] - t.v[r][1]) * s, g = t.o[r][0] + (i[0] - t.o[r][0]) * -s, y = t.o[r][1] + (i[1] - t.o[r][1]) * -s, o = t.i[r][0] + (i[0] - t.i[r][0]) * -s, d = t.i[r][1] + (i[1] - t.i[r][1]) * -s, c.setTripleAt(h, n, g, y, o, d, r);
|
|
1604
1608
|
return c;
|
|
1605
1609
|
}, De.prototype.processShapes = function(t) {
|
|
1606
|
-
var e, s, i, a, r, h, n = this.shapes.length,
|
|
1607
|
-
if (
|
|
1608
|
-
if (h = (r = this.shapes[s]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, i = 0; i < a; i += 1) h.addShape(this.processPath(e[i],
|
|
1610
|
+
var e, s, i, a, r, h, n = this.shapes.length, g = this.amount.v;
|
|
1611
|
+
if (g !== 0) for (s = 0; s < n; s += 1) {
|
|
1612
|
+
if (h = (r = this.shapes[s]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, i = 0; i < a; i += 1) h.addShape(this.processPath(e[i], g));
|
|
1609
1613
|
r.shape.paths = r.localShapeCollection;
|
|
1610
1614
|
}
|
|
1611
1615
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
@@ -1691,14 +1695,14 @@ var As = { exports: {} };
|
|
|
1691
1695
|
var a = i;
|
|
1692
1696
|
i = s, s = a;
|
|
1693
1697
|
}
|
|
1694
|
-
for (var r = function(
|
|
1695
|
-
if (
|
|
1696
|
-
var d = y * y - 4 *
|
|
1698
|
+
for (var r = function(g, y, o) {
|
|
1699
|
+
if (g === 0) return [];
|
|
1700
|
+
var d = y * y - 4 * g * o;
|
|
1697
1701
|
if (d < 0) return [];
|
|
1698
|
-
var c = -y / (2 *
|
|
1702
|
+
var c = -y / (2 * g);
|
|
1699
1703
|
if (d === 0) return [c];
|
|
1700
|
-
var
|
|
1701
|
-
return [c -
|
|
1704
|
+
var m = Math.sqrt(d) / (2 * g);
|
|
1705
|
+
return [c - m, c + m];
|
|
1702
1706
|
}(3 * t.a[e], 2 * t.b[e], t.c[e]), h = 0; h < r.length; h += 1) if (r[h] > 0 && r[h] < 1) {
|
|
1703
1707
|
var n = t.point(r[h])[e];
|
|
1704
1708
|
n < s ? s = n : n > i && (i = n);
|
|
@@ -1717,16 +1721,16 @@ var As = { exports: {} };
|
|
|
1717
1721
|
var h, n;
|
|
1718
1722
|
if (h = t, n = e, 2 * Math.abs(h.cx - n.cx) < h.width + n.width && 2 * Math.abs(h.cy - n.cy) < h.height + n.height) if (s >= r || t.width <= i && t.height <= i && e.width <= i && e.height <= i) a.push([t.t, e.t]);
|
|
1719
1723
|
else {
|
|
1720
|
-
var
|
|
1721
|
-
Ae(
|
|
1724
|
+
var g = ai(t), y = ai(e);
|
|
1725
|
+
Ae(g[0], y[0], s + 1, i, a, r), Ae(g[0], y[1], s + 1, i, a, r), Ae(g[1], y[0], s + 1, i, a, r), Ae(g[1], y[1], s + 1, i, a, r);
|
|
1722
1726
|
}
|
|
1723
1727
|
}
|
|
1724
1728
|
function ds(t, e) {
|
|
1725
1729
|
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]];
|
|
1726
1730
|
}
|
|
1727
1731
|
function Ke(t, e, s, i) {
|
|
1728
|
-
var a = [t[0], t[1], 1], r = [e[0], e[1], 1], h = [s[0], s[1], 1], n = [i[0], i[1], 1],
|
|
1729
|
-
return cs(
|
|
1732
|
+
var a = [t[0], t[1], 1], r = [e[0], e[1], 1], h = [s[0], s[1], 1], n = [i[0], i[1], 1], g = ds(ds(a, r), ds(h, n));
|
|
1733
|
+
return cs(g[2]) ? null : [g[0] / g[2], g[1] / g[2]];
|
|
1730
1734
|
}
|
|
1731
1735
|
function ue(t, e, s) {
|
|
1732
1736
|
return [t[0] + Math.cos(e) * s, t[1] - Math.sin(e) * s];
|
|
@@ -1740,21 +1744,21 @@ var As = { exports: {} };
|
|
|
1740
1744
|
function we() {
|
|
1741
1745
|
}
|
|
1742
1746
|
function ri(t, e, s, i, a, r, h) {
|
|
1743
|
-
var n = s - Math.PI / 2,
|
|
1744
|
-
t.setTripleAt(y, o, y + Math.cos(n) * r, o - Math.sin(n) * r, y + Math.cos(
|
|
1747
|
+
var n = s - Math.PI / 2, g = s + Math.PI / 2, y = e[0] + Math.cos(s) * i * a, o = e[1] - Math.sin(s) * i * a;
|
|
1748
|
+
t.setTripleAt(y, o, y + Math.cos(n) * r, o - Math.sin(n) * r, y + Math.cos(g) * h, o - Math.sin(g) * h, t.length());
|
|
1745
1749
|
}
|
|
1746
1750
|
function Ji(t, e) {
|
|
1747
|
-
var s, i, a, r, h = e === 0 ? t.length() - 1 : e - 1, n = (e + 1) % t.length(),
|
|
1751
|
+
var s, i, a, r, h = e === 0 ? t.length() - 1 : e - 1, n = (e + 1) % t.length(), g = t.v[h], y = t.v[n], o = (s = g, a = [(i = y)[0] - s[0], i[1] - s[1]], r = 0.5 * -Math.PI, [Math.cos(r) * a[0] - Math.sin(r) * a[1], Math.sin(r) * a[0] + Math.cos(r) * a[1]]);
|
|
1748
1752
|
return Math.atan2(0, 1) - Math.atan2(o[1], o[0]);
|
|
1749
1753
|
}
|
|
1750
1754
|
function ni(t, e, s, i, a, r, h) {
|
|
1751
|
-
var n = Ji(e, s),
|
|
1755
|
+
var n = Ji(e, s), g = e.v[s % e._length], y = e.v[s === 0 ? e._length - 1 : s - 1], o = e.v[(s + 1) % e._length], d = r === 2 ? Math.sqrt(Math.pow(g[0] - y[0], 2) + Math.pow(g[1] - y[1], 2)) : 0, c = r === 2 ? Math.sqrt(Math.pow(g[0] - o[0], 2) + Math.pow(g[1] - o[1], 2)) : 0;
|
|
1752
1756
|
ri(t, e.v[s % e._length], n, h, i, c / (2 * (a + 1)), d / (2 * (a + 1)));
|
|
1753
1757
|
}
|
|
1754
1758
|
function Yi(t, e, s, i, a, r) {
|
|
1755
1759
|
for (var h = 0; h < i; h += 1) {
|
|
1756
|
-
var n = (h + 1) / (i + 1),
|
|
1757
|
-
ri(t, e.point(n), y, r, s,
|
|
1760
|
+
var n = (h + 1) / (i + 1), g = a === 2 ? Math.sqrt(Math.pow(e.points[3][0] - e.points[0][0], 2) + Math.pow(e.points[3][1] - e.points[0][1], 2)) : 0, y = e.normalAngle(n);
|
|
1761
|
+
ri(t, e.point(n), y, r, s, g / (2 * (i + 1)), g / (2 * (i + 1))), r = -r;
|
|
1758
1762
|
}
|
|
1759
1763
|
return r;
|
|
1760
1764
|
}
|
|
@@ -1763,8 +1767,8 @@ var As = { exports: {} };
|
|
|
1763
1767
|
return [ue(t, i, s), ue(e, i, s)];
|
|
1764
1768
|
}
|
|
1765
1769
|
function ge(t, e) {
|
|
1766
|
-
var s, i, a, r, h, n,
|
|
1767
|
-
s = (
|
|
1770
|
+
var s, i, a, r, h, n, g;
|
|
1771
|
+
s = (g = ms(t.points[0], t.points[1], e))[0], i = g[1], a = (g = ms(t.points[1], t.points[2], e))[0], r = g[1], h = (g = ms(t.points[2], t.points[3], e))[0], n = g[1];
|
|
1768
1772
|
var y = Ke(s, i, a, r);
|
|
1769
1773
|
y === null && (y = i);
|
|
1770
1774
|
var o = Ke(h, n, a, r);
|
|
@@ -1774,8 +1778,8 @@ var As = { exports: {} };
|
|
|
1774
1778
|
var r = e.points[3], h = s.points[0];
|
|
1775
1779
|
if (i === 3 || me(r, h)) return r;
|
|
1776
1780
|
if (i === 2) {
|
|
1777
|
-
var n = -e.tangentAngle(1),
|
|
1778
|
-
return t.setXYAt(d[0], d[1], "o", t.length() - 1), d = ue(h,
|
|
1781
|
+
var n = -e.tangentAngle(1), g = -s.tangentAngle(0) + Math.PI, y = Ke(r, ue(r, n + Math.PI / 2, 100), h, ue(h, n + Math.PI / 2, 100)), o = y ? us(y, r) : us(r, h) / 2, d = ue(r, n, 2 * o * Kt);
|
|
1782
|
+
return t.setXYAt(d[0], d[1], "o", t.length() - 1), d = ue(h, g, 2 * o * Kt), t.setTripleAt(h[0], h[1], h[0], h[1], d[0], d[1], t.length()), h;
|
|
1779
1783
|
}
|
|
1780
1784
|
var c = Ke(me(r, e.points[2]) ? e.points[0] : e.points[2], r, h, me(h, s.points[1]) ? s.points[3] : s.points[1]);
|
|
1781
1785
|
return c && us(c, r) < a ? (t.setTripleAt(c[0], c[1], c[0], c[1], c[0], c[1], t.length()), c) : r;
|
|
@@ -1825,8 +1829,8 @@ var As = { exports: {} };
|
|
|
1825
1829
|
W([At], Ot), Ot.prototype.initModifierProperties = function(t, e) {
|
|
1826
1830
|
this.getValue = this.processKeys, this.c = E.getProp(t, e.c, 0, null, this), this.o = E.getProp(t, e.o, 0, null, this), this.tr = Xe.getTransformProperty(t, e.tr, this), this.so = E.getProp(t, e.tr.so, 0, 0.01, this), this.eo = E.getProp(t, e.tr.eo, 0, 0.01, this), this.data = e, this.dynamicProperties.length || this.getValue(!0), this._isAnimated = !!this.dynamicProperties.length, this.pMatrix = new st(), this.rMatrix = new st(), this.sMatrix = new st(), this.tMatrix = new st(), this.matrix = new st();
|
|
1827
1831
|
}, Ot.prototype.applyTransforms = function(t, e, s, i, a, r) {
|
|
1828
|
-
var h = r ? -1 : 1, n = i.s.v[0] + (1 - i.s.v[0]) * (1 - a),
|
|
1829
|
-
t.translate(i.p.v[0] * h * a, i.p.v[1] * h * a, i.p.v[2]), e.translate(-i.a.v[0], -i.a.v[1], i.a.v[2]), e.rotate(-i.r.v * h * a), e.translate(i.a.v[0], i.a.v[1], i.a.v[2]), s.translate(-i.a.v[0], -i.a.v[1], i.a.v[2]), s.scale(r ? 1 / n : n, r ? 1 /
|
|
1832
|
+
var h = r ? -1 : 1, n = i.s.v[0] + (1 - i.s.v[0]) * (1 - a), g = i.s.v[1] + (1 - i.s.v[1]) * (1 - a);
|
|
1833
|
+
t.translate(i.p.v[0] * h * a, i.p.v[1] * h * a, i.p.v[2]), e.translate(-i.a.v[0], -i.a.v[1], i.a.v[2]), e.rotate(-i.r.v * h * a), e.translate(i.a.v[0], i.a.v[1], i.a.v[2]), s.translate(-i.a.v[0], -i.a.v[1], i.a.v[2]), s.scale(r ? 1 / n : n, r ? 1 / g : g), s.translate(i.a.v[0], i.a.v[1], i.a.v[2]);
|
|
1830
1834
|
}, Ot.prototype.init = function(t, e, s, i) {
|
|
1831
1835
|
for (this.elem = t, this.arr = e, this.pos = s, this.elemsData = i, this._currentCopies = 0, this._elements = [], this._groups = [], this.frameId = -1, this.initDynamicPropertyContainer(t), this.initModifierProperties(t, e[s]); s > 0; ) s -= 1, this._elements.unshift(e[s]);
|
|
1832
1836
|
this.dynamicProperties.length ? this.k = !0 : this.getValue(!0);
|
|
@@ -1842,37 +1846,37 @@ var As = { exports: {} };
|
|
|
1842
1846
|
}, Ot.prototype.processShapes = function(t) {
|
|
1843
1847
|
var e, s, i, a, r, h = !1;
|
|
1844
1848
|
if (this._mdf || t) {
|
|
1845
|
-
var n,
|
|
1846
|
-
if (this._groups.length <
|
|
1847
|
-
for (; this._groups.length <
|
|
1849
|
+
var n, g = Math.ceil(this.c.v);
|
|
1850
|
+
if (this._groups.length < g) {
|
|
1851
|
+
for (; this._groups.length < g; ) {
|
|
1848
1852
|
var y = { it: this.cloneElements(this._elements), ty: "gr" };
|
|
1849
1853
|
y.it.push({ a: { a: 0, ix: 1, k: [0, 0] }, nm: "Transform", o: { a: 0, ix: 7, k: 100 }, p: { a: 0, ix: 2, k: [0, 0] }, r: { a: 1, ix: 6, k: [{ s: 0, e: 0, t: 0 }, { s: 0, e: 0, t: 1 }] }, s: { a: 0, ix: 3, k: [100, 100] }, sa: { a: 0, ix: 5, k: 0 }, sk: { a: 0, ix: 4, k: 0 }, ty: "tr" }), this.arr.splice(0, 0, y), this._groups.splice(0, 0, y), this._currentCopies += 1;
|
|
1850
1854
|
}
|
|
1851
1855
|
this.elem.reloadShapes(), h = !0;
|
|
1852
1856
|
}
|
|
1853
1857
|
for (r = 0, i = 0; i <= this._groups.length - 1; i += 1) {
|
|
1854
|
-
if (n = r <
|
|
1858
|
+
if (n = r < g, this._groups[i]._render = n, this.changeGroupRender(this._groups[i].it, n), !n) {
|
|
1855
1859
|
var o = this.elemsData[i].it, d = o[o.length - 1];
|
|
1856
1860
|
d.transform.op.v !== 0 ? (d.transform.op._mdf = !0, d.transform.op.v = 0) : d.transform.op._mdf = !1;
|
|
1857
1861
|
}
|
|
1858
1862
|
r += 1;
|
|
1859
1863
|
}
|
|
1860
|
-
this._currentCopies =
|
|
1861
|
-
var c = this.o.v,
|
|
1864
|
+
this._currentCopies = g;
|
|
1865
|
+
var c = this.o.v, m = c % 1, l = c > 0 ? Math.floor(c) : Math.ceil(c), f = this.pMatrix.props, p = this.rMatrix.props, u = this.sMatrix.props;
|
|
1862
1866
|
this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
|
|
1863
|
-
var v,
|
|
1867
|
+
var v, k, C = 0;
|
|
1864
1868
|
if (c > 0) {
|
|
1865
1869
|
for (; C < l; ) this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), C += 1;
|
|
1866
|
-
|
|
1870
|
+
m && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, m, !1), C += m);
|
|
1867
1871
|
} else if (c < 0) {
|
|
1868
1872
|
for (; C > l; ) this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), C -= 1;
|
|
1869
|
-
|
|
1873
|
+
m && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -m, !0), C -= m);
|
|
1870
1874
|
}
|
|
1871
1875
|
for (i = this.data.m === 1 ? 0 : this._currentCopies - 1, a = this.data.m === 1 ? 1 : -1, r = this._currentCopies; r; ) {
|
|
1872
|
-
if (
|
|
1873
|
-
for ((i !== 0 && a === 1 || i !== this._currentCopies - 1 && a === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(
|
|
1876
|
+
if (k = (s = (e = this.elemsData[i].it)[e.length - 1].transform.mProps.v.props).length, e[e.length - 1].transform.mProps._mdf = !0, e[e.length - 1].transform.op._mdf = !0, e[e.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (i / (this._currentCopies - 1)), C !== 0) {
|
|
1877
|
+
for ((i !== 0 && a === 1 || i !== this._currentCopies - 1 && a === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]), this.matrix.transform(u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7], u[8], u[9], u[10], u[11], u[12], u[13], u[14], u[15]), this.matrix.transform(f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7], f[8], f[9], f[10], f[11], f[12], f[13], f[14], f[15]), v = 0; v < k; v += 1) s[v] = this.matrix.props[v];
|
|
1874
1878
|
this.matrix.reset();
|
|
1875
|
-
} else for (this.matrix.reset(), v = 0; v <
|
|
1879
|
+
} else for (this.matrix.reset(), v = 0; v < k; v += 1) s[v] = this.matrix.props[v];
|
|
1876
1880
|
C += 1, r -= 1, i += a;
|
|
1877
1881
|
}
|
|
1878
1882
|
} else for (r = this._currentCopies, i = 0, a = 1; r; ) s = (e = this.elemsData[i].it)[e.length - 1].transform.mProps.v.props, e[e.length - 1].transform.mProps._mdf = !1, e[e.length - 1].transform.op._mdf = !1, r -= 1, i += a;
|
|
@@ -1883,13 +1887,13 @@ var As = { exports: {} };
|
|
|
1883
1887
|
}, Se.prototype.processPath = function(t, e) {
|
|
1884
1888
|
var s, i = yt.newElement();
|
|
1885
1889
|
i.c = t.c;
|
|
1886
|
-
var a, r, h, n,
|
|
1887
|
-
for (s = 0; s <
|
|
1890
|
+
var a, r, h, n, g, y, o, d, c, m, l, f, p = t._length, u = 0;
|
|
1891
|
+
for (s = 0; s < p; s += 1) a = t.v[s], h = t.o[s], r = t.i[s], a[0] === h[0] && a[1] === h[1] && a[0] === r[0] && a[1] === r[1] ? s !== 0 && s !== p - 1 || t.c ? (n = s === 0 ? t.v[p - 1] : t.v[s - 1], y = (g = Math.sqrt(Math.pow(a[0] - n[0], 2) + Math.pow(a[1] - n[1], 2))) ? Math.min(g / 2, e) / g : 0, o = l = a[0] + (n[0] - a[0]) * y, d = f = a[1] - (a[1] - n[1]) * y, c = o - (o - a[0]) * Kt, m = d - (d - a[1]) * Kt, i.setTripleAt(o, d, c, m, l, f, u), u += 1, n = s === p - 1 ? t.v[0] : t.v[s + 1], y = (g = Math.sqrt(Math.pow(a[0] - n[0], 2) + Math.pow(a[1] - n[1], 2))) ? Math.min(g / 2, e) / g : 0, o = c = a[0] + (n[0] - a[0]) * y, d = m = a[1] + (n[1] - a[1]) * y, l = o - (o - a[0]) * Kt, f = d - (d - a[1]) * Kt, i.setTripleAt(o, d, c, m, l, f, u), u += 1) : (i.setTripleAt(a[0], a[1], h[0], h[1], r[0], r[1], u), u += 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], u), u += 1);
|
|
1888
1892
|
return i;
|
|
1889
1893
|
}, Se.prototype.processShapes = function(t) {
|
|
1890
|
-
var e, s, i, a, r, h, n = this.shapes.length,
|
|
1891
|
-
if (
|
|
1892
|
-
if (h = (r = this.shapes[s]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, i = 0; i < a; i += 1) h.addShape(this.processPath(e[i],
|
|
1894
|
+
var e, s, i, a, r, h, n = this.shapes.length, g = this.rd.v;
|
|
1895
|
+
if (g !== 0) for (s = 0; s < n; s += 1) {
|
|
1896
|
+
if (h = (r = this.shapes[s]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, i = 0; i < a; i += 1) h.addShape(this.processPath(e[i], g));
|
|
1893
1897
|
r.shape.paths = r.localShapeCollection;
|
|
1894
1898
|
}
|
|
1895
1899
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
@@ -1939,12 +1943,12 @@ var As = { exports: {} };
|
|
|
1939
1943
|
if (r.c = t.c, t.c || (a -= 1), a === 0) return r;
|
|
1940
1944
|
var h = -1, n = it.shapeSegment(t, 0);
|
|
1941
1945
|
ni(r, t, 0, e, s, i, h);
|
|
1942
|
-
for (var
|
|
1946
|
+
for (var g = 0; g < a; g += 1) h = Yi(r, n, e, s, i, -h), n = g !== a - 1 || t.c ? it.shapeSegment(t, (g + 1) % a) : null, ni(r, t, g + 1, e, s, i, h);
|
|
1943
1947
|
return r;
|
|
1944
1948
|
}, we.prototype.processShapes = function(t) {
|
|
1945
|
-
var e, s, i, a, r, h, n = this.shapes.length,
|
|
1946
|
-
if (
|
|
1947
|
-
if (h = (r = this.shapes[s]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, i = 0; i < a; i += 1) h.addShape(this.processPath(e[i],
|
|
1949
|
+
var e, s, i, a, r, h, n = this.shapes.length, g = this.amplitude.v, y = Math.max(0, Math.round(this.frequency.v)), o = this.pointsType.v;
|
|
1950
|
+
if (g !== 0) for (s = 0; s < n; s += 1) {
|
|
1951
|
+
if (h = (r = this.shapes[s]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, i = 0; i < a; i += 1) h.addShape(this.processPath(e[i], g, y, o));
|
|
1948
1952
|
r.shape.paths = r.localShapeCollection;
|
|
1949
1953
|
}
|
|
1950
1954
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
@@ -1953,14 +1957,14 @@ var As = { exports: {} };
|
|
|
1953
1957
|
}, Me.prototype.processPath = function(t, e, s, i) {
|
|
1954
1958
|
var a = yt.newElement();
|
|
1955
1959
|
a.c = t.c;
|
|
1956
|
-
var r, h, n,
|
|
1957
|
-
t.c || (
|
|
1960
|
+
var r, h, n, g = t.length();
|
|
1961
|
+
t.c || (g -= 1);
|
|
1958
1962
|
var y = [];
|
|
1959
|
-
for (r = 0; r <
|
|
1960
|
-
if (!t.c) for (r =
|
|
1961
|
-
y = function(
|
|
1962
|
-
for (var l,
|
|
1963
|
-
return
|
|
1963
|
+
for (r = 0; r < g; r += 1) n = it.shapeSegment(t, r), y.push(pi(n, e));
|
|
1964
|
+
if (!t.c) for (r = g - 1; r >= 0; r -= 1) n = it.shapeSegmentInverted(t, r), y.push(pi(n, e));
|
|
1965
|
+
y = function(m) {
|
|
1966
|
+
for (var l, f = 1; f < m.length; f += 1) l = li(m[f - 1], m[f]), m[f - 1] = l[0], m[f] = l[1];
|
|
1967
|
+
return m.length > 1 && (l = li(m[m.length - 1], m[0]), m[m.length - 1] = l[0], m[0] = l[1]), m;
|
|
1964
1968
|
}(y);
|
|
1965
1969
|
var o = null, d = null;
|
|
1966
1970
|
for (r = 0; r < y.length; r += 1) {
|
|
@@ -1969,9 +1973,9 @@ var As = { exports: {} };
|
|
|
1969
1973
|
}
|
|
1970
1974
|
return y.length && oi(a, d, y[0][0], s, i), a;
|
|
1971
1975
|
}, Me.prototype.processShapes = function(t) {
|
|
1972
|
-
var e, s, i, a, r, h, n = this.shapes.length,
|
|
1973
|
-
if (
|
|
1974
|
-
if (h = (r = this.shapes[s]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, i = 0; i < a; i += 1) h.addShape(this.processPath(e[i],
|
|
1976
|
+
var e, s, i, a, r, h, n = this.shapes.length, g = this.amount.v, y = this.miterLimit.v, o = this.lineJoin;
|
|
1977
|
+
if (g !== 0) for (s = 0; s < n; s += 1) {
|
|
1978
|
+
if (h = (r = this.shapes[s]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, i = 0; i < a; i += 1) h.addShape(this.processPath(e[i], g, o, y));
|
|
1975
1979
|
r.shape.paths = r.localShapeCollection;
|
|
1976
1980
|
}
|
|
1977
1981
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
@@ -1983,33 +1987,33 @@ var As = { exports: {} };
|
|
|
1983
1987
|
function a(o, d) {
|
|
1984
1988
|
var c = Pt("span");
|
|
1985
1989
|
c.setAttribute("aria-hidden", !0), c.style.fontFamily = d;
|
|
1986
|
-
var
|
|
1987
|
-
|
|
1988
|
-
var l =
|
|
1989
|
-
return
|
|
1990
|
-
var
|
|
1991
|
-
for (
|
|
1992
|
-
return
|
|
1993
|
-
}(o) + ", " + d, { node:
|
|
1990
|
+
var m = Pt("span");
|
|
1991
|
+
m.innerText = "giItT1WQy@!-/#", c.style.position = "absolute", c.style.left = "-10000px", c.style.top = "-10000px", c.style.fontSize = "300px", c.style.fontVariant = "normal", c.style.fontStyle = "normal", c.style.fontWeight = "normal", c.style.letterSpacing = "0", c.appendChild(m), document.body.appendChild(c);
|
|
1992
|
+
var l = m.offsetWidth;
|
|
1993
|
+
return m.style.fontFamily = function(f) {
|
|
1994
|
+
var p, u = f.split(","), v = u.length, k = [];
|
|
1995
|
+
for (p = 0; p < v; p += 1) u[p] !== "sans-serif" && u[p] !== "monospace" && k.push(u[p]);
|
|
1996
|
+
return k.join(",");
|
|
1997
|
+
}(o) + ", " + d, { node: m, w: l, parent: c };
|
|
1994
1998
|
}
|
|
1995
1999
|
function r(o, d) {
|
|
1996
|
-
var c,
|
|
1997
|
-
if (
|
|
1998
|
-
var
|
|
1999
|
-
|
|
2000
|
+
var c, m = document.body && d ? "svg" : "canvas", l = fi(o);
|
|
2001
|
+
if (m === "svg") {
|
|
2002
|
+
var f = z("text");
|
|
2003
|
+
f.style.fontSize = "100px", f.setAttribute("font-family", o.fFamily), f.setAttribute("font-style", l.style), f.setAttribute("font-weight", l.weight), f.textContent = "1", o.fClass ? (f.style.fontFamily = "inherit", f.setAttribute("class", o.fClass)) : f.style.fontFamily = o.fFamily, d.appendChild(f), c = f;
|
|
2000
2004
|
} else {
|
|
2001
|
-
var
|
|
2002
|
-
|
|
2005
|
+
var p = new OffscreenCanvas(500, 500).getContext("2d");
|
|
2006
|
+
p.font = l.style + " " + l.weight + " 100px " + o.fFamily, c = p;
|
|
2003
2007
|
}
|
|
2004
2008
|
return { measureText: function(u) {
|
|
2005
|
-
return
|
|
2009
|
+
return m === "svg" ? (c.textContent = u, c.getComputedTextLength()) : c.measureText(u).width;
|
|
2006
2010
|
} };
|
|
2007
2011
|
}
|
|
2008
2012
|
function h(o) {
|
|
2009
2013
|
var d = 0, c = o.charCodeAt(0);
|
|
2010
2014
|
if (c >= 55296 && c <= 56319) {
|
|
2011
|
-
var
|
|
2012
|
-
|
|
2015
|
+
var m = o.charCodeAt(1);
|
|
2016
|
+
m >= 56320 && m <= 57343 && (d = 1024 * (c - 55296) + m - 56320 + 65536);
|
|
2013
2017
|
}
|
|
2014
2018
|
return d;
|
|
2015
2019
|
}
|
|
@@ -2017,77 +2021,77 @@ var As = { exports: {} };
|
|
|
2017
2021
|
var d = h(o);
|
|
2018
2022
|
return d >= 127462 && d <= 127487;
|
|
2019
2023
|
}
|
|
2020
|
-
var
|
|
2024
|
+
var g = function() {
|
|
2021
2025
|
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);
|
|
2022
2026
|
};
|
|
2023
|
-
|
|
2027
|
+
g.isModifier = function(o, d) {
|
|
2024
2028
|
var c = o.toString(16) + d.toString(16);
|
|
2025
2029
|
return i.indexOf(c) !== -1;
|
|
2026
|
-
},
|
|
2030
|
+
}, g.isZeroWidthJoiner = function(o) {
|
|
2027
2031
|
return o === 8205;
|
|
2028
|
-
},
|
|
2032
|
+
}, g.isFlagEmoji = function(o) {
|
|
2029
2033
|
return n(o.substr(0, 2)) && n(o.substr(2, 2));
|
|
2030
|
-
},
|
|
2034
|
+
}, g.isRegionalCode = n, g.isCombinedCharacter = function(o) {
|
|
2031
2035
|
return e.indexOf(o) !== -1;
|
|
2032
|
-
},
|
|
2036
|
+
}, g.isRegionalFlag = function(o, d) {
|
|
2033
2037
|
var c = h(o.substr(d, 2));
|
|
2034
2038
|
if (c !== s) return !1;
|
|
2035
|
-
var
|
|
2036
|
-
for (d += 2;
|
|
2039
|
+
var m = 0;
|
|
2040
|
+
for (d += 2; m < 5; ) {
|
|
2037
2041
|
if ((c = h(o.substr(d, 2))) < 917601 || c > 917626) return !1;
|
|
2038
|
-
|
|
2042
|
+
m += 1, d += 2;
|
|
2039
2043
|
}
|
|
2040
2044
|
return h(o.substr(d, 2)) === 917631;
|
|
2041
|
-
},
|
|
2045
|
+
}, g.isVariationSelector = function(o) {
|
|
2042
2046
|
return o === 65039;
|
|
2043
|
-
},
|
|
2047
|
+
}, g.BLACK_FLAG_CODE_POINT = s;
|
|
2044
2048
|
var y = { addChars: function(o) {
|
|
2045
2049
|
if (o) {
|
|
2046
2050
|
var d;
|
|
2047
2051
|
this.chars || (this.chars = []);
|
|
2048
|
-
var c,
|
|
2052
|
+
var c, m, l = o.length, f = this.chars.length;
|
|
2049
2053
|
for (d = 0; d < l; d += 1) {
|
|
2050
|
-
for (c = 0,
|
|
2051
|
-
|
|
2054
|
+
for (c = 0, m = !1; c < f; ) this.chars[c].style === o[d].style && this.chars[c].fFamily === o[d].fFamily && this.chars[c].ch === o[d].ch && (m = !0), c += 1;
|
|
2055
|
+
m || (this.chars.push(o[d]), f += 1);
|
|
2052
2056
|
}
|
|
2053
2057
|
}
|
|
2054
2058
|
}, addFonts: function(o, d) {
|
|
2055
2059
|
if (o) {
|
|
2056
2060
|
if (this.chars) return this.isLoaded = !0, void (this.fonts = o.list);
|
|
2057
|
-
if (!document.body) return this.isLoaded = !0, o.list.forEach(function(
|
|
2058
|
-
|
|
2061
|
+
if (!document.body) return this.isLoaded = !0, o.list.forEach(function(F) {
|
|
2062
|
+
F.helper = r(F), F.cache = {};
|
|
2059
2063
|
}), void (this.fonts = o.list);
|
|
2060
|
-
var c,
|
|
2064
|
+
var c, m = o.list, l = m.length, f = l;
|
|
2061
2065
|
for (c = 0; c < l; c += 1) {
|
|
2062
|
-
var
|
|
2063
|
-
if (
|
|
2064
|
-
if (
|
|
2065
|
-
if ((
|
|
2066
|
-
var
|
|
2067
|
-
|
|
2066
|
+
var p, u, v = !0;
|
|
2067
|
+
if (m[c].loaded = !1, m[c].monoCase = a(m[c].fFamily, "monospace"), m[c].sansCase = a(m[c].fFamily, "sans-serif"), m[c].fPath) {
|
|
2068
|
+
if (m[c].fOrigin === "p" || m[c].origin === 3) {
|
|
2069
|
+
if ((p = document.querySelectorAll('style[f-forigin="p"][f-family="' + m[c].fFamily + '"], style[f-origin="3"][f-family="' + m[c].fFamily + '"]')).length > 0 && (v = !1), v) {
|
|
2070
|
+
var k = Pt("style");
|
|
2071
|
+
k.setAttribute("f-forigin", m[c].fOrigin), k.setAttribute("f-origin", m[c].origin), k.setAttribute("f-family", m[c].fFamily), k.type = "text/css", k.innerText = "@font-face {font-family: " + m[c].fFamily + "; font-style: normal; src: url('" + m[c].fPath + "');}", d.appendChild(k);
|
|
2068
2072
|
}
|
|
2069
|
-
} else if (
|
|
2070
|
-
for (
|
|
2073
|
+
} else if (m[c].fOrigin === "g" || m[c].origin === 1) {
|
|
2074
|
+
for (p = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), u = 0; u < p.length; u += 1) p[u].href.indexOf(m[c].fPath) !== -1 && (v = !1);
|
|
2071
2075
|
if (v) {
|
|
2072
2076
|
var C = Pt("link");
|
|
2073
|
-
C.setAttribute("f-forigin",
|
|
2077
|
+
C.setAttribute("f-forigin", m[c].fOrigin), C.setAttribute("f-origin", m[c].origin), C.type = "text/css", C.rel = "stylesheet", C.href = m[c].fPath, document.body.appendChild(C);
|
|
2074
2078
|
}
|
|
2075
|
-
} else if (
|
|
2076
|
-
for (
|
|
2079
|
+
} else if (m[c].fOrigin === "t" || m[c].origin === 2) {
|
|
2080
|
+
for (p = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), u = 0; u < p.length; u += 1) m[c].fPath === p[u].src && (v = !1);
|
|
2077
2081
|
if (v) {
|
|
2078
2082
|
var A = Pt("link");
|
|
2079
|
-
A.setAttribute("f-forigin",
|
|
2083
|
+
A.setAttribute("f-forigin", m[c].fOrigin), A.setAttribute("f-origin", m[c].origin), A.setAttribute("rel", "stylesheet"), A.setAttribute("href", m[c].fPath), d.appendChild(A);
|
|
2080
2084
|
}
|
|
2081
2085
|
}
|
|
2082
|
-
} else
|
|
2083
|
-
|
|
2086
|
+
} else m[c].loaded = !0, f -= 1;
|
|
2087
|
+
m[c].helper = r(m[c], d), m[c].cache = {}, this.fonts.push(m[c]);
|
|
2084
2088
|
}
|
|
2085
|
-
|
|
2089
|
+
f === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
2086
2090
|
} else this.isLoaded = !0;
|
|
2087
2091
|
}, getCharData: function(o, d, c) {
|
|
2088
|
-
for (var
|
|
2089
|
-
if (this.chars[
|
|
2090
|
-
|
|
2092
|
+
for (var m = 0, l = this.chars.length; m < l; ) {
|
|
2093
|
+
if (this.chars[m].ch === o && this.chars[m].style === d && this.chars[m].fFamily === c) return this.chars[m];
|
|
2094
|
+
m += 1;
|
|
2091
2095
|
}
|
|
2092
2096
|
return (typeof o == "string" && o.charCodeAt(0) !== 13 || !o) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", o, d, c)), t;
|
|
2093
2097
|
}, getFontByName: function(o) {
|
|
@@ -2097,23 +2101,23 @@ var As = { exports: {} };
|
|
|
2097
2101
|
}
|
|
2098
2102
|
return this.fonts[0];
|
|
2099
2103
|
}, measureText: function(o, d, c) {
|
|
2100
|
-
var
|
|
2101
|
-
if (!
|
|
2102
|
-
var
|
|
2104
|
+
var m = this.getFontByName(d), l = o;
|
|
2105
|
+
if (!m.cache[l]) {
|
|
2106
|
+
var f = m.helper;
|
|
2103
2107
|
if (o === " ") {
|
|
2104
|
-
var
|
|
2105
|
-
|
|
2106
|
-
} else
|
|
2108
|
+
var p = f.measureText("|" + o + "|"), u = f.measureText("||");
|
|
2109
|
+
m.cache[l] = (p - u) / 100;
|
|
2110
|
+
} else m.cache[l] = f.measureText(o) / 100;
|
|
2107
2111
|
}
|
|
2108
|
-
return
|
|
2112
|
+
return m.cache[l] * c;
|
|
2109
2113
|
}, checkLoadedFonts: function() {
|
|
2110
|
-
var o, d, c,
|
|
2111
|
-
for (o = 0; o <
|
|
2114
|
+
var o, d, c, m = this.fonts.length, l = m;
|
|
2115
|
+
for (o = 0; o < m; o += 1) this.fonts[o].loaded ? l -= 1 : this.fonts[o].fOrigin === "n" || this.fonts[o].origin === 0 ? this.fonts[o].loaded = !0 : (d = this.fonts[o].monoCase.node, c = this.fonts[o].monoCase.w, d.offsetWidth !== c ? (l -= 1, this.fonts[o].loaded = !0) : (d = this.fonts[o].sansCase.node, c = this.fonts[o].sansCase.w, d.offsetWidth !== c && (l -= 1, this.fonts[o].loaded = !0)), this.fonts[o].loaded && (this.fonts[o].sansCase.parent.parentNode.removeChild(this.fonts[o].sansCase.parent), this.fonts[o].monoCase.parent.parentNode.removeChild(this.fonts[o].monoCase.parent)));
|
|
2112
2116
|
l !== 0 && Date.now() - this.initTime < 5e3 ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
|
|
2113
2117
|
}, setIsLoaded: function() {
|
|
2114
2118
|
this.isLoaded = !0;
|
|
2115
2119
|
} };
|
|
2116
|
-
return
|
|
2120
|
+
return g.prototype = y, g;
|
|
2117
2121
|
}();
|
|
2118
2122
|
function ci(t) {
|
|
2119
2123
|
this.animationData = t;
|
|
@@ -2374,21 +2378,21 @@ var As = { exports: {} };
|
|
|
2374
2378
|
this.data = t, this.element = e, this.globalData = s, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
|
|
2375
2379
|
var i, a, r = this.globalData.defs, h = this.masksProperties ? this.masksProperties.length : 0;
|
|
2376
2380
|
this.viewData = K(h), this.solidPath = "";
|
|
2377
|
-
var n,
|
|
2378
|
-
for (i = 0; i < h; i += 1) if ((
|
|
2381
|
+
var n, g, y, o, d, c, m = this.masksProperties, l = 0, f = [], p = Ct(), u = "clipPath", v = "clip-path";
|
|
2382
|
+
for (i = 0; i < h; i += 1) if ((m[i].mode !== "a" && m[i].mode !== "n" || m[i].inv || m[i].o.k !== 100 || m[i].o.x) && (u = "mask", v = "mask"), m[i].mode !== "s" && m[i].mode !== "i" || l !== 0 ? y = null : ((y = z("rect")).setAttribute("fill", "#ffffff"), y.setAttribute("width", this.element.comp.data.w || 0), y.setAttribute("height", this.element.comp.data.h || 0), f.push(y)), a = z("path"), m[i].mode === "n") this.viewData[i] = { op: E.getProp(this.element, m[i].o, 0, 0.01, this.element), prop: de.getShapeProp(this.element, m[i], 3), elem: a, lastPath: "" }, r.appendChild(a);
|
|
2379
2383
|
else {
|
|
2380
|
-
var
|
|
2381
|
-
if (l += 1, a.setAttribute("fill",
|
|
2382
|
-
|
|
2384
|
+
var k;
|
|
2385
|
+
if (l += 1, a.setAttribute("fill", m[i].mode === "s" ? "#000000" : "#ffffff"), a.setAttribute("clip-rule", "nonzero"), m[i].x.k !== 0 ? (u = "mask", v = "mask", c = E.getProp(this.element, m[i].x, 0, null, this.element), k = Ct(), (o = z("filter")).setAttribute("id", k), (d = z("feMorphology")).setAttribute("operator", "erode"), d.setAttribute("in", "SourceGraphic"), d.setAttribute("radius", "0"), o.appendChild(d), r.appendChild(o), a.setAttribute("stroke", m[i].mode === "s" ? "#000000" : "#ffffff")) : (d = null, c = null), this.storedData[i] = { elem: a, x: c, expan: d, lastPath: "", lastOperator: "", filterId: k, lastRadius: 0 }, m[i].mode === "i") {
|
|
2386
|
+
g = f.length;
|
|
2383
2387
|
var C = z("g");
|
|
2384
|
-
for (n = 0; n <
|
|
2388
|
+
for (n = 0; n < g; n += 1) C.appendChild(f[n]);
|
|
2385
2389
|
var A = z("mask");
|
|
2386
|
-
A.setAttribute("mask-type", "alpha"), A.setAttribute("id",
|
|
2387
|
-
} else
|
|
2388
|
-
|
|
2390
|
+
A.setAttribute("mask-type", "alpha"), A.setAttribute("id", p + "_" + l), A.appendChild(a), r.appendChild(A), C.setAttribute("mask", "url(" + dt() + "#" + p + "_" + l + ")"), f.length = 0, f.push(C);
|
|
2391
|
+
} else f.push(a);
|
|
2392
|
+
m[i].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[i] = { elem: a, lastPath: "", op: E.getProp(this.element, m[i].o, 0, 0.01, this.element), prop: de.getShapeProp(this.element, m[i], 3), invRect: y }, this.viewData[i].prop.k || this.drawPath(m[i], this.viewData[i].prop.v, this.viewData[i]);
|
|
2389
2393
|
}
|
|
2390
|
-
for (this.maskElement = z(u), h =
|
|
2391
|
-
l > 0 && (this.maskElement.setAttribute("id",
|
|
2394
|
+
for (this.maskElement = z(u), h = f.length, i = 0; i < h; i += 1) this.maskElement.appendChild(f[i]);
|
|
2395
|
+
l > 0 && (this.maskElement.setAttribute("id", p), this.element.maskedElement.setAttribute(v, "url(" + dt() + "#" + p + ")"), r.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this);
|
|
2392
2396
|
}
|
|
2393
2397
|
Nt.prototype = { initTransform: function() {
|
|
2394
2398
|
var t = new st();
|
|
@@ -2405,7 +2409,7 @@ var As = { exports: {} };
|
|
|
2405
2409
|
}
|
|
2406
2410
|
if (this.finalTransform._matMdf) for (t = this.finalTransform.mProp.v.props, e.cloneFromProps(t), s = 0; s < i; s += 1) e.multiply(this.hierarchy[s].finalTransform.mProp.v);
|
|
2407
2411
|
}
|
|
2408
|
-
this.finalTransform._matMdf
|
|
2412
|
+
this.localTransforms && !this.finalTransform._matMdf || (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
|
|
2409
2413
|
}, renderLocalTransform: function() {
|
|
2410
2414
|
if (this.localTransforms) {
|
|
2411
2415
|
var t = 0, e = this.localTransforms.length;
|
|
@@ -2480,8 +2484,8 @@ var As = { exports: {} };
|
|
|
2480
2484
|
var e, s, i = "SourceGraphic", a = t.data.ef ? t.data.ef.length : 0, r = Ct(), h = Fe.createFilter(r, !0), n = 0;
|
|
2481
2485
|
for (this.filters = [], e = 0; e < a; e += 1) {
|
|
2482
2486
|
s = null;
|
|
2483
|
-
var
|
|
2484
|
-
gs[
|
|
2487
|
+
var g = t.data.ef[e].ty;
|
|
2488
|
+
gs[g] && (s = new gs[g].effect(h, t.effectsManager.effectElements[e], t, gi + n, i), i = gi + n, gs[g].countsAsEffect && (n += 1)), s && this.filters.push(s);
|
|
2485
2489
|
}
|
|
2486
2490
|
n && (t.globalData.defs.appendChild(h), t.layerElement.setAttribute("filter", "url(" + dt() + "#" + r + ")")), this.filters.length && t.addRenderableComponent(this);
|
|
2487
2491
|
}
|
|
@@ -2543,14 +2547,14 @@ var As = { exports: {} };
|
|
|
2543
2547
|
} else if (t === 2) {
|
|
2544
2548
|
var n = z("mask");
|
|
2545
2549
|
n.setAttribute("id", r), n.setAttribute("mask-type", "alpha");
|
|
2546
|
-
var
|
|
2547
|
-
n.appendChild(
|
|
2550
|
+
var g = z("g");
|
|
2551
|
+
n.appendChild(g), e = Ct(), s = Fe.createFilter(e);
|
|
2548
2552
|
var y = z("feComponentTransfer");
|
|
2549
2553
|
y.setAttribute("in", "SourceGraphic"), s.appendChild(y);
|
|
2550
2554
|
var o = z("feFuncA");
|
|
2551
2555
|
o.setAttribute("type", "table"), o.setAttribute("tableValues", "1.0 0.0"), y.appendChild(o), this.globalData.defs.appendChild(s);
|
|
2552
2556
|
var d = z("rect");
|
|
2553
|
-
d.setAttribute("width", this.comp.data.w), d.setAttribute("height", this.comp.data.h), d.setAttribute("x", "0"), d.setAttribute("y", "0"), d.setAttribute("fill", "#ffffff"), d.setAttribute("opacity", "0"),
|
|
2557
|
+
d.setAttribute("width", this.comp.data.w), d.setAttribute("height", this.comp.data.h), d.setAttribute("x", "0"), d.setAttribute("y", "0"), d.setAttribute("fill", "#ffffff"), d.setAttribute("opacity", "0"), g.setAttribute("filter", "url(" + dt() + "#" + e + ")"), g.appendChild(d), (i = z("use")).setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), g.appendChild(i), Ze.maskType || (n.setAttribute("mask-type", "luminance"), s.appendChild(Fe.createAlphaToLuminanceFilter()), a = z("g"), g.appendChild(d), a.appendChild(this.layerElement), g.appendChild(a)), this.globalData.defs.appendChild(n);
|
|
2554
2558
|
}
|
|
2555
2559
|
this.matteMasks[t] = r;
|
|
2556
2560
|
}
|
|
@@ -2696,20 +2700,20 @@ var As = { exports: {} };
|
|
|
2696
2700
|
if (this.g._hasOpacity && !this.g._collapsable) {
|
|
2697
2701
|
var s, i, a, r = z("mask"), h = z("path");
|
|
2698
2702
|
r.appendChild(h);
|
|
2699
|
-
var n = Ct(),
|
|
2700
|
-
r.setAttribute("id",
|
|
2703
|
+
var n = Ct(), g = Ct();
|
|
2704
|
+
r.setAttribute("id", g);
|
|
2701
2705
|
var y = z(t.t === 1 ? "linearGradient" : "radialGradient");
|
|
2702
2706
|
y.setAttribute("id", n), y.setAttribute("spreadMethod", "pad"), y.setAttribute("gradientUnits", "userSpaceOnUse"), a = t.g.k.k[0].s ? t.g.k.k[0].s.length : t.g.k.k.length;
|
|
2703
2707
|
var o = this.stops;
|
|
2704
2708
|
for (i = 4 * t.g.p; i < a; i += 2) (s = z("stop")).setAttribute("stop-color", "rgb(255,255,255)"), y.appendChild(s), o.push(s);
|
|
2705
|
-
h.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + dt() + "#" + n + ")"), t.ty === "gs" && (h.setAttribute("stroke-linecap", bs[t.lc || 2]), h.setAttribute("stroke-linejoin", _s[t.lj || 2]), t.lj === 1 && h.setAttribute("stroke-miterlimit", t.ml)), this.of = y, this.ms = r, this.ost = o, this.maskId =
|
|
2709
|
+
h.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + dt() + "#" + n + ")"), t.ty === "gs" && (h.setAttribute("stroke-linecap", bs[t.lc || 2]), h.setAttribute("stroke-linejoin", _s[t.lj || 2]), t.lj === 1 && h.setAttribute("stroke-miterlimit", t.ml)), this.of = y, this.ms = r, this.ost = o, this.maskId = g, e.msElem = h;
|
|
2706
2710
|
}
|
|
2707
2711
|
}, W([ut], be), W([be, ut], Ci);
|
|
2708
2712
|
var xi = function(t, e, s, i) {
|
|
2709
2713
|
if (e === 0) return "";
|
|
2710
|
-
var a, r = t.o, h = t.i, n = t.v,
|
|
2711
|
-
for (a = 1; a < e; a += 1)
|
|
2712
|
-
return s && e && (
|
|
2714
|
+
var a, r = t.o, h = t.i, n = t.v, g = " M" + i.applyToPointStringified(n[0][0], n[0][1]);
|
|
2715
|
+
for (a = 1; a < e; a += 1) g += " C" + i.applyToPointStringified(r[a - 1][0], r[a - 1][1]) + " " + i.applyToPointStringified(h[a][0], h[a][1]) + " " + i.applyToPointStringified(n[a][0], n[a][1]);
|
|
2716
|
+
return s && e && (g += " C" + i.applyToPointStringified(r[a - 1][0], r[a - 1][1]) + " " + i.applyToPointStringified(h[0][0], h[0][1]) + " " + i.applyToPointStringified(n[0][0], n[0][1]), g += "z"), g;
|
|
2713
2717
|
}, ia = function() {
|
|
2714
2718
|
var t = new st(), e = new st();
|
|
2715
2719
|
function s(y, o, d) {
|
|
@@ -2718,17 +2722,17 @@ var As = { exports: {} };
|
|
|
2718
2722
|
function i() {
|
|
2719
2723
|
}
|
|
2720
2724
|
function a(y, o, d) {
|
|
2721
|
-
var c,
|
|
2722
|
-
for (u = 0; u <
|
|
2723
|
-
if (
|
|
2724
|
-
for (
|
|
2725
|
-
if (
|
|
2726
|
-
} else
|
|
2727
|
-
if (
|
|
2728
|
-
for (l = "", c = 0; c <
|
|
2725
|
+
var c, m, l, f, p, u, v, k, C, A, F = o.styles.length, I = o.lvl;
|
|
2726
|
+
for (u = 0; u < F; u += 1) {
|
|
2727
|
+
if (f = o.sh._mdf || d, o.styles[u].lvl < I) {
|
|
2728
|
+
for (k = e.reset(), C = I - o.styles[u].lvl, A = o.transformers.length - 1; !f && C > 0; ) f = o.transformers[A].mProps._mdf || f, C -= 1, A -= 1;
|
|
2729
|
+
if (f) for (C = I - o.styles[u].lvl, A = o.transformers.length - 1; C > 0; ) k.multiply(o.transformers[A].mProps.v), C -= 1, A -= 1;
|
|
2730
|
+
} else k = t;
|
|
2731
|
+
if (m = (v = o.sh.paths)._length, f) {
|
|
2732
|
+
for (l = "", c = 0; c < m; c += 1) (p = v.shapes[c]) && p._length && (l += xi(p, p._length, p.c, k));
|
|
2729
2733
|
o.caches[u] = l;
|
|
2730
2734
|
} else l = o.caches[u];
|
|
2731
|
-
o.styles[u].d += y.hd === !0 ? "" : l, o.styles[u]._mdf =
|
|
2735
|
+
o.styles[u].d += y.hd === !0 ? "" : l, o.styles[u]._mdf = f || o.styles[u]._mdf;
|
|
2732
2736
|
}
|
|
2733
2737
|
}
|
|
2734
2738
|
function r(y, o, d) {
|
|
@@ -2736,39 +2740,39 @@ var As = { exports: {} };
|
|
|
2736
2740
|
(o.c._mdf || d) && c.pElem.setAttribute("fill", "rgb(" + gt(o.c.v[0]) + "," + gt(o.c.v[1]) + "," + gt(o.c.v[2]) + ")"), (o.o._mdf || d) && c.pElem.setAttribute("fill-opacity", o.o.v);
|
|
2737
2741
|
}
|
|
2738
2742
|
function h(y, o, d) {
|
|
2739
|
-
n(y, o, d),
|
|
2743
|
+
n(y, o, d), g(y, o, d);
|
|
2740
2744
|
}
|
|
2741
2745
|
function n(y, o, d) {
|
|
2742
|
-
var c,
|
|
2746
|
+
var c, m, l, f, p, u = o.gf, v = o.g._hasOpacity, k = o.s.v, C = o.e.v;
|
|
2743
2747
|
if (o.o._mdf || d) {
|
|
2744
2748
|
var A = y.ty === "gf" ? "fill-opacity" : "stroke-opacity";
|
|
2745
2749
|
o.style.pElem.setAttribute(A, o.o.v);
|
|
2746
2750
|
}
|
|
2747
2751
|
if (o.s._mdf || d) {
|
|
2748
|
-
var
|
|
2749
|
-
u.setAttribute(
|
|
2752
|
+
var F = y.t === 1 ? "x1" : "cx", I = F === "x1" ? "y1" : "cy";
|
|
2753
|
+
u.setAttribute(F, k[0]), u.setAttribute(I, k[1]), v && !o.g._collapsable && (o.of.setAttribute(F, k[0]), o.of.setAttribute(I, k[1]));
|
|
2750
2754
|
}
|
|
2751
2755
|
if (o.g._cmdf || d) {
|
|
2752
2756
|
c = o.cst;
|
|
2753
|
-
var
|
|
2754
|
-
for (l = c.length,
|
|
2757
|
+
var x = o.g.c;
|
|
2758
|
+
for (l = c.length, m = 0; m < l; m += 1) (f = c[m]).setAttribute("offset", x[4 * m] + "%"), f.setAttribute("stop-color", "rgb(" + x[4 * m + 1] + "," + x[4 * m + 2] + "," + x[4 * m + 3] + ")");
|
|
2755
2759
|
}
|
|
2756
2760
|
if (v && (o.g._omdf || d)) {
|
|
2757
|
-
var
|
|
2758
|
-
for (l = (c = o.g._collapsable ? o.cst : o.ost).length,
|
|
2761
|
+
var T = o.g.o;
|
|
2762
|
+
for (l = (c = o.g._collapsable ? o.cst : o.ost).length, m = 0; m < l; m += 1) f = c[m], o.g._collapsable || f.setAttribute("offset", T[2 * m] + "%"), f.setAttribute("stop-opacity", T[2 * m + 1]);
|
|
2759
2763
|
}
|
|
2760
2764
|
if (y.t === 1) (o.e._mdf || d) && (u.setAttribute("x2", C[0]), u.setAttribute("y2", C[1]), v && !o.g._collapsable && (o.of.setAttribute("x2", C[0]), o.of.setAttribute("y2", C[1])));
|
|
2761
|
-
else if ((o.s._mdf || o.e._mdf || d) && (
|
|
2762
|
-
|
|
2763
|
-
var M = Math.atan2(C[1] -
|
|
2765
|
+
else if ((o.s._mdf || o.e._mdf || d) && (p = Math.sqrt(Math.pow(k[0] - C[0], 2) + Math.pow(k[1] - C[1], 2)), u.setAttribute("r", p), v && !o.g._collapsable && o.of.setAttribute("r", p)), o.s._mdf || o.e._mdf || o.h._mdf || o.a._mdf || d) {
|
|
2766
|
+
p || (p = Math.sqrt(Math.pow(k[0] - C[0], 2) + Math.pow(k[1] - C[1], 2)));
|
|
2767
|
+
var M = Math.atan2(C[1] - k[1], C[0] - k[0]), _ = o.h.v;
|
|
2764
2768
|
_ >= 1 ? _ = 0.99 : _ <= -1 && (_ = -0.99);
|
|
2765
|
-
var D =
|
|
2769
|
+
var D = p * _, w = Math.cos(M + o.a.v) * D + k[0], P = Math.sin(M + o.a.v) * D + k[1];
|
|
2766
2770
|
u.setAttribute("fx", w), u.setAttribute("fy", P), v && !o.g._collapsable && (o.of.setAttribute("fx", w), o.of.setAttribute("fy", P));
|
|
2767
2771
|
}
|
|
2768
2772
|
}
|
|
2769
|
-
function
|
|
2770
|
-
var c = o.style,
|
|
2771
|
-
|
|
2773
|
+
function g(y, o, d) {
|
|
2774
|
+
var c = o.style, m = o.d;
|
|
2775
|
+
m && (m._mdf || d) && m.dashStr && (c.pElem.setAttribute("stroke-dasharray", m.dashStr), c.pElem.setAttribute("stroke-dashoffset", m.dashoffset[0])), o.c && (o.c._mdf || d) && c.pElem.setAttribute("stroke", "rgb(" + gt(o.c.v[0]) + "," + gt(o.c.v[1]) + "," + gt(o.c.v[2]) + ")"), (o.o._mdf || d) && c.pElem.setAttribute("stroke-opacity", o.o.v), (o.w._mdf || d) && (c.pElem.setAttribute("stroke-width", o.w.v), c.msElem && c.msElem.setAttribute("stroke-width", o.w.v));
|
|
2772
2776
|
}
|
|
2773
2777
|
return { createRenderFunction: function(y) {
|
|
2774
2778
|
switch (y.ty) {
|
|
@@ -2779,7 +2783,7 @@ var As = { exports: {} };
|
|
|
2779
2783
|
case "gs":
|
|
2780
2784
|
return h;
|
|
2781
2785
|
case "st":
|
|
2782
|
-
return
|
|
2786
|
+
return g;
|
|
2783
2787
|
case "sh":
|
|
2784
2788
|
case "el":
|
|
2785
2789
|
case "rc":
|
|
@@ -2838,7 +2842,7 @@ var As = { exports: {} };
|
|
|
2838
2842
|
this.animatedContents.push({ fn: ia.createRenderFunction(t), element: e, data: t });
|
|
2839
2843
|
}, Z.prototype.setElementStyles = function(t) {
|
|
2840
2844
|
var e, s = t.styles, i = this.stylesList.length;
|
|
2841
|
-
for (e = 0; e < i; e += 1) this.stylesList[e].closed || s.push(this.stylesList[e]);
|
|
2845
|
+
for (e = 0; e < i; e += 1) s.indexOf(this.stylesList[e]) !== -1 || this.stylesList[e].closed || s.push(this.stylesList[e]);
|
|
2842
2846
|
}, Z.prototype.reloadShapes = function() {
|
|
2843
2847
|
var t;
|
|
2844
2848
|
this._isFirstFrame = !0;
|
|
@@ -2847,18 +2851,18 @@ var As = { exports: {} };
|
|
|
2847
2851
|
for (this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes(), e = this.dynamicProperties.length, t = 0; t < e; t += 1) this.dynamicProperties[t].getValue();
|
|
2848
2852
|
this.renderModifiers();
|
|
2849
2853
|
}, Z.prototype.searchShapes = function(t, e, s, i, a, r, h) {
|
|
2850
|
-
var n,
|
|
2854
|
+
var n, g, y, o, d, c, m = [].concat(r), l = t.length - 1, f = [], p = [];
|
|
2851
2855
|
for (n = l; n >= 0; n -= 1) {
|
|
2852
|
-
if ((c = this.searchProcessedElement(t[n])) ? e[n] = s[c - 1] : t[n]._render = h, t[n].ty === "fl" || t[n].ty === "st" || t[n].ty === "gf" || t[n].ty === "gs" || t[n].ty === "no") c ? e[n].style.closed =
|
|
2856
|
+
if ((c = this.searchProcessedElement(t[n])) ? e[n] = s[c - 1] : t[n]._render = h, t[n].ty === "fl" || t[n].ty === "st" || t[n].ty === "gf" || t[n].ty === "gs" || t[n].ty === "no") c ? e[n].style.closed = t[n].hd : e[n] = this.createStyleElement(t[n], a), t[n]._render && e[n].style.pElem.parentNode !== i && i.appendChild(e[n].style.pElem), f.push(e[n].style);
|
|
2853
2857
|
else if (t[n].ty === "gr") {
|
|
2854
|
-
if (c) for (y = e[n].it.length,
|
|
2858
|
+
if (c) for (y = e[n].it.length, g = 0; g < y; g += 1) e[n].prevViewData[g] = e[n].it[g];
|
|
2855
2859
|
else e[n] = this.createGroupElement(t[n]);
|
|
2856
|
-
this.searchShapes(t[n].it, e[n].it, e[n].prevViewData, e[n].gr, a + 1,
|
|
2857
|
-
} else t[n].ty === "tr" ? (c || (e[n] = this.createTransformElement(t[n], i)), o = e[n].transform,
|
|
2860
|
+
this.searchShapes(t[n].it, e[n].it, e[n].prevViewData, e[n].gr, a + 1, m, h), t[n]._render && e[n].gr.parentNode !== i && i.appendChild(e[n].gr);
|
|
2861
|
+
} else t[n].ty === "tr" ? (c || (e[n] = this.createTransformElement(t[n], i)), o = e[n].transform, m.push(o)) : t[n].ty === "sh" || t[n].ty === "rc" || t[n].ty === "el" || t[n].ty === "sr" ? (c || (e[n] = this.createShapeElement(t[n], m, a)), this.setElementStyles(e[n])) : t[n].ty === "tm" || t[n].ty === "rd" || t[n].ty === "ms" || t[n].ty === "pb" || t[n].ty === "zz" || t[n].ty === "op" ? (c ? (d = e[n]).closed = !1 : ((d = zt.getModifier(t[n].ty)).init(this, t[n]), e[n] = d, this.shapeModifiers.push(d)), p.push(d)) : t[n].ty === "rp" && (c ? (d = e[n]).closed = !0 : (d = zt.getModifier(t[n].ty), e[n] = d, d.init(this, t, n, e), this.shapeModifiers.push(d), h = !1), p.push(d));
|
|
2858
2862
|
this.addProcessedElement(t[n], n + 1);
|
|
2859
2863
|
}
|
|
2860
|
-
for (l = p.length, n = 0; n < l; n += 1) p[n].closed = !0;
|
|
2861
2864
|
for (l = f.length, n = 0; n < l; n += 1) f[n].closed = !0;
|
|
2865
|
+
for (l = p.length, n = 0; n < l; n += 1) p[n].closed = !0;
|
|
2862
2866
|
}, Z.prototype.renderInnerContent = function() {
|
|
2863
2867
|
var t;
|
|
2864
2868
|
this.renderModifiers();
|
|
@@ -2902,33 +2906,33 @@ var As = { exports: {} };
|
|
|
2902
2906
|
for (var t = this.data.d.k, e = this.elem.comp.renderedFrame, s = 0, i = t.length; s <= i - 1 && !(s === i - 1 || t[s + 1].t > e); ) s += 1;
|
|
2903
2907
|
return this.keysIndex !== s && (this.keysIndex = s), this.data.d.k[this.keysIndex].s;
|
|
2904
2908
|
}, vt.prototype.buildFinalText = function(t) {
|
|
2905
|
-
for (var e, s, i = [], a = 0, r = t.length, h = !1, n = !1,
|
|
2909
|
+
for (var e, s, i = [], a = 0, r = t.length, h = !1, n = !1, g = ""; a < r; ) h = n, n = !1, e = t.charCodeAt(a), g = t.charAt(a), ne.isCombinedCharacter(e) ? h = !0 : e >= 55296 && e <= 56319 ? ne.isRegionalFlag(t, a) ? g = t.substr(a, 14) : (s = t.charCodeAt(a + 1)) >= 56320 && s <= 57343 && (ne.isModifier(e, s) ? (g = t.substr(a, 2), h = !0) : g = ne.isFlagEmoji(t.substr(a, 4)) ? t.substr(a, 4) : t.substr(a, 2)) : e > 56319 ? (s = t.charCodeAt(a + 1), ne.isVariationSelector(e) && (h = !0)) : ne.isZeroWidthJoiner(e) && (h = !0, n = !0), h ? (i[i.length - 1] += g, h = !1) : i.push(g), a += g.length;
|
|
2906
2910
|
return i;
|
|
2907
2911
|
}, vt.prototype.completeTextData = function(t) {
|
|
2908
2912
|
t.__complete = !0;
|
|
2909
|
-
var e, s, i, a, r, h, n,
|
|
2913
|
+
var e, s, i, a, r, h, n, g = this.elem.globalData.fontManager, y = this.data, o = [], d = 0, c = y.m.g, m = 0, l = 0, f = 0, p = [], u = 0, v = 0, k = g.getFontByName(t.f), C = 0, A = fi(k);
|
|
2910
2914
|
t.fWeight = A.weight, t.fStyle = A.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), s = t.finalText.length, t.finalLineHeight = t.lh;
|
|
2911
|
-
var
|
|
2912
|
-
if (t.sz) for (var
|
|
2913
|
-
|
|
2915
|
+
var F, I = t.tr / 1e3 * t.finalSize;
|
|
2916
|
+
if (t.sz) for (var x, T, M = !0, _ = t.sz[0], D = t.sz[1]; M; ) {
|
|
2917
|
+
x = 0, u = 0, s = (T = this.buildFinalText(t.t)).length, I = t.tr / 1e3 * t.finalSize;
|
|
2914
2918
|
var w = -1;
|
|
2915
|
-
for (e = 0; e < s; e += 1)
|
|
2916
|
-
|
|
2919
|
+
for (e = 0; e < s; e += 1) F = T[e].charCodeAt(0), i = !1, T[e] === " " ? w = e : F !== 13 && F !== 3 || (u = 0, i = !0, x += t.finalLineHeight || 1.2 * t.finalSize), g.chars ? (n = g.getCharData(T[e], k.fStyle, k.fFamily), C = i ? 0 : n.w * t.finalSize / 100) : C = g.measureText(T[e], t.f, t.finalSize), u + C > _ && T[e] !== " " ? (w === -1 ? s += 1 : e = w, x += t.finalLineHeight || 1.2 * t.finalSize, T.splice(e, w === e ? 1 : 0, "\r"), w = -1, u = 0) : (u += C, u += I);
|
|
2920
|
+
x += k.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && D < x ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = T, s = t.finalText.length, M = !1);
|
|
2917
2921
|
}
|
|
2918
2922
|
u = -I, C = 0;
|
|
2919
2923
|
var P, V = 0;
|
|
2920
|
-
for (e = 0; e < s; e += 1) if (i = !1, (
|
|
2921
|
-
if (
|
|
2922
|
-
for (a !== "" && a !== " " || (
|
|
2923
|
-
d += 1,
|
|
2924
|
+
for (e = 0; e < s; e += 1) if (i = !1, (F = (P = t.finalText[e]).charCodeAt(0)) === 13 || F === 3 ? (V = 0, p.push(u), v = u > v ? u : v, u = -2 * I, a = "", i = !0, f += 1) : a = P, g.chars ? (n = g.getCharData(P, k.fStyle, g.getFontByName(t.f).fFamily), C = i ? 0 : n.w * t.finalSize / 100) : C = g.measureText(a, t.f, t.finalSize), P === " " ? V += C + I : (u += C + I + V, V = 0), o.push({ l: C, an: C, add: m, n: i, anIndexes: [], val: a, line: f, animatorJustifyOffset: 0 }), c == 2) {
|
|
2925
|
+
if (m += C, a === "" || a === " " || e === s - 1) {
|
|
2926
|
+
for (a !== "" && a !== " " || (m -= C); l <= e; ) o[l].an = m, o[l].ind = d, o[l].extra = C, l += 1;
|
|
2927
|
+
d += 1, m = 0;
|
|
2924
2928
|
}
|
|
2925
2929
|
} else if (c == 3) {
|
|
2926
|
-
if (
|
|
2927
|
-
for (a === "" && (
|
|
2928
|
-
|
|
2930
|
+
if (m += C, a === "" || e === s - 1) {
|
|
2931
|
+
for (a === "" && (m -= C); l <= e; ) o[l].an = m, o[l].ind = d, o[l].extra = C, l += 1;
|
|
2932
|
+
m = 0, d += 1;
|
|
2929
2933
|
}
|
|
2930
2934
|
} else o[d].ind = d, o[d].extra = 0, d += 1;
|
|
2931
|
-
if (t.l = o, v = u > v ? u : v,
|
|
2935
|
+
if (t.l = o, v = u > v ? u : v, p.push(u), t.sz) t.boxWidth = t.sz[0], t.justifyOffset = 0;
|
|
2932
2936
|
else switch (t.boxWidth = v, t.j) {
|
|
2933
2937
|
case 1:
|
|
2934
2938
|
t.justifyOffset = -t.boxWidth;
|
|
@@ -2939,7 +2943,7 @@ var As = { exports: {} };
|
|
|
2939
2943
|
default:
|
|
2940
2944
|
t.justifyOffset = 0;
|
|
2941
2945
|
}
|
|
2942
|
-
t.lineWidths =
|
|
2946
|
+
t.lineWidths = p;
|
|
2943
2947
|
var O, B, b, S, L = y.a;
|
|
2944
2948
|
h = L.length;
|
|
2945
2949
|
var N = [];
|
|
@@ -2949,7 +2953,7 @@ var As = { exports: {} };
|
|
|
2949
2953
|
var U, $ = -1;
|
|
2950
2954
|
if (O.s.rn === 1) for (e = 0; e < s; e += 1) $ != (B = o[e]).anIndexes[r] && ($ = B.anIndexes[r], U = N.splice(Math.floor(Math.random() * N.length), 1)[0]), B.anIndexes[r] = U;
|
|
2951
2955
|
}
|
|
2952
|
-
t.yOffset = t.finalLineHeight || 1.2 * t.finalSize, t.ls = t.ls || 0, t.ascent =
|
|
2956
|
+
t.yOffset = t.finalLineHeight || 1.2 * t.finalSize, t.ls = t.ls || 0, t.ascent = k.ascent * t.finalSize / 100;
|
|
2953
2957
|
}, vt.prototype.updateDocumentData = function(t, e) {
|
|
2954
2958
|
e = e === void 0 ? this.keysIndex : e;
|
|
2955
2959
|
var s = this.copyData({}, this.data.d.k[e].s);
|
|
@@ -2969,20 +2973,20 @@ var As = { exports: {} };
|
|
|
2969
2973
|
}
|
|
2970
2974
|
return i.prototype = { getMult: function(a) {
|
|
2971
2975
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
2972
|
-
var r = 0, h = 0, n = 1,
|
|
2973
|
-
this.ne.v > 0 ? r = this.ne.v / 100 : h = -this.ne.v / 100, this.xe.v > 0 ? n = 1 - this.xe.v / 100 :
|
|
2974
|
-
var y = ke.getBezierEasing(r, h, n,
|
|
2975
|
-
if (
|
|
2976
|
-
else if (
|
|
2977
|
-
else if (
|
|
2978
|
-
else if (
|
|
2976
|
+
var r = 0, h = 0, n = 1, g = 1;
|
|
2977
|
+
this.ne.v > 0 ? r = this.ne.v / 100 : h = -this.ne.v / 100, this.xe.v > 0 ? n = 1 - this.xe.v / 100 : g = 1 + this.xe.v / 100;
|
|
2978
|
+
var y = ke.getBezierEasing(r, h, n, g).get, o = 0, d = this.finalS, c = this.finalE, m = this.data.sh;
|
|
2979
|
+
if (m === 2) o = y(o = c === d ? a >= c ? 1 : 0 : t(0, e(0.5 / (c - d) + (a - d) / (c - d), 1)));
|
|
2980
|
+
else if (m === 3) o = y(o = c === d ? a >= c ? 0 : 1 : 1 - t(0, e(0.5 / (c - d) + (a - d) / (c - d), 1)));
|
|
2981
|
+
else if (m === 4) c === d ? o = 0 : (o = t(0, e(0.5 / (c - d) + (a - d) / (c - d), 1))) < 0.5 ? o *= 2 : o = 1 - 2 * (o - 0.5), o = y(o);
|
|
2982
|
+
else if (m === 5) {
|
|
2979
2983
|
if (c === d) o = 0;
|
|
2980
2984
|
else {
|
|
2981
|
-
var l = c - d,
|
|
2982
|
-
o = Math.sqrt(1 -
|
|
2985
|
+
var l = c - d, f = -l / 2 + (a = e(t(0, a + 0.5 - d), c - d)), p = l / 2;
|
|
2986
|
+
o = Math.sqrt(1 - f * f / (p * p));
|
|
2983
2987
|
}
|
|
2984
2988
|
o = y(o);
|
|
2985
|
-
} else
|
|
2989
|
+
} else m === 6 ? (c === d ? o = 0 : (a = e(t(0, a + 0.5 - d), c - d), o = (1 + Math.cos(Math.PI + 2 * Math.PI * a / (c - d))) / 2), o = y(o)) : (a >= s(d) && (o = t(0, e(a - d < 0 ? e(c, 1) - (d - a) : c - a, 1))), o = y(o));
|
|
2986
2990
|
if (this.sm.v !== 100) {
|
|
2987
2991
|
var u = 0.01 * this.sm.v;
|
|
2988
2992
|
u === 0 && (u = 1e-8);
|
|
@@ -2992,12 +2996,12 @@ var As = { exports: {} };
|
|
|
2992
2996
|
return o * this.a.v;
|
|
2993
2997
|
}, getValue: function(a) {
|
|
2994
2998
|
this.iterateDynamicProperties(), this._mdf = a || this._mdf, this._currentTextLength = this.elem.textProperty.currentData.l.length || 0, a && this.data.r === 2 && (this.e.v = this._currentTextLength);
|
|
2995
|
-
var r = this.data.r === 2 ? 1 : 100 / this.data.totalChars, h = this.o.v / r, n = this.s.v / r + h,
|
|
2996
|
-
if (n >
|
|
2999
|
+
var r = this.data.r === 2 ? 1 : 100 / this.data.totalChars, h = this.o.v / r, n = this.s.v / r + h, g = this.e.v / r + h;
|
|
3000
|
+
if (n > g) {
|
|
2997
3001
|
var y = n;
|
|
2998
|
-
n =
|
|
3002
|
+
n = g, g = y;
|
|
2999
3003
|
}
|
|
3000
|
-
this.finalS = n, this.finalE =
|
|
3004
|
+
this.finalS = n, this.finalE = g;
|
|
3001
3005
|
} }, W([ut], i), { getTextSelectorProp: function(a, r, h) {
|
|
3002
3006
|
return new i(a, r);
|
|
3003
3007
|
} };
|
|
@@ -3018,19 +3022,19 @@ var As = { exports: {} };
|
|
|
3018
3022
|
}, he.prototype.getMeasures = function(t, e) {
|
|
3019
3023
|
if (this.lettersChangedFlag = e, this._mdf || this._isFirstFrame || e || this._hasMaskedPath && this._pathData.m._mdf) {
|
|
3020
3024
|
this._isFirstFrame = !1;
|
|
3021
|
-
var s, i, a, r, h, n,
|
|
3025
|
+
var s, i, a, r, h, n, g, y, o, d, c, m, l, f, p, u, v, k, C, A = this._moreOptions.alignment.v, F = this._animatorsData, I = this._textData, x = this.mHelper, T = this._renderType, M = this.renderedLetters.length, _ = t.l;
|
|
3022
3026
|
if (this._hasMaskedPath) {
|
|
3023
3027
|
if (C = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
3024
3028
|
var D, w = C.v;
|
|
3025
3029
|
for (this._pathData.r.v && (w = w.reverse()), h = { tLength: 0, segments: [] }, r = w._length - 1, u = 0, a = 0; a < r; a += 1) D = Rt.buildBezierData(w.v[a], w.v[a + 1], [w.o[a][0] - w.v[a][0], w.o[a][1] - w.v[a][1]], [w.i[a + 1][0] - w.v[a + 1][0], w.i[a + 1][1] - w.v[a + 1][1]]), h.tLength += D.segmentLength, h.segments.push(D), u += D.segmentLength;
|
|
3026
3030
|
a = r, C.v.c && (D = Rt.buildBezierData(w.v[a], w.v[0], [w.o[a][0] - w.v[a][0], w.o[a][1] - w.v[a][1]], [w.i[0][0] - w.v[0][0], w.i[0][1] - w.v[0][1]]), h.tLength += D.segmentLength, h.segments.push(D), u += D.segmentLength), this._pathData.pi = h;
|
|
3027
3031
|
}
|
|
3028
|
-
if (h = this._pathData.pi, n = this._pathData.f.v, c = 0, d = 1, y = 0, o = !0,
|
|
3029
|
-
|
|
3032
|
+
if (h = this._pathData.pi, n = this._pathData.f.v, c = 0, d = 1, y = 0, o = !0, f = h.segments, n < 0 && C.v.c) for (h.tLength < Math.abs(n) && (n = -Math.abs(n) % h.tLength), d = (l = f[c = f.length - 1].points).length - 1; n < 0; ) n += l[d].partialLength, (d -= 1) < 0 && (d = (l = f[c -= 1].points).length - 1);
|
|
3033
|
+
m = (l = f[c].points)[d - 1], p = (g = l[d]).partialLength;
|
|
3030
3034
|
}
|
|
3031
3035
|
r = _.length, s = 0, i = 0;
|
|
3032
3036
|
var P, V, O, B, b, S = 1.2 * t.finalSize * 0.714, L = !0;
|
|
3033
|
-
O =
|
|
3037
|
+
O = F.length;
|
|
3034
3038
|
var N, U, $, Q, J, tt, j, Y, ct, bt, rt, nt, at = -1, q = n, Ht = c, Gt = d, jt = -1, _t = "", kt = this.defaultPropsArray;
|
|
3035
3039
|
if (t.j === 2 || t.j === 1) {
|
|
3036
3040
|
var ot = 0, St = 0, ee = t.j === 2 ? -0.5 : -1, Et = 0, se = !0;
|
|
@@ -3038,13 +3042,13 @@ var As = { exports: {} };
|
|
|
3038
3042
|
for (ot && (ot += St); Et < a; ) _[Et].animatorJustifyOffset = ot, Et += 1;
|
|
3039
3043
|
ot = 0, se = !0;
|
|
3040
3044
|
} else {
|
|
3041
|
-
for (V = 0; V < O; V += 1) (P =
|
|
3045
|
+
for (V = 0; V < O; V += 1) (P = F[V].a).t.propType && (se && t.j === 2 && (St += P.t.v * ee), (b = F[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars)).length ? ot += P.t.v * b[0] * ee : ot += P.t.v * b * ee);
|
|
3042
3046
|
se = !1;
|
|
3043
3047
|
}
|
|
3044
3048
|
for (ot && (ot += St); Et < a; ) _[Et].animatorJustifyOffset = ot, Et += 1;
|
|
3045
3049
|
}
|
|
3046
3050
|
for (a = 0; a < r; a += 1) {
|
|
3047
|
-
if (
|
|
3051
|
+
if (x.reset(), Q = 1, _[a].n) s = 0, i += t.yOffset, i += L ? 1 : 0, n = q, L = !1, this._hasMaskedPath && (d = Gt, m = (l = f[c = Ht].points)[d - 1], p = (g = l[d]).partialLength, y = 0), _t = "", rt = "", ct = "", nt = "", kt = this.defaultPropsArray;
|
|
3048
3052
|
else {
|
|
3049
3053
|
if (this._hasMaskedPath) {
|
|
3050
3054
|
if (jt !== _[a].line) {
|
|
@@ -3059,39 +3063,39 @@ var As = { exports: {} };
|
|
|
3059
3063
|
}
|
|
3060
3064
|
at !== _[a].ind && (_[at] && (n += _[at].extra), n += _[a].an / 2, at = _[a].ind), n += A[0] * _[a].an * 5e-3;
|
|
3061
3065
|
var Lt = 0;
|
|
3062
|
-
for (V = 0; V < O; V += 1) (P =
|
|
3063
|
-
for (o = !0, this._pathData.a.v && (n = 0.5 * _[0].an + (u - this._pathData.f.v - 0.5 * _[0].an - 0.5 * _[_.length - 1].an) * at / (r - 1), n += this._pathData.f.v); o; ) y +
|
|
3064
|
-
N = _[a].an / 2 - _[a].add,
|
|
3065
|
-
} else N = _[a].an / 2 - _[a].add,
|
|
3066
|
-
for (V = 0; V < O; V += 1) (P =
|
|
3067
|
-
for (t.strokeWidthAnim && (tt = t.sw || 0), t.strokeColorAnim && (J = t.sc ? [t.sc[0], t.sc[1], t.sc[2]] : [0, 0, 0]), t.fillColorAnim && t.fc && (j = [t.fc[0], t.fc[1], t.fc[2]]), V = 0; V < O; V += 1) (P =
|
|
3068
|
-
for (V = 0; V < O; V += 1) (P =
|
|
3066
|
+
for (V = 0; V < O; V += 1) (P = F[V].a).p.propType && ((b = F[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars)).length ? Lt += P.p.v[0] * b[0] : Lt += P.p.v[0] * b), P.a.propType && ((b = F[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars)).length ? Lt += P.a.v[0] * b[0] : Lt += P.a.v[0] * b);
|
|
3067
|
+
for (o = !0, this._pathData.a.v && (n = 0.5 * _[0].an + (u - this._pathData.f.v - 0.5 * _[0].an - 0.5 * _[_.length - 1].an) * at / (r - 1), n += this._pathData.f.v); o; ) y + p >= n + Lt || !l ? (v = (n + Lt - y) / g.partialLength, U = m.point[0] + (g.point[0] - m.point[0]) * v, $ = m.point[1] + (g.point[1] - m.point[1]) * v, x.translate(-A[0] * _[a].an * 5e-3, -A[1] * S * 0.01), o = !1) : l && (y += g.partialLength, (d += 1) >= l.length && (d = 0, f[c += 1] ? l = f[c].points : C.v.c ? (d = 0, l = f[c = 0].points) : (y -= g.partialLength, l = null)), l && (m = g, p = (g = l[d]).partialLength));
|
|
3068
|
+
N = _[a].an / 2 - _[a].add, x.translate(-N, 0, 0);
|
|
3069
|
+
} else N = _[a].an / 2 - _[a].add, x.translate(-N, 0, 0), x.translate(-A[0] * _[a].an * 5e-3, -A[1] * S * 0.01, 0);
|
|
3070
|
+
for (V = 0; V < O; V += 1) (P = F[V].a).t.propType && (b = F[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars), s === 0 && t.j === 0 || (this._hasMaskedPath ? b.length ? n += P.t.v * b[0] : n += P.t.v * b : b.length ? s += P.t.v * b[0] : s += P.t.v * b));
|
|
3071
|
+
for (t.strokeWidthAnim && (tt = t.sw || 0), t.strokeColorAnim && (J = t.sc ? [t.sc[0], t.sc[1], t.sc[2]] : [0, 0, 0]), t.fillColorAnim && t.fc && (j = [t.fc[0], t.fc[1], t.fc[2]]), V = 0; V < O; V += 1) (P = F[V].a).a.propType && ((b = F[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars)).length ? x.translate(-P.a.v[0] * b[0], -P.a.v[1] * b[1], P.a.v[2] * b[2]) : x.translate(-P.a.v[0] * b, -P.a.v[1] * b, P.a.v[2] * b));
|
|
3072
|
+
for (V = 0; V < O; V += 1) (P = F[V].a).s.propType && ((b = F[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars)).length ? x.scale(1 + (P.s.v[0] - 1) * b[0], 1 + (P.s.v[1] - 1) * b[1], 1) : x.scale(1 + (P.s.v[0] - 1) * b, 1 + (P.s.v[1] - 1) * b, 1));
|
|
3069
3073
|
for (V = 0; V < O; V += 1) {
|
|
3070
|
-
if (P =
|
|
3074
|
+
if (P = F[V].a, b = F[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars), P.sk.propType && (b.length ? x.skewFromAxis(-P.sk.v * b[0], P.sa.v * b[1]) : x.skewFromAxis(-P.sk.v * b, P.sa.v * b)), P.r.propType && (b.length ? x.rotateZ(-P.r.v * b[2]) : x.rotateZ(-P.r.v * b)), P.ry.propType && (b.length ? x.rotateY(P.ry.v * b[1]) : x.rotateY(P.ry.v * b)), P.rx.propType && (b.length ? x.rotateX(P.rx.v * b[0]) : x.rotateX(P.rx.v * b)), P.o.propType && (b.length ? Q += (P.o.v * b[0] - Q) * b[0] : Q += (P.o.v * b - Q) * b), t.strokeWidthAnim && P.sw.propType && (b.length ? tt += P.sw.v * b[0] : tt += P.sw.v * b), t.strokeColorAnim && P.sc.propType) for (Y = 0; Y < 3; Y += 1) b.length ? J[Y] += (P.sc.v[Y] - J[Y]) * b[0] : J[Y] += (P.sc.v[Y] - J[Y]) * b;
|
|
3071
3075
|
if (t.fillColorAnim && t.fc) {
|
|
3072
3076
|
if (P.fc.propType) for (Y = 0; Y < 3; Y += 1) b.length ? j[Y] += (P.fc.v[Y] - j[Y]) * b[0] : j[Y] += (P.fc.v[Y] - j[Y]) * b;
|
|
3073
3077
|
P.fh.propType && (j = b.length ? qs(j, P.fh.v * b[0]) : qs(j, P.fh.v * b)), P.fs.propType && (j = b.length ? Os(j, P.fs.v * b[0]) : Os(j, P.fs.v * b)), P.fb.propType && (j = b.length ? Ns(j, P.fb.v * b[0]) : Ns(j, P.fb.v * b));
|
|
3074
3078
|
}
|
|
3075
3079
|
}
|
|
3076
|
-
for (V = 0; V < O; V += 1) (P =
|
|
3080
|
+
for (V = 0; V < O; V += 1) (P = F[V].a).p.propType && (b = F[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars), this._hasMaskedPath ? b.length ? x.translate(0, P.p.v[1] * b[0], -P.p.v[2] * b[1]) : x.translate(0, P.p.v[1] * b, -P.p.v[2] * b) : b.length ? x.translate(P.p.v[0] * b[0], P.p.v[1] * b[1], -P.p.v[2] * b[2]) : x.translate(P.p.v[0] * b, P.p.v[1] * b, -P.p.v[2] * b));
|
|
3077
3081
|
if (t.strokeWidthAnim && (ct = tt < 0 ? 0 : tt), t.strokeColorAnim && (bt = "rgb(" + Math.round(255 * J[0]) + "," + Math.round(255 * J[1]) + "," + Math.round(255 * J[2]) + ")"), t.fillColorAnim && t.fc && (rt = "rgb(" + Math.round(255 * j[0]) + "," + Math.round(255 * j[1]) + "," + Math.round(255 * j[2]) + ")"), this._hasMaskedPath) {
|
|
3078
|
-
if (
|
|
3079
|
-
|
|
3080
|
-
var pe = 180 * Math.atan(
|
|
3081
|
-
|
|
3082
|
+
if (x.translate(0, -t.ls), x.translate(0, A[1] * S * 0.01 + i, 0), this._pathData.p.v) {
|
|
3083
|
+
k = (g.point[1] - m.point[1]) / (g.point[0] - m.point[0]);
|
|
3084
|
+
var pe = 180 * Math.atan(k) / Math.PI;
|
|
3085
|
+
g.point[0] < m.point[0] && (pe += 180), x.rotate(-pe * Math.PI / 180);
|
|
3082
3086
|
}
|
|
3083
|
-
|
|
3087
|
+
x.translate(U, $, 0), n -= A[0] * _[a].an * 5e-3, _[a + 1] && at !== _[a + 1].ind && (n += _[a].an / 2, n += 1e-3 * t.tr * t.finalSize);
|
|
3084
3088
|
} else {
|
|
3085
|
-
switch (
|
|
3089
|
+
switch (x.translate(s, i, 0), t.ps && x.translate(t.ps[0], t.ps[1] + t.ascent, 0), t.j) {
|
|
3086
3090
|
case 1:
|
|
3087
|
-
|
|
3091
|
+
x.translate(_[a].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[_[a].line]), 0, 0);
|
|
3088
3092
|
break;
|
|
3089
3093
|
case 2:
|
|
3090
|
-
|
|
3094
|
+
x.translate(_[a].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[_[a].line]) / 2, 0, 0);
|
|
3091
3095
|
}
|
|
3092
|
-
|
|
3096
|
+
x.translate(0, -t.ls), x.translate(N, 0, 0), x.translate(A[0] * _[a].an * 5e-3, A[1] * S * 0.01, 0), s += _[a].l + 1e-3 * t.tr * t.finalSize;
|
|
3093
3097
|
}
|
|
3094
|
-
|
|
3098
|
+
T === "html" ? _t = x.toCSS() : T === "svg" ? _t = x.to2dCSS() : kt = [x.props[0], x.props[1], x.props[2], x.props[3], x.props[4], x.props[5], x.props[6], x.props[7], x.props[8], x.props[9], x.props[10], x.props[11], x.props[12], x.props[13], x.props[14], x.props[15]], nt = Q;
|
|
3095
3099
|
}
|
|
3096
3100
|
M <= a ? (B = new xs(nt, ct, bt, rt, _t, kt), this.renderedLetters.push(B), M += 1, this.lettersChangedFlag = !0) : (B = this.renderedLetters[a], this.lettersChangedFlag = B.update(nt, ct, bt, rt, _t, kt) || this.lettersChangedFlag);
|
|
3097
3101
|
}
|
|
@@ -3158,8 +3162,8 @@ var As = { exports: {} };
|
|
|
3158
3162
|
s && this.svgElement.setAttribute("aria-labelledby", s);
|
|
3159
3163
|
var n = z("defs");
|
|
3160
3164
|
this.svgElement.appendChild(n);
|
|
3161
|
-
var
|
|
3162
|
-
this.svgElement.appendChild(
|
|
3165
|
+
var g = z("g");
|
|
3166
|
+
this.svgElement.appendChild(g), this.layerElement = g, this.renderConfig = { preserveAspectRatio: e && e.preserveAspectRatio || "xMidYMid meet", imagePreserveAspectRatio: e && e.imagePreserveAspectRatio || "xMidYMid slice", contentVisibility: e && e.contentVisibility || "visible", progressiveLoad: e && e.progressiveLoad || !1, hideOnTransparent: !(e && e.hideOnTransparent === !1), viewBoxOnly: e && e.viewBoxOnly || !1, viewBoxSize: e && e.viewBoxSize || !1, className: e && e.className || "", id: e && e.id || "", focusable: e && e.focusable, filterSize: { width: e && e.filterSize && e.filterSize.width || "100%", height: e && e.filterSize && e.filterSize.height || "100%", x: e && e.filterSize && e.filterSize.x || "0%", y: e && e.filterSize && e.filterSize.y || "0%" }, width: e && e.width, height: e && e.height, runExpressions: !e || e.runExpressions === void 0 || e.runExpressions }, this.globalData = { _mdf: !1, frameNum: -1, defs: n, renderConfig: this.renderConfig }, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg";
|
|
3163
3167
|
}
|
|
3164
3168
|
function ki() {
|
|
3165
3169
|
this.sequences = {}, this.sequenceList = [], this.transform_key_count = 0;
|
|
@@ -3191,15 +3195,15 @@ var As = { exports: {} };
|
|
|
3191
3195
|
this.layerElement.setAttribute("font-style", r), this.layerElement.setAttribute("font-weight", a);
|
|
3192
3196
|
}
|
|
3193
3197
|
this.layerElement.setAttribute("aria-label", s.t);
|
|
3194
|
-
var h, n = s.l || [],
|
|
3198
|
+
var h, n = s.l || [], g = !!this.globalData.fontManager.chars;
|
|
3195
3199
|
e = n.length;
|
|
3196
|
-
var y = this.mHelper, o = this.data.singleShape, d = 0, c = 0,
|
|
3197
|
-
if (!o ||
|
|
3198
|
-
var
|
|
3200
|
+
var y = this.mHelper, o = this.data.singleShape, d = 0, c = 0, m = !0, l = 1e-3 * s.tr * s.finalSize;
|
|
3201
|
+
if (!o || g || s.sz) {
|
|
3202
|
+
var f, p = this.textSpans.length;
|
|
3199
3203
|
for (t = 0; t < e; t += 1) {
|
|
3200
|
-
if (this.textSpans[t] || (this.textSpans[t] = { span: null, childSpan: null, glyph: null }), !
|
|
3201
|
-
if (h =
|
|
3202
|
-
if (h.setAttribute("stroke-linecap", "butt"), h.setAttribute("stroke-linejoin", "round"), h.setAttribute("stroke-miterlimit", "4"), this.textSpans[t].span = h,
|
|
3204
|
+
if (this.textSpans[t] || (this.textSpans[t] = { span: null, childSpan: null, glyph: null }), !g || !o || t === 0) {
|
|
3205
|
+
if (h = p > t ? this.textSpans[t].span : z(g ? "g" : "text"), p <= t) {
|
|
3206
|
+
if (h.setAttribute("stroke-linecap", "butt"), h.setAttribute("stroke-linejoin", "round"), h.setAttribute("stroke-miterlimit", "4"), this.textSpans[t].span = h, g) {
|
|
3203
3207
|
var u = z("g");
|
|
3204
3208
|
h.appendChild(u), this.textSpans[t].childSpan = u;
|
|
3205
3209
|
}
|
|
@@ -3207,34 +3211,34 @@ var As = { exports: {} };
|
|
|
3207
3211
|
}
|
|
3208
3212
|
h.style.display = "inherit";
|
|
3209
3213
|
}
|
|
3210
|
-
if (y.reset(), o && (n[t].n && (d = -l, c += s.yOffset, c +=
|
|
3214
|
+
if (y.reset(), o && (n[t].n && (d = -l, c += s.yOffset, c += m ? 1 : 0, m = !1), this.applyTextPropertiesToMatrix(s, y, n[t].line, d, c), d += n[t].l || 0, d += l), g) {
|
|
3211
3215
|
var v;
|
|
3212
|
-
if ((
|
|
3216
|
+
if ((f = this.globalData.fontManager.getCharData(s.finalText[t], i.fStyle, this.globalData.fontManager.getFontByName(s.f).fFamily)).t === 1) v = new Ie(f.data, this.globalData, this);
|
|
3213
3217
|
else {
|
|
3214
|
-
var
|
|
3215
|
-
|
|
3218
|
+
var k = na;
|
|
3219
|
+
f.data && f.data.shapes && (k = this.buildShapeData(f.data, s.finalSize)), v = new Z(k, this.globalData, this);
|
|
3216
3220
|
}
|
|
3217
3221
|
if (this.textSpans[t].glyph) {
|
|
3218
3222
|
var C = this.textSpans[t].glyph;
|
|
3219
3223
|
this.textSpans[t].childSpan.removeChild(C.layerElement), C.destroy();
|
|
3220
3224
|
}
|
|
3221
|
-
this.textSpans[t].glyph = v, v._debug = !0, v.prepareFrame(0), v.renderFrame(), this.textSpans[t].childSpan.appendChild(v.layerElement),
|
|
3225
|
+
this.textSpans[t].glyph = v, v._debug = !0, v.prepareFrame(0), v.renderFrame(), this.textSpans[t].childSpan.appendChild(v.layerElement), f.t === 1 && this.textSpans[t].childSpan.setAttribute("transform", "scale(" + s.finalSize / 100 + "," + s.finalSize / 100 + ")");
|
|
3222
3226
|
} else o && h.setAttribute("transform", "translate(" + y.props[12] + "," + y.props[13] + ")"), h.textContent = n[t].val, h.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
3223
3227
|
}
|
|
3224
3228
|
o && h && h.setAttribute("d", "");
|
|
3225
3229
|
} else {
|
|
3226
|
-
var A = this.textContainer,
|
|
3230
|
+
var A = this.textContainer, F = "start";
|
|
3227
3231
|
switch (s.j) {
|
|
3228
3232
|
case 1:
|
|
3229
|
-
|
|
3233
|
+
F = "end";
|
|
3230
3234
|
break;
|
|
3231
3235
|
case 2:
|
|
3232
|
-
|
|
3236
|
+
F = "middle";
|
|
3233
3237
|
break;
|
|
3234
3238
|
default:
|
|
3235
|
-
|
|
3239
|
+
F = "start";
|
|
3236
3240
|
}
|
|
3237
|
-
A.setAttribute("text-anchor",
|
|
3241
|
+
A.setAttribute("text-anchor", F), A.setAttribute("letter-spacing", l);
|
|
3238
3242
|
var I = this.buildTextContents(s.finalText);
|
|
3239
3243
|
for (e = I.length, c = s.ps ? s.ps[1] + s.ascent : 0, t = 0; t < e; t += 1) (h = this.textSpans[t].span || z("tspan")).textContent = I[t], h.setAttribute("x", 0), h.setAttribute("y", c), h.style.display = "inherit", A.appendChild(h), this.textSpans[t] || (this.textSpans[t] = { span: null, glyph: null }), this.textSpans[t].span = h, c += s.finalLineHeight;
|
|
3240
3244
|
this.layerElement.appendChild(A);
|
|
@@ -3438,8 +3442,8 @@ var As = { exports: {} };
|
|
|
3438
3442
|
for (r.beginPath(), t = 0; t < h; t += 1) if (this.masksProperties[t].mode !== "n") {
|
|
3439
3443
|
var n;
|
|
3440
3444
|
this.masksProperties[t].inv && (r.moveTo(0, 0), r.lineTo(this.element.globalData.compSize.w, 0), r.lineTo(this.element.globalData.compSize.w, this.element.globalData.compSize.h), r.lineTo(0, this.element.globalData.compSize.h), r.lineTo(0, 0)), i = this.viewData[t].v, e = a.applyToPointArray(i.v[0][0], i.v[0][1], 0), r.moveTo(e[0], e[1]);
|
|
3441
|
-
var
|
|
3442
|
-
for (n = 1; n <
|
|
3445
|
+
var g = i._length;
|
|
3446
|
+
for (n = 1; n < g; n += 1) s = a.applyToTriplePoints(i.o[n - 1], i.i[n], i.v[n]), r.bezierCurveTo(s[0], s[1], s[2], s[3], s[4], s[5]);
|
|
3443
3447
|
s = a.applyToTriplePoints(i.o[n - 1], i.i[0], i.v[0]), r.bezierCurveTo(s[0], s[1], s[2], s[3], s[4], s[5]);
|
|
3444
3448
|
}
|
|
3445
3449
|
this.element.globalData.renderer.save(!0), r.clip();
|
|
@@ -3570,29 +3574,29 @@ var As = { exports: {} };
|
|
|
3570
3574
|
var e, s = t.length;
|
|
3571
3575
|
for (e = 0; e < s; e += 1) t[e].closed = !0;
|
|
3572
3576
|
}, G.prototype.searchShapes = function(t, e, s, i, a) {
|
|
3573
|
-
var r, h, n,
|
|
3577
|
+
var r, h, n, g, y, o, d = t.length - 1, c = [], m = [], l = [].concat(a);
|
|
3574
3578
|
for (r = d; r >= 0; r -= 1) {
|
|
3575
|
-
if ((
|
|
3579
|
+
if ((g = this.searchProcessedElement(t[r])) ? e[r] = s[g - 1] : t[r]._shouldRender = i, t[r].ty === "fl" || t[r].ty === "st" || t[r].ty === "gf" || t[r].ty === "gs") g ? e[r].style.closed = !1 : e[r] = this.createStyleElement(t[r], l), c.push(e[r].style);
|
|
3576
3580
|
else if (t[r].ty === "gr") {
|
|
3577
|
-
if (
|
|
3581
|
+
if (g) for (n = e[r].it.length, h = 0; h < n; h += 1) e[r].prevViewData[h] = e[r].it[h];
|
|
3578
3582
|
else e[r] = this.createGroupElement(t[r]);
|
|
3579
3583
|
this.searchShapes(t[r].it, e[r].it, e[r].prevViewData, i, l);
|
|
3580
|
-
} else t[r].ty === "tr" ? (
|
|
3584
|
+
} else t[r].ty === "tr" ? (g || (o = this.createTransformElement(t[r]), e[r] = o), l.push(e[r]), this.addTransformToStyleList(e[r])) : t[r].ty === "sh" || t[r].ty === "rc" || t[r].ty === "el" || t[r].ty === "sr" ? g || (e[r] = this.createShapeElement(t[r])) : t[r].ty === "tm" || t[r].ty === "rd" || t[r].ty === "pb" || t[r].ty === "zz" || t[r].ty === "op" ? (g ? (y = e[r]).closed = !1 : ((y = zt.getModifier(t[r].ty)).init(this, t[r]), e[r] = y, this.shapeModifiers.push(y)), m.push(y)) : t[r].ty === "rp" && (g ? (y = e[r]).closed = !0 : (y = zt.getModifier(t[r].ty), e[r] = y, y.init(this, t, r, e), this.shapeModifiers.push(y), i = !1), m.push(y));
|
|
3581
3585
|
this.addProcessedElement(t[r], r + 1);
|
|
3582
3586
|
}
|
|
3583
|
-
for (this.removeTransformFromStyleList(), this.closeStyles(c), d =
|
|
3587
|
+
for (this.removeTransformFromStyleList(), this.closeStyles(c), d = m.length, r = 0; r < d; r += 1) m[r].closed = !0;
|
|
3584
3588
|
}, G.prototype.renderInnerContent = function() {
|
|
3585
3589
|
this.transformHelper.opacity = 1, this.transformHelper._opMdf = !1, this.renderModifiers(), this.transformsManager.processSequences(this._isFirstFrame), this.renderShape(this.transformHelper, this.shapesData, this.itemsData, !0);
|
|
3586
3590
|
}, G.prototype.renderShapeTransform = function(t, e) {
|
|
3587
3591
|
(t._opMdf || e.op._mdf || this._isFirstFrame) && (e.opacity = t.opacity, e.opacity *= e.op.v, e._opMdf = !0);
|
|
3588
3592
|
}, G.prototype.drawLayer = function() {
|
|
3589
|
-
var t, e, s, i, a, r, h, n,
|
|
3590
|
-
for (t = 0; t < y; t += 1) if (((n = (
|
|
3591
|
-
for (o.save(), r =
|
|
3592
|
-
for (n !== "st" && n !== "gs" || (d.beginPath(),
|
|
3593
|
-
n !== "st" && n !== "gs" || (o.ctxStroke(),
|
|
3593
|
+
var t, e, s, i, a, r, h, n, g, y = this.stylesList.length, o = this.globalData.renderer, d = this.globalData.canvasContext;
|
|
3594
|
+
for (t = 0; t < y; t += 1) if (((n = (g = this.stylesList[t]).type) !== "st" && n !== "gs" || g.wi !== 0) && g.data._shouldRender && g.coOp !== 0 && this.globalData.currentGlobalAlpha !== 0) {
|
|
3595
|
+
for (o.save(), r = g.elements, n === "st" || n === "gs" ? (o.ctxStrokeStyle(n === "st" ? g.co : g.grd), o.ctxLineWidth(g.wi), o.ctxLineCap(g.lc), o.ctxLineJoin(g.lj), o.ctxMiterLimit(g.ml || 0)) : o.ctxFillStyle(n === "fl" ? g.co : g.grd), o.ctxOpacity(g.coOp), n !== "st" && n !== "gs" && d.beginPath(), o.ctxTransform(g.preTransforms.finalTransform.props), s = r.length, e = 0; e < s; e += 1) {
|
|
3596
|
+
for (n !== "st" && n !== "gs" || (d.beginPath(), g.da && (d.setLineDash(g.da), d.lineDashOffset = g.do)), a = (h = r[e].trNodes).length, i = 0; i < a; i += 1) h[i].t === "m" ? d.moveTo(h[i].p[0], h[i].p[1]) : h[i].t === "c" ? d.bezierCurveTo(h[i].pts[0], h[i].pts[1], h[i].pts[2], h[i].pts[3], h[i].pts[4], h[i].pts[5]) : d.closePath();
|
|
3597
|
+
n !== "st" && n !== "gs" || (o.ctxStroke(), g.da && d.setLineDash(this.dashResetter));
|
|
3594
3598
|
}
|
|
3595
|
-
n !== "st" && n !== "gs" && this.globalData.renderer.ctxFill(
|
|
3599
|
+
n !== "st" && n !== "gs" && this.globalData.renderer.ctxFill(g.r), o.restore();
|
|
3596
3600
|
}
|
|
3597
3601
|
}, G.prototype.renderShape = function(t, e, s, i) {
|
|
3598
3602
|
var a, r;
|
|
@@ -3602,12 +3606,12 @@ var As = { exports: {} };
|
|
|
3602
3606
|
if (this._isFirstFrame || e._mdf || t.transforms._mdf) {
|
|
3603
3607
|
var s, i, a, r = t.trNodes, h = e.paths, n = h._length;
|
|
3604
3608
|
r.length = 0;
|
|
3605
|
-
var
|
|
3609
|
+
var g = t.transforms.finalTransform;
|
|
3606
3610
|
for (a = 0; a < n; a += 1) {
|
|
3607
3611
|
var y = h.shapes[a];
|
|
3608
3612
|
if (y && y.v) {
|
|
3609
|
-
for (i = y._length, s = 1; s < i; s += 1) s === 1 && r.push({ t: "m", p:
|
|
3610
|
-
i === 1 && r.push({ t: "m", p:
|
|
3613
|
+
for (i = y._length, s = 1; s < i; s += 1) s === 1 && r.push({ t: "m", p: g.applyToPointArray(y.v[0][0], y.v[0][1], 0) }), r.push({ t: "c", pts: g.applyToTriplePoints(y.o[s - 1], y.i[s], y.v[s]) });
|
|
3614
|
+
i === 1 && r.push({ t: "m", p: g.applyToPointArray(y.v[0][0], y.v[0][1], 0) }), y.c && i && (r.push({ t: "c", pts: g.applyToTriplePoints(y.o[s - 1], y.i[0], y.v[0]) }), r.push({ t: "z" }));
|
|
3611
3615
|
}
|
|
3612
3616
|
}
|
|
3613
3617
|
t.trNodes = r;
|
|
@@ -3623,16 +3627,16 @@ var As = { exports: {} };
|
|
|
3623
3627
|
}, G.prototype.renderGradientFill = function(t, e, s) {
|
|
3624
3628
|
var i, a = e.style;
|
|
3625
3629
|
if (!a.grd || e.g._mdf || e.s._mdf || e.e._mdf || t.t !== 1 && (e.h._mdf || e.a._mdf)) {
|
|
3626
|
-
var r, h = this.globalData.canvasContext, n = e.s.v,
|
|
3627
|
-
if (t.t === 1) i = h.createLinearGradient(n[0], n[1],
|
|
3630
|
+
var r, h = this.globalData.canvasContext, n = e.s.v, g = e.e.v;
|
|
3631
|
+
if (t.t === 1) i = h.createLinearGradient(n[0], n[1], g[0], g[1]);
|
|
3628
3632
|
else {
|
|
3629
|
-
var y = Math.sqrt(Math.pow(n[0] -
|
|
3633
|
+
var y = Math.sqrt(Math.pow(n[0] - g[0], 2) + Math.pow(n[1] - g[1], 2)), o = Math.atan2(g[1] - n[1], g[0] - n[0]), d = e.h.v;
|
|
3630
3634
|
d >= 1 ? d = 0.99 : d <= -1 && (d = -0.99);
|
|
3631
|
-
var c = y * d,
|
|
3632
|
-
i = h.createRadialGradient(
|
|
3635
|
+
var c = y * d, m = Math.cos(o + e.a.v) * c + n[0], l = Math.sin(o + e.a.v) * c + n[1];
|
|
3636
|
+
i = h.createRadialGradient(m, l, 0, n[0], n[1], y);
|
|
3633
3637
|
}
|
|
3634
|
-
var
|
|
3635
|
-
for (r = 0; r <
|
|
3638
|
+
var f = t.g.p, p = e.g.c, u = 1;
|
|
3639
|
+
for (r = 0; r < f; r += 1) e.g._hasOpacity && e.g._collapsable && (u = e.g.o[2 * r + 1]), i.addColorStop(p[4 * r] / 100, "rgba(" + p[4 * r + 1] + "," + p[4 * r + 2] + "," + p[4 * r + 3] + "," + u + ")");
|
|
3636
3640
|
a.grd = i;
|
|
3637
3641
|
}
|
|
3638
3642
|
a.coOp = e.o.v * s.opacity;
|
|
@@ -3648,31 +3652,31 @@ var As = { exports: {} };
|
|
|
3648
3652
|
t.fc ? (e = !0, this.values.fill = this.buildColor(t.fc)) : this.values.fill = "rgba(0,0,0,0)", this.fill = e;
|
|
3649
3653
|
var s = !1;
|
|
3650
3654
|
t.sc && (s = !0, this.values.stroke = this.buildColor(t.sc), this.values.sWidth = t.sw);
|
|
3651
|
-
var i, a, r, h, n,
|
|
3655
|
+
var i, a, r, h, n, g, y, o, d, c, m, l, f = this.globalData.fontManager.getFontByName(t.f), p = t.l, u = this.mHelper;
|
|
3652
3656
|
this.stroke = s, this.values.fValue = t.finalSize + "px " + this.globalData.fontManager.getFontByName(t.f).fFamily, a = t.finalText.length;
|
|
3653
|
-
var v = this.data.singleShape,
|
|
3657
|
+
var v = this.data.singleShape, k = 1e-3 * t.tr * t.finalSize, C = 0, A = 0, F = !0, I = 0;
|
|
3654
3658
|
for (i = 0; i < a; i += 1) {
|
|
3655
|
-
h = (r = this.globalData.fontManager.getCharData(t.finalText[i],
|
|
3656
|
-
var
|
|
3659
|
+
h = (r = this.globalData.fontManager.getCharData(t.finalText[i], f.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily)) && r.data || {}, u.reset(), v && p[i].n && (C = -k, A += t.yOffset, A += F ? 1 : 0, F = !1), d = (y = h.shapes ? h.shapes[0].it : []).length, u.scale(t.finalSize / 100, t.finalSize / 100), v && this.applyTextPropertiesToMatrix(t, u, p[i].line, C, A), m = K(d - 1);
|
|
3660
|
+
var x = 0;
|
|
3657
3661
|
for (o = 0; o < d; o += 1) if (y[o].ty === "sh") {
|
|
3658
|
-
for (
|
|
3659
|
-
l.push(u.applyToX(c.o[n - 1][0], c.o[n - 1][1], 0), u.applyToY(c.o[n - 1][0], c.o[n - 1][1], 0), u.applyToX(c.i[0][0], c.i[0][1], 0), u.applyToY(c.i[0][0], c.i[0][1], 0), u.applyToX(c.v[0][0], c.v[0][1], 0), u.applyToY(c.v[0][0], c.v[0][1], 0)),
|
|
3662
|
+
for (g = y[o].ks.k.i.length, c = y[o].ks.k, l = [], n = 1; n < g; n += 1) n === 1 && l.push(u.applyToX(c.v[0][0], c.v[0][1], 0), u.applyToY(c.v[0][0], c.v[0][1], 0)), l.push(u.applyToX(c.o[n - 1][0], c.o[n - 1][1], 0), u.applyToY(c.o[n - 1][0], c.o[n - 1][1], 0), u.applyToX(c.i[n][0], c.i[n][1], 0), u.applyToY(c.i[n][0], c.i[n][1], 0), u.applyToX(c.v[n][0], c.v[n][1], 0), u.applyToY(c.v[n][0], c.v[n][1], 0));
|
|
3663
|
+
l.push(u.applyToX(c.o[n - 1][0], c.o[n - 1][1], 0), u.applyToY(c.o[n - 1][0], c.o[n - 1][1], 0), u.applyToX(c.i[0][0], c.i[0][1], 0), u.applyToY(c.i[0][0], c.i[0][1], 0), u.applyToX(c.v[0][0], c.v[0][1], 0), u.applyToY(c.v[0][0], c.v[0][1], 0)), m[x] = l, x += 1;
|
|
3660
3664
|
}
|
|
3661
|
-
v && (C +=
|
|
3665
|
+
v && (C += p[i].l, C += k), this.textSpans[I] ? this.textSpans[I].elem = m : this.textSpans[I] = { elem: m }, I += 1;
|
|
3662
3666
|
}
|
|
3663
3667
|
}, Ve.prototype.renderInnerContent = function() {
|
|
3664
3668
|
var t, e, s, i, a, r;
|
|
3665
3669
|
this.validateText(), this.canvasContext.font = this.values.fValue, this.globalData.renderer.ctxLineCap("butt"), this.globalData.renderer.ctxLineJoin("miter"), this.globalData.renderer.ctxMiterLimit(4), this.data.singleShape || this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
|
|
3666
|
-
var h, n = this.textAnimator.renderedLetters,
|
|
3667
|
-
e =
|
|
3668
|
-
var y, o, d = null, c = null,
|
|
3669
|
-
for (t = 0; t < e; t += 1) if (!
|
|
3670
|
+
var h, n = this.textAnimator.renderedLetters, g = this.textProperty.currentData.l;
|
|
3671
|
+
e = g.length;
|
|
3672
|
+
var y, o, d = null, c = null, m = null, l = this.globalData.renderer;
|
|
3673
|
+
for (t = 0; t < e; t += 1) if (!g[t].n) {
|
|
3670
3674
|
if ((h = n[t]) && (l.save(), l.ctxTransform(h.p), l.ctxOpacity(h.o)), this.fill) {
|
|
3671
3675
|
for (h && h.fc ? d !== h.fc && (l.ctxFillStyle(h.fc), d = h.fc) : d !== this.values.fill && (d = this.values.fill, l.ctxFillStyle(this.values.fill)), i = (y = this.textSpans[t].elem).length, this.globalData.canvasContext.beginPath(), s = 0; s < i; s += 1) for (r = (o = y[s]).length, this.globalData.canvasContext.moveTo(o[0], o[1]), a = 2; a < r; a += 6) this.globalData.canvasContext.bezierCurveTo(o[a], o[a + 1], o[a + 2], o[a + 3], o[a + 4], o[a + 5]);
|
|
3672
3676
|
this.globalData.canvasContext.closePath(), l.ctxFill();
|
|
3673
3677
|
}
|
|
3674
3678
|
if (this.stroke) {
|
|
3675
|
-
for (h && h.sw ?
|
|
3679
|
+
for (h && h.sw ? m !== h.sw && (m = h.sw, l.ctxLineWidth(h.sw)) : m !== this.values.sWidth && (m = this.values.sWidth, l.ctxLineWidth(this.values.sWidth)), h && h.sc ? c !== h.sc && (c = h.sc, l.ctxStrokeStyle(h.sc)) : c !== this.values.stroke && (c = this.values.stroke, l.ctxStrokeStyle(this.values.stroke)), i = (y = this.textSpans[t].elem).length, this.globalData.canvasContext.beginPath(), s = 0; s < i; s += 1) for (r = (o = y[s]).length, this.globalData.canvasContext.moveTo(o[0], o[1]), a = 2; a < r; a += 6) this.globalData.canvasContext.bezierCurveTo(o[a], o[a + 1], o[a + 2], o[a + 3], o[a + 4], o[a + 5]);
|
|
3676
3680
|
this.globalData.canvasContext.closePath(), l.ctxStroke();
|
|
3677
3681
|
}
|
|
3678
3682
|
h && this.globalData.renderer.restore();
|
|
@@ -3681,8 +3685,8 @@ var As = { exports: {} };
|
|
|
3681
3685
|
if (this.img.width && (this.assetData.w !== this.img.width || this.assetData.h !== this.img.height)) {
|
|
3682
3686
|
var t = Pt("canvas");
|
|
3683
3687
|
t.width = this.assetData.w, t.height = this.assetData.h;
|
|
3684
|
-
var e, s, i = t.getContext("2d"), a = this.img.width, r = this.img.height, h = a / r, n = this.assetData.w / this.assetData.h,
|
|
3685
|
-
h > n &&
|
|
3688
|
+
var e, s, i = t.getContext("2d"), a = this.img.width, r = this.img.height, h = a / r, n = this.assetData.w / this.assetData.h, g = this.assetData.pr || this.globalData.renderConfig.imagePreserveAspectRatio;
|
|
3689
|
+
h > n && g === "xMidYMid slice" || h < n && g !== "xMidYMid slice" ? e = (s = r) * n : s = (e = a) / n, i.drawImage(this.img, (a - e) / 2, (r - s) / 2, e, s, 0, 0, this.assetData.w, this.assetData.h), this.img = t;
|
|
3686
3690
|
}
|
|
3687
3691
|
}, le.prototype.renderInnerContent = function() {
|
|
3688
3692
|
this.canvasContext.drawImage(this.img, 0, 0);
|
|
@@ -3738,7 +3742,7 @@ var As = { exports: {} };
|
|
|
3738
3742
|
}, X.prototype.updateContainerSize = function(t, e) {
|
|
3739
3743
|
var s, i, a, r;
|
|
3740
3744
|
if (this.reset(), t ? (s = t, i = e, this.canvasContext.canvas.width = s, this.canvasContext.canvas.height = i) : (this.animationItem.wrapper && this.animationItem.container ? (s = this.animationItem.wrapper.offsetWidth, i = this.animationItem.wrapper.offsetHeight) : (s = this.canvasContext.canvas.width, i = this.canvasContext.canvas.height), this.canvasContext.canvas.width = s * this.renderConfig.dpr, this.canvasContext.canvas.height = i * this.renderConfig.dpr), this.renderConfig.preserveAspectRatio.indexOf("meet") !== -1 || this.renderConfig.preserveAspectRatio.indexOf("slice") !== -1) {
|
|
3741
|
-
var h = this.renderConfig.preserveAspectRatio.split(" "), n = h[1] || "meet",
|
|
3745
|
+
var h = this.renderConfig.preserveAspectRatio.split(" "), n = h[1] || "meet", g = h[0] || "xMidYMid", y = g.substr(0, 4), o = g.substr(4);
|
|
3742
3746
|
a = s / i, (r = this.transformCanvas.w / this.transformCanvas.h) > a && n === "meet" || r < a && n === "slice" ? (this.transformCanvas.sx = s / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = s / (this.transformCanvas.w / this.renderConfig.dpr)) : (this.transformCanvas.sx = i / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.sy = i / (this.transformCanvas.h / this.renderConfig.dpr)), this.transformCanvas.tx = y === "xMid" && (r < a && n === "meet" || r > a && n === "slice") ? (s - this.transformCanvas.w * (i / this.transformCanvas.h)) / 2 * this.renderConfig.dpr : y === "xMax" && (r < a && n === "meet" || r > a && n === "slice") ? (s - this.transformCanvas.w * (i / this.transformCanvas.h)) * this.renderConfig.dpr : 0, this.transformCanvas.ty = o === "YMid" && (r > a && n === "meet" || r < a && n === "slice") ? (i - this.transformCanvas.h * (s / this.transformCanvas.w)) / 2 * this.renderConfig.dpr : o === "YMax" && (r > a && n === "meet" || r < a && n === "slice") ? (i - this.transformCanvas.h * (s / this.transformCanvas.w)) * this.renderConfig.dpr : 0;
|
|
3743
3747
|
} else this.renderConfig.preserveAspectRatio === "none" ? (this.transformCanvas.sx = s / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = i / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.tx = 0, this.transformCanvas.ty = 0) : (this.transformCanvas.sx = this.renderConfig.dpr, this.transformCanvas.sy = this.renderConfig.dpr, this.transformCanvas.tx = 0, this.transformCanvas.ty = 0);
|
|
3744
3748
|
this.transformCanvas.props = [this.transformCanvas.sx, 0, 0, 0, 0, this.transformCanvas.sy, 0, 0, 0, 0, 1, 0, this.transformCanvas.tx, this.transformCanvas.ty, 0, 1], this.ctxTransform(this.transformCanvas.props), this.canvasContext.beginPath(), this.canvasContext.rect(0, 0, this.transformCanvas.w, this.transformCanvas.h), this.canvasContext.closePath(), this.canvasContext.clip(), this.renderFrame(this.renderedFrame, !0);
|