@annotorious/openseadragon 3.4.3 → 3.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -679,7 +679,7 @@ class De {
679
679
  }
680
680
  const Ey = "4";
681
681
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ey);
682
- var At = /* @__PURE__ */ ((r) => (r.ELLIPSE = "ELLIPSE", r.MULTIPOLYGLON = "MULTIPOLYGON", r.POLYGON = "POLYGON", r.RECTANGLE = "RECTANGLE", r))(At || {}), Ty = { exports: {} };
682
+ var St = /* @__PURE__ */ ((r) => (r.ELLIPSE = "ELLIPSE", r.MULTIPOLYGLON = "MULTIPOLYGON", r.POLYGON = "POLYGON", r.RECTANGLE = "RECTANGLE", r))(St || {}), Ty = { exports: {} };
683
683
  (function(r) {
684
684
  (function() {
685
685
  function t(a, l) {
@@ -747,7 +747,7 @@ const Dh = {}, Lo = (r, t) => Dh[r] = t, Al = (r) => Dh[r.type].area(r), wy = (r
747
747
  return d * d / (n * n) + f * f / (o * o) <= 1;
748
748
  }
749
749
  };
750
- Lo(At.ELLIPSE, Sy);
750
+ Lo(St.ELLIPSE, Sy);
751
751
  const Cy = {
752
752
  area: (r) => {
753
753
  const { polygons: t } = r.geometry;
@@ -779,7 +779,7 @@ const Cy = {
779
779
  ...t,
780
780
  ...e.rings.reduce((i, s) => [...i, ...s.points], [])
781
781
  ], []);
782
- Lo(At.MULTIPOLYGLON, Cy);
782
+ Lo(St.MULTIPOLYGLON, Cy);
783
783
  const Ry = {
784
784
  area: (r) => {
785
785
  const t = r.geometry.points;
@@ -790,12 +790,12 @@ const Ry = {
790
790
  return Cl(i, t, e);
791
791
  }
792
792
  };
793
- Lo(At.POLYGON, Ry);
793
+ Lo(St.POLYGON, Ry);
794
794
  const My = {
795
795
  area: (r) => r.geometry.w * r.geometry.h,
796
796
  intersects: (r, t, e) => t >= r.geometry.x && t <= r.geometry.x + r.geometry.w && e >= r.geometry.y && e <= r.geometry.y + r.geometry.h
797
797
  };
798
- Lo(At.RECTANGLE, My);
798
+ Lo(St.RECTANGLE, My);
799
799
  const ze = (r) => Zn(r.target), Zn = (r) => {
800
800
  var t, e;
801
801
  return (r == null ? void 0 : r.annotation) !== void 0 && ((e = (t = r == null ? void 0 : r.selector) == null ? void 0 : t.geometry) == null ? void 0 : e.bounds) !== void 0;
@@ -805,7 +805,7 @@ const ze = (r) => Zn(r.target), Zn = (r) => {
805
805
  if (a && a !== "pixel") throw new Error(`Unsupported MediaFragment unit: ${a}`);
806
806
  const [d, f, p, m] = [l, h, u, c].map(parseFloat);
807
807
  return {
808
- type: At.RECTANGLE,
808
+ type: St.RECTANGLE,
809
809
  geometry: {
810
810
  x: d,
811
811
  y: f,
@@ -1530,7 +1530,7 @@ const t_ = {
1530
1530
  }, r_ = (r) => {
1531
1531
  const [t, e, i] = r.match(/(<polygon points=["|'])([^("|')]*)/) || [], s = i.split(" ").map((n) => n.split(",").map(parseFloat));
1532
1532
  return {
1533
- type: At.POLYGON,
1533
+ type: St.POLYGON,
1534
1534
  geometry: {
1535
1535
  points: s,
1536
1536
  bounds: Le(s)
@@ -1544,7 +1544,7 @@ const t_ = {
1544
1544
  maxY: i + n
1545
1545
  };
1546
1546
  return {
1547
- type: At.ELLIPSE,
1547
+ type: St.ELLIPSE,
1548
1548
  geometry: {
1549
1549
  cx: e,
1550
1550
  cy: i,
@@ -1556,13 +1556,13 @@ const t_ = {
1556
1556
  }, s_ = (r) => {
1557
1557
  const t = Jf(r), e = (t.nodeName === "path" ? [t] : Array.from(t.querySelectorAll("path"))).map((n) => n.getAttribute("d") || "").map((n) => e_(n)).filter(Boolean), i = e.reduce((n, o) => [...n, ...o.rings[0].points], []), s = Le(i);
1558
1558
  return e.length === 1 && e[0].rings.length === 1 ? {
1559
- type: At.POLYGON,
1559
+ type: St.POLYGON,
1560
1560
  geometry: {
1561
1561
  points: i,
1562
1562
  bounds: s
1563
1563
  }
1564
1564
  } : {
1565
- type: At.MULTIPOLYGLON,
1565
+ type: St.MULTIPOLYGLON,
1566
1566
  geometry: {
1567
1567
  polygons: e,
1568
1568
  bounds: s
@@ -1579,13 +1579,13 @@ const t_ = {
1579
1579
  throw "Unsupported SVG shape: " + t;
1580
1580
  }, o_ = (r) => `<g>${r.polygons.map((t) => `<path fill-rule="evenodd" d="${Je(t)}" />`).join("")}</g>`, a_ = (r) => {
1581
1581
  let t;
1582
- if (r.type === At.POLYGON) {
1582
+ if (r.type === St.POLYGON) {
1583
1583
  const e = r.geometry, { points: i } = e;
1584
1584
  t = `<svg><polygon points="${i.map((s) => s.join(",")).join(" ")}" /></svg>`;
1585
- } else if (r.type === At.ELLIPSE) {
1585
+ } else if (r.type === St.ELLIPSE) {
1586
1586
  const e = r.geometry;
1587
1587
  t = `<svg><ellipse cx="${e.cx}" cy="${e.cy}" rx="${e.rx}" ry="${e.ry}" /></svg>`;
1588
- } else if (r.type === At.MULTIPOLYGLON) {
1588
+ } else if (r.type === St.MULTIPOLYGLON) {
1589
1589
  const e = r.geometry;
1590
1590
  t = `<svg>${o_(e)}</svg>`;
1591
1591
  }
@@ -2392,7 +2392,7 @@ const hI = (r, t = { strict: !0, invertY: !1 }) => ({ parse: (e) => z_(e, t), se
2392
2392
  } = r.target;
2393
2393
  let h;
2394
2394
  try {
2395
- h = i.type == At.RECTANGLE ? Oy(i.geometry) : a_(i);
2395
+ h = i.type == St.RECTANGLE ? Oy(i.geometry) : a_(i);
2396
2396
  } catch (c) {
2397
2397
  if (e.strict)
2398
2398
  throw c;
@@ -5043,9 +5043,9 @@ class A0 extends De {
5043
5043
  }
5044
5044
  }
5045
5045
  const up = /* @__PURE__ */ new Map([
5046
- [At.RECTANGLE, y0],
5047
- [At.POLYGON, f0],
5048
- [At.MULTIPOLYGLON, A0]
5046
+ [St.RECTANGLE, y0],
5047
+ [St.POLYGON, f0],
5048
+ [St.MULTIPOLYGLON, A0]
5049
5049
  ]), cp = (r) => up.get(r.type), dp = (r, t) => up.set(r, t);
5050
5050
  function S0(r, t, e) {
5051
5051
  let i;
@@ -5349,7 +5349,7 @@ function P0(r, t, e) {
5349
5349
  }, g = () => {
5350
5350
  if (p * m > 15) {
5351
5351
  const E = {
5352
- type: At.RECTANGLE,
5352
+ type: St.RECTANGLE,
5353
5353
  geometry: {
5354
5354
  bounds: {
5355
5355
  minX: d,
@@ -5560,7 +5560,7 @@ function B0(r, t, e) {
5560
5560
  const M = d.slice(0, -1);
5561
5561
  if (M.length < 3) return;
5562
5562
  const S = {
5563
- type: At.POLYGON,
5563
+ type: St.POLYGON,
5564
5564
  geometry: {
5565
5565
  bounds: Le(d),
5566
5566
  points: M
@@ -5569,7 +5569,7 @@ function B0(r, t, e) {
5569
5569
  Al(S) > 4 && (e(0, d = []), e(10, f = void 0), o("create", S));
5570
5570
  }, x = () => {
5571
5571
  const M = {
5572
- type: At.POLYGON,
5572
+ type: St.POLYGON,
5573
5573
  geometry: {
5574
5574
  bounds: Le(d),
5575
5575
  points: [...d]
@@ -6271,13 +6271,13 @@ function Zu(r) {
6271
6271
  var u, c, d, f;
6272
6272
  return (
6273
6273
  /*selector*/
6274
- ((u = l[46]) == null ? void 0 : u.type) === At.ELLIPSE ? 0 : (
6274
+ ((u = l[46]) == null ? void 0 : u.type) === St.ELLIPSE ? 0 : (
6275
6275
  /*selector*/
6276
- ((c = l[46]) == null ? void 0 : c.type) === At.RECTANGLE ? 1 : (
6276
+ ((c = l[46]) == null ? void 0 : c.type) === St.RECTANGLE ? 1 : (
6277
6277
  /*selector*/
6278
- ((d = l[46]) == null ? void 0 : d.type) === At.POLYGON ? 2 : (
6278
+ ((d = l[46]) == null ? void 0 : d.type) === St.POLYGON ? 2 : (
6279
6279
  /*selector*/
6280
- ((f = l[46]) == null ? void 0 : f.type) === At.MULTIPOLYGLON ? 3 : -1
6280
+ ((f = l[46]) == null ? void 0 : f.type) === St.MULTIPOLYGLON ? 3 : -1
6281
6281
  )
6282
6282
  )
6283
6283
  )
@@ -7223,7 +7223,7 @@ const yv = () => {
7223
7223
  minY: a,
7224
7224
  maxX: o,
7225
7225
  maxY: a
7226
- }).map((u) => u.target).filter((u) => u.selector.type === At.RECTANGLE || wy(u.selector, o, a));
7226
+ }).map((u) => u.target).filter((u) => u.selector.type === St.RECTANGLE || wy(u.selector, o, a));
7227
7227
  return h.length > 0 ? (h.sort((u, c) => Al(u.selector) - Al(c.selector)), h) : [];
7228
7228
  },
7229
7229
  getIntersecting: (o, a, l, h) => r.search({
@@ -12424,7 +12424,7 @@ function Fb() {
12424
12424
  var r = Function.prototype.call, t = Object.prototype.hasOwnProperty, e = Vo;
12425
12425
  return Xa = e.call(r, t), Xa;
12426
12426
  }
12427
- var St, kb = Zp, Ub = Qx, Gb = Jx, Hb = tb, $b = eb, xs = rb, ds = ws, Xb = ib, Vb = sb, zb = nb, Yb = ob, Wb = ab, jb = lb, qb = hb, Kb = db, im = Function, Va = function(r) {
12427
+ var wt, kb = Zp, Ub = Qx, Gb = Jx, Hb = tb, $b = eb, xs = rb, ds = ws, Xb = ib, Vb = sb, zb = nb, Yb = ob, Wb = ab, jb = lb, qb = hb, Kb = db, im = Function, Va = function(r) {
12428
12428
  try {
12429
12429
  return im('"use strict"; return (' + r + ").constructor;")();
12430
12430
  } catch {
@@ -12441,23 +12441,23 @@ var St, kb = Zp, Ub = Qx, Gb = Jx, Hb = tb, $b = eb, xs = rb, ds = ws, Xb = ib,
12441
12441
  return za;
12442
12442
  }
12443
12443
  }
12444
- }() : za, Vi = gb()(), ce = Bb(), Jb = tm(), tE = Jp(), sm = em, fn = Kh, Zi = {}, eE = typeof Uint8Array > "u" || !ce ? St : ce(Uint8Array), Ai = {
12444
+ }() : za, Vi = gb()(), ce = Bb(), Jb = tm(), tE = Jp(), sm = em, fn = Kh, Zi = {}, eE = typeof Uint8Array > "u" || !ce ? wt : ce(Uint8Array), Ai = {
12445
12445
  __proto__: null,
12446
- "%AggregateError%": typeof AggregateError > "u" ? St : AggregateError,
12446
+ "%AggregateError%": typeof AggregateError > "u" ? wt : AggregateError,
12447
12447
  "%Array%": Array,
12448
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? St : ArrayBuffer,
12449
- "%ArrayIteratorPrototype%": Vi && ce ? ce([][Symbol.iterator]()) : St,
12450
- "%AsyncFromSyncIteratorPrototype%": St,
12448
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? wt : ArrayBuffer,
12449
+ "%ArrayIteratorPrototype%": Vi && ce ? ce([][Symbol.iterator]()) : wt,
12450
+ "%AsyncFromSyncIteratorPrototype%": wt,
12451
12451
  "%AsyncFunction%": Zi,
12452
12452
  "%AsyncGenerator%": Zi,
12453
12453
  "%AsyncGeneratorFunction%": Zi,
12454
12454
  "%AsyncIteratorPrototype%": Zi,
12455
- "%Atomics%": typeof Atomics > "u" ? St : Atomics,
12456
- "%BigInt%": typeof BigInt > "u" ? St : BigInt,
12457
- "%BigInt64Array%": typeof BigInt64Array > "u" ? St : BigInt64Array,
12458
- "%BigUint64Array%": typeof BigUint64Array > "u" ? St : BigUint64Array,
12455
+ "%Atomics%": typeof Atomics > "u" ? wt : Atomics,
12456
+ "%BigInt%": typeof BigInt > "u" ? wt : BigInt,
12457
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? wt : BigInt64Array,
12458
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? wt : BigUint64Array,
12459
12459
  "%Boolean%": Boolean,
12460
- "%DataView%": typeof DataView > "u" ? St : DataView,
12460
+ "%DataView%": typeof DataView > "u" ? wt : DataView,
12461
12461
  "%Date%": Date,
12462
12462
  "%decodeURI%": decodeURI,
12463
12463
  "%decodeURIComponent%": decodeURIComponent,
@@ -12467,51 +12467,51 @@ var St, kb = Zp, Ub = Qx, Gb = Jx, Hb = tb, $b = eb, xs = rb, ds = ws, Xb = ib,
12467
12467
  "%eval%": eval,
12468
12468
  // eslint-disable-line no-eval
12469
12469
  "%EvalError%": Gb,
12470
- "%Float16Array%": typeof Float16Array > "u" ? St : Float16Array,
12471
- "%Float32Array%": typeof Float32Array > "u" ? St : Float32Array,
12472
- "%Float64Array%": typeof Float64Array > "u" ? St : Float64Array,
12473
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? St : FinalizationRegistry,
12470
+ "%Float16Array%": typeof Float16Array > "u" ? wt : Float16Array,
12471
+ "%Float32Array%": typeof Float32Array > "u" ? wt : Float32Array,
12472
+ "%Float64Array%": typeof Float64Array > "u" ? wt : Float64Array,
12473
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? wt : FinalizationRegistry,
12474
12474
  "%Function%": im,
12475
12475
  "%GeneratorFunction%": Zi,
12476
- "%Int8Array%": typeof Int8Array > "u" ? St : Int8Array,
12477
- "%Int16Array%": typeof Int16Array > "u" ? St : Int16Array,
12478
- "%Int32Array%": typeof Int32Array > "u" ? St : Int32Array,
12476
+ "%Int8Array%": typeof Int8Array > "u" ? wt : Int8Array,
12477
+ "%Int16Array%": typeof Int16Array > "u" ? wt : Int16Array,
12478
+ "%Int32Array%": typeof Int32Array > "u" ? wt : Int32Array,
12479
12479
  "%isFinite%": isFinite,
12480
12480
  "%isNaN%": isNaN,
12481
- "%IteratorPrototype%": Vi && ce ? ce(ce([][Symbol.iterator]())) : St,
12482
- "%JSON%": typeof JSON == "object" ? JSON : St,
12483
- "%Map%": typeof Map > "u" ? St : Map,
12484
- "%MapIteratorPrototype%": typeof Map > "u" || !Vi || !ce ? St : ce((/* @__PURE__ */ new Map())[Symbol.iterator]()),
12481
+ "%IteratorPrototype%": Vi && ce ? ce(ce([][Symbol.iterator]())) : wt,
12482
+ "%JSON%": typeof JSON == "object" ? JSON : wt,
12483
+ "%Map%": typeof Map > "u" ? wt : Map,
12484
+ "%MapIteratorPrototype%": typeof Map > "u" || !Vi || !ce ? wt : ce((/* @__PURE__ */ new Map())[Symbol.iterator]()),
12485
12485
  "%Math%": Math,
12486
12486
  "%Number%": Number,
12487
12487
  "%Object%": kb,
12488
12488
  "%Object.getOwnPropertyDescriptor%": ln,
12489
12489
  "%parseFloat%": parseFloat,
12490
12490
  "%parseInt%": parseInt,
12491
- "%Promise%": typeof Promise > "u" ? St : Promise,
12492
- "%Proxy%": typeof Proxy > "u" ? St : Proxy,
12491
+ "%Promise%": typeof Promise > "u" ? wt : Promise,
12492
+ "%Proxy%": typeof Proxy > "u" ? wt : Proxy,
12493
12493
  "%RangeError%": Hb,
12494
12494
  "%ReferenceError%": $b,
12495
- "%Reflect%": typeof Reflect > "u" ? St : Reflect,
12495
+ "%Reflect%": typeof Reflect > "u" ? wt : Reflect,
12496
12496
  "%RegExp%": RegExp,
12497
- "%Set%": typeof Set > "u" ? St : Set,
12498
- "%SetIteratorPrototype%": typeof Set > "u" || !Vi || !ce ? St : ce((/* @__PURE__ */ new Set())[Symbol.iterator]()),
12499
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? St : SharedArrayBuffer,
12497
+ "%Set%": typeof Set > "u" ? wt : Set,
12498
+ "%SetIteratorPrototype%": typeof Set > "u" || !Vi || !ce ? wt : ce((/* @__PURE__ */ new Set())[Symbol.iterator]()),
12499
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? wt : SharedArrayBuffer,
12500
12500
  "%String%": String,
12501
- "%StringIteratorPrototype%": Vi && ce ? ce(""[Symbol.iterator]()) : St,
12502
- "%Symbol%": Vi ? Symbol : St,
12501
+ "%StringIteratorPrototype%": Vi && ce ? ce(""[Symbol.iterator]()) : wt,
12502
+ "%Symbol%": Vi ? Symbol : wt,
12503
12503
  "%SyntaxError%": xs,
12504
12504
  "%ThrowTypeError%": Qb,
12505
12505
  "%TypedArray%": eE,
12506
12506
  "%TypeError%": ds,
12507
- "%Uint8Array%": typeof Uint8Array > "u" ? St : Uint8Array,
12508
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? St : Uint8ClampedArray,
12509
- "%Uint16Array%": typeof Uint16Array > "u" ? St : Uint16Array,
12510
- "%Uint32Array%": typeof Uint32Array > "u" ? St : Uint32Array,
12507
+ "%Uint8Array%": typeof Uint8Array > "u" ? wt : Uint8Array,
12508
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? wt : Uint8ClampedArray,
12509
+ "%Uint16Array%": typeof Uint16Array > "u" ? wt : Uint16Array,
12510
+ "%Uint32Array%": typeof Uint32Array > "u" ? wt : Uint32Array,
12511
12511
  "%URIError%": Xb,
12512
- "%WeakMap%": typeof WeakMap > "u" ? St : WeakMap,
12513
- "%WeakRef%": typeof WeakRef > "u" ? St : WeakRef,
12514
- "%WeakSet%": typeof WeakSet > "u" ? St : WeakSet,
12512
+ "%WeakMap%": typeof WeakMap > "u" ? wt : WeakMap,
12513
+ "%WeakRef%": typeof WeakRef > "u" ? wt : WeakRef,
12514
+ "%WeakSet%": typeof WeakSet > "u" ? wt : WeakSet,
12515
12515
  "%Function.prototype.call%": fn,
12516
12516
  "%Function.prototype.apply%": sm,
12517
12517
  "%Object.defineProperty%": Zb,
@@ -13419,7 +13419,7 @@ Fr.prototype.parseHost = function() {
13419
13419
  t && (t = t[0], t !== ":" && (this.port = t.substr(1)), r = r.substr(0, r.length - t.length)), r && (this.hostname = r);
13420
13420
  };
13421
13421
  const wd = {};
13422
- function wt(r, t, e = 3) {
13422
+ function At(r, t, e = 3) {
13423
13423
  if (wd[t])
13424
13424
  return;
13425
13425
  let i = new Error().stack;
@@ -14190,10 +14190,10 @@ Qi.temp = new Qi(), /** Pattern for hex strings */
14190
14190
  Qi.HEX_PATTERN = /^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;
14191
14191
  let Ot = Qi;
14192
14192
  function FT(r) {
14193
- return wt("7.2.0", "utils.hex2string is deprecated, use Color#toHex instead"), Ot.shared.setValue(r).toHex();
14193
+ return At("7.2.0", "utils.hex2string is deprecated, use Color#toHex instead"), Ot.shared.setValue(r).toHex();
14194
14194
  }
14195
14195
  function kT(r) {
14196
- return wt("7.2.0", "utils.rgb2hex is deprecated, use Color#toNumber instead"), Ot.shared.setValue(r).toNumber();
14196
+ return At("7.2.0", "utils.rgb2hex is deprecated, use Color#toNumber instead"), Ot.shared.setValue(r).toNumber();
14197
14197
  }
14198
14198
  function UT() {
14199
14199
  const r = [], t = [];
@@ -17362,7 +17362,7 @@ const Bs = class Ze extends Ko {
17362
17362
  * @readonly
17363
17363
  */
17364
17364
  get MAX_TEXTURES() {
17365
- return wt("7.1.0", "BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"), this.maxTextures;
17365
+ return At("7.1.0", "BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"), this.maxTextures;
17366
17366
  }
17367
17367
  /**
17368
17368
  * The default vertex shader source
@@ -20023,19 +20023,19 @@ class Hm {
20023
20023
  extract: {
20024
20024
  enumerable: !1,
20025
20025
  get() {
20026
- return wt("7.0.0", "renderer.plugins.extract has moved to renderer.extract"), t.extract;
20026
+ return At("7.0.0", "renderer.plugins.extract has moved to renderer.extract"), t.extract;
20027
20027
  }
20028
20028
  },
20029
20029
  prepare: {
20030
20030
  enumerable: !1,
20031
20031
  get() {
20032
- return wt("7.0.0", "renderer.plugins.prepare has moved to renderer.prepare"), t.prepare;
20032
+ return At("7.0.0", "renderer.plugins.prepare has moved to renderer.prepare"), t.prepare;
20033
20033
  }
20034
20034
  },
20035
20035
  interaction: {
20036
20036
  enumerable: !1,
20037
20037
  get() {
20038
- return wt("7.0.0", "renderer.plugins.interaction has been deprecated, use renderer.events"), t.events;
20038
+ return At("7.0.0", "renderer.plugins.interaction has been deprecated, use renderer.events"), t.events;
20039
20039
  }
20040
20040
  }
20041
20041
  });
@@ -21445,7 +21445,7 @@ Object.defineProperties(tt, {
21445
21445
  return vt.defaultOptions.wrapMode;
21446
21446
  },
21447
21447
  set(r) {
21448
- wt("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"), vt.defaultOptions.wrapMode = r;
21448
+ At("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"), vt.defaultOptions.wrapMode = r;
21449
21449
  }
21450
21450
  },
21451
21451
  /**
@@ -21461,7 +21461,7 @@ Object.defineProperties(tt, {
21461
21461
  return vt.defaultOptions.scaleMode;
21462
21462
  },
21463
21463
  set(r) {
21464
- wt("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"), vt.defaultOptions.scaleMode = r;
21464
+ At("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"), vt.defaultOptions.scaleMode = r;
21465
21465
  }
21466
21466
  },
21467
21467
  /**
@@ -21477,7 +21477,7 @@ Object.defineProperties(tt, {
21477
21477
  return vt.defaultOptions.mipmap;
21478
21478
  },
21479
21479
  set(r) {
21480
- wt("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"), vt.defaultOptions.mipmap = r;
21480
+ At("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"), vt.defaultOptions.mipmap = r;
21481
21481
  }
21482
21482
  // MIPMAP_MODES.POW2,
21483
21483
  },
@@ -21494,7 +21494,7 @@ Object.defineProperties(tt, {
21494
21494
  return vt.defaultOptions.anisotropicLevel;
21495
21495
  },
21496
21496
  set(r) {
21497
- wt(
21497
+ At(
21498
21498
  "7.1.0",
21499
21499
  "settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"
21500
21500
  ), vt.defaultOptions.anisotropicLevel = r;
@@ -21511,7 +21511,7 @@ Object.defineProperties(tt, {
21511
21511
  */
21512
21512
  FILTER_RESOLUTION: {
21513
21513
  get() {
21514
- return wt("7.1.0", "settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"), Oe.defaultResolution;
21514
+ return At("7.1.0", "settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"), Oe.defaultResolution;
21515
21515
  },
21516
21516
  set(r) {
21517
21517
  Oe.defaultResolution = r;
@@ -21528,7 +21528,7 @@ Object.defineProperties(tt, {
21528
21528
  */
21529
21529
  FILTER_MULTISAMPLE: {
21530
21530
  get() {
21531
- return wt("7.1.0", "settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"), Oe.defaultMultisample;
21531
+ return At("7.1.0", "settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"), Oe.defaultMultisample;
21532
21532
  },
21533
21533
  set(r) {
21534
21534
  Oe.defaultMultisample = r;
@@ -21548,7 +21548,7 @@ Object.defineProperties(tt, {
21548
21548
  return _i.defaultMaxTextures;
21549
21549
  },
21550
21550
  set(r) {
21551
- wt("7.1.0", "settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"), _i.defaultMaxTextures = r;
21551
+ At("7.1.0", "settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"), _i.defaultMaxTextures = r;
21552
21552
  }
21553
21553
  },
21554
21554
  /**
@@ -21567,7 +21567,7 @@ Object.defineProperties(tt, {
21567
21567
  return _i.defaultBatchSize;
21568
21568
  },
21569
21569
  set(r) {
21570
- wt("7.1.0", "settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"), _i.defaultBatchSize = r;
21570
+ At("7.1.0", "settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"), _i.defaultBatchSize = r;
21571
21571
  }
21572
21572
  },
21573
21573
  /**
@@ -21584,7 +21584,7 @@ Object.defineProperties(tt, {
21584
21584
  return _i.canUploadSameBuffer;
21585
21585
  },
21586
21586
  set(r) {
21587
- wt("7.1.0", "settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"), _i.canUploadSameBuffer = r;
21587
+ At("7.1.0", "settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"), _i.canUploadSameBuffer = r;
21588
21588
  }
21589
21589
  },
21590
21590
  /**
@@ -21601,7 +21601,7 @@ Object.defineProperties(tt, {
21601
21601
  return vi.defaultMode;
21602
21602
  },
21603
21603
  set(r) {
21604
- wt("7.1.0", "settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"), vi.defaultMode = r;
21604
+ At("7.1.0", "settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"), vi.defaultMode = r;
21605
21605
  }
21606
21606
  },
21607
21607
  /**
@@ -21618,7 +21618,7 @@ Object.defineProperties(tt, {
21618
21618
  return vi.defaultMaxIdle;
21619
21619
  },
21620
21620
  set(r) {
21621
- wt("7.1.0", "settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"), vi.defaultMaxIdle = r;
21621
+ At("7.1.0", "settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"), vi.defaultMaxIdle = r;
21622
21622
  }
21623
21623
  },
21624
21624
  /**
@@ -21635,7 +21635,7 @@ Object.defineProperties(tt, {
21635
21635
  return vi.defaultCheckCountMax;
21636
21636
  },
21637
21637
  set(r) {
21638
- wt("7.1.0", "settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"), vi.defaultCheckCountMax = r;
21638
+ At("7.1.0", "settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"), vi.defaultCheckCountMax = r;
21639
21639
  }
21640
21640
  },
21641
21641
  /**
@@ -21652,7 +21652,7 @@ Object.defineProperties(tt, {
21652
21652
  return Lr.defaultVertexPrecision;
21653
21653
  },
21654
21654
  set(r) {
21655
- wt("7.1.0", "settings.PRECISION_VERTEX is deprecated, use Program.defaultVertexPrecision"), Lr.defaultVertexPrecision = r;
21655
+ At("7.1.0", "settings.PRECISION_VERTEX is deprecated, use Program.defaultVertexPrecision"), Lr.defaultVertexPrecision = r;
21656
21656
  }
21657
21657
  },
21658
21658
  /**
@@ -21669,7 +21669,7 @@ Object.defineProperties(tt, {
21669
21669
  return Lr.defaultFragmentPrecision;
21670
21670
  },
21671
21671
  set(r) {
21672
- wt("7.1.0", "settings.PRECISION_FRAGMENT is deprecated, use Program.defaultFragmentPrecision"), Lr.defaultFragmentPrecision = r;
21672
+ At("7.1.0", "settings.PRECISION_FRAGMENT is deprecated, use Program.defaultFragmentPrecision"), Lr.defaultFragmentPrecision = r;
21673
21673
  }
21674
21674
  }
21675
21675
  });
@@ -22015,7 +22015,7 @@ Object.defineProperties(tt, {
22015
22015
  return He.targetFPMS;
22016
22016
  },
22017
22017
  set(r) {
22018
- wt("7.1.0", "settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"), He.targetFPMS = r;
22018
+ At("7.1.0", "settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"), He.targetFPMS = r;
22019
22019
  }
22020
22020
  }
22021
22021
  });
@@ -22320,7 +22320,7 @@ const oo = class dh extends Zw {
22320
22320
  "_multisample"
22321
22321
  ]
22322
22322
  };
22323
- this.setup(e), "useContextAlpha" in t && (wt("7.0.0", "options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"), t.premultipliedAlpha = t.useContextAlpha && t.useContextAlpha !== "notMultiplied", t.backgroundAlpha = t.useContextAlpha === !1 ? 1 : t.backgroundAlpha), this._plugin.rendererPlugins = dh.__plugins, this.options = t, this.startup.run(this.options);
22323
+ this.setup(e), "useContextAlpha" in t && (At("7.0.0", "options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"), t.premultipliedAlpha = t.useContextAlpha && t.useContextAlpha !== "notMultiplied", t.backgroundAlpha = t.useContextAlpha === !1 ? 1 : t.backgroundAlpha), this._plugin.rendererPlugins = dh.__plugins, this.options = t, this.startup.run(this.options);
22324
22324
  }
22325
22325
  /**
22326
22326
  * Create renderer if WebGL is available. Overrideable
@@ -22438,7 +22438,7 @@ const oo = class dh extends Zw {
22438
22438
  * @deprecated since 7.0.0
22439
22439
  */
22440
22440
  get clearBeforeRender() {
22441
- return wt("7.0.0", "renderer.clearBeforeRender has been deprecated, please use renderer.background.clearBeforeRender instead."), this.background.clearBeforeRender;
22441
+ return At("7.0.0", "renderer.clearBeforeRender has been deprecated, please use renderer.background.clearBeforeRender instead."), this.background.clearBeforeRender;
22442
22442
  }
22443
22443
  /**
22444
22444
  * Pass-thru setting for the canvas' context `alpha` property. This is typically
@@ -22447,7 +22447,7 @@ const oo = class dh extends Zw {
22447
22447
  * @member {boolean}
22448
22448
  */
22449
22449
  get useContextAlpha() {
22450
- return wt("7.0.0", "renderer.useContextAlpha has been deprecated, please use renderer.context.premultipliedAlpha instead."), this.context.useContextAlpha;
22450
+ return At("7.0.0", "renderer.useContextAlpha has been deprecated, please use renderer.context.premultipliedAlpha instead."), this.context.useContextAlpha;
22451
22451
  }
22452
22452
  /**
22453
22453
  * readonly drawing buffer preservation
@@ -22455,7 +22455,7 @@ const oo = class dh extends Zw {
22455
22455
  * @deprecated since 7.0.0
22456
22456
  */
22457
22457
  get preserveDrawingBuffer() {
22458
- return wt("7.0.0", "renderer.preserveDrawingBuffer has been deprecated, we cannot truly know this unless pixi created the context"), this.context.preserveDrawingBuffer;
22458
+ return At("7.0.0", "renderer.preserveDrawingBuffer has been deprecated, we cannot truly know this unless pixi created the context"), this.context.preserveDrawingBuffer;
22459
22459
  }
22460
22460
  /**
22461
22461
  * The background color to fill if not transparent
@@ -22463,10 +22463,10 @@ const oo = class dh extends Zw {
22463
22463
  * @deprecated since 7.0.0
22464
22464
  */
22465
22465
  get backgroundColor() {
22466
- return wt("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead."), this.background.color;
22466
+ return At("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead."), this.background.color;
22467
22467
  }
22468
22468
  set backgroundColor(t) {
22469
- wt("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead."), this.background.color = t;
22469
+ At("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead."), this.background.color = t;
22470
22470
  }
22471
22471
  /**
22472
22472
  * The background color alpha. Setting this to 0 will make the canvas transparent.
@@ -22474,19 +22474,19 @@ const oo = class dh extends Zw {
22474
22474
  * @deprecated since 7.0.0
22475
22475
  */
22476
22476
  get backgroundAlpha() {
22477
- return wt("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."), this.background.alpha;
22477
+ return At("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."), this.background.alpha;
22478
22478
  }
22479
22479
  /**
22480
22480
  * @deprecated since 7.0.0
22481
22481
  */
22482
22482
  set backgroundAlpha(t) {
22483
- wt("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."), this.background.alpha = t;
22483
+ At("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."), this.background.alpha = t;
22484
22484
  }
22485
22485
  /**
22486
22486
  * @deprecated since 7.0.0
22487
22487
  */
22488
22488
  get powerPreference() {
22489
- return wt("7.0.0", "renderer.powerPreference has been deprecated, we can only know this if pixi creates the context"), this.context.powerPreference;
22489
+ return At("7.0.0", "renderer.powerPreference has been deprecated, we can only know this if pixi creates the context"), this.context.powerPreference;
22490
22490
  }
22491
22491
  /**
22492
22492
  * Useful function that returns a texture of the display object that can then be used to create sprites
@@ -23970,7 +23970,7 @@ Object.defineProperties(tt, {
23970
23970
  return ir.defaultSortableChildren;
23971
23971
  },
23972
23972
  set(r) {
23973
- wt("7.1.0", "settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"), ir.defaultSortableChildren = r;
23973
+ At("7.1.0", "settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"), ir.defaultSortableChildren = r;
23974
23974
  }
23975
23975
  }
23976
23976
  });
@@ -25703,7 +25703,7 @@ const Kd = {
25703
25703
  Object.entries(Kd).forEach(([r, t]) => {
25704
25704
  Object.defineProperty(Kd, r, {
25705
25705
  get() {
25706
- return wt("7.1.0", `filters.${r} has moved to ${r}`), t;
25706
+ return At("7.1.0", `filters.${r} has moved to ${r}`), t;
25707
25707
  }
25708
25708
  });
25709
25709
  });
@@ -27194,7 +27194,7 @@ const BA = {
27194
27194
  return this._internalInteractive ?? Zd(Eh.defaultEventMode);
27195
27195
  },
27196
27196
  set interactive(r) {
27197
- wt(
27197
+ At(
27198
27198
  "7.2.0",
27199
27199
  // eslint-disable-next-line max-len
27200
27200
  "Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."
@@ -28536,7 +28536,7 @@ class bS {
28536
28536
  }
28537
28537
  add(t, e, i, s, n) {
28538
28538
  const o = [];
28539
- typeof t == "string" || Array.isArray(t) && typeof t[0] == "string" ? (wt("7.2.0", `Assets.add now uses an object instead of individual parameters.
28539
+ typeof t == "string" || Array.isArray(t) && typeof t[0] == "string" ? (At("7.2.0", `Assets.add now uses an object instead of individual parameters.
28540
28540
  Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), o.push({ alias: t, src: e, data: i, format: s, loadParser: n })) : Array.isArray(t) ? o.push(...t) : o.push(t);
28541
28541
  let a;
28542
28542
  a = (l) => {
@@ -29022,7 +29022,7 @@ class ES {
29022
29022
  return Zo.config.preferWorkers;
29023
29023
  }
29024
29024
  set preferWorkers(t) {
29025
- wt("7.2.0", "Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."), this.setPreferences({ preferWorkers: t });
29025
+ At("7.2.0", "Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."), this.setPreferences({ preferWorkers: t });
29026
29026
  }
29027
29027
  /**
29028
29028
  * General setter for preferences. This is a helper function to set preferences on all parsers.
@@ -32899,7 +32899,7 @@ const wC = {
32899
32899
  return Xr.experimentalLetterSpacing;
32900
32900
  }
32901
32901
  static set experimentalLetterSpacing(t) {
32902
- wt(
32902
+ At(
32903
32903
  "7.1.0",
32904
32904
  "Text.experimentalLetterSpacing is deprecated, use TextMetrics.experimentalLetterSpacing"
32905
32905
  ), Xr.experimentalLetterSpacing = t;
@@ -33305,7 +33305,7 @@ Object.defineProperties(tt, {
33305
33305
  return Rh.uploadsPerFrame;
33306
33306
  },
33307
33307
  set(r) {
33308
- wt("7.1.0", "settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"), Rh.uploadsPerFrame = r;
33308
+ At("7.1.0", "settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"), Rh.uploadsPerFrame = r;
33309
33309
  }
33310
33310
  }
33311
33311
  });
@@ -35122,7 +35122,7 @@ const Nh = (r) => {
35122
35122
  Wr = !1;
35123
35123
  const { selector: E } = g.target, M = typeof a == "function" ? a(g, x) : a;
35124
35124
  let S;
35125
- E.type === At.RECTANGLE ? S = e2(e, E, M) : E.type === At.POLYGON ? S = i2(e, E, M) : E.type === At.ELLIPSE ? S = r2(e, E, M) : E.type === At.MULTIPOLYGLON ? S = s2(e, E, M) : console.warn(`Unsupported shape type: ${E.type}`), S && s.set(g.id, { annotation: g, ...S });
35125
+ E.type === St.RECTANGLE ? S = e2(e, E, M) : E.type === St.POLYGON ? S = i2(e, E, M) : E.type === St.ELLIPSE ? S = r2(e, E, M) : E.type === St.MULTIPOLYGLON ? S = s2(e, E, M) : console.warn(`Unsupported shape type: ${E.type}`), S && s.set(g.id, { annotation: g, ...S });
35126
35126
  }, h = (g) => {
35127
35127
  const x = s.get(g.id);
35128
35128
  x && (s.delete(g.id), x.fill.destroy(), x.stroke.destroy());
@@ -35239,13 +35239,13 @@ function o2(r, t, e) {
35239
35239
  l.addHandler("canvas-press", v), l.addHandler("canvas-release", x), l.addHandler("update-viewport", m.redraw), l.addHandler("animation-finish", U);
35240
35240
  const I = (O) => O.filter((B) => ze(B)), A = (O) => ze(O.oldValue) && ze(O.newValue), T = (O) => {
35241
35241
  const { selector: B } = O.target;
35242
- if (B.type === At.POLYGON) {
35242
+ if (B.type === St.POLYGON) {
35243
35243
  const X = Uv(B);
35244
35244
  return {
35245
35245
  ...O,
35246
35246
  target: { ...O.target, selector: { ...X } }
35247
35247
  };
35248
- } else if (B.type === At.MULTIPOLYGLON) {
35248
+ } else if (B.type === St.MULTIPOLYGLON) {
35249
35249
  const X = Fv(B);
35250
35250
  return {
35251
35251
  ...O,
@@ -36449,9 +36449,9 @@ function Df(r) {
36449
36449
  function a(l, h) {
36450
36450
  return (
36451
36451
  /*tracked*/
36452
- l[8].annotation.target.selector.type === At.RECTANGLE ? 0 : (
36452
+ l[8].annotation.target.selector.type === St.RECTANGLE ? 0 : (
36453
36453
  /*tracked*/
36454
- l[8].annotation.target.selector.type === At.POLYGON ? 1 : -1
36454
+ l[8].annotation.target.selector.type === St.POLYGON ? 1 : -1
36455
36455
  )
36456
36456
  );
36457
36457
  }
@@ -36953,13 +36953,13 @@ function Gf(r) {
36953
36953
  function a(l, h) {
36954
36954
  return (
36955
36955
  /*a*/
36956
- l[10].target.selector.type === At.RECTANGLE ? 0 : (
36956
+ l[10].target.selector.type === St.RECTANGLE ? 0 : (
36957
36957
  /*a*/
36958
- l[10].target.selector.type === At.POLYGON ? 1 : (
36958
+ l[10].target.selector.type === St.POLYGON ? 1 : (
36959
36959
  /*a*/
36960
- l[10].target.selector.type === At.MULTIPOLYGLON ? 2 : (
36960
+ l[10].target.selector.type === St.MULTIPOLYGLON ? 2 : (
36961
36961
  /*a*/
36962
- l[10].target.selector.type === At.ELLIPSE ? 3 : -1
36962
+ l[10].target.selector.type === St.ELLIPSE ? 3 : -1
36963
36963
  )
36964
36964
  )
36965
36965
  )
@@ -37293,7 +37293,7 @@ const Hf = (r, t) => {
37293
37293
  };
37294
37294
  };
37295
37295
  export {
37296
- At as ShapeType,
37296
+ St as ShapeType,
37297
37297
  $f as UserSelectAction,
37298
37298
  hI as W3CImageFormat,
37299
37299
  lI as chainStyles,