@eva/plugin-renderer-lottie 1.2.7-editor.8 → 1.2.7-fix.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.
@@ -0,0 +1,4226 @@
1
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
3
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
5
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
6
+ import { OBSERVER_TYPE, resource, decorators, Component } from '@eva/eva.js/dist/miniprogram';
7
+ import { __extends, __awaiter, __generator, __assign, __rest, __decorate } from 'tslib';
8
+ import { Renderer } from '@eva/plugin-renderer/dist/miniprogram';
9
+ import { XMLHttpRequestAlias, windowAlias, atob } from '@eva/miniprogram-adapter';
10
+ import { Container, WebGLRenderer, ObjectRenderer, utils, CanvasRenderer, Matrix, Graphics, Sprite, Rectangle, settings, UPDATE_PRIORITY, ticker, DisplayObject, Shader, glCore, BLEND_MODES, Texture, Text, TextStyle } from '@eva/miniprogram-pixi';
11
+ import iOSVersion from 'ios-version';
12
+ function t(t) {
13
+ return Object.prototype.toString.call(t);
14
+ }
15
+ var s = {
16
+ copyJSON: function copyJSON(t) {
17
+ return JSON.parse(JSON.stringify(t));
18
+ },
19
+ isArray: function () {
20
+ var s = t([]);
21
+ return function (e) {
22
+ return t(e) === s;
23
+ };
24
+ }(),
25
+ isString: function () {
26
+ var s = t('s');
27
+ return function (e) {
28
+ return t(e) === s;
29
+ };
30
+ }(),
31
+ isNumber: function () {
32
+ var s = t(1);
33
+ return function (e) {
34
+ return t(e) === s;
35
+ };
36
+ }(),
37
+ isFunction: function () {
38
+ var s = t(function () {});
39
+ return function (e) {
40
+ return t(e) === s;
41
+ };
42
+ }(),
43
+ isUndefined: function isUndefined(t) {
44
+ return void 0 === t;
45
+ },
46
+ isBoolean: function () {
47
+ var s = t(!0);
48
+ return function (e) {
49
+ return t(e) === s;
50
+ };
51
+ }(),
52
+ isObject: function () {
53
+ var s = t({});
54
+ return function (e) {
55
+ return t(e) === s;
56
+ };
57
+ }(),
58
+ random: function random(t, s) {
59
+ return this.isArray(t) ? t[~~(Math.random() * t.length)] : (this.isNumber(s) || (s = t || 1, t = 0), t + Math.random() * (s - t));
60
+ },
61
+ euclideanModulo: function euclideanModulo(t, s) {
62
+ return (t % s + s) % s;
63
+ },
64
+ codomainBounce: function codomainBounce(t, s, e) {
65
+ return t < s ? 2 * s - t : t > e ? 2 * e - t : t;
66
+ },
67
+ clamp: function clamp(t, s, e) {
68
+ return t < s ? s : t > e ? e : t;
69
+ },
70
+ inRange: function inRange(t, s, e) {
71
+ return t >= s && t <= e;
72
+ },
73
+ getAssets: function getAssets(t, s) {
74
+ for (var _e = 0; _e < s.length; _e++) {
75
+ if (t === s[_e].id) return s[_e];
76
+ }
77
+ return console.error('have not assets name as', t), {};
78
+ },
79
+ rgb2hex: function rgb2hex(t) {
80
+ return (t[0] << 16) + (t[1] << 8) + (0 | t[2]);
81
+ }
82
+ };
83
+ var e = function () {
84
+ function e() {
85
+ this.listeners = {}, this.addEventListener = this.on, this.removeEventListener = this.off;
86
+ }
87
+ var _proto = e.prototype;
88
+ _proto.on = function on(t, _e2) {
89
+ return s.isFunction(_e2) ? (s.isUndefined(this.listeners[t]) && (this.listeners[t] = []), this.listeners[t].push(_e2), this) : this;
90
+ };
91
+ _proto.off = function off(t, _e3) {
92
+ if (s.isUndefined(this.listeners[t])) return this;
93
+ var i = this.listeners[t];
94
+ var h = i.length;
95
+ if (h > 0) if (_e3) for (; h--;) {
96
+ i[h] === _e3 && i.splice(h, 1);
97
+ } else i.length = 0;
98
+ return this;
99
+ };
100
+ _proto.once = function once(t, _e4) {
101
+ var _this2 = this;
102
+ if (!s.isFunction(_e4)) return this;
103
+ var i = function i(s) {
104
+ _e4(s), _this2.off(t, i);
105
+ };
106
+ return this.on(t, i), this;
107
+ };
108
+ _proto.emit = function emit(t) {
109
+ if (s.isUndefined(this.listeners[t])) return this;
110
+ var i = (this.listeners[t] || []).slice(0);
111
+ for (var _len = arguments.length, _e5 = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
112
+ _e5[_key - 1] = arguments[_key];
113
+ }
114
+ for (var _t2 = 0; _t2 < i.length; _t2++) {
115
+ i[_t2].apply(this, _e5);
116
+ }
117
+ return this;
118
+ };
119
+ return e;
120
+ }();
121
+ var i = {},
122
+ h = {
123
+ Ajax: 'Ajax',
124
+ Texture: 'Texture'
125
+ };
126
+ var r = {
127
+ Type: h,
128
+ registerLoaderByType: function registerLoaderByType(t, s) {
129
+ i[t] = s;
130
+ }
131
+ };
132
+ function a(t, s, e) {
133
+ var i,
134
+ h,
135
+ r,
136
+ p,
137
+ c,
138
+ d,
139
+ u = t.length;
140
+ for (h = 0; h < u; h += 1) {
141
+ if (i = t[h], 'ks' in i && !i.completed) {
142
+ if (i.completed = !0, i.tt && (t[h - 1].td = i.tt), i.hasMask) {
143
+ var _t3 = i.masksProperties;
144
+ for (p = _t3.length, r = 0; r < p; r += 1) {
145
+ if (_t3[r].pt.k.i) l(_t3[r].pt.k);else for (d = _t3[r].pt.k.length, c = 0; c < d; c += 1) {
146
+ _t3[r].pt.k[c].s && l(_t3[r].pt.k[c].s[0]), _t3[r].pt.k[c].e && l(_t3[r].pt.k[c].e[0]);
147
+ }
148
+ }
149
+ }
150
+ 0 === i.ty ? (i.layers = n(i.refId, s), a(i.layers, s)) : 4 === i.ty ? o(i.shapes) : 5 == i.ty && m(i);
151
+ }
152
+ }
153
+ }
154
+ function n(t, s) {
155
+ var e = 0,
156
+ i = s.length;
157
+ for (; e < i;) {
158
+ if (s[e].id === t) return s[e].layers.__used ? JSON.parse(JSON.stringify(s[e].layers)) : (s[e].layers.__used = !0, s[e].layers);
159
+ e += 1;
160
+ }
161
+ }
162
+ function o(t) {
163
+ var s, e, i;
164
+ for (s = t.length - 1; s >= 0; s -= 1) {
165
+ if ('sh' == t[s].ty) {
166
+ if (t[s].ks.k.i) l(t[s].ks.k);else for (i = t[s].ks.k.length, e = 0; e < i; e += 1) {
167
+ t[s].ks.k[e].s && l(t[s].ks.k[e].s[0]), t[s].ks.k[e].e && l(t[s].ks.k[e].e[0]);
168
+ }
169
+ } else 'gr' == t[s].ty && o(t[s].it);
170
+ }
171
+ }
172
+ function l(t) {
173
+ var s,
174
+ e = t.i.length;
175
+ for (s = 0; s < e; s += 1) {
176
+ t.i[s][0] += t.v[s][0], t.i[s][1] += t.v[s][1], t.o[s][0] += t.v[s][0], t.o[s][1] += t.v[s][1];
177
+ }
178
+ }
179
+ function p(t, s) {
180
+ var e = s ? s.split('.') : [100, 100, 100];
181
+ return t[0] > e[0] || !(e[0] > t[0]) && (t[1] > e[1] || !(e[1] > t[1]) && (t[2] > e[2] || !(e[2] > t[2]) && void 0));
182
+ }
183
+ var c = function () {
184
+ var t = [4, 4, 14];
185
+ function s(t) {
186
+ var s = t.t.d;
187
+ t.t.d = {
188
+ k: [{
189
+ s: s,
190
+ t: 0
191
+ }]
192
+ };
193
+ }
194
+ function e(t) {
195
+ var e,
196
+ i = t.length;
197
+ for (e = 0; e < i; e += 1) {
198
+ 5 === t[e].ty && s(t[e]);
199
+ }
200
+ }
201
+ return function (s) {
202
+ if (p(t, s.v) && (e(s.layers), s.assets)) {
203
+ var _t4,
204
+ _i = s.assets.length;
205
+ for (_t4 = 0; _t4 < _i; _t4 += 1) {
206
+ s.assets[_t4].layers && e(s.assets[_t4].layers);
207
+ }
208
+ }
209
+ };
210
+ }(),
211
+ d = function () {
212
+ var t = [4, 7, 99];
213
+ return function (s) {
214
+ if (s.chars && !p(t, s.v)) {
215
+ var _t5,
216
+ _e6,
217
+ _i2,
218
+ _h,
219
+ _r,
220
+ _a2 = s.chars.length;
221
+ for (_t5 = 0; _t5 < _a2; _t5 += 1) {
222
+ if (s.chars[_t5].data && s.chars[_t5].data.shapes) for (_r = s.chars[_t5].data.shapes[0].it, _i2 = _r.length, _e6 = 0; _e6 < _i2; _e6 += 1) {
223
+ _h = _r[_e6].ks.k, _h.__converted || (l(_r[_e6].ks.k), _h.__converted = !0);
224
+ }
225
+ }
226
+ }
227
+ };
228
+ }(),
229
+ u = function () {
230
+ var t = [4, 1, 9];
231
+ function s(t) {
232
+ var e,
233
+ i,
234
+ h,
235
+ r = t.length;
236
+ for (e = 0; e < r; e += 1) {
237
+ if ('gr' === t[e].ty) s(t[e].it);else if ('fl' === t[e].ty || 'st' === t[e].ty) if (t[e].c.k && t[e].c.k[0].i) for (h = t[e].c.k.length, i = 0; i < h; i += 1) {
238
+ t[e].c.k[i].s && (t[e].c.k[i].s[0] /= 255, t[e].c.k[i].s[1] /= 255, t[e].c.k[i].s[2] /= 255, t[e].c.k[i].s[3] /= 255), t[e].c.k[i].e && (t[e].c.k[i].e[0] /= 255, t[e].c.k[i].e[1] /= 255, t[e].c.k[i].e[2] /= 255, t[e].c.k[i].e[3] /= 255);
239
+ } else t[e].c.k[0] /= 255, t[e].c.k[1] /= 255, t[e].c.k[2] /= 255, t[e].c.k[3] /= 255;
240
+ }
241
+ }
242
+ function e(t) {
243
+ var e,
244
+ i = t.length;
245
+ for (e = 0; e < i; e += 1) {
246
+ 4 === t[e].ty && s(t[e].shapes);
247
+ }
248
+ }
249
+ return function (s) {
250
+ if (p(t, s.v) && (e(s.layers), s.assets)) {
251
+ var _t6,
252
+ _i3 = s.assets.length;
253
+ for (_t6 = 0; _t6 < _i3; _t6 += 1) {
254
+ s.assets[_t6].layers && e(s.assets[_t6].layers);
255
+ }
256
+ }
257
+ };
258
+ }(),
259
+ f = function () {
260
+ var t = [4, 4, 18];
261
+ function s(t) {
262
+ var e, i, h;
263
+ for (e = t.length - 1; e >= 0; e -= 1) {
264
+ if ('sh' == t[e].ty) {
265
+ if (t[e].ks.k.i) t[e].ks.k.c = t[e].closed;else for (h = t[e].ks.k.length, i = 0; i < h; i += 1) {
266
+ t[e].ks.k[i].s && (t[e].ks.k[i].s[0].c = t[e].closed), t[e].ks.k[i].e && (t[e].ks.k[i].e[0].c = t[e].closed);
267
+ }
268
+ } else 'gr' == t[e].ty && s(t[e].it);
269
+ }
270
+ }
271
+ function e(t) {
272
+ var e,
273
+ i,
274
+ h,
275
+ r,
276
+ a,
277
+ n,
278
+ o = t.length;
279
+ for (i = 0; i < o; i += 1) {
280
+ if (e = t[i], e.hasMask) {
281
+ var _t7 = e.masksProperties;
282
+ for (r = _t7.length, h = 0; h < r; h += 1) {
283
+ if (_t7[h].pt.k.i) _t7[h].pt.k.c = _t7[h].cl;else for (n = _t7[h].pt.k.length, a = 0; a < n; a += 1) {
284
+ _t7[h].pt.k[a].s && (_t7[h].pt.k[a].s[0].c = _t7[h].cl), _t7[h].pt.k[a].e && (_t7[h].pt.k[a].e[0].c = _t7[h].cl);
285
+ }
286
+ }
287
+ }
288
+ 4 === e.ty && s(e.shapes);
289
+ }
290
+ }
291
+ return function (s) {
292
+ if (p(t, s.v) && (e(s.layers), s.assets)) {
293
+ var _t8,
294
+ _i4 = s.assets.length;
295
+ for (_t8 = 0; _t8 < _i4; _t8 += 1) {
296
+ s.assets[_t8].layers && e(s.assets[_t8].layers);
297
+ }
298
+ }
299
+ };
300
+ }();
301
+ function m(t, s) {
302
+ 0 !== t.t.a.length || 'm' in t.t.p || (t.singleShape = !0);
303
+ }
304
+ var g = {
305
+ completeData: function completeData(t, s) {
306
+ t.__complete || (u(t), c(t), d(t), f(t), a(t.layers, t.assets), t.__complete = !0);
307
+ },
308
+ checkColors: u,
309
+ checkChars: d,
310
+ checkShapes: f,
311
+ completeLayers: a
312
+ };
313
+ var y = 'function' == typeof Float32Array;
314
+ function v(t, s) {
315
+ return 1 - 3 * s + 3 * t;
316
+ }
317
+ function _$1(t, s) {
318
+ return 3 * s - 6 * t;
319
+ }
320
+ function k$1(t) {
321
+ return 3 * t;
322
+ }
323
+ function S$1(t, s, e) {
324
+ return ((v(s, e) * t + _$1(s, e)) * t + k$1(s)) * t;
325
+ }
326
+ function x(t, s, e) {
327
+ return 3 * v(s, e) * t * t + 2 * _$1(s, e) * t + k$1(s);
328
+ }
329
+ function M$1(t, s, e, i) {
330
+ if (!(0 <= t && t <= 1 && 0 <= e && e <= 1)) throw new Error('bezier x values must be in [0, 1] range');
331
+ this.mX1 = t, this.mY1 = s, this.mX2 = e, this.mY2 = i, this.sampleValues = y ? new Float32Array(11) : new Array(11), this._preCompute(), this.get = this.get.bind(this);
332
+ }
333
+ M$1.prototype._preCompute = function () {
334
+ if (this.mX1 !== this.mY1 || this.mX2 !== this.mY2) for (var _t9 = 0; _t9 < 11; ++_t9) {
335
+ this.sampleValues[_t9] = S$1(0.1 * _t9, this.mX1, this.mX2);
336
+ }
337
+ }, M$1.prototype._getTForX = function (t) {
338
+ var s = 0,
339
+ e = 1;
340
+ for (; 10 !== e && this.sampleValues[e] <= t; ++e) {
341
+ s += 0.1;
342
+ }
343
+ --e;
344
+ var i = s + (t - this.sampleValues[e]) / (this.sampleValues[e + 1] - this.sampleValues[e]) * 0.1,
345
+ h = x(i, this.mX1, this.mX2);
346
+ return h >= 0.001 ? function (t, s, e, i) {
347
+ for (var _h2 = 0; _h2 < 4; ++_h2) {
348
+ var _h3 = x(s, e, i);
349
+ if (0 === _h3) return s;
350
+ s -= (S$1(s, e, i) - t) / _h3;
351
+ }
352
+ return s;
353
+ }(t, i, this.mX1, this.mX2) : 0 === h ? i : function (t, s, e, i, h) {
354
+ var r,
355
+ a,
356
+ n = 0;
357
+ do {
358
+ a = s + (e - s) / 2, r = S$1(a, i, h) - t, r > 0 ? e = a : s = a;
359
+ } while (Math.abs(r) > 1e-7 && ++n < 10);
360
+ return a;
361
+ }(t, s, s + 0.1, this.mX1, this.mX2);
362
+ }, M$1.prototype.get = function (t) {
363
+ return this.mX1 === this.mY1 && this.mX2 === this.mY2 ? t : 0 === t ? 0 : 1 === t ? 1 : S$1(this._getTForX(t), this.mY1, this.mY2);
364
+ };
365
+ var P = {};
366
+ var T$1 = {
367
+ getBezierEasing: function getBezierEasing(t, s, e, i, h) {
368
+ var r = h || ('bez_' + t + '_' + s + '_' + e + '_' + i).replace(/\./g, 'p');
369
+ if (P[r]) return P[r];
370
+ var a = new M$1(t, s, e, i);
371
+ return P[r] = a, a;
372
+ }
373
+ };
374
+ var w;
375
+ function D$1(t) {
376
+ return new Array(t);
377
+ }
378
+ w = 'function' == typeof Uint8ClampedArray && 'function' == typeof Float32Array ? function (t, s) {
379
+ return 'float32' === t ? new Float32Array(s) : 'int16' === t ? new Int16Array(s) : 'uint8c' === t ? new Uint8ClampedArray(s) : void 0;
380
+ } : function (t, s) {
381
+ var e = 0;
382
+ var i = [];
383
+ var h;
384
+ switch (t) {
385
+ case 'int16':
386
+ case 'uint8c':
387
+ h = 1;
388
+ break;
389
+ default:
390
+ h = 1.1;
391
+ }
392
+ for (e = 0; e < s; e += 1) {
393
+ i.push(h);
394
+ }
395
+ return i;
396
+ };
397
+ var L$1 = {
398
+ double: function double(t) {
399
+ return t.concat(D$1(t.length));
400
+ }
401
+ };
402
+ var F$1 = function F$1(t, s, e) {
403
+ var i = 0,
404
+ h = t,
405
+ r = D$1(h);
406
+ return {
407
+ newElement: function newElement() {
408
+ var t;
409
+ return i ? (i -= 1, t = r[i]) : t = s(), t;
410
+ },
411
+ release: function release(t) {
412
+ i === h && (r = L$1.double(r), h *= 2), e && e(t), r[i] = t, i += 1;
413
+ }
414
+ };
415
+ };
416
+ var A$1 = F$1(8, function () {
417
+ return w('float32', 2);
418
+ });
419
+ var C$1 = function () {
420
+ function C$1() {
421
+ this.c = !1, this._length = 0, this._maxLength = 8, this.v = D$1(this._maxLength), this.o = D$1(this._maxLength), this.i = D$1(this._maxLength);
422
+ }
423
+ var _proto2 = C$1.prototype;
424
+ _proto2.setPathData = function setPathData(t, s) {
425
+ this.c = t, this.setLength(s);
426
+ var e = 0;
427
+ for (; e < s;) {
428
+ this.v[e] = A$1.newElement(), this.o[e] = A$1.newElement(), this.i[e] = A$1.newElement(), e += 1;
429
+ }
430
+ };
431
+ _proto2.setLength = function setLength(t) {
432
+ for (; this._maxLength < t;) {
433
+ this.doubleArrayLength();
434
+ }
435
+ this._length = t;
436
+ };
437
+ _proto2.doubleArrayLength = function doubleArrayLength() {
438
+ this.v = this.v.concat(D$1(this._maxLength)), this.i = this.i.concat(D$1(this._maxLength)), this.o = this.o.concat(D$1(this._maxLength)), this._maxLength *= 2;
439
+ };
440
+ _proto2.setXYAt = function setXYAt(t, s, e, i, h) {
441
+ var r;
442
+ switch (this._length = Math.max(this._length, i + 1), this._length >= this._maxLength && this.doubleArrayLength(), e) {
443
+ case 'v':
444
+ r = this.v;
445
+ break;
446
+ case 'i':
447
+ r = this.i;
448
+ break;
449
+ case 'o':
450
+ r = this.o;
451
+ }
452
+ (!r[i] || r[i] && !h) && (r[i] = A$1.newElement()), r[i][0] = t, r[i][1] = s;
453
+ };
454
+ _proto2.setTripleAt = function setTripleAt(t, s, e, i, h, r, a, n) {
455
+ this.setXYAt(t, s, 'v', a, n), this.setXYAt(e, i, 'o', a, n), this.setXYAt(h, r, 'i', a, n);
456
+ };
457
+ _proto2.reverse = function reverse() {
458
+ var t = new C$1();
459
+ t.setPathData(this.c, this._length);
460
+ var s = this.v,
461
+ e = this.o,
462
+ i = this.i;
463
+ var h = 0;
464
+ this.c && (t.setTripleAt(s[0][0], s[0][1], i[0][0], i[0][1], e[0][0], e[0][1], 0, !1), h = 1);
465
+ var r = this._length - 1;
466
+ var a = this._length;
467
+ for (var _n = h; _n < a; _n += 1) {
468
+ t.setTripleAt(s[r][0], s[r][1], i[r][0], i[r][1], e[r][0], e[r][1], _n, !1), r -= 1;
469
+ }
470
+ return t;
471
+ };
472
+ return C$1;
473
+ }();
474
+ var b = F$1(4, function () {
475
+ return new C$1();
476
+ }, function (t) {
477
+ var s = t._length;
478
+ for (var _e7 = 0; _e7 < s; _e7 += 1) {
479
+ A$1.release(t.v[_e7]), A$1.release(t.i[_e7]), A$1.release(t.o[_e7]), t.v[_e7] = null, t.i[_e7] = null, t.o[_e7] = null;
480
+ }
481
+ t._length = 0, t.c = !1;
482
+ });
483
+ b.clone = function (t) {
484
+ var s = b.newElement(),
485
+ e = void 0 === t._length ? t.v.length : t._length;
486
+ s.setLength(e), s.c = t.c;
487
+ for (var _i5 = 0; _i5 < e; _i5 += 1) {
488
+ s.setTripleAt(t.v[_i5][0], t.v[_i5][1], t.o[_i5][0], t.o[_i5][1], t.i[_i5][0], t.i[_i5][1], _i5);
489
+ }
490
+ return s;
491
+ };
492
+ var I$1 = function () {
493
+ function I$1() {
494
+ this._length = 0, this._maxLength = 4, this.shapes = D$1(this._maxLength);
495
+ }
496
+ var _proto3 = I$1.prototype;
497
+ _proto3.addShape = function addShape(t) {
498
+ this._length === this._maxLength && (this.shapes = this.shapes.concat(D$1(this._maxLength)), this._maxLength *= 2), this.shapes[this._length] = t, this._length += 1;
499
+ };
500
+ _proto3.releaseShapes = function releaseShapes() {
501
+ for (var _t10 = 0; _t10 < this._length; _t10 += 1) {
502
+ b.release(this.shapes[_t10]);
503
+ }
504
+ this._length = 0;
505
+ };
506
+ return I$1;
507
+ }();
508
+ var E$1 = 0,
509
+ V$1 = 4,
510
+ N$1 = D$1(V$1);
511
+ var q$1 = {
512
+ newShapeCollection: function newShapeCollection() {
513
+ var t;
514
+ return E$1 ? (E$1 -= 1, t = N$1[E$1]) : t = new I$1(), t;
515
+ },
516
+ release: function release(t) {
517
+ var s = t._length;
518
+ for (var _e8 = 0; _e8 < s; _e8 += 1) {
519
+ b.release(t.shapes[_e8]);
520
+ }
521
+ t._length = 0, E$1 === V$1 && (N$1 = L$1.double(N$1), V$1 *= 2), N$1[E$1] = t, E$1 += 1;
522
+ }
523
+ };
524
+ var O$1 = function () {
525
+ function O$1() {}
526
+ var _proto4 = O$1.prototype;
527
+ _proto4.outTypeExpressionMode = function outTypeExpressionMode() {
528
+ this._hasOutTypeExpression = !0, this.container && this.container.outTypeExpressionMode();
529
+ };
530
+ _proto4.addDynamicProperty = function addDynamicProperty(t) {
531
+ -1 === this.dynamicProperties.indexOf(t) && (this.dynamicProperties.push(t), this.container.addDynamicProperty(this), this._isAnimated = !0, t._hasOutTypeExpression && this.outTypeExpressionMode());
532
+ };
533
+ _proto4.iterateDynamicProperties = function iterateDynamicProperties(t) {
534
+ this._mdf = !1;
535
+ var s = this.dynamicProperties.length;
536
+ for (var _e9 = 0; _e9 < s; _e9 += 1) {
537
+ this.dynamicProperties[_e9].getValue(t), this.dynamicProperties[_e9]._mdf && (this._mdf = !0);
538
+ }
539
+ };
540
+ _proto4.initDynamicPropertyContainer = function initDynamicPropertyContainer(t) {
541
+ this.container = t, this.dynamicProperties = [], this._mdf = !1, this._isAnimated = !1, this._hasOutTypeExpression = !1;
542
+ };
543
+ return O$1;
544
+ }();
545
+ var X$1 = F$1(8, function () {
546
+ return {
547
+ addedLength: 0,
548
+ percents: w('float32', 200),
549
+ lengths: w('float32', 200)
550
+ };
551
+ });
552
+ var Y$1 = F$1(8, function () {
553
+ return {
554
+ lengths: [],
555
+ totalLength: 0
556
+ };
557
+ }, function (t) {
558
+ var s = t.lengths.length;
559
+ for (var _e10 = 0; _e10 < s; _e10 += 1) {
560
+ X$1.release(t.lengths[_e10]);
561
+ }
562
+ t.lengths.length = 0;
563
+ });
564
+ function j$1(t, s, e, i, h, r) {
565
+ var a = t * i + s * h + e * r - h * i - r * t - e * s;
566
+ return a > -0.001 && a < 0.001;
567
+ }
568
+ function z$1(t, s, e, i) {
569
+ var h,
570
+ r = 0;
571
+ var a = [],
572
+ n = [],
573
+ o = X$1.newElement(),
574
+ l = e.length;
575
+ for (var _p = 0; _p < 200; _p += 1) {
576
+ var _c2 = _p / 199;
577
+ h = 0;
578
+ for (var _r2 = 0; _r2 < l; _r2 += 1) {
579
+ var _o = Math.pow(1 - _c2, 3) * t[_r2] + 3 * Math.pow(1 - _c2, 2) * _c2 * e[_r2] + 3 * (1 - _c2) * Math.pow(_c2, 2) * i[_r2] + Math.pow(_c2, 3) * s[_r2];
580
+ a[_r2] = _o, null !== n[_r2] && (h += Math.pow(a[_r2] - n[_r2], 2)), n[_r2] = a[_r2];
581
+ }
582
+ h && (h = Math.sqrt(h), r += h), o.percents[_p] = _c2, o.lengths[_p] = r;
583
+ }
584
+ return o.addedLength = r, o;
585
+ }
586
+ function B$1(t) {
587
+ this.segmentLength = 0, this.points = new Array(t);
588
+ }
589
+ function R$1(t, s) {
590
+ this.partialLength = t, this.point = s;
591
+ }
592
+ var K$1 = {};
593
+ function G$1(t, s) {
594
+ var e = s.percents,
595
+ i = s.lengths,
596
+ h = e.length;
597
+ var r = Math.floor((h - 1) * t);
598
+ var a = t * s.addedLength;
599
+ var n = 0;
600
+ if (r === h - 1 || 0 === r || a === i[r]) return e[r];
601
+ {
602
+ var _t11 = i[r] > a ? -1 : 1;
603
+ var _s = !0;
604
+ for (; _s;) {
605
+ if (i[r] <= a && i[r + 1] > a ? (n = (a - i[r]) / (i[r + 1] - i[r]), _s = !1) : r += _t11, r < 0 || r >= h - 1) {
606
+ if (r === h - 1) return e[r];
607
+ _s = !1;
608
+ }
609
+ }
610
+ return e[r] + (e[r + 1] - e[r]) * n;
611
+ }
612
+ }
613
+ var J$1 = w('float32', 8);
614
+ var H$1 = {
615
+ getSegmentsLength: function getSegmentsLength(t) {
616
+ var s = Y$1.newElement(),
617
+ e = t.c,
618
+ i = t.v,
619
+ h = t.o,
620
+ r = t.i,
621
+ a = t._length,
622
+ n = s.lengths;
623
+ var o = 0,
624
+ l = 0;
625
+ for (; l < a - 1; l += 1) {
626
+ n[l] = z$1(i[l], i[l + 1], h[l], r[l + 1]), o += n[l].addedLength;
627
+ }
628
+ return e && a && (n[l] = z$1(i[l], i[0], h[l], r[0]), o += n[l].addedLength), s.totalLength = o, s;
629
+ },
630
+ getNewSegment: function getNewSegment(t, s, e, i, h, r, a) {
631
+ var n = G$1(h = h < 0 ? 0 : h > 1 ? 1 : h, a),
632
+ o = G$1(r = r > 1 ? 1 : r, a),
633
+ l = t.length,
634
+ p = 1 - n,
635
+ c = 1 - o,
636
+ d = p * p * p,
637
+ u = n * p * p * 3,
638
+ f = n * n * p * 3,
639
+ m = n * n * n,
640
+ g = p * p * c,
641
+ y = n * p * c + p * n * c + p * p * o,
642
+ v = n * n * c + p * n * o + n * p * o,
643
+ _ = n * n * o,
644
+ k = p * c * c,
645
+ S = n * c * c + p * o * c + p * c * o,
646
+ x = n * o * c + p * o * o + n * c * o,
647
+ M = n * o * o,
648
+ P = c * c * c,
649
+ T = o * c * c + c * o * c + c * c * o,
650
+ w = o * o * c + c * o * o + o * c * o,
651
+ D = o * o * o;
652
+ for (var _h4 = 0; _h4 < l; _h4 += 1) {
653
+ J$1[4 * _h4] = Math.round(1e3 * (d * t[_h4] + u * e[_h4] + f * i[_h4] + m * s[_h4])) / 1e3, J$1[4 * _h4 + 1] = Math.round(1e3 * (g * t[_h4] + y * e[_h4] + v * i[_h4] + _ * s[_h4])) / 1e3, J$1[4 * _h4 + 2] = Math.round(1e3 * (k * t[_h4] + S * e[_h4] + x * i[_h4] + M * s[_h4])) / 1e3, J$1[4 * _h4 + 3] = Math.round(1e3 * (P * t[_h4] + T * e[_h4] + w * i[_h4] + D * s[_h4])) / 1e3;
654
+ }
655
+ return J$1;
656
+ },
657
+ getPointInSegment: function getPointInSegment(t, s, e, i, h, r) {
658
+ var a = G$1(h, r),
659
+ n = 1 - a;
660
+ return [Math.round(1e3 * (n * n * n * t[0] + (a * n * n + n * a * n + n * n * a) * e[0] + (a * a * n + n * a * a + a * n * a) * i[0] + a * a * a * s[0])) / 1e3, Math.round(1e3 * (n * n * n * t[1] + (a * n * n + n * a * n + n * n * a) * e[1] + (a * a * n + n * a * a + a * n * a) * i[1] + a * a * a * s[1])) / 1e3];
661
+ },
662
+ buildBezierData: function buildBezierData(t, s, e, i) {
663
+ var h = (t[0] + '_' + t[1] + '_' + s[0] + '_' + s[1] + '_' + e[0] + '_' + e[1] + '_' + i[0] + '_' + i[1]).replace(/\./g, 'p');
664
+ if (!K$1[h]) {
665
+ var _r3,
666
+ _a3,
667
+ _n2 = 200,
668
+ _o2 = 0,
669
+ _l = null;
670
+ 2 === t.length && (t[0] != s[0] || t[1] != s[1]) && j$1(t[0], t[1], s[0], s[1], t[0] + e[0], t[1] + e[1]) && j$1(t[0], t[1], s[0], s[1], s[0] + i[0], s[1] + i[1]) && (_n2 = 2);
671
+ var _p2 = new B$1(_n2),
672
+ _c3 = e.length;
673
+ for (var _h5 = 0; _h5 < _n2; _h5 += 1) {
674
+ _a3 = D$1(_c3);
675
+ var _d2 = _h5 / (_n2 - 1);
676
+ _r3 = 0;
677
+ for (var _h6 = 0; _h6 < _c3; _h6 += 1) {
678
+ var _n3 = Math.pow(1 - _d2, 3) * t[_h6] + 3 * Math.pow(1 - _d2, 2) * _d2 * (t[_h6] + e[_h6]) + 3 * (1 - _d2) * Math.pow(_d2, 2) * (s[_h6] + i[_h6]) + Math.pow(_d2, 3) * s[_h6];
679
+ _a3[_h6] = _n3, null !== _l && (_r3 += Math.pow(_a3[_h6] - _l[_h6], 2));
680
+ }
681
+ _r3 = Math.sqrt(_r3), _o2 += _r3, _p2.points[_h5] = new R$1(_r3, _a3), _l = _a3;
682
+ }
683
+ _p2.segmentLength = _o2, K$1[h] = _p2;
684
+ }
685
+ return K$1[h];
686
+ },
687
+ pointOnLine2D: j$1,
688
+ pointOnLine3D: function pointOnLine3D(t, s, e, i, h, r, a, n, o) {
689
+ if (0 === e && 0 === r && 0 === o) return j$1(t, s, i, h, a, n);
690
+ var l = Math.sqrt(Math.pow(i - t, 2) + Math.pow(h - s, 2) + Math.pow(r - e, 2)),
691
+ p = Math.sqrt(Math.pow(a - t, 2) + Math.pow(n - s, 2) + Math.pow(o - e, 2)),
692
+ c = Math.sqrt(Math.pow(a - i, 2) + Math.pow(n - h, 2) + Math.pow(o - r, 2));
693
+ var d;
694
+ return d = l > p ? l > c ? l - p - c : c - p - l : c > p ? c - p - l : p - l - c, d > -1e-4 && d < 1e-4;
695
+ }
696
+ };
697
+ var U$1 = Math.PI / 180,
698
+ Z$1 = [0, 0],
699
+ Q = /(loopIn|loopOut)\(([^)]+)/,
700
+ W$1 = /["']\w+["']/;
701
+ var $$1 = function () {
702
+ function $$1(t, s, e) {
703
+ this.begin = s, this.end = e, this.total = this.end - this.begin, this.type = t;
704
+ }
705
+ var _proto5 = $$1.prototype;
706
+ _proto5.update = function update(t) {
707
+ return 'in' === this.type ? t >= this.begin ? t : this.end - s.euclideanModulo(this.begin - t, this.total) : 'out' === this.type ? t <= this.end ? t : this.begin + s.euclideanModulo(t - this.end, this.total) : void 0;
708
+ };
709
+ return $$1;
710
+ }();
711
+ var tt = function () {
712
+ function tt(t, s, e) {
713
+ this.begin = s, this.end = e, this.total = this.end - this.begin, this.type = t;
714
+ }
715
+ var _proto6 = tt.prototype;
716
+ _proto6.update = function update(t) {
717
+ if ('in' === this.type && t < this.begin || 'out' === this.type && t > this.end) {
718
+ var _s2 = t - this.end;
719
+ return this.pingpong(_s2);
720
+ }
721
+ return t;
722
+ };
723
+ _proto6.pingpong = function pingpong(t) {
724
+ return Math.floor(t / this.total) % 2 ? this.begin + s.euclideanModulo(t, this.total) : this.end - s.euclideanModulo(t, this.total);
725
+ };
726
+ return tt;
727
+ }();
728
+ var st = {
729
+ loopIn: function loopIn(t, s, e) {
730
+ var i = t[0].t,
731
+ h = t.length - 1,
732
+ r = t[Math.min(h, e)].t;
733
+ switch (s) {
734
+ case 'cycle':
735
+ return new $$1('in', i, r);
736
+ case 'pingpong':
737
+ return new tt('in', i, r);
738
+ }
739
+ return null;
740
+ },
741
+ loopOut: function loopOut(t, s, e) {
742
+ var i = t.length - 1,
743
+ h = t[Math.max(0, i - e)].t,
744
+ r = t[i].t;
745
+ switch (s) {
746
+ case 'cycle':
747
+ return new $$1('out', h, r);
748
+ case 'pingpong':
749
+ return new tt('out', h, r);
750
+ }
751
+ return null;
752
+ }
753
+ };
754
+ function et(t) {
755
+ var s = t.match(Q),
756
+ e = s[2].split(/\s*,\s*/).map(function (t) {
757
+ return W$1.test(t) ? t.replace(/"|'/g, '') : parseInt(t);
758
+ });
759
+ return {
760
+ name: s[1],
761
+ mode: e[0],
762
+ offset: e[1]
763
+ };
764
+ }
765
+ var it = {
766
+ hasSupportExpression: function hasSupportExpression(t) {
767
+ return t.x && Q.test(t.x);
768
+ },
769
+ getExpression: function getExpression(t) {
770
+ var _et = et(t.x),
771
+ s = _et.name,
772
+ e = _et.mode,
773
+ _et$offset = _et.offset,
774
+ i = _et$offset === void 0 ? 0 : _et$offset,
775
+ h = 0 === i ? t.k.length - 1 : i;
776
+ return st[s] && st[s](t.k, e, h);
777
+ }
778
+ };
779
+ function ht(t) {
780
+ var s = t[0] * U$1,
781
+ e = t[1] * U$1,
782
+ i = t[2] * U$1,
783
+ h = Math.cos(s / 2),
784
+ r = Math.cos(e / 2),
785
+ a = Math.cos(i / 2),
786
+ n = Math.sin(s / 2),
787
+ o = Math.sin(e / 2),
788
+ l = Math.sin(i / 2);
789
+ return [n * o * a + h * r * l, n * r * a + h * o * l, h * o * a - n * r * l, h * r * a - n * o * l];
790
+ }
791
+ var rt = function () {
792
+ function rt() {}
793
+ var _proto7 = rt.prototype;
794
+ _proto7.interpolateValue = function interpolateValue(t, s) {
795
+ var e;
796
+ 'multidimensional' === this.propType && (e = w('float32', this.pv.length));
797
+ var i,
798
+ h,
799
+ r,
800
+ a,
801
+ n,
802
+ o,
803
+ l,
804
+ p,
805
+ c = s.lastIndex,
806
+ d = c,
807
+ u = this.keyframes.length - 1,
808
+ f = !0;
809
+ for (; f;) {
810
+ if (i = this.keyframes[d], h = this.keyframes[d + 1], d === u - 1 && t >= h.t) {
811
+ i.h && (i = h), c = 0;
812
+ break;
813
+ }
814
+ if (h.t > t) {
815
+ c = d;
816
+ break;
817
+ }
818
+ d < u - 1 ? d += 1 : (c = 0, f = !1);
819
+ }
820
+ var m,
821
+ g = h.t,
822
+ y = i.t;
823
+ if (i.to) {
824
+ i.bezierData || (i.bezierData = H$1.buildBezierData(i.s, h.s || i.e, i.to, i.ti));
825
+ var _c4 = i.bezierData;
826
+ if (t >= g || t < y) {
827
+ var _s3 = t >= g ? _c4.points.length - 1 : 0;
828
+ for (a = _c4.points[_s3].point.length, r = 0; r < a; r += 1) {
829
+ e[r] = _c4.points[_s3].point[r];
830
+ }
831
+ } else {
832
+ i.__fnct ? p = i.__fnct : (p = T$1.getBezierEasing(i.o.x, i.o.y, i.i.x, i.i.y, i.n).get, i.__fnct = p), n = p((t - y) / (g - y));
833
+ var _h7,
834
+ _u = _c4.segmentLength * n,
835
+ _m = s.lastFrame < t && s._lastKeyframeIndex === d ? s._lastAddedLength : 0;
836
+ for (l = s.lastFrame < t && s._lastKeyframeIndex === d ? s._lastPoint : 0, f = !0, o = _c4.points.length; f;) {
837
+ if (_m += _c4.points[l].partialLength, 0 === _u || 0 === n || l === _c4.points.length - 1) {
838
+ for (a = _c4.points[l].point.length, r = 0; r < a; r += 1) {
839
+ e[r] = _c4.points[l].point[r];
840
+ }
841
+ break;
842
+ }
843
+ if (_u >= _m && _u < _m + _c4.points[l + 1].partialLength) {
844
+ for (_h7 = (_u - _m) / _c4.points[l + 1].partialLength, a = _c4.points[l].point.length, r = 0; r < a; r += 1) {
845
+ e[r] = _c4.points[l].point[r] + (_c4.points[l + 1].point[r] - _c4.points[l].point[r]) * _h7;
846
+ }
847
+ break;
848
+ }
849
+ l < o - 1 ? l += 1 : f = !1;
850
+ }
851
+ s._lastPoint = l, s._lastAddedLength = _m - _c4.points[l].partialLength, s._lastKeyframeIndex = d;
852
+ }
853
+ } else {
854
+ var _s4, _r4, _a4, _o3, _l2;
855
+ if (u = i.s.length, m = h.s || i.e, this.sh && 1 !== i.h) {
856
+ if (t >= g) e[0] = m[0], e[1] = m[1], e[2] = m[2];else if (t <= y) e[0] = i.s[0], e[1] = i.s[1], e[2] = i.s[2];else {
857
+ !function (t, s) {
858
+ var e = s[0],
859
+ i = s[1],
860
+ h = s[2],
861
+ r = s[3],
862
+ a = Math.atan2(2 * i * r - 2 * e * h, 1 - 2 * i * i - 2 * h * h),
863
+ n = Math.asin(2 * e * i + 2 * h * r),
864
+ o = Math.atan2(2 * e * r - 2 * i * h, 1 - 2 * e * e - 2 * h * h);
865
+ t[0] = a / U$1, t[1] = n / U$1, t[2] = o / U$1;
866
+ }(e, function (t, s, e) {
867
+ var i = [],
868
+ h = t[0],
869
+ r = t[1],
870
+ a = t[2],
871
+ n = t[3];
872
+ var o,
873
+ l,
874
+ p,
875
+ c,
876
+ d,
877
+ u = s[0],
878
+ f = s[1],
879
+ m = s[2],
880
+ g = s[3];
881
+ return l = h * u + r * f + a * m + n * g, l < 0 && (l = -l, u = -u, f = -f, m = -m, g = -g), 1 - l > 1e-6 ? (o = Math.acos(l), p = Math.sin(o), c = Math.sin((1 - e) * o) / p, d = Math.sin(e * o) / p) : (c = 1 - e, d = e), i[0] = c * h + d * u, i[1] = c * r + d * f, i[2] = c * a + d * m, i[3] = c * n + d * g, i;
882
+ }(ht(i.s), ht(m), (t - y) / (g - y)));
883
+ }
884
+ } else for (d = 0; d < u; d += 1) {
885
+ 1 !== i.h && (t >= g ? n = 1 : t < y ? n = 0 : (i.o.x.constructor === Array ? (i.__fnct || (i.__fnct = []), i.__fnct[d] ? p = i.__fnct[d] : (_s4 = void 0 === i.o.x[d] ? i.o.x[0] : i.o.x[d], _r4 = void 0 === i.o.y[d] ? i.o.y[0] : i.o.y[d], _a4 = void 0 === i.i.x[d] ? i.i.x[0] : i.i.x[d], _o3 = void 0 === i.i.y[d] ? i.i.y[0] : i.i.y[d], p = T$1.getBezierEasing(_s4, _r4, _a4, _o3).get, i.__fnct[d] = p)) : i.__fnct ? p = i.__fnct : (_s4 = i.o.x, _r4 = i.o.y, _a4 = i.i.x, _o3 = i.i.y, p = T$1.getBezierEasing(_s4, _r4, _a4, _o3).get, i.__fnct = p), n = p((t - y) / (g - y)))), m = h.s || i.e, _l2 = 1 === i.h ? i.s[d] : i.s[d] + (m[d] - i.s[d]) * n, 'multidimensional' === this.propType ? e[d] = _l2 : e = _l2;
886
+ }
887
+ }
888
+ return s.lastIndex = c, e;
889
+ };
890
+ _proto7.getValueAtCurrentTime = function getValueAtCurrentTime(t) {
891
+ var s = this.keyframes[0].t,
892
+ e = this.keyframes[this.keyframes.length - 1].t;
893
+ if (!(t === this._caching.lastFrame || -999999 !== this._caching.lastFrame && (this._caching.lastFrame >= e && t >= e || this._caching.lastFrame < s && t < s))) {
894
+ this._caching.lastFrame >= t && (this._caching._lastKeyframeIndex = -1, this._caching.lastIndex = 0);
895
+ var _s5 = this.interpolateValue(t, this._caching);
896
+ this.pv = _s5;
897
+ }
898
+ return this._caching.lastFrame = t, this.pv;
899
+ };
900
+ _proto7.setVValue = function setVValue(t) {
901
+ var s;
902
+ if ('unidimensional' === this.propType) s = t * this.mult, Math.abs(this.v - s) > 1e-5 && (this.v = s, this._mdf = !0);else {
903
+ var _e11 = 0;
904
+ var _i6 = this.v.length;
905
+ for (; _e11 < _i6;) {
906
+ s = t[_e11] * this.mult, Math.abs(this.v[_e11] - s) > 1e-5 && (this.v[_e11] = s, this._mdf = !0), _e11 += 1;
907
+ }
908
+ }
909
+ };
910
+ _proto7.processEffectsSequence = function processEffectsSequence(t) {
911
+ if (this.expression && (t = this.expression.update(t)), t === this.frameId || !this.effectsSequence.length) return;
912
+ if (this.lock) return void this.setVValue(this.pv);
913
+ var s;
914
+ this.lock = !0, this._mdf = this._isFirstFrame;
915
+ var e = this.effectsSequence.length,
916
+ i = this.kf ? this.pv : this.data.k;
917
+ for (s = 0; s < e; s += 1) {
918
+ i = this.effectsSequence[s](t);
919
+ }
920
+ this.setVValue(i), this._isFirstFrame = !1, this.lock = !1, this.frameId = t;
921
+ };
922
+ _proto7.addEffect = function addEffect(t) {
923
+ this.effectsSequence.push(t), this.container.addDynamicProperty(this);
924
+ };
925
+ return rt;
926
+ }();
927
+ var at = function (_rt) {
928
+ _inheritsLoose(at, _rt);
929
+ function at(t, s, e, i) {
930
+ var _this3;
931
+ _this3 = _rt.call(this) || this, _this3.propType = 'unidimensional', _this3.mult = e || 1, _this3.data = s, _this3.v = e ? s.k * e : s.k, _this3.pv = s.k, _this3._mdf = !1, _this3.elem = t, _this3.container = i, _this3.k = !1, _this3.kf = !1, _this3.vel = 0, _this3.effectsSequence = [], _this3._isFirstFrame = !0, _this3.getValue = _this3.processEffectsSequence;
932
+ return _this3;
933
+ }
934
+ return at;
935
+ }(rt);
936
+ var nt = function (_rt2) {
937
+ _inheritsLoose(nt, _rt2);
938
+ function nt(t, s, e, i) {
939
+ var _this4;
940
+ _this4 = _rt2.call(this) || this, _this4.propType = 'multidimensional', _this4.mult = e || 1, _this4.data = s, _this4._mdf = !1, _this4.elem = t, _this4.container = i, _this4.comp = t.comp, _this4.k = !1, _this4.kf = !1, _this4.frameId = -1;
941
+ var h = s.k.length;
942
+ _this4.v = w('float32', h), _this4.pv = w('float32', h), _this4.vel = w('float32', h);
943
+ for (var _t12 = 0; _t12 < h; _t12 += 1) {
944
+ _this4.v[_t12] = s.k[_t12] * _this4.mult, _this4.pv[_t12] = s.k[_t12];
945
+ }
946
+ _this4._isFirstFrame = !0, _this4.effectsSequence = [], _this4.getValue = _this4.processEffectsSequence;
947
+ return _this4;
948
+ }
949
+ return nt;
950
+ }(rt);
951
+ var ot = function (_rt3) {
952
+ _inheritsLoose(ot, _rt3);
953
+ function ot(t, s, e, i) {
954
+ var _this5;
955
+ _this5 = _rt3.call(this) || this, _this5.propType = 'unidimensional', _this5.keyframes = s.k, _this5.frameId = -1, _this5._caching = {
956
+ lastFrame: -999999,
957
+ lastIndex: 0,
958
+ value: 0,
959
+ _lastKeyframeIndex: -1
960
+ }, _this5.k = !0, _this5.kf = !0, _this5.data = s, _this5.mult = e || 1, _this5.elem = t, _this5.container = i, _this5.comp = t.comp, _this5.v = -999999, _this5.pv = -999999, _this5._isFirstFrame = !0, _this5.getValue = _this5.processEffectsSequence, _this5.effectsSequence = [_this5.getValueAtCurrentTime.bind(_assertThisInitialized(_this5))], _this5._hasOutTypeExpression = !1, it.hasSupportExpression(s) && (_this5.expression = it.getExpression(s), _this5._hasOutTypeExpression = 'out' === _this5.expression.type);
961
+ return _this5;
962
+ }
963
+ return ot;
964
+ }(rt);
965
+ var lt = function (_rt4) {
966
+ _inheritsLoose(lt, _rt4);
967
+ function lt(t, s, e, i) {
968
+ var _this6;
969
+ var h;
970
+ _this6 = _rt4.call(this) || this, _this6.propType = 'multidimensional';
971
+ var r,
972
+ a,
973
+ n,
974
+ o,
975
+ l = s.k.length;
976
+ for (h = 0; h < l - 1; h += 1) {
977
+ s.k[h].to && s.k[h].s && s.k[h + 1] && s.k[h + 1].s && (r = s.k[h].s, a = s.k[h + 1].s, n = s.k[h].to, o = s.k[h].ti, (2 === r.length && (r[0] !== a[0] || r[1] !== a[1]) && H$1.pointOnLine2D(r[0], r[1], a[0], a[1], r[0] + n[0], r[1] + n[1]) && H$1.pointOnLine2D(r[0], r[1], a[0], a[1], a[0] + o[0], a[1] + o[1]) || 3 === r.length && (r[0] !== a[0] || r[1] !== a[1] || r[2] !== a[2]) && H$1.pointOnLine3D(r[0], r[1], r[2], a[0], a[1], a[2], r[0] + n[0], r[1] + n[1], r[2] + n[2]) && H$1.pointOnLine3D(r[0], r[1], r[2], a[0], a[1], a[2], a[0] + o[0], a[1] + o[1], a[2] + o[2])) && (s.k[h].to = null, s.k[h].ti = null), r[0] === a[0] && r[1] === a[1] && 0 === n[0] && 0 === n[1] && 0 === o[0] && 0 === o[1] && (2 === r.length || r[2] === a[2] && 0 === n[2] && 0 === o[2]) && (s.k[h].to = null, s.k[h].ti = null));
978
+ }
979
+ _this6.effectsSequence = [_this6.getValueAtCurrentTime.bind(_assertThisInitialized(_this6))], _this6.keyframes = s.k, _this6.k = !0, _this6.kf = !0, _this6._isFirstFrame = !0, _this6.mult = e || 1, _this6.elem = t, _this6.container = i, _this6.comp = t.comp, _this6.getValue = _this6.processEffectsSequence, _this6.frameId = -1;
980
+ var p = s.k[0].s.length;
981
+ for (_this6.v = w('float32', p), _this6.pv = w('float32', p), h = 0; h < p; h += 1) {
982
+ _this6.v[h] = -999999, _this6.pv[h] = -999999;
983
+ }
984
+ _this6._caching = {
985
+ lastFrame: -999999,
986
+ lastIndex: 0,
987
+ value: w('float32', p)
988
+ }, _this6._hasOutTypeExpression = !1, it.hasSupportExpression(s) && (_this6.expression = it.getExpression(s), _this6._hasOutTypeExpression = 'out' === _this6.expression.type);
989
+ return _this6;
990
+ }
991
+ return lt;
992
+ }(rt);
993
+ var pt = {
994
+ getProp: function getProp(t, s, e, i, h) {
995
+ var r;
996
+ if (s.k.length) {
997
+ if ('number' == typeof s.k[0]) r = new nt(t, s, i, h);else switch (e) {
998
+ case 0:
999
+ r = new ot(t, s, i, h);
1000
+ break;
1001
+ case 1:
1002
+ r = new lt(t, s, i, h);
1003
+ }
1004
+ } else r = new at(t, s, i, h);
1005
+ return r.effectsSequence.length && h.addDynamicProperty(r), r;
1006
+ }
1007
+ };
1008
+ var ct = function () {
1009
+ function ct() {}
1010
+ var _proto8 = ct.prototype;
1011
+ _proto8.interpolateShape = function interpolateShape(t, s, e) {
1012
+ var i,
1013
+ h,
1014
+ r,
1015
+ a,
1016
+ n,
1017
+ o,
1018
+ l,
1019
+ p,
1020
+ c,
1021
+ d = e.lastIndex,
1022
+ u = this.keyframes;
1023
+ if (t < u[0].t) i = u[0].s[0], r = !0, d = 0;else if (t >= u[u.length - 1].t) i = u[u.length - 1].s ? u[u.length - 1].s[0] : u[u.length - 2].e[0], r = !0;else {
1024
+ var _s6,
1025
+ _e12,
1026
+ _a5 = d,
1027
+ _n4 = u.length - 1,
1028
+ _o4 = !0;
1029
+ for (; _o4 && (_s6 = u[_a5], _e12 = u[_a5 + 1], !(_e12.t > t));) {
1030
+ _a5 < _n4 - 1 ? _a5 += 1 : _o4 = !1;
1031
+ }
1032
+ if (r = 1 === _s6.h, d = _a5, !r) {
1033
+ if (t >= _e12.t) p = 1;else if (t < _s6.t) p = 0;else {
1034
+ var _i7;
1035
+ _s6.__fnct ? _i7 = _s6.__fnct : (_i7 = T$1.getBezierEasing(_s6.o.x, _s6.o.y, _s6.i.x, _s6.i.y).get, _s6.__fnct = _i7), p = _i7((t - _s6.t) / (_e12.t - _s6.t));
1036
+ }
1037
+ h = _e12.s ? _e12.s[0] : _s6.e[0];
1038
+ }
1039
+ i = _s6.s[0];
1040
+ }
1041
+ for (o = s._length, l = i.i[0].length, e.lastIndex = d, a = 0; a < o; a += 1) {
1042
+ for (n = 0; n < l; n += 1) {
1043
+ c = r ? i.i[a][n] : i.i[a][n] + (h.i[a][n] - i.i[a][n]) * p, s.i[a][n] = c, c = r ? i.o[a][n] : i.o[a][n] + (h.o[a][n] - i.o[a][n]) * p, s.o[a][n] = c, c = r ? i.v[a][n] : i.v[a][n] + (h.v[a][n] - i.v[a][n]) * p, s.v[a][n] = c;
1044
+ }
1045
+ }
1046
+ };
1047
+ _proto8.interpolateShapeCurrentTime = function interpolateShapeCurrentTime(t) {
1048
+ var s = this.keyframes[0].t,
1049
+ e = this.keyframes[this.keyframes.length - 1].t,
1050
+ i = this._caching.lastFrame;
1051
+ return -999999 !== i && (i < s && t < s || i > e && t > e) || (this._caching.lastIndex = i < t ? this._caching.lastIndex : 0, this.interpolateShape(t, this.pv, this._caching)), this._caching.lastFrame = t, this.pv;
1052
+ };
1053
+ _proto8.resetShape = function resetShape() {
1054
+ this.paths = this.localShapeCollection;
1055
+ };
1056
+ _proto8.shapesEqual = function shapesEqual(t, s) {
1057
+ if (t._length !== s._length || t.c !== s.c) return !1;
1058
+ var e,
1059
+ i = t._length;
1060
+ for (e = 0; e < i; e += 1) {
1061
+ if (t.v[e][0] !== s.v[e][0] || t.v[e][1] !== s.v[e][1] || t.o[e][0] !== s.o[e][0] || t.o[e][1] !== s.o[e][1] || t.i[e][0] !== s.i[e][0] || t.i[e][1] !== s.i[e][1]) return !1;
1062
+ }
1063
+ return !0;
1064
+ };
1065
+ _proto8.setVValue = function setVValue(t) {
1066
+ this.shapesEqual(this.v, t) || (this.v = b.clone(t), this.localShapeCollection.releaseShapes(), this.localShapeCollection.addShape(this.v), this._mdf = !0, this.paths = this.localShapeCollection);
1067
+ };
1068
+ _proto8.processEffectsSequence = function processEffectsSequence(t) {
1069
+ if (t === this.frameId) return;
1070
+ if (!this.effectsSequence.length) return void (this._mdf = !1);
1071
+ if (this.lock) return void this.setVValue(this.pv);
1072
+ this.lock = !0, this._mdf = !1;
1073
+ var s,
1074
+ e = this.kf ? this.pv : this.data.ks ? this.data.ks.k : this.data.pt.k,
1075
+ i = this.effectsSequence.length;
1076
+ for (s = 0; s < i; s += 1) {
1077
+ e = this.effectsSequence[s](t);
1078
+ }
1079
+ this.setVValue(e), this.lock = !1, this.frameId = t;
1080
+ };
1081
+ _proto8.addEffect = function addEffect(t) {
1082
+ this.effectsSequence.push(t), this.container.addDynamicProperty(this);
1083
+ };
1084
+ return ct;
1085
+ }();
1086
+ var dt = function (_ct) {
1087
+ _inheritsLoose(dt, _ct);
1088
+ function dt(t, s, e) {
1089
+ var _this7;
1090
+ _this7 = _ct.call(this) || this, _this7.propType = 'shape', _this7.comp = t.comp, _this7.container = t, _this7.elem = t, _this7.data = s, _this7.k = !1, _this7.kf = !1, _this7._mdf = !1;
1091
+ var i = 3 === e ? s.pt.k : s.ks.k;
1092
+ _this7.v = b.clone(i), _this7.pv = b.clone(_this7.v), _this7.localShapeCollection = q$1.newShapeCollection(), _this7.paths = _this7.localShapeCollection, _this7.paths.addShape(_this7.v), _this7.reset = _this7.resetShape, _this7.effectsSequence = [], _this7.getValue = _this7.processEffectsSequence;
1093
+ return _this7;
1094
+ }
1095
+ return dt;
1096
+ }(ct);
1097
+ var ut = function (_ct2) {
1098
+ _inheritsLoose(ut, _ct2);
1099
+ function ut(t, s, e) {
1100
+ var _this8;
1101
+ _this8 = _ct2.call(this) || this, _this8.propType = 'shape', _this8.comp = t.comp, _this8.elem = t, _this8.container = t, _this8.keyframes = 3 === e ? s.pt.k : s.ks.k, _this8.k = !0, _this8.kf = !0;
1102
+ var i = _this8.keyframes[0].s[0].i.length;
1103
+ _this8.v = b.newElement(), _this8.v.setPathData(_this8.keyframes[0].s[0].c, i), _this8.pv = b.clone(_this8.v), _this8.localShapeCollection = q$1.newShapeCollection(), _this8.paths = _this8.localShapeCollection, _this8.paths.addShape(_this8.v), _this8.lastFrame = -999999, _this8.reset = _this8.resetShape, _this8._caching = {
1104
+ lastFrame: -999999,
1105
+ lastIndex: 0
1106
+ }, _this8.effectsSequence = [_this8.interpolateShapeCurrentTime.bind(_assertThisInitialized(_this8))], _this8.getValue = _this8.processEffectsSequence, _this8._hasOutTypeExpression = !1, it.hasSupportExpression(s) && (_this8.expression = it.getExpression(s), _this8._hasOutTypeExpression = 'out' === _this8.expression.type);
1107
+ return _this8;
1108
+ }
1109
+ return ut;
1110
+ }(ct);
1111
+ var ft = function (_O$) {
1112
+ _inheritsLoose(ft, _O$);
1113
+ function ft(t, s) {
1114
+ var _this9;
1115
+ _this9 = _O$.call(this) || this, _this9.v = b.newElement(), _this9.v.setPathData(!0, 4), _this9.localShapeCollection = q$1.newShapeCollection(), _this9.paths = _this9.localShapeCollection, _this9.localShapeCollection.addShape(_this9.v), _this9.d = s.d, _this9.elem = t, _this9.comp = t.comp, _this9.frameId = -1, _this9.initDynamicPropertyContainer(t), _this9.p = pt.getProp(t, s.p, 1, 0, _assertThisInitialized(_this9)), _this9.s = pt.getProp(t, s.s, 1, 0, _assertThisInitialized(_this9)), _this9.dynamicProperties.length ? _this9.k = !0 : (_this9.k = !1, _this9.convertEllToPath());
1116
+ return _this9;
1117
+ }
1118
+ var _proto9 = ft.prototype;
1119
+ _proto9.reset = function reset() {
1120
+ this.paths = this.localShapeCollection;
1121
+ };
1122
+ _proto9.getValue = function getValue(t) {
1123
+ t !== this.frameId && (this.iterateDynamicProperties(t), this.frameId = t, this._mdf && this.convertEllToPath());
1124
+ };
1125
+ _proto9.convertEllToPath = function convertEllToPath() {
1126
+ var t = this.p.v[0],
1127
+ s = this.p.v[1],
1128
+ e = this.s.v[0] / 2,
1129
+ i = this.s.v[1] / 2,
1130
+ h = 3 !== this.d,
1131
+ r = this.v;
1132
+ r.v[0][0] = t, r.v[0][1] = s - i, r.v[1][0] = h ? t + e : t - e, r.v[1][1] = s, r.v[2][0] = t, r.v[2][1] = s + i, r.v[3][0] = h ? t - e : t + e, r.v[3][1] = s, r.i[0][0] = h ? t - e * gt : t + e * gt, r.i[0][1] = s - i, r.i[1][0] = h ? t + e : t - e, r.i[1][1] = s - i * gt, r.i[2][0] = h ? t + e * gt : t - e * gt, r.i[2][1] = s + i, r.i[3][0] = h ? t - e : t + e, r.i[3][1] = s + i * gt, r.o[0][0] = h ? t + e * gt : t - e * gt, r.o[0][1] = s - i, r.o[1][0] = h ? t + e : t - e, r.o[1][1] = s + i * gt, r.o[2][0] = h ? t - e * gt : t + e * gt, r.o[2][1] = s + i, r.o[3][0] = h ? t - e : t + e, r.o[3][1] = s - i * gt;
1133
+ };
1134
+ return ft;
1135
+ }(O$1);
1136
+ var mt = function (_O$2) {
1137
+ _inheritsLoose(mt, _O$2);
1138
+ function mt(t, s) {
1139
+ var _this10;
1140
+ _this10 = _O$2.call(this) || this, _this10.v = b.newElement(), _this10.v.setPathData(!0, 0), _this10.elem = t, _this10.comp = t.comp, _this10.data = s, _this10.frameId = -1, _this10.d = s.d, _this10.initDynamicPropertyContainer(t), 1 === s.sy ? (_this10.ir = pt.getProp(t, s.ir, 0, 0, _assertThisInitialized(_this10)), _this10.is = pt.getProp(t, s.is, 0, 0.01, _assertThisInitialized(_this10)), _this10.convertToPath = _this10.convertStarToPath) : _this10.convertToPath = _this10.convertPolygonToPath, _this10.pt = pt.getProp(t, s.pt, 0, 0, _assertThisInitialized(_this10)), _this10.p = pt.getProp(t, s.p, 1, 0, _assertThisInitialized(_this10)), _this10.r = pt.getProp(t, s.r, 0, U$1, _assertThisInitialized(_this10)), _this10.or = pt.getProp(t, s.or, 0, 0, _assertThisInitialized(_this10)), _this10.os = pt.getProp(t, s.os, 0, 0.01, _assertThisInitialized(_this10)), _this10.localShapeCollection = q$1.newShapeCollection(), _this10.localShapeCollection.addShape(_this10.v), _this10.paths = _this10.localShapeCollection, _this10.dynamicProperties.length ? _this10.k = !0 : (_this10.k = !1, _this10.convertToPath());
1141
+ return _this10;
1142
+ }
1143
+ var _proto10 = mt.prototype;
1144
+ _proto10.reset = function reset() {
1145
+ this.paths = this.localShapeCollection;
1146
+ };
1147
+ _proto10.getValue = function getValue(t) {
1148
+ t !== this.frameId && (this.frameId = t, this.iterateDynamicProperties(t), this._mdf && this.convertToPath());
1149
+ };
1150
+ _proto10.convertStarToPath = function convertStarToPath() {
1151
+ var t,
1152
+ s,
1153
+ e,
1154
+ i,
1155
+ h = 2 * Math.floor(this.pt.v),
1156
+ r = 2 * Math.PI / h,
1157
+ a = !0,
1158
+ n = this.or.v,
1159
+ o = this.ir.v,
1160
+ l = this.os.v,
1161
+ p = this.is.v,
1162
+ c = 2 * Math.PI * n / (2 * h),
1163
+ d = 2 * Math.PI * o / (2 * h),
1164
+ u = -Math.PI / 2;
1165
+ u += this.r.v;
1166
+ var f = 3 === this.data.d ? -1 : 1;
1167
+ for (this.v._length = 0, t = 0; t < h; t += 1) {
1168
+ s = a ? n : o, e = a ? l : p, i = a ? c : d;
1169
+ var _h8 = s * Math.cos(u),
1170
+ _m2 = s * Math.sin(u),
1171
+ _g = 0 === _h8 && 0 === _m2 ? 0 : _m2 / Math.sqrt(_h8 * _h8 + _m2 * _m2),
1172
+ _y = 0 === _h8 && 0 === _m2 ? 0 : -_h8 / Math.sqrt(_h8 * _h8 + _m2 * _m2);
1173
+ _h8 += +this.p.v[0], _m2 += +this.p.v[1], this.v.setTripleAt(_h8, _m2, _h8 - _g * i * e * f, _m2 - _y * i * e * f, _h8 + _g * i * e * f, _m2 + _y * i * e * f, t, !0), a = !a, u += r * f;
1174
+ }
1175
+ };
1176
+ _proto10.convertPolygonToPath = function convertPolygonToPath() {
1177
+ var t,
1178
+ s = Math.floor(this.pt.v),
1179
+ e = 2 * Math.PI / s,
1180
+ i = this.or.v,
1181
+ h = this.os.v,
1182
+ r = 2 * Math.PI * i / (4 * s),
1183
+ a = -Math.PI / 2,
1184
+ n = 3 === this.data.d ? -1 : 1;
1185
+ for (a += this.r.v, this.v._length = 0, t = 0; t < s; t += 1) {
1186
+ var _s7 = i * Math.cos(a),
1187
+ _o5 = i * Math.sin(a),
1188
+ _l3 = 0 === _s7 && 0 === _o5 ? 0 : _o5 / Math.sqrt(_s7 * _s7 + _o5 * _o5),
1189
+ _p3 = 0 === _s7 && 0 === _o5 ? 0 : -_s7 / Math.sqrt(_s7 * _s7 + _o5 * _o5);
1190
+ _s7 += +this.p.v[0], _o5 += +this.p.v[1], this.v.setTripleAt(_s7, _o5, _s7 - _l3 * r * h * n, _o5 - _p3 * r * h * n, _s7 + _l3 * r * h * n, _o5 + _p3 * r * h * n, t, !0), a += e * n;
1191
+ }
1192
+ this.paths.length = 0, this.paths[0] = this.v;
1193
+ };
1194
+ return mt;
1195
+ }(O$1);
1196
+ var gt = 0.5519;
1197
+ var yt = function (_O$3) {
1198
+ _inheritsLoose(yt, _O$3);
1199
+ function yt(t, s) {
1200
+ var _this11;
1201
+ _this11 = _O$3.call(this) || this, _this11.v = b.newElement(), _this11.v.c = !0, _this11.localShapeCollection = q$1.newShapeCollection(), _this11.localShapeCollection.addShape(_this11.v), _this11.paths = _this11.localShapeCollection, _this11.elem = t, _this11.comp = t.comp, _this11.frameId = -1, _this11.d = s.d, _this11.initDynamicPropertyContainer(t), _this11.p = pt.getProp(t, s.p, 1, 0, _assertThisInitialized(_this11)), _this11.s = pt.getProp(t, s.s, 1, 0, _assertThisInitialized(_this11)), _this11.r = pt.getProp(t, s.r, 0, 0, _assertThisInitialized(_this11)), _this11.dynamicProperties.length ? _this11.k = !0 : (_this11.k = !1, _this11.convertRectToPath());
1202
+ return _this11;
1203
+ }
1204
+ var _proto11 = yt.prototype;
1205
+ _proto11.reset = function reset() {
1206
+ this.paths = this.localShapeCollection;
1207
+ };
1208
+ _proto11.getValue = function getValue(t) {
1209
+ t !== this.frameId && (this.frameId = t, this.iterateDynamicProperties(t), this._mdf && this.convertRectToPath());
1210
+ };
1211
+ _proto11.convertRectToPath = function convertRectToPath() {
1212
+ var t = this.p.v[0],
1213
+ s = this.p.v[1],
1214
+ e = this.s.v[0] / 2,
1215
+ i = this.s.v[1] / 2,
1216
+ h = Math.min(e, i, this.r.v),
1217
+ r = h * (1 - 0.5519);
1218
+ this.v._length = 0, 2 === this.d || 1 === this.d ? (this.v.setTripleAt(t + e, s - i + h, t + e, s - i + h, t + e, s - i + r, 0, !0), this.v.setTripleAt(t + e, s + i - h, t + e, s + i - r, t + e, s + i - h, 1, !0), 0 !== h ? (this.v.setTripleAt(t + e - h, s + i, t + e - h, s + i, t + e - r, s + i, 2, !0), this.v.setTripleAt(t - e + h, s + i, t - e + r, s + i, t - e + h, s + i, 3, !0), this.v.setTripleAt(t - e, s + i - h, t - e, s + i - h, t - e, s + i - r, 4, !0), this.v.setTripleAt(t - e, s - i + h, t - e, s - i + r, t - e, s - i + h, 5, !0), this.v.setTripleAt(t - e + h, s - i, t - e + h, s - i, t - e + r, s - i, 6, !0), this.v.setTripleAt(t + e - h, s - i, t + e - r, s - i, t + e - h, s - i, 7, !0)) : (this.v.setTripleAt(t - e, s + i, t - e + r, s + i, t - e, s + i, 2), this.v.setTripleAt(t - e, s - i, t - e, s - i + r, t - e, s - i, 3))) : (this.v.setTripleAt(t + e, s - i + h, t + e, s - i + r, t + e, s - i + h, 0, !0), 0 !== h ? (this.v.setTripleAt(t + e - h, s - i, t + e - h, s - i, t + e - r, s - i, 1, !0), this.v.setTripleAt(t - e + h, s - i, t - e + r, s - i, t - e + h, s - i, 2, !0), this.v.setTripleAt(t - e, s - i + h, t - e, s - i + h, t - e, s - i + r, 3, !0), this.v.setTripleAt(t - e, s + i - h, t - e, s + i - r, t - e, s + i - h, 4, !0), this.v.setTripleAt(t - e + h, s + i, t - e + h, s + i, t - e + r, s + i, 5, !0), this.v.setTripleAt(t + e - h, s + i, t + e - r, s + i, t + e - h, s + i, 6, !0), this.v.setTripleAt(t + e, s + i - h, t + e, s + i - h, t + e, s + i - r, 7, !0)) : (this.v.setTripleAt(t - e, s - i, t - e + r, s - i, t - e, s - i, 1, !0), this.v.setTripleAt(t - e, s + i, t - e, s + i - r, t - e, s + i, 2, !0), this.v.setTripleAt(t + e, s + i, t + e - r, s + i, t + e, s + i, 3, !0)));
1219
+ };
1220
+ return yt;
1221
+ }(O$1);
1222
+ var vt = {
1223
+ getShapeProp: function getShapeProp(t, s, e) {
1224
+ var i;
1225
+ if (3 === e || 4 === e) {
1226
+ i = (3 === e ? s.pt : s.ks).k.length ? new ut(t, s, e) : new dt(t, s, e);
1227
+ } else 5 === e ? i = new yt(t, s) : 6 === e ? i = new ft(t, s) : 7 === e && (i = new mt(t, s));
1228
+ return i.k && t.addDynamicProperty(i), i;
1229
+ },
1230
+ getConstructorFunction: function getConstructorFunction() {
1231
+ return dt;
1232
+ },
1233
+ getKeyframedConstructorFunction: function getKeyframedConstructorFunction() {
1234
+ return ut;
1235
+ }
1236
+ };
1237
+ var _t = function (_O$4) {
1238
+ _inheritsLoose(_t, _O$4);
1239
+ function _t(t, s, e) {
1240
+ var _this12;
1241
+ _this12 = _O$4.call(this) || this, _this12.frameId = -1, _this12.elem = t, _this12.session = e, _this12.masksProperties = s || [], _this12.initDynamicPropertyContainer(t), _this12.viewData = D$1(_this12.masksProperties.length);
1242
+ var i = _this12.masksProperties.length;
1243
+ var h = !1;
1244
+ for (var _t13 = 0; _t13 < i; _t13++) {
1245
+ 'n' !== _this12.masksProperties[_t13].mode && (h = !0), _this12.viewData[_t13] = vt.getShapeProp(_assertThisInitialized(_this12), _this12.masksProperties[_t13], 3), _this12.viewData[_t13].inv = _this12.masksProperties[_t13].inv;
1246
+ }
1247
+ _this12.hasMasks = h;
1248
+ return _this12;
1249
+ }
1250
+ var _proto12 = _t.prototype;
1251
+ _proto12.getValue = function getValue(t) {
1252
+ t !== this.frameId && (this.iterateDynamicProperties(t), this.frameId = t);
1253
+ };
1254
+ return _t;
1255
+ }(O$1);
1256
+ var kt = function () {
1257
+ var t = Math.cos,
1258
+ s = Math.sin,
1259
+ e = Math.tan,
1260
+ i = Math.round;
1261
+ function h() {
1262
+ 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;
1263
+ }
1264
+ function r(e) {
1265
+ if (0 === e) return this;
1266
+ var i = t(e),
1267
+ h = s(e);
1268
+ return this._t(i, -h, 0, 0, h, i, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1269
+ }
1270
+ function a(e) {
1271
+ if (0 === e) return this;
1272
+ var i = t(e),
1273
+ h = s(e);
1274
+ return this._t(1, 0, 0, 0, 0, i, -h, 0, 0, h, i, 0, 0, 0, 0, 1);
1275
+ }
1276
+ function n(e) {
1277
+ if (0 === e) return this;
1278
+ var i = t(e),
1279
+ h = s(e);
1280
+ return this._t(i, 0, h, 0, 0, 1, 0, 0, -h, 0, i, 0, 0, 0, 0, 1);
1281
+ }
1282
+ function o(e) {
1283
+ if (0 === e) return this;
1284
+ var i = t(e),
1285
+ h = s(e);
1286
+ return this._t(i, -h, 0, 0, h, i, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1287
+ }
1288
+ function l(t, s) {
1289
+ return this._t(1, s, t, 1, 0, 0);
1290
+ }
1291
+ function p(t, s) {
1292
+ return this.shear(e(t), e(s));
1293
+ }
1294
+ function c(i, h) {
1295
+ var r = t(h),
1296
+ a = s(h);
1297
+ return this._t(r, a, 0, 0, -a, r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, e(i), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(r, -a, 0, 0, a, r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1298
+ }
1299
+ function d(t, s, e) {
1300
+ return e || 0 === e || (e = 1), 1 === t && 1 === s && 1 === e ? this : this._t(t, 0, 0, 0, 0, s, 0, 0, 0, 0, e, 0, 0, 0, 0, 1);
1301
+ }
1302
+ function u(t, s, e, i, h, r, a, n, o, l, p, c, d, u, f, m) {
1303
+ return this.props[0] = t, this.props[1] = s, this.props[2] = e, this.props[3] = i, this.props[4] = h, this.props[5] = r, this.props[6] = a, this.props[7] = n, this.props[8] = o, this.props[9] = l, this.props[10] = p, this.props[11] = c, this.props[12] = d, this.props[13] = u, this.props[14] = f, this.props[15] = m, this;
1304
+ }
1305
+ function f(t, s, e) {
1306
+ return e = e || 0, 0 !== t || 0 !== s || 0 !== e ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, t, s, e, 1) : this;
1307
+ }
1308
+ function m(t, s, e, i, h, r, a, n, o, l, p, c, d, u, f, m) {
1309
+ var g = this.props;
1310
+ if (1 === t && 0 === s && 0 === e && 0 === i && 0 === h && 1 === r && 0 === a && 0 === n && 0 === o && 0 === l && 1 === p && 0 === c) return g[12] = g[12] * t + g[15] * d, g[13] = g[13] * r + g[15] * u, g[14] = g[14] * p + g[15] * f, g[15] = g[15] * m, this._identityCalculated = !1, this;
1311
+ var y = g[0],
1312
+ v = g[1],
1313
+ _ = g[2],
1314
+ k = g[3],
1315
+ S = g[4],
1316
+ x = g[5],
1317
+ M = g[6],
1318
+ P = g[7],
1319
+ T = g[8],
1320
+ w = g[9],
1321
+ D = g[10],
1322
+ L = g[11],
1323
+ F = g[12],
1324
+ A = g[13],
1325
+ C = g[14],
1326
+ b = g[15];
1327
+ return g[0] = y * t + v * h + _ * o + k * d, g[1] = y * s + v * r + _ * l + k * u, g[2] = y * e + v * a + _ * p + k * f, g[3] = y * i + v * n + _ * c + k * m, g[4] = S * t + x * h + M * o + P * d, g[5] = S * s + x * r + M * l + P * u, g[6] = S * e + x * a + M * p + P * f, g[7] = S * i + x * n + M * c + P * m, g[8] = T * t + w * h + D * o + L * d, g[9] = T * s + w * r + D * l + L * u, g[10] = T * e + w * a + D * p + L * f, g[11] = T * i + w * n + D * c + L * m, g[12] = F * t + A * h + C * o + b * d, g[13] = F * s + A * r + C * l + b * u, g[14] = F * e + A * a + C * p + b * f, g[15] = F * i + A * n + C * c + b * m, this._identityCalculated = !1, this;
1328
+ }
1329
+ function g() {
1330
+ return this._identityCalculated || (this._identity = !(1 !== this.props[0] || 0 !== this.props[1] || 0 !== this.props[2] || 0 !== this.props[3] || 0 !== this.props[4] || 1 !== this.props[5] || 0 !== this.props[6] || 0 !== this.props[7] || 0 !== this.props[8] || 0 !== this.props[9] || 1 !== this.props[10] || 0 !== this.props[11] || 0 !== this.props[12] || 0 !== this.props[13] || 0 !== this.props[14] || 1 !== this.props[15]), this._identityCalculated = !0), this._identity;
1331
+ }
1332
+ function y(t) {
1333
+ for (var s = 0; s < 16;) {
1334
+ if (t.props[s] !== this.props[s]) return !1;
1335
+ s += 1;
1336
+ }
1337
+ return !0;
1338
+ }
1339
+ function v(t) {
1340
+ var s;
1341
+ for (s = 0; s < 16; s += 1) {
1342
+ t.props[s] = this.props[s];
1343
+ }
1344
+ }
1345
+ function _(t) {
1346
+ var s;
1347
+ for (s = 0; s < 16; s += 1) {
1348
+ this.props[s] = t[s];
1349
+ }
1350
+ }
1351
+ function k(t, s, e) {
1352
+ return {
1353
+ x: t * this.props[0] + s * this.props[4] + e * this.props[8] + this.props[12],
1354
+ y: t * this.props[1] + s * this.props[5] + e * this.props[9] + this.props[13],
1355
+ z: t * this.props[2] + s * this.props[6] + e * this.props[10] + this.props[14]
1356
+ };
1357
+ }
1358
+ function S(t, s, e) {
1359
+ return t * this.props[0] + s * this.props[4] + e * this.props[8] + this.props[12];
1360
+ }
1361
+ function x(t, s, e) {
1362
+ return t * this.props[1] + s * this.props[5] + e * this.props[9] + this.props[13];
1363
+ }
1364
+ function M(t, s, e) {
1365
+ return t * this.props[2] + s * this.props[6] + e * this.props[10] + this.props[14];
1366
+ }
1367
+ function P(t) {
1368
+ var s = this.props[0] * this.props[5] - this.props[1] * this.props[4],
1369
+ e = this.props[5] / s,
1370
+ i = -this.props[1] / s,
1371
+ h = -this.props[4] / s,
1372
+ r = this.props[0] / s,
1373
+ a = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / s,
1374
+ n = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / s;
1375
+ return [t[0] * e + t[1] * h + a, t[0] * i + t[1] * r + n, 0];
1376
+ }
1377
+ function T(t) {
1378
+ var s,
1379
+ e = t.length,
1380
+ i = [];
1381
+ for (s = 0; s < e; s += 1) {
1382
+ i[s] = P(t[s]);
1383
+ }
1384
+ return i;
1385
+ }
1386
+ function D(t, s, e) {
1387
+ var i = w('float32', 6);
1388
+ if (this.isIdentity()) i[0] = t[0], i[1] = t[1], i[2] = s[0], i[3] = s[1], i[4] = e[0], i[5] = e[1];else {
1389
+ var h = this.props[0],
1390
+ r = this.props[1],
1391
+ a = this.props[4],
1392
+ n = this.props[5],
1393
+ o = this.props[12],
1394
+ l = this.props[13];
1395
+ i[0] = t[0] * h + t[1] * a + o, i[1] = t[0] * r + t[1] * n + l, i[2] = s[0] * h + s[1] * a + o, i[3] = s[0] * r + s[1] * n + l, i[4] = e[0] * h + e[1] * a + o, i[5] = e[0] * r + e[1] * n + l;
1396
+ }
1397
+ return i;
1398
+ }
1399
+ function L(t, s, e) {
1400
+ return this.isIdentity() ? [t, s, e] : [t * this.props[0] + s * this.props[4] + e * this.props[8] + this.props[12], t * this.props[1] + s * this.props[5] + e * this.props[9] + this.props[13], t * this.props[2] + s * this.props[6] + e * this.props[10] + this.props[14]];
1401
+ }
1402
+ function F(t, s) {
1403
+ if (this.isIdentity()) return t + ',' + s;
1404
+ var e = this.props;
1405
+ return Math.round(100 * (t * e[0] + s * e[4] + e[12])) / 100 + ',' + Math.round(100 * (t * e[1] + s * e[5] + e[13])) / 100;
1406
+ }
1407
+ function A() {
1408
+ for (var t = 0, s = this.props, e = 'matrix3d('; t < 16;) {
1409
+ e += i(1e4 * s[t]) / 1e4, e += 15 === t ? ')' : ',', t += 1;
1410
+ }
1411
+ return e;
1412
+ }
1413
+ function C(t) {
1414
+ return t < 1e-6 && t > 0 || t > -1e-6 && t < 0 ? i(1e4 * t) / 1e4 : t;
1415
+ }
1416
+ function b() {
1417
+ var t = this.props;
1418
+ return 'matrix(' + C(t[0]) + ',' + C(t[1]) + ',' + C(t[4]) + ',' + C(t[5]) + ',' + C(t[12]) + ',' + C(t[13]) + ')';
1419
+ }
1420
+ return function () {
1421
+ this.reset = h, this.rotate = r, this.rotateX = a, this.rotateY = n, this.rotateZ = o, this.skew = p, this.skewFromAxis = c, this.shear = l, this.scale = d, this.setTransform = u, this.translate = f, this.transform = m, this.applyToPoint = k, this.applyToX = S, this.applyToY = x, this.applyToZ = M, this.applyToPointArray = L, this.applyToTriplePoints = D, this.applyToPointStringified = F, this.toCSS = A, this.to2dCSS = b, this.clone = v, this.cloneFromProps = _, this.equals = y, this.inversePoints = T, this.inversePoint = P, this._t = this.transform, this.isIdentity = g, this._identity = !0, this._identityCalculated = !1, this.props = w('float32', 16), this.reset();
1422
+ };
1423
+ }();
1424
+ var St = function () {
1425
+ function St() {
1426
+ this.sequences = {}, this.sequenceList = [], this.transform_key_count = 0;
1427
+ }
1428
+ var _proto13 = St.prototype;
1429
+ _proto13.addTransformSequence = function addTransformSequence(t) {
1430
+ var s = t.length;
1431
+ var e = '_';
1432
+ for (var _i8 = 0; _i8 < s; _i8 += 1) {
1433
+ e += t[_i8].transform.key + '_';
1434
+ }
1435
+ var i = this.sequences[e];
1436
+ return i || (i = {
1437
+ transforms: [].concat(t),
1438
+ finalTransform: new kt(),
1439
+ _mdf: !1
1440
+ }, this.sequences[e] = i, this.sequenceList.push(i)), i;
1441
+ };
1442
+ _proto13.processSequence = function processSequence(t, s) {
1443
+ var e = 0,
1444
+ i = s;
1445
+ var h = t.transforms.length;
1446
+ for (; e < h && !s;) {
1447
+ if (t.transforms[e].transform.mProps._mdf) {
1448
+ i = !0;
1449
+ break;
1450
+ }
1451
+ e += 1;
1452
+ }
1453
+ if (i) {
1454
+ var _s8;
1455
+ for (t.finalTransform.reset(), e = h - 1; e >= 0; e -= 1) {
1456
+ _s8 = t.transforms[e].transform.mProps.v.props, t.finalTransform.transform(_s8[0], _s8[1], _s8[2], _s8[3], _s8[4], _s8[5], _s8[6], _s8[7], _s8[8], _s8[9], _s8[10], _s8[11], _s8[12], _s8[13], _s8[14], _s8[15]);
1457
+ }
1458
+ }
1459
+ t._mdf = i;
1460
+ };
1461
+ _proto13.processSequences = function processSequences(t) {
1462
+ var s = this.sequenceList.length;
1463
+ for (var _e13 = 0; _e13 < s; _e13 += 1) {
1464
+ this.processSequence(this.sequenceList[_e13], t);
1465
+ }
1466
+ };
1467
+ _proto13.getNewKey = function getNewKey() {
1468
+ return '_' + this.transform_key_count++;
1469
+ };
1470
+ return St;
1471
+ }();
1472
+ var xt = function xt(t, s) {
1473
+ this.elem = t, this.pos = s;
1474
+ };
1475
+ var Mt = function () {
1476
+ function Mt(t, s, e, i) {
1477
+ this.styledShapes = [], this.tr = [0, 0, 0, 0, 0, 0];
1478
+ var h = 4;
1479
+ 'rc' == s.ty ? h = 5 : 'el' == s.ty ? h = 6 : 'sr' == s.ty && (h = 7), this.sh = vt.getShapeProp(t, s, h);
1480
+ var r = e.length;
1481
+ for (var _t14 = 0; _t14 < r; _t14 += 1) {
1482
+ if (!e[_t14].closed) {
1483
+ var _s9 = {
1484
+ transforms: i.addTransformSequence(e[_t14].transforms),
1485
+ trNodes: []
1486
+ };
1487
+ this.styledShapes.push(_s9), e[_t14].elements.push(_s9);
1488
+ }
1489
+ }
1490
+ }
1491
+ var _proto14 = Mt.prototype;
1492
+ _proto14.setAsAnimated = function setAsAnimated() {
1493
+ this._isAnimated = !0;
1494
+ };
1495
+ return Mt;
1496
+ }();
1497
+ var Pt = {};
1498
+ function Tt(t) {
1499
+ return Pt[t];
1500
+ }
1501
+ var wt = {
1502
+ Type: {
1503
+ Null: 'Null',
1504
+ Path: 'Path',
1505
+ Shape: 'Shape',
1506
+ Solid: 'Solid',
1507
+ Sprite: 'Sprite',
1508
+ Component: 'Component',
1509
+ Container: 'Container'
1510
+ },
1511
+ registerDisplayByType: function registerDisplayByType(t, s) {
1512
+ Pt[t] = s;
1513
+ }
1514
+ };
1515
+ var Dt = function () {
1516
+ function Dt(t, s, e) {
1517
+ this.elem = t, this.data = s, this.type = s.ty, this.preTransforms = e, this.transforms = [], this.elements = [], this.closed = !0 === s.hd, this.displayType = wt.Type.Path;
1518
+ var i = Tt(this.displayType);
1519
+ this.display = new i(this, s), this.elem.innerDisplay ? this.elem.innerDisplay.addChild(this.display) : this.elem.display.addChild(this.display);
1520
+ }
1521
+ var _proto15 = Dt.prototype;
1522
+ _proto15.updateGrahpics = function updateGrahpics() {
1523
+ this.display.updateLottieGrahpics(this);
1524
+ };
1525
+ return Dt;
1526
+ }();
1527
+ var Lt = function (_O$5) {
1528
+ _inheritsLoose(Lt, _O$5);
1529
+ function Lt(t, s, e) {
1530
+ var _this13;
1531
+ if (_this13 = _O$5.call(this) || this, _this13.elem = t, _this13.frameId = -1, _this13.propType = 'transform', _this13.data = s, _this13.v = new kt(), _this13.pre = new kt(), _this13.appliedTransformations = 0, _this13.initDynamicPropertyContainer(e || t), s.p && s.p.s ? (_this13.px = pt.getProp(t, s.p.x, 0, 0, _assertThisInitialized(_this13)), _this13.py = pt.getProp(t, s.p.y, 0, 0, _assertThisInitialized(_this13)), s.p.z && (_this13.pz = pt.getProp(t, s.p.z, 0, 0, _assertThisInitialized(_this13)))) : _this13.p = pt.getProp(t, s.p || {
1532
+ k: [0, 0, 0]
1533
+ }, 1, 0, _assertThisInitialized(_this13)), s.rx) {
1534
+ if (_this13.rx = pt.getProp(t, s.rx, 0, U$1, _assertThisInitialized(_this13)), _this13.ry = pt.getProp(t, s.ry, 0, U$1, _assertThisInitialized(_this13)), _this13.rz = pt.getProp(t, s.rz, 0, U$1, _assertThisInitialized(_this13)), s.or.k[0].ti) {
1535
+ var _t15,
1536
+ _e14 = s.or.k.length;
1537
+ for (_t15 = 0; _t15 < _e14; _t15 += 1) {
1538
+ s.or.k[_t15].to = s.or.k[_t15].ti = null;
1539
+ }
1540
+ }
1541
+ _this13.or = pt.getProp(t, s.or, 1, U$1, _assertThisInitialized(_this13)), _this13.or.sh = !0;
1542
+ } else _this13.r = pt.getProp(t, s.r || {
1543
+ k: 0
1544
+ }, 0, U$1, _assertThisInitialized(_this13));
1545
+ s.sk && (_this13.sk = pt.getProp(t, s.sk, 0, U$1, _assertThisInitialized(_this13)), _this13.sa = pt.getProp(t, s.sa, 0, U$1, _assertThisInitialized(_this13))), _this13.a = pt.getProp(t, s.a || {
1546
+ k: [0, 0, 0]
1547
+ }, 1, 0, _assertThisInitialized(_this13)), _this13.s = pt.getProp(t, s.s || {
1548
+ k: [100, 100, 100]
1549
+ }, 1, 0.01, _assertThisInitialized(_this13)), s.o ? _this13.o = pt.getProp(t, s.o, 0, 0.01, t) : _this13.o = {
1550
+ _mdf: !1,
1551
+ v: 1
1552
+ }, _this13._isDirty = !0, _this13.dynamicProperties.length || _this13.getValue(-999999, !0);
1553
+ return _assertThisInitialized(_this13);
1554
+ }
1555
+ var _proto16 = Lt.prototype;
1556
+ _proto16.getValue = function getValue(t, s) {
1557
+ if (t !== this.frameId) {
1558
+ if (this._isDirty && (this.precalculateMatrix(), this._isDirty = !1), this.iterateDynamicProperties(), this._mdf || s) {
1559
+ 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) {
1560
+ var _t16, _s10;
1561
+ var _e15 = this.elem.globalData.frameRate;
1562
+ if (this.p && this.p.keyframes && this.p.getValueAtTime) this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (_t16 = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / _e15, 0), _s10 = this.p.getValueAtTime(this.p.keyframes[0].t / _e15, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (_t16 = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / _e15, 0), _s10 = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / _e15, 0)) : (_t16 = this.p.pv, _s10 = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / _e15, this.p.offsetTime));else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
1563
+ _t16 = [], _s10 = [];
1564
+ var _i9 = this.px,
1565
+ _h9 = this.py;
1566
+ _i9._caching.lastFrame + _i9.offsetTime <= _i9.keyframes[0].t ? (_t16[0] = _i9.getValueAtTime((_i9.keyframes[0].t + 0.01) / _e15, 0), _t16[1] = _h9.getValueAtTime((_h9.keyframes[0].t + 0.01) / _e15, 0), _s10[0] = _i9.getValueAtTime(_i9.keyframes[0].t / _e15, 0), _s10[1] = _h9.getValueAtTime(_h9.keyframes[0].t / _e15, 0)) : _i9._caching.lastFrame + _i9.offsetTime >= _i9.keyframes[_i9.keyframes.length - 1].t ? (_t16[0] = _i9.getValueAtTime(_i9.keyframes[_i9.keyframes.length - 1].t / _e15, 0), _t16[1] = _h9.getValueAtTime(_h9.keyframes[_h9.keyframes.length - 1].t / _e15, 0), _s10[0] = _i9.getValueAtTime((_i9.keyframes[_i9.keyframes.length - 1].t - 0.01) / _e15, 0), _s10[1] = _h9.getValueAtTime((_h9.keyframes[_h9.keyframes.length - 1].t - 0.01) / _e15, 0)) : (_t16 = [_i9.pv, _h9.pv], _s10[0] = _i9.getValueAtTime((_i9._caching.lastFrame + _i9.offsetTime - 0.01) / _e15, _i9.offsetTime), _s10[1] = _h9.getValueAtTime((_h9._caching.lastFrame + _h9.offsetTime - 0.01) / _e15, _h9.offsetTime));
1567
+ } else _t16 = _s10 = Z$1;
1568
+ this.v.rotate(-Math.atan2(_t16[1] - _s10[1], _t16[0] - _s10[0]));
1569
+ }
1570
+ 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]);
1571
+ }
1572
+ this.frameId = t;
1573
+ }
1574
+ };
1575
+ _proto16.precalculateMatrix = function precalculateMatrix() {
1576
+ if (!this.a.k && (this.pre.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations = 1, !this.s.effectsSequence.length)) {
1577
+ if (this.pre.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.appliedTransformations = 2, this.sk) {
1578
+ if (this.sk.effectsSequence.length || this.sa.effectsSequence.length) return;
1579
+ this.pre.skewFromAxis(-this.sk.v, this.sa.v), this.appliedTransformations = 3;
1580
+ }
1581
+ if (this.r) {
1582
+ if (this.r.effectsSequence.length) return;
1583
+ this.pre.rotate(-this.r.v), this.appliedTransformations = 4;
1584
+ } else 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);
1585
+ }
1586
+ };
1587
+ _proto16.applyToMatrix = function applyToMatrix(t) {
1588
+ var s = this._mdf;
1589
+ this.iterateDynamicProperties(), this._mdf = this._mdf || s, this.a && t.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.s && t.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && t.skewFromAxis(-this.sk.v, this.sa.v), this.r ? t.rotate(-this.r.v) : t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.data.p.s ? this.data.p.z ? t.translate(this.px.v, this.py.v, -this.pz.v) : t.translate(this.px.v, this.py.v, 0) : t.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
1590
+ };
1591
+ return Lt;
1592
+ }(O$1);
1593
+ function Ft(t, s, e) {
1594
+ return new Lt(t, s, e);
1595
+ }
1596
+ var At = function (_O$6) {
1597
+ _inheritsLoose(At, _O$6);
1598
+ function At() {
1599
+ return _O$6.apply(this, arguments) || this;
1600
+ }
1601
+ var _proto17 = At.prototype;
1602
+ _proto17.initModifierProperties = function initModifierProperties() {};
1603
+ _proto17.addShapeToModifier = function addShapeToModifier() {};
1604
+ _proto17.addShape = function addShape(t) {
1605
+ if (!this.closed) {
1606
+ t.sh.container.addDynamicProperty(t.sh);
1607
+ var _s11 = {
1608
+ shape: t.sh,
1609
+ data: t,
1610
+ localShapeCollection: q$1.newShapeCollection()
1611
+ };
1612
+ this.shapes.push(_s11), this.addShapeToModifier(_s11), this._isAnimated && t.setAsAnimated();
1613
+ }
1614
+ };
1615
+ _proto17.init = function init(t, s) {
1616
+ this.shapes = [], this.elem = t, this.initDynamicPropertyContainer(t), this.initModifierProperties(t, s), this.frameId = -999999, this.closed = !1, this.k = !1, this.dynamicProperties.length ? this.k = !0 : this.getValue(!0);
1617
+ };
1618
+ _proto17.processKeys = function processKeys(t) {
1619
+ t !== this.frameId && (this.frameId = t, this.iterateDynamicProperties(t));
1620
+ };
1621
+ return At;
1622
+ }(O$1);
1623
+ var Ct = {};
1624
+ function bt(t, s) {
1625
+ Ct[t] || (Ct[t] = s);
1626
+ }
1627
+ bt('tm', function (_At) {
1628
+ _inheritsLoose(_class, _At);
1629
+ function _class() {
1630
+ return _At.apply(this, arguments) || this;
1631
+ }
1632
+ var _proto18 = _class.prototype;
1633
+ _proto18.initModifierProperties = function initModifierProperties(t, s) {
1634
+ this.s = pt.getProp(t, s.s, 0, 0.01, this), this.e = pt.getProp(t, s.e, 0, 0.01, this), this.o = pt.getProp(t, s.o, 0, 0, this), this.sValue = 0, this.eValue = 0, this.getValue = this.processKeys, this.m = s.m, this._isAnimated = !!this.s.effectsSequence.length || !!this.e.effectsSequence.length || !!this.o.effectsSequence.length;
1635
+ };
1636
+ _proto18.addShapeToModifier = function addShapeToModifier(t) {
1637
+ t.pathsData = [];
1638
+ };
1639
+ _proto18.calculateShapeEdges = function calculateShapeEdges(t, s, e, i, h) {
1640
+ var r = [];
1641
+ s <= 1 ? r.push({
1642
+ s: t,
1643
+ e: s
1644
+ }) : t >= 1 ? r.push({
1645
+ s: t - 1,
1646
+ e: s - 1
1647
+ }) : (r.push({
1648
+ s: t,
1649
+ e: 1
1650
+ }), r.push({
1651
+ s: 0,
1652
+ e: s - 1
1653
+ }));
1654
+ var a,
1655
+ n,
1656
+ o = [],
1657
+ l = r.length;
1658
+ for (a = 0; a < l; a += 1) {
1659
+ if (n = r[a], n.e * h < i || n.s * h > i + e) ;else {
1660
+ var _t17 = void 0,
1661
+ _s12 = void 0;
1662
+ _t17 = n.s * h <= i ? 0 : (n.s * h - i) / e, _s12 = n.e * h >= i + e ? 1 : (n.e * h - i) / e, o.push([_t17, _s12]);
1663
+ }
1664
+ }
1665
+ return o.length || o.push([0, 0]), o;
1666
+ };
1667
+ _proto18.releasePathsData = function releasePathsData(t) {
1668
+ var s = t.length;
1669
+ for (var _e16 = 0; _e16 < s; _e16 += 1) {
1670
+ Y$1.release(t[_e16]);
1671
+ }
1672
+ return t.length = 0, t;
1673
+ };
1674
+ _proto18.processShapes = function processShapes(t) {
1675
+ var s, e, i, h;
1676
+ if (this._mdf || t) {
1677
+ var _t18 = this.o.v % 360 / 360;
1678
+ if (_t18 < 0 && (_t18 += 1), s = (this.s.v > 1 ? 1 : this.s.v < 0 ? 0 : this.s.v) + _t18, e = (this.e.v > 1 ? 1 : this.e.v < 0 ? 0 : this.e.v) + _t18, s > e) {
1679
+ var _t19 = s;
1680
+ s = e, e = _t19;
1681
+ }
1682
+ s = 1e-4 * Math.round(1e4 * s), e = 1e-4 * Math.round(1e4 * e), this.sValue = s, this.eValue = e;
1683
+ } else s = this.sValue, e = this.eValue;
1684
+ var r,
1685
+ a,
1686
+ n,
1687
+ o,
1688
+ l,
1689
+ p = this.shapes.length,
1690
+ c = 0;
1691
+ if (e === s) for (h = 0; h < p; h += 1) {
1692
+ this.shapes[h].localShapeCollection.releaseShapes(), this.shapes[h].shape._mdf = !0, this.shapes[h].shape.paths = this.shapes[h].localShapeCollection, this._mdf && (this.shapes[h].pathsData.length = 0);
1693
+ } else if (1 === e && 0 === s || 0 === e && 1 === s) {
1694
+ if (this._mdf) for (h = 0; h < p; h += 1) {
1695
+ this.shapes[h].pathsData.length = 0, this.shapes[h].shape._mdf = !0;
1696
+ }
1697
+ } else {
1698
+ var _d3,
1699
+ _u2,
1700
+ _f = [];
1701
+ for (h = 0; h < p; h += 1) {
1702
+ if (_d3 = this.shapes[h], _d3.shape._mdf || this._mdf || t || 2 === this.m) {
1703
+ if (i = _d3.shape.paths, a = i._length, l = 0, !_d3.shape._mdf && _d3.pathsData.length) l = _d3.totalShapeLength;else {
1704
+ for (n = this.releasePathsData(_d3.pathsData), r = 0; r < a; r += 1) {
1705
+ o = H$1.getSegmentsLength(i.shapes[r]), n.push(o), l += o.totalLength;
1706
+ }
1707
+ _d3.totalShapeLength = l, _d3.pathsData = n;
1708
+ }
1709
+ c += l, _d3.shape._mdf = !0;
1710
+ } else _d3.shape.paths = _d3.localShapeCollection;
1711
+ }
1712
+ var _m3,
1713
+ _g2 = s,
1714
+ _y2 = e,
1715
+ _v = 0;
1716
+ for (h = p - 1; h >= 0; h -= 1) {
1717
+ if (_d3 = this.shapes[h], _d3.shape._mdf) {
1718
+ for (_u2 = _d3.localShapeCollection, _u2.releaseShapes(), 2 === this.m && p > 1 ? (_m3 = this.calculateShapeEdges(s, e, _d3.totalShapeLength, _v, c), _v += _d3.totalShapeLength) : _m3 = [[_g2, _y2]], a = _m3.length, r = 0; r < a; r += 1) {
1719
+ _g2 = _m3[r][0], _y2 = _m3[r][1], _f.length = 0, _y2 <= 1 ? _f.push({
1720
+ s: _d3.totalShapeLength * _g2,
1721
+ e: _d3.totalShapeLength * _y2
1722
+ }) : _g2 >= 1 ? _f.push({
1723
+ s: _d3.totalShapeLength * (_g2 - 1),
1724
+ e: _d3.totalShapeLength * (_y2 - 1)
1725
+ }) : (_f.push({
1726
+ s: _d3.totalShapeLength * _g2,
1727
+ e: _d3.totalShapeLength
1728
+ }), _f.push({
1729
+ s: 0,
1730
+ e: _d3.totalShapeLength * (_y2 - 1)
1731
+ }));
1732
+ var _t20 = this.addShapes(_d3, _f[0]);
1733
+ if (_f[0].s !== _f[0].e) {
1734
+ if (_f.length > 1) {
1735
+ if (_d3.shape.paths.shapes[_d3.shape.paths._length - 1].c) {
1736
+ var _s13 = _t20.pop();
1737
+ this.addPaths(_t20, _u2), _t20 = this.addShapes(_d3, _f[1], _s13);
1738
+ } else this.addPaths(_t20, _u2), _t20 = this.addShapes(_d3, _f[1]);
1739
+ }
1740
+ this.addPaths(_t20, _u2);
1741
+ }
1742
+ }
1743
+ _d3.shape.paths = _u2;
1744
+ }
1745
+ }
1746
+ }
1747
+ };
1748
+ _proto18.addPaths = function addPaths(t, s) {
1749
+ var e = t.length;
1750
+ for (var _i10 = 0; _i10 < e; _i10 += 1) {
1751
+ s.addShape(t[_i10]);
1752
+ }
1753
+ };
1754
+ _proto18.addSegment = function addSegment(t, s, e, i, h, r, a) {
1755
+ h.setXYAt(s[0], s[1], 'o', r), h.setXYAt(e[0], e[1], 'i', r + 1), a && h.setXYAt(t[0], t[1], 'v', r), h.setXYAt(i[0], i[1], 'v', r + 1);
1756
+ };
1757
+ _proto18.addSegmentFromArray = function addSegmentFromArray(t, s, e, i) {
1758
+ s.setXYAt(t[1], t[5], 'o', e), s.setXYAt(t[2], t[6], 'i', e + 1), i && s.setXYAt(t[0], t[4], 'v', e), s.setXYAt(t[3], t[7], 'v', e + 1);
1759
+ };
1760
+ _proto18.addShapes = function addShapes(t, s, e) {
1761
+ var i,
1762
+ h,
1763
+ r,
1764
+ a,
1765
+ n,
1766
+ o,
1767
+ l,
1768
+ p,
1769
+ c = t.pathsData,
1770
+ d = t.shape.paths.shapes,
1771
+ u = t.shape.paths._length,
1772
+ f = 0,
1773
+ m = [],
1774
+ g = !0;
1775
+ for (e ? (n = e._length, p = e._length) : (e = b.newElement(), n = 0, p = 0), m.push(e), i = 0; i < u; i += 1) {
1776
+ for (o = c[i].lengths, e.c = d[i].c, r = d[i].c ? o.length : o.length + 1, h = 1; h < r; h += 1) {
1777
+ if (a = o[h - 1], f + a.addedLength < s.s) f += a.addedLength, e.c = !1;else {
1778
+ if (f > s.e) {
1779
+ e.c = !1;
1780
+ break;
1781
+ }
1782
+ s.s <= f && s.e >= f + a.addedLength ? (this.addSegment(d[i].v[h - 1], d[i].o[h - 1], d[i].i[h], d[i].v[h], e, n, g), g = !1) : (l = H$1.getNewSegment(d[i].v[h - 1], d[i].v[h], d[i].o[h - 1], d[i].i[h], (s.s - f) / a.addedLength, (s.e - f) / a.addedLength, o[h - 1]), this.addSegmentFromArray(l, e, n, g), g = !1, e.c = !1), f += a.addedLength, n += 1;
1783
+ }
1784
+ }
1785
+ if (d[i].c && o.length) {
1786
+ if (a = o[h - 1], f <= s.e) {
1787
+ var _t21 = o[h - 1].addedLength;
1788
+ s.s <= f && s.e >= f + _t21 ? (this.addSegment(d[i].v[h - 1], d[i].o[h - 1], d[i].i[0], d[i].v[0], e, n, g), g = !1) : (l = H$1.getNewSegment(d[i].v[h - 1], d[i].v[0], d[i].o[h - 1], d[i].i[0], (s.s - f) / _t21, (s.e - f) / _t21, o[h - 1]), this.addSegmentFromArray(l, e, n, g), g = !1, e.c = !1);
1789
+ } else e.c = !1;
1790
+ f += a.addedLength, n += 1;
1791
+ }
1792
+ if (e._length && (e.setXYAt(e.v[p][0], e.v[p][1], 'i', p), e.setXYAt(e.v[e._length - 1][0], e.v[e._length - 1][1], 'o', e._length - 1)), f > s.e) break;
1793
+ i < u - 1 && (e = b.newElement(), g = !0, m.push(e), n = 0);
1794
+ }
1795
+ return m;
1796
+ };
1797
+ return _class;
1798
+ }(At)), bt('rd', function (_At2) {
1799
+ _inheritsLoose(_class2, _At2);
1800
+ function _class2() {
1801
+ return _At2.apply(this, arguments) || this;
1802
+ }
1803
+ var _proto19 = _class2.prototype;
1804
+ _proto19.initModifierProperties = function initModifierProperties(t, s) {
1805
+ this.getValue = this.processKeys, this.rd = pt.getProp(t, s.r, 0, null, this), this._isAnimated = !!this.rd.effectsSequence.length;
1806
+ };
1807
+ _proto19.processPath = function processPath(t, s) {
1808
+ var e = b.newElement();
1809
+ var i;
1810
+ e.c = t.c;
1811
+ var h,
1812
+ r,
1813
+ a,
1814
+ n,
1815
+ o,
1816
+ l,
1817
+ p,
1818
+ c,
1819
+ d,
1820
+ u,
1821
+ f,
1822
+ m,
1823
+ g = t._length,
1824
+ y = 0;
1825
+ for (i = 0; i < g; i += 1) {
1826
+ h = t.v[i], a = t.o[i], r = t.i[i], h[0] === a[0] && h[1] === a[1] && h[0] === r[0] && h[1] === r[1] ? 0 !== i && i !== g - 1 || t.c ? (n = 0 === i ? t.v[g - 1] : t.v[i - 1], o = Math.sqrt(Math.pow(h[0] - n[0], 2) + Math.pow(h[1] - n[1], 2)), l = o ? Math.min(o / 2, s) / o : 0, p = f = h[0] + (n[0] - h[0]) * l, c = m = h[1] - (h[1] - n[1]) * l, d = p - 0.5519 * (p - h[0]), u = c - 0.5519 * (c - h[1]), e.setTripleAt(p, c, d, u, f, m, y), y += 1, n = i === g - 1 ? t.v[0] : t.v[i + 1], o = Math.sqrt(Math.pow(h[0] - n[0], 2) + Math.pow(h[1] - n[1], 2)), l = o ? Math.min(o / 2, s) / o : 0, p = d = h[0] + (n[0] - h[0]) * l, c = u = h[1] + (n[1] - h[1]) * l, f = p - 0.5519 * (p - h[0]), m = c - 0.5519 * (c - h[1]), e.setTripleAt(p, c, d, u, f, m, y), y += 1) : (e.setTripleAt(h[0], h[1], a[0], a[1], r[0], r[1], y), y += 1) : (e.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], y), y += 1);
1827
+ }
1828
+ return e;
1829
+ };
1830
+ _proto19.processShapes = function processShapes(t) {
1831
+ var s,
1832
+ e,
1833
+ i,
1834
+ h,
1835
+ r = this.shapes.length,
1836
+ a = this.rd.v;
1837
+ if (0 !== a) {
1838
+ var _n5, _o6;
1839
+ for (e = 0; e < r; e += 1) {
1840
+ if (_n5 = this.shapes[e], _o6 = _n5.localShapeCollection, _n5.shape._mdf || this._mdf || t) for (_o6.releaseShapes(), _n5.shape._mdf = !0, s = _n5.shape.paths.shapes, h = _n5.shape.paths._length, i = 0; i < h; i += 1) {
1841
+ _o6.addShape(this.processPath(s[i], a));
1842
+ }
1843
+ _n5.shape.paths = _n5.localShapeCollection;
1844
+ }
1845
+ }
1846
+ this.dynamicProperties.length || (this._mdf = !1);
1847
+ };
1848
+ return _class2;
1849
+ }(At)), bt('rp', function (_At3) {
1850
+ _inheritsLoose(_class3, _At3);
1851
+ function _class3() {
1852
+ return _At3.apply(this, arguments) || this;
1853
+ }
1854
+ var _proto20 = _class3.prototype;
1855
+ _proto20.initModifierProperties = function initModifierProperties(t, s) {
1856
+ this.getValue = this.processKeys, this.c = pt.getProp(t, s.c, 0, null, this), this.o = pt.getProp(t, s.o, 0, null, this), this.tr = Ft(t, s.tr, this), this.so = pt.getProp(t, s.tr.so, 0, 0.01, this), this.eo = pt.getProp(t, s.tr.eo, 0, 0.01, this), this.data = s, this.dynamicProperties.length || this.getValue(!0), this._isAnimated = !!this.dynamicProperties.length, this.pMatrix = new kt(), this.rMatrix = new kt(), this.sMatrix = new kt(), this.tMatrix = new kt(), this.matrix = new kt();
1857
+ };
1858
+ _proto20.applyTransforms = function applyTransforms(t, s, e, i, h, r) {
1859
+ var a = r ? -1 : 1,
1860
+ n = i.s.v[0] + (1 - i.s.v[0]) * (1 - h),
1861
+ o = i.s.v[1] + (1 - i.s.v[1]) * (1 - h);
1862
+ t.translate(i.p.v[0] * a * h, i.p.v[1] * a * h, i.p.v[2]), s.translate(-i.a.v[0], -i.a.v[1], i.a.v[2]), s.rotate(-i.r.v * a * h), s.translate(i.a.v[0], i.a.v[1], i.a.v[2]), e.translate(-i.a.v[0], -i.a.v[1], i.a.v[2]), e.scale(r ? 1 / n : n, r ? 1 / o : o), e.translate(i.a.v[0], i.a.v[1], i.a.v[2]);
1863
+ };
1864
+ _proto20.init = function init(t, s, e, i) {
1865
+ for (this.elem = t, this.arr = s, this.pos = e, this.elemsData = i, this._currentCopies = 0, this._elements = [], this._groups = [], this.frameId = -1, this.initDynamicPropertyContainer(t), this.initModifierProperties(t, s[e]); e > 0;) {
1866
+ e -= 1, this._elements.unshift(s[e]);
1867
+ }
1868
+ this.dynamicProperties.length ? this.k = !0 : this.getValue(!0);
1869
+ };
1870
+ _proto20.resetElements = function resetElements(t) {
1871
+ var s = t.length;
1872
+ for (var _e17 = 0; _e17 < s; _e17 += 1) {
1873
+ t[_e17]._processed = !1, 'gr' === t[_e17].ty && this.resetElements(t[_e17].it);
1874
+ }
1875
+ };
1876
+ _proto20.cloneElements = function cloneElements(t) {
1877
+ var s = JSON.parse(JSON.stringify(t));
1878
+ return this.resetElements(s), s;
1879
+ };
1880
+ _proto20.changeGroupRender = function changeGroupRender(t, s) {
1881
+ var e = t.length;
1882
+ for (var _i11 = 0; _i11 < e; _i11 += 1) {
1883
+ t[_i11]._render = s, 'gr' === t[_i11].ty && this.changeGroupRender(t[_i11].it, s);
1884
+ }
1885
+ };
1886
+ _proto20.processShapes = function processShapes(t) {
1887
+ if (this._mdf || t) {
1888
+ var _t22 = Math.ceil(this.c.v);
1889
+ if (this._groups.length < _t22) {
1890
+ for (; this._groups.length < _t22;) {
1891
+ var _t23 = {
1892
+ it: this.cloneElements(this._elements),
1893
+ ty: 'gr'
1894
+ };
1895
+ _t23.it.push({
1896
+ a: {
1897
+ a: 0,
1898
+ ix: 1,
1899
+ k: [0, 0]
1900
+ },
1901
+ nm: 'Transform',
1902
+ o: {
1903
+ a: 0,
1904
+ ix: 7,
1905
+ k: 100
1906
+ },
1907
+ p: {
1908
+ a: 0,
1909
+ ix: 2,
1910
+ k: [0, 0]
1911
+ },
1912
+ r: {
1913
+ a: 1,
1914
+ ix: 6,
1915
+ k: [{
1916
+ s: 0,
1917
+ e: 0,
1918
+ t: 0
1919
+ }, {
1920
+ s: 0,
1921
+ e: 0,
1922
+ t: 1
1923
+ }]
1924
+ },
1925
+ s: {
1926
+ a: 0,
1927
+ ix: 3,
1928
+ k: [100, 100]
1929
+ },
1930
+ sa: {
1931
+ a: 0,
1932
+ ix: 5,
1933
+ k: 0
1934
+ },
1935
+ sk: {
1936
+ a: 0,
1937
+ ix: 4,
1938
+ k: 0
1939
+ },
1940
+ ty: 'tr'
1941
+ }), this.arr.splice(0, 0, _t23), this._groups.splice(0, 0, _t23), this._currentCopies += 1;
1942
+ }
1943
+ this.elem.reloadShapes();
1944
+ }
1945
+ var _s14,
1946
+ _e18,
1947
+ _i12 = 0;
1948
+ for (_s14 = 0; _s14 <= this._groups.length - 1; _s14 += 1) {
1949
+ _e18 = _i12 < _t22, this._groups[_s14]._render = _e18, this.changeGroupRender(this._groups[_s14].it, _e18), _i12 += 1;
1950
+ }
1951
+ this._currentCopies = _t22;
1952
+ var _h10 = this.o.v,
1953
+ _r5 = _h10 % 1,
1954
+ _a6 = _h10 > 0 ? Math.floor(_h10) : Math.ceil(_h10),
1955
+ _n6 = this.pMatrix.props,
1956
+ _o7 = this.rMatrix.props,
1957
+ _l4 = this.sMatrix.props;
1958
+ this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
1959
+ var _p4 = 0;
1960
+ if (_h10 > 0) {
1961
+ for (; _p4 < _a6;) {
1962
+ this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), _p4 += 1;
1963
+ }
1964
+ _r5 && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, _r5, !1), _p4 += _r5);
1965
+ } else if (_h10 < 0) {
1966
+ for (; _p4 > _a6;) {
1967
+ this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), _p4 -= 1;
1968
+ }
1969
+ _r5 && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -_r5, !0), _p4 -= _r5);
1970
+ }
1971
+ _s14 = 1 === this.data.m ? 0 : this._currentCopies - 1;
1972
+ var _c5 = 1 === this.data.m ? 1 : -1;
1973
+ for (_i12 = this._currentCopies; _i12;) {
1974
+ var _t24 = this.elemsData[_s14].it,
1975
+ _e19 = _t24[_t24.length - 1].transform.mProps.v.props,
1976
+ _h11 = _e19.length;
1977
+ if (_t24[_t24.length - 1].transform.mProps._mdf = !0, _t24[_t24.length - 1].transform.op._mdf = !0, _t24[_t24.length - 1].transform.op.v = this.so.v + (this.eo.v - this.so.v) * (_s14 / (this._currentCopies - 1)), 0 !== _p4) {
1978
+ (0 !== _s14 && 1 === _c5 || _s14 !== this._currentCopies - 1 && -1 === _c5) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(_o7[0], _o7[1], _o7[2], _o7[3], _o7[4], _o7[5], _o7[6], _o7[7], _o7[8], _o7[9], _o7[10], _o7[11], _o7[12], _o7[13], _o7[14], _o7[15]), this.matrix.transform(_l4[0], _l4[1], _l4[2], _l4[3], _l4[4], _l4[5], _l4[6], _l4[7], _l4[8], _l4[9], _l4[10], _l4[11], _l4[12], _l4[13], _l4[14], _l4[15]), this.matrix.transform(_n6[0], _n6[1], _n6[2], _n6[3], _n6[4], _n6[5], _n6[6], _n6[7], _n6[8], _n6[9], _n6[10], _n6[11], _n6[12], _n6[13], _n6[14], _n6[15]);
1979
+ for (var _t25 = 0; _t25 < _h11; _t25 += 1) {
1980
+ _e19[_t25] = this.matrix.props[_t25];
1981
+ }
1982
+ this.matrix.reset();
1983
+ } else {
1984
+ this.matrix.reset();
1985
+ for (var _t26 = 0; _t26 < _h11; _t26 += 1) {
1986
+ _e19[_t26] = this.matrix.props[_t26];
1987
+ }
1988
+ }
1989
+ _p4 += 1, _i12 -= 1, _s14 += _c5;
1990
+ }
1991
+ } else {
1992
+ var _t27 = this._currentCopies,
1993
+ _s15 = 0;
1994
+ var _e20 = 1;
1995
+ for (; _t27;) {
1996
+ var _i13 = this.elemsData[_s15].it;
1997
+ _i13[_i13.length - 1].transform.mProps._mdf = !1, _i13[_i13.length - 1].transform.op._mdf = !1, _t27 -= 1, _s15 += _e20;
1998
+ }
1999
+ }
2000
+ };
2001
+ _proto20.addShape = function addShape() {};
2002
+ return _class3;
2003
+ }(At)), bt('ms', function (_At4) {
2004
+ _inheritsLoose(_class4, _At4);
2005
+ function _class4() {
2006
+ return _At4.apply(this, arguments) || this;
2007
+ }
2008
+ var _proto21 = _class4.prototype;
2009
+ _proto21.initModifierProperties = function initModifierProperties(t, s) {
2010
+ this.getValue = this.processKeys, this.data = s, this.positions = [];
2011
+ };
2012
+ _proto21.processKeys = function processKeys(t, s) {
2013
+ (t !== this.frameId || s) && (this._mdf = !0);
2014
+ };
2015
+ _proto21.addShapeToModifier = function addShapeToModifier() {
2016
+ this.positions.push([]);
2017
+ };
2018
+ _proto21.processPath = function processPath(t, s, e) {
2019
+ var i,
2020
+ h,
2021
+ r,
2022
+ a,
2023
+ n = t.v.length,
2024
+ o = [],
2025
+ l = [],
2026
+ p = [];
2027
+ for (i = 0; i < n; i += 1) {
2028
+ e.v[i] || (e.v[i] = [t.v[i][0], t.v[i][1]], e.o[i] = [t.o[i][0], t.o[i][1]], e.i[i] = [t.i[i][0], t.i[i][1]], e.distV[i] = 0, e.distO[i] = 0, e.distI[i] = 0), h = Math.atan2(t.v[i][1] - s[1], t.v[i][0] - s[0]), r = s[0] - e.v[i][0], a = s[1] - e.v[i][1];
2029
+ var _n7 = Math.sqrt(r * r + a * a);
2030
+ e.distV[i] += (_n7 - e.distV[i]) * this.data.dc, e.v[i][0] = Math.cos(h) * Math.max(0, this.data.maxDist - e.distV[i]) / 2 + t.v[i][0], e.v[i][1] = Math.sin(h) * Math.max(0, this.data.maxDist - e.distV[i]) / 2 + t.v[i][1], h = Math.atan2(t.o[i][1] - s[1], t.o[i][0] - s[0]), r = s[0] - e.o[i][0], a = s[1] - e.o[i][1], _n7 = Math.sqrt(r * r + a * a), e.distO[i] += (_n7 - e.distO[i]) * this.data.dc, e.o[i][0] = Math.cos(h) * Math.max(0, this.data.maxDist - e.distO[i]) / 2 + t.o[i][0], e.o[i][1] = Math.sin(h) * Math.max(0, this.data.maxDist - e.distO[i]) / 2 + t.o[i][1], h = Math.atan2(t.i[i][1] - s[1], t.i[i][0] - s[0]), r = s[0] - e.i[i][0], a = s[1] - e.i[i][1], _n7 = Math.sqrt(r * r + a * a), e.distI[i] += (_n7 - e.distI[i]) * this.data.dc, e.i[i][0] = Math.cos(h) * Math.max(0, this.data.maxDist - e.distI[i]) / 2 + t.i[i][0], e.i[i][1] = Math.sin(h) * Math.max(0, this.data.maxDist - e.distI[i]) / 2 + t.i[i][1], o.push(e.v[i]), l.push(e.o[i]), p.push(e.i[i]);
2031
+ }
2032
+ return {
2033
+ v: o,
2034
+ o: l,
2035
+ i: p,
2036
+ c: t.c
2037
+ };
2038
+ };
2039
+ _proto21.processShapes = function processShapes() {
2040
+ var t,
2041
+ s,
2042
+ e,
2043
+ i,
2044
+ h = this.elem.globalData.mouseX,
2045
+ r = this.elem.globalData.mouseY,
2046
+ a = this.shapes.length;
2047
+ if (h) {
2048
+ var _n8,
2049
+ _o8 = this.elem.globalToLocal([h, r, 0]),
2050
+ _l5 = [];
2051
+ for (s = 0; s < a; s += 1) {
2052
+ if (_n8 = this.shapes[s], _n8.shape._mdf || this._mdf) {
2053
+ for (_n8.shape._mdf = !0, t = _n8.shape.paths, i = t.length, e = 0; e < i; e += 1) {
2054
+ this.positions[s][e] || (this.positions[s][e] = {
2055
+ v: [],
2056
+ o: [],
2057
+ i: [],
2058
+ distV: [],
2059
+ distO: [],
2060
+ distI: []
2061
+ }), _l5.push(this.processPath(t[e], _o8, this.positions[s][e]));
2062
+ }
2063
+ _n8.shape.paths = _l5, _n8.last = _l5;
2064
+ } else _n8.shape.paths = _n8.last;
2065
+ }
2066
+ }
2067
+ };
2068
+ return _class4;
2069
+ }(At));
2070
+ var It = {
2071
+ getModifier: function getModifier(t, s, e) {
2072
+ return new Ct[t](s, e);
2073
+ }
2074
+ };
2075
+ var Et = function (_O$7) {
2076
+ _inheritsLoose(Et, _O$7);
2077
+ function Et(t, s, e) {
2078
+ var _this14;
2079
+ var i;
2080
+ _this14 = _O$7.call(this) || this, _this14.elem = t, _this14.frameId = -1, _this14.dataProps = D$1(s.length), _this14.k = !1, _this14.dashArray = w('float32', s.length ? s.length - 1 : 0), _this14.dashoffset = w('float32', 1), _this14.initDynamicPropertyContainer(e);
2081
+ var h,
2082
+ r = s.length || 0;
2083
+ for (i = 0; i < r; i += 1) {
2084
+ h = pt.getProp(t, s[i].v, 0, 0, _assertThisInitialized(_this14)), _this14.k = h.k || _this14.k, _this14.dataProps[i] = {
2085
+ n: s[i].n,
2086
+ p: h
2087
+ };
2088
+ }
2089
+ _this14.k || _this14.getValue(!0), _this14._isAnimated = _this14.k;
2090
+ return _this14;
2091
+ }
2092
+ var _proto22 = Et.prototype;
2093
+ _proto22.getValue = function getValue(t, s) {
2094
+ if ((t !== this.frameId || s) && (this.frameId = t, this.iterateDynamicProperties(), this._mdf = this._mdf || s, this._mdf)) {
2095
+ var _t28 = 0,
2096
+ _s16 = this.dataProps.length;
2097
+ for (_t28 = 0; _t28 < _s16; _t28 += 1) {
2098
+ 'o' != this.dataProps[_t28].n ? this.dashArray[_t28] = this.dataProps[_t28].p.v : this.dashoffset[0] = this.dataProps[_t28].p.v;
2099
+ }
2100
+ }
2101
+ };
2102
+ return Et;
2103
+ }(O$1);
2104
+ var Vt = function (_O$8) {
2105
+ _inheritsLoose(Vt, _O$8);
2106
+ function Vt(t, s, e) {
2107
+ var _this15;
2108
+ _this15 = _O$8.call(this) || this, _this15.data = s, _this15.c = w('uint8c', 4 * s.p);
2109
+ var i = s.k.k[0].s ? s.k.k[0].s.length - 4 * s.p : s.k.k.length - 4 * s.p;
2110
+ _this15.o = w('float32', i), _this15._cmdf = !1, _this15._omdf = !1, _this15._collapsable = _this15.checkCollapsable(), _this15._hasOpacity = i, _this15.initDynamicPropertyContainer(e), _this15.prop = pt.getProp(t, s.k, 1, null, _assertThisInitialized(_this15)), _this15.k = _this15.prop.k, _this15.getValue(!0);
2111
+ return _this15;
2112
+ }
2113
+ var _proto23 = Vt.prototype;
2114
+ _proto23.comparePoints = function comparePoints(t, s) {
2115
+ var e,
2116
+ i = 0,
2117
+ h = this.o.length / 2;
2118
+ for (; i < h;) {
2119
+ if (e = Math.abs(t[4 * i] - t[4 * s + 2 * i]), e > 0.01) return !1;
2120
+ i += 1;
2121
+ }
2122
+ return !0;
2123
+ };
2124
+ _proto23.checkCollapsable = function checkCollapsable() {
2125
+ if (this.o.length / 2 != this.c.length / 4) return !1;
2126
+ if (this.data.k.k[0].s) {
2127
+ var _t29 = 0,
2128
+ _s17 = this.data.k.k.length;
2129
+ for (; _t29 < _s17;) {
2130
+ if (!this.comparePoints(this.data.k.k[_t29].s, this.data.p)) return !1;
2131
+ _t29 += 1;
2132
+ }
2133
+ } else if (!this.comparePoints(this.data.k.k, this.data.p)) return !1;
2134
+ return !0;
2135
+ };
2136
+ _proto23.getValue = function getValue(t) {
2137
+ if (this.prop.getValue(), this._mdf = !1, this._cmdf = !1, this._omdf = !1, this.prop._mdf || t) {
2138
+ var _s18,
2139
+ _e21,
2140
+ _i14,
2141
+ _h12 = 4 * this.data.p;
2142
+ for (_s18 = 0; _s18 < _h12; _s18 += 1) {
2143
+ _e21 = _s18 % 4 == 0 ? 100 : 255, _i14 = Math.round(this.prop.v[_s18] * _e21), this.c[_s18] !== _i14 && (this.c[_s18] = _i14, this._cmdf = !t);
2144
+ }
2145
+ if (this.o.length) for (_h12 = this.prop.v.length, _s18 = 4 * this.data.p; _s18 < _h12; _s18 += 1) {
2146
+ _e21 = _s18 % 2 == 0 ? 100 : 1, _i14 = _s18 % 2 == 0 ? Math.round(100 * this.prop.v[_s18]) : this.prop.v[_s18], this.o[_s18 - 4 * this.data.p] !== _i14 && (this.o[_s18 - 4 * this.data.p] = _i14, this._omdf = !t);
2147
+ }
2148
+ this._mdf = !t;
2149
+ }
2150
+ };
2151
+ return Vt;
2152
+ }(O$1);
2153
+ var Nt = function (_O$9) {
2154
+ _inheritsLoose(Nt, _O$9);
2155
+ function Nt(t, s, e) {
2156
+ var _this16;
2157
+ _this16 = _O$9.call(this) || this, _this16.frameId = -1, _this16.keyframesManager = t, _this16.elem = t.elem, _this16.session = e, _this16.shapes = [], _this16.shapesData = s, _this16.stylesList = [], _this16.itemsData = [], _this16.prevViewData = [], _this16.shapeModifiers = [], _this16.processedElements = [], _this16.transformsManager = new St(), _this16.initDynamicPropertyContainer(t), _this16.lcEnum = {
2158
+ 1: 'butt',
2159
+ 2: 'round',
2160
+ 3: 'square'
2161
+ }, _this16.ljEnum = {
2162
+ 1: 'miter',
2163
+ 2: 'round',
2164
+ 3: 'bevel'
2165
+ }, _this16._isFirstFrame = !0, _this16.transformHelper = {
2166
+ opacity: 1,
2167
+ _opMdf: !1
2168
+ }, _this16.searchShapes(_this16.shapesData, _this16.itemsData, _this16.prevViewData, !0, []), _this16._isAnimated || (_this16.transformHelper.opacity = 1, _this16.transformHelper._opMdf = !1, _this16.updateModifiers(_this16.frameId), _this16.transformsManager.processSequences(_this16._isFirstFrame), _this16.updateShape(_this16.transformHelper, _this16.shapesData, _this16.itemsData), _this16.updateGrahpics());
2169
+ return _this16;
2170
+ }
2171
+ var _proto24 = Nt.prototype;
2172
+ _proto24.createStyleElement = function createStyleElement(t, s) {
2173
+ var e = new Dt(this.elem, t, this.transformsManager.addTransformSequence(s)),
2174
+ i = {};
2175
+ if ('fl' == t.ty || 'st' == t.ty ? (i.c = pt.getProp(this, t.c, 1, 255, this), i.c.k || (e.co = i.c.v)) : 'gf' !== t.ty && 'gs' !== t.ty || (i.s = pt.getProp(this, t.s, 1, null, this), i.e = pt.getProp(this, t.e, 1, null, this), i.h = pt.getProp(this, t.h || {
2176
+ k: 0
2177
+ }, 0, 0.01, this), i.a = pt.getProp(this, t.a || {
2178
+ k: 0
2179
+ }, 0, U$1, this), i.g = new Vt(this, t.g, this)), i.o = pt.getProp(this, t.o, 0, 0.01, this), 'st' == t.ty || 'gs' == t.ty) {
2180
+ if (e.lc = this.lcEnum[t.lc] || 'round', e.lj = this.ljEnum[t.lj] || 'round', 1 == t.lj && (e.ml = t.ml), i.w = pt.getProp(this, t.w, 0, null, this), i.w.k || (e.wi = i.w.v), t.d) {
2181
+ var _s19 = new Et(this, t.d, 'canvas', this);
2182
+ i.d = _s19, i.d.k || (e.da = i.d.dashArray, e.do = i.d.dashoffset[0]);
2183
+ }
2184
+ } else e.r = 2 === t.r ? 'evenodd' : 'nonzero';
2185
+ return this.stylesList.push(e), i.style = e, i;
2186
+ };
2187
+ _proto24.addShapeToModifiers = function addShapeToModifiers(t) {
2188
+ var s,
2189
+ e = this.shapeModifiers.length;
2190
+ for (s = 0; s < e; s += 1) {
2191
+ this.shapeModifiers[s].addShape(t);
2192
+ }
2193
+ };
2194
+ _proto24.isShapeInAnimatedModifiers = function isShapeInAnimatedModifiers(t) {
2195
+ var s = this.shapeModifiers.length;
2196
+ for (; 0 < s;) {
2197
+ if (this.shapeModifiers[0].isAnimatedWithShape(t)) return !0;
2198
+ }
2199
+ return !1;
2200
+ };
2201
+ _proto24.updateModifiers = function updateModifiers(t) {
2202
+ if (!this.shapeModifiers.length) return;
2203
+ var s,
2204
+ e = this.shapes.length;
2205
+ for (s = 0; s < e; s += 1) {
2206
+ this.shapes[s].sh.reset();
2207
+ }
2208
+ for (e = this.shapeModifiers.length, s = e - 1; s >= 0; s -= 1) {
2209
+ this.shapeModifiers[s].processShapes(t, this._isFirstFrame);
2210
+ }
2211
+ };
2212
+ _proto24.searchProcessedElement = function searchProcessedElement(t) {
2213
+ var s = this.processedElements,
2214
+ e = 0,
2215
+ i = s.length;
2216
+ for (; e < i;) {
2217
+ if (s[e].elem === t) return s[e].pos;
2218
+ e += 1;
2219
+ }
2220
+ return 0;
2221
+ };
2222
+ _proto24.addProcessedElement = function addProcessedElement(t, s) {
2223
+ var e = this.processedElements,
2224
+ i = e.length;
2225
+ for (; i;) {
2226
+ if (i -= 1, e[i].elem === t) return void (e[i].pos = s);
2227
+ }
2228
+ e.push(new xt(t, s));
2229
+ };
2230
+ _proto24.createGroupElement = function createGroupElement() {
2231
+ return {
2232
+ it: [],
2233
+ prevViewData: []
2234
+ };
2235
+ };
2236
+ _proto24.createTransformElement = function createTransformElement(t) {
2237
+ return {
2238
+ transform: {
2239
+ opacity: 1,
2240
+ _opMdf: !1,
2241
+ key: this.transformsManager.getNewKey(),
2242
+ op: pt.getProp(this, t.o, 0, 0.01, this),
2243
+ mProps: Ft(this, t, this)
2244
+ }
2245
+ };
2246
+ };
2247
+ _proto24.createShapeElement = function createShapeElement(t) {
2248
+ var s = new Mt(this, t, this.stylesList, this.transformsManager);
2249
+ return this.shapes.push(s), this.addShapeToModifiers(s), s;
2250
+ };
2251
+ _proto24.reloadShapes = function reloadShapes() {
2252
+ var t;
2253
+ this._isFirstFrame = !0;
2254
+ var s = this.itemsData.length;
2255
+ for (t = 0; t < s; t += 1) {
2256
+ this.prevViewData[t] = this.itemsData[t];
2257
+ }
2258
+ for (this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, !0, []), s = this.dynamicProperties.length, t = 0; t < s; t += 1) {
2259
+ this.dynamicProperties[t].getValue();
2260
+ }
2261
+ this.updateModifiers(), this.transformsManager.processSequences(this._isFirstFrame);
2262
+ };
2263
+ _proto24.addTransformToStyleList = function addTransformToStyleList(t) {
2264
+ var s = this.stylesList.length;
2265
+ for (var _e22 = 0; _e22 < s; _e22 += 1) {
2266
+ this.stylesList[_e22].closed || this.stylesList[_e22].transforms.push(t);
2267
+ }
2268
+ };
2269
+ _proto24.removeTransformFromStyleList = function removeTransformFromStyleList() {
2270
+ var t = this.stylesList.length;
2271
+ for (var _s20 = 0; _s20 < t; _s20 += 1) {
2272
+ this.stylesList[_s20].closed || this.stylesList[_s20].transforms.pop();
2273
+ }
2274
+ };
2275
+ _proto24.closeStyles = function closeStyles(t) {
2276
+ var s = t.length;
2277
+ for (var _e23 = 0; _e23 < s; _e23 += 1) {
2278
+ t[_e23].closed = !0;
2279
+ }
2280
+ };
2281
+ _proto24.searchShapes = function searchShapes(t, s, e, i, h) {
2282
+ var r,
2283
+ a,
2284
+ n,
2285
+ o,
2286
+ l,
2287
+ p,
2288
+ c = t.length - 1,
2289
+ d = [],
2290
+ u = [],
2291
+ f = [].concat(h);
2292
+ for (r = c; r >= 0; r -= 1) {
2293
+ if (o = this.searchProcessedElement(t[r]), o ? s[r] = e[o - 1] : t[r]._shouldRender = i, 'fl' == t[r].ty || 'st' == t[r].ty || 'gf' == t[r].ty || 'gs' == t[r].ty) o ? s[r].style.closed = !1 : s[r] = this.createStyleElement(t[r], f), d.push(s[r].style);else if ('gr' == t[r].ty) {
2294
+ if (o) for (n = s[r].it.length, a = 0; a < n; a += 1) {
2295
+ s[r].prevViewData[a] = s[r].it[a];
2296
+ } else s[r] = this.createGroupElement(t[r]);
2297
+ this.searchShapes(t[r].it, s[r].it, s[r].prevViewData, i, f);
2298
+ } else 'tr' == t[r].ty ? (o || (p = this.createTransformElement(t[r]), s[r] = p), f.push(s[r]), this.addTransformToStyleList(s[r])) : 'sh' == t[r].ty || 'rc' == t[r].ty || 'el' == t[r].ty || 'sr' == t[r].ty ? o || (s[r] = this.createShapeElement(t[r])) : 'tm' == t[r].ty || 'rd' == t[r].ty ? (o ? (l = s[r], l.closed = !1) : (l = It.getModifier(t[r].ty), l.init(this, t[r]), s[r] = l, this.shapeModifiers.push(l)), u.push(l)) : 'rp' == t[r].ty && (o ? (l = s[r], l.closed = !0) : (l = It.getModifier(t[r].ty), s[r] = l, l.init(this, t, r, s), this.shapeModifiers.push(l), i = !1), u.push(l));
2299
+ this.addProcessedElement(t[r], r + 1);
2300
+ }
2301
+ for (this.removeTransformFromStyleList(), this.closeStyles(d), c = u.length, r = 0; r < c; r += 1) {
2302
+ u[r].closed = !0;
2303
+ }
2304
+ };
2305
+ _proto24.updateShapeTransform = function updateShapeTransform(t, s) {
2306
+ (t._opMdf || s.op._mdf || this._isFirstFrame) && (s.opacity = t.opacity, s.opacity *= s.op.v, s._opMdf = !0);
2307
+ };
2308
+ _proto24.updateStyledShape = function updateStyledShape(t, s) {
2309
+ if (this._isFirstFrame || s._mdf || t.transforms._mdf) {
2310
+ var _e24,
2311
+ _i15,
2312
+ _h13,
2313
+ _r6 = t.trNodes,
2314
+ _a7 = s.paths,
2315
+ _n9 = _a7._length;
2316
+ _r6.length = 0;
2317
+ var _o9 = t.transforms.finalTransform;
2318
+ for (_h13 = 0; _h13 < _n9; _h13 += 1) {
2319
+ var _t30 = _a7.shapes[_h13];
2320
+ if (_t30 && _t30.v) {
2321
+ for (_i15 = _t30._length, _e24 = 1; _e24 < _i15; _e24 += 1) {
2322
+ 1 === _e24 && _r6.push({
2323
+ t: 'm',
2324
+ p: _o9.applyToPointArray(_t30.v[0][0], _t30.v[0][1], 0)
2325
+ }), _r6.push({
2326
+ t: 'c',
2327
+ pts: _o9.applyToTriplePoints(_t30.o[_e24 - 1], _t30.i[_e24], _t30.v[_e24])
2328
+ });
2329
+ }
2330
+ 1 === _i15 && _r6.push({
2331
+ t: 'm',
2332
+ p: _o9.applyToPointArray(_t30.v[0][0], _t30.v[0][1], 0)
2333
+ }), _t30.c && _i15 && (_r6.push({
2334
+ t: 'c',
2335
+ pts: _o9.applyToTriplePoints(_t30.o[_e24 - 1], _t30.i[0], _t30.v[0])
2336
+ }), _r6.push({
2337
+ t: 'z'
2338
+ }));
2339
+ }
2340
+ }
2341
+ t.trNodes = _r6;
2342
+ }
2343
+ };
2344
+ _proto24.updatePath = function updatePath(t, s) {
2345
+ if (!0 !== t.hd && t._shouldRender) {
2346
+ var _t31,
2347
+ _e25 = s.styledShapes.length;
2348
+ for (_t31 = 0; _t31 < _e25; _t31 += 1) {
2349
+ this.updateStyledShape(s.styledShapes[_t31], s.sh);
2350
+ }
2351
+ }
2352
+ };
2353
+ _proto24.updateFill = function updateFill(t, s, e) {
2354
+ var i = s.style;
2355
+ (s.c._mdf || this._isFirstFrame) && (i.co = s.c.v), (s.o._mdf || e._opMdf || this._isFirstFrame) && (i.coOp = s.o.v * e.opacity);
2356
+ };
2357
+ _proto24.updateStroke = function updateStroke(t, s, e) {
2358
+ var i = s.style,
2359
+ h = s.d;
2360
+ h && (h._mdf || this._isFirstFrame) && (i.da = h.dashArray, i.do = h.dashoffset[0]), (s.c._mdf || this._isFirstFrame) && (i.co = s.c.v), (s.o._mdf || e._opMdf || this._isFirstFrame) && (i.coOp = s.o.v * e.opacity), (s.w._mdf || this._isFirstFrame) && (i.wi = s.w.v);
2361
+ };
2362
+ _proto24.updateGradientFill = function updateGradientFill(t, s, e) {
2363
+ var i = s.style;
2364
+ i.grd = s.g.c, i.coOp = s.o.v * e.opacity;
2365
+ };
2366
+ _proto24.updateShape = function updateShape(t, s, e) {
2367
+ var i = t;
2368
+ for (var _h14 = s.length - 1; _h14 >= 0; _h14 -= 1) {
2369
+ 'tr' == s[_h14].ty ? (i = e[_h14].transform, this.updateShapeTransform(t, i)) : 'sh' == s[_h14].ty || 'el' == s[_h14].ty || 'rc' == s[_h14].ty || 'sr' == s[_h14].ty ? this.updatePath(s[_h14], e[_h14]) : 'fl' == s[_h14].ty ? this.updateFill(s[_h14], e[_h14], i) : 'st' == s[_h14].ty ? this.updateStroke(s[_h14], e[_h14], i) : 'gf' == s[_h14].ty || 'gs' == s[_h14].ty ? this.updateGradientFill(s[_h14], e[_h14], i) : 'gr' == s[_h14].ty && this.updateShape(i, s[_h14].it, e[_h14].it);
2370
+ }
2371
+ };
2372
+ _proto24.updateGrahpics = function updateGrahpics() {
2373
+ var t = this.stylesList.length;
2374
+ for (var _s21 = 0; _s21 < t; _s21 += 1) {
2375
+ this.stylesList[_s21].updateGrahpics();
2376
+ }
2377
+ };
2378
+ _proto24.getValue = function getValue(t) {
2379
+ t !== this.frameId && (this.iterateDynamicProperties(t), this.transformHelper.opacity = 1, this.transformHelper._opMdf = !1, this.updateModifiers(t), this.transformsManager.processSequences(this._isFirstFrame), this.updateShape(this.transformHelper, this.shapesData, this.itemsData), this.updateGrahpics(), this.frameId = t);
2380
+ };
2381
+ return Nt;
2382
+ }(O$1);
2383
+ var qt = function (_Lt) {
2384
+ _inheritsLoose(qt, _Lt);
2385
+ function qt(t, s, e) {
2386
+ var _this17;
2387
+ _this17 = _Lt.call(this, t, s) || this, _this17.frameId = -1, _this17.hs = s, _this17.session = e;
2388
+ return _this17;
2389
+ }
2390
+ var _proto25 = qt.prototype;
2391
+ _proto25.getValue = function getValue(t) {
2392
+ t !== this.frameId && (this.iterateDynamicProperties(t), this.frameId = t);
2393
+ };
2394
+ _createClass(qt, [{
2395
+ key: "x",
2396
+ get: function get() {
2397
+ return this.p ? this.p.v[0] : this.px.v;
2398
+ }
2399
+ }, {
2400
+ key: "y",
2401
+ get: function get() {
2402
+ return this.p ? this.p.v[1] : this.py.v;
2403
+ }
2404
+ }, {
2405
+ key: "anchorX",
2406
+ get: function get() {
2407
+ return this.a.v[0];
2408
+ }
2409
+ }, {
2410
+ key: "anchorY",
2411
+ get: function get() {
2412
+ return this.a.v[1];
2413
+ }
2414
+ }, {
2415
+ key: "scaleX",
2416
+ get: function get() {
2417
+ return this.s.v[0];
2418
+ }
2419
+ }, {
2420
+ key: "scaleY",
2421
+ get: function get() {
2422
+ return this.s.v[1];
2423
+ }
2424
+ }, {
2425
+ key: "rotation",
2426
+ get: function get() {
2427
+ return this.r && this.r.v || 0;
2428
+ }
2429
+ }, {
2430
+ key: "alpha",
2431
+ get: function get() {
2432
+ return this.o.v;
2433
+ }
2434
+ }]);
2435
+ return qt;
2436
+ }(Lt);
2437
+ var Ot = function () {
2438
+ function Ot(t) {
2439
+ this.elem = t, this._isFirstFrame = !1, this.dynamicProperties = [], this._mdf = !1, this.transform = null, this.masks = null, this.shapes = null, this._hasOutTypeExpression = !1, this.needUpdateOverlap = !1, this.isOverlapMode = !1, this.visible = !0, this._isFirstFrame = !0;
2440
+ }
2441
+ var _proto26 = Ot.prototype;
2442
+ _proto26.initFrame = function initFrame(t, s) {
2443
+ this.layer = t;
2444
+ var e = s.local,
2445
+ i = s.global;
2446
+ this.session = s, this.isOverlapLayer = this.layer.op >= e.op - e.st, this.isOverlapMode = i.overlapMode, this.parseLayer(t, s);
2447
+ };
2448
+ _proto26.outTypeExpressionMode = function outTypeExpressionMode() {
2449
+ this._hasOutTypeExpression = !0, this.isOverlapLayer && (this.needUpdateOverlap = !0);
2450
+ };
2451
+ _proto26.prepareProperties = function prepareProperties(t, s) {
2452
+ var e,
2453
+ i = this.dynamicProperties.length;
2454
+ for (e = 0; e < i; e += 1) {
2455
+ (s || this.needUpdateOverlap || this.elem._isParent && 'transform' === this.dynamicProperties[e].propType) && (this.dynamicProperties[e].getValue(t), this.dynamicProperties[e]._mdf && (this._mdf = !0));
2456
+ }
2457
+ };
2458
+ _proto26.addDynamicProperty = function addDynamicProperty(t) {
2459
+ -1 === this.dynamicProperties.indexOf(t) && this.dynamicProperties.push(t);
2460
+ };
2461
+ _proto26.parseLayer = function parseLayer(_ref, r) {
2462
+ var t = _ref.ks,
2463
+ s = _ref.hasMask,
2464
+ e = _ref.masksProperties,
2465
+ i = _ref.shapes,
2466
+ h = _ref.tm;
2467
+ if (t && (this.transform = new qt(this, t, r)), s && (this.masks = new _t(this, e, r)), i && (this.shapes = new Nt(this, i, r)), h) {
2468
+ var _t32 = r.global.frameRate;
2469
+ this.tm = pt.getProp(this, h, 0, _t32, this);
2470
+ }
2471
+ };
2472
+ _proto26.updateFrame = function updateFrame(t) {
2473
+ this._mdf = !1;
2474
+ var e = s.inRange(t, this.layer.ip, this.layer.op);
2475
+ this.isOverlapMode && this.isOverlapLayer ? this.visible = t >= this.layer.ip : this.visible = e, this.prepareProperties(t, e);
2476
+ };
2477
+ _proto26.updateDisplay = function updateDisplay() {
2478
+ var t = this.elem.display;
2479
+ this.elem._isRoot || (this.visible ? t.show() : t.hide(), (this._mdf || this.transform._mdf || this._isFirstFrame) && t.updateLottieTransform(this.transform), this.masks && (this.masks._mdf || this._isFirstFrame) && t.updateLottieMasks(this.masks)), this._isFirstFrame = !1;
2480
+ };
2481
+ return Ot;
2482
+ }();
2483
+ var Xt = function () {
2484
+ function Xt(t) {
2485
+ this.data = t, void 0 === this.data.sr && (this.data.sr = 1), this.offsetTime = t.st || 0, this.fullname = t.nm || '', this.idname = t.ln || '', this.classnames = t.cl ? t.cl.split(' ') : [], this.bodymovin = new Ot(this), this.displayType = '', this.display = null, this.hierarchy = null, this.lottieTreeParent = null;
2486
+ }
2487
+ var _proto27 = Xt.prototype;
2488
+ _proto27.initBodymovin = function initBodymovin(t, s) {
2489
+ this.bodymovin.initFrame(t, s), this.display && this.display.onSetupLottie && this.display.onSetupLottie();
2490
+ };
2491
+ _proto27.hasValidMasks = function hasValidMasks() {
2492
+ return !(!this.bodymovin.masks || !this.bodymovin.masks.hasMasks);
2493
+ };
2494
+ _proto27.setHierarchy = function setHierarchy(t) {
2495
+ this.hierarchy = t, this.display.setHierarchy(t.display);
2496
+ };
2497
+ _proto27.initDisplayInstance = function initDisplayInstance(t, s) {
2498
+ return new (Tt(t))(this, s);
2499
+ };
2500
+ _proto27.updateFrame = function updateFrame(t) {
2501
+ this.bodymovin.updateFrame(t), this.bodymovin.updateDisplay();
2502
+ };
2503
+ return Xt;
2504
+ }();
2505
+ var Yt = function (_Xt) {
2506
+ _inheritsLoose(Yt, _Xt);
2507
+ function Yt(t, s) {
2508
+ var _this18;
2509
+ _this18 = _Xt.call(this, t) || this;
2510
+ var e = s.global;
2511
+ _this18.session = s;
2512
+ var i = {
2513
+ layer: t,
2514
+ session: s
2515
+ };
2516
+ if (e.maskComp) {
2517
+ i.maskComp = e.maskComp;
2518
+ var _s22 = t.w,
2519
+ _h15 = t.h;
2520
+ i.viewport = {
2521
+ w: _s22,
2522
+ h: _h15
2523
+ };
2524
+ }
2525
+ _this18.config = i, _this18.childNodes = [], _this18.displayType = wt.Type.Component, _this18.innerDisplay = null, _this18.display = _this18.initDisplayInstance(_this18.displayType, i), _this18.initBodymovin(t, s);
2526
+ return _this18;
2527
+ }
2528
+ var _proto28 = Yt.prototype;
2529
+ _proto28.updateFrame = function updateFrame(t) {
2530
+ if (this.bodymovin.updateFrame(t), this.bodymovin.updateDisplay(), t -= this.offsetTime, this.bodymovin.tm) {
2531
+ var _s23 = this.bodymovin.tm.v;
2532
+ _s23 === this.data.op && (_s23 = this.data.op - 1), t = _s23;
2533
+ } else t /= this.data.sr;
2534
+ for (var _s24 = 0; _s24 < this.childNodes.length; _s24++) {
2535
+ this.childNodes[_s24].updateFrame(t);
2536
+ }
2537
+ };
2538
+ _proto28.addChild = function addChild(t) {
2539
+ t.lottieTreeParent = this, this.childNodes.push(t), this.innerDisplay ? this.innerDisplay.addChild(t.display) : this.display.addChild(t.display);
2540
+ };
2541
+ return Yt;
2542
+ }(Xt);
2543
+ var jt = function (_Xt2) {
2544
+ _inheritsLoose(jt, _Xt2);
2545
+ function jt(t, s) {
2546
+ var _this19;
2547
+ _this19 = _Xt2.call(this, t) || this;
2548
+ var e = {
2549
+ layer: t,
2550
+ session: s,
2551
+ rect: {
2552
+ x: 0,
2553
+ y: 0,
2554
+ width: t.sw,
2555
+ height: t.sh
2556
+ },
2557
+ color: t.sc
2558
+ };
2559
+ _this19.config = e, _this19.session = s, _this19.displayType = wt.Type.Solid, _this19.display = _this19.initDisplayInstance(_this19.displayType, e), _this19.initBodymovin(t, s);
2560
+ return _this19;
2561
+ }
2562
+ return jt;
2563
+ }(Xt);
2564
+ var zt = function (_Xt3) {
2565
+ _inheritsLoose(zt, _Xt3);
2566
+ function zt(t, e) {
2567
+ var _this20;
2568
+ _this20 = _Xt3.call(this, t) || this;
2569
+ var _e$global = e.global,
2570
+ i = _e$global.textureLoader,
2571
+ h = _e$global.assets,
2572
+ r = s.getAssets(t.refId, h),
2573
+ a = {
2574
+ layer: t,
2575
+ session: e,
2576
+ texture: i.getTextureById(r.id),
2577
+ asset: r
2578
+ };
2579
+ _this20.config = a, _this20.session = e, _this20.displayType = wt.Type.Sprite, _this20.display = _this20.initDisplayInstance(_this20.displayType, a), _this20.initBodymovin(t, e);
2580
+ return _this20;
2581
+ }
2582
+ return zt;
2583
+ }(Xt);
2584
+ var Bt = function (_Xt4) {
2585
+ _inheritsLoose(Bt, _Xt4);
2586
+ function Bt(t, s) {
2587
+ var _this21;
2588
+ _this21 = _Xt4.call(this, t) || this;
2589
+ var e = {
2590
+ layer: t,
2591
+ session: s
2592
+ };
2593
+ _this21.config = e, _this21.session = s, _this21.displayType = wt.Type.Shape, _this21.display = _this21.initDisplayInstance(_this21.displayType, e), _this21.initBodymovin(t, s);
2594
+ return _this21;
2595
+ }
2596
+ return Bt;
2597
+ }(Xt);
2598
+ var Rt = function (_Xt5) {
2599
+ _inheritsLoose(Rt, _Xt5);
2600
+ function Rt(t, s) {
2601
+ var _this22;
2602
+ _this22 = _Xt5.call(this, t) || this;
2603
+ var e = {
2604
+ layer: t,
2605
+ session: s
2606
+ };
2607
+ _this22.config = e, _this22.session = s, _this22.displayType = wt.Type.Null, _this22.display = _this22.initDisplayInstance(_this22.displayType, e), _this22.initBodymovin(t, s);
2608
+ return _this22;
2609
+ }
2610
+ return Rt;
2611
+ }(Xt);
2612
+ var Kt = function (_e26) {
2613
+ _inheritsLoose(Kt, _e26);
2614
+ function Kt(t) {
2615
+ var _this23;
2616
+ _this23 = _e26.call(this) || this, _this23.living = !0, _this23.infinite = t.infinite || !1, _this23.repeats = t.repeats || 0, _this23.alternate = t.alternate || !1, _this23.wait = t.wait || 0, _this23.delay = t.delay || 0, _this23.overlapMode = t.overlapMode || !1, _this23.timeScale = s.isNumber(t.timeScale) ? t.timeScale : 1, _this23.frameNum = 0, _this23.isPaused = !0, _this23.direction = 1, _this23._lastFrame = -1 / 0, _this23._repeatsCut = _this23.repeats, _this23._delayCut = _this23.delay, _this23._waitCut = _this23.wait, _this23.segments = t.segments || {}, _this23._segmentName = t.initSegment || '', _this23._prefix = t.prefix || '', _this23._autoLoad = !s.isBoolean(t.autoLoad) || t.autoLoad, _this23._autoStart = !s.isBoolean(t.autoStart) || t.autoStart, _this23._justDisplayOnImagesLoaded = !s.isBoolean(t.justDisplayOnImagesLoaded) || t.justDisplayOnImagesLoaded, _this23._maskComp = t.maskComp || !1, _this23.textureLoader = null, _this23.jsonLoader = null, _this23.root = null, _this23.parent = null;
2617
+ var e = Tt(wt.Type.Container);
2618
+ if (_this23.group = new e(), _this23.display = null, _this23.isDisplayLoaded = !1, _this23.isImagesLoaded = !1, _this23._copyJSON = t.copyJSON || !1, t.keyframes) !_this23._prefix && t.keyframes.prefix && (_this23._prefix = t.keyframes.prefix), _this23._setupDate(t.keyframes);else if (t.path) {
2619
+ var _s25 = '';
2620
+ _s25 = -1 !== t.path.lastIndexOf('\\') ? t.path.substr(0, t.path.lastIndexOf('\\') + 1) : t.path.substr(0, t.path.lastIndexOf('/') + 1), !_this23._prefix && _s25 && (_this23._prefix = _s25), _this23.jsonLoader = function (t) {
2621
+ var s = i[h.Ajax];
2622
+ return s || console.warn('must register an ajax loader, before you parse an animation from path'), s(t);
2623
+ }(t.path), _this23.jsonLoader.once('success', function (t) {
2624
+ _this23._setupDate(t);
2625
+ }), _this23.jsonLoader.once('error', function (t) {
2626
+ _this23.emit('error', t);
2627
+ });
2628
+ }
2629
+ return _this23;
2630
+ }
2631
+ var _proto29 = Kt.prototype;
2632
+ _proto29._setupDate = function _setupDate(t) {
2633
+ var _this24 = this;
2634
+ this._sourceData = t, this._copyJSON && (t = s.copyJSON(t)), g.completeData(t), this.keyframes = t;
2635
+ var _t33 = t,
2636
+ e = _t33.w,
2637
+ r = _t33.h,
2638
+ _t33$st = _t33.st,
2639
+ a = _t33$st === void 0 ? 0 : _t33$st,
2640
+ n = _t33.fr,
2641
+ o = _t33.ip,
2642
+ l = _t33.op,
2643
+ p = _t33.assets;
2644
+ this.frameRate = n, this.frameMult = n / 1e3, this._defaultSegment = [o, l];
2645
+ var c = this._segmentName && this.segments[this._segmentName] || this._defaultSegment;
2646
+ this.beginFrame = c[0], this.endFrame = c[1], this._timePerFrame = 1e3 / n, this.duration = Math.floor(this.endFrame - this.beginFrame);
2647
+ var d = null;
2648
+ var u = p.filter(function (t) {
2649
+ return t.u || t.p;
2650
+ });
2651
+ u.length > 0 ? (this.textureLoader = d = function (t, s) {
2652
+ var e = i[h.Texture];
2653
+ return e || console.warn('must register an image loader, before you parse an animation some has image assets'), e(t, s);
2654
+ }(u, {
2655
+ prefix: this._prefix,
2656
+ autoLoad: this._autoLoad
2657
+ }), d.loaded ? (this.isImagesLoaded = !0, this.isPaused = !this._autoStart, this.emit('ImageReady')) : (d.once('complete', function () {
2658
+ _this24.isImagesLoaded = !0, _this24.emit('ImageReady');
2659
+ }), null !== this._pausedNeedSet && (this._pausedNeedSet = !0, d.once('complete', function () {
2660
+ _this24._pausedNeedSet && (_this24._pausedNeedSet = !1, _this24.isPaused = !_this24._autoStart);
2661
+ })))) : (this.isImagesLoaded = !0, this.isPaused = !this._autoStart);
2662
+ var f = {
2663
+ global: {
2664
+ assets: p,
2665
+ textureLoader: d,
2666
+ frameRate: n,
2667
+ maskComp: this._maskComp,
2668
+ overlapMode: this.overlapMode
2669
+ },
2670
+ local: {
2671
+ w: e,
2672
+ h: r,
2673
+ ip: o,
2674
+ op: l,
2675
+ st: a
2676
+ }
2677
+ };
2678
+ this._buildElements(f), null !== this.textureLoader && this._justDisplayOnImagesLoaded && !this.textureLoader.loaded && null !== this._justDisplayNeedSet && (this.group.visible = !1, this._justDisplayNeedSet = !0, this.textureLoader.once('complete', function () {
2679
+ _this24._justDisplayNeedSet && (_this24._justDisplayNeedSet = !1, _this24.group.visible = !0);
2680
+ })), this.isDisplayLoaded = !0, this.update(0, !0);
2681
+ };
2682
+ _proto29._buildElements = function _buildElements(t) {
2683
+ var _this25 = this;
2684
+ this.root = this._extraCompositions(this.keyframes, t, !0), this.display = this.root.display, this.group.addChild(this.display), this.emit('DOMLoaded').emit('DisplayReady'), null === this.textureLoader ? this.emit('success') : this.textureLoader.loaded ? this.emit('success') : this.textureLoader.once('complete', function () {
2685
+ return _this25.emit('success');
2686
+ });
2687
+ };
2688
+ _proto29._extraCompositions = function _extraCompositions(t, _ref2, h) {
2689
+ var e = _ref2.global,
2690
+ i = _ref2.local;
2691
+ if (h === void 0) {
2692
+ h = !1;
2693
+ }
2694
+ var r = t.w,
2695
+ a = t.h,
2696
+ n = t.ip,
2697
+ o = t.op,
2698
+ _t$st = t.st,
2699
+ l = _t$st === void 0 ? 0 : _t$st,
2700
+ p = new Yt(t, {
2701
+ global: e,
2702
+ local: i
2703
+ });
2704
+ p._isRoot = h;
2705
+ var c = t.layers || s.getAssets(t.refId, e.assets).layers,
2706
+ d = {
2707
+ global: e,
2708
+ local: {
2709
+ w: r,
2710
+ h: a,
2711
+ ip: n,
2712
+ op: o,
2713
+ st: l
2714
+ }
2715
+ },
2716
+ u = this._createElements(c, d);
2717
+ for (var _t34 = c.length - 1; _t34 >= 0; _t34--) {
2718
+ var _e27 = c[_t34],
2719
+ _i16 = u[_e27.ind];
2720
+ if (_i16) {
2721
+ if (!s.isUndefined(_e27.parent)) {
2722
+ var _t35 = u[_e27.parent];
2723
+ _t35._isParent = !0, _i16.setHierarchy(_t35);
2724
+ }
2725
+ p.addChild(_i16);
2726
+ }
2727
+ }
2728
+ return p;
2729
+ };
2730
+ _proto29._createElements = function _createElements(t, s) {
2731
+ var e = {};
2732
+ for (var _i17 = t.length - 1; _i17 >= 0; _i17--) {
2733
+ var _h16 = t[_i17];
2734
+ var _r7 = null;
2735
+ if (void 0 === _h16.td) {
2736
+ switch (_h16.ty) {
2737
+ case 0:
2738
+ _r7 = this._extraCompositions(_h16, s);
2739
+ break;
2740
+ case 1:
2741
+ _r7 = new jt(_h16, s);
2742
+ break;
2743
+ case 2:
2744
+ _r7 = new zt(_h16, s);
2745
+ break;
2746
+ case 3:
2747
+ _r7 = new Rt(_h16, s);
2748
+ break;
2749
+ case 4:
2750
+ _r7 = new Bt(_h16, s);
2751
+ break;
2752
+ default:
2753
+ continue;
2754
+ }
2755
+ _r7 && (void 0 === _h16.ind && (_h16.ind = _i17), e[_h16.ind] = _r7, _r7.name = _h16.nm || null);
2756
+ }
2757
+ }
2758
+ return e;
2759
+ };
2760
+ _proto29.getDisplayByQuerySelector = function getDisplayByQuerySelector(t) {
2761
+ var s = this.querySelector(t);
2762
+ return s && s.display ? s.display : (console.warn('can not find display which query with ', t), null);
2763
+ };
2764
+ _proto29._queryMatch = function _queryMatch(t, s, e) {
2765
+ var i = t.substr(0, 1),
2766
+ h = t.substr(1, t.length);
2767
+ var r = !1;
2768
+ return r = '#' === i ? s.idname === h : '.' === i ? -1 !== s.classnames.indexOf(h) : s.fullname === t, r && e.push(s), r;
2769
+ };
2770
+ _proto29._searchNodes = function _searchNodes(t, s, e, i) {
2771
+ if (i === void 0) {
2772
+ i = !1;
2773
+ }
2774
+ if (s.childNodes && s.childNodes.length > 0) {
2775
+ var _h17 = [];
2776
+ for (var _r8 = 0; _r8 < s.childNodes.length; _r8++) {
2777
+ var _a8 = s.childNodes[_r8];
2778
+ if (this._queryMatch(t, _a8, e) && i) return !0;
2779
+ _a8.childNodes && _a8.childNodes.length > 0 && _h17.push(_a8);
2780
+ }
2781
+ for (var _s26 = 0; _s26 < _h17.length; _s26++) {
2782
+ if (this._searchNodes(t, _h17[_s26], e, i)) return !0;
2783
+ }
2784
+ }
2785
+ return !1;
2786
+ };
2787
+ _proto29.querySelector = function querySelector(t) {
2788
+ var s = [];
2789
+ return this._queryMatch(t, this.root, s) ? s[0] : (this._searchNodes(t, this.root, s, !0), s[0] || null);
2790
+ };
2791
+ _proto29.querySelectorAll = function querySelectorAll(t) {
2792
+ var s = [],
2793
+ e = '#' === t.substr(0, 1);
2794
+ return this._queryMatch(t, this.root, s) && e ? s : (this._searchNodes(t, this.root, s, e), s);
2795
+ };
2796
+ _proto29.bindSlot = function bindSlot(t, s) {
2797
+ return this.getDisplayByQuerySelector(t).addChild(s), this;
2798
+ };
2799
+ _proto29.unbindSlot = function unbindSlot(t, s) {
2800
+ return this.getDisplayByQuerySelector(t).removeChild(s), this;
2801
+ };
2802
+ _proto29._emitFrame = function _emitFrame(t) {
2803
+ this.emit("@" + t);
2804
+ };
2805
+ _proto29.update = function update(t, s) {
2806
+ if (s === void 0) {
2807
+ s = !1;
2808
+ }
2809
+ if (!this.living || !this.isDisplayLoaded || this.isPaused && !s) return;
2810
+ var e = this._updateTime(t),
2811
+ i = this.beginFrame + this.frameNum;
2812
+ this.root.updateFrame(i);
2813
+ var h = i >> 0;
2814
+ this._lastFrame !== h && (this._emitFrame(this.direction > 0 ? h : this._lastFrame), this._lastFrame = h), !1 === e ? (this.emit('enterFrame', i), this.emit('update', this.frameNum / this.duration)) : this.hadEnded !== e && !0 === e && this.emit('complete'), this.hadEnded = e;
2815
+ };
2816
+ _proto29._updateTime = function _updateTime(t) {
2817
+ var e = this.direction * this.timeScale * t;
2818
+ if (this._waitCut > 0) return this._waitCut -= Math.abs(e), null;
2819
+ if (this.isPaused || this._delayCut > 0) return this._delayCut > 0 && (this._delayCut -= Math.abs(e)), null;
2820
+ this.frameNum += e / this._timePerFrame;
2821
+ var i = !1;
2822
+ return this._spill() && (this._repeatsCut > 0 || this.infinite ? (this._repeatsCut > 0 && --this._repeatsCut, this._delayCut = this.delay, this.alternate ? (this.direction *= -1, this.frameNum = s.codomainBounce(this.frameNum, 0, this.duration)) : (this.direction = 1, this.frameNum = s.euclideanModulo(this.frameNum, this.duration)), this.emit('loopComplete')) : (this.overlapMode || (this.frameNum = s.clamp(this.frameNum, 0, this.duration), this.living = !1), i = !0)), i;
2823
+ };
2824
+ _proto29._spill = function _spill() {
2825
+ var t = this.frameNum <= 0 && -1 === this.direction,
2826
+ s = this.frameNum >= this.duration && 1 === this.direction;
2827
+ return t || s;
2828
+ };
2829
+ _proto29.frameToTime = function frameToTime(t) {
2830
+ return t * this._timePerFrame;
2831
+ };
2832
+ _proto29.setSpeed = function setSpeed(t) {
2833
+ this.timeScale = t;
2834
+ };
2835
+ _proto29.playSegment = function playSegment(t, e) {
2836
+ if (e === void 0) {
2837
+ e = {};
2838
+ }
2839
+ if (!t) return;
2840
+ var i = null;
2841
+ s.isArray(t) ? i = t : s.isString(t) && (i = this.segments[t], s.isArray(i) && (this._segmentName = t)), s.isArray(i) && (this.beginFrame = s.isNumber(i[0]) ? i[0] : this._defaultSegment[0], this.endFrame = s.isNumber(i[1]) ? i[1] : this._defaultSegment[1], s.isNumber(e.repeats) && (this.repeats = e.repeats), s.isBoolean(e.infinite) && (this.infinite = e.infinite), s.isBoolean(e.alternate) && (this.alternate = e.alternate), s.isNumber(e.wait) && (this.wait = e.wait), s.isNumber(e.delay) && (this.delay = e.delay), this.replay());
2842
+ };
2843
+ _proto29.goToAndStop = function goToAndStop(t, s) {
2844
+ if (s === void 0) {
2845
+ s = !1;
2846
+ }
2847
+ this.frameNum = s ? t : t * this.frameMult, this.update(0, !0), this.pause();
2848
+ };
2849
+ _proto29.goToAndPlay = function goToAndPlay(t, s) {
2850
+ if (s === void 0) {
2851
+ s = !1;
2852
+ }
2853
+ this.frameNum = s ? t : t * this.frameMult, this.update(0, !0), this.resume();
2854
+ };
2855
+ _proto29.getDuration = function getDuration(t) {
2856
+ var s = this.endFrame - this.beginFrame;
2857
+ return t ? s : s / this.frameRate;
2858
+ };
2859
+ _proto29.setDirection = function setDirection(t) {
2860
+ return this.direction = t < 0 ? -1 : 1, this;
2861
+ };
2862
+ _proto29.pause = function pause() {
2863
+ return this._pausedNeedSet ? this._pausedNeedSet = !1 : this._pausedNeedSet = null, this.isPaused = !0, this;
2864
+ };
2865
+ _proto29.resume = function resume() {
2866
+ return this._pausedNeedSet ? this._pausedNeedSet = !1 : this._pausedNeedSet = null, this.isPaused = !1, this;
2867
+ };
2868
+ _proto29.play = function play() {
2869
+ return this.resume();
2870
+ };
2871
+ _proto29.replay = function replay() {
2872
+ return this._pausedNeedSet ? this._pausedNeedSet = !1 : this._pausedNeedSet = null, this.isPaused = !1, this._repeatsCut = this.repeats, this._delayCut = this.delay, this.living = !0, this.frameNum = 0, this.duration = Math.floor(this.endFrame - this.beginFrame), this.direction = 1, this;
2873
+ };
2874
+ _proto29.show = function show() {
2875
+ this._justDisplayNeedSet ? this._justDisplayNeedSet = !1 : this._justDisplayNeedSet = null, this.group.visible = !0;
2876
+ };
2877
+ _proto29.hide = function hide() {
2878
+ this._justDisplayNeedSet ? this._justDisplayNeedSet = !1 : this._justDisplayNeedSet = null, this.group.visible = !1;
2879
+ };
2880
+ _proto29.destroy = function destroy() {
2881
+ this.parent && this.parent.remove(this), this.group.parent && this.group.parent.removeChild(this.group), this.pause(), this.root = null, this.group = null, this.display = null, this.textureLoader && (this.textureLoader.off('complete'), this.textureLoader = null), this.jsonLoader && (this.jsonLoader.off('success'), this.jsonLoader = null), this.keyframes = null, this.living = !1;
2882
+ };
2883
+ return Kt;
2884
+ }(e);
2885
+ var Gt = function (_e28) {
2886
+ _inheritsLoose(Gt, _e28);
2887
+ function Gt(t) {
2888
+ var _this26;
2889
+ _this26 = _e28.call(this) || this, _this26._lastTime = 0, _this26._snippet = 0, _this26.timeScale = 1, _this26.isPaused = !1, _this26.ticker = t.ticker ? t.ticker : t, _this26.groups = [], _this26.update = _this26.update.bind(_assertThisInitialized(_this26)), _this26.ticker && _this26.start();
2890
+ return _this26;
2891
+ }
2892
+ var _proto30 = Gt.prototype;
2893
+ _proto30.add = function add(t) {
2894
+ var s = arguments.length;
2895
+ if (s > 1) for (var _t36 = 0; _t36 < s; _t36++) {
2896
+ this.add(arguments[_t36]);
2897
+ } else null !== t.parent && t.parent.remove(t), t.parent = this, this.groups.push(t);
2898
+ return t;
2899
+ };
2900
+ _proto30.remove = function remove(t) {
2901
+ if (arguments.length > 1) for (var _t37 = 0; _t37 < arguments.length; _t37++) {
2902
+ this.remove(arguments[_t37]);
2903
+ }
2904
+ var s = this.groups.indexOf(t);
2905
+ -1 !== s && (t.parent = null, this.groups.splice(s, 1));
2906
+ };
2907
+ _proto30.parseAnimation = function parseAnimation(t) {
2908
+ var s = new Kt(t);
2909
+ return this.add(s);
2910
+ };
2911
+ _proto30.setSpeed = function setSpeed(t) {
2912
+ this.timeScale = t;
2913
+ };
2914
+ _proto30.start = function start() {
2915
+ return this._lastTime = Date.now(), this.ticker.add(this.update), this;
2916
+ };
2917
+ _proto30.stop = function stop() {
2918
+ return this.ticker.remove(this.update), this;
2919
+ };
2920
+ _proto30.pause = function pause() {
2921
+ return this.isPaused = !0, this;
2922
+ };
2923
+ _proto30.resume = function resume() {
2924
+ return this.isPaused = !1, this;
2925
+ };
2926
+ _proto30.update = function update() {
2927
+ if (this.timeline(), this.isPaused) return;
2928
+ var t = this.timeScale * this._snippet,
2929
+ s = this.groups.length;
2930
+ for (var _e29 = 0; _e29 < s; _e29++) {
2931
+ this.groups[_e29].update(t);
2932
+ }
2933
+ this.emit('update', this._snippet);
2934
+ };
2935
+ _proto30.timeline = function timeline() {
2936
+ var t = Date.now() - this._lastTime;
2937
+ (!this._lastTime || t > 200) && (this._lastTime = Date.now(), t = Date.now() - this._lastTime), this._lastTime += t, this._snippet = t;
2938
+ };
2939
+ _proto30.destroy = function destroy() {
2940
+ for (var _t38 = this.groups.length - 1; _t38 >= 0; _t38--) {
2941
+ this.groups[_t38].destroy();
2942
+ }
2943
+ };
2944
+ return Gt;
2945
+ }(e);
2946
+ var T = function (_Graphics) {
2947
+ _inheritsLoose(T, _Graphics);
2948
+ function T(t) {
2949
+ var _this27;
2950
+ _this27 = _Graphics.call(this) || this, _this27.parentCompBox = t, _this27.lineStyle(0);
2951
+ return _this27;
2952
+ }
2953
+ var _proto31 = T.prototype;
2954
+ _proto31.updateLayerMask = function updateLayerMask(t) {
2955
+ for (var _e30 = 0; _e30 < t.viewData.length; _e30++) {
2956
+ if (t.viewData[_e30].inv) {
2957
+ var _t39 = this.parentCompBox;
2958
+ this.moveTo(0, 0), this.lineTo(_t39.w, 0), this.lineTo(_t39.w, _t39.h), this.lineTo(0, _t39.h), this.lineTo(0, 0);
2959
+ }
2960
+ var _s27 = t.viewData[_e30].v,
2961
+ _i18 = _s27.v[0];
2962
+ this.moveTo(_i18[0], _i18[1]);
2963
+ var _n10 = _s27._length;
2964
+ var _r9 = 1;
2965
+ for (; _r9 < _n10; _r9++) {
2966
+ var _t40 = _s27.o[_r9 - 1],
2967
+ _e31 = _s27.i[_r9],
2968
+ _i19 = _s27.v[_r9];
2969
+ this.bezierCurveTo(_t40[0], _t40[1], _e31[0], _e31[1], _i19[0], _i19[1]);
2970
+ }
2971
+ var _h18 = _s27.o[_r9 - 1],
2972
+ _o10 = _s27.i[0],
2973
+ _a9 = _s27.v[0];
2974
+ this.bezierCurveTo(_h18[0], _h18[1], _o10[0], _o10[1], _a9[0], _a9[1]), t.viewData[_e30].inv && this.addHole();
2975
+ }
2976
+ };
2977
+ _proto31.updateMasks = function updateMasks(t) {
2978
+ this.clear(), this.beginFill(0), this.updateLayerMask(t), this.endFill();
2979
+ };
2980
+ return T;
2981
+ }(Graphics);
2982
+ var M = function (_Graphics2) {
2983
+ _inheritsLoose(M, _Graphics2);
2984
+ function M(t) {
2985
+ var _this28;
2986
+ _this28 = _Graphics2.call(this) || this, _this28.viewport = t, _this28.lineStyle(0), _this28.initCompMask();
2987
+ return _this28;
2988
+ }
2989
+ var _proto32 = M.prototype;
2990
+ _proto32.initCompMask = function initCompMask() {
2991
+ this.clear(), this.beginFill(0);
2992
+ var t = this.viewport;
2993
+ this.moveTo(0, 0), this.lineTo(t.w, 0), this.lineTo(t.w, t.h), this.lineTo(0, t.h), this.lineTo(0, 0), this.endFill();
2994
+ };
2995
+ return M;
2996
+ }(Graphics);
2997
+ var k = function (_Container) {
2998
+ _inheritsLoose(k, _Container);
2999
+ function k(t, e) {
3000
+ var _this29;
3001
+ _this29 = _Container.call(this) || this, _this29.lottieElement = t, _this29.config = e;
3002
+ return _this29;
3003
+ }
3004
+ var _proto33 = k.prototype;
3005
+ _proto33.onSetupLottie = function onSetupLottie() {
3006
+ if (this.config.maskComp) {
3007
+ var _t41 = this.config.viewport;
3008
+ this.preCompMask = new M(_t41), this.mask = this.preCompMask, this.addChild(this.mask);
3009
+ }
3010
+ if (this.lottieElement.hasValidMasks()) {
3011
+ var _t42 = this.config.session.local;
3012
+ if (this.graphicsMasks = new T(_t42), this.mask) {
3013
+ var _t43 = new Container();
3014
+ _t43.mask = this.graphicsMasks, _t43.addChild(this.mask), this.lottieElement.innerDisplay = _t43, this.addChild(_t43);
3015
+ } else this.mask = this.graphicsMasks, this.addChild(this.mask);
3016
+ }
3017
+ };
3018
+ _proto33.setHierarchy = function setHierarchy(t) {
3019
+ this.hierarchy = t;
3020
+ };
3021
+ _proto33.show = function show() {
3022
+ this.visible = !0;
3023
+ };
3024
+ _proto33.hide = function hide() {
3025
+ this.visible = !1;
3026
+ };
3027
+ _proto33.updateLottieTransform = function updateLottieTransform(t) {
3028
+ this.x = t.x, this.y = t.y, this.pivot.x = t.anchorX, this.pivot.y = t.anchorY, this.scale.x = t.scaleX, this.scale.y = t.scaleY, this.rotation = t.rotation, this.alpha = t.alpha;
3029
+ };
3030
+ _proto33.updateLottieMasks = function updateLottieMasks(t) {
3031
+ this.graphicsMasks && this.graphicsMasks.updateMasks(t);
3032
+ };
3033
+ return k;
3034
+ }(Container);
3035
+ var C = function (_Shader) {
3036
+ _inheritsLoose(C, _Shader);
3037
+ function C(t) {
3038
+ return _Shader.call(this, t, ['attribute vec2 aVertexPosition;', 'uniform mat3 translationMatrix;', 'uniform mat3 projectionMatrix;', 'void main(void){', ' gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);', '}'].join('\n'), ['uniform float alpha;', 'uniform vec3 color;', 'void main(void){', ' gl_FragColor = vec4(color * alpha, alpha);', '}'].join('\n')) || this;
3039
+ }
3040
+ return C;
3041
+ }(Shader);
3042
+ function S(t, e) {
3043
+ this.buffer = new t(10), this.length = 0;
3044
+ }
3045
+ S.prototype = {
3046
+ reset: function reset() {
3047
+ this.length = 0;
3048
+ },
3049
+ destroy: function destroy() {
3050
+ this.buffer = null, this.length = 0;
3051
+ },
3052
+ push: function push() {
3053
+ if (this.length + arguments.length > this.buffer.length) {
3054
+ var _e32 = new this.buffer.constructor(Math.max(this.length + arguments.length, Math.round(2 * this.buffer.length)));
3055
+ _e32.set(this.buffer, 0), this.buffer = _e32;
3056
+ }
3057
+ for (var _e33 = 0; _e33 < arguments.length; _e33++) {
3058
+ this.buffer[this.length++] = _e33 < 0 || arguments.length <= _e33 ? undefined : arguments[_e33];
3059
+ }
3060
+ return this.length;
3061
+ },
3062
+ setBuffer: function setBuffer(t) {
3063
+ this.buffer = t, this.length = this.buffer.length;
3064
+ }
3065
+ };
3066
+ var D = function () {
3067
+ function D(t, e, s) {
3068
+ this.gl = t, this.vertices = new S(Float32Array), this.indices = new S(Uint16Array), this.buffer = glCore.GLBuffer.createVertexBuffer(t), this.indexBuffer = glCore.GLBuffer.createIndexBuffer(t), this.dirty = !0, this.shader = e, this.vao = new glCore.VertexArrayObject(t, s).addIndex(this.indexBuffer).addAttribute(this.buffer, e.attributes.aVertexPosition, t.FLOAT, !1, 8, 0);
3069
+ }
3070
+ var _proto34 = D.prototype;
3071
+ _proto34.reset = function reset() {
3072
+ this.vertices.reset(), this.indices.reset();
3073
+ };
3074
+ _proto34.upload = function upload() {
3075
+ this.buffer.upload(this.vertices.buffer), this.indexBuffer.upload(this.indices.buffer), this.dirty = !1;
3076
+ };
3077
+ _proto34.destroy = function destroy() {
3078
+ this.vertices.destroy(), this.indices.destroy(), this.vao.destroy(), this.buffer.destroy(), this.indexBuffer.destroy(), this.gl = null, this.buffer = null, this.indexBuffer = null;
3079
+ };
3080
+ return D;
3081
+ }();
3082
+ function _(t, e, s) {
3083
+ return t.push(e, s), t;
3084
+ }
3085
+ function O(t, e) {
3086
+ return Math.sqrt(t * t + e * e);
3087
+ }
3088
+ function L(t, e, s, i, n) {
3089
+ return function (t, e) {
3090
+ var s = 1 - t;
3091
+ return s * s * s * e;
3092
+ }(t, e) + function (t, e) {
3093
+ var s = 1 - t;
3094
+ return 3 * s * s * t * e;
3095
+ }(t, s) + function (t, e) {
3096
+ return 3 * (1 - t) * t * t * e;
3097
+ }(t, i) + function (t, e) {
3098
+ return t * t * t * e;
3099
+ }(t, n);
3100
+ }
3101
+ function A(t, e, s, i, n, r, h) {
3102
+ if (!(isFinite(e) && isFinite(s) && isFinite(i) && isFinite(n) && isFinite(r) && isFinite(h))) return t;
3103
+ var o = t[t.length - 2],
3104
+ a = t[t.length - 1],
3105
+ l = function (t, e, s, i, n, r, h, o) {
3106
+ var a = n - s,
3107
+ l = r - i,
3108
+ p = s - t,
3109
+ c = i - e;
3110
+ return O(h - n, o - r) + O(a, l) + O(p, c);
3111
+ }(o, a, e, s, i, n, r, h),
3112
+ p = Math.min(10 / l, 0.5);
3113
+ for (var _l6 = p; _l6 < 1; _l6 += p) {
3114
+ var _p5 = L(_l6, o, e, i, r),
3115
+ _c6 = L(_l6, a, s, n, h);
3116
+ t.push(_p5, _c6);
3117
+ }
3118
+ return t.push(r, h), t;
3119
+ }
3120
+ function I(t, e) {
3121
+ for (var _s28 = 0; _s28 < t.length; _s28++) {
3122
+ var _t$_s = t[_s28],
3123
+ _i20 = _t$_s.cmd,
3124
+ _n11 = _t$_s.args;
3125
+ switch (_i20) {
3126
+ case 'M':
3127
+ case 'L':
3128
+ _(e, _n11[0], _n11[1]);
3129
+ break;
3130
+ case 'C':
3131
+ A(e, _n11[0], _n11[1], _n11[2], _n11[3], _n11[4], _n11[5]);
3132
+ }
3133
+ }
3134
+ return e;
3135
+ }
3136
+ function E(t, e, s, i, n, r, h) {
3137
+ n %= 2 * Math.PI, r %= 2 * Math.PI, n < 0 && (n += 2 * Math.PI), r < 0 && (r += 2 * Math.PI), n >= r && (r += 2 * Math.PI);
3138
+ var o = r - n,
3139
+ a = 1;
3140
+ h && (a = -1, o = 2 * Math.PI - o, 0 == o && (o = 2 * Math.PI));
3141
+ var l = o * i;
3142
+ var p = Math.sqrt(l / 1) >> 0;
3143
+ p = p % 2 == 0 ? p + 1 : p;
3144
+ var c = o / p;
3145
+ var u = n;
3146
+ for (var _n12 = 0; _n12 < p + 1; _n12++) {
3147
+ t.push(e, s, e + i * Math.cos(u), s + i * Math.sin(u)), u += a * c;
3148
+ }
3149
+ }
3150
+ function B(t, e, s) {
3151
+ var i = I(t.cmds, []),
3152
+ n = t.isClosed,
3153
+ r = e.lineDash.length >= 2,
3154
+ h = e.lineWidth / 2;
3155
+ var o,
3156
+ a = [i[0], i[1]];
3157
+ for (var _t44 = 2; _t44 < i.length; _t44 += 2) {
3158
+ i[_t44] == a[a.length - 2] && i[_t44 + 1] == a[a.length - 1] || a.push(i[_t44], i[_t44 + 1]);
3159
+ }
3160
+ if (!n || a[a.length - 2] == a[0] && a[a.length - 1] == a[1] || a.push(a[0], a[1]), r) {
3161
+ var _t45 = function (t, e, s, i) {
3162
+ e && t.push(t[0], t[1]);
3163
+ var n = i,
3164
+ r = 0,
3165
+ h = 1;
3166
+ for (; n > s[r];) {
3167
+ n -= s[r], r++, h = h ? 0 : 1, r == s.length && (r = 0);
3168
+ }
3169
+ var o = [t[0], t[1]],
3170
+ a = [h];
3171
+ for (var _e34 = 2; _e34 < t.length; _e34 += 2) {
3172
+ var _i21 = [t[_e34] - t[_e34 - 2], t[_e34 + 1] - t[_e34 - 1]],
3173
+ _l7 = O(_i21[0], _i21[1]);
3174
+ _i21[0] /= _l7, _i21[1] /= _l7;
3175
+ var _p6 = 0;
3176
+ for (; _l7 - _p6 + n >= s[r];) {
3177
+ _p6 += s[r] - n, n = 0, h = h ? 0 : 1, r++, r == s.length && (r = 0), a.push(h), o.push(t[_e34 - 2] + _p6 * _i21[0], t[_e34 - 1] + _p6 * _i21[1]);
3178
+ }
3179
+ _l7 - _p6 != 0 && (o.push(t[_e34], t[_e34 + 1]), a.push(h)), n += _l7 - _p6;
3180
+ }
3181
+ return e && (t.pop(), t.pop(), o.pop(), o.pop(), a.pop()), {
3182
+ newPoints: o,
3183
+ toDrawOrNotToDraw: a
3184
+ };
3185
+ }(a, n, e.lineDash, e.lineDashOffset);
3186
+ o = _t45.toDrawOrNotToDraw, a = _t45.newPoints;
3187
+ }
3188
+ var l = s.length;
3189
+ var p = s.length;
3190
+ var c = [];
3191
+ if (n) a.push(a[2], a[3]);else {
3192
+ var _t46 = [a[2] - a[0], a[3] - a[1]],
3193
+ _i22 = O(_t46[0], _t46[1]);
3194
+ _t46[0] /= _i22, _t46[1] /= _i22;
3195
+ var _n13 = [-_t46[1], _t46[0]],
3196
+ _l8 = [a[0] + h * _n13[0], a[1] + h * _n13[1]],
3197
+ _u3 = [a[0] - h * _n13[0], a[1] - h * _n13[1]];
3198
+ if ('butt' == e.lineCap) s.push(_l8[0], _l8[1], _u3[0], _u3[1]);else if ('square' == e.lineCap) s.push(_l8[0] - h * _t46[0], _l8[1] - h * _t46[1], _u3[0] - h * _t46[0], _u3[1] - h * _t46[1]);else {
3199
+ s.push(a[0], a[1], _l8[0], _l8[1]);
3200
+ var _t47 = Math.atan2(_l8[1] - a[1], _l8[0] - a[0]),
3201
+ _e35 = Math.atan2(_u3[1] - a[1], _u3[0] - a[0]);
3202
+ E(s, a[0], a[1], h, _t47, _e35), s.push(a[0], a[1], _u3[0], _u3[1]), s.push(_l8[0], _l8[1], _u3[0], _u3[1]);
3203
+ }
3204
+ if (r) {
3205
+ var _t48 = o[0];
3206
+ for (var _e36 = p; _e36 < s.length; _e36 += 2) {
3207
+ c.push(_t48);
3208
+ }
3209
+ p = s.length;
3210
+ }
3211
+ }
3212
+ for (var _t49 = 2; _t49 < a.length - 2; _t49 += 2) {
3213
+ var _i23 = [a[_t49] - a[_t49 - 2], a[_t49 + 1] - a[_t49 - 1]],
3214
+ _n14 = [-_i23[1], _i23[0]];
3215
+ var _l9 = O(_n14[0], _n14[1]);
3216
+ _n14[0] /= _l9, _n14[1] /= _l9;
3217
+ var _u4 = [a[_t49 + 2] - a[_t49], a[_t49 + 3] - a[_t49 + 1]];
3218
+ _l9 = O(_u4[0], _u4[1]), _u4[0] /= _l9, _u4[1] /= _l9;
3219
+ var _d4 = [a[_t49] - a[_t49 - 2], a[_t49 + 1] - a[_t49 - 1]];
3220
+ _l9 = O(_d4[0], _d4[1]), _d4[0] /= _l9, _d4[1] /= _l9;
3221
+ var _f2 = [_d4[0] + _u4[0], _d4[1] + _u4[1]];
3222
+ _l9 = O(_f2[0], _f2[1]);
3223
+ var _m4 = void 0,
3224
+ _g3 = void 0,
3225
+ _y3 = 0;
3226
+ _l9 > 0 ? (_f2[0] /= _l9, _f2[1] /= _l9, _g3 = [-_f2[1], _f2[0]], _m4 = _g3[0] * _n14[0] + _g3[1] * _n14[1], _y3 = h / _m4) : (_y3 = 0, _g3 = [-_f2[1], _f2[0]]);
3227
+ var _w = [a[_t49] + _y3 * _g3[0], a[_t49 + 1] + _y3 * _g3[1]],
3228
+ _v2 = [a[_t49] - _y3 * _g3[0], a[_t49 + 1] - _y3 * _g3[1]];
3229
+ if ('miter' == e.lineJoin && 1 / _m4 <= e.miterLimit) s.push(_w[0], _w[1], _v2[0], _v2[1]);else {
3230
+ var _i24 = _d4[1] * _u4[0] - _d4[0] * _u4[1];
3231
+ if ('round' == e.lineJoin) {
3232
+ if (_i24 < 0) {
3233
+ var _e37 = [a[_t49] + _d4[1] * h, a[_t49 + 1] - _d4[0] * h],
3234
+ _i25 = [a[_t49] + _u4[1] * h, a[_t49 + 1] - _u4[0] * h];
3235
+ s.push(_w[0], _w[1], _e37[0], _e37[1]);
3236
+ var _n15 = Math.atan2(_e37[1] - a[_t49 + 1], _e37[0] - a[_t49]),
3237
+ _r10 = Math.atan2(_i25[1] - a[_t49 + 1], _i25[0] - a[_t49]);
3238
+ E(s, a[_t49], a[_t49 + 1], h, _n15, _r10), s.push(_w[0], _w[1], _i25[0], _i25[1]);
3239
+ } else {
3240
+ var _e38 = [a[_t49] - _d4[1] * h, a[_t49 + 1] + _d4[0] * h],
3241
+ _i26 = [a[_t49] - _u4[1] * h, a[_t49 + 1] + _u4[0] * h];
3242
+ s.push(_e38[0], _e38[1], _v2[0], _v2[1]);
3243
+ var _n16 = Math.atan2(_i26[1] - a[_t49 + 1], _i26[0] - a[_t49]),
3244
+ _r11 = Math.atan2(_e38[1] - a[_t49 + 1], _e38[0] - a[_t49]);
3245
+ E(s, a[_t49], a[_t49 + 1], h, _n16, _r11), s.push(_i26[0], _i26[1], _v2[0], _v2[1]);
3246
+ }
3247
+ } else if (_i24 < 0) {
3248
+ var _e39 = [a[_t49] + _d4[1] * h, a[_t49 + 1] - _d4[0] * h],
3249
+ _i27 = [a[_t49] + _u4[1] * h, a[_t49 + 1] - _u4[0] * h];
3250
+ s.push(_w[0], _w[1], _e39[0], _e39[1], _w[0], _w[1], _i27[0], _i27[1]);
3251
+ } else {
3252
+ var _e40 = [a[_t49] - _d4[1] * h, a[_t49 + 1] + _d4[0] * h],
3253
+ _i28 = [a[_t49] - _u4[1] * h, a[_t49 + 1] + _u4[0] * h];
3254
+ s.push(_e40[0], _e40[1], _v2[0], _v2[1], _i28[0], _i28[1], _v2[0], _v2[1]);
3255
+ }
3256
+ }
3257
+ if (r) {
3258
+ var _e41 = o[_t49 / 2];
3259
+ for (var _t50 = p; _t50 < s.length; _t50 += 2) {
3260
+ c.push(_e41);
3261
+ }
3262
+ p = s.length;
3263
+ }
3264
+ }
3265
+ if (n) s.push(s.buffer[l], s.buffer[l + 1], s.buffer[l + 2], s.buffer[l + 3]);else {
3266
+ var _t51 = [a[a.length - 2] - a[a.length - 4], a[a.length - 1] - a[a.length - 3]],
3267
+ _i29 = Math.sqrt(Math.pow(_t51[0], 2) + Math.pow(_t51[1], 2));
3268
+ _t51[0] /= _i29, _t51[1] /= _i29;
3269
+ var _n17 = [-_t51[1], _t51[0]],
3270
+ _r12 = [a[a.length - 2] + h * _n17[0], a[a.length - 1] + h * _n17[1]],
3271
+ _o11 = [a[a.length - 2] - h * _n17[0], a[a.length - 1] - h * _n17[1]];
3272
+ if ('butt' == e.lineCap) s.push(_r12[0], _r12[1], _o11[0], _o11[1]);else if ('square' == e.lineCap) s.push(_r12[0] + h * _t51[0], _r12[1] + h * _t51[1], _o11[0] + h * _t51[0], _o11[1] + h * _t51[1]);else {
3273
+ s.push(_r12[0], _r12[1], _o11[0], _o11[1]), s.push(a[a.length - 2], a[a.length - 1], _o11[0], _o11[1]);
3274
+ var _t52 = Math.atan2(_o11[1] - a[a.length - 1], _o11[0] - a[a.length - 2]),
3275
+ _e42 = Math.atan2(_r12[1] - a[a.length - 1], _r12[0] - a[a.length - 2]);
3276
+ E(s, a[a.length - 2], a[a.length - 1], h, _t52, _e42), s.push(a[a.length - 2], a[a.length - 1], _r12[0], _r12[1]);
3277
+ }
3278
+ }
3279
+ if (r) {
3280
+ var _t53 = o[o.length - 1];
3281
+ for (var _e43 = p; _e43 < s.length; _e43 += 2) {
3282
+ c.push(_t53);
3283
+ }
3284
+ p = s.length;
3285
+ }
3286
+ return c;
3287
+ }
3288
+ function F(t, e) {
3289
+ var s = t.isClosed;
3290
+ var i = !0;
3291
+ var n = I(t.cmds, []);
3292
+ var r = [n[0], n[1]];
3293
+ for (var _t54 = 2; _t54 < n.length; _t54 += 2) {
3294
+ n[_t54] == r[r.length - 2] && n[_t54 + 1] == r[r.length - 1] || r.push(n[_t54], n[_t54 + 1]);
3295
+ }
3296
+ if (!s || r[r.length - 2] == r[0] && r[r.length - 1] == r[1] || r.push(r[0], r[1]), r.length >= 6) {
3297
+ for (var _t55 = 0; _t55 < r.length; _t55++) {
3298
+ e.push(r[_t55]);
3299
+ }
3300
+ i = !1;
3301
+ }
3302
+ return i;
3303
+ }
3304
+ WebGLRenderer.registerPlugin('lottiegraphics', function (_ObjectRenderer) {
3305
+ _inheritsLoose(_class5, _ObjectRenderer);
3306
+ function _class5(t) {
3307
+ var _this30;
3308
+ _this30 = _ObjectRenderer.call(this, t) || this, _this30.graphicsDataPool = [], _this30.primitiveShader = null, _this30.webGLData = null, _this30.gl = t.gl, _this30.CONTEXT_UID = 0;
3309
+ return _this30;
3310
+ }
3311
+ var _proto35 = _class5.prototype;
3312
+ _proto35.onContextChange = function onContextChange() {
3313
+ this.gl = this.renderer.gl, this.CONTEXT_UID = this.renderer.CONTEXT_UID, this.primitiveShader = new C(this.gl);
3314
+ };
3315
+ _proto35.destroy = function destroy() {
3316
+ ObjectRenderer.prototype.destroy.call(this);
3317
+ for (var _t56 = 0; _t56 < this.graphicsDataPool.length; ++_t56) {
3318
+ this.graphicsDataPool[_t56].destroy();
3319
+ }
3320
+ this.graphicsDataPool = null;
3321
+ };
3322
+ _proto35.render = function render(t) {
3323
+ var e = this.renderer,
3324
+ s = e.gl,
3325
+ i = this.getWebGLData(t);
3326
+ if (t.isDirty && this.updateGraphics(t, i), 0 === i.indices.length) return;
3327
+ var n = this.primitiveShader;
3328
+ e.bindShader(n), e.state.setBlendMode(t.blendMode), n.uniforms.translationMatrix = t.transform.worldTransform.toArray(!0), n.uniforms.color = utils.hex2rgb(t.color), n.uniforms.alpha = t.worldAlpha, e.bindVao(i.vao), i.vao.draw(s.TRIANGLES, i.indices.length);
3329
+ };
3330
+ _proto35.updateGraphics = function updateGraphics(t, e) {
3331
+ e.reset(), 'stroke' === t.drawType ? this.buildStroke(t, e) : this.buildFill(t, e), t.isDirty = !1;
3332
+ };
3333
+ _proto35.buildStroke = function buildStroke(t, e) {
3334
+ var s = e.vertices,
3335
+ i = e.indices,
3336
+ n = t.paths,
3337
+ r = t.lineStyle,
3338
+ h = r.lineDash.length >= 2;
3339
+ for (var _t57 = 0; _t57 < n.length; _t57++) {
3340
+ var _e44 = n[_t57],
3341
+ _o12 = s.length / 2,
3342
+ _a10 = B(_e44, r, s);
3343
+ if (h) for (var _t58 = _o12 + 2; _t58 < s.length / 2; _t58 += 2) {
3344
+ _a10[_t58 - _o12 - 1] && i.push(_t58 - 2, _t58, _t58 - 1, _t58, _t58 + 1, _t58 - 1);
3345
+ } else for (var _t59 = _o12 + 2; _t59 < s.length / 2; _t59 += 2) {
3346
+ i.push(_t59 - 2, _t59, _t59 - 1, _t59, _t59 + 1, _t59 - 1);
3347
+ }
3348
+ }
3349
+ e.upload();
3350
+ };
3351
+ _proto35.buildFill = function buildFill(t, e) {
3352
+ var s = e.vertices,
3353
+ i = e.indices,
3354
+ n = t.paths;
3355
+ var r = [];
3356
+ var h = [];
3357
+ for (var _t60 = 0; _t60 < n.length; _t60++) {
3358
+ var _e45 = n[_t60],
3359
+ _s29 = [];
3360
+ if (F(_e45, _s29)) break;
3361
+ var _i30 = _e45.holes,
3362
+ _o13 = [];
3363
+ for (var _t61 = 0; _t61 < _i30.length; _t61++) {
3364
+ var _e46 = _i30[_t61],
3365
+ _n18 = _s29.length;
3366
+ if (F(_e46, _s29)) break;
3367
+ _o13.push(_n18 / 2);
3368
+ }
3369
+ var _a11 = utils.earcut(_s29, _o13, 2),
3370
+ _l10 = r.length / 2;
3371
+ for (var _t62 = 0; _t62 < _s29.length; _t62 += 2) {
3372
+ r.push(_s29[_t62], _s29[_t62 + 1]);
3373
+ }
3374
+ for (var _t63 = 0; _t63 < _a11.length; _t63 += 3) {
3375
+ h.push(_l10 + _a11[_t63], _l10 + _a11[_t63 + 1], _l10 + _a11[_t63 + 2]);
3376
+ }
3377
+ }
3378
+ r.length < 6 || h < 3 || (s.setBuffer(new Float32Array(r)), i.setBuffer(new Uint16Array(h)), e.upload());
3379
+ };
3380
+ _proto35.getWebGLData = function getWebGLData(t) {
3381
+ return t.webGLData && this.CONTEXT_UID === t.webGLData.CONTEXT_UID || (t.webGLData = new D(this.renderer.gl, this.primitiveShader, this.renderer.state.attribState), t.webGLData.CONTEXT_UID = this.CONTEXT_UID), t.webGLData;
3382
+ };
3383
+ return _class5;
3384
+ }(ObjectRenderer));
3385
+ CanvasRenderer.registerPlugin('lottiegraphics', function () {
3386
+ function _class6(t) {
3387
+ this.renderer = t;
3388
+ }
3389
+ var _proto36 = _class6.prototype;
3390
+ _proto36.destroy = function destroy() {
3391
+ this.renderer = null;
3392
+ };
3393
+ _proto36.render = function render(t) {
3394
+ var e = this.renderer,
3395
+ s = e.context,
3396
+ i = t.lineStyle,
3397
+ n = t.worldAlpha,
3398
+ r = t.transform.worldTransform,
3399
+ h = e.resolution;
3400
+ s.setTransform(r.a * h, r.b * h, r.c * h, r.d * h, r.tx * h, r.ty * h), e.setBlendMode(t.blendMode), s.globalAlpha = n, 'stroke' === t.drawType ? (s.lineWidth = i.lineWidth, s.lineJoin = i.lineJoin, s.miterLimit = i.miterLimit, s.lineCap = i.lineCap, s.lineDashOffset = i.lineDashOffset, s.setLineDash(i.lineDash || []), this.buildStroke(t)) : this.buildFill(t);
3401
+ };
3402
+ _proto36.buildStroke = function buildStroke(t) {
3403
+ var e = this.renderer.context,
3404
+ s = "#" + ("00000" + (0 | t.color).toString(16)).substr(-6),
3405
+ i = t.paths,
3406
+ n = t.lineStyle;
3407
+ e.lineWidth = n.lineWidth, e.lineJoin = n.lineJoin, e.miterLimit = n.miterLimit, e.lineCap = n.lineCap, e.lineDashOffset = n.lineDashOffset, e.setLineDash(n.lineDash || []), e.beginPath();
3408
+ for (var _t64 = 0; _t64 < i.length; _t64++) {
3409
+ this.drawPath(e, i[_t64]);
3410
+ }
3411
+ e.strokeStyle = s, e.stroke();
3412
+ };
3413
+ _proto36.buildFill = function buildFill(t) {
3414
+ var e = this.renderer.context,
3415
+ s = "#" + ("00000" + (0 | t.color).toString(16)).substr(-6),
3416
+ i = t.paths;
3417
+ e.beginPath();
3418
+ for (var _t65 = 0; _t65 < i.length; _t65++) {
3419
+ var _s30 = i[_t65];
3420
+ this.drawPath(e, _s30);
3421
+ for (var _t66 = 0; _t66 < _s30.holes.length; _t66++) {
3422
+ this.drawPath(e, _s30.holes[_t66]);
3423
+ }
3424
+ }
3425
+ e.fillStyle = s, e.fill();
3426
+ };
3427
+ _proto36.drawPath = function drawPath(t, e) {
3428
+ for (var _s31 = 0; _s31 < e.cmds.length; _s31++) {
3429
+ var _e$cmds$_s = e.cmds[_s31],
3430
+ _i31 = _e$cmds$_s.cmd,
3431
+ _n19 = _e$cmds$_s.args;
3432
+ switch (_i31) {
3433
+ case 'M':
3434
+ t.moveTo(_n19[0], _n19[1]);
3435
+ break;
3436
+ case 'L':
3437
+ t.lineTo(_n19[0], _n19[1]);
3438
+ break;
3439
+ case 'C':
3440
+ t.bezierCurveTo(_n19[0], _n19[1], _n19[2], _n19[3], _n19[4], _n19[5]);
3441
+ }
3442
+ }
3443
+ };
3444
+ return _class6;
3445
+ }());
3446
+ var W = function () {
3447
+ function W() {
3448
+ this.cmds = [], this.holes = [], this.isClosed = !1, this.isClockWise = !1;
3449
+ }
3450
+ var _proto37 = W.prototype;
3451
+ _proto37.getLength = function getLength() {
3452
+ return this.cmds.length;
3453
+ };
3454
+ _proto37.add = function add(t, e) {
3455
+ this.cmds.push({
3456
+ cmd: t,
3457
+ args: e
3458
+ });
3459
+ };
3460
+ _proto37.moveTo = function moveTo(t, e) {
3461
+ if (t === void 0) {
3462
+ t = 0;
3463
+ }
3464
+ if (e === void 0) {
3465
+ e = 0;
3466
+ }
3467
+ this.add('M', [t, e]);
3468
+ };
3469
+ _proto37.lineTo = function lineTo(t, e) {
3470
+ this.add('L', [t, e]);
3471
+ };
3472
+ _proto37.bezierCurveTo = function bezierCurveTo(t, e, s, i, n, r) {
3473
+ this.add('C', [t, e, s, i, n, r]);
3474
+ };
3475
+ _proto37.closePath = function closePath() {
3476
+ this.isClosed = !0;
3477
+ };
3478
+ return W;
3479
+ }();
3480
+ var X = function (_Container2) {
3481
+ _inheritsLoose(X, _Container2);
3482
+ function X() {
3483
+ var _this31;
3484
+ _this31 = _Container2.call(this) || this, _this31.paths = [], _this31._samplerPoints = [], _this31.currentPath = null, _this31.color = 0, _this31.lineStyle = {
3485
+ lineWidth: 1,
3486
+ lineJoin: 'miter',
3487
+ miterLimit: 10,
3488
+ lineCap: 'butt',
3489
+ lineDash: [],
3490
+ lineDashOffset: 0
3491
+ }, _this31.isDirty = !0, _this31.drawType = '', _this31.blendMode = BLEND_MODES.NORMAL, _this31.webGLData = null, _this31.firstIsClockWise = !0, _this31.preClockWiseStatus = null;
3492
+ return _this31;
3493
+ }
3494
+ var _proto38 = X.prototype;
3495
+ _proto38.clear = function clear() {
3496
+ this.paths.length = 0, this.currentPath = null, this.firstIsClockWise = !0, this.preClockWiseStatus = null, this.isDirty = !0;
3497
+ };
3498
+ _proto38.moveTo = function moveTo(t, e) {
3499
+ if (t === void 0) {
3500
+ t = 0;
3501
+ }
3502
+ if (e === void 0) {
3503
+ e = 0;
3504
+ }
3505
+ this.endPath(), this.currentPath = new W(), this.currentPath.moveTo(t, e), this._samplerPoints.push([t, e]);
3506
+ };
3507
+ _proto38.lineTo = function lineTo(t, e) {
3508
+ this.currentPath.lineTo(t, e), this._samplerPoints.push([t, e]);
3509
+ };
3510
+ _proto38.bezierCurveTo = function bezierCurveTo(t, e, s, i, n, r) {
3511
+ this.currentPath.bezierCurveTo(t, e, s, i, n, r), this._samplerPoints.push([n, r]);
3512
+ };
3513
+ _proto38.endPath = function endPath() {
3514
+ if (this.currentPath && this.currentPath.getLength() > 1) {
3515
+ var _t67 = this.paths.length,
3516
+ _e47 = function (t) {
3517
+ var e = t.length;
3518
+ var s = 0;
3519
+ for (var _i32 = e - 1, _n20 = 0; _n20 < e; _i32 = _n20++) {
3520
+ s += t[_i32][0] * t[_n20][1] - t[_n20][0] * t[_i32][1];
3521
+ }
3522
+ return 0.5 * s;
3523
+ }(this._samplerPoints) > 0;
3524
+ if (this.currentPath.isClockWise = _e47, 0 === _t67 && (this.firstIsClockWise = _e47), _t67 > 0 && this.preClockWiseStatus === this.firstIsClockWise && this.preClockWiseStatus !== _e47) {
3525
+ (_t67 > 0 ? this.paths[_t67 - 1] : null).holes.push(this.currentPath);
3526
+ } else this.paths.push(this.currentPath), this.preClockWiseStatus = _e47;
3527
+ this.currentPath = null, this.isDirty = !0;
3528
+ }
3529
+ this._samplerPoints.length = 0;
3530
+ };
3531
+ _proto38.closePath = function closePath() {
3532
+ this.currentPath.closePath();
3533
+ };
3534
+ _proto38.stroke = function stroke() {
3535
+ this.endPath(), this.drawType = 'stroke';
3536
+ };
3537
+ _proto38.fill = function fill() {
3538
+ null !== this.currentPath && (this.closePath(), this.endPath(), this.drawType = 'fill');
3539
+ };
3540
+ _proto38._renderWebGL = function _renderWebGL(t) {
3541
+ t.setObjectRenderer(t.plugins.lottiegraphics), t.plugins.lottiegraphics.render(this);
3542
+ };
3543
+ _proto38._renderCanvas = function _renderCanvas(t) {
3544
+ t.plugins.lottiegraphics.render(this);
3545
+ };
3546
+ return X;
3547
+ }(Container);
3548
+ var z = function (_X) {
3549
+ _inheritsLoose(z, _X);
3550
+ function z(t, e) {
3551
+ var _this32;
3552
+ _this32 = _X.call(this) || this, _this32.lottieElement = t, _this32.config = e, _this32.passMatrix = new Matrix();
3553
+ return _this32;
3554
+ }
3555
+ var _proto39 = z.prototype;
3556
+ _proto39.setShapeTransform = function setShapeTransform() {
3557
+ var t = this.lottieElement.preTransforms.finalTransform.props;
3558
+ this.passMatrix.set(t[0], t[1], t[4], t[5], t[12], t[13]), this.transform.setFromMatrix(this.passMatrix);
3559
+ };
3560
+ _proto39.updateTransform = function updateTransform() {
3561
+ this.setShapeTransform(), this.transform.updateTransform(this.parent.transform), this.worldAlpha = this.alpha * this.parent.worldAlpha, this._bounds.updateID++;
3562
+ };
3563
+ _proto39.updateLottieGrahpics = function updateLottieGrahpics(e) {
3564
+ var s$1 = e.type;
3565
+ if (this.clear(), ('st' === s$1 || 'gs' === s$1) && 0 === e.wi || !e.data._shouldRender || 0 === e.coOp) return;
3566
+ var i = e.elements,
3567
+ n = i.length;
3568
+ for (var _t68 = 0; _t68 < n; _t68 += 1) {
3569
+ var _e48 = i[_t68].trNodes,
3570
+ _s32 = _e48.length;
3571
+ for (var _t69 = 0; _t69 < _s32; _t69++) {
3572
+ 'm' == _e48[_t69].t ? this.moveTo(_e48[_t69].p[0], _e48[_t69].p[1]) : 'c' == _e48[_t69].t ? this.bezierCurveTo(_e48[_t69].pts[0], _e48[_t69].pts[1], _e48[_t69].pts[2], _e48[_t69].pts[3], _e48[_t69].pts[4], _e48[_t69].pts[5]) : this.closePath();
3573
+ }
3574
+ }
3575
+ 'st' !== s$1 && 'gs' !== s$1 || (e.da ? (this.lineStyle.lineDash = e.da, this.lineStyle.lineDashOffset = e.do) : this.lineStyle.lineDash = []), 'st' === s$1 || 'gs' === s$1 ? (this.lineStyle.lineWidth = e.wi, this.lineStyle.lineCap = e.lc, this.lineStyle.lineJoin = e.lj, this.lineStyle.miterLimit = e.ml || 0, this.color = s.rgb2hex(e.co || e.grd), this.alpha = e.coOp, this.stroke()) : (this.color = s.rgb2hex(e.co || e.grd), this.alpha = e.coOp, this.fill());
3576
+ };
3577
+ return z;
3578
+ }(X);
3579
+ var G = function (_Graphics3) {
3580
+ _inheritsLoose(G, _Graphics3);
3581
+ function G(t, e) {
3582
+ var _this33;
3583
+ _this33 = _Graphics3.call(this) || this, _this33.lottieElement = t, _this33.config = e;
3584
+ var s = parseInt(e.color.replace('#', ''), 16);
3585
+ _this33.beginFill(s), _this33.drawRect(0, 0, e.rect.width, e.rect.height), _this33.endFill();
3586
+ return _this33;
3587
+ }
3588
+ var _proto40 = G.prototype;
3589
+ _proto40.onSetupLottie = function onSetupLottie() {
3590
+ if (this.lottieElement.hasValidMasks()) {
3591
+ var _t70 = this.config.session.local;
3592
+ this.graphicsMasks = new T(_t70), this.mask = this.graphicsMasks, this.addChild(this.mask);
3593
+ }
3594
+ };
3595
+ _proto40.setHierarchy = function setHierarchy(t) {
3596
+ this.hierarchy = t;
3597
+ };
3598
+ _proto40.show = function show() {
3599
+ this.visible = !0;
3600
+ };
3601
+ _proto40.hide = function hide() {
3602
+ this.visible = !1;
3603
+ };
3604
+ _proto40.updateLottieTransform = function updateLottieTransform(t) {
3605
+ this.x = t.x, this.y = t.y, this.pivot.x = t.anchorX, this.pivot.y = t.anchorY, this.scale.x = t.scaleX, this.scale.y = t.scaleY, this.rotation = t.rotation, this.alpha = t.alpha;
3606
+ };
3607
+ _proto40.updateLottieMasks = function updateLottieMasks(t) {
3608
+ this.graphicsMasks && this.graphicsMasks.updateMasks(t);
3609
+ };
3610
+ return G;
3611
+ }(Graphics);
3612
+ var R = function (_Sprite) {
3613
+ _inheritsLoose(R, _Sprite);
3614
+ function R(t, e) {
3615
+ var _this34;
3616
+ var s = e.texture,
3617
+ i = e.asset;
3618
+ _this34 = _Sprite.call(this, s) || this, s.baseTexture.hasLoaded ? (s.orig = new Rectangle(0, 0, i.w, i.h), s._updateUvs()) : s.baseTexture.on('loaded', function () {
3619
+ s.orig = new Rectangle(0, 0, i.w, i.h), s._updateUvs();
3620
+ }), _this34.lottieElement = t, _this34.config = e;
3621
+ return _this34;
3622
+ }
3623
+ var _proto41 = R.prototype;
3624
+ _proto41.onSetupLottie = function onSetupLottie() {
3625
+ if (this.lottieElement.hasValidMasks()) {
3626
+ var _t71 = this.config.session.local;
3627
+ this.graphicsMasks = new T(_t71), this.mask = this.graphicsMasks, this.addChild(this.mask);
3628
+ }
3629
+ };
3630
+ _proto41.setHierarchy = function setHierarchy(t) {
3631
+ this.hierarchy = t;
3632
+ };
3633
+ _proto41.show = function show() {
3634
+ this.visible = !0;
3635
+ };
3636
+ _proto41.hide = function hide() {
3637
+ this.visible = !1;
3638
+ };
3639
+ _proto41.updateLottieTransform = function updateLottieTransform(t) {
3640
+ this.x = t.x, this.y = t.y, this.pivot.x = t.anchorX, this.pivot.y = t.anchorY, this.scale.x = t.scaleX, this.scale.y = t.scaleY, this.rotation = t.rotation, this.alpha = t.alpha;
3641
+ };
3642
+ _proto41.updateLottieMasks = function updateLottieMasks(t) {
3643
+ this.graphicsMasks && this.graphicsMasks.updateMasks(t);
3644
+ };
3645
+ return R;
3646
+ }(Sprite);
3647
+ var U = /^(https?:)?\/\//;
3648
+ var N = function (_e49) {
3649
+ _inheritsLoose(N, _e49);
3650
+ function N(t, _ref3) {
3651
+ var _this35;
3652
+ var e = _ref3.prefix,
3653
+ _ref3$autoLoad = _ref3.autoLoad,
3654
+ s = _ref3$autoLoad === void 0 ? !0 : _ref3$autoLoad;
3655
+ _this35 = _e49.call(this) || this, _this35.assets = t, _this35.prefix = e || '', _this35.textures = {}, _this35._total = 0, _this35._failed = 0, _this35._received = 0, _this35.loaded = !1, s && _this35.load();
3656
+ return _this35;
3657
+ }
3658
+ var _proto42 = N.prototype;
3659
+ _proto42.load = function load() {
3660
+ var _this36 = this;
3661
+ this.assets.forEach(function (t) {
3662
+ var e = t.id,
3663
+ s = function (t, e) {
3664
+ if (1 === t.e) return t.p;
3665
+ e && (e = e.replace(/\/?$/, '/'));
3666
+ var s = t.u + t.p;
3667
+ var i = '';
3668
+ return i = t.up ? t.up : U.test(s) ? s : e + s, i;
3669
+ }(t, _this36.prefix),
3670
+ i = Texture.fromImage(s, '*');
3671
+ _this36.textures[e] = i, _this36._total++, i.baseTexture.hasLoaded ? (_this36._received++, _this36.emit('update'), _this36._received + _this36._failed >= _this36._total && _this36._onComplete()) : (i.baseTexture.once('loaded', function () {
3672
+ _this36._received++, _this36.emit('update'), _this36._received + _this36._failed >= _this36._total && _this36._onComplete();
3673
+ }), i.baseTexture.once('error', function () {
3674
+ _this36._failed++, _this36.emit('update'), _this36._received + _this36._failed >= _this36._total && _this36._onComplete();
3675
+ }));
3676
+ });
3677
+ };
3678
+ _proto42._onComplete = function _onComplete() {
3679
+ this.loaded = !0, this.emit('complete'), this._failed > 0 && (this._failed >= this._total ? this.emit('fail') : this.emit('partlyfail', this._failed));
3680
+ };
3681
+ _proto42.getTextureById = function getTextureById(t) {
3682
+ return this.textures[t];
3683
+ };
3684
+ return N;
3685
+ }(e);
3686
+ function j(t) {
3687
+ return t.response && 'object' == typeof t.response ? t.response : t.response && 'string' == typeof t.response ? JSON.parse(t.response) : t.responseText ? JSON.parse(t.responseText) : void 0;
3688
+ }
3689
+ var q = function (_e50) {
3690
+ _inheritsLoose(q, _e50);
3691
+ function q(t) {
3692
+ var _this37;
3693
+ _this37 = _e50.call(this) || this, _this37.path = t, _this37.onSuccess = _this37.onSuccess.bind(_assertThisInitialized(_this37)), _this37.onFail = _this37.onFail.bind(_assertThisInitialized(_this37)), function (t, e, s) {
3694
+ var i,
3695
+ n = new XMLHttpRequestAlias();
3696
+ n.open('GET', t, !0);
3697
+ try {
3698
+ n.responseType = 'json';
3699
+ } catch (t) {
3700
+ console.error('lottie-pixi loadAjax:', t);
3701
+ }
3702
+ n.send(), n.onreadystatechange = function () {
3703
+ if (4 == n.readyState) if (200 == n.status) i = j(n), e(i);else try {
3704
+ i = j(n), e(i);
3705
+ } catch (t) {
3706
+ s && s(t);
3707
+ }
3708
+ };
3709
+ }(t, _this37.onSuccess, _this37.onFail);
3710
+ return _this37;
3711
+ }
3712
+ var _proto43 = q.prototype;
3713
+ _proto43.onSuccess = function onSuccess(t) {
3714
+ this.emit('success', t), this.emit('complete', t);
3715
+ };
3716
+ _proto43.onFail = function onFail(t) {
3717
+ this.emit('fail', t), this.emit('error', t);
3718
+ };
3719
+ return q;
3720
+ }(e);
3721
+ var Y = {
3722
+ Linear: {
3723
+ None: function None(t) {
3724
+ return t;
3725
+ }
3726
+ },
3727
+ Ease: {
3728
+ In: function () {
3729
+ var t = new M$1(0.42, 0, 1, 1);
3730
+ return function (e) {
3731
+ return t.get(e);
3732
+ };
3733
+ }(),
3734
+ Out: function () {
3735
+ var t = new M$1(0, 0, 0.58, 1);
3736
+ return function (e) {
3737
+ return t.get(e);
3738
+ };
3739
+ }(),
3740
+ InOut: function () {
3741
+ var t = new M$1(0.42, 0, 0.58, 1);
3742
+ return function (e) {
3743
+ return t.get(e);
3744
+ };
3745
+ }(),
3746
+ Bezier: function Bezier(t, e, i, n) {
3747
+ var r = new M$1(t, e, i, n);
3748
+ return function (t) {
3749
+ return r.get(t);
3750
+ };
3751
+ }
3752
+ },
3753
+ Elastic: {
3754
+ In: function In(t) {
3755
+ return 0 === t ? 0 : 1 === t ? 1 : -Math.pow(2, 10 * (t - 1)) * Math.sin(5 * (t - 1.1) * Math.PI);
3756
+ },
3757
+ Out: function Out(t) {
3758
+ return 0 === t ? 0 : 1 === t ? 1 : Math.pow(2, -10 * t) * Math.sin(5 * (t - 0.1) * Math.PI) + 1;
3759
+ },
3760
+ InOut: function InOut(t) {
3761
+ return 0 === t ? 0 : 1 === t ? 1 : (t *= 2) < 1 ? -0.5 * Math.pow(2, 10 * (t - 1)) * Math.sin(5 * (t - 1.1) * Math.PI) : 0.5 * Math.pow(2, -10 * (t - 1)) * Math.sin(5 * (t - 1.1) * Math.PI) + 1;
3762
+ }
3763
+ },
3764
+ Back: {
3765
+ In: function In(t) {
3766
+ var e = 1.70158;
3767
+ return t * t * ((e + 1) * t - e);
3768
+ },
3769
+ Out: function Out(t) {
3770
+ var e = 1.70158;
3771
+ return --t * t * ((e + 1) * t + e) + 1;
3772
+ },
3773
+ InOut: function InOut(t) {
3774
+ var e = 2.5949095;
3775
+ return (t *= 2) < 1 ? t * t * ((e + 1) * t - e) * 0.5 : 0.5 * ((t -= 2) * t * ((e + 1) * t + e) + 2);
3776
+ }
3777
+ },
3778
+ Bounce: {
3779
+ In: function In(t) {
3780
+ return 1 - Y.Bounce.Out(1 - t);
3781
+ },
3782
+ Out: function Out(t) {
3783
+ return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375;
3784
+ },
3785
+ InOut: function InOut(t) {
3786
+ return t < 0.5 ? 0.5 * Y.Bounce.In(2 * t) : 0.5 * Y.Bounce.Out(2 * t - 1) + 0.5;
3787
+ }
3788
+ }
3789
+ };
3790
+ function J(s$1) {
3791
+ e.call(this), this.element = s$1.element || {}, this.duration = s$1.duration || 300, this.living = !0, this.resident = s$1.resident || !1, this.infinite = s$1.infinite || !1, this.alternate = s$1.alternate || !1, this.repeats = s$1.repeats || 0, this.delay = s$1.delay || 0, this.wait = s$1.wait || 0, this.timeScale = s.isNumber(s$1.timeScale) ? s$1.timeScale : 1, s$1.onComplete && this.on('complete', s$1.onComplete.bind(this)), s$1.onUpdate && this.on('update', s$1.onUpdate.bind(this)), this.init(), this.paused = !1;
3792
+ }
3793
+ function V(e) {
3794
+ J.call(this, e), e.from = e.from || {};
3795
+ for (var s$1 in e.to) {
3796
+ s.isUndefined(e.from[s$1]) && (e.from[s$1] = this.element[s$1]);
3797
+ }
3798
+ this.ease = e.ease || Y.Ease.InOut, this.from = e.from, this.to = e.to;
3799
+ }
3800
+ function H(e) {
3801
+ J.call(this, e), this.dynamicProperties = [], this._mdf = !1, this.keyframes = s.copyJSON(e.keyframes), this.frameRate = e.frameRate || 30, this.tpf = 1e3 / this.frameRate, this.ip = s.isUndefined(e.ip) ? this.keyframes.ip : e.ip, this.op = s.isUndefined(e.ip) ? this.keyframes.op : e.op, this.tfs = this.op - this.ip, this.duration = this.tfs * this.tpf, this.ignoreProps = s.isArray(e.ignoreProps) ? e.ignoreProps : [], this.transform = new qt(this, this.keyframes.ks);
3802
+ }
3803
+ function $(t, e) {
3804
+ J.call(this, e), this.runners = [], this.queues = [], this.cursor = 0, this.total = 0, this.alternate = !1, t && this.then(t);
3805
+ }
3806
+ J.prototype = Object.create(e.prototype), J.prototype.update = function (e) {
3807
+ var s$1 = this.direction * this.timeScale * e;
3808
+ if (this.waitCut > 0) return void (this.waitCut -= Math.abs(s$1));
3809
+ if (this.paused || !this.living || this.delayCut > 0) return void (this.delayCut > 0 && (this.delayCut -= Math.abs(s$1)));
3810
+ this.progress += s$1;
3811
+ var i = !1;
3812
+ var n = this.progress;
3813
+ var r;
3814
+ return this.spill() && (this.repeatsCut > 0 || this.infinite ? (this.repeatsCut > 0 && --this.repeatsCut, this.delayCut = this.delay, this.alternate ? (this.direction *= -1, this.progress = s.codomainBounce(this.progress, 0, this.duration)) : (this.direction = 1, this.progress = s.euclideanModulo(this.progress, this.duration))) : i = !0), i ? (this.resident || (this.living = !1), this.progress = s.clamp(n, 0, this.duration), r = this.nextPose(), this.emit('complete', r, n - this.progress)) : (r = this.nextPose(), this.emit('update', r, this.progress / this.duration)), r;
3815
+ }, J.prototype.spill = function () {
3816
+ var t = this.progress <= 0 && -1 === this.direction,
3817
+ e = this.progress >= this.duration && 1 === this.direction;
3818
+ return t || e;
3819
+ }, J.prototype.init = function () {
3820
+ this.direction = 1, this.progress = 0, this.repeatsCut = this.repeats, this.delayCut = this.delay, this.waitCut = this.wait;
3821
+ }, J.prototype.nextPose = function () {
3822
+ console.warn('should be overwrite');
3823
+ }, J.prototype.linear = function (t, e, s) {
3824
+ return (e - t) * s + t;
3825
+ }, J.prototype.setSpeed = function (t) {
3826
+ return this.timeScale = t, this;
3827
+ }, J.prototype.pause = function () {
3828
+ return this.paused = !0, this;
3829
+ }, J.prototype.resume = function () {
3830
+ return this.paused = !1, this;
3831
+ }, J.prototype.restart = J.prototype.resume, J.prototype.stop = function () {
3832
+ return this.repeats = 0, this.infinite = !1, this.progress = this.duration, this;
3833
+ }, J.prototype.cancel = function () {
3834
+ return this.living = !1, this;
3835
+ }, V.prototype = Object.create(J.prototype), V.prototype.nextPose = function () {
3836
+ var t = {},
3837
+ e = this.ease(this.progress / this.duration);
3838
+ for (var _s33 in this.to) {
3839
+ void 0 !== this.element[_s33] && (this.element[_s33] = t[_s33] = this.linear(this.from[_s33], this.to[_s33], e));
3840
+ }
3841
+ return t;
3842
+ }, H.prototype = Object.create(J.prototype), H.prototype.prepareProperties = function (t) {
3843
+ var e = this.dynamicProperties.length;
3844
+ var s;
3845
+ for (s = 0; s < e; s += 1) {
3846
+ this.dynamicProperties[s].getValue(t), this.dynamicProperties[s]._mdf && (this._mdf = !0);
3847
+ }
3848
+ }, H.prototype.addDynamicProperty = function (t) {
3849
+ -1 === this.dynamicProperties.indexOf(t) && this.dynamicProperties.push(t);
3850
+ }, H.prototype.nextPose = function () {
3851
+ var t = {},
3852
+ e = this.ip + this.progress / this.tpf;
3853
+ return this.prepareProperties(e), -1 === this.ignoreProps.indexOf('position') && (-1 === this.ignoreProps.indexOf('x') && (t.x = this.element.x = this.transform.x), -1 === this.ignoreProps.indexOf('y') && (t.y = this.element.y = this.transform.y)), -1 === this.ignoreProps.indexOf('pivot') && (t.pivot = {}, -1 === this.ignoreProps.indexOf('pivotX') && (t.pivot.x = this.element.pivot.x = this.transform.anchorX), -1 === this.ignoreProps.indexOf('pivotY') && (t.pivot.y = this.element.pivot.y = this.transform.anchorY)), -1 === this.ignoreProps.indexOf('scale') && (t.scale = {}, -1 === this.ignoreProps.indexOf('scaleX') && (t.scale.x = this.element.scale.x = this.transform.scaleX), -1 === this.ignoreProps.indexOf('scaleY') && (t.scale.y = this.element.scale.y = this.transform.scaleY)), -1 === this.ignoreProps.indexOf('rotation') && (t.rotation = this.element.rotation = this.transform.rotation), -1 === this.ignoreProps.indexOf('alpha') && (t.alpha = this.element.alpha = this.transform.alpha), t;
3854
+ }, $.prototype = Object.create(J.prototype), $.prototype.then = function (t) {
3855
+ return this.queues.push(t), this.total = this.queues.length, this;
3856
+ }, $.prototype.nextOne = function (t, e) {
3857
+ this.runners[this.cursor].init(), this.cursor++, this._residueTime = Math.abs(e);
3858
+ }, $.prototype.initOne = function () {
3859
+ var t = this.queues[this.cursor];
3860
+ t.infinite = !1, t.resident = !0, t.element = this.element;
3861
+ var e = null;
3862
+ t.keyframes ? e = new H(t) : t.to && (e = new V(t)), null !== e && (e.on('complete', this.nextOne.bind(this)), this.runners.push(e));
3863
+ }, $.prototype.nextPose = function (t) {
3864
+ return !this.runners[this.cursor] && this.queues[this.cursor] && this.initOne(), this._residueTime > 0 && (t += this._residueTime, this._residueTime = 0), this.runners[this.cursor].update(t);
3865
+ }, $.prototype.update = function (t) {
3866
+ if (this.wait > 0) return void (this.wait -= Math.abs(t));
3867
+ if (this.paused || !this.living || this.delayCut > 0) return void (this.delayCut > 0 && (this.delayCut -= Math.abs(t)));
3868
+ var e = this.cursor,
3869
+ s = this.nextPose(this.timeScale * t);
3870
+ return this.emit('update', {
3871
+ index: e,
3872
+ pose: s
3873
+ }, this.progress / this.duration), this.spill() && (this.repeats > 0 || this.infinite ? (this.repeats > 0 && --this.repeats, this.delayCut = this.delay, this.cursor = 0) : (this.resident || (this.living = !1), this.emit('complete', s))), s;
3874
+ }, $.prototype.spill = function () {
3875
+ return this.cursor >= this.total;
3876
+ };
3877
+ var K = {
3878
+ settings: settings,
3879
+ UPDATE_PRIORITY: UPDATE_PRIORITY,
3880
+ animationTicker: ticker.shared
3881
+ };
3882
+ function Z(t) {
3883
+ this.element = t, this.animates = [], this.timeScale = 1, this.paused = !1, this.updateDeltaTime = this.updateDeltaTime.bind(this), K.animationTicker.add(this.updateDeltaTime, K.UPDATE_PRIORITY.HIGH);
3884
+ }
3885
+ Z.prototype.clearAnimators = function (t) {
3886
+ if (this.paused) return;
3887
+ var e = this.animates;
3888
+ for (var _s34 = 0; _s34 < t.length; _s34++) {
3889
+ var _i33 = t[_s34];
3890
+ e[_i33].living || e[_i33].resident || this.animates.splice(_i33, 1);
3891
+ }
3892
+ }, Z.prototype.updateDeltaTime = function (t) {
3893
+ if (this.animates.length <= 0) return;
3894
+ var e = t / K.settings.TARGET_FPMS;
3895
+ this.update(e);
3896
+ }, Z.prototype.update = function (t) {
3897
+ if (this.paused) return;
3898
+ if (this.animates.length <= 0) return;
3899
+ t = this.timeScale * t;
3900
+ var e = [];
3901
+ for (var _s35 = 0; _s35 < this.animates.length; _s35++) {
3902
+ this.animates[_s35].living || this.animates[_s35].resident ? this.animates[_s35].update(t) : e.push(_s35);
3903
+ }
3904
+ e.length > 0 && this.clearAnimators(e);
3905
+ }, Z.prototype.animate = function (t, e) {
3906
+ return t.element = this.element, this._addMove(new V(t), e);
3907
+ }, Z.prototype.queues = function (t, e, s) {
3908
+ return e.element = this.element, this._addMove(new $(t, e), s);
3909
+ }, Z.prototype.bodymovin = function (t, e) {
3910
+ return t.element = this.element, this._addMove(new H(t), e);
3911
+ }, Z.prototype._addMove = function (t, e) {
3912
+ return e && this.clearAll(), this.animates.push(t), t;
3913
+ }, Z.prototype.pause = function () {
3914
+ this.paused = !0;
3915
+ }, Z.prototype.resume = function () {
3916
+ this.paused = !1;
3917
+ }, Z.prototype.restart = Z.prototype.resume, Z.prototype.setSpeed = function (t) {
3918
+ this.timeScale = t;
3919
+ }, Z.prototype.clearAll = function () {
3920
+ this.animates.length = 0;
3921
+ }, DisplayObject.prototype.setupAnimations = function () {
3922
+ this.animations || (this.animations = new Z(this));
3923
+ }, DisplayObject.prototype.animate = function (t, e) {
3924
+ return this.animations || this.setupAnimations(), this.animations.animate(t, e);
3925
+ }, DisplayObject.prototype.queues = function (t, e, s) {
3926
+ if (e === void 0) {
3927
+ e = {};
3928
+ }
3929
+ return this.animations || this.setupAnimations(), this.animations.queues(t, e, s);
3930
+ }, DisplayObject.prototype.bodymovin = function (t, e) {
3931
+ return this.animations || this.setupAnimations(), this.animations.bodymovin(t, e);
3932
+ }, Object.defineProperties(DisplayObject.prototype, {
3933
+ scaleXY: {
3934
+ get: function get() {
3935
+ return this.scale.x;
3936
+ },
3937
+ set: function set(t) {
3938
+ this.scale.set(t);
3939
+ }
3940
+ },
3941
+ scaleX: {
3942
+ get: function get() {
3943
+ return this.scale.x;
3944
+ },
3945
+ set: function set(t) {
3946
+ this.scale.x = t;
3947
+ }
3948
+ },
3949
+ scaleY: {
3950
+ get: function get() {
3951
+ return this.scale.y;
3952
+ },
3953
+ set: function set(t) {
3954
+ this.scale.y = t;
3955
+ }
3956
+ },
3957
+ pivotX: {
3958
+ get: function get() {
3959
+ return this.pivot.x;
3960
+ },
3961
+ set: function set(t) {
3962
+ this.pivot.x = t;
3963
+ }
3964
+ },
3965
+ pivotY: {
3966
+ get: function get() {
3967
+ return this.pivot.y;
3968
+ },
3969
+ set: function set(t) {
3970
+ this.pivot.y = t;
3971
+ }
3972
+ }
3973
+ }), Container.prototype.updateTransform = function () {
3974
+ this.emit('pretransform'), this._boundsID++, this.hierarchy && this.hierarchy.transform ? (this.hierarchy.updateTransform(), this.transform.updateTransform(this.hierarchy.transform)) : this.transform.updateTransform(this.parent.transform), this.worldAlpha = this.alpha * this.parent.worldAlpha;
3975
+ for (var _t72 = 0, _e51 = this.children.length; _t72 < _e51; ++_t72) {
3976
+ var _e52 = this.children[_t72];
3977
+ _e52.visible && _e52.updateTransform();
3978
+ }
3979
+ this.emit('posttransform');
3980
+ }, Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
3981
+ var _ref4 = iOSVersion(windowAlias.navigator.userAgent) || {},
3982
+ major = _ref4.major;
3983
+
3984
+ function dataURL2blob(dataURL) {
3985
+ var binaryString = atob(dataURL.split(',')[1]);
3986
+ var arrayBuffer = new ArrayBuffer(binaryString.length);
3987
+ var intArray = new Uint8Array(arrayBuffer);
3988
+ var mime = dataURL.split(',')[0].match(/:(.*?);/)[1];
3989
+ for (var _i34 = 0, _j = binaryString.length; _i34 < _j; _i34++) {
3990
+ intArray[_i34] = binaryString.charCodeAt(_i34);
3991
+ }
3992
+ var data = [intArray];
3993
+ var result;
3994
+ try {
3995
+ result = new Blob(data, {
3996
+ type: mime
3997
+ });
3998
+ } catch (error) {
3999
+ console.log(error);
4000
+ }
4001
+ return result;
4002
+ }
4003
+
4004
+ function dataURL2ObjUrl(dataURL) {
4005
+ windowAlias.URL = windowAlias.URL || windowAlias.webkitURL;
4006
+ if (windowAlias.URL && URL.createObjectURL) {
4007
+ var blob = dataURL2blob(dataURL);
4008
+ return URL.createObjectURL(blob);
4009
+ }
4010
+ return dataURL;
4011
+ }
4012
+ function imageHandle(source) {
4013
+ var isBase64Reg = /^data:image\/png;base64/;
4014
+ if (major <= 8 && isBase64Reg.test(source)) {
4015
+ return dataURL2ObjUrl(source);
4016
+ }
4017
+ return source;
4018
+ }
4019
+ function loadTexture(assets, options) {
4020
+ return new N(assets, options);
4021
+ }
4022
+ function loadJson(path) {
4023
+ return new q(path);
4024
+ }
4025
+ r.registerLoaderByType(r.Type.Texture, loadTexture);
4026
+ r.registerLoaderByType(r.Type.Ajax, loadJson);
4027
+ wt.registerDisplayByType(wt.Type.Null, k);
4028
+ wt.registerDisplayByType(wt.Type.Path, z);
4029
+ wt.registerDisplayByType(wt.Type.Shape, k);
4030
+ wt.registerDisplayByType(wt.Type.Solid, G);
4031
+ wt.registerDisplayByType(wt.Type.Sprite, R);
4032
+ wt.registerDisplayByType(wt.Type.Component, k);
4033
+ wt.registerDisplayByType(wt.Type.Container, Container);
4034
+ var LottieSystem = function (_super) {
4035
+ __extends(LottieSystem, _super);
4036
+ function LottieSystem() {
4037
+ var _this = _super !== null && _super.apply(this, arguments) || this;
4038
+ _this.managerLife = ['DisplayReady', 'ImageReady', 'success', 'error', 'complete', 'loopComplete', 'enterFrame', 'update'];
4039
+ return _this;
4040
+ }
4041
+ LottieSystem.prototype.init = function () {
4042
+ this.renderSystem = this.game.getSystem('Renderer');
4043
+ this.app = this.renderSystem.application;
4044
+ };
4045
+ LottieSystem.prototype.componentChanged = function (changed) {
4046
+ return __awaiter(this, void 0, void 0, function () {
4047
+ return __generator(this, function (_a) {
4048
+ if (changed.componentName === 'Lottie') {
4049
+ if (changed.type === OBSERVER_TYPE.ADD) {
4050
+ this.add(changed);
4051
+ } else if (changed.type === OBSERVER_TYPE.REMOVE) {
4052
+ this.remove(changed);
4053
+ }
4054
+ }
4055
+ return [2];
4056
+ });
4057
+ });
4058
+ };
4059
+ LottieSystem.prototype.add = function (changed) {
4060
+ return __awaiter(this, void 0, void 0, function () {
4061
+ var component, container, _a, rn, otherOpts, data, json, assets, anim;
4062
+ return __generator(this, function (_b) {
4063
+ switch (_b.label) {
4064
+ case 0:
4065
+ this.manager = new Gt(this.app);
4066
+ component = changed.component;
4067
+ container = this.renderSystem.containerManager.getContainer(changed.gameObject.id);
4068
+ if (!container) return [2];
4069
+ _a = component.options, rn = _a.resource, otherOpts = __rest(_a, ["resource"]);
4070
+ return [4, resource.getResource(rn)];
4071
+ case 1:
4072
+ data = _b.sent().data;
4073
+ json = __assign({}, data.json || {});
4074
+ assets = json.assets || [];
4075
+ assets.forEach(function (item) {
4076
+ if (item.p) item.p = imageHandle(item.p);
4077
+ });
4078
+ anim = this.manager.parseAnimation(__assign({
4079
+ keyframes: json
4080
+ }, otherOpts));
4081
+ component.anim = anim;
4082
+ container.addChildAt(anim.group, 0);
4083
+ this.managerLife.forEach(function (eventName) {
4084
+ anim.on(eventName, function (e) {
4085
+ return component.emit(eventName, e);
4086
+ });
4087
+ });
4088
+ if (anim.isImagesLoaded) component.emit('success', {});
4089
+ return [2];
4090
+ }
4091
+ });
4092
+ });
4093
+ };
4094
+ LottieSystem.prototype.remove = function (changed) {
4095
+ var component = changed.component;
4096
+ var container = this.renderSystem.containerManager.getContainer(changed.gameObject.id);
4097
+ if (container) {
4098
+ container.removeChild(component.anim.group);
4099
+ component.anim.destroy();
4100
+ }
4101
+ component.anim = null;
4102
+ };
4103
+ LottieSystem.systemName = 'LottieSystem';
4104
+ LottieSystem = __decorate([decorators.componentObserver({
4105
+ Lottie: []
4106
+ })], LottieSystem);
4107
+ return LottieSystem;
4108
+ }(Renderer);
4109
+ var LottieSystem$1 = LottieSystem;
4110
+ var Lottie = function (_super) {
4111
+ __extends(Lottie, _super);
4112
+ function Lottie(options) {
4113
+ var _this = _super.call(this) || this;
4114
+ _this.loadStatus = false;
4115
+ _this.firstPlay = null;
4116
+ _this.prevSlot = {};
4117
+ _this.currentSlot = {};
4118
+ _this.options = __assign({
4119
+ autoStart: false
4120
+ }, options);
4121
+ _this.on('success', function () {
4122
+ _this.loadStatus = true;
4123
+ var _a = _this.anim.keyframes,
4124
+ ip = _a.ip,
4125
+ op = _a.op;
4126
+ var _loop_1 = function _loop_1(i) {
4127
+ var event_1 = "@" + i;
4128
+ _this.anim.on(event_1, function (e) {
4129
+ return _this.emit(event_1, e);
4130
+ });
4131
+ };
4132
+ for (var i = ip; i <= op; i++) {
4133
+ _loop_1(i);
4134
+ }
4135
+ _this.firstPlay && _this.firstPlay();
4136
+ });
4137
+ return _this;
4138
+ }
4139
+ Lottie.prototype.play = function (params, expandOpts) {
4140
+ var _this = this;
4141
+ if (params === void 0) {
4142
+ params = [];
4143
+ }
4144
+ if (expandOpts === void 0) {
4145
+ expandOpts = {
4146
+ repeats: 0
4147
+ };
4148
+ }
4149
+ if (!this.loadStatus) {
4150
+ this.firstPlay = function () {
4151
+ _this.play(params, expandOpts);
4152
+ };
4153
+ return;
4154
+ }
4155
+ var _a = expandOpts.slot,
4156
+ slot = _a === void 0 ? [] : _a;
4157
+ slot.forEach(function (_a) {
4158
+ var name = _a.name,
4159
+ type = _a.type,
4160
+ value = _a.value,
4161
+ _b = _a.style,
4162
+ style = _b === void 0 ? {} : _b;
4163
+ var x = style.x,
4164
+ y = style.y,
4165
+ _c = style.anchor,
4166
+ anchor = _c === void 0 ? {
4167
+ x: 0,
4168
+ y: 0
4169
+ } : _c,
4170
+ _d = style.pivot,
4171
+ pivot = _d === void 0 ? {
4172
+ x: 0,
4173
+ y: 0
4174
+ } : _d,
4175
+ width = style.width,
4176
+ height = style.height;
4177
+ if (type === 'IMAGE') {
4178
+ _this.currentSlot[name] = Sprite.from(value);
4179
+ } else if (type === 'TEXT') {
4180
+ _this.currentSlot[name] = new Text(value, new TextStyle(style));
4181
+ }
4182
+ if (x) _this.currentSlot[name].x = x;
4183
+ if (y) _this.currentSlot[name].y = y;
4184
+ if (width) _this.currentSlot[name].width = width;
4185
+ if (height) _this.currentSlot[name].height = height;
4186
+ _this.currentSlot[name].anchor.set(anchor.x || 0, anchor.y || 0);
4187
+ _this.currentSlot[name].pivot.set(_this.currentSlot[name].width * (pivot.x || 0), _this.currentSlot[name].height * (pivot.y || 0));
4188
+ if (_this.prevSlot[name]) _this.anim.unbindSlot(name, _this.prevSlot[name]);
4189
+ _this.anim.bindSlot(name, _this.currentSlot[name]);
4190
+ _this.prevSlot[name] = _this.currentSlot[name];
4191
+ });
4192
+ this.anim.playSegment(this.playParamsHandle(params), expandOpts);
4193
+ };
4194
+ Lottie.prototype.playParamsHandle = function (params) {
4195
+ var p = [].concat(params);
4196
+ var keyframes = this.anim.keyframes;
4197
+ if (!p.length || p.length > 2) {
4198
+ p = [keyframes.ip, keyframes.op];
4199
+ } else if (p.length === 1) {
4200
+ p = [p[0] % keyframes.op, keyframes.op];
4201
+ }
4202
+ return p;
4203
+ };
4204
+ Lottie.prototype.onTap = function (name, callback) {
4205
+ var _this = this;
4206
+ var g = new Graphics();
4207
+ this.on('success', function () {
4208
+ var ele = _this.anim.querySelector(name);
4209
+ var display = ele.display;
4210
+ g.beginFill(0xffffff);
4211
+ g.drawRect(0, 0, 100, 100);
4212
+ g.endFill();
4213
+ g.alpha = 0;
4214
+ display.addChild(g);
4215
+ ele.display.interactive = true;
4216
+ ele.display.on('pointertap', function () {
4217
+ callback();
4218
+ });
4219
+ });
4220
+ };
4221
+ Lottie.componentName = 'Lottie';
4222
+ return Lottie;
4223
+ }(Component);
4224
+ var Lottie$1 = Lottie;
4225
+ resource.registerResourceType('LOTTIE');
4226
+ export { Lottie$1 as Lottie, LottieSystem$1 as LottieSystem };