@truelab/truengine 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/truengine.js +810 -675
- package/dist/types/src/components/slot/frames/frames.spine.component.d.ts +8 -3
- package/dist/types/src/components/slot/frames/frames.spine.component.d.ts.map +1 -1
- package/dist/types/src/components/slot/lines/lines.component.d.ts +7 -0
- package/dist/types/src/components/slot/lines/lines.component.d.ts.map +1 -1
- package/dist/types/src/components/slot/lines/lines.spine.component.d.ts +11 -2
- package/dist/types/src/components/slot/lines/lines.spine.component.d.ts.map +1 -1
- package/dist/types/src/components/slot/reel.component.d.ts.map +1 -1
- package/dist/types/src/components/slot/slot.component.d.ts +17 -2
- package/dist/types/src/components/slot/slot.component.d.ts.map +1 -1
- package/dist/types/src/components/slot/slot.config.d.ts +6 -5
- package/dist/types/src/components/slot/slot.config.d.ts.map +1 -1
- package/dist/types/src/components/slot/symbol/symbol.component.d.ts +3 -0
- package/dist/types/src/components/slot/symbol/symbol.component.d.ts.map +1 -1
- package/dist/types/src/components/slot/symbol/symbol.spine.component.d.ts +21 -2
- package/dist/types/src/components/slot/symbol/symbol.spine.component.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/truengine.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
var $a = Object.defineProperty;
|
|
2
2
|
var Ha = (r, e, t) => e in r ? $a(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var y = (r, e, t) => Ha(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { g as Ua, L as Zn, S as Ct, A as gr, B as Ga, C as
|
|
4
|
+
import { g as Ua, L as Zn, S as Ct, A as gr, B as Ga, C as gi, P as ja, G as Fi, T as je, n as qa, e as za, i as Ji, a as de, s as Ka, b as Qa, c as Ja, d as Za, r as rn, D as to, f as eo, h as io, j as _r, k as en, M as no, l as vr, R as an, m as wi, o as ye, p as so, q as ro, t as ao, u as Ne, v as yr, w as Ft, x as oo, F as lo, y as Di } from "./pixi-chunk.js";
|
|
5
5
|
import { a as ts } from "./index-chunk.js";
|
|
6
|
-
import { g as
|
|
6
|
+
import { g as zt, C as br, S as es } from "./gsap-chunk.js";
|
|
7
7
|
import { B as sd, o as rd, a as ad, q as od, j as ld, E as hd, p as cd, L as ud, M as dd, P as fd, d as pd, e as md, f as gd, h as _d, Q as vd, k as yd, l as bd, n as wd, m as xd, c as Sd, c as Ad, b as kd, T as Cd, i as Td } from "./gsap-chunk.js";
|
|
8
|
-
var Ln = /* @__PURE__ */ ((r) => (r[r.LOW = 0] = "LOW", r[r.MEDIUM = 100] = "MEDIUM", r[r.HIGH = 200] = "HIGH", r))(Ln || {}), ft = /* @__PURE__ */ ((r) => (r[r.TOP = 0] = "TOP", r[r.BOTTOM = 1] = "BOTTOM", r[r.CENTER = 2] = "CENTER", r[r.LEFT = 3] = "LEFT", r[r.RIGHT = 4] = "RIGHT", r))(ft || {}), wr = /* @__PURE__ */ ((r) => (r[r.bitmapfont = 0] = "bitmapfont", r[r.dragonbones = 1] = "dragonbones", r[r.sound = 2] = "sound", r[r.spritesheet = 3] = "spritesheet", r[r.texture = 4] = "texture", r[r.webfont = 5] = "webfont", r[r.spine = 6] = "spine", r))(wr || {}), ho = /* @__PURE__ */ ((r) => (r.freerounds = "freerounds", r))(ho || {}),
|
|
9
|
-
const
|
|
8
|
+
var Ln = /* @__PURE__ */ ((r) => (r[r.LOW = 0] = "LOW", r[r.MEDIUM = 100] = "MEDIUM", r[r.HIGH = 200] = "HIGH", r))(Ln || {}), ft = /* @__PURE__ */ ((r) => (r[r.TOP = 0] = "TOP", r[r.BOTTOM = 1] = "BOTTOM", r[r.CENTER = 2] = "CENTER", r[r.LEFT = 3] = "LEFT", r[r.RIGHT = 4] = "RIGHT", r))(ft || {}), wr = /* @__PURE__ */ ((r) => (r[r.bitmapfont = 0] = "bitmapfont", r[r.dragonbones = 1] = "dragonbones", r[r.sound = 2] = "sound", r[r.spritesheet = 3] = "spritesheet", r[r.texture = 4] = "texture", r[r.webfont = 5] = "webfont", r[r.spine = 6] = "spine", r))(wr || {}), ho = /* @__PURE__ */ ((r) => (r.freerounds = "freerounds", r))(ho || {}), me = /* @__PURE__ */ ((r) => (r.none = "none", r.in = "power2.in", r.out = "power2.out", r.inOut = "power2.inOut", r.backOut = "back.out(1.4)", r.bounceOut = "bounce.out", r.elasticOut = "elastic.out(1, 0.4)", r))(me || {});
|
|
9
|
+
const Wt = window.navigator.userAgent;
|
|
10
10
|
function Ec() {
|
|
11
|
-
return
|
|
11
|
+
return Wt;
|
|
12
12
|
}
|
|
13
13
|
function xr() {
|
|
14
|
-
return !!(
|
|
14
|
+
return !!(Wt.match(/Android/i) || Wt.match(/webOS/i) || Wt.match(/iPhone/i) || Wt.match(/iPad/i) || Wt.match(/iPod/i) || Wt.match(/BlackBerry/i) || Wt.match(/Windows Phone/i));
|
|
15
15
|
}
|
|
16
16
|
function Mc() {
|
|
17
17
|
return !xr();
|
|
18
18
|
}
|
|
19
19
|
function Ei() {
|
|
20
|
-
return
|
|
20
|
+
return Wt.indexOf("IEMobile") >= 0;
|
|
21
21
|
}
|
|
22
22
|
function co() {
|
|
23
|
-
return !!
|
|
23
|
+
return !!Wt.match(/iPad/i) && !Ei();
|
|
24
24
|
}
|
|
25
25
|
function Ic() {
|
|
26
|
-
return
|
|
26
|
+
return Wt.toLowerCase().indexOf("firefox") >= 0;
|
|
27
27
|
}
|
|
28
28
|
function Rc() {
|
|
29
|
-
return
|
|
29
|
+
return Wt.toLowerCase().indexOf("edge") >= 0;
|
|
30
30
|
}
|
|
31
31
|
function Bc() {
|
|
32
|
-
const r =
|
|
32
|
+
const r = Wt.toLowerCase();
|
|
33
33
|
return /safari/.test(r) && /applewebkit/.test(r) && !/chrome/.test(r);
|
|
34
34
|
}
|
|
35
35
|
function uo() {
|
|
36
|
-
return
|
|
36
|
+
return Wt.match(/iPhone|iPad|iPod/i) && !Ei();
|
|
37
37
|
}
|
|
38
38
|
function Lc() {
|
|
39
|
-
return
|
|
39
|
+
return Wt.match(/Mac|iPhone|iPad|iPod/i) && !Ei();
|
|
40
40
|
}
|
|
41
41
|
function Oc() {
|
|
42
|
-
return
|
|
42
|
+
return Wt.match(/iPhone/i) && !Ei();
|
|
43
43
|
}
|
|
44
44
|
function Dc() {
|
|
45
|
-
return
|
|
45
|
+
return Wt.match(/Android/i) && !Ei();
|
|
46
46
|
}
|
|
47
47
|
function Yc() {
|
|
48
|
-
return
|
|
48
|
+
return Wt.match(/Tablet/i) && Wt.match(/Android/i) && !Ei();
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Nc() {
|
|
51
51
|
return "standalone" in window.navigator;
|
|
52
52
|
}
|
|
53
53
|
function fo() {
|
|
@@ -60,7 +60,7 @@ function po() {
|
|
|
60
60
|
const r = (screen.orientation || {}).type || "";
|
|
61
61
|
return r.includes("portrait") ? !0 : r.includes("landscape") ? !1 : window.outerWidth < window.outerHeight;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Wc() {
|
|
64
64
|
return !po();
|
|
65
65
|
}
|
|
66
66
|
function Xc() {
|
|
@@ -144,7 +144,7 @@ function Sr(r, e) {
|
|
|
144
144
|
setTimeout(async () => t(await r()), e);
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function yi(r) {
|
|
148
148
|
return new Promise((e) => setTimeout(e, r));
|
|
149
149
|
}
|
|
150
150
|
function yo(r) {
|
|
@@ -422,10 +422,10 @@ class So {
|
|
|
422
422
|
return !1;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
const
|
|
426
|
-
var wn = { exports: {} },
|
|
425
|
+
const U = new So();
|
|
426
|
+
var wn = { exports: {} }, Ns;
|
|
427
427
|
function Ao() {
|
|
428
|
-
return
|
|
428
|
+
return Ns || (Ns = 1, function(r) {
|
|
429
429
|
(function() {
|
|
430
430
|
function e(A, C, B) {
|
|
431
431
|
return A.call.apply(A.bind, arguments);
|
|
@@ -567,16 +567,16 @@ function Ao() {
|
|
|
567
567
|
this.c = A, this.f = A.o.document.documentElement, this.h = C, this.a = new S("-"), this.j = C.events !== !1, this.g = C.classes !== !1;
|
|
568
568
|
}
|
|
569
569
|
function L(A) {
|
|
570
|
-
A.g && f(A.f, [A.a.c("wf", "loading")]),
|
|
570
|
+
A.g && f(A.f, [A.a.c("wf", "loading")]), W(A, "loading");
|
|
571
571
|
}
|
|
572
572
|
function D(A) {
|
|
573
573
|
if (A.g) {
|
|
574
574
|
var C = a(A.f, A.a.c("wf", "active")), B = [], O = [A.a.c("wf", "loading")];
|
|
575
575
|
C || B.push(A.a.c("wf", "inactive")), f(A.f, B, O);
|
|
576
576
|
}
|
|
577
|
-
|
|
577
|
+
W(A, "inactive");
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function W(A, C, B) {
|
|
580
580
|
A.j && A.h[C] && (B ? A.h[C](B.c, k(B)) : A.h[C]());
|
|
581
581
|
}
|
|
582
582
|
function Y() {
|
|
@@ -624,7 +624,7 @@ function Ao() {
|
|
|
624
624
|
function X(A, C, B, O, j, J, et) {
|
|
625
625
|
this.v = A, this.B = C, this.c = B, this.a = O, this.s = et || "BESbswy", this.f = {}, this.w = j || 3e3, this.u = J || null, this.m = this.j = this.h = this.g = null, this.g = new z(this.c, this.s), this.h = new z(this.c, this.s), this.j = new z(this.c, this.s), this.m = new z(this.c, this.s), A = new b(this.a.c + ",serif", k(this.a)), A = I(A), this.g.a.style.cssText = A, A = new b(this.a.c + ",sans-serif", k(this.a)), A = I(A), this.h.a.style.cssText = A, A = new b("serif", k(this.a)), A = I(A), this.j.a.style.cssText = A, A = new b("sans-serif", k(this.a)), A = I(A), this.m.a.style.cssText = A, q(this.g), q(this.h), q(this.j), q(this.m);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
627
|
+
var N = { D: "serif", C: "sans-serif" }, V = null;
|
|
628
628
|
function $() {
|
|
629
629
|
if (V === null) {
|
|
630
630
|
var A = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);
|
|
@@ -635,13 +635,13 @@ function Ao() {
|
|
|
635
635
|
X.prototype.start = function() {
|
|
636
636
|
this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = n(), Z(this);
|
|
637
637
|
};
|
|
638
|
-
function
|
|
639
|
-
for (var O in
|
|
638
|
+
function G(A, C, B) {
|
|
639
|
+
for (var O in N) if (N.hasOwnProperty(O) && C === A.f[N[O]] && B === A.f[N[O]]) return !0;
|
|
640
640
|
return !1;
|
|
641
641
|
}
|
|
642
642
|
function Z(A) {
|
|
643
643
|
var C = A.g.a.offsetWidth, B = A.h.a.offsetWidth, O;
|
|
644
|
-
(O = C === A.f.serif && B === A.f["sans-serif"]) || (O = $() &&
|
|
644
|
+
(O = C === A.f.serif && B === A.f["sans-serif"]) || (O = $() && G(A, C, B)), O ? n() - A.A >= A.w ? $() && G(A, C, B) && (A.u === null || A.u.hasOwnProperty(A.a.c)) ? nt(A, A.v) : nt(A, A.B) : at(A) : nt(A, A.v);
|
|
645
645
|
}
|
|
646
646
|
function at(A) {
|
|
647
647
|
setTimeout(i(function() {
|
|
@@ -659,23 +659,23 @@ function Ao() {
|
|
|
659
659
|
var pt = null;
|
|
660
660
|
st.prototype.g = function(A) {
|
|
661
661
|
var C = this.a;
|
|
662
|
-
C.g && f(C.f, [C.a.c("wf", A.c, k(A).toString(), "active")], [C.a.c("wf", A.c, k(A).toString(), "loading"), C.a.c("wf", A.c, k(A).toString(), "inactive")]),
|
|
662
|
+
C.g && f(C.f, [C.a.c("wf", A.c, k(A).toString(), "active")], [C.a.c("wf", A.c, k(A).toString(), "loading"), C.a.c("wf", A.c, k(A).toString(), "inactive")]), W(C, "fontactive", A), this.m = !0, Pt(this);
|
|
663
663
|
}, st.prototype.h = function(A) {
|
|
664
664
|
var C = this.a;
|
|
665
665
|
if (C.g) {
|
|
666
666
|
var B = a(C.f, C.a.c("wf", A.c, k(A).toString(), "active")), O = [], j = [C.a.c("wf", A.c, k(A).toString(), "loading")];
|
|
667
667
|
B || O.push(C.a.c("wf", A.c, k(A).toString(), "inactive")), f(C.f, O, j);
|
|
668
668
|
}
|
|
669
|
-
|
|
669
|
+
W(C, "fontinactive", A), Pt(this);
|
|
670
670
|
};
|
|
671
671
|
function Pt(A) {
|
|
672
|
-
--A.f == 0 && A.j && (A.m ? (A = A.a, A.g && f(A.f, [A.a.c("wf", "active")], [A.a.c("wf", "loading"), A.a.c("wf", "inactive")]),
|
|
672
|
+
--A.f == 0 && A.j && (A.m ? (A = A.a, A.g && f(A.f, [A.a.c("wf", "active")], [A.a.c("wf", "loading"), A.a.c("wf", "inactive")]), W(A, "active")) : D(A.a));
|
|
673
673
|
}
|
|
674
674
|
function _t(A) {
|
|
675
675
|
this.j = A, this.a = new Y(), this.h = 0, this.f = this.g = !0;
|
|
676
676
|
}
|
|
677
677
|
_t.prototype.load = function(A) {
|
|
678
|
-
this.c = new s(this.j, A.context || this.j), this.g = A.events !== !1, this.f = A.classes !== !1,
|
|
678
|
+
this.c = new s(this.j, A.context || this.j), this.g = A.events !== !1, this.f = A.classes !== !1, ae(this, new M(this.c, A), A);
|
|
679
679
|
};
|
|
680
680
|
function Lt(A, C, B, O, j) {
|
|
681
681
|
var J = --A.h == 0;
|
|
@@ -686,18 +686,18 @@ function Ao() {
|
|
|
686
686
|
C.f += B.length, J && (C.j = J);
|
|
687
687
|
var ht, vt = [];
|
|
688
688
|
for (ht = 0; ht < B.length; ht++) {
|
|
689
|
-
var gt = B[ht], wt = ot[gt.c],
|
|
690
|
-
if (
|
|
691
|
-
var
|
|
692
|
-
pt =
|
|
689
|
+
var gt = B[ht], wt = ot[gt.c], Nt = C.a, he = gt;
|
|
690
|
+
if (Nt.g && f(Nt.f, [Nt.a.c("wf", he.c, k(he).toString(), "loading")]), W(Nt, "fontloading", he), Nt = null, pt === null) if (window.FontFace) {
|
|
691
|
+
var he = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), Li = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
|
|
692
|
+
pt = he ? 42 < parseInt(he[1], 10) : !Li;
|
|
693
693
|
} else pt = !1;
|
|
694
|
-
pt ?
|
|
694
|
+
pt ? Nt = new R(i(C.g, C), i(C.h, C), C.c, gt, C.s, wt) : Nt = new X(i(C.g, C), i(C.h, C), C.c, gt, C.s, et, wt), vt.push(Nt);
|
|
695
695
|
}
|
|
696
696
|
for (ht = 0; ht < vt.length; ht++) vt[ht].start();
|
|
697
697
|
}
|
|
698
698
|
}, 0);
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function ae(A, C, B) {
|
|
701
701
|
var j = [], O = B.timeout;
|
|
702
702
|
L(C);
|
|
703
703
|
var j = K(A.a, B, A.c), J = new st(A.c, C, O);
|
|
@@ -756,7 +756,7 @@ function Ao() {
|
|
|
756
756
|
j.length == 2 && j[1] != "" && (J = ":"), A.a.push(j.join(J));
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function oe(A) {
|
|
760
760
|
if (A.a.length == 0) throw Error("No fonts to load!");
|
|
761
761
|
if (A.c.indexOf("kit=") != -1) return A.c;
|
|
762
762
|
for (var C = A.a.length, B = [], O = 0; O < C; O++) B.push(A.a[O].replace(/ /g, "+"));
|
|
@@ -766,7 +766,7 @@ function Ao() {
|
|
|
766
766
|
this.f = A, this.a = [], this.c = {};
|
|
767
767
|
}
|
|
768
768
|
var ge = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ" }, xe = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7" }, Se = { i: "i", italic: "i", n: "n", normal: "n" }, Ae = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
|
|
769
|
-
function
|
|
769
|
+
function le(A) {
|
|
770
770
|
for (var C = A.f.length, B = 0; B < C; B++) {
|
|
771
771
|
var O = A.f[B].split(":"), j = O[0].replace(/\+/g, " "), J = ["n4"];
|
|
772
772
|
if (2 <= O.length) {
|
|
@@ -778,7 +778,7 @@ function Ao() {
|
|
|
778
778
|
if (wt == null) gt = "";
|
|
779
779
|
else {
|
|
780
780
|
if (gt = wt[2], gt = gt == null || gt == "" ? "n" : Se[gt], wt = wt[1], wt == null || wt == "") wt = "4";
|
|
781
|
-
else var
|
|
781
|
+
else var Nt = xe[wt], wt = Nt || (isNaN(wt) ? "4" : wt.substr(0, 1));
|
|
782
782
|
gt = [gt, wt].join("");
|
|
783
783
|
}
|
|
784
784
|
} else gt = "";
|
|
@@ -797,14 +797,14 @@ function Ao() {
|
|
|
797
797
|
var C = new m(), B = this.c, O = new ee(this.a.api, this.a.text), j = this.a.families;
|
|
798
798
|
Fe(O, j);
|
|
799
799
|
var J = new Ee(j);
|
|
800
|
-
|
|
800
|
+
le(J), d(B, oe(O), _(C)), g(C, function() {
|
|
801
801
|
A(J.a, J.c, ke);
|
|
802
802
|
});
|
|
803
803
|
};
|
|
804
|
-
function
|
|
804
|
+
function jt(A, C) {
|
|
805
805
|
this.c = A, this.a = C;
|
|
806
806
|
}
|
|
807
|
-
|
|
807
|
+
jt.prototype.load = function(A) {
|
|
808
808
|
var C = this.a.id, B = this.c.o;
|
|
809
809
|
C ? p(this.c, (this.a.api || "https://use.typekit.net") + "/" + C + ".js", function(O) {
|
|
810
810
|
if (O) A([]);
|
|
@@ -842,7 +842,7 @@ function Ao() {
|
|
|
842
842
|
}, Qt.a.c.monotype = function(A, C) {
|
|
843
843
|
return new Ot(C, A);
|
|
844
844
|
}, Qt.a.c.typekit = function(A, C) {
|
|
845
|
-
return new
|
|
845
|
+
return new jt(C, A);
|
|
846
846
|
}, Qt.a.c.google = function(A, C) {
|
|
847
847
|
return new Kt(C, A);
|
|
848
848
|
};
|
|
@@ -972,7 +972,7 @@ class Mi {
|
|
|
972
972
|
* @param serviceName name of registered service
|
|
973
973
|
*/
|
|
974
974
|
service(e) {
|
|
975
|
-
return Yi.has(e) || xi.has(e) && (Yi.set(e, xi.get(e).apply(this)),
|
|
975
|
+
return Yi.has(e) || xi.has(e) && (Yi.set(e, xi.get(e).apply(this)), U.emit("service.inited", { serviceName: e, instance: this })), Yi.get(e);
|
|
976
976
|
}
|
|
977
977
|
/** Собран ли сервис */
|
|
978
978
|
serviceInited(e) {
|
|
@@ -990,7 +990,7 @@ class Mi {
|
|
|
990
990
|
return xi.has(e) && (this[e] = () => this.service(e)), this;
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
|
-
const Ar = new Mi(),
|
|
993
|
+
const Ar = new Mi(), hi = (r) => Ar.registry().get(r), Fo = (r, e, t) => Ar.langs().get(r, e, t), Ci = class Ci {
|
|
994
994
|
constructor() {
|
|
995
995
|
y(this, "PIXI_RESOURCES", "pixi.loader");
|
|
996
996
|
y(this, "WEBFONT_RESOURCES", "webfont.loader");
|
|
@@ -1015,19 +1015,19 @@ const Ar = new Mi(), li = (r) => Ar.registry().get(r), Fo = (r, e, t) => Ar.lang
|
|
|
1015
1015
|
*/
|
|
1016
1016
|
async _pixiLoader(e) {
|
|
1017
1017
|
const i = [], h = async (l, f = 10) => new Promise((a) => {
|
|
1018
|
-
const c = [], d = new Zn(this._baseUrl, this._concurrency), p =
|
|
1018
|
+
const c = [], d = new Zn(this._baseUrl, this._concurrency), p = hi("renderer");
|
|
1019
1019
|
l.forEach((m) => d.add(m)), this._commit && d.pre((m, _) => {
|
|
1020
1020
|
m.url.includes("?c=") || (m.url += `?c=${this._commit}`), _();
|
|
1021
1021
|
}), d.onProgress.add((m, _) => {
|
|
1022
1022
|
var g;
|
|
1023
|
-
f === 10 &&
|
|
1023
|
+
f === 10 && U.emit("pixi.loader:progress", { progress: m.progress, tag: e }), Ci.resources.set(_.url, _), _.name && !Ci.resources.has(_.name) && Ci.resources.set(_.name, _), (g = this._bindToGPU) != null && g.includes(_.extension) && c.push(_);
|
|
1024
1024
|
}), d.onError.add((m, _, g) => {
|
|
1025
1025
|
Ui(`Failed to load: ${g.url}`);
|
|
1026
1026
|
const v = g.name.replace(/_image$/, "").replace(/_atlas_page_.+$/, "").replace(/_atlas$/, "");
|
|
1027
1027
|
if (delete _.resources[v], f > 0) {
|
|
1028
1028
|
const S = 100 * 1.2 ** (10 - f), b = S * 0.5 * (Math.random() * 2 - 1), x = Math.max(0, Math.floor(S + b));
|
|
1029
1029
|
i.push(
|
|
1030
|
-
|
|
1030
|
+
yi(x).then(() => h([v], f - 1))
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
1033
|
}), d.load(() => {
|
|
@@ -1107,7 +1107,7 @@ const Jt = class Jt extends ii {
|
|
|
1107
1107
|
* Загрузить раннее добавленные ассеты, которые еще не были загружены
|
|
1108
1108
|
*/
|
|
1109
1109
|
async load(t, i = 0) {
|
|
1110
|
-
|
|
1110
|
+
U.emit("assets.load:start", { tag: t }), await Promise.all([this._webfontLoader(), this._pixiLoader(t), yi(i)]), U.emit("assets.load:complete", { tag: t });
|
|
1111
1111
|
}
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Получить путь к ассету на основе текущего режима
|
|
@@ -1212,7 +1212,7 @@ const Jt = class Jt extends ii {
|
|
|
1212
1212
|
y(Jt, "assets", /* @__PURE__ */ new Map());
|
|
1213
1213
|
let yt = Jt;
|
|
1214
1214
|
const Eo = ts(!1), si = ts(!1), kr = ts("EUR");
|
|
1215
|
-
class
|
|
1215
|
+
class pi extends Ga {
|
|
1216
1216
|
/** @constructor */
|
|
1217
1217
|
constructor(t, i) {
|
|
1218
1218
|
const n = yt.getBitmapFont(i.assetName);
|
|
@@ -1432,7 +1432,7 @@ let Tr = class $i {
|
|
|
1432
1432
|
return `rgba(${this.r * 255}, ${this.g * 255}, ${this.b * 255}, ${this.a})`;
|
|
1433
1433
|
}
|
|
1434
1434
|
};
|
|
1435
|
-
class Ht extends
|
|
1435
|
+
class Ht extends gi {
|
|
1436
1436
|
/**
|
|
1437
1437
|
* Установить scale X
|
|
1438
1438
|
*/
|
|
@@ -1603,20 +1603,20 @@ window.PIXI = ja;
|
|
|
1603
1603
|
return typeof I === R;
|
|
1604
1604
|
}
|
|
1605
1605
|
function n() {
|
|
1606
|
-
var I, R, X,
|
|
1606
|
+
var I, R, X, N, V, $, G;
|
|
1607
1607
|
for (var Z in b)
|
|
1608
1608
|
if (b.hasOwnProperty(Z)) {
|
|
1609
1609
|
if (I = [], R = b[Z], R.name && (I.push(R.name.toLowerCase()), R.options && R.options.aliases && R.options.aliases.length))
|
|
1610
1610
|
for (X = 0; X < R.options.aliases.length; X++) I.push(R.options.aliases[X].toLowerCase());
|
|
1611
|
-
for (
|
|
1612
|
-
$ = I[V],
|
|
1611
|
+
for (N = i(R.fn, "function") ? R.fn() : R.fn, V = 0; V < I.length; V++)
|
|
1612
|
+
$ = I[V], G = $.split("."), G.length === 1 ? w[G[0]] = N : (!w[G[0]] || w[G[0]] instanceof Boolean || (w[G[0]] = new Boolean(w[G[0]])), w[G[0]][G[1]] = N), S.push((N ? "" : "no-") + G.join("-"));
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
1615
1615
|
function s(I) {
|
|
1616
1616
|
var R = F.className, X = w._config.classPrefix || "";
|
|
1617
1617
|
if (T && (R = R.baseVal), w._config.enableJSClass) {
|
|
1618
|
-
var
|
|
1619
|
-
R = R.replace(
|
|
1618
|
+
var N = new RegExp("(^|\\s)" + X + "no-js(\\s|$)");
|
|
1619
|
+
R = R.replace(N, "$1" + X + "js$2");
|
|
1620
1620
|
}
|
|
1621
1621
|
w._config.enableClasses && (R += " " + X + I.join(" " + X), T ? F.className.baseVal = R : F.className = R);
|
|
1622
1622
|
}
|
|
@@ -1624,15 +1624,15 @@ window.PIXI = ja;
|
|
|
1624
1624
|
if (typeof I == "object") for (var X in I) k(I, X) && o(X, I[X]);
|
|
1625
1625
|
else {
|
|
1626
1626
|
I = I.toLowerCase();
|
|
1627
|
-
var
|
|
1628
|
-
if (
|
|
1629
|
-
R = typeof R == "function" ? R() : R,
|
|
1627
|
+
var N = I.split("."), V = w[N[0]];
|
|
1628
|
+
if (N.length == 2 && (V = V[N[1]]), typeof V < "u") return w;
|
|
1629
|
+
R = typeof R == "function" ? R() : R, N.length == 1 ? w[N[0]] = R : (!w[N[0]] || w[N[0]] instanceof Boolean || (w[N[0]] = new Boolean(w[N[0]])), w[N[0]][N[1]] = R), s([(R && R != 0 ? "" : "no-") + N.join("-")]), w._trigger(I, R);
|
|
1630
1630
|
}
|
|
1631
1631
|
return w;
|
|
1632
1632
|
}
|
|
1633
1633
|
function h(I) {
|
|
1634
|
-
return I.replace(/([a-z])-([a-z])/g, function(R, X,
|
|
1635
|
-
return X +
|
|
1634
|
+
return I.replace(/([a-z])-([a-z])/g, function(R, X, N) {
|
|
1635
|
+
return X + N.toUpperCase();
|
|
1636
1636
|
}).replace(/^-/, "");
|
|
1637
1637
|
}
|
|
1638
1638
|
function u(I, R) {
|
|
@@ -1647,8 +1647,8 @@ window.PIXI = ja;
|
|
|
1647
1647
|
};
|
|
1648
1648
|
}
|
|
1649
1649
|
function a(I, R, X) {
|
|
1650
|
-
var
|
|
1651
|
-
for (var V in I) if (I[V] in R) return X === !1 ? I[V] : (
|
|
1650
|
+
var N;
|
|
1651
|
+
for (var V in I) if (I[V] in R) return X === !1 ? I[V] : (N = R[I[V]], i(N, "function") ? f(N, X || R) : N);
|
|
1652
1652
|
return !1;
|
|
1653
1653
|
}
|
|
1654
1654
|
function c(I) {
|
|
@@ -1657,25 +1657,25 @@ window.PIXI = ja;
|
|
|
1657
1657
|
}).replace(/^ms-/, "-ms-");
|
|
1658
1658
|
}
|
|
1659
1659
|
function d(I, R, X) {
|
|
1660
|
-
var
|
|
1660
|
+
var N;
|
|
1661
1661
|
if ("getComputedStyle" in r) {
|
|
1662
|
-
|
|
1662
|
+
N = getComputedStyle.call(r, I, R);
|
|
1663
1663
|
var V = r.console;
|
|
1664
|
-
if (
|
|
1664
|
+
if (N !== null) N = N.getPropertyValue(X);
|
|
1665
1665
|
else if (V) {
|
|
1666
1666
|
var $ = V.error ? "error" : "log";
|
|
1667
1667
|
V[$].call(V, "getComputedStyle returning null, its possible modernizr test results are inaccurate");
|
|
1668
1668
|
}
|
|
1669
|
-
} else
|
|
1670
|
-
return
|
|
1669
|
+
} else N = I.currentStyle && I.currentStyle[X];
|
|
1670
|
+
return N;
|
|
1671
1671
|
}
|
|
1672
1672
|
function p() {
|
|
1673
1673
|
var I = e.body;
|
|
1674
1674
|
return I || (I = l(T ? "svg" : "body"), I.fake = !0), I;
|
|
1675
1675
|
}
|
|
1676
|
-
function m(I, R, X,
|
|
1677
|
-
var V, $,
|
|
1678
|
-
if (parseInt(X, 10)) for (; X--; )
|
|
1676
|
+
function m(I, R, X, N) {
|
|
1677
|
+
var V, $, G, Z, at = "modernizr", nt = l("div"), st = p();
|
|
1678
|
+
if (parseInt(X, 10)) for (; X--; ) G = l("div"), G.id = at + (X + 1), nt.appendChild(G);
|
|
1679
1679
|
return V = l("style"), V.type = "text/css", V.id = "s" + at, (st.fake ? st : nt).appendChild(V), st.appendChild(nt), V.styleSheet ? V.styleSheet.cssText = I : V.appendChild(e.createTextNode(I)), nt.id = at, st.fake && (st.style.background = "", st.style.overflow = "hidden", Z = F.style.overflow, F.style.overflow = "hidden", F.appendChild(st)), $ = R(nt, I), st.fake ? (st.parentNode.removeChild(st), F.style.overflow = Z, F.offsetHeight) : nt.parentNode.removeChild(nt), !!$;
|
|
1680
1680
|
}
|
|
1681
1681
|
function _(I, R) {
|
|
@@ -1685,26 +1685,26 @@ window.PIXI = ja;
|
|
|
1685
1685
|
return !1;
|
|
1686
1686
|
}
|
|
1687
1687
|
if ("CSSSupportsRule" in r) {
|
|
1688
|
-
for (var
|
|
1689
|
-
return
|
|
1688
|
+
for (var N = []; X--; ) N.push("(" + c(I[X]) + ":" + R + ")");
|
|
1689
|
+
return N = N.join(" or "), m("@supports (" + N + ") { #modernizr { position: absolute; } }", function(V) {
|
|
1690
1690
|
return d(V, null, "position") == "absolute";
|
|
1691
1691
|
});
|
|
1692
1692
|
}
|
|
1693
1693
|
return t;
|
|
1694
1694
|
}
|
|
1695
|
-
function g(I, R, X,
|
|
1695
|
+
function g(I, R, X, N) {
|
|
1696
1696
|
function V() {
|
|
1697
|
-
|
|
1697
|
+
G && (delete K.style, delete K.modElem);
|
|
1698
1698
|
}
|
|
1699
|
-
if (
|
|
1699
|
+
if (N = i(N, "undefined") ? !1 : N, !i(X, "undefined")) {
|
|
1700
1700
|
var $ = _(I, X);
|
|
1701
1701
|
if (!i($, "undefined")) return $;
|
|
1702
1702
|
}
|
|
1703
|
-
for (var
|
|
1704
|
-
|
|
1703
|
+
for (var G, Z, at, nt, st, pt = ["modernizr", "tspan", "samp"]; !K.style && pt.length; )
|
|
1704
|
+
G = !0, K.modElem = l(pt.shift()), K.style = K.modElem.style;
|
|
1705
1705
|
for (at = I.length, Z = 0; at > Z; Z++)
|
|
1706
1706
|
if (nt = I[Z], st = K.style[nt], u(nt, "-") && (nt = h(nt)), K.style[nt] !== t) {
|
|
1707
|
-
if (
|
|
1707
|
+
if (N || i(X, "undefined")) return V(), R == "pfx" ? nt : !0;
|
|
1708
1708
|
try {
|
|
1709
1709
|
K.style[nt] = X;
|
|
1710
1710
|
} catch {
|
|
@@ -1713,9 +1713,9 @@ window.PIXI = ja;
|
|
|
1713
1713
|
}
|
|
1714
1714
|
return V(), !1;
|
|
1715
1715
|
}
|
|
1716
|
-
function v(I, R, X,
|
|
1717
|
-
var $ = I.charAt(0).toUpperCase() + I.slice(1),
|
|
1718
|
-
return i(R, "string") || i(R, "undefined") ? g(
|
|
1716
|
+
function v(I, R, X, N, V) {
|
|
1717
|
+
var $ = I.charAt(0).toUpperCase() + I.slice(1), G = (I + " " + L.join($ + " ") + $).split(" ");
|
|
1718
|
+
return i(R, "string") || i(R, "undefined") ? g(G, R, N, V) : (G = (I + " " + W.join($ + " ") + $).split(" "), a(G, R, X));
|
|
1719
1719
|
}
|
|
1720
1720
|
var S = [], b = [], x = {
|
|
1721
1721
|
_version: "3.6.0",
|
|
@@ -1752,20 +1752,20 @@ window.PIXI = ja;
|
|
|
1752
1752
|
if (this._l[I]) {
|
|
1753
1753
|
var X = this._l[I];
|
|
1754
1754
|
setTimeout(function() {
|
|
1755
|
-
var
|
|
1756
|
-
for (
|
|
1755
|
+
var N;
|
|
1756
|
+
for (N = 0; N < X.length; N++) X[N](R);
|
|
1757
1757
|
}, 0), delete this._l[I];
|
|
1758
1758
|
}
|
|
1759
1759
|
}, w._q.push(function() {
|
|
1760
1760
|
x.addTest = o;
|
|
1761
1761
|
}), w.addAsyncTest(function() {
|
|
1762
|
-
function I(
|
|
1763
|
-
function
|
|
1764
|
-
var nt = at && at.type === "load" ? Z.width == 1 : !1, st =
|
|
1765
|
-
o(
|
|
1762
|
+
function I(N, V, $) {
|
|
1763
|
+
function G(at) {
|
|
1764
|
+
var nt = at && at.type === "load" ? Z.width == 1 : !1, st = N === "webp";
|
|
1765
|
+
o(N, st && nt ? new Boolean(nt) : nt), $ && $(at);
|
|
1766
1766
|
}
|
|
1767
1767
|
var Z = new Image();
|
|
1768
|
-
Z.onerror =
|
|
1768
|
+
Z.onerror = G, Z.onload = G, Z.src = V;
|
|
1769
1769
|
}
|
|
1770
1770
|
var R = [
|
|
1771
1771
|
{
|
|
@@ -1785,26 +1785,26 @@ window.PIXI = ja;
|
|
|
1785
1785
|
name: "webp.lossless"
|
|
1786
1786
|
}
|
|
1787
1787
|
], X = R.shift();
|
|
1788
|
-
I(X.name, X.uri, function(
|
|
1789
|
-
if (
|
|
1788
|
+
I(X.name, X.uri, function(N) {
|
|
1789
|
+
if (N && N.type === "load") for (var V = 0; V < R.length; V++) I(R[V].name, R[V].uri);
|
|
1790
1790
|
});
|
|
1791
1791
|
});
|
|
1792
1792
|
var M = "Moz O ms Webkit", L = x._config.usePrefixes ? M.split(" ") : [];
|
|
1793
1793
|
x._cssomPrefixes = L;
|
|
1794
1794
|
var D = function(I) {
|
|
1795
|
-
var R, X = prefixes.length,
|
|
1796
|
-
if (typeof
|
|
1795
|
+
var R, X = prefixes.length, N = r.CSSRule;
|
|
1796
|
+
if (typeof N > "u") return t;
|
|
1797
1797
|
if (!I) return !1;
|
|
1798
|
-
if (I = I.replace(/^@/, ""), R = I.replace(/-/g, "_").toUpperCase() + "_RULE", R in
|
|
1798
|
+
if (I = I.replace(/^@/, ""), R = I.replace(/-/g, "_").toUpperCase() + "_RULE", R in N) return "@" + I;
|
|
1799
1799
|
for (var V = 0; X > V; V++) {
|
|
1800
|
-
var $ = prefixes[V],
|
|
1801
|
-
if (
|
|
1800
|
+
var $ = prefixes[V], G = $.toUpperCase() + "_" + R;
|
|
1801
|
+
if (G in N) return "@-" + $.toLowerCase() + "-" + I;
|
|
1802
1802
|
}
|
|
1803
1803
|
return !1;
|
|
1804
1804
|
};
|
|
1805
1805
|
x.atRule = D;
|
|
1806
|
-
var
|
|
1807
|
-
x._domPrefixes =
|
|
1806
|
+
var W = x._config.usePrefixes ? M.toLowerCase().split(" ") : [];
|
|
1807
|
+
x._domPrefixes = W;
|
|
1808
1808
|
var Y = { elem: l("modernizr") };
|
|
1809
1809
|
w._q.push(function() {
|
|
1810
1810
|
delete Y.elem;
|
|
@@ -1864,7 +1864,7 @@ class Tt {
|
|
|
1864
1864
|
* Уничтожить компонент
|
|
1865
1865
|
*/
|
|
1866
1866
|
async destroy() {
|
|
1867
|
-
return
|
|
1867
|
+
return U.clear(this.name), this.instance.parent && this.instance.parent.removeChild(this.instance), this;
|
|
1868
1868
|
}
|
|
1869
1869
|
}
|
|
1870
1870
|
class Ro extends Tt {
|
|
@@ -1949,7 +1949,7 @@ class Bo extends Mi {
|
|
|
1949
1949
|
*/
|
|
1950
1950
|
init() {
|
|
1951
1951
|
const t = Ys(() => this.redraw(), 30), i = Ys(() => this.redraw(), 500);
|
|
1952
|
-
return this.component("grid", new Ro()), window.addEventListener("resize", t.call), window.addEventListener("orientationchange", i.call),
|
|
1952
|
+
return this.component("grid", new Ro()), window.addEventListener("resize", t.call), window.addEventListener("orientationchange", i.call), U.on("fullscreen:on", this.constructor.name, i.call).on("fullscreen:off", this.constructor.name, i.call), this;
|
|
1953
1953
|
}
|
|
1954
1954
|
/**
|
|
1955
1955
|
* Создает зарегистрированные компоненты по ключу
|
|
@@ -1979,7 +1979,7 @@ class Bo extends Mi {
|
|
|
1979
1979
|
const t = document.querySelector(".game"), i = document.querySelector(".game canvas"), { gameMode: n } = it;
|
|
1980
1980
|
it.recalc(), t.style.top = "0px", i.style.width = `${it.width}px`, i.style.height = `${it.height}px`, this.registry().get("renderer").resize(it.width, it.height), this.instance.scale.set(it.gameScale), this.instance.position.set(it.gameInnerLeft, it.gameInnerTop);
|
|
1981
1981
|
const s = it.gameMode !== n;
|
|
1982
|
-
s &&
|
|
1982
|
+
s && U.emit("orientation:change");
|
|
1983
1983
|
for (const [, o] of this._scenes)
|
|
1984
1984
|
!o.hidden && "adaptive" in o && await o.adaptive(s);
|
|
1985
1985
|
for (const [, o] of this._panels)
|
|
@@ -2076,10 +2076,10 @@ class Lo {
|
|
|
2076
2076
|
/** */
|
|
2077
2077
|
_onChange() {
|
|
2078
2078
|
clearTimeout(this._windowFocusTimeout), document.hidden ? this._windowFocusTimeout = setTimeout(() => {
|
|
2079
|
-
this.onBlur && this.onBlur(),
|
|
2079
|
+
this.onBlur && this.onBlur(), zt.ticker.lagSmoothing(0, 0), je.shared.stop(), this._tickerInterval = window.setInterval(() => {
|
|
2080
2080
|
je.shared.update();
|
|
2081
2081
|
}, 30);
|
|
2082
|
-
}, 300) : (this.onFocus && this.onFocus(),
|
|
2082
|
+
}, 300) : (this.onFocus && this.onFocus(), zt.ticker.lagSmoothing(1e3, 16), je.shared.start(), clearInterval(this._tickerInterval));
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
2085
|
class Oo {
|
|
@@ -2113,7 +2113,7 @@ class Oo {
|
|
|
2113
2113
|
start() {
|
|
2114
2114
|
if (!this._isEnabled || this._isActive || !this._isInitialized) return null;
|
|
2115
2115
|
this._tags.forEach((e) => {
|
|
2116
|
-
|
|
2116
|
+
U.emit("skip.tag:active", { tag: e });
|
|
2117
2117
|
}), this._tags.clear(), this._toggleActive(!0);
|
|
2118
2118
|
}
|
|
2119
2119
|
/**
|
|
@@ -2145,16 +2145,16 @@ class Oo {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
/** Переключить возможность скипа */
|
|
2147
2147
|
_toggleEnabled(e) {
|
|
2148
|
-
this._isEnabled = e,
|
|
2148
|
+
this._isEnabled = e, U.emit("skip:enabled", { value: e });
|
|
2149
2149
|
}
|
|
2150
2150
|
/** Переключить состояние скипа */
|
|
2151
2151
|
_toggleActive(e) {
|
|
2152
2152
|
if (this._isActive === e) return null;
|
|
2153
|
-
this._isActive = e,
|
|
2153
|
+
this._isActive = e, U.emit("skip:active", { value: e });
|
|
2154
2154
|
}
|
|
2155
2155
|
/** Включить слушателей */
|
|
2156
2156
|
_startListeners() {
|
|
2157
|
-
|
|
2157
|
+
U.on("skip:enable", this.name, ({ tag: e }) => this.enable(e)).on("skip:disable", this.name, ({ tag: e }) => this.disable(e));
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
2160
|
/*!
|
|
@@ -2176,7 +2176,7 @@ var Fr = function(r, e) {
|
|
|
2176
2176
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
|
|
2177
2177
|
})(r, e);
|
|
2178
2178
|
};
|
|
2179
|
-
function
|
|
2179
|
+
function fe(r, e) {
|
|
2180
2180
|
if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
2181
2181
|
function t() {
|
|
2182
2182
|
this.constructor = r;
|
|
@@ -2217,28 +2217,28 @@ function Mr(r) {
|
|
|
2217
2217
|
}
|
|
2218
2218
|
var xn = Er.filter(function(r) {
|
|
2219
2219
|
return ns[r];
|
|
2220
|
-
}),
|
|
2220
|
+
}), Nn = function() {
|
|
2221
2221
|
function r() {
|
|
2222
2222
|
}
|
|
2223
2223
|
return r.add = function() {
|
|
2224
2224
|
r.setLegacy(Dt().useLegacy);
|
|
2225
2225
|
}, r.setLegacy = function(e) {
|
|
2226
2226
|
e ? xn.forEach(function(t) {
|
|
2227
|
-
|
|
2227
|
+
de.setExtensionXhrType(t, de.XHR_RESPONSE_TYPE.DEFAULT), de.setExtensionLoadType(t, de.LOAD_TYPE.AUDIO);
|
|
2228
2228
|
}) : xn.forEach(function(t) {
|
|
2229
|
-
|
|
2229
|
+
de.setExtensionXhrType(t, de.XHR_RESPONSE_TYPE.BUFFER), de.setExtensionLoadType(t, de.LOAD_TYPE.XHR);
|
|
2230
2230
|
});
|
|
2231
2231
|
}, r.pre = function(e, t) {
|
|
2232
2232
|
Mr(e), t();
|
|
2233
2233
|
}, r.use = function(e, t) {
|
|
2234
2234
|
e.data && xn.indexOf(e.extension) > -1 ? e.sound = Dt().add(e.name, { loaded: t, preload: !0, url: e.url, source: e.data }) : t();
|
|
2235
2235
|
}, r.extension = "loader", r;
|
|
2236
|
-
}(),
|
|
2236
|
+
}(), No = 0, Wo = function(r) {
|
|
2237
2237
|
function e(t) {
|
|
2238
2238
|
var i = r.call(this) || this;
|
|
2239
|
-
return i.id =
|
|
2239
|
+
return i.id = No++, i.init(t), i;
|
|
2240
2240
|
}
|
|
2241
|
-
return
|
|
2241
|
+
return fe(e, r), e.prototype.set = function(t, i) {
|
|
2242
2242
|
if (this[t] === void 0) throw new Error("Property with name ".concat(t, " does not exist."));
|
|
2243
2243
|
switch (t) {
|
|
2244
2244
|
case "speed":
|
|
@@ -2322,10 +2322,10 @@ var xn = Er.filter(function(r) {
|
|
|
2322
2322
|
function e() {
|
|
2323
2323
|
return r !== null && r.apply(this, arguments) || this;
|
|
2324
2324
|
}
|
|
2325
|
-
return
|
|
2325
|
+
return fe(e, r), e.prototype.init = function(t) {
|
|
2326
2326
|
this.parent = t, this._source = t.options.source || new Audio(), t.url && (this._source.src = t.url);
|
|
2327
2327
|
}, e.prototype.create = function() {
|
|
2328
|
-
return new
|
|
2328
|
+
return new Wo(this);
|
|
2329
2329
|
}, Object.defineProperty(e.prototype, "isPlayable", { get: function() {
|
|
2330
2330
|
return !!this._source && this._source.readyState === 4;
|
|
2331
2331
|
}, enumerable: !1, configurable: !0 }), Object.defineProperty(e.prototype, "duration", { get: function() {
|
|
@@ -2390,7 +2390,7 @@ var xn = Er.filter(function(r) {
|
|
|
2390
2390
|
var i = r.call(this) || this;
|
|
2391
2391
|
return i.id = $o++, i._media = null, i._paused = !1, i._muted = !1, i._elapsed = 0, i.init(t), i;
|
|
2392
2392
|
}
|
|
2393
|
-
return
|
|
2393
|
+
return fe(e, r), e.prototype.set = function(t, i) {
|
|
2394
2394
|
if (this[t] === void 0) throw new Error("Property with name ".concat(t, " does not exist."));
|
|
2395
2395
|
switch (t) {
|
|
2396
2396
|
case "speed":
|
|
@@ -2543,7 +2543,7 @@ var xn = Er.filter(function(r) {
|
|
|
2543
2543
|
var i = this, n = t.audioContext, s = n.createBufferSource(), o = n.createGain(), h = n.createAnalyser();
|
|
2544
2544
|
return s.connect(h), h.connect(o), o.connect(t.destination), (i = r.call(this, h, o) || this).context = t, i.bufferSource = s, i.gain = o, i.analyser = h, i;
|
|
2545
2545
|
}
|
|
2546
|
-
return
|
|
2546
|
+
return fe(e, r), Object.defineProperty(e.prototype, "script", { get: function() {
|
|
2547
2547
|
return this._script || (this._script = this.context.audioContext.createScriptProcessor(e.BUFFER_SIZE), this._script.connect(this.context.destination)), this._script;
|
|
2548
2548
|
}, enumerable: !1, configurable: !0 }), e.prototype.destroy = function() {
|
|
2549
2549
|
r.prototype.destroy.call(this), this.bufferSource.disconnect(), this._script && this._script.disconnect(), this.gain.disconnect(), this.analyser.disconnect(), this.bufferSource = null, this._script = null, this.gain = null, this.analyser = null, this.context = null;
|
|
@@ -2603,7 +2603,7 @@ var xn = Er.filter(function(r) {
|
|
|
2603
2603
|
};
|
|
2604
2604
|
e instanceof AudioBuffer ? n(null, e) : this.parent.context.decode(e, n);
|
|
2605
2605
|
}, r;
|
|
2606
|
-
}(),
|
|
2606
|
+
}(), Ws = function() {
|
|
2607
2607
|
function r(e, t) {
|
|
2608
2608
|
this.media = e, this.options = t, this._instances = [], this._sprites = {}, this.media.init(this);
|
|
2609
2609
|
var i = t.complete;
|
|
@@ -2721,7 +2721,7 @@ var xn = Er.filter(function(r) {
|
|
|
2721
2721
|
var t = r !== null && r.apply(this, arguments) || this;
|
|
2722
2722
|
return t.speed = 1, t.muted = !1, t.volume = 1, t.paused = !1, t;
|
|
2723
2723
|
}
|
|
2724
|
-
return
|
|
2724
|
+
return fe(e, r), e.prototype.refresh = function() {
|
|
2725
2725
|
this.emit("refresh");
|
|
2726
2726
|
}, e.prototype.refreshPaused = function() {
|
|
2727
2727
|
this.emit("refreshPaused");
|
|
@@ -2744,7 +2744,7 @@ var xn = Er.filter(function(r) {
|
|
|
2744
2744
|
var i = window, n = new e.AudioContext(), s = n.createDynamicsCompressor(), o = n.createAnalyser();
|
|
2745
2745
|
return o.connect(s), s.connect(n.destination), t._input = o, t._output = n.destination, t._ctx = n, t._offlineCtx = new e.OfflineAudioContext(1, 2, i.OfflineAudioContext ? Math.max(8e3, Math.min(96e3, n.sampleRate)) : 44100), t.compressor = s, t.analyser = o, t.events = new Ji(), t.volume = 1, t.speed = 1, t.muted = !1, t.paused = !1, t._locked = n.state === "suspended" && ("ontouchstart" in globalThis || "onclick" in globalThis), t._locked && (t._unlock(), t._unlock = t._unlock.bind(t), document.addEventListener("mousedown", t._unlock, !0), document.addEventListener("touchstart", t._unlock, !0), document.addEventListener("touchend", t._unlock, !0)), t.onFocus = t.onFocus.bind(t), t.onBlur = t.onBlur.bind(t), globalThis.addEventListener("focus", t.onFocus), globalThis.addEventListener("blur", t.onBlur), t;
|
|
2746
2746
|
}
|
|
2747
|
-
return
|
|
2747
|
+
return fe(e, r), e.prototype.onFocus = function() {
|
|
2748
2748
|
if (this.autoPause) {
|
|
2749
2749
|
var t = this._ctx.state;
|
|
2750
2750
|
t !== "suspended" && t !== "interrupted" && this._locked || (this.paused = this._pausedOnBlur, this.refreshPaused());
|
|
@@ -2813,8 +2813,8 @@ var xn = Er.filter(function(r) {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
return i;
|
|
2815
2815
|
}
|
|
2816
|
-
if (t instanceof
|
|
2817
|
-
var o = this._getOptions(t), h =
|
|
2816
|
+
if (t instanceof Ws) return this._sounds[e] = t, t;
|
|
2817
|
+
var o = this._getOptions(t), h = Ws.from(o);
|
|
2818
2818
|
return this._sounds[e] = h, h;
|
|
2819
2819
|
}, r.prototype._getOptions = function(e, t) {
|
|
2820
2820
|
var i;
|
|
@@ -2822,7 +2822,7 @@ var xn = Er.filter(function(r) {
|
|
|
2822
2822
|
}, Object.defineProperty(r.prototype, "useLegacy", { get: function() {
|
|
2823
2823
|
return this._useLegacy;
|
|
2824
2824
|
}, set: function(e) {
|
|
2825
|
-
|
|
2825
|
+
Nn.setLegacy(e), this._useLegacy = e, this._context = !e && this.supported ? this._webAudioContext : this._htmlAudioContext;
|
|
2826
2826
|
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "disableAutoPause", { get: function() {
|
|
2827
2827
|
return !this._webAudioContext.autoPause;
|
|
2828
2828
|
}, set: function(e) {
|
|
@@ -2878,7 +2878,7 @@ var xn = Er.filter(function(r) {
|
|
|
2878
2878
|
}, r.prototype.close = function() {
|
|
2879
2879
|
return this.removeAll(), this._sounds = null, this._webAudioContext && (this._webAudioContext.destroy(), this._webAudioContext = null), this._htmlAudioContext && (this._htmlAudioContext.destroy(), this._htmlAudioContext = null), this._context = null, this;
|
|
2880
2880
|
}, r;
|
|
2881
|
-
}(),
|
|
2881
|
+
}(), ui = function() {
|
|
2882
2882
|
function r(e, t) {
|
|
2883
2883
|
this.init(e, t);
|
|
2884
2884
|
}
|
|
@@ -2910,7 +2910,7 @@ var xn = Er.filter(function(r) {
|
|
|
2910
2910
|
}
|
|
2911
2911
|
c = r.call(this, null) || this;
|
|
2912
2912
|
}
|
|
2913
|
-
return
|
|
2913
|
+
return fe(e, r), e.prototype.setGain = function(t, i) {
|
|
2914
2914
|
if (i === void 0 && (i = 0), !this.bandsMap[t]) throw new Error("No band found for frequency ".concat(t));
|
|
2915
2915
|
_e.setParamValue(this.bandsMap[t].gain, i);
|
|
2916
2916
|
}, e.prototype.getGain = function(t) {
|
|
@@ -2965,7 +2965,7 @@ var xn = Er.filter(function(r) {
|
|
|
2965
2965
|
t.disconnect();
|
|
2966
2966
|
}), this.bands = null, this.bandsMap = null;
|
|
2967
2967
|
}, e.F32 = 32, e.F64 = 64, e.F125 = 125, e.F250 = 250, e.F500 = 500, e.F1K = 1e3, e.F2K = 2e3, e.F4K = 4e3, e.F8K = 8e3, e.F16K = 16e3, e;
|
|
2968
|
-
})(
|
|
2968
|
+
})(ui), function(r) {
|
|
2969
2969
|
function e(t) {
|
|
2970
2970
|
t === void 0 && (t = 0);
|
|
2971
2971
|
var i = this;
|
|
@@ -2975,7 +2975,7 @@ var xn = Er.filter(function(r) {
|
|
|
2975
2975
|
}
|
|
2976
2976
|
i = r.call(this, null) || this;
|
|
2977
2977
|
}
|
|
2978
|
-
return
|
|
2978
|
+
return fe(e, r), Object.defineProperty(e.prototype, "amount", { get: function() {
|
|
2979
2979
|
return this._amount;
|
|
2980
2980
|
}, set: function(t) {
|
|
2981
2981
|
this._amount = t;
|
|
@@ -2984,7 +2984,7 @@ var xn = Er.filter(function(r) {
|
|
|
2984
2984
|
}, enumerable: !1, configurable: !0 }), e.prototype.destroy = function() {
|
|
2985
2985
|
this._distortion = null, r.prototype.destroy.call(this);
|
|
2986
2986
|
}, e;
|
|
2987
|
-
}(
|
|
2987
|
+
}(ui), function(r) {
|
|
2988
2988
|
function e(t) {
|
|
2989
2989
|
t === void 0 && (t = 0);
|
|
2990
2990
|
var i = this;
|
|
@@ -2994,21 +2994,21 @@ var xn = Er.filter(function(r) {
|
|
|
2994
2994
|
}
|
|
2995
2995
|
i = r.call(this, null) || this;
|
|
2996
2996
|
}
|
|
2997
|
-
return
|
|
2997
|
+
return fe(e, r), Object.defineProperty(e.prototype, "pan", { get: function() {
|
|
2998
2998
|
return this._pan;
|
|
2999
2999
|
}, set: function(t) {
|
|
3000
3000
|
this._pan = t, this._stereo ? _e.setParamValue(this._stereo.pan, t) : this._panner.setPosition(t, 0, 1 - Math.abs(t));
|
|
3001
3001
|
}, enumerable: !1, configurable: !0 }), e.prototype.destroy = function() {
|
|
3002
3002
|
r.prototype.destroy.call(this), this._stereo = null, this._panner = null;
|
|
3003
3003
|
}, e;
|
|
3004
|
-
}(
|
|
3004
|
+
}(ui), function(r) {
|
|
3005
3005
|
function e(t, i, n) {
|
|
3006
3006
|
t === void 0 && (t = 3), i === void 0 && (i = 2), n === void 0 && (n = !1);
|
|
3007
3007
|
var s = this;
|
|
3008
3008
|
if (!Dt().useLegacy) return (s = r.call(this, null) || this)._seconds = s._clamp(t, 1, 50), s._decay = s._clamp(i, 0, 100), s._reverse = n, s._rebuild(), s;
|
|
3009
3009
|
s = r.call(this, null) || this;
|
|
3010
3010
|
}
|
|
3011
|
-
return
|
|
3011
|
+
return fe(e, r), e.prototype._clamp = function(t, i, n) {
|
|
3012
3012
|
return Math.min(n, Math.max(i, t));
|
|
3013
3013
|
}, Object.defineProperty(e.prototype, "seconds", { get: function() {
|
|
3014
3014
|
return this._seconds;
|
|
@@ -3027,7 +3027,7 @@ var xn = Er.filter(function(r) {
|
|
|
3027
3027
|
var f = Dt().context.audioContext.createConvolver();
|
|
3028
3028
|
f.buffer = o, this.init(f);
|
|
3029
3029
|
}, e;
|
|
3030
|
-
}(
|
|
3030
|
+
}(ui), function(r) {
|
|
3031
3031
|
function e() {
|
|
3032
3032
|
var t = this;
|
|
3033
3033
|
if (!Dt().useLegacy) {
|
|
@@ -3036,10 +3036,10 @@ var xn = Er.filter(function(r) {
|
|
|
3036
3036
|
}
|
|
3037
3037
|
t = r.call(this, null) || this;
|
|
3038
3038
|
}
|
|
3039
|
-
return
|
|
3039
|
+
return fe(e, r), e.prototype.destroy = function() {
|
|
3040
3040
|
this._merger.disconnect(), this._merger = null, r.prototype.destroy.call(this);
|
|
3041
3041
|
}, e;
|
|
3042
|
-
}(
|
|
3042
|
+
}(ui), function(r) {
|
|
3043
3043
|
function e() {
|
|
3044
3044
|
var t = this;
|
|
3045
3045
|
if (!Dt().useLegacy) {
|
|
@@ -3048,12 +3048,12 @@ var xn = Er.filter(function(r) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
t = r.call(this, null) || this;
|
|
3050
3050
|
}
|
|
3051
|
-
return
|
|
3051
|
+
return fe(e, r), Object.defineProperty(e.prototype, "stream", { get: function() {
|
|
3052
3052
|
return this._stream;
|
|
3053
3053
|
}, enumerable: !1, configurable: !0 }), e.prototype.destroy = function() {
|
|
3054
3054
|
this._stream = null, r.prototype.destroy.call(this);
|
|
3055
3055
|
}, e;
|
|
3056
|
-
}(
|
|
3056
|
+
}(ui), function(r) {
|
|
3057
3057
|
function e() {
|
|
3058
3058
|
if (!Dt().useLegacy) {
|
|
3059
3059
|
var t = Dt().context.audioContext, i = t.createBiquadFilter(), n = t.createBiquadFilter(), s = t.createBiquadFilter(), o = t.createBiquadFilter();
|
|
@@ -3061,18 +3061,18 @@ var xn = Er.filter(function(r) {
|
|
|
3061
3061
|
}
|
|
3062
3062
|
r.call(this, null);
|
|
3063
3063
|
}
|
|
3064
|
-
return
|
|
3065
|
-
}(
|
|
3066
|
-
var
|
|
3064
|
+
return fe(e, r), e;
|
|
3065
|
+
}(ui);
|
|
3066
|
+
var Ni = function(r) {
|
|
3067
3067
|
return Pr = r, r;
|
|
3068
3068
|
}(new qo());
|
|
3069
|
-
"extensions" in qa ? za.add(
|
|
3070
|
-
function
|
|
3071
|
-
return e = Object.assign({ duration: 1, delay: 0 }, e), t &&
|
|
3069
|
+
"extensions" in qa ? za.add(Nn) : Zn.registerPlugin(Nn);
|
|
3070
|
+
function re(r, e, t = !0) {
|
|
3071
|
+
return e = Object.assign({ duration: 1, delay: 0 }, e), t && zt.killTweensOf(r), zt.to(r, e);
|
|
3072
3072
|
}
|
|
3073
3073
|
const Sn = /* @__PURE__ */ new Map();
|
|
3074
|
-
function
|
|
3075
|
-
const t =
|
|
3074
|
+
function Gt(r, e) {
|
|
3075
|
+
const t = zt.timeline(e);
|
|
3076
3076
|
return r && (Sn.has(r) && Sn.get(r).kill(), Sn.set(r, t)), t;
|
|
3077
3077
|
}
|
|
3078
3078
|
class zo {
|
|
@@ -3089,11 +3089,11 @@ class zo {
|
|
|
3089
3089
|
}
|
|
3090
3090
|
/** Глобальная громкость */
|
|
3091
3091
|
set sounds(e) {
|
|
3092
|
-
|
|
3092
|
+
Ni.volumeAll !== e && (Ni.volumeAll = e, e ? Ni.unmuteAll() : Ni.muteAll());
|
|
3093
3093
|
}
|
|
3094
3094
|
/** Глобальная громкость */
|
|
3095
3095
|
get sounds() {
|
|
3096
|
-
return
|
|
3096
|
+
return Ni.volumeAll;
|
|
3097
3097
|
}
|
|
3098
3098
|
/** Включена ли музыка */
|
|
3099
3099
|
get ambience() {
|
|
@@ -3158,7 +3158,7 @@ class zo {
|
|
|
3158
3158
|
var h;
|
|
3159
3159
|
const s = (h = this._getSound(t)) == null ? void 0 : h.sprites[t.name];
|
|
3160
3160
|
if (!s) return;
|
|
3161
|
-
const o =
|
|
3161
|
+
const o = Gt(`loop.timeline.${e}`, {
|
|
3162
3162
|
repeat: -1,
|
|
3163
3163
|
onRepeat: () => this.stop(t, e) && this.play(t, e),
|
|
3164
3164
|
onStart: () => {
|
|
@@ -3167,11 +3167,11 @@ class zo {
|
|
|
3167
3167
|
in: this._getKey(t, e),
|
|
3168
3168
|
out: l ? this._getKey(l.sample, e) : null
|
|
3169
3169
|
}, a = l && this._singleTracks.has(f.out) ? this._singleTracks.get(f.out) : { instance: { volume: this._values[t.type] } }, c = this._singleTracks.get(f.in);
|
|
3170
|
-
c !== a && (c.instance.volume = u.vIn,
|
|
3170
|
+
c !== a && (c.instance.volume = u.vIn, re(u, {
|
|
3171
3171
|
vIn: n === 0 ? 0 : this._values[t.type],
|
|
3172
3172
|
vOut: 0,
|
|
3173
3173
|
duration: i,
|
|
3174
|
-
ease:
|
|
3174
|
+
ease: me.inOut,
|
|
3175
3175
|
onUpdate: () => {
|
|
3176
3176
|
c.instance.volume = u.vIn, a.instance.volume = u.vOut;
|
|
3177
3177
|
},
|
|
@@ -3181,7 +3181,7 @@ class zo {
|
|
|
3181
3181
|
this._loopTracks.set(e, { sound: s, timeline: o, sample: t, crossfade: i });
|
|
3182
3182
|
}
|
|
3183
3183
|
});
|
|
3184
|
-
return o.call(() =>
|
|
3184
|
+
return o.call(() => U.emit("start.loop", { track: e, sample: t })), o.call(() => U.emit("end.loop", { track: e, sample: t }), [], s.duration), o;
|
|
3185
3185
|
}
|
|
3186
3186
|
/**
|
|
3187
3187
|
* Все текущие треки в состоянии loop запустить заново,
|
|
@@ -3201,10 +3201,10 @@ class zo {
|
|
|
3201
3201
|
const o = {
|
|
3202
3202
|
volume: s ? s.instance.volume : 0
|
|
3203
3203
|
};
|
|
3204
|
-
await
|
|
3204
|
+
await re(o, {
|
|
3205
3205
|
volume: 0,
|
|
3206
3206
|
duration: t,
|
|
3207
|
-
ease:
|
|
3207
|
+
ease: me.in,
|
|
3208
3208
|
onUpdate: () => {
|
|
3209
3209
|
s && (s.instance.volume = o.volume);
|
|
3210
3210
|
},
|
|
@@ -3341,13 +3341,13 @@ class Jc extends Mi {
|
|
|
3341
3341
|
*/
|
|
3342
3342
|
start() {
|
|
3343
3343
|
const t = document.querySelector(".wrapper");
|
|
3344
|
-
return
|
|
3344
|
+
return U.emit("engine:start", this), this.driver.start(), t instanceof HTMLElement && (t.style.display = "block"), this.driver;
|
|
3345
3345
|
}
|
|
3346
3346
|
/**
|
|
3347
3347
|
* Остановка приложения
|
|
3348
3348
|
*/
|
|
3349
3349
|
stop() {
|
|
3350
|
-
return
|
|
3350
|
+
return U.emit("engine:stop", this), this.driver.stop(), this.driver;
|
|
3351
3351
|
}
|
|
3352
3352
|
/**
|
|
3353
3353
|
* Регистрация событий
|
|
@@ -3356,7 +3356,7 @@ class Jc extends Mi {
|
|
|
3356
3356
|
registerRendererEvents(t) {
|
|
3357
3357
|
return t.map((i) => {
|
|
3358
3358
|
this.driver.renderer.plugins.interaction.on(i, (n) => {
|
|
3359
|
-
|
|
3359
|
+
U.emit("renderer:event", { eventType: i, event: n });
|
|
3360
3360
|
});
|
|
3361
3361
|
}), this;
|
|
3362
3362
|
}
|
|
@@ -3375,34 +3375,34 @@ class Jc extends Mi {
|
|
|
3375
3375
|
if (this._pressedKeys.get(t)) return null;
|
|
3376
3376
|
switch (this._pressedKeys.set(t, !0), t) {
|
|
3377
3377
|
case 32:
|
|
3378
|
-
return
|
|
3378
|
+
return U.emit("space:down");
|
|
3379
3379
|
case 13:
|
|
3380
|
-
return
|
|
3380
|
+
return U.emit("enter:down");
|
|
3381
3381
|
}
|
|
3382
3382
|
}
|
|
3383
3383
|
/** Обработка отжатия кнопок */
|
|
3384
3384
|
async _emitKeyUp(t) {
|
|
3385
3385
|
switch (this._pressedKeys.set(t, !1), t) {
|
|
3386
3386
|
case 8:
|
|
3387
|
-
return
|
|
3387
|
+
return U.emit("backspace:press");
|
|
3388
3388
|
case 13:
|
|
3389
|
-
return
|
|
3389
|
+
return U.emit("enter:press");
|
|
3390
3390
|
case 16:
|
|
3391
|
-
return
|
|
3391
|
+
return U.emit("shift:press");
|
|
3392
3392
|
case 17:
|
|
3393
|
-
return
|
|
3393
|
+
return U.emit("control:press");
|
|
3394
3394
|
case 18:
|
|
3395
|
-
return
|
|
3395
|
+
return U.emit("alt:press");
|
|
3396
3396
|
case 32:
|
|
3397
|
-
return
|
|
3397
|
+
return U.emit("space:press");
|
|
3398
3398
|
case 107:
|
|
3399
|
-
return
|
|
3399
|
+
return U.emit("pad.plus:press");
|
|
3400
3400
|
case 109:
|
|
3401
|
-
return
|
|
3401
|
+
return U.emit("pad.minus:press");
|
|
3402
3402
|
case 187:
|
|
3403
|
-
return
|
|
3403
|
+
return U.emit("plus:press");
|
|
3404
3404
|
case 189:
|
|
3405
|
-
return
|
|
3405
|
+
return U.emit("minus:press");
|
|
3406
3406
|
}
|
|
3407
3407
|
}
|
|
3408
3408
|
}
|
|
@@ -3516,13 +3516,13 @@ class tu {
|
|
|
3516
3516
|
}
|
|
3517
3517
|
/** on loading start */
|
|
3518
3518
|
start() {
|
|
3519
|
-
|
|
3519
|
+
U.on("pixi.loader:progress", this.name, ({ progress: e, tag: t }) => {
|
|
3520
3520
|
t === this._tag && (this._filler.style.width = `${e}%`);
|
|
3521
3521
|
});
|
|
3522
3522
|
}
|
|
3523
3523
|
/** on loading end */
|
|
3524
3524
|
end() {
|
|
3525
|
-
|
|
3525
|
+
U.clear(this.name), this._loader.style.opacity = "0", this._game.style.opacity = "1";
|
|
3526
3526
|
}
|
|
3527
3527
|
}
|
|
3528
3528
|
let Jo = class Br extends gr {
|
|
@@ -3538,17 +3538,17 @@ let Jo = class Br extends gr {
|
|
|
3538
3538
|
}
|
|
3539
3539
|
/** */
|
|
3540
3540
|
async play(e = 0, t = !1) {
|
|
3541
|
-
return e > 0 && await
|
|
3541
|
+
return e > 0 && await yi(e), new Promise((i) => {
|
|
3542
3542
|
t && this.gotoAndStop(0), this.onComplete = () => {
|
|
3543
|
-
|
|
3543
|
+
U.emit("sequence.complete"), this.onComplete = null, i();
|
|
3544
3544
|
}, this.visible = !0, super.play();
|
|
3545
3545
|
});
|
|
3546
3546
|
}
|
|
3547
3547
|
/** */
|
|
3548
3548
|
async playto(e, t = 0, i = 0) {
|
|
3549
|
-
return i > 0 && await
|
|
3549
|
+
return i > 0 && await yi(i), new Promise((n) => {
|
|
3550
3550
|
this.onFrameChange = () => {
|
|
3551
|
-
this.currentFrame === e && (this.stop(),
|
|
3551
|
+
this.currentFrame === e && (this.stop(), U.emit("sequence.stop", { frame: this.currentFrame }), this.onFrameChange = null, n());
|
|
3552
3552
|
}, this.visible = !0, super.gotoAndPlay(t);
|
|
3553
3553
|
});
|
|
3554
3554
|
}
|
|
@@ -3592,7 +3592,7 @@ class Zo {
|
|
|
3592
3592
|
t && this._callbacksFast.add(t), i && this._callbacksSkip.add(i), await e(), t && this._callbacksFast.delete(t), i && this._callbacksSkip.delete(i);
|
|
3593
3593
|
}
|
|
3594
3594
|
}
|
|
3595
|
-
const
|
|
3595
|
+
const Wi = new Zo(), Si = {
|
|
3596
3596
|
music: "music",
|
|
3597
3597
|
samples: "samples",
|
|
3598
3598
|
dealer: "dealer"
|
|
@@ -3739,10 +3739,10 @@ var De;
|
|
|
3739
3739
|
(function(r) {
|
|
3740
3740
|
r[r.Fixed = 0] = "Fixed", r[r.Percent = 1] = "Percent";
|
|
3741
3741
|
})(De || (De = {}));
|
|
3742
|
-
var
|
|
3742
|
+
var _i;
|
|
3743
3743
|
(function(r) {
|
|
3744
3744
|
r[r.Tangent = 0] = "Tangent", r[r.Chain = 1] = "Chain", r[r.ChainScale = 2] = "ChainScale";
|
|
3745
|
-
})(
|
|
3745
|
+
})(_i || (_i = {}));
|
|
3746
3746
|
var se;
|
|
3747
3747
|
(function(r) {
|
|
3748
3748
|
r[r.Normal = 0] = "Normal", r[r.OnlyTranslation = 1] = "OnlyTranslation", r[r.NoRotationOrReflection = 2] = "NoRotationOrReflection", r[r.NoScale = 3] = "NoScale", r[r.NoScaleOrReflection = 4] = "NoScaleOrReflection";
|
|
@@ -3761,17 +3761,17 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
3761
3761
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3762
3762
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3763
3763
|
***************************************************************************** */
|
|
3764
|
-
var
|
|
3765
|
-
return
|
|
3764
|
+
var Wn = function(r, e) {
|
|
3765
|
+
return Wn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
|
|
3766
3766
|
t.__proto__ = i;
|
|
3767
3767
|
} || function(t, i) {
|
|
3768
3768
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
|
|
3769
|
-
},
|
|
3769
|
+
}, Wn(r, e);
|
|
3770
3770
|
};
|
|
3771
3771
|
function Ii(r, e) {
|
|
3772
3772
|
if (typeof e != "function" && e !== null)
|
|
3773
3773
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
3774
|
-
|
|
3774
|
+
Wn(r, e);
|
|
3775
3775
|
function t() {
|
|
3776
3776
|
this.constructor = r;
|
|
3777
3777
|
}
|
|
@@ -4023,7 +4023,7 @@ var Xn = (
|
|
|
4023
4023
|
var b = h.baseTexture.resolution;
|
|
4024
4024
|
l.x /= b, l.y /= b, l.width /= b, l.height /= b, l.originalWidth /= b, l.originalHeight /= b, l.offsetX /= b, l.offsetY /= b;
|
|
4025
4025
|
var x = l.rotate % 4 !== 0, w = new an(l.x, l.y, x ? l.height : l.width, x ? l.width : l.height), k = new an(0, 0, l.originalWidth, l.originalHeight), F = new an(l.offsetX, l.originalHeight - l.height - l.offsetY, l.width, l.height);
|
|
4026
|
-
p.texture = new
|
|
4026
|
+
p.texture = new wi(p.page.baseTexture, w, k, F, l.rotate), p.index = l.index, p.texture.updateUvs(), n.regions.push(p);
|
|
4027
4027
|
}
|
|
4028
4028
|
}
|
|
4029
4029
|
};
|
|
@@ -4435,7 +4435,7 @@ var tt = (
|
|
|
4435
4435
|
return this._autoUpdate;
|
|
4436
4436
|
},
|
|
4437
4437
|
set: function(t) {
|
|
4438
|
-
t !== this._autoUpdate && (this._autoUpdate = t, this.updateTransform = t ? e.prototype.autoUpdateTransform :
|
|
4438
|
+
t !== this._autoUpdate && (this._autoUpdate = t, this.updateTransform = t ? e.prototype.autoUpdateTransform : gi.prototype.updateTransform);
|
|
4439
4439
|
},
|
|
4440
4440
|
enumerable: !1,
|
|
4441
4441
|
configurable: !0
|
|
@@ -4537,13 +4537,13 @@ var tt = (
|
|
|
4537
4537
|
}
|
|
4538
4538
|
d.alpha = a.color.a;
|
|
4539
4539
|
}
|
|
4540
|
-
for (var L = this.skeleton.drawOrder, D = null,
|
|
4540
|
+
for (var L = this.skeleton.drawOrder, D = null, W = null, l = 0, f = L.length; l < f; l++) {
|
|
4541
4541
|
var a = s[L[l].data.index], d = this.slotContainers[L[l].data.index];
|
|
4542
|
-
if (
|
|
4543
|
-
|
|
4544
|
-
else if (
|
|
4542
|
+
if (W || d.parent !== null && d.parent !== this && (d.parent.removeChild(d), d.parent = this), a.currentGraphics && a.getAttachment())
|
|
4543
|
+
W = a.clippingContainer, D = a.getAttachment(), W.children.length = 0, this.children[l] = d, D.endSlot === a.data && (D.endSlot = null);
|
|
4544
|
+
else if (W) {
|
|
4545
4545
|
var Y = this.tempClipContainers[l];
|
|
4546
|
-
Y || (Y = this.tempClipContainers[l] = this.newContainer(), Y.visible = !1), this.children[l] = Y, d.parent = null,
|
|
4546
|
+
Y || (Y = this.tempClipContainers[l] = this.newContainer(), Y.visible = !1), this.children[l] = Y, d.parent = null, W.addChild(d), D.endSlot == a.data && (W.renderable = !0, W = null, D = null);
|
|
4547
4547
|
} else
|
|
4548
4548
|
this.children[l] = d;
|
|
4549
4549
|
}
|
|
@@ -4559,7 +4559,7 @@ var tt = (
|
|
|
4559
4559
|
var t = (Date.now() - this.lastTime) * 1e-3;
|
|
4560
4560
|
this.lastTime = Date.now(), this.update(t);
|
|
4561
4561
|
}
|
|
4562
|
-
|
|
4562
|
+
gi.prototype.updateTransform.call(this);
|
|
4563
4563
|
}, e.prototype.createSprite = function(t, i, n) {
|
|
4564
4564
|
var s = i.region;
|
|
4565
4565
|
t.hackAttachment === i && (s = t.hackRegion);
|
|
@@ -4601,7 +4601,7 @@ var tt = (
|
|
|
4601
4601
|
}
|
|
4602
4602
|
return !1;
|
|
4603
4603
|
}, e.prototype.newContainer = function() {
|
|
4604
|
-
return new
|
|
4604
|
+
return new gi();
|
|
4605
4605
|
}, e.prototype.newSprite = function(t) {
|
|
4606
4606
|
return new cl(t);
|
|
4607
4607
|
}, e.prototype.newGraphics = function() {
|
|
@@ -4633,7 +4633,7 @@ var tt = (
|
|
|
4633
4633
|
this.slotContainers[i].destroy(t);
|
|
4634
4634
|
this.spineData = null, this.skeleton = null, this.slotContainers = null, this.stateData = null, this.state = null, this.tempClipContainers = null, r.prototype.destroy.call(this, t);
|
|
4635
4635
|
}, e.clippingPolygon = [], e;
|
|
4636
|
-
}(
|
|
4636
|
+
}(gi)
|
|
4637
4637
|
);
|
|
4638
4638
|
Object.defineProperty(Dr.prototype, "visible", {
|
|
4639
4639
|
get: function() {
|
|
@@ -4644,12 +4644,12 @@ Object.defineProperty(Dr.prototype, "visible", {
|
|
|
4644
4644
|
}
|
|
4645
4645
|
});
|
|
4646
4646
|
function dl(r) {
|
|
4647
|
-
return r.type ===
|
|
4647
|
+
return r.type === de.TYPE.JSON;
|
|
4648
4648
|
}
|
|
4649
4649
|
function fl(r) {
|
|
4650
|
-
return r.xhrType ===
|
|
4650
|
+
return r.xhrType === de.XHR_RESPONSE_TYPE.BUFFER;
|
|
4651
4651
|
}
|
|
4652
|
-
|
|
4652
|
+
de.setExtensionXhrType("skel", de.XHR_RESPONSE_TYPE.BUFFER);
|
|
4653
4653
|
var pl = (
|
|
4654
4654
|
/** @class */
|
|
4655
4655
|
function() {
|
|
@@ -4677,7 +4677,7 @@ var pl = (
|
|
|
4677
4677
|
d > 0 && (c = c.substr(0, d)), c = c.substr(0, c.lastIndexOf(".")) + a, u.spineAtlasFile && (c = u.spineAtlasFile), c = c.replace(this.baseUrl, "");
|
|
4678
4678
|
var p = {
|
|
4679
4679
|
crossOrigin: t.crossOrigin,
|
|
4680
|
-
xhrType:
|
|
4680
|
+
xhrType: de.XHR_RESPONSE_TYPE.TEXT,
|
|
4681
4681
|
metadata: u.spineMetadata || null,
|
|
4682
4682
|
parentResource: t
|
|
4683
4683
|
}, m = {
|
|
@@ -4788,21 +4788,21 @@ var Yr = (
|
|
|
4788
4788
|
var L = u.bones;
|
|
4789
4789
|
if (l.length == 0)
|
|
4790
4790
|
for (var b = o, _ = F * 3; b < n; b += h) {
|
|
4791
|
-
var D = 0,
|
|
4791
|
+
var D = 0, W = 0, M = a[k++];
|
|
4792
4792
|
for (M += k; k < M; k++, _ += 3) {
|
|
4793
4793
|
var c = L[a[k]].matrix, x = f[_], w = f[_ + 1], Y = f[_ + 2];
|
|
4794
|
-
D += (x * c.a + w * c.c + c.tx) * Y,
|
|
4794
|
+
D += (x * c.a + w * c.c + c.tx) * Y, W += (x * c.b + w * c.d + c.ty) * Y;
|
|
4795
4795
|
}
|
|
4796
|
-
s[b] = D, s[b + 1] =
|
|
4796
|
+
s[b] = D, s[b + 1] = W;
|
|
4797
4797
|
}
|
|
4798
4798
|
else
|
|
4799
4799
|
for (var K = l, b = o, _ = F * 3, z = F << 1; b < n; b += h) {
|
|
4800
|
-
var D = 0,
|
|
4800
|
+
var D = 0, W = 0, M = a[k++];
|
|
4801
4801
|
for (M += k; k < M; k++, _ += 3, z += 2) {
|
|
4802
4802
|
var c = L[a[k]].matrix, x = f[_] + K[z], w = f[_ + 1] + K[z + 1], Y = f[_ + 2];
|
|
4803
|
-
D += (x * c.a + w * c.c + c.tx) * Y,
|
|
4803
|
+
D += (x * c.a + w * c.c + c.tx) * Y, W += (x * c.b + w * c.d + c.ty) * Y;
|
|
4804
4804
|
}
|
|
4805
|
-
s[b] = D, s[b + 1] =
|
|
4805
|
+
s[b] = D, s[b + 1] = W;
|
|
4806
4806
|
}
|
|
4807
4807
|
}, e.prototype.copyTo = function(t) {
|
|
4808
4808
|
this.bones ? (t.bones = new Array(this.bones.length), tt.arrayCopy(this.bones, 0, t.bones, 0, this.bones.length)) : t.bones = null, this.vertices && (t.vertices = tt.newFloatArray(this.vertices.length), tt.arrayCopy(this.vertices, 0, t.vertices, 0, this.vertices.length)), t.worldVerticesLength = this.worldVerticesLength, t.timelineAttachment = this.timelineAttachment;
|
|
@@ -4890,7 +4890,7 @@ var Yr = (
|
|
|
4890
4890
|
return t.x = this.x, t.y = this.y, t.rotation = this.rotation, t.color.setFromColor(this.color), t;
|
|
4891
4891
|
}, e;
|
|
4892
4892
|
}(Ke)
|
|
4893
|
-
),
|
|
4893
|
+
), Nr = (
|
|
4894
4894
|
/** @class */
|
|
4895
4895
|
function(r) {
|
|
4896
4896
|
lt(e, r);
|
|
@@ -4914,7 +4914,7 @@ var Yr = (
|
|
|
4914
4914
|
return t.region = this.region, t.rendererObject = this.rendererObject, t.x = this.x, t.y = this.y, t.scaleX = this.scaleX, t.scaleY = this.scaleY, t.rotation = this.rotation, t.width = this.width, t.height = this.height, tt.arrayCopy(this.uvs, 0, t.uvs, 0, 8), tt.arrayCopy(this.offset, 0, t.offset, 0, 8), t.color.setFromColor(this.color), t.sequence = this.sequence != null ? this.sequence.copy() : null, t;
|
|
4915
4915
|
}, e.X1 = 0, e.Y1 = 1, e.C1R = 2, e.C1G = 3, e.C1B = 4, e.C1A = 5, e.U1 = 6, e.V1 = 7, e.X2 = 8, e.Y2 = 9, e.C2R = 10, e.C2G = 11, e.C2B = 12, e.C2A = 13, e.U2 = 14, e.V2 = 15, e.X3 = 16, e.Y3 = 17, e.C3R = 18, e.C3G = 19, e.C3B = 20, e.C3A = 21, e.U3 = 22, e.V3 = 23, e.X4 = 24, e.Y4 = 25, e.C4R = 26, e.C4G = 27, e.C4B = 28, e.C4A = 29, e.U4 = 30, e.V4 = 31, e;
|
|
4916
4916
|
}(Yr)
|
|
4917
|
-
),
|
|
4917
|
+
), Wr = (
|
|
4918
4918
|
/** @class */
|
|
4919
4919
|
function() {
|
|
4920
4920
|
function r(e) {
|
|
@@ -4936,18 +4936,18 @@ var Yr = (
|
|
|
4936
4936
|
return r._nextID++;
|
|
4937
4937
|
}, r._nextID = 0, r;
|
|
4938
4938
|
}()
|
|
4939
|
-
),
|
|
4939
|
+
), qt;
|
|
4940
4940
|
(function(r) {
|
|
4941
4941
|
r[r.hold = 0] = "hold", r[r.once = 1] = "once", r[r.loop = 2] = "loop", r[r.pingpong = 3] = "pingpong", r[r.onceReverse = 4] = "onceReverse", r[r.loopReverse = 5] = "loopReverse", r[r.pingpongReverse = 6] = "pingpongReverse";
|
|
4942
|
-
})(
|
|
4942
|
+
})(qt || (qt = {}));
|
|
4943
4943
|
var Xr = [
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4944
|
+
qt.hold,
|
|
4945
|
+
qt.once,
|
|
4946
|
+
qt.loop,
|
|
4947
|
+
qt.pingpong,
|
|
4948
|
+
qt.onceReverse,
|
|
4949
|
+
qt.loopReverse,
|
|
4950
|
+
qt.pingpongReverse
|
|
4951
4951
|
], rs = (
|
|
4952
4952
|
/** @class */
|
|
4953
4953
|
function() {
|
|
@@ -6505,24 +6505,24 @@ var Xr = [
|
|
|
6505
6505
|
}
|
|
6506
6506
|
return;
|
|
6507
6507
|
}
|
|
6508
|
-
var D = Bt.search1(p, n),
|
|
6508
|
+
var D = Bt.search1(p, n), W = this.getCurvePercent(n, D), Y = c[D], K = c[D + 1];
|
|
6509
6509
|
if (o == 1)
|
|
6510
6510
|
if (h == E.add) {
|
|
6511
6511
|
var m = f;
|
|
6512
6512
|
if (m.bones)
|
|
6513
6513
|
for (var I = 0; I < d; I++) {
|
|
6514
6514
|
var q = Y[I];
|
|
6515
|
-
a[I] += q + (K[I] - q) *
|
|
6515
|
+
a[I] += q + (K[I] - q) * W;
|
|
6516
6516
|
}
|
|
6517
6517
|
else
|
|
6518
6518
|
for (var _ = m.vertices, z = 0; z < d; z++) {
|
|
6519
6519
|
var q = Y[z];
|
|
6520
|
-
a[z] += q + (K[z] - q) *
|
|
6520
|
+
a[z] += q + (K[z] - q) * W - _[z];
|
|
6521
6521
|
}
|
|
6522
6522
|
} else
|
|
6523
6523
|
for (var R = 0; R < d; R++) {
|
|
6524
6524
|
var q = Y[R];
|
|
6525
|
-
a[R] = q + (K[R] - q) *
|
|
6525
|
+
a[R] = q + (K[R] - q) * W;
|
|
6526
6526
|
}
|
|
6527
6527
|
else
|
|
6528
6528
|
switch (h) {
|
|
@@ -6531,12 +6531,12 @@ var Xr = [
|
|
|
6531
6531
|
if (X.bones)
|
|
6532
6532
|
for (var V = 0; V < d; V++) {
|
|
6533
6533
|
var q = Y[V];
|
|
6534
|
-
a[V] = (q + (K[V] - q) *
|
|
6534
|
+
a[V] = (q + (K[V] - q) * W) * o;
|
|
6535
6535
|
}
|
|
6536
6536
|
else
|
|
6537
|
-
for (var _ = X.vertices,
|
|
6538
|
-
var q = Y[
|
|
6539
|
-
a[
|
|
6537
|
+
for (var _ = X.vertices, N = 0; N < d; N++) {
|
|
6538
|
+
var q = Y[N], k = _[N];
|
|
6539
|
+
a[N] = k + (q + (K[N] - q) * W - k) * o;
|
|
6540
6540
|
}
|
|
6541
6541
|
break;
|
|
6542
6542
|
}
|
|
@@ -6544,7 +6544,7 @@ var Xr = [
|
|
|
6544
6544
|
case E.replace:
|
|
6545
6545
|
for (var $ = 0; $ < d; $++) {
|
|
6546
6546
|
var q = Y[$];
|
|
6547
|
-
a[$] += (q + (K[$] - q) *
|
|
6547
|
+
a[$] += (q + (K[$] - q) * W - a[$]) * o;
|
|
6548
6548
|
}
|
|
6549
6549
|
break;
|
|
6550
6550
|
case E.add:
|
|
@@ -6552,12 +6552,12 @@ var Xr = [
|
|
|
6552
6552
|
if (m.bones)
|
|
6553
6553
|
for (var Z = 0; Z < d; Z++) {
|
|
6554
6554
|
var q = Y[Z];
|
|
6555
|
-
a[Z] += (q + (K[Z] - q) *
|
|
6555
|
+
a[Z] += (q + (K[Z] - q) * W) * o;
|
|
6556
6556
|
}
|
|
6557
6557
|
else
|
|
6558
|
-
for (var _ = m.vertices,
|
|
6559
|
-
var q = Y[
|
|
6560
|
-
a[
|
|
6558
|
+
for (var _ = m.vertices, G = 0; G < d; G++) {
|
|
6559
|
+
var q = Y[G];
|
|
6560
|
+
a[G] += (q + (K[G] - q) * W - _[G]) * o;
|
|
6561
6561
|
}
|
|
6562
6562
|
}
|
|
6563
6563
|
}
|
|
@@ -7117,26 +7117,26 @@ var Xr = [
|
|
|
7117
7117
|
var d = Bt.search(c, n, e.ENTRIES), p = c[d], m = c[d + e.MODE], _ = c[d + e.DELAY];
|
|
7118
7118
|
if (this.attachment.sequence) {
|
|
7119
7119
|
var g = m >> 4, v = this.attachment.sequence.regions.length, S = Xr[m & 15];
|
|
7120
|
-
if (S !=
|
|
7120
|
+
if (S != qt.hold)
|
|
7121
7121
|
switch (g += (n - p) / _ + 1e-5 | 0, S) {
|
|
7122
|
-
case
|
|
7122
|
+
case qt.once:
|
|
7123
7123
|
g = Math.min(v - 1, g);
|
|
7124
7124
|
break;
|
|
7125
|
-
case
|
|
7125
|
+
case qt.loop:
|
|
7126
7126
|
g %= v;
|
|
7127
7127
|
break;
|
|
7128
|
-
case
|
|
7128
|
+
case qt.pingpong: {
|
|
7129
7129
|
var b = (v << 1) - 2;
|
|
7130
7130
|
g = b == 0 ? 0 : g % b, g >= v && (g = b - g);
|
|
7131
7131
|
break;
|
|
7132
7132
|
}
|
|
7133
|
-
case
|
|
7133
|
+
case qt.onceReverse:
|
|
7134
7134
|
g = Math.max(v - 1 - g, 0);
|
|
7135
7135
|
break;
|
|
7136
|
-
case
|
|
7136
|
+
case qt.loopReverse:
|
|
7137
7137
|
g = v - 1 - g % v;
|
|
7138
7138
|
break;
|
|
7139
|
-
case
|
|
7139
|
+
case qt.pingpongReverse: {
|
|
7140
7140
|
var b = (v << 1) - 2;
|
|
7141
7141
|
g = b == 0 ? 0 : (g + v - 1) % b, g >= v && (g = b - g);
|
|
7142
7142
|
}
|
|
@@ -7635,7 +7635,7 @@ var An = 0, Gs = 1, js = 2, kn = 3, xl = 4, qs = 1, Sl = 2, Al = (
|
|
|
7635
7635
|
n[s] = u, n[s].renderObject = n[s];
|
|
7636
7636
|
}
|
|
7637
7637
|
}, r.prototype.newRegionAttachment = function(e, t, i, n) {
|
|
7638
|
-
var s = new
|
|
7638
|
+
var s = new Nr(t, i);
|
|
7639
7639
|
if (n != null)
|
|
7640
7640
|
this.loadSequence(t, i, n);
|
|
7641
7641
|
else {
|
|
@@ -7723,10 +7723,10 @@ var An = 0, Gs = 1, js = 2, kn = 3, xl = 4, qs = 1, Sl = 2, Al = (
|
|
|
7723
7723
|
}
|
|
7724
7724
|
case se.NoScale:
|
|
7725
7725
|
case se.NoScaleOrReflection: {
|
|
7726
|
-
var M = H.cosDeg(i), L = H.sinDeg(i), D = (p * M + m * L) / f,
|
|
7727
|
-
w > 1e-5 && (w = 1 / w), D *= w,
|
|
7728
|
-
var Y = Math.PI / 2 + Math.atan2(
|
|
7729
|
-
l.a = D * v + K * b, l.c = D * S + K * x, l.b =
|
|
7726
|
+
var M = H.cosDeg(i), L = H.sinDeg(i), D = (p * M + m * L) / f, W = (_ * M + g * L) / a, w = Math.sqrt(D * D + W * W);
|
|
7727
|
+
w > 1e-5 && (w = 1 / w), D *= w, W *= w, w = Math.sqrt(D * D + W * W), this.data.transformMode == se.NoScale && p * g - m * _ < 0 != (f < 0 != a < 0) && (w = -w);
|
|
7728
|
+
var Y = Math.PI / 2 + Math.atan2(W, D), K = Math.cos(Y) * w, z = Math.sin(Y) * w, v = H.cosDeg(o) * n, S = H.cosDeg(90 + h) * s, b = H.sinDeg(o) * n, x = H.sinDeg(90 + h) * s;
|
|
7729
|
+
l.a = D * v + K * b, l.c = D * S + K * x, l.b = W * v + z * b, l.d = W * S + z * x;
|
|
7730
7730
|
break;
|
|
7731
7731
|
}
|
|
7732
7732
|
}
|
|
@@ -7883,50 +7883,50 @@ var An = 0, Gs = 1, js = 2, kn = 3, xl = 4, qs = 1, Sl = 2, Al = (
|
|
|
7883
7883
|
}, r.prototype.apply2 = function(e, t, i, n, s, o, h, u, l) {
|
|
7884
7884
|
var f = e.ax, a = e.ay, c = e.ascaleX, d = e.ascaleY, p = c, m = d, _ = t.ascaleX, g = e.matrix, v = 0, S = 0, b = 0;
|
|
7885
7885
|
c < 0 ? (c = -c, v = 180, b = -1) : (v = 0, b = 1), d < 0 && (d = -d, b = -b), _ < 0 ? (_ = -_, S = 180) : S = 0;
|
|
7886
|
-
var x = t.ax, w = 0, k = 0, F = 0, T = g.a, M = g.c, L = g.b, D = g.d,
|
|
7887
|
-
!
|
|
7886
|
+
var x = t.ax, w = 0, k = 0, F = 0, T = g.a, M = g.c, L = g.b, D = g.d, W = Math.abs(c - d) <= 1e-4;
|
|
7887
|
+
!W || o ? (w = 0, k = T * x + g.tx, F = L * x + g.ty) : (w = t.ay, k = T * x + M * w + g.tx, F = L * x + D * w + g.ty);
|
|
7888
7888
|
var Y = e.parent.matrix;
|
|
7889
7889
|
if (!Y)
|
|
7890
7890
|
throw new Error("IK parent must itself have a parent.");
|
|
7891
7891
|
T = Y.a, M = Y.c, L = Y.b, D = Y.d;
|
|
7892
|
-
var K = 1 / (T * D - M * L), z = k - Y.tx, q = F - Y.ty, I = (z * D - q * M) * K - f, R = (q * T - z * L) * K - a, X = Math.sqrt(I * I + R * R),
|
|
7892
|
+
var K = 1 / (T * D - M * L), z = k - Y.tx, q = F - Y.ty, I = (z * D - q * M) * K - f, R = (q * T - z * L) * K - a, X = Math.sqrt(I * I + R * R), N = t.data.length * _, V, $;
|
|
7893
7893
|
if (X < 1e-4) {
|
|
7894
7894
|
this.apply1(e, i, n, !1, o, !1, l), t.updateWorldTransformWith(x, w, 0, t.ascaleX, t.ascaleY, t.ashearX, t.ashearY);
|
|
7895
7895
|
return;
|
|
7896
7896
|
}
|
|
7897
7897
|
z = i - Y.tx, q = n - Y.ty;
|
|
7898
|
-
var
|
|
7898
|
+
var G = (z * D - q * M) * K - f, Z = (q * T - z * L) * K - a, at = G * G + Z * Z;
|
|
7899
7899
|
if (u != 0) {
|
|
7900
7900
|
u *= c * (_ + 1) * 0.5;
|
|
7901
|
-
var nt = Math.sqrt(at), st = nt - X -
|
|
7901
|
+
var nt = Math.sqrt(at), st = nt - X - N * c + u;
|
|
7902
7902
|
if (st > 0) {
|
|
7903
7903
|
var pt = Math.min(1, st / (u * 2)) - 1;
|
|
7904
|
-
pt = (st - u * (1 - pt * pt)) / nt,
|
|
7904
|
+
pt = (st - u * (1 - pt * pt)) / nt, G -= pt * G, Z -= pt * Z, at = G * G + Z * Z;
|
|
7905
7905
|
}
|
|
7906
7906
|
}
|
|
7907
|
-
t: if (
|
|
7908
|
-
|
|
7909
|
-
var Pt = (at - X * X -
|
|
7910
|
-
Pt < -1 ? (Pt = -1, $ = Math.PI * s) : Pt > 1 ? (Pt = 1, $ = 0, o && (T = (Math.sqrt(at) / (X +
|
|
7907
|
+
t: if (W) {
|
|
7908
|
+
N *= c;
|
|
7909
|
+
var Pt = (at - X * X - N * N) / (2 * X * N);
|
|
7910
|
+
Pt < -1 ? (Pt = -1, $ = Math.PI * s) : Pt > 1 ? (Pt = 1, $ = 0, o && (T = (Math.sqrt(at) / (X + N) - 1) * l + 1, p *= T, h && (m *= T))) : $ = Math.acos(Pt) * s, T = X + N * Pt, M = N * Math.sin($), V = Math.atan2(Z * T - G * M, G * T + Z * M);
|
|
7911
7911
|
} else {
|
|
7912
|
-
T = c *
|
|
7913
|
-
var _t = T * T, Lt = M * M,
|
|
7912
|
+
T = c * N, M = d * N;
|
|
7913
|
+
var _t = T * T, Lt = M * M, ae = Math.atan2(Z, G);
|
|
7914
7914
|
L = Lt * X * X + _t * at - _t * Lt;
|
|
7915
7915
|
var Ot = -2 * Lt * X, we = Lt - _t;
|
|
7916
7916
|
if (D = Ot * Ot - 4 * we * L, D >= 0) {
|
|
7917
7917
|
var ee = Math.sqrt(D);
|
|
7918
7918
|
Ot < 0 && (ee = -ee), ee = -(Ot + ee) * 0.5;
|
|
7919
|
-
var $e = ee / we, Fe = L / ee,
|
|
7920
|
-
if (
|
|
7921
|
-
q = Math.sqrt(at -
|
|
7919
|
+
var $e = ee / we, Fe = L / ee, oe = Math.abs($e) < Math.abs(Fe) ? $e : Fe;
|
|
7920
|
+
if (oe * oe <= at) {
|
|
7921
|
+
q = Math.sqrt(at - oe * oe) * s, V = ae - Math.atan2(q, oe), $ = Math.atan2(q / d, (oe - X) / c);
|
|
7922
7922
|
break t;
|
|
7923
7923
|
}
|
|
7924
7924
|
}
|
|
7925
|
-
var Ee = H.PI, ge = X - T, xe = ge * ge, Se = 0, Ae = 0,
|
|
7926
|
-
L = -T * X / (_t - Lt), L >= -1 && L <= 1 && (L = Math.acos(L), z = T * Math.cos(L) + X, q = M * Math.sin(L), D = z * z + q * q, D < xe && (Ee = L, xe = D, ge = z, Se = q), D > Kt && (Ae = L, Kt = D,
|
|
7925
|
+
var Ee = H.PI, ge = X - T, xe = ge * ge, Se = 0, Ae = 0, le = X + T, Kt = le * le, ke = 0;
|
|
7926
|
+
L = -T * X / (_t - Lt), L >= -1 && L <= 1 && (L = Math.acos(L), z = T * Math.cos(L) + X, q = M * Math.sin(L), D = z * z + q * q, D < xe && (Ee = L, xe = D, ge = z, Se = q), D > Kt && (Ae = L, Kt = D, le = z, ke = q)), at <= (xe + Kt) * 0.5 ? (V = ae - Math.atan2(Se * s, ge), $ = Ee * s) : (V = ae - Math.atan2(ke * s, le), $ = Ae * s);
|
|
7927
7927
|
}
|
|
7928
|
-
var
|
|
7929
|
-
V = (V -
|
|
7928
|
+
var jt = Math.atan2(w, x) * b, Vt = e.arotation;
|
|
7929
|
+
V = (V - jt) * H.radDeg + v - Vt, V > 180 ? V -= 360 : V < -180 && (V += 360), e.updateWorldTransformWith(f, a, Vt + V * l, p, m, 0, 0), Vt = t.arotation, $ = (($ + jt) * H.radDeg - t.ashearX) * b + S - Vt, $ > 180 ? $ -= 360 : $ < -180 && ($ += 360), t.updateWorldTransformWith(x, w, Vt + $ * l, t.ascaleX, t.ascaleY, t.ashearX, t.ashearY);
|
|
7930
7930
|
}, r;
|
|
7931
7931
|
}()
|
|
7932
7932
|
), da = (
|
|
@@ -7956,7 +7956,7 @@ var An = 0, Gs = 1, js = 2, kn = 3, xl = 4, qs = 1, Sl = 2, Al = (
|
|
|
7956
7956
|
lt(e, r);
|
|
7957
7957
|
function e(t) {
|
|
7958
7958
|
var i = r.call(this, t, 0, !1) || this;
|
|
7959
|
-
return i.bones = new Array(), i._target = null, i.positionMode = De.Fixed, i.spacingMode = Xt.Fixed, i.rotateMode =
|
|
7959
|
+
return i.bones = new Array(), i._target = null, i.positionMode = De.Fixed, i.spacingMode = Xt.Fixed, i.rotateMode = _i.Chain, i.offsetRotation = 0, i.position = 0, i.spacing = 0, i.mixRotate = 0, i.mixX = 0, i.mixY = 0, i;
|
|
7960
7960
|
}
|
|
7961
7961
|
return Object.defineProperty(e.prototype, "target", {
|
|
7962
7962
|
get: function() {
|
|
@@ -8002,7 +8002,7 @@ var Tl = (
|
|
|
8002
8002
|
if (e instanceof ln) {
|
|
8003
8003
|
var t = this.mixRotate, i = this.mixX, n = this.mixY;
|
|
8004
8004
|
if (!(t == 0 && i == 0 && n == 0)) {
|
|
8005
|
-
var s = this.data, o = s.rotateMode ==
|
|
8005
|
+
var s = this.data, o = s.rotateMode == _i.Tangent, h = s.rotateMode == _i.ChainScale, u = this.bones, l = u.length, f = o ? l : l + 1, a = tt.setArraySize(this.spaces, f), c = h ? this.lengths = tt.setArraySize(this.lengths, l) : [], d = this.spacing;
|
|
8006
8006
|
switch (s.spacingMode) {
|
|
8007
8007
|
case Xt.Percent:
|
|
8008
8008
|
if (h)
|
|
@@ -8046,16 +8046,16 @@ var Tl = (
|
|
|
8046
8046
|
}
|
|
8047
8047
|
var F = this.computeWorldPositions(e, f, o), T = F[0], M = F[1], L = s.offsetRotation, D = !1;
|
|
8048
8048
|
if (L == 0)
|
|
8049
|
-
D = s.rotateMode ==
|
|
8049
|
+
D = s.rotateMode == _i.Chain;
|
|
8050
8050
|
else {
|
|
8051
8051
|
D = !1;
|
|
8052
|
-
var
|
|
8053
|
-
L *=
|
|
8052
|
+
var W = this.target.bone.matrix;
|
|
8053
|
+
L *= W.a * W.d - W.b * W.c > 0 ? H.degRad : -H.degRad;
|
|
8054
8054
|
}
|
|
8055
|
-
for (var p = 0,
|
|
8055
|
+
for (var p = 0, W = 3; p < l; p++, W += 3) {
|
|
8056
8056
|
var _ = u[p], Y = _.matrix;
|
|
8057
8057
|
Y.tx += (T - Y.tx) * i, Y.ty += (M - Y.ty) * n;
|
|
8058
|
-
var v = F[
|
|
8058
|
+
var v = F[W], S = F[W + 1], K = v - T, z = S - M;
|
|
8059
8059
|
if (h) {
|
|
8060
8060
|
var q = c[p];
|
|
8061
8061
|
if (q != 0) {
|
|
@@ -8064,14 +8064,14 @@ var Tl = (
|
|
|
8064
8064
|
}
|
|
8065
8065
|
}
|
|
8066
8066
|
if (T = v, M = S, t > 0) {
|
|
8067
|
-
var R = Y.a, X = Y.c,
|
|
8068
|
-
if (o ? $ = F[
|
|
8069
|
-
|
|
8067
|
+
var R = Y.a, X = Y.c, N = Y.b, V = Y.d, $ = 0, G = 0, Z = 0;
|
|
8068
|
+
if (o ? $ = F[W - 1] : a[p + 1] == 0 ? $ = F[W + 2] : $ = Math.atan2(z, K), $ -= Math.atan2(N, R), D) {
|
|
8069
|
+
G = Math.cos($), Z = Math.sin($);
|
|
8070
8070
|
var at = _.data.length;
|
|
8071
|
-
T += (at * (
|
|
8071
|
+
T += (at * (G * R - Z * N) - K) * t, M += (at * (Z * R + G * N) - z) * t;
|
|
8072
8072
|
} else
|
|
8073
8073
|
$ += L;
|
|
8074
|
-
$ > H.PI ? $ -= H.PI2 : $ < -H.PI && ($ += H.PI2), $ *= t,
|
|
8074
|
+
$ > H.PI ? $ -= H.PI2 : $ < -H.PI && ($ += H.PI2), $ *= t, G = Math.cos($), Z = Math.sin($), Y.a = G * R - Z * N, Y.c = G * X - Z * V, Y.b = Z * R + G * N, Y.d = Z * X + G * V;
|
|
8075
8075
|
}
|
|
8076
8076
|
_.updateAppliedTransform();
|
|
8077
8077
|
}
|
|
@@ -8126,8 +8126,8 @@ var Tl = (
|
|
|
8126
8126
|
return h;
|
|
8127
8127
|
}
|
|
8128
8128
|
l ? (f += 2, u = tt.setArraySize(this.world, f), e.computeWorldVertices(n, 2, f - 4, u, 0, 2), e.computeWorldVertices(n, 0, 2, u, f - 4, 2), u[f - 2] = u[0], u[f - 1] = u[1]) : (a--, f -= 4, u = tt.setArraySize(this.world, f), e.computeWorldVertices(n, 2, f, u, 0, 2));
|
|
8129
|
-
for (var k = tt.setArraySize(this.curves, a), F = 0, T = u[0], M = u[1], L = 0, D = 0,
|
|
8130
|
-
L = u[Z], D = u[Z + 1],
|
|
8129
|
+
for (var k = tt.setArraySize(this.curves, a), F = 0, T = u[0], M = u[1], L = 0, D = 0, W = 0, Y = 0, K = 0, z = 0, q = 0, I = 0, R = 0, X = 0, N = 0, V = 0, $ = 0, G = 0, _ = 0, Z = 2; _ < a; _++, Z += 6)
|
|
8130
|
+
L = u[Z], D = u[Z + 1], W = u[Z + 2], Y = u[Z + 3], K = u[Z + 4], z = u[Z + 5], q = (T - L * 2 + W) * 0.1875, I = (M - D * 2 + Y) * 0.1875, R = ((L - W) * 3 - T + K) * 0.09375, X = ((D - Y) * 3 - M + z) * 0.09375, N = q * 2 + R, V = I * 2 + X, $ = (L - T) * 0.75 + q + R * 0.16666667, G = (D - M) * 0.75 + I + X * 0.16666667, F += Math.sqrt($ * $ + G * G), $ += N, G += V, N += R, V += X, F += Math.sqrt($ * $ + G * G), $ += N, G += V, F += Math.sqrt($ * $ + G * G), $ += N + R, G += V + X, F += Math.sqrt($ * $ + G * G), k[_] = F, T = K, M = z;
|
|
8131
8131
|
this.data.positionMode == De.Percent && (s *= F);
|
|
8132
8132
|
var at;
|
|
8133
8133
|
switch (this.data.spacingMode) {
|
|
@@ -8168,9 +8168,9 @@ var Tl = (
|
|
|
8168
8168
|
if (v != c) {
|
|
8169
8169
|
c = v;
|
|
8170
8170
|
var _t = v * 6;
|
|
8171
|
-
for (T = u[_t], M = u[_t + 1], L = u[_t + 2], D = u[_t + 3],
|
|
8172
|
-
$ +=
|
|
8173
|
-
$ +=
|
|
8171
|
+
for (T = u[_t], M = u[_t + 1], L = u[_t + 2], D = u[_t + 3], W = u[_t + 4], Y = u[_t + 5], K = u[_t + 6], z = u[_t + 7], q = (T - L * 2 + W) * 0.03, I = (M - D * 2 + Y) * 0.03, R = ((L - W) * 3 - T + K) * 6e-3, X = ((D - Y) * 3 - M + z) * 6e-3, N = q * 2 + R, V = I * 2 + X, $ = (L - T) * 0.3 + q + R * 0.16666667, G = (D - M) * 0.3 + I + X * 0.16666667, st = Math.sqrt($ * $ + G * G), nt[0] = st, _t = 1; _t < 8; _t++)
|
|
8172
|
+
$ += N, G += V, N += R, V += X, st += Math.sqrt($ * $ + G * G), nt[_t] = st;
|
|
8173
|
+
$ += N, G += V, st += Math.sqrt($ * $ + G * G), nt[8] = st, $ += N + R, G += V + X, st += Math.sqrt($ * $ + G * G), nt[9] = st, pt = 0;
|
|
8174
8174
|
}
|
|
8175
8175
|
for (b *= st; ; pt++) {
|
|
8176
8176
|
var Lt = nt[pt];
|
|
@@ -8184,7 +8184,7 @@ var Tl = (
|
|
|
8184
8184
|
break;
|
|
8185
8185
|
}
|
|
8186
8186
|
}
|
|
8187
|
-
this.addCurvePosition(b * 0.1, T, M, L, D,
|
|
8187
|
+
this.addCurvePosition(b * 0.1, T, M, L, D, W, Y, K, z, h, g, i || _ > 0 && S == 0);
|
|
8188
8188
|
}
|
|
8189
8189
|
return h;
|
|
8190
8190
|
}, r.prototype.addBeforePosition = function(e, t, i, n, s) {
|
|
@@ -8256,8 +8256,8 @@ var Tl = (
|
|
|
8256
8256
|
x.a = L * w - D * F, x.c = L * k - D * T, x.b = D * w + L * F, x.d = D * k + L * T;
|
|
8257
8257
|
}
|
|
8258
8258
|
if (h) {
|
|
8259
|
-
var
|
|
8260
|
-
u.localToWorld(
|
|
8259
|
+
var W = this.temp;
|
|
8260
|
+
u.localToWorld(W.set(this.data.offsetX, this.data.offsetY)), x.tx += (W.x - x.tx) * t, x.ty += (W.y - x.ty) * i;
|
|
8261
8261
|
}
|
|
8262
8262
|
if (n != 0) {
|
|
8263
8263
|
var Y = Math.sqrt(x.a * x.a + x.b * x.b);
|
|
@@ -8285,8 +8285,8 @@ var Tl = (
|
|
|
8285
8285
|
x.a = L * w - D * F, x.c = L * k - D * T, x.b = D * w + L * F, x.d = D * k + L * T;
|
|
8286
8286
|
}
|
|
8287
8287
|
if (h) {
|
|
8288
|
-
var
|
|
8289
|
-
u.localToWorld(
|
|
8288
|
+
var W = this.temp;
|
|
8289
|
+
u.localToWorld(W.set(this.data.offsetX, this.data.offsetY)), x.tx += W.x * t, x.ty += W.y * i;
|
|
8290
8290
|
}
|
|
8291
8291
|
if (n != 0) {
|
|
8292
8292
|
var Y = (Math.sqrt(f * f + c * c) - 1 + this.data.offsetScaleX) * n + 1;
|
|
@@ -8642,7 +8642,7 @@ var Tl = (
|
|
|
8642
8642
|
var a = n[l];
|
|
8643
8643
|
if (a.bone.active) {
|
|
8644
8644
|
var c = 0, d = null, p = a.getAttachment();
|
|
8645
|
-
if (p instanceof
|
|
8645
|
+
if (p instanceof Nr)
|
|
8646
8646
|
c = 8, d = tt.setArraySize(i, c, 0), p.computeWorldVertices(a, d, 0, 2);
|
|
8647
8647
|
else if (p instanceof ss) {
|
|
8648
8648
|
var m = p;
|
|
@@ -9029,10 +9029,10 @@ var Tl = (
|
|
|
9029
9029
|
}
|
|
9030
9030
|
f = n.readInt(!0);
|
|
9031
9031
|
for (var a = 0; a < f; a++) {
|
|
9032
|
-
var
|
|
9033
|
-
if (!
|
|
9032
|
+
var W = n.readString();
|
|
9033
|
+
if (!W)
|
|
9034
9034
|
throw new Error("Animatio name must not be null.");
|
|
9035
|
-
i.animations.push(this.readAnimation(n,
|
|
9035
|
+
i.animations.push(this.readAnimation(n, W, i));
|
|
9036
9036
|
}
|
|
9037
9037
|
return i;
|
|
9038
9038
|
}, r.prototype.readSkin = function(e, t, i, n) {
|
|
@@ -9085,10 +9085,10 @@ var Tl = (
|
|
|
9085
9085
|
return L ? (L.path = l, ct.rgba8888ToColor(L.color, g), L.bones = x.bones, L.vertices = x.vertices, L.worldVerticesLength = b << 1, L.triangles = F, L.regionUVs = new Float32Array(k), L.hullLength = T << 1, L.sequence = v, o && (L.edges = M, L.width = m * h, L.height = _ * h), L) : null;
|
|
9086
9086
|
}
|
|
9087
9087
|
case It.LinkedMesh: {
|
|
9088
|
-
var l = e.readStringRef(), g = e.readInt32(), D = e.readStringRef(),
|
|
9088
|
+
var l = e.readStringRef(), g = e.readInt32(), D = e.readStringRef(), W = e.readStringRef(), Y = e.readBoolean(), v = this.readSequence(e), m = 0, _ = 0;
|
|
9089
9089
|
o && (m = e.readFloat(), _ = e.readFloat()), l || (l = u);
|
|
9090
9090
|
var L = this.attachmentLoader.newMeshAttachment(i, u, l, v);
|
|
9091
|
-
return L ? (L.path = l, ct.rgba8888ToColor(L.color, g), L.sequence = v, o && (L.width = m * h, L.height = _ * h), this.linkedMeshes.push(new Il(L, D, n,
|
|
9091
|
+
return L ? (L.path = l, ct.rgba8888ToColor(L.color, g), L.sequence = v, o && (L.width = m * h, L.height = _ * h), this.linkedMeshes.push(new Il(L, D, n, W, Y)), L) : null;
|
|
9092
9092
|
}
|
|
9093
9093
|
case It.Path: {
|
|
9094
9094
|
for (var K = e.readBoolean(), z = e.readBoolean(), b = e.readInt(!0), x = this.readVertices(e, b), q = tt.newArray(b / 3, 0), I = 0, R = q.length; I < R; I++)
|
|
@@ -9101,15 +9101,15 @@ var Tl = (
|
|
|
9101
9101
|
return X ? (X.x = a * h, X.y = c * h, X.rotation = f, o && ct.rgba8888ToColor(X.color, g), X) : null;
|
|
9102
9102
|
}
|
|
9103
9103
|
case It.Clipping: {
|
|
9104
|
-
var
|
|
9105
|
-
return V ? (V.endSlot = t.slots[
|
|
9104
|
+
var N = e.readInt(!0), b = e.readInt(!0), x = this.readVertices(e, b), g = o ? e.readInt32() : 0, V = this.attachmentLoader.newClippingAttachment(i, u);
|
|
9105
|
+
return V ? (V.endSlot = t.slots[N], V.worldVerticesLength = b << 1, V.vertices = x.vertices, V.bones = x.bones, o && ct.rgba8888ToColor(V.color, g), V) : null;
|
|
9106
9106
|
}
|
|
9107
9107
|
}
|
|
9108
9108
|
return null;
|
|
9109
9109
|
}, r.prototype.readSequence = function(e) {
|
|
9110
9110
|
if (this.ver40 || !e.readBoolean())
|
|
9111
9111
|
return null;
|
|
9112
|
-
var t = new
|
|
9112
|
+
var t = new Wr(e.readInt(!0));
|
|
9113
9113
|
return t.start = e.readInt(!0), t.digits = e.readInt(!0), t.setupIndex = e.readInt(!0), t;
|
|
9114
9114
|
}, r.prototype.readDeformTimelineType = function(e) {
|
|
9115
9115
|
return this.ver40 ? Qs : e.readByte();
|
|
@@ -9181,30 +9181,30 @@ var Tl = (
|
|
|
9181
9181
|
}
|
|
9182
9182
|
case jl: {
|
|
9183
9183
|
for (var _ = e.readInt(!0), p = new ta(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, S = e.readUnsignedByte() / 255, b = e.readUnsignedByte() / 255, x = e.readUnsignedByte() / 255, F = e.readUnsignedByte() / 255, T = e.readUnsignedByte() / 255, M = e.readUnsignedByte() / 255, m = 0, w = 0; p.setFrame(m, g, v, S, b, x, F, T, M), m != d; m++) {
|
|
9184
|
-
var k = e.readFloat(), D = e.readUnsignedByte() / 255,
|
|
9184
|
+
var k = e.readFloat(), D = e.readUnsignedByte() / 255, W = e.readUnsignedByte() / 255, Y = e.readUnsignedByte() / 255, K = e.readUnsignedByte() / 255, z = e.readUnsignedByte() / 255, q = e.readUnsignedByte() / 255, I = e.readUnsignedByte() / 255;
|
|
9185
9185
|
switch (e.readByte()) {
|
|
9186
9186
|
case Ce:
|
|
9187
9187
|
p.setStepped(m);
|
|
9188
9188
|
break;
|
|
9189
9189
|
case Te:
|
|
9190
|
-
ut(e, p, w++, m, 0, g, k, v, D, 1), ut(e, p, w++, m, 1, g, k, S,
|
|
9190
|
+
ut(e, p, w++, m, 0, g, k, v, D, 1), ut(e, p, w++, m, 1, g, k, S, W, 1), ut(e, p, w++, m, 2, g, k, b, Y, 1), ut(e, p, w++, m, 3, g, k, x, K, 1), ut(e, p, w++, m, 4, g, k, F, z, 1), ut(e, p, w++, m, 5, g, k, T, q, 1), ut(e, p, w++, m, 6, g, k, M, I, 1);
|
|
9191
9191
|
}
|
|
9192
|
-
g = k, v = D, S =
|
|
9192
|
+
g = k, v = D, S = W, b = Y, x = K, F = z, T = q, M = I;
|
|
9193
9193
|
}
|
|
9194
9194
|
n.push(p);
|
|
9195
9195
|
break;
|
|
9196
9196
|
}
|
|
9197
9197
|
case ql: {
|
|
9198
9198
|
for (var _ = e.readInt(!0), p = new ea(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, S = e.readUnsignedByte() / 255, b = e.readUnsignedByte() / 255, F = e.readUnsignedByte() / 255, T = e.readUnsignedByte() / 255, M = e.readUnsignedByte() / 255, m = 0, w = 0; p.setFrame(m, g, v, S, b, F, T, M), m != d; m++) {
|
|
9199
|
-
var k = e.readFloat(), D = e.readUnsignedByte() / 255,
|
|
9199
|
+
var k = e.readFloat(), D = e.readUnsignedByte() / 255, W = e.readUnsignedByte() / 255, Y = e.readUnsignedByte() / 255, z = e.readUnsignedByte() / 255, q = e.readUnsignedByte() / 255, I = e.readUnsignedByte() / 255;
|
|
9200
9200
|
switch (e.readByte()) {
|
|
9201
9201
|
case Ce:
|
|
9202
9202
|
p.setStepped(m);
|
|
9203
9203
|
break;
|
|
9204
9204
|
case Te:
|
|
9205
|
-
ut(e, p, w++, m, 0, g, k, v, D, 1), ut(e, p, w++, m, 1, g, k, S,
|
|
9205
|
+
ut(e, p, w++, m, 0, g, k, v, D, 1), ut(e, p, w++, m, 1, g, k, S, W, 1), ut(e, p, w++, m, 2, g, k, b, Y, 1), ut(e, p, w++, m, 3, g, k, F, z, 1), ut(e, p, w++, m, 4, g, k, T, q, 1), ut(e, p, w++, m, 5, g, k, M, I, 1);
|
|
9206
9206
|
}
|
|
9207
|
-
g = k, v = D, S =
|
|
9207
|
+
g = k, v = D, S = W, b = Y, F = z, T = q, M = I;
|
|
9208
9208
|
}
|
|
9209
9209
|
n.push(p);
|
|
9210
9210
|
break;
|
|
@@ -9244,10 +9244,10 @@ var Tl = (
|
|
|
9244
9244
|
case Yl:
|
|
9245
9245
|
n.push(Cn(e, new Ur(c, _, R), 1));
|
|
9246
9246
|
break;
|
|
9247
|
-
case
|
|
9247
|
+
case Nl:
|
|
9248
9248
|
n.push(He(e, new Gr(c, _, R), 1));
|
|
9249
9249
|
break;
|
|
9250
|
-
case
|
|
9250
|
+
case Wl:
|
|
9251
9251
|
n.push(He(e, new jr(c, _, R), 1));
|
|
9252
9252
|
break;
|
|
9253
9253
|
case Xl:
|
|
@@ -9261,83 +9261,83 @@ var Tl = (
|
|
|
9261
9261
|
}
|
|
9262
9262
|
}
|
|
9263
9263
|
for (var o = 0, h = e.readInt(!0); o < h; o++) {
|
|
9264
|
-
for (var
|
|
9265
|
-
var k = e.readFloat(),
|
|
9264
|
+
for (var N = e.readInt(!0), c = e.readInt(!0), d = c - 1, p = new na(c, e.readInt(!0), N), g = e.readFloat(), V = e.readFloat(), $ = e.readFloat() * s, m = 0, w = 0; p.setFrame(m, g, V, $, e.readByte(), e.readBoolean(), e.readBoolean()), m != d; m++) {
|
|
9265
|
+
var k = e.readFloat(), G = e.readFloat(), Z = e.readFloat() * s;
|
|
9266
9266
|
switch (e.readByte()) {
|
|
9267
9267
|
case Ce:
|
|
9268
9268
|
p.setStepped(m);
|
|
9269
9269
|
break;
|
|
9270
9270
|
case Te:
|
|
9271
|
-
ut(e, p, w++, m, 0, g, k, V,
|
|
9271
|
+
ut(e, p, w++, m, 0, g, k, V, G, 1), ut(e, p, w++, m, 1, g, k, $, Z, s);
|
|
9272
9272
|
}
|
|
9273
|
-
g = k, V =
|
|
9273
|
+
g = k, V = G, $ = Z;
|
|
9274
9274
|
}
|
|
9275
9275
|
n.push(p);
|
|
9276
9276
|
}
|
|
9277
9277
|
for (var o = 0, h = e.readInt(!0); o < h; o++) {
|
|
9278
|
-
for (var
|
|
9279
|
-
var k = e.readFloat(), Lt = e.readFloat(),
|
|
9278
|
+
for (var N = e.readInt(!0), c = e.readInt(!0), d = c - 1, p = new sa(c, e.readInt(!0), N), g = e.readFloat(), at = e.readFloat(), nt = e.readFloat(), st = e.readFloat(), pt = e.readFloat(), Pt = e.readFloat(), _t = e.readFloat(), m = 0, w = 0; p.setFrame(m, g, at, nt, st, pt, Pt, _t), m != d; m++) {
|
|
9279
|
+
var k = e.readFloat(), Lt = e.readFloat(), ae = e.readFloat(), Ot = e.readFloat(), we = e.readFloat(), ee = e.readFloat(), $e = e.readFloat();
|
|
9280
9280
|
switch (e.readByte()) {
|
|
9281
9281
|
case Ce:
|
|
9282
9282
|
p.setStepped(m);
|
|
9283
9283
|
break;
|
|
9284
9284
|
case Te:
|
|
9285
|
-
ut(e, p, w++, m, 0, g, k, at, Lt, 1), ut(e, p, w++, m, 1, g, k, nt,
|
|
9285
|
+
ut(e, p, w++, m, 0, g, k, at, Lt, 1), ut(e, p, w++, m, 1, g, k, nt, ae, 1), ut(e, p, w++, m, 2, g, k, st, Ot, 1), ut(e, p, w++, m, 3, g, k, pt, we, 1), ut(e, p, w++, m, 4, g, k, Pt, ee, 1), ut(e, p, w++, m, 5, g, k, _t, $e, 1);
|
|
9286
9286
|
}
|
|
9287
|
-
g = k, at = Lt, nt =
|
|
9287
|
+
g = k, at = Lt, nt = ae, st = Ot, pt = we, Pt = ee, _t = $e;
|
|
9288
9288
|
}
|
|
9289
9289
|
n.push(p);
|
|
9290
9290
|
}
|
|
9291
9291
|
for (var o = 0, h = e.readInt(!0); o < h; o++)
|
|
9292
|
-
for (var
|
|
9292
|
+
for (var N = e.readInt(!0), Fe = i.pathConstraints[N], l = 0, f = e.readInt(!0); l < f; l++)
|
|
9293
9293
|
switch (e.readByte()) {
|
|
9294
9294
|
case Ql:
|
|
9295
|
-
n.push(He(e, new ra(e.readInt(!0), e.readInt(!0),
|
|
9295
|
+
n.push(He(e, new ra(e.readInt(!0), e.readInt(!0), N), Fe.positionMode == De.Fixed ? s : 1));
|
|
9296
9296
|
break;
|
|
9297
9297
|
case Jl:
|
|
9298
|
-
n.push(He(e, new aa(e.readInt(!0), e.readInt(!0),
|
|
9298
|
+
n.push(He(e, new aa(e.readInt(!0), e.readInt(!0), N), Fe.spacingMode == Xt.Length || Fe.spacingMode == Xt.Fixed ? s : 1));
|
|
9299
9299
|
break;
|
|
9300
9300
|
case Zl:
|
|
9301
|
-
for (var p = new oa(e.readInt(!0), e.readInt(!0),
|
|
9302
|
-
var k = e.readFloat(), Lt = e.readFloat(),
|
|
9301
|
+
for (var p = new oa(e.readInt(!0), e.readInt(!0), N), g = e.readFloat(), at = e.readFloat(), nt = e.readFloat(), st = e.readFloat(), m = 0, w = 0, d = p.getFrameCount() - 1; p.setFrame(m, g, at, nt, st), m != d; m++) {
|
|
9302
|
+
var k = e.readFloat(), Lt = e.readFloat(), ae = e.readFloat(), Ot = e.readFloat();
|
|
9303
9303
|
switch (e.readByte()) {
|
|
9304
9304
|
case Ce:
|
|
9305
9305
|
p.setStepped(m);
|
|
9306
9306
|
break;
|
|
9307
9307
|
case Te:
|
|
9308
|
-
ut(e, p, w++, m, 0, g, k, at, Lt, 1), ut(e, p, w++, m, 1, g, k, nt,
|
|
9308
|
+
ut(e, p, w++, m, 0, g, k, at, Lt, 1), ut(e, p, w++, m, 1, g, k, nt, ae, 1), ut(e, p, w++, m, 2, g, k, st, Ot, 1);
|
|
9309
9309
|
}
|
|
9310
|
-
g = k, at = Lt, nt =
|
|
9310
|
+
g = k, at = Lt, nt = ae, st = Ot;
|
|
9311
9311
|
}
|
|
9312
9312
|
n.push(p);
|
|
9313
9313
|
}
|
|
9314
9314
|
for (var o = 0, h = e.readInt(!0); o < h; o++)
|
|
9315
|
-
for (var
|
|
9315
|
+
for (var oe = i.skins[e.readInt(!0)], l = 0, f = e.readInt(!0); l < f; l++)
|
|
9316
9316
|
for (var u = e.readInt(!0), Ee = 0, ge = e.readInt(!0); Ee < ge; Ee++) {
|
|
9317
9317
|
var xe = e.readStringRef();
|
|
9318
9318
|
if (!xe)
|
|
9319
9319
|
throw new Error("attachmentName must not be null.");
|
|
9320
|
-
var Se =
|
|
9320
|
+
var Se = oe.getAttachment(u, xe), a = this.readDeformTimelineType(e), c = e.readInt(!0), d = c - 1;
|
|
9321
9321
|
switch (a) {
|
|
9322
9322
|
case Qs: {
|
|
9323
|
-
for (var Ae = Se,
|
|
9324
|
-
var
|
|
9323
|
+
for (var Ae = Se, le = Ae.bones, Kt = Ae.vertices, ke = le ? Kt.length / 3 * 2 : Kt.length, _ = e.readInt(!0), p = new ia(c, _, u, Ae), g = e.readFloat(), m = 0, w = 0; ; m++) {
|
|
9324
|
+
var jt = void 0, Vt = e.readInt(!0);
|
|
9325
9325
|
if (Vt == 0)
|
|
9326
|
-
|
|
9326
|
+
jt = le ? tt.newFloatArray(ke) : Kt;
|
|
9327
9327
|
else {
|
|
9328
|
-
|
|
9328
|
+
jt = tt.newFloatArray(ke);
|
|
9329
9329
|
var Qt = e.readInt(!0);
|
|
9330
9330
|
if (Vt += Qt, s == 1)
|
|
9331
9331
|
for (var Mt = Qt; Mt < Vt; Mt++)
|
|
9332
|
-
|
|
9332
|
+
jt[Mt] = e.readFloat();
|
|
9333
9333
|
else
|
|
9334
9334
|
for (var Mt = Qt; Mt < Vt; Mt++)
|
|
9335
|
-
|
|
9336
|
-
if (!
|
|
9337
|
-
for (var Mt = 0, A =
|
|
9338
|
-
|
|
9335
|
+
jt[Mt] = e.readFloat() * s;
|
|
9336
|
+
if (!le)
|
|
9337
|
+
for (var Mt = 0, A = jt.length; Mt < A; Mt++)
|
|
9338
|
+
jt[Mt] += Kt[Mt];
|
|
9339
9339
|
}
|
|
9340
|
-
if (p.setFrame(m, g,
|
|
9340
|
+
if (p.setFrame(m, g, jt), m == d)
|
|
9341
9341
|
break;
|
|
9342
9342
|
var k = e.readFloat();
|
|
9343
9343
|
switch (e.readByte()) {
|
|
@@ -9388,9 +9388,9 @@ var Tl = (
|
|
|
9388
9388
|
}
|
|
9389
9389
|
n.push(p);
|
|
9390
9390
|
}
|
|
9391
|
-
for (var
|
|
9392
|
-
|
|
9393
|
-
return new rs(t, n,
|
|
9391
|
+
for (var Nt = 0, o = 0, h = n.length; o < h; o++)
|
|
9392
|
+
Nt = Math.max(Nt, n[o].getDuration());
|
|
9393
|
+
return new rs(t, n, Nt);
|
|
9394
9394
|
}, r.BlendModeValues = [ye.NORMAL, ye.ADD, ye.MULTIPLY, ye.SCREEN], r;
|
|
9395
9395
|
}()
|
|
9396
9396
|
), Il = (
|
|
@@ -9441,7 +9441,7 @@ function Cn(r, e, t) {
|
|
|
9441
9441
|
function ut(r, e, t, i, n, s, o, h, u, l) {
|
|
9442
9442
|
e.setBezier(t, i, n, s, h, r.readFloat(), r.readFloat() * l, r.readFloat(), r.readFloat() * l, o, u);
|
|
9443
9443
|
}
|
|
9444
|
-
var Bl = 0, Ll = 1, Ol = 2, Dl = 3, Yl = 4,
|
|
9444
|
+
var Bl = 0, Ll = 1, Ol = 2, Dl = 3, Yl = 4, Nl = 5, Wl = 6, Xl = 7, Vl = 8, $l = 9, Hl = 0, Ul = 1, Gl = 2, jl = 3, ql = 4, zl = 5, Qs = 0, Kl = 1, Ql = 0, Jl = 1, Zl = 2, Ce = 1, Te = 2;
|
|
9445
9445
|
(function(r) {
|
|
9446
9446
|
lt(e, r);
|
|
9447
9447
|
function e() {
|
|
@@ -9526,7 +9526,7 @@ var th = (
|
|
|
9526
9526
|
var x = g.target, w = i.findSlot(x);
|
|
9527
9527
|
if (!w)
|
|
9528
9528
|
throw new Error("Couldn't find target slot " + x + " for path constraint " + g.name + ".");
|
|
9529
|
-
c.target = w, c.positionMode = tt.enumValue(De, P(g, "positionMode", "Percent")), c.spacingMode = tt.enumValue(Xt, P(g, "spacingMode", "Length")), c.rotateMode = tt.enumValue(
|
|
9529
|
+
c.target = w, c.positionMode = tt.enumValue(De, P(g, "positionMode", "Percent")), c.spacingMode = tt.enumValue(Xt, P(g, "spacingMode", "Length")), c.rotateMode = tt.enumValue(_i, P(g, "rotateMode", "Tangent")), c.offsetRotation = P(g, "rotation", 0), c.position = P(g, "position", 0), c.positionMode == De.Fixed && (c.position *= t), c.spacing = P(g, "spacing", 0), (c.spacingMode == Xt.Length || c.spacingMode == Xt.Fixed) && (c.spacing *= t), c.mixRotate = P(g, "mixRotate", 1), c.mixX = P(g, "mixX", 1), c.mixY = P(g, "mixY", c.mixX), i.pathConstraints.push(c);
|
|
9530
9530
|
}
|
|
9531
9531
|
if (n.skins)
|
|
9532
9532
|
for (var u = 0; u < n.skins.length; u++) {
|
|
@@ -9564,9 +9564,9 @@ var th = (
|
|
|
9564
9564
|
if (!D)
|
|
9565
9565
|
throw new Error("Couldn't find slot " + L + " for skin " + k.name + ".");
|
|
9566
9566
|
var p = k.attachments[L];
|
|
9567
|
-
for (var
|
|
9568
|
-
var Y = this.readAttachment(p[
|
|
9569
|
-
Y && F.setAttachment(D.index,
|
|
9567
|
+
for (var W in p) {
|
|
9568
|
+
var Y = this.readAttachment(p[W], F, D.index, W, i);
|
|
9569
|
+
Y && F.setAttachment(D.index, W, Y);
|
|
9570
9570
|
}
|
|
9571
9571
|
}
|
|
9572
9572
|
i.skins.push(F), F.name == "default" && (i.defaultSkin = F);
|
|
@@ -9587,8 +9587,8 @@ var th = (
|
|
|
9587
9587
|
}
|
|
9588
9588
|
if (n.animations)
|
|
9589
9589
|
for (var X in n.animations) {
|
|
9590
|
-
var
|
|
9591
|
-
this.readAnimation(
|
|
9590
|
+
var N = n.animations[X];
|
|
9591
|
+
this.readAnimation(N, X, i);
|
|
9592
9592
|
}
|
|
9593
9593
|
return i;
|
|
9594
9594
|
}, r.prototype.readAttachment = function(e, t, i, n, s) {
|
|
@@ -9666,7 +9666,7 @@ var th = (
|
|
|
9666
9666
|
}, r.prototype.readSequence = function(e) {
|
|
9667
9667
|
if (e == null)
|
|
9668
9668
|
return null;
|
|
9669
|
-
var t = new
|
|
9669
|
+
var t = new Wr(P(e, "count", 0));
|
|
9670
9670
|
return t.start = P(e, "start", 1), t.digits = P(e, "digits", 0), t.setupIndex = P(e, "setup", 0), t;
|
|
9671
9671
|
}, r.prototype.readVertices = function(e, t, i) {
|
|
9672
9672
|
var n = this.scale;
|
|
@@ -9766,36 +9766,36 @@ var th = (
|
|
|
9766
9766
|
throw new Error("Bone not found: " + T);
|
|
9767
9767
|
var D = L.index;
|
|
9768
9768
|
for (var f in M) {
|
|
9769
|
-
var a = M[f],
|
|
9770
|
-
if (
|
|
9769
|
+
var a = M[f], W = a.length;
|
|
9770
|
+
if (W != 0) {
|
|
9771
9771
|
if (f === "rotate")
|
|
9772
|
-
s.push(Me(a, new hn(
|
|
9772
|
+
s.push(Me(a, new hn(W, W, D), 0, 1));
|
|
9773
9773
|
else if (f === "translate") {
|
|
9774
|
-
var d = new Vr(
|
|
9774
|
+
var d = new Vr(W, W << 1, D);
|
|
9775
9775
|
s.push(Tn(a, d, "x", "y", 0, n));
|
|
9776
9776
|
} else if (f === "translatex") {
|
|
9777
|
-
var d = new $r(
|
|
9777
|
+
var d = new $r(W, W, D);
|
|
9778
9778
|
s.push(Me(a, d, 0, n));
|
|
9779
9779
|
} else if (f === "translatey") {
|
|
9780
|
-
var d = new Hr(
|
|
9780
|
+
var d = new Hr(W, W, D);
|
|
9781
9781
|
s.push(Me(a, d, 0, n));
|
|
9782
9782
|
} else if (f === "scale") {
|
|
9783
|
-
var d = new Ur(
|
|
9783
|
+
var d = new Ur(W, W << 1, D);
|
|
9784
9784
|
s.push(Tn(a, d, "x", "y", 1, 1));
|
|
9785
9785
|
} else if (f === "scalex") {
|
|
9786
|
-
var d = new Gr(
|
|
9786
|
+
var d = new Gr(W, W, D);
|
|
9787
9787
|
s.push(Me(a, d, 1, 1));
|
|
9788
9788
|
} else if (f === "scaley") {
|
|
9789
|
-
var d = new jr(
|
|
9789
|
+
var d = new jr(W, W, D);
|
|
9790
9790
|
s.push(Me(a, d, 1, 1));
|
|
9791
9791
|
} else if (f === "shear") {
|
|
9792
|
-
var d = new qr(
|
|
9792
|
+
var d = new qr(W, W << 1, D);
|
|
9793
9793
|
s.push(Tn(a, d, "x", "y", 0, 1));
|
|
9794
9794
|
} else if (f === "shearx") {
|
|
9795
|
-
var d = new zr(
|
|
9795
|
+
var d = new zr(W, W, D);
|
|
9796
9796
|
s.push(Me(a, d, 0, 1));
|
|
9797
9797
|
} else if (f === "sheary") {
|
|
9798
|
-
var d = new Kr(
|
|
9798
|
+
var d = new Kr(W, W, D);
|
|
9799
9799
|
s.push(Me(a, d, 0, 1));
|
|
9800
9800
|
}
|
|
9801
9801
|
}
|
|
@@ -9815,8 +9815,8 @@ var th = (
|
|
|
9815
9815
|
d.shrink(v);
|
|
9816
9816
|
break;
|
|
9817
9817
|
}
|
|
9818
|
-
var b = P(S, "time", 0), X = P(S, "mix", 1),
|
|
9819
|
-
w && (v = dt(w, d, v, p, 0, _, b, I, X, 1), v = dt(w, d, v, p, 1, _, b, R,
|
|
9818
|
+
var b = P(S, "time", 0), X = P(S, "mix", 1), N = P(S, "softness", 0) * n, w = m.curve;
|
|
9819
|
+
w && (v = dt(w, d, v, p, 0, _, b, I, X, 1), v = dt(w, d, v, p, 1, _, b, R, N, n)), _ = b, I = X, R = N, m = S;
|
|
9820
9820
|
}
|
|
9821
9821
|
s.push(d);
|
|
9822
9822
|
}
|
|
@@ -9828,15 +9828,15 @@ var th = (
|
|
|
9828
9828
|
var z = i.findTransformConstraint(Y);
|
|
9829
9829
|
if (!z)
|
|
9830
9830
|
throw new Error("Transform constraint not found: " + Y);
|
|
9831
|
-
for (var q = i.transformConstraints.indexOf(z), d = new sa(a.length, a.length * 6, q), _ = P(m, "time", 0), V = P(m, "mixRotate", 1), $ = P(m, "mixX", 1),
|
|
9832
|
-
d.setFrame(p, _, V, $,
|
|
9831
|
+
for (var q = i.transformConstraints.indexOf(z), d = new sa(a.length, a.length * 6, q), _ = P(m, "time", 0), V = P(m, "mixRotate", 1), $ = P(m, "mixX", 1), G = P(m, "mixY", $), Z = P(m, "mixScaleX", 1), at = P(m, "mixScaleY", Z), nt = P(m, "mixShearY", 1), p = 0, v = 0; ; p++) {
|
|
9832
|
+
d.setFrame(p, _, V, $, G, Z, at, nt);
|
|
9833
9833
|
var S = a[p + 1];
|
|
9834
9834
|
if (!S) {
|
|
9835
9835
|
d.shrink(v);
|
|
9836
9836
|
break;
|
|
9837
9837
|
}
|
|
9838
|
-
var b = P(S, "time", 0), st = P(S, "mixRotate", 1), pt = P(S, "mixX", 1), Pt = P(S, "mixY", pt), _t = P(S, "mixScaleX", 1), Lt = P(S, "mixScaleY", _t),
|
|
9839
|
-
w && (v = dt(w, d, v, p, 0, _, b, V, st, 1), v = dt(w, d, v, p, 1, _, b, $, pt, 1), v = dt(w, d, v, p, 2, _, b,
|
|
9838
|
+
var b = P(S, "time", 0), st = P(S, "mixRotate", 1), pt = P(S, "mixX", 1), Pt = P(S, "mixY", pt), _t = P(S, "mixScaleX", 1), Lt = P(S, "mixScaleY", _t), ae = P(S, "mixShearY", 1), w = m.curve;
|
|
9839
|
+
w && (v = dt(w, d, v, p, 0, _, b, V, st, 1), v = dt(w, d, v, p, 1, _, b, $, pt, 1), v = dt(w, d, v, p, 2, _, b, G, Pt, 1), v = dt(w, d, v, p, 3, _, b, Z, _t, 1), v = dt(w, d, v, p, 4, _, b, at, Lt, 1), v = dt(w, d, v, p, 5, _, b, nt, ae, 1)), _ = b, V = st, $ = pt, G = Pt, Z = _t, at = Lt, Z = _t, m = S;
|
|
9840
9840
|
}
|
|
9841
9841
|
s.push(d);
|
|
9842
9842
|
}
|
|
@@ -9858,15 +9858,15 @@ var th = (
|
|
|
9858
9858
|
var d = new aa(Ot, Ot, q);
|
|
9859
9859
|
s.push(Me(a, d, 0, z.spacingMode == Xt.Length || z.spacingMode == Xt.Fixed ? n : 1));
|
|
9860
9860
|
} else if (f === "mix") {
|
|
9861
|
-
for (var d = new oa(Ot, Ot * 3, q), _ = P(m, "time", 0), V = P(m, "mixRotate", 1), $ = P(m, "mixX", 1),
|
|
9862
|
-
d.setFrame(p, _, V, $,
|
|
9861
|
+
for (var d = new oa(Ot, Ot * 3, q), _ = P(m, "time", 0), V = P(m, "mixRotate", 1), $ = P(m, "mixX", 1), G = P(m, "mixY", $), p = 0, v = 0; ; p++) {
|
|
9862
|
+
d.setFrame(p, _, V, $, G);
|
|
9863
9863
|
var S = a[p + 1];
|
|
9864
9864
|
if (!S) {
|
|
9865
9865
|
d.shrink(v);
|
|
9866
9866
|
break;
|
|
9867
9867
|
}
|
|
9868
9868
|
var b = P(S, "time", 0), st = P(S, "mixRotate", 1), pt = P(S, "mixX", 1), Pt = P(S, "mixY", pt), w = m.curve;
|
|
9869
|
-
w && (v = dt(w, d, v, p, 0, _, b, V, st, 1), v = dt(w, d, v, p, 1, _, b, $, pt, 1), v = dt(w, d, v, p, 2, _, b,
|
|
9869
|
+
w && (v = dt(w, d, v, p, 0, _, b, V, st, 1), v = dt(w, d, v, p, 1, _, b, $, pt, 1), v = dt(w, d, v, p, 2, _, b, G, Pt, 1)), _ = b, V = st, $ = pt, G = Pt, m = S;
|
|
9870
9870
|
}
|
|
9871
9871
|
s.push(d);
|
|
9872
9872
|
}
|
|
@@ -9879,9 +9879,9 @@ var th = (
|
|
|
9879
9879
|
var ee = e.deform[we], $e = e.attachments[we] = {};
|
|
9880
9880
|
for (var o in ee) {
|
|
9881
9881
|
var h = ee[o], Fe = $e[o] = {};
|
|
9882
|
-
for (var
|
|
9883
|
-
Fe[
|
|
9884
|
-
deform: h[
|
|
9882
|
+
for (var oe in h)
|
|
9883
|
+
Fe[oe] = {
|
|
9884
|
+
deform: h[oe]
|
|
9885
9885
|
};
|
|
9886
9886
|
}
|
|
9887
9887
|
}
|
|
@@ -9896,22 +9896,22 @@ var th = (
|
|
|
9896
9896
|
throw new Error("Slot not found: " + Se);
|
|
9897
9897
|
var l = u.index;
|
|
9898
9898
|
for (var Ae in h) {
|
|
9899
|
-
var
|
|
9900
|
-
for (var ke in
|
|
9901
|
-
var a =
|
|
9899
|
+
var le = h[Ae], Kt = xe.getAttachment(l, Ae);
|
|
9900
|
+
for (var ke in le) {
|
|
9901
|
+
var a = le[ke], m = a[0];
|
|
9902
9902
|
if (m) {
|
|
9903
9903
|
if (ke == "deform") {
|
|
9904
|
-
for (var
|
|
9904
|
+
for (var jt = Kt.bones, Vt = Kt.vertices, Qt = jt ? Vt.length / 3 * 2 : Vt.length, d = new ia(a.length, a.length, l, Kt), _ = P(m, "time", 0), p = 0, v = 0; ; p++) {
|
|
9905
9905
|
var Mt = void 0, A = P(m, "vertices", null);
|
|
9906
9906
|
if (!A)
|
|
9907
|
-
Mt =
|
|
9907
|
+
Mt = jt ? tt.newFloatArray(Qt) : Vt;
|
|
9908
9908
|
else {
|
|
9909
9909
|
Mt = tt.newFloatArray(Qt);
|
|
9910
9910
|
var C = P(m, "offset", 0);
|
|
9911
9911
|
if (tt.arrayCopy(A, 0, Mt, C, A.length), n != 1)
|
|
9912
9912
|
for (var B = C, O = B + A.length; B < O; B++)
|
|
9913
9913
|
Mt[B] *= n;
|
|
9914
|
-
if (!
|
|
9914
|
+
if (!jt)
|
|
9915
9915
|
for (var B = 0; B < Qt; B++)
|
|
9916
9916
|
Mt[B] += Vt[B];
|
|
9917
9917
|
}
|
|
@@ -9927,7 +9927,7 @@ var th = (
|
|
|
9927
9927
|
s.push(d);
|
|
9928
9928
|
} else if (ke == "sequence") {
|
|
9929
9929
|
for (var d = new la(a.length, l, Kt), j = 0, p = 0; p < a.length; p++) {
|
|
9930
|
-
var J = P(m, "delay", j), _ = P(m, "time", 0), et =
|
|
9930
|
+
var J = P(m, "delay", j), _ = P(m, "time", 0), et = qt[P(m, "mode", "hold")], ot = P(m, "index", 0);
|
|
9931
9931
|
d.setFrame(p, _, et, ot, J), j = J, m = a[p + 1];
|
|
9932
9932
|
}
|
|
9933
9933
|
s.push(d);
|
|
@@ -9942,18 +9942,18 @@ var th = (
|
|
|
9942
9942
|
var vt = e.drawOrder[B], gt = null, wt = P(vt, "offsets", null);
|
|
9943
9943
|
if (wt) {
|
|
9944
9944
|
gt = tt.newArray(ht, -1);
|
|
9945
|
-
for (var
|
|
9945
|
+
for (var Nt = tt.newArray(ht - wt.length, 0), he = 0, Li = 0, Qe = 0; Qe < wt.length; Qe++) {
|
|
9946
9946
|
var Os = wt[Qe], u = i.findSlot(Os.slot);
|
|
9947
9947
|
if (!u)
|
|
9948
9948
|
throw new Error("Slot not found: " + u);
|
|
9949
|
-
for (var l = u.index;
|
|
9950
|
-
|
|
9951
|
-
gt[
|
|
9949
|
+
for (var l = u.index; he != l; )
|
|
9950
|
+
Nt[Li++] = he++;
|
|
9951
|
+
gt[he + Os.offset] = he++;
|
|
9952
9952
|
}
|
|
9953
|
-
for (;
|
|
9954
|
-
|
|
9953
|
+
for (; he < ht; )
|
|
9954
|
+
Nt[Li++] = he++;
|
|
9955
9955
|
for (var Qe = ht - 1; Qe >= 0; Qe--)
|
|
9956
|
-
gt[Qe] == -1 && (gt[Qe] =
|
|
9956
|
+
gt[Qe] == -1 && (gt[Qe] = Nt[--Li]);
|
|
9957
9957
|
}
|
|
9958
9958
|
d.setFrame(p, P(vt, "time", 0), gt);
|
|
9959
9959
|
}
|
|
@@ -9964,8 +9964,8 @@ var th = (
|
|
|
9964
9964
|
var Je = e.events[B], Oi = i.findEvent(Je.name);
|
|
9965
9965
|
if (!Oi)
|
|
9966
9966
|
throw new Error("Event not found: " + Je.name);
|
|
9967
|
-
var
|
|
9968
|
-
|
|
9967
|
+
var ci = new ca(tt.toSinglePrecision(P(Je, "time", 0)), Oi);
|
|
9968
|
+
ci.intValue = P(Je, "int", Oi.intValue), ci.floatValue = P(Je, "float", Oi.floatValue), ci.stringValue = P(Je, "string", Oi.stringValue), ci.data.audioPath && (ci.volume = P(Je, "volume", 1), ci.balance = P(Je, "balance", 0)), d.setFrame(p, ci);
|
|
9969
9969
|
}
|
|
9970
9970
|
s.push(d);
|
|
9971
9971
|
}
|
|
@@ -10171,7 +10171,7 @@ class hs extends ih {
|
|
|
10171
10171
|
i && (i.trackTime = i.animationEnd);
|
|
10172
10172
|
}
|
|
10173
10173
|
}
|
|
10174
|
-
class
|
|
10174
|
+
class li extends yt {
|
|
10175
10175
|
/** */
|
|
10176
10176
|
static getSpineAnimation(e, t = 1) {
|
|
10177
10177
|
const i = yt.assets.get(e), n = new hs(ii.resources.get(i.srcResource).spineData);
|
|
@@ -10184,7 +10184,7 @@ class iu extends Ct {
|
|
|
10184
10184
|
*/
|
|
10185
10185
|
constructor(t = "[noname] tile") {
|
|
10186
10186
|
super();
|
|
10187
|
-
y(this, "_container", new
|
|
10187
|
+
y(this, "_container", new gi());
|
|
10188
10188
|
this.name = t;
|
|
10189
10189
|
}
|
|
10190
10190
|
/**
|
|
@@ -10197,7 +10197,7 @@ class iu extends Ct {
|
|
|
10197
10197
|
height: this._container.height
|
|
10198
10198
|
})
|
|
10199
10199
|
);
|
|
10200
|
-
return
|
|
10200
|
+
return hi("renderer").render(this._container, { renderTexture: t }), this.texture = t, this;
|
|
10201
10201
|
}
|
|
10202
10202
|
/**
|
|
10203
10203
|
* Добавить текстуру в указанную точку
|
|
@@ -10283,10 +10283,10 @@ class rh {
|
|
|
10283
10283
|
}
|
|
10284
10284
|
}
|
|
10285
10285
|
function ah(r, e = 1) {
|
|
10286
|
-
return r.show().alpha = 0,
|
|
10286
|
+
return r.show().alpha = 0, re(r, { alpha: 1, duration: e, ease: me.out });
|
|
10287
10287
|
}
|
|
10288
10288
|
function oh(r, e = 1) {
|
|
10289
|
-
return r.show().alpha = 1,
|
|
10289
|
+
return r.show().alpha = 1, re(r, { alpha: 0, visible: !1, duration: e, ease: me.in });
|
|
10290
10290
|
}
|
|
10291
10291
|
function Pi(r, e, t, i, n = 0, s = 16777215, o = 1) {
|
|
10292
10292
|
const h = new Fi();
|
|
@@ -10314,7 +10314,7 @@ class _a extends Tt {
|
|
|
10314
10314
|
}
|
|
10315
10315
|
/** */
|
|
10316
10316
|
async destroy() {
|
|
10317
|
-
return this._texture.destroy(!0), this._background.destroy(), this.instance.destroy(),
|
|
10317
|
+
return this._texture.destroy(!0), this._background.destroy(), this.instance.destroy(), U.clear(this.name), this;
|
|
10318
10318
|
}
|
|
10319
10319
|
/** Generate texture for blackout */
|
|
10320
10320
|
_generateTexture(t = 131586, i = 0.9) {
|
|
@@ -10331,7 +10331,7 @@ class _a extends Tt {
|
|
|
10331
10331
|
const s = this._textureColor === t, o = this._textureAlpha === i;
|
|
10332
10332
|
if (this._texture || !s || !o) {
|
|
10333
10333
|
const h = this._generateTexture(t, i);
|
|
10334
|
-
this._inBackground = Ct.from(h), this._inBackground.alpha = i === 1 ? i : 0, this._inBackground.zIndex = 0, this._background.zIndex = 1, this.instance.addChild(this._inBackground), this.instance.sortChildren(), await this.draw(), await
|
|
10334
|
+
this._inBackground = Ct.from(h), this._inBackground.alpha = i === 1 ? i : 0, this._inBackground.zIndex = 0, this._background.zIndex = 1, this.instance.addChild(this._inBackground), this.instance.sortChildren(), await this.draw(), await Gt(`${this.name}.crossfade`).to(this._inBackground, { alpha: i, duration: n }, 0).to(this._background, { alpha: 0, duration: n }, 0).call(
|
|
10335
10335
|
() => {
|
|
10336
10336
|
this._background.texture = this._inBackground.texture, this._background.alpha = i, this._texture = h, this._textureColor = t, this._textureAlpha = i, this.instance.removeChild(this._inBackground), this._inBackground = null;
|
|
10337
10337
|
},
|
|
@@ -10352,7 +10352,7 @@ class _a extends Tt {
|
|
|
10352
10352
|
}
|
|
10353
10353
|
function lh(r, e, t, i = 300 / 1e3) {
|
|
10354
10354
|
const s = Math.min(r, e) < 1 ? 1e4 : 1, o = { value: r * s };
|
|
10355
|
-
return
|
|
10355
|
+
return re(o, {
|
|
10356
10356
|
value: e * s,
|
|
10357
10357
|
duration: i,
|
|
10358
10358
|
onUpdate: () => t(o.value / s),
|
|
@@ -10395,7 +10395,7 @@ var Ri = 1e9, hh = {
|
|
|
10395
10395
|
// The natural logarithm of 10.
|
|
10396
10396
|
// 115 digits
|
|
10397
10397
|
LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
|
|
10398
|
-
}, us, Et = !0, be = "[DecimalError] ",
|
|
10398
|
+
}, us, Et = !0, be = "[DecimalError] ", vi = be + "Invalid argument: ", cs = be + "Exponent out of range: ", Bi = Math.floor, mi = Math.pow, ch = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, pe, Ut = 1e7, kt = 7, va = 9007199254740991, cn = Bi(va / kt), Q = {};
|
|
10399
10399
|
Q.absoluteValue = Q.abs = function() {
|
|
10400
10400
|
var r = new this.constructor(this);
|
|
10401
10401
|
return r.s && (r.s = 1), r;
|
|
@@ -10454,9 +10454,9 @@ Q.logarithm = Q.log = function(r) {
|
|
|
10454
10454
|
var e, t = this, i = t.constructor, n = i.precision, s = n + 5;
|
|
10455
10455
|
if (r === void 0)
|
|
10456
10456
|
r = new i(10);
|
|
10457
|
-
else if (r = new i(r), r.s < 1 || r.eq(
|
|
10457
|
+
else if (r = new i(r), r.s < 1 || r.eq(pe)) throw Error(be + "NaN");
|
|
10458
10458
|
if (t.s < 1) throw Error(be + (t.s ? "NaN" : "-Infinity"));
|
|
10459
|
-
return t.eq(
|
|
10459
|
+
return t.eq(pe) ? new i(0) : (Et = !1, e = qe(zi(t, s), zi(r, s), s), Et = !0, xt(e, n));
|
|
10460
10460
|
};
|
|
10461
10461
|
Q.minus = Q.sub = function(r) {
|
|
10462
10462
|
var e = this;
|
|
@@ -10483,7 +10483,7 @@ Q.plus = Q.add = function(r) {
|
|
|
10483
10483
|
};
|
|
10484
10484
|
Q.precision = Q.sd = function(r) {
|
|
10485
10485
|
var e, t, i, n = this;
|
|
10486
|
-
if (r !== void 0 && r !== !!r && r !== 1 && r !== 0) throw Error(
|
|
10486
|
+
if (r !== void 0 && r !== !!r && r !== 1 && r !== 0) throw Error(vi + r);
|
|
10487
10487
|
if (e = Yt(n) + 1, i = n.d.length - 1, t = i * kt + 1, i = n.d[i], i) {
|
|
10488
10488
|
for (; i % 10 == 0; i /= 10) t--;
|
|
10489
10489
|
for (i = n.d[0]; i >= 10; i /= 10) t++;
|
|
@@ -10523,15 +10523,15 @@ Q.times = Q.mul = function(r) {
|
|
|
10523
10523
|
};
|
|
10524
10524
|
Q.toDecimalPlaces = Q.todp = function(r, e) {
|
|
10525
10525
|
var t = this, i = t.constructor;
|
|
10526
|
-
return t = new i(t), r === void 0 ? t : (
|
|
10526
|
+
return t = new i(t), r === void 0 ? t : (We(r, 0, Ri), e === void 0 ? e = i.rounding : We(e, 0, 8), xt(t, r + Yt(t) + 1, e));
|
|
10527
10527
|
};
|
|
10528
10528
|
Q.toExponential = function(r, e) {
|
|
10529
10529
|
var t, i = this, n = i.constructor;
|
|
10530
|
-
return r === void 0 ? t =
|
|
10530
|
+
return r === void 0 ? t = bi(i, !0) : (We(r, 0, Ri), e === void 0 ? e = n.rounding : We(e, 0, 8), i = xt(new n(i), r + 1, e), t = bi(i, !0, r + 1)), t;
|
|
10531
10531
|
};
|
|
10532
10532
|
Q.toFixed = function(r, e) {
|
|
10533
10533
|
var t, i, n = this, s = n.constructor;
|
|
10534
|
-
return r === void 0 ?
|
|
10534
|
+
return r === void 0 ? bi(n) : (We(r, 0, Ri), e === void 0 ? e = s.rounding : We(e, 0, 8), i = xt(new s(n), r + Yt(n) + 1, e), t = bi(i.abs(), !1, r + Yt(i) + 1), n.isneg() && !n.isZero() ? "-" + t : t);
|
|
10535
10535
|
};
|
|
10536
10536
|
Q.toInteger = Q.toint = function() {
|
|
10537
10537
|
var r = this, e = r.constructor;
|
|
@@ -10542,33 +10542,33 @@ Q.toNumber = function() {
|
|
|
10542
10542
|
};
|
|
10543
10543
|
Q.toPower = Q.pow = function(r) {
|
|
10544
10544
|
var e, t, i, n, s, o, h = this, u = h.constructor, l = 12, f = +(r = new u(r));
|
|
10545
|
-
if (!r.s) return new u(
|
|
10545
|
+
if (!r.s) return new u(pe);
|
|
10546
10546
|
if (h = new u(h), !h.s) {
|
|
10547
10547
|
if (r.s < 1) throw Error(be + "Infinity");
|
|
10548
10548
|
return h;
|
|
10549
10549
|
}
|
|
10550
|
-
if (h.eq(
|
|
10551
|
-
if (i = u.precision, r.eq(
|
|
10550
|
+
if (h.eq(pe)) return h;
|
|
10551
|
+
if (i = u.precision, r.eq(pe)) return xt(h, i);
|
|
10552
10552
|
if (e = r.e, t = r.d.length - 1, o = e >= t, s = h.s, o) {
|
|
10553
10553
|
if ((t = f < 0 ? -f : f) <= va) {
|
|
10554
|
-
for (n = new u(
|
|
10554
|
+
for (n = new u(pe), e = Math.ceil(i / kt + 4), Et = !1; t % 2 && (n = n.times(h), Zs(n.d, e)), t = Bi(t / 2), t !== 0; )
|
|
10555
10555
|
h = h.times(h), Zs(h.d, e);
|
|
10556
|
-
return Et = !0, r.s < 0 ? new u(
|
|
10556
|
+
return Et = !0, r.s < 0 ? new u(pe).div(n) : xt(n, i);
|
|
10557
10557
|
}
|
|
10558
10558
|
} else if (s < 0) throw Error(be + "NaN");
|
|
10559
10559
|
return s = s < 0 && r.d[Math.max(e, t)] & 1 ? -1 : 1, h.s = 1, Et = !1, n = r.times(zi(h, i + l)), Et = !0, n = ba(n), n.s = s, n;
|
|
10560
10560
|
};
|
|
10561
10561
|
Q.toPrecision = function(r, e) {
|
|
10562
10562
|
var t, i, n = this, s = n.constructor;
|
|
10563
|
-
return r === void 0 ? (t = Yt(n), i =
|
|
10563
|
+
return r === void 0 ? (t = Yt(n), i = bi(n, t <= s.toExpNeg || t >= s.toExpPos)) : (We(r, 1, Ri), e === void 0 ? e = s.rounding : We(e, 0, 8), n = xt(new s(n), r, e), t = Yt(n), i = bi(n, r <= t || t <= s.toExpNeg, r)), i;
|
|
10564
10564
|
};
|
|
10565
10565
|
Q.toSignificantDigits = Q.tosd = function(r, e) {
|
|
10566
10566
|
var t = this, i = t.constructor;
|
|
10567
|
-
return r === void 0 ? (r = i.precision, e = i.rounding) : (
|
|
10567
|
+
return r === void 0 ? (r = i.precision, e = i.rounding) : (We(r, 1, Ri), e === void 0 ? e = i.rounding : We(e, 0, 8)), xt(new i(t), r, e);
|
|
10568
10568
|
};
|
|
10569
10569
|
Q.toString = Q.valueOf = Q.val = Q.toJSON = Q[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
10570
10570
|
var r = this, e = Yt(r), t = r.constructor;
|
|
10571
|
-
return
|
|
10571
|
+
return bi(r, e <= t.toExpNeg || e >= t.toExpPos);
|
|
10572
10572
|
};
|
|
10573
10573
|
function ya(r, e) {
|
|
10574
10574
|
var t, i, n, s, o, h, u, l, f = r.constructor, a = f.precision;
|
|
@@ -10583,9 +10583,9 @@ function ya(r, e) {
|
|
|
10583
10583
|
for (t && (u.unshift(t), ++n), h = u.length; u[--h] == 0; ) u.pop();
|
|
10584
10584
|
return e.d = u, e.e = n, Et ? xt(e, a) : e;
|
|
10585
10585
|
}
|
|
10586
|
-
function
|
|
10586
|
+
function We(r, e, t) {
|
|
10587
10587
|
if (r !== ~~r || r < e || r > t)
|
|
10588
|
-
throw Error(
|
|
10588
|
+
throw Error(vi + r);
|
|
10589
10589
|
}
|
|
10590
10590
|
function Le(r) {
|
|
10591
10591
|
var e, t, i, n = r.length - 1, s = "", o = r[0];
|
|
@@ -10644,10 +10644,10 @@ var qe = /* @__PURE__ */ function() {
|
|
|
10644
10644
|
function ba(r, e) {
|
|
10645
10645
|
var t, i, n, s, o, h, u = 0, l = 0, f = r.constructor, a = f.precision;
|
|
10646
10646
|
if (Yt(r) > 16) throw Error(cs + Yt(r));
|
|
10647
|
-
if (!r.s) return new f(
|
|
10647
|
+
if (!r.s) return new f(pe);
|
|
10648
10648
|
for (Et = !1, h = a, o = new f(0.03125); r.abs().gte(0.1); )
|
|
10649
10649
|
r = r.times(o), l += 5;
|
|
10650
|
-
for (i = Math.log(
|
|
10650
|
+
for (i = Math.log(mi(2, l)) / Math.LN10 * 2 + 5 | 0, h += i, t = n = s = new f(pe), f.precision = h; ; ) {
|
|
10651
10651
|
if (n = xt(n.times(r), h), t = t.times(++u), o = s.plus(qe(n, t, h)), Le(o.d).slice(0, h) === Le(s.d).slice(0, h)) {
|
|
10652
10652
|
for (; l--; ) s = xt(s.times(s), h);
|
|
10653
10653
|
return f.precision = a, e == null ? (Et = !0, xt(s, a)) : s;
|
|
@@ -10671,7 +10671,7 @@ function ti(r) {
|
|
|
10671
10671
|
function zi(r, e) {
|
|
10672
10672
|
var t, i, n, s, o, h, u, l, f, a = 1, c = 10, d = r, p = d.d, m = d.constructor, _ = m.precision;
|
|
10673
10673
|
if (d.s < 1) throw Error(be + (d.s ? "NaN" : "-Infinity"));
|
|
10674
|
-
if (d.eq(
|
|
10674
|
+
if (d.eq(pe)) return new m(0);
|
|
10675
10675
|
if (e == null ? (Et = !1, l = _) : l = e, d.eq(10))
|
|
10676
10676
|
return e == null && (Et = !0), Pn(m, l);
|
|
10677
10677
|
if (l += c, m.precision = l, t = Le(p), i = t.charAt(0), s = Yt(d), Math.abs(s) < 15e14) {
|
|
@@ -10680,7 +10680,7 @@ function zi(r, e) {
|
|
|
10680
10680
|
s = Yt(d), i > 1 ? (d = new m("0." + t), s++) : d = new m(i + "." + t.slice(1));
|
|
10681
10681
|
} else
|
|
10682
10682
|
return u = Pn(m, l + 2, _).times(s + ""), d = zi(new m(i + "." + t.slice(1)), l - c).plus(u), m.precision = _, e == null ? (Et = !0, xt(d, _)) : d;
|
|
10683
|
-
for (h = o = d = qe(d.minus(
|
|
10683
|
+
for (h = o = d = qe(d.minus(pe), d.plus(pe), l), f = xt(d.times(d), l), n = 3; ; ) {
|
|
10684
10684
|
if (o = xt(o.times(f), l), u = h.plus(qe(o, new m(n), l)), Le(u.d).slice(0, l) === Le(h.d).slice(0, l))
|
|
10685
10685
|
return h = h.times(2), s !== 0 && (h = h.plus(Pn(m, l + 2, _).times(s + ""))), h = qe(h, new m(a), l), m.precision = _, e == null ? (Et = !0, xt(h, _)) : h;
|
|
10686
10686
|
h = u, n += 2;
|
|
@@ -10712,10 +10712,10 @@ function xt(r, e, t) {
|
|
|
10712
10712
|
for (l = s = a[f], o = 1; s >= 10; s /= 10) o++;
|
|
10713
10713
|
i %= kt, n = i - kt + o;
|
|
10714
10714
|
}
|
|
10715
|
-
if (t !== void 0 && (s =
|
|
10716
|
-
(i > 0 ? n > 0 ? l /
|
|
10717
|
-
return u ? (s = Yt(r), a.length = 1, e = e - s - 1, a[0] =
|
|
10718
|
-
if (i == 0 ? (a.length = f, s = 1, f--) : (a.length = f + 1, s =
|
|
10715
|
+
if (t !== void 0 && (s = mi(10, o - n - 1), h = l / s % 10 | 0, u = e < 0 || a[f + 1] !== void 0 || l % s, u = t < 4 ? (h || u) && (t == 0 || t == (r.s < 0 ? 3 : 2)) : h > 5 || h == 5 && (t == 4 || u || t == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
10716
|
+
(i > 0 ? n > 0 ? l / mi(10, o - n) : 0 : a[f - 1]) % 10 & 1 || t == (r.s < 0 ? 8 : 7))), e < 1 || !a[0])
|
|
10717
|
+
return u ? (s = Yt(r), a.length = 1, e = e - s - 1, a[0] = mi(10, (kt - e % kt) % kt), r.e = Bi(-e / kt) || 0) : (a.length = 1, a[0] = r.e = r.s = 0), r;
|
|
10718
|
+
if (i == 0 ? (a.length = f, s = 1, f--) : (a.length = f + 1, s = mi(10, kt - i), a[f] = n > 0 ? (l / mi(10, o - n) % mi(10, n) | 0) * s : 0), u)
|
|
10719
10719
|
for (; ; )
|
|
10720
10720
|
if (f == 0) {
|
|
10721
10721
|
(a[0] += s) == Ut && (a[0] = 1, ++r.e);
|
|
@@ -10756,7 +10756,7 @@ function wa(r, e) {
|
|
|
10756
10756
|
for (; u[0] === 0; u.shift()) --i;
|
|
10757
10757
|
return u[0] ? (e.d = u, e.e = i, Et ? xt(e, d) : e) : new c(0);
|
|
10758
10758
|
}
|
|
10759
|
-
function
|
|
10759
|
+
function bi(r, e, t) {
|
|
10760
10760
|
var i, n = Yt(r), s = Le(r.d), o = s.length;
|
|
10761
10761
|
return e ? (t && (i = t - o) > 0 ? s = s.charAt(0) + "." + s.slice(1) + ti(i) : o > 1 && (s = s.charAt(0) + "." + s.slice(1)), s = s + (n < 0 ? "e" : "e+") + n) : n < 0 ? (s = "0." + ti(-n - 1) + s, t && (i = t - o) > 0 && (s += ti(i))) : n >= o ? (s += ti(n + 1 - o), t && (i = t - n - 1) > 0 && (s = s + "." + ti(i))) : ((i = n + 1) < o && (s = s.slice(0, i) + "." + s.slice(i)), t && (i = t - o) > 0 && (n + 1 === o && (s += "."), s += ti(i))), r.s < 0 ? "-" + s : s;
|
|
10762
10762
|
}
|
|
@@ -10775,7 +10775,7 @@ function xa(r) {
|
|
|
10775
10775
|
}
|
|
10776
10776
|
if (typeof s == "number") {
|
|
10777
10777
|
if (s * 0 !== 0)
|
|
10778
|
-
throw Error(
|
|
10778
|
+
throw Error(vi + s);
|
|
10779
10779
|
if (s > 0)
|
|
10780
10780
|
o.s = 1;
|
|
10781
10781
|
else if (s < 0)
|
|
@@ -10790,9 +10790,9 @@ function xa(r) {
|
|
|
10790
10790
|
}
|
|
10791
10791
|
return Js(o, s.toString());
|
|
10792
10792
|
} else if (typeof s != "string")
|
|
10793
|
-
throw Error(
|
|
10793
|
+
throw Error(vi + s);
|
|
10794
10794
|
if (s.charCodeAt(0) === 45 ? (s = s.slice(1), o.s = -1) : o.s = 1, ch.test(s)) Js(o, s);
|
|
10795
|
-
else throw Error(
|
|
10795
|
+
else throw Error(vi + s);
|
|
10796
10796
|
}
|
|
10797
10797
|
if (n.prototype = Q, n.ROUND_UP = 0, n.ROUND_DOWN = 1, n.ROUND_CEIL = 2, n.ROUND_FLOOR = 3, n.ROUND_HALF_UP = 4, n.ROUND_HALF_DOWN = 5, n.ROUND_HALF_EVEN = 6, n.ROUND_HALF_CEIL = 7, n.ROUND_HALF_FLOOR = 8, n.clone = xa, n.config = n.set = uh, r === void 0 && (r = {}), r)
|
|
10798
10798
|
for (i = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"], e = 0; e < i.length; ) r.hasOwnProperty(t = i[e++]) || (r[t] = this[t]);
|
|
@@ -10818,14 +10818,14 @@ function uh(r) {
|
|
|
10818
10818
|
for (e = 0; e < n.length; e += 3)
|
|
10819
10819
|
if ((i = r[t = n[e]]) !== void 0)
|
|
10820
10820
|
if (Bi(i) === i && i >= n[e + 1] && i <= n[e + 2]) this[t] = i;
|
|
10821
|
-
else throw Error(
|
|
10821
|
+
else throw Error(vi + t + ": " + i);
|
|
10822
10822
|
if ((i = r[t = "LN10"]) !== void 0)
|
|
10823
10823
|
if (i == Math.LN10) this[t] = new this(i);
|
|
10824
|
-
else throw Error(
|
|
10824
|
+
else throw Error(vi + t + ": " + i);
|
|
10825
10825
|
return this;
|
|
10826
10826
|
}
|
|
10827
10827
|
var us = xa(hh);
|
|
10828
|
-
|
|
10828
|
+
pe = new us(1);
|
|
10829
10829
|
const Fn = us;
|
|
10830
10830
|
function tr(r, e) {
|
|
10831
10831
|
if (!r)
|
|
@@ -10864,7 +10864,7 @@ const En = [
|
|
|
10864
10864
|
y(this, "_maxHeight", null);
|
|
10865
10865
|
y(this, "_isWordWrapScaleMode", !1);
|
|
10866
10866
|
y(this, "_isUpscaleMode", !1);
|
|
10867
|
-
this._text = i, this._style = new
|
|
10867
|
+
this._text = i, this._style = new Ne(n), s && s.upscale && (this._isUpscaleMode = !0, this._saveUpscaleStyles(n));
|
|
10868
10868
|
}
|
|
10869
10869
|
/**
|
|
10870
10870
|
* Установить текст и отрисовать с новым текстом
|
|
@@ -10888,7 +10888,7 @@ const En = [
|
|
|
10888
10888
|
* @param instance
|
|
10889
10889
|
*/
|
|
10890
10890
|
async create(t) {
|
|
10891
|
-
return await super.create(t), this.instance.addChild(this._container = new
|
|
10891
|
+
return await super.create(t), this.instance.addChild(this._container = new gi()), this._container.addChild(this._label = new yr(this._text, this._style)), this.draw();
|
|
10892
10892
|
}
|
|
10893
10893
|
/**
|
|
10894
10894
|
* Уничтожить компонент
|
|
@@ -10972,7 +10972,7 @@ const En = [
|
|
|
10972
10972
|
});
|
|
10973
10973
|
}
|
|
10974
10974
|
};
|
|
10975
|
-
y(pn, "defaultStyle", new
|
|
10975
|
+
y(pn, "defaultStyle", new Ne({
|
|
10976
10976
|
fontFamily: "Ui",
|
|
10977
10977
|
fontWeight: "600",
|
|
10978
10978
|
fontSize: "20",
|
|
@@ -11006,14 +11006,14 @@ class nu extends Tt {
|
|
|
11006
11006
|
y(this, "_volatilityOdds", this._volatilityLevels.veryHigh);
|
|
11007
11007
|
y(this, "_winLevels");
|
|
11008
11008
|
y(this, "_coinsTextComponent");
|
|
11009
|
-
y(this, "_coinsTextStyle", new
|
|
11009
|
+
y(this, "_coinsTextStyle", new Ne({
|
|
11010
11010
|
...Rt.defaultStyle,
|
|
11011
11011
|
fontSize: 120,
|
|
11012
11012
|
stroke: 0,
|
|
11013
11013
|
strokeThickness: 6
|
|
11014
11014
|
}));
|
|
11015
11015
|
y(this, "_currencyTextComponent");
|
|
11016
|
-
y(this, "_currencyTextStyle", new
|
|
11016
|
+
y(this, "_currencyTextStyle", new Ne({
|
|
11017
11017
|
...Rt.defaultStyle,
|
|
11018
11018
|
fontSize: 80,
|
|
11019
11019
|
stroke: 0,
|
|
@@ -11074,7 +11074,7 @@ class nu extends Tt {
|
|
|
11074
11074
|
big: this._volatilityOdds[0] * 20,
|
|
11075
11075
|
super: this._volatilityOdds[1] * 20,
|
|
11076
11076
|
epic: this._volatilityOdds[2] * 20
|
|
11077
|
-
}, this.instance.interactive = !0, this.instance.buttonMode = !0, this._addBigWinContainer(), await Promise.all([this._addBlackout(), this._addTitle(), this._addCoinsLabel(), this._addCurrencyLabel()]), this.instance.sortChildren(), this.instance.buttonMode = !0, this.instance.interactive = !0, this.instance.hide(), this._bigWinContainer.sortChildren(),
|
|
11077
|
+
}, this.instance.interactive = !0, this.instance.buttonMode = !0, this._addBigWinContainer(), await Promise.all([this._addBlackout(), this._addTitle(), this._addCoinsLabel(), this._addCurrencyLabel()]), this.instance.sortChildren(), this.instance.buttonMode = !0, this.instance.interactive = !0, this.instance.hide(), this._bigWinContainer.sortChildren(), U.on("skip.tag:active", this.name, ({ tag: i }) => {
|
|
11078
11078
|
i === "bigwin" && this.skip();
|
|
11079
11079
|
}), this;
|
|
11080
11080
|
}
|
|
@@ -11084,7 +11084,7 @@ class nu extends Tt {
|
|
|
11084
11084
|
}
|
|
11085
11085
|
/** Adds blackout component */
|
|
11086
11086
|
async _addBlackout() {
|
|
11087
|
-
this._blackoutComponent = new _a("blackout",
|
|
11087
|
+
this._blackoutComponent = new _a("blackout", hi("renderer")), this._blackoutComponent.instance.zIndex = 0, await this._blackoutComponent.create(this.instance), this._components.push(this._blackoutComponent);
|
|
11088
11088
|
}
|
|
11089
11089
|
/** Adds "Biw win" title */
|
|
11090
11090
|
async _addTitle() {
|
|
@@ -11100,7 +11100,7 @@ class nu extends Tt {
|
|
|
11100
11100
|
}
|
|
11101
11101
|
/** @inheritdoc */
|
|
11102
11102
|
async destroy() {
|
|
11103
|
-
return
|
|
11103
|
+
return U.clear(this.name), await Promise.all(this._components.map((t) => t.destroy())), this;
|
|
11104
11104
|
}
|
|
11105
11105
|
/** @inheritdoc */
|
|
11106
11106
|
async draw() {
|
|
@@ -11110,12 +11110,12 @@ class nu extends Tt {
|
|
|
11110
11110
|
}
|
|
11111
11111
|
/** Start Big Win animation */
|
|
11112
11112
|
async animate(t) {
|
|
11113
|
-
this.isBigWin(t) && (await this.draw(), this._coinsFinal = t, this._createTimeline(), truelogic.hideUI(), await this._timeline, await Promise.all(this._promises), truelogic.showUI(), this._debug("animation is finished"), this._coinsFinal = 0,
|
|
11113
|
+
this.isBigWin(t) && (await this.draw(), this._coinsFinal = t, this._createTimeline(), truelogic.hideUI(), await this._timeline, await Promise.all(this._promises), truelogic.showUI(), this._debug("animation is finished"), this._coinsFinal = 0, U.emit("skip:disable", { tag: "bigwin" }));
|
|
11114
11114
|
}
|
|
11115
11115
|
/** Creates animations timeline with labels */
|
|
11116
11116
|
_createTimeline() {
|
|
11117
11117
|
let t = 0;
|
|
11118
|
-
this._timeline =
|
|
11118
|
+
this._timeline = Gt("BigWin").addLabel("big", t).call(
|
|
11119
11119
|
() => this._promises.push(this._big()),
|
|
11120
11120
|
null,
|
|
11121
11121
|
"big"
|
|
@@ -11159,7 +11159,7 @@ class nu extends Tt {
|
|
|
11159
11159
|
}
|
|
11160
11160
|
/** Makes win counter animation */
|
|
11161
11161
|
_animateCounter(t, i, n, s = 0) {
|
|
11162
|
-
return this._counterTl && this._counterTl.progress(1).kill(),
|
|
11162
|
+
return this._counterTl && this._counterTl.progress(1).kill(), Gt("BigWinCounter").fromTo(
|
|
11163
11163
|
this,
|
|
11164
11164
|
{ coins: t },
|
|
11165
11165
|
{
|
|
@@ -11180,7 +11180,7 @@ class nu extends Tt {
|
|
|
11180
11180
|
0,
|
|
11181
11181
|
this.isSuperWin() ? this._winLevels.super : this._coinsFinal,
|
|
11182
11182
|
this._durations.big + this._durations.bigLoop
|
|
11183
|
-
),
|
|
11183
|
+
), U.emit("skip:enable", { tag: "bigwin" }), await this._counterTl.then(), this._debug("big end");
|
|
11184
11184
|
}
|
|
11185
11185
|
/** Starts Big Win Loop callback */
|
|
11186
11186
|
async _bigLoop() {
|
|
@@ -11192,7 +11192,7 @@ class nu extends Tt {
|
|
|
11192
11192
|
this._winLevels.super,
|
|
11193
11193
|
this.isEpicWin() ? this._winLevels.epic : this._coinsFinal,
|
|
11194
11194
|
this._durations.super + this._durations.superLoop
|
|
11195
|
-
),
|
|
11195
|
+
), U.emit("skip:enable", { tag: "bigwin" }), await this._counterTl.then(), this._debug("super end");
|
|
11196
11196
|
}
|
|
11197
11197
|
/** Starts Super Win Loop callback */
|
|
11198
11198
|
async _superLoop() {
|
|
@@ -11204,7 +11204,7 @@ class nu extends Tt {
|
|
|
11204
11204
|
this._winLevels.epic,
|
|
11205
11205
|
this._coinsFinal,
|
|
11206
11206
|
this._durations.epic + this._durations.epicLoop
|
|
11207
|
-
),
|
|
11207
|
+
), U.emit("skip:enable", { tag: "bigwin" }), await this._counterTl.then(), this._debug("epic end");
|
|
11208
11208
|
}
|
|
11209
11209
|
/** Starts Epic Win Loop callback */
|
|
11210
11210
|
async _epicLoop() {
|
|
@@ -11220,7 +11220,7 @@ class nu extends Tt {
|
|
|
11220
11220
|
}
|
|
11221
11221
|
/** Jumps timeline to nex available label */
|
|
11222
11222
|
skip() {
|
|
11223
|
-
if (
|
|
11223
|
+
if (U.emit("skip:disable", { tag: "bigwin" }), this._timeline && this._timeline.isActive()) {
|
|
11224
11224
|
const t = this._timeline.currentLabel();
|
|
11225
11225
|
switch (!0) {
|
|
11226
11226
|
case ((t === "big" || t === "bigLoop") && this.isSuperWin()):
|
|
@@ -11356,7 +11356,7 @@ class ph extends Tt {
|
|
|
11356
11356
|
* Имитировать клик на кнопку
|
|
11357
11357
|
*/
|
|
11358
11358
|
click() {
|
|
11359
|
-
return this.disabled || (this._stateHovered = !0, this._stateClicked = !0, this.setTexture(), this.soundClick &&
|
|
11359
|
+
return this.disabled || (this._stateHovered = !0, this._stateClicked = !0, this.setTexture(), this.soundClick && U.emit("sounds:play", { name: this.soundClick }), U.emit("button:click", { name: this.name, modeOn: this._modeOn }), Sr(() => {
|
|
11360
11360
|
this._stateHovered = !1, this._stateClicked = !1, this.setTexture();
|
|
11361
11361
|
}, 100)), this;
|
|
11362
11362
|
}
|
|
@@ -11377,14 +11377,14 @@ class ph extends Tt {
|
|
|
11377
11377
|
* @param e
|
|
11378
11378
|
*/
|
|
11379
11379
|
_onPointerOver(t) {
|
|
11380
|
-
t && t.stopPropagation(), this._stateHovered = !0, !this.disabled && this.setTexture(), !this.disabled && this.emitHovers &&
|
|
11380
|
+
t && t.stopPropagation(), this._stateHovered = !0, !this.disabled && this.setTexture(), !this.disabled && this.emitHovers && U.emit("button.component:hover", { name: this.name });
|
|
11381
11381
|
}
|
|
11382
11382
|
/**
|
|
11383
11383
|
* Событие нажал на кнопке
|
|
11384
11384
|
* @param e
|
|
11385
11385
|
*/
|
|
11386
11386
|
_onPointerDown(t) {
|
|
11387
|
-
t && t.stopPropagation(), this._stateClicked = !0, !this.disabled && this.setTexture(), !this.disabled &&
|
|
11387
|
+
t && t.stopPropagation(), this._stateClicked = !0, !this.disabled && this.setTexture(), !this.disabled && U.emit("sounds:play", {
|
|
11388
11388
|
name: this._modeOn ? this.soundClick : this.soundClickOff,
|
|
11389
11389
|
tag: String(gn(1, 5))
|
|
11390
11390
|
});
|
|
@@ -11394,7 +11394,7 @@ class ph extends Tt {
|
|
|
11394
11394
|
* @param e
|
|
11395
11395
|
*/
|
|
11396
11396
|
_onPointerUp() {
|
|
11397
|
-
this._stateClicked = !1, !this.disabled && this.toggleMode(), !this.disabled &&
|
|
11397
|
+
this._stateClicked = !1, !this.disabled && this.toggleMode(), !this.disabled && U.emit("button:click", { name: this.name, modeOn: this._modeOn });
|
|
11398
11398
|
}
|
|
11399
11399
|
/**
|
|
11400
11400
|
* Событие отвёл нажатый курсор
|
|
@@ -11458,7 +11458,7 @@ class Gn extends ph {
|
|
|
11458
11458
|
}
|
|
11459
11459
|
/** */
|
|
11460
11460
|
async animateFadeToggle(t, i, n = this.duration) {
|
|
11461
|
-
this._tweenFade && this._tweenFade.isActive() && this._tweenFade.kill(), this._stateFaded = t, this._faded.renderable = !0, this._button.texture = i, this._tweenFade =
|
|
11461
|
+
this._tweenFade && this._tweenFade.isActive() && this._tweenFade.kill(), this._stateFaded = t, this._faded.renderable = !0, this._button.texture = i, this._tweenFade = re(this._faded, { alpha: t ? 1 : 0, duration: n, overwrite: !0 }), await this._tweenFade;
|
|
11462
11462
|
}
|
|
11463
11463
|
/** */
|
|
11464
11464
|
async animateModeToggle(t, i, n) {
|
|
@@ -11478,7 +11478,7 @@ class ru extends Gn {
|
|
|
11478
11478
|
constructor(t, i, n, s = null, o = !1, h, u) {
|
|
11479
11479
|
super(t, n, s, o);
|
|
11480
11480
|
y(this, "buttonText");
|
|
11481
|
-
y(this, "buttonTextStyle", new
|
|
11481
|
+
y(this, "buttonTextStyle", new Ne({
|
|
11482
11482
|
...Rt.defaultStyle,
|
|
11483
11483
|
fontWeight: "700",
|
|
11484
11484
|
fontSize: it.isDesktop ? 26 : 16,
|
|
@@ -12855,7 +12855,7 @@ const ei = class ei extends rh {
|
|
|
12855
12855
|
!this._customFolder && this._createCustomFolder(), !this._customGroups.has(n) && this._customGroups.set(n, this._customFolder.addFolder(n)), this._custom[s] = i;
|
|
12856
12856
|
const o = this._customGroups.get(n).add(this._custom, s).name(t).listen();
|
|
12857
12857
|
o.onChange((h) => {
|
|
12858
|
-
|
|
12858
|
+
U.emit("cheat.custom:changed", { name: t, value: h, group: n }), this._updatePreset();
|
|
12859
12859
|
}), typeof i == "number" && o.step(1e-3), this._customControllers.set(s, o);
|
|
12860
12860
|
}
|
|
12861
12861
|
/** обновить сгенерированный строковый пресет в поле ввода */
|
|
@@ -12909,7 +12909,7 @@ const ei = class ei extends rh {
|
|
|
12909
12909
|
try {
|
|
12910
12910
|
Object.entries(JSON.parse(t)).forEach(([i, n]) => {
|
|
12911
12911
|
const [s, o] = i.split(this._customGroupDelimiter);
|
|
12912
|
-
this._custom[i] !== n && (this._custom[i] = n,
|
|
12912
|
+
this._custom[i] !== n && (this._custom[i] = n, U.emit("cheat.custom:changed", { name: o, value: n, group: s }));
|
|
12913
12913
|
});
|
|
12914
12914
|
} catch {
|
|
12915
12915
|
console.warn("Invalid preset");
|
|
@@ -12919,13 +12919,13 @@ const ei = class ei extends rh {
|
|
|
12919
12919
|
y(ei, "_isTestMode", !1), y(ei, "_cheatInstance", null);
|
|
12920
12920
|
let Ue = ei;
|
|
12921
12921
|
function au(r) {
|
|
12922
|
-
return
|
|
12922
|
+
return hi("renderer").plugins.extract.image(r);
|
|
12923
12923
|
}
|
|
12924
12924
|
function ou(r) {
|
|
12925
|
-
return
|
|
12925
|
+
return hi("renderer").plugins.extract.base64(r);
|
|
12926
12926
|
}
|
|
12927
12927
|
function Th(r, e) {
|
|
12928
|
-
return
|
|
12928
|
+
return hi("renderer").generateTexture(r, e);
|
|
12929
12929
|
}
|
|
12930
12930
|
const Ph = (r, e, t) => {
|
|
12931
12931
|
const i = document.createElement("canvas");
|
|
@@ -12933,7 +12933,7 @@ const Ph = (r, e, t) => {
|
|
|
12933
12933
|
const n = i.getContext("2d"), s = n.createLinearGradient(0, r, 0, 0);
|
|
12934
12934
|
return e.forEach((o, h) => {
|
|
12935
12935
|
s.addColorStop(o, t[h]);
|
|
12936
|
-
}), n.fillStyle = s, n.fillRect(0, 0, 1, r),
|
|
12936
|
+
}), n.fillStyle = s, n.fillRect(0, 0, 1, r), wi.from(i);
|
|
12937
12937
|
}, Fh = 70, Eh = 1e3, Mh = 1e3, Ih = 1e3, Rh = 1e3, St = 1;
|
|
12938
12938
|
class lu extends Tt {
|
|
12939
12939
|
constructor(t) {
|
|
@@ -13008,7 +13008,7 @@ class hu extends Tt {
|
|
|
13008
13008
|
y(this, "_stateClicked", !1);
|
|
13009
13009
|
y(this, "_text", null);
|
|
13010
13010
|
y(this, "_initialText");
|
|
13011
|
-
y(this, "textStyle", new
|
|
13011
|
+
y(this, "textStyle", new Ne({
|
|
13012
13012
|
...Rt.defaultStyle,
|
|
13013
13013
|
fontFamily: "Ui",
|
|
13014
13014
|
fontWeight: "500",
|
|
@@ -13071,7 +13071,7 @@ class hu extends Tt {
|
|
|
13071
13071
|
}
|
|
13072
13072
|
/** Имитировать клик на ссылку */
|
|
13073
13073
|
click() {
|
|
13074
|
-
return this.disabled || (this._stateHovered = !0, this._stateClicked = !0, this.setTextColor(), this.soundClick &&
|
|
13074
|
+
return this.disabled || (this._stateHovered = !0, this._stateClicked = !0, this.setTextColor(), this.soundClick && U.emit("sounds:play", { name: this.soundClick }), U.emit("link.component:click", { name: this.name }), Sr(() => {
|
|
13075
13075
|
this._stateHovered = !1, this._stateClicked = !1, this.setTextColor();
|
|
13076
13076
|
}, 100)), this;
|
|
13077
13077
|
}
|
|
@@ -13088,21 +13088,21 @@ class hu extends Tt {
|
|
|
13088
13088
|
* @param e
|
|
13089
13089
|
*/
|
|
13090
13090
|
_onPointerOver(t) {
|
|
13091
|
-
t && t.stopPropagation(), this._stateHovered = !0, !this.disabled && this.setTextColor(), !this.disabled && this.emitHovers &&
|
|
13091
|
+
t && t.stopPropagation(), this._stateHovered = !0, !this.disabled && this.setTextColor(), !this.disabled && this.emitHovers && U.emit("link.component:hover", { name: this.name });
|
|
13092
13092
|
}
|
|
13093
13093
|
/**
|
|
13094
13094
|
* Событие нажатия на ссылке
|
|
13095
13095
|
* @param e
|
|
13096
13096
|
*/
|
|
13097
13097
|
_onPointerDown(t) {
|
|
13098
|
-
t && t.stopPropagation(), this._stateClicked = !0, !this.disabled && this.setTextColor(), !this.disabled &&
|
|
13098
|
+
t && t.stopPropagation(), this._stateClicked = !0, !this.disabled && this.setTextColor(), !this.disabled && U.emit("sounds:play", {
|
|
13099
13099
|
name: this.soundClick,
|
|
13100
13100
|
tag: String(gn(1, 5))
|
|
13101
13101
|
});
|
|
13102
13102
|
}
|
|
13103
13103
|
/** Событие отпустил курсор на ссылке */
|
|
13104
13104
|
_onPointerUp() {
|
|
13105
|
-
this._stateClicked = !1, !this.disabled && this.setTextColor(), !this.disabled &&
|
|
13105
|
+
this._stateClicked = !1, !this.disabled && this.setTextColor(), !this.disabled && U.emit("link.component:click", { name: this.name });
|
|
13106
13106
|
}
|
|
13107
13107
|
/**
|
|
13108
13108
|
* Событие отвёл нажатый курсор
|
|
@@ -13162,7 +13162,7 @@ class Oe {
|
|
|
13162
13162
|
return e.end !== e.start && (t.next = new Oe(typeof e.end == "string" ? nn(e.end) : e.end, 1)), t;
|
|
13163
13163
|
}
|
|
13164
13164
|
}
|
|
13165
|
-
let Qi =
|
|
13165
|
+
let Qi = wi.from;
|
|
13166
13166
|
const Be = Math.PI / 180;
|
|
13167
13167
|
function ze(r, e) {
|
|
13168
13168
|
if (!r)
|
|
@@ -13233,7 +13233,7 @@ var At;
|
|
|
13233
13233
|
(function(r) {
|
|
13234
13234
|
r[r.Spawn = 0] = "Spawn", r[r.Normal = 2] = "Normal", r[r.Late = 5] = "Late";
|
|
13235
13235
|
})(At || (At = {}));
|
|
13236
|
-
const Rn = je.shared,
|
|
13236
|
+
const Rn = je.shared, di = Symbol("Position particle per emitter position");
|
|
13237
13237
|
class bt {
|
|
13238
13238
|
/**
|
|
13239
13239
|
* @param particleParent The container to add the particles to.
|
|
@@ -13290,7 +13290,7 @@ class bt {
|
|
|
13290
13290
|
const n = bt.knownBehaviors[i.type];
|
|
13291
13291
|
return n ? new n(i.config) : (console.error(`Unknown behavior: ${i.type}`), null);
|
|
13292
13292
|
}).filter((i) => !!i);
|
|
13293
|
-
t.push(
|
|
13293
|
+
t.push(di), t.sort((i, n) => i === di ? n.order === At.Spawn ? 1 : -1 : n === di ? i.order === At.Spawn ? -1 : 1 : i.order - n.order), this.initBehaviors = t.slice(), this.updateBehaviors = t.filter((i) => i !== di && i.updateParticle), this.recycleBehaviors = t.filter((i) => i !== di && i.recycleParticle);
|
|
13294
13294
|
}
|
|
13295
13295
|
/**
|
|
13296
13296
|
* Gets the instantiated behavior of the specified type, if it is present on this emitter.
|
|
@@ -13443,7 +13443,7 @@ class bt {
|
|
|
13443
13443
|
this._activeParticlesLast ? (this._activeParticlesLast.next = u, u.prev = this._activeParticlesLast, this._activeParticlesLast = l) : (this._activeParticlesFirst = u, this._activeParticlesLast = l);
|
|
13444
13444
|
for (let f = 0; f < this.initBehaviors.length; ++f) {
|
|
13445
13445
|
const a = this.initBehaviors[f];
|
|
13446
|
-
if (a ===
|
|
13446
|
+
if (a === di)
|
|
13447
13447
|
for (let c = u, d; c; c = d) {
|
|
13448
13448
|
d = c.next, this.rotation !== 0 && (ze(this.rotation, c.position), c.rotation += this.rotation), c.position.x += o, c.position.y += h, c.age += -this._spawnTimer;
|
|
13449
13449
|
let p = c.age * c.oneOverLife;
|
|
@@ -13491,7 +13491,7 @@ class bt {
|
|
|
13491
13491
|
this._activeParticlesLast ? (this._activeParticlesLast.next = i, i.prev = this._activeParticlesLast, this._activeParticlesLast = n) : (this._activeParticlesFirst = i, this._activeParticlesLast = n);
|
|
13492
13492
|
for (let s = 0; s < this.initBehaviors.length; ++s) {
|
|
13493
13493
|
const o = this.initBehaviors[s];
|
|
13494
|
-
if (o ===
|
|
13494
|
+
if (o === di)
|
|
13495
13495
|
for (let h = i, u; h; h = u)
|
|
13496
13496
|
u = h.next, this.rotation !== 0 && (ze(this.rotation, h.position), h.rotation += this.rotation), h.position.x += e, h.position.y += t;
|
|
13497
13497
|
else
|
|
@@ -13636,14 +13636,14 @@ function Yh(r) {
|
|
|
13636
13636
|
const e = this.first.value, t = this.first.next.value, i = (t.r - e.r) * r + e.r, n = (t.g - e.g) * r + e.g, s = (t.b - e.b) * r + e.b;
|
|
13637
13637
|
return _n(i, n, s);
|
|
13638
13638
|
}
|
|
13639
|
-
function
|
|
13639
|
+
function Nh(r) {
|
|
13640
13640
|
this.ease && (r = this.ease(r));
|
|
13641
13641
|
let e = this.first, t = e.next;
|
|
13642
13642
|
for (; r > t.time; )
|
|
13643
13643
|
e = t, t = t.next;
|
|
13644
13644
|
return r = (r - e.time) / (t.time - e.time), (t.value - e.value) * r + e.value;
|
|
13645
13645
|
}
|
|
13646
|
-
function
|
|
13646
|
+
function Wh(r) {
|
|
13647
13647
|
this.ease && (r = this.ease(r));
|
|
13648
13648
|
let e = this.first, t = e.next;
|
|
13649
13649
|
for (; r > t.time; )
|
|
@@ -13680,7 +13680,7 @@ class Zi {
|
|
|
13680
13680
|
* @param first.isStepped If the values should be stepped instead of interpolated linearly.
|
|
13681
13681
|
*/
|
|
13682
13682
|
reset(e) {
|
|
13683
|
-
this.first = e, e.next && e.next.time >= 1 ? this.interpolate = this.isColor ? Yh : Dh : e.isStepped ? this.interpolate = this.isColor ? Vh : Xh : this.interpolate = this.isColor ?
|
|
13683
|
+
this.first = e, e.next && e.next.time >= 1 ? this.interpolate = this.isColor ? Yh : Dh : e.isStepped ? this.interpolate = this.isColor ? Vh : Xh : this.interpolate = this.isColor ? Wh : Nh, this.ease = this.first.ease;
|
|
13684
13684
|
}
|
|
13685
13685
|
}
|
|
13686
13686
|
class gs {
|
|
@@ -13716,7 +13716,7 @@ function Ca(r) {
|
|
|
13716
13716
|
let i = r[t];
|
|
13717
13717
|
if (typeof i == "string")
|
|
13718
13718
|
e.push(Qi(i));
|
|
13719
|
-
else if (i instanceof
|
|
13719
|
+
else if (i instanceof wi)
|
|
13720
13720
|
e.push(i);
|
|
13721
13721
|
else {
|
|
13722
13722
|
let n = i.count || 1;
|
|
@@ -13750,7 +13750,7 @@ class vs {
|
|
|
13750
13750
|
const i = e.config, n = i.anim;
|
|
13751
13751
|
i.animElapsed += t, i.animElapsed >= i.animDuration && (i.anim.loop ? i.animElapsed = i.animElapsed % i.animDuration : i.animElapsed = i.animDuration - 1e-6);
|
|
13752
13752
|
const s = i.animElapsed * i.animFramerate + 1e-7 | 0;
|
|
13753
|
-
e.texture = n.textures[s] || n.textures[n.textures.length - 1] ||
|
|
13753
|
+
e.texture = n.textures[s] || n.textures[n.textures.length - 1] || wi.EMPTY;
|
|
13754
13754
|
}
|
|
13755
13755
|
}
|
|
13756
13756
|
vs.type = "animatedRandom";
|
|
@@ -13776,7 +13776,7 @@ class ys {
|
|
|
13776
13776
|
const i = this.anim, n = e.config;
|
|
13777
13777
|
n.animElapsed += t, n.animElapsed >= n.animDuration && (i.loop ? n.animElapsed = n.animElapsed % n.animDuration : n.animElapsed = n.animDuration - 1e-6);
|
|
13778
13778
|
const s = n.animElapsed * n.animFramerate + 1e-7 | 0;
|
|
13779
|
-
e.texture = i.textures[s] || i.textures[i.textures.length - 1] ||
|
|
13779
|
+
e.texture = i.textures[s] || i.textures[i.textures.length - 1] || wi.EMPTY;
|
|
13780
13780
|
}
|
|
13781
13781
|
}
|
|
13782
13782
|
ys.type = "animatedSingle";
|
|
@@ -14172,7 +14172,7 @@ class cu extends Tt {
|
|
|
14172
14172
|
}
|
|
14173
14173
|
/** Starts particles animation */
|
|
14174
14174
|
start() {
|
|
14175
|
-
this._emitter || (this._emitter = new bt(this.instance, this._emitterConfig), this._emitter.emit = !0, this._elapsed = Date.now(), this._particlesTL = this._particlesTL =
|
|
14175
|
+
this._emitter || (this._emitter = new bt(this.instance, this._emitterConfig), this._emitter.emit = !0, this._elapsed = Date.now(), this._particlesTL = this._particlesTL = Gt(this.name, { repeat: -1 }).call(() => this._updateParticles()).call(() => {
|
|
14176
14176
|
}, null, 1 / this._fps));
|
|
14177
14177
|
}
|
|
14178
14178
|
/** Stops particle animation */
|
|
@@ -14228,7 +14228,7 @@ class uu extends Tt {
|
|
|
14228
14228
|
if (t > i.total) return this;
|
|
14229
14229
|
if (t >= 0) {
|
|
14230
14230
|
const n = i.filler.width * (t / i.total);
|
|
14231
|
-
i.position = t, this._twin && this._twin.kill(), this._twin =
|
|
14231
|
+
i.position = t, this._twin && this._twin.kill(), this._twin = re(this._mask.position, { x: n, duration: 0.2 }, !1), this._twin && await this._twin;
|
|
14232
14232
|
}
|
|
14233
14233
|
return this;
|
|
14234
14234
|
}
|
|
@@ -14255,7 +14255,7 @@ function un(r, e, t = !0) {
|
|
|
14255
14255
|
}
|
|
14256
14256
|
}
|
|
14257
14257
|
}
|
|
14258
|
-
const ir = new
|
|
14258
|
+
const ir = new Ne({
|
|
14259
14259
|
...Rt.defaultStyle,
|
|
14260
14260
|
fontSize: 100,
|
|
14261
14261
|
stroke: 0,
|
|
@@ -14329,11 +14329,11 @@ class du extends Tt {
|
|
|
14329
14329
|
}
|
|
14330
14330
|
/** */
|
|
14331
14331
|
async createBlackout() {
|
|
14332
|
-
this._config.blackout.enable && (this._blackout = new _a("blackout",
|
|
14332
|
+
this._config.blackout.enable && (this._blackout = new _a("blackout", hi("renderer")), this._blackout.instance.zIndex = 0, this._blackout.scale.set(10), this._blackout && this._blackout.position.set(-1e3, -1e3), await this._blackout.create(this.instance));
|
|
14333
14333
|
}
|
|
14334
14334
|
/** */
|
|
14335
14335
|
createSpineBackground() {
|
|
14336
|
-
this._config.spine.enable && (this._bgSpine =
|
|
14336
|
+
this._config.spine.enable && (this._bgSpine = li.getSpineAnimation(this._config.spine.assetName), this._bgSpine.position.copyFrom(this._config.spine.position), this._bgSpine.visible = !1, this._bgSpine.pivot.set(ft.CENTER, ft.CENTER), this.instance.addChild(this._bgSpine));
|
|
14337
14337
|
}
|
|
14338
14338
|
/** */
|
|
14339
14339
|
createStaticBackground() {
|
|
@@ -14348,11 +14348,11 @@ class du extends Tt {
|
|
|
14348
14348
|
/** */
|
|
14349
14349
|
async createNumber() {
|
|
14350
14350
|
if (this._config.number.enable)
|
|
14351
|
-
return this._config.number.isBitmap ? (this._number = new
|
|
14351
|
+
return this._config.number.isBitmap ? (this._number = new pi("", this._config.number.bitmapStyle), this.instance.addChild(this._number), this._number.anchor.set(0.5, 0.5)) : (this._number = new Rt("number", "", this._config.number.textStyle), await this._number.create(this.instance), this._number.setAnchor(0.5, 0.5)), this._number.visible = !1, this;
|
|
14352
14352
|
}
|
|
14353
14353
|
/** */
|
|
14354
14354
|
async animateRetrigger(t) {
|
|
14355
|
-
const { blackoutColor: i, blackoutAlpha: n } = this._config.blackout, s =
|
|
14355
|
+
const { blackoutColor: i, blackoutAlpha: n } = this._config.blackout, s = Gt();
|
|
14356
14356
|
if (this._config.spine.enable && this._bgSpine) {
|
|
14357
14357
|
const { durationFadeIn: o, durationFadeOut: h, delayFadeOut: u, loop: l } = this._config.spine;
|
|
14358
14358
|
this._bgSpine.visible = !0, this._bgSpine.alpha = 0, s.to(this._bgSpine, { alpha: 1, duration: o }, 0), s.to(this._bgSpine, { alpha: 0, duration: h }, u), this._bgSpine.animate(this._config.spine.animationName, l);
|
|
@@ -14465,7 +14465,7 @@ class Uh extends Tt {
|
|
|
14465
14465
|
if (!this._slides.has(t)) return;
|
|
14466
14466
|
this._currentSlide = t, this._slideTl && this._slideTl.kill();
|
|
14467
14467
|
const n = this._slides.get(t);
|
|
14468
|
-
this._slideTl =
|
|
14468
|
+
this._slideTl = Gt().to(this._reelContainer, { x: -n.x, duration: 0.5 }, 0).call(() => this._slides.get(this._currentSlide).onMoveIn()), !i && this._slideTl && this._slideTl.progress(1);
|
|
14469
14469
|
}
|
|
14470
14470
|
/** Moves slides to the next position */
|
|
14471
14471
|
async slideToNext() {
|
|
@@ -14501,7 +14501,7 @@ class Uh extends Tt {
|
|
|
14501
14501
|
if (n) {
|
|
14502
14502
|
this._swipeDirection = this._startPressPosition >= i ? 1 : -1;
|
|
14503
14503
|
const o = Math.floor((-this._reelContainer.x + s / 2) / s) + this._swipeDirection, h = o < 0 ? 0 : o >= this._slides.size ? this._slides.size - 1 : o;
|
|
14504
|
-
h !== this._currentSlide && (this._currentSlide = h,
|
|
14504
|
+
h !== this._currentSlide && (this._currentSlide = h, U.emit("slideshow.current.slide:changed"));
|
|
14505
14505
|
}
|
|
14506
14506
|
this._pressed = !1, this.slideTo(this._currentSlide);
|
|
14507
14507
|
}
|
|
@@ -14646,7 +14646,7 @@ class fu extends Tt {
|
|
|
14646
14646
|
}
|
|
14647
14647
|
/** Adds listeners */
|
|
14648
14648
|
_addEventListeners() {
|
|
14649
|
-
|
|
14649
|
+
U.on("button:click", this.name, ({ name: t }) => {
|
|
14650
14650
|
t === "next.btn" ? (this._reelComponent.slideToNext(), this._updateUiStates()) : t === "prev.btn" && (this._reelComponent.slideToPrev(), this._updateUiStates());
|
|
14651
14651
|
}).on("slideshow.current.slide:changed", this.name, () => {
|
|
14652
14652
|
this._updateUiStates();
|
|
@@ -14691,7 +14691,7 @@ class pu extends Pa {
|
|
|
14691
14691
|
}
|
|
14692
14692
|
/** Starts frames animations */
|
|
14693
14693
|
async start(t) {
|
|
14694
|
-
this.break(), t.map((i) => this.animateFrame(i)), this._breakableSleep =
|
|
14694
|
+
this.break(), t.map((i) => this.animateFrame(i)), this._breakableSleep = Gt().call(() => this.stop(), null, this._duration / 1e3), await this._breakableSleep;
|
|
14695
14695
|
}
|
|
14696
14696
|
/** @inheritdoc */
|
|
14697
14697
|
break() {
|
|
@@ -14720,21 +14720,33 @@ class mu extends Pa {
|
|
|
14720
14720
|
constructor() {
|
|
14721
14721
|
super(...arguments);
|
|
14722
14722
|
y(this, "_spines", []);
|
|
14723
|
-
y(this, "
|
|
14723
|
+
y(this, "_spinePool", /* @__PURE__ */ new Map());
|
|
14724
14724
|
y(this, "_durationMS");
|
|
14725
14725
|
y(this, "_promise");
|
|
14726
14726
|
y(this, "_resolve");
|
|
14727
14727
|
}
|
|
14728
14728
|
/** @inheritdoc */
|
|
14729
14729
|
async create(t) {
|
|
14730
|
-
return
|
|
14730
|
+
return await super.create(t), this._prepareSpines(), this;
|
|
14731
|
+
}
|
|
14732
|
+
/**
|
|
14733
|
+
* Pre-creates one Spine per grid position and adds them to the component container
|
|
14734
|
+
* in hidden state. Called once during `create()`.
|
|
14735
|
+
*/
|
|
14736
|
+
_prepareSpines() {
|
|
14737
|
+
for (const [i] of this._config.grid) {
|
|
14738
|
+
const n = li.getSpineAnimation(this._config.assetName, this._config.scale);
|
|
14739
|
+
n.position.copyFrom(this._config.grid.get(i)), n.hide(), this.instance.addChild(n), this._spinePool.set(i, n);
|
|
14740
|
+
}
|
|
14741
|
+
const t = this._spinePool.values().next().value;
|
|
14742
|
+
this._durationMS = t ? t.spineData.animations[0].duration * 1e3 : 0;
|
|
14731
14743
|
}
|
|
14732
14744
|
/** @inheritdoc */
|
|
14733
14745
|
async start(t) {
|
|
14734
14746
|
this._promise && this.break(), this._promise = new Promise((i) => this._resolve = i), t.forEach((i) => {
|
|
14735
|
-
const n = this.
|
|
14736
|
-
n
|
|
14737
|
-
}), await Promise.race([this._promise,
|
|
14747
|
+
const n = this._spinePool.get(i);
|
|
14748
|
+
n && (n.show(), n.animate(this._config.animationName, !1, !1, rt(...this._config.timeScale) || 1), this._spines.push(n));
|
|
14749
|
+
}), await Promise.race([this._promise, yi(this._durationMS)]), this._returnSpinesToPool();
|
|
14738
14750
|
}
|
|
14739
14751
|
/** */
|
|
14740
14752
|
break() {
|
|
@@ -14742,12 +14754,14 @@ class mu extends Pa {
|
|
|
14742
14754
|
}
|
|
14743
14755
|
/** @inheritdoc */
|
|
14744
14756
|
async destroy() {
|
|
14745
|
-
|
|
14757
|
+
for (const t of this._spinePool.values())
|
|
14758
|
+
t.destroy();
|
|
14759
|
+
return this._spinePool.clear(), super.destroy();
|
|
14746
14760
|
}
|
|
14747
|
-
/** */
|
|
14748
|
-
|
|
14761
|
+
/** Resets active spines back to the pool (hidden and cleared) */
|
|
14762
|
+
_returnSpinesToPool() {
|
|
14749
14763
|
this._spines.forEach((t) => {
|
|
14750
|
-
|
|
14764
|
+
t.state.clearTracks(), t.skeleton.setToSetupPose(), t.hide();
|
|
14751
14765
|
}), this._spines = [], this._promise = null;
|
|
14752
14766
|
}
|
|
14753
14767
|
}
|
|
@@ -14793,8 +14807,8 @@ class gu extends Tt {
|
|
|
14793
14807
|
this._config.upscaleDescription ?? !1
|
|
14794
14808
|
), this.instance.on("pointerup", (i) => {
|
|
14795
14809
|
const { x: n, y: s } = i.data.getLocalPosition(this.instance);
|
|
14796
|
-
|
|
14797
|
-
}),
|
|
14810
|
+
U.emit("hints.component:click", { name: this.name, x: n, y: s });
|
|
14811
|
+
}), U.on("renderer:event", this.name, ({ eventType: i, event: n }) => {
|
|
14798
14812
|
i === "pointerup" && !(n.target && (n.target === this.instance || n.target === this._spritePlate)) && this.close();
|
|
14799
14813
|
}), truelogic.emitter.game.on("stake:changed", async () => {
|
|
14800
14814
|
this._current && (await this.setPayouts(this._current.code, this._current.iReel), await this._applySynchronizedScaling());
|
|
@@ -14827,7 +14841,7 @@ class gu extends Tt {
|
|
|
14827
14841
|
), o ? this._textDescription.position.set(p.x, p.y) : this._textDescription.position.set(p.x, 0);
|
|
14828
14842
|
} else
|
|
14829
14843
|
this._textDescription.visible = !1;
|
|
14830
|
-
await this._applySynchronizedScaling(), this._current = { iReel: t, iRow: i, code: n }, this._config.events &&
|
|
14844
|
+
await this._applySynchronizedScaling(), this._current = { iReel: t, iRow: i, code: n }, this._config.events && U.emit("hints.component:open", {
|
|
14831
14845
|
name: this.name,
|
|
14832
14846
|
current: this._current
|
|
14833
14847
|
});
|
|
@@ -14895,7 +14909,7 @@ class gu extends Tt {
|
|
|
14895
14909
|
`);
|
|
14896
14910
|
if (i !== void 0) {
|
|
14897
14911
|
const l = this._getStyle("styleLengths", i, t), f = this._getStyle("styleBets", i, t);
|
|
14898
|
-
l && Object.keys(l).length > 0 && await this._textLengths.setStyles(new
|
|
14912
|
+
l && Object.keys(l).length > 0 && await this._textLengths.setStyles(new Ne(l)), f && Object.keys(f).length > 0 && await this._textBets.setStyles(new Ne(f));
|
|
14899
14913
|
const a = this._getPosition("lengths", i, t), c = this._getPosition("bets", i, t);
|
|
14900
14914
|
this._textLengths.position.set(a.x, a.y), this._textBets.position.set(c.x, c.y);
|
|
14901
14915
|
}
|
|
@@ -14903,7 +14917,7 @@ class gu extends Tt {
|
|
|
14903
14917
|
}
|
|
14904
14918
|
/** Closes hint */
|
|
14905
14919
|
async close() {
|
|
14906
|
-
this._current !== null && (this._config.events &&
|
|
14920
|
+
this._current !== null && (this._config.events && U.emit("hints.component:close", {
|
|
14907
14921
|
name: this.name,
|
|
14908
14922
|
current: this._current
|
|
14909
14923
|
}), this._current = null, this.instance.removeChild(this._hintContainer));
|
|
@@ -14945,20 +14959,20 @@ class _u extends Kh {
|
|
|
14945
14959
|
}
|
|
14946
14960
|
/** @inheritdoc */
|
|
14947
14961
|
async start(t) {
|
|
14948
|
-
this._isProcessing || (this._animation || (this._animation =
|
|
14962
|
+
this._isProcessing || (this._animation || (this._animation = li.getSpineAnimation(this._config.assetName), this._animation.scale.set(this._config.scale.x, this._config.scale.y), this._animation.hide(), this._animation.alpha = 0, this.instance.addChild(this._animation)), this._isProcessing = !0, this._iReel = t, this._tweenFade && this._tweenFade.isActive() && this._tweenFade.progress(1), this._animation.position = this._config.grid.get(this._iReel).clone(), this._animation.position.x += this._config.offset.x, this._animation.position.y += this._config.offset.y, this._animation.show(), this._animation.animate(this._config.animationName, !0), this._config.events.start && U.emit("intrigue.component:start", {
|
|
14949
14963
|
name: this.name,
|
|
14950
14964
|
iReel: this._iReel
|
|
14951
|
-
}), this._tweenFade =
|
|
14965
|
+
}), this._tweenFade = re(this._animation, {
|
|
14952
14966
|
alpha: 1,
|
|
14953
14967
|
duration: rt.apply(this, this._config.durationFadeIn) / 1e3
|
|
14954
14968
|
}));
|
|
14955
14969
|
}
|
|
14956
14970
|
/** @inheritdoc */
|
|
14957
14971
|
async stop(t) {
|
|
14958
|
-
this._isProcessing && (this._tweenFade && this._tweenFade.isActive() && this._tweenFade.progress(1),
|
|
14972
|
+
this._isProcessing && (this._tweenFade && this._tweenFade.isActive() && this._tweenFade.progress(1), U.emit("intrigue.component:stop", {
|
|
14959
14973
|
name: this.name,
|
|
14960
14974
|
iReel: this._iReel
|
|
14961
|
-
}), this._isProcessing = !1, this._tweenFade =
|
|
14975
|
+
}), this._isProcessing = !1, this._tweenFade = re(this._animation, {
|
|
14962
14976
|
alpha: 0,
|
|
14963
14977
|
duration: rt.apply(this, this._config.durationFadeOut) / 1e3,
|
|
14964
14978
|
onComplete: () => {
|
|
@@ -14999,7 +15013,7 @@ class vu extends Ea {
|
|
|
14999
15013
|
constructor(t, i) {
|
|
15000
15014
|
super(t, i);
|
|
15001
15015
|
y(this, "timelines", /* @__PURE__ */ new Set());
|
|
15002
|
-
y(this, "
|
|
15016
|
+
y(this, "_spinePool", []);
|
|
15003
15017
|
y(this, "_lineSpines", []);
|
|
15004
15018
|
y(this, "_animation");
|
|
15005
15019
|
y(this, "_boneNames");
|
|
@@ -15011,9 +15025,29 @@ class vu extends Ea {
|
|
|
15011
15025
|
}
|
|
15012
15026
|
/** @inheritdoc */
|
|
15013
15027
|
async create(t) {
|
|
15014
|
-
await super.create(t);
|
|
15015
|
-
|
|
15016
|
-
|
|
15028
|
+
return await super.create(t), this.instance.position.set(this._grid.center.x, this._grid.center.y), this._prepareSpines(), this;
|
|
15029
|
+
}
|
|
15030
|
+
/**
|
|
15031
|
+
* Pre-creates Spine instances for the pool and adds them to the component container
|
|
15032
|
+
* in hidden state. Called once during `create()`.
|
|
15033
|
+
*/
|
|
15034
|
+
_prepareSpines() {
|
|
15035
|
+
const { assetName: t } = this._config.spine, i = this._useDoubleAnimation ? 2 : 1;
|
|
15036
|
+
for (let n = 0; n < i; n++) {
|
|
15037
|
+
const s = li.getSpineAnimation(t);
|
|
15038
|
+
s.alpha = this._alpha, s.hide(), this.instance.addChild(s), this._spinePool.push(s);
|
|
15039
|
+
}
|
|
15040
|
+
}
|
|
15041
|
+
/** Returns the first available (hidden) spine from the pool, growing the pool if all are in use */
|
|
15042
|
+
_getPooledSpine() {
|
|
15043
|
+
const t = this._spinePool.find((s) => !s.visible);
|
|
15044
|
+
if (t) return t;
|
|
15045
|
+
const { assetName: i } = this._config.spine, n = li.getSpineAnimation(i);
|
|
15046
|
+
return n.alpha = this._alpha, n.hide(), this.instance.addChild(n), this._spinePool.push(n), n;
|
|
15047
|
+
}
|
|
15048
|
+
/** Resets a pooled spine back to its idle state */
|
|
15049
|
+
_resetPoolSpine(t) {
|
|
15050
|
+
t.state.clearTracks(), t.skeleton.setToSetupPose(), t.alpha = this._alpha, t.hide();
|
|
15017
15051
|
}
|
|
15018
15052
|
/** Animates line */
|
|
15019
15053
|
async animate(t, i) {
|
|
@@ -15061,20 +15095,22 @@ class vu extends Ea {
|
|
|
15061
15095
|
}
|
|
15062
15096
|
/** Animates line by grid positions */
|
|
15063
15097
|
async animateLineByPositions(t, i = 1, n = 0, s) {
|
|
15064
|
-
const o =
|
|
15065
|
-
|
|
15066
|
-
const
|
|
15067
|
-
|
|
15068
|
-
|
|
15098
|
+
const o = this._getPooledSpine();
|
|
15099
|
+
o.alpha = this._alpha;
|
|
15100
|
+
const h = this._boneNames.map((m) => o.skeleton.findBone(m)), { offsets: u, rotations: l } = this._calculateLineData(t);
|
|
15101
|
+
h.forEach((m, _) => {
|
|
15102
|
+
m && (m.y = u[_] + n, m.rotation = l[_]);
|
|
15069
15103
|
});
|
|
15070
|
-
const { offsetX:
|
|
15071
|
-
if (typeof
|
|
15072
|
-
const
|
|
15073
|
-
|
|
15074
|
-
} else typeof
|
|
15075
|
-
|
|
15076
|
-
const
|
|
15077
|
-
|
|
15104
|
+
const { offsetX: f } = this._config.spine, a = this._grid.points.get(t[0]);
|
|
15105
|
+
if (typeof f == "function") {
|
|
15106
|
+
const m = f(s ?? 0);
|
|
15107
|
+
o.position.x = m;
|
|
15108
|
+
} else typeof f == "number" ? o.position.x = f : a && (o.position.x = a.x);
|
|
15109
|
+
o.show(), this._lineSpines.push(o);
|
|
15110
|
+
const c = this._animation || "", d = o.getDurationMs(c) / 1e3, p = Gt().call(() => o.animate(c, !1, !1, i)).to({}, { delay: 0.5 }, d).call(() => {
|
|
15111
|
+
this.timelines.delete(p), this._lineSpines = this._lineSpines.filter((m) => m !== o), this._resetPoolSpine(o);
|
|
15112
|
+
});
|
|
15113
|
+
return this.timelines.add(p), await p, this;
|
|
15078
15114
|
}
|
|
15079
15115
|
/**
|
|
15080
15116
|
* Animates double line (for layered effect with two parallel animations)
|
|
@@ -15096,15 +15132,15 @@ class vu extends Ea {
|
|
|
15096
15132
|
/** Breaks animation */
|
|
15097
15133
|
break() {
|
|
15098
15134
|
this.timelines.forEach((t) => {
|
|
15099
|
-
t.
|
|
15100
|
-
}), this.timelines.clear(), this._lineSpines.forEach((t) =>
|
|
15101
|
-
t.visible = !1, t.destroy();
|
|
15102
|
-
}), this._lineSpines = [];
|
|
15135
|
+
t.seek(t.endTime(), !1);
|
|
15136
|
+
}), this.timelines.clear(), this._lineSpines.forEach((t) => this._resetPoolSpine(t)), this._lineSpines = [];
|
|
15103
15137
|
}
|
|
15104
15138
|
/** @inheritdoc */
|
|
15105
15139
|
async destroy() {
|
|
15106
|
-
|
|
15107
|
-
|
|
15140
|
+
this.break();
|
|
15141
|
+
for (const t of this._spinePool)
|
|
15142
|
+
t.destroy();
|
|
15143
|
+
return this._spinePool = [], await super.destroy(), this.instance.removeChildren(), this;
|
|
15108
15144
|
}
|
|
15109
15145
|
}
|
|
15110
15146
|
function Qh(r) {
|
|
@@ -15117,7 +15153,7 @@ function Qh(r) {
|
|
|
15117
15153
|
});
|
|
15118
15154
|
}
|
|
15119
15155
|
function Jh(r, e = 10, t = "power1.inOut") {
|
|
15120
|
-
const i = [], n =
|
|
15156
|
+
const i = [], n = zt.parseEase(t), s = (r.length - 1) * e;
|
|
15121
15157
|
for (let o = 0; o < s; o += 1) {
|
|
15122
15158
|
const h = Math.floor(o / e), u = r[h], l = r[h + 1], f = (o - h * e) / e, a = l.y - u.y, c = l.x - u.x;
|
|
15123
15159
|
i.push(new Ft(u.x + c * f, u.y + a * n(f)));
|
|
@@ -15139,7 +15175,7 @@ class yu extends Ea {
|
|
|
15139
15175
|
async animate(t, i) {
|
|
15140
15176
|
const { duration: n } = this._config.static, s = this.createLine(t);
|
|
15141
15177
|
s.alpha = 0;
|
|
15142
|
-
const o =
|
|
15178
|
+
const o = zt.timeline().to(s, { pixi: { alpha: 1 }, duration: (n.fadeIn || 200) / 1e3 }).to(
|
|
15143
15179
|
s,
|
|
15144
15180
|
{ pixi: { alpha: 0 }, duration: (n.fadeOut || 200) / 1e3 },
|
|
15145
15181
|
`+=${(n.display || 0) / 1e3}`
|
|
@@ -15170,12 +15206,12 @@ class yu extends Ea {
|
|
|
15170
15206
|
/** Show preview line */
|
|
15171
15207
|
async showPreviewLine(t) {
|
|
15172
15208
|
const i = this.createLine(t);
|
|
15173
|
-
i.alpha = 0,
|
|
15209
|
+
i.alpha = 0, zt.timeline().to(i, { pixi: { alpha: 1 }, duration: 0.2 }).to(i, { pixi: { alpha: 0 }, duration: 0.2 }, "+=1.8"), this.previewLines.push(i);
|
|
15174
15210
|
}
|
|
15175
15211
|
/** Hide preview line with animation */
|
|
15176
15212
|
async hidePreviewLine() {
|
|
15177
15213
|
const t = this.previewLines.map((i) => new Promise((n) => {
|
|
15178
|
-
|
|
15214
|
+
zt.timeline().to(i, { pixi: { alpha: 0 }, duration: 0.2 }).then(() => {
|
|
15179
15215
|
i.destroy(), this.instance.removeChildren(), n();
|
|
15180
15216
|
});
|
|
15181
15217
|
}));
|
|
@@ -15246,7 +15282,7 @@ var ai, dn, nr, ve, ji, Ma, qn, yn, Ia = function() {
|
|
|
15246
15282
|
for (i in e)
|
|
15247
15283
|
t[i] = e[i];
|
|
15248
15284
|
return t;
|
|
15249
|
-
},
|
|
15285
|
+
}, ce = {
|
|
15250
15286
|
contrast: 1,
|
|
15251
15287
|
saturation: 1,
|
|
15252
15288
|
colorizeAmount: 0,
|
|
@@ -15254,8 +15290,8 @@ var ai, dn, nr, ve, ji, Ma, qn, yn, Ia = function() {
|
|
|
15254
15290
|
hue: 0,
|
|
15255
15291
|
brightness: 1
|
|
15256
15292
|
}, ec = function(e, t, i) {
|
|
15257
|
-
var n = Oa(e, "ColorMatrixFilter"), s = e._gsColorMatrixFilter = e._gsColorMatrixFilter || tc(
|
|
15258
|
-
for (l = n.matrix, t.resolution && (n.resolution = t.resolution), t.matrix && t.matrix.length === l.length ? (u = t.matrix, s.contrast !== 1 && $t("contrast", i, s,
|
|
15293
|
+
var n = Oa(e, "ColorMatrixFilter"), s = e._gsColorMatrixFilter = e._gsColorMatrixFilter || tc(ce), o = t.combineCMF && !("colorMatrixFilter" in t && !t.colorMatrixFilter), h, u, l;
|
|
15294
|
+
for (l = n.matrix, t.resolution && (n.resolution = t.resolution), t.matrix && t.matrix.length === l.length ? (u = t.matrix, s.contrast !== 1 && $t("contrast", i, s, ce), s.hue && $t("hue", i, s, ce), s.brightness !== 1 && $t("brightness", i, s, ce), s.colorizeAmount && ($t("colorize", i, s, ce), $t("colorizeAmount", i, s, ce)), s.saturation !== 1 && $t("saturation", i, s, ce)) : (u = Zh.slice(), t.contrast != null ? (u = or(u, +t.contrast), $t("contrast", i, s, t)) : s.contrast !== 1 && (o ? u = or(u, s.contrast) : $t("contrast", i, s, ce)), t.hue != null ? (u = ar(u, +t.hue), $t("hue", i, s, t)) : s.hue && (o ? u = ar(u, s.hue) : $t("hue", i, s, ce)), t.brightness != null ? (u = lr(+t.brightness, u), $t("brightness", i, s, t)) : s.brightness !== 1 && (o ? u = lr(s.brightness, u) : $t("brightness", i, s, ce)), t.colorize != null ? (t.colorizeAmount = "colorizeAmount" in t ? +t.colorizeAmount : 1, u = rr(u, t.colorize, t.colorizeAmount), $t("colorize", i, s, t), $t("colorizeAmount", i, s, t)) : s.colorizeAmount && (o ? u = rr(u, s.colorize, s.colorizeAmount) : ($t("colorize", i, s, ce), $t("colorizeAmount", i, s, ce))), t.saturation != null ? (u = sr(u, +t.saturation), $t("saturation", i, s, t)) : s.saturation !== 1 && (o ? u = sr(u, s.saturation) : $t("saturation", i, s, ce))), h = u.length; --h > -1; )
|
|
15259
15295
|
u[h] !== l[h] && i.add(l, h, l[h], u[h], "colorMatrixFilter");
|
|
15260
15296
|
i._props.push("colorMatrixFilter");
|
|
15261
15297
|
}, ic = function(e, t) {
|
|
@@ -15355,8 +15391,8 @@ var Ya = {
|
|
|
15355
15391
|
}
|
|
15356
15392
|
};
|
|
15357
15393
|
Ra() && ai.registerPlugin(Ya);
|
|
15358
|
-
|
|
15359
|
-
class
|
|
15394
|
+
zt.registerPlugin(Ya);
|
|
15395
|
+
class Na extends Tt {
|
|
15360
15396
|
constructor(t, i, n) {
|
|
15361
15397
|
super(t);
|
|
15362
15398
|
y(this, "_config");
|
|
@@ -15389,7 +15425,7 @@ class Wa extends Tt {
|
|
|
15389
15425
|
}
|
|
15390
15426
|
_animateTween(t, i) {
|
|
15391
15427
|
const n = this._getAnimationVars(i);
|
|
15392
|
-
return
|
|
15428
|
+
return zt.to(t, n);
|
|
15393
15429
|
}
|
|
15394
15430
|
getShowTween(t) {
|
|
15395
15431
|
const i = this._payouts.get(t), { animation: n } = this._config;
|
|
@@ -15404,7 +15440,7 @@ class Wa extends Tt {
|
|
|
15404
15440
|
const i = this._payouts.get(t), n = (f = this._config.animation) == null ? void 0 : f.counter, s = n.duration ? n.duration / 1e3 : this._durationDisplay / 1e3, o = ((a = i.options) == null ? void 0 : a.counterStartValue) ?? i.counterValue, h = typeof t.cash == "number" ? t.cash : 0;
|
|
15405
15441
|
if (o === h) return null;
|
|
15406
15442
|
const u = n.ease || this._defaultEaseCounter, l = { value: o };
|
|
15407
|
-
return
|
|
15443
|
+
return zt.fromTo(
|
|
15408
15444
|
l,
|
|
15409
15445
|
{ value: o, immediateRender: !1 },
|
|
15410
15446
|
{
|
|
@@ -15458,7 +15494,7 @@ class Wa extends Tt {
|
|
|
15458
15494
|
*/
|
|
15459
15495
|
async _animateContainer(t) {
|
|
15460
15496
|
var l;
|
|
15461
|
-
const i = this._payouts.get(t), { animation: n } = this._config, s = this._showDuration, o =
|
|
15497
|
+
const i = this._payouts.get(t), { animation: n } = this._config, s = this._showDuration, o = Gt(), h = this.getShowTween(t);
|
|
15462
15498
|
if (h && o.add(h), o.addLabel("displayStart", s), (l = n == null ? void 0 : n.counter) != null && l.enabled) {
|
|
15463
15499
|
const f = this._getCounterTween(t);
|
|
15464
15500
|
if (f) {
|
|
@@ -15477,7 +15513,7 @@ class Wa extends Tt {
|
|
|
15477
15513
|
const n = this._payouts.get(t);
|
|
15478
15514
|
if (!n) return;
|
|
15479
15515
|
const { textComponent: s } = n, o = (u = this._config.text) == null ? void 0 : u.currency, h = (o == null ? void 0 : o.enabled) !== !1 && !(o != null && o.style);
|
|
15480
|
-
if (s instanceof
|
|
15516
|
+
if (s instanceof pi) {
|
|
15481
15517
|
const l = h && !(o != null && o.style);
|
|
15482
15518
|
typeof truelogic < "u" && truelogic.cashFormatter ? s.currencyFormat(i, l) : s.text = i.toLocaleString();
|
|
15483
15519
|
} else if (s instanceof Rt) {
|
|
@@ -15519,7 +15555,7 @@ class Wa extends Tt {
|
|
|
15519
15555
|
if (!(n != null && n.style))
|
|
15520
15556
|
return null;
|
|
15521
15557
|
let s;
|
|
15522
|
-
return "assetName" in n.style ? (s = new
|
|
15558
|
+
return "assetName" in n.style ? (s = new pi(n.value, n.style), s.anchor.set(0.5), t.addChild(s)) : (s = new Rt(
|
|
15523
15559
|
`currency-${Date.now()}`,
|
|
15524
15560
|
n.value,
|
|
15525
15561
|
n.style,
|
|
@@ -15531,7 +15567,7 @@ class Wa extends Tt {
|
|
|
15531
15567
|
if (!n.style)
|
|
15532
15568
|
throw new Error("TTextConfig.style обязателен");
|
|
15533
15569
|
let s;
|
|
15534
|
-
"assetName" in n.style ? (s = new
|
|
15570
|
+
"assetName" in n.style ? (s = new pi("", n.style), s.anchor.set(0.5), n.maxWidth && s.setMaxWidth(n.maxWidth), i.addChild(s)) : (s = new Rt(`payout-text-${Date.now()}`, "", n.style, {
|
|
15535
15571
|
upscale: n.upscale
|
|
15536
15572
|
}), await s.create(i), s.setAnchor(0.5)), n.textOffset && s.position.set(n.textOffset.x, n.textOffset.y);
|
|
15537
15573
|
const o = await this._createCurrencyText(i);
|
|
@@ -15550,7 +15586,7 @@ class Wa extends Tt {
|
|
|
15550
15586
|
i.counterValue = h;
|
|
15551
15587
|
let l;
|
|
15552
15588
|
if (typeof truelogic < "u" && truelogic.cashFormatter)
|
|
15553
|
-
if (s instanceof
|
|
15589
|
+
if (s instanceof pi && o) {
|
|
15554
15590
|
s.currencyFormat(h, !0);
|
|
15555
15591
|
return;
|
|
15556
15592
|
} else
|
|
@@ -15564,8 +15600,8 @@ class Wa extends Tt {
|
|
|
15564
15600
|
const n = this._payouts.get(t);
|
|
15565
15601
|
if (!n) return;
|
|
15566
15602
|
const { textComponent: s, currencyComponent: o } = n, h = (d = this._config.text) == null ? void 0 : d.currency, u = i ?? (this._grid.reelWidth ? this._grid.reelWidth * 1.5 : void 0), l = s.height;
|
|
15567
|
-
if (s instanceof Rt && u ? s.setMaxSize({ width: u }) : s instanceof
|
|
15568
|
-
const f = s instanceof
|
|
15603
|
+
if (s instanceof Rt && u ? s.setMaxSize({ width: u }) : s instanceof pi && u && s.setMaxWidth(u), !o) return;
|
|
15604
|
+
const f = s instanceof pi ? s.scale.x : ((p = s.textScale) == null ? void 0 : p.x) ?? 1;
|
|
15569
15605
|
if (h != null && h.offsetByScale)
|
|
15570
15606
|
o.position.y += h.offsetByScale(f);
|
|
15571
15607
|
else if (h != null && h.fixedGap) {
|
|
@@ -15690,7 +15726,7 @@ class Wa extends Tt {
|
|
|
15690
15726
|
const p = this._createAndAddGlowSprite(t);
|
|
15691
15727
|
c.glow = p, n != null && n.applyEdgeCorrection && this._applyCascadeEdgeCorrection(t);
|
|
15692
15728
|
const m = (b = this._config.animation) == null ? void 0 : b.initial;
|
|
15693
|
-
return m &&
|
|
15729
|
+
return m && zt.set(o, m), this.instance.addChild(o), o;
|
|
15694
15730
|
}
|
|
15695
15731
|
async create(t) {
|
|
15696
15732
|
return await super.create(t), this;
|
|
@@ -15717,7 +15753,7 @@ class Wa extends Tt {
|
|
|
15717
15753
|
return this;
|
|
15718
15754
|
}
|
|
15719
15755
|
}
|
|
15720
|
-
class bu extends
|
|
15756
|
+
class bu extends Na {
|
|
15721
15757
|
constructor(e, t) {
|
|
15722
15758
|
super("payout.component", e, t);
|
|
15723
15759
|
}
|
|
@@ -15750,21 +15786,21 @@ class bu extends Wa {
|
|
|
15750
15786
|
animateShow: {
|
|
15751
15787
|
duration: 0.2,
|
|
15752
15788
|
pixi: { alpha: 1, scale: 1 },
|
|
15753
|
-
ease:
|
|
15789
|
+
ease: me.in
|
|
15754
15790
|
},
|
|
15755
15791
|
animateHide: {
|
|
15756
15792
|
duration: 0.2,
|
|
15757
15793
|
pixi: { alpha: 0, scale: 0.8 },
|
|
15758
|
-
ease:
|
|
15794
|
+
ease: me.out
|
|
15759
15795
|
}
|
|
15760
15796
|
};
|
|
15761
15797
|
}
|
|
15762
15798
|
}
|
|
15763
|
-
class wu extends
|
|
15799
|
+
class wu extends Na {
|
|
15764
15800
|
constructor(t, i) {
|
|
15765
15801
|
super("total-payout.component", t, i ?? t.grid);
|
|
15766
15802
|
y(this, "_timelineTotal", null);
|
|
15767
|
-
|
|
15803
|
+
U.on("skip.tag:active", this.name, ({ tag: n }) => {
|
|
15768
15804
|
n === "totalWinCoefficient" && this.skip();
|
|
15769
15805
|
});
|
|
15770
15806
|
}
|
|
@@ -15772,7 +15808,7 @@ class wu extends Wa {
|
|
|
15772
15808
|
* Hook: emit events after animation
|
|
15773
15809
|
*/
|
|
15774
15810
|
async _afterAnimate() {
|
|
15775
|
-
|
|
15811
|
+
U.emit("skip:disable", { tag: "totalWinCoefficient" });
|
|
15776
15812
|
}
|
|
15777
15813
|
/**
|
|
15778
15814
|
* Container options for total payout
|
|
@@ -15792,7 +15828,7 @@ class wu extends Wa {
|
|
|
15792
15828
|
*/
|
|
15793
15829
|
async _animateContainer(t) {
|
|
15794
15830
|
var l, f;
|
|
15795
|
-
const i = this._payouts.get(t), n = this._config, { enableSkipAfter: s } = n, o =
|
|
15831
|
+
const i = this._payouts.get(t), n = this._config, { enableSkipAfter: s } = n, o = Gt(), h = this.getShowTween(t);
|
|
15796
15832
|
if (h && o.add(h), o.addLabel("displayStart", this._showDuration), (f = (l = this._config.animation) == null ? void 0 : l.counter) != null && f.enabled) {
|
|
15797
15833
|
const a = this._getCounterTween(t);
|
|
15798
15834
|
if (a) {
|
|
@@ -15801,7 +15837,7 @@ class wu extends Wa {
|
|
|
15801
15837
|
}
|
|
15802
15838
|
}
|
|
15803
15839
|
const u = this.getHideTween(t);
|
|
15804
|
-
u && o.add(u, this._hideStartTime), o.call(() =>
|
|
15840
|
+
u && o.add(u, this._hideStartTime), o.call(() => U.emit("skip:enable", { tag: "totalWinCoefficient" }), null, s).timeScale(rt(1, n.fastModeTimeScale || 1)), i.timeline = o, this._timelineTotal = o, await o;
|
|
15805
15841
|
}
|
|
15806
15842
|
async skip() {
|
|
15807
15843
|
this._timelineTotal && this._timelineTotal.isActive() && this._timelineTotal.progress(1), this._timelineTotal && (await this._timelineTotal.then(), this._timelineTotal.clear(), this._timelineTotal = null);
|
|
@@ -15822,7 +15858,7 @@ function cc(r, e, t = 30, i = t) {
|
|
|
15822
15858
|
n.lineStyle(1, 16777215, (100 - o * h) / 100), n.moveTo(0, e - (i - h)), n.lineTo(r, e - (i - h));
|
|
15823
15859
|
return n;
|
|
15824
15860
|
}
|
|
15825
|
-
var Re = /* @__PURE__ */ ((r) => (r.slot = "slot", r.cascade = "cascade", r))(Re || {}),
|
|
15861
|
+
var Re = /* @__PURE__ */ ((r) => (r.slot = "slot", r.cascade = "cascade", r))(Re || {}), Wa = /* @__PURE__ */ ((r) => (r.clear = "clear", r.fall = "fall", r.move = "move", r.refill = "refill", r))(Wa || {});
|
|
15826
15862
|
class xu extends Tt {
|
|
15827
15863
|
/** @constructor */
|
|
15828
15864
|
constructor(t, i) {
|
|
@@ -15858,7 +15894,7 @@ class xu extends Tt {
|
|
|
15858
15894
|
this._config.factory.getSymbolComponent(this.iReel, i, this._config.components.symbol)
|
|
15859
15895
|
);
|
|
15860
15896
|
return await Promise.all(this._symbols.map((i) => i.create(this._symbolsContainer))), this._symbols[0].hide(), this._symbolsContainer.sortChildren(), this.instance.addChild(this._symbolsContainer), this._mask = new Ct(
|
|
15861
|
-
|
|
15897
|
+
hi("renderer").generateTexture(
|
|
15862
15898
|
cc(
|
|
15863
15899
|
this._config.mask.width,
|
|
15864
15900
|
this._config.mask.height,
|
|
@@ -15871,7 +15907,7 @@ class xu extends Tt {
|
|
|
15871
15907
|
), this._mask.position.set(
|
|
15872
15908
|
this._config.components.symbol.size.width / 2,
|
|
15873
15909
|
this.slotHeight / 2 - this._config.mask.offsetTop
|
|
15874
|
-
), this._mask.pivot.set(this._mask.width / 2, this.slotHeight / 2), this._tlMotion =
|
|
15910
|
+
), this._mask.pivot.set(this._mask.width / 2, this.slotHeight / 2), this._tlMotion = Gt(), await super.create(t), await this.setSymbols();
|
|
15875
15911
|
}
|
|
15876
15912
|
/** */
|
|
15877
15913
|
sortSymbols() {
|
|
@@ -15909,11 +15945,11 @@ class xu extends Tt {
|
|
|
15909
15945
|
name: this._config.sounds.symbolsStop.get(i),
|
|
15910
15946
|
tag: si.get() ? "stop_reel" : `symbol_${i}_reel_${this.iReel}`
|
|
15911
15947
|
};
|
|
15912
|
-
|
|
15948
|
+
U.emit("sounds:play", n), this._playingSounds.push(n);
|
|
15913
15949
|
}
|
|
15914
15950
|
/** Останавить все звуки, которые были запущены в компоненте барабана */
|
|
15915
15951
|
stopSounds() {
|
|
15916
|
-
this._playingSounds.length > 0 && (
|
|
15952
|
+
this._playingSounds.length > 0 && (U.emit("sounds:stop-list", { list: this._playingSounds.slice() }), this._playingSounds = []);
|
|
15917
15953
|
}
|
|
15918
15954
|
/** @inheritdoc */
|
|
15919
15955
|
async draw() {
|
|
@@ -15930,7 +15966,7 @@ class xu extends Tt {
|
|
|
15930
15966
|
}
|
|
15931
15967
|
/** Starts motion */
|
|
15932
15968
|
async start() {
|
|
15933
|
-
this._isMotion || (this._config.events.start &&
|
|
15969
|
+
this._isMotion || (this._config.events.start && U.emit("reel.component:start", { name: this.name, iReel: this.iReel }), this.stopSounds(), this.instance.setMask(this._mask), this._symbols.forEach((t) => t.iRow !== -1 && t.destroyAnimation()), this._isMotion = !0, await this._animateStart());
|
|
15934
15970
|
}
|
|
15935
15971
|
/** */
|
|
15936
15972
|
async _beforeStart() {
|
|
@@ -15941,7 +15977,7 @@ class xu extends Tt {
|
|
|
15941
15977
|
}
|
|
15942
15978
|
/** */
|
|
15943
15979
|
_resetTl() {
|
|
15944
|
-
this._tlMotion.clear(), this._tlMotion =
|
|
15980
|
+
this._tlMotion.clear(), this._tlMotion = Gt();
|
|
15945
15981
|
}
|
|
15946
15982
|
/** */
|
|
15947
15983
|
async _animateStart() {
|
|
@@ -15969,7 +16005,7 @@ class xu extends Tt {
|
|
|
15969
16005
|
break;
|
|
15970
16006
|
}
|
|
15971
16007
|
}
|
|
15972
|
-
this._tlMotion.clear(), this._isMotion = !1, this._config.events.stop &&
|
|
16008
|
+
this._tlMotion.clear(), this._isMotion = !1, this._config.events.stop && U.emit("reel.component:stop", {
|
|
15973
16009
|
name: this.name,
|
|
15974
16010
|
iReel: this.iReel,
|
|
15975
16011
|
stopCodes: this._stopCodesInitial
|
|
@@ -15985,7 +16021,9 @@ class xu extends Tt {
|
|
|
15985
16021
|
}
|
|
15986
16022
|
/** Breaks everything for stop */
|
|
15987
16023
|
break() {
|
|
15988
|
-
this._isMotion && this._config.components.intrigue.enabled && (this._breakableSleep && this._breakableSleep.isActive() && this._breakableSleep.progress(1), this._tweenTimeScale && this._tweenTimeScale.isActive() && this._tweenTimeScale.progress(1), this.setTimeScale(1))
|
|
16024
|
+
this._isMotion && this._config.components.intrigue.enabled && (this._breakableSleep && this._breakableSleep.isActive() && this._breakableSleep.progress(1), this._tweenTimeScale && this._tweenTimeScale.isActive() && this._tweenTimeScale.progress(1), this.setTimeScale(1)), this._symbols.forEach((t) => {
|
|
16025
|
+
t.iRow !== -1 && t.skip();
|
|
16026
|
+
});
|
|
15989
16027
|
}
|
|
15990
16028
|
/** Animates motion */
|
|
15991
16029
|
async _animateStartSpin() {
|
|
@@ -15997,24 +16035,24 @@ class xu extends Tt {
|
|
|
15997
16035
|
this._tlMotion.call(() => this.spawn(!this._isStopProcessing)).to(this._symbolsContainer, {
|
|
15998
16036
|
y: i,
|
|
15999
16037
|
duration: t,
|
|
16000
|
-
ease:
|
|
16038
|
+
ease: me.none,
|
|
16001
16039
|
onComplete: () => this.reposition()
|
|
16002
16040
|
});
|
|
16003
16041
|
}
|
|
16004
16042
|
/** Animates bounce */
|
|
16005
16043
|
async animateBounce() {
|
|
16006
|
-
this._config.bounceOffset && (this._config.events.bounce &&
|
|
16044
|
+
this._config.bounceOffset && (this._config.events.bounce && U.emit("reel.component:bounce", {
|
|
16007
16045
|
name: this.name,
|
|
16008
16046
|
iReel: this.iReel,
|
|
16009
16047
|
stopCodes: this._stopCodesInitial
|
|
16010
16048
|
}), this._tlMotion.to(this._symbolsContainer, {
|
|
16011
16049
|
duration: rt(...this._config.timings.spin.bounceDown) / 1e3,
|
|
16012
16050
|
y: this._config.bounceOffset,
|
|
16013
|
-
ease:
|
|
16051
|
+
ease: me.none
|
|
16014
16052
|
}).to(this._symbolsContainer, {
|
|
16015
16053
|
duration: rt(...this._config.timings.spin.bounceUp) / 1e3,
|
|
16016
16054
|
y: 0,
|
|
16017
|
-
ease:
|
|
16055
|
+
ease: me.none
|
|
16018
16056
|
}), await this._tlMotion);
|
|
16019
16057
|
}
|
|
16020
16058
|
/**
|
|
@@ -16024,7 +16062,7 @@ class xu extends Tt {
|
|
|
16024
16062
|
*/
|
|
16025
16063
|
spawn(t) {
|
|
16026
16064
|
let i, n = !1;
|
|
16027
|
-
return this._stopCodesStack.length ? (i = this._stopCodesStack.pop(), n = this._config.components.symbol.animationNames.idle.has(i), this.writeException(i), this._config.events.spawn &&
|
|
16065
|
+
return this._stopCodesStack.length ? (i = this._stopCodesStack.pop(), n = this._config.components.symbol.animationNames.idle.has(i), this.writeException(i), this._config.events.spawn && U.emit("reel.component:spawn", {
|
|
16028
16066
|
name: this.name,
|
|
16029
16067
|
iReel: this.iReel,
|
|
16030
16068
|
iRow: this._stopCodesStack.length,
|
|
@@ -16038,7 +16076,7 @@ class xu extends Tt {
|
|
|
16038
16076
|
/** Animates intrigue */
|
|
16039
16077
|
async animateIntrigue() {
|
|
16040
16078
|
const t = this._config.components.intrigue.motion;
|
|
16041
|
-
this._breakableSleep =
|
|
16079
|
+
this._breakableSleep = re({}, { duration: rt.apply(this, t.delay) / 1e3 }), await this._breakableSleep, si.get() || await this.setTimeScale(rt(...t.timeScale), {
|
|
16042
16080
|
duration: rt.apply(this, t.duration) / 1e3,
|
|
16043
16081
|
ease: t.ease
|
|
16044
16082
|
});
|
|
@@ -16062,7 +16100,7 @@ class xu extends Tt {
|
|
|
16062
16100
|
return;
|
|
16063
16101
|
}
|
|
16064
16102
|
const n = { timeScale: this._tlMotion.timeScale() };
|
|
16065
|
-
this._tweenTimeScale =
|
|
16103
|
+
this._tweenTimeScale = re(n, {
|
|
16066
16104
|
timeScale: t,
|
|
16067
16105
|
...i,
|
|
16068
16106
|
onUpdate: () => {
|
|
@@ -16097,7 +16135,7 @@ class xu extends Tt {
|
|
|
16097
16135
|
const { timeScale: t } = this._config.timings.cascade.clear;
|
|
16098
16136
|
return this._symbols.forEach((i) => {
|
|
16099
16137
|
this._animateMotion({ type: "clear", symbol: i });
|
|
16100
|
-
}),
|
|
16138
|
+
}), Wi.wait(
|
|
16101
16139
|
() => this._tlMotion.then(),
|
|
16102
16140
|
() => this._tlMotion.timeScale(rt(...t)),
|
|
16103
16141
|
() => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
|
|
@@ -16109,7 +16147,7 @@ class xu extends Tt {
|
|
|
16109
16147
|
const { timeScale: n } = this._config.timings.cascade.fall;
|
|
16110
16148
|
return this._symbols.forEach((s) => {
|
|
16111
16149
|
this._animateMotion({ type: "fall", symbol: s, toPosition: s.iRow, hasIntrigue: i });
|
|
16112
|
-
}), this._tlMotion.timeScale(si.get() ? this._config.cascade.skipTimeScale : 1),
|
|
16150
|
+
}), this._tlMotion.timeScale(si.get() ? this._config.cascade.skipTimeScale : 1), Wi.wait(
|
|
16113
16151
|
() => this._tlMotion.then(),
|
|
16114
16152
|
() => this._tlMotion.timeScale(rt(...n)),
|
|
16115
16153
|
() => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
|
|
@@ -16143,7 +16181,7 @@ class xu extends Tt {
|
|
|
16143
16181
|
playingReelIdx: s,
|
|
16144
16182
|
hasIntrigue: o
|
|
16145
16183
|
});
|
|
16146
|
-
}), this._tlMotion.call(() => this.instance.removeMask()),
|
|
16184
|
+
}), this._tlMotion.call(() => this.instance.removeMask()), Wi.wait(
|
|
16147
16185
|
() => this._tlMotion.then(),
|
|
16148
16186
|
() => this._tlMotion.timeScale(rt(...h.timeScale)),
|
|
16149
16187
|
() => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
|
|
@@ -16156,7 +16194,7 @@ class xu extends Tt {
|
|
|
16156
16194
|
return t.reverse().forEach(({ from: s, to: o }, h) => {
|
|
16157
16195
|
const u = this.getSymbol(s), l = this.getSymbol(o), { iRow: f } = u, a = new Ft().copyFrom(u);
|
|
16158
16196
|
u.iRow = l.iRow, l.iRow = f, l.position.copyFrom(a), this._symbols[s + 1] = l, this._symbols[o + 1] = u, this._animateMotion({ type: "move", symbol: u, toPosition: o, playingRowIdx: h, playingReelIdx: i });
|
|
16159
|
-
}), this._tlMotion.call(() => this.instance.removeMask()),
|
|
16197
|
+
}), this._tlMotion.call(() => this.instance.removeMask()), Wi.wait(
|
|
16160
16198
|
() => this._tlMotion.then(),
|
|
16161
16199
|
() => this._tlMotion.timeScale(rt(...n)),
|
|
16162
16200
|
() => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
|
|
@@ -16176,7 +16214,7 @@ class xu extends Tt {
|
|
|
16176
16214
|
playingReelIdx: n,
|
|
16177
16215
|
hasIntrigue: s
|
|
16178
16216
|
});
|
|
16179
|
-
}), this._tlMotion.call(() => this.instance.removeMask()),
|
|
16217
|
+
}), this._tlMotion.call(() => this.instance.removeMask()), Wi.wait(
|
|
16180
16218
|
() => this._tlMotion.then(),
|
|
16181
16219
|
() => this._tlMotion.timeScale(rt(...o)),
|
|
16182
16220
|
() => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
|
|
@@ -16230,7 +16268,7 @@ class xu extends Tt {
|
|
|
16230
16268
|
durationUp: M,
|
|
16231
16269
|
easeDown: L,
|
|
16232
16270
|
easeUp: D,
|
|
16233
|
-
scaleX:
|
|
16271
|
+
scaleX: W,
|
|
16234
16272
|
scaleY: Y
|
|
16235
16273
|
} = this._config.cascade.bounce;
|
|
16236
16274
|
F[0] && f !== "clear" && this._tlMotion.to(
|
|
@@ -16238,7 +16276,7 @@ class xu extends Tt {
|
|
|
16238
16276
|
{
|
|
16239
16277
|
y: this._gridY[c] + rt(...F),
|
|
16240
16278
|
duration: rt(...T),
|
|
16241
|
-
scaleX: rt(...
|
|
16279
|
+
scaleX: rt(...W),
|
|
16242
16280
|
scaleY: rt(...Y),
|
|
16243
16281
|
ease: L
|
|
16244
16282
|
},
|
|
@@ -16283,8 +16321,8 @@ class uc {
|
|
|
16283
16321
|
value: this._config.components.reel.animationType === Re.cascade
|
|
16284
16322
|
}
|
|
16285
16323
|
].forEach(({ name: n, value: s }) => {
|
|
16286
|
-
|
|
16287
|
-
}),
|
|
16324
|
+
U.emit("cheat.custom:add", { name: n, value: s, group: e });
|
|
16325
|
+
}), U.on("cheat.custom:changed", this.name, ({ name: n, value: s, group: o }) => {
|
|
16288
16326
|
if (o !== e) return null;
|
|
16289
16327
|
switch (n) {
|
|
16290
16328
|
case t.animationTypeSlot:
|
|
@@ -16311,8 +16349,8 @@ class uc {
|
|
|
16311
16349
|
{ name: s.stopDelay, value: t.stop[0] },
|
|
16312
16350
|
{ name: s.stopDelayFast, value: t.stop[1] }
|
|
16313
16351
|
].forEach(({ name: h, value: u }) => {
|
|
16314
|
-
|
|
16315
|
-
}),
|
|
16352
|
+
U.emit("cheat.custom:add", { name: h, value: u, group: e });
|
|
16353
|
+
}), U.on("cheat.custom:changed", this.name, ({ name: h, value: u, group: l }) => {
|
|
16316
16354
|
if (l !== e) return null;
|
|
16317
16355
|
switch (h) {
|
|
16318
16356
|
case s.spinVelocity:
|
|
@@ -16343,8 +16381,8 @@ class uc {
|
|
|
16343
16381
|
{ name: i.refillAwaitsMove, value: t.refillAwaitsMove },
|
|
16344
16382
|
{ name: i.skipTimeScale, value: t.skipTimeScale }
|
|
16345
16383
|
].forEach(({ name: s, value: o }) => {
|
|
16346
|
-
|
|
16347
|
-
}),
|
|
16384
|
+
U.emit("cheat.custom:add", { name: s, value: o, group: e });
|
|
16385
|
+
}), U.on("cheat.custom:changed", this.name, ({ name: s, value: o, group: h }) => {
|
|
16348
16386
|
if (h !== e) return null;
|
|
16349
16387
|
switch (s) {
|
|
16350
16388
|
case i.distanceRelative:
|
|
@@ -16375,8 +16413,8 @@ class uc {
|
|
|
16375
16413
|
].forEach((h) => {
|
|
16376
16414
|
i.push({ name: h, value: n[h][0] }, { name: `${h}Fast`, value: n[h][1] });
|
|
16377
16415
|
}), i.forEach(({ name: h, value: u }) => {
|
|
16378
|
-
|
|
16379
|
-
}),
|
|
16416
|
+
U.emit("cheat.custom:add", { name: h, value: u, group: s });
|
|
16417
|
+
}), U.on("cheat.custom:changed", this.name, ({ name: h, value: u, group: l }) => {
|
|
16380
16418
|
if (l !== s) return null;
|
|
16381
16419
|
const f = h.includes("Fast"), a = h.replace("Fast", "");
|
|
16382
16420
|
n[a] && (n[a][f ? 1 : 0] = u);
|
|
@@ -16402,8 +16440,8 @@ class uc {
|
|
|
16402
16440
|
{ name: i.rowsIntrigueDelay, value: t.rowsIntrigueDelay[0] },
|
|
16403
16441
|
{ name: i.rowsIntrigueDelayFast, value: t.rowsIntrigueDelay[1] }
|
|
16404
16442
|
].forEach(({ name: s, value: o }) => {
|
|
16405
|
-
|
|
16406
|
-
}),
|
|
16443
|
+
U.emit("cheat.custom:add", { name: s, value: o, group: e });
|
|
16444
|
+
}), U.on("cheat.custom:changed", this.name, ({ name: s, value: o, group: h }) => {
|
|
16407
16445
|
if (h !== e) return null;
|
|
16408
16446
|
switch (s) {
|
|
16409
16447
|
case i.onStop:
|
|
@@ -16452,8 +16490,8 @@ class uc {
|
|
|
16452
16490
|
{ name: i.delay, value: t.delay[0] },
|
|
16453
16491
|
{ name: i.delayFast, value: t.delay[1] }
|
|
16454
16492
|
].forEach(({ name: s, value: o }) => {
|
|
16455
|
-
|
|
16456
|
-
}),
|
|
16493
|
+
U.emit("cheat.custom:add", { name: s, value: o, group: e });
|
|
16494
|
+
}), U.on("cheat.custom:changed", this.name, ({ name: s, value: o, group: h }) => {
|
|
16457
16495
|
if (h !== e) return null;
|
|
16458
16496
|
switch (s) {
|
|
16459
16497
|
case i.spineEnabled:
|
|
@@ -16493,15 +16531,15 @@ class uc {
|
|
|
16493
16531
|
["distance", "durationDown", "durationUp", "scaleX", "scaleY"].forEach((s) => {
|
|
16494
16532
|
e.push({ name: s, value: t[s][0] }, { name: `${s}Fast`, value: t[s][1] });
|
|
16495
16533
|
}), e.forEach(({ name: s, value: o }) => {
|
|
16496
|
-
|
|
16497
|
-
}),
|
|
16534
|
+
U.emit("cheat.custom:add", { name: s, value: o, group: i });
|
|
16535
|
+
}), U.on("cheat.custom:changed", this.name, ({ name: s, value: o, group: h }) => {
|
|
16498
16536
|
if (h !== i) return null;
|
|
16499
16537
|
const u = s.includes("Fast"), l = s.replace("Fast", "");
|
|
16500
16538
|
t[l] && (t[l][u ? 1 : 0] = o);
|
|
16501
16539
|
});
|
|
16502
16540
|
}
|
|
16503
16541
|
}
|
|
16504
|
-
const
|
|
16542
|
+
const fi = new uc();
|
|
16505
16543
|
function dr(r, e = 200, t = gn(0, 16777215), i = !1) {
|
|
16506
16544
|
const n = {
|
|
16507
16545
|
fontFamily: "Ui",
|
|
@@ -16523,7 +16561,7 @@ function dr(r, e = 200, t = gn(0, 16777215), i = !1) {
|
|
|
16523
16561
|
const s = new yr(r.toString(), n);
|
|
16524
16562
|
return s.updateText(!1), s.texture;
|
|
16525
16563
|
}
|
|
16526
|
-
function
|
|
16564
|
+
function ue(r) {
|
|
16527
16565
|
const e = [];
|
|
16528
16566
|
for (let t = 0; t < r; t++)
|
|
16529
16567
|
e.push(t);
|
|
@@ -16703,9 +16741,13 @@ const dc = es.easeIn, fc = es.easeIn, fr = es.easeIn, pc = {
|
|
|
16703
16741
|
},
|
|
16704
16742
|
lines: {
|
|
16705
16743
|
enabled: !1,
|
|
16744
|
+
cycle: {
|
|
16745
|
+
skipDelay: 300,
|
|
16746
|
+
sort: !0
|
|
16747
|
+
},
|
|
16706
16748
|
static: {
|
|
16707
|
-
assetName: "
|
|
16708
|
-
lineTextureName: "
|
|
16749
|
+
assetName: "lineTextures",
|
|
16750
|
+
lineTextureName: "winline.png",
|
|
16709
16751
|
duration: {
|
|
16710
16752
|
fadeIn: 250,
|
|
16711
16753
|
fadeOut: 250,
|
|
@@ -16846,6 +16888,7 @@ class Su extends Tt {
|
|
|
16846
16888
|
y(this, "_winSymbolContainer");
|
|
16847
16889
|
y(this, "_winSymbolsParentContainer", []);
|
|
16848
16890
|
y(this, "_activeWinPositions", /* @__PURE__ */ new Set());
|
|
16891
|
+
y(this, "_vanishSpines");
|
|
16849
16892
|
t && un(this._config, t);
|
|
16850
16893
|
}
|
|
16851
16894
|
/** Gets slot width */
|
|
@@ -16862,7 +16905,7 @@ class Su extends Tt {
|
|
|
16862
16905
|
get minSpinTime() {
|
|
16863
16906
|
const t = this._config.components.reel, i = this._config.spinDelay.stop[0] || 0, n = this._config.order.stop.length, { numRows: s } = t;
|
|
16864
16907
|
if (t.animationType === Re.cascade) {
|
|
16865
|
-
const { duration: f, rowsDelay: a, reelsDelay: c } = t.timings.cascade[
|
|
16908
|
+
const { duration: f, rowsDelay: a, reelsDelay: c } = t.timings.cascade[Wa.fall], { distance: d, durationDown: p, durationUp: m } = t.cascade.bounce, _ = !!d[0];
|
|
16866
16909
|
return (c[0] * (n - 1) + f[0] + a[0] * (s - 1) + (_ ? p[0] + m[0] : 0)) * 1e3;
|
|
16867
16910
|
}
|
|
16868
16911
|
const { motion: o, bounceDown: h, bounceUp: u } = t.timings.spin, l = t.bounceOffset !== 0;
|
|
@@ -16870,11 +16913,14 @@ class Su extends Tt {
|
|
|
16870
16913
|
}
|
|
16871
16914
|
/** @inheritdoc */
|
|
16872
16915
|
async create(t) {
|
|
16873
|
-
|
|
16874
|
-
|
|
16875
|
-
|
|
16876
|
-
|
|
16877
|
-
this.
|
|
16916
|
+
var i;
|
|
16917
|
+
if (this._setDefaultConfig(), this._setTextures(), U.on("settings.skipActive:set", this.name, ({ value: n }) => {
|
|
16918
|
+
n && this._isMotion && (this._breakableSleep && this._breakableSleep.isActive() && this._breakableSleep.progress(1), this._config.components.intrigue.enabled && this._intrigueComponent.stop(), this._reels.forEach((s) => s.break()));
|
|
16919
|
+
}), U.on("skip.tag:active", this.name, ({ tag: n }) => {
|
|
16920
|
+
n === "win" && this._config.components.lines.enabled && (this._linesComponent.break(), this._config.components.payout && this._payoutComponent.break());
|
|
16921
|
+
}), this._config.components.hints.enabled && U.on("hints.component:click", this.name, ({ x: n, y: s }) => {
|
|
16922
|
+
const { width: o, height: h, indentLeft: u, indentTop: l } = this._config.components.reel.components.symbol.size, f = Math.floor(Math.abs(n / (o + u))), a = Math.floor(Math.abs(s / (h + l)));
|
|
16923
|
+
this._hintsComponent.open(f, a, this.getSymbolByVector(f, a).code);
|
|
16878
16924
|
}), await Promise.all([
|
|
16879
16925
|
this.createBackgroundComponent(),
|
|
16880
16926
|
this.createReelsComponents(),
|
|
@@ -16884,9 +16930,9 @@ class Su extends Tt {
|
|
|
16884
16930
|
this.createHintsComponent(),
|
|
16885
16931
|
this.createPayoutComponent(),
|
|
16886
16932
|
this.createTotalPayoutComponent()
|
|
16887
|
-
]), this._config.order.sortWinSymbols) {
|
|
16888
|
-
const
|
|
16889
|
-
this._winSymbolContainer = new Ht("layer.winSymbols"), this.instance.addChildAt(this._winSymbolContainer,
|
|
16933
|
+
]), (i = this._config.components.reel.components.symbol.vanish) != null && i.enabled && this._initVanishPool(), this._config.order.sortWinSymbols) {
|
|
16934
|
+
const n = this._config.order.layers.indexOf("reels");
|
|
16935
|
+
this._winSymbolContainer = new Ht("layer.winSymbols"), this.instance.addChildAt(this._winSymbolContainer, n + 1), this._winSymbolContainer.sortableChildren = !0;
|
|
16890
16936
|
}
|
|
16891
16937
|
return this.setLayersOrder(), await super.create(t), await this.draw();
|
|
16892
16938
|
}
|
|
@@ -16967,10 +17013,10 @@ class Su extends Tt {
|
|
|
16967
17013
|
}
|
|
16968
17014
|
/** Starts spin */
|
|
16969
17015
|
async start() {
|
|
16970
|
-
this.breakAllAnimations(), this.stopSounds(), this._config.events.start &&
|
|
17016
|
+
this.breakAllAnimations(), this.stopSounds(), this._config.events.start && U.emit("slot.component:start", { name: this.name }), this._isMotion = !0;
|
|
16971
17017
|
for (const [t, i] of this._config.order.start.entries()) {
|
|
16972
17018
|
const n = rt(...this._config.spinDelay.start);
|
|
16973
|
-
t > 0 && n && await
|
|
17019
|
+
t > 0 && n && await yi(n), this._startPromises = i.map((s) => this._reels[s].start());
|
|
16974
17020
|
}
|
|
16975
17021
|
}
|
|
16976
17022
|
/** Stops spin */
|
|
@@ -16980,7 +17026,7 @@ class Su extends Tt {
|
|
|
16980
17026
|
const n = [], { numRows: s } = this._config.components.reel, o = i === !1 ? [] : i ?? (t ? this.getIntrigueReels(t) : []), h = this._config.components.reel.intrigue.onStop && o.length > 0;
|
|
16981
17027
|
for (const [u, l] of this._config.order.stop.entries()) {
|
|
16982
17028
|
const f = this._config.components.reel.animationType === Re.slot ? rt(...this._config.spinDelay.stop) : 0;
|
|
16983
|
-
u > 0 && f && !si.get() && (this._breakableSleep =
|
|
17029
|
+
u > 0 && f && !si.get() && (this._breakableSleep = re({}, { duration: f / 1e3 }), await this._breakableSleep);
|
|
16984
17030
|
let a = !1;
|
|
16985
17031
|
for (let c = 0; c < l.length; c++) {
|
|
16986
17032
|
const d = l[c];
|
|
@@ -16994,7 +17040,7 @@ class Su extends Tt {
|
|
|
16994
17040
|
}
|
|
16995
17041
|
a && (await Promise.all(n), this._config.components.intrigue.enabled && this._intrigueComponent.stop());
|
|
16996
17042
|
}
|
|
16997
|
-
await Promise.all(n), this._isMotion = !1, this._config.events.stop &&
|
|
17043
|
+
await Promise.all(n), this._isMotion = !1, this._config.events.stop && U.emit("slot.component:stop", { name: this.name }), this._config.components.hints.enabled && (this._hintsComponent.disabled = !1);
|
|
16998
17044
|
}
|
|
16999
17045
|
/** Stops spin force */
|
|
17000
17046
|
async stopForce(t = []) {
|
|
@@ -17102,7 +17148,7 @@ class Su extends Tt {
|
|
|
17102
17148
|
}, null);
|
|
17103
17149
|
if (i === null) return null;
|
|
17104
17150
|
const n = { name: this._config.sounds.symbolsWin.get(i) };
|
|
17105
|
-
|
|
17151
|
+
U.emit("sounds:play", n), this._playingSounds.push(n);
|
|
17106
17152
|
}
|
|
17107
17153
|
/** */
|
|
17108
17154
|
getIntrigueReels(t, i = []) {
|
|
@@ -17124,24 +17170,51 @@ class Su extends Tt {
|
|
|
17124
17170
|
}
|
|
17125
17171
|
/** Stop all started in the component sounds */
|
|
17126
17172
|
stopSounds() {
|
|
17127
|
-
this._playingSounds.length > 0 && (
|
|
17173
|
+
this._playingSounds.length > 0 && (U.emit("sounds:stop-list", { list: this._playingSounds.slice() }), this._playingSounds = []);
|
|
17128
17174
|
}
|
|
17129
|
-
/**
|
|
17130
|
-
|
|
17175
|
+
/**
|
|
17176
|
+
* Анимация выигрышных линий и выплат.
|
|
17177
|
+
* При `repeat = false` (дефолт) — один проход; при `true` — цикл до `stopLines()`.
|
|
17178
|
+
* Скип (`skip:enable {tag:win}`) обрывает текущую линию и переходит к следующей.
|
|
17179
|
+
*/
|
|
17180
|
+
async animateLines(t, i = !1) {
|
|
17181
|
+
var l, f, a, c;
|
|
17131
17182
|
if (!this._config.components.lines.enabled || !t.length) return;
|
|
17132
|
-
this.
|
|
17133
|
-
|
|
17134
|
-
|
|
17135
|
-
|
|
17136
|
-
|
|
17137
|
-
|
|
17138
|
-
|
|
17139
|
-
|
|
17183
|
+
const n = ((l = this._config.components.lines.cycle) == null ? void 0 : l.sort) === !1 ? t.slice() : [...t].sort((d, p) => d.cash - p.cash);
|
|
17184
|
+
(f = this._timelineLines) == null || f.kill();
|
|
17185
|
+
const s = Gt("slot.animateLines");
|
|
17186
|
+
if (this._timelineLines = s, i) {
|
|
17187
|
+
const d = Number(((a = this._config.components.lines.cycle) == null ? void 0 : a.repeatDelay) ?? 0);
|
|
17188
|
+
if (d > 0 && (await re({}, { duration: d / 1e3 }), this._timelineLines !== s))
|
|
17189
|
+
return;
|
|
17190
|
+
}
|
|
17191
|
+
const o = ((c = this._config.components.lines.cycle) == null ? void 0 : c.skipDelay) ?? 300;
|
|
17192
|
+
s.call(() => U.emit("skip:enable", { tag: "win" }), null, o / 1e3), this._linesComponent.disabled = !1;
|
|
17193
|
+
let h = 0, u = !0;
|
|
17194
|
+
for (; !this._linesComponent.disabled && this._timelineLines === s; ) {
|
|
17195
|
+
u || U.emit("skip:enable", { tag: "win" }), u = !1;
|
|
17196
|
+
const d = n[h], p = d.line.slice(0, d.length);
|
|
17197
|
+
if (await Promise.all([
|
|
17198
|
+
this.animatePayout({ symbol: 0, cash: d.cash, length: d.length, positions: p }, !0),
|
|
17199
|
+
this.animateLine(d, h)
|
|
17200
|
+
]), ++h >= n.length) {
|
|
17201
|
+
if (!i) break;
|
|
17202
|
+
h = 0;
|
|
17203
|
+
}
|
|
17140
17204
|
}
|
|
17205
|
+
this._timelineLines === s && (s.kill(), this._timelineLines = null, this._linesComponent.disabled = !0, U.emit("skip:disable", { tag: "win" }));
|
|
17206
|
+
}
|
|
17207
|
+
/**
|
|
17208
|
+
* @deprecated Используй `animateLines(lines, true)`.
|
|
17209
|
+
* Оставлено для обратной совместимости.
|
|
17210
|
+
*/
|
|
17211
|
+
async startLines(t) {
|
|
17212
|
+
return this.animateLines(t, !0);
|
|
17141
17213
|
}
|
|
17142
|
-
/** Stops lines */
|
|
17214
|
+
/** Stops lines cycle */
|
|
17143
17215
|
stopLines() {
|
|
17144
|
-
|
|
17216
|
+
var t;
|
|
17217
|
+
!this._config.components.lines.enabled || this._linesComponent.disabled || ((t = this._timelineLines) == null || t.kill(), this._timelineLines = null, this._linesComponent.disabled = !0, this._linesComponent.break(), U.emit("skip:disable", { tag: "win" }));
|
|
17145
17218
|
}
|
|
17146
17219
|
/** */
|
|
17147
17220
|
_syncInactiveSymbolsState() {
|
|
@@ -17186,21 +17259,36 @@ class Su extends Tt {
|
|
|
17186
17259
|
}
|
|
17187
17260
|
if (s <= 0) return null;
|
|
17188
17261
|
const o = rt(1, n.fastModeTimeScale) || 1;
|
|
17189
|
-
return
|
|
17262
|
+
return yi(s / o);
|
|
17190
17263
|
}
|
|
17191
17264
|
/** */
|
|
17192
17265
|
async animateHideSymbols(t) {
|
|
17266
|
+
const { enabled: i, animationName: n } = this._config.components.reel.components.symbol.vanish;
|
|
17193
17267
|
await Promise.all(
|
|
17194
|
-
t.map(async (
|
|
17195
|
-
const
|
|
17196
|
-
if (
|
|
17197
|
-
|
|
17198
|
-
|
|
17199
|
-
|
|
17200
|
-
await
|
|
17268
|
+
t.map(async (s) => {
|
|
17269
|
+
const o = this.getSymbolByPosition(s), h = o.animateHide();
|
|
17270
|
+
if (i) {
|
|
17271
|
+
const u = this._prepareVanishAnimation(s, o), l = u.animate(n);
|
|
17272
|
+
await Promise.all([h, l]), u.hide();
|
|
17273
|
+
}
|
|
17274
|
+
await h;
|
|
17201
17275
|
})
|
|
17202
17276
|
);
|
|
17203
17277
|
}
|
|
17278
|
+
/** Pre-creates one vanish spine per cell, hidden, as direct children of the slot instance */
|
|
17279
|
+
_initVanishPool() {
|
|
17280
|
+
const { assetName: t } = this._config.components.reel.components.symbol.vanish, i = this._config.numReels * this._config.components.reel.numRows;
|
|
17281
|
+
this._vanishSpines = /* @__PURE__ */ new Map();
|
|
17282
|
+
for (let n = 0; n < i; n++) {
|
|
17283
|
+
const s = li.getSpineAnimation(t);
|
|
17284
|
+
s.hide(), this.instance.addChild(s), this._vanishSpines.set(n, s);
|
|
17285
|
+
}
|
|
17286
|
+
}
|
|
17287
|
+
/** Repositions and shows a pooled vanish spine for the given cell */
|
|
17288
|
+
_prepareVanishAnimation(t, i) {
|
|
17289
|
+
const n = this._vanishSpines.get(t);
|
|
17290
|
+
return n.position.copyFrom(i.position), n.x += this.getReel(i.iReel).position.x, n.y += this.getReel(i.iReel).position.y, n.show(), n;
|
|
17291
|
+
}
|
|
17204
17292
|
/** Animate symbols with custom animation */
|
|
17205
17293
|
async animateSymbolsWith(t, i) {
|
|
17206
17294
|
Promise.all(t.map((n) => this.getSymbolByPosition(n).animateName(i)));
|
|
@@ -17332,18 +17420,18 @@ class Su extends Tt {
|
|
|
17332
17420
|
if (!this._config.factory) throw new Error("Components factory does not exist");
|
|
17333
17421
|
un(this._config, pc, !1);
|
|
17334
17422
|
const { numReels: t } = this._config, { numRows: i } = this._config.components.reel, { width: n } = this._config.components.reel.components.symbol.size;
|
|
17335
|
-
if (!this._config.components.reel.factory && (this._config.components.reel.factory = this._config.factory), !this._config.components.reel.mask.width && (this._config.components.reel.mask.width = this._config.components.reel.components.symbol.size.width * 1.5), !this._config.components.reel.mask.height && (this._config.components.reel.mask.height = this.slotHeight + this._config.components.reel.mask.offsetTop + this._config.components.reel.mask.offsetBottom), !this._config.components.reel.symbolsOrder.default && (this._config.components.reel.symbolsOrder.default =
|
|
17336
|
-
() =>
|
|
17423
|
+
if (!this._config.components.reel.factory && (this._config.components.reel.factory = this._config.factory), !this._config.components.reel.mask.width && (this._config.components.reel.mask.width = this._config.components.reel.components.symbol.size.width * 1.5), !this._config.components.reel.mask.height && (this._config.components.reel.mask.height = this.slotHeight + this._config.components.reel.mask.offsetTop + this._config.components.reel.mask.offsetBottom), !this._config.components.reel.symbolsOrder.default && (this._config.components.reel.symbolsOrder.default = ue(i)), !this._config.order.reels && (this._config.order.reels = ue(t)), !this._config.order.start && (this._config.order.start = ue(t).map((l) => [l])), !this._config.order.stop && (this._config.order.stop = ue(t).map((l) => [l])), !this._config.components.reel.randomizer && (this._config.components.reel.randomizer = ue(t).map(
|
|
17424
|
+
() => ue(this._config.texturesNames.static ? this._config.texturesNames.static.length : 8)
|
|
17337
17425
|
)), this._config.components.reel.components.intrigue = this._config.components.intrigue, this._config.components.hints.enabled) {
|
|
17338
17426
|
const { hints: l } = this._config.components;
|
|
17339
17427
|
!l.width && (l.width = this.slotWidth), !l.height && (l.height = this.slotHeight), !l.assetsName.symbols && (l.assetsName.symbols = this._config.assetsName.static), !l.styleDescription && (l.styleDescription = l.styleBets), !l.numReels && (l.numReels = this._config.numReels);
|
|
17340
17428
|
}
|
|
17341
17429
|
const s = new Map(
|
|
17342
|
-
|
|
17343
|
-
), o =
|
|
17344
|
-
(l) =>
|
|
17430
|
+
ue(t * i).map((l) => [l, this.getPointByPosition(l)])
|
|
17431
|
+
), o = ue(t).map(
|
|
17432
|
+
(l) => ue(i).map((f) => this.getPointByVector(l, f))
|
|
17345
17433
|
), h = new Map(
|
|
17346
|
-
|
|
17434
|
+
ue(t).map((l) => [
|
|
17347
17435
|
l,
|
|
17348
17436
|
new Ft(this.getReelPosition(l) + 0.5 * n, this.slotHeight / 2)
|
|
17349
17437
|
])
|
|
@@ -17376,12 +17464,12 @@ class Su extends Tt {
|
|
|
17376
17464
|
);
|
|
17377
17465
|
return;
|
|
17378
17466
|
}
|
|
17379
|
-
const n =
|
|
17380
|
-
t.static = new Map(
|
|
17467
|
+
const n = ue(15).map(() => gn(0, 16777215)), { height: s } = this._config.components.reel.components.symbol.size;
|
|
17468
|
+
t.static = new Map(ue(15).map((o) => [o, dr(o, s, n[o])])), t.motion = new Map(ue(15).map((o) => [o, dr(o, s, n[o], !0)])), i.enabled && (!i.textures && (i.textures = {}), i.textures.symbols = t.static);
|
|
17381
17469
|
}
|
|
17382
17470
|
/** add cheats to the cheat panel */
|
|
17383
17471
|
_runCheats() {
|
|
17384
|
-
|
|
17472
|
+
fi.addGeneral.apply(this), fi.addSlot.apply(this), fi.addIntrigue.apply(this), fi.addCascadeGeneral.apply(this), fi.addCascade.apply(this), fi.addIntrigueSpineComponent.apply(this), fi.addCascadeBounce.apply(this);
|
|
17385
17473
|
}
|
|
17386
17474
|
}
|
|
17387
17475
|
/*!
|
|
@@ -17527,13 +17615,16 @@ class Xa extends Tt {
|
|
|
17527
17615
|
toggleInactive(t = !1) {
|
|
17528
17616
|
this.alpha = t ? this._config.overlayInactive.alpha : 1, this._config.overlayInactive.filterEnabled && (this.instance.filters = t ? [this._filter] : null);
|
|
17529
17617
|
}
|
|
17618
|
+
/** Skips the current animation to its end frame */
|
|
17619
|
+
skip() {
|
|
17620
|
+
}
|
|
17530
17621
|
/** Toggles cacheAsBitmap for animation */
|
|
17531
17622
|
toggleBitmap(t) {
|
|
17532
17623
|
this._animation.cacheAsBitmap = t !== void 0 ? t : !this._animation.cacheAsBitmap;
|
|
17533
17624
|
}
|
|
17534
17625
|
/** */
|
|
17535
17626
|
async animateHide() {
|
|
17536
|
-
const { hideDuration: t, hideDelay: i } = this._config.vanish, n =
|
|
17627
|
+
const { hideDuration: t, hideDelay: i } = this._config.vanish, n = Gt().to(
|
|
17537
17628
|
this._sprite,
|
|
17538
17629
|
{ alpha: 0, duration: rt(...t), delay: rt(...i) },
|
|
17539
17630
|
0
|
|
@@ -17570,18 +17661,47 @@ class Au extends Xa {
|
|
|
17570
17661
|
}
|
|
17571
17662
|
}
|
|
17572
17663
|
class ku extends Xa {
|
|
17573
|
-
|
|
17664
|
+
constructor() {
|
|
17665
|
+
super(...arguments);
|
|
17666
|
+
/**
|
|
17667
|
+
* Pre-created Spine instances keyed by asset name.
|
|
17668
|
+
* Spines are created once in `create()` and reused for the lifetime of the component —
|
|
17669
|
+
*/
|
|
17670
|
+
y(this, "_spinePool", /* @__PURE__ */ new Map());
|
|
17671
|
+
}
|
|
17672
|
+
/** @inheritdoc */
|
|
17673
|
+
async create(t) {
|
|
17674
|
+
return await super.create(t), this._prepareSpines(), this;
|
|
17675
|
+
}
|
|
17676
|
+
/**
|
|
17677
|
+
* Pre-creates one Spine per unique asset name found in `animationAssets` and adds them
|
|
17678
|
+
* to the component container in hidden state. Called once during `create()`.
|
|
17679
|
+
*/
|
|
17680
|
+
_prepareSpines() {
|
|
17681
|
+
const t = this._config.animationAssets;
|
|
17682
|
+
if (t != null && t.size)
|
|
17683
|
+
for (const i of new Set(t.values())) {
|
|
17684
|
+
const n = li.getSpineAnimation(i);
|
|
17685
|
+
n.hide(), this.instance.addChild(n), this._spinePool.set(i, n);
|
|
17686
|
+
}
|
|
17687
|
+
}
|
|
17574
17688
|
initAnimation() {
|
|
17575
|
-
|
|
17689
|
+
if (this._animation) return !0;
|
|
17690
|
+
const { animationAssets: t } = this._config;
|
|
17691
|
+
if (!(t != null && t.has(this.code))) return !1;
|
|
17692
|
+
const i = t.get(this.code);
|
|
17693
|
+
if (i === void 0) return !1;
|
|
17694
|
+
const n = this._spinePool.get(i);
|
|
17695
|
+
return n ? (this._animation = n, this._sprite.visible = !1, this._animation.show(), !0) : !1;
|
|
17576
17696
|
}
|
|
17577
17697
|
/** @inheritdoc */
|
|
17578
|
-
async animateName(
|
|
17579
|
-
this.disabled || !this.initAnimation() || (await this._animation.animate(
|
|
17698
|
+
async animateName(t, i) {
|
|
17699
|
+
this.disabled || !this.initAnimation() || (await this._animation.animate(t, !1, !1, rt(...i)), this.animateIdle());
|
|
17580
17700
|
}
|
|
17581
17701
|
/** @inheritdoc */
|
|
17582
17702
|
async animateWin() {
|
|
17583
|
-
var
|
|
17584
|
-
if ((
|
|
17703
|
+
var t, i;
|
|
17704
|
+
if ((i = (t = this._config.animationNames) == null ? void 0 : t.win) != null && i.has(this.code) && this.initAnimation()) {
|
|
17585
17705
|
await this.animateName(this._config.animationNames.win.get(this.code), [
|
|
17586
17706
|
1,
|
|
17587
17707
|
this._config.fastModeTimeScale.win || 1
|
|
@@ -17592,16 +17712,16 @@ class ku extends Xa {
|
|
|
17592
17712
|
}
|
|
17593
17713
|
/** Simple fallback win animation (can be overridden in games for custom animations) */
|
|
17594
17714
|
async animateWinFallback() {
|
|
17595
|
-
var
|
|
17596
|
-
const
|
|
17597
|
-
if (!
|
|
17598
|
-
const
|
|
17599
|
-
|
|
17600
|
-
x:
|
|
17601
|
-
y:
|
|
17715
|
+
var o, h;
|
|
17716
|
+
const t = this._animation ?? this._sprite;
|
|
17717
|
+
if (!t) return;
|
|
17718
|
+
const i = ((o = t.scale) == null ? void 0 : o.x) ?? 1, n = ((h = t.scale) == null ? void 0 : h.y) ?? 1, s = Gt();
|
|
17719
|
+
s.to(t.scale, { x: i * 1.2, y: n * 1.2, duration: 0.5, ease: "linear" }, 0).to(t.scale, {
|
|
17720
|
+
x: i,
|
|
17721
|
+
y: n,
|
|
17602
17722
|
duration: 0.5,
|
|
17603
17723
|
ease: "linear"
|
|
17604
|
-
}), await
|
|
17724
|
+
}), await s, s.kill();
|
|
17605
17725
|
}
|
|
17606
17726
|
/** @inheritdoc */
|
|
17607
17727
|
async animateStop() {
|
|
@@ -17611,12 +17731,27 @@ class ku extends Xa {
|
|
|
17611
17731
|
]);
|
|
17612
17732
|
}
|
|
17613
17733
|
/** @inheritdoc */
|
|
17734
|
+
skip() {
|
|
17735
|
+
var t;
|
|
17736
|
+
(t = this._animation) == null || t.skip();
|
|
17737
|
+
}
|
|
17738
|
+
/** @inheritdoc */
|
|
17614
17739
|
animateIdle() {
|
|
17615
17740
|
this.disabled || !this._config.animationNames.idle.has(this.code) || !this.initAnimation() || this._animation.animate(this._config.animationNames.idle.get(this.code), !0);
|
|
17616
17741
|
}
|
|
17617
|
-
/**
|
|
17742
|
+
/**
|
|
17743
|
+
* Returns the active animation to the pool: clears tracks and hides the Spine
|
|
17744
|
+
* instead of destroying it. The Spine instance stays alive for the next `initAnimation()` call.
|
|
17745
|
+
*/
|
|
17618
17746
|
destroyAnimation() {
|
|
17619
|
-
this._animation && (this._animation
|
|
17747
|
+
this._animation && (this._animation.state.clearTracks(), this._animation.skeleton.setToSetupPose(), this._animation.alpha = 1, this._animation.hide(), this._animation = null, this._sprite.visible = !0);
|
|
17748
|
+
}
|
|
17749
|
+
/** @inheritdoc — destroys all pooled Spine instances when the component itself is discarded */
|
|
17750
|
+
async destroy() {
|
|
17751
|
+
this.destroyAnimation();
|
|
17752
|
+
for (const t of this._spinePool.values())
|
|
17753
|
+
t.destroy();
|
|
17754
|
+
return this._spinePool.clear(), super.destroy();
|
|
17620
17755
|
}
|
|
17621
17756
|
}
|
|
17622
17757
|
class Cu extends Tt {
|
|
@@ -17682,12 +17817,12 @@ class Cu extends Tt {
|
|
|
17682
17817
|
/** Передвинуть свитчер в нужное положение */
|
|
17683
17818
|
async _animateSwitch(t = 0) {
|
|
17684
17819
|
const { x: i, y: n } = this.checked ? this._config.handlePositionOn : this._config.handlePositionOff;
|
|
17685
|
-
await
|
|
17820
|
+
await re(this._handle.position, { x: i, y: n, duration: t }, !1);
|
|
17686
17821
|
}
|
|
17687
17822
|
/** Пользователь нажал на переключатель */
|
|
17688
17823
|
_onPointerDown(t) {
|
|
17689
17824
|
if (t && t.stopPropagation(), this.disabled) return null;
|
|
17690
|
-
this.checked = !this.checked,
|
|
17825
|
+
this.checked = !this.checked, U.emit("switch.component:switch", { name: this.name, value: this.checked });
|
|
17691
17826
|
}
|
|
17692
17827
|
}
|
|
17693
17828
|
class yc extends Tt {
|
|
@@ -17736,7 +17871,7 @@ class Tu extends Tt {
|
|
|
17736
17871
|
assetName: "welcome",
|
|
17737
17872
|
emptyTexture: "volatility-empty.png",
|
|
17738
17873
|
fullTexture: "volatility-fill.png",
|
|
17739
|
-
textStyle: new
|
|
17874
|
+
textStyle: new Ne({
|
|
17740
17875
|
fontFamily: "UI",
|
|
17741
17876
|
fill: 16777215,
|
|
17742
17877
|
fontSize: it.isDesktop ? 24 : 16,
|
|
@@ -17823,10 +17958,10 @@ class Tu extends Tt {
|
|
|
17823
17958
|
}
|
|
17824
17959
|
}
|
|
17825
17960
|
function Pu(r, e, t = !0) {
|
|
17826
|
-
return e = Object.assign({ duration: 1, delay: 0 }, e), t &&
|
|
17961
|
+
return e = Object.assign({ duration: 1, delay: 0 }, e), t && zt.killTweensOf(r), zt.from(r, e);
|
|
17827
17962
|
}
|
|
17828
17963
|
function Fu(r, e, t, i = !0) {
|
|
17829
|
-
return t = Object.assign({ duration: 1, delay: 0 }, t), i &&
|
|
17964
|
+
return t = Object.assign({ duration: 1, delay: 0 }, t), i && zt.killTweensOf(r), zt.fromTo(r, e, t);
|
|
17830
17965
|
}
|
|
17831
17966
|
function Eu(r, e) {
|
|
17832
17967
|
const t = [];
|
|
@@ -17886,7 +18021,7 @@ function Sc(r, e) {
|
|
|
17886
18021
|
);
|
|
17887
18022
|
return t.width = r.width, t.height = r.height, e.forEach((s) => {
|
|
17888
18023
|
n.addColorStop(s.stop, s.color.getRGBAString());
|
|
17889
|
-
}), i.fillStyle = n, i.fillRect(0, 0, r.width, r.height),
|
|
18024
|
+
}), i.fillStyle = n, i.fillRect(0, 0, r.width, r.height), wi.from(t);
|
|
17890
18025
|
}
|
|
17891
18026
|
function Jn(r, e, t, i, n, s = !1, o = 0.01) {
|
|
17892
18027
|
const h = 3 * (t.x - e.x), u = 3 * (i.x - t.x) - h, l = n.x - e.x - h - u, f = 3 * (t.y - e.y), a = 3 * (i.y - t.y) - f, c = n.y - e.y - f - a, d = l * Math.pow(r, 3) + u * Math.pow(r, 2) + h * r + e.x, p = c * Math.pow(r, 3) + a * Math.pow(r, 2) + f * r + e.y, m = { x: d, y: p };
|
|
@@ -17896,7 +18031,7 @@ function Jn(r, e, t, i, n, s = !1, o = 0.01) {
|
|
|
17896
18031
|
}
|
|
17897
18032
|
return m;
|
|
17898
18033
|
}
|
|
17899
|
-
function
|
|
18034
|
+
function Nu(r, e, t, i, n = 50, s = !1) {
|
|
17900
18035
|
const o = [];
|
|
17901
18036
|
let h = 0, u = r.x, l = r.y, f, a;
|
|
17902
18037
|
o.push([0, 0]);
|
|
@@ -17911,7 +18046,7 @@ function Wu(r, e, t, i, n = 50, s = !1) {
|
|
|
17911
18046
|
};
|
|
17912
18047
|
return s && (c.intervals = o), c;
|
|
17913
18048
|
}
|
|
17914
|
-
function
|
|
18049
|
+
function Wu(r, e, t = !0) {
|
|
17915
18050
|
const i = r.x - e.x, n = r.y - e.y;
|
|
17916
18051
|
return t ? Math.round(Math.sqrt(i * i + n * n)) : Math.sqrt(i * i + n * n);
|
|
17917
18052
|
}
|
|
@@ -17946,7 +18081,7 @@ function qu(r) {
|
|
|
17946
18081
|
return i > 0 ? [i, `0${n}`.slice(-2), `0${s}`.slice(-2)].join(":") : [n, `0${s}`.slice(-2)].join(":");
|
|
17947
18082
|
}
|
|
17948
18083
|
function zu(r, e, t) {
|
|
17949
|
-
const i =
|
|
18084
|
+
const i = Gt(`taps.timeline.${r}`, { repeat: -1 });
|
|
17950
18085
|
return e.map((n, s) => {
|
|
17951
18086
|
i.add([r, n, s].join("-"), n), i.call(t, [s, n], n);
|
|
17952
18087
|
}), i.then(), i;
|
|
@@ -18335,10 +18470,10 @@ function Ac() {
|
|
|
18335
18470
|
L();
|
|
18336
18471
|
else {
|
|
18337
18472
|
d._playLock = !0, d._state = "loading";
|
|
18338
|
-
var
|
|
18339
|
-
d._state = "loaded", L(), T.removeEventListener(t._canPlayEvent,
|
|
18473
|
+
var W = function() {
|
|
18474
|
+
d._state = "loaded", L(), T.removeEventListener(t._canPlayEvent, W, !1);
|
|
18340
18475
|
};
|
|
18341
|
-
T.addEventListener(t._canPlayEvent,
|
|
18476
|
+
T.addEventListener(t._canPlayEvent, W, !1), d._clearTimer(g._id);
|
|
18342
18477
|
}
|
|
18343
18478
|
}
|
|
18344
18479
|
return g._id;
|
|
@@ -19458,7 +19593,7 @@ class td extends Va {
|
|
|
19458
19593
|
});
|
|
19459
19594
|
}), this.instance.addChild(this._background = yt.getSprite(this._backgrounds.get("regular").landscape)), this._spineAssetName && this._spineAnimationNames)
|
|
19460
19595
|
try {
|
|
19461
|
-
this._backgroundSpine =
|
|
19596
|
+
this._backgroundSpine = li.getSpineAnimation(this._spineAssetName), this.instance.addChild(this._backgroundSpine);
|
|
19462
19597
|
const i = this._spineAnimationNames[this._mode];
|
|
19463
19598
|
i && this._backgroundSpine.animate(i, !0, !0);
|
|
19464
19599
|
} catch (i) {
|
|
@@ -19472,19 +19607,19 @@ class td extends Va {
|
|
|
19472
19607
|
texture: !0,
|
|
19473
19608
|
children: !0,
|
|
19474
19609
|
baseTexture: !0
|
|
19475
|
-
}),
|
|
19610
|
+
}), U.clear(this.name), !0;
|
|
19476
19611
|
}
|
|
19477
19612
|
/** Smoothly change mode with crossfade transition */
|
|
19478
19613
|
async crossfadeMode(t, i = 700) {
|
|
19479
19614
|
if (this._mode === t) return;
|
|
19480
19615
|
const n = i / 1e3;
|
|
19481
|
-
if (this._timelineSwitchBackground && await this._timelineSwitchBackground.seek("endTimeline"), await this._cleanupFadeObjects(), this._fadeBackground = Ct.from(this._textures.get(t)[it.orientation]), this._fadeBackground.alpha = 0, this._fadeBackground.position.copyFrom(this._background.position), this._fadeBackground.pivot.copyFrom(this._background.pivot), this._fadeBackground.scale.copyFrom(this._background.scale), this._fadeBackground.anchor.copyFrom(this._background.anchor), this.instance.addChildAt(this._fadeBackground, 1), this._timelineSwitchBackground =
|
|
19616
|
+
if (this._timelineSwitchBackground && await this._timelineSwitchBackground.seek("endTimeline"), await this._cleanupFadeObjects(), this._fadeBackground = Ct.from(this._textures.get(t)[it.orientation]), this._fadeBackground.alpha = 0, this._fadeBackground.position.copyFrom(this._background.position), this._fadeBackground.pivot.copyFrom(this._background.pivot), this._fadeBackground.scale.copyFrom(this._background.scale), this._fadeBackground.anchor.copyFrom(this._background.anchor), this.instance.addChildAt(this._fadeBackground, 1), this._timelineSwitchBackground = Gt("background.crossfade"), this._timelineSwitchBackground.fromTo(
|
|
19482
19617
|
this._fadeBackground,
|
|
19483
19618
|
{ alpha: 0 },
|
|
19484
19619
|
{
|
|
19485
19620
|
alpha: 1,
|
|
19486
19621
|
duration: n * 0.75,
|
|
19487
|
-
ease:
|
|
19622
|
+
ease: me.in
|
|
19488
19623
|
},
|
|
19489
19624
|
0
|
|
19490
19625
|
), this._backgroundSpine && this._spineAnimationNames) {
|
|
@@ -19495,7 +19630,7 @@ class td extends Va {
|
|
|
19495
19630
|
{
|
|
19496
19631
|
alpha: 0,
|
|
19497
19632
|
duration: n * 0.75,
|
|
19498
|
-
ease:
|
|
19633
|
+
ease: me.in
|
|
19499
19634
|
},
|
|
19500
19635
|
0
|
|
19501
19636
|
), this._timelineSwitchBackground.fromTo(
|
|
@@ -19504,7 +19639,7 @@ class td extends Va {
|
|
|
19504
19639
|
{
|
|
19505
19640
|
alpha: 1,
|
|
19506
19641
|
duration: n * 0.5,
|
|
19507
|
-
ease:
|
|
19642
|
+
ease: me.out
|
|
19508
19643
|
},
|
|
19509
19644
|
n * 0.5
|
|
19510
19645
|
), this._timelineSwitchBackground.call(
|
|
@@ -19588,7 +19723,7 @@ export {
|
|
|
19588
19723
|
sd as Back,
|
|
19589
19724
|
td as BackgroundScene,
|
|
19590
19725
|
nu as BigWinComponent,
|
|
19591
|
-
|
|
19726
|
+
pi as BitmapText,
|
|
19592
19727
|
_a as BlackoutComponent,
|
|
19593
19728
|
xo as BorderView,
|
|
19594
19729
|
rd as Bounce,
|
|
@@ -19617,7 +19752,7 @@ export {
|
|
|
19617
19752
|
qh as EHintPropertyStyle,
|
|
19618
19753
|
Fa as EHintSort,
|
|
19619
19754
|
Bh as ELinkState,
|
|
19620
|
-
|
|
19755
|
+
Wa as EMotionType,
|
|
19621
19756
|
on as EOrientation,
|
|
19622
19757
|
ft as EPivot,
|
|
19623
19758
|
ho as EPromoType,
|
|
@@ -19637,7 +19772,7 @@ export {
|
|
|
19637
19772
|
Ea as FWLinesComponent,
|
|
19638
19773
|
vu as FWLinesSpineComponent,
|
|
19639
19774
|
yu as FWLinesStaticComponent,
|
|
19640
|
-
|
|
19775
|
+
Na as FWPayoutBaseComponent,
|
|
19641
19776
|
bu as FWPayoutComponent,
|
|
19642
19777
|
xu as FWReelComponent,
|
|
19643
19778
|
du as FWRetriggerComponent,
|
|
@@ -19679,7 +19814,7 @@ export {
|
|
|
19679
19814
|
Ju as SoundsHowlerService,
|
|
19680
19815
|
zo as SoundsService,
|
|
19681
19816
|
hs as Spine,
|
|
19682
|
-
|
|
19817
|
+
li as SpineAssets,
|
|
19683
19818
|
wd as SteppedEase,
|
|
19684
19819
|
Ko as StorageService,
|
|
19685
19820
|
xd as Strong,
|
|
@@ -19697,14 +19832,14 @@ export {
|
|
|
19697
19832
|
oh as animateFadeOut,
|
|
19698
19833
|
Pu as animateFrom,
|
|
19699
19834
|
Fu as animateFromTo,
|
|
19700
|
-
|
|
19835
|
+
re as animateTo,
|
|
19701
19836
|
Eu as arrayIndexOfAll,
|
|
19702
19837
|
Mu as arrayPosition,
|
|
19703
19838
|
Iu as arrayUnique,
|
|
19704
19839
|
Ru as arraysIntersect,
|
|
19705
19840
|
Qc as asEventKey,
|
|
19706
19841
|
Jn as bezierQubic,
|
|
19707
|
-
|
|
19842
|
+
Nu as bezierQubicLength,
|
|
19708
19843
|
it as borderView,
|
|
19709
19844
|
Hc as clear,
|
|
19710
19845
|
Gc as clickEvent,
|
|
@@ -19720,11 +19855,11 @@ export {
|
|
|
19720
19855
|
ou as displayObjectToBase64,
|
|
19721
19856
|
au as displayObjectToImage,
|
|
19722
19857
|
Th as displayObjectToTexture,
|
|
19723
|
-
|
|
19858
|
+
Wu as distance,
|
|
19724
19859
|
Pi as drawRect,
|
|
19725
19860
|
cc as drawReel,
|
|
19726
|
-
|
|
19727
|
-
|
|
19861
|
+
me as ease,
|
|
19862
|
+
U as emitter,
|
|
19728
19863
|
Ui as error,
|
|
19729
19864
|
ne as eventlog,
|
|
19730
19865
|
yo as getUrlParams,
|
|
@@ -19749,9 +19884,9 @@ export {
|
|
|
19749
19884
|
Lc as isMac,
|
|
19750
19885
|
xr as isMobile,
|
|
19751
19886
|
mn as isMode,
|
|
19752
|
-
|
|
19887
|
+
Nc as isNativeApp,
|
|
19753
19888
|
Dn as isObject,
|
|
19754
|
-
|
|
19889
|
+
Wc as isPlatformLandscapeMode,
|
|
19755
19890
|
po as isPlatformPortraitMode,
|
|
19756
19891
|
fo as isPortraitMode,
|
|
19757
19892
|
mo as isRetina,
|
|
@@ -19772,12 +19907,12 @@ export {
|
|
|
19772
19907
|
Mo as randomExclude,
|
|
19773
19908
|
gn as randomInRange,
|
|
19774
19909
|
qi as randomValue,
|
|
19775
|
-
|
|
19776
|
-
|
|
19910
|
+
ue as range,
|
|
19911
|
+
hi as registry,
|
|
19777
19912
|
Uc as setMode,
|
|
19778
|
-
|
|
19779
|
-
|
|
19780
|
-
|
|
19913
|
+
Wi as skipable,
|
|
19914
|
+
yi as sleep,
|
|
19915
|
+
fi as slotCheats,
|
|
19781
19916
|
pc as slotComponentConfig,
|
|
19782
19917
|
Hu as speedDuration,
|
|
19783
19918
|
rt as speedMode,
|
|
@@ -19785,7 +19920,7 @@ export {
|
|
|
19785
19920
|
Gu as timeNowFull,
|
|
19786
19921
|
ju as timeNowShort,
|
|
19787
19922
|
qu as timeShort,
|
|
19788
|
-
|
|
19923
|
+
Gt as timelineCreate,
|
|
19789
19924
|
zu as timelineTaps,
|
|
19790
19925
|
Sr as timeout,
|
|
19791
19926
|
Ku as windowAdd,
|