@pubinfo/module-rbac 2.0.0-beta.27 → 2.0.0-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{animation_item.vue_vue_type_script_setup_true_lang-CwdV9u0c.js → animation_item.vue_vue_type_script_setup_true_lang-efL_vjfY.js} +303 -303
- package/dist/{cloneDeep-DlhYgmRW.js → cloneDeep-B4Rj61s4.js} +1 -1
- package/dist/components/GroupSelector/index.vue.d.ts +4 -4
- package/dist/components/OrgTree/index.vue.d.ts +1 -1
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +4 -4
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +4 -4
- package/dist/components/ResourceSelector/index.vue.d.ts +4 -4
- package/dist/composables/useLottie.d.ts +1 -1
- package/dist/{gangweijiekou-CV3_VBHJ.js → gangweijiekou-CV7cIo_W.js} +1 -1
- package/dist/{index-sjcUdYzd.js → index-B6A3qFeU.js} +27 -27
- package/dist/{index-C18K1WpL.js → index-BChMrCkZ.js} +23 -23
- package/dist/{index-ClL_cMSm.js → index-BIUkDwk2.js} +26 -26
- package/dist/{index-BmWUEWpu.js → index-BOEO9CRp.js} +191 -196
- package/dist/{index-Y5TuBpcT.js → index-BgdW__IO.js} +2 -2
- package/dist/{index-mOx8bkh9.js → index-Bi0fucZj.js} +80 -80
- package/dist/{index-CW6W1HIo.js → index-Bj3Ee1l-.js} +3 -3
- package/dist/{index-ChpaG3ZQ.js → index-Bzjxdd-F.js} +7 -7
- package/dist/{index-l8BP3b8K.js → index-CF4XGkrK.js} +5 -5
- package/dist/{index-9u9IWKhc.js → index-CGAa6YPO.js} +16 -16
- package/dist/{index-BnxPrpkn.js → index-CK582XAz.js} +9 -9
- package/dist/{index-CLxuFFEj.js → index-Ce9x4LEV.js} +13 -13
- package/dist/{index-CzUo66L_.js → index-CkVgkVvC.js} +24 -24
- package/dist/{index-MFdCOOEW.js → index-D4uw6wJ9.js} +3 -3
- package/dist/{index-D1jFxfsG.js → index-DFrT08M4.js} +24 -24
- package/dist/{index-CrW31P7w.js → index-Dju21Cnm.js} +2 -2
- package/dist/{index-ATlaXzm9.js → index-Dmg39liA.js} +3 -3
- package/dist/{index-LnUQwTXy.js → index-DvE43Xkt.js} +26 -26
- package/dist/{index-D5LKfALd.js → index-Dx3ZDeWT.js} +42 -42
- package/dist/{index-DX9fHWEY.js → index-MmfEJgmm.js} +18 -18
- package/dist/{index-REH4HEOg.js → index-RBHLCaQ9.js} +28 -28
- package/dist/{index-BAQqP93G.js → index-Y2jyqjVz.js} +7 -7
- package/dist/{index-B8DDuLgv.js → index-b_92Syzh.js} +3 -3
- package/dist/{index-Dnp04_5x.js → index-g5Fyla0r.js} +3 -3
- package/dist/{index-YkF83QOR.js → index-qdAiA-PA.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/interface.d.ts +3 -1
- package/dist/{itemlist-sHSMCsLr.js → itemlist-Og2t8W5R.js} +24 -24
- package/dist/{jiaosejiekou-DvfMUYAa.js → jiaosejiekou-0xZkLzL_.js} +1 -1
- package/dist/{login_history-P_GmktRF.js → login_history-BJWFChQ3.js} +1 -1
- package/dist/{operate_history-CqOswIe4.js → operate_history-C1NKnoB5.js} +1 -1
- package/dist/{pubJiaosezukongzhiqi-DHx7MsUe.js → pubJiaosezukongzhiqi-BlLcThHi.js} +1 -1
- package/dist/routes/index.d.ts +1 -1
- package/dist/routes/modules/authority.manage.menu.d.ts +1 -1
- package/dist/routes/modules/log.manage.menu.d.ts +1 -1
- package/dist/routes/modules/safe.manage.menu.d.ts +1 -1
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +1 -1
- package/dist/routes/modules/system.manage.menu.d.ts +1 -1
- package/dist/{setItem-DkuSrCm8.js → setItem-BRseSui6.js} +1 -1
- package/dist/{shujuquanxianzhubiaokongzhiqi-fpMYehpC.js → shujuquanxianzhubiaokongzhiqi-3CpYi1Zo.js} +1 -1
- package/dist/{useAppAndResource-BH_Fl_gK.js → useAppAndResource-BF7jQTCi.js} +2 -2
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +4 -4
- package/dist/views/blackWhiteList/index.vue.d.ts +319 -319
- package/dist/views/breadcrumb_setting/index.vue.d.ts +1 -1
- package/dist/views/components/HCheckList.vue.d.ts +3 -3
- package/dist/views/components/animation_item.vue.d.ts +3 -3
- package/dist/views/components/setItem.vue.d.ts +7 -7
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +26 -26
- package/dist/views/data-permission/index.vue.d.ts +341 -341
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +4 -4
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +4 -4
- package/dist/views/dictionary/index.vue.d.ts +319 -319
- package/dist/views/dictionary/itemlist.vue.d.ts +319 -319
- package/dist/views/group/components/drawerGroup.vue.d.ts +4 -4
- package/dist/views/group/index.vue.d.ts +319 -319
- package/dist/views/layout_setting/index.vue.d.ts +1 -1
- package/dist/views/log_center/components/browserType.vue.d.ts +3 -3
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +4 -4
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +4 -4
- package/dist/views/log_center/login_history.vue.d.ts +315 -315
- package/dist/views/log_center/operate_history.vue.d.ts +315 -315
- package/dist/views/menu_setting/index.vue.d.ts +1 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +4 -4
- package/dist/views/organization/components/drawerRole.vue.d.ts +7 -7
- package/dist/views/organization/components/roleSelect.vue.d.ts +4 -4
- package/dist/views/organization/index.vue.d.ts +12 -12
- package/dist/views/other_setting/index.vue.d.ts +1 -1
- package/dist/views/page_animation_setting/index.vue.d.ts +1 -1
- package/dist/views/page_w_setting/index.vue.d.ts +1 -1
- package/dist/views/position/components/drawerPosition.vue.d.ts +4 -4
- package/dist/views/position/index.vue.d.ts +319 -319
- package/dist/views/region/components/drawerRegion.vue.d.ts +4 -4
- package/dist/views/region/index.vue.d.ts +319 -319
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +4 -4
- package/dist/views/resource/components/RoleRelation.vue.d.ts +2 -2
- package/dist/views/resource/index.vue.d.ts +321 -321
- package/dist/views/role/components/ResourceRelation.vue.d.ts +316 -316
- package/dist/views/role/components/drawerRole.vue.d.ts +8 -8
- package/dist/views/role/index.vue.d.ts +640 -640
- package/dist/views/role_group/components/drawerRole.vue.d.ts +7 -7
- package/dist/views/role_group/components/roleSelect.vue.d.ts +4 -4
- package/dist/views/role_group/index.vue.d.ts +322 -322
- package/dist/views/safe_setting/index.vue.d.ts +1 -1
- package/dist/views/tabbar_setting/index.vue.d.ts +1 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +8 -8
- package/dist/views/tenant/index.vue.d.ts +323 -323
- package/dist/views/theme_setting/index.vue.d.ts +1 -1
- package/dist/views/toolbar_setting/index.vue.d.ts +1 -1
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +3 -3
- package/dist/views/user/components/UserAuthorization.vue.d.ts +7 -7
- package/dist/views/user/components/UserEdit.vue.d.ts +4 -4
- package/dist/views/user/components/roleSelect.vue.d.ts +4 -4
- package/dist/views/user/index.vue.d.ts +326 -326
- package/dist/views/watermark_setting/index.vue.d.ts +5 -5
- package/dist/{xitongpeizhifuwu-B3Lw-Lq9.js → xitongpeizhifuwu-BIR2CVXp.js} +1 -1
- package/dist/{zidianfuwu-BbhoWOZI.js → zidianfuwu-B137v_q7.js} +1 -1
- package/dist/{ziyuanjiekou-CypA4O57.js → ziyuanjiekou-j9nd-oaF.js} +1 -1
- package/dist/{zuzhijiaosebiaokongzhiqi-DhdCTnmx.js → zuzhijiaosebiaokongzhiqi-DPbRg7Qd.js} +1 -1
- package/package.json +11 -11
- package/src/index.ts +6 -12
- package/src/interface.ts +3 -0
- package/src/routes/index.ts +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { computed as cr, onMounted as vr, watch as dr, onUnmounted as mr, unref as gr, defineComponent as yr, ref as _r, createElementBlock as br, openBlock as Sr } from "vue";
|
|
2
2
|
import { g as Ar } from "./_commonjsHelpers-C6fGbg64.js";
|
|
3
3
|
import { useTheme as kr } from "pubinfo";
|
|
4
|
-
import { A as os } from "./index-
|
|
5
|
-
var
|
|
4
|
+
import { A as os } from "./index-BOEO9CRp.js";
|
|
5
|
+
var Ee = { exports: {} }, Pr = Ee.exports, hs;
|
|
6
6
|
function wr() {
|
|
7
7
|
return hs || (hs = 1, function(ce, se) {
|
|
8
|
-
typeof navigator < "u" && function(ot, Mt) {
|
|
8
|
+
typeof document < "u" && typeof navigator < "u" && function(ot, Mt) {
|
|
9
9
|
ce.exports = Mt();
|
|
10
10
|
}(Pr, function() {
|
|
11
|
-
var ot = "http://www.w3.org/2000/svg", Mt = "", Zt = !1, Kt = -999999,
|
|
11
|
+
var ot = "http://www.w3.org/2000/svg", Mt = "", Zt = !1, Kt = -999999, xe = function(e) {
|
|
12
12
|
Zt = !!e;
|
|
13
13
|
}, re = function() {
|
|
14
14
|
return Zt;
|
|
@@ -125,7 +125,7 @@ function wr() {
|
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
var pi = !0, ui = null, ci = "", ps = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), kt = Math.pow, vi = Math.sqrt, Ut = Math.floor, us = Math.min, di = 150, J = Math.PI / 180, Bt = 0.5519;
|
|
128
|
-
function
|
|
128
|
+
function Ze(t, e, i, s) {
|
|
129
129
|
this.type = t, this.currentTime = e, this.totalTime = i, this.direction = s < 0 ? -1 : 1;
|
|
130
130
|
}
|
|
131
131
|
function mi(t, e) {
|
|
@@ -152,7 +152,7 @@ function wr() {
|
|
|
152
152
|
return t += 1, ci + "__lottie_element_" + t;
|
|
153
153
|
};
|
|
154
154
|
}();
|
|
155
|
-
function
|
|
155
|
+
function Ke(t, e, i) {
|
|
156
156
|
var s, n, r, o, c, h, m, _;
|
|
157
157
|
switch (o = Math.floor(t * 6), c = t * 6 - o, h = i * (1 - e), m = i * (1 - c * e), _ = i * (1 - (1 - c) * e), o % 6) {
|
|
158
158
|
case 0:
|
|
@@ -176,7 +176,7 @@ function wr() {
|
|
|
176
176
|
}
|
|
177
177
|
return [s, n, r];
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Ue(t, e, i) {
|
|
180
180
|
var s = Math.max(t, e, i), n = Math.min(t, e, i), r = s - n, o, c = s === 0 ? 0 : r / s, h = s / 255;
|
|
181
181
|
switch (s) {
|
|
182
182
|
case n:
|
|
@@ -195,16 +195,16 @@ function wr() {
|
|
|
195
195
|
return [o, c, h];
|
|
196
196
|
}
|
|
197
197
|
function bi(t, e) {
|
|
198
|
-
var i =
|
|
199
|
-
return i[1] += e, i[1] > 1 ? i[1] = 1 : i[1] <= 0 && (i[1] = 0),
|
|
198
|
+
var i = Ue(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
199
|
+
return i[1] += e, i[1] > 1 ? i[1] = 1 : i[1] <= 0 && (i[1] = 0), Ke(i[0], i[1], i[2]);
|
|
200
200
|
}
|
|
201
201
|
function Si(t, e) {
|
|
202
|
-
var i =
|
|
203
|
-
return i[2] += e, i[2] > 1 ? i[2] = 1 : i[2] < 0 && (i[2] = 0),
|
|
202
|
+
var i = Ue(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
203
|
+
return i[2] += e, i[2] > 1 ? i[2] = 1 : i[2] < 0 && (i[2] = 0), Ke(i[0], i[1], i[2]);
|
|
204
204
|
}
|
|
205
205
|
function Ai(t, e) {
|
|
206
|
-
var i =
|
|
207
|
-
return i[0] += e / 360, i[0] > 1 ? i[0] -= 1 : i[0] < 0 && (i[0] += 1),
|
|
206
|
+
var i = Ue(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
207
|
+
return i[0] += e / 360, i[0] > 1 ? i[0] -= 1 : i[0] < 0 && (i[0] += 1), Ke(i[0], i[1], i[2]);
|
|
208
208
|
}
|
|
209
209
|
(function() {
|
|
210
210
|
var t = [], e, i;
|
|
@@ -220,11 +220,11 @@ function wr() {
|
|
|
220
220
|
return pi;
|
|
221
221
|
}, gs = function(e) {
|
|
222
222
|
ui = e;
|
|
223
|
-
},
|
|
223
|
+
}, Fe = function() {
|
|
224
224
|
return ui;
|
|
225
|
-
},
|
|
225
|
+
}, Ie = function(e) {
|
|
226
226
|
di = e;
|
|
227
|
-
},
|
|
227
|
+
}, Le = function() {
|
|
228
228
|
return di;
|
|
229
229
|
}, ys = function(e) {
|
|
230
230
|
ci = e;
|
|
@@ -232,13 +232,13 @@ function wr() {
|
|
|
232
232
|
function W(t) {
|
|
233
233
|
return document.createElementNS(ot, t);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Je(t) {
|
|
236
236
|
"@babel/helpers - typeof";
|
|
237
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
238
|
-
return typeof
|
|
239
|
-
} :
|
|
240
|
-
return
|
|
241
|
-
},
|
|
237
|
+
return Je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
238
|
+
return typeof e;
|
|
239
|
+
} : function(e) {
|
|
240
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
241
|
+
}, Je(t);
|
|
242
242
|
}
|
|
243
243
|
var ve = /* @__PURE__ */ function() {
|
|
244
244
|
var t = 1, e = [], i, s, n = {
|
|
@@ -269,7 +269,7 @@ function wr() {
|
|
|
269
269
|
s || (s = o(function(b) {
|
|
270
270
|
function k() {
|
|
271
271
|
function C(F, v) {
|
|
272
|
-
var A, a, l = F.length, E, w, R,
|
|
272
|
+
var A, a, l = F.length, E, w, R, z;
|
|
273
273
|
for (a = 0; a < l; a += 1)
|
|
274
274
|
if (A = F[a], "ks" in A && !A.completed) {
|
|
275
275
|
if (A.completed = !0, A.hasMask) {
|
|
@@ -278,7 +278,7 @@ function wr() {
|
|
|
278
278
|
if (D[E].pt.k.i)
|
|
279
279
|
g(D[E].pt.k);
|
|
280
280
|
else
|
|
281
|
-
for (
|
|
281
|
+
for (z = D[E].pt.k.length, R = 0; R < z; R += 1)
|
|
282
282
|
D[E].pt.k[R].s && g(D[E].pt.k[R].s[0]), D[E].pt.k[R].e && g(D[E].pt.k[R].e[0]);
|
|
283
283
|
}
|
|
284
284
|
A.ty === 0 ? (A.layers = f(A.refId, v), C(A.layers, v)) : A.ty === 4 ? u(A.shapes) : A.ty === 5 && G(A);
|
|
@@ -437,7 +437,7 @@ function wr() {
|
|
|
437
437
|
a.assets[l].layers && A(a.assets[l].layers);
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
|
-
}(),
|
|
440
|
+
}(), q = /* @__PURE__ */ function() {
|
|
441
441
|
var F = [4, 1, 9];
|
|
442
442
|
function v(a) {
|
|
443
443
|
var l, E = a.length, w, R;
|
|
@@ -477,11 +477,11 @@ function wr() {
|
|
|
477
477
|
else a[l].ty === "gr" && v(a[l].it);
|
|
478
478
|
}
|
|
479
479
|
function A(a) {
|
|
480
|
-
var l, E, w = a.length, R,
|
|
480
|
+
var l, E, w = a.length, R, z, D, Y;
|
|
481
481
|
for (E = 0; E < w; E += 1) {
|
|
482
482
|
if (l = a[E], l.hasMask) {
|
|
483
483
|
var H = l.masksProperties;
|
|
484
|
-
for (
|
|
484
|
+
for (z = H.length, R = 0; R < z; R += 1)
|
|
485
485
|
if (H[R].pt.k.i)
|
|
486
486
|
H[R].pt.k.c = H[R].cl;
|
|
487
487
|
else
|
|
@@ -500,18 +500,18 @@ function wr() {
|
|
|
500
500
|
};
|
|
501
501
|
}();
|
|
502
502
|
function L(F) {
|
|
503
|
-
F.__complete || (
|
|
503
|
+
F.__complete || (q(F), T(F), x(F), I(F), N(F), C(F.layers, F.assets), y(F.chars, F.assets), F.__complete = !0);
|
|
504
504
|
}
|
|
505
505
|
function G(F) {
|
|
506
506
|
F.t.a.length === 0 && "m" in F.t.p;
|
|
507
507
|
}
|
|
508
508
|
var O = {};
|
|
509
|
-
return O.completeData = L, O.checkColors =
|
|
509
|
+
return O.completeData = L, O.checkColors = q, O.checkChars = x, O.checkPathProperties = I, O.checkShapes = N, O.completeLayers = C, O;
|
|
510
510
|
}
|
|
511
511
|
if (r.dataManager || (r.dataManager = k()), r.assetLoader || (r.assetLoader = /* @__PURE__ */ function() {
|
|
512
512
|
function C(d) {
|
|
513
513
|
var f = d.getResponseHeader("content-type");
|
|
514
|
-
return f && d.responseType === "json" && f.indexOf("json") !== -1 || d.response &&
|
|
514
|
+
return f && d.responseType === "json" && f.indexOf("json") !== -1 || d.response && Je(d.response) === "object" ? d.response : d.response && typeof d.response == "string" ? JSON.parse(d.response) : d.responseText ? JSON.parse(d.responseText) : null;
|
|
515
515
|
}
|
|
516
516
|
function y(d, f, u, g) {
|
|
517
517
|
var P, T = new XMLHttpRequest();
|
|
@@ -813,29 +813,29 @@ function wr() {
|
|
|
813
813
|
return t;
|
|
814
814
|
return "";
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function Ve(t) {
|
|
817
817
|
"@babel/helpers - typeof";
|
|
818
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
819
|
-
return typeof
|
|
820
|
-
} :
|
|
821
|
-
return
|
|
822
|
-
},
|
|
823
|
-
}
|
|
824
|
-
var
|
|
825
|
-
this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = ut(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = ms(), this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = Ss(), this.imagePreloader = new _s(), this.audioController = fs(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new
|
|
818
|
+
return Ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
819
|
+
return typeof e;
|
|
820
|
+
} : function(e) {
|
|
821
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
822
|
+
}, Ve(t);
|
|
823
|
+
}
|
|
824
|
+
var j = function() {
|
|
825
|
+
this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = ut(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = ms(), this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = Ss(), this.imagePreloader = new _s(), this.audioController = fs(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new Ze("drawnFrame", 0, 0, 0), this.expressionsPlugin = Fe();
|
|
826
826
|
};
|
|
827
|
-
X([ki],
|
|
827
|
+
X([ki], j), j.prototype.setParams = function(t) {
|
|
828
828
|
(t.wrapper || t.container) && (this.wrapper = t.wrapper || t.container);
|
|
829
829
|
var e = "svg";
|
|
830
830
|
t.animType ? e = t.animType : t.renderer && (e = t.renderer);
|
|
831
831
|
var i = ks(e);
|
|
832
832
|
this.renderer = new i(this, t.rendererSettings), this.imagePreloader.setCacheType(e, this.renderer.globalData.defs), this.renderer.setProjectInterface(this.projectInterface), this.animType = e, t.loop === "" || t.loop === null || t.loop === void 0 || t.loop === !0 ? this.loop = !0 : t.loop === !1 ? this.loop = !1 : this.loop = parseInt(t.loop, 10), this.autoplay = "autoplay" in t ? t.autoplay : !0, this.name = t.name ? t.name : "", this.autoloadSegments = Object.prototype.hasOwnProperty.call(t, "autoloadSegments") ? t.autoloadSegments : !0, this.assetsPath = t.assetsPath, this.initialSegment = t.initialSegment, t.audioFactory && this.audioController.setAudioFactory(t.audioFactory), t.animationData ? this.setupAnimation(t.animationData) : t.path && (t.path.lastIndexOf("\\") !== -1 ? this.path = t.path.substr(0, t.path.lastIndexOf("\\") + 1) : this.path = t.path.substr(0, t.path.lastIndexOf("/") + 1), this.fileName = t.path.substr(t.path.lastIndexOf("/") + 1), this.fileName = this.fileName.substr(0, this.fileName.lastIndexOf(".json")), ve.loadAnimation(t.path, this.configAnimation, this.onSetupError));
|
|
833
|
-
},
|
|
833
|
+
}, j.prototype.onSetupError = function() {
|
|
834
834
|
this.trigger("data_failed");
|
|
835
|
-
},
|
|
835
|
+
}, j.prototype.setupAnimation = function(t) {
|
|
836
836
|
ve.completeAnimation(t, this.configAnimation);
|
|
837
|
-
},
|
|
838
|
-
e &&
|
|
837
|
+
}, j.prototype.setData = function(t, e) {
|
|
838
|
+
e && Ve(e) !== "object" && (e = JSON.parse(e));
|
|
839
839
|
var i = {
|
|
840
840
|
wrapper: t,
|
|
841
841
|
animationData: e
|
|
@@ -847,7 +847,7 @@ function wr() {
|
|
|
847
847
|
i.autoplay = r !== "false", i.name = s.getNamedItem("data-name") ? s.getNamedItem("data-name").value : s.getNamedItem("data-bm-name") ? s.getNamedItem("data-bm-name").value : s.getNamedItem("bm-name") ? s.getNamedItem("bm-name").value : "";
|
|
848
848
|
var o = s.getNamedItem("data-anim-prerender") ? s.getNamedItem("data-anim-prerender").value : s.getNamedItem("data-bm-prerender") ? s.getNamedItem("data-bm-prerender").value : s.getNamedItem("bm-prerender") ? s.getNamedItem("bm-prerender").value : "";
|
|
849
849
|
o === "false" && (i.prerender = !1), i.path ? this.setParams(i) : this.trigger("destroy");
|
|
850
|
-
},
|
|
850
|
+
}, j.prototype.includeLayers = function(t) {
|
|
851
851
|
t.op > this.animationData.op && (this.animationData.op = t.op, this.totalFrames = Math.floor(t.op - this.animationData.ip));
|
|
852
852
|
var e = this.animationData.layers, i, s = e.length, n = t.layers, r, o = n.length;
|
|
853
853
|
for (r = 0; r < o; r += 1)
|
|
@@ -862,11 +862,11 @@ function wr() {
|
|
|
862
862
|
for (s = t.assets.length, i = 0; i < s; i += 1)
|
|
863
863
|
this.animationData.assets.push(t.assets[i]);
|
|
864
864
|
this.animationData.__complete = !1, ve.completeAnimation(this.animationData, this.onSegmentComplete);
|
|
865
|
-
},
|
|
865
|
+
}, j.prototype.onSegmentComplete = function(t) {
|
|
866
866
|
this.animationData = t;
|
|
867
|
-
var e =
|
|
867
|
+
var e = Fe();
|
|
868
868
|
e && e.initExpressions(this), this.loadNextSegment();
|
|
869
|
-
},
|
|
869
|
+
}, j.prototype.loadNextSegment = function() {
|
|
870
870
|
var t = this.animationData.segments;
|
|
871
871
|
if (!t || t.length === 0 || !this.autoloadSegments) {
|
|
872
872
|
this.trigger("data_ready"), this.timeCompleted = this.totalFrames;
|
|
@@ -878,58 +878,58 @@ function wr() {
|
|
|
878
878
|
this.segmentPos += 1, ve.loadData(i, this.includeLayers.bind(this), (function() {
|
|
879
879
|
this.trigger("data_failed");
|
|
880
880
|
}).bind(this));
|
|
881
|
-
},
|
|
881
|
+
}, j.prototype.loadSegments = function() {
|
|
882
882
|
var t = this.animationData.segments;
|
|
883
883
|
t || (this.timeCompleted = this.totalFrames), this.loadNextSegment();
|
|
884
|
-
},
|
|
884
|
+
}, j.prototype.imagesLoaded = function() {
|
|
885
885
|
this.trigger("loaded_images"), this.checkLoaded();
|
|
886
|
-
},
|
|
886
|
+
}, j.prototype.preloadImages = function() {
|
|
887
887
|
this.imagePreloader.setAssetsPath(this.assetsPath), this.imagePreloader.setPath(this.path), this.imagePreloader.loadAssets(this.animationData.assets, this.imagesLoaded.bind(this));
|
|
888
|
-
},
|
|
888
|
+
}, j.prototype.configAnimation = function(t) {
|
|
889
889
|
if (this.renderer)
|
|
890
890
|
try {
|
|
891
891
|
this.animationData = t, this.initialSegment ? (this.totalFrames = Math.floor(this.initialSegment[1] - this.initialSegment[0]), this.firstFrame = Math.round(this.initialSegment[0])) : (this.totalFrames = Math.floor(this.animationData.op - this.animationData.ip), this.firstFrame = Math.round(this.animationData.ip)), this.renderer.configAnimation(t), t.assets || (t.assets = []), this.assets = this.animationData.assets, this.frameRate = this.animationData.fr, this.frameMult = this.animationData.fr / 1e3, this.renderer.searchExtraCompositions(t.assets), this.markers = bs(t.markers || []), this.trigger("config_ready"), this.preloadImages(), this.loadSegments(), this.updaFrameModifier(), this.waitForFontsLoaded(), this.isPaused && this.audioController.pause();
|
|
892
892
|
} catch (e) {
|
|
893
893
|
this.triggerConfigError(e);
|
|
894
894
|
}
|
|
895
|
-
},
|
|
895
|
+
}, j.prototype.waitForFontsLoaded = function() {
|
|
896
896
|
this.renderer && (this.renderer.globalData.fontManager.isLoaded ? this.checkLoaded() : setTimeout(this.waitForFontsLoaded.bind(this), 20));
|
|
897
|
-
},
|
|
897
|
+
}, j.prototype.checkLoaded = function() {
|
|
898
898
|
if (!this.isLoaded && this.renderer.globalData.fontManager.isLoaded && (this.imagePreloader.loadedImages() || this.renderer.rendererType !== "canvas") && this.imagePreloader.loadedFootages()) {
|
|
899
899
|
this.isLoaded = !0;
|
|
900
|
-
var t =
|
|
900
|
+
var t = Fe();
|
|
901
901
|
t && t.initExpressions(this), this.renderer.initItems(), setTimeout((function() {
|
|
902
902
|
this.trigger("DOMLoaded");
|
|
903
903
|
}).bind(this), 0), this.gotoFrame(), this.autoplay && this.play();
|
|
904
904
|
}
|
|
905
|
-
},
|
|
905
|
+
}, j.prototype.resize = function(t, e) {
|
|
906
906
|
var i = typeof t == "number" ? t : void 0, s = typeof e == "number" ? e : void 0;
|
|
907
907
|
this.renderer.updateContainerSize(i, s);
|
|
908
|
-
},
|
|
908
|
+
}, j.prototype.setSubframe = function(t) {
|
|
909
909
|
this.isSubframeEnabled = !!t;
|
|
910
|
-
},
|
|
910
|
+
}, j.prototype.gotoFrame = function() {
|
|
911
911
|
this.currentFrame = this.isSubframeEnabled ? this.currentRawFrame : ~~this.currentRawFrame, this.timeCompleted !== this.totalFrames && this.currentFrame > this.timeCompleted && (this.currentFrame = this.timeCompleted), this.trigger("enterFrame"), this.renderFrame(), this.trigger("drawnFrame");
|
|
912
|
-
},
|
|
912
|
+
}, j.prototype.renderFrame = function() {
|
|
913
913
|
if (!(this.isLoaded === !1 || !this.renderer))
|
|
914
914
|
try {
|
|
915
915
|
this.expressionsPlugin && this.expressionsPlugin.resetFrame(), this.renderer.renderFrame(this.currentFrame + this.firstFrame);
|
|
916
916
|
} catch (t) {
|
|
917
917
|
this.triggerRenderFrameError(t);
|
|
918
918
|
}
|
|
919
|
-
},
|
|
919
|
+
}, j.prototype.play = function(t) {
|
|
920
920
|
t && this.name !== t || this.isPaused === !0 && (this.isPaused = !1, this.trigger("_play"), this.audioController.resume(), this._idle && (this._idle = !1, this.trigger("_active")));
|
|
921
|
-
},
|
|
921
|
+
}, j.prototype.pause = function(t) {
|
|
922
922
|
t && this.name !== t || this.isPaused === !1 && (this.isPaused = !0, this.trigger("_pause"), this._idle = !0, this.trigger("_idle"), this.audioController.pause());
|
|
923
|
-
},
|
|
923
|
+
}, j.prototype.togglePause = function(t) {
|
|
924
924
|
t && this.name !== t || (this.isPaused === !0 ? this.play() : this.pause());
|
|
925
|
-
},
|
|
925
|
+
}, j.prototype.stop = function(t) {
|
|
926
926
|
t && this.name !== t || (this.pause(), this.playCount = 0, this._completedLoop = !1, this.setCurrentRawFrameValue(0));
|
|
927
|
-
},
|
|
927
|
+
}, j.prototype.getMarkerData = function(t) {
|
|
928
928
|
for (var e, i = 0; i < this.markers.length; i += 1)
|
|
929
929
|
if (e = this.markers[i], e.payload && e.payload.name === t)
|
|
930
930
|
return e;
|
|
931
931
|
return null;
|
|
932
|
-
},
|
|
932
|
+
}, j.prototype.goToAndStop = function(t, e, i) {
|
|
933
933
|
if (!(i && this.name !== i)) {
|
|
934
934
|
var s = Number(t);
|
|
935
935
|
if (isNaN(s)) {
|
|
@@ -938,7 +938,7 @@ function wr() {
|
|
|
938
938
|
} else e ? this.setCurrentRawFrameValue(t) : this.setCurrentRawFrameValue(t * this.frameModifier);
|
|
939
939
|
this.pause();
|
|
940
940
|
}
|
|
941
|
-
},
|
|
941
|
+
}, j.prototype.goToAndPlay = function(t, e, i) {
|
|
942
942
|
if (!(i && this.name !== i)) {
|
|
943
943
|
var s = Number(t);
|
|
944
944
|
if (isNaN(s)) {
|
|
@@ -948,51 +948,51 @@ function wr() {
|
|
|
948
948
|
this.goToAndStop(s, e, i);
|
|
949
949
|
this.play();
|
|
950
950
|
}
|
|
951
|
-
},
|
|
951
|
+
}, j.prototype.advanceTime = function(t) {
|
|
952
952
|
if (!(this.isPaused === !0 || this.isLoaded === !1)) {
|
|
953
953
|
var e = this.currentRawFrame + t * this.frameModifier, i = !1;
|
|
954
954
|
e >= this.totalFrames - 1 && this.frameModifier > 0 ? !this.loop || this.playCount === this.loop ? this.checkSegments(e > this.totalFrames ? e % this.totalFrames : 0) || (i = !0, e = this.totalFrames - 1) : e >= this.totalFrames ? (this.playCount += 1, this.checkSegments(e % this.totalFrames) || (this.setCurrentRawFrameValue(e % this.totalFrames), this._completedLoop = !0, this.trigger("loopComplete"))) : this.setCurrentRawFrameValue(e) : e < 0 ? this.checkSegments(e % this.totalFrames) || (this.loop && !(this.playCount-- <= 0 && this.loop !== !0) ? (this.setCurrentRawFrameValue(this.totalFrames + e % this.totalFrames), this._completedLoop ? this.trigger("loopComplete") : this._completedLoop = !0) : (i = !0, e = 0)) : this.setCurrentRawFrameValue(e), i && (this.setCurrentRawFrameValue(e), this.pause(), this.trigger("complete"));
|
|
955
955
|
}
|
|
956
|
-
},
|
|
956
|
+
}, j.prototype.adjustSegment = function(t, e) {
|
|
957
957
|
this.playCount = 0, t[1] < t[0] ? (this.frameModifier > 0 && (this.playSpeed < 0 ? this.setSpeed(-this.playSpeed) : this.setDirection(-1)), this.totalFrames = t[0] - t[1], this.timeCompleted = this.totalFrames, this.firstFrame = t[1], this.setCurrentRawFrameValue(this.totalFrames - 1e-3 - e)) : t[1] > t[0] && (this.frameModifier < 0 && (this.playSpeed < 0 ? this.setSpeed(-this.playSpeed) : this.setDirection(1)), this.totalFrames = t[1] - t[0], this.timeCompleted = this.totalFrames, this.firstFrame = t[0], this.setCurrentRawFrameValue(1e-3 + e)), this.trigger("segmentStart");
|
|
958
|
-
},
|
|
958
|
+
}, j.prototype.setSegment = function(t, e) {
|
|
959
959
|
var i = -1;
|
|
960
960
|
this.isPaused && (this.currentRawFrame + this.firstFrame < t ? i = t : this.currentRawFrame + this.firstFrame > e && (i = e - t)), this.firstFrame = t, this.totalFrames = e - t, this.timeCompleted = this.totalFrames, i !== -1 && this.goToAndStop(i, !0);
|
|
961
|
-
},
|
|
962
|
-
if (e && (this.segments.length = 0),
|
|
961
|
+
}, j.prototype.playSegments = function(t, e) {
|
|
962
|
+
if (e && (this.segments.length = 0), Ve(t[0]) === "object") {
|
|
963
963
|
var i, s = t.length;
|
|
964
964
|
for (i = 0; i < s; i += 1)
|
|
965
965
|
this.segments.push(t[i]);
|
|
966
966
|
} else
|
|
967
967
|
this.segments.push(t);
|
|
968
968
|
this.segments.length && e && this.adjustSegment(this.segments.shift(), 0), this.isPaused && this.play();
|
|
969
|
-
},
|
|
969
|
+
}, j.prototype.resetSegments = function(t) {
|
|
970
970
|
this.segments.length = 0, this.segments.push([this.animationData.ip, this.animationData.op]), t && this.checkSegments(0);
|
|
971
|
-
},
|
|
971
|
+
}, j.prototype.checkSegments = function(t) {
|
|
972
972
|
return this.segments.length ? (this.adjustSegment(this.segments.shift(), t), !0) : !1;
|
|
973
|
-
},
|
|
973
|
+
}, j.prototype.destroy = function(t) {
|
|
974
974
|
t && this.name !== t || !this.renderer || (this.renderer.destroy(), this.imagePreloader.destroy(), this.trigger("destroy"), this._cbs = null, this.onEnterFrame = null, this.onLoopComplete = null, this.onComplete = null, this.onSegmentStart = null, this.onDestroy = null, this.renderer = null, this.expressionsPlugin = null, this.imagePreloader = null, this.projectInterface = null);
|
|
975
|
-
},
|
|
975
|
+
}, j.prototype.setCurrentRawFrameValue = function(t) {
|
|
976
976
|
this.currentRawFrame = t, this.gotoFrame();
|
|
977
|
-
},
|
|
977
|
+
}, j.prototype.setSpeed = function(t) {
|
|
978
978
|
this.playSpeed = t, this.updaFrameModifier();
|
|
979
|
-
},
|
|
979
|
+
}, j.prototype.setDirection = function(t) {
|
|
980
980
|
this.playDirection = t < 0 ? -1 : 1, this.updaFrameModifier();
|
|
981
|
-
},
|
|
981
|
+
}, j.prototype.setLoop = function(t) {
|
|
982
982
|
this.loop = t;
|
|
983
|
-
},
|
|
983
|
+
}, j.prototype.setVolume = function(t, e) {
|
|
984
984
|
e && this.name !== e || this.audioController.setVolume(t);
|
|
985
|
-
},
|
|
985
|
+
}, j.prototype.getVolume = function() {
|
|
986
986
|
return this.audioController.getVolume();
|
|
987
|
-
},
|
|
987
|
+
}, j.prototype.mute = function(t) {
|
|
988
988
|
t && this.name !== t || this.audioController.mute();
|
|
989
|
-
},
|
|
989
|
+
}, j.prototype.unmute = function(t) {
|
|
990
990
|
t && this.name !== t || this.audioController.unmute();
|
|
991
|
-
},
|
|
991
|
+
}, j.prototype.updaFrameModifier = function() {
|
|
992
992
|
this.frameModifier = this.frameMult * this.playSpeed * this.playDirection, this.audioController.setRate(this.playSpeed * this.playDirection);
|
|
993
|
-
},
|
|
993
|
+
}, j.prototype.getPath = function() {
|
|
994
994
|
return this.path;
|
|
995
|
-
},
|
|
995
|
+
}, j.prototype.getAssetsPath = function(t) {
|
|
996
996
|
var e = "";
|
|
997
997
|
if (t.e)
|
|
998
998
|
e = t.p;
|
|
@@ -1002,30 +1002,30 @@ function wr() {
|
|
|
1002
1002
|
} else
|
|
1003
1003
|
e = this.path, e += t.u ? t.u : "", e += t.p;
|
|
1004
1004
|
return e;
|
|
1005
|
-
},
|
|
1005
|
+
}, j.prototype.getAssetData = function(t) {
|
|
1006
1006
|
for (var e = 0, i = this.assets.length; e < i; ) {
|
|
1007
1007
|
if (t === this.assets[e].id)
|
|
1008
1008
|
return this.assets[e];
|
|
1009
1009
|
e += 1;
|
|
1010
1010
|
}
|
|
1011
1011
|
return null;
|
|
1012
|
-
},
|
|
1012
|
+
}, j.prototype.hide = function() {
|
|
1013
1013
|
this.renderer.hide();
|
|
1014
|
-
},
|
|
1014
|
+
}, j.prototype.show = function() {
|
|
1015
1015
|
this.renderer.show();
|
|
1016
|
-
},
|
|
1016
|
+
}, j.prototype.getDuration = function(t) {
|
|
1017
1017
|
return t ? this.totalFrames : this.totalFrames / this.frameRate;
|
|
1018
|
-
},
|
|
1018
|
+
}, j.prototype.updateDocumentData = function(t, e, i) {
|
|
1019
1019
|
try {
|
|
1020
1020
|
var s = this.renderer.getElementByPath(t);
|
|
1021
1021
|
s.updateDocumentData(e, i);
|
|
1022
1022
|
} catch {
|
|
1023
1023
|
}
|
|
1024
|
-
},
|
|
1024
|
+
}, j.prototype.trigger = function(t) {
|
|
1025
1025
|
if (this._cbs && this._cbs[t])
|
|
1026
1026
|
switch (t) {
|
|
1027
1027
|
case "enterFrame":
|
|
1028
|
-
this.triggerEvent(t, new
|
|
1028
|
+
this.triggerEvent(t, new Ze(t, this.currentFrame, this.totalFrames, this.frameModifier));
|
|
1029
1029
|
break;
|
|
1030
1030
|
case "drawnFrame":
|
|
1031
1031
|
this.drawnFrameEvent.currentTime = this.currentFrame, this.drawnFrameEvent.totalTime = this.totalFrames, this.drawnFrameEvent.direction = this.frameModifier, this.triggerEvent(t, this.drawnFrameEvent);
|
|
@@ -1045,11 +1045,11 @@ function wr() {
|
|
|
1045
1045
|
default:
|
|
1046
1046
|
this.triggerEvent(t);
|
|
1047
1047
|
}
|
|
1048
|
-
t === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new
|
|
1049
|
-
},
|
|
1048
|
+
t === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new Ze(t, this.currentFrame, this.totalFrames, this.frameMult)), t === "loopComplete" && this.onLoopComplete && this.onLoopComplete.call(this, new gi(t, this.loop, this.playCount, this.frameMult)), t === "complete" && this.onComplete && this.onComplete.call(this, new mi(t, this.frameMult)), t === "segmentStart" && this.onSegmentStart && this.onSegmentStart.call(this, new yi(t, this.firstFrame, this.totalFrames)), t === "destroy" && this.onDestroy && this.onDestroy.call(this, new _i(t, this));
|
|
1049
|
+
}, j.prototype.triggerRenderFrameError = function(t) {
|
|
1050
1050
|
var e = new cs(t, this.currentFrame);
|
|
1051
1051
|
this.triggerEvent("error", e), this.onError && this.onError.call(this, e);
|
|
1052
|
-
},
|
|
1052
|
+
}, j.prototype.triggerConfigError = function(t) {
|
|
1053
1053
|
var e = new vs(t, this.currentFrame);
|
|
1054
1054
|
this.triggerEvent("error", e), this.onError && this.onError.call(this, e);
|
|
1055
1055
|
};
|
|
@@ -1067,7 +1067,7 @@ function wr() {
|
|
|
1067
1067
|
return e[a].animation;
|
|
1068
1068
|
a += 1;
|
|
1069
1069
|
}
|
|
1070
|
-
var l = new
|
|
1070
|
+
var l = new j();
|
|
1071
1071
|
return p(l, v), l.setData(v, A), l;
|
|
1072
1072
|
}
|
|
1073
1073
|
function m() {
|
|
@@ -1077,7 +1077,7 @@ function wr() {
|
|
|
1077
1077
|
return a;
|
|
1078
1078
|
}
|
|
1079
1079
|
function _() {
|
|
1080
|
-
n += 1,
|
|
1080
|
+
n += 1, q();
|
|
1081
1081
|
}
|
|
1082
1082
|
function M() {
|
|
1083
1083
|
n -= 1;
|
|
@@ -1089,7 +1089,7 @@ function wr() {
|
|
|
1089
1089
|
}), s += 1;
|
|
1090
1090
|
}
|
|
1091
1091
|
function b(v) {
|
|
1092
|
-
var A = new
|
|
1092
|
+
var A = new j();
|
|
1093
1093
|
return p(A, null), A.setParams(v), A;
|
|
1094
1094
|
}
|
|
1095
1095
|
function k(v, A) {
|
|
@@ -1149,8 +1149,8 @@ function wr() {
|
|
|
1149
1149
|
a || (a = "svg");
|
|
1150
1150
|
var R = document.getElementsByTagName("body")[0];
|
|
1151
1151
|
R.innerText = "";
|
|
1152
|
-
var
|
|
1153
|
-
|
|
1152
|
+
var z = Ot("div");
|
|
1153
|
+
z.style.width = "100%", z.style.height = "100%", z.setAttribute("data-bm-type", a), R.appendChild(z), h(z, v);
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
function I() {
|
|
@@ -1158,14 +1158,14 @@ function wr() {
|
|
|
1158
1158
|
for (v = 0; v < s; v += 1)
|
|
1159
1159
|
e[v].animation.resize();
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function q() {
|
|
1162
1162
|
!o && n && r && (window.requestAnimationFrame(d), r = !1);
|
|
1163
1163
|
}
|
|
1164
1164
|
function N() {
|
|
1165
1165
|
o = !0;
|
|
1166
1166
|
}
|
|
1167
1167
|
function L() {
|
|
1168
|
-
o = !1,
|
|
1168
|
+
o = !1, q();
|
|
1169
1169
|
}
|
|
1170
1170
|
function G(v, A) {
|
|
1171
1171
|
var a;
|
|
@@ -1183,7 +1183,7 @@ function wr() {
|
|
|
1183
1183
|
e[A].animation.unmute(v);
|
|
1184
1184
|
}
|
|
1185
1185
|
return t.registerAnimation = h, t.loadAnimation = b, t.setSpeed = k, t.setDirection = S, t.play = C, t.pause = f, t.stop = g, t.togglePause = P, t.searchAnimations = x, t.resize = I, t.goToAndStop = u, t.destroy = T, t.freeze = N, t.unfreeze = L, t.setVolume = G, t.mute = O, t.unmute = F, t.getRegisteredAnimations = m, t;
|
|
1186
|
-
}(),
|
|
1186
|
+
}(), me = function() {
|
|
1187
1187
|
var t = {};
|
|
1188
1188
|
t.getBezierEasing = i;
|
|
1189
1189
|
var e = {};
|
|
@@ -1250,7 +1250,7 @@ function wr() {
|
|
|
1250
1250
|
for (var u = this._p[0], g = this._p[2], P = this._mSampleValues, T = 0, x = 1, I = c - 1; x !== I && P[x] <= f; ++x)
|
|
1251
1251
|
T += h;
|
|
1252
1252
|
--x;
|
|
1253
|
-
var
|
|
1253
|
+
var q = (f - P[x]) / (P[x + 1] - P[x]), N = T + q * h, L = k(N, u, g);
|
|
1254
1254
|
return L >= n ? C(f, N, u, g) : L === 0 ? N : S(f, T, T + h, u, g);
|
|
1255
1255
|
}
|
|
1256
1256
|
}, t;
|
|
@@ -1261,7 +1261,7 @@ function wr() {
|
|
|
1261
1261
|
return {
|
|
1262
1262
|
double: t
|
|
1263
1263
|
};
|
|
1264
|
-
}(),
|
|
1264
|
+
}(), Re = /* @__PURE__ */ function() {
|
|
1265
1265
|
return function(t, e, i) {
|
|
1266
1266
|
var s = 0, n = t, r = et(n), o = {
|
|
1267
1267
|
newElement: c,
|
|
@@ -1280,11 +1280,11 @@ function wr() {
|
|
|
1280
1280
|
function t() {
|
|
1281
1281
|
return {
|
|
1282
1282
|
addedLength: 0,
|
|
1283
|
-
percents: rt("float32",
|
|
1284
|
-
lengths: rt("float32",
|
|
1283
|
+
percents: rt("float32", Le()),
|
|
1284
|
+
lengths: rt("float32", Le())
|
|
1285
1285
|
};
|
|
1286
1286
|
}
|
|
1287
|
-
return
|
|
1287
|
+
return Re(8, t);
|
|
1288
1288
|
}(), Ci = function() {
|
|
1289
1289
|
function t() {
|
|
1290
1290
|
return {
|
|
@@ -1298,7 +1298,7 @@ function wr() {
|
|
|
1298
1298
|
wi.release(i.lengths[s]);
|
|
1299
1299
|
i.lengths.length = 0;
|
|
1300
1300
|
}
|
|
1301
|
-
return
|
|
1301
|
+
return Re(8, t, e);
|
|
1302
1302
|
}();
|
|
1303
1303
|
function ws() {
|
|
1304
1304
|
var t = Math;
|
|
@@ -1314,13 +1314,13 @@ function wr() {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
var s = /* @__PURE__ */ function() {
|
|
1316
1316
|
return function(p, b, k, S) {
|
|
1317
|
-
var C =
|
|
1317
|
+
var C = Le(), y, d, f, u, g, P = 0, T, x = [], I = [], q = wi.newElement();
|
|
1318
1318
|
for (f = k.length, y = 0; y < C; y += 1) {
|
|
1319
1319
|
for (g = y / (C - 1), T = 0, d = 0; d < f; d += 1)
|
|
1320
1320
|
u = kt(1 - g, 3) * p[d] + 3 * kt(1 - g, 2) * g * k[d] + 3 * (1 - g) * kt(g, 2) * S[d] + kt(g, 3) * b[d], x[d] = u, I[d] !== null && (T += kt(x[d] - I[d], 2)), I[d] = x[d];
|
|
1321
|
-
T && (T = vi(T), P += T),
|
|
1321
|
+
T && (T = vi(T), P += T), q.percents[y] = g, q.lengths[y] = P;
|
|
1322
1322
|
}
|
|
1323
|
-
return
|
|
1323
|
+
return q.addedLength = P, q;
|
|
1324
1324
|
};
|
|
1325
1325
|
}();
|
|
1326
1326
|
function n(p) {
|
|
@@ -1340,13 +1340,13 @@ function wr() {
|
|
|
1340
1340
|
return function(b, k, S, C) {
|
|
1341
1341
|
var y = (b[0] + "_" + b[1] + "_" + k[0] + "_" + k[1] + "_" + S[0] + "_" + S[1] + "_" + C[0] + "_" + C[1]).replace(/\./g, "p");
|
|
1342
1342
|
if (!p[y]) {
|
|
1343
|
-
var d =
|
|
1343
|
+
var d = Le(), f, u, g, P, T, x = 0, I, q, N = null;
|
|
1344
1344
|
b.length === 2 && (b[0] !== k[0] || b[1] !== k[1]) && e(b[0], b[1], k[0], k[1], b[0] + S[0], b[1] + S[1]) && e(b[0], b[1], k[0], k[1], k[0] + C[0], k[1] + C[1]) && (d = 2);
|
|
1345
1345
|
var L = new r(d);
|
|
1346
1346
|
for (g = S.length, f = 0; f < d; f += 1) {
|
|
1347
|
-
for (
|
|
1348
|
-
P = kt(1 - T, 3) * b[u] + 3 * kt(1 - T, 2) * T * (b[u] + S[u]) + 3 * (1 - T) * kt(T, 2) * (k[u] + C[u]) + kt(T, 3) * k[u],
|
|
1349
|
-
I = vi(I), x += I, L.points[f] = new o(I,
|
|
1347
|
+
for (q = et(g), T = f / (d - 1), I = 0, u = 0; u < g; u += 1)
|
|
1348
|
+
P = kt(1 - T, 3) * b[u] + 3 * kt(1 - T, 2) * T * (b[u] + S[u]) + 3 * (1 - T) * kt(T, 2) * (k[u] + C[u]) + kt(T, 3) * k[u], q[u] = P, N !== null && (I += kt(q[u] - N[u], 2));
|
|
1349
|
+
I = vi(I), x += I, L.points[f] = new o(I, q), N = q;
|
|
1350
1350
|
}
|
|
1351
1351
|
L.segmentLength = x, p[y] = L;
|
|
1352
1352
|
}
|
|
@@ -1374,9 +1374,9 @@ function wr() {
|
|
|
1374
1374
|
C < 0 ? C = 0 : C > 1 && (C = 1);
|
|
1375
1375
|
var f = h(C, d);
|
|
1376
1376
|
y = y > 1 ? 1 : y;
|
|
1377
|
-
var u = h(y, d), g, P = p.length, T = 1 - f, x = 1 - u, I = T * T * T,
|
|
1377
|
+
var u = h(y, d), g, P = p.length, T = 1 - f, x = 1 - u, I = T * T * T, q = f * T * T * 3, N = f * f * T * 3, L = f * f * f, G = T * T * x, O = f * T * x + T * f * x + T * T * u, F = f * f * x + T * f * u + f * T * u, v = f * f * u, A = T * x * x, a = f * x * x + T * u * x + T * x * u, l = f * u * x + T * u * u + f * x * u, E = f * u * u, w = x * x * x, R = u * x * x + x * u * x + x * x * u, z = u * u * x + x * u * u + u * x * u, D = u * u * u;
|
|
1378
1378
|
for (g = 0; g < P; g += 1)
|
|
1379
|
-
_[g * 4] = t.round((I * p[g] +
|
|
1379
|
+
_[g * 4] = t.round((I * p[g] + q * k[g] + N * S[g] + L * b[g]) * 1e3) / 1e3, _[g * 4 + 1] = t.round((G * p[g] + O * k[g] + F * S[g] + v * b[g]) * 1e3) / 1e3, _[g * 4 + 2] = t.round((A * p[g] + a * k[g] + l * S[g] + E * b[g]) * 1e3) / 1e3, _[g * 4 + 3] = t.round((w * p[g] + R * k[g] + z * S[g] + D * b[g]) * 1e3) / 1e3;
|
|
1380
1380
|
return _;
|
|
1381
1381
|
}
|
|
1382
1382
|
return {
|
|
@@ -1413,7 +1413,7 @@ function wr() {
|
|
|
1413
1413
|
for (p = u.points[g].point.length, M = 0; M < p; M += 1)
|
|
1414
1414
|
s[M] = u.points[g].point[M];
|
|
1415
1415
|
} else {
|
|
1416
|
-
_.__fnct ? C = _.__fnct : (C =
|
|
1416
|
+
_.__fnct ? C = _.__fnct : (C = me.getBezierEasing(h.o.x, h.o.y, h.i.x, h.i.y, h.n).get, _.__fnct = C), b = C((t - d) / (y - d));
|
|
1417
1417
|
var P = u.segmentLength * b, T, x = e.lastFrame < t && e._lastKeyframeIndex === r ? e._lastAddedLength : 0;
|
|
1418
1418
|
for (S = e.lastFrame < t && e._lastKeyframeIndex === r ? e._lastPoint : 0, c = !0, k = u.points.length; c; ) {
|
|
1419
1419
|
if (x += u.points[S].partialLength, P === 0 || b === 0 || S === u.points.length - 1) {
|
|
@@ -1430,7 +1430,7 @@ function wr() {
|
|
|
1430
1430
|
e._lastPoint = S, e._lastAddedLength = x - u.points[S].partialLength, e._lastKeyframeIndex = r;
|
|
1431
1431
|
}
|
|
1432
1432
|
} else {
|
|
1433
|
-
var I,
|
|
1433
|
+
var I, q, N, L, G;
|
|
1434
1434
|
if (o = h.s.length, f = m.s || h.e, this.sh && h.h !== 1)
|
|
1435
1435
|
if (t >= y)
|
|
1436
1436
|
s[0] = f[0], s[1] = f[1], s[2] = f[2];
|
|
@@ -1442,7 +1442,7 @@ function wr() {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
else
|
|
1444
1444
|
for (r = 0; r < o; r += 1)
|
|
1445
|
-
h.h !== 1 && (t >= y ? b = 1 : t < d ? b = 0 : (h.o.x.constructor === Array ? (_.__fnct || (_.__fnct = []), _.__fnct[r] ? C = _.__fnct[r] : (I = h.o.x[r] === void 0 ? h.o.x[0] : h.o.x[r],
|
|
1445
|
+
h.h !== 1 && (t >= y ? b = 1 : t < d ? b = 0 : (h.o.x.constructor === Array ? (_.__fnct || (_.__fnct = []), _.__fnct[r] ? C = _.__fnct[r] : (I = h.o.x[r] === void 0 ? h.o.x[0] : h.o.x[r], q = h.o.y[r] === void 0 ? h.o.y[0] : h.o.y[r], N = h.i.x[r] === void 0 ? h.i.x[0] : h.i.x[r], L = h.i.y[r] === void 0 ? h.i.y[0] : h.i.y[r], C = me.getBezierEasing(I, q, N, L).get, _.__fnct[r] = C)) : _.__fnct ? C = _.__fnct : (I = h.o.x, q = h.o.y, N = h.i.x, L = h.i.y, C = me.getBezierEasing(I, q, N, L).get, h.keyframeMetadata = C), b = C((t - d) / (y - d)))), f = m.s || h.e, G = h.h === 1 ? h.s[r] : h.s[r] + (f[r] - h.s[r]) * b, this.propType === "multidimensional" ? s[r] = G : s = G;
|
|
1446
1446
|
}
|
|
1447
1447
|
return e.lastIndex = n, s;
|
|
1448
1448
|
}
|
|
@@ -1467,7 +1467,7 @@ function wr() {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
return this._caching.lastFrame = t, this.pv;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function Oe(t) {
|
|
1471
1471
|
var e;
|
|
1472
1472
|
if (this.propType === "unidimensional")
|
|
1473
1473
|
e = t * this.mult, Ti(this.v - e) > 1e-5 && (this.v = e, this._mdf = !0);
|
|
@@ -1475,7 +1475,7 @@ function wr() {
|
|
|
1475
1475
|
for (var i = 0, s = this.v.length; i < s; )
|
|
1476
1476
|
e = t[i] * this.mult, Ti(this.v[i] - e) > 1e-5 && (this.v[i] = e, this._mdf = !0), i += 1;
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function Be() {
|
|
1479
1479
|
if (!(this.elem.globalData.frameId === this.frameId || !this.effectsSequence.length)) {
|
|
1480
1480
|
if (this.lock) {
|
|
1481
1481
|
this.setVValue(this.pv);
|
|
@@ -1488,18 +1488,18 @@ function wr() {
|
|
|
1488
1488
|
this.setVValue(i), this._isFirstFrame = !1, this.lock = !1, this.frameId = this.elem.globalData.frameId;
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function Ne(t) {
|
|
1492
1492
|
this.effectsSequence.push(t), this.container.addDynamicProperty(this);
|
|
1493
1493
|
}
|
|
1494
1494
|
function Ms(t, e, i, s) {
|
|
1495
|
-
this.propType = "unidimensional", this.mult = i || 1, this.data = e, this.v = i ? e.k * i : e.k, this.pv = e.k, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.vel = 0, this.effectsSequence = [], this._isFirstFrame = !0, this.getValue =
|
|
1495
|
+
this.propType = "unidimensional", this.mult = i || 1, this.data = e, this.v = i ? e.k * i : e.k, this.pv = e.k, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.vel = 0, this.effectsSequence = [], this._isFirstFrame = !0, this.getValue = Be, this.setVValue = Oe, this.addEffect = Ne;
|
|
1496
1496
|
}
|
|
1497
1497
|
function Es(t, e, i, s) {
|
|
1498
1498
|
this.propType = "multidimensional", this.mult = i || 1, this.data = e, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.frameId = -1;
|
|
1499
1499
|
var n, r = e.k.length;
|
|
1500
1500
|
for (this.v = rt("float32", r), this.pv = rt("float32", r), this.vel = rt("float32", r), n = 0; n < r; n += 1)
|
|
1501
1501
|
this.v[n] = e.k[n] * this.mult, this.pv[n] = e.k[n];
|
|
1502
|
-
this._isFirstFrame = !0, this.effectsSequence = [], this.getValue =
|
|
1502
|
+
this._isFirstFrame = !0, this.effectsSequence = [], this.getValue = Be, this.setVValue = Oe, this.addEffect = Ne;
|
|
1503
1503
|
}
|
|
1504
1504
|
function xs(t, e, i, s) {
|
|
1505
1505
|
this.propType = "unidimensional", this.keyframes = e.k, this.keyframesMetadata = [], this.offsetTime = t.data.st, this.frameId = -1, this._caching = {
|
|
@@ -1507,14 +1507,14 @@ function wr() {
|
|
|
1507
1507
|
lastIndex: 0,
|
|
1508
1508
|
value: 0,
|
|
1509
1509
|
_lastKeyframeIndex: -1
|
|
1510
|
-
}, this.k = !0, this.kf = !0, this.data = e, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.v = Jt, this.pv = Jt, this._isFirstFrame = !0, this.getValue =
|
|
1510
|
+
}, this.k = !0, this.kf = !0, this.data = e, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.v = Jt, this.pv = Jt, this._isFirstFrame = !0, this.getValue = Be, this.setVValue = Oe, this.interpolateValue = Mi, this.effectsSequence = [xi.bind(this)], this.addEffect = Ne;
|
|
1511
1511
|
}
|
|
1512
1512
|
function Fs(t, e, i, s) {
|
|
1513
1513
|
this.propType = "multidimensional";
|
|
1514
1514
|
var n, r = e.k.length, o, c, h, m;
|
|
1515
1515
|
for (n = 0; n < r - 1; n += 1)
|
|
1516
1516
|
e.k[n].to && e.k[n].s && e.k[n + 1] && e.k[n + 1].s && (o = e.k[n].s, c = e.k[n + 1].s, h = e.k[n].to, m = e.k[n].ti, (o.length === 2 && !(o[0] === c[0] && o[1] === c[1]) && Pt.pointOnLine2D(o[0], o[1], c[0], c[1], o[0] + h[0], o[1] + h[1]) && Pt.pointOnLine2D(o[0], o[1], c[0], c[1], c[0] + m[0], c[1] + m[1]) || o.length === 3 && !(o[0] === c[0] && o[1] === c[1] && o[2] === c[2]) && Pt.pointOnLine3D(o[0], o[1], o[2], c[0], c[1], c[2], o[0] + h[0], o[1] + h[1], o[2] + h[2]) && Pt.pointOnLine3D(o[0], o[1], o[2], c[0], c[1], c[2], c[0] + m[0], c[1] + m[1], c[2] + m[2])) && (e.k[n].to = null, e.k[n].ti = null), o[0] === c[0] && o[1] === c[1] && h[0] === 0 && h[1] === 0 && m[0] === 0 && m[1] === 0 && (o.length === 2 || o[2] === c[2] && h[2] === 0 && m[2] === 0) && (e.k[n].to = null, e.k[n].ti = null));
|
|
1517
|
-
this.effectsSequence = [xi.bind(this)], this.data = e, this.keyframes = e.k, this.keyframesMetadata = [], this.offsetTime = t.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.getValue =
|
|
1517
|
+
this.effectsSequence = [xi.bind(this)], this.data = e, this.keyframes = e.k, this.keyframesMetadata = [], this.offsetTime = t.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.getValue = Be, this.setVValue = Oe, this.interpolateValue = Mi, this.frameId = -1;
|
|
1518
1518
|
var _ = e.k[0].s.length;
|
|
1519
1519
|
for (this.v = rt("float32", _), this.pv = rt("float32", _), n = 0; n < _; n += 1)
|
|
1520
1520
|
this.v[n] = Jt, this.pv[n] = Jt;
|
|
@@ -1522,7 +1522,7 @@ function wr() {
|
|
|
1522
1522
|
lastFrame: Jt,
|
|
1523
1523
|
lastIndex: 0,
|
|
1524
1524
|
value: rt("float32", _)
|
|
1525
|
-
}, this.addEffect =
|
|
1525
|
+
}, this.addEffect = Ne;
|
|
1526
1526
|
}
|
|
1527
1527
|
var V = /* @__PURE__ */ function() {
|
|
1528
1528
|
function t(i, s, n, r, o) {
|
|
@@ -1568,7 +1568,7 @@ function wr() {
|
|
|
1568
1568
|
function t() {
|
|
1569
1569
|
return rt("float32", 2);
|
|
1570
1570
|
}
|
|
1571
|
-
return
|
|
1571
|
+
return Re(8, t);
|
|
1572
1572
|
}();
|
|
1573
1573
|
function Et() {
|
|
1574
1574
|
this.c = !1, this._length = 0, this._maxLength = 8, this.v = et(this._maxLength), this.o = et(this._maxLength), this.i = et(this._maxLength);
|
|
@@ -1630,15 +1630,15 @@ function wr() {
|
|
|
1630
1630
|
r.setTripleAt(n.v[o][0], n.v[o][1], n.o[o][0], n.o[o][1], n.i[o][0], n.i[o][1], o);
|
|
1631
1631
|
return r;
|
|
1632
1632
|
}
|
|
1633
|
-
var s =
|
|
1633
|
+
var s = Re(4, t, e);
|
|
1634
1634
|
return s.clone = i, s;
|
|
1635
1635
|
}();
|
|
1636
|
-
function
|
|
1636
|
+
function Qe() {
|
|
1637
1637
|
this._length = 0, this._maxLength = 4, this.shapes = et(this._maxLength);
|
|
1638
1638
|
}
|
|
1639
|
-
|
|
1639
|
+
Qe.prototype.addShape = function(t) {
|
|
1640
1640
|
this._length === this._maxLength && (this.shapes = this.shapes.concat(et(this._maxLength)), this._maxLength *= 2), this.shapes[this._length] = t, this._length += 1;
|
|
1641
|
-
},
|
|
1641
|
+
}, Qe.prototype.releaseShapes = function() {
|
|
1642
1642
|
var t;
|
|
1643
1643
|
for (t = 0; t < this._length; t += 1)
|
|
1644
1644
|
ht.release(this.shapes[t]);
|
|
@@ -1651,7 +1651,7 @@ function wr() {
|
|
|
1651
1651
|
}, e = 0, i = 4, s = et(i);
|
|
1652
1652
|
function n() {
|
|
1653
1653
|
var o;
|
|
1654
|
-
return e ? (e -= 1, o = s[e]) : o = new
|
|
1654
|
+
return e ? (e -= 1, o = s[e]) : o = new Qe(), o;
|
|
1655
1655
|
}
|
|
1656
1656
|
function r(o) {
|
|
1657
1657
|
var c, h = o._length;
|
|
@@ -1660,10 +1660,10 @@ function wr() {
|
|
|
1660
1660
|
o._length = 0, e === i && (s = Pi.double(s), i *= 2), s[e] = o, e += 1;
|
|
1661
1661
|
}
|
|
1662
1662
|
return t;
|
|
1663
|
-
}(),
|
|
1663
|
+
}(), je = function() {
|
|
1664
1664
|
var t = -999999;
|
|
1665
1665
|
function e(y, d, f) {
|
|
1666
|
-
var u = f.lastIndex, g, P, T, x, I,
|
|
1666
|
+
var u = f.lastIndex, g, P, T, x, I, q, N, L, G, O = this.keyframes;
|
|
1667
1667
|
if (y < O[0].t - this.offsetTime)
|
|
1668
1668
|
g = O[0].s[0], T = !0, u = 0;
|
|
1669
1669
|
else if (y >= O[O.length - 1].t - this.offsetTime)
|
|
@@ -1678,13 +1678,13 @@ function wr() {
|
|
|
1678
1678
|
L = 0;
|
|
1679
1679
|
else {
|
|
1680
1680
|
var w;
|
|
1681
|
-
E.__fnct ? w = E.__fnct : (w =
|
|
1681
|
+
E.__fnct ? w = E.__fnct : (w = me.getBezierEasing(a.o.x, a.o.y, a.i.x, a.i.y).get, E.__fnct = w), L = w((y - (a.t - this.offsetTime)) / (l.t - this.offsetTime - (a.t - this.offsetTime)));
|
|
1682
1682
|
}
|
|
1683
1683
|
P = l.s ? l.s[0] : a.e[0];
|
|
1684
1684
|
}
|
|
1685
1685
|
g = a.s[0];
|
|
1686
1686
|
}
|
|
1687
|
-
for (
|
|
1687
|
+
for (q = d._length, N = g.i[0].length, f.lastIndex = u, x = 0; x < q; x += 1)
|
|
1688
1688
|
for (I = 0; I < N; I += 1)
|
|
1689
1689
|
G = T ? g.i[x][I] : g.i[x][I] + (P.i[x][I] - g.i[x][I]) * L, d.i[x][I] = G, G = T ? g.o[x][I] : g.o[x][I] + (P.o[x][I] - g.o[x][I]) * L, d.o[x][I] = G, G = T ? g.v[x][I] : g.v[x][I] + (P.v[x][I] - g.v[x][I]) * L, d.v[x][I] = G;
|
|
1690
1690
|
}
|
|
@@ -1769,20 +1769,20 @@ function wr() {
|
|
|
1769
1769
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
1770
1770
|
},
|
|
1771
1771
|
convertStarToPath: function() {
|
|
1772
|
-
var f = Math.floor(this.pt.v) * 2, u = Math.PI * 2 / f, g = !0, P = this.or.v, T = this.ir.v, x = this.os.v, I = this.is.v,
|
|
1772
|
+
var f = Math.floor(this.pt.v) * 2, u = Math.PI * 2 / f, g = !0, P = this.or.v, T = this.ir.v, x = this.os.v, I = this.is.v, q = 2 * Math.PI * P / (f * 2), N = 2 * Math.PI * T / (f * 2), L, G, O, F, v = -Math.PI / 2;
|
|
1773
1773
|
v += this.r.v;
|
|
1774
1774
|
var A = this.data.d === 3 ? -1 : 1;
|
|
1775
1775
|
for (this.v._length = 0, L = 0; L < f; L += 1) {
|
|
1776
|
-
G = g ? P : T, O = g ? x : I, F = g ?
|
|
1776
|
+
G = g ? P : T, O = g ? x : I, F = g ? q : N;
|
|
1777
1777
|
var a = G * Math.cos(v), l = G * Math.sin(v), E = a === 0 && l === 0 ? 0 : l / Math.sqrt(a * a + l * l), w = a === 0 && l === 0 ? 0 : -a / Math.sqrt(a * a + l * l);
|
|
1778
1778
|
a += +this.p.v[0], l += +this.p.v[1], this.v.setTripleAt(a, l, a - E * F * O * A, l - w * F * O * A, a + E * F * O * A, l + w * F * O * A, L, !0), g = !g, v += u * A;
|
|
1779
1779
|
}
|
|
1780
1780
|
},
|
|
1781
1781
|
convertPolygonToPath: function() {
|
|
1782
|
-
var f = Math.floor(this.pt.v), u = Math.PI * 2 / f, g = this.or.v, P = this.os.v, T = 2 * Math.PI * g / (f * 4), x, I = -Math.PI * 0.5,
|
|
1782
|
+
var f = Math.floor(this.pt.v), u = Math.PI * 2 / f, g = this.or.v, P = this.os.v, T = 2 * Math.PI * g / (f * 4), x, I = -Math.PI * 0.5, q = this.data.d === 3 ? -1 : 1;
|
|
1783
1783
|
for (I += this.r.v, this.v._length = 0, x = 0; x < f; x += 1) {
|
|
1784
1784
|
var N = g * Math.cos(I), L = g * Math.sin(I), G = N === 0 && L === 0 ? 0 : L / Math.sqrt(N * N + L * L), O = N === 0 && L === 0 ? 0 : -N / Math.sqrt(N * N + L * L);
|
|
1785
|
-
N += +this.p.v[0], L += +this.p.v[1], this.v.setTripleAt(N, L, N - G * T * P *
|
|
1785
|
+
N += +this.p.v[0], L += +this.p.v[1], this.v.setTripleAt(N, L, N - G * T * P * q, L - O * T * P * q, N + G * T * P * q, L + O * T * P * q, x, !0), I += u * q;
|
|
1786
1786
|
}
|
|
1787
1787
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
1788
1788
|
}
|
|
@@ -1869,18 +1869,18 @@ function wr() {
|
|
|
1869
1869
|
function p(a, l, E) {
|
|
1870
1870
|
return !E && E !== 0 && (E = 1), a === 1 && l === 1 && E === 1 ? this : this._t(a, 0, 0, 0, 0, l, 0, 0, 0, 0, E, 0, 0, 0, 0, 1);
|
|
1871
1871
|
}
|
|
1872
|
-
function b(a, l, E, w, R,
|
|
1873
|
-
return this.props[0] = a, this.props[1] = l, this.props[2] = E, this.props[3] = w, this.props[4] = R, this.props[5] =
|
|
1872
|
+
function b(a, l, E, w, R, z, D, Y, H, $, vt, Ct, dt, at, gt, K) {
|
|
1873
|
+
return this.props[0] = a, this.props[1] = l, this.props[2] = E, this.props[3] = w, this.props[4] = R, this.props[5] = z, this.props[6] = D, this.props[7] = Y, this.props[8] = H, this.props[9] = $, this.props[10] = vt, this.props[11] = Ct, this.props[12] = dt, this.props[13] = at, this.props[14] = gt, this.props[15] = K, this;
|
|
1874
1874
|
}
|
|
1875
1875
|
function k(a, l, E) {
|
|
1876
1876
|
return E = E || 0, a !== 0 || l !== 0 || E !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, a, l, E, 1) : this;
|
|
1877
1877
|
}
|
|
1878
|
-
function S(a, l, E, w, R,
|
|
1878
|
+
function S(a, l, E, w, R, z, D, Y, H, $, vt, Ct, dt, at, gt, K) {
|
|
1879
1879
|
var B = this.props;
|
|
1880
|
-
if (a === 1 && l === 0 && E === 0 && w === 0 && R === 0 &&
|
|
1881
|
-
return B[12] = B[12] * a + B[15] * dt, B[13] = B[13] *
|
|
1882
|
-
var It = B[0], Gt = B[1], Lt = B[2], Tt = B[3], Vt = B[4], Rt = B[5], mt = B[6], Xt = B[7], Yt = B[8], St = B[9], Ht = B[10], At = B[11], ie = B[12],
|
|
1883
|
-
return B[0] = It * a + Gt * R + Lt * H + Tt * dt, B[1] = It * l + Gt *
|
|
1880
|
+
if (a === 1 && l === 0 && E === 0 && w === 0 && R === 0 && z === 1 && D === 0 && Y === 0 && H === 0 && $ === 0 && vt === 1 && Ct === 0)
|
|
1881
|
+
return B[12] = B[12] * a + B[15] * dt, B[13] = B[13] * z + B[15] * at, B[14] = B[14] * vt + B[15] * gt, B[15] *= K, this._identityCalculated = !1, this;
|
|
1882
|
+
var It = B[0], Gt = B[1], Lt = B[2], Tt = B[3], Vt = B[4], Rt = B[5], mt = B[6], Xt = B[7], Yt = B[8], St = B[9], Ht = B[10], At = B[11], ie = B[12], Xe = B[13], Ye = B[14], He = B[15];
|
|
1883
|
+
return B[0] = It * a + Gt * R + Lt * H + Tt * dt, B[1] = It * l + Gt * z + Lt * $ + Tt * at, B[2] = It * E + Gt * D + Lt * vt + Tt * gt, B[3] = It * w + Gt * Y + Lt * Ct + Tt * K, B[4] = Vt * a + Rt * R + mt * H + Xt * dt, B[5] = Vt * l + Rt * z + mt * $ + Xt * at, B[6] = Vt * E + Rt * D + mt * vt + Xt * gt, B[7] = Vt * w + Rt * Y + mt * Ct + Xt * K, B[8] = Yt * a + St * R + Ht * H + At * dt, B[9] = Yt * l + St * z + Ht * $ + At * at, B[10] = Yt * E + St * D + Ht * vt + At * gt, B[11] = Yt * w + St * Y + Ht * Ct + At * K, B[12] = ie * a + Xe * R + Ye * H + He * dt, B[13] = ie * l + Xe * z + Ye * $ + He * at, B[14] = ie * E + Xe * D + Ye * vt + He * gt, B[15] = ie * w + Xe * Y + Ye * Ct + He * K, this._identityCalculated = !1, this;
|
|
1884
1884
|
}
|
|
1885
1885
|
function C(a) {
|
|
1886
1886
|
var l = a.props;
|
|
@@ -1925,17 +1925,17 @@ function wr() {
|
|
|
1925
1925
|
return a * this.props[2] + l * this.props[6] + E * this.props[10] + this.props[14];
|
|
1926
1926
|
}
|
|
1927
1927
|
function I() {
|
|
1928
|
-
var a = this.props[0] * this.props[5] - this.props[1] * this.props[4], l = this.props[5] / a, E = -this.props[1] / a, w = -this.props[4] / a, R = this.props[0] / a,
|
|
1929
|
-
return Y.props[0] = l, Y.props[1] = E, Y.props[4] = w, Y.props[5] = R, Y.props[12] =
|
|
1928
|
+
var a = this.props[0] * this.props[5] - this.props[1] * this.props[4], l = this.props[5] / a, E = -this.props[1] / a, w = -this.props[4] / a, R = this.props[0] / a, z = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / a, D = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / a, Y = new lt();
|
|
1929
|
+
return Y.props[0] = l, Y.props[1] = E, Y.props[4] = w, Y.props[5] = R, Y.props[12] = z, Y.props[13] = D, Y;
|
|
1930
1930
|
}
|
|
1931
|
-
function
|
|
1931
|
+
function q(a) {
|
|
1932
1932
|
var l = this.getInverseMatrix();
|
|
1933
1933
|
return l.applyToPointArray(a[0], a[1], a[2] || 0);
|
|
1934
1934
|
}
|
|
1935
1935
|
function N(a) {
|
|
1936
1936
|
var l, E = a.length, w = [];
|
|
1937
1937
|
for (l = 0; l < E; l += 1)
|
|
1938
|
-
w[l] =
|
|
1938
|
+
w[l] = q(a[l]);
|
|
1939
1939
|
return w;
|
|
1940
1940
|
}
|
|
1941
1941
|
function L(a, l, E) {
|
|
@@ -1943,8 +1943,8 @@ function wr() {
|
|
|
1943
1943
|
if (this.isIdentity())
|
|
1944
1944
|
w[0] = a[0], w[1] = a[1], w[2] = l[0], w[3] = l[1], w[4] = E[0], w[5] = E[1];
|
|
1945
1945
|
else {
|
|
1946
|
-
var R = this.props[0],
|
|
1947
|
-
w[0] = a[0] * R + a[1] * D + H, w[1] = a[0] *
|
|
1946
|
+
var R = this.props[0], z = this.props[1], D = this.props[4], Y = this.props[5], H = this.props[12], $ = this.props[13];
|
|
1947
|
+
w[0] = a[0] * R + a[1] * D + H, w[1] = a[0] * z + a[1] * Y + $, w[2] = l[0] * R + l[1] * D + H, w[3] = l[0] * z + l[1] * Y + $, w[4] = E[0] * R + E[1] * D + H, w[5] = E[0] * z + E[1] * Y + $;
|
|
1948
1948
|
}
|
|
1949
1949
|
return w;
|
|
1950
1950
|
}
|
|
@@ -1968,20 +1968,20 @@ function wr() {
|
|
|
1968
1968
|
return a < 1e-6 && a > 0 || a > -1e-6 && a < 0 ? s(a * l) / l : a;
|
|
1969
1969
|
}
|
|
1970
1970
|
function A() {
|
|
1971
|
-
var a = this.props, l = v(a[0]), E = v(a[1]), w = v(a[4]), R = v(a[5]),
|
|
1972
|
-
return "matrix(" + l + "," + E + "," + w + "," + R + "," +
|
|
1971
|
+
var a = this.props, l = v(a[0]), E = v(a[1]), w = v(a[4]), R = v(a[5]), z = v(a[12]), D = v(a[13]);
|
|
1972
|
+
return "matrix(" + l + "," + E + "," + w + "," + R + "," + z + "," + D + ")";
|
|
1973
1973
|
}
|
|
1974
1974
|
return function() {
|
|
1975
|
-
this.reset = n, this.rotate = r, this.rotateX = o, this.rotateY = c, this.rotateZ = h, this.skew = _, this.skewFromAxis = M, this.shear = m, this.scale = p, this.setTransform = b, this.translate = k, this.transform = S, this.multiply = C, this.applyToPoint = g, this.applyToX = P, this.applyToY = T, this.applyToZ = x, this.applyToPointArray = G, this.applyToTriplePoints = L, this.applyToPointStringified = O, this.toCSS = F, this.to2dCSS = A, this.clone = f, this.cloneFromProps = u, this.equals = d, this.inversePoints = N, this.inversePoint =
|
|
1975
|
+
this.reset = n, this.rotate = r, this.rotateX = o, this.rotateY = c, this.rotateZ = h, this.skew = _, this.skewFromAxis = M, this.shear = m, this.scale = p, this.setTransform = b, this.translate = k, this.transform = S, this.multiply = C, this.applyToPoint = g, this.applyToX = P, this.applyToY = T, this.applyToZ = x, this.applyToPointArray = G, this.applyToTriplePoints = L, this.applyToPointStringified = O, this.toCSS = F, this.to2dCSS = A, this.clone = f, this.cloneFromProps = u, this.equals = d, this.inversePoints = N, this.inversePoint = q, this.getInverseMatrix = I, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = rt("float32", 16), this.reset();
|
|
1976
1976
|
};
|
|
1977
1977
|
}();
|
|
1978
|
-
function
|
|
1978
|
+
function $e(t) {
|
|
1979
1979
|
"@babel/helpers - typeof";
|
|
1980
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
1981
|
-
return typeof
|
|
1982
|
-
} :
|
|
1983
|
-
return
|
|
1984
|
-
},
|
|
1980
|
+
return $e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1981
|
+
return typeof e;
|
|
1982
|
+
} : function(e) {
|
|
1983
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1984
|
+
}, $e(t);
|
|
1985
1985
|
}
|
|
1986
1986
|
var Z = {};
|
|
1987
1987
|
function Is(t) {
|
|
@@ -2003,17 +2003,17 @@ function wr() {
|
|
|
2003
2003
|
if (typeof t == "string")
|
|
2004
2004
|
switch (t) {
|
|
2005
2005
|
case "high":
|
|
2006
|
-
|
|
2006
|
+
Ie(200);
|
|
2007
2007
|
break;
|
|
2008
2008
|
default:
|
|
2009
2009
|
case "medium":
|
|
2010
|
-
|
|
2010
|
+
Ie(50);
|
|
2011
2011
|
break;
|
|
2012
2012
|
case "low":
|
|
2013
|
-
|
|
2013
|
+
Ie(10);
|
|
2014
2014
|
break;
|
|
2015
2015
|
}
|
|
2016
|
-
else !isNaN(t) && t > 1 &&
|
|
2016
|
+
else !isNaN(t) && t > 1 && Ie(t);
|
|
2017
2017
|
}
|
|
2018
2018
|
function Bs() {
|
|
2019
2019
|
return typeof navigator < "u";
|
|
@@ -2021,23 +2021,23 @@ function wr() {
|
|
|
2021
2021
|
function Ns(t, e) {
|
|
2022
2022
|
t === "expressions" && gs(e);
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2024
|
+
function js(t) {
|
|
2025
2025
|
switch (t) {
|
|
2026
2026
|
case "propertyFactory":
|
|
2027
2027
|
return V;
|
|
2028
2028
|
case "shapePropertyFactory":
|
|
2029
|
-
return
|
|
2029
|
+
return je;
|
|
2030
2030
|
case "matrix":
|
|
2031
2031
|
return lt;
|
|
2032
2032
|
default:
|
|
2033
2033
|
return null;
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
|
-
Z.play = it.play, Z.pause = it.pause, Z.setLocationHref = Is, Z.togglePause = it.togglePause, Z.setSpeed = it.setSpeed, Z.setDirection = it.setDirection, Z.stop = it.stop, Z.searchAnimations = Fi, Z.registerAnimation = it.registerAnimation, Z.loadAnimation = Rs, Z.setSubframeRendering = Ls, Z.resize = it.resize, Z.goToAndStop = it.goToAndStop, Z.destroy = it.destroy, Z.setQuality = Os, Z.inBrowser = Bs, Z.installPlugin = Ns, Z.freeze = it.freeze, Z.unfreeze = it.unfreeze, Z.setVolume = it.setVolume, Z.mute = it.mute, Z.unmute = it.unmute, Z.getRegisteredAnimations = it.getRegisteredAnimations, Z.useWebWorker =
|
|
2037
|
-
function
|
|
2036
|
+
Z.play = it.play, Z.pause = it.pause, Z.setLocationHref = Is, Z.togglePause = it.togglePause, Z.setSpeed = it.setSpeed, Z.setDirection = it.setDirection, Z.stop = it.stop, Z.searchAnimations = Fi, Z.registerAnimation = it.registerAnimation, Z.loadAnimation = Rs, Z.setSubframeRendering = Ls, Z.resize = it.resize, Z.goToAndStop = it.goToAndStop, Z.destroy = it.destroy, Z.setQuality = Os, Z.inBrowser = Bs, Z.installPlugin = Ns, Z.freeze = it.freeze, Z.unfreeze = it.unfreeze, Z.setVolume = it.setVolume, Z.mute = it.mute, Z.unmute = it.unmute, Z.getRegisteredAnimations = it.getRegisteredAnimations, Z.useWebWorker = xe, Z.setIDPrefix = Vs, Z.__getFactory = js, Z.version = "5.13.0";
|
|
2037
|
+
function zs() {
|
|
2038
2038
|
document.readyState === "complete" && (clearInterval(Ws), Fi());
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function qs(t) {
|
|
2041
2041
|
for (var e = Ii.split("&"), i = 0; i < e.length; i += 1) {
|
|
2042
2042
|
var s = e[i].split("=");
|
|
2043
2043
|
if (decodeURIComponent(s[0]) == t)
|
|
@@ -2050,11 +2050,11 @@ function wr() {
|
|
|
2050
2050
|
var Li = document.getElementsByTagName("script"), Ds = Li.length - 1, Vi = Li[Ds] || {
|
|
2051
2051
|
src: ""
|
|
2052
2052
|
};
|
|
2053
|
-
Ii = Vi.src ? Vi.src.replace(/^[^\?]+\??/, "") : "",
|
|
2053
|
+
Ii = Vi.src ? Vi.src.replace(/^[^\?]+\??/, "") : "", qs("renderer");
|
|
2054
2054
|
}
|
|
2055
|
-
var Ws = setInterval(
|
|
2055
|
+
var Ws = setInterval(zs, 100);
|
|
2056
2056
|
try {
|
|
2057
|
-
|
|
2057
|
+
$e(se) !== "object" && (window.bodymovin = Z);
|
|
2058
2058
|
} catch {
|
|
2059
2059
|
}
|
|
2060
2060
|
var Nt = function() {
|
|
@@ -2220,11 +2220,11 @@ function wr() {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
return k;
|
|
2222
2222
|
};
|
|
2223
|
-
function
|
|
2223
|
+
function ge() {
|
|
2224
2224
|
}
|
|
2225
|
-
X([yt],
|
|
2225
|
+
X([yt], ge), ge.prototype.initModifierProperties = function(t, e) {
|
|
2226
2226
|
this.getValue = this.processKeys, this.amount = V.getProp(t, e.a, 0, null, this), this._isAnimated = !!this.amount.effectsSequence.length;
|
|
2227
|
-
},
|
|
2227
|
+
}, ge.prototype.processPath = function(t, e) {
|
|
2228
2228
|
var i = e / 100, s = [0, 0], n = t._length, r = 0;
|
|
2229
2229
|
for (r = 0; r < n; r += 1)
|
|
2230
2230
|
s[0] += t.v[r][0], s[1] += t.v[r][1];
|
|
@@ -2235,7 +2235,7 @@ function wr() {
|
|
|
2235
2235
|
for (r = 0; r < n; r += 1)
|
|
2236
2236
|
c = t.v[r][0] + (s[0] - t.v[r][0]) * i, h = t.v[r][1] + (s[1] - t.v[r][1]) * i, m = t.o[r][0] + (s[0] - t.o[r][0]) * -i, _ = t.o[r][1] + (s[1] - t.o[r][1]) * -i, M = t.i[r][0] + (s[0] - t.i[r][0]) * -i, p = t.i[r][1] + (s[1] - t.i[r][1]) * -i, o.setTripleAt(c, h, m, _, M, p, r);
|
|
2237
2237
|
return o;
|
|
2238
|
-
},
|
|
2238
|
+
}, ge.prototype.processShapes = function(t) {
|
|
2239
2239
|
var e, i, s = this.shapes.length, n, r, o = this.amount.v;
|
|
2240
2240
|
if (o !== 0) {
|
|
2241
2241
|
var c, h;
|
|
@@ -2453,18 +2453,18 @@ function wr() {
|
|
|
2453
2453
|
return o;
|
|
2454
2454
|
}, wt.prototype.addShape = function() {
|
|
2455
2455
|
};
|
|
2456
|
-
function
|
|
2456
|
+
function ye() {
|
|
2457
2457
|
}
|
|
2458
|
-
X([yt],
|
|
2458
|
+
X([yt], ye), ye.prototype.initModifierProperties = function(t, e) {
|
|
2459
2459
|
this.getValue = this.processKeys, this.rd = V.getProp(t, e.r, 0, null, this), this._isAnimated = !!this.rd.effectsSequence.length;
|
|
2460
|
-
},
|
|
2460
|
+
}, ye.prototype.processPath = function(t, e) {
|
|
2461
2461
|
var i = ht.newElement();
|
|
2462
2462
|
i.c = t.c;
|
|
2463
2463
|
var s, n = t._length, r, o, c, h, m, _, M = 0, p, b, k, S, C, y;
|
|
2464
2464
|
for (s = 0; s < n; s += 1)
|
|
2465
2465
|
r = t.v[s], c = t.o[s], o = t.i[s], r[0] === c[0] && r[1] === c[1] && r[0] === o[0] && r[1] === o[1] ? (s === 0 || s === n - 1) && !t.c ? (i.setTripleAt(r[0], r[1], c[0], c[1], o[0], o[1], M), M += 1) : (s === 0 ? h = t.v[n - 1] : h = t.v[s - 1], m = Math.sqrt(Math.pow(r[0] - h[0], 2) + Math.pow(r[1] - h[1], 2)), _ = m ? Math.min(m / 2, e) / m : 0, C = r[0] + (h[0] - r[0]) * _, p = C, y = r[1] - (r[1] - h[1]) * _, b = y, k = p - (p - r[0]) * Bt, S = b - (b - r[1]) * Bt, i.setTripleAt(p, b, k, S, C, y, M), M += 1, s === n - 1 ? h = t.v[0] : h = t.v[s + 1], m = Math.sqrt(Math.pow(r[0] - h[0], 2) + Math.pow(r[1] - h[1], 2)), _ = m ? Math.min(m / 2, e) / m : 0, k = r[0] + (h[0] - r[0]) * _, p = k, S = r[1] + (h[1] - r[1]) * _, b = S, C = p - (p - r[0]) * Bt, y = b - (b - r[1]) * Bt, i.setTripleAt(p, b, k, S, C, y, M), M += 1) : (i.setTripleAt(t.v[s][0], t.v[s][1], t.o[s][0], t.o[s][1], t.i[s][0], t.i[s][1], M), M += 1);
|
|
2466
2466
|
return i;
|
|
2467
|
-
},
|
|
2467
|
+
}, ye.prototype.processShapes = function(t) {
|
|
2468
2468
|
var e, i, s = this.shapes.length, n, r, o = this.rd.v;
|
|
2469
2469
|
if (o !== 0) {
|
|
2470
2470
|
var c, h;
|
|
@@ -2477,7 +2477,7 @@ function wr() {
|
|
|
2477
2477
|
}
|
|
2478
2478
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
2479
2479
|
};
|
|
2480
|
-
function
|
|
2480
|
+
function ze(t, e) {
|
|
2481
2481
|
return Math.abs(t - e) * 1e5 <= Math.min(Math.abs(t), Math.abs(e));
|
|
2482
2482
|
}
|
|
2483
2483
|
function ei(t) {
|
|
@@ -2486,7 +2486,7 @@ function wr() {
|
|
|
2486
2486
|
function Ri(t, e, i) {
|
|
2487
2487
|
return t * (1 - i) + e * i;
|
|
2488
2488
|
}
|
|
2489
|
-
function
|
|
2489
|
+
function jt(t, e, i) {
|
|
2490
2490
|
return [Ri(t[0], e[0], i), Ri(t[1], e[1], i)];
|
|
2491
2491
|
}
|
|
2492
2492
|
function Gs(t, e, i) {
|
|
@@ -2505,7 +2505,7 @@ function wr() {
|
|
|
2505
2505
|
return new U(t, t, t, t, !1);
|
|
2506
2506
|
}
|
|
2507
2507
|
function U(t, e, i, s, n) {
|
|
2508
|
-
n && he(t, e) && (e =
|
|
2508
|
+
n && he(t, e) && (e = jt(t, s, 1 / 3)), n && he(i, s) && (i = jt(t, s, 2 / 3));
|
|
2509
2509
|
var r = Oi(t[0], e[0], i[0], s[0]), o = Oi(t[1], e[1], i[1], s[1]);
|
|
2510
2510
|
this.a = [r[0], o[0]], this.b = [r[1], o[1]], this.c = [r[2], o[2]], this.d = [r[3], o[3]], this.points = [t, e, i, s];
|
|
2511
2511
|
}
|
|
@@ -2531,7 +2531,7 @@ function wr() {
|
|
|
2531
2531
|
}, U.prototype.split = function(t) {
|
|
2532
2532
|
if (t <= 0) return [Bi(this.points[0]), this];
|
|
2533
2533
|
if (t >= 1) return [this, Bi(this.points[this.points.length - 1])];
|
|
2534
|
-
var e =
|
|
2534
|
+
var e = jt(this.points[0], this.points[1], t), i = jt(this.points[1], this.points[2], t), s = jt(this.points[2], this.points[3], t), n = jt(e, i, t), r = jt(i, s, t), o = jt(n, r, t);
|
|
2535
2535
|
return [new U(this.points[0], e, n, o, !0), new U(o, r, s, this.points[3], !0)];
|
|
2536
2536
|
};
|
|
2537
2537
|
function Ni(t, e) {
|
|
@@ -2568,7 +2568,7 @@ function wr() {
|
|
|
2568
2568
|
cy: (t.y.max + t.y.min) / 2
|
|
2569
2569
|
};
|
|
2570
2570
|
};
|
|
2571
|
-
function
|
|
2571
|
+
function qe(t, e, i) {
|
|
2572
2572
|
var s = t.boundingBox();
|
|
2573
2573
|
return {
|
|
2574
2574
|
cx: s.cx,
|
|
@@ -2581,27 +2581,27 @@ function wr() {
|
|
|
2581
2581
|
t2: i
|
|
2582
2582
|
};
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function ji(t) {
|
|
2585
2585
|
var e = t.bez.split(0.5);
|
|
2586
|
-
return [
|
|
2586
|
+
return [qe(e[0], t.t1, t.t), qe(e[1], t.t, t.t2)];
|
|
2587
2587
|
}
|
|
2588
2588
|
function Xs(t, e) {
|
|
2589
2589
|
return Math.abs(t.cx - e.cx) * 2 < t.width + e.width && Math.abs(t.cy - e.cy) * 2 < t.height + e.height;
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2591
|
+
function _e(t, e, i, s, n, r) {
|
|
2592
2592
|
if (Xs(t, e)) {
|
|
2593
2593
|
if (i >= r || t.width <= s && t.height <= s && e.width <= s && e.height <= s) {
|
|
2594
2594
|
n.push([t.t, e.t]);
|
|
2595
2595
|
return;
|
|
2596
2596
|
}
|
|
2597
|
-
var o =
|
|
2598
|
-
|
|
2597
|
+
var o = ji(t), c = ji(e);
|
|
2598
|
+
_e(o[0], c[0], i + 1, s, n, r), _e(o[0], c[1], i + 1, s, n, r), _e(o[1], c[0], i + 1, s, n, r), _e(o[1], c[1], i + 1, s, n, r);
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
2601
|
U.prototype.intersections = function(t, e, i) {
|
|
2602
2602
|
e === void 0 && (e = 2), i === void 0 && (i = 7);
|
|
2603
2603
|
var s = [];
|
|
2604
|
-
return
|
|
2604
|
+
return _e(qe(this, 0, 1), qe(t, 0, 1), 0, e, s, i), s;
|
|
2605
2605
|
}, U.shapeSegment = function(t, e) {
|
|
2606
2606
|
var i = (e + 1) % t.length();
|
|
2607
2607
|
return new U(t.v[e], t.o[e], t.i[i], t.v[i], !0);
|
|
@@ -2612,7 +2612,7 @@ function wr() {
|
|
|
2612
2612
|
function ii(t, e) {
|
|
2613
2613
|
return [t[1] * e[2] - t[2] * e[1], t[2] * e[0] - t[0] * e[2], t[0] * e[1] - t[1] * e[0]];
|
|
2614
2614
|
}
|
|
2615
|
-
function
|
|
2615
|
+
function De(t, e, i, s) {
|
|
2616
2616
|
var n = [t[0], t[1], 1], r = [e[0], e[1], 1], o = [i[0], i[1], 1], c = [s[0], s[1], 1], h = ii(ii(n, r), ii(o, c));
|
|
2617
2617
|
return ei(h[2]) ? null : [h[0] / h[2], h[1] / h[2]];
|
|
2618
2618
|
}
|
|
@@ -2623,14 +2623,14 @@ function wr() {
|
|
|
2623
2623
|
return Math.hypot(t[0] - e[0], t[1] - e[1]);
|
|
2624
2624
|
}
|
|
2625
2625
|
function he(t, e) {
|
|
2626
|
-
return
|
|
2626
|
+
return ze(t[0], e[0]) && ze(t[1], e[1]);
|
|
2627
2627
|
}
|
|
2628
|
-
function
|
|
2628
|
+
function be() {
|
|
2629
2629
|
}
|
|
2630
|
-
X([yt],
|
|
2630
|
+
X([yt], be), be.prototype.initModifierProperties = function(t, e) {
|
|
2631
2631
|
this.getValue = this.processKeys, this.amplitude = V.getProp(t, e.s, 0, null, this), this.frequency = V.getProp(t, e.r, 0, null, this), this.pointsType = V.getProp(t, e.pt, 0, null, this), this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
|
|
2632
2632
|
};
|
|
2633
|
-
function
|
|
2633
|
+
function zi(t, e, i, s, n, r, o) {
|
|
2634
2634
|
var c = i - Math.PI / 2, h = i + Math.PI / 2, m = e[0] + Math.cos(i) * s * n, _ = e[1] - Math.sin(i) * s * n;
|
|
2635
2635
|
t.setTripleAt(m, _, m + Math.cos(c) * r, _ - Math.sin(c) * r, m + Math.cos(h) * o, _ - Math.sin(h) * o, t.length());
|
|
2636
2636
|
}
|
|
@@ -2642,26 +2642,26 @@ function wr() {
|
|
|
2642
2642
|
var i = e === 0 ? t.length() - 1 : e - 1, s = (e + 1) % t.length(), n = t.v[i], r = t.v[s], o = Ys(n, r);
|
|
2643
2643
|
return Math.atan2(0, 1) - Math.atan2(o[1], o[0]);
|
|
2644
2644
|
}
|
|
2645
|
-
function
|
|
2645
|
+
function qi(t, e, i, s, n, r, o) {
|
|
2646
2646
|
var c = Hs(e, i), h = e.v[i % e._length], m = e.v[i === 0 ? e._length - 1 : i - 1], _ = e.v[(i + 1) % e._length], M = r === 2 ? Math.sqrt(Math.pow(h[0] - m[0], 2) + Math.pow(h[1] - m[1], 2)) : 0, p = r === 2 ? Math.sqrt(Math.pow(h[0] - _[0], 2) + Math.pow(h[1] - _[1], 2)) : 0;
|
|
2647
|
-
|
|
2647
|
+
zi(t, e.v[i % e._length], c, o, s, p / ((n + 1) * 2), M / ((n + 1) * 2));
|
|
2648
2648
|
}
|
|
2649
2649
|
function Zs(t, e, i, s, n, r) {
|
|
2650
2650
|
for (var o = 0; o < s; o += 1) {
|
|
2651
2651
|
var c = (o + 1) / (s + 1), h = n === 2 ? Math.sqrt(Math.pow(e.points[3][0] - e.points[0][0], 2) + Math.pow(e.points[3][1] - e.points[0][1], 2)) : 0, m = e.normalAngle(c), _ = e.point(c);
|
|
2652
|
-
|
|
2652
|
+
zi(t, _, m, r, i, h / ((s + 1) * 2), h / ((s + 1) * 2)), r = -r;
|
|
2653
2653
|
}
|
|
2654
2654
|
return r;
|
|
2655
2655
|
}
|
|
2656
|
-
|
|
2656
|
+
be.prototype.processPath = function(t, e, i, s) {
|
|
2657
2657
|
var n = t._length, r = ht.newElement();
|
|
2658
2658
|
if (r.c = t.c, t.c || (n -= 1), n === 0) return r;
|
|
2659
2659
|
var o = -1, c = U.shapeSegment(t, 0);
|
|
2660
|
-
|
|
2660
|
+
qi(r, t, 0, e, i, s, o);
|
|
2661
2661
|
for (var h = 0; h < n; h += 1)
|
|
2662
|
-
o = Zs(r, c, e, i, s, -o), h === n - 1 && !t.c ? c = null : c = U.shapeSegment(t, (h + 1) % n),
|
|
2662
|
+
o = Zs(r, c, e, i, s, -o), h === n - 1 && !t.c ? c = null : c = U.shapeSegment(t, (h + 1) % n), qi(r, t, h + 1, e, i, s, o);
|
|
2663
2663
|
return r;
|
|
2664
|
-
},
|
|
2664
|
+
}, be.prototype.processShapes = function(t) {
|
|
2665
2665
|
var e, i, s = this.shapes.length, n, r, o = this.amplitude.v, c = Math.max(0, Math.round(this.frequency.v)), h = this.pointsType.v;
|
|
2666
2666
|
if (o !== 0) {
|
|
2667
2667
|
var m, _;
|
|
@@ -2681,24 +2681,24 @@ function wr() {
|
|
|
2681
2681
|
function le(t, e) {
|
|
2682
2682
|
var i, s, n, r, o, c, h;
|
|
2683
2683
|
h = ri(t.points[0], t.points[1], e), i = h[0], s = h[1], h = ri(t.points[1], t.points[2], e), n = h[0], r = h[1], h = ri(t.points[2], t.points[3], e), o = h[0], c = h[1];
|
|
2684
|
-
var m =
|
|
2684
|
+
var m = De(i, s, n, r);
|
|
2685
2685
|
m === null && (m = s);
|
|
2686
|
-
var _ =
|
|
2686
|
+
var _ = De(o, c, n, r);
|
|
2687
2687
|
return _ === null && (_ = o), new U(i, m, _, c);
|
|
2688
2688
|
}
|
|
2689
2689
|
function Di(t, e, i, s, n) {
|
|
2690
2690
|
var r = e.points[3], o = i.points[0];
|
|
2691
2691
|
if (s === 3 || he(r, o)) return r;
|
|
2692
2692
|
if (s === 2) {
|
|
2693
|
-
var c = -e.tangentAngle(1), h = -i.tangentAngle(0) + Math.PI, m =
|
|
2693
|
+
var c = -e.tangentAngle(1), h = -i.tangentAngle(0) + Math.PI, m = De(r, oe(r, c + Math.PI / 2, 100), o, oe(o, c + Math.PI / 2, 100)), _ = m ? si(m, r) : si(r, o) / 2, M = oe(r, c, 2 * _ * Bt);
|
|
2694
2694
|
return t.setXYAt(M[0], M[1], "o", t.length() - 1), M = oe(o, h, 2 * _ * Bt), t.setTripleAt(o[0], o[1], o[0], o[1], M[0], M[1], t.length()), o;
|
|
2695
2695
|
}
|
|
2696
|
-
var p = he(r, e.points[2]) ? e.points[0] : e.points[2], b = he(o, i.points[1]) ? i.points[3] : i.points[1], k =
|
|
2696
|
+
var p = he(r, e.points[2]) ? e.points[0] : e.points[2], b = he(o, i.points[1]) ? i.points[3] : i.points[1], k = De(p, r, o, b);
|
|
2697
2697
|
return k && si(k, r) < n ? (t.setTripleAt(k[0], k[1], k[0], k[1], k[0], k[1], t.length()), k) : r;
|
|
2698
2698
|
}
|
|
2699
2699
|
function Wi(t, e) {
|
|
2700
2700
|
var i = t.intersections(e);
|
|
2701
|
-
return i.length &&
|
|
2701
|
+
return i.length && ze(i[0][0], 1) && i.shift(), i.length ? i[0] : null;
|
|
2702
2702
|
}
|
|
2703
2703
|
function Gi(t, e) {
|
|
2704
2704
|
var i = t.slice(), s = e.slice(), n = Wi(t[t.length - 1], e[0]);
|
|
@@ -2713,17 +2713,17 @@ function wr() {
|
|
|
2713
2713
|
var i = t.inflectionPoints(), s, n, r, o;
|
|
2714
2714
|
if (i.length === 0)
|
|
2715
2715
|
return [le(t, e)];
|
|
2716
|
-
if (i.length === 1 ||
|
|
2716
|
+
if (i.length === 1 || ze(i[1], 1))
|
|
2717
2717
|
return r = t.split(i[0]), s = r[0], n = r[1], [le(s, e), le(n, e)];
|
|
2718
2718
|
r = t.split(i[0]), s = r[0];
|
|
2719
2719
|
var c = (i[1] - i[0]) / (1 - i[0]);
|
|
2720
2720
|
return r = r[1].split(c), o = r[0], n = r[1], [le(s, e), le(o, e), le(n, e)];
|
|
2721
2721
|
}
|
|
2722
|
-
function
|
|
2722
|
+
function Se() {
|
|
2723
2723
|
}
|
|
2724
|
-
X([yt],
|
|
2724
|
+
X([yt], Se), Se.prototype.initModifierProperties = function(t, e) {
|
|
2725
2725
|
this.getValue = this.processKeys, this.amount = V.getProp(t, e.a, 0, null, this), this.miterLimit = V.getProp(t, e.ml, 0, null, this), this.lineJoin = e.lj, this._isAnimated = this.amount.effectsSequence.length !== 0;
|
|
2726
|
-
},
|
|
2726
|
+
}, Se.prototype.processPath = function(t, e, i, s) {
|
|
2727
2727
|
var n = ht.newElement();
|
|
2728
2728
|
n.c = t.c;
|
|
2729
2729
|
var r = t.length();
|
|
@@ -2742,7 +2742,7 @@ function wr() {
|
|
|
2742
2742
|
h = p[c], _ && he(h.points[0], _) ? n.setXYAt(h.points[1][0], h.points[1][1], "o", n.length() - 1) : n.setTripleAt(h.points[0][0], h.points[0][1], h.points[1][0], h.points[1][1], h.points[0][0], h.points[0][1], n.length()), n.setTripleAt(h.points[3][0], h.points[3][1], h.points[3][0], h.points[3][1], h.points[2][0], h.points[2][1], n.length()), _ = h.points[3];
|
|
2743
2743
|
}
|
|
2744
2744
|
return m.length && Di(n, M, m[0][0], i, s), n;
|
|
2745
|
-
},
|
|
2745
|
+
}, Se.prototype.processShapes = function(t) {
|
|
2746
2746
|
var e, i, s = this.shapes.length, n, r, o = this.amount.v, c = this.miterLimit.v, h = this.lineJoin;
|
|
2747
2747
|
if (o !== 0) {
|
|
2748
2748
|
var m, _;
|
|
@@ -2828,11 +2828,11 @@ function wr() {
|
|
|
2828
2828
|
var R = new OffscreenCanvas(500, 500).getContext("2d");
|
|
2829
2829
|
R.font = E.style + " " + E.weight + " 100px " + v.fFamily, l = R;
|
|
2830
2830
|
}
|
|
2831
|
-
function
|
|
2831
|
+
function z(D) {
|
|
2832
2832
|
return a === "svg" ? (l.textContent = D, l.getComputedTextLength()) : l.measureText(D).width;
|
|
2833
2833
|
}
|
|
2834
2834
|
return {
|
|
2835
|
-
measureText:
|
|
2835
|
+
measureText: z
|
|
2836
2836
|
};
|
|
2837
2837
|
}
|
|
2838
2838
|
function C(v, A) {
|
|
@@ -2852,24 +2852,24 @@ function wr() {
|
|
|
2852
2852
|
}
|
|
2853
2853
|
var a = v.list, l, E = a.length, w = E;
|
|
2854
2854
|
for (l = 0; l < E; l += 1) {
|
|
2855
|
-
var R = !0,
|
|
2855
|
+
var R = !0, z, D;
|
|
2856
2856
|
if (a[l].loaded = !1, a[l].monoCase = b(a[l].fFamily, "monospace"), a[l].sansCase = b(a[l].fFamily, "sans-serif"), !a[l].fPath)
|
|
2857
2857
|
a[l].loaded = !0, w -= 1;
|
|
2858
2858
|
else if (a[l].fOrigin === "p" || a[l].origin === 3) {
|
|
2859
|
-
if (
|
|
2859
|
+
if (z = document.querySelectorAll('style[f-forigin="p"][f-family="' + a[l].fFamily + '"], style[f-origin="3"][f-family="' + a[l].fFamily + '"]'), z.length > 0 && (R = !1), R) {
|
|
2860
2860
|
var Y = Ot("style");
|
|
2861
2861
|
Y.setAttribute("f-forigin", a[l].fOrigin), Y.setAttribute("f-origin", a[l].origin), Y.setAttribute("f-family", a[l].fFamily), Y.type = "text/css", Y.innerText = "@font-face {font-family: " + a[l].fFamily + "; font-style: normal; src: url('" + a[l].fPath + "');}", A.appendChild(Y);
|
|
2862
2862
|
}
|
|
2863
2863
|
} else if (a[l].fOrigin === "g" || a[l].origin === 1) {
|
|
2864
|
-
for (
|
|
2865
|
-
|
|
2864
|
+
for (z = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), D = 0; D < z.length; D += 1)
|
|
2865
|
+
z[D].href.indexOf(a[l].fPath) !== -1 && (R = !1);
|
|
2866
2866
|
if (R) {
|
|
2867
2867
|
var H = Ot("link");
|
|
2868
2868
|
H.setAttribute("f-forigin", a[l].fOrigin), H.setAttribute("f-origin", a[l].origin), H.type = "text/css", H.rel = "stylesheet", H.href = a[l].fPath, document.body.appendChild(H);
|
|
2869
2869
|
}
|
|
2870
2870
|
} else if (a[l].fOrigin === "t" || a[l].origin === 2) {
|
|
2871
|
-
for (
|
|
2872
|
-
a[l].fPath ===
|
|
2871
|
+
for (z = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), D = 0; D < z.length; D += 1)
|
|
2872
|
+
a[l].fPath === z[D].src && (R = !1);
|
|
2873
2873
|
if (R) {
|
|
2874
2874
|
var $ = Ot("link");
|
|
2875
2875
|
$.setAttribute("f-forigin", a[l].fOrigin), $.setAttribute("f-origin", a[l].origin), $.setAttribute("rel", "stylesheet"), $.setAttribute("href", a[l].fPath), A.appendChild($);
|
|
@@ -2903,8 +2903,8 @@ function wr() {
|
|
|
2903
2903
|
if (!l.cache[E]) {
|
|
2904
2904
|
var w = l.helper;
|
|
2905
2905
|
if (v === " ") {
|
|
2906
|
-
var R = w.measureText("|" + v + "|"),
|
|
2907
|
-
l.cache[E] = (R -
|
|
2906
|
+
var R = w.measureText("|" + v + "|"), z = w.measureText("||");
|
|
2907
|
+
l.cache[E] = (R - z) / 100;
|
|
2908
2908
|
} else
|
|
2909
2909
|
l.cache[E] = w.measureText(v) / 100;
|
|
2910
2910
|
}
|
|
@@ -2940,7 +2940,7 @@ function wr() {
|
|
|
2940
2940
|
var A = g(v);
|
|
2941
2941
|
return A >= m && A <= _;
|
|
2942
2942
|
}
|
|
2943
|
-
function
|
|
2943
|
+
function q(v) {
|
|
2944
2944
|
return I(v.substr(0, 2)) && I(v.substr(2, 2));
|
|
2945
2945
|
}
|
|
2946
2946
|
function N(v) {
|
|
@@ -2964,7 +2964,7 @@ function wr() {
|
|
|
2964
2964
|
var O = function() {
|
|
2965
2965
|
this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
|
|
2966
2966
|
};
|
|
2967
|
-
O.isModifier = P, O.isZeroWidthJoiner = T, O.isFlagEmoji =
|
|
2967
|
+
O.isModifier = P, O.isZeroWidthJoiner = T, O.isFlagEmoji = q, O.isRegionalCode = I, O.isCombinedCharacter = N, O.isRegionalFlag = L, O.isVariationSelector = x, O.BLACK_FLAG_CODE_POINT = s;
|
|
2968
2968
|
var F = {
|
|
2969
2969
|
addChars: y,
|
|
2970
2970
|
addFonts: C,
|
|
@@ -2985,9 +2985,9 @@ function wr() {
|
|
|
2985
2985
|
function Us(t) {
|
|
2986
2986
|
return new Hi(t);
|
|
2987
2987
|
}
|
|
2988
|
-
function
|
|
2988
|
+
function We() {
|
|
2989
2989
|
}
|
|
2990
|
-
|
|
2990
|
+
We.prototype = {
|
|
2991
2991
|
initRenderable: function() {
|
|
2992
2992
|
this.isInRange = !1, this.hidden = !1, this.isTransparent = !1, this.renderableComponents = [];
|
|
2993
2993
|
},
|
|
@@ -3089,12 +3089,12 @@ function wr() {
|
|
|
3089
3089
|
this.effectElements = [];
|
|
3090
3090
|
var s, n = i.length, r;
|
|
3091
3091
|
for (s = 0; s < n; s += 1)
|
|
3092
|
-
r = new
|
|
3092
|
+
r = new Ae(i[s], e), this.effectElements.push(r);
|
|
3093
3093
|
}
|
|
3094
|
-
function
|
|
3094
|
+
function Ae(t, e) {
|
|
3095
3095
|
this.init(t, e);
|
|
3096
3096
|
}
|
|
3097
|
-
X([nt],
|
|
3097
|
+
X([nt], Ae), Ae.prototype.getValue = Ae.prototype.iterateDynamicProperties, Ae.prototype.init = function(t, e) {
|
|
3098
3098
|
this.data = t, this.effectElements = [], this.initDynamicPropertyContainer(e);
|
|
3099
3099
|
var i, s = this.data.ef.length, n, r = this.data.ef;
|
|
3100
3100
|
for (i = 0; i < s; i += 1) {
|
|
@@ -3132,9 +3132,9 @@ function wr() {
|
|
|
3132
3132
|
n && this.effectElements.push(n);
|
|
3133
3133
|
}
|
|
3134
3134
|
};
|
|
3135
|
-
function
|
|
3135
|
+
function zt() {
|
|
3136
3136
|
}
|
|
3137
|
-
|
|
3137
|
+
zt.prototype = {
|
|
3138
3138
|
checkMasks: function() {
|
|
3139
3139
|
if (!this.data.hasMask)
|
|
3140
3140
|
return !1;
|
|
@@ -3160,9 +3160,9 @@ function wr() {
|
|
|
3160
3160
|
sourceRectAtTime: function() {
|
|
3161
3161
|
}
|
|
3162
3162
|
};
|
|
3163
|
-
function
|
|
3163
|
+
function qt() {
|
|
3164
3164
|
}
|
|
3165
|
-
|
|
3165
|
+
qt.prototype = {
|
|
3166
3166
|
/**
|
|
3167
3167
|
* @function
|
|
3168
3168
|
* Initializes frame related properties.
|
|
@@ -3194,7 +3194,7 @@ function wr() {
|
|
|
3194
3194
|
this.initFrame(), this.initRenderable(), this.assetData = e.getAssetData(t.refId), this.footageData = e.imageLoader.getAsset(this.assetData), this.initBaseData(t, e, i);
|
|
3195
3195
|
}
|
|
3196
3196
|
Dt.prototype.prepareFrame = function() {
|
|
3197
|
-
}, X([
|
|
3197
|
+
}, X([We, zt, qt], Dt), Dt.prototype.getBaseElement = function() {
|
|
3198
3198
|
return null;
|
|
3199
3199
|
}, Dt.prototype.renderFrame = function() {
|
|
3200
3200
|
}, Dt.prototype.destroy = function() {
|
|
@@ -3221,7 +3221,7 @@ function wr() {
|
|
|
3221
3221
|
this._volume = this.lv.v[0];
|
|
3222
3222
|
var i = this._volume * this._volumeMultiplier;
|
|
3223
3223
|
this._previousVolume !== i && (this._previousVolume = i, this.audio.volume(i));
|
|
3224
|
-
}, X([
|
|
3224
|
+
}, X([We, zt, qt], ct), ct.prototype.renderFrame = function() {
|
|
3225
3225
|
this.isInRange && this._canPlay && (this._isPlaying ? (!this.audio.playing() || Math.abs(this._currentTime / this.globalData.frameRate - this.audio.seek()) > 0.1) && this.audio.seek(this._currentTime / this.globalData.frameRate) : (this.audio.play(), this.audio.seek(this._currentTime / this.globalData.frameRate), this._isPlaying = !0));
|
|
3226
3226
|
}, ct.prototype.show = function() {
|
|
3227
3227
|
}, ct.prototype.hide = function() {
|
|
@@ -3368,7 +3368,7 @@ function wr() {
|
|
|
3368
3368
|
for (e = this.finalTransform.mProp.v.props, i.cloneFromProps(e), s = 0; s < n; s += 1)
|
|
3369
3369
|
i.multiply(this.hierarchy[s].finalTransform.mProp.v);
|
|
3370
3370
|
}
|
|
3371
|
-
this.finalTransform._matMdf && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
|
|
3371
|
+
(!this.localTransforms || this.finalTransform._matMdf) && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
|
|
3372
3372
|
},
|
|
3373
3373
|
renderLocalTransform: function() {
|
|
3374
3374
|
if (this.localTransforms) {
|
|
@@ -3424,7 +3424,7 @@ function wr() {
|
|
|
3424
3424
|
if ((c[n].mode !== "a" && c[n].mode !== "n" || c[n].inv || c[n].o.k !== 100 || c[n].o.x) && (y = "mask", d = "mask"), (c[n].mode === "s" || c[n].mode === "i") && h === 0 ? (b = W("rect"), b.setAttribute("fill", "#ffffff"), b.setAttribute("width", this.element.comp.data.w || 0), b.setAttribute("height", this.element.comp.data.h || 0), m.push(b)) : b = null, o = W("path"), c[n].mode === "n")
|
|
3425
3425
|
this.viewData[n] = {
|
|
3426
3426
|
op: V.getProp(this.element, c[n].o, 0, 0.01, this.element),
|
|
3427
|
-
prop:
|
|
3427
|
+
prop: je.getShapeProp(this.element, c[n], 3),
|
|
3428
3428
|
elem: o,
|
|
3429
3429
|
lastPath: ""
|
|
3430
3430
|
}, s.appendChild(o);
|
|
@@ -3452,7 +3452,7 @@ function wr() {
|
|
|
3452
3452
|
elem: o,
|
|
3453
3453
|
lastPath: "",
|
|
3454
3454
|
op: V.getProp(this.element, c[n].o, 0, 0.01, this.element),
|
|
3455
|
-
prop:
|
|
3455
|
+
prop: je.getShapeProp(this.element, c[n], 3),
|
|
3456
3456
|
invRect: b
|
|
3457
3457
|
}, this.viewData[n].prop.k || this.drawPath(c[n], this.viewData[n].prop.v, this.viewData[n]);
|
|
3458
3458
|
}
|
|
@@ -3485,7 +3485,7 @@ function wr() {
|
|
|
3485
3485
|
}, te.prototype.destroy = function() {
|
|
3486
3486
|
this.element = null, this.globalData = null, this.maskElement = null, this.data = null, this.masksProperties = null;
|
|
3487
3487
|
};
|
|
3488
|
-
var
|
|
3488
|
+
var ke = function() {
|
|
3489
3489
|
var t = {};
|
|
3490
3490
|
t.createFilter = e, t.createAlphaToLuminanceFilter = i;
|
|
3491
3491
|
function e(s, n) {
|
|
@@ -3506,7 +3506,7 @@ function wr() {
|
|
|
3506
3506
|
return (/MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userAgent)) && (t.maskType = !1), /firefox/i.test(navigator.userAgent) && (t.svgLumaHidden = !1), t;
|
|
3507
3507
|
}(), ai = {}, Ui = "filter_result_";
|
|
3508
3508
|
function oi(t) {
|
|
3509
|
-
var e, i = "SourceGraphic", s = t.data.ef ? t.data.ef.length : 0, n = ut(), r =
|
|
3509
|
+
var e, i = "SourceGraphic", s = t.data.ef ? t.data.ef.length : 0, n = ut(), r = ke.createFilter(n, !0), o = 0;
|
|
3510
3510
|
this.filters = [];
|
|
3511
3511
|
var c;
|
|
3512
3512
|
for (e = 0; e < s; e += 1) {
|
|
@@ -3530,9 +3530,9 @@ function wr() {
|
|
|
3530
3530
|
this.filters[e].type === t && s.push(this.filters[e]);
|
|
3531
3531
|
return s;
|
|
3532
3532
|
};
|
|
3533
|
-
function
|
|
3533
|
+
function Pe() {
|
|
3534
3534
|
}
|
|
3535
|
-
|
|
3535
|
+
Pe.prototype = {
|
|
3536
3536
|
initRendererElement: function() {
|
|
3537
3537
|
this.layerElement = W("g");
|
|
3538
3538
|
},
|
|
@@ -3573,18 +3573,18 @@ function wr() {
|
|
|
3573
3573
|
var i = this.layerId + "_" + e, s, n, r, o;
|
|
3574
3574
|
if (e === 1 || e === 3) {
|
|
3575
3575
|
var c = W("mask");
|
|
3576
|
-
c.setAttribute("id", i), c.setAttribute("mask-type", e === 3 ? "luminance" : "alpha"), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), c.appendChild(r), this.globalData.defs.appendChild(c), !Ki.maskType && e === 1 && (c.setAttribute("mask-type", "luminance"), s = ut(), n =
|
|
3576
|
+
c.setAttribute("id", i), c.setAttribute("mask-type", e === 3 ? "luminance" : "alpha"), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), c.appendChild(r), this.globalData.defs.appendChild(c), !Ki.maskType && e === 1 && (c.setAttribute("mask-type", "luminance"), s = ut(), n = ke.createFilter(s), this.globalData.defs.appendChild(n), n.appendChild(ke.createAlphaToLuminanceFilter()), o = W("g"), o.appendChild(r), c.appendChild(o), o.setAttribute("filter", "url(" + tt() + "#" + s + ")"));
|
|
3577
3577
|
} else if (e === 2) {
|
|
3578
3578
|
var h = W("mask");
|
|
3579
3579
|
h.setAttribute("id", i), h.setAttribute("mask-type", "alpha");
|
|
3580
3580
|
var m = W("g");
|
|
3581
|
-
h.appendChild(m), s = ut(), n =
|
|
3581
|
+
h.appendChild(m), s = ut(), n = ke.createFilter(s);
|
|
3582
3582
|
var _ = W("feComponentTransfer");
|
|
3583
3583
|
_.setAttribute("in", "SourceGraphic"), n.appendChild(_);
|
|
3584
3584
|
var M = W("feFuncA");
|
|
3585
3585
|
M.setAttribute("type", "table"), M.setAttribute("tableValues", "1.0 0.0"), _.appendChild(M), this.globalData.defs.appendChild(n);
|
|
3586
3586
|
var p = W("rect");
|
|
3587
|
-
p.setAttribute("width", this.comp.data.w), p.setAttribute("height", this.comp.data.h), p.setAttribute("x", "0"), p.setAttribute("y", "0"), p.setAttribute("fill", "#ffffff"), p.setAttribute("opacity", "0"), m.setAttribute("filter", "url(" + tt() + "#" + s + ")"), m.appendChild(p), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), m.appendChild(r), Ki.maskType || (h.setAttribute("mask-type", "luminance"), n.appendChild(
|
|
3587
|
+
p.setAttribute("width", this.comp.data.w), p.setAttribute("height", this.comp.data.h), p.setAttribute("x", "0"), p.setAttribute("y", "0"), p.setAttribute("fill", "#ffffff"), p.setAttribute("opacity", "0"), m.setAttribute("filter", "url(" + tt() + "#" + s + ")"), m.appendChild(p), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), m.appendChild(r), Ki.maskType || (h.setAttribute("mask-type", "luminance"), n.appendChild(ke.createAlphaToLuminanceFilter()), o = W("g"), m.appendChild(p), o.appendChild(this.layerElement), m.appendChild(o)), this.globalData.defs.appendChild(h);
|
|
3588
3588
|
}
|
|
3589
3589
|
this.matteMasks[e] = i;
|
|
3590
3590
|
}
|
|
@@ -3632,7 +3632,7 @@ function wr() {
|
|
|
3632
3632
|
this.data.parent !== void 0 && this.comp.buildElementParenting(this, this.data.parent, []);
|
|
3633
3633
|
}
|
|
3634
3634
|
};
|
|
3635
|
-
function
|
|
3635
|
+
function we() {
|
|
3636
3636
|
}
|
|
3637
3637
|
(function() {
|
|
3638
3638
|
var t = {
|
|
@@ -3666,9 +3666,9 @@ function wr() {
|
|
|
3666
3666
|
this.innerElem = null, this.destroyBaseElement();
|
|
3667
3667
|
}
|
|
3668
3668
|
};
|
|
3669
|
-
X([
|
|
3669
|
+
X([We, ls(t)], we);
|
|
3670
3670
|
})();
|
|
3671
|
-
function
|
|
3671
|
+
function Ce(t, e, i) {
|
|
3672
3672
|
this.assetData = e.getAssetData(t.refId), this.assetData && this.assetData.sid && (this.assetData = e.slotManager.getProp(this.assetData)), this.initElement(t, e, i), this.sourceRect = {
|
|
3673
3673
|
top: 0,
|
|
3674
3674
|
left: 0,
|
|
@@ -3676,10 +3676,10 @@ function wr() {
|
|
|
3676
3676
|
height: this.assetData.h
|
|
3677
3677
|
};
|
|
3678
3678
|
}
|
|
3679
|
-
X([
|
|
3679
|
+
X([zt, fe, Pe, pe, qt, we], Ce), Ce.prototype.createContent = function() {
|
|
3680
3680
|
var t = this.globalData.getAssetsPath(this.assetData);
|
|
3681
3681
|
this.innerElem = W("image"), this.innerElem.setAttribute("width", this.assetData.w + "px"), this.innerElem.setAttribute("height", this.assetData.h + "px"), this.innerElem.setAttribute("preserveAspectRatio", this.assetData.pr || this.globalData.renderConfig.imagePreserveAspectRatio), this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink", "href", t), this.layerElement.appendChild(this.innerElem);
|
|
3682
|
-
},
|
|
3682
|
+
}, Ce.prototype.sourceRectAtTime = function() {
|
|
3683
3683
|
return this.sourceRect;
|
|
3684
3684
|
};
|
|
3685
3685
|
function ar(t, e) {
|
|
@@ -3758,7 +3758,7 @@ function wr() {
|
|
|
3758
3758
|
es.prototype.reset = function() {
|
|
3759
3759
|
this.d = "", this._mdf = !1;
|
|
3760
3760
|
};
|
|
3761
|
-
function
|
|
3761
|
+
function Ge(t, e, i, s) {
|
|
3762
3762
|
this.elem = t, this.frameId = -1, this.dataProps = et(e.length), this.renderer = i, this.k = !1, this.dashStr = "", this.dashArray = rt("float32", e.length ? e.length - 1 : 0), this.dashoffset = rt("float32", 1), this.initDynamicPropertyContainer(s);
|
|
3763
3763
|
var n, r = e.length || 0, o;
|
|
3764
3764
|
for (n = 0; n < r; n += 1)
|
|
@@ -3768,15 +3768,15 @@ function wr() {
|
|
|
3768
3768
|
};
|
|
3769
3769
|
this.k || this.getValue(!0), this._isAnimated = this.k;
|
|
3770
3770
|
}
|
|
3771
|
-
|
|
3771
|
+
Ge.prototype.getValue = function(t) {
|
|
3772
3772
|
if (!(this.elem.globalData.frameId === this.frameId && !t) && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf = this._mdf || t, this._mdf)) {
|
|
3773
3773
|
var e = 0, i = this.dataProps.length;
|
|
3774
3774
|
for (this.renderer === "svg" && (this.dashStr = ""), e = 0; e < i; e += 1)
|
|
3775
3775
|
this.dataProps[e].n !== "o" ? this.renderer === "svg" ? this.dashStr += " " + this.dataProps[e].p.v : this.dashArray[e] = this.dataProps[e].p.v : this.dashoffset[0] = this.dataProps[e].p.v;
|
|
3776
3776
|
}
|
|
3777
|
-
}, X([nt],
|
|
3777
|
+
}, X([nt], Ge);
|
|
3778
3778
|
function is(t, e, i) {
|
|
3779
|
-
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.o = V.getProp(t, e.o, 0, 0.01, this), this.w = V.getProp(t, e.w, 0, null, this), this.d = new
|
|
3779
|
+
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.o = V.getProp(t, e.o, 0, 0.01, this), this.w = V.getProp(t, e.w, 0, null, this), this.d = new Ge(t, e.d || {}, "svg", this), this.c = V.getProp(t, e.c, 1, 255, this), this.style = i, this._isAnimated = !!this._isAnimated;
|
|
3780
3780
|
}
|
|
3781
3781
|
X([nt], is);
|
|
3782
3782
|
function ss(t, e, i) {
|
|
@@ -3787,19 +3787,19 @@ function wr() {
|
|
|
3787
3787
|
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.style = i;
|
|
3788
3788
|
}
|
|
3789
3789
|
X([nt], rs);
|
|
3790
|
-
function
|
|
3790
|
+
function Te(t, e, i) {
|
|
3791
3791
|
this.data = e, this.c = rt("uint8c", e.p * 4);
|
|
3792
3792
|
var s = e.k.k[0].s ? e.k.k[0].s.length - e.p * 4 : e.k.k.length - e.p * 4;
|
|
3793
3793
|
this.o = rt("float32", s), this._cmdf = !1, this._omdf = !1, this._collapsable = this.checkCollapsable(), this._hasOpacity = s, this.initDynamicPropertyContainer(i), this.prop = V.getProp(t, e.k, 1, null, this), this.k = this.prop.k, this.getValue(!0);
|
|
3794
3794
|
}
|
|
3795
|
-
|
|
3795
|
+
Te.prototype.comparePoints = function(t, e) {
|
|
3796
3796
|
for (var i = 0, s = this.o.length / 2, n; i < s; ) {
|
|
3797
3797
|
if (n = Math.abs(t[i * 4] - t[e * 4 + i * 2]), n > 0.01)
|
|
3798
3798
|
return !1;
|
|
3799
3799
|
i += 1;
|
|
3800
3800
|
}
|
|
3801
3801
|
return !0;
|
|
3802
|
-
},
|
|
3802
|
+
}, Te.prototype.checkCollapsable = function() {
|
|
3803
3803
|
if (this.o.length / 2 !== this.c.length / 4)
|
|
3804
3804
|
return !1;
|
|
3805
3805
|
if (this.data.k.k[0].s)
|
|
@@ -3811,7 +3811,7 @@ function wr() {
|
|
|
3811
3811
|
else if (!this.comparePoints(this.data.k.k, this.data.p))
|
|
3812
3812
|
return !1;
|
|
3813
3813
|
return !0;
|
|
3814
|
-
},
|
|
3814
|
+
}, Te.prototype.getValue = function(t) {
|
|
3815
3815
|
if (this.prop.getValue(), this._mdf = !1, this._cmdf = !1, this._omdf = !1, this.prop._mdf || t) {
|
|
3816
3816
|
var e, i = this.data.p * 4, s, n;
|
|
3817
3817
|
for (e = 0; e < i; e += 1)
|
|
@@ -3821,7 +3821,7 @@ function wr() {
|
|
|
3821
3821
|
s = e % 2 === 0 ? 100 : 1, n = e % 2 === 0 ? Math.round(this.prop.v[e] * 100) : this.prop.v[e], this.o[e - this.data.p * 4] !== n && (this.o[e - this.data.p * 4] = n, this._omdf = !t);
|
|
3822
3822
|
this._mdf = !t;
|
|
3823
3823
|
}
|
|
3824
|
-
}, X([nt],
|
|
3824
|
+
}, X([nt], Te);
|
|
3825
3825
|
function ue(t, e, i) {
|
|
3826
3826
|
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.initGradientData(t, e, i);
|
|
3827
3827
|
}
|
|
@@ -3830,7 +3830,7 @@ function wr() {
|
|
|
3830
3830
|
k: 0
|
|
3831
3831
|
}, 0, 0.01, this), this.a = V.getProp(t, e.a || {
|
|
3832
3832
|
k: 0
|
|
3833
|
-
}, 0, J, this), this.g = new
|
|
3833
|
+
}, 0, J, this), this.g = new Te(t, e.g, this), this.style = i, this.stops = [], this.setGradientData(i.pElem, e), this.setGradientOpacity(e, i), this._isAnimated = !!this._isAnimated;
|
|
3834
3834
|
}, ue.prototype.setGradientData = function(t, e) {
|
|
3835
3835
|
var i = ut(), s = W(e.t === 1 ? "linearGradient" : "radialGradient");
|
|
3836
3836
|
s.setAttribute("id", i), s.setAttribute("spreadMethod", "pad"), s.setAttribute("gradientUnits", "userSpaceOnUse");
|
|
@@ -3853,7 +3853,7 @@ function wr() {
|
|
|
3853
3853
|
}
|
|
3854
3854
|
}, X([nt], ue);
|
|
3855
3855
|
function ns(t, e, i) {
|
|
3856
|
-
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.w = V.getProp(t, e.w, 0, null, this), this.d = new
|
|
3856
|
+
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.w = V.getProp(t, e.w, 0, null, this), this.d = new Ge(t, e.d || {}, "svg", this), this.initGradientData(t, e, i), this._isAnimated = !!this._isAnimated;
|
|
3857
3857
|
}
|
|
3858
3858
|
X([ue, nt], ns);
|
|
3859
3859
|
function or() {
|
|
@@ -3950,15 +3950,15 @@ function wr() {
|
|
|
3950
3950
|
x = g[P], x.setAttribute("offset", I[P * 4] + "%"), x.setAttribute("stop-color", "rgb(" + I[P * 4 + 1] + "," + I[P * 4 + 2] + "," + I[P * 4 + 3] + ")");
|
|
3951
3951
|
}
|
|
3952
3952
|
if (S && (p.g._omdf || b)) {
|
|
3953
|
-
var
|
|
3953
|
+
var q = p.g.o;
|
|
3954
3954
|
for (p.g._collapsable ? g = p.cst : g = p.ost, T = g.length, P = 0; P < T; P += 1)
|
|
3955
|
-
x = g[P], p.g._collapsable || x.setAttribute("offset",
|
|
3955
|
+
x = g[P], p.g._collapsable || x.setAttribute("offset", q[P * 2] + "%"), x.setAttribute("stop-opacity", q[P * 2 + 1]);
|
|
3956
3956
|
}
|
|
3957
3957
|
if (M.t === 1)
|
|
3958
3958
|
(p.e._mdf || b) && (k.setAttribute("x2", y[0]), k.setAttribute("y2", y[1]), S && !p.g._collapsable && (p.of.setAttribute("x2", y[0]), p.of.setAttribute("y2", y[1])));
|
|
3959
3959
|
else {
|
|
3960
3960
|
var N;
|
|
3961
|
-
if ((p.s._mdf || p.e._mdf || b) && (N = Math.sqrt(Math.pow(C[0] - y[0], 2) + Math.pow(C[1] - y[1], 2)), k.setAttribute("r", N), S && !p.g._collapsable && p.of.setAttribute("r", N)), p.e._mdf || p.h._mdf || p.a._mdf || b) {
|
|
3961
|
+
if ((p.s._mdf || p.e._mdf || b) && (N = Math.sqrt(Math.pow(C[0] - y[0], 2) + Math.pow(C[1] - y[1], 2)), k.setAttribute("r", N), S && !p.g._collapsable && p.of.setAttribute("r", N)), p.s._mdf || p.e._mdf || p.h._mdf || p.a._mdf || b) {
|
|
3962
3962
|
N || (N = Math.sqrt(Math.pow(C[0] - y[0], 2) + Math.pow(C[1] - y[1], 2)));
|
|
3963
3963
|
var L = Math.atan2(y[1] - C[1], y[0] - C[0]), G = p.h.v;
|
|
3964
3964
|
G >= 1 ? G = 0.99 : G <= -1 && (G = -0.99);
|
|
@@ -3976,7 +3976,7 @@ function wr() {
|
|
|
3976
3976
|
function Q(t, e, i) {
|
|
3977
3977
|
this.shapes = [], this.shapesData = t.shapes, this.stylesList = [], this.shapeModifiers = [], this.itemsData = [], this.processedElements = [], this.animatedContents = [], this.initElement(t, e, i), this.prevViewData = [];
|
|
3978
3978
|
}
|
|
3979
|
-
X([
|
|
3979
|
+
X([zt, fe, Pe, Ji, pe, qt, we], Q), Q.prototype.initSecondaryElement = function() {
|
|
3980
3980
|
}, Q.prototype.identityMatrix = new lt(), Q.prototype.buildExpressionInterface = function() {
|
|
3981
3981
|
}, Q.prototype.createContent = function() {
|
|
3982
3982
|
this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes();
|
|
@@ -4011,7 +4011,7 @@ function wr() {
|
|
|
4011
4011
|
}, Q.prototype.createShapeElement = function(t, e, i) {
|
|
4012
4012
|
var s = 4;
|
|
4013
4013
|
t.ty === "rc" ? s = 5 : t.ty === "el" ? s = 6 : t.ty === "sr" && (s = 7);
|
|
4014
|
-
var n =
|
|
4014
|
+
var n = je.getShapeProp(this, t, s, this), r = new ts(e, i, n);
|
|
4015
4015
|
return this.shapes.push(r), this.addShapeToModifiers(r), this.addToAnimatedContents(t, r), r;
|
|
4016
4016
|
}, Q.prototype.addToAnimatedContents = function(t, e) {
|
|
4017
4017
|
for (var i = 0, s = this.animatedContents.length; i < s; ) {
|
|
@@ -4027,7 +4027,7 @@ function wr() {
|
|
|
4027
4027
|
}, Q.prototype.setElementStyles = function(t) {
|
|
4028
4028
|
var e = t.styles, i, s = this.stylesList.length;
|
|
4029
4029
|
for (i = 0; i < s; i += 1)
|
|
4030
|
-
this.stylesList[i].closed
|
|
4030
|
+
e.indexOf(this.stylesList[i]) === -1 && !this.stylesList[i].closed && e.push(this.stylesList[i]);
|
|
4031
4031
|
}, Q.prototype.reloadShapes = function() {
|
|
4032
4032
|
this._isFirstFrame = !0;
|
|
4033
4033
|
var t, e = this.itemsData.length;
|
|
@@ -4040,7 +4040,7 @@ function wr() {
|
|
|
4040
4040
|
var c = [].concat(r), h, m = t.length - 1, _, M, p = [], b = [], k, S, C;
|
|
4041
4041
|
for (h = m; h >= 0; h -= 1) {
|
|
4042
4042
|
if (C = this.searchProcessedElement(t[h]), C ? e[h] = i[C - 1] : t[h]._render = o, t[h].ty === "fl" || t[h].ty === "st" || t[h].ty === "gf" || t[h].ty === "gs" || t[h].ty === "no")
|
|
4043
|
-
C ? e[h].style.closed =
|
|
4043
|
+
C ? e[h].style.closed = t[h].hd : e[h] = this.createStyleElement(t[h], n), t[h]._render && e[h].style.pElem.parentNode !== s && s.appendChild(e[h].style.pElem), p.push(e[h].style);
|
|
4044
4044
|
else if (t[h].ty === "gr") {
|
|
4045
4045
|
if (!C)
|
|
4046
4046
|
e[h] = this.createGroupElement(t[h]);
|
|
@@ -4156,12 +4156,12 @@ function wr() {
|
|
|
4156
4156
|
t.fWeight = g.weight, t.fStyle = g.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), r = t.finalText.length, t.finalLineHeight = t.lh;
|
|
4157
4157
|
var P = t.tr / 1e3 * t.finalSize, T;
|
|
4158
4158
|
if (t.sz)
|
|
4159
|
-
for (var x = !0, I = t.sz[0],
|
|
4159
|
+
for (var x = !0, I = t.sz[0], q = t.sz[1], N, L; x; ) {
|
|
4160
4160
|
L = this.buildFinalText(t.t), N = 0, k = 0, r = L.length, P = t.tr / 1e3 * t.finalSize;
|
|
4161
4161
|
var G = -1;
|
|
4162
4162
|
for (n = 0; n < r; n += 1)
|
|
4163
4163
|
T = L[n].charCodeAt(0), o = !1, L[n] === " " ? G = n : (T === 13 || T === 3) && (k = 0, o = !0, N += t.finalLineHeight || t.finalSize * 1.2), e.chars ? (f = e.getCharData(L[n], d.fStyle, d.fFamily), u = o ? 0 : f.w * t.finalSize / 100) : u = e.measureText(L[n], t.f, t.finalSize), k + u > I && L[n] !== " " ? (G === -1 ? r += 1 : n = G, N += t.finalLineHeight || t.finalSize * 1.2, L.splice(n, G === n ? 1 : 0, "\r"), G = -1, k = 0) : (k += u, k += P);
|
|
4164
|
-
N += d.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize &&
|
|
4164
|
+
N += d.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && q < N ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = L, r = t.finalText.length, x = !1);
|
|
4165
4165
|
}
|
|
4166
4166
|
k = -P, u = 0;
|
|
4167
4167
|
var O = 0, F;
|
|
@@ -4210,10 +4210,10 @@ function wr() {
|
|
|
4210
4210
|
for (A = v[C], A.a.sc && (t.strokeColorAnim = !0), A.a.sw && (t.strokeWidthAnim = !0), (A.a.fc || A.a.fh || A.a.fs || A.a.fb) && (t.fillColorAnim = !0), E = 0, l = A.s.b, n = 0; n < r; n += 1)
|
|
4211
4211
|
a = s[n], a.anIndexes[C] = E, (l == 1 && a.val !== "" || l == 2 && a.val !== "" && a.val !== " " || l == 3 && (a.n || a.val == " " || n == r - 1) || l == 4 && (a.n || n == r - 1)) && (A.s.rn === 1 && w.push(E), E += 1);
|
|
4212
4212
|
i.a[C].s.totalChars = E;
|
|
4213
|
-
var R = -1,
|
|
4213
|
+
var R = -1, z;
|
|
4214
4214
|
if (A.s.rn === 1)
|
|
4215
4215
|
for (n = 0; n < r; n += 1)
|
|
4216
|
-
a = s[n], R != a.anIndexes[C] && (R = a.anIndexes[C],
|
|
4216
|
+
a = s[n], R != a.anIndexes[C] && (R = a.anIndexes[C], z = w.splice(Math.floor(Math.random() * w.length), 1)[0]), a.anIndexes[C] = z;
|
|
4217
4217
|
}
|
|
4218
4218
|
t.yOffset = t.finalLineHeight || t.finalSize * 1.2, t.ls = t.ls || 0, t.ascent = d.ascent * t.finalSize / 100;
|
|
4219
4219
|
}, pt.prototype.updateDocumentData = function(t, e) {
|
|
@@ -4250,7 +4250,7 @@ function wr() {
|
|
|
4250
4250
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
4251
4251
|
var c = 0, h = 0, m = 1, _ = 1;
|
|
4252
4252
|
this.ne.v > 0 ? c = this.ne.v / 100 : h = -this.ne.v / 100, this.xe.v > 0 ? m = 1 - this.xe.v / 100 : _ = 1 + this.xe.v / 100;
|
|
4253
|
-
var M =
|
|
4253
|
+
var M = me.getBezierEasing(c, h, m, _).get, p = 0, b = this.finalS, k = this.finalE, S = this.data.sh;
|
|
4254
4254
|
if (S === 2)
|
|
4255
4255
|
k === b ? p = o >= k ? 1 : 0 : p = t(0, e(0.5 / (k - b) + (o - b) / (k - b), 1)), p = M(p);
|
|
4256
4256
|
else if (S === 3)
|
|
@@ -4336,7 +4336,7 @@ function wr() {
|
|
|
4336
4336
|
}, ee.prototype.getMeasures = function(t, e) {
|
|
4337
4337
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
4338
4338
|
this._isFirstFrame = !1;
|
|
4339
|
-
var i = this._moreOptions.alignment.v, s = this._animatorsData, n = this._textData, r = this.mHelper, o = this._renderType, c = this.renderedLetters.length, h, m, _, M, p = t.l, b, k, S, C, y, d, f, u, g, P, T, x, I,
|
|
4339
|
+
var i = this._moreOptions.alignment.v, s = this._animatorsData, n = this._textData, r = this.mHelper, o = this._renderType, c = this.renderedLetters.length, h, m, _, M, p = t.l, b, k, S, C, y, d, f, u, g, P, T, x, I, q, N;
|
|
4340
4340
|
if (this._hasMaskedPath) {
|
|
4341
4341
|
if (N = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
4342
4342
|
var L = N.v;
|
|
@@ -4357,7 +4357,7 @@ function wr() {
|
|
|
4357
4357
|
M = p.length, h = 0, m = 0;
|
|
4358
4358
|
var O = t.finalSize * 1.2 * 0.714, F = !0, v, A, a, l, E;
|
|
4359
4359
|
l = s.length;
|
|
4360
|
-
var w, R = -1,
|
|
4360
|
+
var w, R = -1, z, D, Y, H = k, $ = f, vt = d, Ct = -1, dt, at, gt, K, B, It, Gt, Lt, Tt = "", Vt = this.defaultPropsArray, Rt;
|
|
4361
4361
|
if (t.j === 2 || t.j === 1) {
|
|
4362
4362
|
var mt = 0, Xt = 0, Yt = t.j === 2 ? -0.5 : -1, St = 0, Ht = !0;
|
|
4363
4363
|
for (_ = 0; _ < M; _ += 1)
|
|
@@ -4395,9 +4395,9 @@ function wr() {
|
|
|
4395
4395
|
v = s[a].a, v.p.propType && (A = s[a].s, w = A.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), w.length ? At += v.p.v[0] * w[0] : At += v.p.v[0] * w), v.a.propType && (A = s[a].s, w = A.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), w.length ? At += v.a.v[0] * w[0] : At += v.a.v[0] * w);
|
|
4396
4396
|
for (y = !0, this._pathData.a.v && (k = p[0].an * 0.5 + (x - this._pathData.f.v - p[0].an * 0.5 - p[p.length - 1].an * 0.5) * R / (M - 1), k += this._pathData.f.v); y; )
|
|
4397
4397
|
C + T >= k + At || !g ? (I = (k + At - C) / S.partialLength, D = u.point[0] + (S.point[0] - u.point[0]) * I, Y = u.point[1] + (S.point[1] - u.point[1]) * I, r.translate(-i[0] * p[_].an * 5e-3, -(i[1] * O) * 0.01), y = !1) : g && (C += S.partialLength, d += 1, d >= g.length && (d = 0, f += 1, P[f] ? g = P[f].points : N.v.c ? (d = 0, f = 0, g = P[f].points) : (C -= S.partialLength, g = null)), g && (u = S, S = g[d], T = S.partialLength));
|
|
4398
|
-
|
|
4398
|
+
z = p[_].an / 2 - p[_].add, r.translate(-z, 0, 0);
|
|
4399
4399
|
} else
|
|
4400
|
-
|
|
4400
|
+
z = p[_].an / 2 - p[_].add, r.translate(-z, 0, 0), r.translate(-i[0] * p[_].an * 5e-3, -i[1] * O * 0.01, 0);
|
|
4401
4401
|
for (a = 0; a < l; a += 1)
|
|
4402
4402
|
v = s[a].a, v.t.propType && (A = s[a].s, w = A.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), (h !== 0 || t.j !== 0) && (this._hasMaskedPath ? w.length ? k += v.t.v * w[0] : k += v.t.v * w : w.length ? h += v.t.v * w[0] : h += v.t.v * w));
|
|
4403
4403
|
for (t.strokeWidthAnim && (gt = t.sw || 0), t.strokeColorAnim && (t.sc ? at = [t.sc[0], t.sc[1], t.sc[2]] : at = [0, 0, 0]), t.fillColorAnim && t.fc && (K = [t.fc[0], t.fc[1], t.fc[2]]), a = 0; a < l; a += 1)
|
|
@@ -4419,8 +4419,8 @@ function wr() {
|
|
|
4419
4419
|
v = s[a].a, v.p.propType && (A = s[a].s, w = A.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), this._hasMaskedPath ? w.length ? r.translate(0, v.p.v[1] * w[0], -v.p.v[2] * w[1]) : r.translate(0, v.p.v[1] * w, -v.p.v[2] * w) : w.length ? r.translate(v.p.v[0] * w[0], v.p.v[1] * w[1], -v.p.v[2] * w[2]) : r.translate(v.p.v[0] * w, v.p.v[1] * w, -v.p.v[2] * w));
|
|
4420
4420
|
if (t.strokeWidthAnim && (It = gt < 0 ? 0 : gt), t.strokeColorAnim && (Gt = "rgb(" + Math.round(at[0] * 255) + "," + Math.round(at[1] * 255) + "," + Math.round(at[2] * 255) + ")"), t.fillColorAnim && t.fc && (Lt = "rgb(" + Math.round(K[0] * 255) + "," + Math.round(K[1] * 255) + "," + Math.round(K[2] * 255) + ")"), this._hasMaskedPath) {
|
|
4421
4421
|
if (r.translate(0, -t.ls), r.translate(0, i[1] * O * 0.01 + m, 0), this._pathData.p.v) {
|
|
4422
|
-
|
|
4423
|
-
var ie = Math.atan(
|
|
4422
|
+
q = (S.point[1] - u.point[1]) / (S.point[0] - u.point[0]);
|
|
4423
|
+
var ie = Math.atan(q) * 180 / Math.PI;
|
|
4424
4424
|
S.point[0] < u.point[0] && (ie += 180), r.rotate(-ie * Math.PI / 180);
|
|
4425
4425
|
}
|
|
4426
4426
|
r.translate(D, Y, 0), k -= i[0] * p[_].an * 5e-3, p[_ + 1] && R !== p[_ + 1].ind && (k += p[_].an / 2, k += t.tr * 1e-3 * t.finalSize);
|
|
@@ -4433,7 +4433,7 @@ function wr() {
|
|
|
4433
4433
|
r.translate(p[_].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[p[_].line]) / 2, 0, 0);
|
|
4434
4434
|
break;
|
|
4435
4435
|
}
|
|
4436
|
-
r.translate(0, -t.ls), r.translate(
|
|
4436
|
+
r.translate(0, -t.ls), r.translate(z, 0, 0), r.translate(i[0] * p[_].an * 5e-3, i[1] * O * 0.01, 0), h += p[_].l + t.tr * 1e-3 * t.finalSize;
|
|
4437
4437
|
}
|
|
4438
4438
|
o === "html" ? Tt = r.toCSS() : o === "svg" ? Tt = r.to2dCSS() : Vt = [r.props[0], r.props[1], r.props[2], r.props[3], r.props[4], r.props[5], r.props[6], r.props[7], r.props[8], r.props[9], r.props[10], r.props[11], r.props[12], r.props[13], r.props[14], r.props[15]], Rt = dt;
|
|
4439
4439
|
}
|
|
@@ -4482,7 +4482,7 @@ function wr() {
|
|
|
4482
4482
|
function xt(t, e, i) {
|
|
4483
4483
|
this.textSpans = [], this.renderType = "svg", this.initElement(t, e, i);
|
|
4484
4484
|
}
|
|
4485
|
-
X([
|
|
4485
|
+
X([zt, fe, Pe, pe, qt, we, _t], xt), xt.prototype.createContent = function() {
|
|
4486
4486
|
this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = W("text"));
|
|
4487
4487
|
}, xt.prototype.buildTextContents = function(t) {
|
|
4488
4488
|
for (var e = 0, i = t.length, s = [], n = ""; e < i; )
|
|
@@ -4555,7 +4555,7 @@ function wr() {
|
|
|
4555
4555
|
u = this.globalData.fontManager.getCharData(i.finalText[t], s.fStyle, this.globalData.fontManager.getFontByName(i.f).fFamily);
|
|
4556
4556
|
var P;
|
|
4557
4557
|
if (u.t === 1)
|
|
4558
|
-
P = new
|
|
4558
|
+
P = new Me(u.data, this.globalData, this);
|
|
4559
4559
|
else {
|
|
4560
4560
|
var T = ur;
|
|
4561
4561
|
u.data && u.data.shapes && (T = this.buildShapeData(u.data, i.finalSize)), P = new Q(T, this.globalData, this);
|
|
@@ -4602,7 +4602,7 @@ function wr() {
|
|
|
4602
4602
|
function li(t, e, i) {
|
|
4603
4603
|
this.initElement(t, e, i);
|
|
4604
4604
|
}
|
|
4605
|
-
X([
|
|
4605
|
+
X([Ce], li), li.prototype.createContent = function() {
|
|
4606
4606
|
var t = W("rect");
|
|
4607
4607
|
t.setAttribute("width", this.data.sw), t.setAttribute("height", this.data.sh), t.setAttribute("fill", this.data.sc), this.layerElement.appendChild(t);
|
|
4608
4608
|
};
|
|
@@ -4617,7 +4617,7 @@ function wr() {
|
|
|
4617
4617
|
}, Wt.prototype.destroy = function() {
|
|
4618
4618
|
}, Wt.prototype.sourceRectAtTime = function() {
|
|
4619
4619
|
}, Wt.prototype.hide = function() {
|
|
4620
|
-
}, X([
|
|
4620
|
+
}, X([zt, fe, pe, qt], Wt);
|
|
4621
4621
|
function st() {
|
|
4622
4622
|
}
|
|
4623
4623
|
X([ft], st), st.prototype.createNull = function(t) {
|
|
@@ -4627,7 +4627,7 @@ function wr() {
|
|
|
4627
4627
|
}, st.prototype.createText = function(t) {
|
|
4628
4628
|
return new xt(t, this.globalData, this);
|
|
4629
4629
|
}, st.prototype.createImage = function(t) {
|
|
4630
|
-
return new
|
|
4630
|
+
return new Ce(t, this.globalData, this);
|
|
4631
4631
|
}, st.prototype.createSolid = function(t) {
|
|
4632
4632
|
return new li(t, this.globalData, this);
|
|
4633
4633
|
}, st.prototype.configAnimation = function(t) {
|
|
@@ -4656,7 +4656,7 @@ function wr() {
|
|
|
4656
4656
|
if (!(e[t] || this.layers[t].ty === 99)) {
|
|
4657
4657
|
e[t] = !0;
|
|
4658
4658
|
var i = this.createItem(this.layers[t]);
|
|
4659
|
-
if (e[t] = i,
|
|
4659
|
+
if (e[t] = i, Fe() && (this.layers[t].ty === 0 && this.globalData.projectInterface.registerComposition(i), i.initExpressions()), this.appendElementInPos(i, t), this.layers[t].tt) {
|
|
4660
4660
|
var s = "tp" in this.layers[t] ? this.findIndexByInd(this.layers[t].tp) : t - 1;
|
|
4661
4661
|
if (s === -1)
|
|
4662
4662
|
return;
|
|
@@ -4705,7 +4705,7 @@ function wr() {
|
|
|
4705
4705
|
};
|
|
4706
4706
|
function Ft() {
|
|
4707
4707
|
}
|
|
4708
|
-
X([
|
|
4708
|
+
X([zt, fe, pe, qt, we], Ft), Ft.prototype.initElement = function(t, e, i) {
|
|
4709
4709
|
this.initFrame(), this.initBaseData(t, e, i), this.initTransform(t, e, i), this.initRenderable(), this.initHierarchy(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), (this.data.xt || !e.progressiveLoad) && this.buildAllItems(), this.hide();
|
|
4710
4710
|
}, Ft.prototype.prepareFrame = function(t) {
|
|
4711
4711
|
if (this._mdf = !1, this.prepareRenderableFrame(t), this.prepareProperties(t, this.isInRange), !(!this.isInRange && !this.data.xt)) {
|
|
@@ -4734,13 +4734,13 @@ function wr() {
|
|
|
4734
4734
|
}, Ft.prototype.destroy = function() {
|
|
4735
4735
|
this.destroyElements(), this.destroyBaseElement();
|
|
4736
4736
|
};
|
|
4737
|
-
function
|
|
4737
|
+
function Me(t, e, i) {
|
|
4738
4738
|
this.layers = t.layers, this.supports3d = !0, this.completeLayers = !1, this.pendingElements = [], this.elements = this.layers ? et(this.layers.length) : [], this.initElement(t, e, i), this.tm = t.tm ? V.getProp(this, t.tm, 0, e.frameRate, this) : {
|
|
4739
4739
|
_placeholder: !0
|
|
4740
4740
|
};
|
|
4741
4741
|
}
|
|
4742
|
-
X([st, Ft,
|
|
4743
|
-
return new
|
|
4742
|
+
X([st, Ft, Pe], Me), Me.prototype.createComp = function(t) {
|
|
4743
|
+
return new Me(t, this.globalData, this);
|
|
4744
4744
|
};
|
|
4745
4745
|
function fi(t, e) {
|
|
4746
4746
|
this.animationItem = t, this.layers = null, this.renderedFrame = -1, this.svgElement = W("svg");
|
|
@@ -4785,12 +4785,12 @@ function wr() {
|
|
|
4785
4785
|
}, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg";
|
|
4786
4786
|
}
|
|
4787
4787
|
return X([st], fi), fi.prototype.createComp = function(t) {
|
|
4788
|
-
return new
|
|
4789
|
-
}, As("svg", fi), Nt.registerModifier("tm", bt), Nt.registerModifier("pb",
|
|
4788
|
+
return new Me(t, this.globalData, this);
|
|
4789
|
+
}, As("svg", fi), Nt.registerModifier("tm", bt), Nt.registerModifier("pb", ge), Nt.registerModifier("rp", wt), Nt.registerModifier("rd", ye), Nt.registerModifier("zz", be), Nt.registerModifier("op", Se), Z;
|
|
4790
4790
|
});
|
|
4791
|
-
}(
|
|
4791
|
+
}(Ee, Ee.exports)), Ee.exports;
|
|
4792
4792
|
}
|
|
4793
|
-
var Cr = wr();
|
|
4793
|
+
var Cr = /* @__PURE__ */ wr();
|
|
4794
4794
|
const Tr = /* @__PURE__ */ Ar(Cr);
|
|
4795
4795
|
function Mr(ce, se) {
|
|
4796
4796
|
let ot;
|
|
@@ -4818,7 +4818,7 @@ function Mr(ce, se) {
|
|
|
4818
4818
|
ot == null || ot.play();
|
|
4819
4819
|
});
|
|
4820
4820
|
}
|
|
4821
|
-
function
|
|
4821
|
+
function xe() {
|
|
4822
4822
|
os(() => {
|
|
4823
4823
|
ot == null || ot.stop();
|
|
4824
4824
|
});
|
|
@@ -4826,7 +4826,7 @@ function Mr(ce, se) {
|
|
|
4826
4826
|
function re() {
|
|
4827
4827
|
ot && (ot.destroy(), ot = null);
|
|
4828
4828
|
}
|
|
4829
|
-
return Mt(), { play: Kt, stop:
|
|
4829
|
+
return Mt(), { play: Kt, stop: xe, destroy: re };
|
|
4830
4830
|
}
|
|
4831
4831
|
const Lr = /* @__PURE__ */ yr({
|
|
4832
4832
|
name: "AnimationItem",
|
|
@@ -4846,7 +4846,7 @@ const Lr = /* @__PURE__ */ yr({
|
|
|
4846
4846
|
return se({
|
|
4847
4847
|
play: Zt,
|
|
4848
4848
|
stop: Kt
|
|
4849
|
-
}), (
|
|
4849
|
+
}), (xe, re) => (Sr(), br(
|
|
4850
4850
|
"div",
|
|
4851
4851
|
{
|
|
4852
4852
|
ref_key: "AnimationRef",
|