@annotorious/openseadragon 3.0.2 → 3.0.3

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.
@@ -72,7 +72,7 @@ const GE = (r, t, e, i) => ({
72
72
  targetUpdated: sp(r, t) ? { oldTarget: r.target, newTarget: t.target } : void 0
73
73
  };
74
74
  };
75
- var gr = /* @__PURE__ */ ((r) => (r.LOCAL = "LOCAL", r.REMOTE = "REMOTE", r))(gr || {});
75
+ var gr = /* @__PURE__ */ ((r) => (r.LOCAL = "LOCAL", r.REMOTE = "REMOTE", r.SILENT = "SILENT", r))(gr || {});
76
76
  const op = (r, t) => {
77
77
  const e = new Set((r.created || []).map((u) => u.id)), i = new Set((r.updated || []).map(({ newValue: u }) => u.id)), s = new Set((t.created || []).map((u) => u.id)), n = new Set((t.deleted || []).map((u) => u.id)), o = new Set((t.updated || []).map(({ oldValue: u }) => u.id)), a = new Set((t.updated || []).filter(({ oldValue: u }) => e.has(u.id) || i.has(u.id)).map(({ oldValue: u }) => u.id)), l = [
78
78
  ...(r.created || []).filter((u) => !n.has(u.id)).map((u) => o.has(u.id) ? t.updated.find(({ oldValue: d }) => d.id === u.id).newValue : u),
@@ -160,8 +160,8 @@ const lp = 250, hp = (r) => {
160
160
  l.has(y) && setTimeout(() => {
161
161
  l.get(y).forEach((v) => {
162
162
  if (e) {
163
- const w = Array.isArray(x) ? x.map((T) => e.serialize(T)) : e.serialize(x), I = g ? g instanceof PointerEvent ? g : e.serialize(g) : void 0;
164
- v(w, I);
163
+ const w = Array.isArray(x) ? x.map((T) => e.serialize(T)) : e.serialize(x), C = g ? g instanceof PointerEvent ? g : e.serialize(g) : void 0;
164
+ v(w, C);
165
165
  } else
166
166
  v(x, g);
167
167
  });
@@ -206,13 +206,13 @@ const lp = 250, hp = (r) => {
206
206
  ...v.bodiesDeleted || [],
207
207
  ...v.bodiesUpdated || []
208
208
  ].length > 0).forEach(({ oldValue: v, newValue: w }) => {
209
- const I = h.find((T) => T.id === v.id) || v;
210
- h = h.map((T) => T.id === v.id ? w : T), p("updateAnnotation", w, I);
209
+ const C = h.find((T) => T.id === v.id) || v;
210
+ h = h.map((T) => T.id === v.id ? w : T), p("updateAnnotation", w, C);
211
211
  });
212
212
  }, { origin: gr.LOCAL }), s.observe((y) => {
213
213
  if (h) {
214
214
  const x = new Set(h.map((v) => v.id)), g = (y.changes.updated || []).filter(({ newValue: v }) => x.has(v.id)).map(({ newValue: v }) => v);
215
- g.length > 0 && (h = h.map((v) => g.find((I) => I.id === v.id) || v));
215
+ g.length > 0 && (h = h.map((v) => g.find((C) => C.id === v.id) || v));
216
216
  }
217
217
  }, { origin: gr.REMOTE });
218
218
  const _ = (y) => (x) => {
@@ -337,7 +337,7 @@ const _p = () => ({ isGuest: !0, id: gp("1234567890abcdefghijklmnopqrstuvwxyzABC
337
337
  };
338
338
  yp();
339
339
  var xp = Object.defineProperty, bp = (r, t, e) => t in r ? xp(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, Gl = (r, t, e) => bp(r, typeof t != "symbol" ? t + "" : t, e);
340
- function It() {
340
+ function Ct() {
341
341
  }
342
342
  function aa(r, t) {
343
343
  for (const e in t) r[e] = t[e];
@@ -368,7 +368,7 @@ function bu(r, ...t) {
368
368
  if (r == null) {
369
369
  for (const i of t)
370
370
  i(void 0);
371
- return It;
371
+ return Ct;
372
372
  }
373
373
  const e = r.subscribe(...t);
374
374
  return e.unsubscribe ? () => e.unsubscribe() : e;
@@ -454,13 +454,13 @@ function Dt(r, t, e, i) {
454
454
  function E(r, t, e) {
455
455
  e == null ? r.removeAttribute(t) : r.getAttribute(t) !== e && r.setAttribute(t, e);
456
456
  }
457
- function Cp(r) {
457
+ function Ip(r) {
458
458
  return Array.from(r.childNodes);
459
459
  }
460
460
  function ur(r, t, e) {
461
461
  r.classList.toggle(t, !!e);
462
462
  }
463
- function Ip(r, t, { bubbles: e = !1, cancelable: i = !1 } = {}) {
463
+ function Cp(r, t, { bubbles: e = !1, cancelable: i = !1 } = {}) {
464
464
  return new CustomEvent(r, { detail: t, bubbles: e, cancelable: i });
465
465
  }
466
466
  let us;
@@ -479,7 +479,7 @@ function Fi() {
479
479
  return (t, e, { cancelable: i = !1 } = {}) => {
480
480
  const s = r.$$.callbacks[t];
481
481
  if (s) {
482
- const n = Ip(
482
+ const n = Cp(
483
483
  /** @type {string} */
484
484
  t,
485
485
  e,
@@ -567,7 +567,7 @@ function ft(r, t, e, i) {
567
567
  }), r.o(t);
568
568
  } else i && i();
569
569
  }
570
- function Ii(r) {
570
+ function Ci(r) {
571
571
  return (r == null ? void 0 : r.length) !== void 0 ? r : Array.from(r);
572
572
  }
573
573
  function he(r) {
@@ -595,7 +595,7 @@ function de(r, t, e, i, s, n, o = null, a = [-1]) {
595
595
  ctx: [],
596
596
  // state
597
597
  props: n,
598
- update: It,
598
+ update: Ct,
599
599
  not_equal: s,
600
600
  bound: $l(),
601
601
  // lifecycle
@@ -618,7 +618,7 @@ function de(r, t, e, i, s, n, o = null, a = [-1]) {
618
618
  return h.ctx && s(h.ctx[u], h.ctx[u] = p) && (!h.skip_bound && h.bound[u] && h.bound[u](p), c && Dp(r, u)), d;
619
619
  }) : [], h.update(), c = !0, ze(h.before_update), h.fragment = i ? i(h.ctx) : !1, t.target) {
620
620
  if (t.hydrate) {
621
- const u = Cp(t.target);
621
+ const u = Ip(t.target);
622
622
  h.fragment && h.fragment.l(u), u.forEach(et);
623
623
  } else
624
624
  h.fragment && h.fragment.c();
@@ -632,7 +632,7 @@ class fe {
632
632
  }
633
633
  /** @returns {void} */
634
634
  $destroy() {
635
- se(this, 1), this.$destroy = It;
635
+ se(this, 1), this.$destroy = Ct;
636
636
  }
637
637
  /**
638
638
  * @template {Extract<keyof Events, string>} K
@@ -642,7 +642,7 @@ class fe {
642
642
  */
643
643
  $on(t, e) {
644
644
  if (!Nt(e))
645
- return It;
645
+ return Ct;
646
646
  const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
647
647
  return i.push(e), () => {
648
648
  const s = i.indexOf(e);
@@ -792,17 +792,17 @@ for (var ho = 0; ho < 256; ++ho)
792
792
  function jp(r, t = 0) {
793
793
  return ($t[r[t + 0]] + $t[r[t + 1]] + $t[r[t + 2]] + $t[r[t + 3]] + "-" + $t[r[t + 4]] + $t[r[t + 5]] + "-" + $t[r[t + 6]] + $t[r[t + 7]] + "-" + $t[r[t + 8]] + $t[r[t + 9]] + "-" + $t[r[t + 10]] + $t[r[t + 11]] + $t[r[t + 12]] + $t[r[t + 13]] + $t[r[t + 14]] + $t[r[t + 15]]).toLowerCase();
794
794
  }
795
- var Cs, Yp = new Uint8Array(16);
795
+ var Is, Yp = new Uint8Array(16);
796
796
  function qp() {
797
- if (!Cs && (Cs = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Cs))
797
+ if (!Is && (Is = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Is))
798
798
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
799
- return Cs(Yp);
799
+ return Is(Yp);
800
800
  }
801
801
  var Kp = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
802
802
  const zl = {
803
803
  randomUUID: Kp
804
804
  };
805
- function Cu(r, t, e) {
805
+ function Iu(r, t, e) {
806
806
  if (zl.randomUUID && !t && !r)
807
807
  return zl.randomUUID();
808
808
  r = r || {};
@@ -879,13 +879,13 @@ const Jp = (r) => {
879
879
  set: e
880
880
  };
881
881
  };
882
- var Iu = /* @__PURE__ */ ((r) => (r.EDIT = "EDIT", r.SELECT = "SELECT", r.NONE = "NONE", r))(Iu || {});
883
- const Is = { selected: [] }, Qp = (r, t) => {
884
- const { subscribe: e, set: i } = ml(Is);
885
- let s = t, n = Is;
882
+ var Cu = /* @__PURE__ */ ((r) => (r.EDIT = "EDIT", r.SELECT = "SELECT", r.NONE = "NONE", r))(Cu || {});
883
+ const Cs = { selected: [] }, Qp = (r, t) => {
884
+ const { subscribe: e, set: i } = ml(Cs);
885
+ let s = t, n = Cs;
886
886
  e((f) => n = f);
887
887
  const o = () => {
888
- xr(n, Is) || i(Is);
888
+ xr(n, Cs) || i(Cs);
889
889
  }, a = () => {
890
890
  var f;
891
891
  return ((f = n.selected) == null ? void 0 : f.length) === 0;
@@ -988,11 +988,11 @@ const nm = (r, t) => {
988
988
  targetUpdated: lm(r, t) ? { oldTarget: r.target, newTarget: t.target } : void 0
989
989
  };
990
990
  };
991
- var At = /* @__PURE__ */ ((r) => (r.LOCAL = "LOCAL", r.REMOTE = "REMOTE", r))(At || {});
991
+ var At = /* @__PURE__ */ ((r) => (r.LOCAL = "LOCAL", r.REMOTE = "REMOTE", r.SILENT = "SILENT", r))(At || {});
992
992
  const hm = (r, t) => {
993
993
  var e, i;
994
994
  const { changes: s, origin: n } = t;
995
- if (!(!r.options.origin || r.options.origin === n))
995
+ if (!(r.options.origin ? r.options.origin === n : n !== "SILENT"))
996
996
  return !1;
997
997
  if (r.options.ignore) {
998
998
  const { ignore: o } = r.options, a = (l) => l && l.length > 0;
@@ -1045,7 +1045,9 @@ const hm = (r, t) => {
1045
1045
  }
1046
1046
  };
1047
1047
  }, um = (r) => r.id !== void 0, dm = () => {
1048
- const r = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), e = [], i = (A, P = {}) => e.push({ onChange: A, options: P }), s = (A) => {
1048
+ const r = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), e = [], i = (A, P = {}) => {
1049
+ e.push({ onChange: A, options: P });
1050
+ }, s = (A) => {
1049
1051
  const P = e.findIndex((R) => R.onChange == A);
1050
1052
  P > -1 && e.splice(P, 1);
1051
1053
  }, n = (A, P) => {
@@ -1170,7 +1172,7 @@ const hm = (r, t) => {
1170
1172
  console.error(`Store integrity error: body ${A} in index, but not in annotation`);
1171
1173
  } else
1172
1174
  console.warn(`Attempt to retrieve missing body: ${A}`);
1173
- }, I = (A, P) => {
1175
+ }, C = (A, P) => {
1174
1176
  if (A.annotation !== P.annotation)
1175
1177
  throw "Annotation integrity violation: annotation ID must be the same when updating bodies";
1176
1178
  const R = r.get(A.annotation);
@@ -1187,10 +1189,10 @@ const hm = (r, t) => {
1187
1189
  } else
1188
1190
  console.warn(`Attempt to add body to missing annotation ${A.annotation}`);
1189
1191
  }, T = (A, P, R = At.LOCAL) => {
1190
- const b = I(A, P);
1192
+ const b = C(A, P);
1191
1193
  b && n(R, { updated: [b] });
1192
- }, C = (A, P = At.LOCAL) => {
1193
- const R = A.map((b) => I({ id: b.id, annotation: b.annotation }, b)).filter(Boolean);
1194
+ }, I = (A, P = At.LOCAL) => {
1195
+ const R = A.map((b) => C({ id: b.id, annotation: b.annotation }, b)).filter(Boolean);
1194
1196
  n(P, { updated: R });
1195
1197
  }, D = (A) => {
1196
1198
  const P = r.get(A.annotation);
@@ -1221,7 +1223,7 @@ const hm = (r, t) => {
1221
1223
  bulkDeleteAnnotation: _,
1222
1224
  bulkDeleteBodies: g,
1223
1225
  bulkUpdateAnnotation: h,
1224
- bulkUpdateBodies: C,
1226
+ bulkUpdateBodies: I,
1225
1227
  bulkUpdateTargets: (A, P = At.LOCAL) => {
1226
1228
  const R = A.map((b) => D(b)).filter(Boolean);
1227
1229
  R.length > 0 && n(P, { updated: R });
@@ -1320,8 +1322,8 @@ const mm = 250, gm = (r) => {
1320
1322
  l.has(y) && setTimeout(() => {
1321
1323
  l.get(y).forEach((v) => {
1322
1324
  if (e) {
1323
- const w = Array.isArray(x) ? x.map((T) => e.serialize(T)) : e.serialize(x), I = g ? g instanceof PointerEvent ? g : e.serialize(g) : void 0;
1324
- v(w, I);
1325
+ const w = Array.isArray(x) ? x.map((T) => e.serialize(T)) : e.serialize(x), C = g ? g instanceof PointerEvent ? g : e.serialize(g) : void 0;
1326
+ v(w, C);
1325
1327
  } else
1326
1328
  v(x, g);
1327
1329
  });
@@ -1366,8 +1368,8 @@ const mm = 250, gm = (r) => {
1366
1368
  ...v.bodiesDeleted || [],
1367
1369
  ...v.bodiesUpdated || []
1368
1370
  ].length > 0).forEach(({ oldValue: v, newValue: w }) => {
1369
- const I = h.find((T) => T.id === v.id) || v;
1370
- h = h.map((T) => T.id === v.id ? w : T), p("updateAnnotation", w, I);
1371
+ const C = h.find((T) => T.id === v.id) || v;
1372
+ h = h.map((T) => T.id === v.id ? w : T), p("updateAnnotation", w, C);
1371
1373
  });
1372
1374
  }, { origin: At.LOCAL }), s.observe((y) => {
1373
1375
  if (h) {
@@ -1469,7 +1471,7 @@ let wm = (r) => crypto.getRandomValues(new Uint8Array(r)), Em = (r, t, e) => {
1469
1471
  t += bm[e[r] & 63];
1470
1472
  return t;
1471
1473
  };
1472
- const Sm = () => ({ isGuest: !0, id: Tm("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_", 20)() }), Cm = (r) => {
1474
+ const Sm = () => ({ isGuest: !0, id: Tm("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_", 20)() }), Im = (r) => {
1473
1475
  const t = JSON.stringify(r);
1474
1476
  let e = 0;
1475
1477
  for (let i = 0, s = t.length; i < s; i++) {
@@ -1477,10 +1479,10 @@ const Sm = () => ({ isGuest: !0, id: Tm("1234567890abcdefghijklmnopqrstuvwxyzABC
1477
1479
  e = (e << 5) - e + n, e |= 0;
1478
1480
  }
1479
1481
  return `${e}`;
1480
- }, Pu = (r) => r ? typeof r == "object" ? { ...r } : r : void 0, Im = (r, t) => (Array.isArray(r) ? r : [r]).map((e) => {
1482
+ }, Pu = (r) => r ? typeof r == "object" ? { ...r } : r : void 0, Cm = (r, t) => (Array.isArray(r) ? r : [r]).map((e) => {
1481
1483
  const { id: i, type: s, purpose: n, value: o, created: a, modified: l, creator: h, ...c } = e;
1482
1484
  return {
1483
- id: i || `temp-${Cm(e)}`,
1485
+ id: i || `temp-${Im(e)}`,
1484
1486
  annotation: t,
1485
1487
  type: s,
1486
1488
  purpose: n,
@@ -1501,13 +1503,13 @@ const Sm = () => ({ isGuest: !0, id: Tm("1234567890abcdefghijklmnopqrstuvwxyzABC
1501
1503
  });
1502
1504
  Am();
1503
1505
  const Pm = (r, t = { strict: !0, invertY: !1 }) => ({ parse: (e) => Mm(e, t), serialize: (e) => Bm(e, r, t) }), Mm = (r, t = { strict: !0, invertY: !1 }) => {
1504
- const e = r.id || Cu(), {
1506
+ const e = r.id || Iu(), {
1505
1507
  creator: i,
1506
1508
  created: s,
1507
1509
  modified: n,
1508
1510
  body: o,
1509
1511
  ...a
1510
- } = r, l = Im(o || [], e), h = Array.isArray(r.target) ? r.target[0] : r.target, c = Array.isArray(h.selector) ? h.selector[0] : h.selector, u = (c == null ? void 0 : c.type) === "FragmentSelector" ? kp(c, t.invertY) : (c == null ? void 0 : c.type) === "SvgSelector" ? zp(c) : void 0;
1512
+ } = r, l = Cm(o || [], e), h = Array.isArray(r.target) ? r.target[0] : r.target, c = Array.isArray(h.selector) ? h.selector[0] : h.selector, u = (c == null ? void 0 : c.type) === "FragmentSelector" ? kp(c, t.invertY) : (c == null ? void 0 : c.type) === "SvgSelector" ? zp(c) : void 0;
1511
1513
  return u || !t.strict ? {
1512
1514
  parsed: {
1513
1515
  ...a,
@@ -1618,7 +1620,7 @@ function Kl(r) {
1618
1620
  };
1619
1621
  }
1620
1622
  function Dm(r) {
1621
- let t, e, i, s, n, o, a, l, h, c, u, d = Ii(
1623
+ let t, e, i, s, n, o, a, l, h, c, u, d = Ci(
1622
1624
  /*geom*/
1623
1625
  r[4].points
1624
1626
  ), f = [];
@@ -1676,7 +1678,7 @@ function Dm(r) {
1676
1678
  16 && o !== (o = /*geom*/
1677
1679
  r[4].points.map(Jl).join(" "))) && E(n, "points", o), _ & /*geom, viewportScale, grab*/
1678
1680
  536) {
1679
- d = Ii(
1681
+ d = Ci(
1680
1682
  /*geom*/
1681
1683
  r[4].points
1682
1684
  );
@@ -1822,7 +1824,7 @@ const po = (r, t) => {
1822
1824
  const e = Math.abs(t[0] - r[0]), i = Math.abs(t[1] - r[1]);
1823
1825
  return Math.sqrt(Math.pow(e, 2) + Math.pow(i, 2));
1824
1826
  }, Zr = [];
1825
- function Nm(r, t = It) {
1827
+ function Nm(r, t = Ct) {
1826
1828
  let e;
1827
1829
  const i = /* @__PURE__ */ new Set();
1828
1830
  function s(a) {
@@ -1840,9 +1842,9 @@ function Nm(r, t = It) {
1840
1842
  function n(a) {
1841
1843
  s(a(r));
1842
1844
  }
1843
- function o(a, l = It) {
1845
+ function o(a, l = Ct) {
1844
1846
  const h = [a, l];
1845
- return i.add(h), i.size === 1 && (e = t(s, n) || It), a(r), () => {
1847
+ return i.add(h), i.size === 1 && (e = t(s, n) || Ct), a(r), () => {
1846
1848
  i.delete(h), i.size === 0 && e && (e(), e = null);
1847
1849
  };
1848
1850
  }
@@ -2073,8 +2075,8 @@ function Hm(r) {
2073
2075
  p(s, [n]) {
2074
2076
  i.p(s, n);
2075
2077
  },
2076
- i: It,
2077
- o: It,
2078
+ i: Ct,
2079
+ o: Ct,
2078
2080
  d(s) {
2079
2081
  s && et(t), i.d(s);
2080
2082
  }
@@ -2120,7 +2122,7 @@ class ji extends fe {
2120
2122
  }
2121
2123
  }
2122
2124
  function Vm(r) {
2123
- let t, e, i, s, n, o, a, l, h, c, u, d, f, p, m, _, y, x, g, v, w, I, T, C, D, A, P, R, b, M, S, U, L, H, Q, F, k, K, st, G, X, tt, lt;
2125
+ let t, e, i, s, n, o, a, l, h, c, u, d, f, p, m, _, y, x, g, v, w, C, T, I, D, A, P, R, b, M, S, U, L, H, Q, F, k, K, st, G, X, tt, lt;
2124
2126
  return H = new ji({
2125
2127
  props: {
2126
2128
  class: "a9s-corner-handle-topleft",
@@ -2211,7 +2213,7 @@ function Vm(r) {
2211
2213
  ) && r[9]("BOTTOM_LEFT").apply(this, arguments);
2212
2214
  }), {
2213
2215
  c() {
2214
- t = yt("rect"), a = _e(), l = yt("rect"), f = _e(), p = yt("rect"), x = _e(), g = yt("rect"), T = _e(), C = yt("rect"), R = _e(), b = yt("rect"), L = _e(), he(H.$$.fragment), Q = _e(), he(F.$$.fragment), k = _e(), he(K.$$.fragment), st = _e(), he(G.$$.fragment), E(t, "class", "a9s-outer"), E(t, "style", e = /*computedStyle*/
2216
+ t = yt("rect"), a = _e(), l = yt("rect"), f = _e(), p = yt("rect"), x = _e(), g = yt("rect"), T = _e(), I = yt("rect"), R = _e(), b = yt("rect"), L = _e(), he(H.$$.fragment), Q = _e(), he(F.$$.fragment), k = _e(), he(K.$$.fragment), st = _e(), he(G.$$.fragment), E(t, "class", "a9s-outer"), E(t, "style", e = /*computedStyle*/
2215
2217
  r[1] ? "display:none;" : void 0), E(t, "x", i = /*geom*/
2216
2218
  r[4].x), E(t, "y", s = /*geom*/
2217
2219
  r[4].y), E(t, "width", n = /*geom*/
@@ -2231,18 +2233,18 @@ function Vm(r) {
2231
2233
  r[4].w), E(g, "class", "a9s-edge-handle a9s-edge-handle-right"), E(g, "x", v = /*geom*/
2232
2234
  r[4].x + /*geom*/
2233
2235
  r[4].w), E(g, "y", w = /*geom*/
2234
- r[4].y), E(g, "height", I = /*geom*/
2235
- r[4].h), E(g, "width", 1), E(C, "class", "a9s-edge-handle a9s-edge-handle-bottom"), E(C, "x", D = /*geom*/
2236
- r[4].x), E(C, "y", A = /*geom*/
2236
+ r[4].y), E(g, "height", C = /*geom*/
2237
+ r[4].h), E(g, "width", 1), E(I, "class", "a9s-edge-handle a9s-edge-handle-bottom"), E(I, "x", D = /*geom*/
2238
+ r[4].x), E(I, "y", A = /*geom*/
2237
2239
  r[4].y + /*geom*/
2238
- r[4].h), E(C, "height", 1), E(C, "width", P = /*geom*/
2240
+ r[4].h), E(I, "height", 1), E(I, "width", P = /*geom*/
2239
2241
  r[4].w), E(b, "class", "a9s-edge-handle a9s-edge-handle-left"), E(b, "x", M = /*geom*/
2240
2242
  r[4].x), E(b, "y", S = /*geom*/
2241
2243
  r[4].y), E(b, "height", U = /*geom*/
2242
2244
  r[4].h), E(b, "width", 1);
2243
2245
  },
2244
2246
  m(N, O) {
2245
- rt(N, t, O), rt(N, a, O), rt(N, l, O), rt(N, f, O), rt(N, p, O), rt(N, x, O), rt(N, g, O), rt(N, T, O), rt(N, C, O), rt(N, R, O), rt(N, b, O), rt(N, L, O), ie(H, N, O), rt(N, Q, O), ie(F, N, O), rt(N, k, O), ie(K, N, O), rt(N, st, O), ie(G, N, O), X = !0, tt || (lt = [
2247
+ rt(N, t, O), rt(N, a, O), rt(N, l, O), rt(N, f, O), rt(N, p, O), rt(N, x, O), rt(N, g, O), rt(N, T, O), rt(N, I, O), rt(N, R, O), rt(N, b, O), rt(N, L, O), ie(H, N, O), rt(N, Q, O), ie(F, N, O), rt(N, k, O), ie(K, N, O), rt(N, st, O), ie(G, N, O), X = !0, tt || (lt = [
2246
2248
  Dt(t, "pointerdown", function() {
2247
2249
  Nt(
2248
2250
  /*grab*/
@@ -2267,7 +2269,7 @@ function Vm(r) {
2267
2269
  r[9]("RIGHT")
2268
2270
  ) && r[9]("RIGHT").apply(this, arguments);
2269
2271
  }),
2270
- Dt(C, "pointerdown", function() {
2272
+ Dt(I, "pointerdown", function() {
2271
2273
  Nt(
2272
2274
  /*grab*/
2273
2275
  r[9]("BOTTOM")
@@ -2318,15 +2320,15 @@ function Vm(r) {
2318
2320
  r[4].w)) && E(g, "x", v), (!X || O & /*geom*/
2319
2321
  16 && w !== (w = /*geom*/
2320
2322
  r[4].y)) && E(g, "y", w), (!X || O & /*geom*/
2321
- 16 && I !== (I = /*geom*/
2322
- r[4].h)) && E(g, "height", I), (!X || O & /*geom*/
2323
+ 16 && C !== (C = /*geom*/
2324
+ r[4].h)) && E(g, "height", C), (!X || O & /*geom*/
2323
2325
  16 && D !== (D = /*geom*/
2324
- r[4].x)) && E(C, "x", D), (!X || O & /*geom*/
2326
+ r[4].x)) && E(I, "x", D), (!X || O & /*geom*/
2325
2327
  16 && A !== (A = /*geom*/
2326
2328
  r[4].y + /*geom*/
2327
- r[4].h)) && E(C, "y", A), (!X || O & /*geom*/
2329
+ r[4].h)) && E(I, "y", A), (!X || O & /*geom*/
2328
2330
  16 && P !== (P = /*geom*/
2329
- r[4].w)) && E(C, "width", P), (!X || O & /*geom*/
2331
+ r[4].w)) && E(I, "width", P), (!X || O & /*geom*/
2330
2332
  16 && M !== (M = /*geom*/
2331
2333
  r[4].x)) && E(b, "x", M), (!X || O & /*geom*/
2332
2334
  16 && S !== (S = /*geom*/
@@ -2377,7 +2379,7 @@ function Vm(r) {
2377
2379
  ft(H.$$.fragment, N), ft(F.$$.fragment, N), ft(K.$$.fragment, N), ft(G.$$.fragment, N), X = !1;
2378
2380
  },
2379
2381
  d(N) {
2380
- N && (et(t), et(a), et(l), et(f), et(p), et(x), et(g), et(T), et(C), et(R), et(b), et(L), et(Q), et(k), et(st)), se(H, N), se(F, N), se(K, N), se(G, N), tt = !1, ze(lt);
2382
+ N && (et(t), et(a), et(l), et(f), et(p), et(x), et(g), et(T), et(I), et(R), et(b), et(L), et(Q), et(k), et(st)), se(H, N), se(F, N), se(K, N), se(G, N), tt = !1, ze(lt);
2381
2383
  }
2382
2384
  };
2383
2385
  }
@@ -2483,18 +2485,18 @@ function Wm(r, t, e) {
2483
2485
  }
2484
2486
  }
2485
2487
  }
2486
- const I = Math.min(_, x), T = Math.min(y, g), C = Math.abs(x - _), D = Math.abs(g - y);
2488
+ const C = Math.min(_, x), T = Math.min(y, g), I = Math.abs(x - _), D = Math.abs(g - y);
2487
2489
  return {
2488
2490
  ...d,
2489
2491
  geometry: {
2490
- x: I,
2492
+ x: C,
2491
2493
  y: T,
2492
- w: C,
2494
+ w: I,
2493
2495
  h: D,
2494
2496
  bounds: {
2495
- minX: I,
2497
+ minX: C,
2496
2498
  minY: T,
2497
- maxX: I + C,
2499
+ maxX: C + I,
2498
2500
  maxY: T + D
2499
2501
  }
2500
2502
  }
@@ -2833,8 +2835,8 @@ function eg(r) {
2833
2835
  p(i, [s]) {
2834
2836
  i[0] ? e ? e.p(i, s) : (e = th(i), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
2835
2837
  },
2836
- i: It,
2837
- o: It,
2838
+ i: Ct,
2839
+ o: Ct,
2838
2840
  d(i) {
2839
2841
  i && et(t), e && e.d();
2840
2842
  }
@@ -2997,8 +2999,8 @@ function sg(r) {
2997
2999
  p(i, [s]) {
2998
3000
  i[1] ? e ? e.p(mo(i), s) : (e = eh(mo(i)), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
2999
3001
  },
3000
- i: It,
3001
- o: It,
3002
+ i: Ct,
3003
+ o: Ct,
3002
3004
  d(i) {
3003
3005
  i && et(t), e && e.d();
3004
3006
  }
@@ -3010,10 +3012,10 @@ function ag(r, t, e) {
3010
3012
  const s = Fi();
3011
3013
  let { addEventListener: n } = t, { drawingMode: o } = t, { transform: a } = t, { viewportScale: l = 1 } = t, h, c = [], u, d, f = !1;
3012
3014
  const p = (g) => {
3013
- const v = g, { timeStamp: w, offsetX: I, offsetY: T } = v;
3014
- if (h = { timeStamp: w, offsetX: I, offsetY: T }, o === "drag" && c.length === 0) {
3015
- const C = a.elementToImage(v.offsetX, v.offsetY);
3016
- c.push(C), e(1, u = C);
3015
+ const v = g, { timeStamp: w, offsetX: C, offsetY: T } = v;
3016
+ if (h = { timeStamp: w, offsetX: C, offsetY: T }, o === "drag" && c.length === 0) {
3017
+ const I = a.elementToImage(v.offsetX, v.offsetY);
3018
+ c.push(I), e(1, u = I);
3017
3019
  }
3018
3020
  }, m = (g) => {
3019
3021
  const v = g;
@@ -3032,8 +3034,8 @@ function ag(r, t, e) {
3032
3034
  }, _ = (g) => {
3033
3035
  const v = g;
3034
3036
  if (d && clearTimeout(d), o === "click") {
3035
- const w = v.timeStamp - h.timeStamp, I = po([h.offsetX, h.offsetY], [v.offsetX, v.offsetY]);
3036
- if (w > 300 || I > 15) return;
3037
+ const w = v.timeStamp - h.timeStamp, C = po([h.offsetX, h.offsetY], [v.offsetX, v.offsetY]);
3038
+ if (w > 300 || C > 15) return;
3037
3039
  if (f)
3038
3040
  x();
3039
3041
  else if (c.length === 0) {
@@ -3166,8 +3168,8 @@ function hg(r) {
3166
3168
  1 && n !== (n = /*annotation*/
3167
3169
  o[0].id) && E(t, "data-id", n);
3168
3170
  },
3169
- i: It,
3170
- o: It,
3171
+ i: Ct,
3172
+ o: Ct,
3171
3173
  d(o) {
3172
3174
  o && et(t);
3173
3175
  }
@@ -3227,8 +3229,8 @@ function dg(r) {
3227
3229
  1 && n !== (n = /*annotation*/
3228
3230
  o[0].id) && E(t, "data-id", n);
3229
3231
  },
3230
- i: It,
3231
- o: It,
3232
+ i: Ct,
3233
+ o: Ct,
3232
3234
  d(o) {
3233
3235
  o && et(t);
3234
3236
  }
@@ -3367,8 +3369,8 @@ function yg(r) {
3367
3369
  1 && n !== (n = /*annotation*/
3368
3370
  o[0].id) && E(t, "data-id", n);
3369
3371
  },
3370
- i: It,
3371
- o: It,
3372
+ i: Ct,
3373
+ o: Ct,
3372
3374
  d(o) {
3373
3375
  o && et(t);
3374
3376
  }
@@ -3447,7 +3449,7 @@ function nh(r) {
3447
3449
  p(n, o) {
3448
3450
  o[0] & /*$store*/
3449
3451
  32768 && Zt(t, t = /*annotation*/
3450
- n[39].id) ? (Ee(), ft(s, 1, 1, It), Te(), s = oh(n), s.c(), nt(s, 1), s.m(e.parentNode, e)) : s.p(n, o);
3452
+ n[39].id) ? (Ee(), ft(s, 1, 1, Ct), Te(), s = oh(n), s.c(), nt(s, 1), s.m(e.parentNode, e)) : s.p(n, o);
3451
3453
  },
3452
3454
  i(n) {
3453
3455
  i || (nt(s), i = !0);
@@ -3680,7 +3682,7 @@ function ah(r) {
3680
3682
  }
3681
3683
  function lh(r) {
3682
3684
  let t, e, i, s;
3683
- const n = [Cg, Sg], o = [];
3685
+ const n = [Ig, Sg], o = [];
3684
3686
  function a(l, h) {
3685
3687
  return (
3686
3688
  /*editableAnnotations*/
@@ -3730,7 +3732,7 @@ function Sg(r) {
3730
3732
  p(n, o) {
3731
3733
  o[0] & /*toolName*/
3732
3734
  4 && Zt(t, t = /*toolName*/
3733
- n[2]) ? (Ee(), ft(s, 1, 1, It), Te(), s = hh(n), s.c(), nt(s, 1), s.m(e.parentNode, e)) : s.p(n, o);
3735
+ n[2]) ? (Ee(), ft(s, 1, 1, Ct), Te(), s = hh(n), s.c(), nt(s, 1), s.m(e.parentNode, e)) : s.p(n, o);
3734
3736
  },
3735
3737
  i(n) {
3736
3738
  i || (nt(s), i = !0);
@@ -3743,8 +3745,8 @@ function Sg(r) {
3743
3745
  }
3744
3746
  };
3745
3747
  }
3746
- function Cg(r) {
3747
- let t, e, i = Ii(
3748
+ function Ig(r) {
3749
+ let t, e, i = Ci(
3748
3750
  /*editableAnnotations*/
3749
3751
  r[7]
3750
3752
  ), s = [];
@@ -3767,7 +3769,7 @@ function Cg(r) {
3767
3769
  p(o, a) {
3768
3770
  if (a[0] & /*editableAnnotations, drawingEl, getEditor, style, transform, $scale, onChangeSelected*/
3769
3771
  10553506) {
3770
- i = Ii(
3772
+ i = Ci(
3771
3773
  /*editableAnnotations*/
3772
3774
  o[7]
3773
3775
  );
@@ -3875,7 +3877,7 @@ function ch(r) {
3875
3877
  p(n, o) {
3876
3878
  o[0] & /*editableAnnotations*/
3877
3879
  128 && Zt(t, t = /*editable*/
3878
- n[35].id) ? (Ee(), ft(s, 1, 1, It), Te(), s = uh(n), s.c(), nt(s, 1), s.m(e.parentNode, e)) : s.p(n, o);
3880
+ n[35].id) ? (Ee(), ft(s, 1, 1, Ct), Te(), s = uh(n), s.c(), nt(s, 1), s.m(e.parentNode, e)) : s.p(n, o);
3879
3881
  },
3880
3882
  i(n) {
3881
3883
  i || (nt(s), i = !0);
@@ -3998,8 +4000,8 @@ function dh(r) {
3998
4000
  }
3999
4001
  };
4000
4002
  }
4001
- function Ig(r) {
4002
- let t, e, i, s, n, o, a = Ii(
4003
+ function Cg(r) {
4004
+ let t, e, i, s, n, o, a = Ci(
4003
4005
  /*$store*/
4004
4006
  r[15].filter(
4005
4007
  /*func*/
@@ -4061,7 +4063,7 @@ function Ig(r) {
4061
4063
  p(u, d) {
4062
4064
  if (r = u, d[0] & /*$store, style, isEditable*/
4063
4065
  33026) {
4064
- a = Ii(
4066
+ a = Ci(
4065
4067
  /*$store*/
4066
4068
  r[15].filter(
4067
4069
  /*func*/
@@ -4115,9 +4117,9 @@ function Ig(r) {
4115
4117
  };
4116
4118
  }
4117
4119
  function Rg(r, t, e) {
4118
- let i, s, n, o, a, l, h, c, u, d, f, p = It, m = () => (p(), p = bu(A, (G) => e(16, f = G)), A);
4120
+ let i, s, n, o, a, l, h, c, u, d, f, p = Ct, m = () => (p(), p = bu(A, (G) => e(16, f = G)), A);
4119
4121
  r.$$.on_destroy.push(() => p());
4120
- let { drawingEnabled: _ } = t, { image: y } = t, { preferredDrawingMode: x } = t, { state: g } = t, { style: v = void 0 } = t, { toolName: w = zn()[0] } = t, { user: I } = t, { visible: T = !0 } = t, C, D, A;
4122
+ let { drawingEnabled: _ } = t, { image: y } = t, { preferredDrawingMode: x } = t, { state: g } = t, { style: v = void 0 } = t, { toolName: w = zn()[0] } = t, { user: C } = t, { visible: T = !0 } = t, I, D, A;
4121
4123
  vs(() => m(e(6, A = km(y, D))));
4122
4124
  const { hover: P, selection: R, store: b } = g;
4123
4125
  ao(r, P, (G) => e(14, c = G)), ao(r, R, (G) => e(29, u = G)), ao(r, b, (G) => e(15, d = G));
@@ -4130,26 +4132,26 @@ function Rg(r, t, e) {
4130
4132
  e(7, S = lt == null ? void 0 : lt.map((N) => N.newValue));
4131
4133
  }, b.observe(M, { annotations: X })) : e(7, S = void 0);
4132
4134
  }, L = (G) => {
4133
- const X = Cu(), tt = {
4135
+ const X = Iu(), tt = {
4134
4136
  id: X,
4135
4137
  bodies: [],
4136
4138
  target: {
4137
4139
  annotation: X,
4138
4140
  selector: G.detail,
4139
- creator: I,
4141
+ creator: C,
4140
4142
  created: /* @__PURE__ */ new Date()
4141
4143
  }
4142
4144
  };
4143
4145
  b.addAnnotation(tt), R.setSelected(tt.id);
4144
4146
  }, H = (G) => (X) => {
4145
4147
  var tt;
4146
- const { target: lt } = G, N = 10 * 60 * 1e3, O = ((tt = lt.creator) == null ? void 0 : tt.id) !== I.id || !lt.created || (/* @__PURE__ */ new Date()).getTime() - lt.created.getTime() > N;
4148
+ const { target: lt } = G, N = 10 * 60 * 1e3, O = ((tt = lt.creator) == null ? void 0 : tt.id) !== C.id || !lt.created || (/* @__PURE__ */ new Date()).getTime() - lt.created.getTime() > N;
4147
4149
  b.updateTarget({
4148
4150
  ...lt,
4149
4151
  selector: X.detail,
4150
4152
  created: O ? lt.created : /* @__PURE__ */ new Date(),
4151
4153
  updated: O ? /* @__PURE__ */ new Date() : void 0,
4152
- updatedBy: O ? I : void 0
4154
+ updatedBy: O ? C : void 0
4153
4155
  });
4154
4156
  }, Q = (G) => {
4155
4157
  const { x: X, y: tt } = Nu(G, D), lt = b.getAt(X, tt);
@@ -4157,7 +4159,7 @@ function Rg(r, t, e) {
4157
4159
  }, F = (G) => Du(G), k = (G) => ds(G);
4158
4160
  function K(G) {
4159
4161
  vn[G ? "unshift" : "push"](() => {
4160
- C = G, e(5, C);
4162
+ I = G, e(5, I);
4161
4163
  });
4162
4164
  }
4163
4165
  function st(G) {
@@ -4166,7 +4168,7 @@ function Rg(r, t, e) {
4166
4168
  });
4167
4169
  }
4168
4170
  return r.$$set = (G) => {
4169
- "drawingEnabled" in G && e(0, _ = G.drawingEnabled), "image" in G && e(24, y = G.image), "preferredDrawingMode" in G && e(25, x = G.preferredDrawingMode), "state" in G && e(26, g = G.state), "style" in G && e(1, v = G.style), "toolName" in G && e(2, w = G.toolName), "user" in G && e(27, I = G.user), "visible" in G && e(3, T = G.visible);
4171
+ "drawingEnabled" in G && e(0, _ = G.drawingEnabled), "image" in G && e(24, y = G.image), "preferredDrawingMode" in G && e(25, x = G.preferredDrawingMode), "state" in G && e(26, g = G.state), "style" in G && e(1, v = G.style), "toolName" in G && e(2, w = G.toolName), "user" in G && e(27, C = G.user), "visible" in G && e(3, T = G.visible);
4170
4172
  }, r.$$.update = () => {
4171
4173
  r.$$.dirty[0] & /*toolName*/
4172
4174
  4 && e(13, { tool: i, opts: s } = Wn(w) || { tool: void 0, opts: void 0 }, i, (e(28, s), e(2, w))), r.$$.dirty[0] & /*opts, preferredDrawingMode*/
@@ -4181,7 +4183,7 @@ function Rg(r, t, e) {
4181
4183
  w,
4182
4184
  T,
4183
4185
  D,
4184
- C,
4186
+ I,
4185
4187
  A,
4186
4188
  S,
4187
4189
  h,
@@ -4203,7 +4205,7 @@ function Rg(r, t, e) {
4203
4205
  y,
4204
4206
  x,
4205
4207
  g,
4206
- I,
4208
+ C,
4207
4209
  s,
4208
4210
  u,
4209
4211
  k,
@@ -4217,7 +4219,7 @@ class Pg extends fe {
4217
4219
  this,
4218
4220
  t,
4219
4221
  Rg,
4220
- Ig,
4222
+ Cg,
4221
4223
  Zt,
4222
4224
  {
4223
4225
  drawingEnabled: 0,
@@ -4617,7 +4619,7 @@ const Ug = () => {
4617
4619
  const e = typeof r == "string" ? document.getElementById(r) : r, i = $u(t, {
4618
4620
  drawingEnabled: !0,
4619
4621
  drawingMode: "drag",
4620
- userSelectAction: Iu.EDIT,
4622
+ userSelectAction: Cu.EDIT,
4621
4623
  theme: "light"
4622
4624
  }), s = kg(i), { selection: n, store: o } = s, a = gm(o), l = _m(
4623
4625
  s,
@@ -4652,9 +4654,9 @@ const Ug = () => {
4652
4654
  d.$set({ toolName: D });
4653
4655
  }, g = (D) => d.$set({ drawingEnabled: D }), v = (D) => {
4654
4656
  console.warn("Filter not implemented yet");
4655
- }, w = (D) => d.$set({ style: D }), I = (D) => ph(e, h, D), T = (D) => {
4657
+ }, w = (D) => d.$set({ style: D }), C = (D) => ph(e, h, D), T = (D) => {
4656
4658
  u = D, d.$set({ user: D });
4657
- }, C = (D) => (
4659
+ }, I = (D) => (
4658
4660
  // @ts-ignore
4659
4661
  d.$set({ visible: D })
4660
4662
  );
@@ -4671,9 +4673,9 @@ const Ug = () => {
4671
4673
  setDrawingTool: x,
4672
4674
  setFilter: v,
4673
4675
  setStyle: w,
4674
- setTheme: I,
4676
+ setTheme: C,
4675
4677
  setUser: T,
4676
- setVisible: C,
4678
+ setVisible: I,
4677
4679
  element: h,
4678
4680
  state: s
4679
4681
  };
@@ -5088,7 +5090,7 @@ const ey = {
5088
5090
  */
5089
5091
  ROUND_PIXELS: !1
5090
5092
  };
5091
- var xo = /iPhone/i, vh = /iPod/i, xh = /iPad/i, bh = /\biOS-universal(?:.+)Mac\b/i, bo = /\bAndroid(?:.+)Mobile\b/i, wh = /Android/i, ti = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, Bs = /Silk/i, je = /Windows Phone/i, Eh = /\bWindows(?:.+)ARM\b/i, Th = /BlackBerry/i, Ah = /BB10/i, Sh = /Opera Mini/i, Ch = /\b(CriOS|Chrome)(?:.+)Mobile/i, Ih = /Mobile(?:.+)Firefox\b/i, Rh = function(r) {
5093
+ var xo = /iPhone/i, vh = /iPod/i, xh = /iPad/i, bh = /\biOS-universal(?:.+)Mac\b/i, bo = /\bAndroid(?:.+)Mobile\b/i, wh = /Android/i, ti = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, Bs = /Silk/i, je = /Windows Phone/i, Eh = /\bWindows(?:.+)ARM\b/i, Th = /BlackBerry/i, Ah = /BB10/i, Sh = /Opera Mini/i, Ih = /\b(CriOS|Chrome)(?:.+)Mobile/i, Ch = /Mobile(?:.+)Firefox\b/i, Rh = function(r) {
5092
5094
  return typeof r < "u" && r.platform === "MacIntel" && typeof r.maxTouchPoints == "number" && r.maxTouchPoints > 1 && typeof MSStream > "u";
5093
5095
  };
5094
5096
  function ry(r) {
@@ -5140,9 +5142,9 @@ function Ph(r) {
5140
5142
  blackberry: s(Th),
5141
5143
  blackberry10: s(Ah),
5142
5144
  opera: s(Sh),
5143
- firefox: s(Ih),
5144
- chrome: s(Ch),
5145
- device: s(Th) || s(Ah) || s(Sh) || s(Ih) || s(Ch)
5145
+ firefox: s(Ch),
5146
+ chrome: s(Ih),
5147
+ device: s(Th) || s(Ah) || s(Sh) || s(Ch) || s(Ih)
5146
5148
  },
5147
5149
  any: !1,
5148
5150
  phone: !1,
@@ -5312,7 +5314,7 @@ function Vr(r, t) {
5312
5314
  t || (t = r);
5313
5315
  var e = r, i;
5314
5316
  do
5315
- if (i = !1, !e.steiner && (Kn(e, e.next) || Ct(e.prev, e, e.next) === 0)) {
5317
+ if (i = !1, !e.steiner && (Kn(e, e.next) || It(e.prev, e, e.next) === 0)) {
5316
5318
  if (gs(e), e = t = e.prev, e === e.next) break;
5317
5319
  i = !0;
5318
5320
  } else
@@ -5337,26 +5339,26 @@ function ps(r, t, e, i, s, n, o) {
5337
5339
  }
5338
5340
  function oy(r) {
5339
5341
  var t = r.prev, e = r, i = r.next;
5340
- if (Ct(t, e, i) >= 0) return !1;
5342
+ if (It(t, e, i) >= 0) return !1;
5341
5343
  for (var s = t.x, n = e.x, o = i.x, a = t.y, l = e.y, h = i.y, c = s < n ? s < o ? s : o : n < o ? n : o, u = a < l ? a < h ? a : h : l < h ? l : h, d = s > n ? s > o ? s : o : n > o ? n : o, f = a > l ? a > h ? a : h : l > h ? l : h, p = i.next; p !== t; ) {
5342
- if (p.x >= c && p.x <= d && p.y >= u && p.y <= f && mi(s, a, n, l, o, h, p.x, p.y) && Ct(p.prev, p, p.next) >= 0) return !1;
5344
+ if (p.x >= c && p.x <= d && p.y >= u && p.y <= f && mi(s, a, n, l, o, h, p.x, p.y) && It(p.prev, p, p.next) >= 0) return !1;
5343
5345
  p = p.next;
5344
5346
  }
5345
5347
  return !0;
5346
5348
  }
5347
5349
  function ay(r, t, e, i) {
5348
5350
  var s = r.prev, n = r, o = r.next;
5349
- if (Ct(s, n, o) >= 0) return !1;
5351
+ if (It(s, n, o) >= 0) return !1;
5350
5352
  for (var a = s.x, l = n.x, h = o.x, c = s.y, u = n.y, d = o.y, f = a < l ? a < h ? a : h : l < h ? l : h, p = c < u ? c < d ? c : d : u < d ? u : d, m = a > l ? a > h ? a : h : l > h ? l : h, _ = c > u ? c > d ? c : d : u > d ? u : d, y = ga(f, p, t, e, i), x = ga(m, _, t, e, i), g = r.prevZ, v = r.nextZ; g && g.z >= y && v && v.z <= x; ) {
5351
- if (g.x >= f && g.x <= m && g.y >= p && g.y <= _ && g !== s && g !== o && mi(a, c, l, u, h, d, g.x, g.y) && Ct(g.prev, g, g.next) >= 0 || (g = g.prevZ, v.x >= f && v.x <= m && v.y >= p && v.y <= _ && v !== s && v !== o && mi(a, c, l, u, h, d, v.x, v.y) && Ct(v.prev, v, v.next) >= 0)) return !1;
5353
+ if (g.x >= f && g.x <= m && g.y >= p && g.y <= _ && g !== s && g !== o && mi(a, c, l, u, h, d, g.x, g.y) && It(g.prev, g, g.next) >= 0 || (g = g.prevZ, v.x >= f && v.x <= m && v.y >= p && v.y <= _ && v !== s && v !== o && mi(a, c, l, u, h, d, v.x, v.y) && It(v.prev, v, v.next) >= 0)) return !1;
5352
5354
  v = v.nextZ;
5353
5355
  }
5354
5356
  for (; g && g.z >= y; ) {
5355
- if (g.x >= f && g.x <= m && g.y >= p && g.y <= _ && g !== s && g !== o && mi(a, c, l, u, h, d, g.x, g.y) && Ct(g.prev, g, g.next) >= 0) return !1;
5357
+ if (g.x >= f && g.x <= m && g.y >= p && g.y <= _ && g !== s && g !== o && mi(a, c, l, u, h, d, g.x, g.y) && It(g.prev, g, g.next) >= 0) return !1;
5356
5358
  g = g.prevZ;
5357
5359
  }
5358
5360
  for (; v && v.z <= x; ) {
5359
- if (v.x >= f && v.x <= m && v.y >= p && v.y <= _ && v !== s && v !== o && mi(a, c, l, u, h, d, v.x, v.y) && Ct(v.prev, v, v.next) >= 0) return !1;
5361
+ if (v.x >= f && v.x <= m && v.y >= p && v.y <= _ && v !== s && v !== o && mi(a, c, l, u, h, d, v.x, v.y) && It(v.prev, v, v.next) >= 0) return !1;
5360
5362
  v = v.nextZ;
5361
5363
  }
5362
5364
  return !0;
@@ -5420,7 +5422,7 @@ function fy(r, t) {
5420
5422
  return o;
5421
5423
  }
5422
5424
  function py(r, t) {
5423
- return Ct(r.prev, r, t.prev) < 0 && Ct(t.next, r, r.next) < 0;
5425
+ return It(r.prev, r, t.prev) < 0 && It(t.next, r, r.next) < 0;
5424
5426
  }
5425
5427
  function my(r, t, e, i) {
5426
5428
  var s = r;
@@ -5459,17 +5461,17 @@ function mi(r, t, e, i, s, n, o, a) {
5459
5461
  function _y(r, t) {
5460
5462
  return r.next.i !== t.i && r.prev.i !== t.i && !vy(r, t) && // dones't intersect other edges
5461
5463
  (ms(r, t) && ms(t, r) && xy(r, t) && // locally visible
5462
- (Ct(r.prev, r, t.prev) || Ct(r, t.prev, t)) || // does not create opposite-facing sectors
5463
- Kn(r, t) && Ct(r.prev, r, r.next) > 0 && Ct(t.prev, t, t.next) > 0);
5464
+ (It(r.prev, r, t.prev) || It(r, t.prev, t)) || // does not create opposite-facing sectors
5465
+ Kn(r, t) && It(r.prev, r, r.next) > 0 && It(t.prev, t, t.next) > 0);
5464
5466
  }
5465
- function Ct(r, t, e) {
5467
+ function It(r, t, e) {
5466
5468
  return (t.y - r.y) * (e.x - t.x) - (t.x - r.x) * (e.y - t.y);
5467
5469
  }
5468
5470
  function Kn(r, t) {
5469
5471
  return r.x === t.x && r.y === t.y;
5470
5472
  }
5471
5473
  function td(r, t, e, i) {
5472
- var s = Os(Ct(r, t, e)), n = Os(Ct(r, t, i)), o = Os(Ct(e, i, r)), a = Os(Ct(e, i, t));
5474
+ var s = Os(It(r, t, e)), n = Os(It(r, t, i)), o = Os(It(e, i, r)), a = Os(It(e, i, t));
5473
5475
  return !!(s !== n && o !== a || s === 0 && Ds(r, e, t) || n === 0 && Ds(r, i, t) || o === 0 && Ds(e, r, i) || a === 0 && Ds(e, t, i));
5474
5476
  }
5475
5477
  function Ds(r, t, e) {
@@ -5487,7 +5489,7 @@ function vy(r, t) {
5487
5489
  return !1;
5488
5490
  }
5489
5491
  function ms(r, t) {
5490
- return Ct(r.prev, r, r.next) < 0 ? Ct(r, t, r.next) >= 0 && Ct(r, r.prev, t) >= 0 : Ct(r, t, r.prev) < 0 || Ct(r, r.next, t) < 0;
5492
+ return It(r.prev, r, r.next) < 0 ? It(r, t, r.next) >= 0 && It(r, r.prev, t) >= 0 : It(r, t, r.prev) < 0 || It(r, r.next, t) < 0;
5491
5493
  }
5492
5494
  function xy(r, t) {
5493
5495
  var e = r, i = !1, s = (r.x + t.x) / 2, n = (r.y + t.y) / 2;
@@ -5552,8 +5554,8 @@ Tn.exports;
5552
5554
  overflow: "Overflow: input needs wider integers to process",
5553
5555
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
5554
5556
  "invalid-input": "Invalid input"
5555
- }, v = l - h, w = Math.floor, I = String.fromCharCode, T;
5556
- function C(F) {
5557
+ }, v = l - h, w = Math.floor, C = String.fromCharCode, T;
5558
+ function I(F) {
5557
5559
  throw new RangeError(g[F]);
5558
5560
  }
5559
5561
  function D(F, k) {
@@ -5575,7 +5577,7 @@ Tn.exports;
5575
5577
  function R(F) {
5576
5578
  return D(F, function(k) {
5577
5579
  var K = "";
5578
- return k > 65535 && (k -= 65536, K += I(k >>> 10 & 1023 | 55296), k = 56320 | k & 1023), K += I(k), K;
5580
+ return k > 65535 && (k -= 65536, K += C(k >>> 10 & 1023 | 55296), k = 56320 | k & 1023), K += C(k), K;
5579
5581
  }).join("");
5580
5582
  }
5581
5583
  function b(F) {
@@ -5591,30 +5593,30 @@ Tn.exports;
5591
5593
  return w(st + (v + 1) * F / (F + u));
5592
5594
  }
5593
5595
  function U(F) {
5594
- var k = [], K = F.length, st, G = 0, X = p, tt = f, lt, N, O, xt, mt, _t, vt, Ie, Re;
5596
+ var k = [], K = F.length, st, G = 0, X = p, tt = f, lt, N, O, xt, mt, _t, vt, Ce, Re;
5595
5597
  for (lt = F.lastIndexOf(m), lt < 0 && (lt = 0), N = 0; N < lt; ++N)
5596
- F.charCodeAt(N) >= 128 && C("not-basic"), k.push(F.charCodeAt(N));
5598
+ F.charCodeAt(N) >= 128 && I("not-basic"), k.push(F.charCodeAt(N));
5597
5599
  for (O = lt > 0 ? lt + 1 : 0; O < K; ) {
5598
- for (xt = G, mt = 1, _t = l; O >= K && C("invalid-input"), vt = b(F.charCodeAt(O++)), (vt >= l || vt > w((a - G) / mt)) && C("overflow"), G += vt * mt, Ie = _t <= tt ? h : _t >= tt + c ? c : _t - tt, !(vt < Ie); _t += l)
5599
- Re = l - Ie, mt > w(a / Re) && C("overflow"), mt *= Re;
5600
- st = k.length + 1, tt = S(G - xt, st, xt == 0), w(G / st) > a - X && C("overflow"), X += w(G / st), G %= st, k.splice(G++, 0, X);
5600
+ for (xt = G, mt = 1, _t = l; O >= K && I("invalid-input"), vt = b(F.charCodeAt(O++)), (vt >= l || vt > w((a - G) / mt)) && I("overflow"), G += vt * mt, Ce = _t <= tt ? h : _t >= tt + c ? c : _t - tt, !(vt < Ce); _t += l)
5601
+ Re = l - Ce, mt > w(a / Re) && I("overflow"), mt *= Re;
5602
+ st = k.length + 1, tt = S(G - xt, st, xt == 0), w(G / st) > a - X && I("overflow"), X += w(G / st), G %= st, k.splice(G++, 0, X);
5601
5603
  }
5602
5604
  return R(k);
5603
5605
  }
5604
5606
  function L(F) {
5605
- var k, K, st, G, X, tt, lt, N, O, xt, mt, _t = [], vt, Ie, Re, Gi;
5607
+ var k, K, st, G, X, tt, lt, N, O, xt, mt, _t = [], vt, Ce, Re, Gi;
5606
5608
  for (F = P(F), vt = F.length, k = p, K = 0, X = f, tt = 0; tt < vt; ++tt)
5607
- mt = F[tt], mt < 128 && _t.push(I(mt));
5609
+ mt = F[tt], mt < 128 && _t.push(C(mt));
5608
5610
  for (st = G = _t.length, G && _t.push(m); st < vt; ) {
5609
5611
  for (lt = a, tt = 0; tt < vt; ++tt)
5610
5612
  mt = F[tt], mt >= k && mt < lt && (lt = mt);
5611
- for (Ie = st + 1, lt - k > w((a - K) / Ie) && C("overflow"), K += (lt - k) * Ie, k = lt, tt = 0; tt < vt; ++tt)
5612
- if (mt = F[tt], mt < k && ++K > a && C("overflow"), mt == k) {
5613
+ for (Ce = st + 1, lt - k > w((a - K) / Ce) && I("overflow"), K += (lt - k) * Ce, k = lt, tt = 0; tt < vt; ++tt)
5614
+ if (mt = F[tt], mt < k && ++K > a && I("overflow"), mt == k) {
5613
5615
  for (N = K, O = l; xt = O <= X ? h : O >= X + c ? c : O - X, !(N < xt); O += l)
5614
5616
  Gi = N - xt, Re = l - xt, _t.push(
5615
- I(M(xt + Gi % Re, 0))
5617
+ C(M(xt + Gi % Re, 0))
5616
5618
  ), N = w(Gi / Re);
5617
- _t.push(I(M(N, 0))), X = S(K, Ie, st == G), K = 0, ++st;
5619
+ _t.push(C(M(N, 0))), X = S(K, Ce, st == G), K = 0, ++st;
5618
5620
  }
5619
5621
  ++K, ++k;
5620
5622
  }
@@ -5662,7 +5664,7 @@ Tn.exports;
5662
5664
  e.punycode = o;
5663
5665
  })(os);
5664
5666
  })(Tn, Tn.exports);
5665
- var Ey = Tn.exports, Ty = Error, Ay = EvalError, Sy = RangeError, Cy = ReferenceError, rd = SyntaxError, bs = TypeError, Iy = URIError, Ry = function() {
5667
+ var Ey = Tn.exports, Ty = Error, Ay = EvalError, Sy = RangeError, Iy = ReferenceError, rd = SyntaxError, bs = TypeError, Cy = URIError, Ry = function() {
5666
5668
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
5667
5669
  return !1;
5668
5670
  if (typeof Symbol.iterator == "symbol")
@@ -5730,7 +5732,7 @@ var Ey = Tn.exports, Ty = Error, Ay = EvalError, Sy = RangeError, Cy = Reference
5730
5732
  h.prototype = e.prototype, s.prototype = new h(), h.prototype = null;
5731
5733
  }
5732
5734
  return s;
5733
- }, $y = Gy, wl = Function.prototype.bind || $y, Hy = Function.prototype.call, Xy = Object.prototype.hasOwnProperty, Vy = wl, zy = Vy.call(Hy, Xy), ct, Wy = Ty, jy = Ay, Yy = Sy, qy = Cy, Pi = rd, bi = bs, Ky = Iy, id = Function, Eo = function(r) {
5735
+ }, $y = Gy, wl = Function.prototype.bind || $y, Hy = Function.prototype.call, Xy = Object.prototype.hasOwnProperty, Vy = wl, zy = Vy.call(Hy, Xy), ct, Wy = Ty, jy = Ay, Yy = Sy, qy = Iy, Pi = rd, bi = bs, Ky = Cy, id = Function, Eo = function(r) {
5734
5736
  try {
5735
5737
  return id('"use strict"; return (' + r + ").constructor;")();
5736
5738
  } catch {
@@ -6061,7 +6063,7 @@ const x0 = {}, b0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
6061
6063
  __proto__: null,
6062
6064
  default: x0
6063
6065
  }, Symbol.toStringTag, { value: "Module" })), w0 = /* @__PURE__ */ sy(b0);
6064
- var Tl = typeof Map == "function" && Map.prototype, So = Object.getOwnPropertyDescriptor && Tl ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Cn = Tl && So && typeof So.get == "function" ? So.get : null, Hh = Tl && Map.prototype.forEach, Al = typeof Set == "function" && Set.prototype, Co = Object.getOwnPropertyDescriptor && Al ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, In = Al && Co && typeof Co.get == "function" ? Co.get : null, Xh = Al && Set.prototype.forEach, E0 = typeof WeakMap == "function" && WeakMap.prototype, as = E0 ? WeakMap.prototype.has : null, T0 = typeof WeakSet == "function" && WeakSet.prototype, ls = T0 ? WeakSet.prototype.has : null, A0 = typeof WeakRef == "function" && WeakRef.prototype, Vh = A0 ? WeakRef.prototype.deref : null, S0 = Boolean.prototype.valueOf, C0 = Object.prototype.toString, I0 = Function.prototype.toString, R0 = String.prototype.match, Sl = String.prototype.slice, yr = String.prototype.replace, P0 = String.prototype.toUpperCase, zh = String.prototype.toLowerCase, hd = RegExp.prototype.test, Wh = Array.prototype.concat, Ue = Array.prototype.join, M0 = Array.prototype.slice, jh = Math.floor, xa = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Io = Object.getOwnPropertySymbols, ba = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Mi = typeof Symbol == "function" && typeof Symbol.iterator == "object", Kt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Mi || !0) ? Symbol.toStringTag : null, cd = Object.prototype.propertyIsEnumerable, Yh = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
6066
+ var Tl = typeof Map == "function" && Map.prototype, So = Object.getOwnPropertyDescriptor && Tl ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, In = Tl && So && typeof So.get == "function" ? So.get : null, Hh = Tl && Map.prototype.forEach, Al = typeof Set == "function" && Set.prototype, Io = Object.getOwnPropertyDescriptor && Al ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Cn = Al && Io && typeof Io.get == "function" ? Io.get : null, Xh = Al && Set.prototype.forEach, E0 = typeof WeakMap == "function" && WeakMap.prototype, as = E0 ? WeakMap.prototype.has : null, T0 = typeof WeakSet == "function" && WeakSet.prototype, ls = T0 ? WeakSet.prototype.has : null, A0 = typeof WeakRef == "function" && WeakRef.prototype, Vh = A0 ? WeakRef.prototype.deref : null, S0 = Boolean.prototype.valueOf, I0 = Object.prototype.toString, C0 = Function.prototype.toString, R0 = String.prototype.match, Sl = String.prototype.slice, yr = String.prototype.replace, P0 = String.prototype.toUpperCase, zh = String.prototype.toLowerCase, hd = RegExp.prototype.test, Wh = Array.prototype.concat, Ue = Array.prototype.join, M0 = Array.prototype.slice, jh = Math.floor, xa = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Co = Object.getOwnPropertySymbols, ba = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Mi = typeof Symbol == "function" && typeof Symbol.iterator == "object", Kt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Mi || !0) ? Symbol.toStringTag : null, cd = Object.prototype.propertyIsEnumerable, Yh = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
6065
6067
  return r.__proto__;
6066
6068
  } : null);
6067
6069
  function qh(r, t) {
@@ -6159,13 +6161,13 @@ var wa = w0, Kh = wa.custom, Zh = dd(Kh) ? Kh : null, B0 = function r(t, e, i, s
6159
6161
  var w = [];
6160
6162
  return Hh && Hh.call(t, function(b, M) {
6161
6163
  w.push(d(M, t, !0) + " => " + d(b, t));
6162
- }), Qh("Map", Cn.call(t), w, u);
6164
+ }), Qh("Map", In.call(t), w, u);
6163
6165
  }
6164
6166
  if (z0(t)) {
6165
- var I = [];
6167
+ var C = [];
6166
6168
  return Xh && Xh.call(t, function(b) {
6167
- I.push(d(b, t));
6168
- }), Qh("Set", In.call(t), I, u);
6169
+ C.push(d(b, t));
6170
+ }), Qh("Set", Cn.call(t), C, u);
6169
6171
  }
6170
6172
  if (X0(t))
6171
6173
  return Ro("WeakMap");
@@ -6186,7 +6188,7 @@ var wa = w0, Kh = wa.custom, Zh = dd(Kh) ? Kh : null, B0 = function r(t, e, i, s
6186
6188
  if (typeof globalThis < "u" && t === globalThis || typeof os < "u" && t === os)
6187
6189
  return "{ [object globalThis] }";
6188
6190
  if (!O0(t) && !Jh(t)) {
6189
- var T = Fs(t, d), C = Yh ? Yh(t) === Object.prototype : t instanceof Object || t.constructor === Object, D = t instanceof Object ? "" : "null prototype", A = !C && Kt && Object(t) === t && Kt in t ? Sl.call(Ar(t), 8, -1) : D ? "Object" : "", P = C || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", R = P + (A || D ? "[" + Ue.call(Wh.call([], A || [], D || []), ": ") + "] " : "");
6191
+ var T = Fs(t, d), I = Yh ? Yh(t) === Object.prototype : t instanceof Object || t.constructor === Object, D = t instanceof Object ? "" : "null prototype", A = !I && Kt && Object(t) === t && Kt in t ? Sl.call(Ar(t), 8, -1) : D ? "Object" : "", P = I || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", R = P + (A || D ? "[" + Ue.call(Wh.call([], A || [], D || []), ": ") + "] " : "");
6190
6192
  return T.length === 0 ? R + "{}" : u ? R + "{" + Ta(T, u) + "}" : R + "{ " + Ue.call(T, ", ") + " }";
6191
6193
  }
6192
6194
  return String(t);
@@ -6248,12 +6250,12 @@ function dr(r, t) {
6248
6250
  return G0.call(r, t);
6249
6251
  }
6250
6252
  function Ar(r) {
6251
- return C0.call(r);
6253
+ return I0.call(r);
6252
6254
  }
6253
6255
  function $0(r) {
6254
6256
  if (r.name)
6255
6257
  return r.name;
6256
- var t = R0.call(I0.call(r), /^function\s*([\w$]+)/);
6258
+ var t = R0.call(C0.call(r), /^function\s*([\w$]+)/);
6257
6259
  return t ? t[1] : null;
6258
6260
  }
6259
6261
  function fd(r, t) {
@@ -6265,12 +6267,12 @@ function fd(r, t) {
6265
6267
  return -1;
6266
6268
  }
6267
6269
  function H0(r) {
6268
- if (!Cn || !r || typeof r != "object")
6270
+ if (!In || !r || typeof r != "object")
6269
6271
  return !1;
6270
6272
  try {
6271
- Cn.call(r);
6273
+ In.call(r);
6272
6274
  try {
6273
- In.call(r);
6275
+ Cn.call(r);
6274
6276
  } catch {
6275
6277
  return !0;
6276
6278
  }
@@ -6304,12 +6306,12 @@ function V0(r) {
6304
6306
  return !1;
6305
6307
  }
6306
6308
  function z0(r) {
6307
- if (!In || !r || typeof r != "object")
6309
+ if (!Cn || !r || typeof r != "object")
6308
6310
  return !1;
6309
6311
  try {
6310
- In.call(r);
6312
+ Cn.call(r);
6311
6313
  try {
6312
- Cn.call(r);
6314
+ In.call(r);
6313
6315
  } catch {
6314
6316
  return !0;
6315
6317
  }
@@ -6399,7 +6401,7 @@ function Fs(r, t) {
6399
6401
  for (var s = 0; s < r.length; s++)
6400
6402
  i[s] = dr(r, s) ? t(r[s], r) : "";
6401
6403
  }
6402
- var n = typeof Io == "function" ? Io(r) : [], o;
6404
+ var n = typeof Co == "function" ? Co(r) : [], o;
6403
6405
  if (Mi) {
6404
6406
  o = {};
6405
6407
  for (var a = 0; a < n.length; a++)
@@ -6407,21 +6409,21 @@ function Fs(r, t) {
6407
6409
  }
6408
6410
  for (var l in r)
6409
6411
  dr(r, l) && (e && String(Number(l)) === l && l < r.length || Mi && o["$" + l] instanceof Symbol || (hd.call(/[^\w$]/, l) ? i.push(t(l, r) + ": " + t(r[l], r)) : i.push(l + ": " + t(r[l], r))));
6410
- if (typeof Io == "function")
6412
+ if (typeof Co == "function")
6411
6413
  for (var h = 0; h < n.length; h++)
6412
6414
  cd.call(r, n[h]) && i.push("[" + t(n[h]) + "]: " + t(r[n[h]], r));
6413
6415
  return i;
6414
6416
  }
6415
- var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%", !0), Q0 = Ni("WeakMap.prototype.get", !0), t_ = Ni("WeakMap.prototype.set", !0), e_ = Ni("WeakMap.prototype.has", !0), r_ = Ni("Map.prototype.get", !0), i_ = Ni("Map.prototype.set", !0), s_ = Ni("Map.prototype.has", !0), Cl = function(r, t) {
6417
+ var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%", !0), Q0 = Ni("WeakMap.prototype.get", !0), t_ = Ni("WeakMap.prototype.set", !0), e_ = Ni("WeakMap.prototype.has", !0), r_ = Ni("Map.prototype.get", !0), i_ = Ni("Map.prototype.set", !0), s_ = Ni("Map.prototype.has", !0), Il = function(r, t) {
6416
6418
  for (var e = r, i; (i = e.next) !== null; e = i)
6417
6419
  if (i.key === t)
6418
6420
  return e.next = i.next, i.next = /** @type {NonNullable<typeof list.next>} */
6419
6421
  r.next, r.next = i, i;
6420
6422
  }, n_ = function(r, t) {
6421
- var e = Cl(r, t);
6423
+ var e = Il(r, t);
6422
6424
  return e && e.value;
6423
6425
  }, o_ = function(r, t, e) {
6424
- var i = Cl(r, t);
6426
+ var i = Il(r, t);
6425
6427
  i ? i.value = e : r.next = /** @type {import('.').ListNode<typeof value>} */
6426
6428
  {
6427
6429
  // eslint-disable-line no-param-reassign, no-extra-parens
@@ -6430,7 +6432,7 @@ var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%
6430
6432
  value: e
6431
6433
  };
6432
6434
  }, a_ = function(r, t) {
6433
- return !!Cl(r, t);
6435
+ return !!Il(r, t);
6434
6436
  }, l_ = function() {
6435
6437
  var t, e, i, s = {
6436
6438
  assert: function(n) {
@@ -6466,7 +6468,7 @@ var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%
6466
6468
  }, h_ = String.prototype.replace, c_ = /%20/g, Po = {
6467
6469
  RFC1738: "RFC1738",
6468
6470
  RFC3986: "RFC3986"
6469
- }, Il = {
6471
+ }, Cl = {
6470
6472
  default: Po.RFC3986,
6471
6473
  formatters: {
6472
6474
  RFC1738: function(r) {
@@ -6478,7 +6480,7 @@ var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%
6478
6480
  },
6479
6481
  RFC1738: Po.RFC1738,
6480
6482
  RFC3986: Po.RFC3986
6481
- }, u_ = Il, Mo = Object.prototype.hasOwnProperty, Fr = Array.isArray, Pe = function() {
6483
+ }, u_ = Cl, Mo = Object.prototype.hasOwnProperty, Fr = Array.isArray, Pe = function() {
6482
6484
  for (var r = [], t = 0; t < 256; ++t)
6483
6485
  r.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
6484
6486
  return r;
@@ -6596,7 +6598,7 @@ var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%
6596
6598
  isRegExp: __,
6597
6599
  maybeMap: b_,
6598
6600
  merge: f_
6599
- }, _d = l_, hn = yd, hs = Il, w_ = Object.prototype.hasOwnProperty, vd = {
6601
+ }, _d = l_, hn = yd, hs = Cl, w_ = Object.prototype.hasOwnProperty, vd = {
6600
6602
  brackets: function(t) {
6601
6603
  return t + "[]";
6602
6604
  },
@@ -6633,12 +6635,12 @@ var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%
6633
6635
  }, A_ = function(t) {
6634
6636
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
6635
6637
  }, Do = {}, S_ = function r(t, e, i, s, n, o, a, l, h, c, u, d, f, p, m, _, y, x) {
6636
- for (var g = t, v = x, w = 0, I = !1; (v = v.get(Do)) !== void 0 && !I; ) {
6638
+ for (var g = t, v = x, w = 0, C = !1; (v = v.get(Do)) !== void 0 && !C; ) {
6637
6639
  var T = v.get(t);
6638
6640
  if (w += 1, typeof T < "u") {
6639
6641
  if (T === w)
6640
6642
  throw new RangeError("Cyclic object value");
6641
- I = !0;
6643
+ C = !0;
6642
6644
  }
6643
6645
  typeof v.get(Do) > "u" && (w = 0);
6644
6646
  }
@@ -6651,8 +6653,8 @@ var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%
6651
6653
  }
6652
6654
  if (A_(g) || hn.isBuffer(g)) {
6653
6655
  if (h) {
6654
- var C = _ ? e : h(e, Ot.encoder, y, "key", p);
6655
- return [m(C) + "=" + m(h(g, Ot.encoder, y, "value", p))];
6656
+ var I = _ ? e : h(e, Ot.encoder, y, "key", p);
6657
+ return [m(I) + "=" + m(h(g, Ot.encoder, y, "value", p))];
6656
6658
  }
6657
6659
  return [m(e) + "=" + m(String(g))];
6658
6660
  }
@@ -6700,7 +6702,7 @@ var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%
6700
6702
  }
6701
6703
  }
6702
6704
  return D;
6703
- }, C_ = function(t) {
6705
+ }, I_ = function(t) {
6704
6706
  if (!t)
6705
6707
  return Ot;
6706
6708
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
@@ -6745,8 +6747,8 @@ var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%
6745
6747
  sort: typeof t.sort == "function" ? t.sort : null,
6746
6748
  strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : Ot.strictNullHandling
6747
6749
  };
6748
- }, I_ = function(r, t) {
6749
- var e = r, i = C_(t), s, n;
6750
+ }, C_ = function(r, t) {
6751
+ var e = r, i = I_(t), s, n;
6750
6752
  typeof i.filter == "function" ? (n = i.filter, e = n("", e)) : Le(i.filter) && (n = i.filter, s = n);
6751
6753
  var o = [];
6752
6754
  if (typeof e != "object" || e === null)
@@ -6905,7 +6907,7 @@ var md = Li, Ni = v0, Z0 = B0, J0 = bs, Ls = md("%WeakMap%", !0), Ns = md("%Map%
6905
6907
  s = Bi.merge(s, l, e);
6906
6908
  }
6907
6909
  return e.allowSparse === !0 ? s : Bi.compact(s);
6908
- }, U_ = I_, k_ = N_, G_ = Il, $_ = {
6910
+ }, U_ = C_, k_ = N_, G_ = Cl, $_ = {
6909
6911
  formats: G_,
6910
6912
  parse: k_,
6911
6913
  stringify: U_
@@ -6943,7 +6945,7 @@ var X_ = /^([a-z0-9.+-]+:)/i, V_ = /:[0-9]*$/, z_ = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
6943
6945
  ], Y_ = 255, ic = /^[+a-z0-9A-Z_-]{0,63}$/, q_ = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, K_ = {
6944
6946
  javascript: !0,
6945
6947
  "javascript:": !0
6946
- }, Ca = {
6948
+ }, Ia = {
6947
6949
  javascript: !0,
6948
6950
  "javascript:": !0
6949
6951
  }, wi = {
@@ -6957,7 +6959,7 @@ var X_ = /^([a-z0-9.+-]+:)/i, V_ = /:[0-9]*$/, z_ = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
6957
6959
  "ftp:": !0,
6958
6960
  "gopher:": !0,
6959
6961
  "file:": !0
6960
- }, Ia = $_;
6962
+ }, Ca = $_;
6961
6963
  function Z_(r, t, e) {
6962
6964
  if (r && typeof r == "object" && r instanceof rr)
6963
6965
  return r;
@@ -6973,7 +6975,7 @@ rr.prototype.parse = function(r, t, e) {
6973
6975
  if (a = a.trim(), !e && r.split("#").length === 1) {
6974
6976
  var l = z_.exec(a);
6975
6977
  if (l)
6976
- return this.path = a, this.href = a, this.pathname = l[1], l[2] ? (this.search = l[2], t ? this.query = Ia.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
6978
+ return this.path = a, this.href = a, this.pathname = l[1], l[2] ? (this.search = l[2], t ? this.query = Ca.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
6977
6979
  }
6978
6980
  var h = X_.exec(a);
6979
6981
  if (h) {
@@ -6983,9 +6985,9 @@ rr.prototype.parse = function(r, t, e) {
6983
6985
  }
6984
6986
  if (e || h || a.match(/^\/\/[^@/]+@[^@/]+/)) {
6985
6987
  var u = a.substr(0, 2) === "//";
6986
- u && !(h && Ca[h]) && (a = a.substr(2), this.slashes = !0);
6988
+ u && !(h && Ia[h]) && (a = a.substr(2), this.slashes = !0);
6987
6989
  }
6988
- if (!Ca[h] && (u || h && !wi[h])) {
6990
+ if (!Ia[h] && (u || h && !wi[h])) {
6989
6991
  for (var d = -1, f = 0; f < rc.length; f++) {
6990
6992
  var p = a.indexOf(rc[f]);
6991
6993
  p !== -1 && (d === -1 || p < d) && (d = p);
@@ -7002,11 +7004,11 @@ rr.prototype.parse = function(r, t, e) {
7002
7004
  for (var x = this.hostname.split(/\./), f = 0, g = x.length; f < g; f++) {
7003
7005
  var v = x[f];
7004
7006
  if (v && !v.match(ic)) {
7005
- for (var w = "", I = 0, T = v.length; I < T; I++)
7006
- v.charCodeAt(I) > 127 ? w += "x" : w += v[I];
7007
+ for (var w = "", C = 0, T = v.length; C < T; C++)
7008
+ v.charCodeAt(C) > 127 ? w += "x" : w += v[C];
7007
7009
  if (!w.match(ic)) {
7008
- var C = x.slice(0, f), D = x.slice(f + 1), A = v.match(q_);
7009
- A && (C.push(A[1]), D.unshift(A[2])), D.length && (a = "/" + D.join(".") + a), this.hostname = C.join(".");
7010
+ var I = x.slice(0, f), D = x.slice(f + 1), A = v.match(q_);
7011
+ A && (I.push(A[1]), D.unshift(A[2])), D.length && (a = "/" + D.join(".") + a), this.hostname = I.join(".");
7010
7012
  break;
7011
7013
  }
7012
7014
  }
@@ -7026,7 +7028,7 @@ rr.prototype.parse = function(r, t, e) {
7026
7028
  var S = a.indexOf("#");
7027
7029
  S !== -1 && (this.hash = a.substr(S), a = a.slice(0, S));
7028
7030
  var U = a.indexOf("?");
7029
- if (U !== -1 ? (this.search = a.substr(U), this.query = a.substr(U + 1), t && (this.query = Ia.parse(this.query)), a = a.slice(0, U)) : t && (this.search = "", this.query = {}), a && (this.pathname = a), wi[c] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
7031
+ if (U !== -1 ? (this.search = a.substr(U), this.query = a.substr(U + 1), t && (this.query = Ca.parse(this.query)), a = a.slice(0, U)) : t && (this.search = "", this.query = {}), a && (this.pathname = a), wi[c] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
7030
7032
  var P = this.pathname || "", L = this.search || "";
7031
7033
  this.path = P + L;
7032
7034
  }
@@ -7036,7 +7038,7 @@ rr.prototype.format = function() {
7036
7038
  var r = this.auth || "";
7037
7039
  r && (r = encodeURIComponent(r), r = r.replace(/%3A/i, ":"), r += "@");
7038
7040
  var t = this.protocol || "", e = this.pathname || "", i = this.hash || "", s = !1, n = "";
7039
- this.host ? s = r + this.host : this.hostname && (s = r + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (s += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (n = Ia.stringify(this.query, {
7041
+ this.host ? s = r + this.host : this.hostname && (s = r + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (s += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (n = Ca.stringify(this.query, {
7040
7042
  arrayFormat: "repeat",
7041
7043
  addQueryPrefix: !1
7042
7044
  }));
@@ -7074,7 +7076,7 @@ rr.prototype.resolveObject = function(r) {
7074
7076
  }
7075
7077
  return e.href = e.format(), e;
7076
7078
  }
7077
- if (e.protocol = r.protocol, !r.host && !Ca[r.protocol]) {
7079
+ if (e.protocol = r.protocol, !r.host && !Ia[r.protocol]) {
7078
7080
  for (var g = (r.pathname || "").split("/"); g.length && !(r.host = g.shift()); )
7079
7081
  ;
7080
7082
  r.host || (r.host = ""), r.hostname || (r.hostname = ""), g[0] !== "" && g.unshift(""), g.length < 2 && g.unshift(""), e.pathname = g.join("/");
@@ -7101,10 +7103,10 @@ rr.prototype.resolveObject = function(r) {
7101
7103
  }
7102
7104
  if (!x.length)
7103
7105
  return e.pathname = null, e.search ? e.path = "/" + e.search : e.path = null, e.href = e.format(), e;
7104
- for (var I = x.slice(-1)[0], T = (e.host || r.host || x.length > 1) && (I === "." || I === "..") || I === "", C = 0, D = x.length; D >= 0; D--)
7105
- I = x[D], I === "." ? x.splice(D, 1) : I === ".." ? (x.splice(D, 1), C++) : C && (x.splice(D, 1), C--);
7106
+ for (var C = x.slice(-1)[0], T = (e.host || r.host || x.length > 1) && (C === "." || C === "..") || C === "", I = 0, D = x.length; D >= 0; D--)
7107
+ C = x[D], C === "." ? x.splice(D, 1) : C === ".." ? (x.splice(D, 1), I++) : I && (x.splice(D, 1), I--);
7106
7108
  if (!_ && !y)
7107
- for (; C--; C)
7109
+ for (; I--; I)
7108
7110
  x.unshift("..");
7109
7111
  _ && x[0] !== "" && (!x[0] || x[0].charAt(0) !== "/") && x.unshift(""), T && x.join("/").substr(-1) !== "/" && x.push("");
7110
7112
  var A = x[0] === "" || x[0] && x[0].charAt(0) === "/";
@@ -7916,7 +7918,7 @@ function mv(r, t = null) {
7916
7918
  t[i + 0] = s + 0, t[i + 1] = s + 1, t[i + 2] = s + 2, t[i + 3] = s + 0, t[i + 4] = s + 2, t[i + 5] = s + 3;
7917
7919
  return t;
7918
7920
  }
7919
- function Cd(r) {
7921
+ function Id(r) {
7920
7922
  if (r.BYTES_PER_ELEMENT === 4)
7921
7923
  return r instanceof Float32Array ? "Float32Array" : r instanceof Uint32Array ? "Uint32Array" : "Int32Array";
7922
7924
  if (r.BYTES_PER_ELEMENT === 2) {
@@ -8381,7 +8383,7 @@ We.prototype.toString = function() {
8381
8383
  return `[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`;
8382
8384
  };
8383
8385
  const Oa = [];
8384
- function Id(r, t) {
8386
+ function Cd(r, t) {
8385
8387
  if (!r)
8386
8388
  return null;
8387
8389
  let e = "";
@@ -8689,7 +8691,7 @@ const Tv = {
8689
8691
  resolution: f,
8690
8692
  resourceOptions: p
8691
8693
  } = e;
8692
- t && !(t instanceof ys) && (t = Id(t, p), t.internal = !0), this.resolution = f || W.RESOLUTION, this.width = Math.round((a || 0) * this.resolution) / this.resolution, this.height = Math.round((l || 0) * this.resolution) / this.resolution, this._mipmap = s, this.anisotropicLevel = n, this._wrapMode = h, this._scaleMode = o, this.format = c, this.type = u, this.target = d, this.alphaMode = i, this.uid = zr(), this.touched = 0, this.isPowerOfTwo = !1, this._refreshPOT(), this._glTextures = {}, this.dirtyId = 0, this.dirtyStyleId = 0, this.cacheId = null, this.valid = a > 0 && l > 0, this.textureCacheIds = [], this.destroyed = !1, this.resource = null, this._batchEnabled = 0, this._batchLocation = 0, this.parentTextureArray = null, this.setResource(t);
8694
+ t && !(t instanceof ys) && (t = Cd(t, p), t.internal = !0), this.resolution = f || W.RESOLUTION, this.width = Math.round((a || 0) * this.resolution) / this.resolution, this.height = Math.round((l || 0) * this.resolution) / this.resolution, this._mipmap = s, this.anisotropicLevel = n, this._wrapMode = h, this._scaleMode = o, this.format = c, this.type = u, this.target = d, this.alphaMode = i, this.uid = zr(), this.touched = 0, this.isPowerOfTwo = !1, this._refreshPOT(), this._glTextures = {}, this.dirtyId = 0, this.dirtyStyleId = 0, this.cacheId = null, this.valid = a > 0 && l > 0, this.textureCacheIds = [], this.destroyed = !1, this.resource = null, this._batchEnabled = 0, this._batchLocation = 0, this.parentTextureArray = null, this.setResource(t);
8693
8695
  }
8694
8696
  /**
8695
8697
  * Pixel width of the source of this texture
@@ -9048,7 +9050,7 @@ const Sv = {
9048
9050
  Int32Array,
9049
9051
  Uint8Array
9050
9052
  };
9051
- function Cv(r, t) {
9053
+ function Iv(r, t) {
9052
9054
  let e = 0, i = 0;
9053
9055
  const s = {};
9054
9056
  for (let l = 0; l < r.length; l++)
@@ -9056,7 +9058,7 @@ function Cv(r, t) {
9056
9058
  const n = new ArrayBuffer(e * 4);
9057
9059
  let o = null, a = 0;
9058
9060
  for (let l = 0; l < r.length; l++) {
9059
- const h = t[l], c = r[l], u = Cd(c);
9061
+ const h = t[l], c = r[l], u = Id(c);
9060
9062
  s[u] || (s[u] = new Sv[u](n)), o = s[u];
9061
9063
  for (let d = 0; d < c.length; d++) {
9062
9064
  const f = (d / h | 0) * i + a, p = d % h;
@@ -9067,7 +9069,7 @@ function Cv(r, t) {
9067
9069
  return new Float32Array(n);
9068
9070
  }
9069
9071
  const vc = { 5126: 4, 5123: 2, 5121: 1 };
9070
- let Iv = 0;
9072
+ let Cv = 0;
9071
9073
  const Rv = {
9072
9074
  Float32Array,
9073
9075
  Uint32Array,
@@ -9081,7 +9083,7 @@ class wr {
9081
9083
  * @param attributes - Of the geometry, optional structure of the attributes layout
9082
9084
  */
9083
9085
  constructor(t = [], e = {}) {
9084
- this.buffers = t, this.indexBuffer = null, this.attributes = e, this.glVertexArrayObjects = {}, this.id = Iv++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new be("disposeGeometry"), this.refCount = 0;
9086
+ this.buffers = t, this.indexBuffer = null, this.attributes = e, this.glVertexArrayObjects = {}, this.id = Cv++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new be("disposeGeometry"), this.refCount = 0;
9085
9087
  }
9086
9088
  /**
9087
9089
  *
@@ -9157,7 +9159,7 @@ class wr {
9157
9159
  const n = this.attributes[s], o = this.buffers[n.buffer];
9158
9160
  t.push(o.data), e.push(n.size * vc[n.type] / 4), n.buffer = 0;
9159
9161
  }
9160
- for (i.data = Cv(t, e), s = 0; s < this.buffers.length; s++)
9162
+ for (i.data = Iv(t, e), s = 0; s < this.buffers.length; s++)
9161
9163
  this.buffers[s] !== this.indexBuffer && this.buffers[s].destroy();
9162
9164
  return this.buffers = [i], this.indexBuffer && this.buffers.push(this.indexBuffer), this;
9163
9165
  }
@@ -9215,7 +9217,7 @@ class wr {
9215
9217
  s[l] = s[l] || 0, s[l] += o.buffers[l].data.length, n[l] = 0;
9216
9218
  }
9217
9219
  for (let a = 0; a < o.buffers.length; a++)
9218
- i[a] = new Rv[Cd(o.buffers[a].data)](s[a]), e.buffers[a] = new Mt(i[a]);
9220
+ i[a] = new Rv[Id(o.buffers[a].data)](s[a]), e.buffers[a] = new Mt(i[a]);
9219
9221
  for (let a = 0; a < t.length; a++) {
9220
9222
  o = t[a];
9221
9223
  for (let l = 0; l < o.buffers.length; l++)
@@ -9382,8 +9384,8 @@ class ot {
9382
9384
  */
9383
9385
  intersects(t, e) {
9384
9386
  if (!e) {
9385
- const C = this.x < t.x ? t.x : this.x;
9386
- if ((this.right > t.right ? t.right : this.right) <= C)
9387
+ const I = this.x < t.x ? t.x : this.x;
9388
+ if ((this.right > t.right ? t.right : this.right) <= I)
9387
9389
  return !1;
9388
9390
  const D = this.y < t.y ? t.y : this.y;
9389
9391
  return (this.bottom > t.bottom ? t.bottom : this.bottom) > D;
@@ -9400,8 +9402,8 @@ class ot {
9400
9402
  const d = u * (l.y - a.y), f = u * (a.x - l.x), p = d * i + f * n, m = d * s + f * n, _ = d * i + f * o, y = d * s + f * o;
9401
9403
  if (Math.max(p, m, _, y) <= d * a.x + f * a.y || Math.min(p, m, _, y) >= d * c.x + f * c.y)
9402
9404
  return !1;
9403
- const x = u * (a.y - h.y), g = u * (h.x - a.x), v = x * i + g * n, w = x * s + g * n, I = x * i + g * o, T = x * s + g * o;
9404
- return !(Math.max(v, w, I, T) <= x * a.x + g * a.y || Math.min(v, w, I, T) >= x * c.x + g * c.y);
9405
+ const x = u * (a.y - h.y), g = u * (h.x - a.x), v = x * i + g * n, w = x * s + g * n, C = x * i + g * o, T = x * s + g * o;
9406
+ return !(Math.max(v, w, C, T) <= x * a.x + g * a.y || Math.min(v, w, C, T) >= x * c.x + g * c.y);
9405
9407
  }
9406
9408
  /**
9407
9409
  * Pads the rectangle making it grow in all directions.
@@ -13570,7 +13572,7 @@ class zd {
13570
13572
  this.renderer = null, this.maskStack = null;
13571
13573
  }
13572
13574
  }
13573
- const Cc = new Et(), Ic = [], Wd = class un extends zd {
13575
+ const Ic = new Et(), Cc = [], Wd = class un extends zd {
13574
13576
  /**
13575
13577
  * @param {PIXI.Renderer} renderer - The renderer this System works for.
13576
13578
  */
@@ -13588,7 +13590,7 @@ const Cc = new Et(), Ic = [], Wd = class un extends zd {
13588
13590
  calcScissorRect(t) {
13589
13591
  if (t._scissorRectLocal)
13590
13592
  return;
13591
- const e = t._scissorRect, { maskObject: i } = t, { renderer: s } = this, n = s.renderTexture, o = i.getBounds(!0, Ic.pop() ?? new ot());
13593
+ const e = t._scissorRect, { maskObject: i } = t, { renderer: s } = this, n = s.renderTexture, o = i.getBounds(!0, Cc.pop() ?? new ot());
13592
13594
  this.roundFrameToPixels(
13593
13595
  o,
13594
13596
  n.current ? n.current.resolution : s.resolution,
@@ -13618,7 +13620,7 @@ const Cc = new Et(), Ic = [], Wd = class un extends zd {
13618
13620
  return i.width > 0 && i.height > 0;
13619
13621
  }
13620
13622
  roundFrameToPixels(t, e, i, s, n) {
13621
- un.isMatrixRotated(n) || (n = n ? Cc.copyFrom(n) : Cc.identity(), n.translate(-i.x, -i.y).scale(
13623
+ un.isMatrixRotated(n) || (n = n ? Ic.copyFrom(n) : Ic.identity(), n.translate(-i.x, -i.y).scale(
13622
13624
  s.width / i.width,
13623
13625
  s.height / i.height
13624
13626
  ).translate(s.x, s.y), this.renderer.filter.transformAABB(n, t), t.fit(s), t.x = Math.round(t.x * e), t.y = Math.round(t.y * e), t.width = Math.round(t.width * e), t.height = Math.round(t.height * e));
@@ -13642,7 +13644,7 @@ const Cc = new Et(), Ic = [], Wd = class un extends zd {
13642
13644
  */
13643
13645
  pop(t) {
13644
13646
  const { gl: e } = this.renderer;
13645
- t && Ic.push(t._scissorRectLocal), this.getStackLength() > 0 ? this._useCurrent() : e.disable(e.SCISSOR_TEST);
13647
+ t && Cc.push(t._scissorRectLocal), this.getStackLength() > 0 ? this._useCurrent() : e.disable(e.SCISSOR_TEST);
13646
13648
  }
13647
13649
  /**
13648
13650
  * Setup renderer to use the current scissor data.
@@ -13857,7 +13859,7 @@ Kd.extension = {
13857
13859
  name: "textureGenerator"
13858
13860
  };
13859
13861
  Y.add(Kd);
13860
- const Cr = new ot(), zi = new ot();
13862
+ const Ir = new ot(), zi = new ot();
13861
13863
  class Zd {
13862
13864
  /**
13863
13865
  * @param renderer - The renderer this System works for.
@@ -13880,7 +13882,7 @@ class Zd {
13880
13882
  const s = this.renderer;
13881
13883
  this.current = t;
13882
13884
  let n, o, a;
13883
- t ? (n = t.baseTexture, a = n.resolution, e || (Cr.width = t.frame.width, Cr.height = t.frame.height, e = Cr), i || (zi.x = t.frame.x, zi.y = t.frame.y, zi.width = e.width, zi.height = e.height, i = zi), o = n.framebuffer) : (a = s.resolution, e || (Cr.width = s._view.screen.width, Cr.height = s._view.screen.height, e = Cr), i || (i = Cr, i.width = e.width, i.height = e.height));
13885
+ t ? (n = t.baseTexture, a = n.resolution, e || (Ir.width = t.frame.width, Ir.height = t.frame.height, e = Ir), i || (zi.x = t.frame.x, zi.y = t.frame.y, zi.width = e.width, zi.height = e.height, i = zi), o = n.framebuffer) : (a = s.resolution, e || (Ir.width = s._view.screen.width, Ir.height = s._view.screen.height, e = Ir), i || (i = Ir, i.width = e.width, i.height = e.height));
13884
13886
  const l = this.viewportFrame;
13885
13887
  l.x = i.x * a, l.y = i.y * a, l.width = i.width * a, l.height = i.height * a, t || (l.y = s.view.height - (l.y + l.height)), l.ceil(), this.renderer.framebuffer.bind(o, l), this.renderer.projection.update(i, e, a, !o), t ? this.renderer.mask.setMaskStack(n.maskStack) : this.renderer.mask.setMaskStack(this.defaultMaskStack), this.sourceFrame.copyFrom(e), this.destinationFrame.copyFrom(i);
13886
13888
  }
@@ -14632,7 +14634,7 @@ class Yo {
14632
14634
  this.texture = t, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type = Z.UNSIGNED_BYTE, this.internalFormat = $.RGBA, this.samplerType = 0;
14633
14635
  }
14634
14636
  }
14635
- function C1(r) {
14637
+ function I1(r) {
14636
14638
  let t;
14637
14639
  return "WebGL2RenderingContext" in globalThis && r instanceof globalThis.WebGL2RenderingContext ? t = {
14638
14640
  [r.RGB]: z.FLOAT,
@@ -14704,7 +14706,7 @@ function C1(r) {
14704
14706
  [r.DEPTH_STENCIL]: z.FLOAT
14705
14707
  }, t;
14706
14708
  }
14707
- function I1(r) {
14709
+ function C1(r) {
14708
14710
  let t;
14709
14711
  return "WebGL2RenderingContext" in globalThis && r instanceof globalThis.WebGL2RenderingContext ? t = {
14710
14712
  [Z.UNSIGNED_BYTE]: {
@@ -14823,7 +14825,7 @@ class ef {
14823
14825
  /** Sets up the renderer context and necessary buffers. */
14824
14826
  contextChange() {
14825
14827
  const t = this.gl = this.renderer.gl;
14826
- this.CONTEXT_UID = this.renderer.CONTEXT_UID, this.webGLVersion = this.renderer.context.webGLVersion, this.internalFormats = I1(t), this.samplerTypes = C1(t);
14828
+ this.CONTEXT_UID = this.renderer.CONTEXT_UID, this.webGLVersion = this.renderer.context.webGLVersion, this.internalFormats = C1(t), this.samplerTypes = I1(t);
14827
14829
  const e = t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);
14828
14830
  this.boundTextures.length = e;
14829
14831
  for (let s = 0; s < e; s++)
@@ -16246,7 +16248,7 @@ class df extends ys {
16246
16248
  */
16247
16249
  initFromArray(t, e) {
16248
16250
  for (let i = 0; i < this.length; i++)
16249
- t[i] && (t[i].castToBaseTexture ? this.addBaseTextureAt(t[i].castToBaseTexture(), i) : t[i] instanceof ys ? this.addResourceAt(t[i], i) : this.addResourceAt(Id(t[i], e), i));
16251
+ t[i] && (t[i].castToBaseTexture ? this.addBaseTextureAt(t[i].castToBaseTexture(), i) : t[i] instanceof ys ? this.addResourceAt(t[i], i) : this.addResourceAt(Cd(t[i], e), i));
16250
16252
  }
16251
16253
  /** Destroy this BaseImageResource. */
16252
16254
  dispose() {
@@ -21690,11 +21692,11 @@ ${u}`);
21690
21692
  this._parsersValidated = !0, this._parserHash = this._parsers.filter((t) => t.name).reduce((t, e) => (t[e.name] && console.warn(`[Assets] loadParser name conflict "${e.name}"`), { ...t, [e.name]: e }), {});
21691
21693
  }
21692
21694
  }
21693
- var Ce = /* @__PURE__ */ ((r) => (r[r.Low = 0] = "Low", r[r.Normal = 1] = "Normal", r[r.High = 2] = "High", r))(Ce || {});
21695
+ var Ie = /* @__PURE__ */ ((r) => (r[r.Low = 0] = "Low", r[r.Normal = 1] = "Normal", r[r.High = 2] = "High", r))(Ie || {});
21694
21696
  const Tx = ".json", Ax = "application/json", Sx = {
21695
21697
  extension: {
21696
21698
  type: V.LoadParser,
21697
- priority: Ce.Low
21699
+ priority: Ie.Low
21698
21700
  },
21699
21701
  name: "loadJson",
21700
21702
  test(r) {
@@ -21705,14 +21707,14 @@ const Tx = ".json", Ax = "application/json", Sx = {
21705
21707
  }
21706
21708
  };
21707
21709
  Y.add(Sx);
21708
- const Cx = ".txt", Ix = "text/plain", Rx = {
21710
+ const Ix = ".txt", Cx = "text/plain", Rx = {
21709
21711
  name: "loadTxt",
21710
21712
  extension: {
21711
21713
  type: V.LoadParser,
21712
- priority: Ce.Low
21714
+ priority: Ie.Low
21713
21715
  },
21714
21716
  test(r) {
21715
- return ki(r, Ix) || Sr(r, Cx);
21717
+ return ki(r, Cx) || Sr(r, Ix);
21716
21718
  },
21717
21719
  async load(r) {
21718
21720
  return await (await W.ADAPTER.fetch(r)).text();
@@ -21755,7 +21757,7 @@ function Lx(r) {
21755
21757
  const Nx = {
21756
21758
  extension: {
21757
21759
  type: V.LoadParser,
21758
- priority: Ce.Low
21760
+ priority: Ie.Low
21759
21761
  },
21760
21762
  name: "loadWebFont",
21761
21763
  test(r) {
@@ -21835,14 +21837,14 @@ const kx = `(function() {
21835
21837
  };
21836
21838
  })();
21837
21839
  `;
21838
- let Ci = null;
21840
+ let Ii = null;
21839
21841
  class bf {
21840
21842
  constructor() {
21841
- Ci || (Ci = URL.createObjectURL(new Blob([kx], { type: "application/javascript" }))), this.worker = new Worker(Ci);
21843
+ Ii || (Ii = URL.createObjectURL(new Blob([kx], { type: "application/javascript" }))), this.worker = new Worker(Ii);
21842
21844
  }
21843
21845
  }
21844
21846
  bf.revokeObjectURL = function() {
21845
- Ci && (URL.revokeObjectURL(Ci), Ci = null);
21847
+ Ii && (URL.revokeObjectURL(Ii), Ii = null);
21846
21848
  };
21847
21849
  let Fc = 0, Zo;
21848
21850
  class Gx {
@@ -21926,7 +21928,7 @@ const ro = {
21926
21928
  name: "loadTextures",
21927
21929
  extension: {
21928
21930
  type: V.LoadParser,
21929
- priority: Ce.High
21931
+ priority: Ie.High
21930
21932
  },
21931
21933
  config: {
21932
21934
  preferWorkers: !0,
@@ -21957,7 +21959,7 @@ Y.add(ro);
21957
21959
  const Vx = ".svg", zx = "image/svg+xml", Wx = {
21958
21960
  extension: {
21959
21961
  type: V.LoadParser,
21960
- priority: Ce.High
21962
+ priority: Ie.High
21961
21963
  },
21962
21964
  name: "loadSVG",
21963
21965
  test(r) {
@@ -21990,7 +21992,7 @@ const jx = [".mp4", ".m4v", ".webm", ".ogv"], Yx = [
21990
21992
  name: "loadVideo",
21991
21993
  extension: {
21992
21994
  type: V.LoadParser,
21993
- priority: Ce.High
21995
+ priority: Ie.High
21994
21996
  },
21995
21997
  config: {
21996
21998
  defaultAutoPlay: !0,
@@ -23146,12 +23148,12 @@ function Ab(r) {
23146
23148
  const x = kn[m];
23147
23149
  let g = 0, v = s, w = i;
23148
23150
  for (let T = 0; T < n; T++) {
23149
- const C = Math.max(1, v + 3 & -4), D = Math.max(1, w + 3 & -4), A = C * D * x;
23151
+ const I = Math.max(1, v + 3 & -4), D = Math.max(1, w + 3 & -4), A = I * D * x;
23150
23152
  g += A, v = v >>> 1, w = w >>> 1;
23151
23153
  }
23152
- let I = y;
23154
+ let C = y;
23153
23155
  for (let T = 0; T < p; T++)
23154
- _.push(new Uint8Array(r, I, g)), I += g;
23156
+ _.push(new Uint8Array(r, C, g)), C += g;
23155
23157
  }
23156
23158
  return _.map((x) => new Xr(x, {
23157
23159
  format: m,
@@ -23184,7 +23186,7 @@ const Gc = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], Sb = 67305985, me
23184
23186
  [Z.UNSIGNED_INT]: 4,
23185
23187
  [Z.FLOAT]: 4,
23186
23188
  [Z.HALF_FLOAT]: 8
23187
- }, Cb = {
23189
+ }, Ib = {
23188
23190
  [$.RGBA]: 4,
23189
23191
  [$.RGB]: 3,
23190
23192
  [$.RG]: 2,
@@ -23192,7 +23194,7 @@ const Gc = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], Sb = 67305985, me
23192
23194
  [$.LUMINANCE]: 1,
23193
23195
  [$.LUMINANCE_ALPHA]: 2,
23194
23196
  [$.ALPHA]: 1
23195
- }, Ib = {
23197
+ }, Cb = {
23196
23198
  [Z.UNSIGNED_SHORT_4_4_4_4]: 2,
23197
23199
  [Z.UNSIGNED_SHORT_5_5_5_1]: 2,
23198
23200
  [Z.UNSIGNED_SHORT_5_6_5]: 2
@@ -23212,10 +23214,10 @@ function Rb(r, t, e = !1) {
23212
23214
  let v = l * h;
23213
23215
  n === 0 && (v = y * x);
23214
23216
  let w;
23215
- if (n !== 0 ? $c[n] ? w = $c[n] * Cb[o] : w = Ib[n] : w = kn[a], w === void 0)
23217
+ if (n !== 0 ? $c[n] ? w = $c[n] * Ib[o] : w = Cb[n] : w = kn[a], w === void 0)
23216
23218
  throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
23217
- const I = e ? Bb(i, p, s) : null;
23218
- let T = v * w, C = l, D = h, A = y, P = x, R = sl + p;
23219
+ const C = e ? Bb(i, p, s) : null;
23220
+ let T = v * w, I = l, D = h, A = y, P = x, R = sl + p;
23219
23221
  for (let b = 0; b < f; b++) {
23220
23222
  const M = i.getUint32(R, s);
23221
23223
  let S = R + 4;
@@ -23224,12 +23226,12 @@ function Rb(r, t, e = !1) {
23224
23226
  L || (L = g[U] = new Array(f)), L[b] = {
23225
23227
  levelID: b,
23226
23228
  // don't align mipWidth when texture not compressed! (glType not zero)
23227
- levelWidth: f > 1 || n !== 0 ? C : A,
23229
+ levelWidth: f > 1 || n !== 0 ? I : A,
23228
23230
  levelHeight: f > 1 || n !== 0 ? D : P,
23229
23231
  levelBuffer: new Uint8Array(t, S, T)
23230
23232
  }, S += T;
23231
23233
  }
23232
- R += M + 4, R = R % 4 !== 0 ? R + 4 - R % 4 : R, C = C >> 1 || 1, D = D >> 1 || 1, A = C + m - 1 & ~(m - 1), P = D + _ - 1 & ~(_ - 1), T = A * P * w;
23234
+ R += M + 4, R = R % 4 !== 0 ? R + 4 - R % 4 : R, I = I >> 1 || 1, D = D >> 1 || 1, A = I + m - 1 & ~(m - 1), P = D + _ - 1 & ~(_ - 1), T = A * P * w;
23233
23235
  }
23234
23236
  return n !== 0 ? {
23235
23237
  uncompressed: g.map((b) => {
@@ -23258,7 +23260,7 @@ function Rb(r, t, e = !1) {
23258
23260
  format: S ? Mb(o) : o
23259
23261
  };
23260
23262
  }),
23261
- kvData: I
23263
+ kvData: C
23262
23264
  } : {
23263
23265
  compressed: g.map((b) => new Xr(null, {
23264
23266
  format: a,
@@ -23267,7 +23269,7 @@ function Rb(r, t, e = !1) {
23267
23269
  levels: f,
23268
23270
  levelBuffers: b
23269
23271
  })),
23270
- kvData: I
23272
+ kvData: C
23271
23273
  };
23272
23274
  }
23273
23275
  function Pb(r, t) {
@@ -23320,7 +23322,7 @@ function Bb(r, t, e) {
23320
23322
  const Db = {
23321
23323
  extension: {
23322
23324
  type: V.LoadParser,
23323
- priority: Ce.High
23325
+ priority: Ie.High
23324
23326
  },
23325
23327
  name: "loadDDS",
23326
23328
  test(r) {
@@ -23346,7 +23348,7 @@ Y.add(Db);
23346
23348
  const Ob = {
23347
23349
  extension: {
23348
23350
  type: V.LoadParser,
23349
- priority: Ce.High
23351
+ priority: Ie.High
23350
23352
  },
23351
23353
  name: "loadKTX",
23352
23354
  test(r) {
@@ -23724,7 +23726,7 @@ class Xc {
23724
23726
  const a = o[o.length - 2], l = o[o.length - 1] - e, h = a - t, c = s - e, u = i - t, d = Math.abs(l * u - h * c);
23725
23727
  if (d < 1e-8 || n === 0)
23726
23728
  return (o[o.length - 2] !== t || o[o.length - 1] !== e) && o.push(t, e), null;
23727
- const f = l * l + h * h, p = c * c + u * u, m = l * c + h * u, _ = n * Math.sqrt(f) / d, y = n * Math.sqrt(p) / d, x = _ * m / f, g = y * m / p, v = _ * u + y * h, w = _ * c + y * l, I = h * (y + x), T = l * (y + x), C = u * (_ + g), D = c * (_ + g), A = Math.atan2(T - w, I - v), P = Math.atan2(D - w, C - v);
23729
+ const f = l * l + h * h, p = c * c + u * u, m = l * c + h * u, _ = n * Math.sqrt(f) / d, y = n * Math.sqrt(p) / d, x = _ * m / f, g = y * m / p, v = _ * u + y * h, w = _ * c + y * l, C = h * (y + x), T = l * (y + x), I = u * (_ + g), D = c * (_ + g), A = Math.atan2(T - w, C - v), P = Math.atan2(D - w, I - v);
23728
23730
  return {
23729
23731
  cx: v + t,
23730
23732
  cy: w + e,
@@ -23756,10 +23758,10 @@ class Xc {
23756
23758
  Math.ceil(Math.abs(c) / Mn) * 40
23757
23759
  ), d = c / (u * 2), f = d * 2, p = Math.cos(d), m = Math.sin(d), _ = u - 1, y = _ % 1 / _;
23758
23760
  for (let x = 0; x <= _; ++x) {
23759
- const g = x + y * x, v = d + o + f * g, w = Math.cos(v), I = -Math.sin(v);
23761
+ const g = x + y * x, v = d + o + f * g, w = Math.cos(v), C = -Math.sin(v);
23760
23762
  h.push(
23761
- (p * w + m * I) * n + i,
23762
- (p * -I + m * w) * n + s
23763
+ (p * w + m * C) * n + i,
23764
+ (p * -C + m * w) * n + s
23763
23765
  );
23764
23766
  }
23765
23767
  }
@@ -23807,8 +23809,8 @@ class Dl {
23807
23809
  */
23808
23810
  static curveLength(t, e, i, s, n, o, a, l) {
23809
23811
  let h = 0, c = 0, u = 0, d = 0, f = 0, p = 0, m = 0, _ = 0, y = 0, x = 0, g = 0, v = t, w = e;
23810
- for (let I = 1; I <= 10; ++I)
23811
- c = I / 10, u = c * c, d = u * c, f = 1 - c, p = f * f, m = p * f, _ = m * t + 3 * p * c * i + 3 * f * u * n + d * a, y = m * e + 3 * p * c * s + 3 * f * u * o + d * l, x = v - _, g = w - y, v = _, w = y, h += Math.sqrt(x * x + g * g);
23812
+ for (let C = 1; C <= 10; ++C)
23813
+ c = C / 10, u = c * c, d = u * c, f = 1 - c, p = f * f, m = p * f, _ = m * t + 3 * p * c * i + 3 * f * u * n + d * a, y = m * e + 3 * p * c * s + 3 * f * u * o + d * l, x = v - _, g = w - y, v = _, w = y, h += Math.sqrt(x * x + g * g);
23812
23814
  return h;
23813
23815
  }
23814
23816
  /**
@@ -23851,7 +23853,7 @@ function Vc(r, t, e, i, s, n, o, a) {
23851
23853
  y
23852
23854
  ), 2;
23853
23855
  }
23854
- function Ir(r, t, e, i, s, n, o, a) {
23856
+ function Cr(r, t, e, i, s, n, o, a) {
23855
23857
  const l = e - r, h = i - t;
23856
23858
  let c = Math.atan2(l, h), u = Math.atan2(s - r, n - t);
23857
23859
  a && c < u ? c += Math.PI * 2 : !a && c > u && (u += Math.PI * 2);
@@ -23915,38 +23917,38 @@ function Hb(r, t) {
23915
23917
  const c = t.points, u = i.length / 2;
23916
23918
  let d = i.length;
23917
23919
  const f = c.length / 2, p = n.width / 2, m = p * p, _ = n.miterLimit * n.miterLimit;
23918
- let y = i[0], x = i[1], g = i[2], v = i[3], w = 0, I = 0, T = -(x - v), C = y - g, D = 0, A = 0, P = Math.sqrt(T * T + C * C);
23919
- T /= P, C /= P, T *= p, C *= p;
23920
+ let y = i[0], x = i[1], g = i[2], v = i[3], w = 0, C = 0, T = -(x - v), I = y - g, D = 0, A = 0, P = Math.sqrt(T * T + I * I);
23921
+ T /= P, I /= P, T *= p, I *= p;
23920
23922
  const R = n.alignment, b = (1 - R) * 2, M = R * 2;
23921
- l || (n.cap === vr.ROUND ? d += Ir(
23923
+ l || (n.cap === vr.ROUND ? d += Cr(
23922
23924
  y - T * (b - M) * 0.5,
23923
- x - C * (b - M) * 0.5,
23925
+ x - I * (b - M) * 0.5,
23924
23926
  y - T * b,
23925
- x - C * b,
23927
+ x - I * b,
23926
23928
  y + T * M,
23927
- x + C * M,
23929
+ x + I * M,
23928
23930
  c,
23929
23931
  !0
23930
- ) + 2 : n.cap === vr.SQUARE && (d += Vc(y, x, T, C, b, M, !0, c))), c.push(
23932
+ ) + 2 : n.cap === vr.SQUARE && (d += Vc(y, x, T, I, b, M, !0, c))), c.push(
23931
23933
  y - T * b,
23932
- x - C * b,
23934
+ x - I * b,
23933
23935
  y + T * M,
23934
- x + C * M
23936
+ x + I * M
23935
23937
  );
23936
23938
  for (let L = 1; L < u - 1; ++L) {
23937
- y = i[(L - 1) * 2], x = i[(L - 1) * 2 + 1], g = i[L * 2], v = i[L * 2 + 1], w = i[(L + 1) * 2], I = i[(L + 1) * 2 + 1], T = -(x - v), C = y - g, P = Math.sqrt(T * T + C * C), T /= P, C /= P, T *= p, C *= p, D = -(v - I), A = g - w, P = Math.sqrt(D * D + A * A), D /= P, A /= P, D *= p, A *= p;
23938
- const H = g - y, Q = x - v, F = g - w, k = I - v, K = H * F + Q * k, st = Q * F - k * H, G = st < 0;
23939
+ y = i[(L - 1) * 2], x = i[(L - 1) * 2 + 1], g = i[L * 2], v = i[L * 2 + 1], w = i[(L + 1) * 2], C = i[(L + 1) * 2 + 1], T = -(x - v), I = y - g, P = Math.sqrt(T * T + I * I), T /= P, I /= P, T *= p, I *= p, D = -(v - C), A = g - w, P = Math.sqrt(D * D + A * A), D /= P, A /= P, D *= p, A *= p;
23940
+ const H = g - y, Q = x - v, F = g - w, k = C - v, K = H * F + Q * k, st = Q * F - k * H, G = st < 0;
23939
23941
  if (Math.abs(st) < 1e-3 * Math.abs(K)) {
23940
23942
  c.push(
23941
23943
  g - T * b,
23942
- v - C * b,
23944
+ v - I * b,
23943
23945
  g + T * M,
23944
- v + C * M
23945
- ), K >= 0 && (n.join === le.ROUND ? d += Ir(
23946
+ v + I * M
23947
+ ), K >= 0 && (n.join === le.ROUND ? d += Cr(
23946
23948
  g,
23947
23949
  v,
23948
23950
  g - T * b,
23949
- v - C * b,
23951
+ v - I * b,
23950
23952
  g - D * b,
23951
23953
  v - A * b,
23952
23954
  c,
@@ -23959,7 +23961,7 @@ function Hb(r, t) {
23959
23961
  ));
23960
23962
  continue;
23961
23963
  }
23962
- const X = (-T + y) * (-C + v) - (-T + g) * (-C + x), tt = (-D + w) * (-A + v) - (-D + g) * (-A + I), lt = (H * tt - F * X) / st, N = (k * X - Q * tt) / st, O = (lt - g) * (lt - g) + (N - v) * (N - v), xt = g + (lt - g) * b, mt = v + (N - v) * b, _t = g - (lt - g) * M, vt = v - (N - v) * M, Ie = Math.min(H * H + Q * Q, F * F + k * k), Re = G ? b : M, Gi = Ie + Re * Re * m, jf = O <= Gi;
23964
+ const X = (-T + y) * (-I + v) - (-T + g) * (-I + x), tt = (-D + w) * (-A + v) - (-D + g) * (-A + C), lt = (H * tt - F * X) / st, N = (k * X - Q * tt) / st, O = (lt - g) * (lt - g) + (N - v) * (N - v), xt = g + (lt - g) * b, mt = v + (N - v) * b, _t = g - (lt - g) * M, vt = v - (N - v) * M, Ce = Math.min(H * H + Q * Q, F * F + k * k), Re = G ? b : M, Gi = Ce + Re * Re * m, jf = O <= Gi;
23963
23965
  let As = n.join;
23964
23966
  if (As === le.MITER && O / m > _ && (As = le.BEVEL), jf)
23965
23967
  switch (As) {
@@ -23978,7 +23980,7 @@ function Hb(r, t) {
23978
23980
  mt,
23979
23981
  // inner miter point
23980
23982
  g + T * M,
23981
- v + C * M,
23983
+ v + I * M,
23982
23984
  // first segment's outer vertex
23983
23985
  xt,
23984
23986
  mt,
@@ -23987,7 +23989,7 @@ function Hb(r, t) {
23987
23989
  v + A * M
23988
23990
  ) : c.push(
23989
23991
  g - T * b,
23990
- v - C * b,
23992
+ v - I * b,
23991
23993
  // first segment's inner vertex
23992
23994
  _t,
23993
23995
  vt,
@@ -24005,12 +24007,12 @@ function Hb(r, t) {
24005
24007
  xt,
24006
24008
  mt,
24007
24009
  g + T * M,
24008
- v + C * M
24009
- ), d += Ir(
24010
+ v + I * M
24011
+ ), d += Cr(
24010
24012
  g,
24011
24013
  v,
24012
24014
  g + T * M,
24013
- v + C * M,
24015
+ v + I * M,
24014
24016
  g + D * M,
24015
24017
  v + A * M,
24016
24018
  c,
@@ -24022,14 +24024,14 @@ function Hb(r, t) {
24022
24024
  v + A * M
24023
24025
  )) : (c.push(
24024
24026
  g - T * b,
24025
- v - C * b,
24027
+ v - I * b,
24026
24028
  _t,
24027
24029
  vt
24028
- ), d += Ir(
24030
+ ), d += Cr(
24029
24031
  g,
24030
24032
  v,
24031
24033
  g - T * b,
24032
- v - C * b,
24034
+ v - I * b,
24033
24035
  g - D * b,
24034
24036
  v - A * b,
24035
24037
  c,
@@ -24046,10 +24048,10 @@ function Hb(r, t) {
24046
24048
  else {
24047
24049
  switch (c.push(
24048
24050
  g - T * b,
24049
- v - C * b,
24051
+ v - I * b,
24050
24052
  // first segment's inner vertex
24051
24053
  g + T * M,
24052
- v + C * M
24054
+ v + I * M
24053
24055
  ), As) {
24054
24056
  case le.MITER: {
24055
24057
  G ? c.push(
@@ -24068,20 +24070,20 @@ function Hb(r, t) {
24068
24070
  break;
24069
24071
  }
24070
24072
  case le.ROUND: {
24071
- G ? d += Ir(
24073
+ G ? d += Cr(
24072
24074
  g,
24073
24075
  v,
24074
24076
  g + T * M,
24075
- v + C * M,
24077
+ v + I * M,
24076
24078
  g + D * M,
24077
24079
  v + A * M,
24078
24080
  c,
24079
24081
  !0
24080
- ) + 2 : d += Ir(
24082
+ ) + 2 : d += Cr(
24081
24083
  g,
24082
24084
  v,
24083
24085
  g - T * b,
24084
- v - C * b,
24086
+ v - I * b,
24085
24087
  g - D * b,
24086
24088
  v - A * b,
24087
24089
  c,
@@ -24099,24 +24101,24 @@ function Hb(r, t) {
24099
24101
  ), d += 2;
24100
24102
  }
24101
24103
  }
24102
- y = i[(u - 2) * 2], x = i[(u - 2) * 2 + 1], g = i[(u - 1) * 2], v = i[(u - 1) * 2 + 1], T = -(x - v), C = y - g, P = Math.sqrt(T * T + C * C), T /= P, C /= P, T *= p, C *= p, c.push(
24104
+ y = i[(u - 2) * 2], x = i[(u - 2) * 2 + 1], g = i[(u - 1) * 2], v = i[(u - 1) * 2 + 1], T = -(x - v), I = y - g, P = Math.sqrt(T * T + I * I), T /= P, I /= P, T *= p, I *= p, c.push(
24103
24105
  g - T * b,
24104
- v - C * b,
24106
+ v - I * b,
24105
24107
  g + T * M,
24106
- v + C * M
24107
- ), l || (n.cap === vr.ROUND ? d += Ir(
24108
+ v + I * M
24109
+ ), l || (n.cap === vr.ROUND ? d += Cr(
24108
24110
  g - T * (b - M) * 0.5,
24109
- v - C * (b - M) * 0.5,
24111
+ v - I * (b - M) * 0.5,
24110
24112
  g - T * b,
24111
- v - C * b,
24113
+ v - I * b,
24112
24114
  g + T * M,
24113
- v + C * M,
24115
+ v + I * M,
24114
24116
  c,
24115
24117
  !1
24116
- ) + 2 : n.cap === vr.SQUARE && (d += Vc(g, v, T, C, b, M, !1, c)));
24118
+ ) + 2 : n.cap === vr.SQUARE && (d += Vc(g, v, T, I, b, M, !1, c)));
24117
24119
  const S = t.indices, U = Di.epsilon * Di.epsilon;
24118
24120
  for (let L = f; L < d + f - 2; ++L)
24119
- y = c[L * 2], x = c[L * 2 + 1], g = c[(L + 1) * 2], v = c[(L + 1) * 2 + 1], w = c[(L + 2) * 2], I = c[(L + 2) * 2 + 1], !(Math.abs(y * (v - I) + g * (I - x) + w * (x - v)) < U) && S.push(L, L + 1, L + 2);
24121
+ y = c[L * 2], x = c[L * 2 + 1], g = c[(L + 1) * 2], v = c[(L + 1) * 2 + 1], w = c[(L + 2) * 2], C = c[(L + 2) * 2 + 1], !(Math.abs(y * (v - C) + g * (C - x) + w * (x - v)) < U) && S.push(L, L + 1, L + 2);
24120
24122
  }
24121
24123
  function Xb(r, t) {
24122
24124
  let e = 0;
@@ -25116,7 +25118,7 @@ class zb {
25116
25118
  (!this.data || this.data.length !== e.length) && (this.data = new Float32Array(e.length)), this.uvMatrix.multiplyUvs(e, this.data), this._updateID++;
25117
25119
  }
25118
25120
  }
25119
- const ea = new gt(), jc = new Hr(), Cf = class If extends Ae {
25121
+ const ea = new gt(), jc = new Hr(), If = class Cf extends Ae {
25120
25122
  /**
25121
25123
  * @param geometry - The geometry the mesh will use.
25122
25124
  * @param {PIXI.MeshMaterial} shader - The shader the mesh will use.
@@ -25217,7 +25219,7 @@ const ea = new gt(), jc = new Hr(), Cf = class If extends Ae {
25217
25219
  */
25218
25220
  _render(t) {
25219
25221
  const e = this.geometry.buffers[0].data;
25220
- this.shader.batchable && this.drawMode === ke.TRIANGLES && e.length < If.BATCHABLE_SIZE * 2 ? this._renderToBatch(t) : this._renderDefault(t);
25222
+ this.shader.batchable && this.drawMode === ke.TRIANGLES && e.length < Cf.BATCHABLE_SIZE * 2 ? this._renderToBatch(t) : this._renderDefault(t);
25221
25223
  }
25222
25224
  /**
25223
25225
  * Standard non-batching way of rendering.
@@ -25288,8 +25290,8 @@ const ea = new gt(), jc = new Hr(), Cf = class If extends Ae {
25288
25290
  super.destroy(t), this._cachedTexture && (this._cachedTexture.destroy(), this._cachedTexture = null), this.geometry = null, this.shader = null, this.state = null, this.uvs = null, this.indices = null, this.vertexData = null;
25289
25291
  }
25290
25292
  };
25291
- Cf.BATCHABLE_SIZE = 100;
25292
- let Yc = Cf;
25293
+ If.BATCHABLE_SIZE = 100;
25294
+ let Yc = If;
25293
25295
  class Wb extends wr {
25294
25296
  /**
25295
25297
  * @param {Float32Array|number[]} [vertices] - Positional data on geometry.
@@ -25831,18 +25833,18 @@ const tn = {
25831
25833
  if (o !== "" && (a += q.addLine(o), o = "", n = 0), q.canBreakWords(y, e.breakWords)) {
25832
25834
  const g = q.wordWrapSplit(y);
25833
25835
  for (let v = 0; v < g.length; v++) {
25834
- let w = g[v], I = w, T = 1;
25836
+ let w = g[v], C = w, T = 1;
25835
25837
  for (; g[v + T]; ) {
25836
25838
  const D = g[v + T];
25837
- if (!q.canBreakChars(I, D, y, v, e.breakWords))
25839
+ if (!q.canBreakChars(C, D, y, v, e.breakWords))
25838
25840
  w += D;
25839
25841
  else
25840
25842
  break;
25841
- I = D, T++;
25843
+ C = D, T++;
25842
25844
  }
25843
25845
  v += T - 1;
25844
- const C = q.getFromCache(w, h, l, s);
25845
- C + n > p && (a += q.addLine(o), f = !1, o = "", n = 0), o += w, n += C;
25846
+ const I = q.getFromCache(w, h, l, s);
25847
+ I + n > p && (a += q.addLine(o), f = !1, o = "", n = 0), o += w, n += I;
25846
25848
  }
25847
25849
  } else {
25848
25850
  o.length > 0 && (a += q.addLine(o), o = "", n = 0);
@@ -26640,8 +26642,8 @@ const Qb = {
26640
26642
  const _ = e.dropShadow && m === 0, y = _ ? Math.ceil(Math.max(1, o) + e.padding * 2) : 0, x = y * this._resolution;
26641
26643
  if (_) {
26642
26644
  i.fillStyle = "black", i.strokeStyle = "black";
26643
- const v = e.dropShadowColor, w = e.dropShadowBlur * this._resolution, I = e.dropShadowDistance * this._resolution;
26644
- i.shadowColor = bt.shared.setValue(v).setAlpha(e.dropShadowAlpha).toRgbaString(), i.shadowBlur = w, i.shadowOffsetX = Math.cos(e.dropShadowAngle) * I, i.shadowOffsetY = Math.sin(e.dropShadowAngle) * I + x;
26645
+ const v = e.dropShadowColor, w = e.dropShadowBlur * this._resolution, C = e.dropShadowDistance * this._resolution;
26646
+ i.shadowColor = bt.shared.setValue(v).setAlpha(e.dropShadowAlpha).toRgbaString(), i.shadowBlur = w, i.shadowOffsetX = Math.cos(e.dropShadowAngle) * C, i.shadowOffsetY = Math.sin(e.dropShadowAngle) * C + x;
26645
26647
  } else
26646
26648
  i.fillStyle = this._generateFillStyle(e, a, s), i.strokeStyle = e.stroke, i.shadowColor = "black", i.shadowBlur = 0, i.shadowOffsetX = 0, i.shadowOffsetY = 0;
26647
26649
  let g = (l - u.fontSize) / 2;
@@ -26756,11 +26758,11 @@ const Qb = {
26756
26758
  f + 1 < e.length && x < y && (g = (y + x) / 2);
26757
26759
  const v = (g - _) / h;
26758
26760
  for (let w = 0; w < c.length; w++) {
26759
- let I = 0;
26760
- typeof u[w] == "number" ? I = u[w] : I = w / c.length;
26761
+ let C = 0;
26762
+ typeof u[w] == "number" ? C = u[w] : C = w / c.length;
26761
26763
  let T = Math.min(1, Math.max(
26762
26764
  0,
26763
- _ / h + I * v
26765
+ _ / h + C * v
26764
26766
  ));
26765
26767
  T = Number(T.toFixed(5)), n.addColorStop(T, c[w]);
26766
26768
  }
@@ -27390,7 +27392,7 @@ const mw = {
27390
27392
  name: "spritesheetLoader",
27391
27393
  extension: {
27392
27394
  type: V.LoadParser,
27393
- priority: Ce.Normal
27395
+ priority: Ie.Normal
27394
27396
  },
27395
27397
  async testParse(r, t) {
27396
27398
  return kt.extname(t.src).toLowerCase() === ".json" && !!r.frames;
@@ -27821,26 +27823,26 @@ const hr = class Fe {
27821
27823
  };
27822
27824
  let p = 0, m = 0, _, y, x, g = 0;
27823
27825
  const v = [];
27824
- for (let I = 0; I < c.length; I++) {
27826
+ for (let C = 0; C < c.length; C++) {
27825
27827
  _ || (_ = W.ADAPTER.createCanvas(), _.width = a, _.height = l, y = _.getContext("2d"), x = new it(_, { resolution: o, ...h }), v.push(new j(x)), f.page.push({
27826
27828
  id: v.length - 1,
27827
27829
  file: ""
27828
27830
  }));
27829
- const T = c[I], C = fr.measureText(T, u, !1, _), D = C.width, A = Math.ceil(C.height), P = Math.ceil((u.fontStyle === "italic" ? 2 : 1) * D);
27831
+ const T = c[C], I = fr.measureText(T, u, !1, _), D = I.width, A = Math.ceil(I.height), P = Math.ceil((u.fontStyle === "italic" ? 2 : 1) * D);
27830
27832
  if (m >= l - A * o) {
27831
27833
  if (m === 0)
27832
27834
  throw new Error(`[BitmapFont] textureHeight ${l}px is too small (fontFamily: '${u.fontFamily}', fontSize: ${u.fontSize}px, char: '${T}')`);
27833
- --I, _ = null, y = null, x = null, m = 0, p = 0, g = 0;
27835
+ --C, _ = null, y = null, x = null, m = 0, p = 0, g = 0;
27834
27836
  continue;
27835
27837
  }
27836
- if (g = Math.max(A + C.fontProperties.descent, g), P * o + p >= d) {
27838
+ if (g = Math.max(A + I.fontProperties.descent, g), P * o + p >= d) {
27837
27839
  if (p === 0)
27838
27840
  throw new Error(`[BitmapFont] textureWidth ${a}px is too small (fontFamily: '${u.fontFamily}', fontSize: ${u.fontSize}px, char: '${T}')`);
27839
- --I, m += g * o, m = Math.ceil(m), p = 0, g = 0;
27841
+ --C, m += g * o, m = Math.ceil(m), p = 0, g = 0;
27840
27842
  continue;
27841
27843
  }
27842
- _w(_, y, C, p, m, o, u);
27843
- const R = yn(C.text);
27844
+ _w(_, y, I, p, m, o, u);
27845
+ const R = yn(I.text);
27844
27846
  f.char.push({
27845
27847
  id: R,
27846
27848
  page: v.length - 1,
@@ -27854,12 +27856,12 @@ const hr = class Fe {
27854
27856
  }), p += (P + 2 * n) * o, p = Math.ceil(p);
27855
27857
  }
27856
27858
  if (!(i != null && i.skipKerning))
27857
- for (let I = 0, T = c.length; I < T; I++) {
27858
- const C = c[I];
27859
+ for (let C = 0, T = c.length; C < T; C++) {
27860
+ const I = c[C];
27859
27861
  for (let D = 0; D < T; D++) {
27860
- const A = c[D], P = y.measureText(C).width, R = y.measureText(A).width, b = y.measureText(C + A).width - (P + R);
27862
+ const A = c[D], P = y.measureText(I).width, R = y.measureText(A).width, b = y.measureText(I + A).width - (P + R);
27861
27863
  b && f.kerning.push({
27862
- first: yn(C),
27864
+ first: yn(I),
27863
27865
  second: yn(A),
27864
27866
  amount: b
27865
27867
  });
@@ -28011,16 +28013,16 @@ const Qc = [], tu = [], eu = [], ww = class $f extends Ae {
28011
28013
  const w = h[h.length - 1];
28012
28014
  w !== "\r" && w !== `
28013
28015
  ` && (/(?:\s)/.test(w) && (f = y), o.push(f), p = Math.max(p, f), a.push(-1));
28014
- const I = [];
28016
+ const C = [];
28015
28017
  for (let R = 0; R <= m; R++) {
28016
28018
  let b = 0;
28017
- this._align === "right" ? b = p - o[R] : this._align === "center" ? b = (p - o[R]) / 2 : this._align === "justify" && (b = a[R] < 0 ? 0 : (p - o[R]) / a[R]), I.push(b);
28019
+ this._align === "right" ? b = p - o[R] : this._align === "center" ? b = (p - o[R]) / 2 : this._align === "justify" && (b = a[R] < 0 ? 0 : (p - o[R]) / a[R]), C.push(b);
28018
28020
  }
28019
- const T = n.length, C = {}, D = [], A = this._activePagesMeshData;
28021
+ const T = n.length, I = {}, D = [], A = this._activePagesMeshData;
28020
28022
  u.push(...A);
28021
28023
  for (let R = 0; R < T; R++) {
28022
28024
  const b = n[R].texture, M = b.baseTexture.uid;
28023
- if (!C[M]) {
28025
+ if (!I[M]) {
28024
28026
  let S = u.pop();
28025
28027
  if (!S) {
28026
28028
  const L = new Wb();
@@ -28044,17 +28046,17 @@ const Qc = [], tu = [], eu = [], ww = class $f extends Ae {
28044
28046
  }
28045
28047
  S.index = 0, S.indexCount = 0, S.vertexCount = 0, S.uvsCount = 0, S.total = 0;
28046
28048
  const { _textureCache: U } = this;
28047
- U[M] = U[M] || new j(b.baseTexture), S.mesh.texture = U[M], S.mesh.tint = this._tintColor.value, D.push(S), C[M] = S;
28049
+ U[M] = U[M] || new j(b.baseTexture), S.mesh.texture = U[M], S.mesh.tint = this._tintColor.value, D.push(S), I[M] = S;
28048
28050
  }
28049
- C[M].total++;
28051
+ I[M].total++;
28050
28052
  }
28051
28053
  for (let R = 0; R < A.length; R++)
28052
28054
  D.includes(A[R]) || this.removeChild(A[R].mesh);
28053
28055
  for (let R = 0; R < D.length; R++)
28054
28056
  D[R].mesh.parent !== this && this.addChild(D[R].mesh);
28055
28057
  this._activePagesMeshData = D;
28056
- for (const R in C) {
28057
- const b = C[R], M = b.total;
28058
+ for (const R in I) {
28059
+ const b = I[R], M = b.total;
28058
28060
  if (!(((P = b.indices) == null ? void 0 : P.length) > 6 * M) || b.vertices.length < Yc.BATCHABLE_SIZE * 2)
28059
28061
  b.vertices = new Float32Array(4 * 2 * M), b.uvs = new Float32Array(4 * 2 * M), b.indices = new Uint16Array(6 * M);
28060
28062
  else {
@@ -28066,14 +28068,14 @@ const Qc = [], tu = [], eu = [], ww = class $f extends Ae {
28066
28068
  }
28067
28069
  for (let R = 0; R < T; R++) {
28068
28070
  const b = n[R];
28069
- let M = b.position.x + I[b.line] * (this._align === "justify" ? b.prevSpaces : 1);
28071
+ let M = b.position.x + C[b.line] * (this._align === "justify" ? b.prevSpaces : 1);
28070
28072
  this._roundPixels && (M = Math.round(M));
28071
- const S = M * i, U = b.position.y * i, L = b.texture, H = C[L.baseTexture.uid], Q = L.frame, F = L._uvs, k = H.index++;
28073
+ const S = M * i, U = b.position.y * i, L = b.texture, H = I[L.baseTexture.uid], Q = L.frame, F = L._uvs, k = H.index++;
28072
28074
  H.indices[k * 6 + 0] = 0 + k * 4, H.indices[k * 6 + 1] = 1 + k * 4, H.indices[k * 6 + 2] = 2 + k * 4, H.indices[k * 6 + 3] = 0 + k * 4, H.indices[k * 6 + 4] = 2 + k * 4, H.indices[k * 6 + 5] = 3 + k * 4, H.vertices[k * 8 + 0] = S, H.vertices[k * 8 + 1] = U, H.vertices[k * 8 + 2] = S + Q.width * i, H.vertices[k * 8 + 3] = U, H.vertices[k * 8 + 4] = S + Q.width * i, H.vertices[k * 8 + 5] = U + Q.height * i, H.vertices[k * 8 + 6] = S, H.vertices[k * 8 + 7] = U + Q.height * i, H.uvs[k * 8 + 0] = F.x0, H.uvs[k * 8 + 1] = F.y0, H.uvs[k * 8 + 2] = F.x1, H.uvs[k * 8 + 3] = F.y1, H.uvs[k * 8 + 4] = F.x2, H.uvs[k * 8 + 5] = F.y2, H.uvs[k * 8 + 6] = F.x3, H.uvs[k * 8 + 7] = F.y3;
28073
28075
  }
28074
28076
  this._textWidth = p * i, this._textHeight = (s.y + t.lineHeight) * i;
28075
- for (const R in C) {
28076
- const b = C[R];
28077
+ for (const R in I) {
28078
+ const b = I[R];
28077
28079
  if (this.anchor.x !== 0 || this.anchor.y !== 0) {
28078
28080
  let L = 0;
28079
28081
  const H = this._textWidth * this.anchor.x, Q = this._textHeight * this.anchor.y;
@@ -28270,7 +28272,7 @@ ww.styleDefaults = {
28270
28272
  const Ew = [".xml", ".fnt"], Tw = {
28271
28273
  extension: {
28272
28274
  type: V.LoadParser,
28273
- priority: Ce.Normal
28275
+ priority: Ie.Normal
28274
28276
  },
28275
28277
  name: "loadBitmapFont",
28276
28278
  test(r) {
@@ -28770,16 +28772,16 @@ rn.defaultDestroyOptions = {
28770
28772
  rn.defaultMaxWidth = 2024, /** Default maxHeight, set at construction */
28771
28773
  rn.defaultMaxHeight = 2024, /** Default autoResolution for all HTMLText objects */
28772
28774
  rn.defaultAutoResolution = !0;
28773
- const Aw = 16777215, Sw = 0.25, Cw = 16777215, Iw = 1.5;
28775
+ const Aw = 16777215, Sw = 0.25, Iw = 16777215, Cw = 1.5;
28774
28776
  let mr = !1, Xn;
28775
28777
  const ul = (r) => {
28776
28778
  const t = {
28777
28779
  tint: r != null && r.fill ? new bt(r.fill).toNumber() : Aw,
28778
28780
  alpha: (r == null ? void 0 : r.fillOpacity) === void 0 ? Sw : Math.min(r.fillOpacity, 1)
28779
28781
  }, e = {
28780
- tint: r != null && r.stroke ? new bt(r.stroke).toNumber() : Cw,
28782
+ tint: r != null && r.stroke ? new bt(r.stroke).toNumber() : Iw,
28781
28783
  alpha: (r == null ? void 0 : r.strokeOpacity) === void 0 ? 1 : Math.min(r.strokeOpacity, 1),
28782
- lineWidth: (r == null ? void 0 : r.strokeWidth) === void 0 ? Iw : r.strokeWidth
28784
+ lineWidth: (r == null ? void 0 : r.strokeWidth) === void 0 ? Cw : r.strokeWidth
28783
28785
  };
28784
28786
  return { fillStyle: t, strokeStyle: e };
28785
28787
  }, Ll = (r) => (t, e, i) => {
@@ -28827,16 +28829,16 @@ const ul = (r) => {
28827
28829
  Xn = Hf(r);
28828
28830
  const l = (g, v) => {
28829
28831
  mr = !1;
28830
- const { selector: w } = g.target, I = typeof a == "function" ? a(g, v) : a;
28832
+ const { selector: w } = g.target, C = typeof a == "function" ? a(g, v) : a;
28831
28833
  let T;
28832
- w.type === wt.RECTANGLE ? T = Mw(e, w, I) : w.type === wt.POLYGON ? T = Pw(e, w, I) : w.type === wt.ELLIPSE ? T = Rw(e, w, I) : console.warn(`Unsupported shape type: ${w.type}`), T && s.set(g.id, { annotation: g, ...T });
28834
+ w.type === wt.RECTANGLE ? T = Mw(e, w, C) : w.type === wt.POLYGON ? T = Pw(e, w, C) : w.type === wt.ELLIPSE ? T = Rw(e, w, C) : console.warn(`Unsupported shape type: ${w.type}`), T && s.set(g.id, { annotation: g, ...T });
28833
28835
  }, h = (g) => {
28834
28836
  const v = s.get(g.id);
28835
28837
  v && (s.delete(g.id), v.fill.destroy(), v.stroke.destroy());
28836
28838
  }, c = (g, v, w) => {
28837
28839
  mr = !1;
28838
- const I = s.get(g.id);
28839
- I && (s.delete(g.id), I.fill.destroy(), I.stroke.destroy(), l(v, w));
28840
+ const C = s.get(g.id);
28841
+ C && (s.delete(g.id), C.fill.destroy(), C.stroke.destroy(), l(v, w));
28840
28842
  }, u = (g, v) => {
28841
28843
  const w = s.get(g);
28842
28844
  w && (s.delete(g), w.fill.destroy(), w.stroke.destroy(), l(w.annotation, v));
@@ -28845,29 +28847,29 @@ const ul = (r) => {
28845
28847
  }, f = (g) => {
28846
28848
  mr = !1;
28847
28849
  const { children: v } = e;
28848
- s.forEach(({ fill: w, stroke: I, annotation: T }) => {
28849
- const C = g ? n.has(T.id) || g(T) : !0;
28850
- C && !v.includes(w) ? (e.addChild(w), e.addChild(I)) : !C && v.includes(w) && (e.removeChild(w), e.removeChild(I));
28850
+ s.forEach(({ fill: w, stroke: C, annotation: T }) => {
28851
+ const I = g ? n.has(T.id) || g(T) : !0;
28852
+ I && !v.includes(w) ? (e.addChild(w), e.addChild(C)) : !I && v.includes(w) && (e.removeChild(w), e.removeChild(C));
28851
28853
  }), i.render(e);
28852
28854
  }, p = (g) => {
28853
28855
  o !== g && (o && u(o, { selected: n.has(o) }), g && u(g, { selected: n.has(g), hovered: !0 }), o = g, i.render(e));
28854
28856
  }, m = (g) => {
28855
- const v = g.selected.map((T) => T.id), w = v.filter((T) => !n.has(T)), I = [...n].filter((T) => !v.includes(T));
28856
- [...w, ...I].forEach((T) => u(T, { selected: v.includes(T), hovered: T === o })), n = new Set(v), i.render(e);
28857
+ const v = g.selected.map((T) => T.id), w = v.filter((T) => !n.has(T)), C = [...n].filter((T) => !v.includes(T));
28858
+ [...w, ...C].forEach((T) => u(T, { selected: v.includes(T), hovered: T === o })), n = new Set(v), i.render(e);
28857
28859
  }, _ = (g) => {
28858
28860
  if (typeof g == "function")
28859
- s.forEach(({ annotation: v, fill: w, stroke: I, strokeWidth: T }, C) => {
28861
+ s.forEach(({ annotation: v, fill: w, stroke: C, strokeWidth: T }, I) => {
28860
28862
  T > 1 && (mr = !1);
28861
28863
  const D = {
28862
28864
  selected: n.has(v.id),
28863
28865
  hovered: o === v.id
28864
28866
  }, { fillStyle: A, strokeStyle: P } = ul(g(v, D));
28865
- w.tint = A.tint, w.alpha = A.alpha, I.tint = P.tint || 16777215, I.alpha = P.alpha, s.set(v.id, { annotation: v, fill: w, stroke: I, strokeWidth: T });
28867
+ w.tint = A.tint, w.alpha = A.alpha, C.tint = P.tint || 16777215, C.alpha = P.alpha, s.set(v.id, { annotation: v, fill: w, stroke: C, strokeWidth: T });
28866
28868
  });
28867
28869
  else {
28868
28870
  const { fillStyle: v, strokeStyle: w } = ul(g);
28869
- w.lineWidth > 1 && (mr = !1), s.forEach(({ annotation: I, fill: T, stroke: C, strokeWidth: D }, A) => {
28870
- T.tint = v.tint, T.alpha = v.alpha, C.tint = w.tint || 16777215, C.alpha = w.alpha, s.set(I.id, { annotation: I, fill: T, stroke: C, strokeWidth: D });
28871
+ w.lineWidth > 1 && (mr = !1), s.forEach(({ annotation: C, fill: T, stroke: I, strokeWidth: D }, A) => {
28872
+ T.tint = v.tint, T.alpha = v.alpha, I.tint = w.tint || 16777215, I.alpha = w.alpha, s.set(C.id, { annotation: C, fill: T, stroke: I, strokeWidth: D });
28871
28873
  });
28872
28874
  }
28873
28875
  a = g, i.render(e);
@@ -28891,23 +28893,23 @@ const ul = (r) => {
28891
28893
  function Ow(r, t, e) {
28892
28894
  let i, s, { filter: n } = t, { state: o } = t, { style: a } = t, { viewer: l } = t, { visible: h = !0 } = t;
28893
28895
  const { store: c, hover: u, selection: d, viewport: f } = o;
28894
- da(r, u, (I) => e(11, i = I)), da(r, d, (I) => e(8, s = I));
28896
+ da(r, u, (C) => e(11, i = C)), da(r, d, (C) => e(8, s = C));
28895
28897
  const p = Yn();
28896
28898
  let m, _;
28897
- const y = (I) => {
28898
- const T = new yi.Point(I.x, I.y), { x: C, y: D } = l.viewport.pointFromPixel(T);
28899
- return l.viewport.viewportToImageCoordinates(C, D);
28900
- }, x = (I) => {
28901
- const { x: T, y: C } = I.position;
28902
- _ = { x: T, y: C };
28903
- }, g = (I) => (T) => {
28904
- const { x: C, y: D } = y(new yi.Point(T.offsetX, T.offsetY)), A = c.getAt(C, D);
28905
- A && (!n || n(A)) ? (I.classList.add("hover"), i !== A.id && (u.set(A.id), m.setHovered(A.id))) : (I.classList.remove("hover"), i && (u.set(void 0), m.setHovered(void 0)));
28906
- }, v = (I) => {
28899
+ const y = (C) => {
28900
+ const T = new yi.Point(C.x, C.y), { x: I, y: D } = l.viewport.pointFromPixel(T);
28901
+ return l.viewport.viewportToImageCoordinates(I, D);
28902
+ }, x = (C) => {
28903
+ const { x: T, y: I } = C.position;
28904
+ _ = { x: T, y: I };
28905
+ }, g = (C) => (T) => {
28906
+ const { x: I, y: D } = y(new yi.Point(T.offsetX, T.offsetY)), A = c.getAt(I, D);
28907
+ A && (!n || n(A)) ? (C.classList.add("hover"), i !== A.id && (u.set(A.id), m.setHovered(A.id))) : (C.classList.remove("hover"), i && (u.set(void 0), m.setHovered(void 0)));
28908
+ }, v = (C) => {
28907
28909
  if (!_) return;
28908
- const T = I.originalEvent, { x: C, y: D } = I.position, A = C - _.x, P = D - _.y;
28910
+ const T = C.originalEvent, { x: I, y: D } = C.position, A = I - _.x, P = D - _.y;
28909
28911
  if (Math.sqrt(A * A + P * P) < 5) {
28910
- const { x: b, y: M } = y(I.position), S = c.getAt(b, M);
28912
+ const { x: b, y: M } = y(C.position), S = c.getAt(b, M);
28911
28913
  S ? p("click", { originalEvent: T, annotation: S }) : p("click", { originalEvent: T });
28912
28914
  }
28913
28915
  _ = void 0;
@@ -28915,19 +28917,19 @@ function Ow(r, t, e) {
28915
28917
  let w;
28916
28918
  return jn(() => {
28917
28919
  var b;
28918
- const { offsetWidth: I, offsetHeight: T } = l.canvas, C = document.createElement("canvas");
28919
- C.width = I, C.height = T, C.className = "a9s-gl-canvas", (b = l.element.querySelector(".openseadragon-canvas")) == null || b.appendChild(C), e(7, m = Dw(l, C));
28920
- const D = g(C);
28921
- C.addEventListener("pointermove", D);
28920
+ const { offsetWidth: C, offsetHeight: T } = l.canvas, I = document.createElement("canvas");
28921
+ I.width = C, I.height = T, I.className = "a9s-gl-canvas", (b = l.element.querySelector(".openseadragon-canvas")) == null || b.appendChild(I), e(7, m = Dw(l, I));
28922
+ const D = g(I);
28923
+ I.addEventListener("pointermove", D);
28922
28924
  const A = new ResizeObserver((M) => {
28923
28925
  try {
28924
28926
  const { width: S, height: U } = M[0].contentRect;
28925
- C.width = S, C.height = U, m.resize(S, U);
28927
+ I.width = S, I.height = U, m.resize(S, U);
28926
28928
  } catch {
28927
28929
  console.warn("WebGL canvas already disposed");
28928
28930
  }
28929
28931
  });
28930
- A.observe(C);
28932
+ A.observe(I);
28931
28933
  const P = () => {
28932
28934
  const M = l.viewport.getBounds();
28933
28935
  w = l.viewport.viewportToImageRectangle(M);
@@ -28946,10 +28948,10 @@ function Ow(r, t, e) {
28946
28948
  };
28947
28949
  return c.observe(R), () => {
28948
28950
  var M;
28949
- C.removeEventListener("pointermove", D), A.disconnect(), l.removeHandler("canvas-press", x), l.removeHandler("canvas-release", v), l.removeHandler("update-viewport", m.redraw), l.removeHandler("animation-finish", P), c.unobserve(R), m.destroy(), (M = C.parentNode) == null || M.removeChild(C);
28951
+ I.removeEventListener("pointermove", D), A.disconnect(), l.removeHandler("canvas-press", x), l.removeHandler("canvas-release", v), l.removeHandler("update-viewport", m.redraw), l.removeHandler("animation-finish", P), c.unobserve(R), m.destroy(), (M = I.parentNode) == null || M.removeChild(I);
28950
28952
  };
28951
- }), r.$$set = (I) => {
28952
- "filter" in I && e(2, n = I.filter), "state" in I && e(3, o = I.state), "style" in I && e(4, a = I.style), "viewer" in I && e(5, l = I.viewer), "visible" in I && e(6, h = I.visible);
28953
+ }), r.$$set = (C) => {
28954
+ "filter" in C && e(2, n = C.filter), "state" in C && e(3, o = C.state), "style" in C && e(4, a = C.style), "viewer" in C && e(5, l = C.viewer), "visible" in C && e(6, h = C.visible);
28953
28955
  }, r.$$.update = () => {
28954
28956
  r.$$.dirty & /*stage, filter*/
28955
28957
  132 && (m == null || m.setFilter(n)), r.$$.dirty & /*stage, $selection*/
@@ -29537,7 +29539,7 @@ class is extends ae {
29537
29539
  }
29538
29540
  }
29539
29541
  function tE(r) {
29540
- let t, e, i, s, n, o, a, l, h, c, u, d, f, p, m, _, y, x, g, v, w, I, T, C, D, A, P, R, b, M, S, U, L, H, Q, F, k, K, st, G, X, tt, lt;
29542
+ let t, e, i, s, n, o, a, l, h, c, u, d, f, p, m, _, y, x, g, v, w, C, T, I, D, A, P, R, b, M, S, U, L, H, Q, F, k, K, st, G, X, tt, lt;
29541
29543
  return H = new is({
29542
29544
  props: {
29543
29545
  class: "a9s-corner-handle-topleft",
@@ -29628,7 +29630,7 @@ function tE(r) {
29628
29630
  ) && r[9]("BOTTOM_LEFT").apply(this, arguments);
29629
29631
  }), {
29630
29632
  c() {
29631
- t = Tt("rect"), a = ve(), l = Tt("rect"), f = ve(), p = Tt("rect"), x = ve(), g = Tt("rect"), T = ve(), C = Tt("rect"), R = ve(), b = Tt("rect"), L = ve(), Jt(H.$$.fragment), Q = ve(), Jt(F.$$.fragment), k = ve(), Jt(K.$$.fragment), st = ve(), Jt(G.$$.fragment), B(t, "class", "a9s-outer"), B(t, "style", e = /*computedStyle*/
29633
+ t = Tt("rect"), a = ve(), l = Tt("rect"), f = ve(), p = Tt("rect"), x = ve(), g = Tt("rect"), T = ve(), I = Tt("rect"), R = ve(), b = Tt("rect"), L = ve(), Jt(H.$$.fragment), Q = ve(), Jt(F.$$.fragment), k = ve(), Jt(K.$$.fragment), st = ve(), Jt(G.$$.fragment), B(t, "class", "a9s-outer"), B(t, "style", e = /*computedStyle*/
29632
29634
  r[1] ? "display:none;" : void 0), B(t, "x", i = /*geom*/
29633
29635
  r[4].x), B(t, "y", s = /*geom*/
29634
29636
  r[4].y), B(t, "width", n = /*geom*/
@@ -29648,18 +29650,18 @@ function tE(r) {
29648
29650
  r[4].w), B(g, "class", "a9s-edge-handle a9s-edge-handle-right"), B(g, "x", v = /*geom*/
29649
29651
  r[4].x + /*geom*/
29650
29652
  r[4].w), B(g, "y", w = /*geom*/
29651
- r[4].y), B(g, "height", I = /*geom*/
29652
- r[4].h), B(g, "width", 1), B(C, "class", "a9s-edge-handle a9s-edge-handle-bottom"), B(C, "x", D = /*geom*/
29653
- r[4].x), B(C, "y", A = /*geom*/
29653
+ r[4].y), B(g, "height", C = /*geom*/
29654
+ r[4].h), B(g, "width", 1), B(I, "class", "a9s-edge-handle a9s-edge-handle-bottom"), B(I, "x", D = /*geom*/
29655
+ r[4].x), B(I, "y", A = /*geom*/
29654
29656
  r[4].y + /*geom*/
29655
- r[4].h), B(C, "height", 1), B(C, "width", P = /*geom*/
29657
+ r[4].h), B(I, "height", 1), B(I, "width", P = /*geom*/
29656
29658
  r[4].w), B(b, "class", "a9s-edge-handle a9s-edge-handle-left"), B(b, "x", M = /*geom*/
29657
29659
  r[4].x), B(b, "y", S = /*geom*/
29658
29660
  r[4].y), B(b, "height", U = /*geom*/
29659
29661
  r[4].h), B(b, "width", 1);
29660
29662
  },
29661
29663
  m(N, O) {
29662
- dt(N, t, O), dt(N, a, O), dt(N, l, O), dt(N, f, O), dt(N, p, O), dt(N, x, O), dt(N, g, O), dt(N, T, O), dt(N, C, O), dt(N, R, O), dt(N, b, O), dt(N, L, O), Yt(H, N, O), dt(N, Q, O), Yt(F, N, O), dt(N, k, O), Yt(K, N, O), dt(N, st, O), Yt(G, N, O), X = !0, tt || (lt = [
29664
+ dt(N, t, O), dt(N, a, O), dt(N, l, O), dt(N, f, O), dt(N, p, O), dt(N, x, O), dt(N, g, O), dt(N, T, O), dt(N, I, O), dt(N, R, O), dt(N, b, O), dt(N, L, O), Yt(H, N, O), dt(N, Q, O), Yt(F, N, O), dt(N, k, O), Yt(K, N, O), dt(N, st, O), Yt(G, N, O), X = !0, tt || (lt = [
29663
29665
  zt(t, "pointerdown", function() {
29664
29666
  jt(
29665
29667
  /*grab*/
@@ -29684,7 +29686,7 @@ function tE(r) {
29684
29686
  r[9]("RIGHT")
29685
29687
  ) && r[9]("RIGHT").apply(this, arguments);
29686
29688
  }),
29687
- zt(C, "pointerdown", function() {
29689
+ zt(I, "pointerdown", function() {
29688
29690
  jt(
29689
29691
  /*grab*/
29690
29692
  r[9]("BOTTOM")
@@ -29735,15 +29737,15 @@ function tE(r) {
29735
29737
  r[4].w)) && B(g, "x", v), (!X || O & /*geom*/
29736
29738
  16 && w !== (w = /*geom*/
29737
29739
  r[4].y)) && B(g, "y", w), (!X || O & /*geom*/
29738
- 16 && I !== (I = /*geom*/
29739
- r[4].h)) && B(g, "height", I), (!X || O & /*geom*/
29740
+ 16 && C !== (C = /*geom*/
29741
+ r[4].h)) && B(g, "height", C), (!X || O & /*geom*/
29740
29742
  16 && D !== (D = /*geom*/
29741
- r[4].x)) && B(C, "x", D), (!X || O & /*geom*/
29743
+ r[4].x)) && B(I, "x", D), (!X || O & /*geom*/
29742
29744
  16 && A !== (A = /*geom*/
29743
29745
  r[4].y + /*geom*/
29744
- r[4].h)) && B(C, "y", A), (!X || O & /*geom*/
29746
+ r[4].h)) && B(I, "y", A), (!X || O & /*geom*/
29745
29747
  16 && P !== (P = /*geom*/
29746
- r[4].w)) && B(C, "width", P), (!X || O & /*geom*/
29748
+ r[4].w)) && B(I, "width", P), (!X || O & /*geom*/
29747
29749
  16 && M !== (M = /*geom*/
29748
29750
  r[4].x)) && B(b, "x", M), (!X || O & /*geom*/
29749
29751
  16 && S !== (S = /*geom*/
@@ -29794,7 +29796,7 @@ function tE(r) {
29794
29796
  pt(H.$$.fragment, N), pt(F.$$.fragment, N), pt(K.$$.fragment, N), pt(G.$$.fragment, N), X = !1;
29795
29797
  },
29796
29798
  d(N) {
29797
- N && (ut(t), ut(a), ut(l), ut(f), ut(p), ut(x), ut(g), ut(T), ut(C), ut(R), ut(b), ut(L), ut(Q), ut(k), ut(st)), qt(H, N), qt(F, N), qt(K, N), qt(G, N), tt = !1, nr(lt);
29799
+ N && (ut(t), ut(a), ut(l), ut(f), ut(p), ut(x), ut(g), ut(T), ut(I), ut(R), ut(b), ut(L), ut(Q), ut(k), ut(st)), qt(H, N), qt(F, N), qt(K, N), qt(G, N), tt = !1, nr(lt);
29798
29800
  }
29799
29801
  };
29800
29802
  }
@@ -29900,18 +29902,18 @@ function rE(r, t, e) {
29900
29902
  }
29901
29903
  }
29902
29904
  }
29903
- const I = Math.min(_, x), T = Math.min(y, g), C = Math.abs(x - _), D = Math.abs(g - y);
29905
+ const C = Math.min(_, x), T = Math.min(y, g), I = Math.abs(x - _), D = Math.abs(g - y);
29904
29906
  return {
29905
29907
  ...d,
29906
29908
  geometry: {
29907
- x: I,
29909
+ x: C,
29908
29910
  y: T,
29909
- w: C,
29911
+ w: I,
29910
29912
  h: D,
29911
29913
  bounds: {
29912
- minX: I,
29914
+ minX: C,
29913
29915
  minY: T,
29914
- maxX: I + C,
29916
+ maxX: C + I,
29915
29917
  maxY: T + D
29916
29918
  }
29917
29919
  }
@@ -30597,7 +30599,7 @@ function vE(r, t, e) {
30597
30599
  let _;
30598
30600
  const { store: y, selection: x, hover: g } = c;
30599
30601
  da(r, x, (S) => e(20, o = S));
30600
- let v, w, I;
30602
+ let v, w, C;
30601
30603
  const T = (S) => {
30602
30604
  y.unobserve(v);
30603
30605
  const U = S.filter(({ editable: L }) => L).map(({ id: L }) => L);
@@ -30611,14 +30613,14 @@ function vE(r, t, e) {
30611
30613
  }
30612
30614
  } else
30613
30615
  e(6, w = void 0);
30614
- }, C = (S, U) => {
30616
+ }, I = (S, U) => {
30615
30617
  const { x: L, y: H } = p.viewport.viewerElementToImageCoordinates(new yi.Point(S, U));
30616
30618
  return [L, H];
30617
30619
  }, D = (S) => {
30618
- p.setMouseNavEnabled(!1), I = S.timeStamp;
30620
+ p.setMouseNavEnabled(!1), C = S.timeStamp;
30619
30621
  }, A = (S) => {
30620
- if (p.setMouseNavEnabled(!0), performance.now() - (I || 0) < 300) {
30621
- const { offsetX: L, offsetY: H } = S.detail, [Q, F] = C(L, H), k = y.getAt(Q, F);
30622
+ if (p.setMouseNavEnabled(!0), performance.now() - (C || 0) < 300) {
30623
+ const { offsetX: L, offsetY: H } = S.detail, [Q, F] = I(L, H), k = y.getAt(Q, F);
30622
30624
  k && (!l || l(k)) && !w.find((st) => st.id === k.id) && (g.set(k.id), x.setSelected(k.id));
30623
30625
  }
30624
30626
  }, P = (S) => (U) => {
@@ -30669,7 +30671,7 @@ function vE(r, t, e) {
30669
30671
  w,
30670
30672
  i,
30671
30673
  x,
30672
- C,
30674
+ I,
30673
30675
  D,
30674
30676
  A,
30675
30677
  P,
@@ -30938,7 +30940,7 @@ function SE(r) {
30938
30940
  }
30939
30941
  };
30940
30942
  }
30941
- function CE(r, t, e) {
30943
+ function IE(r, t, e) {
30942
30944
  let i, { annotation: s } = t, { user: n } = t, { scale: o } = t;
30943
30945
  return r.$$set = (a) => {
30944
30946
  "annotation" in a && e(3, s = a.annotation), "user" in a && e(0, n = a.user), "scale" in a && e(1, o = a.scale);
@@ -30947,9 +30949,9 @@ function CE(r, t, e) {
30947
30949
  8 && e(2, i = s.target.selector.geometry);
30948
30950
  }, [n, o, i, s];
30949
30951
  }
30950
- class IE extends ae {
30952
+ class CE extends ae {
30951
30953
  constructor(t) {
30952
- super(), oe(this, t, CE, SE, te, { annotation: 3, user: 0, scale: 1 });
30954
+ super(), oe(this, t, IE, SE, te, { annotation: 3, user: 0, scale: 1 });
30953
30955
  }
30954
30956
  }
30955
30957
  const { Boolean: RE } = Vg;
@@ -31102,7 +31104,7 @@ function PE(r) {
31102
31104
  }
31103
31105
  function ME(r) {
31104
31106
  let t, e;
31105
- return t = new IE({
31107
+ return t = new CE({
31106
31108
  props: {
31107
31109
  annotation: (
31108
31110
  /*tracked*/
@@ -31297,7 +31299,7 @@ const _u = (r, t) => {
31297
31299
  const a = r.container.getBoundingClientRect(), { padding: l } = s;
31298
31300
  let [h, c, u, d] = l ? Array.isArray(l) ? l : [l, l, l, l] : [0, 0, 0, 0];
31299
31301
  h = h / a.height, c = c / a.width, u = u / a.height, d = d / a.width;
31300
- const { minX: f, minY: p, maxX: m, maxY: _ } = o.target.selector.geometry.bounds, y = m - f, x = _ - p, g = f - d * y, v = p - h * x, w = y + (c + d) * y, I = x + (h + u) * x, T = r.viewport.imageToViewportRectangle(g, v, w, I);
31302
+ const { minX: f, minY: p, maxX: m, maxY: _ } = o.target.selector.geometry.bounds, y = m - f, x = _ - p, g = f - d * y, v = p - h * x, w = y + (c + d) * y, C = x + (h + u) * x, T = r.viewport.imageToViewportRectangle(g, v, w, C);
31301
31303
  r.viewport[e](T, s.immediately);
31302
31304
  }, LE = (r, t) => Wf(r, t, "fitBounds"), NE = (r, t) => Wf(r, t, "fitBoundsWithConstraints"), XE = (r, t = {}) => {
31303
31305
  const e = $u(t, {
@@ -31350,11 +31352,11 @@ const _u = (r, t) => {
31350
31352
  }), _u(r, e.theme);
31351
31353
  const _ = dp(i, a, e.adapter), y = () => {
31352
31354
  f.$destroy(), p.$destroy(), m.$destroy(), d.destroy(), a.destroy();
31353
- }, x = LE(r, o), g = NE(r, o), v = () => h, w = (S, U, L) => Lu(S, U, L), I = (S, U) => Ou(S, U), T = (S) => {
31355
+ }, x = LE(r, o), g = NE(r, o), v = () => h, w = (S, U, L) => Lu(S, U, L), C = (S, U) => Ou(S, U), T = (S) => {
31354
31356
  if (!Wn(S))
31355
31357
  throw `No drawing tool named ${S}`;
31356
31358
  m.$set({ toolName: S });
31357
- }, C = (S) => {
31359
+ }, I = (S) => {
31358
31360
  c = S, m.$set({ drawingEnabled: c });
31359
31361
  }, D = (S) => {
31360
31362
  f.$set({ filter: S }), m.$set({ filter: S });
@@ -31379,8 +31381,8 @@ const _u = (r, t) => {
31379
31381
  on: l.on,
31380
31382
  off: l.off,
31381
31383
  registerDrawingTool: w,
31382
- registerShapeEditor: I,
31383
- setDrawingEnabled: C,
31384
+ registerShapeEditor: C,
31385
+ setDrawingEnabled: I,
31384
31386
  setDrawingTool: T,
31385
31387
  setFilter: D,
31386
31388
  setPresenceProvider: P,