@truelab/truengine 4.0.0-rc.0 → 4.0.0-rc.1

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 CHANGED
@@ -1,85 +1,85 @@
1
- var Ua = Object.defineProperty;
2
- var Ha = (l, s, t) => s in l ? Ua(l, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[s] = t;
3
- var f = (l, s, t) => Ha(l, typeof s != "symbol" ? s + "" : s, t);
4
- import { f as pi, c as Se, g as Hn, p as Ze, L as zn, h as Ee, e as mi, i as za, j as Ci, k as Ga, T as Is, B as qa, S as Pt, l as Zo, m as ja, C as Hi, n as Ka, G as Os, o as Qa, q as Ms, r as fo, s as Ja, R as Za, t as tl, u as po, v as bi, w as el, x as sl, y as il, z as nl, H as ol, I as rl, J as al, K as ll, M as cl, N as hl, O as ul, Q as tr, U as tn, V as dl, W as xs, X as fl, Y as pl, Z as _e, _ as er, P as jt, $ as ml, a0 as gl, a1 as _l, a2 as yl, a3 as bl, a4 as wl, a5 as xl, a6 as Xs } from "./pixi-chunk.js";
1
+ var Ha = Object.defineProperty;
2
+ var za = (l, s, t) => s in l ? Ha(l, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[s] = t;
3
+ var f = (l, s, t) => za(l, typeof s != "symbol" ? s + "" : s, t);
4
+ import { f as pi, c as Se, g as Hn, p as Ze, L as zn, h as Ee, e as mi, i as Ga, j as Ci, k as qa, T as Is, B as ja, S as Pt, l as Zo, m as Ka, C as Hi, n as Qa, G as Os, o as Ja, q as Za, r as Ms, s as fo, t as tl, R as el, u as sl, v as po, w as bi, x as il, y as nl, z as ol, H as rl, I as al, J as ll, K as cl, M as hl, N as ul, O as dl, Q as fl, U as tr, V as tn, W as pl, X as xs, Y as ml, Z as gl, _ as _e, $ as er, P as jt, a0 as _l, a1 as yl, a2 as bl, a3 as wl, a4 as xl, a5 as vl, a6 as Sl, a7 as Xs } from "./pixi-chunk.js";
5
5
  import { a as Gn } from "./index-chunk.js";
6
6
  import { g as Gt, C as sr, S as qn } from "./gsap-chunk.js";
7
- import { B as If, o as Ef, a as Rf, q as Lf, j as Of, E as Bf, p as Df, L as Yf, M as Vf, P as Nf, d as $f, e as Xf, f as Wf, h as Uf, Q as Hf, k as zf, l as Gf, n as qf, m as jf, c as Kf, c as Qf, b as Jf, T as Zf, i as tp } from "./gsap-chunk.js";
8
- import { Emitter as vl } from "./libs/particles.js";
9
- var un = /* @__PURE__ */ ((l) => (l[l.LOW = 0] = "LOW", l[l.MEDIUM = 100] = "MEDIUM", l[l.HIGH = 200] = "HIGH", l))(un || {}), pt = /* @__PURE__ */ ((l) => (l[l.TOP = 0] = "TOP", l[l.BOTTOM = 1] = "BOTTOM", l[l.CENTER = 2] = "CENTER", l[l.LEFT = 3] = "LEFT", l[l.RIGHT = 4] = "RIGHT", l))(pt || {}), dn = /* @__PURE__ */ ((l) => (l[l.bitmapfont = 0] = "bitmapfont", l[l.dragonbones = 1] = "dragonbones", l[l.sound = 2] = "sound", l[l.spritesheet = 3] = "spritesheet", l[l.texture = 4] = "texture", l[l.webfont = 5] = "webfont", l[l.spine = 6] = "spine", l))(dn || {}), Sl = /* @__PURE__ */ ((l) => (l.freerounds = "freerounds", l))(Sl || {}), de = /* @__PURE__ */ ((l) => (l.none = "none", l.in = "power2.in", l.out = "power2.out", l.inOut = "power2.inOut", l.backOut = "back.out(1.4)", l.bounceOut = "bounce.out", l.elasticOut = "elastic.out(1, 0.4)", l))(de || {});
7
+ import { B as Ef, o as Rf, a as Lf, q as Of, j as Bf, E as Df, p as Yf, L as Vf, M as Nf, P as $f, d as Xf, e as Wf, f as Uf, h as Hf, Q as zf, k as Gf, l as qf, n as jf, m as Kf, c as Qf, c as Jf, b as Zf, T as tp, i as ep } from "./gsap-chunk.js";
8
+ import { Emitter as Al } from "./libs/particles.js";
9
+ var un = /* @__PURE__ */ ((l) => (l[l.LOW = 0] = "LOW", l[l.MEDIUM = 100] = "MEDIUM", l[l.HIGH = 200] = "HIGH", l))(un || {}), pt = /* @__PURE__ */ ((l) => (l[l.TOP = 0] = "TOP", l[l.BOTTOM = 1] = "BOTTOM", l[l.CENTER = 2] = "CENTER", l[l.LEFT = 3] = "LEFT", l[l.RIGHT = 4] = "RIGHT", l))(pt || {}), dn = /* @__PURE__ */ ((l) => (l[l.bitmapfont = 0] = "bitmapfont", l[l.dragonbones = 1] = "dragonbones", l[l.sound = 2] = "sound", l[l.spritesheet = 3] = "spritesheet", l[l.texture = 4] = "texture", l[l.webfont = 5] = "webfont", l[l.spine = 6] = "spine", l))(dn || {}), kl = /* @__PURE__ */ ((l) => (l.freerounds = "freerounds", l))(kl || {}), de = /* @__PURE__ */ ((l) => (l.none = "none", l.in = "power2.in", l.out = "power2.out", l.inOut = "power2.inOut", l.backOut = "back.out(1.4)", l.bounceOut = "bounce.out", l.elasticOut = "elastic.out(1, 0.4)", l))(de || {});
10
10
  const Dt = window.navigator.userAgent;
11
- function ed() {
11
+ function id() {
12
12
  return Dt;
13
13
  }
14
14
  function ir() {
15
15
  return !!(Dt.match(/Android/i) || Dt.match(/webOS/i) || Dt.match(/iPhone/i) || Dt.match(/iPad/i) || Dt.match(/iPod/i) || Dt.match(/BlackBerry/i) || Dt.match(/Windows Phone/i));
16
16
  }
17
- function sd() {
17
+ function nd() {
18
18
  return !ir();
19
19
  }
20
20
  function Bs() {
21
21
  return Dt.indexOf("IEMobile") >= 0;
22
22
  }
23
- function Al() {
23
+ function Cl() {
24
24
  return !!Dt.match(/iPad/i) && !Bs();
25
25
  }
26
- function id() {
26
+ function od() {
27
27
  return Dt.toLowerCase().indexOf("firefox") >= 0;
28
28
  }
29
- function nd() {
29
+ function rd() {
30
30
  return Dt.toLowerCase().indexOf("edge") >= 0;
31
31
  }
32
- function od() {
32
+ function Tl() {
33
33
  const l = Dt.toLowerCase();
34
34
  return /safari/.test(l) && /applewebkit/.test(l) && !/chrome/.test(l);
35
35
  }
36
- function kl() {
36
+ function nr() {
37
37
  return Dt.match(/iPhone|iPad|iPod/i) && !Bs();
38
38
  }
39
- function rd() {
39
+ function ad() {
40
40
  return Dt.match(/Mac|iPhone|iPad|iPod/i) && !Bs();
41
41
  }
42
- function ad() {
42
+ function ld() {
43
43
  return Dt.match(/iPhone/i) && !Bs();
44
44
  }
45
- function ld() {
45
+ function cd() {
46
46
  return Dt.match(/Android/i) && !Bs();
47
47
  }
48
- function cd() {
48
+ function hd() {
49
49
  return Dt.match(/Tablet/i) && Dt.match(/Android/i) && !Bs();
50
50
  }
51
- function hd() {
51
+ function ud() {
52
52
  return "standalone" in window.navigator;
53
53
  }
54
- function Cl() {
54
+ function Pl() {
55
55
  return document.body.clientWidth < document.body.clientHeight;
56
56
  }
57
57
  function mo() {
58
- return !Cl();
58
+ return !Pl();
59
59
  }
60
- function Tl() {
60
+ function Ml() {
61
61
  const l = (screen.orientation || {}).type || "";
62
62
  return l.includes("portrait") ? !0 : l.includes("landscape") ? !1 : window.outerWidth < window.outerHeight;
63
63
  }
64
- function ud() {
65
- return !Tl();
66
- }
67
64
  function dd() {
65
+ return !Ml();
66
+ }
67
+ function fd() {
68
68
  return Math.max(window.screen.width, window.screen.height) <= 500;
69
69
  }
70
- function Pl() {
70
+ function Fl() {
71
71
  return window.devicePixelRatio > 1;
72
72
  }
73
- function fd() {
73
+ function pd() {
74
74
  return window.location !== window.parent.location;
75
75
  }
76
- function Ml() {
76
+ function Il() {
77
77
  return Modernizr && !!Modernizr.webp;
78
78
  }
79
- function pd() {
79
+ function md() {
80
80
  return Modernizr && !!Modernizr.fullscreen;
81
81
  }
82
- class Fl {
82
+ class El {
83
83
  log(s) {
84
84
  const t = [];
85
85
  s.forEach((e) => {
@@ -90,11 +90,11 @@ class Fl {
90
90
  console.error(...s);
91
91
  }
92
92
  }
93
- const jn = new Fl(), js = /* @__PURE__ */ new Map();
94
- function Il(l, s) {
93
+ const jn = new El(), js = /* @__PURE__ */ new Map();
94
+ function Rl(l, s) {
95
95
  return js.has(l) || js.set(l, s()), js.get(l);
96
96
  }
97
- function md(l) {
97
+ function gd(l) {
98
98
  js.has(l) && js.delete(l);
99
99
  }
100
100
  function go(l, s) {
@@ -111,7 +111,7 @@ function go(l, s) {
111
111
  };
112
112
  }
113
113
  const fn = /* @__PURE__ */ new Map();
114
- function gd(l) {
114
+ function _d(l) {
115
115
  fn.set(l, !0);
116
116
  }
117
117
  function zi(l) {
@@ -134,13 +134,13 @@ function ie(l, s, t = "") {
134
134
  function Ks(...l) {
135
135
  return zi("dev") ? (jn.error(...l), !0) : !1;
136
136
  }
137
- function _d() {
137
+ function yd() {
138
138
  return Gs() ? "click" : "touchend";
139
139
  }
140
140
  function Gs() {
141
- return Il("is_click", () => document.ontouchstart !== null);
141
+ return Rl("is_click", () => document.ontouchstart !== null);
142
142
  }
143
- function nr(l, s) {
143
+ function or(l, s) {
144
144
  return new Promise((t) => {
145
145
  setTimeout(async () => t(await l()), s);
146
146
  });
@@ -148,40 +148,40 @@ function nr(l, s) {
148
148
  function gs(l) {
149
149
  return new Promise((s) => setTimeout(s, l));
150
150
  }
151
- function El(l) {
151
+ function Ll(l) {
152
152
  const s = document.createElement("a");
153
153
  return s.href = l, s.search.substring(1).split("&").reduce((t, e) => {
154
154
  const i = e.split("=");
155
155
  return t[i[0]] = decodeURIComponent(i[1]), t;
156
156
  }, {});
157
157
  }
158
- function yd(l, s) {
158
+ function bd(l, s) {
159
159
  const t = document.createElement("a");
160
160
  return t.href = l, t.search.substring(1).split("&").includes(s);
161
161
  }
162
- function bd() {
163
- let { lang: l } = El(location.href);
162
+ function wd() {
163
+ let { lang: l } = Ll(location.href);
164
164
  return l = l || navigator && navigator.language.match(/[a-z]+/)[0], !l && (l = "en"), l;
165
165
  }
166
- function or(l) {
166
+ function rr(l) {
167
167
  return Object.prototype.toString.call(l) === "[object Array]";
168
168
  }
169
- function rr(l) {
169
+ function ar(l) {
170
170
  return Object.prototype.toString.call(l) === "[object Object]";
171
171
  }
172
172
  function pn(l) {
173
- if (!rr(l)) return !1;
173
+ if (!ar(l)) return !1;
174
174
  const s = Object.getPrototypeOf(l);
175
175
  return s === Object.prototype || s === null;
176
176
  }
177
- function wd(l) {
177
+ function xd(l) {
178
178
  return Object.prototype.toString.call(l) === "[object Boolean]";
179
179
  }
180
- function Rl(l) {
180
+ function Ol(l) {
181
181
  return Object.prototype.toString.call(l) === "[object String]";
182
182
  }
183
- var Ll = /* @__PURE__ */ ((l) => (l.desktop = "desktop", l.mobile = "mobile", l))(Ll || {}), Ti = /* @__PURE__ */ ((l) => (l.landscape = "landscape", l.portrait = "portrait", l))(Ti || {});
184
- class Ol {
183
+ var Bl = /* @__PURE__ */ ((l) => (l.desktop = "desktop", l.mobile = "mobile", l))(Bl || {}), Ti = /* @__PURE__ */ ((l) => (l.landscape = "landscape", l.portrait = "portrait", l))(Ti || {});
184
+ class Dl {
185
185
  constructor() {
186
186
  /** Конфиги для сцены игры (задаются из геймплея через метод init) */
187
187
  f(this, "_gameConfigs");
@@ -199,11 +199,11 @@ class Ol {
199
199
  innerBottom: 0
200
200
  });
201
201
  /** Флаг ретины (задается один раз и не меняется) */
202
- f(this, "_retina", Pl());
202
+ f(this, "_retina", Fl());
203
203
  /** hardcoded value to display mobile version always */
204
204
  f(this, "_device", "mobile");
205
205
  /** real device value to load appropriate assets */
206
- f(this, "_realDevice", ir() && !Al() ? "mobile" : "desktop");
206
+ f(this, "_realDevice", ir() && !Cl() ? "mobile" : "desktop");
207
207
  /**
208
208
  * Плотность пикселей девайса (задается один раз и не меняется)
209
209
  * Так как TrueLogic использует конфиги мобильных устройств для десктопа удваиваем devicePixelRatio,
@@ -385,11 +385,11 @@ class Ol {
385
385
  this._game.innerRight = this._game.outerWidth - this._game.innerWidth - this._game.innerLeft, this._game.innerBottom = this._game.outerHeight - this._game.innerHeight - this._game.innerTop;
386
386
  }
387
387
  }
388
- const it = new Ol();
389
- function xd(l) {
388
+ const it = new Dl();
389
+ function vd(l) {
390
390
  return l;
391
391
  }
392
- class Bl {
392
+ class Yl {
393
393
  constructor() {
394
394
  f(this, "events", /* @__PURE__ */ new Map());
395
395
  }
@@ -428,13 +428,13 @@ class Bl {
428
428
  return !1;
429
429
  }
430
430
  }
431
- const G = new Bl();
432
- let ar;
433
- function Dl(l) {
434
- return ar = l, l;
431
+ const G = new Yl();
432
+ let lr;
433
+ function Vl(l) {
434
+ return lr = l, l;
435
435
  }
436
436
  function ni() {
437
- return ar;
437
+ return lr;
438
438
  }
439
439
  class mn {
440
440
  /**
@@ -454,7 +454,7 @@ class mn {
454
454
  return t;
455
455
  }
456
456
  }
457
- class Yl extends pi {
457
+ class Nl extends pi {
458
458
  constructor() {
459
459
  super(...arguments), this.speed = 1, this.muted = !1, this.volume = 1, this.paused = !1;
460
460
  }
@@ -502,11 +502,11 @@ class Yl extends pi {
502
502
  this.removeAllListeners();
503
503
  }
504
504
  }
505
- let Vl = 0;
505
+ let $l = 0;
506
506
  const gn = class extends pi {
507
507
  /** @param parent - Parent element */
508
508
  constructor(l) {
509
- super(), this.id = Vl++, this.init(l);
509
+ super(), this.id = $l++, this.init(l);
510
510
  }
511
511
  /**
512
512
  * Set a property by name, this makes it easy to chain values
@@ -671,15 +671,15 @@ const gn = class extends pi {
671
671
  return `[HTMLAudioInstance id=${this.id}]`;
672
672
  }
673
673
  };
674
- let lr = gn;
675
- lr.PADDING = 0.1;
676
- class Nl extends pi {
674
+ let cr = gn;
675
+ cr.PADDING = 0.1;
676
+ class Xl extends pi {
677
677
  init(s) {
678
678
  this.parent = s, this._source = s.options.source || new Audio(), s.url && (this._source.src = s.url);
679
679
  }
680
680
  // Implement create
681
681
  create() {
682
- return new lr(this);
682
+ return new cr(this);
683
683
  }
684
684
  /**
685
685
  * If the audio media is playable (ready).
@@ -753,7 +753,7 @@ class Nl extends pi {
753
753
  t.addEventListener("canplaythrough", i, !1), t.addEventListener("load", i, !1), t.addEventListener("abort", n, !1), t.addEventListener("error", r, !1), t.load();
754
754
  }
755
755
  }
756
- class $l {
756
+ class Wl {
757
757
  /**
758
758
  * @param parent - The parent sound
759
759
  * @param options - Data associated with object.
@@ -792,11 +792,11 @@ const Pi = [
792
792
  "wma",
793
793
  "mid",
794
794
  "caf"
795
- ], Xl = [
795
+ ], Ul = [
796
796
  "audio/mpeg",
797
797
  "audio/ogg"
798
798
  ], Mi = {};
799
- function Wl(l) {
799
+ function Hl(l) {
800
800
  const s = {
801
801
  m4a: "audio/mp4",
802
802
  oga: "audio/ogg",
@@ -808,11 +808,11 @@ function Wl(l) {
808
808
  e[n] = !!r || !!a;
809
809
  }), Object.assign(Mi, e);
810
810
  }
811
- Wl();
812
- let Ul = 0;
813
- class Hl extends pi {
811
+ Hl();
812
+ let zl = 0;
813
+ class Gl extends pi {
814
814
  constructor(s) {
815
- super(), this.id = Ul++, this._media = null, this._paused = !1, this._muted = !1, this._elapsed = 0, this.init(s);
815
+ super(), this.id = zl++, this._media = null, this._paused = !1, this._muted = !1, this._elapsed = 0, this.init(s);
816
816
  }
817
817
  /**
818
818
  * Set a property by name, this makes it easy to chain values
@@ -1009,7 +1009,7 @@ class Hl extends pi {
1009
1009
  this._source = null, this._progress = 1, this.emit("progress", 1, this._duration), this.emit("end", this);
1010
1010
  }
1011
1011
  }
1012
- class cr {
1012
+ class hr {
1013
1013
  /**
1014
1014
  * @param input - The source audio node
1015
1015
  * @param output - The output audio node
@@ -1041,7 +1041,7 @@ class cr {
1041
1041
  this.filters = null, this._input = null, this._output = null;
1042
1042
  }
1043
1043
  }
1044
- const hr = class extends cr {
1044
+ const ur = class extends hr {
1045
1045
  /**
1046
1046
  * @param context - The audio context.
1047
1047
  */
@@ -1054,7 +1054,7 @@ const hr = class extends cr {
1054
1054
  * @readonly
1055
1055
  */
1056
1056
  get script() {
1057
- return this._script || (this._script = this.context.audioContext.createScriptProcessor(hr.BUFFER_SIZE), this._script.connect(this.context.destination)), this._script;
1057
+ return this._script || (this._script = this.context.audioContext.createScriptProcessor(ur.BUFFER_SIZE), this._script.connect(this.context.destination)), this._script;
1058
1058
  }
1059
1059
  /** Cleans up. */
1060
1060
  destroy() {
@@ -1078,15 +1078,15 @@ const hr = class extends cr {
1078
1078
  return this.script.bufferSize;
1079
1079
  }
1080
1080
  };
1081
- let ur = hr;
1082
- ur.BUFFER_SIZE = 0;
1083
- class zl {
1081
+ let dr = ur;
1082
+ dr.BUFFER_SIZE = 0;
1083
+ class ql {
1084
1084
  /**
1085
1085
  * Re-initialize without constructing.
1086
1086
  * @param parent - - Instance of parent Sound container
1087
1087
  */
1088
1088
  init(s) {
1089
- this.parent = s, this._nodes = new ur(this.context), this._source = this._nodes.bufferSource, this.source = s.options.source;
1089
+ this.parent = s, this._nodes = new dr(this.context), this._source = this._nodes.bufferSource, this.source = s.options.source;
1090
1090
  }
1091
1091
  /** Destructor, safer to use `SoundLibrary.remove(alias)` to remove this sound. */
1092
1092
  destroy() {
@@ -1100,7 +1100,7 @@ class zl {
1100
1100
  }
1101
1101
  // Implement create
1102
1102
  create() {
1103
- return new Hl(this);
1103
+ return new Gl(this);
1104
1104
  }
1105
1105
  // Implement context
1106
1106
  get context() {
@@ -1181,7 +1181,7 @@ const Cs = class {
1181
1181
  loop: !1,
1182
1182
  ...s
1183
1183
  }, Object.freeze(s);
1184
- const t = ni().useLegacy ? new Nl() : new zl();
1184
+ const t = ni().useLegacy ? new Xl() : new ql();
1185
1185
  return new Cs(t, s);
1186
1186
  }
1187
1187
  /**
@@ -1247,7 +1247,7 @@ const Cs = class {
1247
1247
  return e;
1248
1248
  }
1249
1249
  console.assert(!this._sprites[l], `Alias ${l} is already taken`);
1250
- const t = new $l(this, s);
1250
+ const t = new Wl(this, s);
1251
1251
  return this._sprites[l] = t, t;
1252
1252
  }
1253
1253
  /** Destructor, safer to use `SoundLibrary.remove(alias)` to remove this sound. */
@@ -1407,7 +1407,7 @@ const Cs = class {
1407
1407
  };
1408
1408
  let oi = Cs;
1409
1409
  oi._pool = [];
1410
- class ri extends cr {
1410
+ class ri extends hr {
1411
1411
  constructor() {
1412
1412
  const s = window, t = new ri.AudioContext(), e = t.createDynamicsCompressor(), i = t.createAnalyser();
1413
1413
  i.connect(e), e.connect(t.destination), super(i, e), this.autoPause = !0, this._ctx = t, this._offlineCtx = new ri.OfflineAudioContext(
@@ -1539,7 +1539,7 @@ class ri extends cr {
1539
1539
  i && i.catch(e);
1540
1540
  }
1541
1541
  }
1542
- class Gl {
1542
+ class jl {
1543
1543
  constructor() {
1544
1544
  this.init();
1545
1545
  }
@@ -1550,7 +1550,7 @@ class Gl {
1550
1550
  * @return Sound instance
1551
1551
  */
1552
1552
  init() {
1553
- return this.supported && (this._webAudioContext = new ri()), this._htmlAudioContext = new Yl(), this._sounds = {}, this.useLegacy = !this.supported, this;
1553
+ return this.supported && (this._webAudioContext = new ri()), this._htmlAudioContext = new Nl(), this._sounds = {}, this.useLegacy = !this.supported, this;
1554
1554
  }
1555
1555
  /**
1556
1556
  * The global context to use.
@@ -1835,7 +1835,7 @@ const _o = (l) => {
1835
1835
  const s = l.src;
1836
1836
  let t = (e = l == null ? void 0 : l.alias) == null ? void 0 : e[0];
1837
1837
  return (!t || l.src === t) && (t = Ze.basename(s, Ze.extname(s))), t;
1838
- }, ql = {
1838
+ }, Kl = {
1839
1839
  extension: Ee.Asset,
1840
1840
  detection: {
1841
1841
  test: async () => !0,
@@ -1851,7 +1851,7 @@ const _o = (l) => {
1851
1851
  /** Should we attempt to load this file? */
1852
1852
  test(l) {
1853
1853
  const s = Ze.extname(l).slice(1);
1854
- return !!Mi[s] || Xl.some((t) => l.startsWith(`data:${t}`));
1854
+ return !!Mi[s] || Ul.some((t) => l.startsWith(`data:${t}`));
1855
1855
  },
1856
1856
  /** Load the sound file, this is mostly handled by Sound.from() */
1857
1857
  async load(l, s) {
@@ -1872,10 +1872,10 @@ const _o = (l) => {
1872
1872
  }
1873
1873
  }
1874
1874
  };
1875
- mi.add(ql);
1876
- const Ws = Dl(new Gl());
1875
+ mi.add(Kl);
1876
+ const Ws = Vl(new jl());
1877
1877
  var en = { exports: {} }, yo;
1878
- function jl() {
1878
+ function Ql() {
1879
1879
  return yo || (yo = 1, function(l) {
1880
1880
  (function() {
1881
1881
  function s(C, R, W) {
@@ -2139,8 +2139,8 @@ function jl() {
2139
2139
  for (_t = 0; _t < W.length; _t++) {
2140
2140
  var Ft = W[_t], Qt = gt[Ft.c], we = R.a, ws = Ft;
2141
2141
  if (we.g && h(we.f, [we.a.c("wf", ws.c, S(ws).toString(), "loading")]), D(we, "fontloading", ws), we = null, bt === null) if (window.FontFace) {
2142
- var ws = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), Wa = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
2143
- bt = ws ? 42 < parseInt(ws[1], 10) : !Wa;
2142
+ var ws = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), Ua = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
2143
+ bt = ws ? 42 < parseInt(ws[1], 10) : !Ua;
2144
2144
  } else bt = !1;
2145
2145
  bt ? we = new B(e(R.g, R), e(R.h, R), R.c, Ft, R.s, Qt) : we = new F(e(R.g, R), e(R.h, R), R.c, Ft, R.s, ot, Qt), Mt.push(we);
2146
2146
  }
@@ -2216,8 +2216,8 @@ function jl() {
2216
2216
  function rs(C) {
2217
2217
  this.f = C, this.a = [], this.c = {};
2218
2218
  }
2219
- var as = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ" }, Ya = { 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" }, Va = { i: "i", italic: "i", n: "n", normal: "n" }, Na = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
2220
- function $a(C) {
2219
+ var as = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ" }, Va = { 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" }, Na = { i: "i", italic: "i", n: "n", normal: "n" }, $a = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
2220
+ function Xa(C) {
2221
2221
  for (var R = C.f.length, W = 0; W < R; W++) {
2222
2222
  var N = C.f[W].split(":"), j = N[0].replace(/\+/g, " "), st = ["n4"];
2223
2223
  if (2 <= N.length) {
@@ -2225,11 +2225,11 @@ function jl() {
2225
2225
  if (ot = [], gt) for (var gt = gt.split(","), _t = gt.length, Mt = 0; Mt < _t; Mt++) {
2226
2226
  var Ft;
2227
2227
  if (Ft = gt[Mt], Ft.match(/^[\w-]+$/)) {
2228
- var Qt = Na.exec(Ft.toLowerCase());
2228
+ var Qt = $a.exec(Ft.toLowerCase());
2229
2229
  if (Qt == null) Ft = "";
2230
2230
  else {
2231
- if (Ft = Qt[2], Ft = Ft == null || Ft == "" ? "n" : Va[Ft], Qt = Qt[1], Qt == null || Qt == "") Qt = "4";
2232
- else var we = Ya[Qt], Qt = we || (isNaN(Qt) ? "4" : Qt.substr(0, 1));
2231
+ if (Ft = Qt[2], Ft = Ft == null || Ft == "" ? "n" : Na[Ft], Qt = Qt[1], Qt == null || Qt == "") Qt = "4";
2232
+ else var we = Va[Qt], Qt = we || (isNaN(Qt) ? "4" : Qt.substr(0, 1));
2233
2233
  Ft = [Ft, Qt].join("");
2234
2234
  }
2235
2235
  } else Ft = "";
@@ -2243,13 +2243,13 @@ function jl() {
2243
2243
  function lo(C, R) {
2244
2244
  this.c = C, this.a = R;
2245
2245
  }
2246
- var Xa = { Arimo: !0, Cousine: !0, Tinos: !0 };
2246
+ var Wa = { Arimo: !0, Cousine: !0, Tinos: !0 };
2247
2247
  lo.prototype.load = function(C) {
2248
2248
  var R = new m(), W = this.c, N = new qt(this.a.api, this.a.text), j = this.a.families;
2249
2249
  fe(N, j);
2250
2250
  var st = new rs(j);
2251
- $a(st), p(W, be(N), y(R)), _(R, function() {
2252
- C(st.a, st.c, Xa);
2251
+ Xa(st), p(W, be(N), y(R)), _(R, function() {
2252
+ C(st.a, st.c, Wa);
2253
2253
  });
2254
2254
  };
2255
2255
  function co(C, R) {
@@ -2302,9 +2302,9 @@ function jl() {
2302
2302
  })();
2303
2303
  }(en)), en.exports;
2304
2304
  }
2305
- var Kl = jl();
2306
- const Ql = /* @__PURE__ */ za(Kl);
2307
- class Jl {
2305
+ var Jl = Ql();
2306
+ const Zl = /* @__PURE__ */ Ga(Jl);
2307
+ class tc {
2308
2308
  constructor() {
2309
2309
  f(this, "collection", /* @__PURE__ */ new Map());
2310
2310
  }
@@ -2355,7 +2355,7 @@ class Jl {
2355
2355
  return e;
2356
2356
  }
2357
2357
  }
2358
- class Zl {
2358
+ class ec {
2359
2359
  constructor() {
2360
2360
  f(this, "_collection", /* @__PURE__ */ new Map());
2361
2361
  }
@@ -2402,7 +2402,7 @@ class Ds {
2402
2402
  f(this, "registry");
2403
2403
  /** сервис языков */
2404
2404
  f(this, "langs");
2405
- this.register("registry", () => new Zl()), this.register("langs", () => new Jl());
2405
+ this.register("registry", () => new ec()), this.register("langs", () => new tc());
2406
2406
  for (const t of s)
2407
2407
  this.bind(t);
2408
2408
  }
@@ -2441,7 +2441,7 @@ class Ds {
2441
2441
  return vs.has(s) && (this[s] = () => this.service(s)), this;
2442
2442
  }
2443
2443
  }
2444
- const dr = new Ds(), De = (l) => dr.registry().get(l), tc = (l, s, t) => dr.langs().get(l, s, t), Ve = class Ve {
2444
+ const fr = new Ds(), De = (l) => fr.registry().get(l), sc = (l, s, t) => fr.langs().get(l, s, t), Ve = class Ve {
2445
2445
  constructor() {
2446
2446
  f(this, "PIXI_RESOURCES", "pixi.loader");
2447
2447
  f(this, "WEBFONT_RESOURCES", "webfont.loader");
@@ -2473,7 +2473,7 @@ const dr = new Ds(), De = (l) => dr.registry().get(l), tc = (l, s, t) => dr.lang
2473
2473
  */
2474
2474
  _storeResource(s, t, e) {
2475
2475
  const i = { url: t };
2476
- return e instanceof Ga ? (i.spritesheet = e, i.textures = e.textures, i.texture = new Is({ source: e.textureSource })) : e instanceof Is ? i.texture = e : e instanceof oi ? i.sound = e : e instanceof qa ? (e.baseLineOffset = 0, i.bitmapFont = e) : i.data = e, Ve.resources.set(s, i), t !== s && !Ve.resources.has(t) && Ve.resources.set(t, i), i;
2476
+ return e instanceof qa ? (i.spritesheet = e, i.textures = e.textures, i.texture = new Is({ source: e.textureSource })) : e instanceof Is ? i.texture = e : e instanceof oi ? i.sound = e : e instanceof ja ? (e.baseLineOffset = 0, i.bitmapFont = e) : i.data = e, Ve.resources.set(s, i), t !== s && !Ve.resources.has(t) && Ve.resources.set(t, i), i;
2477
2477
  }
2478
2478
  /**
2479
2479
  * Загрузить файловые ресурсы
@@ -2512,7 +2512,7 @@ const dr = new Ds(), De = (l) => dr.registry().get(l), tc = (l, s, t) => dr.lang
2512
2512
  */
2513
2513
  async _webfontLoader() {
2514
2514
  return this._queue.get(this.WEBFONT_RESOURCES).size ? new Promise((s) => {
2515
- Ql.load({
2515
+ Zl.load({
2516
2516
  classes: !1,
2517
2517
  custom: {
2518
2518
  families: Array.from(this._queue.get(this.WEBFONT_RESOURCES))
@@ -2582,11 +2582,11 @@ const Zt = class Zt extends $e {
2582
2582
  * @param src
2583
2583
  */
2584
2584
  static getPath(t, e = !1) {
2585
- const i = Ml(), n = e ? it.realDevice : it.device;
2585
+ const i = Il(), n = e ? it.realDevice : it.device;
2586
2586
  let r = "";
2587
2587
  switch (!0) {
2588
2588
  // Без выбора
2589
- case Rl(t):
2589
+ case Ol(t):
2590
2590
  r = t;
2591
2591
  break;
2592
2592
  // Retina + Webp
@@ -2679,8 +2679,8 @@ const Zt = class Zt extends $e {
2679
2679
  };
2680
2680
  f(Zt, "assets", /* @__PURE__ */ new Map());
2681
2681
  let yt = Zt;
2682
- const ec = Gn(!1), ts = Gn(!1), fr = Gn("EUR");
2683
- class ls extends ja {
2682
+ const ic = Gn(!1), ts = Gn(!1), pr = Gn("EUR");
2683
+ class ls extends Ka {
2684
2684
  /** @constructor */
2685
2685
  constructor(t, e) {
2686
2686
  const i = yt.getBitmapFont(e.assetName);
@@ -2705,7 +2705,7 @@ class ls extends ja {
2705
2705
  /** Следует ли показывать валюту */
2706
2706
  f(this, "_withCurrency", !0);
2707
2707
  f(this, "_maxWidthCustom", null);
2708
- e.tint !== void 0 && (this.tint = e.tint), this._fontFace = i, this._currency = e.currency || fr.get(), this._space = e.space ?? null, this._currency && this.hasMissing(this._currency) && (this._withCurrency = !1), this.refresh();
2708
+ e.tint !== void 0 && (this.tint = e.tint), this._fontFace = i, this._currency = e.currency || pr.get(), this._space = e.space ?? null, this._currency && this.hasMissing(this._currency) && (this._withCurrency = !1), this.refresh();
2709
2709
  }
2710
2710
  /** Догступ к fontFace, на всякий случай */
2711
2711
  get fontFace() {
@@ -2750,12 +2750,12 @@ function ai(l, ...s) {
2750
2750
  const t = Array.isArray(l) ? l : arguments;
2751
2751
  return t[Math.floor(Math.random() * t.length)];
2752
2752
  }
2753
- function sc(l, s) {
2753
+ function nc(l, s) {
2754
2754
  const t = l.filter((i) => i !== s);
2755
2755
  return ai(t);
2756
2756
  }
2757
- var pr = /* @__PURE__ */ ((l) => (l.asc = "asc", l.desc = "desc", l.ascRepeat = "ascRepeat", l.descRepeat = "descRepeat", l.random = "random", l.excludeRandom = "excludeRandom", l.shuffle = "shuffle", l))(pr || {});
2758
- class ic {
2757
+ var mr = /* @__PURE__ */ ((l) => (l.asc = "asc", l.desc = "desc", l.ascRepeat = "ascRepeat", l.descRepeat = "descRepeat", l.random = "random", l.excludeRandom = "excludeRandom", l.shuffle = "shuffle", l))(mr || {});
2758
+ class oc {
2759
2759
  /**
2760
2760
  * @constructor
2761
2761
  * @param {Array} items array of collected items
@@ -2796,7 +2796,7 @@ class ic {
2796
2796
  t = ai(this._keys);
2797
2797
  break;
2798
2798
  case "excludeRandom":
2799
- t = sc(this._keys, t);
2799
+ t = nc(this._keys, t);
2800
2800
  break;
2801
2801
  case "shuffle":
2802
2802
  t + 1 <= s ? t += 1 : (this._shuffle(), t = 0);
@@ -2816,7 +2816,7 @@ class ic {
2816
2816
  }
2817
2817
  }
2818
2818
  }
2819
- let mr = class qs {
2819
+ let gr = class qs {
2820
2820
  /** Создает объкт с белым непрозрачным цветом по умолчанию */
2821
2821
  constructor() {
2822
2822
  f(this, "r");
@@ -3082,7 +3082,7 @@ class Wt extends Hi {
3082
3082
  return this.position.set(Math.round(this.width / 2 / this.scale.x), Math.round(this.height / 2 / this.scale.y)), this;
3083
3083
  }
3084
3084
  }
3085
- window.PIXI = Ka;
3085
+ window.PIXI = Qa;
3086
3086
  /*! modernizr 3.6.0 (Custom Build) | MIT *
3087
3087
  * https://modernizr.com/download/?-fullscreen-webp-setclasses !*/
3088
3088
  (function(l, s, t) {
@@ -3354,7 +3354,7 @@ class At {
3354
3354
  return G.clear(this.name), this.instance.parent && this.instance.parent.removeChild(this.instance), this;
3355
3355
  }
3356
3356
  }
3357
- class nc extends At {
3357
+ class rc extends At {
3358
3358
  /**
3359
3359
  * @constructor
3360
3360
  * @param name
@@ -3396,7 +3396,7 @@ class nc extends At {
3396
3396
  return this;
3397
3397
  }
3398
3398
  }
3399
- class oc extends Ds {
3399
+ class ac extends Ds {
3400
3400
  constructor() {
3401
3401
  super(...arguments);
3402
3402
  /**
@@ -3436,7 +3436,7 @@ class oc extends Ds {
3436
3436
  */
3437
3437
  init() {
3438
3438
  const t = go(() => this.redraw(), 30), e = go(() => this.redraw(), 500);
3439
- return this.component("grid", new nc()), window.addEventListener("resize", t.call), window.addEventListener("orientationchange", e.call), G.on("fullscreen:on", this.constructor.name, e.call).on("fullscreen:off", this.constructor.name, e.call), this;
3439
+ return this.component("grid", new rc()), window.addEventListener("resize", t.call), window.addEventListener("orientationchange", e.call), G.on("fullscreen:on", this.constructor.name, e.call).on("fullscreen:off", this.constructor.name, e.call), this;
3440
3440
  }
3441
3441
  /**
3442
3442
  * Создает зарегистрированные компоненты по ключу
@@ -3545,10 +3545,10 @@ class oc extends Ds {
3545
3545
  }
3546
3546
  const _n = {
3547
3547
  Container: Wt,
3548
- Producer: oc,
3548
+ Producer: ac,
3549
3549
  Assets: yt
3550
3550
  };
3551
- class rc {
3551
+ class lc {
3552
3552
  /**
3553
3553
  * @constructor
3554
3554
  * @param engine TEngine
@@ -3569,7 +3569,7 @@ class rc {
3569
3569
  }, 300) : (this.onFocus && this.onFocus(), Gt.ticker.lagSmoothing(1e3, 16), Se.shared.start(), clearInterval(this._tickerInterval));
3570
3570
  }
3571
3571
  }
3572
- class ac {
3572
+ class cc {
3573
3573
  constructor() {
3574
3574
  f(this, "name");
3575
3575
  f(this, "_isActive", !1);
@@ -3652,7 +3652,7 @@ function Ht(l, s) {
3652
3652
  const t = Gt.timeline(s);
3653
3653
  return l && (sn.has(l) && sn.get(l).kill(), sn.set(l, t)), t;
3654
3654
  }
3655
- class lc {
3655
+ class hc {
3656
3656
  constructor() {
3657
3657
  f(this, "getSoundsCustom");
3658
3658
  f(this, "_soundsSprites", /* @__PURE__ */ new Map());
@@ -3835,7 +3835,7 @@ class lc {
3835
3835
  }));
3836
3836
  }
3837
3837
  }
3838
- class cc {
3838
+ class uc {
3839
3839
  constructor() {
3840
3840
  f(this, "_key");
3841
3841
  f(this, "_cached", {});
@@ -3852,7 +3852,7 @@ class cc {
3852
3852
  const t = window.localStorage.getItem(this._key);
3853
3853
  if (t !== null) {
3854
3854
  const e = JSON.parse(t);
3855
- rr(e) && (this._cached = e);
3855
+ ar(e) && (this._cached = e);
3856
3856
  }
3857
3857
  } catch {
3858
3858
  this._isAvailable = !1;
@@ -3881,8 +3881,8 @@ class cc {
3881
3881
  return this._cached[s] = t, this._isAvailable && window.localStorage.setItem(this._key, JSON.stringify(this._cached)), t;
3882
3882
  }
3883
3883
  }
3884
- var hc = /* @__PURE__ */ ((l) => (l.mouseDown = "mousedown", l.mouseUp = "mouseup", l.pointerUp = "pointerup", l.pointerDown = "pointerdown", l.pointerOver = "pointerover", l.pointerOut = "pointerout", l.pointerMove = "pointermove", l))(hc || {});
3885
- class vd extends Ds {
3884
+ var dc = /* @__PURE__ */ ((l) => (l.mouseDown = "mousedown", l.mouseUp = "mouseup", l.pointerUp = "pointerup", l.pointerDown = "pointerdown", l.pointerOver = "pointerover", l.pointerOut = "pointerout", l.pointerMove = "pointermove", l))(dc || {});
3885
+ class Sd extends Ds {
3886
3886
  /**
3887
3887
  * @constructor
3888
3888
  * @param {jQuery} canvas
@@ -3907,20 +3907,24 @@ class vd extends Ds {
3907
3907
  f(this, "_processing", !1);
3908
3908
  // флаг блокировки работы с сервером
3909
3909
  f(this, "_pressedKeys", /* @__PURE__ */ new Map());
3910
- ie("Engine", `Constructor: ${e}`), this.canvas = t, this.name = e, this._stage = i, this.driver = new Qa(), this.producer = new _n.Producer(), this.assets = new _n.Assets(), this.register("sounds", () => new lc()), this.register("storage", () => new cc()), this.register("focus", () => new rc()), this.register("skip", () => new ac());
3910
+ ie("Engine", `Constructor: ${e}`), this.canvas = t, this.name = e, this._stage = i, this.driver = new Ja(), this.producer = new _n.Producer(), this.assets = new _n.Assets(), this.register("sounds", () => new hc()), this.register("storage", () => new uc()), this.register("focus", () => new lc()), this.register("skip", () => new cc());
3911
3911
  }
3912
3912
  /**
3913
3913
  * Асинхронная инициализация рендера (обязательна перед start)
3914
3914
  */
3915
3915
  async init() {
3916
- return this._initialized ? this : (await this.driver.init({
3916
+ return this._initialized ? this : ((nr() || Tl()) && (Za.config.preferCreateImageBitmap = !1), await this.driver.init({
3917
3917
  autoStart: !1,
3918
3918
  canvas: this.canvas,
3919
3919
  backgroundAlpha: 0,
3920
3920
  sharedTicker: !0,
3921
- resolution: it.devicePixelRatio,
3921
+ // dpr выше 2 на телефоне неотличим, а фреймбуфер и рендертаргеты растут
3922
+ // квадратично: на iPhone (dpr=3) без капа GPU-память больше в 2.25 раза
3923
+ resolution: Math.min(it.devicePixelRatio, 2),
3922
3924
  preference: "webgl"
3923
- }), this._initialized = !0, this.driver.canvas.style.touchAction = "auto", this.driver.renderer.gc.maxUnusedTime = 6e5, this.driver.stop(), globalThis.__PIXI_APP__ = this.driver, this.registry().set("renderer", this.driver.renderer), this.registry().set("ticker", this.driver.ticker), this._stage && (this.driver.stage = this._stage), this.driver.stage.addChild(this.producer.instance), this);
3925
+ }), this._initialized = !0, this.driver.canvas.addEventListener("webglcontextlost", () => {
3926
+ console.error("Engine: WebGL context lost — устройству не хватило памяти GPU");
3927
+ }), this.driver.canvas.style.touchAction = "auto", this.driver.renderer.gc.maxUnusedTime = 6e5, this.driver.stop(), globalThis.__PIXI_APP__ = this.driver, this.registry().set("renderer", this.driver.renderer), this.registry().set("ticker", this.driver.ticker), this._stage && (this.driver.stage = this._stage), this.driver.stage.addChild(this.producer.instance), this);
3924
3928
  }
3925
3929
  /**
3926
3930
  * Старт приложения
@@ -3999,8 +4003,8 @@ class vd extends Ds {
3999
4003
  }
4000
4004
  }
4001
4005
  }
4002
- var gr = /* @__PURE__ */ ((l) => (l.strictBreak = "strictBreak", l.strictProgress = "strictProgress", l.crossfadeBreak = "crossfadeBreak", l.crossfadeProgress = "crossfadeProgress", l.continueFlow = "continueFlow", l))(gr || {});
4003
- class Sd {
4006
+ var _r = /* @__PURE__ */ ((l) => (l.strictBreak = "strictBreak", l.strictProgress = "strictProgress", l.crossfadeBreak = "crossfadeBreak", l.crossfadeProgress = "crossfadeProgress", l.continueFlow = "continueFlow", l))(_r || {});
4007
+ class Ad {
4004
4008
  /**
4005
4009
  * @constructor
4006
4010
  * @param {object} config of tracks samples
@@ -4028,9 +4032,9 @@ class Sd {
4028
4032
  this.name = t;
4029
4033
  const { switchMethod: e, tracks: i } = s;
4030
4034
  i.forEach((r, a) => {
4031
- this._tracks.set(a, new ic(r, pr.excludeRandom));
4035
+ this._tracks.set(a, new oc(r, mr.excludeRandom));
4032
4036
  }), e && Object.values(e).forEach((r) => {
4033
- gr[r.method] && this._trackSwitcher.set(this._getKey(r.from, r.to), r.method);
4037
+ _r[r.method] && this._trackSwitcher.set(this._getKey(r.from, r.to), r.method);
4034
4038
  });
4035
4039
  const n = new Ds();
4036
4040
  this.howl = () => n.service("howl");
@@ -4097,7 +4101,7 @@ class Sd {
4097
4101
  }
4098
4102
  }
4099
4103
  }
4100
- class Ad {
4104
+ class kd {
4101
4105
  /** @constructor */
4102
4106
  constructor(s, t, e, i) {
4103
4107
  f(this, "name", "preloader.class");
@@ -4118,7 +4122,7 @@ class Ad {
4118
4122
  G.clear(this.name), this._loader.style.opacity = "0", this._game.style.opacity = "1";
4119
4123
  }
4120
4124
  }
4121
- let uc = class _r extends Zo {
4125
+ let fc = class yr extends Zo {
4122
4126
  /** */
4123
4127
  get size() {
4124
4128
  return this.textures.length;
@@ -4162,11 +4166,11 @@ let uc = class _r extends Zo {
4162
4166
  * })
4163
4167
  */
4164
4168
  clone(s = this.label) {
4165
- const t = new _r(s, this.textures);
4169
+ const t = new yr(s, this.textures);
4166
4170
  return t.speed = this.speed, t.loop = this.loop, t;
4167
4171
  }
4168
4172
  };
4169
- class dc {
4173
+ class pc {
4170
4174
  constructor() {
4171
4175
  f(this, "_fast", !1);
4172
4176
  f(this, "_callbacksFast", /* @__PURE__ */ new Set());
@@ -4185,12 +4189,12 @@ class dc {
4185
4189
  t && this._callbacksFast.add(t), e && this._callbacksSkip.add(e), await s(), t && this._callbacksFast.delete(t), e && this._callbacksSkip.delete(e);
4186
4190
  }
4187
4191
  }
4188
- const Hs = new dc(), Ss = {
4192
+ const Hs = new pc(), Ss = {
4189
4193
  music: "music",
4190
4194
  samples: "samples",
4191
4195
  dealer: "dealer"
4192
4196
  };
4193
- class kd {
4197
+ class Cd {
4194
4198
  constructor() {
4195
4199
  f(this, "name", "sounds.manager");
4196
4200
  f(this, "_config");
@@ -4272,7 +4276,7 @@ if (typeof window < "u" && window.PIXI) {
4272
4276
  return window.PIXI;
4273
4277
  };
4274
4278
  }
4275
- class fc {
4279
+ class mc {
4276
4280
  constructor() {
4277
4281
  f(this, "entries", {});
4278
4282
  f(this, "size", 0);
@@ -4510,7 +4514,7 @@ class yn {
4510
4514
  return s !== 0 && (this.x /= s, this.y /= s), this;
4511
4515
  }
4512
4516
  }
4513
- class pc {
4517
+ class gc {
4514
4518
  constructor(s) {
4515
4519
  f(this, "_image");
4516
4520
  this._image = s;
@@ -4527,7 +4531,7 @@ var Ue;
4527
4531
  (function(l) {
4528
4532
  l[l.MirroredRepeat = 33648] = "MirroredRepeat", l[l.ClampToEdge = 33071] = "ClampToEdge", l[l.Repeat = 10497] = "Repeat";
4529
4533
  })(Ue || (Ue = {}));
4530
- class mc {
4534
+ class _c {
4531
4535
  constructor() {
4532
4536
  f(this, "texture");
4533
4537
  f(this, "u", 0);
@@ -4543,11 +4547,11 @@ class mc {
4543
4547
  f(this, "originalHeight", 0);
4544
4548
  }
4545
4549
  }
4546
- class gc {
4550
+ class yc {
4547
4551
  constructor(s) {
4548
4552
  f(this, "pages", []);
4549
4553
  f(this, "regions", []);
4550
- const t = new _c(s), e = new Array(4), i = {};
4554
+ const t = new bc(s), e = new Array(4), i = {};
4551
4555
  i.size = (h) => {
4552
4556
  h.width = parseInt(e[1]), h.height = parseInt(e[2]);
4553
4557
  }, i.format = () => {
@@ -4587,7 +4591,7 @@ class gc {
4587
4591
  if (r.trim().length === 0)
4588
4592
  a = null, r = t.readLine();
4589
4593
  else if (a) {
4590
- const h = new yr(a, r);
4594
+ const h = new br(a, r);
4591
4595
  for (; ; ) {
4592
4596
  const o = t.readEntry(e, r = t.readLine());
4593
4597
  if (o === 0)
@@ -4605,7 +4609,7 @@ class gc {
4605
4609
  }
4606
4610
  h.originalWidth === 0 && h.originalHeight === 0 && (h.originalWidth = h.width, h.originalHeight = h.height), u && u.length > 0 && d && d.length > 0 && (h.names = u, h.values = d, u = null, d = null), h.u = h.x / a.width, h.v = h.y / a.height, h.degrees === 90 ? (h.u2 = (h.x + h.height) / a.width, h.v2 = (h.y + h.width) / a.height) : (h.u2 = (h.x + h.width) / a.width, h.v2 = (h.y + h.height) / a.height), this.regions.push(h);
4607
4611
  } else {
4608
- for (a = new yc(r.trim()); t.readEntry(e, r = t.readLine()) !== 0; ) {
4612
+ for (a = new wc(r.trim()); t.readEntry(e, r = t.readLine()) !== 0; ) {
4609
4613
  const h = i[e[0]];
4610
4614
  h && h(a);
4611
4615
  }
@@ -4628,7 +4632,7 @@ class gc {
4628
4632
  (s = this.pages[t].texture) == null || s.dispose();
4629
4633
  }
4630
4634
  }
4631
- class _c {
4635
+ class bc {
4632
4636
  constructor(s) {
4633
4637
  f(this, "lines");
4634
4638
  f(this, "index", 0);
@@ -4653,7 +4657,7 @@ class _c {
4653
4657
  }
4654
4658
  }
4655
4659
  }
4656
- class yc {
4660
+ class wc {
4657
4661
  constructor(s) {
4658
4662
  f(this, "name");
4659
4663
  f(this, "minFilter", Xt.Nearest);
@@ -4673,7 +4677,7 @@ class yc {
4673
4677
  t.texture = s;
4674
4678
  }
4675
4679
  }
4676
- class yr extends mc {
4680
+ class br extends _c {
4677
4681
  constructor(t, e) {
4678
4682
  super();
4679
4683
  f(this, "page");
@@ -4856,7 +4860,7 @@ class Kt extends ze {
4856
4860
  throw new Error("Region not set.");
4857
4861
  const n = i.length;
4858
4862
  let r = t.u, a = t.v, u = 0, d = 0;
4859
- if (t instanceof yr) {
4863
+ if (t instanceof br) {
4860
4864
  const h = t.page, o = h.width, c = h.height;
4861
4865
  switch (t.degrees) {
4862
4866
  case 90:
@@ -5026,7 +5030,7 @@ var zt;
5026
5030
  (function(l) {
5027
5031
  l[l.hold = 0] = "hold", l[l.once = 1] = "once", l[l.loop = 2] = "loop", l[l.pingpong = 3] = "pingpong", l[l.onceReverse = 4] = "onceReverse", l[l.loopReverse = 5] = "loopReverse", l[l.pingpongReverse = 6] = "pingpongReverse";
5028
5032
  })(zt || (zt = {}));
5029
- const br = [
5033
+ const wr = [
5030
5034
  zt.hold,
5031
5035
  zt.once,
5032
5036
  zt.loop,
@@ -5057,7 +5061,7 @@ class Kn {
5057
5061
  f(this, "duration");
5058
5062
  if (!s)
5059
5063
  throw new Error("name cannot be null.");
5060
- this.name = s, this.duration = e, this.timelineIds = new fc(), this.bones = [], this.setTimelines(t);
5064
+ this.name = s, this.duration = e, this.timelineIds = new mc(), this.bones = [], this.setTimelines(t);
5061
5065
  }
5062
5066
  setTimelines(s) {
5063
5067
  if (!s)
@@ -5068,7 +5072,7 @@ class Kn {
5068
5072
  const e = /* @__PURE__ */ new Set(), i = s;
5069
5073
  for (let n = 0; n < t; n++) {
5070
5074
  const r = i[n];
5071
- this.timelineIds.addAll(r.propertyIds), wc(r) && e.add(r.boneIndex) && this.bones.push(r.boneIndex);
5075
+ this.timelineIds.addAll(r.propertyIds), vc(r) && e.add(r.boneIndex) && this.bones.push(r.boneIndex);
5072
5076
  }
5073
5077
  }
5074
5078
  /** Returns true if this animation contains a timeline with any of the specified property IDs.
@@ -5157,7 +5161,7 @@ class xt {
5157
5161
  return i - e;
5158
5162
  }
5159
5163
  }
5160
- function bc(l) {
5164
+ function xc(l) {
5161
5165
  return typeof l == "object" && l !== null && typeof l.slotIndex == "number";
5162
5166
  }
5163
5167
  class ys extends xt {
@@ -5334,7 +5338,7 @@ class We extends ys {
5334
5338
  }
5335
5339
  }
5336
5340
  }
5337
- function wc(l) {
5341
+ function vc(l) {
5338
5342
  return typeof l == "object" && l !== null && typeof l.boneIndex == "number";
5339
5343
  }
5340
5344
  class bs extends We {
@@ -5384,7 +5388,7 @@ class Ii extends bs {
5384
5388
  s.rotation = this.getRelativeValue(e, i, n, r, s.rotation, t.rotation);
5385
5389
  }
5386
5390
  }
5387
- class wr extends Qn {
5391
+ class xr extends Qn {
5388
5392
  constructor(s, t, e) {
5389
5393
  super(s, t, e, lt.x, lt.y);
5390
5394
  }
@@ -5461,7 +5465,7 @@ class wr extends Qn {
5461
5465
  n === tt.setup ? (s.x = t.x + d * i, s.y = t.y + h * i) : r ? (s.x += d * i, s.y += h * i) : (s.x += (t.x + d - s.x) * i, s.y += (t.y + h - s.y) * i);
5462
5466
  }
5463
5467
  }
5464
- class xr extends bs {
5468
+ class vr extends bs {
5465
5469
  constructor(s, t, e) {
5466
5470
  super(s, t, e, lt.x);
5467
5471
  }
@@ -5469,7 +5473,7 @@ class xr extends bs {
5469
5473
  s.x = this.getRelativeValue(e, i, n, r, s.x, t.x);
5470
5474
  }
5471
5475
  }
5472
- class vr extends bs {
5476
+ class Sr extends bs {
5473
5477
  constructor(s, t, e) {
5474
5478
  super(s, t, e, lt.y);
5475
5479
  }
@@ -5477,7 +5481,7 @@ class vr extends bs {
5477
5481
  s.y = this.getRelativeValue(e, i, n, r, s.y, t.y);
5478
5482
  }
5479
5483
  }
5480
- class Sr extends Qn {
5484
+ class Ar extends Qn {
5481
5485
  constructor(s, t, e) {
5482
5486
  super(s, t, e, lt.scaleX, lt.scaleY);
5483
5487
  }
@@ -5559,7 +5563,7 @@ class Sr extends Qn {
5559
5563
  }
5560
5564
  }
5561
5565
  }
5562
- class Ar extends bs {
5566
+ class kr extends bs {
5563
5567
  constructor(s, t, e) {
5564
5568
  super(s, t, e, lt.scaleX);
5565
5569
  }
@@ -5567,7 +5571,7 @@ class Ar extends bs {
5567
5571
  s.scaleX = this.getScaleValue(e, i, n, r, a, s.scaleX, t.scaleX);
5568
5572
  }
5569
5573
  }
5570
- class kr extends bs {
5574
+ class Cr extends bs {
5571
5575
  constructor(s, t, e) {
5572
5576
  super(s, t, e, lt.scaleY);
5573
5577
  }
@@ -5575,7 +5579,7 @@ class kr extends bs {
5575
5579
  s.scaleY = this.getScaleValue(e, i, n, r, a, s.scaleY, t.scaleY);
5576
5580
  }
5577
5581
  }
5578
- class Cr extends Qn {
5582
+ class Tr extends Qn {
5579
5583
  constructor(s, t, e) {
5580
5584
  super(s, t, e, lt.shearX, lt.shearY);
5581
5585
  }
@@ -5652,7 +5656,7 @@ class Cr extends Qn {
5652
5656
  n === tt.setup ? (s.shearX = t.shearX + d * i, s.shearY = t.shearY + h * i) : r ? (s.shearX += d * i, s.shearY += h * i) : (s.shearX += (t.shearX + d - s.shearX) * i, s.shearY += (t.shearY + h - s.shearY) * i);
5653
5657
  }
5654
5658
  }
5655
- class Tr extends bs {
5659
+ class Pr extends bs {
5656
5660
  constructor(s, t, e) {
5657
5661
  super(s, t, e, lt.shearX);
5658
5662
  }
@@ -5660,7 +5664,7 @@ class Tr extends bs {
5660
5664
  s.shearX = this.getRelativeValue(e, i, n, r, s.shearX, t.shearX);
5661
5665
  }
5662
5666
  }
5663
- class Pr extends bs {
5667
+ class Mr extends bs {
5664
5668
  constructor(s, t, e) {
5665
5669
  super(s, t, e, lt.shearY);
5666
5670
  }
@@ -5668,7 +5672,7 @@ class Pr extends bs {
5668
5672
  s.shearY = this.getRelativeValue(e, i, n, r, s.shearY, t.shearY);
5669
5673
  }
5670
5674
  }
5671
- class Mr extends xt {
5675
+ class Fr extends xt {
5672
5676
  constructor(t, e) {
5673
5677
  super(t, `${lt.inherit}|${e}`);
5674
5678
  f(this, "boneIndex");
@@ -5718,7 +5722,7 @@ class Gi extends ys {
5718
5722
  o.bone.active && this.apply1(o, h ? o.appliedPose : o.pose, i, r, a, u);
5719
5723
  }
5720
5724
  }
5721
- class Fr extends Gi {
5725
+ class Ir extends Gi {
5722
5726
  constructor(s, t, e) {
5723
5727
  super(
5724
5728
  s,
@@ -5859,7 +5863,7 @@ class Fr extends Gi {
5859
5863
  a.add((d - a.r) * i, (h - a.g) * i, (o - a.b) * i, (c - a.a) * i);
5860
5864
  }
5861
5865
  }
5862
- class Ir extends Gi {
5866
+ class Er extends Gi {
5863
5867
  constructor(s, t, e) {
5864
5868
  super(s, t, e, `${lt.rgb}|${e}`);
5865
5869
  }
@@ -5974,7 +5978,7 @@ class Ir extends Gi {
5974
5978
  a.r = u < 0 ? 0 : u > 1 ? 1 : u, a.g = d < 0 ? 0 : d > 1 ? 1 : d, a.b = h < 0 ? 0 : h > 1 ? 1 : h;
5975
5979
  }
5976
5980
  }
5977
- class Er extends We {
5981
+ class Rr extends We {
5978
5982
  constructor(t, e, i) {
5979
5983
  super(t, e, `${lt.alpha}|${i}`);
5980
5984
  f(this, "slotIndex", 0);
@@ -6008,7 +6012,7 @@ class Er extends We {
6008
6012
  c.a = p < 0 ? 0 : p > 1 ? 1 : p;
6009
6013
  }
6010
6014
  }
6011
- class Rr extends Gi {
6015
+ class Lr extends Gi {
6012
6016
  constructor(s, t, e) {
6013
6017
  super(
6014
6018
  s,
@@ -6208,7 +6212,7 @@ class Rr extends Gi {
6208
6212
  u.r = d < 0 ? 0 : d > 1 ? 1 : d, u.g = h < 0 ? 0 : h > 1 ? 1 : h, u.b = o < 0 ? 0 : o > 1 ? 1 : o;
6209
6213
  }
6210
6214
  }
6211
- class Lr extends Gi {
6215
+ class Or extends Gi {
6212
6216
  constructor(s, t, e) {
6213
6217
  super(
6214
6218
  s,
@@ -6413,7 +6417,7 @@ class Js extends xt {
6413
6417
  e.setAttachment(i ? t.getAttachment(this.slotIndex, i) : null);
6414
6418
  }
6415
6419
  }
6416
- class Or extends ys {
6420
+ class Br extends ys {
6417
6421
  constructor(t, e, i, n) {
6418
6422
  super(t, e, `${lt.deform}|${i}|${n.id}`);
6419
6423
  f(this, "slotIndex");
@@ -6680,7 +6684,7 @@ const me = class me extends xt {
6680
6684
  if (u.attachment === null || u.attachment.timelineAttachment !== this.attachment)
6681
6685
  return;
6682
6686
  let d = r >> 4, h = u.attachment.sequence.regions.length;
6683
- const o = br[r & 15];
6687
+ const o = wr[r & 15];
6684
6688
  if (o !== zt.hold)
6685
6689
  switch (d += (i - n) / a + 1e-5 | 0, o) {
6686
6690
  case zt.once:
@@ -6842,10 +6846,10 @@ const ei = class ei extends xt {
6842
6846
  };
6843
6847
  f(ei, "propertyID", `${lt.drawOrderFolder}`);
6844
6848
  let Rs = ei;
6845
- function xc(l) {
6849
+ function Sc(l) {
6846
6850
  return typeof l == "object" && l !== null && typeof l.constraintIndex == "number";
6847
6851
  }
6848
- class Br extends ys {
6852
+ class Dr extends ys {
6849
6853
  constructor(t, e, i) {
6850
6854
  super(t, e, `${lt.ikConstraint}|${i}`);
6851
6855
  f(this, "constraintIndex", 0);
@@ -6965,7 +6969,7 @@ class Br extends ys {
6965
6969
  ] !== 0);
6966
6970
  }
6967
6971
  }
6968
- class Dr extends ys {
6972
+ class Yr extends ys {
6969
6973
  constructor(t, e, i) {
6970
6974
  super(t, e, `${lt.transformConstraint}|${i}`);
6971
6975
  /** The index of the transform constraint slot in {@link Skeleton.transformConstraints} that will be changed. */
@@ -7147,7 +7151,7 @@ class gi extends We {
7147
7151
  this.constraintIndex = i;
7148
7152
  }
7149
7153
  }
7150
- class Yr extends gi {
7154
+ class Vr extends gi {
7151
7155
  constructor(s, t, e) {
7152
7156
  super(s, t, e, lt.pathConstraintPosition), this.additive = !0;
7153
7157
  }
@@ -7159,7 +7163,7 @@ class Yr extends gi {
7159
7163
  }
7160
7164
  }
7161
7165
  }
7162
- class Vr extends gi {
7166
+ class Nr extends gi {
7163
7167
  constructor(s, t, e) {
7164
7168
  super(s, t, e, lt.pathConstraintSpacing);
7165
7169
  }
@@ -7171,7 +7175,7 @@ class Vr extends gi {
7171
7175
  }
7172
7176
  }
7173
7177
  }
7174
- class Nr extends ys {
7178
+ class $r extends ys {
7175
7179
  constructor(t, e, i) {
7176
7180
  super(t, e, `${lt.pathConstraintMix}|${i}`);
7177
7181
  f(this, "constraintIndex");
@@ -7310,7 +7314,7 @@ class os extends gi {
7310
7314
  }
7311
7315
  }
7312
7316
  }
7313
- class $r extends os {
7317
+ class Xr extends os {
7314
7318
  constructor(s, t, e) {
7315
7319
  super(s, t, e, lt.physicsConstraintInertia);
7316
7320
  }
@@ -7324,7 +7328,7 @@ class $r extends os {
7324
7328
  return s.inertiaGlobal;
7325
7329
  }
7326
7330
  }
7327
- class Xr extends os {
7331
+ class Wr extends os {
7328
7332
  constructor(s, t, e) {
7329
7333
  super(s, t, e, lt.physicsConstraintStrength);
7330
7334
  }
@@ -7338,7 +7342,7 @@ class Xr extends os {
7338
7342
  return s.strengthGlobal;
7339
7343
  }
7340
7344
  }
7341
- class Wr extends os {
7345
+ class Ur extends os {
7342
7346
  constructor(s, t, e) {
7343
7347
  super(s, t, e, lt.physicsConstraintDamping);
7344
7348
  }
@@ -7352,7 +7356,7 @@ class Wr extends os {
7352
7356
  return s.dampingGlobal;
7353
7357
  }
7354
7358
  }
7355
- class Ur extends os {
7359
+ class Hr extends os {
7356
7360
  constructor(s, t, e) {
7357
7361
  super(s, t, e, lt.physicsConstraintMass);
7358
7362
  }
@@ -7366,7 +7370,7 @@ class Ur extends os {
7366
7370
  return s.massGlobal;
7367
7371
  }
7368
7372
  }
7369
- class Hr extends os {
7373
+ class zr extends os {
7370
7374
  constructor(s, t, e) {
7371
7375
  super(s, t, e, lt.physicsConstraintWind), this.additive = !0;
7372
7376
  }
@@ -7380,7 +7384,7 @@ class Hr extends os {
7380
7384
  return s.windGlobal;
7381
7385
  }
7382
7386
  }
7383
- class zr extends os {
7387
+ class Gr extends os {
7384
7388
  constructor(s, t, e) {
7385
7389
  super(s, t, e, lt.physicsConstraintGravity), this.additive = !0;
7386
7390
  }
@@ -7394,7 +7398,7 @@ class zr extends os {
7394
7398
  return s.gravityGlobal;
7395
7399
  }
7396
7400
  }
7397
- class Gr extends os {
7401
+ class qr extends os {
7398
7402
  constructor(s, t, e) {
7399
7403
  super(s, t, e, lt.physicsConstraintMix);
7400
7404
  }
@@ -7445,7 +7449,7 @@ const Xi = class Xi extends xt {
7445
7449
  };
7446
7450
  f(Xi, "propertyIds", [lt.physicsConstraintReset.toString()]);
7447
7451
  let Ri = Xi;
7448
- class qr extends gi {
7452
+ class jr extends gi {
7449
7453
  constructor(s, t, e) {
7450
7454
  super(s, t, e, lt.sliderTime);
7451
7455
  }
@@ -7457,7 +7461,7 @@ class qr extends gi {
7457
7461
  }
7458
7462
  }
7459
7463
  }
7460
- class jr extends gi {
7464
+ class Kr extends gi {
7461
7465
  constructor(s, t, e) {
7462
7466
  super(s, t, e, lt.sliderMix), this.additive = !0;
7463
7467
  }
@@ -7483,10 +7487,10 @@ const si = class si {
7483
7487
  f(this, "unkeyedState", 0);
7484
7488
  f(this, "events", []);
7485
7489
  f(this, "listeners", []);
7486
- f(this, "queue", new Sc(this));
7490
+ f(this, "queue", new kc(this));
7487
7491
  f(this, "propertyIds", /* @__PURE__ */ new Map());
7488
7492
  f(this, "animationsChanged", !1);
7489
- f(this, "trackEntryPool", new li(() => new vc()));
7493
+ f(this, "trackEntryPool", new li(() => new Ac()));
7490
7494
  this.data = s;
7491
7495
  }
7492
7496
  /** Increments each track entry {@link TrackEntry.trackTime}, setting queued animations as current if needed. */
@@ -7913,7 +7917,7 @@ const si = class si {
7913
7917
  }
7914
7918
  from(s, t, e) {
7915
7919
  const i = this.propertyIds;
7916
- let n = Ac;
7920
+ let n = Cc;
7917
7921
  for (let r = 0, a = e.length; r < a; r++) {
7918
7922
  const u = i.get(e[r]);
7919
7923
  if (u === void 0)
@@ -7964,7 +7968,7 @@ const si = class si {
7964
7968
  };
7965
7969
  f(si, "emptyAnimation", new Kn("<empty>", [], 0));
7966
7970
  let bn = si;
7967
- class vc {
7971
+ class Ac {
7968
7972
  constructor() {
7969
7973
  /** The animation to apply for this track entry. */
7970
7974
  f(this, "animation", null);
@@ -8205,7 +8209,7 @@ class vc {
8205
8209
  return this.next != null && this.nextTrackLast - this.next.delay >= 0;
8206
8210
  }
8207
8211
  }
8208
- class Sc {
8212
+ class kc {
8209
8213
  constructor(s) {
8210
8214
  f(this, "objects", []);
8211
8215
  f(this, "drainDisabled", !1);
@@ -8296,8 +8300,8 @@ var se;
8296
8300
  (function(l) {
8297
8301
  l[l.start = 0] = "start", l[l.interrupt = 1] = "interrupt", l[l.end = 2] = "end", l[l.dispose = 3] = "dispose", l[l.complete = 4] = "complete", l[l.event = 5] = "event";
8298
8302
  })(se || (se = {}));
8299
- const bo = 0, Ac = 1, wo = 2, xo = 3, wi = 4, vo = 1, So = 2;
8300
- class kc {
8303
+ const bo = 0, Cc = 1, wo = 2, xo = 3, wi = 4, vo = 1, So = 2;
8304
+ class Tc {
8301
8305
  constructor(s) {
8302
8306
  /** The SkeletonData to look up animations when they are specified by name. */
8303
8307
  f(this, "skeletonData");
@@ -8415,7 +8419,7 @@ class Jn extends ze {
8415
8419
  return t.x = this.x, t.y = this.y, t.rotation = this.rotation, t.color.setFromColor(this.color), t;
8416
8420
  }
8417
8421
  }
8418
- class Kr {
8422
+ class Qr {
8419
8423
  constructor(s, t = !1) {
8420
8424
  f(this, "atlas");
8421
8425
  f(this, "allowMissingRegions");
@@ -8771,7 +8775,7 @@ class wn {
8771
8775
  this.a = e * i - t * this.c, this.b = e * n - t * this.d, this.c = t * i + e * this.c, this.d = t * n + e * this.d;
8772
8776
  }
8773
8777
  }
8774
- class Qr {
8778
+ class Jr {
8775
8779
  constructor(s, t, e) {
8776
8780
  /** The constraint's setup pose data. */
8777
8781
  f(this, "data");
@@ -8812,7 +8816,7 @@ class Qr {
8812
8816
  this.constrainedPose.set(this.pose);
8813
8817
  }
8814
8818
  }
8815
- class Jr extends Qr {
8819
+ class Zr extends Jr {
8816
8820
  constructor(t, e, i) {
8817
8821
  super(t, e, i);
8818
8822
  f(this, "active", !1);
@@ -8826,7 +8830,7 @@ class Jr extends Qr {
8826
8830
  return this.active;
8827
8831
  }
8828
8832
  }
8829
- class Zs extends Jr {
8833
+ class Zs extends Zr {
8830
8834
  constructor(t, e) {
8831
8835
  super(t, new wn(), new wn());
8832
8836
  /** The parent bone, or null if this is the root bone. */
@@ -8842,7 +8846,7 @@ class Zs extends Jr {
8842
8846
  return e.pose.set(this.pose), e;
8843
8847
  }
8844
8848
  }
8845
- class _i extends Jr {
8849
+ class _i extends Zr {
8846
8850
  constructor(s, t, e) {
8847
8851
  super(s, t, e);
8848
8852
  }
@@ -8850,7 +8854,7 @@ class _i extends Jr {
8850
8854
  return !0;
8851
8855
  }
8852
8856
  }
8853
- class Cc {
8857
+ class Pc {
8854
8858
  constructor(s) {
8855
8859
  f(this, "_setupPose");
8856
8860
  /** The unconstrained draw order, set by animations and application code. */
@@ -8906,7 +8910,7 @@ class to {
8906
8910
  this.time = s, this.data = t;
8907
8911
  }
8908
8912
  }
8909
- class Zr {
8913
+ class ta {
8910
8914
  constructor(s) {
8911
8915
  /** The name of the event, unique across all events in the skeleton.
8912
8916
  *
@@ -9538,7 +9542,7 @@ class kn {
9538
9542
  this.attachment !== s && ((!(s instanceof ze) || !(this.attachment instanceof ze) || s.timelineAttachment !== this.attachment.timelineAttachment) && (this.deform.length = 0), this.attachment = s, this.sequenceIndex = -1);
9539
9543
  }
9540
9544
  }
9541
- class eo extends Qr {
9545
+ class eo extends Jr {
9542
9546
  constructor(t, e) {
9543
9547
  super(t, new kn(), new kn());
9544
9548
  f(this, "skeleton");
@@ -9626,7 +9630,7 @@ const hs = class hs {
9626
9630
  this.slots = [];
9627
9631
  for (const t of this.data.slots)
9628
9632
  this.slots.push(new eo(t, this));
9629
- this.drawOrder = new Cc(this.slots), this.physics = [], this.constraints = [];
9633
+ this.drawOrder = new Pc(this.slots), this.physics = [], this.constraints = [];
9630
9634
  for (const t of this.data.constraints) {
9631
9635
  const e = t.create(this);
9632
9636
  e instanceof Ki && this.physics.push(e), this.constraints.push(e);
@@ -10183,7 +10187,7 @@ const ii = class ii extends _i {
10183
10187
  const a = i.animation.timelines, u = t.slots, d = t.constraints, h = t.physics, o = t.physics.length;
10184
10188
  for (let c = 0, p = i.animation.timelines.length; c < p; c++) {
10185
10189
  const g = a[c];
10186
- if (bc(g))
10190
+ if (xc(g))
10187
10191
  t.constrained(u[g.slotIndex]);
10188
10192
  else if (g instanceof ns || g instanceof Rs)
10189
10193
  t.drawOrder.constrained();
@@ -10193,7 +10197,7 @@ const ii = class ii extends _i {
10193
10197
  t.constrained(h[m]);
10194
10198
  else
10195
10199
  t.constrained(d[g.constraintIndex]);
10196
- else if (xc(g)) {
10200
+ else if (Sc(g)) {
10197
10201
  const m = g.constraintIndex;
10198
10202
  m !== -1 && t.constrained(d[m]);
10199
10203
  }
@@ -10512,7 +10516,7 @@ class Pn {
10512
10516
  }
10513
10517
  }
10514
10518
  }
10515
- class ta extends Zn {
10519
+ class ea extends Zn {
10516
10520
  constructor(t, e, i) {
10517
10521
  super(e, new kn());
10518
10522
  /** The index of the slot in {@link Skeleton.slots}. */
@@ -10723,7 +10727,7 @@ class Fn extends Ys {
10723
10727
  return a < 0 && (a += 360), a;
10724
10728
  }
10725
10729
  }
10726
- class ea extends Vs {
10730
+ class sa extends Vs {
10727
10731
  mix(s) {
10728
10732
  return s.mixRotate;
10729
10733
  }
@@ -10743,7 +10747,7 @@ class In extends Ys {
10743
10747
  return e ? t.x + i[mt.X] : (i[mt.X] * t.a + i[mt.Y] * t.b + t.worldX) / s.scaleX;
10744
10748
  }
10745
10749
  }
10746
- class sa extends Vs {
10750
+ class ia extends Vs {
10747
10751
  mix(s) {
10748
10752
  return s.mixX;
10749
10753
  }
@@ -10756,7 +10760,7 @@ class En extends Ys {
10756
10760
  return e ? t.y + i[mt.Y] : (i[mt.X] * t.c + i[mt.Y] * t.d + t.worldY) / s.scaleY;
10757
10761
  }
10758
10762
  }
10759
- class ia extends Vs {
10763
+ class na extends Vs {
10760
10764
  mix(s) {
10761
10765
  return s.mixY;
10762
10766
  }
@@ -10772,7 +10776,7 @@ class Rn extends Ys {
10772
10776
  return Math.sqrt(n * n + r * r) + i[mt.SCALEX];
10773
10777
  }
10774
10778
  }
10775
- class na extends Vs {
10779
+ class oa extends Vs {
10776
10780
  mix(s) {
10777
10781
  return s.mixScaleX;
10778
10782
  }
@@ -10796,7 +10800,7 @@ class Ln extends Ys {
10796
10800
  return Math.sqrt(n * n + r * r) + i[mt.SCALEY];
10797
10801
  }
10798
10802
  }
10799
- class oa extends Vs {
10803
+ class ra extends Vs {
10800
10804
  mix(s) {
10801
10805
  return s.mixScaleY;
10802
10806
  }
@@ -10820,7 +10824,7 @@ class On extends Ys {
10820
10824
  return (Math.atan2(t.d * r, t.b * n) - Math.atan2(t.c * r, t.a * n)) * K.radDeg - 90 + i[mt.SHEARY];
10821
10825
  }
10822
10826
  }
10823
- class ra extends Vs {
10827
+ class aa extends Vs {
10824
10828
  mix(s) {
10825
10829
  return s.mixShearY;
10826
10830
  }
@@ -10835,7 +10839,7 @@ class ra extends Vs {
10835
10839
  }
10836
10840
  }
10837
10841
  }
10838
- class aa {
10842
+ class la {
10839
10843
  constructor(s) {
10840
10844
  /** Scales bone positions, image sizes, and translations as they are loaded. This allows different size images to be used at
10841
10845
  * runtime than were used in Spine.
@@ -10849,7 +10853,7 @@ class aa {
10849
10853
  readSkeletonData(s) {
10850
10854
  const t = this.scale, e = new so();
10851
10855
  e.name = "";
10852
- const i = new Tc(s), n = i.readInt32(), r = i.readInt32();
10856
+ const i = new Mc(s), n = i.readInt32(), r = i.readInt32();
10853
10857
  e.hash = r === 0 && n === 0 ? null : r.toString(16) + n.toString(16), e.version = i.readString(), e.x = i.readFloat(), e.y = i.readFloat(), e.width = i.readFloat(), e.height = i.readFloat(), e.referenceScale = i.readFloat() * t;
10854
10858
  const a = i.readBoolean();
10855
10859
  a && (e.fps = i.readFloat(), e.imagesPath = i.readString(), e.audioPath = i.readString());
@@ -10875,7 +10879,7 @@ class aa {
10875
10879
  const m = i.readString();
10876
10880
  if (!m)
10877
10881
  throw new Error("Slot name must not be null.");
10878
- const y = d[i.readInt(!0)], _ = new ta(g, m, y);
10882
+ const y = d[i.readInt(!0)], _ = new ea(g, m, y);
10879
10883
  rt.rgba8888ToColor(_.setupPose.color, i.readInt32());
10880
10884
  const b = i.readInt32();
10881
10885
  b !== -1 && rt.rgb888ToColor(_.setupPose.darkColor = new rt(), b), _.attachmentName = i.readStringRef(), _.blendMode = i.readInt(!0), a && (_.visible = i.readBoolean()), e.slots.push(_);
@@ -10887,7 +10891,7 @@ class aa {
10887
10891
  throw new Error("Constraint data name must not be null.");
10888
10892
  let y;
10889
10893
  switch (i.readByte()) {
10890
- case qc: {
10894
+ case Kc: {
10891
10895
  const _ = new Si(m);
10892
10896
  y = i.readInt(!0);
10893
10897
  for (let w = 0; w < y; w++)
@@ -10899,7 +10903,7 @@ class aa {
10899
10903
  x.bendDirection = (b & 4) !== 0 ? -1 : 1, x.compress = (b & 8) !== 0, x.stretch = (b & 16) !== 0, (b & 32) !== 0 && (x.mix = (b & 64) !== 0 ? i.readFloat() : 1), (b & 128) !== 0 && (x.softness = i.readFloat() * t), h.push(_);
10900
10904
  break;
10901
10905
  }
10902
- case Kc: {
10906
+ case Jc: {
10903
10907
  const _ = new mt(m);
10904
10908
  y = i.readInt(!0);
10905
10909
  for (let w = 0; w < y; w++)
@@ -10939,24 +10943,24 @@ class aa {
10939
10943
  let T = 1, L;
10940
10944
  switch (i.readByte()) {
10941
10945
  case 0:
10942
- L = new ea();
10946
+ L = new sa();
10943
10947
  break;
10944
10948
  case 1: {
10945
- T = t, L = new sa();
10949
+ T = t, L = new ia();
10946
10950
  break;
10947
10951
  }
10948
10952
  case 2: {
10949
- T = t, L = new ia();
10953
+ T = t, L = new na();
10950
10954
  break;
10951
10955
  }
10952
10956
  case 3:
10953
- L = new na();
10957
+ L = new oa();
10954
10958
  break;
10955
10959
  case 4:
10956
- L = new oa();
10960
+ L = new ra();
10957
10961
  break;
10958
10962
  case 5:
10959
- L = new ra();
10963
+ L = new aa();
10960
10964
  break;
10961
10965
  default:
10962
10966
  L = null;
@@ -10971,7 +10975,7 @@ class aa {
10971
10975
  (b & 1) !== 0 && (x.mixRotate = i.readFloat()), (b & 2) !== 0 && (x.mixX = i.readFloat()), (b & 4) !== 0 && (x.mixY = i.readFloat()), (b & 8) !== 0 && (x.mixScaleX = i.readFloat()), (b & 16) !== 0 && (x.mixScaleY = i.readFloat()), (b & 32) !== 0 && (x.mixShearY = i.readFloat()), h.push(_);
10972
10976
  break;
10973
10977
  }
10974
- case jc: {
10978
+ case Qc: {
10975
10979
  const _ = new Ai(m);
10976
10980
  y = i.readInt(!0);
10977
10981
  for (let w = 0; w < y; w++)
@@ -10983,7 +10987,7 @@ class aa {
10983
10987
  x.position = i.readFloat(), _.positionMode === Re.Fixed && (x.position *= t), x.spacing = i.readFloat(), (_.spacingMode === Yt.Length || _.spacingMode === Yt.Fixed) && (x.spacing *= t), x.mixRotate = i.readFloat(), x.mixX = i.readFloat(), x.mixY = i.readFloat(), h.push(_);
10984
10988
  break;
10985
10989
  }
10986
- case Qc: {
10990
+ case Zc: {
10987
10991
  const _ = new ki(m);
10988
10992
  _.bone = d[i.readInt(!0)];
10989
10993
  let b = i.readByte();
@@ -10996,7 +11000,7 @@ class aa {
10996
11000
  x.inertia = i.readFloat(), x.strength = i.readFloat(), x.damping = i.readFloat(), x.massInverse = (b & 128) !== 0 ? i.readFloat() : 1, x.wind = i.readFloat(), x.gravity = i.readFloat(), b = i.readByte(), (b & 1) !== 0 && (_.inertiaGlobal = !0), (b & 2) !== 0 && (_.strengthGlobal = !0), (b & 4) !== 0 && (_.dampingGlobal = !0), (b & 8) !== 0 && (_.massGlobal = !0), (b & 16) !== 0 && (_.windGlobal = !0), (b & 32) !== 0 && (_.gravityGlobal = !0), (b & 64) !== 0 && (_.mixGlobal = !0), x.mix = (b & 128) !== 0 ? i.readFloat() : 1, h.push(_);
10997
11001
  break;
10998
11002
  }
10999
- case Jc: {
11003
+ case th: {
11000
11004
  const _ = new fs(m), b = i.readByte();
11001
11005
  if (_.skinRequired = (b & 1) !== 0, _.loop = (b & 2) !== 0, _.additive = (b & 4) !== 0, (b & 8) !== 0) {
11002
11006
  const x = i.readFloat();
@@ -11063,7 +11067,7 @@ class aa {
11063
11067
  const m = i.readString();
11064
11068
  if (!m)
11065
11069
  throw new Error("Event data name must not be null");
11066
- const y = new Zr(m), _ = y.setupPose;
11070
+ const y = new ta(m), _ = y.setupPose;
11067
11071
  _.intValue = i.readInt(!1), _.floatValue = i.readFloat(), _.stringValue = i.readString(), y._audioPath = i.readString(), y.audioPath && (_.volume = i.readFloat(), _.balance = i.readFloat()), e.events.push(y);
11068
11072
  }
11069
11073
  const p = e.animations;
@@ -11150,7 +11154,7 @@ class aa {
11150
11154
  let _ = 0, b = 0;
11151
11155
  r && (_ = s.readFloat(), b = s.readFloat());
11152
11156
  const x = this.attachmentLoader.newMeshAttachment(e, n, d, h, c);
11153
- return x ? (x.path = h, rt.rgba8888ToColor(x.color, o), r && (x.width = _ * a, x.height = b * a), this.linkedMeshes.push(new Pc(x, m, i, g, y, p)), x) : null;
11157
+ return x ? (x.path = h, rt.rgba8888ToColor(x.color, o), r && (x.width = _ * a, x.height = b * a), this.linkedMeshes.push(new Fc(x, m, i, g, y, p)), x) : null;
11154
11158
  }
11155
11159
  case Ye.Path: {
11156
11160
  const h = (u & 16) !== 0, o = (u & 32) !== 0, c = this.readVertices(s, (u & 64) !== 0), p = this.readFloatArray(s, c.length / 6, a), g = r ? s.readInt32() : 0, m = this.attachmentLoader.newPathAttachment(e, n, d);
@@ -11209,15 +11213,15 @@ class aa {
11209
11213
  for (let y = 0, _ = s.readInt(!0); y < _; y++) {
11210
11214
  const b = s.readByte(), x = s.readInt(!0), w = x - 1;
11211
11215
  switch (b) {
11212
- case Xc: {
11216
+ case Uc: {
11213
11217
  const A = new Js(x, m);
11214
11218
  for (let v = 0; v < x; v++)
11215
11219
  A.setFrame(v, s.readFloat(), s.readStringRef());
11216
11220
  n.push(A);
11217
11221
  break;
11218
11222
  }
11219
- case Wc: {
11220
- const A = s.readInt(!0), v = new Fr(x, A, m);
11223
+ case Hc: {
11224
+ const A = s.readInt(!0), v = new Ir(x, A, m);
11221
11225
  let S = s.readFloat(), k = s.readUnsignedByte() / 255, T = s.readUnsignedByte() / 255, L = s.readUnsignedByte() / 255, P = s.readUnsignedByte() / 255;
11222
11226
  for (let M = 0, D = 0; v.setFrame(M, S, k, T, L, P), M !== w; M++) {
11223
11227
  const Y = s.readFloat(), V = s.readUnsignedByte() / 255, X = s.readUnsignedByte() / 255, q = s.readUnsignedByte() / 255, O = s.readUnsignedByte() / 255;
@@ -11233,8 +11237,8 @@ class aa {
11233
11237
  n.push(v);
11234
11238
  break;
11235
11239
  }
11236
- case Uc: {
11237
- const A = s.readInt(!0), v = new Ir(x, A, m);
11240
+ case zc: {
11241
+ const A = s.readInt(!0), v = new Er(x, A, m);
11238
11242
  let S = s.readFloat(), k = s.readUnsignedByte() / 255, T = s.readUnsignedByte() / 255, L = s.readUnsignedByte() / 255;
11239
11243
  for (let P = 0, M = 0; v.setFrame(P, S, k, T, L), P !== w; P++) {
11240
11244
  const D = s.readFloat(), Y = s.readUnsignedByte() / 255, V = s.readUnsignedByte() / 255, X = s.readUnsignedByte() / 255;
@@ -11250,8 +11254,8 @@ class aa {
11250
11254
  n.push(v);
11251
11255
  break;
11252
11256
  }
11253
- case Hc: {
11254
- const A = s.readInt(!0), v = new Rr(x, A, m);
11257
+ case Gc: {
11258
+ const A = s.readInt(!0), v = new Lr(x, A, m);
11255
11259
  let S = s.readFloat(), k = s.readUnsignedByte() / 255, T = s.readUnsignedByte() / 255, L = s.readUnsignedByte() / 255, P = s.readUnsignedByte() / 255, M = s.readUnsignedByte() / 255, D = s.readUnsignedByte() / 255, Y = s.readUnsignedByte() / 255;
11256
11260
  for (let V = 0, X = 0; v.setFrame(V, S, k, T, L, P, M, D, Y), V !== w; V++) {
11257
11261
  const q = s.readFloat(), O = s.readUnsignedByte() / 255, B = s.readUnsignedByte() / 255, F = s.readUnsignedByte() / 255, I = s.readUnsignedByte() / 255, $ = s.readUnsignedByte() / 255, H = s.readUnsignedByte() / 255, J = s.readUnsignedByte() / 255;
@@ -11267,8 +11271,8 @@ class aa {
11267
11271
  n.push(v);
11268
11272
  break;
11269
11273
  }
11270
- case zc: {
11271
- const A = s.readInt(!0), v = new Lr(x, A, m);
11274
+ case qc: {
11275
+ const A = s.readInt(!0), v = new Or(x, A, m);
11272
11276
  let S = s.readFloat(), k = s.readUnsignedByte() / 255, T = s.readUnsignedByte() / 255, L = s.readUnsignedByte() / 255, P = s.readUnsignedByte() / 255, M = s.readUnsignedByte() / 255, D = s.readUnsignedByte() / 255;
11273
11277
  for (let Y = 0, V = 0; v.setFrame(Y, S, k, T, L, P, M, D), Y !== w; Y++) {
11274
11278
  const X = s.readFloat(), q = s.readUnsignedByte() / 255, O = s.readUnsignedByte() / 255, B = s.readUnsignedByte() / 255, F = s.readUnsignedByte() / 255, I = s.readUnsignedByte() / 255, $ = s.readUnsignedByte() / 255;
@@ -11284,8 +11288,8 @@ class aa {
11284
11288
  n.push(v);
11285
11289
  break;
11286
11290
  }
11287
- case Gc: {
11288
- const A = new Er(x, s.readInt(!0), m);
11291
+ case jc: {
11292
+ const A = new Rr(x, s.readInt(!0), m);
11289
11293
  let v = s.readFloat(), S = s.readUnsignedByte() / 255;
11290
11294
  for (let k = 0, T = 0; A.setFrame(k, v, S), k !== w; k++) {
11291
11295
  const L = s.readFloat(), P = s.readUnsignedByte() / 255;
@@ -11307,8 +11311,8 @@ class aa {
11307
11311
  const m = s.readInt(!0);
11308
11312
  for (let y = 0, _ = s.readInt(!0); y < _; y++) {
11309
11313
  const b = s.readByte(), x = s.readInt(!0);
11310
- if (b === $c) {
11311
- const A = new Mr(x, m);
11314
+ if (b === Wc) {
11315
+ const A = new Fr(x, m);
11312
11316
  for (let v = 0; v < x; v++)
11313
11317
  A.setFrame(v, s.readFloat(), s.readByte());
11314
11318
  n.push(A);
@@ -11316,41 +11320,41 @@ class aa {
11316
11320
  }
11317
11321
  const w = s.readInt(!0);
11318
11322
  switch (b) {
11319
- case Ic:
11320
- Rt(s, n, new Ii(x, w, m), 1);
11321
- break;
11322
- case Ec:
11323
- Rt(s, n, new wr(x, w, m), r);
11324
- break;
11325
11323
  case Rc:
11326
- Rt(s, n, new xr(x, w, m), r);
11324
+ Rt(s, n, new Ii(x, w, m), 1);
11327
11325
  break;
11328
11326
  case Lc:
11329
- Rt(s, n, new vr(x, w, m), r);
11327
+ Rt(s, n, new xr(x, w, m), r);
11330
11328
  break;
11331
11329
  case Oc:
11332
- Rt(s, n, new Sr(x, w, m), 1);
11330
+ Rt(s, n, new vr(x, w, m), r);
11333
11331
  break;
11334
11332
  case Bc:
11335
- Rt(s, n, new Ar(x, w, m), 1);
11333
+ Rt(s, n, new Sr(x, w, m), r);
11336
11334
  break;
11337
11335
  case Dc:
11338
- Rt(s, n, new kr(x, w, m), 1);
11336
+ Rt(s, n, new Ar(x, w, m), 1);
11339
11337
  break;
11340
11338
  case Yc:
11341
- Rt(s, n, new Cr(x, w, m), 1);
11339
+ Rt(s, n, new kr(x, w, m), 1);
11342
11340
  break;
11343
11341
  case Vc:
11344
- Rt(s, n, new Tr(x, w, m), 1);
11342
+ Rt(s, n, new Cr(x, w, m), 1);
11345
11343
  break;
11346
11344
  case Nc:
11345
+ Rt(s, n, new Tr(x, w, m), 1);
11346
+ break;
11347
+ case $c:
11347
11348
  Rt(s, n, new Pr(x, w, m), 1);
11348
11349
  break;
11350
+ case Xc:
11351
+ Rt(s, n, new Mr(x, w, m), 1);
11352
+ break;
11349
11353
  }
11350
11354
  }
11351
11355
  }
11352
11356
  for (let p = 0, g = s.readInt(!0); p < g; p++) {
11353
- const m = s.readInt(!0), y = s.readInt(!0), _ = y - 1, b = new Br(y, s.readInt(!0), m);
11357
+ const m = s.readInt(!0), y = s.readInt(!0), _ = y - 1, b = new Dr(y, s.readInt(!0), m);
11354
11358
  let x = s.readByte(), w = s.readFloat(), A = (x & 1) !== 0 ? (x & 2) !== 0 ? s.readFloat() : 1 : 0, v = (x & 4) !== 0 ? s.readFloat() * r : 0;
11355
11359
  for (let S = 0, k = 0; b.setFrame(S, w, A, v, (x & 8) !== 0 ? 1 : -1, (x & 16) !== 0, (x & 32) !== 0), S !== _; S++) {
11356
11360
  x = s.readByte();
@@ -11360,7 +11364,7 @@ class aa {
11360
11364
  n.push(b);
11361
11365
  }
11362
11366
  for (let p = 0, g = s.readInt(!0); p < g; p++) {
11363
- const m = s.readInt(!0), y = s.readInt(!0), _ = y - 1, b = new Dr(y, s.readInt(!0), m);
11367
+ const m = s.readInt(!0), y = s.readInt(!0), _ = y - 1, b = new Yr(y, s.readInt(!0), m);
11364
11368
  let x = s.readFloat(), w = s.readFloat(), A = s.readFloat(), v = s.readFloat(), S = s.readFloat(), k = s.readFloat(), T = s.readFloat();
11365
11369
  for (let L = 0, P = 0; b.setFrame(L, x, w, A, v, S, k, T), L !== _; L++) {
11366
11370
  const M = s.readFloat(), D = s.readFloat(), Y = s.readFloat(), V = s.readFloat(), X = s.readFloat(), q = s.readFloat(), O = s.readFloat();
@@ -11380,14 +11384,14 @@ class aa {
11380
11384
  for (let _ = 0, b = s.readInt(!0); _ < b; _++) {
11381
11385
  const x = s.readByte(), w = s.readInt(!0), A = s.readInt(!0);
11382
11386
  switch (x) {
11383
- case eh:
11384
- Rt(s, n, new Yr(w, A, m), y.positionMode === Re.Fixed ? r : 1);
11387
+ case ih:
11388
+ Rt(s, n, new Vr(w, A, m), y.positionMode === Re.Fixed ? r : 1);
11385
11389
  break;
11386
- case sh:
11387
- Rt(s, n, new Vr(w, A, m), y.spacingMode === Yt.Length || y.spacingMode === Yt.Fixed ? r : 1);
11390
+ case nh:
11391
+ Rt(s, n, new Nr(w, A, m), y.spacingMode === Yt.Length || y.spacingMode === Yt.Fixed ? r : 1);
11388
11392
  break;
11389
- case ih: {
11390
- const v = new Nr(w, A, m);
11393
+ case oh: {
11394
+ const v = new $r(w, A, m);
11391
11395
  let S = s.readFloat(), k = s.readFloat(), T = s.readFloat(), L = s.readFloat();
11392
11396
  for (let P = 0, M = 0, D = v.getFrameCount() - 1; v.setFrame(P, S, k, T, L), P !== D; P++) {
11393
11397
  const Y = s.readFloat(), V = s.readFloat(), X = s.readFloat(), q = s.readFloat();
@@ -11409,7 +11413,7 @@ class aa {
11409
11413
  const m = s.readInt(!0) - 1;
11410
11414
  for (let y = 0, _ = s.readInt(!0); y < _; y++) {
11411
11415
  const b = s.readByte(), x = s.readInt(!0);
11412
- if (b === uh) {
11416
+ if (b === fh) {
11413
11417
  const A = new Ri(x, m);
11414
11418
  for (let v = 0; v < x; v++)
11415
11419
  A.setFrame(v, s.readFloat());
@@ -11418,27 +11422,27 @@ class aa {
11418
11422
  }
11419
11423
  const w = s.readInt(!0);
11420
11424
  switch (b) {
11421
- case nh:
11422
- Rt(s, n, new $r(x, w, m), 1);
11423
- break;
11424
- case oh:
11425
+ case rh:
11425
11426
  Rt(s, n, new Xr(x, w, m), 1);
11426
11427
  break;
11427
- case rh:
11428
+ case ah:
11428
11429
  Rt(s, n, new Wr(x, w, m), 1);
11429
11430
  break;
11430
- case ah:
11431
+ case lh:
11431
11432
  Rt(s, n, new Ur(x, w, m), 1);
11432
11433
  break;
11433
- case lh:
11434
+ case ch:
11434
11435
  Rt(s, n, new Hr(x, w, m), 1);
11435
11436
  break;
11436
- case ch:
11437
+ case hh:
11437
11438
  Rt(s, n, new zr(x, w, m), 1);
11438
11439
  break;
11439
- case hh:
11440
+ case uh:
11440
11441
  Rt(s, n, new Gr(x, w, m), 1);
11441
11442
  break;
11443
+ case dh:
11444
+ Rt(s, n, new qr(x, w, m), 1);
11445
+ break;
11442
11446
  default:
11443
11447
  throw new Error("Unknown physics timeline type.");
11444
11448
  }
@@ -11449,12 +11453,12 @@ class aa {
11449
11453
  for (let y = 0, _ = s.readInt(!0); y < _; y++) {
11450
11454
  const b = s.readByte(), x = s.readInt(!0), w = s.readInt(!0);
11451
11455
  switch (b) {
11452
- case dh:
11453
- Rt(s, n, new qr(x, w, m), 1);
11454
- break;
11455
- case fh:
11456
+ case ph:
11456
11457
  Rt(s, n, new jr(x, w, m), 1);
11457
11458
  break;
11459
+ case mh:
11460
+ Rt(s, n, new Kr(x, w, m), 1);
11461
+ break;
11458
11462
  default:
11459
11463
  throw new Error(`Uknown slider type: ${b}`);
11460
11464
  }
@@ -11470,8 +11474,8 @@ class aa {
11470
11474
  throw new Error("attachmentName must not be null.");
11471
11475
  const v = m.getAttachment(b, A), S = s.readByte(), k = s.readInt(!0), T = k - 1;
11472
11476
  switch (S) {
11473
- case Zc: {
11474
- const L = v, P = L.bones, M = L.vertices, D = P ? M.length / 3 * 2 : M.length, Y = s.readInt(!0), V = new Or(k, Y, b, L);
11477
+ case eh: {
11478
+ const L = v, P = L.bones, M = L.vertices, D = P ? M.length / 3 * 2 : M.length, Y = s.readInt(!0), V = new Br(k, Y, b, L);
11475
11479
  let X = s.readFloat();
11476
11480
  for (let q = 0, O = 0; ; q++) {
11477
11481
  let B, F = s.readInt(!0);
@@ -11505,11 +11509,11 @@ class aa {
11505
11509
  n.push(V);
11506
11510
  break;
11507
11511
  }
11508
- case th: {
11512
+ case sh: {
11509
11513
  const L = new Ei(k, b, v);
11510
11514
  for (let P = 0; P < k; P++) {
11511
11515
  const M = s.readFloat(), D = s.readInt32();
11512
- L.setFrame(P, M, br[D & 15], D >> 4, s.readFloat());
11516
+ L.setFrame(P, M, wr[D & 15], D >> 4, s.readFloat());
11513
11517
  }
11514
11518
  n.push(L);
11515
11519
  break;
@@ -11551,7 +11555,7 @@ class aa {
11551
11555
  return i && rt.rgba8888ToColor(c.color, s.readInt32()), c;
11552
11556
  }
11553
11557
  }
11554
- class Tc {
11558
+ class Mc {
11555
11559
  constructor(s, t = [], e = 0, i = new DataView(s instanceof ArrayBuffer ? s : s.buffer)) {
11556
11560
  f(this, "strings");
11557
11561
  f(this, "index");
@@ -11614,7 +11618,7 @@ class Tc {
11614
11618
  return this.readByte() !== 0;
11615
11619
  }
11616
11620
  }
11617
- let Pc = class {
11621
+ let Fc = class {
11618
11622
  constructor(s, t, e, i, n, r) {
11619
11623
  f(this, "source");
11620
11624
  f(this, "skinIndex");
@@ -11638,9 +11642,9 @@ var Ye;
11638
11642
  l[l.Region = 0] = "Region", l[l.BoundingBox = 1] = "BoundingBox", l[l.Mesh = 2] = "Mesh", l[l.LinkedMesh = 3] = "LinkedMesh", l[l.Path = 4] = "Path", l[l.Point = 5] = "Point", l[l.Clipping = 6] = "Clipping";
11639
11643
  })(Ye || (Ye = {}));
11640
11644
  function Rt(l, s, t, e) {
11641
- t instanceof We ? Mc(l, s, t, e) : Fc(l, s, t, e);
11645
+ t instanceof We ? Ic(l, s, t, e) : Ec(l, s, t, e);
11642
11646
  }
11643
- function Mc(l, s, t, e) {
11647
+ function Ic(l, s, t, e) {
11644
11648
  let i = l.readFloat(), n = l.readFloat() * e;
11645
11649
  for (let r = 0, a = 0, u = t.getFrameCount() - 1; t.setFrame(r, i, n), r !== u; r++) {
11646
11650
  const d = l.readFloat(), h = l.readFloat() * e;
@@ -11655,7 +11659,7 @@ function Mc(l, s, t, e) {
11655
11659
  }
11656
11660
  s.push(t);
11657
11661
  }
11658
- function Fc(l, s, t, e) {
11662
+ function Ec(l, s, t, e) {
11659
11663
  let i = l.readFloat(), n = l.readFloat() * e, r = l.readFloat() * e;
11660
11664
  for (let a = 0, u = 0, d = t.getFrameCount() - 1; t.setFrame(a, i, n, r), a !== d; a++) {
11661
11665
  const h = l.readFloat(), o = l.readFloat() * e, c = l.readFloat() * e;
@@ -11691,8 +11695,8 @@ function Co(l, s) {
11691
11695
  function ht(l, s, t, e, i, n, r, a, u, d) {
11692
11696
  s.setBezier(t, e, i, n, a, l.readFloat(), l.readFloat() * d, l.readFloat(), l.readFloat() * d, r, u);
11693
11697
  }
11694
- const Ic = 0, Ec = 1, Rc = 2, Lc = 3, Oc = 4, Bc = 5, Dc = 6, Yc = 7, Vc = 8, Nc = 9, $c = 10, Xc = 0, Wc = 1, Uc = 2, Hc = 3, zc = 4, Gc = 5, qc = 0, jc = 1, Kc = 2, Qc = 3, Jc = 4, Zc = 0, th = 1, eh = 0, sh = 1, ih = 2, nh = 0, oh = 1, rh = 2, ah = 4, lh = 5, ch = 6, hh = 7, uh = 8, dh = 0, fh = 1, ke = 1, Ce = 2;
11695
- class ph {
11698
+ const Rc = 0, Lc = 1, Oc = 2, Bc = 3, Dc = 4, Yc = 5, Vc = 6, Nc = 7, $c = 8, Xc = 9, Wc = 10, Uc = 0, Hc = 1, zc = 2, Gc = 3, qc = 4, jc = 5, Kc = 0, Qc = 1, Jc = 2, Zc = 3, th = 4, eh = 0, sh = 1, ih = 0, nh = 1, oh = 2, rh = 0, ah = 1, lh = 2, ch = 4, hh = 5, uh = 6, dh = 7, fh = 8, ph = 0, mh = 1, ke = 1, Ce = 2;
11699
+ class gh {
11696
11700
  constructor() {
11697
11701
  /** The left edge of the axis aligned bounding box. */
11698
11702
  f(this, "minX", 0);
@@ -11936,7 +11940,7 @@ class Jt {
11936
11940
  return s * (r - i) + e * (t - r) + n * (i - t) >= 0 ? 1 : -1;
11937
11941
  }
11938
11942
  }
11939
- class mh {
11943
+ class _h {
11940
11944
  constructor() {
11941
11945
  f(this, "triangulator", null);
11942
11946
  f(this, "clippingPolygon", []);
@@ -12359,7 +12363,7 @@ class mh {
12359
12363
  s.length = n - 2;
12360
12364
  }
12361
12365
  }
12362
- class la {
12366
+ class ca {
12363
12367
  constructor(s) {
12364
12368
  f(this, "attachmentLoader");
12365
12369
  /** Scales bone positions, image sizes, and translations as they are loaded. This allows different size images to be used at
@@ -12391,7 +12395,7 @@ class la {
12391
12395
  const a = i.slots[r], u = a.name, d = e.findBone(a.bone);
12392
12396
  if (!d)
12393
12397
  throw new Error(`Couldn't find bone ${a.bone} for slot ${u}`);
12394
- const h = new ta(e.slots.length, u, d), o = E(a, "color", null);
12398
+ const h = new ea(e.slots.length, u, d), o = E(a, "color", null);
12395
12399
  o && h.setupPose.color.setFromString(o);
12396
12400
  const c = E(a, "dark", null);
12397
12401
  c && (h.setupPose.darkColor = rt.fromString(c)), h.attachmentName = E(a, "attachment", null), h.blendMode = Q.enumValue(es, E(a, "blend", "normal")), h.visible = E(a, "visible", !0), e.slots.push(h);
@@ -12442,27 +12446,27 @@ class la {
12442
12446
  let P = 1, M;
12443
12447
  switch (T) {
12444
12448
  case "rotate": {
12445
- c = !0, M = new ea();
12449
+ c = !0, M = new sa();
12446
12450
  break;
12447
12451
  }
12448
12452
  case "x": {
12449
- p = !0, M = new sa(), P = t;
12453
+ p = !0, M = new ia(), P = t;
12450
12454
  break;
12451
12455
  }
12452
12456
  case "y": {
12453
- g = !0, M = new ia(), P = t;
12457
+ g = !0, M = new na(), P = t;
12454
12458
  break;
12455
12459
  }
12456
12460
  case "scaleX": {
12457
- m = !0, M = new na();
12461
+ m = !0, M = new oa();
12458
12462
  break;
12459
12463
  }
12460
12464
  case "scaleY": {
12461
- y = !0, M = new oa();
12465
+ y = !0, M = new ra();
12462
12466
  break;
12463
12467
  }
12464
12468
  case "shearY": {
12465
- _ = !0, M = new ra();
12469
+ _ = !0, M = new aa();
12466
12470
  break;
12467
12471
  }
12468
12472
  default:
@@ -12601,7 +12605,7 @@ class la {
12601
12605
  }
12602
12606
  if (this.linkedMeshes.length = 0, i.events)
12603
12607
  for (const r in i.events) {
12604
- const a = i.events[r], u = new Zr(r), d = u.setupPose;
12608
+ const a = i.events[r], u = new ta(r), d = u.setupPose;
12605
12609
  d.intValue = E(a, "int", 0), d.floatValue = E(a, "float", 0), d.stringValue = E(a, "string", ""), u._audioPath = E(a, "audio", null), u.audioPath && (d.volume = E(a, "volume", d.volume), d.balance = E(a, "balance", d.balance)), e.events.push(u);
12606
12610
  }
12607
12611
  if (i.animations)
@@ -12694,7 +12698,7 @@ class la {
12694
12698
  throw new Error(`Source mesh slot not found: ${m}`);
12695
12699
  g = y.index;
12696
12700
  }
12697
- return this.linkedMeshes.push(new gh(h, E(s, "skin", null), e, g, c, E(s, "timelines", !0))), h;
12701
+ return this.linkedMeshes.push(new yh(h, E(s, "skin", null), e, g, c, E(s, "timelines", !0))), h;
12698
12702
  }
12699
12703
  const p = s.uvs;
12700
12704
  return this.readVertices(s, h, p.length), h.triangles = s.triangles, h.regionUVs = p, h.edges = E(s, "edges", null), h.hullLength = E(s, "hull", 0) * 2, h.updateSequence(), h;
@@ -12788,7 +12792,7 @@ class la {
12788
12792
  break;
12789
12793
  }
12790
12794
  case "rgba": {
12791
- const y = new Fr(m, m << 2, c);
12795
+ const y = new Ir(m, m << 2, c);
12792
12796
  let _ = g[0], b = E(_, "time", 0), x = rt.fromString(_.color);
12793
12797
  for (let w = 0, A = 0; ; w++) {
12794
12798
  y.setFrame(w, b, x.r, x.g, x.b, x.a);
@@ -12804,7 +12808,7 @@ class la {
12804
12808
  break;
12805
12809
  }
12806
12810
  case "rgb": {
12807
- const y = new Ir(m, m * 3, c);
12811
+ const y = new Er(m, m * 3, c);
12808
12812
  let _ = g[0], b = E(_, "time", 0), x = rt.fromString(_.color);
12809
12813
  for (let w = 0, A = 0; ; w++) {
12810
12814
  y.setFrame(w, b, x.r, x.g, x.b);
@@ -12820,11 +12824,11 @@ class la {
12820
12824
  break;
12821
12825
  }
12822
12826
  case "alpha": {
12823
- re(n, g, new Er(m, m, c), 0, 1);
12827
+ re(n, g, new Rr(m, m, c), 0, 1);
12824
12828
  break;
12825
12829
  }
12826
12830
  case "rgba2": {
12827
- const y = new Rr(m, m * 7, c);
12831
+ const y = new Lr(m, m * 7, c);
12828
12832
  let _ = g[0], b = E(_, "time", 0), x = rt.fromString(_.light), w = rt.fromString(_.dark);
12829
12833
  for (let A = 0, v = 0; ; A++) {
12830
12834
  y.setFrame(A, b, x.r, x.g, x.b, x.a, w.r, w.g, w.b);
@@ -12840,7 +12844,7 @@ class la {
12840
12844
  break;
12841
12845
  }
12842
12846
  case "rgb2": {
12843
- const y = new Lr(m, m * 6, c);
12847
+ const y = new Or(m, m * 6, c);
12844
12848
  let _ = g[0], b = E(_, "time", 0), x = rt.fromString(_.light), w = rt.fromString(_.dark);
12845
12849
  for (let A = 0, v = 0; ; A++) {
12846
12850
  y.setFrame(A, b, x.r, x.g, x.b, w.r, w.g, w.b);
@@ -12874,34 +12878,34 @@ class la {
12874
12878
  re(n, g, new Ii(m, m, c), 0, 1);
12875
12879
  break;
12876
12880
  case "translate":
12877
- nn(n, g, new wr(m, m << 1, c), "x", "y", 0, i);
12881
+ nn(n, g, new xr(m, m << 1, c), "x", "y", 0, i);
12878
12882
  break;
12879
12883
  case "translatex":
12880
- re(n, g, new xr(m, m, c), 0, i);
12884
+ re(n, g, new vr(m, m, c), 0, i);
12881
12885
  break;
12882
12886
  case "translatey":
12883
- re(n, g, new vr(m, m, c), 0, i);
12887
+ re(n, g, new Sr(m, m, c), 0, i);
12884
12888
  break;
12885
12889
  case "scale":
12886
- nn(n, g, new Sr(m, m << 1, c), "x", "y", 1, 1);
12890
+ nn(n, g, new Ar(m, m << 1, c), "x", "y", 1, 1);
12887
12891
  break;
12888
12892
  case "scalex":
12889
- re(n, g, new Ar(m, m, c), 1, 1);
12893
+ re(n, g, new kr(m, m, c), 1, 1);
12890
12894
  break;
12891
12895
  case "scaley":
12892
- re(n, g, new kr(m, m, c), 1, 1);
12896
+ re(n, g, new Cr(m, m, c), 1, 1);
12893
12897
  break;
12894
12898
  case "shear":
12895
- nn(n, g, new Cr(m, m << 1, c), "x", "y", 0, 1);
12899
+ nn(n, g, new Tr(m, m << 1, c), "x", "y", 0, 1);
12896
12900
  break;
12897
12901
  case "shearx":
12898
- re(n, g, new Tr(m, m, c), 0, 1);
12902
+ re(n, g, new Pr(m, m, c), 0, 1);
12899
12903
  break;
12900
12904
  case "sheary":
12901
- re(n, g, new Pr(m, m, c), 0, 1);
12905
+ re(n, g, new Mr(m, m, c), 0, 1);
12902
12906
  break;
12903
12907
  case "inherit": {
12904
- const y = new Mr(m, o.index);
12908
+ const y = new Fr(m, o.index);
12905
12909
  for (let _ = 0; _ < g.length; _++) {
12906
12910
  const b = g[_];
12907
12911
  y.setFrame(_, E(b, "time", 0), Q.enumValue(Tt, E(b, "inherit", "Normal")));
@@ -12923,7 +12927,7 @@ class la {
12923
12927
  const c = e.findConstraint(d, Si);
12924
12928
  if (!c)
12925
12929
  throw new Error(`IK Constraint not found: ${d}`);
12926
- const p = new Br(h.length, h.length << 1, e.constraints.indexOf(c));
12930
+ const p = new Dr(h.length, h.length << 1, e.constraints.indexOf(c));
12927
12931
  let g = E(o, "time", 0), m = E(o, "mix", 1), y = E(o, "softness", 0) * i;
12928
12932
  for (let _ = 0, b = 0; ; _++) {
12929
12933
  p.setFrame(_, g, m, y, E(o, "bendPositive", !0) ? 1 : -1, E(o, "compress", !1), E(o, "stretch", !1));
@@ -12946,7 +12950,7 @@ class la {
12946
12950
  const c = e.findConstraint(d, mt);
12947
12951
  if (!c)
12948
12952
  throw new Error(`Transform constraint not found: ${d}`);
12949
- const p = new Dr(h.length, h.length * 6, e.constraints.indexOf(c));
12953
+ const p = new Yr(h.length, h.length * 6, e.constraints.indexOf(c));
12950
12954
  let g = E(o, "time", 0), m = E(o, "mixRotate", 1), y = E(o, "mixX", 1), _ = E(o, "mixY", y), b = E(o, "mixScaleX", 1), x = E(o, "mixScaleY", 1), w = E(o, "mixShearY", 1);
12951
12955
  for (let A = 0, v = 0; ; A++) {
12952
12956
  p.setFrame(A, g, m, y, _, b, x, w);
@@ -12974,17 +12978,17 @@ class la {
12974
12978
  const y = g.length;
12975
12979
  switch (p) {
12976
12980
  case "position": {
12977
- const _ = new Yr(y, y, c);
12981
+ const _ = new Vr(y, y, c);
12978
12982
  re(n, g, _, 0, o.positionMode === Re.Fixed ? i : 1);
12979
12983
  break;
12980
12984
  }
12981
12985
  case "spacing": {
12982
- const _ = new Vr(y, y, c);
12986
+ const _ = new Nr(y, y, c);
12983
12987
  re(n, g, _, 0, o.spacingMode === Yt.Length || o.spacingMode === Yt.Fixed ? i : 1);
12984
12988
  break;
12985
12989
  }
12986
12990
  case "mix": {
12987
- const _ = new Nr(y, y * 3, c);
12991
+ const _ = new $r(y, y * 3, c);
12988
12992
  let b = E(m, "time", 0), x = E(m, "mixRotate", 1), w = E(m, "mixX", 1), A = E(m, "mixY", w);
12989
12993
  for (let v = 0, S = 0; ; v++) {
12990
12994
  _.setFrame(v, b, x, w, A);
@@ -13028,25 +13032,25 @@ class la {
13028
13032
  }
13029
13033
  switch (c) {
13030
13034
  case "inertia":
13031
- y = new $r(m, m, o);
13035
+ y = new Xr(m, m, o);
13032
13036
  break;
13033
13037
  case "strength":
13034
- y = new Xr(m, m, o);
13038
+ y = new Wr(m, m, o);
13035
13039
  break;
13036
13040
  case "damping":
13037
- y = new Wr(m, m, o);
13041
+ y = new Ur(m, m, o);
13038
13042
  break;
13039
13043
  case "mass":
13040
- y = new Ur(m, m, o);
13044
+ y = new Hr(m, m, o);
13041
13045
  break;
13042
13046
  case "wind":
13043
- y = new Hr(m, m, o);
13047
+ y = new zr(m, m, o);
13044
13048
  break;
13045
13049
  case "gravity":
13046
- y = new zr(m, m, o);
13050
+ y = new Gr(m, m, o);
13047
13051
  break;
13048
13052
  case "mix": {
13049
- _ = 1, y = new Gr(m, m, o);
13053
+ _ = 1, y = new qr(m, m, o);
13050
13054
  break;
13051
13055
  }
13052
13056
  default:
@@ -13068,10 +13072,10 @@ class la {
13068
13072
  const y = g.length;
13069
13073
  switch (p) {
13070
13074
  case "time":
13071
- re(n, g, new qr(y, y, c), 1, 1);
13075
+ re(n, g, new jr(y, y, c), 1, 1);
13072
13076
  break;
13073
13077
  case "mix":
13074
- re(n, g, new jr(y, y, c), 1, 1);
13078
+ re(n, g, new Kr(y, y, c), 1, 1);
13075
13079
  break;
13076
13080
  }
13077
13081
  }
@@ -13095,7 +13099,7 @@ class la {
13095
13099
  let A = w[0];
13096
13100
  if (A) {
13097
13101
  if (x === "deform") {
13098
- const v = b.bones, S = b.vertices, k = v ? S.length / 3 * 2 : S.length, T = new Or(w.length, w.length, m, b);
13102
+ const v = b.bones, S = b.vertices, k = v ? S.length / 3 * 2 : S.length, T = new Br(w.length, w.length, m, b);
13099
13103
  let L = E(A, "time", 0);
13100
13104
  for (let P = 0, M = 0; ; P++) {
13101
13105
  let D;
@@ -13178,7 +13182,7 @@ class la {
13178
13182
  u !== null && a.color.setFromString(u), e.animations.push(a);
13179
13183
  }
13180
13184
  }
13181
- class gh {
13185
+ class yh {
13182
13186
  constructor(s, t, e, i, n, r) {
13183
13187
  f(this, "source");
13184
13188
  f(this, "skin");
@@ -13257,7 +13261,7 @@ function dt(l, s, t, e, i, n, r, a, u, d) {
13257
13261
  function E(l, s, t) {
13258
13262
  return l[s] !== void 0 ? l[s] : t;
13259
13263
  }
13260
- const ve = class ve extends pc {
13264
+ const ve = class ve extends gc {
13261
13265
  constructor(t) {
13262
13266
  super(t.resource);
13263
13267
  f(this, "texture");
@@ -13336,7 +13340,7 @@ const ve = class ve extends pc {
13336
13340
  };
13337
13341
  f(ve, "textureMap", /* @__PURE__ */ new Map());
13338
13342
  let Li = ve;
13339
- const As = "spineTextureAtlasLoader", _h = {
13343
+ const As = "spineTextureAtlasLoader", bh = {
13340
13344
  extension: Ee.Asset,
13341
13345
  resolver: {
13342
13346
  test: (l) => Ms(l, ".atlas"),
@@ -13344,7 +13348,7 @@ const As = "spineTextureAtlasLoader", _h = {
13344
13348
  var t, e;
13345
13349
  const s = l.split(".");
13346
13350
  return {
13347
- resolution: parseFloat(((e = (t = Za.RETINA_PREFIX) == null ? void 0 : t.exec(l)) == null ? void 0 : e[1]) ?? "1"),
13351
+ resolution: parseFloat(((e = (t = el.RETINA_PREFIX) == null ? void 0 : t.exec(l)) == null ? void 0 : e[1]) ?? "1"),
13348
13352
  format: s[s.length - 2],
13349
13353
  src: l
13350
13354
  };
@@ -13378,7 +13382,7 @@ const As = "spineTextureAtlasLoader", _h = {
13378
13382
  const e = s.data || {};
13379
13383
  let i = Ze.dirname(s.src);
13380
13384
  i && i.lastIndexOf("/") !== i.length - 1 && (i += "/");
13381
- const n = new gc(l);
13385
+ const n = new yc(l);
13382
13386
  if (e.images instanceof fo || typeof e.images == "string") {
13383
13387
  const a = e.images;
13384
13388
  e.images = {}, e.images[n.pages[0].name] = a;
@@ -13390,7 +13394,7 @@ const As = "spineTextureAtlasLoader", _h = {
13390
13394
  a.setTexture(Li.from(d));
13391
13395
  else {
13392
13396
  const h = d ?? Ze.normalize([...i.split(Ze.sep), u].join(Ze.sep)), o = {
13393
- src: Ja(h, s.src),
13397
+ src: tl(h, s.src),
13394
13398
  data: {
13395
13399
  ...e.imageMetadata,
13396
13400
  alphaMode: a.pma ? "premultiplied-alpha" : "premultiply-alpha-on-upload"
@@ -13405,15 +13409,15 @@ const As = "spineTextureAtlasLoader", _h = {
13405
13409
  }
13406
13410
  }
13407
13411
  };
13408
- mi.add(_h);
13412
+ mi.add(bh);
13409
13413
  const ks = "spineSkeletonLoader";
13410
- function yh(l) {
13414
+ function wh(l) {
13411
13415
  return Object.prototype.hasOwnProperty.call(l, "bones");
13412
13416
  }
13413
- function bh(l) {
13417
+ function xh(l) {
13414
13418
  return l instanceof Uint8Array;
13415
13419
  }
13416
- const wh = {
13420
+ const vh = {
13417
13421
  extension: Ee.Asset,
13418
13422
  loader: {
13419
13423
  id: ks,
@@ -13433,22 +13437,22 @@ const wh = {
13433
13437
  return new Uint8Array(await s.arrayBuffer());
13434
13438
  },
13435
13439
  testParse(l, s) {
13436
- const t = Ms(s.src, ".json") && yh(l), e = Ms(s.src, ".skel") && bh(l), i = s.parser === ks || s.loadParser === ks;
13440
+ const t = Ms(s.src, ".json") && wh(l), e = Ms(s.src, ".skel") && xh(l), i = s.parser === ks || s.loadParser === ks;
13437
13441
  return Promise.resolve(t || e || i);
13438
13442
  }
13439
13443
  }
13440
13444
  };
13441
- mi.add(wh);
13442
- const xh = new Float32Array(1), vh = new Uint32Array(1);
13443
- class Sh extends tl {
13445
+ mi.add(vh);
13446
+ const Sh = new Float32Array(1), Ah = new Uint32Array(1);
13447
+ class kh extends sl {
13444
13448
  constructor() {
13445
13449
  const t = new po({
13446
- data: xh,
13450
+ data: Sh,
13447
13451
  label: "attribute-batch-buffer",
13448
13452
  usage: bi.VERTEX | bi.COPY_DST,
13449
13453
  shrinkToFit: !1
13450
13454
  }), e = new po({
13451
- data: vh,
13455
+ data: Ah,
13452
13456
  label: "index-batch-buffer",
13453
13457
  usage: bi.INDEX | bi.COPY_DST,
13454
13458
  // | BufferUsage.STATIC,
@@ -13491,7 +13495,7 @@ class Sh extends tl {
13491
13495
  });
13492
13496
  }
13493
13497
  }
13494
- const Ah = {
13498
+ const Ch = {
13495
13499
  name: "color-bit",
13496
13500
  vertex: {
13497
13501
  header: (
@@ -13527,7 +13531,7 @@ const Ah = {
13527
13531
  `
13528
13532
  )
13529
13533
  }
13530
- }, kh = {
13534
+ }, Th = {
13531
13535
  name: "color-bit",
13532
13536
  vertex: {
13533
13537
  header: (
@@ -13561,40 +13565,40 @@ const Ah = {
13561
13565
  )
13562
13566
  }
13563
13567
  };
13564
- class Ch extends el {
13568
+ class Ph extends il {
13565
13569
  constructor(s) {
13566
- const t = sl({
13570
+ const t = nl({
13567
13571
  name: "dark-tint-batch",
13568
13572
  bits: [
13569
- il,
13570
- kh,
13571
- nl(s),
13572
- ol
13573
+ ol,
13574
+ Th,
13575
+ rl(s),
13576
+ al
13573
13577
  ]
13574
- }), e = rl({
13578
+ }), e = ll({
13575
13579
  name: "dark-tint-batch",
13576
13580
  bits: [
13577
- al,
13578
- Ah,
13579
- ll(s),
13580
- cl
13581
+ cl,
13582
+ Ch,
13583
+ hl(s),
13584
+ ul
13581
13585
  ]
13582
13586
  });
13583
13587
  super({
13584
13588
  glProgram: t,
13585
13589
  gpuProgram: e,
13586
13590
  resources: {
13587
- batchSamplers: hl(s)
13591
+ batchSamplers: dl(s)
13588
13592
  }
13589
13593
  });
13590
13594
  }
13591
13595
  }
13592
13596
  let Po = null;
13593
- const Wi = class Wi extends ul {
13597
+ const Wi = class Wi extends fl {
13594
13598
  constructor() {
13595
13599
  super(...arguments);
13596
- f(this, "geometry", new Sh());
13597
- f(this, "shader", Po || (Po = new Ch(this.maxTextures)));
13600
+ f(this, "geometry", new kh());
13601
+ f(this, "shader", Po || (Po = new Ph(this.maxTextures)));
13598
13602
  f(this, "name", Wi.extension.name);
13599
13603
  /** The size of one attribute. 1 = 32 bit. x, y, u, v, color, darkColor, textureIdAndRound -> total = 7 */
13600
13604
  f(this, "vertexSize", 7);
@@ -13620,7 +13624,7 @@ f(Wi, "extension", {
13620
13624
  });
13621
13625
  let Bn = Wi;
13622
13626
  mi.add(Bn);
13623
- const Th = Q.newFloatArray(8), us = class us {
13627
+ const Mh = Q.newFloatArray(8), us = class us {
13624
13628
  constructor(s) {
13625
13629
  f(this, "ctx");
13626
13630
  f(this, "triangleRendering", !1);
@@ -13643,7 +13647,7 @@ const Th = Q.newFloatArray(8), us = class us {
13643
13647
  if (!(o instanceof ct))
13644
13648
  continue;
13645
13649
  const c = o.sequence, p = c.resolveIndex(h);
13646
- o.computeWorldVertices(u, o.getOffsets(h), Th, 0, 2);
13650
+ o.computeWorldVertices(u, o.getOffsets(h), Mh, 0, 2);
13647
13651
  const g = c.regions[p], m = g.texture.getImage(), y = h.color, _ = o.color;
13648
13652
  e.set(i.r * y.r * _.r, i.g * y.g * _.g, i.b * y.b * _.b, i.a * y.a * _.a), t.save();
13649
13653
  const b = d.appliedPose;
@@ -13718,7 +13722,7 @@ const Th = Q.newFloatArray(8), us = class us {
13718
13722
  };
13719
13723
  f(us, "QUAD_TRIANGLES", [0, 1, 2, 2, 3, 0]), f(us, "VERTEX_SIZE", 8);
13720
13724
  let Dn = us;
13721
- class Ph {
13725
+ class Fh {
13722
13726
  constructor() {
13723
13727
  f(this, "indexOffset", 0);
13724
13728
  f(this, "attributeOffset", 0);
@@ -13771,13 +13775,13 @@ class Ph {
13771
13775
  this.texture = t.texture, this.roundPixels = i, this.blendMode = e, this.batcherName = t.darkTint ? "darkTint" : "default";
13772
13776
  }
13773
13777
  }
13774
- const Mh = {
13778
+ const Ih = {
13775
13779
  0: "normal",
13776
13780
  1: "add",
13777
13781
  2: "multiply",
13778
13782
  3: "screen"
13779
13783
  };
13780
- class ca {
13784
+ class ha {
13781
13785
  constructor(s) {
13782
13786
  f(this, "renderer");
13783
13787
  f(this, "canvasSkeletonRenderer");
@@ -13826,10 +13830,10 @@ class ca {
13826
13830
  const o = n[d];
13827
13831
  if (!o.bone.active)
13828
13832
  continue;
13829
- const c = o.appliedPose.attachment, p = Mh[o.data.blendMode];
13833
+ const c = o.appliedPose.attachment, p = Ih[o.data.blendMode];
13830
13834
  let g = !1;
13831
13835
  if (c instanceof ct || c instanceof Kt) {
13832
- const y = s._getCachedData(o, c), _ = (a = e.slotBatches)[u = y.id] || (a[u] = new Ph());
13836
+ const y = s._getCachedData(o, c), _ = (a = e.slotBatches)[u = y.id] || (a[u] = new Fh());
13833
13837
  _.setData(s, y, p, r), g = y.skipRender, g || i.addToBatch(_, t);
13834
13838
  }
13835
13839
  const m = s._slotsObject[o.data.name];
@@ -13874,7 +13878,7 @@ class ca {
13874
13878
  }
13875
13879
  }
13876
13880
  /** @ignore */
13877
- f(ca, "extension", {
13881
+ f(ha, "extension", {
13878
13882
  type: [
13879
13883
  Ee.WebGLPipes,
13880
13884
  Ee.WebGPUPipes,
@@ -13882,12 +13886,12 @@ f(ca, "extension", {
13882
13886
  ],
13883
13887
  name: "spine"
13884
13888
  });
13885
- mi.add(ca);
13889
+ mi.add(ha);
13886
13890
  const xi = new yn();
13887
13891
  ui.yDown = !0;
13888
- const Ae = new mh(), Mo = new li(() => new Os());
13892
+ const Ae = new _h(), Mo = new li(() => new Os());
13889
13893
  var he;
13890
- let Fh = (he = class extends dl {
13894
+ let Eh = (he = class extends pl {
13891
13895
  constructor(t) {
13892
13896
  super({});
13893
13897
  // Pixi properties
@@ -13932,7 +13936,7 @@ let Fh = (he = class extends dl {
13932
13936
  f(this, "currentClippingSlot");
13933
13937
  t instanceof so ? t = { skeletonData: t } : "skeleton" in t && (t = new.target.createOptions(t)), this.allowChildren = !0;
13934
13938
  const { autoUpdate: e, boundsProvider: i, darkTint: n, skeletonData: r, ticker: a } = t;
13935
- this.skeleton = new ui(r), this.state = new bn(new kc(r)), a && (this._ticker = a), this.autoUpdate = e ?? !0, this._boundsProvider = i, this.darkTint = n === void 0 ? this.skeleton.slots.some((d) => !!d.data.setupPose.darkColor) : n;
13939
+ this.skeleton = new ui(r), this.state = new bn(new Tc(r)), a && (this._ticker = a), this.autoUpdate = e ?? !0, this._boundsProvider = i, this.darkTint = n === void 0 ? this.skeleton.slots.some((d) => !!d.data.setupPose.darkColor) : n;
13936
13940
  const u = this.skeleton.slots;
13937
13941
  for (let d = 0; d < u.length; d++)
13938
13942
  this.attachmentCacheData[d] = /* @__PURE__ */ Object.create(null);
@@ -14348,7 +14352,7 @@ let Fh = (he = class extends dl {
14348
14352
  return t = this.getSlotFromRef(t), (e = this._slotsObject[t.data.name]) == null ? void 0 : e.container;
14349
14353
  }
14350
14354
  updateBounds() {
14351
- this._boundsDirty = !1, this.skeletonBounds || (this.skeletonBounds = new ph());
14355
+ this._boundsDirty = !1, this.skeletonBounds || (this.skeletonBounds = new gh());
14352
14356
  const t = this.skeletonBounds;
14353
14357
  if (t.update(this.skeleton, !0), this._boundsProvider) {
14354
14358
  const e = this._boundsProvider.calculateBounds(this), i = this._bounds;
@@ -14437,7 +14441,7 @@ let Fh = (he = class extends dl {
14437
14441
  ticker: d
14438
14442
  };
14439
14443
  }
14440
- const o = Ci.get(e), c = new Kr(o, u), p = Ci.get(t), g = p instanceof Uint8Array ? new aa(c) : new la(c);
14444
+ const o = Ci.get(e), c = new Qr(o, u), p = Ci.get(t), g = p instanceof Uint8Array ? new la(c) : new ca(c);
14441
14445
  g.scale = i;
14442
14446
  const m = g.readSkeletonData(p);
14443
14447
  return xs.set(h, m), he.skeletonDataCacheKeys.set(m, h), {
@@ -14470,7 +14474,7 @@ let Fh = (he = class extends dl {
14470
14474
  return new he(he.createOptions(t));
14471
14475
  }
14472
14476
  }, f(he, "skeletonDataCacheKeys", /* @__PURE__ */ new WeakMap()), he);
14473
- class no extends Fh {
14477
+ class no extends Eh {
14474
14478
  /**
14475
14479
  * @constructor
14476
14480
  * В v8 у Spine появился containsPoint — декоративные спайны стали перехватывать
@@ -14580,7 +14584,7 @@ const ds = class ds extends yt {
14580
14584
  const e = $e.resources.get(t.skeResource || t.srcResource), i = $e.resources.get(t.texResource);
14581
14585
  if (!(e != null && e.data) || !(i != null && i.data))
14582
14586
  throw new Error(`SpineAssets: asset "${s}" is not loaded (skeleton or atlas resource is missing)`);
14583
- const n = i.data, r = new Kr(n), a = e.data, u = a instanceof Uint8Array ? new aa(r).readSkeletonData(a) : new la(r).readSkeletonData(a);
14587
+ const n = i.data, r = new Qr(n), a = e.data, u = a instanceof Uint8Array ? new la(r).readSkeletonData(a) : new ca(r).readSkeletonData(a);
14584
14588
  return ds._skeletonDataCache.set(s, u), u;
14585
14589
  }
14586
14590
  /** */
@@ -14591,7 +14595,7 @@ const ds = class ds extends yt {
14591
14595
  };
14592
14596
  f(ds, "_skeletonDataCache", /* @__PURE__ */ new Map());
14593
14597
  let Oe = ds;
14594
- class Td extends Pt {
14598
+ class Pd extends Pt {
14595
14599
  /**
14596
14600
  * @constructor
14597
14601
  */
@@ -14604,7 +14608,7 @@ class Td extends Pt {
14604
14608
  * Сгенерировать текстуру из раннее добавленных текстур и применить ее на данный спрайт
14605
14609
  */
14606
14610
  generateTexture() {
14607
- const t = fl.create({
14611
+ const t = ml.create({
14608
14612
  width: this._container.width,
14609
14613
  height: this._container.height
14610
14614
  });
@@ -14635,7 +14639,7 @@ class Td extends Pt {
14635
14639
  return this;
14636
14640
  }
14637
14641
  }
14638
- class ha {
14642
+ class ua {
14639
14643
  /**
14640
14644
  * @constructor
14641
14645
  * @param name
@@ -14693,17 +14697,17 @@ class ha {
14693
14697
  async hide() {
14694
14698
  }
14695
14699
  }
14696
- function Ih(l, s = 1) {
14700
+ function Rh(l, s = 1) {
14697
14701
  return l.show().alpha = 0, ne(l, { alpha: 1, duration: s, ease: de.out });
14698
14702
  }
14699
- function Eh(l, s = 1) {
14703
+ function Lh(l, s = 1) {
14700
14704
  return l.show().alpha = 1, ne(l, { alpha: 0, visible: !1, duration: s, ease: de.in });
14701
14705
  }
14702
14706
  function Ls(l, s, t, e, i = 0, n = 16777215, r = 1) {
14703
14707
  const a = new Os();
14704
14708
  return i > 0 ? a.roundRect(l, s, t, e, i) : a.rect(l, s, t, e), a.fill({ color: n, alpha: r }), a;
14705
14709
  }
14706
- class ua extends At {
14710
+ class da extends At {
14707
14711
  /** */
14708
14712
  constructor(t = "blackout.component", e) {
14709
14713
  super(t);
@@ -14735,7 +14739,7 @@ class ua extends At {
14735
14739
  /** */
14736
14740
  async turnOn(t = 131586, e = 0.9, i = 1) {
14737
14741
  const n = this._textureColor === t, r = this._textureAlpha === e;
14738
- (!this._texture || !n || !r) && (this.instance.removeChildren(), this._texture && this._texture.destroy(!0), this._texture = this._generateTexture(t, e), this.instance.addChild(this._background = new Pt(this._texture)), this._textureColor = t, this._textureAlpha = e), await this.draw(), await Ih(this.instance, i);
14742
+ (!this._texture || !n || !r) && (this.instance.removeChildren(), this._texture && this._texture.destroy(!0), this._texture = this._generateTexture(t, e), this.instance.addChild(this._background = new Pt(this._texture)), this._textureColor = t, this._textureAlpha = e), await this.draw(), await Rh(this.instance, i);
14739
14743
  }
14740
14744
  /** Changes color if blackout is on */
14741
14745
  async turnTo(t = 131586, e = 0.9, i = 1) {
@@ -14753,7 +14757,7 @@ class ua extends At {
14753
14757
  }
14754
14758
  /** */
14755
14759
  async turnOff(t = 1) {
14756
- await Eh(this.instance, t);
14760
+ await Lh(this.instance, t);
14757
14761
  }
14758
14762
  /** */
14759
14763
  async draw() {
@@ -14761,7 +14765,7 @@ class ua extends At {
14761
14765
  return this._background && (this._background.width = t, this._background.height = e), this._inBackground && (this._inBackground.width = t, this._inBackground.height = e), this;
14762
14766
  }
14763
14767
  }
14764
- function Rh(l, s, t, e = 300 / 1e3) {
14768
+ function Oh(l, s, t, e = 300 / 1e3) {
14765
14769
  const n = Math.min(l, s) < 1 ? 1e4 : 1, r = { value: l * n };
14766
14770
  return ne(r, {
14767
14771
  value: s * n,
@@ -14770,12 +14774,12 @@ function Rh(l, s, t, e = 300 / 1e3) {
14770
14774
  onComplete: () => t(s)
14771
14775
  });
14772
14776
  }
14773
- function da(l, s, t = 0) {
14777
+ function fa(l, s, t = 0) {
14774
14778
  const e = l.map((i, n) => ({
14775
14779
  color: i,
14776
14780
  offset: (s == null ? void 0 : s[n]) ?? (l.length > 1 ? n / (l.length - 1) : 0)
14777
14781
  }));
14778
- return new pl({
14782
+ return new gl({
14779
14783
  type: "linear",
14780
14784
  start: { x: 0, y: 0 },
14781
14785
  end: t === 1 ? { x: 1, y: 0 } : { x: 0, y: 1 },
@@ -14800,7 +14804,7 @@ function Fo(l) {
14800
14804
  dropShadowDistance: p,
14801
14805
  ...g
14802
14806
  } = l, m = { ...g };
14803
- return s !== void 0 && (m.fill = Array.isArray(s) ? da(s, e, t) : s), (i !== void 0 || n !== void 0) && (typeof i == "object" && i !== null ? m.stroke = i : m.stroke = {
14807
+ return s !== void 0 && (m.fill = Array.isArray(s) ? fa(s, e, t) : s), (i !== void 0 || n !== void 0) && (typeof i == "object" && i !== null ? m.stroke = i : m.stroke = {
14804
14808
  color: i ?? 0,
14805
14809
  width: n ?? 1,
14806
14810
  ...r ? { join: r } : {},
@@ -14851,14 +14855,14 @@ function Io(l, s, t) {
14851
14855
  break;
14852
14856
  }
14853
14857
  case "fill": {
14854
- l.fill = Array.isArray(t) ? da(t) : t;
14858
+ l.fill = Array.isArray(t) ? fa(t) : t;
14855
14859
  break;
14856
14860
  }
14857
14861
  default:
14858
14862
  l[s] = t;
14859
14863
  }
14860
14864
  }
14861
- var Ns = 1e9, Lh = {
14865
+ var Ns = 1e9, Bh = {
14862
14866
  // These values must be integers within the stated ranges (inclusive).
14863
14867
  // Most of these values can be changed during run-time using `Decimal.config`.
14864
14868
  // The maximum number of significant digits of the result of a calculation or base conversion.
@@ -14894,7 +14898,7 @@ var Ns = 1e9, Lh = {
14894
14898
  // The natural logarithm of 10.
14895
14899
  // 115 digits
14896
14900
  LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
14897
- }, ro, kt = !0, ye = "[DecimalError] ", ms = ye + "Invalid argument: ", oo = ye + "Exponent out of range: ", $s = Math.floor, cs = Math.pow, Oh = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ue, Ut = 1e7, St = 7, fa = 9007199254740991, Oi = $s(fa / St), Z = {};
14901
+ }, ro, kt = !0, ye = "[DecimalError] ", ms = ye + "Invalid argument: ", oo = ye + "Exponent out of range: ", $s = Math.floor, cs = Math.pow, Dh = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ue, Ut = 1e7, St = 7, pa = 9007199254740991, Oi = $s(pa / St), Z = {};
14898
14902
  Z.absoluteValue = Z.abs = function() {
14899
14903
  var l = new this.constructor(this);
14900
14904
  return l.s && (l.s = 1), l;
@@ -14959,7 +14963,7 @@ Z.logarithm = Z.log = function(l) {
14959
14963
  };
14960
14964
  Z.minus = Z.sub = function(l) {
14961
14965
  var s = this;
14962
- return l = new s.constructor(l), s.s == l.s ? ga(s, l) : pa(s, (l.s = -l.s, l));
14966
+ return l = new s.constructor(l), s.s == l.s ? _a(s, l) : ma(s, (l.s = -l.s, l));
14963
14967
  };
14964
14968
  Z.modulo = Z.mod = function(l) {
14965
14969
  var s, t = this, e = t.constructor, i = e.precision;
@@ -14967,7 +14971,7 @@ Z.modulo = Z.mod = function(l) {
14967
14971
  return t.s ? (kt = !1, s = He(t, l, 0, 1).times(l), kt = !0, t.minus(s)) : wt(new e(t), i);
14968
14972
  };
14969
14973
  Z.naturalExponential = Z.exp = function() {
14970
- return ma(this);
14974
+ return ga(this);
14971
14975
  };
14972
14976
  Z.naturalLogarithm = Z.ln = function() {
14973
14977
  return di(this);
@@ -14978,7 +14982,7 @@ Z.negated = Z.neg = function() {
14978
14982
  };
14979
14983
  Z.plus = Z.add = function(l) {
14980
14984
  var s = this;
14981
- return l = new s.constructor(l), s.s == l.s ? pa(s, l) : ga(s, (l.s = -l.s, l));
14985
+ return l = new s.constructor(l), s.s == l.s ? ma(s, l) : _a(s, (l.s = -l.s, l));
14982
14986
  };
14983
14987
  Z.precision = Z.sd = function(l) {
14984
14988
  var s, t, e, i = this;
@@ -15049,13 +15053,13 @@ Z.toPower = Z.pow = function(l) {
15049
15053
  if (a.eq(ue)) return a;
15050
15054
  if (e = u.precision, l.eq(ue)) return wt(a, e);
15051
15055
  if (s = l.e, t = l.d.length - 1, r = s >= t, n = a.s, r) {
15052
- if ((t = h < 0 ? -h : h) <= fa) {
15056
+ if ((t = h < 0 ? -h : h) <= pa) {
15053
15057
  for (i = new u(ue), s = Math.ceil(e / St + 4), kt = !1; t % 2 && (i = i.times(a), Ro(i.d, s)), t = $s(t / 2), t !== 0; )
15054
15058
  a = a.times(a), Ro(a.d, s);
15055
15059
  return kt = !0, l.s < 0 ? new u(ue).div(i) : wt(i, e);
15056
15060
  }
15057
15061
  } else if (n < 0) throw Error(ye + "NaN");
15058
- return n = n < 0 && l.d[Math.max(s, t)] & 1 ? -1 : 1, a.s = 1, kt = !1, i = l.times(di(a, e + d)), kt = !0, i = ma(i), i.s = n, i;
15062
+ return n = n < 0 && l.d[Math.max(s, t)] & 1 ? -1 : 1, a.s = 1, kt = !1, i = l.times(di(a, e + d)), kt = !0, i = ga(i), i.s = n, i;
15059
15063
  };
15060
15064
  Z.toPrecision = function(l, s) {
15061
15065
  var t, e, i = this, n = i.constructor;
@@ -15069,7 +15073,7 @@ Z.toString = Z.valueOf = Z.val = Z.toJSON = Z[Symbol.for("nodejs.util.inspect.cu
15069
15073
  var l = this, s = Bt(l), t = l.constructor;
15070
15074
  return _s(l, s <= t.toExpNeg || s >= t.toExpPos);
15071
15075
  };
15072
- function pa(l, s) {
15076
+ function ma(l, s) {
15073
15077
  var t, e, i, n, r, a, u, d, h = l.constructor, o = h.precision;
15074
15078
  if (!l.s || !s.s)
15075
15079
  return s.s || (s = new h(l)), kt ? wt(s, o) : s;
@@ -15140,7 +15144,7 @@ var He = /* @__PURE__ */ function() {
15140
15144
  return g[0] || g.shift(), p.e = u, wt(p, r ? n + Bt(p) + 1 : n);
15141
15145
  };
15142
15146
  }();
15143
- function ma(l, s) {
15147
+ function ga(l, s) {
15144
15148
  var t, e, i, n, r, a, u = 0, d = 0, h = l.constructor, o = h.precision;
15145
15149
  if (Bt(l) > 16) throw Error(oo + Bt(l));
15146
15150
  if (!l.s) return new h(ue);
@@ -15228,7 +15232,7 @@ function wt(l, s, t) {
15228
15232
  throw Error(oo + Bt(l));
15229
15233
  return l;
15230
15234
  }
15231
- function ga(l, s) {
15235
+ function _a(l, s) {
15232
15236
  var t, e, i, n, r, a, u, d, h, o, c = l.constructor, p = c.precision;
15233
15237
  if (!l.s || !s.s)
15234
15238
  return s.s ? s.s = -s.s : s = new c(l), kt ? wt(s, p) : s;
@@ -15263,7 +15267,7 @@ function Ro(l, s) {
15263
15267
  if (l.length > s)
15264
15268
  return l.length = s, !0;
15265
15269
  }
15266
- function _a(l) {
15270
+ function ya(l) {
15267
15271
  var s, t, e;
15268
15272
  function i(n) {
15269
15273
  var r = this;
@@ -15290,14 +15294,14 @@ function _a(l) {
15290
15294
  return Eo(r, n.toString());
15291
15295
  } else if (typeof n != "string")
15292
15296
  throw Error(ms + n);
15293
- if (n.charCodeAt(0) === 45 ? (n = n.slice(1), r.s = -1) : r.s = 1, Oh.test(n)) Eo(r, n);
15297
+ if (n.charCodeAt(0) === 45 ? (n = n.slice(1), r.s = -1) : r.s = 1, Dh.test(n)) Eo(r, n);
15294
15298
  else throw Error(ms + n);
15295
15299
  }
15296
- if (i.prototype = Z, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.clone = _a, i.config = i.set = Bh, l === void 0 && (l = {}), l)
15300
+ if (i.prototype = Z, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.clone = ya, i.config = i.set = Yh, l === void 0 && (l = {}), l)
15297
15301
  for (e = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"], s = 0; s < e.length; ) l.hasOwnProperty(t = e[s++]) || (l[t] = this[t]);
15298
15302
  return i.config(l), i;
15299
15303
  }
15300
- function Bh(l) {
15304
+ function Yh(l) {
15301
15305
  if (!l || typeof l != "object")
15302
15306
  throw Error(ye + "Object expected");
15303
15307
  var s, t, e, i = [
@@ -15323,7 +15327,7 @@ function Bh(l) {
15323
15327
  else throw Error(ms + t + ": " + e);
15324
15328
  return this;
15325
15329
  }
15326
- var ro = _a(Lh);
15330
+ var ro = ya(Bh);
15327
15331
  ue = new ro(1);
15328
15332
  const rn = ro;
15329
15333
  function Lo(l, s) {
@@ -15416,7 +15420,7 @@ const an = [
15416
15420
  */
15417
15421
  async setNumber(t, e, i = null) {
15418
15422
  const n = this.text ? parseFloat(this.text) : 0;
15419
- return await Rh(n, t, (a) => {
15423
+ return await Oh(n, t, (a) => {
15420
15424
  this.text = i ? `${Lo(a, e)}${i}` : Lo(a, e);
15421
15425
  }), this.draw();
15422
15426
  }
@@ -15487,8 +15491,8 @@ f(Ui, "defaultStyle", {
15487
15491
  padding: 0
15488
15492
  });
15489
15493
  let It = Ui;
15490
- var Dh = /* @__PURE__ */ ((l) => (l.big = "big", l.bigLoop = "bigLoop", l.super = "super", l.superLoop = "superLoop", l.epic = "epic", l.epicLoop = "epicLoop", l.complete = "complete", l.end = "end", l))(Dh || {});
15491
- class Pd extends At {
15494
+ var Vh = /* @__PURE__ */ ((l) => (l.big = "big", l.bigLoop = "bigLoop", l.super = "super", l.superLoop = "superLoop", l.epic = "epic", l.epicLoop = "epicLoop", l.complete = "complete", l.end = "end", l))(Vh || {});
15495
+ class Md extends At {
15492
15496
  /** @constructor */
15493
15497
  constructor(t = "big.win.component") {
15494
15498
  super(t);
@@ -15589,7 +15593,7 @@ class Pd extends At {
15589
15593
  }
15590
15594
  /** Adds blackout component */
15591
15595
  async _addBlackout() {
15592
- this._blackoutComponent = new ua("blackout", De("renderer")), this._blackoutComponent.instance.zIndex = 0, await this._blackoutComponent.create(this.instance), this._components.push(this._blackoutComponent);
15596
+ this._blackoutComponent = new da("blackout", De("renderer")), this._blackoutComponent.instance.zIndex = 0, await this._blackoutComponent.create(this.instance), this._components.push(this._blackoutComponent);
15593
15597
  }
15594
15598
  /** Adds "Biw win" title */
15595
15599
  async _addTitle() {
@@ -15677,7 +15681,7 @@ class Pd extends At {
15677
15681
  }
15678
15682
  /** Starts Big Win callback */
15679
15683
  async _big() {
15680
- this._debug("big"), this._currencyTextComponent.text = fr.get(), this._hasLabel && (this._labelTextComponent.show(), this._labelTextComponent.text = `${"big".toLocaleUpperCase()} WIN`), this.instance.show(), this._bigWinContainer.hide(), await this._blackoutComponent.turnOn(
15684
+ this._debug("big"), this._currencyTextComponent.text = pr.get(), this._hasLabel && (this._labelTextComponent.show(), this._labelTextComponent.text = `${"big".toLocaleUpperCase()} WIN`), this.instance.show(), this._bigWinContainer.hide(), await this._blackoutComponent.turnOn(
15681
15685
  this._blackoutParams.color,
15682
15686
  this._blackoutParams.alpha,
15683
15687
  this._blackoutParams.duration
@@ -15750,7 +15754,7 @@ class Pd extends At {
15750
15754
  }
15751
15755
  }
15752
15756
  }
15753
- function Yh(l) {
15757
+ function Nh(l) {
15754
15758
  const s = new Os(), t = [
15755
15759
  [l.width - 2, 1],
15756
15760
  [l.width - 2, l.height - 2],
@@ -15763,7 +15767,7 @@ function Qi(l, s) {
15763
15767
  const t = Math.ceil(l), e = Math.floor(s);
15764
15768
  return Math.floor(Math.random() * (e - t + 1)) + t;
15765
15769
  }
15766
- class Md {
15770
+ class Fd {
15767
15771
  /**
15768
15772
  * @constructor
15769
15773
  */
@@ -15775,7 +15779,7 @@ class Md {
15775
15779
  this.origin = s, this.hover = t, this.click = e, this.disable = i || s;
15776
15780
  }
15777
15781
  }
15778
- class Vh extends At {
15782
+ class $h extends At {
15779
15783
  /**
15780
15784
  *
15781
15785
  * @constructor
@@ -15817,7 +15821,7 @@ class Vh extends At {
15817
15821
  * @param instance
15818
15822
  */
15819
15823
  async create(t) {
15820
- return await super.create(t), this._button = new Pt(), this.disabled = !1, this.instance.addChild(this._button), this.debug && Yh(this.instance), this._initEvents(), this;
15824
+ return await super.create(t), this._button = new Pt(), this.disabled = !1, this.instance.addChild(this._button), this.debug && Nh(this.instance), this._initEvents(), this;
15821
15825
  }
15822
15826
  /**
15823
15827
  * Уничтожить компонент
@@ -15861,7 +15865,7 @@ class Vh extends At {
15861
15865
  * Имитировать клик на кнопку
15862
15866
  */
15863
15867
  click() {
15864
- return this.disabled || (this._stateHovered = !0, this._stateClicked = !0, this.setTexture(), this.soundClick && G.emit("sounds:play", { name: this.soundClick }), G.emit("button:click", { name: this.name, modeOn: this._modeOn }), nr(() => {
15868
+ return this.disabled || (this._stateHovered = !0, this._stateClicked = !0, this.setTexture(), this.soundClick && G.emit("sounds:play", { name: this.soundClick }), G.emit("button:click", { name: this.name, modeOn: this._modeOn }), or(() => {
15865
15869
  this._stateHovered = !1, this._stateClicked = !1, this.setTexture();
15866
15870
  }, 100)), this;
15867
15871
  }
@@ -15916,7 +15920,7 @@ class Vh extends At {
15916
15920
  t && t.stopPropagation(), this._stateHovered = !1, !this.disabled && this.setTexture();
15917
15921
  }
15918
15922
  }
15919
- class Yn extends Vh {
15923
+ class Yn extends $h {
15920
15924
  constructor() {
15921
15925
  super(...arguments);
15922
15926
  f(this, "_faded", new Pt());
@@ -15978,7 +15982,7 @@ class Yn extends Vh {
15978
15982
  this.instance.off(`${this._eventType}over`), this.instance.off(`${this._eventType}down`), this.instance.off(`${this._eventType}up`), this.instance.off(`${this._eventType}upoutside`), this.instance.off(`${this._eventType}out`);
15979
15983
  }
15980
15984
  }
15981
- class Fd extends Yn {
15985
+ class Id extends Yn {
15982
15986
  /** @inheritdoc */
15983
15987
  constructor(t, e, i, n = null, r = !1, a, u) {
15984
15988
  super(t, i, n, r);
@@ -16270,7 +16274,7 @@ class Le {
16270
16274
  this.listen(!1), this.parent.children.splice(this.parent.children.indexOf(this), 1), this.parent.controllers.splice(this.parent.controllers.indexOf(this), 1), this.parent.$children.removeChild(this.domElement);
16271
16275
  }
16272
16276
  }
16273
- class Nh extends Le {
16277
+ class Xh extends Le {
16274
16278
  constructor(s, t, e) {
16275
16279
  super(s, t, e, "boolean", "label"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "checkbox"), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$widget.appendChild(this.$input), this.$input.addEventListener("change", () => {
16276
16280
  this.setValue(this.$input.checked), this._callOnFinishChange();
@@ -16284,7 +16288,7 @@ function Vn(l) {
16284
16288
  let s, t;
16285
16289
  return (s = l.match(/(#|0x)?([a-f0-9]{6})/i)) ? t = s[2] : (s = l.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/)) ? t = parseInt(s[1]).toString(16).padStart(2, 0) + parseInt(s[2]).toString(16).padStart(2, 0) + parseInt(s[3]).toString(16).padStart(2, 0) : (s = l.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i)) && (t = s[1] + s[1] + s[2] + s[2] + s[3] + s[3]), t ? "#" + t : !1;
16286
16290
  }
16287
- const $h = {
16291
+ const Wh = {
16288
16292
  isPrimitive: !0,
16289
16293
  match: (l) => typeof l == "string",
16290
16294
  fromHexString: Vn,
@@ -16294,7 +16298,7 @@ const $h = {
16294
16298
  match: (l) => typeof l == "number",
16295
16299
  fromHexString: (l) => parseInt(l.substring(1), 16),
16296
16300
  toHexString: (l) => "#" + l.toString(16).padStart(6, 0)
16297
- }, Xh = {
16301
+ }, Uh = {
16298
16302
  isPrimitive: !1,
16299
16303
  match: Array.isArray,
16300
16304
  fromHexString(l, s, t = 1) {
@@ -16306,7 +16310,7 @@ const $h = {
16306
16310
  const i = l * e << 16 ^ s * e << 8 ^ t * e << 0;
16307
16311
  return fi.toHexString(i);
16308
16312
  }
16309
- }, Wh = {
16313
+ }, Hh = {
16310
16314
  isPrimitive: !1,
16311
16315
  match: (l) => Object(l) === l,
16312
16316
  fromHexString(l, s, t = 1) {
@@ -16318,13 +16322,13 @@ const $h = {
16318
16322
  const i = l * e << 16 ^ s * e << 8 ^ t * e << 0;
16319
16323
  return fi.toHexString(i);
16320
16324
  }
16321
- }, Uh = [$h, fi, Xh, Wh];
16322
- function Hh(l) {
16323
- return Uh.find((s) => s.match(l));
16325
+ }, zh = [Wh, fi, Uh, Hh];
16326
+ function Gh(l) {
16327
+ return zh.find((s) => s.match(l));
16324
16328
  }
16325
- class zh extends Le {
16329
+ class qh extends Le {
16326
16330
  constructor(s, t, e, i) {
16327
- super(s, t, e, "color"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "color"), this.$input.setAttribute("tabindex", -1), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$text = document.createElement("input"), this.$text.setAttribute("type", "text"), this.$text.setAttribute("spellcheck", "false"), this.$text.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("display"), this.$display.appendChild(this.$input), this.$widget.appendChild(this.$display), this.$widget.appendChild(this.$text), this._format = Hh(this.initialValue), this._rgbScale = i, this._initialValueHexString = this.save(), this._textFocused = !1, this.$input.addEventListener("input", () => {
16331
+ super(s, t, e, "color"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "color"), this.$input.setAttribute("tabindex", -1), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$text = document.createElement("input"), this.$text.setAttribute("type", "text"), this.$text.setAttribute("spellcheck", "false"), this.$text.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("display"), this.$display.appendChild(this.$input), this.$widget.appendChild(this.$display), this.$widget.appendChild(this.$text), this._format = Gh(this.initialValue), this._rgbScale = i, this._initialValueHexString = this.save(), this._textFocused = !1, this.$input.addEventListener("input", () => {
16328
16332
  this._setValueFromHexString(this.$input.value);
16329
16333
  }), this.$input.addEventListener("blur", () => {
16330
16334
  this._callOnFinishChange();
@@ -16365,7 +16369,7 @@ class ln extends Le {
16365
16369
  }, { passive: !0 }), this.$disable = this.$button;
16366
16370
  }
16367
16371
  }
16368
- class Gh extends Le {
16372
+ class jh extends Le {
16369
16373
  constructor(s, t, e, i, n, r) {
16370
16374
  super(s, t, e, "number"), this._initInput(), this.min(i), this.max(n);
16371
16375
  const a = r !== void 0;
@@ -16500,7 +16504,7 @@ class Gh extends Le {
16500
16504
  return this._max !== void 0;
16501
16505
  }
16502
16506
  }
16503
- class qh extends Le {
16507
+ class Kh extends Le {
16504
16508
  constructor(s, t, e, i) {
16505
16509
  super(s, t, e, "option"), this.$select = document.createElement("select"), this.$select.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("display"), this._values = Array.isArray(i) ? i : Object.values(i), this._names = Array.isArray(i) ? i : Object.keys(i), this._names.forEach((n) => {
16506
16510
  const r = document.createElement("option");
@@ -16518,7 +16522,7 @@ class qh extends Le {
16518
16522
  return this.$select.selectedIndex = t, this.$display.innerHTML = t === -1 ? s : this._names[t], this;
16519
16523
  }
16520
16524
  }
16521
- class jh extends Le {
16525
+ class Qh extends Le {
16522
16526
  constructor(s, t, e) {
16523
16527
  super(s, t, e, "string"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "text"), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$input.addEventListener("input", () => {
16524
16528
  this.setValue(this.$input.value);
@@ -16532,7 +16536,7 @@ class jh extends Le {
16532
16536
  return this.$input.value = this.getValue(), this;
16533
16537
  }
16534
16538
  }
16535
- const Kh = `.lil-gui {
16539
+ const Jh = `.lil-gui {
16536
16540
  font-family: var(--font-family);
16537
16541
  font-size: var(--font-size);
16538
16542
  line-height: 1;
@@ -16964,7 +16968,7 @@ const Kh = `.lil-gui {
16964
16968
  font-family: "lil-gui";
16965
16969
  src: url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAUsAAsAAAAACJwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAH4AAADAImwmYE9TLzIAAAGIAAAAPwAAAGBKqH5SY21hcAAAAcgAAAD0AAACrukyyJBnbHlmAAACvAAAAF8AAACEIZpWH2hlYWQAAAMcAAAAJwAAADZfcj2zaGhlYQAAA0QAAAAYAAAAJAC5AHhobXR4AAADXAAAABAAAABMAZAAAGxvY2EAAANsAAAAFAAAACgCEgIybWF4cAAAA4AAAAAeAAAAIAEfABJuYW1lAAADoAAAASIAAAIK9SUU/XBvc3QAAATEAAAAZgAAAJCTcMc2eJxVjbEOgjAURU+hFRBK1dGRL+ALnAiToyMLEzFpnPz/eAshwSa97517c/MwwJmeB9kwPl+0cf5+uGPZXsqPu4nvZabcSZldZ6kfyWnomFY/eScKqZNWupKJO6kXN3K9uCVoL7iInPr1X5baXs3tjuMqCtzEuagm/AAlzQgPAAB4nGNgYRBlnMDAysDAYM/gBiT5oLQBAwuDJAMDEwMrMwNWEJDmmsJwgCFeXZghBcjlZMgFCzOiKOIFAB71Bb8AeJy1kjFuwkAQRZ+DwRAwBtNQRUGKQ8OdKCAWUhAgKLhIuAsVSpWz5Bbkj3dEgYiUIszqWdpZe+Z7/wB1oCYmIoboiwiLT2WjKl/jscrHfGg/pKdMkyklC5Zs2LEfHYpjcRoPzme9MWWmk3dWbK9ObkWkikOetJ554fWyoEsmdSlt+uR0pCJR34b6t/TVg1SY3sYvdf8vuiKrpyaDXDISiegp17p7579Gp3p++y7HPAiY9pmTibljrr85qSidtlg4+l25GLCaS8e6rRxNBmsnERunKbaOObRz7N72ju5vdAjYpBXHgJylOAVsMseDAPEP8LYoUHicY2BiAAEfhiAGJgZWBgZ7RnFRdnVJELCQlBSRlATJMoLV2DK4glSYs6ubq5vbKrJLSbGrgEmovDuDJVhe3VzcXFwNLCOILB/C4IuQ1xTn5FPilBTj5FPmBAB4WwoqAHicY2BkYGAA4sk1sR/j+W2+MnAzpDBgAyEMQUCSg4EJxAEAwUgFHgB4nGNgZGBgSGFggJMhDIwMqEAYAByHATJ4nGNgAIIUNEwmAABl3AGReJxjYAACIQYlBiMGJ3wQAEcQBEV4nGNgZGBgEGZgY2BiAAEQyQWEDAz/wXwGAAsPATIAAHicXdBNSsNAHAXwl35iA0UQXYnMShfS9GPZA7T7LgIu03SSpkwzYTIt1BN4Ak/gKTyAeCxfw39jZkjymzcvAwmAW/wgwHUEGDb36+jQQ3GXGot79L24jxCP4gHzF/EIr4jEIe7wxhOC3g2TMYy4Q7+Lu/SHuEd/ivt4wJd4wPxbPEKMX3GI5+DJFGaSn4qNzk8mcbKSR6xdXdhSzaOZJGtdapd4vVPbi6rP+cL7TGXOHtXKll4bY1Xl7EGnPtp7Xy2n00zyKLVHfkHBa4IcJ2oD3cgggWvt/V/FbDrUlEUJhTn/0azVWbNTNr0Ens8de1tceK9xZmfB1CPjOmPH4kitmvOubcNpmVTN3oFJyjzCvnmrwhJTzqzVj9jiSX911FjeAAB4nG3HMRKCMBBA0f0giiKi4DU8k0V2GWbIZDOh4PoWWvq6J5V8If9NVNQcaDhyouXMhY4rPTcG7jwYmXhKq8Wz+p762aNaeYXom2n3m2dLTVgsrCgFJ7OTmIkYbwIbC6vIB7WmFfAAAA==") format("woff");
16966
16970
  }`;
16967
- function Qh(l) {
16971
+ function Zh(l) {
16968
16972
  const s = document.createElement("style");
16969
16973
  s.innerHTML = l;
16970
16974
  const t = document.querySelector("head link[rel=stylesheet], head style");
@@ -17019,7 +17023,7 @@ class ao {
17019
17023
  this.parent.children.push(this), this.parent.folders.push(this), this.parent.$children.appendChild(this.domElement);
17020
17024
  return;
17021
17025
  }
17022
- this.domElement.classList.add("root"), !Oo && r && (Qh(Kh), Oo = !0), e ? e.appendChild(this.domElement) : t && (this.domElement.classList.add("autoPlace"), document.body.appendChild(this.domElement)), i && this.domElement.style.setProperty("--width", i + "px"), this.domElement.addEventListener("keydown", (u) => u.stopPropagation()), this.domElement.addEventListener("keyup", (u) => u.stopPropagation());
17026
+ this.domElement.classList.add("root"), !Oo && r && (Zh(Jh), Oo = !0), e ? e.appendChild(this.domElement) : t && (this.domElement.classList.add("autoPlace"), document.body.appendChild(this.domElement)), i && this.domElement.style.setProperty("--width", i + "px"), this.domElement.addEventListener("keydown", (u) => u.stopPropagation()), this.domElement.addEventListener("keyup", (u) => u.stopPropagation());
17023
17027
  }
17024
17028
  /**
17025
17029
  * Adds a controller to the GUI, inferring controller type using the `typeof` operator.
@@ -17038,15 +17042,15 @@ class ao {
17038
17042
  */
17039
17043
  add(s, t, e, i, n) {
17040
17044
  if (Object(e) === e)
17041
- return new qh(this, s, t, e);
17045
+ return new Kh(this, s, t, e);
17042
17046
  const r = s[t];
17043
17047
  switch (typeof r) {
17044
17048
  case "number":
17045
- return new Gh(this, s, t, e, i, n);
17049
+ return new jh(this, s, t, e, i, n);
17046
17050
  case "boolean":
17047
- return new Nh(this, s, t);
17051
+ return new Xh(this, s, t);
17048
17052
  case "string":
17049
- return new jh(this, s, t);
17053
+ return new Qh(this, s, t);
17050
17054
  case "function":
17051
17055
  return new ln(this, s, t);
17052
17056
  }
@@ -17075,7 +17079,7 @@ class ao {
17075
17079
  * @returns {Controller}
17076
17080
  */
17077
17081
  addColor(s, t, e = 1) {
17078
- return new zh(this, s, t, e);
17082
+ return new qh(this, s, t, e);
17079
17083
  }
17080
17084
  /**
17081
17085
  * Adds a folder to the GUI, which is just another GUI. This method returns
@@ -17283,7 +17287,7 @@ class ao {
17283
17287
  }), s;
17284
17288
  }
17285
17289
  }
17286
- class Jh {
17290
+ class tu {
17287
17291
  constructor() {
17288
17292
  f(this, "_delimiter", "__");
17289
17293
  f(this, "_values", /* @__PURE__ */ new Map());
@@ -17351,8 +17355,8 @@ class Jh {
17351
17355
  }
17352
17356
  }
17353
17357
  }
17354
- const Pe = new Jh();
17355
- class Zh extends ha {
17358
+ const Pe = new tu();
17359
+ class eu extends ua {
17356
17360
  /**
17357
17361
  * @constructor
17358
17362
  */
@@ -17383,7 +17387,7 @@ class Zh extends ha {
17383
17387
  * Показать оверлей и начать замеры
17384
17388
  */
17385
17389
  async show() {
17386
- this._visible || !this.element || (this._visible = !0, this._frames = [], this._framesMS = 0, this._sinceUpdateMS = 0, this.element.textContent = "— FPS", this.element.style.display = "block", this._ticker.add(this._onTick, void 0, ml.UTILITY));
17390
+ this._visible || !this.element || (this._visible = !0, this._frames = [], this._framesMS = 0, this._sinceUpdateMS = 0, this.element.textContent = "— FPS", this.element.style.display = "block", this._ticker.add(this._onTick, void 0, _l.UTILITY));
17387
17391
  }
17388
17392
  /**
17389
17393
  * Скрыть оверлей и остановить замеры
@@ -17409,7 +17413,7 @@ class Zh extends ha {
17409
17413
  )}`;
17410
17414
  }
17411
17415
  }
17412
- const Ne = class Ne extends ha {
17416
+ const Ne = class Ne extends ua {
17413
17417
  constructor() {
17414
17418
  super(...arguments);
17415
17419
  f(this, "_cheat", null);
@@ -17507,7 +17511,7 @@ const Ne = class Ne extends ha {
17507
17511
  */
17508
17512
  async _setupFpsMeter() {
17509
17513
  const t = "general", e = "Performance", i = "FPS meter";
17510
- this._fpsMeter = new Zh(), await this._fpsMeter.create(document.body, De("ticker"));
17514
+ this._fpsMeter = new eu(), await this._fpsMeter.create(document.body, De("ticker"));
17511
17515
  const n = Pe.has(t, e, i) && Pe.get(t, e, i) === !0;
17512
17516
  n && await this._fpsMeter.show(), this.setCustomCheat(t, i, n, e, !1), G.on(
17513
17517
  "cheat.custom:changed",
@@ -17620,24 +17624,24 @@ const Ne = class Ne extends ha {
17620
17624
  };
17621
17625
  f(Ne, "_isTestMode", !1), f(Ne, "_cheatInstance", null);
17622
17626
  let Bi = Ne;
17623
- function Id(l) {
17627
+ function Ed(l) {
17624
17628
  return De("renderer").extract.image(l);
17625
17629
  }
17626
- function Ed(l) {
17630
+ function Rd(l) {
17627
17631
  return De("renderer").extract.base64(l);
17628
17632
  }
17629
- function tu(l, s = {}) {
17633
+ function su(l, s = {}) {
17630
17634
  return De("renderer").generateTexture({ target: l, ...s });
17631
17635
  }
17632
- const eu = (l, s, t) => {
17636
+ const iu = (l, s, t) => {
17633
17637
  const e = document.createElement("canvas");
17634
17638
  e.width = 1, e.height = l;
17635
17639
  const i = e.getContext("2d"), n = i.createLinearGradient(0, l, 0, 0);
17636
17640
  return s.forEach((r, a) => {
17637
17641
  n.addColorStop(r, t[a]);
17638
17642
  }), i.fillStyle = n, i.fillRect(0, 0, 1, l), Is.from(e);
17639
- }, su = 70, iu = 1e3, nu = 1e3, ou = 1e3, ru = 1e3, vt = 1;
17640
- class Rd extends At {
17643
+ }, nu = 70, ou = 1e3, ru = 1e3, au = 1e3, lu = 1e3, vt = 1;
17644
+ class Ld extends At {
17641
17645
  constructor(t) {
17642
17646
  super("fill.frame.component");
17643
17647
  f(this, "gradientTexture");
@@ -17651,12 +17655,12 @@ class Rd extends At {
17651
17655
  f(this, "leftGradient");
17652
17656
  f(this, "rightGradient");
17653
17657
  f(this, "enabled");
17654
- this.config = t, t.gradientLength === void 0 && (t.gradientLength = su), t.landscape === void 0 && (t.landscape = {
17655
- width: iu,
17656
- height: nu
17657
- }), t.portrait === void 0 && (t.portrait = {
17658
+ this.config = t, t.gradientLength === void 0 && (t.gradientLength = nu), t.landscape === void 0 && (t.landscape = {
17658
17659
  width: ou,
17659
17660
  height: ru
17661
+ }), t.portrait === void 0 && (t.portrait = {
17662
+ width: au,
17663
+ height: lu
17660
17664
  }), this.enabled = t.enabled;
17661
17665
  }
17662
17666
  async enable() {
@@ -17670,14 +17674,14 @@ class Rd extends At {
17670
17674
  throw new Error("FillFrameComponent: color must be in hex format");
17671
17675
  if (this.config.color.length > 7)
17672
17676
  throw new Error("FillFrameComponent: color mustn't be transparent");
17673
- return eu(
17677
+ return iu(
17674
17678
  this.config.gradientLength + vt,
17675
17679
  [0, 1],
17676
17680
  [this.config.color + "00", this.config.color]
17677
17681
  );
17678
17682
  }
17679
17683
  getFillingTexture() {
17680
- return tu(Ls(0, 0, 1, 1, 0, parseInt(this.config.color.replace("#", "0x"), 16)), {});
17684
+ return su(Ls(0, 0, 1, 1, 0, parseInt(this.config.color.replace("#", "0x"), 16)), {});
17681
17685
  }
17682
17686
  async create(t) {
17683
17687
  return this.gradientTexture = this.getGradientTexture(), this.fillingTexture = this.getFillingTexture(), this.topFilling = new Pt(this.fillingTexture), this.bottomFilling = new Pt(this.fillingTexture), this.leftFilling = new Pt(this.fillingTexture), this.rightFilling = new Pt(this.fillingTexture), this.topGradient = new Pt(this.gradientTexture), this.bottomGradient = new Pt(this.gradientTexture), this.leftGradient = new Pt(this.gradientTexture), this.rightGradient = new Pt(this.gradientTexture), this.topFilling.anchor.set(0.5, 1), this.bottomFilling.anchor.set(0.5, 0), this.leftFilling.anchor.set(1, 0.5), this.rightFilling.anchor.set(0, 0.5), this.topGradient.anchor.set(0.5, 0), this.bottomGradient.anchor.set(0.5, 0), this.leftGradient.anchor.set(0.5, 0), this.rightGradient.anchor.set(0.5, 0), this.topFilling.label = "topFilling", this.bottomFilling.label = "bottomFilling", this.leftFilling.label = "leftFilling", this.rightFilling.label = "rightFilling", this.topGradient.label = "topGradient", this.bottomGradient.label = "bottomGradient", this.leftGradient.label = "leftGradient", this.rightGradient.label = "rightGradient", this.instance.addChild(
@@ -17699,8 +17703,8 @@ class Rd extends At {
17699
17703
  return this.topFilling.scale.set(t + vt * 2, e / 2 - r + vt), this.topFilling.position.set(t / 2 - vt, e / 2 - r), this.bottomFilling.scale.set(t + vt * 2, e / 2 - r + vt), this.bottomFilling.position.set(t / 2 - vt, e / 2 + r), this.leftFilling.scale.set(t / 2 - a + vt, e + vt * 2), this.leftFilling.position.set(t / 2 - a - vt, e / 2 - vt), this.rightFilling.scale.set(t / 2 - a + vt, e + vt * 2), this.rightFilling.position.set(t / 2 + a, e / 2 - vt), this.topGradient.scale.set(t + vt * 2, i), this.topGradient.position.set(t / 2 - vt, e / 2 - r - vt), this.bottomGradient.angle = 180, this.bottomGradient.scale.set(t + vt * 2, i), this.bottomGradient.position.set(t / 2 - vt, e / 2 + r + vt), this.leftGradient.angle = 270, this.leftGradient.scale.set(e + vt * 2, i), this.leftGradient.position.set(t / 2 - a - vt, e / 2 - vt), this.rightGradient.angle = 90, this.rightGradient.scale.set(e + vt * 2, i), this.rightGradient.position.set(t / 2 + a + vt, e / 2 - vt), Promise.resolve(this);
17700
17704
  }
17701
17705
  }
17702
- var au = /* @__PURE__ */ ((l) => (l.origin = "origin", l.hover = "hover", l.click = "click", l.disable = "disable", l))(au || {});
17703
- class Ld extends At {
17706
+ var cu = /* @__PURE__ */ ((l) => (l.origin = "origin", l.hover = "hover", l.click = "click", l.disable = "disable", l))(cu || {});
17707
+ class Od extends At {
17704
17708
  /**
17705
17709
  * @constructor
17706
17710
  */
@@ -17772,7 +17776,7 @@ class Ld extends At {
17772
17776
  }
17773
17777
  /** Имитировать клик на ссылку */
17774
17778
  click() {
17775
- return this.disabled || (this._stateHovered = !0, this._stateClicked = !0, this.setTextColor(), this.soundClick && G.emit("sounds:play", { name: this.soundClick }), G.emit("link.component:click", { name: this.name }), nr(() => {
17779
+ return this.disabled || (this._stateHovered = !0, this._stateClicked = !0, this.setTextColor(), this.soundClick && G.emit("sounds:play", { name: this.soundClick }), G.emit("link.component:click", { name: this.name }), or(() => {
17776
17780
  this._stateHovered = !1, this._stateClicked = !1, this.setTextColor();
17777
17781
  }, 100)), this;
17778
17782
  }
@@ -17820,7 +17824,7 @@ class Ld extends At {
17820
17824
  t && t.stopPropagation(), this._stateHovered = !1, !this.disabled && this.setTextColor();
17821
17825
  }
17822
17826
  }
17823
- class Od extends At {
17827
+ class Bd extends At {
17824
17828
  constructor() {
17825
17829
  super(...arguments);
17826
17830
  f(this, "_emitter");
@@ -17861,7 +17865,7 @@ class Od extends At {
17861
17865
  }
17862
17866
  /** Starts particles animation */
17863
17867
  start() {
17864
- this._emitter || (this._emitter = new vl(this.instance, this._emitterConfig), this._emitter.emit = !0, this._elapsed = Date.now(), this._particlesTL = this._particlesTL = Ht(this.name, { repeat: -1 }).call(() => this._updateParticles()).call(() => {
17868
+ this._emitter || (this._emitter = new Al(this.instance, this._emitterConfig), this._emitter.emit = !0, this._elapsed = Date.now(), this._particlesTL = this._particlesTL = Ht(this.name, { repeat: -1 }).call(() => this._updateParticles()).call(() => {
17865
17869
  }, null, 1 / this._fps));
17866
17870
  }
17867
17871
  /** Stops particle animation */
@@ -17874,7 +17878,7 @@ class Od extends At {
17874
17878
  this._emitter.update((t - this._elapsed) * 1e-3), this._elapsed = t;
17875
17879
  }
17876
17880
  }
17877
- class Bd extends At {
17881
+ class Dd extends At {
17878
17882
  /** */
17879
17883
  constructor(t = "progress.component", e = null) {
17880
17884
  super(t);
@@ -17926,9 +17930,9 @@ class Bd extends At {
17926
17930
  return this._filler.position.set(this._config.fillerOffset.x, this._config.fillerOffset.y), this;
17927
17931
  }
17928
17932
  }
17929
- function ya(l) {
17930
- if (or(l))
17931
- return l.map(ya);
17933
+ function ba(l) {
17934
+ if (rr(l))
17935
+ return l.map(ba);
17932
17936
  if (pn(l)) {
17933
17937
  const s = {};
17934
17938
  return Fs(s, l), s;
@@ -17949,7 +17953,7 @@ function Fs(l, s, t = !0) {
17949
17953
  Fs(l[e], i, t);
17950
17954
  } else {
17951
17955
  if (e in l && !t) continue;
17952
- l[e] = or(i) ? ya(i) : i;
17956
+ l[e] = rr(i) ? ba(i) : i;
17953
17957
  }
17954
17958
  }
17955
17959
  }
@@ -17958,7 +17962,7 @@ const Bo = new _e({
17958
17962
  fontSize: 100,
17959
17963
  stroke: { color: 0, width: 6 }
17960
17964
  });
17961
- class Dd extends At {
17965
+ class Yd extends At {
17962
17966
  /** @constructor */
17963
17967
  constructor(t) {
17964
17968
  super("retrigger.component");
@@ -18026,7 +18030,7 @@ class Dd extends At {
18026
18030
  }
18027
18031
  /** */
18028
18032
  async createBlackout() {
18029
- this._config.blackout.enable && (this._blackout = new ua("blackout", De("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));
18033
+ this._config.blackout.enable && (this._blackout = new da("blackout", De("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));
18030
18034
  }
18031
18035
  /** */
18032
18036
  createSpineBackground() {
@@ -18039,7 +18043,7 @@ class Dd extends At {
18039
18043
  /** */
18040
18044
  async createDescription() {
18041
18045
  if (!this._config.descriptionText.enable) return;
18042
- const t = this._config.descriptionText.text || tc("GEN.010", "FREE SPINS").toUpperCase(), e = this._config.descriptionText.textStyle || Bo;
18046
+ const t = this._config.descriptionText.text || sc("GEN.010", "FREE SPINS").toUpperCase(), e = this._config.descriptionText.textStyle || Bo;
18043
18047
  return this._descriptionText = new It("retriggerText", t, e), await this._descriptionText.create(this.instance), this._descriptionText.visible = !1, this;
18044
18048
  }
18045
18049
  /** */
@@ -18096,7 +18100,7 @@ class Dd extends At {
18096
18100
  return this._number.position.copyFrom(this._config.number.position), this._config.descriptionText.enable && this._descriptionText.position.copyFrom(this._config.descriptionText.position), await ((t = this._blackout) == null ? void 0 : t.draw()), this;
18097
18101
  }
18098
18102
  }
18099
- class lu extends At {
18103
+ class hu extends At {
18100
18104
  /** @constructor */
18101
18105
  constructor(t) {
18102
18106
  super("slides.reel.component");
@@ -18203,7 +18207,7 @@ class lu extends At {
18203
18207
  this._pressed = !1, this.slideTo(this._currentSlide);
18204
18208
  }
18205
18209
  }
18206
- class cu extends At {
18210
+ class uu extends At {
18207
18211
  /** @constructor */
18208
18212
  constructor(t) {
18209
18213
  super("slideshow.ui.pagination");
@@ -18242,7 +18246,7 @@ class cu extends At {
18242
18246
  }), this) : this;
18243
18247
  }
18244
18248
  }
18245
- class hu extends At {
18249
+ class du extends At {
18246
18250
  /** @constructor */
18247
18251
  constructor(t) {
18248
18252
  super("slideshow.ui");
@@ -18258,7 +18262,7 @@ class hu extends At {
18258
18262
  async create(t) {
18259
18263
  await super.create(t);
18260
18264
  const { arrowTextures: e } = this._config;
18261
- return e && (this._hasArrows = !0, this.prevButton = new Yn("prev.btn", e), this.prevButton.instance.setPivot(pt.LEFT, pt.TOP), this.nextButton = new Yn("next.btn", e), this.nextButton.instance.setPivot(pt.LEFT, pt.TOP), this.nextButton.scaleX = -1, await Promise.all([this.prevButton.create(this.instance), this.nextButton.create(this.instance)])), this._config.pagination && (this.pagination = new cu(this._config.pagination), this._hasPagination = !0, await this.pagination.create(this.instance), this.pagination.instance.setPivot(pt.LEFT, pt.TOP)), this.draw(!0);
18265
+ return e && (this._hasArrows = !0, this.prevButton = new Yn("prev.btn", e), this.prevButton.instance.setPivot(pt.LEFT, pt.TOP), this.nextButton = new Yn("next.btn", e), this.nextButton.instance.setPivot(pt.LEFT, pt.TOP), this.nextButton.scaleX = -1, await Promise.all([this.prevButton.create(this.instance), this.nextButton.create(this.instance)])), this._config.pagination && (this.pagination = new uu(this._config.pagination), this._hasPagination = !0, await this.pagination.create(this.instance), this.pagination.instance.setPivot(pt.LEFT, pt.TOP)), this.draw(!0);
18262
18266
  }
18263
18267
  /** @inheritdoc */
18264
18268
  async destroy() {
@@ -18271,7 +18275,7 @@ class hu extends At {
18271
18275
  ), this.pagination.position.y = this.prevButton.height / 2 - this.pagination.height / 2, this) : this;
18272
18276
  }
18273
18277
  }
18274
- class Yd extends At {
18278
+ class Vd extends At {
18275
18279
  /** Example */
18276
18280
  // protected _config: TConfigSlideshow = {
18277
18281
  // reel: {
@@ -18327,7 +18331,7 @@ class Yd extends At {
18327
18331
  }
18328
18332
  /** @inheritdoc */
18329
18333
  async create(t) {
18330
- return await super.create(t), this._reelComponent = new lu(this._config.reel), this._ui = new hu(this._config.ui), await Promise.all([this._reelComponent.create(this.instance), this._ui.create(this.instance)]), this._addEventListeners(), await this.draw(!0), this._updateUiStates(), this;
18334
+ return await super.create(t), this._reelComponent = new hu(this._config.reel), this._ui = new du(this._config.ui), await Promise.all([this._reelComponent.create(this.instance), this._ui.create(this.instance)]), this._addEventListeners(), await this.draw(!0), this._updateUiStates(), this;
18331
18335
  }
18332
18336
  /** @inheritdoc */
18333
18337
  async destroy() {
@@ -18350,7 +18354,7 @@ class Yd extends At {
18350
18354
  });
18351
18355
  }
18352
18356
  }
18353
- class ba extends At {
18357
+ class wa extends At {
18354
18358
  /** @constructor */
18355
18359
  constructor(t) {
18356
18360
  super("frames.component");
@@ -18378,9 +18382,9 @@ class ba extends At {
18378
18382
  }
18379
18383
  }
18380
18384
  function at(l, s, t) {
18381
- return ts.get() && t !== void 0 ? t : ec.get() ? s : l;
18385
+ return ts.get() && t !== void 0 ? t : ic.get() ? s : l;
18382
18386
  }
18383
- class Vd extends ba {
18387
+ class Nd extends wa {
18384
18388
  constructor() {
18385
18389
  super(...arguments);
18386
18390
  f(this, "_duration");
@@ -18397,7 +18401,7 @@ class Vd extends ba {
18397
18401
  /** @inheritdoc */
18398
18402
  animateFrame(t) {
18399
18403
  if (!this._frames.has(t)) {
18400
- const i = new uc(
18404
+ const i = new fc(
18401
18405
  `${this.name}:${t}`,
18402
18406
  yt.getSpritesheet(this._config.assetName, this._config.animationName)
18403
18407
  );
@@ -18413,7 +18417,7 @@ class Vd extends ba {
18413
18417
  });
18414
18418
  }
18415
18419
  }
18416
- class Nd extends ba {
18420
+ class $d extends wa {
18417
18421
  constructor() {
18418
18422
  super(...arguments);
18419
18423
  f(this, "_spines", []);
@@ -18462,8 +18466,8 @@ class Nd extends ba {
18462
18466
  }), this._spines = [], this._promise = null;
18463
18467
  }
18464
18468
  }
18465
- var uu = /* @__PURE__ */ ((l) => (l.lengths = "styleLengths", l.bets = "styleBets", l.description = "styleDescription", l))(uu || {}), du = /* @__PURE__ */ ((l) => (l.plate = "plate", l.lengths = "lengths", l.bets = "bets", l.description = "description", l))(du || {}), wa = /* @__PURE__ */ ((l) => (l[l.asc = 0] = "asc", l[l.desc = 1] = "desc", l))(wa || {});
18466
- class $d extends At {
18469
+ var fu = /* @__PURE__ */ ((l) => (l.lengths = "styleLengths", l.bets = "styleBets", l.description = "styleDescription", l))(fu || {}), pu = /* @__PURE__ */ ((l) => (l.plate = "plate", l.lengths = "lengths", l.bets = "bets", l.description = "description", l))(pu || {}), xa = /* @__PURE__ */ ((l) => (l[l.asc = 0] = "asc", l[l.desc = 1] = "desc", l))(xa || {});
18470
+ class Xd extends At {
18467
18471
  /** @constructor */
18468
18472
  constructor(t) {
18469
18473
  super("hints.component");
@@ -18488,7 +18492,7 @@ class $d extends At {
18488
18492
  }
18489
18493
  /** @inheritdoc */
18490
18494
  async create(t) {
18491
- return this.instance.hitArea = new gl(0, 0, this._config.width, this._config.height), this.instance.eventMode = "static", this.instance.cursor = "pointer", this._hintContainer = new Wt("hint.container"), this._hintContainer.cursor = "pointer", this._hintContainer.eventMode = "static", this._hintContainer.on("pointerup", (e) => {
18495
+ return this.instance.hitArea = new yl(0, 0, this._config.width, this._config.height), this.instance.eventMode = "static", this.instance.cursor = "pointer", this._hintContainer = new Wt("hint.container"), this._hintContainer.cursor = "pointer", this._hintContainer.eventMode = "static", this._hintContainer.on("pointerup", (e) => {
18492
18496
  e.stopPropagation(), this.close();
18493
18497
  }), this._spritePlate = yt.assets.has(this._config.assetsName.plate) ? yt.getSprite(this._config.assetsName.plate, this._config.texturesNames.plate) : new Pt(), this._spriteSymbol = new Pt(), this._spritePlate.anchor.set(0.5), this._spriteSymbol.anchor.set(0.5), this._hintContainer.addChild(this._spritePlate, this._spriteSymbol), this._textLengths = await this._createTextComponent(
18494
18498
  "hints-lengths",
@@ -18628,7 +18632,7 @@ class $d extends At {
18628
18632
  this._isEnabled = !1, this.close();
18629
18633
  }
18630
18634
  }
18631
- class fu extends At {
18635
+ class mu extends At {
18632
18636
  /** @constructor */
18633
18637
  constructor(t) {
18634
18638
  super("intrigue.component");
@@ -18640,7 +18644,7 @@ class fu extends At {
18640
18644
  return this;
18641
18645
  }
18642
18646
  }
18643
- class Xd extends fu {
18647
+ class Wd extends mu {
18644
18648
  constructor() {
18645
18649
  super(...arguments);
18646
18650
  f(this, "_animation");
@@ -18682,7 +18686,7 @@ class Xd extends fu {
18682
18686
  return this._tweenFade && this._tweenFade.progress(1).kill(), this._animation && this._animation.destroy(), super.destroy();
18683
18687
  }
18684
18688
  }
18685
- class xa extends At {
18689
+ class va extends At {
18686
18690
  /** @constructor */
18687
18691
  constructor(t, e) {
18688
18692
  super("lines.component");
@@ -18705,7 +18709,7 @@ class xa extends At {
18705
18709
  break() {
18706
18710
  }
18707
18711
  }
18708
- class Wd extends xa {
18712
+ class Ud extends va {
18709
18713
  /** @constructor */
18710
18714
  constructor(t, e) {
18711
18715
  super(t, e);
@@ -18840,7 +18844,7 @@ class Wd extends xa {
18840
18844
  return this._spinePool = [], await super.destroy(), this.instance.removeChildren(), this;
18841
18845
  }
18842
18846
  }
18843
- function pu(l) {
18847
+ function gu(l) {
18844
18848
  const s = [2, 4];
18845
18849
  return l.filter((t, e) => {
18846
18850
  const i = l[e - 1], n = l[e + 1];
@@ -18849,7 +18853,7 @@ function pu(l) {
18849
18853
  return s.includes(r) ? r !== a : !0;
18850
18854
  });
18851
18855
  }
18852
- function mu(l, s = 10, t = "power1.inOut") {
18856
+ function _u(l, s = 10, t = "power1.inOut") {
18853
18857
  const e = [], i = Gt.parseEase(t), n = (l.length - 1) * s;
18854
18858
  for (let r = 0; r < n; r += 1) {
18855
18859
  const a = Math.floor(r / s), u = l[a], d = l[a + 1], h = (r - a * s) / s, o = d.y - u.y, c = d.x - u.x;
@@ -18857,7 +18861,7 @@ function mu(l, s = 10, t = "power1.inOut") {
18857
18861
  }
18858
18862
  return e;
18859
18863
  }
18860
- class Ud extends xa {
18864
+ class Hd extends va {
18861
18865
  constructor() {
18862
18866
  super(...arguments);
18863
18867
  f(this, "timelines", /* @__PURE__ */ new Set());
@@ -18889,9 +18893,9 @@ class Ud extends xa {
18889
18893
  stepsBetweenPoints: n = 32,
18890
18894
  easeFunction: r = "power1.inOut",
18891
18895
  correction: a = 0
18892
- } = this._config.static, u = yt.getTexture(e, i), d = this._grid.reelWidth / 2, h = pu(t).map((m) => this._grid.points.get(m).clone()), [o, c] = [h[0], h[h.length - 1]];
18896
+ } = this._config.static, u = yt.getTexture(e, i), d = this._grid.reelWidth / 2, h = gu(t).map((m) => this._grid.points.get(m).clone()), [o, c] = [h[0], h[h.length - 1]];
18893
18897
  h.unshift(o, new jt(o.x - d - a, o.y)), h.push(new jt(c.x + d + a, c.y), c);
18894
- const p = mu(h, n, r), g = new _l({ texture: u, points: p });
18898
+ const p = _u(h, n, r), g = new bl({ texture: u, points: p });
18895
18899
  return this.instance.addChild(g), g;
18896
18900
  }
18897
18901
  /** Breaks animation */
@@ -18933,15 +18937,15 @@ class Ud extends xa {
18933
18937
  * Subject to the terms at https://gsap.com/standard-license
18934
18938
  * @author: Jack Doyle, jack@greensock.com
18935
18939
  */
18936
- var ss, Di, Do, ge, ti, va, Nn, Ji, Sa = function() {
18940
+ var ss, Di, Do, ge, ti, Sa, Nn, Ji, Aa = function() {
18937
18941
  return typeof window < "u";
18938
- }, Aa = function() {
18939
- return ss || Sa() && (ss = window.gsap) && ss.registerPlugin && ss;
18942
+ }, ka = function() {
18943
+ return ss || Aa() && (ss = window.gsap) && ss.registerPlugin && ss;
18940
18944
  }, $n = function(s) {
18941
18945
  return typeof s == "function";
18942
- }, ka = function(s) {
18946
+ }, Ca = function(s) {
18943
18947
  return console.warn(s);
18944
- }, gu = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], is = 0.212671, Xe = 0.71516, Me = 0.072169, Ca = function(s) {
18948
+ }, yu = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], is = 0.212671, Xe = 0.71516, Me = 0.072169, Ta = function(s) {
18945
18949
  return $n(ge[s]) ? ge[s] : ge.filters[s];
18946
18950
  }, Zi = function(s, t) {
18947
18951
  var e = [], i = 0, n = 0, r, a;
@@ -18963,18 +18967,18 @@ var ss, Di, Do, ge, ti, va, Nn, Ji, Sa = function() {
18963
18967
  return Zi([is + e * (1 - is) + i * -0.212671, Xe + e * -0.71516 + i * -0.71516, Me + e * -0.072169 + i * (1 - Me), 0, 0, is + e * -0.212671 + i * 0.143, Xe + e * (1 - Xe) + i * 0.14, Me + e * -0.072169 + i * -0.283, 0, 0, is + e * -0.212671 + i * -0.787329, Xe + e * -0.71516 + i * Xe, Me + e * (1 - Me) + i * Me, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], s);
18964
18968
  }, $o = function(s, t) {
18965
18969
  return Zi([t, 0, 0, 0, 0.5 * (1 - t), 0, t, 0, 0, 0.5 * (1 - t), 0, 0, t, 0, 0.5 * (1 - t), 0, 0, 0, 1, 0], s);
18966
- }, Ta = function(s, t) {
18967
- var e = Ca(t), i = s.filters || [], n = i.length, r;
18968
- for (e || ka(t + " not found. PixiPlugin.registerPIXI(PIXI)"); --n > -1; )
18970
+ }, Pa = function(s, t) {
18971
+ var e = Ta(t), i = s.filters || [], n = i.length, r;
18972
+ for (e || Ca(t + " not found. PixiPlugin.registerPIXI(PIXI)"); --n > -1; )
18969
18973
  if (i[n] instanceof e)
18970
18974
  return i[n];
18971
18975
  return r = new e(), t === "BlurFilter" && (Ji ? r.strength = 0 : r.blur = 0), s.filters = [].concat(i, [r]), r;
18972
18976
  }, $t = function(s, t, e, i) {
18973
18977
  t.add(e, s, e[s], i[s]), t._props.push(s);
18974
18978
  }, Xo = function(s, t) {
18975
- var e = Ca("ColorMatrixFilter"), i = new e();
18979
+ var e = Ta("ColorMatrixFilter"), i = new e();
18976
18980
  return i.matrix = t, i.brightness(s, !0), i.matrix;
18977
- }, _u = function(s) {
18981
+ }, bu = function(s) {
18978
18982
  var t = {}, e;
18979
18983
  for (e in s)
18980
18984
  t[e] = s[e];
@@ -18986,28 +18990,28 @@ var ss, Di, Do, ge, ti, va, Nn, Ji, Sa = function() {
18986
18990
  colorize: "rgb(255,255,255)",
18987
18991
  hue: 0,
18988
18992
  brightness: 1
18989
- }, yu = function(s, t, e) {
18990
- var i = Ta(s, "ColorMatrixFilter"), n = s._gsColorMatrixFilter = s._gsColorMatrixFilter || _u(ae), r = t.combineCMF && !("colorMatrixFilter" in t && !t.colorMatrixFilter), a, u, d;
18991
- for (d = i.matrix, t.resolution && (i.resolution = t.resolution), t.matrix && t.matrix.length === d.length ? (u = t.matrix, n.contrast !== 1 && $t("contrast", e, n, ae), n.hue && $t("hue", e, n, ae), n.brightness !== 1 && $t("brightness", e, n, ae), n.colorizeAmount && ($t("colorize", e, n, ae), $t("colorizeAmount", e, n, ae)), n.saturation !== 1 && $t("saturation", e, n, ae)) : (u = gu.slice(), t.contrast != null ? (u = $o(u, +t.contrast), $t("contrast", e, n, t)) : n.contrast !== 1 && (r ? u = $o(u, n.contrast) : $t("contrast", e, n, ae)), t.hue != null ? (u = No(u, +t.hue), $t("hue", e, n, t)) : n.hue && (r ? u = No(u, n.hue) : $t("hue", e, n, ae)), t.brightness != null ? (u = Xo(+t.brightness, u), $t("brightness", e, n, t)) : n.brightness !== 1 && (r ? u = Xo(n.brightness, u) : $t("brightness", e, n, ae)), t.colorize != null ? (t.colorizeAmount = "colorizeAmount" in t ? +t.colorizeAmount : 1, u = Vo(u, t.colorize, t.colorizeAmount), $t("colorize", e, n, t), $t("colorizeAmount", e, n, t)) : n.colorizeAmount && (r ? u = Vo(u, n.colorize, n.colorizeAmount) : ($t("colorize", e, n, ae), $t("colorizeAmount", e, n, ae))), t.saturation != null ? (u = Yo(u, +t.saturation), $t("saturation", e, n, t)) : n.saturation !== 1 && (r ? u = Yo(u, n.saturation) : $t("saturation", e, n, ae))), a = u.length; --a > -1; )
18993
+ }, wu = function(s, t, e) {
18994
+ var i = Pa(s, "ColorMatrixFilter"), n = s._gsColorMatrixFilter = s._gsColorMatrixFilter || bu(ae), r = t.combineCMF && !("colorMatrixFilter" in t && !t.colorMatrixFilter), a, u, d;
18995
+ for (d = i.matrix, t.resolution && (i.resolution = t.resolution), t.matrix && t.matrix.length === d.length ? (u = t.matrix, n.contrast !== 1 && $t("contrast", e, n, ae), n.hue && $t("hue", e, n, ae), n.brightness !== 1 && $t("brightness", e, n, ae), n.colorizeAmount && ($t("colorize", e, n, ae), $t("colorizeAmount", e, n, ae)), n.saturation !== 1 && $t("saturation", e, n, ae)) : (u = yu.slice(), t.contrast != null ? (u = $o(u, +t.contrast), $t("contrast", e, n, t)) : n.contrast !== 1 && (r ? u = $o(u, n.contrast) : $t("contrast", e, n, ae)), t.hue != null ? (u = No(u, +t.hue), $t("hue", e, n, t)) : n.hue && (r ? u = No(u, n.hue) : $t("hue", e, n, ae)), t.brightness != null ? (u = Xo(+t.brightness, u), $t("brightness", e, n, t)) : n.brightness !== 1 && (r ? u = Xo(n.brightness, u) : $t("brightness", e, n, ae)), t.colorize != null ? (t.colorizeAmount = "colorizeAmount" in t ? +t.colorizeAmount : 1, u = Vo(u, t.colorize, t.colorizeAmount), $t("colorize", e, n, t), $t("colorizeAmount", e, n, t)) : n.colorizeAmount && (r ? u = Vo(u, n.colorize, n.colorizeAmount) : ($t("colorize", e, n, ae), $t("colorizeAmount", e, n, ae))), t.saturation != null ? (u = Yo(u, +t.saturation), $t("saturation", e, n, t)) : n.saturation !== 1 && (r ? u = Yo(u, n.saturation) : $t("saturation", e, n, ae))), a = u.length; --a > -1; )
18992
18996
  u[a] !== d[a] && e.add(d, a, d[a], u[a], "colorMatrixFilter");
18993
18997
  e._props.push("colorMatrixFilter");
18994
- }, bu = function(s, t) {
18998
+ }, xu = function(s, t) {
18995
18999
  var e = t.t, i = t.p, n = t.color, r = t.set;
18996
19000
  r(e, i, n[0] << 16 | n[1] << 8 | n[2]);
18997
- }, wu = function(s, t) {
19001
+ }, vu = function(s, t) {
18998
19002
  var e = t.g;
18999
19003
  Ji ? (e.fill(), e.stroke()) : e && (e.dirty++, e.clearDirty++);
19000
- }, xu = function(s, t) {
19004
+ }, Su = function(s, t) {
19001
19005
  t.t.visible = !!t.t.alpha;
19002
19006
  }, Wo = function(s, t, e, i) {
19003
19007
  var n = s[t], r = Di($n(n) ? s[t.indexOf("set") || !$n(s["get" + t.substr(3)]) ? t : "get" + t.substr(3)]() : n), a = Di(e);
19004
- i._pt = new ti(i._pt, s, t, 0, 0, bu, {
19008
+ i._pt = new ti(i._pt, s, t, 0, 0, xu, {
19005
19009
  t: s,
19006
19010
  p: t,
19007
19011
  color: r,
19008
- set: va(s, t)
19012
+ set: Sa(s, t)
19009
19013
  }), i.add(r, 0, r[0], a[0]), i.add(r, 1, r[1], a[1]), i.add(r, 2, r[2], a[2]);
19010
- }, vu = {
19014
+ }, Au = {
19011
19015
  tint: 1,
19012
19016
  lineColor: 1,
19013
19017
  fillColor: 1,
@@ -19017,7 +19021,7 @@ var ss, Di, Do, ge, ti, va, Nn, Ji, Sa = function() {
19017
19021
  y: "position",
19018
19022
  tileX: "tilePosition",
19019
19023
  tileY: "tilePosition"
19020
- }, Su = {
19024
+ }, ku = {
19021
19025
  colorMatrixFilter: 1,
19022
19026
  saturation: 1,
19023
19027
  contrast: 1,
@@ -19026,18 +19030,18 @@ var ss, Di, Do, ge, ti, va, Nn, Ji, Sa = function() {
19026
19030
  colorizeAmount: 1,
19027
19031
  brightness: 1,
19028
19032
  combineCMF: 1
19029
- }, Yi = Math.PI / 180, Pa = function(s) {
19033
+ }, Yi = Math.PI / 180, Ma = function(s) {
19030
19034
  return typeof s == "string";
19031
- }, Au = function(s) {
19032
- return Pa(s) && s.charAt(1) === "=" ? s.substr(0, 2) + parseFloat(s.substr(2)) * Yi : s * Yi;
19033
- }, ku = function(s, t) {
19035
+ }, Cu = function(s) {
19036
+ return Ma(s) && s.charAt(1) === "=" ? s.substr(0, 2) + parseFloat(s.substr(2)) * Yi : s * Yi;
19037
+ }, Tu = function(s, t) {
19034
19038
  return t.set(t.t, t.p, s === 1 ? t.e : Math.round((t.s + t.c * s) * 1e5) / 1e5, t);
19035
- }, Cu = function(s, t, e, i, n, r) {
19036
- var a = 360 * (r ? Yi : 1), u = Pa(n), d = u && n.charAt(1) === "=" ? +(n.charAt(0) + "1") : 0, h = parseFloat(d ? n.substr(2) : n) * (r ? Yi : 1), o = d ? h * d : h - i, c = i + o, p, g;
19037
- return u && (p = n.split("_")[1], p === "short" && (o %= a, o !== o % (a / 2) && (o += o < 0 ? a : -a)), p === "cw" && o < 0 ? o = (o + a * 1e10) % a - ~~(o / a) * a : p === "ccw" && o > 0 && (o = (o - a * 1e10) % a - ~~(o / a) * a)), s._pt = g = new ti(s._pt, t, e, i, o, ku), g.e = c, g;
19039
+ }, Pu = function(s, t, e, i, n, r) {
19040
+ var a = 360 * (r ? Yi : 1), u = Ma(n), d = u && n.charAt(1) === "=" ? +(n.charAt(0) + "1") : 0, h = parseFloat(d ? n.substr(2) : n) * (r ? Yi : 1), o = d ? h * d : h - i, c = i + o, p, g;
19041
+ return u && (p = n.split("_")[1], p === "short" && (o %= a, o !== o % (a / 2) && (o += o < 0 ? a : -a)), p === "cw" && o < 0 ? o = (o + a * 1e10) % a - ~~(o / a) * a : p === "ccw" && o > 0 && (o = (o - a * 1e10) % a - ~~(o / a) * a)), s._pt = g = new ti(s._pt, t, e, i, o, Tu), g.e = c, g;
19038
19042
  }, Ho = function() {
19039
19043
  if (!Do) {
19040
- ss = Aa(), ge = Do = ge || Sa() && window.PIXI;
19044
+ ss = ka(), ge = Do = ge || Aa() && window.PIXI;
19041
19045
  var s = ge && ge.VERSION && parseFloat(ge.VERSION.split(".")[0]) || 0;
19042
19046
  Nn = s === 4, Ji = s >= 8, Di = function(e) {
19043
19047
  return ss.utils.splitColor((e + "").substr(0, 2) === "0x" ? "#" + e.substr(2) : e);
@@ -19046,11 +19050,11 @@ var ss, Di, Do, ge, ti, va, Nn, Ji, Sa = function() {
19046
19050
  }, vi, zs;
19047
19051
  for (vi = 0; vi < Uo.length; vi++)
19048
19052
  zs = Uo[vi], Xn[zs + "X"] = zs, Xn[zs + "Y"] = zs;
19049
- var Ma = {
19053
+ var Fa = {
19050
19054
  version: "3.13.0",
19051
19055
  name: "pixi",
19052
19056
  register: function(s, t, e) {
19053
- ss = s, ti = e, va = t.getSetter, Ho();
19057
+ ss = s, ti = e, Sa = t.getSetter, Ho();
19054
19058
  },
19055
19059
  headless: !0,
19056
19060
  // doesn't need window
@@ -19059,37 +19063,37 @@ var Ma = {
19059
19063
  },
19060
19064
  init: function(s, t, e, i, n) {
19061
19065
  if (ge || Ho(), !ge)
19062
- return ka("PIXI was not found. PixiPlugin.registerPIXI(PIXI);"), !1;
19066
+ return Ca("PIXI was not found. PixiPlugin.registerPIXI(PIXI);"), !1;
19063
19067
  var r, a, u, d, h, o, c, p, g, m;
19064
19068
  for (o in t) {
19065
19069
  if (r = Xn[o], u = t[o], r)
19066
- a = ~o.charAt(o.length - 1).toLowerCase().indexOf("x") ? "x" : "y", this.add(s[r], a, s[r][a], r === "skew" ? Au(u) : u, 0, 0, 0, 0, 0, 1);
19070
+ a = ~o.charAt(o.length - 1).toLowerCase().indexOf("x") ? "x" : "y", this.add(s[r], a, s[r][a], r === "skew" ? Cu(u) : u, 0, 0, 0, 0, 0, 1);
19067
19071
  else if (o === "scale" || o === "anchor" || o === "pivot" || o === "tileScale")
19068
19072
  this.add(s[o], "x", s[o].x, u), this.add(s[o], "y", s[o].y, u);
19069
19073
  else if (o === "rotation" || o === "angle")
19070
- Cu(this, s, o, s[o], u, o === "rotation");
19071
- else if (Su[o])
19072
- d || (yu(s, t.colorMatrixFilter || t, this), d = !0);
19074
+ Pu(this, s, o, s[o], u, o === "rotation");
19075
+ else if (ku[o])
19076
+ d || (wu(s, t.colorMatrixFilter || t, this), d = !0);
19073
19077
  else if (o === "blur" || o === "blurX" || o === "blurY" || o === "blurPadding") {
19074
- if (h = Ta(s, "BlurFilter"), this.add(h, o, h[o], u), t.blurPadding !== 0)
19078
+ if (h = Pa(s, "BlurFilter"), this.add(h, o, h[o], u), t.blurPadding !== 0)
19075
19079
  for (c = t.blurPadding || Math.max(h[o], u) * 2, p = s.filters.length; --p > -1; )
19076
19080
  s.filters[p].padding = Math.max(s.filters[p].padding, c);
19077
- } else if (vu[o])
19081
+ } else if (Au[o])
19078
19082
  if ((o === "lineColor" || o === "fillColor" || o === "strokeColor") && s instanceof ge.Graphics)
19079
- for (g = ("fillStyle" in s) ? [s] : (s.geometry || s).graphicsData, m = o.substr(0, o.length - 5), Ji && m === "line" && (m = "stroke"), this._pt = new ti(this._pt, s, o, 0, 0, wu, {
19083
+ for (g = ("fillStyle" in s) ? [s] : (s.geometry || s).graphicsData, m = o.substr(0, o.length - 5), Ji && m === "line" && (m = "stroke"), this._pt = new ti(this._pt, s, o, 0, 0, vu, {
19080
19084
  g: s.geometry || s
19081
19085
  }), p = g.length; --p > -1; )
19082
19086
  Wo(Nn ? g[p] : g[p][m + "Style"], Nn ? o : "color", u, this);
19083
19087
  else
19084
19088
  Wo(s, o, u, this);
19085
- else o === "autoAlpha" ? (this._pt = new ti(this._pt, s, "visible", 0, 0, xu), this.add(s, "alpha", s.alpha, u), this._props.push("alpha", "visible")) : o !== "resolution" && this.add(s, o, "get", u);
19089
+ else o === "autoAlpha" ? (this._pt = new ti(this._pt, s, "visible", 0, 0, Su), this.add(s, "alpha", s.alpha, u), this._props.push("alpha", "visible")) : o !== "resolution" && this.add(s, o, "get", u);
19086
19090
  this._props.push(o);
19087
19091
  }
19088
19092
  }
19089
19093
  };
19090
- Aa() && ss.registerPlugin(Ma);
19091
- Gt.registerPlugin(Ma);
19092
- class Fa extends At {
19094
+ ka() && ss.registerPlugin(Fa);
19095
+ Gt.registerPlugin(Fa);
19096
+ class Ia extends At {
19093
19097
  constructor(t, e, i) {
19094
19098
  super(t);
19095
19099
  f(this, "_config");
@@ -19450,7 +19454,7 @@ class Fa extends At {
19450
19454
  return this;
19451
19455
  }
19452
19456
  }
19453
- class Hd extends Fa {
19457
+ class zd extends Ia {
19454
19458
  constructor(s, t) {
19455
19459
  super("payout.component", s, t);
19456
19460
  }
@@ -19493,7 +19497,7 @@ class Hd extends Fa {
19493
19497
  };
19494
19498
  }
19495
19499
  }
19496
- class zd extends Fa {
19500
+ class Gd extends Ia {
19497
19501
  constructor(t, e) {
19498
19502
  super("total-payout.component", t, e ?? t.grid);
19499
19503
  f(this, "_timelineTotal", null);
@@ -19546,7 +19550,7 @@ class zd extends Fa {
19546
19550
  super._clear(), this._timelineTotal && (this._timelineTotal.clear(), this._timelineTotal = null);
19547
19551
  }
19548
19552
  }
19549
- function Tu(l, s, t = 30, e = t) {
19553
+ function Mu(l, s, t = 30, e = t) {
19550
19554
  const i = Ls(0, t, l, s - (e + t)), n = 100 / t;
19551
19555
  for (let a = 0; a < t; a++)
19552
19556
  i.moveTo(0, t - a), i.lineTo(l, t - a), i.stroke({ width: 1, color: 16777215, alpha: (100 - n * a) / 100 });
@@ -19555,8 +19559,8 @@ function Tu(l, s, t = 30, e = t) {
19555
19559
  i.moveTo(0, s - (e - a)), i.lineTo(l, s - (e - a)), i.stroke({ width: 1, color: 16777215, alpha: (100 - r * a) / 100 });
19556
19560
  return i;
19557
19561
  }
19558
- var Fe = /* @__PURE__ */ ((l) => (l.slot = "slot", l.cascade = "cascade", l))(Fe || {}), Ia = /* @__PURE__ */ ((l) => (l.clear = "clear", l.fall = "fall", l.move = "move", l.refill = "refill", l))(Ia || {});
19559
- class Gd extends At {
19562
+ var Fe = /* @__PURE__ */ ((l) => (l.slot = "slot", l.cascade = "cascade", l))(Fe || {}), Ea = /* @__PURE__ */ ((l) => (l.clear = "clear", l.fall = "fall", l.move = "move", l.refill = "refill", l))(Ea || {});
19563
+ class qd extends At {
19560
19564
  /** @constructor */
19561
19565
  constructor(t, e) {
19562
19566
  super("reel.component");
@@ -19592,7 +19596,7 @@ class Gd extends At {
19592
19596
  );
19593
19597
  return await Promise.all(this._symbols.map((e) => e.create(this._symbolsContainer))), this._symbols[0].hide(), this._symbolsContainer.sortChildren(), this.instance.addChild(this._symbolsContainer), this._mask = new Pt(
19594
19598
  De("renderer").generateTexture(
19595
- Tu(
19599
+ Mu(
19596
19600
  this._config.mask.width,
19597
19601
  this._config.mask.height,
19598
19602
  this._config.mask.gradientTop,
@@ -19995,26 +19999,26 @@ class Gd extends At {
19995
19999
  _motionCompleted(t, e) {
19996
20000
  }
19997
20001
  }
19998
- var Pu = /* @__PURE__ */ ((l) => (l.general = "General", l.slotSpinning = "Slot spinning", l.cascadeGeneral = "Cascade general", l.cascade = "Cascade", l.intrigue = "Intrigue", l.intrigueSpine = "Intrigue spine component", l.cascadeBounce = "Cascade bounce", l))(Pu || {});
20002
+ var Fu = /* @__PURE__ */ ((l) => (l.general = "General", l.slotSpinning = "Slot spinning", l.cascadeGeneral = "Cascade general", l.cascade = "Cascade", l.intrigue = "Intrigue", l.intrigueSpine = "Intrigue spine component", l.cascadeBounce = "Cascade bounce", l))(Fu || {});
19999
20003
  const zo = "__", cn = /* @__PURE__ */ new Map();
20000
- function Ea(l, s, t, e) {
20004
+ function Ra(l, s, t, e) {
20001
20005
  const i = Pe.key(l, s, t);
20002
20006
  return !cn.has(i) && cn.set(i, e), cn.get(i);
20003
20007
  }
20004
- function Ra(l, s, t, e) {
20008
+ function La(l, s, t, e) {
20005
20009
  if (!Pe.has(l, s, t)) return null;
20006
20010
  const i = Pe.get(l, s, t);
20007
20011
  return typeof i == typeof e ? i : null;
20008
20012
  }
20009
- function Mu(l, s, t) {
20013
+ function Iu(l, s, t) {
20010
20014
  if (!Bi.isAvailable()) return;
20011
20015
  const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
20012
20016
  t.forEach((n) => {
20013
20017
  const { group: r, name: a } = n, u = [r, a].join(zo);
20014
20018
  e.set(u, n);
20015
- const d = Ea(l, r, a, n.get());
20019
+ const d = Ra(l, r, a, n.get());
20016
20020
  i.set(u, d);
20017
- const h = Ra(l, r, a, d), o = h ?? d;
20021
+ const h = La(l, r, a, d), o = h ?? d;
20018
20022
  h !== null && n.set(h), G.emit("cheat.custom:add", { scope: l, group: r, name: a, value: o, default: d });
20019
20023
  }), G.on(
20020
20024
  "cheat.custom:changed",
@@ -20033,9 +20037,9 @@ function Mu(l, s, t) {
20033
20037
  });
20034
20038
  });
20035
20039
  }
20036
- function qd(l, s) {
20040
+ function jd(l, s) {
20037
20041
  Bi.isAvailable() && s.forEach(({ group: t, name: e, get: i }) => {
20038
- const n = Ea(l, t, e, i()), r = Ra(l, t, e, n) ?? n;
20042
+ const n = Ra(l, t, e, i()), r = La(l, t, e, n) ?? n;
20039
20043
  G.emit("cheat.custom:add", { scope: l, group: t, name: e, value: r, default: n });
20040
20044
  });
20041
20045
  }
@@ -20045,7 +20049,7 @@ function Go(l, s, t) {
20045
20049
  { group: l, name: `${s}Fast`, get: () => t[1], set: (e) => t[1] = e }
20046
20050
  ];
20047
20051
  }
20048
- const Fu = [
20052
+ const Eu = [
20049
20053
  "distance",
20050
20054
  "duration",
20051
20055
  "reelsDelay",
@@ -20053,14 +20057,14 @@ const Fu = [
20053
20057
  "timeScale",
20054
20058
  "enableMotion",
20055
20059
  "disableMotion"
20056
- ], Iu = [
20060
+ ], Ru = [
20057
20061
  "distance",
20058
20062
  "durationDown",
20059
20063
  "durationUp",
20060
20064
  "scaleX",
20061
20065
  "scaleY"
20062
- ], Eu = ["clear", "fall", "move", "refill"];
20063
- function Ru(l) {
20066
+ ], Lu = ["clear", "fall", "move", "refill"];
20067
+ function Ou(l) {
20064
20068
  const { reel: s } = l.components, t = s.intrigue, { cascade: e } = s, { bounce: i } = e, n = s.timings.cascade, r = s.timings.spin.motion, { stop: a } = l.spinDelay, u = l.components.intrigue, { motion: d } = u, { numRows: h } = s, o = [
20065
20069
  // General
20066
20070
  {
@@ -20212,10 +20216,10 @@ function Ru(l) {
20212
20216
  set: (c) => d.delay[1] = c
20213
20217
  }
20214
20218
  ];
20215
- return Eu.forEach((c) => {
20219
+ return Lu.forEach((c) => {
20216
20220
  const p = n[c], g = `Cascade ${c}`;
20217
- Fu.forEach((m) => o.push(...Go(g, m, p[m])));
20218
- }), Iu.forEach((c) => o.push(...Go("Cascade bounce", c, i[c]))), o;
20221
+ Eu.forEach((m) => o.push(...Go(g, m, p[m])));
20222
+ }), Ru.forEach((c) => o.push(...Go("Cascade bounce", c, i[c]))), o;
20219
20223
  }
20220
20224
  function qo(l, s = 200, t = Qi(0, 16777215), e = !1) {
20221
20225
  const i = {
@@ -20244,7 +20248,7 @@ function le(l) {
20244
20248
  s.push(t);
20245
20249
  return s;
20246
20250
  }
20247
- const Lu = qn.easeIn, Ou = qn.easeIn, jo = qn.easeIn, Ko = {
20251
+ const Bu = qn.easeIn, Du = qn.easeIn, jo = qn.easeIn, Ko = {
20248
20252
  numReels: 5,
20249
20253
  order: {
20250
20254
  layers: ["background", "intrigue", "reels", "winSymbols", "lines", "frames", "payout", "totalPayout", "hints"],
@@ -20326,7 +20330,7 @@ const Lu = qn.easeIn, Ou = qn.easeIn, jo = qn.easeIn, Ko = {
20326
20330
  disableMotion: [0, 0],
20327
20331
  reelsDelay: [0.05, 0],
20328
20332
  rowsDelay: [0.025, 0],
20329
- ease: Ou
20333
+ ease: Du
20330
20334
  },
20331
20335
  fall: {
20332
20336
  timeScale: [1, 1.2],
@@ -20336,7 +20340,7 @@ const Lu = qn.easeIn, Ou = qn.easeIn, jo = qn.easeIn, Ko = {
20336
20340
  disableMotion: [0.01, 0],
20337
20341
  reelsDelay: [0.1, 0.05],
20338
20342
  rowsDelay: [0.1, 0.05],
20339
- ease: Lu
20343
+ ease: Bu
20340
20344
  },
20341
20345
  move: {
20342
20346
  timeScale: [1, 1.2],
@@ -20456,7 +20460,7 @@ const Lu = qn.easeIn, Ou = qn.easeIn, jo = qn.easeIn, Ko = {
20456
20460
  hints: {
20457
20461
  enabled: !1,
20458
20462
  events: !1,
20459
- sort: wa.asc,
20463
+ sort: xa.asc,
20460
20464
  assetsName: {
20461
20465
  plate: "common"
20462
20466
  },
@@ -20541,7 +20545,7 @@ const Lu = qn.easeIn, Ou = qn.easeIn, jo = qn.easeIn, Ko = {
20541
20545
  symbolsWin: /* @__PURE__ */ new Map()
20542
20546
  }
20543
20547
  };
20544
- class jd extends At {
20548
+ class Kd extends At {
20545
20549
  /** @constructor */
20546
20550
  constructor(t) {
20547
20551
  super("slot.component");
@@ -20582,7 +20586,7 @@ class jd extends At {
20582
20586
  get minSpinTime() {
20583
20587
  const t = this._config.components.reel, e = this._config.spinDelay.stop[0] || 0, i = this._config.order.stop.length, { numRows: n } = t;
20584
20588
  if (t.animationType === Fe.cascade) {
20585
- const { duration: h, rowsDelay: o, reelsDelay: c } = t.timings.cascade[Ia.fall], { distance: p, durationDown: g, durationUp: m } = t.cascade.bounce, y = !!p[0];
20589
+ const { duration: h, rowsDelay: o, reelsDelay: c } = t.timings.cascade[Ea.fall], { distance: p, durationDown: g, durationUp: m } = t.cascade.bounce, y = !!p[0];
20586
20590
  return (c[0] * (i - 1) + h[0] + o[0] * (n - 1) + (y ? g[0] + m[0] : 0)) * 1e3;
20587
20591
  }
20588
20592
  const { motion: r, bounceDown: a, bounceUp: u } = t.timings.spin, d = t.bounceOffset !== 0;
@@ -21148,7 +21152,7 @@ class jd extends At {
21148
21152
  }
21149
21153
  /** add cheats to the cheat panel */
21150
21154
  _runCheats() {
21151
- Mu(this.cheatScope || this.name, this.name, Ru(this._config));
21155
+ Iu(this.cheatScope || this.name, this.name, Ou(this._config));
21152
21156
  }
21153
21157
  /**
21154
21158
  * Конфиг с применёнными дефолтами для предварительного сида читов в панель
@@ -21159,7 +21163,7 @@ class jd extends At {
21159
21163
  return Fs(this._config, Ko, !1), this._config;
21160
21164
  }
21161
21165
  }
21162
- var Bu = `in vec2 aPosition;
21166
+ var Yu = `in vec2 aPosition;
21163
21167
  out vec2 vTextureCoord;
21164
21168
 
21165
21169
  uniform vec4 uInputSize;
@@ -21186,7 +21190,7 @@ void main(void)
21186
21190
  gl_Position = filterVertexPosition();
21187
21191
  vTextureCoord = filterTextureCoord();
21188
21192
  }
21189
- `, Du = `struct GlobalFilterUniforms {
21193
+ `, Vu = `struct GlobalFilterUniforms {
21190
21194
  uInputSize:vec4<f32>,
21191
21195
  uInputPixel:vec4<f32>,
21192
21196
  uInputClamp:vec4<f32>,
@@ -21235,7 +21239,7 @@ fn mainVertex(
21235
21239
  filterVertexPosition(aPosition),
21236
21240
  filterTextureCoord(aPosition)
21237
21241
  );
21238
- }`, Yu = `in vec2 vTextureCoord;
21242
+ }`, Nu = `in vec2 vTextureCoord;
21239
21243
  out vec4 finalColor;
21240
21244
 
21241
21245
  uniform sampler2D uTexture;
@@ -21245,7 +21249,7 @@ uniform float uAlpha;
21245
21249
  void main(void) {
21246
21250
  vec4 c = texture(uTexture, vTextureCoord);
21247
21251
  finalColor = vec4(mix(c.rgb, uColor * c.a, uAlpha), c.a);
21248
- }`, Vu = `struct ColorOverlayUniforms {
21252
+ }`, $u = `struct ColorOverlayUniforms {
21249
21253
  uColor: vec3<f32>,
21250
21254
  uAlpha: f32,
21251
21255
  };
@@ -21262,24 +21266,24 @@ fn mainFragment(
21262
21266
  let c = textureSample(uTexture, uSampler, uv);
21263
21267
  return vec4<f32>(mix(c.rgb, colorOverlayUniforms.uColor.rgb * c.a, colorOverlayUniforms.uAlpha), c.a);
21264
21268
  }
21265
- `, Nu = Object.defineProperty, $u = (l, s, t) => s in l ? Nu(l, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[s] = t, Wn = (l, s, t) => ($u(l, typeof s != "symbol" ? s + "" : s, t), t);
21266
- const La = class Oa extends yl {
21269
+ `, Xu = Object.defineProperty, Wu = (l, s, t) => s in l ? Xu(l, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[s] = t, Wn = (l, s, t) => (Wu(l, typeof s != "symbol" ? s + "" : s, t), t);
21270
+ const Oa = class Ba extends wl {
21267
21271
  /** @ignore */
21268
21272
  constructor(...s) {
21269
21273
  let t = s[0] ?? {};
21270
- (typeof t == "number" || Array.isArray(t) || t instanceof Float32Array) && (bl("6.0.0", "ColorOverlayFilter constructor params are now options object. See params: { color, alpha }"), t = { color: t }, s[1] !== void 0 && (t.alpha = s[1])), t = { ...Oa.DEFAULT_OPTIONS, ...t };
21271
- const e = wl.from({
21274
+ (typeof t == "number" || Array.isArray(t) || t instanceof Float32Array) && (xl("6.0.0", "ColorOverlayFilter constructor params are now options object. See params: { color, alpha }"), t = { color: t }, s[1] !== void 0 && (t.alpha = s[1])), t = { ...Ba.DEFAULT_OPTIONS, ...t };
21275
+ const e = vl.from({
21272
21276
  vertex: {
21273
- source: Du,
21277
+ source: Vu,
21274
21278
  entryPoint: "mainVertex"
21275
21279
  },
21276
21280
  fragment: {
21277
- source: Vu,
21281
+ source: $u,
21278
21282
  entryPoint: "mainFragment"
21279
21283
  }
21280
- }), i = xl.from({
21281
- vertex: Bu,
21282
- fragment: Yu,
21284
+ }), i = Sl.from({
21285
+ vertex: Yu,
21286
+ fragment: Nu,
21283
21287
  name: "color-overlay-filter"
21284
21288
  });
21285
21289
  super({
@@ -21317,14 +21321,14 @@ const La = class Oa extends yl {
21317
21321
  this.uniforms.uAlpha = s;
21318
21322
  }
21319
21323
  };
21320
- Wn(La, "DEFAULT_OPTIONS", {
21324
+ Wn(Oa, "DEFAULT_OPTIONS", {
21321
21325
  /** The color of the overlay */
21322
21326
  color: 0,
21323
21327
  /** The alpha of the overlay */
21324
21328
  alpha: 1
21325
21329
  });
21326
- let Xu = La;
21327
- class Ba extends At {
21330
+ let Uu = Oa;
21331
+ class Da extends At {
21328
21332
  /** @constructor */
21329
21333
  constructor(t, e, i) {
21330
21334
  super("symbol.component");
@@ -21353,7 +21357,7 @@ class Ba extends At {
21353
21357
  createFilter() {
21354
21358
  if (!this._config.overlayInactive.filterEnabled) return;
21355
21359
  const { filterColor: t, filterAlpha: e, filterResolution: i } = this._config.overlayInactive;
21356
- this._filter = new Xu({ color: t, alpha: e }), this._filter.resolution = i;
21360
+ this._filter = new Uu({ color: t, alpha: e }), this._filter.resolution = i;
21357
21361
  }
21358
21362
  /** @inheritdoc */
21359
21363
  async draw() {
@@ -21396,7 +21400,7 @@ class Ba extends At {
21396
21400
  this._sprite.alpha = 1, this._animation && (this._animation.alpha = 1);
21397
21401
  }
21398
21402
  }
21399
- class Kd extends Ba {
21403
+ class Qd extends Da {
21400
21404
  /** @inheritdoc */
21401
21405
  async animateName() {
21402
21406
  }
@@ -21416,7 +21420,7 @@ class Kd extends Ba {
21416
21420
  destroyAnimation() {
21417
21421
  }
21418
21422
  }
21419
- class Qd extends Ba {
21423
+ class Jd extends Da {
21420
21424
  constructor() {
21421
21425
  super(...arguments);
21422
21426
  /**
@@ -21510,7 +21514,7 @@ class Qd extends Ba {
21510
21514
  return this._spinePool.clear(), super.destroy();
21511
21515
  }
21512
21516
  }
21513
- class Jd extends At {
21517
+ class Zd extends At {
21514
21518
  /** @constructor */
21515
21519
  constructor(t = "switch.component", e) {
21516
21520
  super(t);
@@ -21581,7 +21585,7 @@ class Jd extends At {
21581
21585
  this.checked = !this.checked, G.emit("switch.component:switch", { name: this.name, value: this.checked });
21582
21586
  }
21583
21587
  }
21584
- class Wu extends At {
21588
+ class Hu extends At {
21585
21589
  /** @constructor */
21586
21590
  constructor(t, e, i, n = 0, r = !1) {
21587
21591
  super("volatility.symbol.component");
@@ -21618,8 +21622,8 @@ class Wu extends At {
21618
21622
  return this;
21619
21623
  }
21620
21624
  }
21621
- var Uu = /* @__PURE__ */ ((l) => (l.top = "top", l.bottom = "bottom", l.right = "right", l.left = "left", l))(Uu || {});
21622
- class Zd extends At {
21625
+ var zu = /* @__PURE__ */ ((l) => (l.top = "top", l.bottom = "bottom", l.right = "right", l.left = "left", l))(zu || {});
21626
+ class tf extends At {
21623
21627
  /** @constructor */
21624
21628
  constructor(t, e, i, n = null) {
21625
21629
  super("volatility.component");
@@ -21655,7 +21659,7 @@ class Zd extends At {
21655
21659
  await super.create(t), this._labelComponent = new It("volatility.label", this._text, this._config.textStyle), await this._labelComponent.create(this.instance), this._symbolsContainer = new Wt("volatility.symbols");
21656
21660
  const e = Math.floor(this._volatility), i = this._volatility - e;
21657
21661
  for (let n = 0; n < this._maxVolatility; n++) {
21658
- const r = n <= e - 1 ? 1 : n === e && i ? i : 0, a = new Wu(
21662
+ const r = n <= e - 1 ? 1 : n === e && i ? i : 0, a = new Hu(
21659
21663
  this._config.assetName,
21660
21664
  this._config.emptyTexture,
21661
21665
  this._config.fullTexture,
@@ -21713,60 +21717,60 @@ class Zd extends At {
21713
21717
  this._config.labelMaxWidth = t, this._labelComponent && this._labelComponent.setMaxSize({ width: t }), this.draw();
21714
21718
  }
21715
21719
  }
21716
- function tf(l, s, t = !0) {
21720
+ function ef(l, s, t = !0) {
21717
21721
  return s = Object.assign({ duration: 1, delay: 0 }, s), t && Gt.killTweensOf(l), Gt.from(l, s);
21718
21722
  }
21719
- function ef(l, s, t, e = !0) {
21723
+ function sf(l, s, t, e = !0) {
21720
21724
  return t = Object.assign({ duration: 1, delay: 0 }, t), e && Gt.killTweensOf(l), Gt.fromTo(l, s, t);
21721
21725
  }
21722
- function sf(l, s) {
21726
+ function nf(l, s) {
21723
21727
  const t = [];
21724
21728
  return l.map((e, i) => e === s && t.push(i)), t;
21725
21729
  }
21726
- function nf(l, s, t) {
21730
+ function of(l, s, t) {
21727
21731
  const e = s / t.length;
21728
21732
  return t[Math.floor(l / e)];
21729
21733
  }
21730
- function of(l) {
21734
+ function rf(l) {
21731
21735
  return Array.from(new Set(l));
21732
21736
  }
21733
- function rf(l, s) {
21737
+ function af(l, s) {
21734
21738
  for (const t of l)
21735
21739
  if (s.includes(t))
21736
21740
  return !0;
21737
21741
  return !1;
21738
21742
  }
21739
- function af(l, s, t = null) {
21743
+ function lf(l, s, t = null) {
21740
21744
  const e = new Os();
21741
21745
  return e.moveTo(l.x, l.y), e.lineTo(s.x, s.y), e.stroke({ width: 1, color: 16777215 }), e.moveTo(s.x + 1, s.y + 1), e.lineTo(l.x + 1, l.y + 1), e.stroke({ width: 1, color: 0 }), e.circle(s.x, s.y, 3), e.circle(l.x, l.y, 3), e.fill(16711680), e.stroke({ width: 2, color: 0 }), t && t.addChild(e), e;
21742
21746
  }
21743
- const lf = (l, s = "preload", t = "image", e = "image/png") => {
21747
+ const cf = (l, s = "preload", t = "image", e = "image/png") => {
21744
21748
  Array.isArray(l) ? l.map((i) => Qo(i, s, t, e)) : Qo(l, s, t, e);
21745
21749
  }, Qo = (l, s, t, e) => {
21746
21750
  if (!l) return;
21747
21751
  const i = document.createElement("link");
21748
21752
  i.rel = s, i.as = t, i.type = e, i.href = l, document.head.appendChild(i);
21749
21753
  };
21750
- function cf(l) {
21754
+ function hf(l) {
21751
21755
  return new Promise((s, t) => {
21752
21756
  const e = document.createElement("link");
21753
21757
  e.rel = "stylesheet", e.href = l, e.crossOrigin = "anonymous", e.onload = s, e.onerror = t, document.head.appendChild(e);
21754
21758
  });
21755
21759
  }
21756
- function hf(l) {
21760
+ function uf(l) {
21757
21761
  return new Promise((s, t) => {
21758
21762
  const e = document.createElement("script");
21759
21763
  e.src = l, e.crossOrigin = "anonymous", e.onload = s, e.onerror = t, document.head.appendChild(e);
21760
21764
  });
21761
21765
  }
21762
- const Hu = mr.hex(16777215), zu = mr.hex(0);
21763
- function uf(l, s = 0, t = 1) {
21764
- return Gu(l, [
21765
- { stop: s, color: Hu },
21766
- { stop: t, color: zu }
21766
+ const Gu = gr.hex(16777215), qu = gr.hex(0);
21767
+ function df(l, s = 0, t = 1) {
21768
+ return ju(l, [
21769
+ { stop: s, color: Gu },
21770
+ { stop: t, color: qu }
21767
21771
  ]);
21768
21772
  }
21769
- function Gu(l, s) {
21773
+ function ju(l, s) {
21770
21774
  const t = document.createElement("canvas"), e = t.getContext("2d"), i = e.createRadialGradient(
21771
21775
  l.width / 2,
21772
21776
  l.height / 2,
@@ -21787,7 +21791,7 @@ function Un(l, s, t, e, i, n = !1, r = 0.01) {
21787
21791
  }
21788
21792
  return m;
21789
21793
  }
21790
- function df(l, s, t, e, i = 50, n = !1) {
21794
+ function ff(l, s, t, e, i = 50, n = !1) {
21791
21795
  const r = [];
21792
21796
  let a = 0, u = l.x, d = l.y, h, o;
21793
21797
  r.push([0, 0]);
@@ -21802,51 +21806,51 @@ function df(l, s, t, e, i = 50, n = !1) {
21802
21806
  };
21803
21807
  return n && (c.intervals = r), c;
21804
21808
  }
21805
- function ff(l, s, t = !0) {
21809
+ function pf(l, s, t = !0) {
21806
21810
  const e = l.x - s.x, i = l.y - s.y;
21807
21811
  return t ? Math.round(Math.sqrt(e * e + i * i)) : Math.sqrt(e * e + i * i);
21808
21812
  }
21809
- function pf(l, s) {
21813
+ function mf(l, s) {
21810
21814
  const t = l.x - s.x, e = l.y - s.y;
21811
21815
  return t + e !== 0 ? Math.atan(e / t) : 0;
21812
21816
  }
21813
- function mf(l, s, t) {
21817
+ function gf(l, s, t) {
21814
21818
  const e = Math.min(s, t), i = Math.max(s, t);
21815
21819
  return l >= e && l <= i;
21816
21820
  }
21817
- const gf = (l) => Object.keys(l).reduce((s, t) => ({ ...s, [t]: t }), {});
21818
- function _f(l, s, t = 0) {
21821
+ const _f = (l) => Object.keys(l).reduce((s, t) => ({ ...s, [t]: t }), {});
21822
+ function yf(l, s, t = 0) {
21819
21823
  let e = s;
21820
21824
  const n = 50 / 50 - 1;
21821
21825
  return e = l - e * n, t > 0 ? parseFloat(e.toFixed(t)) : Math.round(e);
21822
21826
  }
21823
- function yf(l) {
21827
+ function bf(l) {
21824
21828
  const t = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3 - l.getTime() / 1e3), e = Math.floor(t / 3600), i = Math.floor(t / 60) % 60, n = t % 60;
21825
21829
  return [`0${e}`.slice(-2), `0${i}`.slice(-2), `0${n}`.slice(-2)].join(":");
21826
21830
  }
21827
- function bf() {
21831
+ function wf() {
21828
21832
  const l = (/* @__PURE__ */ new Date()).getHours(), s = (/* @__PURE__ */ new Date()).getMinutes(), t = (/* @__PURE__ */ new Date()).getSeconds();
21829
21833
  return [`0${l}`.slice(-2), `0${s}`.slice(-2), `0${t}`.slice(-2)].join(":");
21830
21834
  }
21831
- function wf() {
21835
+ function xf() {
21832
21836
  const l = (/* @__PURE__ */ new Date()).getHours(), s = (/* @__PURE__ */ new Date()).getMinutes();
21833
21837
  return [`0${l}`.slice(-2), `0${s}`.slice(-2)].join(":");
21834
21838
  }
21835
- function xf(l) {
21839
+ function vf(l) {
21836
21840
  const t = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3 - l.getTime() / 1e3), e = Math.floor(t / 3600), i = Math.floor(t / 60) % 60, n = t % 60;
21837
21841
  return e > 0 ? [e, `0${i}`.slice(-2), `0${n}`.slice(-2)].join(":") : [i, `0${n}`.slice(-2)].join(":");
21838
21842
  }
21839
- function vf(l, s, t) {
21843
+ function Sf(l, s, t) {
21840
21844
  const e = Ht(`taps.timeline.${l}`, { repeat: -1 });
21841
21845
  return s.map((i, n) => {
21842
21846
  e.add([l, i, n].join("-"), i), e.call(t, [n, i], i);
21843
21847
  }), e.then(), e;
21844
21848
  }
21845
- const Sf = (l, s = "settings") => {
21849
+ const Af = (l, s = "settings") => {
21846
21850
  window[s] || (window[s] = {});
21847
21851
  for (const t in l)
21848
21852
  window[s][t] = l[t];
21849
- }, Af = (l = "settings", s = {}) => window[l] ? window[l] : s;
21853
+ }, kf = (l = "settings", s = {}) => window[l] ? window[l] : s;
21850
21854
  var hn = {};
21851
21855
  /*!
21852
21856
  * howler.js v2.2.4
@@ -21858,7 +21862,7 @@ var hn = {};
21858
21862
  * MIT License
21859
21863
  */
21860
21864
  var Jo;
21861
- function qu() {
21865
+ function Ku() {
21862
21866
  return Jo || (Jo = 1, function(l) {
21863
21867
  (function() {
21864
21868
  var s = function() {
@@ -23049,12 +23053,12 @@ function qu() {
23049
23053
  })();
23050
23054
  }(hn)), hn;
23051
23055
  }
23052
- var Je = qu();
23053
- class ju {
23056
+ var Je = Ku();
23057
+ class Qu {
23054
23058
  constructor() {
23055
23059
  f(this, "_events", ["touchstart", "touchend", "click", "keydown"]);
23056
23060
  f(this, "_audioUnlocked", !1);
23057
- Je.Howler.usingWebAudio && kl() && this._init();
23061
+ Je.Howler.usingWebAudio && nr() && this._init();
23058
23062
  }
23059
23063
  _init() {
23060
23064
  var t;
@@ -23074,8 +23078,8 @@ class ju {
23074
23078
  });
23075
23079
  }
23076
23080
  }
23077
- new ju();
23078
- class kf {
23081
+ new Qu();
23082
+ class Cf {
23079
23083
  constructor() {
23080
23084
  // states
23081
23085
  f(this, "debug", !1);
@@ -23251,12 +23255,12 @@ class kf {
23251
23255
  return Math.max(0, i - e * 1e3);
23252
23256
  }
23253
23257
  }
23254
- const Cf = () => {
23258
+ const Tf = () => {
23255
23259
  String.prototype.toUpperCase = function() {
23256
23260
  return this.valueOf();
23257
23261
  };
23258
23262
  };
23259
- class Da extends Ds {
23263
+ class Ya extends Ds {
23260
23264
  /**
23261
23265
  * Конструктор сцены (но не объектов на ней)
23262
23266
  * @param name
@@ -23293,7 +23297,7 @@ class Da extends Ds {
23293
23297
  this.instance.hide();
23294
23298
  }
23295
23299
  }
23296
- class Tf extends Da {
23300
+ class Pf extends Ya {
23297
23301
  /** @constructor */
23298
23302
  constructor(t = "background.scene") {
23299
23303
  super(t);
@@ -23453,7 +23457,7 @@ class Tf extends Da {
23453
23457
  t.pivot.set(t.width / 2, t.height / 2), t.position.set(it.gameWidth / 2, it.gameHeight / 2), this._backgroundSpine && this._backgroundSpine.position.set(it.gameWidth / 2, it.gameHeight / 2);
23454
23458
  }
23455
23459
  }
23456
- class Pf extends Da {
23460
+ class Mf extends Ya {
23457
23461
  constructor() {
23458
23462
  super(...arguments);
23459
23463
  f(this, "_maskGraphics", new Os());
@@ -23469,225 +23473,225 @@ class Pf extends Da {
23469
23473
  }
23470
23474
  }
23471
23475
  export {
23472
- fr as $currency,
23473
- ec as $fastPlayEnabled,
23476
+ pr as $currency,
23477
+ ic as $fastPlayEnabled,
23474
23478
  ts as $skipActive,
23475
23479
  At as AbstractComponent,
23476
- ha as AbstractHtmlComponent,
23477
- Da as AbstractScene,
23480
+ ua as AbstractHtmlComponent,
23481
+ Ya as AbstractScene,
23478
23482
  yt as Assets,
23479
- If as Back,
23480
- Tf as BackgroundScene,
23481
- Pd as BigWinComponent,
23483
+ Ef as Back,
23484
+ Pf as BackgroundScene,
23485
+ Md as BigWinComponent,
23482
23486
  ls as BitmapText,
23483
- ua as BlackoutComponent,
23484
- Ol as BorderView,
23485
- Ef as Bounce,
23486
- Vh as ButtonComponent,
23487
+ da as BlackoutComponent,
23488
+ Dl as BorderView,
23489
+ Rf as Bounce,
23490
+ $h as ButtonComponent,
23487
23491
  Yn as ButtonFadedComponent,
23488
- Fd as ButtonTextComponent,
23489
- Md as ButtonTextures,
23490
- Rf as CSSPlugin,
23491
- ic as Catalog,
23492
+ Id as ButtonTextComponent,
23493
+ Fd as ButtonTextures,
23494
+ Lf as CSSPlugin,
23495
+ oc as Catalog,
23492
23496
  Bi as CheatComponent,
23493
- Lf as Circ,
23494
- mr as Color,
23497
+ Of as Circ,
23498
+ gr as Color,
23495
23499
  Wt as Container,
23496
23500
  _n as Core,
23497
- Of as Cubic,
23501
+ Bf as Cubic,
23498
23502
  sr as CustomEase,
23499
23503
  Ds as DI,
23500
23504
  dn as EAssetType,
23501
- Dh as EBigWinLabels,
23502
- Pu as ECheatGroup,
23503
- Uu as EConfigLabelPos,
23504
- Ll as EDevice,
23505
- hc as EEngineAllowEvents,
23505
+ Vh as EBigWinLabels,
23506
+ Fu as ECheatGroup,
23507
+ zu as EConfigLabelPos,
23508
+ Bl as EDevice,
23509
+ dc as EEngineAllowEvents,
23506
23510
  un as EEventPriority,
23507
23511
  Fe as EGameAnimationType,
23508
- du as EHintPropertyPosition,
23509
- uu as EHintPropertyStyle,
23510
- wa as EHintSort,
23511
- au as ELinkState,
23512
- Ia as EMotionType,
23512
+ pu as EHintPropertyPosition,
23513
+ fu as EHintPropertyStyle,
23514
+ xa as EHintSort,
23515
+ cu as ELinkState,
23516
+ Ea as EMotionType,
23513
23517
  Ti as EOrientation,
23514
23518
  pt as EPivot,
23515
- Sl as EPromoType,
23516
- pr as ESelectType,
23519
+ kl as EPromoType,
23520
+ mr as ESelectType,
23517
23521
  Ss as ESoundsType,
23518
- gr as ETrackSwitch,
23519
- Bf as Elastic,
23520
- vd as Engine,
23521
- Df as Expo,
23522
- Ba as FWAbstractSymbolComponent,
23523
- ba as FWFramesComponent,
23524
- Vd as FWFramesSequenceComponent,
23525
- Nd as FWFramesSpineComponent,
23526
- $d as FWHintsComponent,
23527
- fu as FWIntrigueComponent,
23528
- Xd as FWIntrigueSpineComponent,
23529
- xa as FWLinesComponent,
23530
- Wd as FWLinesSpineComponent,
23531
- Ud as FWLinesStaticComponent,
23532
- Fa as FWPayoutBaseComponent,
23533
- Hd as FWPayoutComponent,
23534
- Gd as FWReelComponent,
23535
- Dd as FWRetriggerComponent,
23536
- jd as FWSlotComponent,
23537
- kd as FWSoundsManager,
23538
- Kd as FWSymbolSequenceComponent,
23539
- Qd as FWSymbolSpineComponent,
23540
- zd as FWTotalPayoutComponent,
23541
- Rd as FillFrameComponent,
23542
- rc as FocusServise,
23543
- Zh as FpsMeterComponent,
23544
- nc as GridComponent,
23545
- Jl as LangsService,
23546
- Yf as Linear,
23547
- Ld as LinkComponent,
23522
+ _r as ETrackSwitch,
23523
+ Df as Elastic,
23524
+ Sd as Engine,
23525
+ Yf as Expo,
23526
+ Da as FWAbstractSymbolComponent,
23527
+ wa as FWFramesComponent,
23528
+ Nd as FWFramesSequenceComponent,
23529
+ $d as FWFramesSpineComponent,
23530
+ Xd as FWHintsComponent,
23531
+ mu as FWIntrigueComponent,
23532
+ Wd as FWIntrigueSpineComponent,
23533
+ va as FWLinesComponent,
23534
+ Ud as FWLinesSpineComponent,
23535
+ Hd as FWLinesStaticComponent,
23536
+ Ia as FWPayoutBaseComponent,
23537
+ zd as FWPayoutComponent,
23538
+ qd as FWReelComponent,
23539
+ Yd as FWRetriggerComponent,
23540
+ Kd as FWSlotComponent,
23541
+ Cd as FWSoundsManager,
23542
+ Qd as FWSymbolSequenceComponent,
23543
+ Jd as FWSymbolSpineComponent,
23544
+ Gd as FWTotalPayoutComponent,
23545
+ Ld as FillFrameComponent,
23546
+ lc as FocusServise,
23547
+ eu as FpsMeterComponent,
23548
+ rc as GridComponent,
23549
+ tc as LangsService,
23550
+ Vf as Linear,
23551
+ Od as LinkComponent,
23548
23552
  $e as Loaders,
23549
- Pf as MaskedScene,
23550
- Vf as MotionPathPlugin,
23551
- Od as ParticlesComponent,
23552
- Sd as Playlist,
23553
- Nf as Power0,
23554
- $f as Power1,
23555
- Xf as Power2,
23556
- Wf as Power3,
23557
- Uf as Power4,
23558
- Ad as Preloader,
23559
- oc as Producer,
23560
- Bd as ProgressComponent,
23561
- Hf as Quad,
23562
- zf as Quart,
23563
- Gf as Quint,
23564
- Zl as RegistryService,
23565
- uc as Sequence,
23553
+ Mf as MaskedScene,
23554
+ Nf as MotionPathPlugin,
23555
+ Bd as ParticlesComponent,
23556
+ Ad as Playlist,
23557
+ $f as Power0,
23558
+ Xf as Power1,
23559
+ Wf as Power2,
23560
+ Uf as Power3,
23561
+ Hf as Power4,
23562
+ kd as Preloader,
23563
+ ac as Producer,
23564
+ Dd as ProgressComponent,
23565
+ zf as Quad,
23566
+ Gf as Quart,
23567
+ qf as Quint,
23568
+ ec as RegistryService,
23569
+ fc as Sequence,
23566
23570
  qn as Sine,
23567
- ac as SkipService,
23568
- dc as Skipable,
23569
- lu as SlidesReelComponent,
23570
- Yd as SlideshowComponent,
23571
- hu as SlideshowUi,
23572
- kf as SoundsHowlerService,
23573
- lc as SoundsService,
23571
+ cc as SkipService,
23572
+ pc as Skipable,
23573
+ hu as SlidesReelComponent,
23574
+ Vd as SlideshowComponent,
23575
+ du as SlideshowUi,
23576
+ Cf as SoundsHowlerService,
23577
+ hc as SoundsService,
23574
23578
  no as Spine,
23575
23579
  Oe as SpineAssets,
23576
- qf as SteppedEase,
23577
- cc as StorageService,
23578
- jf as Strong,
23579
- Jd as SwitchComponent,
23580
+ jf as SteppedEase,
23581
+ uc as StorageService,
23582
+ Kf as Strong,
23583
+ Zd as SwitchComponent,
23580
23584
  It as TextComponent,
23581
- Td as Tile,
23582
- Kf as TimelineLite,
23583
- Qf as TimelineMax,
23584
- Jf as TweenLite,
23585
- Zf as TweenMax,
23586
- Zd as VolatilityComponent,
23587
- Wu as VolatilitySymbolComponent,
23588
- Rh as animateCounter,
23589
- Ih as animateFadeIn,
23590
- Eh as animateFadeOut,
23591
- tf as animateFrom,
23592
- ef as animateFromTo,
23585
+ Pd as Tile,
23586
+ Qf as TimelineLite,
23587
+ Jf as TimelineMax,
23588
+ Zf as TweenLite,
23589
+ tp as TweenMax,
23590
+ tf as VolatilityComponent,
23591
+ Hu as VolatilitySymbolComponent,
23592
+ Oh as animateCounter,
23593
+ Rh as animateFadeIn,
23594
+ Lh as animateFadeOut,
23595
+ ef as animateFrom,
23596
+ sf as animateFromTo,
23593
23597
  ne as animateTo,
23594
23598
  Io as applyFlatStyleProp,
23595
- sf as arrayIndexOfAll,
23596
- nf as arrayPosition,
23597
- of as arrayUnique,
23598
- rf as arraysIntersect,
23599
- xd as asEventKey,
23599
+ nf as arrayIndexOfAll,
23600
+ of as arrayPosition,
23601
+ rf as arrayUnique,
23602
+ af as arraysIntersect,
23603
+ vd as asEventKey,
23600
23604
  Un as bezierQubic,
23601
- df as bezierQubicLength,
23605
+ ff as bezierQubicLength,
23602
23606
  it as borderView,
23603
23607
  Pe as cheatStore,
23604
- md as clear,
23605
- _d as clickEvent,
23608
+ gd as clear,
23609
+ yd as clickEvent,
23606
23610
  Lo as convertToFixed,
23607
- da as createFillGradient,
23608
- Gu as createRadialGradient,
23609
- uf as createRadialWBGradient,
23611
+ fa as createFillGradient,
23612
+ ju as createRadialGradient,
23613
+ df as createRadialWBGradient,
23610
23614
  go as debounce,
23611
- Yh as debugContainer,
23612
- af as debugLine,
23615
+ Nh as debugContainer,
23616
+ lf as debugLine,
23613
23617
  Fs as deepMerge,
23614
23618
  qo as demoTexture,
23615
- bd as detectLang,
23616
- Ed as displayObjectToBase64,
23617
- Id as displayObjectToImage,
23618
- tu as displayObjectToTexture,
23619
- ff as distance,
23619
+ wd as detectLang,
23620
+ Rd as displayObjectToBase64,
23621
+ Ed as displayObjectToImage,
23622
+ su as displayObjectToTexture,
23623
+ pf as distance,
23620
23624
  Ls as drawRect,
23621
- Tu as drawReel,
23625
+ Mu as drawReel,
23622
23626
  de as ease,
23623
23627
  G as emitter,
23624
23628
  Ks as error,
23625
23629
  ie as eventlog,
23626
23630
  Fo as flatToTextStyleOptions,
23627
- Ru as getSlotCheatDescriptors,
23628
- El as getUrlParams,
23629
- ed as getUserAgent,
23630
- eu as gradientTexture,
23631
- tp as gsap,
23632
- yd as hasUrlParams,
23633
- fd as inIframe,
23634
- ld as isAndroid,
23635
- cd as isAndroidTablet,
23636
- or as isArray,
23637
- wd as isBoolean,
23631
+ Ou as getSlotCheatDescriptors,
23632
+ Ll as getUrlParams,
23633
+ id as getUserAgent,
23634
+ iu as gradientTexture,
23635
+ ep as gsap,
23636
+ bd as hasUrlParams,
23637
+ pd as inIframe,
23638
+ cd as isAndroid,
23639
+ hd as isAndroidTablet,
23640
+ rr as isArray,
23641
+ xd as isBoolean,
23638
23642
  Gs as isClick,
23639
- sd as isDesktop,
23640
- nd as isEdge,
23641
- id as isFirefox,
23642
- pd as isFullscreenSupported,
23643
+ nd as isDesktop,
23644
+ rd as isEdge,
23645
+ od as isFirefox,
23646
+ md as isFullscreenSupported,
23643
23647
  Bs as isIEMobile,
23644
- kl as isIOS,
23645
- ad as isIPhone,
23648
+ nr as isIOS,
23649
+ ld as isIPhone,
23646
23650
  mo as isLandscapeMode,
23647
- rd as isMac,
23651
+ ad as isMac,
23648
23652
  ir as isMobile,
23649
23653
  zi as isMode,
23650
- hd as isNativeApp,
23651
- rr as isObject,
23654
+ ud as isNativeApp,
23655
+ ar as isObject,
23652
23656
  pn as isPlainObject,
23653
- ud as isPlatformLandscapeMode,
23654
- Tl as isPlatformPortraitMode,
23655
- Cl as isPortraitMode,
23656
- Pl as isRetina,
23657
- od as isSafari,
23658
- dd as isSmallScreenSize,
23659
- Rl as isString,
23660
- Al as isTablet,
23661
- Ml as isWebpSupported,
23662
- tc as lang,
23663
- Cf as langDoesNotSupportUppercase,
23664
- cf as loadCSS,
23665
- hf as loadJS,
23666
- lf as loadResources,
23667
- mf as numberBetween,
23668
- gf as objectKeysToEnum,
23669
- Il as once,
23670
- pf as radian,
23671
- sc as randomExclude,
23657
+ dd as isPlatformLandscapeMode,
23658
+ Ml as isPlatformPortraitMode,
23659
+ Pl as isPortraitMode,
23660
+ Fl as isRetina,
23661
+ Tl as isSafari,
23662
+ fd as isSmallScreenSize,
23663
+ Ol as isString,
23664
+ Cl as isTablet,
23665
+ Il as isWebpSupported,
23666
+ sc as lang,
23667
+ Tf as langDoesNotSupportUppercase,
23668
+ hf as loadCSS,
23669
+ uf as loadJS,
23670
+ cf as loadResources,
23671
+ gf as numberBetween,
23672
+ _f as objectKeysToEnum,
23673
+ Rl as once,
23674
+ mf as radian,
23675
+ nc as randomExclude,
23672
23676
  Qi as randomInRange,
23673
23677
  ai as randomValue,
23674
23678
  le as range,
23675
- Mu as registerCheats,
23679
+ Iu as registerCheats,
23676
23680
  De as registry,
23677
- qd as seedCheats,
23678
- gd as setMode,
23681
+ jd as seedCheats,
23682
+ _d as setMode,
23679
23683
  Hs as skipable,
23680
23684
  gs as sleep,
23681
23685
  Ko as slotComponentConfig,
23682
- _f as speedDuration,
23686
+ yf as speedDuration,
23683
23687
  at as speedMode,
23684
- yf as timeFull,
23685
- bf as timeNowFull,
23686
- wf as timeNowShort,
23687
- xf as timeShort,
23688
+ bf as timeFull,
23689
+ wf as timeNowFull,
23690
+ xf as timeNowShort,
23691
+ vf as timeShort,
23688
23692
  Ht as timelineCreate,
23689
- vf as timelineTaps,
23690
- nr as timeout,
23691
- Sf as windowAdd,
23692
- Af as windowGet
23693
+ Sf as timelineTaps,
23694
+ or as timeout,
23695
+ Af as windowAdd,
23696
+ kf as windowGet
23693
23697
  };