@justeattakeaway/pie-lottie-player 0.0.2 → 0.0.4

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.
@@ -31,9 +31,7 @@ var Ai = { exports: {} };
31
31
  }
32
32
  function W(t, e) {
33
33
  var i, s, a = t.length;
34
- for (i = 0; i < a; i += 1)
35
- for (var r in s = t[i].prototype)
36
- Object.prototype.hasOwnProperty.call(s, r) && (e.prototype[r] = s[r]);
34
+ for (i = 0; i < a; i += 1) for (var r in s = t[i].prototype) Object.prototype.hasOwnProperty.call(s, r) && (e.prototype[r] = s[r]);
37
35
  }
38
36
  function Ts(t) {
39
37
  function e() {
@@ -48,16 +46,13 @@ var Ai = { exports: {} };
48
46
  this.audios.push(e);
49
47
  }, pause: function() {
50
48
  var e, i = this.audios.length;
51
- for (e = 0; e < i; e += 1)
52
- this.audios[e].pause();
49
+ for (e = 0; e < i; e += 1) this.audios[e].pause();
53
50
  }, resume: function() {
54
51
  var e, i = this.audios.length;
55
- for (e = 0; e < i; e += 1)
56
- this.audios[e].resume();
52
+ for (e = 0; e < i; e += 1) this.audios[e].resume();
57
53
  }, setRate: function(e) {
58
54
  var i, s = this.audios.length;
59
- for (i = 0; i < s; i += 1)
60
- this.audios[i].setRate(e);
55
+ for (i = 0; i < s; i += 1) this.audios[i].setRate(e);
61
56
  }, createAudio: function(e) {
62
57
  return this.audioFactory ? this.audioFactory(e) : window.Howl ? new window.Howl({ src: [e] }) : { isPlaying: !1, play: function() {
63
58
  this.isPlaying = !0;
@@ -79,12 +74,11 @@ var Ai = { exports: {} };
79
74
  return this._volume;
80
75
  }, _updateVolume: function() {
81
76
  var e, i = this.audios.length;
82
- for (e = 0; e < i; e += 1)
83
- this.audios[e].volume(this._volume * (this._isMuted ? 0 : 1));
77
+ for (e = 0; e < i; e += 1) this.audios[e].volume(this._volume * (this._isMuted ? 0 : 1));
84
78
  } }, function() {
85
79
  return new t();
86
80
  };
87
- }(), ht = function() {
81
+ }(), ht = /* @__PURE__ */ function() {
88
82
  function t(e, i) {
89
83
  var s, a = 0, r = [];
90
84
  switch (e) {
@@ -95,8 +89,7 @@ var Ai = { exports: {} };
95
89
  default:
96
90
  s = 1.1;
97
91
  }
98
- for (a = 0; a < i; a += 1)
99
- r.push(s);
92
+ for (a = 0; a < i; a += 1) r.push(s);
100
93
  return r;
101
94
  }
102
95
  return typeof Uint8ClampedArray == "function" && typeof Float32Array == "function" ? function(e, i) {
@@ -185,8 +178,7 @@ var Ai = { exports: {} };
185
178
  }
186
179
  (function() {
187
180
  var t, e;
188
- for (t = 0; t < 256; t += 1)
189
- e = t.toString(16), e.length === 1 && "" + e;
181
+ for (t = 0; t < 256; t += 1) e = t.toString(16), e.length === 1 && "" + e;
190
182
  })();
191
183
  var Oe = function() {
192
184
  return Mi;
@@ -205,7 +197,7 @@ var Ai = { exports: {} };
205
197
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
206
198
  }, oi(t);
207
199
  }
208
- var Ce = function() {
200
+ var Ce = /* @__PURE__ */ function() {
209
201
  var t, e, i = 1, s = [], a = { onmessage: function() {
210
202
  }, postMessage: function(y) {
211
203
  t({ data: y });
@@ -224,25 +216,19 @@ var Ai = { exports: {} };
224
216
  if (r.dataManager || (r.dataManager = function() {
225
217
  function d(k, F) {
226
218
  var M, _, D, w, P, V, O = k.length;
227
- for (_ = 0; _ < O; _ += 1)
228
- if ("ks" in (M = k[_]) && !M.completed) {
229
- if (M.completed = !0, M.hasMask) {
230
- var B = M.masksProperties;
231
- for (w = B.length, D = 0; D < w; D += 1)
232
- if (B[D].pt.k.i)
233
- l(B[D].pt.k);
234
- else
235
- for (V = B[D].pt.k.length, P = 0; P < V; P += 1)
236
- 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]);
237
- }
238
- M.ty === 0 ? (M.layers = c(M.refId, F), d(M.layers, F)) : M.ty === 4 ? g(M.shapes) : M.ty === 5 && T(M);
219
+ for (_ = 0; _ < O; _ += 1) if ("ks" in (M = k[_]) && !M.completed) {
220
+ if (M.completed = !0, M.hasMask) {
221
+ var B = M.masksProperties;
222
+ for (w = B.length, D = 0; D < w; D += 1) if (B[D].pt.k.i) l(B[D].pt.k);
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]);
239
224
  }
225
+ M.ty === 0 ? (M.layers = c(M.refId, F), d(M.layers, F)) : M.ty === 4 ? g(M.shapes) : M.ty === 5 && T(M);
226
+ }
240
227
  }
241
228
  function c(k, F) {
242
229
  var M = function(_, D) {
243
230
  for (var w = 0, P = D.length; w < P; ) {
244
- if (D[w].id === _)
245
- return D[w];
231
+ if (D[w].id === _) return D[w];
246
232
  w += 1;
247
233
  }
248
234
  return null;
@@ -251,37 +237,28 @@ var Ai = { exports: {} };
251
237
  }
252
238
  function g(k) {
253
239
  var F, M, _;
254
- for (F = k.length - 1; F >= 0; F -= 1)
255
- if (k[F].ty === "sh")
256
- if (k[F].ks.k.i)
257
- l(k[F].ks.k);
258
- else
259
- for (_ = k[F].ks.k.length, M = 0; M < _; M += 1)
260
- k[F].ks.k[M].s && l(k[F].ks.k[M].s[0]), k[F].ks.k[M].e && l(k[F].ks.k[M].e[0]);
261
- else
262
- k[F].ty === "gr" && g(k[F].it);
240
+ for (F = k.length - 1; F >= 0; F -= 1) if (k[F].ty === "sh") if (k[F].ks.k.i) l(k[F].ks.k);
241
+ else for (_ = k[F].ks.k.length, M = 0; M < _; M += 1) k[F].ks.k[M].s && l(k[F].ks.k[M].s[0]), k[F].ks.k[M].e && l(k[F].ks.k[M].e[0]);
242
+ else k[F].ty === "gr" && g(k[F].it);
263
243
  }
264
244
  function l(k) {
265
245
  var F, M = k.i.length;
266
- for (F = 0; F < M; F += 1)
267
- k.i[F][0] += k.v[F][0], k.i[F][1] += k.v[F][1], k.o[F][0] += k.v[F][0], k.o[F][1] += k.v[F][1];
246
+ for (F = 0; F < M; F += 1) k.i[F][0] += k.v[F][0], k.i[F][1] += k.v[F][1], k.o[F][0] += k.v[F][0], k.o[F][1] += k.v[F][1];
268
247
  }
269
248
  function p(k, F) {
270
249
  var M = F ? F.split(".") : [100, 100, 100];
271
250
  return k[0] > M[0] || !(M[0] > k[0]) && (k[1] > M[1] || !(M[1] > k[1]) && (k[2] > M[2] || !(M[2] > k[2]) && null));
272
251
  }
273
- var f, m = function() {
252
+ var f, m = /* @__PURE__ */ function() {
274
253
  var k = [4, 4, 14];
275
254
  function F(M) {
276
255
  var _, D, w, P = M.length;
277
- for (_ = 0; _ < P; _ += 1)
278
- M[_].ty === 5 && (w = void 0, w = (D = M[_]).t.d, D.t.d = { k: [{ s: w, t: 0 }] });
256
+ for (_ = 0; _ < P; _ += 1) M[_].ty === 5 && (w = void 0, w = (D = M[_]).t.d, D.t.d = { k: [{ s: w, t: 0 }] });
279
257
  }
280
258
  return function(M) {
281
259
  if (p(k, M.v) && (F(M.layers), M.assets)) {
282
260
  var _, D = M.assets.length;
283
- for (_ = 0; _ < D; _ += 1)
284
- M.assets[_].layers && F(M.assets[_].layers);
261
+ for (_ = 0; _ < D; _ += 1) M.assets[_].layers && F(M.assets[_].layers);
285
262
  }
286
263
  };
287
264
  }(), v = (f = [4, 7, 99], function(k) {
@@ -292,71 +269,51 @@ var Ai = { exports: {} };
292
269
  _.data && _.data.shapes && (g(_.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 } }, k.chars[F].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" })));
293
270
  }
294
271
  }
295
- }), x = function() {
272
+ }), x = /* @__PURE__ */ function() {
296
273
  var k = [5, 7, 15];
297
274
  function F(M) {
298
275
  var _, D, w = M.length;
299
- for (_ = 0; _ < w; _ += 1)
300
- 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 }));
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 }));
301
277
  }
302
278
  return function(M) {
303
279
  if (p(k, M.v) && (F(M.layers), M.assets)) {
304
280
  var _, D = M.assets.length;
305
- for (_ = 0; _ < D; _ += 1)
306
- M.assets[_].layers && F(M.assets[_].layers);
281
+ for (_ = 0; _ < D; _ += 1) M.assets[_].layers && F(M.assets[_].layers);
307
282
  }
308
283
  };
309
- }(), C = function() {
284
+ }(), C = /* @__PURE__ */ function() {
310
285
  var k = [4, 1, 9];
311
286
  function F(_) {
312
287
  var D, w, P, V = _.length;
313
- for (D = 0; D < V; D += 1)
314
- if (_[D].ty === "gr")
315
- F(_[D].it);
316
- else if (_[D].ty === "fl" || _[D].ty === "st")
317
- if (_[D].c.k && _[D].c.k[0].i)
318
- for (P = _[D].c.k.length, w = 0; w < P; w += 1)
319
- _[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);
320
- else
321
- _[D].c.k[0] /= 255, _[D].c.k[1] /= 255, _[D].c.k[2] /= 255, _[D].c.k[3] /= 255;
288
+ for (D = 0; D < V; D += 1) if (_[D].ty === "gr") F(_[D].it);
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
+ else _[D].c.k[0] /= 255, _[D].c.k[1] /= 255, _[D].c.k[2] /= 255, _[D].c.k[3] /= 255;
322
291
  }
323
292
  function M(_) {
324
293
  var D, w = _.length;
325
- for (D = 0; D < w; D += 1)
326
- _[D].ty === 4 && F(_[D].shapes);
294
+ for (D = 0; D < w; D += 1) _[D].ty === 4 && F(_[D].shapes);
327
295
  }
328
296
  return function(_) {
329
297
  if (p(k, _.v) && (M(_.layers), _.assets)) {
330
298
  var D, w = _.assets.length;
331
- for (D = 0; D < w; D += 1)
332
- _.assets[D].layers && M(_.assets[D].layers);
299
+ for (D = 0; D < w; D += 1) _.assets[D].layers && M(_.assets[D].layers);
333
300
  }
334
301
  };
335
- }(), A = function() {
302
+ }(), A = /* @__PURE__ */ function() {
336
303
  var k = [4, 4, 18];
337
304
  function F(_) {
338
305
  var D, w, P;
339
- for (D = _.length - 1; D >= 0; D -= 1)
340
- if (_[D].ty === "sh")
341
- if (_[D].ks.k.i)
342
- _[D].ks.k.c = _[D].closed;
343
- else
344
- for (P = _[D].ks.k.length, w = 0; w < P; w += 1)
345
- _[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);
346
- else
347
- _[D].ty === "gr" && F(_[D].it);
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
+ 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" && F(_[D].it);
348
309
  }
349
310
  function M(_) {
350
311
  var D, w, P, V, O, B, b = _.length;
351
312
  for (w = 0; w < b; w += 1) {
352
313
  if ((D = _[w]).hasMask) {
353
314
  var S = D.masksProperties;
354
- for (V = S.length, P = 0; P < V; P += 1)
355
- if (S[P].pt.k.i)
356
- S[P].pt.k.c = S[P].cl;
357
- else
358
- for (B = S[P].pt.k.length, O = 0; O < B; O += 1)
359
- 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);
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
+ 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);
360
317
  }
361
318
  D.ty === 4 && F(D.shapes);
362
319
  }
@@ -364,8 +321,7 @@ var Ai = { exports: {} };
364
321
  return function(_) {
365
322
  if (p(k, _.v) && (M(_.layers), _.assets)) {
366
323
  var D, w = _.assets.length;
367
- for (D = 0; D < w; D += 1)
368
- _.assets[D].layers && M(_.assets[D].layers);
324
+ for (D = 0; D < w; D += 1) _.assets[D].layers && M(_.assets[D].layers);
369
325
  }
370
326
  };
371
327
  }();
@@ -376,13 +332,12 @@ var Ai = { exports: {} };
376
332
  k.__complete || (C(k), m(k), v(k), x(k), A(k), d(k.layers, k.assets), function(F, M) {
377
333
  if (F) {
378
334
  var _ = 0, D = F.length;
379
- for (_ = 0; _ < D; _ += 1)
380
- F[_].t === 1 && (F[_].data.layers = c(F[_].data.refId, M), d(F[_].data.layers, M));
335
+ for (_ = 0; _ < D; _ += 1) F[_].t === 1 && (F[_].data.layers = c(F[_].data.refId, M), d(F[_].data.layers, M));
381
336
  }
382
337
  }(k.chars, k.assets), k.__complete = !0);
383
338
  } };
384
339
  return I.checkColors = C, I.checkChars = v, I.checkPathProperties = x, I.checkShapes = A, I.completeLayers = d, I;
385
- }()), r.assetLoader || (r.assetLoader = function() {
340
+ }()), r.assetLoader || (r.assetLoader = /* @__PURE__ */ function() {
386
341
  function d(c) {
387
342
  var g = c.getResponseHeader("content-type");
388
343
  return g && c.responseType === "json" && g.indexOf("json") !== -1 || c.response && oi(c.response) === "object" ? c.response : c.response && typeof c.response == "string" ? JSON.parse(c.response) : c.responseText ? JSON.parse(c.responseText) : null;
@@ -394,15 +349,12 @@ var Ai = { exports: {} };
394
349
  } catch {
395
350
  }
396
351
  m.onreadystatechange = function() {
397
- if (m.readyState === 4)
398
- if (m.status === 200)
399
- f = d(m), l(f);
400
- else
401
- try {
402
- f = d(m), l(f);
403
- } catch (v) {
404
- p && p(v);
405
- }
352
+ if (m.readyState === 4) if (m.status === 200) f = d(m), l(f);
353
+ else try {
354
+ f = d(m), l(f);
355
+ } catch (v) {
356
+ p && p(v);
357
+ }
406
358
  };
407
359
  try {
408
360
  m.open(["G", "E", "T"].join(""), c, !0);
@@ -411,21 +363,19 @@ var Ai = { exports: {} };
411
363
  }
412
364
  m.send();
413
365
  } };
414
- }()), y.data.type === "loadAnimation")
415
- r.assetLoader.load(y.data.path, y.data.fullPath, function(d) {
416
- r.dataManager.completeData(d), r.postMessage({ id: y.data.id, payload: d, status: "success" });
417
- }, function() {
418
- r.postMessage({ id: y.data.id, status: "error" });
419
- });
366
+ }()), y.data.type === "loadAnimation") r.assetLoader.load(y.data.path, y.data.fullPath, function(d) {
367
+ r.dataManager.completeData(d), r.postMessage({ id: y.data.id, payload: d, status: "success" });
368
+ }, function() {
369
+ r.postMessage({ id: y.data.id, status: "error" });
370
+ });
420
371
  else if (y.data.type === "complete") {
421
372
  var o = y.data.animation;
422
373
  r.dataManager.completeData(o), r.postMessage({ id: y.data.id, payload: o, status: "success" });
423
- } else
424
- y.data.type === "loadData" && r.assetLoader.load(y.data.path, y.data.fullPath, function(d) {
425
- r.postMessage({ id: y.data.id, payload: d, status: "success" });
426
- }, function() {
427
- r.postMessage({ id: y.data.id, status: "error" });
428
- });
374
+ } else y.data.type === "loadData" && r.assetLoader.load(y.data.path, y.data.fullPath, function(d) {
375
+ r.postMessage({ id: y.data.id, payload: d, status: "success" });
376
+ }, function() {
377
+ r.postMessage({ id: y.data.id, status: "error" });
378
+ });
429
379
  }), e.onmessage = function(y) {
430
380
  var o = y.data, d = o.id, c = s[d];
431
381
  s[d] = null, o.status === "success" ? c.onComplete(o.payload) : c.onError && c.onError();
@@ -463,13 +413,11 @@ var Ai = { exports: {} };
463
413
  }
464
414
  function s(n, u, y) {
465
415
  var o = "";
466
- if (n.e)
467
- o = n.p;
416
+ if (n.e) o = n.p;
468
417
  else if (u) {
469
418
  var d = n.p;
470
419
  d.indexOf("images/") !== -1 && (d = d.split("/")[1]), o = u + d;
471
- } else
472
- o = y, o += n.u ? n.u : "", o += n.p;
420
+ } else o = y, o += n.u ? n.u : "", o += n.p;
473
421
  return o;
474
422
  }
475
423
  function a(n) {
@@ -492,8 +440,7 @@ var Ai = { exports: {} };
492
440
  var y;
493
441
  this.imagesLoadedCb = u;
494
442
  var o = n.length;
495
- for (y = 0; y < o; y += 1)
496
- 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]))));
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]))));
497
444
  }, setAssetsPath: function(n) {
498
445
  this.assetsPath = n || "";
499
446
  }, setPath: function(n) {
@@ -506,8 +453,7 @@ var Ai = { exports: {} };
506
453
  this.imagesLoadedCb = null, this.images.length = 0;
507
454
  }, getAsset: function(n) {
508
455
  for (var u = 0, y = this.images.length; u < y; ) {
509
- if (this.images[u].assetData === n)
510
- return this.images[u].img;
456
+ if (this.images[u].assetData === n) return this.images[u].img;
511
457
  u += 1;
512
458
  }
513
459
  return null;
@@ -532,9 +478,7 @@ var Ai = { exports: {} };
532
478
  function Bi() {
533
479
  }
534
480
  Bi.prototype = { triggerEvent: function(t, e) {
535
- if (this._cbs[t])
536
- for (var i = this._cbs[t], s = 0; s < i.length; s += 1)
537
- i[s](e);
481
+ if (this._cbs[t]) for (var i = this._cbs[t], s = 0; s < i.length; s += 1) i[s](e);
538
482
  }, addEventListener: function(t, e) {
539
483
  return this._cbs[t] || (this._cbs[t] = []), this._cbs[t].push(e), (function() {
540
484
  this.removeEventListener(t, e);
@@ -542,20 +486,16 @@ var Ai = { exports: {} };
542
486
  }, removeEventListener: function(t, e) {
543
487
  if (e) {
544
488
  if (this._cbs[t]) {
545
- for (var i = 0, s = this._cbs[t].length; i < s; )
546
- this._cbs[t][i] === e && (this._cbs[t].splice(i, 1), i -= 1, s -= 1), i += 1;
489
+ for (var i = 0, s = this._cbs[t].length; i < s; ) this._cbs[t][i] === e && (this._cbs[t].splice(i, 1), i -= 1, s -= 1), i += 1;
547
490
  this._cbs[t].length || (this._cbs[t] = null);
548
491
  }
549
- } else
550
- this._cbs[t] = null;
492
+ } else this._cbs[t] = null;
551
493
  } };
552
- var zs = function() {
494
+ var zs = /* @__PURE__ */ function() {
553
495
  function t(e) {
554
496
  for (var i, s = e.split(`\r
555
- `), a = {}, r = 0, h = 0; h < s.length; h += 1)
556
- (i = s[h].split(":")).length === 2 && (a[i[0]] = i[1].trim(), r += 1);
557
- if (r === 0)
558
- throw new Error();
497
+ `), a = {}, r = 0, h = 0; h < s.length; h += 1) (i = s[h].split(":")).length === 2 && (a[i[0]] = i[1].trim(), r += 1);
498
+ if (r === 0) throw new Error();
559
499
  return a;
560
500
  }
561
501
  return function(e) {
@@ -574,15 +514,14 @@ var Ai = { exports: {} };
574
514
  }
575
515
  return i;
576
516
  };
577
- }(), Os = function() {
517
+ }(), Os = /* @__PURE__ */ function() {
578
518
  function t(e) {
579
519
  this.compositions.push(e);
580
520
  }
581
521
  return function() {
582
522
  function e(i) {
583
523
  for (var s = 0, a = this.compositions.length; s < a; ) {
584
- if (this.compositions[s].data && this.compositions[s].data.nm === i)
585
- return this.compositions[s].prepareFrame && this.compositions[s].data.xt && this.compositions[s].prepareFrame(this.currentFrame), this.compositions[s].compInterface;
524
+ if (this.compositions[s].data && this.compositions[s].data.nm === i) return this.compositions[s].prepareFrame && this.compositions[s].data.xt && this.compositions[s].prepareFrame(this.currentFrame), this.compositions[s].compInterface;
586
525
  s += 1;
587
526
  }
588
527
  return null;
@@ -614,11 +553,8 @@ var Ai = { exports: {} };
614
553
  e && Be(e) !== "object" && (e = JSON.parse(e));
615
554
  var i = { wrapper: t, animationData: e }, s = t.attributes;
616
555
  i.path = s.getNamedItem("data-animation-path") ? s.getNamedItem("data-animation-path").value : s.getNamedItem("data-bm-path") ? s.getNamedItem("data-bm-path").value : s.getNamedItem("bm-path") ? s.getNamedItem("bm-path").value : "", i.animType = s.getNamedItem("data-anim-type") ? s.getNamedItem("data-anim-type").value : s.getNamedItem("data-bm-type") ? s.getNamedItem("data-bm-type").value : s.getNamedItem("bm-type") ? s.getNamedItem("bm-type").value : s.getNamedItem("data-bm-renderer") ? s.getNamedItem("data-bm-renderer").value : s.getNamedItem("bm-renderer") ? s.getNamedItem("bm-renderer").value : function() {
617
- if (xe.canvas)
618
- return "canvas";
619
- for (var h in xe)
620
- if (xe[h])
621
- return h;
556
+ if (xe.canvas) return "canvas";
557
+ for (var h in xe) if (xe[h]) return h;
622
558
  return "";
623
559
  }() || "canvas";
624
560
  var a = s.getNamedItem("data-anim-loop") ? s.getNamedItem("data-anim-loop").value : s.getNamedItem("data-bm-loop") ? s.getNamedItem("data-bm-loop").value : s.getNamedItem("bm-loop") ? s.getNamedItem("bm-loop").value : "";
@@ -628,17 +564,14 @@ var Ai = { exports: {} };
628
564
  }, R.prototype.includeLayers = function(t) {
629
565
  t.op > this.animationData.op && (this.animationData.op = t.op, this.totalFrames = Math.floor(t.op - this.animationData.ip));
630
566
  var e, i, s = this.animationData.layers, a = s.length, r = t.layers, h = r.length;
631
- for (i = 0; i < h; i += 1)
632
- for (e = 0; e < a; ) {
633
- if (s[e].id === r[i].id) {
634
- s[e] = r[i];
635
- break;
636
- }
637
- e += 1;
567
+ for (i = 0; i < h; i += 1) for (e = 0; e < a; ) {
568
+ if (s[e].id === r[i].id) {
569
+ s[e] = r[i];
570
+ break;
638
571
  }
639
- if ((t.chars || t.fonts) && (this.renderer.globalData.fontManager.addChars(t.chars), this.renderer.globalData.fontManager.addFonts(t.fonts, this.renderer.globalData.defs)), t.assets)
640
- for (a = t.assets.length, e = 0; e < a; e += 1)
641
- this.animationData.assets.push(t.assets[e]);
572
+ e += 1;
573
+ }
574
+ if ((t.chars || t.fonts) && (this.renderer.globalData.fontManager.addChars(t.chars), this.renderer.globalData.fontManager.addFonts(t.fonts, this.renderer.globalData.defs)), t.assets) for (a = t.assets.length, e = 0; e < a; e += 1) this.animationData.assets.push(t.assets[e]);
642
575
  this.animationData.__complete = !1, Ce.completeAnimation(this.animationData, this.onSegmentComplete);
643
576
  }, R.prototype.onSegmentComplete = function(t) {
644
577
  this.animationData = t;
@@ -646,8 +579,7 @@ var Ai = { exports: {} };
646
579
  e && e.initExpressions(this), this.loadNextSegment();
647
580
  }, R.prototype.loadNextSegment = function() {
648
581
  var t = this.animationData.segments;
649
- if (!t || t.length === 0 || !this.autoloadSegments)
650
- return this.trigger("data_ready"), void (this.timeCompleted = this.totalFrames);
582
+ if (!t || t.length === 0 || !this.autoloadSegments) return this.trigger("data_ready"), void (this.timeCompleted = this.totalFrames);
651
583
  var e = t.shift();
652
584
  this.timeCompleted = e.time * this.frameRate;
653
585
  var i = this.path + this.fileName + "_" + this.segmentPos + ".json";
@@ -661,12 +593,11 @@ var Ai = { exports: {} };
661
593
  }, R.prototype.preloadImages = function() {
662
594
  this.imagePreloader.setAssetsPath(this.assetsPath), this.imagePreloader.setPath(this.path), this.imagePreloader.loadAssets(this.animationData.assets, this.imagesLoaded.bind(this));
663
595
  }, R.prototype.configAnimation = function(t) {
664
- if (this.renderer)
665
- try {
666
- this.animationData = t, this.initialSegment ? (this.totalFrames = Math.floor(this.initialSegment[1] - this.initialSegment[0]), this.firstFrame = Math.round(this.initialSegment[0])) : (this.totalFrames = Math.floor(this.animationData.op - this.animationData.ip), this.firstFrame = Math.round(this.animationData.ip)), this.renderer.configAnimation(t), t.assets || (t.assets = []), this.assets = this.animationData.assets, this.frameRate = this.animationData.fr, this.frameMult = this.animationData.fr / 1e3, this.renderer.searchExtraCompositions(t.assets), this.markers = zs(t.markers || []), this.trigger("config_ready"), this.preloadImages(), this.loadSegments(), this.updaFrameModifier(), this.waitForFontsLoaded(), this.isPaused && this.audioController.pause();
667
- } catch (e) {
668
- this.triggerConfigError(e);
669
- }
596
+ if (this.renderer) try {
597
+ this.animationData = t, this.initialSegment ? (this.totalFrames = Math.floor(this.initialSegment[1] - this.initialSegment[0]), this.firstFrame = Math.round(this.initialSegment[0])) : (this.totalFrames = Math.floor(this.animationData.op - this.animationData.ip), this.firstFrame = Math.round(this.animationData.ip)), this.renderer.configAnimation(t), t.assets || (t.assets = []), this.assets = this.animationData.assets, this.frameRate = this.animationData.fr, this.frameMult = this.animationData.fr / 1e3, this.renderer.searchExtraCompositions(t.assets), this.markers = zs(t.markers || []), this.trigger("config_ready"), this.preloadImages(), this.loadSegments(), this.updaFrameModifier(), this.waitForFontsLoaded(), this.isPaused && this.audioController.pause();
598
+ } catch (e) {
599
+ this.triggerConfigError(e);
600
+ }
670
601
  }, R.prototype.waitForFontsLoaded = function() {
671
602
  this.renderer && (this.renderer.globalData.fontManager.isLoaded ? this.checkLoaded() : setTimeout(this.waitForFontsLoaded.bind(this), 20));
672
603
  }, R.prototype.checkLoaded = function() {
@@ -685,12 +616,11 @@ var Ai = { exports: {} };
685
616
  }, R.prototype.gotoFrame = function() {
686
617
  this.currentFrame = this.isSubframeEnabled ? this.currentRawFrame : ~~this.currentRawFrame, this.timeCompleted !== this.totalFrames && this.currentFrame > this.timeCompleted && (this.currentFrame = this.timeCompleted), this.trigger("enterFrame"), this.renderFrame(), this.trigger("drawnFrame");
687
618
  }, R.prototype.renderFrame = function() {
688
- if (this.isLoaded !== !1 && this.renderer)
689
- try {
690
- this.expressionsPlugin && this.expressionsPlugin.resetFrame(), this.renderer.renderFrame(this.currentFrame + this.firstFrame);
691
- } catch (t) {
692
- this.triggerRenderFrameError(t);
693
- }
619
+ if (this.isLoaded !== !1 && this.renderer) try {
620
+ this.expressionsPlugin && this.expressionsPlugin.resetFrame(), this.renderer.renderFrame(this.currentFrame + this.firstFrame);
621
+ } catch (t) {
622
+ this.triggerRenderFrameError(t);
623
+ }
694
624
  }, R.prototype.play = function(t) {
695
625
  t && this.name !== t || this.isPaused === !0 && (this.isPaused = !1, this.trigger("_play"), this.audioController.resume(), this._idle && (this._idle = !1, this.trigger("_active")));
696
626
  }, R.prototype.pause = function(t) {
@@ -700,9 +630,7 @@ var Ai = { exports: {} };
700
630
  }, R.prototype.stop = function(t) {
701
631
  t && this.name !== t || (this.pause(), this.playCount = 0, this._completedLoop = !1, this.setCurrentRawFrameValue(0));
702
632
  }, R.prototype.getMarkerData = function(t) {
703
- for (var e, i = 0; i < this.markers.length; i += 1)
704
- if ((e = this.markers[i]).payload && e.payload.name === t)
705
- return e;
633
+ for (var e, i = 0; i < this.markers.length; i += 1) if ((e = this.markers[i]).payload && e.payload.name === t) return e;
706
634
  return null;
707
635
  }, R.prototype.goToAndStop = function(t, e, i) {
708
636
  if (!i || this.name === i) {
@@ -710,8 +638,7 @@ var Ai = { exports: {} };
710
638
  if (isNaN(s)) {
711
639
  var a = this.getMarkerData(t);
712
640
  a && this.goToAndStop(a.time, !0);
713
- } else
714
- e ? this.setCurrentRawFrameValue(t) : this.setCurrentRawFrameValue(t * this.frameModifier);
641
+ } else e ? this.setCurrentRawFrameValue(t) : this.setCurrentRawFrameValue(t * this.frameModifier);
715
642
  this.pause();
716
643
  }
717
644
  }, R.prototype.goToAndPlay = function(t, e, i) {
@@ -720,8 +647,7 @@ var Ai = { exports: {} };
720
647
  if (isNaN(s)) {
721
648
  var a = this.getMarkerData(t);
722
649
  a && (a.duration ? this.playSegments([a.time, a.time + a.duration], !0) : this.goToAndStop(a.time, !0));
723
- } else
724
- this.goToAndStop(s, e, i);
650
+ } else this.goToAndStop(s, e, i);
725
651
  this.play();
726
652
  }
727
653
  }, R.prototype.advanceTime = function(t) {
@@ -737,10 +663,8 @@ var Ai = { exports: {} };
737
663
  }, R.prototype.playSegments = function(t, e) {
738
664
  if (e && (this.segments.length = 0), Be(t[0]) === "object") {
739
665
  var i, s = t.length;
740
- for (i = 0; i < s; i += 1)
741
- this.segments.push(t[i]);
742
- } else
743
- this.segments.push(t);
666
+ for (i = 0; i < s; i += 1) this.segments.push(t[i]);
667
+ } else this.segments.push(t);
744
668
  this.segments.length && e && this.adjustSegment(this.segments.shift(), 0), this.isPaused && this.play();
745
669
  }, R.prototype.resetSegments = function(t) {
746
670
  this.segments.length = 0, this.segments.push([this.animationData.ip, this.animationData.op]), t && this.checkSegments(0);
@@ -770,18 +694,15 @@ var Ai = { exports: {} };
770
694
  return this.path;
771
695
  }, R.prototype.getAssetsPath = function(t) {
772
696
  var e = "";
773
- if (t.e)
774
- e = t.p;
697
+ if (t.e) e = t.p;
775
698
  else if (this.assetsPath) {
776
699
  var i = t.p;
777
700
  i.indexOf("images/") !== -1 && (i = i.split("/")[1]), e = this.assetsPath + i;
778
- } else
779
- e = this.path, e += t.u ? t.u : "", e += t.p;
701
+ } else e = this.path, e += t.u ? t.u : "", e += t.p;
780
702
  return e;
781
703
  }, R.prototype.getAssetData = function(t) {
782
704
  for (var e = 0, i = this.assets.length; e < i; ) {
783
- if (t === this.assets[e].id)
784
- return this.assets[e];
705
+ if (t === this.assets[e].id) return this.assets[e];
785
706
  e += 1;
786
707
  }
787
708
  return null;
@@ -797,29 +718,28 @@ var Ai = { exports: {} };
797
718
  } catch {
798
719
  }
799
720
  }, R.prototype.trigger = function(t) {
800
- if (this._cbs && this._cbs[t])
801
- switch (t) {
802
- case "enterFrame":
803
- this.triggerEvent(t, new ai(t, this.currentFrame, this.totalFrames, this.frameModifier));
804
- break;
805
- case "drawnFrame":
806
- this.drawnFrameEvent.currentTime = this.currentFrame, this.drawnFrameEvent.totalTime = this.totalFrames, this.drawnFrameEvent.direction = this.frameModifier, this.triggerEvent(t, this.drawnFrameEvent);
807
- break;
808
- case "loopComplete":
809
- this.triggerEvent(t, new Ii(t, this.loop, this.playCount, this.frameMult));
810
- break;
811
- case "complete":
812
- this.triggerEvent(t, new Li(t, this.frameMult));
813
- break;
814
- case "segmentStart":
815
- this.triggerEvent(t, new Vi(t, this.firstFrame, this.totalFrames));
816
- break;
817
- case "destroy":
818
- this.triggerEvent(t, new Ri(t, this));
819
- break;
820
- default:
821
- this.triggerEvent(t);
822
- }
721
+ if (this._cbs && this._cbs[t]) switch (t) {
722
+ case "enterFrame":
723
+ this.triggerEvent(t, new ai(t, this.currentFrame, this.totalFrames, this.frameModifier));
724
+ break;
725
+ case "drawnFrame":
726
+ this.drawnFrameEvent.currentTime = this.currentFrame, this.drawnFrameEvent.totalTime = this.totalFrames, this.drawnFrameEvent.direction = this.frameModifier, this.triggerEvent(t, this.drawnFrameEvent);
727
+ break;
728
+ case "loopComplete":
729
+ this.triggerEvent(t, new Ii(t, this.loop, this.playCount, this.frameMult));
730
+ break;
731
+ case "complete":
732
+ this.triggerEvent(t, new Li(t, this.frameMult));
733
+ break;
734
+ case "segmentStart":
735
+ this.triggerEvent(t, new Vi(t, this.firstFrame, this.totalFrames));
736
+ break;
737
+ case "destroy":
738
+ this.triggerEvent(t, new Ri(t, this));
739
+ break;
740
+ default:
741
+ this.triggerEvent(t);
742
+ }
823
743
  t === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new ai(t, this.currentFrame, this.totalFrames, this.frameMult)), t === "loopComplete" && this.onLoopComplete && this.onLoopComplete.call(this, new Ii(t, this.loop, this.playCount, this.frameMult)), t === "complete" && this.onComplete && this.onComplete.call(this, new Li(t, this.frameMult)), t === "segmentStart" && this.onSegmentStart && this.onSegmentStart.call(this, new Vi(t, this.firstFrame, this.totalFrames)), t === "destroy" && this.onDestroy && this.onDestroy.call(this, new Ri(t, this));
824
744
  }, R.prototype.triggerRenderFrameError = function(t) {
825
745
  var e = new Is(t, this.currentFrame);
@@ -831,15 +751,12 @@ var Ai = { exports: {} };
831
751
  var lt = function() {
832
752
  var t = {}, e = [], i = 0, s = 0, a = 0, r = !0, h = !1;
833
753
  function n(p) {
834
- for (var f = 0, m = p.target; f < s; )
835
- e[f].animation === m && (e.splice(f, 1), f -= 1, s -= 1, m.isPaused || o()), f += 1;
754
+ for (var f = 0, m = p.target; f < s; ) e[f].animation === m && (e.splice(f, 1), f -= 1, s -= 1, m.isPaused || o()), f += 1;
836
755
  }
837
756
  function u(p, f) {
838
- if (!p)
839
- return null;
757
+ if (!p) return null;
840
758
  for (var m = 0; m < s; ) {
841
- if (e[m].elem === p && e[m].elem !== null)
842
- return e[m].animation;
759
+ if (e[m].elem === p && e[m].elem !== null) return e[m].animation;
843
760
  m += 1;
844
761
  }
845
762
  var v = new R();
@@ -856,8 +773,7 @@ var Ai = { exports: {} };
856
773
  }
857
774
  function c(p) {
858
775
  var f, m = p - i;
859
- for (f = 0; f < s; f += 1)
860
- e[f].animation.advanceTime(m);
776
+ for (f = 0; f < s; f += 1) e[f].animation.advanceTime(m);
861
777
  i = p, a && !h ? window.requestAnimationFrame(c) : r = !0;
862
778
  }
863
779
  function g(p) {
@@ -871,32 +787,25 @@ var Ai = { exports: {} };
871
787
  return d(f, null), f.setParams(p), f;
872
788
  }, t.setSpeed = function(p, f) {
873
789
  var m;
874
- for (m = 0; m < s; m += 1)
875
- e[m].animation.setSpeed(p, f);
790
+ for (m = 0; m < s; m += 1) e[m].animation.setSpeed(p, f);
876
791
  }, t.setDirection = function(p, f) {
877
792
  var m;
878
- for (m = 0; m < s; m += 1)
879
- e[m].animation.setDirection(p, f);
793
+ for (m = 0; m < s; m += 1) e[m].animation.setDirection(p, f);
880
794
  }, t.play = function(p) {
881
795
  var f;
882
- for (f = 0; f < s; f += 1)
883
- e[f].animation.play(p);
796
+ for (f = 0; f < s; f += 1) e[f].animation.play(p);
884
797
  }, t.pause = function(p) {
885
798
  var f;
886
- for (f = 0; f < s; f += 1)
887
- e[f].animation.pause(p);
799
+ for (f = 0; f < s; f += 1) e[f].animation.pause(p);
888
800
  }, t.stop = function(p) {
889
801
  var f;
890
- for (f = 0; f < s; f += 1)
891
- e[f].animation.stop(p);
802
+ for (f = 0; f < s; f += 1) e[f].animation.stop(p);
892
803
  }, t.togglePause = function(p) {
893
804
  var f;
894
- for (f = 0; f < s; f += 1)
895
- e[f].animation.togglePause(p);
805
+ for (f = 0; f < s; f += 1) e[f].animation.togglePause(p);
896
806
  }, t.searchAnimations = function(p, f, m) {
897
807
  var v, x = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), C = x.length;
898
- for (v = 0; v < C; v += 1)
899
- m && x[v].setAttribute("data-bm-type", m), u(x[v], p);
808
+ for (v = 0; v < C; v += 1) m && x[v].setAttribute("data-bm-type", m), u(x[v], p);
900
809
  if (f && C === 0) {
901
810
  m || (m = "svg");
902
811
  var A = document.getElementsByTagName("body")[0];
@@ -906,43 +815,35 @@ var Ai = { exports: {} };
906
815
  }
907
816
  }, t.resize = function() {
908
817
  var p;
909
- for (p = 0; p < s; p += 1)
910
- e[p].animation.resize();
818
+ for (p = 0; p < s; p += 1) e[p].animation.resize();
911
819
  }, t.goToAndStop = function(p, f, m) {
912
820
  var v;
913
- for (v = 0; v < s; v += 1)
914
- e[v].animation.goToAndStop(p, f, m);
821
+ for (v = 0; v < s; v += 1) e[v].animation.goToAndStop(p, f, m);
915
822
  }, t.destroy = function(p) {
916
823
  var f;
917
- for (f = s - 1; f >= 0; f -= 1)
918
- e[f].animation.destroy(p);
824
+ for (f = s - 1; f >= 0; f -= 1) e[f].animation.destroy(p);
919
825
  }, t.freeze = function() {
920
826
  h = !0;
921
827
  }, t.unfreeze = function() {
922
828
  h = !1, l();
923
829
  }, t.setVolume = function(p, f) {
924
830
  var m;
925
- for (m = 0; m < s; m += 1)
926
- e[m].animation.setVolume(p, f);
831
+ for (m = 0; m < s; m += 1) e[m].animation.setVolume(p, f);
927
832
  }, t.mute = function(p) {
928
833
  var f;
929
- for (f = 0; f < s; f += 1)
930
- e[f].animation.mute(p);
834
+ for (f = 0; f < s; f += 1) e[f].animation.mute(p);
931
835
  }, t.unmute = function(p) {
932
836
  var f;
933
- for (f = 0; f < s; f += 1)
934
- e[f].animation.unmute(p);
837
+ for (f = 0; f < s; f += 1) e[f].animation.unmute(p);
935
838
  }, t.getRegisteredAnimations = function() {
936
839
  var p, f = e.length, m = [];
937
- for (p = 0; p < f; p += 1)
938
- m.push(e[p].animation);
840
+ for (p = 0; p < f; p += 1) m.push(e[p].animation);
939
841
  return m;
940
842
  }, t;
941
843
  }(), ke = function() {
942
844
  var t = { getBezierEasing: function(o, d, c, g, l) {
943
845
  var p = l || ("bez_" + o + "_" + d + "_" + c + "_" + g).replace(/\./g, "p");
944
- if (e[p])
945
- return e[p];
846
+ if (e[p]) return e[p];
946
847
  var f = new y([o, d, c, g]);
947
848
  return e[p] = f, f;
948
849
  } }, e = {}, i = 0.1, s = typeof Float32Array == "function";
@@ -971,17 +872,14 @@ var Ai = { exports: {} };
971
872
  var o = this._p[0], d = this._p[1], c = this._p[2], g = this._p[3];
972
873
  this._precomputed = !0, o === d && c === g || this._calcSampleValues();
973
874
  }, _calcSampleValues: function() {
974
- for (var o = this._p[0], d = this._p[2], c = 0; c < 11; ++c)
975
- this._mSampleValues[c] = n(c * i, o, d);
875
+ for (var o = this._p[0], d = this._p[2], c = 0; c < 11; ++c) this._mSampleValues[c] = n(c * i, o, d);
976
876
  }, _getTForX: function(o) {
977
- for (var d = this._p[0], c = this._p[2], g = this._mSampleValues, l = 0, p = 1; p !== 10 && g[p] <= o; ++p)
978
- l += i;
877
+ for (var d = this._p[0], c = this._p[2], g = this._mSampleValues, l = 0, p = 1; p !== 10 && g[p] <= o; ++p) l += i;
979
878
  var f = l + (o - g[--p]) / (g[p + 1] - g[p]) * i, m = u(f, d, c);
980
879
  return m >= 1e-3 ? function(v, x, C, A) {
981
880
  for (var T = 0; T < 4; ++T) {
982
881
  var I = u(x, C, A);
983
- if (I === 0)
984
- return x;
882
+ if (I === 0) return x;
985
883
  x -= (n(x, C, A) - v) / I;
986
884
  }
987
885
  return x;
@@ -1008,8 +906,7 @@ var Ai = { exports: {} };
1008
906
  return { lengths: [], totalLength: 0 };
1009
907
  }, function(t) {
1010
908
  var e, i = t.lengths.length;
1011
- for (e = 0; e < i; e += 1)
1012
- ji.release(t.lengths[e]);
909
+ for (e = 0; e < i; e += 1) ji.release(t.lengths[e]);
1013
910
  t.lengths.length = 0;
1014
911
  }), Rt = function() {
1015
912
  var t = Math;
@@ -1020,8 +917,7 @@ var Ai = { exports: {} };
1020
917
  var i = function(y, o, d, c) {
1021
918
  var g, l, p, f, m, v, x = qe(), C = 0, A = [], T = [], I = ji.newElement();
1022
919
  for (p = d.length, g = 0; g < x; g += 1) {
1023
- for (m = g / (x - 1), v = 0, l = 0; l < p; l += 1)
1024
- f = Vt(1 - m, 3) * y[l] + 3 * Vt(1 - m, 2) * m * d[l] + 3 * (1 - m) * Vt(m, 2) * c[l] + Vt(m, 3) * o[l], A[l] = f, T[l] !== null && (v += Vt(A[l] - T[l], 2)), T[l] = A[l];
920
+ for (m = g / (x - 1), v = 0, l = 0; l < p; l += 1) f = Vt(1 - m, 3) * y[l] + 3 * Vt(1 - m, 2) * m * d[l] + 3 * (1 - m) * Vt(m, 2) * c[l] + Vt(m, 3) * o[l], A[l] = f, T[l] !== null && (v += Vt(A[l] - T[l], 2)), T[l] = A[l];
1025
921
  v && (C += v = Fi(v)), I.percents[g] = m, I.lengths[g] = C;
1026
922
  }
1027
923
  return I.addedLength = C, I;
@@ -1039,8 +935,7 @@ var Ai = { exports: {} };
1039
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);
1040
936
  var k = new s(A);
1041
937
  for (f = d.length, l = 0; l < A; l += 1) {
1042
- for (C = K(f), v = l / (A - 1), x = 0, p = 0; p < f; p += 1)
1043
- m = Vt(1 - v, 3) * y[p] + 3 * Vt(1 - v, 2) * v * (y[p] + d[p]) + 3 * (1 - v) * Vt(v, 2) * (o[p] + c[p]) + Vt(v, 3) * o[p], C[p] = m, I !== null && (x += Vt(C[p] - I[p], 2));
938
+ for (C = K(f), v = l / (A - 1), x = 0, p = 0; p < f; p += 1) m = Vt(1 - v, 3) * y[p] + 3 * Vt(1 - v, 2) * v * (y[p] + d[p]) + 3 * (1 - v) * Vt(v, 2) * (o[p] + c[p]) + Vt(v, 3) * o[p], C[p] = m, I !== null && (x += Vt(C[p] - I[p], 2));
1044
939
  T += x = Fi(x), k.points[l] = new a(x, C), I = C;
1045
940
  }
1046
941
  k.segmentLength = T, r[g] = k;
@@ -1049,34 +944,28 @@ var Ai = { exports: {} };
1049
944
  });
1050
945
  function n(y, o) {
1051
946
  var d = o.percents, c = o.lengths, g = d.length, l = gt((g - 1) * y), p = y * o.addedLength, f = 0;
1052
- if (l === g - 1 || l === 0 || p === c[l])
1053
- return d[l];
1054
- for (var m = c[l] > p ? -1 : 1, v = !0; v; )
1055
- if (c[l] <= p && c[l + 1] > p ? (f = (p - c[l]) / (c[l + 1] - c[l]), v = !1) : l += m, l < 0 || l >= g - 1) {
1056
- if (l === g - 1)
1057
- return d[l];
1058
- v = !1;
1059
- }
947
+ if (l === g - 1 || l === 0 || p === c[l]) return d[l];
948
+ for (var m = c[l] > p ? -1 : 1, v = !0; v; ) if (c[l] <= p && c[l + 1] > p ? (f = (p - c[l]) / (c[l + 1] - c[l]), v = !1) : l += m, l < 0 || l >= g - 1) {
949
+ if (l === g - 1) return d[l];
950
+ v = !1;
951
+ }
1060
952
  return d[l] + (d[l + 1] - d[l]) * f;
1061
953
  }
1062
954
  var u = ht("float32", 8);
1063
955
  return { getSegmentsLength: function(y) {
1064
956
  var o, d = Ji.newElement(), c = y.c, g = y.v, l = y.o, p = y.i, f = y._length, m = d.lengths, v = 0;
1065
- for (o = 0; o < f - 1; o += 1)
1066
- m[o] = i(g[o], g[o + 1], l[o], p[o + 1]), v += m[o].addedLength;
957
+ for (o = 0; o < f - 1; o += 1) m[o] = i(g[o], g[o + 1], l[o], p[o + 1]), v += m[o].addedLength;
1067
958
  return c && f && (m[o] = i(g[o], g[0], l[o], p[0]), v += m[o].addedLength), d.totalLength = v, d;
1068
959
  }, getNewSegment: function(y, o, d, c, g, l, p) {
1069
960
  g < 0 ? g = 0 : g > 1 && (g = 1);
1070
961
  var f, m = n(g, p), v = n(l = l > 1 ? 1 : l, p), x = y.length, C = 1 - m, A = 1 - v, T = C * C * C, I = m * C * C * 3, k = m * m * C * 3, F = m * m * m, M = C * C * A, _ = m * C * A + C * m * A + C * C * v, D = m * m * A + C * m * v + m * C * v, w = m * m * v, P = C * A * A, V = m * A * A + C * v * A + C * A * v, O = m * v * A + C * v * v + m * A * v, B = m * 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;
1071
- for (f = 0; f < x; f += 1)
1072
- u[4 * f] = t.round(1e3 * (T * y[f] + I * d[f] + k * c[f] + F * o[f])) / 1e3, u[4 * f + 1] = t.round(1e3 * (M * y[f] + _ * d[f] + D * c[f] + w * o[f])) / 1e3, u[4 * f + 2] = t.round(1e3 * (P * y[f] + V * d[f] + O * c[f] + B * o[f])) / 1e3, u[4 * f + 3] = t.round(1e3 * (b * y[f] + S * d[f] + L * c[f] + N * o[f])) / 1e3;
962
+ for (f = 0; f < x; f += 1) u[4 * f] = t.round(1e3 * (T * y[f] + I * d[f] + k * c[f] + F * o[f])) / 1e3, u[4 * f + 1] = t.round(1e3 * (M * y[f] + _ * d[f] + D * c[f] + w * o[f])) / 1e3, u[4 * f + 2] = t.round(1e3 * (P * y[f] + V * d[f] + O * c[f] + B * o[f])) / 1e3, u[4 * f + 3] = t.round(1e3 * (b * y[f] + S * d[f] + L * c[f] + N * o[f])) / 1e3;
1073
963
  return u;
1074
964
  }, getPointInSegment: function(y, o, d, c, g, l) {
1075
965
  var p = n(g, l), f = 1 - p;
1076
966
  return [t.round(1e3 * (f * f * f * y[0] + (p * f * f + f * p * f + f * f * p) * d[0] + (p * p * f + f * p * p + p * f * p) * c[0] + p * p * p * o[0])) / 1e3, t.round(1e3 * (f * f * f * y[1] + (p * f * f + f * p * f + f * f * p) * d[1] + (p * p * f + f * p * p + p * f * p) * c[1] + p * p * p * o[1])) / 1e3];
1077
967
  }, buildBezierData: h, pointOnLine2D: e, pointOnLine3D: function(y, o, d, c, g, l, p, f, m) {
1078
- if (d === 0 && l === 0 && m === 0)
1079
- return e(y, o, c, g, p, f);
968
+ if (d === 0 && l === 0 && m === 0) return e(y, o, c, g, p, f);
1080
969
  var v, x = t.sqrt(t.pow(c - y, 2) + t.pow(g - o, 2) + t.pow(l - d, 2)), C = t.sqrt(t.pow(p - y, 2) + t.pow(f - o, 2) + t.pow(m - d, 2)), A = t.sqrt(t.pow(p - c, 2) + t.pow(f - g, 2) + t.pow(m - l, 2));
1081
970
  return (v = x > C ? x > A ? x - C - A : A - C - x : A > C ? A - C - x : C - x - A) > -1e-4 && v < 1e-4;
1082
971
  } };
@@ -1102,20 +991,17 @@ var Ai = { exports: {} };
1102
991
  var w = h.bezierData;
1103
992
  if (t >= _ || t < D) {
1104
993
  var P = t >= _ ? w.points.length - 1 : 0;
1105
- for (u = w.points[P].point.length, n = 0; n < u; n += 1)
1106
- i[n] = w.points[P].point[n];
994
+ for (u = w.points[P].point.length, n = 0; n < u; n += 1) i[n] = w.points[P].point[n];
1107
995
  } else {
1108
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));
1109
997
  var V, O = w.segmentLength * y, B = e.lastFrame < t && e._lastKeyframeIndex === l ? e._lastAddedLength : 0;
1110
998
  for (d = e.lastFrame < t && e._lastKeyframeIndex === l ? e._lastPoint : 0, f = !0, o = w.points.length; f; ) {
1111
999
  if (B += w.points[d].partialLength, O === 0 || y === 0 || d === w.points.length - 1) {
1112
- for (u = w.points[d].point.length, n = 0; n < u; n += 1)
1113
- i[n] = w.points[d].point[n];
1000
+ for (u = w.points[d].point.length, n = 0; n < u; n += 1) i[n] = w.points[d].point[n];
1114
1001
  break;
1115
1002
  }
1116
1003
  if (O >= B && O < B + w.points[d + 1].partialLength) {
1117
- for (V = (O - B) / w.points[d + 1].partialLength, u = w.points[d].point.length, n = 0; n < u; n += 1)
1118
- i[n] = w.points[d].point[n] + (w.points[d + 1].point[n] - w.points[d].point[n]) * V;
1004
+ for (V = (O - B) / w.points[d + 1].partialLength, u = w.points[d].point.length, n = 0; n < u; n += 1) i[n] = w.points[d].point[n] + (w.points[d + 1].point[n] - w.points[d].point[n]) * V;
1119
1005
  break;
1120
1006
  }
1121
1007
  d < o - 1 ? d += 1 : f = !1;
@@ -1124,21 +1010,16 @@ var Ai = { exports: {} };
1124
1010
  }
1125
1011
  } else {
1126
1012
  var b, S, L, N, U;
1127
- if (p = a.s.length, m = r.s || a.e, this.sh && a.h !== 1)
1128
- if (t >= _)
1129
- i[0] = m[0], i[1] = m[1], i[2] = m[2];
1130
- else if (t <= D)
1131
- i[0] = a.s[0], i[1] = a.s[1], i[2] = a.s[2];
1132
- else {
1133
- var $ = Hi(a.s), Q = Hi(m);
1134
- v = i, x = function(J, tt, j) {
1135
- 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];
1136
- 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;
1137
- }($, Q, (t - D) / (_ - D)), C = x[0], A = x[1], T = x[2], I = x[3], k = Math.atan2(2 * A * I - 2 * C * T, 1 - 2 * A * A - 2 * T * T), F = Math.asin(2 * C * A + 2 * T * I), M = Math.atan2(2 * C * I - 2 * A * T, 1 - 2 * C * C - 2 * T * T), v[0] = k / et, v[1] = F / et, v[2] = M / et;
1138
- }
1139
- else
1140
- for (l = 0; l < p; l += 1)
1141
- 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)))), m = r.s || a.e, U = a.h === 1 ? a.s[l] : a.s[l] + (m[l] - a.s[l]) * y, this.propType === "multidimensional" ? i[l] = U : i = U;
1013
+ if (p = a.s.length, m = r.s || a.e, this.sh && a.h !== 1) if (t >= _) i[0] = m[0], i[1] = m[1], i[2] = m[2];
1014
+ else if (t <= D) i[0] = a.s[0], i[1] = a.s[1], i[2] = a.s[2];
1015
+ else {
1016
+ var $ = Hi(a.s), Q = Hi(m);
1017
+ v = i, x = function(J, tt, j) {
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
+ 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 = x[0], A = x[1], T = x[2], I = x[3], k = Math.atan2(2 * A * I - 2 * C * T, 1 - 2 * A * A - 2 * T * T), F = Math.asin(2 * C * A + 2 * T * I), M = Math.atan2(2 * C * I - 2 * A * T, 1 - 2 * C * C - 2 * T * T), v[0] = k / et, v[1] = F / et, v[2] = M / et;
1021
+ }
1022
+ else for (l = 0; l < p; 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)))), m = r.s || a.e, U = a.h === 1 ? a.s[l] : a.s[l] + (m[l] - a.s[l]) * y, this.propType === "multidimensional" ? i[l] = U : i = U;
1142
1023
  }
1143
1024
  return e.lastIndex = g, i;
1144
1025
  }
@@ -1157,24 +1038,18 @@ var Ai = { exports: {} };
1157
1038
  }
1158
1039
  function je(t) {
1159
1040
  var e;
1160
- if (this.propType === "unidimensional")
1161
- e = t * this.mult, Yi(this.v - e) > 1e-5 && (this.v = e, this._mdf = !0);
1162
- else
1163
- for (var i = 0, s = this.v.length; i < s; )
1164
- e = t[i] * this.mult, Yi(this.v[i] - e) > 1e-5 && (this.v[i] = e, this._mdf = !0), i += 1;
1041
+ if (this.propType === "unidimensional") e = t * this.mult, Yi(this.v - e) > 1e-5 && (this.v = e, this._mdf = !0);
1042
+ else for (var i = 0, s = this.v.length; i < s; ) e = t[i] * this.mult, Yi(this.v[i] - e) > 1e-5 && (this.v[i] = e, this._mdf = !0), i += 1;
1165
1043
  }
1166
1044
  function Je() {
1167
- if (this.elem.globalData.frameId !== this.frameId && this.effectsSequence.length)
1168
- if (this.lock)
1169
- this.setVValue(this.pv);
1170
- else {
1171
- var t;
1172
- this.lock = !0, this._mdf = this._isFirstFrame;
1173
- var e = this.effectsSequence.length, i = this.kf ? this.pv : this.data.k;
1174
- for (t = 0; t < e; t += 1)
1175
- i = this.effectsSequence[t](i);
1176
- this.setVValue(i), this._isFirstFrame = !1, this.lock = !1, this.frameId = this.elem.globalData.frameId;
1177
- }
1045
+ if (this.elem.globalData.frameId !== this.frameId && this.effectsSequence.length) if (this.lock) this.setVValue(this.pv);
1046
+ else {
1047
+ var t;
1048
+ this.lock = !0, this._mdf = this._isFirstFrame;
1049
+ var e = this.effectsSequence.length, i = this.kf ? this.pv : this.data.k;
1050
+ for (t = 0; t < e; t += 1) i = this.effectsSequence[t](i);
1051
+ this.setVValue(i), this._isFirstFrame = !1, this.lock = !1, this.frameId = this.elem.globalData.frameId;
1052
+ }
1178
1053
  }
1179
1054
  function Ye(t) {
1180
1055
  this.effectsSequence.push(t), this.container.addDynamicProperty(this);
@@ -1186,8 +1061,7 @@ var Ai = { exports: {} };
1186
1061
  var a;
1187
1062
  this.propType = "multidimensional", this.mult = i || 1, this.data = e, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.frameId = -1;
1188
1063
  var r = e.k.length;
1189
- for (this.v = ht("float32", r), this.pv = ht("float32", r), this.vel = ht("float32", r), a = 0; a < r; a += 1)
1190
- this.v[a] = e.k[a] * this.mult, this.pv[a] = e.k[a];
1064
+ for (this.v = ht("float32", r), this.pv = ht("float32", r), this.vel = ht("float32", r), a = 0; a < r; a += 1) this.v[a] = e.k[a] * this.mult, this.pv[a] = e.k[a];
1191
1065
  this._isFirstFrame = !0, this.effectsSequence = [], this.getValue = Je, this.setVValue = je, this.addEffect = Ye;
1192
1066
  }
1193
1067
  function Bs(t, e, i, s) {
@@ -1197,29 +1071,23 @@ var Ai = { exports: {} };
1197
1071
  var a;
1198
1072
  this.propType = "multidimensional";
1199
1073
  var r, h, n, u, y = e.k.length;
1200
- for (a = 0; a < y - 1; a += 1)
1201
- 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, u = 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] + u[0], h[1] + u[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] + u[0], h[1] + u[1], h[2] + u[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 && u[0] === 0 && u[1] === 0 && (r.length === 2 || r[2] === h[2] && n[2] === 0 && u[2] === 0) && (e.k[a].to = null, e.k[a].ti = null));
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, u = 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] + u[0], h[1] + u[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] + u[0], h[1] + u[1], h[2] + u[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 && u[0] === 0 && u[1] === 0 && (r.length === 2 || r[2] === h[2] && n[2] === 0 && u[2] === 0) && (e.k[a].to = null, e.k[a].ti = null));
1202
1075
  this.effectsSequence = [Gi.bind(this)], this.data = e, this.keyframes = e.k, this.keyframesMetadata = [], this.offsetTime = t.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.getValue = Je, this.setVValue = je, this.interpolateValue = Xi, this.frameId = -1;
1203
1076
  var o = e.k[0].s.length;
1204
- for (this.v = ht("float32", o), this.pv = ht("float32", o), a = 0; a < o; a += 1)
1205
- this.v[a] = ae, this.pv[a] = ae;
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;
1206
1078
  this._caching = { lastFrame: ae, lastIndex: 0, value: ht("float32", o) }, this.addEffect = Ye;
1207
1079
  }
1208
1080
  var E = { getProp: function(t, e, i, s, a) {
1209
1081
  var r;
1210
- if (e.sid && (e = t.globalData.slotManager.getProp(e)), e.k.length)
1211
- if (typeof e.k[0] == "number")
1212
- r = new qs(t, e, s, a);
1213
- else
1214
- switch (i) {
1215
- case 0:
1216
- r = new Bs(t, e, s, a);
1217
- break;
1218
- case 1:
1219
- r = new Ws(t, e, s, a);
1220
- }
1221
- else
1222
- r = new Ns(t, e, s, a);
1082
+ if (e.sid && (e = t.globalData.slotManager.getProp(e)), e.k.length) if (typeof e.k[0] == "number") r = new qs(t, e, s, a);
1083
+ else switch (i) {
1084
+ case 0:
1085
+ r = new Bs(t, e, s, a);
1086
+ break;
1087
+ case 1:
1088
+ r = new Ws(t, e, s, a);
1089
+ }
1090
+ else r = new Ns(t, e, s, a);
1223
1091
  return r.effectsSequence.length && a.addDynamicProperty(r), r;
1224
1092
  } };
1225
1093
  function mt() {
@@ -1230,8 +1098,7 @@ var Ai = { exports: {} };
1230
1098
  var t;
1231
1099
  this._mdf = !1;
1232
1100
  var e = this.dynamicProperties.length;
1233
- for (t = 0; t < e; t += 1)
1234
- this.dynamicProperties[t].getValue(), this.dynamicProperties[t]._mdf && (this._mdf = !0);
1101
+ for (t = 0; t < e; t += 1) this.dynamicProperties[t].getValue(), this.dynamicProperties[t]._mdf && (this._mdf = !0);
1235
1102
  }, initDynamicPropertyContainer: function(t) {
1236
1103
  this.container = t, this.dynamicProperties = [], this._mdf = !1, this._isAnimated = !1;
1237
1104
  } };
@@ -1243,11 +1110,9 @@ var Ai = { exports: {} };
1243
1110
  }
1244
1111
  Yt.prototype.setPathData = function(t, e) {
1245
1112
  this.c = t, this.setLength(e);
1246
- for (var i = 0; i < e; )
1247
- this.v[i] = re.newElement(), this.o[i] = re.newElement(), this.i[i] = re.newElement(), i += 1;
1113
+ for (var i = 0; i < e; ) this.v[i] = re.newElement(), this.o[i] = re.newElement(), this.i[i] = re.newElement(), i += 1;
1248
1114
  }, Yt.prototype.setLength = function(t) {
1249
- for (; this._maxLength < t; )
1250
- this.doubleArrayLength();
1115
+ for (; this._maxLength < t; ) this.doubleArrayLength();
1251
1116
  this._length = t;
1252
1117
  }, Yt.prototype.doubleArrayLength = function() {
1253
1118
  this.v = this.v.concat(K(this._maxLength)), this.i = this.i.concat(K(this._maxLength)), this.o = this.o.concat(K(this._maxLength)), this._maxLength *= 2;
@@ -1275,8 +1140,7 @@ var Ai = { exports: {} };
1275
1140
  var e = this.v, i = this.o, s = this.i, a = 0;
1276
1141
  this.c && (t.setTripleAt(e[0][0], e[0][1], s[0][0], s[0][1], i[0][0], i[0][1], 0, !1), a = 1);
1277
1142
  var r, h = this._length - 1, n = this._length;
1278
- for (r = a; r < n; r += 1)
1279
- t.setTripleAt(e[h][0], e[h][1], s[h][0], s[h][1], i[h][0], i[h][1], r, !1), h -= 1;
1143
+ for (r = a; r < n; r += 1) t.setTripleAt(e[h][0], e[h][1], s[h][0], s[h][1], i[h][0], i[h][1], r, !1), h -= 1;
1280
1144
  return t;
1281
1145
  }, Yt.prototype.length = function() {
1282
1146
  return this._length;
@@ -1285,13 +1149,11 @@ var Ai = { exports: {} };
1285
1149
  return new Yt();
1286
1150
  }, function(t) {
1287
1151
  var e, i = t._length;
1288
- for (e = 0; e < i; e += 1)
1289
- re.release(t.v[e]), re.release(t.i[e]), re.release(t.o[e]), t.v[e] = null, t.i[e] = null, t.o[e] = null;
1152
+ for (e = 0; e < i; e += 1) re.release(t.v[e]), re.release(t.i[e]), re.release(t.o[e]), t.v[e] = null, t.i[e] = null, t.o[e] = null;
1290
1153
  t._length = 0, t.c = !1;
1291
1154
  })).clone = function(t) {
1292
1155
  var e, i = hi.newElement(), s = t._length === void 0 ? t.v.length : t._length;
1293
- for (i.setLength(s), i.c = t.c, e = 0; e < s; e += 1)
1294
- i.setTripleAt(t.v[e][0], t.v[e][1], t.o[e][0], t.o[e][1], t.i[e][0], t.i[e][1], e);
1156
+ for (i.setLength(s), i.c = t.c, e = 0; e < s; e += 1) i.setTripleAt(t.v[e][0], t.v[e][1], t.o[e][0], t.o[e][1], t.i[e][0], t.i[e][1], e);
1295
1157
  return i;
1296
1158
  }, hi);
1297
1159
  function li() {
@@ -1301,33 +1163,26 @@ var Ai = { exports: {} };
1301
1163
  this._length === this._maxLength && (this.shapes = this.shapes.concat(K(this._maxLength)), this._maxLength *= 2), this.shapes[this._length] = t, this._length += 1;
1302
1164
  }, li.prototype.releaseShapes = function() {
1303
1165
  var t;
1304
- for (t = 0; t < this._length; t += 1)
1305
- yt.release(this.shapes[t]);
1166
+ for (t = 0; t < this._length; t += 1) yt.release(this.shapes[t]);
1306
1167
  this._length = 0;
1307
1168
  };
1308
1169
  var Ki, fe, pi, Pe, ce = (Ki = { newShapeCollection: function() {
1309
1170
  return fe ? Pe[fe -= 1] : new li();
1310
1171
  }, release: function(t) {
1311
1172
  var e, i = t._length;
1312
- for (e = 0; e < i; e += 1)
1313
- yt.release(t.shapes[e]);
1173
+ for (e = 0; e < i; e += 1) yt.release(t.shapes[e]);
1314
1174
  t._length = 0, fe === pi && (Pe = Wi.double(Pe), pi *= 2), Pe[fe] = t, fe += 1;
1315
1175
  } }, fe = 0, Pe = K(pi = 4), Ki), de = function() {
1316
1176
  var t = -999999;
1317
1177
  function e(g, l, p) {
1318
1178
  var f, m, v, x, C, A, T, I, k, F = p.lastIndex, M = this.keyframes;
1319
- if (g < M[0].t - this.offsetTime)
1320
- f = M[0].s[0], v = !0, F = 0;
1321
- else if (g >= M[M.length - 1].t - this.offsetTime)
1322
- f = M[M.length - 1].s ? M[M.length - 1].s[0] : M[M.length - 2].e[0], v = !0;
1179
+ if (g < M[0].t - this.offsetTime) f = M[0].s[0], v = !0, F = 0;
1180
+ else if (g >= M[M.length - 1].t - this.offsetTime) f = M[M.length - 1].s ? M[M.length - 1].s[0] : M[M.length - 2].e[0], v = !0;
1323
1181
  else {
1324
- for (var _, D, w, P = F, V = M.length - 1, O = !0; O && (_ = M[P], !((D = M[P + 1]).t - this.offsetTime > g)); )
1325
- P < V - 1 ? P += 1 : O = !1;
1182
+ for (var _, D, w, P = F, V = M.length - 1, O = !0; O && (_ = M[P], !((D = M[P + 1]).t - this.offsetTime > g)); ) P < V - 1 ? P += 1 : O = !1;
1326
1183
  if (w = this.keyframesMetadata[P] || {}, F = P, !(v = _.h === 1)) {
1327
- if (g >= D.t - this.offsetTime)
1328
- I = 1;
1329
- else if (g < _.t - this.offsetTime)
1330
- I = 0;
1184
+ if (g >= D.t - this.offsetTime) I = 1;
1185
+ else if (g < _.t - this.offsetTime) I = 0;
1331
1186
  else {
1332
1187
  var B;
1333
1188
  w.__fnct ? B = w.__fnct : (B = ke.getBezierEasing(_.o.x, _.o.y, _.i.x, _.i.y).get, w.__fnct = B), I = B((g - (_.t - this.offsetTime)) / (D.t - this.offsetTime - (_.t - this.offsetTime)));
@@ -1336,9 +1191,7 @@ var Ai = { exports: {} };
1336
1191
  }
1337
1192
  f = _.s[0];
1338
1193
  }
1339
- for (A = l._length, T = f.i[0].length, p.lastIndex = F, x = 0; x < A; x += 1)
1340
- for (C = 0; C < T; C += 1)
1341
- k = v ? f.i[x][C] : f.i[x][C] + (m.i[x][C] - f.i[x][C]) * I, l.i[x][C] = k, k = v ? f.o[x][C] : f.o[x][C] + (m.o[x][C] - f.o[x][C]) * I, l.o[x][C] = k, k = v ? f.v[x][C] : f.v[x][C] + (m.v[x][C] - f.v[x][C]) * I, l.v[x][C] = k;
1194
+ for (A = l._length, T = f.i[0].length, p.lastIndex = F, x = 0; x < A; x += 1) for (C = 0; C < T; C += 1) k = v ? f.i[x][C] : f.i[x][C] + (m.i[x][C] - f.i[x][C]) * I, l.i[x][C] = k, k = v ? f.o[x][C] : f.o[x][C] + (m.o[x][C] - f.o[x][C]) * I, l.o[x][C] = k, k = v ? f.v[x][C] : f.v[x][C] + (m.v[x][C] - f.v[x][C]) * I, l.v[x][C] = k;
1342
1195
  }
1343
1196
  function i() {
1344
1197
  var g = this.comp.renderedFrame - this.offsetTime, l = this.keyframes[0].t - this.offsetTime, p = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, f = this._caching.lastFrame;
@@ -1349,30 +1202,22 @@ var Ai = { exports: {} };
1349
1202
  }
1350
1203
  function a(g) {
1351
1204
  (function(l, p) {
1352
- if (l._length !== p._length || l.c !== p.c)
1353
- return !1;
1205
+ if (l._length !== p._length || l.c !== p.c) return !1;
1354
1206
  var f, m = l._length;
1355
- for (f = 0; f < m; f += 1)
1356
- if (l.v[f][0] !== p.v[f][0] || l.v[f][1] !== p.v[f][1] || l.o[f][0] !== p.o[f][0] || l.o[f][1] !== p.o[f][1] || l.i[f][0] !== p.i[f][0] || l.i[f][1] !== p.i[f][1])
1357
- return !1;
1207
+ for (f = 0; f < m; f += 1) if (l.v[f][0] !== p.v[f][0] || l.v[f][1] !== p.v[f][1] || l.o[f][0] !== p.o[f][0] || l.o[f][1] !== p.o[f][1] || l.i[f][0] !== p.i[f][0] || l.i[f][1] !== p.i[f][1]) return !1;
1358
1208
  return !0;
1359
1209
  })(this.v, g) || (this.v = yt.clone(g), this.localShapeCollection.releaseShapes(), this.localShapeCollection.addShape(this.v), this._mdf = !0, this.paths = this.localShapeCollection);
1360
1210
  }
1361
1211
  function r() {
1362
- if (this.elem.globalData.frameId !== this.frameId)
1363
- if (this.effectsSequence.length)
1364
- if (this.lock)
1365
- this.setVValue(this.pv);
1366
- else {
1367
- var g, l;
1368
- this.lock = !0, this._mdf = !1, g = this.kf ? this.pv : this.data.ks ? this.data.ks.k : this.data.pt.k;
1369
- var p = this.effectsSequence.length;
1370
- for (l = 0; l < p; l += 1)
1371
- g = this.effectsSequence[l](g);
1372
- this.setVValue(g), this.lock = !1, this.frameId = this.elem.globalData.frameId;
1373
- }
1374
- else
1375
- this._mdf = !1;
1212
+ if (this.elem.globalData.frameId !== this.frameId) if (this.effectsSequence.length) if (this.lock) this.setVValue(this.pv);
1213
+ else {
1214
+ var g, l;
1215
+ this.lock = !0, this._mdf = !1, g = this.kf ? this.pv : this.data.ks ? this.data.ks.k : this.data.pt.k;
1216
+ var p = this.effectsSequence.length;
1217
+ for (l = 0; l < p; l += 1) g = this.effectsSequence[l](g);
1218
+ this.setVValue(g), this.lock = !1, this.frameId = this.elem.globalData.frameId;
1219
+ }
1220
+ else this._mdf = !1;
1376
1221
  }
1377
1222
  function h(g, l, p) {
1378
1223
  this.propType = "shape", this.comp = g.comp, this.container = g, this.elem = g, this.data = l, this.k = !1, this.kf = !1, this._mdf = !1;
@@ -1441,32 +1286,28 @@ var Ai = { exports: {} };
1441
1286
  return u;
1442
1287
  } };
1443
1288
  return c;
1444
- }(), it = function() {
1289
+ }(), it = /* @__PURE__ */ function() {
1445
1290
  var t = Math.cos, e = Math.sin, i = Math.tan, s = Math.round;
1446
1291
  function a() {
1447
1292
  return this.props[0] = 1, this.props[1] = 0, this.props[2] = 0, this.props[3] = 0, this.props[4] = 0, this.props[5] = 1, this.props[6] = 0, this.props[7] = 0, this.props[8] = 0, this.props[9] = 0, this.props[10] = 1, this.props[11] = 0, this.props[12] = 0, this.props[13] = 0, this.props[14] = 0, this.props[15] = 1, this;
1448
1293
  }
1449
1294
  function r(b) {
1450
- if (b === 0)
1451
- return this;
1295
+ if (b === 0) return this;
1452
1296
  var S = t(b), L = e(b);
1453
1297
  return this._t(S, -L, 0, 0, L, S, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1454
1298
  }
1455
1299
  function h(b) {
1456
- if (b === 0)
1457
- return this;
1300
+ if (b === 0) return this;
1458
1301
  var S = t(b), L = e(b);
1459
1302
  return this._t(1, 0, 0, 0, 0, S, -L, 0, 0, L, S, 0, 0, 0, 0, 1);
1460
1303
  }
1461
1304
  function n(b) {
1462
- if (b === 0)
1463
- return this;
1305
+ if (b === 0) return this;
1464
1306
  var S = t(b), L = e(b);
1465
1307
  return this._t(S, 0, L, 0, 0, 1, 0, 0, -L, 0, S, 0, 0, 0, 0, 1);
1466
1308
  }
1467
1309
  function u(b) {
1468
- if (b === 0)
1469
- return this;
1310
+ if (b === 0) return this;
1470
1311
  var S = t(b), L = e(b);
1471
1312
  return this._t(S, -L, 0, 0, L, S, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1472
1313
  }
@@ -1491,8 +1332,7 @@ var Ai = { exports: {} };
1491
1332
  }
1492
1333
  function p(b, S, L, N, U, $, Q, J, tt, j, Y, ct, bt, rt, nt, at) {
1493
1334
  var q = this.props;
1494
- if (b === 1 && S === 0 && L === 0 && N === 0 && U === 0 && $ === 1 && Q === 0 && J === 0 && tt === 0 && j === 0 && Y === 1 && ct === 0)
1495
- 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;
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;
1496
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], ie = q[9], Lt = q[10], pe = q[11], ti = q[12], ei = q[13], ii = q[14], si = q[15];
1497
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 + ie * U + Lt * tt + pe * bt, q[9] = Et * S + ie * $ + Lt * j + pe * rt, q[10] = Et * L + ie * Q + Lt * Y + pe * nt, q[11] = Et * N + ie * J + Lt * ct + pe * at, q[12] = ti * b + ei * U + ii * tt + si * bt, q[13] = ti * S + ei * $ + ii * j + si * rt, q[14] = ti * L + ei * Q + ii * Y + si * nt, q[15] = ti * N + ei * J + ii * ct + si * at, this._identityCalculated = !1, this;
1498
1338
  }
@@ -1505,22 +1345,19 @@ var Ai = { exports: {} };
1505
1345
  }
1506
1346
  function v(b) {
1507
1347
  for (var S = 0; S < 16; ) {
1508
- if (b.props[S] !== this.props[S])
1509
- return !1;
1348
+ if (b.props[S] !== this.props[S]) return !1;
1510
1349
  S += 1;
1511
1350
  }
1512
1351
  return !0;
1513
1352
  }
1514
1353
  function x(b) {
1515
1354
  var S;
1516
- for (S = 0; S < 16; S += 1)
1517
- b.props[S] = this.props[S];
1355
+ for (S = 0; S < 16; S += 1) b.props[S] = this.props[S];
1518
1356
  return b;
1519
1357
  }
1520
1358
  function C(b) {
1521
1359
  var S;
1522
- for (S = 0; S < 16; S += 1)
1523
- this.props[S] = b[S];
1360
+ for (S = 0; S < 16; S += 1) this.props[S] = b[S];
1524
1361
  }
1525
1362
  function A(b, S, L) {
1526
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] };
@@ -1543,14 +1380,12 @@ var Ai = { exports: {} };
1543
1380
  }
1544
1381
  function _(b) {
1545
1382
  var S, L = b.length, N = [];
1546
- for (S = 0; S < L; S += 1)
1547
- N[S] = M(b[S]);
1383
+ for (S = 0; S < L; S += 1) N[S] = M(b[S]);
1548
1384
  return N;
1549
1385
  }
1550
1386
  function D(b, S, L) {
1551
1387
  var N = ht("float32", 6);
1552
- if (this.isIdentity())
1553
- N[0] = b[0], N[1] = b[1], N[2] = S[0], N[3] = S[1], N[4] = L[0], N[5] = L[1];
1388
+ if (this.isIdentity()) N[0] = b[0], N[1] = b[1], N[2] = S[0], N[3] = S[1], N[4] = L[0], N[5] = L[1];
1554
1389
  else {
1555
1390
  var U = this.props[0], $ = this.props[1], Q = this.props[4], J = this.props[5], tt = this.props[12], j = this.props[13];
1556
1391
  N[0] = b[0] * U + b[1] * Q + tt, N[1] = b[0] * $ + b[1] * J + j, N[2] = S[0] * U + S[1] * Q + tt, N[3] = S[0] * $ + S[1] * J + j, N[4] = L[0] * U + L[1] * Q + tt, N[5] = L[0] * $ + L[1] * J + j;
@@ -1561,14 +1396,12 @@ var Ai = { exports: {} };
1561
1396
  return this.isIdentity() ? [b, S, L] : [b * this.props[0] + S * this.props[4] + L * this.props[8] + this.props[12], b * this.props[1] + S * this.props[5] + L * this.props[9] + this.props[13], b * this.props[2] + S * this.props[6] + L * this.props[10] + this.props[14]];
1562
1397
  }
1563
1398
  function P(b, S) {
1564
- if (this.isIdentity())
1565
- return b + "," + S;
1399
+ if (this.isIdentity()) return b + "," + S;
1566
1400
  var L = this.props;
1567
1401
  return Math.round(100 * (b * L[0] + S * L[4] + L[12])) / 100 + "," + Math.round(100 * (b * L[1] + S * L[5] + L[13])) / 100;
1568
1402
  }
1569
1403
  function V() {
1570
- for (var b = 0, S = this.props, L = "matrix3d("; b < 16; )
1571
- L += s(1e4 * S[b]) / 1e4, L += b === 15 ? ")" : ",", b += 1;
1404
+ for (var b = 0, S = this.props, L = "matrix3d("; b < 16; ) L += s(1e4 * S[b]) / 1e4, L += b === 15 ? ")" : ",", b += 1;
1572
1405
  return L;
1573
1406
  }
1574
1407
  function O(b) {
@@ -1602,20 +1435,18 @@ var Ai = { exports: {} };
1602
1435
  wi = !!e;
1603
1436
  })(t);
1604
1437
  }, H.resize = lt.resize, H.goToAndStop = lt.goToAndStop, H.destroy = lt.destroy, H.setQuality = function(t) {
1605
- if (typeof t == "string")
1606
- switch (t) {
1607
- case "high":
1608
- Ne(200);
1609
- break;
1610
- default:
1611
- case "medium":
1612
- Ne(50);
1613
- break;
1614
- case "low":
1615
- Ne(10);
1616
- }
1617
- else
1618
- !isNaN(t) && t > 1 && Ne(t);
1438
+ if (typeof t == "string") switch (t) {
1439
+ case "high":
1440
+ Ne(200);
1441
+ break;
1442
+ default:
1443
+ case "medium":
1444
+ Ne(50);
1445
+ break;
1446
+ case "low":
1447
+ Ne(10);
1448
+ }
1449
+ else !isNaN(t) && t > 1 && Ne(t);
1619
1450
  }, H.inBrowser = function() {
1620
1451
  return typeof navigator < "u";
1621
1452
  }, H.installPlugin = function(t, e) {
@@ -1640,8 +1471,7 @@ var Ai = { exports: {} };
1640
1471
  Zi = Qi.src ? Qi.src.replace(/^[^\?]+\??/, "") : "", function(t) {
1641
1472
  for (var e = Zi.split("&"), i = 0; i < e.length; i += 1) {
1642
1473
  var s = e[i].split("=");
1643
- if (decodeURIComponent(s[0]) == t)
1644
- return decodeURIComponent(s[1]);
1474
+ if (decodeURIComponent(s[0]) == t) return decodeURIComponent(s[1]);
1645
1475
  }
1646
1476
  }("renderer");
1647
1477
  var js = setInterval(function() {
@@ -1692,8 +1522,7 @@ var Ai = { exports: {} };
1692
1522
  return u.length || u.push([0, 0]), u;
1693
1523
  }, Ft.prototype.releasePathsData = function(t) {
1694
1524
  var e, i = t.length;
1695
- for (e = 0; e < i; e += 1)
1696
- Ji.release(t[e]);
1525
+ for (e = 0; e < i; e += 1) Ji.release(t[e]);
1697
1526
  return t.length = 0, t;
1698
1527
  }, Ft.prototype.processShapes = function(t) {
1699
1528
  var e, i, s, a;
@@ -1704,53 +1533,40 @@ var Ai = { exports: {} };
1704
1533
  e = i, i = h;
1705
1534
  }
1706
1535
  e = 1e-4 * Math.round(1e4 * e), i = 1e-4 * Math.round(1e4 * i), this.sValue = e, this.eValue = i;
1707
- } else
1708
- e = this.sValue, i = this.eValue;
1536
+ } else e = this.sValue, i = this.eValue;
1709
1537
  var n, u, y, o, d, c = this.shapes.length, g = 0;
1710
- if (i === e)
1711
- for (a = 0; a < c; a += 1)
1712
- 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);
1538
+ if (i === 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);
1713
1539
  else if (i === 1 && e === 0 || i === 0 && e === 1) {
1714
- if (this._mdf)
1715
- for (a = 0; a < c; a += 1)
1716
- this.shapes[a].pathsData.length = 0, this.shapes[a].shape._mdf = !0;
1540
+ if (this._mdf) for (a = 0; a < c; a += 1) this.shapes[a].pathsData.length = 0, this.shapes[a].shape._mdf = !0;
1717
1541
  } else {
1718
1542
  var l, p, f = [];
1719
- for (a = 0; a < c; a += 1)
1720
- if ((l = this.shapes[a]).shape._mdf || this._mdf || t || this.m === 2) {
1721
- if (u = (s = l.shape.paths)._length, d = 0, !l.shape._mdf && l.pathsData.length)
1722
- d = l.totalShapeLength;
1723
- else {
1724
- for (y = this.releasePathsData(l.pathsData), n = 0; n < u; n += 1)
1725
- o = Rt.getSegmentsLength(s.shapes[n]), y.push(o), d += o.totalLength;
1726
- l.totalShapeLength = d, l.pathsData = y;
1727
- }
1728
- g += d, l.shape._mdf = !0;
1729
- } else
1730
- l.shape.paths = l.localShapeCollection;
1543
+ for (a = 0; a < c; a += 1) if ((l = this.shapes[a]).shape._mdf || this._mdf || t || this.m === 2) {
1544
+ if (u = (s = l.shape.paths)._length, d = 0, !l.shape._mdf && l.pathsData.length) d = l.totalShapeLength;
1545
+ else {
1546
+ for (y = this.releasePathsData(l.pathsData), n = 0; n < u; n += 1) o = Rt.getSegmentsLength(s.shapes[n]), y.push(o), d += o.totalLength;
1547
+ l.totalShapeLength = d, l.pathsData = y;
1548
+ }
1549
+ g += d, l.shape._mdf = !0;
1550
+ } else l.shape.paths = l.localShapeCollection;
1731
1551
  var m, v = e, x = i, C = 0;
1732
- for (a = c - 1; a >= 0; a -= 1)
1733
- if ((l = this.shapes[a]).shape._mdf) {
1734
- for ((p = l.localShapeCollection).releaseShapes(), this.m === 2 && c > 1 ? (m = this.calculateShapeEdges(e, i, l.totalShapeLength, C, g), C += l.totalShapeLength) : m = [[v, x]], u = m.length, n = 0; n < u; n += 1) {
1735
- v = m[n][0], x = m[n][1], f.length = 0, x <= 1 ? f.push({ s: l.totalShapeLength * v, e: l.totalShapeLength * x }) : v >= 1 ? f.push({ s: l.totalShapeLength * (v - 1), e: l.totalShapeLength * (x - 1) }) : (f.push({ s: l.totalShapeLength * v, e: l.totalShapeLength }), f.push({ s: 0, e: l.totalShapeLength * (x - 1) }));
1736
- var A = this.addShapes(l, f[0]);
1737
- if (f[0].s !== f[0].e) {
1738
- if (f.length > 1)
1739
- if (l.shape.paths.shapes[l.shape.paths._length - 1].c) {
1740
- var T = A.pop();
1741
- this.addPaths(A, p), A = this.addShapes(l, f[1], T);
1742
- } else
1743
- this.addPaths(A, p), A = this.addShapes(l, f[1]);
1744
- this.addPaths(A, p);
1745
- }
1552
+ for (a = c - 1; a >= 0; a -= 1) if ((l = this.shapes[a]).shape._mdf) {
1553
+ for ((p = l.localShapeCollection).releaseShapes(), this.m === 2 && c > 1 ? (m = this.calculateShapeEdges(e, i, l.totalShapeLength, C, g), C += l.totalShapeLength) : m = [[v, x]], u = m.length, n = 0; n < u; n += 1) {
1554
+ v = m[n][0], x = m[n][1], f.length = 0, x <= 1 ? f.push({ s: l.totalShapeLength * v, e: l.totalShapeLength * x }) : v >= 1 ? f.push({ s: l.totalShapeLength * (v - 1), e: l.totalShapeLength * (x - 1) }) : (f.push({ s: l.totalShapeLength * v, e: l.totalShapeLength }), f.push({ s: 0, e: l.totalShapeLength * (x - 1) }));
1555
+ var A = this.addShapes(l, f[0]);
1556
+ if (f[0].s !== f[0].e) {
1557
+ if (f.length > 1) if (l.shape.paths.shapes[l.shape.paths._length - 1].c) {
1558
+ var T = A.pop();
1559
+ this.addPaths(A, p), A = this.addShapes(l, f[1], T);
1560
+ } else this.addPaths(A, p), A = this.addShapes(l, f[1]);
1561
+ this.addPaths(A, p);
1746
1562
  }
1747
- l.shape.paths = p;
1748
1563
  }
1564
+ l.shape.paths = p;
1565
+ }
1749
1566
  }
1750
1567
  }, Ft.prototype.addPaths = function(t, e) {
1751
1568
  var i, s = t.length;
1752
- for (i = 0; i < s; i += 1)
1753
- e.addShape(t[i]);
1569
+ for (i = 0; i < s; i += 1) e.addShape(t[i]);
1754
1570
  }, Ft.prototype.addSegment = function(t, e, i, s, a, r, h) {
1755
1571
  a.setXYAt(e[0], e[1], "o", r), a.setXYAt(i[0], i[1], "i", r + 1), h && a.setXYAt(t[0], t[1], "v", r), a.setXYAt(s[0], s[1], "v", r + 1);
1756
1572
  }, Ft.prototype.addSegmentFromArray = function(t, e, i, s) {
@@ -1758,26 +1574,22 @@ var Ai = { exports: {} };
1758
1574
  }, Ft.prototype.addShapes = function(t, e, i) {
1759
1575
  var s, a, r, h, n, u, y, o, d = t.pathsData, c = t.shape.paths.shapes, g = t.shape.paths._length, l = 0, p = [], f = !0;
1760
1576
  for (i ? (n = i._length, o = i._length) : (i = yt.newElement(), n = 0, o = 0), p.push(i), s = 0; s < g; s += 1) {
1761
- for (u = d[s].lengths, i.c = c[s].c, r = c[s].c ? u.length : u.length + 1, a = 1; a < r; a += 1)
1762
- if (l + (h = u[a - 1]).addedLength < e.s)
1763
- l += h.addedLength, i.c = !1;
1764
- else {
1765
- if (l > e.e) {
1766
- i.c = !1;
1767
- break;
1768
- }
1769
- e.s <= l && e.e >= l + h.addedLength ? (this.addSegment(c[s].v[a - 1], c[s].o[a - 1], c[s].i[a], c[s].v[a], i, n, f), f = !1) : (y = Rt.getNewSegment(c[s].v[a - 1], c[s].v[a], c[s].o[a - 1], c[s].i[a], (e.s - l) / h.addedLength, (e.e - l) / h.addedLength, u[a - 1]), this.addSegmentFromArray(y, i, n, f), f = !1, i.c = !1), l += h.addedLength, n += 1;
1577
+ for (u = d[s].lengths, i.c = c[s].c, r = c[s].c ? u.length : u.length + 1, a = 1; a < r; a += 1) if (l + (h = u[a - 1]).addedLength < e.s) l += h.addedLength, i.c = !1;
1578
+ else {
1579
+ if (l > e.e) {
1580
+ i.c = !1;
1581
+ break;
1770
1582
  }
1583
+ e.s <= l && e.e >= l + h.addedLength ? (this.addSegment(c[s].v[a - 1], c[s].o[a - 1], c[s].i[a], c[s].v[a], i, n, f), f = !1) : (y = Rt.getNewSegment(c[s].v[a - 1], c[s].v[a], c[s].o[a - 1], c[s].i[a], (e.s - l) / h.addedLength, (e.e - l) / h.addedLength, u[a - 1]), this.addSegmentFromArray(y, i, n, f), f = !1, i.c = !1), l += h.addedLength, n += 1;
1584
+ }
1771
1585
  if (c[s].c && u.length) {
1772
1586
  if (h = u[a - 1], l <= e.e) {
1773
1587
  var m = u[a - 1].addedLength;
1774
1588
  e.s <= l && e.e >= l + m ? (this.addSegment(c[s].v[a - 1], c[s].o[a - 1], c[s].i[0], c[s].v[0], i, n, f), f = !1) : (y = Rt.getNewSegment(c[s].v[a - 1], c[s].v[0], c[s].o[a - 1], c[s].i[0], (e.s - l) / m, (e.e - l) / m, u[a - 1]), this.addSegmentFromArray(y, i, n, f), f = !1, i.c = !1);
1775
- } else
1776
- i.c = !1;
1589
+ } else i.c = !1;
1777
1590
  l += h.addedLength, n += 1;
1778
1591
  }
1779
- if (i._length && (i.setXYAt(i.v[o][0], i.v[o][1], "i", o), i.setXYAt(i.v[i._length - 1][0], i.v[i._length - 1][1], "o", i._length - 1)), l > e.e)
1780
- break;
1592
+ if (i._length && (i.setXYAt(i.v[o][0], i.v[o][1], "i", o), i.setXYAt(i.v[i._length - 1][0], i.v[i._length - 1][1], "o", i._length - 1)), l > e.e) break;
1781
1593
  s < g - 1 && (i = yt.newElement(), f = !0, p.push(i), n = 0);
1782
1594
  }
1783
1595
  return p;
@@ -1785,22 +1597,17 @@ var Ai = { exports: {} };
1785
1597
  this.getValue = this.processKeys, this.amount = E.getProp(t, e.a, 0, null, this), this._isAnimated = !!this.amount.effectsSequence.length;
1786
1598
  }, De.prototype.processPath = function(t, e) {
1787
1599
  var i = e / 100, s = [0, 0], a = t._length, r = 0;
1788
- for (r = 0; r < a; r += 1)
1789
- s[0] += t.v[r][0], s[1] += t.v[r][1];
1600
+ for (r = 0; r < a; r += 1) s[0] += t.v[r][0], s[1] += t.v[r][1];
1790
1601
  s[0] /= a, s[1] /= a;
1791
1602
  var h, n, u, y, o, d, c = yt.newElement();
1792
- for (c.c = t.c, r = 0; r < a; r += 1)
1793
- h = t.v[r][0] + (s[0] - t.v[r][0]) * i, n = t.v[r][1] + (s[1] - t.v[r][1]) * i, u = t.o[r][0] + (s[0] - t.o[r][0]) * -i, y = t.o[r][1] + (s[1] - t.o[r][1]) * -i, o = t.i[r][0] + (s[0] - t.i[r][0]) * -i, d = t.i[r][1] + (s[1] - t.i[r][1]) * -i, c.setTripleAt(h, n, u, y, o, d, r);
1603
+ for (c.c = t.c, r = 0; r < a; r += 1) h = t.v[r][0] + (s[0] - t.v[r][0]) * i, n = t.v[r][1] + (s[1] - t.v[r][1]) * i, u = t.o[r][0] + (s[0] - t.o[r][0]) * -i, y = t.o[r][1] + (s[1] - t.o[r][1]) * -i, o = t.i[r][0] + (s[0] - t.i[r][0]) * -i, d = t.i[r][1] + (s[1] - t.i[r][1]) * -i, c.setTripleAt(h, n, u, y, o, d, r);
1794
1604
  return c;
1795
1605
  }, De.prototype.processShapes = function(t) {
1796
1606
  var e, i, s, a, r, h, n = this.shapes.length, u = this.amount.v;
1797
- if (u !== 0)
1798
- for (i = 0; i < n; i += 1) {
1799
- if (h = (r = this.shapes[i]).localShapeCollection, r.shape._mdf || this._mdf || t)
1800
- for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, s = 0; s < a; s += 1)
1801
- h.addShape(this.processPath(e[s], u));
1802
- r.shape.paths = r.localShapeCollection;
1803
- }
1607
+ if (u !== 0) for (i = 0; i < n; i += 1) {
1608
+ if (h = (r = this.shapes[i]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, s = 0; s < a; s += 1) h.addShape(this.processPath(e[s], u));
1609
+ r.shape.paths = r.localShapeCollection;
1610
+ }
1804
1611
  this.dynamicProperties.length || (this._mdf = !1);
1805
1612
  };
1806
1613
  var Xe = function() {
@@ -1809,12 +1616,10 @@ var Ai = { exports: {} };
1809
1616
  if (this.elem = i, this.frameId = -1, this.propType = "transform", this.data = s, this.v = new it(), this.pre = new it(), this.appliedTransformations = 0, this.initDynamicPropertyContainer(a || i), s.p && s.p.s ? (this.px = E.getProp(i, s.p.x, 0, 0, this), this.py = E.getProp(i, s.p.y, 0, 0, this), s.p.z && (this.pz = E.getProp(i, s.p.z, 0, 0, this))) : this.p = E.getProp(i, s.p || { k: [0, 0, 0] }, 1, 0, this), s.rx) {
1810
1617
  if (this.rx = E.getProp(i, s.rx, 0, et, this), this.ry = E.getProp(i, s.ry, 0, et, this), this.rz = E.getProp(i, s.rz, 0, et, this), s.or.k[0].ti) {
1811
1618
  var r, h = s.or.k.length;
1812
- for (r = 0; r < h; r += 1)
1813
- s.or.k[r].to = null, s.or.k[r].ti = null;
1619
+ for (r = 0; r < h; r += 1) s.or.k[r].to = null, s.or.k[r].ti = null;
1814
1620
  }
1815
1621
  this.or = E.getProp(i, s.or, 1, et, this), this.or.sh = !0;
1816
- } else
1817
- this.r = E.getProp(i, s.r || { k: 0 }, 0, et, this);
1622
+ } else this.r = E.getProp(i, s.r || { k: 0 }, 0, et, this);
1818
1623
  s.sk && (this.sk = E.getProp(i, s.sk, 0, et, this), this.sa = E.getProp(i, s.sa, 0, et, this)), this.a = E.getProp(i, s.a || { k: [0, 0, 0] }, 1, 0, this), this.s = E.getProp(i, s.s || { k: [100, 100, 100] }, 1, 0.01, this), s.o ? this.o = E.getProp(i, s.o, 0, 0.01, i) : this.o = { _mdf: !1, v: 1 }, this._isDirty = !0, this.dynamicProperties.length || this.getValue(!0);
1819
1624
  }
1820
1625
  return e.prototype = { applyToMatrix: function(i) {
@@ -1826,14 +1631,12 @@ var Ai = { exports: {} };
1826
1631
  var s;
1827
1632
  if (this.v.cloneFromProps(this.pre.props), this.appliedTransformations < 1 && this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations < 2 && this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && this.appliedTransformations < 3 && this.v.skewFromAxis(-this.sk.v, this.sa.v), this.r && this.appliedTransformations < 4 ? this.v.rotate(-this.r.v) : !this.r && this.appliedTransformations < 4 && this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.autoOriented) {
1828
1633
  var a, r;
1829
- if (s = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime)
1830
- this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (a = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / s, 0), r = this.p.getValueAtTime(this.p.keyframes[0].t / s, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (a = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / s, 0), r = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / s, 0)) : (a = this.p.pv, r = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / s, this.p.offsetTime));
1634
+ if (s = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime) this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (a = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / s, 0), r = this.p.getValueAtTime(this.p.keyframes[0].t / s, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (a = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / s, 0), r = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / s, 0)) : (a = this.p.pv, r = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / s, this.p.offsetTime));
1831
1635
  else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
1832
1636
  a = [], r = [];
1833
1637
  var h = this.px, n = this.py;
1834
1638
  h._caching.lastFrame + h.offsetTime <= h.keyframes[0].t ? (a[0] = h.getValueAtTime((h.keyframes[0].t + 0.01) / s, 0), a[1] = n.getValueAtTime((n.keyframes[0].t + 0.01) / s, 0), r[0] = h.getValueAtTime(h.keyframes[0].t / s, 0), r[1] = n.getValueAtTime(n.keyframes[0].t / s, 0)) : h._caching.lastFrame + h.offsetTime >= h.keyframes[h.keyframes.length - 1].t ? (a[0] = h.getValueAtTime(h.keyframes[h.keyframes.length - 1].t / s, 0), a[1] = n.getValueAtTime(n.keyframes[n.keyframes.length - 1].t / s, 0), r[0] = h.getValueAtTime((h.keyframes[h.keyframes.length - 1].t - 0.01) / s, 0), r[1] = n.getValueAtTime((n.keyframes[n.keyframes.length - 1].t - 0.01) / s, 0)) : (a = [h.pv, n.pv], r[0] = h.getValueAtTime((h._caching.lastFrame + h.offsetTime - 0.01) / s, h.offsetTime), r[1] = n.getValueAtTime((n._caching.lastFrame + n.offsetTime - 0.01) / s, n.offsetTime));
1835
- } else
1836
- a = r = t;
1639
+ } else a = r = t;
1837
1640
  this.v.rotate(-Math.atan2(a[1] - r[1], a[0] - r[0]));
1838
1641
  }
1839
1642
  this.data.p && this.data.p.s ? this.data.p.z ? this.v.translate(this.px.v, this.py.v, -this.pz.v) : this.v.translate(this.px.v, this.py.v, 0) : this.v.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
@@ -1843,8 +1646,7 @@ var Ai = { exports: {} };
1843
1646
  }, precalculateMatrix: function() {
1844
1647
  if (this.appliedTransformations = 0, this.pre.reset(), !this.a.effectsSequence.length && (this.pre.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations = 1, !this.s.effectsSequence.length)) {
1845
1648
  if (this.pre.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.appliedTransformations = 2, this.sk) {
1846
- if (this.sk.effectsSequence.length || this.sa.effectsSequence.length)
1847
- return;
1649
+ if (this.sk.effectsSequence.length || this.sa.effectsSequence.length) return;
1848
1650
  this.pre.skewFromAxis(-this.sk.v, this.sa.v), this.appliedTransformations = 3;
1849
1651
  }
1850
1652
  this.r ? this.r.effectsSequence.length || (this.pre.rotate(-this.r.v), this.appliedTransformations = 4) : this.rz.effectsSequence.length || this.ry.effectsSequence.length || this.rx.effectsSequence.length || this.or.effectsSequence.length || (this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.appliedTransformations = 4);
@@ -1890,21 +1692,17 @@ var Ai = { exports: {} };
1890
1692
  s = i, i = a;
1891
1693
  }
1892
1694
  for (var r = function(u, y, o) {
1893
- if (u === 0)
1894
- return [];
1695
+ if (u === 0) return [];
1895
1696
  var d = y * y - 4 * u * o;
1896
- if (d < 0)
1897
- return [];
1697
+ if (d < 0) return [];
1898
1698
  var c = -y / (2 * u);
1899
- if (d === 0)
1900
- return [c];
1699
+ if (d === 0) return [c];
1901
1700
  var g = Math.sqrt(d) / (2 * u);
1902
1701
  return [c - g, c + g];
1903
- }(3 * t.a[e], 2 * t.b[e], t.c[e]), h = 0; h < r.length; h += 1)
1904
- if (r[h] > 0 && r[h] < 1) {
1905
- var n = t.point(r[h])[e];
1906
- n < i ? i = n : n > s && (s = n);
1907
- }
1702
+ }(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
+ var n = t.point(r[h])[e];
1704
+ n < i ? i = n : n > s && (s = n);
1705
+ }
1908
1706
  return { min: i, max: s };
1909
1707
  }
1910
1708
  function Ge(t, e, i) {
@@ -1917,13 +1715,11 @@ var Ai = { exports: {} };
1917
1715
  }
1918
1716
  function Ae(t, e, i, s, a, r) {
1919
1717
  var h, n;
1920
- 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)
1921
- if (i >= r || t.width <= s && t.height <= s && e.width <= s && e.height <= s)
1922
- a.push([t.t, e.t]);
1923
- else {
1924
- var u = as(t), y = as(e);
1925
- Ae(u[0], y[0], i + 1, s, a, r), Ae(u[0], y[1], i + 1, s, a, r), Ae(u[1], y[0], i + 1, s, a, r), Ae(u[1], y[1], i + 1, s, a, r);
1926
- }
1718
+ 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 (i >= r || t.width <= s && t.height <= s && e.width <= s && e.height <= s) a.push([t.t, e.t]);
1719
+ else {
1720
+ var u = as(t), y = as(e);
1721
+ Ae(u[0], y[0], i + 1, s, a, r), Ae(u[0], y[1], i + 1, s, a, r), Ae(u[1], y[0], i + 1, s, a, r), Ae(u[1], y[1], i + 1, s, a, r);
1722
+ }
1927
1723
  }
1928
1724
  function di(t, e) {
1929
1725
  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]];
@@ -1976,8 +1772,7 @@ var Ai = { exports: {} };
1976
1772
  }
1977
1773
  function os(t, e, i, s, a) {
1978
1774
  var r = e.points[3], h = i.points[0];
1979
- if (s === 3 || ue(r, h))
1980
- return r;
1775
+ if (s === 3 || ue(r, h)) return r;
1981
1776
  if (s === 2) {
1982
1777
  var n = -e.tangentAngle(1), u = -i.tangentAngle(0) + Math.PI, y = Ke(r, me(r, n + Math.PI / 2, 100), h, me(h, n + Math.PI / 2, 100)), o = y ? mi(y, r) : mi(r, h) / 2, d = me(r, n, 2 * o * Kt);
1983
1778
  return t.setXYAt(d[0], d[1], "o", t.length() - 1), d = me(h, u, 2 * o * Kt), t.setTripleAt(h[0], h[1], h[0], h[1], d[0], d[1], t.length()), h;
@@ -1995,10 +1790,8 @@ var Ai = { exports: {} };
1995
1790
  }
1996
1791
  function ps(t, e) {
1997
1792
  var i, s, a, r, h = t.inflectionPoints();
1998
- if (h.length === 0)
1999
- return [ge(t, e)];
2000
- if (h.length === 1 || He(h[1], 1))
2001
- return i = (a = t.split(h[0]))[0], s = a[1], [ge(i, e), ge(s, e)];
1793
+ if (h.length === 0) return [ge(t, e)];
1794
+ if (h.length === 1 || He(h[1], 1)) return i = (a = t.split(h[0]))[0], s = a[1], [ge(i, e), ge(s, e)];
2002
1795
  i = (a = t.split(h[0]))[0];
2003
1796
  var n = (h[1] - h[0]) / (1 - h[0]);
2004
1797
  return r = (a = a[1].split(n))[0], s = a[1], [ge(i, e), ge(r, e), ge(s, e)];
@@ -2006,28 +1799,27 @@ var Ai = { exports: {} };
2006
1799
  function Me() {
2007
1800
  }
2008
1801
  function fs(t) {
2009
- for (var e = t.fStyle ? t.fStyle.split(" ") : [], i = "normal", s = "normal", a = e.length, r = 0; r < a; r += 1)
2010
- switch (e[r].toLowerCase()) {
2011
- case "italic":
2012
- s = "italic";
2013
- break;
2014
- case "bold":
2015
- i = "700";
2016
- break;
2017
- case "black":
2018
- i = "900";
2019
- break;
2020
- case "medium":
2021
- i = "500";
2022
- break;
2023
- case "regular":
2024
- case "normal":
2025
- i = "400";
2026
- break;
2027
- case "light":
2028
- case "thin":
2029
- i = "200";
2030
- }
1802
+ for (var e = t.fStyle ? t.fStyle.split(" ") : [], i = "normal", s = "normal", a = e.length, r = 0; r < a; r += 1) switch (e[r].toLowerCase()) {
1803
+ case "italic":
1804
+ s = "italic";
1805
+ break;
1806
+ case "bold":
1807
+ i = "700";
1808
+ break;
1809
+ case "black":
1810
+ i = "900";
1811
+ break;
1812
+ case "medium":
1813
+ i = "500";
1814
+ break;
1815
+ case "regular":
1816
+ case "normal":
1817
+ i = "400";
1818
+ break;
1819
+ case "light":
1820
+ case "thin":
1821
+ i = "200";
1822
+ }
2031
1823
  return { style: s, weight: t.fWeight || i };
2032
1824
  }
2033
1825
  W([At], Ot), Ot.prototype.initModifierProperties = function(t, e) {
@@ -2036,20 +1828,17 @@ var Ai = { exports: {} };
2036
1828
  var h = r ? -1 : 1, n = s.s.v[0] + (1 - s.s.v[0]) * (1 - a), u = s.s.v[1] + (1 - s.s.v[1]) * (1 - a);
2037
1829
  t.translate(s.p.v[0] * h * a, s.p.v[1] * h * a, s.p.v[2]), e.translate(-s.a.v[0], -s.a.v[1], s.a.v[2]), e.rotate(-s.r.v * h * a), e.translate(s.a.v[0], s.a.v[1], s.a.v[2]), i.translate(-s.a.v[0], -s.a.v[1], s.a.v[2]), i.scale(r ? 1 / n : n, r ? 1 / u : u), i.translate(s.a.v[0], s.a.v[1], s.a.v[2]);
2038
1830
  }, Ot.prototype.init = function(t, e, i, s) {
2039
- for (this.elem = t, this.arr = e, this.pos = i, this.elemsData = s, this._currentCopies = 0, this._elements = [], this._groups = [], this.frameId = -1, this.initDynamicPropertyContainer(t), this.initModifierProperties(t, e[i]); i > 0; )
2040
- i -= 1, this._elements.unshift(e[i]);
1831
+ for (this.elem = t, this.arr = e, this.pos = i, this.elemsData = s, this._currentCopies = 0, this._elements = [], this._groups = [], this.frameId = -1, this.initDynamicPropertyContainer(t), this.initModifierProperties(t, e[i]); i > 0; ) i -= 1, this._elements.unshift(e[i]);
2041
1832
  this.dynamicProperties.length ? this.k = !0 : this.getValue(!0);
2042
1833
  }, Ot.prototype.resetElements = function(t) {
2043
1834
  var e, i = t.length;
2044
- for (e = 0; e < i; e += 1)
2045
- t[e]._processed = !1, t[e].ty === "gr" && this.resetElements(t[e].it);
1835
+ for (e = 0; e < i; e += 1) t[e]._processed = !1, t[e].ty === "gr" && this.resetElements(t[e].it);
2046
1836
  }, Ot.prototype.cloneElements = function(t) {
2047
1837
  var e = JSON.parse(JSON.stringify(t));
2048
1838
  return this.resetElements(e), e;
2049
1839
  }, Ot.prototype.changeGroupRender = function(t, e) {
2050
1840
  var i, s = t.length;
2051
- for (i = 0; i < s; i += 1)
2052
- t[i]._render = e, t[i].ty === "gr" && this.changeGroupRender(t[i].it, e);
1841
+ for (i = 0; i < s; i += 1) t[i]._render = e, t[i].ty === "gr" && this.changeGroupRender(t[i].it, e);
2053
1842
  }, Ot.prototype.processShapes = function(t) {
2054
1843
  var e, i, s, a, r, h = !1;
2055
1844
  if (this._mdf || t) {
@@ -2073,27 +1862,20 @@ var Ai = { exports: {} };
2073
1862
  this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
2074
1863
  var v, x, C = 0;
2075
1864
  if (c > 0) {
2076
- for (; C < l; )
2077
- this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), C += 1;
1865
+ for (; C < l; ) this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), C += 1;
2078
1866
  g && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, g, !1), C += g);
2079
1867
  } else if (c < 0) {
2080
- for (; C > l; )
2081
- this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), C -= 1;
1868
+ for (; C > l; ) this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), C -= 1;
2082
1869
  g && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -g, !0), C -= g);
2083
1870
  }
2084
1871
  for (s = this.data.m === 1 ? 0 : this._currentCopies - 1, a = this.data.m === 1 ? 1 : -1, r = this._currentCopies; r; ) {
2085
1872
  if (x = (i = (e = this.elemsData[s].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) * (s / (this._currentCopies - 1)), C !== 0) {
2086
- for ((s !== 0 && a === 1 || s !== this._currentCopies - 1 && a === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), 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]), this.matrix.transform(m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11], m[12], m[13], m[14], m[15]), 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]), v = 0; v < x; v += 1)
2087
- i[v] = this.matrix.props[v];
1873
+ for ((s !== 0 && a === 1 || s !== this._currentCopies - 1 && a === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), 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]), this.matrix.transform(m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11], m[12], m[13], m[14], m[15]), 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]), v = 0; v < x; v += 1) i[v] = this.matrix.props[v];
2088
1874
  this.matrix.reset();
2089
- } else
2090
- for (this.matrix.reset(), v = 0; v < x; v += 1)
2091
- i[v] = this.matrix.props[v];
1875
+ } else for (this.matrix.reset(), v = 0; v < x; v += 1) i[v] = this.matrix.props[v];
2092
1876
  C += 1, r -= 1, s += a;
2093
1877
  }
2094
- } else
2095
- for (r = this._currentCopies, s = 0, a = 1; r; )
2096
- i = (e = this.elemsData[s].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, s += a;
1878
+ } else for (r = this._currentCopies, s = 0, a = 1; r; ) i = (e = this.elemsData[s].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, s += a;
2097
1879
  return h;
2098
1880
  }, Ot.prototype.addShape = function() {
2099
1881
  }, W([At], Se), Se.prototype.initModifierProperties = function(t, e) {
@@ -2102,18 +1884,14 @@ var Ai = { exports: {} };
2102
1884
  var i, s = yt.newElement();
2103
1885
  s.c = t.c;
2104
1886
  var a, r, h, n, u, y, o, d, c, g, l, p, f = t._length, m = 0;
2105
- for (i = 0; i < f; i += 1)
2106
- a = t.v[i], h = t.o[i], r = t.i[i], a[0] === h[0] && a[1] === h[1] && a[0] === r[0] && a[1] === r[1] ? i !== 0 && i !== f - 1 || t.c ? (n = i === 0 ? t.v[f - 1] : t.v[i - 1], y = (u = Math.sqrt(Math.pow(a[0] - n[0], 2) + Math.pow(a[1] - n[1], 2))) ? Math.min(u / 2, e) / u : 0, o = l = a[0] + (n[0] - a[0]) * y, d = p = a[1] - (a[1] - n[1]) * y, c = o - (o - a[0]) * Kt, g = d - (d - a[1]) * Kt, s.setTripleAt(o, d, c, g, l, p, m), m += 1, n = i === f - 1 ? t.v[0] : t.v[i + 1], y = (u = Math.sqrt(Math.pow(a[0] - n[0], 2) + Math.pow(a[1] - n[1], 2))) ? Math.min(u / 2, e) / u : 0, o = c = a[0] + (n[0] - a[0]) * y, d = g = a[1] + (n[1] - a[1]) * y, l = o - (o - a[0]) * Kt, p = d - (d - a[1]) * Kt, s.setTripleAt(o, d, c, g, l, p, m), m += 1) : (s.setTripleAt(a[0], a[1], h[0], h[1], r[0], r[1], m), m += 1) : (s.setTripleAt(t.v[i][0], t.v[i][1], t.o[i][0], t.o[i][1], t.i[i][0], t.i[i][1], m), m += 1);
1887
+ for (i = 0; i < f; i += 1) a = t.v[i], h = t.o[i], r = t.i[i], a[0] === h[0] && a[1] === h[1] && a[0] === r[0] && a[1] === r[1] ? i !== 0 && i !== f - 1 || t.c ? (n = i === 0 ? t.v[f - 1] : t.v[i - 1], y = (u = Math.sqrt(Math.pow(a[0] - n[0], 2) + Math.pow(a[1] - n[1], 2))) ? Math.min(u / 2, e) / u : 0, o = l = a[0] + (n[0] - a[0]) * y, d = p = a[1] - (a[1] - n[1]) * y, c = o - (o - a[0]) * Kt, g = d - (d - a[1]) * Kt, s.setTripleAt(o, d, c, g, l, p, m), m += 1, n = i === f - 1 ? t.v[0] : t.v[i + 1], y = (u = Math.sqrt(Math.pow(a[0] - n[0], 2) + Math.pow(a[1] - n[1], 2))) ? Math.min(u / 2, e) / u : 0, o = c = a[0] + (n[0] - a[0]) * y, d = g = a[1] + (n[1] - a[1]) * y, l = o - (o - a[0]) * Kt, p = d - (d - a[1]) * Kt, s.setTripleAt(o, d, c, g, l, p, m), m += 1) : (s.setTripleAt(a[0], a[1], h[0], h[1], r[0], r[1], m), m += 1) : (s.setTripleAt(t.v[i][0], t.v[i][1], t.o[i][0], t.o[i][1], t.i[i][0], t.i[i][1], m), m += 1);
2107
1888
  return s;
2108
1889
  }, Se.prototype.processShapes = function(t) {
2109
1890
  var e, i, s, a, r, h, n = this.shapes.length, u = this.rd.v;
2110
- if (u !== 0)
2111
- for (i = 0; i < n; i += 1) {
2112
- if (h = (r = this.shapes[i]).localShapeCollection, r.shape._mdf || this._mdf || t)
2113
- for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, s = 0; s < a; s += 1)
2114
- h.addShape(this.processPath(e[s], u));
2115
- r.shape.paths = r.localShapeCollection;
2116
- }
1891
+ if (u !== 0) for (i = 0; i < n; i += 1) {
1892
+ if (h = (r = this.shapes[i]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, s = 0; s < a; s += 1) h.addShape(this.processPath(e[s], u));
1893
+ r.shape.paths = r.localShapeCollection;
1894
+ }
2117
1895
  this.dynamicProperties.length || (this._mdf = !1);
2118
1896
  }, st.prototype.point = function(t) {
2119
1897
  return [((this.a[0] * t + this.b[0]) * t + this.c[0]) * t + this.d[0], ((this.a[1] * t + this.b[1]) * t + this.c[1]) * t + this.d[1]];
@@ -2127,20 +1905,16 @@ var Ai = { exports: {} };
2127
1905
  return Math.atan2(e[0], e[1]);
2128
1906
  }, st.prototype.inflectionPoints = function() {
2129
1907
  var t = this.a[1] * this.b[0] - this.a[0] * this.b[1];
2130
- if (ci(t))
2131
- return [];
1908
+ if (ci(t)) return [];
2132
1909
  var e = -0.5 * (this.a[1] * this.c[0] - this.a[0] * this.c[1]) / t, i = e * e - 1 / 3 * (this.b[1] * this.c[0] - this.b[0] * this.c[1]) / t;
2133
- if (i < 0)
2134
- return [];
1910
+ if (i < 0) return [];
2135
1911
  var s = Math.sqrt(i);
2136
1912
  return ci(s) ? s > 0 && s < 1 ? [e] : [] : [e - s, e + s].filter(function(a) {
2137
1913
  return a > 0 && a < 1;
2138
1914
  });
2139
1915
  }, st.prototype.split = function(t) {
2140
- if (t <= 0)
2141
- return [is(this.points[0]), this];
2142
- if (t >= 1)
2143
- return [this, is(this.points[this.points.length - 1])];
1916
+ if (t <= 0) return [is(this.points[0]), this];
1917
+ if (t >= 1) return [this, is(this.points[this.points.length - 1])];
2144
1918
  var e = Ut(this.points[0], this.points[1], t), i = Ut(this.points[1], this.points[2], t), s = Ut(this.points[2], this.points[3], t), a = Ut(e, i, t), r = Ut(i, s, t), h = Ut(a, r, t);
2145
1919
  return [new st(this.points[0], e, a, h, !0), new st(h, r, s, this.points[3], !0)];
2146
1920
  }, st.prototype.bounds = function() {
@@ -2162,22 +1936,17 @@ var Ai = { exports: {} };
2162
1936
  this.getValue = this.processKeys, this.amplitude = E.getProp(t, e.s, 0, null, this), this.frequency = E.getProp(t, e.r, 0, null, this), this.pointsType = E.getProp(t, e.pt, 0, null, this), this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
2163
1937
  }, we.prototype.processPath = function(t, e, i, s) {
2164
1938
  var a = t._length, r = yt.newElement();
2165
- if (r.c = t.c, t.c || (a -= 1), a === 0)
2166
- return r;
1939
+ if (r.c = t.c, t.c || (a -= 1), a === 0) return r;
2167
1940
  var h = -1, n = st.shapeSegment(t, 0);
2168
1941
  ns(r, t, 0, e, i, s, h);
2169
- for (var u = 0; u < a; u += 1)
2170
- h = Ys(r, n, e, i, s, -h), n = u !== a - 1 || t.c ? st.shapeSegment(t, (u + 1) % a) : null, ns(r, t, u + 1, e, i, s, h);
1942
+ for (var u = 0; u < a; u += 1) h = Ys(r, n, e, i, s, -h), n = u !== a - 1 || t.c ? st.shapeSegment(t, (u + 1) % a) : null, ns(r, t, u + 1, e, i, s, h);
2171
1943
  return r;
2172
1944
  }, we.prototype.processShapes = function(t) {
2173
1945
  var e, i, s, a, r, h, n = this.shapes.length, u = this.amplitude.v, y = Math.max(0, Math.round(this.frequency.v)), o = this.pointsType.v;
2174
- if (u !== 0)
2175
- for (i = 0; i < n; i += 1) {
2176
- if (h = (r = this.shapes[i]).localShapeCollection, r.shape._mdf || this._mdf || t)
2177
- for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, s = 0; s < a; s += 1)
2178
- h.addShape(this.processPath(e[s], u, y, o));
2179
- r.shape.paths = r.localShapeCollection;
2180
- }
1946
+ if (u !== 0) for (i = 0; i < n; i += 1) {
1947
+ if (h = (r = this.shapes[i]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, s = 0; s < a; s += 1) h.addShape(this.processPath(e[s], u, y, o));
1948
+ r.shape.paths = r.localShapeCollection;
1949
+ }
2181
1950
  this.dynamicProperties.length || (this._mdf = !1);
2182
1951
  }, W([At], Me), Me.prototype.initModifierProperties = function(t, e) {
2183
1952
  this.getValue = this.processKeys, this.amount = E.getProp(t, e.a, 0, null, this), this.miterLimit = E.getProp(t, e.ml, 0, null, this), this.lineJoin = e.lj, this._isAnimated = this.amount.effectsSequence.length !== 0;
@@ -2187,32 +1956,24 @@ var Ai = { exports: {} };
2187
1956
  var r, h, n, u = t.length();
2188
1957
  t.c || (u -= 1);
2189
1958
  var y = [];
2190
- for (r = 0; r < u; r += 1)
2191
- n = st.shapeSegment(t, r), y.push(ps(n, e));
2192
- if (!t.c)
2193
- for (r = u - 1; r >= 0; r -= 1)
2194
- n = st.shapeSegmentInverted(t, r), y.push(ps(n, e));
1959
+ for (r = 0; r < u; r += 1) n = st.shapeSegment(t, r), y.push(ps(n, e));
1960
+ if (!t.c) for (r = u - 1; r >= 0; r -= 1) n = st.shapeSegmentInverted(t, r), y.push(ps(n, e));
2195
1961
  y = function(g) {
2196
- for (var l, p = 1; p < g.length; p += 1)
2197
- l = ls(g[p - 1], g[p]), g[p - 1] = l[0], g[p] = l[1];
1962
+ for (var l, p = 1; p < g.length; p += 1) l = ls(g[p - 1], g[p]), g[p - 1] = l[0], g[p] = l[1];
2198
1963
  return g.length > 1 && (l = ls(g[g.length - 1], g[0]), g[g.length - 1] = l[0], g[0] = l[1]), g;
2199
1964
  }(y);
2200
1965
  var o = null, d = null;
2201
1966
  for (r = 0; r < y.length; r += 1) {
2202
1967
  var c = y[r];
2203
- for (d && (o = os(a, d, c[0], i, s)), d = c[c.length - 1], h = 0; h < c.length; h += 1)
2204
- n = c[h], o && ue(n.points[0], o) ? a.setXYAt(n.points[1][0], n.points[1][1], "o", a.length() - 1) : a.setTripleAt(n.points[0][0], n.points[0][1], n.points[1][0], n.points[1][1], n.points[0][0], n.points[0][1], a.length()), a.setTripleAt(n.points[3][0], n.points[3][1], n.points[3][0], n.points[3][1], n.points[2][0], n.points[2][1], a.length()), o = n.points[3];
1968
+ for (d && (o = os(a, d, c[0], i, s)), d = c[c.length - 1], h = 0; h < c.length; h += 1) n = c[h], o && ue(n.points[0], o) ? a.setXYAt(n.points[1][0], n.points[1][1], "o", a.length() - 1) : a.setTripleAt(n.points[0][0], n.points[0][1], n.points[1][0], n.points[1][1], n.points[0][0], n.points[0][1], a.length()), a.setTripleAt(n.points[3][0], n.points[3][1], n.points[3][0], n.points[3][1], n.points[2][0], n.points[2][1], a.length()), o = n.points[3];
2205
1969
  }
2206
1970
  return y.length && os(a, d, y[0][0], i, s), a;
2207
1971
  }, Me.prototype.processShapes = function(t) {
2208
1972
  var e, i, s, a, r, h, n = this.shapes.length, u = this.amount.v, y = this.miterLimit.v, o = this.lineJoin;
2209
- if (u !== 0)
2210
- for (i = 0; i < n; i += 1) {
2211
- if (h = (r = this.shapes[i]).localShapeCollection, r.shape._mdf || this._mdf || t)
2212
- for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, s = 0; s < a; s += 1)
2213
- h.addShape(this.processPath(e[s], u, o, y));
2214
- r.shape.paths = r.localShapeCollection;
2215
- }
1973
+ if (u !== 0) for (i = 0; i < n; i += 1) {
1974
+ if (h = (r = this.shapes[i]).localShapeCollection, r.shape._mdf || this._mdf || t) for (h.releaseShapes(), r.shape._mdf = !0, e = r.shape.paths.shapes, a = r.shape.paths._length, s = 0; s < a; s += 1) h.addShape(this.processPath(e[s], u, o, y));
1975
+ r.shape.paths = r.localShapeCollection;
1976
+ }
2216
1977
  this.dynamicProperties.length || (this._mdf = !1);
2217
1978
  };
2218
1979
  var ne = function() {
@@ -2227,8 +1988,7 @@ var Ai = { exports: {} };
2227
1988
  var l = g.offsetWidth;
2228
1989
  return g.style.fontFamily = function(p) {
2229
1990
  var f, m = p.split(","), v = m.length, x = [];
2230
- for (f = 0; f < v; f += 1)
2231
- m[f] !== "sans-serif" && m[f] !== "monospace" && x.push(m[f]);
1991
+ for (f = 0; f < v; f += 1) m[f] !== "sans-serif" && m[f] !== "monospace" && x.push(m[f]);
2232
1992
  return x.join(",");
2233
1993
  }(o) + ", " + d, { node: g, w: l, parent: c };
2234
1994
  }
@@ -2271,12 +2031,10 @@ var Ai = { exports: {} };
2271
2031
  return e.indexOf(o) !== -1;
2272
2032
  }, u.isRegionalFlag = function(o, d) {
2273
2033
  var c = h(o.substr(d, 2));
2274
- if (c !== i)
2275
- return !1;
2034
+ if (c !== i) return !1;
2276
2035
  var g = 0;
2277
2036
  for (d += 2; g < 5; ) {
2278
- if ((c = h(o.substr(d, 2))) < 917601 || c > 917626)
2279
- return !1;
2037
+ if ((c = h(o.substr(d, 2))) < 917601 || c > 917626) return !1;
2280
2038
  g += 1, d += 2;
2281
2039
  }
2282
2040
  return h(o.substr(d, 2)) === 917631;
@@ -2289,19 +2047,16 @@ var Ai = { exports: {} };
2289
2047
  this.chars || (this.chars = []);
2290
2048
  var c, g, l = o.length, p = this.chars.length;
2291
2049
  for (d = 0; d < l; d += 1) {
2292
- for (c = 0, g = !1; c < p; )
2293
- this.chars[c].style === o[d].style && this.chars[c].fFamily === o[d].fFamily && this.chars[c].ch === o[d].ch && (g = !0), c += 1;
2050
+ for (c = 0, g = !1; c < p; ) this.chars[c].style === o[d].style && this.chars[c].fFamily === o[d].fFamily && this.chars[c].ch === o[d].ch && (g = !0), c += 1;
2294
2051
  g || (this.chars.push(o[d]), p += 1);
2295
2052
  }
2296
2053
  }
2297
2054
  }, addFonts: function(o, d) {
2298
2055
  if (o) {
2299
- if (this.chars)
2300
- return this.isLoaded = !0, void (this.fonts = o.list);
2301
- if (!document.body)
2302
- return this.isLoaded = !0, o.list.forEach(function(T) {
2303
- T.helper = r(T), T.cache = {};
2304
- }), void (this.fonts = o.list);
2056
+ if (this.chars) return this.isLoaded = !0, void (this.fonts = o.list);
2057
+ if (!document.body) return this.isLoaded = !0, o.list.forEach(function(T) {
2058
+ T.helper = r(T), T.cache = {};
2059
+ }), void (this.fonts = o.list);
2305
2060
  var c, g = o.list, l = g.length, p = l;
2306
2061
  for (c = 0; c < l; c += 1) {
2307
2062
  var f, m, v = !0;
@@ -2312,38 +2067,32 @@ var Ai = { exports: {} };
2312
2067
  x.setAttribute("f-forigin", g[c].fOrigin), x.setAttribute("f-origin", g[c].origin), x.setAttribute("f-family", g[c].fFamily), x.type = "text/css", x.innerText = "@font-face {font-family: " + g[c].fFamily + "; font-style: normal; src: url('" + g[c].fPath + "');}", d.appendChild(x);
2313
2068
  }
2314
2069
  } else if (g[c].fOrigin === "g" || g[c].origin === 1) {
2315
- for (f = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), m = 0; m < f.length; m += 1)
2316
- f[m].href.indexOf(g[c].fPath) !== -1 && (v = !1);
2070
+ for (f = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), m = 0; m < f.length; m += 1) f[m].href.indexOf(g[c].fPath) !== -1 && (v = !1);
2317
2071
  if (v) {
2318
2072
  var C = Pt("link");
2319
2073
  C.setAttribute("f-forigin", g[c].fOrigin), C.setAttribute("f-origin", g[c].origin), C.type = "text/css", C.rel = "stylesheet", C.href = g[c].fPath, document.body.appendChild(C);
2320
2074
  }
2321
2075
  } else if (g[c].fOrigin === "t" || g[c].origin === 2) {
2322
- for (f = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), m = 0; m < f.length; m += 1)
2323
- g[c].fPath === f[m].src && (v = !1);
2076
+ for (f = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), m = 0; m < f.length; m += 1) g[c].fPath === f[m].src && (v = !1);
2324
2077
  if (v) {
2325
2078
  var A = Pt("link");
2326
2079
  A.setAttribute("f-forigin", g[c].fOrigin), A.setAttribute("f-origin", g[c].origin), A.setAttribute("rel", "stylesheet"), A.setAttribute("href", g[c].fPath), d.appendChild(A);
2327
2080
  }
2328
2081
  }
2329
- } else
2330
- g[c].loaded = !0, p -= 1;
2082
+ } else g[c].loaded = !0, p -= 1;
2331
2083
  g[c].helper = r(g[c], d), g[c].cache = {}, this.fonts.push(g[c]);
2332
2084
  }
2333
2085
  p === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
2334
- } else
2335
- this.isLoaded = !0;
2086
+ } else this.isLoaded = !0;
2336
2087
  }, getCharData: function(o, d, c) {
2337
2088
  for (var g = 0, l = this.chars.length; g < l; ) {
2338
- if (this.chars[g].ch === o && this.chars[g].style === d && this.chars[g].fFamily === c)
2339
- return this.chars[g];
2089
+ if (this.chars[g].ch === o && this.chars[g].style === d && this.chars[g].fFamily === c) return this.chars[g];
2340
2090
  g += 1;
2341
2091
  }
2342
2092
  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;
2343
2093
  }, getFontByName: function(o) {
2344
2094
  for (var d = 0, c = this.fonts.length; d < c; ) {
2345
- if (this.fonts[d].fName === o)
2346
- return this.fonts[d];
2095
+ if (this.fonts[d].fName === o) return this.fonts[d];
2347
2096
  d += 1;
2348
2097
  }
2349
2098
  return this.fonts[0];
@@ -2354,14 +2103,12 @@ var Ai = { exports: {} };
2354
2103
  if (o === " ") {
2355
2104
  var f = p.measureText("|" + o + "|"), m = p.measureText("||");
2356
2105
  g.cache[l] = (f - m) / 100;
2357
- } else
2358
- g.cache[l] = p.measureText(o) / 100;
2106
+ } else g.cache[l] = p.measureText(o) / 100;
2359
2107
  }
2360
2108
  return g.cache[l] * c;
2361
2109
  }, checkLoadedFonts: function() {
2362
2110
  var o, d, c, g = this.fonts.length, l = g;
2363
- for (o = 0; o < g; o += 1)
2364
- 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)));
2111
+ for (o = 0; o < g; 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)));
2365
2112
  l !== 0 && Date.now() - this.initTime < 5e3 ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
2366
2113
  }, setIsLoaded: function() {
2367
2114
  this.isLoaded = !0;
@@ -2389,8 +2136,7 @@ var Ai = { exports: {} };
2389
2136
  this.data.ip - this.data.st <= t && this.data.op - this.data.st > t ? this.isInRange !== !0 && (this.globalData._mdf = !0, this._mdf = !0, this.isInRange = !0, this.show()) : this.isInRange !== !1 && (this.globalData._mdf = !0, this.isInRange = !1, this.hide());
2390
2137
  }, renderRenderable: function() {
2391
2138
  var t, e = this.renderableComponents.length;
2392
- for (t = 0; t < e; t += 1)
2393
- this.renderableComponents[t].renderFrame(this._isFirstFrame);
2139
+ for (t = 0; t < e; t += 1) this.renderableComponents[t].renderFrame(this._isFirstFrame);
2394
2140
  }, sourceRectAtTime: function() {
2395
2141
  return { top: 0, left: 0, width: 100, height: 100 };
2396
2142
  }, getLayerSize: function() {
@@ -2427,8 +2173,7 @@ var Ai = { exports: {} };
2427
2173
  var i, s = t.ef || [];
2428
2174
  this.effectElements = [];
2429
2175
  var a, r = s.length;
2430
- for (i = 0; i < r; i += 1)
2431
- a = new Te(s[i], e), this.effectElements.push(a);
2176
+ for (i = 0; i < r; i += 1) a = new Te(s[i], e), this.effectElements.push(a);
2432
2177
  }
2433
2178
  function Te(t, e) {
2434
2179
  this.init(t, e);
@@ -2484,11 +2229,9 @@ var Ai = { exports: {} };
2484
2229
  s && this.effectElements.push(s);
2485
2230
  }
2486
2231
  }, wt.prototype = { checkMasks: function() {
2487
- if (!this.data.hasMask)
2488
- return !1;
2232
+ if (!this.data.hasMask) return !1;
2489
2233
  for (var t = 0, e = this.data.masksProperties.length; t < e; ) {
2490
- if (this.data.masksProperties[t].mode !== "n" && this.data.masksProperties[t].cl !== !1)
2491
- return !0;
2234
+ if (this.data.masksProperties[t].mode !== "n" && this.data.masksProperties[t].cl !== !1) return !0;
2492
2235
  t += 1;
2493
2236
  }
2494
2237
  return !1;
@@ -2505,8 +2248,7 @@ var Ai = { exports: {} };
2505
2248
  this._isFirstFrame = !1, this.dynamicProperties = [], this._mdf = !1;
2506
2249
  }, prepareProperties: function(t, e) {
2507
2250
  var i, s = this.dynamicProperties.length;
2508
- for (i = 0; i < s; i += 1)
2509
- (e || this._isParent && this.dynamicProperties[i].propType === "transform") && (this.dynamicProperties[i].getValue(), this.dynamicProperties[i]._mdf && (this.globalData._mdf = !0, this._mdf = !0));
2251
+ for (i = 0; i < s; i += 1) (e || this._isParent && this.dynamicProperties[i].propType === "transform") && (this.dynamicProperties[i].getValue(), this.dynamicProperties[i]._mdf && (this.globalData._mdf = !0, this._mdf = !0));
2510
2252
  }, addDynamicProperty: function(t) {
2511
2253
  this.dynamicProperties.indexOf(t) === -1 && this.dynamicProperties.push(t);
2512
2254
  } }, $t.prototype.prepareFrame = function() {
@@ -2518,8 +2260,7 @@ var Ai = { exports: {} };
2518
2260
  }, $t.prototype.getFootageData = function() {
2519
2261
  return this.footageData;
2520
2262
  }, xt.prototype.prepareFrame = function(t) {
2521
- if (this.prepareRenderableFrame(t, !0), this.prepareProperties(t, !0), this.tm._placeholder)
2522
- this._currentTime = t / this.data.sr;
2263
+ if (this.prepareRenderableFrame(t, !0), this.prepareProperties(t, !0), this.tm._placeholder) this._currentTime = t / this.data.sr;
2523
2264
  else {
2524
2265
  var e = this.tm.v;
2525
2266
  this._currentTime = e;
@@ -2547,8 +2288,7 @@ var Ai = { exports: {} };
2547
2288
  }, xt.prototype.initExpressions = function() {
2548
2289
  }, ut.prototype.checkLayers = function(t) {
2549
2290
  var e, i, s = this.layers.length;
2550
- for (this.completeLayers = !0, e = s - 1; e >= 0; e -= 1)
2551
- this.elements[e] || (i = this.layers[e]).ip - i.st <= t - this.layers[e].st && i.op - i.st > t - this.layers[e].st && this.buildItem(e), this.completeLayers = !!this.elements[e] && this.completeLayers;
2291
+ for (this.completeLayers = !0, e = s - 1; e >= 0; e -= 1) this.elements[e] || (i = this.layers[e]).ip - i.st <= t - this.layers[e].st && i.op - i.st > t - this.layers[e].st && this.buildItem(e), this.completeLayers = !!this.elements[e] && this.completeLayers;
2552
2292
  this.checkPendingElements();
2553
2293
  }, ut.prototype.createItem = function(t) {
2554
2294
  switch (t.ty) {
@@ -2580,54 +2320,46 @@ var Ai = { exports: {} };
2580
2320
  return new $t(t, this.globalData, this);
2581
2321
  }, ut.prototype.buildAllItems = function() {
2582
2322
  var t, e = this.layers.length;
2583
- for (t = 0; t < e; t += 1)
2584
- this.buildItem(t);
2323
+ for (t = 0; t < e; t += 1) this.buildItem(t);
2585
2324
  this.checkPendingElements();
2586
2325
  }, ut.prototype.includeLayers = function(t) {
2587
2326
  var e;
2588
2327
  this.completeLayers = !1;
2589
2328
  var i, s = t.length, a = this.layers.length;
2590
- for (e = 0; e < s; e += 1)
2591
- for (i = 0; i < a; ) {
2592
- if (this.layers[i].id === t[e].id) {
2593
- this.layers[i] = t[e];
2594
- break;
2595
- }
2596
- i += 1;
2329
+ for (e = 0; e < s; e += 1) for (i = 0; i < a; ) {
2330
+ if (this.layers[i].id === t[e].id) {
2331
+ this.layers[i] = t[e];
2332
+ break;
2597
2333
  }
2334
+ i += 1;
2335
+ }
2598
2336
  }, ut.prototype.setProjectInterface = function(t) {
2599
2337
  this.globalData.projectInterface = t;
2600
2338
  }, ut.prototype.initItems = function() {
2601
2339
  this.globalData.progressiveLoad || this.buildAllItems();
2602
2340
  }, ut.prototype.buildElementParenting = function(t, e, i) {
2603
- for (var s = this.elements, a = this.layers, r = 0, h = a.length; r < h; )
2604
- a[r].ind == e && (s[r] && s[r] !== !0 ? (i.push(s[r]), s[r].setAsParent(), a[r].parent !== void 0 ? this.buildElementParenting(t, a[r].parent, i) : t.setHierarchy(i)) : (this.buildItem(r), this.addPendingElement(t))), r += 1;
2341
+ for (var s = this.elements, a = this.layers, r = 0, h = a.length; r < h; ) a[r].ind == e && (s[r] && s[r] !== !0 ? (i.push(s[r]), s[r].setAsParent(), a[r].parent !== void 0 ? this.buildElementParenting(t, a[r].parent, i) : t.setHierarchy(i)) : (this.buildItem(r), this.addPendingElement(t))), r += 1;
2605
2342
  }, ut.prototype.addPendingElement = function(t) {
2606
2343
  this.pendingElements.push(t);
2607
2344
  }, ut.prototype.searchExtraCompositions = function(t) {
2608
2345
  var e, i = t.length;
2609
- for (e = 0; e < i; e += 1)
2610
- if (t[e].xt) {
2611
- var s = this.createComp(t[e]);
2612
- s.initExpressions(), this.globalData.projectInterface.registerComposition(s);
2613
- }
2346
+ for (e = 0; e < i; e += 1) if (t[e].xt) {
2347
+ var s = this.createComp(t[e]);
2348
+ s.initExpressions(), this.globalData.projectInterface.registerComposition(s);
2349
+ }
2614
2350
  }, ut.prototype.getElementById = function(t) {
2615
2351
  var e, i = this.elements.length;
2616
- for (e = 0; e < i; e += 1)
2617
- if (this.elements[e].data.ind === t)
2618
- return this.elements[e];
2352
+ for (e = 0; e < i; e += 1) if (this.elements[e].data.ind === t) return this.elements[e];
2619
2353
  return null;
2620
2354
  }, ut.prototype.getElementByPath = function(t) {
2621
2355
  var e, i = t.shift();
2622
- if (typeof i == "number")
2623
- e = this.elements[i];
2356
+ if (typeof i == "number") e = this.elements[i];
2624
2357
  else {
2625
2358
  var s, a = this.elements.length;
2626
- for (s = 0; s < a; s += 1)
2627
- if (this.elements[s].data.nm === i) {
2628
- e = this.elements[s];
2629
- break;
2630
- }
2359
+ for (s = 0; s < a; s += 1) if (this.elements[s].data.nm === i) {
2360
+ e = this.elements[s];
2361
+ break;
2362
+ }
2631
2363
  }
2632
2364
  return t.length === 0 ? e : e.getElementByPath(t);
2633
2365
  }, ut.prototype.setupGlobalData = function(t, e) {
@@ -2643,24 +2375,19 @@ var Ai = { exports: {} };
2643
2375
  var s, a, r = this.globalData.defs, h = this.masksProperties ? this.masksProperties.length : 0;
2644
2376
  this.viewData = K(h), this.solidPath = "";
2645
2377
  var n, u, y, o, d, c, g = this.masksProperties, l = 0, p = [], f = Ct(), m = "clipPath", v = "clip-path";
2646
- for (s = 0; s < h; s += 1)
2647
- if ((g[s].mode !== "a" && g[s].mode !== "n" || g[s].inv || g[s].o.k !== 100 || g[s].o.x) && (m = "mask", v = "mask"), g[s].mode !== "s" && g[s].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), p.push(y)), a = z("path"), g[s].mode === "n")
2648
- this.viewData[s] = { op: E.getProp(this.element, g[s].o, 0, 0.01, this.element), prop: de.getShapeProp(this.element, g[s], 3), elem: a, lastPath: "" }, r.appendChild(a);
2649
- else {
2650
- var x;
2651
- if (l += 1, a.setAttribute("fill", g[s].mode === "s" ? "#000000" : "#ffffff"), a.setAttribute("clip-rule", "nonzero"), g[s].x.k !== 0 ? (m = "mask", v = "mask", c = E.getProp(this.element, g[s].x, 0, null, this.element), x = Ct(), (o = z("filter")).setAttribute("id", x), (d = z("feMorphology")).setAttribute("operator", "erode"), d.setAttribute("in", "SourceGraphic"), d.setAttribute("radius", "0"), o.appendChild(d), r.appendChild(o), a.setAttribute("stroke", g[s].mode === "s" ? "#000000" : "#ffffff")) : (d = null, c = null), this.storedData[s] = { elem: a, x: c, expan: d, lastPath: "", lastOperator: "", filterId: x, lastRadius: 0 }, g[s].mode === "i") {
2652
- u = p.length;
2653
- var C = z("g");
2654
- for (n = 0; n < u; n += 1)
2655
- C.appendChild(p[n]);
2656
- var A = z("mask");
2657
- A.setAttribute("mask-type", "alpha"), A.setAttribute("id", f + "_" + l), A.appendChild(a), r.appendChild(A), C.setAttribute("mask", "url(" + dt() + "#" + f + "_" + l + ")"), p.length = 0, p.push(C);
2658
- } else
2659
- p.push(a);
2660
- g[s].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[s] = { elem: a, lastPath: "", op: E.getProp(this.element, g[s].o, 0, 0.01, this.element), prop: de.getShapeProp(this.element, g[s], 3), invRect: y }, this.viewData[s].prop.k || this.drawPath(g[s], this.viewData[s].prop.v, this.viewData[s]);
2661
- }
2662
- for (this.maskElement = z(m), h = p.length, s = 0; s < h; s += 1)
2663
- this.maskElement.appendChild(p[s]);
2378
+ for (s = 0; s < h; s += 1) if ((g[s].mode !== "a" && g[s].mode !== "n" || g[s].inv || g[s].o.k !== 100 || g[s].o.x) && (m = "mask", v = "mask"), g[s].mode !== "s" && g[s].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), p.push(y)), a = z("path"), g[s].mode === "n") this.viewData[s] = { op: E.getProp(this.element, g[s].o, 0, 0.01, this.element), prop: de.getShapeProp(this.element, g[s], 3), elem: a, lastPath: "" }, r.appendChild(a);
2379
+ else {
2380
+ var x;
2381
+ if (l += 1, a.setAttribute("fill", g[s].mode === "s" ? "#000000" : "#ffffff"), a.setAttribute("clip-rule", "nonzero"), g[s].x.k !== 0 ? (m = "mask", v = "mask", c = E.getProp(this.element, g[s].x, 0, null, this.element), x = Ct(), (o = z("filter")).setAttribute("id", x), (d = z("feMorphology")).setAttribute("operator", "erode"), d.setAttribute("in", "SourceGraphic"), d.setAttribute("radius", "0"), o.appendChild(d), r.appendChild(o), a.setAttribute("stroke", g[s].mode === "s" ? "#000000" : "#ffffff")) : (d = null, c = null), this.storedData[s] = { elem: a, x: c, expan: d, lastPath: "", lastOperator: "", filterId: x, lastRadius: 0 }, g[s].mode === "i") {
2382
+ u = p.length;
2383
+ var C = z("g");
2384
+ for (n = 0; n < u; n += 1) C.appendChild(p[n]);
2385
+ var A = z("mask");
2386
+ A.setAttribute("mask-type", "alpha"), A.setAttribute("id", f + "_" + l), A.appendChild(a), r.appendChild(A), C.setAttribute("mask", "url(" + dt() + "#" + f + "_" + l + ")"), p.length = 0, p.push(C);
2387
+ } else p.push(a);
2388
+ g[s].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[s] = { elem: a, lastPath: "", op: E.getProp(this.element, g[s].o, 0, 0.01, this.element), prop: de.getShapeProp(this.element, g[s], 3), invRect: y }, this.viewData[s].prop.k || this.drawPath(g[s], this.viewData[s].prop.v, this.viewData[s]);
2389
+ }
2390
+ for (this.maskElement = z(m), h = p.length, s = 0; s < h; s += 1) this.maskElement.appendChild(p[s]);
2664
2391
  l > 0 && (this.maskElement.setAttribute("id", f), this.element.maskedElement.setAttribute(v, "url(" + dt() + "#" + f + ")"), r.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this);
2665
2392
  }
2666
2393
  Nt.prototype = { initTransform: function() {
@@ -2669,25 +2396,20 @@ var Ai = { exports: {} };
2669
2396
  }, renderTransform: function() {
2670
2397
  if (this.finalTransform._opMdf = this.finalTransform.mProp.o._mdf || this._isFirstFrame, this.finalTransform._matMdf = this.finalTransform.mProp._mdf || this._isFirstFrame, this.hierarchy) {
2671
2398
  var t, e = this.finalTransform.mat, i = 0, s = this.hierarchy.length;
2672
- if (!this.finalTransform._matMdf)
2673
- for (; i < s; ) {
2674
- if (this.hierarchy[i].finalTransform.mProp._mdf) {
2675
- this.finalTransform._matMdf = !0;
2676
- break;
2677
- }
2678
- i += 1;
2399
+ if (!this.finalTransform._matMdf) for (; i < s; ) {
2400
+ if (this.hierarchy[i].finalTransform.mProp._mdf) {
2401
+ this.finalTransform._matMdf = !0;
2402
+ break;
2679
2403
  }
2680
- if (this.finalTransform._matMdf)
2681
- for (t = this.finalTransform.mProp.v.props, e.cloneFromProps(t), i = 0; i < s; i += 1)
2682
- e.multiply(this.hierarchy[i].finalTransform.mProp.v);
2404
+ i += 1;
2405
+ }
2406
+ if (this.finalTransform._matMdf) for (t = this.finalTransform.mProp.v.props, e.cloneFromProps(t), i = 0; i < s; i += 1) e.multiply(this.hierarchy[i].finalTransform.mProp.v);
2683
2407
  }
2684
2408
  this.finalTransform._matMdf && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
2685
2409
  }, renderLocalTransform: function() {
2686
2410
  if (this.localTransforms) {
2687
2411
  var t = 0, e = this.localTransforms.length;
2688
- if (this.finalTransform._localMatMdf = this.finalTransform._matMdf, !this.finalTransform._localMatMdf || !this.finalTransform._opMdf)
2689
- for (; t < e; )
2690
- this.localTransforms[t]._mdf && (this.finalTransform._localMatMdf = !0), this.localTransforms[t]._opMdf && !this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v, this.finalTransform._opMdf = !0), t += 1;
2412
+ if (this.finalTransform._localMatMdf = this.finalTransform._matMdf, !this.finalTransform._localMatMdf || !this.finalTransform._opMdf) for (; t < e; ) this.localTransforms[t]._mdf && (this.finalTransform._localMatMdf = !0), this.localTransforms[t]._opMdf && !this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v, this.finalTransform._opMdf = !0), t += 1;
2691
2413
  if (this.finalTransform._localMatMdf) {
2692
2414
  var i = this.finalTransform.localMat;
2693
2415
  for (this.localTransforms[0].matrix.clone(i), t = 1; t < e; t += 1) {
@@ -2698,8 +2420,7 @@ var Ai = { exports: {} };
2698
2420
  }
2699
2421
  if (this.finalTransform._opMdf) {
2700
2422
  var a = this.finalTransform.localOpacity;
2701
- for (t = 0; t < e; t += 1)
2702
- a *= 0.01 * this.localTransforms[t].opacity;
2423
+ for (t = 0; t < e; t += 1) a *= 0.01 * this.localTransforms[t].opacity;
2703
2424
  this.finalTransform.localOpacity = a;
2704
2425
  }
2705
2426
  }
@@ -2709,28 +2430,24 @@ var Ai = { exports: {} };
2709
2430
  if (t.length) {
2710
2431
  this.localTransforms = [], this.finalTransform.localMat = new it();
2711
2432
  var e = 0, i = t.length;
2712
- for (e = 0; e < i; e += 1)
2713
- this.localTransforms.push(t[e]);
2433
+ for (e = 0; e < i; e += 1) this.localTransforms.push(t[e]);
2714
2434
  }
2715
2435
  }
2716
2436
  }, globalToLocal: function(t) {
2717
2437
  var e = [];
2718
2438
  e.push(this.finalTransform);
2719
- for (var i, s = !0, a = this.comp; s; )
2720
- a.finalTransform ? (a.data.hasMask && e.splice(0, 0, a.finalTransform), a = a.comp) : s = !1;
2439
+ for (var i, s = !0, a = this.comp; s; ) a.finalTransform ? (a.data.hasMask && e.splice(0, 0, a.finalTransform), a = a.comp) : s = !1;
2721
2440
  var r, h = e.length;
2722
- for (i = 0; i < h; i += 1)
2723
- r = e[i].mat.applyToPointArray(0, 0, 0), t = [t[0] - r[0], t[1] - r[1], 0];
2441
+ for (i = 0; i < h; i += 1) r = e[i].mat.applyToPointArray(0, 0, 0), t = [t[0] - r[0], t[1] - r[1], 0];
2724
2442
  return t;
2725
2443
  }, mHelper: new it() }, Qt.prototype.getMaskProperty = function(t) {
2726
2444
  return this.viewData[t].prop;
2727
2445
  }, Qt.prototype.renderFrame = function(t) {
2728
2446
  var e, i = this.element.finalTransform.mat, s = this.masksProperties.length;
2729
- for (e = 0; e < s; e += 1)
2730
- if ((this.viewData[e].prop._mdf || t) && this.drawPath(this.masksProperties[e], this.viewData[e].prop.v, this.viewData[e]), (this.viewData[e].op._mdf || t) && this.viewData[e].elem.setAttribute("fill-opacity", this.viewData[e].op.v), this.masksProperties[e].mode !== "n" && (this.viewData[e].invRect && (this.element.finalTransform.mProp._mdf || t) && this.viewData[e].invRect.setAttribute("transform", i.getInverseMatrix().to2dCSS()), this.storedData[e].x && (this.storedData[e].x._mdf || t))) {
2731
- var a = this.storedData[e].expan;
2732
- this.storedData[e].x.v < 0 ? (this.storedData[e].lastOperator !== "erode" && (this.storedData[e].lastOperator = "erode", this.storedData[e].elem.setAttribute("filter", "url(" + dt() + "#" + this.storedData[e].filterId + ")")), a.setAttribute("radius", -this.storedData[e].x.v)) : (this.storedData[e].lastOperator !== "dilate" && (this.storedData[e].lastOperator = "dilate", this.storedData[e].elem.setAttribute("filter", null)), this.storedData[e].elem.setAttribute("stroke-width", 2 * this.storedData[e].x.v));
2733
- }
2447
+ for (e = 0; e < s; e += 1) if ((this.viewData[e].prop._mdf || t) && this.drawPath(this.masksProperties[e], this.viewData[e].prop.v, this.viewData[e]), (this.viewData[e].op._mdf || t) && this.viewData[e].elem.setAttribute("fill-opacity", this.viewData[e].op.v), this.masksProperties[e].mode !== "n" && (this.viewData[e].invRect && (this.element.finalTransform.mProp._mdf || t) && this.viewData[e].invRect.setAttribute("transform", i.getInverseMatrix().to2dCSS()), this.storedData[e].x && (this.storedData[e].x._mdf || t))) {
2448
+ var a = this.storedData[e].expan;
2449
+ this.storedData[e].x.v < 0 ? (this.storedData[e].lastOperator !== "erode" && (this.storedData[e].lastOperator = "erode", this.storedData[e].elem.setAttribute("filter", "url(" + dt() + "#" + this.storedData[e].filterId + ")")), a.setAttribute("radius", -this.storedData[e].x.v)) : (this.storedData[e].lastOperator !== "dilate" && (this.storedData[e].lastOperator = "dilate", this.storedData[e].elem.setAttribute("filter", null)), this.storedData[e].elem.setAttribute("stroke-width", 2 * this.storedData[e].x.v));
2450
+ }
2734
2451
  }, Qt.prototype.getMaskelement = function() {
2735
2452
  return this.maskElement;
2736
2453
  }, Qt.prototype.createLayerSolidPath = function() {
@@ -2738,8 +2455,7 @@ var Ai = { exports: {} };
2738
2455
  return t += " h" + this.globalData.compSize.w, t += " v" + this.globalData.compSize.h, t += " h-" + this.globalData.compSize.w, t += " v-" + this.globalData.compSize.h + " ";
2739
2456
  }, Qt.prototype.drawPath = function(t, e, i) {
2740
2457
  var s, a, r = " M" + e.v[0][0] + "," + e.v[0][1];
2741
- for (a = e._length, s = 1; s < a; s += 1)
2742
- r += " C" + e.o[s - 1][0] + "," + e.o[s - 1][1] + " " + e.i[s][0] + "," + e.i[s][1] + " " + e.v[s][0] + "," + e.v[s][1];
2458
+ for (a = e._length, s = 1; s < a; s += 1) r += " C" + e.o[s - 1][0] + "," + e.o[s - 1][1] + " " + e.i[s][0] + "," + e.i[s][1] + " " + e.v[s][0] + "," + e.v[s][1];
2743
2459
  if (e.c && a > 1 && (r += " C" + e.o[s - 1][0] + "," + e.o[s - 1][1] + " " + e.i[0][0] + "," + e.i[0][1] + " " + e.v[0][0] + "," + e.v[0][1]), i.lastPath !== r) {
2744
2460
  var h = "";
2745
2461
  i.elem && (e.c && (h = t.inv ? this.solidPath + r : r), i.elem.setAttribute("d", h)), i.lastPath = r;
@@ -2785,12 +2501,10 @@ var Ai = { exports: {} };
2785
2501
  }
2786
2502
  yi.prototype.renderFrame = function(t) {
2787
2503
  var e, i = this.filters.length;
2788
- for (e = 0; e < i; e += 1)
2789
- this.filters[e].renderFrame(t);
2504
+ for (e = 0; e < i; e += 1) this.filters[e].renderFrame(t);
2790
2505
  }, yi.prototype.getEffects = function(t) {
2791
2506
  var e, i = this.filters.length, s = [];
2792
- for (e = 0; e < i; e += 1)
2793
- this.filters[e].type === t && s.push(this.filters[e]);
2507
+ for (e = 0; e < i; e += 1) this.filters[e].type === t && s.push(this.filters[e]);
2794
2508
  return s;
2795
2509
  }, Ee.prototype = { initRendererElement: function() {
2796
2510
  this.layerElement = z("g");
@@ -2801,8 +2515,7 @@ var Ai = { exports: {} };
2801
2515
  this.matteMasks = {};
2802
2516
  var e = z("g");
2803
2517
  e.setAttribute("id", this.layerId), e.appendChild(this.layerElement), t = e, this.globalData.defs.appendChild(e);
2804
- } else
2805
- this.data.tt ? (this.matteElement.appendChild(this.layerElement), t = this.matteElement, this.baseElement = this.matteElement) : this.baseElement = this.layerElement;
2518
+ } else this.data.tt ? (this.matteElement.appendChild(this.layerElement), t = this.matteElement, this.baseElement = this.matteElement) : this.baseElement = this.layerElement;
2806
2519
  if (this.data.ln && this.layerElement.setAttribute("id", this.data.ln), this.data.cl && this.layerElement.setAttribute("class", this.data.cl), this.data.ty === 0 && !this.data.hd) {
2807
2520
  var i = z("clipPath"), s = z("path");
2808
2521
  s.setAttribute("d", "M0,0 L" + this.data.w + ",0 L" + this.data.w + "," + this.data.h + " L0," + this.data.h + "z");
@@ -2810,8 +2523,7 @@ var Ai = { exports: {} };
2810
2523
  if (i.setAttribute("id", a), i.appendChild(s), this.globalData.defs.appendChild(i), this.checkMasks()) {
2811
2524
  var r = z("g");
2812
2525
  r.setAttribute("clip-path", "url(" + dt() + "#" + a + ")"), r.appendChild(this.layerElement), this.transformedElement = r, t ? t.appendChild(this.transformedElement) : this.baseElement = this.transformedElement;
2813
- } else
2814
- this.layerElement.setAttribute("clip-path", "url(" + dt() + "#" + a + ")");
2526
+ } else this.layerElement.setAttribute("clip-path", "url(" + dt() + "#" + a + ")");
2815
2527
  }
2816
2528
  this.data.bm !== 0 && this.setBlendMode();
2817
2529
  }, renderElement: function() {
@@ -2873,32 +2585,24 @@ var Ai = { exports: {} };
2873
2585
  return this.sourceRect;
2874
2586
  }, vi.prototype = { addShapeToModifiers: function(t) {
2875
2587
  var e, i = this.shapeModifiers.length;
2876
- for (e = 0; e < i; e += 1)
2877
- this.shapeModifiers[e].addShape(t);
2588
+ for (e = 0; e < i; e += 1) this.shapeModifiers[e].addShape(t);
2878
2589
  }, isShapeInAnimatedModifiers: function(t) {
2879
- for (var e = this.shapeModifiers.length; 0 < e; )
2880
- if (this.shapeModifiers[0].isAnimatedWithShape(t))
2881
- return !0;
2590
+ for (var e = this.shapeModifiers.length; 0 < e; ) if (this.shapeModifiers[0].isAnimatedWithShape(t)) return !0;
2882
2591
  return !1;
2883
2592
  }, renderModifiers: function() {
2884
2593
  if (this.shapeModifiers.length) {
2885
2594
  var t, e = this.shapes.length;
2886
- for (t = 0; t < e; t += 1)
2887
- this.shapes[t].sh.reset();
2888
- for (t = (e = this.shapeModifiers.length) - 1; t >= 0 && !this.shapeModifiers[t].processShapes(this._isFirstFrame); t -= 1)
2889
- ;
2595
+ for (t = 0; t < e; t += 1) this.shapes[t].sh.reset();
2596
+ for (t = (e = this.shapeModifiers.length) - 1; t >= 0 && !this.shapeModifiers[t].processShapes(this._isFirstFrame); t -= 1) ;
2890
2597
  }
2891
2598
  }, searchProcessedElement: function(t) {
2892
2599
  for (var e = this.processedElements, i = 0, s = e.length; i < s; ) {
2893
- if (e[i].elem === t)
2894
- return e[i].pos;
2600
+ if (e[i].elem === t) return e[i].pos;
2895
2601
  i += 1;
2896
2602
  }
2897
2603
  return 0;
2898
2604
  }, addProcessedElement: function(t, e) {
2899
- for (var i = this.processedElements, s = i.length; s; )
2900
- if (i[s -= 1].elem === t)
2901
- return void (i[s].pos = e);
2605
+ for (var i = this.processedElements, s = i.length; s; ) if (i[s -= 1].elem === t) return void (i[s].pos = e);
2902
2606
  i.push(new ta(t, e));
2903
2607
  }, prepareFrame: function(t) {
2904
2608
  this.prepareRenderableFrame(t), this.prepareProperties(t, this.isInRange);
@@ -2921,8 +2625,7 @@ var Ai = { exports: {} };
2921
2625
  var a;
2922
2626
  this.elem = t, this.frameId = -1, this.dataProps = K(e.length), this.renderer = i, this.k = !1, this.dashStr = "", this.dashArray = ht("float32", e.length ? e.length - 1 : 0), this.dashoffset = ht("float32", 1), this.initDynamicPropertyContainer(s);
2923
2627
  var r, h = e.length || 0;
2924
- for (a = 0; a < h; a += 1)
2925
- r = E.getProp(t, e[a].v, 0, 0, this), this.k = r.k || this.k, this.dataProps[a] = { n: e[a].n, p: r };
2628
+ for (a = 0; a < h; a += 1) r = E.getProp(t, e[a].v, 0, 0, this), this.k = r.k || this.k, this.dataProps[a] = { n: e[a].n, p: r };
2926
2629
  this.k || this.getValue(!0), this._isAnimated = this.k;
2927
2630
  }
2928
2631
  function vs(t, e, i) {
@@ -2958,36 +2661,27 @@ var Ai = { exports: {} };
2958
2661
  }, Le.prototype.getValue = function(t) {
2959
2662
  if ((this.elem.globalData.frameId !== this.frameId || t) && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf = this._mdf || t, this._mdf)) {
2960
2663
  var e = 0, i = this.dataProps.length;
2961
- for (this.renderer === "svg" && (this.dashStr = ""), e = 0; e < i; e += 1)
2962
- this.dataProps[e].n !== "o" ? this.renderer === "svg" ? this.dashStr += " " + this.dataProps[e].p.v : this.dashArray[e] = this.dataProps[e].p.v : this.dashoffset[0] = this.dataProps[e].p.v;
2664
+ for (this.renderer === "svg" && (this.dashStr = ""), e = 0; e < i; e += 1) this.dataProps[e].n !== "o" ? this.renderer === "svg" ? this.dashStr += " " + this.dataProps[e].p.v : this.dashArray[e] = this.dataProps[e].p.v : this.dashoffset[0] = this.dataProps[e].p.v;
2963
2665
  }
2964
2666
  }, W([mt], Le), W([mt], vs), W([mt], bs), W([mt], _s), ve.prototype.comparePoints = function(t, e) {
2965
2667
  for (var i = 0, s = this.o.length / 2; i < s; ) {
2966
- if (Math.abs(t[4 * i] - t[4 * e + 2 * i]) > 0.01)
2967
- return !1;
2668
+ if (Math.abs(t[4 * i] - t[4 * e + 2 * i]) > 0.01) return !1;
2968
2669
  i += 1;
2969
2670
  }
2970
2671
  return !0;
2971
2672
  }, ve.prototype.checkCollapsable = function() {
2972
- if (this.o.length / 2 != this.c.length / 4)
2973
- return !1;
2974
- if (this.data.k.k[0].s)
2975
- for (var t = 0, e = this.data.k.k.length; t < e; ) {
2976
- if (!this.comparePoints(this.data.k.k[t].s, this.data.p))
2977
- return !1;
2978
- t += 1;
2979
- }
2980
- else if (!this.comparePoints(this.data.k.k, this.data.p))
2981
- return !1;
2673
+ if (this.o.length / 2 != this.c.length / 4) return !1;
2674
+ if (this.data.k.k[0].s) for (var t = 0, e = this.data.k.k.length; t < e; ) {
2675
+ if (!this.comparePoints(this.data.k.k[t].s, this.data.p)) return !1;
2676
+ t += 1;
2677
+ }
2678
+ else if (!this.comparePoints(this.data.k.k, this.data.p)) return !1;
2982
2679
  return !0;
2983
2680
  }, ve.prototype.getValue = function(t) {
2984
2681
  if (this.prop.getValue(), this._mdf = !1, this._cmdf = !1, this._omdf = !1, this.prop._mdf || t) {
2985
2682
  var e, i, s, a = 4 * this.data.p;
2986
- for (e = 0; e < a; e += 1)
2987
- i = e % 4 == 0 ? 100 : 255, s = Math.round(this.prop.v[e] * i), this.c[e] !== s && (this.c[e] = s, this._cmdf = !t);
2988
- if (this.o.length)
2989
- for (a = this.prop.v.length, e = 4 * this.data.p; e < a; e += 1)
2990
- i = e % 2 == 0 ? 100 : 1, s = e % 2 == 0 ? Math.round(100 * this.prop.v[e]) : this.prop.v[e], this.o[e - 4 * this.data.p] !== s && (this.o[e - 4 * this.data.p] = s, this._omdf = !t);
2683
+ for (e = 0; e < a; e += 1) i = e % 4 == 0 ? 100 : 255, s = Math.round(this.prop.v[e] * i), this.c[e] !== s && (this.c[e] = s, this._cmdf = !t);
2684
+ if (this.o.length) for (a = this.prop.v.length, e = 4 * this.data.p; e < a; e += 1) i = e % 2 == 0 ? 100 : 1, s = e % 2 == 0 ? Math.round(100 * this.prop.v[e]) : this.prop.v[e], this.o[e - 4 * this.data.p] !== s && (this.o[e - 4 * this.data.p] = s, this._omdf = !t);
2991
2685
  this._mdf = !t;
2992
2686
  }
2993
2687
  }, W([mt], ve), be.prototype.initGradientData = function(t, e, i) {
@@ -2996,8 +2690,7 @@ var Ai = { exports: {} };
2996
2690
  var i = Ct(), s = z(e.t === 1 ? "linearGradient" : "radialGradient");
2997
2691
  s.setAttribute("id", i), s.setAttribute("spreadMethod", "pad"), s.setAttribute("gradientUnits", "userSpaceOnUse");
2998
2692
  var a, r, h, n = [];
2999
- for (h = 4 * e.g.p, r = 0; r < h; r += 4)
3000
- a = z("stop"), s.appendChild(a), n.push(a);
2693
+ for (h = 4 * e.g.p, r = 0; r < h; r += 4) a = z("stop"), s.appendChild(a), n.push(a);
3001
2694
  t.setAttribute(e.ty === "gf" ? "fill" : "stroke", "url(" + dt() + "#" + i + ")"), this.gf = s, this.cst = n;
3002
2695
  }, be.prototype.setGradientOpacity = function(t, e) {
3003
2696
  if (this.g._hasOpacity && !this.g._collapsable) {
@@ -3008,17 +2701,14 @@ var Ai = { exports: {} };
3008
2701
  var y = z(t.t === 1 ? "linearGradient" : "radialGradient");
3009
2702
  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;
3010
2703
  var o = this.stops;
3011
- for (s = 4 * t.g.p; s < a; s += 2)
3012
- (i = z("stop")).setAttribute("stop-color", "rgb(255,255,255)"), y.appendChild(i), o.push(i);
2704
+ for (s = 4 * t.g.p; s < a; s += 2) (i = z("stop")).setAttribute("stop-color", "rgb(255,255,255)"), y.appendChild(i), o.push(i);
3013
2705
  h.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + dt() + "#" + n + ")"), t.ty === "gs" && (h.setAttribute("stroke-linecap", bi[t.lc || 2]), h.setAttribute("stroke-linejoin", _i[t.lj || 2]), t.lj === 1 && h.setAttribute("stroke-miterlimit", t.ml)), this.of = y, this.ms = r, this.ost = o, this.maskId = u, e.msElem = h;
3014
2706
  }
3015
2707
  }, W([mt], be), W([be, mt], Cs);
3016
2708
  var xs = function(t, e, i, s) {
3017
- if (e === 0)
3018
- return "";
2709
+ if (e === 0) return "";
3019
2710
  var a, r = t.o, h = t.i, n = t.v, u = " M" + s.applyToPointStringified(n[0][0], n[0][1]);
3020
- for (a = 1; a < e; a += 1)
3021
- u += " C" + s.applyToPointStringified(r[a - 1][0], r[a - 1][1]) + " " + s.applyToPointStringified(h[a][0], h[a][1]) + " " + s.applyToPointStringified(n[a][0], n[a][1]);
2711
+ for (a = 1; a < e; a += 1) u += " C" + s.applyToPointStringified(r[a - 1][0], r[a - 1][1]) + " " + s.applyToPointStringified(h[a][0], h[a][1]) + " " + s.applyToPointStringified(n[a][0], n[a][1]);
3022
2712
  return i && e && (u += " C" + s.applyToPointStringified(r[a - 1][0], r[a - 1][1]) + " " + s.applyToPointStringified(h[0][0], h[0][1]) + " " + s.applyToPointStringified(n[0][0], n[0][1]), u += "z"), u;
3023
2713
  }, sa = function() {
3024
2714
  var t = new it(), e = new it();
@@ -3031,19 +2721,13 @@ var Ai = { exports: {} };
3031
2721
  var c, g, l, p, f, m, v, x, C, A, T = o.styles.length, I = o.lvl;
3032
2722
  for (m = 0; m < T; m += 1) {
3033
2723
  if (p = o.sh._mdf || d, o.styles[m].lvl < I) {
3034
- for (x = e.reset(), C = I - o.styles[m].lvl, A = o.transformers.length - 1; !p && C > 0; )
3035
- p = o.transformers[A].mProps._mdf || p, C -= 1, A -= 1;
3036
- if (p)
3037
- for (C = I - o.styles[m].lvl, A = o.transformers.length - 1; C > 0; )
3038
- x.multiply(o.transformers[A].mProps.v), C -= 1, A -= 1;
3039
- } else
3040
- x = t;
2724
+ for (x = e.reset(), C = I - o.styles[m].lvl, A = o.transformers.length - 1; !p && C > 0; ) p = o.transformers[A].mProps._mdf || p, C -= 1, A -= 1;
2725
+ if (p) for (C = I - o.styles[m].lvl, A = o.transformers.length - 1; C > 0; ) x.multiply(o.transformers[A].mProps.v), C -= 1, A -= 1;
2726
+ } else x = t;
3041
2727
  if (g = (v = o.sh.paths)._length, p) {
3042
- for (l = "", c = 0; c < g; c += 1)
3043
- (f = v.shapes[c]) && f._length && (l += xs(f, f._length, f.c, x));
2728
+ for (l = "", c = 0; c < g; c += 1) (f = v.shapes[c]) && f._length && (l += xs(f, f._length, f.c, x));
3044
2729
  o.caches[m] = l;
3045
- } else
3046
- l = o.caches[m];
2730
+ } else l = o.caches[m];
3047
2731
  o.styles[m].d += y.hd === !0 ? "" : l, o.styles[m]._mdf = p || o.styles[m]._mdf;
3048
2732
  }
3049
2733
  }
@@ -3067,16 +2751,13 @@ var Ai = { exports: {} };
3067
2751
  if (o.g._cmdf || d) {
3068
2752
  c = o.cst;
3069
2753
  var k = o.g.c;
3070
- for (l = c.length, g = 0; g < l; g += 1)
3071
- (p = c[g]).setAttribute("offset", k[4 * g] + "%"), p.setAttribute("stop-color", "rgb(" + k[4 * g + 1] + "," + k[4 * g + 2] + "," + k[4 * g + 3] + ")");
2754
+ for (l = c.length, g = 0; g < l; g += 1) (p = c[g]).setAttribute("offset", k[4 * g] + "%"), p.setAttribute("stop-color", "rgb(" + k[4 * g + 1] + "," + k[4 * g + 2] + "," + k[4 * g + 3] + ")");
3072
2755
  }
3073
2756
  if (v && (o.g._omdf || d)) {
3074
2757
  var F = o.g.o;
3075
- for (l = (c = o.g._collapsable ? o.cst : o.ost).length, g = 0; g < l; g += 1)
3076
- p = c[g], o.g._collapsable || p.setAttribute("offset", F[2 * g] + "%"), p.setAttribute("stop-opacity", F[2 * g + 1]);
2758
+ for (l = (c = o.g._collapsable ? o.cst : o.ost).length, g = 0; g < l; g += 1) p = c[g], o.g._collapsable || p.setAttribute("offset", F[2 * g] + "%"), p.setAttribute("stop-opacity", F[2 * g + 1]);
3077
2759
  }
3078
- if (y.t === 1)
3079
- (o.e._mdf || d) && (m.setAttribute("x2", C[0]), m.setAttribute("y2", C[1]), v && !o.g._collapsable && (o.of.setAttribute("x2", C[0]), o.of.setAttribute("y2", C[1])));
2760
+ if (y.t === 1) (o.e._mdf || d) && (m.setAttribute("x2", C[0]), m.setAttribute("y2", C[1]), v && !o.g._collapsable && (o.of.setAttribute("x2", C[0]), o.of.setAttribute("y2", C[1])));
3080
2761
  else if ((o.s._mdf || o.e._mdf || d) && (f = Math.sqrt(Math.pow(x[0] - C[0], 2) + Math.pow(x[1] - C[1], 2)), m.setAttribute("r", f), v && !o.g._collapsable && o.of.setAttribute("r", f)), o.e._mdf || o.h._mdf || o.a._mdf || d) {
3081
2762
  f || (f = Math.sqrt(Math.pow(x[0] - C[0], 2) + Math.pow(x[1] - C[1], 2)));
3082
2763
  var M = Math.atan2(C[1] - x[1], C[0] - x[0]), _ = o.h.v;
@@ -3129,14 +2810,12 @@ var Ai = { exports: {} };
3129
2810
  }, Z.prototype.filterUniqueShapes = function() {
3130
2811
  var t, e, i, s, a = this.shapes.length, r = this.stylesList.length, h = [], n = !1;
3131
2812
  for (i = 0; i < r; i += 1) {
3132
- for (s = this.stylesList[i], n = !1, h.length = 0, t = 0; t < a; t += 1)
3133
- (e = this.shapes[t]).styles.indexOf(s) !== -1 && (h.push(e), n = e._isAnimated || n);
2813
+ for (s = this.stylesList[i], n = !1, h.length = 0, t = 0; t < a; t += 1) (e = this.shapes[t]).styles.indexOf(s) !== -1 && (h.push(e), n = e._isAnimated || n);
3134
2814
  h.length > 1 && n && this.setShapesAsAnimated(h);
3135
2815
  }
3136
2816
  }, Z.prototype.setShapesAsAnimated = function(t) {
3137
2817
  var e, i = t.length;
3138
- for (e = 0; e < i; e += 1)
3139
- t[e].setAsAnimated();
2818
+ for (e = 0; e < i; e += 1) t[e].setAsAnimated();
3140
2819
  }, Z.prototype.createStyleElement = function(t, e) {
3141
2820
  var i, s = new ys(t, e), a = s.pElem;
3142
2821
  return t.ty === "st" ? i = new vs(this, t, s) : t.ty === "fl" ? i = new bs(this, t, s) : t.ty === "gf" || t.ty === "gs" ? (i = new (t.ty === "gf" ? be : Cs)(this, t, s), this.globalData.defs.appendChild(i.gf), i.maskId && (this.globalData.defs.appendChild(i.ms), this.globalData.defs.appendChild(i.of), a.setAttribute("mask", "url(" + dt() + "#" + i.maskId + ")"))) : t.ty === "no" && (i = new _s(this, t, s)), t.ty !== "st" && t.ty !== "gs" || (a.setAttribute("stroke-linecap", bi[t.lc || 2]), a.setAttribute("stroke-linejoin", _i[t.lj || 2]), a.setAttribute("fill-opacity", "0"), t.lj === 1 && a.setAttribute("stroke-miterlimit", t.ml)), t.r === 2 && a.setAttribute("fill-rule", "evenodd"), t.ln && a.setAttribute("id", t.ln), t.cl && a.setAttribute("class", t.cl), t.bm && (a.style["mix-blend-mode"] = Ue(t.bm)), this.stylesList.push(s), this.addToAnimatedContents(t, i), i;
@@ -3153,56 +2832,42 @@ var Ai = { exports: {} };
3153
2832
  return this.shapes.push(a), this.addShapeToModifiers(a), this.addToAnimatedContents(t, a), a;
3154
2833
  }, Z.prototype.addToAnimatedContents = function(t, e) {
3155
2834
  for (var i = 0, s = this.animatedContents.length; i < s; ) {
3156
- if (this.animatedContents[i].element === e)
3157
- return;
2835
+ if (this.animatedContents[i].element === e) return;
3158
2836
  i += 1;
3159
2837
  }
3160
2838
  this.animatedContents.push({ fn: sa.createRenderFunction(t), element: e, data: t });
3161
2839
  }, Z.prototype.setElementStyles = function(t) {
3162
2840
  var e, i = t.styles, s = this.stylesList.length;
3163
- for (e = 0; e < s; e += 1)
3164
- this.stylesList[e].closed || i.push(this.stylesList[e]);
2841
+ for (e = 0; e < s; e += 1) this.stylesList[e].closed || i.push(this.stylesList[e]);
3165
2842
  }, Z.prototype.reloadShapes = function() {
3166
2843
  var t;
3167
2844
  this._isFirstFrame = !0;
3168
2845
  var e = this.itemsData.length;
3169
- for (t = 0; t < e; t += 1)
3170
- this.prevViewData[t] = this.itemsData[t];
3171
- 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)
3172
- this.dynamicProperties[t].getValue();
2846
+ for (t = 0; t < e; t += 1) this.prevViewData[t] = this.itemsData[t];
2847
+ 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();
3173
2848
  this.renderModifiers();
3174
2849
  }, Z.prototype.searchShapes = function(t, e, i, s, a, r, h) {
3175
2850
  var n, u, y, o, d, c, g = [].concat(r), l = t.length - 1, p = [], f = [];
3176
2851
  for (n = l; n >= 0; n -= 1) {
3177
- if ((c = this.searchProcessedElement(t[n])) ? e[n] = i[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")
3178
- c ? e[n].style.closed = !1 : e[n] = this.createStyleElement(t[n], a), t[n]._render && e[n].style.pElem.parentNode !== s && s.appendChild(e[n].style.pElem), p.push(e[n].style);
2852
+ if ((c = this.searchProcessedElement(t[n])) ? e[n] = i[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 = !1 : e[n] = this.createStyleElement(t[n], a), t[n]._render && e[n].style.pElem.parentNode !== s && s.appendChild(e[n].style.pElem), p.push(e[n].style);
3179
2853
  else if (t[n].ty === "gr") {
3180
- if (c)
3181
- for (y = e[n].it.length, u = 0; u < y; u += 1)
3182
- e[n].prevViewData[u] = e[n].it[u];
3183
- else
3184
- e[n] = this.createGroupElement(t[n]);
2854
+ if (c) for (y = e[n].it.length, u = 0; u < y; u += 1) e[n].prevViewData[u] = e[n].it[u];
2855
+ else e[n] = this.createGroupElement(t[n]);
3185
2856
  this.searchShapes(t[n].it, e[n].it, e[n].prevViewData, e[n].gr, a + 1, g, h), t[n]._render && e[n].gr.parentNode !== s && s.appendChild(e[n].gr);
3186
- } else
3187
- t[n].ty === "tr" ? (c || (e[n] = this.createTransformElement(t[n], s)), o = e[n].transform, g.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], g, 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)), f.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), f.push(d));
2857
+ } else t[n].ty === "tr" ? (c || (e[n] = this.createTransformElement(t[n], s)), o = e[n].transform, g.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], g, 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)), f.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), f.push(d));
3188
2858
  this.addProcessedElement(t[n], n + 1);
3189
2859
  }
3190
- for (l = p.length, n = 0; n < l; n += 1)
3191
- p[n].closed = !0;
3192
- for (l = f.length, n = 0; n < l; n += 1)
3193
- f[n].closed = !0;
2860
+ for (l = p.length, n = 0; n < l; n += 1) p[n].closed = !0;
2861
+ for (l = f.length, n = 0; n < l; n += 1) f[n].closed = !0;
3194
2862
  }, Z.prototype.renderInnerContent = function() {
3195
2863
  var t;
3196
2864
  this.renderModifiers();
3197
2865
  var e = this.stylesList.length;
3198
- for (t = 0; t < e; t += 1)
3199
- this.stylesList[t].reset();
3200
- for (this.renderShape(), t = 0; t < e; t += 1)
3201
- (this.stylesList[t]._mdf || this._isFirstFrame) && (this.stylesList[t].msElem && (this.stylesList[t].msElem.setAttribute("d", this.stylesList[t].d), this.stylesList[t].d = "M0 0" + this.stylesList[t].d), this.stylesList[t].pElem.setAttribute("d", this.stylesList[t].d || "M0 0"));
2866
+ for (t = 0; t < e; t += 1) this.stylesList[t].reset();
2867
+ for (this.renderShape(), t = 0; t < e; t += 1) (this.stylesList[t]._mdf || this._isFirstFrame) && (this.stylesList[t].msElem && (this.stylesList[t].msElem.setAttribute("d", this.stylesList[t].d), this.stylesList[t].d = "M0 0" + this.stylesList[t].d), this.stylesList[t].pElem.setAttribute("d", this.stylesList[t].d || "M0 0"));
3202
2868
  }, Z.prototype.renderShape = function() {
3203
2869
  var t, e, i = this.animatedContents.length;
3204
- for (t = 0; t < i; t += 1)
3205
- e = this.animatedContents[t], (this._isFirstFrame || e.element._isAnimated) && e.data !== !0 && e.fn(e.data, e.element, this._isFirstFrame);
2870
+ for (t = 0; t < i; t += 1) e = this.animatedContents[t], (this._isFirstFrame || e.element._isAnimated) && e.data !== !0 && e.fn(e.data, e.element, this._isFirstFrame);
3206
2871
  }, Z.prototype.destroy = function() {
3207
2872
  this.destroyBaseElement(), this.shapesData = null, this.itemsData = null;
3208
2873
  }, xi.prototype.update = function(t, e, i, s, a, r) {
@@ -3210,8 +2875,7 @@ var Ai = { exports: {} };
3210
2875
  var h = !1;
3211
2876
  return this.o !== t && (this.o = t, this._mdf.o = !0, h = !0), this.sw !== e && (this.sw = e, this._mdf.sw = !0, h = !0), this.sc !== i && (this.sc = i, this._mdf.sc = !0, h = !0), this.fc !== s && (this.fc = s, this._mdf.fc = !0, h = !0), this.m !== a && (this.m = a, this._mdf.m = !0, h = !0), !r.length || this.p[0] === r[0] && this.p[1] === r[1] && this.p[4] === r[4] && this.p[5] === r[5] && this.p[12] === r[12] && this.p[13] === r[13] || (this.p = r, this._mdf.p = !0, h = !0), h;
3212
2877
  }, vt.prototype.defaultBoxWidth = [0, 0], vt.prototype.copyData = function(t, e) {
3213
- for (var i in e)
3214
- Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
2878
+ for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
3215
2879
  return t;
3216
2880
  }, vt.prototype.setCurrentData = function(t) {
3217
2881
  t.__complete || this.completeTextData(t), this.currentData = t, this.currentData.boxWidth = this.currentData.boxWidth || this.defaultBoxWidth, this._mdf = !0;
@@ -3225,80 +2889,65 @@ var Ai = { exports: {} };
3225
2889
  if (this.elem.globalData.frameId !== this.frameId && this.effectsSequence.length || t) {
3226
2890
  this.currentData.t = this.data.d.k[this.keysIndex].s.t;
3227
2891
  var e = this.currentData, i = this.keysIndex;
3228
- if (this.lock)
3229
- this.setCurrentData(this.currentData);
2892
+ if (this.lock) this.setCurrentData(this.currentData);
3230
2893
  else {
3231
2894
  var s;
3232
2895
  this.lock = !0, this._mdf = !1;
3233
2896
  var a = this.effectsSequence.length, r = t || this.data.d.k[this.keysIndex].s;
3234
- for (s = 0; s < a; s += 1)
3235
- r = i !== this.keysIndex ? this.effectsSequence[s](r, r.t) : this.effectsSequence[s](this.currentData, r.t);
2897
+ for (s = 0; s < a; s += 1) r = i !== this.keysIndex ? this.effectsSequence[s](r, r.t) : this.effectsSequence[s](this.currentData, r.t);
3236
2898
  e !== r && this.setCurrentData(r), this.v = this.currentData, this.pv = this.v, this.lock = !1, this.frameId = this.elem.globalData.frameId;
3237
2899
  }
3238
2900
  }
3239
2901
  }, vt.prototype.getKeyframeValue = function() {
3240
- for (var t = this.data.d.k, e = this.elem.comp.renderedFrame, i = 0, s = t.length; i <= s - 1 && !(i === s - 1 || t[i + 1].t > e); )
3241
- i += 1;
2902
+ for (var t = this.data.d.k, e = this.elem.comp.renderedFrame, i = 0, s = t.length; i <= s - 1 && !(i === s - 1 || t[i + 1].t > e); ) i += 1;
3242
2903
  return this.keysIndex !== i && (this.keysIndex = i), this.data.d.k[this.keysIndex].s;
3243
2904
  }, vt.prototype.buildFinalText = function(t) {
3244
- for (var e, i, s = [], a = 0, r = t.length, h = !1, n = !1, u = ""; a < r; )
3245
- h = n, n = !1, e = t.charCodeAt(a), u = t.charAt(a), ne.isCombinedCharacter(e) ? h = !0 : e >= 55296 && e <= 56319 ? ne.isRegionalFlag(t, a) ? u = t.substr(a, 14) : (i = t.charCodeAt(a + 1)) >= 56320 && i <= 57343 && (ne.isModifier(e, i) ? (u = t.substr(a, 2), h = !0) : u = ne.isFlagEmoji(t.substr(a, 4)) ? t.substr(a, 4) : t.substr(a, 2)) : e > 56319 ? (i = t.charCodeAt(a + 1), ne.isVariationSelector(e) && (h = !0)) : ne.isZeroWidthJoiner(e) && (h = !0, n = !0), h ? (s[s.length - 1] += u, h = !1) : s.push(u), a += u.length;
2905
+ for (var e, i, s = [], a = 0, r = t.length, h = !1, n = !1, u = ""; a < r; ) h = n, n = !1, e = t.charCodeAt(a), u = t.charAt(a), ne.isCombinedCharacter(e) ? h = !0 : e >= 55296 && e <= 56319 ? ne.isRegionalFlag(t, a) ? u = t.substr(a, 14) : (i = t.charCodeAt(a + 1)) >= 56320 && i <= 57343 && (ne.isModifier(e, i) ? (u = t.substr(a, 2), h = !0) : u = ne.isFlagEmoji(t.substr(a, 4)) ? t.substr(a, 4) : t.substr(a, 2)) : e > 56319 ? (i = t.charCodeAt(a + 1), ne.isVariationSelector(e) && (h = !0)) : ne.isZeroWidthJoiner(e) && (h = !0, n = !0), h ? (s[s.length - 1] += u, h = !1) : s.push(u), a += u.length;
3246
2906
  return s;
3247
2907
  }, vt.prototype.completeTextData = function(t) {
3248
2908
  t.__complete = !0;
3249
2909
  var e, i, s, a, r, h, n, u = this.elem.globalData.fontManager, y = this.data, o = [], d = 0, c = y.m.g, g = 0, l = 0, p = 0, f = [], m = 0, v = 0, x = u.getFontByName(t.f), C = 0, A = fs(x);
3250
2910
  t.fWeight = A.weight, t.fStyle = A.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), i = t.finalText.length, t.finalLineHeight = t.lh;
3251
2911
  var T, I = t.tr / 1e3 * t.finalSize;
3252
- if (t.sz)
3253
- for (var k, F, M = !0, _ = t.sz[0], D = t.sz[1]; M; ) {
3254
- k = 0, m = 0, i = (F = this.buildFinalText(t.t)).length, I = t.tr / 1e3 * t.finalSize;
3255
- var w = -1;
3256
- for (e = 0; e < i; e += 1)
3257
- T = F[e].charCodeAt(0), s = !1, F[e] === " " ? w = e : T !== 13 && T !== 3 || (m = 0, s = !0, k += t.finalLineHeight || 1.2 * t.finalSize), u.chars ? (n = u.getCharData(F[e], x.fStyle, x.fFamily), C = s ? 0 : n.w * t.finalSize / 100) : C = u.measureText(F[e], t.f, t.finalSize), m + C > _ && F[e] !== " " ? (w === -1 ? i += 1 : e = w, k += t.finalLineHeight || 1.2 * t.finalSize, F.splice(e, w === e ? 1 : 0, "\r"), w = -1, m = 0) : (m += C, m += I);
3258
- k += x.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && D < k ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = F, i = t.finalText.length, M = !1);
3259
- }
2912
+ if (t.sz) for (var k, F, M = !0, _ = t.sz[0], D = t.sz[1]; M; ) {
2913
+ k = 0, m = 0, i = (F = this.buildFinalText(t.t)).length, I = t.tr / 1e3 * t.finalSize;
2914
+ var w = -1;
2915
+ for (e = 0; e < i; e += 1) T = F[e].charCodeAt(0), s = !1, F[e] === " " ? w = e : T !== 13 && T !== 3 || (m = 0, s = !0, k += t.finalLineHeight || 1.2 * t.finalSize), u.chars ? (n = u.getCharData(F[e], x.fStyle, x.fFamily), C = s ? 0 : n.w * t.finalSize / 100) : C = u.measureText(F[e], t.f, t.finalSize), m + C > _ && F[e] !== " " ? (w === -1 ? i += 1 : e = w, k += t.finalLineHeight || 1.2 * t.finalSize, F.splice(e, w === e ? 1 : 0, "\r"), w = -1, m = 0) : (m += C, m += I);
2916
+ k += x.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && D < k ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = F, i = t.finalText.length, M = !1);
2917
+ }
3260
2918
  m = -I, C = 0;
3261
2919
  var P, V = 0;
3262
- for (e = 0; e < i; e += 1)
3263
- if (s = !1, (T = (P = t.finalText[e]).charCodeAt(0)) === 13 || T === 3 ? (V = 0, f.push(m), v = m > v ? m : v, m = -2 * I, a = "", s = !0, p += 1) : a = P, u.chars ? (n = u.getCharData(P, x.fStyle, u.getFontByName(t.f).fFamily), C = s ? 0 : n.w * t.finalSize / 100) : C = u.measureText(a, t.f, t.finalSize), P === " " ? V += C + I : (m += C + I + V, V = 0), o.push({ l: C, an: C, add: g, n: s, anIndexes: [], val: a, line: p, animatorJustifyOffset: 0 }), c == 2) {
3264
- if (g += C, a === "" || a === " " || e === i - 1) {
3265
- for (a !== "" && a !== " " || (g -= C); l <= e; )
3266
- o[l].an = g, o[l].ind = d, o[l].extra = C, l += 1;
3267
- d += 1, g = 0;
3268
- }
3269
- } else if (c == 3) {
3270
- if (g += C, a === "" || e === i - 1) {
3271
- for (a === "" && (g -= C); l <= e; )
3272
- o[l].an = g, o[l].ind = d, o[l].extra = C, l += 1;
3273
- g = 0, d += 1;
3274
- }
3275
- } else
3276
- o[d].ind = d, o[d].extra = 0, d += 1;
3277
- if (t.l = o, v = m > v ? m : v, f.push(m), t.sz)
3278
- t.boxWidth = t.sz[0], t.justifyOffset = 0;
3279
- else
3280
- switch (t.boxWidth = v, t.j) {
3281
- case 1:
3282
- t.justifyOffset = -t.boxWidth;
3283
- break;
3284
- case 2:
3285
- t.justifyOffset = -t.boxWidth / 2;
3286
- break;
3287
- default:
3288
- t.justifyOffset = 0;
3289
- }
2920
+ for (e = 0; e < i; e += 1) if (s = !1, (T = (P = t.finalText[e]).charCodeAt(0)) === 13 || T === 3 ? (V = 0, f.push(m), v = m > v ? m : v, m = -2 * I, a = "", s = !0, p += 1) : a = P, u.chars ? (n = u.getCharData(P, x.fStyle, u.getFontByName(t.f).fFamily), C = s ? 0 : n.w * t.finalSize / 100) : C = u.measureText(a, t.f, t.finalSize), P === " " ? V += C + I : (m += C + I + V, V = 0), o.push({ l: C, an: C, add: g, n: s, anIndexes: [], val: a, line: p, animatorJustifyOffset: 0 }), c == 2) {
2921
+ if (g += C, a === "" || a === " " || e === i - 1) {
2922
+ for (a !== "" && a !== " " || (g -= C); l <= e; ) o[l].an = g, o[l].ind = d, o[l].extra = C, l += 1;
2923
+ d += 1, g = 0;
2924
+ }
2925
+ } else if (c == 3) {
2926
+ if (g += C, a === "" || e === i - 1) {
2927
+ for (a === "" && (g -= C); l <= e; ) o[l].an = g, o[l].ind = d, o[l].extra = C, l += 1;
2928
+ g = 0, d += 1;
2929
+ }
2930
+ } else o[d].ind = d, o[d].extra = 0, d += 1;
2931
+ if (t.l = o, v = m > v ? m : v, f.push(m), t.sz) t.boxWidth = t.sz[0], t.justifyOffset = 0;
2932
+ else switch (t.boxWidth = v, t.j) {
2933
+ case 1:
2934
+ t.justifyOffset = -t.boxWidth;
2935
+ break;
2936
+ case 2:
2937
+ t.justifyOffset = -t.boxWidth / 2;
2938
+ break;
2939
+ default:
2940
+ t.justifyOffset = 0;
2941
+ }
3290
2942
  t.lineWidths = f;
3291
2943
  var O, B, b, S, L = y.a;
3292
2944
  h = L.length;
3293
2945
  var N = [];
3294
2946
  for (r = 0; r < h; r += 1) {
3295
- for ((O = L[r]).a.sc && (t.strokeColorAnim = !0), O.a.sw && (t.strokeWidthAnim = !0), (O.a.fc || O.a.fh || O.a.fs || O.a.fb) && (t.fillColorAnim = !0), S = 0, b = O.s.b, e = 0; e < i; e += 1)
3296
- (B = o[e]).anIndexes[r] = S, (b == 1 && B.val !== "" || b == 2 && B.val !== "" && B.val !== " " || b == 3 && (B.n || B.val == " " || e == i - 1) || b == 4 && (B.n || e == i - 1)) && (O.s.rn === 1 && N.push(S), S += 1);
2947
+ for ((O = L[r]).a.sc && (t.strokeColorAnim = !0), O.a.sw && (t.strokeWidthAnim = !0), (O.a.fc || O.a.fh || O.a.fs || O.a.fb) && (t.fillColorAnim = !0), S = 0, b = O.s.b, e = 0; e < i; e += 1) (B = o[e]).anIndexes[r] = S, (b == 1 && B.val !== "" || b == 2 && B.val !== "" && B.val !== " " || b == 3 && (B.n || B.val == " " || e == i - 1) || b == 4 && (B.n || e == i - 1)) && (O.s.rn === 1 && N.push(S), S += 1);
3297
2948
  y.a[r].s.totalChars = S;
3298
2949
  var U, $ = -1;
3299
- if (O.s.rn === 1)
3300
- for (e = 0; e < i; e += 1)
3301
- $ != (B = o[e]).anIndexes[r] && ($ = B.anIndexes[r], U = N.splice(Math.floor(Math.random() * N.length), 1)[0]), B.anIndexes[r] = U;
2950
+ if (O.s.rn === 1) for (e = 0; e < i; 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;
3302
2951
  }
3303
2952
  t.yOffset = t.finalLineHeight || 1.2 * t.finalSize, t.ls = t.ls || 0, t.ascent = x.ascent * t.finalSize / 100;
3304
2953
  }, vt.prototype.updateDocumentData = function(t, e) {
@@ -3323,22 +2972,17 @@ var Ai = { exports: {} };
3323
2972
  var r = 0, h = 0, n = 1, u = 1;
3324
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 : u = 1 + this.xe.v / 100;
3325
2974
  var y = ke.getBezierEasing(r, h, n, u).get, o = 0, d = this.finalS, c = this.finalE, g = this.data.sh;
3326
- if (g === 2)
3327
- o = y(o = c === d ? a >= c ? 1 : 0 : t(0, e(0.5 / (c - d) + (a - d) / (c - d), 1)));
3328
- else if (g === 3)
3329
- o = y(o = c === d ? a >= c ? 0 : 1 : 1 - t(0, e(0.5 / (c - d) + (a - d) / (c - d), 1)));
3330
- else if (g === 4)
3331
- 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);
2975
+ if (g === 2) o = y(o = c === d ? a >= c ? 1 : 0 : t(0, e(0.5 / (c - d) + (a - d) / (c - d), 1)));
2976
+ else if (g === 3) o = y(o = c === d ? a >= c ? 0 : 1 : 1 - t(0, e(0.5 / (c - d) + (a - d) / (c - d), 1)));
2977
+ else if (g === 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);
3332
2978
  else if (g === 5) {
3333
- if (c === d)
3334
- o = 0;
2979
+ if (c === d) o = 0;
3335
2980
  else {
3336
2981
  var l = c - d, p = -l / 2 + (a = e(t(0, a + 0.5 - d), c - d)), f = l / 2;
3337
2982
  o = Math.sqrt(1 - p * p / (f * f));
3338
2983
  }
3339
2984
  o = y(o);
3340
- } else
3341
- g === 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 >= i(d) && (o = t(0, e(a - d < 0 ? e(c, 1) - (d - a) : c - a, 1))), o = y(o));
2985
+ } else g === 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 >= i(d) && (o = t(0, e(a - d < 0 ? e(c, 1) - (d - a) : c - a, 1))), o = y(o));
3342
2986
  if (this.sm.v !== 100) {
3343
2987
  var m = 0.01 * this.sm.v;
3344
2988
  m === 0 && (m = 1e-8);
@@ -3369,8 +3013,7 @@ var Ai = { exports: {} };
3369
3013
  }
3370
3014
  he.prototype.searchProperties = function() {
3371
3015
  var t, e, i = this._textData.a.length, s = E.getProp;
3372
- for (t = 0; t < i; t += 1)
3373
- e = this._textData.a[t], this._animatorsData[t] = new ra(this._elem, e, this);
3016
+ for (t = 0; t < i; t += 1) e = this._textData.a[t], this._animatorsData[t] = new ra(this._elem, e, this);
3374
3017
  this._textData.p && "m" in this._textData.p ? (this._pathData = { a: s(this._elem, this._textData.p.a, 0, 0, this), f: s(this._elem, this._textData.p.f, 0, 0, this), l: s(this._elem, this._textData.p.l, 0, 0, this), r: s(this._elem, this._textData.p.r, 0, 0, this), p: s(this._elem, this._textData.p.p, 0, 0, this), m: this._elem.maskManager.getMaskProperty(this._textData.p.m) }, this._hasMaskedPath = !0) : this._hasMaskedPath = !1, this._moreOptions.alignment = s(this._elem, this._textData.m.a, 1, 0, this);
3375
3018
  }, he.prototype.getMeasures = function(t, e) {
3376
3019
  if (this.lettersChangedFlag = e, this._mdf || this._isFirstFrame || e || this._hasMaskedPath && this._pathData.m._mdf) {
@@ -3379,13 +3022,10 @@ var Ai = { exports: {} };
3379
3022
  if (this._hasMaskedPath) {
3380
3023
  if (C = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
3381
3024
  var D, w = C.v;
3382
- for (this._pathData.r.v && (w = w.reverse()), h = { tLength: 0, segments: [] }, r = w._length - 1, m = 0, a = 0; a < r; a += 1)
3383
- 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), m += D.segmentLength;
3025
+ for (this._pathData.r.v && (w = w.reverse()), h = { tLength: 0, segments: [] }, r = w._length - 1, m = 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), m += D.segmentLength;
3384
3026
  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), m += D.segmentLength), this._pathData.pi = h;
3385
3027
  }
3386
- if (h = this._pathData.pi, n = this._pathData.f.v, c = 0, d = 1, y = 0, o = !0, p = h.segments, n < 0 && C.v.c)
3387
- for (h.tLength < Math.abs(n) && (n = -Math.abs(n) % h.tLength), d = (l = p[c = p.length - 1].points).length - 1; n < 0; )
3388
- n += l[d].partialLength, (d -= 1) < 0 && (d = (l = p[c -= 1].points).length - 1);
3028
+ if (h = this._pathData.pi, n = this._pathData.f.v, c = 0, d = 1, y = 0, o = !0, p = h.segments, n < 0 && C.v.c) for (h.tLength < Math.abs(n) && (n = -Math.abs(n) % h.tLength), d = (l = p[c = p.length - 1].points).length - 1; n < 0; ) n += l[d].partialLength, (d -= 1) < 0 && (d = (l = p[c -= 1].points).length - 1);
3389
3029
  g = (l = p[c].points)[d - 1], f = (u = l[d]).partialLength;
3390
3030
  }
3391
3031
  r = _.length, i = 0, s = 0;
@@ -3394,22 +3034,17 @@ var Ai = { exports: {} };
3394
3034
  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;
3395
3035
  if (t.j === 2 || t.j === 1) {
3396
3036
  var ot = 0, St = 0, ee = t.j === 2 ? -0.5 : -1, Et = 0, ie = !0;
3397
- for (a = 0; a < r; a += 1)
3398
- if (_[a].n) {
3399
- for (ot && (ot += St); Et < a; )
3400
- _[Et].animatorJustifyOffset = ot, Et += 1;
3401
- ot = 0, ie = !0;
3402
- } else {
3403
- for (V = 0; V < O; V += 1)
3404
- (P = T[V].a).t.propType && (ie && t.j === 2 && (St += P.t.v * ee), (b = T[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);
3405
- ie = !1;
3406
- }
3407
- for (ot && (ot += St); Et < a; )
3408
- _[Et].animatorJustifyOffset = ot, Et += 1;
3037
+ for (a = 0; a < r; a += 1) if (_[a].n) {
3038
+ for (ot && (ot += St); Et < a; ) _[Et].animatorJustifyOffset = ot, Et += 1;
3039
+ ot = 0, ie = !0;
3040
+ } else {
3041
+ for (V = 0; V < O; V += 1) (P = T[V].a).t.propType && (ie && t.j === 2 && (St += P.t.v * ee), (b = T[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
+ ie = !1;
3043
+ }
3044
+ for (ot && (ot += St); Et < a; ) _[Et].animatorJustifyOffset = ot, Et += 1;
3409
3045
  }
3410
3046
  for (a = 0; a < r; a += 1) {
3411
- if (k.reset(), Q = 1, _[a].n)
3412
- i = 0, s += t.yOffset, s += L ? 1 : 0, n = q, L = !1, this._hasMaskedPath && (d = Gt, g = (l = p[c = Ht].points)[d - 1], f = (u = l[d]).partialLength, y = 0), _t = "", rt = "", ct = "", nt = "", kt = this.defaultPropsArray;
3047
+ if (k.reset(), Q = 1, _[a].n) i = 0, s += t.yOffset, s += L ? 1 : 0, n = q, L = !1, this._hasMaskedPath && (d = Gt, g = (l = p[c = Ht].points)[d - 1], f = (u = l[d]).partialLength, y = 0), _t = "", rt = "", ct = "", nt = "", kt = this.defaultPropsArray;
3413
3048
  else {
3414
3049
  if (this._hasMaskedPath) {
3415
3050
  if (jt !== _[a].line) {
@@ -3424,32 +3059,21 @@ var Ai = { exports: {} };
3424
3059
  }
3425
3060
  at !== _[a].ind && (_[at] && (n += _[at].extra), n += _[a].an / 2, at = _[a].ind), n += A[0] * _[a].an * 5e-3;
3426
3061
  var Lt = 0;
3427
- for (V = 0; V < O; V += 1)
3428
- (P = T[V].a).p.propType && ((b = T[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 = T[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);
3429
- for (o = !0, this._pathData.a.v && (n = 0.5 * _[0].an + (m - this._pathData.f.v - 0.5 * _[0].an - 0.5 * _[_.length - 1].an) * at / (r - 1), n += this._pathData.f.v); o; )
3430
- y + f >= n + Lt || !l ? (v = (n + Lt - y) / u.partialLength, U = g.point[0] + (u.point[0] - g.point[0]) * v, $ = g.point[1] + (u.point[1] - g.point[1]) * v, k.translate(-A[0] * _[a].an * 5e-3, -A[1] * S * 0.01), o = !1) : l && (y += u.partialLength, (d += 1) >= l.length && (d = 0, p[c += 1] ? l = p[c].points : C.v.c ? (d = 0, l = p[c = 0].points) : (y -= u.partialLength, l = null)), l && (g = u, f = (u = l[d]).partialLength));
3062
+ for (V = 0; V < O; V += 1) (P = T[V].a).p.propType && ((b = T[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 = T[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);
3063
+ for (o = !0, this._pathData.a.v && (n = 0.5 * _[0].an + (m - this._pathData.f.v - 0.5 * _[0].an - 0.5 * _[_.length - 1].an) * at / (r - 1), n += this._pathData.f.v); o; ) y + f >= n + Lt || !l ? (v = (n + Lt - y) / u.partialLength, U = g.point[0] + (u.point[0] - g.point[0]) * v, $ = g.point[1] + (u.point[1] - g.point[1]) * v, k.translate(-A[0] * _[a].an * 5e-3, -A[1] * S * 0.01), o = !1) : l && (y += u.partialLength, (d += 1) >= l.length && (d = 0, p[c += 1] ? l = p[c].points : C.v.c ? (d = 0, l = p[c = 0].points) : (y -= u.partialLength, l = null)), l && (g = u, f = (u = l[d]).partialLength));
3431
3064
  N = _[a].an / 2 - _[a].add, k.translate(-N, 0, 0);
3432
- } else
3433
- N = _[a].an / 2 - _[a].add, k.translate(-N, 0, 0), k.translate(-A[0] * _[a].an * 5e-3, -A[1] * S * 0.01, 0);
3434
- for (V = 0; V < O; V += 1)
3435
- (P = T[V].a).t.propType && (b = T[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars), i === 0 && t.j === 0 || (this._hasMaskedPath ? b.length ? n += P.t.v * b[0] : n += P.t.v * b : b.length ? i += P.t.v * b[0] : i += P.t.v * b));
3436
- 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)
3437
- (P = T[V].a).a.propType && ((b = T[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars)).length ? k.translate(-P.a.v[0] * b[0], -P.a.v[1] * b[1], P.a.v[2] * b[2]) : k.translate(-P.a.v[0] * b, -P.a.v[1] * b, P.a.v[2] * b));
3438
- for (V = 0; V < O; V += 1)
3439
- (P = T[V].a).s.propType && ((b = T[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars)).length ? k.scale(1 + (P.s.v[0] - 1) * b[0], 1 + (P.s.v[1] - 1) * b[1], 1) : k.scale(1 + (P.s.v[0] - 1) * b, 1 + (P.s.v[1] - 1) * b, 1));
3065
+ } else N = _[a].an / 2 - _[a].add, k.translate(-N, 0, 0), k.translate(-A[0] * _[a].an * 5e-3, -A[1] * S * 0.01, 0);
3066
+ for (V = 0; V < O; V += 1) (P = T[V].a).t.propType && (b = T[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars), i === 0 && t.j === 0 || (this._hasMaskedPath ? b.length ? n += P.t.v * b[0] : n += P.t.v * b : b.length ? i += P.t.v * b[0] : i += P.t.v * b));
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 = T[V].a).a.propType && ((b = T[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars)).length ? k.translate(-P.a.v[0] * b[0], -P.a.v[1] * b[1], P.a.v[2] * b[2]) : k.translate(-P.a.v[0] * b, -P.a.v[1] * b, P.a.v[2] * b));
3068
+ for (V = 0; V < O; V += 1) (P = T[V].a).s.propType && ((b = T[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars)).length ? k.scale(1 + (P.s.v[0] - 1) * b[0], 1 + (P.s.v[1] - 1) * b[1], 1) : k.scale(1 + (P.s.v[0] - 1) * b, 1 + (P.s.v[1] - 1) * b, 1));
3440
3069
  for (V = 0; V < O; V += 1) {
3441
- if (P = T[V].a, b = T[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars), P.sk.propType && (b.length ? k.skewFromAxis(-P.sk.v * b[0], P.sa.v * b[1]) : k.skewFromAxis(-P.sk.v * b, P.sa.v * b)), P.r.propType && (b.length ? k.rotateZ(-P.r.v * b[2]) : k.rotateZ(-P.r.v * b)), P.ry.propType && (b.length ? k.rotateY(P.ry.v * b[1]) : k.rotateY(P.ry.v * b)), P.rx.propType && (b.length ? k.rotateX(P.rx.v * b[0]) : k.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)
3442
- for (Y = 0; Y < 3; Y += 1)
3443
- b.length ? J[Y] += (P.sc.v[Y] - J[Y]) * b[0] : J[Y] += (P.sc.v[Y] - J[Y]) * b;
3070
+ if (P = T[V].a, b = T[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars), P.sk.propType && (b.length ? k.skewFromAxis(-P.sk.v * b[0], P.sa.v * b[1]) : k.skewFromAxis(-P.sk.v * b, P.sa.v * b)), P.r.propType && (b.length ? k.rotateZ(-P.r.v * b[2]) : k.rotateZ(-P.r.v * b)), P.ry.propType && (b.length ? k.rotateY(P.ry.v * b[1]) : k.rotateY(P.ry.v * b)), P.rx.propType && (b.length ? k.rotateX(P.rx.v * b[0]) : k.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;
3444
3071
  if (t.fillColorAnim && t.fc) {
3445
- if (P.fc.propType)
3446
- for (Y = 0; Y < 3; Y += 1)
3447
- b.length ? j[Y] += (P.fc.v[Y] - j[Y]) * b[0] : j[Y] += (P.fc.v[Y] - j[Y]) * b;
3072
+ 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;
3448
3073
  P.fh.propType && (j = b.length ? qi(j, P.fh.v * b[0]) : qi(j, P.fh.v * b)), P.fs.propType && (j = b.length ? Oi(j, P.fs.v * b[0]) : Oi(j, P.fs.v * b)), P.fb.propType && (j = b.length ? Ni(j, P.fb.v * b[0]) : Ni(j, P.fb.v * b));
3449
3074
  }
3450
3075
  }
3451
- for (V = 0; V < O; V += 1)
3452
- (P = T[V].a).p.propType && (b = T[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars), this._hasMaskedPath ? b.length ? k.translate(0, P.p.v[1] * b[0], -P.p.v[2] * b[1]) : k.translate(0, P.p.v[1] * b, -P.p.v[2] * b) : b.length ? k.translate(P.p.v[0] * b[0], P.p.v[1] * b[1], -P.p.v[2] * b[2]) : k.translate(P.p.v[0] * b, P.p.v[1] * b, -P.p.v[2] * b));
3076
+ for (V = 0; V < O; V += 1) (P = T[V].a).p.propType && (b = T[V].s.getMult(_[a].anIndexes[V], I.a[V].s.totalChars), this._hasMaskedPath ? b.length ? k.translate(0, P.p.v[1] * b[0], -P.p.v[2] * b[1]) : k.translate(0, P.p.v[1] * b, -P.p.v[2] * b) : b.length ? k.translate(P.p.v[0] * b[0], P.p.v[1] * b[1], -P.p.v[2] * b[2]) : k.translate(P.p.v[0] * b, P.p.v[1] * b, -P.p.v[2] * b));
3453
3077
  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) {
3454
3078
  if (k.translate(0, -t.ls), k.translate(0, A[1] * S * 0.01 + s, 0), this._pathData.p.v) {
3455
3079
  x = (u.point[1] - g.point[1]) / (u.point[0] - g.point[0]);
@@ -3480,8 +3104,7 @@ var Ai = { exports: {} };
3480
3104
  this._mdf = !1, this.prepareRenderableFrame(t), this.prepareProperties(t, this.isInRange);
3481
3105
  }, Dt.prototype.createPathShape = function(t, e) {
3482
3106
  var i, s, a = e.length, r = "";
3483
- for (i = 0; i < a; i += 1)
3484
- e[i].ty === "sh" && (s = e[i].ks.k, r += xs(s, s.i.length, !0, t));
3107
+ for (i = 0; i < a; i += 1) e[i].ty === "sh" && (s = e[i].ks.k, r += xs(s, s.i.length, !0, t));
3485
3108
  return r;
3486
3109
  }, Dt.prototype.updateDocumentData = function(t, e) {
3487
3110
  this.textProperty.updateDocumentData(t, e);
@@ -3544,8 +3167,7 @@ var Ai = { exports: {} };
3544
3167
  W([wt, Nt, Ee, qt, Mt, ye, Dt], Xt), Xt.prototype.createContent = function() {
3545
3168
  this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = z("text"));
3546
3169
  }, Xt.prototype.buildTextContents = function(t) {
3547
- for (var e = 0, i = t.length, s = [], a = ""; e < i; )
3548
- t[e] === String.fromCharCode(13) || t[e] === String.fromCharCode(3) ? (s.push(a), a = "") : a += t[e], e += 1;
3170
+ for (var e = 0, i = t.length, s = [], a = ""; e < i; ) t[e] === "\r" || t[e] === "" ? (s.push(a), a = "") : a += t[e], e += 1;
3549
3171
  return s.push(a), s;
3550
3172
  }, Xt.prototype.buildShapeData = function(t, e) {
3551
3173
  if (t.shapes && t.shapes.length) {
@@ -3562,8 +3184,7 @@ var Ai = { exports: {} };
3562
3184
  var i = this.textProperty.currentData;
3563
3185
  this.renderedLetters = K(i ? i.l.length : 0), i.fc ? this.layerElement.setAttribute("fill", this.buildColor(i.fc)) : this.layerElement.setAttribute("fill", "rgba(0,0,0,0)"), i.sc && (this.layerElement.setAttribute("stroke", this.buildColor(i.sc)), this.layerElement.setAttribute("stroke-width", i.sw)), this.layerElement.setAttribute("font-size", i.finalSize);
3564
3186
  var s = this.globalData.fontManager.getFontByName(i.f);
3565
- if (s.fClass)
3566
- this.layerElement.setAttribute("class", s.fClass);
3187
+ if (s.fClass) this.layerElement.setAttribute("class", s.fClass);
3567
3188
  else {
3568
3189
  this.layerElement.setAttribute("font-family", s.fFamily);
3569
3190
  var a = i.fWeight, r = i.fStyle;
@@ -3588,8 +3209,7 @@ var Ai = { exports: {} };
3588
3209
  }
3589
3210
  if (y.reset(), o && (n[t].n && (d = -l, c += i.yOffset, c += g ? 1 : 0, g = !1), this.applyTextPropertiesToMatrix(i, y, n[t].line, d, c), d += n[t].l || 0, d += l), u) {
3590
3211
  var v;
3591
- if ((p = this.globalData.fontManager.getCharData(i.finalText[t], s.fStyle, this.globalData.fontManager.getFontByName(i.f).fFamily)).t === 1)
3592
- v = new Ie(p.data, this.globalData, this);
3212
+ if ((p = this.globalData.fontManager.getCharData(i.finalText[t], s.fStyle, this.globalData.fontManager.getFontByName(i.f).fFamily)).t === 1) v = new Ie(p.data, this.globalData, this);
3593
3213
  else {
3594
3214
  var x = na;
3595
3215
  p.data && p.data.shapes && (x = this.buildShapeData(p.data, i.finalSize)), v = new Z(x, this.globalData, this);
@@ -3599,8 +3219,7 @@ var Ai = { exports: {} };
3599
3219
  this.textSpans[t].childSpan.removeChild(C.layerElement), C.destroy();
3600
3220
  }
3601
3221
  this.textSpans[t].glyph = v, v._debug = !0, v.prepareFrame(0), v.renderFrame(), this.textSpans[t].childSpan.appendChild(v.layerElement), p.t === 1 && this.textSpans[t].childSpan.setAttribute("transform", "scale(" + i.finalSize / 100 + "," + i.finalSize / 100 + ")");
3602
- } else
3603
- 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");
3222
+ } 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");
3604
3223
  }
3605
3224
  o && h && h.setAttribute("d", "");
3606
3225
  } else {
@@ -3617,12 +3236,10 @@ var Ai = { exports: {} };
3617
3236
  }
3618
3237
  A.setAttribute("text-anchor", T), A.setAttribute("letter-spacing", l);
3619
3238
  var I = this.buildTextContents(i.finalText);
3620
- for (e = I.length, c = i.ps ? i.ps[1] + i.ascent : 0, t = 0; t < e; t += 1)
3621
- (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 += i.finalLineHeight;
3239
+ for (e = I.length, c = i.ps ? i.ps[1] + i.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 += i.finalLineHeight;
3622
3240
  this.layerElement.appendChild(A);
3623
3241
  }
3624
- for (; t < this.textSpans.length; )
3625
- this.textSpans[t].span.style.display = "none", t += 1;
3242
+ for (; t < this.textSpans.length; ) this.textSpans[t].span.style.display = "none", t += 1;
3626
3243
  this._sizeChanged = !0;
3627
3244
  }, Xt.prototype.sourceRectAtTime = function() {
3628
3245
  if (this.prepareFrame(this.comp.renderedFrame - this.data.st), this.renderInnerContent(), this._sizeChanged) {
@@ -3633,15 +3250,13 @@ var Ai = { exports: {} };
3633
3250
  return this.bbox;
3634
3251
  }, Xt.prototype.getValue = function() {
3635
3252
  var t, e, i = this.textSpans.length;
3636
- for (this.renderedFrame = this.comp.renderedFrame, t = 0; t < i; t += 1)
3637
- (e = this.textSpans[t].glyph) && (e.prepareFrame(this.comp.renderedFrame - this.data.st), e._mdf && (this._mdf = !0));
3253
+ for (this.renderedFrame = this.comp.renderedFrame, t = 0; t < i; t += 1) (e = this.textSpans[t].glyph) && (e.prepareFrame(this.comp.renderedFrame - this.data.st), e._mdf && (this._mdf = !0));
3638
3254
  }, Xt.prototype.renderInnerContent = function() {
3639
3255
  if (this.validateText(), (!this.data.singleShape || this._mdf) && (this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag), this.lettersChangedFlag || this.textAnimator.lettersChangedFlag)) {
3640
3256
  var t, e;
3641
3257
  this._sizeChanged = !0;
3642
3258
  var i, s, a, r = this.textAnimator.renderedLetters, h = this.textProperty.currentData.l;
3643
- for (e = h.length, t = 0; t < e; t += 1)
3644
- h[t].n || (i = r[t], s = this.textSpans[t].span, (a = this.textSpans[t].glyph) && a.renderFrame(), i._mdf.m && s.setAttribute("transform", i.m), i._mdf.o && s.setAttribute("opacity", i.o), i._mdf.sw && s.setAttribute("stroke-width", i.sw), i._mdf.sc && s.setAttribute("stroke", i.sc), i._mdf.fc && s.setAttribute("fill", i.fc));
3259
+ for (e = h.length, t = 0; t < e; t += 1) h[t].n || (i = r[t], s = this.textSpans[t].span, (a = this.textSpans[t].glyph) && a.renderFrame(), i._mdf.m && s.setAttribute("transform", i.m), i._mdf.o && s.setAttribute("opacity", i.o), i._mdf.sw && s.setAttribute("stroke-width", i.sw), i._mdf.sc && s.setAttribute("stroke", i.sc), i._mdf.fc && s.setAttribute("fill", i.fc));
3645
3260
  }
3646
3261
  }, W([oe], ki), ki.prototype.createContent = function() {
3647
3262
  var t = z("rect");
@@ -3676,15 +3291,12 @@ var Ai = { exports: {} };
3676
3291
  var t;
3677
3292
  this.animationItem.wrapper && (this.animationItem.wrapper.innerText = ""), this.layerElement = null, this.globalData.defs = null;
3678
3293
  var e = this.layers ? this.layers.length : 0;
3679
- for (t = 0; t < e; t += 1)
3680
- this.elements[t] && this.elements[t].destroy && this.elements[t].destroy();
3294
+ for (t = 0; t < e; t += 1) this.elements[t] && this.elements[t].destroy && this.elements[t].destroy();
3681
3295
  this.elements.length = 0, this.destroyed = !0, this.animationItem = null;
3682
3296
  }, pt.prototype.updateContainerSize = function() {
3683
3297
  }, pt.prototype.findIndexByInd = function(t) {
3684
3298
  var e = 0, i = this.layers.length;
3685
- for (e = 0; e < i; e += 1)
3686
- if (this.layers[e].ind === t)
3687
- return e;
3299
+ for (e = 0; e < i; e += 1) if (this.layers[e].ind === t) return e;
3688
3300
  return -1;
3689
3301
  }, pt.prototype.buildItem = function(t) {
3690
3302
  var e = this.elements;
@@ -3693,44 +3305,37 @@ var Ai = { exports: {} };
3693
3305
  var i = this.createItem(this.layers[t]);
3694
3306
  if (e[t] = i, Oe() && (this.layers[t].ty === 0 && this.globalData.projectInterface.registerComposition(i), i.initExpressions()), this.appendElementInPos(i, t), this.layers[t].tt) {
3695
3307
  var s = "tp" in this.layers[t] ? this.findIndexByInd(this.layers[t].tp) : t - 1;
3696
- if (s === -1)
3697
- return;
3308
+ if (s === -1) return;
3698
3309
  if (this.elements[s] && this.elements[s] !== !0) {
3699
3310
  var a = e[s].getMatte(this.layers[t].tt);
3700
3311
  i.setMatte(a);
3701
- } else
3702
- this.buildItem(s), this.addPendingElement(i);
3312
+ } else this.buildItem(s), this.addPendingElement(i);
3703
3313
  }
3704
3314
  }
3705
3315
  }, pt.prototype.checkPendingElements = function() {
3706
3316
  for (; this.pendingElements.length; ) {
3707
3317
  var t = this.pendingElements.pop();
3708
- if (t.checkParenting(), t.data.tt)
3709
- for (var e = 0, i = this.elements.length; e < i; ) {
3710
- if (this.elements[e] === t) {
3711
- var s = "tp" in t.data ? this.findIndexByInd(t.data.tp) : e - 1, a = this.elements[s].getMatte(this.layers[e].tt);
3712
- t.setMatte(a);
3713
- break;
3714
- }
3715
- e += 1;
3318
+ if (t.checkParenting(), t.data.tt) for (var e = 0, i = this.elements.length; e < i; ) {
3319
+ if (this.elements[e] === t) {
3320
+ var s = "tp" in t.data ? this.findIndexByInd(t.data.tp) : e - 1, a = this.elements[s].getMatte(this.layers[e].tt);
3321
+ t.setMatte(a);
3322
+ break;
3716
3323
  }
3324
+ e += 1;
3325
+ }
3717
3326
  }
3718
3327
  }, pt.prototype.renderFrame = function(t) {
3719
3328
  if (this.renderedFrame !== t && !this.destroyed) {
3720
3329
  var e;
3721
3330
  t === null ? t = this.renderedFrame : this.renderedFrame = t, this.globalData.frameNum = t, this.globalData.frameId += 1, this.globalData.projectInterface.currentFrame = t, this.globalData._mdf = !1;
3722
3331
  var i = this.layers.length;
3723
- for (this.completeLayers || this.checkLayers(t), e = i - 1; e >= 0; e -= 1)
3724
- (this.completeLayers || this.elements[e]) && this.elements[e].prepareFrame(t - this.layers[e].st);
3725
- if (this.globalData._mdf)
3726
- for (e = 0; e < i; e += 1)
3727
- (this.completeLayers || this.elements[e]) && this.elements[e].renderFrame();
3332
+ for (this.completeLayers || this.checkLayers(t), e = i - 1; e >= 0; e -= 1) (this.completeLayers || this.elements[e]) && this.elements[e].prepareFrame(t - this.layers[e].st);
3333
+ if (this.globalData._mdf) for (e = 0; e < i; e += 1) (this.completeLayers || this.elements[e]) && this.elements[e].renderFrame();
3728
3334
  }
3729
3335
  }, pt.prototype.appendElementInPos = function(t, e) {
3730
3336
  var i = t.getBaseElement();
3731
3337
  if (i) {
3732
- for (var s, a = 0; a < e; )
3733
- this.elements[a] && this.elements[a] !== !0 && this.elements[a].getBaseElement() && (s = this.elements[a].getBaseElement()), a += 1;
3338
+ for (var s, a = 0; a < e; ) this.elements[a] && this.elements[a] !== !0 && this.elements[a].getBaseElement() && (s = this.elements[a].getBaseElement()), a += 1;
3734
3339
  s ? this.layerElement.insertBefore(i, s) : this.layerElement.appendChild(i);
3735
3340
  }
3736
3341
  }, pt.prototype.hide = function() {
@@ -3741,28 +3346,24 @@ var Ai = { exports: {} };
3741
3346
  this.initFrame(), this.initBaseData(t, e, i), this.initTransform(t, e, i), this.initRenderable(), this.initHierarchy(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), !this.data.xt && e.progressiveLoad || this.buildAllItems(), this.hide();
3742
3347
  }, Bt.prototype.prepareFrame = function(t) {
3743
3348
  if (this._mdf = !1, this.prepareRenderableFrame(t), this.prepareProperties(t, this.isInRange), this.isInRange || this.data.xt) {
3744
- if (this.tm._placeholder)
3745
- this.renderedFrame = t / this.data.sr;
3349
+ if (this.tm._placeholder) this.renderedFrame = t / this.data.sr;
3746
3350
  else {
3747
3351
  var e = this.tm.v;
3748
3352
  e === this.data.op && (e = this.data.op - 1), this.renderedFrame = e;
3749
3353
  }
3750
3354
  var i, s = this.elements.length;
3751
- for (this.completeLayers || this.checkLayers(this.renderedFrame), i = s - 1; i >= 0; i -= 1)
3752
- (this.completeLayers || this.elements[i]) && (this.elements[i].prepareFrame(this.renderedFrame - this.layers[i].st), this.elements[i]._mdf && (this._mdf = !0));
3355
+ for (this.completeLayers || this.checkLayers(this.renderedFrame), i = s - 1; i >= 0; i -= 1) (this.completeLayers || this.elements[i]) && (this.elements[i].prepareFrame(this.renderedFrame - this.layers[i].st), this.elements[i]._mdf && (this._mdf = !0));
3753
3356
  }
3754
3357
  }, Bt.prototype.renderInnerContent = function() {
3755
3358
  var t, e = this.layers.length;
3756
- for (t = 0; t < e; t += 1)
3757
- (this.completeLayers || this.elements[t]) && this.elements[t].renderFrame();
3359
+ for (t = 0; t < e; t += 1) (this.completeLayers || this.elements[t]) && this.elements[t].renderFrame();
3758
3360
  }, Bt.prototype.setElements = function(t) {
3759
3361
  this.elements = t;
3760
3362
  }, Bt.prototype.getElements = function() {
3761
3363
  return this.elements;
3762
3364
  }, Bt.prototype.destroyElements = function() {
3763
3365
  var t, e = this.layers.length;
3764
- for (t = 0; t < e; t += 1)
3765
- this.elements[t] && this.elements[t].destroy();
3366
+ for (t = 0; t < e; t += 1) this.elements[t] && this.elements[t].destroy();
3766
3367
  }, Bt.prototype.destroy = function() {
3767
3368
  this.destroyElements(), this.destroyBaseElement();
3768
3369
  }, W([pt, Bt, Ee], Ie), Ie.prototype.createComp = function(t) {
@@ -3771,8 +3372,7 @@ var Ai = { exports: {} };
3771
3372
  return new Ie(t, this.globalData, this);
3772
3373
  }, ks.prototype = { addTransformSequence: function(t) {
3773
3374
  var e, i = t.length, s = "_";
3774
- for (e = 0; e < i; e += 1)
3775
- s += t[e].transform.key + "_";
3375
+ for (e = 0; e < i; e += 1) s += t[e].transform.key + "_";
3776
3376
  var a = this.sequences[s];
3777
3377
  return a || (a = { transforms: [].concat(t), finalTransform: new it(), _mdf: !1 }, this.sequences[s] = a, this.sequenceList.push(a)), a;
3778
3378
  }, processSequence: function(t, e) {
@@ -3783,14 +3383,11 @@ var Ai = { exports: {} };
3783
3383
  }
3784
3384
  i += 1;
3785
3385
  }
3786
- if (a)
3787
- for (t.finalTransform.reset(), i = s - 1; i >= 0; i -= 1)
3788
- t.finalTransform.multiply(t.transforms[i].transform.mProps.v);
3386
+ if (a) for (t.finalTransform.reset(), i = s - 1; i >= 0; i -= 1) t.finalTransform.multiply(t.transforms[i].transform.mProps.v);
3789
3387
  t._mdf = a;
3790
3388
  }, processSequences: function(t) {
3791
3389
  var e, i = this.sequenceList.length;
3792
- for (e = 0; e < i; e += 1)
3793
- this.processSequence(this.sequenceList[e], t);
3390
+ for (e = 0; e < i; e += 1) this.processSequence(this.sequenceList[e], t);
3794
3391
  }, getNewKey: function() {
3795
3392
  return this.transform_key_count += 1, "_" + this.transform_key_count;
3796
3393
  } };
@@ -3805,8 +3402,7 @@ var Ai = { exports: {} };
3805
3402
  } };
3806
3403
  };
3807
3404
  function oa(t, e) {
3808
- if (Ze.offscreenCanvas)
3809
- return new OffscreenCanvas(t, e);
3405
+ if (Ze.offscreenCanvas) return new OffscreenCanvas(t, e);
3810
3406
  var i = Pt("canvas");
3811
3407
  return i.width = t, i.height = e, i;
3812
3408
  }
@@ -3824,33 +3420,28 @@ var Ai = { exports: {} };
3824
3420
  var i;
3825
3421
  this.data = t, this.element = e, this.masksProperties = this.data.masksProperties || [], this.viewData = K(this.masksProperties.length);
3826
3422
  var s = this.masksProperties.length, a = !1;
3827
- for (i = 0; i < s; i += 1)
3828
- this.masksProperties[i].mode !== "n" && (a = !0), this.viewData[i] = de.getShapeProp(this.element, this.masksProperties[i], 3);
3423
+ for (i = 0; i < s; i += 1) this.masksProperties[i].mode !== "n" && (a = !0), this.viewData[i] = de.getShapeProp(this.element, this.masksProperties[i], 3);
3829
3424
  this.hasMasks = a, a && this.element.addRenderableComponent(this);
3830
3425
  }
3831
3426
  function Wt() {
3832
3427
  }
3833
3428
  Di.prototype.renderFrame = function(t) {
3834
3429
  var e, i = this.filters.length;
3835
- for (e = 0; e < i; e += 1)
3836
- this.filters[e].renderFrame(t);
3430
+ for (e = 0; e < i; e += 1) this.filters[e].renderFrame(t);
3837
3431
  }, Di.prototype.getEffects = function(t) {
3838
3432
  var e, i = this.filters.length, s = [];
3839
- for (e = 0; e < i; e += 1)
3840
- this.filters[e].type === t && s.push(this.filters[e]);
3433
+ for (e = 0; e < i; e += 1) this.filters[e].type === t && s.push(this.filters[e]);
3841
3434
  return s;
3842
3435
  }, Qe.prototype.renderFrame = function() {
3843
3436
  if (this.hasMasks) {
3844
3437
  var t, e, i, s, a = this.element.finalTransform.mat, r = this.element.canvasContext, h = this.masksProperties.length;
3845
- for (r.beginPath(), t = 0; t < h; t += 1)
3846
- if (this.masksProperties[t].mode !== "n") {
3847
- var n;
3848
- 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)), s = this.viewData[t].v, e = a.applyToPointArray(s.v[0][0], s.v[0][1], 0), r.moveTo(e[0], e[1]);
3849
- var u = s._length;
3850
- for (n = 1; n < u; n += 1)
3851
- i = a.applyToTriplePoints(s.o[n - 1], s.i[n], s.v[n]), r.bezierCurveTo(i[0], i[1], i[2], i[3], i[4], i[5]);
3852
- i = a.applyToTriplePoints(s.o[n - 1], s.i[0], s.v[0]), r.bezierCurveTo(i[0], i[1], i[2], i[3], i[4], i[5]);
3853
- }
3438
+ for (r.beginPath(), t = 0; t < h; t += 1) if (this.masksProperties[t].mode !== "n") {
3439
+ var n;
3440
+ 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)), s = this.viewData[t].v, e = a.applyToPointArray(s.v[0][0], s.v[0][1], 0), r.moveTo(e[0], e[1]);
3441
+ var u = s._length;
3442
+ for (n = 1; n < u; n += 1) i = a.applyToTriplePoints(s.o[n - 1], s.i[n], s.v[n]), r.bezierCurveTo(i[0], i[1], i[2], i[3], i[4], i[5]);
3443
+ i = a.applyToTriplePoints(s.o[n - 1], s.i[0], s.v[0]), r.bezierCurveTo(i[0], i[1], i[2], i[3], i[4], i[5]);
3444
+ }
3854
3445
  this.element.globalData.renderer.save(!0), r.clip();
3855
3446
  }
3856
3447
  }, Qe.prototype.getMaskProperty = Qt.prototype.getMaskProperty, Qe.prototype.destroy = function() {
@@ -3862,8 +3453,7 @@ var Ai = { exports: {} };
3862
3453
  var a, r = 4;
3863
3454
  e.ty === "rc" ? r = 5 : e.ty === "el" ? r = 6 : e.ty === "sr" && (r = 7), this.sh = de.getShapeProp(t, e, r, t);
3864
3455
  var h, n = i.length;
3865
- for (a = 0; a < n; a += 1)
3866
- i[a].closed || (h = { transforms: s.addTransformSequence(i[a].transforms), trNodes: [] }, this.styledShapes.push(h), i[a].elements.push(h));
3456
+ for (a = 0; a < n; a += 1) i[a].closed || (h = { transforms: s.addTransformSequence(i[a].transforms), trNodes: [] }, this.styledShapes.push(h), i[a].elements.push(h));
3867
3457
  }
3868
3458
  function G(t, e, i) {
3869
3459
  this.shapes = [], this.shapesData = t.shapes, this.stylesList = [], this.itemsData = [], this.prevViewData = [], this.shapeModifiers = [], this.processedElements = [], this.transformsManager = new ks(), this.initElement(t, e, i);
@@ -3954,8 +3544,7 @@ var Ai = { exports: {} };
3954
3544
  var a = new Le(this, t.d, "canvas", this);
3955
3545
  s.d = a, s.d.k || (i.da = s.d.dashArray, i.do = s.d.dashoffset[0]);
3956
3546
  }
3957
- } else
3958
- i.r = t.r === 2 ? "evenodd" : "nonzero";
3547
+ } else i.r = t.r === 2 ? "evenodd" : "nonzero";
3959
3548
  return this.stylesList.push(i), s.style = i, s;
3960
3549
  }, G.prototype.createGroupElement = function() {
3961
3550
  return { it: [], prevViewData: [] };
@@ -3968,60 +3557,46 @@ var Ai = { exports: {} };
3968
3557
  var t;
3969
3558
  this._isFirstFrame = !0;
3970
3559
  var e = this.itemsData.length;
3971
- for (t = 0; t < e; t += 1)
3972
- this.prevViewData[t] = this.itemsData[t];
3973
- for (this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, !0, []), e = this.dynamicProperties.length, t = 0; t < e; t += 1)
3974
- this.dynamicProperties[t].getValue();
3560
+ for (t = 0; t < e; t += 1) this.prevViewData[t] = this.itemsData[t];
3561
+ for (this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, !0, []), e = this.dynamicProperties.length, t = 0; t < e; t += 1) this.dynamicProperties[t].getValue();
3975
3562
  this.renderModifiers(), this.transformsManager.processSequences(this._isFirstFrame);
3976
3563
  }, G.prototype.addTransformToStyleList = function(t) {
3977
3564
  var e, i = this.stylesList.length;
3978
- for (e = 0; e < i; e += 1)
3979
- this.stylesList[e].closed || this.stylesList[e].transforms.push(t);
3565
+ for (e = 0; e < i; e += 1) this.stylesList[e].closed || this.stylesList[e].transforms.push(t);
3980
3566
  }, G.prototype.removeTransformFromStyleList = function() {
3981
3567
  var t, e = this.stylesList.length;
3982
- for (t = 0; t < e; t += 1)
3983
- this.stylesList[t].closed || this.stylesList[t].transforms.pop();
3568
+ for (t = 0; t < e; t += 1) this.stylesList[t].closed || this.stylesList[t].transforms.pop();
3984
3569
  }, G.prototype.closeStyles = function(t) {
3985
3570
  var e, i = t.length;
3986
- for (e = 0; e < i; e += 1)
3987
- t[e].closed = !0;
3571
+ for (e = 0; e < i; e += 1) t[e].closed = !0;
3988
3572
  }, G.prototype.searchShapes = function(t, e, i, s, a) {
3989
3573
  var r, h, n, u, y, o, d = t.length - 1, c = [], g = [], l = [].concat(a);
3990
3574
  for (r = d; r >= 0; r -= 1) {
3991
- if ((u = this.searchProcessedElement(t[r])) ? e[r] = i[u - 1] : t[r]._shouldRender = s, t[r].ty === "fl" || t[r].ty === "st" || t[r].ty === "gf" || t[r].ty === "gs")
3992
- u ? e[r].style.closed = !1 : e[r] = this.createStyleElement(t[r], l), c.push(e[r].style);
3575
+ if ((u = this.searchProcessedElement(t[r])) ? e[r] = i[u - 1] : t[r]._shouldRender = s, t[r].ty === "fl" || t[r].ty === "st" || t[r].ty === "gf" || t[r].ty === "gs") u ? e[r].style.closed = !1 : e[r] = this.createStyleElement(t[r], l), c.push(e[r].style);
3993
3576
  else if (t[r].ty === "gr") {
3994
- if (u)
3995
- for (n = e[r].it.length, h = 0; h < n; h += 1)
3996
- e[r].prevViewData[h] = e[r].it[h];
3997
- else
3998
- e[r] = this.createGroupElement(t[r]);
3577
+ if (u) for (n = e[r].it.length, h = 0; h < n; h += 1) e[r].prevViewData[h] = e[r].it[h];
3578
+ else e[r] = this.createGroupElement(t[r]);
3999
3579
  this.searchShapes(t[r].it, e[r].it, e[r].prevViewData, s, l);
4000
- } else
4001
- t[r].ty === "tr" ? (u || (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" ? u || (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" ? (u ? (y = e[r]).closed = !1 : ((y = zt.getModifier(t[r].ty)).init(this, t[r]), e[r] = y, this.shapeModifiers.push(y)), g.push(y)) : t[r].ty === "rp" && (u ? (y = e[r]).closed = !0 : (y = zt.getModifier(t[r].ty), e[r] = y, y.init(this, t, r, e), this.shapeModifiers.push(y), s = !1), g.push(y));
3580
+ } else t[r].ty === "tr" ? (u || (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" ? u || (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" ? (u ? (y = e[r]).closed = !1 : ((y = zt.getModifier(t[r].ty)).init(this, t[r]), e[r] = y, this.shapeModifiers.push(y)), g.push(y)) : t[r].ty === "rp" && (u ? (y = e[r]).closed = !0 : (y = zt.getModifier(t[r].ty), e[r] = y, y.init(this, t, r, e), this.shapeModifiers.push(y), s = !1), g.push(y));
4002
3581
  this.addProcessedElement(t[r], r + 1);
4003
3582
  }
4004
- for (this.removeTransformFromStyleList(), this.closeStyles(c), d = g.length, r = 0; r < d; r += 1)
4005
- g[r].closed = !0;
3583
+ for (this.removeTransformFromStyleList(), this.closeStyles(c), d = g.length, r = 0; r < d; r += 1) g[r].closed = !0;
4006
3584
  }, G.prototype.renderInnerContent = function() {
4007
3585
  this.transformHelper.opacity = 1, this.transformHelper._opMdf = !1, this.renderModifiers(), this.transformsManager.processSequences(this._isFirstFrame), this.renderShape(this.transformHelper, this.shapesData, this.itemsData, !0);
4008
3586
  }, G.prototype.renderShapeTransform = function(t, e) {
4009
3587
  (t._opMdf || e.op._mdf || this._isFirstFrame) && (e.opacity = t.opacity, e.opacity *= e.op.v, e._opMdf = !0);
4010
3588
  }, G.prototype.drawLayer = function() {
4011
3589
  var t, e, i, s, a, r, h, n, u, y = this.stylesList.length, o = this.globalData.renderer, d = this.globalData.canvasContext;
4012
- for (t = 0; t < y; t += 1)
4013
- if (((n = (u = this.stylesList[t]).type) !== "st" && n !== "gs" || u.wi !== 0) && u.data._shouldRender && u.coOp !== 0 && this.globalData.currentGlobalAlpha !== 0) {
4014
- for (o.save(), r = u.elements, n === "st" || n === "gs" ? (o.ctxStrokeStyle(n === "st" ? u.co : u.grd), o.ctxLineWidth(u.wi), o.ctxLineCap(u.lc), o.ctxLineJoin(u.lj), o.ctxMiterLimit(u.ml || 0)) : o.ctxFillStyle(n === "fl" ? u.co : u.grd), o.ctxOpacity(u.coOp), n !== "st" && n !== "gs" && d.beginPath(), o.ctxTransform(u.preTransforms.finalTransform.props), i = r.length, e = 0; e < i; e += 1) {
4015
- for (n !== "st" && n !== "gs" || (d.beginPath(), u.da && (d.setLineDash(u.da), d.lineDashOffset = u.do)), a = (h = r[e].trNodes).length, s = 0; s < a; s += 1)
4016
- h[s].t === "m" ? d.moveTo(h[s].p[0], h[s].p[1]) : h[s].t === "c" ? d.bezierCurveTo(h[s].pts[0], h[s].pts[1], h[s].pts[2], h[s].pts[3], h[s].pts[4], h[s].pts[5]) : d.closePath();
4017
- n !== "st" && n !== "gs" || (o.ctxStroke(), u.da && d.setLineDash(this.dashResetter));
4018
- }
4019
- n !== "st" && n !== "gs" && this.globalData.renderer.ctxFill(u.r), o.restore();
3590
+ for (t = 0; t < y; t += 1) if (((n = (u = this.stylesList[t]).type) !== "st" && n !== "gs" || u.wi !== 0) && u.data._shouldRender && u.coOp !== 0 && this.globalData.currentGlobalAlpha !== 0) {
3591
+ for (o.save(), r = u.elements, n === "st" || n === "gs" ? (o.ctxStrokeStyle(n === "st" ? u.co : u.grd), o.ctxLineWidth(u.wi), o.ctxLineCap(u.lc), o.ctxLineJoin(u.lj), o.ctxMiterLimit(u.ml || 0)) : o.ctxFillStyle(n === "fl" ? u.co : u.grd), o.ctxOpacity(u.coOp), n !== "st" && n !== "gs" && d.beginPath(), o.ctxTransform(u.preTransforms.finalTransform.props), i = r.length, e = 0; e < i; e += 1) {
3592
+ for (n !== "st" && n !== "gs" || (d.beginPath(), u.da && (d.setLineDash(u.da), d.lineDashOffset = u.do)), a = (h = r[e].trNodes).length, s = 0; s < a; s += 1) h[s].t === "m" ? d.moveTo(h[s].p[0], h[s].p[1]) : h[s].t === "c" ? d.bezierCurveTo(h[s].pts[0], h[s].pts[1], h[s].pts[2], h[s].pts[3], h[s].pts[4], h[s].pts[5]) : d.closePath();
3593
+ n !== "st" && n !== "gs" || (o.ctxStroke(), u.da && d.setLineDash(this.dashResetter));
4020
3594
  }
3595
+ n !== "st" && n !== "gs" && this.globalData.renderer.ctxFill(u.r), o.restore();
3596
+ }
4021
3597
  }, G.prototype.renderShape = function(t, e, i, s) {
4022
3598
  var a, r;
4023
- for (r = t, a = e.length - 1; a >= 0; a -= 1)
4024
- e[a].ty === "tr" ? (r = i[a].transform, this.renderShapeTransform(t, r)) : e[a].ty === "sh" || e[a].ty === "el" || e[a].ty === "rc" || e[a].ty === "sr" ? this.renderPath(e[a], i[a]) : e[a].ty === "fl" ? this.renderFill(e[a], i[a], r) : e[a].ty === "st" ? this.renderStroke(e[a], i[a], r) : e[a].ty === "gf" || e[a].ty === "gs" ? this.renderGradientFill(e[a], i[a], r) : e[a].ty === "gr" ? this.renderShape(r, e[a].it, i[a].it) : e[a].ty;
3599
+ for (r = t, a = e.length - 1; a >= 0; a -= 1) e[a].ty === "tr" ? (r = i[a].transform, this.renderShapeTransform(t, r)) : e[a].ty === "sh" || e[a].ty === "el" || e[a].ty === "rc" || e[a].ty === "sr" ? this.renderPath(e[a], i[a]) : e[a].ty === "fl" ? this.renderFill(e[a], i[a], r) : e[a].ty === "st" ? this.renderStroke(e[a], i[a], r) : e[a].ty === "gf" || e[a].ty === "gs" ? this.renderGradientFill(e[a], i[a], r) : e[a].ty === "gr" ? this.renderShape(r, e[a].it, i[a].it) : e[a].ty;
4025
3600
  s && this.drawLayer();
4026
3601
  }, G.prototype.renderStyledShape = function(t, e) {
4027
3602
  if (this._isFirstFrame || e._mdf || t.transforms._mdf) {
@@ -4031,8 +3606,7 @@ var Ai = { exports: {} };
4031
3606
  for (a = 0; a < n; a += 1) {
4032
3607
  var y = h.shapes[a];
4033
3608
  if (y && y.v) {
4034
- for (s = y._length, i = 1; i < s; i += 1)
4035
- i === 1 && r.push({ t: "m", p: u.applyToPointArray(y.v[0][0], y.v[0][1], 0) }), r.push({ t: "c", pts: u.applyToTriplePoints(y.o[i - 1], y.i[i], y.v[i]) });
3609
+ for (s = y._length, i = 1; i < s; i += 1) i === 1 && r.push({ t: "m", p: u.applyToPointArray(y.v[0][0], y.v[0][1], 0) }), r.push({ t: "c", pts: u.applyToTriplePoints(y.o[i - 1], y.i[i], y.v[i]) });
4036
3610
  s === 1 && r.push({ t: "m", p: u.applyToPointArray(y.v[0][0], y.v[0][1], 0) }), y.c && s && (r.push({ t: "c", pts: u.applyToTriplePoints(y.o[i - 1], y.i[0], y.v[0]) }), r.push({ t: "z" }));
4037
3611
  }
4038
3612
  }
@@ -4041,8 +3615,7 @@ var Ai = { exports: {} };
4041
3615
  }, G.prototype.renderPath = function(t, e) {
4042
3616
  if (t.hd !== !0 && t._shouldRender) {
4043
3617
  var i, s = e.styledShapes.length;
4044
- for (i = 0; i < s; i += 1)
4045
- this.renderStyledShape(e.styledShapes[i], e.sh);
3618
+ for (i = 0; i < s; i += 1) this.renderStyledShape(e.styledShapes[i], e.sh);
4046
3619
  }
4047
3620
  }, G.prototype.renderFill = function(t, e, i) {
4048
3621
  var s = e.style;
@@ -4051,8 +3624,7 @@ var Ai = { exports: {} };
4051
3624
  var s, a = e.style;
4052
3625
  if (!a.grd || e.g._mdf || e.s._mdf || e.e._mdf || t.t !== 1 && (e.h._mdf || e.a._mdf)) {
4053
3626
  var r, h = this.globalData.canvasContext, n = e.s.v, u = e.e.v;
4054
- if (t.t === 1)
4055
- s = h.createLinearGradient(n[0], n[1], u[0], u[1]);
3627
+ if (t.t === 1) s = h.createLinearGradient(n[0], n[1], u[0], u[1]);
4056
3628
  else {
4057
3629
  var y = Math.sqrt(Math.pow(n[0] - u[0], 2) + Math.pow(n[1] - u[1], 2)), o = Math.atan2(u[1] - n[1], u[0] - n[0]), d = e.h.v;
4058
3630
  d >= 1 ? d = 0.99 : d <= -1 && (d = -0.99);
@@ -4060,8 +3632,7 @@ var Ai = { exports: {} };
4060
3632
  s = h.createRadialGradient(g, l, 0, n[0], n[1], y);
4061
3633
  }
4062
3634
  var p = t.g.p, f = e.g.c, m = 1;
4063
- for (r = 0; r < p; r += 1)
4064
- e.g._hasOpacity && e.g._collapsable && (m = e.g.o[2 * r + 1]), s.addColorStop(f[4 * r] / 100, "rgba(" + f[4 * r + 1] + "," + f[4 * r + 2] + "," + f[4 * r + 3] + "," + m + ")");
3635
+ for (r = 0; r < p; r += 1) e.g._hasOpacity && e.g._collapsable && (m = e.g.o[2 * r + 1]), s.addColorStop(f[4 * r] / 100, "rgba(" + f[4 * r + 1] + "," + f[4 * r + 2] + "," + f[4 * r + 3] + "," + m + ")");
4065
3636
  a.grd = s;
4066
3637
  }
4067
3638
  a.coOp = e.o.v * i.opacity;
@@ -4083,12 +3654,10 @@ var Ai = { exports: {} };
4083
3654
  for (s = 0; s < a; s += 1) {
4084
3655
  h = (r = this.globalData.fontManager.getCharData(t.finalText[s], p.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily)) && r.data || {}, m.reset(), v && f[s].n && (C = -x, A += t.yOffset, A += T ? 1 : 0, T = !1), d = (y = h.shapes ? h.shapes[0].it : []).length, m.scale(t.finalSize / 100, t.finalSize / 100), v && this.applyTextPropertiesToMatrix(t, m, f[s].line, C, A), g = K(d - 1);
4085
3656
  var k = 0;
4086
- for (o = 0; o < d; o += 1)
4087
- if (y[o].ty === "sh") {
4088
- for (u = y[o].ks.k.i.length, c = y[o].ks.k, l = [], n = 1; n < u; n += 1)
4089
- n === 1 && l.push(m.applyToX(c.v[0][0], c.v[0][1], 0), m.applyToY(c.v[0][0], c.v[0][1], 0)), l.push(m.applyToX(c.o[n - 1][0], c.o[n - 1][1], 0), m.applyToY(c.o[n - 1][0], c.o[n - 1][1], 0), m.applyToX(c.i[n][0], c.i[n][1], 0), m.applyToY(c.i[n][0], c.i[n][1], 0), m.applyToX(c.v[n][0], c.v[n][1], 0), m.applyToY(c.v[n][0], c.v[n][1], 0));
4090
- l.push(m.applyToX(c.o[n - 1][0], c.o[n - 1][1], 0), m.applyToY(c.o[n - 1][0], c.o[n - 1][1], 0), m.applyToX(c.i[0][0], c.i[0][1], 0), m.applyToY(c.i[0][0], c.i[0][1], 0), m.applyToX(c.v[0][0], c.v[0][1], 0), m.applyToY(c.v[0][0], c.v[0][1], 0)), g[k] = l, k += 1;
4091
- }
3657
+ for (o = 0; o < d; o += 1) if (y[o].ty === "sh") {
3658
+ for (u = y[o].ks.k.i.length, c = y[o].ks.k, l = [], n = 1; n < u; n += 1) n === 1 && l.push(m.applyToX(c.v[0][0], c.v[0][1], 0), m.applyToY(c.v[0][0], c.v[0][1], 0)), l.push(m.applyToX(c.o[n - 1][0], c.o[n - 1][1], 0), m.applyToY(c.o[n - 1][0], c.o[n - 1][1], 0), m.applyToX(c.i[n][0], c.i[n][1], 0), m.applyToY(c.i[n][0], c.i[n][1], 0), m.applyToX(c.v[n][0], c.v[n][1], 0), m.applyToY(c.v[n][0], c.v[n][1], 0));
3659
+ l.push(m.applyToX(c.o[n - 1][0], c.o[n - 1][1], 0), m.applyToY(c.o[n - 1][0], c.o[n - 1][1], 0), m.applyToX(c.i[0][0], c.i[0][1], 0), m.applyToY(c.i[0][0], c.i[0][1], 0), m.applyToX(c.v[0][0], c.v[0][1], 0), m.applyToY(c.v[0][0], c.v[0][1], 0)), g[k] = l, k += 1;
3660
+ }
4092
3661
  v && (C += f[s].l, C += x), this.textSpans[I] ? this.textSpans[I].elem = g : this.textSpans[I] = { elem: g }, I += 1;
4093
3662
  }
4094
3663
  }, Ve.prototype.renderInnerContent = function() {
@@ -4097,22 +3666,17 @@ var Ai = { exports: {} };
4097
3666
  var h, n = this.textAnimator.renderedLetters, u = this.textProperty.currentData.l;
4098
3667
  e = u.length;
4099
3668
  var y, o, d = null, c = null, g = null, l = this.globalData.renderer;
4100
- for (t = 0; t < e; t += 1)
4101
- if (!u[t].n) {
4102
- if ((h = n[t]) && (l.save(), l.ctxTransform(h.p), l.ctxOpacity(h.o)), this.fill) {
4103
- 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)), s = (y = this.textSpans[t].elem).length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
4104
- for (r = (o = y[i]).length, this.globalData.canvasContext.moveTo(o[0], o[1]), a = 2; a < r; a += 6)
4105
- this.globalData.canvasContext.bezierCurveTo(o[a], o[a + 1], o[a + 2], o[a + 3], o[a + 4], o[a + 5]);
4106
- this.globalData.canvasContext.closePath(), l.ctxFill();
4107
- }
4108
- if (this.stroke) {
4109
- for (h && h.sw ? g !== h.sw && (g = h.sw, l.ctxLineWidth(h.sw)) : g !== this.values.sWidth && (g = 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)), s = (y = this.textSpans[t].elem).length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
4110
- for (r = (o = y[i]).length, this.globalData.canvasContext.moveTo(o[0], o[1]), a = 2; a < r; a += 6)
4111
- this.globalData.canvasContext.bezierCurveTo(o[a], o[a + 1], o[a + 2], o[a + 3], o[a + 4], o[a + 5]);
4112
- this.globalData.canvasContext.closePath(), l.ctxStroke();
4113
- }
4114
- h && this.globalData.renderer.restore();
3669
+ for (t = 0; t < e; t += 1) if (!u[t].n) {
3670
+ if ((h = n[t]) && (l.save(), l.ctxTransform(h.p), l.ctxOpacity(h.o)), this.fill) {
3671
+ 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)), s = (y = this.textSpans[t].elem).length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1) for (r = (o = y[i]).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
+ this.globalData.canvasContext.closePath(), l.ctxFill();
4115
3673
  }
3674
+ if (this.stroke) {
3675
+ for (h && h.sw ? g !== h.sw && (g = h.sw, l.ctxLineWidth(h.sw)) : g !== this.values.sWidth && (g = 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)), s = (y = this.textSpans[t].elem).length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1) for (r = (o = y[i]).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
+ this.globalData.canvasContext.closePath(), l.ctxStroke();
3677
+ }
3678
+ h && this.globalData.renderer.restore();
3679
+ }
4116
3680
  }, W([wt, Nt, Wt, qt, Mt, Zt], le), le.prototype.initElement = Z.prototype.initElement, le.prototype.prepareFrame = oe.prototype.prepareFrame, le.prototype.createContent = function() {
4117
3681
  if (this.img.width && (this.assetData.w !== this.img.width || this.assetData.h !== this.img.height)) {
4118
3682
  var t = Pt("canvas");
@@ -4169,32 +3733,27 @@ var Ai = { exports: {} };
4169
3733
  e.width = "100%", e.height = "100%";
4170
3734
  var i = "0px 0px 0px";
4171
3735
  e.transformOrigin = i, e.mozTransformOrigin = i, e.webkitTransformOrigin = i, e["-webkit-transform"] = i, e.contentVisibility = this.renderConfig.contentVisibility, this.animationItem.wrapper.appendChild(this.animationItem.container), this.canvasContext = this.animationItem.container.getContext("2d"), this.renderConfig.className && this.animationItem.container.setAttribute("class", this.renderConfig.className), this.renderConfig.id && this.animationItem.container.setAttribute("id", this.renderConfig.id);
4172
- } else
4173
- this.canvasContext = this.renderConfig.context;
3736
+ } else this.canvasContext = this.renderConfig.context;
4174
3737
  this.contextData.setContext(this.canvasContext), this.data = t, this.layers = t.layers, this.transformCanvas = { w: t.w, h: t.h, sx: 0, sy: 0, tx: 0, ty: 0 }, this.setupGlobalData(t, document.body), this.globalData.canvasContext = this.canvasContext, this.globalData.renderer = this, this.globalData.isDashed = !1, this.globalData.progressiveLoad = this.renderConfig.progressiveLoad, this.globalData.transformCanvas = this.transformCanvas, this.elements = K(t.layers.length), this.updateContainerSize();
4175
3738
  }, X.prototype.updateContainerSize = function(t, e) {
4176
3739
  var i, s, a, r;
4177
3740
  if (this.reset(), t ? (i = t, s = e, this.canvasContext.canvas.width = i, this.canvasContext.canvas.height = s) : (this.animationItem.wrapper && this.animationItem.container ? (i = this.animationItem.wrapper.offsetWidth, s = this.animationItem.wrapper.offsetHeight) : (i = this.canvasContext.canvas.width, s = this.canvasContext.canvas.height), this.canvasContext.canvas.width = i * this.renderConfig.dpr, this.canvasContext.canvas.height = s * this.renderConfig.dpr), this.renderConfig.preserveAspectRatio.indexOf("meet") !== -1 || this.renderConfig.preserveAspectRatio.indexOf("slice") !== -1) {
4178
3741
  var h = this.renderConfig.preserveAspectRatio.split(" "), n = h[1] || "meet", u = h[0] || "xMidYMid", y = u.substr(0, 4), o = u.substr(4);
4179
3742
  a = i / s, (r = this.transformCanvas.w / this.transformCanvas.h) > a && n === "meet" || r < a && n === "slice" ? (this.transformCanvas.sx = i / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = i / (this.transformCanvas.w / this.renderConfig.dpr)) : (this.transformCanvas.sx = s / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.sy = s / (this.transformCanvas.h / this.renderConfig.dpr)), this.transformCanvas.tx = y === "xMid" && (r < a && n === "meet" || r > a && n === "slice") ? (i - this.transformCanvas.w * (s / this.transformCanvas.h)) / 2 * this.renderConfig.dpr : y === "xMax" && (r < a && n === "meet" || r > a && n === "slice") ? (i - this.transformCanvas.w * (s / this.transformCanvas.h)) * this.renderConfig.dpr : 0, this.transformCanvas.ty = o === "YMid" && (r > a && n === "meet" || r < a && n === "slice") ? (s - this.transformCanvas.h * (i / this.transformCanvas.w)) / 2 * this.renderConfig.dpr : o === "YMax" && (r > a && n === "meet" || r < a && n === "slice") ? (s - this.transformCanvas.h * (i / this.transformCanvas.w)) * this.renderConfig.dpr : 0;
4180
- } else
4181
- this.renderConfig.preserveAspectRatio === "none" ? (this.transformCanvas.sx = i / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = s / (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);
3743
+ } else this.renderConfig.preserveAspectRatio === "none" ? (this.transformCanvas.sx = i / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = s / (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);
4182
3744
  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);
4183
3745
  }, X.prototype.destroy = function() {
4184
3746
  var t;
4185
- for (this.renderConfig.clearCanvas && this.animationItem.wrapper && (this.animationItem.wrapper.innerText = ""), t = (this.layers ? this.layers.length : 0) - 1; t >= 0; t -= 1)
4186
- this.elements[t] && this.elements[t].destroy && this.elements[t].destroy();
3747
+ for (this.renderConfig.clearCanvas && this.animationItem.wrapper && (this.animationItem.wrapper.innerText = ""), t = (this.layers ? this.layers.length : 0) - 1; t >= 0; t -= 1) this.elements[t] && this.elements[t].destroy && this.elements[t].destroy();
4187
3748
  this.elements.length = 0, this.globalData.canvasContext = null, this.animationItem.container = null, this.destroyed = !0;
4188
3749
  }, X.prototype.renderFrame = function(t, e) {
4189
3750
  if ((this.renderedFrame !== t || this.renderConfig.clearCanvas !== !0 || e) && !this.destroyed && t !== -1) {
4190
3751
  var i;
4191
3752
  this.renderedFrame = t, this.globalData.frameNum = t - this.animationItem._isFirstFrame, this.globalData.frameId += 1, this.globalData._mdf = !this.renderConfig.clearCanvas || e, this.globalData.projectInterface.currentFrame = t;
4192
3753
  var s = this.layers.length;
4193
- for (this.completeLayers || this.checkLayers(t), i = s - 1; i >= 0; i -= 1)
4194
- (this.completeLayers || this.elements[i]) && this.elements[i].prepareFrame(t - this.layers[i].st);
3754
+ for (this.completeLayers || this.checkLayers(t), i = s - 1; i >= 0; i -= 1) (this.completeLayers || this.elements[i]) && this.elements[i].prepareFrame(t - this.layers[i].st);
4195
3755
  if (this.globalData._mdf) {
4196
- for (this.renderConfig.clearCanvas === !0 ? this.canvasContext.clearRect(0, 0, this.transformCanvas.w, this.transformCanvas.h) : this.save(), i = s - 1; i >= 0; i -= 1)
4197
- (this.completeLayers || this.elements[i]) && this.elements[i].renderFrame();
3756
+ for (this.renderConfig.clearCanvas === !0 ? this.canvasContext.clearRect(0, 0, this.transformCanvas.w, this.transformCanvas.h) : this.save(), i = s - 1; i >= 0; i -= 1) (this.completeLayers || this.elements[i]) && this.elements[i].renderFrame();
4198
3757
  this.renderConfig.clearCanvas !== !0 && this.restore();
4199
3758
  }
4200
3759
  }
@@ -4213,16 +3772,14 @@ var Ai = { exports: {} };
4213
3772
  this.animationItem.container.style.display = "block";
4214
3773
  }, ft.prototype.duplicate = function() {
4215
3774
  var t = 2 * this._length, e = 0;
4216
- for (e = this._length; e < t; e += 1)
4217
- this.stack[e] = new ws();
3775
+ for (e = this._length; e < t; e += 1) this.stack[e] = new ws();
4218
3776
  this._length = t;
4219
3777
  }, ft.prototype.reset = function() {
4220
3778
  this.cArrPos = 0, this.cTr.reset(), this.stack[this.cArrPos].opacity = 1;
4221
3779
  }, ft.prototype.restore = function(t) {
4222
3780
  this.cArrPos -= 1;
4223
3781
  var e, i = this.stack[this.cArrPos], s = i.transform, a = this.cTr.props;
4224
- for (e = 0; e < 16; e += 1)
4225
- a[e] = s[e];
3782
+ for (e = 0; e < 16; e += 1) a[e] = s[e];
4226
3783
  if (t) {
4227
3784
  this.nativeContext.restore();
4228
3785
  var r = this.stack[this.cArrPos + 1];
@@ -4234,8 +3791,7 @@ var Ai = { exports: {} };
4234
3791
  var e = this.cTr.props;
4235
3792
  this._length <= this.cArrPos && this.duplicate();
4236
3793
  var i, s = this.stack[this.cArrPos];
4237
- for (i = 0; i < 16; i += 1)
4238
- s.transform[i] = e[i];
3794
+ for (i = 0; i < 16; i += 1) s.transform[i] = e[i];
4239
3795
  this.cArrPos += 1;
4240
3796
  var a = this.stack[this.cArrPos];
4241
3797
  a.opacity = s.opacity, a.fillStyle = s.fillStyle, a.strokeStyle = s.strokeStyle, a.lineWidth = s.lineWidth, a.lineCap = s.lineCap, a.lineJoin = s.lineJoin, a.miterLimit = s.miterLimit;
@@ -4272,12 +3828,10 @@ var Ai = { exports: {} };
4272
3828
  this.appliedStrokeStyle !== this.currentStrokeStyle && (this.appliedStrokeStyle = this.currentStrokeStyle, this.nativeContext.strokeStyle = this.appliedStrokeStyle), this.appliedLineWidth !== this.currentLineWidth && (this.appliedLineWidth = this.currentLineWidth, this.nativeContext.lineWidth = this.appliedLineWidth), this.appliedLineCap !== this.currentLineCap && (this.appliedLineCap = this.currentLineCap, this.nativeContext.lineCap = this.appliedLineCap), this.appliedLineJoin !== this.currentLineJoin && (this.appliedLineJoin = this.currentLineJoin, this.nativeContext.lineJoin = this.appliedLineJoin), this.appliedMiterLimit !== this.currentMiterLimit && (this.appliedMiterLimit = this.currentMiterLimit, this.nativeContext.miterLimit = this.appliedMiterLimit), this.nativeContext.stroke();
4273
3829
  }, W([X, Bt, Wt], _e), _e.prototype.renderInnerContent = function() {
4274
3830
  var t, e = this.canvasContext;
4275
- for (e.beginPath(), e.moveTo(0, 0), e.lineTo(this.data.w, 0), e.lineTo(this.data.w, this.data.h), e.lineTo(0, this.data.h), e.lineTo(0, 0), e.clip(), t = this.layers.length - 1; t >= 0; t -= 1)
4276
- (this.completeLayers || this.elements[t]) && this.elements[t].renderFrame();
3831
+ for (e.beginPath(), e.moveTo(0, 0), e.lineTo(this.data.w, 0), e.lineTo(this.data.w, this.data.h), e.lineTo(0, this.data.h), e.lineTo(0, 0), e.clip(), t = this.layers.length - 1; t >= 0; t -= 1) (this.completeLayers || this.elements[t]) && this.elements[t].renderFrame();
4277
3832
  }, _e.prototype.destroy = function() {
4278
3833
  var t;
4279
- for (t = this.layers.length - 1; t >= 0; t -= 1)
4280
- this.elements[t] && this.elements[t].destroy();
3834
+ for (t = this.layers.length - 1; t >= 0; t -= 1) this.elements[t] && this.elements[t].destroy();
4281
3835
  this.layers = null, this.elements = null;
4282
3836
  }, _e.prototype.createComp = function(t) {
4283
3837
  return new _e(t, this.globalData, this);