@aikaara/chat-sdk 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MountTenant-2hJqV0N7.cjs → MountTenant-DYhDyux6.cjs} +8 -8
- package/dist/{MountTenant-C33lxHLm.mjs → MountTenant-a_9ZUVQQ.mjs} +970 -967
- package/dist/cdn/aikaara-chat.iife.js +12 -12
- package/dist/headless.cjs +1 -1
- package/dist/headless.d.ts +16 -1
- package/dist/headless.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.mjs +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
|
@@ -470,8 +470,8 @@ function wo(a, e, t = 15e3) {
|
|
|
470
470
|
if (g === "file_uploaded" || g === "file_upload" || Math.abs(c - new Date(h.createdAt).getTime()) > t) continue;
|
|
471
471
|
const y = jr(h);
|
|
472
472
|
if (o && y && o === y) return h;
|
|
473
|
-
const
|
|
474
|
-
if (s &&
|
|
473
|
+
const w = _o(h);
|
|
474
|
+
if (s && w && s === w) return h;
|
|
475
475
|
const m = ko(h);
|
|
476
476
|
if (l && m && l === m) return h;
|
|
477
477
|
}
|
|
@@ -653,20 +653,20 @@ function ec() {
|
|
|
653
653
|
return (f + g) * 3 / 4 - g;
|
|
654
654
|
}
|
|
655
655
|
function c(b) {
|
|
656
|
-
var f, g = o(b), y = g[0],
|
|
657
|
-
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[
|
|
658
|
-
return
|
|
656
|
+
var f, g = o(b), y = g[0], w = g[1], m = new t(l(b, y, w)), _ = 0, x = w > 0 ? y - 4 : y, v;
|
|
657
|
+
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;
|
|
658
|
+
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;
|
|
659
659
|
}
|
|
660
660
|
function u(b) {
|
|
661
661
|
return a[b >> 18 & 63] + a[b >> 12 & 63] + a[b >> 6 & 63] + a[b & 63];
|
|
662
662
|
}
|
|
663
663
|
function h(b, f, g) {
|
|
664
|
-
for (var y,
|
|
665
|
-
return
|
|
664
|
+
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));
|
|
665
|
+
return w.join("");
|
|
666
666
|
}
|
|
667
667
|
function p(b) {
|
|
668
|
-
for (var f, g = b.length, y = g % 3,
|
|
669
|
-
return y === 1 ? (f = b[g - 1],
|
|
668
|
+
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));
|
|
669
|
+
return y === 1 ? (f = b[g - 1], w.push(a[f >> 2] + a[f << 4 & 63] + "==")) : y === 2 && (f = (b[g - 2] << 8) + b[g - 1], w.push(a[f >> 10] + a[f >> 4 & 63] + a[f << 2 & 63] + "=")), w.join("");
|
|
670
670
|
}
|
|
671
671
|
return Lt;
|
|
672
672
|
}
|
|
@@ -692,15 +692,15 @@ function rc() {
|
|
|
692
692
|
if (ai) return bt;
|
|
693
693
|
ai = !0;
|
|
694
694
|
let a = ec(), e = tc(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
695
|
-
bt.Buffer = o, bt.SlowBuffer =
|
|
695
|
+
bt.Buffer = o, bt.SlowBuffer = w, bt.INSPECT_MAX_BYTES = 50;
|
|
696
696
|
let r = 2147483647;
|
|
697
697
|
bt.kMaxLength = r, o.TYPED_ARRAY_SUPPORT = i(), !o.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.");
|
|
698
698
|
function i() {
|
|
699
699
|
try {
|
|
700
|
-
let d = new Uint8Array(1),
|
|
700
|
+
let d = new Uint8Array(1), k = { foo: function() {
|
|
701
701
|
return 42;
|
|
702
702
|
} };
|
|
703
|
-
return Object.setPrototypeOf(
|
|
703
|
+
return Object.setPrototypeOf(k, Uint8Array.prototype), Object.setPrototypeOf(d, k), d.foo() === 42;
|
|
704
704
|
} catch {
|
|
705
705
|
return !1;
|
|
706
706
|
}
|
|
@@ -712,42 +712,42 @@ function rc() {
|
|
|
712
712
|
} });
|
|
713
713
|
function n(d) {
|
|
714
714
|
if (d > r) throw new RangeError('The value "' + d + '" is invalid for option "size"');
|
|
715
|
-
let
|
|
716
|
-
return Object.setPrototypeOf(
|
|
715
|
+
let k = new Uint8Array(d);
|
|
716
|
+
return Object.setPrototypeOf(k, o.prototype), k;
|
|
717
717
|
}
|
|
718
|
-
function o(d,
|
|
718
|
+
function o(d, k, A) {
|
|
719
719
|
if (typeof d == "number") {
|
|
720
|
-
if (typeof
|
|
720
|
+
if (typeof k == "string") throw new TypeError('The "string" argument must be of type string. Received type number');
|
|
721
721
|
return u(d);
|
|
722
722
|
}
|
|
723
|
-
return s(d,
|
|
723
|
+
return s(d, k, A);
|
|
724
724
|
}
|
|
725
725
|
o.poolSize = 8192;
|
|
726
|
-
function s(d,
|
|
727
|
-
if (typeof d == "string") return h(d,
|
|
726
|
+
function s(d, k, A) {
|
|
727
|
+
if (typeof d == "string") return h(d, k);
|
|
728
728
|
if (ArrayBuffer.isView(d)) return b(d);
|
|
729
729
|
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);
|
|
730
|
-
if (H(d, ArrayBuffer) || d && H(d.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (H(d, SharedArrayBuffer) || d && H(d.buffer, SharedArrayBuffer))) return f(d,
|
|
730
|
+
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);
|
|
731
731
|
if (typeof d == "number") throw new TypeError('The "value" argument must not be of type number. Received type number');
|
|
732
732
|
let B = d.valueOf && d.valueOf();
|
|
733
|
-
if (B != null && B !== d) return o.from(B,
|
|
733
|
+
if (B != null && B !== d) return o.from(B, k, A);
|
|
734
734
|
let X = g(d);
|
|
735
735
|
if (X) return X;
|
|
736
|
-
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof d[Symbol.toPrimitive] == "function") return o.from(d[Symbol.toPrimitive]("string"),
|
|
736
|
+
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof d[Symbol.toPrimitive] == "function") return o.from(d[Symbol.toPrimitive]("string"), k, A);
|
|
737
737
|
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof d);
|
|
738
738
|
}
|
|
739
|
-
o.from = function(d,
|
|
740
|
-
return s(d,
|
|
739
|
+
o.from = function(d, k, A) {
|
|
740
|
+
return s(d, k, A);
|
|
741
741
|
}, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array);
|
|
742
742
|
function l(d) {
|
|
743
743
|
if (typeof d != "number") throw new TypeError('"size" argument must be of type number');
|
|
744
744
|
if (d < 0) throw new RangeError('The value "' + d + '" is invalid for option "size"');
|
|
745
745
|
}
|
|
746
|
-
function c(d,
|
|
747
|
-
return l(d), d <= 0 ? n(d) :
|
|
746
|
+
function c(d, k, A) {
|
|
747
|
+
return l(d), d <= 0 ? n(d) : k !== void 0 ? typeof A == "string" ? n(d).fill(k, A) : n(d).fill(k) : n(d);
|
|
748
748
|
}
|
|
749
|
-
o.alloc = function(d,
|
|
750
|
-
return c(d,
|
|
749
|
+
o.alloc = function(d, k, A) {
|
|
750
|
+
return c(d, k, A);
|
|
751
751
|
};
|
|
752
752
|
function u(d) {
|
|
753
753
|
return l(d), n(d < 0 ? 0 : y(d) | 0);
|
|
@@ -757,33 +757,33 @@ function rc() {
|
|
|
757
757
|
}, o.allocUnsafeSlow = function(d) {
|
|
758
758
|
return u(d);
|
|
759
759
|
};
|
|
760
|
-
function h(d,
|
|
761
|
-
if ((typeof
|
|
762
|
-
let A = m(d,
|
|
760
|
+
function h(d, k) {
|
|
761
|
+
if ((typeof k != "string" || k === "") && (k = "utf8"), !o.isEncoding(k)) throw new TypeError("Unknown encoding: " + k);
|
|
762
|
+
let A = m(d, k) | 0, B = n(A), X = B.write(d, k);
|
|
763
763
|
return X !== A && (B = B.slice(0, X)), B;
|
|
764
764
|
}
|
|
765
765
|
function p(d) {
|
|
766
|
-
let
|
|
767
|
-
for (let B = 0; B <
|
|
766
|
+
let k = d.length < 0 ? 0 : y(d.length) | 0, A = n(k);
|
|
767
|
+
for (let B = 0; B < k; B += 1) A[B] = d[B] & 255;
|
|
768
768
|
return A;
|
|
769
769
|
}
|
|
770
770
|
function b(d) {
|
|
771
771
|
if (H(d, Uint8Array)) {
|
|
772
|
-
let
|
|
773
|
-
return f(
|
|
772
|
+
let k = new Uint8Array(d);
|
|
773
|
+
return f(k.buffer, k.byteOffset, k.byteLength);
|
|
774
774
|
}
|
|
775
775
|
return p(d);
|
|
776
776
|
}
|
|
777
|
-
function f(d,
|
|
778
|
-
if (
|
|
779
|
-
if (d.byteLength <
|
|
777
|
+
function f(d, k, A) {
|
|
778
|
+
if (k < 0 || d.byteLength < k) throw new RangeError('"offset" is outside of buffer bounds');
|
|
779
|
+
if (d.byteLength < k + (A || 0)) throw new RangeError('"length" is outside of buffer bounds');
|
|
780
780
|
let B;
|
|
781
|
-
return
|
|
781
|
+
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, o.prototype), B;
|
|
782
782
|
}
|
|
783
783
|
function g(d) {
|
|
784
784
|
if (o.isBuffer(d)) {
|
|
785
|
-
let
|
|
786
|
-
return A.length === 0 || d.copy(A, 0, 0,
|
|
785
|
+
let k = y(d.length) | 0, A = n(k);
|
|
786
|
+
return A.length === 0 || d.copy(A, 0, 0, k), A;
|
|
787
787
|
}
|
|
788
788
|
if (d.length !== void 0) return typeof d.length != "number" || me(d.length) ? n(0) : p(d);
|
|
789
789
|
if (d.type === "Buffer" && Array.isArray(d.data)) return p(d.data);
|
|
@@ -792,17 +792,17 @@ function rc() {
|
|
|
792
792
|
if (d >= r) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + r.toString(16) + " bytes");
|
|
793
793
|
return d | 0;
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function w(d) {
|
|
796
796
|
return +d != d && (d = 0), o.alloc(+d);
|
|
797
797
|
}
|
|
798
798
|
o.isBuffer = function(d) {
|
|
799
799
|
return d != null && d._isBuffer === !0 && d !== o.prototype;
|
|
800
|
-
}, o.compare = function(d,
|
|
801
|
-
if (H(d, Uint8Array) && (d = o.from(d, d.offset, d.byteLength)), H(
|
|
802
|
-
if (d ===
|
|
803
|
-
let A = d.length, B =
|
|
804
|
-
for (let X = 0, he = Math.min(A, B); X < he; ++X) if (d[X] !==
|
|
805
|
-
A = d[X], B =
|
|
800
|
+
}, o.compare = function(d, k) {
|
|
801
|
+
if (H(d, Uint8Array) && (d = o.from(d, d.offset, d.byteLength)), H(k, Uint8Array) && (k = o.from(k, k.offset, k.byteLength)), !o.isBuffer(d) || !o.isBuffer(k)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
|
|
802
|
+
if (d === k) return 0;
|
|
803
|
+
let A = d.length, B = k.length;
|
|
804
|
+
for (let X = 0, he = Math.min(A, B); X < he; ++X) if (d[X] !== k[X]) {
|
|
805
|
+
A = d[X], B = k[X];
|
|
806
806
|
break;
|
|
807
807
|
}
|
|
808
808
|
return A < B ? -1 : B < A ? 1 : 0;
|
|
@@ -823,12 +823,12 @@ function rc() {
|
|
|
823
823
|
default:
|
|
824
824
|
return !1;
|
|
825
825
|
}
|
|
826
|
-
}, o.concat = function(d,
|
|
826
|
+
}, o.concat = function(d, k) {
|
|
827
827
|
if (!Array.isArray(d)) throw new TypeError('"list" argument must be an Array of Buffers');
|
|
828
828
|
if (d.length === 0) return o.alloc(0);
|
|
829
829
|
let A;
|
|
830
|
-
if (
|
|
831
|
-
let B = o.allocUnsafe(
|
|
830
|
+
if (k === void 0) for (k = 0, A = 0; A < d.length; ++A) k += d[A].length;
|
|
831
|
+
let B = o.allocUnsafe(k), X = 0;
|
|
832
832
|
for (A = 0; A < d.length; ++A) {
|
|
833
833
|
let he = d[A];
|
|
834
834
|
if (H(he, Uint8Array)) X + he.length > B.length ? (o.isBuffer(he) || (he = o.from(he)), he.copy(B, X)) : Uint8Array.prototype.set.call(B, he, X);
|
|
@@ -838,14 +838,14 @@ function rc() {
|
|
|
838
838
|
}
|
|
839
839
|
return B;
|
|
840
840
|
};
|
|
841
|
-
function m(d,
|
|
841
|
+
function m(d, k) {
|
|
842
842
|
if (o.isBuffer(d)) return d.length;
|
|
843
843
|
if (ArrayBuffer.isView(d) || H(d, ArrayBuffer)) return d.byteLength;
|
|
844
844
|
if (typeof d != "string") throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof d);
|
|
845
845
|
let A = d.length, B = arguments.length > 2 && arguments[2] === !0;
|
|
846
846
|
if (!B && A === 0) return 0;
|
|
847
847
|
let X = !1;
|
|
848
|
-
for (; ; ) switch (
|
|
848
|
+
for (; ; ) switch (k) {
|
|
849
849
|
case "ascii":
|
|
850
850
|
case "latin1":
|
|
851
851
|
case "binary":
|
|
@@ -864,94 +864,94 @@ function rc() {
|
|
|
864
864
|
return fe(d).length;
|
|
865
865
|
default:
|
|
866
866
|
if (X) return B ? -1 : $(d).length;
|
|
867
|
-
|
|
867
|
+
k = ("" + k).toLowerCase(), X = !0;
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
o.byteLength = m;
|
|
871
|
-
function
|
|
871
|
+
function _(d, k, A) {
|
|
872
872
|
let B = !1;
|
|
873
|
-
if ((
|
|
873
|
+
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 "";
|
|
874
874
|
for (d || (d = "utf8"); ; ) switch (d) {
|
|
875
875
|
case "hex":
|
|
876
|
-
return V(this,
|
|
876
|
+
return V(this, k, A);
|
|
877
877
|
case "utf8":
|
|
878
878
|
case "utf-8":
|
|
879
|
-
return q(this,
|
|
879
|
+
return q(this, k, A);
|
|
880
880
|
case "ascii":
|
|
881
|
-
return ae(this,
|
|
881
|
+
return ae(this, k, A);
|
|
882
882
|
case "latin1":
|
|
883
883
|
case "binary":
|
|
884
|
-
return Y(this,
|
|
884
|
+
return Y(this, k, A);
|
|
885
885
|
case "base64":
|
|
886
|
-
return T(this,
|
|
886
|
+
return T(this, k, A);
|
|
887
887
|
case "ucs2":
|
|
888
888
|
case "ucs-2":
|
|
889
889
|
case "utf16le":
|
|
890
890
|
case "utf-16le":
|
|
891
|
-
return re(this,
|
|
891
|
+
return re(this, k, A);
|
|
892
892
|
default:
|
|
893
893
|
if (B) throw new TypeError("Unknown encoding: " + d);
|
|
894
894
|
d = (d + "").toLowerCase(), B = !0;
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
o.prototype._isBuffer = !0;
|
|
898
|
-
function x(d,
|
|
899
|
-
let B = d[
|
|
900
|
-
d[
|
|
898
|
+
function x(d, k, A) {
|
|
899
|
+
let B = d[k];
|
|
900
|
+
d[k] = d[A], d[A] = B;
|
|
901
901
|
}
|
|
902
902
|
o.prototype.swap16 = function() {
|
|
903
903
|
let d = this.length;
|
|
904
904
|
if (d % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
905
|
-
for (let
|
|
905
|
+
for (let k = 0; k < d; k += 2) x(this, k, k + 1);
|
|
906
906
|
return this;
|
|
907
907
|
}, o.prototype.swap32 = function() {
|
|
908
908
|
let d = this.length;
|
|
909
909
|
if (d % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
910
|
-
for (let
|
|
910
|
+
for (let k = 0; k < d; k += 4) x(this, k, k + 3), x(this, k + 1, k + 2);
|
|
911
911
|
return this;
|
|
912
912
|
}, o.prototype.swap64 = function() {
|
|
913
913
|
let d = this.length;
|
|
914
914
|
if (d % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
915
|
-
for (let
|
|
915
|
+
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);
|
|
916
916
|
return this;
|
|
917
917
|
}, o.prototype.toString = function() {
|
|
918
918
|
let d = this.length;
|
|
919
|
-
return d === 0 ? "" : arguments.length === 0 ? q(this, 0, d) :
|
|
919
|
+
return d === 0 ? "" : arguments.length === 0 ? q(this, 0, d) : _.apply(this, arguments);
|
|
920
920
|
}, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(d) {
|
|
921
921
|
if (!o.isBuffer(d)) throw new TypeError("Argument must be a Buffer");
|
|
922
922
|
return this === d ? !0 : o.compare(this, d) === 0;
|
|
923
923
|
}, o.prototype.inspect = function() {
|
|
924
|
-
let d = "",
|
|
925
|
-
return d = this.toString("hex", 0,
|
|
926
|
-
}, t && (o.prototype[t] = o.prototype.inspect), o.prototype.compare = function(d,
|
|
924
|
+
let d = "", k = bt.INSPECT_MAX_BYTES;
|
|
925
|
+
return d = this.toString("hex", 0, k).replace(/(.{2})/g, "$1 ").trim(), this.length > k && (d += " ... "), "<Buffer " + d + ">";
|
|
926
|
+
}, t && (o.prototype[t] = o.prototype.inspect), o.prototype.compare = function(d, k, A, B, X) {
|
|
927
927
|
if (H(d, Uint8Array) && (d = o.from(d, d.offset, d.byteLength)), !o.isBuffer(d)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof d);
|
|
928
|
-
if (
|
|
929
|
-
if (B >= X &&
|
|
928
|
+
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");
|
|
929
|
+
if (B >= X && k >= A) return 0;
|
|
930
930
|
if (B >= X) return -1;
|
|
931
|
-
if (
|
|
932
|
-
if (
|
|
933
|
-
let he = X - B, ke = A -
|
|
931
|
+
if (k >= A) return 1;
|
|
932
|
+
if (k >>>= 0, A >>>= 0, B >>>= 0, X >>>= 0, this === d) return 0;
|
|
933
|
+
let he = X - B, ke = A - k, z = Math.min(he, ke), ie = this.slice(B, X), Ee = d.slice(k, A);
|
|
934
934
|
for (let Ae = 0; Ae < z; ++Ae) if (ie[Ae] !== Ee[Ae]) {
|
|
935
935
|
he = ie[Ae], ke = Ee[Ae];
|
|
936
936
|
break;
|
|
937
937
|
}
|
|
938
938
|
return he < ke ? -1 : ke < he ? 1 : 0;
|
|
939
939
|
};
|
|
940
|
-
function v(d,
|
|
940
|
+
function v(d, k, A, B, X) {
|
|
941
941
|
if (d.length === 0) return -1;
|
|
942
942
|
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) {
|
|
943
943
|
if (X) return -1;
|
|
944
944
|
A = d.length - 1;
|
|
945
945
|
} else if (A < 0) if (X) A = 0;
|
|
946
946
|
else return -1;
|
|
947
|
-
if (typeof
|
|
948
|
-
if (typeof
|
|
947
|
+
if (typeof k == "string" && (k = o.from(k, B)), o.isBuffer(k)) return k.length === 0 ? -1 : E(d, k, A, B, X);
|
|
948
|
+
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);
|
|
949
949
|
throw new TypeError("val must be string, number or Buffer");
|
|
950
950
|
}
|
|
951
|
-
function E(d,
|
|
952
|
-
let he = 1, ke = d.length, z =
|
|
951
|
+
function E(d, k, A, B, X) {
|
|
952
|
+
let he = 1, ke = d.length, z = k.length;
|
|
953
953
|
if (B !== void 0 && (B = String(B).toLowerCase(), B === "ucs2" || B === "ucs-2" || B === "utf16le" || B === "utf-16le")) {
|
|
954
|
-
if (d.length < 2 ||
|
|
954
|
+
if (d.length < 2 || k.length < 2) return -1;
|
|
955
955
|
he = 2, ke /= 2, z /= 2, A /= 2;
|
|
956
956
|
}
|
|
957
957
|
function ie(Ae, Ie) {
|
|
@@ -960,12 +960,12 @@ function rc() {
|
|
|
960
960
|
let Ee;
|
|
961
961
|
if (X) {
|
|
962
962
|
let Ae = -1;
|
|
963
|
-
for (Ee = A; Ee < ke; Ee++) if (ie(d, Ee) === ie(
|
|
963
|
+
for (Ee = A; Ee < ke; Ee++) if (ie(d, Ee) === ie(k, Ae === -1 ? 0 : Ee - Ae)) {
|
|
964
964
|
if (Ae === -1 && (Ae = Ee), Ee - Ae + 1 === z) return Ae * he;
|
|
965
965
|
} else Ae !== -1 && (Ee -= Ee - Ae), Ae = -1;
|
|
966
966
|
} else for (A + z > ke && (A = ke - z), Ee = A; Ee >= 0; Ee--) {
|
|
967
967
|
let Ae = !0;
|
|
968
|
-
for (let Ie = 0; Ie < z; Ie++) if (ie(d, Ee + Ie) !== ie(
|
|
968
|
+
for (let Ie = 0; Ie < z; Ie++) if (ie(d, Ee + Ie) !== ie(k, Ie)) {
|
|
969
969
|
Ae = !1;
|
|
970
970
|
break;
|
|
971
971
|
}
|
|
@@ -973,65 +973,65 @@ function rc() {
|
|
|
973
973
|
}
|
|
974
974
|
return -1;
|
|
975
975
|
}
|
|
976
|
-
o.prototype.includes = function(d,
|
|
977
|
-
return this.indexOf(d,
|
|
978
|
-
}, o.prototype.indexOf = function(d,
|
|
979
|
-
return v(this, d,
|
|
980
|
-
}, o.prototype.lastIndexOf = function(d,
|
|
981
|
-
return v(this, d,
|
|
976
|
+
o.prototype.includes = function(d, k, A) {
|
|
977
|
+
return this.indexOf(d, k, A) !== -1;
|
|
978
|
+
}, o.prototype.indexOf = function(d, k, A) {
|
|
979
|
+
return v(this, d, k, A, !0);
|
|
980
|
+
}, o.prototype.lastIndexOf = function(d, k, A) {
|
|
981
|
+
return v(this, d, k, A, !1);
|
|
982
982
|
};
|
|
983
|
-
function S(d,
|
|
983
|
+
function S(d, k, A, B) {
|
|
984
984
|
A = Number(A) || 0;
|
|
985
985
|
let X = d.length - A;
|
|
986
986
|
B ? (B = Number(B), B > X && (B = X)) : B = X;
|
|
987
|
-
let he =
|
|
987
|
+
let he = k.length;
|
|
988
988
|
B > he / 2 && (B = he / 2);
|
|
989
989
|
let ke;
|
|
990
990
|
for (ke = 0; ke < B; ++ke) {
|
|
991
|
-
let z = parseInt(
|
|
991
|
+
let z = parseInt(k.substr(ke * 2, 2), 16);
|
|
992
992
|
if (me(z)) return ke;
|
|
993
993
|
d[A + ke] = z;
|
|
994
994
|
}
|
|
995
995
|
return ke;
|
|
996
996
|
}
|
|
997
|
-
function I(d,
|
|
998
|
-
return ye($(
|
|
997
|
+
function I(d, k, A, B) {
|
|
998
|
+
return ye($(k, d.length - A), d, A, B);
|
|
999
999
|
}
|
|
1000
|
-
function O(d,
|
|
1001
|
-
return ye(ee(
|
|
1000
|
+
function O(d, k, A, B) {
|
|
1001
|
+
return ye(ee(k), d, A, B);
|
|
1002
1002
|
}
|
|
1003
|
-
function P(d,
|
|
1004
|
-
return ye(fe(
|
|
1003
|
+
function P(d, k, A, B) {
|
|
1004
|
+
return ye(fe(k), d, A, B);
|
|
1005
1005
|
}
|
|
1006
|
-
function N(d,
|
|
1007
|
-
return ye(de(
|
|
1006
|
+
function N(d, k, A, B) {
|
|
1007
|
+
return ye(de(k, d.length - A), d, A, B);
|
|
1008
1008
|
}
|
|
1009
|
-
o.prototype.write = function(d,
|
|
1010
|
-
if (
|
|
1011
|
-
else if (A === void 0 && typeof
|
|
1012
|
-
else if (isFinite(
|
|
1009
|
+
o.prototype.write = function(d, k, A, B) {
|
|
1010
|
+
if (k === void 0) B = "utf8", A = this.length, k = 0;
|
|
1011
|
+
else if (A === void 0 && typeof k == "string") B = k, A = this.length, k = 0;
|
|
1012
|
+
else if (isFinite(k)) k = k >>> 0, isFinite(A) ? (A = A >>> 0, B === void 0 && (B = "utf8")) : (B = A, A = void 0);
|
|
1013
1013
|
else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
|
|
1014
|
-
let X = this.length -
|
|
1015
|
-
if ((A === void 0 || A > X) && (A = X), d.length > 0 && (A < 0 ||
|
|
1014
|
+
let X = this.length - k;
|
|
1015
|
+
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");
|
|
1016
1016
|
B || (B = "utf8");
|
|
1017
1017
|
let he = !1;
|
|
1018
1018
|
for (; ; ) switch (B) {
|
|
1019
1019
|
case "hex":
|
|
1020
|
-
return S(this, d,
|
|
1020
|
+
return S(this, d, k, A);
|
|
1021
1021
|
case "utf8":
|
|
1022
1022
|
case "utf-8":
|
|
1023
|
-
return I(this, d,
|
|
1023
|
+
return I(this, d, k, A);
|
|
1024
1024
|
case "ascii":
|
|
1025
1025
|
case "latin1":
|
|
1026
1026
|
case "binary":
|
|
1027
|
-
return O(this, d,
|
|
1027
|
+
return O(this, d, k, A);
|
|
1028
1028
|
case "base64":
|
|
1029
|
-
return P(this, d,
|
|
1029
|
+
return P(this, d, k, A);
|
|
1030
1030
|
case "ucs2":
|
|
1031
1031
|
case "ucs-2":
|
|
1032
1032
|
case "utf16le":
|
|
1033
1033
|
case "utf-16le":
|
|
1034
|
-
return N(this, d,
|
|
1034
|
+
return N(this, d, k, A);
|
|
1035
1035
|
default:
|
|
1036
1036
|
if (he) throw new TypeError("Unknown encoding: " + B);
|
|
1037
1037
|
B = ("" + B).toLowerCase(), he = !0;
|
|
@@ -1039,12 +1039,12 @@ function rc() {
|
|
|
1039
1039
|
}, o.prototype.toJSON = function() {
|
|
1040
1040
|
return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
|
|
1041
1041
|
};
|
|
1042
|
-
function T(d,
|
|
1043
|
-
return
|
|
1042
|
+
function T(d, k, A) {
|
|
1043
|
+
return k === 0 && A === d.length ? a.fromByteArray(d) : a.fromByteArray(d.slice(k, A));
|
|
1044
1044
|
}
|
|
1045
|
-
function q(d,
|
|
1045
|
+
function q(d, k, A) {
|
|
1046
1046
|
A = Math.min(d.length, A);
|
|
1047
|
-
let B = [], X =
|
|
1047
|
+
let B = [], X = k;
|
|
1048
1048
|
for (; X < A; ) {
|
|
1049
1049
|
let he = d[X], ke = null, z = he > 239 ? 4 : he > 223 ? 3 : he > 191 ? 2 : 1;
|
|
1050
1050
|
if (X + z <= A) {
|
|
@@ -1069,258 +1069,258 @@ function rc() {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
let D = 4096;
|
|
1071
1071
|
function U(d) {
|
|
1072
|
-
let
|
|
1073
|
-
if (
|
|
1072
|
+
let k = d.length;
|
|
1073
|
+
if (k <= D) return String.fromCharCode.apply(String, d);
|
|
1074
1074
|
let A = "", B = 0;
|
|
1075
|
-
for (; B <
|
|
1075
|
+
for (; B < k; ) A += String.fromCharCode.apply(String, d.slice(B, B += D));
|
|
1076
1076
|
return A;
|
|
1077
1077
|
}
|
|
1078
|
-
function ae(d,
|
|
1078
|
+
function ae(d, k, A) {
|
|
1079
1079
|
let B = "";
|
|
1080
1080
|
A = Math.min(d.length, A);
|
|
1081
|
-
for (let X =
|
|
1081
|
+
for (let X = k; X < A; ++X) B += String.fromCharCode(d[X] & 127);
|
|
1082
1082
|
return B;
|
|
1083
1083
|
}
|
|
1084
|
-
function Y(d,
|
|
1084
|
+
function Y(d, k, A) {
|
|
1085
1085
|
let B = "";
|
|
1086
1086
|
A = Math.min(d.length, A);
|
|
1087
|
-
for (let X =
|
|
1087
|
+
for (let X = k; X < A; ++X) B += String.fromCharCode(d[X]);
|
|
1088
1088
|
return B;
|
|
1089
1089
|
}
|
|
1090
|
-
function V(d,
|
|
1090
|
+
function V(d, k, A) {
|
|
1091
1091
|
let B = d.length;
|
|
1092
|
-
(!
|
|
1092
|
+
(!k || k < 0) && (k = 0), (!A || A < 0 || A > B) && (A = B);
|
|
1093
1093
|
let X = "";
|
|
1094
|
-
for (let he =
|
|
1094
|
+
for (let he = k; he < A; ++he) X += ve[d[he]];
|
|
1095
1095
|
return X;
|
|
1096
1096
|
}
|
|
1097
|
-
function re(d,
|
|
1098
|
-
let B = d.slice(
|
|
1097
|
+
function re(d, k, A) {
|
|
1098
|
+
let B = d.slice(k, A), X = "";
|
|
1099
1099
|
for (let he = 0; he < B.length - 1; he += 2) X += String.fromCharCode(B[he] + B[he + 1] * 256);
|
|
1100
1100
|
return X;
|
|
1101
1101
|
}
|
|
1102
|
-
o.prototype.slice = function(d,
|
|
1102
|
+
o.prototype.slice = function(d, k) {
|
|
1103
1103
|
let A = this.length;
|
|
1104
|
-
d = ~~d,
|
|
1105
|
-
let B = this.subarray(d,
|
|
1104
|
+
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);
|
|
1105
|
+
let B = this.subarray(d, k);
|
|
1106
1106
|
return Object.setPrototypeOf(B, o.prototype), B;
|
|
1107
1107
|
};
|
|
1108
|
-
function F(d,
|
|
1108
|
+
function F(d, k, A) {
|
|
1109
1109
|
if (d % 1 !== 0 || d < 0) throw new RangeError("offset is not uint");
|
|
1110
|
-
if (d +
|
|
1110
|
+
if (d + k > A) throw new RangeError("Trying to access beyond buffer length");
|
|
1111
1111
|
}
|
|
1112
|
-
o.prototype.readUintLE = o.prototype.readUIntLE = function(d,
|
|
1113
|
-
d = d >>> 0,
|
|
1112
|
+
o.prototype.readUintLE = o.prototype.readUIntLE = function(d, k, A) {
|
|
1113
|
+
d = d >>> 0, k = k >>> 0, A || F(d, k, this.length);
|
|
1114
1114
|
let B = this[d], X = 1, he = 0;
|
|
1115
|
-
for (; ++he <
|
|
1115
|
+
for (; ++he < k && (X *= 256); ) B += this[d + he] * X;
|
|
1116
1116
|
return B;
|
|
1117
|
-
}, o.prototype.readUintBE = o.prototype.readUIntBE = function(d,
|
|
1118
|
-
d = d >>> 0,
|
|
1119
|
-
let B = this[d + --
|
|
1120
|
-
for (;
|
|
1117
|
+
}, o.prototype.readUintBE = o.prototype.readUIntBE = function(d, k, A) {
|
|
1118
|
+
d = d >>> 0, k = k >>> 0, A || F(d, k, this.length);
|
|
1119
|
+
let B = this[d + --k], X = 1;
|
|
1120
|
+
for (; k > 0 && (X *= 256); ) B += this[d + --k] * X;
|
|
1121
1121
|
return B;
|
|
1122
|
-
}, o.prototype.readUint8 = o.prototype.readUInt8 = function(d,
|
|
1123
|
-
return d = d >>> 0,
|
|
1124
|
-
}, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(d,
|
|
1125
|
-
return d = d >>> 0,
|
|
1126
|
-
}, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(d,
|
|
1127
|
-
return d = d >>> 0,
|
|
1128
|
-
}, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(d,
|
|
1129
|
-
return d = d >>> 0,
|
|
1130
|
-
}, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(d,
|
|
1131
|
-
return d = d >>> 0,
|
|
1122
|
+
}, o.prototype.readUint8 = o.prototype.readUInt8 = function(d, k) {
|
|
1123
|
+
return d = d >>> 0, k || F(d, 1, this.length), this[d];
|
|
1124
|
+
}, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(d, k) {
|
|
1125
|
+
return d = d >>> 0, k || F(d, 2, this.length), this[d] | this[d + 1] << 8;
|
|
1126
|
+
}, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(d, k) {
|
|
1127
|
+
return d = d >>> 0, k || F(d, 2, this.length), this[d] << 8 | this[d + 1];
|
|
1128
|
+
}, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(d, k) {
|
|
1129
|
+
return d = d >>> 0, k || F(d, 4, this.length), (this[d] | this[d + 1] << 8 | this[d + 2] << 16) + this[d + 3] * 16777216;
|
|
1130
|
+
}, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(d, k) {
|
|
1131
|
+
return d = d >>> 0, k || F(d, 4, this.length), this[d] * 16777216 + (this[d + 1] << 16 | this[d + 2] << 8 | this[d + 3]);
|
|
1132
1132
|
}, o.prototype.readBigUInt64LE = se(function(d) {
|
|
1133
1133
|
d = d >>> 0, Q(d, "offset");
|
|
1134
|
-
let
|
|
1135
|
-
(
|
|
1136
|
-
let B =
|
|
1134
|
+
let k = this[d], A = this[d + 7];
|
|
1135
|
+
(k === void 0 || A === void 0) && ge(d, this.length - 8);
|
|
1136
|
+
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;
|
|
1137
1137
|
return BigInt(B) + (BigInt(X) << BigInt(32));
|
|
1138
1138
|
}), o.prototype.readBigUInt64BE = se(function(d) {
|
|
1139
1139
|
d = d >>> 0, Q(d, "offset");
|
|
1140
|
-
let
|
|
1141
|
-
(
|
|
1142
|
-
let B =
|
|
1140
|
+
let k = this[d], A = this[d + 7];
|
|
1141
|
+
(k === void 0 || A === void 0) && ge(d, this.length - 8);
|
|
1142
|
+
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;
|
|
1143
1143
|
return (BigInt(B) << BigInt(32)) + BigInt(X);
|
|
1144
|
-
}), o.prototype.readIntLE = function(d,
|
|
1145
|
-
d = d >>> 0,
|
|
1144
|
+
}), o.prototype.readIntLE = function(d, k, A) {
|
|
1145
|
+
d = d >>> 0, k = k >>> 0, A || F(d, k, this.length);
|
|
1146
1146
|
let B = this[d], X = 1, he = 0;
|
|
1147
|
-
for (; ++he <
|
|
1148
|
-
return X *= 128, B >= X && (B -= Math.pow(2, 8 *
|
|
1149
|
-
}, o.prototype.readIntBE = function(d,
|
|
1150
|
-
d = d >>> 0,
|
|
1151
|
-
let B =
|
|
1147
|
+
for (; ++he < k && (X *= 256); ) B += this[d + he] * X;
|
|
1148
|
+
return X *= 128, B >= X && (B -= Math.pow(2, 8 * k)), B;
|
|
1149
|
+
}, o.prototype.readIntBE = function(d, k, A) {
|
|
1150
|
+
d = d >>> 0, k = k >>> 0, A || F(d, k, this.length);
|
|
1151
|
+
let B = k, X = 1, he = this[d + --B];
|
|
1152
1152
|
for (; B > 0 && (X *= 256); ) he += this[d + --B] * X;
|
|
1153
|
-
return X *= 128, he >= X && (he -= Math.pow(2, 8 *
|
|
1154
|
-
}, o.prototype.readInt8 = function(d,
|
|
1155
|
-
return d = d >>> 0,
|
|
1156
|
-
}, o.prototype.readInt16LE = function(d,
|
|
1157
|
-
d = d >>> 0,
|
|
1153
|
+
return X *= 128, he >= X && (he -= Math.pow(2, 8 * k)), he;
|
|
1154
|
+
}, o.prototype.readInt8 = function(d, k) {
|
|
1155
|
+
return d = d >>> 0, k || F(d, 1, this.length), this[d] & 128 ? (255 - this[d] + 1) * -1 : this[d];
|
|
1156
|
+
}, o.prototype.readInt16LE = function(d, k) {
|
|
1157
|
+
d = d >>> 0, k || F(d, 2, this.length);
|
|
1158
1158
|
let A = this[d] | this[d + 1] << 8;
|
|
1159
1159
|
return A & 32768 ? A | 4294901760 : A;
|
|
1160
|
-
}, o.prototype.readInt16BE = function(d,
|
|
1161
|
-
d = d >>> 0,
|
|
1160
|
+
}, o.prototype.readInt16BE = function(d, k) {
|
|
1161
|
+
d = d >>> 0, k || F(d, 2, this.length);
|
|
1162
1162
|
let A = this[d + 1] | this[d] << 8;
|
|
1163
1163
|
return A & 32768 ? A | 4294901760 : A;
|
|
1164
|
-
}, o.prototype.readInt32LE = function(d,
|
|
1165
|
-
return d = d >>> 0,
|
|
1166
|
-
}, o.prototype.readInt32BE = function(d,
|
|
1167
|
-
return d = d >>> 0,
|
|
1164
|
+
}, o.prototype.readInt32LE = function(d, k) {
|
|
1165
|
+
return d = d >>> 0, k || F(d, 4, this.length), this[d] | this[d + 1] << 8 | this[d + 2] << 16 | this[d + 3] << 24;
|
|
1166
|
+
}, o.prototype.readInt32BE = function(d, k) {
|
|
1167
|
+
return d = d >>> 0, k || F(d, 4, this.length), this[d] << 24 | this[d + 1] << 16 | this[d + 2] << 8 | this[d + 3];
|
|
1168
1168
|
}, o.prototype.readBigInt64LE = se(function(d) {
|
|
1169
1169
|
d = d >>> 0, Q(d, "offset");
|
|
1170
|
-
let
|
|
1171
|
-
(
|
|
1170
|
+
let k = this[d], A = this[d + 7];
|
|
1171
|
+
(k === void 0 || A === void 0) && ge(d, this.length - 8);
|
|
1172
1172
|
let B = this[d + 4] + this[d + 5] * 2 ** 8 + this[d + 6] * 2 ** 16 + (A << 24);
|
|
1173
|
-
return (BigInt(B) << BigInt(32)) + BigInt(
|
|
1173
|
+
return (BigInt(B) << BigInt(32)) + BigInt(k + this[++d] * 2 ** 8 + this[++d] * 2 ** 16 + this[++d] * 2 ** 24);
|
|
1174
1174
|
}), o.prototype.readBigInt64BE = se(function(d) {
|
|
1175
1175
|
d = d >>> 0, Q(d, "offset");
|
|
1176
|
-
let
|
|
1177
|
-
(
|
|
1178
|
-
let B = (
|
|
1176
|
+
let k = this[d], A = this[d + 7];
|
|
1177
|
+
(k === void 0 || A === void 0) && ge(d, this.length - 8);
|
|
1178
|
+
let B = (k << 24) + this[++d] * 2 ** 16 + this[++d] * 2 ** 8 + this[++d];
|
|
1179
1179
|
return (BigInt(B) << BigInt(32)) + BigInt(this[++d] * 2 ** 24 + this[++d] * 2 ** 16 + this[++d] * 2 ** 8 + A);
|
|
1180
|
-
}), o.prototype.readFloatLE = function(d,
|
|
1181
|
-
return d = d >>> 0,
|
|
1182
|
-
}, o.prototype.readFloatBE = function(d,
|
|
1183
|
-
return d = d >>> 0,
|
|
1184
|
-
}, o.prototype.readDoubleLE = function(d,
|
|
1185
|
-
return d = d >>> 0,
|
|
1186
|
-
}, o.prototype.readDoubleBE = function(d,
|
|
1187
|
-
return d = d >>> 0,
|
|
1180
|
+
}), o.prototype.readFloatLE = function(d, k) {
|
|
1181
|
+
return d = d >>> 0, k || F(d, 4, this.length), e.read(this, d, !0, 23, 4);
|
|
1182
|
+
}, o.prototype.readFloatBE = function(d, k) {
|
|
1183
|
+
return d = d >>> 0, k || F(d, 4, this.length), e.read(this, d, !1, 23, 4);
|
|
1184
|
+
}, o.prototype.readDoubleLE = function(d, k) {
|
|
1185
|
+
return d = d >>> 0, k || F(d, 8, this.length), e.read(this, d, !0, 52, 8);
|
|
1186
|
+
}, o.prototype.readDoubleBE = function(d, k) {
|
|
1187
|
+
return d = d >>> 0, k || F(d, 8, this.length), e.read(this, d, !1, 52, 8);
|
|
1188
1188
|
};
|
|
1189
|
-
function Z(d,
|
|
1189
|
+
function Z(d, k, A, B, X, he) {
|
|
1190
1190
|
if (!o.isBuffer(d)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
1191
|
-
if (
|
|
1191
|
+
if (k > X || k < he) throw new RangeError('"value" argument is out of bounds');
|
|
1192
1192
|
if (A + B > d.length) throw new RangeError("Index out of range");
|
|
1193
1193
|
}
|
|
1194
|
-
o.prototype.writeUintLE = o.prototype.writeUIntLE = function(d,
|
|
1195
|
-
if (d = +d,
|
|
1194
|
+
o.prototype.writeUintLE = o.prototype.writeUIntLE = function(d, k, A, B) {
|
|
1195
|
+
if (d = +d, k = k >>> 0, A = A >>> 0, !B) {
|
|
1196
1196
|
let ke = Math.pow(2, 8 * A) - 1;
|
|
1197
|
-
Z(this, d,
|
|
1197
|
+
Z(this, d, k, A, ke, 0);
|
|
1198
1198
|
}
|
|
1199
1199
|
let X = 1, he = 0;
|
|
1200
|
-
for (this[
|
|
1201
|
-
return
|
|
1202
|
-
}, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(d,
|
|
1203
|
-
if (d = +d,
|
|
1200
|
+
for (this[k] = d & 255; ++he < A && (X *= 256); ) this[k + he] = d / X & 255;
|
|
1201
|
+
return k + A;
|
|
1202
|
+
}, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(d, k, A, B) {
|
|
1203
|
+
if (d = +d, k = k >>> 0, A = A >>> 0, !B) {
|
|
1204
1204
|
let ke = Math.pow(2, 8 * A) - 1;
|
|
1205
|
-
Z(this, d,
|
|
1205
|
+
Z(this, d, k, A, ke, 0);
|
|
1206
1206
|
}
|
|
1207
1207
|
let X = A - 1, he = 1;
|
|
1208
|
-
for (this[
|
|
1209
|
-
return
|
|
1210
|
-
}, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(d,
|
|
1211
|
-
return d = +d,
|
|
1212
|
-
}, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(d,
|
|
1213
|
-
return d = +d,
|
|
1214
|
-
}, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(d,
|
|
1215
|
-
return d = +d,
|
|
1216
|
-
}, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(d,
|
|
1217
|
-
return d = +d,
|
|
1218
|
-
}, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(d,
|
|
1219
|
-
return d = +d,
|
|
1208
|
+
for (this[k + X] = d & 255; --X >= 0 && (he *= 256); ) this[k + X] = d / he & 255;
|
|
1209
|
+
return k + A;
|
|
1210
|
+
}, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(d, k, A) {
|
|
1211
|
+
return d = +d, k = k >>> 0, A || Z(this, d, k, 1, 255, 0), this[k] = d & 255, k + 1;
|
|
1212
|
+
}, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(d, k, A) {
|
|
1213
|
+
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;
|
|
1214
|
+
}, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(d, k, A) {
|
|
1215
|
+
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;
|
|
1216
|
+
}, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(d, k, A) {
|
|
1217
|
+
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;
|
|
1218
|
+
}, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(d, k, A) {
|
|
1219
|
+
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;
|
|
1220
1220
|
};
|
|
1221
|
-
function M(d,
|
|
1222
|
-
K(
|
|
1223
|
-
let he = Number(
|
|
1221
|
+
function M(d, k, A, B, X) {
|
|
1222
|
+
K(k, B, X, d, A, 7);
|
|
1223
|
+
let he = Number(k & BigInt(4294967295));
|
|
1224
1224
|
d[A++] = he, he = he >> 8, d[A++] = he, he = he >> 8, d[A++] = he, he = he >> 8, d[A++] = he;
|
|
1225
|
-
let ke = Number(
|
|
1225
|
+
let ke = Number(k >> BigInt(32) & BigInt(4294967295));
|
|
1226
1226
|
return d[A++] = ke, ke = ke >> 8, d[A++] = ke, ke = ke >> 8, d[A++] = ke, ke = ke >> 8, d[A++] = ke, A;
|
|
1227
1227
|
}
|
|
1228
|
-
function J(d,
|
|
1229
|
-
K(
|
|
1230
|
-
let he = Number(
|
|
1228
|
+
function J(d, k, A, B, X) {
|
|
1229
|
+
K(k, B, X, d, A, 7);
|
|
1230
|
+
let he = Number(k & BigInt(4294967295));
|
|
1231
1231
|
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;
|
|
1232
|
-
let ke = Number(
|
|
1232
|
+
let ke = Number(k >> BigInt(32) & BigInt(4294967295));
|
|
1233
1233
|
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;
|
|
1234
1234
|
}
|
|
1235
|
-
o.prototype.writeBigUInt64LE = se(function(d,
|
|
1236
|
-
return M(this, d,
|
|
1237
|
-
}), o.prototype.writeBigUInt64BE = se(function(d,
|
|
1238
|
-
return J(this, d,
|
|
1239
|
-
}), o.prototype.writeIntLE = function(d,
|
|
1240
|
-
if (d = +d,
|
|
1235
|
+
o.prototype.writeBigUInt64LE = se(function(d, k = 0) {
|
|
1236
|
+
return M(this, d, k, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1237
|
+
}), o.prototype.writeBigUInt64BE = se(function(d, k = 0) {
|
|
1238
|
+
return J(this, d, k, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1239
|
+
}), o.prototype.writeIntLE = function(d, k, A, B) {
|
|
1240
|
+
if (d = +d, k = k >>> 0, !B) {
|
|
1241
1241
|
let z = Math.pow(2, 8 * A - 1);
|
|
1242
|
-
Z(this, d,
|
|
1242
|
+
Z(this, d, k, A, z - 1, -z);
|
|
1243
1243
|
}
|
|
1244
1244
|
let X = 0, he = 1, ke = 0;
|
|
1245
|
-
for (this[
|
|
1246
|
-
return
|
|
1247
|
-
}, o.prototype.writeIntBE = function(d,
|
|
1248
|
-
if (d = +d,
|
|
1245
|
+
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;
|
|
1246
|
+
return k + A;
|
|
1247
|
+
}, o.prototype.writeIntBE = function(d, k, A, B) {
|
|
1248
|
+
if (d = +d, k = k >>> 0, !B) {
|
|
1249
1249
|
let z = Math.pow(2, 8 * A - 1);
|
|
1250
|
-
Z(this, d,
|
|
1250
|
+
Z(this, d, k, A, z - 1, -z);
|
|
1251
1251
|
}
|
|
1252
1252
|
let X = A - 1, he = 1, ke = 0;
|
|
1253
|
-
for (this[
|
|
1254
|
-
return
|
|
1255
|
-
}, o.prototype.writeInt8 = function(d,
|
|
1256
|
-
return d = +d,
|
|
1257
|
-
}, o.prototype.writeInt16LE = function(d,
|
|
1258
|
-
return d = +d,
|
|
1259
|
-
}, o.prototype.writeInt16BE = function(d,
|
|
1260
|
-
return d = +d,
|
|
1261
|
-
}, o.prototype.writeInt32LE = function(d,
|
|
1262
|
-
return d = +d,
|
|
1263
|
-
}, o.prototype.writeInt32BE = function(d,
|
|
1264
|
-
return d = +d,
|
|
1265
|
-
}, o.prototype.writeBigInt64LE = se(function(d,
|
|
1266
|
-
return M(this, d,
|
|
1267
|
-
}), o.prototype.writeBigInt64BE = se(function(d,
|
|
1268
|
-
return J(this, d,
|
|
1253
|
+
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;
|
|
1254
|
+
return k + A;
|
|
1255
|
+
}, o.prototype.writeInt8 = function(d, k, A) {
|
|
1256
|
+
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;
|
|
1257
|
+
}, o.prototype.writeInt16LE = function(d, k, A) {
|
|
1258
|
+
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;
|
|
1259
|
+
}, o.prototype.writeInt16BE = function(d, k, A) {
|
|
1260
|
+
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;
|
|
1261
|
+
}, o.prototype.writeInt32LE = function(d, k, A) {
|
|
1262
|
+
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;
|
|
1263
|
+
}, o.prototype.writeInt32BE = function(d, k, A) {
|
|
1264
|
+
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;
|
|
1265
|
+
}, o.prototype.writeBigInt64LE = se(function(d, k = 0) {
|
|
1266
|
+
return M(this, d, k, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1267
|
+
}), o.prototype.writeBigInt64BE = se(function(d, k = 0) {
|
|
1268
|
+
return J(this, d, k, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1269
1269
|
});
|
|
1270
|
-
function be(d,
|
|
1270
|
+
function be(d, k, A, B, X, he) {
|
|
1271
1271
|
if (A + B > d.length) throw new RangeError("Index out of range");
|
|
1272
1272
|
if (A < 0) throw new RangeError("Index out of range");
|
|
1273
1273
|
}
|
|
1274
|
-
function te(d,
|
|
1275
|
-
return
|
|
1274
|
+
function te(d, k, A, B, X) {
|
|
1275
|
+
return k = +k, A = A >>> 0, X || be(d, k, A, 4), e.write(d, k, A, B, 23, 4), A + 4;
|
|
1276
1276
|
}
|
|
1277
|
-
o.prototype.writeFloatLE = function(d,
|
|
1278
|
-
return te(this, d,
|
|
1279
|
-
}, o.prototype.writeFloatBE = function(d,
|
|
1280
|
-
return te(this, d,
|
|
1277
|
+
o.prototype.writeFloatLE = function(d, k, A) {
|
|
1278
|
+
return te(this, d, k, !0, A);
|
|
1279
|
+
}, o.prototype.writeFloatBE = function(d, k, A) {
|
|
1280
|
+
return te(this, d, k, !1, A);
|
|
1281
1281
|
};
|
|
1282
|
-
function we(d,
|
|
1283
|
-
return
|
|
1284
|
-
}
|
|
1285
|
-
o.prototype.writeDoubleLE = function(d,
|
|
1286
|
-
return we(this, d,
|
|
1287
|
-
}, o.prototype.writeDoubleBE = function(d,
|
|
1288
|
-
return we(this, d,
|
|
1289
|
-
}, o.prototype.copy = function(d,
|
|
1282
|
+
function we(d, k, A, B, X) {
|
|
1283
|
+
return k = +k, A = A >>> 0, X || be(d, k, A, 8), e.write(d, k, A, B, 52, 8), A + 8;
|
|
1284
|
+
}
|
|
1285
|
+
o.prototype.writeDoubleLE = function(d, k, A) {
|
|
1286
|
+
return we(this, d, k, !0, A);
|
|
1287
|
+
}, o.prototype.writeDoubleBE = function(d, k, A) {
|
|
1288
|
+
return we(this, d, k, !1, A);
|
|
1289
|
+
}, o.prototype.copy = function(d, k, A, B) {
|
|
1290
1290
|
if (!o.isBuffer(d)) throw new TypeError("argument should be a Buffer");
|
|
1291
|
-
if (A || (A = 0), !B && B !== 0 && (B = this.length),
|
|
1292
|
-
if (
|
|
1291
|
+
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;
|
|
1292
|
+
if (k < 0) throw new RangeError("targetStart out of bounds");
|
|
1293
1293
|
if (A < 0 || A >= this.length) throw new RangeError("Index out of range");
|
|
1294
1294
|
if (B < 0) throw new RangeError("sourceEnd out of bounds");
|
|
1295
|
-
B > this.length && (B = this.length), d.length -
|
|
1295
|
+
B > this.length && (B = this.length), d.length - k < B - A && (B = d.length - k + A);
|
|
1296
1296
|
let X = B - A;
|
|
1297
|
-
return this === d && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(
|
|
1298
|
-
}, o.prototype.fill = function(d,
|
|
1297
|
+
return this === d && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(k, A, B) : Uint8Array.prototype.set.call(d, this.subarray(A, B), k), X;
|
|
1298
|
+
}, o.prototype.fill = function(d, k, A, B) {
|
|
1299
1299
|
if (typeof d == "string") {
|
|
1300
|
-
if (typeof
|
|
1300
|
+
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");
|
|
1301
1301
|
if (typeof B == "string" && !o.isEncoding(B)) throw new TypeError("Unknown encoding: " + B);
|
|
1302
1302
|
if (d.length === 1) {
|
|
1303
1303
|
let he = d.charCodeAt(0);
|
|
1304
1304
|
(B === "utf8" && he < 128 || B === "latin1") && (d = he);
|
|
1305
1305
|
}
|
|
1306
1306
|
} else typeof d == "number" ? d = d & 255 : typeof d == "boolean" && (d = Number(d));
|
|
1307
|
-
if (
|
|
1308
|
-
if (A <=
|
|
1309
|
-
|
|
1307
|
+
if (k < 0 || this.length < k || this.length < A) throw new RangeError("Out of range index");
|
|
1308
|
+
if (A <= k) return this;
|
|
1309
|
+
k = k >>> 0, A = A === void 0 ? this.length : A >>> 0, d || (d = 0);
|
|
1310
1310
|
let X;
|
|
1311
|
-
if (typeof d == "number") for (X =
|
|
1311
|
+
if (typeof d == "number") for (X = k; X < A; ++X) this[X] = d;
|
|
1312
1312
|
else {
|
|
1313
1313
|
let he = o.isBuffer(d) ? d : o.from(d, B), ke = he.length;
|
|
1314
1314
|
if (ke === 0) throw new TypeError('The value "' + d + '" is invalid for argument "value"');
|
|
1315
|
-
for (X = 0; X < A -
|
|
1315
|
+
for (X = 0; X < A - k; ++X) this[X + k] = he[X % ke];
|
|
1316
1316
|
}
|
|
1317
1317
|
return this;
|
|
1318
1318
|
};
|
|
1319
1319
|
let G = {};
|
|
1320
|
-
function j(d,
|
|
1320
|
+
function j(d, k, A) {
|
|
1321
1321
|
G[d] = class extends A {
|
|
1322
1322
|
constructor() {
|
|
1323
|
-
super(), Object.defineProperty(this, "message", { value:
|
|
1323
|
+
super(), Object.defineProperty(this, "message", { value: k.apply(this, arguments), writable: !0, configurable: !0 }), this.name = `${this.name} [${d}]`, this.stack, delete this.name;
|
|
1324
1324
|
}
|
|
1325
1325
|
get code() {
|
|
1326
1326
|
return d;
|
|
@@ -1335,32 +1335,32 @@ function rc() {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
j("ERR_BUFFER_OUT_OF_BOUNDS", function(d) {
|
|
1337
1337
|
return d ? `${d} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
1338
|
-
}, RangeError), j("ERR_INVALID_ARG_TYPE", function(d,
|
|
1339
|
-
return `The "${d}" argument must be of type number. Received type ${typeof
|
|
1340
|
-
}, TypeError), j("ERR_OUT_OF_RANGE", function(d,
|
|
1338
|
+
}, RangeError), j("ERR_INVALID_ARG_TYPE", function(d, k) {
|
|
1339
|
+
return `The "${d}" argument must be of type number. Received type ${typeof k}`;
|
|
1340
|
+
}, TypeError), j("ERR_OUT_OF_RANGE", function(d, k, A) {
|
|
1341
1341
|
let B = `The value of "${d}" is out of range.`, X = A;
|
|
1342
|
-
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 ${
|
|
1342
|
+
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;
|
|
1343
1343
|
}, RangeError);
|
|
1344
1344
|
function ne(d) {
|
|
1345
|
-
let
|
|
1346
|
-
for (; A >= B + 4; A -= 3)
|
|
1347
|
-
return `${d.slice(0, A)}${
|
|
1345
|
+
let k = "", A = d.length, B = d[0] === "-" ? 1 : 0;
|
|
1346
|
+
for (; A >= B + 4; A -= 3) k = `_${d.slice(A - 3, A)}${k}`;
|
|
1347
|
+
return `${d.slice(0, A)}${k}`;
|
|
1348
1348
|
}
|
|
1349
|
-
function W(d,
|
|
1350
|
-
Q(
|
|
1349
|
+
function W(d, k, A) {
|
|
1350
|
+
Q(k, "offset"), (d[k] === void 0 || d[k + A] === void 0) && ge(k, d.length - (A + 1));
|
|
1351
1351
|
}
|
|
1352
|
-
function K(d,
|
|
1353
|
-
if (d > A || d <
|
|
1354
|
-
let ke = typeof
|
|
1355
|
-
throw
|
|
1352
|
+
function K(d, k, A, B, X, he) {
|
|
1353
|
+
if (d > A || d < k) {
|
|
1354
|
+
let ke = typeof k == "bigint" ? "n" : "", z;
|
|
1355
|
+
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 G.ERR_OUT_OF_RANGE("value", z, d);
|
|
1356
1356
|
}
|
|
1357
1357
|
W(B, X, he);
|
|
1358
1358
|
}
|
|
1359
|
-
function Q(d,
|
|
1360
|
-
if (typeof d != "number") throw new G.ERR_INVALID_ARG_TYPE(
|
|
1359
|
+
function Q(d, k) {
|
|
1360
|
+
if (typeof d != "number") throw new G.ERR_INVALID_ARG_TYPE(k, "number", d);
|
|
1361
1361
|
}
|
|
1362
|
-
function ge(d,
|
|
1363
|
-
throw Math.floor(d) !== d ? (Q(d, A), new G.ERR_OUT_OF_RANGE("offset", "an integer", d)) :
|
|
1362
|
+
function ge(d, k, A) {
|
|
1363
|
+
throw Math.floor(d) !== d ? (Q(d, A), new G.ERR_OUT_OF_RANGE("offset", "an integer", d)) : k < 0 ? new G.ERR_BUFFER_OUT_OF_BOUNDS() : new G.ERR_OUT_OF_RANGE("offset", `>= 0 and <= ${k}`, d);
|
|
1364
1364
|
}
|
|
1365
1365
|
let oe = /[^+/0-9A-Za-z-_]/g;
|
|
1366
1366
|
function R(d) {
|
|
@@ -1368,75 +1368,75 @@ function rc() {
|
|
|
1368
1368
|
for (; d.length % 4 !== 0; ) d = d + "=";
|
|
1369
1369
|
return d;
|
|
1370
1370
|
}
|
|
1371
|
-
function $(d,
|
|
1372
|
-
|
|
1371
|
+
function $(d, k) {
|
|
1372
|
+
k = k || 1 / 0;
|
|
1373
1373
|
let A, B = d.length, X = null, he = [];
|
|
1374
1374
|
for (let ke = 0; ke < B; ++ke) {
|
|
1375
1375
|
if (A = d.charCodeAt(ke), A > 55295 && A < 57344) {
|
|
1376
1376
|
if (!X) {
|
|
1377
1377
|
if (A > 56319) {
|
|
1378
|
-
(
|
|
1378
|
+
(k -= 3) > -1 && he.push(239, 191, 189);
|
|
1379
1379
|
continue;
|
|
1380
1380
|
} else if (ke + 1 === B) {
|
|
1381
|
-
(
|
|
1381
|
+
(k -= 3) > -1 && he.push(239, 191, 189);
|
|
1382
1382
|
continue;
|
|
1383
1383
|
}
|
|
1384
1384
|
X = A;
|
|
1385
1385
|
continue;
|
|
1386
1386
|
}
|
|
1387
1387
|
if (A < 56320) {
|
|
1388
|
-
(
|
|
1388
|
+
(k -= 3) > -1 && he.push(239, 191, 189), X = A;
|
|
1389
1389
|
continue;
|
|
1390
1390
|
}
|
|
1391
1391
|
A = (X - 55296 << 10 | A - 56320) + 65536;
|
|
1392
|
-
} else X && (
|
|
1392
|
+
} else X && (k -= 3) > -1 && he.push(239, 191, 189);
|
|
1393
1393
|
if (X = null, A < 128) {
|
|
1394
|
-
if ((
|
|
1394
|
+
if ((k -= 1) < 0) break;
|
|
1395
1395
|
he.push(A);
|
|
1396
1396
|
} else if (A < 2048) {
|
|
1397
|
-
if ((
|
|
1397
|
+
if ((k -= 2) < 0) break;
|
|
1398
1398
|
he.push(A >> 6 | 192, A & 63 | 128);
|
|
1399
1399
|
} else if (A < 65536) {
|
|
1400
|
-
if ((
|
|
1400
|
+
if ((k -= 3) < 0) break;
|
|
1401
1401
|
he.push(A >> 12 | 224, A >> 6 & 63 | 128, A & 63 | 128);
|
|
1402
1402
|
} else if (A < 1114112) {
|
|
1403
|
-
if ((
|
|
1403
|
+
if ((k -= 4) < 0) break;
|
|
1404
1404
|
he.push(A >> 18 | 240, A >> 12 & 63 | 128, A >> 6 & 63 | 128, A & 63 | 128);
|
|
1405
1405
|
} else throw new Error("Invalid code point");
|
|
1406
1406
|
}
|
|
1407
1407
|
return he;
|
|
1408
1408
|
}
|
|
1409
1409
|
function ee(d) {
|
|
1410
|
-
let
|
|
1411
|
-
for (let A = 0; A < d.length; ++A)
|
|
1412
|
-
return
|
|
1410
|
+
let k = [];
|
|
1411
|
+
for (let A = 0; A < d.length; ++A) k.push(d.charCodeAt(A) & 255);
|
|
1412
|
+
return k;
|
|
1413
1413
|
}
|
|
1414
|
-
function de(d,
|
|
1414
|
+
function de(d, k) {
|
|
1415
1415
|
let A, B, X, he = [];
|
|
1416
|
-
for (let ke = 0; ke < d.length && !((
|
|
1416
|
+
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);
|
|
1417
1417
|
return he;
|
|
1418
1418
|
}
|
|
1419
1419
|
function fe(d) {
|
|
1420
1420
|
return a.toByteArray(R(d));
|
|
1421
1421
|
}
|
|
1422
|
-
function ye(d,
|
|
1422
|
+
function ye(d, k, A, B) {
|
|
1423
1423
|
let X;
|
|
1424
|
-
for (X = 0; X < B && !(X + A >=
|
|
1424
|
+
for (X = 0; X < B && !(X + A >= k.length || X >= d.length); ++X) k[X + A] = d[X];
|
|
1425
1425
|
return X;
|
|
1426
1426
|
}
|
|
1427
|
-
function H(d,
|
|
1428
|
-
return d instanceof
|
|
1427
|
+
function H(d, k) {
|
|
1428
|
+
return d instanceof k || d != null && d.constructor != null && d.constructor.name != null && d.constructor.name === k.name;
|
|
1429
1429
|
}
|
|
1430
1430
|
function me(d) {
|
|
1431
1431
|
return d !== d;
|
|
1432
1432
|
}
|
|
1433
1433
|
let ve = (function() {
|
|
1434
|
-
let d = "0123456789abcdef",
|
|
1434
|
+
let d = "0123456789abcdef", k = new Array(256);
|
|
1435
1435
|
for (let A = 0; A < 16; ++A) {
|
|
1436
1436
|
let B = A * 16;
|
|
1437
|
-
for (let X = 0; X < 16; ++X)
|
|
1437
|
+
for (let X = 0; X < 16; ++X) k[B + X] = d[A] + d[X];
|
|
1438
1438
|
}
|
|
1439
|
-
return
|
|
1439
|
+
return k;
|
|
1440
1440
|
})();
|
|
1441
1441
|
function se(d) {
|
|
1442
1442
|
return typeof BigInt > "u" ? Te : d;
|
|
@@ -1543,24 +1543,24 @@ var at, Nr, ea, ta, Be = Ve(() => {
|
|
|
1543
1543
|
}), We = pe((a, e) => {
|
|
1544
1544
|
le(), ue(), ce();
|
|
1545
1545
|
var { format: t, inspect: r } = ra(), { AggregateError: i } = je(), n = globalThis.AggregateError || i, o = /* @__PURE__ */ Symbol("kIsNodeError"), s = ["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"], l = /^([A-Z][a-z0-9]*)+$/, c = "__node_internal_", u = {};
|
|
1546
|
-
function h(m,
|
|
1547
|
-
if (!m) throw new u.ERR_INTERNAL_ASSERTION(
|
|
1546
|
+
function h(m, _) {
|
|
1547
|
+
if (!m) throw new u.ERR_INTERNAL_ASSERTION(_);
|
|
1548
1548
|
}
|
|
1549
1549
|
function p(m) {
|
|
1550
|
-
let
|
|
1551
|
-
for (; x >= v + 4; x -= 3)
|
|
1552
|
-
return `${m.slice(0, x)}${
|
|
1550
|
+
let _ = "", x = m.length, v = m[0] === "-" ? 1 : 0;
|
|
1551
|
+
for (; x >= v + 4; x -= 3) _ = `_${m.slice(x - 3, x)}${_}`;
|
|
1552
|
+
return `${m.slice(0, x)}${_}`;
|
|
1553
1553
|
}
|
|
1554
|
-
function b(m,
|
|
1555
|
-
if (typeof
|
|
1556
|
-
let v = (
|
|
1557
|
-
return h(v === x.length, `Code: ${m}; The provided arguments length (${x.length}) does not match the required ones (${v}).`), x.length === 0 ?
|
|
1554
|
+
function b(m, _, x) {
|
|
1555
|
+
if (typeof _ == "function") return h(_.length <= x.length, `Code: ${m}; The provided arguments length (${x.length}) does not match the required ones (${_.length}).`), _(...x);
|
|
1556
|
+
let v = (_.match(/%[dfijoOs]/g) || []).length;
|
|
1557
|
+
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);
|
|
1558
1558
|
}
|
|
1559
|
-
function f(m,
|
|
1559
|
+
function f(m, _, x) {
|
|
1560
1560
|
x || (x = Error);
|
|
1561
1561
|
class v extends x {
|
|
1562
1562
|
constructor(...S) {
|
|
1563
|
-
super(b(m,
|
|
1563
|
+
super(b(m, _, S));
|
|
1564
1564
|
}
|
|
1565
1565
|
toString() {
|
|
1566
1566
|
return `${this.name} [${m}]: ${this.message}`;
|
|
@@ -1571,29 +1571,29 @@ var at, Nr, ea, ta, Be = Ve(() => {
|
|
|
1571
1571
|
}, writable: !0, enumerable: !1, configurable: !0 } }), v.prototype.code = m, v.prototype[o] = !0, u[m] = v;
|
|
1572
1572
|
}
|
|
1573
1573
|
function g(m) {
|
|
1574
|
-
let
|
|
1575
|
-
return Object.defineProperty(m, "name", { value:
|
|
1574
|
+
let _ = c + m.name;
|
|
1575
|
+
return Object.defineProperty(m, "name", { value: _ }), m;
|
|
1576
1576
|
}
|
|
1577
|
-
function y(m,
|
|
1578
|
-
if (m &&
|
|
1579
|
-
if (Array.isArray(
|
|
1580
|
-
let x = new n([
|
|
1581
|
-
return x.code =
|
|
1577
|
+
function y(m, _) {
|
|
1578
|
+
if (m && _ && m !== _) {
|
|
1579
|
+
if (Array.isArray(_.errors)) return _.errors.push(m), _;
|
|
1580
|
+
let x = new n([_, m], _.message);
|
|
1581
|
+
return x.code = _.code, x;
|
|
1582
1582
|
}
|
|
1583
|
-
return m ||
|
|
1583
|
+
return m || _;
|
|
1584
1584
|
}
|
|
1585
|
-
var
|
|
1586
|
-
constructor(m = "The operation was aborted",
|
|
1587
|
-
if (
|
|
1588
|
-
super(m,
|
|
1585
|
+
var w = class extends Error {
|
|
1586
|
+
constructor(m = "The operation was aborted", _ = void 0) {
|
|
1587
|
+
if (_ !== void 0 && typeof _ != "object") throw new u.ERR_INVALID_ARG_TYPE("options", "Object", _);
|
|
1588
|
+
super(m, _), this.code = "ABORT_ERR", this.name = "AbortError";
|
|
1589
1589
|
}
|
|
1590
1590
|
};
|
|
1591
|
-
f("ERR_ASSERTION", "%s", Error), f("ERR_INVALID_ARG_TYPE", (m,
|
|
1592
|
-
h(typeof m == "string", "'name' must be a string"), Array.isArray(
|
|
1591
|
+
f("ERR_ASSERTION", "%s", Error), f("ERR_INVALID_ARG_TYPE", (m, _, x) => {
|
|
1592
|
+
h(typeof m == "string", "'name' must be a string"), Array.isArray(_) || (_ = [_]);
|
|
1593
1593
|
let v = "The ";
|
|
1594
1594
|
m.endsWith(" argument") ? v += `${m} ` : v += `"${m}" ${m.includes(".") ? "property" : "argument"} `, v += "must be ";
|
|
1595
1595
|
let E = [], S = [], I = [];
|
|
1596
|
-
for (let P of
|
|
1596
|
+
for (let P of _) h(typeof P == "string", "All expected entries have to be of type string"), s.includes(P) ? E.push(P.toLowerCase()) : l.test(P) ? S.push(P) : (h(P !== "object", 'The value "object" should be written as "Object"'), I.push(P));
|
|
1597
1597
|
if (S.length > 0) {
|
|
1598
1598
|
let P = E.indexOf("object");
|
|
1599
1599
|
P !== -1 && (E.splice(E, P, 1), S.push("Object"));
|
|
@@ -1656,33 +1656,33 @@ var at, Nr, ea, ta, Be = Ve(() => {
|
|
|
1656
1656
|
P.length > 25 && (P = `${P.slice(0, 25)}...`), v += `. Received type ${typeof x} (${P})`;
|
|
1657
1657
|
}
|
|
1658
1658
|
return v;
|
|
1659
|
-
}, TypeError), f("ERR_INVALID_ARG_VALUE", (m,
|
|
1660
|
-
let v = r(
|
|
1659
|
+
}, TypeError), f("ERR_INVALID_ARG_VALUE", (m, _, x = "is invalid") => {
|
|
1660
|
+
let v = r(_);
|
|
1661
1661
|
return v.length > 128 && (v = v.slice(0, 128) + "..."), `The ${m.includes(".") ? "property" : "argument"} '${m}' ${x}. Received ${v}`;
|
|
1662
|
-
}, TypeError), f("ERR_INVALID_RETURN_VALUE", (m,
|
|
1662
|
+
}, TypeError), f("ERR_INVALID_RETURN_VALUE", (m, _, x) => {
|
|
1663
1663
|
var v;
|
|
1664
1664
|
let E = x != null && (v = x.constructor) !== null && v !== void 0 && v.name ? `instance of ${x.constructor.name}` : `type ${typeof x}`;
|
|
1665
|
-
return `Expected ${m} to be returned from the "${
|
|
1665
|
+
return `Expected ${m} to be returned from the "${_}" function but got ${E}.`;
|
|
1666
1666
|
}, TypeError), f("ERR_MISSING_ARGS", (...m) => {
|
|
1667
1667
|
h(m.length > 0, "At least one arg needs to be specified");
|
|
1668
|
-
let
|
|
1668
|
+
let _, x = m.length;
|
|
1669
1669
|
switch (m = (Array.isArray(m) ? m : [m]).map((v) => `"${v}"`).join(" or "), x) {
|
|
1670
1670
|
case 1:
|
|
1671
|
-
|
|
1671
|
+
_ += `The ${m[0]} argument`;
|
|
1672
1672
|
break;
|
|
1673
1673
|
case 2:
|
|
1674
|
-
|
|
1674
|
+
_ += `The ${m[0]} and ${m[1]} arguments`;
|
|
1675
1675
|
break;
|
|
1676
1676
|
default:
|
|
1677
1677
|
{
|
|
1678
1678
|
let v = m.pop();
|
|
1679
|
-
|
|
1679
|
+
_ += `The ${m.join(", ")}, and ${v} arguments`;
|
|
1680
1680
|
}
|
|
1681
1681
|
break;
|
|
1682
1682
|
}
|
|
1683
|
-
return `${
|
|
1684
|
-
}, TypeError), f("ERR_OUT_OF_RANGE", (m,
|
|
1685
|
-
h(
|
|
1683
|
+
return `${_} must be specified`;
|
|
1684
|
+
}, TypeError), f("ERR_OUT_OF_RANGE", (m, _, x) => {
|
|
1685
|
+
h(_, 'Missing "range" argument');
|
|
1686
1686
|
let v;
|
|
1687
1687
|
if (Number.isInteger(x) && Math.abs(x) > 2 ** 32) v = p(String(x));
|
|
1688
1688
|
else if (typeof x == "bigint") {
|
|
@@ -1690,8 +1690,8 @@ var at, Nr, ea, ta, Be = Ve(() => {
|
|
|
1690
1690
|
let E = BigInt(2) ** BigInt(32);
|
|
1691
1691
|
(x > E || x < -E) && (v = p(v)), v += "n";
|
|
1692
1692
|
} else v = r(x);
|
|
1693
|
-
return `The value of "${m}" is out of range. It must be ${
|
|
1694
|
-
}, 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:
|
|
1693
|
+
return `The value of "${m}" is out of range. It must be ${_}. Received ${v}`;
|
|
1694
|
+
}, 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 };
|
|
1695
1695
|
}), er = pe((a, e) => {
|
|
1696
1696
|
le(), ue(), ce();
|
|
1697
1697
|
var { AbortController: t, AbortSignal: r } = typeof self < "u" ? self : typeof window < "u" ? window : void 0;
|
|
@@ -1718,7 +1718,7 @@ function ic() {
|
|
|
1718
1718
|
function n() {
|
|
1719
1719
|
n.init.call(this);
|
|
1720
1720
|
}
|
|
1721
|
-
Yt = n, Yt.once =
|
|
1721
|
+
Yt = n, Yt.once = w, n.EventEmitter = n, n.prototype._events = void 0, n.prototype._eventsCount = 0, n.prototype._maxListeners = void 0;
|
|
1722
1722
|
var o = 10;
|
|
1723
1723
|
function s(x) {
|
|
1724
1724
|
if (typeof x != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof x);
|
|
@@ -1846,7 +1846,7 @@ function ic() {
|
|
|
1846
1846
|
for (var v = new Array(x.length), E = 0; E < v.length; ++E) v[E] = x[E].listener || x[E];
|
|
1847
1847
|
return v;
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function w(x, v) {
|
|
1850
1850
|
return new Promise(function(E, S) {
|
|
1851
1851
|
function I(P) {
|
|
1852
1852
|
x.removeListener(v, O), S(P);
|
|
@@ -1854,13 +1854,13 @@ function ic() {
|
|
|
1854
1854
|
function O() {
|
|
1855
1855
|
typeof x.removeListener == "function" && x.removeListener("error", I), E([].slice.call(arguments));
|
|
1856
1856
|
}
|
|
1857
|
-
|
|
1857
|
+
_(x, v, O, { once: !0 }), v !== "error" && m(x, I, { once: !0 });
|
|
1858
1858
|
});
|
|
1859
1859
|
}
|
|
1860
1860
|
function m(x, v, E) {
|
|
1861
|
-
typeof x.on == "function" &&
|
|
1861
|
+
typeof x.on == "function" && _(x, "error", v, E);
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function _(x, v, E, S) {
|
|
1864
1864
|
if (typeof x.on == "function") S.once ? x.once(v, E) : x.on(v, E);
|
|
1865
1865
|
else if (typeof x.addEventListener == "function") x.addEventListener(v, function I(O) {
|
|
1866
1866
|
S.once && x.removeEventListener(v, I), E(O);
|
|
@@ -1916,24 +1916,24 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
1916
1916
|
return y instanceof p;
|
|
1917
1917
|
} : function(y) {
|
|
1918
1918
|
return !1;
|
|
1919
|
-
}, f = (y,
|
|
1920
|
-
if (y !== void 0 && (y === null || typeof y != "object" || !("aborted" in y))) throw new n(
|
|
1921
|
-
}, g = (y,
|
|
1922
|
-
if (typeof y != "function") throw new n(
|
|
1919
|
+
}, f = (y, w) => {
|
|
1920
|
+
if (y !== void 0 && (y === null || typeof y != "object" || !("aborted" in y))) throw new n(w, "AbortSignal", y);
|
|
1921
|
+
}, g = (y, w) => {
|
|
1922
|
+
if (typeof y != "function") throw new n(w, "Function", y);
|
|
1923
1923
|
};
|
|
1924
1924
|
e.exports = { AggregateError: s, kEmptyObject: Object.freeze({}), once(y) {
|
|
1925
|
-
let
|
|
1925
|
+
let w = !1;
|
|
1926
1926
|
return function(...m) {
|
|
1927
|
-
|
|
1927
|
+
w || (w = !0, y.apply(this, m));
|
|
1928
1928
|
};
|
|
1929
1929
|
}, createDeferredPromise: function() {
|
|
1930
|
-
let y,
|
|
1931
|
-
return { promise: new Promise((m,
|
|
1932
|
-
y = m,
|
|
1933
|
-
}), resolve: y, reject:
|
|
1930
|
+
let y, w;
|
|
1931
|
+
return { promise: new Promise((m, _) => {
|
|
1932
|
+
y = m, w = _;
|
|
1933
|
+
}), resolve: y, reject: w };
|
|
1934
1934
|
}, promisify(y) {
|
|
1935
|
-
return new Promise((
|
|
1936
|
-
y((
|
|
1935
|
+
return new Promise((w, m) => {
|
|
1936
|
+
y((_, ...x) => _ ? m(_) : w(...x));
|
|
1937
1937
|
});
|
|
1938
1938
|
}, debuglog() {
|
|
1939
1939
|
return function() {
|
|
@@ -1942,30 +1942,30 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
1942
1942
|
return y instanceof h;
|
|
1943
1943
|
}, isArrayBufferView(y) {
|
|
1944
1944
|
return ArrayBuffer.isView(y);
|
|
1945
|
-
} }, isBlob: b, deprecate(y,
|
|
1945
|
+
} }, isBlob: b, deprecate(y, w) {
|
|
1946
1946
|
return y;
|
|
1947
|
-
}, addAbortListener: (Ct(), Pe(wt)).addAbortListener || function(y,
|
|
1947
|
+
}, addAbortListener: (Ct(), Pe(wt)).addAbortListener || function(y, w) {
|
|
1948
1948
|
if (y === void 0) throw new n("signal", "AbortSignal", y);
|
|
1949
|
-
f(y, "signal"), g(
|
|
1949
|
+
f(y, "signal"), g(w, "listener");
|
|
1950
1950
|
let m;
|
|
1951
|
-
return y.aborted ? queueMicrotask(() =>
|
|
1952
|
-
y.removeEventListener("abort",
|
|
1951
|
+
return y.aborted ? queueMicrotask(() => w()) : (y.addEventListener("abort", w, { __proto__: null, once: !0, [o]: !0 }), m = () => {
|
|
1952
|
+
y.removeEventListener("abort", w);
|
|
1953
1953
|
}), { __proto__: null, [l]() {
|
|
1954
|
-
var
|
|
1955
|
-
(
|
|
1954
|
+
var _;
|
|
1955
|
+
(_ = m) === null || _ === void 0 || _();
|
|
1956
1956
|
} };
|
|
1957
1957
|
}, AbortSignalAny: c.any || function(y) {
|
|
1958
1958
|
if (y.length === 1) return y[0];
|
|
1959
|
-
let
|
|
1960
|
-
return y.forEach((
|
|
1961
|
-
f(
|
|
1962
|
-
}),
|
|
1963
|
-
y.forEach((
|
|
1964
|
-
}, { once: !0 }),
|
|
1959
|
+
let w = new u(), m = () => w.abort();
|
|
1960
|
+
return y.forEach((_) => {
|
|
1961
|
+
f(_, "signals"), _.addEventListener("abort", m, { once: !0 });
|
|
1962
|
+
}), w.signal.addEventListener("abort", () => {
|
|
1963
|
+
y.forEach((_) => _.removeEventListener("abort", m));
|
|
1964
|
+
}, { once: !0 }), w.signal;
|
|
1965
1965
|
} }, e.exports.promisify.custom = /* @__PURE__ */ Symbol.for("nodejs.util.promisify.custom");
|
|
1966
1966
|
}), tr = pe((a, e) => {
|
|
1967
1967
|
le(), ue(), ce();
|
|
1968
|
-
var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: i, ArrayPrototypeMap: n, NumberIsInteger: o, NumberIsNaN: s, 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:
|
|
1968
|
+
var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: i, ArrayPrototypeMap: n, NumberIsInteger: o, NumberIsNaN: s, 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 } } = We(), { normalizeEncoding: E } = ze(), { isAsyncFunction: S, isArrayBufferView: I } = ze().types, O = {};
|
|
1969
1969
|
function P(H) {
|
|
1970
1970
|
return H === (H | 0);
|
|
1971
1971
|
}
|
|
@@ -1975,7 +1975,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
1975
1975
|
var T = /^[0-7]+$/, q = "must be a 32-bit unsigned integer or an octal string";
|
|
1976
1976
|
function D(H, me, ve) {
|
|
1977
1977
|
if (typeof H > "u" && (H = ve), typeof H == "string") {
|
|
1978
|
-
if (p(T, H) === null) throw new
|
|
1978
|
+
if (p(T, H) === null) throw new _(me, H, q);
|
|
1979
1979
|
H = u(H, 8);
|
|
1980
1980
|
}
|
|
1981
1981
|
return Y(H, me), H;
|
|
@@ -2004,7 +2004,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2004
2004
|
var F = y((H, me, ve) => {
|
|
2005
2005
|
if (!r(ve, H)) {
|
|
2006
2006
|
let se = "must be one of: " + i(n(ve, (Te) => typeof Te == "string" ? `'${Te}'` : b(Te)), ", ");
|
|
2007
|
-
throw new
|
|
2007
|
+
throw new _(me, H, se);
|
|
2008
2008
|
}
|
|
2009
2009
|
});
|
|
2010
2010
|
function Z(H, me) {
|
|
@@ -2022,7 +2022,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2022
2022
|
if (!t(H)) throw new m(me, "Array", H);
|
|
2023
2023
|
if (H.length < ve) {
|
|
2024
2024
|
let se = `must be longer than ${ve}`;
|
|
2025
|
-
throw new
|
|
2025
|
+
throw new _(me, H, se);
|
|
2026
2026
|
}
|
|
2027
2027
|
});
|
|
2028
2028
|
function we(H, me) {
|
|
@@ -2049,10 +2049,10 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2049
2049
|
});
|
|
2050
2050
|
function K(H, me) {
|
|
2051
2051
|
let ve = E(me), se = H.length;
|
|
2052
|
-
if (ve === "hex" && se % 2 !== 0) throw new
|
|
2052
|
+
if (ve === "hex" && se % 2 !== 0) throw new _("encoding", me, `is invalid for data of length ${se}`);
|
|
2053
2053
|
}
|
|
2054
2054
|
function Q(H, me = "Port", ve = !0) {
|
|
2055
|
-
if (typeof H != "number" && typeof H != "string" || typeof H == "string" && g(H).length === 0 || +H !== +H >>> 0 || H > 65535 || H === 0 && !ve) throw new
|
|
2055
|
+
if (typeof H != "number" && typeof H != "string" || typeof H == "string" && g(H).length === 0 || +H !== +H >>> 0 || H > 65535 || H === 0 && !ve) throw new w(me, H, ve);
|
|
2056
2056
|
return H | 0;
|
|
2057
2057
|
}
|
|
2058
2058
|
var ge = y((H, me) => {
|
|
@@ -2069,7 +2069,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
var de = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;
|
|
2071
2071
|
function fe(H, me) {
|
|
2072
|
-
if (typeof H > "u" || !p(de, H)) throw new
|
|
2072
|
+
if (typeof H > "u" || !p(de, H)) throw new _(me, H, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
|
|
2073
2073
|
}
|
|
2074
2074
|
function ye(H) {
|
|
2075
2075
|
if (typeof H == "string") return fe(H, "hints"), H;
|
|
@@ -2082,7 +2082,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
return ve;
|
|
2084
2084
|
}
|
|
2085
|
-
throw new
|
|
2085
|
+
throw new _("hints", H, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
|
|
2086
2086
|
}
|
|
2087
2087
|
e.exports = { isInt32: P, isUint32: N, parseFileMode: D, validateArray: te, validateStringArray: we, validateBooleanArray: G, validateAbortSignalArray: j, validateBoolean: Z, validateBuffer: W, validateDictionary: be, validateEncoding: K, validateFunction: oe, validateInt32: ae, validateInteger: U, validateNumber: re, validateObject: J, validateOneOf: F, validatePlainFunction: R, validatePort: Q, validateSignalName: ne, validateString: V, validateUint32: Y, validateUndefined: $, validateUnion: ee, validateAbortSignal: ge, validateLinkHeaderValue: ye };
|
|
2088
2088
|
}), Ot = pe((a, e) => {
|
|
@@ -2106,29 +2106,29 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2106
2106
|
i = o;
|
|
2107
2107
|
}
|
|
2108
2108
|
})();
|
|
2109
|
-
function s(
|
|
2110
|
-
if (r === setTimeout) return setTimeout(
|
|
2111
|
-
if ((r === n || !r) && setTimeout) return r = setTimeout, setTimeout(
|
|
2109
|
+
function s(w) {
|
|
2110
|
+
if (r === setTimeout) return setTimeout(w, 0);
|
|
2111
|
+
if ((r === n || !r) && setTimeout) return r = setTimeout, setTimeout(w, 0);
|
|
2112
2112
|
try {
|
|
2113
|
-
return r(
|
|
2113
|
+
return r(w, 0);
|
|
2114
2114
|
} catch {
|
|
2115
2115
|
try {
|
|
2116
|
-
return r.call(null,
|
|
2116
|
+
return r.call(null, w, 0);
|
|
2117
2117
|
} catch {
|
|
2118
|
-
return r.call(this,
|
|
2118
|
+
return r.call(this, w, 0);
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
|
-
function l(
|
|
2123
|
-
if (i === clearTimeout) return clearTimeout(
|
|
2124
|
-
if ((i === o || !i) && clearTimeout) return i = clearTimeout, clearTimeout(
|
|
2122
|
+
function l(w) {
|
|
2123
|
+
if (i === clearTimeout) return clearTimeout(w);
|
|
2124
|
+
if ((i === o || !i) && clearTimeout) return i = clearTimeout, clearTimeout(w);
|
|
2125
2125
|
try {
|
|
2126
|
-
return i(
|
|
2126
|
+
return i(w);
|
|
2127
2127
|
} catch {
|
|
2128
2128
|
try {
|
|
2129
|
-
return i.call(null,
|
|
2129
|
+
return i.call(null, w);
|
|
2130
2130
|
} catch {
|
|
2131
|
-
return i.call(this,
|
|
2131
|
+
return i.call(this, w);
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
@@ -2138,35 +2138,35 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
function f() {
|
|
2140
2140
|
if (!u) {
|
|
2141
|
-
var
|
|
2141
|
+
var w = s(b);
|
|
2142
2142
|
u = !0;
|
|
2143
2143
|
for (var m = c.length; m; ) {
|
|
2144
2144
|
for (h = c, c = []; ++p < m; ) h && h[p].run();
|
|
2145
2145
|
p = -1, m = c.length;
|
|
2146
2146
|
}
|
|
2147
|
-
h = null, u = !1, l(
|
|
2147
|
+
h = null, u = !1, l(w);
|
|
2148
2148
|
}
|
|
2149
2149
|
}
|
|
2150
|
-
t.nextTick = function(
|
|
2150
|
+
t.nextTick = function(w) {
|
|
2151
2151
|
var m = new Array(arguments.length - 1);
|
|
2152
|
-
if (arguments.length > 1) for (var
|
|
2153
|
-
c.push(new g(
|
|
2152
|
+
if (arguments.length > 1) for (var _ = 1; _ < arguments.length; _++) m[_ - 1] = arguments[_];
|
|
2153
|
+
c.push(new g(w, m)), c.length === 1 && !u && s(f);
|
|
2154
2154
|
};
|
|
2155
|
-
function g(
|
|
2156
|
-
this.fun =
|
|
2155
|
+
function g(w, m) {
|
|
2156
|
+
this.fun = w, this.array = m;
|
|
2157
2157
|
}
|
|
2158
2158
|
g.prototype.run = function() {
|
|
2159
2159
|
this.fun.apply(null, this.array);
|
|
2160
2160
|
}, t.title = "browser", t.browser = !0, t.env = {}, t.argv = [], t.version = "", t.versions = {};
|
|
2161
2161
|
function y() {
|
|
2162
2162
|
}
|
|
2163
|
-
t.on = y, t.addListener = y, t.once = y, t.off = y, t.removeListener = y, t.removeAllListeners = y, t.emit = y, t.prependListener = y, t.prependOnceListener = y, t.listeners = function(
|
|
2163
|
+
t.on = y, t.addListener = y, t.once = y, t.off = y, t.removeListener = y, t.removeAllListeners = y, t.emit = y, t.prependListener = y, t.prependOnceListener = y, t.listeners = function(w) {
|
|
2164
2164
|
return [];
|
|
2165
|
-
}, t.binding = function(
|
|
2165
|
+
}, t.binding = function(w) {
|
|
2166
2166
|
throw new Error("process.binding is not supported");
|
|
2167
2167
|
}, t.cwd = function() {
|
|
2168
2168
|
return "/";
|
|
2169
|
-
}, t.chdir = function(
|
|
2169
|
+
}, t.chdir = function(w) {
|
|
2170
2170
|
throw new Error("process.chdir is not supported");
|
|
2171
2171
|
}, t.umask = function() {
|
|
2172
2172
|
return 0;
|
|
@@ -2191,14 +2191,14 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2191
2191
|
function y(M) {
|
|
2192
2192
|
return !!(M && !g(M) && typeof M.pipeThrough == "function" && typeof M.getReader == "function" && typeof M.cancel == "function");
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function w(M) {
|
|
2195
2195
|
return !!(M && !g(M) && typeof M.getWriter == "function" && typeof M.abort == "function");
|
|
2196
2196
|
}
|
|
2197
2197
|
function m(M) {
|
|
2198
2198
|
return !!(M && !g(M) && typeof M.readable == "object" && typeof M.writable == "object");
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2201
|
-
return y(M) ||
|
|
2200
|
+
function _(M) {
|
|
2201
|
+
return y(M) || w(M) || m(M);
|
|
2202
2202
|
}
|
|
2203
2203
|
function x(M, J) {
|
|
2204
2204
|
return M == null ? !1 : J === !0 ? typeof M[t] == "function" : J === !1 ? typeof M[r] == "function" : typeof M[t] == "function" || typeof M[r] == "function";
|
|
@@ -2277,10 +2277,10 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2277
2277
|
var J, be, te, we, G, j, ne, W, K, Q;
|
|
2278
2278
|
return !!(M && ((J = (be = (te = (we = (G = (j = M[o]) !== null && j !== void 0 ? j : M.readableErrored) !== null && G !== void 0 ? G : 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 : (K = M._readableState) === null || K === void 0 ? void 0 : K.errored) !== null && J !== void 0 ? J : !((Q = M._writableState) === null || Q === void 0) && Q.errored));
|
|
2279
2279
|
}
|
|
2280
|
-
e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: F, kIsDisturbed: c, isErrored: Z, kIsErrored: o, isReadable: P, kIsReadable: s, 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:
|
|
2280
|
+
e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: F, kIsDisturbed: c, isErrored: Z, kIsErrored: o, isReadable: P, kIsReadable: s, 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: N, isWritableNodeStream: b, isWritableStream: w, isWritableEnded: E, isWritableFinished: S, isWritableErrored: q, isServerRequest: V, isServerResponse: Y, willEmitClose: re, isTransformStream: m };
|
|
2281
2281
|
}), _t = pe((a, e) => {
|
|
2282
2282
|
le(), ue(), ce();
|
|
2283
|
-
var t = Ot(), { AbortError: r, codes: i } = We(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: o } = i, { kEmptyObject: s, once: l } = ze(), { validateAbortSignal: c, validateFunction: u, validateObject: h, validateBoolean: p } = tr(), { Promise: b, PromisePrototypeThen: f, SymbolDispose: g } = je(), { isClosed: y, isReadable:
|
|
2283
|
+
var t = Ot(), { AbortError: r, codes: i } = We(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: o } = i, { kEmptyObject: s, once: l } = ze(), { validateAbortSignal: c, validateFunction: u, validateObject: h, validateBoolean: p } = tr(), { 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: N, willEmitClose: T, kIsClosedPromise: q } = dt(), D;
|
|
2284
2284
|
function U(F) {
|
|
2285
2285
|
return F.setHeader && typeof F.abort == "function";
|
|
2286
2286
|
}
|
|
@@ -2288,7 +2288,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2288
2288
|
};
|
|
2289
2289
|
function Y(F, Z, M) {
|
|
2290
2290
|
var J, be;
|
|
2291
|
-
if (arguments.length === 2 ? (M = Z, Z = s) : Z == null ? Z = s : h(Z, "options"), u(M, "callback"), c(Z.signal, "options.signal"), M = l(M),
|
|
2291
|
+
if (arguments.length === 2 ? (M = Z, Z = s) : Z == null ? Z = s : h(Z, "options"), u(M, "callback"), c(Z.signal, "options.signal"), M = l(M), _(F) || I(F)) return V(F, Z, M);
|
|
2292
2292
|
if (!N(F)) throw new n("stream", ["ReadableStream", "WritableStream", "Stream"], F);
|
|
2293
2293
|
let te = (J = Z.readable) !== null && J !== void 0 ? J : m(F), we = (be = Z.writable) !== null && be !== void 0 ? be : S(F), G = F._writableState, j = F._readableState, ne = () => {
|
|
2294
2294
|
F.writable || Q();
|
|
@@ -2313,7 +2313,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2313
2313
|
}, fe = () => {
|
|
2314
2314
|
F.req.on("finish", Q);
|
|
2315
2315
|
};
|
|
2316
|
-
U(F) ? (F.on("complete", Q), W || F.on("abort", ee), F.req ? fe() : F.on("request", fe)) : we && !G && (F.on("end", ne), F.on("close", ne)), !W && typeof F.aborted == "boolean" && F.on("aborted", ee), F.on("end", oe), F.on("finish", Q), Z.error !== !1 && F.on("error", R), F.on("close", ee), $ ? t.nextTick(ee) : G != null && G.errorEmitted || j != null && j.errorEmitted ? W || t.nextTick(de) : (!te && (!W ||
|
|
2316
|
+
U(F) ? (F.on("complete", Q), W || F.on("abort", ee), F.req ? fe() : F.on("request", fe)) : we && !G && (F.on("end", ne), F.on("close", ne)), !W && typeof F.aborted == "boolean" && F.on("aborted", ee), F.on("end", oe), F.on("finish", Q), Z.error !== !1 && F.on("error", R), F.on("close", ee), $ ? t.nextTick(ee) : G != null && G.errorEmitted || j != null && j.errorEmitted ? W || t.nextTick(de) : (!te && (!W || w(F)) && (K || E(F) === !1) || !we && (!W || E(F)) && (ge || w(F) === !1) || j && F.req && F.aborted) && t.nextTick(de);
|
|
2317
2317
|
let ye = () => {
|
|
2318
2318
|
M = ae, F.removeListener("aborted", ee), F.removeListener("complete", Q), F.removeListener("abort", ee), F.removeListener("request", fe), F.req && F.req.removeListener("finish", Q), F.removeListener("end", ne), F.removeListener("close", ne), F.removeListener("finish", Q), F.removeListener("end", oe), F.removeListener("error", R), F.removeListener("close", ee);
|
|
2319
2319
|
};
|
|
@@ -2378,7 +2378,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2378
2378
|
if (U) return;
|
|
2379
2379
|
U = !0;
|
|
2380
2380
|
let V = T._readableState, re = T._writableState;
|
|
2381
|
-
b(Y, re, V), re && (re.closed = !0), V && (V.closed = !0), typeof D == "function" && D(Y), Y ? t.nextTick(y, T, Y) : t.nextTick(
|
|
2381
|
+
b(Y, re, V), re && (re.closed = !0), V && (V.closed = !0), typeof D == "function" && D(Y), Y ? t.nextTick(y, T, Y) : t.nextTick(w, T);
|
|
2382
2382
|
}
|
|
2383
2383
|
try {
|
|
2384
2384
|
T._destroy(q || null, ae);
|
|
@@ -2387,9 +2387,9 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
2389
|
function y(T, q) {
|
|
2390
|
-
m(T, q),
|
|
2390
|
+
m(T, q), w(T);
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function w(T) {
|
|
2393
2393
|
let q = T._readableState, D = T._writableState;
|
|
2394
2394
|
D && (D.closeEmitted = !0), q && (q.closeEmitted = !0), (D != null && D.emitClose || q != null && q.emitClose) && T.emit("close");
|
|
2395
2395
|
}
|
|
@@ -2397,7 +2397,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2397
2397
|
let D = T._readableState, U = T._writableState;
|
|
2398
2398
|
U != null && U.errorEmitted || D != null && D.errorEmitted || (U && (U.errorEmitted = !0), D && (D.errorEmitted = !0), T.emit("error", q));
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function _() {
|
|
2401
2401
|
let T = this._readableState, q = this._writableState;
|
|
2402
2402
|
T && (T.constructed = !0, T.closed = !1, T.closeEmitted = !1, T.destroyed = !1, T.errored = null, T.errorEmitted = !1, T.reading = !1, T.ended = T.readable === !1, T.endEmitted = T.readable === !1), q && (q.constructed = !0, q.destroyed = !1, q.closed = !1, q.closeEmitted = !1, q.errored = null, q.errorEmitted = !1, q.finalCalled = !1, q.prefinished = !1, q.ended = q.writable === !1, q.ending = q.writable === !1, q.finished = q.writable === !1);
|
|
2403
2403
|
}
|
|
@@ -2445,7 +2445,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2445
2445
|
function N(T, q) {
|
|
2446
2446
|
!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[s] = !0));
|
|
2447
2447
|
}
|
|
2448
|
-
e.exports = { construct: v, destroyer: N, destroy: f, undestroy:
|
|
2448
|
+
e.exports = { construct: v, destroyer: N, destroy: f, undestroy: _, errorOrDestroy: x };
|
|
2449
2449
|
}), io = pe((a, e) => {
|
|
2450
2450
|
le(), ue(), ce();
|
|
2451
2451
|
var { ArrayIsArray: t, ObjectSetPrototypeOf: r } = je(), { EventEmitter: i } = (Ct(), Pe(wt));
|
|
@@ -2454,8 +2454,8 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2454
2454
|
}
|
|
2455
2455
|
r(n.prototype, i.prototype), r(n, i), n.prototype.pipe = function(s, l) {
|
|
2456
2456
|
let c = this;
|
|
2457
|
-
function u(
|
|
2458
|
-
s.writable && s.write(
|
|
2457
|
+
function u(w) {
|
|
2458
|
+
s.writable && s.write(w) === !1 && c.pause && c.pause();
|
|
2459
2459
|
}
|
|
2460
2460
|
c.on("data", u);
|
|
2461
2461
|
function h() {
|
|
@@ -2469,8 +2469,8 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2469
2469
|
function f() {
|
|
2470
2470
|
p || (p = !0, typeof s.destroy == "function" && s.destroy());
|
|
2471
2471
|
}
|
|
2472
|
-
function g(
|
|
2473
|
-
y(), i.listenerCount(this, "error") === 0 && this.emit("error",
|
|
2472
|
+
function g(w) {
|
|
2473
|
+
y(), i.listenerCount(this, "error") === 0 && this.emit("error", w);
|
|
2474
2474
|
}
|
|
2475
2475
|
o(c, "error", g), o(s, "error", g);
|
|
2476
2476
|
function y() {
|
|
@@ -2601,8 +2601,8 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2601
2601
|
let y = l(b, g, f);
|
|
2602
2602
|
if (y != null) {
|
|
2603
2603
|
if (!r(y) || y < 0) {
|
|
2604
|
-
let
|
|
2605
|
-
throw new n(
|
|
2604
|
+
let w = g ? `options.${f}` : "options.highWaterMark";
|
|
2605
|
+
throw new n(w, y);
|
|
2606
2606
|
}
|
|
2607
2607
|
return t(y);
|
|
2608
2608
|
}
|
|
@@ -2655,7 +2655,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2655
2655
|
};
|
|
2656
2656
|
function r(m) {
|
|
2657
2657
|
if (!m) return "utf8";
|
|
2658
|
-
for (var
|
|
2658
|
+
for (var _; ; ) switch (m) {
|
|
2659
2659
|
case "utf8":
|
|
2660
2660
|
case "utf-8":
|
|
2661
2661
|
return "utf8";
|
|
@@ -2672,43 +2672,43 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2672
2672
|
case "hex":
|
|
2673
2673
|
return m;
|
|
2674
2674
|
default:
|
|
2675
|
-
if (
|
|
2676
|
-
m = ("" + m).toLowerCase(),
|
|
2675
|
+
if (_) return;
|
|
2676
|
+
m = ("" + m).toLowerCase(), _ = !0;
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
function i(m) {
|
|
2680
|
-
var
|
|
2681
|
-
if (typeof
|
|
2682
|
-
return
|
|
2680
|
+
var _ = r(m);
|
|
2681
|
+
if (typeof _ != "string" && (e.isEncoding === t || !t(m))) throw new Error("Unknown encoding: " + m);
|
|
2682
|
+
return _ || m;
|
|
2683
2683
|
}
|
|
2684
2684
|
a.StringDecoder = n;
|
|
2685
2685
|
function n(m) {
|
|
2686
2686
|
this.encoding = i(m);
|
|
2687
|
-
var
|
|
2687
|
+
var _;
|
|
2688
2688
|
switch (this.encoding) {
|
|
2689
2689
|
case "utf16le":
|
|
2690
|
-
this.text = p, this.end = b,
|
|
2690
|
+
this.text = p, this.end = b, _ = 4;
|
|
2691
2691
|
break;
|
|
2692
2692
|
case "utf8":
|
|
2693
|
-
this.fillLast = c,
|
|
2693
|
+
this.fillLast = c, _ = 4;
|
|
2694
2694
|
break;
|
|
2695
2695
|
case "base64":
|
|
2696
|
-
this.text = f, this.end = g,
|
|
2696
|
+
this.text = f, this.end = g, _ = 3;
|
|
2697
2697
|
break;
|
|
2698
2698
|
default:
|
|
2699
|
-
this.write = y, this.end =
|
|
2699
|
+
this.write = y, this.end = w;
|
|
2700
2700
|
return;
|
|
2701
2701
|
}
|
|
2702
|
-
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(
|
|
2702
|
+
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(_);
|
|
2703
2703
|
}
|
|
2704
2704
|
n.prototype.write = function(m) {
|
|
2705
2705
|
if (m.length === 0) return "";
|
|
2706
|
-
var
|
|
2706
|
+
var _, x;
|
|
2707
2707
|
if (this.lastNeed) {
|
|
2708
|
-
if (
|
|
2708
|
+
if (_ = this.fillLast(m), _ === void 0) return "";
|
|
2709
2709
|
x = this.lastNeed, this.lastNeed = 0;
|
|
2710
2710
|
} else x = 0;
|
|
2711
|
-
return x < m.length ?
|
|
2711
|
+
return x < m.length ? _ ? _ + this.text(m, x) : this.text(m, x) : _ || "";
|
|
2712
2712
|
}, n.prototype.end = h, n.prototype.text = u, n.prototype.fillLast = function(m) {
|
|
2713
2713
|
if (this.lastNeed <= m.length) return m.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
2714
2714
|
m.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, m.length), this.lastNeed -= m.length;
|
|
@@ -2716,67 +2716,67 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2716
2716
|
function o(m) {
|
|
2717
2717
|
return m <= 127 ? 0 : m >> 5 === 6 ? 2 : m >> 4 === 14 ? 3 : m >> 3 === 30 ? 4 : m >> 6 === 2 ? -1 : -2;
|
|
2718
2718
|
}
|
|
2719
|
-
function s(m,
|
|
2720
|
-
var v =
|
|
2719
|
+
function s(m, _, x) {
|
|
2720
|
+
var v = _.length - 1;
|
|
2721
2721
|
if (v < x) return 0;
|
|
2722
|
-
var E = o(
|
|
2723
|
-
return E >= 0 ? (E > 0 && (m.lastNeed = E - 1), E) : --v < x || E === -2 ? 0 : (E = o(
|
|
2722
|
+
var E = o(_[v]);
|
|
2723
|
+
return E >= 0 ? (E > 0 && (m.lastNeed = E - 1), E) : --v < x || E === -2 ? 0 : (E = o(_[v]), E >= 0 ? (E > 0 && (m.lastNeed = E - 2), E) : --v < x || E === -2 ? 0 : (E = o(_[v]), E >= 0 ? (E > 0 && (E === 2 ? E = 0 : m.lastNeed = E - 3), E) : 0));
|
|
2724
2724
|
}
|
|
2725
|
-
function l(m,
|
|
2726
|
-
if ((
|
|
2727
|
-
if (m.lastNeed > 1 &&
|
|
2728
|
-
if ((
|
|
2729
|
-
if (m.lastNeed > 2 &&
|
|
2725
|
+
function l(m, _, x) {
|
|
2726
|
+
if ((_[0] & 192) !== 128) return m.lastNeed = 0, "�";
|
|
2727
|
+
if (m.lastNeed > 1 && _.length > 1) {
|
|
2728
|
+
if ((_[1] & 192) !== 128) return m.lastNeed = 1, "�";
|
|
2729
|
+
if (m.lastNeed > 2 && _.length > 2 && (_[2] & 192) !== 128) return m.lastNeed = 2, "�";
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
2732
|
function c(m) {
|
|
2733
|
-
var
|
|
2733
|
+
var _ = this.lastTotal - this.lastNeed, x = l(this, m);
|
|
2734
2734
|
if (x !== void 0) return x;
|
|
2735
|
-
if (this.lastNeed <= m.length) return m.copy(this.lastChar,
|
|
2736
|
-
m.copy(this.lastChar,
|
|
2735
|
+
if (this.lastNeed <= m.length) return m.copy(this.lastChar, _, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
2736
|
+
m.copy(this.lastChar, _, 0, m.length), this.lastNeed -= m.length;
|
|
2737
2737
|
}
|
|
2738
|
-
function u(m,
|
|
2739
|
-
var x = s(this, m,
|
|
2740
|
-
if (!this.lastNeed) return m.toString("utf8",
|
|
2738
|
+
function u(m, _) {
|
|
2739
|
+
var x = s(this, m, _);
|
|
2740
|
+
if (!this.lastNeed) return m.toString("utf8", _);
|
|
2741
2741
|
this.lastTotal = x;
|
|
2742
2742
|
var v = m.length - (x - this.lastNeed);
|
|
2743
|
-
return m.copy(this.lastChar, 0, v), m.toString("utf8",
|
|
2743
|
+
return m.copy(this.lastChar, 0, v), m.toString("utf8", _, v);
|
|
2744
2744
|
}
|
|
2745
2745
|
function h(m) {
|
|
2746
|
-
var
|
|
2747
|
-
return this.lastNeed ?
|
|
2746
|
+
var _ = m && m.length ? this.write(m) : "";
|
|
2747
|
+
return this.lastNeed ? _ + "�" : _;
|
|
2748
2748
|
}
|
|
2749
|
-
function p(m,
|
|
2750
|
-
if ((m.length -
|
|
2751
|
-
var x = m.toString("utf16le",
|
|
2749
|
+
function p(m, _) {
|
|
2750
|
+
if ((m.length - _) % 2 === 0) {
|
|
2751
|
+
var x = m.toString("utf16le", _);
|
|
2752
2752
|
if (x) {
|
|
2753
2753
|
var v = x.charCodeAt(x.length - 1);
|
|
2754
2754
|
if (v >= 55296 && v <= 56319) return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = m[m.length - 2], this.lastChar[1] = m[m.length - 1], x.slice(0, -1);
|
|
2755
2755
|
}
|
|
2756
2756
|
return x;
|
|
2757
2757
|
}
|
|
2758
|
-
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = m[m.length - 1], m.toString("utf16le",
|
|
2758
|
+
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = m[m.length - 1], m.toString("utf16le", _, m.length - 1);
|
|
2759
2759
|
}
|
|
2760
2760
|
function b(m) {
|
|
2761
|
-
var
|
|
2761
|
+
var _ = m && m.length ? this.write(m) : "";
|
|
2762
2762
|
if (this.lastNeed) {
|
|
2763
2763
|
var x = this.lastTotal - this.lastNeed;
|
|
2764
|
-
return
|
|
2764
|
+
return _ + this.lastChar.toString("utf16le", 0, x);
|
|
2765
2765
|
}
|
|
2766
|
-
return
|
|
2766
|
+
return _;
|
|
2767
2767
|
}
|
|
2768
|
-
function f(m,
|
|
2769
|
-
var x = (m.length -
|
|
2770
|
-
return x === 0 ? m.toString("base64",
|
|
2768
|
+
function f(m, _) {
|
|
2769
|
+
var x = (m.length - _) % 3;
|
|
2770
|
+
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));
|
|
2771
2771
|
}
|
|
2772
2772
|
function g(m) {
|
|
2773
|
-
var
|
|
2774
|
-
return this.lastNeed ?
|
|
2773
|
+
var _ = m && m.length ? this.write(m) : "";
|
|
2774
|
+
return this.lastNeed ? _ + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : _;
|
|
2775
2775
|
}
|
|
2776
2776
|
function y(m) {
|
|
2777
2777
|
return m.toString(this.encoding);
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2779
|
+
function w(m) {
|
|
2780
2780
|
return m && m.length ? this.write(m) : "";
|
|
2781
2781
|
}
|
|
2782
2782
|
}), ca = pe((a, e) => {
|
|
@@ -2794,13 +2794,13 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2794
2794
|
let g = new u({ objectMode: !0, highWaterMark: 1, ...p }), y = !1;
|
|
2795
2795
|
g._read = function() {
|
|
2796
2796
|
y || (y = !0, m());
|
|
2797
|
-
}, g._destroy = function(
|
|
2798
|
-
r(
|
|
2797
|
+
}, g._destroy = function(_, x) {
|
|
2798
|
+
r(w(_), () => t.nextTick(x, _), (v) => t.nextTick(x, v || _));
|
|
2799
2799
|
};
|
|
2800
|
-
async function
|
|
2801
|
-
let x =
|
|
2800
|
+
async function w(_) {
|
|
2801
|
+
let x = _ != null, v = typeof b.throw == "function";
|
|
2802
2802
|
if (x && v) {
|
|
2803
|
-
let { value: E, done: S } = await b.throw(
|
|
2803
|
+
let { value: E, done: S } = await b.throw(_);
|
|
2804
2804
|
if (await E, S) return;
|
|
2805
2805
|
}
|
|
2806
2806
|
if (typeof b.return == "function") {
|
|
@@ -2811,16 +2811,16 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2811
2811
|
async function m() {
|
|
2812
2812
|
for (; ; ) {
|
|
2813
2813
|
try {
|
|
2814
|
-
let { value:
|
|
2814
|
+
let { value: _, done: x } = f ? await b.next() : b.next();
|
|
2815
2815
|
if (x) g.push(null);
|
|
2816
2816
|
else {
|
|
2817
|
-
let v =
|
|
2817
|
+
let v = _ && typeof _.then == "function" ? await _ : _;
|
|
2818
2818
|
if (v === null) throw y = !1, new l();
|
|
2819
2819
|
if (g.push(v)) continue;
|
|
2820
2820
|
y = !1;
|
|
2821
2821
|
}
|
|
2822
|
-
} catch (
|
|
2823
|
-
g.destroy(
|
|
2822
|
+
} catch (_) {
|
|
2823
|
+
g.destroy(_);
|
|
2824
2824
|
}
|
|
2825
2825
|
break;
|
|
2826
2826
|
}
|
|
@@ -2832,7 +2832,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2832
2832
|
le(), ue(), ce();
|
|
2833
2833
|
var t = Ot(), { ArrayPrototypeIndexOf: r, NumberIsInteger: i, NumberIsNaN: n, NumberParseInt: o, ObjectDefineProperties: s, ObjectKeys: l, ObjectSetPrototypeOf: c, Promise: u, SafeSet: h, SymbolAsyncDispose: p, SymbolAsyncIterator: b, Symbol: f } = je();
|
|
2834
2834
|
e.exports = se, se.ReadableState = ve;
|
|
2835
|
-
var { EventEmitter: g } = (Ct(), Pe(wt)), { Stream: y, prependListener:
|
|
2835
|
+
var { EventEmitter: g } = (Ct(), Pe(wt)), { Stream: y, prependListener: w } = io(), { Buffer: m } = (Be(), Pe(Ue)), { addAbortSignal: _ } = Dr(), x = _t(), v = ze().debuglog("stream", (C) => {
|
|
2836
2836
|
v = C;
|
|
2837
2837
|
}), E = oc(), S = Ft(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Fr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: N, 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 } = We(), { validateObject: Y } = tr(), V = f("kPaused"), { StringDecoder: re } = ac(), F = ca();
|
|
2838
2838
|
c(se.prototype, y.prototype), c(se, y);
|
|
@@ -2852,7 +2852,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2852
2852
|
function se(C) {
|
|
2853
2853
|
if (!(this instanceof se)) return new se(C);
|
|
2854
2854
|
let L = this instanceof ut();
|
|
2855
|
-
this._readableState = new ve(C, this, L), C && (typeof C.read == "function" && (this._read = C.read), typeof C.destroy == "function" && (this._destroy = C.destroy), typeof C.construct == "function" && (this._construct = C.construct), C.signal && !L &&
|
|
2855
|
+
this._readableState = new ve(C, this, L), C && (typeof C.read == "function" && (this._read = C.read), typeof C.destroy == "function" && (this._destroy = C.destroy), typeof C.construct == "function" && (this._construct = C.construct), C.signal && !L && _(C.signal, this)), y.call(this, C), S.construct(this, () => {
|
|
2856
2856
|
this._readableState.needReadable && z(this, this._readableState);
|
|
2857
2857
|
});
|
|
2858
2858
|
}
|
|
@@ -2899,9 +2899,9 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2899
2899
|
for (let Se of _e) xe += L.write(Se);
|
|
2900
2900
|
return _e.clear(), xe !== "" && _e.push(xe), this._readableState.length = xe.length, this;
|
|
2901
2901
|
};
|
|
2902
|
-
var
|
|
2902
|
+
var k = 1073741824;
|
|
2903
2903
|
function A(C) {
|
|
2904
|
-
if (C >
|
|
2904
|
+
if (C > k) throw new q("size", "<= 1GiB", C);
|
|
2905
2905
|
return C--, C |= C >>> 1, C |= C >>> 2, C |= C >>> 4, C |= C >>> 8, C |= C >>> 16, C++, C;
|
|
2906
2906
|
}
|
|
2907
2907
|
function B(C, L) {
|
|
@@ -2985,7 +2985,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2985
2985
|
ot && !ot.errorEmitted ? M(C, rt) : C.emit("error", rt);
|
|
2986
2986
|
}
|
|
2987
2987
|
}
|
|
2988
|
-
|
|
2988
|
+
w(C, "error", kt);
|
|
2989
2989
|
function tt() {
|
|
2990
2990
|
C.removeListener("finish", mt), xt();
|
|
2991
2991
|
}
|
|
@@ -3188,13 +3188,13 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3188
3188
|
le(), ue(), ce();
|
|
3189
3189
|
var t = Ot(), { ArrayPrototypeSlice: r, Error: i, FunctionPrototypeSymbolHasInstance: n, ObjectDefineProperty: o, ObjectDefineProperties: s, ObjectSetPrototypeOf: l, StringPrototypeToLowerCase: c, Symbol: u, SymbolHasInstance: h } = je();
|
|
3190
3190
|
e.exports = Y, Y.WritableState = U;
|
|
3191
|
-
var { EventEmitter: p } = (Ct(), Pe(wt)), b = io().Stream, { Buffer: f } = (Be(), Pe(Ue)), g = Ft(), { addAbortSignal: y } = Dr(), { getHighWaterMark:
|
|
3191
|
+
var { EventEmitter: p } = (Ct(), Pe(wt)), b = io().Stream, { Buffer: f } = (Be(), Pe(Ue)), g = Ft(), { addAbortSignal: y } = Dr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = Fr(), { 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: N } = We().codes, { errorOrDestroy: T } = g;
|
|
3192
3192
|
l(Y.prototype, b.prototype), l(Y, b);
|
|
3193
3193
|
function q() {
|
|
3194
3194
|
}
|
|
3195
3195
|
var D = u("kOnFinished");
|
|
3196
3196
|
function U(R, $, ee) {
|
|
3197
|
-
typeof ee != "boolean" && (ee = $ instanceof ut()), this.objectMode = !!(R && R.objectMode), ee && (this.objectMode = this.objectMode || !!(R && R.writableObjectMode)), this.highWaterMark = R ?
|
|
3197
|
+
typeof ee != "boolean" && (ee = $ instanceof ut()), this.objectMode = !!(R && R.objectMode), ee && (this.objectMode = this.objectMode || !!(R && R.writableObjectMode)), this.highWaterMark = R ? w(this, R, "writableHighWaterMark", ee) : m(!1), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
3198
3198
|
let de = !!(R && R.decodeStrings === !1);
|
|
3199
3199
|
this.decodeStrings = !de, this.defaultEncoding = R && R.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = M.bind(void 0, $), this.writecb = null, this.writelen = 0, this.afterWriteTickInfo = null, ae(this), this.pendingcb = 0, this.constructed = !0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = !R || R.emitClose !== !1, this.autoDestroy = !R || R.autoDestroy !== !1, this.errored = null, this.closed = !1, this.closeEmitted = !1, this[D] = [];
|
|
3200
3200
|
}
|
|
@@ -3231,7 +3231,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3231
3231
|
if (!fe.objectMode) if (typeof $ == "string") fe.decodeStrings !== !1 && ($ = f.from($, ee), ee = "buffer");
|
|
3232
3232
|
else if ($ instanceof f) ee = "buffer";
|
|
3233
3233
|
else if (b._isUint8Array($)) $ = b._uint8ArrayToBuffer($), ee = "buffer";
|
|
3234
|
-
else throw new
|
|
3234
|
+
else throw new _("chunk", ["string", "Buffer", "Uint8Array"], $);
|
|
3235
3235
|
let ye;
|
|
3236
3236
|
return fe.ending ? ye = new P() : fe.destroyed && (ye = new S("write")), ye ? (t.nextTick(de, ye), T(R, ye, !0), ye) : (fe.pendingcb++, re(R, fe, $, ee, de));
|
|
3237
3237
|
}
|
|
@@ -3416,7 +3416,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3416
3416
|
};
|
|
3417
3417
|
}), lc = pe((a, e) => {
|
|
3418
3418
|
le(), ue(), ce();
|
|
3419
|
-
var t = Ot(), r = (Be(), Pe(Ue)), { isReadable: i, isWritable: n, isIterable: o, isNodeStream: s, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = dt(), b = _t(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = We(), { destroyer:
|
|
3419
|
+
var t = Ot(), r = (Be(), Pe(Ue)), { isReadable: i, isWritable: n, isIterable: o, isNodeStream: s, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = dt(), b = _t(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = We(), { destroyer: w } = Ft(), m = ut(), _ = $r(), x = oo(), { createDeferredPromise: v } = ze(), E = ca(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
|
|
3420
3420
|
return D instanceof S;
|
|
3421
3421
|
} : function(D) {
|
|
3422
3422
|
return !1;
|
|
@@ -3430,7 +3430,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3430
3430
|
if (l(U)) return q({ readable: U });
|
|
3431
3431
|
if (c(U)) return q({ writable: U });
|
|
3432
3432
|
if (s(U)) return q({ writable: !1, readable: !1 });
|
|
3433
|
-
if (h(U)) return q({ readable:
|
|
3433
|
+
if (h(U)) return q({ readable: _.fromWeb(U) });
|
|
3434
3434
|
if (p(U)) return q({ writable: x.fromWeb(U) });
|
|
3435
3435
|
if (typeof U == "function") {
|
|
3436
3436
|
let { value: V, write: re, final: F, destroy: Z } = T(U);
|
|
@@ -3440,7 +3440,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3440
3440
|
let J, be = P(M, V, (te) => {
|
|
3441
3441
|
if (te != null) throw new y("nully", "body", te);
|
|
3442
3442
|
}, (te) => {
|
|
3443
|
-
|
|
3443
|
+
w(J, te);
|
|
3444
3444
|
});
|
|
3445
3445
|
return J = new N({ objectMode: !0, readable: !1, write: re, final(te) {
|
|
3446
3446
|
F(async () => {
|
|
@@ -3467,7 +3467,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3467
3467
|
return P(Y, U, (re) => {
|
|
3468
3468
|
re != null && V.push(re), V.push(null);
|
|
3469
3469
|
}, (re) => {
|
|
3470
|
-
|
|
3470
|
+
w(V, re);
|
|
3471
3471
|
}), V = new N({ objectMode: !0, writable: !1, read() {
|
|
3472
3472
|
} });
|
|
3473
3473
|
}
|
|
@@ -3495,13 +3495,13 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3495
3495
|
} };
|
|
3496
3496
|
}
|
|
3497
3497
|
function q(D) {
|
|
3498
|
-
let U = D.readable && typeof D.readable.read != "function" ?
|
|
3498
|
+
let U = D.readable && typeof D.readable.read != "function" ? _.wrap(D.readable) : D.readable, ae = D.writable, Y = !!i(U), V = !!n(ae), re, F, Z, M, J;
|
|
3499
3499
|
function be(te) {
|
|
3500
3500
|
let we = M;
|
|
3501
3501
|
M = null, we ? we(te) : te && J.destroy(te);
|
|
3502
3502
|
}
|
|
3503
3503
|
return J = new N({ readableObjectMode: !!(U != null && U.readableObjectMode), writableObjectMode: !!(ae != null && ae.writableObjectMode), readable: Y, writable: V }), V && (b(ae, (te) => {
|
|
3504
|
-
V = !1, te &&
|
|
3504
|
+
V = !1, te && w(U, te), be(te);
|
|
3505
3505
|
}), J._write = function(te, we, G) {
|
|
3506
3506
|
ae.write(te, we) ? G() : re = G;
|
|
3507
3507
|
}, J._final = function(te) {
|
|
@@ -3517,7 +3517,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3517
3517
|
F = null, te();
|
|
3518
3518
|
}
|
|
3519
3519
|
})), Y && (b(U, (te) => {
|
|
3520
|
-
Y = !1, te &&
|
|
3520
|
+
Y = !1, te && w(U, te), be(te);
|
|
3521
3521
|
}), U.on("readable", function() {
|
|
3522
3522
|
if (Z) {
|
|
3523
3523
|
let te = Z;
|
|
@@ -3535,7 +3535,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3535
3535
|
if (!J.push(te)) return;
|
|
3536
3536
|
}
|
|
3537
3537
|
}), J._destroy = function(te, we) {
|
|
3538
|
-
!te && M !== null && (te = new f()), Z = null, re = null, F = null, M === null ? we(te) : (M = we,
|
|
3538
|
+
!te && M !== null && (te = new f()), Z = null, re = null, F = null, M === null ? we(te) : (M = we, w(ae, te), w(U, te));
|
|
3539
3539
|
}, J;
|
|
3540
3540
|
}
|
|
3541
3541
|
}), ut = pe((a, e) => {
|
|
@@ -3601,9 +3601,9 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3601
3601
|
throw new i("_transform()");
|
|
3602
3602
|
}, l.prototype._write = function(h, p, b) {
|
|
3603
3603
|
let f = this._readableState, g = this._writableState, y = f.length;
|
|
3604
|
-
this._transform(h, p, (
|
|
3605
|
-
if (
|
|
3606
|
-
b(
|
|
3604
|
+
this._transform(h, p, (w, m) => {
|
|
3605
|
+
if (w) {
|
|
3606
|
+
b(w);
|
|
3607
3607
|
return;
|
|
3608
3608
|
}
|
|
3609
3609
|
m != null && this.push(m), g.ended || y === f.length || f.length < f.highWaterMark ? b() : this[s] = b;
|
|
@@ -3629,7 +3629,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3629
3629
|
};
|
|
3630
3630
|
}), so = pe((a, e) => {
|
|
3631
3631
|
le(), ue(), ce();
|
|
3632
|
-
var t = Ot(), { ArrayIsArray: r, Promise: i, SymbolAsyncIterator: n, SymbolDispose: o } = je(), s = _t(), { once: l } = ze(), c = Ft(), u = ut(), { 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:
|
|
3632
|
+
var t = Ot(), { ArrayIsArray: r, Promise: i, SymbolAsyncIterator: n, SymbolDispose: o } = je(), s = _t(), { once: l } = ze(), c = Ft(), u = ut(), { 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 } = We(), { validateFunction: m, validateAbortSignal: _ } = tr(), { isIterable: x, isReadable: v, isReadableNodeStream: E, isNodeStream: S, isTransformStream: I, isWebStream: O, isReadableStream: P, isReadableFinished: N } = dt(), T = globalThis.AbortController || er().AbortController, q, D, U;
|
|
3633
3633
|
function ae(te, we, G) {
|
|
3634
3634
|
let j = !1;
|
|
3635
3635
|
te.on("close", () => {
|
|
@@ -3697,9 +3697,9 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3697
3697
|
function J(te, we, G) {
|
|
3698
3698
|
if (te.length === 1 && r(te[0]) && (te = te[0]), te.length < 2) throw new f("streams");
|
|
3699
3699
|
let j = new T(), ne = j.signal, W = G?.signal, K = [];
|
|
3700
|
-
|
|
3700
|
+
_(W, "options.signal");
|
|
3701
3701
|
function Q() {
|
|
3702
|
-
fe(new
|
|
3702
|
+
fe(new w());
|
|
3703
3703
|
}
|
|
3704
3704
|
U = U || ze().addAbortListener;
|
|
3705
3705
|
let ge;
|
|
@@ -3717,12 +3717,12 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3717
3717
|
}
|
|
3718
3718
|
let ye;
|
|
3719
3719
|
for (let ve = 0; ve < te.length; ve++) {
|
|
3720
|
-
let se = te[ve], Te = ve < te.length - 1, d = ve > 0,
|
|
3720
|
+
let se = te[ve], Te = ve < te.length - 1, d = ve > 0, k = Te || G?.end !== !1, A = ve === te.length - 1;
|
|
3721
3721
|
if (S(se)) {
|
|
3722
3722
|
let B = function(X) {
|
|
3723
3723
|
X && X.name !== "AbortError" && X.code !== "ERR_STREAM_PREMATURE_CLOSE" && de(X);
|
|
3724
3724
|
};
|
|
3725
|
-
if (
|
|
3725
|
+
if (k) {
|
|
3726
3726
|
let { destroy: X, cleanup: he } = ae(se, Te, d);
|
|
3727
3727
|
$.push(X), v(se) && A && K.push(he);
|
|
3728
3728
|
}
|
|
@@ -3745,14 +3745,14 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3745
3745
|
q || (q = ha());
|
|
3746
3746
|
let B = new q({ objectMode: !0 }), X = (me = ye) === null || me === void 0 ? void 0 : me.then;
|
|
3747
3747
|
if (typeof X == "function") ee++, X.call(ye, (z) => {
|
|
3748
|
-
R = z, z != null && B.write(z),
|
|
3748
|
+
R = z, z != null && B.write(z), k && B.end(), t.nextTick(de);
|
|
3749
3749
|
}, (z) => {
|
|
3750
3750
|
B.destroy(z), t.nextTick(de, z);
|
|
3751
3751
|
});
|
|
3752
|
-
else if (x(ye, !0)) ee++, F(ye, B, de, { end:
|
|
3752
|
+
else if (x(ye, !0)) ee++, F(ye, B, de, { end: k });
|
|
3753
3753
|
else if (P(ye) || I(ye)) {
|
|
3754
3754
|
let z = ye.readable || ye;
|
|
3755
|
-
ee++, F(z, B, de, { end:
|
|
3755
|
+
ee++, F(z, B, de, { end: k });
|
|
3756
3756
|
} else throw new b("AsyncIterable or Promise", "destination", ye);
|
|
3757
3757
|
ye = B;
|
|
3758
3758
|
let { destroy: he, cleanup: ke } = ae(ye, !1, !0);
|
|
@@ -3761,18 +3761,18 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3761
3761
|
} else if (S(se)) {
|
|
3762
3762
|
if (E(ye)) {
|
|
3763
3763
|
ee += 2;
|
|
3764
|
-
let B = be(ye, se, de, { end:
|
|
3764
|
+
let B = be(ye, se, de, { end: k });
|
|
3765
3765
|
v(se) && A && K.push(B);
|
|
3766
3766
|
} else if (I(ye) || P(ye)) {
|
|
3767
3767
|
let B = ye.readable || ye;
|
|
3768
|
-
ee++, F(B, se, de, { end:
|
|
3769
|
-
} else if (x(ye)) ee++, F(ye, se, de, { end:
|
|
3768
|
+
ee++, F(B, se, de, { end: k });
|
|
3769
|
+
} else if (x(ye)) ee++, F(ye, se, de, { end: k });
|
|
3770
3770
|
else throw new p("val", ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"], ye);
|
|
3771
3771
|
ye = se;
|
|
3772
3772
|
} else if (O(se)) {
|
|
3773
|
-
if (E(ye)) ee++, Z(V(ye), se, de, { end:
|
|
3774
|
-
else if (P(ye) || x(ye)) ee++, Z(ye, se, de, { end:
|
|
3775
|
-
else if (I(ye)) ee++, Z(ye.readable, se, de, { end:
|
|
3773
|
+
if (E(ye)) ee++, Z(V(ye), se, de, { end: k });
|
|
3774
|
+
else if (P(ye) || x(ye)) ee++, Z(ye, se, de, { end: k });
|
|
3775
|
+
else if (I(ye)) ee++, Z(ye.readable, se, de, { end: k });
|
|
3776
3776
|
else throw new p("val", ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"], ye);
|
|
3777
3777
|
ye = se;
|
|
3778
3778
|
} else ye = u.from(se);
|
|
@@ -3801,16 +3801,16 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3801
3801
|
e.exports = function(...y) {
|
|
3802
3802
|
if (y.length === 0) throw new f("streams");
|
|
3803
3803
|
if (y.length === 1) return r.from(y[0]);
|
|
3804
|
-
let
|
|
3804
|
+
let w = [...y];
|
|
3805
3805
|
if (typeof y[0] == "function" && (y[0] = r.from(y[0])), typeof y[y.length - 1] == "function") {
|
|
3806
3806
|
let T = y.length - 1;
|
|
3807
3807
|
y[T] = r.from(y[T]);
|
|
3808
3808
|
}
|
|
3809
3809
|
for (let T = 0; T < y.length; ++T) if (!(!n(y[T]) && !l(y[T]))) {
|
|
3810
|
-
if (T < y.length - 1 && !(o(y[T]) || h(y[T]) || c(y[T]))) throw new b(`streams[${T}]`,
|
|
3811
|
-
if (T > 0 && !(s(y[T]) || u(y[T]) || c(y[T]))) throw new b(`streams[${T}]`,
|
|
3810
|
+
if (T < y.length - 1 && !(o(y[T]) || h(y[T]) || c(y[T]))) throw new b(`streams[${T}]`, w[T], "must be readable");
|
|
3811
|
+
if (T > 0 && !(s(y[T]) || u(y[T]) || c(y[T]))) throw new b(`streams[${T}]`, w[T], "must be writable");
|
|
3812
3812
|
}
|
|
3813
|
-
let m,
|
|
3813
|
+
let m, _, x, v, E;
|
|
3814
3814
|
function S(T) {
|
|
3815
3815
|
let q = v;
|
|
3816
3816
|
v = null, q ? q(T) : T ? E.destroy(T) : !N && !P && E.destroy();
|
|
@@ -3820,7 +3820,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3820
3820
|
if (n(I)) E._write = function(q, D, U) {
|
|
3821
3821
|
I.write(q, D) ? U() : m = U;
|
|
3822
3822
|
}, E._final = function(q) {
|
|
3823
|
-
I.end(),
|
|
3823
|
+
I.end(), _ = q;
|
|
3824
3824
|
}, I.on("drain", function() {
|
|
3825
3825
|
if (m) {
|
|
3826
3826
|
let q = m;
|
|
@@ -3839,7 +3839,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3839
3839
|
}, E._final = async function(D) {
|
|
3840
3840
|
try {
|
|
3841
3841
|
await q.ready, q.close().catch(() => {
|
|
3842
|
-
}),
|
|
3842
|
+
}), _ = D;
|
|
3843
3843
|
} catch (U) {
|
|
3844
3844
|
D(U);
|
|
3845
3845
|
}
|
|
@@ -3847,9 +3847,9 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3847
3847
|
}
|
|
3848
3848
|
let T = c(O) ? O.readable : O;
|
|
3849
3849
|
g(T, () => {
|
|
3850
|
-
if (
|
|
3851
|
-
let q =
|
|
3852
|
-
|
|
3850
|
+
if (_) {
|
|
3851
|
+
let q = _;
|
|
3852
|
+
_ = null, q();
|
|
3853
3853
|
}
|
|
3854
3854
|
});
|
|
3855
3855
|
}
|
|
@@ -3888,14 +3888,14 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
3890
|
return E._destroy = function(T, q) {
|
|
3891
|
-
!T && v !== null && (T = new p()), x = null, m = null,
|
|
3891
|
+
!T && v !== null && (T = new p()), x = null, m = null, _ = null, v === null ? q(T) : (v = q, n(O) && i(O, T));
|
|
3892
3892
|
}, E;
|
|
3893
3893
|
};
|
|
3894
3894
|
}), cc = pe((a, e) => {
|
|
3895
3895
|
le(), ue(), ce();
|
|
3896
|
-
var t = globalThis.AbortController || er().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: i, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: o }, AbortError: s } = We(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = tr(), h = je().Symbol("kWeak"), p = je().Symbol("kResistStopPropagation"), { finished: b } = _t(), f = da(), { addAbortSignalNoValidate: g } = Dr(), { isWritable: y, isNodeStream:
|
|
3896
|
+
var t = globalThis.AbortController || er().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: i, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: o }, AbortError: s } = We(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = tr(), h = je().Symbol("kWeak"), p = je().Symbol("kResistStopPropagation"), { finished: b } = _t(), f = da(), { addAbortSignalNoValidate: g } = Dr(), { isWritable: y, isNodeStream: w } = dt(), { deprecate: m } = ze(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: E, NumberIsNaN: S, Promise: I, PromiseReject: O, PromiseResolve: P, PromisePrototypeThen: N, Symbol: T } = je(), q = T("kEmpty"), D = T("kEof");
|
|
3897
3897
|
function U(W, K) {
|
|
3898
|
-
if (K != null && u(K, "options"), K?.signal != null && l(K.signal, "options.signal"),
|
|
3898
|
+
if (K != null && u(K, "options"), K?.signal != null && l(K.signal, "options.signal"), w(W) && !y(W)) throw new r("stream", W, "must be writable");
|
|
3899
3899
|
let Q = f(this, W);
|
|
3900
3900
|
return K != null && K.signal && g(K.signal, Q), Q;
|
|
3901
3901
|
}
|
|
@@ -3924,17 +3924,17 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3924
3924
|
try {
|
|
3925
3925
|
if (d = W(d, ee), d === q) continue;
|
|
3926
3926
|
d = P(d);
|
|
3927
|
-
} catch (
|
|
3928
|
-
d = O(
|
|
3927
|
+
} catch (k) {
|
|
3928
|
+
d = O(k);
|
|
3929
3929
|
}
|
|
3930
|
-
H += 1, N(d, ve, me), $.push(d), de && (de(), de = null), !ye && ($.length >= ge || H >= Q) && await new I((
|
|
3931
|
-
fe =
|
|
3930
|
+
H += 1, N(d, ve, me), $.push(d), de && (de(), de = null), !ye && ($.length >= ge || H >= Q) && await new I((k) => {
|
|
3931
|
+
fe = k;
|
|
3932
3932
|
});
|
|
3933
3933
|
}
|
|
3934
3934
|
$.push(D);
|
|
3935
3935
|
} catch (d) {
|
|
3936
|
-
let
|
|
3937
|
-
N(
|
|
3936
|
+
let k = O(d);
|
|
3937
|
+
N(k, ve, me), $.push(k);
|
|
3938
3938
|
} finally {
|
|
3939
3939
|
ye = !0, de && (de(), de = null);
|
|
3940
3940
|
}
|
|
@@ -4031,7 +4031,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4031
4031
|
for await (let ge of this) {
|
|
4032
4032
|
var Q;
|
|
4033
4033
|
if (W != null && (Q = W.signal) !== null && Q !== void 0 && Q.aborted) throw new s(void 0, { cause: W.signal.reason });
|
|
4034
|
-
|
|
4034
|
+
_(K, ge);
|
|
4035
4035
|
}
|
|
4036
4036
|
return K;
|
|
4037
4037
|
}
|
|
@@ -4080,16 +4080,16 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4080
4080
|
let y = t(u);
|
|
4081
4081
|
b = y.signal, f = y.end;
|
|
4082
4082
|
}
|
|
4083
|
-
s(u, (y,
|
|
4084
|
-
y ? p(y) : h(
|
|
4083
|
+
s(u, (y, w) => {
|
|
4084
|
+
y ? p(y) : h(w);
|
|
4085
4085
|
}, { signal: b, end: f });
|
|
4086
4086
|
});
|
|
4087
4087
|
}
|
|
4088
4088
|
e.exports = { finished: l, pipeline: c };
|
|
4089
4089
|
}), pa = pe((a, e) => {
|
|
4090
4090
|
le(), ue(), ce();
|
|
4091
|
-
var { Buffer: t } = (Be(), Pe(Ue)), { ObjectDefineProperty: r, ObjectKeys: i, ReflectApply: n } = je(), { promisify: { custom: o } } = ze(), { streamReturningOperators: s, promiseReturningOperators: l } = cc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = We(), u = da(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Fr(), { pipeline: b } = so(), { destroyer: f } = Ft(), g = _t(), y = fa(),
|
|
4092
|
-
m.isDestroyed =
|
|
4091
|
+
var { Buffer: t } = (Be(), Pe(Ue)), { ObjectDefineProperty: r, ObjectKeys: i, ReflectApply: n } = je(), { promisify: { custom: o } } = ze(), { streamReturningOperators: s, promiseReturningOperators: l } = cc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = We(), u = da(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Fr(), { pipeline: b } = so(), { destroyer: f } = Ft(), g = _t(), y = fa(), w = dt(), m = e.exports = io().Stream;
|
|
4092
|
+
m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = $r();
|
|
4093
4093
|
for (let x of i(s)) {
|
|
4094
4094
|
let v = function(...S) {
|
|
4095
4095
|
if (new.target) throw c();
|
|
@@ -4105,8 +4105,8 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4105
4105
|
r(v, "name", { __proto__: null, value: E.name }), r(v, "length", { __proto__: null, value: E.length }), r(m.Readable.prototype, x, { __proto__: null, value: v, enumerable: !1, configurable: !0, writable: !0 });
|
|
4106
4106
|
}
|
|
4107
4107
|
m.Writable = oo(), m.Duplex = ut(), m.Transform = ua(), m.PassThrough = ha(), m.pipeline = b;
|
|
4108
|
-
var { addAbortSignal:
|
|
4109
|
-
m.addAbortSignal =
|
|
4108
|
+
var { addAbortSignal: _ } = Dr();
|
|
4109
|
+
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() {
|
|
4110
4110
|
return y;
|
|
4111
4111
|
} }), r(b, o, { __proto__: null, enumerable: !0, get() {
|
|
4112
4112
|
return y.pipeline;
|
|
@@ -4409,25 +4409,25 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4409
4409
|
}
|
|
4410
4410
|
n.selectColor = i;
|
|
4411
4411
|
function n(b) {
|
|
4412
|
-
let f, g = null, y,
|
|
4413
|
-
function m(...
|
|
4412
|
+
let f, g = null, y, w;
|
|
4413
|
+
function m(..._) {
|
|
4414
4414
|
if (!m.enabled) return;
|
|
4415
4415
|
let x = m, v = Number(/* @__PURE__ */ new Date()), E = v - (f || v);
|
|
4416
|
-
x.diff = E, x.prev = f, x.curr = v, f = v,
|
|
4416
|
+
x.diff = E, x.prev = f, x.curr = v, f = v, _[0] = n.coerce(_[0]), typeof _[0] != "string" && _.unshift("%O");
|
|
4417
4417
|
let S = 0;
|
|
4418
|
-
|
|
4418
|
+
_[0] = _[0].replace(/%([a-zA-Z%])/g, (I, O) => {
|
|
4419
4419
|
if (I === "%%") return "%";
|
|
4420
4420
|
S++;
|
|
4421
4421
|
let P = n.formatters[O];
|
|
4422
4422
|
if (typeof P == "function") {
|
|
4423
|
-
let N =
|
|
4424
|
-
I = P.call(x, N),
|
|
4423
|
+
let N = _[S];
|
|
4424
|
+
I = P.call(x, N), _.splice(S, 1), S--;
|
|
4425
4425
|
}
|
|
4426
4426
|
return I;
|
|
4427
|
-
}), n.formatArgs.call(x,
|
|
4427
|
+
}), n.formatArgs.call(x, _), (x.log || n.log).apply(x, _);
|
|
4428
4428
|
}
|
|
4429
|
-
return m.namespace = b, m.useColors = n.useColors(), m.color = n.selectColor(b), m.extend = o, m.destroy = n.destroy, Object.defineProperty(m, "enabled", { enumerable: !0, configurable: !1, get: () => g !== null ? g : (y !== n.namespaces && (y = n.namespaces,
|
|
4430
|
-
g =
|
|
4429
|
+
return m.namespace = b, m.useColors = n.useColors(), m.color = n.selectColor(b), m.extend = o, m.destroy = n.destroy, Object.defineProperty(m, "enabled", { enumerable: !0, configurable: !1, get: () => g !== null ? g : (y !== n.namespaces && (y = n.namespaces, w = n.enabled(b)), w), set: (_) => {
|
|
4430
|
+
g = _;
|
|
4431
4431
|
} }), typeof n.init == "function" && n.init(m), m;
|
|
4432
4432
|
}
|
|
4433
4433
|
function o(b, f) {
|
|
@@ -4440,9 +4440,9 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4440
4440
|
for (let g of f) g[0] === "-" ? n.skips.push(g.slice(1)) : n.names.push(g);
|
|
4441
4441
|
}
|
|
4442
4442
|
function l(b, f) {
|
|
4443
|
-
let g = 0, y = 0,
|
|
4444
|
-
for (; g < b.length; ) if (y < f.length && (f[y] === b[g] || f[y] === "*")) f[y] === "*" ? (
|
|
4445
|
-
else if (
|
|
4443
|
+
let g = 0, y = 0, w = -1, m = 0;
|
|
4444
|
+
for (; g < b.length; ) if (y < f.length && (f[y] === b[g] || f[y] === "*")) f[y] === "*" ? (w = y, m = g, y++) : (g++, y++);
|
|
4445
|
+
else if (w !== -1) y = w + 1, m++, g = m;
|
|
4446
4446
|
else return !1;
|
|
4447
4447
|
for (; y < f.length && f[y] === "*"; ) y++;
|
|
4448
4448
|
return y === f.length;
|
|
@@ -4602,23 +4602,23 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4602
4602
|
if (this._pos++, this._pos >= this._list.length) return this._emitError(new Error("Packet too short"));
|
|
4603
4603
|
if (this._list.readUInt8(this._pos) & 1) return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));
|
|
4604
4604
|
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;
|
|
4605
|
-
let y = !!(this._list.readUInt8(this._pos) & n.WILL_RETAIN_MASK),
|
|
4606
|
-
if (b.will) f.will = {}, f.will.retain = y, f.will.qos =
|
|
4605
|
+
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;
|
|
4606
|
+
if (b.will) f.will = {}, f.will.retain = y, f.will.qos = w;
|
|
4607
4607
|
else {
|
|
4608
4608
|
if (y) return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));
|
|
4609
|
-
if (
|
|
4609
|
+
if (w) return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"));
|
|
4610
4610
|
}
|
|
4611
4611
|
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"));
|
|
4612
4612
|
if (f.protocolVersion === 5) {
|
|
4613
|
-
let
|
|
4614
|
-
Object.getOwnPropertyNames(
|
|
4613
|
+
let _ = this._parseProperties();
|
|
4614
|
+
Object.getOwnPropertyNames(_).length && (f.properties = _);
|
|
4615
4615
|
}
|
|
4616
4616
|
let m = this._parseString();
|
|
4617
4617
|
if (m === null) return this._emitError(new Error("Packet too short"));
|
|
4618
4618
|
if (f.clientId = m, o("_parseConnect: packet.clientId: %s", f.clientId), b.will) {
|
|
4619
4619
|
if (f.protocolVersion === 5) {
|
|
4620
|
-
let
|
|
4621
|
-
Object.getOwnPropertyNames(
|
|
4620
|
+
let _ = this._parseProperties();
|
|
4621
|
+
Object.getOwnPropertyNames(_).length && (f.will.properties = _);
|
|
4622
4622
|
}
|
|
4623
4623
|
if (c = this._parseString(), c === null) return this._emitError(new Error("Cannot parse will topic"));
|
|
4624
4624
|
if (f.will.topic = c, o("_parseConnect: packet.will.topic: %s", f.will.topic), u = this._parseBuffer(), u === null) return this._emitError(new Error("Cannot parse will payload"));
|
|
@@ -4669,8 +4669,8 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4669
4669
|
let c = this.packet, u, h, p, b, f, g, y;
|
|
4670
4670
|
if (c.subscriptions = [], !!this._parseMessageId()) {
|
|
4671
4671
|
if (this.settings.protocolVersion === 5) {
|
|
4672
|
-
let
|
|
4673
|
-
Object.getOwnPropertyNames(
|
|
4672
|
+
let w = this._parseProperties();
|
|
4673
|
+
Object.getOwnPropertyNames(w).length && (c.properties = w);
|
|
4674
4674
|
}
|
|
4675
4675
|
if (c.length <= 0) return this._emitError(new Error("Malformed subscribe, no payload specified"));
|
|
4676
4676
|
for (; this._pos < c.length; ) {
|
|
@@ -4925,11 +4925,11 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4925
4925
|
le(), ue(), ce();
|
|
4926
4926
|
var t = ma(), { Buffer: r } = (Be(), Pe(Ue)), i = r.allocUnsafe(0), n = r.from([0]), o = bc(), s = yc().nextTick, l = ht()("mqtt-packet:writeToStream"), c = o.cache, u = o.generateNumber, h = o.generateCache, p = o.genBufVariableByteInt, b = o.generate4ByteBuffer, f = Y, g = !0;
|
|
4927
4927
|
function y(G, j, ne) {
|
|
4928
|
-
switch (l("generate called"), j.cork && (j.cork(), s(
|
|
4928
|
+
switch (l("generate called"), j.cork && (j.cork(), s(w, j)), g && (g = !1, h()), l("generate: packet.cmd: %s", G.cmd), G.cmd) {
|
|
4929
4929
|
case "connect":
|
|
4930
4930
|
return m(G, j);
|
|
4931
4931
|
case "connack":
|
|
4932
|
-
return
|
|
4932
|
+
return _(G, j, ne);
|
|
4933
4933
|
case "publish":
|
|
4934
4934
|
return x(G, j, ne);
|
|
4935
4935
|
case "puback":
|
|
@@ -4961,7 +4961,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4961
4961
|
}, set(G) {
|
|
4962
4962
|
G ? ((!c || Object.keys(c).length === 0) && (g = !0), f = Y) : (g = !1, f = V);
|
|
4963
4963
|
} });
|
|
4964
|
-
function
|
|
4964
|
+
function w(G) {
|
|
4965
4965
|
G.uncork();
|
|
4966
4966
|
}
|
|
4967
4967
|
function m(G, j, ne) {
|
|
@@ -5004,7 +5004,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5004
5004
|
let se = 0;
|
|
5005
5005
|
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, j.write(r.from([se])), f(j, R), Q === 5 && H.write(), F(j, $), ge && (Q === 5 && me.write(), U(j, ge.topic), F(j, ge.payload)), ee != null && F(j, ee), de != null && F(j, de), !0;
|
|
5006
5006
|
}
|
|
5007
|
-
function
|
|
5007
|
+
function _(G, j, ne) {
|
|
5008
5008
|
let W = ne ? ne.protocolVersion : 4, K = G || {}, Q = W === 5 ? K.reasonCode : K.returnCode, ge = K.properties, oe = 2;
|
|
5009
5009
|
if (typeof Q != "number") return j.destroy(new Error("Invalid return code")), !1;
|
|
5010
5010
|
let R = null;
|
|
@@ -5346,8 +5346,8 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5346
5346
|
function l(h, p) {
|
|
5347
5347
|
let b = Object.keys(h), f = new Array(b.length);
|
|
5348
5348
|
for (let g = 0; g < b.length; g++) {
|
|
5349
|
-
let y = b[g],
|
|
5350
|
-
typeof
|
|
5349
|
+
let y = b[g], w = h[y];
|
|
5350
|
+
typeof w != "object" || w === null ? f[y] = w : w.constructor !== Object && (s = o.get(w.constructor)) ? f[y] = s(w, p) : ArrayBuffer.isView(w) ? f[y] = t(w) : f[y] = p(w);
|
|
5351
5351
|
}
|
|
5352
5352
|
return f;
|
|
5353
5353
|
}
|
|
@@ -5382,14 +5382,14 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5382
5382
|
return n.proto ? p : h;
|
|
5383
5383
|
function u(b, f) {
|
|
5384
5384
|
let g = Object.keys(b), y = new Array(g.length);
|
|
5385
|
-
for (let
|
|
5386
|
-
let m = g[
|
|
5387
|
-
if (typeof
|
|
5388
|
-
else if (
|
|
5389
|
-
else if (ArrayBuffer.isView(
|
|
5385
|
+
for (let w = 0; w < g.length; w++) {
|
|
5386
|
+
let m = g[w], _ = b[m];
|
|
5387
|
+
if (typeof _ != "object" || _ === null) y[m] = _;
|
|
5388
|
+
else if (_.constructor !== Object && (c = l.get(_.constructor))) y[m] = c(_, f);
|
|
5389
|
+
else if (ArrayBuffer.isView(_)) y[m] = t(_);
|
|
5390
5390
|
else {
|
|
5391
|
-
let x = o.indexOf(
|
|
5392
|
-
x !== -1 ? y[m] = s[x] : y[m] = f(
|
|
5391
|
+
let x = o.indexOf(_);
|
|
5392
|
+
x !== -1 ? y[m] = s[x] : y[m] = f(_);
|
|
5393
5393
|
}
|
|
5394
5394
|
}
|
|
5395
5395
|
return y;
|
|
@@ -5407,8 +5407,8 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5407
5407
|
else if (y.constructor !== Object && (c = l.get(y.constructor))) f[g] = c(y, h);
|
|
5408
5408
|
else if (ArrayBuffer.isView(y)) f[g] = t(y);
|
|
5409
5409
|
else {
|
|
5410
|
-
let
|
|
5411
|
-
|
|
5410
|
+
let w = o.indexOf(y);
|
|
5411
|
+
w !== -1 ? f[g] = s[w] : f[g] = h(y);
|
|
5412
5412
|
}
|
|
5413
5413
|
}
|
|
5414
5414
|
return o.pop(), s.pop(), f;
|
|
@@ -5425,8 +5425,8 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5425
5425
|
else if (y.constructor !== Object && (c = l.get(y.constructor))) f[g] = c(y, p);
|
|
5426
5426
|
else if (ArrayBuffer.isView(y)) f[g] = t(y);
|
|
5427
5427
|
else {
|
|
5428
|
-
let
|
|
5429
|
-
|
|
5428
|
+
let w = o.indexOf(y);
|
|
5429
|
+
w !== -1 ? f[g] = s[w] : f[g] = p(y);
|
|
5430
5430
|
}
|
|
5431
5431
|
}
|
|
5432
5432
|
return o.pop(), s.pop(), f;
|
|
@@ -5745,7 +5745,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5745
5745
|
return f.#a;
|
|
5746
5746
|
}, get tail() {
|
|
5747
5747
|
return f.#o;
|
|
5748
|
-
}, free: f.#y, isBackgroundFetch: (g) => f.#t(g), backgroundFetch: (g, y,
|
|
5748
|
+
}, 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) };
|
|
5749
5749
|
}
|
|
5750
5750
|
get max() {
|
|
5751
5751
|
return this.#l;
|
|
@@ -5772,7 +5772,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5772
5772
|
return this.#g;
|
|
5773
5773
|
}
|
|
5774
5774
|
constructor(f) {
|
|
5775
|
-
let { max: g = 0, ttl: y, ttlResolution:
|
|
5775
|
+
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: N = 0, sizeCalculation: T, fetchMethod: q, memoMethod: D, noDeleteOnFetchRejection: U, noDeleteOnStaleGet: ae, allowStaleOnFetchRejection: Y, allowStaleOnFetchAbort: V, ignoreFetchAbort: re } = f;
|
|
5776
5776
|
if (g !== 0 && !l(g)) throw new TypeError("max option must be a nonnegative integer");
|
|
5777
5777
|
let F = g ? c(g) : Array;
|
|
5778
5778
|
if (!F) throw new Error("invalid max value: " + g);
|
|
@@ -5787,7 +5787,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5787
5787
|
if (!l(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
5788
5788
|
this.#$();
|
|
5789
5789
|
}
|
|
5790
|
-
if (this.allowStale = !!v, this.noDeleteOnStaleGet = !!ae, this.updateAgeOnGet = !!
|
|
5790
|
+
if (this.allowStale = !!v, this.noDeleteOnStaleGet = !!ae, this.updateAgeOnGet = !!_, this.updateAgeOnHas = !!x, this.ttlResolution = l(w) || w === 0 ? w : 1, this.ttlAutopurge = !!m, this.ttl = y || 0, this.ttl) {
|
|
5791
5791
|
if (!l(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
5792
5792
|
this.#j();
|
|
5793
5793
|
}
|
|
@@ -5802,43 +5802,43 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5802
5802
|
}
|
|
5803
5803
|
#j() {
|
|
5804
5804
|
let f = new u(this.#l), g = new u(this.#l);
|
|
5805
|
-
this.#f = f, this.#w = g, this.#N = (m,
|
|
5806
|
-
if (g[m] =
|
|
5805
|
+
this.#f = f, this.#w = g, this.#N = (m, _, x = e.now()) => {
|
|
5806
|
+
if (g[m] = _ !== 0 ? x : 0, f[m] = _, _ !== 0 && this.ttlAutopurge) {
|
|
5807
5807
|
let v = setTimeout(() => {
|
|
5808
5808
|
this.#p(m) && this.#S(this.#r[m], "expire");
|
|
5809
|
-
},
|
|
5809
|
+
}, _ + 1);
|
|
5810
5810
|
v.unref && v.unref();
|
|
5811
5811
|
}
|
|
5812
5812
|
}, this.#I = (m) => {
|
|
5813
5813
|
g[m] = f[m] !== 0 ? e.now() : 0;
|
|
5814
|
-
}, this.#E = (m,
|
|
5815
|
-
if (f[
|
|
5816
|
-
let x = f[
|
|
5814
|
+
}, this.#E = (m, _) => {
|
|
5815
|
+
if (f[_]) {
|
|
5816
|
+
let x = f[_], v = g[_];
|
|
5817
5817
|
if (!x || !v) return;
|
|
5818
|
-
m.ttl = x, m.start = v, m.now = y ||
|
|
5818
|
+
m.ttl = x, m.start = v, m.now = y || w();
|
|
5819
5819
|
let E = m.now - v;
|
|
5820
5820
|
m.remainingTTL = x - E;
|
|
5821
5821
|
}
|
|
5822
5822
|
};
|
|
5823
|
-
let y = 0,
|
|
5823
|
+
let y = 0, w = () => {
|
|
5824
5824
|
let m = e.now();
|
|
5825
5825
|
if (this.ttlResolution > 0) {
|
|
5826
5826
|
y = m;
|
|
5827
|
-
let
|
|
5828
|
-
|
|
5827
|
+
let _ = setTimeout(() => y = 0, this.ttlResolution);
|
|
5828
|
+
_.unref && _.unref();
|
|
5829
5829
|
}
|
|
5830
5830
|
return m;
|
|
5831
5831
|
};
|
|
5832
5832
|
this.getRemainingTTL = (m) => {
|
|
5833
|
-
let
|
|
5834
|
-
if (
|
|
5835
|
-
let x = f[
|
|
5833
|
+
let _ = this.#n.get(m);
|
|
5834
|
+
if (_ === void 0) return 0;
|
|
5835
|
+
let x = f[_], v = g[_];
|
|
5836
5836
|
if (!x || !v) return 1 / 0;
|
|
5837
|
-
let E = (y ||
|
|
5837
|
+
let E = (y || w()) - v;
|
|
5838
5838
|
return x - E;
|
|
5839
5839
|
}, this.#p = (m) => {
|
|
5840
|
-
let
|
|
5841
|
-
return !!x && !!
|
|
5840
|
+
let _ = g[m], x = f[m];
|
|
5841
|
+
return !!x && !!_ && (y || w()) - _ > x;
|
|
5842
5842
|
};
|
|
5843
5843
|
}
|
|
5844
5844
|
#I = () => {
|
|
@@ -5852,27 +5852,27 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5852
5852
|
let f = new u(this.#l);
|
|
5853
5853
|
this.#b = 0, this.#v = f, this.#T = (g) => {
|
|
5854
5854
|
this.#b -= f[g], f[g] = 0;
|
|
5855
|
-
}, this.#U = (g, y,
|
|
5855
|
+
}, this.#U = (g, y, w, m) => {
|
|
5856
5856
|
if (this.#t(y)) return 0;
|
|
5857
|
-
if (!l(
|
|
5857
|
+
if (!l(w)) if (m) {
|
|
5858
5858
|
if (typeof m != "function") throw new TypeError("sizeCalculation must be a function");
|
|
5859
|
-
if (
|
|
5859
|
+
if (w = m(y, g), !l(w)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
5860
5860
|
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
5861
|
-
return
|
|
5862
|
-
}, this.#M = (g, y,
|
|
5861
|
+
return w;
|
|
5862
|
+
}, this.#M = (g, y, w) => {
|
|
5863
5863
|
if (f[g] = y, this.#h) {
|
|
5864
5864
|
let m = this.#h - f[g];
|
|
5865
5865
|
for (; this.#b > m; ) this.#R(!0);
|
|
5866
5866
|
}
|
|
5867
|
-
this.#b += f[g],
|
|
5867
|
+
this.#b += f[g], w && (w.entrySize = y, w.totalCalculatedSize = this.#b);
|
|
5868
5868
|
};
|
|
5869
5869
|
}
|
|
5870
5870
|
#T = (f) => {
|
|
5871
5871
|
};
|
|
5872
5872
|
#M = (f, g, y) => {
|
|
5873
5873
|
};
|
|
5874
|
-
#U = (f, g, y,
|
|
5875
|
-
if (y ||
|
|
5874
|
+
#U = (f, g, y, w) => {
|
|
5875
|
+
if (y || w) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
5876
5876
|
return 0;
|
|
5877
5877
|
};
|
|
5878
5878
|
*#k({ allowStale: f = this.allowStale } = {}) {
|
|
@@ -5914,19 +5914,19 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5914
5914
|
[Symbol.toStringTag] = "LRUCache";
|
|
5915
5915
|
find(f, g = {}) {
|
|
5916
5916
|
for (let y of this.#k()) {
|
|
5917
|
-
let
|
|
5917
|
+
let w = this.#e[y], m = this.#t(w) ? w.__staleWhileFetching : w;
|
|
5918
5918
|
if (m !== void 0 && f(m, this.#r[y], this)) return this.get(this.#r[y], g);
|
|
5919
5919
|
}
|
|
5920
5920
|
}
|
|
5921
5921
|
forEach(f, g = this) {
|
|
5922
5922
|
for (let y of this.#k()) {
|
|
5923
|
-
let
|
|
5923
|
+
let w = this.#e[y], m = this.#t(w) ? w.__staleWhileFetching : w;
|
|
5924
5924
|
m !== void 0 && f.call(g, m, this.#r[y], this);
|
|
5925
5925
|
}
|
|
5926
5926
|
}
|
|
5927
5927
|
rforEach(f, g = this) {
|
|
5928
5928
|
for (let y of this.#x()) {
|
|
5929
|
-
let
|
|
5929
|
+
let w = this.#e[y], m = this.#t(w) ? w.__staleWhileFetching : w;
|
|
5930
5930
|
m !== void 0 && f.call(g, m, this.#r[y], this);
|
|
5931
5931
|
}
|
|
5932
5932
|
}
|
|
@@ -5938,13 +5938,13 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5938
5938
|
info(f) {
|
|
5939
5939
|
let g = this.#n.get(f);
|
|
5940
5940
|
if (g === void 0) return;
|
|
5941
|
-
let y = this.#e[g],
|
|
5942
|
-
if (
|
|
5943
|
-
let m = { value:
|
|
5941
|
+
let y = this.#e[g], w = this.#t(y) ? y.__staleWhileFetching : y;
|
|
5942
|
+
if (w === void 0) return;
|
|
5943
|
+
let m = { value: w };
|
|
5944
5944
|
if (this.#f && this.#w) {
|
|
5945
|
-
let
|
|
5946
|
-
if (
|
|
5947
|
-
let v =
|
|
5945
|
+
let _ = this.#f[g], x = this.#w[g];
|
|
5946
|
+
if (_ && x) {
|
|
5947
|
+
let v = _ - (e.now() - x);
|
|
5948
5948
|
m.ttl = v, m.start = Date.now();
|
|
5949
5949
|
}
|
|
5950
5950
|
}
|
|
@@ -5953,15 +5953,15 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5953
5953
|
dump() {
|
|
5954
5954
|
let f = [];
|
|
5955
5955
|
for (let g of this.#k({ allowStale: !0 })) {
|
|
5956
|
-
let y = this.#r[g],
|
|
5956
|
+
let y = this.#r[g], w = this.#e[g], m = this.#t(w) ? w.__staleWhileFetching : w;
|
|
5957
5957
|
if (m === void 0 || y === void 0) continue;
|
|
5958
|
-
let
|
|
5958
|
+
let _ = { value: m };
|
|
5959
5959
|
if (this.#f && this.#w) {
|
|
5960
|
-
|
|
5960
|
+
_.ttl = this.#f[g];
|
|
5961
5961
|
let x = e.now() - this.#w[g];
|
|
5962
|
-
|
|
5962
|
+
_.start = Math.floor(Date.now() - x);
|
|
5963
5963
|
}
|
|
5964
|
-
this.#v && (
|
|
5964
|
+
this.#v && (_.size = this.#v[g]), f.unshift([y, _]);
|
|
5965
5965
|
}
|
|
5966
5966
|
return f;
|
|
5967
5967
|
}
|
|
@@ -5969,15 +5969,15 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5969
5969
|
this.clear();
|
|
5970
5970
|
for (let [g, y] of f) {
|
|
5971
5971
|
if (y.start) {
|
|
5972
|
-
let
|
|
5973
|
-
y.start = e.now() -
|
|
5972
|
+
let w = Date.now() - y.start;
|
|
5973
|
+
y.start = e.now() - w;
|
|
5974
5974
|
}
|
|
5975
5975
|
this.set(g, y.value, y);
|
|
5976
5976
|
}
|
|
5977
5977
|
}
|
|
5978
5978
|
set(f, g, y = {}) {
|
|
5979
5979
|
if (g === void 0) return this.delete(f), this;
|
|
5980
|
-
let { ttl:
|
|
5980
|
+
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);
|
|
5981
5981
|
if (this.maxEntrySize && S > this.maxEntrySize) return v && (v.set = "miss", v.maxEntrySizeExceeded = !0), this.#S(f, "set"), this;
|
|
5982
5982
|
let I = this.#i === 0 ? void 0 : this.#n.get(f);
|
|
5983
5983
|
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;
|
|
@@ -5988,8 +5988,8 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5988
5988
|
if (this.#A && this.#t(O)) {
|
|
5989
5989
|
O.__abortController.abort(new Error("replaced"));
|
|
5990
5990
|
let { __staleWhileFetching: P } = O;
|
|
5991
|
-
P !== void 0 && !
|
|
5992
|
-
} else
|
|
5991
|
+
P !== void 0 && !_ && (this.#_ && this.#m?.(P, f, "set"), this.#u && this.#s?.push([P, f, "set"]));
|
|
5992
|
+
} else _ || (this.#_ && this.#m?.(O, f, "set"), this.#u && this.#s?.push([O, f, "set"]));
|
|
5993
5993
|
if (this.#T(I), this.#M(I, S, v), this.#e[I] = g, v) {
|
|
5994
5994
|
v.set = "replace";
|
|
5995
5995
|
let P = O && this.#t(O) ? O.__staleWhileFetching : O;
|
|
@@ -5997,7 +5997,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5997
5997
|
}
|
|
5998
5998
|
} else v && (v.set = "update");
|
|
5999
5999
|
}
|
|
6000
|
-
if (
|
|
6000
|
+
if (w !== 0 && !this.#f && this.#j(), this.#f && (E || this.#N(I, w, m), v && this.#E(v, I)), !_ && this.#u && this.#s) {
|
|
6001
6001
|
let O = this.#s, P;
|
|
6002
6002
|
for (; P = O?.shift(); ) this.#g?.(...P);
|
|
6003
6003
|
}
|
|
@@ -6019,47 +6019,47 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6019
6019
|
}
|
|
6020
6020
|
}
|
|
6021
6021
|
#R(f) {
|
|
6022
|
-
let g = this.#a, y = this.#r[g],
|
|
6023
|
-
return this.#A && this.#t(
|
|
6022
|
+
let g = this.#a, y = this.#r[g], w = this.#e[g];
|
|
6023
|
+
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;
|
|
6024
6024
|
}
|
|
6025
6025
|
has(f, g = {}) {
|
|
6026
|
-
let { updateAgeOnHas: y = this.updateAgeOnHas, status:
|
|
6026
|
+
let { updateAgeOnHas: y = this.updateAgeOnHas, status: w } = g, m = this.#n.get(f);
|
|
6027
6027
|
if (m !== void 0) {
|
|
6028
|
-
let
|
|
6029
|
-
if (this.#t(
|
|
6030
|
-
if (this.#p(m))
|
|
6031
|
-
else return y && this.#I(m),
|
|
6032
|
-
} else
|
|
6028
|
+
let _ = this.#e[m];
|
|
6029
|
+
if (this.#t(_) && _.__staleWhileFetching === void 0) return !1;
|
|
6030
|
+
if (this.#p(m)) w && (w.has = "stale", this.#E(w, m));
|
|
6031
|
+
else return y && this.#I(m), w && (w.has = "hit", this.#E(w, m)), !0;
|
|
6032
|
+
} else w && (w.has = "miss");
|
|
6033
6033
|
return !1;
|
|
6034
6034
|
}
|
|
6035
6035
|
peek(f, g = {}) {
|
|
6036
|
-
let { allowStale: y = this.allowStale } = g,
|
|
6037
|
-
if (
|
|
6038
|
-
let m = this.#e[
|
|
6036
|
+
let { allowStale: y = this.allowStale } = g, w = this.#n.get(f);
|
|
6037
|
+
if (w === void 0 || !y && this.#p(w)) return;
|
|
6038
|
+
let m = this.#e[w];
|
|
6039
6039
|
return this.#t(m) ? m.__staleWhileFetching : m;
|
|
6040
6040
|
}
|
|
6041
|
-
#L(f, g, y,
|
|
6041
|
+
#L(f, g, y, w) {
|
|
6042
6042
|
let m = g === void 0 ? void 0 : this.#e[g];
|
|
6043
6043
|
if (this.#t(m)) return m;
|
|
6044
|
-
let
|
|
6045
|
-
x?.addEventListener("abort", () =>
|
|
6046
|
-
let v = { signal:
|
|
6047
|
-
let { aborted: D } =
|
|
6048
|
-
if (y.status && (D && !q ? (y.status.fetchAborted = !0, y.status.fetchError =
|
|
6044
|
+
let _ = new n(), { signal: x } = y;
|
|
6045
|
+
x?.addEventListener("abort", () => _.abort(x.reason), { signal: _.signal });
|
|
6046
|
+
let v = { signal: _.signal, options: y, context: w }, E = (T, q = !1) => {
|
|
6047
|
+
let { aborted: D } = _.signal, U = y.ignoreFetchAbort && T !== void 0;
|
|
6048
|
+
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);
|
|
6049
6049
|
let ae = P;
|
|
6050
6050
|
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;
|
|
6051
6051
|
}, S = (T) => (y.status && (y.status.fetchRejected = !0, y.status.fetchError = T), I(T)), I = (T) => {
|
|
6052
|
-
let { aborted: q } =
|
|
6052
|
+
let { aborted: q } = _.signal, D = q && y.allowStaleOnFetchAbort, U = D || y.allowStaleOnFetchRejection, ae = U || y.noDeleteOnFetchRejection, Y = P;
|
|
6053
6053
|
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;
|
|
6054
6054
|
if (Y.__returned === Y) throw T;
|
|
6055
6055
|
}, O = (T, q) => {
|
|
6056
6056
|
let D = this.#O?.(f, m, v);
|
|
6057
|
-
D && D instanceof Promise && D.then((U) => T(U === void 0 ? void 0 : U), q),
|
|
6057
|
+
D && D instanceof Promise && D.then((U) => T(U === void 0 ? void 0 : U), q), _.signal.addEventListener("abort", () => {
|
|
6058
6058
|
(!y.ignoreFetchAbort || y.allowStaleOnFetchAbort) && (T(void 0), y.allowStaleOnFetchAbort && (T = (U) => E(U, !0)));
|
|
6059
6059
|
});
|
|
6060
6060
|
};
|
|
6061
6061
|
y.status && (y.status.fetchDispatched = !0);
|
|
6062
|
-
let P = new Promise(O).then(E, S), N = Object.assign(P, { __abortController:
|
|
6062
|
+
let P = new Promise(O).then(E, S), N = Object.assign(P, { __abortController: _, __staleWhileFetching: m, __returned: void 0 });
|
|
6063
6063
|
return g === void 0 ? (this.set(f, N, { ...v.options, status: void 0 }), g = this.#n.get(f)) : this.#e[g] = N, N;
|
|
6064
6064
|
}
|
|
6065
6065
|
#t(f) {
|
|
@@ -6068,9 +6068,9 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6068
6068
|
return !!g && g instanceof Promise && g.hasOwnProperty("__staleWhileFetching") && g.__abortController instanceof n;
|
|
6069
6069
|
}
|
|
6070
6070
|
async fetch(f, g = {}) {
|
|
6071
|
-
let { allowStale: y = this.allowStale, updateAgeOnGet:
|
|
6072
|
-
if (!this.#A) return D && (D.fetch = "get"), this.get(f, { allowStale: y, updateAgeOnGet:
|
|
6073
|
-
let ae = { allowStale: y, updateAgeOnGet:
|
|
6071
|
+
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: N = this.allowStaleOnFetchAbort, context: T, forceRefresh: q = !1, status: D, signal: U } = g;
|
|
6072
|
+
if (!this.#A) return D && (D.fetch = "get"), this.get(f, { allowStale: y, updateAgeOnGet: w, noDeleteOnStaleGet: m, status: D });
|
|
6073
|
+
let ae = { allowStale: y, updateAgeOnGet: w, noDeleteOnStaleGet: m, ttl: _, noDisposeOnSet: x, size: v, sizeCalculation: E, noUpdateTTL: S, noDeleteOnFetchRejection: I, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: N, ignoreFetchAbort: P, status: D, signal: U }, Y = this.#n.get(f);
|
|
6074
6074
|
if (Y === void 0) {
|
|
6075
6075
|
D && (D.fetch = "miss");
|
|
6076
6076
|
let V = this.#L(f, Y, ae, T);
|
|
@@ -6082,7 +6082,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6082
6082
|
return D && (D.fetch = "inflight", M && (D.returnedStale = !0)), M ? V.__staleWhileFetching : V.__returned = V;
|
|
6083
6083
|
}
|
|
6084
6084
|
let re = this.#p(Y);
|
|
6085
|
-
if (!q && !re) return D && (D.fetch = "hit"), this.#C(Y),
|
|
6085
|
+
if (!q && !re) return D && (D.fetch = "hit"), this.#C(Y), w && this.#I(Y), D && this.#E(D, Y), V;
|
|
6086
6086
|
let F = this.#L(f, Y, ae, T), Z = F.__staleWhileFetching !== void 0 && y;
|
|
6087
6087
|
return D && (D.fetch = re ? "stale" : "refresh", Z && re && (D.returnedStale = !0)), Z ? F.__staleWhileFetching : F.__returned = F;
|
|
6088
6088
|
}
|
|
@@ -6095,17 +6095,17 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6095
6095
|
memo(f, g = {}) {
|
|
6096
6096
|
let y = this.#P;
|
|
6097
6097
|
if (!y) throw new Error("no memoMethod provided to constructor");
|
|
6098
|
-
let { context:
|
|
6098
|
+
let { context: w, forceRefresh: m, ..._ } = g, x = this.get(f, _);
|
|
6099
6099
|
if (!m && x !== void 0) return x;
|
|
6100
|
-
let v = y(f, x, { options:
|
|
6101
|
-
return this.set(f, v,
|
|
6100
|
+
let v = y(f, x, { options: _, context: w });
|
|
6101
|
+
return this.set(f, v, _), v;
|
|
6102
6102
|
}
|
|
6103
6103
|
get(f, g = {}) {
|
|
6104
|
-
let { allowStale: y = this.allowStale, updateAgeOnGet:
|
|
6104
|
+
let { allowStale: y = this.allowStale, updateAgeOnGet: w = this.updateAgeOnGet, noDeleteOnStaleGet: m = this.noDeleteOnStaleGet, status: _ } = g, x = this.#n.get(f);
|
|
6105
6105
|
if (x !== void 0) {
|
|
6106
6106
|
let v = this.#e[x], E = this.#t(v);
|
|
6107
|
-
return
|
|
6108
|
-
} else
|
|
6107
|
+
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));
|
|
6108
|
+
} else _ && (_.get = "miss");
|
|
6109
6109
|
}
|
|
6110
6110
|
#D(f, g) {
|
|
6111
6111
|
this.#d[g] = f, this.#c[f] = g;
|
|
@@ -6119,25 +6119,25 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6119
6119
|
#S(f, g) {
|
|
6120
6120
|
let y = !1;
|
|
6121
6121
|
if (this.#i !== 0) {
|
|
6122
|
-
let
|
|
6123
|
-
if (
|
|
6122
|
+
let w = this.#n.get(f);
|
|
6123
|
+
if (w !== void 0) if (y = !0, this.#i === 1) this.#F(g);
|
|
6124
6124
|
else {
|
|
6125
|
-
this.#T(
|
|
6126
|
-
let m = this.#e[
|
|
6127
|
-
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[
|
|
6128
|
-
else if (
|
|
6125
|
+
this.#T(w);
|
|
6126
|
+
let m = this.#e[w];
|
|
6127
|
+
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];
|
|
6128
|
+
else if (w === this.#a) this.#a = this.#c[w];
|
|
6129
6129
|
else {
|
|
6130
|
-
let
|
|
6131
|
-
this.#c[
|
|
6132
|
-
let x = this.#c[
|
|
6133
|
-
this.#d[x] = this.#d[
|
|
6130
|
+
let _ = this.#d[w];
|
|
6131
|
+
this.#c[_] = this.#c[w];
|
|
6132
|
+
let x = this.#c[w];
|
|
6133
|
+
this.#d[x] = this.#d[w];
|
|
6134
6134
|
}
|
|
6135
|
-
this.#i--, this.#y.push(
|
|
6135
|
+
this.#i--, this.#y.push(w);
|
|
6136
6136
|
}
|
|
6137
6137
|
}
|
|
6138
6138
|
if (this.#u && this.#s?.length) {
|
|
6139
|
-
let
|
|
6140
|
-
for (; m =
|
|
6139
|
+
let w = this.#s, m;
|
|
6140
|
+
for (; m = w?.shift(); ) this.#g?.(...m);
|
|
6141
6141
|
}
|
|
6142
6142
|
return y;
|
|
6143
6143
|
}
|
|
@@ -6149,8 +6149,8 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6149
6149
|
let y = this.#e[g];
|
|
6150
6150
|
if (this.#t(y)) y.__abortController.abort(new Error("deleted"));
|
|
6151
6151
|
else {
|
|
6152
|
-
let
|
|
6153
|
-
this.#_ && this.#m?.(y,
|
|
6152
|
+
let w = this.#r[g];
|
|
6153
|
+
this.#_ && this.#m?.(y, w, f), this.#u && this.#s?.push([y, w, f]);
|
|
6154
6154
|
}
|
|
6155
6155
|
}
|
|
6156
6156
|
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) {
|
|
@@ -7027,11 +7027,11 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7027
7027
|
f.l = s;
|
|
7028
7028
|
return;
|
|
7029
7029
|
} else if (g > 0) {
|
|
7030
|
-
let y = f.L(),
|
|
7031
|
-
if (
|
|
7030
|
+
let y = f.L(), w = this.v(y.u, o);
|
|
7031
|
+
if (w === 0) {
|
|
7032
7032
|
y.l = s;
|
|
7033
7033
|
return;
|
|
7034
|
-
} else
|
|
7034
|
+
} else w < 0 && (c = new this.re(o, s), y.W === void 0 ? (y.W = c, c.tt = y) : (f.U = c, c.tt = f));
|
|
7035
7035
|
}
|
|
7036
7036
|
}
|
|
7037
7037
|
}
|
|
@@ -7924,15 +7924,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7924
7924
|
};
|
|
7925
7925
|
}, n = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, o = 536870912, s = o * 2, l = function(b, f) {
|
|
7926
7926
|
return function(g) {
|
|
7927
|
-
var y = f.get(g),
|
|
7928
|
-
if (!g.has(
|
|
7927
|
+
var y = f.get(g), w = y === void 0 ? g.size : y < s ? y + 1 : 0;
|
|
7928
|
+
if (!g.has(w)) return b(g, w);
|
|
7929
7929
|
if (g.size < o) {
|
|
7930
|
-
for (; g.has(
|
|
7931
|
-
return b(g,
|
|
7930
|
+
for (; g.has(w); ) w = Math.floor(Math.random() * s);
|
|
7931
|
+
return b(g, w);
|
|
7932
7932
|
}
|
|
7933
7933
|
if (g.size > n) throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");
|
|
7934
|
-
for (; g.has(
|
|
7935
|
-
return b(g,
|
|
7934
|
+
for (; g.has(w); ) w = Math.floor(Math.random() * n);
|
|
7935
|
+
return b(g, w);
|
|
7936
7936
|
};
|
|
7937
7937
|
}, c = /* @__PURE__ */ new WeakMap(), u = i(c), h = l(u, c), p = r(h);
|
|
7938
7938
|
t.addUniqueNumber = p, t.generateUniqueNumber = h;
|
|
@@ -7993,7 +7993,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7993
7993
|
var t = Ba();
|
|
7994
7994
|
function r() {
|
|
7995
7995
|
var i, n, o = typeof Symbol == "function" ? Symbol : {}, s = o.iterator || "@@iterator", l = o.toStringTag || "@@toStringTag";
|
|
7996
|
-
function c(
|
|
7996
|
+
function c(w, m, _, x) {
|
|
7997
7997
|
var v = m && m.prototype instanceof h ? m : h, E = Object.create(v.prototype);
|
|
7998
7998
|
return t(E, "_invoke", (function(S, I, O) {
|
|
7999
7999
|
var P, N, T, q = 0, D = O || [], U = !1, ae = { p: 0, n: 0, v: i, a: Y, f: Y.bind(i, 4), d: function(V, re) {
|
|
@@ -8028,7 +8028,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8028
8028
|
}
|
|
8029
8029
|
return { value: n, done: U };
|
|
8030
8030
|
};
|
|
8031
|
-
})(
|
|
8031
|
+
})(w, _, x), !0), E;
|
|
8032
8032
|
}
|
|
8033
8033
|
var u = {};
|
|
8034
8034
|
function h() {
|
|
@@ -8041,8 +8041,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8041
8041
|
var f = [][s] ? n(n([][s]())) : (t(n = {}, s, function() {
|
|
8042
8042
|
return this;
|
|
8043
8043
|
}), n), g = b.prototype = h.prototype = Object.create(f);
|
|
8044
|
-
function y(
|
|
8045
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
8044
|
+
function y(w) {
|
|
8045
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(w, b) : (w.__proto__ = b, t(w, l, "GeneratorFunction")), w.prototype = Object.create(g), w;
|
|
8046
8046
|
}
|
|
8047
8047
|
return p.prototype = b, t(g, "constructor", b), t(b, "constructor", p), p.displayName = "GeneratorFunction", t(b, l, "GeneratorFunction"), t(g), t(g, l, "Generator"), t(g, s, function() {
|
|
8048
8048
|
return this;
|
|
@@ -8135,45 +8135,45 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8135
8135
|
function c() {
|
|
8136
8136
|
var u = r(), h = u.m(c), p = (Object.getPrototypeOf ? Object.getPrototypeOf(h) : h.__proto__).constructor;
|
|
8137
8137
|
function b(y) {
|
|
8138
|
-
var
|
|
8139
|
-
return !!
|
|
8138
|
+
var w = typeof y == "function" && y.constructor;
|
|
8139
|
+
return !!w && (w === p || (w.displayName || w.name) === "GeneratorFunction");
|
|
8140
8140
|
}
|
|
8141
8141
|
var f = { throw: 1, return: 2, break: 3, continue: 3 };
|
|
8142
8142
|
function g(y) {
|
|
8143
|
-
var
|
|
8144
|
-
return function(
|
|
8145
|
-
|
|
8146
|
-
return m(
|
|
8143
|
+
var w, m;
|
|
8144
|
+
return function(_) {
|
|
8145
|
+
w || (w = { stop: function() {
|
|
8146
|
+
return m(_.a, 2);
|
|
8147
8147
|
}, catch: function() {
|
|
8148
|
-
return
|
|
8148
|
+
return _.v;
|
|
8149
8149
|
}, abrupt: function(x, v) {
|
|
8150
|
-
return m(
|
|
8150
|
+
return m(_.a, f[x], v);
|
|
8151
8151
|
}, delegateYield: function(x, v, E) {
|
|
8152
|
-
return
|
|
8152
|
+
return w.resultName = v, m(_.d, l(x), E);
|
|
8153
8153
|
}, finish: function(x) {
|
|
8154
|
-
return m(
|
|
8154
|
+
return m(_.f, x);
|
|
8155
8155
|
} }, m = function(x, v, E) {
|
|
8156
|
-
|
|
8156
|
+
_.p = w.prev, _.n = w.next;
|
|
8157
8157
|
try {
|
|
8158
8158
|
return x(v, E);
|
|
8159
8159
|
} finally {
|
|
8160
|
-
|
|
8160
|
+
w.next = _.n;
|
|
8161
8161
|
}
|
|
8162
|
-
}),
|
|
8162
|
+
}), w.resultName && (w[w.resultName] = _.v, w.resultName = void 0), w.sent = _.v, w.next = _.n;
|
|
8163
8163
|
try {
|
|
8164
|
-
return y.call(this,
|
|
8164
|
+
return y.call(this, w);
|
|
8165
8165
|
} finally {
|
|
8166
|
-
|
|
8166
|
+
_.p = w.prev, _.n = w.next;
|
|
8167
8167
|
}
|
|
8168
8168
|
};
|
|
8169
8169
|
}
|
|
8170
8170
|
return (e.exports = c = function() {
|
|
8171
|
-
return { wrap: function(y,
|
|
8172
|
-
return u.w(g(y),
|
|
8173
|
-
}, isGeneratorFunction: b, mark: u.m, awrap: function(y,
|
|
8174
|
-
return new t(y,
|
|
8175
|
-
}, AsyncIterator: o, async: function(y,
|
|
8176
|
-
return (b(
|
|
8171
|
+
return { wrap: function(y, w, m, _) {
|
|
8172
|
+
return u.w(g(y), w, m, _ && _.reverse());
|
|
8173
|
+
}, isGeneratorFunction: b, mark: u.m, awrap: function(y, w) {
|
|
8174
|
+
return new t(y, w);
|
|
8175
|
+
}, AsyncIterator: o, async: function(y, w, m, _, x) {
|
|
8176
|
+
return (b(w) ? n : i)(g(y), w, m, _, x);
|
|
8177
8177
|
}, keys: s, values: l };
|
|
8178
8178
|
}, e.exports.__esModule = !0, e.exports.default = e.exports)();
|
|
8179
8179
|
}
|
|
@@ -8194,20 +8194,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8194
8194
|
var l = function(m) {
|
|
8195
8195
|
return typeof m.start == "function";
|
|
8196
8196
|
}, c = /* @__PURE__ */ new WeakMap();
|
|
8197
|
-
function u(m,
|
|
8197
|
+
function u(m, _) {
|
|
8198
8198
|
var x = Object.keys(m);
|
|
8199
8199
|
if (Object.getOwnPropertySymbols) {
|
|
8200
8200
|
var v = Object.getOwnPropertySymbols(m);
|
|
8201
|
-
|
|
8201
|
+
_ && (v = v.filter(function(E) {
|
|
8202
8202
|
return Object.getOwnPropertyDescriptor(m, E).enumerable;
|
|
8203
8203
|
})), x.push.apply(x, v);
|
|
8204
8204
|
}
|
|
8205
8205
|
return x;
|
|
8206
8206
|
}
|
|
8207
8207
|
function h(m) {
|
|
8208
|
-
for (var
|
|
8209
|
-
var x = arguments[
|
|
8210
|
-
|
|
8208
|
+
for (var _ = 1; _ < arguments.length; _++) {
|
|
8209
|
+
var x = arguments[_] != null ? arguments[_] : {};
|
|
8210
|
+
_ % 2 ? u(Object(x), !0).forEach(function(v) {
|
|
8211
8211
|
r(m, v, x[v]);
|
|
8212
8212
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(m, Object.getOwnPropertyDescriptors(x)) : u(Object(x)).forEach(function(v) {
|
|
8213
8213
|
Object.defineProperty(m, v, Object.getOwnPropertyDescriptor(x, v));
|
|
@@ -8216,8 +8216,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8216
8216
|
return m;
|
|
8217
8217
|
}
|
|
8218
8218
|
var p = function(m) {
|
|
8219
|
-
return h(h({}, m), {}, { connect: function(
|
|
8220
|
-
var x =
|
|
8219
|
+
return h(h({}, m), {}, { connect: function(_) {
|
|
8220
|
+
var x = _.call;
|
|
8221
8221
|
return o(s.mark(function v() {
|
|
8222
8222
|
var E, S, I, O;
|
|
8223
8223
|
return s.wrap(function(P) {
|
|
@@ -8232,8 +8232,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8232
8232
|
}
|
|
8233
8233
|
}, v);
|
|
8234
8234
|
}));
|
|
8235
|
-
}, disconnect: function(
|
|
8236
|
-
var x =
|
|
8235
|
+
}, disconnect: function(_) {
|
|
8236
|
+
var x = _.call;
|
|
8237
8237
|
return (function() {
|
|
8238
8238
|
var v = o(s.mark(function E(S) {
|
|
8239
8239
|
var I;
|
|
@@ -8257,27 +8257,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8257
8257
|
return v.apply(this, arguments);
|
|
8258
8258
|
};
|
|
8259
8259
|
})();
|
|
8260
|
-
}, isSupported: function(
|
|
8261
|
-
var x =
|
|
8260
|
+
}, isSupported: function(_) {
|
|
8261
|
+
var x = _.call;
|
|
8262
8262
|
return function() {
|
|
8263
8263
|
return x("isSupported");
|
|
8264
8264
|
};
|
|
8265
8265
|
} });
|
|
8266
8266
|
};
|
|
8267
|
-
function b(m,
|
|
8267
|
+
function b(m, _) {
|
|
8268
8268
|
var x = Object.keys(m);
|
|
8269
8269
|
if (Object.getOwnPropertySymbols) {
|
|
8270
8270
|
var v = Object.getOwnPropertySymbols(m);
|
|
8271
|
-
|
|
8271
|
+
_ && (v = v.filter(function(E) {
|
|
8272
8272
|
return Object.getOwnPropertyDescriptor(m, E).enumerable;
|
|
8273
8273
|
})), x.push.apply(x, v);
|
|
8274
8274
|
}
|
|
8275
8275
|
return x;
|
|
8276
8276
|
}
|
|
8277
8277
|
function f(m) {
|
|
8278
|
-
for (var
|
|
8279
|
-
var x = arguments[
|
|
8280
|
-
|
|
8278
|
+
for (var _ = 1; _ < arguments.length; _++) {
|
|
8279
|
+
var x = arguments[_] != null ? arguments[_] : {};
|
|
8280
|
+
_ % 2 ? b(Object(x), !0).forEach(function(v) {
|
|
8281
8281
|
r(m, v, x[v]);
|
|
8282
8282
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(m, Object.getOwnPropertyDescriptors(x)) : b(Object(x)).forEach(function(v) {
|
|
8283
8283
|
Object.defineProperty(m, v, Object.getOwnPropertyDescriptor(x, v));
|
|
@@ -8287,10 +8287,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8287
8287
|
}
|
|
8288
8288
|
var g = /* @__PURE__ */ new WeakMap(), y = function(m) {
|
|
8289
8289
|
if (g.has(m)) return g.get(m);
|
|
8290
|
-
var
|
|
8291
|
-
return g.set(m,
|
|
8292
|
-
},
|
|
8293
|
-
var
|
|
8290
|
+
var _ = /* @__PURE__ */ new Map();
|
|
8291
|
+
return g.set(m, _), _;
|
|
8292
|
+
}, w = function(m) {
|
|
8293
|
+
var _ = p(m);
|
|
8294
8294
|
return function(x) {
|
|
8295
8295
|
var v = y(x);
|
|
8296
8296
|
x.addEventListener("message", function(D) {
|
|
@@ -8309,14 +8309,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8309
8309
|
}, S = function(D, U) {
|
|
8310
8310
|
var ae = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
8311
8311
|
x.postMessage({ id: null, method: D, params: U }, ae);
|
|
8312
|
-
}, I = {}, O = 0, P = Object.entries(
|
|
8312
|
+
}, I = {}, O = 0, P = Object.entries(_); O < P.length; O++) {
|
|
8313
8313
|
var N = i(P[O], 2), T = N[0], q = N[1];
|
|
8314
8314
|
I = f(f({}, I), {}, r({}, T, q({ call: E, notify: S })));
|
|
8315
8315
|
}
|
|
8316
8316
|
return f({}, I);
|
|
8317
8317
|
};
|
|
8318
8318
|
};
|
|
8319
|
-
t.createBroker =
|
|
8319
|
+
t.createBroker = w;
|
|
8320
8320
|
});
|
|
8321
8321
|
}), lu = pe((a, e) => {
|
|
8322
8322
|
le(), ue(), ce(), (function(t, r) {
|
|
@@ -8340,26 +8340,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8340
8340
|
var h = u.call;
|
|
8341
8341
|
return function(p) {
|
|
8342
8342
|
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];
|
|
8343
|
-
var
|
|
8344
|
-
o.set(m,
|
|
8345
|
-
var
|
|
8343
|
+
var w = /* @__PURE__ */ Symbol(), m = n.generateUniqueNumber(o);
|
|
8344
|
+
o.set(m, w);
|
|
8345
|
+
var _ = function() {
|
|
8346
8346
|
return h("set", { delay: b, now: performance.timeOrigin + performance.now(), timerId: m, timerType: "interval" }).then(function() {
|
|
8347
8347
|
var x = o.get(m);
|
|
8348
8348
|
if (x === void 0) throw new Error("The timer is in an undefined state.");
|
|
8349
|
-
x ===
|
|
8349
|
+
x === w && (p.apply(void 0, g), o.get(m) === w && _());
|
|
8350
8350
|
});
|
|
8351
8351
|
};
|
|
8352
|
-
return
|
|
8352
|
+
return _(), m;
|
|
8353
8353
|
};
|
|
8354
8354
|
}, setTimeout: function(u) {
|
|
8355
8355
|
var h = u.call;
|
|
8356
8356
|
return function(p) {
|
|
8357
8357
|
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];
|
|
8358
|
-
var
|
|
8359
|
-
return s.set(m,
|
|
8360
|
-
var
|
|
8361
|
-
if (
|
|
8362
|
-
|
|
8358
|
+
var w = /* @__PURE__ */ Symbol(), m = n.generateUniqueNumber(s);
|
|
8359
|
+
return s.set(m, w), h("set", { delay: b, now: performance.timeOrigin + performance.now(), timerId: m, timerType: "timeout" }).then(function() {
|
|
8360
|
+
var _ = s.get(m);
|
|
8361
|
+
if (_ === void 0) throw new Error("The timer is in an undefined state.");
|
|
8362
|
+
_ === w && (s.delete(m), p.apply(void 0, g));
|
|
8363
8363
|
}), m;
|
|
8364
8364
|
};
|
|
8365
8365
|
} }), c = function(u) {
|
|
@@ -8518,12 +8518,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8518
8518
|
return v && v.__esModule ? v : { default: v };
|
|
8519
8519
|
};
|
|
8520
8520
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
8521
|
-
var n = i(wc()), o = Pt(), s = i(kc()), l = i(ht()), c = r(ba()), u = i(ya()), h = i(Hc()), p = i(ja()), b = i(Wc()), f = $t(), g = zc(), y = i(qa()),
|
|
8521
|
+
var n = i(wc()), o = Pt(), s = i(kc()), l = i(ht()), c = r(ba()), u = i(ya()), h = i(Hc()), p = i(ja()), b = i(Wc()), f = $t(), g = zc(), y = i(qa()), w = r(Wr()), m = globalThis.setImmediate || ((...v) => {
|
|
8522
8522
|
let E = v.shift();
|
|
8523
8523
|
(0, f.nextTick)(() => {
|
|
8524
8524
|
E(...v);
|
|
8525
8525
|
});
|
|
8526
|
-
}),
|
|
8526
|
+
}), _ = { 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 hi extends g.TypedEventEmitter {
|
|
8527
8527
|
static VERSION = f.MQTTJS_VERSION;
|
|
8528
8528
|
connected;
|
|
8529
8529
|
disconnecting;
|
|
@@ -8559,8 +8559,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8559
8559
|
}
|
|
8560
8560
|
constructor(E, S) {
|
|
8561
8561
|
super(), this.options = S || {};
|
|
8562
|
-
for (let I in
|
|
8563
|
-
this.log = this.options.log || (0, l.default)("mqttjs:client"), this.noop = this._noop.bind(this), this.log("MqttClient :: version:", hi.VERSION),
|
|
8562
|
+
for (let I in _) typeof this.options[I] > "u" ? this.options[I] = _[I] : this.options[I] = S[I];
|
|
8563
|
+
this.log = this.options.log || (0, l.default)("mqttjs:client"), this.noop = this._noop.bind(this), this.log("MqttClient :: version:", hi.VERSION), w.isWebWorker ? this.log("MqttClient :: environment", "webworker") : this.log("MqttClient :: environment", w.default ? "browser" : "node"), this.log("MqttClient :: options.protocol", S.protocol), this.log("MqttClient :: options.protocolVersion", S.protocolVersion), this.log("MqttClient :: options.username", S.username), this.log("MqttClient :: options.keepalive", S.keepalive), this.log("MqttClient :: options.reconnectPeriod", S.reconnectPeriod), this.log("MqttClient :: options.rejectUnauthorized", S.rejectUnauthorized), this.log("MqttClient :: options.properties.topicAliasMaximum", S.properties ? S.properties.topicAliasMaximum : void 0), this.options.clientId = typeof S.clientId == "string" ? S.clientId : hi.defaultId(), this.log("MqttClient :: clientId", this.options.clientId), this.options.customHandleAcks = S.protocolVersion === 5 && S.customHandleAcks ? S.customHandleAcks : (...I) => {
|
|
8564
8564
|
I[3](null, 0);
|
|
8565
8565
|
}, this.options.writeCache || (n.default.writeToStream.cacheNumbers = !1), this.streamBuilder = E, this.messageIdProvider = typeof this.options.messageIdProvider > "u" ? new p.default() : this.options.messageIdProvider, this.outgoingStore = S.outgoingStore || new u.default(), this.incomingStore = S.incomingStore || new u.default(), this.queueQoSZero = S.queueQoSZero === void 0 ? !0 : S.queueQoSZero, this._resubscribeTopics = {}, this.messageIdToTopic = {}, this.keepaliveManager = null, this.connected = !1, this.disconnecting = !1, this.reconnecting = !1, this.queue = [], this.connackTimer = null, this.reconnectTimer = null, this._storeProcessing = !1, this._packetIdsDuringStoreProcessing = {}, this._storeProcessingQueue = [], this.outgoing = {}, this._firstConnection = !0, S.properties && S.properties.topicAliasMaximum > 0 && (S.properties.topicAliasMaximum > 65535 ? this.log("MqttClient :: options.properties.topicAliasMaximum is out of range") : this.topicAliasRecv = new b.default(S.properties.topicAliasMaximum)), this.on("connect", () => {
|
|
8566
8566
|
let { queue: I } = this, O = () => {
|
|
@@ -9053,7 +9053,7 @@ function du() {
|
|
|
9053
9053
|
function y(P) {
|
|
9054
9054
|
throw new RangeError(p[P]);
|
|
9055
9055
|
}
|
|
9056
|
-
function
|
|
9056
|
+
function w(P, N) {
|
|
9057
9057
|
let T = [], q = P.length;
|
|
9058
9058
|
for (; q--; ) T[q] = N(P[q]);
|
|
9059
9059
|
return T;
|
|
@@ -9061,10 +9061,10 @@ function du() {
|
|
|
9061
9061
|
function m(P, N) {
|
|
9062
9062
|
let T = P.split("@"), q = "";
|
|
9063
9063
|
T.length > 1 && (q = T[0] + "@", P = T[1]), P = P.replace(h, ".");
|
|
9064
|
-
let D = P.split("."), U =
|
|
9064
|
+
let D = P.split("."), U = w(D, N).join(".");
|
|
9065
9065
|
return q + U;
|
|
9066
9066
|
}
|
|
9067
|
-
function
|
|
9067
|
+
function _(P) {
|
|
9068
9068
|
let N = [], T = 0, q = P.length;
|
|
9069
9069
|
for (; T < q; ) {
|
|
9070
9070
|
let D = P.charCodeAt(T++);
|
|
@@ -9104,7 +9104,7 @@ function du() {
|
|
|
9104
9104
|
return String.fromCodePoint(...N);
|
|
9105
9105
|
}, O = function(P) {
|
|
9106
9106
|
let N = [];
|
|
9107
|
-
P =
|
|
9107
|
+
P = _(P);
|
|
9108
9108
|
let T = P.length, q = s, D = 0, U = o;
|
|
9109
9109
|
for (let V of P) V < 128 && N.push(g(V));
|
|
9110
9110
|
let ae = N.length, Y = ae;
|
|
@@ -9127,7 +9127,7 @@ function du() {
|
|
|
9127
9127
|
}
|
|
9128
9128
|
return N.join("");
|
|
9129
9129
|
};
|
|
9130
|
-
return dr = { version: "2.3.1", ucs2: { decode:
|
|
9130
|
+
return dr = { version: "2.3.1", ucs2: { decode: _, encode: x }, decode: I, encode: O, toASCII: function(P) {
|
|
9131
9131
|
return m(P, function(N) {
|
|
9132
9132
|
return u.test(N) ? "xn--" + O(N) : N;
|
|
9133
9133
|
});
|
|
@@ -9268,12 +9268,12 @@ function qt() {
|
|
|
9268
9268
|
}
|
|
9269
9269
|
})() : h, b = wu()(), f = _u()(), g = Object.getPrototypeOf || (f ? function(Y) {
|
|
9270
9270
|
return Y.__proto__;
|
|
9271
|
-
} : null), y = {},
|
|
9271
|
+
} : null), y = {}, w = typeof Uint8Array > "u" || !g ? a : g(Uint8Array), m = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? a : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? a : ArrayBuffer, "%ArrayIteratorPrototype%": b && g ? g([][Symbol.iterator]()) : a, "%AsyncFromSyncIteratorPrototype%": a, "%AsyncFunction%": y, "%AsyncGenerator%": y, "%AsyncGeneratorFunction%": y, "%AsyncIteratorPrototype%": y, "%Atomics%": typeof Atomics > "u" ? a : Atomics, "%BigInt%": typeof BigInt > "u" ? a : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? a : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? a : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? a : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": e, "%eval%": eval, "%EvalError%": t, "%Float32Array%": typeof Float32Array > "u" ? a : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? a : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? a : FinalizationRegistry, "%Function%": l, "%GeneratorFunction%": y, "%Int8Array%": typeof Int8Array > "u" ? a : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? a : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? a : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": b && g ? g(g([][Symbol.iterator]())) : a, "%JSON%": typeof JSON == "object" ? JSON : a, "%Map%": typeof Map > "u" ? a : Map, "%MapIteratorPrototype%": typeof Map > "u" || !b || !g ? a : g((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? a : Promise, "%Proxy%": typeof Proxy > "u" ? a : Proxy, "%RangeError%": r, "%ReferenceError%": i, "%Reflect%": typeof Reflect > "u" ? a : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? a : Set, "%SetIteratorPrototype%": typeof Set > "u" || !b || !g ? a : g((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? a : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": b && g ? g(""[Symbol.iterator]()) : a, "%Symbol%": b ? Symbol : a, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": w, "%TypeError%": o, "%Uint8Array%": typeof Uint8Array > "u" ? a : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? a : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? a : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? a : Uint32Array, "%URIError%": s, "%WeakMap%": typeof WeakMap > "u" ? a : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? a : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? a : WeakSet };
|
|
9272
9272
|
if (g) try {
|
|
9273
9273
|
null.error;
|
|
9274
9274
|
} catch (Y) {
|
|
9275
|
-
var
|
|
9276
|
-
m["%Error.prototype%"] =
|
|
9275
|
+
var _ = g(g(Y));
|
|
9276
|
+
m["%Error.prototype%"] = _;
|
|
9277
9277
|
}
|
|
9278
9278
|
var x = function Y(V) {
|
|
9279
9279
|
var re;
|
|
@@ -9572,8 +9572,8 @@ function Fu() {
|
|
|
9572
9572
|
} else c > b && (n.charCodeAt(s + g) === 47 ? f = g : g === 0 && (f = 0));
|
|
9573
9573
|
break;
|
|
9574
9574
|
}
|
|
9575
|
-
var y = n.charCodeAt(s + g),
|
|
9576
|
-
if (y !==
|
|
9575
|
+
var y = n.charCodeAt(s + g), w = o.charCodeAt(u + g);
|
|
9576
|
+
if (y !== w) break;
|
|
9577
9577
|
y === 47 && (f = g);
|
|
9578
9578
|
}
|
|
9579
9579
|
var m = "";
|
|
@@ -9660,7 +9660,7 @@ Dt(Ka, { URL: () => il, Url: () => Za, default: () => qe, fileURLToPath: () => Q
|
|
|
9660
9660
|
function qu() {
|
|
9661
9661
|
if (Wi) return Ir;
|
|
9662
9662
|
Wi = !0;
|
|
9663
|
-
var a = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = a && e && typeof e.get == "function" ? e.get : null, r = a && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, o = i && n && typeof n.get == "function" ? n.get : null, s = i && 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,
|
|
9663
|
+
var a = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = a && e && typeof e.get == "function" ? e.get : null, r = a && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, o = i && n && typeof n.get == "function" ? n.get : null, s = i && 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, N = 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
9664
|
return z.__proto__;
|
|
9665
9665
|
} : null);
|
|
9666
9666
|
function V(z, ie) {
|
|
@@ -9670,10 +9670,10 @@ function qu() {
|
|
|
9670
9670
|
var Ae = z < 0 ? -P(-z) : P(z);
|
|
9671
9671
|
if (Ae !== z) {
|
|
9672
9672
|
var Ie = String(Ae), Ce = m.call(ie, Ie.length + 1);
|
|
9673
|
-
return
|
|
9673
|
+
return _.call(Ie, Ee, "$&_") + "." + _.call(_.call(Ce, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
9674
9674
|
}
|
|
9675
9675
|
}
|
|
9676
|
-
return
|
|
9676
|
+
return _.call(ie, Ee, "$&_");
|
|
9677
9677
|
}
|
|
9678
9678
|
var re = Xa, F = re.custom, Z = K(F) ? F : null;
|
|
9679
9679
|
Ir = function z(ie, Ee, Ae, Ie) {
|
|
@@ -9715,7 +9715,7 @@ function qu() {
|
|
|
9715
9715
|
return "[Function" + (nr ? ": " + nr : " (anonymous)") + "]" + (Rt.length > 0 ? " { " + I.call(Rt, ", ") + " }" : "");
|
|
9716
9716
|
}
|
|
9717
9717
|
if (K(ie)) {
|
|
9718
|
-
var Ht = D ?
|
|
9718
|
+
var Ht = D ? _.call(String(ie), /^(Symbol\(.*\))_[^)]*$/, "$1") : q.call(ie);
|
|
9719
9719
|
return typeof ie == "object" && !D ? d(Ht) : Ht;
|
|
9720
9720
|
}
|
|
9721
9721
|
if (ve(ie)) {
|
|
@@ -9747,9 +9747,9 @@ function qu() {
|
|
|
9747
9747
|
He.push(Ge(tt, ie));
|
|
9748
9748
|
}), A("Set", o.call(ie), He, et);
|
|
9749
9749
|
}
|
|
9750
|
-
if (fe(ie)) return
|
|
9751
|
-
if (me(ie)) return
|
|
9752
|
-
if (ye(ie)) return
|
|
9750
|
+
if (fe(ie)) return k("WeakMap");
|
|
9751
|
+
if (me(ie)) return k("WeakSet");
|
|
9752
|
+
if (ye(ie)) return k("WeakRef");
|
|
9753
9753
|
if (ne(ie)) return d(Ge(Number(ie)));
|
|
9754
9754
|
if (Q(ie)) return d(Ge(N.call(ie)));
|
|
9755
9755
|
if (W(ie)) return d(f.call(ie));
|
|
@@ -9767,7 +9767,7 @@ function qu() {
|
|
|
9767
9767
|
return Ae + z + Ae;
|
|
9768
9768
|
}
|
|
9769
9769
|
function J(z) {
|
|
9770
|
-
return
|
|
9770
|
+
return _.call(String(z), /"/g, """);
|
|
9771
9771
|
}
|
|
9772
9772
|
function be(z) {
|
|
9773
9773
|
return R(z) === "[object Array]" && (!U || !(typeof z == "object" && U in z));
|
|
@@ -9819,7 +9819,7 @@ function qu() {
|
|
|
9819
9819
|
}
|
|
9820
9820
|
function $(z) {
|
|
9821
9821
|
if (z.name) return z.name;
|
|
9822
|
-
var ie =
|
|
9822
|
+
var ie = w.call(y.call(z), /^function\s*([\w$]+)/);
|
|
9823
9823
|
return ie ? ie[1] : null;
|
|
9824
9824
|
}
|
|
9825
9825
|
function ee(z, ie) {
|
|
@@ -9899,7 +9899,7 @@ function qu() {
|
|
|
9899
9899
|
var Ee = z.length - ie.maxStringLength, Ae = "... " + Ee + " more character" + (Ee > 1 ? "s" : "");
|
|
9900
9900
|
return se(m.call(z, 0, ie.maxStringLength), ie) + Ae;
|
|
9901
9901
|
}
|
|
9902
|
-
var Ie =
|
|
9902
|
+
var Ie = _.call(_.call(z, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Te);
|
|
9903
9903
|
return M(Ie, "single", ie);
|
|
9904
9904
|
}
|
|
9905
9905
|
function Te(z) {
|
|
@@ -9909,7 +9909,7 @@ function qu() {
|
|
|
9909
9909
|
function d(z) {
|
|
9910
9910
|
return "Object(" + z + ")";
|
|
9911
9911
|
}
|
|
9912
|
-
function
|
|
9912
|
+
function k(z) {
|
|
9913
9913
|
return z + " { ? }";
|
|
9914
9914
|
}
|
|
9915
9915
|
function A(z, ie, Ee, Ae) {
|
|
@@ -9955,37 +9955,37 @@ function qu() {
|
|
|
9955
9955
|
function Hu() {
|
|
9956
9956
|
if (zi) return Cr;
|
|
9957
9957
|
zi = !0;
|
|
9958
|
-
var a = qt(), e = Tu(), t = qu(), r = rr(), i = a("%WeakMap%", !0), n = a("%Map%", !0), o = e("WeakMap.prototype.get", !0), s = e("WeakMap.prototype.set", !0), l = e("WeakMap.prototype.has", !0), c = e("Map.prototype.get", !0), u = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), p = function(y,
|
|
9959
|
-
for (var m = y,
|
|
9960
|
-
}, b = function(y,
|
|
9961
|
-
var m = p(y,
|
|
9958
|
+
var a = qt(), e = Tu(), t = qu(), r = rr(), i = a("%WeakMap%", !0), n = a("%Map%", !0), o = e("WeakMap.prototype.get", !0), s = e("WeakMap.prototype.set", !0), l = e("WeakMap.prototype.has", !0), c = e("Map.prototype.get", !0), u = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), p = function(y, w) {
|
|
9959
|
+
for (var m = y, _; (_ = m.next) !== null; m = _) if (_.key === w) return m.next = _.next, _.next = y.next, y.next = _, _;
|
|
9960
|
+
}, b = function(y, w) {
|
|
9961
|
+
var m = p(y, w);
|
|
9962
9962
|
return m && m.value;
|
|
9963
|
-
}, f = function(y,
|
|
9964
|
-
var
|
|
9965
|
-
|
|
9966
|
-
}, g = function(y,
|
|
9967
|
-
return !!p(y,
|
|
9963
|
+
}, f = function(y, w, m) {
|
|
9964
|
+
var _ = p(y, w);
|
|
9965
|
+
_ ? _.value = m : y.next = { key: w, next: y.next, value: m };
|
|
9966
|
+
}, g = function(y, w) {
|
|
9967
|
+
return !!p(y, w);
|
|
9968
9968
|
};
|
|
9969
9969
|
return Cr = function() {
|
|
9970
|
-
var y,
|
|
9971
|
-
if (!
|
|
9970
|
+
var y, w, m, _ = { assert: function(x) {
|
|
9971
|
+
if (!_.has(x)) throw new r("Side channel does not contain " + t(x));
|
|
9972
9972
|
}, get: function(x) {
|
|
9973
9973
|
if (i && x && (typeof x == "object" || typeof x == "function")) {
|
|
9974
9974
|
if (y) return o(y, x);
|
|
9975
9975
|
} else if (n) {
|
|
9976
|
-
if (
|
|
9976
|
+
if (w) return c(w, x);
|
|
9977
9977
|
} else if (m) return b(m, x);
|
|
9978
9978
|
}, has: function(x) {
|
|
9979
9979
|
if (i && x && (typeof x == "object" || typeof x == "function")) {
|
|
9980
9980
|
if (y) return l(y, x);
|
|
9981
9981
|
} else if (n) {
|
|
9982
|
-
if (
|
|
9982
|
+
if (w) return h(w, x);
|
|
9983
9983
|
} else if (m) return g(m, x);
|
|
9984
9984
|
return !1;
|
|
9985
9985
|
}, set: function(x, v) {
|
|
9986
|
-
i && x && (typeof x == "object" || typeof x == "function") ? (y || (y = new i()), s(y, x, v)) : n ? (
|
|
9986
|
+
i && x && (typeof x == "object" || typeof x == "function") ? (y || (y = new i()), s(y, x, v)) : n ? (w || (w = new n()), u(w, x, v)) : (m || (m = { key: {}, next: null }), f(m, x, v));
|
|
9987
9987
|
} };
|
|
9988
|
-
return
|
|
9988
|
+
return _;
|
|
9989
9989
|
}, Cr;
|
|
9990
9990
|
}
|
|
9991
9991
|
function fo() {
|
|
@@ -10002,51 +10002,51 @@ function Ya() {
|
|
|
10002
10002
|
if (Gi) return Pr;
|
|
10003
10003
|
Gi = !0;
|
|
10004
10004
|
var a = fo(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = (function() {
|
|
10005
|
-
for (var y = [],
|
|
10005
|
+
for (var y = [], w = 0; w < 256; ++w) y.push("%" + ((w < 16 ? "0" : "") + w.toString(16)).toUpperCase());
|
|
10006
10006
|
return y;
|
|
10007
10007
|
})(), i = function(y) {
|
|
10008
10008
|
for (; y.length > 1; ) {
|
|
10009
|
-
var
|
|
10009
|
+
var w = y.pop(), m = w.obj[w.prop];
|
|
10010
10010
|
if (t(m)) {
|
|
10011
|
-
for (var
|
|
10012
|
-
|
|
10011
|
+
for (var _ = [], x = 0; x < m.length; ++x) typeof m[x] < "u" && _.push(m[x]);
|
|
10012
|
+
w.obj[w.prop] = _;
|
|
10013
10013
|
}
|
|
10014
10014
|
}
|
|
10015
|
-
}, n = function(y,
|
|
10016
|
-
for (var m =
|
|
10015
|
+
}, n = function(y, w) {
|
|
10016
|
+
for (var m = w && w.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, _ = 0; _ < y.length; ++_) typeof y[_] < "u" && (m[_] = y[_]);
|
|
10017
10017
|
return m;
|
|
10018
|
-
}, o = function y(
|
|
10019
|
-
if (!m) return
|
|
10018
|
+
}, o = function y(w, m, _) {
|
|
10019
|
+
if (!m) return w;
|
|
10020
10020
|
if (typeof m != "object") {
|
|
10021
|
-
if (t(
|
|
10022
|
-
else if (
|
|
10023
|
-
else return [
|
|
10024
|
-
return
|
|
10025
|
-
}
|
|
10026
|
-
if (!
|
|
10027
|
-
var x =
|
|
10028
|
-
return t(
|
|
10029
|
-
if (e.call(
|
|
10030
|
-
var S =
|
|
10031
|
-
S && typeof S == "object" && v && typeof v == "object" ?
|
|
10032
|
-
} else
|
|
10033
|
-
}),
|
|
10021
|
+
if (t(w)) w.push(m);
|
|
10022
|
+
else if (w && typeof w == "object") (_ && (_.plainObjects || _.allowPrototypes) || !e.call(Object.prototype, m)) && (w[m] = !0);
|
|
10023
|
+
else return [w, m];
|
|
10024
|
+
return w;
|
|
10025
|
+
}
|
|
10026
|
+
if (!w || typeof w != "object") return [w].concat(m);
|
|
10027
|
+
var x = w;
|
|
10028
|
+
return t(w) && !t(m) && (x = n(w, _)), t(w) && t(m) ? (m.forEach(function(v, E) {
|
|
10029
|
+
if (e.call(w, E)) {
|
|
10030
|
+
var S = w[E];
|
|
10031
|
+
S && typeof S == "object" && v && typeof v == "object" ? w[E] = y(S, v, _) : w.push(v);
|
|
10032
|
+
} else w[E] = v;
|
|
10033
|
+
}), w) : Object.keys(m).reduce(function(v, E) {
|
|
10034
10034
|
var S = m[E];
|
|
10035
|
-
return e.call(v, E) ? v[E] = y(v[E], S,
|
|
10035
|
+
return e.call(v, E) ? v[E] = y(v[E], S, _) : v[E] = S, v;
|
|
10036
10036
|
}, x);
|
|
10037
|
-
}, s = function(y,
|
|
10038
|
-
return Object.keys(
|
|
10039
|
-
return m[
|
|
10037
|
+
}, s = function(y, w) {
|
|
10038
|
+
return Object.keys(w).reduce(function(m, _) {
|
|
10039
|
+
return m[_] = w[_], m;
|
|
10040
10040
|
}, y);
|
|
10041
|
-
}, l = function(y,
|
|
10042
|
-
var
|
|
10043
|
-
if (m === "iso-8859-1") return
|
|
10041
|
+
}, l = function(y, w, m) {
|
|
10042
|
+
var _ = y.replace(/\+/g, " ");
|
|
10043
|
+
if (m === "iso-8859-1") return _.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
10044
10044
|
try {
|
|
10045
|
-
return decodeURIComponent(
|
|
10045
|
+
return decodeURIComponent(_);
|
|
10046
10046
|
} catch {
|
|
10047
|
-
return
|
|
10047
|
+
return _;
|
|
10048
10048
|
}
|
|
10049
|
-
}, c = 1024, u = function(y,
|
|
10049
|
+
}, c = 1024, u = function(y, w, m, _, x) {
|
|
10050
10050
|
if (y.length === 0) return y;
|
|
10051
10051
|
var v = y;
|
|
10052
10052
|
if (typeof y == "symbol" ? v = Symbol.prototype.toString.call(y) : typeof y != "string" && (v = String(y)), m === "iso-8859-1") return escape(v).replace(/%u[0-9a-f]{4}/gi, function(T) {
|
|
@@ -10077,23 +10077,23 @@ function Ya() {
|
|
|
10077
10077
|
}
|
|
10078
10078
|
return E;
|
|
10079
10079
|
}, h = function(y) {
|
|
10080
|
-
for (var
|
|
10080
|
+
for (var w = [{ obj: { o: y }, prop: "o" }], m = [], _ = 0; _ < w.length; ++_) for (var x = w[_], v = x.obj[x.prop], E = Object.keys(v), S = 0; S < E.length; ++S) {
|
|
10081
10081
|
var I = E[S], O = v[I];
|
|
10082
|
-
typeof O == "object" && O !== null && m.indexOf(O) === -1 && (
|
|
10082
|
+
typeof O == "object" && O !== null && m.indexOf(O) === -1 && (w.push({ obj: v, prop: I }), m.push(O));
|
|
10083
10083
|
}
|
|
10084
|
-
return i(
|
|
10084
|
+
return i(w), y;
|
|
10085
10085
|
}, p = function(y) {
|
|
10086
10086
|
return Object.prototype.toString.call(y) === "[object RegExp]";
|
|
10087
10087
|
}, b = function(y) {
|
|
10088
10088
|
return !y || typeof y != "object" ? !1 : !!(y.constructor && y.constructor.isBuffer && y.constructor.isBuffer(y));
|
|
10089
|
-
}, f = function(y,
|
|
10090
|
-
return [].concat(y,
|
|
10091
|
-
}, g = function(y,
|
|
10089
|
+
}, f = function(y, w) {
|
|
10090
|
+
return [].concat(y, w);
|
|
10091
|
+
}, g = function(y, w) {
|
|
10092
10092
|
if (t(y)) {
|
|
10093
|
-
for (var m = [],
|
|
10093
|
+
for (var m = [], _ = 0; _ < y.length; _ += 1) m.push(w(y[_]));
|
|
10094
10094
|
return m;
|
|
10095
10095
|
}
|
|
10096
|
-
return
|
|
10096
|
+
return w(y);
|
|
10097
10097
|
};
|
|
10098
10098
|
return Pr = { arrayToObject: n, assign: s, combine: f, compact: h, decode: l, encode: u, isBuffer: b, isRegExp: p, maybeMap: g, merge: o }, Pr;
|
|
10099
10099
|
}
|
|
@@ -10112,7 +10112,7 @@ function Wu() {
|
|
|
10112
10112
|
return l.call(g);
|
|
10113
10113
|
}, skipNulls: !1, strictNullHandling: !1 }, h = function(g) {
|
|
10114
10114
|
return typeof g == "string" || typeof g == "number" || typeof g == "boolean" || typeof g == "symbol" || typeof g == "bigint";
|
|
10115
|
-
}, p = {}, b = function g(y,
|
|
10115
|
+
}, p = {}, b = function g(y, w, m, _, x, v, E, S, I, O, P, N, T, q, D, U, ae, Y) {
|
|
10116
10116
|
for (var V = y, re = Y, F = 0, Z = !1; (re = re.get(p)) !== void 0 && !Z; ) {
|
|
10117
10117
|
var M = re.get(y);
|
|
10118
10118
|
if (F += 1, typeof M < "u") {
|
|
@@ -10121,18 +10121,18 @@ function Wu() {
|
|
|
10121
10121
|
}
|
|
10122
10122
|
typeof re.get(p) > "u" && (F = 0);
|
|
10123
10123
|
}
|
|
10124
|
-
if (typeof O == "function" ? V = O(
|
|
10124
|
+
if (typeof O == "function" ? V = O(w, V) : V instanceof Date ? V = T(V) : m === "comma" && n(V) && (V = e.maybeMap(V, function(R) {
|
|
10125
10125
|
return R instanceof Date ? T(R) : R;
|
|
10126
10126
|
})), V === null) {
|
|
10127
|
-
if (v) return I && !U ? I(
|
|
10127
|
+
if (v) return I && !U ? I(w, u.encoder, ae, "key", q) : w;
|
|
10128
10128
|
V = "";
|
|
10129
10129
|
}
|
|
10130
10130
|
if (h(V) || e.isBuffer(V)) {
|
|
10131
10131
|
if (I) {
|
|
10132
|
-
var J = U ?
|
|
10132
|
+
var J = U ? w : I(w, u.encoder, ae, "key", q);
|
|
10133
10133
|
return [D(J) + "=" + D(I(V, u.encoder, ae, "value", q))];
|
|
10134
10134
|
}
|
|
10135
|
-
return [D(
|
|
10135
|
+
return [D(w) + "=" + D(String(V))];
|
|
10136
10136
|
}
|
|
10137
10137
|
var be = [];
|
|
10138
10138
|
if (typeof V > "u") return be;
|
|
@@ -10143,7 +10143,7 @@ function Wu() {
|
|
|
10143
10143
|
var we = Object.keys(V);
|
|
10144
10144
|
te = P ? we.sort(P) : we;
|
|
10145
10145
|
}
|
|
10146
|
-
var G = S ?
|
|
10146
|
+
var G = S ? w.replace(/\./g, "%2E") : w, j = _ && n(V) && V.length === 1 ? G + "[]" : G;
|
|
10147
10147
|
if (x && n(V) && V.length === 0) return j + "[]";
|
|
10148
10148
|
for (var ne = 0; ne < te.length; ++ne) {
|
|
10149
10149
|
var W = te[ne], K = typeof W == "object" && typeof W.value < "u" ? W.value : V[W];
|
|
@@ -10151,7 +10151,7 @@ function Wu() {
|
|
|
10151
10151
|
var Q = N && S ? W.replace(/\./g, "%2E") : W, ge = n(V) ? typeof m == "function" ? m(j, Q) : j : j + (N ? "." + Q : "[" + Q + "]");
|
|
10152
10152
|
Y.set(y, F);
|
|
10153
10153
|
var oe = a();
|
|
10154
|
-
oe.set(p, Y), s(be, g(K, ge, m,
|
|
10154
|
+
oe.set(p, Y), s(be, g(K, ge, m, _, x, v, E, S, m === "comma" && U && n(V) ? null : I, O, P, N, T, q, D, U, ae, oe));
|
|
10155
10155
|
}
|
|
10156
10156
|
}
|
|
10157
10157
|
return be;
|
|
@@ -10162,28 +10162,28 @@ function Wu() {
|
|
|
10162
10162
|
if (g.encoder !== null && typeof g.encoder < "u" && typeof g.encoder != "function") throw new TypeError("Encoder has to be a function.");
|
|
10163
10163
|
var y = g.charset || u.charset;
|
|
10164
10164
|
if (typeof g.charset < "u" && g.charset !== "utf-8" && g.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
10165
|
-
var
|
|
10165
|
+
var w = t.default;
|
|
10166
10166
|
if (typeof g.format < "u") {
|
|
10167
10167
|
if (!r.call(t.formatters, g.format)) throw new TypeError("Unknown format option provided.");
|
|
10168
|
-
|
|
10168
|
+
w = g.format;
|
|
10169
10169
|
}
|
|
10170
|
-
var m = t.formatters[
|
|
10171
|
-
(typeof g.filter == "function" || n(g.filter)) && (
|
|
10170
|
+
var m = t.formatters[w], _ = u.filter;
|
|
10171
|
+
(typeof g.filter == "function" || n(g.filter)) && (_ = g.filter);
|
|
10172
10172
|
var x;
|
|
10173
10173
|
if (g.arrayFormat in i ? x = g.arrayFormat : "indices" in g ? x = g.indices ? "indices" : "repeat" : x = u.arrayFormat, "commaRoundTrip" in g && typeof g.commaRoundTrip != "boolean") throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
10174
10174
|
var v = typeof g.allowDots > "u" ? g.encodeDotInKeys === !0 ? !0 : u.allowDots : !!g.allowDots;
|
|
10175
|
-
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:
|
|
10175
|
+
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 };
|
|
10176
10176
|
};
|
|
10177
10177
|
return Mr = function(g, y) {
|
|
10178
|
-
var
|
|
10179
|
-
typeof m.filter == "function" ? (x = m.filter,
|
|
10178
|
+
var w = g, m = f(y), _, x;
|
|
10179
|
+
typeof m.filter == "function" ? (x = m.filter, w = x("", w)) : n(m.filter) && (x = m.filter, _ = x);
|
|
10180
10180
|
var v = [];
|
|
10181
|
-
if (typeof
|
|
10181
|
+
if (typeof w != "object" || w === null) return "";
|
|
10182
10182
|
var E = i[m.arrayFormat], S = E === "comma" && m.commaRoundTrip;
|
|
10183
|
-
|
|
10184
|
-
for (var I = a(), O = 0; O <
|
|
10185
|
-
var P =
|
|
10186
|
-
m.skipNulls &&
|
|
10183
|
+
_ || (_ = Object.keys(w)), m.sort && _.sort(m.sort);
|
|
10184
|
+
for (var I = a(), O = 0; O < _.length; ++O) {
|
|
10185
|
+
var P = _[O];
|
|
10186
|
+
m.skipNulls && w[P] === null || s(v, b(w[P], P, E, S, m.allowEmptyArrays, m.strictNullHandling, m.skipNulls, m.encodeDotInKeys, m.encode ? m.encoder : null, m.filter, m.sort, m.allowDots, m.serializeDate, m.format, m.formatter, m.encodeValuesOnly, m.charset, I));
|
|
10187
10187
|
}
|
|
10188
10188
|
var N = v.join(m.delimiter), T = m.addQueryPrefix === !0 ? "?" : "";
|
|
10189
10189
|
return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), N.length > 0 ? T + N : "";
|
|
@@ -10201,10 +10201,10 @@ function zu() {
|
|
|
10201
10201
|
}, o = "utf8=%26%2310003%3B", s = "utf8=%E2%9C%93", l = function(p, b) {
|
|
10202
10202
|
var f = { __proto__: null }, g = b.ignoreQueryPrefix ? p.replace(/^\?/, "") : p;
|
|
10203
10203
|
g = g.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
10204
|
-
var y = b.parameterLimit === 1 / 0 ? void 0 : b.parameterLimit,
|
|
10205
|
-
if (b.charsetSentinel) for (
|
|
10206
|
-
for (
|
|
10207
|
-
var v =
|
|
10204
|
+
var y = b.parameterLimit === 1 / 0 ? void 0 : b.parameterLimit, w = g.split(b.delimiter, y), m = -1, _, x = b.charset;
|
|
10205
|
+
if (b.charsetSentinel) for (_ = 0; _ < w.length; ++_) w[_].indexOf("utf8=") === 0 && (w[_] === s ? x = "utf-8" : w[_] === o && (x = "iso-8859-1"), m = _, _ = w.length);
|
|
10206
|
+
for (_ = 0; _ < w.length; ++_) if (_ !== m) {
|
|
10207
|
+
var v = w[_], E = v.indexOf("]="), S = E === -1 ? v.indexOf("=") : E + 1, I, O;
|
|
10208
10208
|
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 = a.maybeMap(n(v.slice(S + 1), b), function(N) {
|
|
10209
10209
|
return b.decoder(N, r.decoder, x, "value");
|
|
10210
10210
|
})), O && b.interpretNumericEntities && x === "iso-8859-1" && (O = i(O)), v.indexOf("[]=") > -1 && (O = t(O) ? [O] : O);
|
|
@@ -10213,31 +10213,31 @@ function zu() {
|
|
|
10213
10213
|
}
|
|
10214
10214
|
return f;
|
|
10215
10215
|
}, c = function(p, b, f, g) {
|
|
10216
|
-
for (var y = g ? b : n(b, f),
|
|
10217
|
-
var m,
|
|
10218
|
-
if (
|
|
10216
|
+
for (var y = g ? b : n(b, f), w = p.length - 1; w >= 0; --w) {
|
|
10217
|
+
var m, _ = p[w];
|
|
10218
|
+
if (_ === "[]" && f.parseArrays) m = f.allowEmptyArrays && (y === "" || f.strictNullHandling && y === null) ? [] : [].concat(y);
|
|
10219
10219
|
else {
|
|
10220
10220
|
m = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
10221
|
-
var x =
|
|
10222
|
-
!f.parseArrays && v === "" ? m = { 0: y } : !isNaN(E) &&
|
|
10221
|
+
var x = _.charAt(0) === "[" && _.charAt(_.length - 1) === "]" ? _.slice(1, -1) : _, v = f.decodeDotInKeys ? x.replace(/%2E/g, ".") : x, E = parseInt(v, 10);
|
|
10222
|
+
!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);
|
|
10223
10223
|
}
|
|
10224
10224
|
y = m;
|
|
10225
10225
|
}
|
|
10226
10226
|
return y;
|
|
10227
10227
|
}, u = function(p, b, f, g) {
|
|
10228
10228
|
if (p) {
|
|
10229
|
-
var y = f.allowDots ? p.replace(/\.([^.[]+)/g, "[$1]") : p,
|
|
10229
|
+
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 = [];
|
|
10230
10230
|
if (x) {
|
|
10231
10231
|
if (!f.plainObjects && e.call(Object.prototype, x) && !f.allowPrototypes) return;
|
|
10232
10232
|
v.push(x);
|
|
10233
10233
|
}
|
|
10234
|
-
for (var E = 0; f.depth > 0 && (
|
|
10235
|
-
if (E += 1, !f.plainObjects && e.call(Object.prototype,
|
|
10236
|
-
v.push(
|
|
10234
|
+
for (var E = 0; f.depth > 0 && (_ = m.exec(y)) !== null && E < f.depth; ) {
|
|
10235
|
+
if (E += 1, !f.plainObjects && e.call(Object.prototype, _[1].slice(1, -1)) && !f.allowPrototypes) return;
|
|
10236
|
+
v.push(_[1]);
|
|
10237
10237
|
}
|
|
10238
|
-
if (
|
|
10238
|
+
if (_) {
|
|
10239
10239
|
if (f.strictDepth === !0) throw new RangeError("Input depth exceeded depth option of " + f.depth + " and strictDepth is true");
|
|
10240
|
-
v.push("[" + y.slice(
|
|
10240
|
+
v.push("[" + y.slice(_.index) + "]");
|
|
10241
10241
|
}
|
|
10242
10242
|
return c(v, b, f, g);
|
|
10243
10243
|
}
|
|
@@ -10255,8 +10255,8 @@ function zu() {
|
|
|
10255
10255
|
return Rr = function(p, b) {
|
|
10256
10256
|
var f = h(b);
|
|
10257
10257
|
if (p === "" || p === null || typeof p > "u") return f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
10258
|
-
for (var g = typeof p == "string" ? l(p, f) : p, y = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {},
|
|
10259
|
-
var
|
|
10258
|
+
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) {
|
|
10259
|
+
var _ = w[m], x = u(_, g[_], f, typeof p == "string");
|
|
10260
10260
|
y = a.merge(y, x, f);
|
|
10261
10261
|
}
|
|
10262
10262
|
return f.allowSparse === !0 ? y : a.compact(y);
|
|
@@ -10277,7 +10277,7 @@ function Gu() {
|
|
|
10277
10277
|
}
|
|
10278
10278
|
var t = /^([a-z0-9.+-]+:)/i, r = /:[0-9]*$/, i = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, n = ["<", ">", '"', "`", " ", "\r", `
|
|
10279
10279
|
`, " "], o = ["{", "}", "|", "\\", "^", "`"].concat(n), s = ["'"].concat(o), l = ["%", "/", "?", ";", "#"].concat(s), 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 = Vu();
|
|
10280
|
-
function
|
|
10280
|
+
function w(v, E, S) {
|
|
10281
10281
|
if (v && typeof v == "object" && v instanceof e) return v;
|
|
10282
10282
|
var I = new e();
|
|
10283
10283
|
return I.parse(v, E, S), I;
|
|
@@ -10346,7 +10346,7 @@ function Gu() {
|
|
|
10346
10346
|
return this.href = this.format(), this;
|
|
10347
10347
|
};
|
|
10348
10348
|
function m(v) {
|
|
10349
|
-
return typeof v == "string" && (v =
|
|
10349
|
+
return typeof v == "string" && (v = w(v)), v instanceof e ? v.format() : e.prototype.format.call(v);
|
|
10350
10350
|
}
|
|
10351
10351
|
e.prototype.format = function() {
|
|
10352
10352
|
var v = this.auth || "";
|
|
@@ -10358,14 +10358,14 @@ function Gu() {
|
|
|
10358
10358
|
return encodeURIComponent(T);
|
|
10359
10359
|
}), N = N.replace("#", "%23"), E + O + S + N + I;
|
|
10360
10360
|
};
|
|
10361
|
-
function
|
|
10362
|
-
return
|
|
10361
|
+
function _(v, E) {
|
|
10362
|
+
return w(v, !1, !0).resolve(E);
|
|
10363
10363
|
}
|
|
10364
10364
|
e.prototype.resolve = function(v) {
|
|
10365
|
-
return this.resolveObject(
|
|
10365
|
+
return this.resolveObject(w(v, !1, !0)).format();
|
|
10366
10366
|
};
|
|
10367
10367
|
function x(v, E) {
|
|
10368
|
-
return v ?
|
|
10368
|
+
return v ? w(v, !1, !0).resolveObject(E) : E;
|
|
10369
10369
|
}
|
|
10370
10370
|
return e.prototype.resolveObject = function(v) {
|
|
10371
10371
|
if (typeof v == "string") {
|
|
@@ -10427,7 +10427,7 @@ function Gu() {
|
|
|
10427
10427
|
}, e.prototype.parseHost = function() {
|
|
10428
10428
|
var v = this.host, E = r.exec(v);
|
|
10429
10429
|
E && (E = E[0], E !== ":" && (this.port = E.substr(1)), v = v.substr(0, v.length - E.length)), v && (this.hostname = v);
|
|
10430
|
-
}, vt.parse =
|
|
10430
|
+
}, vt.parse = w, vt.resolve = _, vt.resolveObject = x, vt.format = m, vt.Url = e, vt;
|
|
10431
10431
|
}
|
|
10432
10432
|
function Qa(a) {
|
|
10433
10433
|
if (typeof a == "string") a = new URL(a);
|
|
@@ -10516,73 +10516,73 @@ var Xa, Ir, Wi, Tr, Cr, zi, Or, Vi, Pr, Gi, Mr, Ki, Rr, Yi, Lr, Qi, vt, Ji, qe,
|
|
|
10516
10516
|
a.BufferedDuplex = i;
|
|
10517
10517
|
}), sr = pe((a) => {
|
|
10518
10518
|
le(), ue(), ce();
|
|
10519
|
-
var e = a && a.__importDefault || function(
|
|
10520
|
-
return
|
|
10519
|
+
var e = a && a.__importDefault || function(w) {
|
|
10520
|
+
return w && w.__esModule ? w : { default: w };
|
|
10521
10521
|
};
|
|
10522
10522
|
Object.defineProperty(a, "__esModule", { value: !0 }), a.streamBuilder = a.browserStreamBuilder = void 0;
|
|
10523
10523
|
var t = (Be(), Pe(Ue)), r = e(Ju()), i = e(ht()), n = Pt(), o = e(Wr()), s = po(), l = (0, i.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
|
|
10524
|
-
function u(
|
|
10525
|
-
let
|
|
10526
|
-
return typeof
|
|
10527
|
-
}
|
|
10528
|
-
function h(
|
|
10529
|
-
let m =
|
|
10530
|
-
return
|
|
10531
|
-
Object.prototype.hasOwnProperty.call(
|
|
10524
|
+
function u(w, m) {
|
|
10525
|
+
let _ = `${w.protocol}://${w.hostname}:${w.port}${w.path}`;
|
|
10526
|
+
return typeof w.transformWsUrl == "function" && (_ = w.transformWsUrl(_, w, m)), _;
|
|
10527
|
+
}
|
|
10528
|
+
function h(w) {
|
|
10529
|
+
let m = w;
|
|
10530
|
+
return w.port || (w.protocol === "wss" ? m.port = 443 : m.port = 80), w.path || (m.path = "/"), w.wsOptions || (m.wsOptions = {}), !o.default && !w.forceNativeWebSocket && w.protocol === "wss" && c.forEach((_) => {
|
|
10531
|
+
Object.prototype.hasOwnProperty.call(w, _) && !Object.prototype.hasOwnProperty.call(w.wsOptions, _) && (m.wsOptions[_] = w[_]);
|
|
10532
10532
|
}), m;
|
|
10533
10533
|
}
|
|
10534
|
-
function p(
|
|
10535
|
-
let m = h(
|
|
10534
|
+
function p(w) {
|
|
10535
|
+
let m = h(w);
|
|
10536
10536
|
if (m.hostname || (m.hostname = m.host), !m.hostname) {
|
|
10537
10537
|
if (typeof document > "u") throw new Error("Could not determine host. Specify host manually.");
|
|
10538
|
-
let
|
|
10539
|
-
m.hostname =
|
|
10538
|
+
let _ = new URL(document.URL);
|
|
10539
|
+
m.hostname = _.hostname, m.port || (m.port = Number(_.port));
|
|
10540
10540
|
}
|
|
10541
10541
|
return m.objectMode === void 0 && (m.objectMode = !(m.binary === !0 || m.binary === void 0)), m;
|
|
10542
10542
|
}
|
|
10543
|
-
function b(
|
|
10544
|
-
l("createWebSocket"), l(`protocol: ${
|
|
10545
|
-
let x =
|
|
10543
|
+
function b(w, m, _) {
|
|
10544
|
+
l("createWebSocket"), l(`protocol: ${_.protocolId} ${_.protocolVersion}`);
|
|
10545
|
+
let x = _.protocolId === "MQIsdp" && _.protocolVersion === 3 ? "mqttv3.1" : "mqtt";
|
|
10546
10546
|
l(`creating new Websocket for url: ${m} and protocol: ${x}`);
|
|
10547
10547
|
let v;
|
|
10548
|
-
return
|
|
10548
|
+
return _.createWebsocket ? v = _.createWebsocket(m, [x], _) : v = new r.default(m, [x], _.wsOptions), v;
|
|
10549
10549
|
}
|
|
10550
|
-
function f(
|
|
10551
|
-
let
|
|
10552
|
-
return m.createWebsocket ? v = m.createWebsocket(x, [
|
|
10550
|
+
function f(w, m) {
|
|
10551
|
+
let _ = m.protocolId === "MQIsdp" && m.protocolVersion === 3 ? "mqttv3.1" : "mqtt", x = u(m, w), v;
|
|
10552
|
+
return m.createWebsocket ? v = m.createWebsocket(x, [_], m) : v = new WebSocket(x, [_]), v.binaryType = "arraybuffer", v;
|
|
10553
10553
|
}
|
|
10554
|
-
var g = (
|
|
10554
|
+
var g = (w, m) => {
|
|
10555
10555
|
l("streamBuilder");
|
|
10556
|
-
let
|
|
10557
|
-
|
|
10558
|
-
let x = u(
|
|
10556
|
+
let _ = h(m);
|
|
10557
|
+
_.hostname = _.hostname || _.host || "localhost";
|
|
10558
|
+
let x = u(_, w), v = b(w, x, _), E = r.default.createWebSocketStream(v, _.wsOptions);
|
|
10559
10559
|
return E.url = x, v.on("close", () => {
|
|
10560
10560
|
E.destroy();
|
|
10561
10561
|
}), E;
|
|
10562
10562
|
};
|
|
10563
10563
|
a.streamBuilder = g;
|
|
10564
|
-
var y = (
|
|
10564
|
+
var y = (w, m) => {
|
|
10565
10565
|
l("browserStreamBuilder");
|
|
10566
|
-
let
|
|
10566
|
+
let _, x = p(m).browserBufferSize || 1024 * 512, v = m.browserBufferTimeout || 1e3, E = !m.objectMode, S = f(w, m), I = P(m, U, ae);
|
|
10567
10567
|
m.objectMode || (I._writev = s.writev.bind(I)), I.on("close", () => {
|
|
10568
10568
|
S.close();
|
|
10569
10569
|
});
|
|
10570
10570
|
let O = typeof S.addEventListener < "u";
|
|
10571
|
-
S.readyState === S.OPEN ? (
|
|
10571
|
+
S.readyState === S.OPEN ? (_ = I, _.socket = S) : (_ = new s.BufferedDuplex(m, I, S), O ? S.addEventListener("open", N) : S.onopen = N), O ? (S.addEventListener("close", T), S.addEventListener("error", q), S.addEventListener("message", D)) : (S.onclose = T, S.onerror = q, S.onmessage = D);
|
|
10572
10572
|
function P(Y, V, re) {
|
|
10573
10573
|
let F = new n.Transform({ objectMode: Y.objectMode });
|
|
10574
10574
|
return F._write = V, F._flush = re, F;
|
|
10575
10575
|
}
|
|
10576
10576
|
function N() {
|
|
10577
|
-
l("WebSocket onOpen"),
|
|
10577
|
+
l("WebSocket onOpen"), _ instanceof s.BufferedDuplex && _.socketReady();
|
|
10578
10578
|
}
|
|
10579
10579
|
function T(Y) {
|
|
10580
|
-
l("WebSocket onClose", Y),
|
|
10580
|
+
l("WebSocket onClose", Y), _.end(), _.destroy();
|
|
10581
10581
|
}
|
|
10582
10582
|
function q(Y) {
|
|
10583
10583
|
l("WebSocket onError", Y);
|
|
10584
10584
|
let V = new Error("WebSocket error");
|
|
10585
|
-
V.event = Y,
|
|
10585
|
+
V.event = Y, _.destroy(V);
|
|
10586
10586
|
}
|
|
10587
10587
|
async function D(Y) {
|
|
10588
10588
|
if (!I || !I.readable || !I.writable) return;
|
|
@@ -10605,7 +10605,7 @@ var Xa, Ir, Wi, Tr, Cr, zi, Or, Vi, Pr, Gi, Mr, Ki, Rr, Yi, Lr, Qi, vt, Ji, qe,
|
|
|
10605
10605
|
function ae(Y) {
|
|
10606
10606
|
S.close(), Y();
|
|
10607
10607
|
}
|
|
10608
|
-
return
|
|
10608
|
+
return _;
|
|
10609
10609
|
};
|
|
10610
10610
|
a.browserStreamBuilder = y;
|
|
10611
10611
|
}), mo = {};
|
|
@@ -10702,15 +10702,15 @@ var vl, Xu = Ve(() => {
|
|
|
10702
10702
|
let f = b.protocolId === "MQIsdp" && b.protocolVersion === 3 ? "mqttv3.1" : "mqtt";
|
|
10703
10703
|
l(b);
|
|
10704
10704
|
let g = c(b, p);
|
|
10705
|
-
i = wx.connectSocket({ url: g, protocols: [f] }), n = s(), o = new r.BufferedDuplex(b, n, i), o._destroy = (
|
|
10705
|
+
i = wx.connectSocket({ url: g, protocols: [f] }), n = s(), o = new r.BufferedDuplex(b, n, i), o._destroy = (w, m) => {
|
|
10706
10706
|
i.close({ success() {
|
|
10707
|
-
m && m(
|
|
10707
|
+
m && m(w);
|
|
10708
10708
|
} });
|
|
10709
10709
|
};
|
|
10710
10710
|
let y = o.destroy;
|
|
10711
|
-
return o.destroy = (
|
|
10711
|
+
return o.destroy = (w, m) => (o.destroy = y, setTimeout(() => {
|
|
10712
10712
|
i.close({ fail() {
|
|
10713
|
-
o._destroy(
|
|
10713
|
+
o._destroy(w, m);
|
|
10714
10714
|
} });
|
|
10715
10715
|
}, 0), o), u(), o;
|
|
10716
10716
|
};
|
|
@@ -10812,7 +10812,7 @@ var vl, Xu = Ve(() => {
|
|
|
10812
10812
|
} else throw new Error("Missing secure protocol key");
|
|
10813
10813
|
if (s || (s = {}, !n.default && !p.forceNativeWebSocket ? (s.ws = sr().streamBuilder, s.wss = sr().streamBuilder, s.mqtt = Is().default, s.tcp = Is().default, s.ssl = Ts().default, s.tls = s.ssl, s.mqtts = Ts().default) : (s.ws = sr().browserStreamBuilder, s.wss = sr().browserStreamBuilder, s.wx = Cs().default, s.wxs = Cs().default, s.ali = Os().default, s.alis = Os().default)), !s[p.protocol]) {
|
|
10814
10814
|
let g = ["mqtts", "wss"].indexOf(p.protocol) !== -1;
|
|
10815
|
-
p.protocol = ["mqtt", "mqtts", "ws", "wss", "wx", "wxs", "ali", "alis"].filter((y,
|
|
10815
|
+
p.protocol = ["mqtt", "mqtts", "ws", "wss", "wx", "wxs", "ali", "alis"].filter((y, w) => g && w % 2 === 0 ? !1 : typeof s[y] == "function")[0];
|
|
10816
10816
|
}
|
|
10817
10817
|
if (p.clean === !1 && !p.clientId) throw new Error("Missing clientId for unclean clients");
|
|
10818
10818
|
p.protocol && (p.defaultProtocol = p.protocol);
|
|
@@ -10825,23 +10825,23 @@ var vl, Xu = Ve(() => {
|
|
|
10825
10825
|
}
|
|
10826
10826
|
function u(h, p, b = !0) {
|
|
10827
10827
|
return new Promise((f, g) => {
|
|
10828
|
-
let y = c(h, p),
|
|
10828
|
+
let y = c(h, p), w = { connect: (_) => {
|
|
10829
10829
|
m(), f(y);
|
|
10830
10830
|
}, end: () => {
|
|
10831
10831
|
m(), f(y);
|
|
10832
|
-
}, error: (
|
|
10833
|
-
m(), y.end(), g(
|
|
10832
|
+
}, error: (_) => {
|
|
10833
|
+
m(), y.end(), g(_);
|
|
10834
10834
|
} };
|
|
10835
|
-
b === !1 && (
|
|
10836
|
-
|
|
10835
|
+
b === !1 && (w.close = () => {
|
|
10836
|
+
w.error(new Error("Couldn't connect to server"));
|
|
10837
10837
|
});
|
|
10838
10838
|
function m() {
|
|
10839
|
-
Object.keys(
|
|
10840
|
-
y.off(
|
|
10839
|
+
Object.keys(w).forEach((_) => {
|
|
10840
|
+
y.off(_, w[_]);
|
|
10841
10841
|
});
|
|
10842
10842
|
}
|
|
10843
|
-
Object.keys(
|
|
10844
|
-
y.on(
|
|
10843
|
+
Object.keys(w).forEach((_) => {
|
|
10844
|
+
y.on(_, w[_]);
|
|
10845
10845
|
});
|
|
10846
10846
|
});
|
|
10847
10847
|
}
|
|
@@ -10850,10 +10850,10 @@ var vl, Xu = Ve(() => {
|
|
|
10850
10850
|
le(), ue(), ce();
|
|
10851
10851
|
var e = a && a.__createBinding || (Object.create ? function(b, f, g, y) {
|
|
10852
10852
|
y === void 0 && (y = g);
|
|
10853
|
-
var
|
|
10854
|
-
(!
|
|
10853
|
+
var w = Object.getOwnPropertyDescriptor(f, g);
|
|
10854
|
+
(!w || ("get" in w ? !f.__esModule : w.writable || w.configurable)) && (w = { enumerable: !0, get: function() {
|
|
10855
10855
|
return f[g];
|
|
10856
|
-
} }), Object.defineProperty(b, y,
|
|
10856
|
+
} }), Object.defineProperty(b, y, w);
|
|
10857
10857
|
} : function(b, f, g, y) {
|
|
10858
10858
|
y === void 0 && (y = g), b[y] = f[g];
|
|
10859
10859
|
}), t = a && a.__setModuleDefault || (Object.create ? function(b, f) {
|
|
@@ -10864,14 +10864,14 @@ var vl, Xu = Ve(() => {
|
|
|
10864
10864
|
var b = function(f) {
|
|
10865
10865
|
return b = Object.getOwnPropertyNames || function(g) {
|
|
10866
10866
|
var y = [];
|
|
10867
|
-
for (var
|
|
10867
|
+
for (var w in g) Object.prototype.hasOwnProperty.call(g, w) && (y[y.length] = w);
|
|
10868
10868
|
return y;
|
|
10869
10869
|
}, b(f);
|
|
10870
10870
|
};
|
|
10871
10871
|
return function(f) {
|
|
10872
10872
|
if (f && f.__esModule) return f;
|
|
10873
10873
|
var g = {};
|
|
10874
|
-
if (f != null) for (var y = b(f),
|
|
10874
|
+
if (f != null) for (var y = b(f), w = 0; w < y.length; w++) y[w] !== "default" && e(g, f, y[w]);
|
|
10875
10875
|
return t(g, f), g;
|
|
10876
10876
|
};
|
|
10877
10877
|
})(), i = a && a.__exportStar || function(b, f) {
|
|
@@ -11825,8 +11825,8 @@ function gh(a) {
|
|
|
11825
11825
|
};
|
|
11826
11826
|
let c = a.signEndpoint.includes("{") ? a.signEndpoint : `${a.signEndpoint}?fileName={fileName}`;
|
|
11827
11827
|
if (!c.includes("{contentType}")) {
|
|
11828
|
-
const
|
|
11829
|
-
c = `${c}${
|
|
11828
|
+
const w = c.includes("?") ? "&" : "?";
|
|
11829
|
+
c = `${c}${w}contentType={contentType}`;
|
|
11830
11830
|
}
|
|
11831
11831
|
const u = Yr(c, o), h = await fetch(u, {
|
|
11832
11832
|
method: a.signMethod ?? "GET",
|
|
@@ -11842,20 +11842,20 @@ function gh(a) {
|
|
|
11842
11842
|
body: t
|
|
11843
11843
|
});
|
|
11844
11844
|
if (!g.ok) {
|
|
11845
|
-
const
|
|
11846
|
-
throw new Error(`S3 PUT failed: ${g.status} ${
|
|
11845
|
+
const w = await g.text().catch(() => "");
|
|
11846
|
+
throw new Error(`S3 PUT failed: ${g.status} ${w.slice(0, 200)}`);
|
|
11847
11847
|
}
|
|
11848
11848
|
if (a.registerEndpoint) {
|
|
11849
|
-
const
|
|
11849
|
+
const w = JSON.parse(
|
|
11850
11850
|
Yr(JSON.stringify(a.registerBody ?? {}), o)
|
|
11851
11851
|
), m = await fetch(a.registerEndpoint, {
|
|
11852
11852
|
method: "POST",
|
|
11853
11853
|
headers: { ...l, "content-type": "application/json" },
|
|
11854
|
-
body: JSON.stringify(
|
|
11854
|
+
body: JSON.stringify(w)
|
|
11855
11855
|
});
|
|
11856
11856
|
if (!m.ok) {
|
|
11857
|
-
const
|
|
11858
|
-
throw new Error(`Register failed: ${m.status} ${
|
|
11857
|
+
const _ = await m.text().catch(() => "");
|
|
11858
|
+
throw new Error(`Register failed: ${m.status} ${_.slice(0, 200)}`);
|
|
11859
11859
|
}
|
|
11860
11860
|
}
|
|
11861
11861
|
return {
|
|
@@ -13806,17 +13806,17 @@ class ad extends HTMLElement {
|
|
|
13806
13806
|
requestAnimationFrame(() => {
|
|
13807
13807
|
n.showElement?.(r.render, o, (b) => {
|
|
13808
13808
|
const f = r.props ?? { setData: p };
|
|
13809
|
-
for (const [y,
|
|
13809
|
+
for (const [y, w] of Object.entries(f)) {
|
|
13810
13810
|
const m = b[y];
|
|
13811
|
-
typeof m == "function" && m.call(b,
|
|
13811
|
+
typeof m == "function" && m.call(b, w);
|
|
13812
13812
|
}
|
|
13813
13813
|
const g = (y) => {
|
|
13814
|
-
const
|
|
13814
|
+
const w = y, m = w.detail?.message ?? w.detail?.label;
|
|
13815
13815
|
m && (n.close?.(), this.dispatchEvent(
|
|
13816
13816
|
new CustomEvent("message-action", {
|
|
13817
13817
|
detail: {
|
|
13818
13818
|
text: m,
|
|
13819
|
-
attributes: { ...
|
|
13819
|
+
attributes: { ...w.detail?.attributes ?? {} }
|
|
13820
13820
|
},
|
|
13821
13821
|
bubbles: !0,
|
|
13822
13822
|
composed: !0
|
|
@@ -16104,8 +16104,8 @@ class Bd {
|
|
|
16104
16104
|
n === "POST" && (i["content-type"] = "application/json", o.body = JSON.stringify(this.descriptor.body ?? {}));
|
|
16105
16105
|
const s = await fetch(this.descriptor.endpoint, o);
|
|
16106
16106
|
if (!s.ok) {
|
|
16107
|
-
const
|
|
16108
|
-
throw new Error(`Session auth failed: ${s.status} ${
|
|
16107
|
+
const w = await s.text().catch(() => "");
|
|
16108
|
+
throw new Error(`Session auth failed: ${s.status} ${w.slice(0, 200)}`);
|
|
16109
16109
|
}
|
|
16110
16110
|
const l = await s.json().catch(() => ({})), c = lr(l, this.descriptor.tokenPath ?? "data.token"), u = this.descriptor.tokenStripPrefix, h = u ? c.replace(new RegExp(`^${u}`, "i"), "").trim() : c;
|
|
16111
16111
|
if (!h) throw new Error("Session auth response missing token");
|
|
@@ -16481,25 +16481,26 @@ function nf() {
|
|
|
16481
16481
|
});
|
|
16482
16482
|
}
|
|
16483
16483
|
const of = "aikaara_chat:requestId";
|
|
16484
|
-
function go(a, e) {
|
|
16485
|
-
|
|
16484
|
+
function go(a, e, t) {
|
|
16485
|
+
const r = `${of}:${a}:${e}`;
|
|
16486
|
+
return t ? `${r}:${t}` : r;
|
|
16486
16487
|
}
|
|
16487
|
-
function Ol(a, e) {
|
|
16488
|
+
function Ol(a, e, t) {
|
|
16488
16489
|
try {
|
|
16489
|
-
return localStorage.getItem(go(a, e));
|
|
16490
|
+
return localStorage.getItem(go(a, e, t));
|
|
16490
16491
|
} catch {
|
|
16491
16492
|
return null;
|
|
16492
16493
|
}
|
|
16493
16494
|
}
|
|
16494
|
-
function sf(a, e, t) {
|
|
16495
|
+
function sf(a, e, t, r) {
|
|
16495
16496
|
try {
|
|
16496
|
-
localStorage.setItem(go(a, e), t);
|
|
16497
|
+
localStorage.setItem(go(a, e, r), t);
|
|
16497
16498
|
} catch {
|
|
16498
16499
|
}
|
|
16499
16500
|
}
|
|
16500
|
-
function hf(a, e) {
|
|
16501
|
+
function hf(a, e, t) {
|
|
16501
16502
|
try {
|
|
16502
|
-
localStorage.removeItem(go(a, e));
|
|
16503
|
+
localStorage.removeItem(go(a, e, t));
|
|
16503
16504
|
} catch {
|
|
16504
16505
|
}
|
|
16505
16506
|
}
|
|
@@ -16538,22 +16539,22 @@ async function eo(a, e, t = "before-chat") {
|
|
|
16538
16539
|
}
|
|
16539
16540
|
const g = { method: b, headers: f };
|
|
16540
16541
|
h.body && (f["content-type"] = "application/json", g.body = JSON.stringify(o(h.body)));
|
|
16541
|
-
let y = 0,
|
|
16542
|
+
let y = 0, w = "", m = 0, _ = null;
|
|
16542
16543
|
for (; ; )
|
|
16543
16544
|
try {
|
|
16544
16545
|
const x = await fetch(p, g);
|
|
16545
16546
|
if (x.ok) {
|
|
16546
|
-
|
|
16547
|
+
_ = x;
|
|
16547
16548
|
break;
|
|
16548
16549
|
}
|
|
16549
|
-
if (y = x.status,
|
|
16550
|
+
if (y = x.status, w = await x.text().catch(() => ""), m < c.length && af(y, w)) {
|
|
16550
16551
|
const E = c[m++];
|
|
16551
16552
|
console.warn(
|
|
16552
16553
|
`[aikaara-chat-sdk] preflight #${u} ${b} ${p} → ${y} (transient). Retry #${m} in ${E}ms.`
|
|
16553
16554
|
), await new Promise((S) => setTimeout(S, E));
|
|
16554
16555
|
continue;
|
|
16555
16556
|
}
|
|
16556
|
-
const v = `Preflight #${u} ${b} ${p} → ${y} ${
|
|
16557
|
+
const v = `Preflight #${u} ${b} ${p} → ${y} ${w.slice(0, 200)}`;
|
|
16557
16558
|
if (h.soft) {
|
|
16558
16559
|
console.warn("[aikaara-chat-sdk]", v);
|
|
16559
16560
|
break;
|
|
@@ -16574,9 +16575,9 @@ async function eo(a, e, t = "before-chat") {
|
|
|
16574
16575
|
}
|
|
16575
16576
|
throw x;
|
|
16576
16577
|
}
|
|
16577
|
-
if (
|
|
16578
|
+
if (_ && h.capture && h.capture.as)
|
|
16578
16579
|
try {
|
|
16579
|
-
const x = await
|
|
16580
|
+
const x = await _.clone().text();
|
|
16580
16581
|
let v = x;
|
|
16581
16582
|
try {
|
|
16582
16583
|
v = JSON.parse(x);
|
|
@@ -16663,11 +16664,11 @@ async function lf(a) {
|
|
|
16663
16664
|
const t = e.transport ?? "tiledesk", r = e.tiledesk;
|
|
16664
16665
|
if ((t === "tiledesk" || t === "dual") && !r)
|
|
16665
16666
|
throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
|
|
16666
|
-
const i = r?.projectId ?? "", n = a.identity.userId, o = a.forceNewConversation ? null : Ol(n, i),
|
|
16667
|
-
(a.conversationId || !
|
|
16668
|
-
const
|
|
16667
|
+
const i = r?.projectId ?? "", n = a.identity.userId, o = a.conversationScope || void 0, s = a.forceNewConversation ? null : Ol(n, i, o), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = a.conversationId ?? s ?? Ml(l, i);
|
|
16668
|
+
(a.conversationId || !s || a.forceNewConversation) && i && sf(n, i, c, o);
|
|
16669
|
+
const u = await a.tokenProvider(), h = a.tokenProvider, p = a.historyTokenProvider ?? h, b = r ? {
|
|
16669
16670
|
mqttEndpoint: r.mqttEndpoint,
|
|
16670
|
-
jwtToken:
|
|
16671
|
+
jwtToken: u,
|
|
16671
16672
|
userId: n,
|
|
16672
16673
|
userName: a.identity.userName,
|
|
16673
16674
|
projectId: r.projectId,
|
|
@@ -16691,22 +16692,22 @@ async function lf(a) {
|
|
|
16691
16692
|
topicTemplates: r.topicTemplates,
|
|
16692
16693
|
debug: r.debug,
|
|
16693
16694
|
senderFullname: a.identity.senderFullname ?? a.identity.userName,
|
|
16694
|
-
tokenProvider:
|
|
16695
|
-
} : void 0,
|
|
16695
|
+
tokenProvider: h
|
|
16696
|
+
} : void 0, f = a.uploadAdapter ?? (e.uploadEndpoint ? _l({
|
|
16696
16697
|
endpoint: e.uploadEndpoint,
|
|
16697
16698
|
fieldName: e.uploadFieldName,
|
|
16698
16699
|
extraFields: e.uploadExtraFields
|
|
16699
|
-
}) : void 0),
|
|
16700
|
+
}) : void 0), g = a.historyAdapter ?? (e.historyApiBase ? yh({
|
|
16700
16701
|
apiBase: e.historyApiBase,
|
|
16701
16702
|
pageSize: e.historyPageSize ?? 200,
|
|
16702
16703
|
pathTemplate: e.historyPathTemplate,
|
|
16703
16704
|
extraHeaders: e.historyHeaders,
|
|
16704
|
-
getToken:
|
|
16705
|
-
}) : void 0),
|
|
16705
|
+
getToken: p
|
|
16706
|
+
}) : void 0), y = {
|
|
16706
16707
|
transport: t,
|
|
16707
16708
|
baseUrl: "",
|
|
16708
16709
|
userToken: a.userToken ?? n,
|
|
16709
|
-
conversationId:
|
|
16710
|
+
conversationId: c,
|
|
16710
16711
|
display: e.display ?? "embed",
|
|
16711
16712
|
position: e.position,
|
|
16712
16713
|
primaryColor: e.theme?.primary ?? e.primaryColor,
|
|
@@ -16730,7 +16731,7 @@ async function lf(a) {
|
|
|
16730
16731
|
input: e.input,
|
|
16731
16732
|
templateLayout: e.templateLayout,
|
|
16732
16733
|
chatActions: e.chatActions,
|
|
16733
|
-
tiledesk:
|
|
16734
|
+
tiledesk: b,
|
|
16734
16735
|
tiledeskIdentity: {
|
|
16735
16736
|
userId: n,
|
|
16736
16737
|
userName: a.identity.userName,
|
|
@@ -16738,17 +16739,17 @@ async function lf(a) {
|
|
|
16738
16739
|
senderFullname: a.identity.senderFullname ?? a.identity.userName
|
|
16739
16740
|
},
|
|
16740
16741
|
templateActionAttributes: e.templateActionAttributes,
|
|
16741
|
-
uploadAdapter:
|
|
16742
|
-
historyAdapter:
|
|
16742
|
+
uploadAdapter: f,
|
|
16743
|
+
historyAdapter: g,
|
|
16743
16744
|
onError: a.onError,
|
|
16744
16745
|
onMessage: a.onMessage
|
|
16745
|
-
},
|
|
16746
|
-
return
|
|
16747
|
-
widget:
|
|
16748
|
-
requestId:
|
|
16749
|
-
config:
|
|
16746
|
+
}, w = document.createElement("aikaara-chat-widget");
|
|
16747
|
+
return w.configure(y), y.title && w.setAttribute("title", y.title), y.primaryColor && w.setAttribute("primary-color", y.primaryColor), y.display && w.setAttribute("display", y.display), y.display === "embed" && (w.style.cssText = "display:flex;flex-direction:column;width:100%;height:100%;min-height:0;--aikaara-close-btn-display:none;"), a.container.appendChild(w), {
|
|
16748
|
+
widget: w,
|
|
16749
|
+
requestId: c,
|
|
16750
|
+
config: y,
|
|
16750
16751
|
destroy() {
|
|
16751
|
-
|
|
16752
|
+
w.remove();
|
|
16752
16753
|
}
|
|
16753
16754
|
};
|
|
16754
16755
|
}
|
|
@@ -16852,9 +16853,9 @@ async function uf(a) {
|
|
|
16852
16853
|
const I = i.tiledesk?.projectId ?? "", O = I ? Ol(s, I) : null, P = i.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", N = O ?? (I ? Ml(P, I) : "");
|
|
16853
16854
|
y.prime(f, { requestId: N, fullName: l });
|
|
16854
16855
|
}
|
|
16855
|
-
const
|
|
16856
|
-
s = s ||
|
|
16857
|
-
const m =
|
|
16856
|
+
const w = await y.get();
|
|
16857
|
+
s = s || w.userId;
|
|
16858
|
+
const m = w.fullName || l || s;
|
|
16858
16859
|
window.__aikaara_runtime__ = {
|
|
16859
16860
|
getChatJwt: async () => (await y.get()).token,
|
|
16860
16861
|
identity: a.user.identity,
|
|
@@ -16863,7 +16864,7 @@ async function uf(a) {
|
|
|
16863
16864
|
// the Smart Edit automation-data proxy (see smartEditApi.ts).
|
|
16864
16865
|
configBase: e
|
|
16865
16866
|
};
|
|
16866
|
-
const
|
|
16867
|
+
const _ = h && i.sso?.autoRefresh ? async () => {
|
|
16867
16868
|
try {
|
|
16868
16869
|
return await h.refresh(), y.reset(), (await y.get()).token;
|
|
16869
16870
|
} catch (I) {
|
|
@@ -16897,20 +16898,22 @@ async function uf(a) {
|
|
|
16897
16898
|
// TaxBuddy's chatbuddy/auth doesn't return a requestId, so `initial.requestId`
|
|
16898
16899
|
// is ''. `preflightRequestId` carries what customer-new (or leader-assignment)
|
|
16899
16900
|
// returned as the backend-assigned conversation so the SDK and backend stay in sync.
|
|
16900
|
-
conversationId:
|
|
16901
|
+
conversationId: w.requestId || g || void 0,
|
|
16902
|
+
// Per-PAN (or other) thread isolation — see SlugMountOptions.conversationScope.
|
|
16903
|
+
conversationScope: a.conversationScope,
|
|
16901
16904
|
onError: a.hooks?.onError,
|
|
16902
16905
|
onMessage: a.hooks?.onMessage,
|
|
16903
16906
|
getLinkBearer: async (I) => I === "none" ? null : I === "chat" ? (await y.get()).token : Zt(a.user.token)
|
|
16904
16907
|
});
|
|
16905
16908
|
return Object.assign(S, {
|
|
16906
16909
|
fullName: m,
|
|
16907
|
-
requestId:
|
|
16910
|
+
requestId: w.requestId,
|
|
16908
16911
|
descriptor: i,
|
|
16909
16912
|
async refreshAuth() {
|
|
16910
16913
|
y.reset(), await y.get();
|
|
16911
16914
|
},
|
|
16912
16915
|
async refreshPartnerAuth() {
|
|
16913
|
-
return
|
|
16916
|
+
return _ ? _() : null;
|
|
16914
16917
|
},
|
|
16915
16918
|
async runMethodSelectPreflight(I) {
|
|
16916
16919
|
const O = i.preflight;
|