@aikaara/chat-sdk 1.4.28 → 1.4.29

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.
@@ -639,35 +639,35 @@ function lc() {
639
639
  for (var s = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, n = r.length; o < n; ++o) s[o] = r[o], e[r.charCodeAt(o)] = o;
640
640
  e[45] = 62, e[95] = 63;
641
641
  function i(b) {
642
- var d = b.length;
643
- if (d % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
642
+ var f = b.length;
643
+ if (f % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
644
644
  var g = b.indexOf("=");
645
- g === -1 && (g = d);
646
- var y = g === d ? 0 : 4 - g % 4;
645
+ g === -1 && (g = f);
646
+ var y = g === f ? 0 : 4 - g % 4;
647
647
  return [g, y];
648
648
  }
649
649
  function a(b) {
650
- var d = i(b), g = d[0], y = d[1];
650
+ var f = i(b), g = f[0], y = f[1];
651
651
  return (g + y) * 3 / 4 - y;
652
652
  }
653
- function l(b, d, g) {
654
- return (d + g) * 3 / 4 - g;
653
+ function l(b, f, g) {
654
+ return (f + g) * 3 / 4 - g;
655
655
  }
656
656
  function c(b) {
657
- var d, g = i(b), y = g[0], w = g[1], m = new t(l(b, y, w)), _ = 0, x = w > 0 ? y - 4 : y, v;
658
- for (v = 0; v < x; v += 4) d = e[b.charCodeAt(v)] << 18 | e[b.charCodeAt(v + 1)] << 12 | e[b.charCodeAt(v + 2)] << 6 | e[b.charCodeAt(v + 3)], m[_++] = d >> 16 & 255, m[_++] = d >> 8 & 255, m[_++] = d & 255;
659
- return w === 2 && (d = e[b.charCodeAt(v)] << 2 | e[b.charCodeAt(v + 1)] >> 4, m[_++] = d & 255), w === 1 && (d = e[b.charCodeAt(v)] << 10 | e[b.charCodeAt(v + 1)] << 4 | e[b.charCodeAt(v + 2)] >> 2, m[_++] = d >> 8 & 255, m[_++] = d & 255), m;
657
+ var f, g = i(b), y = g[0], w = g[1], m = new t(l(b, y, w)), _ = 0, x = w > 0 ? y - 4 : y, v;
658
+ for (v = 0; v < x; v += 4) f = e[b.charCodeAt(v)] << 18 | e[b.charCodeAt(v + 1)] << 12 | e[b.charCodeAt(v + 2)] << 6 | e[b.charCodeAt(v + 3)], m[_++] = f >> 16 & 255, m[_++] = f >> 8 & 255, m[_++] = f & 255;
659
+ return w === 2 && (f = e[b.charCodeAt(v)] << 2 | e[b.charCodeAt(v + 1)] >> 4, m[_++] = f & 255), w === 1 && (f = e[b.charCodeAt(v)] << 10 | e[b.charCodeAt(v + 1)] << 4 | e[b.charCodeAt(v + 2)] >> 2, m[_++] = f >> 8 & 255, m[_++] = f & 255), m;
660
660
  }
661
661
  function u(b) {
662
662
  return s[b >> 18 & 63] + s[b >> 12 & 63] + s[b >> 6 & 63] + s[b & 63];
663
663
  }
664
- function h(b, d, g) {
665
- for (var y, w = [], m = d; m < g; m += 3) y = (b[m] << 16 & 16711680) + (b[m + 1] << 8 & 65280) + (b[m + 2] & 255), w.push(u(y));
664
+ function h(b, f, g) {
665
+ for (var y, w = [], m = f; m < g; m += 3) y = (b[m] << 16 & 16711680) + (b[m + 1] << 8 & 65280) + (b[m + 2] & 255), w.push(u(y));
666
666
  return w.join("");
667
667
  }
668
668
  function p(b) {
669
- for (var d, g = b.length, y = g % 3, w = [], m = 16383, _ = 0, x = g - y; _ < x; _ += m) w.push(h(b, _, _ + m > x ? x : _ + m));
670
- return y === 1 ? (d = b[g - 1], w.push(s[d >> 2] + s[d << 4 & 63] + "==")) : y === 2 && (d = (b[g - 2] << 8) + b[g - 1], w.push(s[d >> 10] + s[d >> 4 & 63] + s[d << 2 & 63] + "=")), w.join("");
669
+ for (var f, g = b.length, y = g % 3, w = [], m = 16383, _ = 0, x = g - y; _ < x; _ += m) w.push(h(b, _, _ + m > x ? x : _ + m));
670
+ return y === 1 ? (f = b[g - 1], w.push(s[f >> 2] + s[f << 4 & 63] + "==")) : y === 2 && (f = (b[g - 2] << 8) + b[g - 1], w.push(s[f >> 10] + s[f >> 4 & 63] + s[f << 2 & 63] + "=")), w.join("");
671
671
  }
672
672
  return Bt;
673
673
  }
@@ -683,10 +683,10 @@ function cc() {
683
683
  }
684
684
  return (b ? -1 : 1) * i * Math.pow(2, n - r);
685
685
  }, er.write = function(s, e, t, r, o, n) {
686
- var i, a, l, c = n * 8 - o - 1, u = (1 << c) - 1, h = u >> 1, p = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = r ? 0 : n - 1, d = r ? 1 : -1, g = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
687
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, i = u) : (i = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -i)) < 1 && (i--, l *= 2), i + h >= 1 ? e += p / l : e += p * Math.pow(2, 1 - h), e * l >= 2 && (i++, l /= 2), i + h >= u ? (a = 0, i = u) : i + h >= 1 ? (a = (e * l - 1) * Math.pow(2, o), i = i + h) : (a = e * Math.pow(2, h - 1) * Math.pow(2, o), i = 0)); o >= 8; s[t + b] = a & 255, b += d, a /= 256, o -= 8) ;
688
- for (i = i << o | a, c += o; c > 0; s[t + b] = i & 255, b += d, i /= 256, c -= 8) ;
689
- s[t + b - d] |= g * 128;
686
+ var i, a, l, c = n * 8 - o - 1, u = (1 << c) - 1, h = u >> 1, p = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = r ? 0 : n - 1, f = r ? 1 : -1, g = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
687
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, i = u) : (i = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -i)) < 1 && (i--, l *= 2), i + h >= 1 ? e += p / l : e += p * Math.pow(2, 1 - h), e * l >= 2 && (i++, l /= 2), i + h >= u ? (a = 0, i = u) : i + h >= 1 ? (a = (e * l - 1) * Math.pow(2, o), i = i + h) : (a = e * Math.pow(2, h - 1) * Math.pow(2, o), i = 0)); o >= 8; s[t + b] = a & 255, b += f, a /= 256, o -= 8) ;
688
+ for (i = i << o | a, c += o; c > 0; s[t + b] = i & 255, b += f, i /= 256, c -= 8) ;
689
+ s[t + b - f] |= g * 128;
690
690
  }, er);
691
691
  }
692
692
  function uc() {
@@ -698,10 +698,10 @@ function uc() {
698
698
  wt.kMaxLength = r, i.TYPED_ARRAY_SUPPORT = o(), !i.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
699
699
  function o() {
700
700
  try {
701
- let f = new Uint8Array(1), k = { foo: function() {
701
+ let d = new Uint8Array(1), k = { foo: function() {
702
702
  return 42;
703
703
  } };
704
- return Object.setPrototypeOf(k, Uint8Array.prototype), Object.setPrototypeOf(f, k), f.foo() === 42;
704
+ return Object.setPrototypeOf(k, Uint8Array.prototype), Object.setPrototypeOf(d, k), d.foo() === 42;
705
705
  } catch {
706
706
  return !1;
707
707
  }
@@ -711,104 +711,104 @@ function uc() {
711
711
  } }), Object.defineProperty(i.prototype, "offset", { enumerable: !0, get: function() {
712
712
  if (i.isBuffer(this)) return this.byteOffset;
713
713
  } });
714
- function n(f) {
715
- if (f > r) throw new RangeError('The value "' + f + '" is invalid for option "size"');
716
- let k = new Uint8Array(f);
714
+ function n(d) {
715
+ if (d > r) throw new RangeError('The value "' + d + '" is invalid for option "size"');
716
+ let k = new Uint8Array(d);
717
717
  return Object.setPrototypeOf(k, i.prototype), k;
718
718
  }
719
- function i(f, k, A) {
720
- if (typeof f == "number") {
719
+ function i(d, k, A) {
720
+ if (typeof d == "number") {
721
721
  if (typeof k == "string") throw new TypeError('The "string" argument must be of type string. Received type number');
722
- return u(f);
722
+ return u(d);
723
723
  }
724
- return a(f, k, A);
724
+ return a(d, k, A);
725
725
  }
726
726
  i.poolSize = 8192;
727
- function a(f, k, A) {
728
- if (typeof f == "string") return h(f, k);
729
- if (ArrayBuffer.isView(f)) return b(f);
730
- if (f == null) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof f);
731
- if (H(f, ArrayBuffer) || f && H(f.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (H(f, SharedArrayBuffer) || f && H(f.buffer, SharedArrayBuffer))) return d(f, k, A);
732
- if (typeof f == "number") throw new TypeError('The "value" argument must not be of type number. Received type number');
733
- let B = f.valueOf && f.valueOf();
734
- if (B != null && B !== f) return i.from(B, k, A);
735
- let X = g(f);
727
+ function a(d, k, A) {
728
+ if (typeof d == "string") return h(d, k);
729
+ if (ArrayBuffer.isView(d)) return b(d);
730
+ if (d == null) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof d);
731
+ if (H(d, ArrayBuffer) || d && H(d.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (H(d, SharedArrayBuffer) || d && H(d.buffer, SharedArrayBuffer))) return f(d, k, A);
732
+ if (typeof d == "number") throw new TypeError('The "value" argument must not be of type number. Received type number');
733
+ let B = d.valueOf && d.valueOf();
734
+ if (B != null && B !== d) return i.from(B, k, A);
735
+ let X = g(d);
736
736
  if (X) return X;
737
- if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof f[Symbol.toPrimitive] == "function") return i.from(f[Symbol.toPrimitive]("string"), k, A);
738
- throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof f);
737
+ if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof d[Symbol.toPrimitive] == "function") return i.from(d[Symbol.toPrimitive]("string"), k, A);
738
+ throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof d);
739
739
  }
740
- i.from = function(f, k, A) {
741
- return a(f, k, A);
740
+ i.from = function(d, k, A) {
741
+ return a(d, k, A);
742
742
  }, Object.setPrototypeOf(i.prototype, Uint8Array.prototype), Object.setPrototypeOf(i, Uint8Array);
743
- function l(f) {
744
- if (typeof f != "number") throw new TypeError('"size" argument must be of type number');
745
- if (f < 0) throw new RangeError('The value "' + f + '" is invalid for option "size"');
743
+ function l(d) {
744
+ if (typeof d != "number") throw new TypeError('"size" argument must be of type number');
745
+ if (d < 0) throw new RangeError('The value "' + d + '" is invalid for option "size"');
746
746
  }
747
- function c(f, k, A) {
748
- return l(f), f <= 0 ? n(f) : k !== void 0 ? typeof A == "string" ? n(f).fill(k, A) : n(f).fill(k) : n(f);
747
+ function c(d, k, A) {
748
+ return l(d), d <= 0 ? n(d) : k !== void 0 ? typeof A == "string" ? n(d).fill(k, A) : n(d).fill(k) : n(d);
749
749
  }
750
- i.alloc = function(f, k, A) {
751
- return c(f, k, A);
750
+ i.alloc = function(d, k, A) {
751
+ return c(d, k, A);
752
752
  };
753
- function u(f) {
754
- return l(f), n(f < 0 ? 0 : y(f) | 0);
753
+ function u(d) {
754
+ return l(d), n(d < 0 ? 0 : y(d) | 0);
755
755
  }
756
- i.allocUnsafe = function(f) {
757
- return u(f);
758
- }, i.allocUnsafeSlow = function(f) {
759
- return u(f);
756
+ i.allocUnsafe = function(d) {
757
+ return u(d);
758
+ }, i.allocUnsafeSlow = function(d) {
759
+ return u(d);
760
760
  };
761
- function h(f, k) {
761
+ function h(d, k) {
762
762
  if ((typeof k != "string" || k === "") && (k = "utf8"), !i.isEncoding(k)) throw new TypeError("Unknown encoding: " + k);
763
- let A = m(f, k) | 0, B = n(A), X = B.write(f, k);
763
+ let A = m(d, k) | 0, B = n(A), X = B.write(d, k);
764
764
  return X !== A && (B = B.slice(0, X)), B;
765
765
  }
766
- function p(f) {
767
- let k = f.length < 0 ? 0 : y(f.length) | 0, A = n(k);
768
- for (let B = 0; B < k; B += 1) A[B] = f[B] & 255;
766
+ function p(d) {
767
+ let k = d.length < 0 ? 0 : y(d.length) | 0, A = n(k);
768
+ for (let B = 0; B < k; B += 1) A[B] = d[B] & 255;
769
769
  return A;
770
770
  }
771
- function b(f) {
772
- if (H(f, Uint8Array)) {
773
- let k = new Uint8Array(f);
774
- return d(k.buffer, k.byteOffset, k.byteLength);
771
+ function b(d) {
772
+ if (H(d, Uint8Array)) {
773
+ let k = new Uint8Array(d);
774
+ return f(k.buffer, k.byteOffset, k.byteLength);
775
775
  }
776
- return p(f);
776
+ return p(d);
777
777
  }
778
- function d(f, k, A) {
779
- if (k < 0 || f.byteLength < k) throw new RangeError('"offset" is outside of buffer bounds');
780
- if (f.byteLength < k + (A || 0)) throw new RangeError('"length" is outside of buffer bounds');
778
+ function f(d, k, A) {
779
+ if (k < 0 || d.byteLength < k) throw new RangeError('"offset" is outside of buffer bounds');
780
+ if (d.byteLength < k + (A || 0)) throw new RangeError('"length" is outside of buffer bounds');
781
781
  let B;
782
- return k === void 0 && A === void 0 ? B = new Uint8Array(f) : A === void 0 ? B = new Uint8Array(f, k) : B = new Uint8Array(f, k, A), Object.setPrototypeOf(B, i.prototype), B;
783
- }
784
- function g(f) {
785
- if (i.isBuffer(f)) {
786
- let k = y(f.length) | 0, A = n(k);
787
- return A.length === 0 || f.copy(A, 0, 0, k), A;
788
- }
789
- if (f.length !== void 0) return typeof f.length != "number" || me(f.length) ? n(0) : p(f);
790
- if (f.type === "Buffer" && Array.isArray(f.data)) return p(f.data);
791
- }
792
- function y(f) {
793
- if (f >= r) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + r.toString(16) + " bytes");
794
- return f | 0;
795
- }
796
- function w(f) {
797
- return +f != f && (f = 0), i.alloc(+f);
798
- }
799
- i.isBuffer = function(f) {
800
- return f != null && f._isBuffer === !0 && f !== i.prototype;
801
- }, i.compare = function(f, k) {
802
- if (H(f, Uint8Array) && (f = i.from(f, f.offset, f.byteLength)), H(k, Uint8Array) && (k = i.from(k, k.offset, k.byteLength)), !i.isBuffer(f) || !i.isBuffer(k)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
803
- if (f === k) return 0;
804
- let A = f.length, B = k.length;
805
- for (let X = 0, he = Math.min(A, B); X < he; ++X) if (f[X] !== k[X]) {
806
- A = f[X], B = k[X];
782
+ return k === void 0 && A === void 0 ? B = new Uint8Array(d) : A === void 0 ? B = new Uint8Array(d, k) : B = new Uint8Array(d, k, A), Object.setPrototypeOf(B, i.prototype), B;
783
+ }
784
+ function g(d) {
785
+ if (i.isBuffer(d)) {
786
+ let k = y(d.length) | 0, A = n(k);
787
+ return A.length === 0 || d.copy(A, 0, 0, k), A;
788
+ }
789
+ if (d.length !== void 0) return typeof d.length != "number" || me(d.length) ? n(0) : p(d);
790
+ if (d.type === "Buffer" && Array.isArray(d.data)) return p(d.data);
791
+ }
792
+ function y(d) {
793
+ if (d >= r) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + r.toString(16) + " bytes");
794
+ return d | 0;
795
+ }
796
+ function w(d) {
797
+ return +d != d && (d = 0), i.alloc(+d);
798
+ }
799
+ i.isBuffer = function(d) {
800
+ return d != null && d._isBuffer === !0 && d !== i.prototype;
801
+ }, i.compare = function(d, k) {
802
+ if (H(d, Uint8Array) && (d = i.from(d, d.offset, d.byteLength)), H(k, Uint8Array) && (k = i.from(k, k.offset, k.byteLength)), !i.isBuffer(d) || !i.isBuffer(k)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
803
+ if (d === k) return 0;
804
+ let A = d.length, B = k.length;
805
+ for (let X = 0, he = Math.min(A, B); X < he; ++X) if (d[X] !== k[X]) {
806
+ A = d[X], B = k[X];
807
807
  break;
808
808
  }
809
809
  return A < B ? -1 : B < A ? 1 : 0;
810
- }, i.isEncoding = function(f) {
811
- switch (String(f).toLowerCase()) {
810
+ }, i.isEncoding = function(d) {
811
+ switch (String(d).toLowerCase()) {
812
812
  case "hex":
813
813
  case "utf8":
814
814
  case "utf-8":
@@ -824,14 +824,14 @@ function uc() {
824
824
  default:
825
825
  return !1;
826
826
  }
827
- }, i.concat = function(f, k) {
828
- if (!Array.isArray(f)) throw new TypeError('"list" argument must be an Array of Buffers');
829
- if (f.length === 0) return i.alloc(0);
827
+ }, i.concat = function(d, k) {
828
+ if (!Array.isArray(d)) throw new TypeError('"list" argument must be an Array of Buffers');
829
+ if (d.length === 0) return i.alloc(0);
830
830
  let A;
831
- if (k === void 0) for (k = 0, A = 0; A < f.length; ++A) k += f[A].length;
831
+ if (k === void 0) for (k = 0, A = 0; A < d.length; ++A) k += d[A].length;
832
832
  let B = i.allocUnsafe(k), X = 0;
833
- for (A = 0; A < f.length; ++A) {
834
- let he = f[A];
833
+ for (A = 0; A < d.length; ++A) {
834
+ let he = d[A];
835
835
  if (H(he, Uint8Array)) X + he.length > B.length ? (i.isBuffer(he) || (he = i.from(he)), he.copy(B, X)) : Uint8Array.prototype.set.call(B, he, X);
836
836
  else if (i.isBuffer(he)) he.copy(B, X);
837
837
  else throw new TypeError('"list" argument must be an Array of Buffers');
@@ -839,11 +839,11 @@ function uc() {
839
839
  }
840
840
  return B;
841
841
  };
842
- function m(f, k) {
843
- if (i.isBuffer(f)) return f.length;
844
- if (ArrayBuffer.isView(f) || H(f, ArrayBuffer)) return f.byteLength;
845
- if (typeof f != "string") throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof f);
846
- let A = f.length, B = arguments.length > 2 && arguments[2] === !0;
842
+ function m(d, k) {
843
+ if (i.isBuffer(d)) return d.length;
844
+ if (ArrayBuffer.isView(d) || H(d, ArrayBuffer)) return d.byteLength;
845
+ if (typeof d != "string") throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof d);
846
+ let A = d.length, B = arguments.length > 2 && arguments[2] === !0;
847
847
  if (!B && A === 0) return 0;
848
848
  let X = !1;
849
849
  for (; ; ) switch (k) {
@@ -853,7 +853,7 @@ function uc() {
853
853
  return A;
854
854
  case "utf8":
855
855
  case "utf-8":
856
- return $(f).length;
856
+ return $(d).length;
857
857
  case "ucs2":
858
858
  case "ucs-2":
859
859
  case "utf16le":
@@ -862,17 +862,17 @@ function uc() {
862
862
  case "hex":
863
863
  return A >>> 1;
864
864
  case "base64":
865
- return fe(f).length;
865
+ return fe(d).length;
866
866
  default:
867
- if (X) return B ? -1 : $(f).length;
867
+ if (X) return B ? -1 : $(d).length;
868
868
  k = ("" + k).toLowerCase(), X = !0;
869
869
  }
870
870
  }
871
871
  i.byteLength = m;
872
- function _(f, k, A) {
872
+ function _(d, k, A) {
873
873
  let B = !1;
874
874
  if ((k === void 0 || k < 0) && (k = 0), k > this.length || ((A === void 0 || A > this.length) && (A = this.length), A <= 0) || (A >>>= 0, k >>>= 0, A <= k)) return "";
875
- for (f || (f = "utf8"); ; ) switch (f) {
875
+ for (d || (d = "utf8"); ; ) switch (d) {
876
876
  case "hex":
877
877
  return V(this, k, A);
878
878
  case "utf8":
@@ -891,68 +891,68 @@ function uc() {
891
891
  case "utf-16le":
892
892
  return re(this, k, A);
893
893
  default:
894
- if (B) throw new TypeError("Unknown encoding: " + f);
895
- f = (f + "").toLowerCase(), B = !0;
894
+ if (B) throw new TypeError("Unknown encoding: " + d);
895
+ d = (d + "").toLowerCase(), B = !0;
896
896
  }
897
897
  }
898
898
  i.prototype._isBuffer = !0;
899
- function x(f, k, A) {
900
- let B = f[k];
901
- f[k] = f[A], f[A] = B;
899
+ function x(d, k, A) {
900
+ let B = d[k];
901
+ d[k] = d[A], d[A] = B;
902
902
  }
903
903
  i.prototype.swap16 = function() {
904
- let f = this.length;
905
- if (f % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
906
- for (let k = 0; k < f; k += 2) x(this, k, k + 1);
904
+ let d = this.length;
905
+ if (d % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
906
+ for (let k = 0; k < d; k += 2) x(this, k, k + 1);
907
907
  return this;
908
908
  }, i.prototype.swap32 = function() {
909
- let f = this.length;
910
- if (f % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
911
- for (let k = 0; k < f; k += 4) x(this, k, k + 3), x(this, k + 1, k + 2);
909
+ let d = this.length;
910
+ if (d % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
911
+ for (let k = 0; k < d; k += 4) x(this, k, k + 3), x(this, k + 1, k + 2);
912
912
  return this;
913
913
  }, i.prototype.swap64 = function() {
914
- let f = this.length;
915
- if (f % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
916
- for (let k = 0; k < f; k += 8) x(this, k, k + 7), x(this, k + 1, k + 6), x(this, k + 2, k + 5), x(this, k + 3, k + 4);
914
+ let d = this.length;
915
+ if (d % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
916
+ for (let k = 0; k < d; k += 8) x(this, k, k + 7), x(this, k + 1, k + 6), x(this, k + 2, k + 5), x(this, k + 3, k + 4);
917
917
  return this;
918
918
  }, i.prototype.toString = function() {
919
- let f = this.length;
920
- return f === 0 ? "" : arguments.length === 0 ? q(this, 0, f) : _.apply(this, arguments);
921
- }, i.prototype.toLocaleString = i.prototype.toString, i.prototype.equals = function(f) {
922
- if (!i.isBuffer(f)) throw new TypeError("Argument must be a Buffer");
923
- return this === f ? !0 : i.compare(this, f) === 0;
919
+ let d = this.length;
920
+ return d === 0 ? "" : arguments.length === 0 ? q(this, 0, d) : _.apply(this, arguments);
921
+ }, i.prototype.toLocaleString = i.prototype.toString, i.prototype.equals = function(d) {
922
+ if (!i.isBuffer(d)) throw new TypeError("Argument must be a Buffer");
923
+ return this === d ? !0 : i.compare(this, d) === 0;
924
924
  }, i.prototype.inspect = function() {
925
- let f = "", k = wt.INSPECT_MAX_BYTES;
926
- return f = this.toString("hex", 0, k).replace(/(.{2})/g, "$1 ").trim(), this.length > k && (f += " ... "), "<Buffer " + f + ">";
927
- }, t && (i.prototype[t] = i.prototype.inspect), i.prototype.compare = function(f, k, A, B, X) {
928
- if (H(f, Uint8Array) && (f = i.from(f, f.offset, f.byteLength)), !i.isBuffer(f)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof f);
929
- if (k === void 0 && (k = 0), A === void 0 && (A = f ? f.length : 0), B === void 0 && (B = 0), X === void 0 && (X = this.length), k < 0 || A > f.length || B < 0 || X > this.length) throw new RangeError("out of range index");
925
+ let d = "", k = wt.INSPECT_MAX_BYTES;
926
+ return d = this.toString("hex", 0, k).replace(/(.{2})/g, "$1 ").trim(), this.length > k && (d += " ... "), "<Buffer " + d + ">";
927
+ }, t && (i.prototype[t] = i.prototype.inspect), i.prototype.compare = function(d, k, A, B, X) {
928
+ if (H(d, Uint8Array) && (d = i.from(d, d.offset, d.byteLength)), !i.isBuffer(d)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof d);
929
+ if (k === void 0 && (k = 0), A === void 0 && (A = d ? d.length : 0), B === void 0 && (B = 0), X === void 0 && (X = this.length), k < 0 || A > d.length || B < 0 || X > this.length) throw new RangeError("out of range index");
930
930
  if (B >= X && k >= A) return 0;
931
931
  if (B >= X) return -1;
932
932
  if (k >= A) return 1;
933
- if (k >>>= 0, A >>>= 0, B >>>= 0, X >>>= 0, this === f) return 0;
934
- let he = X - B, ke = A - k, z = Math.min(he, ke), ie = this.slice(B, X), Ee = f.slice(k, A);
933
+ if (k >>>= 0, A >>>= 0, B >>>= 0, X >>>= 0, this === d) return 0;
934
+ let he = X - B, ke = A - k, z = Math.min(he, ke), ie = this.slice(B, X), Ee = d.slice(k, A);
935
935
  for (let Ae = 0; Ae < z; ++Ae) if (ie[Ae] !== Ee[Ae]) {
936
936
  he = ie[Ae], ke = Ee[Ae];
937
937
  break;
938
938
  }
939
939
  return he < ke ? -1 : ke < he ? 1 : 0;
940
940
  };
941
- function v(f, k, A, B, X) {
942
- if (f.length === 0) return -1;
943
- if (typeof A == "string" ? (B = A, A = 0) : A > 2147483647 ? A = 2147483647 : A < -2147483648 && (A = -2147483648), A = +A, me(A) && (A = X ? 0 : f.length - 1), A < 0 && (A = f.length + A), A >= f.length) {
941
+ function v(d, k, A, B, X) {
942
+ if (d.length === 0) return -1;
943
+ if (typeof A == "string" ? (B = A, A = 0) : A > 2147483647 ? A = 2147483647 : A < -2147483648 && (A = -2147483648), A = +A, me(A) && (A = X ? 0 : d.length - 1), A < 0 && (A = d.length + A), A >= d.length) {
944
944
  if (X) return -1;
945
- A = f.length - 1;
945
+ A = d.length - 1;
946
946
  } else if (A < 0) if (X) A = 0;
947
947
  else return -1;
948
- if (typeof k == "string" && (k = i.from(k, B)), i.isBuffer(k)) return k.length === 0 ? -1 : E(f, k, A, B, X);
949
- if (typeof k == "number") return k = k & 255, typeof Uint8Array.prototype.indexOf == "function" ? X ? Uint8Array.prototype.indexOf.call(f, k, A) : Uint8Array.prototype.lastIndexOf.call(f, k, A) : E(f, [k], A, B, X);
948
+ if (typeof k == "string" && (k = i.from(k, B)), i.isBuffer(k)) return k.length === 0 ? -1 : E(d, k, A, B, X);
949
+ if (typeof k == "number") return k = k & 255, typeof Uint8Array.prototype.indexOf == "function" ? X ? Uint8Array.prototype.indexOf.call(d, k, A) : Uint8Array.prototype.lastIndexOf.call(d, k, A) : E(d, [k], A, B, X);
950
950
  throw new TypeError("val must be string, number or Buffer");
951
951
  }
952
- function E(f, k, A, B, X) {
953
- let he = 1, ke = f.length, z = k.length;
952
+ function E(d, k, A, B, X) {
953
+ let he = 1, ke = d.length, z = k.length;
954
954
  if (B !== void 0 && (B = String(B).toLowerCase(), B === "ucs2" || B === "ucs-2" || B === "utf16le" || B === "utf-16le")) {
955
- if (f.length < 2 || k.length < 2) return -1;
955
+ if (d.length < 2 || k.length < 2) return -1;
956
956
  he = 2, ke /= 2, z /= 2, A /= 2;
957
957
  }
958
958
  function ie(Ae, Ie) {
@@ -961,12 +961,12 @@ function uc() {
961
961
  let Ee;
962
962
  if (X) {
963
963
  let Ae = -1;
964
- for (Ee = A; Ee < ke; Ee++) if (ie(f, Ee) === ie(k, Ae === -1 ? 0 : Ee - Ae)) {
964
+ for (Ee = A; Ee < ke; Ee++) if (ie(d, Ee) === ie(k, Ae === -1 ? 0 : Ee - Ae)) {
965
965
  if (Ae === -1 && (Ae = Ee), Ee - Ae + 1 === z) return Ae * he;
966
966
  } else Ae !== -1 && (Ee -= Ee - Ae), Ae = -1;
967
967
  } else for (A + z > ke && (A = ke - z), Ee = A; Ee >= 0; Ee--) {
968
968
  let Ae = !0;
969
- for (let Ie = 0; Ie < z; Ie++) if (ie(f, Ee + Ie) !== ie(k, Ie)) {
969
+ for (let Ie = 0; Ie < z; Ie++) if (ie(d, Ee + Ie) !== ie(k, Ie)) {
970
970
  Ae = !1;
971
971
  break;
972
972
  }
@@ -974,16 +974,16 @@ function uc() {
974
974
  }
975
975
  return -1;
976
976
  }
977
- i.prototype.includes = function(f, k, A) {
978
- return this.indexOf(f, k, A) !== -1;
979
- }, i.prototype.indexOf = function(f, k, A) {
980
- return v(this, f, k, A, !0);
981
- }, i.prototype.lastIndexOf = function(f, k, A) {
982
- return v(this, f, k, A, !1);
977
+ i.prototype.includes = function(d, k, A) {
978
+ return this.indexOf(d, k, A) !== -1;
979
+ }, i.prototype.indexOf = function(d, k, A) {
980
+ return v(this, d, k, A, !0);
981
+ }, i.prototype.lastIndexOf = function(d, k, A) {
982
+ return v(this, d, k, A, !1);
983
983
  };
984
- function S(f, k, A, B) {
984
+ function S(d, k, A, B) {
985
985
  A = Number(A) || 0;
986
- let X = f.length - A;
986
+ let X = d.length - A;
987
987
  B ? (B = Number(B), B > X && (B = X)) : B = X;
988
988
  let he = k.length;
989
989
  B > he / 2 && (B = he / 2);
@@ -991,48 +991,48 @@ function uc() {
991
991
  for (ke = 0; ke < B; ++ke) {
992
992
  let z = parseInt(k.substr(ke * 2, 2), 16);
993
993
  if (me(z)) return ke;
994
- f[A + ke] = z;
994
+ d[A + ke] = z;
995
995
  }
996
996
  return ke;
997
997
  }
998
- function I(f, k, A, B) {
999
- return ye($(k, f.length - A), f, A, B);
998
+ function I(d, k, A, B) {
999
+ return ye($(k, d.length - A), d, A, B);
1000
1000
  }
1001
- function O(f, k, A, B) {
1002
- return ye(ee(k), f, A, B);
1001
+ function O(d, k, A, B) {
1002
+ return ye(ee(k), d, A, B);
1003
1003
  }
1004
- function P(f, k, A, B) {
1005
- return ye(fe(k), f, A, B);
1004
+ function P(d, k, A, B) {
1005
+ return ye(fe(k), d, A, B);
1006
1006
  }
1007
- function j(f, k, A, B) {
1008
- return ye(de(k, f.length - A), f, A, B);
1007
+ function j(d, k, A, B) {
1008
+ return ye(de(k, d.length - A), d, A, B);
1009
1009
  }
1010
- i.prototype.write = function(f, k, A, B) {
1010
+ i.prototype.write = function(d, k, A, B) {
1011
1011
  if (k === void 0) B = "utf8", A = this.length, k = 0;
1012
1012
  else if (A === void 0 && typeof k == "string") B = k, A = this.length, k = 0;
1013
1013
  else if (isFinite(k)) k = k >>> 0, isFinite(A) ? (A = A >>> 0, B === void 0 && (B = "utf8")) : (B = A, A = void 0);
1014
1014
  else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
1015
1015
  let X = this.length - k;
1016
- if ((A === void 0 || A > X) && (A = X), f.length > 0 && (A < 0 || k < 0) || k > this.length) throw new RangeError("Attempt to write outside buffer bounds");
1016
+ if ((A === void 0 || A > X) && (A = X), d.length > 0 && (A < 0 || k < 0) || k > this.length) throw new RangeError("Attempt to write outside buffer bounds");
1017
1017
  B || (B = "utf8");
1018
1018
  let he = !1;
1019
1019
  for (; ; ) switch (B) {
1020
1020
  case "hex":
1021
- return S(this, f, k, A);
1021
+ return S(this, d, k, A);
1022
1022
  case "utf8":
1023
1023
  case "utf-8":
1024
- return I(this, f, k, A);
1024
+ return I(this, d, k, A);
1025
1025
  case "ascii":
1026
1026
  case "latin1":
1027
1027
  case "binary":
1028
- return O(this, f, k, A);
1028
+ return O(this, d, k, A);
1029
1029
  case "base64":
1030
- return P(this, f, k, A);
1030
+ return P(this, d, k, A);
1031
1031
  case "ucs2":
1032
1032
  case "ucs-2":
1033
1033
  case "utf16le":
1034
1034
  case "utf-16le":
1035
- return j(this, f, k, A);
1035
+ return j(this, d, k, A);
1036
1036
  default:
1037
1037
  if (he) throw new TypeError("Unknown encoding: " + B);
1038
1038
  B = ("" + B).toLowerCase(), he = !0;
@@ -1040,14 +1040,14 @@ function uc() {
1040
1040
  }, i.prototype.toJSON = function() {
1041
1041
  return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
1042
1042
  };
1043
- function T(f, k, A) {
1044
- return k === 0 && A === f.length ? s.fromByteArray(f) : s.fromByteArray(f.slice(k, A));
1043
+ function T(d, k, A) {
1044
+ return k === 0 && A === d.length ? s.fromByteArray(d) : s.fromByteArray(d.slice(k, A));
1045
1045
  }
1046
- function q(f, k, A) {
1047
- A = Math.min(f.length, A);
1046
+ function q(d, k, A) {
1047
+ A = Math.min(d.length, A);
1048
1048
  let B = [], X = k;
1049
1049
  for (; X < A; ) {
1050
- let he = f[X], ke = null, z = he > 239 ? 4 : he > 223 ? 3 : he > 191 ? 2 : 1;
1050
+ let he = d[X], ke = null, z = he > 239 ? 4 : he > 223 ? 3 : he > 191 ? 2 : 1;
1051
1051
  if (X + z <= A) {
1052
1052
  let ie, Ee, Ae, Ie;
1053
1053
  switch (z) {
@@ -1055,13 +1055,13 @@ function uc() {
1055
1055
  he < 128 && (ke = he);
1056
1056
  break;
1057
1057
  case 2:
1058
- ie = f[X + 1], (ie & 192) === 128 && (Ie = (he & 31) << 6 | ie & 63, Ie > 127 && (ke = Ie));
1058
+ ie = d[X + 1], (ie & 192) === 128 && (Ie = (he & 31) << 6 | ie & 63, Ie > 127 && (ke = Ie));
1059
1059
  break;
1060
1060
  case 3:
1061
- ie = f[X + 1], Ee = f[X + 2], (ie & 192) === 128 && (Ee & 192) === 128 && (Ie = (he & 15) << 12 | (ie & 63) << 6 | Ee & 63, Ie > 2047 && (Ie < 55296 || Ie > 57343) && (ke = Ie));
1061
+ ie = d[X + 1], Ee = d[X + 2], (ie & 192) === 128 && (Ee & 192) === 128 && (Ie = (he & 15) << 12 | (ie & 63) << 6 | Ee & 63, Ie > 2047 && (Ie < 55296 || Ie > 57343) && (ke = Ie));
1062
1062
  break;
1063
1063
  case 4:
1064
- ie = f[X + 1], Ee = f[X + 2], Ae = f[X + 3], (ie & 192) === 128 && (Ee & 192) === 128 && (Ae & 192) === 128 && (Ie = (he & 15) << 18 | (ie & 63) << 12 | (Ee & 63) << 6 | Ae & 63, Ie > 65535 && Ie < 1114112 && (ke = Ie));
1064
+ ie = d[X + 1], Ee = d[X + 2], Ae = d[X + 3], (ie & 192) === 128 && (Ee & 192) === 128 && (Ae & 192) === 128 && (Ie = (he & 15) << 18 | (ie & 63) << 12 | (Ee & 63) << 6 | Ae & 63, Ie > 65535 && Ie < 1114112 && (ke = Ie));
1065
1065
  }
1066
1066
  }
1067
1067
  ke === null ? (ke = 65533, z = 1) : ke > 65535 && (ke -= 65536, B.push(ke >>> 10 & 1023 | 55296), ke = 56320 | ke & 1023), B.push(ke), X += z;
@@ -1069,311 +1069,311 @@ function uc() {
1069
1069
  return U(B);
1070
1070
  }
1071
1071
  let D = 4096;
1072
- function U(f) {
1073
- let k = f.length;
1074
- if (k <= D) return String.fromCharCode.apply(String, f);
1072
+ function U(d) {
1073
+ let k = d.length;
1074
+ if (k <= D) return String.fromCharCode.apply(String, d);
1075
1075
  let A = "", B = 0;
1076
- for (; B < k; ) A += String.fromCharCode.apply(String, f.slice(B, B += D));
1076
+ for (; B < k; ) A += String.fromCharCode.apply(String, d.slice(B, B += D));
1077
1077
  return A;
1078
1078
  }
1079
- function ae(f, k, A) {
1079
+ function ae(d, k, A) {
1080
1080
  let B = "";
1081
- A = Math.min(f.length, A);
1082
- for (let X = k; X < A; ++X) B += String.fromCharCode(f[X] & 127);
1081
+ A = Math.min(d.length, A);
1082
+ for (let X = k; X < A; ++X) B += String.fromCharCode(d[X] & 127);
1083
1083
  return B;
1084
1084
  }
1085
- function Y(f, k, A) {
1085
+ function Y(d, k, A) {
1086
1086
  let B = "";
1087
- A = Math.min(f.length, A);
1088
- for (let X = k; X < A; ++X) B += String.fromCharCode(f[X]);
1087
+ A = Math.min(d.length, A);
1088
+ for (let X = k; X < A; ++X) B += String.fromCharCode(d[X]);
1089
1089
  return B;
1090
1090
  }
1091
- function V(f, k, A) {
1092
- let B = f.length;
1091
+ function V(d, k, A) {
1092
+ let B = d.length;
1093
1093
  (!k || k < 0) && (k = 0), (!A || A < 0 || A > B) && (A = B);
1094
1094
  let X = "";
1095
- for (let he = k; he < A; ++he) X += ve[f[he]];
1095
+ for (let he = k; he < A; ++he) X += ve[d[he]];
1096
1096
  return X;
1097
1097
  }
1098
- function re(f, k, A) {
1099
- let B = f.slice(k, A), X = "";
1098
+ function re(d, k, A) {
1099
+ let B = d.slice(k, A), X = "";
1100
1100
  for (let he = 0; he < B.length - 1; he += 2) X += String.fromCharCode(B[he] + B[he + 1] * 256);
1101
1101
  return X;
1102
1102
  }
1103
- i.prototype.slice = function(f, k) {
1103
+ i.prototype.slice = function(d, k) {
1104
1104
  let A = this.length;
1105
- f = ~~f, k = k === void 0 ? A : ~~k, f < 0 ? (f += A, f < 0 && (f = 0)) : f > A && (f = A), k < 0 ? (k += A, k < 0 && (k = 0)) : k > A && (k = A), k < f && (k = f);
1106
- let B = this.subarray(f, k);
1105
+ d = ~~d, k = k === void 0 ? A : ~~k, d < 0 ? (d += A, d < 0 && (d = 0)) : d > A && (d = A), k < 0 ? (k += A, k < 0 && (k = 0)) : k > A && (k = A), k < d && (k = d);
1106
+ let B = this.subarray(d, k);
1107
1107
  return Object.setPrototypeOf(B, i.prototype), B;
1108
1108
  };
1109
- function F(f, k, A) {
1110
- if (f % 1 !== 0 || f < 0) throw new RangeError("offset is not uint");
1111
- if (f + k > A) throw new RangeError("Trying to access beyond buffer length");
1112
- }
1113
- i.prototype.readUintLE = i.prototype.readUIntLE = function(f, k, A) {
1114
- f = f >>> 0, k = k >>> 0, A || F(f, k, this.length);
1115
- let B = this[f], X = 1, he = 0;
1116
- for (; ++he < k && (X *= 256); ) B += this[f + he] * X;
1109
+ function F(d, k, A) {
1110
+ if (d % 1 !== 0 || d < 0) throw new RangeError("offset is not uint");
1111
+ if (d + k > A) throw new RangeError("Trying to access beyond buffer length");
1112
+ }
1113
+ i.prototype.readUintLE = i.prototype.readUIntLE = function(d, k, A) {
1114
+ d = d >>> 0, k = k >>> 0, A || F(d, k, this.length);
1115
+ let B = this[d], X = 1, he = 0;
1116
+ for (; ++he < k && (X *= 256); ) B += this[d + he] * X;
1117
1117
  return B;
1118
- }, i.prototype.readUintBE = i.prototype.readUIntBE = function(f, k, A) {
1119
- f = f >>> 0, k = k >>> 0, A || F(f, k, this.length);
1120
- let B = this[f + --k], X = 1;
1121
- for (; k > 0 && (X *= 256); ) B += this[f + --k] * X;
1118
+ }, i.prototype.readUintBE = i.prototype.readUIntBE = function(d, k, A) {
1119
+ d = d >>> 0, k = k >>> 0, A || F(d, k, this.length);
1120
+ let B = this[d + --k], X = 1;
1121
+ for (; k > 0 && (X *= 256); ) B += this[d + --k] * X;
1122
1122
  return B;
1123
- }, i.prototype.readUint8 = i.prototype.readUInt8 = function(f, k) {
1124
- return f = f >>> 0, k || F(f, 1, this.length), this[f];
1125
- }, i.prototype.readUint16LE = i.prototype.readUInt16LE = function(f, k) {
1126
- return f = f >>> 0, k || F(f, 2, this.length), this[f] | this[f + 1] << 8;
1127
- }, i.prototype.readUint16BE = i.prototype.readUInt16BE = function(f, k) {
1128
- return f = f >>> 0, k || F(f, 2, this.length), this[f] << 8 | this[f + 1];
1129
- }, i.prototype.readUint32LE = i.prototype.readUInt32LE = function(f, k) {
1130
- return f = f >>> 0, k || F(f, 4, this.length), (this[f] | this[f + 1] << 8 | this[f + 2] << 16) + this[f + 3] * 16777216;
1131
- }, i.prototype.readUint32BE = i.prototype.readUInt32BE = function(f, k) {
1132
- return f = f >>> 0, k || F(f, 4, this.length), this[f] * 16777216 + (this[f + 1] << 16 | this[f + 2] << 8 | this[f + 3]);
1133
- }, i.prototype.readBigUInt64LE = se(function(f) {
1134
- f = f >>> 0, J(f, "offset");
1135
- let k = this[f], A = this[f + 7];
1136
- (k === void 0 || A === void 0) && ge(f, this.length - 8);
1137
- let B = k + this[++f] * 2 ** 8 + this[++f] * 2 ** 16 + this[++f] * 2 ** 24, X = this[++f] + this[++f] * 2 ** 8 + this[++f] * 2 ** 16 + A * 2 ** 24;
1123
+ }, i.prototype.readUint8 = i.prototype.readUInt8 = function(d, k) {
1124
+ return d = d >>> 0, k || F(d, 1, this.length), this[d];
1125
+ }, i.prototype.readUint16LE = i.prototype.readUInt16LE = function(d, k) {
1126
+ return d = d >>> 0, k || F(d, 2, this.length), this[d] | this[d + 1] << 8;
1127
+ }, i.prototype.readUint16BE = i.prototype.readUInt16BE = function(d, k) {
1128
+ return d = d >>> 0, k || F(d, 2, this.length), this[d] << 8 | this[d + 1];
1129
+ }, i.prototype.readUint32LE = i.prototype.readUInt32LE = function(d, k) {
1130
+ return d = d >>> 0, k || F(d, 4, this.length), (this[d] | this[d + 1] << 8 | this[d + 2] << 16) + this[d + 3] * 16777216;
1131
+ }, i.prototype.readUint32BE = i.prototype.readUInt32BE = function(d, k) {
1132
+ return d = d >>> 0, k || F(d, 4, this.length), this[d] * 16777216 + (this[d + 1] << 16 | this[d + 2] << 8 | this[d + 3]);
1133
+ }, i.prototype.readBigUInt64LE = se(function(d) {
1134
+ d = d >>> 0, J(d, "offset");
1135
+ let k = this[d], A = this[d + 7];
1136
+ (k === void 0 || A === void 0) && ge(d, this.length - 8);
1137
+ let B = k + this[++d] * 2 ** 8 + this[++d] * 2 ** 16 + this[++d] * 2 ** 24, X = this[++d] + this[++d] * 2 ** 8 + this[++d] * 2 ** 16 + A * 2 ** 24;
1138
1138
  return BigInt(B) + (BigInt(X) << BigInt(32));
1139
- }), i.prototype.readBigUInt64BE = se(function(f) {
1140
- f = f >>> 0, J(f, "offset");
1141
- let k = this[f], A = this[f + 7];
1142
- (k === void 0 || A === void 0) && ge(f, this.length - 8);
1143
- let B = k * 2 ** 24 + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + this[++f], X = this[++f] * 2 ** 24 + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + A;
1139
+ }), i.prototype.readBigUInt64BE = se(function(d) {
1140
+ d = d >>> 0, J(d, "offset");
1141
+ let k = this[d], A = this[d + 7];
1142
+ (k === void 0 || A === void 0) && ge(d, this.length - 8);
1143
+ let B = k * 2 ** 24 + this[++d] * 2 ** 16 + this[++d] * 2 ** 8 + this[++d], X = this[++d] * 2 ** 24 + this[++d] * 2 ** 16 + this[++d] * 2 ** 8 + A;
1144
1144
  return (BigInt(B) << BigInt(32)) + BigInt(X);
1145
- }), i.prototype.readIntLE = function(f, k, A) {
1146
- f = f >>> 0, k = k >>> 0, A || F(f, k, this.length);
1147
- let B = this[f], X = 1, he = 0;
1148
- for (; ++he < k && (X *= 256); ) B += this[f + he] * X;
1145
+ }), i.prototype.readIntLE = function(d, k, A) {
1146
+ d = d >>> 0, k = k >>> 0, A || F(d, k, this.length);
1147
+ let B = this[d], X = 1, he = 0;
1148
+ for (; ++he < k && (X *= 256); ) B += this[d + he] * X;
1149
1149
  return X *= 128, B >= X && (B -= Math.pow(2, 8 * k)), B;
1150
- }, i.prototype.readIntBE = function(f, k, A) {
1151
- f = f >>> 0, k = k >>> 0, A || F(f, k, this.length);
1152
- let B = k, X = 1, he = this[f + --B];
1153
- for (; B > 0 && (X *= 256); ) he += this[f + --B] * X;
1150
+ }, i.prototype.readIntBE = function(d, k, A) {
1151
+ d = d >>> 0, k = k >>> 0, A || F(d, k, this.length);
1152
+ let B = k, X = 1, he = this[d + --B];
1153
+ for (; B > 0 && (X *= 256); ) he += this[d + --B] * X;
1154
1154
  return X *= 128, he >= X && (he -= Math.pow(2, 8 * k)), he;
1155
- }, i.prototype.readInt8 = function(f, k) {
1156
- return f = f >>> 0, k || F(f, 1, this.length), this[f] & 128 ? (255 - this[f] + 1) * -1 : this[f];
1157
- }, i.prototype.readInt16LE = function(f, k) {
1158
- f = f >>> 0, k || F(f, 2, this.length);
1159
- let A = this[f] | this[f + 1] << 8;
1155
+ }, i.prototype.readInt8 = function(d, k) {
1156
+ return d = d >>> 0, k || F(d, 1, this.length), this[d] & 128 ? (255 - this[d] + 1) * -1 : this[d];
1157
+ }, i.prototype.readInt16LE = function(d, k) {
1158
+ d = d >>> 0, k || F(d, 2, this.length);
1159
+ let A = this[d] | this[d + 1] << 8;
1160
1160
  return A & 32768 ? A | 4294901760 : A;
1161
- }, i.prototype.readInt16BE = function(f, k) {
1162
- f = f >>> 0, k || F(f, 2, this.length);
1163
- let A = this[f + 1] | this[f] << 8;
1161
+ }, i.prototype.readInt16BE = function(d, k) {
1162
+ d = d >>> 0, k || F(d, 2, this.length);
1163
+ let A = this[d + 1] | this[d] << 8;
1164
1164
  return A & 32768 ? A | 4294901760 : A;
1165
- }, i.prototype.readInt32LE = function(f, k) {
1166
- return f = f >>> 0, k || F(f, 4, this.length), this[f] | this[f + 1] << 8 | this[f + 2] << 16 | this[f + 3] << 24;
1167
- }, i.prototype.readInt32BE = function(f, k) {
1168
- return f = f >>> 0, k || F(f, 4, this.length), this[f] << 24 | this[f + 1] << 16 | this[f + 2] << 8 | this[f + 3];
1169
- }, i.prototype.readBigInt64LE = se(function(f) {
1170
- f = f >>> 0, J(f, "offset");
1171
- let k = this[f], A = this[f + 7];
1172
- (k === void 0 || A === void 0) && ge(f, this.length - 8);
1173
- let B = this[f + 4] + this[f + 5] * 2 ** 8 + this[f + 6] * 2 ** 16 + (A << 24);
1174
- return (BigInt(B) << BigInt(32)) + BigInt(k + this[++f] * 2 ** 8 + this[++f] * 2 ** 16 + this[++f] * 2 ** 24);
1175
- }), i.prototype.readBigInt64BE = se(function(f) {
1176
- f = f >>> 0, J(f, "offset");
1177
- let k = this[f], A = this[f + 7];
1178
- (k === void 0 || A === void 0) && ge(f, this.length - 8);
1179
- let B = (k << 24) + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + this[++f];
1180
- return (BigInt(B) << BigInt(32)) + BigInt(this[++f] * 2 ** 24 + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + A);
1181
- }), i.prototype.readFloatLE = function(f, k) {
1182
- return f = f >>> 0, k || F(f, 4, this.length), e.read(this, f, !0, 23, 4);
1183
- }, i.prototype.readFloatBE = function(f, k) {
1184
- return f = f >>> 0, k || F(f, 4, this.length), e.read(this, f, !1, 23, 4);
1185
- }, i.prototype.readDoubleLE = function(f, k) {
1186
- return f = f >>> 0, k || F(f, 8, this.length), e.read(this, f, !0, 52, 8);
1187
- }, i.prototype.readDoubleBE = function(f, k) {
1188
- return f = f >>> 0, k || F(f, 8, this.length), e.read(this, f, !1, 52, 8);
1165
+ }, i.prototype.readInt32LE = function(d, k) {
1166
+ return d = d >>> 0, k || F(d, 4, this.length), this[d] | this[d + 1] << 8 | this[d + 2] << 16 | this[d + 3] << 24;
1167
+ }, i.prototype.readInt32BE = function(d, k) {
1168
+ return d = d >>> 0, k || F(d, 4, this.length), this[d] << 24 | this[d + 1] << 16 | this[d + 2] << 8 | this[d + 3];
1169
+ }, i.prototype.readBigInt64LE = se(function(d) {
1170
+ d = d >>> 0, J(d, "offset");
1171
+ let k = this[d], A = this[d + 7];
1172
+ (k === void 0 || A === void 0) && ge(d, this.length - 8);
1173
+ let B = this[d + 4] + this[d + 5] * 2 ** 8 + this[d + 6] * 2 ** 16 + (A << 24);
1174
+ return (BigInt(B) << BigInt(32)) + BigInt(k + this[++d] * 2 ** 8 + this[++d] * 2 ** 16 + this[++d] * 2 ** 24);
1175
+ }), i.prototype.readBigInt64BE = se(function(d) {
1176
+ d = d >>> 0, J(d, "offset");
1177
+ let k = this[d], A = this[d + 7];
1178
+ (k === void 0 || A === void 0) && ge(d, this.length - 8);
1179
+ let B = (k << 24) + this[++d] * 2 ** 16 + this[++d] * 2 ** 8 + this[++d];
1180
+ return (BigInt(B) << BigInt(32)) + BigInt(this[++d] * 2 ** 24 + this[++d] * 2 ** 16 + this[++d] * 2 ** 8 + A);
1181
+ }), i.prototype.readFloatLE = function(d, k) {
1182
+ return d = d >>> 0, k || F(d, 4, this.length), e.read(this, d, !0, 23, 4);
1183
+ }, i.prototype.readFloatBE = function(d, k) {
1184
+ return d = d >>> 0, k || F(d, 4, this.length), e.read(this, d, !1, 23, 4);
1185
+ }, i.prototype.readDoubleLE = function(d, k) {
1186
+ return d = d >>> 0, k || F(d, 8, this.length), e.read(this, d, !0, 52, 8);
1187
+ }, i.prototype.readDoubleBE = function(d, k) {
1188
+ return d = d >>> 0, k || F(d, 8, this.length), e.read(this, d, !1, 52, 8);
1189
1189
  };
1190
- function Z(f, k, A, B, X, he) {
1191
- if (!i.isBuffer(f)) throw new TypeError('"buffer" argument must be a Buffer instance');
1190
+ function Z(d, k, A, B, X, he) {
1191
+ if (!i.isBuffer(d)) throw new TypeError('"buffer" argument must be a Buffer instance');
1192
1192
  if (k > X || k < he) throw new RangeError('"value" argument is out of bounds');
1193
- if (A + B > f.length) throw new RangeError("Index out of range");
1193
+ if (A + B > d.length) throw new RangeError("Index out of range");
1194
1194
  }
1195
- i.prototype.writeUintLE = i.prototype.writeUIntLE = function(f, k, A, B) {
1196
- if (f = +f, k = k >>> 0, A = A >>> 0, !B) {
1195
+ i.prototype.writeUintLE = i.prototype.writeUIntLE = function(d, k, A, B) {
1196
+ if (d = +d, k = k >>> 0, A = A >>> 0, !B) {
1197
1197
  let ke = Math.pow(2, 8 * A) - 1;
1198
- Z(this, f, k, A, ke, 0);
1198
+ Z(this, d, k, A, ke, 0);
1199
1199
  }
1200
1200
  let X = 1, he = 0;
1201
- for (this[k] = f & 255; ++he < A && (X *= 256); ) this[k + he] = f / X & 255;
1201
+ for (this[k] = d & 255; ++he < A && (X *= 256); ) this[k + he] = d / X & 255;
1202
1202
  return k + A;
1203
- }, i.prototype.writeUintBE = i.prototype.writeUIntBE = function(f, k, A, B) {
1204
- if (f = +f, k = k >>> 0, A = A >>> 0, !B) {
1203
+ }, i.prototype.writeUintBE = i.prototype.writeUIntBE = function(d, k, A, B) {
1204
+ if (d = +d, k = k >>> 0, A = A >>> 0, !B) {
1205
1205
  let ke = Math.pow(2, 8 * A) - 1;
1206
- Z(this, f, k, A, ke, 0);
1206
+ Z(this, d, k, A, ke, 0);
1207
1207
  }
1208
1208
  let X = A - 1, he = 1;
1209
- for (this[k + X] = f & 255; --X >= 0 && (he *= 256); ) this[k + X] = f / he & 255;
1209
+ for (this[k + X] = d & 255; --X >= 0 && (he *= 256); ) this[k + X] = d / he & 255;
1210
1210
  return k + A;
1211
- }, i.prototype.writeUint8 = i.prototype.writeUInt8 = function(f, k, A) {
1212
- return f = +f, k = k >>> 0, A || Z(this, f, k, 1, 255, 0), this[k] = f & 255, k + 1;
1213
- }, i.prototype.writeUint16LE = i.prototype.writeUInt16LE = function(f, k, A) {
1214
- return f = +f, k = k >>> 0, A || Z(this, f, k, 2, 65535, 0), this[k] = f & 255, this[k + 1] = f >>> 8, k + 2;
1215
- }, i.prototype.writeUint16BE = i.prototype.writeUInt16BE = function(f, k, A) {
1216
- return f = +f, k = k >>> 0, A || Z(this, f, k, 2, 65535, 0), this[k] = f >>> 8, this[k + 1] = f & 255, k + 2;
1217
- }, i.prototype.writeUint32LE = i.prototype.writeUInt32LE = function(f, k, A) {
1218
- return f = +f, k = k >>> 0, A || Z(this, f, k, 4, 4294967295, 0), this[k + 3] = f >>> 24, this[k + 2] = f >>> 16, this[k + 1] = f >>> 8, this[k] = f & 255, k + 4;
1219
- }, i.prototype.writeUint32BE = i.prototype.writeUInt32BE = function(f, k, A) {
1220
- return f = +f, k = k >>> 0, A || Z(this, f, k, 4, 4294967295, 0), this[k] = f >>> 24, this[k + 1] = f >>> 16, this[k + 2] = f >>> 8, this[k + 3] = f & 255, k + 4;
1211
+ }, i.prototype.writeUint8 = i.prototype.writeUInt8 = function(d, k, A) {
1212
+ return d = +d, k = k >>> 0, A || Z(this, d, k, 1, 255, 0), this[k] = d & 255, k + 1;
1213
+ }, i.prototype.writeUint16LE = i.prototype.writeUInt16LE = function(d, k, A) {
1214
+ return d = +d, k = k >>> 0, A || Z(this, d, k, 2, 65535, 0), this[k] = d & 255, this[k + 1] = d >>> 8, k + 2;
1215
+ }, i.prototype.writeUint16BE = i.prototype.writeUInt16BE = function(d, k, A) {
1216
+ return d = +d, k = k >>> 0, A || Z(this, d, k, 2, 65535, 0), this[k] = d >>> 8, this[k + 1] = d & 255, k + 2;
1217
+ }, i.prototype.writeUint32LE = i.prototype.writeUInt32LE = function(d, k, A) {
1218
+ return d = +d, k = k >>> 0, A || Z(this, d, k, 4, 4294967295, 0), this[k + 3] = d >>> 24, this[k + 2] = d >>> 16, this[k + 1] = d >>> 8, this[k] = d & 255, k + 4;
1219
+ }, i.prototype.writeUint32BE = i.prototype.writeUInt32BE = function(d, k, A) {
1220
+ return d = +d, k = k >>> 0, A || Z(this, d, k, 4, 4294967295, 0), this[k] = d >>> 24, this[k + 1] = d >>> 16, this[k + 2] = d >>> 8, this[k + 3] = d & 255, k + 4;
1221
1221
  };
1222
- function M(f, k, A, B, X) {
1223
- G(k, B, X, f, A, 7);
1222
+ function M(d, k, A, B, X) {
1223
+ G(k, B, X, d, A, 7);
1224
1224
  let he = Number(k & BigInt(4294967295));
1225
- f[A++] = he, he = he >> 8, f[A++] = he, he = he >> 8, f[A++] = he, he = he >> 8, f[A++] = he;
1225
+ d[A++] = he, he = he >> 8, d[A++] = he, he = he >> 8, d[A++] = he, he = he >> 8, d[A++] = he;
1226
1226
  let ke = Number(k >> BigInt(32) & BigInt(4294967295));
1227
- return f[A++] = ke, ke = ke >> 8, f[A++] = ke, ke = ke >> 8, f[A++] = ke, ke = ke >> 8, f[A++] = ke, A;
1227
+ return d[A++] = ke, ke = ke >> 8, d[A++] = ke, ke = ke >> 8, d[A++] = ke, ke = ke >> 8, d[A++] = ke, A;
1228
1228
  }
1229
- function Q(f, k, A, B, X) {
1230
- G(k, B, X, f, A, 7);
1229
+ function Q(d, k, A, B, X) {
1230
+ G(k, B, X, d, A, 7);
1231
1231
  let he = Number(k & BigInt(4294967295));
1232
- f[A + 7] = he, he = he >> 8, f[A + 6] = he, he = he >> 8, f[A + 5] = he, he = he >> 8, f[A + 4] = he;
1232
+ d[A + 7] = he, he = he >> 8, d[A + 6] = he, he = he >> 8, d[A + 5] = he, he = he >> 8, d[A + 4] = he;
1233
1233
  let ke = Number(k >> BigInt(32) & BigInt(4294967295));
1234
- return f[A + 3] = ke, ke = ke >> 8, f[A + 2] = ke, ke = ke >> 8, f[A + 1] = ke, ke = ke >> 8, f[A] = ke, A + 8;
1235
- }
1236
- i.prototype.writeBigUInt64LE = se(function(f, k = 0) {
1237
- return M(this, f, k, BigInt(0), BigInt("0xffffffffffffffff"));
1238
- }), i.prototype.writeBigUInt64BE = se(function(f, k = 0) {
1239
- return Q(this, f, k, BigInt(0), BigInt("0xffffffffffffffff"));
1240
- }), i.prototype.writeIntLE = function(f, k, A, B) {
1241
- if (f = +f, k = k >>> 0, !B) {
1234
+ return d[A + 3] = ke, ke = ke >> 8, d[A + 2] = ke, ke = ke >> 8, d[A + 1] = ke, ke = ke >> 8, d[A] = ke, A + 8;
1235
+ }
1236
+ i.prototype.writeBigUInt64LE = se(function(d, k = 0) {
1237
+ return M(this, d, k, BigInt(0), BigInt("0xffffffffffffffff"));
1238
+ }), i.prototype.writeBigUInt64BE = se(function(d, k = 0) {
1239
+ return Q(this, d, k, BigInt(0), BigInt("0xffffffffffffffff"));
1240
+ }), i.prototype.writeIntLE = function(d, k, A, B) {
1241
+ if (d = +d, k = k >>> 0, !B) {
1242
1242
  let z = Math.pow(2, 8 * A - 1);
1243
- Z(this, f, k, A, z - 1, -z);
1243
+ Z(this, d, k, A, z - 1, -z);
1244
1244
  }
1245
1245
  let X = 0, he = 1, ke = 0;
1246
- for (this[k] = f & 255; ++X < A && (he *= 256); ) f < 0 && ke === 0 && this[k + X - 1] !== 0 && (ke = 1), this[k + X] = (f / he >> 0) - ke & 255;
1246
+ for (this[k] = d & 255; ++X < A && (he *= 256); ) d < 0 && ke === 0 && this[k + X - 1] !== 0 && (ke = 1), this[k + X] = (d / he >> 0) - ke & 255;
1247
1247
  return k + A;
1248
- }, i.prototype.writeIntBE = function(f, k, A, B) {
1249
- if (f = +f, k = k >>> 0, !B) {
1248
+ }, i.prototype.writeIntBE = function(d, k, A, B) {
1249
+ if (d = +d, k = k >>> 0, !B) {
1250
1250
  let z = Math.pow(2, 8 * A - 1);
1251
- Z(this, f, k, A, z - 1, -z);
1251
+ Z(this, d, k, A, z - 1, -z);
1252
1252
  }
1253
1253
  let X = A - 1, he = 1, ke = 0;
1254
- for (this[k + X] = f & 255; --X >= 0 && (he *= 256); ) f < 0 && ke === 0 && this[k + X + 1] !== 0 && (ke = 1), this[k + X] = (f / he >> 0) - ke & 255;
1254
+ for (this[k + X] = d & 255; --X >= 0 && (he *= 256); ) d < 0 && ke === 0 && this[k + X + 1] !== 0 && (ke = 1), this[k + X] = (d / he >> 0) - ke & 255;
1255
1255
  return k + A;
1256
- }, i.prototype.writeInt8 = function(f, k, A) {
1257
- return f = +f, k = k >>> 0, A || Z(this, f, k, 1, 127, -128), f < 0 && (f = 255 + f + 1), this[k] = f & 255, k + 1;
1258
- }, i.prototype.writeInt16LE = function(f, k, A) {
1259
- return f = +f, k = k >>> 0, A || Z(this, f, k, 2, 32767, -32768), this[k] = f & 255, this[k + 1] = f >>> 8, k + 2;
1260
- }, i.prototype.writeInt16BE = function(f, k, A) {
1261
- return f = +f, k = k >>> 0, A || Z(this, f, k, 2, 32767, -32768), this[k] = f >>> 8, this[k + 1] = f & 255, k + 2;
1262
- }, i.prototype.writeInt32LE = function(f, k, A) {
1263
- return f = +f, k = k >>> 0, A || Z(this, f, k, 4, 2147483647, -2147483648), this[k] = f & 255, this[k + 1] = f >>> 8, this[k + 2] = f >>> 16, this[k + 3] = f >>> 24, k + 4;
1264
- }, i.prototype.writeInt32BE = function(f, k, A) {
1265
- return f = +f, k = k >>> 0, A || Z(this, f, k, 4, 2147483647, -2147483648), f < 0 && (f = 4294967295 + f + 1), this[k] = f >>> 24, this[k + 1] = f >>> 16, this[k + 2] = f >>> 8, this[k + 3] = f & 255, k + 4;
1266
- }, i.prototype.writeBigInt64LE = se(function(f, k = 0) {
1267
- return M(this, f, k, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1268
- }), i.prototype.writeBigInt64BE = se(function(f, k = 0) {
1269
- return Q(this, f, k, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1256
+ }, i.prototype.writeInt8 = function(d, k, A) {
1257
+ return d = +d, k = k >>> 0, A || Z(this, d, k, 1, 127, -128), d < 0 && (d = 255 + d + 1), this[k] = d & 255, k + 1;
1258
+ }, i.prototype.writeInt16LE = function(d, k, A) {
1259
+ return d = +d, k = k >>> 0, A || Z(this, d, k, 2, 32767, -32768), this[k] = d & 255, this[k + 1] = d >>> 8, k + 2;
1260
+ }, i.prototype.writeInt16BE = function(d, k, A) {
1261
+ return d = +d, k = k >>> 0, A || Z(this, d, k, 2, 32767, -32768), this[k] = d >>> 8, this[k + 1] = d & 255, k + 2;
1262
+ }, i.prototype.writeInt32LE = function(d, k, A) {
1263
+ return d = +d, k = k >>> 0, A || Z(this, d, k, 4, 2147483647, -2147483648), this[k] = d & 255, this[k + 1] = d >>> 8, this[k + 2] = d >>> 16, this[k + 3] = d >>> 24, k + 4;
1264
+ }, i.prototype.writeInt32BE = function(d, k, A) {
1265
+ return d = +d, k = k >>> 0, A || Z(this, d, k, 4, 2147483647, -2147483648), d < 0 && (d = 4294967295 + d + 1), this[k] = d >>> 24, this[k + 1] = d >>> 16, this[k + 2] = d >>> 8, this[k + 3] = d & 255, k + 4;
1266
+ }, i.prototype.writeBigInt64LE = se(function(d, k = 0) {
1267
+ return M(this, d, k, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1268
+ }), i.prototype.writeBigInt64BE = se(function(d, k = 0) {
1269
+ return Q(this, d, k, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1270
1270
  });
1271
- function be(f, k, A, B, X, he) {
1272
- if (A + B > f.length) throw new RangeError("Index out of range");
1271
+ function be(d, k, A, B, X, he) {
1272
+ if (A + B > d.length) throw new RangeError("Index out of range");
1273
1273
  if (A < 0) throw new RangeError("Index out of range");
1274
1274
  }
1275
- function te(f, k, A, B, X) {
1276
- return k = +k, A = A >>> 0, X || be(f, k, A, 4), e.write(f, k, A, B, 23, 4), A + 4;
1275
+ function te(d, k, A, B, X) {
1276
+ return k = +k, A = A >>> 0, X || be(d, k, A, 4), e.write(d, k, A, B, 23, 4), A + 4;
1277
1277
  }
1278
- i.prototype.writeFloatLE = function(f, k, A) {
1279
- return te(this, f, k, !0, A);
1280
- }, i.prototype.writeFloatBE = function(f, k, A) {
1281
- return te(this, f, k, !1, A);
1278
+ i.prototype.writeFloatLE = function(d, k, A) {
1279
+ return te(this, d, k, !0, A);
1280
+ }, i.prototype.writeFloatBE = function(d, k, A) {
1281
+ return te(this, d, k, !1, A);
1282
1282
  };
1283
- function we(f, k, A, B, X) {
1284
- return k = +k, A = A >>> 0, X || be(f, k, A, 8), e.write(f, k, A, B, 52, 8), A + 8;
1285
- }
1286
- i.prototype.writeDoubleLE = function(f, k, A) {
1287
- return we(this, f, k, !0, A);
1288
- }, i.prototype.writeDoubleBE = function(f, k, A) {
1289
- return we(this, f, k, !1, A);
1290
- }, i.prototype.copy = function(f, k, A, B) {
1291
- if (!i.isBuffer(f)) throw new TypeError("argument should be a Buffer");
1292
- if (A || (A = 0), !B && B !== 0 && (B = this.length), k >= f.length && (k = f.length), k || (k = 0), B > 0 && B < A && (B = A), B === A || f.length === 0 || this.length === 0) return 0;
1283
+ function we(d, k, A, B, X) {
1284
+ return k = +k, A = A >>> 0, X || be(d, k, A, 8), e.write(d, k, A, B, 52, 8), A + 8;
1285
+ }
1286
+ i.prototype.writeDoubleLE = function(d, k, A) {
1287
+ return we(this, d, k, !0, A);
1288
+ }, i.prototype.writeDoubleBE = function(d, k, A) {
1289
+ return we(this, d, k, !1, A);
1290
+ }, i.prototype.copy = function(d, k, A, B) {
1291
+ if (!i.isBuffer(d)) throw new TypeError("argument should be a Buffer");
1292
+ if (A || (A = 0), !B && B !== 0 && (B = this.length), k >= d.length && (k = d.length), k || (k = 0), B > 0 && B < A && (B = A), B === A || d.length === 0 || this.length === 0) return 0;
1293
1293
  if (k < 0) throw new RangeError("targetStart out of bounds");
1294
1294
  if (A < 0 || A >= this.length) throw new RangeError("Index out of range");
1295
1295
  if (B < 0) throw new RangeError("sourceEnd out of bounds");
1296
- B > this.length && (B = this.length), f.length - k < B - A && (B = f.length - k + A);
1296
+ B > this.length && (B = this.length), d.length - k < B - A && (B = d.length - k + A);
1297
1297
  let X = B - A;
1298
- return this === f && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(k, A, B) : Uint8Array.prototype.set.call(f, this.subarray(A, B), k), X;
1299
- }, i.prototype.fill = function(f, k, A, B) {
1300
- if (typeof f == "string") {
1298
+ return this === d && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(k, A, B) : Uint8Array.prototype.set.call(d, this.subarray(A, B), k), X;
1299
+ }, i.prototype.fill = function(d, k, A, B) {
1300
+ if (typeof d == "string") {
1301
1301
  if (typeof k == "string" ? (B = k, k = 0, A = this.length) : typeof A == "string" && (B = A, A = this.length), B !== void 0 && typeof B != "string") throw new TypeError("encoding must be a string");
1302
1302
  if (typeof B == "string" && !i.isEncoding(B)) throw new TypeError("Unknown encoding: " + B);
1303
- if (f.length === 1) {
1304
- let he = f.charCodeAt(0);
1305
- (B === "utf8" && he < 128 || B === "latin1") && (f = he);
1303
+ if (d.length === 1) {
1304
+ let he = d.charCodeAt(0);
1305
+ (B === "utf8" && he < 128 || B === "latin1") && (d = he);
1306
1306
  }
1307
- } else typeof f == "number" ? f = f & 255 : typeof f == "boolean" && (f = Number(f));
1307
+ } else typeof d == "number" ? d = d & 255 : typeof d == "boolean" && (d = Number(d));
1308
1308
  if (k < 0 || this.length < k || this.length < A) throw new RangeError("Out of range index");
1309
1309
  if (A <= k) return this;
1310
- k = k >>> 0, A = A === void 0 ? this.length : A >>> 0, f || (f = 0);
1310
+ k = k >>> 0, A = A === void 0 ? this.length : A >>> 0, d || (d = 0);
1311
1311
  let X;
1312
- if (typeof f == "number") for (X = k; X < A; ++X) this[X] = f;
1312
+ if (typeof d == "number") for (X = k; X < A; ++X) this[X] = d;
1313
1313
  else {
1314
- let he = i.isBuffer(f) ? f : i.from(f, B), ke = he.length;
1315
- if (ke === 0) throw new TypeError('The value "' + f + '" is invalid for argument "value"');
1314
+ let he = i.isBuffer(d) ? d : i.from(d, B), ke = he.length;
1315
+ if (ke === 0) throw new TypeError('The value "' + d + '" is invalid for argument "value"');
1316
1316
  for (X = 0; X < A - k; ++X) this[X + k] = he[X % ke];
1317
1317
  }
1318
1318
  return this;
1319
1319
  };
1320
1320
  let K = {};
1321
- function N(f, k, A) {
1322
- K[f] = class extends A {
1321
+ function N(d, k, A) {
1322
+ K[d] = class extends A {
1323
1323
  constructor() {
1324
- super(), Object.defineProperty(this, "message", { value: k.apply(this, arguments), writable: !0, configurable: !0 }), this.name = `${this.name} [${f}]`, this.stack, delete this.name;
1324
+ super(), Object.defineProperty(this, "message", { value: k.apply(this, arguments), writable: !0, configurable: !0 }), this.name = `${this.name} [${d}]`, this.stack, delete this.name;
1325
1325
  }
1326
1326
  get code() {
1327
- return f;
1327
+ return d;
1328
1328
  }
1329
1329
  set code(B) {
1330
1330
  Object.defineProperty(this, "code", { configurable: !0, enumerable: !0, value: B, writable: !0 });
1331
1331
  }
1332
1332
  toString() {
1333
- return `${this.name} [${f}]: ${this.message}`;
1333
+ return `${this.name} [${d}]: ${this.message}`;
1334
1334
  }
1335
1335
  };
1336
1336
  }
1337
- N("ERR_BUFFER_OUT_OF_BOUNDS", function(f) {
1338
- return f ? `${f} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
1339
- }, RangeError), N("ERR_INVALID_ARG_TYPE", function(f, k) {
1340
- return `The "${f}" argument must be of type number. Received type ${typeof k}`;
1341
- }, TypeError), N("ERR_OUT_OF_RANGE", function(f, k, A) {
1342
- let B = `The value of "${f}" is out of range.`, X = A;
1337
+ N("ERR_BUFFER_OUT_OF_BOUNDS", function(d) {
1338
+ return d ? `${d} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
1339
+ }, RangeError), N("ERR_INVALID_ARG_TYPE", function(d, k) {
1340
+ return `The "${d}" argument must be of type number. Received type ${typeof k}`;
1341
+ }, TypeError), N("ERR_OUT_OF_RANGE", function(d, k, A) {
1342
+ let B = `The value of "${d}" is out of range.`, X = A;
1343
1343
  return Number.isInteger(A) && Math.abs(A) > 2 ** 32 ? X = ne(String(A)) : typeof A == "bigint" && (X = String(A), (A > BigInt(2) ** BigInt(32) || A < -(BigInt(2) ** BigInt(32))) && (X = ne(X)), X += "n"), B += ` It must be ${k}. Received ${X}`, B;
1344
1344
  }, RangeError);
1345
- function ne(f) {
1346
- let k = "", A = f.length, B = f[0] === "-" ? 1 : 0;
1347
- for (; A >= B + 4; A -= 3) k = `_${f.slice(A - 3, A)}${k}`;
1348
- return `${f.slice(0, A)}${k}`;
1345
+ function ne(d) {
1346
+ let k = "", A = d.length, B = d[0] === "-" ? 1 : 0;
1347
+ for (; A >= B + 4; A -= 3) k = `_${d.slice(A - 3, A)}${k}`;
1348
+ return `${d.slice(0, A)}${k}`;
1349
1349
  }
1350
- function W(f, k, A) {
1351
- J(k, "offset"), (f[k] === void 0 || f[k + A] === void 0) && ge(k, f.length - (A + 1));
1350
+ function W(d, k, A) {
1351
+ J(k, "offset"), (d[k] === void 0 || d[k + A] === void 0) && ge(k, d.length - (A + 1));
1352
1352
  }
1353
- function G(f, k, A, B, X, he) {
1354
- if (f > A || f < k) {
1353
+ function G(d, k, A, B, X, he) {
1354
+ if (d > A || d < k) {
1355
1355
  let ke = typeof k == "bigint" ? "n" : "", z;
1356
- throw k === 0 || k === BigInt(0) ? z = `>= 0${ke} and < 2${ke} ** ${(he + 1) * 8}${ke}` : z = `>= -(2${ke} ** ${(he + 1) * 8 - 1}${ke}) and < 2 ** ${(he + 1) * 8 - 1}${ke}`, new K.ERR_OUT_OF_RANGE("value", z, f);
1356
+ throw k === 0 || k === BigInt(0) ? z = `>= 0${ke} and < 2${ke} ** ${(he + 1) * 8}${ke}` : z = `>= -(2${ke} ** ${(he + 1) * 8 - 1}${ke}) and < 2 ** ${(he + 1) * 8 - 1}${ke}`, new K.ERR_OUT_OF_RANGE("value", z, d);
1357
1357
  }
1358
1358
  W(B, X, he);
1359
1359
  }
1360
- function J(f, k) {
1361
- if (typeof f != "number") throw new K.ERR_INVALID_ARG_TYPE(k, "number", f);
1360
+ function J(d, k) {
1361
+ if (typeof d != "number") throw new K.ERR_INVALID_ARG_TYPE(k, "number", d);
1362
1362
  }
1363
- function ge(f, k, A) {
1364
- throw Math.floor(f) !== f ? (J(f, A), new K.ERR_OUT_OF_RANGE("offset", "an integer", f)) : k < 0 ? new K.ERR_BUFFER_OUT_OF_BOUNDS() : new K.ERR_OUT_OF_RANGE("offset", `>= 0 and <= ${k}`, f);
1363
+ function ge(d, k, A) {
1364
+ throw Math.floor(d) !== d ? (J(d, A), new K.ERR_OUT_OF_RANGE("offset", "an integer", d)) : k < 0 ? new K.ERR_BUFFER_OUT_OF_BOUNDS() : new K.ERR_OUT_OF_RANGE("offset", `>= 0 and <= ${k}`, d);
1365
1365
  }
1366
1366
  let oe = /[^+/0-9A-Za-z-_]/g;
1367
- function R(f) {
1368
- if (f = f.split("=")[0], f = f.trim().replace(oe, ""), f.length < 2) return "";
1369
- for (; f.length % 4 !== 0; ) f = f + "=";
1370
- return f;
1367
+ function R(d) {
1368
+ if (d = d.split("=")[0], d = d.trim().replace(oe, ""), d.length < 2) return "";
1369
+ for (; d.length % 4 !== 0; ) d = d + "=";
1370
+ return d;
1371
1371
  }
1372
- function $(f, k) {
1372
+ function $(d, k) {
1373
1373
  k = k || 1 / 0;
1374
- let A, B = f.length, X = null, he = [];
1374
+ let A, B = d.length, X = null, he = [];
1375
1375
  for (let ke = 0; ke < B; ++ke) {
1376
- if (A = f.charCodeAt(ke), A > 55295 && A < 57344) {
1376
+ if (A = d.charCodeAt(ke), A > 55295 && A < 57344) {
1377
1377
  if (!X) {
1378
1378
  if (A > 56319) {
1379
1379
  (k -= 3) > -1 && he.push(239, 191, 189);
@@ -1407,40 +1407,40 @@ function uc() {
1407
1407
  }
1408
1408
  return he;
1409
1409
  }
1410
- function ee(f) {
1410
+ function ee(d) {
1411
1411
  let k = [];
1412
- for (let A = 0; A < f.length; ++A) k.push(f.charCodeAt(A) & 255);
1412
+ for (let A = 0; A < d.length; ++A) k.push(d.charCodeAt(A) & 255);
1413
1413
  return k;
1414
1414
  }
1415
- function de(f, k) {
1415
+ function de(d, k) {
1416
1416
  let A, B, X, he = [];
1417
- for (let ke = 0; ke < f.length && !((k -= 2) < 0); ++ke) A = f.charCodeAt(ke), B = A >> 8, X = A % 256, he.push(X), he.push(B);
1417
+ for (let ke = 0; ke < d.length && !((k -= 2) < 0); ++ke) A = d.charCodeAt(ke), B = A >> 8, X = A % 256, he.push(X), he.push(B);
1418
1418
  return he;
1419
1419
  }
1420
- function fe(f) {
1421
- return s.toByteArray(R(f));
1420
+ function fe(d) {
1421
+ return s.toByteArray(R(d));
1422
1422
  }
1423
- function ye(f, k, A, B) {
1423
+ function ye(d, k, A, B) {
1424
1424
  let X;
1425
- for (X = 0; X < B && !(X + A >= k.length || X >= f.length); ++X) k[X + A] = f[X];
1425
+ for (X = 0; X < B && !(X + A >= k.length || X >= d.length); ++X) k[X + A] = d[X];
1426
1426
  return X;
1427
1427
  }
1428
- function H(f, k) {
1429
- return f instanceof k || f != null && f.constructor != null && f.constructor.name != null && f.constructor.name === k.name;
1428
+ function H(d, k) {
1429
+ return d instanceof k || d != null && d.constructor != null && d.constructor.name != null && d.constructor.name === k.name;
1430
1430
  }
1431
- function me(f) {
1432
- return f !== f;
1431
+ function me(d) {
1432
+ return d !== d;
1433
1433
  }
1434
1434
  let ve = (function() {
1435
- let f = "0123456789abcdef", k = new Array(256);
1435
+ let d = "0123456789abcdef", k = new Array(256);
1436
1436
  for (let A = 0; A < 16; ++A) {
1437
1437
  let B = A * 16;
1438
- for (let X = 0; X < 16; ++X) k[B + X] = f[A] + f[X];
1438
+ for (let X = 0; X < 16; ++X) k[B + X] = d[A] + d[X];
1439
1439
  }
1440
1440
  return k;
1441
1441
  })();
1442
- function se(f) {
1443
- return typeof BigInt > "u" ? Te : f;
1442
+ function se(d) {
1443
+ return typeof BigInt > "u" ? Te : d;
1444
1444
  }
1445
1445
  function Te() {
1446
1446
  throw new Error("BigInt not supported");
@@ -1557,7 +1557,7 @@ var ut, qr, ua, ha, Fe = Ye(() => {
1557
1557
  let v = (_.match(/%[dfijoOs]/g) || []).length;
1558
1558
  return h(v === x.length, `Code: ${m}; The provided arguments length (${x.length}) does not match the required ones (${v}).`), x.length === 0 ? _ : t(_, ...x);
1559
1559
  }
1560
- function d(m, _, x) {
1560
+ function f(m, _, x) {
1561
1561
  x || (x = Error);
1562
1562
  class v extends x {
1563
1563
  constructor(...S) {
@@ -1589,7 +1589,7 @@ var ut, qr, ua, ha, Fe = Ye(() => {
1589
1589
  super(m, _), this.code = "ABORT_ERR", this.name = "AbortError";
1590
1590
  }
1591
1591
  };
1592
- d("ERR_ASSERTION", "%s", Error), d("ERR_INVALID_ARG_TYPE", (m, _, x) => {
1592
+ f("ERR_ASSERTION", "%s", Error), f("ERR_INVALID_ARG_TYPE", (m, _, x) => {
1593
1593
  h(typeof m == "string", "'name' must be a string"), Array.isArray(_) || (_ = [_]);
1594
1594
  let v = "The ";
1595
1595
  m.endsWith(" argument") ? v += `${m} ` : v += `"${m}" ${m.includes(".") ? "property" : "argument"} `, v += "must be ";
@@ -1657,14 +1657,14 @@ var ut, qr, ua, ha, Fe = Ye(() => {
1657
1657
  P.length > 25 && (P = `${P.slice(0, 25)}...`), v += `. Received type ${typeof x} (${P})`;
1658
1658
  }
1659
1659
  return v;
1660
- }, TypeError), d("ERR_INVALID_ARG_VALUE", (m, _, x = "is invalid") => {
1660
+ }, TypeError), f("ERR_INVALID_ARG_VALUE", (m, _, x = "is invalid") => {
1661
1661
  let v = r(_);
1662
1662
  return v.length > 128 && (v = v.slice(0, 128) + "..."), `The ${m.includes(".") ? "property" : "argument"} '${m}' ${x}. Received ${v}`;
1663
- }, TypeError), d("ERR_INVALID_RETURN_VALUE", (m, _, x) => {
1663
+ }, TypeError), f("ERR_INVALID_RETURN_VALUE", (m, _, x) => {
1664
1664
  var v;
1665
1665
  let E = x != null && (v = x.constructor) !== null && v !== void 0 && v.name ? `instance of ${x.constructor.name}` : `type ${typeof x}`;
1666
1666
  return `Expected ${m} to be returned from the "${_}" function but got ${E}.`;
1667
- }, TypeError), d("ERR_MISSING_ARGS", (...m) => {
1667
+ }, TypeError), f("ERR_MISSING_ARGS", (...m) => {
1668
1668
  h(m.length > 0, "At least one arg needs to be specified");
1669
1669
  let _, x = m.length;
1670
1670
  switch (m = (Array.isArray(m) ? m : [m]).map((v) => `"${v}"`).join(" or "), x) {
@@ -1682,7 +1682,7 @@ var ut, qr, ua, ha, Fe = Ye(() => {
1682
1682
  break;
1683
1683
  }
1684
1684
  return `${_} must be specified`;
1685
- }, TypeError), d("ERR_OUT_OF_RANGE", (m, _, x) => {
1685
+ }, TypeError), f("ERR_OUT_OF_RANGE", (m, _, x) => {
1686
1686
  h(_, 'Missing "range" argument');
1687
1687
  let v;
1688
1688
  if (Number.isInteger(x) && Math.abs(x) > 2 ** 32) v = p(String(x));
@@ -1692,7 +1692,7 @@ var ut, qr, ua, ha, Fe = Ye(() => {
1692
1692
  (x > E || x < -E) && (v = p(v)), v += "n";
1693
1693
  } else v = r(x);
1694
1694
  return `The value of "${m}" is out of range. It must be ${_}. Received ${v}`;
1695
- }, RangeError), d("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error), d("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error), d("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error), d("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error), d("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error), d("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), d("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error), d("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error), d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error), d("ERR_STREAM_WRITE_AFTER_END", "write after end", Error), d("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError), e.exports = { AbortError: w, aggregateTwoErrors: g(y), hideStackFrames: g, codes: u };
1695
+ }, RangeError), f("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error), f("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error), f("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error), f("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error), f("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error), f("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), f("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error), f("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error), f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error), f("ERR_STREAM_WRITE_AFTER_END", "write after end", Error), f("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError), e.exports = { AbortError: w, aggregateTwoErrors: g(y), hideStackFrames: g, codes: u };
1696
1696
  }), or = pe((s, e) => {
1697
1697
  le(), ue(), ce();
1698
1698
  var { AbortController: t, AbortSignal: r } = typeof self < "u" ? self : typeof window < "u" ? window : void 0;
@@ -1754,7 +1754,7 @@ function dc() {
1754
1754
  var j = I[x];
1755
1755
  if (j === void 0) return !1;
1756
1756
  if (typeof j == "function") e(j, this, v);
1757
- else for (var T = j.length, q = d(j, T), E = 0; E < T; ++E) e(q[E], this, v);
1757
+ else for (var T = j.length, q = f(j, T), E = 0; E < T; ++E) e(q[E], this, v);
1758
1758
  return !0;
1759
1759
  };
1760
1760
  function c(x, v, E, S) {
@@ -1814,7 +1814,7 @@ function dc() {
1814
1814
  var S = x._events;
1815
1815
  if (S === void 0) return [];
1816
1816
  var I = S[v];
1817
- return I === void 0 ? [] : typeof I == "function" ? E ? [I.listener || I] : [I] : E ? y(I) : d(I, I.length);
1817
+ return I === void 0 ? [] : typeof I == "function" ? E ? [I.listener || I] : [I] : E ? y(I) : f(I, I.length);
1818
1818
  }
1819
1819
  n.prototype.listeners = function(x) {
1820
1820
  return p(this, x, !0);
@@ -1835,7 +1835,7 @@ function dc() {
1835
1835
  n.prototype.eventNames = function() {
1836
1836
  return this._eventsCount > 0 ? t(this._events) : [];
1837
1837
  };
1838
- function d(x, v) {
1838
+ function f(x, v) {
1839
1839
  for (var E = new Array(v), S = 0; S < v; ++S) E[S] = x[S];
1840
1840
  return E;
1841
1841
  }
@@ -1917,7 +1917,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
1917
1917
  return y instanceof p;
1918
1918
  } : function(y) {
1919
1919
  return !1;
1920
- }, d = (y, w) => {
1920
+ }, f = (y, w) => {
1921
1921
  if (y !== void 0 && (y === null || typeof y != "object" || !("aborted" in y))) throw new n(w, "AbortSignal", y);
1922
1922
  }, g = (y, w) => {
1923
1923
  if (typeof y != "function") throw new n(w, "Function", y);
@@ -1947,7 +1947,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
1947
1947
  return y;
1948
1948
  }, addAbortListener: (Rt(), Me(xt)).addAbortListener || function(y, w) {
1949
1949
  if (y === void 0) throw new n("signal", "AbortSignal", y);
1950
- d(y, "signal"), g(w, "listener");
1950
+ f(y, "signal"), g(w, "listener");
1951
1951
  let m;
1952
1952
  return y.aborted ? queueMicrotask(() => w()) : (y.addEventListener("abort", w, { __proto__: null, once: !0, [i]: !0 }), m = () => {
1953
1953
  y.removeEventListener("abort", w);
@@ -1959,14 +1959,14 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
1959
1959
  if (y.length === 1) return y[0];
1960
1960
  let w = new u(), m = () => w.abort();
1961
1961
  return y.forEach((_) => {
1962
- d(_, "signals"), _.addEventListener("abort", m, { once: !0 });
1962
+ f(_, "signals"), _.addEventListener("abort", m, { once: !0 });
1963
1963
  }), w.signal.addEventListener("abort", () => {
1964
1964
  y.forEach((_) => _.removeEventListener("abort", m));
1965
1965
  }, { once: !0 }), w.signal;
1966
1966
  } }, e.exports.promisify.custom = /* @__PURE__ */ Symbol.for("nodejs.util.promisify.custom");
1967
1967
  }), sr = pe((s, e) => {
1968
1968
  le(), ue(), ce();
1969
- var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: o, ArrayPrototypeMap: n, NumberIsInteger: i, NumberIsNaN: a, NumberMAX_SAFE_INTEGER: l, NumberMIN_SAFE_INTEGER: c, NumberParseInt: u, ObjectPrototypeHasOwnProperty: h, RegExpPrototypeExec: p, String: b, StringPrototypeToUpperCase: d, StringPrototypeTrim: g } = je(), { hideStackFrames: y, codes: { ERR_SOCKET_BAD_PORT: w, ERR_INVALID_ARG_TYPE: m, ERR_INVALID_ARG_VALUE: _, ERR_OUT_OF_RANGE: x, ERR_UNKNOWN_SIGNAL: v } } = Ke(), { normalizeEncoding: E } = Ge(), { isAsyncFunction: S, isArrayBufferView: I } = Ge().types, O = {};
1969
+ var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: o, ArrayPrototypeMap: n, NumberIsInteger: i, NumberIsNaN: a, NumberMAX_SAFE_INTEGER: l, NumberMIN_SAFE_INTEGER: c, NumberParseInt: u, ObjectPrototypeHasOwnProperty: h, RegExpPrototypeExec: p, String: b, StringPrototypeToUpperCase: f, StringPrototypeTrim: g } = je(), { hideStackFrames: y, codes: { ERR_SOCKET_BAD_PORT: w, ERR_INVALID_ARG_TYPE: m, ERR_INVALID_ARG_VALUE: _, ERR_OUT_OF_RANGE: x, ERR_UNKNOWN_SIGNAL: v } } = Ke(), { normalizeEncoding: E } = Ge(), { isAsyncFunction: S, isArrayBufferView: I } = Ge().types, O = {};
1970
1970
  function P(H) {
1971
1971
  return H === (H | 0);
1972
1972
  }
@@ -2043,7 +2043,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2043
2043
  }
2044
2044
  }
2045
2045
  function ne(H, me = "signal") {
2046
- if (V(H, me), O[H] === void 0) throw O[d(H)] !== void 0 ? new v(H + " (signals must use all capital letters)") : new v(H);
2046
+ if (V(H, me), O[H] === void 0) throw O[f(H)] !== void 0 ? new v(H + " (signals must use all capital letters)") : new v(H);
2047
2047
  }
2048
2048
  var W = y((H, me = "buffer") => {
2049
2049
  if (!I(H)) throw new m(me, ["Buffer", "TypedArray", "DataView"], H);
@@ -2135,9 +2135,9 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2135
2135
  }
2136
2136
  var c = [], u = !1, h, p = -1;
2137
2137
  function b() {
2138
- !u || !h || (u = !1, h.length ? c = h.concat(c) : p = -1, c.length && d());
2138
+ !u || !h || (u = !1, h.length ? c = h.concat(c) : p = -1, c.length && f());
2139
2139
  }
2140
- function d() {
2140
+ function f() {
2141
2141
  if (!u) {
2142
2142
  var w = a(b);
2143
2143
  u = !0;
@@ -2151,7 +2151,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2151
2151
  t.nextTick = function(w) {
2152
2152
  var m = new Array(arguments.length - 1);
2153
2153
  if (arguments.length > 1) for (var _ = 1; _ < arguments.length; _++) m[_ - 1] = arguments[_];
2154
- c.push(new g(w, m)), c.length === 1 && !u && a(d);
2154
+ c.push(new g(w, m)), c.length === 1 && !u && a(f);
2155
2155
  };
2156
2156
  function g(w, m) {
2157
2157
  this.fun = w, this.array = m;
@@ -2183,7 +2183,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2183
2183
  var Q;
2184
2184
  return !!(M && typeof M.write == "function" && typeof M.on == "function" && (!M._readableState || ((Q = M._writableState) === null || Q === void 0 ? void 0 : Q.writable) !== !1));
2185
2185
  }
2186
- function d(M) {
2186
+ function f(M) {
2187
2187
  return !!(M && typeof M.pipe == "function" && M._readableState && typeof M.on == "function" && typeof M.write == "function");
2188
2188
  }
2189
2189
  function g(M) {
@@ -2278,10 +2278,10 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2278
2278
  var Q, be, te, we, K, N, ne, W, G, J;
2279
2279
  return !!(M && ((Q = (be = (te = (we = (K = (N = M[i]) !== null && N !== void 0 ? N : M.readableErrored) !== null && K !== void 0 ? K : M.writableErrored) !== null && we !== void 0 ? we : (ne = M._readableState) === null || ne === void 0 ? void 0 : ne.errorEmitted) !== null && te !== void 0 ? te : (W = M._writableState) === null || W === void 0 ? void 0 : W.errorEmitted) !== null && be !== void 0 ? be : (G = M._readableState) === null || G === void 0 ? void 0 : G.errored) !== null && Q !== void 0 ? Q : !((J = M._writableState) === null || J === void 0) && J.errored));
2280
2280
  }
2281
- e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: F, kIsDisturbed: c, isErrored: Z, kIsErrored: i, isReadable: P, kIsReadable: a, kIsClosedPromise: u, kControllerErrorFunction: h, kIsWritable: l, isClosed: U, isDuplexNodeStream: d, isFinished: T, isIterable: x, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: O, isReadableErrored: D, isNodeStream: g, isWebStream: _, isWritable: j, isWritableNodeStream: b, isWritableStream: w, isWritableEnded: E, isWritableFinished: S, isWritableErrored: q, isServerRequest: V, isServerResponse: Y, willEmitClose: re, isTransformStream: m };
2281
+ e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: F, kIsDisturbed: c, isErrored: Z, kIsErrored: i, isReadable: P, kIsReadable: a, kIsClosedPromise: u, kControllerErrorFunction: h, kIsWritable: l, isClosed: U, isDuplexNodeStream: f, isFinished: T, isIterable: x, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: O, isReadableErrored: D, isNodeStream: g, isWebStream: _, isWritable: j, isWritableNodeStream: b, isWritableStream: w, isWritableEnded: E, isWritableFinished: S, isWritableErrored: q, isServerRequest: V, isServerResponse: Y, willEmitClose: re, isTransformStream: m };
2282
2282
  }), St = pe((s, e) => {
2283
2283
  le(), ue(), ce();
2284
- var t = Lt(), { AbortError: r, codes: o } = Ke(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: i } = o, { kEmptyObject: a, once: l } = Ge(), { validateAbortSignal: c, validateFunction: u, validateObject: h, validateBoolean: p } = sr(), { Promise: b, PromisePrototypeThen: d, SymbolDispose: g } = je(), { isClosed: y, isReadable: w, isReadableNodeStream: m, isReadableStream: _, isReadableFinished: x, isReadableErrored: v, isWritable: E, isWritableNodeStream: S, isWritableStream: I, isWritableFinished: O, isWritableErrored: P, isNodeStream: j, willEmitClose: T, kIsClosedPromise: q } = mt(), D;
2284
+ var t = Lt(), { AbortError: r, codes: o } = Ke(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: i } = o, { kEmptyObject: a, once: l } = Ge(), { validateAbortSignal: c, validateFunction: u, validateObject: h, validateBoolean: p } = sr(), { Promise: b, PromisePrototypeThen: f, SymbolDispose: g } = je(), { isClosed: y, isReadable: w, isReadableNodeStream: m, isReadableStream: _, isReadableFinished: x, isReadableErrored: v, isWritable: E, isWritableNodeStream: S, isWritableStream: I, isWritableFinished: O, isWritableErrored: P, isNodeStream: j, willEmitClose: T, kIsClosedPromise: q } = mt(), D;
2285
2285
  function U(F) {
2286
2286
  return F.setHeader && typeof F.abort == "function";
2287
2287
  }
@@ -2349,7 +2349,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2349
2349
  let te = (...we) => {
2350
2350
  Q || t.nextTick(() => M.apply(F, we));
2351
2351
  };
2352
- return d(F[q].promise, te, te), ae;
2352
+ return f(F[q].promise, te, te), ae;
2353
2353
  }
2354
2354
  function re(F, Z) {
2355
2355
  var M;
@@ -2367,7 +2367,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2367
2367
  function b(T, q, D) {
2368
2368
  T && (T.stack, q && !q.errored && (q.errored = T), D && !D.errored && (D.errored = T));
2369
2369
  }
2370
- function d(T, q) {
2370
+ function f(T, q) {
2371
2371
  let D = this._readableState, U = this._writableState, ae = U || D;
2372
2372
  return U != null && U.destroyed || D != null && D.destroyed ? (typeof q == "function" && q(), this) : (b(T, U, D), U && (U.destroyed = !0), D && (D.destroyed = !0), ae.constructed ? g(this, T, q) : this.once(h, function(Y) {
2373
2373
  g(this, r(Y, T), q);
@@ -2446,7 +2446,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2446
2446
  function j(T, q) {
2447
2447
  !T || l(T) || (!q && !c(T) && (q = new n()), u(T) ? (T.socket = null, T.destroy(q)) : I(T) ? T.abort() : I(T.req) ? T.req.abort() : typeof T.destroy == "function" ? T.destroy(q) : typeof T.close == "function" ? T.close() : q ? t.nextTick(P, T, q) : t.nextTick(O, T), T.destroyed || (T[a] = !0));
2448
2448
  }
2449
- e.exports = { construct: v, destroyer: j, destroy: d, undestroy: _, errorOrDestroy: x };
2449
+ e.exports = { construct: v, destroyer: j, destroy: f, undestroy: _, errorOrDestroy: x };
2450
2450
  }), mo = pe((s, e) => {
2451
2451
  le(), ue(), ce();
2452
2452
  var { ArrayIsArray: t, ObjectSetPrototypeOf: r } = je(), { EventEmitter: o } = (Rt(), Me(xt));
@@ -2462,12 +2462,12 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2462
2462
  function h() {
2463
2463
  c.readable && c.resume && c.resume();
2464
2464
  }
2465
- a.on("drain", h), !a._isStdio && (!l || l.end !== !1) && (c.on("end", b), c.on("close", d));
2465
+ a.on("drain", h), !a._isStdio && (!l || l.end !== !1) && (c.on("end", b), c.on("close", f));
2466
2466
  let p = !1;
2467
2467
  function b() {
2468
2468
  p || (p = !0, a.end());
2469
2469
  }
2470
- function d() {
2470
+ function f() {
2471
2471
  p || (p = !0, typeof a.destroy == "function" && a.destroy());
2472
2472
  }
2473
2473
  function g(w) {
@@ -2475,7 +2475,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2475
2475
  }
2476
2476
  i(c, "error", g), i(a, "error", g);
2477
2477
  function y() {
2478
- c.removeListener("data", u), a.removeListener("drain", h), c.removeListener("end", b), c.removeListener("close", d), c.removeListener("error", g), a.removeListener("error", g), c.removeListener("end", y), c.removeListener("close", y), a.removeListener("close", y);
2478
+ c.removeListener("data", u), a.removeListener("drain", h), c.removeListener("end", b), c.removeListener("close", f), c.removeListener("error", g), a.removeListener("error", g), c.removeListener("end", y), c.removeListener("close", y), a.removeListener("close", y);
2479
2479
  }
2480
2480
  return c.on("end", y), c.on("close", y), a.on("close", y), a.emit("pipe", c), a;
2481
2481
  };
@@ -2494,15 +2494,15 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2494
2494
  return e.exports.addAbortSignalNoValidate(p, b);
2495
2495
  }, e.exports.addAbortSignalNoValidate = function(p, b) {
2496
2496
  if (typeof p != "object" || !("aborted" in p)) return b;
2497
- let d = n(b) ? () => {
2497
+ let f = n(b) ? () => {
2498
2498
  b.destroy(new r(void 0, { cause: p.reason }));
2499
2499
  } : () => {
2500
2500
  b[a](new r(void 0, { cause: p.reason }));
2501
2501
  };
2502
- if (p.aborted) d();
2502
+ if (p.aborted) f();
2503
2503
  else {
2504
2504
  u = u || Ge().addAbortListener;
2505
- let g = u(p, d);
2505
+ let g = u(p, f);
2506
2506
  l(b, g[t]);
2507
2507
  }
2508
2508
  return b;
@@ -2589,8 +2589,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2589
2589
  }), Vr = pe((s, e) => {
2590
2590
  le(), ue(), ce();
2591
2591
  var { MathFloor: t, NumberIsInteger: r } = je(), { validateInteger: o } = sr(), { ERR_INVALID_ARG_VALUE: n } = Ke().codes, i = 16 * 1024, a = 16;
2592
- function l(p, b, d) {
2593
- return p.highWaterMark != null ? p.highWaterMark : b ? p[d] : null;
2592
+ function l(p, b, f) {
2593
+ return p.highWaterMark != null ? p.highWaterMark : b ? p[f] : null;
2594
2594
  }
2595
2595
  function c(p) {
2596
2596
  return p ? a : i;
@@ -2598,11 +2598,11 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2598
2598
  function u(p, b) {
2599
2599
  o(b, "value", 0), p ? a = b : i = b;
2600
2600
  }
2601
- function h(p, b, d, g) {
2602
- let y = l(b, g, d);
2601
+ function h(p, b, f, g) {
2602
+ let y = l(b, g, f);
2603
2603
  if (y != null) {
2604
2604
  if (!r(y) || y < 0) {
2605
- let w = g ? `options.${d}` : "options.highWaterMark";
2605
+ let w = g ? `options.${f}` : "options.highWaterMark";
2606
2606
  throw new n(w, y);
2607
2607
  }
2608
2608
  return t(y);
@@ -2694,7 +2694,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2694
2694
  this.fillLast = c, _ = 4;
2695
2695
  break;
2696
2696
  case "base64":
2697
- this.text = d, this.end = g, _ = 3;
2697
+ this.text = f, this.end = g, _ = 3;
2698
2698
  break;
2699
2699
  default:
2700
2700
  this.write = y, this.end = w;
@@ -2766,7 +2766,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2766
2766
  }
2767
2767
  return _;
2768
2768
  }
2769
- function d(m, _) {
2769
+ function f(m, _) {
2770
2770
  var x = (m.length - _) % 3;
2771
2771
  return x === 0 ? m.toString("base64", _) : (this.lastNeed = 3 - x, this.lastTotal = 3, x === 1 ? this.lastChar[0] = m[m.length - 1] : (this.lastChar[0] = m[m.length - 2], this.lastChar[1] = m[m.length - 1]), m.toString("base64", _, m.length - x));
2772
2772
  }
@@ -2788,9 +2788,9 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2788
2788
  if (typeof h == "string" || h instanceof i) return new u({ objectMode: !0, ...p, read() {
2789
2789
  this.push(h), this.push(null);
2790
2790
  } });
2791
- let d;
2792
- if (h && h[o]) d = !0, b = h[o]();
2793
- else if (h && h[n]) d = !1, b = h[n]();
2791
+ let f;
2792
+ if (h && h[o]) f = !0, b = h[o]();
2793
+ else if (h && h[n]) f = !1, b = h[n]();
2794
2794
  else throw new a("iterable", ["Iterable"], h);
2795
2795
  let g = new u({ objectMode: !0, highWaterMark: 1, ...p }), y = !1;
2796
2796
  g._read = function() {
@@ -2812,7 +2812,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2812
2812
  async function m() {
2813
2813
  for (; ; ) {
2814
2814
  try {
2815
- let { value: _, done: x } = d ? await b.next() : b.next();
2815
+ let { value: _, done: x } = f ? await b.next() : b.next();
2816
2816
  if (x) g.push(null);
2817
2817
  else {
2818
2818
  let v = _ && typeof _.then == "function" ? await _ : _;
@@ -2831,11 +2831,11 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2831
2831
  e.exports = c;
2832
2832
  }), Kr = pe((s, e) => {
2833
2833
  le(), ue(), ce();
2834
- var t = Lt(), { ArrayPrototypeIndexOf: r, NumberIsInteger: o, NumberIsNaN: n, NumberParseInt: i, ObjectDefineProperties: a, ObjectKeys: l, ObjectSetPrototypeOf: c, Promise: u, SafeSet: h, SymbolAsyncDispose: p, SymbolAsyncIterator: b, Symbol: d } = je();
2834
+ var t = Lt(), { ArrayPrototypeIndexOf: r, NumberIsInteger: o, NumberIsNaN: n, NumberParseInt: i, ObjectDefineProperties: a, ObjectKeys: l, ObjectSetPrototypeOf: c, Promise: u, SafeSet: h, SymbolAsyncDispose: p, SymbolAsyncIterator: b, Symbol: f } = je();
2835
2835
  e.exports = se, se.ReadableState = ve;
2836
2836
  var { EventEmitter: g } = (Rt(), Me(xt)), { Stream: y, prependListener: w } = mo(), { Buffer: m } = (Fe(), Me(De)), { addAbortSignal: _ } = zr(), x = St(), v = Ge().debuglog("stream", (C) => {
2837
2837
  v = C;
2838
- }), E = fc(), S = zt(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Vr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: j, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: ae } = Ke(), { validateObject: Y } = sr(), V = d("kPaused"), { StringDecoder: re } = mc(), F = va();
2838
+ }), E = fc(), S = zt(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Vr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: j, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: ae } = Ke(), { validateObject: Y } = sr(), V = f("kPaused"), { StringDecoder: re } = mc(), F = va();
2839
2839
  c(se.prototype, y.prototype), c(se, y);
2840
2840
  var Z = () => {
2841
2841
  }, { errorOrDestroy: M } = S, Q = 1, be = 2, te = 4, we = 8, K = 16, N = 32, ne = 64, W = 128, G = 256, J = 512, ge = 1024, oe = 2048, R = 4096, $ = 8192, ee = 16384, de = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
@@ -2877,17 +2877,17 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
2877
2877
  else if ((Se.state & Q) !== 0 || L && L.length > 0) if (xe) if ((Se.state & te) !== 0) M(C, new U());
2878
2878
  else {
2879
2879
  if (Se.destroyed || Se.errored) return !1;
2880
- f(C, Se, L, !0);
2880
+ d(C, Se, L, !0);
2881
2881
  }
2882
2882
  else if (Se.ended) M(C, new D());
2883
2883
  else {
2884
2884
  if (Se.destroyed || Se.errored) return !1;
2885
- Se.state &= ~we, Se.decoder && !_e ? (L = Se.decoder.write(L), Se.objectMode || L.length !== 0 ? f(C, Se, L, !1) : z(C, Se)) : f(C, Se, L, !1);
2885
+ Se.state &= ~we, Se.decoder && !_e ? (L = Se.decoder.write(L), Se.objectMode || L.length !== 0 ? d(C, Se, L, !1) : z(C, Se)) : d(C, Se, L, !1);
2886
2886
  }
2887
2887
  else xe || (Se.state &= ~we, z(C, Se));
2888
2888
  return !Se.ended && (Se.length < Se.highWaterMark || Se.length === 0);
2889
2889
  }
2890
- function f(C, L, _e, xe) {
2890
+ function d(C, L, _e, xe) {
2891
2891
  L.flowing && L.length === 0 && !L.sync && C.listenerCount("data") > 0 ? ((L.state & fe) !== 0 ? L.awaitDrainWriters.clear() : L.awaitDrainWriters = null, L.dataEmitted = !0, C.emit("data", _e)) : (L.length += L.objectMode ? 1 : _e.length, xe ? L.buffer.unshift(_e) : L.buffer.push(_e), (L.state & ne) !== 0 && he(C)), z(C, L);
2892
2892
  }
2893
2893
  se.prototype.isPaused = function() {
@@ -3189,7 +3189,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3189
3189
  le(), ue(), ce();
3190
3190
  var t = Lt(), { ArrayPrototypeSlice: r, Error: o, FunctionPrototypeSymbolHasInstance: n, ObjectDefineProperty: i, ObjectDefineProperties: a, ObjectSetPrototypeOf: l, StringPrototypeToLowerCase: c, Symbol: u, SymbolHasInstance: h } = je();
3191
3191
  e.exports = Y, Y.WritableState = U;
3192
- var { EventEmitter: p } = (Rt(), Me(xt)), b = mo().Stream, { Buffer: d } = (Fe(), Me(De)), g = zt(), { addAbortSignal: y } = zr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = Vr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: E, ERR_STREAM_DESTROYED: S, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: O, ERR_STREAM_WRITE_AFTER_END: P, ERR_UNKNOWN_ENCODING: j } = Ke().codes, { errorOrDestroy: T } = g;
3192
+ var { EventEmitter: p } = (Rt(), Me(xt)), b = mo().Stream, { Buffer: f } = (Fe(), Me(De)), g = zt(), { addAbortSignal: y } = zr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = Vr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: E, ERR_STREAM_DESTROYED: S, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: O, ERR_STREAM_WRITE_AFTER_END: P, ERR_UNKNOWN_ENCODING: j } = Ke().codes, { errorOrDestroy: T } = g;
3193
3193
  l(Y.prototype, b.prototype), l(Y, b);
3194
3194
  function q() {
3195
3195
  }
@@ -3225,12 +3225,12 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3225
3225
  if (typeof ee == "function") de = ee, ee = fe.defaultEncoding;
3226
3226
  else {
3227
3227
  if (!ee) ee = fe.defaultEncoding;
3228
- else if (ee !== "buffer" && !d.isEncoding(ee)) throw new j(ee);
3228
+ else if (ee !== "buffer" && !f.isEncoding(ee)) throw new j(ee);
3229
3229
  typeof de != "function" && (de = q);
3230
3230
  }
3231
3231
  if ($ === null) throw new O();
3232
- if (!fe.objectMode) if (typeof $ == "string") fe.decodeStrings !== !1 && ($ = d.from($, ee), ee = "buffer");
3233
- else if ($ instanceof d) ee = "buffer";
3232
+ if (!fe.objectMode) if (typeof $ == "string") fe.decodeStrings !== !1 && ($ = f.from($, ee), ee = "buffer");
3233
+ else if ($ instanceof f) ee = "buffer";
3234
3234
  else if (b._isUint8Array($)) $ = b._uint8ArrayToBuffer($), ee = "buffer";
3235
3235
  else throw new _("chunk", ["string", "Buffer", "Uint8Array"], $);
3236
3236
  let ye;
@@ -3244,7 +3244,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3244
3244
  let R = this._writableState;
3245
3245
  R.corked && (R.corked--, R.writing || we(this, R));
3246
3246
  }, Y.prototype.setDefaultEncoding = function(R) {
3247
- if (typeof R == "string" && (R = c(R)), !d.isEncoding(R)) throw new j(R);
3247
+ if (typeof R == "string" && (R = c(R)), !f.isEncoding(R)) throw new j(R);
3248
3248
  return this._writableState.defaultEncoding = R, this;
3249
3249
  };
3250
3250
  function re(R, $, ee, de, fe) {
@@ -3417,7 +3417,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3417
3417
  };
3418
3418
  }), gc = pe((s, e) => {
3419
3419
  le(), ue(), ce();
3420
- var t = Lt(), r = (Fe(), Me(De)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = mt(), b = St(), { AbortError: d, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = Ke(), { destroyer: w } = zt(), m = ft(), _ = Kr(), x = go(), { createDeferredPromise: v } = Ge(), E = va(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
3420
+ var t = Lt(), r = (Fe(), Me(De)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = mt(), b = St(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = Ke(), { destroyer: w } = zt(), m = ft(), _ = Kr(), x = go(), { createDeferredPromise: v } = Ge(), E = va(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
3421
3421
  return D instanceof S;
3422
3422
  } : function(D) {
3423
3423
  return !1;
@@ -3482,7 +3482,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3482
3482
  U = null;
3483
3483
  let { chunk: F, done: Z, cb: M } = await re;
3484
3484
  if (t.nextTick(M), Z) return;
3485
- if (V.aborted) throw new d(void 0, { cause: V.reason });
3485
+ if (V.aborted) throw new f(void 0, { cause: V.reason });
3486
3486
  ({ promise: U, resolve: ae } = v()), yield F;
3487
3487
  }
3488
3488
  })(), { signal: V }), write(re, F, Z) {
@@ -3536,7 +3536,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3536
3536
  if (!Q.push(te)) return;
3537
3537
  }
3538
3538
  }), Q._destroy = function(te, we) {
3539
- !te && M !== null && (te = new d()), Z = null, re = null, F = null, M === null ? we(te) : (M = we, w(ae, te), w(U, te));
3539
+ !te && M !== null && (te = new f()), Z = null, re = null, F = null, M === null ? we(te) : (M = we, w(ae, te), w(U, te));
3540
3540
  }, Q;
3541
3541
  }
3542
3542
  }), ft = pe((s, e) => {
@@ -3548,8 +3548,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3548
3548
  {
3549
3549
  let p = o(a.prototype);
3550
3550
  for (let b = 0; b < p.length; b++) {
3551
- let d = p[b];
3552
- l.prototype[d] || (l.prototype[d] = a.prototype[d]);
3551
+ let f = p[b];
3552
+ l.prototype[f] || (l.prototype[f] = a.prototype[f]);
3553
3553
  }
3554
3554
  }
3555
3555
  function l(p) {
@@ -3601,13 +3601,13 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3601
3601
  l.prototype._final = c, l.prototype._transform = function(h, p, b) {
3602
3602
  throw new o("_transform()");
3603
3603
  }, l.prototype._write = function(h, p, b) {
3604
- let d = this._readableState, g = this._writableState, y = d.length;
3604
+ let f = this._readableState, g = this._writableState, y = f.length;
3605
3605
  this._transform(h, p, (w, m) => {
3606
3606
  if (w) {
3607
3607
  b(w);
3608
3608
  return;
3609
3609
  }
3610
- m != null && this.push(m), g.ended || y === d.length || d.length < d.highWaterMark ? b() : this[a] = b;
3610
+ m != null && this.push(m), g.ended || y === f.length || f.length < f.highWaterMark ? b() : this[a] = b;
3611
3611
  });
3612
3612
  }, l.prototype._read = function() {
3613
3613
  if (this[a]) {
@@ -3630,7 +3630,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3630
3630
  };
3631
3631
  }), bo = pe((s, e) => {
3632
3632
  le(), ue(), ce();
3633
- var t = Lt(), { ArrayIsArray: r, Promise: o, SymbolAsyncIterator: n, SymbolDispose: i } = je(), a = St(), { once: l } = Ge(), c = zt(), u = ft(), { aggregateTwoErrors: h, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: d, ERR_STREAM_DESTROYED: g, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: w } = Ke(), { validateFunction: m, validateAbortSignal: _ } = sr(), { isIterable: x, isReadable: v, isReadableNodeStream: E, isNodeStream: S, isTransformStream: I, isWebStream: O, isReadableStream: P, isReadableFinished: j } = mt(), T = globalThis.AbortController || or().AbortController, q, D, U;
3633
+ var t = Lt(), { ArrayIsArray: r, Promise: o, SymbolAsyncIterator: n, SymbolDispose: i } = je(), a = St(), { once: l } = Ge(), c = zt(), u = ft(), { aggregateTwoErrors: h, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: f, ERR_STREAM_DESTROYED: g, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: w } = Ke(), { validateFunction: m, validateAbortSignal: _ } = sr(), { isIterable: x, isReadable: v, isReadableNodeStream: E, isNodeStream: S, isTransformStream: I, isWebStream: O, isReadableStream: P, isReadableFinished: j } = mt(), T = globalThis.AbortController || or().AbortController, q, D, U;
3634
3634
  function ae(te, we, K) {
3635
3635
  let N = !1;
3636
3636
  te.on("close", () => {
@@ -3696,7 +3696,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3696
3696
  return Q(te, l(Y(te)));
3697
3697
  }
3698
3698
  function Q(te, we, K) {
3699
- if (te.length === 1 && r(te[0]) && (te = te[0]), te.length < 2) throw new d("streams");
3699
+ if (te.length === 1 && r(te[0]) && (te = te[0]), te.length < 2) throw new f("streams");
3700
3700
  let N = new T(), ne = N.signal, W = K?.signal, G = [];
3701
3701
  _(W, "options.signal");
3702
3702
  function J() {
@@ -3713,18 +3713,18 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3713
3713
  var Te;
3714
3714
  if (ve && (!oe || oe.code === "ERR_STREAM_PREMATURE_CLOSE") && (oe = ve), !(!oe && !se)) {
3715
3715
  for (; $.length; ) $.shift()(oe);
3716
- (Te = ge) === null || Te === void 0 || Te[i](), N.abort(), se && (oe || G.forEach((f) => f()), t.nextTick(we, oe, R));
3716
+ (Te = ge) === null || Te === void 0 || Te[i](), N.abort(), se && (oe || G.forEach((d) => d()), t.nextTick(we, oe, R));
3717
3717
  }
3718
3718
  }
3719
3719
  let ye;
3720
3720
  for (let ve = 0; ve < te.length; ve++) {
3721
- let se = te[ve], Te = ve < te.length - 1, f = ve > 0, k = Te || K?.end !== !1, A = ve === te.length - 1;
3721
+ let se = te[ve], Te = ve < te.length - 1, d = ve > 0, k = Te || K?.end !== !1, A = ve === te.length - 1;
3722
3722
  if (S(se)) {
3723
3723
  let B = function(X) {
3724
3724
  X && X.name !== "AbortError" && X.code !== "ERR_STREAM_PREMATURE_CLOSE" && de(X);
3725
3725
  };
3726
3726
  if (k) {
3727
- let { destroy: X, cleanup: he } = ae(se, Te, f);
3727
+ let { destroy: X, cleanup: he } = ae(se, Te, d);
3728
3728
  $.push(X), v(se) && A && G.push(he);
3729
3729
  }
3730
3730
  se.on("error", B), v(se) && A && G.push(() => {
@@ -3798,9 +3798,9 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3798
3798
  e.exports = { pipelineImpl: Q, pipeline: M };
3799
3799
  }), ka = pe((s, e) => {
3800
3800
  le(), ue(), ce();
3801
- var { pipeline: t } = bo(), r = ft(), { destroyer: o } = zt(), { isNodeStream: n, isReadable: i, isWritable: a, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = mt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: b, ERR_MISSING_ARGS: d } } = Ke(), g = St();
3801
+ var { pipeline: t } = bo(), r = ft(), { destroyer: o } = zt(), { isNodeStream: n, isReadable: i, isWritable: a, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = mt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: b, ERR_MISSING_ARGS: f } } = Ke(), g = St();
3802
3802
  e.exports = function(...y) {
3803
- if (y.length === 0) throw new d("streams");
3803
+ if (y.length === 0) throw new f("streams");
3804
3804
  if (y.length === 1) return r.from(y[0]);
3805
3805
  let w = [...y];
3806
3806
  if (typeof y[0] == "function" && (y[0] = r.from(y[0])), typeof y[y.length - 1] == "function") {
@@ -3894,10 +3894,10 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3894
3894
  };
3895
3895
  }), bc = pe((s, e) => {
3896
3896
  le(), ue(), ce();
3897
- var t = globalThis.AbortController || or().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: a } = Ke(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = sr(), h = je().Symbol("kWeak"), p = je().Symbol("kResistStopPropagation"), { finished: b } = St(), d = ka(), { addAbortSignalNoValidate: g } = zr(), { isWritable: y, isNodeStream: w } = mt(), { deprecate: m } = Ge(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: E, NumberIsNaN: S, Promise: I, PromiseReject: O, PromiseResolve: P, PromisePrototypeThen: j, Symbol: T } = je(), q = T("kEmpty"), D = T("kEof");
3897
+ var t = globalThis.AbortController || or().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: a } = Ke(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = sr(), h = je().Symbol("kWeak"), p = je().Symbol("kResistStopPropagation"), { finished: b } = St(), f = ka(), { addAbortSignalNoValidate: g } = zr(), { isWritable: y, isNodeStream: w } = mt(), { deprecate: m } = Ge(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: E, NumberIsNaN: S, Promise: I, PromiseReject: O, PromiseResolve: P, PromisePrototypeThen: j, Symbol: T } = je(), q = T("kEmpty"), D = T("kEof");
3898
3898
  function U(W, G) {
3899
3899
  if (G != null && u(G, "options"), G?.signal != null && l(G.signal, "options.signal"), w(W) && !y(W)) throw new r("stream", W, "must be writable");
3900
- let J = d(this, W);
3900
+ let J = f(this, W);
3901
3901
  return G != null && G.signal && g(G.signal, J), J;
3902
3902
  }
3903
3903
  function ae(W, G) {
@@ -3919,22 +3919,22 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3919
3919
  }
3920
3920
  async function Te() {
3921
3921
  try {
3922
- for await (let f of R) {
3922
+ for await (let d of R) {
3923
3923
  if (ye) return;
3924
3924
  if (oe.aborted) throw new a();
3925
3925
  try {
3926
- if (f = W(f, ee), f === q) continue;
3927
- f = P(f);
3926
+ if (d = W(d, ee), d === q) continue;
3927
+ d = P(d);
3928
3928
  } catch (k) {
3929
- f = O(k);
3929
+ d = O(k);
3930
3930
  }
3931
- H += 1, j(f, ve, me), $.push(f), de && (de(), de = null), !ye && ($.length >= ge || H >= J) && await new I((k) => {
3931
+ H += 1, j(d, ve, me), $.push(d), de && (de(), de = null), !ye && ($.length >= ge || H >= J) && await new I((k) => {
3932
3932
  fe = k;
3933
3933
  });
3934
3934
  }
3935
3935
  $.push(D);
3936
- } catch (f) {
3937
- let k = O(f);
3936
+ } catch (d) {
3937
+ let k = O(d);
3938
3938
  j(k, ve, me), $.push(k);
3939
3939
  } finally {
3940
3940
  ye = !0, de && (de(), de = null);
@@ -3944,13 +3944,13 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
3944
3944
  try {
3945
3945
  for (; ; ) {
3946
3946
  for (; $.length > 0; ) {
3947
- let f = await $[0];
3948
- if (f === D) return;
3947
+ let d = await $[0];
3948
+ if (d === D) return;
3949
3949
  if (oe.aborted) throw new a();
3950
- f !== q && (yield f), $.shift(), se();
3950
+ d !== q && (yield d), $.shift(), se();
3951
3951
  }
3952
- await new I((f) => {
3953
- de = f;
3952
+ await new I((d) => {
3953
+ de = d;
3954
3954
  });
3955
3955
  }
3956
3956
  } finally {
@@ -4076,20 +4076,20 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4076
4076
  Sa();
4077
4077
  function c(...u) {
4078
4078
  return new r((h, p) => {
4079
- let b, d, g = u[u.length - 1];
4079
+ let b, f, g = u[u.length - 1];
4080
4080
  if (g && typeof g == "object" && !n(g) && !o(g) && !i(g)) {
4081
4081
  let y = t(u);
4082
- b = y.signal, d = y.end;
4082
+ b = y.signal, f = y.end;
4083
4083
  }
4084
4084
  a(u, (y, w) => {
4085
4085
  y ? p(y) : h(w);
4086
- }, { signal: b, end: d });
4086
+ }, { signal: b, end: f });
4087
4087
  });
4088
4088
  }
4089
4089
  e.exports = { finished: l, pipeline: c };
4090
4090
  }), Sa = pe((s, e) => {
4091
4091
  le(), ue(), ce();
4092
- var { Buffer: t } = (Fe(), Me(De)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = Ge(), { streamReturningOperators: a, promiseReturningOperators: l } = bc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ke(), u = ka(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Vr(), { pipeline: b } = bo(), { destroyer: d } = zt(), g = St(), y = xa(), w = mt(), m = e.exports = mo().Stream;
4092
+ var { Buffer: t } = (Fe(), Me(De)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = Ge(), { streamReturningOperators: a, promiseReturningOperators: l } = bc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ke(), u = ka(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Vr(), { pipeline: b } = bo(), { destroyer: f } = zt(), g = St(), y = xa(), w = mt(), m = e.exports = mo().Stream;
4093
4093
  m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = Kr();
4094
4094
  for (let x of o(a)) {
4095
4095
  let v = function(...S) {
@@ -4107,7 +4107,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4107
4107
  }
4108
4108
  m.Writable = go(), m.Duplex = ft(), m.Transform = wa(), m.PassThrough = _a(), m.pipeline = b;
4109
4109
  var { addAbortSignal: _ } = zr();
4110
- m.addAbortSignal = _, m.finished = g, m.destroy = d, m.compose = u, m.setDefaultHighWaterMark = h, m.getDefaultHighWaterMark = p, r(m, "promises", { __proto__: null, configurable: !0, enumerable: !0, get() {
4110
+ m.addAbortSignal = _, m.finished = g, m.destroy = f, m.compose = u, m.setDefaultHighWaterMark = h, m.getDefaultHighWaterMark = p, r(m, "promises", { __proto__: null, configurable: !0, enumerable: !0, get() {
4111
4111
  return y;
4112
4112
  } }), r(b, i, { __proto__: null, enumerable: !0, get() {
4113
4113
  return y.pipeline;
@@ -4168,22 +4168,22 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4168
4168
  return typeof n == "number" && n < 0 && (n += this.length), typeof i == "number" && i < 0 && (i += this.length), this.copy(null, 0, n, i);
4169
4169
  }, o.prototype.copy = function(n, i, a, l) {
4170
4170
  if ((typeof a != "number" || a < 0) && (a = 0), (typeof l != "number" || l > this.length) && (l = this.length), a >= this.length || l <= 0) return n || t.alloc(0);
4171
- let c = !!n, u = this._offset(a), h = l - a, p = h, b = c && i || 0, d = u[1];
4171
+ let c = !!n, u = this._offset(a), h = l - a, p = h, b = c && i || 0, f = u[1];
4172
4172
  if (a === 0 && l === this.length) {
4173
4173
  if (!c) return this._bufs.length === 1 ? this._bufs[0] : t.concat(this._bufs, this.length);
4174
4174
  for (let g = 0; g < this._bufs.length; g++) this._bufs[g].copy(n, b), b += this._bufs[g].length;
4175
4175
  return n;
4176
4176
  }
4177
- if (p <= this._bufs[u[0]].length - d) return c ? this._bufs[u[0]].copy(n, i, d, d + p) : this._bufs[u[0]].slice(d, d + p);
4177
+ if (p <= this._bufs[u[0]].length - f) return c ? this._bufs[u[0]].copy(n, i, f, f + p) : this._bufs[u[0]].slice(f, f + p);
4178
4178
  c || (n = t.allocUnsafe(h));
4179
4179
  for (let g = u[0]; g < this._bufs.length; g++) {
4180
- let y = this._bufs[g].length - d;
4181
- if (p > y) this._bufs[g].copy(n, b, d), b += y;
4180
+ let y = this._bufs[g].length - f;
4181
+ if (p > y) this._bufs[g].copy(n, b, f), b += y;
4182
4182
  else {
4183
- this._bufs[g].copy(n, b, d, d + p), b += y;
4183
+ this._bufs[g].copy(n, b, f, f + p), b += y;
4184
4184
  break;
4185
4185
  }
4186
- p -= y, d && (d = 0);
4186
+ p -= y, f && (f = 0);
4187
4187
  }
4188
4188
  return n.length > b ? n.slice(0, b) : n;
4189
4189
  }, o.prototype.shallowSlice = function(n, i) {
@@ -4330,55 +4330,55 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4330
4330
  var t = 1e3, r = t * 60, o = r * 60, n = o * 24, i = n * 7, a = n * 365.25;
4331
4331
  e.exports = function(p, b) {
4332
4332
  b = b || {};
4333
- var d = typeof p;
4334
- if (d === "string" && p.length > 0) return l(p);
4335
- if (d === "number" && isFinite(p)) return b.long ? u(p) : c(p);
4333
+ var f = typeof p;
4334
+ if (f === "string" && p.length > 0) return l(p);
4335
+ if (f === "number" && isFinite(p)) return b.long ? u(p) : c(p);
4336
4336
  throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(p));
4337
4337
  };
4338
4338
  function l(p) {
4339
4339
  if (p = String(p), !(p.length > 100)) {
4340
4340
  var b = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);
4341
4341
  if (b) {
4342
- var d = parseFloat(b[1]), g = (b[2] || "ms").toLowerCase();
4342
+ var f = parseFloat(b[1]), g = (b[2] || "ms").toLowerCase();
4343
4343
  switch (g) {
4344
4344
  case "years":
4345
4345
  case "year":
4346
4346
  case "yrs":
4347
4347
  case "yr":
4348
4348
  case "y":
4349
- return d * a;
4349
+ return f * a;
4350
4350
  case "weeks":
4351
4351
  case "week":
4352
4352
  case "w":
4353
- return d * i;
4353
+ return f * i;
4354
4354
  case "days":
4355
4355
  case "day":
4356
4356
  case "d":
4357
- return d * n;
4357
+ return f * n;
4358
4358
  case "hours":
4359
4359
  case "hour":
4360
4360
  case "hrs":
4361
4361
  case "hr":
4362
4362
  case "h":
4363
- return d * o;
4363
+ return f * o;
4364
4364
  case "minutes":
4365
4365
  case "minute":
4366
4366
  case "mins":
4367
4367
  case "min":
4368
4368
  case "m":
4369
- return d * r;
4369
+ return f * r;
4370
4370
  case "seconds":
4371
4371
  case "second":
4372
4372
  case "secs":
4373
4373
  case "sec":
4374
4374
  case "s":
4375
- return d * t;
4375
+ return f * t;
4376
4376
  case "milliseconds":
4377
4377
  case "millisecond":
4378
4378
  case "msecs":
4379
4379
  case "msec":
4380
4380
  case "ms":
4381
- return d;
4381
+ return f;
4382
4382
  default:
4383
4383
  return;
4384
4384
  }
@@ -4393,9 +4393,9 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4393
4393
  var b = Math.abs(p);
4394
4394
  return b >= n ? h(p, b, n, "day") : b >= o ? h(p, b, o, "hour") : b >= r ? h(p, b, r, "minute") : b >= t ? h(p, b, t, "second") : p + " ms";
4395
4395
  }
4396
- function h(p, b, d, g) {
4397
- var y = b >= d * 1.5;
4398
- return Math.round(p / d) + " " + g + (y ? "s" : "");
4396
+ function h(p, b, f, g) {
4397
+ var y = b >= f * 1.5;
4398
+ return Math.round(p / f) + " " + g + (y ? "s" : "");
4399
4399
  }
4400
4400
  }), xc = pe((s, e) => {
4401
4401
  le(), ue(), ce();
@@ -4404,17 +4404,17 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4404
4404
  n[b] = r[b];
4405
4405
  }), n.names = [], n.skips = [], n.formatters = {};
4406
4406
  function o(b) {
4407
- let d = 0;
4408
- for (let g = 0; g < b.length; g++) d = (d << 5) - d + b.charCodeAt(g), d |= 0;
4409
- return n.colors[Math.abs(d) % n.colors.length];
4407
+ let f = 0;
4408
+ for (let g = 0; g < b.length; g++) f = (f << 5) - f + b.charCodeAt(g), f |= 0;
4409
+ return n.colors[Math.abs(f) % n.colors.length];
4410
4410
  }
4411
4411
  n.selectColor = o;
4412
4412
  function n(b) {
4413
- let d, g = null, y, w;
4413
+ let f, g = null, y, w;
4414
4414
  function m(..._) {
4415
4415
  if (!m.enabled) return;
4416
- let x = m, v = Number(/* @__PURE__ */ new Date()), E = v - (d || v);
4417
- x.diff = E, x.prev = d, x.curr = v, d = v, _[0] = n.coerce(_[0]), typeof _[0] != "string" && _.unshift("%O");
4416
+ let x = m, v = Number(/* @__PURE__ */ new Date()), E = v - (f || v);
4417
+ x.diff = E, x.prev = f, x.curr = v, f = v, _[0] = n.coerce(_[0]), typeof _[0] != "string" && _.unshift("%O");
4418
4418
  let S = 0;
4419
4419
  _[0] = _[0].replace(/%([a-zA-Z%])/g, (I, O) => {
4420
4420
  if (I === "%%") return "%";
@@ -4431,30 +4431,30 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4431
4431
  g = _;
4432
4432
  } }), typeof n.init == "function" && n.init(m), m;
4433
4433
  }
4434
- function i(b, d) {
4435
- let g = n(this.namespace + (typeof d > "u" ? ":" : d) + b);
4434
+ function i(b, f) {
4435
+ let g = n(this.namespace + (typeof f > "u" ? ":" : f) + b);
4436
4436
  return g.log = this.log, g;
4437
4437
  }
4438
4438
  function a(b) {
4439
4439
  n.save(b), n.namespaces = b, n.names = [], n.skips = [];
4440
- let d = (typeof b == "string" ? b : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
4441
- for (let g of d) g[0] === "-" ? n.skips.push(g.slice(1)) : n.names.push(g);
4440
+ let f = (typeof b == "string" ? b : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
4441
+ for (let g of f) g[0] === "-" ? n.skips.push(g.slice(1)) : n.names.push(g);
4442
4442
  }
4443
- function l(b, d) {
4443
+ function l(b, f) {
4444
4444
  let g = 0, y = 0, w = -1, m = 0;
4445
- for (; g < b.length; ) if (y < d.length && (d[y] === b[g] || d[y] === "*")) d[y] === "*" ? (w = y, m = g, y++) : (g++, y++);
4445
+ for (; g < b.length; ) if (y < f.length && (f[y] === b[g] || f[y] === "*")) f[y] === "*" ? (w = y, m = g, y++) : (g++, y++);
4446
4446
  else if (w !== -1) y = w + 1, m++, g = m;
4447
4447
  else return !1;
4448
- for (; y < d.length && d[y] === "*"; ) y++;
4449
- return y === d.length;
4448
+ for (; y < f.length && f[y] === "*"; ) y++;
4449
+ return y === f.length;
4450
4450
  }
4451
4451
  function c() {
4452
- let b = [...n.names, ...n.skips.map((d) => "-" + d)].join(",");
4452
+ let b = [...n.names, ...n.skips.map((f) => "-" + f)].join(",");
4453
4453
  return n.enable(""), b;
4454
4454
  }
4455
4455
  function u(b) {
4456
- for (let d of n.skips) if (l(b, d)) return !1;
4457
- for (let d of n.names) if (l(b, d)) return !0;
4456
+ for (let f of n.skips) if (l(b, f)) return !1;
4457
+ for (let f of n.names) if (l(b, f)) return !0;
4458
4458
  return !1;
4459
4459
  }
4460
4460
  function h(b) {
@@ -4595,45 +4595,45 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4595
4595
  }
4596
4596
  _parseConnect() {
4597
4597
  i("_parseConnect");
4598
- let c, u, h, p, b = {}, d = this.packet, g = this._parseString();
4598
+ let c, u, h, p, b = {}, f = this.packet, g = this._parseString();
4599
4599
  if (g === null) return this._emitError(new Error("Cannot parse protocolId"));
4600
4600
  if (g !== "MQTT" && g !== "MQIsdp") return this._emitError(new Error("Invalid protocolId"));
4601
- if (d.protocolId = g, this._pos >= this._list.length) return this._emitError(new Error("Packet too short"));
4602
- if (d.protocolVersion = this._list.readUInt8(this._pos), d.protocolVersion >= 128 && (d.bridgeMode = !0, d.protocolVersion = d.protocolVersion - 128), d.protocolVersion !== 3 && d.protocolVersion !== 4 && d.protocolVersion !== 5) return this._emitError(new Error("Invalid protocol version"));
4601
+ if (f.protocolId = g, this._pos >= this._list.length) return this._emitError(new Error("Packet too short"));
4602
+ if (f.protocolVersion = this._list.readUInt8(this._pos), f.protocolVersion >= 128 && (f.bridgeMode = !0, f.protocolVersion = f.protocolVersion - 128), f.protocolVersion !== 3 && f.protocolVersion !== 4 && f.protocolVersion !== 5) return this._emitError(new Error("Invalid protocol version"));
4603
4603
  if (this._pos++, this._pos >= this._list.length) return this._emitError(new Error("Packet too short"));
4604
4604
  if (this._list.readUInt8(this._pos) & 1) return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));
4605
4605
  b.username = this._list.readUInt8(this._pos) & n.USERNAME_MASK, b.password = this._list.readUInt8(this._pos) & n.PASSWORD_MASK, b.will = this._list.readUInt8(this._pos) & n.WILL_FLAG_MASK;
4606
4606
  let y = !!(this._list.readUInt8(this._pos) & n.WILL_RETAIN_MASK), w = (this._list.readUInt8(this._pos) & n.WILL_QOS_MASK) >> n.WILL_QOS_SHIFT;
4607
- if (b.will) d.will = {}, d.will.retain = y, d.will.qos = w;
4607
+ if (b.will) f.will = {}, f.will.retain = y, f.will.qos = w;
4608
4608
  else {
4609
4609
  if (y) return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));
4610
4610
  if (w) return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"));
4611
4611
  }
4612
- if (d.clean = (this._list.readUInt8(this._pos) & n.CLEAN_SESSION_MASK) !== 0, this._pos++, d.keepalive = this._parseNum(), d.keepalive === -1) return this._emitError(new Error("Packet too short"));
4613
- if (d.protocolVersion === 5) {
4612
+ if (f.clean = (this._list.readUInt8(this._pos) & n.CLEAN_SESSION_MASK) !== 0, this._pos++, f.keepalive = this._parseNum(), f.keepalive === -1) return this._emitError(new Error("Packet too short"));
4613
+ if (f.protocolVersion === 5) {
4614
4614
  let _ = this._parseProperties();
4615
- Object.getOwnPropertyNames(_).length && (d.properties = _);
4615
+ Object.getOwnPropertyNames(_).length && (f.properties = _);
4616
4616
  }
4617
4617
  let m = this._parseString();
4618
4618
  if (m === null) return this._emitError(new Error("Packet too short"));
4619
- if (d.clientId = m, i("_parseConnect: packet.clientId: %s", d.clientId), b.will) {
4620
- if (d.protocolVersion === 5) {
4619
+ if (f.clientId = m, i("_parseConnect: packet.clientId: %s", f.clientId), b.will) {
4620
+ if (f.protocolVersion === 5) {
4621
4621
  let _ = this._parseProperties();
4622
- Object.getOwnPropertyNames(_).length && (d.will.properties = _);
4622
+ Object.getOwnPropertyNames(_).length && (f.will.properties = _);
4623
4623
  }
4624
4624
  if (c = this._parseString(), c === null) return this._emitError(new Error("Cannot parse will topic"));
4625
- if (d.will.topic = c, i("_parseConnect: packet.will.topic: %s", d.will.topic), u = this._parseBuffer(), u === null) return this._emitError(new Error("Cannot parse will payload"));
4626
- d.will.payload = u, i("_parseConnect: packet.will.paylaod: %s", d.will.payload);
4625
+ if (f.will.topic = c, i("_parseConnect: packet.will.topic: %s", f.will.topic), u = this._parseBuffer(), u === null) return this._emitError(new Error("Cannot parse will payload"));
4626
+ f.will.payload = u, i("_parseConnect: packet.will.paylaod: %s", f.will.payload);
4627
4627
  }
4628
4628
  if (b.username) {
4629
4629
  if (p = this._parseString(), p === null) return this._emitError(new Error("Cannot parse username"));
4630
- d.username = p, i("_parseConnect: packet.username: %s", d.username);
4630
+ f.username = p, i("_parseConnect: packet.username: %s", f.username);
4631
4631
  }
4632
4632
  if (b.password) {
4633
4633
  if (h = this._parseBuffer(), h === null) return this._emitError(new Error("Cannot parse password"));
4634
- d.password = h;
4634
+ f.password = h;
4635
4635
  }
4636
- return this.settings = d, i("_parseConnect: complete"), d;
4636
+ return this.settings = f, i("_parseConnect: complete"), f;
4637
4637
  }
4638
4638
  _parseConnack() {
4639
4639
  i("_parseConnack");
@@ -4667,7 +4667,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4667
4667
  }
4668
4668
  _parseSubscribe() {
4669
4669
  i("_parseSubscribe");
4670
- let c = this.packet, u, h, p, b, d, g, y;
4670
+ let c = this.packet, u, h, p, b, f, g, y;
4671
4671
  if (c.subscriptions = [], !!this._parseMessageId()) {
4672
4672
  if (this.settings.protocolVersion === 5) {
4673
4673
  let w = this._parseProperties();
@@ -4681,8 +4681,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4681
4681
  if (h & 192) return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"));
4682
4682
  } else if (h & 252) return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));
4683
4683
  if (p = h & n.SUBSCRIBE_OPTIONS_QOS_MASK, p > 2) return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));
4684
- if (g = (h >> n.SUBSCRIBE_OPTIONS_NL_SHIFT & n.SUBSCRIBE_OPTIONS_NL_MASK) !== 0, d = (h >> n.SUBSCRIBE_OPTIONS_RAP_SHIFT & n.SUBSCRIBE_OPTIONS_RAP_MASK) !== 0, b = h >> n.SUBSCRIBE_OPTIONS_RH_SHIFT & n.SUBSCRIBE_OPTIONS_RH_MASK, b > 2) return this._emitError(new Error("Invalid retain handling, must be <= 2"));
4685
- y = { topic: u, qos: p }, this.settings.protocolVersion === 5 ? (y.nl = g, y.rap = d, y.rh = b) : this.settings.bridgeMode && (y.rh = 0, y.rap = !0, y.nl = !0), i("_parseSubscribe: push subscription `%s` to subscription", y), c.subscriptions.push(y);
4684
+ if (g = (h >> n.SUBSCRIBE_OPTIONS_NL_SHIFT & n.SUBSCRIBE_OPTIONS_NL_MASK) !== 0, f = (h >> n.SUBSCRIBE_OPTIONS_RAP_SHIFT & n.SUBSCRIBE_OPTIONS_RAP_MASK) !== 0, b = h >> n.SUBSCRIBE_OPTIONS_RH_SHIFT & n.SUBSCRIBE_OPTIONS_RH_MASK, b > 2) return this._emitError(new Error("Invalid retain handling, must be <= 2"));
4685
+ y = { topic: u, qos: p }, this.settings.protocolVersion === 5 ? (y.nl = g, y.rap = f, y.rh = b) : this.settings.bridgeMode && (y.rh = 0, y.rap = !0, y.nl = !0), i("_parseSubscribe: push subscription `%s` to subscription", y), c.subscriptions.push(y);
4686
4686
  }
4687
4687
  }
4688
4688
  }
@@ -4807,15 +4807,15 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4807
4807
  }
4808
4808
  _parseVarByteNum(c) {
4809
4809
  i("_parseVarByteNum");
4810
- let u = 4, h = 0, p = 1, b = 0, d = !1, g, y = this._pos ? this._pos : 0;
4810
+ let u = 4, h = 0, p = 1, b = 0, f = !1, g, y = this._pos ? this._pos : 0;
4811
4811
  for (; h < u && y + h < this._list.length; ) {
4812
4812
  if (g = this._list.readUInt8(y + h++), b += p * (g & n.VARBYTEINT_MASK), p *= 128, (g & n.VARBYTEINT_FIN_MASK) === 0) {
4813
- d = !0;
4813
+ f = !0;
4814
4814
  break;
4815
4815
  }
4816
4816
  if (this._list.length <= h) break;
4817
4817
  }
4818
- return !d && h === u && this._list.length >= h && this._emitError(new Error("Invalid variable byte integer")), y && (this._pos += h), d ? c ? d = { bytes: h, value: b } : d = b : d = !1, i("_parseVarByteNum: result: %o", d), d;
4818
+ return !f && h === u && this._list.length >= h && this._emitError(new Error("Invalid variable byte integer")), y && (this._pos += h), f ? c ? f = { bytes: h, value: b } : f = b : f = !1, i("_parseVarByteNum: result: %o", f), f;
4819
4819
  }
4820
4820
  _parseByte() {
4821
4821
  let c;
@@ -4851,13 +4851,13 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4851
4851
  if (!b) return this._emitError(new Error("Unknown property")), !1;
4852
4852
  if (b === "userProperties") {
4853
4853
  h[b] || (h[b] = /* @__PURE__ */ Object.create(null));
4854
- let d = this._parseByType(n.propertiesTypes[b]);
4855
- if (h[b][d.name]) if (Array.isArray(h[b][d.name])) h[b][d.name].push(d.value);
4854
+ let f = this._parseByType(n.propertiesTypes[b]);
4855
+ if (h[b][f.name]) if (Array.isArray(h[b][f.name])) h[b][f.name].push(f.value);
4856
4856
  else {
4857
- let g = h[b][d.name];
4858
- h[b][d.name] = [g], h[b][d.name].push(d.value);
4857
+ let g = h[b][f.name];
4858
+ h[b][f.name] = [g], h[b][f.name].push(f.value);
4859
4859
  }
4860
- else h[b][d.name] = d.value;
4860
+ else h[b][f.name] = f.value;
4861
4861
  continue;
4862
4862
  }
4863
4863
  h[b] ? Array.isArray(h[b]) ? h[b].push(this._parseByType(n.propertiesTypes[b])) : (h[b] = [h[b]], h[b].push(this._parseByType(n.propertiesTypes[b]))) : h[b] = this._parseByType(n.propertiesTypes[b]);
@@ -4924,7 +4924,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4924
4924
  }
4925
4925
  }), Aa = pe((s, e) => {
4926
4926
  le(), ue(), ce();
4927
- var t = Ea(), { Buffer: r } = (Fe(), Me(De)), o = r.allocUnsafe(0), n = r.from([0]), i = Ec(), a = Ac().nextTick, l = pt()("mqtt-packet:writeToStream"), c = i.cache, u = i.generateNumber, h = i.generateCache, p = i.genBufVariableByteInt, b = i.generate4ByteBuffer, d = Y, g = !0;
4927
+ var t = Ea(), { Buffer: r } = (Fe(), Me(De)), o = r.allocUnsafe(0), n = r.from([0]), i = Ec(), a = Ac().nextTick, l = pt()("mqtt-packet:writeToStream"), c = i.cache, u = i.generateNumber, h = i.generateCache, p = i.genBufVariableByteInt, b = i.generate4ByteBuffer, f = Y, g = !0;
4928
4928
  function y(K, N, ne) {
4929
4929
  switch (l("generate called"), N.cork && (N.cork(), a(w, N)), g && (g = !1, h()), l("generate: packet.cmd: %s", K.cmd), K.cmd) {
4930
4930
  case "connect":
@@ -4958,9 +4958,9 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
4958
4958
  }
4959
4959
  }
4960
4960
  Object.defineProperty(y, "cacheNumbers", { get() {
4961
- return d === Y;
4961
+ return f === Y;
4962
4962
  }, set(K) {
4963
- K ? ((!c || Object.keys(c).length === 0) && (g = !0), d = Y) : (g = !1, d = V);
4963
+ K ? ((!c || Object.keys(c).length === 0) && (g = !0), f = Y) : (g = !1, f = V);
4964
4964
  } });
4965
4965
  function w(K) {
4966
4966
  K.uncork();
@@ -5003,7 +5003,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5003
5003
  }
5004
5004
  N.write(t.CONNECT_HEADER), D(N, ye), F(N, G), W.bridgeMode && (J += 128), N.write(J === 131 ? t.VERSION131 : J === 132 ? t.VERSION132 : J === 4 ? t.VERSION4 : J === 5 ? t.VERSION5 : t.VERSION3);
5005
5005
  let se = 0;
5006
- return se |= ee != null ? t.USERNAME_MASK : 0, se |= de != null ? t.PASSWORD_MASK : 0, se |= ge && ge.retain ? t.WILL_RETAIN_MASK : 0, se |= ge && ge.qos ? ge.qos << t.WILL_QOS_SHIFT : 0, se |= ge ? t.WILL_FLAG_MASK : 0, se |= oe ? t.CLEAN_SESSION_MASK : 0, N.write(r.from([se])), d(N, R), J === 5 && H.write(), F(N, $), ge && (J === 5 && me.write(), U(N, ge.topic), F(N, ge.payload)), ee != null && F(N, ee), de != null && F(N, de), !0;
5006
+ return se |= ee != null ? t.USERNAME_MASK : 0, se |= de != null ? t.PASSWORD_MASK : 0, se |= ge && ge.retain ? t.WILL_RETAIN_MASK : 0, se |= ge && ge.qos ? ge.qos << t.WILL_QOS_SHIFT : 0, se |= ge ? t.WILL_FLAG_MASK : 0, se |= oe ? t.CLEAN_SESSION_MASK : 0, N.write(r.from([se])), f(N, R), J === 5 && H.write(), F(N, $), ge && (J === 5 && me.write(), U(N, ge.topic), F(N, ge.payload)), ee != null && F(N, ee), de != null && F(N, de), !0;
5007
5007
  }
5008
5008
  function _(K, N, ne) {
5009
5009
  let W = ne ? ne.protocolVersion : 4, G = K || {}, J = W === 5 ? G.reasonCode : G.returnCode, ge = G.properties, oe = 2;
@@ -5028,7 +5028,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5028
5028
  if (fe = Z(N, ee), !fe) return !1;
5029
5029
  de += fe.length;
5030
5030
  }
5031
- return N.write(t.PUBLISH_HEADER[J][G.dup ? 1 : 0][ge ? 1 : 0]), D(N, de), d(N, te(oe)), N.write(oe), J > 0 && d(N, $), fe?.write(), l("publish: payload: %o", R), N.write(R);
5031
+ return N.write(t.PUBLISH_HEADER[J][G.dup ? 1 : 0][ge ? 1 : 0]), D(N, de), f(N, te(oe)), N.write(oe), J > 0 && f(N, $), fe?.write(), l("publish: payload: %o", R), N.write(R);
5032
5032
  }
5033
5033
  function v(K, N, ne) {
5034
5034
  let W = ne ? ne.protocolVersion : 4, G = K || {}, J = G.cmd || "puback", ge = G.messageId, oe = G.dup && J === "pubrel" ? t.DUP_MASK : 0, R = 0, $ = G.reasonCode, ee = G.properties, de = W === 5 ? 3 : 2;
@@ -5038,7 +5038,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5038
5038
  if (fe = M(N, ee, ne, de), !fe) return !1;
5039
5039
  de += fe.length;
5040
5040
  }
5041
- return N.write(t.ACKS[J][R][oe][0]), de === 3 && (de += $ !== 0 ? 1 : -1), D(N, de), d(N, ge), W === 5 && de !== 2 && N.write(r.from([$])), fe !== null ? fe.write() : de === 4 && N.write(r.from([0])), !0;
5041
+ return N.write(t.ACKS[J][R][oe][0]), de === 3 && (de += $ !== 0 ? 1 : -1), D(N, de), f(N, ge), W === 5 && de !== 2 && N.write(r.from([$])), fe !== null ? fe.write() : de === 4 && N.write(r.from([0])), !0;
5042
5042
  }
5043
5043
  function E(K, N, ne) {
5044
5044
  l("subscribe: packet: ");
@@ -5063,7 +5063,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5063
5063
  $ += r.byteLength(ye) + 2 + 1;
5064
5064
  }
5065
5065
  else return N.destroy(new Error("Invalid subscriptions")), !1;
5066
- l("subscribe: writing to stream: %o", t.SUBSCRIBE_HEADER), N.write(t.SUBSCRIBE_HEADER[1][J ? 1 : 0][0]), D(N, $), d(N, ge), ee !== null && ee.write();
5066
+ l("subscribe: writing to stream: %o", t.SUBSCRIBE_HEADER), N.write(t.SUBSCRIBE_HEADER[1][J ? 1 : 0][0]), D(N, $), f(N, ge), ee !== null && ee.write();
5067
5067
  let de = !0;
5068
5068
  for (let fe of oe) {
5069
5069
  let ye = fe.topic, H = fe.qos, me = +fe.nl, ve = +fe.rap, se = fe.rh, Te;
@@ -5084,7 +5084,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5084
5084
  if ($ = M(N, oe, ne, R), !$) return !1;
5085
5085
  R += $.length;
5086
5086
  }
5087
- return N.write(t.SUBACK_HEADER), D(N, R), d(N, J), $ !== null && $.write(), N.write(r.from(ge));
5087
+ return N.write(t.SUBACK_HEADER), D(N, R), f(N, J), $ !== null && $.write(), N.write(r.from(ge));
5088
5088
  }
5089
5089
  function I(K, N, ne) {
5090
5090
  let W = ne ? ne.protocolVersion : 4, G = K || {}, J = G.messageId, ge = G.dup ? t.DUP_MASK : 0, oe = G.unsubscriptions, R = G.properties, $ = 0;
@@ -5099,7 +5099,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5099
5099
  if (ee = Z(N, R), !ee) return !1;
5100
5100
  $ += ee.length;
5101
5101
  }
5102
- N.write(t.UNSUBSCRIBE_HEADER[1][ge ? 1 : 0][0]), D(N, $), d(N, J), ee !== null && ee.write();
5102
+ N.write(t.UNSUBSCRIBE_HEADER[1][ge ? 1 : 0][0]), D(N, $), f(N, J), ee !== null && ee.write();
5103
5103
  let de = !0;
5104
5104
  for (let fe = 0; fe < oe.length; fe++) de = U(N, oe[fe]);
5105
5105
  return de;
@@ -5117,7 +5117,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5117
5117
  if (fe = M(N, R, ne, de), !fe) return !1;
5118
5118
  de += fe.length;
5119
5119
  }
5120
- return N.write(t.ACKS[$][ee][ge][0]), D(N, de), d(N, J), fe !== null && fe.write(), W === 5 && N.write(r.from(oe)), !0;
5120
+ return N.write(t.ACKS[$][ee][ge][0]), D(N, de), f(N, J), fe !== null && fe.write(), W === 5 && N.write(r.from(oe)), !0;
5121
5121
  }
5122
5122
  function P(K, N, ne) {
5123
5123
  return N.write(t.EMPTY[K.cmd]);
@@ -5144,7 +5144,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5144
5144
  }
5145
5145
  function U(K, N) {
5146
5146
  let ne = r.byteLength(N);
5147
- return d(K, ne), l("writeString: %s", N), K.write(N, "utf8");
5147
+ return f(K, ne), l("writeString: %s", N), K.write(N, "utf8");
5148
5148
  }
5149
5149
  function ae(K, N, ne) {
5150
5150
  U(K, N), U(K, ne);
@@ -5161,7 +5161,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5161
5161
  return l("write4ByteNumber: %o", ne), K.write(ne);
5162
5162
  }
5163
5163
  function F(K, N) {
5164
- typeof N == "string" ? U(K, N) : N ? (d(K, N.length), K.write(N)) : d(K, 0);
5164
+ typeof N == "string" ? U(K, N) : N ? (f(K, N.length), K.write(N)) : f(K, 0);
5165
5165
  }
5166
5166
  function Z(K, N) {
5167
5167
  if (typeof N != "object" || N.length != null) return { length: 1, write() {
@@ -5262,7 +5262,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5262
5262
  break;
5263
5263
  }
5264
5264
  case "int16": {
5265
- K.write(r.from([t.properties[N]])), d(K, ne);
5265
+ K.write(r.from([t.properties[N]])), f(K, ne);
5266
5266
  break;
5267
5267
  }
5268
5268
  case "int32": {
@@ -5345,12 +5345,12 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5345
5345
  let a = null;
5346
5346
  return n.proto ? u : c;
5347
5347
  function l(h, p) {
5348
- let b = Object.keys(h), d = new Array(b.length);
5348
+ let b = Object.keys(h), f = new Array(b.length);
5349
5349
  for (let g = 0; g < b.length; g++) {
5350
5350
  let y = b[g], w = h[y];
5351
- typeof w != "object" || w === null ? d[y] = w : w.constructor !== Object && (a = i.get(w.constructor)) ? d[y] = a(w, p) : ArrayBuffer.isView(w) ? d[y] = t(w) : d[y] = p(w);
5351
+ typeof w != "object" || w === null ? f[y] = w : w.constructor !== Object && (a = i.get(w.constructor)) ? f[y] = a(w, p) : ArrayBuffer.isView(w) ? f[y] = t(w) : f[y] = p(w);
5352
5352
  }
5353
- return d;
5353
+ return f;
5354
5354
  }
5355
5355
  function c(h) {
5356
5356
  if (typeof h != "object" || h === null) return h;
@@ -5359,8 +5359,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5359
5359
  let p = {};
5360
5360
  for (let b in h) {
5361
5361
  if (Object.hasOwnProperty.call(h, b) === !1) continue;
5362
- let d = h[b];
5363
- typeof d != "object" || d === null ? p[b] = d : d.constructor !== Object && (a = i.get(d.constructor)) ? p[b] = a(d, c) : ArrayBuffer.isView(d) ? p[b] = t(d) : p[b] = c(d);
5362
+ let f = h[b];
5363
+ typeof f != "object" || f === null ? p[b] = f : f.constructor !== Object && (a = i.get(f.constructor)) ? p[b] = a(f, c) : ArrayBuffer.isView(f) ? p[b] = t(f) : p[b] = c(f);
5364
5364
  }
5365
5365
  return p;
5366
5366
  }
@@ -5370,27 +5370,27 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5370
5370
  if (h.constructor !== Object && (a = i.get(h.constructor))) return a(h, u);
5371
5371
  let p = {};
5372
5372
  for (let b in h) {
5373
- let d = h[b];
5374
- typeof d != "object" || d === null ? p[b] = d : d.constructor !== Object && (a = i.get(d.constructor)) ? p[b] = a(d, u) : ArrayBuffer.isView(d) ? p[b] = t(d) : p[b] = u(d);
5373
+ let f = h[b];
5374
+ typeof f != "object" || f === null ? p[b] = f : f.constructor !== Object && (a = i.get(f.constructor)) ? p[b] = a(f, u) : ArrayBuffer.isView(f) ? p[b] = t(f) : p[b] = u(f);
5375
5375
  }
5376
5376
  return p;
5377
5377
  }
5378
5378
  }
5379
5379
  function o(n) {
5380
5380
  let i = [], a = [], l = /* @__PURE__ */ new Map();
5381
- if (l.set(Date, (b) => new Date(b)), l.set(Map, (b, d) => new Map(u(Array.from(b), d))), l.set(Set, (b, d) => new Set(u(Array.from(b), d))), n.constructorHandlers) for (let b of n.constructorHandlers) l.set(b[0], b[1]);
5381
+ if (l.set(Date, (b) => new Date(b)), l.set(Map, (b, f) => new Map(u(Array.from(b), f))), l.set(Set, (b, f) => new Set(u(Array.from(b), f))), n.constructorHandlers) for (let b of n.constructorHandlers) l.set(b[0], b[1]);
5382
5382
  let c = null;
5383
5383
  return n.proto ? p : h;
5384
- function u(b, d) {
5384
+ function u(b, f) {
5385
5385
  let g = Object.keys(b), y = new Array(g.length);
5386
5386
  for (let w = 0; w < g.length; w++) {
5387
5387
  let m = g[w], _ = b[m];
5388
5388
  if (typeof _ != "object" || _ === null) y[m] = _;
5389
- else if (_.constructor !== Object && (c = l.get(_.constructor))) y[m] = c(_, d);
5389
+ else if (_.constructor !== Object && (c = l.get(_.constructor))) y[m] = c(_, f);
5390
5390
  else if (ArrayBuffer.isView(_)) y[m] = t(_);
5391
5391
  else {
5392
5392
  let x = i.indexOf(_);
5393
- x !== -1 ? y[m] = a[x] : y[m] = d(_);
5393
+ x !== -1 ? y[m] = a[x] : y[m] = f(_);
5394
5394
  }
5395
5395
  }
5396
5396
  return y;
@@ -5399,38 +5399,38 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5399
5399
  if (typeof b != "object" || b === null) return b;
5400
5400
  if (Array.isArray(b)) return u(b, h);
5401
5401
  if (b.constructor !== Object && (c = l.get(b.constructor))) return c(b, h);
5402
- let d = {};
5403
- i.push(b), a.push(d);
5402
+ let f = {};
5403
+ i.push(b), a.push(f);
5404
5404
  for (let g in b) {
5405
5405
  if (Object.hasOwnProperty.call(b, g) === !1) continue;
5406
5406
  let y = b[g];
5407
- if (typeof y != "object" || y === null) d[g] = y;
5408
- else if (y.constructor !== Object && (c = l.get(y.constructor))) d[g] = c(y, h);
5409
- else if (ArrayBuffer.isView(y)) d[g] = t(y);
5407
+ if (typeof y != "object" || y === null) f[g] = y;
5408
+ else if (y.constructor !== Object && (c = l.get(y.constructor))) f[g] = c(y, h);
5409
+ else if (ArrayBuffer.isView(y)) f[g] = t(y);
5410
5410
  else {
5411
5411
  let w = i.indexOf(y);
5412
- w !== -1 ? d[g] = a[w] : d[g] = h(y);
5412
+ w !== -1 ? f[g] = a[w] : f[g] = h(y);
5413
5413
  }
5414
5414
  }
5415
- return i.pop(), a.pop(), d;
5415
+ return i.pop(), a.pop(), f;
5416
5416
  }
5417
5417
  function p(b) {
5418
5418
  if (typeof b != "object" || b === null) return b;
5419
5419
  if (Array.isArray(b)) return u(b, p);
5420
5420
  if (b.constructor !== Object && (c = l.get(b.constructor))) return c(b, p);
5421
- let d = {};
5422
- i.push(b), a.push(d);
5421
+ let f = {};
5422
+ i.push(b), a.push(f);
5423
5423
  for (let g in b) {
5424
5424
  let y = b[g];
5425
- if (typeof y != "object" || y === null) d[g] = y;
5426
- else if (y.constructor !== Object && (c = l.get(y.constructor))) d[g] = c(y, p);
5427
- else if (ArrayBuffer.isView(y)) d[g] = t(y);
5425
+ if (typeof y != "object" || y === null) f[g] = y;
5426
+ else if (y.constructor !== Object && (c = l.get(y.constructor))) f[g] = c(y, p);
5427
+ else if (ArrayBuffer.isView(y)) f[g] = t(y);
5428
5428
  else {
5429
5429
  let w = i.indexOf(y);
5430
- w !== -1 ? d[g] = a[w] : d[g] = p(y);
5430
+ w !== -1 ? f[g] = a[w] : f[g] = p(y);
5431
5431
  }
5432
5432
  }
5433
- return i.pop(), a.pop(), d;
5433
+ return i.pop(), a.pop(), f;
5434
5434
  }
5435
5435
  }
5436
5436
  }), Oc = pe((s, e) => {
@@ -5606,8 +5606,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5606
5606
  if ((p & 128) !== 0) {
5607
5607
  c = new Error(`Subscribe error: ${s.ReasonCodes[p]}`), c.code = p;
5608
5608
  let b = r.messageIdToTopic[n];
5609
- b && b.forEach((d) => {
5610
- delete r._resubscribeTopics[d];
5609
+ b && b.forEach((f) => {
5610
+ delete r._resubscribeTopics[f];
5611
5611
  });
5612
5612
  }
5613
5613
  }
@@ -5648,8 +5648,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5648
5648
  s.default = r;
5649
5649
  }), Lc = pe((s) => {
5650
5650
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.LRUCache = void 0;
5651
- var e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, t = /* @__PURE__ */ new Set(), r = typeof Re == "object" && Re ? Re : {}, o = (b, d, g, y) => {
5652
- typeof r.emitWarning == "function" ? r.emitWarning(b, d, g, y) : console.error(`[${g}] ${d}: ${b}`);
5651
+ var e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, t = /* @__PURE__ */ new Set(), r = typeof Re == "object" && Re ? Re : {}, o = (b, f, g, y) => {
5652
+ typeof r.emitWarning == "function" ? r.emitWarning(b, f, g, y) : console.error(`[${g}] ${f}: ${b}`);
5653
5653
  }, n = globalThis.AbortController, i = globalThis.AbortSignal;
5654
5654
  if (typeof n > "u") {
5655
5655
  i = class {
@@ -5662,7 +5662,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5662
5662
  }
5663
5663
  }, n = class {
5664
5664
  constructor() {
5665
- d();
5665
+ f();
5666
5666
  }
5667
5667
  signal = new i();
5668
5668
  abort(g) {
@@ -5673,8 +5673,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5673
5673
  }
5674
5674
  }
5675
5675
  };
5676
- let b = r.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", d = () => {
5677
- b && (b = !1, o("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", d));
5676
+ let b = r.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", f = () => {
5677
+ b && (b = !1, o("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", f));
5678
5678
  };
5679
5679
  }
5680
5680
  var a = (b) => !t.has(b), l = (b) => b && b === Math.floor(b) && b > 0 && isFinite(b), c = (b) => l(b) ? b <= Math.pow(2, 8) ? Uint8Array : b <= Math.pow(2, 16) ? Uint16Array : b <= Math.pow(2, 32) ? Uint32Array : b <= Number.MAX_SAFE_INTEGER ? u : null : null, u = class extends Array {
@@ -5685,19 +5685,19 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5685
5685
  heap;
5686
5686
  length;
5687
5687
  static #l = !1;
5688
- static create(d) {
5689
- let g = c(d);
5688
+ static create(f) {
5689
+ let g = c(f);
5690
5690
  if (!g) return [];
5691
5691
  rr.#l = !0;
5692
- let y = new rr(d, g);
5692
+ let y = new rr(f, g);
5693
5693
  return rr.#l = !1, y;
5694
5694
  }
5695
- constructor(d, g) {
5695
+ constructor(f, g) {
5696
5696
  if (!rr.#l) throw new TypeError("instantiate Stack using Stack.create(n)");
5697
- this.heap = new g(d), this.length = 0;
5697
+ this.heap = new g(f), this.length = 0;
5698
5698
  }
5699
- push(d) {
5700
- this.heap[this.length++] = d;
5699
+ push(f) {
5700
+ this.heap[this.length++] = f;
5701
5701
  }
5702
5702
  pop() {
5703
5703
  return this.heap[--this.length];
@@ -5741,12 +5741,12 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5741
5741
  #_;
5742
5742
  #A;
5743
5743
  #u;
5744
- static unsafeExposeInternals(d) {
5745
- return { starts: d.#w, ttls: d.#f, sizes: d.#v, keyMap: d.#n, keyList: d.#r, valList: d.#e, next: d.#c, prev: d.#d, get head() {
5746
- return d.#a;
5744
+ static unsafeExposeInternals(f) {
5745
+ return { starts: f.#w, ttls: f.#f, sizes: f.#v, keyMap: f.#n, keyList: f.#r, valList: f.#e, next: f.#c, prev: f.#d, get head() {
5746
+ return f.#a;
5747
5747
  }, get tail() {
5748
- return d.#o;
5749
- }, free: d.#y, isBackgroundFetch: (g) => d.#t(g), backgroundFetch: (g, y, w, m) => d.#L(g, y, w, m), moveToTail: (g) => d.#C(g), indexes: (g) => d.#k(g), rindexes: (g) => d.#x(g), isStale: (g) => d.#p(g) };
5748
+ return f.#o;
5749
+ }, free: f.#y, isBackgroundFetch: (g) => f.#t(g), backgroundFetch: (g, y, w, m) => f.#L(g, y, w, m), moveToTail: (g) => f.#C(g), indexes: (g) => f.#k(g), rindexes: (g) => f.#x(g), isStale: (g) => f.#p(g) };
5750
5750
  }
5751
5751
  get max() {
5752
5752
  return this.#l;
@@ -5772,8 +5772,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5772
5772
  get disposeAfter() {
5773
5773
  return this.#g;
5774
5774
  }
5775
- constructor(d) {
5776
- let { max: g = 0, ttl: y, ttlResolution: w = 1, ttlAutopurge: m, updateAgeOnGet: _, updateAgeOnHas: x, allowStale: v, dispose: E, disposeAfter: S, noDisposeOnSet: I, noUpdateTTL: O, maxSize: P = 0, maxEntrySize: j = 0, sizeCalculation: T, fetchMethod: q, memoMethod: D, noDeleteOnFetchRejection: U, noDeleteOnStaleGet: ae, allowStaleOnFetchRejection: Y, allowStaleOnFetchAbort: V, ignoreFetchAbort: re } = d;
5775
+ constructor(f) {
5776
+ let { max: g = 0, ttl: y, ttlResolution: w = 1, ttlAutopurge: m, updateAgeOnGet: _, updateAgeOnHas: x, allowStale: v, dispose: E, disposeAfter: S, noDisposeOnSet: I, noUpdateTTL: O, maxSize: P = 0, maxEntrySize: j = 0, sizeCalculation: T, fetchMethod: q, memoMethod: D, noDeleteOnFetchRejection: U, noDeleteOnStaleGet: ae, allowStaleOnFetchRejection: Y, allowStaleOnFetchAbort: V, ignoreFetchAbort: re } = f;
5777
5777
  if (g !== 0 && !l(g)) throw new TypeError("max option must be a nonnegative integer");
5778
5778
  let F = g ? c(g) : Array;
5779
5779
  if (!F) throw new Error("invalid max value: " + g);
@@ -5798,23 +5798,23 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5798
5798
  a(Z) && (t.add(Z), o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", Z, Pa));
5799
5799
  }
5800
5800
  }
5801
- getRemainingTTL(d) {
5802
- return this.#n.has(d) ? 1 / 0 : 0;
5801
+ getRemainingTTL(f) {
5802
+ return this.#n.has(f) ? 1 / 0 : 0;
5803
5803
  }
5804
5804
  #N() {
5805
- let d = new u(this.#l), g = new u(this.#l);
5806
- this.#f = d, this.#w = g, this.#j = (m, _, x = e.now()) => {
5807
- if (g[m] = _ !== 0 ? x : 0, d[m] = _, _ !== 0 && this.ttlAutopurge) {
5805
+ let f = new u(this.#l), g = new u(this.#l);
5806
+ this.#f = f, this.#w = g, this.#j = (m, _, x = e.now()) => {
5807
+ if (g[m] = _ !== 0 ? x : 0, f[m] = _, _ !== 0 && this.ttlAutopurge) {
5808
5808
  let v = setTimeout(() => {
5809
5809
  this.#p(m) && this.#S(this.#r[m], "expire");
5810
5810
  }, _ + 1);
5811
5811
  v.unref && v.unref();
5812
5812
  }
5813
5813
  }, this.#I = (m) => {
5814
- g[m] = d[m] !== 0 ? e.now() : 0;
5814
+ g[m] = f[m] !== 0 ? e.now() : 0;
5815
5815
  }, this.#E = (m, _) => {
5816
- if (d[_]) {
5817
- let x = d[_], v = g[_];
5816
+ if (f[_]) {
5817
+ let x = f[_], v = g[_];
5818
5818
  if (!x || !v) return;
5819
5819
  m.ttl = x, m.start = v, m.now = y || w();
5820
5820
  let E = m.now - v;
@@ -5833,12 +5833,12 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5833
5833
  this.getRemainingTTL = (m) => {
5834
5834
  let _ = this.#n.get(m);
5835
5835
  if (_ === void 0) return 0;
5836
- let x = d[_], v = g[_];
5836
+ let x = f[_], v = g[_];
5837
5837
  if (!x || !v) return 1 / 0;
5838
5838
  let E = (y || w()) - v;
5839
5839
  return x - E;
5840
5840
  }, this.#p = (m) => {
5841
- let _ = g[m], x = d[m];
5841
+ let _ = g[m], x = f[m];
5842
5842
  return !!x && !!_ && (y || w()) - _ > x;
5843
5843
  };
5844
5844
  }
@@ -5850,9 +5850,9 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5850
5850
  };
5851
5851
  #p = () => !1;
5852
5852
  #$() {
5853
- let d = new u(this.#l);
5854
- this.#b = 0, this.#v = d, this.#T = (g) => {
5855
- this.#b -= d[g], d[g] = 0;
5853
+ let f = new u(this.#l);
5854
+ this.#b = 0, this.#v = f, this.#T = (g) => {
5855
+ this.#b -= f[g], f[g] = 0;
5856
5856
  }, this.#U = (g, y, w, m) => {
5857
5857
  if (this.#t(y)) return 0;
5858
5858
  if (!l(w)) if (m) {
@@ -5861,83 +5861,83 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5861
5861
  } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
5862
5862
  return w;
5863
5863
  }, this.#M = (g, y, w) => {
5864
- if (d[g] = y, this.#h) {
5865
- let m = this.#h - d[g];
5864
+ if (f[g] = y, this.#h) {
5865
+ let m = this.#h - f[g];
5866
5866
  for (; this.#b > m; ) this.#R(!0);
5867
5867
  }
5868
- this.#b += d[g], w && (w.entrySize = y, w.totalCalculatedSize = this.#b);
5868
+ this.#b += f[g], w && (w.entrySize = y, w.totalCalculatedSize = this.#b);
5869
5869
  };
5870
5870
  }
5871
- #T = (d) => {
5871
+ #T = (f) => {
5872
5872
  };
5873
- #M = (d, g, y) => {
5873
+ #M = (f, g, y) => {
5874
5874
  };
5875
- #U = (d, g, y, w) => {
5875
+ #U = (f, g, y, w) => {
5876
5876
  if (y || w) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
5877
5877
  return 0;
5878
5878
  };
5879
- *#k({ allowStale: d = this.allowStale } = {}) {
5880
- if (this.#i) for (let g = this.#o; !(!this.#B(g) || ((d || !this.#p(g)) && (yield g), g === this.#a)); ) g = this.#d[g];
5879
+ *#k({ allowStale: f = this.allowStale } = {}) {
5880
+ if (this.#i) for (let g = this.#o; !(!this.#B(g) || ((f || !this.#p(g)) && (yield g), g === this.#a)); ) g = this.#d[g];
5881
5881
  }
5882
- *#x({ allowStale: d = this.allowStale } = {}) {
5883
- if (this.#i) for (let g = this.#a; !(!this.#B(g) || ((d || !this.#p(g)) && (yield g), g === this.#o)); ) g = this.#c[g];
5882
+ *#x({ allowStale: f = this.allowStale } = {}) {
5883
+ if (this.#i) for (let g = this.#a; !(!this.#B(g) || ((f || !this.#p(g)) && (yield g), g === this.#o)); ) g = this.#c[g];
5884
5884
  }
5885
- #B(d) {
5886
- return d !== void 0 && this.#n.get(this.#r[d]) === d;
5885
+ #B(f) {
5886
+ return f !== void 0 && this.#n.get(this.#r[f]) === f;
5887
5887
  }
5888
5888
  *entries() {
5889
- for (let d of this.#k()) this.#e[d] !== void 0 && this.#r[d] !== void 0 && !this.#t(this.#e[d]) && (yield [this.#r[d], this.#e[d]]);
5889
+ for (let f of this.#k()) this.#e[f] !== void 0 && this.#r[f] !== void 0 && !this.#t(this.#e[f]) && (yield [this.#r[f], this.#e[f]]);
5890
5890
  }
5891
5891
  *rentries() {
5892
- for (let d of this.#x()) this.#e[d] !== void 0 && this.#r[d] !== void 0 && !this.#t(this.#e[d]) && (yield [this.#r[d], this.#e[d]]);
5892
+ for (let f of this.#x()) this.#e[f] !== void 0 && this.#r[f] !== void 0 && !this.#t(this.#e[f]) && (yield [this.#r[f], this.#e[f]]);
5893
5893
  }
5894
5894
  *keys() {
5895
- for (let d of this.#k()) {
5896
- let g = this.#r[d];
5897
- g !== void 0 && !this.#t(this.#e[d]) && (yield g);
5895
+ for (let f of this.#k()) {
5896
+ let g = this.#r[f];
5897
+ g !== void 0 && !this.#t(this.#e[f]) && (yield g);
5898
5898
  }
5899
5899
  }
5900
5900
  *rkeys() {
5901
- for (let d of this.#x()) {
5902
- let g = this.#r[d];
5903
- g !== void 0 && !this.#t(this.#e[d]) && (yield g);
5901
+ for (let f of this.#x()) {
5902
+ let g = this.#r[f];
5903
+ g !== void 0 && !this.#t(this.#e[f]) && (yield g);
5904
5904
  }
5905
5905
  }
5906
5906
  *values() {
5907
- for (let d of this.#k()) this.#e[d] !== void 0 && !this.#t(this.#e[d]) && (yield this.#e[d]);
5907
+ for (let f of this.#k()) this.#e[f] !== void 0 && !this.#t(this.#e[f]) && (yield this.#e[f]);
5908
5908
  }
5909
5909
  *rvalues() {
5910
- for (let d of this.#x()) this.#e[d] !== void 0 && !this.#t(this.#e[d]) && (yield this.#e[d]);
5910
+ for (let f of this.#x()) this.#e[f] !== void 0 && !this.#t(this.#e[f]) && (yield this.#e[f]);
5911
5911
  }
5912
5912
  [Symbol.iterator]() {
5913
5913
  return this.entries();
5914
5914
  }
5915
5915
  [Symbol.toStringTag] = "LRUCache";
5916
- find(d, g = {}) {
5916
+ find(f, g = {}) {
5917
5917
  for (let y of this.#k()) {
5918
5918
  let w = this.#e[y], m = this.#t(w) ? w.__staleWhileFetching : w;
5919
- if (m !== void 0 && d(m, this.#r[y], this)) return this.get(this.#r[y], g);
5919
+ if (m !== void 0 && f(m, this.#r[y], this)) return this.get(this.#r[y], g);
5920
5920
  }
5921
5921
  }
5922
- forEach(d, g = this) {
5922
+ forEach(f, g = this) {
5923
5923
  for (let y of this.#k()) {
5924
5924
  let w = this.#e[y], m = this.#t(w) ? w.__staleWhileFetching : w;
5925
- m !== void 0 && d.call(g, m, this.#r[y], this);
5925
+ m !== void 0 && f.call(g, m, this.#r[y], this);
5926
5926
  }
5927
5927
  }
5928
- rforEach(d, g = this) {
5928
+ rforEach(f, g = this) {
5929
5929
  for (let y of this.#x()) {
5930
5930
  let w = this.#e[y], m = this.#t(w) ? w.__staleWhileFetching : w;
5931
- m !== void 0 && d.call(g, m, this.#r[y], this);
5931
+ m !== void 0 && f.call(g, m, this.#r[y], this);
5932
5932
  }
5933
5933
  }
5934
5934
  purgeStale() {
5935
- let d = !1;
5936
- for (let g of this.#x({ allowStale: !0 })) this.#p(g) && (this.#S(this.#r[g], "expire"), d = !0);
5937
- return d;
5935
+ let f = !1;
5936
+ for (let g of this.#x({ allowStale: !0 })) this.#p(g) && (this.#S(this.#r[g], "expire"), f = !0);
5937
+ return f;
5938
5938
  }
5939
- info(d) {
5940
- let g = this.#n.get(d);
5939
+ info(f) {
5940
+ let g = this.#n.get(f);
5941
5941
  if (g === void 0) return;
5942
5942
  let y = this.#e[g], w = this.#t(y) ? y.__staleWhileFetching : y;
5943
5943
  if (w === void 0) return;
@@ -5952,7 +5952,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5952
5952
  return this.#v && (m.size = this.#v[g]), m;
5953
5953
  }
5954
5954
  dump() {
5955
- let d = [];
5955
+ let f = [];
5956
5956
  for (let g of this.#k({ allowStale: !0 })) {
5957
5957
  let y = this.#r[g], w = this.#e[g], m = this.#t(w) ? w.__staleWhileFetching : w;
5958
5958
  if (m === void 0 || y === void 0) continue;
@@ -5962,13 +5962,13 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5962
5962
  let x = e.now() - this.#w[g];
5963
5963
  _.start = Math.floor(Date.now() - x);
5964
5964
  }
5965
- this.#v && (_.size = this.#v[g]), d.unshift([y, _]);
5965
+ this.#v && (_.size = this.#v[g]), f.unshift([y, _]);
5966
5966
  }
5967
- return d;
5967
+ return f;
5968
5968
  }
5969
- load(d) {
5969
+ load(f) {
5970
5970
  this.clear();
5971
- for (let [g, y] of d) {
5971
+ for (let [g, y] of f) {
5972
5972
  if (y.start) {
5973
5973
  let w = Date.now() - y.start;
5974
5974
  y.start = e.now() - w;
@@ -5976,12 +5976,12 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5976
5976
  this.set(g, y.value, y);
5977
5977
  }
5978
5978
  }
5979
- set(d, g, y = {}) {
5980
- if (g === void 0) return this.delete(d), this;
5981
- let { ttl: w = this.ttl, start: m, noDisposeOnSet: _ = this.noDisposeOnSet, sizeCalculation: x = this.sizeCalculation, status: v } = y, { noUpdateTTL: E = this.noUpdateTTL } = y, S = this.#U(d, g, y.size || 0, x);
5982
- if (this.maxEntrySize && S > this.maxEntrySize) return v && (v.set = "miss", v.maxEntrySizeExceeded = !0), this.#S(d, "set"), this;
5983
- let I = this.#i === 0 ? void 0 : this.#n.get(d);
5984
- if (I === void 0) I = this.#i === 0 ? this.#o : this.#y.length !== 0 ? this.#y.pop() : this.#i === this.#l ? this.#R(!1) : this.#i, this.#r[I] = d, this.#e[I] = g, this.#n.set(d, I), this.#c[this.#o] = I, this.#d[I] = this.#o, this.#o = I, this.#i++, this.#M(I, S, v), v && (v.set = "add"), E = !1;
5979
+ set(f, g, y = {}) {
5980
+ if (g === void 0) return this.delete(f), this;
5981
+ let { ttl: w = this.ttl, start: m, noDisposeOnSet: _ = this.noDisposeOnSet, sizeCalculation: x = this.sizeCalculation, status: v } = y, { noUpdateTTL: E = this.noUpdateTTL } = y, S = this.#U(f, g, y.size || 0, x);
5982
+ if (this.maxEntrySize && S > this.maxEntrySize) return v && (v.set = "miss", v.maxEntrySizeExceeded = !0), this.#S(f, "set"), this;
5983
+ let I = this.#i === 0 ? void 0 : this.#n.get(f);
5984
+ if (I === void 0) I = this.#i === 0 ? this.#o : this.#y.length !== 0 ? this.#y.pop() : this.#i === this.#l ? this.#R(!1) : this.#i, this.#r[I] = f, this.#e[I] = g, this.#n.set(f, I), this.#c[this.#o] = I, this.#d[I] = this.#o, this.#o = I, this.#i++, this.#M(I, S, v), v && (v.set = "add"), E = !1;
5985
5985
  else {
5986
5986
  this.#C(I);
5987
5987
  let O = this.#e[I];
@@ -5989,8 +5989,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
5989
5989
  if (this.#A && this.#t(O)) {
5990
5990
  O.__abortController.abort(new Error("replaced"));
5991
5991
  let { __staleWhileFetching: P } = O;
5992
- P !== void 0 && !_ && (this.#_ && this.#m?.(P, d, "set"), this.#u && this.#s?.push([P, d, "set"]));
5993
- } else _ || (this.#_ && this.#m?.(O, d, "set"), this.#u && this.#s?.push([O, d, "set"]));
5992
+ P !== void 0 && !_ && (this.#_ && this.#m?.(P, f, "set"), this.#u && this.#s?.push([P, f, "set"]));
5993
+ } else _ || (this.#_ && this.#m?.(O, f, "set"), this.#u && this.#s?.push([O, f, "set"]));
5994
5994
  if (this.#T(I), this.#M(I, S, v), this.#e[I] = g, v) {
5995
5995
  v.set = "replace";
5996
5996
  let P = O && this.#t(O) ? O.__staleWhileFetching : O;
@@ -6007,24 +6007,24 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
6007
6007
  pop() {
6008
6008
  try {
6009
6009
  for (; this.#i; ) {
6010
- let d = this.#e[this.#a];
6011
- if (this.#R(!0), this.#t(d)) {
6012
- if (d.__staleWhileFetching) return d.__staleWhileFetching;
6013
- } else if (d !== void 0) return d;
6010
+ let f = this.#e[this.#a];
6011
+ if (this.#R(!0), this.#t(f)) {
6012
+ if (f.__staleWhileFetching) return f.__staleWhileFetching;
6013
+ } else if (f !== void 0) return f;
6014
6014
  }
6015
6015
  } finally {
6016
6016
  if (this.#u && this.#s) {
6017
- let d = this.#s, g;
6018
- for (; g = d?.shift(); ) this.#g?.(...g);
6017
+ let f = this.#s, g;
6018
+ for (; g = f?.shift(); ) this.#g?.(...g);
6019
6019
  }
6020
6020
  }
6021
6021
  }
6022
- #R(d) {
6022
+ #R(f) {
6023
6023
  let g = this.#a, y = this.#r[g], w = this.#e[g];
6024
- return this.#A && this.#t(w) ? w.__abortController.abort(new Error("evicted")) : (this.#_ || this.#u) && (this.#_ && this.#m?.(w, y, "evict"), this.#u && this.#s?.push([w, y, "evict"])), this.#T(g), d && (this.#r[g] = void 0, this.#e[g] = void 0, this.#y.push(g)), this.#i === 1 ? (this.#a = this.#o = 0, this.#y.length = 0) : this.#a = this.#c[g], this.#n.delete(y), this.#i--, g;
6024
+ return this.#A && this.#t(w) ? w.__abortController.abort(new Error("evicted")) : (this.#_ || this.#u) && (this.#_ && this.#m?.(w, y, "evict"), this.#u && this.#s?.push([w, y, "evict"])), this.#T(g), f && (this.#r[g] = void 0, this.#e[g] = void 0, this.#y.push(g)), this.#i === 1 ? (this.#a = this.#o = 0, this.#y.length = 0) : this.#a = this.#c[g], this.#n.delete(y), this.#i--, g;
6025
6025
  }
6026
- has(d, g = {}) {
6027
- let { updateAgeOnHas: y = this.updateAgeOnHas, status: w } = g, m = this.#n.get(d);
6026
+ has(f, g = {}) {
6027
+ let { updateAgeOnHas: y = this.updateAgeOnHas, status: w } = g, m = this.#n.get(f);
6028
6028
  if (m !== void 0) {
6029
6029
  let _ = this.#e[m];
6030
6030
  if (this.#t(_) && _.__staleWhileFetching === void 0) return !1;
@@ -6033,13 +6033,13 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
6033
6033
  } else w && (w.has = "miss");
6034
6034
  return !1;
6035
6035
  }
6036
- peek(d, g = {}) {
6037
- let { allowStale: y = this.allowStale } = g, w = this.#n.get(d);
6036
+ peek(f, g = {}) {
6037
+ let { allowStale: y = this.allowStale } = g, w = this.#n.get(f);
6038
6038
  if (w === void 0 || !y && this.#p(w)) return;
6039
6039
  let m = this.#e[w];
6040
6040
  return this.#t(m) ? m.__staleWhileFetching : m;
6041
6041
  }
6042
- #L(d, g, y, w) {
6042
+ #L(f, g, y, w) {
6043
6043
  let m = g === void 0 ? void 0 : this.#e[g];
6044
6044
  if (this.#t(m)) return m;
6045
6045
  let _ = new n(), { signal: x } = y;
@@ -6048,33 +6048,33 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
6048
6048
  let { aborted: D } = _.signal, U = y.ignoreFetchAbort && T !== void 0;
6049
6049
  if (y.status && (D && !q ? (y.status.fetchAborted = !0, y.status.fetchError = _.signal.reason, U && (y.status.fetchAbortIgnored = !0)) : y.status.fetchResolved = !0), D && !U && !q) return I(_.signal.reason);
6050
6050
  let ae = P;
6051
- return this.#e[g] === P && (T === void 0 ? ae.__staleWhileFetching ? this.#e[g] = ae.__staleWhileFetching : this.#S(d, "fetch") : (y.status && (y.status.fetchUpdated = !0), this.set(d, T, v.options))), T;
6051
+ return this.#e[g] === P && (T === void 0 ? ae.__staleWhileFetching ? this.#e[g] = ae.__staleWhileFetching : this.#S(f, "fetch") : (y.status && (y.status.fetchUpdated = !0), this.set(f, T, v.options))), T;
6052
6052
  }, S = (T) => (y.status && (y.status.fetchRejected = !0, y.status.fetchError = T), I(T)), I = (T) => {
6053
6053
  let { aborted: q } = _.signal, D = q && y.allowStaleOnFetchAbort, U = D || y.allowStaleOnFetchRejection, ae = U || y.noDeleteOnFetchRejection, Y = P;
6054
- if (this.#e[g] === P && (!ae || Y.__staleWhileFetching === void 0 ? this.#S(d, "fetch") : D || (this.#e[g] = Y.__staleWhileFetching)), U) return y.status && Y.__staleWhileFetching !== void 0 && (y.status.returnedStale = !0), Y.__staleWhileFetching;
6054
+ if (this.#e[g] === P && (!ae || Y.__staleWhileFetching === void 0 ? this.#S(f, "fetch") : D || (this.#e[g] = Y.__staleWhileFetching)), U) return y.status && Y.__staleWhileFetching !== void 0 && (y.status.returnedStale = !0), Y.__staleWhileFetching;
6055
6055
  if (Y.__returned === Y) throw T;
6056
6056
  }, O = (T, q) => {
6057
- let D = this.#O?.(d, m, v);
6057
+ let D = this.#O?.(f, m, v);
6058
6058
  D && D instanceof Promise && D.then((U) => T(U === void 0 ? void 0 : U), q), _.signal.addEventListener("abort", () => {
6059
6059
  (!y.ignoreFetchAbort || y.allowStaleOnFetchAbort) && (T(void 0), y.allowStaleOnFetchAbort && (T = (U) => E(U, !0)));
6060
6060
  });
6061
6061
  };
6062
6062
  y.status && (y.status.fetchDispatched = !0);
6063
6063
  let P = new Promise(O).then(E, S), j = Object.assign(P, { __abortController: _, __staleWhileFetching: m, __returned: void 0 });
6064
- return g === void 0 ? (this.set(d, j, { ...v.options, status: void 0 }), g = this.#n.get(d)) : this.#e[g] = j, j;
6064
+ return g === void 0 ? (this.set(f, j, { ...v.options, status: void 0 }), g = this.#n.get(f)) : this.#e[g] = j, j;
6065
6065
  }
6066
- #t(d) {
6066
+ #t(f) {
6067
6067
  if (!this.#A) return !1;
6068
- let g = d;
6068
+ let g = f;
6069
6069
  return !!g && g instanceof Promise && g.hasOwnProperty("__staleWhileFetching") && g.__abortController instanceof n;
6070
6070
  }
6071
- async fetch(d, g = {}) {
6071
+ async fetch(f, g = {}) {
6072
6072
  let { allowStale: y = this.allowStale, updateAgeOnGet: w = this.updateAgeOnGet, noDeleteOnStaleGet: m = this.noDeleteOnStaleGet, ttl: _ = this.ttl, noDisposeOnSet: x = this.noDisposeOnSet, size: v = 0, sizeCalculation: E = this.sizeCalculation, noUpdateTTL: S = this.noUpdateTTL, noDeleteOnFetchRejection: I = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: O = this.allowStaleOnFetchRejection, ignoreFetchAbort: P = this.ignoreFetchAbort, allowStaleOnFetchAbort: j = this.allowStaleOnFetchAbort, context: T, forceRefresh: q = !1, status: D, signal: U } = g;
6073
- if (!this.#A) return D && (D.fetch = "get"), this.get(d, { allowStale: y, updateAgeOnGet: w, noDeleteOnStaleGet: m, status: D });
6074
- let ae = { allowStale: y, updateAgeOnGet: w, noDeleteOnStaleGet: m, ttl: _, noDisposeOnSet: x, size: v, sizeCalculation: E, noUpdateTTL: S, noDeleteOnFetchRejection: I, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: j, ignoreFetchAbort: P, status: D, signal: U }, Y = this.#n.get(d);
6073
+ if (!this.#A) return D && (D.fetch = "get"), this.get(f, { allowStale: y, updateAgeOnGet: w, noDeleteOnStaleGet: m, status: D });
6074
+ let ae = { allowStale: y, updateAgeOnGet: w, noDeleteOnStaleGet: m, ttl: _, noDisposeOnSet: x, size: v, sizeCalculation: E, noUpdateTTL: S, noDeleteOnFetchRejection: I, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: j, ignoreFetchAbort: P, status: D, signal: U }, Y = this.#n.get(f);
6075
6075
  if (Y === void 0) {
6076
6076
  D && (D.fetch = "miss");
6077
- let V = this.#L(d, Y, ae, T);
6077
+ let V = this.#L(f, Y, ae, T);
6078
6078
  return V.__returned = V;
6079
6079
  } else {
6080
6080
  let V = this.#e[Y];
@@ -6084,48 +6084,48 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
6084
6084
  }
6085
6085
  let re = this.#p(Y);
6086
6086
  if (!q && !re) return D && (D.fetch = "hit"), this.#C(Y), w && this.#I(Y), D && this.#E(D, Y), V;
6087
- let F = this.#L(d, Y, ae, T), Z = F.__staleWhileFetching !== void 0 && y;
6087
+ let F = this.#L(f, Y, ae, T), Z = F.__staleWhileFetching !== void 0 && y;
6088
6088
  return D && (D.fetch = re ? "stale" : "refresh", Z && re && (D.returnedStale = !0)), Z ? F.__staleWhileFetching : F.__returned = F;
6089
6089
  }
6090
6090
  }
6091
- async forceFetch(d, g = {}) {
6092
- let y = await this.fetch(d, g);
6091
+ async forceFetch(f, g = {}) {
6092
+ let y = await this.fetch(f, g);
6093
6093
  if (y === void 0) throw new Error("fetch() returned undefined");
6094
6094
  return y;
6095
6095
  }
6096
- memo(d, g = {}) {
6096
+ memo(f, g = {}) {
6097
6097
  let y = this.#P;
6098
6098
  if (!y) throw new Error("no memoMethod provided to constructor");
6099
- let { context: w, forceRefresh: m, ..._ } = g, x = this.get(d, _);
6099
+ let { context: w, forceRefresh: m, ..._ } = g, x = this.get(f, _);
6100
6100
  if (!m && x !== void 0) return x;
6101
- let v = y(d, x, { options: _, context: w });
6102
- return this.set(d, v, _), v;
6101
+ let v = y(f, x, { options: _, context: w });
6102
+ return this.set(f, v, _), v;
6103
6103
  }
6104
- get(d, g = {}) {
6105
- let { allowStale: y = this.allowStale, updateAgeOnGet: w = this.updateAgeOnGet, noDeleteOnStaleGet: m = this.noDeleteOnStaleGet, status: _ } = g, x = this.#n.get(d);
6104
+ get(f, g = {}) {
6105
+ let { allowStale: y = this.allowStale, updateAgeOnGet: w = this.updateAgeOnGet, noDeleteOnStaleGet: m = this.noDeleteOnStaleGet, status: _ } = g, x = this.#n.get(f);
6106
6106
  if (x !== void 0) {
6107
6107
  let v = this.#e[x], E = this.#t(v);
6108
- return _ && this.#E(_, x), this.#p(x) ? (_ && (_.get = "stale"), E ? (_ && y && v.__staleWhileFetching !== void 0 && (_.returnedStale = !0), y ? v.__staleWhileFetching : void 0) : (m || this.#S(d, "expire"), _ && y && (_.returnedStale = !0), y ? v : void 0)) : (_ && (_.get = "hit"), E ? v.__staleWhileFetching : (this.#C(x), w && this.#I(x), v));
6108
+ return _ && this.#E(_, x), this.#p(x) ? (_ && (_.get = "stale"), E ? (_ && y && v.__staleWhileFetching !== void 0 && (_.returnedStale = !0), y ? v.__staleWhileFetching : void 0) : (m || this.#S(f, "expire"), _ && y && (_.returnedStale = !0), y ? v : void 0)) : (_ && (_.get = "hit"), E ? v.__staleWhileFetching : (this.#C(x), w && this.#I(x), v));
6109
6109
  } else _ && (_.get = "miss");
6110
6110
  }
6111
- #D(d, g) {
6112
- this.#d[g] = d, this.#c[d] = g;
6111
+ #D(f, g) {
6112
+ this.#d[g] = f, this.#c[f] = g;
6113
6113
  }
6114
- #C(d) {
6115
- d !== this.#o && (d === this.#a ? this.#a = this.#c[d] : this.#D(this.#d[d], this.#c[d]), this.#D(this.#o, d), this.#o = d);
6114
+ #C(f) {
6115
+ f !== this.#o && (f === this.#a ? this.#a = this.#c[f] : this.#D(this.#d[f], this.#c[f]), this.#D(this.#o, f), this.#o = f);
6116
6116
  }
6117
- delete(d) {
6118
- return this.#S(d, "delete");
6117
+ delete(f) {
6118
+ return this.#S(f, "delete");
6119
6119
  }
6120
- #S(d, g) {
6120
+ #S(f, g) {
6121
6121
  let y = !1;
6122
6122
  if (this.#i !== 0) {
6123
- let w = this.#n.get(d);
6123
+ let w = this.#n.get(f);
6124
6124
  if (w !== void 0) if (y = !0, this.#i === 1) this.#F(g);
6125
6125
  else {
6126
6126
  this.#T(w);
6127
6127
  let m = this.#e[w];
6128
- if (this.#t(m) ? m.__abortController.abort(new Error("deleted")) : (this.#_ || this.#u) && (this.#_ && this.#m?.(m, d, g), this.#u && this.#s?.push([m, d, g])), this.#n.delete(d), this.#r[w] = void 0, this.#e[w] = void 0, w === this.#o) this.#o = this.#d[w];
6128
+ if (this.#t(m) ? m.__abortController.abort(new Error("deleted")) : (this.#_ || this.#u) && (this.#_ && this.#m?.(m, f, g), this.#u && this.#s?.push([m, f, g])), this.#n.delete(f), this.#r[w] = void 0, this.#e[w] = void 0, w === this.#o) this.#o = this.#d[w];
6129
6129
  else if (w === this.#a) this.#a = this.#c[w];
6130
6130
  else {
6131
6131
  let _ = this.#d[w];
@@ -6145,13 +6145,13 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
6145
6145
  clear() {
6146
6146
  return this.#F("delete");
6147
6147
  }
6148
- #F(d) {
6148
+ #F(f) {
6149
6149
  for (let g of this.#x({ allowStale: !0 })) {
6150
6150
  let y = this.#e[g];
6151
6151
  if (this.#t(y)) y.__abortController.abort(new Error("deleted"));
6152
6152
  else {
6153
6153
  let w = this.#r[g];
6154
- this.#_ && this.#m?.(y, w, d), this.#u && this.#s?.push([y, w, d]);
6154
+ this.#_ && this.#m?.(y, w, f), this.#u && this.#s?.push([y, w, f]);
6155
6155
  }
6156
6156
  }
6157
6157
  if (this.#n.clear(), this.#e.fill(void 0), this.#r.fill(void 0), this.#f && this.#w && (this.#f.fill(0), this.#w.fill(0)), this.#v && this.#v.fill(0), this.#a = 0, this.#o = 0, this.#y.length = 0, this.#b = 0, this.#i = 0, this.#u && this.#s) {
@@ -6883,8 +6883,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
6883
6883
  for (; p !== this.h; ) p.rt += 1, p = p.tt;
6884
6884
  let b = this.he(h);
6885
6885
  if (b) {
6886
- let { parentNode: d, grandParent: g, curNode: y } = b;
6887
- d.ie(), g.ie(), y.ie();
6886
+ let { parentNode: f, grandParent: g, curNode: y } = b;
6887
+ f.ie(), g.ie(), y.ie();
6888
6888
  }
6889
6889
  }
6890
6890
  return this.i;
@@ -7021,30 +7021,30 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
7021
7021
  } else if (b < 0) p.W = new this.re(i, a), p.W.tt = p, c = p.W, this.h.W = c;
7022
7022
  else {
7023
7023
  if (l !== void 0) {
7024
- let d = l.o;
7025
- if (d !== this.h) {
7026
- let g = this.v(d.u, i);
7024
+ let f = l.o;
7025
+ if (f !== this.h) {
7026
+ let g = this.v(f.u, i);
7027
7027
  if (g === 0) {
7028
- d.l = a;
7028
+ f.l = a;
7029
7029
  return;
7030
7030
  } else if (g > 0) {
7031
- let y = d.L(), w = this.v(y.u, i);
7031
+ let y = f.L(), w = this.v(y.u, i);
7032
7032
  if (w === 0) {
7033
7033
  y.l = a;
7034
7034
  return;
7035
- } else w < 0 && (c = new this.re(i, a), y.W === void 0 ? (y.W = c, c.tt = y) : (d.U = c, c.tt = d));
7035
+ } else w < 0 && (c = new this.re(i, a), y.W === void 0 ? (y.W = c, c.tt = y) : (f.U = c, c.tt = f));
7036
7036
  }
7037
7037
  }
7038
7038
  }
7039
7039
  if (c === void 0) for (c = this.Y; ; ) {
7040
- let d = this.v(c.u, i);
7041
- if (d > 0) {
7040
+ let f = this.v(c.u, i);
7041
+ if (f > 0) {
7042
7042
  if (c.U === void 0) {
7043
7043
  c.U = new this.re(i, a), c.U.tt = c, c = c.U;
7044
7044
  break;
7045
7045
  }
7046
7046
  c = c.U;
7047
- } else if (d < 0) {
7047
+ } else if (f < 0) {
7048
7048
  if (c.W === void 0) {
7049
7049
  c.W = new this.re(i, a), c.W.tt = c, c = c.W;
7050
7050
  break;
@@ -7915,17 +7915,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7915
7915
  typeof s == "object" && typeof e < "u" ? r(s) : typeof define == "function" && define.amd ? define(["exports"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.fastUniqueNumbers = {}));
7916
7916
  })(s, function(t) {
7917
7917
  var r = function(b) {
7918
- return function(d) {
7919
- var g = b(d);
7920
- return d.add(g), g;
7918
+ return function(f) {
7919
+ var g = b(f);
7920
+ return f.add(g), g;
7921
7921
  };
7922
7922
  }, o = function(b) {
7923
- return function(d, g) {
7924
- return b.set(d, g), g;
7923
+ return function(f, g) {
7924
+ return b.set(f, g), g;
7925
7925
  };
7926
- }, n = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, i = 536870912, a = i * 2, l = function(b, d) {
7926
+ }, n = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, i = 536870912, a = i * 2, l = function(b, f) {
7927
7927
  return function(g) {
7928
- var y = d.get(g), w = y === void 0 ? g.size : y < a ? y + 1 : 0;
7928
+ var y = f.get(g), w = y === void 0 ? g.size : y < a ? y + 1 : 0;
7929
7929
  if (!g.has(w)) return b(g, w);
7930
7930
  if (g.size < i) {
7931
7931
  for (; g.has(w); ) w = Math.floor(Math.random() * a);
@@ -7980,9 +7980,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7980
7980
  a = 0;
7981
7981
  }
7982
7982
  e.exports = t = function(l, c, u, h) {
7983
- function p(b, d) {
7983
+ function p(b, f) {
7984
7984
  t(l, b, function(g) {
7985
- return this._invoke(b, d, g);
7985
+ return this._invoke(b, f, g);
7986
7986
  });
7987
7987
  }
7988
7988
  c ? a ? a(l, c, { value: u, enumerable: !h, configurable: !h, writable: !h }) : l[c] = u : (p("next", 0), p("throw", 1), p("return", 2));
@@ -8039,9 +8039,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8039
8039
  function b() {
8040
8040
  }
8041
8041
  n = Object.getPrototypeOf;
8042
- var d = [][a] ? n(n([][a]())) : (t(n = {}, a, function() {
8042
+ var f = [][a] ? n(n([][a]())) : (t(n = {}, a, function() {
8043
8043
  return this;
8044
- }), n), g = b.prototype = h.prototype = Object.create(d);
8044
+ }), n), g = b.prototype = h.prototype = Object.create(f);
8045
8045
  function y(w) {
8046
8046
  return Object.setPrototypeOf ? Object.setPrototypeOf(w, b) : (w.__proto__ = b, t(w, l, "GeneratorFunction")), w.prototype = Object.create(g), w;
8047
8047
  }
@@ -8060,12 +8060,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8060
8060
  function o(n, i) {
8061
8061
  function a(c, u, h, p) {
8062
8062
  try {
8063
- var b = n[c](u), d = b.value;
8064
- return d instanceof t ? i.resolve(d.v).then(function(g) {
8063
+ var b = n[c](u), f = b.value;
8064
+ return f instanceof t ? i.resolve(f.v).then(function(g) {
8065
8065
  a("next", g, h, p);
8066
8066
  }, function(g) {
8067
8067
  a("throw", g, h, p);
8068
- }) : i.resolve(d).then(function(g) {
8068
+ }) : i.resolve(f).then(function(g) {
8069
8069
  b.value = g, h(b);
8070
8070
  }, function(g) {
8071
8071
  return a("throw", g, h, p);
@@ -8079,8 +8079,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8079
8079
  return this;
8080
8080
  })), r(this, "_invoke", function(c, u, h) {
8081
8081
  function p() {
8082
- return new i(function(b, d) {
8083
- a(c, h, b, d);
8082
+ return new i(function(b, f) {
8083
+ a(c, h, b, f);
8084
8084
  });
8085
8085
  }
8086
8086
  return l = l ? l.then(p, p) : p();
@@ -8139,7 +8139,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8139
8139
  var w = typeof y == "function" && y.constructor;
8140
8140
  return !!w && (w === p || (w.displayName || w.name) === "GeneratorFunction");
8141
8141
  }
8142
- var d = { throw: 1, return: 2, break: 3, continue: 3 };
8142
+ var f = { throw: 1, return: 2, break: 3, continue: 3 };
8143
8143
  function g(y) {
8144
8144
  var w, m;
8145
8145
  return function(_) {
@@ -8148,7 +8148,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8148
8148
  }, catch: function() {
8149
8149
  return _.v;
8150
8150
  }, abrupt: function(x, v) {
8151
- return m(_.a, d[x], v);
8151
+ return m(_.a, f[x], v);
8152
8152
  }, delegateYield: function(x, v, E) {
8153
8153
  return w.resultName = v, m(_.d, l(x), E);
8154
8154
  }, finish: function(x) {
@@ -8275,7 +8275,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8275
8275
  }
8276
8276
  return x;
8277
8277
  }
8278
- function d(m) {
8278
+ function f(m) {
8279
8279
  for (var _ = 1; _ < arguments.length; _++) {
8280
8280
  var x = arguments[_] != null ? arguments[_] : {};
8281
8281
  _ % 2 ? b(Object(x), !0).forEach(function(v) {
@@ -8312,9 +8312,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8312
8312
  x.postMessage({ id: null, method: D, params: U }, ae);
8313
8313
  }, I = {}, O = 0, P = Object.entries(_); O < P.length; O++) {
8314
8314
  var j = o(P[O], 2), T = j[0], q = j[1];
8315
- I = d(d({}, I), {}, r({}, T, q({ call: E, notify: S })));
8315
+ I = f(f({}, I), {}, r({}, T, q({ call: E, notify: S })));
8316
8316
  }
8317
- return d({}, I);
8317
+ return f({}, I);
8318
8318
  };
8319
8319
  };
8320
8320
  t.createBroker = w;
@@ -8340,7 +8340,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8340
8340
  }, setInterval: function(u) {
8341
8341
  var h = u.call;
8342
8342
  return function(p) {
8343
- for (var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, d = arguments.length, g = new Array(d > 2 ? d - 2 : 0), y = 2; y < d; y++) g[y - 2] = arguments[y];
8343
+ for (var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, f = arguments.length, g = new Array(f > 2 ? f - 2 : 0), y = 2; y < f; y++) g[y - 2] = arguments[y];
8344
8344
  var w = /* @__PURE__ */ Symbol(), m = n.generateUniqueNumber(i);
8345
8345
  i.set(m, w);
8346
8346
  var _ = function() {
@@ -8355,7 +8355,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8355
8355
  }, setTimeout: function(u) {
8356
8356
  var h = u.call;
8357
8357
  return function(p) {
8358
- for (var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, d = arguments.length, g = new Array(d > 2 ? d - 2 : 0), y = 2; y < d; y++) g[y - 2] = arguments[y];
8358
+ for (var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, f = arguments.length, g = new Array(f > 2 ? f - 2 : 0), y = 2; y < f; y++) g[y - 2] = arguments[y];
8359
8359
  var w = /* @__PURE__ */ Symbol(), m = n.generateUniqueNumber(a);
8360
8360
  return a.set(m, w), h("set", { delay: b, now: performance.timeOrigin + performance.now(), timerId: m, timerType: "timeout" }).then(function() {
8361
8361
  var _ = a.get(m);
@@ -8377,7 +8377,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8377
8377
  var b = null;
8378
8378
  return function() {
8379
8379
  if (b !== null) return b;
8380
- var d = new Blob([p], { type: "application/javascript; charset=utf-8" }), g = URL.createObjectURL(d);
8380
+ var f = new Blob([p], { type: "application/javascript; charset=utf-8" }), g = URL.createObjectURL(f);
8381
8381
  return b = h(g), setTimeout(function() {
8382
8382
  return URL.revokeObjectURL(g);
8383
8383
  }), b;
@@ -8519,13 +8519,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8519
8519
  return v && v.__esModule ? v : { default: v };
8520
8520
  };
8521
8521
  Object.defineProperty(s, "__esModule", { value: !0 });
8522
- var n = o(Tc()), i = Nt(), a = o(Oc()), l = o(pt()), c = r(Ia()), u = o(Ta()), h = o(Qc()), p = o(za()), b = o(Xc()), d = Vt(), g = Zc(), y = o(Xa()), w = r(Jr()), m = globalThis.setImmediate || ((...v) => {
8522
+ var n = o(Tc()), i = Nt(), a = o(Oc()), l = o(pt()), c = r(Ia()), u = o(Ta()), h = o(Qc()), p = o(za()), b = o(Xc()), f = Vt(), g = Zc(), y = o(Xa()), w = r(Jr()), m = globalThis.setImmediate || ((...v) => {
8523
8523
  let E = v.shift();
8524
- (0, d.nextTick)(() => {
8524
+ (0, f.nextTick)(() => {
8525
8525
  E(...v);
8526
8526
  });
8527
8527
  }), _ = { keepalive: 60, reschedulePings: !0, protocolId: "MQTT", protocolVersion: 4, reconnectPeriod: 1e3, connectTimeout: 30 * 1e3, clean: !0, resubscribe: !0, subscribeBatchSize: null, writeCache: !0, timerVariant: "auto" }, x = class _i extends g.TypedEventEmitter {
8528
- static VERSION = d.MQTTJS_VERSION;
8528
+ static VERSION = f.MQTTJS_VERSION;
8529
8529
  connected;
8530
8530
  disconnecting;
8531
8531
  disconnected;
@@ -8610,7 +8610,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8610
8610
  I = null, this.log("work :: done flag is %s", !!U), U && U();
8611
8611
  }
8612
8612
  }, j = () => {
8613
- if (O.length) (0, d.nextTick)(P);
8613
+ if (O.length) (0, f.nextTick)(P);
8614
8614
  else {
8615
8615
  let D = I;
8616
8616
  I = null, D();
@@ -8706,7 +8706,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8706
8706
  let { granted: K } = we;
8707
8707
  for (let N = 0; N < K.length; N += 1) re[N].qos = K[N];
8708
8708
  }
8709
- te ? be(new d.ErrorWithSubackPacket(te.message, we)) : Q(we);
8709
+ te ? be(new f.ErrorWithSubackPacket(te.message, we)) : Q(we);
8710
8710
  } };
8711
8711
  });
8712
8712
  return this.log("subscribe :: call _sendPacket"), this._sendPacket(Z), M;
@@ -8767,7 +8767,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8767
8767
  }), this._deferredReconnect ? this._deferredReconnect() : (this.options.reconnectPeriod === 0 || this.options.manualConnect) && (this.disconnecting = !1);
8768
8768
  }, P = () => {
8769
8769
  this.log("end :: (%s) :: finish :: calling _cleanUp with force %s", this.options.clientId, E), this._cleanUp(E, () => {
8770
- this.log("end :: finish :: calling process.nextTick on closeStores"), (0, d.nextTick)(O);
8770
+ this.log("end :: finish :: calling process.nextTick on closeStores"), (0, f.nextTick)(O);
8771
8771
  }, S);
8772
8772
  };
8773
8773
  return this.disconnecting ? (I(), this) : (this._clearReconnect(), this.disconnecting = !0, !E && Object.keys(this.outgoing).length > 0 ? (this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty", this.options.clientId), this.once("outgoingEmpty", setTimeout.bind(null, P, 10))) : (this.log("end :: (%s) :: immediately calling finish", this.options.clientId), P()), this);
@@ -9050,7 +9050,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
9050
9050
  function wu() {
9051
9051
  if (ki) return yr;
9052
9052
  ki = !0;
9053
- let s = 2147483647, e = 36, t = 1, r = 26, o = 38, n = 700, i = 72, a = 128, l = "-", c = /^xn--/, u = /[^\0-\x7F]/, h = /[\x2E\u3002\uFF0E\uFF61]/g, p = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, b = e - t, d = Math.floor, g = String.fromCharCode;
9053
+ let s = 2147483647, e = 36, t = 1, r = 26, o = 38, n = 700, i = 72, a = 128, l = "-", c = /^xn--/, u = /[^\0-\x7F]/, h = /[\x2E\u3002\uFF0E\uFF61]/g, p = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, b = e - t, f = Math.floor, g = String.fromCharCode;
9054
9054
  function y(P) {
9055
9055
  throw new RangeError(p[P]);
9056
9056
  }
@@ -9082,8 +9082,8 @@ function wu() {
9082
9082
  return P + 22 + 75 * (P < 26) - ((j != 0) << 5);
9083
9083
  }, S = function(P, j, T) {
9084
9084
  let q = 0;
9085
- for (P = T ? d(P / n) : P >> 1, P += d(P / j); P > b * r >> 1; q += e) P = d(P / b);
9086
- return d(q + (b + 1) * P / (P + o));
9085
+ for (P = T ? f(P / n) : P >> 1, P += f(P / j); P > b * r >> 1; q += e) P = f(P / b);
9086
+ return f(q + (b + 1) * P / (P + o));
9087
9087
  }, I = function(P) {
9088
9088
  let j = [], T = P.length, q = 0, D = a, U = i, ae = P.lastIndexOf(l);
9089
9089
  ae < 0 && (ae = 0);
@@ -9093,14 +9093,14 @@ function wu() {
9093
9093
  for (let F = 1, Z = e; ; Z += e) {
9094
9094
  Y >= T && y("invalid-input");
9095
9095
  let M = v(P.charCodeAt(Y++));
9096
- M >= e && y("invalid-input"), M > d((s - q) / F) && y("overflow"), q += M * F;
9096
+ M >= e && y("invalid-input"), M > f((s - q) / F) && y("overflow"), q += M * F;
9097
9097
  let Q = Z <= U ? t : Z >= U + r ? r : Z - U;
9098
9098
  if (M < Q) break;
9099
9099
  let be = e - Q;
9100
- F > d(s / be) && y("overflow"), F *= be;
9100
+ F > f(s / be) && y("overflow"), F *= be;
9101
9101
  }
9102
9102
  let re = j.length + 1;
9103
- U = S(q - V, re, V == 0), d(q / re) > s - D && y("overflow"), D += d(q / re), q %= re, j.splice(q++, 0, D);
9103
+ U = S(q - V, re, V == 0), f(q / re) > s - D && y("overflow"), D += f(q / re), q %= re, j.splice(q++, 0, D);
9104
9104
  }
9105
9105
  return String.fromCodePoint(...j);
9106
9106
  }, O = function(P) {
@@ -9113,14 +9113,14 @@ function wu() {
9113
9113
  let V = s;
9114
9114
  for (let F of P) F >= q && F < V && (V = F);
9115
9115
  let re = Y + 1;
9116
- V - q > d((s - D) / re) && y("overflow"), D += (V - q) * re, q = V;
9116
+ V - q > f((s - D) / re) && y("overflow"), D += (V - q) * re, q = V;
9117
9117
  for (let F of P) if (F < q && ++D > s && y("overflow"), F === q) {
9118
9118
  let Z = D;
9119
9119
  for (let M = e; ; M += e) {
9120
9120
  let Q = M <= U ? t : M >= U + r ? r : M - U;
9121
9121
  if (Z < Q) break;
9122
9122
  let be = Z - Q, te = e - Q;
9123
- j.push(g(E(Q + be % te, 0))), Z = d(be / te);
9123
+ j.push(g(E(Q + be % te, 0))), Z = f(be / te);
9124
9124
  }
9125
9125
  j.push(g(E(Z, 0))), U = S(D, re, Y === ae), D = 0, ++Y;
9126
9126
  }
@@ -9220,7 +9220,7 @@ function Ou() {
9220
9220
  return Object(y) === y ? y : this;
9221
9221
  }
9222
9222
  return l.apply(a, o(c, arguments));
9223
- }, p = t(0, l.length - c.length), b = [], d = 0; d < p; d++) b[d] = "$" + d;
9223
+ }, p = t(0, l.length - c.length), b = [], f = 0; f < p; f++) b[f] = "$" + f;
9224
9224
  if (u = Function("binder", "return function (" + i(b, ",") + "){ return binder.apply(this,arguments); }")(h), l.prototype) {
9225
9225
  var g = function() {
9226
9226
  };
@@ -9267,7 +9267,7 @@ function Kt() {
9267
9267
  return h;
9268
9268
  }
9269
9269
  }
9270
- })() : h, b = Tu()(), d = Cu()(), g = Object.getPrototypeOf || (d ? function(Y) {
9270
+ })() : h, b = Tu()(), f = Cu()(), g = Object.getPrototypeOf || (f ? function(Y) {
9271
9271
  return Y.__proto__;
9272
9272
  } : null), y = {}, w = typeof Uint8Array > "u" || !g ? s : g(Uint8Array), m = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? s : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? s : ArrayBuffer, "%ArrayIteratorPrototype%": b && g ? g([][Symbol.iterator]()) : s, "%AsyncFromSyncIteratorPrototype%": s, "%AsyncFunction%": y, "%AsyncGenerator%": y, "%AsyncGeneratorFunction%": y, "%AsyncIteratorPrototype%": y, "%Atomics%": typeof Atomics > "u" ? s : Atomics, "%BigInt%": typeof BigInt > "u" ? s : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? s : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? s : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? s : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": e, "%eval%": eval, "%EvalError%": t, "%Float32Array%": typeof Float32Array > "u" ? s : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? s : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? s : FinalizationRegistry, "%Function%": l, "%GeneratorFunction%": y, "%Int8Array%": typeof Int8Array > "u" ? s : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? s : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? s : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": b && g ? g(g([][Symbol.iterator]())) : s, "%JSON%": typeof JSON == "object" ? JSON : s, "%Map%": typeof Map > "u" ? s : Map, "%MapIteratorPrototype%": typeof Map > "u" || !b || !g ? s : g((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? s : Promise, "%Proxy%": typeof Proxy > "u" ? s : Proxy, "%RangeError%": r, "%ReferenceError%": o, "%Reflect%": typeof Reflect > "u" ? s : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? s : Set, "%SetIteratorPrototype%": typeof Set > "u" || !b || !g ? s : g((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? s : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": b && g ? g(""[Symbol.iterator]()) : s, "%Symbol%": b ? Symbol : s, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": w, "%TypeError%": i, "%Uint8Array%": typeof Uint8Array > "u" ? s : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? s : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? s : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? s : Uint32Array, "%URIError%": a, "%WeakMap%": typeof WeakMap > "u" ? s : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? s : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? s : WeakSet };
9273
9273
  if (g) try {
@@ -9565,21 +9565,21 @@ function Gu() {
9565
9565
  if (e(n), e(i), n === i || (n = o.resolve(n), i = o.resolve(i), n === i)) return "";
9566
9566
  for (var a = 1; a < n.length && n.charCodeAt(a) === 47; ++a) ;
9567
9567
  for (var l = n.length, c = l - a, u = 1; u < i.length && i.charCodeAt(u) === 47; ++u) ;
9568
- for (var h = i.length, p = h - u, b = c < p ? c : p, d = -1, g = 0; g <= b; ++g) {
9568
+ for (var h = i.length, p = h - u, b = c < p ? c : p, f = -1, g = 0; g <= b; ++g) {
9569
9569
  if (g === b) {
9570
9570
  if (p > b) {
9571
9571
  if (i.charCodeAt(u + g) === 47) return i.slice(u + g + 1);
9572
9572
  if (g === 0) return i.slice(u + g);
9573
- } else c > b && (n.charCodeAt(a + g) === 47 ? d = g : g === 0 && (d = 0));
9573
+ } else c > b && (n.charCodeAt(a + g) === 47 ? f = g : g === 0 && (f = 0));
9574
9574
  break;
9575
9575
  }
9576
9576
  var y = n.charCodeAt(a + g), w = i.charCodeAt(u + g);
9577
9577
  if (y !== w) break;
9578
- y === 47 && (d = g);
9578
+ y === 47 && (f = g);
9579
9579
  }
9580
9580
  var m = "";
9581
- for (g = a + d + 1; g <= l; ++g) (g === l || n.charCodeAt(g) === 47) && (m.length === 0 ? m += ".." : m += "/..");
9582
- return m.length > 0 ? m + i.slice(u + d) : (u += d, i.charCodeAt(u) === 47 && ++u, i.slice(u));
9581
+ for (g = a + f + 1; g <= l; ++g) (g === l || n.charCodeAt(g) === 47) && (m.length === 0 ? m += ".." : m += "/..");
9582
+ return m.length > 0 ? m + i.slice(u + f) : (u += f, i.charCodeAt(u) === 47 && ++u, i.slice(u));
9583
9583
  }, _makeLong: function(n) {
9584
9584
  return n;
9585
9585
  }, dirname: function(n) {
@@ -9640,15 +9640,15 @@ function Gu() {
9640
9640
  if (n.length === 0) return i;
9641
9641
  var a = n.charCodeAt(0), l = a === 47, c;
9642
9642
  l ? (i.root = "/", c = 1) : c = 0;
9643
- for (var u = -1, h = 0, p = -1, b = !0, d = n.length - 1, g = 0; d >= c; --d) {
9644
- if (a = n.charCodeAt(d), a === 47) {
9643
+ for (var u = -1, h = 0, p = -1, b = !0, f = n.length - 1, g = 0; f >= c; --f) {
9644
+ if (a = n.charCodeAt(f), a === 47) {
9645
9645
  if (!b) {
9646
- h = d + 1;
9646
+ h = f + 1;
9647
9647
  break;
9648
9648
  }
9649
9649
  continue;
9650
9650
  }
9651
- p === -1 && (b = !1, p = d + 1), a === 46 ? u === -1 ? u = d : g !== 1 && (g = 1) : u !== -1 && (g = -1);
9651
+ p === -1 && (b = !1, p = f + 1), a === 46 ? u === -1 ? u = f : g !== 1 && (g = 1) : u !== -1 && (g = -1);
9652
9652
  }
9653
9653
  return u === -1 || p === -1 || g === 0 || g === 1 && u === p - 1 && u === h + 1 ? p !== -1 && (h === 0 && l ? i.base = i.name = n.slice(1, p) : i.base = i.name = n.slice(h, p)) : (h === 0 && l ? (i.name = n.slice(1, u), i.base = n.slice(1, p)) : (i.name = n.slice(h, u), i.base = n.slice(h, p)), i.ext = n.slice(u, p)), h > 0 ? i.dir = n.slice(0, h - 1) : l && (i.dir = "/"), i;
9654
9654
  }, sep: "/", delimiter: ":", win32: null, posix: null };
@@ -9661,7 +9661,7 @@ Wt(il, { URL: () => pl, Url: () => cl, default: () => We, fileURLToPath: () => s
9661
9661
  function Ju() {
9662
9662
  if (eo) return Rr;
9663
9663
  eo = !0;
9664
- var s = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = s && e && typeof e.get == "function" ? e.get : null, r = s && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = o && n && typeof n.get == "function" ? n.get : null, a = o && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, h = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, b = p ? WeakRef.prototype.deref : null, d = Boolean.prototype.valueOf, g = Object.prototype.toString, y = Function.prototype.toString, w = String.prototype.match, m = String.prototype.slice, _ = String.prototype.replace, x = String.prototype.toUpperCase, v = String.prototype.toLowerCase, E = RegExp.prototype.test, S = Array.prototype.concat, I = Array.prototype.join, O = Array.prototype.slice, P = Math.floor, j = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === D || !0) ? Symbol.toStringTag : null, ae = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(z) {
9664
+ var s = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = s && e && typeof e.get == "function" ? e.get : null, r = s && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = o && n && typeof n.get == "function" ? n.get : null, a = o && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, h = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, b = p ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, g = Object.prototype.toString, y = Function.prototype.toString, w = String.prototype.match, m = String.prototype.slice, _ = String.prototype.replace, x = String.prototype.toUpperCase, v = String.prototype.toLowerCase, E = RegExp.prototype.test, S = Array.prototype.concat, I = Array.prototype.join, O = Array.prototype.slice, P = Math.floor, j = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === D || !0) ? Symbol.toStringTag : null, ae = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(z) {
9665
9665
  return z.__proto__;
9666
9666
  } : null);
9667
9667
  function V(z, ie) {
@@ -9717,7 +9717,7 @@ function Ju() {
9717
9717
  }
9718
9718
  if (G(ie)) {
9719
9719
  var Gt = D ? _.call(String(ie), /^(Symbol\(.*\))_[^)]*$/, "$1") : q.call(ie);
9720
- return typeof ie == "object" && !D ? f(Gt) : Gt;
9720
+ return typeof ie == "object" && !D ? d(Gt) : Gt;
9721
9721
  }
9722
9722
  if (ve(ie)) {
9723
9723
  for (var C = "<" + v.call(String(ie.nodeName)), L = ie.attributes || [], _e = 0; _e < L.length; _e++) C += " " + L[_e].name + "=" + M(Q(L[_e].value), "double", Oe);
@@ -9751,10 +9751,10 @@ function Ju() {
9751
9751
  if (fe(ie)) return k("WeakMap");
9752
9752
  if (me(ie)) return k("WeakSet");
9753
9753
  if (ye(ie)) return k("WeakRef");
9754
- if (ne(ie)) return f(Je(Number(ie)));
9755
- if (J(ie)) return f(Je(j.call(ie)));
9756
- if (W(ie)) return f(d.call(ie));
9757
- if (N(ie)) return f(Je(String(ie)));
9754
+ if (ne(ie)) return d(Je(Number(ie)));
9755
+ if (J(ie)) return d(Je(j.call(ie)));
9756
+ if (W(ie)) return d(f.call(ie));
9757
+ if (N(ie)) return d(Je(String(ie)));
9758
9758
  if (typeof window < "u" && ie === window) return "{ [object Window] }";
9759
9759
  if (typeof globalThis < "u" && ie === globalThis || typeof Lr < "u" && ie === Lr) return "{ [object globalThis] }";
9760
9760
  if (!te(ie) && !we(ie)) {
@@ -9907,7 +9907,7 @@ function Ju() {
9907
9907
  var ie = z.charCodeAt(0), Ee = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[ie];
9908
9908
  return Ee ? "\\" + Ee : "\\x" + (ie < 16 ? "0" : "") + x.call(ie.toString(16));
9909
9909
  }
9910
- function f(z) {
9910
+ function d(z) {
9911
9911
  return "Object(" + z + ")";
9912
9912
  }
9913
9913
  function k(z) {
@@ -9961,7 +9961,7 @@ function Qu() {
9961
9961
  }, b = function(y, w) {
9962
9962
  var m = p(y, w);
9963
9963
  return m && m.value;
9964
- }, d = function(y, w, m) {
9964
+ }, f = function(y, w, m) {
9965
9965
  var _ = p(y, w);
9966
9966
  _ ? _.value = m : y.next = { key: w, next: y.next, value: m };
9967
9967
  }, g = function(y, w) {
@@ -9984,7 +9984,7 @@ function Qu() {
9984
9984
  } else if (m) return g(m, x);
9985
9985
  return !1;
9986
9986
  }, set: function(x, v) {
9987
- o && x && (typeof x == "object" || typeof x == "function") ? (y || (y = new o()), a(y, x, v)) : n ? (w || (w = new n()), u(w, x, v)) : (m || (m = { key: {}, next: null }), d(m, x, v));
9987
+ o && x && (typeof x == "object" || typeof x == "function") ? (y || (y = new o()), a(y, x, v)) : n ? (w || (w = new n()), u(w, x, v)) : (m || (m = { key: {}, next: null }), f(m, x, v));
9988
9988
  } };
9989
9989
  return _;
9990
9990
  }, Nr;
@@ -10087,7 +10087,7 @@ function ol() {
10087
10087
  return Object.prototype.toString.call(y) === "[object RegExp]";
10088
10088
  }, b = function(y) {
10089
10089
  return !y || typeof y != "object" ? !1 : !!(y.constructor && y.constructor.isBuffer && y.constructor.isBuffer(y));
10090
- }, d = function(y, w) {
10090
+ }, f = function(y, w) {
10091
10091
  return [].concat(y, w);
10092
10092
  }, g = function(y, w) {
10093
10093
  if (t(y)) {
@@ -10096,7 +10096,7 @@ function ol() {
10096
10096
  }
10097
10097
  return w(y);
10098
10098
  };
10099
- return Ur = { arrayToObject: n, assign: a, combine: d, compact: h, decode: l, encode: u, isBuffer: b, isRegExp: p, maybeMap: g, merge: i }, Ur;
10099
+ return Ur = { arrayToObject: n, assign: a, combine: f, compact: h, decode: l, encode: u, isBuffer: b, isRegExp: p, maybeMap: g, merge: i }, Ur;
10100
10100
  }
10101
10101
  function Xu() {
10102
10102
  if (io) return Br;
@@ -10156,7 +10156,7 @@ function Xu() {
10156
10156
  }
10157
10157
  }
10158
10158
  return be;
10159
- }, d = function(g) {
10159
+ }, f = function(g) {
10160
10160
  if (!g) return u;
10161
10161
  if (typeof g.allowEmptyArrays < "u" && typeof g.allowEmptyArrays != "boolean") throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
10162
10162
  if (typeof g.encodeDotInKeys < "u" && typeof g.encodeDotInKeys != "boolean") throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
@@ -10176,7 +10176,7 @@ function Xu() {
10176
10176
  return { addQueryPrefix: typeof g.addQueryPrefix == "boolean" ? g.addQueryPrefix : u.addQueryPrefix, allowDots: v, allowEmptyArrays: typeof g.allowEmptyArrays == "boolean" ? !!g.allowEmptyArrays : u.allowEmptyArrays, arrayFormat: x, charset: y, charsetSentinel: typeof g.charsetSentinel == "boolean" ? g.charsetSentinel : u.charsetSentinel, commaRoundTrip: g.commaRoundTrip, delimiter: typeof g.delimiter > "u" ? u.delimiter : g.delimiter, encode: typeof g.encode == "boolean" ? g.encode : u.encode, encodeDotInKeys: typeof g.encodeDotInKeys == "boolean" ? g.encodeDotInKeys : u.encodeDotInKeys, encoder: typeof g.encoder == "function" ? g.encoder : u.encoder, encodeValuesOnly: typeof g.encodeValuesOnly == "boolean" ? g.encodeValuesOnly : u.encodeValuesOnly, filter: _, format: w, formatter: m, serializeDate: typeof g.serializeDate == "function" ? g.serializeDate : u.serializeDate, skipNulls: typeof g.skipNulls == "boolean" ? g.skipNulls : u.skipNulls, sort: typeof g.sort == "function" ? g.sort : null, strictNullHandling: typeof g.strictNullHandling == "boolean" ? g.strictNullHandling : u.strictNullHandling };
10177
10177
  };
10178
10178
  return Br = function(g, y) {
10179
- var w = g, m = d(y), _, x;
10179
+ var w = g, m = f(y), _, x;
10180
10180
  typeof m.filter == "function" ? (x = m.filter, w = x("", w)) : n(m.filter) && (x = m.filter, _ = x);
10181
10181
  var v = [];
10182
10182
  if (typeof w != "object" || w === null) return "";
@@ -10194,13 +10194,13 @@ function Zu() {
10194
10194
  if (oo) return Dr;
10195
10195
  oo = !0;
10196
10196
  var s = ol(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, decoder: s.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, o = function(p) {
10197
- return p.replace(/&#(\d+);/g, function(b, d) {
10198
- return String.fromCharCode(parseInt(d, 10));
10197
+ return p.replace(/&#(\d+);/g, function(b, f) {
10198
+ return String.fromCharCode(parseInt(f, 10));
10199
10199
  });
10200
10200
  }, n = function(p, b) {
10201
10201
  return p && typeof p == "string" && b.comma && p.indexOf(",") > -1 ? p.split(",") : p;
10202
10202
  }, i = "utf8=%26%2310003%3B", a = "utf8=%E2%9C%93", l = function(p, b) {
10203
- var d = { __proto__: null }, g = b.ignoreQueryPrefix ? p.replace(/^\?/, "") : p;
10203
+ var f = { __proto__: null }, g = b.ignoreQueryPrefix ? p.replace(/^\?/, "") : p;
10204
10204
  g = g.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
10205
10205
  var y = b.parameterLimit === 1 / 0 ? void 0 : b.parameterLimit, w = g.split(b.delimiter, y), m = -1, _, x = b.charset;
10206
10206
  if (b.charsetSentinel) for (_ = 0; _ < w.length; ++_) w[_].indexOf("utf8=") === 0 && (w[_] === a ? x = "utf-8" : w[_] === i && (x = "iso-8859-1"), m = _, _ = w.length);
@@ -10209,38 +10209,38 @@ function Zu() {
10209
10209
  S === -1 ? (I = b.decoder(v, r.decoder, x, "key"), O = b.strictNullHandling ? null : "") : (I = b.decoder(v.slice(0, S), r.decoder, x, "key"), O = s.maybeMap(n(v.slice(S + 1), b), function(j) {
10210
10210
  return b.decoder(j, r.decoder, x, "value");
10211
10211
  })), O && b.interpretNumericEntities && x === "iso-8859-1" && (O = o(O)), v.indexOf("[]=") > -1 && (O = t(O) ? [O] : O);
10212
- var P = e.call(d, I);
10213
- P && b.duplicates === "combine" ? d[I] = s.combine(d[I], O) : (!P || b.duplicates === "last") && (d[I] = O);
10212
+ var P = e.call(f, I);
10213
+ P && b.duplicates === "combine" ? f[I] = s.combine(f[I], O) : (!P || b.duplicates === "last") && (f[I] = O);
10214
10214
  }
10215
- return d;
10216
- }, c = function(p, b, d, g) {
10217
- for (var y = g ? b : n(b, d), w = p.length - 1; w >= 0; --w) {
10215
+ return f;
10216
+ }, c = function(p, b, f, g) {
10217
+ for (var y = g ? b : n(b, f), w = p.length - 1; w >= 0; --w) {
10218
10218
  var m, _ = p[w];
10219
- if (_ === "[]" && d.parseArrays) m = d.allowEmptyArrays && (y === "" || d.strictNullHandling && y === null) ? [] : [].concat(y);
10219
+ if (_ === "[]" && f.parseArrays) m = f.allowEmptyArrays && (y === "" || f.strictNullHandling && y === null) ? [] : [].concat(y);
10220
10220
  else {
10221
- m = d.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
10222
- var x = _.charAt(0) === "[" && _.charAt(_.length - 1) === "]" ? _.slice(1, -1) : _, v = d.decodeDotInKeys ? x.replace(/%2E/g, ".") : x, E = parseInt(v, 10);
10223
- !d.parseArrays && v === "" ? m = { 0: y } : !isNaN(E) && _ !== v && String(E) === v && E >= 0 && d.parseArrays && E <= d.arrayLimit ? (m = [], m[E] = y) : v !== "__proto__" && (m[v] = y);
10221
+ m = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
10222
+ var x = _.charAt(0) === "[" && _.charAt(_.length - 1) === "]" ? _.slice(1, -1) : _, v = f.decodeDotInKeys ? x.replace(/%2E/g, ".") : x, E = parseInt(v, 10);
10223
+ !f.parseArrays && v === "" ? m = { 0: y } : !isNaN(E) && _ !== v && String(E) === v && E >= 0 && f.parseArrays && E <= f.arrayLimit ? (m = [], m[E] = y) : v !== "__proto__" && (m[v] = y);
10224
10224
  }
10225
10225
  y = m;
10226
10226
  }
10227
10227
  return y;
10228
- }, u = function(p, b, d, g) {
10228
+ }, u = function(p, b, f, g) {
10229
10229
  if (p) {
10230
- var y = d.allowDots ? p.replace(/\.([^.[]+)/g, "[$1]") : p, w = /(\[[^[\]]*])/, m = /(\[[^[\]]*])/g, _ = d.depth > 0 && w.exec(y), x = _ ? y.slice(0, _.index) : y, v = [];
10230
+ var y = f.allowDots ? p.replace(/\.([^.[]+)/g, "[$1]") : p, w = /(\[[^[\]]*])/, m = /(\[[^[\]]*])/g, _ = f.depth > 0 && w.exec(y), x = _ ? y.slice(0, _.index) : y, v = [];
10231
10231
  if (x) {
10232
- if (!d.plainObjects && e.call(Object.prototype, x) && !d.allowPrototypes) return;
10232
+ if (!f.plainObjects && e.call(Object.prototype, x) && !f.allowPrototypes) return;
10233
10233
  v.push(x);
10234
10234
  }
10235
- for (var E = 0; d.depth > 0 && (_ = m.exec(y)) !== null && E < d.depth; ) {
10236
- if (E += 1, !d.plainObjects && e.call(Object.prototype, _[1].slice(1, -1)) && !d.allowPrototypes) return;
10235
+ for (var E = 0; f.depth > 0 && (_ = m.exec(y)) !== null && E < f.depth; ) {
10236
+ if (E += 1, !f.plainObjects && e.call(Object.prototype, _[1].slice(1, -1)) && !f.allowPrototypes) return;
10237
10237
  v.push(_[1]);
10238
10238
  }
10239
10239
  if (_) {
10240
- if (d.strictDepth === !0) throw new RangeError("Input depth exceeded depth option of " + d.depth + " and strictDepth is true");
10240
+ if (f.strictDepth === !0) throw new RangeError("Input depth exceeded depth option of " + f.depth + " and strictDepth is true");
10241
10241
  v.push("[" + y.slice(_.index) + "]");
10242
10242
  }
10243
- return c(v, b, d, g);
10243
+ return c(v, b, f, g);
10244
10244
  }
10245
10245
  }, h = function(p) {
10246
10246
  if (!p) return r;
@@ -10248,19 +10248,19 @@ function Zu() {
10248
10248
  if (typeof p.decodeDotInKeys < "u" && typeof p.decodeDotInKeys != "boolean") throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
10249
10249
  if (p.decoder !== null && typeof p.decoder < "u" && typeof p.decoder != "function") throw new TypeError("Decoder has to be a function.");
10250
10250
  if (typeof p.charset < "u" && p.charset !== "utf-8" && p.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
10251
- var b = typeof p.charset > "u" ? r.charset : p.charset, d = typeof p.duplicates > "u" ? r.duplicates : p.duplicates;
10252
- if (d !== "combine" && d !== "first" && d !== "last") throw new TypeError("The duplicates option must be either combine, first, or last");
10251
+ var b = typeof p.charset > "u" ? r.charset : p.charset, f = typeof p.duplicates > "u" ? r.duplicates : p.duplicates;
10252
+ if (f !== "combine" && f !== "first" && f !== "last") throw new TypeError("The duplicates option must be either combine, first, or last");
10253
10253
  var g = typeof p.allowDots > "u" ? p.decodeDotInKeys === !0 ? !0 : r.allowDots : !!p.allowDots;
10254
- return { allowDots: g, allowEmptyArrays: typeof p.allowEmptyArrays == "boolean" ? !!p.allowEmptyArrays : r.allowEmptyArrays, allowPrototypes: typeof p.allowPrototypes == "boolean" ? p.allowPrototypes : r.allowPrototypes, allowSparse: typeof p.allowSparse == "boolean" ? p.allowSparse : r.allowSparse, arrayLimit: typeof p.arrayLimit == "number" ? p.arrayLimit : r.arrayLimit, charset: b, charsetSentinel: typeof p.charsetSentinel == "boolean" ? p.charsetSentinel : r.charsetSentinel, comma: typeof p.comma == "boolean" ? p.comma : r.comma, decodeDotInKeys: typeof p.decodeDotInKeys == "boolean" ? p.decodeDotInKeys : r.decodeDotInKeys, decoder: typeof p.decoder == "function" ? p.decoder : r.decoder, delimiter: typeof p.delimiter == "string" || s.isRegExp(p.delimiter) ? p.delimiter : r.delimiter, depth: typeof p.depth == "number" || p.depth === !1 ? +p.depth : r.depth, duplicates: d, ignoreQueryPrefix: p.ignoreQueryPrefix === !0, interpretNumericEntities: typeof p.interpretNumericEntities == "boolean" ? p.interpretNumericEntities : r.interpretNumericEntities, parameterLimit: typeof p.parameterLimit == "number" ? p.parameterLimit : r.parameterLimit, parseArrays: p.parseArrays !== !1, plainObjects: typeof p.plainObjects == "boolean" ? p.plainObjects : r.plainObjects, strictDepth: typeof p.strictDepth == "boolean" ? !!p.strictDepth : r.strictDepth, strictNullHandling: typeof p.strictNullHandling == "boolean" ? p.strictNullHandling : r.strictNullHandling };
10254
+ return { allowDots: g, allowEmptyArrays: typeof p.allowEmptyArrays == "boolean" ? !!p.allowEmptyArrays : r.allowEmptyArrays, allowPrototypes: typeof p.allowPrototypes == "boolean" ? p.allowPrototypes : r.allowPrototypes, allowSparse: typeof p.allowSparse == "boolean" ? p.allowSparse : r.allowSparse, arrayLimit: typeof p.arrayLimit == "number" ? p.arrayLimit : r.arrayLimit, charset: b, charsetSentinel: typeof p.charsetSentinel == "boolean" ? p.charsetSentinel : r.charsetSentinel, comma: typeof p.comma == "boolean" ? p.comma : r.comma, decodeDotInKeys: typeof p.decodeDotInKeys == "boolean" ? p.decodeDotInKeys : r.decodeDotInKeys, decoder: typeof p.decoder == "function" ? p.decoder : r.decoder, delimiter: typeof p.delimiter == "string" || s.isRegExp(p.delimiter) ? p.delimiter : r.delimiter, depth: typeof p.depth == "number" || p.depth === !1 ? +p.depth : r.depth, duplicates: f, ignoreQueryPrefix: p.ignoreQueryPrefix === !0, interpretNumericEntities: typeof p.interpretNumericEntities == "boolean" ? p.interpretNumericEntities : r.interpretNumericEntities, parameterLimit: typeof p.parameterLimit == "number" ? p.parameterLimit : r.parameterLimit, parseArrays: p.parseArrays !== !1, plainObjects: typeof p.plainObjects == "boolean" ? p.plainObjects : r.plainObjects, strictDepth: typeof p.strictDepth == "boolean" ? !!p.strictDepth : r.strictDepth, strictNullHandling: typeof p.strictNullHandling == "boolean" ? p.strictNullHandling : r.strictNullHandling };
10255
10255
  };
10256
10256
  return Dr = function(p, b) {
10257
- var d = h(b);
10258
- if (p === "" || p === null || typeof p > "u") return d.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
10259
- for (var g = typeof p == "string" ? l(p, d) : p, y = d.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, w = Object.keys(g), m = 0; m < w.length; ++m) {
10260
- var _ = w[m], x = u(_, g[_], d, typeof p == "string");
10261
- y = s.merge(y, x, d);
10257
+ var f = h(b);
10258
+ if (p === "" || p === null || typeof p > "u") return f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
10259
+ for (var g = typeof p == "string" ? l(p, f) : p, y = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, w = Object.keys(g), m = 0; m < w.length; ++m) {
10260
+ var _ = w[m], x = u(_, g[_], f, typeof p == "string");
10261
+ y = s.merge(y, x, f);
10262
10262
  }
10263
- return d.allowSparse === !0 ? y : s.compact(y);
10263
+ return f.allowSparse === !0 ? y : s.compact(y);
10264
10264
  }, Dr;
10265
10265
  }
10266
10266
  function eh() {
@@ -10277,7 +10277,7 @@ function th() {
10277
10277
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
10278
10278
  }
10279
10279
  var t = /^([a-z0-9.+-]+:)/i, r = /:[0-9]*$/, o = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, n = ["<", ">", '"', "`", " ", "\r", `
10280
- `, " "], i = ["{", "}", "|", "\\", "^", "`"].concat(n), a = ["'"].concat(i), l = ["%", "/", "?", ";", "#"].concat(a), c = ["/", "?", "#"], u = 255, h = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, b = { javascript: !0, "javascript:": !0 }, d = { javascript: !0, "javascript:": !0 }, g = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y = eh();
10280
+ `, " "], i = ["{", "}", "|", "\\", "^", "`"].concat(n), a = ["'"].concat(i), l = ["%", "/", "?", ";", "#"].concat(a), c = ["/", "?", "#"], u = 255, h = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, b = { javascript: !0, "javascript:": !0 }, f = { javascript: !0, "javascript:": !0 }, g = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y = eh();
10281
10281
  function w(v, E, S) {
10282
10282
  if (v && typeof v == "object" && v instanceof e) return v;
10283
10283
  var I = new e();
@@ -10300,9 +10300,9 @@ function th() {
10300
10300
  }
10301
10301
  if (S || D || T.match(/^\/\/[^@/]+@[^@/]+/)) {
10302
10302
  var ae = T.substr(0, 2) === "//";
10303
- ae && !(D && d[D]) && (T = T.substr(2), this.slashes = !0);
10303
+ ae && !(D && f[D]) && (T = T.substr(2), this.slashes = !0);
10304
10304
  }
10305
- if (!d[D] && (ae || D && !g[D])) {
10305
+ if (!f[D] && (ae || D && !g[D])) {
10306
10306
  for (var Y = -1, V = 0; V < c.length; V++) {
10307
10307
  var re = T.indexOf(c[V]);
10308
10308
  re !== -1 && (Y === -1 || re < Y) && (Y = re);
@@ -10393,7 +10393,7 @@ function th() {
10393
10393
  }
10394
10394
  return S.href = S.format(), S;
10395
10395
  }
10396
- if (S.protocol = v.protocol, !v.host && !d[v.protocol]) {
10396
+ if (S.protocol = v.protocol, !v.host && !f[v.protocol]) {
10397
10397
  for (var be = (v.pathname || "").split("/"); be.length && !(v.host = be.shift()); ) ;
10398
10398
  v.host || (v.host = ""), v.hostname || (v.hostname = ""), be[0] !== "" && be.unshift(""), be.length < 2 && be.unshift(""), S.pathname = be.join("/");
10399
10399
  } else S.pathname = v.pathname;
@@ -10548,7 +10548,7 @@ var ll, Rr, eo, Lr, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, Fr, so, kt, ao, We,
10548
10548
  let v;
10549
10549
  return _.createWebsocket ? v = _.createWebsocket(m, [x], _) : v = new r.default(m, [x], _.wsOptions), v;
10550
10550
  }
10551
- function d(w, m) {
10551
+ function f(w, m) {
10552
10552
  let _ = m.protocolId === "MQIsdp" && m.protocolVersion === 3 ? "mqttv3.1" : "mqtt", x = u(m, w), v;
10553
10553
  return m.createWebsocket ? v = m.createWebsocket(x, [_], m) : v = new WebSocket(x, [_]), v.binaryType = "arraybuffer", v;
10554
10554
  }
@@ -10564,7 +10564,7 @@ var ll, Rr, eo, Lr, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, Fr, so, kt, ao, We,
10564
10564
  s.streamBuilder = g;
10565
10565
  var y = (w, m) => {
10566
10566
  l("browserStreamBuilder");
10567
- let _, x = p(m).browserBufferSize || 1024 * 512, v = m.browserBufferTimeout || 1e3, E = !m.objectMode, S = d(w, m), I = P(m, U, ae);
10567
+ let _, x = p(m).browserBufferSize || 1024 * 512, v = m.browserBufferTimeout || 1e3, E = !m.objectMode, S = f(w, m), I = P(m, U, ae);
10568
10568
  m.objectMode || (I._writev = a.writev.bind(I)), I.on("close", () => {
10569
10569
  S.close();
10570
10570
  });
@@ -10644,8 +10644,8 @@ var Cl, sh = Ye(() => {
10644
10644
  function a(c) {
10645
10645
  let { host: u, port: h, socksProxy: p, ...b } = c;
10646
10646
  if (p !== void 0) {
10647
- let d = (0, n.default)(u, h, p, { timeout: c.socksTimeout });
10648
- return (0, t.connect)({ ...b, socket: d });
10647
+ let f = (0, n.default)(u, h, p, { timeout: c.socksTimeout });
10648
+ return (0, t.connect)({ ...b, socket: f });
10649
10649
  }
10650
10650
  return (0, t.connect)(c);
10651
10651
  }
@@ -10666,7 +10666,7 @@ var Cl, sh = Ye(() => {
10666
10666
  var e = (Fe(), Me(De)), t = Nt(), r = So(), o, n, i;
10667
10667
  function a() {
10668
10668
  let p = new t.Transform();
10669
- return p._write = (b, d, g) => {
10669
+ return p._write = (b, f, g) => {
10670
10670
  o.send({ data: b.buffer, success() {
10671
10671
  g();
10672
10672
  }, fail(y) {
@@ -10682,8 +10682,8 @@ var Cl, sh = Ye(() => {
10682
10682
  p.hostname || (p.hostname = "localhost"), p.path || (p.path = "/"), p.wsOptions || (p.wsOptions = {});
10683
10683
  }
10684
10684
  function c(p, b) {
10685
- let d = p.protocol === "wxs" ? "wss" : "ws", g = `${d}://${p.hostname}${p.path}`;
10686
- return p.port && p.port !== 80 && p.port !== 443 && (g = `${d}://${p.hostname}:${p.port}${p.path}`), typeof p.transformWsUrl == "function" && (g = p.transformWsUrl(g, p, b)), g;
10685
+ let f = p.protocol === "wxs" ? "wss" : "ws", g = `${f}://${p.hostname}${p.path}`;
10686
+ return p.port && p.port !== 80 && p.port !== 443 && (g = `${f}://${p.hostname}:${p.port}${p.path}`), typeof p.transformWsUrl == "function" && (g = p.transformWsUrl(g, p, b)), g;
10687
10687
  }
10688
10688
  function u() {
10689
10689
  o.onOpen(() => {
@@ -10700,10 +10700,10 @@ var Cl, sh = Ye(() => {
10700
10700
  }
10701
10701
  var h = (p, b) => {
10702
10702
  if (b.hostname = b.hostname || b.host, !b.hostname) throw new Error("Could not determine host. Specify host manually.");
10703
- let d = b.protocolId === "MQIsdp" && b.protocolVersion === 3 ? "mqttv3.1" : "mqtt";
10703
+ let f = b.protocolId === "MQIsdp" && b.protocolVersion === 3 ? "mqttv3.1" : "mqtt";
10704
10704
  l(b);
10705
10705
  let g = c(b, p);
10706
- o = wx.connectSocket({ url: g, protocols: [d] }), n = a(), i = new r.BufferedDuplex(b, n, o), i._destroy = (w, m) => {
10706
+ o = wx.connectSocket({ url: g, protocols: [f] }), n = a(), i = new r.BufferedDuplex(b, n, o), i._destroy = (w, m) => {
10707
10707
  o.close({ success() {
10708
10708
  m && m(w);
10709
10709
  } });
@@ -10721,41 +10721,41 @@ var Cl, sh = Ye(() => {
10721
10721
  var e = (Fe(), Me(De)), t = Nt(), r = So(), o, n, i, a = !1;
10722
10722
  function l() {
10723
10723
  let b = new t.Transform();
10724
- return b._write = (d, g, y) => {
10725
- o.sendSocketMessage({ data: d.buffer, success() {
10724
+ return b._write = (f, g, y) => {
10725
+ o.sendSocketMessage({ data: f.buffer, success() {
10726
10726
  y();
10727
10727
  }, fail() {
10728
10728
  y(new Error());
10729
10729
  } });
10730
- }, b._flush = (d) => {
10730
+ }, b._flush = (f) => {
10731
10731
  o.closeSocket({ success() {
10732
- d();
10732
+ f();
10733
10733
  } });
10734
10734
  }, b;
10735
10735
  }
10736
10736
  function c(b) {
10737
10737
  b.hostname || (b.hostname = "localhost"), b.path || (b.path = "/"), b.wsOptions || (b.wsOptions = {});
10738
10738
  }
10739
- function u(b, d) {
10739
+ function u(b, f) {
10740
10740
  let g = b.protocol === "alis" ? "wss" : "ws", y = `${g}://${b.hostname}${b.path}`;
10741
- return b.port && b.port !== 80 && b.port !== 443 && (y = `${g}://${b.hostname}:${b.port}${b.path}`), typeof b.transformWsUrl == "function" && (y = b.transformWsUrl(y, b, d)), y;
10741
+ return b.port && b.port !== 80 && b.port !== 443 && (y = `${g}://${b.hostname}:${b.port}${b.path}`), typeof b.transformWsUrl == "function" && (y = b.transformWsUrl(y, b, f)), y;
10742
10742
  }
10743
10743
  function h() {
10744
10744
  a || (a = !0, o.onSocketOpen(() => {
10745
10745
  i.socketReady();
10746
10746
  }), o.onSocketMessage((b) => {
10747
10747
  if (typeof b.data == "string") {
10748
- let d = e.Buffer.from(b.data, "base64");
10749
- n.push(d);
10748
+ let f = e.Buffer.from(b.data, "base64");
10749
+ n.push(f);
10750
10750
  } else {
10751
- let d = new FileReader();
10752
- d.addEventListener("load", () => {
10753
- if (d.result instanceof ArrayBuffer) {
10754
- n.push(e.Buffer.from(d.result));
10751
+ let f = new FileReader();
10752
+ f.addEventListener("load", () => {
10753
+ if (f.result instanceof ArrayBuffer) {
10754
+ n.push(e.Buffer.from(f.result));
10755
10755
  return;
10756
10756
  }
10757
- n.push(e.Buffer.from(d.result, "utf-8"));
10758
- }), d.readAsArrayBuffer(b.data);
10757
+ n.push(e.Buffer.from(f.result, "utf-8"));
10758
+ }), f.readAsArrayBuffer(b.data);
10759
10759
  }
10760
10760
  }), o.onSocketClose(() => {
10761
10761
  i.end(), i.destroy();
@@ -10763,12 +10763,12 @@ var Cl, sh = Ye(() => {
10763
10763
  i.destroy(b);
10764
10764
  }));
10765
10765
  }
10766
- var p = (b, d) => {
10767
- if (d.hostname = d.hostname || d.host, !d.hostname) throw new Error("Could not determine host. Specify host manually.");
10768
- let g = d.protocolId === "MQIsdp" && d.protocolVersion === 3 ? "mqttv3.1" : "mqtt";
10769
- c(d);
10770
- let y = u(d, b);
10771
- return o = d.my, o.connectSocket({ url: y, protocols: g }), n = l(), i = new r.BufferedDuplex(d, n, o), h(), i;
10766
+ var p = (b, f) => {
10767
+ if (f.hostname = f.hostname || f.host, !f.hostname) throw new Error("Could not determine host. Specify host manually.");
10768
+ let g = f.protocolId === "MQIsdp" && f.protocolVersion === 3 ? "mqttv3.1" : "mqtt";
10769
+ c(f);
10770
+ let y = u(f, b);
10771
+ return o = f.my, o.connectSocket({ url: y, protocols: g }), n = l(), i = new r.BufferedDuplex(f, n, o), h(), i;
10772
10772
  };
10773
10773
  s.default = p;
10774
10774
  }), ah = pe((s) => {
@@ -10783,8 +10783,8 @@ var Cl, sh = Ye(() => {
10783
10783
  function l(h) {
10784
10784
  let p;
10785
10785
  if (h.auth) if (p = h.auth.match(/^(.+):(.+)$/), p) {
10786
- let [, b, d] = p;
10787
- h.username = b, h.password = d;
10786
+ let [, b, f] = p;
10787
+ h.username = b, h.password = f;
10788
10788
  } else h.username = h.auth;
10789
10789
  }
10790
10790
  function c(h, p) {
@@ -10820,16 +10820,16 @@ var Cl, sh = Ye(() => {
10820
10820
  function b(g) {
10821
10821
  return p.servers && ((!g._reconnectCount || g._reconnectCount === p.servers.length) && (g._reconnectCount = 0), p.host = p.servers[g._reconnectCount].host, p.port = p.servers[g._reconnectCount].port, p.protocol = p.servers[g._reconnectCount].protocol ? p.servers[g._reconnectCount].protocol : p.defaultProtocol, p.hostname = p.host, g._reconnectCount++), i("calling streambuilder for", p.protocol), a[p.protocol](g, p);
10822
10822
  }
10823
- let d = new o.default(b, p);
10824
- return d.on("error", () => {
10825
- }), d;
10823
+ let f = new o.default(b, p);
10824
+ return f.on("error", () => {
10825
+ }), f;
10826
10826
  }
10827
10827
  function u(h, p, b = !0) {
10828
- return new Promise((d, g) => {
10828
+ return new Promise((f, g) => {
10829
10829
  let y = c(h, p), w = { connect: (_) => {
10830
- m(), d(y);
10830
+ m(), f(y);
10831
10831
  }, end: () => {
10832
- m(), d(y);
10832
+ m(), f(y);
10833
10833
  }, error: (_) => {
10834
10834
  m(), y.end(), g(_);
10835
10835
  } };
@@ -10849,34 +10849,34 @@ var Cl, sh = Ye(() => {
10849
10849
  s.default = c;
10850
10850
  }), qs = pe((s) => {
10851
10851
  le(), ue(), ce();
10852
- var e = s && s.__createBinding || (Object.create ? function(b, d, g, y) {
10852
+ var e = s && s.__createBinding || (Object.create ? function(b, f, g, y) {
10853
10853
  y === void 0 && (y = g);
10854
- var w = Object.getOwnPropertyDescriptor(d, g);
10855
- (!w || ("get" in w ? !d.__esModule : w.writable || w.configurable)) && (w = { enumerable: !0, get: function() {
10856
- return d[g];
10854
+ var w = Object.getOwnPropertyDescriptor(f, g);
10855
+ (!w || ("get" in w ? !f.__esModule : w.writable || w.configurable)) && (w = { enumerable: !0, get: function() {
10856
+ return f[g];
10857
10857
  } }), Object.defineProperty(b, y, w);
10858
- } : function(b, d, g, y) {
10859
- y === void 0 && (y = g), b[y] = d[g];
10860
- }), t = s && s.__setModuleDefault || (Object.create ? function(b, d) {
10861
- Object.defineProperty(b, "default", { enumerable: !0, value: d });
10862
- } : function(b, d) {
10863
- b.default = d;
10858
+ } : function(b, f, g, y) {
10859
+ y === void 0 && (y = g), b[y] = f[g];
10860
+ }), t = s && s.__setModuleDefault || (Object.create ? function(b, f) {
10861
+ Object.defineProperty(b, "default", { enumerable: !0, value: f });
10862
+ } : function(b, f) {
10863
+ b.default = f;
10864
10864
  }), r = s && s.__importStar || /* @__PURE__ */ (function() {
10865
- var b = function(d) {
10865
+ var b = function(f) {
10866
10866
  return b = Object.getOwnPropertyNames || function(g) {
10867
10867
  var y = [];
10868
10868
  for (var w in g) Object.prototype.hasOwnProperty.call(g, w) && (y[y.length] = w);
10869
10869
  return y;
10870
- }, b(d);
10870
+ }, b(f);
10871
10871
  };
10872
- return function(d) {
10873
- if (d && d.__esModule) return d;
10872
+ return function(f) {
10873
+ if (f && f.__esModule) return f;
10874
10874
  var g = {};
10875
- if (d != null) for (var y = b(d), w = 0; w < y.length; w++) y[w] !== "default" && e(g, d, y[w]);
10876
- return t(g, d), g;
10875
+ if (f != null) for (var y = b(f), w = 0; w < y.length; w++) y[w] !== "default" && e(g, f, y[w]);
10876
+ return t(g, f), g;
10877
10877
  };
10878
- })(), o = s && s.__exportStar || function(b, d) {
10879
- for (var g in b) g !== "default" && !Object.prototype.hasOwnProperty.call(d, g) && e(d, b, g);
10878
+ })(), o = s && s.__exportStar || function(b, f) {
10879
+ for (var g in b) g !== "default" && !Object.prototype.hasOwnProperty.call(f, g) && e(f, b, g);
10880
10880
  }, n = s && s.__importDefault || function(b) {
10881
10881
  return b && b.__esModule ? b : { default: b };
10882
10882
  };
@@ -11872,7 +11872,7 @@ function Sh(s) {
11872
11872
  throw new Error(`Sign request failed: ${h.status}`);
11873
11873
  const p = await h.json().catch(() => ({})), b = xh(p, e);
11874
11874
  if (!b) throw new Error(`Sign response missing path "${e}"`);
11875
- const d = s.s3HostRewrite ? b.replace(/^https:\/\/[^/]+/i, s.s3HostRewrite) : b, g = await fetch(d, {
11875
+ const f = s.s3HostRewrite ? b.replace(/^https:\/\/[^/]+/i, s.s3HostRewrite) : b, g = await fetch(f, {
11876
11876
  method: "PUT",
11877
11877
  headers: { "content-type": n },
11878
11878
  body: t
@@ -12211,15 +12211,18 @@ function Dh(s, e) {
12211
12211
  }
12212
12212
  function Fh(s, e) {
12213
12213
  const t = Pe(s.businessType), r = Pe(s.natureOfBusiness), o = Ce(s.grossReceipts);
12214
- return t === void 0 && r === void 0 && o === void 0 ? null : {
12214
+ if (t === void 0 && r === void 0 && o === void 0)
12215
+ return null;
12216
+ const n = Pe(s.businessIncomeType)?.toUpperCase() === "CASH";
12217
+ return {
12215
12218
  userId: lr(e.userId),
12216
12219
  assessmentYear: e.assessmentYear,
12217
12220
  presumptiveIncome: [
12218
12221
  {
12219
12222
  businessType: t ?? "",
12220
12223
  businessCode: r ?? "",
12221
- cashAmount: 0,
12222
- bankAmount: o ?? 0
12224
+ cashAmount: n ? o ?? 0 : 0,
12225
+ bankAmount: n ? 0 : o ?? 0
12223
12226
  }
12224
12227
  ]
12225
12228
  };
@@ -12271,13 +12274,13 @@ function Wr(s) {
12271
12274
  function qh(s) {
12272
12275
  const e = s && typeof s == "object" ? s : {}, t = {}, r = Ve(e.employers), o = Ve(e.taxPaid?.onSalary);
12273
12276
  r.length && (t.salaryDetails = r.map((u) => {
12274
- const h = on(u.salary), p = on(u.perquisites), b = on(u.profitsInLieuOfSalaryType), d = h + p + b, g = Wh(u.allowance);
12277
+ const h = on(u.salary), p = on(u.perquisites), b = on(u.profitsInLieuOfSalaryType), f = h + p + b, g = Wh(u.allowance);
12275
12278
  return {
12276
12279
  employerName: Le(u.employerName),
12277
12280
  employerTan: Le(u.employerTAN),
12278
12281
  basicSalary: h || void 0,
12279
12282
  // salaryBreakup.salary
12280
- grossSalary: d || void 0,
12283
+ grossSalary: f || void 0,
12281
12284
  hraReceived: g.hra,
12282
12285
  leaveTravelAllowance: g.lta,
12283
12286
  leaveEncashment: g.leaveEncashment,
@@ -12287,7 +12290,7 @@ function qh(s) {
12287
12290
  }));
12288
12291
  const n = Ve(e.houseProperties);
12289
12292
  n.length && (t.hpDetails = n.map((u) => {
12290
- const h = Ve(u.loanDetails), p = h.length ? h[0] : void 0, b = Ue(u.grossAnnualRentReceived), d = h.length ? h.reduce((_, x) => _ + (Ue(x.interest) ?? 0), 0) : void 0, g = Ve(u.tenant), y = Ve(u.coOwners), w = g[0], m = y[0];
12293
+ const h = Ve(u.loanDetails), p = h.length ? h[0] : void 0, b = Ue(u.grossAnnualRentReceived), f = h.length ? h.reduce((_, x) => _ + (Ue(x.interest) ?? 0), 0) : void 0, g = Ve(u.tenant), y = Ve(u.coOwners), w = g[0], m = y[0];
12291
12294
  return {
12292
12295
  typeOfHouseProperty: Le(u.propertyType),
12293
12296
  loanTakenFrom: Le(p?.loanTakenFrom),
@@ -12296,7 +12299,7 @@ function qh(s) {
12296
12299
  sanctionDate: Le(p?.loanSanctionDate),
12297
12300
  totalLoanAmount: Ue(p?.totalLoanAmount),
12298
12301
  outstandingAmount: Ue(p?.loanOutstandingAmount),
12299
- homeLoanInterest: d,
12302
+ homeLoanInterest: f,
12300
12303
  homeLoanPrinciple: void 0,
12301
12304
  housePropertyAddress: Le(u.address),
12302
12305
  housePropertyPincode: Le(u.pinCode),
@@ -12318,8 +12321,8 @@ function qh(s) {
12318
12321
  const h = Ve(l.presumptiveIncomes)[0];
12319
12322
  if (h) {
12320
12323
  t.businessType = Le(h.businessType), t.natureOfBusiness = Le(h.natureOfBusiness);
12321
- const b = Ve(h.incomes).filter((d) => Le(d.incomeType) === "BANK");
12322
- t.grossReceipts = b.reduce((d, g) => d + (Ue(g.receipts) ?? 0), 0) || void 0, t.netProfit = b.reduce((d, g) => d + (Ue(g.presumptiveIncome) ?? 0), 0) || void 0;
12324
+ const p = Ve(h.incomes), b = p.find((f) => (Ue(f.receipts) ?? 0) > 0) ?? p.find((f) => Le(f.incomeType) === "BANK") ?? p[0];
12325
+ b && (t.businessIncomeType = Le(b.incomeType) ?? "BANK", t.grossReceipts = Ue(b.receipts) || void 0, t.netProfit = Ue(b.presumptiveIncome) || void 0);
12323
12326
  }
12324
12327
  }
12325
12328
  t.agricultureIncome = Ue(e.agriculturalDetails?.income), t.aadhaarNumber = Le(e.aadharNumber);
@@ -13787,7 +13790,7 @@ class gd extends HTMLElement {
13787
13790
  for (const p of e.attachments) {
13788
13791
  const b = document.createElement("aikaara-template-renderer");
13789
13792
  b.setAttribute("content-type", "300"), b.setAttribute("template-id", "7");
13790
- const d = {
13793
+ const f = {
13791
13794
  elements: [
13792
13795
  {
13793
13796
  description: p.fileName,
@@ -13799,7 +13802,7 @@ class gd extends HTMLElement {
13799
13802
  }
13800
13803
  ]
13801
13804
  };
13802
- b.setPayload(d, ""), h.appendChild(b);
13805
+ b.setPayload(f, ""), h.appendChild(b);
13803
13806
  }
13804
13807
  o.appendChild(h);
13805
13808
  }
@@ -13909,8 +13912,8 @@ class gd extends HTMLElement {
13909
13912
  }
13910
13913
  requestAnimationFrame(() => {
13911
13914
  n.showElement?.(r.render, i, (b) => {
13912
- const d = r.props ?? { setData: p };
13913
- for (const [y, w] of Object.entries(d)) {
13915
+ const f = r.props ?? { setData: p };
13916
+ for (const [y, w] of Object.entries(f)) {
13914
13917
  const m = b[y];
13915
13918
  typeof m == "function" && m.call(b, w);
13916
13919
  }
@@ -14637,7 +14640,7 @@ class Td extends HTMLElement {
14637
14640
  */
14638
14641
  mountLinkButton(e) {
14639
14642
  const t = this.renderGen;
14640
- import("./AikaaraLinkButton-5TmYshmj.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
14643
+ import("./AikaaraLinkButton-C7h0O5Od.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
14641
14644
  if (t !== this.renderGen) return;
14642
14645
  r();
14643
14646
  const n = document.createElement("aikaara-link-button");
@@ -16408,8 +16411,8 @@ class Gd {
16408
16411
  }
16409
16412
  const l = await a.json().catch(() => ({})), c = pr(l, this.descriptor.tokenPath ?? "data.token"), u = this.descriptor.tokenStripPrefix, h = u ? c.replace(new RegExp(`^${u}`, "i"), "").trim() : c;
16410
16413
  if (!h) throw new Error("Session auth response missing token");
16411
- const p = pr(l, this.descriptor.requestIdPath ?? "data.requestId"), b = this.cache?.requestId || p || "", d = pr(l, this.descriptor.fullNamePath ?? "data.fullName"), g = pr(l, this.descriptor.userPath ?? "data.userId"), y = Js(h) || Date.now() + 3600 * 1e3;
16412
- return this.cache = { token: h, requestId: b, fullName: d, userId: g, expiresAt: y }, this.cache;
16414
+ const p = pr(l, this.descriptor.requestIdPath ?? "data.requestId"), b = this.cache?.requestId || p || "", f = pr(l, this.descriptor.fullNamePath ?? "data.fullName"), g = pr(l, this.descriptor.userPath ?? "data.userId"), y = Js(h) || Date.now() + 3600 * 1e3;
16415
+ return this.cache = { token: h, requestId: b, fullName: f, userId: g, expiresAt: y }, this.cache;
16413
16416
  }
16414
16417
  }
16415
16418
  async function Yd(s) {
@@ -16831,13 +16834,13 @@ async function uo(s, e, t = "before-chat") {
16831
16834
  return u;
16832
16835
  }, a = await Ht(e.sessionToken), l = {}, c = [800, 1500, 3e3, 5e3, 8e3];
16833
16836
  for (let u = 0; u < r.length; u++) {
16834
- const h = r[u], p = n(h.url), b = h.method ?? (h.body ? "POST" : "GET"), d = { accept: "application/json", ...h.headers ?? {} };
16837
+ const h = r[u], p = n(h.url), b = h.method ?? (h.body ? "POST" : "GET"), f = { accept: "application/json", ...h.headers ?? {} };
16835
16838
  if ((h.authHeader ?? "session") === "session") {
16836
16839
  const x = h.authHeaderTemplate ?? "Bearer {token}";
16837
- d.authorization = x.replace("{token}", a);
16840
+ f.authorization = x.replace("{token}", a);
16838
16841
  }
16839
- const g = { method: b, headers: d };
16840
- h.body && (d["content-type"] = "application/json", g.body = JSON.stringify(i(h.body)));
16842
+ const g = { method: b, headers: f };
16843
+ h.body && (f["content-type"] = "application/json", g.body = JSON.stringify(i(h.body)));
16841
16844
  let y = 0, w = "", m = 0, _ = null;
16842
16845
  for (; ; )
16843
16846
  try {
@@ -16992,7 +16995,7 @@ async function yf(s) {
16992
16995
  debug: r.debug,
16993
16996
  senderFullname: s.identity.senderFullname ?? s.identity.userName,
16994
16997
  tokenProvider: h
16995
- } : void 0, d = s.uploadAdapter ?? (e.uploadEndpoint ? Pl({
16998
+ } : void 0, f = s.uploadAdapter ?? (e.uploadEndpoint ? Pl({
16996
16999
  endpoint: e.uploadEndpoint,
16997
17000
  fieldName: e.uploadFieldName,
16998
17001
  extraFields: e.uploadExtraFields
@@ -17038,7 +17041,7 @@ async function yf(s) {
17038
17041
  senderFullname: s.identity.senderFullname ?? s.identity.userName
17039
17042
  },
17040
17043
  templateActionAttributes: e.templateActionAttributes,
17041
- uploadAdapter: d,
17044
+ uploadAdapter: f,
17042
17045
  historyAdapter: g,
17043
17046
  onError: s.onError,
17044
17047
  onMessage: s.onMessage
@@ -17131,7 +17134,7 @@ async function wf(s) {
17131
17134
  exchangeUrl: I
17132
17135
  }).get(), a = i.extUid || a, l = l ?? i.displayName, c = i.userToken;
17133
17136
  }
17134
- let d = "", g = "";
17137
+ let f = "", g = "";
17135
17138
  if (o.preflight && o.preflight.length) {
17136
17139
  const I = await uo(o.preflight, {
17137
17140
  sessionToken: u,
@@ -17141,16 +17144,16 @@ async function wf(s) {
17141
17144
  identity: s.user.identity
17142
17145
  });
17143
17146
  if (I.captured.sessionToken) {
17144
- d = I.captured.sessionToken;
17145
- const O = d;
17147
+ f = I.captured.sessionToken;
17148
+ const O = f;
17146
17149
  u = () => O;
17147
17150
  }
17148
17151
  I.captured.userId && (a = I.captured.userId), I.captured.requestId && (g = I.captured.requestId);
17149
17152
  }
17150
17153
  const y = new Gd(o.auth, u);
17151
- if (d) {
17154
+ if (f) {
17152
17155
  const I = o.tiledesk?.projectId ?? "", O = I ? Bl(a, I) : null, P = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", j = O ?? (I ? Fl(P, I) : "");
17153
- y.prime(d, { requestId: j, fullName: l });
17156
+ y.prime(f, { requestId: j, fullName: l });
17154
17157
  }
17155
17158
  const w = await y.get();
17156
17159
  a = a || w.userId;