@byloth/core 2.2.8 → 2.2.9

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/core.esm.js CHANGED
@@ -49,7 +49,9 @@ var j = typeof window < "u" && typeof window.document < "u", W = typeof process
49
49
  }, ne = class extends Y {
50
50
  response;
51
51
  constructor(r, e, t = "ResponseException") {
52
- super(`The request failed with the status code ${r.status} (${r.statusText}).`, e, t), this.response = r;
52
+ let n;
53
+ const s = r.url ? ` to "${r.url}"` : "", i = r.statusText ? `${r.status} (${r.statusText})` : r.status;
54
+ r.statusText ? n = `The request${s} failed with status ${i}.` : n = `The request${s} failed with status ${i}.`, super(n, e, t), this.response = r;
53
55
  }
54
56
  [Symbol.toStringTag] = "ResponseException";
55
57
  }, re = class extends m {
@@ -924,14 +926,14 @@ var j = typeof window < "u" && typeof window.document < "u", W = typeof process
924
926
  return e;
925
927
  }
926
928
  [Symbol.toStringTag] = "AggregatedIterator";
927
- }, G = Function, z = class extends G {
929
+ }, G = Function, $ = class extends G {
928
930
  constructor() {
929
931
  super("return this._invoke(...arguments);");
930
932
  const r = this.bind(this);
931
933
  return Object.setPrototypeOf(this, r), r;
932
934
  }
933
935
  [Symbol.toStringTag] = "CallableObject";
934
- }, ie = class extends z {
936
+ }, ie = class extends $ {
935
937
  _callbacks;
936
938
  get size() {
937
939
  return this._callbacks.length;
@@ -955,13 +957,13 @@ var j = typeof window < "u" && typeof window.document < "u", W = typeof process
955
957
  this._callbacks.length = 0;
956
958
  }
957
959
  [Symbol.toStringTag] = "CallbackChain";
958
- }, I = class N {
960
+ }, I = class z {
959
961
  _subscribers;
960
962
  constructor() {
961
963
  this._subscribers = /* @__PURE__ */ new Map();
962
964
  }
963
965
  createScope() {
964
- const e = new N();
966
+ const e = new z();
965
967
  return this.subscribe("__internals__:clear", () => e.clear()), this.subscribe("*", (t, ...n) => {
966
968
  e.publish(t, ...n);
967
969
  }), e;
@@ -1000,7 +1002,7 @@ var j = typeof window < "u" && typeof window.document < "u", W = typeof process
1000
1002
  }, H = () => {
1001
1003
  }, P = () => {
1002
1004
  throw new B("The `SwitchableCallback` has no callback defined yet. Did you forget to call the `register` method?");
1003
- }, oe = class extends z {
1005
+ }, oe = class extends $ {
1004
1006
  _callback;
1005
1007
  _callbacks;
1006
1008
  _isEnabled;
@@ -1216,9 +1218,9 @@ var j = typeof window < "u" && typeof window.document < "u", W = typeof process
1216
1218
  this._volatile.removeItem(r), this._persistent.removeItem(r);
1217
1219
  }
1218
1220
  [Symbol.toStringTag] = "JSONStorage";
1219
- }, b = class q {
1221
+ }, b = class N {
1220
1222
  static FromPromise(e) {
1221
- return new q((t, n) => e.then(t, n));
1223
+ return new N((t, n) => e.then(t, n));
1222
1224
  }
1223
1225
  _isPending;
1224
1226
  get isPending() {
@@ -1250,7 +1252,7 @@ var j = typeof window < "u" && typeof window.document < "u", W = typeof process
1250
1252
  return this._promise.finally(e);
1251
1253
  }
1252
1254
  [Symbol.toStringTag] = "SmartPromise";
1253
- }, O = class extends b {
1255
+ }, q = class extends b {
1254
1256
  _resolve;
1255
1257
  get resolve() {
1256
1258
  return this._resolve;
@@ -1296,7 +1298,7 @@ var j = typeof window < "u" && typeof window.document < "u", W = typeof process
1296
1298
  super((r) => r()), this._count = 0, this._isPending = !1, this._isFulfilled = !1, this._isRejected = !1;
1297
1299
  }
1298
1300
  enqueue(r, e) {
1299
- if (this._count += 1, r instanceof O) {
1301
+ if (this._count += 1, r instanceof q) {
1300
1302
  const n = r;
1301
1303
  r = () => (n.resolve(), n);
1302
1304
  }
@@ -1338,7 +1340,7 @@ function me(r, e = Q.Sunday) {
1338
1340
  const t = 7 - e, n = (r.getUTCDay() + t) % 7, s = r.getTime() - y.Day * n;
1339
1341
  return X(new Date(s));
1340
1342
  }
1341
- var $ = class {
1343
+ var O = class {
1342
1344
  _handle;
1343
1345
  _startTime;
1344
1346
  get startTime() {
@@ -1377,7 +1379,7 @@ var $ = class {
1377
1379
  return this._publisher.subscribe("stop", r);
1378
1380
  }
1379
1381
  [Symbol.toStringTag] = "GameLoop";
1380
- }, we = class extends $ {
1382
+ }, we = class extends O {
1381
1383
  constructor(r = y.Second) {
1382
1384
  super((e) => this._publisher.publish("tick", e), r);
1383
1385
  }
@@ -1399,7 +1401,7 @@ var $ = class {
1399
1401
  });
1400
1402
  }
1401
1403
  [Symbol.toStringTag] = "Clock";
1402
- }, pe = class extends $ {
1404
+ }, pe = class extends O {
1403
1405
  _duration;
1404
1406
  get duration() {
1405
1407
  return this._duration;
@@ -1423,7 +1425,7 @@ var $ = class {
1423
1425
  start(r = this.duration) {
1424
1426
  if (this._isRunning) throw new w("The countdown had already stopped or hadn't yet started.");
1425
1427
  if (this._deferrer) throw new E();
1426
- return this._deferrer = new O(), super.start(this.duration - r), this._publisher.publish("start"), this._deferrer;
1428
+ return this._deferrer = new q(), super.start(this.duration - r), this._publisher.publish("start"), this._deferrer;
1427
1429
  }
1428
1430
  stop(r) {
1429
1431
  this._deferrerStop(r), this._publisher.publish("stop", r);
@@ -1694,24 +1696,24 @@ function Ce(r) {
1694
1696
  function Pe(r) {
1695
1697
  return `${r.charAt(0).toUpperCase()}${r.slice(1)}`;
1696
1698
  }
1697
- var je = "2.2.8";
1699
+ var je = "2.2.9";
1698
1700
  export {
1699
1701
  L as AggregatedAsyncIterator,
1700
1702
  F as AggregatedIterator,
1701
1703
  ae as ArrayView,
1702
- z as CallableObject,
1704
+ $ as CallableObject,
1703
1705
  ie as CallbackChain,
1704
1706
  we as Clock,
1705
1707
  pe as Countdown,
1706
1708
  _e as Curve,
1707
- O as DeferredPromise,
1709
+ q as DeferredPromise,
1708
1710
  V as EnvironmentException,
1709
1711
  m as Exception,
1710
1712
  E as FatalErrorException,
1711
1713
  D as FileException,
1712
1714
  ee as FileExistsException,
1713
1715
  te as FileNotFoundException,
1714
- $ as GameLoop,
1716
+ O as GameLoop,
1715
1717
  ce as JSONStorage,
1716
1718
  g as KeyException,
1717
1719
  le as MapView,