@weblock-wallet/sdk 0.1.26 → 0.1.27
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/index.cjs +567 -508
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +566 -507
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
DECIMALS: () => DECIMALS,
|
|
34
34
|
SDKError: () => SDKError,
|
|
35
35
|
SDKErrorCode: () => SDKErrorCode,
|
|
@@ -39,11 +39,11 @@ __export(src_exports, {
|
|
|
39
39
|
TransactionStatus: () => TransactionStatus,
|
|
40
40
|
TransactionType: () => TransactionType,
|
|
41
41
|
WeBlockSDK: () => WeBlockSDK,
|
|
42
|
-
default: () =>
|
|
42
|
+
default: () => index_default
|
|
43
43
|
});
|
|
44
|
-
module.exports = __toCommonJS(
|
|
44
|
+
module.exports = __toCommonJS(index_exports);
|
|
45
45
|
|
|
46
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js
|
|
46
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js
|
|
47
47
|
var exports$2 = {};
|
|
48
48
|
var _dewExec$2 = false;
|
|
49
49
|
function dew$2() {
|
|
@@ -1739,7 +1739,7 @@ function dew() {
|
|
|
1739
1739
|
function numberIsNaN(obj) {
|
|
1740
1740
|
return obj !== obj;
|
|
1741
1741
|
}
|
|
1742
|
-
const hexSliceLookupTable = function() {
|
|
1742
|
+
const hexSliceLookupTable = (function() {
|
|
1743
1743
|
const alphabet = "0123456789abcdef";
|
|
1744
1744
|
const table = new Array(256);
|
|
1745
1745
|
for (let i5 = 0; i5 < 16; ++i5) {
|
|
@@ -1749,7 +1749,7 @@ function dew() {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
return table;
|
|
1752
|
-
}();
|
|
1752
|
+
})();
|
|
1753
1753
|
function defineBigIntMethod(fn) {
|
|
1754
1754
|
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
|
|
1755
1755
|
}
|
|
@@ -1759,7 +1759,7 @@ function dew() {
|
|
|
1759
1759
|
return exports;
|
|
1760
1760
|
}
|
|
1761
1761
|
|
|
1762
|
-
// node_modules/@jspm/core/nodelibs/browser/buffer.js
|
|
1762
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/buffer.js
|
|
1763
1763
|
var exports2 = dew();
|
|
1764
1764
|
exports2["Buffer"];
|
|
1765
1765
|
exports2["SlowBuffer"];
|
|
@@ -1958,7 +1958,7 @@ var Secrets = {
|
|
|
1958
1958
|
}
|
|
1959
1959
|
};
|
|
1960
1960
|
|
|
1961
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js
|
|
1961
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js
|
|
1962
1962
|
var exports$22 = {};
|
|
1963
1963
|
var _dewExec$12 = false;
|
|
1964
1964
|
function dew$12() {
|
|
@@ -2260,7 +2260,7 @@ var exports3 = dew2();
|
|
|
2260
2260
|
exports3["StringDecoder"];
|
|
2261
2261
|
var StringDecoder = exports3.StringDecoder;
|
|
2262
2262
|
|
|
2263
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-DEMDiNwt.js
|
|
2263
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-DEMDiNwt.js
|
|
2264
2264
|
function unimplemented(name2) {
|
|
2265
2265
|
throw new Error("Node.js process " + name2 + " is not supported by JSPM core outside of Node.js");
|
|
2266
2266
|
}
|
|
@@ -2543,7 +2543,7 @@ var process = {
|
|
|
2543
2543
|
setSourceMapsEnabled
|
|
2544
2544
|
};
|
|
2545
2545
|
|
|
2546
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-CkFCi-G1.js
|
|
2546
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-CkFCi-G1.js
|
|
2547
2547
|
var exports4 = {};
|
|
2548
2548
|
var _dewExec3 = false;
|
|
2549
2549
|
function dew3() {
|
|
@@ -2578,7 +2578,7 @@ function dew3() {
|
|
|
2578
2578
|
return exports4;
|
|
2579
2579
|
}
|
|
2580
2580
|
|
|
2581
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-tHuMsdT0.js
|
|
2581
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-tHuMsdT0.js
|
|
2582
2582
|
var e;
|
|
2583
2583
|
var t;
|
|
2584
2584
|
var n = "object" == typeof Reflect ? Reflect : null;
|
|
@@ -2625,10 +2625,10 @@ function h(e7, t5, n5) {
|
|
|
2625
2625
|
var r5 = e7._events;
|
|
2626
2626
|
if (void 0 === r5) return [];
|
|
2627
2627
|
var i5 = r5[t5];
|
|
2628
|
-
return void 0 === i5 ? [] : "function" == typeof i5 ? n5 ? [i5.listener || i5] : [i5] : n5 ? function(e8) {
|
|
2628
|
+
return void 0 === i5 ? [] : "function" == typeof i5 ? n5 ? [i5.listener || i5] : [i5] : n5 ? (function(e8) {
|
|
2629
2629
|
for (var t6 = new Array(e8.length), n6 = 0; n6 < t6.length; ++n6) t6[n6] = e8[n6].listener || e8[n6];
|
|
2630
2630
|
return t6;
|
|
2631
|
-
}(i5) : c(i5, i5.length);
|
|
2631
|
+
})(i5) : c(i5, i5.length);
|
|
2632
2632
|
}
|
|
2633
2633
|
function p(e7) {
|
|
2634
2634
|
var t5 = this._events;
|
|
@@ -2693,10 +2693,10 @@ Object.defineProperty(o, "defaultMaxListeners", { enumerable: true, get: functio
|
|
|
2693
2693
|
break;
|
|
2694
2694
|
}
|
|
2695
2695
|
if (i5 < 0) return this;
|
|
2696
|
-
0 === i5 ? n5.shift() : !function(e8, t6) {
|
|
2696
|
+
0 === i5 ? n5.shift() : !(function(e8, t6) {
|
|
2697
2697
|
for (; t6 + 1 < e8.length; t6++) e8[t6] = e8[t6 + 1];
|
|
2698
2698
|
e8.pop();
|
|
2699
|
-
}(n5, i5), 1 === n5.length && (r5[e7] = n5[0]), void 0 !== r5.removeListener && this.emit("removeListener", e7, s5 || t5);
|
|
2699
|
+
})(n5, i5), 1 === n5.length && (r5[e7] = n5[0]), void 0 !== r5.removeListener && this.emit("removeListener", e7, s5 || t5);
|
|
2700
2700
|
}
|
|
2701
2701
|
return this;
|
|
2702
2702
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.removeAllListeners = function(e7) {
|
|
@@ -2730,7 +2730,7 @@ y.defaultMaxListeners;
|
|
|
2730
2730
|
y.init;
|
|
2731
2731
|
y.listenerCount;
|
|
2732
2732
|
|
|
2733
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-DtDiafJB.js
|
|
2733
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-DtDiafJB.js
|
|
2734
2734
|
y.once = function(emitter, event) {
|
|
2735
2735
|
return new Promise((resolve, reject) => {
|
|
2736
2736
|
function eventListener(...args) {
|
|
@@ -2812,7 +2812,7 @@ y.on = function(emitter, event) {
|
|
|
2812
2812
|
}
|
|
2813
2813
|
};
|
|
2814
2814
|
|
|
2815
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-D3uu3VYh.js
|
|
2815
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-D3uu3VYh.js
|
|
2816
2816
|
var e$2;
|
|
2817
2817
|
var t$3;
|
|
2818
2818
|
var n$2;
|
|
@@ -2837,7 +2837,7 @@ function c$2(e7) {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
}
|
|
2839
2839
|
}
|
|
2840
|
-
!function() {
|
|
2840
|
+
!(function() {
|
|
2841
2841
|
try {
|
|
2842
2842
|
t$3 = "function" == typeof setTimeout ? setTimeout : i$2;
|
|
2843
2843
|
} catch (e7) {
|
|
@@ -2848,7 +2848,7 @@ function c$2(e7) {
|
|
|
2848
2848
|
} catch (e7) {
|
|
2849
2849
|
n$2 = u$2;
|
|
2850
2850
|
}
|
|
2851
|
-
}();
|
|
2851
|
+
})();
|
|
2852
2852
|
var l$2;
|
|
2853
2853
|
var s$1 = [];
|
|
2854
2854
|
var f$1 = false;
|
|
@@ -2864,7 +2864,7 @@ function d$1() {
|
|
|
2864
2864
|
for (l$2 = s$1, s$1 = []; ++a$1 < t5; ) l$2 && l$2[a$1].run();
|
|
2865
2865
|
a$1 = -1, t5 = s$1.length;
|
|
2866
2866
|
}
|
|
2867
|
-
l$2 = null, f$1 = false, function(e8) {
|
|
2867
|
+
l$2 = null, f$1 = false, (function(e8) {
|
|
2868
2868
|
if (n$2 === clearTimeout) return clearTimeout(e8);
|
|
2869
2869
|
if ((n$2 === u$2 || !n$2) && clearTimeout) return n$2 = clearTimeout, clearTimeout(e8);
|
|
2870
2870
|
try {
|
|
@@ -2876,7 +2876,7 @@ function d$1() {
|
|
|
2876
2876
|
return n$2.call(this || r$2, e8);
|
|
2877
2877
|
}
|
|
2878
2878
|
}
|
|
2879
|
-
}(e7);
|
|
2879
|
+
})(e7);
|
|
2880
2880
|
}
|
|
2881
2881
|
}
|
|
2882
2882
|
function m$1(e7, t5) {
|
|
@@ -2931,9 +2931,9 @@ var o2 = function(o5) {
|
|
|
2931
2931
|
var n2 = function(t5) {
|
|
2932
2932
|
return !!o2(t5) || null !== t5 && "object" == typeof t5 && "number" == typeof t5.length && t5.length >= 0 && "[object Array]" !== e2.call(t5) && "[object Function]" === e2.call(t5.callee);
|
|
2933
2933
|
};
|
|
2934
|
-
var r2 = function() {
|
|
2934
|
+
var r2 = (function() {
|
|
2935
2935
|
return o2(arguments);
|
|
2936
|
-
}();
|
|
2936
|
+
})();
|
|
2937
2937
|
o2.isLegacyArguments = n2;
|
|
2938
2938
|
var l2 = r2 ? o2 : n2;
|
|
2939
2939
|
var t$1 = Object.prototype.toString;
|
|
@@ -2941,13 +2941,13 @@ var o$1 = Function.prototype.toString;
|
|
|
2941
2941
|
var n$1 = /^\s*(?:function)?\*/;
|
|
2942
2942
|
var e$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag;
|
|
2943
2943
|
var r$1 = Object.getPrototypeOf;
|
|
2944
|
-
var c2 = function() {
|
|
2944
|
+
var c2 = (function() {
|
|
2945
2945
|
if (!e$1) return false;
|
|
2946
2946
|
try {
|
|
2947
2947
|
return Function("return function*() {}")();
|
|
2948
2948
|
} catch (t5) {
|
|
2949
2949
|
}
|
|
2950
|
-
}();
|
|
2950
|
+
})();
|
|
2951
2951
|
var u2 = c2 ? r$1(c2) : {};
|
|
2952
2952
|
var i2 = function(c5) {
|
|
2953
2953
|
return "function" == typeof c5 && (!!n$1.test(o$1.call(c5)) || (e$1 ? r$1(c5) === u2 : "[object GeneratorFunction]" === t$1.call(c5)));
|
|
@@ -3099,11 +3099,11 @@ o$2.isArgumentsObject = f2, o$2.isGeneratorFunction = a2, o$2.isPromise = functi
|
|
|
3099
3099
|
return H(e7) || Z(e7) || q(e7) || K(e7) || L(e7);
|
|
3100
3100
|
}, o$2.isAnyArrayBuffer = function(e7) {
|
|
3101
3101
|
return l$1 && (V(e7) || _(e7));
|
|
3102
|
-
}, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(e7) {
|
|
3102
|
+
}, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach((function(e7) {
|
|
3103
3103
|
Object.defineProperty(o$2, e7, { enumerable: false, value: function() {
|
|
3104
3104
|
throw new Error(e7 + " is not supported in userland");
|
|
3105
3105
|
} });
|
|
3106
|
-
});
|
|
3106
|
+
}));
|
|
3107
3107
|
var Q = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : global;
|
|
3108
3108
|
var X = {};
|
|
3109
3109
|
var Y = T$1;
|
|
@@ -3118,7 +3118,7 @@ X.format = function(e7) {
|
|
|
3118
3118
|
return t5.join(" ");
|
|
3119
3119
|
}
|
|
3120
3120
|
r5 = 1;
|
|
3121
|
-
for (var n5 = arguments, i5 = n5.length, o5 = String(e7).replace(te, function(e8) {
|
|
3121
|
+
for (var n5 = arguments, i5 = n5.length, o5 = String(e7).replace(te, (function(e8) {
|
|
3122
3122
|
if ("%%" === e8) return "%";
|
|
3123
3123
|
if (r5 >= i5) return e8;
|
|
3124
3124
|
switch (e8) {
|
|
@@ -3135,7 +3135,7 @@ X.format = function(e7) {
|
|
|
3135
3135
|
default:
|
|
3136
3136
|
return e8;
|
|
3137
3137
|
}
|
|
3138
|
-
}), u5 = n5[r5]; r5 < i5; u5 = n5[++r5]) le(u5) || !he(u5) ? o5 += " " + u5 : o5 += " " + oe(u5);
|
|
3138
|
+
})), u5 = n5[r5]; r5 < i5; u5 = n5[++r5]) le(u5) || !he(u5) ? o5 += " " + u5 : o5 += " " + oe(u5);
|
|
3139
3139
|
return o5;
|
|
3140
3140
|
}, X.deprecate = function(e7, t5) {
|
|
3141
3141
|
if (void 0 !== Y && true === Y.noDeprecation) return e7;
|
|
@@ -3174,7 +3174,7 @@ function ae(e7, t5, r5) {
|
|
|
3174
3174
|
var n5 = t5.inspect(r5, e7);
|
|
3175
3175
|
return ge(n5) || (n5 = ae(e7, n5, r5)), n5;
|
|
3176
3176
|
}
|
|
3177
|
-
var i5 = function(e8, t6) {
|
|
3177
|
+
var i5 = (function(e8, t6) {
|
|
3178
3178
|
if (be(t6)) return e8.stylize("undefined", "undefined");
|
|
3179
3179
|
if (ge(t6)) {
|
|
3180
3180
|
var r6 = "'" + JSON.stringify(t6).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
@@ -3183,14 +3183,14 @@ function ae(e7, t5, r5) {
|
|
|
3183
3183
|
if (de(t6)) return e8.stylize("" + t6, "number");
|
|
3184
3184
|
if (ye(t6)) return e8.stylize("" + t6, "boolean");
|
|
3185
3185
|
if (le(t6)) return e8.stylize("null", "null");
|
|
3186
|
-
}(e7, t5);
|
|
3186
|
+
})(e7, t5);
|
|
3187
3187
|
if (i5) return i5;
|
|
3188
|
-
var o5 = Object.keys(t5), u5 = function(e8) {
|
|
3188
|
+
var o5 = Object.keys(t5), u5 = (function(e8) {
|
|
3189
3189
|
var t6 = {};
|
|
3190
|
-
return e8.forEach(function(e9, r6) {
|
|
3190
|
+
return e8.forEach((function(e9, r6) {
|
|
3191
3191
|
t6[e9] = true;
|
|
3192
|
-
}), t6;
|
|
3193
|
-
}(o5);
|
|
3192
|
+
})), t6;
|
|
3193
|
+
})(o5);
|
|
3194
3194
|
if (e7.showHidden && (o5 = Object.getOwnPropertyNames(t5)), Ae(t5) && (o5.indexOf("message") >= 0 || o5.indexOf("description") >= 0)) return ce(t5);
|
|
3195
3195
|
if (0 === o5.length) {
|
|
3196
3196
|
if (we(t5)) {
|
|
@@ -3203,31 +3203,31 @@ function ae(e7, t5, r5) {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
var a5, c5 = "", s5 = false, p5 = ["{", "}"];
|
|
3205
3205
|
(pe(t5) && (s5 = true, p5 = ["[", "]"]), we(t5)) && (c5 = " [Function" + (t5.name ? ": " + t5.name : "") + "]");
|
|
3206
|
-
return me(t5) && (c5 = " " + RegExp.prototype.toString.call(t5)), je(t5) && (c5 = " " + Date.prototype.toUTCString.call(t5)), Ae(t5) && (c5 = " " + ce(t5)), 0 !== o5.length || s5 && 0 != t5.length ? r5 < 0 ? me(t5) ? e7.stylize(RegExp.prototype.toString.call(t5), "regexp") : e7.stylize("[Object]", "special") : (e7.seen.push(t5), a5 = s5 ? function(e8, t6, r6, n6, i6) {
|
|
3206
|
+
return me(t5) && (c5 = " " + RegExp.prototype.toString.call(t5)), je(t5) && (c5 = " " + Date.prototype.toUTCString.call(t5)), Ae(t5) && (c5 = " " + ce(t5)), 0 !== o5.length || s5 && 0 != t5.length ? r5 < 0 ? me(t5) ? e7.stylize(RegExp.prototype.toString.call(t5), "regexp") : e7.stylize("[Object]", "special") : (e7.seen.push(t5), a5 = s5 ? (function(e8, t6, r6, n6, i6) {
|
|
3207
3207
|
for (var o6 = [], u6 = 0, f7 = t6.length; u6 < f7; ++u6) ke(t6, String(u6)) ? o6.push(se(e8, t6, r6, n6, String(u6), true)) : o6.push("");
|
|
3208
|
-
return i6.forEach(function(i7) {
|
|
3208
|
+
return i6.forEach((function(i7) {
|
|
3209
3209
|
i7.match(/^\d+$/) || o6.push(se(e8, t6, r6, n6, i7, true));
|
|
3210
|
-
}), o6;
|
|
3211
|
-
}(e7, t5, r5, u5, o5) : o5.map(function(n6) {
|
|
3210
|
+
})), o6;
|
|
3211
|
+
})(e7, t5, r5, u5, o5) : o5.map((function(n6) {
|
|
3212
3212
|
return se(e7, t5, r5, u5, n6, s5);
|
|
3213
|
-
}), e7.seen.pop(), function(e8, t6, r6) {
|
|
3213
|
+
})), e7.seen.pop(), (function(e8, t6, r6) {
|
|
3214
3214
|
var n6 = 0;
|
|
3215
|
-
if (e8.reduce(function(e9, t7) {
|
|
3215
|
+
if (e8.reduce((function(e9, t7) {
|
|
3216
3216
|
return n6++, t7.indexOf("\n") >= 0 && n6++, e9 + t7.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3217
|
-
}, 0) > 60) return r6[0] + ("" === t6 ? "" : t6 + "\n ") + " " + e8.join(",\n ") + " " + r6[1];
|
|
3217
|
+
}), 0) > 60) return r6[0] + ("" === t6 ? "" : t6 + "\n ") + " " + e8.join(",\n ") + " " + r6[1];
|
|
3218
3218
|
return r6[0] + t6 + " " + e8.join(", ") + " " + r6[1];
|
|
3219
|
-
}(a5, c5, p5)) : p5[0] + c5 + p5[1];
|
|
3219
|
+
})(a5, c5, p5)) : p5[0] + c5 + p5[1];
|
|
3220
3220
|
}
|
|
3221
3221
|
function ce(e7) {
|
|
3222
3222
|
return "[" + Error.prototype.toString.call(e7) + "]";
|
|
3223
3223
|
}
|
|
3224
3224
|
function se(e7, t5, r5, n5, i5, o5) {
|
|
3225
3225
|
var u5, f6, a5;
|
|
3226
|
-
if ((a5 = Object.getOwnPropertyDescriptor(t5, i5) || { value: t5[i5] }).get ? f6 = a5.set ? e7.stylize("[Getter/Setter]", "special") : e7.stylize("[Getter]", "special") : a5.set && (f6 = e7.stylize("[Setter]", "special")), ke(n5, i5) || (u5 = "[" + i5 + "]"), f6 || (e7.seen.indexOf(a5.value) < 0 ? (f6 = le(r5) ? ae(e7, a5.value, null) : ae(e7, a5.value, r5 - 1)).indexOf("\n") > -1 && (f6 = o5 ? f6.split("\n").map(function(e8) {
|
|
3226
|
+
if ((a5 = Object.getOwnPropertyDescriptor(t5, i5) || { value: t5[i5] }).get ? f6 = a5.set ? e7.stylize("[Getter/Setter]", "special") : e7.stylize("[Getter]", "special") : a5.set && (f6 = e7.stylize("[Setter]", "special")), ke(n5, i5) || (u5 = "[" + i5 + "]"), f6 || (e7.seen.indexOf(a5.value) < 0 ? (f6 = le(r5) ? ae(e7, a5.value, null) : ae(e7, a5.value, r5 - 1)).indexOf("\n") > -1 && (f6 = o5 ? f6.split("\n").map((function(e8) {
|
|
3227
3227
|
return " " + e8;
|
|
3228
|
-
}).join("\n").substr(2) : "\n" + f6.split("\n").map(function(e8) {
|
|
3228
|
+
})).join("\n").substr(2) : "\n" + f6.split("\n").map((function(e8) {
|
|
3229
3229
|
return " " + e8;
|
|
3230
|
-
}).join("\n")) : f6 = e7.stylize("[Circular]", "special")), be(u5)) {
|
|
3230
|
+
})).join("\n")) : f6 = e7.stylize("[Circular]", "special")), be(u5)) {
|
|
3231
3231
|
if (o5 && i5.match(/^\d+$/)) return f6;
|
|
3232
3232
|
(u5 = JSON.stringify("" + i5)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (u5 = u5.substr(1, u5.length - 2), u5 = e7.stylize(u5, "name")) : (u5 = u5.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), u5 = e7.stylize(u5, "string"));
|
|
3233
3233
|
}
|
|
@@ -3320,12 +3320,12 @@ X.promisify = function(e7) {
|
|
|
3320
3320
|
return Object.defineProperty(t5, Ee, { value: t5, enumerable: false, writable: false, configurable: true }), t5;
|
|
3321
3321
|
}
|
|
3322
3322
|
function t5() {
|
|
3323
|
-
for (var t6, r5, n5 = new Promise(function(e8, n6) {
|
|
3323
|
+
for (var t6, r5, n5 = new Promise((function(e8, n6) {
|
|
3324
3324
|
t6 = e8, r5 = n6;
|
|
3325
|
-
}), i5 = [], o5 = 0; o5 < arguments.length; o5++) i5.push(arguments[o5]);
|
|
3326
|
-
i5.push(function(e8, n6) {
|
|
3325
|
+
})), i5 = [], o5 = 0; o5 < arguments.length; o5++) i5.push(arguments[o5]);
|
|
3326
|
+
i5.push((function(e8, n6) {
|
|
3327
3327
|
e8 ? r5(e8) : t6(n6);
|
|
3328
|
-
});
|
|
3328
|
+
}));
|
|
3329
3329
|
try {
|
|
3330
3330
|
e7.apply(this || Q, i5);
|
|
3331
3331
|
} catch (e8) {
|
|
@@ -3343,11 +3343,11 @@ X.promisify = function(e7) {
|
|
|
3343
3343
|
var i5 = this || Q, o5 = function() {
|
|
3344
3344
|
return n5.apply(i5, arguments);
|
|
3345
3345
|
};
|
|
3346
|
-
e7.apply(this || Q, t6).then(function(e8) {
|
|
3346
|
+
e7.apply(this || Q, t6).then((function(e8) {
|
|
3347
3347
|
Y.nextTick(o5.bind(null, null, e8));
|
|
3348
|
-
}, function(e8) {
|
|
3348
|
+
}), (function(e8) {
|
|
3349
3349
|
Y.nextTick(De.bind(null, e8, o5));
|
|
3350
|
-
});
|
|
3350
|
+
}));
|
|
3351
3351
|
}
|
|
3352
3352
|
return Object.setPrototypeOf(t5, Object.getPrototypeOf(e7)), Object.defineProperties(t5, ee(e7)), t5;
|
|
3353
3353
|
};
|
|
@@ -3401,7 +3401,7 @@ X.log;
|
|
|
3401
3401
|
var promisify = X.promisify;
|
|
3402
3402
|
X.types;
|
|
3403
3403
|
|
|
3404
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-b0rmRow7.js
|
|
3404
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-b0rmRow7.js
|
|
3405
3405
|
var exports5 = {};
|
|
3406
3406
|
var _dewExec4 = false;
|
|
3407
3407
|
var _global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -3590,14 +3590,14 @@ process2.umask;
|
|
|
3590
3590
|
process2.version;
|
|
3591
3591
|
process2.versions;
|
|
3592
3592
|
|
|
3593
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-B738Er4n.js
|
|
3593
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-B738Er4n.js
|
|
3594
3594
|
for (r$13 = { byteLength: function(r5) {
|
|
3595
3595
|
var t5 = u$22(r5), e7 = t5[0], n5 = t5[1];
|
|
3596
3596
|
return 3 * (e7 + n5) / 4 - n5;
|
|
3597
3597
|
}, toByteArray: function(r5) {
|
|
3598
|
-
var t5, o5, a5 = u$22(r5), h5 = a5[0], c5 = a5[1], d4 = new n$23(function(r6, t6, e7) {
|
|
3598
|
+
var t5, o5, a5 = u$22(r5), h5 = a5[0], c5 = a5[1], d4 = new n$23((function(r6, t6, e7) {
|
|
3599
3599
|
return 3 * (t6 + e7) / 4 - e7;
|
|
3600
|
-
}(0, h5, c5)), f6 = 0, A4 = c5 > 0 ? h5 - 4 : h5;
|
|
3600
|
+
})(0, h5, c5)), f6 = 0, A4 = c5 > 0 ? h5 - 4 : h5;
|
|
3601
3601
|
for (o5 = 0; o5 < A4; o5 += 4) t5 = e$23[r5.charCodeAt(o5)] << 18 | e$23[r5.charCodeAt(o5 + 1)] << 12 | e$23[r5.charCodeAt(o5 + 2)] << 6 | e$23[r5.charCodeAt(o5 + 3)], d4[f6++] = t5 >> 16 & 255, d4[f6++] = t5 >> 8 & 255, d4[f6++] = 255 & t5;
|
|
3602
3602
|
2 === c5 && (t5 = e$23[r5.charCodeAt(o5)] << 2 | e$23[r5.charCodeAt(o5 + 1)] >> 4, d4[f6++] = 255 & t5);
|
|
3603
3603
|
1 === c5 && (t5 = e$23[r5.charCodeAt(o5)] << 10 | e$23[r5.charCodeAt(o5 + 1)] << 4 | e$23[r5.charCodeAt(o5 + 2)] >> 2, d4[f6++] = t5 >> 8 & 255, d4[f6++] = 255 & t5);
|
|
@@ -3662,13 +3662,13 @@ function u$1$1(t5, r5, e7) {
|
|
|
3662
3662
|
return s$12(t5, r5, e7);
|
|
3663
3663
|
}
|
|
3664
3664
|
function s$12(t5, r5, e7) {
|
|
3665
|
-
if ("string" == typeof t5) return function(t6, r6) {
|
|
3665
|
+
if ("string" == typeof t5) return (function(t6, r6) {
|
|
3666
3666
|
"string" == typeof r6 && "" !== r6 || (r6 = "utf8");
|
|
3667
3667
|
if (!u$1$1.isEncoding(r6)) throw new TypeError("Unknown encoding: " + r6);
|
|
3668
3668
|
var e8 = 0 | y3(t6, r6), n6 = f$2(e8), i6 = n6.write(t6, r6);
|
|
3669
3669
|
i6 !== e8 && (n6 = n6.slice(0, i6));
|
|
3670
3670
|
return n6;
|
|
3671
|
-
}(t5, r5);
|
|
3671
|
+
})(t5, r5);
|
|
3672
3672
|
if (ArrayBuffer.isView(t5)) return p3(t5);
|
|
3673
3673
|
if (null == t5) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t5);
|
|
3674
3674
|
if (F2(t5, ArrayBuffer) || t5 && F2(t5.buffer, ArrayBuffer)) return c$1$1(t5, r5, e7);
|
|
@@ -3676,14 +3676,14 @@ function s$12(t5, r5, e7) {
|
|
|
3676
3676
|
if ("number" == typeof t5) throw new TypeError('The "value" argument must not be of type number. Received type number');
|
|
3677
3677
|
var n5 = t5.valueOf && t5.valueOf();
|
|
3678
3678
|
if (null != n5 && n5 !== t5) return u$1$1.from(n5, r5, e7);
|
|
3679
|
-
var i5 = function(t6) {
|
|
3679
|
+
var i5 = (function(t6) {
|
|
3680
3680
|
if (u$1$1.isBuffer(t6)) {
|
|
3681
3681
|
var r6 = 0 | l$12(t6.length), e8 = f$2(r6);
|
|
3682
3682
|
return 0 === e8.length || t6.copy(e8, 0, 0, r6), e8;
|
|
3683
3683
|
}
|
|
3684
3684
|
if (void 0 !== t6.length) return "number" != typeof t6.length || N2(t6.length) ? f$2(0) : p3(t6);
|
|
3685
3685
|
if ("Buffer" === t6.type && Array.isArray(t6.data)) return p3(t6.data);
|
|
3686
|
-
}(t5);
|
|
3686
|
+
})(t5);
|
|
3687
3687
|
if (i5) return i5;
|
|
3688
3688
|
if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof t5[Symbol.toPrimitive]) return u$1$1.from(t5[Symbol.toPrimitive]("string"), r5, e7);
|
|
3689
3689
|
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t5);
|
|
@@ -3822,10 +3822,10 @@ function m2(t5, r5, e7, n5) {
|
|
|
3822
3822
|
return D2(_2(r5, t5.length - e7), t5, e7, n5);
|
|
3823
3823
|
}
|
|
3824
3824
|
function E2(t5, r5, e7, n5) {
|
|
3825
|
-
return D2(function(t6) {
|
|
3825
|
+
return D2((function(t6) {
|
|
3826
3826
|
for (var r6 = [], e8 = 0; e8 < t6.length; ++e8) r6.push(255 & t6.charCodeAt(e8));
|
|
3827
3827
|
return r6;
|
|
3828
|
-
}(r5), t5, e7, n5);
|
|
3828
|
+
})(r5), t5, e7, n5);
|
|
3829
3829
|
}
|
|
3830
3830
|
function B2(t5, r5, e7, n5) {
|
|
3831
3831
|
return E2(t5, r5, e7, n5);
|
|
@@ -3834,10 +3834,10 @@ function A2(t5, r5, e7, n5) {
|
|
|
3834
3834
|
return D2(z2(r5), t5, e7, n5);
|
|
3835
3835
|
}
|
|
3836
3836
|
function U2(t5, r5, e7, n5) {
|
|
3837
|
-
return D2(function(t6, r6) {
|
|
3837
|
+
return D2((function(t6, r6) {
|
|
3838
3838
|
for (var e8, n6, i5, o5 = [], f6 = 0; f6 < t6.length && !((r6 -= 2) < 0); ++f6) e8 = t6.charCodeAt(f6), n6 = e8 >> 8, i5 = e8 % 256, o5.push(i5), o5.push(n6);
|
|
3839
3839
|
return o5;
|
|
3840
|
-
}(r5, t5.length - e7), t5, e7, n5);
|
|
3840
|
+
})(r5, t5.length - e7), t5, e7, n5);
|
|
3841
3841
|
}
|
|
3842
3842
|
function T2(t5, r5, e7) {
|
|
3843
3843
|
return 0 === r5 && e7 === t5.length ? n$1$1.fromByteArray(t5) : n$1$1.fromByteArray(t5.slice(r5, e7));
|
|
@@ -3861,15 +3861,15 @@ function I2(t5, r5, e7) {
|
|
|
3861
3861
|
}
|
|
3862
3862
|
null === a5 ? (a5 = 65533, p5 = 1) : a5 > 65535 && (a5 -= 65536, n5.push(a5 >>> 10 & 1023 | 55296), a5 = 56320 | 1023 & a5), n5.push(a5), i5 += p5;
|
|
3863
3863
|
}
|
|
3864
|
-
return function(t6) {
|
|
3864
|
+
return (function(t6) {
|
|
3865
3865
|
var r6 = t6.length;
|
|
3866
3866
|
if (r6 <= 4096) return String.fromCharCode.apply(String, t6);
|
|
3867
3867
|
var e8 = "", n6 = 0;
|
|
3868
3868
|
for (; n6 < r6; ) e8 += String.fromCharCode.apply(String, t6.slice(n6, n6 += 4096));
|
|
3869
3869
|
return e8;
|
|
3870
|
-
}(n5);
|
|
3870
|
+
})(n5);
|
|
3871
3871
|
}
|
|
3872
|
-
e$1$1.kMaxLength = 2147483647, u$1$1.TYPED_ARRAY_SUPPORT = function() {
|
|
3872
|
+
e$1$1.kMaxLength = 2147483647, u$1$1.TYPED_ARRAY_SUPPORT = (function() {
|
|
3873
3873
|
try {
|
|
3874
3874
|
var t5 = new Uint8Array(1), r5 = { foo: function() {
|
|
3875
3875
|
return 42;
|
|
@@ -3878,16 +3878,16 @@ e$1$1.kMaxLength = 2147483647, u$1$1.TYPED_ARRAY_SUPPORT = function() {
|
|
|
3878
3878
|
} catch (t6) {
|
|
3879
3879
|
return false;
|
|
3880
3880
|
}
|
|
3881
|
-
}(), u$1$1.TYPED_ARRAY_SUPPORT || "undefined" == typeof console || "function" != typeof console.error || 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."), Object.defineProperty(u$1$1.prototype, "parent", { enumerable: true, get: function() {
|
|
3881
|
+
})(), u$1$1.TYPED_ARRAY_SUPPORT || "undefined" == typeof console || "function" != typeof console.error || 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."), Object.defineProperty(u$1$1.prototype, "parent", { enumerable: true, get: function() {
|
|
3882
3882
|
if (u$1$1.isBuffer(this)) return this.buffer;
|
|
3883
3883
|
} }), Object.defineProperty(u$1$1.prototype, "offset", { enumerable: true, get: function() {
|
|
3884
3884
|
if (u$1$1.isBuffer(this)) return this.byteOffset;
|
|
3885
3885
|
} }), u$1$1.poolSize = 8192, u$1$1.from = function(t5, r5, e7) {
|
|
3886
3886
|
return s$12(t5, r5, e7);
|
|
3887
3887
|
}, Object.setPrototypeOf(u$1$1.prototype, Uint8Array.prototype), Object.setPrototypeOf(u$1$1, Uint8Array), u$1$1.alloc = function(t5, r5, e7) {
|
|
3888
|
-
return function(t6, r6, e8) {
|
|
3888
|
+
return (function(t6, r6, e8) {
|
|
3889
3889
|
return h$1$1(t6), t6 <= 0 ? f$2(t6) : void 0 !== r6 ? "string" == typeof e8 ? f$2(t6).fill(r6, e8) : f$2(t6).fill(r6) : f$2(t6);
|
|
3890
|
-
}(t5, r5, e7);
|
|
3890
|
+
})(t5, r5, e7);
|
|
3891
3891
|
}, u$1$1.allocUnsafe = function(t5) {
|
|
3892
3892
|
return a$2(t5);
|
|
3893
3893
|
}, u$1$1.allocUnsafeSlow = function(t5) {
|
|
@@ -4231,11 +4231,11 @@ function _2(t5, r5) {
|
|
|
4231
4231
|
return o5;
|
|
4232
4232
|
}
|
|
4233
4233
|
function z2(t5) {
|
|
4234
|
-
return n$1$1.toByteArray(function(t6) {
|
|
4234
|
+
return n$1$1.toByteArray((function(t6) {
|
|
4235
4235
|
if ((t6 = (t6 = t6.split("=")[0]).trim().replace(j2, "")).length < 2) return "";
|
|
4236
4236
|
for (; t6.length % 4 != 0; ) t6 += "=";
|
|
4237
4237
|
return t6;
|
|
4238
|
-
}(t5));
|
|
4238
|
+
})(t5));
|
|
4239
4239
|
}
|
|
4240
4240
|
function D2(t5, r5, e7, n5) {
|
|
4241
4241
|
for (var i5 = 0; i5 < n5 && !(i5 + e7 >= r5.length || i5 >= t5.length); ++i5) r5[i5 + e7] = t5[i5];
|
|
@@ -4247,10 +4247,10 @@ function F2(t5, r5) {
|
|
|
4247
4247
|
function N2(t5) {
|
|
4248
4248
|
return t5 != t5;
|
|
4249
4249
|
}
|
|
4250
|
-
var Y2 = function() {
|
|
4250
|
+
var Y2 = (function() {
|
|
4251
4251
|
for (var t5 = new Array(256), r5 = 0; r5 < 16; ++r5) for (var e7 = 16 * r5, n5 = 0; n5 < 16; ++n5) t5[e7 + n5] = "0123456789abcdef"[r5] + "0123456789abcdef"[n5];
|
|
4252
4252
|
return t5;
|
|
4253
|
-
}();
|
|
4253
|
+
})();
|
|
4254
4254
|
e$1$1.Buffer;
|
|
4255
4255
|
e$1$1.INSPECT_MAX_BYTES;
|
|
4256
4256
|
e$1$1.kMaxLength;
|
|
@@ -4300,8 +4300,8 @@ var i3 = s3.isEncoding || function(t5) {
|
|
|
4300
4300
|
};
|
|
4301
4301
|
function a3(t5) {
|
|
4302
4302
|
var e7;
|
|
4303
|
-
switch (this.encoding = function(t6) {
|
|
4304
|
-
var e8 = function(t7) {
|
|
4303
|
+
switch (this.encoding = (function(t6) {
|
|
4304
|
+
var e8 = (function(t7) {
|
|
4305
4305
|
if (!t7) return "utf8";
|
|
4306
4306
|
for (var e9; ; ) switch (t7) {
|
|
4307
4307
|
case "utf8":
|
|
@@ -4323,10 +4323,10 @@ function a3(t5) {
|
|
|
4323
4323
|
if (e9) return;
|
|
4324
4324
|
t7 = ("" + t7).toLowerCase(), e9 = true;
|
|
4325
4325
|
}
|
|
4326
|
-
}(t6);
|
|
4326
|
+
})(t6);
|
|
4327
4327
|
if ("string" != typeof e8 && (s3.isEncoding === i3 || !i3(t6))) throw new Error("Unknown encoding: " + t6);
|
|
4328
4328
|
return e8 || t6;
|
|
4329
|
-
}(t5), this.encoding) {
|
|
4329
|
+
})(t5), this.encoding) {
|
|
4330
4330
|
case "utf16le":
|
|
4331
4331
|
this.text = h3, this.end = l3, e7 = 4;
|
|
4332
4332
|
break;
|
|
@@ -4345,13 +4345,13 @@ function r3(t5) {
|
|
|
4345
4345
|
return t5 <= 127 ? 0 : t5 >> 5 == 6 ? 2 : t5 >> 4 == 14 ? 3 : t5 >> 3 == 30 ? 4 : t5 >> 6 == 2 ? -1 : -2;
|
|
4346
4346
|
}
|
|
4347
4347
|
function n$12(t5) {
|
|
4348
|
-
var e7 = this.lastTotal - this.lastNeed, s5 = function(t6, e8, s6) {
|
|
4348
|
+
var e7 = this.lastTotal - this.lastNeed, s5 = (function(t6, e8, s6) {
|
|
4349
4349
|
if (128 != (192 & e8[0])) return t6.lastNeed = 0, "\uFFFD";
|
|
4350
4350
|
if (t6.lastNeed > 1 && e8.length > 1) {
|
|
4351
4351
|
if (128 != (192 & e8[1])) return t6.lastNeed = 1, "\uFFFD";
|
|
4352
4352
|
if (t6.lastNeed > 2 && e8.length > 2 && 128 != (192 & e8[2])) return t6.lastNeed = 2, "\uFFFD";
|
|
4353
4353
|
}
|
|
4354
|
-
}(this, t5);
|
|
4354
|
+
})(this, t5);
|
|
4355
4355
|
return void 0 !== s5 ? s5 : this.lastNeed <= t5.length ? (t5.copy(this.lastChar, e7, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (t5.copy(this.lastChar, e7, 0, t5.length), this.lastNeed -= t5.length, void 0);
|
|
4356
4356
|
}
|
|
4357
4357
|
function h3(t5, e7) {
|
|
@@ -4399,7 +4399,7 @@ e$12.StringDecoder = a3, a3.prototype.write = function(t5) {
|
|
|
4399
4399
|
var e7 = t5 && t5.length ? this.write(t5) : "";
|
|
4400
4400
|
return this.lastNeed ? e7 + "\uFFFD" : e7;
|
|
4401
4401
|
}, a3.prototype.text = function(t5, e7) {
|
|
4402
|
-
var s5 = function(t6, e8, s6) {
|
|
4402
|
+
var s5 = (function(t6, e8, s6) {
|
|
4403
4403
|
var i6 = e8.length - 1;
|
|
4404
4404
|
if (i6 < s6) return 0;
|
|
4405
4405
|
var a5 = r3(e8[i6]);
|
|
@@ -4409,7 +4409,7 @@ e$12.StringDecoder = a3, a3.prototype.write = function(t5) {
|
|
|
4409
4409
|
if (--i6 < s6 || -2 === a5) return 0;
|
|
4410
4410
|
if ((a5 = r3(e8[i6])) >= 0) return a5 > 0 && (2 === a5 ? a5 = 0 : t6.lastNeed = a5 - 3), a5;
|
|
4411
4411
|
return 0;
|
|
4412
|
-
}(this, t5, e7);
|
|
4412
|
+
})(this, t5, e7);
|
|
4413
4413
|
if (!this.lastNeed) return t5.toString("utf8", e7);
|
|
4414
4414
|
this.lastTotal = s5;
|
|
4415
4415
|
var i5 = t5.length - (s5 - this.lastNeed);
|
|
@@ -6113,7 +6113,7 @@ function dew$g() {
|
|
|
6113
6113
|
function numberIsNaN(obj) {
|
|
6114
6114
|
return obj !== obj;
|
|
6115
6115
|
}
|
|
6116
|
-
const hexSliceLookupTable = function() {
|
|
6116
|
+
const hexSliceLookupTable = (function() {
|
|
6117
6117
|
const alphabet = "0123456789abcdef";
|
|
6118
6118
|
const table = new Array(256);
|
|
6119
6119
|
for (let i5 = 0; i5 < 16; ++i5) {
|
|
@@ -6123,7 +6123,7 @@ function dew$g() {
|
|
|
6123
6123
|
}
|
|
6124
6124
|
}
|
|
6125
6125
|
return table;
|
|
6126
|
-
}();
|
|
6126
|
+
})();
|
|
6127
6127
|
function defineBigIntMethod(fn) {
|
|
6128
6128
|
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
|
|
6129
6129
|
}
|
|
@@ -6247,7 +6247,7 @@ function dew$d() {
|
|
|
6247
6247
|
function copyBuffer(src, target, offset) {
|
|
6248
6248
|
Buffer3.prototype.copy.call(src, target, offset);
|
|
6249
6249
|
}
|
|
6250
|
-
exports$d = /* @__PURE__ */ function() {
|
|
6250
|
+
exports$d = /* @__PURE__ */ (function() {
|
|
6251
6251
|
function BufferList() {
|
|
6252
6252
|
_classCallCheck(this, BufferList);
|
|
6253
6253
|
this.head = null;
|
|
@@ -6411,7 +6411,7 @@ function dew$d() {
|
|
|
6411
6411
|
}
|
|
6412
6412
|
}]);
|
|
6413
6413
|
return BufferList;
|
|
6414
|
-
}();
|
|
6414
|
+
})();
|
|
6415
6415
|
return exports$d;
|
|
6416
6416
|
}
|
|
6417
6417
|
var exports$c = {};
|
|
@@ -8110,11 +8110,11 @@ function dew$3() {
|
|
|
8110
8110
|
});
|
|
8111
8111
|
for (var i5 in stream2) {
|
|
8112
8112
|
if (this[i5] === void 0 && typeof stream2[i5] === "function") {
|
|
8113
|
-
this[i5] = /* @__PURE__ */ function methodWrap(method) {
|
|
8113
|
+
this[i5] = /* @__PURE__ */ (function methodWrap(method) {
|
|
8114
8114
|
return function methodWrapReturnFunction() {
|
|
8115
8115
|
return stream2[method].apply(stream2, arguments);
|
|
8116
8116
|
};
|
|
8117
|
-
}(i5);
|
|
8117
|
+
})(i5);
|
|
8118
8118
|
}
|
|
8119
8119
|
}
|
|
8120
8120
|
for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
|
|
@@ -8429,7 +8429,7 @@ function dew5() {
|
|
|
8429
8429
|
return exports6;
|
|
8430
8430
|
}
|
|
8431
8431
|
|
|
8432
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-CbQqNoLO.js
|
|
8432
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-CbQqNoLO.js
|
|
8433
8433
|
X._extend;
|
|
8434
8434
|
X.callbackify;
|
|
8435
8435
|
X.debuglog;
|
|
@@ -8458,7 +8458,7 @@ X.types;
|
|
|
8458
8458
|
X.TextEncoder = globalThis.TextEncoder;
|
|
8459
8459
|
X.TextDecoder = globalThis.TextDecoder;
|
|
8460
8460
|
|
|
8461
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-B6-G-Ftj.js
|
|
8461
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-B6-G-Ftj.js
|
|
8462
8462
|
var exports$14 = {};
|
|
8463
8463
|
var _dewExec6 = false;
|
|
8464
8464
|
var _global3 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -8560,7 +8560,7 @@ exports7.Stream;
|
|
|
8560
8560
|
pipeline: promisify2(exports7.pipeline)
|
|
8561
8561
|
});
|
|
8562
8562
|
|
|
8563
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-C4rKjYLo.js
|
|
8563
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-C4rKjYLo.js
|
|
8564
8564
|
var exports8 = {};
|
|
8565
8565
|
var _dewExec7 = false;
|
|
8566
8566
|
function dew7() {
|
|
@@ -8578,7 +8578,7 @@ function dew7() {
|
|
|
8578
8578
|
return exports8;
|
|
8579
8579
|
}
|
|
8580
8580
|
|
|
8581
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-BsRZ0PEC.js
|
|
8581
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-BsRZ0PEC.js
|
|
8582
8582
|
var exports9 = {};
|
|
8583
8583
|
var _dewExec8 = false;
|
|
8584
8584
|
var _global4 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -8619,7 +8619,7 @@ function dew8() {
|
|
|
8619
8619
|
return exports9;
|
|
8620
8620
|
}
|
|
8621
8621
|
|
|
8622
|
-
// node_modules/@jspm/core/nodelibs/browser/vm.js
|
|
8622
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/vm.js
|
|
8623
8623
|
var exports$15 = {};
|
|
8624
8624
|
var _dewExec9 = false;
|
|
8625
8625
|
var _global5 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -8647,7 +8647,7 @@ function dew9() {
|
|
|
8647
8647
|
fn(xs[i5], i5, xs);
|
|
8648
8648
|
}
|
|
8649
8649
|
};
|
|
8650
|
-
var defineProp = function() {
|
|
8650
|
+
var defineProp = (function() {
|
|
8651
8651
|
try {
|
|
8652
8652
|
Object.defineProperty({}, "_", {});
|
|
8653
8653
|
return function(obj, name2, value) {
|
|
@@ -8663,7 +8663,7 @@ function dew9() {
|
|
|
8663
8663
|
obj[name2] = value;
|
|
8664
8664
|
};
|
|
8665
8665
|
}
|
|
8666
|
-
}();
|
|
8666
|
+
})();
|
|
8667
8667
|
var globals = ["Array", "Boolean", "Date", "Error", "EvalError", "Function", "Infinity", "JSON", "Math", "NaN", "Number", "Object", "RangeError", "ReferenceError", "RegExp", "String", "SyntaxError", "TypeError", "URIError", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "undefined", "unescape"];
|
|
8668
8668
|
function Context() {
|
|
8669
8669
|
}
|
|
@@ -8758,7 +8758,7 @@ var runInContext = exports10.runInContext;
|
|
|
8758
8758
|
var runInNewContext = exports10.runInNewContext;
|
|
8759
8759
|
var runInThisContext = exports10.runInThisContext;
|
|
8760
8760
|
|
|
8761
|
-
// node_modules/@jspm/core/nodelibs/browser/crypto.js
|
|
8761
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/crypto.js
|
|
8762
8762
|
var exports$3H = {};
|
|
8763
8763
|
var _dewExec$3G = false;
|
|
8764
8764
|
var _global$1e = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -11493,7 +11493,7 @@ function dew$30() {
|
|
|
11493
11493
|
return [t0, t1, t22, t32];
|
|
11494
11494
|
}
|
|
11495
11495
|
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
11496
|
-
var G3 = function() {
|
|
11496
|
+
var G3 = (function() {
|
|
11497
11497
|
var d4 = new Array(256);
|
|
11498
11498
|
for (var j4 = 0; j4 < 256; j4++) {
|
|
11499
11499
|
if (j4 < 128) {
|
|
@@ -11539,7 +11539,7 @@ function dew$30() {
|
|
|
11539
11539
|
SUB_MIX,
|
|
11540
11540
|
INV_SUB_MIX
|
|
11541
11541
|
};
|
|
11542
|
-
}();
|
|
11542
|
+
})();
|
|
11543
11543
|
function AES(key) {
|
|
11544
11544
|
(this || _global$11)._key = asUInt32Array(key);
|
|
11545
11545
|
this._reset();
|
|
@@ -18754,7 +18754,7 @@ function dew$d$2() {
|
|
|
18754
18754
|
function copyBuffer(src, target, offset) {
|
|
18755
18755
|
Buffer3.prototype.copy.call(src, target, offset);
|
|
18756
18756
|
}
|
|
18757
|
-
exports$d$2 = /* @__PURE__ */ function() {
|
|
18757
|
+
exports$d$2 = /* @__PURE__ */ (function() {
|
|
18758
18758
|
function BufferList() {
|
|
18759
18759
|
_classCallCheck(this, BufferList);
|
|
18760
18760
|
this.head = null;
|
|
@@ -18918,7 +18918,7 @@ function dew$d$2() {
|
|
|
18918
18918
|
}
|
|
18919
18919
|
}]);
|
|
18920
18920
|
return BufferList;
|
|
18921
|
-
}();
|
|
18921
|
+
})();
|
|
18922
18922
|
return exports$d$2;
|
|
18923
18923
|
}
|
|
18924
18924
|
var exports$c$2 = {};
|
|
@@ -20617,11 +20617,11 @@ function dew$3$2() {
|
|
|
20617
20617
|
});
|
|
20618
20618
|
for (var i5 in stream2) {
|
|
20619
20619
|
if (this[i5] === void 0 && typeof stream2[i5] === "function") {
|
|
20620
|
-
this[i5] = /* @__PURE__ */ function methodWrap(method) {
|
|
20620
|
+
this[i5] = /* @__PURE__ */ (function methodWrap(method) {
|
|
20621
20621
|
return function methodWrapReturnFunction() {
|
|
20622
20622
|
return stream2[method].apply(stream2, arguments);
|
|
20623
20623
|
};
|
|
20624
|
-
}(i5);
|
|
20624
|
+
})(i5);
|
|
20625
20625
|
}
|
|
20626
20626
|
}
|
|
20627
20627
|
for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
|
|
@@ -22788,7 +22788,7 @@ function dew$25() {
|
|
|
22788
22788
|
return [t0, t1, t22, t32];
|
|
22789
22789
|
}
|
|
22790
22790
|
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
22791
|
-
var G3 = function() {
|
|
22791
|
+
var G3 = (function() {
|
|
22792
22792
|
var d4 = new Array(256);
|
|
22793
22793
|
for (var j4 = 0; j4 < 256; j4++) {
|
|
22794
22794
|
if (j4 < 128) {
|
|
@@ -22834,7 +22834,7 @@ function dew$25() {
|
|
|
22834
22834
|
SUB_MIX,
|
|
22835
22835
|
INV_SUB_MIX
|
|
22836
22836
|
};
|
|
22837
|
-
}();
|
|
22837
|
+
})();
|
|
22838
22838
|
function AES(key) {
|
|
22839
22839
|
(this || _global$F)._key = asUInt32Array(key);
|
|
22840
22840
|
this._reset();
|
|
@@ -29903,9 +29903,9 @@ function n$q(e7, n5, r5) {
|
|
|
29903
29903
|
r5 || (r5 = Error);
|
|
29904
29904
|
class o5 extends r5 {
|
|
29905
29905
|
constructor(e8, t5, r6) {
|
|
29906
|
-
super(function(e9, t6, r7) {
|
|
29906
|
+
super((function(e9, t6, r7) {
|
|
29907
29907
|
return "string" == typeof n5 ? n5 : n5(e9, t6, r7);
|
|
29908
|
-
}(e8, t5, r6));
|
|
29908
|
+
})(e8, t5, r6));
|
|
29909
29909
|
}
|
|
29910
29910
|
}
|
|
29911
29911
|
o5.prototype.name = r5.name, o5.prototype.code = e7, t$c[e7] = o5;
|
|
@@ -29917,28 +29917,28 @@ function r$h(e7, t5) {
|
|
|
29917
29917
|
}
|
|
29918
29918
|
return `of ${t5} ${String(e7)}`;
|
|
29919
29919
|
}
|
|
29920
|
-
n$q("ERR_INVALID_OPT_VALUE", function(e7, t5) {
|
|
29920
|
+
n$q("ERR_INVALID_OPT_VALUE", (function(e7, t5) {
|
|
29921
29921
|
return 'The value "' + t5 + '" is invalid for option "' + e7 + '"';
|
|
29922
|
-
}, TypeError), n$q("ERR_INVALID_ARG_TYPE", function(e7, t5, n5) {
|
|
29922
|
+
}), TypeError), n$q("ERR_INVALID_ARG_TYPE", (function(e7, t5, n5) {
|
|
29923
29923
|
let o5;
|
|
29924
29924
|
var E4;
|
|
29925
29925
|
let u5;
|
|
29926
|
-
if ("string" == typeof t5 && (E4 = "not ", t5.substr(0, E4.length) === E4) ? (o5 = "must not be", t5 = t5.replace(/^not /, "")) : o5 = "must be", function(e8, t6, n6) {
|
|
29926
|
+
if ("string" == typeof t5 && (E4 = "not ", t5.substr(0, E4.length) === E4) ? (o5 = "must not be", t5 = t5.replace(/^not /, "")) : o5 = "must be", (function(e8, t6, n6) {
|
|
29927
29927
|
return (void 0 === n6 || n6 > e8.length) && (n6 = e8.length), e8.substring(n6 - t6.length, n6) === t6;
|
|
29928
|
-
}(e7, " argument")) u5 = `The ${e7} ${o5} ${r$h(t5, "type")}`;
|
|
29928
|
+
})(e7, " argument")) u5 = `The ${e7} ${o5} ${r$h(t5, "type")}`;
|
|
29929
29929
|
else {
|
|
29930
|
-
u5 = `The "${e7}" ${function(e8, t6, n6) {
|
|
29930
|
+
u5 = `The "${e7}" ${(function(e8, t6, n6) {
|
|
29931
29931
|
return "number" != typeof n6 && (n6 = 0), !(n6 + t6.length > e8.length) && -1 !== e8.indexOf(t6, n6);
|
|
29932
|
-
}(e7, ".") ? "property" : "argument"} ${o5} ${r$h(t5, "type")}`;
|
|
29932
|
+
})(e7, ".") ? "property" : "argument"} ${o5} ${r$h(t5, "type")}`;
|
|
29933
29933
|
}
|
|
29934
29934
|
return u5 += `. Received type ${typeof n5}`, u5;
|
|
29935
|
-
}, TypeError), n$q("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n$q("ERR_METHOD_NOT_IMPLEMENTED", function(e7) {
|
|
29935
|
+
}), TypeError), n$q("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n$q("ERR_METHOD_NOT_IMPLEMENTED", (function(e7) {
|
|
29936
29936
|
return "The " + e7 + " method is not implemented";
|
|
29937
|
-
}), n$q("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), n$q("ERR_STREAM_DESTROYED", function(e7) {
|
|
29937
|
+
})), n$q("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), n$q("ERR_STREAM_DESTROYED", (function(e7) {
|
|
29938
29938
|
return "Cannot call " + e7 + " after a stream was destroyed";
|
|
29939
|
-
}), n$q("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), n$q("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), n$q("ERR_STREAM_WRITE_AFTER_END", "write after end"), n$q("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), n$q("ERR_UNKNOWN_ENCODING", function(e7) {
|
|
29939
|
+
})), n$q("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), n$q("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), n$q("ERR_STREAM_WRITE_AFTER_END", "write after end"), n$q("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), n$q("ERR_UNKNOWN_ENCODING", (function(e7) {
|
|
29940
29940
|
return "Unknown encoding: " + e7;
|
|
29941
|
-
}, TypeError), n$q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), e$1$12.codes = t$c;
|
|
29941
|
+
}), TypeError), n$q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), e$1$12.codes = t$c;
|
|
29942
29942
|
var r$1$1 = function() {
|
|
29943
29943
|
throw new Error("Readable.from is not available in the browser");
|
|
29944
29944
|
};
|
|
@@ -29967,9 +29967,9 @@ function u$p(e7, t5) {
|
|
|
29967
29967
|
var n5 = Object.keys(e7);
|
|
29968
29968
|
if (Object.getOwnPropertySymbols) {
|
|
29969
29969
|
var r5 = Object.getOwnPropertySymbols(e7);
|
|
29970
|
-
t5 && (r5 = r5.filter(function(t6) {
|
|
29970
|
+
t5 && (r5 = r5.filter((function(t6) {
|
|
29971
29971
|
return Object.getOwnPropertyDescriptor(e7, t6).enumerable;
|
|
29972
|
-
})), n5.push.apply(n5, r5);
|
|
29972
|
+
}))), n5.push.apply(n5, r5);
|
|
29973
29973
|
}
|
|
29974
29974
|
return n5;
|
|
29975
29975
|
}
|
|
@@ -29985,11 +29985,11 @@ function h$l(e7, t5) {
|
|
|
29985
29985
|
var c$n = e$1$1.Buffer;
|
|
29986
29986
|
var b$j = X.inspect;
|
|
29987
29987
|
var p$s = b$j && b$j.custom || "inspect";
|
|
29988
|
-
var g$h = function() {
|
|
29988
|
+
var g$h = (function() {
|
|
29989
29989
|
function e7() {
|
|
29990
|
-
!function(e8, t6) {
|
|
29990
|
+
!(function(e8, t6) {
|
|
29991
29991
|
if (!(e8 instanceof t6)) throw new TypeError("Cannot call a class as a function");
|
|
29992
|
-
}(this, e7), this.head = null, this.tail = null, this.length = 0;
|
|
29992
|
+
})(this, e7), this.head = null, this.tail = null, this.length = 0;
|
|
29993
29993
|
}
|
|
29994
29994
|
var t5, n5;
|
|
29995
29995
|
return t5 = e7, (n5 = [{ key: "push", value: function(e8) {
|
|
@@ -30041,19 +30041,19 @@ var g$h = function() {
|
|
|
30041
30041
|
}
|
|
30042
30042
|
return this.length -= r5, t6;
|
|
30043
30043
|
} }, { key: p$s, value: function(e8, t6) {
|
|
30044
|
-
return b$j(this, function(e9) {
|
|
30044
|
+
return b$j(this, (function(e9) {
|
|
30045
30045
|
for (var t7 = 1; t7 < arguments.length; t7++) {
|
|
30046
30046
|
var n6 = null != arguments[t7] ? arguments[t7] : {};
|
|
30047
|
-
t7 % 2 ? u$p(Object(n6), true).forEach(function(t8) {
|
|
30047
|
+
t7 % 2 ? u$p(Object(n6), true).forEach((function(t8) {
|
|
30048
30048
|
f$v(e9, t8, n6[t8]);
|
|
30049
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : u$p(Object(n6)).forEach(function(t8) {
|
|
30049
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : u$p(Object(n6)).forEach((function(t8) {
|
|
30050
30050
|
Object.defineProperty(e9, t8, Object.getOwnPropertyDescriptor(n6, t8));
|
|
30051
|
-
});
|
|
30051
|
+
}));
|
|
30052
30052
|
}
|
|
30053
30053
|
return e9;
|
|
30054
|
-
}({}, t6, { depth: 0, customInspect: false }));
|
|
30054
|
+
})({}, t6, { depth: 0, customInspect: false }));
|
|
30055
30055
|
} }]) && h$l(t5.prototype, n5), e7;
|
|
30056
|
-
}();
|
|
30056
|
+
})();
|
|
30057
30057
|
var y$n = T$1;
|
|
30058
30058
|
function w$j(e7, t5) {
|
|
30059
30059
|
_$h(e7, t5), v$k(e7);
|
|
@@ -30066,9 +30066,9 @@ function _$h(e7, t5) {
|
|
|
30066
30066
|
}
|
|
30067
30067
|
var m$m = { destroy: function(e7, t5) {
|
|
30068
30068
|
var n5 = this, r5 = this._readableState && this._readableState.destroyed, i5 = this._writableState && this._writableState.destroyed;
|
|
30069
|
-
return r5 || i5 ? (t5 ? t5(e7) : e7 && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true, y$n.nextTick(_$h, this, e7)) : y$n.nextTick(_$h, this, e7)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(e7 || null, function(e8) {
|
|
30069
|
+
return r5 || i5 ? (t5 ? t5(e7) : e7 && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true, y$n.nextTick(_$h, this, e7)) : y$n.nextTick(_$h, this, e7)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(e7 || null, (function(e8) {
|
|
30070
30070
|
!t5 && e8 ? n5._writableState ? n5._writableState.errorEmitted ? y$n.nextTick(v$k, n5) : (n5._writableState.errorEmitted = true, y$n.nextTick(w$j, n5, e8)) : y$n.nextTick(w$j, n5, e8) : t5 ? (y$n.nextTick(v$k, n5), t5(e8)) : y$n.nextTick(v$k, n5);
|
|
30071
|
-
}), this);
|
|
30071
|
+
})), this);
|
|
30072
30072
|
}, undestroy: function() {
|
|
30073
30073
|
this._readableState && (this._readableState.destroyed = false, this._readableState.reading = false, this._readableState.ended = false, this._readableState.endEmitted = false), this._writableState && (this._writableState.destroyed = false, this._writableState.ended = false, this._writableState.ending = false, this._writableState.finalCalled = false, this._writableState.prefinished = false, this._writableState.finished = false, this._writableState.errorEmitted = false);
|
|
30074
30074
|
}, errorOrDestroy: function(e7, t5) {
|
|
@@ -30077,9 +30077,9 @@ var m$m = { destroy: function(e7, t5) {
|
|
|
30077
30077
|
} };
|
|
30078
30078
|
var S$e = e$1$12.codes.ERR_INVALID_OPT_VALUE;
|
|
30079
30079
|
var R$7 = { getHighWaterMark: function(e7, t5, n5, r5) {
|
|
30080
|
-
var i5 = function(e8, t6, n6) {
|
|
30080
|
+
var i5 = (function(e8, t6, n6) {
|
|
30081
30081
|
return null != e8.highWaterMark ? e8.highWaterMark : t6 ? e8[n6] : null;
|
|
30082
|
-
}(t5, r5, n5);
|
|
30082
|
+
})(t5, r5, n5);
|
|
30083
30083
|
if (null != i5) {
|
|
30084
30084
|
if (!isFinite(i5) || Math.floor(i5) !== i5 || i5 < 0) throw new S$e(r5 ? n5 : "highWaterMark", i5);
|
|
30085
30085
|
return Math.floor(i5);
|
|
@@ -30092,7 +30092,7 @@ function E$e() {
|
|
|
30092
30092
|
var M$a;
|
|
30093
30093
|
var j$a = function e4(t5, n5, r5) {
|
|
30094
30094
|
if ("function" == typeof n5) return e4(t5, null, n5);
|
|
30095
|
-
n5 || (n5 = {}), r5 = /* @__PURE__ */ function(e7) {
|
|
30095
|
+
n5 || (n5 = {}), r5 = /* @__PURE__ */ (function(e7) {
|
|
30096
30096
|
var t6 = false;
|
|
30097
30097
|
return function() {
|
|
30098
30098
|
if (!t6) {
|
|
@@ -30101,7 +30101,7 @@ var j$a = function e4(t5, n5, r5) {
|
|
|
30101
30101
|
e7.apply(this, r6);
|
|
30102
30102
|
}
|
|
30103
30103
|
};
|
|
30104
|
-
}(r5 || E$e);
|
|
30104
|
+
})(r5 || E$e);
|
|
30105
30105
|
var i5 = n5.readable || false !== n5.readable && t5.readable, a5 = n5.writable || false !== n5.writable && t5.writable, o5 = function() {
|
|
30106
30106
|
t5.writable || l5();
|
|
30107
30107
|
}, s5 = t5._writableState && t5._writableState.finished, l5 = function() {
|
|
@@ -30116,9 +30116,9 @@ var j$a = function e4(t5, n5, r5) {
|
|
|
30116
30116
|
}, c5 = function() {
|
|
30117
30117
|
t5.req.on("finish", l5);
|
|
30118
30118
|
};
|
|
30119
|
-
return !function(e7) {
|
|
30119
|
+
return !(function(e7) {
|
|
30120
30120
|
return e7.setHeader && "function" == typeof e7.abort;
|
|
30121
|
-
}(t5) ? a5 && !t5._writableState && (t5.on("end", o5), t5.on("close", o5)) : (t5.on("complete", l5), t5.on("abort", h5), t5.req ? c5() : t5.on("request", c5)), t5.on("end", u5), t5.on("finish", l5), false !== n5.error && t5.on("error", f6), t5.on("close", h5), function() {
|
|
30121
|
+
})(t5) ? a5 && !t5._writableState && (t5.on("end", o5), t5.on("close", o5)) : (t5.on("complete", l5), t5.on("abort", h5), t5.req ? c5() : t5.on("request", c5)), t5.on("end", u5), t5.on("finish", l5), false !== n5.error && t5.on("error", f6), t5.on("close", h5), function() {
|
|
30122
30122
|
t5.removeListener("complete", l5), t5.removeListener("abort", h5), t5.removeListener("request", c5), t5.req && t5.req.removeListener("finish", l5), t5.removeListener("end", o5), t5.removeListener("close", o5), t5.removeListener("finish", l5), t5.removeListener("end", u5), t5.removeListener("error", f6), t5.removeListener("close", h5);
|
|
30123
30123
|
};
|
|
30124
30124
|
};
|
|
@@ -30147,58 +30147,58 @@ function I$b(e7) {
|
|
|
30147
30147
|
function N$7(e7) {
|
|
30148
30148
|
O$8.nextTick(I$b, e7);
|
|
30149
30149
|
}
|
|
30150
|
-
var U$a = Object.getPrototypeOf(function() {
|
|
30151
|
-
});
|
|
30150
|
+
var U$a = Object.getPrototypeOf((function() {
|
|
30151
|
+
}));
|
|
30152
30152
|
var H$7 = Object.setPrototypeOf((T$8(M$a = { get stream() {
|
|
30153
30153
|
return this[W$5];
|
|
30154
30154
|
}, next: function() {
|
|
30155
30155
|
var e7 = this, t5 = this[D$9];
|
|
30156
30156
|
if (null !== t5) return Promise.reject(t5);
|
|
30157
30157
|
if (this[C$9]) return Promise.resolve(B$c(void 0, true));
|
|
30158
|
-
if (this[W$5].destroyed) return new Promise(function(t6, n6) {
|
|
30159
|
-
O$8.nextTick(function() {
|
|
30158
|
+
if (this[W$5].destroyed) return new Promise((function(t6, n6) {
|
|
30159
|
+
O$8.nextTick((function() {
|
|
30160
30160
|
e7[D$9] ? n6(e7[D$9]) : t6(B$c(void 0, true));
|
|
30161
|
-
});
|
|
30162
|
-
});
|
|
30161
|
+
}));
|
|
30162
|
+
}));
|
|
30163
30163
|
var n5, r5 = this[A$c];
|
|
30164
|
-
if (r5) n5 = new Promise(/* @__PURE__ */ function(e8, t6) {
|
|
30164
|
+
if (r5) n5 = new Promise(/* @__PURE__ */ (function(e8, t6) {
|
|
30165
30165
|
return function(n6, r6) {
|
|
30166
|
-
e8.then(function() {
|
|
30166
|
+
e8.then((function() {
|
|
30167
30167
|
if (t6[C$9]) return n6(B$c(void 0, true)), void 0;
|
|
30168
30168
|
t6[q$8](n6, r6);
|
|
30169
|
-
}, r6);
|
|
30169
|
+
}), r6);
|
|
30170
30170
|
};
|
|
30171
|
-
}(r5, this));
|
|
30171
|
+
})(r5, this));
|
|
30172
30172
|
else {
|
|
30173
30173
|
var i5 = this[W$5].read();
|
|
30174
30174
|
if (null !== i5) return Promise.resolve(B$c(i5, false));
|
|
30175
30175
|
n5 = new Promise(this[q$8]);
|
|
30176
30176
|
}
|
|
30177
30177
|
return this[A$c] = n5, n5;
|
|
30178
|
-
} }, Symbol.asyncIterator, function() {
|
|
30178
|
+
} }, Symbol.asyncIterator, (function() {
|
|
30179
30179
|
return this;
|
|
30180
|
-
}), T$8(M$a, "return", function() {
|
|
30180
|
+
})), T$8(M$a, "return", (function() {
|
|
30181
30181
|
var e7 = this;
|
|
30182
|
-
return new Promise(function(t5, n5) {
|
|
30183
|
-
e7[W$5].destroy(null, function(e8) {
|
|
30182
|
+
return new Promise((function(t5, n5) {
|
|
30183
|
+
e7[W$5].destroy(null, (function(e8) {
|
|
30184
30184
|
if (e8) return n5(e8), void 0;
|
|
30185
30185
|
t5(B$c(void 0, true));
|
|
30186
|
-
});
|
|
30187
|
-
});
|
|
30188
|
-
}), M$a), U$a);
|
|
30186
|
+
}));
|
|
30187
|
+
}));
|
|
30188
|
+
})), M$a), U$a);
|
|
30189
30189
|
var F$8 = function(e7) {
|
|
30190
30190
|
var t5, n5 = Object.create(H$7, (T$8(t5 = {}, W$5, { value: e7, writable: true }), T$8(t5, x$a, { value: null, writable: true }), T$8(t5, L$8, { value: null, writable: true }), T$8(t5, D$9, { value: null, writable: true }), T$8(t5, C$9, { value: e7._readableState.endEmitted, writable: true }), T$8(t5, q$8, { value: function(e8, t6) {
|
|
30191
30191
|
var r5 = n5[W$5].read();
|
|
30192
30192
|
r5 ? (n5[A$c] = null, n5[x$a] = null, n5[L$8] = null, e8(B$c(r5, false))) : (n5[x$a] = e8, n5[L$8] = t6);
|
|
30193
30193
|
}, writable: true }), t5));
|
|
30194
|
-
return n5[A$c] = null, P$8(e7, function(e8) {
|
|
30194
|
+
return n5[A$c] = null, P$8(e7, (function(e8) {
|
|
30195
30195
|
if (e8 && "ERR_STREAM_PREMATURE_CLOSE" !== e8.code) {
|
|
30196
30196
|
var t6 = n5[L$8];
|
|
30197
30197
|
return null !== t6 && (n5[A$c] = null, n5[x$a] = null, n5[L$8] = null, t6(e8)), n5[D$9] = e8, void 0;
|
|
30198
30198
|
}
|
|
30199
30199
|
var r5 = n5[x$a];
|
|
30200
30200
|
null !== r5 && (n5[A$c] = null, n5[x$a] = null, n5[L$8] = null, r5(B$c(void 0, true))), n5[C$9] = true;
|
|
30201
|
-
}), e7.on("readable", N$7.bind(null, n5)), n5;
|
|
30201
|
+
})), e7.on("readable", N$7.bind(null, n5)), n5;
|
|
30202
30202
|
};
|
|
30203
30203
|
var V$6 = {};
|
|
30204
30204
|
var G$5 = false;
|
|
@@ -30230,23 +30230,23 @@ function K$8() {
|
|
|
30230
30230
|
function A4(e7, t5, n5, r5, i5) {
|
|
30231
30231
|
p5("readableAddChunk", t5);
|
|
30232
30232
|
var a5, o5 = e7._readableState;
|
|
30233
|
-
if (null === t5) o5.reading = false, function(e8, t6) {
|
|
30233
|
+
if (null === t5) o5.reading = false, (function(e8, t6) {
|
|
30234
30234
|
if (p5("onEofChunk"), t6.ended) return;
|
|
30235
30235
|
if (t6.decoder) {
|
|
30236
30236
|
var n6 = t6.decoder.end();
|
|
30237
30237
|
n6 && n6.length && (t6.buffer.push(n6), t6.length += t6.objectMode ? 1 : n6.length);
|
|
30238
30238
|
}
|
|
30239
30239
|
t6.ended = true, t6.sync ? B4(e8) : (t6.needReadable = false, t6.emittedReadable || (t6.emittedReadable = true, I4(e8)));
|
|
30240
|
-
}(e7, o5);
|
|
30241
|
-
else if (i5 || (a5 = function(e8, t6) {
|
|
30240
|
+
})(e7, o5);
|
|
30241
|
+
else if (i5 || (a5 = (function(e8, t6) {
|
|
30242
30242
|
var n6;
|
|
30243
30243
|
r6 = t6, c5.isBuffer(r6) || r6 instanceof b4 || "string" == typeof t6 || void 0 === t6 || e8.objectMode || (n6 = new j4("chunk", ["string", "Buffer", "Uint8Array"], t6));
|
|
30244
30244
|
var r6;
|
|
30245
30245
|
return n6;
|
|
30246
|
-
}(o5, t5)), a5) x4(e7, a5);
|
|
30247
|
-
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = function(e8) {
|
|
30246
|
+
})(o5, t5)), a5) x4(e7, a5);
|
|
30247
|
+
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = (function(e8) {
|
|
30248
30248
|
return c5.from(e8);
|
|
30249
|
-
}(t5)), r5) o5.endEmitted ? x4(e7, new P4()) : q3(e7, o5, t5, true);
|
|
30249
|
+
})(t5)), r5) o5.endEmitted ? x4(e7, new P4()) : q3(e7, o5, t5, true);
|
|
30250
30250
|
else if (o5.ended) x4(e7, new O4());
|
|
30251
30251
|
else {
|
|
30252
30252
|
if (o5.destroyed) return false;
|
|
@@ -30279,9 +30279,9 @@ function K$8() {
|
|
|
30279
30279
|
return this._readableState.buffer.clear(), "" !== r5 && this._readableState.buffer.push(r5), this._readableState.length = r5.length, this;
|
|
30280
30280
|
};
|
|
30281
30281
|
function W3(e7, t5) {
|
|
30282
|
-
return e7 <= 0 || 0 === t5.length && t5.ended ? 0 : t5.objectMode ? 1 : e7 != e7 ? t5.flowing && t5.length ? t5.buffer.head.data.length : t5.length : (e7 > t5.highWaterMark && (t5.highWaterMark = function(e8) {
|
|
30282
|
+
return e7 <= 0 || 0 === t5.length && t5.ended ? 0 : t5.objectMode ? 1 : e7 != e7 ? t5.flowing && t5.length ? t5.buffer.head.data.length : t5.length : (e7 > t5.highWaterMark && (t5.highWaterMark = (function(e8) {
|
|
30283
30283
|
return e8 >= 1073741824 ? e8 = 1073741824 : (e8--, e8 |= e8 >>> 1, e8 |= e8 >>> 2, e8 |= e8 >>> 4, e8 |= e8 >>> 8, e8 |= e8 >>> 16, e8++), e8;
|
|
30284
|
-
}(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
|
|
30284
|
+
})(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
|
|
30285
30285
|
}
|
|
30286
30286
|
function B4(e7) {
|
|
30287
30287
|
var t5 = e7._readableState;
|
|
@@ -30363,12 +30363,12 @@ function K$8() {
|
|
|
30363
30363
|
p5("onend"), e7.end();
|
|
30364
30364
|
}
|
|
30365
30365
|
r5.endEmitted ? u5.nextTick(i5) : n5.once("end", i5), e7.on("unpipe", a5);
|
|
30366
|
-
var s5 = /* @__PURE__ */ function(e8) {
|
|
30366
|
+
var s5 = /* @__PURE__ */ (function(e8) {
|
|
30367
30367
|
return function() {
|
|
30368
30368
|
var t6 = e8._readableState;
|
|
30369
30369
|
p5("pipeOnDrain", t6.awaitDrain), t6.awaitDrain && t6.awaitDrain--, 0 === t6.awaitDrain && f6(e8, "data") && (t6.flowing = true, J3(e8));
|
|
30370
30370
|
};
|
|
30371
|
-
}(n5);
|
|
30371
|
+
})(n5);
|
|
30372
30372
|
e7.on("drain", s5);
|
|
30373
30373
|
var l5 = false;
|
|
30374
30374
|
function d5(t6) {
|
|
@@ -30388,10 +30388,10 @@ function K$8() {
|
|
|
30388
30388
|
function g4() {
|
|
30389
30389
|
p5("unpipe"), n5.unpipe(e7);
|
|
30390
30390
|
}
|
|
30391
|
-
return n5.on("data", d5), function(e8, t6, n6) {
|
|
30391
|
+
return n5.on("data", d5), (function(e8, t6, n6) {
|
|
30392
30392
|
if ("function" == typeof e8.prependListener) return e8.prependListener(t6, n6);
|
|
30393
30393
|
e8._events && e8._events[t6] ? Array.isArray(e8._events[t6]) ? e8._events[t6].unshift(n6) : e8._events[t6] = [n6, e8._events[t6]] : e8.on(t6, n6);
|
|
30394
|
-
}(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
|
|
30394
|
+
})(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
|
|
30395
30395
|
}, C4.prototype.unpipe = function(e7) {
|
|
30396
30396
|
var t5 = this._readableState, n5 = { hasUnpiped: false };
|
|
30397
30397
|
if (0 === t5.pipesCount) return this;
|
|
@@ -30415,26 +30415,26 @@ function K$8() {
|
|
|
30415
30415
|
return "readable" !== e7 && void 0 !== e7 || u5.nextTick(H3, this), t5;
|
|
30416
30416
|
}, C4.prototype.resume = function() {
|
|
30417
30417
|
var e7 = this._readableState;
|
|
30418
|
-
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening, function(e8, t5) {
|
|
30418
|
+
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening, (function(e8, t5) {
|
|
30419
30419
|
t5.resumeScheduled || (t5.resumeScheduled = true, u5.nextTick(z4, e8, t5));
|
|
30420
|
-
}(this, e7)), e7.paused = false, this;
|
|
30420
|
+
})(this, e7)), e7.paused = false, this;
|
|
30421
30421
|
}, C4.prototype.pause = function() {
|
|
30422
30422
|
return p5("call pause flowing=%j", this._readableState.flowing), false !== this._readableState.flowing && (p5("pause"), this._readableState.flowing = false, this.emit("pause")), this._readableState.paused = true, this;
|
|
30423
30423
|
}, C4.prototype.wrap = function(e7) {
|
|
30424
30424
|
var t5 = this, n5 = this._readableState, r5 = false;
|
|
30425
|
-
for (var i5 in e7.on("end", function() {
|
|
30425
|
+
for (var i5 in e7.on("end", (function() {
|
|
30426
30426
|
if (p5("wrapped end"), n5.decoder && !n5.ended) {
|
|
30427
30427
|
var e8 = n5.decoder.end();
|
|
30428
30428
|
e8 && e8.length && t5.push(e8);
|
|
30429
30429
|
}
|
|
30430
30430
|
t5.push(null);
|
|
30431
|
-
}), e7.on("data", function(i6) {
|
|
30431
|
+
})), e7.on("data", (function(i6) {
|
|
30432
30432
|
(p5("wrapped data"), n5.decoder && (i6 = n5.decoder.write(i6)), n5.objectMode && null == i6) || (n5.objectMode || i6 && i6.length) && (t5.push(i6) || (r5 = true, e7.pause()));
|
|
30433
|
-
}), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ function(t6) {
|
|
30433
|
+
})), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ (function(t6) {
|
|
30434
30434
|
return function() {
|
|
30435
30435
|
return e7[t6].apply(e7, arguments);
|
|
30436
30436
|
};
|
|
30437
|
-
}(i5));
|
|
30437
|
+
})(i5));
|
|
30438
30438
|
for (var a5 = 0; a5 < L4.length; a5++) e7.on(L4[a5], this.emit.bind(this, L4[a5]));
|
|
30439
30439
|
return this._read = function(t6) {
|
|
30440
30440
|
p5("wrapped _read", t6), r5 && (r5 = false, e7.resume());
|
|
@@ -30465,7 +30465,7 @@ function X$4() {
|
|
|
30465
30465
|
function s5(e7) {
|
|
30466
30466
|
var t5 = this;
|
|
30467
30467
|
this.next = null, this.entry = null, this.finish = function() {
|
|
30468
|
-
!function(e8, t6, n5) {
|
|
30468
|
+
!(function(e8, t6, n5) {
|
|
30469
30469
|
var r6 = e8.entry;
|
|
30470
30470
|
e8.entry = null;
|
|
30471
30471
|
for (; r6; ) {
|
|
@@ -30473,7 +30473,7 @@ function X$4() {
|
|
|
30473
30473
|
t6.pendingcb--, i5(n5), r6 = r6.next;
|
|
30474
30474
|
}
|
|
30475
30475
|
t6.corkedRequestsFree.next = e8;
|
|
30476
|
-
}(t5, e7);
|
|
30476
|
+
})(t5, e7);
|
|
30477
30477
|
};
|
|
30478
30478
|
}
|
|
30479
30479
|
z$9 = P4, P4.WritableState = T4;
|
|
@@ -30486,19 +30486,19 @@ function X$4() {
|
|
|
30486
30486
|
e$23 = e$23 || ee$1(), t5 = t5 || {}, "boolean" != typeof i5 && (i5 = n5 instanceof e$23), this.objectMode = !!t5.objectMode, i5 && (this.objectMode = this.objectMode || !!t5.writableObjectMode), this.highWaterMark = p5(this, t5, "writableHighWaterMark", i5), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false;
|
|
30487
30487
|
var a5 = false === t5.decodeStrings;
|
|
30488
30488
|
this.decodeStrings = !a5, this.defaultEncoding = t5.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(e7) {
|
|
30489
|
-
!function(e8, t6) {
|
|
30489
|
+
!(function(e8, t6) {
|
|
30490
30490
|
var n6 = e8._writableState, i6 = n6.sync, a6 = n6.writecb;
|
|
30491
30491
|
if ("function" != typeof a6) throw new v5();
|
|
30492
|
-
if (function(e9) {
|
|
30492
|
+
if ((function(e9) {
|
|
30493
30493
|
e9.writing = false, e9.writecb = null, e9.length -= e9.writelen, e9.writelen = 0;
|
|
30494
|
-
}(n6), t6) !function(e9, t7, n7, i7, a7) {
|
|
30494
|
+
})(n6), t6) !(function(e9, t7, n7, i7, a7) {
|
|
30495
30495
|
--t7.pendingcb, n7 ? (r5.nextTick(a7, i7), r5.nextTick(q3, e9, t7), e9._writableState.errorEmitted = true, j4(e9, i7)) : (a7(i7), e9._writableState.errorEmitted = true, j4(e9, i7), q3(e9, t7));
|
|
30496
|
-
}(e8, n6, i6, t6, a6);
|
|
30496
|
+
})(e8, n6, i6, t6, a6);
|
|
30497
30497
|
else {
|
|
30498
30498
|
var o5 = C4(n6) || e8.destroyed;
|
|
30499
30499
|
o5 || n6.corked || n6.bufferProcessing || !n6.bufferedRequest || D4(e8, n6), i6 ? r5.nextTick(L4, e8, n6, o5, a6) : L4(e8, n6, o5, a6);
|
|
30500
30500
|
}
|
|
30501
|
-
}(n5, e7);
|
|
30501
|
+
})(n5, e7);
|
|
30502
30502
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.emitClose = false !== t5.emitClose, this.autoDestroy = !!t5.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new s5(this);
|
|
30503
30503
|
}
|
|
30504
30504
|
function P4(t5) {
|
|
@@ -30510,9 +30510,9 @@ function X$4() {
|
|
|
30510
30510
|
t5.writelen = r6, t5.writecb = o5, t5.writing = true, t5.sync = true, t5.destroyed ? t5.onwrite(new S4("write")) : n5 ? e7._writev(i5, t5.onwrite) : e7._write(i5, a5, t5.onwrite), t5.sync = false;
|
|
30511
30511
|
}
|
|
30512
30512
|
function L4(e7, t5, n5, r6) {
|
|
30513
|
-
n5 || !function(e8, t6) {
|
|
30513
|
+
n5 || !(function(e8, t6) {
|
|
30514
30514
|
0 === t6.length && t6.needDrain && (t6.needDrain = false, e8.emit("drain"));
|
|
30515
|
-
}(e7, t5), t5.pendingcb--, r6(), q3(e7, t5);
|
|
30515
|
+
})(e7, t5), t5.pendingcb--, r6(), q3(e7, t5);
|
|
30516
30516
|
}
|
|
30517
30517
|
function D4(e7, t5) {
|
|
30518
30518
|
t5.bufferProcessing = true;
|
|
@@ -30535,15 +30535,15 @@ function X$4() {
|
|
|
30535
30535
|
return e7.ending && 0 === e7.length && null === e7.bufferedRequest && !e7.finished && !e7.writing;
|
|
30536
30536
|
}
|
|
30537
30537
|
function A4(e7, t5) {
|
|
30538
|
-
e7._final(function(n5) {
|
|
30538
|
+
e7._final((function(n5) {
|
|
30539
30539
|
t5.pendingcb--, n5 && j4(e7, n5), t5.prefinished = true, e7.emit("prefinish"), q3(e7, t5);
|
|
30540
|
-
});
|
|
30540
|
+
}));
|
|
30541
30541
|
}
|
|
30542
30542
|
function q3(e7, t5) {
|
|
30543
30543
|
var n5 = C4(t5);
|
|
30544
|
-
if (n5 && (!function(e8, t6) {
|
|
30544
|
+
if (n5 && (!(function(e8, t6) {
|
|
30545
30545
|
t6.prefinished || t6.finalCalled || ("function" != typeof e8._final || t6.destroyed ? (t6.prefinished = true, e8.emit("prefinish")) : (t6.pendingcb++, t6.finalCalled = true, r5.nextTick(A4, e8, t6)));
|
|
30546
|
-
}(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
|
|
30546
|
+
})(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
|
|
30547
30547
|
var i5 = e7._readableState;
|
|
30548
30548
|
(!i5 || i5.autoDestroy && i5.endEmitted) && e7.destroy();
|
|
30549
30549
|
}
|
|
@@ -30552,14 +30552,14 @@ function X$4() {
|
|
|
30552
30552
|
return t$2(P4, u5), T4.prototype.getBuffer = function() {
|
|
30553
30553
|
for (var e7 = this.bufferedRequest, t5 = []; e7; ) t5.push(e7), e7 = e7.next;
|
|
30554
30554
|
return t5;
|
|
30555
|
-
}, function() {
|
|
30555
|
+
}, (function() {
|
|
30556
30556
|
try {
|
|
30557
|
-
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate(function() {
|
|
30557
|
+
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate((function() {
|
|
30558
30558
|
return this.getBuffer();
|
|
30559
|
-
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
30559
|
+
}), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
30560
30560
|
} catch (e7) {
|
|
30561
30561
|
}
|
|
30562
|
-
}(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(P4, Symbol.hasInstance, { value: function(e7) {
|
|
30562
|
+
})(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(P4, Symbol.hasInstance, { value: function(e7) {
|
|
30563
30563
|
return !!c5.call(this, e7) || this === P4 && (e7 && e7._writableState instanceof T4);
|
|
30564
30564
|
} })) : c5 = function(e7) {
|
|
30565
30565
|
return e7 instanceof this;
|
|
@@ -30567,20 +30567,20 @@ function X$4() {
|
|
|
30567
30567
|
j4(this, new _4());
|
|
30568
30568
|
}, P4.prototype.write = function(e7, t5, n5) {
|
|
30569
30569
|
var i5, a5 = this._writableState, o5 = false, s6 = !a5.objectMode && (i5 = e7, f6.isBuffer(i5) || i5 instanceof h5);
|
|
30570
|
-
return s6 && !f6.isBuffer(e7) && (e7 = function(e8) {
|
|
30570
|
+
return s6 && !f6.isBuffer(e7) && (e7 = (function(e8) {
|
|
30571
30571
|
return f6.from(e8);
|
|
30572
|
-
}(e7)), "function" == typeof t5 && (n5 = t5, t5 = null), s6 ? t5 = "buffer" : t5 || (t5 = a5.defaultEncoding), "function" != typeof n5 && (n5 = O4), a5.ending ? function(e8, t6) {
|
|
30572
|
+
})(e7)), "function" == typeof t5 && (n5 = t5, t5 = null), s6 ? t5 = "buffer" : t5 || (t5 = a5.defaultEncoding), "function" != typeof n5 && (n5 = O4), a5.ending ? (function(e8, t6) {
|
|
30573
30573
|
var n6 = new E4();
|
|
30574
30574
|
j4(e8, n6), r5.nextTick(t6, n6);
|
|
30575
|
-
}(this, n5) : (s6 || function(e8, t6, n6, i6) {
|
|
30575
|
+
})(this, n5) : (s6 || (function(e8, t6, n6, i6) {
|
|
30576
30576
|
var a6;
|
|
30577
30577
|
return null === n6 ? a6 = new k4() : "string" == typeof n6 || t6.objectMode || (a6 = new y5("chunk", ["string", "Buffer"], n6)), !a6 || (j4(e8, a6), r5.nextTick(i6, a6), false);
|
|
30578
|
-
}(this, a5, e7, n5)) && (a5.pendingcb++, o5 = function(e8, t6, n6, r6, i6, a6) {
|
|
30578
|
+
})(this, a5, e7, n5)) && (a5.pendingcb++, o5 = (function(e8, t6, n6, r6, i6, a6) {
|
|
30579
30579
|
if (!n6) {
|
|
30580
|
-
var o6 = function(e9, t7, n7) {
|
|
30580
|
+
var o6 = (function(e9, t7, n7) {
|
|
30581
30581
|
e9.objectMode || false === e9.decodeStrings || "string" != typeof t7 || (t7 = f6.from(t7, n7));
|
|
30582
30582
|
return t7;
|
|
30583
|
-
}(t6, r6, i6);
|
|
30583
|
+
})(t6, r6, i6);
|
|
30584
30584
|
r6 !== o6 && (n6 = true, i6 = "buffer", r6 = o6);
|
|
30585
30585
|
}
|
|
30586
30586
|
var s7 = t6.objectMode ? 1 : r6.length;
|
|
@@ -30592,7 +30592,7 @@ function X$4() {
|
|
|
30592
30592
|
t6.lastBufferedRequest = { chunk: r6, encoding: i6, isBuf: n6, callback: a6, next: null }, d4 ? d4.next = t6.lastBufferedRequest : t6.bufferedRequest = t6.lastBufferedRequest, t6.bufferedRequestCount += 1;
|
|
30593
30593
|
} else x4(e8, t6, false, s7, r6, i6, a6);
|
|
30594
30594
|
return l6;
|
|
30595
|
-
}(this, a5, s6, e7, t5, n5)), o5;
|
|
30595
|
+
})(this, a5, s6, e7, t5, n5)), o5;
|
|
30596
30596
|
}, P4.prototype.cork = function() {
|
|
30597
30597
|
this._writableState.corked++;
|
|
30598
30598
|
}, P4.prototype.uncork = function() {
|
|
@@ -30609,10 +30609,10 @@ function X$4() {
|
|
|
30609
30609
|
n5(new w4("_write()"));
|
|
30610
30610
|
}, P4.prototype._writev = null, P4.prototype.end = function(e7, t5, n5) {
|
|
30611
30611
|
var i5 = this._writableState;
|
|
30612
|
-
return "function" == typeof e7 ? (n5 = e7, e7 = null, t5 = null) : "function" == typeof t5 && (n5 = t5, t5 = null), null != e7 && this.write(e7, t5), i5.corked && (i5.corked = 1, this.uncork()), i5.ending || function(e8, t6, n6) {
|
|
30612
|
+
return "function" == typeof e7 ? (n5 = e7, e7 = null, t5 = null) : "function" == typeof t5 && (n5 = t5, t5 = null), null != e7 && this.write(e7, t5), i5.corked && (i5.corked = 1, this.uncork()), i5.ending || (function(e8, t6, n6) {
|
|
30613
30613
|
t6.ending = true, q3(e8, t6), n6 && (t6.finished ? r5.nextTick(n6) : e8.once("finish", n6));
|
|
30614
30614
|
t6.ended = true, e8.writable = false;
|
|
30615
|
-
}(this, i5, n5), this;
|
|
30615
|
+
})(this, i5, n5), this;
|
|
30616
30616
|
}, Object.defineProperty(P4.prototype, "writableLength", { enumerable: false, get: function() {
|
|
30617
30617
|
return this._writableState.length;
|
|
30618
30618
|
} }), Object.defineProperty(P4.prototype, "destroyed", { enumerable: false, get: function() {
|
|
@@ -30668,7 +30668,7 @@ function t$3$1() {
|
|
|
30668
30668
|
}
|
|
30669
30669
|
var n$1$12 = function e5(n5, o5, a5) {
|
|
30670
30670
|
if ("function" == typeof o5) return e5(n5, null, o5);
|
|
30671
|
-
o5 || (o5 = {}), a5 = /* @__PURE__ */ function(e7) {
|
|
30671
|
+
o5 || (o5 = {}), a5 = /* @__PURE__ */ (function(e7) {
|
|
30672
30672
|
var r5 = false;
|
|
30673
30673
|
return function() {
|
|
30674
30674
|
if (!r5) {
|
|
@@ -30677,7 +30677,7 @@ var n$1$12 = function e5(n5, o5, a5) {
|
|
|
30677
30677
|
e7.apply(this, n6);
|
|
30678
30678
|
}
|
|
30679
30679
|
};
|
|
30680
|
-
}(a5 || t$3$1);
|
|
30680
|
+
})(a5 || t$3$1);
|
|
30681
30681
|
var i5 = o5.readable || false !== o5.readable && n5.readable, l5 = o5.writable || false !== o5.writable && n5.writable, c5 = function() {
|
|
30682
30682
|
n5.writable || s5();
|
|
30683
30683
|
}, f6 = n5._writableState && n5._writableState.finished, s5 = function() {
|
|
@@ -30692,9 +30692,9 @@ var n$1$12 = function e5(n5, o5, a5) {
|
|
|
30692
30692
|
}, m4 = function() {
|
|
30693
30693
|
n5.req.on("finish", s5);
|
|
30694
30694
|
};
|
|
30695
|
-
return !function(e7) {
|
|
30695
|
+
return !(function(e7) {
|
|
30696
30696
|
return e7.setHeader && "function" == typeof e7.abort;
|
|
30697
|
-
}(n5) ? l5 && !n5._writableState && (n5.on("end", c5), n5.on("close", c5)) : (n5.on("complete", s5), n5.on("abort", v5), n5.req ? m4() : n5.on("request", m4)), n5.on("end", d4), n5.on("finish", s5), false !== o5.error && n5.on("error", b4), n5.on("close", v5), function() {
|
|
30697
|
+
})(n5) ? l5 && !n5._writableState && (n5.on("end", c5), n5.on("close", c5)) : (n5.on("complete", s5), n5.on("abort", v5), n5.req ? m4() : n5.on("request", m4)), n5.on("end", d4), n5.on("finish", s5), false !== o5.error && n5.on("error", b4), n5.on("close", v5), function() {
|
|
30698
30698
|
n5.removeListener("complete", s5), n5.removeListener("abort", v5), n5.removeListener("request", m4), n5.req && n5.req.removeListener("finish", s5), n5.removeListener("end", c5), n5.removeListener("close", c5), n5.removeListener("finish", s5), n5.removeListener("end", d4), n5.removeListener("error", b4), n5.removeListener("close", v5);
|
|
30699
30699
|
};
|
|
30700
30700
|
};
|
|
@@ -30702,9 +30702,9 @@ function f$1$1(e7, t5) {
|
|
|
30702
30702
|
var n5 = Object.keys(e7);
|
|
30703
30703
|
if (Object.getOwnPropertySymbols) {
|
|
30704
30704
|
var r5 = Object.getOwnPropertySymbols(e7);
|
|
30705
|
-
t5 && (r5 = r5.filter(function(t6) {
|
|
30705
|
+
t5 && (r5 = r5.filter((function(t6) {
|
|
30706
30706
|
return Object.getOwnPropertyDescriptor(e7, t6).enumerable;
|
|
30707
|
-
})), n5.push.apply(n5, r5);
|
|
30707
|
+
}))), n5.push.apply(n5, r5);
|
|
30708
30708
|
}
|
|
30709
30709
|
return n5;
|
|
30710
30710
|
}
|
|
@@ -30720,11 +30720,11 @@ function c$1$12(e7, t5) {
|
|
|
30720
30720
|
var b$1$1 = e$1$1.Buffer;
|
|
30721
30721
|
var p$1$1 = X.inspect;
|
|
30722
30722
|
var g$1$1 = p$1$1 && p$1$1.custom || "inspect";
|
|
30723
|
-
var y$1$1 = function() {
|
|
30723
|
+
var y$1$1 = (function() {
|
|
30724
30724
|
function e7() {
|
|
30725
|
-
!function(e8, t6) {
|
|
30725
|
+
!(function(e8, t6) {
|
|
30726
30726
|
if (!(e8 instanceof t6)) throw new TypeError("Cannot call a class as a function");
|
|
30727
|
-
}(this, e7), this.head = null, this.tail = null, this.length = 0;
|
|
30727
|
+
})(this, e7), this.head = null, this.tail = null, this.length = 0;
|
|
30728
30728
|
}
|
|
30729
30729
|
var t5, n5;
|
|
30730
30730
|
return t5 = e7, (n5 = [{ key: "push", value: function(e8) {
|
|
@@ -30776,19 +30776,19 @@ var y$1$1 = function() {
|
|
|
30776
30776
|
}
|
|
30777
30777
|
return this.length -= r5, t6;
|
|
30778
30778
|
} }, { key: g$1$1, value: function(e8, t6) {
|
|
30779
|
-
return p$1$1(this, function(e9) {
|
|
30779
|
+
return p$1$1(this, (function(e9) {
|
|
30780
30780
|
for (var t7 = 1; t7 < arguments.length; t7++) {
|
|
30781
30781
|
var n6 = null != arguments[t7] ? arguments[t7] : {};
|
|
30782
|
-
t7 % 2 ? f$1$1(Object(n6), true).forEach(function(t8) {
|
|
30782
|
+
t7 % 2 ? f$1$1(Object(n6), true).forEach((function(t8) {
|
|
30783
30783
|
h$1$12(e9, t8, n6[t8]);
|
|
30784
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : f$1$1(Object(n6)).forEach(function(t8) {
|
|
30784
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : f$1$1(Object(n6)).forEach((function(t8) {
|
|
30785
30785
|
Object.defineProperty(e9, t8, Object.getOwnPropertyDescriptor(n6, t8));
|
|
30786
|
-
});
|
|
30786
|
+
}));
|
|
30787
30787
|
}
|
|
30788
30788
|
return e9;
|
|
30789
|
-
}({}, t6, { depth: 0, customInspect: false }));
|
|
30789
|
+
})({}, t6, { depth: 0, customInspect: false }));
|
|
30790
30790
|
} }]) && c$1$12(t5.prototype, n5), e7;
|
|
30791
|
-
}();
|
|
30791
|
+
})();
|
|
30792
30792
|
var w$1$1 = T$1;
|
|
30793
30793
|
function _$1$1(e7, t5) {
|
|
30794
30794
|
m$1$1(e7, t5), v$1$1(e7);
|
|
@@ -30801,9 +30801,9 @@ function m$1$1(e7, t5) {
|
|
|
30801
30801
|
}
|
|
30802
30802
|
var S$1$1 = { destroy: function(e7, t5) {
|
|
30803
30803
|
var n5 = this, r5 = this._readableState && this._readableState.destroyed, i5 = this._writableState && this._writableState.destroyed;
|
|
30804
|
-
return r5 || i5 ? (t5 ? t5(e7) : e7 && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true, w$1$1.nextTick(m$1$1, this, e7)) : w$1$1.nextTick(m$1$1, this, e7)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(e7 || null, function(e8) {
|
|
30804
|
+
return r5 || i5 ? (t5 ? t5(e7) : e7 && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true, w$1$1.nextTick(m$1$1, this, e7)) : w$1$1.nextTick(m$1$1, this, e7)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(e7 || null, (function(e8) {
|
|
30805
30805
|
!t5 && e8 ? n5._writableState ? n5._writableState.errorEmitted ? w$1$1.nextTick(v$1$1, n5) : (n5._writableState.errorEmitted = true, w$1$1.nextTick(_$1$1, n5, e8)) : w$1$1.nextTick(_$1$1, n5, e8) : t5 ? (w$1$1.nextTick(v$1$1, n5), t5(e8)) : w$1$1.nextTick(v$1$1, n5);
|
|
30806
|
-
}), this);
|
|
30806
|
+
})), this);
|
|
30807
30807
|
}, undestroy: function() {
|
|
30808
30808
|
this._readableState && (this._readableState.destroyed = false, this._readableState.reading = false, this._readableState.ended = false, this._readableState.endEmitted = false), this._writableState && (this._writableState.destroyed = false, this._writableState.ended = false, this._writableState.ending = false, this._writableState.finalCalled = false, this._writableState.prefinished = false, this._writableState.finished = false, this._writableState.errorEmitted = false);
|
|
30809
30809
|
}, errorOrDestroy: function(e7, t5) {
|
|
@@ -30813,9 +30813,9 @@ var S$1$1 = { destroy: function(e7, t5) {
|
|
|
30813
30813
|
var R$1$1 = e$1$12.codes.ERR_INVALID_OPT_VALUE;
|
|
30814
30814
|
var k$1$1;
|
|
30815
30815
|
var E$1$1 = { getHighWaterMark: function(e7, t5, n5, r5) {
|
|
30816
|
-
var i5 = function(e8, t6, n6) {
|
|
30816
|
+
var i5 = (function(e8, t6, n6) {
|
|
30817
30817
|
return null != e8.highWaterMark ? e8.highWaterMark : t6 ? e8[n6] : null;
|
|
30818
|
-
}(t5, r5, n5);
|
|
30818
|
+
})(t5, r5, n5);
|
|
30819
30819
|
if (null != i5) {
|
|
30820
30820
|
if (!isFinite(i5) || Math.floor(i5) !== i5 || i5 < 0) throw new R$1$1(r5 ? n5 : "highWaterMark", i5);
|
|
30821
30821
|
return Math.floor(i5);
|
|
@@ -30847,58 +30847,58 @@ function B$1$1(e7) {
|
|
|
30847
30847
|
function q$1$1(e7) {
|
|
30848
30848
|
M$1$1.nextTick(B$1$1, e7);
|
|
30849
30849
|
}
|
|
30850
|
-
var I$1$1 = Object.getPrototypeOf(function() {
|
|
30851
|
-
});
|
|
30850
|
+
var I$1$1 = Object.getPrototypeOf((function() {
|
|
30851
|
+
}));
|
|
30852
30852
|
var N$1$1 = Object.setPrototypeOf((j$1$1(k$1$1 = { get stream() {
|
|
30853
30853
|
return this[A$1$1];
|
|
30854
30854
|
}, next: function() {
|
|
30855
30855
|
var e7 = this, t5 = this[P$1$1];
|
|
30856
30856
|
if (null !== t5) return Promise.reject(t5);
|
|
30857
30857
|
if (this[D$1$1]) return Promise.resolve(W$1$1(void 0, true));
|
|
30858
|
-
if (this[A$1$1].destroyed) return new Promise(function(t6, n6) {
|
|
30859
|
-
M$1$1.nextTick(function() {
|
|
30858
|
+
if (this[A$1$1].destroyed) return new Promise((function(t6, n6) {
|
|
30859
|
+
M$1$1.nextTick((function() {
|
|
30860
30860
|
e7[P$1$1] ? n6(e7[P$1$1]) : t6(W$1$1(void 0, true));
|
|
30861
|
-
});
|
|
30862
|
-
});
|
|
30861
|
+
}));
|
|
30862
|
+
}));
|
|
30863
30863
|
var n5, r5 = this[L$1$1];
|
|
30864
|
-
if (r5) n5 = new Promise(/* @__PURE__ */ function(e8, t6) {
|
|
30864
|
+
if (r5) n5 = new Promise(/* @__PURE__ */ (function(e8, t6) {
|
|
30865
30865
|
return function(n6, r6) {
|
|
30866
|
-
e8.then(function() {
|
|
30866
|
+
e8.then((function() {
|
|
30867
30867
|
if (t6[D$1$1]) return n6(W$1$1(void 0, true)), void 0;
|
|
30868
30868
|
t6[C$1$1](n6, r6);
|
|
30869
|
-
}, r6);
|
|
30869
|
+
}), r6);
|
|
30870
30870
|
};
|
|
30871
|
-
}(r5, this));
|
|
30871
|
+
})(r5, this));
|
|
30872
30872
|
else {
|
|
30873
30873
|
var i5 = this[A$1$1].read();
|
|
30874
30874
|
if (null !== i5) return Promise.resolve(W$1$1(i5, false));
|
|
30875
30875
|
n5 = new Promise(this[C$1$1]);
|
|
30876
30876
|
}
|
|
30877
30877
|
return this[L$1$1] = n5, n5;
|
|
30878
|
-
} }, Symbol.asyncIterator, function() {
|
|
30878
|
+
} }, Symbol.asyncIterator, (function() {
|
|
30879
30879
|
return this;
|
|
30880
|
-
}), j$1$1(k$1$1, "return", function() {
|
|
30880
|
+
})), j$1$1(k$1$1, "return", (function() {
|
|
30881
30881
|
var e7 = this;
|
|
30882
|
-
return new Promise(function(t5, n5) {
|
|
30883
|
-
e7[A$1$1].destroy(null, function(e8) {
|
|
30882
|
+
return new Promise((function(t5, n5) {
|
|
30883
|
+
e7[A$1$1].destroy(null, (function(e8) {
|
|
30884
30884
|
if (e8) return n5(e8), void 0;
|
|
30885
30885
|
t5(W$1$1(void 0, true));
|
|
30886
|
-
});
|
|
30887
|
-
});
|
|
30888
|
-
}), k$1$1), I$1$1);
|
|
30886
|
+
}));
|
|
30887
|
+
}));
|
|
30888
|
+
})), k$1$1), I$1$1);
|
|
30889
30889
|
var U$1$1 = function(e7) {
|
|
30890
30890
|
var t5, n5 = Object.create(N$1$1, (j$1$1(t5 = {}, A$1$1, { value: e7, writable: true }), j$1$1(t5, T$1$1, { value: null, writable: true }), j$1$1(t5, x$1$1, { value: null, writable: true }), j$1$1(t5, P$1$1, { value: null, writable: true }), j$1$1(t5, D$1$1, { value: e7._readableState.endEmitted, writable: true }), j$1$1(t5, C$1$1, { value: function(e8, t6) {
|
|
30891
30891
|
var r5 = n5[A$1$1].read();
|
|
30892
30892
|
r5 ? (n5[L$1$1] = null, n5[T$1$1] = null, n5[x$1$1] = null, e8(W$1$1(r5, false))) : (n5[T$1$1] = e8, n5[x$1$1] = t6);
|
|
30893
30893
|
}, writable: true }), t5));
|
|
30894
|
-
return n5[L$1$1] = null, O$1$1(e7, function(e8) {
|
|
30894
|
+
return n5[L$1$1] = null, O$1$1(e7, (function(e8) {
|
|
30895
30895
|
if (e8 && "ERR_STREAM_PREMATURE_CLOSE" !== e8.code) {
|
|
30896
30896
|
var t6 = n5[x$1$1];
|
|
30897
30897
|
return null !== t6 && (n5[L$1$1] = null, n5[T$1$1] = null, n5[x$1$1] = null, t6(e8)), n5[P$1$1] = e8, void 0;
|
|
30898
30898
|
}
|
|
30899
30899
|
var r5 = n5[T$1$1];
|
|
30900
30900
|
null !== r5 && (n5[L$1$1] = null, n5[T$1$1] = null, n5[x$1$1] = null, r5(W$1$1(void 0, true))), n5[D$1$1] = true;
|
|
30901
|
-
}), e7.on("readable", q$1$1.bind(null, n5)), n5;
|
|
30901
|
+
})), e7.on("readable", q$1$1.bind(null, n5)), n5;
|
|
30902
30902
|
};
|
|
30903
30903
|
var H$1$1 = {};
|
|
30904
30904
|
var F$1$1 = false;
|
|
@@ -30930,23 +30930,23 @@ function G$1$1() {
|
|
|
30930
30930
|
function A4(e7, t5, n5, r5, i5) {
|
|
30931
30931
|
p5("readableAddChunk", t5);
|
|
30932
30932
|
var a5, o5 = e7._readableState;
|
|
30933
|
-
if (null === t5) o5.reading = false, function(e8, t6) {
|
|
30933
|
+
if (null === t5) o5.reading = false, (function(e8, t6) {
|
|
30934
30934
|
if (p5("onEofChunk"), t6.ended) return;
|
|
30935
30935
|
if (t6.decoder) {
|
|
30936
30936
|
var n6 = t6.decoder.end();
|
|
30937
30937
|
n6 && n6.length && (t6.buffer.push(n6), t6.length += t6.objectMode ? 1 : n6.length);
|
|
30938
30938
|
}
|
|
30939
30939
|
t6.ended = true, t6.sync ? q3(e8) : (t6.needReadable = false, t6.emittedReadable || (t6.emittedReadable = true, I4(e8)));
|
|
30940
|
-
}(e7, o5);
|
|
30941
|
-
else if (i5 || (a5 = function(e8, t6) {
|
|
30940
|
+
})(e7, o5);
|
|
30941
|
+
else if (i5 || (a5 = (function(e8, t6) {
|
|
30942
30942
|
var n6;
|
|
30943
30943
|
r6 = t6, c5.isBuffer(r6) || r6 instanceof b4 || "string" == typeof t6 || void 0 === t6 || e8.objectMode || (n6 = new j4("chunk", ["string", "Buffer", "Uint8Array"], t6));
|
|
30944
30944
|
var r6;
|
|
30945
30945
|
return n6;
|
|
30946
|
-
}(o5, t5)), a5) P4(e7, a5);
|
|
30947
|
-
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = function(e8) {
|
|
30946
|
+
})(o5, t5)), a5) P4(e7, a5);
|
|
30947
|
+
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = (function(e8) {
|
|
30948
30948
|
return c5.from(e8);
|
|
30949
|
-
}(t5)), r5) o5.endEmitted ? P4(e7, new x4()) : W3(e7, o5, t5, true);
|
|
30949
|
+
})(t5)), r5) o5.endEmitted ? P4(e7, new x4()) : W3(e7, o5, t5, true);
|
|
30950
30950
|
else if (o5.ended) P4(e7, new O4());
|
|
30951
30951
|
else {
|
|
30952
30952
|
if (o5.destroyed) return false;
|
|
@@ -30979,9 +30979,9 @@ function G$1$1() {
|
|
|
30979
30979
|
return this._readableState.buffer.clear(), "" !== r5 && this._readableState.buffer.push(r5), this._readableState.length = r5.length, this;
|
|
30980
30980
|
};
|
|
30981
30981
|
function B4(e7, t5) {
|
|
30982
|
-
return e7 <= 0 || 0 === t5.length && t5.ended ? 0 : t5.objectMode ? 1 : e7 != e7 ? t5.flowing && t5.length ? t5.buffer.head.data.length : t5.length : (e7 > t5.highWaterMark && (t5.highWaterMark = function(e8) {
|
|
30982
|
+
return e7 <= 0 || 0 === t5.length && t5.ended ? 0 : t5.objectMode ? 1 : e7 != e7 ? t5.flowing && t5.length ? t5.buffer.head.data.length : t5.length : (e7 > t5.highWaterMark && (t5.highWaterMark = (function(e8) {
|
|
30983
30983
|
return e8 >= 1073741824 ? e8 = 1073741824 : (e8--, e8 |= e8 >>> 1, e8 |= e8 >>> 2, e8 |= e8 >>> 4, e8 |= e8 >>> 8, e8 |= e8 >>> 16, e8++), e8;
|
|
30984
|
-
}(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
|
|
30984
|
+
})(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
|
|
30985
30985
|
}
|
|
30986
30986
|
function q3(e7) {
|
|
30987
30987
|
var t5 = e7._readableState;
|
|
@@ -31063,12 +31063,12 @@ function G$1$1() {
|
|
|
31063
31063
|
p5("onend"), e7.end();
|
|
31064
31064
|
}
|
|
31065
31065
|
r5.endEmitted ? u5.nextTick(i5) : n5.once("end", i5), e7.on("unpipe", a5);
|
|
31066
|
-
var s5 = /* @__PURE__ */ function(e8) {
|
|
31066
|
+
var s5 = /* @__PURE__ */ (function(e8) {
|
|
31067
31067
|
return function() {
|
|
31068
31068
|
var t6 = e8._readableState;
|
|
31069
31069
|
p5("pipeOnDrain", t6.awaitDrain), t6.awaitDrain && t6.awaitDrain--, 0 === t6.awaitDrain && f6(e8, "data") && (t6.flowing = true, J3(e8));
|
|
31070
31070
|
};
|
|
31071
|
-
}(n5);
|
|
31071
|
+
})(n5);
|
|
31072
31072
|
e7.on("drain", s5);
|
|
31073
31073
|
var l6 = false;
|
|
31074
31074
|
function d4(t6) {
|
|
@@ -31088,10 +31088,10 @@ function G$1$1() {
|
|
|
31088
31088
|
function g5() {
|
|
31089
31089
|
p5("unpipe"), n5.unpipe(e7);
|
|
31090
31090
|
}
|
|
31091
|
-
return n5.on("data", d4), function(e8, t6, n6) {
|
|
31091
|
+
return n5.on("data", d4), (function(e8, t6, n6) {
|
|
31092
31092
|
if ("function" == typeof e8.prependListener) return e8.prependListener(t6, n6);
|
|
31093
31093
|
e8._events && e8._events[t6] ? Array.isArray(e8._events[t6]) ? e8._events[t6].unshift(n6) : e8._events[t6] = [n6, e8._events[t6]] : e8.on(t6, n6);
|
|
31094
|
-
}(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
|
|
31094
|
+
})(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
|
|
31095
31095
|
}, C4.prototype.unpipe = function(e7) {
|
|
31096
31096
|
var t5 = this._readableState, n5 = { hasUnpiped: false };
|
|
31097
31097
|
if (0 === t5.pipesCount) return this;
|
|
@@ -31115,26 +31115,26 @@ function G$1$1() {
|
|
|
31115
31115
|
return "readable" !== e7 && void 0 !== e7 || u5.nextTick(Y4, this), t5;
|
|
31116
31116
|
}, C4.prototype.resume = function() {
|
|
31117
31117
|
var e7 = this._readableState;
|
|
31118
|
-
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening, function(e8, t5) {
|
|
31118
|
+
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening, (function(e8, t5) {
|
|
31119
31119
|
t5.resumeScheduled || (t5.resumeScheduled = true, u5.nextTick(z4, e8, t5));
|
|
31120
|
-
}(this, e7)), e7.paused = false, this;
|
|
31120
|
+
})(this, e7)), e7.paused = false, this;
|
|
31121
31121
|
}, C4.prototype.pause = function() {
|
|
31122
31122
|
return p5("call pause flowing=%j", this._readableState.flowing), false !== this._readableState.flowing && (p5("pause"), this._readableState.flowing = false, this.emit("pause")), this._readableState.paused = true, this;
|
|
31123
31123
|
}, C4.prototype.wrap = function(e7) {
|
|
31124
31124
|
var t5 = this, n5 = this._readableState, r5 = false;
|
|
31125
|
-
for (var i5 in e7.on("end", function() {
|
|
31125
|
+
for (var i5 in e7.on("end", (function() {
|
|
31126
31126
|
if (p5("wrapped end"), n5.decoder && !n5.ended) {
|
|
31127
31127
|
var e8 = n5.decoder.end();
|
|
31128
31128
|
e8 && e8.length && t5.push(e8);
|
|
31129
31129
|
}
|
|
31130
31130
|
t5.push(null);
|
|
31131
|
-
}), e7.on("data", function(i6) {
|
|
31131
|
+
})), e7.on("data", (function(i6) {
|
|
31132
31132
|
(p5("wrapped data"), n5.decoder && (i6 = n5.decoder.write(i6)), n5.objectMode && null == i6) || (n5.objectMode || i6 && i6.length) && (t5.push(i6) || (r5 = true, e7.pause()));
|
|
31133
|
-
}), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ function(t6) {
|
|
31133
|
+
})), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ (function(t6) {
|
|
31134
31134
|
return function() {
|
|
31135
31135
|
return e7[t6].apply(e7, arguments);
|
|
31136
31136
|
};
|
|
31137
|
-
}(i5));
|
|
31137
|
+
})(i5));
|
|
31138
31138
|
for (var a5 = 0; a5 < D4.length; a5++) e7.on(D4[a5], this.emit.bind(this, D4[a5]));
|
|
31139
31139
|
return this._read = function(t6) {
|
|
31140
31140
|
p5("wrapped _read", t6), r5 && (r5 = false, e7.resume());
|
|
@@ -31165,7 +31165,7 @@ function J$1$1() {
|
|
|
31165
31165
|
function s5(e7) {
|
|
31166
31166
|
var t5 = this;
|
|
31167
31167
|
this.next = null, this.entry = null, this.finish = function() {
|
|
31168
|
-
!function(e8, t6, n5) {
|
|
31168
|
+
!(function(e8, t6, n5) {
|
|
31169
31169
|
var r6 = e8.entry;
|
|
31170
31170
|
e8.entry = null;
|
|
31171
31171
|
for (; r6; ) {
|
|
@@ -31173,7 +31173,7 @@ function J$1$1() {
|
|
|
31173
31173
|
t6.pendingcb--, i5(n5), r6 = r6.next;
|
|
31174
31174
|
}
|
|
31175
31175
|
t6.corkedRequestsFree.next = e8;
|
|
31176
|
-
}(t5, e7);
|
|
31176
|
+
})(t5, e7);
|
|
31177
31177
|
};
|
|
31178
31178
|
}
|
|
31179
31179
|
Y$1$1 = x4, x4.WritableState = T4;
|
|
@@ -31186,19 +31186,19 @@ function J$1$1() {
|
|
|
31186
31186
|
e$23 = e$23 || Z$1$1(), t5 = t5 || {}, "boolean" != typeof i5 && (i5 = n5 instanceof e$23), this.objectMode = !!t5.objectMode, i5 && (this.objectMode = this.objectMode || !!t5.writableObjectMode), this.highWaterMark = p5(this, t5, "writableHighWaterMark", i5), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false;
|
|
31187
31187
|
var a5 = false === t5.decodeStrings;
|
|
31188
31188
|
this.decodeStrings = !a5, this.defaultEncoding = t5.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(e7) {
|
|
31189
|
-
!function(e8, t6) {
|
|
31189
|
+
!(function(e8, t6) {
|
|
31190
31190
|
var n6 = e8._writableState, i6 = n6.sync, a6 = n6.writecb;
|
|
31191
31191
|
if ("function" != typeof a6) throw new _4();
|
|
31192
|
-
if (function(e9) {
|
|
31192
|
+
if ((function(e9) {
|
|
31193
31193
|
e9.writing = false, e9.writecb = null, e9.length -= e9.writelen, e9.writelen = 0;
|
|
31194
|
-
}(n6), t6) !function(e9, t7, n7, i7, a7) {
|
|
31194
|
+
})(n6), t6) !(function(e9, t7, n7, i7, a7) {
|
|
31195
31195
|
--t7.pendingcb, n7 ? (r5.nextTick(a7, i7), r5.nextTick(W3, e9, t7), e9._writableState.errorEmitted = true, j4(e9, i7)) : (a7(i7), e9._writableState.errorEmitted = true, j4(e9, i7), W3(e9, t7));
|
|
31196
|
-
}(e8, n6, i6, t6, a6);
|
|
31196
|
+
})(e8, n6, i6, t6, a6);
|
|
31197
31197
|
else {
|
|
31198
31198
|
var o5 = C4(n6) || e8.destroyed;
|
|
31199
31199
|
o5 || n6.corked || n6.bufferProcessing || !n6.bufferedRequest || L4(e8, n6), i6 ? r5.nextTick(D4, e8, n6, o5, a6) : D4(e8, n6, o5, a6);
|
|
31200
31200
|
}
|
|
31201
|
-
}(n5, e7);
|
|
31201
|
+
})(n5, e7);
|
|
31202
31202
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.emitClose = false !== t5.emitClose, this.autoDestroy = !!t5.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new s5(this);
|
|
31203
31203
|
}
|
|
31204
31204
|
function x4(t5) {
|
|
@@ -31210,9 +31210,9 @@ function J$1$1() {
|
|
|
31210
31210
|
t5.writelen = r6, t5.writecb = o5, t5.writing = true, t5.sync = true, t5.destroyed ? t5.onwrite(new m4("write")) : n5 ? e7._writev(i5, t5.onwrite) : e7._write(i5, a5, t5.onwrite), t5.sync = false;
|
|
31211
31211
|
}
|
|
31212
31212
|
function D4(e7, t5, n5, r6) {
|
|
31213
|
-
n5 || !function(e8, t6) {
|
|
31213
|
+
n5 || !(function(e8, t6) {
|
|
31214
31214
|
0 === t6.length && t6.needDrain && (t6.needDrain = false, e8.emit("drain"));
|
|
31215
|
-
}(e7, t5), t5.pendingcb--, r6(), W3(e7, t5);
|
|
31215
|
+
})(e7, t5), t5.pendingcb--, r6(), W3(e7, t5);
|
|
31216
31216
|
}
|
|
31217
31217
|
function L4(e7, t5) {
|
|
31218
31218
|
t5.bufferProcessing = true;
|
|
@@ -31235,15 +31235,15 @@ function J$1$1() {
|
|
|
31235
31235
|
return e7.ending && 0 === e7.length && null === e7.bufferedRequest && !e7.finished && !e7.writing;
|
|
31236
31236
|
}
|
|
31237
31237
|
function A4(e7, t5) {
|
|
31238
|
-
e7._final(function(n5) {
|
|
31238
|
+
e7._final((function(n5) {
|
|
31239
31239
|
t5.pendingcb--, n5 && j4(e7, n5), t5.prefinished = true, e7.emit("prefinish"), W3(e7, t5);
|
|
31240
|
-
});
|
|
31240
|
+
}));
|
|
31241
31241
|
}
|
|
31242
31242
|
function W3(e7, t5) {
|
|
31243
31243
|
var n5 = C4(t5);
|
|
31244
|
-
if (n5 && (!function(e8, t6) {
|
|
31244
|
+
if (n5 && (!(function(e8, t6) {
|
|
31245
31245
|
t6.prefinished || t6.finalCalled || ("function" != typeof e8._final || t6.destroyed ? (t6.prefinished = true, e8.emit("prefinish")) : (t6.pendingcb++, t6.finalCalled = true, r5.nextTick(A4, e8, t6)));
|
|
31246
|
-
}(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
|
|
31246
|
+
})(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
|
|
31247
31247
|
var i5 = e7._readableState;
|
|
31248
31248
|
(!i5 || i5.autoDestroy && i5.endEmitted) && e7.destroy();
|
|
31249
31249
|
}
|
|
@@ -31252,14 +31252,14 @@ function J$1$1() {
|
|
|
31252
31252
|
return t$2(x4, d4), T4.prototype.getBuffer = function() {
|
|
31253
31253
|
for (var e7 = this.bufferedRequest, t5 = []; e7; ) t5.push(e7), e7 = e7.next;
|
|
31254
31254
|
return t5;
|
|
31255
|
-
}, function() {
|
|
31255
|
+
}, (function() {
|
|
31256
31256
|
try {
|
|
31257
|
-
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate(function() {
|
|
31257
|
+
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate((function() {
|
|
31258
31258
|
return this.getBuffer();
|
|
31259
|
-
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
31259
|
+
}), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
31260
31260
|
} catch (e7) {
|
|
31261
31261
|
}
|
|
31262
|
-
}(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(x4, Symbol.hasInstance, { value: function(e7) {
|
|
31262
|
+
})(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(x4, Symbol.hasInstance, { value: function(e7) {
|
|
31263
31263
|
return !!c5.call(this, e7) || this === x4 && (e7 && e7._writableState instanceof T4);
|
|
31264
31264
|
} })) : c5 = function(e7) {
|
|
31265
31265
|
return e7 instanceof this;
|
|
@@ -31267,20 +31267,20 @@ function J$1$1() {
|
|
|
31267
31267
|
j4(this, new v5());
|
|
31268
31268
|
}, x4.prototype.write = function(e7, t5, n5) {
|
|
31269
31269
|
var i5, a5 = this._writableState, o5 = false, s6 = !a5.objectMode && (i5 = e7, f6.isBuffer(i5) || i5 instanceof h5);
|
|
31270
|
-
return s6 && !f6.isBuffer(e7) && (e7 = function(e8) {
|
|
31270
|
+
return s6 && !f6.isBuffer(e7) && (e7 = (function(e8) {
|
|
31271
31271
|
return f6.from(e8);
|
|
31272
|
-
}(e7)), "function" == typeof t5 && (n5 = t5, t5 = null), s6 ? t5 = "buffer" : t5 || (t5 = a5.defaultEncoding), "function" != typeof n5 && (n5 = O4), a5.ending ? function(e8, t6) {
|
|
31272
|
+
})(e7)), "function" == typeof t5 && (n5 = t5, t5 = null), s6 ? t5 = "buffer" : t5 || (t5 = a5.defaultEncoding), "function" != typeof n5 && (n5 = O4), a5.ending ? (function(e8, t6) {
|
|
31273
31273
|
var n6 = new k4();
|
|
31274
31274
|
j4(e8, n6), r5.nextTick(t6, n6);
|
|
31275
|
-
}(this, n5) : (s6 || function(e8, t6, n6, i6) {
|
|
31275
|
+
})(this, n5) : (s6 || (function(e8, t6, n6, i6) {
|
|
31276
31276
|
var a6;
|
|
31277
31277
|
return null === n6 ? a6 = new R4() : "string" == typeof n6 || t6.objectMode || (a6 = new y5("chunk", ["string", "Buffer"], n6)), !a6 || (j4(e8, a6), r5.nextTick(i6, a6), false);
|
|
31278
|
-
}(this, a5, e7, n5)) && (a5.pendingcb++, o5 = function(e8, t6, n6, r6, i6, a6) {
|
|
31278
|
+
})(this, a5, e7, n5)) && (a5.pendingcb++, o5 = (function(e8, t6, n6, r6, i6, a6) {
|
|
31279
31279
|
if (!n6) {
|
|
31280
|
-
var o6 = function(e9, t7, n7) {
|
|
31280
|
+
var o6 = (function(e9, t7, n7) {
|
|
31281
31281
|
e9.objectMode || false === e9.decodeStrings || "string" != typeof t7 || (t7 = f6.from(t7, n7));
|
|
31282
31282
|
return t7;
|
|
31283
|
-
}(t6, r6, i6);
|
|
31283
|
+
})(t6, r6, i6);
|
|
31284
31284
|
r6 !== o6 && (n6 = true, i6 = "buffer", r6 = o6);
|
|
31285
31285
|
}
|
|
31286
31286
|
var s7 = t6.objectMode ? 1 : r6.length;
|
|
@@ -31292,7 +31292,7 @@ function J$1$1() {
|
|
|
31292
31292
|
t6.lastBufferedRequest = { chunk: r6, encoding: i6, isBuf: n6, callback: a6, next: null }, d5 ? d5.next = t6.lastBufferedRequest : t6.bufferedRequest = t6.lastBufferedRequest, t6.bufferedRequestCount += 1;
|
|
31293
31293
|
} else P4(e8, t6, false, s7, r6, i6, a6);
|
|
31294
31294
|
return l6;
|
|
31295
|
-
}(this, a5, s6, e7, t5, n5)), o5;
|
|
31295
|
+
})(this, a5, s6, e7, t5, n5)), o5;
|
|
31296
31296
|
}, x4.prototype.cork = function() {
|
|
31297
31297
|
this._writableState.corked++;
|
|
31298
31298
|
}, x4.prototype.uncork = function() {
|
|
@@ -31309,10 +31309,10 @@ function J$1$1() {
|
|
|
31309
31309
|
n5(new w4("_write()"));
|
|
31310
31310
|
}, x4.prototype._writev = null, x4.prototype.end = function(e7, t5, n5) {
|
|
31311
31311
|
var i5 = this._writableState;
|
|
31312
|
-
return "function" == typeof e7 ? (n5 = e7, e7 = null, t5 = null) : "function" == typeof t5 && (n5 = t5, t5 = null), null != e7 && this.write(e7, t5), i5.corked && (i5.corked = 1, this.uncork()), i5.ending || function(e8, t6, n6) {
|
|
31312
|
+
return "function" == typeof e7 ? (n5 = e7, e7 = null, t5 = null) : "function" == typeof t5 && (n5 = t5, t5 = null), null != e7 && this.write(e7, t5), i5.corked && (i5.corked = 1, this.uncork()), i5.ending || (function(e8, t6, n6) {
|
|
31313
31313
|
t6.ending = true, W3(e8, t6), n6 && (t6.finished ? r5.nextTick(n6) : e8.once("finish", n6));
|
|
31314
31314
|
t6.ended = true, e8.writable = false;
|
|
31315
|
-
}(this, i5, n5), this;
|
|
31315
|
+
})(this, i5, n5), this;
|
|
31316
31316
|
}, Object.defineProperty(x4.prototype, "writableLength", { enumerable: false, get: function() {
|
|
31317
31317
|
return this._writableState.length;
|
|
31318
31318
|
} }), Object.defineProperty(x4.prototype, "destroyed", { enumerable: false, get: function() {
|
|
@@ -31387,9 +31387,9 @@ function u$1$12(t5) {
|
|
|
31387
31387
|
}
|
|
31388
31388
|
function m$2$1() {
|
|
31389
31389
|
var t5 = this;
|
|
31390
|
-
"function" != typeof this._flush || this._readableState.destroyed ? _$2$1(this, null, null) : this._flush(function(r5, e7) {
|
|
31390
|
+
"function" != typeof this._flush || this._readableState.destroyed ? _$2$1(this, null, null) : this._flush((function(r5, e7) {
|
|
31391
31391
|
_$2$1(t5, r5, e7);
|
|
31392
|
-
});
|
|
31392
|
+
}));
|
|
31393
31393
|
}
|
|
31394
31394
|
function _$2$1(t5, r5, e7) {
|
|
31395
31395
|
if (r5) return t5.emit("error", r5);
|
|
@@ -31411,9 +31411,9 @@ t$2(u$1$12, h$2$1), u$1$12.prototype.push = function(t5, r5) {
|
|
|
31411
31411
|
var r5 = this._transformState;
|
|
31412
31412
|
null === r5.writechunk || r5.transforming ? r5.needTransform = true : (r5.transforming = true, this._transform(r5.writechunk, r5.writeencoding, r5.afterTransform));
|
|
31413
31413
|
}, u$1$12.prototype._destroy = function(t5, r5) {
|
|
31414
|
-
h$2$1.prototype._destroy.call(this, t5, function(t6) {
|
|
31414
|
+
h$2$1.prototype._destroy.call(this, t5, (function(t6) {
|
|
31415
31415
|
r5(t6);
|
|
31416
|
-
});
|
|
31416
|
+
}));
|
|
31417
31417
|
};
|
|
31418
31418
|
var p$2$1 = n$2$1;
|
|
31419
31419
|
var o$1$12;
|
|
@@ -31435,24 +31435,24 @@ function i$2$1(r5) {
|
|
|
31435
31435
|
if (r5) throw r5;
|
|
31436
31436
|
}
|
|
31437
31437
|
function u$2$1(r5, o5, e7, i5) {
|
|
31438
|
-
i5 = /* @__PURE__ */ function(r6) {
|
|
31438
|
+
i5 = /* @__PURE__ */ (function(r6) {
|
|
31439
31439
|
var n5 = false;
|
|
31440
31440
|
return function() {
|
|
31441
31441
|
n5 || (n5 = true, r6.apply(void 0, arguments));
|
|
31442
31442
|
};
|
|
31443
|
-
}(i5);
|
|
31443
|
+
})(i5);
|
|
31444
31444
|
var u5 = false;
|
|
31445
|
-
r5.on("close", function() {
|
|
31445
|
+
r5.on("close", (function() {
|
|
31446
31446
|
u5 = true;
|
|
31447
|
-
}), void 0 === t$6$1 && (t$6$1 = n$1$12), t$6$1(r5, { readable: o5, writable: e7 }, function(r6) {
|
|
31447
|
+
})), void 0 === t$6$1 && (t$6$1 = n$1$12), t$6$1(r5, { readable: o5, writable: e7 }, (function(r6) {
|
|
31448
31448
|
if (r6) return i5(r6);
|
|
31449
31449
|
u5 = true, i5();
|
|
31450
|
-
});
|
|
31450
|
+
}));
|
|
31451
31451
|
var a5 = false;
|
|
31452
31452
|
return function(n5) {
|
|
31453
|
-
if (!u5 && !a5) return a5 = true, function(r6) {
|
|
31453
|
+
if (!u5 && !a5) return a5 = true, (function(r6) {
|
|
31454
31454
|
return r6.setHeader && "function" == typeof r6.abort;
|
|
31455
|
-
}(r5) ? r5.abort() : "function" == typeof r5.destroy ? r5.destroy() : (i5(n5 || new f$3$1("pipe")), void 0);
|
|
31455
|
+
})(r5) ? r5.abort() : "function" == typeof r5.destroy ? r5.destroy() : (i5(n5 || new f$3$1("pipe")), void 0);
|
|
31456
31456
|
};
|
|
31457
31457
|
}
|
|
31458
31458
|
function a$1$12(r5) {
|
|
@@ -31468,12 +31468,12 @@ var v$2$1 = function() {
|
|
|
31468
31468
|
for (var r5 = arguments.length, n5 = new Array(r5), t5 = 0; t5 < r5; t5++) n5[t5] = arguments[t5];
|
|
31469
31469
|
var o5, f6 = p$3$1(n5);
|
|
31470
31470
|
if (Array.isArray(n5[0]) && (n5 = n5[0]), n5.length < 2) throw new e$4$1("streams");
|
|
31471
|
-
var i5 = n5.map(function(r6, t6) {
|
|
31471
|
+
var i5 = n5.map((function(r6, t6) {
|
|
31472
31472
|
var e7 = t6 < n5.length - 1;
|
|
31473
|
-
return u$2$1(r6, e7, t6 > 0, function(r7) {
|
|
31473
|
+
return u$2$1(r6, e7, t6 > 0, (function(r7) {
|
|
31474
31474
|
o5 || (o5 = r7), r7 && i5.forEach(a$1$12), e7 || (i5.forEach(a$1$12), f6(o5));
|
|
31475
|
-
});
|
|
31476
|
-
});
|
|
31475
|
+
}));
|
|
31476
|
+
}));
|
|
31477
31477
|
return n5.reduce(c$2$1);
|
|
31478
31478
|
};
|
|
31479
31479
|
var l$r;
|
|
@@ -33277,7 +33277,7 @@ function dew$1c$1() {
|
|
|
33277
33277
|
return [t0, t1, t22, t32];
|
|
33278
33278
|
}
|
|
33279
33279
|
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
33280
|
-
var G3 = function() {
|
|
33280
|
+
var G3 = (function() {
|
|
33281
33281
|
var d4 = new Array(256);
|
|
33282
33282
|
for (var j4 = 0; j4 < 256; j4++) {
|
|
33283
33283
|
if (j4 < 128) {
|
|
@@ -33323,7 +33323,7 @@ function dew$1c$1() {
|
|
|
33323
33323
|
SUB_MIX,
|
|
33324
33324
|
INV_SUB_MIX
|
|
33325
33325
|
};
|
|
33326
|
-
}();
|
|
33326
|
+
})();
|
|
33327
33327
|
function AES(key) {
|
|
33328
33328
|
(this || _global$j$1)._key = asUInt32Array(key);
|
|
33329
33329
|
this._reset();
|
|
@@ -39361,7 +39361,7 @@ var forEach2 = function(e7, t5) {
|
|
|
39361
39361
|
if (e7.forEach) return e7.forEach(t5);
|
|
39362
39362
|
for (var n5 = 0; n5 < e7.length; n5++) t5(e7[n5], n5, e7);
|
|
39363
39363
|
};
|
|
39364
|
-
var defineProp2 = function() {
|
|
39364
|
+
var defineProp2 = (function() {
|
|
39365
39365
|
try {
|
|
39366
39366
|
return Object.defineProperty({}, "_", {}), function(e7, t5, n5) {
|
|
39367
39367
|
Object.defineProperty(e7, t5, { writable: true, enumerable: false, configurable: true, value: n5 });
|
|
@@ -39371,7 +39371,7 @@ var defineProp2 = function() {
|
|
|
39371
39371
|
e8[t5] = n5;
|
|
39372
39372
|
};
|
|
39373
39373
|
}
|
|
39374
|
-
}();
|
|
39374
|
+
})();
|
|
39375
39375
|
var globals2 = ["Array", "Boolean", "Date", "Error", "EvalError", "Function", "Infinity", "JSON", "Math", "NaN", "Number", "Object", "RangeError", "ReferenceError", "RegExp", "String", "SyntaxError", "TypeError", "URIError", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "undefined", "unescape"];
|
|
39376
39376
|
function Context2() {
|
|
39377
39377
|
}
|
|
@@ -39385,38 +39385,38 @@ Script3.prototype.runInContext = function(e7) {
|
|
|
39385
39385
|
var t5 = document.createElement("iframe");
|
|
39386
39386
|
t5.style || (t5.style = {}), t5.style.display = "none", document.body.appendChild(t5);
|
|
39387
39387
|
var n5 = t5.contentWindow, r5 = n5.eval, o5 = n5.execScript;
|
|
39388
|
-
!r5 && o5 && (o5.call(n5, "null"), r5 = n5.eval), forEach2(Object_keys2(e7), function(t6) {
|
|
39388
|
+
!r5 && o5 && (o5.call(n5, "null"), r5 = n5.eval), forEach2(Object_keys2(e7), (function(t6) {
|
|
39389
39389
|
n5[t6] = e7[t6];
|
|
39390
|
-
}), forEach2(globals2, function(t6) {
|
|
39390
|
+
})), forEach2(globals2, (function(t6) {
|
|
39391
39391
|
e7[t6] && (n5[t6] = e7[t6]);
|
|
39392
|
-
});
|
|
39392
|
+
}));
|
|
39393
39393
|
var c5 = Object_keys2(n5), i5 = r5.call(n5, (this || _global$b$1).code);
|
|
39394
|
-
return forEach2(Object_keys2(n5), function(t6) {
|
|
39394
|
+
return forEach2(Object_keys2(n5), (function(t6) {
|
|
39395
39395
|
(t6 in e7 || -1 === indexOf2(c5, t6)) && (e7[t6] = n5[t6]);
|
|
39396
|
-
}), forEach2(globals2, function(t6) {
|
|
39396
|
+
})), forEach2(globals2, (function(t6) {
|
|
39397
39397
|
t6 in e7 || defineProp2(e7, t6, n5[t6]);
|
|
39398
|
-
}), document.body.removeChild(t5), i5;
|
|
39398
|
+
})), document.body.removeChild(t5), i5;
|
|
39399
39399
|
}, Script3.prototype.runInThisContext = function() {
|
|
39400
39400
|
return eval((this || _global$b$1).code);
|
|
39401
39401
|
}, Script3.prototype.runInNewContext = function(e7) {
|
|
39402
39402
|
var t5 = Script3.createContext(e7), n5 = this.runInContext(t5);
|
|
39403
|
-
return e7 && forEach2(Object_keys2(t5), function(n6) {
|
|
39403
|
+
return e7 && forEach2(Object_keys2(t5), (function(n6) {
|
|
39404
39404
|
e7[n6] = t5[n6];
|
|
39405
|
-
}), n5;
|
|
39406
|
-
}, forEach2(Object_keys2(Script3.prototype), function(e7) {
|
|
39405
|
+
})), n5;
|
|
39406
|
+
}, forEach2(Object_keys2(Script3.prototype), (function(e7) {
|
|
39407
39407
|
exports$11$1[e7] = Script3[e7] = function(t5) {
|
|
39408
39408
|
var n5 = Script3(t5);
|
|
39409
39409
|
return n5[e7].apply(n5, [].slice.call(arguments, 1));
|
|
39410
39410
|
};
|
|
39411
|
-
}), exports$11$1.isContext = function(e7) {
|
|
39411
|
+
})), exports$11$1.isContext = function(e7) {
|
|
39412
39412
|
return e7 instanceof Context2;
|
|
39413
39413
|
}, exports$11$1.createScript = function(e7) {
|
|
39414
39414
|
return exports$11$1.Script(e7);
|
|
39415
39415
|
}, exports$11$1.createContext = Script3.createContext = function(e7) {
|
|
39416
39416
|
var t5 = new Context2();
|
|
39417
|
-
return "object" == typeof e7 && forEach2(Object_keys2(e7), function(n5) {
|
|
39417
|
+
return "object" == typeof e7 && forEach2(Object_keys2(e7), (function(n5) {
|
|
39418
39418
|
t5[n5] = e7[n5];
|
|
39419
|
-
}), t5;
|
|
39419
|
+
})), t5;
|
|
39420
39420
|
};
|
|
39421
39421
|
exports$11$1.Script;
|
|
39422
39422
|
exports$11$1.createContext;
|
|
@@ -39434,9 +39434,9 @@ var a4 = f4 && f4.getRandomValues ? function(e7, r5) {
|
|
|
39434
39434
|
var o5 = t4.allocUnsafe(e7);
|
|
39435
39435
|
if (e7 > 0) if (e7 > 65536) for (var a5 = 0; a5 < e7; a5 += 65536) f4.getRandomValues(o5.slice(a5, a5 + 65536));
|
|
39436
39436
|
else f4.getRandomValues(o5);
|
|
39437
|
-
if ("function" == typeof r5) return n4.nextTick(function() {
|
|
39437
|
+
if ("function" == typeof r5) return n4.nextTick((function() {
|
|
39438
39438
|
r5(null, o5);
|
|
39439
|
-
});
|
|
39439
|
+
}));
|
|
39440
39440
|
return o5;
|
|
39441
39441
|
} : function() {
|
|
39442
39442
|
throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11");
|
|
@@ -39463,9 +39463,9 @@ t$2(s4, o$13), s4.prototype._transform = function(t5, i5, r5) {
|
|
|
39463
39463
|
}
|
|
39464
39464
|
t5(i5);
|
|
39465
39465
|
}, s4.prototype.update = function(t5, i5) {
|
|
39466
|
-
if (!function(t6, i6) {
|
|
39466
|
+
if (!(function(t6, i6) {
|
|
39467
39467
|
if (!e6.isBuffer(t6) && "string" != typeof t6) throw new TypeError(i6 + " must be a string or a buffer");
|
|
39468
|
-
}(t5, "Data"), this._finalized) throw new Error("Digest already called");
|
|
39468
|
+
})(t5, "Data"), this._finalized) throw new Error("Digest already called");
|
|
39469
39469
|
e6.isBuffer(t5) || (t5 = e6.from(t5, i5));
|
|
39470
39470
|
for (var r5 = this._block, o5 = 0; this._blockOffset + t5.length - o5 >= this._blockSize; ) {
|
|
39471
39471
|
for (var s5 = this._blockOffset; s5 < this._blockSize; ) r5[s5++] = t5[o5++];
|
|
@@ -39926,14 +39926,14 @@ var w$4 = u3.Buffer;
|
|
|
39926
39926
|
var g$2 = w$4.alloc(128);
|
|
39927
39927
|
var B$1 = { md5: 16, sha1: 20, sha224: 28, sha256: 32, sha384: 48, sha512: 64, rmd160: 20, ripemd160: 20 };
|
|
39928
39928
|
function T$12(r5, e7, t5) {
|
|
39929
|
-
var n5 = /* @__PURE__ */ function(r6) {
|
|
39929
|
+
var n5 = /* @__PURE__ */ (function(r6) {
|
|
39930
39930
|
function e8(e9) {
|
|
39931
39931
|
return y$2(r6).update(e9).digest();
|
|
39932
39932
|
}
|
|
39933
39933
|
return "rmd160" === r6 || "ripemd160" === r6 ? function(r7) {
|
|
39934
39934
|
return new m$3().update(r7).digest();
|
|
39935
39935
|
} : "md5" === r6 ? d$4 : e8;
|
|
39936
|
-
}(r5), o5 = "sha512" === r5 || "sha384" === r5 ? 128 : 64;
|
|
39936
|
+
})(r5), o5 = "sha512" === r5 || "sha384" === r5 ? 128 : 64;
|
|
39937
39937
|
e7.length > o5 ? e7 = n5(e7) : e7.length < o5 && (e7 = w$4.concat([e7, g$2], o5));
|
|
39938
39938
|
for (var i5 = w$4.allocUnsafe(o5 + B$1[r5]), f6 = w$4.allocUnsafe(o5 + B$1[r5]), a5 = 0; a5 < o5; a5++) i5[a5] = 54 ^ e7[a5], f6[a5] = 92 ^ e7[a5];
|
|
39939
39939
|
var s5 = w$4.allocUnsafe(o5 + t5 + 4);
|
|
@@ -39967,16 +39967,16 @@ var x$1 = A$1.crypto && A$1.crypto.subtle;
|
|
|
39967
39967
|
var z$1 = { sha: "SHA-1", "sha-1": "SHA-1", sha1: "SHA-1", sha256: "SHA-256", "sha-256": "SHA-256", sha384: "SHA-384", "sha-384": "SHA-384", "sha-512": "SHA-512", sha512: "SHA-512" };
|
|
39968
39968
|
var I$2 = [];
|
|
39969
39969
|
function D$1(r5, e7, t5, n5, o5) {
|
|
39970
|
-
return x$1.importKey("raw", r5, { name: "PBKDF2" }, false, ["deriveBits"]).then(function(r6) {
|
|
39970
|
+
return x$1.importKey("raw", r5, { name: "PBKDF2" }, false, ["deriveBits"]).then((function(r6) {
|
|
39971
39971
|
return x$1.deriveBits({ name: "PBKDF2", salt: e7, iterations: t5, hash: { name: o5 } }, r6, n5 << 3);
|
|
39972
|
-
}).then(function(r6) {
|
|
39972
|
+
})).then((function(r6) {
|
|
39973
39973
|
return K$1.from(r6);
|
|
39974
|
-
});
|
|
39974
|
+
}));
|
|
39975
39975
|
}
|
|
39976
39976
|
var F$1 = function(r5, e7, t5, n5, o5, i5) {
|
|
39977
39977
|
"function" == typeof o5 && (i5 = o5, o5 = void 0);
|
|
39978
39978
|
var f6 = z$1[(o5 = o5 || "sha1").toLowerCase()];
|
|
39979
|
-
if (!f6 || "function" != typeof A$1.Promise) return H$1.nextTick(function() {
|
|
39979
|
+
if (!f6 || "function" != typeof A$1.Promise) return H$1.nextTick((function() {
|
|
39980
39980
|
var f7;
|
|
39981
39981
|
try {
|
|
39982
39982
|
f7 = U$1(r5, e7, t5, n5, o5);
|
|
@@ -39984,31 +39984,31 @@ var F$1 = function(r5, e7, t5, n5, o5, i5) {
|
|
|
39984
39984
|
return i5(r6);
|
|
39985
39985
|
}
|
|
39986
39986
|
i5(null, f7);
|
|
39987
|
-
});
|
|
39987
|
+
}));
|
|
39988
39988
|
if (E$2(r5, e7, t5, n5), "function" != typeof i5) throw new Error("No callback provided to pbkdf2");
|
|
39989
|
-
K$1.isBuffer(r5) || (r5 = K$1.from(r5, P$1)), K$1.isBuffer(e7) || (e7 = K$1.from(e7, P$1)), function(r6, e8) {
|
|
39990
|
-
r6.then(function(r7) {
|
|
39991
|
-
H$1.nextTick(function() {
|
|
39989
|
+
K$1.isBuffer(r5) || (r5 = K$1.from(r5, P$1)), K$1.isBuffer(e7) || (e7 = K$1.from(e7, P$1)), (function(r6, e8) {
|
|
39990
|
+
r6.then((function(r7) {
|
|
39991
|
+
H$1.nextTick((function() {
|
|
39992
39992
|
e8(null, r7);
|
|
39993
|
-
});
|
|
39994
|
-
}, function(r7) {
|
|
39995
|
-
H$1.nextTick(function() {
|
|
39993
|
+
}));
|
|
39994
|
+
}), (function(r7) {
|
|
39995
|
+
H$1.nextTick((function() {
|
|
39996
39996
|
e8(r7);
|
|
39997
|
-
});
|
|
39998
|
-
});
|
|
39999
|
-
}(function(r6) {
|
|
39997
|
+
}));
|
|
39998
|
+
}));
|
|
39999
|
+
})((function(r6) {
|
|
40000
40000
|
if (A$1.process && !A$1.process.browser) return Promise.resolve(false);
|
|
40001
40001
|
if (!x$1 || !x$1.importKey || !x$1.deriveBits) return Promise.resolve(false);
|
|
40002
40002
|
if (void 0 !== I$2[r6]) return I$2[r6];
|
|
40003
|
-
var e8 = D$1(k$3 = k$3 || K$1.alloc(8), k$3, 10, 128, r6).then(function() {
|
|
40003
|
+
var e8 = D$1(k$3 = k$3 || K$1.alloc(8), k$3, 10, 128, r6).then((function() {
|
|
40004
40004
|
return true;
|
|
40005
|
-
}).catch(function() {
|
|
40005
|
+
})).catch((function() {
|
|
40006
40006
|
return false;
|
|
40007
|
-
});
|
|
40007
|
+
}));
|
|
40008
40008
|
return I$2[r6] = e8, e8;
|
|
40009
|
-
}(f6).then(function(i6) {
|
|
40009
|
+
})(f6).then((function(i6) {
|
|
40010
40010
|
return i6 ? D$1(r5, e7, t5, n5, f6) : U$1(r5, e7, t5, n5, o5);
|
|
40011
|
-
}), i5);
|
|
40011
|
+
})), i5);
|
|
40012
40012
|
};
|
|
40013
40013
|
var M$1 = {};
|
|
40014
40014
|
M$1.pbkdf2 = F$1, M$1.pbkdf2Sync = S$1;
|
|
@@ -40379,7 +40379,7 @@ function l$9(t5, e7, i5, r5, n5) {
|
|
|
40379
40379
|
return a5 = (r5[p5 >>> 24] << 24 | r5[_4 >>> 16 & 255] << 16 | r5[d4 >>> 8 & 255] << 8 | r5[255 & y5]) ^ e7[B4++], h5 = (r5[_4 >>> 24] << 24 | r5[d4 >>> 16 & 255] << 16 | r5[y5 >>> 8 & 255] << 8 | r5[255 & p5]) ^ e7[B4++], o5 = (r5[d4 >>> 24] << 24 | r5[y5 >>> 16 & 255] << 16 | r5[p5 >>> 8 & 255] << 8 | r5[255 & _4]) ^ e7[B4++], s5 = (r5[y5 >>> 24] << 24 | r5[p5 >>> 16 & 255] << 16 | r5[_4 >>> 8 & 255] << 8 | r5[255 & d4]) ^ e7[B4++], [a5 >>>= 0, h5 >>>= 0, o5 >>>= 0, s5 >>>= 0];
|
|
40380
40380
|
}
|
|
40381
40381
|
var f$d = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
40382
|
-
var u$8 = function() {
|
|
40382
|
+
var u$8 = (function() {
|
|
40383
40383
|
for (var t5 = new Array(256), e7 = 0; e7 < 256; e7++) t5[e7] = e7 < 128 ? e7 << 1 : e7 << 1 ^ 283;
|
|
40384
40384
|
for (var i5 = [], r5 = [], n5 = [[], [], [], []], a5 = [[], [], [], []], h5 = 0, o5 = 0, s5 = 0; s5 < 256; ++s5) {
|
|
40385
40385
|
var c5 = o5 ^ o5 << 1 ^ o5 << 2 ^ o5 << 3 ^ o5 << 4;
|
|
@@ -40388,7 +40388,7 @@ var u$8 = function() {
|
|
|
40388
40388
|
n5[0][h5] = p5 << 24 | p5 >>> 8, n5[1][h5] = p5 << 16 | p5 >>> 16, n5[2][h5] = p5 << 8 | p5 >>> 24, n5[3][h5] = p5, p5 = 16843009 * u5 ^ 65537 * f6 ^ 257 * l5 ^ 16843008 * h5, a5[0][c5] = p5 << 24 | p5 >>> 8, a5[1][c5] = p5 << 16 | p5 >>> 16, a5[2][c5] = p5 << 8 | p5 >>> 24, a5[3][c5] = p5, 0 === h5 ? h5 = o5 = 1 : (h5 = l5 ^ t5[t5[t5[u5 ^ l5]]], o5 ^= t5[t5[o5]]);
|
|
40389
40389
|
}
|
|
40390
40390
|
return { SBOX: i5, INV_SBOX: r5, SUB_MIX: n5, INV_SUB_MIX: a5 };
|
|
40391
|
-
}();
|
|
40391
|
+
})();
|
|
40392
40392
|
function p$9(t5) {
|
|
40393
40393
|
(this || a$b)._key = s$8(t5), this._reset();
|
|
40394
40394
|
}
|
|
@@ -40454,7 +40454,7 @@ function X$1(t5, e7, i5, r5) {
|
|
|
40454
40454
|
var n5 = U$4.alloc(4, 0);
|
|
40455
40455
|
(this || v$5)._cipher = new I$5.AES(e7);
|
|
40456
40456
|
var a5 = (this || v$5)._cipher.encryptBlock(n5);
|
|
40457
|
-
(this || v$5)._ghash = new m$6(a5), i5 = function(t6, e8, i6) {
|
|
40457
|
+
(this || v$5)._ghash = new m$6(a5), i5 = (function(t6, e8, i6) {
|
|
40458
40458
|
if (12 === e8.length) return t6._finID = U$4.concat([e8, U$4.from([0, 0, 0, 1])]), U$4.concat([e8, U$4.from([0, 0, 0, 2])]);
|
|
40459
40459
|
var r6 = new m$6(i6), n6 = e8.length, a6 = n6 % 16;
|
|
40460
40460
|
r6.update(e8), a6 && (a6 = 16 - a6, r6.update(U$4.alloc(a6, 0))), r6.update(U$4.alloc(8, 0));
|
|
@@ -40462,7 +40462,7 @@ function X$1(t5, e7, i5, r5) {
|
|
|
40462
40462
|
o5.writeUIntBE(h5, 0, 8), r6.update(o5), t6._finID = r6.state;
|
|
40463
40463
|
var s5 = U$4.from(t6._finID);
|
|
40464
40464
|
return b$6(s5), s5;
|
|
40465
|
-
}(this || v$5, i5, a5), (this || v$5)._prev = U$4.from(i5), (this || v$5)._cache = U$4.allocUnsafe(0), (this || v$5)._secCache = U$4.allocUnsafe(0), (this || v$5)._decrypt = r5, (this || v$5)._alen = 0, (this || v$5)._len = 0, (this || v$5)._mode = t5, (this || v$5)._authTag = null, (this || v$5)._called = false;
|
|
40465
|
+
})(this || v$5, i5, a5), (this || v$5)._prev = U$4.from(i5), (this || v$5)._cache = U$4.allocUnsafe(0), (this || v$5)._secCache = U$4.allocUnsafe(0), (this || v$5)._decrypt = r5, (this || v$5)._alen = 0, (this || v$5)._len = 0, (this || v$5)._mode = t5, (this || v$5)._authTag = null, (this || v$5)._called = false;
|
|
40466
40466
|
}
|
|
40467
40467
|
t$2(X$1, w$7), X$1.prototype._update = function(t5) {
|
|
40468
40468
|
if (!(this || v$5)._called && (this || v$5)._alen) {
|
|
@@ -40475,12 +40475,12 @@ t$2(X$1, w$7), X$1.prototype._update = function(t5) {
|
|
|
40475
40475
|
}, X$1.prototype._final = function() {
|
|
40476
40476
|
if ((this || v$5)._decrypt && !(this || v$5)._authTag) throw new Error("Unsupported state or unable to authenticate data");
|
|
40477
40477
|
var t5 = E$5((this || v$5)._ghash.final(8 * (this || v$5)._alen, 8 * (this || v$5)._len), (this || v$5)._cipher.encryptBlock((this || v$5)._finID));
|
|
40478
|
-
if ((this || v$5)._decrypt && function(t6, e7) {
|
|
40478
|
+
if ((this || v$5)._decrypt && (function(t6, e7) {
|
|
40479
40479
|
var i5 = 0;
|
|
40480
40480
|
t6.length !== e7.length && i5++;
|
|
40481
40481
|
for (var r5 = Math.min(t6.length, e7.length), n5 = 0; n5 < r5; ++n5) i5 += t6[n5] ^ e7[n5];
|
|
40482
40482
|
return i5;
|
|
40483
|
-
}(t5, (this || v$5)._authTag)) throw new Error("Unsupported state or unable to authenticate data");
|
|
40483
|
+
})(t5, (this || v$5)._authTag)) throw new Error("Unsupported state or unable to authenticate data");
|
|
40484
40484
|
(this || v$5)._authTag = t5, (this || v$5)._cipher.scrub();
|
|
40485
40485
|
}, X$1.prototype.getAuthTag = function() {
|
|
40486
40486
|
if ((this || v$5)._decrypt || !U$4.isBuffer((this || v$5)._authTag)) throw new Error("Attempting to get auth tag in unsupported state");
|
|
@@ -40554,14 +40554,14 @@ t$2(g$6, d$9), g$6.prototype._update = function(t5) {
|
|
|
40554
40554
|
return p$a.concat(i5);
|
|
40555
40555
|
}, g$6.prototype._final = function() {
|
|
40556
40556
|
var t5 = (this || c$9)._cache.flush();
|
|
40557
|
-
if ((this || c$9)._autopadding) return function(t6) {
|
|
40557
|
+
if ((this || c$9)._autopadding) return (function(t6) {
|
|
40558
40558
|
var e7 = t6[15];
|
|
40559
40559
|
if (e7 < 1 || e7 > 16) throw new Error("unable to decrypt data");
|
|
40560
40560
|
var r5 = -1;
|
|
40561
40561
|
for (; ++r5 < e7; ) if (t6[r5 + (16 - e7)] !== e7) throw new Error("unable to decrypt data");
|
|
40562
40562
|
if (16 === e7) return;
|
|
40563
40563
|
return t6.slice(0, 16 - e7);
|
|
40564
|
-
}((this || c$9)._mode.decrypt(this || c$9, t5));
|
|
40564
|
+
})((this || c$9)._mode.decrypt(this || c$9, t5));
|
|
40565
40565
|
if (t5) throw new Error("data not multiple of block length");
|
|
40566
40566
|
}, g$6.prototype.setAutoPadding = function(t5) {
|
|
40567
40567
|
return (this || c$9)._autopadding = !!t5, this || c$9;
|
|
@@ -40683,7 +40683,7 @@ var t$4 = Object.freeze({});
|
|
|
40683
40683
|
var i$3 = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : global;
|
|
40684
40684
|
var r$7 = {};
|
|
40685
40685
|
var h$a = { exports: r$7 };
|
|
40686
|
-
!function(r5, h5) {
|
|
40686
|
+
!(function(r5, h5) {
|
|
40687
40687
|
function n5(t5, i5) {
|
|
40688
40688
|
if (!t5) throw new Error(i5 || "Assertion failed");
|
|
40689
40689
|
}
|
|
@@ -40989,7 +40989,7 @@ var h$a = { exports: r$7 };
|
|
|
40989
40989
|
}
|
|
40990
40990
|
Math.imul || (p5 = d4), o5.prototype.mulTo = function(t5, r6) {
|
|
40991
40991
|
var h6 = (this || i$3).length + t5.length;
|
|
40992
|
-
return 10 === (this || i$3).length && 10 === t5.length ? p5(this || i$3, t5, r6) : h6 < 63 ? d4(this || i$3, t5, r6) : h6 < 1024 ? function(t6, i5, r7) {
|
|
40992
|
+
return 10 === (this || i$3).length && 10 === t5.length ? p5(this || i$3, t5, r6) : h6 < 63 ? d4(this || i$3, t5, r6) : h6 < 1024 ? (function(t6, i5, r7) {
|
|
40993
40993
|
r7.negative = i5.negative ^ t6.negative, r7.length = t6.length + i5.length;
|
|
40994
40994
|
for (var h7 = 0, n6 = 0, e8 = 0; e8 < r7.length - 1; e8++) {
|
|
40995
40995
|
var o6 = n6;
|
|
@@ -41001,7 +41001,7 @@ var h$a = { exports: r$7 };
|
|
|
41001
41001
|
r7.words[e8] = s6, h7 = o6, o6 = n6;
|
|
41002
41002
|
}
|
|
41003
41003
|
return 0 !== h7 ? r7.words[e8] = h7 : r7.length--, r7.strip();
|
|
41004
|
-
}(this || i$3, t5, r6) : M4(this || i$3, t5, r6);
|
|
41004
|
+
})(this || i$3, t5, r6) : M4(this || i$3, t5, r6);
|
|
41005
41005
|
}, v5.prototype.makeRBT = function(t5) {
|
|
41006
41006
|
for (var i5 = new Array(t5), r6 = o5.prototype._countBits(t5) - 1, h6 = 0; h6 < t5; h6++) i5[h6] = this.revBin(h6, r6, t5);
|
|
41007
41007
|
return i5;
|
|
@@ -41069,13 +41069,13 @@ var h$a = { exports: r$7 };
|
|
|
41069
41069
|
}, o5.prototype.isqr = function() {
|
|
41070
41070
|
return this.imul(this.clone());
|
|
41071
41071
|
}, o5.prototype.pow = function(t5) {
|
|
41072
|
-
var r6 = function(t6) {
|
|
41072
|
+
var r6 = (function(t6) {
|
|
41073
41073
|
for (var i5 = new Array(t6.bitLength()), r7 = 0; r7 < i5.length; r7++) {
|
|
41074
41074
|
var h7 = r7 / 26 | 0, n7 = r7 % 26;
|
|
41075
41075
|
i5[r7] = (t6.words[h7] & 1 << n7) >>> n7;
|
|
41076
41076
|
}
|
|
41077
41077
|
return i5;
|
|
41078
|
-
}(t5);
|
|
41078
|
+
})(t5);
|
|
41079
41079
|
if (0 === r6.length) return new o5(1);
|
|
41080
41080
|
for (var h6 = this || i$3, n6 = 0; n6 < r6.length && 0 === r6[n6]; n6++, h6 = h6.sqr()) ;
|
|
41081
41081
|
if (++n6 < r6.length) for (var e8 = h6.sqr(); n6 < r6.length; n6++, e8 = e8.sqr()) 0 !== r6[n6] && (h6 = h6.mul(e8));
|
|
@@ -41528,7 +41528,7 @@ var h$a = { exports: r$7 };
|
|
|
41528
41528
|
}, A4.prototype.invm = function(t5) {
|
|
41529
41529
|
return this.imod(t5._invmp((this || i$3).m).mul((this || i$3).r2))._forceRed(this || i$3);
|
|
41530
41530
|
};
|
|
41531
|
-
}(h$a, r$7);
|
|
41531
|
+
})(h$a, r$7);
|
|
41532
41532
|
var n$c = h$a.exports;
|
|
41533
41533
|
var t$5;
|
|
41534
41534
|
var e$a;
|
|
@@ -41690,7 +41690,7 @@ function A$5(f6, e7) {
|
|
|
41690
41690
|
return e7 ? c5.toString(e7) : c5;
|
|
41691
41691
|
}
|
|
41692
41692
|
Object.defineProperty(k$7.prototype, "verifyError", { enumerable: true, get: function() {
|
|
41693
|
-
return "number" != typeof (this || B$5)._primeCode && ((this || B$5)._primeCode = function(f6, e7) {
|
|
41693
|
+
return "number" != typeof (this || B$5)._primeCode && ((this || B$5)._primeCode = (function(f6, e7) {
|
|
41694
41694
|
var c5 = e7.toString("hex"), a5 = [c5, f6.toString(16)].join("_");
|
|
41695
41695
|
if (a5 in M$4) return M$4[a5];
|
|
41696
41696
|
var b4, d4 = 0;
|
|
@@ -41706,7 +41706,7 @@ Object.defineProperty(k$7.prototype, "verifyError", { enumerable: true, get: fun
|
|
|
41706
41706
|
d4 += 4;
|
|
41707
41707
|
}
|
|
41708
41708
|
return M$4[a5] = d4, d4;
|
|
41709
|
-
}((this || B$5).__prime, (this || B$5).__gen)), (this || B$5)._primeCode;
|
|
41709
|
+
})((this || B$5).__prime, (this || B$5).__gen)), (this || B$5)._primeCode;
|
|
41710
41710
|
} }), k$7.prototype.generateKeys = function() {
|
|
41711
41711
|
return (this || B$5)._priv || ((this || B$5)._priv = new R$1(j$1((this || B$5)._primeLen))), (this || B$5)._pub = (this || B$5)._gen.toRed((this || B$5)._prime).redPow((this || B$5)._priv).fromRed(), this.getPublicKey();
|
|
41712
41712
|
}, k$7.prototype.computeSecret = function(f6) {
|
|
@@ -41745,10 +41745,10 @@ var u$c = e$1$1.Buffer;
|
|
|
41745
41745
|
var n$g = n$c;
|
|
41746
41746
|
var d$d = a4;
|
|
41747
41747
|
function t$8(e7, o5) {
|
|
41748
|
-
var r5 = function(e8) {
|
|
41748
|
+
var r5 = (function(e8) {
|
|
41749
41749
|
var o6 = i$6(e8);
|
|
41750
41750
|
return { blinder: o6.toRed(n$g.mont(e8.modulus)).redPow(new n$g(e8.publicExponent)).fromRed(), unblinder: o6.invm(e8.modulus) };
|
|
41751
|
-
}(o5), m4 = o5.modulus.byteLength(), d4 = (n$g.mont(o5.modulus), new n$g(e7).mul(r5.blinder).umod(o5.modulus)), t5 = d4.toRed(n$g.mont(o5.prime1)), l5 = d4.toRed(n$g.mont(o5.prime2)), f6 = o5.coefficient, p5 = o5.prime1, b4 = o5.prime2, s5 = t5.redPow(o5.exponent1), a5 = l5.redPow(o5.exponent2);
|
|
41751
|
+
})(o5), m4 = o5.modulus.byteLength(), d4 = (n$g.mont(o5.modulus), new n$g(e7).mul(r5.blinder).umod(o5.modulus)), t5 = d4.toRed(n$g.mont(o5.prime1)), l5 = d4.toRed(n$g.mont(o5.prime2)), f6 = o5.coefficient, p5 = o5.prime1, b4 = o5.prime2, s5 = t5.redPow(o5.exponent1), a5 = l5.redPow(o5.exponent2);
|
|
41752
41752
|
s5 = s5.fromRed(), a5 = a5.fromRed();
|
|
41753
41753
|
var w4 = s5.isub(a5).imul(f6).umod(p5);
|
|
41754
41754
|
return w4.imul(b4), a5.iadd(w4), new u$c(a5.imul(r5.unblinder).umod(o5.modulus).toArray(false, m4));
|
|
@@ -42413,9 +42413,9 @@ m$f(A$8, S$9), l$j = A$8, A$8.prototype._getEndomorphism = function(e7) {
|
|
|
42413
42413
|
var t5 = this._getEndoRoots(this.n);
|
|
42414
42414
|
0 === this.g.mul(t5[0]).x.cmp(this.g.x.redMul(f6)) ? d4 = t5[0] : (d4 = t5[1], g$d(0 === this.g.mul(d4).x.cmp(this.g.x.redMul(f6))));
|
|
42415
42415
|
}
|
|
42416
|
-
return { beta: f6, lambda: d4, basis: e7.basis ? e7.basis.map(function(e8) {
|
|
42416
|
+
return { beta: f6, lambda: d4, basis: e7.basis ? e7.basis.map((function(e8) {
|
|
42417
42417
|
return { a: new y$e(e8.a, 16), b: new y$e(e8.b, 16) };
|
|
42418
|
-
}) : this._getEndoBasis(d4) };
|
|
42418
|
+
})) : this._getEndoBasis(d4) };
|
|
42419
42419
|
}
|
|
42420
42420
|
}, A$8.prototype._getEndoRoots = function(e7) {
|
|
42421
42421
|
var f6 = e7 === this.p ? this.red : y$e.mont(e7), d4 = new y$e(2).toRed(f6).redInvm(), c5 = d4.redNeg(), t5 = new y$e(3).toRed(f6).redNeg().redSqrt().redMul(d4);
|
|
@@ -42939,20 +42939,20 @@ ye2.fromPublic = function(e7, f6) {
|
|
|
42939
42939
|
return f6 instanceof ye2 ? f6 : new ye2(e7, { secret: f6 });
|
|
42940
42940
|
}, ye2.prototype.secret = function() {
|
|
42941
42941
|
return this._secret;
|
|
42942
|
-
}, ve2(ye2, "pubBytes", function() {
|
|
42942
|
+
}, ve2(ye2, "pubBytes", (function() {
|
|
42943
42943
|
return this.eddsa.encodePoint(this.pub());
|
|
42944
|
-
}), ve2(ye2, "pub", function() {
|
|
42944
|
+
})), ve2(ye2, "pub", (function() {
|
|
42945
42945
|
return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv());
|
|
42946
|
-
}), ve2(ye2, "privBytes", function() {
|
|
42946
|
+
})), ve2(ye2, "privBytes", (function() {
|
|
42947
42947
|
var e7 = this.eddsa, f6 = this.hash(), d4 = e7.encodingLength - 1, c5 = f6.slice(0, e7.encodingLength);
|
|
42948
42948
|
return c5[0] &= 248, c5[d4] &= 127, c5[d4] |= 64, c5;
|
|
42949
|
-
}), ve2(ye2, "priv", function() {
|
|
42949
|
+
})), ve2(ye2, "priv", (function() {
|
|
42950
42950
|
return this.eddsa.decodeInt(this.privBytes());
|
|
42951
|
-
}), ve2(ye2, "hash", function() {
|
|
42951
|
+
})), ve2(ye2, "hash", (function() {
|
|
42952
42952
|
return this.eddsa.hash().update(this.secret()).digest();
|
|
42953
|
-
}), ve2(ye2, "messagePrefix", function() {
|
|
42953
|
+
})), ve2(ye2, "messagePrefix", (function() {
|
|
42954
42954
|
return this.hash().slice(this.eddsa.encodingLength);
|
|
42955
|
-
}), ye2.prototype.sign = function(e7) {
|
|
42955
|
+
})), ye2.prototype.sign = function(e7) {
|
|
42956
42956
|
return pe2(this._secret, "KeyPair can only verify"), this.eddsa.sign(e7, this);
|
|
42957
42957
|
}, ye2.prototype.verify = function(e7, f6) {
|
|
42958
42958
|
return this.eddsa.verify(e7, f6, this);
|
|
@@ -42970,15 +42970,15 @@ var we2 = ge2.parseBytes;
|
|
|
42970
42970
|
function Me(e7, f6) {
|
|
42971
42971
|
this.eddsa = e7, "object" != typeof f6 && (f6 = we2(f6)), Array.isArray(f6) && (f6 = { R: f6.slice(0, e7.encodingLength), S: f6.slice(e7.encodingLength) }), Ae2(f6.R && f6.S, "Signature without R or S"), e7.isPoint(f6.R) && (this._R = f6.R), f6.S instanceof Se2 && (this._S = f6.S), this._Rencoded = Array.isArray(f6.R) ? f6.R : f6.Rencoded, this._Sencoded = Array.isArray(f6.S) ? f6.S : f6.Sencoded;
|
|
42972
42972
|
}
|
|
42973
|
-
Ie(Me, "S", function() {
|
|
42973
|
+
Ie(Me, "S", (function() {
|
|
42974
42974
|
return this.eddsa.decodeInt(this.Sencoded());
|
|
42975
|
-
}), Ie(Me, "R", function() {
|
|
42975
|
+
})), Ie(Me, "R", (function() {
|
|
42976
42976
|
return this.eddsa.decodePoint(this.Rencoded());
|
|
42977
|
-
}), Ie(Me, "Rencoded", function() {
|
|
42977
|
+
})), Ie(Me, "Rencoded", (function() {
|
|
42978
42978
|
return this.eddsa.encodePoint(this.R());
|
|
42979
|
-
}), Ie(Me, "Sencoded", function() {
|
|
42979
|
+
})), Ie(Me, "Sencoded", (function() {
|
|
42980
42980
|
return this.eddsa.encodeInt(this.S());
|
|
42981
|
-
}), Me.prototype.toBytes = function() {
|
|
42981
|
+
})), Me.prototype.toBytes = function() {
|
|
42982
42982
|
return this.Rencoded().concat(this.Sencoded());
|
|
42983
42983
|
}, Me.prototype.toHex = function() {
|
|
42984
42984
|
return ge2.encode(this.toBytes(), "hex").toUpperCase();
|
|
@@ -43069,9 +43069,9 @@ c$i.Reporter = l$k, l$k.prototype.isError = function(e7) {
|
|
|
43069
43069
|
return t5.obj = e7, r5;
|
|
43070
43070
|
}, l$k.prototype.error = function(e7) {
|
|
43071
43071
|
var t5, r5 = (this || u$j)._reporterState, n5 = e7 instanceof h$g;
|
|
43072
|
-
if (t5 = n5 ? e7 : new h$g(r5.path.map(function(e8) {
|
|
43072
|
+
if (t5 = n5 ? e7 : new h$g(r5.path.map((function(e8) {
|
|
43073
43073
|
return "[" + JSON.stringify(e8) + "]";
|
|
43074
|
-
}).join(""), e7.message || e7, e7.stack), !r5.options.partial) throw t5;
|
|
43074
|
+
})).join(""), e7.message || e7, e7.stack), !r5.options.partial) throw t5;
|
|
43075
43075
|
return n5 || r5.errors.push(t5), t5;
|
|
43076
43076
|
}, l$k.prototype.wrapResult = function(e7) {
|
|
43077
43077
|
var t5 = (this || u$j)._reporterState;
|
|
@@ -43096,9 +43096,9 @@ function y$f() {
|
|
|
43096
43096
|
(this || g$e).base = e8, (this || g$e).offset = 0, (this || g$e).length = e8.length;
|
|
43097
43097
|
}
|
|
43098
43098
|
function s5(e8, t5) {
|
|
43099
|
-
if (Array.isArray(e8)) (this || g$e).length = 0, (this || g$e).value = e8.map(function(e9) {
|
|
43099
|
+
if (Array.isArray(e8)) (this || g$e).length = 0, (this || g$e).value = e8.map((function(e9) {
|
|
43100
43100
|
return e9 instanceof s5 || (e9 = new s5(e9, t5)), (this || g$e).length += e9.length, e9;
|
|
43101
|
-
}, this || g$e);
|
|
43101
|
+
}), this || g$e);
|
|
43102
43102
|
else if ("number" == typeof e8) {
|
|
43103
43103
|
if (!(0 <= e8 && e8 <= 255)) return t5.error("non-byte EncoderBuffer value");
|
|
43104
43104
|
(this || g$e).value = e8, (this || g$e).length = 1;
|
|
@@ -43124,9 +43124,9 @@ function y$f() {
|
|
|
43124
43124
|
}, o5.prototype.raw = function(e8) {
|
|
43125
43125
|
return (this || g$e).base.slice(e8 ? e8.offset : (this || g$e).offset, (this || g$e).length);
|
|
43126
43126
|
}, p$k.EncoderBuffer = s5, s5.prototype.join = function(e8, t5) {
|
|
43127
|
-
return e8 || (e8 = new i5((this || g$e).length)), t5 || (t5 = 0), 0 === (this || g$e).length || (Array.isArray((this || g$e).value) ? (this || g$e).value.forEach(function(r6) {
|
|
43127
|
+
return e8 || (e8 = new i5((this || g$e).length)), t5 || (t5 = 0), 0 === (this || g$e).length || (Array.isArray((this || g$e).value) ? (this || g$e).value.forEach((function(r6) {
|
|
43128
43128
|
r6.join(e8, t5), t5 += r6.length;
|
|
43129
|
-
}) : ("number" == typeof (this || g$e).value ? e8[t5] = (this || g$e).value : "string" == typeof (this || g$e).value ? e8.write((this || g$e).value, t5) : i5.isBuffer((this || g$e).value) && (this || g$e).value.copy(e8, t5), t5 += (this || g$e).length)), e8;
|
|
43129
|
+
})) : ("number" == typeof (this || g$e).value ? e8[t5] = (this || g$e).value : "string" == typeof (this || g$e).value ? e8.write((this || g$e).value, t5) : i5.isBuffer((this || g$e).value) && (this || g$e).value.copy(e8, t5), t5 += (this || g$e).length)), e8;
|
|
43130
43130
|
}, p$k;
|
|
43131
43131
|
}
|
|
43132
43132
|
var _$e = {};
|
|
@@ -43138,7 +43138,7 @@ function E$9() {
|
|
|
43138
43138
|
if (S$a) return m$g;
|
|
43139
43139
|
S$a = true;
|
|
43140
43140
|
var e7 = m$g;
|
|
43141
|
-
return e7.Reporter = c$i.Reporter, e7.DecoderBuffer = y$f().DecoderBuffer, e7.EncoderBuffer = y$f().EncoderBuffer, e7.Node = function() {
|
|
43141
|
+
return e7.Reporter = c$i.Reporter, e7.DecoderBuffer = y$f().DecoderBuffer, e7.EncoderBuffer = y$f().EncoderBuffer, e7.Node = (function() {
|
|
43142
43142
|
if (v$f) return _$e;
|
|
43143
43143
|
v$f = true;
|
|
43144
43144
|
var e8 = E$9().Reporter, t5 = E$9().EncoderBuffer, r5 = E$9().DecoderBuffer, n5 = o$7, o5 = ["seq", "seqof", "set", "setof", "objid", "bool", "gentime", "utctime", "null_", "enum", "int", "objDesc", "bitstr", "bmpstr", "charstr", "genstr", "graphstr", "ia5str", "iso646str", "numstr", "octstr", "printstr", "t61str", "unistr", "utf8str", "videostr"], s5 = ["key", "obj", "use", "optional", "explicit", "implicit", "def", "choice", "any", "contains"].concat(o5);
|
|
@@ -43150,52 +43150,52 @@ function E$9() {
|
|
|
43150
43150
|
var u5 = ["enc", "parent", "children", "tag", "args", "reverseArgs", "choice", "optional", "any", "obj", "use", "alteredUse", "key", "default", "explicit", "implicit", "contains"];
|
|
43151
43151
|
return a5.prototype.clone = function() {
|
|
43152
43152
|
var e9 = (this || b$c)._baseState, t6 = {};
|
|
43153
|
-
u5.forEach(function(r7) {
|
|
43153
|
+
u5.forEach((function(r7) {
|
|
43154
43154
|
t6[r7] = e9[r7];
|
|
43155
|
-
});
|
|
43155
|
+
}));
|
|
43156
43156
|
var r6 = new (this || b$c).constructor(t6.parent);
|
|
43157
43157
|
return r6._baseState = t6, r6;
|
|
43158
43158
|
}, a5.prototype._wrap = function() {
|
|
43159
43159
|
var e9 = (this || b$c)._baseState;
|
|
43160
|
-
s5.forEach(function(t6) {
|
|
43160
|
+
s5.forEach((function(t6) {
|
|
43161
43161
|
(this || b$c)[t6] = function() {
|
|
43162
43162
|
var r6 = new (this || b$c).constructor(this || b$c);
|
|
43163
43163
|
return e9.children.push(r6), r6[t6].apply(r6, arguments);
|
|
43164
43164
|
};
|
|
43165
|
-
}, this || b$c);
|
|
43165
|
+
}), this || b$c);
|
|
43166
43166
|
}, a5.prototype._init = function(e9) {
|
|
43167
43167
|
var t6 = (this || b$c)._baseState;
|
|
43168
|
-
n5(null === t6.parent), e9.call(this || b$c), t6.children = t6.children.filter(function(e10) {
|
|
43168
|
+
n5(null === t6.parent), e9.call(this || b$c), t6.children = t6.children.filter((function(e10) {
|
|
43169
43169
|
return e10._baseState.parent === (this || b$c);
|
|
43170
|
-
}, this || b$c), n5.equal(t6.children.length, 1, "Root node can have only one child");
|
|
43170
|
+
}), this || b$c), n5.equal(t6.children.length, 1, "Root node can have only one child");
|
|
43171
43171
|
}, a5.prototype._useArgs = function(e9) {
|
|
43172
|
-
var t6 = (this || b$c)._baseState, r6 = e9.filter(function(e10) {
|
|
43172
|
+
var t6 = (this || b$c)._baseState, r6 = e9.filter((function(e10) {
|
|
43173
43173
|
return e10 instanceof (this || b$c).constructor;
|
|
43174
|
-
}, this || b$c);
|
|
43175
|
-
e9 = e9.filter(function(e10) {
|
|
43174
|
+
}), this || b$c);
|
|
43175
|
+
e9 = e9.filter((function(e10) {
|
|
43176
43176
|
return !(e10 instanceof (this || b$c).constructor);
|
|
43177
|
-
}, this || b$c), 0 !== r6.length && (n5(null === t6.children), t6.children = r6, r6.forEach(function(e10) {
|
|
43177
|
+
}), this || b$c), 0 !== r6.length && (n5(null === t6.children), t6.children = r6, r6.forEach((function(e10) {
|
|
43178
43178
|
e10._baseState.parent = this || b$c;
|
|
43179
|
-
}, this || b$c)), 0 !== e9.length && (n5(null === t6.args), t6.args = e9, t6.reverseArgs = e9.map(function(e10) {
|
|
43179
|
+
}), this || b$c)), 0 !== e9.length && (n5(null === t6.args), t6.args = e9, t6.reverseArgs = e9.map((function(e10) {
|
|
43180
43180
|
if ("object" != typeof e10 || e10.constructor !== Object) return e10;
|
|
43181
43181
|
var t7 = {};
|
|
43182
|
-
return Object.keys(e10).forEach(function(r7) {
|
|
43182
|
+
return Object.keys(e10).forEach((function(r7) {
|
|
43183
43183
|
r7 == (0 | r7) && (r7 |= 0);
|
|
43184
43184
|
var n6 = e10[r7];
|
|
43185
43185
|
t7[n6] = r7;
|
|
43186
|
-
}), t7;
|
|
43187
|
-
}));
|
|
43188
|
-
}, ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"].forEach(function(e9) {
|
|
43186
|
+
})), t7;
|
|
43187
|
+
})));
|
|
43188
|
+
}, ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"].forEach((function(e9) {
|
|
43189
43189
|
a5.prototype[e9] = function() {
|
|
43190
43190
|
var t6 = (this || b$c)._baseState;
|
|
43191
43191
|
throw new Error(e9 + " not implemented for encoding: " + t6.enc);
|
|
43192
43192
|
};
|
|
43193
|
-
}), o5.forEach(function(e9) {
|
|
43193
|
+
})), o5.forEach((function(e9) {
|
|
43194
43194
|
a5.prototype[e9] = function() {
|
|
43195
43195
|
var t6 = (this || b$c)._baseState, r6 = Array.prototype.slice.call(arguments);
|
|
43196
43196
|
return n5(null === t6.tag), t6.tag = e9, this._useArgs(r6), this || b$c;
|
|
43197
43197
|
};
|
|
43198
|
-
}), a5.prototype.use = function(e9) {
|
|
43198
|
+
})), a5.prototype.use = function(e9) {
|
|
43199
43199
|
n5(e9);
|
|
43200
43200
|
var t6 = (this || b$c)._baseState;
|
|
43201
43201
|
return n5(null === t6.use), t6.use = e9, this || b$c;
|
|
@@ -43220,9 +43220,9 @@ function E$9() {
|
|
|
43220
43220
|
return (this || b$c)._baseState.any = true, this || b$c;
|
|
43221
43221
|
}, a5.prototype.choice = function(e9) {
|
|
43222
43222
|
var t6 = (this || b$c)._baseState;
|
|
43223
|
-
return n5(null === t6.choice), t6.choice = e9, this._useArgs(Object.keys(e9).map(function(t7) {
|
|
43223
|
+
return n5(null === t6.choice), t6.choice = e9, this._useArgs(Object.keys(e9).map((function(t7) {
|
|
43224
43224
|
return e9[t7];
|
|
43225
|
-
})), this || b$c;
|
|
43225
|
+
}))), this || b$c;
|
|
43226
43226
|
}, a5.prototype.contains = function(e9) {
|
|
43227
43227
|
var t6 = (this || b$c)._baseState;
|
|
43228
43228
|
return n5(null === t6.use), t6.contains = e9, this || b$c;
|
|
@@ -43258,9 +43258,9 @@ function E$9() {
|
|
|
43258
43258
|
n6.any ? o6 = e9.raw(c5) : e9 = h5;
|
|
43259
43259
|
}
|
|
43260
43260
|
if (t6 && t6.track && null !== n6.tag && t6.track(e9.path(), l5, e9.length, "tagged"), t6 && t6.track && null !== n6.tag && t6.track(e9.path(), e9.offset, e9.length, "content"), o6 = n6.any ? o6 : null === n6.choice ? this._decodeGeneric(n6.tag, e9, t6) : this._decodeChoice(e9, t6), e9.isError(o6)) return o6;
|
|
43261
|
-
if (n6.any || null !== n6.choice || null === n6.children || n6.children.forEach(function(r6) {
|
|
43261
|
+
if (n6.any || null !== n6.choice || null === n6.children || n6.children.forEach((function(r6) {
|
|
43262
43262
|
r6._decode(e9, t6);
|
|
43263
|
-
}), n6.contains && ("octstr" === n6.tag || "bitstr" === n6.tag)) {
|
|
43263
|
+
})), n6.contains && ("octstr" === n6.tag || "bitstr" === n6.tag)) {
|
|
43264
43264
|
var p5 = new r5(o6);
|
|
43265
43265
|
o6 = this._getUse(n6.contains, e9._reporterState.obj)._decode(p5, t6);
|
|
43266
43266
|
}
|
|
@@ -43274,7 +43274,7 @@ function E$9() {
|
|
|
43274
43274
|
return r6.useDecoder = this._use(e9, t6), n5(null === r6.useDecoder._baseState.parent), r6.useDecoder = r6.useDecoder._baseState.children[0], r6.implicit !== r6.useDecoder._baseState.implicit && (r6.useDecoder = r6.useDecoder.clone(), r6.useDecoder._baseState.implicit = r6.implicit), r6.useDecoder;
|
|
43275
43275
|
}, a5.prototype._decodeChoice = function(e9, t6) {
|
|
43276
43276
|
var r6 = (this || b$c)._baseState, n6 = null, i5 = false;
|
|
43277
|
-
return Object.keys(r6.choice).some(function(o6) {
|
|
43277
|
+
return Object.keys(r6.choice).some((function(o6) {
|
|
43278
43278
|
var s6 = e9.save(), a6 = r6.choice[o6];
|
|
43279
43279
|
try {
|
|
43280
43280
|
var u6 = a6._decode(e9, t6);
|
|
@@ -43284,7 +43284,7 @@ function E$9() {
|
|
|
43284
43284
|
return e9.restore(s6), false;
|
|
43285
43285
|
}
|
|
43286
43286
|
return true;
|
|
43287
|
-
}, this || b$c), i5 ? n6 : e9.error("Choice not matched");
|
|
43287
|
+
}), this || b$c), i5 ? n6 : e9.error("Choice not matched");
|
|
43288
43288
|
}, a5.prototype._createEncoderBuffer = function(e9) {
|
|
43289
43289
|
return new t5(e9, (this || b$c).reporter);
|
|
43290
43290
|
}, a5.prototype._encode = function(e9, t6, r6) {
|
|
@@ -43305,24 +43305,24 @@ function E$9() {
|
|
|
43305
43305
|
if (i5.any) o6 = this._createEncoderBuffer(t6);
|
|
43306
43306
|
else if (i5.choice) o6 = this._encodeChoice(t6, r6);
|
|
43307
43307
|
else if (i5.contains) s6 = this._getUse(i5.contains, n6)._encode(t6, r6), a6 = true;
|
|
43308
|
-
else if (i5.children) s6 = i5.children.map(function(e9) {
|
|
43308
|
+
else if (i5.children) s6 = i5.children.map((function(e9) {
|
|
43309
43309
|
if ("null_" === e9._baseState.tag) return e9._encode(null, r6, t6);
|
|
43310
43310
|
if (null === e9._baseState.key) return r6.error("Child should have a key");
|
|
43311
43311
|
var n7 = r6.enterKey(e9._baseState.key);
|
|
43312
43312
|
if ("object" != typeof t6) return r6.error("Child expected, but input is not object");
|
|
43313
43313
|
var i6 = e9._encode(t6[e9._baseState.key], r6, t6);
|
|
43314
43314
|
return r6.leaveKey(n7), i6;
|
|
43315
|
-
}, this || b$c).filter(function(e9) {
|
|
43315
|
+
}), this || b$c).filter((function(e9) {
|
|
43316
43316
|
return e9;
|
|
43317
|
-
}), s6 = this._createEncoderBuffer(s6);
|
|
43317
|
+
})), s6 = this._createEncoderBuffer(s6);
|
|
43318
43318
|
else if ("seqof" === i5.tag || "setof" === i5.tag) {
|
|
43319
43319
|
if (!i5.args || 1 !== i5.args.length) return r6.error("Too many args for : " + i5.tag);
|
|
43320
43320
|
if (!Array.isArray(t6)) return r6.error("seqof/setof, but data is not Array");
|
|
43321
43321
|
var u6 = this.clone();
|
|
43322
|
-
u6._baseState.implicit = null, s6 = this._createEncoderBuffer(t6.map(function(e9) {
|
|
43322
|
+
u6._baseState.implicit = null, s6 = this._createEncoderBuffer(t6.map((function(e9) {
|
|
43323
43323
|
var n7 = (this || b$c)._baseState;
|
|
43324
43324
|
return this._getUse(n7.args[0], t6)._encode(e9, r6);
|
|
43325
|
-
}, u6));
|
|
43325
|
+
}), u6));
|
|
43326
43326
|
} else null !== i5.use ? o6 = this._getUse(i5.use, n6)._encode(t6, r6) : (s6 = this._encodePrimitive(i5.tag, t6), a6 = true);
|
|
43327
43327
|
if (!i5.any && null === i5.choice) {
|
|
43328
43328
|
var c5 = null !== i5.implicit ? i5.implicit : i5.tag, f6 = null === i5.implicit ? "universal" : "context";
|
|
@@ -43348,7 +43348,7 @@ function E$9() {
|
|
|
43348
43348
|
}, a5.prototype._isPrintstr = function(e9) {
|
|
43349
43349
|
return /^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e9);
|
|
43350
43350
|
}, _$e;
|
|
43351
|
-
}(), m$g;
|
|
43351
|
+
})(), m$g;
|
|
43352
43352
|
}
|
|
43353
43353
|
var j$6 = {};
|
|
43354
43354
|
var w$f = false;
|
|
@@ -43360,17 +43360,17 @@ function T$6() {
|
|
|
43360
43360
|
var e7 = B$9;
|
|
43361
43361
|
return e7._reverse = function(e8) {
|
|
43362
43362
|
var t5 = {};
|
|
43363
|
-
return Object.keys(e8).forEach(function(r5) {
|
|
43363
|
+
return Object.keys(e8).forEach((function(r5) {
|
|
43364
43364
|
(0 | r5) == r5 && (r5 |= 0);
|
|
43365
43365
|
var n5 = e8[r5];
|
|
43366
43366
|
t5[n5] = r5;
|
|
43367
|
-
}), t5;
|
|
43368
|
-
}, e7.der = function() {
|
|
43367
|
+
})), t5;
|
|
43368
|
+
}, e7.der = (function() {
|
|
43369
43369
|
if (w$f) return j$6;
|
|
43370
43370
|
w$f = true;
|
|
43371
43371
|
var e8 = T$6();
|
|
43372
43372
|
return j$6.tagClass = { 0: "universal", 1: "application", 2: "context", 3: "private" }, j$6.tagClassByName = e8._reverse(j$6.tagClass), j$6.tag = { 0: "end", 1: "bool", 2: "int", 3: "bitstr", 4: "octstr", 5: "null_", 6: "objid", 7: "objDesc", 8: "external", 9: "real", 10: "enum", 11: "embed", 12: "utf8str", 13: "relativeOid", 16: "seq", 17: "set", 18: "numstr", 19: "printstr", 20: "t61str", 21: "videostr", 22: "ia5str", 23: "utctime", 24: "gentime", 25: "graphstr", 26: "iso646str", 27: "genstr", 28: "unistr", 29: "charstr", 30: "bmpstr" }, j$6.tagByName = e8._reverse(j$6.tag), j$6;
|
|
43373
|
-
}(), B$9;
|
|
43373
|
+
})(), B$9;
|
|
43374
43374
|
}
|
|
43375
43375
|
var D$5 = {};
|
|
43376
43376
|
var U$7 = false;
|
|
@@ -43511,7 +43511,7 @@ function P$5() {
|
|
|
43511
43511
|
if (q$5) return I$9;
|
|
43512
43512
|
q$5 = true;
|
|
43513
43513
|
var e7 = I$9;
|
|
43514
|
-
return e7.der = C$6(), e7.pem = function() {
|
|
43514
|
+
return e7.der = C$6(), e7.pem = (function() {
|
|
43515
43515
|
if (A$9) return O$6;
|
|
43516
43516
|
A$9 = true;
|
|
43517
43517
|
var e8 = t$2, r5 = e$1$1.Buffer, i5 = C$6();
|
|
@@ -43537,7 +43537,7 @@ function P$5() {
|
|
|
43537
43537
|
var h5 = new r5(l5, "base64");
|
|
43538
43538
|
return i5.prototype.decode.call(this || x$7, h5, t5);
|
|
43539
43539
|
}, O$6;
|
|
43540
|
-
}(), I$9;
|
|
43540
|
+
})(), I$9;
|
|
43541
43541
|
}
|
|
43542
43542
|
var F$6 = {};
|
|
43543
43543
|
var K$5 = false;
|
|
@@ -43558,7 +43558,7 @@ function $$2() {
|
|
|
43558
43558
|
return F$6 = a5, a5.prototype.encode = function(e8, t5) {
|
|
43559
43559
|
return (this || R$4).tree._encode(e8, t5).join();
|
|
43560
43560
|
}, e7(u5, o5.Node), u5.prototype._encodeComposite = function(e8, t5, n5, i6) {
|
|
43561
|
-
var o6, a6 = function(e9, t6, r6, n6) {
|
|
43561
|
+
var o6, a6 = (function(e9, t6, r6, n6) {
|
|
43562
43562
|
var i7;
|
|
43563
43563
|
"seqof" === e9 ? e9 = "seq" : "setof" === e9 && (e9 = "set");
|
|
43564
43564
|
if (s5.tagByName.hasOwnProperty(e9)) i7 = s5.tagByName[e9];
|
|
@@ -43569,7 +43569,7 @@ function $$2() {
|
|
|
43569
43569
|
if (i7 >= 31) return n6.error("Multi-octet tag encoding unsupported");
|
|
43570
43570
|
t6 || (i7 |= 32);
|
|
43571
43571
|
return i7 |= s5.tagClassByName[r6 || "universal"] << 6;
|
|
43572
|
-
}(e8, t5, n5, (this || R$4).reporter);
|
|
43572
|
+
})(e8, t5, n5, (this || R$4).reporter);
|
|
43573
43573
|
if (i6.length < 128) return (o6 = new r5(2))[0] = a6, o6[1] = i6.length, this._createEncoderBuffer([o6, i6]);
|
|
43574
43574
|
for (var u6 = 1, c6 = i6.length; c6 >= 256; c6 >>= 8) u6++;
|
|
43575
43575
|
(o6 = new r5(2 + u6))[0] = a6, o6[1] = 128 | u6;
|
|
@@ -43658,7 +43658,7 @@ function Z$2() {
|
|
|
43658
43658
|
if (V$4) return J$4;
|
|
43659
43659
|
V$4 = true;
|
|
43660
43660
|
var e7 = J$4;
|
|
43661
|
-
return e7.der = $$2(), e7.pem = function() {
|
|
43661
|
+
return e7.der = $$2(), e7.pem = (function() {
|
|
43662
43662
|
if (L$5) return G$4;
|
|
43663
43663
|
L$5 = true;
|
|
43664
43664
|
var e8 = t$2, r5 = $$2();
|
|
@@ -43669,7 +43669,7 @@ function Z$2() {
|
|
|
43669
43669
|
for (var n6 = r5.prototype.encode.call(this || M$7, e9).toString("base64"), i5 = ["-----BEGIN " + t5.label + "-----"], o5 = 0; o5 < n6.length; o5 += 64) i5.push(n6.slice(o5, o5 + 64));
|
|
43670
43670
|
return i5.push("-----END " + t5.label + "-----"), i5.join("\n");
|
|
43671
43671
|
}, G$4;
|
|
43672
|
-
}(), J$4;
|
|
43672
|
+
})(), J$4;
|
|
43673
43673
|
}
|
|
43674
43674
|
var z$7 = {};
|
|
43675
43675
|
var H$6 = false;
|
|
@@ -43677,7 +43677,7 @@ function Y$3() {
|
|
|
43677
43677
|
if (H$6) return z$7;
|
|
43678
43678
|
H$6 = true;
|
|
43679
43679
|
var n5 = z$7;
|
|
43680
|
-
return n5.bignum = n$c, n5.define = function() {
|
|
43680
|
+
return n5.bignum = n$c, n5.define = (function() {
|
|
43681
43681
|
if (s$j) return o$n;
|
|
43682
43682
|
s$j = true;
|
|
43683
43683
|
var e7 = Y$3(), n6 = t$2;
|
|
@@ -43707,85 +43707,85 @@ function Y$3() {
|
|
|
43707
43707
|
}, i5.prototype.encode = function(e8, t5, r5) {
|
|
43708
43708
|
return this._getEncoder(t5).encode(e8, r5);
|
|
43709
43709
|
}, o$n;
|
|
43710
|
-
}().define, n5.base = E$9(), n5.constants = T$6(), n5.decoders = P$5(), n5.encoders = Z$2(), z$7;
|
|
43710
|
+
})().define, n5.base = E$9(), n5.constants = T$6(), n5.decoders = P$5(), n5.encoders = Z$2(), z$7;
|
|
43711
43711
|
}
|
|
43712
43712
|
var Q$3 = Y$3();
|
|
43713
43713
|
var e$f = Q$3;
|
|
43714
|
-
var t$a = e$f.define("Time", function() {
|
|
43714
|
+
var t$a = e$f.define("Time", (function() {
|
|
43715
43715
|
this.choice({ utcTime: this.utctime(), generalTime: this.gentime() });
|
|
43716
|
-
});
|
|
43717
|
-
var s$k = e$f.define("AttributeTypeValue", function() {
|
|
43716
|
+
}));
|
|
43717
|
+
var s$k = e$f.define("AttributeTypeValue", (function() {
|
|
43718
43718
|
this.seq().obj(this.key("type").objid(), this.key("value").any());
|
|
43719
|
-
});
|
|
43720
|
-
var n$n = e$f.define("AlgorithmIdentifier", function() {
|
|
43719
|
+
}));
|
|
43720
|
+
var n$n = e$f.define("AlgorithmIdentifier", (function() {
|
|
43721
43721
|
this.seq().obj(this.key("algorithm").objid(), this.key("parameters").optional(), this.key("curve").objid().optional());
|
|
43722
|
-
});
|
|
43723
|
-
var o$o = e$f.define("SubjectPublicKeyInfo", function() {
|
|
43722
|
+
}));
|
|
43723
|
+
var o$o = e$f.define("SubjectPublicKeyInfo", (function() {
|
|
43724
43724
|
this.seq().obj(this.key("algorithm").use(n$n), this.key("subjectPublicKey").bitstr());
|
|
43725
|
-
});
|
|
43726
|
-
var h$h = e$f.define("RelativeDistinguishedName", function() {
|
|
43725
|
+
}));
|
|
43726
|
+
var h$h = e$f.define("RelativeDistinguishedName", (function() {
|
|
43727
43727
|
this.setof(s$k);
|
|
43728
|
-
});
|
|
43729
|
-
var y$g = e$f.define("RDNSequence", function() {
|
|
43728
|
+
}));
|
|
43729
|
+
var y$g = e$f.define("RDNSequence", (function() {
|
|
43730
43730
|
this.seqof(h$h);
|
|
43731
|
-
});
|
|
43732
|
-
var r$g = e$f.define("Name", function() {
|
|
43731
|
+
}));
|
|
43732
|
+
var r$g = e$f.define("Name", (function() {
|
|
43733
43733
|
this.choice({ rdnSequence: this.use(y$g) });
|
|
43734
|
-
});
|
|
43735
|
-
var u$k = e$f.define("Validity", function() {
|
|
43734
|
+
}));
|
|
43735
|
+
var u$k = e$f.define("Validity", (function() {
|
|
43736
43736
|
this.seq().obj(this.key("notBefore").use(t$a), this.key("notAfter").use(t$a));
|
|
43737
|
-
});
|
|
43738
|
-
var a$n = e$f.define("Extension", function() {
|
|
43737
|
+
}));
|
|
43738
|
+
var a$n = e$f.define("Extension", (function() {
|
|
43739
43739
|
this.seq().obj(this.key("extnID").objid(), this.key("critical").bool().def(false), this.key("extnValue").octstr());
|
|
43740
|
-
});
|
|
43741
|
-
var c$j = e$f.define("TBSCertificate", function() {
|
|
43740
|
+
}));
|
|
43741
|
+
var c$j = e$f.define("TBSCertificate", (function() {
|
|
43742
43742
|
this.seq().obj(this.key("version").explicit(0).int().optional(), this.key("serialNumber").int(), this.key("signature").use(n$n), this.key("issuer").use(r$g), this.key("validity").use(u$k), this.key("subject").use(r$g), this.key("subjectPublicKeyInfo").use(o$o), this.key("issuerUniqueID").implicit(1).bitstr().optional(), this.key("subjectUniqueID").implicit(2).bitstr().optional(), this.key("extensions").explicit(3).seqof(a$n).optional());
|
|
43743
|
-
});
|
|
43744
|
-
var k$d = e$f.define("X509Certificate", function() {
|
|
43743
|
+
}));
|
|
43744
|
+
var k$d = e$f.define("X509Certificate", (function() {
|
|
43745
43745
|
this.seq().obj(this.key("tbsCertificate").use(c$j), this.key("signatureAlgorithm").use(n$n), this.key("signatureValue").bitstr());
|
|
43746
|
-
});
|
|
43746
|
+
}));
|
|
43747
43747
|
var f$o = {};
|
|
43748
43748
|
var b$d = Q$3;
|
|
43749
43749
|
f$o.certificate = k$d;
|
|
43750
|
-
var l$l = b$d.define("RSAPrivateKey", function() {
|
|
43750
|
+
var l$l = b$d.define("RSAPrivateKey", (function() {
|
|
43751
43751
|
this.seq().obj(this.key("version").int(), this.key("modulus").int(), this.key("publicExponent").int(), this.key("privateExponent").int(), this.key("prime1").int(), this.key("prime2").int(), this.key("exponent1").int(), this.key("exponent2").int(), this.key("coefficient").int());
|
|
43752
|
-
});
|
|
43752
|
+
}));
|
|
43753
43753
|
f$o.RSAPrivateKey = l$l;
|
|
43754
|
-
var d$j = b$d.define("RSAPublicKey", function() {
|
|
43754
|
+
var d$j = b$d.define("RSAPublicKey", (function() {
|
|
43755
43755
|
this.seq().obj(this.key("modulus").int(), this.key("publicExponent").int());
|
|
43756
|
-
});
|
|
43756
|
+
}));
|
|
43757
43757
|
f$o.RSAPublicKey = d$j;
|
|
43758
|
-
var p$l = b$d.define("SubjectPublicKeyInfo", function() {
|
|
43758
|
+
var p$l = b$d.define("SubjectPublicKeyInfo", (function() {
|
|
43759
43759
|
this.seq().obj(this.key("algorithm").use(j$7), this.key("subjectPublicKey").bitstr());
|
|
43760
|
-
});
|
|
43760
|
+
}));
|
|
43761
43761
|
f$o.PublicKey = p$l;
|
|
43762
|
-
var j$7 = b$d.define("AlgorithmIdentifier", function() {
|
|
43762
|
+
var j$7 = b$d.define("AlgorithmIdentifier", (function() {
|
|
43763
43763
|
this.seq().obj(this.key("algorithm").objid(), this.key("none").null_().optional(), this.key("curve").objid().optional(), this.key("params").seq().obj(this.key("p").int(), this.key("q").int(), this.key("g").int()).optional());
|
|
43764
|
-
});
|
|
43765
|
-
var v$g = b$d.define("PrivateKeyInfo", function() {
|
|
43764
|
+
}));
|
|
43765
|
+
var v$g = b$d.define("PrivateKeyInfo", (function() {
|
|
43766
43766
|
this.seq().obj(this.key("version").int(), this.key("algorithm").use(j$7), this.key("subjectPrivateKey").octstr());
|
|
43767
|
-
});
|
|
43767
|
+
}));
|
|
43768
43768
|
f$o.PrivateKey = v$g;
|
|
43769
|
-
var m$h = b$d.define("EncryptedPrivateKeyInfo", function() {
|
|
43769
|
+
var m$h = b$d.define("EncryptedPrivateKeyInfo", (function() {
|
|
43770
43770
|
this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(), this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(), this.key("kdeparams").seq().obj(this.key("salt").octstr(), this.key("iters").int())), this.key("cipher").seq().obj(this.key("algo").objid(), this.key("iv").octstr()))), this.key("subjectPrivateKey").octstr());
|
|
43771
|
-
});
|
|
43771
|
+
}));
|
|
43772
43772
|
f$o.EncryptedPrivateKey = m$h;
|
|
43773
|
-
var q$6 = b$d.define("DSAPrivateKey", function() {
|
|
43773
|
+
var q$6 = b$d.define("DSAPrivateKey", (function() {
|
|
43774
43774
|
this.seq().obj(this.key("version").int(), this.key("p").int(), this.key("q").int(), this.key("g").int(), this.key("pub_key").int(), this.key("priv_key").int());
|
|
43775
|
-
});
|
|
43776
|
-
f$o.DSAPrivateKey = q$6, f$o.DSAparam = b$d.define("DSAparam", function() {
|
|
43775
|
+
}));
|
|
43776
|
+
f$o.DSAPrivateKey = q$6, f$o.DSAparam = b$d.define("DSAparam", (function() {
|
|
43777
43777
|
this.int();
|
|
43778
|
-
});
|
|
43779
|
-
var K$6 = b$d.define("ECPrivateKey", function() {
|
|
43778
|
+
}));
|
|
43779
|
+
var K$6 = b$d.define("ECPrivateKey", (function() {
|
|
43780
43780
|
this.seq().obj(this.key("version").int(), this.key("privateKey").octstr(), this.key("parameters").optional().explicit(0).use(P$6), this.key("publicKey").optional().explicit(1).bitstr());
|
|
43781
|
-
});
|
|
43781
|
+
}));
|
|
43782
43782
|
f$o.ECPrivateKey = K$6;
|
|
43783
|
-
var P$6 = b$d.define("ECParameters", function() {
|
|
43783
|
+
var P$6 = b$d.define("ECParameters", (function() {
|
|
43784
43784
|
this.choice({ namedCurve: this.objid() });
|
|
43785
|
-
});
|
|
43786
|
-
f$o.signature = b$d.define("signature", function() {
|
|
43785
|
+
}));
|
|
43786
|
+
f$o.signature = b$d.define("signature", (function() {
|
|
43787
43787
|
this.seq().obj(this.key("r").int(), this.key("s").int());
|
|
43788
|
-
});
|
|
43788
|
+
}));
|
|
43789
43789
|
var s$l;
|
|
43790
43790
|
var i$a = /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m;
|
|
43791
43791
|
var o$p = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m;
|
|
@@ -43828,10 +43828,10 @@ function l$m(e7) {
|
|
|
43828
43828
|
throw new Error("unknown key id " + a5);
|
|
43829
43829
|
}
|
|
43830
43830
|
case "ENCRYPTED PRIVATE KEY":
|
|
43831
|
-
i5 = function(e8, r6) {
|
|
43831
|
+
i5 = (function(e8, r6) {
|
|
43832
43832
|
var a6 = e8.algorithm.decrypt.kde.kdeparams.salt, t6 = parseInt(e8.algorithm.decrypt.kde.kdeparams.iters.toString(), 10), c6 = m$i[e8.algorithm.decrypt.cipher.algo.join(".")], s6 = e8.algorithm.decrypt.cipher.iv, i6 = e8.subjectPrivateKey, o5 = parseInt(c6.split("-")[1], 10) / 8, d4 = E$a.pbkdf2Sync(r6, a6, t6, o5, "sha1"), n5 = b$e.createDecipheriv(c6, d4, s6), p5 = [];
|
|
43833
43833
|
return p5.push(n5.update(i6)), p5.push(n5.final()), h$i.concat(p5);
|
|
43834
|
-
}(i5 = y$h.EncryptedPrivateKey.decode(i5, "der"), r5);
|
|
43834
|
+
})(i5 = y$h.EncryptedPrivateKey.decode(i5, "der"), r5);
|
|
43835
43835
|
case "PRIVATE KEY":
|
|
43836
43836
|
switch (a5 = (t5 = y$h.PrivateKey.decode(i5, "der")).algorithm.algorithm.join(".")) {
|
|
43837
43837
|
case "1.2.840.113549.1.1.1":
|
|
@@ -43871,7 +43871,7 @@ function y$i(e7, t5, r5, n5) {
|
|
|
43871
43871
|
var a5 = new f$q(t5.byteLength() - e7.length);
|
|
43872
43872
|
a5.fill(0), e7 = f$q.concat([a5, e7]);
|
|
43873
43873
|
}
|
|
43874
|
-
var o5 = r5.length, i5 = function(e8, t6) {
|
|
43874
|
+
var o5 = r5.length, i5 = (function(e8, t6) {
|
|
43875
43875
|
e8 = (e8 = b$f(e8, t6)).mod(t6);
|
|
43876
43876
|
var r6 = new f$q(e8.toArray());
|
|
43877
43877
|
if (r6.length < t6.byteLength()) {
|
|
@@ -43879,7 +43879,7 @@ function y$i(e7, t5, r5, n5) {
|
|
|
43879
43879
|
n6.fill(0), r6 = f$q.concat([n6, r6]);
|
|
43880
43880
|
}
|
|
43881
43881
|
return r6;
|
|
43882
|
-
}(r5, t5), s5 = new f$q(o5);
|
|
43882
|
+
})(r5, t5), s5 = new f$q(o5);
|
|
43883
43883
|
s5.fill(1);
|
|
43884
43884
|
var h5 = new f$q(o5);
|
|
43885
43885
|
return h5.fill(0), h5 = c$k(n5, h5).update(s5).update(new f$q([0])).update(e7).update(i5).digest(), s5 = c$k(n5, h5).update(s5).digest(), { k: h5 = c$k(n5, h5).update(s5).update(new f$q([1])).update(e7).update(i5).digest(), v: s5 = c$k(n5, h5).update(s5).digest() };
|
|
@@ -43903,25 +43903,25 @@ function k$e(e7, t5, r5, n5) {
|
|
|
43903
43903
|
var o5 = m$j(t5);
|
|
43904
43904
|
if (o5.curve) {
|
|
43905
43905
|
if ("ecdsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong private key type");
|
|
43906
|
-
return function(e8, t6) {
|
|
43906
|
+
return (function(e8, t6) {
|
|
43907
43907
|
var r6 = v$i[t6.curve.join(".")];
|
|
43908
43908
|
if (!r6) throw new Error("unknown curve " + t6.curve.join("."));
|
|
43909
43909
|
var n6 = new w$g(r6).keyFromPrivate(t6.privateKey).sign(e8);
|
|
43910
43910
|
return new f$q(n6.toDER());
|
|
43911
|
-
}(e7, o5);
|
|
43911
|
+
})(e7, o5);
|
|
43912
43912
|
}
|
|
43913
43913
|
if ("dsa" === o5.type) {
|
|
43914
43914
|
if ("dsa" !== n5) throw new Error("wrong private key type");
|
|
43915
|
-
return function(e8, t6, r6) {
|
|
43915
|
+
return (function(e8, t6, r6) {
|
|
43916
43916
|
var n6, a6 = t6.params.priv_key, o6 = t6.params.p, i6 = t6.params.q, s6 = t6.params.g, h6 = new l$n(0), u5 = b$f(e8, i6).mod(i6), p5 = false, d4 = y$i(a6, i6, e8, r6);
|
|
43917
43917
|
for (; false === p5; ) n6 = _$f(i6, d4, r6), h6 = k$e(s6, n6, o6, i6), 0 === (p5 = n6.invm(i6).imul(u5.add(a6.mul(h6))).mod(i6)).cmpn(0) && (p5 = false, h6 = new l$n(0));
|
|
43918
|
-
return function(e9, t7) {
|
|
43918
|
+
return (function(e9, t7) {
|
|
43919
43919
|
e9 = e9.toArray(), t7 = t7.toArray(), 128 & e9[0] && (e9 = [0].concat(e9));
|
|
43920
43920
|
128 & t7[0] && (t7 = [0].concat(t7));
|
|
43921
43921
|
var r7 = [48, e9.length + t7.length + 4, 2, e9.length];
|
|
43922
43922
|
return r7 = r7.concat(e9, [2, t7.length], t7), new f$q(r7);
|
|
43923
|
-
}(h6, p5);
|
|
43924
|
-
}(e7, o5, r5);
|
|
43923
|
+
})(h6, p5);
|
|
43924
|
+
})(e7, o5, r5);
|
|
43925
43925
|
}
|
|
43926
43926
|
if ("rsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong private key type");
|
|
43927
43927
|
e7 = f$q.concat([a5, e7]);
|
|
@@ -43944,21 +43944,21 @@ var K$7 = function(e7, t5, r5, n5, a5) {
|
|
|
43944
43944
|
var o5 = T$7(r5);
|
|
43945
43945
|
if ("ec" === o5.type) {
|
|
43946
43946
|
if ("ecdsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong public key type");
|
|
43947
|
-
return function(e8, t6, r6) {
|
|
43947
|
+
return (function(e8, t6, r6) {
|
|
43948
43948
|
var n6 = P$7[r6.data.algorithm.curve.join(".")];
|
|
43949
43949
|
if (!n6) throw new Error("unknown curve " + r6.data.algorithm.curve.join("."));
|
|
43950
43950
|
var a6 = new j$8(n6), o6 = r6.data.subjectPrivateKey.data;
|
|
43951
43951
|
return a6.verify(t6, e8, o6);
|
|
43952
|
-
}(e7, t5, o5);
|
|
43952
|
+
})(e7, t5, o5);
|
|
43953
43953
|
}
|
|
43954
43954
|
if ("dsa" === o5.type) {
|
|
43955
43955
|
if ("dsa" !== n5) throw new Error("wrong public key type");
|
|
43956
|
-
return function(e8, t6, r6) {
|
|
43956
|
+
return (function(e8, t6, r6) {
|
|
43957
43957
|
var n6 = r6.data.p, a6 = r6.data.q, o6 = r6.data.g, i6 = r6.data.pub_key, s6 = T$7.signature.decode(e8, "der"), h6 = s6.s, u6 = s6.r;
|
|
43958
43958
|
A$a(h6, a6), A$a(u6, a6);
|
|
43959
43959
|
var p6 = R$5.mont(n6), d5 = h6.invm(a6);
|
|
43960
43960
|
return 0 === o6.toRed(p6).redPow(new R$5(t6).mul(d5).mod(a6)).fromRed().mul(i6.toRed(p6).redPow(u6.mul(d5).mod(a6)).fromRed()).mod(n6).mod(a6).cmp(u6);
|
|
43961
|
-
}(e7, t5, o5);
|
|
43961
|
+
})(e7, t5, o5);
|
|
43962
43962
|
}
|
|
43963
43963
|
if ("rsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong public key type");
|
|
43964
43964
|
t5 = L$6.concat([a5, t5]);
|
|
@@ -43998,9 +43998,9 @@ function M$8(e7) {
|
|
|
43998
43998
|
function O$7(e7) {
|
|
43999
43999
|
return new F$7(e7);
|
|
44000
44000
|
}
|
|
44001
|
-
Object.keys(C$7).forEach(function(e7) {
|
|
44001
|
+
Object.keys(C$7).forEach((function(e7) {
|
|
44002
44002
|
C$7[e7].id = new x$8(C$7[e7].id, "hex"), C$7[e7.toLowerCase()] = C$7[e7];
|
|
44003
|
-
}), q$7(D$6, S$b.Writable), D$6.prototype._write = function(e7, t5, r5) {
|
|
44003
|
+
})), q$7(D$6, S$b.Writable), D$6.prototype._write = function(e7, t5, r5) {
|
|
44004
44004
|
(this || W$4)._hash.update(e7), r5();
|
|
44005
44005
|
}, D$6.prototype.update = function(e7, t5) {
|
|
44006
44006
|
return "string" == typeof e7 && (e7 = new x$8(e7, t5)), (this || W$4)._hash.update(e7), this || W$4;
|
|
@@ -44088,22 +44088,22 @@ var x$9 = function(r5, n5, e7) {
|
|
|
44088
44088
|
var t5;
|
|
44089
44089
|
t5 = r5.padding ? r5.padding : e7 ? 1 : 4;
|
|
44090
44090
|
var o5, a5 = s$n(r5);
|
|
44091
|
-
if (4 === t5) o5 = function(r6, n6) {
|
|
44091
|
+
if (4 === t5) o5 = (function(r6, n6) {
|
|
44092
44092
|
var e8 = r6.modulus.byteLength(), t6 = n6.length, o6 = m$k("sha1").update(B$b.alloc(0)).digest(), a6 = o6.length, i5 = 2 * a6;
|
|
44093
44093
|
if (t6 > e8 - i5 - 2) throw new Error("message too long");
|
|
44094
44094
|
var l5 = B$b.alloc(e8 - t6 - i5 - 2), f6 = e8 - a6 - 1, u5 = g$g(a6), c5 = v$j(B$b.concat([o6, l5, B$b.alloc(1, 1), n6], f6), w$h(u5, f6)), p5 = v$j(u5, w$h(c5, a6));
|
|
44095
44095
|
return new y$k(B$b.concat([B$b.alloc(1), p5, c5], e8));
|
|
44096
|
-
}(a5, n5);
|
|
44097
|
-
else if (1 === t5) o5 = function(r6, n6, e8) {
|
|
44096
|
+
})(a5, n5);
|
|
44097
|
+
else if (1 === t5) o5 = (function(r6, n6, e8) {
|
|
44098
44098
|
var t6, o6 = n6.length, a6 = r6.modulus.byteLength();
|
|
44099
44099
|
if (o6 > a6 - 11) throw new Error("message too long");
|
|
44100
|
-
t6 = e8 ? B$b.alloc(a6 - o6 - 3, 255) : function(r7) {
|
|
44100
|
+
t6 = e8 ? B$b.alloc(a6 - o6 - 3, 255) : (function(r7) {
|
|
44101
44101
|
var n7, e9 = B$b.allocUnsafe(r7), t7 = 0, o7 = g$g(2 * r7), a7 = 0;
|
|
44102
44102
|
for (; t7 < r7; ) a7 === o7.length && (o7 = g$g(2 * r7), a7 = 0), (n7 = o7[a7++]) && (e9[t7++] = n7);
|
|
44103
44103
|
return e9;
|
|
44104
|
-
}(a6 - o6 - 3);
|
|
44104
|
+
})(a6 - o6 - 3);
|
|
44105
44105
|
return new y$k(B$b.concat([B$b.from([0, e8 ? 1 : 2]), t6, B$b.alloc(1), n6], a6));
|
|
44106
|
-
}(a5, n5, e7);
|
|
44106
|
+
})(a5, n5, e7);
|
|
44107
44107
|
else {
|
|
44108
44108
|
if (3 !== t5) throw new Error("unknown padding");
|
|
44109
44109
|
if ((o5 = new y$k(n5)).cmp(a5.modulus) >= 0) throw new Error("data too long for modulus");
|
|
@@ -44125,24 +44125,24 @@ var I$a = function(r5, n5, e7) {
|
|
|
44125
44125
|
if (n5.length > i5 || new U$9(n5).cmp(a5.modulus) >= 0) throw new Error("decryption error");
|
|
44126
44126
|
o5 = e7 ? j$9(new U$9(n5), a5) : R$6(n5, a5);
|
|
44127
44127
|
var l5 = A$b.alloc(i5 - o5.length);
|
|
44128
|
-
if (o5 = A$b.concat([l5, o5], i5), 4 === t5) return function(r6, n6) {
|
|
44128
|
+
if (o5 = A$b.concat([l5, o5], i5), 4 === t5) return (function(r6, n6) {
|
|
44129
44129
|
var e8 = r6.modulus.byteLength(), t6 = S$c("sha1").update(A$b.alloc(0)).digest(), o6 = t6.length;
|
|
44130
44130
|
if (0 !== n6[0]) throw new Error("decryption error");
|
|
44131
44131
|
var a6 = n6.slice(1, o6 + 1), i6 = n6.slice(o6 + 1), l6 = D$7(a6, k$f(i6, o6)), f6 = D$7(i6, k$f(l6, e8 - o6 - 1));
|
|
44132
|
-
if (function(r7, n7) {
|
|
44132
|
+
if ((function(r7, n7) {
|
|
44133
44133
|
r7 = A$b.from(r7), n7 = A$b.from(n7);
|
|
44134
44134
|
var e9 = 0, t7 = r7.length;
|
|
44135
44135
|
r7.length !== n7.length && (e9++, t7 = Math.min(r7.length, n7.length));
|
|
44136
44136
|
var o7 = -1;
|
|
44137
44137
|
for (; ++o7 < t7; ) e9 += r7[o7] ^ n7[o7];
|
|
44138
44138
|
return e9;
|
|
44139
|
-
}(t6, f6.slice(0, o6))) throw new Error("decryption error");
|
|
44139
|
+
})(t6, f6.slice(0, o6))) throw new Error("decryption error");
|
|
44140
44140
|
var u5 = o6;
|
|
44141
44141
|
for (; 0 === f6[u5]; ) u5++;
|
|
44142
44142
|
if (1 !== f6[u5++]) throw new Error("decryption error");
|
|
44143
44143
|
return f6.slice(u5);
|
|
44144
|
-
}(a5, o5);
|
|
44145
|
-
if (1 === t5) return function(r6, n6, e8) {
|
|
44144
|
+
})(a5, o5);
|
|
44145
|
+
if (1 === t5) return (function(r6, n6, e8) {
|
|
44146
44146
|
var t6 = n6.slice(0, 2), o6 = 2, a6 = 0;
|
|
44147
44147
|
for (; 0 !== n6[o6++]; ) if (o6 >= n6.length) {
|
|
44148
44148
|
a6++;
|
|
@@ -44153,7 +44153,7 @@ var I$a = function(r5, n5, e7) {
|
|
|
44153
44153
|
i6.length < 8 && a6++;
|
|
44154
44154
|
if (a6) throw new Error("decryption error");
|
|
44155
44155
|
return n6.slice(o6);
|
|
44156
|
-
}(0, o5, e7);
|
|
44156
|
+
})(0, o5, e7);
|
|
44157
44157
|
if (3 === t5) return o5;
|
|
44158
44158
|
throw new Error("unknown padding");
|
|
44159
44159
|
};
|
|
@@ -44188,14 +44188,14 @@ function b$h(r5, e7, n5) {
|
|
|
44188
44188
|
function w$i(r5, e7, n5, o5) {
|
|
44189
44189
|
if (f$t.browser) {
|
|
44190
44190
|
var t5 = r5.buffer, i5 = new Uint8Array(t5, e7, n5);
|
|
44191
|
-
return m$l.getRandomValues(i5), o5 ? (f$t.nextTick(function() {
|
|
44191
|
+
return m$l.getRandomValues(i5), o5 ? (f$t.nextTick((function() {
|
|
44192
44192
|
o5(null, r5);
|
|
44193
|
-
}), void 0) : r5;
|
|
44193
|
+
})), void 0) : r5;
|
|
44194
44194
|
}
|
|
44195
|
-
return o5 ? (a$o(n5, function(n6, t6) {
|
|
44195
|
+
return o5 ? (a$o(n5, (function(n6, t6) {
|
|
44196
44196
|
if (n6) return o5(n6);
|
|
44197
44197
|
t6.copy(r5, e7), o5(null, r5);
|
|
44198
|
-
}), void 0) : (a$o(n5).copy(r5, e7), r5);
|
|
44198
|
+
})), void 0) : (a$o(n5).copy(r5, e7), r5);
|
|
44199
44199
|
}
|
|
44200
44200
|
m$l && m$l.getRandomValues || !f$t.browser ? (t$b.randomFill = function(r5, e7, n5, t5) {
|
|
44201
44201
|
if (!(s$o.isBuffer(r5) || r5 instanceof o$r.Uint8Array)) throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
|
|
@@ -83336,7 +83336,7 @@ function dew$18() {
|
|
|
83336
83336
|
function copyBuffer(src, target, offset) {
|
|
83337
83337
|
src.copy(target, offset);
|
|
83338
83338
|
}
|
|
83339
|
-
exports$19 = function() {
|
|
83339
|
+
exports$19 = (function() {
|
|
83340
83340
|
function BufferList() {
|
|
83341
83341
|
_classCallCheck(this, BufferList);
|
|
83342
83342
|
this.head = null;
|
|
@@ -83396,7 +83396,7 @@ function dew$18() {
|
|
|
83396
83396
|
return ret;
|
|
83397
83397
|
};
|
|
83398
83398
|
return BufferList;
|
|
83399
|
-
}();
|
|
83399
|
+
})();
|
|
83400
83400
|
if (util && util.inspect && util.inspect.custom) {
|
|
83401
83401
|
exports$19.prototype[util.inspect.custom] = function() {
|
|
83402
83402
|
var obj = util.inspect({
|
|
@@ -84552,11 +84552,11 @@ function dew$14() {
|
|
|
84552
84552
|
});
|
|
84553
84553
|
for (var i5 in stream2) {
|
|
84554
84554
|
if (this[i5] === void 0 && typeof stream2[i5] === "function") {
|
|
84555
|
-
this[i5] = /* @__PURE__ */ function(method) {
|
|
84555
|
+
this[i5] = /* @__PURE__ */ (function(method) {
|
|
84556
84556
|
return function() {
|
|
84557
84557
|
return stream2[method].apply(stream2, arguments);
|
|
84558
84558
|
};
|
|
84559
|
-
}(i5);
|
|
84559
|
+
})(i5);
|
|
84560
84560
|
}
|
|
84561
84561
|
}
|
|
84562
84562
|
for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
|
|
@@ -104146,6 +104146,11 @@ var DECIMALS = {
|
|
|
104146
104146
|
};
|
|
104147
104147
|
|
|
104148
104148
|
// src/core/services/wallet.ts
|
|
104149
|
+
var ERC20_ABI = [
|
|
104150
|
+
"function balanceOf(address owner) view returns (uint256)",
|
|
104151
|
+
"function decimals() view returns (uint8)",
|
|
104152
|
+
"function symbol() view returns (string)"
|
|
104153
|
+
];
|
|
104149
104154
|
var WalletService = class {
|
|
104150
104155
|
constructor(walletClient, rpcClient, orgHost, networkService) {
|
|
104151
104156
|
this.walletClient = walletClient;
|
|
@@ -104353,6 +104358,53 @@ var WalletService = class {
|
|
|
104353
104358
|
symbol: network?.symbol || "ETH"
|
|
104354
104359
|
};
|
|
104355
104360
|
}
|
|
104361
|
+
async getTokenBalance(tokenAddress, walletAddress, chainId) {
|
|
104362
|
+
const erc20 = new import_ethers2.Interface(ERC20_ABI);
|
|
104363
|
+
const data = erc20.encodeFunctionData("balanceOf", [walletAddress]);
|
|
104364
|
+
const rawBalance = await this.rpcClient.sendRpc({
|
|
104365
|
+
chainId,
|
|
104366
|
+
method: "eth_call" /* ETH_CALL */,
|
|
104367
|
+
params: [
|
|
104368
|
+
{
|
|
104369
|
+
to: tokenAddress,
|
|
104370
|
+
data
|
|
104371
|
+
},
|
|
104372
|
+
"latest"
|
|
104373
|
+
]
|
|
104374
|
+
});
|
|
104375
|
+
const decimalsData = erc20.encodeFunctionData("decimals", []);
|
|
104376
|
+
const decimalsRes = await this.rpcClient.sendRpc({
|
|
104377
|
+
chainId,
|
|
104378
|
+
method: "eth_call" /* ETH_CALL */,
|
|
104379
|
+
params: [
|
|
104380
|
+
{
|
|
104381
|
+
to: tokenAddress,
|
|
104382
|
+
data: decimalsData
|
|
104383
|
+
},
|
|
104384
|
+
"latest"
|
|
104385
|
+
]
|
|
104386
|
+
});
|
|
104387
|
+
const decimals = parseInt(decimalsRes.result, 16);
|
|
104388
|
+
const symbolData = erc20.encodeFunctionData("symbol", []);
|
|
104389
|
+
const symbolRes = await this.rpcClient.sendRpc({
|
|
104390
|
+
chainId,
|
|
104391
|
+
method: "eth_call" /* ETH_CALL */,
|
|
104392
|
+
params: [
|
|
104393
|
+
{
|
|
104394
|
+
to: tokenAddress,
|
|
104395
|
+
data: symbolData
|
|
104396
|
+
},
|
|
104397
|
+
"latest"
|
|
104398
|
+
]
|
|
104399
|
+
});
|
|
104400
|
+
const symbol = erc20.decodeFunctionResult("symbol", symbolRes.result)[0];
|
|
104401
|
+
return {
|
|
104402
|
+
raw: rawBalance.result,
|
|
104403
|
+
formatted: TokenAmount.format(rawBalance.result, decimals),
|
|
104404
|
+
decimals,
|
|
104405
|
+
symbol
|
|
104406
|
+
};
|
|
104407
|
+
}
|
|
104356
104408
|
async getTransactionCount(address, chainId) {
|
|
104357
104409
|
const response = await this.rpcClient.sendRpc({
|
|
104358
104410
|
chainId,
|
|
@@ -104828,7 +104880,7 @@ var RpcClient = class {
|
|
|
104828
104880
|
};
|
|
104829
104881
|
|
|
104830
104882
|
// src/contract/contracts.ts
|
|
104831
|
-
var
|
|
104883
|
+
var ERC20_ABI2 = [
|
|
104832
104884
|
{
|
|
104833
104885
|
constant: true,
|
|
104834
104886
|
inputs: [],
|
|
@@ -104928,7 +104980,7 @@ var ERC20_ABI = [
|
|
|
104928
104980
|
// src/core/services/asset.ts
|
|
104929
104981
|
var import_ethers3 = require("ethers");
|
|
104930
104982
|
|
|
104931
|
-
// node_modules/@jspm/core/nodelibs/browser/events.js
|
|
104983
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/events.js
|
|
104932
104984
|
var exports$111 = {};
|
|
104933
104985
|
var _dewExec11 = false;
|
|
104934
104986
|
function dew11() {
|
|
@@ -105371,7 +105423,7 @@ var {
|
|
|
105371
105423
|
once: once2
|
|
105372
105424
|
} = exports12;
|
|
105373
105425
|
|
|
105374
|
-
// node_modules/@jspm/core/nodelibs/browser/timers.js
|
|
105426
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/timers.js
|
|
105375
105427
|
var exports$211 = {};
|
|
105376
105428
|
var _dewExec$111 = false;
|
|
105377
105429
|
var _global$111 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -105606,7 +105658,7 @@ var AssetService = class extends EventEmitter {
|
|
|
105606
105658
|
this.networkService = networkService;
|
|
105607
105659
|
this.userClient = userClient;
|
|
105608
105660
|
this.orgHost = orgHost;
|
|
105609
|
-
this.erc20Interface = new import_ethers3.Interface(
|
|
105661
|
+
this.erc20Interface = new import_ethers3.Interface(ERC20_ABI2);
|
|
105610
105662
|
}
|
|
105611
105663
|
async getTokenInfo(params) {
|
|
105612
105664
|
try {
|
|
@@ -105939,6 +105991,7 @@ var InternalCoreImpl = class {
|
|
|
105939
105991
|
create: (password) => this.walletService.create(password),
|
|
105940
105992
|
retrieveWallet: (password) => this.walletService.retrieveWallet(password),
|
|
105941
105993
|
getBalance: (address, chainId) => this.walletService.getBalance(address, chainId),
|
|
105994
|
+
getTokenBalance: (tokenAddress, walletAddress, chainId) => this.walletService.getTokenBalance(tokenAddress, walletAddress, chainId),
|
|
105942
105995
|
getTransactionCount: (address, chainId) => this.walletService.getTransactionCount(address, chainId),
|
|
105943
105996
|
getBlockNumber: (chainId) => this.walletService.getBlockNumber(chainId),
|
|
105944
105997
|
sendRawTransaction: (signedTx, chainId) => this.walletService.sendRawTransaction(signedTx, chainId),
|
|
@@ -106151,6 +106204,9 @@ var WalletModule = class {
|
|
|
106151
106204
|
async getBalance(address, chainId) {
|
|
106152
106205
|
return this.core.wallet.getBalance(address, chainId);
|
|
106153
106206
|
}
|
|
106207
|
+
async getTokenBalance(address, tokenAddress, chainId) {
|
|
106208
|
+
return this.core.wallet.getTokenBalance(address, tokenAddress, chainId);
|
|
106209
|
+
}
|
|
106154
106210
|
async getTransactionCount(address, chainId) {
|
|
106155
106211
|
return this.core.wallet.getTransactionCount(address, chainId);
|
|
106156
106212
|
}
|
|
@@ -106330,6 +106386,13 @@ var WeBlockSDK = class {
|
|
|
106330
106386
|
getBalance: (address, chainId) => {
|
|
106331
106387
|
return this.walletModule.getBalance(address, chainId);
|
|
106332
106388
|
},
|
|
106389
|
+
getTokenBalance: (tokenAddress, walletAddress, chainId) => {
|
|
106390
|
+
return this.walletModule.getTokenBalance(
|
|
106391
|
+
tokenAddress,
|
|
106392
|
+
walletAddress,
|
|
106393
|
+
chainId
|
|
106394
|
+
);
|
|
106395
|
+
},
|
|
106333
106396
|
getTransactionCount: (address, chainId) => {
|
|
106334
106397
|
return this.walletModule.getTransactionCount(address, chainId);
|
|
106335
106398
|
},
|
|
@@ -106450,18 +106513,14 @@ var WeBlockSDK = class {
|
|
|
106450
106513
|
return this.initialized;
|
|
106451
106514
|
}
|
|
106452
106515
|
};
|
|
106453
|
-
var
|
|
106516
|
+
var index_default = WeBlockSDK;
|
|
106454
106517
|
/*! Bundled license information:
|
|
106455
106518
|
|
|
106456
106519
|
@jspm/core/nodelibs/browser/chunk-DtuTasat.js:
|
|
106457
|
-
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
106458
|
-
|
|
106459
|
-
@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js:
|
|
106460
|
-
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
106461
|
-
|
|
106462
106520
|
@jspm/core/nodelibs/browser/chunk-B738Er4n.js:
|
|
106463
106521
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
106464
106522
|
|
|
106523
|
+
@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js:
|
|
106465
106524
|
@jspm/core/nodelibs/browser/crypto.js:
|
|
106466
106525
|
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
106467
106526
|
*/
|