@annotorious/svelte 3.0.0-rc.4 → 3.0.0-rc.5

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.
@@ -2,19 +2,19 @@ import { createUndoStack as _l, createLifecyleObserver as gl, createAnonymousGue
2
2
  import tn from "openseadragon";
3
3
  function Yt() {
4
4
  }
5
- function Ol(r, e) {
5
+ function Sl(r, e) {
6
6
  for (const t in e)
7
7
  r[t] = e[t];
8
8
  return r;
9
9
  }
10
- function Vh(r) {
10
+ function zh(r) {
11
11
  return r();
12
12
  }
13
13
  function Xs() {
14
14
  return /* @__PURE__ */ Object.create(null);
15
15
  }
16
16
  function Ie(r) {
17
- r.forEach(Vh);
17
+ r.forEach(zh);
18
18
  }
19
19
  function Lt(r) {
20
20
  return typeof r == "function";
@@ -22,17 +22,17 @@ function Lt(r) {
22
22
  function Gt(r, e) {
23
23
  return r != r ? e == e : r !== e || r && typeof r == "object" || typeof r == "function";
24
24
  }
25
- function Sl(r) {
25
+ function Rl(r) {
26
26
  return Object.keys(r).length === 0;
27
27
  }
28
- function Rl(r, ...e) {
28
+ function Ol(r, ...e) {
29
29
  if (r == null)
30
30
  return Yt;
31
31
  const t = r.subscribe(...e);
32
32
  return t.unsubscribe ? () => t.unsubscribe() : t;
33
33
  }
34
34
  function yo(r, e, t) {
35
- r.$$.on_destroy.push(Rl(e, t));
35
+ r.$$.on_destroy.push(Ol(e, t));
36
36
  }
37
37
  function Wh(r, e, t, i) {
38
38
  if (r) {
@@ -41,7 +41,7 @@ function Wh(r, e, t, i) {
41
41
  }
42
42
  }
43
43
  function $h(r, e, t, i) {
44
- return r[1] && i ? Ol(t.ctx.slice(), r[1](i(e))) : t.ctx;
44
+ return r[1] && i ? Sl(t.ctx.slice(), r[1](i(e))) : t.ctx;
45
45
  }
46
46
  function qh(r, e, t, i) {
47
47
  if (r[2] && i) {
@@ -74,13 +74,13 @@ function Zh(r) {
74
74
  return -1;
75
75
  }
76
76
  const Il = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : global;
77
- function Ve(r, e) {
77
+ function ze(r, e) {
78
78
  r.appendChild(e);
79
79
  }
80
- function V(r, e, t) {
80
+ function z(r, e, t) {
81
81
  r.insertBefore(e, t || null);
82
82
  }
83
- function z(r) {
83
+ function V(r) {
84
84
  r.parentNode && r.parentNode.removeChild(r);
85
85
  }
86
86
  function ds(r, e) {
@@ -119,7 +119,7 @@ function Dl(r, e, { bubbles: t = !1, cancelable: i = !1 } = {}) {
119
119
  return n.initCustomEvent(r, t, i, e), n;
120
120
  }
121
121
  let Zr;
122
- function zr(r) {
122
+ function Vr(r) {
123
123
  Zr = r;
124
124
  }
125
125
  function ys() {
@@ -170,12 +170,12 @@ function Jh() {
170
170
  try {
171
171
  for (; ir < lr.length; ) {
172
172
  const e = lr[ir];
173
- ir++, zr(e), Ll(e.$$);
173
+ ir++, Vr(e), Ll(e.$$);
174
174
  }
175
175
  } catch (e) {
176
176
  throw lr.length = 0, ir = 0, e;
177
177
  }
178
- for (zr(null), lr.length = 0, ir = 0; en.length; )
178
+ for (Vr(null), lr.length = 0, ir = 0; en.length; )
179
179
  en.pop()();
180
180
  for (let e = 0; e < gr.length; e += 1) {
181
181
  const t = gr[e];
@@ -185,7 +185,7 @@ function Jh() {
185
185
  } while (lr.length);
186
186
  for (; Hs.length; )
187
187
  Hs.pop()();
188
- _o = !1, An.clear(), zr(r);
188
+ _o = !1, An.clear(), Vr(r);
189
189
  }
190
190
  function Ll(r) {
191
191
  if (r.fragment !== null) {
@@ -199,17 +199,17 @@ function Bl(r) {
199
199
  gr.forEach((i) => r.indexOf(i) === -1 ? e.push(i) : t.push(i)), t.forEach((i) => i()), gr = e;
200
200
  }
201
201
  const Wi = /* @__PURE__ */ new Set();
202
- let ze;
202
+ let Ve;
203
203
  function Pe() {
204
- ze = {
204
+ Ve = {
205
205
  r: 0,
206
206
  c: [],
207
- p: ze
207
+ p: Ve
208
208
  // parent group
209
209
  };
210
210
  }
211
211
  function De() {
212
- ze.r || Ie(ze.c), ze = ze.p;
212
+ Ve.r || Ie(Ve.c), Ve = Ve.p;
213
213
  }
214
214
  function ot(r, e) {
215
215
  r && r.i && (Wi.delete(r), r.i(e));
@@ -218,7 +218,7 @@ function ft(r, e, t, i) {
218
218
  if (r && r.o) {
219
219
  if (Wi.has(r))
220
220
  return;
221
- Wi.add(r), ze.c.push(() => {
221
+ Wi.add(r), Ve.c.push(() => {
222
222
  Wi.delete(r), i && (t && r.d(1), i());
223
223
  }), r.o(e);
224
224
  } else
@@ -230,7 +230,7 @@ function ce(r) {
230
230
  function ee(r, e, t, i) {
231
231
  const { fragment: n, after_update: o } = r.$$;
232
232
  n && n.m(e, t), i || go(() => {
233
- const s = r.$$.on_mount.map(Vh).filter(Lt);
233
+ const s = r.$$.on_mount.map(zh).filter(Lt);
234
234
  r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Ie(s), r.$$.on_mount = [];
235
235
  }), o.forEach(go);
236
236
  }
@@ -243,7 +243,7 @@ function Gl(r, e) {
243
243
  }
244
244
  function Xt(r, e, t, i, n, o, s, a = [-1]) {
245
245
  const h = Zr;
246
- zr(r);
246
+ Vr(r);
247
247
  const u = r.$$ = {
248
248
  fragment: null,
249
249
  ctx: [],
@@ -273,12 +273,12 @@ function Xt(r, e, t, i, n, o, s, a = [-1]) {
273
273
  }) : [], u.update(), l = !0, Ie(u.before_update), u.fragment = i ? i(u.ctx) : !1, e.target) {
274
274
  if (e.hydrate) {
275
275
  const c = Ml(e.target);
276
- u.fragment && u.fragment.l(c), c.forEach(z);
276
+ u.fragment && u.fragment.l(c), c.forEach(V);
277
277
  } else
278
278
  u.fragment && u.fragment.c();
279
279
  e.intro && ot(r.$$.fragment), ee(r, e.target, e.anchor, e.customElement), Jh();
280
280
  }
281
- zr(h);
281
+ Vr(h);
282
282
  }
283
283
  class jt {
284
284
  $destroy() {
@@ -294,7 +294,7 @@ class jt {
294
294
  };
295
295
  }
296
296
  $set(e) {
297
- this.$$set && !Sl(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
297
+ this.$$set && !Rl(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
298
298
  }
299
299
  }
300
300
  var kt = /* @__PURE__ */ ((r) => (r.ELLIPSE = "ELLIPSE", r.POLYGON = "POLYGON", r.RECTANGLE = "RECTANGLE", r))(kt || {});
@@ -345,11 +345,11 @@ function Yl() {
345
345
  const Dt = [];
346
346
  for (let r = 0; r < 256; ++r)
347
347
  Dt.push((r + 256).toString(16).slice(1));
348
- function zl(r, e = 0) {
348
+ function Vl(r, e = 0) {
349
349
  return Dt[r[e + 0]] + Dt[r[e + 1]] + Dt[r[e + 2]] + Dt[r[e + 3]] + "-" + Dt[r[e + 4]] + Dt[r[e + 5]] + "-" + Dt[r[e + 6]] + Dt[r[e + 7]] + "-" + Dt[r[e + 8]] + Dt[r[e + 9]] + "-" + Dt[r[e + 10]] + Dt[r[e + 11]] + Dt[r[e + 12]] + Dt[r[e + 13]] + Dt[r[e + 14]] + Dt[r[e + 15]];
350
350
  }
351
- const Vl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ys = {
352
- randomUUID: Vl
351
+ const zl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ys = {
352
+ randomUUID: zl
353
353
  };
354
354
  function Wl(r, e, t) {
355
355
  if (Ys.randomUUID && !e && !r)
@@ -362,13 +362,13 @@ function Wl(r, e, t) {
362
362
  e[t + n] = i[n];
363
363
  return e;
364
364
  }
365
- return zl(i);
365
+ return Vl(i);
366
366
  }
367
- function zs(r, e, t) {
367
+ function Vs(r, e, t) {
368
368
  const i = r.slice();
369
369
  return i[11] = e[t], i[13] = t, i;
370
370
  }
371
- function Vs(r) {
371
+ function zs(r) {
372
372
  let e, t, i, n, o;
373
373
  return {
374
374
  c() {
@@ -389,7 +389,7 @@ function Vs(r) {
389
389
  );
390
390
  },
391
391
  m(s, a) {
392
- V(s, e, a), n || (o = Ut(e, "pointerdown", function() {
392
+ z(s, e, a), n || (o = Ut(e, "pointerdown", function() {
393
393
  Lt(
394
394
  /*grab*/
395
395
  r[10](H(
@@ -424,7 +424,7 @@ function Vs(r) {
424
424
  );
425
425
  },
426
426
  d(s) {
427
- s && z(e), n = !1, o();
427
+ s && V(e), n = !1, o();
428
428
  }
429
429
  };
430
430
  }
@@ -434,7 +434,7 @@ function $l(r) {
434
434
  r[4].points
435
435
  ), p = [];
436
436
  for (let f = 0; f < c.length; f += 1)
437
- p[f] = Vs(zs(r, c, f));
437
+ p[f] = zs(Vs(r, c, f));
438
438
  return {
439
439
  c() {
440
440
  e = at("polygon"), n = Wt(), o = at("polygon"), a = Wt();
@@ -451,10 +451,10 @@ function $l(r) {
451
451
  r[4].points.map($s).join(" "));
452
452
  },
453
453
  m(f, d) {
454
- V(f, e, d), V(f, n, d), V(f, o, d), V(f, a, d);
454
+ z(f, e, d), z(f, n, d), z(f, o, d), z(f, a, d);
455
455
  for (let m = 0; m < p.length; m += 1)
456
456
  p[m] && p[m].m(f, d);
457
- V(f, h, d), u || (l = [
457
+ z(f, h, d), u || (l = [
458
458
  Ut(e, "pointerdown", function() {
459
459
  Lt(
460
460
  /*grab*/
@@ -488,8 +488,8 @@ function $l(r) {
488
488
  r[4].points;
489
489
  let m;
490
490
  for (m = 0; m < c.length; m += 1) {
491
- const y = zs(r, c, m);
492
- p[m] ? p[m].p(y, d) : (p[m] = Vs(y), p[m].c(), p[m].m(h.parentNode, h));
491
+ const y = Vs(r, c, m);
492
+ p[m] ? p[m].p(y, d) : (p[m] = zs(y), p[m].c(), p[m].m(h.parentNode, h));
493
493
  }
494
494
  for (; m < p.length; m += 1)
495
495
  p[m].d(1);
@@ -497,7 +497,7 @@ function $l(r) {
497
497
  }
498
498
  },
499
499
  d(f) {
500
- f && z(e), f && z(n), f && z(o), f && z(a), ds(p, f), f && z(h), u = !1, Ie(l);
500
+ f && V(e), f && V(n), f && V(o), f && V(a), ds(p, f), f && V(h), u = !1, Ie(l);
501
501
  }
502
502
  };
503
503
  }
@@ -613,10 +613,10 @@ class Zl extends jt {
613
613
  }
614
614
  }
615
615
  function Jl(r) {
616
- let e, t, i, n, o, s, a, h, u, l, c, p, f, d, m, y, g, _, v, T, b, E, A, S, O, w, R, P, N, B, M, D, Y, st, K, F, I, j, Z, Q, yt, q, lt, vt, At, tt, nt, ht, pt, J;
616
+ let e, t, i, n, o, s, a, h, u, l, c, p, f, d, m, y, g, _, v, T, b, E, A, R, S, w, O, P, N, B, M, D, Y, st, K, F, I, j, Z, Q, yt, q, lt, vt, At, tt, nt, ht, pt, J;
617
617
  return {
618
618
  c() {
619
- e = at("rect"), a = Wt(), h = at("rect"), f = Wt(), d = at("rect"), _ = Wt(), v = at("rect"), A = Wt(), S = at("rect"), P = Wt(), N = at("rect"), Y = Wt(), st = at("rect"), I = Wt(), j = at("rect"), yt = Wt(), q = at("rect"), At = Wt(), tt = at("rect"), x(e, "class", "a9s-outer"), x(e, "style", t = /*computedStyle*/
619
+ e = at("rect"), a = Wt(), h = at("rect"), f = Wt(), d = at("rect"), _ = Wt(), v = at("rect"), A = Wt(), R = at("rect"), P = Wt(), N = at("rect"), Y = Wt(), st = at("rect"), I = Wt(), j = at("rect"), yt = Wt(), q = at("rect"), At = Wt(), tt = at("rect"), x(e, "class", "a9s-outer"), x(e, "style", t = /*computedStyle*/
620
620
  r[1] ? "display:none;" : void 0), x(e, "x", i = /*geom*/
621
621
  r[4].x), x(e, "y", n = /*geom*/
622
622
  r[4].y), x(e, "width", o = /*geom*/
@@ -637,10 +637,10 @@ function Jl(r) {
637
637
  r[4].x + /*geom*/
638
638
  r[4].w), x(v, "y", b = /*geom*/
639
639
  r[4].y), x(v, "height", E = /*geom*/
640
- r[4].h), x(v, "width", 1), x(S, "class", "a9s-edge-handle a9s-edge-handle-bottom"), x(S, "x", O = /*geom*/
641
- r[4].x), x(S, "y", w = /*geom*/
640
+ r[4].h), x(v, "width", 1), x(R, "class", "a9s-edge-handle a9s-edge-handle-bottom"), x(R, "x", S = /*geom*/
641
+ r[4].x), x(R, "y", w = /*geom*/
642
642
  r[4].y + /*geom*/
643
- r[4].h), x(S, "height", 1), x(S, "width", R = /*geom*/
643
+ r[4].h), x(R, "height", 1), x(R, "width", O = /*geom*/
644
644
  r[4].w), x(N, "class", "a9s-edge-handle a9s-edge-handle-left"), x(N, "x", B = /*geom*/
645
645
  r[4].x), x(N, "y", M = /*geom*/
646
646
  r[4].y), x(N, "height", D = /*geom*/
@@ -707,7 +707,7 @@ function Jl(r) {
707
707
  );
708
708
  },
709
709
  m(U, L) {
710
- V(U, e, L), V(U, a, L), V(U, h, L), V(U, f, L), V(U, d, L), V(U, _, L), V(U, v, L), V(U, A, L), V(U, S, L), V(U, P, L), V(U, N, L), V(U, Y, L), V(U, st, L), V(U, I, L), V(U, j, L), V(U, yt, L), V(U, q, L), V(U, At, L), V(U, tt, L), pt || (J = [
710
+ z(U, e, L), z(U, a, L), z(U, h, L), z(U, f, L), z(U, d, L), z(U, _, L), z(U, v, L), z(U, A, L), z(U, R, L), z(U, P, L), z(U, N, L), z(U, Y, L), z(U, st, L), z(U, I, L), z(U, j, L), z(U, yt, L), z(U, q, L), z(U, At, L), z(U, tt, L), pt || (J = [
711
711
  Ut(e, "pointerdown", function() {
712
712
  Lt(
713
713
  /*grab*/
@@ -732,7 +732,7 @@ function Jl(r) {
732
732
  r[10](H.RIGHT)
733
733
  ) && r[10](H.RIGHT).apply(this, arguments);
734
734
  }),
735
- Ut(S, "pointerdown", function() {
735
+ Ut(R, "pointerdown", function() {
736
736
  Lt(
737
737
  /*grab*/
738
738
  r[10](H.BOTTOM)
@@ -809,13 +809,13 @@ function Jl(r) {
809
809
  r[4].y) && x(v, "y", b), L & /*geom*/
810
810
  16 && E !== (E = /*geom*/
811
811
  r[4].h) && x(v, "height", E), L & /*geom*/
812
- 16 && O !== (O = /*geom*/
813
- r[4].x) && x(S, "x", O), L & /*geom*/
812
+ 16 && S !== (S = /*geom*/
813
+ r[4].x) && x(R, "x", S), L & /*geom*/
814
814
  16 && w !== (w = /*geom*/
815
815
  r[4].y + /*geom*/
816
- r[4].h) && x(S, "y", w), L & /*geom*/
817
- 16 && R !== (R = /*geom*/
818
- r[4].w) && x(S, "width", R), L & /*geom*/
816
+ r[4].h) && x(R, "y", w), L & /*geom*/
817
+ 16 && O !== (O = /*geom*/
818
+ r[4].w) && x(R, "width", O), L & /*geom*/
819
819
  16 && B !== (B = /*geom*/
820
820
  r[4].x) && x(N, "x", B), L & /*geom*/
821
821
  16 && M !== (M = /*geom*/
@@ -900,7 +900,7 @@ function Jl(r) {
900
900
  );
901
901
  },
902
902
  d(U) {
903
- U && z(e), U && z(a), U && z(h), U && z(f), U && z(d), U && z(_), U && z(v), U && z(A), U && z(S), U && z(P), U && z(N), U && z(Y), U && z(st), U && z(I), U && z(j), U && z(yt), U && z(q), U && z(At), U && z(tt), pt = !1, Ie(J);
903
+ U && V(e), U && V(a), U && V(h), U && V(f), U && V(d), U && V(_), U && V(v), U && V(A), U && V(R), U && V(P), U && V(N), U && V(Y), U && V(st), U && V(I), U && V(j), U && V(yt), U && V(q), U && V(At), U && V(tt), pt = !1, Ie(J);
904
904
  }
905
905
  };
906
906
  }
@@ -1006,19 +1006,19 @@ function tc(r, e, t) {
1006
1006
  }
1007
1007
  }
1008
1008
  }
1009
- const A = Math.min(g, v), S = Math.min(_, T), O = Math.abs(v - g), w = Math.abs(T - _);
1009
+ const A = Math.min(g, v), R = Math.min(_, T), S = Math.abs(v - g), w = Math.abs(T - _);
1010
1010
  return {
1011
1011
  ...f,
1012
1012
  geometry: {
1013
1013
  x: A,
1014
- y: S,
1015
- w: O,
1014
+ y: R,
1015
+ w: S,
1016
1016
  h: w,
1017
1017
  bounds: {
1018
1018
  minX: A,
1019
- minY: S,
1020
- maxX: A + O,
1021
- maxY: S + w
1019
+ minY: R,
1020
+ maxX: A + S,
1021
+ maxY: R + w
1022
1022
  }
1023
1023
  }
1024
1024
  };
@@ -1095,7 +1095,7 @@ function nc(r) {
1095
1095
  e = at("g"), s && s.c(), x(e, "class", "a9s-annotation selected");
1096
1096
  },
1097
1097
  m(a, h) {
1098
- V(a, e, h), s && s.m(e, null), t = !0, i || (n = [
1098
+ z(a, e, h), s && s.m(e, null), t = !0, i || (n = [
1099
1099
  Ut(
1100
1100
  e,
1101
1101
  "pointerup",
@@ -1138,7 +1138,7 @@ function nc(r) {
1138
1138
  ft(s, a), t = !1;
1139
1139
  },
1140
1140
  d(a) {
1141
- a && z(e), s && s.d(a), i = !1, Ie(n);
1141
+ a && V(e), s && s.d(a), i = !1, Ie(n);
1142
1142
  }
1143
1143
  };
1144
1144
  }
@@ -1258,7 +1258,7 @@ function Zs(r) {
1258
1258
  );
1259
1259
  },
1260
1260
  m(i, n) {
1261
- V(i, e, n), V(i, t, n);
1261
+ z(i, e, n), z(i, t, n);
1262
1262
  },
1263
1263
  p(i, n) {
1264
1264
  n & /*x*/
@@ -1312,7 +1312,7 @@ function Zs(r) {
1312
1312
  );
1313
1313
  },
1314
1314
  d(i) {
1315
- i && z(e), i && z(t);
1315
+ i && V(e), i && V(t);
1316
1316
  }
1317
1317
  };
1318
1318
  }
@@ -1326,7 +1326,7 @@ function uc(r) {
1326
1326
  e = at("g"), t && t.c(), x(e, "class", "a9s-annotation a9s-rubberband");
1327
1327
  },
1328
1328
  m(i, n) {
1329
- V(i, e, n), t && t.m(e, null);
1329
+ z(i, e, n), t && t.m(e, null);
1330
1330
  },
1331
1331
  p(i, [n]) {
1332
1332
  i[0] ? t ? t.p(i, n) : (t = Zs(i), t.c(), t.m(e, null)) : t && (t.d(1), t = null);
@@ -1334,7 +1334,7 @@ function uc(r) {
1334
1334
  i: Yt,
1335
1335
  o: Yt,
1336
1336
  d(i) {
1337
- i && z(e), t && t.d();
1337
+ i && V(e), t && t.d();
1338
1338
  }
1339
1339
  };
1340
1340
  }
@@ -1393,7 +1393,7 @@ const wn = (r, e) => {
1393
1393
  const t = Math.abs(e[0] - r[0]), i = Math.abs(e[1] - r[1]);
1394
1394
  return Math.sqrt(Math.pow(t, 2) + Math.pow(i, 2));
1395
1395
  };
1396
- function On(r) {
1396
+ function Sn(r) {
1397
1397
  const e = r.slice(), t = (
1398
1398
  /*isClosable*/
1399
1399
  (e[2] ? (
@@ -1420,7 +1420,7 @@ function Js(r) {
1420
1420
  r[15]);
1421
1421
  },
1422
1422
  m(a, h) {
1423
- V(a, e, h), V(a, i, h), s && s.m(a, h), V(a, o, h);
1423
+ z(a, e, h), z(a, i, h), s && s.m(a, h), z(a, o, h);
1424
1424
  },
1425
1425
  p(a, h) {
1426
1426
  h & /*isClosable, points, cursor*/
@@ -1431,7 +1431,7 @@ function Js(r) {
1431
1431
  a[2] ? s ? s.p(a, h) : (s = Qs(a), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
1432
1432
  },
1433
1433
  d(a) {
1434
- a && z(e), a && z(i), s && s.d(a), a && z(o);
1434
+ a && V(e), a && V(i), s && s.d(a), a && V(o);
1435
1435
  }
1436
1436
  };
1437
1437
  }
@@ -1456,7 +1456,7 @@ function Qs(r) {
1456
1456
  );
1457
1457
  },
1458
1458
  m(n, o) {
1459
- V(n, e, o);
1459
+ z(n, e, o);
1460
1460
  },
1461
1461
  p(n, o) {
1462
1462
  o & /*points, handleSize*/
@@ -1480,29 +1480,29 @@ function Qs(r) {
1480
1480
  );
1481
1481
  },
1482
1482
  d(n) {
1483
- n && z(e);
1483
+ n && V(e);
1484
1484
  }
1485
1485
  };
1486
1486
  }
1487
1487
  function pc(r) {
1488
1488
  let e, t = (
1489
1489
  /*cursor*/
1490
- r[1] && Js(On(r))
1490
+ r[1] && Js(Sn(r))
1491
1491
  );
1492
1492
  return {
1493
1493
  c() {
1494
1494
  e = at("g"), t && t.c(), x(e, "class", "a9s-annotation a9s-rubberband");
1495
1495
  },
1496
1496
  m(i, n) {
1497
- V(i, e, n), t && t.m(e, null);
1497
+ z(i, e, n), t && t.m(e, null);
1498
1498
  },
1499
1499
  p(i, [n]) {
1500
- i[1] ? t ? t.p(On(i), n) : (t = Js(On(i)), t.c(), t.m(e, null)) : t && (t.d(1), t = null);
1500
+ i[1] ? t ? t.p(Sn(i), n) : (t = Js(Sn(i)), t.c(), t.m(e, null)) : t && (t.d(1), t = null);
1501
1501
  },
1502
1502
  i: Yt,
1503
1503
  o: Yt,
1504
1504
  d(i) {
1505
- i && z(e), t && t.d();
1505
+ i && V(e), t && t.d();
1506
1506
  }
1507
1507
  };
1508
1508
  }
@@ -1631,7 +1631,7 @@ class bc {
1631
1631
  for (; t; ) {
1632
1632
  for (let s = 0; s < t.children.length; s++) {
1633
1633
  const a = t.children[s], h = t.leaf ? n(a) : a;
1634
- gi(e, h) && (t.leaf ? i.push(a) : Rn(e, h) ? this._all(a, i) : o.push(a));
1634
+ gi(e, h) && (t.leaf ? i.push(a) : On(e, h) ? this._all(a, i) : o.push(a));
1635
1635
  }
1636
1636
  t = o.pop();
1637
1637
  }
@@ -1646,7 +1646,7 @@ class bc {
1646
1646
  for (let n = 0; n < t.children.length; n++) {
1647
1647
  const o = t.children[n], s = t.leaf ? this.toBBox(o) : o;
1648
1648
  if (gi(e, s)) {
1649
- if (t.leaf || Rn(e, s))
1649
+ if (t.leaf || On(e, s))
1650
1650
  return !0;
1651
1651
  i.push(o);
1652
1652
  }
@@ -1695,7 +1695,7 @@ class bc {
1695
1695
  if (l !== -1)
1696
1696
  return i.children.splice(l, 1), o.push(i), this._condense(o), this;
1697
1697
  }
1698
- !u && !i.leaf && Rn(i, n) ? (o.push(i), s.push(a), a = 0, h = i, i = i.children[0]) : h ? (a++, i = h.children[a], u = !1) : i = null;
1698
+ !u && !i.leaf && On(i, n) ? (o.push(i), s.push(a), a = 0, h = i, i = i.children[0]) : h ? (a++, i = h.children[a], u = !1) : i = null;
1699
1699
  }
1700
1700
  return this;
1701
1701
  }
@@ -1742,7 +1742,7 @@ class bc {
1742
1742
  for (; n.push(t), !(t.leaf || n.length - 1 === i); ) {
1743
1743
  let o = 1 / 0, s = 1 / 0, a;
1744
1744
  for (let h = 0; h < t.children.length; h++) {
1745
- const u = t.children[h], l = Sn(u), c = Ac(e, u) - l;
1745
+ const u = t.children[h], l = Rn(u), c = Ac(e, u) - l;
1746
1746
  c < s ? (s = c, o = l < o ? l : o, a = u) : c === s && l < o && (o = l, a = u);
1747
1747
  }
1748
1748
  t = a || t.children[0];
@@ -1768,7 +1768,7 @@ class bc {
1768
1768
  _chooseSplitIndex(e, t, i) {
1769
1769
  let n, o = 1 / 0, s = 1 / 0;
1770
1770
  for (let a = t; a <= i - t; a++) {
1771
- const h = Hr(e, 0, a, this.toBBox), u = Hr(e, a, i, this.toBBox), l = wc(h, u), c = Sn(h) + Sn(u);
1771
+ const h = Hr(e, 0, a, this.toBBox), u = Hr(e, a, i, this.toBBox), l = wc(h, u), c = Rn(h) + Rn(u);
1772
1772
  l < o ? (o = l, n = a, s = c < s ? c : s) : l === o && c < s && (s = c, n = a);
1773
1773
  }
1774
1774
  return n || i - t;
@@ -1830,7 +1830,7 @@ function Tc(r, e) {
1830
1830
  function Ec(r, e) {
1831
1831
  return r.minY - e.minY;
1832
1832
  }
1833
- function Sn(r) {
1833
+ function Rn(r) {
1834
1834
  return (r.maxX - r.minX) * (r.maxY - r.minY);
1835
1835
  }
1836
1836
  function _i(r) {
@@ -1843,7 +1843,7 @@ function wc(r, e) {
1843
1843
  const t = Math.max(r.minX, e.minX), i = Math.max(r.minY, e.minY), n = Math.min(r.maxX, e.maxX), o = Math.min(r.maxY, e.maxY);
1844
1844
  return Math.max(0, n - t) * Math.max(0, o - i);
1845
1845
  }
1846
- function Rn(r, e) {
1846
+ function On(r, e) {
1847
1847
  return r.minX <= e.minX && r.minY <= e.minY && e.maxX <= r.maxX && e.maxY <= r.maxY;
1848
1848
  }
1849
1849
  function gi(r, e) {
@@ -1869,7 +1869,7 @@ function ta(r, e, t, i, n) {
1869
1869
  gc(r, s, e, t, n), o.push(e, s, s, t);
1870
1870
  }
1871
1871
  }
1872
- const Oc = () => {
1872
+ const Sc = () => {
1873
1873
  const r = new bc(), e = /* @__PURE__ */ new Map(), t = () => [...e.values()], i = () => {
1874
1874
  r.clear(), e.clear();
1875
1875
  }, n = (s) => {
@@ -1913,8 +1913,8 @@ const Oc = () => {
1913
1913
  o(s), n(a);
1914
1914
  }
1915
1915
  };
1916
- }, Sc = (r) => {
1917
- const e = xl(), t = Oc(), i = Tl(e, r.pointerSelectAction), n = El(e), o = Al();
1916
+ }, Rc = (r) => {
1917
+ const e = xl(), t = Sc(), i = Tl(e, r.pointerSelectAction), n = El(e), o = Al();
1918
1918
  return e.observe(({ changes: s }) => {
1919
1919
  t.set(s.created.map((a) => a.target), !1), s.deleted.forEach((a) => t.remove(a.target)), s.updated.forEach(({ oldValue: a, newValue: h }) => t.update(a.target, h.target));
1920
1920
  }), {
@@ -1930,7 +1930,7 @@ const Oc = () => {
1930
1930
  hover: n,
1931
1931
  viewport: o
1932
1932
  };
1933
- }, Rc = (r) => {
1933
+ }, Oc = (r) => {
1934
1934
  let e, t;
1935
1935
  if (r.nodeName === "CANVAS")
1936
1936
  e = r, t = e.getContext("2d", { willReadFrequently: !0 });
@@ -1946,7 +1946,7 @@ const Oc = () => {
1946
1946
  }
1947
1947
  return i / 81;
1948
1948
  }, Ic = (r) => {
1949
- const e = Rc(r), t = e > 0.6 ? "dark" : "light";
1949
+ const e = Oc(r), t = e > 0.6 ? "dark" : "light";
1950
1950
  return console.log(`[Annotorious] Image brightness: ${e.toFixed(1)}. Setting ${t} theme.`), t;
1951
1951
  }, Mc = (r) => ({
1952
1952
  ...r,
@@ -2263,7 +2263,7 @@ function Yc() {
2263
2263
  return !1;
2264
2264
  }
2265
2265
  }
2266
- var zc = Yc() ? Object.assign : function(r, e) {
2266
+ var Vc = Yc() ? Object.assign : function(r, e) {
2267
2267
  for (var t, i = Hc(r), n, o = 1; o < arguments.length; o++) {
2268
2268
  t = Object(arguments[o]);
2269
2269
  for (var s in t)
@@ -2276,7 +2276,7 @@ var zc = Yc() ? Object.assign : function(r, e) {
2276
2276
  }
2277
2277
  return i;
2278
2278
  };
2279
- const Vc = /* @__PURE__ */ bs(zc);
2279
+ const zc = /* @__PURE__ */ bs(Vc);
2280
2280
  /*!
2281
2281
  * @pixi/polyfill - v6.5.10
2282
2282
  * Compiled Thu, 06 Jul 2023 15:25:11 UTC
@@ -2286,7 +2286,7 @@ const Vc = /* @__PURE__ */ bs(zc);
2286
2286
  */
2287
2287
  typeof globalThis > "u" && (typeof self < "u" ? self.globalThis = self : typeof global < "u" && (global.globalThis = global));
2288
2288
  globalThis.Promise || (globalThis.Promise = Tt);
2289
- Object.assign || (Object.assign = Vc);
2289
+ Object.assign || (Object.assign = zc);
2290
2290
  var Wc = 16;
2291
2291
  Date.now && Date.prototype.getTime || (Date.now = function() {
2292
2292
  return (/* @__PURE__ */ new Date()).getTime();
@@ -2396,10 +2396,10 @@ var Ht;
2396
2396
  (function(r) {
2397
2397
  r.LOW = "lowp", r.MEDIUM = "mediump", r.HIGH = "highp";
2398
2398
  })(Ht || (Ht = {}));
2399
- var Ot;
2399
+ var St;
2400
2400
  (function(r) {
2401
2401
  r[r.NONE = 0] = "NONE", r[r.SCISSOR = 1] = "SCISSOR", r[r.STENCIL = 2] = "STENCIL", r[r.SPRITE = 3] = "SPRITE", r[r.COLOR = 4] = "COLOR";
2402
- })(Ot || (Ot = {}));
2402
+ })(St || (St = {}));
2403
2403
  var na;
2404
2404
  (function(r) {
2405
2405
  r[r.RED = 1] = "RED", r[r.GREEN = 2] = "GREEN", r[r.BLUE = 4] = "BLUE", r[r.ALPHA = 8] = "ALPHA";
@@ -3131,10 +3131,10 @@ sn.exports;
3131
3131
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
3132
3132
  "invalid-input": "Invalid input"
3133
3133
  }, T = h - u, b = Math.floor, E = String.fromCharCode, A;
3134
- function S(F) {
3134
+ function R(F) {
3135
3135
  throw new RangeError(v[F]);
3136
3136
  }
3137
- function O(F, I) {
3137
+ function S(F, I) {
3138
3138
  for (var j = F.length, Z = []; j--; )
3139
3139
  Z[j] = I(F[j]);
3140
3140
  return Z;
@@ -3142,16 +3142,16 @@ sn.exports;
3142
3142
  function w(F, I) {
3143
3143
  var j = F.split("@"), Z = "";
3144
3144
  j.length > 1 && (Z = j[0] + "@", F = j[1]), F = F.replace(_, ".");
3145
- var Q = F.split("."), yt = O(Q, I).join(".");
3145
+ var Q = F.split("."), yt = S(Q, I).join(".");
3146
3146
  return Z + yt;
3147
3147
  }
3148
- function R(F) {
3148
+ function O(F) {
3149
3149
  for (var I = [], j = 0, Z = F.length, Q, yt; j < Z; )
3150
3150
  Q = F.charCodeAt(j++), Q >= 55296 && Q <= 56319 && j < Z ? (yt = F.charCodeAt(j++), (yt & 64512) == 56320 ? I.push(((Q & 1023) << 10) + (yt & 1023) + 65536) : (I.push(Q), j--)) : I.push(Q);
3151
3151
  return I;
3152
3152
  }
3153
3153
  function P(F) {
3154
- return O(F, function(I) {
3154
+ return S(F, function(I) {
3155
3155
  var j = "";
3156
3156
  return I > 65535 && (I -= 65536, j += E(I >>> 10 & 1023 | 55296), I = 56320 | I & 1023), j += E(I), j;
3157
3157
  }).join("");
@@ -3171,23 +3171,23 @@ sn.exports;
3171
3171
  function D(F) {
3172
3172
  var I = [], j = F.length, Z, Q = 0, yt = d, q = f, lt, vt, At, tt, nt, ht, pt, J, U;
3173
3173
  for (lt = F.lastIndexOf(m), lt < 0 && (lt = 0), vt = 0; vt < lt; ++vt)
3174
- F.charCodeAt(vt) >= 128 && S("not-basic"), I.push(F.charCodeAt(vt));
3174
+ F.charCodeAt(vt) >= 128 && R("not-basic"), I.push(F.charCodeAt(vt));
3175
3175
  for (At = lt > 0 ? lt + 1 : 0; At < j; ) {
3176
- for (tt = Q, nt = 1, ht = h; At >= j && S("invalid-input"), pt = N(F.charCodeAt(At++)), (pt >= h || pt > b((a - Q) / nt)) && S("overflow"), Q += pt * nt, J = ht <= q ? u : ht >= q + l ? l : ht - q, !(pt < J); ht += h)
3177
- U = h - J, nt > b(a / U) && S("overflow"), nt *= U;
3178
- Z = I.length + 1, q = M(Q - tt, Z, tt == 0), b(Q / Z) > a - yt && S("overflow"), yt += b(Q / Z), Q %= Z, I.splice(Q++, 0, yt);
3176
+ for (tt = Q, nt = 1, ht = h; At >= j && R("invalid-input"), pt = N(F.charCodeAt(At++)), (pt >= h || pt > b((a - Q) / nt)) && R("overflow"), Q += pt * nt, J = ht <= q ? u : ht >= q + l ? l : ht - q, !(pt < J); ht += h)
3177
+ U = h - J, nt > b(a / U) && R("overflow"), nt *= U;
3178
+ Z = I.length + 1, q = M(Q - tt, Z, tt == 0), b(Q / Z) > a - yt && R("overflow"), yt += b(Q / Z), Q %= Z, I.splice(Q++, 0, yt);
3179
3179
  }
3180
3180
  return P(I);
3181
3181
  }
3182
3182
  function Y(F) {
3183
3183
  var I, j, Z, Q, yt, q, lt, vt, At, tt, nt, ht = [], pt, J, U, L;
3184
- for (F = R(F), pt = F.length, I = d, j = 0, yt = f, q = 0; q < pt; ++q)
3184
+ for (F = O(F), pt = F.length, I = d, j = 0, yt = f, q = 0; q < pt; ++q)
3185
3185
  nt = F[q], nt < 128 && ht.push(E(nt));
3186
3186
  for (Z = Q = ht.length, Q && ht.push(m); Z < pt; ) {
3187
3187
  for (lt = a, q = 0; q < pt; ++q)
3188
3188
  nt = F[q], nt >= I && nt < lt && (lt = nt);
3189
- for (J = Z + 1, lt - I > b((a - j) / J) && S("overflow"), j += (lt - I) * J, I = lt, q = 0; q < pt; ++q)
3190
- if (nt = F[q], nt < I && ++j > a && S("overflow"), nt == I) {
3189
+ for (J = Z + 1, lt - I > b((a - j) / J) && R("overflow"), j += (lt - I) * J, I = lt, q = 0; q < pt; ++q)
3190
+ if (nt = F[q], nt < I && ++j > a && R("overflow"), nt == I) {
3191
3191
  for (vt = j, At = h; tt = At <= yt ? u : At >= yt + l ? l : At - yt, !(vt < tt); At += h)
3192
3192
  L = vt - tt, U = h - tt, ht.push(
3193
3193
  E(B(tt + L % U, 0))
@@ -3223,7 +3223,7 @@ sn.exports;
3223
3223
  * @type Object
3224
3224
  */
3225
3225
  ucs2: {
3226
- decode: R,
3226
+ decode: O,
3227
3227
  encode: P
3228
3228
  },
3229
3229
  decode: D,
@@ -3269,25 +3269,25 @@ var _p = sn.exports, gp = function() {
3269
3269
  foo: {}
3270
3270
  }, xp = Object, Tp = function() {
3271
3271
  return { __proto__: ga }.foo === ga.foo && !({ __proto__: null } instanceof xp);
3272
- }, Ep = "Function.prototype.bind called on incompatible ", Ap = Object.prototype.toString, wp = Math.max, Op = "[object Function]", va = function(r, e) {
3272
+ }, Ep = "Function.prototype.bind called on incompatible ", Ap = Object.prototype.toString, wp = Math.max, Sp = "[object Function]", va = function(r, e) {
3273
3273
  for (var t = [], i = 0; i < r.length; i += 1)
3274
3274
  t[i] = r[i];
3275
3275
  for (var n = 0; n < e.length; n += 1)
3276
3276
  t[n + r.length] = e[n];
3277
3277
  return t;
3278
- }, Sp = function(r, e) {
3278
+ }, Rp = function(r, e) {
3279
3279
  for (var t = [], i = e || 0, n = 0; i < r.length; i += 1, n += 1)
3280
3280
  t[n] = r[i];
3281
3281
  return t;
3282
- }, Rp = function(r, e) {
3282
+ }, Op = function(r, e) {
3283
3283
  for (var t = "", i = 0; i < r.length; i += 1)
3284
3284
  t += r[i], i + 1 < r.length && (t += e);
3285
3285
  return t;
3286
3286
  }, Ip = function(r) {
3287
3287
  var e = this;
3288
- if (typeof e != "function" || Ap.apply(e) !== Op)
3288
+ if (typeof e != "function" || Ap.apply(e) !== Sp)
3289
3289
  throw new TypeError(Ep + e);
3290
- for (var t = Sp(arguments, 1), i, n = function() {
3290
+ for (var t = Rp(arguments, 1), i, n = function() {
3291
3291
  if (this instanceof i) {
3292
3292
  var u = e.apply(
3293
3293
  this,
@@ -3301,7 +3301,7 @@ var _p = sn.exports, gp = function() {
3301
3301
  );
3302
3302
  }, o = wp(0, e.length - t.length), s = [], a = 0; a < o; a++)
3303
3303
  s[a] = "$" + a;
3304
- if (i = Function("binder", "return function (" + Rp(s, ",") + "){ return binder.apply(this,arguments); }")(n), e.prototype) {
3304
+ if (i = Function("binder", "return function (" + Op(s, ",") + "){ return binder.apply(this,arguments); }")(n), e.prototype) {
3305
3305
  var h = function() {
3306
3306
  };
3307
3307
  h.prototype = e.prototype, i.prototype = new h(), h.prototype = null;
@@ -3477,7 +3477,7 @@ var Up = function r(e) {
3477
3477
  "%URIErrorPrototype%": ["URIError", "prototype"],
3478
3478
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3479
3479
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3480
- }, li = Ts, an = Np, kp = li.call(Function.call, Array.prototype.concat), Xp = li.call(Function.apply, Array.prototype.splice), xa = li.call(Function.call, String.prototype.replace), hn = li.call(Function.call, String.prototype.slice), jp = li.call(Function.call, RegExp.prototype.exec), Hp = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Yp = /\\(\\)?/g, zp = function(r) {
3480
+ }, li = Ts, an = Np, kp = li.call(Function.call, Array.prototype.concat), Xp = li.call(Function.apply, Array.prototype.splice), xa = li.call(Function.call, String.prototype.replace), hn = li.call(Function.call, String.prototype.slice), jp = li.call(Function.call, RegExp.prototype.exec), Hp = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Yp = /\\(\\)?/g, Vp = function(r) {
3481
3481
  var e = hn(r, 0, 1), t = hn(r, -1);
3482
3482
  if (e === "%" && t !== "%")
3483
3483
  throw new Er("invalid intrinsic syntax, expected closing `%`");
@@ -3487,7 +3487,7 @@ var Up = function r(e) {
3487
3487
  return xa(r, Hp, function(n, o, s, a) {
3488
3488
  i[i.length] = s ? xa(a, Yp, "$1") : o || n;
3489
3489
  }), i;
3490
- }, Vp = function(r, e) {
3490
+ }, zp = function(r, e) {
3491
3491
  var t = r, i;
3492
3492
  if (an(ba, t) && (i = ba[t], t = "%" + i[0] + "%"), an(qe, t)) {
3493
3493
  var n = qe[t];
@@ -3507,7 +3507,7 @@ var Up = function r(e) {
3507
3507
  throw new vr('"allowMissing" argument must be a boolean');
3508
3508
  if (jp(/^%?[^%]*%?$/, r) === null)
3509
3509
  throw new Er("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3510
- var t = zp(r), i = t.length > 0 ? t[0] : "", n = Vp("%" + i + "%", e), o = n.name, s = n.value, a = !1, h = n.alias;
3510
+ var t = Vp(r), i = t.length > 0 ? t[0] : "", n = zp("%" + i + "%", e), o = n.name, s = n.value, a = !1, h = n.alias;
3511
3511
  h && (i = h[0], Xp(t, kp([0, 1], h)));
3512
3512
  for (var u = 1, l = !0; u < t.length; u += 1) {
3513
3513
  var c = t[u], p = hn(c, 0, 1), f = hn(c, -1);
@@ -3530,37 +3530,37 @@ var Up = function r(e) {
3530
3530
  }
3531
3531
  }
3532
3532
  return s;
3533
- }, fu = { exports: {} }, Wp = tr, Oo = Wp("%Object.defineProperty%", !0), So = function() {
3534
- if (Oo)
3533
+ }, fu = { exports: {} }, Wp = tr, So = Wp("%Object.defineProperty%", !0), Ro = function() {
3534
+ if (So)
3535
3535
  try {
3536
- return Oo({}, "a", { value: 1 }), !0;
3536
+ return So({}, "a", { value: 1 }), !0;
3537
3537
  } catch {
3538
3538
  return !1;
3539
3539
  }
3540
3540
  return !1;
3541
3541
  };
3542
- So.hasArrayLengthDefineBug = function() {
3543
- if (!So())
3542
+ Ro.hasArrayLengthDefineBug = function() {
3543
+ if (!Ro())
3544
3544
  return null;
3545
3545
  try {
3546
- return Oo([], "length", { value: 1 }).length !== 1;
3546
+ return So([], "length", { value: 1 }).length !== 1;
3547
3547
  } catch {
3548
3548
  return !0;
3549
3549
  }
3550
3550
  };
3551
- var du = So, $p = tr, qi = $p("%Object.getOwnPropertyDescriptor%", !0);
3551
+ var du = Ro, $p = tr, qi = $p("%Object.getOwnPropertyDescriptor%", !0);
3552
3552
  if (qi)
3553
3553
  try {
3554
3554
  qi([], "length");
3555
3555
  } catch {
3556
3556
  qi = null;
3557
3557
  }
3558
- var mu = qi, qp = du(), Es = tr, Vr = qp && Es("%Object.defineProperty%", !0);
3559
- if (Vr)
3558
+ var mu = qi, qp = du(), Es = tr, zr = qp && Es("%Object.defineProperty%", !0);
3559
+ if (zr)
3560
3560
  try {
3561
- Vr({}, "a", { value: 1 });
3561
+ zr({}, "a", { value: 1 });
3562
3562
  } catch {
3563
- Vr = !1;
3563
+ zr = !1;
3564
3564
  }
3565
3565
  var Kp = Es("%SyntaxError%"), ar = Es("%TypeError%"), Ta = mu, Zp = function(r, e, t) {
3566
3566
  if (!r || typeof r != "object" && typeof r != "function")
@@ -3576,8 +3576,8 @@ var Kp = Es("%SyntaxError%"), ar = Es("%TypeError%"), Ta = mu, Zp = function(r,
3576
3576
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
3577
3577
  throw new ar("`loose`, if provided, must be a boolean");
3578
3578
  var i = arguments.length > 3 ? arguments[3] : null, n = arguments.length > 4 ? arguments[4] : null, o = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, a = !!Ta && Ta(r, e);
3579
- if (Vr)
3580
- Vr(r, e, {
3579
+ if (zr)
3580
+ zr(r, e, {
3581
3581
  configurable: o === null && a ? a.configurable : !o,
3582
3582
  enumerable: i === null && a ? a.enumerable : !i,
3583
3583
  value: t,
@@ -3630,7 +3630,7 @@ const of = {}, sf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3630
3630
  __proto__: null,
3631
3631
  default: of
3632
3632
  }, Symbol.toStringTag, { value: "Module" })), af = /* @__PURE__ */ kc(sf);
3633
- var As = typeof Map == "function" && Map.prototype, Ln = Object.getOwnPropertyDescriptor && As ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, un = As && Ln && typeof Ln.get == "function" ? Ln.get : null, Oa = As && Map.prototype.forEach, ws = typeof Set == "function" && Set.prototype, Bn = Object.getOwnPropertyDescriptor && ws ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ln = ws && Bn && typeof Bn.get == "function" ? Bn.get : null, Sa = ws && Set.prototype.forEach, hf = typeof WeakMap == "function" && WeakMap.prototype, Wr = hf ? WeakMap.prototype.has : null, uf = typeof WeakSet == "function" && WeakSet.prototype, $r = uf ? WeakSet.prototype.has : null, lf = typeof WeakRef == "function" && WeakRef.prototype, Ra = lf ? WeakRef.prototype.deref : null, cf = Boolean.prototype.valueOf, pf = Object.prototype.toString, ff = Function.prototype.toString, df = String.prototype.match, Os = String.prototype.slice, we = String.prototype.replace, mf = String.prototype.toUpperCase, Ia = String.prototype.toLowerCase, vu = RegExp.prototype.test, Ma = Array.prototype.concat, oe = Array.prototype.join, yf = Array.prototype.slice, Pa = Math.floor, Ro = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Gn = Object.getOwnPropertySymbols, Io = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Ar = typeof Symbol == "function" && typeof Symbol.iterator == "object", Bt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Ar || "symbol") ? Symbol.toStringTag : null, bu = Object.prototype.propertyIsEnumerable, Da = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
3633
+ var As = typeof Map == "function" && Map.prototype, Ln = Object.getOwnPropertyDescriptor && As ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, un = As && Ln && typeof Ln.get == "function" ? Ln.get : null, Sa = As && Map.prototype.forEach, ws = typeof Set == "function" && Set.prototype, Bn = Object.getOwnPropertyDescriptor && ws ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ln = ws && Bn && typeof Bn.get == "function" ? Bn.get : null, Ra = ws && Set.prototype.forEach, hf = typeof WeakMap == "function" && WeakMap.prototype, Wr = hf ? WeakMap.prototype.has : null, uf = typeof WeakSet == "function" && WeakSet.prototype, $r = uf ? WeakSet.prototype.has : null, lf = typeof WeakRef == "function" && WeakRef.prototype, Oa = lf ? WeakRef.prototype.deref : null, cf = Boolean.prototype.valueOf, pf = Object.prototype.toString, ff = Function.prototype.toString, df = String.prototype.match, Ss = String.prototype.slice, we = String.prototype.replace, mf = String.prototype.toUpperCase, Ia = String.prototype.toLowerCase, vu = RegExp.prototype.test, Ma = Array.prototype.concat, oe = Array.prototype.join, yf = Array.prototype.slice, Pa = Math.floor, Oo = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Gn = Object.getOwnPropertySymbols, Io = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Ar = typeof Symbol == "function" && typeof Symbol.iterator == "object", Bt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Ar || "symbol") ? Symbol.toStringTag : null, bu = Object.prototype.propertyIsEnumerable, Da = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
3634
3634
  return r.__proto__;
3635
3635
  } : null);
3636
3636
  function Ca(r, e) {
@@ -3640,7 +3640,7 @@ function Ca(r, e) {
3640
3640
  if (typeof r == "number") {
3641
3641
  var i = r < 0 ? -Pa(-r) : Pa(r);
3642
3642
  if (i !== r) {
3643
- var n = String(i), o = Os.call(e, n.length + 1);
3643
+ var n = String(i), o = Ss.call(e, n.length + 1);
3644
3644
  return we.call(n, t, "$&_") + "." + we.call(we.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
3645
3645
  }
3646
3646
  }
@@ -3696,7 +3696,7 @@ var Mo = af, Na = Mo.custom, Fa = Tu(Na) ? Na : null, _f = function r(e, t, i, n
3696
3696
  return r(N, o, i + 1, n);
3697
3697
  }
3698
3698
  if (typeof e == "function" && !La(e)) {
3699
- var f = Of(e), d = Ti(e, p);
3699
+ var f = Sf(e), d = Ti(e, p);
3700
3700
  return "[Function" + (f ? ": " + f : " (anonymous)") + "]" + (d.length > 0 ? " { " + oe.call(d, ", ") + " }" : "");
3701
3701
  }
3702
3702
  if (Tu(e)) {
@@ -3724,19 +3724,19 @@ var Mo = af, Na = Mo.custom, Fa = Tu(Na) ? Na : null, _f = function r(e, t, i, n
3724
3724
  if (s !== "symbol" && typeof e.inspect == "function")
3725
3725
  return e.inspect();
3726
3726
  }
3727
- if (Sf(e)) {
3727
+ if (Rf(e)) {
3728
3728
  var b = [];
3729
- return Oa && Oa.call(e, function(N, B) {
3729
+ return Sa && Sa.call(e, function(N, B) {
3730
3730
  b.push(p(B, e, !0) + " => " + p(N, e));
3731
3731
  }), Ba("Map", un.call(e), b, c);
3732
3732
  }
3733
3733
  if (Mf(e)) {
3734
3734
  var E = [];
3735
- return Sa && Sa.call(e, function(N) {
3735
+ return Ra && Ra.call(e, function(N) {
3736
3736
  E.push(p(N, e));
3737
3737
  }), Ba("Set", ln.call(e), E, c);
3738
3738
  }
3739
- if (Rf(e))
3739
+ if (Of(e))
3740
3740
  return Un("WeakMap");
3741
3741
  if (Pf(e))
3742
3742
  return Un("WeakSet");
@@ -3745,7 +3745,7 @@ var Mo = af, Na = Mo.custom, Fa = Tu(Na) ? Na : null, _f = function r(e, t, i, n
3745
3745
  if (Tf(e))
3746
3746
  return Fr(p(Number(e)));
3747
3747
  if (Af(e))
3748
- return Fr(p(Ro.call(e)));
3748
+ return Fr(p(Oo.call(e)));
3749
3749
  if (Ef(e))
3750
3750
  return Fr(cf.call(e));
3751
3751
  if (xf(e))
@@ -3755,7 +3755,7 @@ var Mo = af, Na = Mo.custom, Fa = Tu(Na) ? Na : null, _f = function r(e, t, i, n
3755
3755
  if (e === $i)
3756
3756
  return "{ [object globalThis] }";
3757
3757
  if (!vf(e) && !La(e)) {
3758
- var A = Ti(e, p), S = Da ? Da(e) === Object.prototype : e instanceof Object || e.constructor === Object, O = e instanceof Object ? "" : "null prototype", w = !S && Bt && Object(e) === e && Bt in e ? Os.call(Ce(e), 8, -1) : O ? "Object" : "", R = S || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", P = R + (w || O ? "[" + oe.call(Ma.call([], w || [], O || []), ": ") + "] " : "");
3758
+ var A = Ti(e, p), R = Da ? Da(e) === Object.prototype : e instanceof Object || e.constructor === Object, S = e instanceof Object ? "" : "null prototype", w = !R && Bt && Object(e) === e && Bt in e ? Ss.call(Ce(e), 8, -1) : S ? "Object" : "", O = R || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", P = O + (w || S ? "[" + oe.call(Ma.call([], w || [], S || []), ": ") + "] " : "");
3759
3759
  return A.length === 0 ? P + "{}" : c ? P + "{" + Do(A, c) + "}" : P + "{ " + oe.call(A, ", ") + " }";
3760
3760
  }
3761
3761
  return String(e);
@@ -3802,10 +3802,10 @@ function Tu(r) {
3802
3802
  return !1;
3803
3803
  }
3804
3804
  function Af(r) {
3805
- if (!r || typeof r != "object" || !Ro)
3805
+ if (!r || typeof r != "object" || !Oo)
3806
3806
  return !1;
3807
3807
  try {
3808
- return Ro.call(r), !0;
3808
+ return Oo.call(r), !0;
3809
3809
  } catch {
3810
3810
  }
3811
3811
  return !1;
@@ -3819,7 +3819,7 @@ function Ae(r, e) {
3819
3819
  function Ce(r) {
3820
3820
  return pf.call(r);
3821
3821
  }
3822
- function Of(r) {
3822
+ function Sf(r) {
3823
3823
  if (r.name)
3824
3824
  return r.name;
3825
3825
  var e = df.call(ff.call(r), /^function\s*([\w$]+)/);
@@ -3833,7 +3833,7 @@ function Eu(r, e) {
3833
3833
  return t;
3834
3834
  return -1;
3835
3835
  }
3836
- function Sf(r) {
3836
+ function Rf(r) {
3837
3837
  if (!un || !r || typeof r != "object")
3838
3838
  return !1;
3839
3839
  try {
@@ -3848,7 +3848,7 @@ function Sf(r) {
3848
3848
  }
3849
3849
  return !1;
3850
3850
  }
3851
- function Rf(r) {
3851
+ function Of(r) {
3852
3852
  if (!Wr || !r || typeof r != "object")
3853
3853
  return !1;
3854
3854
  try {
@@ -3864,10 +3864,10 @@ function Rf(r) {
3864
3864
  return !1;
3865
3865
  }
3866
3866
  function If(r) {
3867
- if (!Ra || !r || typeof r != "object")
3867
+ if (!Oa || !r || typeof r != "object")
3868
3868
  return !1;
3869
3869
  try {
3870
- return Ra.call(r), !0;
3870
+ return Oa.call(r), !0;
3871
3871
  } catch {
3872
3872
  }
3873
3873
  return !1;
@@ -3908,7 +3908,7 @@ function Df(r) {
3908
3908
  function Au(r, e) {
3909
3909
  if (r.length > e.maxStringLength) {
3910
3910
  var t = r.length - e.maxStringLength, i = "... " + t + " more character" + (t > 1 ? "s" : "");
3911
- return Au(Os.call(r, 0, e.maxStringLength), e) + i;
3911
+ return Au(Ss.call(r, 0, e.maxStringLength), e) + i;
3912
3912
  }
3913
3913
  var n = we.call(we.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Cf);
3914
3914
  return xu(n, "single", e);
@@ -3981,23 +3981,23 @@ function Ti(r, e) {
3981
3981
  bu.call(r, o[u]) && i.push("[" + e(o[u]) + "]: " + e(r[o[u]], r));
3982
3982
  return i;
3983
3983
  }
3984
- var Ss = tr, Dr = nf, Lf = _f, Bf = Ss("%TypeError%"), Ei = Ss("%WeakMap%", !0), Ai = Ss("%Map%", !0), Gf = Dr("WeakMap.prototype.get", !0), Uf = Dr("WeakMap.prototype.set", !0), kf = Dr("WeakMap.prototype.has", !0), Xf = Dr("Map.prototype.get", !0), jf = Dr("Map.prototype.set", !0), Hf = Dr("Map.prototype.has", !0), Rs = function(r, e) {
3984
+ var Rs = tr, Dr = nf, Lf = _f, Bf = Rs("%TypeError%"), Ei = Rs("%WeakMap%", !0), Ai = Rs("%Map%", !0), Gf = Dr("WeakMap.prototype.get", !0), Uf = Dr("WeakMap.prototype.set", !0), kf = Dr("WeakMap.prototype.has", !0), Xf = Dr("Map.prototype.get", !0), jf = Dr("Map.prototype.set", !0), Hf = Dr("Map.prototype.has", !0), Os = function(r, e) {
3985
3985
  for (var t = r, i; (i = t.next) !== null; t = i)
3986
3986
  if (i.key === e)
3987
3987
  return t.next = i.next, i.next = r.next, r.next = i, i;
3988
3988
  }, Yf = function(r, e) {
3989
- var t = Rs(r, e);
3989
+ var t = Os(r, e);
3990
3990
  return t && t.value;
3991
- }, zf = function(r, e, t) {
3992
- var i = Rs(r, e);
3991
+ }, Vf = function(r, e, t) {
3992
+ var i = Os(r, e);
3993
3993
  i ? i.value = t : r.next = {
3994
3994
  // eslint-disable-line no-param-reassign
3995
3995
  key: e,
3996
3996
  next: r.next,
3997
3997
  value: t
3998
3998
  };
3999
- }, Vf = function(r, e) {
4000
- return !!Rs(r, e);
3999
+ }, zf = function(r, e) {
4000
+ return !!Os(r, e);
4001
4001
  }, Wf = function() {
4002
4002
  var r, e, t, i = {
4003
4003
  assert: function(n) {
@@ -4022,11 +4022,11 @@ var Ss = tr, Dr = nf, Lf = _f, Bf = Ss("%TypeError%"), Ei = Ss("%WeakMap%", !0),
4022
4022
  if (e)
4023
4023
  return Hf(e, n);
4024
4024
  } else if (t)
4025
- return Vf(t, n);
4025
+ return zf(t, n);
4026
4026
  return !1;
4027
4027
  },
4028
4028
  set: function(n, o) {
4029
- Ei && n && (typeof n == "object" || typeof n == "function") ? (r || (r = new Ei()), Uf(r, n, o)) : Ai ? (e || (e = new Ai()), jf(e, n, o)) : (t || (t = { key: {}, next: null }), zf(t, n, o));
4029
+ Ei && n && (typeof n == "object" || typeof n == "function") ? (r || (r = new Ei()), Uf(r, n, o)) : Ai ? (e || (e = new Ai()), jf(e, n, o)) : (t || (t = { key: {}, next: null }), Vf(t, n, o));
4030
4030
  }
4031
4031
  };
4032
4032
  return i;
@@ -4149,7 +4149,7 @@ var Ss = tr, Dr = nf, Lf = _f, Bf = Ss("%TypeError%"), Ei = Ss("%WeakMap%", !0),
4149
4149
  return t;
4150
4150
  }
4151
4151
  return e(r);
4152
- }, Ou = {
4152
+ }, Su = {
4153
4153
  arrayToObject: wu,
4154
4154
  assign: Qf,
4155
4155
  combine: od,
@@ -4160,7 +4160,7 @@ var Ss = tr, Dr = nf, Lf = _f, Bf = Ss("%TypeError%"), Ei = Ss("%WeakMap%", !0),
4160
4160
  isRegExp: id,
4161
4161
  maybeMap: sd,
4162
4162
  merge: Jf
4163
- }, Su = Wf, Ki = Ou, qr = Is, ad = Object.prototype.hasOwnProperty, Ga = {
4163
+ }, Ru = Wf, Ki = Su, qr = Is, ad = Object.prototype.hasOwnProperty, Ga = {
4164
4164
  brackets: function(r) {
4165
4165
  return r + "[]";
4166
4166
  },
@@ -4171,7 +4171,7 @@ var Ss = tr, Dr = nf, Lf = _f, Bf = Ss("%TypeError%"), Ei = Ss("%WeakMap%", !0),
4171
4171
  repeat: function(r) {
4172
4172
  return r;
4173
4173
  }
4174
- }, ye = Array.isArray, hd = Array.prototype.push, Ru = function(r, e) {
4174
+ }, ye = Array.isArray, hd = Array.prototype.push, Ou = function(r, e) {
4175
4175
  hd.apply(r, ye(e) ? e : [e]);
4176
4176
  }, ud = Date.prototype.toISOString, Ua = qr.default, Ft = {
4177
4177
  addQueryPrefix: !1,
@@ -4220,22 +4220,22 @@ var Ss = tr, Dr = nf, Lf = _f, Bf = Ss("%TypeError%"), Ei = Ss("%WeakMap%", !0),
4220
4220
  var A = [];
4221
4221
  if (typeof g > "u")
4222
4222
  return A;
4223
- var S;
4223
+ var R;
4224
4224
  if (i === "comma" && ye(g))
4225
- d && a && (g = Ki.maybeMap(g, a)), S = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
4225
+ d && a && (g = Ki.maybeMap(g, a)), R = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
4226
4226
  else if (ye(h))
4227
- S = h;
4227
+ R = h;
4228
4228
  else {
4229
- var O = Object.keys(g);
4230
- S = u ? O.sort(u) : O;
4229
+ var S = Object.keys(g);
4230
+ R = u ? S.sort(u) : S;
4231
4231
  }
4232
- for (var w = n && ye(g) && g.length === 1 ? t + "[]" : t, R = 0; R < S.length; ++R) {
4233
- var P = S[R], N = typeof P == "object" && typeof P.value < "u" ? P.value : g[P];
4232
+ for (var w = n && ye(g) && g.length === 1 ? t + "[]" : t, O = 0; O < R.length; ++O) {
4233
+ var P = R[O], N = typeof P == "object" && typeof P.value < "u" ? P.value : g[P];
4234
4234
  if (!(s && N === null)) {
4235
4235
  var B = ye(g) ? typeof i == "function" ? i(w, P) : w : w + (l ? "." + P : "[" + P + "]");
4236
4236
  y.set(e, v);
4237
- var M = Su();
4238
- M.set(jn, y), Ru(A, r(
4237
+ var M = Ru();
4238
+ M.set(jn, y), Ou(A, r(
4239
4239
  N,
4240
4240
  B,
4241
4241
  i,
@@ -4301,9 +4301,9 @@ var Ss = tr, Dr = nf, Lf = _f, Bf = Ss("%TypeError%"), Ei = Ss("%WeakMap%", !0),
4301
4301
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
4302
4302
  var u = h === "comma" && e && e.commaRoundTrip;
4303
4303
  n || (n = Object.keys(t)), i.sort && n.sort(i.sort);
4304
- for (var l = Su(), c = 0; c < n.length; ++c) {
4304
+ for (var l = Ru(), c = 0; c < n.length; ++c) {
4305
4305
  var p = n[c];
4306
- i.skipNulls && t[p] === null || Ru(s, cd(
4306
+ i.skipNulls && t[p] === null || Ou(s, cd(
4307
4307
  t[p],
4308
4308
  p,
4309
4309
  h,
@@ -4324,7 +4324,7 @@ var Ss = tr, Dr = nf, Lf = _f, Bf = Ss("%TypeError%"), Ei = Ss("%WeakMap%", !0),
4324
4324
  }
4325
4325
  var f = s.join(i.delimiter), d = i.addQueryPrefix === !0 ? "?" : "";
4326
4326
  return i.charsetSentinel && (i.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), f.length > 0 ? d + f : "";
4327
- }, wr = Ou, Co = Object.prototype.hasOwnProperty, dd = Array.isArray, It = {
4327
+ }, wr = Su, Co = Object.prototype.hasOwnProperty, dd = Array.isArray, It = {
4328
4328
  allowDots: !1,
4329
4329
  allowPrototypes: !1,
4330
4330
  allowSparse: !1,
@@ -4427,15 +4427,15 @@ var Ss = tr, Dr = nf, Lf = _f, Bf = Ss("%TypeError%"), Ei = Ss("%WeakMap%", !0),
4427
4427
  n = wr.merge(n, h, t);
4428
4428
  }
4429
4429
  return t.allowSparse === !0 ? n : wr.compact(n);
4430
- }, Ed = fd, Ad = Td, wd = Is, Od = {
4430
+ }, Ed = fd, Ad = Td, wd = Is, Sd = {
4431
4431
  formats: wd,
4432
4432
  parse: Ad,
4433
4433
  stringify: Ed
4434
- }, Sd = _p;
4434
+ }, Rd = _p;
4435
4435
  function Zt() {
4436
4436
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
4437
4437
  }
4438
- var Rd = /^([a-z0-9.+-]+:)/i, Id = /:[0-9]*$/, Md = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Pd = [
4438
+ var Od = /^([a-z0-9.+-]+:)/i, Id = /:[0-9]*$/, Md = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Pd = [
4439
4439
  "<",
4440
4440
  ">",
4441
4441
  '"',
@@ -4479,7 +4479,7 @@ var Rd = /^([a-z0-9.+-]+:)/i, Id = /:[0-9]*$/, Md = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
4479
4479
  "ftp:": !0,
4480
4480
  "gopher:": !0,
4481
4481
  "file:": !0
4482
- }, Lo = Od;
4482
+ }, Lo = Sd;
4483
4483
  function xn(r, e, t) {
4484
4484
  if (r && typeof r == "object" && r instanceof Zt)
4485
4485
  return r;
@@ -4497,7 +4497,7 @@ Zt.prototype.parse = function(r, e, t) {
4497
4497
  if (h)
4498
4498
  return this.path = a, this.href = a, this.pathname = h[1], h[2] ? (this.search = h[2], e ? this.query = Lo.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : e && (this.search = "", this.query = {}), this;
4499
4499
  }
4500
- var u = Rd.exec(a);
4500
+ var u = Od.exec(a);
4501
4501
  if (u) {
4502
4502
  u = u[0];
4503
4503
  var l = u.toLowerCase();
@@ -4527,15 +4527,15 @@ Zt.prototype.parse = function(r, e, t) {
4527
4527
  for (var b = "", E = 0, A = T.length; E < A; E++)
4528
4528
  T.charCodeAt(E) > 127 ? b += "x" : b += T[E];
4529
4529
  if (!b.match(ja)) {
4530
- var S = _.slice(0, f), O = _.slice(f + 1), w = T.match(Nd);
4531
- w && (S.push(w[1]), O.unshift(w[2])), O.length && (a = "/" + O.join(".") + a), this.hostname = S.join(".");
4530
+ var R = _.slice(0, f), S = _.slice(f + 1), w = T.match(Nd);
4531
+ w && (R.push(w[1]), S.unshift(w[2])), S.length && (a = "/" + S.join(".") + a), this.hostname = R.join(".");
4532
4532
  break;
4533
4533
  }
4534
4534
  }
4535
4535
  }
4536
- this.hostname.length > Cd ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), g || (this.hostname = Sd.toASCII(this.hostname));
4537
- var R = this.port ? ":" + this.port : "", P = this.hostname || "";
4538
- this.host = P + R, this.href += this.host, g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), a[0] !== "/" && (a = "/" + a));
4536
+ this.hostname.length > Cd ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), g || (this.hostname = Rd.toASCII(this.hostname));
4537
+ var O = this.port ? ":" + this.port : "", P = this.hostname || "";
4538
+ this.host = P + O, this.href += this.host, g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), a[0] !== "/" && (a = "/" + a));
4539
4539
  }
4540
4540
  if (!Fd[l])
4541
4541
  for (var f = 0, v = No.length; f < v; f++) {
@@ -4549,8 +4549,8 @@ Zt.prototype.parse = function(r, e, t) {
4549
4549
  M !== -1 && (this.hash = a.substr(M), a = a.slice(0, M));
4550
4550
  var D = a.indexOf("?");
4551
4551
  if (D !== -1 ? (this.search = a.substr(D), this.query = a.substr(D + 1), e && (this.query = Lo.parse(this.query)), a = a.slice(0, D)) : e && (this.search = "", this.query = {}), a && (this.pathname = a), br[l] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
4552
- var R = this.pathname || "", Y = this.search || "";
4553
- this.path = R + Y;
4552
+ var O = this.pathname || "", Y = this.search || "";
4553
+ this.path = O + Y;
4554
4554
  }
4555
4555
  return this.href = this.format(), this;
4556
4556
  };
@@ -4629,10 +4629,10 @@ Zt.prototype.resolveObject = function(r) {
4629
4629
  }
4630
4630
  if (!_.length)
4631
4631
  return t.pathname = null, t.search ? t.path = "/" + t.search : t.path = null, t.href = t.format(), t;
4632
- for (var E = _.slice(-1)[0], A = (t.host || r.host || _.length > 1) && (E === "." || E === "..") || E === "", S = 0, O = _.length; O >= 0; O--)
4633
- E = _[O], E === "." ? _.splice(O, 1) : E === ".." ? (_.splice(O, 1), S++) : S && (_.splice(O, 1), S--);
4632
+ for (var E = _.slice(-1)[0], A = (t.host || r.host || _.length > 1) && (E === "." || E === "..") || E === "", R = 0, S = _.length; S >= 0; S--)
4633
+ E = _[S], E === "." ? _.splice(S, 1) : E === ".." ? (_.splice(S, 1), R++) : R && (_.splice(S, 1), R--);
4634
4634
  if (!y && !g)
4635
- for (; S--; S)
4635
+ for (; R--; R)
4636
4636
  _.unshift("..");
4637
4637
  y && _[0] !== "" && (!_[0] || _[0].charAt(0) !== "/") && _.unshift(""), A && _.join("/").substr(-1) !== "/" && _.push("");
4638
4638
  var w = _[0] === "" || _[0] && _[0].charAt(0) === "/";
@@ -4709,11 +4709,11 @@ function jd() {
4709
4709
  }
4710
4710
  }()), Hn;
4711
4711
  }
4712
- var Hd = "#f0f8ff", Yd = "#faebd7", zd = "#00ffff", Vd = "#7fffd4", Wd = "#f0ffff", $d = "#f5f5dc", qd = "#ffe4c4", Kd = "#000000", Zd = "#ffebcd", Jd = "#0000ff", Qd = "#8a2be2", tm = "#a52a2a", em = "#deb887", rm = "#5f9ea0", im = "#7fff00", nm = "#d2691e", om = "#ff7f50", sm = "#6495ed", am = "#fff8dc", hm = "#dc143c", um = "#00ffff", lm = "#00008b", cm = "#008b8b", pm = "#b8860b", fm = "#a9a9a9", dm = "#006400", mm = "#a9a9a9", ym = "#bdb76b", _m = "#8b008b", gm = "#556b2f", vm = "#ff8c00", bm = "#9932cc", xm = "#8b0000", Tm = "#e9967a", Em = "#8fbc8f", Am = "#483d8b", wm = "#2f4f4f", Om = "#2f4f4f", Sm = "#00ced1", Rm = "#9400d3", Im = "#ff1493", Mm = "#00bfff", Pm = "#696969", Dm = "#696969", Cm = "#1e90ff", Nm = "#b22222", Fm = "#fffaf0", Lm = "#228b22", Bm = "#ff00ff", Gm = "#dcdcdc", Um = "#f8f8ff", km = "#daa520", Xm = "#ffd700", jm = "#808080", Hm = "#008000", Ym = "#adff2f", zm = "#808080", Vm = "#f0fff0", Wm = "#ff69b4", $m = "#cd5c5c", qm = "#4b0082", Km = "#fffff0", Zm = "#f0e68c", Jm = "#fff0f5", Qm = "#e6e6fa", ty = "#7cfc00", ey = "#fffacd", ry = "#add8e6", iy = "#f08080", ny = "#e0ffff", oy = "#fafad2", sy = "#d3d3d3", ay = "#90ee90", hy = "#d3d3d3", uy = "#ffb6c1", ly = "#ffa07a", cy = "#20b2aa", py = "#87cefa", fy = "#778899", dy = "#778899", my = "#b0c4de", yy = "#ffffe0", _y = "#00ff00", gy = "#32cd32", vy = "#faf0e6", by = "#ff00ff", xy = "#800000", Ty = "#66cdaa", Ey = "#0000cd", Ay = "#ba55d3", wy = "#9370db", Oy = "#3cb371", Sy = "#7b68ee", Ry = "#00fa9a", Iy = "#48d1cc", My = "#c71585", Py = "#191970", Dy = "#f5fffa", Cy = "#ffe4e1", Ny = "#ffe4b5", Fy = "#ffdead", Ly = "#000080", By = "#fdf5e6", Gy = "#808000", Uy = "#6b8e23", ky = "#ffa500", Xy = "#ff4500", jy = "#da70d6", Hy = "#eee8aa", Yy = "#98fb98", zy = "#afeeee", Vy = "#db7093", Wy = "#ffefd5", $y = "#ffdab9", qy = "#cd853f", Ky = "#ffc0cb", Zy = "#dda0dd", Jy = "#b0e0e6", Qy = "#800080", t_ = "#663399", e_ = "#ff0000", r_ = "#bc8f8f", i_ = "#4169e1", n_ = "#8b4513", o_ = "#fa8072", s_ = "#f4a460", a_ = "#2e8b57", h_ = "#fff5ee", u_ = "#a0522d", l_ = "#c0c0c0", c_ = "#87ceeb", p_ = "#6a5acd", f_ = "#708090", d_ = "#708090", m_ = "#fffafa", y_ = "#00ff7f", __ = "#4682b4", g_ = "#d2b48c", v_ = "#008080", b_ = "#d8bfd8", x_ = "#ff6347", T_ = "#40e0d0", E_ = "#ee82ee", A_ = "#f5deb3", w_ = "#ffffff", O_ = "#f5f5f5", S_ = "#ffff00", R_ = "#9acd32", I_ = {
4712
+ var Hd = "#f0f8ff", Yd = "#faebd7", Vd = "#00ffff", zd = "#7fffd4", Wd = "#f0ffff", $d = "#f5f5dc", qd = "#ffe4c4", Kd = "#000000", Zd = "#ffebcd", Jd = "#0000ff", Qd = "#8a2be2", tm = "#a52a2a", em = "#deb887", rm = "#5f9ea0", im = "#7fff00", nm = "#d2691e", om = "#ff7f50", sm = "#6495ed", am = "#fff8dc", hm = "#dc143c", um = "#00ffff", lm = "#00008b", cm = "#008b8b", pm = "#b8860b", fm = "#a9a9a9", dm = "#006400", mm = "#a9a9a9", ym = "#bdb76b", _m = "#8b008b", gm = "#556b2f", vm = "#ff8c00", bm = "#9932cc", xm = "#8b0000", Tm = "#e9967a", Em = "#8fbc8f", Am = "#483d8b", wm = "#2f4f4f", Sm = "#2f4f4f", Rm = "#00ced1", Om = "#9400d3", Im = "#ff1493", Mm = "#00bfff", Pm = "#696969", Dm = "#696969", Cm = "#1e90ff", Nm = "#b22222", Fm = "#fffaf0", Lm = "#228b22", Bm = "#ff00ff", Gm = "#dcdcdc", Um = "#f8f8ff", km = "#daa520", Xm = "#ffd700", jm = "#808080", Hm = "#008000", Ym = "#adff2f", Vm = "#808080", zm = "#f0fff0", Wm = "#ff69b4", $m = "#cd5c5c", qm = "#4b0082", Km = "#fffff0", Zm = "#f0e68c", Jm = "#fff0f5", Qm = "#e6e6fa", ty = "#7cfc00", ey = "#fffacd", ry = "#add8e6", iy = "#f08080", ny = "#e0ffff", oy = "#fafad2", sy = "#d3d3d3", ay = "#90ee90", hy = "#d3d3d3", uy = "#ffb6c1", ly = "#ffa07a", cy = "#20b2aa", py = "#87cefa", fy = "#778899", dy = "#778899", my = "#b0c4de", yy = "#ffffe0", _y = "#00ff00", gy = "#32cd32", vy = "#faf0e6", by = "#ff00ff", xy = "#800000", Ty = "#66cdaa", Ey = "#0000cd", Ay = "#ba55d3", wy = "#9370db", Sy = "#3cb371", Ry = "#7b68ee", Oy = "#00fa9a", Iy = "#48d1cc", My = "#c71585", Py = "#191970", Dy = "#f5fffa", Cy = "#ffe4e1", Ny = "#ffe4b5", Fy = "#ffdead", Ly = "#000080", By = "#fdf5e6", Gy = "#808000", Uy = "#6b8e23", ky = "#ffa500", Xy = "#ff4500", jy = "#da70d6", Hy = "#eee8aa", Yy = "#98fb98", Vy = "#afeeee", zy = "#db7093", Wy = "#ffefd5", $y = "#ffdab9", qy = "#cd853f", Ky = "#ffc0cb", Zy = "#dda0dd", Jy = "#b0e0e6", Qy = "#800080", t_ = "#663399", e_ = "#ff0000", r_ = "#bc8f8f", i_ = "#4169e1", n_ = "#8b4513", o_ = "#fa8072", s_ = "#f4a460", a_ = "#2e8b57", h_ = "#fff5ee", u_ = "#a0522d", l_ = "#c0c0c0", c_ = "#87ceeb", p_ = "#6a5acd", f_ = "#708090", d_ = "#708090", m_ = "#fffafa", y_ = "#00ff7f", __ = "#4682b4", g_ = "#d2b48c", v_ = "#008080", b_ = "#d8bfd8", x_ = "#ff6347", T_ = "#40e0d0", E_ = "#ee82ee", A_ = "#f5deb3", w_ = "#ffffff", S_ = "#f5f5f5", R_ = "#ffff00", O_ = "#9acd32", I_ = {
4713
4713
  aliceblue: Hd,
4714
4714
  antiquewhite: Yd,
4715
- aqua: zd,
4716
- aquamarine: Vd,
4715
+ aqua: Vd,
4716
+ aquamarine: zd,
4717
4717
  azure: Wd,
4718
4718
  beige: $d,
4719
4719
  bisque: qd,
@@ -4747,9 +4747,9 @@ var Hd = "#f0f8ff", Yd = "#faebd7", zd = "#00ffff", Vd = "#7fffd4", Wd = "#f0fff
4747
4747
  darkseagreen: Em,
4748
4748
  darkslateblue: Am,
4749
4749
  darkslategray: wm,
4750
- darkslategrey: Om,
4751
- darkturquoise: Sm,
4752
- darkviolet: Rm,
4750
+ darkslategrey: Sm,
4751
+ darkturquoise: Rm,
4752
+ darkviolet: Om,
4753
4753
  deeppink: Im,
4754
4754
  deepskyblue: Mm,
4755
4755
  dimgray: Pm,
@@ -4766,8 +4766,8 @@ var Hd = "#f0f8ff", Yd = "#faebd7", zd = "#00ffff", Vd = "#7fffd4", Wd = "#f0fff
4766
4766
  gray: jm,
4767
4767
  green: Hm,
4768
4768
  greenyellow: Ym,
4769
- grey: zm,
4770
- honeydew: Vm,
4769
+ grey: Vm,
4770
+ honeydew: zm,
4771
4771
  hotpink: Wm,
4772
4772
  indianred: $m,
4773
4773
  indigo: qm,
@@ -4801,9 +4801,9 @@ var Hd = "#f0f8ff", Yd = "#faebd7", zd = "#00ffff", Vd = "#7fffd4", Wd = "#f0fff
4801
4801
  mediumblue: Ey,
4802
4802
  mediumorchid: Ay,
4803
4803
  mediumpurple: wy,
4804
- mediumseagreen: Oy,
4805
- mediumslateblue: Sy,
4806
- mediumspringgreen: Ry,
4804
+ mediumseagreen: Sy,
4805
+ mediumslateblue: Ry,
4806
+ mediumspringgreen: Oy,
4807
4807
  mediumturquoise: Iy,
4808
4808
  mediumvioletred: My,
4809
4809
  midnightblue: Py,
@@ -4820,8 +4820,8 @@ var Hd = "#f0f8ff", Yd = "#faebd7", zd = "#00ffff", Vd = "#7fffd4", Wd = "#f0fff
4820
4820
  orchid: jy,
4821
4821
  palegoldenrod: Hy,
4822
4822
  palegreen: Yy,
4823
- paleturquoise: zy,
4824
- palevioletred: Vy,
4823
+ paleturquoise: Vy,
4824
+ palevioletred: zy,
4825
4825
  papayawhip: Wy,
4826
4826
  peachpuff: $y,
4827
4827
  peru: qy,
@@ -4855,11 +4855,11 @@ var Hd = "#f0f8ff", Yd = "#faebd7", zd = "#00ffff", Vd = "#7fffd4", Wd = "#f0fff
4855
4855
  violet: E_,
4856
4856
  wheat: A_,
4857
4857
  white: w_,
4858
- whitesmoke: O_,
4859
- yellow: S_,
4860
- yellowgreen: R_
4858
+ whitesmoke: S_,
4859
+ yellow: R_,
4860
+ yellowgreen: O_
4861
4861
  };
4862
- function Or(r, e) {
4862
+ function Sr(r, e) {
4863
4863
  return e === void 0 && (e = []), e[0] = (r >> 16 & 255) / 255, e[1] = (r >> 8 & 255) / 255, e[2] = (r & 255) / 255, e;
4864
4864
  }
4865
4865
  function Mu(r) {
@@ -4916,10 +4916,10 @@ function Nu(r) {
4916
4916
  function cn(r) {
4917
4917
  return r += r === 0 ? 1 : 0, --r, r |= r >>> 1, r |= r >>> 2, r |= r >>> 4, r |= r >>> 8, r |= r >>> 16, r + 1;
4918
4918
  }
4919
- function za(r) {
4919
+ function Va(r) {
4920
4920
  return !(r & r - 1) && !!r;
4921
4921
  }
4922
- function Va(r) {
4922
+ function za(r) {
4923
4923
  var e = (r > 65535 ? 1 : 0) << 4;
4924
4924
  r >>>= e;
4925
4925
  var t = (r > 255 ? 1 : 0) << 3;
@@ -5055,7 +5055,7 @@ var _t = (
5055
5055
  return "[@pixi/math:Point x=" + this.x + " y=" + this.y + "]";
5056
5056
  }, r;
5057
5057
  }()
5058
- ), Oi = [new _t(), new _t(), new _t(), new _t()], it = (
5058
+ ), Si = [new _t(), new _t(), new _t(), new _t()], it = (
5059
5059
  /** @class */
5060
5060
  function() {
5061
5061
  function r(e, t, i, n) {
@@ -5115,7 +5115,7 @@ var _t = (
5115
5115
  var a = this.left, h = this.right, u = this.top, l = this.bottom;
5116
5116
  if (h <= a || l <= u)
5117
5117
  return !1;
5118
- var c = Oi[0].set(e.left, e.top), p = Oi[1].set(e.left, e.bottom), f = Oi[2].set(e.right, e.top), d = Oi[3].set(e.right, e.bottom);
5118
+ var c = Si[0].set(e.left, e.top), p = Si[1].set(e.left, e.bottom), f = Si[2].set(e.right, e.top), d = Si[3].set(e.right, e.bottom);
5119
5119
  if (f.x <= c.x || p.y <= c.y)
5120
5120
  return !1;
5121
5121
  var m = Math.sign(t.a * t.d - t.b * t.c);
@@ -5124,8 +5124,8 @@ var _t = (
5124
5124
  var y = m * (p.y - c.y), g = m * (c.x - p.x), _ = y * a + g * u, v = y * h + g * u, T = y * a + g * l, b = y * h + g * l;
5125
5125
  if (Math.max(_, v, T, b) <= y * c.x + g * c.y || Math.min(_, v, T, b) >= y * d.x + g * d.y)
5126
5126
  return !1;
5127
- var E = m * (c.y - f.y), A = m * (f.x - c.x), S = E * a + A * u, O = E * h + A * u, w = E * a + A * l, R = E * h + A * l;
5128
- return !(Math.max(S, O, w, R) <= E * c.x + A * c.y || Math.min(S, O, w, R) >= E * d.x + A * d.y);
5127
+ var E = m * (c.y - f.y), A = m * (f.x - c.x), R = E * a + A * u, S = E * h + A * u, w = E * a + A * l, O = E * h + A * l;
5128
+ return !(Math.max(R, S, w, O) <= E * c.x + A * c.y || Math.min(R, S, w, O) >= E * d.x + A * d.y);
5129
5129
  }, r.prototype.pad = function(e, t) {
5130
5130
  return e === void 0 && (e = 0), t === void 0 && (t = e), this.x -= e, this.y -= t, this.width += e * 2, this.height += t * 2, this;
5131
5131
  }, r.prototype.fit = function(e) {
@@ -5273,7 +5273,7 @@ var _t = (
5273
5273
  configurable: !0
5274
5274
  }), r;
5275
5275
  }()
5276
- ), Rt = (
5276
+ ), Ot = (
5277
5277
  /** @class */
5278
5278
  function() {
5279
5279
  function r(e, t, i, n, o, s) {
@@ -5353,20 +5353,20 @@ var _t = (
5353
5353
  configurable: !0
5354
5354
  }), r;
5355
5355
  }()
5356
- ), ke = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], Xe = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], je = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], He = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], Bo = [], Fu = [], Si = Math.sign;
5356
+ ), ke = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], Xe = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], je = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], He = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], Bo = [], Fu = [], Ri = Math.sign;
5357
5357
  function X_() {
5358
5358
  for (var r = 0; r < 16; r++) {
5359
5359
  var e = [];
5360
5360
  Bo.push(e);
5361
5361
  for (var t = 0; t < 16; t++)
5362
- for (var i = Si(ke[r] * ke[t] + je[r] * Xe[t]), n = Si(Xe[r] * ke[t] + He[r] * Xe[t]), o = Si(ke[r] * je[t] + je[r] * He[t]), s = Si(Xe[r] * je[t] + He[r] * He[t]), a = 0; a < 16; a++)
5362
+ for (var i = Ri(ke[r] * ke[t] + je[r] * Xe[t]), n = Ri(Xe[r] * ke[t] + He[r] * Xe[t]), o = Ri(ke[r] * je[t] + je[r] * He[t]), s = Ri(Xe[r] * je[t] + He[r] * He[t]), a = 0; a < 16; a++)
5363
5363
  if (ke[a] === i && Xe[a] === n && je[a] === o && He[a] === s) {
5364
5364
  e.push(a);
5365
5365
  break;
5366
5366
  }
5367
5367
  }
5368
5368
  for (var r = 0; r < 16; r++) {
5369
- var h = new Rt();
5369
+ var h = new Ot();
5370
5370
  h.set(ke[r], Xe[r], je[r], He[r], 0, 0), Fu.push(h);
5371
5371
  }
5372
5372
  }
@@ -5592,7 +5592,7 @@ var bt = {
5592
5592
  /** @class */
5593
5593
  function() {
5594
5594
  function r() {
5595
- this.worldTransform = new Rt(), this.localTransform = new Rt(), this.position = new yr(this.onChange, this, 0, 0), this.scale = new yr(this.onChange, this, 1, 1), this.pivot = new yr(this.onChange, this, 0, 0), this.skew = new yr(this.updateSkew, this, 0, 0), this._rotation = 0, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._localID = 0, this._currentLocalID = 0, this._worldID = 0, this._parentID = 0;
5595
+ this.worldTransform = new Ot(), this.localTransform = new Ot(), this.position = new yr(this.onChange, this, 0, 0), this.scale = new yr(this.onChange, this, 1, 1), this.pivot = new yr(this.onChange, this, 0, 0), this.skew = new yr(this.updateSkew, this, 0, 0), this._rotation = 0, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._localID = 0, this._currentLocalID = 0, this._worldID = 0, this._parentID = 0;
5596
5596
  }
5597
5597
  return r.prototype.onChange = function() {
5598
5598
  this._localID++;
@@ -6158,7 +6158,7 @@ var le = (
6158
6158
  for (var o = 0; o < i.length; o++)
6159
6159
  i[o].enabled && this._enabledFilters.push(i[o]);
6160
6160
  }
6161
- var s = i && this._enabledFilters && this._enabledFilters.length || n && (!n.isMaskData || n.enabled && (n.autoDetect || n.type !== Ot.NONE));
6161
+ var s = i && this._enabledFilters && this._enabledFilters.length || n && (!n.isMaskData || n.enabled && (n.autoDetect || n.type !== St.NONE));
6162
6162
  if (s && t.batch.flush(), i && this._enabledFilters && this._enabledFilters.length && t.filter.push(this, this._enabledFilters), n && t.mask.push(this, this._mask), this.cullable)
6163
6163
  this._renderWithCulling(t);
6164
6164
  else {
@@ -6822,7 +6822,7 @@ var ni = (
6822
6822
  return t instanceof Float32Array || t instanceof Uint8Array || t instanceof Uint32Array;
6823
6823
  }, e;
6824
6824
  }(ni)
6825
- ), z_ = {
6825
+ ), V_ = {
6826
6826
  scaleMode: se.NEAREST,
6827
6827
  format: C.RGBA,
6828
6828
  alphaMode: te.NPM
@@ -6904,7 +6904,7 @@ var ni = (
6904
6904
  }, e.prototype.setRealSize = function(t, i, n) {
6905
6905
  return this.resolution = n || this.resolution, this.width = Math.round(t) / this.resolution, this.height = Math.round(i) / this.resolution, this._refreshPOT(), this.update(), this;
6906
6906
  }, e.prototype._refreshPOT = function() {
6907
- this.isPowerOfTwo = za(this.realWidth) && za(this.realHeight);
6907
+ this.isPowerOfTwo = Va(this.realWidth) && Va(this.realHeight);
6908
6908
  }, e.prototype.setResolution = function(t) {
6909
6909
  var i = this.resolution;
6910
6910
  return i === t ? this : (this.resolution = t, this.valid && (this.width = Math.round(this.width * i) / t, this.height = Math.round(this.height * i) / t, this.emit("update", this)), this._refreshPOT(), this);
@@ -6943,7 +6943,7 @@ var ni = (
6943
6943
  }, e.fromBuffer = function(t, i, n, o) {
6944
6944
  t = t || new Float32Array(i * n * 4);
6945
6945
  var s = new ci(t, { width: i, height: n }), a = t instanceof Float32Array ? k.FLOAT : k.UNSIGNED_BYTE;
6946
- return new e(s, Object.assign({}, z_, o || { width: i, height: n, type: a }));
6946
+ return new e(s, Object.assign({}, V_, o || { width: i, height: n, type: a }));
6947
6947
  }, e.addToCache = function(t, i) {
6948
6948
  i && (t.textureCacheIds.indexOf(i) === -1 && t.textureCacheIds.push(i), Fe[i] && console.warn("BaseTexture added to the cache with an id [" + i + "] that already had an entry"), Fe[i] = t);
6949
6949
  }, e.removeFromCache = function(t) {
@@ -7012,7 +7012,7 @@ var ni = (
7012
7012
  }), this._load;
7013
7013
  }, e;
7014
7014
  }(ni)
7015
- ), V_ = (
7015
+ ), z_ = (
7016
7016
  /** @class */
7017
7017
  function(r) {
7018
7018
  mt(e, r);
@@ -7053,7 +7053,7 @@ var ni = (
7053
7053
  return !0;
7054
7054
  }, e;
7055
7055
  }(Uu)
7056
- ), Re = (
7056
+ ), Oe = (
7057
7057
  /** @class */
7058
7058
  function(r) {
7059
7059
  mt(e, r);
@@ -7091,7 +7091,7 @@ var ni = (
7091
7091
  var i = globalThis.OffscreenCanvas;
7092
7092
  return i && t instanceof i ? !0 : globalThis.HTMLCanvasElement && t instanceof HTMLCanvasElement;
7093
7093
  }, e;
7094
- }(Re)
7094
+ }(Oe)
7095
7095
  ), $_ = (
7096
7096
  /** @class */
7097
7097
  function(r) {
@@ -7136,7 +7136,7 @@ var ni = (
7136
7136
  var n = this;
7137
7137
  if (i = i || {}, !(t instanceof HTMLImageElement)) {
7138
7138
  var o = new Image();
7139
- Re.crossOrigin(o, t, i.crossorigin), o.src = t, t = o;
7139
+ Oe.crossOrigin(o, t, i.crossorigin), o.src = t, t = o;
7140
7140
  }
7141
7141
  return n = r.call(this, t) || this, !t.complete && n._width && n._height && (n._width = 0, n._height = 0), n.url = t.src, n._process = null, n.preserveBitmap = !1, n.createBitmap = (i.createBitmap !== void 0 ? i.createBitmap : G.CREATE_IMAGE_BITMAP) && !!globalThis.createImageBitmap, n.alphaMode = typeof i.alphaMode == "number" ? i.alphaMode : null, n.bitmap = null, n._load = null, i.autoLoad !== !1 && n.load(), n;
7142
7142
  }
@@ -7192,7 +7192,7 @@ var ni = (
7192
7192
  }, e.test = function(t) {
7193
7193
  return typeof t == "string" || t instanceof HTMLImageElement;
7194
7194
  }, e;
7195
- }(Re)
7195
+ }(Oe)
7196
7196
  ), q_ = (
7197
7197
  /** @class */
7198
7198
  function(r) {
@@ -7215,7 +7215,7 @@ var ni = (
7215
7215
  }), this._load);
7216
7216
  }, e.prototype._loadSvg = function() {
7217
7217
  var t = this, i = new Image();
7218
- Re.crossOrigin(i, this.svg, this._crossorigin), i.src = this.svg, i.onerror = function(n) {
7218
+ Oe.crossOrigin(i, this.svg, this._crossorigin), i.src = this.svg, i.onerror = function(n) {
7219
7219
  t._resolve && (i.onerror = null, t.onError.emit(n));
7220
7220
  }, i.onload = function() {
7221
7221
  if (t._resolve) {
@@ -7236,7 +7236,7 @@ var ni = (
7236
7236
  }, e.test = function(t, i) {
7237
7237
  return i === "svg" || typeof t == "string" && t.startsWith("data:image/svg+xml") || typeof t == "string" && e.SVG_XML.test(t);
7238
7238
  }, e.SVG_XML = /^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m, e.SVG_SIZE = /<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i, e;
7239
- }(Re)
7239
+ }(Oe)
7240
7240
  ), K_ = (
7241
7241
  /** @class */
7242
7242
  function(r) {
@@ -7247,7 +7247,7 @@ var ni = (
7247
7247
  var o = document.createElement("video");
7248
7248
  o.setAttribute("preload", "auto"), o.setAttribute("webkit-playsinline", ""), o.setAttribute("playsinline", ""), typeof t == "string" && (t = [t]);
7249
7249
  var s = t[0].src || t[0];
7250
- Re.crossOrigin(o, s, i.crossorigin);
7250
+ Oe.crossOrigin(o, s, i.crossorigin);
7251
7251
  for (var a = 0; a < t.length; ++a) {
7252
7252
  var h = document.createElement("source"), u = t[a], l = u.src, c = u.mime;
7253
7253
  l = l || t[a];
@@ -7322,7 +7322,7 @@ var ni = (
7322
7322
  mov: "video/quicktime",
7323
7323
  m4v: "video/mp4"
7324
7324
  }, e;
7325
- }(Re)
7325
+ }(Oe)
7326
7326
  ), Z_ = (
7327
7327
  /** @class */
7328
7328
  function(r) {
@@ -7333,9 +7333,9 @@ var ni = (
7333
7333
  return e.test = function(t) {
7334
7334
  return !!globalThis.createImageBitmap && typeof ImageBitmap < "u" && t instanceof ImageBitmap;
7335
7335
  }, e;
7336
- }(Re)
7336
+ }(Oe)
7337
7337
  );
7338
- Uo.push(ku, Z_, W_, K_, q_, ci, $_, V_);
7338
+ Uo.push(ku, Z_, W_, K_, q_, ci, $_, z_);
7339
7339
  var J_ = (
7340
7340
  /** @class */
7341
7341
  function(r) {
@@ -7446,7 +7446,7 @@ var J_ = (
7446
7446
  }, r;
7447
7447
  }()
7448
7448
  ), Za = new ju();
7449
- function Ri(r) {
7449
+ function Oi(r) {
7450
7450
  r.destroy = function() {
7451
7451
  }, r.on = function() {
7452
7452
  }, r.once = function() {
@@ -7609,7 +7609,7 @@ var W = (
7609
7609
  }, Object.defineProperty(e, "EMPTY", {
7610
7610
  /** An empty texture, used often to not have to create multiple empty textures. Can not be destroyed. */
7611
7611
  get: function() {
7612
- return e._EMPTY || (e._EMPTY = new e(new rt()), Ri(e._EMPTY), Ri(e._EMPTY.baseTexture)), e._EMPTY;
7612
+ return e._EMPTY || (e._EMPTY = new e(new rt()), Oi(e._EMPTY), Oi(e._EMPTY.baseTexture)), e._EMPTY;
7613
7613
  },
7614
7614
  enumerable: !1,
7615
7615
  configurable: !0
@@ -7618,7 +7618,7 @@ var W = (
7618
7618
  get: function() {
7619
7619
  if (!e._WHITE) {
7620
7620
  var t = G.ADAPTER.createCanvas(16, 16), i = t.getContext("2d");
7621
- t.width = 16, t.height = 16, i.fillStyle = "white", i.fillRect(0, 0, 16, 16), e._WHITE = new e(rt.from(t)), Ri(e._WHITE), Ri(e._WHITE.baseTexture);
7621
+ t.width = 16, t.height = 16, i.fillStyle = "white", i.fillRect(0, 0, 16, 16), e._WHITE = new e(rt.from(t)), Oi(e._WHITE), Oi(e._WHITE.baseTexture);
7622
7622
  }
7623
7623
  return e._WHITE;
7624
7624
  },
@@ -7740,7 +7740,7 @@ var W = (
7740
7740
  return new r(e, t, i, n, o);
7741
7741
  }, r;
7742
7742
  }()
7743
- ), tg = 0, St = (
7743
+ ), tg = 0, Rt = (
7744
7744
  /** @class */
7745
7745
  function() {
7746
7746
  function r(e, t, i) {
@@ -7808,7 +7808,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
7808
7808
  return r.prototype.addAttribute = function(e, t, i, n, o, s, a, h) {
7809
7809
  if (i === void 0 && (i = 0), n === void 0 && (n = !1), h === void 0 && (h = !1), !t)
7810
7810
  throw new Error("You must pass a buffer when creating an attribute");
7811
- t instanceof St || (t instanceof Array && (t = new Float32Array(t)), t = new St(t));
7811
+ t instanceof Rt || (t instanceof Array && (t = new Float32Array(t)), t = new Rt(t));
7812
7812
  var u = e.split("|");
7813
7813
  if (u.length > 1) {
7814
7814
  for (var l = 0; l < u.length; l++)
@@ -7822,13 +7822,13 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
7822
7822
  }, r.prototype.getBuffer = function(e) {
7823
7823
  return this.buffers[this.getAttribute(e).buffer];
7824
7824
  }, r.prototype.addIndex = function(e) {
7825
- return e instanceof St || (e instanceof Array && (e = new Uint16Array(e)), e = new St(e)), e.type = ue.ELEMENT_ARRAY_BUFFER, this.indexBuffer = e, this.buffers.indexOf(e) === -1 && this.buffers.push(e), this;
7825
+ return e instanceof Rt || (e instanceof Array && (e = new Uint16Array(e)), e = new Rt(e)), e.type = ue.ELEMENT_ARRAY_BUFFER, this.indexBuffer = e, this.buffers.indexOf(e) === -1 && this.buffers.push(e), this;
7826
7826
  }, r.prototype.getIndex = function() {
7827
7827
  return this.indexBuffer;
7828
7828
  }, r.prototype.interleave = function() {
7829
7829
  if (this.buffers.length === 1 || this.buffers.length === 2 && this.indexBuffer)
7830
7830
  return this;
7831
- var e = [], t = [], i = new St(), n;
7831
+ var e = [], t = [], i = new Rt(), n;
7832
7832
  for (n in this.attributes) {
7833
7833
  var o = this.attributes[n], s = this.buffers[o.buffer];
7834
7834
  e.push(s.data), t.push(o.size * Qa[o.type] / 4), o.buffer = 0;
@@ -7848,7 +7848,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
7848
7848
  this.dispose(), this.buffers = null, this.indexBuffer = null, this.attributes = null;
7849
7849
  }, r.prototype.clone = function() {
7850
7850
  for (var e = new r(), t = 0; t < this.buffers.length; t++)
7851
- e.buffers[t] = new St(this.buffers[t].data.slice(0));
7851
+ e.buffers[t] = new Rt(this.buffers[t].data.slice(0));
7852
7852
  for (var t in this.attributes) {
7853
7853
  var i = this.attributes[t];
7854
7854
  e.attributes[t] = new Ja(i.buffer, i.size, i.normalized, i.type, i.stride, i.start, i.instance);
@@ -7861,7 +7861,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
7861
7861
  n[h] = n[h] || 0, n[h] += s.buffers[h].data.length, o[h] = 0;
7862
7862
  }
7863
7863
  for (var a = 0; a < s.buffers.length; a++)
7864
- i[a] = new ng[Nu(s.buffers[a].data)](n[a]), t.buffers[a] = new St(i[a]);
7864
+ i[a] = new ng[Nu(s.buffers[a].data)](n[a]), t.buffers[a] = new Rt(i[a]);
7865
7865
  for (var a = 0; a < e.length; a++) {
7866
7866
  s = e[a];
7867
7867
  for (var h = 0; h < s.buffers.length; h++)
@@ -7930,7 +7930,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
7930
7930
  1,
7931
7931
  0,
7932
7932
  1
7933
- ]), t.vertexBuffer = new St(t.vertices), t.uvBuffer = new St(t.uvs), t.addAttribute("aVertexPosition", t.vertexBuffer).addAttribute("aTextureCoord", t.uvBuffer).addIndex([0, 1, 2, 0, 2, 3]), t;
7933
+ ]), t.vertexBuffer = new Rt(t.vertices), t.uvBuffer = new Rt(t.uvs), t.addAttribute("aVertexPosition", t.vertexBuffer).addAttribute("aTextureCoord", t.uvBuffer).addIndex([0, 1, 2, 0, 2, 3]), t;
7934
7934
  }
7935
7935
  return e.prototype.map = function(t, i) {
7936
7936
  var n = 0, o = 0;
@@ -7943,7 +7943,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
7943
7943
  /** @class */
7944
7944
  function() {
7945
7945
  function r(e, t, i) {
7946
- this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = sg++, this.static = !!t, this.ubo = !!i, e instanceof St ? (this.buffer = e, this.buffer.type = ue.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = e, this.ubo && (this.buffer = new St(new Float32Array(1)), this.buffer.type = ue.UNIFORM_BUFFER, this.autoManage = !0));
7946
+ this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = sg++, this.static = !!t, this.ubo = !!i, e instanceof Rt ? (this.buffer = e, this.buffer.type = ue.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = e, this.ubo && (this.buffer = new Rt(new Float32Array(1)), this.buffer.type = ue.UNIFORM_BUFFER, this.autoManage = !0));
7947
7947
  }
7948
7948
  return r.prototype.update = function() {
7949
7949
  this.dirtyId++, !this.autoManage && this.buffer && this.buffer.update();
@@ -7968,7 +7968,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
7968
7968
  this.target = null, this.filters = null, this.renderTexture = null;
7969
7969
  }, r;
7970
7970
  }()
7971
- ), Ii = [new _t(), new _t(), new _t(), new _t()], zn = new Rt(), hg = (
7971
+ ), Ii = [new _t(), new _t(), new _t(), new _t()], Vn = new Ot(), hg = (
7972
7972
  /** @class */
7973
7973
  function() {
7974
7974
  function r(e) {
@@ -7990,7 +7990,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
7990
7990
  }
7991
7991
  s.length === 1 && (this.defaultFilterStack[0].renderTexture = h.current), s.push(a), a.resolution = u, a.multisample = l, a.legacy = f, a.target = e, a.sourceFrame.copyFrom(e.filterArea || e.getBounds(!0)), a.sourceFrame.pad(c);
7992
7992
  var y = this.tempRect.copyFrom(h.sourceFrame);
7993
- o.projection.transform && this.transformAABB(zn.copyFrom(o.projection.transform).invert(), y), p ? (a.sourceFrame.fit(y), (a.sourceFrame.width <= 0 || a.sourceFrame.height <= 0) && (a.sourceFrame.width = 0, a.sourceFrame.height = 0)) : a.sourceFrame.intersects(y) || (a.sourceFrame.width = 0, a.sourceFrame.height = 0), this.roundFrame(a.sourceFrame, h.current ? h.current.resolution : o.resolution, h.sourceFrame, h.destinationFrame, o.projection.transform), a.renderTexture = this.getOptimalFilterTexture(a.sourceFrame.width, a.sourceFrame.height, u, l), a.filters = t, a.destinationFrame.width = a.renderTexture.width, a.destinationFrame.height = a.renderTexture.height;
7993
+ o.projection.transform && this.transformAABB(Vn.copyFrom(o.projection.transform).invert(), y), p ? (a.sourceFrame.fit(y), (a.sourceFrame.width <= 0 || a.sourceFrame.height <= 0) && (a.sourceFrame.width = 0, a.sourceFrame.height = 0)) : a.sourceFrame.intersects(y) || (a.sourceFrame.width = 0, a.sourceFrame.height = 0), this.roundFrame(a.sourceFrame, h.current ? h.current.resolution : o.resolution, h.sourceFrame, h.destinationFrame, o.projection.transform), a.renderTexture = this.getOptimalFilterTexture(a.sourceFrame.width, a.sourceFrame.height, u, l), a.filters = t, a.destinationFrame.width = a.renderTexture.width, a.destinationFrame.height = a.renderTexture.height;
7994
7994
  var g = this.tempRect;
7995
7995
  g.x = 0, g.y = 0, g.width = a.sourceFrame.width, g.height = a.sourceFrame.height, a.renderTexture.filterFrame = a.sourceFrame, a.bindingSourceFrame.copyFrom(h.sourceFrame), a.bindingDestinationFrame.copyFrom(h.destinationFrame), a.transform = o.projection.transform, o.projection.transform = null, h.bind(a.renderTexture, a.sourceFrame, g), o.framebuffer.clear(0, 0, 0, 0);
7996
7996
  }, r.prototype.pop = function() {
@@ -8033,7 +8033,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
8033
8033
  var o = this.renderer;
8034
8034
  o.state.set(e.state), this.bindAndClear(i, n), e.uniforms.uSampler = t, e.uniforms.filterGlobals = this.globalUniforms, o.shader.bind(e), e.legacy = !!e.program.attributeData.aTextureCoord, e.legacy ? (this.quadUv.map(t._frame, t.filterFrame), o.geometry.bind(this.quadUv), o.geometry.draw(Kt.TRIANGLES)) : (o.geometry.bind(this.quad), o.geometry.draw(Kt.TRIANGLE_STRIP));
8035
8035
  }, r.prototype.calculateSpriteMatrix = function(e, t) {
8036
- var i = this.activeState, n = i.sourceFrame, o = i.destinationFrame, s = t._texture.orig, a = e.set(o.width, 0, 0, o.height, n.x, n.y), h = t.worldTransform.copyTo(Rt.TEMP_MATRIX);
8036
+ var i = this.activeState, n = i.sourceFrame, o = i.destinationFrame, s = t._texture.orig, a = e.set(o.width, 0, 0, o.height, n.x, n.y), h = t.worldTransform.copyTo(Ot.TEMP_MATRIX);
8037
8037
  return h.invert(), a.prepend(h), a.scale(1 / s.width, 1 / s.height), a.translate(t.anchor.x, t.anchor.y), a;
8038
8038
  }, r.prototype.destroy = function() {
8039
8039
  this.renderer = null, this.texturePool.clear(!1);
@@ -8065,7 +8065,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
8065
8065
  if ((Math.abs(a) > 1e-4 || Math.abs(h) > 1e-4) && (Math.abs(s) > 1e-4 || Math.abs(u) > 1e-4))
8066
8066
  return;
8067
8067
  }
8068
- o = o ? zn.copyFrom(o) : zn.identity(), o.translate(-i.x, -i.y).scale(n.width / i.width, n.height / i.height).translate(n.x, n.y), this.transformAABB(o, e), e.ceil(t), this.transformAABB(o.invert(), e);
8068
+ o = o ? Vn.copyFrom(o) : Vn.identity(), o.translate(-i.x, -i.y).scale(n.width / i.width, n.height / i.height).translate(n.x, n.y), this.transformAABB(o, e), e.ceil(t), this.transformAABB(o.invert(), e);
8069
8069
  }
8070
8070
  }, r;
8071
8071
  }()
@@ -8345,7 +8345,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
8345
8345
  this.renderer = null;
8346
8346
  }, r;
8347
8347
  }()
8348
- ), Vn = { 5126: 4, 5123: 2, 5121: 1 }, dg = (
8348
+ ), zn = { 5126: 4, 5123: 2, 5121: 1 }, dg = (
8349
8349
  /** @class */
8350
8350
  function() {
8351
8351
  function r(e) {
@@ -8415,10 +8415,10 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
8415
8415
  for (var m in c)
8416
8416
  f[m] = 0, d[m] = 0;
8417
8417
  for (var m in p)
8418
- !p[m].size && a.attributeData[m] ? p[m].size = a.attributeData[m].size : p[m].size || console.warn("PIXI Geometry attribute '" + m + "' size cannot be determined (likely the bound shader does not have the attribute)"), f[p[m].buffer] += p[m].size * Vn[p[m].type];
8418
+ !p[m].size && a.attributeData[m] ? p[m].size = a.attributeData[m].size : p[m].size || console.warn("PIXI Geometry attribute '" + m + "' size cannot be determined (likely the bound shader does not have the attribute)"), f[p[m].buffer] += p[m].size * zn[p[m].type];
8419
8419
  for (var m in p) {
8420
8420
  var y = p[m], g = y.size;
8421
- y.stride === void 0 && (f[y.buffer] === g * Vn[y.type] ? y.stride = 0 : y.stride = f[y.buffer]), y.start === void 0 && (y.start = d[y.buffer], d[y.buffer] += g * Vn[y.type]);
8421
+ y.stride === void 0 && (f[y.buffer] === g * zn[y.type] ? y.stride = 0 : y.stride = f[y.buffer]), y.start === void 0 && (y.start = d[y.buffer], d[y.buffer] += g * zn[y.type]);
8422
8422
  }
8423
8423
  l = n.createVertexArray(), n.bindVertexArray(l);
8424
8424
  for (var _ = 0; _ < c.length; _++) {
@@ -8484,7 +8484,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
8484
8484
  /** @class */
8485
8485
  function() {
8486
8486
  function r(e) {
8487
- e === void 0 && (e = null), this.type = Ot.NONE, this.autoDetect = !0, this.maskObject = e || null, this.pooled = !1, this.isMaskData = !0, this.resolution = null, this.multisample = G.FILTER_MULTISAMPLE, this.enabled = !0, this.colorMask = 15, this._filters = null, this._stencilCounter = 0, this._scissorCounter = 0, this._scissorRect = null, this._scissorRectLocal = null, this._colorMask = 15, this._target = null;
8487
+ e === void 0 && (e = null), this.type = St.NONE, this.autoDetect = !0, this.maskObject = e || null, this.pooled = !1, this.isMaskData = !0, this.resolution = null, this.multisample = G.FILTER_MULTISAMPLE, this.enabled = !0, this.colorMask = 15, this._filters = null, this._stencilCounter = 0, this._scissorCounter = 0, this._scissorRect = null, this._scissorRectLocal = null, this._colorMask = 15, this._target = null;
8488
8488
  }
8489
8489
  return Object.defineProperty(r.prototype, "filter", {
8490
8490
  /**
@@ -8501,7 +8501,7 @@ var Qa = { 5126: 4, 5123: 2, 5121: 1 }, ig = 0, ng = {
8501
8501
  enumerable: !1,
8502
8502
  configurable: !0
8503
8503
  }), r.prototype.reset = function() {
8504
- this.pooled && (this.maskObject = null, this.type = Ot.NONE, this.autoDetect = !0), this._target = null, this._scissorRectLocal = null;
8504
+ this.pooled && (this.maskObject = null, this.type = St.NONE, this.autoDetect = !0), this._target = null, this._scissorRectLocal = null;
8505
8505
  }, r.prototype.copyCountersOrReset = function(e) {
8506
8506
  e ? (this._stencilCounter = e._stencilCounter, this._scissorCounter = e._scissorCounter, this._scissorRect = e._scissorRect) : (this._stencilCounter = 0, this._scissorCounter = 0, this._scissorRect = null);
8507
8507
  }, r;
@@ -8612,9 +8612,9 @@ function Yu(r, e) {
8612
8612
  }
8613
8613
  return null;
8614
8614
  }
8615
- var zu = {}, Lr = zu;
8615
+ var Vu = {}, Lr = Vu;
8616
8616
  function _g() {
8617
- if (Lr === zu || Lr && Lr.isContextLost()) {
8617
+ if (Lr === Vu || Lr && Lr.isContextLost()) {
8618
8618
  var r = G.ADAPTER.createCanvas(), e = void 0;
8619
8619
  G.PREFER_ENV >= ve.WEBGL2 && (e = r.getContext("webgl2", {})), e || (e = r.getContext("webgl", {}) || r.getContext("experimental-webgl", {}), e ? e.getExtension("WEBGL_draw_buffers") : e = null), Lr = e;
8620
8620
  }
@@ -8663,7 +8663,7 @@ var vg = {
8663
8663
  mat4: 16,
8664
8664
  sampler2D: 1
8665
8665
  };
8666
- function Vu(r) {
8666
+ function zu(r) {
8667
8667
  return vg[r];
8668
8668
  }
8669
8669
  var Pi = null, nh = {
@@ -9111,7 +9111,7 @@ function wg(r, e) {
9111
9111
  return r;
9112
9112
  }
9113
9113
  var Br;
9114
- function Og() {
9114
+ function Sg() {
9115
9115
  if (typeof Br == "boolean")
9116
9116
  return Br;
9117
9117
  try {
@@ -9122,13 +9122,13 @@ function Og() {
9122
9122
  }
9123
9123
  return Br;
9124
9124
  }
9125
- var Sg = `varying vec2 vTextureCoord;
9125
+ var Rg = `varying vec2 vTextureCoord;
9126
9126
 
9127
9127
  uniform sampler2D uSampler;
9128
9128
 
9129
9129
  void main(void){
9130
9130
  gl_FragColor *= texture2D(uSampler, vTextureCoord);
9131
- }`, Rg = `attribute vec2 aVertexPosition;
9131
+ }`, Og = `attribute vec2 aVertexPosition;
9132
9132
  attribute vec2 aTextureCoord;
9133
9133
 
9134
9134
  uniform mat3 projectionMatrix;
@@ -9153,7 +9153,7 @@ void main(void){
9153
9153
  * @constant
9154
9154
  */
9155
9155
  get: function() {
9156
- return Rg;
9156
+ return Og;
9157
9157
  },
9158
9158
  enumerable: !1,
9159
9159
  configurable: !0
@@ -9163,7 +9163,7 @@ void main(void){
9163
9163
  * @constant
9164
9164
  */
9165
9165
  get: function() {
9166
- return Sg;
9166
+ return Rg;
9167
9167
  },
9168
9168
  enumerable: !1,
9169
9169
  configurable: !0
@@ -9172,7 +9172,7 @@ void main(void){
9172
9172
  return o || ($a[n] = o = new r(e, t, i)), o;
9173
9173
  }, r;
9174
9174
  }()
9175
- ), Se = (
9175
+ ), Re = (
9176
9176
  /** @class */
9177
9177
  function() {
9178
9178
  function r(e, t) {
@@ -9412,7 +9412,7 @@ void main(void)
9412
9412
  enumerable: !1,
9413
9413
  configurable: !0
9414
9414
  }), e;
9415
- }(Se)
9415
+ }(Re)
9416
9416
  ), Dg = `attribute vec2 aVertexPosition;
9417
9417
  attribute vec2 aTextureCoord;
9418
9418
 
@@ -9454,11 +9454,11 @@ void main(void)
9454
9454
 
9455
9455
  gl_FragColor = original;
9456
9456
  }
9457
- `, oh = new Rt(), Ds = (
9457
+ `, oh = new Ot(), Ds = (
9458
9458
  /** @class */
9459
9459
  function() {
9460
9460
  function r(e, t) {
9461
- this._texture = e, this.mapCoord = new Rt(), this.uClampFrame = new Float32Array(4), this.uClampOffset = new Float32Array(2), this._textureID = -1, this._updateID = 0, this.clampOffset = 0, this.clampMargin = typeof t > "u" ? 0.5 : t, this.isSimple = !1;
9461
+ this._texture = e, this.mapCoord = new Ot(), this.uClampFrame = new Float32Array(4), this.uClampOffset = new Float32Array(2), this._textureID = -1, this._updateID = 0, this.clampOffset = 0, this.clampMargin = typeof t > "u" ? 0.5 : t, this.isSimple = !1;
9462
9462
  }
9463
9463
  return Object.defineProperty(r.prototype, "texture", {
9464
9464
  /** Texture property. */
@@ -9496,7 +9496,7 @@ void main(void)
9496
9496
  mt(e, r);
9497
9497
  function e(t, i, n) {
9498
9498
  var o = this, s = null;
9499
- return typeof t != "string" && i === void 0 && n === void 0 && (s = t, t = void 0, i = void 0, n = void 0), o = r.call(this, t || Dg, i || Cg, n) || this, o.maskSprite = s, o.maskMatrix = new Rt(), o;
9499
+ return typeof t != "string" && i === void 0 && n === void 0 && (s = t, t = void 0, i = void 0, n = void 0), o = r.call(this, t || Dg, i || Cg, n) || this, o.maskSprite = s, o.maskMatrix = new Ot(), o;
9500
9500
  }
9501
9501
  return Object.defineProperty(e.prototype, "maskSprite", {
9502
9502
  /**
@@ -9531,48 +9531,48 @@ void main(void)
9531
9531
  n.pooled = !0, n.maskObject = t, i = n;
9532
9532
  }
9533
9533
  var o = this.maskStack.length !== 0 ? this.maskStack[this.maskStack.length - 1] : null;
9534
- if (i.copyCountersOrReset(o), i._colorMask = o ? o._colorMask : 15, i.autoDetect && this.detect(i), i._target = e, i.type !== Ot.SPRITE && this.maskStack.push(i), i.enabled)
9534
+ if (i.copyCountersOrReset(o), i._colorMask = o ? o._colorMask : 15, i.autoDetect && this.detect(i), i._target = e, i.type !== St.SPRITE && this.maskStack.push(i), i.enabled)
9535
9535
  switch (i.type) {
9536
- case Ot.SCISSOR:
9536
+ case St.SCISSOR:
9537
9537
  this.renderer.scissor.push(i);
9538
9538
  break;
9539
- case Ot.STENCIL:
9539
+ case St.STENCIL:
9540
9540
  this.renderer.stencil.push(i);
9541
9541
  break;
9542
- case Ot.SPRITE:
9542
+ case St.SPRITE:
9543
9543
  i.copyCountersOrReset(null), this.pushSpriteMask(i);
9544
9544
  break;
9545
- case Ot.COLOR:
9545
+ case St.COLOR:
9546
9546
  this.pushColorMask(i);
9547
9547
  break;
9548
9548
  }
9549
- i.type === Ot.SPRITE && this.maskStack.push(i);
9549
+ i.type === St.SPRITE && this.maskStack.push(i);
9550
9550
  }, r.prototype.pop = function(e) {
9551
9551
  var t = this.maskStack.pop();
9552
9552
  if (!(!t || t._target !== e)) {
9553
9553
  if (t.enabled)
9554
9554
  switch (t.type) {
9555
- case Ot.SCISSOR:
9555
+ case St.SCISSOR:
9556
9556
  this.renderer.scissor.pop(t);
9557
9557
  break;
9558
- case Ot.STENCIL:
9558
+ case St.STENCIL:
9559
9559
  this.renderer.stencil.pop(t.maskObject);
9560
9560
  break;
9561
- case Ot.SPRITE:
9561
+ case St.SPRITE:
9562
9562
  this.popSpriteMask(t);
9563
9563
  break;
9564
- case Ot.COLOR:
9564
+ case St.COLOR:
9565
9565
  this.popColorMask(t);
9566
9566
  break;
9567
9567
  }
9568
9568
  if (t.reset(), t.pooled && this.maskDataPool.push(t), this.maskStack.length !== 0) {
9569
9569
  var i = this.maskStack[this.maskStack.length - 1];
9570
- i.type === Ot.SPRITE && i._filters && (i._filters[0].maskSprite = i.maskObject);
9570
+ i.type === St.SPRITE && i._filters && (i._filters[0].maskSprite = i.maskObject);
9571
9571
  }
9572
9572
  }
9573
9573
  }, r.prototype.detect = function(e) {
9574
9574
  var t = e.maskObject;
9575
- t ? t.isSprite ? e.type = Ot.SPRITE : this.enableScissor && this.renderer.scissor.testScissor(e) ? e.type = Ot.SCISSOR : e.type = Ot.STENCIL : e.type = Ot.COLOR;
9575
+ t ? t.isSprite ? e.type = St.SPRITE : this.enableScissor && this.renderer.scissor.testScissor(e) ? e.type = St.SCISSOR : e.type = St.STENCIL : e.type = St.COLOR;
9576
9576
  }, r.prototype.pushSpriteMask = function(e) {
9577
9577
  var t, i, n = e.maskObject, o = e._target, s = e._filters;
9578
9578
  s || (s = this.alphaMaskPool[this.alphaMaskIndex], s || (s = this.alphaMaskPool[this.alphaMaskIndex] = [new Ng()]));
@@ -9615,7 +9615,7 @@ void main(void)
9615
9615
  this.renderer = null, this.maskStack = null;
9616
9616
  }, r;
9617
9617
  }()
9618
- ), sh = new Rt(), ah = [], Lg = (
9618
+ ), sh = new Ot(), ah = [], Lg = (
9619
9619
  /** @class */
9620
9620
  function(r) {
9621
9621
  mt(e, r);
@@ -9691,7 +9691,7 @@ void main(void)
9691
9691
  /** @class */
9692
9692
  function() {
9693
9693
  function r(e) {
9694
- this.renderer = e, this.destinationFrame = null, this.sourceFrame = null, this.defaultFrame = null, this.projectionMatrix = new Rt(), this.transform = null;
9694
+ this.renderer = e, this.destinationFrame = null, this.sourceFrame = null, this.defaultFrame = null, this.projectionMatrix = new Ot(), this.transform = null;
9695
9695
  }
9696
9696
  return r.prototype.update = function(e, t, i, n) {
9697
9697
  this.destinationFrame = e || this.destinationFrame || this.defaultFrame, this.sourceFrame = t || this.sourceFrame || e, this.calculateProjection(this.destinationFrame, this.sourceFrame, i, n), this.transform && this.projectionMatrix.append(this.transform);
@@ -9853,7 +9853,7 @@ function Yg(r, e) {
9853
9853
  }
9854
9854
  if (!c)
9855
9855
  if (h.data.size > 1) {
9856
- var d = Vu(h.data.type), m = Math.max(qu[h.data.type] / 16, 1), y = d / m, g = (4 - y % 4) % 4;
9856
+ var d = zu(h.data.type), m = Math.max(qu[h.data.type] / 16, 1), y = d / m, g = (4 - y % 4) % 4;
9857
9857
  s.push(`
9858
9858
  cv = ud.` + l + `.value;
9859
9859
  v = uv.` + l + `;
@@ -9890,7 +9890,7 @@ function Yg(r, e) {
9890
9890
  `))
9891
9891
  };
9892
9892
  }
9893
- var zg = (
9893
+ var Vg = (
9894
9894
  /** @class */
9895
9895
  function() {
9896
9896
  function r(e, t) {
@@ -9901,14 +9901,14 @@ var zg = (
9901
9901
  }, r;
9902
9902
  }()
9903
9903
  );
9904
- function Vg(r, e) {
9904
+ function zg(r, e) {
9905
9905
  for (var t = {}, i = e.getProgramParameter(r, e.ACTIVE_ATTRIBUTES), n = 0; n < i; n++) {
9906
9906
  var o = e.getActiveAttrib(r, n);
9907
9907
  if (o.name.indexOf("gl_") !== 0) {
9908
9908
  var s = Wu(e, o.type), a = {
9909
9909
  type: s,
9910
9910
  name: o.name,
9911
- size: Vu(s),
9911
+ size: zu(s),
9912
9912
  location: e.getAttribLocation(r, o.name)
9913
9913
  };
9914
9914
  t[o.name] = a;
@@ -9932,7 +9932,7 @@ function Wg(r, e) {
9932
9932
  }
9933
9933
  function $g(r, e) {
9934
9934
  var t = eh(r, r.VERTEX_SHADER, e.vertexSrc), i = eh(r, r.FRAGMENT_SHADER, e.fragmentSrc), n = r.createProgram();
9935
- if (r.attachShader(n, t), r.attachShader(n, i), r.linkProgram(n), r.getProgramParameter(n, r.LINK_STATUS) || yg(r, n, t, i), e.attributeData = Vg(n, r), e.uniformData = Wg(n, r), !/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)) {
9935
+ if (r.attachShader(n, t), r.attachShader(n, i), r.linkProgram(n), r.getProgramParameter(n, r.LINK_STATUS) || yg(r, n, t, i), e.attributeData = zg(n, r), e.uniformData = Wg(n, r), !/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)) {
9936
9936
  var o = Object.keys(e.attributeData);
9937
9937
  o.sort(function(l, c) {
9938
9938
  return l > c ? 1 : -1;
@@ -9950,7 +9950,7 @@ function $g(r, e) {
9950
9950
  value: Yu(h.type, h.size)
9951
9951
  };
9952
9952
  }
9953
- var u = new zg(n, a);
9953
+ var u = new Vg(n, a);
9954
9954
  return u;
9955
9955
  }
9956
9956
  var qg = 0, Ci = { textureCount: 0, uboCount: 0 }, Kg = (
@@ -9960,7 +9960,7 @@ var qg = 0, Ci = { textureCount: 0, uboCount: 0 }, Kg = (
9960
9960
  this.destroyed = !1, this.renderer = e, this.systemCheck(), this.gl = null, this.shader = null, this.program = null, this.cache = {}, this._uboCache = {}, this.id = qg++;
9961
9961
  }
9962
9962
  return r.prototype.systemCheck = function() {
9963
- if (!Og())
9963
+ if (!Sg())
9964
9964
  throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.");
9965
9965
  }, r.prototype.contextChange = function(e) {
9966
9966
  this.gl = e, this.reset();
@@ -10213,7 +10213,7 @@ var to = (
10213
10213
  this.renderer = null;
10214
10214
  }, r;
10215
10215
  }()
10216
- ), eo = new Rt(), hv = (
10216
+ ), eo = new Ot(), hv = (
10217
10217
  /** @class */
10218
10218
  function(r) {
10219
10219
  mt(e, r);
@@ -10279,7 +10279,7 @@ var to = (
10279
10279
  return this._backgroundColor;
10280
10280
  },
10281
10281
  set: function(t) {
10282
- this._backgroundColor = t, this._backgroundColorString = Mu(t), Or(t, this._backgroundColorRgba);
10282
+ this._backgroundColor = t, this._backgroundColorString = Mu(t), Sr(t, this._backgroundColorRgba);
10283
10283
  },
10284
10284
  enumerable: !1,
10285
10285
  configurable: !0
@@ -10368,7 +10368,7 @@ var to = (
10368
10368
  prerender: new Ct("prerender"),
10369
10369
  resize: new Ct("resize")
10370
10370
  }, i.runners.contextChange.add(i), i.globalUniforms = new Ke({
10371
- projectionMatrix: new Rt()
10371
+ projectionMatrix: new Ot()
10372
10372
  }, !0), i.addSystem(Fg, "mask").addSystem(lg, "context").addSystem(nv, "state").addSystem(Kg, "shader").addSystem(av, "texture").addSystem(lv, "buffer").addSystem(dg, "geometry").addSystem(fg, "framebuffer").addSystem(Lg, "scissor").addSystem(Bg, "stencil").addSystem(Gg, "projection").addSystem(ov, "textureGC").addSystem(hg, "filter").addSystem(Ug, "renderTexture").addSystem(ug, "batch"), i.initPlugins(e.__plugins), i.multisample = void 0, t.context ? i.context.initFromContext(t.context) : i.context.initFromOptions({
10373
10373
  alpha: !!i.useContextAlpha,
10374
10374
  antialias: t.antialias,
@@ -10506,7 +10506,7 @@ void main(void)
10506
10506
  this.count = 0;
10507
10507
  }, r;
10508
10508
  }()
10509
- ), zo = (
10509
+ ), Vo = (
10510
10510
  /** @class */
10511
10511
  function() {
10512
10512
  function r(e) {
@@ -10635,12 +10635,12 @@ void main(void)
10635
10635
  this._packedGeometries[t] && this._packedGeometries[t].destroy();
10636
10636
  this.renderer.off("prerender", this.onPrerender, this), this._aBuffers = null, this._iBuffers = null, this._packedGeometries = null, this._attributeBuffer = null, this._indexBuffer = null, this._shader && (this._shader.destroy(), this._shader = null), r.prototype.destroy.call(this);
10637
10637
  }, e.prototype.getAttributeBuffer = function(t) {
10638
- var i = cn(Math.ceil(t / 8)), n = Va(i), o = i * 8;
10638
+ var i = cn(Math.ceil(t / 8)), n = za(i), o = i * 8;
10639
10639
  this._aBuffers.length <= n && (this._iBuffers.length = n + 1);
10640
10640
  var s = this._aBuffers[o];
10641
- return s || (this._aBuffers[o] = s = new zo(o * this.vertexSize * 4)), s;
10641
+ return s || (this._aBuffers[o] = s = new Vo(o * this.vertexSize * 4)), s;
10642
10642
  }, e.prototype.getIndexBuffer = function(t) {
10643
- var i = cn(Math.ceil(t / 12)), n = Va(i), o = i * 12;
10643
+ var i = cn(Math.ceil(t / 12)), n = za(i), o = i * 12;
10644
10644
  this._iBuffers.length <= n && (this._iBuffers.length = n + 1);
10645
10645
  var s = this._iBuffers[n];
10646
10646
  return s || (this._iBuffers[n] = s = new Uint16Array(o)), s;
@@ -10670,10 +10670,10 @@ void main(void)
10670
10670
  }
10671
10671
  var o = {
10672
10672
  tint: new Float32Array([1, 1, 1, 1]),
10673
- translationMatrix: new Rt(),
10673
+ translationMatrix: new Ot(),
10674
10674
  default: this.defaultGroupCache[e]
10675
10675
  };
10676
- return new Se(this.programCache[e], o);
10676
+ return new Re(this.programCache[e], o);
10677
10677
  }, r.prototype.generateSampleSrc = function(e) {
10678
10678
  var t = "";
10679
10679
  t += `
@@ -10697,7 +10697,7 @@ else `), i < e - 1 && (t += "if(vTextureId < " + i + ".5)"), t += `
10697
10697
  function e(t) {
10698
10698
  t === void 0 && (t = !1);
10699
10699
  var i = r.call(this) || this;
10700
- return i._buffer = new St(null, t, !1), i._indexBuffer = new St(null, t, !0), i.addAttribute("aVertexPosition", i._buffer, 2, !1, k.FLOAT).addAttribute("aTextureCoord", i._buffer, 2, !1, k.FLOAT).addAttribute("aColor", i._buffer, 4, !0, k.UNSIGNED_BYTE).addAttribute("aTextureId", i._buffer, 1, !0, k.FLOAT).addIndex(i._indexBuffer), i;
10700
+ return i._buffer = new Rt(null, t, !1), i._indexBuffer = new Rt(null, t, !0), i.addAttribute("aVertexPosition", i._buffer, 2, !1, k.FLOAT).addAttribute("aTextureCoord", i._buffer, 2, !1, k.FLOAT).addAttribute("aColor", i._buffer, 4, !0, k.UNSIGNED_BYTE).addAttribute("aTextureId", i._buffer, 1, !0, k.FLOAT).addIndex(i._indexBuffer), i;
10701
10701
  }
10702
10702
  return e;
10703
10703
  }(pi)
@@ -11011,22 +11011,22 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
11011
11011
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
11012
11012
  PERFORMANCE OF THIS SOFTWARE.
11013
11013
  ***************************************************************************** */
11014
- var Vo = function(r, e) {
11015
- return Vo = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
11014
+ var zo = function(r, e) {
11015
+ return zo = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
11016
11016
  t.__proto__ = i;
11017
11017
  } || function(t, i) {
11018
11018
  for (var n in i)
11019
11019
  i.hasOwnProperty(n) && (t[n] = i[n]);
11020
- }, Vo(r, e);
11020
+ }, zo(r, e);
11021
11021
  };
11022
11022
  function wv(r, e) {
11023
- Vo(r, e);
11023
+ zo(r, e);
11024
11024
  function t() {
11025
11025
  this.constructor = r;
11026
11026
  }
11027
11027
  r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
11028
11028
  }
11029
- var Ov = (
11029
+ var Sv = (
11030
11030
  /** @class */
11031
11031
  function() {
11032
11032
  function r() {
@@ -11132,7 +11132,7 @@ var Ov = (
11132
11132
  RIGHT_DOWN: 4
11133
11133
  }), r;
11134
11134
  }()
11135
- ), Sv = (
11135
+ ), Rv = (
11136
11136
  /** @class */
11137
11137
  function() {
11138
11138
  function r() {
@@ -11165,7 +11165,7 @@ var Ov = (
11165
11165
  this.recursiveFindHit(e, t, i, n, !1);
11166
11166
  }, r;
11167
11167
  }()
11168
- ), Rv = {
11168
+ ), Ov = {
11169
11169
  interactive: !1,
11170
11170
  interactiveChildren: !0,
11171
11171
  hitArea: null,
@@ -11213,7 +11213,7 @@ var Ov = (
11213
11213
  */
11214
11214
  _trackedPointers: void 0
11215
11215
  };
11216
- wt.mixin(Rv);
11216
+ wt.mixin(Ov);
11217
11217
  var Fi = 1, Li = {
11218
11218
  target: null,
11219
11219
  data: {
@@ -11225,10 +11225,10 @@ var Fi = 1, Li = {
11225
11225
  wv(e, r);
11226
11226
  function e(t, i) {
11227
11227
  var n = r.call(this) || this;
11228
- return i = i || {}, n.renderer = t, n.autoPreventDefault = i.autoPreventDefault !== void 0 ? i.autoPreventDefault : !0, n.interactionFrequency = i.interactionFrequency || 10, n.mouse = new ph(), n.mouse.identifier = Fi, n.mouse.global.set(-999999), n.activeInteractionData = {}, n.activeInteractionData[Fi] = n.mouse, n.interactionDataPool = [], n.eventData = new Ov(), n.interactionDOMElement = null, n.moveWhenInside = !1, n.eventsAdded = !1, n.tickerAdded = !1, n.mouseOverRenderer = !("PointerEvent" in globalThis), n.supportsTouchEvents = "ontouchstart" in globalThis, n.supportsPointerEvents = !!globalThis.PointerEvent, n.onPointerUp = n.onPointerUp.bind(n), n.processPointerUp = n.processPointerUp.bind(n), n.onPointerCancel = n.onPointerCancel.bind(n), n.processPointerCancel = n.processPointerCancel.bind(n), n.onPointerDown = n.onPointerDown.bind(n), n.processPointerDown = n.processPointerDown.bind(n), n.onPointerMove = n.onPointerMove.bind(n), n.processPointerMove = n.processPointerMove.bind(n), n.onPointerOut = n.onPointerOut.bind(n), n.processPointerOverOut = n.processPointerOverOut.bind(n), n.onPointerOver = n.onPointerOver.bind(n), n.cursorStyles = {
11228
+ return i = i || {}, n.renderer = t, n.autoPreventDefault = i.autoPreventDefault !== void 0 ? i.autoPreventDefault : !0, n.interactionFrequency = i.interactionFrequency || 10, n.mouse = new ph(), n.mouse.identifier = Fi, n.mouse.global.set(-999999), n.activeInteractionData = {}, n.activeInteractionData[Fi] = n.mouse, n.interactionDataPool = [], n.eventData = new Sv(), n.interactionDOMElement = null, n.moveWhenInside = !1, n.eventsAdded = !1, n.tickerAdded = !1, n.mouseOverRenderer = !("PointerEvent" in globalThis), n.supportsTouchEvents = "ontouchstart" in globalThis, n.supportsPointerEvents = !!globalThis.PointerEvent, n.onPointerUp = n.onPointerUp.bind(n), n.processPointerUp = n.processPointerUp.bind(n), n.onPointerCancel = n.onPointerCancel.bind(n), n.processPointerCancel = n.processPointerCancel.bind(n), n.onPointerDown = n.onPointerDown.bind(n), n.processPointerDown = n.processPointerDown.bind(n), n.onPointerMove = n.onPointerMove.bind(n), n.processPointerMove = n.processPointerMove.bind(n), n.onPointerOut = n.onPointerOut.bind(n), n.processPointerOverOut = n.processPointerOverOut.bind(n), n.onPointerOver = n.onPointerOver.bind(n), n.cursorStyles = {
11229
11229
  default: "inherit",
11230
11230
  pointer: "pointer"
11231
- }, n.currentCursorMode = null, n.cursor = null, n.resolution = 1, n.delayedEvents = [], n.search = new Sv(), n._tempDisplayObject = new Bu(), n._eventListenerOptions = { capture: !0, passive: !1 }, n._useSystemTicker = i.useSystemTicker !== void 0 ? i.useSystemTicker : !0, n.setTargetElement(n.renderer.view, n.renderer.resolution), n;
11231
+ }, n.currentCursorMode = null, n.cursor = null, n.resolution = 1, n.delayedEvents = [], n.search = new Rv(), n._tempDisplayObject = new Bu(), n._eventListenerOptions = { capture: !0, passive: !1 }, n._useSystemTicker = i.useSystemTicker !== void 0 ? i.useSystemTicker : !0, n.setTargetElement(n.renderer.view, n.renderer.resolution), n;
11232
11232
  }
11233
11233
  return Object.defineProperty(e.prototype, "useSystemTicker", {
11234
11234
  /**
@@ -12211,7 +12211,7 @@ function Yv(r, e) {
12211
12211
  }
12212
12212
  e();
12213
12213
  }
12214
- var zv = (
12214
+ var Vv = (
12215
12215
  /** @class */
12216
12216
  function() {
12217
12217
  function r() {
@@ -12219,7 +12219,7 @@ var zv = (
12219
12219
  return r.extension = dt.Loader, r.use = Yv, r;
12220
12220
  }()
12221
12221
  );
12222
- xe.add(Xv, zv);
12222
+ xe.add(Xv, Vv);
12223
12223
  /*!
12224
12224
  * @pixi/compressed-textures - v6.5.10
12225
12225
  * Compiled Thu, 06 Jul 2023 15:25:11 UTC
@@ -12271,7 +12271,7 @@ function rl(r, e) {
12271
12271
  }
12272
12272
  r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
12273
12273
  }
12274
- function Vv(r, e, t, i) {
12274
+ function zv(r, e, t, i) {
12275
12275
  function n(o) {
12276
12276
  return o instanceof t ? o : new t(function(s) {
12277
12277
  s(o);
@@ -12370,11 +12370,11 @@ var $v = (
12370
12370
  function e(t, i) {
12371
12371
  i === void 0 && (i = { width: 1, height: 1, autoLoad: !0 });
12372
12372
  var n = this, o, s;
12373
- return typeof t == "string" ? (o = t, s = new Uint8Array()) : (o = null, s = t), n = r.call(this, s, i) || this, n.origin = o, n.buffer = s ? new zo(s) : null, n.origin && i.autoLoad !== !1 && n.load(), s && s.length && (n.loaded = !0, n.onBlobLoaded(n.buffer.rawBinaryData)), n;
12373
+ return typeof t == "string" ? (o = t, s = new Uint8Array()) : (o = null, s = t), n = r.call(this, s, i) || this, n.origin = o, n.buffer = s ? new Vo(s) : null, n.origin && i.autoLoad !== !1 && n.load(), s && s.length && (n.loaded = !0, n.onBlobLoaded(n.buffer.rawBinaryData)), n;
12374
12374
  }
12375
12375
  return e.prototype.onBlobLoaded = function(t) {
12376
12376
  }, e.prototype.load = function() {
12377
- return Vv(this, void 0, Promise, function() {
12377
+ return zv(this, void 0, Promise, function() {
12378
12378
  var t, i, n;
12379
12379
  return Wv(this, function(o) {
12380
12380
  switch (o.label) {
@@ -12385,7 +12385,7 @@ var $v = (
12385
12385
  case 2:
12386
12386
  return i = o.sent(), [4, i.arrayBuffer()];
12387
12387
  case 3:
12388
- return n = o.sent(), this.data = new Uint32Array(n), this.buffer = new zo(n), this.loaded = !0, this.onBlobLoaded(n), this.update(), [2, this];
12388
+ return n = o.sent(), this.data = new Uint32Array(n), this.buffer = new Vo(n), this.loaded = !0, this.onBlobLoaded(n), this.update(), [2, this];
12389
12389
  }
12390
12390
  });
12391
12391
  });
@@ -12549,7 +12549,7 @@ function il(r, e, t) {
12549
12549
  rt.addToCache(a, h), W.addToCache(o, h), s === 0 && (rt.addToCache(a, r), W.addToCache(o, r), i.texture = o), i.textures[h] = o;
12550
12550
  }), i;
12551
12551
  }
12552
- var Ur, zt, ao = 4, Ui = 124, Kv = 32, _h = 20, Zv = 542327876, ki = {
12552
+ var Ur, Vt, ao = 4, Ui = 124, Kv = 32, _h = 20, Zv = 542327876, ki = {
12553
12553
  SIZE: 1,
12554
12554
  FLAGS: 2,
12555
12555
  HEIGHT: 3,
@@ -12579,9 +12579,9 @@ var qo;
12579
12579
  (function(r) {
12580
12580
  r[r.DDS_DIMENSION_TEXTURE1D = 2] = "DDS_DIMENSION_TEXTURE1D", r[r.DDS_DIMENSION_TEXTURE2D = 3] = "DDS_DIMENSION_TEXTURE2D", r[r.DDS_DIMENSION_TEXTURE3D = 6] = "DDS_DIMENSION_TEXTURE3D";
12581
12581
  })(qo || (qo = {}));
12582
- var Qv = 1, t0 = 2, e0 = 4, r0 = 64, i0 = 512, n0 = 131072, o0 = 827611204, s0 = 861165636, a0 = 894720068, h0 = 808540228, u0 = 4, l0 = (Ur = {}, Ur[o0] = $.COMPRESSED_RGBA_S3TC_DXT1_EXT, Ur[s0] = $.COMPRESSED_RGBA_S3TC_DXT3_EXT, Ur[a0] = $.COMPRESSED_RGBA_S3TC_DXT5_EXT, Ur), c0 = (zt = {}, // WEBGL_compressed_texture_s3tc
12583
- zt[$t.DXGI_FORMAT_BC1_TYPELESS] = $.COMPRESSED_RGBA_S3TC_DXT1_EXT, zt[$t.DXGI_FORMAT_BC1_UNORM] = $.COMPRESSED_RGBA_S3TC_DXT1_EXT, zt[$t.DXGI_FORMAT_BC2_TYPELESS] = $.COMPRESSED_RGBA_S3TC_DXT3_EXT, zt[$t.DXGI_FORMAT_BC2_UNORM] = $.COMPRESSED_RGBA_S3TC_DXT3_EXT, zt[$t.DXGI_FORMAT_BC3_TYPELESS] = $.COMPRESSED_RGBA_S3TC_DXT5_EXT, zt[$t.DXGI_FORMAT_BC3_UNORM] = $.COMPRESSED_RGBA_S3TC_DXT5_EXT, // WEBGL_compressed_texture_s3tc_srgb
12584
- zt[$t.DXGI_FORMAT_BC1_UNORM_SRGB] = $.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, zt[$t.DXGI_FORMAT_BC2_UNORM_SRGB] = $.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, zt[$t.DXGI_FORMAT_BC3_UNORM_SRGB] = $.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, zt);
12582
+ var Qv = 1, t0 = 2, e0 = 4, r0 = 64, i0 = 512, n0 = 131072, o0 = 827611204, s0 = 861165636, a0 = 894720068, h0 = 808540228, u0 = 4, l0 = (Ur = {}, Ur[o0] = $.COMPRESSED_RGBA_S3TC_DXT1_EXT, Ur[s0] = $.COMPRESSED_RGBA_S3TC_DXT3_EXT, Ur[a0] = $.COMPRESSED_RGBA_S3TC_DXT5_EXT, Ur), c0 = (Vt = {}, // WEBGL_compressed_texture_s3tc
12583
+ Vt[$t.DXGI_FORMAT_BC1_TYPELESS] = $.COMPRESSED_RGBA_S3TC_DXT1_EXT, Vt[$t.DXGI_FORMAT_BC1_UNORM] = $.COMPRESSED_RGBA_S3TC_DXT1_EXT, Vt[$t.DXGI_FORMAT_BC2_TYPELESS] = $.COMPRESSED_RGBA_S3TC_DXT3_EXT, Vt[$t.DXGI_FORMAT_BC2_UNORM] = $.COMPRESSED_RGBA_S3TC_DXT3_EXT, Vt[$t.DXGI_FORMAT_BC3_TYPELESS] = $.COMPRESSED_RGBA_S3TC_DXT5_EXT, Vt[$t.DXGI_FORMAT_BC3_UNORM] = $.COMPRESSED_RGBA_S3TC_DXT5_EXT, // WEBGL_compressed_texture_s3tc_srgb
12584
+ Vt[$t.DXGI_FORMAT_BC1_UNORM_SRGB] = $.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, Vt[$t.DXGI_FORMAT_BC2_UNORM_SRGB] = $.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, Vt[$t.DXGI_FORMAT_BC3_UNORM_SRGB] = $.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, Vt);
12585
12585
  function p0(r) {
12586
12586
  var e = new Uint32Array(r), t = e[0];
12587
12587
  if (t !== Zv)
@@ -12610,12 +12610,12 @@ function p0(r) {
12610
12610
  if (v === 1)
12611
12611
  b.push(new Uint8Array(r, E));
12612
12612
  else {
12613
- for (var A = yn[T], S = 0, O = o, w = n, R = 0; R < s; R++) {
12614
- var P = Math.max(1, O + 3 & -4), N = Math.max(1, w + 3 & -4), B = P * N * A;
12615
- S += B, O = O >>> 1, w = w >>> 1;
12613
+ for (var A = yn[T], R = 0, S = o, w = n, O = 0; O < s; O++) {
12614
+ var P = Math.max(1, S + 3 & -4), N = Math.max(1, w + 3 & -4), B = P * N * A;
12615
+ R += B, S = S >>> 1, w = w >>> 1;
12616
12616
  }
12617
- for (var M = E, R = 0; R < v; R++)
12618
- b.push(new Uint8Array(r, M, S)), M += S;
12617
+ for (var M = E, O = 0; O < v; O++)
12618
+ b.push(new Uint8Array(r, M, R)), M += R;
12619
12619
  }
12620
12620
  return b.map(function(D) {
12621
12621
  return new $o(D, {
@@ -12628,7 +12628,7 @@ function p0(r) {
12628
12628
  }
12629
12629
  throw h & r0 ? new Error("DDSParser does not support uncompressed texture data.") : h & i0 ? new Error("DDSParser does not supported YUV uncompressed texture data.") : h & n0 ? new Error("DDSParser does not support single-channel (lumninance) texture data!") : h & t0 ? new Error("DDSParser does not support single-channel (alpha) texture data!") : new Error("DDSParser failed to load a texture file due to an unknown reason!");
12630
12630
  }
12631
- var Te, de, kr, gh = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], f0 = 67305985, Vt = {
12631
+ var Te, de, kr, gh = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], f0 = 67305985, zt = {
12632
12632
  FILE_IDENTIFIER: 0,
12633
12633
  ENDIANNESS: 12,
12634
12634
  GL_TYPE: 16,
@@ -12649,7 +12649,7 @@ function y0(r, e, t) {
12649
12649
  var i = new DataView(e);
12650
12650
  if (!_0(r, i))
12651
12651
  return null;
12652
- var n = i.getUint32(Vt.ENDIANNESS, !0) === f0, o = i.getUint32(Vt.GL_TYPE, n), s = i.getUint32(Vt.GL_FORMAT, n), a = i.getUint32(Vt.GL_INTERNAL_FORMAT, n), h = i.getUint32(Vt.PIXEL_WIDTH, n), u = i.getUint32(Vt.PIXEL_HEIGHT, n) || 1, l = i.getUint32(Vt.PIXEL_DEPTH, n) || 1, c = i.getUint32(Vt.NUMBER_OF_ARRAY_ELEMENTS, n) || 1, p = i.getUint32(Vt.NUMBER_OF_FACES, n), f = i.getUint32(Vt.NUMBER_OF_MIPMAP_LEVELS, n), d = i.getUint32(Vt.BYTES_OF_KEY_VALUE_DATA, n);
12652
+ var n = i.getUint32(zt.ENDIANNESS, !0) === f0, o = i.getUint32(zt.GL_TYPE, n), s = i.getUint32(zt.GL_FORMAT, n), a = i.getUint32(zt.GL_INTERNAL_FORMAT, n), h = i.getUint32(zt.PIXEL_WIDTH, n), u = i.getUint32(zt.PIXEL_HEIGHT, n) || 1, l = i.getUint32(zt.PIXEL_DEPTH, n) || 1, c = i.getUint32(zt.NUMBER_OF_ARRAY_ELEMENTS, n) || 1, p = i.getUint32(zt.NUMBER_OF_FACES, n), f = i.getUint32(zt.NUMBER_OF_MIPMAP_LEVELS, n), d = i.getUint32(zt.BYTES_OF_KEY_VALUE_DATA, n);
12653
12653
  if (u === 0 || l !== 1)
12654
12654
  throw new Error("Only 2D textures are supported");
12655
12655
  if (p !== 1)
@@ -12661,18 +12661,18 @@ function y0(r, e, t) {
12661
12661
  var b;
12662
12662
  if (o !== 0 ? vh[o] ? b = vh[o] * d0[s] : b = m0[o] : b = yn[a], b === void 0)
12663
12663
  throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
12664
- for (var E = t ? v0(i, d, n) : null, A = T * b, S = A, O = h, w = u, R = g, P = _, N = Ko + d, B = 0; B < f; B++) {
12664
+ for (var E = t ? v0(i, d, n) : null, A = T * b, R = A, S = h, w = u, O = g, P = _, N = Ko + d, B = 0; B < f; B++) {
12665
12665
  for (var M = i.getUint32(N, n), D = N + 4, Y = 0; Y < c; Y++) {
12666
12666
  var st = v[Y];
12667
12667
  st || (st = v[Y] = new Array(f)), st[B] = {
12668
12668
  levelID: B,
12669
12669
  // don't align mipWidth when texture not compressed! (glType not zero)
12670
- levelWidth: f > 1 || o !== 0 ? O : R,
12670
+ levelWidth: f > 1 || o !== 0 ? S : O,
12671
12671
  levelHeight: f > 1 || o !== 0 ? w : P,
12672
- levelBuffer: new Uint8Array(e, D, S)
12673
- }, D += S;
12672
+ levelBuffer: new Uint8Array(e, D, R)
12673
+ }, D += R;
12674
12674
  }
12675
- N += M + 4, N = N % 4 !== 0 ? N + 4 - N % 4 : N, O = O >> 1 || 1, w = w >> 1 || 1, R = O + m - 1 & ~(m - 1), P = w + y - 1 & ~(y - 1), S = R * P * b;
12675
+ N += M + 4, N = N % 4 !== 0 ? N + 4 - N % 4 : N, S = S >> 1 || 1, w = w >> 1 || 1, O = S + m - 1 & ~(m - 1), P = w + y - 1 & ~(y - 1), R = O * P * b;
12676
12676
  }
12677
12677
  return o !== 0 ? {
12678
12678
  uncompressed: v.map(function(K) {
@@ -12850,7 +12850,7 @@ function nl(r, e) {
12850
12850
  return this._tint;
12851
12851
  },
12852
12852
  set: function(t) {
12853
- this._tint = t, Or(t, this.tintRgb);
12853
+ this._tint = t, Sr(t, this.tintRgb);
12854
12854
  },
12855
12855
  enumerable: !1,
12856
12856
  configurable: !0
@@ -12892,13 +12892,13 @@ var bh = (
12892
12892
  }
12893
12893
  return r.prototype.initBuffers = function() {
12894
12894
  var e = this.geometry, t = 0;
12895
- this.indexBuffer = new St(D_(this.size), !0, !0), e.addIndex(this.indexBuffer), this.dynamicStride = 0;
12895
+ this.indexBuffer = new Rt(D_(this.size), !0, !0), e.addIndex(this.indexBuffer), this.dynamicStride = 0;
12896
12896
  for (var i = 0; i < this.dynamicProperties.length; ++i) {
12897
12897
  var n = this.dynamicProperties[i];
12898
12898
  n.offset = t, t += n.size, this.dynamicStride += n.size;
12899
12899
  }
12900
12900
  var o = new ArrayBuffer(this.size * this.dynamicStride * 4 * 4);
12901
- this.dynamicData = new Float32Array(o), this.dynamicDataUint32 = new Uint32Array(o), this.dynamicBuffer = new St(this.dynamicData, !1, !1);
12901
+ this.dynamicData = new Float32Array(o), this.dynamicDataUint32 = new Uint32Array(o), this.dynamicBuffer = new Rt(this.dynamicData, !1, !1);
12902
12902
  var s = 0;
12903
12903
  this.staticStride = 0;
12904
12904
  for (var i = 0; i < this.staticProperties.length; ++i) {
@@ -12906,7 +12906,7 @@ var bh = (
12906
12906
  n.offset = s, s += n.size, this.staticStride += n.size;
12907
12907
  }
12908
12908
  var a = new ArrayBuffer(this.size * this.staticStride * 4 * 4);
12909
- this.staticData = new Float32Array(a), this.staticDataUint32 = new Uint32Array(a), this.staticBuffer = new St(this.staticData, !0, !1);
12909
+ this.staticData = new Float32Array(a), this.staticDataUint32 = new Uint32Array(a), this.staticBuffer = new Rt(this.staticData, !0, !1);
12910
12910
  for (var i = 0; i < this.dynamicProperties.length; ++i) {
12911
12911
  var n = this.dynamicProperties[i];
12912
12912
  e.addAttribute(n.attributeName, this.dynamicBuffer, 0, n.type === k.UNSIGNED_BYTE, n.type, this.dynamicStride * 4, n.offset * 4);
@@ -12970,7 +12970,7 @@ void main(void){
12970
12970
  nl(e, r);
12971
12971
  function e(t) {
12972
12972
  var i = r.call(this, t) || this;
12973
- return i.shader = null, i.properties = null, i.tempMatrix = new Rt(), i.properties = [
12973
+ return i.shader = null, i.properties = null, i.tempMatrix = new Ot(), i.properties = [
12974
12974
  // verticesData
12975
12975
  {
12976
12976
  attributeName: "aVertexPosition",
@@ -13007,7 +13007,7 @@ void main(void){
13007
13007
  uploadFunction: i.uploadTint,
13008
13008
  offset: 0
13009
13009
  }
13010
- ], i.shader = Se.from(E0, T0, {}), i.state = er.for2d(), i;
13010
+ ], i.shader = Re.from(E0, T0, {}), i.state = er.for2d(), i;
13011
13011
  }
13012
13012
  return e.prototype.render = function(t) {
13013
13013
  var i = t.children, n = t._maxSize, o = t._batchSize, s = this.renderer, a = i.length;
@@ -13079,10 +13079,10 @@ var ge;
13079
13079
  (function(r) {
13080
13080
  r.MITER = "miter", r.BEVEL = "bevel", r.ROUND = "round";
13081
13081
  })(ge || (ge = {}));
13082
- var Oe;
13082
+ var Se;
13083
13083
  (function(r) {
13084
13084
  r.BUTT = "butt", r.ROUND = "round", r.SQUARE = "square";
13085
- })(Oe || (Oe = {}));
13085
+ })(Se || (Se = {}));
13086
13086
  var oi = {
13087
13087
  adaptive: !0,
13088
13088
  maxLength: 10,
@@ -13204,17 +13204,17 @@ var sl = {
13204
13204
  {
13205
13205
  var v = n + s, T = o, b = t + v, E = t - v, A = i + T;
13206
13206
  if (e[m++] = b, e[m++] = A, e[--y] = A, e[--y] = E, o) {
13207
- var S = i - T;
13208
- e[g++] = E, e[g++] = S, e[--_] = S, e[--_] = b;
13207
+ var R = i - T;
13208
+ e[g++] = E, e[g++] = R, e[--_] = R, e[--_] = b;
13209
13209
  }
13210
13210
  }
13211
- for (var O = 1; O < f; O++) {
13212
- var w = Math.PI / 2 * (O / f), v = n + Math.cos(w) * s, T = o + Math.sin(w) * a, b = t + v, E = t - v, A = i + T, S = i - T;
13213
- e[m++] = b, e[m++] = A, e[--y] = A, e[--y] = E, e[g++] = E, e[g++] = S, e[--_] = S, e[--_] = b;
13211
+ for (var S = 1; S < f; S++) {
13212
+ var w = Math.PI / 2 * (S / f), v = n + Math.cos(w) * s, T = o + Math.sin(w) * a, b = t + v, E = t - v, A = i + T, R = i - T;
13213
+ e[m++] = b, e[m++] = A, e[--y] = A, e[--y] = E, e[g++] = E, e[g++] = R, e[--_] = R, e[--_] = b;
13214
13214
  }
13215
13215
  {
13216
- var v = n, T = o + a, b = t + v, E = t - v, A = i + T, S = i - T;
13217
- e[m++] = b, e[m++] = A, e[--_] = S, e[--_] = b, n && (e[m++] = E, e[m++] = A, e[--_] = S, e[--_] = E);
13216
+ var v = n, T = o + a, b = t + v, E = t - v, A = i + T, R = i - T;
13217
+ e[m++] = b, e[m++] = A, e[--_] = R, e[--_] = b, n && (e[m++] = E, e[m++] = A, e[--_] = R, e[--_] = E);
13218
13218
  }
13219
13219
  }
13220
13220
  },
@@ -13256,9 +13256,9 @@ function ji(r, e, t, i, n, o, s) {
13256
13256
  y = m / a, u = hr(r, t, y), l = hr(e, i, y), c = hr(t, n, y), p = hr(i, o, y), f = hr(u, c, y), d = hr(l, p, y), !(m === 0 && h[h.length - 2] === f && h[h.length - 1] === d) && h.push(f, d);
13257
13257
  return h;
13258
13258
  }
13259
- var O0 = {
13259
+ var S0 = {
13260
13260
  build: function(r) {
13261
- if (Sr.nextRoundedRectBehavior) {
13261
+ if (Rr.nextRoundedRectBehavior) {
13262
13262
  _n.build(r);
13263
13263
  return;
13264
13264
  }
@@ -13266,7 +13266,7 @@ var O0 = {
13266
13266
  t.length = 0, a ? (ji(i, n + a, i, n, i + a, n, t), ji(i + o - a, n, i + o, n, i + o, n + a, t), ji(i + o, n + s - a, i + o, n + s, i + o - a, n + s, t), ji(i + a, n + s, i, n + s, i, n + s - a, t)) : t.push(i, n, i + o, n, i + o, n + s, i, n + s);
13267
13267
  },
13268
13268
  triangulate: function(r, e) {
13269
- if (Sr.nextRoundedRectBehavior) {
13269
+ if (Rr.nextRoundedRectBehavior) {
13270
13270
  _n.triangulate(r, e);
13271
13271
  return;
13272
13272
  }
@@ -13299,7 +13299,7 @@ function Ge(r, e, t, i, n, o, s, a) {
13299
13299
  }
13300
13300
  return y * 2;
13301
13301
  }
13302
- function S0(r, e) {
13302
+ function R0(r, e) {
13303
13303
  var t = r.shape, i = r.points || t.points.slice(), n = e.closePointEps;
13304
13304
  if (i.length !== 0) {
13305
13305
  var o = r.lineStyle, s = new _t(i[0], i[1]), a = new _t(i[i.length - 2], i[i.length - 1]), h = t.type !== Pt.POLY || t.closeStroke, u = Math.abs(s.x - a.x) < n && Math.abs(s.y - a.y) < n;
@@ -13308,26 +13308,26 @@ function S0(r, e) {
13308
13308
  var l = (s.x + a.x) * 0.5, c = (a.y + s.y) * 0.5;
13309
13309
  i.unshift(l, c), i.push(l, c);
13310
13310
  }
13311
- var p = e.points, f = i.length / 2, d = i.length, m = p.length / 2, y = o.width / 2, g = y * y, _ = o.miterLimit * o.miterLimit, v = i[0], T = i[1], b = i[2], E = i[3], A = 0, S = 0, O = -(T - E), w = v - b, R = 0, P = 0, N = Math.sqrt(O * O + w * w);
13312
- O /= N, w /= N, O *= y, w *= y;
13311
+ var p = e.points, f = i.length / 2, d = i.length, m = p.length / 2, y = o.width / 2, g = y * y, _ = o.miterLimit * o.miterLimit, v = i[0], T = i[1], b = i[2], E = i[3], A = 0, R = 0, S = -(T - E), w = v - b, O = 0, P = 0, N = Math.sqrt(S * S + w * w);
13312
+ S /= N, w /= N, S *= y, w *= y;
13313
13313
  var B = o.alignment, M = (1 - B) * 2, D = B * 2;
13314
- h || (o.cap === Oe.ROUND ? d += Ge(v - O * (M - D) * 0.5, T - w * (M - D) * 0.5, v - O * M, T - w * M, v + O * D, T + w * D, p, !0) + 2 : o.cap === Oe.SQUARE && (d += Th(v, T, O, w, M, D, !0, p))), p.push(v - O * M, T - w * M), p.push(v + O * D, T + w * D);
13314
+ h || (o.cap === Se.ROUND ? d += Ge(v - S * (M - D) * 0.5, T - w * (M - D) * 0.5, v - S * M, T - w * M, v + S * D, T + w * D, p, !0) + 2 : o.cap === Se.SQUARE && (d += Th(v, T, S, w, M, D, !0, p))), p.push(v - S * M, T - w * M), p.push(v + S * D, T + w * D);
13315
13315
  for (var Y = 1; Y < f - 1; ++Y) {
13316
- v = i[(Y - 1) * 2], T = i[(Y - 1) * 2 + 1], b = i[Y * 2], E = i[Y * 2 + 1], A = i[(Y + 1) * 2], S = i[(Y + 1) * 2 + 1], O = -(T - E), w = v - b, N = Math.sqrt(O * O + w * w), O /= N, w /= N, O *= y, w *= y, R = -(E - S), P = b - A, N = Math.sqrt(R * R + P * P), R /= N, P /= N, R *= y, P *= y;
13317
- var st = b - v, K = T - E, F = b - A, I = S - E, j = st * F + K * I, Z = K * F - I * st, Q = Z < 0;
13316
+ v = i[(Y - 1) * 2], T = i[(Y - 1) * 2 + 1], b = i[Y * 2], E = i[Y * 2 + 1], A = i[(Y + 1) * 2], R = i[(Y + 1) * 2 + 1], S = -(T - E), w = v - b, N = Math.sqrt(S * S + w * w), S /= N, w /= N, S *= y, w *= y, O = -(E - R), P = b - A, N = Math.sqrt(O * O + P * P), O /= N, P /= N, O *= y, P *= y;
13317
+ var st = b - v, K = T - E, F = b - A, I = R - E, j = st * F + K * I, Z = K * F - I * st, Q = Z < 0;
13318
13318
  if (Math.abs(Z) < 1e-3 * Math.abs(j)) {
13319
- p.push(b - O * M, E - w * M), p.push(b + O * D, E + w * D), j >= 0 && (o.join === ge.ROUND ? d += Ge(b, E, b - O * M, E - w * M, b - R * M, E - P * M, p, !1) + 4 : d += 2, p.push(b - R * D, E - P * D), p.push(b + R * M, E + P * M));
13319
+ p.push(b - S * M, E - w * M), p.push(b + S * D, E + w * D), j >= 0 && (o.join === ge.ROUND ? d += Ge(b, E, b - S * M, E - w * M, b - O * M, E - P * M, p, !1) + 4 : d += 2, p.push(b - O * D, E - P * D), p.push(b + O * M, E + P * M));
13320
13320
  continue;
13321
13321
  }
13322
- var yt = (-O + v) * (-w + E) - (-O + b) * (-w + T), q = (-R + A) * (-P + E) - (-R + b) * (-P + S), lt = (st * q - F * yt) / Z, vt = (I * yt - K * q) / Z, At = (lt - b) * (lt - b) + (vt - E) * (vt - E), tt = b + (lt - b) * M, nt = E + (vt - E) * M, ht = b - (lt - b) * D, pt = E - (vt - E) * D, J = Math.min(st * st + K * K, F * F + I * I), U = Q ? M : D, L = J + U * U * g, ut = At <= L;
13323
- ut ? o.join === ge.BEVEL || At / g > _ ? (Q ? (p.push(tt, nt), p.push(b + O * D, E + w * D), p.push(tt, nt), p.push(b + R * D, E + P * D)) : (p.push(b - O * M, E - w * M), p.push(ht, pt), p.push(b - R * M, E - P * M), p.push(ht, pt)), d += 2) : o.join === ge.ROUND ? Q ? (p.push(tt, nt), p.push(b + O * D, E + w * D), d += Ge(b, E, b + O * D, E + w * D, b + R * D, E + P * D, p, !0) + 4, p.push(tt, nt), p.push(b + R * D, E + P * D)) : (p.push(b - O * M, E - w * M), p.push(ht, pt), d += Ge(b, E, b - O * M, E - w * M, b - R * M, E - P * M, p, !1) + 4, p.push(b - R * M, E - P * M), p.push(ht, pt)) : (p.push(tt, nt), p.push(ht, pt)) : (p.push(b - O * M, E - w * M), p.push(b + O * D, E + w * D), o.join === ge.ROUND ? Q ? d += Ge(b, E, b + O * D, E + w * D, b + R * D, E + P * D, p, !0) + 2 : d += Ge(b, E, b - O * M, E - w * M, b - R * M, E - P * M, p, !1) + 2 : o.join === ge.MITER && At / g <= _ && (Q ? (p.push(ht, pt), p.push(ht, pt)) : (p.push(tt, nt), p.push(tt, nt)), d += 2), p.push(b - R * M, E - P * M), p.push(b + R * D, E + P * D), d += 2);
13322
+ var yt = (-S + v) * (-w + E) - (-S + b) * (-w + T), q = (-O + A) * (-P + E) - (-O + b) * (-P + R), lt = (st * q - F * yt) / Z, vt = (I * yt - K * q) / Z, At = (lt - b) * (lt - b) + (vt - E) * (vt - E), tt = b + (lt - b) * M, nt = E + (vt - E) * M, ht = b - (lt - b) * D, pt = E - (vt - E) * D, J = Math.min(st * st + K * K, F * F + I * I), U = Q ? M : D, L = J + U * U * g, ut = At <= L;
13323
+ ut ? o.join === ge.BEVEL || At / g > _ ? (Q ? (p.push(tt, nt), p.push(b + S * D, E + w * D), p.push(tt, nt), p.push(b + O * D, E + P * D)) : (p.push(b - S * M, E - w * M), p.push(ht, pt), p.push(b - O * M, E - P * M), p.push(ht, pt)), d += 2) : o.join === ge.ROUND ? Q ? (p.push(tt, nt), p.push(b + S * D, E + w * D), d += Ge(b, E, b + S * D, E + w * D, b + O * D, E + P * D, p, !0) + 4, p.push(tt, nt), p.push(b + O * D, E + P * D)) : (p.push(b - S * M, E - w * M), p.push(ht, pt), d += Ge(b, E, b - S * M, E - w * M, b - O * M, E - P * M, p, !1) + 4, p.push(b - O * M, E - P * M), p.push(ht, pt)) : (p.push(tt, nt), p.push(ht, pt)) : (p.push(b - S * M, E - w * M), p.push(b + S * D, E + w * D), o.join === ge.ROUND ? Q ? d += Ge(b, E, b + S * D, E + w * D, b + O * D, E + P * D, p, !0) + 2 : d += Ge(b, E, b - S * M, E - w * M, b - O * M, E - P * M, p, !1) + 2 : o.join === ge.MITER && At / g <= _ && (Q ? (p.push(ht, pt), p.push(ht, pt)) : (p.push(tt, nt), p.push(tt, nt)), d += 2), p.push(b - O * M, E - P * M), p.push(b + O * D, E + P * D), d += 2);
13324
13324
  }
13325
- v = i[(f - 2) * 2], T = i[(f - 2) * 2 + 1], b = i[(f - 1) * 2], E = i[(f - 1) * 2 + 1], O = -(T - E), w = v - b, N = Math.sqrt(O * O + w * w), O /= N, w /= N, O *= y, w *= y, p.push(b - O * M, E - w * M), p.push(b + O * D, E + w * D), h || (o.cap === Oe.ROUND ? d += Ge(b - O * (M - D) * 0.5, E - w * (M - D) * 0.5, b - O * M, E - w * M, b + O * D, E + w * D, p, !1) + 2 : o.cap === Oe.SQUARE && (d += Th(b, E, O, w, M, D, !1, p)));
13325
+ v = i[(f - 2) * 2], T = i[(f - 2) * 2 + 1], b = i[(f - 1) * 2], E = i[(f - 1) * 2 + 1], S = -(T - E), w = v - b, N = Math.sqrt(S * S + w * w), S /= N, w /= N, S *= y, w *= y, p.push(b - S * M, E - w * M), p.push(b + S * D, E + w * D), h || (o.cap === Se.ROUND ? d += Ge(b - S * (M - D) * 0.5, E - w * (M - D) * 0.5, b - S * M, E - w * M, b + S * D, E + w * D, p, !1) + 2 : o.cap === Se.SQUARE && (d += Th(b, E, S, w, M, D, !1, p)));
13326
13326
  for (var ie = e.indices, rr = oi.epsilon * oi.epsilon, Y = m; Y < d + m - 2; ++Y)
13327
- v = p[Y * 2], T = p[Y * 2 + 1], b = p[(Y + 1) * 2], E = p[(Y + 1) * 2 + 1], A = p[(Y + 2) * 2], S = p[(Y + 2) * 2 + 1], !(Math.abs(v * (E - S) + b * (S - T) + A * (T - E)) < rr) && ie.push(Y, Y + 1, Y + 2);
13327
+ v = p[Y * 2], T = p[Y * 2 + 1], b = p[(Y + 1) * 2], E = p[(Y + 1) * 2 + 1], A = p[(Y + 2) * 2], R = p[(Y + 2) * 2 + 1], !(Math.abs(v * (E - R) + b * (R - T) + A * (T - E)) < rr) && ie.push(Y, Y + 1, Y + 2);
13328
13328
  }
13329
13329
  }
13330
- function R0(r, e) {
13330
+ function O0(r, e) {
13331
13331
  var t = 0, i = r.shape, n = r.points || i.points, o = i.type !== Pt.POLY || i.closeStroke;
13332
13332
  if (n.length !== 0) {
13333
13333
  var s = e.points, a = e.indices, h = n.length / 2, u = s.length / 2, l = u;
@@ -13337,7 +13337,7 @@ function R0(r, e) {
13337
13337
  }
13338
13338
  }
13339
13339
  function Eh(r, e) {
13340
- r.lineStyle.native ? R0(r, e) : S0(r, e);
13340
+ r.lineStyle.native ? O0(r, e) : R0(r, e);
13341
13341
  }
13342
13342
  var Ah = (
13343
13343
  /** @class */
@@ -13348,12 +13348,12 @@ var Ah = (
13348
13348
  var a = s[s.length - 2], h = s[s.length - 1], u = h - t, l = a - e, c = n - t, p = i - e, f = Math.abs(u * p - l * c);
13349
13349
  if (f < 1e-8 || o === 0)
13350
13350
  return (s[s.length - 2] !== e || s[s.length - 1] !== t) && s.push(e, t), null;
13351
- var d = u * u + l * l, m = c * c + p * p, y = u * c + l * p, g = o * Math.sqrt(d) / f, _ = o * Math.sqrt(m) / f, v = g * y / d, T = _ * y / m, b = g * p + _ * l, E = g * c + _ * u, A = l * (_ + v), S = u * (_ + v), O = p * (g + T), w = c * (g + T), R = Math.atan2(S - E, A - b), P = Math.atan2(w - E, O - b);
13351
+ var d = u * u + l * l, m = c * c + p * p, y = u * c + l * p, g = o * Math.sqrt(d) / f, _ = o * Math.sqrt(m) / f, v = g * y / d, T = _ * y / m, b = g * p + _ * l, E = g * c + _ * u, A = l * (_ + v), R = u * (_ + v), S = p * (g + T), w = c * (g + T), O = Math.atan2(R - E, A - b), P = Math.atan2(w - E, S - b);
13352
13352
  return {
13353
13353
  cx: b + e,
13354
13354
  cy: E + t,
13355
13355
  radius: o,
13356
- startAngle: R,
13356
+ startAngle: O,
13357
13357
  endAngle: P,
13358
13358
  anticlockwise: l * c > p * u
13359
13359
  };
@@ -13411,7 +13411,7 @@ var Ah = (
13411
13411
  this.style = null, this.size = 0, this.start = 0, this.attribStart = 0, this.attribSize = 0;
13412
13412
  }, r;
13413
13413
  }()
13414
- ), Ue, ho = (Ue = {}, Ue[Pt.POLY] = sl, Ue[Pt.CIRC] = _n, Ue[Pt.ELIP] = _n, Ue[Pt.RECT] = w0, Ue[Pt.RREC] = O0, Ue), wh = [], Hi = [], Oh = (
13414
+ ), Ue, ho = (Ue = {}, Ue[Pt.POLY] = sl, Ue[Pt.CIRC] = _n, Ue[Pt.ELIP] = _n, Ue[Pt.RECT] = w0, Ue[Pt.RREC] = S0, Ue), wh = [], Hi = [], Sh = (
13415
13415
  /** @class */
13416
13416
  function() {
13417
13417
  function r(e, t, i, n) {
@@ -13455,12 +13455,12 @@ var Ah = (
13455
13455
  return this.graphicsData.length > 0 && (this.invalidate(), this.clearDirty++, this.graphicsData.length = 0), this;
13456
13456
  }, e.prototype.drawShape = function(t, i, n, o) {
13457
13457
  i === void 0 && (i = null), n === void 0 && (n = null), o === void 0 && (o = null);
13458
- var s = new Oh(t, i, n, o);
13458
+ var s = new Sh(t, i, n, o);
13459
13459
  return this.graphicsData.push(s), this.dirty++, this;
13460
13460
  }, e.prototype.drawHole = function(t, i) {
13461
13461
  if (i === void 0 && (i = null), !this.graphicsData.length)
13462
13462
  return null;
13463
- var n = new Oh(t, null, null, i), o = this.graphicsData[this.graphicsData.length - 1];
13463
+ var n = new Sh(t, null, null, i), o = this.graphicsData[this.graphicsData.length - 1];
13464
13464
  return n.lineStyle = o.lineStyle, o.holes.push(n), this.dirty++, this;
13465
13465
  }, e.prototype.destroy = function() {
13466
13466
  r.prototype.destroy.call(this);
@@ -13618,7 +13618,7 @@ var Ah = (
13618
13618
  Cs(e, r);
13619
13619
  function e() {
13620
13620
  var t = r !== null && r.apply(this, arguments) || this;
13621
- return t.width = 0, t.alignment = 0.5, t.native = !1, t.cap = Oe.BUTT, t.join = ge.MITER, t.miterLimit = 10, t;
13621
+ return t.width = 0, t.alignment = 0.5, t.native = !1, t.cap = Se.BUTT, t.join = ge.MITER, t.miterLimit = 10, t;
13622
13622
  }
13623
13623
  return e.prototype.clone = function() {
13624
13624
  var t = new e();
@@ -13627,7 +13627,7 @@ var Ah = (
13627
13627
  r.prototype.reset.call(this), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1;
13628
13628
  }, e;
13629
13629
  }(ol)
13630
- ), N0 = new Float32Array(3), uo = {}, Sr = (
13630
+ ), N0 = new Float32Array(3), uo = {}, Rr = (
13631
13631
  /** @class */
13632
13632
  function(r) {
13633
13633
  Cs(e, r);
@@ -13712,7 +13712,7 @@ var Ah = (
13712
13712
  matrix: null,
13713
13713
  alignment: 0.5,
13714
13714
  native: !1,
13715
- cap: Oe.BUTT,
13715
+ cap: Se.BUTT,
13716
13716
  join: ge.MITER,
13717
13717
  miterLimit: 10
13718
13718
  }, t), this.currentPath && this.startPoly();
@@ -13810,7 +13810,7 @@ var Ah = (
13810
13810
  blendMode: i,
13811
13811
  indices: l,
13812
13812
  uvs: u,
13813
- _batchRGB: Or(a),
13813
+ _batchRGB: Sr(a),
13814
13814
  _tintRGB: a,
13815
13815
  _texture: s.style.texture,
13816
13816
  alpha: s.style.alpha,
@@ -13843,10 +13843,10 @@ var Ah = (
13843
13843
  s[a] = a;
13844
13844
  var h = {
13845
13845
  tint: new Float32Array([1, 1, 1, 1]),
13846
- translationMatrix: new Rt(),
13846
+ translationMatrix: new Ot(),
13847
13847
  default: Ke.from({ uSamplers: s }, !0)
13848
13848
  }, u = t.plugins[n]._shader.program;
13849
- uo[n] = new Se(u, h);
13849
+ uo[n] = new Re(u, h);
13850
13850
  }
13851
13851
  i = uo[n];
13852
13852
  }
@@ -13863,7 +13863,7 @@ var Ah = (
13863
13863
  }, e.prototype.calculateTints = function() {
13864
13864
  if (this.batchTint !== this.tint) {
13865
13865
  this.batchTint = this.tint;
13866
- for (var t = Or(this.tint, N0), i = 0; i < this.batches.length; i++) {
13866
+ for (var t = Sr(this.tint, N0), i = 0; i < this.batches.length; i++) {
13867
13867
  var n = this.batches[i], o = n._batchRGB, s = t[0] * o[0] * 255, a = t[1] * o[1] * 255, h = t[2] * o[2] * 255, u = (s << 16) + (a << 8) + (h | 0);
13868
13868
  n._tintRGB = (u >> 16) + (u & 65280) + ((u & 255) << 16);
13869
13869
  }
@@ -14147,7 +14147,7 @@ var lo = {
14147
14147
  "cursive",
14148
14148
  "fantasy",
14149
14149
  "system-ui"
14150
- ], Rr = (
14150
+ ], Or = (
14151
14151
  /** @class */
14152
14152
  function() {
14153
14153
  function r(e) {
@@ -14532,16 +14532,16 @@ var lo = {
14532
14532
  }, r;
14533
14533
  }()
14534
14534
  );
14535
- function Sh(r) {
14535
+ function Rh(r) {
14536
14536
  return typeof r == "number" ? Mu(r) : (typeof r == "string" && r.indexOf("0x") === 0 && (r = r.replace("0x", "#")), r);
14537
14537
  }
14538
14538
  function co(r) {
14539
14539
  if (Array.isArray(r)) {
14540
14540
  for (var e = 0; e < r.length; ++e)
14541
- r[e] = Sh(r[e]);
14541
+ r[e] = Rh(r[e]);
14542
14542
  return r;
14543
14543
  } else
14544
- return Sh(r);
14544
+ return Rh(r);
14545
14545
  }
14546
14546
  function U0(r, e) {
14547
14547
  if (!Array.isArray(r) || !Array.isArray(e) || r.length !== e.length)
@@ -14598,17 +14598,17 @@ var Yi = {
14598
14598
  if (T > d)
14599
14599
  if (s !== "" && (a += r.addLine(s), s = "", o = 0), r.canBreakWords(g, t.breakWords))
14600
14600
  for (var b = r.wordWrapSplit(g), E = 0; E < b.length; E++) {
14601
- for (var A = b[E], S = 1; b[E + S]; ) {
14602
- var O = b[E + S], w = A[A.length - 1];
14603
- if (!r.canBreakChars(w, O, g, E, t.breakWords))
14604
- A += O;
14601
+ for (var A = b[E], R = 1; b[E + R]; ) {
14602
+ var S = b[E + R], w = A[A.length - 1];
14603
+ if (!r.canBreakChars(w, S, g, E, t.breakWords))
14604
+ A += S;
14605
14605
  else
14606
14606
  break;
14607
- S++;
14607
+ R++;
14608
14608
  }
14609
14609
  E += A.length - 1;
14610
- var R = r.getFromCache(A, u, h, n);
14611
- R + o > d && (a += r.addLine(s), f = !1, s = "", o = 0), s += A, o += R;
14610
+ var O = r.getFromCache(A, u, h, n);
14611
+ O + o > d && (a += r.addLine(s), f = !1, s = "", o = 0), s += A, o += O;
14612
14612
  }
14613
14613
  else {
14614
14614
  s.length > 0 && (a += r.addLine(s), s = "", o = 0);
@@ -14791,14 +14791,14 @@ var k0 = {
14791
14791
  var g = i.dropShadow && y === 0, _ = g ? Math.ceil(Math.max(1, a) + i.padding * 2) : 0, v = _ * this._resolution;
14792
14792
  if (g) {
14793
14793
  n.fillStyle = "black", n.strokeStyle = "black";
14794
- var T = i.dropShadowColor, b = Or(typeof T == "number" ? T : ii(T)), E = i.dropShadowBlur * this._resolution, A = i.dropShadowDistance * this._resolution;
14794
+ var T = i.dropShadowColor, b = Sr(typeof T == "number" ? T : ii(T)), E = i.dropShadowBlur * this._resolution, A = i.dropShadowDistance * this._resolution;
14795
14795
  n.shadowColor = "rgba(" + b[0] * 255 + "," + b[1] * 255 + "," + b[2] * 255 + "," + i.dropShadowAlpha + ")", n.shadowBlur = E, n.shadowOffsetX = Math.cos(i.dropShadowAngle) * A, n.shadowOffsetY = Math.sin(i.dropShadowAngle) * A + v;
14796
14796
  } else
14797
14797
  n.fillStyle = this._generateFillStyle(i, h, o), n.strokeStyle = i.stroke, n.shadowColor = "black", n.shadowBlur = 0, n.shadowOffsetX = 0, n.shadowOffsetY = 0;
14798
- var S = (u - p.fontSize) / 2;
14799
- (!e.nextLineHeightBehavior || u - p.fontSize < 0) && (S = 0);
14800
- for (var O = 0; O < h.length; O++)
14801
- f = i.strokeThickness / 2, d = i.strokeThickness / 2 + O * u + p.ascent + S, i.align === "right" ? f += c - l[O] : i.align === "center" && (f += (c - l[O]) / 2), i.stroke && i.strokeThickness && this.drawLetterSpacing(h[O], f + i.padding, d + i.padding - _, !0), i.fill && this.drawLetterSpacing(h[O], f + i.padding, d + i.padding - _);
14798
+ var R = (u - p.fontSize) / 2;
14799
+ (!e.nextLineHeightBehavior || u - p.fontSize < 0) && (R = 0);
14800
+ for (var S = 0; S < h.length; S++)
14801
+ f = i.strokeThickness / 2, d = i.strokeThickness / 2 + S * u + p.ascent + R, i.align === "right" ? f += c - l[S] : i.align === "center" && (f += (c - l[S]) / 2), i.stroke && i.strokeThickness && this.drawLetterSpacing(h[S], f + i.padding, d + i.padding - _, !0), i.fill && this.drawLetterSpacing(h[S], f + i.padding, d + i.padding - _);
14802
14802
  }
14803
14803
  this.updateTexture();
14804
14804
  }
@@ -14853,17 +14853,17 @@ var k0 = {
14853
14853
  var v = g + m, T = n.lineHeight * (d + 1), b = v;
14854
14854
  d + 1 < i.length && T < v && (b = (v + T) / 2);
14855
14855
  for (var E = (b - _) / l, A = 0; A < c.length; A++) {
14856
- var S = 0;
14857
- typeof p[A] == "number" ? S = p[A] : S = A / c.length;
14858
- var O = Math.min(1, Math.max(0, _ / l + S * E));
14859
- O = Number(O.toFixed(5)), s.addColorStop(O, c[A]);
14856
+ var R = 0;
14857
+ typeof p[A] == "number" ? R = p[A] : R = A / c.length;
14858
+ var S = Math.min(1, Math.max(0, _ / l + R * E));
14859
+ S = Number(S.toFixed(5)), s.addColorStop(S, c[A]);
14860
14860
  }
14861
14861
  }
14862
14862
  } else {
14863
14863
  s = this.context.createLinearGradient(h, l / 2, u + h, l / 2);
14864
- for (var w = c.length + 1, R = 1, d = 0; d < c.length; d++) {
14864
+ for (var w = c.length + 1, O = 1, d = 0; d < c.length; d++) {
14865
14865
  var P = void 0;
14866
- typeof p[d] == "number" ? P = p[d] : P = R / w, s.addColorStop(P, c[d]), R++;
14866
+ typeof p[d] == "number" ? P = p[d] : P = O / w, s.addColorStop(P, c[d]), O++;
14867
14867
  }
14868
14868
  }
14869
14869
  return s;
@@ -14903,7 +14903,7 @@ var k0 = {
14903
14903
  return this._style;
14904
14904
  },
14905
14905
  set: function(t) {
14906
- t = t || {}, t instanceof Rr ? this._style = t : this._style = new Rr(t), this.localStyleID = -1, this.dirty = !0;
14906
+ t = t || {}, t instanceof Or ? this._style = t : this._style = new Or(t), this.localStyleID = -1, this.dirty = !0;
14907
14907
  },
14908
14908
  enumerable: !1,
14909
14909
  configurable: !0
@@ -15003,18 +15003,18 @@ function Y0(r, e) {
15003
15003
  }
15004
15004
  return !1;
15005
15005
  }
15006
- function z0(r, e) {
15006
+ function V0(r, e) {
15007
15007
  if (r._texture && r._texture instanceof W) {
15008
15008
  var t = r._texture.baseTexture;
15009
15009
  return e.indexOf(t) === -1 && e.push(t), !0;
15010
15010
  }
15011
15011
  return !1;
15012
15012
  }
15013
- function V0(r, e) {
15013
+ function z0(r, e) {
15014
15014
  return e instanceof al ? (e.updateText(!0), !0) : !1;
15015
15015
  }
15016
15016
  function W0(r, e) {
15017
- if (e instanceof Rr) {
15017
+ if (e instanceof Or) {
15018
15018
  var t = e.toFontString();
15019
15019
  return pe.measureFont(t), !0;
15020
15020
  }
@@ -15029,7 +15029,7 @@ function $0(r, e) {
15029
15029
  return !1;
15030
15030
  }
15031
15031
  function q0(r, e) {
15032
- return r instanceof Rr ? (e.indexOf(r) === -1 && e.push(r), !0) : !1;
15032
+ return r instanceof Or ? (e.indexOf(r) === -1 && e.push(r), !0) : !1;
15033
15033
  }
15034
15034
  var K0 = (
15035
15035
  /** @class */
@@ -15038,7 +15038,7 @@ var K0 = (
15038
15038
  var t = this;
15039
15039
  this.limiter = new j0(G.UPLOADS_PER_FRAME), this.renderer = e, this.uploadHookHelper = null, this.queue = [], this.addHooks = [], this.uploadHooks = [], this.completes = [], this.ticking = !1, this.delayedTick = function() {
15040
15040
  t.queue && t.prepareItems();
15041
- }, this.registerFindHook($0), this.registerFindHook(q0), this.registerFindHook(H0), this.registerFindHook(Y0), this.registerFindHook(z0), this.registerUploadHook(V0), this.registerUploadHook(W0);
15041
+ }, this.registerFindHook($0), this.registerFindHook(q0), this.registerFindHook(H0), this.registerFindHook(Y0), this.registerFindHook(V0), this.registerUploadHook(z0), this.registerUploadHook(W0);
15042
15042
  }
15043
15043
  return r.prototype.upload = function(e, t) {
15044
15044
  var i = this;
@@ -15092,7 +15092,7 @@ function hl(r, e) {
15092
15092
  return e instanceof rt ? (e._glTextures[r.CONTEXT_UID] || r.texture.bind(e), !0) : !1;
15093
15093
  }
15094
15094
  function Z0(r, e) {
15095
- if (!(e instanceof Sr))
15095
+ if (!(e instanceof Rr))
15096
15096
  return !1;
15097
15097
  var t = e.geometry;
15098
15098
  e.finishPoly(), t.updateBatches();
@@ -15103,7 +15103,7 @@ function Z0(r, e) {
15103
15103
  return t.batchable || r.geometry.bind(t, e._resolveDirectShader(r)), !0;
15104
15104
  }
15105
15105
  function J0(r, e) {
15106
- return r instanceof Sr ? (e.push(r), !0) : !1;
15106
+ return r instanceof Rr ? (e.push(r), !0) : !1;
15107
15107
  }
15108
15108
  var Q0 = (
15109
15109
  /** @class */
@@ -15372,7 +15372,7 @@ void main(void)
15372
15372
  vec4 texSample = texture2D(uSampler, vTextureCoord);
15373
15373
  gl_FragColor = texSample * uColor;
15374
15374
  }
15375
- `, Rh = `#version 100
15375
+ `, Oh = `#version 100
15376
15376
  #define SHADER_NAME Tiling-Sprite-100
15377
15377
 
15378
15378
  precision lowp float;
@@ -15471,7 +15471,7 @@ void main(void)
15471
15471
 
15472
15472
  fragmentColor = texSample * uColor;
15473
15473
  }
15474
- `, zi = new Rt(), sb = (
15474
+ `, Vi = new Ot(), sb = (
15475
15475
  /** @class */
15476
15476
  function(r) {
15477
15477
  ul(e, r);
@@ -15481,7 +15481,7 @@ void main(void)
15481
15481
  }
15482
15482
  return e.prototype.contextChange = function() {
15483
15483
  var t = this.renderer, i = { globals: t.globalUniforms };
15484
- this.simpleShader = Se.from(Rh, rb, i), this.shader = t.context.webGLVersion > 1 ? Se.from(nb, ob, i) : Se.from(Rh, ib, i);
15484
+ this.simpleShader = Re.from(Oh, rb, i), this.shader = t.context.webGLVersion > 1 ? Re.from(nb, ob, i) : Re.from(Oh, ib, i);
15485
15485
  }, e.prototype.render = function(t) {
15486
15486
  var i = this.renderer, n = this.quad, o = n.vertices;
15487
15487
  o[0] = o[6] = t._width * -t.anchor.x, o[1] = o[3] = t._height * -t.anchor.y, o[2] = o[4] = t._width * (1 - t.anchor.x), o[5] = o[7] = t._height * (1 - t.anchor.y);
@@ -15490,7 +15490,7 @@ void main(void)
15490
15490
  var h = t._texture, u = h.baseTexture, l = u.alphaMode > 0, c = t.tileTransform.localTransform, p = t.uvMatrix, f = u.isPowerOfTwo && h.frame.width === u.width && h.frame.height === u.height;
15491
15491
  f && (u._glTextures[i.CONTEXT_UID] ? f = u.wrapMode !== he.CLAMP : u.wrapMode === he.CLAMP && (u.wrapMode = he.REPEAT));
15492
15492
  var d = f ? this.simpleShader : this.shader, m = h.width, y = h.height, g = t._width, _ = t._height;
15493
- zi.set(c.a * m / g, c.b * m / _, c.c * y / g, c.d * y / _, c.tx / g, c.ty / _), zi.invert(), f ? zi.prepend(p.mapCoord) : (d.uniforms.uMapCoord = p.mapCoord.toArray(!0), d.uniforms.uClampFrame = p.uClampFrame, d.uniforms.uClampOffset = p.uClampOffset), d.uniforms.uTransform = zi.toArray(!0), d.uniforms.uColor = Cu(t.tint, t.worldAlpha, d.uniforms.uColor, l), d.uniforms.translationMatrix = t.transform.worldTransform.toArray(!0), d.uniforms.uSampler = h, i.shader.bind(d), i.geometry.bind(n), this.state.blendMode = Du(t.blendMode, l), i.state.set(this.state), i.geometry.draw(this.renderer.gl.TRIANGLES, 6, 0);
15493
+ Vi.set(c.a * m / g, c.b * m / _, c.c * y / g, c.d * y / _, c.tx / g, c.ty / _), Vi.invert(), f ? Vi.prepend(p.mapCoord) : (d.uniforms.uMapCoord = p.mapCoord.toArray(!0), d.uniforms.uClampFrame = p.uClampFrame, d.uniforms.uClampOffset = p.uClampOffset), d.uniforms.uTransform = Vi.toArray(!0), d.uniforms.uColor = Cu(t.tint, t.worldAlpha, d.uniforms.uColor, l), d.uniforms.translationMatrix = t.transform.worldTransform.toArray(!0), d.uniforms.uSampler = h, i.shader.bind(d), i.geometry.bind(n), this.state.blendMode = Du(t.blendMode, l), i.state.set(this.state), i.geometry.draw(this.renderer.gl.TRIANGLES, 6, 0);
15494
15494
  }, e.extension = {
15495
15495
  name: "tilingSprite",
15496
15496
  type: dt.RendererPlugin
@@ -15732,7 +15732,7 @@ void main(void)
15732
15732
  var n = this, o = {
15733
15733
  uSampler: t,
15734
15734
  alpha: 1,
15735
- uTextureMatrix: Rt.IDENTITY,
15735
+ uTextureMatrix: Ot.IDENTITY,
15736
15736
  uColor: new Float32Array([1, 1, 1, 1])
15737
15737
  };
15738
15738
  return i = Object.assign({
@@ -15785,13 +15785,13 @@ void main(void)
15785
15785
  }
15786
15786
  this.uvMatrix.update() && (this.uniforms.uTextureMatrix = this.uvMatrix.mapCoord);
15787
15787
  }, e;
15788
- }(Se)
15788
+ }(Re)
15789
15789
  ), En = (
15790
15790
  /** @class */
15791
15791
  function(r) {
15792
15792
  Ns(e, r);
15793
15793
  function e(t, i, n) {
15794
- var o = r.call(this) || this, s = new St(t), a = new St(i, !0), h = new St(n, !0, !0);
15794
+ var o = r.call(this) || this, s = new Rt(t), a = new Rt(i, !0), h = new Rt(n, !0, !0);
15795
15795
  return o.addAttribute("aVertexPosition", s, 2, !1, k.FLOAT).addAttribute("aTextureCoord", a, 2, !1, k.FLOAT).addIndex(h), o._updateId = -1, o;
15796
15796
  }
15797
15797
  return Object.defineProperty(e.prototype, "vertexDirtyId", {
@@ -16018,9 +16018,9 @@ function fb(r, e, t, i, n, o) {
16018
16018
  }
16019
16019
  } else {
16020
16020
  a = e.createLinearGradient(u, c / 2, l + u, c / 2);
16021
- for (var S = p.length + 1, O = 1, m = 0; m < p.length; m++) {
16021
+ for (var R = p.length + 1, S = 1, m = 0; m < p.length; m++) {
16022
16022
  var w = void 0;
16023
- typeof f[m] == "number" ? w = f[m] : w = O / S, a.addColorStop(w, p[m]), O++;
16023
+ typeof f[m] == "number" ? w = f[m] : w = S / R, a.addColorStop(w, p[m]), S++;
16024
16024
  }
16025
16025
  }
16026
16026
  return a;
@@ -16030,7 +16030,7 @@ function db(r, e, t, i, n, o, s) {
16030
16030
  e.translate(i, n), e.scale(o, o);
16031
16031
  var u = s.strokeThickness / 2, l = -(s.strokeThickness / 2);
16032
16032
  if (e.font = s.toFontString(), e.lineWidth = s.strokeThickness, e.textBaseline = s.textBaseline, e.lineJoin = s.lineJoin, e.miterLimit = s.miterLimit, e.fillStyle = fb(r, e, s, o, [a], t), e.strokeStyle = s.stroke, s.dropShadow) {
16033
- var c = s.dropShadowColor, p = Or(typeof c == "number" ? c : ii(c)), f = s.dropShadowBlur * o, d = s.dropShadowDistance * o;
16033
+ var c = s.dropShadowColor, p = Sr(typeof c == "number" ? c : ii(c)), f = s.dropShadowBlur * o, d = s.dropShadowDistance * o;
16034
16034
  e.shadowColor = "rgba(" + p[0] * 255 + "," + p[1] * 255 + "," + p[2] * 255 + "," + s.dropShadowAlpha + ")", e.shadowBlur = f, e.shadowOffsetX = Math.cos(s.dropShadowAngle) * d, e.shadowOffsetY = Math.sin(s.dropShadowAngle) * d;
16035
16035
  } else
16036
16036
  e.shadowColor = "black", e.shadowBlur = 0, e.shadowOffsetX = 0, e.shadowOffsetY = 0;
@@ -16072,20 +16072,20 @@ var Ee = (
16072
16072
  c[d] = t instanceof Array ? t[p] : t[m], u != null && u.fieldType && u.fieldType !== "none" && (c[d].baseTexture.alphaMode = te.NO_PREMULTIPLIED_ALPHA, c[d].baseTexture.mipmap = Qt.OFF);
16073
16073
  }
16074
16074
  for (var p = 0; p < e.char.length; p++) {
16075
- var y = e.char[p], d = y.id, g = y.page, _ = e.char[p], v = _.x, T = _.y, b = _.width, E = _.height, A = _.xoffset, S = _.yoffset, O = _.xadvance;
16076
- v /= l, T /= l, b /= l, E /= l, A /= l, S /= l, O /= l;
16075
+ var y = e.char[p], d = y.id, g = y.page, _ = e.char[p], v = _.x, T = _.y, b = _.width, E = _.height, A = _.xoffset, R = _.yoffset, S = _.xadvance;
16076
+ v /= l, T /= l, b /= l, E /= l, A /= l, R /= l, S /= l;
16077
16077
  var w = new it(v + c[g].frame.x / l, T + c[g].frame.y / l, b, E);
16078
16078
  this.chars[d] = {
16079
16079
  xOffset: A,
16080
- yOffset: S,
16081
- xAdvance: O,
16080
+ yOffset: R,
16081
+ xAdvance: S,
16082
16082
  kerning: {},
16083
16083
  texture: new W(c[g].baseTexture, w),
16084
16084
  page: g
16085
16085
  };
16086
16086
  }
16087
16087
  for (var p = 0; p < e.kerning.length; p++) {
16088
- var R = e.kerning[p], P = R.first, N = R.second, B = R.amount;
16088
+ var O = e.kerning[p], P = O.first, N = O.second, B = O.amount;
16089
16089
  P /= l, N /= l, B /= l, this.chars[N] && (this.chars[N].kerning[P] = B);
16090
16090
  }
16091
16091
  this.distanceFieldRange = u == null ? void 0 : u.distanceRange, this.distanceFieldType = (o = (n = u == null ? void 0 : u.fieldType) === null || n === void 0 ? void 0 : n.toLowerCase()) !== null && o !== void 0 ? o : "none";
@@ -16117,7 +16117,7 @@ var Ee = (
16117
16117
  }, r.from = function(e, t, i) {
16118
16118
  if (!e)
16119
16119
  throw new Error("[BitmapFont] Property `name` is required.");
16120
- var n = Object.assign({}, r.defaultOptions, i), o = n.chars, s = n.padding, a = n.resolution, h = n.textureWidth, u = n.textureHeight, l = mb(o), c = t instanceof Rr ? t : new Rr(t), p = h, f = new gn();
16120
+ var n = Object.assign({}, r.defaultOptions, i), o = n.chars, s = n.padding, a = n.resolution, h = n.textureWidth, u = n.textureHeight, l = mb(o), c = t instanceof Or ? t : new Or(t), p = h, f = new gn();
16121
16121
  f.info[0] = {
16122
16122
  face: c.fontFamily,
16123
16123
  size: c.fontSize
@@ -16129,31 +16129,31 @@ var Ee = (
16129
16129
  id: T.length - 1,
16130
16130
  file: ""
16131
16131
  }));
16132
- var E = l[b], A = pe.measureText(E, c, !1, y), S = A.width, O = Math.ceil(A.height), w = Math.ceil((c.fontStyle === "italic" ? 2 : 1) * S);
16133
- if (m >= u - O * a) {
16132
+ var E = l[b], A = pe.measureText(E, c, !1, y), R = A.width, S = Math.ceil(A.height), w = Math.ceil((c.fontStyle === "italic" ? 2 : 1) * R);
16133
+ if (m >= u - S * a) {
16134
16134
  if (m === 0)
16135
16135
  throw new Error("[BitmapFont] textureHeight " + u + "px is too small " + ("(fontFamily: '" + c.fontFamily + "', fontSize: " + c.fontSize + "px, char: '" + E + "')"));
16136
16136
  --b, y = null, g = null, _ = null, m = 0, d = 0, v = 0;
16137
16137
  continue;
16138
16138
  }
16139
- if (v = Math.max(O + A.fontProperties.descent, v), w * a + d >= p) {
16139
+ if (v = Math.max(S + A.fontProperties.descent, v), w * a + d >= p) {
16140
16140
  if (d === 0)
16141
16141
  throw new Error("[BitmapFont] textureWidth " + h + "px is too small " + ("(fontFamily: '" + c.fontFamily + "', fontSize: " + c.fontSize + "px, char: '" + E + "')"));
16142
16142
  --b, m += v * a, m = Math.ceil(m), d = 0, v = 0;
16143
16143
  continue;
16144
16144
  }
16145
16145
  db(y, g, A, d, m, a, c);
16146
- var R = Ji(A.text);
16146
+ var O = Ji(A.text);
16147
16147
  f.char.push({
16148
- id: R,
16148
+ id: O,
16149
16149
  page: T.length - 1,
16150
16150
  x: d / a,
16151
16151
  y: m / a,
16152
16152
  width: w,
16153
- height: O,
16153
+ height: S,
16154
16154
  xoffset: 0,
16155
16155
  yoffset: 0,
16156
- xadvance: Math.ceil(S - (c.dropShadow ? c.dropShadowDistance : 0) - (c.stroke ? c.strokeThickness : 0))
16156
+ xadvance: Math.ceil(R - (c.dropShadow ? c.dropShadowDistance : 0) - (c.stroke ? c.strokeThickness : 0))
16157
16157
  }), d += (w + 2 * s) * a, d = Math.ceil(d);
16158
16158
  }
16159
16159
  if (!(i != null && i.skipKerning))
@@ -16243,23 +16243,23 @@ void main(void)\r
16243
16243
  return e.prototype.updateText = function() {
16244
16244
  for (var t, i = Ee.available[this._fontName], n = this.fontSize, o = n / i.size, s = new _t(), a = [], h = [], u = [], l = this._text.replace(/(?:\r\n|\r)/g, `
16245
16245
  `) || " ", c = cl(l), p = this._maxWidth * i.size / n, f = i.distanceFieldType === "none" ? Mh : Ph, d = null, m = 0, y = 0, g = 0, _ = -1, v = 0, T = 0, b = 0, E = 0, A = 0; A < c.length; A++) {
16246
- var S = c[A], O = Ji(S);
16247
- if (/(?:\s)/.test(S) && (_ = A, v = m, E++), S === "\r" || S === `
16246
+ var R = c[A], S = Ji(R);
16247
+ if (/(?:\s)/.test(R) && (_ = A, v = m, E++), R === "\r" || R === `
16248
16248
  `) {
16249
16249
  h.push(m), u.push(-1), y = Math.max(y, m), ++g, ++T, s.x = 0, s.y += i.lineHeight, d = null, E = 0;
16250
16250
  continue;
16251
16251
  }
16252
- var w = i.chars[O];
16252
+ var w = i.chars[S];
16253
16253
  if (w) {
16254
16254
  d && w.kerning[d] && (s.x += w.kerning[d]);
16255
- var R = Dh.pop() || {
16255
+ var O = Dh.pop() || {
16256
16256
  texture: W.EMPTY,
16257
16257
  line: 0,
16258
16258
  charCode: 0,
16259
16259
  prevSpaces: 0,
16260
16260
  position: new _t()
16261
16261
  };
16262
- R.texture = w.texture, R.line = g, R.charCode = O, R.position.x = s.x + w.xOffset + this._letterSpacing / 2, R.position.y = s.y + w.yOffset, R.prevSpaces = E, a.push(R), m = R.position.x + Math.max(w.xAdvance - w.xOffset, w.texture.orig.width), s.x += w.xAdvance + this._letterSpacing, b = Math.max(b, w.yOffset + w.texture.height), d = O, _ !== -1 && p > 0 && s.x > p && (++T, xr(a, 1 + _ - T, 1 + A - _), A = _, _ = -1, h.push(v), u.push(a.length > 0 ? a[a.length - 1].prevSpaces : 0), y = Math.max(y, v), g++, s.x = 0, s.y += i.lineHeight, d = null, E = 0);
16262
+ O.texture = w.texture, O.line = g, O.charCode = S, O.position.x = s.x + w.xOffset + this._letterSpacing / 2, O.position.y = s.y + w.yOffset, O.prevSpaces = E, a.push(O), m = O.position.x + Math.max(w.xAdvance - w.xOffset, w.texture.orig.width), s.x += w.xAdvance + this._letterSpacing, b = Math.max(b, w.yOffset + w.texture.height), d = S, _ !== -1 && p > 0 && s.x > p && (++T, xr(a, 1 + _ - T, 1 + A - _), A = _, _ = -1, h.push(v), u.push(a.length > 0 ? a[a.length - 1].prevSpaces : 0), y = Math.max(y, v), g++, s.x = 0, s.y += i.lineHeight, d = null, E = 0);
16263
16263
  }
16264
16264
  }
16265
16265
  var P = c[c.length - 1];
@@ -16312,9 +16312,9 @@ void main(void)\r
16312
16312
  I.mesh.size = 6 * lt;
16313
16313
  }
16314
16314
  for (var A = 0; A < M; A++) {
16315
- var S = a[A], nt = S.position.x + N[S.line] * (this._align === "justify" ? S.prevSpaces : 1);
16315
+ var R = a[A], nt = R.position.x + N[R.line] * (this._align === "justify" ? R.prevSpaces : 1);
16316
16316
  this._roundPixels && (nt = Math.round(nt));
16317
- var ht = nt * o, pt = S.position.y * o, K = S.texture, J = D[K.baseTexture.uid], U = K.frame, L = K._uvs, ut = J.index++;
16317
+ var ht = nt * o, pt = R.position.y * o, K = R.texture, J = D[K.baseTexture.uid], U = K.frame, L = K._uvs, ut = J.index++;
16318
16318
  J.indices[ut * 6 + 0] = 0 + ut * 4, J.indices[ut * 6 + 1] = 1 + ut * 4, J.indices[ut * 6 + 2] = 2 + ut * 4, J.indices[ut * 6 + 3] = 0 + ut * 4, J.indices[ut * 6 + 4] = 2 + ut * 4, J.indices[ut * 6 + 5] = 3 + ut * 4, J.vertices[ut * 8 + 0] = ht, J.vertices[ut * 8 + 1] = pt, J.vertices[ut * 8 + 2] = ht + U.width * o, J.vertices[ut * 8 + 3] = pt, J.vertices[ut * 8 + 4] = ht + U.width * o, J.vertices[ut * 8 + 5] = pt + U.height * o, J.vertices[ut * 8 + 6] = ht, J.vertices[ut * 8 + 7] = pt + U.height * o, J.uvs[ut * 8 + 0] = L.x0, J.uvs[ut * 8 + 1] = L.y0, J.uvs[ut * 8 + 2] = L.x1, J.uvs[ut * 8 + 3] = L.y1, J.uvs[ut * 8 + 4] = L.x2, J.uvs[ut * 8 + 5] = L.y2, J.uvs[ut * 8 + 6] = L.x3, J.uvs[ut * 8 + 7] = L.y3;
16319
16319
  }
16320
16320
  this._textWidth = y * o, this._textHeight = (s.y + i.lineHeight) * o;
@@ -16938,14 +16938,14 @@ var hs = function(r, e) {
16938
16938
  i.hasOwnProperty(n) && (t[n] = i[n]);
16939
16939
  }, hs(r, e);
16940
16940
  };
16941
- function Ob(r, e) {
16941
+ function Sb(r, e) {
16942
16942
  hs(r, e);
16943
16943
  function t() {
16944
16944
  this.constructor = r;
16945
16945
  }
16946
16946
  r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
16947
16947
  }
16948
- var Sb = `varying vec2 vTextureCoord;
16948
+ var Rb = `varying vec2 vTextureCoord;
16949
16949
  uniform sampler2D uSampler;
16950
16950
  uniform float m[20];
16951
16951
  uniform float uAlpha;
@@ -17000,7 +17000,7 @@ void main(void)
17000
17000
  `, Nh = (
17001
17001
  /** @class */
17002
17002
  function(r) {
17003
- Ob(e, r);
17003
+ Sb(e, r);
17004
17004
  function e() {
17005
17005
  var t = this, i = {
17006
17006
  m: new Float32Array([
@@ -17027,7 +17027,7 @@ void main(void)
17027
17027
  ]),
17028
17028
  uAlpha: 1
17029
17029
  };
17030
- return t = r.call(this, Ju, Sb, i) || this, t.alpha = 1, t;
17030
+ return t = r.call(this, Ju, Rb, i) || this, t.alpha = 1, t;
17031
17031
  }
17032
17032
  return e.prototype._loadMatrix = function(t, i) {
17033
17033
  i === void 0 && (i = !1);
@@ -17592,7 +17592,7 @@ var us = function(r, e) {
17592
17592
  i.hasOwnProperty(n) && (t[n] = i[n]);
17593
17593
  }, us(r, e);
17594
17594
  };
17595
- function Rb(r, e) {
17595
+ function Ob(r, e) {
17596
17596
  us(r, e);
17597
17597
  function t() {
17598
17598
  this.constructor = r;
@@ -17650,9 +17650,9 @@ void main(void)
17650
17650
  }
17651
17651
  `;
17652
17652
  (function(r) {
17653
- Rb(e, r);
17653
+ Ob(e, r);
17654
17654
  function e(t, i) {
17655
- var n = this, o = new Rt();
17655
+ var n = this, o = new Ot();
17656
17656
  return t.renderable = !1, n = r.call(this, Mb, Ib, {
17657
17657
  mapSampler: t._texture,
17658
17658
  filterMatrix: o,
@@ -17996,7 +17996,7 @@ void main()
17996
17996
  * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
17997
17997
  * http://www.opensource.org/licenses/mit-license
17998
17998
  */
17999
- var fl = new Rt();
17999
+ var fl = new Ot();
18000
18000
  wt.prototype._cacheAsBitmap = !1;
18001
18001
  wt.prototype._cacheData = null;
18002
18002
  wt.prototype._cacheAsBitmapResolution = null;
@@ -18444,11 +18444,11 @@ var Xb = (
18444
18444
  this.autoUpdate && this.geometry.getBuffer("aVertexPosition").update(), r.prototype._render.call(this, t);
18445
18445
  }, e;
18446
18446
  })(ai);
18447
- var Vi = 10;
18447
+ var zi = 10;
18448
18448
  (function(r) {
18449
18449
  Cr(e, r);
18450
18450
  function e(t, i, n, o, s) {
18451
- i === void 0 && (i = Vi), n === void 0 && (n = Vi), o === void 0 && (o = Vi), s === void 0 && (s = Vi);
18451
+ i === void 0 && (i = zi), n === void 0 && (n = zi), o === void 0 && (o = zi), s === void 0 && (s = zi);
18452
18452
  var a = r.call(this, W.WHITE, 4, 4) || this;
18453
18453
  return a._origWidth = t.orig.width, a._origHeight = t.orig.height, a._width = a._origWidth, a._height = a._origHeight, a._leftWidth = i, a._rightWidth = o, a._topHeight = n, a._bottomHeight = s, a.texture = t, a;
18454
18454
  }
@@ -18710,15 +18710,15 @@ xe.add(
18710
18710
  kv
18711
18711
  );
18712
18712
  const Qi = 1733608, Hb = 0.25, Fs = (r) => (e, t) => {
18713
- const i = t != null && t.fill ? ii(t.fill) : Qi, n = (t == null ? void 0 : t.fillOpacity) === void 0 ? Hb : t.fillOpacity, o = new Sr();
18713
+ const i = t != null && t.fill ? ii(t.fill) : Qi, n = (t == null ? void 0 : t.fillOpacity) === void 0 ? Hb : t.fillOpacity, o = new Rr();
18714
18714
  return o.beginFill(16777215, n), o.lineStyle(1, 16777215, 1, 0.5, !0), r(e, o), o.endFill(), o.tint = i, o;
18715
18715
  }, Yb = Fs((r, e) => {
18716
18716
  const { cx: t, cy: i, rx: n, ry: o } = r.geometry;
18717
18717
  e.drawEllipse(t, i, n, o);
18718
- }), zb = Fs((r, e) => {
18718
+ }), Vb = Fs((r, e) => {
18719
18719
  const t = r.geometry.points.reduce((i, n) => [...i, ...n], []);
18720
18720
  e.drawPolygon(t);
18721
- }), Vb = Fs((r, e) => {
18721
+ }), zb = Fs((r, e) => {
18722
18722
  const { x: t, y: i, w: n, h: o } = r.geometry;
18723
18723
  e.drawRect(t, i, n, o);
18724
18724
  }), Wb = (r, e, t) => () => {
@@ -18726,7 +18726,7 @@ const Qi = 1733608, Hb = 0.25, Fs = (r) => (e, t) => {
18726
18726
  let u, l;
18727
18727
  s > 0 && s <= Math.PI / 2 ? (u = i.height * o, l = 0) : s > Math.PI / 2 && s <= Math.PI ? (u = i.width * o, l = i.height * o) : s > Math.PI && s <= Math.PI * 1.5 ? (u = 0, l = i.width * o) : (u = 0, l = 0), e.position.x = u + a * Math.cos(s) - h * Math.sin(s), e.position.y = l + a * Math.sin(s) + h * Math.cos(s), e.scale.set(o, o), e.rotation = s, t.render(e);
18728
18728
  }, $b = (r, e) => {
18729
- const t = new Sr(), i = Zu({
18729
+ const t = new Rr(), i = Zu({
18730
18730
  width: e.width,
18731
18731
  height: e.height,
18732
18732
  backgroundAlpha: 0,
@@ -18737,7 +18737,7 @@ const Qi = 1733608, Hb = 0.25, Fs = (r) => (e, t) => {
18737
18737
  const a = (d) => {
18738
18738
  const { selector: m } = d.target, y = typeof s == "function" ? s(d) : s;
18739
18739
  let g;
18740
- m.type === kt.RECTANGLE ? g = Vb(m, y) : m.type === kt.POLYGON ? g = zb(m, y) : m.type === kt.ELLIPSE ? g = Yb(m, y) : console.warn(`Unsupported shape type: ${m.type}`), g && (t.addChild(g), n.set(d.id, { g, annotation: d }));
18740
+ m.type === kt.RECTANGLE ? g = zb(m, y) : m.type === kt.POLYGON ? g = Vb(m, y) : m.type === kt.ELLIPSE ? g = Yb(m, y) : console.warn(`Unsupported shape type: ${m.type}`), g && (t.addChild(g), n.set(d.id, { g, annotation: d }));
18741
18741
  }, h = (d) => {
18742
18742
  const m = n.get(d.id);
18743
18743
  m && (n.delete(d.id), m.g.destroy());
@@ -18786,16 +18786,16 @@ function qb(r, e, t) {
18786
18786
  const f = Pr();
18787
18787
  let d, m = !1;
18788
18788
  const y = (b) => {
18789
- const E = new tn.Point(b.x, b.y), { x: A, y: S } = h.viewport.pointFromPixel(E);
18790
- return h.viewport.viewportToImageCoordinates(A, S);
18789
+ const E = new tn.Point(b.x, b.y), { x: A, y: R } = h.viewport.pointFromPixel(E);
18790
+ return h.viewport.viewportToImageCoordinates(A, R);
18791
18791
  }, g = (b) => (E) => {
18792
- const { x: A, y: S } = y(new tn.Point(E.offsetX, E.offsetY)), O = u.getAt(A, S);
18793
- O && (!o || o(O)) ? (b.classList.add("hover"), i !== O.id && l.set(O.id)) : (b.classList.remove("hover"), i && l.set(null));
18792
+ const { x: A, y: R } = y(new tn.Point(E.offsetX, E.offsetY)), S = u.getAt(A, R);
18793
+ S && (!o || o(S)) ? (b.classList.add("hover"), i !== S.id && l.set(S.id)) : (b.classList.remove("hover"), i && l.set(null));
18794
18794
  }, _ = (b) => {
18795
18795
  const E = b.originalEvent;
18796
18796
  if (!m) {
18797
- const { x: A, y: S } = y(b.position), O = u.getAt(A, S);
18798
- O ? f("click", { originalEvent: E, annotation: O }) : f("click", { originalEvent: E });
18797
+ const { x: A, y: R } = y(b.position), S = u.getAt(A, R);
18798
+ S ? f("click", { originalEvent: E, annotation: S }) : f("click", { originalEvent: E });
18799
18799
  }
18800
18800
  m = !1;
18801
18801
  }, v = () => m = !0;
@@ -18803,31 +18803,31 @@ function qb(r, e, t) {
18803
18803
  return Mr(() => {
18804
18804
  const { offsetWidth: b, offsetHeight: E } = h.canvas, A = document.createElement("canvas");
18805
18805
  A.width = b, A.height = E, A.className = "a9s-gl-canvas", h.element.querySelector(".openseadragon-canvas").appendChild(A), t(6, d = $b(h, A));
18806
- const S = g(A);
18807
- A.addEventListener("pointermove", S), new ResizeObserver((w) => {
18806
+ const R = g(A);
18807
+ A.addEventListener("pointermove", R), new ResizeObserver((w) => {
18808
18808
  try {
18809
- const { width: R, height: P } = w[0].contentRect;
18810
- A.width = R, A.height = P, d.resize(R, P);
18809
+ const { width: O, height: P } = w[0].contentRect;
18810
+ A.width = O, A.height = P, d.resize(O, P);
18811
18811
  } catch {
18812
18812
  console.warn("WebGL canvas already disposed");
18813
18813
  }
18814
18814
  }).observe(A);
18815
- const O = () => {
18815
+ const S = () => {
18816
18816
  const w = h.viewport.getBounds();
18817
18817
  T = h.viewport.viewportToImageRectangle(w);
18818
- const { x: R, y: P, width: N, height: B } = T, M = u.getIntersecting(R, P, N, B);
18818
+ const { x: O, y: P, width: N, height: B } = T, M = u.getIntersecting(O, P, N, B);
18819
18819
  p.set(M.map((D) => D.id));
18820
18820
  };
18821
- return h.addHandler("canvas-drag", v), h.addHandler("canvas-release", _), h.addHandler("update-viewport", d.redraw), h.addHandler("animation-finish", O), () => {
18822
- A.removeEventListener("pointermove", S), h.removeHandler("canvas-drag", v), h.removeHandler("canvas-release", _), h.removeHandler("update-viewport", d.redraw), h.removeHandler("animation-finish", O), d.destroy(), A.parentNode.removeChild(A);
18821
+ return h.addHandler("canvas-drag", v), h.addHandler("canvas-release", _), h.addHandler("update-viewport", d.redraw), h.addHandler("animation-finish", S), () => {
18822
+ A.removeEventListener("pointermove", R), h.removeHandler("canvas-drag", v), h.removeHandler("canvas-release", _), h.removeHandler("update-viewport", d.redraw), h.removeHandler("animation-finish", S), d.destroy(), A.parentNode.removeChild(A);
18823
18823
  };
18824
18824
  }), u.observe((b) => {
18825
- const { created: E, updated: A, deleted: S } = b.changes;
18826
- if (E.forEach((O) => d.addAnnotation(O)), A.forEach(({ oldValue: O, newValue: w }) => d.updateAnnotation(O, w)), S.forEach((O) => d.removeAnnotation(O)), T) {
18827
- const { x: O, y: w, width: R, height: P } = T, N = u.getIntersecting(O, w, R, P);
18825
+ const { created: E, updated: A, deleted: R } = b.changes;
18826
+ if (E.forEach((S) => d.addAnnotation(S)), A.forEach(({ oldValue: S, newValue: w }) => d.updateAnnotation(S, w)), R.forEach((S) => d.removeAnnotation(S)), T) {
18827
+ const { x: S, y: w, width: O, height: P } = T, N = u.getIntersecting(S, w, O, P);
18828
18828
  p.set(N.map((B) => B.id));
18829
18829
  } else
18830
- p.set(u.all().map((O) => O.id));
18830
+ p.set(u.all().map((S) => S.id));
18831
18831
  d.redraw();
18832
18832
  }), r.$$set = (b) => {
18833
18833
  "filter" in b && t(2, o = b.filter), "state" in b && t(3, s = b.state), "style" in b && t(4, a = b.style), "viewer" in b && t(5, h = b.viewer);
@@ -18992,7 +18992,7 @@ function r1(r) {
18992
18992
  n.c(), t = Me();
18993
18993
  },
18994
18994
  m(o, s) {
18995
- n.m(o, s), V(o, t, s), i = !0;
18995
+ n.m(o, s), z(o, t, s), i = !0;
18996
18996
  },
18997
18997
  p(o, s) {
18998
18998
  s & /*tool*/
@@ -19006,7 +19006,7 @@ function r1(r) {
19006
19006
  ft(n), i = !1;
19007
19007
  },
19008
19008
  d(o) {
19009
- o && z(t), n.d(o);
19009
+ o && V(t), n.d(o);
19010
19010
  }
19011
19011
  };
19012
19012
  }
@@ -19029,7 +19029,7 @@ function i1(r) {
19029
19029
  m(s, a) {
19030
19030
  for (let h = 0; h < n.length; h += 1)
19031
19031
  n[h] && n[h].m(s, a);
19032
- V(s, e, a), t = !0;
19032
+ z(s, e, a), t = !0;
19033
19033
  },
19034
19034
  p(s, a) {
19035
19035
  if (a & /*editableAnnotations, drawingEl, getEditor, toolTransform, scale, onGrab, onChangeSelected, onRelease*/
@@ -19060,7 +19060,7 @@ function i1(r) {
19060
19060
  t = !1;
19061
19061
  },
19062
19062
  d(s) {
19063
- ds(n, s), s && z(e);
19063
+ ds(n, s), s && V(e);
19064
19064
  }
19065
19065
  };
19066
19066
  }
@@ -19216,7 +19216,7 @@ function Uh(r) {
19216
19216
  n.c(), t = Me();
19217
19217
  },
19218
19218
  m(o, s) {
19219
- n.m(o, s), V(o, t, s), i = !0;
19219
+ n.m(o, s), z(o, t, s), i = !0;
19220
19220
  },
19221
19221
  p(o, s) {
19222
19222
  s & /*editableAnnotations*/
@@ -19230,7 +19230,7 @@ function Uh(r) {
19230
19230
  ft(n), i = !1;
19231
19231
  },
19232
19232
  d(o) {
19233
- o && z(t), n.d(o);
19233
+ o && V(t), n.d(o);
19234
19234
  }
19235
19235
  };
19236
19236
  }
@@ -19260,7 +19260,7 @@ function n1(r) {
19260
19260
  );
19261
19261
  },
19262
19262
  m(l, c) {
19263
- V(l, e, c), Ve(e, t), ~i && h[i].m(t, null), r[17](t), s = !0;
19263
+ z(l, e, c), ze(e, t), ~i && h[i].m(t, null), r[17](t), s = !0;
19264
19264
  },
19265
19265
  p(l, c) {
19266
19266
  let p = i;
@@ -19283,7 +19283,7 @@ function n1(r) {
19283
19283
  ft(n), s = !1;
19284
19284
  },
19285
19285
  d(l) {
19286
- l && z(e), ~i && h[i].d(), r[17](null);
19286
+ l && V(e), ~i && h[i].d(), r[17](null);
19287
19287
  }
19288
19288
  };
19289
19289
  }
@@ -19336,30 +19336,30 @@ function s1(r, e, t) {
19336
19336
  let g = null, _ = null;
19337
19337
  const v = (w) => {
19338
19338
  m.unobserve(g);
19339
- const R = w.filter(({ editable: P }) => P).map(({ id: P }) => P);
19340
- R.length > 0 ? (t(5, _ = R.map((P) => m.getAnnotation(P))), g = (P) => {
19339
+ const O = w.filter(({ editable: P }) => P).map(({ id: P }) => P);
19340
+ O.length > 0 ? (t(5, _ = O.map((P) => m.getAnnotation(P))), g = (P) => {
19341
19341
  const { updated: N } = P.changes;
19342
19342
  t(5, _ = N.map((B) => B.newValue));
19343
- }, m.observe(g, { annotations: R })) : t(5, _ = null);
19344
- }, T = (w, R) => {
19345
- const { x: P, y: N } = f.viewport.viewerElementToImageCoordinates(new tn.Point(w, R));
19343
+ }, m.observe(g, { annotations: O })) : t(5, _ = null);
19344
+ }, T = (w, O) => {
19345
+ const { x: P, y: N } = f.viewport.viewerElementToImageCoordinates(new tn.Point(w, O));
19346
19346
  return [P, N];
19347
- }, b = () => f.setMouseNavEnabled(!1), E = () => f.setMouseNavEnabled(!0), A = (w) => (R) => {
19347
+ }, b = () => f.setMouseNavEnabled(!1), E = () => f.setMouseNavEnabled(!0), A = (w) => (O) => {
19348
19348
  var P;
19349
19349
  const { target: N } = w, B = 10 * 60 * 1e3, M = ((P = N.creator) == null ? void 0 : P.id) !== p.id || !N.created || (/* @__PURE__ */ new Date()).getTime() - N.created.getTime() > B;
19350
19350
  m.updateTarget({
19351
19351
  ...N,
19352
- selector: R.detail,
19352
+ selector: O.detail,
19353
19353
  created: M ? N.created : /* @__PURE__ */ new Date(),
19354
19354
  updated: M ? /* @__PURE__ */ new Date() : null,
19355
19355
  updatedBy: M ? p : null
19356
19356
  });
19357
- }, S = (w) => {
19358
- const R = Wl(), P = {
19359
- id: R,
19357
+ }, R = (w) => {
19358
+ const O = Wl(), P = {
19359
+ id: O,
19360
19360
  bodies: [],
19361
19361
  target: {
19362
- annotation: R,
19362
+ annotation: O,
19363
19363
  selector: w.detail,
19364
19364
  creator: p,
19365
19365
  created: /* @__PURE__ */ new Date()
@@ -19367,7 +19367,7 @@ function s1(r, e, t) {
19367
19367
  };
19368
19368
  m.addAnnotation(P), y.setSelected(P.id), f.setMouseNavEnabled(!0);
19369
19369
  };
19370
- function O(w) {
19370
+ function S(w) {
19371
19371
  en[w ? "unshift" : "push"](() => {
19372
19372
  d = w, t(4, d);
19373
19373
  });
@@ -19393,13 +19393,13 @@ function s1(r, e, t) {
19393
19393
  b,
19394
19394
  E,
19395
19395
  A,
19396
- S,
19396
+ R,
19397
19397
  s,
19398
19398
  a,
19399
19399
  c,
19400
19400
  p,
19401
19401
  n,
19402
- O
19402
+ S
19403
19403
  ];
19404
19404
  }
19405
19405
  class a1 extends jt {
@@ -19440,7 +19440,7 @@ function h1(r) {
19440
19440
  r[3]), x(a, "class", "svelte-1rehw2p"), x(e, "class", "a9s-presence-label");
19441
19441
  },
19442
19442
  m(f, d) {
19443
- V(f, e, d), Ve(e, t), Ve(e, a), Ve(a, u), r[6](e);
19443
+ z(f, e, d), ze(e, t), ze(e, a), ze(a, u), r[6](e);
19444
19444
  },
19445
19445
  p(f, [d]) {
19446
19446
  d & /*x*/
@@ -19473,7 +19473,7 @@ function h1(r) {
19473
19473
  i: Yt,
19474
19474
  o: Yt,
19475
19475
  d(f) {
19476
- f && z(e), r[6](null);
19476
+ f && V(e), r[6](null);
19477
19477
  }
19478
19478
  };
19479
19479
  }
@@ -19529,7 +19529,7 @@ function l1(r) {
19529
19529
  r[2].points.map(kh).join(" ")), x(e, "class", "a9s-presence-overlay");
19530
19530
  },
19531
19531
  m(a, h) {
19532
- V(a, e, h), ee(t, e, null), Ve(e, i), s = !0;
19532
+ z(a, e, h), ee(t, e, null), ze(e, i), s = !0;
19533
19533
  },
19534
19534
  p(a, [h]) {
19535
19535
  const u = {};
@@ -19554,7 +19554,7 @@ function l1(r) {
19554
19554
  ft(t.$$.fragment, a), s = !1;
19555
19555
  },
19556
19556
  d(a) {
19557
- a && z(e), re(t);
19557
+ a && V(e), re(t);
19558
19558
  }
19559
19559
  };
19560
19560
  }
@@ -19611,7 +19611,7 @@ function f1(r) {
19611
19611
  r[2].h), x(e, "class", "a9s-presence-overlay");
19612
19612
  },
19613
19613
  m(l, c) {
19614
- V(l, e, c), ee(t, e, null), Ve(e, i), u = !0;
19614
+ z(l, e, c), ee(t, e, null), ze(e, i), u = !0;
19615
19615
  },
19616
19616
  p(l, [c]) {
19617
19617
  const p = {};
@@ -19642,7 +19642,7 @@ function f1(r) {
19642
19642
  ft(t.$$.fragment, l), u = !1;
19643
19643
  },
19644
19644
  d(l) {
19645
- l && z(e), re(t);
19645
+ l && V(e), re(t);
19646
19646
  }
19647
19647
  };
19648
19648
  }
@@ -19726,7 +19726,7 @@ function Hh(r) {
19726
19726
  m(s, a) {
19727
19727
  for (let h = 0; h < n.length; h += 1)
19728
19728
  n[h] && n[h].m(s, a);
19729
- V(s, e, a), t = !0;
19729
+ z(s, e, a), t = !0;
19730
19730
  },
19731
19731
  p(s, a) {
19732
19732
  if (a & /*trackedAnnotations, scale, ShapeType*/
@@ -19757,7 +19757,7 @@ function Hh(r) {
19757
19757
  t = !1;
19758
19758
  },
19759
19759
  d(s) {
19760
- ds(n, s), s && z(e);
19760
+ ds(n, s), s && V(e);
19761
19761
  }
19762
19762
  };
19763
19763
  }
@@ -19868,7 +19868,7 @@ function Yh(r) {
19868
19868
  t && t.c(), i = Me();
19869
19869
  },
19870
19870
  m(h, u) {
19871
- ~e && s[e].m(h, u), V(h, i, u), n = !0;
19871
+ ~e && s[e].m(h, u), z(h, i, u), n = !0;
19872
19872
  },
19873
19873
  p(h, u) {
19874
19874
  let l = e;
@@ -19883,7 +19883,7 @@ function Yh(r) {
19883
19883
  ft(t), n = !1;
19884
19884
  },
19885
19885
  d(h) {
19886
- ~e && s[e].d(h), h && z(i);
19886
+ ~e && s[e].d(h), h && V(i);
19887
19887
  }
19888
19888
  };
19889
19889
  }
@@ -19898,7 +19898,7 @@ function v1(r) {
19898
19898
  r[6]), x(e, "class", "a9s-osd-presencelayer svelte-1krwc4m");
19899
19899
  },
19900
19900
  m(s, a) {
19901
- V(s, e, a), Ve(e, t), o && o.m(t, null), n = !0;
19901
+ z(s, e, a), ze(e, t), o && o.m(t, null), n = !0;
19902
19902
  },
19903
19903
  p(s, a) {
19904
19904
  s[2].length > 0 ? o ? (o.p(s, a), a & /*trackedAnnotations*/
@@ -19915,7 +19915,7 @@ function v1(r) {
19915
19915
  ft(o), n = !1;
19916
19916
  },
19917
19917
  d(s) {
19918
- s && z(e), o && o.d();
19918
+ s && V(e), o && o.d();
19919
19919
  }
19920
19920
  };
19921
19921
  }
@@ -19927,7 +19927,7 @@ function b1(r) {
19927
19927
  n && n.c(), t = Me();
19928
19928
  },
19929
19929
  m(o, s) {
19930
- n && n.m(o, s), V(o, t, s), i = !0;
19930
+ n && n.m(o, s), z(o, t, s), i = !0;
19931
19931
  },
19932
19932
  p(o, [s]) {
19933
19933
  s & /*provider*/
@@ -19944,7 +19944,7 @@ function b1(r) {
19944
19944
  ft(n), i = !1;
19945
19945
  },
19946
19946
  d(o) {
19947
- n && n.d(o), o && z(t);
19947
+ n && n.d(o), o && V(t);
19948
19948
  }
19949
19949
  };
19950
19950
  }
@@ -19985,7 +19985,7 @@ class T1 extends jt {
19985
19985
  super(), Xt(this, e, x1, b1, Gt, { store: 3, viewer: 0, provider: 1 });
19986
19986
  }
19987
19987
  }
19988
- const zh = (r, e) => {
19988
+ const Vh = (r, e) => {
19989
19989
  e === "auto" ? r.addHandler("open", (t) => {
19990
19990
  const i = r.world.getItemCount();
19991
19991
  r.world.getItemAt(i - 1).addOnceHandler("fully-loaded-change", (n) => {
@@ -20005,8 +20005,8 @@ const zh = (r, e) => {
20005
20005
  u = u / a.height, l = l / a.width, c = c / a.height, p = p / a.width;
20006
20006
  const { minX: f, minY: d, maxX: m, maxY: y } = s.target.selector.geometry.bounds, g = m - f, _ = y - d, v = f - p * g, T = d - u * _, b = g + (l + p) * g, E = _ + (u + c) * _, A = r.viewport.imageToViewportRectangle(v, T, b, E);
20007
20007
  r.viewport[t](A, n.immediately);
20008
- }, E1 = (r, e) => yl(r, e, "fitBounds"), A1 = (r, e) => yl(r, e, "fitBoundsWithConstraints"), D1 = (r, e = {}) => {
20009
- const t = Mc(e), i = Sc(t), { hover: n, selection: o, store: s } = i, a = _l(s), h = gl(
20008
+ }, E1 = (r, e) => yl(r, e, "fitBounds"), A1 = (r, e) => yl(r, e, "fitBoundsWithConstraints"), N1 = (r, e = {}) => {
20009
+ const t = Mc(e), i = Rc(t), { hover: n, selection: o, store: s } = i, a = _l(s), h = gl(
20010
20010
  i,
20011
20011
  a,
20012
20012
  t.adapter,
@@ -20045,7 +20045,7 @@ const zh = (r, e) => {
20045
20045
  const M = s.getAnnotation(n.current);
20046
20046
  h.emit("clickAnnotation", M, B);
20047
20047
  }
20048
- }), zh(r, t.theme);
20048
+ }), Vh(r, t.theme);
20049
20049
  const y = bl(i, a, t.adapter), g = () => {
20050
20050
  f.$destroy(), d.$destroy(), m.$destroy(), p.destroy(), a.destroy();
20051
20051
  }, _ = E1(r, s), v = A1(r, s), T = () => u, b = (B, M, D) => _c(B, M, D), E = (B, M) => rc(B, M), A = (B) => {
@@ -20054,9 +20054,9 @@ const zh = (r, e) => {
20054
20054
  throw `Tool not found: ${B}`;
20055
20055
  const { tool: D, opts: Y } = M;
20056
20056
  c = (Y == null ? void 0 : Y.drawingMode) || c, m.$set({ tool: D, opts: Y });
20057
- }, S = (B) => {
20057
+ }, R = (B) => {
20058
20058
  l = B, m.$set({ drawingEnabled: l });
20059
- }, O = (B) => f.$set({ filter: B }), w = (B) => f.$set({ style: B }), R = (B) => d.$set({ provider: B }), P = (B) => zh(r, B), N = (B) => {
20059
+ }, S = (B) => f.$set({ filter: B }), w = (B) => f.$set({ style: B }), O = (B) => d.$set({ provider: B }), P = (B) => Vh(r, B), N = (B) => {
20060
20060
  u = B, m.$set({ user: B });
20061
20061
  };
20062
20062
  return {
@@ -20070,10 +20070,10 @@ const zh = (r, e) => {
20070
20070
  off: h.off,
20071
20071
  registerDrawingTool: b,
20072
20072
  registerShapeEditor: E,
20073
- setDrawingEnabled: S,
20073
+ setDrawingEnabled: R,
20074
20074
  setDrawingTool: A,
20075
- setFilter: O,
20076
- setPresenceProvider: R,
20075
+ setFilter: S,
20076
+ setPresenceProvider: O,
20077
20077
  setStyle: w,
20078
20078
  setTheme: P,
20079
20079
  setUser: N,
@@ -20090,7 +20090,7 @@ const Ls = (r, e) => e, w1 = {
20090
20090
  }
20091
20091
  };
20092
20092
  Ls(Ir.ELLIPSE, w1);
20093
- const O1 = {
20093
+ const S1 = {
20094
20094
  area: (r) => {
20095
20095
  const { points: e } = r.geometry;
20096
20096
  let t = 0, i = e.length - 1;
@@ -20108,21 +20108,27 @@ const O1 = {
20108
20108
  return n;
20109
20109
  }
20110
20110
  };
20111
- Ls(Ir.POLYGON, O1);
20112
- const S1 = {
20111
+ Ls(Ir.POLYGON, S1);
20112
+ const R1 = {
20113
20113
  area: (r) => r.geometry.w * r.geometry.h,
20114
20114
  intersects: (r, e, t) => e >= r.geometry.x && e <= r.geometry.x + r.geometry.w && t >= r.geometry.y && t <= r.geometry.y + r.geometry.h
20115
20115
  };
20116
- Ls(Ir.RECTANGLE, S1);
20117
- const R1 = [];
20116
+ Ls(Ir.RECTANGLE, R1);
20117
+ const O1 = [];
20118
+ for (let r = 0; r < 256; ++r)
20119
+ O1.push((r + 256).toString(16).slice(1));
20120
+ typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
20121
+ const I1 = [];
20118
20122
  for (let r = 0; r < 256; ++r)
20119
- R1.push((r + 256).toString(16).slice(1));
20123
+ I1.push((r + 256).toString(16).slice(1));
20120
20124
  typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
20121
- let I1 = (r = 21) => crypto.getRandomValues(new Uint8Array(r)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
20122
- I1();
20125
+ let M1 = (r = 21) => crypto.getRandomValues(new Uint8Array(r)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
20126
+ M1();
20123
20127
  Ir.RECTANGLE, Ir.POLYGON;
20124
20128
  navigator.userAgent.indexOf("Mac OS X");
20129
+ let P1 = (r = 21) => crypto.getRandomValues(new Uint8Array(r)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
20130
+ P1();
20125
20131
  export {
20126
- D1 as createOSDAnnotator
20132
+ N1 as createOSDAnnotator
20127
20133
  };
20128
20134
  //# sourceMappingURL=annotorious-svelte.es9.js.map