evotars 0.0.13 → 0.0.15

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.
@@ -126,7 +126,7 @@ const ki = (i) => {
126
126
  },
127
127
  test: () => !0,
128
128
  load: async () => {
129
- await import("./browserAll--tlJ0wmH.js");
129
+ await import("./browserAll-CctCOtCx.js");
130
130
  }
131
131
  }, An = {
132
132
  extension: {
@@ -136,7 +136,7 @@ const ki = (i) => {
136
136
  },
137
137
  test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
138
138
  load: async () => {
139
- await import("./webworkerAll-DxpydbmF.js");
139
+ await import("./webworkerAll-B33vuHnD.js");
140
140
  }
141
141
  };
142
142
  class at {
@@ -253,49 +253,49 @@ var rr = { exports: {} };
253
253
  var l = e ? e + c : c, u = this._events[l];
254
254
  return u ? u.fn ? 1 : u.length : 0;
255
255
  }, o.prototype.emit = function(c, l, u, d, p, f) {
256
- var m = e ? e + c : c;
257
- if (!this._events[m])
256
+ var g = e ? e + c : c;
257
+ if (!this._events[g])
258
258
  return !1;
259
- var g = this._events[m], y = arguments.length, _, x;
260
- if (g.fn) {
261
- switch (g.once && this.removeListener(c, g.fn, void 0, !0), y) {
259
+ var m = this._events[g], y = arguments.length, _, x;
260
+ if (m.fn) {
261
+ switch (m.once && this.removeListener(c, m.fn, void 0, !0), y) {
262
262
  case 1:
263
- return g.fn.call(g.context), !0;
263
+ return m.fn.call(m.context), !0;
264
264
  case 2:
265
- return g.fn.call(g.context, l), !0;
265
+ return m.fn.call(m.context, l), !0;
266
266
  case 3:
267
- return g.fn.call(g.context, l, u), !0;
267
+ return m.fn.call(m.context, l, u), !0;
268
268
  case 4:
269
- return g.fn.call(g.context, l, u, d), !0;
269
+ return m.fn.call(m.context, l, u, d), !0;
270
270
  case 5:
271
- return g.fn.call(g.context, l, u, d, p), !0;
271
+ return m.fn.call(m.context, l, u, d, p), !0;
272
272
  case 6:
273
- return g.fn.call(g.context, l, u, d, p, f), !0;
273
+ return m.fn.call(m.context, l, u, d, p, f), !0;
274
274
  }
275
275
  for (x = 1, _ = new Array(y - 1); x < y; x++)
276
276
  _[x - 1] = arguments[x];
277
- g.fn.apply(g.context, _);
277
+ m.fn.apply(m.context, _);
278
278
  } else {
279
- var b = g.length, S;
279
+ var b = m.length, S;
280
280
  for (x = 0; x < b; x++)
281
- switch (g[x].once && this.removeListener(c, g[x].fn, void 0, !0), y) {
281
+ switch (m[x].once && this.removeListener(c, m[x].fn, void 0, !0), y) {
282
282
  case 1:
283
- g[x].fn.call(g[x].context);
283
+ m[x].fn.call(m[x].context);
284
284
  break;
285
285
  case 2:
286
- g[x].fn.call(g[x].context, l);
286
+ m[x].fn.call(m[x].context, l);
287
287
  break;
288
288
  case 3:
289
- g[x].fn.call(g[x].context, l, u);
289
+ m[x].fn.call(m[x].context, l, u);
290
290
  break;
291
291
  case 4:
292
- g[x].fn.call(g[x].context, l, u, d);
292
+ m[x].fn.call(m[x].context, l, u, d);
293
293
  break;
294
294
  default:
295
295
  if (!_)
296
296
  for (S = 1, _ = new Array(y - 1); S < y; S++)
297
297
  _[S - 1] = arguments[S];
298
- g[x].fn.apply(g[x].context, _);
298
+ m[x].fn.apply(m[x].context, _);
299
299
  }
300
300
  }
301
301
  return !0;
@@ -313,9 +313,9 @@ var rr = { exports: {} };
313
313
  if (f.fn)
314
314
  f.fn === l && (!d || f.once) && (!u || f.context === u) && a(this, p);
315
315
  else {
316
- for (var m = 0, g = [], y = f.length; m < y; m++)
317
- (f[m].fn !== l || d && !f[m].once || u && f[m].context !== u) && g.push(f[m]);
318
- g.length ? this._events[p] = g.length === 1 ? g[0] : g : a(this, p);
316
+ for (var g = 0, m = [], y = f.length; g < y; g++)
317
+ (f[g].fn !== l || d && !f[g].once || u && f[g].context !== u) && m.push(f[g]);
318
+ m.length ? this._events[p] = m.length === 1 ? m[0] : m : a(this, p);
319
319
  }
320
320
  return this;
321
321
  }, o.prototype.removeAllListeners = function(c) {
@@ -618,15 +618,15 @@ class D {
618
618
  return Pn.identity();
619
619
  }
620
620
  }
621
- const Pn = new D(), kn = new D(), Vt = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], Yt = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], jt = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Xt = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], Ii = [], nr = [], Ge = Math.sign;
621
+ const Pn = new D(), kn = new D(), Yt = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], jt = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], Vt = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Xt = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], Ii = [], nr = [], Ge = Math.sign;
622
622
  function In() {
623
623
  for (let i = 0; i < 16; i++) {
624
624
  const t = [];
625
625
  Ii.push(t);
626
626
  for (let e = 0; e < 16; e++) {
627
- const s = Ge(Vt[i] * Vt[e] + jt[i] * Yt[e]), r = Ge(Yt[i] * Vt[e] + Xt[i] * Yt[e]), n = Ge(Vt[i] * jt[e] + jt[i] * Xt[e]), a = Ge(Yt[i] * jt[e] + Xt[i] * Xt[e]);
627
+ const s = Ge(Yt[i] * Yt[e] + Vt[i] * jt[e]), r = Ge(jt[i] * Yt[e] + Xt[i] * jt[e]), n = Ge(Yt[i] * Vt[e] + Vt[i] * Xt[e]), a = Ge(jt[i] * Vt[e] + Xt[i] * Xt[e]);
628
628
  for (let o = 0; o < 16; o++)
629
- if (Vt[o] === s && Yt[o] === r && jt[o] === n && Xt[o] === a) {
629
+ if (Yt[o] === s && jt[o] === r && Vt[o] === n && Xt[o] === a) {
630
630
  t.push(o);
631
631
  break;
632
632
  }
@@ -634,7 +634,7 @@ function In() {
634
634
  }
635
635
  for (let i = 0; i < 16; i++) {
636
636
  const t = new D();
637
- t.set(Vt[i], Yt[i], jt[i], Xt[i], 0, 0), nr.push(t);
637
+ t.set(Yt[i], jt[i], Vt[i], Xt[i], 0, 0), nr.push(t);
638
638
  }
639
639
  }
640
640
  In();
@@ -733,21 +733,21 @@ const H = {
733
733
  * @returns {GD8Symmetry} The X-component of the U-axis
734
734
  * after rotating the axes.
735
735
  */
736
- uX: (i) => Vt[i],
736
+ uX: (i) => Yt[i],
737
737
  /**
738
738
  * @memberof maths.groupD8
739
739
  * @param {GD8Symmetry} ind - sprite rotation angle.
740
740
  * @returns {GD8Symmetry} The Y-component of the U-axis
741
741
  * after rotating the axes.
742
742
  */
743
- uY: (i) => Yt[i],
743
+ uY: (i) => jt[i],
744
744
  /**
745
745
  * @memberof maths.groupD8
746
746
  * @param {GD8Symmetry} ind - sprite rotation angle.
747
747
  * @returns {GD8Symmetry} The X-component of the V-axis
748
748
  * after rotating the axes.
749
749
  */
750
- vX: (i) => jt[i],
750
+ vX: (i) => Vt[i],
751
751
  /**
752
752
  * @memberof maths.groupD8
753
753
  * @param {GD8Symmetry} ind - sprite rotation angle.
@@ -921,8 +921,8 @@ class tt {
921
921
  const { width: r, height: n } = this;
922
922
  if (r <= 0 || n <= 0)
923
923
  return !1;
924
- const a = this.x, o = this.y, h = a - s / 2, c = a + r + s / 2, l = o - s / 2, u = o + n + s / 2, d = a + s / 2, p = a + r - s / 2, f = o + s / 2, m = o + n - s / 2;
925
- return t >= h && t <= c && e >= l && e <= u && !(t > d && t < p && e > f && e < m);
924
+ const a = this.x, o = this.y, h = a - s / 2, c = a + r + s / 2, l = o - s / 2, u = o + n + s / 2, d = a + s / 2, p = a + r - s / 2, f = o + s / 2, g = o + n - s / 2;
925
+ return t >= h && t <= c && e >= l && e <= u && !(t > d && t < p && e > f && e < g);
926
926
  }
927
927
  /**
928
928
  * Determines whether the `other` Rectangle transformed by `transform` intersects with `this` Rectangle object.
@@ -950,8 +950,8 @@ class tt {
950
950
  const u = Math.sign(e.a * e.d - e.b * e.c);
951
951
  if (u === 0 || (e.apply(o, o), e.apply(h, h), e.apply(c, c), e.apply(l, l), Math.max(o.x, h.x, c.x, l.x) <= s || Math.min(o.x, h.x, c.x, l.x) >= r || Math.max(o.y, h.y, c.y, l.y) <= n || Math.min(o.y, h.y, c.y, l.y) >= a))
952
952
  return !1;
953
- const d = u * (h.y - o.y), p = u * (o.x - h.x), f = d * s + p * n, m = d * r + p * n, g = d * s + p * a, y = d * r + p * a;
954
- if (Math.max(f, m, g, y) <= d * o.x + p * o.y || Math.min(f, m, g, y) >= d * l.x + p * l.y)
953
+ const d = u * (h.y - o.y), p = u * (o.x - h.x), f = d * s + p * n, g = d * r + p * n, m = d * s + p * a, y = d * r + p * a;
954
+ if (Math.max(f, g, m, y) <= d * o.x + p * o.y || Math.min(f, g, m, y) >= d * l.x + p * l.y)
955
955
  return !1;
956
956
  const _ = u * (o.y - c.y), x = u * (c.x - o.x), b = _ * s + x * n, S = _ * r + x * n, k = _ * s + x * a, M = _ * r + x * a;
957
957
  return !(Math.max(b, S, k, M) <= _ * o.x + x * o.y || Math.min(b, S, k, M) >= _ * l.x + x * l.y);
@@ -1034,7 +1034,7 @@ const ar = () => {
1034
1034
  function uc(i) {
1035
1035
  return i += i === 0 ? 1 : 0, --i, i |= i >>> 1, i |= i >>> 2, i |= i >>> 4, i |= i >>> 8, i |= i >>> 16, i + 1;
1036
1036
  }
1037
- function gs(i) {
1037
+ function ms(i) {
1038
1038
  return !(i & i - 1) && !!i;
1039
1039
  }
1040
1040
  function En(i) {
@@ -1043,10 +1043,10 @@ function En(i) {
1043
1043
  i[e] !== void 0 && (t[e] = i[e]);
1044
1044
  return t;
1045
1045
  }
1046
- const ms = /* @__PURE__ */ Object.create(null);
1046
+ const gs = /* @__PURE__ */ Object.create(null);
1047
1047
  function Rn(i) {
1048
- const t = ms[i];
1049
- return t === void 0 && (ms[i] = et("resource")), t;
1048
+ const t = gs[i];
1049
+ return t === void 0 && (gs[i] = et("resource")), t;
1050
1050
  }
1051
1051
  const or = class hr extends Bt {
1052
1052
  /**
@@ -1260,7 +1260,7 @@ const lr = class cr extends Bt {
1260
1260
  * @private
1261
1261
  */
1262
1262
  _refreshPOT() {
1263
- this.isPowerOfTwo = gs(this.pixelWidth) && gs(this.pixelHeight);
1263
+ this.isPowerOfTwo = ms(this.pixelWidth) && ms(this.pixelHeight);
1264
1264
  }
1265
1265
  static test(t) {
1266
1266
  throw new Error("Unimplemented");
@@ -1579,7 +1579,7 @@ var Dn = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Tt = function(i) {
1579
1579
  Ss.indexOf(t) < 0 && (t(Ri, Ei), Ss.push(t));
1580
1580
  });
1581
1581
  };
1582
- function Vn(i, t) {
1582
+ function Yn(i, t) {
1583
1583
  var e = { white: "#ffffff", bisque: "#ffe4c4", blue: "#0000ff", cadetblue: "#5f9ea0", chartreuse: "#7fff00", chocolate: "#d2691e", coral: "#ff7f50", antiquewhite: "#faebd7", aqua: "#00ffff", azure: "#f0ffff", whitesmoke: "#f5f5f5", papayawhip: "#ffefd5", plum: "#dda0dd", blanchedalmond: "#ffebcd", black: "#000000", gold: "#ffd700", goldenrod: "#daa520", gainsboro: "#dcdcdc", cornsilk: "#fff8dc", cornflowerblue: "#6495ed", burlywood: "#deb887", aquamarine: "#7fffd4", beige: "#f5f5dc", crimson: "#dc143c", cyan: "#00ffff", darkblue: "#00008b", darkcyan: "#008b8b", darkgoldenrod: "#b8860b", darkkhaki: "#bdb76b", darkgray: "#a9a9a9", darkgreen: "#006400", darkgrey: "#a9a9a9", peachpuff: "#ffdab9", darkmagenta: "#8b008b", darkred: "#8b0000", darkorchid: "#9932cc", darkorange: "#ff8c00", darkslateblue: "#483d8b", gray: "#808080", darkslategray: "#2f4f4f", darkslategrey: "#2f4f4f", deeppink: "#ff1493", deepskyblue: "#00bfff", wheat: "#f5deb3", firebrick: "#b22222", floralwhite: "#fffaf0", ghostwhite: "#f8f8ff", darkviolet: "#9400d3", magenta: "#ff00ff", green: "#008000", dodgerblue: "#1e90ff", grey: "#808080", honeydew: "#f0fff0", hotpink: "#ff69b4", blueviolet: "#8a2be2", forestgreen: "#228b22", lawngreen: "#7cfc00", indianred: "#cd5c5c", indigo: "#4b0082", fuchsia: "#ff00ff", brown: "#a52a2a", maroon: "#800000", mediumblue: "#0000cd", lightcoral: "#f08080", darkturquoise: "#00ced1", lightcyan: "#e0ffff", ivory: "#fffff0", lightyellow: "#ffffe0", lightsalmon: "#ffa07a", lightseagreen: "#20b2aa", linen: "#faf0e6", mediumaquamarine: "#66cdaa", lemonchiffon: "#fffacd", lime: "#00ff00", khaki: "#f0e68c", mediumseagreen: "#3cb371", limegreen: "#32cd32", mediumspringgreen: "#00fa9a", lightskyblue: "#87cefa", lightblue: "#add8e6", midnightblue: "#191970", lightpink: "#ffb6c1", mistyrose: "#ffe4e1", moccasin: "#ffe4b5", mintcream: "#f5fffa", lightslategray: "#778899", lightslategrey: "#778899", navajowhite: "#ffdead", navy: "#000080", mediumvioletred: "#c71585", powderblue: "#b0e0e6", palegoldenrod: "#eee8aa", oldlace: "#fdf5e6", paleturquoise: "#afeeee", mediumturquoise: "#48d1cc", mediumorchid: "#ba55d3", rebeccapurple: "#663399", lightsteelblue: "#b0c4de", mediumslateblue: "#7b68ee", thistle: "#d8bfd8", tan: "#d2b48c", orchid: "#da70d6", mediumpurple: "#9370db", purple: "#800080", pink: "#ffc0cb", skyblue: "#87ceeb", springgreen: "#00ff7f", palegreen: "#98fb98", red: "#ff0000", yellow: "#ffff00", slateblue: "#6a5acd", lavenderblush: "#fff0f5", peru: "#cd853f", palevioletred: "#db7093", violet: "#ee82ee", teal: "#008080", slategray: "#708090", slategrey: "#708090", aliceblue: "#f0f8ff", darkseagreen: "#8fbc8f", darkolivegreen: "#556b2f", greenyellow: "#adff2f", seagreen: "#2e8b57", seashell: "#fff5ee", tomato: "#ff6347", silver: "#c0c0c0", sienna: "#a0522d", lavender: "#e6e6fa", lightgreen: "#90ee90", orange: "#ffa500", orangered: "#ff4500", steelblue: "#4682b4", royalblue: "#4169e1", turquoise: "#40e0d0", yellowgreen: "#9acd32", salmon: "#fa8072", saddlebrown: "#8b4513", sandybrown: "#f4a460", rosybrown: "#bc8f8f", darksalmon: "#e9967a", lightgoldenrodyellow: "#fafad2", snow: "#fffafa", lightgrey: "#d3d3d3", lightgray: "#d3d3d3", dimgray: "#696969", dimgrey: "#696969", olivedrab: "#6b8e23", olive: "#808000" }, s = {};
1584
1584
  for (var r in e)
1585
1585
  s[e[r]] = r;
@@ -1596,8 +1596,8 @@ function Vn(i, t) {
1596
1596
  for (var p in e)
1597
1597
  n[p] = new i(e[p]).toRgb();
1598
1598
  for (var f in e) {
1599
- var m = (o = l, h = n[f], Math.pow(o.r - h.r, 2) + Math.pow(o.g - h.g, 2) + Math.pow(o.b - h.b, 2));
1600
- m < u && (u = m, d = f);
1599
+ var g = (o = l, h = n[f], Math.pow(o.r - h.r, 2) + Math.pow(o.g - h.g, 2) + Math.pow(o.b - h.b, 2));
1600
+ g < u && (u = g, d = f);
1601
1601
  }
1602
1602
  return d;
1603
1603
  }
@@ -1606,7 +1606,7 @@ function Vn(i, t) {
1606
1606
  return h ? new i(h).toRgb() : null;
1607
1607
  }, "name"]);
1608
1608
  }
1609
- Nn([Vn]);
1609
+ Nn([Yn]);
1610
1610
  const ne = class xe {
1611
1611
  /**
1612
1612
  * @param {ColorSource} value - Optional value to use, if not provided, white is used.
@@ -1884,12 +1884,12 @@ ne.shared = new ne();
1884
1884
  ne._temp = new ne();
1885
1885
  ne.HEX_PATTERN = /^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;
1886
1886
  let J = ne;
1887
- const Yn = {
1887
+ const jn = {
1888
1888
  cullArea: null,
1889
1889
  cullable: !1,
1890
1890
  cullableChildren: !0
1891
1891
  };
1892
- function jn(i, t, e) {
1892
+ function Vn(i, t, e) {
1893
1893
  const s = i.length;
1894
1894
  let r;
1895
1895
  if (t >= s || e === 0)
@@ -1916,7 +1916,7 @@ const Xn = {
1916
1916
  const o = this.children[a];
1917
1917
  o && (r.push(o), o.parent = null);
1918
1918
  }
1919
- jn(this.children, i, e);
1919
+ Vn(this.children, i, e);
1920
1920
  const n = this.renderGroup || this.parentRenderGroup;
1921
1921
  n && n.removeChildren(r);
1922
1922
  for (let a = 0; a < r.length; ++a)
@@ -2379,8 +2379,8 @@ class St {
2379
2379
  addFrame(t, e, s, r, n) {
2380
2380
  n || (n = this.matrix);
2381
2381
  const a = n.a, o = n.b, h = n.c, c = n.d, l = n.tx, u = n.ty;
2382
- let d = this.minX, p = this.minY, f = this.maxX, m = this.maxY, g = a * t + h * e + l, y = o * t + c * e + u;
2383
- g < d && (d = g), y < p && (p = y), g > f && (f = g), y > m && (m = y), g = a * s + h * e + l, y = o * s + c * e + u, g < d && (d = g), y < p && (p = y), g > f && (f = g), y > m && (m = y), g = a * t + h * r + l, y = o * t + c * r + u, g < d && (d = g), y < p && (p = y), g > f && (f = g), y > m && (m = y), g = a * s + h * r + l, y = o * s + c * r + u, g < d && (d = g), y < p && (p = y), g > f && (f = g), y > m && (m = y), this.minX = d, this.minY = p, this.maxX = f, this.maxY = m;
2382
+ let d = this.minX, p = this.minY, f = this.maxX, g = this.maxY, m = a * t + h * e + l, y = o * t + c * e + u;
2383
+ m < d && (d = m), y < p && (p = y), m > f && (f = m), y > g && (g = y), m = a * s + h * e + l, y = o * s + c * e + u, m < d && (d = m), y < p && (p = y), m > f && (f = m), y > g && (g = y), m = a * t + h * r + l, y = o * t + c * r + u, m < d && (d = m), y < p && (p = y), m > f && (f = m), y > g && (g = y), m = a * s + h * r + l, y = o * s + c * r + u, m < d && (d = m), y < p && (p = y), m > f && (f = m), y > g && (g = y), this.minX = d, this.minY = p, this.maxX = f, this.maxY = g;
2384
2384
  }
2385
2385
  /**
2386
2386
  * Adds a rectangle to the bounds.
@@ -2520,8 +2520,8 @@ class St {
2520
2520
  let n = this.minX, a = this.minY, o = this.maxX, h = this.maxY;
2521
2521
  r || (r = this.matrix);
2522
2522
  const c = r.a, l = r.b, u = r.c, d = r.d, p = r.tx, f = r.ty;
2523
- for (let m = e; m < s; m += 2) {
2524
- const g = t[m], y = t[m + 1], _ = c * g + u * y + p, x = l * g + d * y + f;
2523
+ for (let g = e; g < s; g += 2) {
2524
+ const m = t[g], y = t[g + 1], _ = c * m + u * y + p, x = l * m + d * y + f;
2525
2525
  n = _ < n ? _ : n, a = x < a ? x : a, o = _ > o ? _ : o, h = x > h ? x : h;
2526
2526
  }
2527
2527
  this.minX = n, this.minY = a, this.maxX = o, this.maxY = h;
@@ -2542,9 +2542,9 @@ const Et = new Ki(D), ae = new Ki(St);
2542
2542
  function pr(i, t, e) {
2543
2543
  e.clear();
2544
2544
  let s, r;
2545
- return i.parent ? t ? s = i.parent.worldTransform : (r = Et.get().identity(), s = Ke(i, r)) : s = D.IDENTITY, gr(i, e, s, t), r && Et.return(r), e.isValid || e.set(0, 0, 0, 0), e;
2545
+ return i.parent ? t ? s = i.parent.worldTransform : (r = Et.get().identity(), s = Ke(i, r)) : s = D.IDENTITY, mr(i, e, s, t), r && Et.return(r), e.isValid || e.set(0, 0, 0, 0), e;
2546
2546
  }
2547
- function gr(i, t, e, s) {
2547
+ function mr(i, t, e, s) {
2548
2548
  var o, h;
2549
2549
  if (!i.visible || !i.measurable)
2550
2550
  return;
@@ -2556,7 +2556,7 @@ function gr(i, t, e, s) {
2556
2556
  else {
2557
2557
  i.addBounds && (t.matrix = r, i.addBounds(t));
2558
2558
  for (let c = 0; c < i.children.length; c++)
2559
- gr(i.children[c], t, r, s);
2559
+ mr(i.children[c], t, r, s);
2560
2560
  }
2561
2561
  if (a) {
2562
2562
  for (let c = 0; c < i.effects.length; c++)
@@ -2569,12 +2569,12 @@ function Ke(i, t) {
2569
2569
  const e = i.parent;
2570
2570
  return e && (Ke(e, t), e.updateLocalTransform(), t.append(e.localTransform)), t;
2571
2571
  }
2572
- let gi = 0;
2572
+ let mi = 0;
2573
2573
  const Ts = 500;
2574
2574
  function it(...i) {
2575
- gi !== Ts && (gi++, gi === Ts ? console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.") : console.warn("PixiJS Warning: ", ...i));
2575
+ mi !== Ts && (mi++, mi === Ts ? console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.") : console.warn("PixiJS Warning: ", ...i));
2576
2576
  }
2577
- function mr(i, t, e) {
2577
+ function gr(i, t, e) {
2578
2578
  return t.clear(), e || (e = D.IDENTITY), yr(i, t, e, i, !0), t.isValid || t.set(0, 0, 0, 0), t;
2579
2579
  }
2580
2580
  function yr(i, t, e, s, r) {
@@ -2637,7 +2637,7 @@ const Jn = new D(), Qn = {
2637
2637
  localBounds: new St()
2638
2638
  });
2639
2639
  const i = this._localBoundsCacheData;
2640
- return i.index = 1, i.didChange = !1, i.data[0] !== this._didChangeId >> 12 && (i.didChange = !0, i.data[0] = this._didChangeId >> 12), _r(this, i), i.didChange && mr(this, i.localBounds, Jn), i.localBounds;
2640
+ return i.index = 1, i.didChange = !1, i.data[0] !== this._didChangeId >> 12 && (i.didChange = !0, i.data[0] = this._didChangeId >> 12), _r(this, i), i.didChange && gr(this, i.localBounds, Jn), i.localBounds;
2641
2641
  },
2642
2642
  /**
2643
2643
  * Calculates and returns the (world) bounds of the display object as a [Rectangle]{@link Rectangle}.
@@ -2892,11 +2892,11 @@ function na(i, t, e = {}) {
2892
2892
  for (const s in t)
2893
2893
  !e[s] && t[s] !== void 0 && (i[s] = t[s]);
2894
2894
  }
2895
- const mi = new at(null), yi = new at(null), _i = new at(null, 1, 1), Ps = 1, aa = 2, xi = 4;
2895
+ const gi = new at(null), yi = new at(null), _i = new at(null, 1, 1), Ps = 1, aa = 2, xi = 4;
2896
2896
  class O extends Bt {
2897
2897
  constructor(t = {}) {
2898
2898
  var e, s;
2899
- super(), this.uid = et("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.updateTick = -1, this.localTransform = new D(), this.relativeGroupTransform = new D(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new at(this, 0, 0), this._scale = _i, this._pivot = yi, this._skew = mi, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didChangeId = 0, this._didLocalTransformChangeId = -1, na(this, t, {
2899
+ super(), this.uid = et("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.updateTick = -1, this.localTransform = new D(), this.relativeGroupTransform = new D(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new at(this, 0, 0), this._scale = _i, this._pivot = yi, this._skew = gi, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didChangeId = 0, this._didLocalTransformChangeId = -1, na(this, t, {
2900
2900
  children: !0,
2901
2901
  parent: !0,
2902
2902
  effects: !0
@@ -3046,10 +3046,10 @@ class O extends Bt {
3046
3046
  * @since 4.0.0
3047
3047
  */
3048
3048
  get skew() {
3049
- return this._skew === mi && (this._skew = new at(this, 0, 0)), this._skew;
3049
+ return this._skew === gi && (this._skew = new at(this, 0, 0)), this._skew;
3050
3050
  }
3051
3051
  set skew(t) {
3052
- this._skew === mi && (this._skew = new at(this, 0, 0)), this._skew.copyFrom(t);
3052
+ this._skew === gi && (this._skew = new at(this, 0, 0)), this._skew.copyFrom(t);
3053
3053
  }
3054
3054
  /**
3055
3055
  * The scale factors of this object along the local coordinate axes.
@@ -3251,7 +3251,7 @@ O.mixin(Qn);
3251
3251
  O.mixin(Kn);
3252
3252
  O.mixin(Zn);
3253
3253
  O.mixin(ea);
3254
- O.mixin(Yn);
3254
+ O.mixin(jn);
3255
3255
  class xt extends O {
3256
3256
  /**
3257
3257
  * @param options - The options for creating the sprite.
@@ -3423,7 +3423,7 @@ function wr(i, t, e) {
3423
3423
  const s = ae.get();
3424
3424
  i.measurable = !0;
3425
3425
  const r = Et.get().identity(), n = vr(i, e, r);
3426
- mr(i, s, n), i.measurable = !1, t.addBoundsMask(s), Et.return(r), ae.return(s);
3426
+ gr(i, s, n), i.measurable = !1, t.addBoundsMask(s), Et.return(r), ae.return(s);
3427
3427
  }
3428
3428
  function vr(i, t, e) {
3429
3429
  return i ? (i !== t && (vr(i.parent, t, e), i.updateLocalTransform(), e.append(i.localTransform)), e) : (it("Mask bounds, renderable is not inside the root container"), e);
@@ -4173,11 +4173,11 @@ function da(i, t = !1) {
4173
4173
  L.from = da;
4174
4174
  ft.add(Ar, Sr, Cr, qe, Fe, Mr, qi);
4175
4175
  var Zt = /* @__PURE__ */ ((i) => (i[i.Low = 0] = "Low", i[i.Normal = 1] = "Normal", i[i.High = 2] = "High", i))(Zt || {});
4176
- function gt(i) {
4176
+ function mt(i) {
4177
4177
  if (typeof i != "string")
4178
4178
  throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`);
4179
4179
  }
4180
- function ge(i) {
4180
+ function me(i) {
4181
4181
  return i.split("?")[0].split("#")[0];
4182
4182
  }
4183
4183
  function fa(i) {
@@ -4186,7 +4186,7 @@ function fa(i) {
4186
4186
  function pa(i, t, e) {
4187
4187
  return i.replace(new RegExp(fa(t), "g"), e);
4188
4188
  }
4189
- function ga(i, t) {
4189
+ function ma(i, t) {
4190
4190
  let e = "", s = 0, r = -1, n = 0, a = -1;
4191
4191
  for (let o = 0; o <= i.length; ++o) {
4192
4192
  if (o < i.length)
@@ -4261,7 +4261,7 @@ const bt = {
4261
4261
  * @param path - The path to get the protocol from
4262
4262
  */
4263
4263
  getProtocol(i) {
4264
- gt(i), i = this.toPosix(i);
4264
+ mt(i), i = this.toPosix(i);
4265
4265
  const t = /^file:\/\/\//.exec(i);
4266
4266
  if (t)
4267
4267
  return t[0];
@@ -4278,9 +4278,9 @@ const bt = {
4278
4278
  * @param customRootUrl - The root URL to use
4279
4279
  */
4280
4280
  toAbsolute(i, t, e) {
4281
- if (gt(i), this.isDataUrl(i) || this.isBlobUrl(i))
4281
+ if (mt(i), this.isDataUrl(i) || this.isBlobUrl(i))
4282
4282
  return i;
4283
- const s = ge(this.toPosix(t ?? N.get().getBaseUrl())), r = ge(this.toPosix(e ?? this.rootname(s)));
4283
+ const s = me(this.toPosix(t ?? N.get().getBaseUrl())), r = me(this.toPosix(e ?? this.rootname(s)));
4284
4284
  return i = this.toPosix(i), i.startsWith("/") ? bt.join(r, i.slice(1)) : this.isAbsolute(i) ? i : this.join(s, i);
4285
4285
  },
4286
4286
  /**
@@ -4288,7 +4288,7 @@ const bt = {
4288
4288
  * @param path - The path to normalize
4289
4289
  */
4290
4290
  normalize(i) {
4291
- if (gt(i), i.length === 0)
4291
+ if (mt(i), i.length === 0)
4292
4292
  return ".";
4293
4293
  if (this.isDataUrl(i) || this.isBlobUrl(i))
4294
4294
  return i;
@@ -4297,7 +4297,7 @@ const bt = {
4297
4297
  const e = i.startsWith("/");
4298
4298
  this.hasProtocol(i) && (t = this.rootname(i), i = i.slice(t.length));
4299
4299
  const s = i.endsWith("/");
4300
- return i = ga(i), i.length > 0 && s && (i += "/"), e ? `/${i}` : t + i;
4300
+ return i = ma(i), i.length > 0 && s && (i += "/"), e ? `/${i}` : t + i;
4301
4301
  },
4302
4302
  /**
4303
4303
  * Determines if path is an absolute path.
@@ -4305,7 +4305,7 @@ const bt = {
4305
4305
  * @param path - The path to test
4306
4306
  */
4307
4307
  isAbsolute(i) {
4308
- return gt(i), i = this.toPosix(i), this.hasProtocol(i) ? !0 : i.startsWith("/");
4308
+ return mt(i), i = this.toPosix(i), this.hasProtocol(i) ? !0 : i.startsWith("/");
4309
4309
  },
4310
4310
  /**
4311
4311
  * Joins all given path segments together using the platform-specific separator as a delimiter,
@@ -4318,7 +4318,7 @@ const bt = {
4318
4318
  let t;
4319
4319
  for (let e = 0; e < i.length; ++e) {
4320
4320
  const s = i[e];
4321
- if (gt(s), s.length > 0)
4321
+ if (mt(s), s.length > 0)
4322
4322
  if (t === void 0)
4323
4323
  t = s;
4324
4324
  else {
@@ -4333,7 +4333,7 @@ const bt = {
4333
4333
  * @param path - The path to parse
4334
4334
  */
4335
4335
  dirname(i) {
4336
- if (gt(i), i.length === 0)
4336
+ if (mt(i), i.length === 0)
4337
4337
  return ".";
4338
4338
  i = this.toPosix(i);
4339
4339
  let t = i.charCodeAt(0);
@@ -4356,7 +4356,7 @@ const bt = {
4356
4356
  * @param path - The path to parse
4357
4357
  */
4358
4358
  rootname(i) {
4359
- gt(i), i = this.toPosix(i);
4359
+ mt(i), i = this.toPosix(i);
4360
4360
  let t = "";
4361
4361
  if (i.startsWith("/") ? t = "/" : t = this.getProtocol(i), this.isUrl(i)) {
4362
4362
  const e = i.indexOf("/", t.length);
@@ -4370,7 +4370,7 @@ const bt = {
4370
4370
  * @param ext - Optional extension to remove
4371
4371
  */
4372
4372
  basename(i, t) {
4373
- gt(i), t && gt(t), i = ge(this.toPosix(i));
4373
+ mt(i), t && mt(t), i = me(this.toPosix(i));
4374
4374
  let e = 0, s = -1, r = !0, n;
4375
4375
  if (t !== void 0 && t.length > 0 && t.length <= i.length) {
4376
4376
  if (t.length === i.length && t === i)
@@ -4405,7 +4405,7 @@ const bt = {
4405
4405
  * @param path - The path to parse
4406
4406
  */
4407
4407
  extname(i) {
4408
- gt(i), i = ge(this.toPosix(i));
4408
+ mt(i), i = me(this.toPosix(i));
4409
4409
  let t = -1, e = 0, s = -1, r = !0, n = 0;
4410
4410
  for (let a = i.length - 1; a >= 0; --a) {
4411
4411
  const o = i.charCodeAt(a);
@@ -4425,11 +4425,11 @@ const bt = {
4425
4425
  * @param path - The path to parse
4426
4426
  */
4427
4427
  parse(i) {
4428
- gt(i);
4428
+ mt(i);
4429
4429
  const t = { root: "", dir: "", base: "", ext: "", name: "" };
4430
4430
  if (i.length === 0)
4431
4431
  return t;
4432
- i = ge(this.toPosix(i));
4432
+ i = me(this.toPosix(i));
4433
4433
  let e = i.charCodeAt(0);
4434
4434
  const s = this.isAbsolute(i);
4435
4435
  let r;
@@ -4458,7 +4458,7 @@ function Ir(i, t, e, s, r) {
4458
4458
  e < t.length - 1 ? Ir(i.replace(s[e], o), t, e + 1, s, r) : r.push(i.replace(s[e], o));
4459
4459
  }
4460
4460
  }
4461
- function ma(i) {
4461
+ function ga(i) {
4462
4462
  const t = /\{(.*?)\}/g, e = i.match(t), s = [];
4463
4463
  if (e) {
4464
4464
  const r = [];
@@ -4694,34 +4694,34 @@ class he {
4694
4694
  }, yt(e).forEach((n) => {
4695
4695
  const { src: a } = n;
4696
4696
  let { data: o, format: h, loadParser: c } = n;
4697
- const l = yt(a).map((p) => typeof p == "string" ? ma(p) : Array.isArray(p) ? p : [p]), u = this.getAlias(n);
4697
+ const l = yt(a).map((p) => typeof p == "string" ? ga(p) : Array.isArray(p) ? p : [p]), u = this.getAlias(n);
4698
4698
  Array.isArray(u) ? u.forEach(s) : s(u);
4699
4699
  const d = [];
4700
4700
  l.forEach((p) => {
4701
4701
  p.forEach((f) => {
4702
- let m = {};
4702
+ let g = {};
4703
4703
  if (typeof f != "object") {
4704
- m.src = f;
4705
- for (let g = 0; g < this._parsers.length; g++) {
4706
- const y = this._parsers[g];
4704
+ g.src = f;
4705
+ for (let m = 0; m < this._parsers.length; m++) {
4706
+ const y = this._parsers[m];
4707
4707
  if (y.test(f)) {
4708
- m = y.parse(f);
4708
+ g = y.parse(f);
4709
4709
  break;
4710
4710
  }
4711
4711
  }
4712
4712
  } else
4713
- o = f.data ?? o, h = f.format ?? h, c = f.loadParser ?? c, m = {
4714
- ...m,
4713
+ o = f.data ?? o, h = f.format ?? h, c = f.loadParser ?? c, g = {
4714
+ ...g,
4715
4715
  ...f
4716
4716
  };
4717
4717
  if (!u)
4718
- throw new Error(`[Resolver] alias is undefined for this asset: ${m.src}`);
4719
- m = this._buildResolvedAsset(m, {
4718
+ throw new Error(`[Resolver] alias is undefined for this asset: ${g.src}`);
4719
+ g = this._buildResolvedAsset(g, {
4720
4720
  aliases: u,
4721
4721
  data: o,
4722
4722
  format: h,
4723
4723
  loadParser: c
4724
- }), d.push(m);
4724
+ }), d.push(g);
4725
4725
  });
4726
4726
  }), u.forEach((p) => {
4727
4727
  this._assetMap[p] = d;
@@ -5190,16 +5190,16 @@ async function va(i) {
5190
5190
  }
5191
5191
  }
5192
5192
  }
5193
- let me;
5193
+ let ge;
5194
5194
  function Aa() {
5195
- if (typeof me == "boolean")
5196
- return me;
5195
+ if (typeof ge == "boolean")
5196
+ return ge;
5197
5197
  try {
5198
- me = new Function("param1", "param2", "param3", "return param1[param2] === param3;")({ a: "b" }, "a", "b") === !0;
5198
+ ge = new Function("param1", "param2", "param3", "return param1[param2] === param3;")({ a: "b" }, "a", "b") === !0;
5199
5199
  } catch {
5200
- me = !1;
5200
+ ge = !1;
5201
5201
  }
5202
- return me;
5202
+ return ge;
5203
5203
  }
5204
5204
  var Zi = { exports: {} };
5205
5205
  Zi.exports = si;
@@ -5273,18 +5273,18 @@ function Ca(i, t, e, s) {
5273
5273
  var r = i.prev, n = i, a = i.next;
5274
5274
  if (W(r, n, a) >= 0)
5275
5275
  return !1;
5276
- for (var o = r.x, h = n.x, c = a.x, l = r.y, u = n.y, d = a.y, p = o < h ? o < c ? o : c : h < c ? h : c, f = l < u ? l < d ? l : d : u < d ? u : d, m = o > h ? o > c ? o : c : h > c ? h : c, g = l > u ? l > d ? l : d : u > d ? u : d, y = Ui(p, f, t, e, s), _ = Ui(m, g, t, e, s), x = i.prevZ, b = i.nextZ; x && x.z >= y && b && b.z <= _; ) {
5277
- if (x.x >= p && x.x <= m && x.y >= f && x.y <= g && x !== r && x !== a && ee(o, l, h, u, c, d, x.x, x.y) && W(x.prev, x, x.next) >= 0 || (x = x.prevZ, b.x >= p && b.x <= m && b.y >= f && b.y <= g && b !== r && b !== a && ee(o, l, h, u, c, d, b.x, b.y) && W(b.prev, b, b.next) >= 0))
5276
+ for (var o = r.x, h = n.x, c = a.x, l = r.y, u = n.y, d = a.y, p = o < h ? o < c ? o : c : h < c ? h : c, f = l < u ? l < d ? l : d : u < d ? u : d, g = o > h ? o > c ? o : c : h > c ? h : c, m = l > u ? l > d ? l : d : u > d ? u : d, y = Ui(p, f, t, e, s), _ = Ui(g, m, t, e, s), x = i.prevZ, b = i.nextZ; x && x.z >= y && b && b.z <= _; ) {
5277
+ if (x.x >= p && x.x <= g && x.y >= f && x.y <= m && x !== r && x !== a && ee(o, l, h, u, c, d, x.x, x.y) && W(x.prev, x, x.next) >= 0 || (x = x.prevZ, b.x >= p && b.x <= g && b.y >= f && b.y <= m && b !== r && b !== a && ee(o, l, h, u, c, d, b.x, b.y) && W(b.prev, b, b.next) >= 0))
5278
5278
  return !1;
5279
5279
  b = b.nextZ;
5280
5280
  }
5281
5281
  for (; x && x.z >= y; ) {
5282
- if (x.x >= p && x.x <= m && x.y >= f && x.y <= g && x !== r && x !== a && ee(o, l, h, u, c, d, x.x, x.y) && W(x.prev, x, x.next) >= 0)
5282
+ if (x.x >= p && x.x <= g && x.y >= f && x.y <= m && x !== r && x !== a && ee(o, l, h, u, c, d, x.x, x.y) && W(x.prev, x, x.next) >= 0)
5283
5283
  return !1;
5284
5284
  x = x.prevZ;
5285
5285
  }
5286
5286
  for (; b && b.z <= _; ) {
5287
- if (b.x >= p && b.x <= m && b.y >= f && b.y <= g && b !== r && b !== a && ee(o, l, h, u, c, d, b.x, b.y) && W(b.prev, b, b.next) >= 0)
5287
+ if (b.x >= p && b.x <= g && b.y >= f && b.y <= m && b !== r && b !== a && ee(o, l, h, u, c, d, b.x, b.y) && W(b.prev, b, b.next) >= 0)
5288
5288
  return !1;
5289
5289
  b = b.nextZ;
5290
5290
  }
@@ -5774,9 +5774,9 @@ Ur.defaultOptions = {
5774
5774
  */
5775
5775
  roundPixels: !1
5776
5776
  };
5777
- let Gr = Ur, Ve;
5777
+ let Gr = Ur, Ye;
5778
5778
  function Na(i) {
5779
- return Ve !== void 0 || (Ve = (() => {
5779
+ return Ye !== void 0 || (Ye = (() => {
5780
5780
  var e;
5781
5781
  const t = {
5782
5782
  stencil: !0,
@@ -5795,11 +5795,11 @@ function Na(i) {
5795
5795
  } catch {
5796
5796
  return !1;
5797
5797
  }
5798
- })()), Ve;
5798
+ })()), Ye;
5799
5799
  }
5800
- let Ye;
5801
- async function Va(i = {}) {
5802
- return Ye !== void 0 || (Ye = await (async () => {
5800
+ let je;
5801
+ async function Ya(i = {}) {
5802
+ return je !== void 0 || (je = await (async () => {
5803
5803
  if (!N.get().getNavigator().gpu)
5804
5804
  return !1;
5805
5805
  try {
@@ -5807,10 +5807,10 @@ async function Va(i = {}) {
5807
5807
  } catch {
5808
5808
  return !1;
5809
5809
  }
5810
- })()), Ye;
5810
+ })()), je;
5811
5811
  }
5812
5812
  const Rs = ["webgl", "webgpu", "canvas"];
5813
- async function Ya(i) {
5813
+ async function ja(i) {
5814
5814
  let t = [];
5815
5815
  i.preference ? (t.push(i.preference), Rs.forEach((n) => {
5816
5816
  n !== i.preference && t.push(n);
@@ -5822,14 +5822,14 @@ async function Ya(i) {
5822
5822
  let s = {};
5823
5823
  for (let n = 0; n < t.length; n++) {
5824
5824
  const a = t[n];
5825
- if (a === "webgpu" && await Va()) {
5826
- const { WebGPURenderer: o } = await import("./WebGPURenderer-D3yK12c3.js");
5825
+ if (a === "webgpu" && await Ya()) {
5826
+ const { WebGPURenderer: o } = await import("./WebGPURenderer-B713L7ek.js");
5827
5827
  e = o, s = { ...i, ...i.webgpu };
5828
5828
  break;
5829
5829
  } else if (a === "webgl" && Na(
5830
5830
  i.failIfMajorPerformanceCaveat ?? Gr.defaultOptions.failIfMajorPerformanceCaveat
5831
5831
  )) {
5832
- const { WebGLRenderer: o } = await import("./WebGLRenderer-8_UYFwzF.js");
5832
+ const { WebGLRenderer: o } = await import("./WebGLRenderer-DdYX4Qpw.js");
5833
5833
  e = o, s = { ...i, ...i.webgl };
5834
5834
  break;
5835
5835
  } else if (a === "canvas")
@@ -5840,7 +5840,7 @@ async function Ya(i) {
5840
5840
  const r = new e();
5841
5841
  return await r.init(s), r;
5842
5842
  }
5843
- class ja {
5843
+ class Va {
5844
5844
  /**
5845
5845
  * @param loader
5846
5846
  * @param verbose - should the loader log to the console
@@ -6132,10 +6132,10 @@ function fo(i) {
6132
6132
  return n || (a = `"${a.replace(/[\\"]/g, "\\$&")}"`), a;
6133
6133
  }
6134
6134
  const po = /^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;
6135
- function go(i) {
6135
+ function mo(i) {
6136
6136
  return po.test(i) ? i : encodeURI(i);
6137
6137
  }
6138
- const mo = {
6138
+ const go = {
6139
6139
  extension: {
6140
6140
  type: B.LoadParser,
6141
6141
  priority: Zt.Low
@@ -6150,7 +6150,7 @@ const mo = {
6150
6150
  if (e) {
6151
6151
  const a = [], o = ((s = t.data) == null ? void 0 : s.family) ?? fo(i), h = ((n = (r = t.data) == null ? void 0 : r.weights) == null ? void 0 : n.filter((l) => ho.includes(l))) ?? ["normal"], c = t.data ?? {};
6152
6152
  for (let l = 0; l < h.length; l++) {
6153
- const u = h[l], d = new FontFace(o, `url(${go(i)})`, {
6153
+ const u = h[l], d = new FontFace(o, `url(${mo(i)})`, {
6154
6154
  ...c,
6155
6155
  weight: u
6156
6156
  });
@@ -6462,8 +6462,8 @@ function So(i, t, e, s, r, n) {
6462
6462
  u !== 0 && (d = l / u);
6463
6463
  let p, f;
6464
6464
  d < 0 ? (p = e, f = s) : d > 1 ? (p = r, f = n) : (p = e + d * h, f = s + d * c);
6465
- const m = i - p, g = t - f;
6466
- return m * m + g * g;
6465
+ const g = i - p, m = t - f;
6466
+ return g * g + m * m;
6467
6467
  }
6468
6468
  class Ce {
6469
6469
  /**
@@ -6586,7 +6586,7 @@ class Ce {
6586
6586
  return this.points[this.points.length - 1];
6587
6587
  }
6588
6588
  }
6589
- const je = (i, t, e, s, r, n) => {
6589
+ const Ve = (i, t, e, s, r, n) => {
6590
6590
  const a = i - e, o = t - s, h = Math.sqrt(a * a + o * o);
6591
6591
  return h >= r - n && h <= r + n;
6592
6592
  };
@@ -6660,10 +6660,10 @@ class es {
6660
6660
  * @returns Whether the x/y coordinates are within this rectangle
6661
6661
  */
6662
6662
  strokeContains(t, e, s) {
6663
- const { x: r, y: n, width: a, height: o, radius: h } = this, c = s / 2, l = r + h, u = n + h, d = a - h * 2, p = o - h * 2, f = r + a, m = n + o;
6664
- return (t >= r - c && t <= r + c || t >= f - c && t <= f + c) && e >= u && e <= u + p || (e >= n - c && e <= n + c || e >= m - c && e <= m + c) && t >= l && t <= l + d ? !0 : (
6663
+ const { x: r, y: n, width: a, height: o, radius: h } = this, c = s / 2, l = r + h, u = n + h, d = a - h * 2, p = o - h * 2, f = r + a, g = n + o;
6664
+ return (t >= r - c && t <= r + c || t >= f - c && t <= f + c) && e >= u && e <= u + p || (e >= n - c && e <= n + c || e >= g - c && e <= g + c) && t >= l && t <= l + d ? !0 : (
6665
6665
  // Top-left
6666
- t < l && e < u && je(t, e, l, u, h, c) || t > f - h && e < u && je(t, e, f - h, u, h, c) || t > f - h && e > m - h && je(t, e, f - h, m - h, h, c) || t < l && e > m - h && je(t, e, l, m - h, h, c)
6666
+ t < l && e < u && Ve(t, e, l, u, h, c) || t > f - h && e < u && Ve(t, e, f - h, u, h, c) || t > f - h && e > g - h && Ve(t, e, f - h, g - h, h, c) || t < l && e > g - h && Ve(t, e, l, g - h, h, c)
6667
6667
  );
6668
6668
  }
6669
6669
  toString() {
@@ -7007,9 +7007,9 @@ class Os {
7007
7007
  }
7008
7008
  }
7009
7009
  let ye = 0;
7010
- const Vr = class Yr {
7010
+ const Yr = class jr {
7011
7011
  constructor(t = {}) {
7012
- this.uid = et("batcher"), this.dirty = !0, this.batchIndex = 0, this.batches = [], this._vertexSize = 6, this._elements = [], this._batchPool = [], this._batchPoolIndex = 0, this._textureBatchPool = [], this._textureBatchPoolIndex = 0, t = { ...Yr.defaultOptions, ...t };
7012
+ this.uid = et("batcher"), this.dirty = !0, this.batchIndex = 0, this.batches = [], this._vertexSize = 6, this._elements = [], this._batchPool = [], this._batchPoolIndex = 0, this._textureBatchPool = [], this._textureBatchPoolIndex = 0, t = { ...jr.defaultOptions, ...t };
7013
7013
  const { vertexSize: e, indexSize: s } = t;
7014
7014
  this.attributeBuffer = new Fs(e * this._vertexSize * 4), this.indexBuffer = new Uint16Array(s), this._maxTextures = Wr();
7015
7015
  }
@@ -7048,11 +7048,11 @@ const Vr = class Yr {
7048
7048
  let c = this._batchIndexSize, l = this._batchIndexStart, u = "startBatch", d = this._batchPool[this._batchPoolIndex++] || new Os();
7049
7049
  const p = this._maxTextures;
7050
7050
  for (let f = this.elementStart; f < this.elementSize; ++f) {
7051
- const m = e[f];
7051
+ const g = e[f];
7052
7052
  e[f] = null;
7053
- const y = m.texture._source, _ = Ds(m.blendMode, y), x = n !== _;
7053
+ const y = g.texture._source, _ = Ds(g.blendMode, y), x = n !== _;
7054
7054
  if (y._batchTick === ye && !x) {
7055
- m.textureId = y._textureBindLocation, c += m.indexSize, m.packAttributes(a, o, m.location, m.textureId), m.packIndex(h, m.indexStart, m.location / this._vertexSize), m.batch = d;
7055
+ g.textureId = y._textureBindLocation, c += g.indexSize, g.packAttributes(a, o, g.location, g.textureId), g.packIndex(h, g.indexStart, g.location / this._vertexSize), g.batch = d;
7056
7056
  continue;
7057
7057
  }
7058
7058
  y._batchTick = ye, (s.count >= p || x) && (this._finishBatch(
@@ -7063,7 +7063,7 @@ const Vr = class Yr {
7063
7063
  n,
7064
7064
  t,
7065
7065
  u
7066
- ), u = "renderBatch", l = c, n = _, s = this._textureBatchPool[this._textureBatchPoolIndex++] || new Us(), s.clear(), d = this._batchPool[this._batchPoolIndex++] || new Os(), ++ye), m.textureId = y._textureBindLocation = s.count, s.ids[y.uid] = s.count, s.textures[s.count++] = y, m.batch = d, c += m.indexSize, m.packAttributes(a, o, m.location, m.textureId), m.packIndex(h, m.indexStart, m.location / this._vertexSize);
7066
+ ), u = "renderBatch", l = c, n = _, s = this._textureBatchPool[this._textureBatchPoolIndex++] || new Us(), s.clear(), d = this._batchPool[this._batchPoolIndex++] || new Os(), ++ye), g.textureId = y._textureBindLocation = s.count, s.ids[y.uid] = s.count, s.textures[s.count++] = y, g.batch = d, c += g.indexSize, g.packAttributes(a, o, g.location, g.textureId), g.packIndex(h, g.indexStart, g.location / this._vertexSize);
7067
7067
  }
7068
7068
  s.count > 0 && (this._finishBatch(
7069
7069
  d,
@@ -7120,18 +7120,18 @@ const Vr = class Yr {
7120
7120
  this._elements = null, this.indexBuffer = null, this.attributeBuffer.destroy(), this.attributeBuffer = null;
7121
7121
  }
7122
7122
  };
7123
- Vr.defaultOptions = {
7123
+ Yr.defaultOptions = {
7124
7124
  vertexSize: 4,
7125
7125
  indexSize: 6
7126
7126
  };
7127
- let Lo = Vr;
7127
+ let Lo = Yr;
7128
7128
  function Do(i, t, e, s, r, n, a, o = null) {
7129
7129
  let h = 0;
7130
7130
  e *= t, r *= n;
7131
7131
  const c = o.a, l = o.b, u = o.c, d = o.d, p = o.tx, f = o.ty;
7132
7132
  for (; h < a; ) {
7133
- const m = i[e], g = i[e + 1];
7134
- s[r] = c * m + u * g + p, s[r + 1] = l * m + d * g + f, r += n, e += t, h++;
7133
+ const g = i[e], m = i[e + 1];
7134
+ s[r] = c * g + u * m + p, s[r + 1] = l * g + d * m + f, r += n, e += t, h++;
7135
7135
  }
7136
7136
  }
7137
7137
  function Uo(i, t, e, s) {
@@ -7139,7 +7139,7 @@ function Uo(i, t, e, s) {
7139
7139
  for (t *= e; r < s; )
7140
7140
  i[t] = 0, i[t + 1] = 0, t += e, r++;
7141
7141
  }
7142
- function jr(i, t, e, s, r) {
7142
+ function Vr(i, t, e, s, r) {
7143
7143
  const n = t.a, a = t.b, o = t.c, h = t.d, c = t.tx, l = t.ty;
7144
7144
  e = e || 0, s = s || 2, r = r || i.length / s - e;
7145
7145
  let u = e * s;
@@ -7171,10 +7171,10 @@ class Xr {
7171
7171
  packAttributes(t, e, s, r) {
7172
7172
  const n = this.geometryData, a = this.renderable, o = n.vertices, h = n.uvs, c = this.vertexOffset * 2, l = (this.vertexOffset + this.vertexSize) * 2, u = this.color, d = u >> 16 | u & 65280 | (u & 255) << 16;
7173
7173
  if (this.applyTransform) {
7174
- const p = Oo(d, a.groupColor) + (this.alpha * a.groupAlpha * 255 << 24), f = a.groupTransform, m = r << 16 | this.roundPixels & 65535, g = f.a, y = f.b, _ = f.c, x = f.d, b = f.tx, S = f.ty;
7174
+ const p = Oo(d, a.groupColor) + (this.alpha * a.groupAlpha * 255 << 24), f = a.groupTransform, g = r << 16 | this.roundPixels & 65535, m = f.a, y = f.b, _ = f.c, x = f.d, b = f.tx, S = f.ty;
7175
7175
  for (let k = c; k < l; k += 2) {
7176
7176
  const M = o[k], C = o[k + 1];
7177
- t[s] = g * M + _ * C + b, t[s + 1] = y * M + x * C + S, t[s + 2] = h[k], t[s + 3] = h[k + 1], e[s + 4] = p, e[s + 5] = m, s += 6;
7177
+ t[s] = m * M + _ * C + b, t[s + 1] = y * M + x * C + S, t[s + 2] = h[k], t[s + 3] = h[k + 1], e[s + 4] = p, e[s + 5] = g, s += 6;
7178
7178
  }
7179
7179
  } else {
7180
7180
  const p = d + (this.alpha * 255 << 24);
@@ -7213,18 +7213,18 @@ const Si = {
7213
7213
  return t;
7214
7214
  if (h === 0)
7215
7215
  return t[0] = t[6] = e + r, t[1] = t[3] = s + n, t[2] = t[4] = e - r, t[5] = t[7] = s - n, t;
7216
- let l = 0, u = h * 4 + (r ? 2 : 0) + 2, d = u, p = c, f = r + a, m = n, g = e + f, y = e - f, _ = s + m;
7217
- if (t[l++] = g, t[l++] = _, t[--u] = _, t[--u] = y, n) {
7218
- const b = s - m;
7219
- t[d++] = y, t[d++] = b, t[--p] = b, t[--p] = g;
7216
+ let l = 0, u = h * 4 + (r ? 2 : 0) + 2, d = u, p = c, f = r + a, g = n, m = e + f, y = e - f, _ = s + g;
7217
+ if (t[l++] = m, t[l++] = _, t[--u] = _, t[--u] = y, n) {
7218
+ const b = s - g;
7219
+ t[d++] = y, t[d++] = b, t[--p] = b, t[--p] = m;
7220
7220
  }
7221
7221
  for (let b = 1; b < h; b++) {
7222
- const S = Math.PI / 2 * (b / h), k = r + Math.cos(S) * a, M = n + Math.sin(S) * o, C = e + k, v = e - k, A = s + M, Y = s - M;
7223
- t[l++] = C, t[l++] = A, t[--u] = A, t[--u] = v, t[d++] = v, t[d++] = Y, t[--p] = Y, t[--p] = C;
7222
+ const S = Math.PI / 2 * (b / h), k = r + Math.cos(S) * a, M = n + Math.sin(S) * o, C = e + k, v = e - k, A = s + M, j = s - M;
7223
+ t[l++] = C, t[l++] = A, t[--u] = A, t[--u] = v, t[d++] = v, t[d++] = j, t[--p] = j, t[--p] = C;
7224
7224
  }
7225
- f = r, m = n + o, g = e + f, y = e - f, _ = s + m;
7226
- const x = s - m;
7227
- return t[l++] = g, t[l++] = _, t[--p] = x, t[--p] = g, r && (t[l++] = y, t[l++] = _, t[--p] = x, t[--p] = y), t;
7225
+ f = r, g = n + o, m = e + f, y = e - f, _ = s + g;
7226
+ const x = s - g;
7227
+ return t[l++] = m, t[l++] = _, t[--p] = x, t[--p] = m, r && (t[l++] = y, t[l++] = _, t[--p] = x, t[--p] = y), t;
7228
7228
  },
7229
7229
  triangulate(i, t, e, s, r, n) {
7230
7230
  if (i.length === 0)
@@ -7256,33 +7256,33 @@ function zs(i, t, e, s, r, n, a, o) {
7256
7256
  const h = i - e * r, c = t - s * r, l = i + e * n, u = t + s * n;
7257
7257
  let d, p;
7258
7258
  a ? (d = s, p = -e) : (d = -s, p = e);
7259
- const f = h + d, m = c + p, g = l + d, y = u + p;
7260
- return o.push(f, m), o.push(g, y), 2;
7259
+ const f = h + d, g = c + p, m = l + d, y = u + p;
7260
+ return o.push(f, g), o.push(m, y), 2;
7261
7261
  }
7262
7262
  function Nt(i, t, e, s, r, n, a, o) {
7263
7263
  const h = e - i, c = s - t;
7264
7264
  let l = Math.atan2(h, c), u = Math.atan2(r - i, n - t);
7265
7265
  o && l < u ? l += Math.PI * 2 : !o && l > u && (u += Math.PI * 2);
7266
7266
  let d = l;
7267
- const p = u - l, f = Math.abs(p), m = Math.sqrt(h * h + c * c), g = (15 * f * Math.sqrt(m) / Math.PI >> 0) + 1, y = p / g;
7267
+ const p = u - l, f = Math.abs(p), g = Math.sqrt(h * h + c * c), m = (15 * f * Math.sqrt(g) / Math.PI >> 0) + 1, y = p / m;
7268
7268
  if (d += y, o) {
7269
7269
  a.push(i, t), a.push(e, s);
7270
- for (let _ = 1, x = d; _ < g; _++, x += y)
7270
+ for (let _ = 1, x = d; _ < m; _++, x += y)
7271
7271
  a.push(i, t), a.push(
7272
- i + Math.sin(x) * m,
7273
- t + Math.cos(x) * m
7272
+ i + Math.sin(x) * g,
7273
+ t + Math.cos(x) * g
7274
7274
  );
7275
7275
  a.push(i, t), a.push(r, n);
7276
7276
  } else {
7277
7277
  a.push(e, s), a.push(i, t);
7278
- for (let _ = 1, x = d; _ < g; _++, x += y)
7278
+ for (let _ = 1, x = d; _ < m; _++, x += y)
7279
7279
  a.push(
7280
- i + Math.sin(x) * m,
7281
- t + Math.cos(x) * m
7280
+ i + Math.sin(x) * g,
7281
+ t + Math.cos(x) * g
7282
7282
  ), a.push(i, t);
7283
7283
  a.push(r, n), a.push(i, t);
7284
7284
  }
7285
- return g * 2;
7285
+ return m * 2;
7286
7286
  }
7287
7287
  function Ho(i, t, e, s, r, n, a, o, h) {
7288
7288
  const c = Go;
@@ -7294,16 +7294,16 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7294
7294
  let U = zo(i);
7295
7295
  u = (u - 0.5) * U + 0.5;
7296
7296
  }
7297
- const d = new st(i[0], i[1]), p = new st(i[i.length - 2], i[i.length - 1]), f = s, m = Math.abs(d.x - p.x) < c && Math.abs(d.y - p.y) < c;
7297
+ const d = new st(i[0], i[1]), p = new st(i[i.length - 2], i[i.length - 1]), f = s, g = Math.abs(d.x - p.x) < c && Math.abs(d.y - p.y) < c;
7298
7298
  if (f) {
7299
- i = i.slice(), m && (i.pop(), i.pop(), p.set(i[i.length - 2], i[i.length - 1]));
7299
+ i = i.slice(), g && (i.pop(), i.pop(), p.set(i[i.length - 2], i[i.length - 1]));
7300
7300
  const U = (d.x + p.x) * 0.5, Ft = (p.y + d.y) * 0.5;
7301
7301
  i.unshift(U, Ft), i.push(U, Ft);
7302
7302
  }
7303
- const g = r, y = i.length / 2;
7303
+ const m = r, y = i.length / 2;
7304
7304
  let _ = i.length;
7305
- const x = g.length / 2, b = l.width / 2, S = b * b, k = l.miterLimit * l.miterLimit;
7306
- let M = i[0], C = i[1], v = i[2], A = i[3], Y = 0, Mt = 0, R = -(C - A), E = M - v, z = 0, j = 0, pt = Math.sqrt(R * R + E * E);
7305
+ const x = m.length / 2, b = l.width / 2, S = b * b, k = l.miterLimit * l.miterLimit;
7306
+ let M = i[0], C = i[1], v = i[2], A = i[3], j = 0, Mt = 0, R = -(C - A), E = M - v, z = 0, V = 0, pt = Math.sqrt(R * R + E * E);
7307
7307
  R /= pt, E /= pt, R *= b, E *= b;
7308
7308
  const ls = u, I = (1 - ls) * 2, F = ls * 2;
7309
7309
  f || (l.cap === "round" ? _ += Nt(
@@ -7313,23 +7313,23 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7313
7313
  C - E * I,
7314
7314
  M + R * F,
7315
7315
  C + E * F,
7316
- g,
7316
+ m,
7317
7317
  !0
7318
- ) + 2 : l.cap === "square" && (_ += zs(M, C, R, E, I, F, !0, g))), g.push(
7318
+ ) + 2 : l.cap === "square" && (_ += zs(M, C, R, E, I, F, !0, m))), m.push(
7319
7319
  M - R * I,
7320
7320
  C - E * I
7321
- ), g.push(
7321
+ ), m.push(
7322
7322
  M + R * F,
7323
7323
  C + E * F
7324
7324
  );
7325
7325
  for (let U = 1; U < y - 1; ++U) {
7326
- M = i[(U - 1) * 2], C = i[(U - 1) * 2 + 1], v = i[U * 2], A = i[U * 2 + 1], Y = i[(U + 1) * 2], Mt = i[(U + 1) * 2 + 1], R = -(C - A), E = M - v, pt = Math.sqrt(R * R + E * E), R /= pt, E /= pt, R *= b, E *= b, z = -(A - Mt), j = v - Y, pt = Math.sqrt(z * z + j * j), z /= pt, j /= pt, z *= b, j *= b;
7327
- const Ft = v - M, ue = C - A, de = v - Y, fe = Mt - A, cs = Ft * de + ue * fe, Le = ue * de - fe * Ft, pe = Le < 0;
7326
+ M = i[(U - 1) * 2], C = i[(U - 1) * 2 + 1], v = i[U * 2], A = i[U * 2 + 1], j = i[(U + 1) * 2], Mt = i[(U + 1) * 2 + 1], R = -(C - A), E = M - v, pt = Math.sqrt(R * R + E * E), R /= pt, E /= pt, R *= b, E *= b, z = -(A - Mt), V = v - j, pt = Math.sqrt(z * z + V * V), z /= pt, V /= pt, z *= b, V *= b;
7327
+ const Ft = v - M, ue = C - A, de = v - j, fe = Mt - A, cs = Ft * de + ue * fe, Le = ue * de - fe * Ft, pe = Le < 0;
7328
7328
  if (Math.abs(Le) < 1e-3 * Math.abs(cs)) {
7329
- g.push(
7329
+ m.push(
7330
7330
  v - R * I,
7331
7331
  A - E * I
7332
- ), g.push(
7332
+ ), m.push(
7333
7333
  v + R * F,
7334
7334
  A + E * F
7335
7335
  ), cs >= 0 && (l.join === "round" ? _ += Nt(
@@ -7338,45 +7338,45 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7338
7338
  v - R * I,
7339
7339
  A - E * I,
7340
7340
  v - z * I,
7341
- A - j * I,
7342
- g,
7341
+ A - V * I,
7342
+ m,
7343
7343
  !1
7344
- ) + 4 : _ += 2, g.push(
7344
+ ) + 4 : _ += 2, m.push(
7345
7345
  v - z * F,
7346
- A - j * F
7347
- ), g.push(
7346
+ A - V * F
7347
+ ), m.push(
7348
7348
  v + z * I,
7349
- A + j * I
7349
+ A + V * I
7350
7350
  ));
7351
7351
  continue;
7352
7352
  }
7353
- const us = (-R + M) * (-E + A) - (-R + v) * (-E + C), ds = (-z + Y) * (-j + A) - (-z + v) * (-j + Mt), De = (Ft * ds - de * us) / Le, Ue = (fe * us - ue * ds) / Le, li = (De - v) * (De - v) + (Ue - A) * (Ue - A), Gt = v + (De - v) * I, zt = A + (Ue - A) * I, Ht = v - (De - v) * F, Wt = A - (Ue - A) * F, _n = Math.min(Ft * Ft + ue * ue, de * de + fe * fe), fs = pe ? I : F, xn = _n + fs * fs * S;
7354
- li <= xn ? l.join === "bevel" || li / S > k ? (pe ? (g.push(Gt, zt), g.push(v + R * F, A + E * F), g.push(Gt, zt), g.push(v + z * F, A + j * F)) : (g.push(v - R * I, A - E * I), g.push(Ht, Wt), g.push(v - z * I, A - j * I), g.push(Ht, Wt)), _ += 2) : l.join === "round" ? pe ? (g.push(Gt, zt), g.push(v + R * F, A + E * F), _ += Nt(
7353
+ const us = (-R + M) * (-E + A) - (-R + v) * (-E + C), ds = (-z + j) * (-V + A) - (-z + v) * (-V + Mt), De = (Ft * ds - de * us) / Le, Ue = (fe * us - ue * ds) / Le, li = (De - v) * (De - v) + (Ue - A) * (Ue - A), Gt = v + (De - v) * I, zt = A + (Ue - A) * I, Ht = v - (De - v) * F, Wt = A - (Ue - A) * F, _n = Math.min(Ft * Ft + ue * ue, de * de + fe * fe), fs = pe ? I : F, xn = _n + fs * fs * S;
7354
+ li <= xn ? l.join === "bevel" || li / S > k ? (pe ? (m.push(Gt, zt), m.push(v + R * F, A + E * F), m.push(Gt, zt), m.push(v + z * F, A + V * F)) : (m.push(v - R * I, A - E * I), m.push(Ht, Wt), m.push(v - z * I, A - V * I), m.push(Ht, Wt)), _ += 2) : l.join === "round" ? pe ? (m.push(Gt, zt), m.push(v + R * F, A + E * F), _ += Nt(
7355
7355
  v,
7356
7356
  A,
7357
7357
  v + R * F,
7358
7358
  A + E * F,
7359
7359
  v + z * F,
7360
- A + j * F,
7361
- g,
7360
+ A + V * F,
7361
+ m,
7362
7362
  !0
7363
- ) + 4, g.push(Gt, zt), g.push(v + z * F, A + j * F)) : (g.push(v - R * I, A - E * I), g.push(Ht, Wt), _ += Nt(
7363
+ ) + 4, m.push(Gt, zt), m.push(v + z * F, A + V * F)) : (m.push(v - R * I, A - E * I), m.push(Ht, Wt), _ += Nt(
7364
7364
  v,
7365
7365
  A,
7366
7366
  v - R * I,
7367
7367
  A - E * I,
7368
7368
  v - z * I,
7369
- A - j * I,
7370
- g,
7369
+ A - V * I,
7370
+ m,
7371
7371
  !1
7372
- ) + 4, g.push(v - z * I, A - j * I), g.push(Ht, Wt)) : (g.push(Gt, zt), g.push(Ht, Wt)) : (g.push(v - R * I, A - E * I), g.push(v + R * F, A + E * F), l.join === "round" ? pe ? _ += Nt(
7372
+ ) + 4, m.push(v - z * I, A - V * I), m.push(Ht, Wt)) : (m.push(Gt, zt), m.push(Ht, Wt)) : (m.push(v - R * I, A - E * I), m.push(v + R * F, A + E * F), l.join === "round" ? pe ? _ += Nt(
7373
7373
  v,
7374
7374
  A,
7375
7375
  v + R * F,
7376
7376
  A + E * F,
7377
7377
  v + z * F,
7378
- A + j * F,
7379
- g,
7378
+ A + V * F,
7379
+ m,
7380
7380
  !0
7381
7381
  ) + 2 : _ += Nt(
7382
7382
  v,
@@ -7384,24 +7384,24 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7384
7384
  v - R * I,
7385
7385
  A - E * I,
7386
7386
  v - z * I,
7387
- A - j * I,
7388
- g,
7387
+ A - V * I,
7388
+ m,
7389
7389
  !1
7390
- ) + 2 : l.join === "miter" && li / S <= k && (pe ? (g.push(Ht, Wt), g.push(Ht, Wt)) : (g.push(Gt, zt), g.push(Gt, zt)), _ += 2), g.push(v - z * I, A - j * I), g.push(v + z * F, A + j * F), _ += 2);
7390
+ ) + 2 : l.join === "miter" && li / S <= k && (pe ? (m.push(Ht, Wt), m.push(Ht, Wt)) : (m.push(Gt, zt), m.push(Gt, zt)), _ += 2), m.push(v - z * I, A - V * I), m.push(v + z * F, A + V * F), _ += 2);
7391
7391
  }
7392
- M = i[(y - 2) * 2], C = i[(y - 2) * 2 + 1], v = i[(y - 1) * 2], A = i[(y - 1) * 2 + 1], R = -(C - A), E = M - v, pt = Math.sqrt(R * R + E * E), R /= pt, E /= pt, R *= b, E *= b, g.push(v - R * I, A - E * I), g.push(v + R * F, A + E * F), f || (l.cap === "round" ? _ += Nt(
7392
+ M = i[(y - 2) * 2], C = i[(y - 2) * 2 + 1], v = i[(y - 1) * 2], A = i[(y - 1) * 2 + 1], R = -(C - A), E = M - v, pt = Math.sqrt(R * R + E * E), R /= pt, E /= pt, R *= b, E *= b, m.push(v - R * I, A - E * I), m.push(v + R * F, A + E * F), f || (l.cap === "round" ? _ += Nt(
7393
7393
  v - R * (I - F) * 0.5,
7394
7394
  A - E * (I - F) * 0.5,
7395
7395
  v - R * I,
7396
7396
  A - E * I,
7397
7397
  v + R * F,
7398
7398
  A + E * F,
7399
- g,
7399
+ m,
7400
7400
  !1
7401
- ) + 2 : l.cap === "square" && (_ += zs(v, A, R, E, I, F, !1, g)));
7401
+ ) + 2 : l.cap === "square" && (_ += zs(v, A, R, E, I, F, !1, m)));
7402
7402
  const yn = Gs * Gs;
7403
7403
  for (let U = x; U < _ + x - 2; ++U)
7404
- M = g[U * 2], C = g[U * 2 + 1], v = g[(U + 1) * 2], A = g[(U + 1) * 2 + 1], Y = g[(U + 2) * 2], Mt = g[(U + 2) * 2 + 1], !(Math.abs(M * (A - Mt) + v * (Mt - C) + Y * (C - A)) < yn) && o.push(U, U + 1, U + 2);
7404
+ M = m[U * 2], C = m[U * 2 + 1], v = m[(U + 1) * 2], A = m[(U + 1) * 2 + 1], j = m[(U + 2) * 2], Mt = m[(U + 2) * 2 + 1], !(Math.abs(M * (A - Mt) + v * (Mt - C) + j * (C - A)) < yn) && o.push(U, U + 1, U + 2);
7405
7405
  }
7406
7406
  function $r(i, t, e, s, r, n, a) {
7407
7407
  const o = za(i, t, 2);
@@ -7422,7 +7422,7 @@ const Wo = [], No = {
7422
7422
  triangulate(i, t, e, s, r, n) {
7423
7423
  $r(i, Wo, t, e, s, r, n);
7424
7424
  }
7425
- }, Vo = {
7425
+ }, Yo = {
7426
7426
  build(i, t) {
7427
7427
  const e = i, s = e.x, r = e.y, n = e.width, a = e.height;
7428
7428
  return n >= 0 && a >= 0 && (t[0] = s, t[1] = r, t[2] = s + n, t[3] = r, t[4] = s + n, t[5] = r + a, t[6] = s, t[7] = r + a), t;
@@ -7433,7 +7433,7 @@ const Wo = [], No = {
7433
7433
  const o = s / e;
7434
7434
  r[n++] = o, r[n++] = o + 1, r[n++] = o + 2, r[n++] = o + 1, r[n++] = o + 3, r[n++] = o + 2;
7435
7435
  }
7436
- }, Yo = {
7436
+ }, jo = {
7437
7437
  build(i, t) {
7438
7438
  return t[0] = i.x, t[1] = i.y, t[2] = i.x2, t[3] = i.y2, t[4] = i.x3, t[5] = i.y3, t;
7439
7439
  },
@@ -7444,13 +7444,13 @@ const Wo = [], No = {
7444
7444
  r[n++] = o, r[n++] = o + 1, r[n++] = o + 2;
7445
7445
  }
7446
7446
  }, is = {
7447
- rectangle: Vo,
7447
+ rectangle: Yo,
7448
7448
  polygon: No,
7449
- triangle: Yo,
7449
+ triangle: jo,
7450
7450
  circle: Si,
7451
7451
  ellipse: Si,
7452
7452
  roundedRectangle: Si
7453
- }, jo = new tt();
7453
+ }, Vo = new tt();
7454
7454
  function Xo(i, t) {
7455
7455
  const { geometryData: e, batches: s } = t;
7456
7456
  s.length = 0, e.indices.length = 0, e.vertices.length = 0, e.uvs.length = 0;
@@ -7465,10 +7465,10 @@ function Xo(i, t) {
7465
7465
  }
7466
7466
  }
7467
7467
  function $o(i, t, e) {
7468
- const { vertices: s, uvs: r, indices: n } = e, a = n.length, o = s.length / 2, h = [], c = is.rectangle, l = jo, u = i.image;
7468
+ const { vertices: s, uvs: r, indices: n } = e, a = n.length, o = s.length / 2, h = [], c = is.rectangle, l = Vo, u = i.image;
7469
7469
  l.x = i.dx, l.y = i.dy, l.width = i.dw, l.height = i.dh;
7470
7470
  const d = i.transform;
7471
- c.build(l, h), d && jr(h, d), c.triangulate(h, s, 2, o, n, a);
7471
+ c.build(l, h), d && Vr(h, d), c.triangulate(h, s, 2, o, n, a);
7472
7472
  const p = u.uvs;
7473
7473
  r.push(
7474
7474
  p.x0,
@@ -7486,18 +7486,18 @@ function $o(i, t, e) {
7486
7486
  function Hs(i, t, e, s, r, n) {
7487
7487
  const { vertices: a, uvs: o, indices: h } = n, c = i.shapePrimitives.length - 1;
7488
7488
  i.shapePrimitives.forEach(({ shape: l, transform: u }, d) => {
7489
- const p = h.length, f = a.length / 2, m = [], g = is[l.type];
7490
- if (g.build(l, m), u && jr(m, u), s) {
7489
+ const p = h.length, f = a.length / 2, g = [], m = is[l.type];
7490
+ if (m.build(l, g), u && Vr(g, u), s) {
7491
7491
  const b = l.closePath ?? !0;
7492
- Ho(m, t, !1, b, a, 2, f, h);
7492
+ Ho(g, t, !1, b, a, 2, f, h);
7493
7493
  } else if (e && c === d) {
7494
7494
  c !== 0 && console.warn("[Pixi Graphics] only the last shape have be cut out");
7495
- const b = [], S = m.slice();
7495
+ const b = [], S = g.slice();
7496
7496
  qo(e.shapePath).forEach((M) => {
7497
7497
  b.push(S.length / 2), S.push(...M);
7498
7498
  }), $r(S, b, a, 2, f, h, p);
7499
7499
  } else
7500
- g.triangulate(m, a, 2, f, h, p);
7500
+ m.triangulate(g, a, 2, f, h, p);
7501
7501
  const y = o.length / 2, _ = t.texture;
7502
7502
  if (_ !== L.WHITE) {
7503
7503
  const b = t.matrix;
@@ -7640,7 +7640,7 @@ function th(i, t, e, s, r, n, a, o, h, c) {
7640
7640
  function Hi(i, t, e, s, r, n, a, o, h, c, l) {
7641
7641
  if (l > Jo)
7642
7642
  return;
7643
- const u = (i + e) / 2, d = (t + s) / 2, p = (e + r) / 2, f = (s + n) / 2, m = (r + a) / 2, g = (n + o) / 2, y = (u + p) / 2, _ = (d + f) / 2, x = (p + m) / 2, b = (f + g) / 2, S = (y + x) / 2, k = (_ + b) / 2;
7643
+ const u = (i + e) / 2, d = (t + s) / 2, p = (e + r) / 2, f = (s + n) / 2, g = (r + a) / 2, m = (n + o) / 2, y = (u + p) / 2, _ = (d + f) / 2, x = (p + g) / 2, b = (f + m) / 2, S = (y + x) / 2, k = (_ + b) / 2;
7644
7644
  if (l > 0) {
7645
7645
  let M = a - i, C = o - t;
7646
7646
  const v = Math.abs((e - a) * C - (s - o) * M), A = Math.abs((r - a) * C - (n - o) * M);
@@ -7664,7 +7664,7 @@ function Hi(i, t, e, s, r, n, a, o, h, c, l) {
7664
7664
  return;
7665
7665
  }
7666
7666
  }
7667
- Hi(i, t, u, d, y, _, S, k, h, c, l + 1), Hi(S, k, x, b, m, g, a, o, h, c, l + 1);
7667
+ Hi(i, t, u, d, y, _, S, k, h, c, l + 1), Hi(S, k, x, b, g, m, a, o, h, c, l + 1);
7668
7668
  }
7669
7669
  const eh = 8, ih = 11920929e-14, sh = 1;
7670
7670
  function rh(i, t, e, s, r, n, a, o) {
@@ -7683,14 +7683,14 @@ function Wi(i, t, e, s, r, n, a, o, h) {
7683
7683
  if (h > eh)
7684
7684
  return;
7685
7685
  const c = (t + s) / 2, l = (e + r) / 2, u = (s + n) / 2, d = (r + a) / 2, p = (c + u) / 2, f = (l + d) / 2;
7686
- let m = n - t, g = a - e;
7687
- const y = Math.abs((s - n) * g - (r - a) * m);
7686
+ let g = n - t, m = a - e;
7687
+ const y = Math.abs((s - n) * m - (r - a) * g);
7688
7688
  if (y > ih) {
7689
- if (y * y <= o * (m * m + g * g)) {
7689
+ if (y * y <= o * (g * g + m * m)) {
7690
7690
  i.push(p, f);
7691
7691
  return;
7692
7692
  }
7693
- } else if (m = p - (t + n) / 2, g = f - (e + a) / 2, m * m + g * g <= o) {
7693
+ } else if (g = p - (t + n) / 2, m = f - (e + a) / 2, g * g + m * m <= o) {
7694
7694
  i.push(p, f);
7695
7695
  return;
7696
7696
  }
@@ -7702,8 +7702,8 @@ function Zr(i, t, e, s, r, n, a, o) {
7702
7702
  let c = h / o, l = r;
7703
7703
  c *= a ? -1 : 1;
7704
7704
  for (let u = 0; u < o + 1; u++) {
7705
- const d = Math.cos(l), p = Math.sin(l), f = t + d * s, m = e + p * s;
7706
- i.push(f, m), l += c;
7705
+ const d = Math.cos(l), p = Math.sin(l), f = t + d * s, g = e + p * s;
7706
+ i.push(f, g), l += c;
7707
7707
  }
7708
7708
  }
7709
7709
  function ah(i, t, e, s, r, n) {
@@ -7712,14 +7712,14 @@ function ah(i, t, e, s, r, n) {
7712
7712
  (i[i.length - 2] !== t || i[i.length - 1] !== e) && i.push(t, e);
7713
7713
  return;
7714
7714
  }
7715
- const p = h * h + c * c, f = l * l + u * u, m = h * l + c * u, g = n * Math.sqrt(p) / d, y = n * Math.sqrt(f) / d, _ = g * m / p, x = y * m / f, b = g * u + y * c, S = g * l + y * h, k = c * (y + _), M = h * (y + _), C = u * (g + x), v = l * (g + x), A = Math.atan2(M - S, k - b), Y = Math.atan2(v - S, C - b);
7715
+ const p = h * h + c * c, f = l * l + u * u, g = h * l + c * u, m = n * Math.sqrt(p) / d, y = n * Math.sqrt(f) / d, _ = m * g / p, x = y * g / f, b = m * u + y * c, S = m * l + y * h, k = c * (y + _), M = h * (y + _), C = u * (m + x), v = l * (m + x), A = Math.atan2(M - S, k - b), j = Math.atan2(v - S, C - b);
7716
7716
  Zr(
7717
7717
  i,
7718
7718
  b + t,
7719
7719
  S + e,
7720
7720
  n,
7721
7721
  A,
7722
- Y,
7722
+ j,
7723
7723
  c * l > u * h
7724
7724
  );
7725
7725
  }
@@ -7755,12 +7755,12 @@ const Ws = (i, t, e, s) => {
7755
7755
  let n = i * e + t * s;
7756
7756
  return n > 1 && (n = 1), n < -1 && (n = -1), r * Math.acos(n);
7757
7757
  }, hh = (i, t, e, s, r, n, a, o, h, c, l, u, d) => {
7758
- const p = Math.pow(r, 2), f = Math.pow(n, 2), m = Math.pow(l, 2), g = Math.pow(u, 2);
7759
- let y = p * f - p * g - f * m;
7760
- y < 0 && (y = 0), y /= p * g + f * m, y = Math.sqrt(y) * (a === o ? -1 : 1);
7758
+ const p = Math.pow(r, 2), f = Math.pow(n, 2), g = Math.pow(l, 2), m = Math.pow(u, 2);
7759
+ let y = p * f - p * m - f * g;
7760
+ y < 0 && (y = 0), y /= p * m + f * g, y = Math.sqrt(y) * (a === o ? -1 : 1);
7761
7761
  const _ = y * r / n * u, x = y * -n / r * l, b = c * _ - h * x + (i + e) / 2, S = h * _ + c * x + (t + s) / 2, k = (l - _) / r, M = (u - x) / n, C = (-l - _) / r, v = (-u - x) / n, A = Ws(1, 0, k, M);
7762
- let Y = Ws(k, M, C, v);
7763
- o === 0 && Y > 0 && (Y -= Me), o === 1 && Y < 0 && (Y += Me), d.centerX = b, d.centerY = S, d.ang1 = A, d.ang2 = Y;
7762
+ let j = Ws(k, M, C, v);
7763
+ o === 0 && j > 0 && (j -= Me), o === 1 && j < 0 && (j += Me), d.centerX = b, d.centerY = S, d.ang1 = A, d.ang2 = j;
7764
7764
  };
7765
7765
  function lh(i, t, e, s, r, n, a, o = 0, h = 0, c = 0) {
7766
7766
  if (n === 0 || a === 0)
@@ -7785,27 +7785,27 @@ function lh(i, t, e, s, r, n, a, o = 0, h = 0, c = 0) {
7785
7785
  p,
7786
7786
  Ci
7787
7787
  );
7788
- let { ang1: m, ang2: g } = Ci;
7788
+ let { ang1: g, ang2: m } = Ci;
7789
7789
  const { centerX: y, centerY: _ } = Ci;
7790
- let x = Math.abs(g) / (Me / 4);
7790
+ let x = Math.abs(m) / (Me / 4);
7791
7791
  Math.abs(1 - x) < 1e-7 && (x = 1);
7792
7792
  const b = Math.max(Math.ceil(x), 1);
7793
- g /= b;
7793
+ m /= b;
7794
7794
  let S = i[i.length - 2], k = i[i.length - 1];
7795
7795
  const M = { x: 0, y: 0 };
7796
7796
  for (let C = 0; C < b; C++) {
7797
- const v = oh(m, g), { x: A, y: Y } = Mi(v[0], n, a, u, l, y, _, M), { x: Mt, y: R } = Mi(v[1], n, a, u, l, y, _, M), { x: E, y: z } = Mi(v[2], n, a, u, l, y, _, M);
7797
+ const v = oh(g, m), { x: A, y: j } = Mi(v[0], n, a, u, l, y, _, M), { x: Mt, y: R } = Mi(v[1], n, a, u, l, y, _, M), { x: E, y: z } = Mi(v[2], n, a, u, l, y, _, M);
7798
7798
  Kr(
7799
7799
  i,
7800
7800
  S,
7801
7801
  k,
7802
7802
  A,
7803
- Y,
7803
+ j,
7804
7804
  Mt,
7805
7805
  R,
7806
7806
  E,
7807
7807
  z
7808
- ), S = E, k = z, m += g;
7808
+ ), S = E, k = z, g += m;
7809
7809
  }
7810
7810
  }
7811
7811
  function ch(i, t, e) {
@@ -7829,16 +7829,16 @@ function ch(i, t, e) {
7829
7829
  }
7830
7830
  let d = Math.asin(l.nx * u.ny - l.ny * u.nx), p = 1, f = !1;
7831
7831
  l.nx * u.nx - l.ny * -u.ny < 0 ? d < 0 ? d = Math.PI + d : (d = Math.PI - d, p = -1, f = !0) : d > 0 && (p = -1, f = !0);
7832
- const m = d / 2;
7833
- let g, y = Math.abs(
7834
- Math.cos(m) * h / Math.sin(m)
7832
+ const g = d / 2;
7833
+ let m, y = Math.abs(
7834
+ Math.cos(g) * h / Math.sin(g)
7835
7835
  );
7836
- y > Math.min(l.len / 2, u.len / 2) ? (y = Math.min(l.len / 2, u.len / 2), g = Math.abs(y * Math.sin(m) / Math.cos(m))) : g = h;
7837
- const _ = o.x + u.nx * y + -u.ny * g * p, x = o.y + u.ny * y + u.nx * g * p, b = Math.atan2(l.ny, l.nx) + Math.PI / 2 * p, S = Math.atan2(u.ny, u.nx) - Math.PI / 2 * p;
7836
+ y > Math.min(l.len / 2, u.len / 2) ? (y = Math.min(l.len / 2, u.len / 2), m = Math.abs(y * Math.sin(g) / Math.cos(g))) : m = h;
7837
+ const _ = o.x + u.nx * y + -u.ny * m * p, x = o.y + u.ny * y + u.nx * m * p, b = Math.atan2(l.ny, l.nx) + Math.PI / 2 * p, S = Math.atan2(u.ny, u.nx) - Math.PI / 2 * p;
7838
7838
  a === 0 && i.moveTo(
7839
- _ + Math.cos(b) * g,
7840
- x + Math.sin(b) * g
7841
- ), i.arc(_, x, g, b, S, f), n = o;
7839
+ _ + Math.cos(b) * m,
7840
+ x + Math.sin(b) * m
7841
+ ), i.arc(_, x, m, b, S, f), n = o;
7842
7842
  }
7843
7843
  }
7844
7844
  function uh(i, t, e, s) {
@@ -7857,26 +7857,26 @@ function uh(i, t, e, s) {
7857
7857
  if (d < 1e-4)
7858
7858
  p = h;
7859
7859
  else {
7860
- const g = Math.min(d / 2, c);
7860
+ const m = Math.min(d / 2, c);
7861
7861
  p = n(
7862
7862
  h,
7863
7863
  l,
7864
- g / d
7864
+ m / d
7865
7865
  );
7866
7866
  }
7867
7867
  const f = r(u, h);
7868
- let m;
7868
+ let g;
7869
7869
  if (f < 1e-4)
7870
- m = h;
7870
+ g = h;
7871
7871
  else {
7872
- const g = Math.min(f / 2, c);
7873
- m = n(
7872
+ const m = Math.min(f / 2, c);
7873
+ g = n(
7874
7874
  h,
7875
7875
  u,
7876
- g / f
7876
+ m / f
7877
7877
  );
7878
7878
  }
7879
- o === 0 ? i.moveTo(p.x, p.y) : i.lineTo(p.x, p.y), i.quadraticCurveTo(h.x, h.y, m.x, m.y, s);
7879
+ o === 0 ? i.moveTo(p.x, p.y) : i.lineTo(p.x, p.y), i.quadraticCurveTo(h.x, h.y, g.x, g.y, s);
7880
7880
  }
7881
7881
  }
7882
7882
  const dh = new tt();
@@ -8120,8 +8120,8 @@ class fh {
8120
8120
  n = Math.min(n, h);
8121
8121
  const c = -1 * Math.PI / 2 + a, l = Math.PI * 2 / r, u = (r - 2) * Math.PI / r / 2;
8122
8122
  for (let d = 0; d < r; d++) {
8123
- const p = d * l + c, f = t + s * Math.cos(p), m = e + s * Math.sin(p), g = p + Math.PI + u, y = p - Math.PI - u, _ = f + n * Math.cos(g), x = m + n * Math.sin(g), b = f + n * Math.cos(y), S = m + n * Math.sin(y);
8124
- d === 0 ? this.moveTo(_, x) : this.lineTo(_, x), this.quadraticCurveTo(f, m, b, S, o);
8123
+ const p = d * l + c, f = t + s * Math.cos(p), g = e + s * Math.sin(p), m = p + Math.PI + u, y = p - Math.PI - u, _ = f + n * Math.cos(m), x = g + n * Math.sin(m), b = f + n * Math.cos(y), S = g + n * Math.sin(y);
8124
+ d === 0 ? this.moveTo(_, x) : this.lineTo(_, x), this.quadraticCurveTo(f, g, b, S, o);
8125
8125
  }
8126
8126
  return this.closePath();
8127
8127
  }
@@ -8502,9 +8502,9 @@ class oe {
8502
8502
  if (t.isIdentity())
8503
8503
  return this;
8504
8504
  const e = t.a, s = t.b, r = t.c, n = t.d, a = t.tx, o = t.ty;
8505
- let h = 0, c = 0, l = 0, u = 0, d = 0, p = 0, f = 0, m = 0;
8506
- for (let g = 0; g < this.instructions.length; g++) {
8507
- const y = this.instructions[g], _ = y.data;
8505
+ let h = 0, c = 0, l = 0, u = 0, d = 0, p = 0, f = 0, g = 0;
8506
+ for (let m = 0; m < this.instructions.length; m++) {
8507
+ const y = this.instructions[m], _ = y.data;
8508
8508
  switch (y.action) {
8509
8509
  case "moveTo":
8510
8510
  case "lineTo":
@@ -8517,7 +8517,7 @@ class oe {
8517
8517
  l = _[0], u = _[1], h = _[2], c = _[3], _[0] = e * l + r * u + a, _[1] = s * l + n * u + o, _[2] = e * h + r * c + a, _[3] = s * h + n * c + o;
8518
8518
  break;
8519
8519
  case "arcToSvg":
8520
- h = _[5], c = _[6], f = _[0], m = _[1], _[0] = e * f + r * m, _[1] = s * f + n * m, _[5] = e * h + r * c + a, _[6] = s * h + n * c + o;
8520
+ h = _[5], c = _[6], f = _[0], g = _[1], _[0] = e * f + r * g, _[1] = s * f + n * g, _[5] = e * h + r * c + a, _[6] = s * h + n * c + o;
8521
8521
  break;
8522
8522
  case "circle":
8523
8523
  _[4] = _e(_[3], t);
@@ -8607,21 +8607,21 @@ function ph(i, t) {
8607
8607
  return Jr(i, e, null, null), t;
8608
8608
  }
8609
8609
  function Jr(i, t, e, s) {
8610
- const r = i.children, { fillStyle: n, strokeStyle: a } = gh(i);
8610
+ const r = i.children, { fillStyle: n, strokeStyle: a } = mh(i);
8611
8611
  n && e ? e = { ...e, ...n } : n && (e = n), a && s ? s = { ...s, ...a } : a && (s = a), t.context.fillStyle = e, t.context.strokeStyle = s;
8612
- let o, h, c, l, u, d, p, f, m, g, y, _, x, b, S, k, M;
8612
+ let o, h, c, l, u, d, p, f, g, m, y, _, x, b, S, k, M;
8613
8613
  switch (i.nodeName.toLowerCase()) {
8614
8614
  case "path":
8615
8615
  b = i.getAttribute("d"), S = new oe(b), t.context.path(S), e && t.context.fill(), s && t.context.stroke();
8616
8616
  break;
8617
8617
  case "circle":
8618
- p = q(i, "cx", 0), f = q(i, "cy", 0), m = q(i, "r", 0), t.context.ellipse(p, f, m, m), e && t.context.fill(), s && t.context.stroke();
8618
+ p = q(i, "cx", 0), f = q(i, "cy", 0), g = q(i, "r", 0), t.context.ellipse(p, f, g, g), e && t.context.fill(), s && t.context.stroke();
8619
8619
  break;
8620
8620
  case "rect":
8621
- o = q(i, "x", 0), h = q(i, "y", 0), k = q(i, "width", 0), M = q(i, "height", 0), g = q(i, "rx", 0), y = q(i, "ry", 0), g || y ? t.context.roundRect(o, h, k, M, g || y) : t.context.rect(o, h, k, M), e && t.context.fill(), s && t.context.stroke();
8621
+ o = q(i, "x", 0), h = q(i, "y", 0), k = q(i, "width", 0), M = q(i, "height", 0), m = q(i, "rx", 0), y = q(i, "ry", 0), m || y ? t.context.roundRect(o, h, k, M, m || y) : t.context.rect(o, h, k, M), e && t.context.fill(), s && t.context.stroke();
8622
8622
  break;
8623
8623
  case "ellipse":
8624
- p = q(i, "cx", 0), f = q(i, "cy", 0), g = q(i, "rx", 0), y = q(i, "ry", 0), t.context.beginPath(), t.context.ellipse(p, f, g, y), e && t.context.fill(), s && t.context.stroke();
8624
+ p = q(i, "cx", 0), f = q(i, "cy", 0), m = q(i, "rx", 0), y = q(i, "ry", 0), t.context.beginPath(), t.context.ellipse(p, f, m, y), e && t.context.fill(), s && t.context.stroke();
8625
8625
  break;
8626
8626
  case "line":
8627
8627
  c = q(i, "x1", 0), l = q(i, "y1", 0), u = q(i, "x2", 0), d = q(i, "y2", 0), t.context.beginPath(), t.context.moveTo(c, l), t.context.lineTo(u, d), s && t.context.stroke();
@@ -8647,7 +8647,7 @@ function q(i, t, e) {
8647
8647
  const s = i.getAttribute(t);
8648
8648
  return s ? Number(s) : e;
8649
8649
  }
8650
- function gh(i) {
8650
+ function mh(i) {
8651
8651
  const t = i.getAttribute("style"), e = {}, s = {};
8652
8652
  let r = !1, n = !1;
8653
8653
  if (t) {
@@ -8698,9 +8698,9 @@ const Qr = class Ni {
8698
8698
  const t = Ni.defaultTextureSize, { gradientStops: e } = this, s = N.get().createCanvas();
8699
8699
  s.width = t, s.height = t;
8700
8700
  const r = s.getContext("2d"), n = r.createLinearGradient(0, 0, Ni.defaultTextureSize, 1);
8701
- for (let m = 0; m < e.length; m++) {
8702
- const g = e[m];
8703
- n.addColorStop(g.offset, g.color);
8701
+ for (let g = 0; g < e.length; g++) {
8702
+ const m = e[g];
8703
+ n.addColorStop(m.offset, m.color);
8704
8704
  }
8705
8705
  r.fillStyle = n, r.fillRect(0, 0, t, t), this.texture = new L({
8706
8706
  source: new Fe({
@@ -8733,7 +8733,7 @@ const Ns = {
8733
8733
  addressModeV: "clamp-to-edge"
8734
8734
  }
8735
8735
  };
8736
- class mh {
8736
+ class gh {
8737
8737
  constructor(t, e) {
8738
8738
  this.uid = et("fillPattern"), this.transform = new D(), this.texture = t, this.transform.scale(
8739
8739
  1 / t.frame.width,
@@ -8761,7 +8761,7 @@ function Lt(i, t) {
8761
8761
  alpha: o.alpha === 1 ? e.alpha : o.alpha,
8762
8762
  texture: L.WHITE
8763
8763
  };
8764
- } else if (s instanceof mh) {
8764
+ } else if (s instanceof gh) {
8765
8765
  const o = s;
8766
8766
  return {
8767
8767
  ...e,
@@ -8794,7 +8794,7 @@ function Lt(i, t) {
8794
8794
  const n = J.shared.setValue(r.color);
8795
8795
  return r.alpha *= n.alpha, r.color = n.toNumber(), r.matrix = r.matrix ? r.matrix.clone() : null, r;
8796
8796
  }
8797
- const yh = new st(), Vs = new D(), rs = class At extends Bt {
8797
+ const yh = new st(), Ys = new D(), rs = class At extends Bt {
8798
8798
  constructor() {
8799
8799
  super(...arguments), this.uid = et("graphicsContext"), this.dirty = !0, this.batchMode = "auto", this.instructions = [], this._activePath = new oe(), this._transform = new D(), this._fillStyle = { ...At.defaultFillStyle }, this._strokeStyle = { ...At.defaultStrokeStyle }, this._stateStack = [], this._tick = 0, this._bounds = new St(), this._boundsDirty = !0;
8800
8800
  }
@@ -9280,7 +9280,7 @@ const yh = new st(), Vs = new D(), rs = class At extends Bt {
9280
9280
  return t instanceof D ? (this._transform.set(t.a, t.b, t.c, t.d, t.tx, t.ty), this) : (this._transform.set(t, e, s, r, n, a), this);
9281
9281
  }
9282
9282
  transform(t, e, s, r, n, a) {
9283
- return t instanceof D ? (this._transform.append(t), this) : (Vs.set(t, e, s, r, n, a), this._transform.append(Vs), this);
9283
+ return t instanceof D ? (this._transform.append(t), this) : (Ys.set(t, e, s, r, n, a), this._transform.append(Ys), this);
9284
9284
  }
9285
9285
  /**
9286
9286
  * Applies a translation transformation to the graphics context, moving the origin by the specified amounts.
@@ -9351,12 +9351,12 @@ const yh = new st(), Vs = new D(), rs = class At extends Bt {
9351
9351
  continue;
9352
9352
  const p = l[u].transform, f = p ? p.applyInverse(t, yh) : t;
9353
9353
  a.action === "fill" ? s = d.contains(f.x, f.y) : s = d.strokeContains(f.x, f.y, c.width);
9354
- const m = o.hole;
9355
- if (m) {
9356
- const g = (r = m.shapePath) == null ? void 0 : r.shapePrimitives;
9357
- if (g)
9358
- for (let y = 0; y < g.length; y++)
9359
- g[y].shape.contains(f.x, f.y) && (s = !1);
9354
+ const g = o.hole;
9355
+ if (g) {
9356
+ const m = (r = g.shapePath) == null ? void 0 : r.shapePrimitives;
9357
+ if (m)
9358
+ for (let y = 0; y < m.length; y++)
9359
+ m[y].shape.contains(f.x, f.y) && (s = !1);
9360
9360
  }
9361
9361
  if (s)
9362
9362
  return !0;
@@ -9454,18 +9454,18 @@ const _h = ".svg", xh = "image/svg+xml", bh = {
9454
9454
  }
9455
9455
  };
9456
9456
  async function wh(i, t, e, s) {
9457
- var g, y, _;
9457
+ var m, y, _;
9458
9458
  const n = await (await N.get().fetch(i)).blob(), a = URL.createObjectURL(n), o = new Image();
9459
9459
  o.src = a, o.crossOrigin = s, await o.decode(), URL.revokeObjectURL(a);
9460
- const h = document.createElement("canvas"), c = h.getContext("2d"), l = ((g = t.data) == null ? void 0 : g.resolution) || ns(i), u = ((y = t.data) == null ? void 0 : y.width) ?? o.width, d = ((_ = t.data) == null ? void 0 : _.height) ?? o.height;
9460
+ const h = document.createElement("canvas"), c = h.getContext("2d"), l = ((m = t.data) == null ? void 0 : m.resolution) || ns(i), u = ((y = t.data) == null ? void 0 : y.width) ?? o.width, d = ((_ = t.data) == null ? void 0 : _.height) ?? o.height;
9461
9461
  h.width = u * l, h.height = d * l, c.drawImage(o, 0, 0, u * l, d * l);
9462
- const { parseAsGraphicsContext: p, ...f } = t.data, m = new Fe({
9462
+ const { parseAsGraphicsContext: p, ...f } = t.data, g = new Fe({
9463
9463
  resource: h,
9464
9464
  alphaMode: "premultiply-alpha-on-upload",
9465
9465
  resolution: l,
9466
9466
  ...f
9467
9467
  });
9468
- return as(m, e, i);
9468
+ return as(g, e, i);
9469
9469
  }
9470
9470
  async function vh(i) {
9471
9471
  const e = await (await N.get().fetch(i)).text(), s = new Dt();
@@ -9493,12 +9493,12 @@ const Ah = `(function () {
9493
9493
 
9494
9494
  })();
9495
9495
  `;
9496
- let se = null, Vi = class {
9496
+ let se = null, Yi = class {
9497
9497
  constructor() {
9498
9498
  se || (se = URL.createObjectURL(new Blob([Ah], { type: "application/javascript" }))), this.worker = new Worker(se);
9499
9499
  }
9500
9500
  };
9501
- Vi.revokeObjectURL = function() {
9501
+ Yi.revokeObjectURL = function() {
9502
9502
  se && (URL.revokeObjectURL(se), se = null);
9503
9503
  };
9504
9504
  const Sh = `(function () {
@@ -9541,16 +9541,16 @@ class en {
9541
9541
  en.revokeObjectURL = function() {
9542
9542
  re && (URL.revokeObjectURL(re), re = null);
9543
9543
  };
9544
- let Ys = 0, Ti;
9544
+ let js = 0, Ti;
9545
9545
  class Ch {
9546
9546
  constructor() {
9547
9547
  this._initialized = !1, this._createdWorkers = 0, this._workerPool = [], this._queue = [], this._resolveHash = {};
9548
9548
  }
9549
9549
  isImageBitmapSupported() {
9550
9550
  return this._isImageBitmapSupported !== void 0 ? this._isImageBitmapSupported : (this._isImageBitmapSupported = new Promise((t) => {
9551
- const { worker: e } = new Vi();
9551
+ const { worker: e } = new Yi();
9552
9552
  e.addEventListener("message", (s) => {
9553
- e.terminate(), Vi.revokeObjectURL(), t(s.data);
9553
+ e.terminate(), Yi.revokeObjectURL(), t(s.data);
9554
9554
  });
9555
9555
  }), this._isImageBitmapSupported);
9556
9556
  }
@@ -9587,14 +9587,14 @@ class Ch {
9587
9587
  if (!t)
9588
9588
  return;
9589
9589
  const e = this._queue.pop(), s = e.id;
9590
- this._resolveHash[Ys] = { resolve: e.resolve, reject: e.reject }, t.postMessage({
9590
+ this._resolveHash[js] = { resolve: e.resolve, reject: e.reject }, t.postMessage({
9591
9591
  data: e.arguments,
9592
- uuid: Ys++,
9592
+ uuid: js++,
9593
9593
  id: s
9594
9594
  });
9595
9595
  }
9596
9596
  }
9597
- const js = new Ch(), Mh = [".jpeg", ".jpg", ".png", ".webp", ".avif"], Th = [
9597
+ const Vs = new Ch(), Mh = [".jpeg", ".jpg", ".png", ".webp", ".avif"], Th = [
9598
9598
  "image/jpeg",
9599
9599
  "image/png",
9600
9600
  "image/webp",
@@ -9624,7 +9624,7 @@ const sn = {
9624
9624
  async load(i, t, e) {
9625
9625
  var n;
9626
9626
  let s = null;
9627
- globalThis.createImageBitmap && this.config.preferCreateImageBitmap ? this.config.preferWorkers && await js.isImageBitmapSupported() ? s = await js.loadImageBitmap(i) : s = await Ph(i) : s = await new Promise((a) => {
9627
+ globalThis.createImageBitmap && this.config.preferCreateImageBitmap ? this.config.preferWorkers && await Vs.isImageBitmapSupported() ? s = await Vs.loadImageBitmap(i) : s = await Ph(i) : s = await new Promise((a) => {
9628
9628
  s = new Image(), s.crossOrigin = this.config.crossOrigin, s.src = i, s.complete ? a(s) : s.onload = () => {
9629
9629
  a(s);
9630
9630
  };
@@ -9731,7 +9731,7 @@ const Bh = {
9731
9731
  };
9732
9732
  class Lh {
9733
9733
  constructor() {
9734
- this._detections = [], this._initialized = !1, this.resolver = new he(), this.loader = new eo(), this.cache = nt, this._backgroundLoader = new ja(this.loader), this._backgroundLoader.active = !0, this.reset();
9734
+ this._detections = [], this._initialized = !1, this.resolver = new he(), this.loader = new eo(), this.cache = nt, this._backgroundLoader = new Va(this.loader), this._backgroundLoader.active = !0, this.reset();
9735
9735
  }
9736
9736
  /**
9737
9737
  * Best practice is to call this function before any loading commences
@@ -10099,7 +10099,7 @@ ft.add(
10099
10099
  Qa,
10100
10100
  ro,
10101
10101
  oo,
10102
- mo,
10102
+ go,
10103
10103
  bh,
10104
10104
  sn,
10105
10105
  Bh,
@@ -10844,16 +10844,16 @@ const Pi = {
10844
10844
  const p = ((_ = e._stroke) == null ? void 0 : _.width) || 0;
10845
10845
  let f = d + p;
10846
10846
  e.dropShadow && (f += e.dropShadow.distance);
10847
- const m = e.lineHeight || o.fontSize + p;
10848
- let g = Math.max(m, o.fontSize + p * 2) + (l.length - 1) * (m + e.leading);
10849
- return e.dropShadow && (g += e.dropShadow.distance), new T(
10847
+ const g = e.lineHeight || o.fontSize + p;
10848
+ let m = Math.max(g, o.fontSize + p * 2) + (l.length - 1) * (g + e.leading);
10849
+ return e.dropShadow && (m += e.dropShadow.distance), new T(
10850
10850
  t,
10851
10851
  e,
10852
10852
  f,
10853
- g,
10853
+ m,
10854
10854
  l,
10855
10855
  u,
10856
- m + e.leading,
10856
+ g + e.leading,
10857
10857
  d,
10858
10858
  o
10859
10859
  );
@@ -10877,9 +10877,9 @@ const Pi = {
10877
10877
  let n = 0, a = "", o = "";
10878
10878
  const h = /* @__PURE__ */ Object.create(null), { letterSpacing: c, whiteSpace: l } = e, u = T._collapseSpaces(l), d = T._collapseNewlines(l);
10879
10879
  let p = !u;
10880
- const f = e.wordWrapWidth + c, m = T._tokenize(t);
10881
- for (let g = 0; g < m.length; g++) {
10882
- let y = m[g];
10880
+ const f = e.wordWrapWidth + c, g = T._tokenize(t);
10881
+ for (let m = 0; m < g.length; m++) {
10882
+ let y = g[m];
10883
10883
  if (T._isNewline(y)) {
10884
10884
  if (!d) {
10885
10885
  o += T._addLine(a), p = !u, a = "", n = 0;
@@ -10912,7 +10912,7 @@ const Pi = {
10912
10912
  }
10913
10913
  } else {
10914
10914
  a.length > 0 && (o += T._addLine(a), a = "", n = 0);
10915
- const x = g === m.length - 1;
10915
+ const x = m === g.length - 1;
10916
10916
  o += T._addLine(y, !x), p = !1, a = "", n = 0;
10917
10917
  }
10918
10918
  else
@@ -11588,7 +11588,7 @@ class Nh {
11588
11588
  this.timers = e;
11589
11589
  }
11590
11590
  }
11591
- const Yi = new Nh(), Vh = (i) => i.name == "jump", Yh = (i) => i.name == "color", jh = (i) => i.name == "grow", Xh = (i) => i.name == "dash", $h = (i) => i.name == "sprite", qh = (i) => i.name == "add_jump_hits", Kh = (i) => i.name == "resurrect";
11591
+ const ji = new Nh(), Yh = (i) => i.name == "jump", jh = (i) => i.name == "color", Vh = (i) => i.name == "grow", Xh = (i) => i.name == "dash", $h = (i) => i.name == "sprite", qh = (i) => i.name == "add_jump_hits", Kh = (i) => i.name == "resurrect";
11592
11592
  function ti(i) {
11593
11593
  "@babel/helpers - typeof";
11594
11594
  return ti = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -11697,7 +11697,7 @@ P.prototype = {
11697
11697
  return this._a == 1 ? "rgb(" + Math.round(G(this._r, 255) * 100) + "%, " + Math.round(G(this._g, 255) * 100) + "%, " + Math.round(G(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(G(this._r, 255) * 100) + "%, " + Math.round(G(this._g, 255) * 100) + "%, " + Math.round(G(this._b, 255) * 100) + "%, " + this._roundA + ")";
11698
11698
  },
11699
11699
  toName: function() {
11700
- return this._a === 0 ? "transparent" : this._a < 1 ? !1 : gl[Zs(this._r, this._g, this._b, !0)] || !1;
11700
+ return this._a === 0 ? "transparent" : this._a < 1 ? !1 : ml[Zs(this._r, this._g, this._b, !0)] || !1;
11701
11701
  },
11702
11702
  toFilter: function(t) {
11703
11703
  var e = "#" + Js(this._r, this._g, this._b, this._a), s = e, r = this._gradientType ? "GradientType = 1, " : "";
@@ -12014,7 +12014,7 @@ P.mostReadable = function(i, t, e) {
12014
12014
  size: h
12015
12015
  }) || !a ? s : (e.includeFallbackColors = !1, P.mostReadable(i, ["#fff", "#000"], e));
12016
12016
  };
12017
- var ji = P.names = {
12017
+ var Vi = P.names = {
12018
12018
  aliceblue: "f0f8ff",
12019
12019
  antiquewhite: "faebd7",
12020
12020
  aqua: "0ff",
@@ -12164,8 +12164,8 @@ var ji = P.names = {
12164
12164
  whitesmoke: "f5f5f5",
12165
12165
  yellow: "ff0",
12166
12166
  yellowgreen: "9acd32"
12167
- }, gl = P.hexNames = ml(ji);
12168
- function ml(i) {
12167
+ }, ml = P.hexNames = gl(Vi);
12168
+ function gl(i) {
12169
12169
  var t = {};
12170
12170
  for (var e in i)
12171
12171
  i.hasOwnProperty(e) && (t[i[e]] = e);
@@ -12203,7 +12203,7 @@ function cn(i) {
12203
12203
  function tr(i) {
12204
12204
  return ct(i) / 255;
12205
12205
  }
12206
- var mt = function() {
12206
+ var gt = function() {
12207
12207
  var i = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", e = "(?:" + t + ")|(?:" + i + ")", s = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?", r = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?";
12208
12208
  return {
12209
12209
  CSS_UNIT: new RegExp(e),
@@ -12220,13 +12220,13 @@ var mt = function() {
12220
12220
  };
12221
12221
  }();
12222
12222
  function Pt(i) {
12223
- return !!mt.CSS_UNIT.exec(i);
12223
+ return !!gt.CSS_UNIT.exec(i);
12224
12224
  }
12225
12225
  function xl(i) {
12226
12226
  i = i.replace(Zh, "").replace(Jh, "").toLowerCase();
12227
12227
  var t = !1;
12228
- if (ji[i])
12229
- i = ji[i], t = !0;
12228
+ if (Vi[i])
12229
+ i = Vi[i], t = !0;
12230
12230
  else if (i == "transparent")
12231
12231
  return {
12232
12232
  r: 0,
@@ -12236,51 +12236,51 @@ function xl(i) {
12236
12236
  format: "name"
12237
12237
  };
12238
12238
  var e;
12239
- return (e = mt.rgb.exec(i)) ? {
12239
+ return (e = gt.rgb.exec(i)) ? {
12240
12240
  r: e[1],
12241
12241
  g: e[2],
12242
12242
  b: e[3]
12243
- } : (e = mt.rgba.exec(i)) ? {
12243
+ } : (e = gt.rgba.exec(i)) ? {
12244
12244
  r: e[1],
12245
12245
  g: e[2],
12246
12246
  b: e[3],
12247
12247
  a: e[4]
12248
- } : (e = mt.hsl.exec(i)) ? {
12248
+ } : (e = gt.hsl.exec(i)) ? {
12249
12249
  h: e[1],
12250
12250
  s: e[2],
12251
12251
  l: e[3]
12252
- } : (e = mt.hsla.exec(i)) ? {
12252
+ } : (e = gt.hsla.exec(i)) ? {
12253
12253
  h: e[1],
12254
12254
  s: e[2],
12255
12255
  l: e[3],
12256
12256
  a: e[4]
12257
- } : (e = mt.hsv.exec(i)) ? {
12257
+ } : (e = gt.hsv.exec(i)) ? {
12258
12258
  h: e[1],
12259
12259
  s: e[2],
12260
12260
  v: e[3]
12261
- } : (e = mt.hsva.exec(i)) ? {
12261
+ } : (e = gt.hsva.exec(i)) ? {
12262
12262
  h: e[1],
12263
12263
  s: e[2],
12264
12264
  v: e[3],
12265
12265
  a: e[4]
12266
- } : (e = mt.hex8.exec(i)) ? {
12266
+ } : (e = gt.hex8.exec(i)) ? {
12267
12267
  r: ct(e[1]),
12268
12268
  g: ct(e[2]),
12269
12269
  b: ct(e[3]),
12270
12270
  a: tr(e[4]),
12271
12271
  format: t ? "name" : "hex8"
12272
- } : (e = mt.hex6.exec(i)) ? {
12272
+ } : (e = gt.hex6.exec(i)) ? {
12273
12273
  r: ct(e[1]),
12274
12274
  g: ct(e[2]),
12275
12275
  b: ct(e[3]),
12276
12276
  format: t ? "name" : "hex"
12277
- } : (e = mt.hex4.exec(i)) ? {
12277
+ } : (e = gt.hex4.exec(i)) ? {
12278
12278
  r: ct(e[1] + "" + e[1]),
12279
12279
  g: ct(e[2] + "" + e[2]),
12280
12280
  b: ct(e[3] + "" + e[3]),
12281
12281
  a: tr(e[4] + "" + e[4]),
12282
12282
  format: t ? "name" : "hex8"
12283
- } : (e = mt.hex3.exec(i)) ? {
12283
+ } : (e = gt.hex3.exec(i)) ? {
12284
12284
  r: ct(e[1] + "" + e[1]),
12285
12285
  g: ct(e[2] + "" + e[2]),
12286
12286
  b: ct(e[3] + "" + e[3]),
@@ -12571,20 +12571,20 @@ var Te = Object.freeze({
12571
12571
  if (u.length === 0)
12572
12572
  continue;
12573
12573
  for (var d = [o], p = 0, f = u.length; p < f; p += 1) {
12574
- var m = this._handleRelativeValue(o, u[p]);
12575
- if (isNaN(m)) {
12574
+ var g = this._handleRelativeValue(o, u[p]);
12575
+ if (isNaN(g)) {
12576
12576
  l = !1, console.warn("Found invalid interpolation list. Skipping.");
12577
12577
  break;
12578
12578
  }
12579
- d.push(m);
12579
+ d.push(g);
12580
12580
  }
12581
12581
  l && (s[a] = d);
12582
12582
  }
12583
12583
  if ((c === "object" || h) && o && !l) {
12584
12584
  e[a] = h ? [] : {};
12585
- var g = o;
12586
- for (var y in g)
12587
- e[a][y] = g[y];
12585
+ var m = o;
12586
+ for (var y in m)
12587
+ e[a][y] = m[y];
12588
12588
  r[a] = h ? [] : {};
12589
12589
  var u = s[a];
12590
12590
  if (!this._isDynamic) {
@@ -12593,7 +12593,7 @@ var Te = Object.freeze({
12593
12593
  _[y] = u[y];
12594
12594
  s[a] = u = _;
12595
12595
  }
12596
- this._setupProperties(g, e[a], u, r[a], n);
12596
+ this._setupProperties(m, e[a], u, r[a], n);
12597
12597
  } else
12598
12598
  (typeof e[a] > "u" || n) && (e[a] = o), h || (e[a] *= 1), l ? r[a] = s[a].slice().reverse() : r[a] = e[a] || 0;
12599
12599
  }
@@ -12809,43 +12809,43 @@ var Tl = function(t, e) {
12809
12809
  };
12810
12810
  };
12811
12811
  Rt.loop = Tl;
12812
- var V = {};
12813
- Object.defineProperty(V, "__esModule", {
12812
+ var Y = {};
12813
+ Object.defineProperty(Y, "__esModule", {
12814
12814
  value: !0
12815
12815
  });
12816
- V.readBits = V.readArray = V.readUnsigned = V.readString = V.peekBytes = V.readBytes = V.peekByte = V.readByte = V.buildStream = void 0;
12816
+ Y.readBits = Y.readArray = Y.readUnsigned = Y.readString = Y.peekBytes = Y.readBytes = Y.peekByte = Y.readByte = Y.buildStream = void 0;
12817
12817
  var Pl = function(t) {
12818
12818
  return {
12819
12819
  data: t,
12820
12820
  pos: 0
12821
12821
  };
12822
12822
  };
12823
- V.buildStream = Pl;
12823
+ Y.buildStream = Pl;
12824
12824
  var fn = function() {
12825
12825
  return function(t) {
12826
12826
  return t.data[t.pos++];
12827
12827
  };
12828
12828
  };
12829
- V.readByte = fn;
12829
+ Y.readByte = fn;
12830
12830
  var kl = function() {
12831
12831
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
12832
12832
  return function(e) {
12833
12833
  return e.data[e.pos + t];
12834
12834
  };
12835
12835
  };
12836
- V.peekByte = kl;
12836
+ Y.peekByte = kl;
12837
12837
  var ai = function(t) {
12838
12838
  return function(e) {
12839
12839
  return e.data.subarray(e.pos, e.pos += t);
12840
12840
  };
12841
12841
  };
12842
- V.readBytes = ai;
12842
+ Y.readBytes = ai;
12843
12843
  var Il = function(t) {
12844
12844
  return function(e) {
12845
12845
  return e.data.subarray(e.pos, e.pos + t);
12846
12846
  };
12847
12847
  };
12848
- V.peekBytes = Il;
12848
+ Y.peekBytes = Il;
12849
12849
  var El = function(t) {
12850
12850
  return function(e) {
12851
12851
  return Array.from(ai(t)(e)).map(function(s) {
@@ -12853,14 +12853,14 @@ var El = function(t) {
12853
12853
  }).join("");
12854
12854
  };
12855
12855
  };
12856
- V.readString = El;
12856
+ Y.readString = El;
12857
12857
  var Rl = function(t) {
12858
12858
  return function(e) {
12859
12859
  var s = ai(2)(e);
12860
12860
  return t ? (s[1] << 8) + s[0] : (s[0] << 8) + s[1];
12861
12861
  };
12862
12862
  };
12863
- V.readUnsigned = Rl;
12863
+ Y.readUnsigned = Rl;
12864
12864
  var Bl = function(t, e) {
12865
12865
  return function(s, r, n) {
12866
12866
  for (var a = typeof e == "function" ? e(s, r, n) : e, o = ai(t), h = new Array(a), c = 0; c < a; c++)
@@ -12868,7 +12868,7 @@ var Bl = function(t, e) {
12868
12868
  return h;
12869
12869
  };
12870
12870
  };
12871
- V.readArray = Bl;
12871
+ Y.readArray = Bl;
12872
12872
  var Fl = function(t, e, s) {
12873
12873
  for (var r = 0, n = 0; n < s; n++)
12874
12874
  r += t[e + n] && Math.pow(2, s - n - 1);
@@ -12883,22 +12883,22 @@ var Fl = function(t, e, s) {
12883
12883
  }, {});
12884
12884
  };
12885
12885
  };
12886
- V.readBits = Ll;
12886
+ Y.readBits = Ll;
12887
12887
  (function(i) {
12888
12888
  Object.defineProperty(i, "__esModule", {
12889
12889
  value: !0
12890
12890
  }), i.default = void 0;
12891
- var t = Rt, e = V, s = {
12891
+ var t = Rt, e = Y, s = {
12892
12892
  blocks: function(d) {
12893
- for (var p = 0, f = [], m = d.data.length, g = 0, y = (0, e.readByte)()(d); y !== p && y; y = (0, e.readByte)()(d)) {
12894
- if (d.pos + y >= m) {
12895
- var _ = m - d.pos;
12896
- f.push((0, e.readBytes)(_)(d)), g += _;
12893
+ for (var p = 0, f = [], g = d.data.length, m = 0, y = (0, e.readByte)()(d); y !== p && y; y = (0, e.readByte)()(d)) {
12894
+ if (d.pos + y >= g) {
12895
+ var _ = g - d.pos;
12896
+ f.push((0, e.readBytes)(_)(d)), m += _;
12897
12897
  break;
12898
12898
  }
12899
- f.push((0, e.readBytes)(y)(d)), g += y;
12899
+ f.push((0, e.readBytes)(y)(d)), m += y;
12900
12900
  }
12901
- for (var x = new Uint8Array(g), b = 0, S = 0; S < f.length; S++)
12901
+ for (var x = new Uint8Array(m), b = 0, S = 0; S < f.length; S++)
12902
12902
  x.set(f[S], b), b += f[S].length;
12903
12903
  return x;
12904
12904
  }
@@ -13087,11 +13087,11 @@ Object.defineProperty(hi, "__esModule", {
13087
13087
  });
13088
13088
  hi.lzw = void 0;
13089
13089
  var Ul = function(t, e, s) {
13090
- var r = 4096, n = -1, a = s, o, h, c, l, u, d, p, k, f, m, S, g, M, C, A, v, y = new Array(s), _ = new Array(r), x = new Array(r), b = new Array(r + 1);
13091
- for (g = t, h = 1 << g, u = h + 1, o = h + 2, p = n, l = g + 1, c = (1 << l) - 1, f = 0; f < h; f++)
13090
+ var r = 4096, n = -1, a = s, o, h, c, l, u, d, p, k, f, g, S, m, M, C, A, v, y = new Array(s), _ = new Array(r), x = new Array(r), b = new Array(r + 1);
13091
+ for (m = t, h = 1 << m, u = h + 1, o = h + 2, p = n, l = m + 1, c = (1 << l) - 1, f = 0; f < h; f++)
13092
13092
  _[f] = 0, x[f] = f;
13093
13093
  var S, k, M, C, v, A;
13094
- for (S = k = M = C = v = A = 0, m = 0; m < a; ) {
13094
+ for (S = k = M = C = v = A = 0, g = 0; g < a; ) {
13095
13095
  if (C === 0) {
13096
13096
  if (k < l) {
13097
13097
  S += e[A] << k, k += 8, A++;
@@ -13100,7 +13100,7 @@ var Ul = function(t, e, s) {
13100
13100
  if (f = S & c, S >>= l, k -= l, f > o || f == u)
13101
13101
  break;
13102
13102
  if (f == h) {
13103
- l = g + 1, c = (1 << l) - 1, o = h + 2, p = n;
13103
+ l = m + 1, c = (1 << l) - 1, o = h + 2, p = n;
13104
13104
  continue;
13105
13105
  }
13106
13106
  if (p == n) {
@@ -13111,30 +13111,30 @@ var Ul = function(t, e, s) {
13111
13111
  b[C++] = x[f], f = _[f];
13112
13112
  M = x[f] & 255, b[C++] = M, o < r && (_[o] = p, x[o] = M, o++, !(o & c) && o < r && (l++, c += o)), p = d;
13113
13113
  }
13114
- C--, y[v++] = b[C], m++;
13114
+ C--, y[v++] = b[C], g++;
13115
13115
  }
13116
- for (m = v; m < a; m++)
13117
- y[m] = 0;
13116
+ for (g = v; g < a; g++)
13117
+ y[g] = 0;
13118
13118
  return y;
13119
13119
  };
13120
13120
  hi.lzw = Ul;
13121
13121
  Object.defineProperty(qt, "__esModule", {
13122
13122
  value: !0
13123
13123
  });
13124
- var pn = qt.decompressFrames = qt.decompressFrame = gn = qt.parseGIF = void 0, Ol = Nl(dn), Gl = Rt, zl = V, Hl = oi, Wl = hi;
13124
+ var pn = qt.decompressFrames = qt.decompressFrame = mn = qt.parseGIF = void 0, Ol = Nl(dn), Gl = Rt, zl = Y, Hl = oi, Wl = hi;
13125
13125
  function Nl(i) {
13126
13126
  return i && i.__esModule ? i : { default: i };
13127
13127
  }
13128
- var Vl = function(t) {
13128
+ var Yl = function(t) {
13129
13129
  var e = new Uint8Array(t);
13130
13130
  return (0, Gl.parse)((0, zl.buildStream)(e), Ol.default);
13131
- }, gn = qt.parseGIF = Vl, Yl = function(t) {
13131
+ }, mn = qt.parseGIF = Yl, jl = function(t) {
13132
13132
  for (var e = t.pixels.length, s = new Uint8ClampedArray(e * 4), r = 0; r < e; r++) {
13133
13133
  var n = r * 4, a = t.pixels[r], o = t.colorTable[a] || [0, 0, 0];
13134
13134
  s[n] = o[0], s[n + 1] = o[1], s[n + 2] = o[2], s[n + 3] = a !== t.transparentIndex ? 255 : 0;
13135
13135
  }
13136
13136
  return s;
13137
- }, mn = function(t, e, s) {
13137
+ }, gn = function(t, e, s) {
13138
13138
  if (!t.image) {
13139
13139
  console.warn("gif frame does not have associated image.");
13140
13140
  return;
@@ -13150,17 +13150,17 @@ var Vl = function(t) {
13150
13150
  height: t.image.descriptor.height
13151
13151
  }
13152
13152
  };
13153
- return r.descriptor.lct && r.descriptor.lct.exists ? o.colorTable = r.lct : o.colorTable = e, t.gce && (o.delay = (t.gce.delay || 10) * 10, o.disposalType = t.gce.extras.disposal, t.gce.extras.transparentColorGiven && (o.transparentIndex = t.gce.transparentColorIndex)), s && (o.patch = Yl(o)), o;
13153
+ return r.descriptor.lct && r.descriptor.lct.exists ? o.colorTable = r.lct : o.colorTable = e, t.gce && (o.delay = (t.gce.delay || 10) * 10, o.disposalType = t.gce.extras.disposal, t.gce.extras.transparentColorGiven && (o.transparentIndex = t.gce.transparentColorIndex)), s && (o.patch = jl(o)), o;
13154
13154
  };
13155
- qt.decompressFrame = mn;
13156
- var jl = function(t, e) {
13155
+ qt.decompressFrame = gn;
13156
+ var Vl = function(t, e) {
13157
13157
  return t.frames.filter(function(s) {
13158
13158
  return s.image;
13159
13159
  }).map(function(s) {
13160
- return mn(s, t.gct, e);
13160
+ return gn(s, t.gct, e);
13161
13161
  });
13162
13162
  };
13163
- pn = qt.decompressFrames = jl;
13163
+ pn = qt.decompressFrames = Vl;
13164
13164
  const Ae = class extends xt {
13165
13165
  constructor(i, t) {
13166
13166
  super(L.EMPTY), this.animationSpeed = 1, this.loop = !0, this.duration = 0, this.autoPlay = !0, this.dirty = !1, this._currentFrame = 0, this._autoUpdate = !1, this._isConnectedToTicker = !1, this._playing = !1, this._currentTime = 0, this.onRender = () => this.updateFrame();
@@ -13174,24 +13174,24 @@ const Ae = class extends xt {
13174
13174
  static fromBuffer(i, t) {
13175
13175
  if (!i || i.byteLength === 0)
13176
13176
  throw new Error("Invalid buffer");
13177
- const e = (g) => {
13177
+ const e = (m) => {
13178
13178
  let y = null;
13179
- for (const _ of g.frames)
13179
+ for (const _ of m.frames)
13180
13180
  y = _.gce ?? y, "image" in _ && !("gce" in _) && (_.gce = y);
13181
- }, s = gn(i);
13181
+ }, s = mn(i);
13182
13182
  e(s);
13183
13183
  const r = pn(s, !0), n = [], a = N.get().createCanvas(s.lsd.width, s.lsd.height), o = a.getContext("2d", {
13184
13184
  willReadFrequently: !0
13185
13185
  }), h = N.get().createCanvas(), c = h.getContext("2d");
13186
13186
  let l = 0, u = null;
13187
13187
  const { fps: d } = Object.assign({}, Ae.defaultOptions, t), p = 1e3 / d;
13188
- for (let g = 0; g < r.length; g++) {
13188
+ for (let m = 0; m < r.length; m++) {
13189
13189
  const {
13190
13190
  disposalType: y = 2,
13191
13191
  delay: _ = p,
13192
13192
  patch: x,
13193
13193
  dims: { width: b, height: S, left: k, top: M }
13194
- } = r[g];
13194
+ } = r[m];
13195
13195
  h.width = b, h.height = S, c.clearRect(0, 0, b, S);
13196
13196
  const C = c.createImageData(b, S);
13197
13197
  C.data.set(x), c.putImageData(C, 0, 0), y === 3 && (u = o.getImageData(0, 0, a.width, a.height)), o.drawImage(h, k, M);
@@ -13203,8 +13203,8 @@ const Ae = class extends xt {
13203
13203
  }), l += _;
13204
13204
  }
13205
13205
  a.width = a.height = 0, h.width = h.height = 0;
13206
- const { width: f, height: m } = s.lsd;
13207
- return new Ae(n, { width: f, height: m, ...t });
13206
+ const { width: f, height: g } = s.lsd;
13207
+ return new Ae(n, { width: f, height: g, ...t });
13208
13208
  }
13209
13209
  stop() {
13210
13210
  this._playing && (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (ht.shared.remove(this.update, this), this._isConnectedToTicker = !1));
@@ -13744,7 +13744,7 @@ class Qt {
13744
13744
  this.state.zIndex = c, this.container.alpha = 0, this.spawnTween = new $t(this.container).to({ alpha: 1 }, 500).onComplete(t.onComplete).start();
13745
13745
  }
13746
13746
  this.stateTimer = new It(5e3, () => {
13747
- !this.isJumping && !this.isDead && this.setAnimationState(Q.Run);
13747
+ this.isJumping || this.setAnimationState(Q.Run);
13748
13748
  });
13749
13749
  }
13750
13750
  despawn(t = {}) {
@@ -13762,11 +13762,14 @@ class Qt {
13762
13762
  addJumpHit(t) {
13763
13763
  this.info.addJumps(t);
13764
13764
  }
13765
+ canDoAction() {
13766
+ return !this.isDespawned && !this.isDead;
13767
+ }
13765
13768
  async jump(t) {
13766
- this.isDespawned || this.isJumping || (this.isJumping = !0, un.play("jump"), await Ql(300), this.velocity.x = this.state.direction * ((t == null ? void 0 : t.velocityX) ?? 3.5), this.velocity.y = (t == null ? void 0 : t.velocityY) ?? -8, this.setAnimationState(Q.Jump), this.info.jumps > 0 && (this.info.useJump(), this.isHitJumping = !0));
13769
+ this.canDoAction() && (this.isJumping || (this.isJumping = !0, un.play("jump"), await Ql(300), this.velocity.x = this.state.direction * ((t == null ? void 0 : t.velocityX) ?? 3.5), this.velocity.y = (t == null ? void 0 : t.velocityY) ?? -8, this.setAnimationState(Q.Jump), this.info.jumps > 0 && (this.info.useJump(), this.isHitJumping = !0)));
13767
13770
  }
13768
13771
  dash(t) {
13769
- this.isDespawned || this.isDashing || (this.isDashing = !0, this.velocity.x = this.state.direction * (t.force ?? 14));
13772
+ this.canDoAction() && (this.isDashing || (this.isDashing = !0, this.velocity.x = this.state.direction * (t.force ?? 14)));
13770
13773
  }
13771
13774
  async setSprite(t) {
13772
13775
  if (t && t != this.state.sprite) {
@@ -13813,7 +13816,7 @@ class Qt {
13813
13816
  this.container.position.set(e.x, e.y), this.isHitJumping && this.jumpHit();
13814
13817
  }
13815
13818
  jumpHit() {
13816
- const t = ut.getViewerEvotars();
13819
+ const t = ut.getEvotars();
13817
13820
  for (const e in t) {
13818
13821
  const s = t[e];
13819
13822
  if (s) {
@@ -13901,7 +13904,7 @@ class nc {
13901
13904
  y: 0
13902
13905
  });
13903
13906
  w(this, "fadeTween");
13904
- this.id = t;
13907
+ this.evotar = t;
13905
13908
  const e = Math.random() > 0.5 ? "rip1" : "rip2", s = rt.get(e);
13906
13909
  this.sprite = xt.from(s);
13907
13910
  }
@@ -13909,6 +13912,8 @@ class nc {
13909
13912
  return t > Z.renderer.height;
13910
13913
  }
13911
13914
  update() {
13915
+ var e;
13916
+ (e = this.fadeTween) == null || e.update();
13912
13917
  const t = {
13913
13918
  x: this.container.position.x,
13914
13919
  y: this.container.position.y
@@ -13927,17 +13932,18 @@ class nc {
13927
13932
  sr.play("poof", s, this.container.scale.x), e();
13928
13933
  }
13929
13934
  }
13930
- spawn(t) {
13935
+ spawn() {
13936
+ const t = this.evotar.getCenterPosition(), e = this.evotar.getScale();
13931
13937
  this.container.removeChildren(), this.container.addChild(this.sprite), this.container.position.set(
13932
- t.position.x,
13933
- (t.position.y ?? 0) + this.sprite.height / 2 * t.scale
13938
+ t.x,
13939
+ (t.y ?? 0) + this.sprite.height / 2 * e
13934
13940
  ), this.container.scale.set(rc), this.sprite.anchor.set(0.5, 1), this.sprite.texture.source.scaleMode = "nearest", sr.play(
13935
13941
  "poof",
13936
13942
  {
13937
- x: t.position.x,
13938
- y: t.position.y
13943
+ x: t.x,
13944
+ y: t.y
13939
13945
  },
13940
- t.scale
13946
+ e
13941
13947
  );
13942
13948
  }
13943
13949
  }
@@ -13964,35 +13970,28 @@ class oc {
13964
13970
  for (const t of this.tombstones)
13965
13971
  t.update();
13966
13972
  }
13967
- getViewerEvotars() {
13968
- return this.viewers;
13969
- }
13970
- getViewerEvotar(t) {
13971
- return this.viewers[t];
13973
+ getEvotars() {
13974
+ return Object.values(this.viewers).concat(this.raiders);
13972
13975
  }
13973
13976
  async spawnViewerEvotar(t, e, s) {
13974
13977
  const r = new Qt();
13975
13978
  return this.addViewer(t, r), await r.setProps(e), r.spawn(s), this.recentEvotarActivity[t] = performance.now(), r;
13976
13979
  }
13977
- processRaid(t) {
13980
+ async processRaid(t) {
13978
13981
  if (!Z.settings.fallingRaiders)
13979
13982
  return;
13980
13983
  const e = 1 / t.viewers.count * 5e3;
13981
13984
  for (let a = 0; a < t.viewers.count; a++) {
13982
13985
  const o = new Qt();
13983
- o.setProps({
13986
+ await o.setProps({
13984
13987
  isAnonymous: !0,
13985
13988
  zIndex: -1,
13986
13989
  sprite: t.viewers.sprite,
13987
13990
  color: new J(t.broadcaster.info.color)
13988
- }), Yi.add(e * a, () => {
13991
+ }), ji.add(e * a, () => {
13989
13992
  this.addRaider(o), o.spawn({ isFalling: !0 });
13990
- }), Yi.add(a * e + 6e4, () => {
13991
- o.despawn({
13992
- onComplete: () => {
13993
- this.deleteRaider(o);
13994
- }
13995
- });
13993
+ }), ji.add(a * e + 6e4, () => {
13994
+ this.despawnRaider(o);
13996
13995
  });
13997
13996
  }
13998
13997
  const s = this.viewers[t.broadcaster.id], r = {
@@ -14003,9 +14002,9 @@ class oc {
14003
14002
  ),
14004
14003
  scale: 2,
14005
14004
  isImmortal: !0
14006
- }, n = () => {
14005
+ }, n = async () => {
14007
14006
  const a = new Qt();
14008
- a.setProps(r), this.addViewer(t.broadcaster.id, a), a.spawn({ isFalling: !0, positionX: 0.5 });
14007
+ await a.setProps(r), this.addViewer(t.broadcaster.id, a), a.spawn({ isFalling: !0, positionX: 0.5 });
14009
14008
  };
14010
14009
  this.recentEvotarActivity[t.broadcaster.id] = performance.now(), s ? s.despawn({
14011
14010
  onComplete: () => {
@@ -14013,23 +14012,32 @@ class oc {
14013
14012
  }
14014
14013
  }) : n();
14015
14014
  }
14016
- despawnEvotar(t, e) {
14015
+ despawnTombStone(t) {
14016
+ const e = this.tombstones.find((s) => s.evotar == t);
14017
+ e && e.despawn(!0, () => {
14018
+ this.deleteTombStone(e);
14019
+ });
14020
+ }
14021
+ despawnRaider(t) {
14022
+ t.despawn({
14023
+ onComplete: () => {
14024
+ this.deleteRaider(t);
14025
+ }
14026
+ }), this.despawnTombStone(t);
14027
+ }
14028
+ despawnViewer(t, e) {
14017
14029
  e.despawn({
14018
14030
  onComplete: () => {
14019
14031
  this.deleteViewer(t, e);
14020
14032
  }
14021
- });
14022
- const s = this.tombstones.find((r) => r.id == t);
14023
- s && s.despawn(!0, () => {
14024
- this.deleteTombStone(s);
14025
- });
14033
+ }), this.despawnTombStone(e);
14026
14034
  }
14027
14035
  async processChatters(t) {
14028
14036
  for (const e in this.viewers) {
14029
14037
  const s = this.recentEvotarActivity[e], r = !!s && performance.now() - s < ac;
14030
14038
  if (t.every((n) => n.userId != e) && !r) {
14031
14039
  const n = this.viewers[e];
14032
- n && this.despawnEvotar(e, n);
14040
+ n && this.despawnViewer(e, n);
14033
14041
  }
14034
14042
  }
14035
14043
  if (Z.settings.showAnonymousEvotars) {
@@ -14037,21 +14045,22 @@ class oc {
14037
14045
  if (!this.viewers[e.userId]) {
14038
14046
  const r = {
14039
14047
  name: e.name,
14040
- isAnonymous: !this.hasActivity(e.userId)
14048
+ isAnonymous: !this.hasActivity(e.userId),
14049
+ sprite: "default"
14041
14050
  }, n = new Qt();
14042
- await n.setProps(r), n.spawn(), this.addViewer(e.userId, n);
14051
+ this.addViewer(e.userId, n), await n.setProps(r), n.spawn();
14043
14052
  }
14044
14053
  }
14045
14054
  }
14046
14055
  doAction(t, e) {
14047
- if (Vh(t) && e.jump({
14056
+ if (Yh(t) && e.jump({
14048
14057
  velocityX: t.data.velocityX,
14049
14058
  velocityY: t.data.velocityY
14050
- }), Xh(t) && e.dash({ force: t.data.force }), Yh(t)) {
14059
+ }), Xh(t) && e.dash({ force: t.data.force }), jh(t)) {
14051
14060
  const s = P(t.data.color);
14052
14061
  s && s.isValid() && e.setUserProps({ color: new J(t.data.color) });
14053
14062
  }
14054
- jh(t) && e.scale({
14063
+ Vh(t) && e.scale({
14055
14064
  value: t.data.scale,
14056
14065
  duration: t.data.duration
14057
14066
  }), $h(t) && e.setSprite(t.data.sprite), qh(t) && e.addJumpHit(t.data.count), Kh(t) && e.resurrect();
@@ -14101,27 +14110,13 @@ class oc {
14101
14110
  }
14102
14111
  this.recentEvotarActivity[t.userId] = performance.now(), t.message && s.addMessage(t.message), t.emotes.length > 0 && s.spitEmotes(t.emotes);
14103
14112
  }
14104
- getViewerId(t) {
14105
- for (const e in this.viewers)
14106
- if (this.viewers[e] == t)
14107
- return e;
14108
- }
14109
14113
  resurrect(t) {
14110
- const e = this.getViewerId(t);
14111
- if (e) {
14112
- const s = this.tombstones.find((r) => r.id == e);
14113
- s && (t.setPosition(s.container.position), s.despawn(), this.deleteTombStone(s));
14114
- }
14114
+ const e = this.tombstones.find((s) => s.evotar == t);
14115
+ e && (t.setPosition(e.container.position), e.despawn(), this.deleteTombStone(e));
14115
14116
  }
14116
14117
  kill(t) {
14117
- const e = this.getViewerId(t);
14118
- if (e) {
14119
- const s = new nc(e), r = t.getCenterPosition();
14120
- this.addTombStone(s), s.spawn({
14121
- position: r,
14122
- scale: t.getScale()
14123
- });
14124
- }
14118
+ const e = new nc(t);
14119
+ this.addTombStone(e), e.spawn();
14125
14120
  }
14126
14121
  addTombStone(t) {
14127
14122
  Z.stage.addChild(t.container), this.tombstones.push(t);
@@ -14162,7 +14157,7 @@ class hc {
14162
14157
  ei.initialize(e.spriteLoaderFn), un.initialize(e.sounds), e.font && await rt.load({
14163
14158
  src: e.font,
14164
14159
  data: { family: "Custom Font" }
14165
- }), rt.add({ alias: "poof", src: "/client/poof.json" }), rt.add({ alias: "rip1", src: "/client/rip1.png" }), rt.add({ alias: "rip2", src: "/client/rip2.png" }), rt.add({ alias: "skull", src: "/client/skull.png" }), rt.add({ alias: "weight", src: "/client/weight.png" }), await rt.load(["skull", "weight", "poof", "rip1", "rip2"]), this.ticker = new ht(), this.ticker.deltaTime = Ut * 0.06, this.renderer = await Ya({
14160
+ }), rt.add({ alias: "poof", src: "/client/poof.json" }), rt.add({ alias: "rip1", src: "/client/rip1.png" }), rt.add({ alias: "rip2", src: "/client/rip2.png" }), rt.add({ alias: "skull", src: "/client/skull.png" }), rt.add({ alias: "weight", src: "/client/weight.png" }), await rt.load(["skull", "weight", "poof", "rip1", "rip2"]), this.ticker = new ht(), this.ticker.deltaTime = Ut * 0.06, this.renderer = await ja({
14166
14161
  preference: "webgl"
14167
14162
  }), await this.renderer.init({
14168
14163
  width: t.clientWidth,
@@ -14181,7 +14176,7 @@ class hc {
14181
14176
  this.settings = t;
14182
14177
  }
14183
14178
  update() {
14184
- Yi.tick(), ut.update(), this.renderer.render(this.stage);
14179
+ ji.tick(), ut.update(), this.renderer.render(this.stage);
14185
14180
  }
14186
14181
  }
14187
14182
  const Z = new hc();
@@ -14226,14 +14221,14 @@ export {
14226
14221
  aa as G,
14227
14222
  xi as H,
14228
14223
  J as I,
14229
- mr as J,
14224
+ gr as J,
14230
14225
  $ as K,
14231
14226
  X as L,
14232
14227
  D as M,
14233
14228
  To as N,
14234
14229
  ae as O,
14235
14230
  st as P,
14236
- mh as Q,
14231
+ gh as Q,
14237
14232
  tt as R,
14238
14233
  Fo as S,
14239
14234
  ht as T,
@@ -14253,9 +14248,9 @@ export {
14253
14248
  Ln as a5,
14254
14249
  qr as a6,
14255
14250
  fc as a7,
14256
- Vh as a8,
14257
- Yh as a9,
14258
- jh as aa,
14251
+ Yh as a8,
14252
+ jh as a9,
14253
+ Vh as aa,
14259
14254
  Xh as ab,
14260
14255
  $h as ac,
14261
14256
  qh as ad,
@@ -14276,7 +14271,7 @@ export {
14276
14271
  Lo as o,
14277
14272
  Io as p,
14278
14273
  kt as q,
14279
- jn as r,
14274
+ Vn as r,
14280
14275
  pr as s,
14281
14276
  St as t,
14282
14277
  et as u,