@famibee/skynovel 1.29.2 → 1.29.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.
package/dist/web.js CHANGED
@@ -3059,9 +3059,7 @@ const _SysBase = class {
3059
3059
  addLayCls: () => {
3060
3060
  },
3061
3061
  searchPath: () => "",
3062
- getVal: () => {
3063
- return {};
3064
- },
3062
+ getVal: () => ({}),
3065
3063
  resume: () => {
3066
3064
  },
3067
3065
  render: () => {
@@ -3378,7 +3376,6 @@ const _Config = class {
3378
3376
  this.sys = sys;
3379
3377
  this.oCfg = {
3380
3378
  save_ns: "",
3381
- coder: { len: 864 },
3382
3379
  window: {
3383
3380
  width: 300,
3384
3381
  height: 300
@@ -3394,7 +3391,7 @@ const _Config = class {
3394
3391
  },
3395
3392
  log: { max_len: 1024 },
3396
3393
  init: {
3397
- bg_color: 0,
3394
+ bg_color: "#000000",
3398
3395
  tagch_msecwait: 10,
3399
3396
  auto_msecpagewait: 3500,
3400
3397
  escape: ""
@@ -3427,15 +3424,13 @@ const _Config = class {
3427
3424
  return c2;
3428
3425
  }
3429
3426
  async load(oCfg) {
3430
- var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _i;
3427
+ var _a3, _b3, _c3, _d2, _e, _f, _g, _h;
3431
3428
  this.oCfg.save_ns = (_a3 = oCfg == null ? void 0 : oCfg.save_ns) != null ? _a3 : this.oCfg.save_ns;
3432
- this.oCfg.coder = (_b3 = oCfg == null ? void 0 : oCfg.coder) != null ? _b3 : this.oCfg.coder;
3433
- CmnLib.stageW = this.oCfg.window.width = Number((_d2 = (_c3 = oCfg == null ? void 0 : oCfg.window) == null ? void 0 : _c3.width) != null ? _d2 : this.oCfg.window.width);
3434
- CmnLib.stageH = this.oCfg.window.height = Number((_f = (_e = oCfg == null ? void 0 : oCfg.window) == null ? void 0 : _e.height) != null ? _f : this.oCfg.window.height);
3429
+ CmnLib.stageW = this.oCfg.window.width = Number((_c3 = (_b3 = oCfg == null ? void 0 : oCfg.window) == null ? void 0 : _b3.width) != null ? _c3 : this.oCfg.window.width);
3430
+ CmnLib.stageH = this.oCfg.window.height = Number((_e = (_d2 = oCfg == null ? void 0 : oCfg.window) == null ? void 0 : _d2.height) != null ? _e : this.oCfg.window.height);
3435
3431
  this.oCfg.book = __spreadValues(__spreadValues({}, this.oCfg.book), oCfg.book);
3436
- this.oCfg.log.max_len = (_i = (_h = (_g = oCfg.log) == null ? void 0 : _g.max_len) == null ? void 0 : _h.max_len) != null ? _i : this.oCfg.log.max_len;
3432
+ this.oCfg.log.max_len = (_h = (_g = (_f = oCfg.log) == null ? void 0 : _f.max_len) == null ? void 0 : _g.max_len) != null ? _h : this.oCfg.log.max_len;
3437
3433
  this.oCfg.init = __spreadValues(__spreadValues({}, this.oCfg.init), oCfg.init);
3438
- this.oCfg.init.bg_color = parseColor(String(this.oCfg.init.bg_color));
3439
3434
  this.oCfg.debug = __spreadValues(__spreadValues({}, this.oCfg.debug), oCfg.debug);
3440
3435
  CmnLib.debugLog = this.oCfg.debug.debugLog;
3441
3436
  this.oCfg.debuger_token = oCfg.debuger_token;
@@ -3482,7 +3477,6 @@ const _Config = class {
3482
3477
  this.sys.ensureFileSync(fp);
3483
3478
  return fp;
3484
3479
  }
3485
- __privateGet$5(this, _REG_PATH).lastIndex = 0;
3486
3480
  const a2 = path.match(__privateGet$5(this, _REG_PATH));
3487
3481
  let fn = a2 ? a2[1] : path;
3488
3482
  const ext = a2 ? a2[2] : "";
@@ -3693,7 +3687,6 @@ class Grammar {
3693
3687
  return;
3694
3688
  for (let i2 = scr.len - 1; i2 >= start_idx; --i2) {
3695
3689
  const token = scr.aToken[i2];
3696
- this.REG_TOKEN_NOTXT.lastIndex = 0;
3697
3690
  if (this.REG_TOKEN_NOTXT.test(token.charAt(0)))
3698
3691
  continue;
3699
3692
  const lnum = scr.aLNum[i2];
@@ -3745,10 +3738,8 @@ class Grammar {
3745
3738
  throw "[bracket2macro] text\u3010" + op + "\u3011\u304C\u767B\u9332\u6E08\u307F\u306E\u62EC\u5F27\u30DE\u30AF\u30ED\u307E\u305F\u306F\u4E00\u6587\u5B57\u30DE\u30AF\u30ED\u3067\u3059";
3746
3739
  if (cl in __privateGet2(this, _hC2M))
3747
3740
  throw "[bracket2macro] text\u3010" + cl + "\u3011\u304C\u767B\u9332\u6E08\u307F\u306E\u62EC\u5F27\u30DE\u30AF\u30ED\u307E\u305F\u306F\u4E00\u6587\u5B57\u30DE\u30AF\u30ED\u3067\u3059";
3748
- __privateGet2(this, _REG_CANTC2M).lastIndex = 0;
3749
3741
  if (__privateGet2(this, _REG_CANTC2M).test(op))
3750
3742
  throw "[bracket2macro] text\u3010" + op + "\u3011\u306F\u62EC\u5F27\u30DE\u30AF\u30ED\u306B\u4F7F\u7528\u3067\u304D\u306A\u3044\u6587\u5B57\u3067\u3059";
3751
- __privateGet2(this, _REG_CANTC2M).lastIndex = 0;
3752
3743
  if (__privateGet2(this, _REG_CANTC2M).test(cl))
3753
3744
  throw "[bracket2macro] text\u3010" + cl + "\u3011\u306F\u62EC\u5F27\u30DE\u30AF\u30ED\u306B\u4F7F\u7528\u3067\u304D\u306A\u3044\u6587\u5B57\u3067\u3059";
3754
3745
  __privateGet2(this, _hC2M)[cl] = "0";
@@ -3764,7 +3755,6 @@ class Grammar {
3764
3755
  (_a3 = __privateGet2(this, _hC2M)) != null ? _a3 : __privateSet2(this, _hC2M, {});
3765
3756
  if (char in __privateGet2(this, _hC2M))
3766
3757
  throw "[char2macro] char\u3010" + char + "\u3011\u304C\u767B\u9332\u6E08\u307F\u306E\u62EC\u5F27\u30DE\u30AF\u30ED\u307E\u305F\u306F\u4E00\u6587\u5B57\u30DE\u30AF\u30ED\u3067\u3059";
3767
- __privateGet2(this, _REG_CANTC2M).lastIndex = 0;
3768
3758
  if (__privateGet2(this, _REG_CANTC2M).test(char))
3769
3759
  throw "[char2macro] char\u3010" + char + "\u3011\u306F\u4E00\u6587\u5B57\u30DE\u30AF\u30ED\u306B\u4F7F\u7528\u3067\u304D\u306A\u3044\u6587\u5B57\u3067\u3059";
3770
3760
  if (!name2)
@@ -5471,7 +5461,6 @@ castAuto_fn = function(val) {
5471
5461
  return null;
5472
5462
  if (s_val === "undefined")
5473
5463
  return void 0;
5474
- __privateGet2(this, _REG_NUMERICLITERAL).lastIndex = 0;
5475
5464
  if (__privateGet2(this, _REG_NUMERICLITERAL).test(s_val))
5476
5465
  return parseFloat(s_val);
5477
5466
  return val;
@@ -6327,13 +6316,13 @@ function isMobile$1(param) {
6327
6316
  return result;
6328
6317
  }
6329
6318
  /*!
6330
- * @pixi/settings - v6.2.2
6331
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6319
+ * @pixi/settings - v6.3.0
6320
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6332
6321
  *
6333
6322
  * @pixi/settings is licensed under the MIT License.
6334
6323
  * http://www.opensource.org/licenses/mit-license
6335
6324
  */
6336
- var isMobile = isMobile$1(self.navigator);
6325
+ var isMobile = isMobile$1(globalThis.navigator);
6337
6326
  function maxRecommendedTextures(max) {
6338
6327
  var allowMax = true;
6339
6328
  if (isMobile.tablet || isMobile.phone) {
@@ -6362,8 +6351,8 @@ function canUploadSameBuffer() {
6362
6351
  return !isMobile.apple.device;
6363
6352
  }
6364
6353
  /*!
6365
- * @pixi/constants - v6.2.2
6366
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6354
+ * @pixi/constants - v6.3.0
6355
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6367
6356
  *
6368
6357
  * @pixi/constants is licensed under the MIT License.
6369
6358
  * http://www.opensource.org/licenses/mit-license
@@ -6585,8 +6574,8 @@ var settings = {
6585
6574
  ROUND_PIXELS: false
6586
6575
  };
6587
6576
  /*!
6588
- * @pixi/constants - v6.2.2
6589
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6577
+ * @pixi/constants - v6.3.0
6578
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6590
6579
  *
6591
6580
  * @pixi/constants is licensed under the MIT License.
6592
6581
  * http://www.opensource.org/licenses/mit-license
@@ -8198,8 +8187,8 @@ Url$1.prototype.parseHost = function() {
8198
8187
  this.hostname = host;
8199
8188
  };
8200
8189
  /*!
8201
- * @pixi/utils - v6.2.2
8202
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8190
+ * @pixi/utils - v6.3.0
8191
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8203
8192
  *
8204
8193
  * @pixi/utils is licensed under the MIT License.
8205
8194
  * http://www.opensource.org/licenses/mit-license
@@ -8212,7 +8201,7 @@ var url = {
8212
8201
  settings.RETINA_PREFIX = /@([0-9\.]+)x/;
8213
8202
  settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
8214
8203
  var saidHello = false;
8215
- var VERSION = "6.2.2";
8204
+ var VERSION = "6.3.0";
8216
8205
  function skipHello() {
8217
8206
  saidHello = true;
8218
8207
  }
@@ -8234,9 +8223,9 @@ function sayHello(type) {
8234
8223
  "color: #ff2424; background: #fff; padding:5px 0;",
8235
8224
  "color: #ff2424; background: #fff; padding:5px 0;"
8236
8225
  ];
8237
- (_a3 = self.console).log.apply(_a3, args);
8238
- } else if (self.console) {
8239
- self.console.log("PixiJS " + VERSION + " - " + type + " - http://www.pixijs.com/");
8226
+ (_a3 = globalThis.console).log.apply(_a3, args);
8227
+ } else if (globalThis.console) {
8228
+ globalThis.console.log("PixiJS " + VERSION + " - " + type + " - http://www.pixijs.com/");
8240
8229
  }
8241
8230
  saidHello = true;
8242
8231
  }
@@ -8249,7 +8238,7 @@ function isWebGLSupported() {
8249
8238
  failIfMajorPerformanceCaveat: settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT
8250
8239
  };
8251
8240
  try {
8252
- if (!self.WebGLRenderingContext) {
8241
+ if (!globalThis.WebGLRenderingContext) {
8253
8242
  return false;
8254
8243
  }
8255
8244
  var canvas2 = document.createElement("canvas");
@@ -8579,14 +8568,14 @@ function hex2rgb(hex, out) {
8579
8568
  }
8580
8569
  function hex2string(hex) {
8581
8570
  var hexString = hex.toString(16);
8582
- hexString = "000000".substr(0, 6 - hexString.length) + hexString;
8571
+ hexString = "000000".substring(0, 6 - hexString.length) + hexString;
8583
8572
  return "#" + hexString;
8584
8573
  }
8585
8574
  function string2hex(string) {
8586
8575
  if (typeof string === "string") {
8587
8576
  string = cssColorNames[string.toLowerCase()] || string;
8588
8577
  if (string[0] === "#") {
8589
- string = string.substr(1);
8578
+ string = string.slice(1);
8590
8579
  }
8591
8580
  }
8592
8581
  return parseInt(string, 16);
@@ -8875,12 +8864,12 @@ function trimCanvas(canvas2) {
8875
8864
  var tempAnchor$1;
8876
8865
  function determineCrossOrigin(url$12, loc) {
8877
8866
  if (loc === void 0) {
8878
- loc = self.location;
8867
+ loc = globalThis.location;
8879
8868
  }
8880
8869
  if (url$12.indexOf("data:") === 0) {
8881
8870
  return "";
8882
8871
  }
8883
- loc = loc || self.location;
8872
+ loc = loc || globalThis.location;
8884
8873
  if (!tempAnchor$1) {
8885
8874
  tempAnchor$1 = document.createElement("a");
8886
8875
  }
@@ -8900,8 +8889,8 @@ function getResolutionOfUrl(url2, defaultValue2) {
8900
8889
  return defaultValue2 !== void 0 ? defaultValue2 : 1;
8901
8890
  }
8902
8891
  /*!
8903
- * @pixi/runner - v6.2.2
8904
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8892
+ * @pixi/runner - v6.3.0
8893
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8905
8894
  *
8906
8895
  * @pixi/runner is licensed under the MIT License.
8907
8896
  * http://www.opensource.org/licenses/mit-license
@@ -8982,8 +8971,8 @@ Object.defineProperties(Runner.prototype, {
8982
8971
  run: { value: Runner.prototype.emit }
8983
8972
  });
8984
8973
  /*!
8985
- * @pixi/ticker - v6.2.2
8986
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8974
+ * @pixi/ticker - v6.3.0
8975
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8987
8976
  *
8988
8977
  * @pixi/ticker is licensed under the MIT License.
8989
8978
  * http://www.opensource.org/licenses/mit-license
@@ -9339,8 +9328,8 @@ var TickerPlugin = function() {
9339
9328
  return TickerPlugin2;
9340
9329
  }();
9341
9330
  /*!
9342
- * @pixi/math - v6.2.2
9343
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
9331
+ * @pixi/math - v6.3.0
9332
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
9344
9333
  *
9345
9334
  * @pixi/math is licensed under the MIT License.
9346
9335
  * http://www.opensource.org/licenses/mit-license
@@ -9356,6 +9345,50 @@ var SHAPES;
9356
9345
  SHAPES2[SHAPES2["ELIP"] = 3] = "ELIP";
9357
9346
  SHAPES2[SHAPES2["RREC"] = 4] = "RREC";
9358
9347
  })(SHAPES || (SHAPES = {}));
9348
+ var Point = function() {
9349
+ function Point2(x2, y2) {
9350
+ if (x2 === void 0) {
9351
+ x2 = 0;
9352
+ }
9353
+ if (y2 === void 0) {
9354
+ y2 = 0;
9355
+ }
9356
+ this.x = 0;
9357
+ this.y = 0;
9358
+ this.x = x2;
9359
+ this.y = y2;
9360
+ }
9361
+ Point2.prototype.clone = function() {
9362
+ return new Point2(this.x, this.y);
9363
+ };
9364
+ Point2.prototype.copyFrom = function(p2) {
9365
+ this.set(p2.x, p2.y);
9366
+ return this;
9367
+ };
9368
+ Point2.prototype.copyTo = function(p2) {
9369
+ p2.set(this.x, this.y);
9370
+ return p2;
9371
+ };
9372
+ Point2.prototype.equals = function(p2) {
9373
+ return p2.x === this.x && p2.y === this.y;
9374
+ };
9375
+ Point2.prototype.set = function(x2, y2) {
9376
+ if (x2 === void 0) {
9377
+ x2 = 0;
9378
+ }
9379
+ if (y2 === void 0) {
9380
+ y2 = x2;
9381
+ }
9382
+ this.x = x2;
9383
+ this.y = y2;
9384
+ return this;
9385
+ };
9386
+ Point2.prototype.toString = function() {
9387
+ return "[@pixi/math:Point x=" + this.x + " y=" + this.y + "]";
9388
+ };
9389
+ return Point2;
9390
+ }();
9391
+ var tempPoints$1 = [new Point(), new Point(), new Point(), new Point()];
9359
9392
  var Rectangle = function() {
9360
9393
  function Rectangle2(x2, y2, width, height) {
9361
9394
  if (x2 === void 0) {
@@ -9439,6 +9472,62 @@ var Rectangle = function() {
9439
9472
  }
9440
9473
  return false;
9441
9474
  };
9475
+ Rectangle2.prototype.intersects = function(other, transform) {
9476
+ if (!transform) {
9477
+ var x0_1 = this.x < other.x ? other.x : this.x;
9478
+ var x1_1 = this.right > other.right ? other.right : this.right;
9479
+ if (x1_1 <= x0_1) {
9480
+ return false;
9481
+ }
9482
+ var y0_1 = this.y < other.y ? other.y : this.y;
9483
+ var y1_1 = this.bottom > other.bottom ? other.bottom : this.bottom;
9484
+ return y1_1 > y0_1;
9485
+ }
9486
+ var x0 = this.left;
9487
+ var x1 = this.right;
9488
+ var y0 = this.top;
9489
+ var y1 = this.bottom;
9490
+ if (x1 <= x0 || y1 <= y0) {
9491
+ return false;
9492
+ }
9493
+ var lt = tempPoints$1[0].set(other.left, other.top);
9494
+ var lb = tempPoints$1[1].set(other.left, other.bottom);
9495
+ var rt = tempPoints$1[2].set(other.right, other.top);
9496
+ var rb = tempPoints$1[3].set(other.right, other.bottom);
9497
+ if (rt.x <= lt.x || lb.y <= lt.y) {
9498
+ return false;
9499
+ }
9500
+ var s2 = Math.sign(transform.a * transform.d - transform.b * transform.c);
9501
+ if (s2 === 0) {
9502
+ return false;
9503
+ }
9504
+ transform.apply(lt, lt);
9505
+ transform.apply(lb, lb);
9506
+ transform.apply(rt, rt);
9507
+ transform.apply(rb, rb);
9508
+ if (Math.max(lt.x, lb.x, rt.x, rb.x) <= x0 || Math.min(lt.x, lb.x, rt.x, rb.x) >= x1 || Math.max(lt.y, lb.y, rt.y, rb.y) <= y0 || Math.min(lt.y, lb.y, rt.y, rb.y) >= y1) {
9509
+ return false;
9510
+ }
9511
+ var nx = s2 * (lb.y - lt.y);
9512
+ var ny = s2 * (lt.x - lb.x);
9513
+ var n00 = nx * x0 + ny * y0;
9514
+ var n10 = nx * x1 + ny * y0;
9515
+ var n01 = nx * x0 + ny * y1;
9516
+ var n11 = nx * x1 + ny * y1;
9517
+ if (Math.max(n00, n10, n01, n11) <= nx * lt.x + ny * lt.y || Math.min(n00, n10, n01, n11) >= nx * rb.x + ny * rb.y) {
9518
+ return false;
9519
+ }
9520
+ var mx = s2 * (lt.y - rt.y);
9521
+ var my = s2 * (rt.x - lt.x);
9522
+ var m00 = mx * x0 + my * y0;
9523
+ var m10 = mx * x1 + my * y0;
9524
+ var m01 = mx * x0 + my * y1;
9525
+ var m11 = mx * x1 + my * y1;
9526
+ if (Math.max(m00, m10, m01, m11) <= mx * lt.x + my * lt.y || Math.min(m00, m10, m01, m11) >= mx * rb.x + my * rb.y) {
9527
+ return false;
9528
+ }
9529
+ return true;
9530
+ };
9442
9531
  Rectangle2.prototype.pad = function(paddingX, paddingY) {
9443
9532
  if (paddingX === void 0) {
9444
9533
  paddingX = 0;
@@ -9684,49 +9773,6 @@ var RoundedRectangle = function() {
9684
9773
  };
9685
9774
  return RoundedRectangle2;
9686
9775
  }();
9687
- var Point = function() {
9688
- function Point2(x2, y2) {
9689
- if (x2 === void 0) {
9690
- x2 = 0;
9691
- }
9692
- if (y2 === void 0) {
9693
- y2 = 0;
9694
- }
9695
- this.x = 0;
9696
- this.y = 0;
9697
- this.x = x2;
9698
- this.y = y2;
9699
- }
9700
- Point2.prototype.clone = function() {
9701
- return new Point2(this.x, this.y);
9702
- };
9703
- Point2.prototype.copyFrom = function(p2) {
9704
- this.set(p2.x, p2.y);
9705
- return this;
9706
- };
9707
- Point2.prototype.copyTo = function(p2) {
9708
- p2.set(this.x, this.y);
9709
- return p2;
9710
- };
9711
- Point2.prototype.equals = function(p2) {
9712
- return p2.x === this.x && p2.y === this.y;
9713
- };
9714
- Point2.prototype.set = function(x2, y2) {
9715
- if (x2 === void 0) {
9716
- x2 = 0;
9717
- }
9718
- if (y2 === void 0) {
9719
- y2 = x2;
9720
- }
9721
- this.x = x2;
9722
- this.y = y2;
9723
- return this;
9724
- };
9725
- Point2.prototype.toString = function() {
9726
- return "[@pixi/math:Point x=" + this.x + " y=" + this.y + "]";
9727
- };
9728
- return Point2;
9729
- }();
9730
9776
  var ObservablePoint = function() {
9731
9777
  function ObservablePoint2(cb, scope, x2, y2) {
9732
9778
  if (x2 === void 0) {
@@ -10255,8 +10301,8 @@ var Transform = function() {
10255
10301
  return Transform2;
10256
10302
  }();
10257
10303
  /*!
10258
- * @pixi/core - v6.2.2
10259
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
10304
+ * @pixi/core - v6.3.0
10305
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
10260
10306
  *
10261
10307
  * @pixi/core is licensed under the MIT License.
10262
10308
  * http://www.opensource.org/licenses/mit-license
@@ -10895,6 +10941,15 @@ var BaseImageResource = function(_super) {
10895
10941
  var width = baseTexture.realWidth;
10896
10942
  var height = baseTexture.realHeight;
10897
10943
  source = source || this.source;
10944
+ if (source instanceof HTMLImageElement) {
10945
+ if (!source.complete || source.naturalWidth === 0) {
10946
+ return false;
10947
+ }
10948
+ } else if (source instanceof HTMLVideoElement) {
10949
+ if (source.readyState <= 1) {
10950
+ return false;
10951
+ }
10952
+ }
10898
10953
  gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, baseTexture.alphaMode === ALPHA_MODES$3.UNPACK);
10899
10954
  if (!this.noSubImage && baseTexture.target === gl.TEXTURE_2D && glTexture.width === width && glTexture.height === height) {
10900
10955
  gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, baseTexture.format, glTexture.type, source);
@@ -10926,11 +10981,11 @@ var CanvasResource = function(_super) {
10926
10981
  return _super.call(this, source) || this;
10927
10982
  }
10928
10983
  CanvasResource2.test = function(source) {
10929
- var OffscreenCanvas2 = self.OffscreenCanvas;
10984
+ var OffscreenCanvas2 = globalThis.OffscreenCanvas;
10930
10985
  if (OffscreenCanvas2 && source instanceof OffscreenCanvas2) {
10931
10986
  return true;
10932
10987
  }
10933
- return self.HTMLCanvasElement && source instanceof HTMLCanvasElement;
10988
+ return globalThis.HTMLCanvasElement && source instanceof HTMLCanvasElement;
10934
10989
  };
10935
10990
  return CanvasResource2;
10936
10991
  }(BaseImageResource);
@@ -11021,7 +11076,7 @@ var ImageResource = function(_super) {
11021
11076
  _this.url = source.src;
11022
11077
  _this._process = null;
11023
11078
  _this.preserveBitmap = false;
11024
- _this.createBitmap = (options.createBitmap !== void 0 ? options.createBitmap : settings.CREATE_IMAGE_BITMAP) && !!self.createImageBitmap;
11079
+ _this.createBitmap = (options.createBitmap !== void 0 ? options.createBitmap : settings.CREATE_IMAGE_BITMAP) && !!globalThis.createImageBitmap;
11025
11080
  _this.alphaMode = typeof options.alphaMode === "number" ? options.alphaMode : null;
11026
11081
  _this.bitmap = null;
11027
11082
  _this._load = null;
@@ -11073,10 +11128,10 @@ var ImageResource = function(_super) {
11073
11128
  if (this._process !== null) {
11074
11129
  return this._process;
11075
11130
  }
11076
- if (this.bitmap !== null || !self.createImageBitmap) {
11131
+ if (this.bitmap !== null || !globalThis.createImageBitmap) {
11077
11132
  return Promise.resolve(this);
11078
11133
  }
11079
- var createImageBitmap = self.createImageBitmap;
11134
+ var createImageBitmap = globalThis.createImageBitmap;
11080
11135
  var cors = !source.crossOrigin || source.crossOrigin === "anonymous";
11081
11136
  this._process = fetch(source.src, {
11082
11137
  mode: cors ? "cors" : "no-cors"
@@ -11265,7 +11320,7 @@ var VideoResource = function(_super) {
11265
11320
  var _a3 = source[i2], src = _a3.src, mime = _a3.mime;
11266
11321
  src = src || source[i2];
11267
11322
  var baseSrc = src.split("?").shift().toLowerCase();
11268
- var ext = baseSrc.substr(baseSrc.lastIndexOf(".") + 1);
11323
+ var ext = baseSrc.slice(baseSrc.lastIndexOf(".") + 1);
11269
11324
  mime = mime || VideoResource2.MIME_TYPES[ext] || "video/" + ext;
11270
11325
  sourceElement.src = src;
11271
11326
  sourceElement.type = mime;
@@ -11416,7 +11471,7 @@ var VideoResource = function(_super) {
11416
11471
  configurable: true
11417
11472
  });
11418
11473
  VideoResource2.test = function(source, extension) {
11419
- return self.HTMLVideoElement && source instanceof HTMLVideoElement || VideoResource2.TYPES.indexOf(extension) > -1;
11474
+ return globalThis.HTMLVideoElement && source instanceof HTMLVideoElement || VideoResource2.TYPES.indexOf(extension) > -1;
11420
11475
  };
11421
11476
  VideoResource2.TYPES = ["mp4", "m4v", "webm", "ogg", "ogv", "h264", "avi", "mov"];
11422
11477
  VideoResource2.MIME_TYPES = {
@@ -11432,7 +11487,7 @@ var ImageBitmapResource = function(_super) {
11432
11487
  return _super.call(this, source) || this;
11433
11488
  }
11434
11489
  ImageBitmapResource2.test = function(source) {
11435
- return !!self.createImageBitmap && source instanceof ImageBitmap;
11490
+ return !!globalThis.createImageBitmap && source instanceof ImageBitmap;
11436
11491
  };
11437
11492
  return ImageBitmapResource2;
11438
11493
  }(BaseImageResource);
@@ -11573,6 +11628,9 @@ var Framebuffer = function() {
11573
11628
  var BaseRenderTexture = function(_super) {
11574
11629
  __extends$q(BaseRenderTexture2, _super);
11575
11630
  function BaseRenderTexture2(options) {
11631
+ if (options === void 0) {
11632
+ options = {};
11633
+ }
11576
11634
  var _this = this;
11577
11635
  if (typeof options === "number") {
11578
11636
  var width = arguments[0];
@@ -12070,8 +12128,8 @@ var RenderTexturePool = function() {
12070
12128
  multisample = MSAA_QUALITY$3.NONE;
12071
12129
  }
12072
12130
  var key;
12073
- minWidth = Math.ceil(minWidth * resolution);
12074
- minHeight = Math.ceil(minHeight * resolution);
12131
+ minWidth = Math.ceil(minWidth * resolution - 1e-6);
12132
+ minHeight = Math.ceil(minHeight * resolution - 1e-6);
12075
12133
  if (!this.enableFullScreen || minWidth !== this._pixelsWidth || minHeight !== this._pixelsHeight) {
12076
12134
  minWidth = nextPow2(minWidth);
12077
12135
  minHeight = nextPow2(minHeight);
@@ -13054,7 +13112,7 @@ var ContextSystem = function() {
13054
13112
  };
13055
13113
  ContextSystem2.prototype.validateContext = function(gl) {
13056
13114
  var attributes = gl.getContextAttributes();
13057
- var isWebGl2 = "WebGL2RenderingContext" in self && gl instanceof self.WebGL2RenderingContext;
13115
+ var isWebGl2 = "WebGL2RenderingContext" in globalThis && gl instanceof globalThis.WebGL2RenderingContext;
13058
13116
  if (isWebGl2) {
13059
13117
  this.webGLVersion = 2;
13060
13118
  }
@@ -13373,7 +13431,7 @@ var FramebufferSystem = function() {
13373
13431
  var sameSize = sourcePixels.width === destPixels.width && sourcePixels.height === destPixels.height;
13374
13432
  this.bind(framebuffer);
13375
13433
  gl.bindFramebuffer(gl.READ_FRAMEBUFFER, fbo.framebuffer);
13376
- gl.blitFramebuffer(sourcePixels.x, sourcePixels.y, sourcePixels.width, sourcePixels.height, destPixels.x, destPixels.y, destPixels.width, destPixels.height, gl.COLOR_BUFFER_BIT, sameSize ? gl.NEAREST : gl.LINEAR);
13434
+ gl.blitFramebuffer(sourcePixels.left, sourcePixels.top, sourcePixels.right, sourcePixels.bottom, destPixels.left, destPixels.top, destPixels.right, destPixels.bottom, gl.COLOR_BUFFER_BIT, sameSize ? gl.NEAREST : gl.LINEAR);
13377
13435
  };
13378
13436
  FramebufferSystem2.prototype.disposeFramebuffer = function(framebuffer, contextLost) {
13379
13437
  var fbo = framebuffer.glFramebuffers[this.CONTEXT_UID];
@@ -15651,7 +15709,7 @@ var TextureGCSystem = function() {
15651
15709
  function mapTypeAndFormatToInternalFormat(gl) {
15652
15710
  var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _j, _k, _l2, _m, _o, _p2, _q, _r2, _s, _t, _u, _v, _w, _x;
15653
15711
  var table;
15654
- if ("WebGL2RenderingContext" in self && gl instanceof self.WebGL2RenderingContext) {
15712
+ if ("WebGL2RenderingContext" in globalThis && gl instanceof globalThis.WebGL2RenderingContext) {
15655
15713
  table = (_a3 = {}, _a3[TYPES$3.UNSIGNED_BYTE] = (_b3 = {}, _b3[FORMATS$3.RGBA] = gl.RGBA8, _b3[FORMATS$3.RGB] = gl.RGB8, _b3[FORMATS$3.RG] = gl.RG8, _b3[FORMATS$3.RED] = gl.R8, _b3[FORMATS$3.RGBA_INTEGER] = gl.RGBA8UI, _b3[FORMATS$3.RGB_INTEGER] = gl.RGB8UI, _b3[FORMATS$3.RG_INTEGER] = gl.RG8UI, _b3[FORMATS$3.RED_INTEGER] = gl.R8UI, _b3[FORMATS$3.ALPHA] = gl.ALPHA, _b3[FORMATS$3.LUMINANCE] = gl.LUMINANCE, _b3[FORMATS$3.LUMINANCE_ALPHA] = gl.LUMINANCE_ALPHA, _b3), _a3[TYPES$3.BYTE] = (_c3 = {}, _c3[FORMATS$3.RGBA] = gl.RGBA8_SNORM, _c3[FORMATS$3.RGB] = gl.RGB8_SNORM, _c3[FORMATS$3.RG] = gl.RG8_SNORM, _c3[FORMATS$3.RED] = gl.R8_SNORM, _c3[FORMATS$3.RGBA_INTEGER] = gl.RGBA8I, _c3[FORMATS$3.RGB_INTEGER] = gl.RGB8I, _c3[FORMATS$3.RG_INTEGER] = gl.RG8I, _c3[FORMATS$3.RED_INTEGER] = gl.R8I, _c3), _a3[TYPES$3.UNSIGNED_SHORT] = (_d2 = {}, _d2[FORMATS$3.RGBA_INTEGER] = gl.RGBA16UI, _d2[FORMATS$3.RGB_INTEGER] = gl.RGB16UI, _d2[FORMATS$3.RG_INTEGER] = gl.RG16UI, _d2[FORMATS$3.RED_INTEGER] = gl.R16UI, _d2[FORMATS$3.DEPTH_COMPONENT] = gl.DEPTH_COMPONENT16, _d2), _a3[TYPES$3.SHORT] = (_e = {}, _e[FORMATS$3.RGBA_INTEGER] = gl.RGBA16I, _e[FORMATS$3.RGB_INTEGER] = gl.RGB16I, _e[FORMATS$3.RG_INTEGER] = gl.RG16I, _e[FORMATS$3.RED_INTEGER] = gl.R16I, _e), _a3[TYPES$3.UNSIGNED_INT] = (_f = {}, _f[FORMATS$3.RGBA_INTEGER] = gl.RGBA32UI, _f[FORMATS$3.RGB_INTEGER] = gl.RGB32UI, _f[FORMATS$3.RG_INTEGER] = gl.RG32UI, _f[FORMATS$3.RED_INTEGER] = gl.R32UI, _f[FORMATS$3.DEPTH_COMPONENT] = gl.DEPTH_COMPONENT24, _f), _a3[TYPES$3.INT] = (_g = {}, _g[FORMATS$3.RGBA_INTEGER] = gl.RGBA32I, _g[FORMATS$3.RGB_INTEGER] = gl.RGB32I, _g[FORMATS$3.RG_INTEGER] = gl.RG32I, _g[FORMATS$3.RED_INTEGER] = gl.R32I, _g), _a3[TYPES$3.FLOAT] = (_h = {}, _h[FORMATS$3.RGBA] = gl.RGBA32F, _h[FORMATS$3.RGB] = gl.RGB32F, _h[FORMATS$3.RG] = gl.RG32F, _h[FORMATS$3.RED] = gl.R32F, _h[FORMATS$3.DEPTH_COMPONENT] = gl.DEPTH_COMPONENT32F, _h), _a3[TYPES$3.HALF_FLOAT] = (_j = {}, _j[FORMATS$3.RGBA] = gl.RGBA16F, _j[FORMATS$3.RGB] = gl.RGB16F, _j[FORMATS$3.RG] = gl.RG16F, _j[FORMATS$3.RED] = gl.R16F, _j), _a3[TYPES$3.UNSIGNED_SHORT_5_6_5] = (_k = {}, _k[FORMATS$3.RGB] = gl.RGB565, _k), _a3[TYPES$3.UNSIGNED_SHORT_4_4_4_4] = (_l2 = {}, _l2[FORMATS$3.RGBA] = gl.RGBA4, _l2), _a3[TYPES$3.UNSIGNED_SHORT_5_5_5_1] = (_m = {}, _m[FORMATS$3.RGBA] = gl.RGB5_A1, _m), _a3[TYPES$3.UNSIGNED_INT_2_10_10_10_REV] = (_o = {}, _o[FORMATS$3.RGBA] = gl.RGB10_A2, _o[FORMATS$3.RGBA_INTEGER] = gl.RGB10_A2UI, _o), _a3[TYPES$3.UNSIGNED_INT_10F_11F_11F_REV] = (_p2 = {}, _p2[FORMATS$3.RGB] = gl.R11F_G11F_B10F, _p2), _a3[TYPES$3.UNSIGNED_INT_5_9_9_9_REV] = (_q = {}, _q[FORMATS$3.RGB] = gl.RGB9_E5, _q), _a3[TYPES$3.UNSIGNED_INT_24_8] = (_r2 = {}, _r2[FORMATS$3.DEPTH_STENCIL] = gl.DEPTH24_STENCIL8, _r2), _a3[TYPES$3.FLOAT_32_UNSIGNED_INT_24_8_REV] = (_s = {}, _s[FORMATS$3.DEPTH_STENCIL] = gl.DEPTH32F_STENCIL8, _s), _a3);
15656
15714
  } else {
15657
15715
  table = (_t = {}, _t[TYPES$3.UNSIGNED_BYTE] = (_u = {}, _u[FORMATS$3.RGBA] = gl.RGBA, _u[FORMATS$3.RGB] = gl.RGB, _u[FORMATS$3.ALPHA] = gl.ALPHA, _u[FORMATS$3.LUMINANCE] = gl.LUMINANCE, _u[FORMATS$3.LUMINANCE_ALPHA] = gl.LUMINANCE_ALPHA, _u), _t[TYPES$3.UNSIGNED_SHORT_5_6_5] = (_v = {}, _v[FORMATS$3.RGB] = gl.RGB, _v), _t[TYPES$3.UNSIGNED_SHORT_4_4_4_4] = (_w = {}, _w[FORMATS$3.RGBA] = gl.RGBA, _w), _t[TYPES$3.UNSIGNED_SHORT_5_5_5_1] = (_x = {}, _x[FORMATS$3.RGBA] = gl.RGBA, _x), _t);
@@ -16845,8 +16903,8 @@ for (var name in _systems) {
16845
16903
  _loop_2(name);
16846
16904
  }
16847
16905
  /*!
16848
- * @pixi/loaders - v6.2.2
16849
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
16906
+ * @pixi/loaders - v6.3.0
16907
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
16850
16908
  *
16851
16909
  * @pixi/loaders is licensed under the MIT License.
16852
16910
  * http://www.opensource.org/licenses/mit-license
@@ -17010,7 +17068,7 @@ function parseUri(str2, opts) {
17010
17068
  });
17011
17069
  return uri;
17012
17070
  }
17013
- var useXdr = !!(self.XDomainRequest && !("withCredentials" in new XMLHttpRequest()));
17071
+ var useXdr = !!(globalThis.XDomainRequest && !("withCredentials" in new XMLHttpRequest()));
17014
17072
  var tempAnchor = null;
17015
17073
  var STATUS_NONE = 0;
17016
17074
  var STATUS_OK = 200;
@@ -17215,7 +17273,7 @@ var LoaderResource = function() {
17215
17273
  LoaderResource2.prototype._loadElement = function(type) {
17216
17274
  if (this.metadata.loadElement) {
17217
17275
  this.data = this.metadata.loadElement;
17218
- } else if (type === "image" && typeof self.Image !== "undefined") {
17276
+ } else if (type === "image" && typeof globalThis.Image !== "undefined") {
17219
17277
  this.data = new Image();
17220
17278
  } else {
17221
17279
  this.data = document.createElement(type);
@@ -17236,7 +17294,7 @@ var LoaderResource = function() {
17236
17294
  LoaderResource2.prototype._loadSourceElement = function(type) {
17237
17295
  if (this.metadata.loadElement) {
17238
17296
  this.data = this.metadata.loadElement;
17239
- } else if (type === "audio" && typeof self.Audio !== "undefined") {
17297
+ } else if (type === "audio" && typeof globalThis.Audio !== "undefined") {
17240
17298
  this.data = new Audio();
17241
17299
  } else {
17242
17300
  this.data = document.createElement(type);
@@ -17275,6 +17333,9 @@ var LoaderResource = function() {
17275
17333
  this.xhrType = this._determineXhrType();
17276
17334
  }
17277
17335
  var xhr = this.xhr = new XMLHttpRequest();
17336
+ if (this.crossOrigin === "use-credentials") {
17337
+ xhr.withCredentials = true;
17338
+ }
17278
17339
  xhr.open("GET", this.url, true);
17279
17340
  xhr.timeout = this.timeout;
17280
17341
  if (this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.JSON || this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.DOCUMENT) {
@@ -17293,7 +17354,7 @@ var LoaderResource = function() {
17293
17354
  if (typeof this.xhrType !== "string") {
17294
17355
  this.xhrType = this._determineXhrType();
17295
17356
  }
17296
- var xdr = this.xhr = new self.XDomainRequest();
17357
+ var xdr = this.xhr = new globalThis.XDomainRequest();
17297
17358
  xdr.timeout = this.timeout || 5e3;
17298
17359
  xdr.onerror = this._boundXhrOnError;
17299
17360
  xdr.ontimeout = this._boundXhrOnTimeout;
@@ -17363,7 +17424,7 @@ var LoaderResource = function() {
17363
17424
  }
17364
17425
  } else if (this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.DOCUMENT) {
17365
17426
  try {
17366
- if (self.DOMParser) {
17427
+ if (globalThis.DOMParser) {
17367
17428
  var domparser = new DOMParser();
17368
17429
  this.data = domparser.parseFromString(text2, "text/xml");
17369
17430
  } else {
@@ -17389,10 +17450,10 @@ var LoaderResource = function() {
17389
17450
  if (url2.indexOf("data:") === 0) {
17390
17451
  return "";
17391
17452
  }
17392
- if (self.origin !== self.location.origin) {
17453
+ if (globalThis.origin !== globalThis.location.origin) {
17393
17454
  return "anonymous";
17394
17455
  }
17395
- loc = loc || self.location;
17456
+ loc = loc || globalThis.location;
17396
17457
  if (!tempAnchor) {
17397
17458
  tempAnchor = document.createElement("a");
17398
17459
  }
@@ -17828,7 +17889,7 @@ var Loader = function() {
17828
17889
  }
17829
17890
  if (this.defaultQueryString) {
17830
17891
  var hash2 = rgxExtractUrlHash.exec(result)[0];
17831
- result = result.substr(0, result.length - hash2.length);
17892
+ result = result.slice(0, result.length - hash2.length);
17832
17893
  if (result.indexOf("?") !== -1) {
17833
17894
  result += "&" + this.defaultQueryString;
17834
17895
  } else {
@@ -19317,14 +19378,21 @@ var objectAssign = shouldUseNative() ? Object.assign : function(target, source)
19317
19378
  return to;
19318
19379
  };
19319
19380
  /*!
19320
- * @pixi/polyfill - v6.2.2
19321
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
19381
+ * @pixi/polyfill - v6.3.0
19382
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
19322
19383
  *
19323
19384
  * @pixi/polyfill is licensed under the MIT License.
19324
19385
  * http://www.opensource.org/licenses/mit-license
19325
19386
  */
19326
- if (!self.Promise) {
19327
- self.Promise = Promise$1;
19387
+ if (typeof globalThis === "undefined") {
19388
+ if (typeof self !== "undefined") {
19389
+ self.globalThis = self;
19390
+ } else if (typeof global !== "undefined") {
19391
+ global.globalThis = global;
19392
+ }
19393
+ }
19394
+ if (!globalThis.Promise) {
19395
+ globalThis.Promise = Promise$1;
19328
19396
  }
19329
19397
  if (!Object.assign) {
19330
19398
  Object.assign = objectAssign;
@@ -19335,24 +19403,24 @@ if (!(Date.now && Date.prototype.getTime)) {
19335
19403
  return new Date().getTime();
19336
19404
  };
19337
19405
  }
19338
- if (!(self.performance && self.performance.now)) {
19406
+ if (!(globalThis.performance && globalThis.performance.now)) {
19339
19407
  var startTime_1 = Date.now();
19340
- if (!self.performance) {
19341
- self.performance = {};
19408
+ if (!globalThis.performance) {
19409
+ globalThis.performance = {};
19342
19410
  }
19343
- self.performance.now = function() {
19411
+ globalThis.performance.now = function() {
19344
19412
  return Date.now() - startTime_1;
19345
19413
  };
19346
19414
  }
19347
19415
  var lastTime = Date.now();
19348
19416
  var vendors = ["ms", "moz", "webkit", "o"];
19349
- for (var x = 0; x < vendors.length && !self.requestAnimationFrame; ++x) {
19417
+ for (var x = 0; x < vendors.length && !globalThis.requestAnimationFrame; ++x) {
19350
19418
  var p = vendors[x];
19351
- self.requestAnimationFrame = self[p + "RequestAnimationFrame"];
19352
- self.cancelAnimationFrame = self[p + "CancelAnimationFrame"] || self[p + "CancelRequestAnimationFrame"];
19419
+ globalThis.requestAnimationFrame = globalThis[p + "RequestAnimationFrame"];
19420
+ globalThis.cancelAnimationFrame = globalThis[p + "CancelAnimationFrame"] || globalThis[p + "CancelRequestAnimationFrame"];
19353
19421
  }
19354
- if (!self.requestAnimationFrame) {
19355
- self.requestAnimationFrame = function(callback) {
19422
+ if (!globalThis.requestAnimationFrame) {
19423
+ globalThis.requestAnimationFrame = function(callback) {
19356
19424
  if (typeof callback !== "function") {
19357
19425
  throw new TypeError(callback + "is not a function");
19358
19426
  }
@@ -19362,14 +19430,14 @@ if (!self.requestAnimationFrame) {
19362
19430
  delay = 0;
19363
19431
  }
19364
19432
  lastTime = currentTime;
19365
- return self.setTimeout(function() {
19433
+ return globalThis.self.setTimeout(function() {
19366
19434
  lastTime = Date.now();
19367
19435
  callback(performance.now());
19368
19436
  }, delay);
19369
19437
  };
19370
19438
  }
19371
- if (!self.cancelAnimationFrame) {
19372
- self.cancelAnimationFrame = function(id) {
19439
+ if (!globalThis.cancelAnimationFrame) {
19440
+ globalThis.cancelAnimationFrame = function(id) {
19373
19441
  return clearTimeout(id);
19374
19442
  };
19375
19443
  }
@@ -19387,27 +19455,27 @@ if (!Number.isInteger) {
19387
19455
  return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
19388
19456
  };
19389
19457
  }
19390
- if (!self.ArrayBuffer) {
19391
- self.ArrayBuffer = Array;
19458
+ if (!globalThis.ArrayBuffer) {
19459
+ globalThis.ArrayBuffer = Array;
19392
19460
  }
19393
- if (!self.Float32Array) {
19394
- self.Float32Array = Array;
19461
+ if (!globalThis.Float32Array) {
19462
+ globalThis.Float32Array = Array;
19395
19463
  }
19396
- if (!self.Uint32Array) {
19397
- self.Uint32Array = Array;
19464
+ if (!globalThis.Uint32Array) {
19465
+ globalThis.Uint32Array = Array;
19398
19466
  }
19399
- if (!self.Uint16Array) {
19400
- self.Uint16Array = Array;
19467
+ if (!globalThis.Uint16Array) {
19468
+ globalThis.Uint16Array = Array;
19401
19469
  }
19402
- if (!self.Uint8Array) {
19403
- self.Uint8Array = Array;
19470
+ if (!globalThis.Uint8Array) {
19471
+ globalThis.Uint8Array = Array;
19404
19472
  }
19405
- if (!self.Int32Array) {
19406
- self.Int32Array = Array;
19473
+ if (!globalThis.Int32Array) {
19474
+ globalThis.Int32Array = Array;
19407
19475
  }
19408
19476
  /*!
19409
- * @pixi/display - v6.2.2
19410
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
19477
+ * @pixi/display - v6.3.0
19478
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
19411
19479
  *
19412
19480
  * @pixi/display is licensed under the MIT License.
19413
19481
  * http://www.opensource.org/licenses/mit-license
@@ -19700,6 +19768,8 @@ var DisplayObject = function(_super) {
19700
19768
  _this.alpha = 1;
19701
19769
  _this.visible = true;
19702
19770
  _this.renderable = true;
19771
+ _this.cullable = false;
19772
+ _this.cullArea = null;
19703
19773
  _this.parent = null;
19704
19774
  _this.worldAlpha = 1;
19705
19775
  _this._lastSortedIndex = 0;
@@ -19881,6 +19951,7 @@ var DisplayObject = function(_super) {
19881
19951
  this.parent = null;
19882
19952
  this._bounds = null;
19883
19953
  this.mask = null;
19954
+ this.cullArea = null;
19884
19955
  this.filters = null;
19885
19956
  this.filterArea = null;
19886
19957
  this.hitArea = null;
@@ -20069,8 +20140,8 @@ var TemporaryDisplayObject = function(_super) {
20069
20140
  }(DisplayObject);
20070
20141
  DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
20071
20142
  /*!
20072
- * @pixi/constants - v6.2.2
20073
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
20143
+ * @pixi/constants - v6.3.0
20144
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
20074
20145
  *
20075
20146
  * @pixi/constants is licensed under the MIT License.
20076
20147
  * http://www.opensource.org/licenses/mit-license
@@ -20485,12 +20556,40 @@ var Container = function(_super) {
20485
20556
  };
20486
20557
  Container2.prototype._calculateBounds = function() {
20487
20558
  };
20559
+ Container2.prototype._renderWithCulling = function(renderer) {
20560
+ var sourceFrame = renderer.renderTexture.sourceFrame;
20561
+ if (!(sourceFrame.width > 0 && sourceFrame.height > 0)) {
20562
+ return;
20563
+ }
20564
+ var bounds;
20565
+ var transform;
20566
+ if (this.cullArea) {
20567
+ bounds = this.cullArea;
20568
+ transform = this.worldTransform;
20569
+ } else if (this._render !== Container2.prototype._render) {
20570
+ bounds = this.getBounds(true);
20571
+ }
20572
+ if (bounds && sourceFrame.intersects(bounds, transform)) {
20573
+ this._render(renderer);
20574
+ } else if (this.cullArea) {
20575
+ return;
20576
+ }
20577
+ for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
20578
+ var child = this.children[i2];
20579
+ var childCullable = child.cullable;
20580
+ child.cullable = childCullable || !this.cullArea;
20581
+ child.render(renderer);
20582
+ child.cullable = childCullable;
20583
+ }
20584
+ };
20488
20585
  Container2.prototype.render = function(renderer) {
20489
20586
  if (!this.visible || this.worldAlpha <= 0 || !this.renderable) {
20490
20587
  return;
20491
20588
  }
20492
20589
  if (this._mask || this.filters && this.filters.length) {
20493
20590
  this.renderAdvanced(renderer);
20591
+ } else if (this.cullable) {
20592
+ this._renderWithCulling(renderer);
20494
20593
  } else {
20495
20594
  this._render(renderer);
20496
20595
  for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
@@ -20522,9 +20621,13 @@ var Container = function(_super) {
20522
20621
  if (mask) {
20523
20622
  renderer.mask.push(this, this._mask);
20524
20623
  }
20525
- this._render(renderer);
20526
- for (var i2 = 0, j2 = this.children.length; i2 < j2; i2++) {
20527
- this.children[i2].render(renderer);
20624
+ if (this.cullable) {
20625
+ this._renderWithCulling(renderer);
20626
+ } else {
20627
+ this._render(renderer);
20628
+ for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
20629
+ this.children[i2].render(renderer);
20630
+ }
20528
20631
  }
20529
20632
  if (flush) {
20530
20633
  renderer.batch.flush();
@@ -20585,8 +20688,8 @@ var Container = function(_super) {
20585
20688
  }(DisplayObject);
20586
20689
  Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
20587
20690
  /*!
20588
- * @pixi/accessibility - v6.2.2
20589
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
20691
+ * @pixi/accessibility - v6.3.0
20692
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
20590
20693
  *
20591
20694
  * @pixi/accessibility is licensed under the MIT License.
20592
20695
  * http://www.opensource.org/licenses/mit-license
@@ -20638,7 +20741,7 @@ var AccessibilityManager = function() {
20638
20741
  this.renderer = renderer;
20639
20742
  this._onKeyDown = this._onKeyDown.bind(this);
20640
20743
  this._onMouseMove = this._onMouseMove.bind(this);
20641
- self.addEventListener("keydown", this._onKeyDown, false);
20744
+ globalThis.addEventListener("keydown", this._onKeyDown, false);
20642
20745
  }
20643
20746
  Object.defineProperty(AccessibilityManager2.prototype, "isActive", {
20644
20747
  get: function() {
@@ -20686,8 +20789,8 @@ var AccessibilityManager = function() {
20686
20789
  return;
20687
20790
  }
20688
20791
  this._isActive = true;
20689
- self.document.addEventListener("mousemove", this._onMouseMove, true);
20690
- self.removeEventListener("keydown", this._onKeyDown, false);
20792
+ globalThis.document.addEventListener("mousemove", this._onMouseMove, true);
20793
+ globalThis.removeEventListener("keydown", this._onKeyDown, false);
20691
20794
  this.renderer.on("postrender", this.update, this);
20692
20795
  (_a3 = this.renderer.view.parentNode) === null || _a3 === void 0 ? void 0 : _a3.appendChild(this.div);
20693
20796
  };
@@ -20697,8 +20800,8 @@ var AccessibilityManager = function() {
20697
20800
  return;
20698
20801
  }
20699
20802
  this._isActive = false;
20700
- self.document.removeEventListener("mousemove", this._onMouseMove, true);
20701
- self.addEventListener("keydown", this._onKeyDown, false);
20803
+ globalThis.document.removeEventListener("mousemove", this._onMouseMove, true);
20804
+ globalThis.addEventListener("keydown", this._onKeyDown, false);
20702
20805
  this.renderer.off("postrender", this.update);
20703
20806
  (_a3 = this.div.parentNode) === null || _a3 === void 0 ? void 0 : _a3.removeChild(this.div);
20704
20807
  };
@@ -20888,8 +20991,8 @@ var AccessibilityManager = function() {
20888
20991
  AccessibilityManager2.prototype.destroy = function() {
20889
20992
  this.destroyTouchHook();
20890
20993
  this.div = null;
20891
- self.document.removeEventListener("mousemove", this._onMouseMove, true);
20892
- self.removeEventListener("keydown", this._onKeyDown);
20994
+ globalThis.document.removeEventListener("mousemove", this._onMouseMove, true);
20995
+ globalThis.removeEventListener("keydown", this._onKeyDown);
20893
20996
  this.pool = null;
20894
20997
  this.children = null;
20895
20998
  this.renderer = null;
@@ -20897,8 +21000,8 @@ var AccessibilityManager = function() {
20897
21000
  return AccessibilityManager2;
20898
21001
  }();
20899
21002
  /*!
20900
- * @pixi/interaction - v6.2.2
20901
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
21003
+ * @pixi/interaction - v6.3.0
21004
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
20902
21005
  *
20903
21006
  * @pixi/interaction is licensed under the MIT License.
20904
21007
  * http://www.opensource.org/licenses/mit-license
@@ -21213,9 +21316,9 @@ var InteractionManager = function(_super) {
21213
21316
  _this.moveWhenInside = false;
21214
21317
  _this.eventsAdded = false;
21215
21318
  _this.tickerAdded = false;
21216
- _this.mouseOverRenderer = !("PointerEvent" in self);
21217
- _this.supportsTouchEvents = "ontouchstart" in self;
21218
- _this.supportsPointerEvents = !!self.PointerEvent;
21319
+ _this.mouseOverRenderer = !("PointerEvent" in globalThis);
21320
+ _this.supportsTouchEvents = "ontouchstart" in globalThis;
21321
+ _this.supportsPointerEvents = !!globalThis.PointerEvent;
21219
21322
  _this.onPointerUp = _this.onPointerUp.bind(_this);
21220
21323
  _this.processPointerUp = _this.processPointerUp.bind(_this);
21221
21324
  _this.onPointerCancel = _this.onPointerCancel.bind(_this);
@@ -21303,25 +21406,25 @@ var InteractionManager = function(_super) {
21303
21406
  return;
21304
21407
  }
21305
21408
  var style = this.interactionDOMElement.style;
21306
- if (self.navigator.msPointerEnabled) {
21409
+ if (globalThis.navigator.msPointerEnabled) {
21307
21410
  style.msContentZooming = "none";
21308
21411
  style.msTouchAction = "none";
21309
21412
  } else if (this.supportsPointerEvents) {
21310
21413
  style.touchAction = "none";
21311
21414
  }
21312
21415
  if (this.supportsPointerEvents) {
21313
- self.document.addEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
21416
+ globalThis.document.addEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
21314
21417
  this.interactionDOMElement.addEventListener("pointerdown", this.onPointerDown, this._eventListenerOptions);
21315
21418
  this.interactionDOMElement.addEventListener("pointerleave", this.onPointerOut, this._eventListenerOptions);
21316
21419
  this.interactionDOMElement.addEventListener("pointerover", this.onPointerOver, this._eventListenerOptions);
21317
- self.addEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
21318
- self.addEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
21420
+ globalThis.addEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
21421
+ globalThis.addEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
21319
21422
  } else {
21320
- self.document.addEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
21423
+ globalThis.document.addEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
21321
21424
  this.interactionDOMElement.addEventListener("mousedown", this.onPointerDown, this._eventListenerOptions);
21322
21425
  this.interactionDOMElement.addEventListener("mouseout", this.onPointerOut, this._eventListenerOptions);
21323
21426
  this.interactionDOMElement.addEventListener("mouseover", this.onPointerOver, this._eventListenerOptions);
21324
- self.addEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
21427
+ globalThis.addEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
21325
21428
  }
21326
21429
  if (this.supportsTouchEvents) {
21327
21430
  this.interactionDOMElement.addEventListener("touchstart", this.onPointerDown, this._eventListenerOptions);
@@ -21336,25 +21439,25 @@ var InteractionManager = function(_super) {
21336
21439
  return;
21337
21440
  }
21338
21441
  var style = this.interactionDOMElement.style;
21339
- if (self.navigator.msPointerEnabled) {
21442
+ if (globalThis.navigator.msPointerEnabled) {
21340
21443
  style.msContentZooming = "";
21341
21444
  style.msTouchAction = "";
21342
21445
  } else if (this.supportsPointerEvents) {
21343
21446
  style.touchAction = "";
21344
21447
  }
21345
21448
  if (this.supportsPointerEvents) {
21346
- self.document.removeEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
21449
+ globalThis.document.removeEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
21347
21450
  this.interactionDOMElement.removeEventListener("pointerdown", this.onPointerDown, this._eventListenerOptions);
21348
21451
  this.interactionDOMElement.removeEventListener("pointerleave", this.onPointerOut, this._eventListenerOptions);
21349
21452
  this.interactionDOMElement.removeEventListener("pointerover", this.onPointerOver, this._eventListenerOptions);
21350
- self.removeEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
21351
- self.removeEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
21453
+ globalThis.removeEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
21454
+ globalThis.removeEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
21352
21455
  } else {
21353
- self.document.removeEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
21456
+ globalThis.document.removeEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
21354
21457
  this.interactionDOMElement.removeEventListener("mousedown", this.onPointerDown, this._eventListenerOptions);
21355
21458
  this.interactionDOMElement.removeEventListener("mouseout", this.onPointerOut, this._eventListenerOptions);
21356
21459
  this.interactionDOMElement.removeEventListener("mouseover", this.onPointerOver, this._eventListenerOptions);
21357
- self.removeEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
21460
+ globalThis.removeEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
21358
21461
  }
21359
21462
  if (this.supportsTouchEvents) {
21360
21463
  this.interactionDOMElement.removeEventListener("touchstart", this.onPointerDown, this._eventListenerOptions);
@@ -21396,7 +21499,7 @@ var InteractionManager = function(_super) {
21396
21499
  InteractionManager2.prototype.setCursorMode = function(mode) {
21397
21500
  mode = mode || "default";
21398
21501
  var applyStyles = true;
21399
- if (self.OffscreenCanvas && this.interactionDOMElement instanceof OffscreenCanvas) {
21502
+ if (globalThis.OffscreenCanvas && this.interactionDOMElement instanceof OffscreenCanvas) {
21400
21503
  applyStyles = false;
21401
21504
  }
21402
21505
  if (this.currentCursorMode === mode) {
@@ -21814,7 +21917,7 @@ var InteractionManager = function(_super) {
21814
21917
  touch.isNormalized = true;
21815
21918
  normalizedEvents.push(touch);
21816
21919
  }
21817
- } else if (!self.MouseEvent || event instanceof MouseEvent && (!this.supportsPointerEvents || !(event instanceof self.PointerEvent))) {
21920
+ } else if (!globalThis.MouseEvent || event instanceof MouseEvent && (!this.supportsPointerEvents || !(event instanceof globalThis.PointerEvent))) {
21818
21921
  var tempEvent = event;
21819
21922
  if (typeof tempEvent.isPrimary === "undefined") {
21820
21923
  tempEvent.isPrimary = true;
@@ -21877,8 +21980,8 @@ var InteractionManager = function(_super) {
21877
21980
  return InteractionManager2;
21878
21981
  }(EventEmitter$3);
21879
21982
  /*!
21880
- * @pixi/app - v6.2.2
21881
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
21983
+ * @pixi/app - v6.3.0
21984
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
21882
21985
  *
21883
21986
  * @pixi/app is licensed under the MIT License.
21884
21987
  * http://www.opensource.org/licenses/mit-license
@@ -21937,10 +22040,10 @@ var ResizePlugin = function() {
21937
22040
  var _this = this;
21938
22041
  Object.defineProperty(this, "resizeTo", {
21939
22042
  set: function(dom) {
21940
- self.removeEventListener("resize", this.queueResize);
22043
+ globalThis.removeEventListener("resize", this.queueResize);
21941
22044
  this._resizeTo = dom;
21942
22045
  if (dom) {
21943
- self.addEventListener("resize", this.queueResize);
22046
+ globalThis.addEventListener("resize", this.queueResize);
21944
22047
  this.resize();
21945
22048
  }
21946
22049
  },
@@ -21970,9 +22073,9 @@ var ResizePlugin = function() {
21970
22073
  _this.cancelResize();
21971
22074
  var width;
21972
22075
  var height;
21973
- if (_this._resizeTo === self) {
21974
- width = self.innerWidth;
21975
- height = self.innerHeight;
22076
+ if (_this._resizeTo === globalThis.window) {
22077
+ width = globalThis.innerWidth;
22078
+ height = globalThis.innerHeight;
21976
22079
  } else {
21977
22080
  var _a3 = _this._resizeTo, clientWidth = _a3.clientWidth, clientHeight = _a3.clientHeight;
21978
22081
  width = clientWidth;
@@ -21985,7 +22088,7 @@ var ResizePlugin = function() {
21985
22088
  this.resizeTo = options.resizeTo || null;
21986
22089
  };
21987
22090
  ResizePlugin2.destroy = function() {
21988
- self.removeEventListener("resize", this.queueResize);
22091
+ globalThis.removeEventListener("resize", this.queueResize);
21989
22092
  this.cancelResize();
21990
22093
  this.cancelResize = null;
21991
22094
  this.queueResize = null;
@@ -21996,8 +22099,8 @@ var ResizePlugin = function() {
21996
22099
  }();
21997
22100
  Application.registerPlugin(ResizePlugin);
21998
22101
  /*!
21999
- * @pixi/extract - v6.2.2
22000
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
22102
+ * @pixi/extract - v6.3.0
22103
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
22001
22104
  *
22002
22105
  * @pixi/extract is licensed under the MIT License.
22003
22106
  * http://www.opensource.org/licenses/mit-license
@@ -22121,8 +22224,8 @@ var Extract = function() {
22121
22224
  return Extract2;
22122
22225
  }();
22123
22226
  /*!
22124
- * @pixi/compressed-textures - v6.2.2
22125
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
22227
+ * @pixi/compressed-textures - v6.3.0
22228
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
22126
22229
  *
22127
22230
  * @pixi/compressed-textures is licensed under the MIT License.
22128
22231
  * http://www.opensource.org/licenses/mit-license
@@ -22835,8 +22938,8 @@ var KTX_FIELDS = {
22835
22938
  BYTES_OF_KEY_VALUE_DATA: 60
22836
22939
  };
22837
22940
  var FILE_HEADER_SIZE = 64;
22838
- var TYPES_TO_BYTES_PER_COMPONENT = (_a$2 = {}, _a$2[TYPES$3.UNSIGNED_BYTE] = 1, _a$2[TYPES$3.UNSIGNED_SHORT] = 2, _a$2[TYPES$3.FLOAT] = 4, _a$2[TYPES$3.HALF_FLOAT] = 8, _a$2);
22839
- var FORMATS_TO_COMPONENTS = (_b$1 = {}, _b$1[FORMATS$3.RGBA] = 4, _b$1[FORMATS$3.RGB] = 3, _b$1[FORMATS$3.LUMINANCE] = 1, _b$1[FORMATS$3.LUMINANCE_ALPHA] = 2, _b$1[FORMATS$3.ALPHA] = 1, _b$1);
22941
+ var TYPES_TO_BYTES_PER_COMPONENT = (_a$2 = {}, _a$2[TYPES$3.UNSIGNED_BYTE] = 1, _a$2[TYPES$3.UNSIGNED_SHORT] = 2, _a$2[TYPES$3.INT] = 4, _a$2[TYPES$3.UNSIGNED_INT] = 4, _a$2[TYPES$3.FLOAT] = 4, _a$2[TYPES$3.HALF_FLOAT] = 8, _a$2);
22942
+ var FORMATS_TO_COMPONENTS = (_b$1 = {}, _b$1[FORMATS$3.RGBA] = 4, _b$1[FORMATS$3.RGB] = 3, _b$1[FORMATS$3.RG] = 2, _b$1[FORMATS$3.RED] = 1, _b$1[FORMATS$3.LUMINANCE] = 1, _b$1[FORMATS$3.LUMINANCE_ALPHA] = 2, _b$1[FORMATS$3.ALPHA] = 1, _b$1);
22840
22943
  var TYPES_TO_BYTES_PER_PIXEL = (_c = {}, _c[TYPES$3.UNSIGNED_SHORT_4_4_4_4] = 2, _c[TYPES$3.UNSIGNED_SHORT_5_5_5_1] = 2, _c[TYPES$3.UNSIGNED_SHORT_5_6_5] = 2, _c);
22841
22944
  var KTXLoader = function() {
22842
22945
  function KTXLoader2() {
@@ -22844,8 +22947,31 @@ var KTXLoader = function() {
22844
22947
  KTXLoader2.use = function(resource, next) {
22845
22948
  if (resource.extension === "ktx" && resource.data) {
22846
22949
  try {
22847
- var url2 = resource.name || resource.url;
22848
- Object.assign(resource, registerCompressedTextures(url2, KTXLoader2.parse(url2, resource.data), resource.metadata));
22950
+ var url_1 = resource.name || resource.url;
22951
+ var _a3 = KTXLoader2.parse(url_1, resource.data), compressed = _a3.compressed, uncompressed = _a3.uncompressed;
22952
+ if (compressed) {
22953
+ Object.assign(resource, registerCompressedTextures(url_1, compressed, resource.metadata));
22954
+ } else if (uncompressed) {
22955
+ var textures_1 = {};
22956
+ uncompressed.forEach(function(image, i2) {
22957
+ var texture = new Texture(new BaseTexture(image.resource, {
22958
+ mipmap: MIPMAP_MODES$3.OFF,
22959
+ alphaMode: ALPHA_MODES$3.NO_PREMULTIPLIED_ALPHA,
22960
+ type: image.type,
22961
+ format: image.format
22962
+ }));
22963
+ var cacheID = url_1 + "-" + (i2 + 1);
22964
+ BaseTexture.addToCache(texture.baseTexture, cacheID);
22965
+ Texture.addToCache(texture, cacheID);
22966
+ if (i2 === 0) {
22967
+ textures_1[url_1] = texture;
22968
+ BaseTexture.addToCache(texture.baseTexture, url_1);
22969
+ Texture.addToCache(texture, url_1);
22970
+ }
22971
+ textures_1[cacheID] = texture;
22972
+ });
22973
+ Object.assign(resource, { textures: textures_1 });
22974
+ }
22849
22975
  } catch (err) {
22850
22976
  next(err);
22851
22977
  return;
@@ -22917,8 +23043,8 @@ var KTXLoader = function() {
22917
23043
  }
22918
23044
  mips[mipmapLevel] = {
22919
23045
  levelID: mipmapLevel,
22920
- levelWidth: numberOfMipmapLevels > 1 ? mipWidth : alignedMipWidth,
22921
- levelHeight: numberOfMipmapLevels > 1 ? mipHeight : alignedMipHeight,
23046
+ levelWidth: numberOfMipmapLevels > 1 || glType !== 0 ? mipWidth : alignedMipWidth,
23047
+ levelHeight: numberOfMipmapLevels > 1 || glType !== 0 ? mipHeight : alignedMipHeight,
22922
23048
  levelBuffer: new Uint8Array(arrayBuffer, elementOffset, mipByteSize)
22923
23049
  };
22924
23050
  elementOffset += mipByteSize;
@@ -22932,17 +23058,41 @@ var KTXLoader = function() {
22932
23058
  mipByteSize = alignedMipWidth * alignedMipHeight * imagePixelByteSize;
22933
23059
  }
22934
23060
  if (glType !== 0) {
22935
- throw new Error("TODO: Uncompressed");
22936
- }
22937
- return imageBuffers.map(function(levelBuffers) {
22938
- return new CompressedTextureResource(null, {
22939
- format: glInternalFormat,
22940
- width: pixelWidth,
22941
- height: pixelHeight,
22942
- levels: numberOfMipmapLevels,
22943
- levelBuffers
22944
- });
22945
- });
23061
+ return {
23062
+ uncompressed: imageBuffers.map(function(levelBuffers) {
23063
+ var buffer = levelBuffers[0].levelBuffer;
23064
+ var convertToInt = false;
23065
+ if (glType === TYPES$3.FLOAT) {
23066
+ buffer = new Float32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
23067
+ } else if (glType === TYPES$3.UNSIGNED_INT) {
23068
+ convertToInt = true;
23069
+ buffer = new Uint32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
23070
+ } else if (glType === TYPES$3.INT) {
23071
+ convertToInt = true;
23072
+ buffer = new Int32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
23073
+ }
23074
+ return {
23075
+ resource: new BufferResource(buffer, {
23076
+ width: levelBuffers[0].levelWidth,
23077
+ height: levelBuffers[0].levelHeight
23078
+ }),
23079
+ type: glType,
23080
+ format: convertToInt ? KTXLoader2.convertFormatToInteger(glFormat) : glFormat
23081
+ };
23082
+ })
23083
+ };
23084
+ }
23085
+ return {
23086
+ compressed: imageBuffers.map(function(levelBuffers) {
23087
+ return new CompressedTextureResource(null, {
23088
+ format: glInternalFormat,
23089
+ width: pixelWidth,
23090
+ height: pixelHeight,
23091
+ levels: numberOfMipmapLevels,
23092
+ levelBuffers
23093
+ });
23094
+ })
23095
+ };
22946
23096
  };
22947
23097
  KTXLoader2.validate = function(url2, dataView) {
22948
23098
  for (var i2 = 0; i2 < FILE_IDENTIFIER.length; i2++) {
@@ -22953,11 +23103,25 @@ var KTXLoader = function() {
22953
23103
  }
22954
23104
  return true;
22955
23105
  };
23106
+ KTXLoader2.convertFormatToInteger = function(format2) {
23107
+ switch (format2) {
23108
+ case FORMATS$3.RGBA:
23109
+ return FORMATS$3.RGBA_INTEGER;
23110
+ case FORMATS$3.RGB:
23111
+ return FORMATS$3.RGB_INTEGER;
23112
+ case FORMATS$3.RG:
23113
+ return FORMATS$3.RG_INTEGER;
23114
+ case FORMATS$3.RED:
23115
+ return FORMATS$3.RED_INTEGER;
23116
+ default:
23117
+ return format2;
23118
+ }
23119
+ };
22956
23120
  return KTXLoader2;
22957
23121
  }();
22958
23122
  /*!
22959
- * @pixi/particle-container - v6.2.2
22960
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
23123
+ * @pixi/particle-container - v6.3.0
23124
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
22961
23125
  *
22962
23126
  * @pixi/particle-container is licensed under the MIT License.
22963
23127
  * http://www.opensource.org/licenses/mit-license
@@ -23405,8 +23569,8 @@ var ParticleRenderer = function(_super) {
23405
23569
  return ParticleRenderer2;
23406
23570
  }(ObjectRenderer);
23407
23571
  /*!
23408
- * @pixi/graphics - v6.2.2
23409
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
23572
+ * @pixi/graphics - v6.3.0
23573
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
23410
23574
  *
23411
23575
  * @pixi/graphics is licensed under the MIT License.
23412
23576
  * http://www.opensource.org/licenses/mit-license
@@ -23509,6 +23673,35 @@ function __extends$l(d2, b2) {
23509
23673
  }
23510
23674
  d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
23511
23675
  }
23676
+ function fixOrientation(points, hole) {
23677
+ var _a3, _b3;
23678
+ if (hole === void 0) {
23679
+ hole = false;
23680
+ }
23681
+ var m2 = points.length;
23682
+ if (m2 < 6) {
23683
+ return;
23684
+ }
23685
+ var area2 = 0;
23686
+ for (var i2 = 0, x1 = points[m2 - 2], y1 = points[m2 - 1]; i2 < m2; i2 += 2) {
23687
+ var x2 = points[i2];
23688
+ var y2 = points[i2 + 1];
23689
+ area2 += (x2 - x1) * (y2 + y1);
23690
+ x1 = x2;
23691
+ y1 = y2;
23692
+ }
23693
+ if (!hole && area2 > 0 || hole && area2 <= 0) {
23694
+ var n = m2 / 2;
23695
+ for (var i2 = n + n % 2; i2 < m2; i2 += 2) {
23696
+ var i1 = m2 - i2 - 2;
23697
+ var i22 = m2 - i2 - 1;
23698
+ var i3 = i2;
23699
+ var i4 = i2 + 1;
23700
+ _a3 = [points[i3], points[i1]], points[i1] = _a3[0], points[i3] = _a3[1];
23701
+ _b3 = [points[i4], points[i22]], points[i22] = _b3[0], points[i4] = _b3[1];
23702
+ }
23703
+ }
23704
+ }
23512
23705
  var buildPoly = {
23513
23706
  build: function(graphicsData) {
23514
23707
  graphicsData.points = graphicsData.shape.points.slice();
@@ -23519,9 +23712,11 @@ var buildPoly = {
23519
23712
  var verts = graphicsGeometry.points;
23520
23713
  var indices2 = graphicsGeometry.indices;
23521
23714
  if (points.length >= 6) {
23715
+ fixOrientation(points, false);
23522
23716
  var holeArray = [];
23523
23717
  for (var i2 = 0; i2 < holes.length; i2++) {
23524
23718
  var hole = holes[i2];
23719
+ fixOrientation(hole.points, true);
23525
23720
  holeArray.push(points.length / 2);
23526
23721
  points = points.concat(hole.points);
23527
23722
  }
@@ -23543,31 +23738,107 @@ var buildPoly = {
23543
23738
  };
23544
23739
  var buildCircle = {
23545
23740
  build: function(graphicsData) {
23546
- var circleData = graphicsData.shape;
23547
23741
  var points = graphicsData.points;
23548
- var x2 = circleData.x;
23549
- var y2 = circleData.y;
23550
- var width;
23551
- var height;
23552
- points.length = 0;
23742
+ var x2;
23743
+ var y2;
23744
+ var dx;
23745
+ var dy;
23746
+ var rx;
23747
+ var ry;
23553
23748
  if (graphicsData.type === SHAPES.CIRC) {
23554
- width = circleData.radius;
23555
- height = circleData.radius;
23749
+ var circle = graphicsData.shape;
23750
+ x2 = circle.x;
23751
+ y2 = circle.y;
23752
+ rx = ry = circle.radius;
23753
+ dx = dy = 0;
23754
+ } else if (graphicsData.type === SHAPES.ELIP) {
23755
+ var ellipse = graphicsData.shape;
23756
+ x2 = ellipse.x;
23757
+ y2 = ellipse.y;
23758
+ rx = ellipse.width;
23759
+ ry = ellipse.height;
23760
+ dx = dy = 0;
23556
23761
  } else {
23557
- var ellipseData = graphicsData.shape;
23558
- width = ellipseData.width;
23559
- height = ellipseData.height;
23762
+ var roundedRect = graphicsData.shape;
23763
+ var halfWidth = roundedRect.width / 2;
23764
+ var halfHeight = roundedRect.height / 2;
23765
+ x2 = roundedRect.x + halfWidth;
23766
+ y2 = roundedRect.y + halfHeight;
23767
+ rx = ry = Math.max(0, Math.min(roundedRect.radius, Math.min(halfWidth, halfHeight)));
23768
+ dx = halfWidth - rx;
23769
+ dy = halfHeight - ry;
23770
+ }
23771
+ var n = Math.ceil(2.3 * Math.sqrt(rx + ry));
23772
+ var m2 = n * 8 + (dx ? 4 : 0) + (dy ? 4 : 0);
23773
+ points.length = m2;
23774
+ if (m2 === 0) {
23775
+ return;
23560
23776
  }
23561
- if (width === 0 || height === 0) {
23777
+ if (n === 0) {
23778
+ points.length = 8;
23779
+ points[0] = points[6] = x2 + dx;
23780
+ points[1] = points[3] = y2 + dy;
23781
+ points[2] = points[4] = x2 - dx;
23782
+ points[5] = points[7] = y2 - dy;
23562
23783
  return;
23563
23784
  }
23564
- var totalSegs = Math.floor(30 * Math.sqrt(circleData.radius)) || Math.floor(15 * Math.sqrt(width + height));
23565
- totalSegs /= 2.3;
23566
- var seg = Math.PI * 2 / totalSegs;
23567
- for (var i2 = 0; i2 < totalSegs - 0.5; i2++) {
23568
- points.push(x2 + Math.sin(-seg * i2) * width, y2 + Math.cos(-seg * i2) * height);
23785
+ var j1 = 0;
23786
+ var j2 = n * 4 + (dx ? 2 : 0) + 2;
23787
+ var j3 = j2;
23788
+ var j4 = m2;
23789
+ {
23790
+ var x0 = dx + rx;
23791
+ var y0 = dy;
23792
+ var x1 = x2 + x0;
23793
+ var x22 = x2 - x0;
23794
+ var y1 = y2 + y0;
23795
+ points[j1++] = x1;
23796
+ points[j1++] = y1;
23797
+ points[--j2] = y1;
23798
+ points[--j2] = x22;
23799
+ if (dy) {
23800
+ var y22 = y2 - y0;
23801
+ points[j3++] = x22;
23802
+ points[j3++] = y22;
23803
+ points[--j4] = y22;
23804
+ points[--j4] = x1;
23805
+ }
23806
+ }
23807
+ for (var i2 = 1; i2 < n; i2++) {
23808
+ var a2 = Math.PI / 2 * (i2 / n);
23809
+ var x0 = dx + Math.cos(a2) * rx;
23810
+ var y0 = dy + Math.sin(a2) * ry;
23811
+ var x1 = x2 + x0;
23812
+ var x22 = x2 - x0;
23813
+ var y1 = y2 + y0;
23814
+ var y22 = y2 - y0;
23815
+ points[j1++] = x1;
23816
+ points[j1++] = y1;
23817
+ points[--j2] = y1;
23818
+ points[--j2] = x22;
23819
+ points[j3++] = x22;
23820
+ points[j3++] = y22;
23821
+ points[--j4] = y22;
23822
+ points[--j4] = x1;
23823
+ }
23824
+ {
23825
+ var x0 = dx;
23826
+ var y0 = dy + ry;
23827
+ var x1 = x2 + x0;
23828
+ var x22 = x2 - x0;
23829
+ var y1 = y2 + y0;
23830
+ var y22 = y2 - y0;
23831
+ points[j1++] = x1;
23832
+ points[j1++] = y1;
23833
+ points[--j4] = y22;
23834
+ points[--j4] = x1;
23835
+ if (dx) {
23836
+ points[j1++] = x22;
23837
+ points[j1++] = y1;
23838
+ points[--j4] = y22;
23839
+ points[--j4] = x22;
23840
+ }
23569
23841
  }
23570
- points.push(points[0], points[1]);
23571
23842
  },
23572
23843
  triangulate: function(graphicsData, graphicsGeometry) {
23573
23844
  var points = graphicsData.points;
@@ -23575,15 +23846,26 @@ var buildCircle = {
23575
23846
  var indices2 = graphicsGeometry.indices;
23576
23847
  var vertPos = verts.length / 2;
23577
23848
  var center = vertPos;
23578
- var circle = graphicsData.shape;
23849
+ var x2;
23850
+ var y2;
23851
+ if (graphicsData.type !== SHAPES.RREC) {
23852
+ var circle = graphicsData.shape;
23853
+ x2 = circle.x;
23854
+ y2 = circle.y;
23855
+ } else {
23856
+ var roundedRect = graphicsData.shape;
23857
+ x2 = roundedRect.x + roundedRect.width / 2;
23858
+ y2 = roundedRect.y + roundedRect.height / 2;
23859
+ }
23579
23860
  var matrix = graphicsData.matrix;
23580
- var x2 = circle.x;
23581
- var y2 = circle.y;
23582
23861
  verts.push(graphicsData.matrix ? matrix.a * x2 + matrix.c * y2 + matrix.tx : x2, graphicsData.matrix ? matrix.b * x2 + matrix.d * y2 + matrix.ty : y2);
23583
- for (var i2 = 0; i2 < points.length; i2 += 2) {
23862
+ vertPos++;
23863
+ verts.push(points[0], points[1]);
23864
+ for (var i2 = 2; i2 < points.length; i2 += 2) {
23584
23865
  verts.push(points[i2], points[i2 + 1]);
23585
23866
  indices2.push(vertPos++, center, vertPos);
23586
23867
  }
23868
+ indices2.push(center + 1, center, vertPos);
23587
23869
  }
23588
23870
  };
23589
23871
  var buildRectangle = {
@@ -23638,6 +23920,10 @@ function quadraticBezierCurve(fromX, fromY, cpX, cpY, toX, toY, out) {
23638
23920
  }
23639
23921
  var buildRoundedRectangle = {
23640
23922
  build: function(graphicsData) {
23923
+ if (Graphics.nextRoundedRectBehavior) {
23924
+ buildCircle.build(graphicsData);
23925
+ return;
23926
+ }
23641
23927
  var rrectData = graphicsData.shape;
23642
23928
  var points = graphicsData.points;
23643
23929
  var x2 = rrectData.x;
@@ -23656,6 +23942,10 @@ var buildRoundedRectangle = {
23656
23942
  }
23657
23943
  },
23658
23944
  triangulate: function(graphicsData, graphicsGeometry) {
23945
+ if (Graphics.nextRoundedRectBehavior) {
23946
+ buildCircle.triangulate(graphicsData, graphicsGeometry);
23947
+ return;
23948
+ }
23659
23949
  var points = graphicsData.points;
23660
23950
  var verts = graphicsGeometry.points;
23661
23951
  var indices2 = graphicsGeometry.indices;
@@ -24135,14 +24425,6 @@ var _a;
24135
24425
  var FILL_COMMANDS = (_a = {}, _a[SHAPES.POLY] = buildPoly, _a[SHAPES.CIRC] = buildCircle, _a[SHAPES.ELIP] = buildCircle, _a[SHAPES.RECT] = buildRectangle, _a[SHAPES.RREC] = buildRoundedRectangle, _a);
24136
24426
  var BATCH_POOL = [];
24137
24427
  var DRAW_CALL_POOL = [];
24138
- function isPolygonClockwise(polygon) {
24139
- var points = polygon.points;
24140
- var sum2 = 0;
24141
- for (var i2 = 0; i2 < points.length - 2; i2 += 2) {
24142
- sum2 += (points[i2 + 2] - points[i2]) * (points[i2 + 3] + points[i2 + 1]);
24143
- }
24144
- return sum2 > 0;
24145
- }
24146
24428
  var GraphicsData = function() {
24147
24429
  function GraphicsData2(shape, fillStyle, lineStyle, matrix) {
24148
24430
  if (fillStyle === void 0) {
@@ -24356,6 +24638,9 @@ var GraphicsGeometry = function(_super) {
24356
24638
  if (data.matrix) {
24357
24639
  this.transformPoints(data.points, data.matrix);
24358
24640
  }
24641
+ if (fillStyle.visible || lineStyle.visible) {
24642
+ this.processHoles(data.holes);
24643
+ }
24359
24644
  for (var j2 = 0; j2 < 2; j2++) {
24360
24645
  var style = j2 === 0 ? fillStyle : lineStyle;
24361
24646
  if (!style.visible) {
@@ -24560,7 +24845,6 @@ var GraphicsGeometry = function(_super) {
24560
24845
  };
24561
24846
  GraphicsGeometry2.prototype.processFill = function(data) {
24562
24847
  if (data.holes.length) {
24563
- this.processHoles(data.holes);
24564
24848
  buildPoly.triangulate(data, this);
24565
24849
  } else {
24566
24850
  var command = FILL_COMMANDS[data.type];
@@ -24597,17 +24881,7 @@ var GraphicsGeometry = function(_super) {
24597
24881
  var nextMatrix = data.matrix || Matrix.IDENTITY;
24598
24882
  var lineWidth = 0;
24599
24883
  if (lineStyle && lineStyle.visible) {
24600
- var alignment = lineStyle.alignment;
24601
- lineWidth = lineStyle.width;
24602
- if (type === SHAPES.POLY) {
24603
- if (isPolygonClockwise(shape)) {
24604
- lineWidth = lineWidth * (1 - alignment);
24605
- } else {
24606
- lineWidth = lineWidth * alignment;
24607
- }
24608
- } else {
24609
- lineWidth = lineWidth * Math.max(0, alignment);
24610
- }
24884
+ lineWidth = lineStyle.width * Math.max(0, lineStyle.alignment);
24611
24885
  }
24612
24886
  if (curMatrix !== nextMatrix) {
24613
24887
  if (!sequenceBounds.isEmpty()) {
@@ -25275,12 +25549,13 @@ var Graphics = function(_super) {
25275
25549
  this.batches = null;
25276
25550
  _super.prototype.destroy.call(this, options);
25277
25551
  };
25552
+ Graphics2.nextRoundedRectBehavior = false;
25278
25553
  Graphics2._TEMP_POINT = new Point();
25279
25554
  return Graphics2;
25280
25555
  }(Container);
25281
25556
  /*!
25282
- * @pixi/sprite - v6.2.2
25283
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
25557
+ * @pixi/sprite - v6.3.0
25558
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
25284
25559
  *
25285
25560
  * @pixi/sprite is licensed under the MIT License.
25286
25561
  * http://www.opensource.org/licenses/mit-license
@@ -25596,8 +25871,8 @@ var Sprite = function(_super) {
25596
25871
  return Sprite2;
25597
25872
  }(Container);
25598
25873
  /*!
25599
- * @pixi/text - v6.2.2
25600
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
25874
+ * @pixi/text - v6.3.0
25875
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
25601
25876
  *
25602
25877
  * @pixi/text is licensed under the MIT License.
25603
25878
  * http://www.opensource.org/licenses/mit-license
@@ -26587,7 +26862,7 @@ var Text = function(_super) {
26587
26862
  }
26588
26863
  var style = this._style;
26589
26864
  var letterSpacing = style.letterSpacing;
26590
- var supportLetterSpacing = "letterSpacing" in CanvasRenderingContext2D.prototype || "textLetterSpacing" in CanvasRenderingContext2D.prototype;
26865
+ var supportLetterSpacing = Text2.experimentalLetterSpacing && ("letterSpacing" in CanvasRenderingContext2D.prototype || "textLetterSpacing" in CanvasRenderingContext2D.prototype);
26591
26866
  if (letterSpacing === 0 || supportLetterSpacing) {
26592
26867
  if (supportLetterSpacing) {
26593
26868
  this.context.letterSpacing = letterSpacing;
@@ -26822,11 +27097,12 @@ var Text = function(_super) {
26822
27097
  configurable: true
26823
27098
  });
26824
27099
  Text2.nextLineHeightBehavior = false;
27100
+ Text2.experimentalLetterSpacing = false;
26825
27101
  return Text2;
26826
27102
  }(Sprite);
26827
27103
  /*!
26828
- * @pixi/prepare - v6.2.2
26829
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27104
+ * @pixi/prepare - v6.3.0
27105
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
26830
27106
  *
26831
27107
  * @pixi/prepare is licensed under the MIT License.
26832
27108
  * http://www.opensource.org/licenses/mit-license
@@ -27118,8 +27394,8 @@ var Prepare = function(_super) {
27118
27394
  return Prepare2;
27119
27395
  }(BasePrepare);
27120
27396
  /*!
27121
- * @pixi/spritesheet - v6.2.2
27122
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27397
+ * @pixi/spritesheet - v6.3.0
27398
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
27123
27399
  *
27124
27400
  * @pixi/spritesheet is licensed under the MIT License.
27125
27401
  * http://www.opensource.org/licenses/mit-license
@@ -27309,8 +27585,8 @@ var SpritesheetLoader = function() {
27309
27585
  return SpritesheetLoader2;
27310
27586
  }();
27311
27587
  /*!
27312
- * @pixi/sprite-tiling - v6.2.2
27313
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27588
+ * @pixi/sprite-tiling - v6.3.0
27589
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
27314
27590
  *
27315
27591
  * @pixi/sprite-tiling is licensed under the MIT License.
27316
27592
  * http://www.opensource.org/licenses/mit-license
@@ -27559,8 +27835,8 @@ var TilingSpriteRenderer = function(_super) {
27559
27835
  return TilingSpriteRenderer2;
27560
27836
  }(ObjectRenderer);
27561
27837
  /*!
27562
- * @pixi/mesh - v6.2.2
27563
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27838
+ * @pixi/mesh - v6.3.0
27839
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
27564
27840
  *
27565
27841
  * @pixi/mesh is licensed under the MIT License.
27566
27842
  * http://www.opensource.org/licenses/mit-license
@@ -27970,8 +28246,8 @@ var MeshGeometry = function(_super) {
27970
28246
  return MeshGeometry2;
27971
28247
  }(Geometry);
27972
28248
  /*!
27973
- * @pixi/text-bitmap - v6.2.2
27974
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
28249
+ * @pixi/text-bitmap - v6.3.0
28250
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
27975
28251
  *
27976
28252
  * @pixi/text-bitmap is licensed under the MIT License.
27977
28253
  * http://www.opensource.org/licenses/mit-license
@@ -28167,13 +28443,13 @@ var XMLStringFormat = function() {
28167
28443
  }
28168
28444
  XMLStringFormat2.test = function(data) {
28169
28445
  if (typeof data === "string" && data.indexOf("<font>") > -1) {
28170
- var xml = new self.DOMParser().parseFromString(data, "text/xml");
28446
+ var xml = new globalThis.DOMParser().parseFromString(data, "text/xml");
28171
28447
  return XMLFormat.test(xml);
28172
28448
  }
28173
28449
  return false;
28174
28450
  };
28175
28451
  XMLStringFormat2.parse = function(xmlTxt) {
28176
- var xml = new self.DOMParser().parseFromString(xmlTxt, "text/xml");
28452
+ var xml = new globalThis.DOMParser().parseFromString(xmlTxt, "text/xml");
28177
28453
  return XMLFormat.parse(xml);
28178
28454
  };
28179
28455
  return XMLStringFormat2;
@@ -28633,7 +28909,7 @@ var charRenderDataPool = [];
28633
28909
  charRenderData.position.y = pos.y + charData.yOffset;
28634
28910
  charRenderData.prevSpaces = spaceCount;
28635
28911
  chars2.push(charRenderData);
28636
- lastLineWidth = charRenderData.position.x + charData.texture.orig.width;
28912
+ lastLineWidth = charRenderData.position.x + Math.max(charData.xAdvance, charData.texture.orig.width);
28637
28913
  pos.x += charData.xAdvance + this._letterSpacing;
28638
28914
  maxLineHeight = Math.max(maxLineHeight, charData.yOffset + charData.texture.height);
28639
28915
  prevCharCode = charCode;
@@ -29099,8 +29375,8 @@ var BitmapFontLoader = function() {
29099
29375
  return BitmapFontLoader2;
29100
29376
  }();
29101
29377
  /*!
29102
- * @pixi/filter-alpha - v6.2.2
29103
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29378
+ * @pixi/filter-alpha - v6.3.0
29379
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29104
29380
  *
29105
29381
  * @pixi/filter-alpha is licensed under the MIT License.
29106
29382
  * http://www.opensource.org/licenses/mit-license
@@ -29162,8 +29438,8 @@ var fragment$4 = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nun
29162
29438
  return AlphaFilter;
29163
29439
  })(Filter);
29164
29440
  /*!
29165
- * @pixi/filter-blur - v6.2.2
29166
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29441
+ * @pixi/filter-blur - v6.3.0
29442
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29167
29443
  *
29168
29444
  * @pixi/filter-blur is licensed under the MIT License.
29169
29445
  * http://www.opensource.org/licenses/mit-license
@@ -29261,8 +29537,8 @@ function generateBlurFragSource(kernelSize) {
29261
29537
  return fragSource;
29262
29538
  }
29263
29539
  /*!
29264
- * @pixi/constants - v6.2.2
29265
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29540
+ * @pixi/constants - v6.3.0
29541
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29266
29542
  *
29267
29543
  * @pixi/constants is licensed under the MIT License.
29268
29544
  * http://www.opensource.org/licenses/mit-license
@@ -29652,8 +29928,8 @@ var BlurFilterPass = function(_super) {
29652
29928
  return BlurFilter;
29653
29929
  })(Filter);
29654
29930
  /*!
29655
- * @pixi/filter-color-matrix - v6.2.2
29656
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29931
+ * @pixi/filter-color-matrix - v6.3.0
29932
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29657
29933
  *
29658
29934
  * @pixi/filter-color-matrix is licensed under the MIT License.
29659
29935
  * http://www.opensource.org/licenses/mit-license
@@ -30330,8 +30606,8 @@ var ColorMatrixFilter = function(_super) {
30330
30606
  }(Filter);
30331
30607
  ColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale;
30332
30608
  /*!
30333
- * @pixi/filter-displacement - v6.2.2
30334
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30609
+ * @pixi/filter-displacement - v6.3.0
30610
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30335
30611
  *
30336
30612
  * @pixi/filter-displacement is licensed under the MIT License.
30337
30613
  * http://www.opensource.org/licenses/mit-license
@@ -30419,8 +30695,8 @@ var vertex$1 = "attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix
30419
30695
  return DisplacementFilter;
30420
30696
  })(Filter);
30421
30697
  /*!
30422
- * @pixi/filter-fxaa - v6.2.2
30423
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30698
+ * @pixi/filter-fxaa - v6.3.0
30699
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30424
30700
  *
30425
30701
  * @pixi/filter-fxaa is licensed under the MIT License.
30426
30702
  * http://www.opensource.org/licenses/mit-license
@@ -30589,8 +30865,8 @@ void main() {
30589
30865
  return FXAAFilter;
30590
30866
  })(Filter);
30591
30867
  /*!
30592
- * @pixi/filter-noise - v6.2.2
30593
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30868
+ * @pixi/filter-noise - v6.3.0
30869
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30594
30870
  *
30595
30871
  * @pixi/filter-noise is licensed under the MIT License.
30596
30872
  * http://www.opensource.org/licenses/mit-license
@@ -30669,15 +30945,15 @@ var fragment = "precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying v
30669
30945
  return NoiseFilter;
30670
30946
  })(Filter);
30671
30947
  /*!
30672
- * @pixi/mixin-cache-as-bitmap - v6.2.2
30673
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30948
+ * @pixi/mixin-cache-as-bitmap - v6.3.0
30949
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30674
30950
  *
30675
30951
  * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
30676
30952
  * http://www.opensource.org/licenses/mit-license
30677
30953
  */
30678
30954
  /*!
30679
- * @pixi/constants - v6.2.2
30680
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30955
+ * @pixi/constants - v6.3.0
30956
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30681
30957
  *
30682
30958
  * @pixi/constants is licensed under the MIT License.
30683
30959
  * http://www.opensource.org/licenses/mit-license
@@ -31107,8 +31383,8 @@ DisplayObject.prototype._cacheAsBitmapDestroy = function _cacheAsBitmapDestroy(o
31107
31383
  this.destroy(options);
31108
31384
  };
31109
31385
  /*!
31110
- * @pixi/mixin-get-child-by-name - v6.2.2
31111
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31386
+ * @pixi/mixin-get-child-by-name - v6.3.0
31387
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31112
31388
  *
31113
31389
  * @pixi/mixin-get-child-by-name is licensed under the MIT License.
31114
31390
  * http://www.opensource.org/licenses/mit-license
@@ -31135,8 +31411,8 @@ Container.prototype.getChildByName = function getChildByName(name2, deep) {
31135
31411
  return null;
31136
31412
  };
31137
31413
  /*!
31138
- * @pixi/mixin-get-global-position - v6.2.2
31139
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31414
+ * @pixi/mixin-get-global-position - v6.3.0
31415
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31140
31416
  *
31141
31417
  * @pixi/mixin-get-global-position is licensed under the MIT License.
31142
31418
  * http://www.opensource.org/licenses/mit-license
@@ -31157,8 +31433,8 @@ DisplayObject.prototype.getGlobalPosition = function getGlobalPosition(point, sk
31157
31433
  return point;
31158
31434
  };
31159
31435
  /*!
31160
- * @pixi/mesh-extras - v6.2.2
31161
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31436
+ * @pixi/mesh-extras - v6.3.0
31437
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31162
31438
  *
31163
31439
  * @pixi/mesh-extras is licensed under the MIT License.
31164
31440
  * http://www.opensource.org/licenses/mit-license
@@ -31639,8 +31915,8 @@ var DEFAULT_BORDER_SIZE = 10;
31639
31915
  return NineSlicePlane;
31640
31916
  })(SimplePlane);
31641
31917
  /*!
31642
- * @pixi/sprite-animated - v6.2.2
31643
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31918
+ * @pixi/sprite-animated - v6.3.0
31919
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31644
31920
  *
31645
31921
  * @pixi/sprite-animated is licensed under the MIT License.
31646
31922
  * http://www.opensource.org/licenses/mit-license
@@ -31890,8 +32166,8 @@ var AnimatedSprite = function(_super) {
31890
32166
  return AnimatedSprite2;
31891
32167
  }(Sprite);
31892
32168
  /*!
31893
- * pixi.js - v6.2.2
31894
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
32169
+ * pixi.js - v6.3.0
32170
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31895
32171
  *
31896
32172
  * pixi.js is licensed under the MIT License.
31897
32173
  * http://www.opensource.org/licenses/mit-license
@@ -34372,15 +34648,18 @@ var OS_PRESETS = [{
34372
34648
  }, {
34373
34649
  test: "windows nt",
34374
34650
  id: "window"
34651
+ }, {
34652
+ test: "win32|windows",
34653
+ id: "window"
34375
34654
  }, {
34376
34655
  test: "iphone|ipad|ipod",
34377
34656
  id: "ios",
34378
34657
  versionTest: "iphone os|cpu os"
34379
34658
  }, {
34380
- test: "mac os x",
34659
+ test: "macos|macintel|mac os x",
34381
34660
  id: "mac"
34382
34661
  }, {
34383
- test: "android",
34662
+ test: "android|linux armv81",
34384
34663
  id: "android"
34385
34664
  }, {
34386
34665
  test: "tizen",
@@ -34394,6 +34673,7 @@ function parseUserAgentData(osData) {
34394
34673
  var brands = (userAgentData.uaList || userAgentData.brands).slice();
34395
34674
  var isMobile2 = userAgentData.mobile || false;
34396
34675
  var firstBrand = brands[0];
34676
+ var platform2 = (osData && osData.platform || userAgentData.platform || navigator.platform).toLowerCase();
34397
34677
  var browser = {
34398
34678
  name: firstBrand.brand,
34399
34679
  version: firstBrand.version,
@@ -34420,12 +34700,11 @@ function parseUserAgentData(osData) {
34420
34700
  browser.webkit = !!webkitBrand.brand;
34421
34701
  browser.webkitVersion = webkitBrand.version;
34422
34702
  }
34703
+ var platfomResult = find(OS_PRESETS, function(preset) {
34704
+ return new RegExp("" + preset.test, "g").exec(platform2);
34705
+ });
34706
+ os.name = platfomResult ? platfomResult.id : "";
34423
34707
  if (osData) {
34424
- var platform_1 = osData.platform.toLowerCase();
34425
- var result = find(OS_PRESETS, function(preset) {
34426
- return new RegExp("" + preset.test, "g").exec(platform_1);
34427
- });
34428
- os.name = result ? result.id : platform_1;
34429
34708
  os.version = osData.platformVersion;
34430
34709
  }
34431
34710
  var browserBrand = findPresetBrand(BROWSER_PRESETS, brands);
@@ -34433,9 +34712,7 @@ function parseUserAgentData(osData) {
34433
34712
  browser.name = browserBrand.brand;
34434
34713
  browser.version = osData ? osData.uaFullVersion : browserBrand.version;
34435
34714
  }
34436
- if (navigator.platform === "Linux armv8l") {
34437
- os.name = "android";
34438
- } else if (browser.webkit) {
34715
+ if (browser.webkit) {
34439
34716
  os.name = isMobile2 ? "ios" : "mac";
34440
34717
  }
34441
34718
  if (os.name === "ios" && browser.webview) {
@@ -46999,7 +47276,6 @@ const _TxtStage = class extends Container {
46999
47276
  const { name: name2 } = hArg;
47000
47277
  if (!name2)
47001
47278
  throw "name\u306F\u5FC5\u9808\u3067\u3059";
47002
- __privateGet2(_TxtStage, _REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
47003
47279
  if (__privateGet2(_TxtStage, _REG_NG_CHSTYLE_NAME_CHR).test(name2))
47004
47280
  throw `name\u3010${name2}\u3011\u306B\u4F7F\u3048\u306A\u3044\u6587\u5B57\u304C\u542B\u307E\u308C\u307E\u3059`;
47005
47281
  if (name2 in __privateGet2(_TxtStage, _hChInStyle))
@@ -47028,7 +47304,6 @@ const _TxtStage = class extends Container {
47028
47304
  const { name: name2 } = hArg;
47029
47305
  if (!name2)
47030
47306
  throw "name\u306F\u5FC5\u9808\u3067\u3059";
47031
- __privateGet2(_TxtStage, _REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
47032
47307
  if (__privateGet2(_TxtStage, _REG_NG_CHSTYLE_NAME_CHR).test(name2))
47033
47308
  throw `name\u3010${name2}\u3011\u306B\u4F7F\u3048\u306A\u3044\u6587\u5B57\u304C\u542B\u307E\u308C\u307E\u3059`;
47034
47309
  if (name2 in __privateGet2(_TxtStage, _hChOutStyle))
@@ -47579,8 +47854,9 @@ var __privateMethod$1 = (obj, member, method) => {
47579
47854
  var _procMasume4txt, _procMasume4pic, _rctBtnTxt, _idc, _sp_b_pic, _sp_pic, _loaded_b_pic, loaded_b_pic_fn, _normal, _hover, _clicked, _loaded_pic, loaded_pic_fn;
47580
47855
  const _Button = class extends Container {
47581
47856
  constructor(hArg, evtMng, resolve2, canFocus) {
47582
- super();
47583
47857
  var _a4, _b3, _c3;
47858
+ var _a3;
47859
+ super();
47584
47860
  this.hArg = hArg;
47585
47861
  this.evtMng = evtMng;
47586
47862
  this.resolve = resolve2;
@@ -47597,7 +47873,6 @@ const _Button = class extends Container {
47597
47873
  __privateAdd$1(this, _hover, () => false);
47598
47874
  __privateAdd$1(this, _clicked, () => {
47599
47875
  });
47600
- var _a3;
47601
47876
  if (CmnLib.isDbg) {
47602
47877
  this.makeDesignCast = (gdc) => gdc(__privateGet$1(this, _idc));
47603
47878
  this.cvsResize = () => __privateGet$1(this, _idc).cvsResize();
@@ -51377,7 +51652,6 @@ const _ScriptIterator = class {
51377
51652
  __privateSet2(this, _replaceScript_Wildcard, () => {
51378
51653
  for (let i2 = __privateGet2(this, _script).len - 1; i2 >= 0; --i2) {
51379
51654
  const token = __privateGet2(this, _script).aToken[i2];
51380
- __privateGet2(this, _REG_WILDCARD).lastIndex = 0;
51381
51655
  if (!__privateGet2(this, _REG_WILDCARD).test(token))
51382
51656
  continue;
51383
51657
  const [tag_name, args] = tagToken2Name_Args(token);
@@ -52645,7 +52919,7 @@ init_fn = async function() {
52645
52919
  const hApp = {
52646
52920
  width: __privateGet2(this, _cfg3).oCfg.window.width,
52647
52921
  height: __privateGet2(this, _cfg3).oCfg.window.height,
52648
- backgroundColor: __privateGet2(this, _cfg3).oCfg.init.bg_color = parseColor(String(__privateGet2(this, _cfg3).oCfg.init.bg_color)),
52922
+ backgroundColor: parseColor(String(__privateGet2(this, _cfg3).oCfg.init.bg_color)),
52649
52923
  resolution: (_b3 = globalThis.devicePixelRatio) != null ? _b3 : 1,
52650
52924
  autoResize: true
52651
52925
  };