@weblock-wallet/sdk 0.1.72 → 0.1.74
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 +583 -532
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +580 -529
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 src_exports = {};
|
|
32
|
+
__export(src_exports, {
|
|
33
33
|
DECIMALS: () => DECIMALS,
|
|
34
34
|
SDKError: () => SDKError,
|
|
35
35
|
SDKErrorCode: () => SDKErrorCode,
|
|
@@ -39,11 +39,11 @@ __export(index_exports, {
|
|
|
39
39
|
TransactionStatus: () => TransactionStatus,
|
|
40
40
|
TransactionType: () => TransactionType,
|
|
41
41
|
WeBlockSDK: () => WeBlockSDK,
|
|
42
|
-
default: () =>
|
|
42
|
+
default: () => src_default
|
|
43
43
|
});
|
|
44
|
-
module.exports = __toCommonJS(
|
|
44
|
+
module.exports = __toCommonJS(src_exports);
|
|
45
45
|
|
|
46
|
-
// node_modules
|
|
46
|
+
// 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 =
|
|
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
|
|
1762
|
+
// node_modules/@jspm/core/nodelibs/browser/buffer.js
|
|
1763
1763
|
var exports2 = dew();
|
|
1764
1764
|
exports2["Buffer"];
|
|
1765
1765
|
exports2["SlowBuffer"];
|
|
@@ -1771,6 +1771,14 @@ var kMaxLength = exports2.kMaxLength;
|
|
|
1771
1771
|
|
|
1772
1772
|
// src/utils/storage.ts
|
|
1773
1773
|
var import_localforage = __toESM(require("localforage"), 1);
|
|
1774
|
+
var toExpiryEpochMs = (value) => {
|
|
1775
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) {
|
|
1776
|
+
return null;
|
|
1777
|
+
}
|
|
1778
|
+
return value < 1e12 ? value * 1e3 : value;
|
|
1779
|
+
};
|
|
1780
|
+
var isObjectRecord = (value) => typeof value === "object" && value !== null;
|
|
1781
|
+
var isWrappedItem = (value) => isObjectRecord(value) && "value" in value && ("expiryEpochMs" in value || "expiry" in value || Object.keys(value).length === 1);
|
|
1774
1782
|
var storage = import_localforage.default.createInstance({
|
|
1775
1783
|
name: "@WeBlock-wallet",
|
|
1776
1784
|
storeName: "secure-storage",
|
|
@@ -1793,11 +1801,15 @@ var LocalForage = {
|
|
|
1793
1801
|
try {
|
|
1794
1802
|
const item = await storage.getItem(key);
|
|
1795
1803
|
if (!item) return null;
|
|
1796
|
-
if (
|
|
1797
|
-
|
|
1798
|
-
|
|
1804
|
+
if (isWrappedItem(item)) {
|
|
1805
|
+
const expiryEpochMs = toExpiryEpochMs(item.expiryEpochMs ?? item.expiry);
|
|
1806
|
+
if (expiryEpochMs && Date.now() > expiryEpochMs) {
|
|
1807
|
+
await storage.removeItem(key);
|
|
1808
|
+
return null;
|
|
1809
|
+
}
|
|
1810
|
+
return item.value ?? null;
|
|
1799
1811
|
}
|
|
1800
|
-
return item
|
|
1812
|
+
return item;
|
|
1801
1813
|
} catch (err) {
|
|
1802
1814
|
console.error(`Error retrieving data for key "${key}":`, err);
|
|
1803
1815
|
return null;
|
|
@@ -1820,20 +1832,35 @@ var LocalForage = {
|
|
|
1820
1832
|
};
|
|
1821
1833
|
|
|
1822
1834
|
// src/utils/jwt.ts
|
|
1835
|
+
var decodeBase64Url = (value) => {
|
|
1836
|
+
const base64 = value.replace(/-/g, "+").replace(/_/g, "/");
|
|
1837
|
+
const missingPadding = (4 - base64.length % 4) % 4;
|
|
1838
|
+
const padded = `${base64}${"=".repeat(missingPadding)}`;
|
|
1839
|
+
return atob(padded);
|
|
1840
|
+
};
|
|
1841
|
+
var parseToken = (token) => {
|
|
1842
|
+
try {
|
|
1843
|
+
const [, payloadSegment] = token.split(".");
|
|
1844
|
+
if (!payloadSegment) return null;
|
|
1845
|
+
const decoded = decodeBase64Url(payloadSegment);
|
|
1846
|
+
const jsonPayload = decodeURIComponent(
|
|
1847
|
+
decoded.split("").map((c5) => `%${("00" + c5.charCodeAt(0).toString(16)).slice(-2)}`).join("")
|
|
1848
|
+
);
|
|
1849
|
+
return JSON.parse(jsonPayload);
|
|
1850
|
+
} catch {
|
|
1851
|
+
return null;
|
|
1852
|
+
}
|
|
1853
|
+
};
|
|
1823
1854
|
var Jwt = {
|
|
1824
1855
|
parse(token) {
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
const jsonPayload = decodeURIComponent(
|
|
1829
|
-
atob(base64).split("").map(function(c5) {
|
|
1830
|
-
return "%" + ("00" + c5.charCodeAt(0).toString(16)).slice(-2);
|
|
1831
|
-
}).join("")
|
|
1832
|
-
);
|
|
1833
|
-
return JSON.parse(jsonPayload);
|
|
1834
|
-
} catch (error) {
|
|
1835
|
-
throw new Error(`Error parsing JWT: ${error}`);
|
|
1856
|
+
const payload = parseToken(token);
|
|
1857
|
+
if (!payload) {
|
|
1858
|
+
throw new Error("Error parsing JWT");
|
|
1836
1859
|
}
|
|
1860
|
+
return payload;
|
|
1861
|
+
},
|
|
1862
|
+
tryParse(token) {
|
|
1863
|
+
return parseToken(token);
|
|
1837
1864
|
}
|
|
1838
1865
|
};
|
|
1839
1866
|
|
|
@@ -1853,16 +1880,18 @@ var AuthService = class {
|
|
|
1853
1880
|
idToken: credentials.idToken,
|
|
1854
1881
|
provider
|
|
1855
1882
|
});
|
|
1856
|
-
console.log("Server response:", response);
|
|
1857
1883
|
const { token, isNewUser } = response;
|
|
1858
|
-
const
|
|
1859
|
-
|
|
1860
|
-
|
|
1884
|
+
const payload = Jwt.tryParse(token);
|
|
1885
|
+
const exp = payload?.exp ? payload.exp * 1e3 : null;
|
|
1886
|
+
if (!exp || !Number.isFinite(exp) || exp <= Date.now()) {
|
|
1887
|
+
throw new SDKError(
|
|
1888
|
+
"Invalid access token received from server",
|
|
1889
|
+
"INVALID_RESPONSE" /* INVALID_RESPONSE */
|
|
1890
|
+
);
|
|
1891
|
+
}
|
|
1861
1892
|
await LocalForage.save(`${this.orgHost}:firebaseId`, credentials.firebaseId);
|
|
1862
1893
|
await LocalForage.save(`${this.orgHost}:accessToken`, token, exp);
|
|
1863
1894
|
await LocalForage.save(`${this.orgHost}:isNewUser`, isNewUser);
|
|
1864
|
-
const savedIsNewUser = await LocalForage.get(`${this.orgHost}:isNewUser`);
|
|
1865
|
-
console.log("Saved isNewUser:", savedIsNewUser);
|
|
1866
1895
|
let status;
|
|
1867
1896
|
if (isNewUser) {
|
|
1868
1897
|
status = "NEW_USER" /* NEW_USER */;
|
|
@@ -1936,7 +1965,7 @@ var AuthService = class {
|
|
|
1936
1965
|
var import_ethers2 = require("ethers");
|
|
1937
1966
|
var import_bip39 = require("bip39");
|
|
1938
1967
|
|
|
1939
|
-
// node_modules
|
|
1968
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js
|
|
1940
1969
|
var exports$22 = {};
|
|
1941
1970
|
var _dewExec$12 = false;
|
|
1942
1971
|
function dew$12() {
|
|
@@ -2238,7 +2267,7 @@ var exports3 = dew2();
|
|
|
2238
2267
|
exports3["StringDecoder"];
|
|
2239
2268
|
var StringDecoder = exports3.StringDecoder;
|
|
2240
2269
|
|
|
2241
|
-
// node_modules
|
|
2270
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-DEMDiNwt.js
|
|
2242
2271
|
function unimplemented(name2) {
|
|
2243
2272
|
throw new Error("Node.js process " + name2 + " is not supported by JSPM core outside of Node.js");
|
|
2244
2273
|
}
|
|
@@ -2521,7 +2550,7 @@ var process = {
|
|
|
2521
2550
|
setSourceMapsEnabled
|
|
2522
2551
|
};
|
|
2523
2552
|
|
|
2524
|
-
// node_modules
|
|
2553
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-CkFCi-G1.js
|
|
2525
2554
|
var exports4 = {};
|
|
2526
2555
|
var _dewExec3 = false;
|
|
2527
2556
|
function dew3() {
|
|
@@ -2556,7 +2585,7 @@ function dew3() {
|
|
|
2556
2585
|
return exports4;
|
|
2557
2586
|
}
|
|
2558
2587
|
|
|
2559
|
-
// node_modules
|
|
2588
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-tHuMsdT0.js
|
|
2560
2589
|
var e;
|
|
2561
2590
|
var t;
|
|
2562
2591
|
var n = "object" == typeof Reflect ? Reflect : null;
|
|
@@ -2603,10 +2632,10 @@ function h(e7, t5, n5) {
|
|
|
2603
2632
|
var r5 = e7._events;
|
|
2604
2633
|
if (void 0 === r5) return [];
|
|
2605
2634
|
var i5 = r5[t5];
|
|
2606
|
-
return void 0 === i5 ? [] : "function" == typeof i5 ? n5 ? [i5.listener || i5] : [i5] : n5 ?
|
|
2635
|
+
return void 0 === i5 ? [] : "function" == typeof i5 ? n5 ? [i5.listener || i5] : [i5] : n5 ? function(e8) {
|
|
2607
2636
|
for (var t6 = new Array(e8.length), n6 = 0; n6 < t6.length; ++n6) t6[n6] = e8[n6].listener || e8[n6];
|
|
2608
2637
|
return t6;
|
|
2609
|
-
}
|
|
2638
|
+
}(i5) : c(i5, i5.length);
|
|
2610
2639
|
}
|
|
2611
2640
|
function p(e7) {
|
|
2612
2641
|
var t5 = this._events;
|
|
@@ -2671,10 +2700,10 @@ Object.defineProperty(o, "defaultMaxListeners", { enumerable: true, get: functio
|
|
|
2671
2700
|
break;
|
|
2672
2701
|
}
|
|
2673
2702
|
if (i5 < 0) return this;
|
|
2674
|
-
0 === i5 ? n5.shift() : !
|
|
2703
|
+
0 === i5 ? n5.shift() : !function(e8, t6) {
|
|
2675
2704
|
for (; t6 + 1 < e8.length; t6++) e8[t6] = e8[t6 + 1];
|
|
2676
2705
|
e8.pop();
|
|
2677
|
-
}
|
|
2706
|
+
}(n5, i5), 1 === n5.length && (r5[e7] = n5[0]), void 0 !== r5.removeListener && this.emit("removeListener", e7, s5 || t5);
|
|
2678
2707
|
}
|
|
2679
2708
|
return this;
|
|
2680
2709
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.removeAllListeners = function(e7) {
|
|
@@ -2708,7 +2737,7 @@ y.defaultMaxListeners;
|
|
|
2708
2737
|
y.init;
|
|
2709
2738
|
y.listenerCount;
|
|
2710
2739
|
|
|
2711
|
-
// node_modules
|
|
2740
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-DtDiafJB.js
|
|
2712
2741
|
y.once = function(emitter, event) {
|
|
2713
2742
|
return new Promise((resolve, reject) => {
|
|
2714
2743
|
function eventListener(...args) {
|
|
@@ -2790,7 +2819,7 @@ y.on = function(emitter, event) {
|
|
|
2790
2819
|
}
|
|
2791
2820
|
};
|
|
2792
2821
|
|
|
2793
|
-
// node_modules
|
|
2822
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-D3uu3VYh.js
|
|
2794
2823
|
var e$2;
|
|
2795
2824
|
var t$3;
|
|
2796
2825
|
var n$2;
|
|
@@ -2815,7 +2844,7 @@ function c$2(e7) {
|
|
|
2815
2844
|
}
|
|
2816
2845
|
}
|
|
2817
2846
|
}
|
|
2818
|
-
!
|
|
2847
|
+
!function() {
|
|
2819
2848
|
try {
|
|
2820
2849
|
t$3 = "function" == typeof setTimeout ? setTimeout : i$2;
|
|
2821
2850
|
} catch (e7) {
|
|
@@ -2826,7 +2855,7 @@ function c$2(e7) {
|
|
|
2826
2855
|
} catch (e7) {
|
|
2827
2856
|
n$2 = u$2;
|
|
2828
2857
|
}
|
|
2829
|
-
}
|
|
2858
|
+
}();
|
|
2830
2859
|
var l$2;
|
|
2831
2860
|
var s$1 = [];
|
|
2832
2861
|
var f$1 = false;
|
|
@@ -2842,7 +2871,7 @@ function d$1() {
|
|
|
2842
2871
|
for (l$2 = s$1, s$1 = []; ++a$1 < t5; ) l$2 && l$2[a$1].run();
|
|
2843
2872
|
a$1 = -1, t5 = s$1.length;
|
|
2844
2873
|
}
|
|
2845
|
-
l$2 = null, f$1 = false,
|
|
2874
|
+
l$2 = null, f$1 = false, function(e8) {
|
|
2846
2875
|
if (n$2 === clearTimeout) return clearTimeout(e8);
|
|
2847
2876
|
if ((n$2 === u$2 || !n$2) && clearTimeout) return n$2 = clearTimeout, clearTimeout(e8);
|
|
2848
2877
|
try {
|
|
@@ -2854,7 +2883,7 @@ function d$1() {
|
|
|
2854
2883
|
return n$2.call(this || r$2, e8);
|
|
2855
2884
|
}
|
|
2856
2885
|
}
|
|
2857
|
-
}
|
|
2886
|
+
}(e7);
|
|
2858
2887
|
}
|
|
2859
2888
|
}
|
|
2860
2889
|
function m$1(e7, t5) {
|
|
@@ -2909,9 +2938,9 @@ var o2 = function(o5) {
|
|
|
2909
2938
|
var n2 = function(t5) {
|
|
2910
2939
|
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);
|
|
2911
2940
|
};
|
|
2912
|
-
var r2 =
|
|
2941
|
+
var r2 = function() {
|
|
2913
2942
|
return o2(arguments);
|
|
2914
|
-
}
|
|
2943
|
+
}();
|
|
2915
2944
|
o2.isLegacyArguments = n2;
|
|
2916
2945
|
var l2 = r2 ? o2 : n2;
|
|
2917
2946
|
var t$1 = Object.prototype.toString;
|
|
@@ -2919,13 +2948,13 @@ var o$1 = Function.prototype.toString;
|
|
|
2919
2948
|
var n$1 = /^\s*(?:function)?\*/;
|
|
2920
2949
|
var e$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag;
|
|
2921
2950
|
var r$1 = Object.getPrototypeOf;
|
|
2922
|
-
var c2 =
|
|
2951
|
+
var c2 = function() {
|
|
2923
2952
|
if (!e$1) return false;
|
|
2924
2953
|
try {
|
|
2925
2954
|
return Function("return function*() {}")();
|
|
2926
2955
|
} catch (t5) {
|
|
2927
2956
|
}
|
|
2928
|
-
}
|
|
2957
|
+
}();
|
|
2929
2958
|
var u2 = c2 ? r$1(c2) : {};
|
|
2930
2959
|
var i2 = function(c5) {
|
|
2931
2960
|
return "function" == typeof c5 && (!!n$1.test(o$1.call(c5)) || (e$1 ? r$1(c5) === u2 : "[object GeneratorFunction]" === t$1.call(c5)));
|
|
@@ -3077,11 +3106,11 @@ o$2.isArgumentsObject = f2, o$2.isGeneratorFunction = a2, o$2.isPromise = functi
|
|
|
3077
3106
|
return H(e7) || Z(e7) || q(e7) || K(e7) || L(e7);
|
|
3078
3107
|
}, o$2.isAnyArrayBuffer = function(e7) {
|
|
3079
3108
|
return l$1 && (V(e7) || _(e7));
|
|
3080
|
-
}, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(
|
|
3109
|
+
}, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(e7) {
|
|
3081
3110
|
Object.defineProperty(o$2, e7, { enumerable: false, value: function() {
|
|
3082
3111
|
throw new Error(e7 + " is not supported in userland");
|
|
3083
3112
|
} });
|
|
3084
|
-
})
|
|
3113
|
+
});
|
|
3085
3114
|
var Q = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : global;
|
|
3086
3115
|
var X = {};
|
|
3087
3116
|
var Y = T$1;
|
|
@@ -3096,7 +3125,7 @@ X.format = function(e7) {
|
|
|
3096
3125
|
return t5.join(" ");
|
|
3097
3126
|
}
|
|
3098
3127
|
r5 = 1;
|
|
3099
|
-
for (var n5 = arguments, i5 = n5.length, o5 = String(e7).replace(te,
|
|
3128
|
+
for (var n5 = arguments, i5 = n5.length, o5 = String(e7).replace(te, function(e8) {
|
|
3100
3129
|
if ("%%" === e8) return "%";
|
|
3101
3130
|
if (r5 >= i5) return e8;
|
|
3102
3131
|
switch (e8) {
|
|
@@ -3113,7 +3142,7 @@ X.format = function(e7) {
|
|
|
3113
3142
|
default:
|
|
3114
3143
|
return e8;
|
|
3115
3144
|
}
|
|
3116
|
-
})
|
|
3145
|
+
}), u5 = n5[r5]; r5 < i5; u5 = n5[++r5]) le(u5) || !he(u5) ? o5 += " " + u5 : o5 += " " + oe(u5);
|
|
3117
3146
|
return o5;
|
|
3118
3147
|
}, X.deprecate = function(e7, t5) {
|
|
3119
3148
|
if (void 0 !== Y && true === Y.noDeprecation) return e7;
|
|
@@ -3152,7 +3181,7 @@ function ae(e7, t5, r5) {
|
|
|
3152
3181
|
var n5 = t5.inspect(r5, e7);
|
|
3153
3182
|
return ge(n5) || (n5 = ae(e7, n5, r5)), n5;
|
|
3154
3183
|
}
|
|
3155
|
-
var i5 =
|
|
3184
|
+
var i5 = function(e8, t6) {
|
|
3156
3185
|
if (be(t6)) return e8.stylize("undefined", "undefined");
|
|
3157
3186
|
if (ge(t6)) {
|
|
3158
3187
|
var r6 = "'" + JSON.stringify(t6).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
@@ -3161,14 +3190,14 @@ function ae(e7, t5, r5) {
|
|
|
3161
3190
|
if (de(t6)) return e8.stylize("" + t6, "number");
|
|
3162
3191
|
if (ye(t6)) return e8.stylize("" + t6, "boolean");
|
|
3163
3192
|
if (le(t6)) return e8.stylize("null", "null");
|
|
3164
|
-
}
|
|
3193
|
+
}(e7, t5);
|
|
3165
3194
|
if (i5) return i5;
|
|
3166
|
-
var o5 = Object.keys(t5), u5 =
|
|
3195
|
+
var o5 = Object.keys(t5), u5 = function(e8) {
|
|
3167
3196
|
var t6 = {};
|
|
3168
|
-
return e8.forEach(
|
|
3197
|
+
return e8.forEach(function(e9, r6) {
|
|
3169
3198
|
t6[e9] = true;
|
|
3170
|
-
})
|
|
3171
|
-
}
|
|
3199
|
+
}), t6;
|
|
3200
|
+
}(o5);
|
|
3172
3201
|
if (e7.showHidden && (o5 = Object.getOwnPropertyNames(t5)), Ae(t5) && (o5.indexOf("message") >= 0 || o5.indexOf("description") >= 0)) return ce(t5);
|
|
3173
3202
|
if (0 === o5.length) {
|
|
3174
3203
|
if (we(t5)) {
|
|
@@ -3181,31 +3210,31 @@ function ae(e7, t5, r5) {
|
|
|
3181
3210
|
}
|
|
3182
3211
|
var a5, c5 = "", s5 = false, p5 = ["{", "}"];
|
|
3183
3212
|
(pe(t5) && (s5 = true, p5 = ["[", "]"]), we(t5)) && (c5 = " [Function" + (t5.name ? ": " + t5.name : "") + "]");
|
|
3184
|
-
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 ?
|
|
3213
|
+
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) {
|
|
3185
3214
|
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("");
|
|
3186
|
-
return i6.forEach(
|
|
3215
|
+
return i6.forEach(function(i7) {
|
|
3187
3216
|
i7.match(/^\d+$/) || o6.push(se(e8, t6, r6, n6, i7, true));
|
|
3188
|
-
})
|
|
3189
|
-
}
|
|
3217
|
+
}), o6;
|
|
3218
|
+
}(e7, t5, r5, u5, o5) : o5.map(function(n6) {
|
|
3190
3219
|
return se(e7, t5, r5, u5, n6, s5);
|
|
3191
|
-
})
|
|
3220
|
+
}), e7.seen.pop(), function(e8, t6, r6) {
|
|
3192
3221
|
var n6 = 0;
|
|
3193
|
-
if (e8.reduce(
|
|
3222
|
+
if (e8.reduce(function(e9, t7) {
|
|
3194
3223
|
return n6++, t7.indexOf("\n") >= 0 && n6++, e9 + t7.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3195
|
-
}
|
|
3224
|
+
}, 0) > 60) return r6[0] + ("" === t6 ? "" : t6 + "\n ") + " " + e8.join(",\n ") + " " + r6[1];
|
|
3196
3225
|
return r6[0] + t6 + " " + e8.join(", ") + " " + r6[1];
|
|
3197
|
-
}
|
|
3226
|
+
}(a5, c5, p5)) : p5[0] + c5 + p5[1];
|
|
3198
3227
|
}
|
|
3199
3228
|
function ce(e7) {
|
|
3200
3229
|
return "[" + Error.prototype.toString.call(e7) + "]";
|
|
3201
3230
|
}
|
|
3202
3231
|
function se(e7, t5, r5, n5, i5, o5) {
|
|
3203
3232
|
var u5, f6, a5;
|
|
3204
|
-
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(
|
|
3233
|
+
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) {
|
|
3205
3234
|
return " " + e8;
|
|
3206
|
-
})
|
|
3235
|
+
}).join("\n").substr(2) : "\n" + f6.split("\n").map(function(e8) {
|
|
3207
3236
|
return " " + e8;
|
|
3208
|
-
})
|
|
3237
|
+
}).join("\n")) : f6 = e7.stylize("[Circular]", "special")), be(u5)) {
|
|
3209
3238
|
if (o5 && i5.match(/^\d+$/)) return f6;
|
|
3210
3239
|
(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"));
|
|
3211
3240
|
}
|
|
@@ -3298,12 +3327,12 @@ X.promisify = function(e7) {
|
|
|
3298
3327
|
return Object.defineProperty(t5, Ee, { value: t5, enumerable: false, writable: false, configurable: true }), t5;
|
|
3299
3328
|
}
|
|
3300
3329
|
function t5() {
|
|
3301
|
-
for (var t6, r5, n5 = new Promise(
|
|
3330
|
+
for (var t6, r5, n5 = new Promise(function(e8, n6) {
|
|
3302
3331
|
t6 = e8, r5 = n6;
|
|
3303
|
-
})
|
|
3304
|
-
i5.push(
|
|
3332
|
+
}), i5 = [], o5 = 0; o5 < arguments.length; o5++) i5.push(arguments[o5]);
|
|
3333
|
+
i5.push(function(e8, n6) {
|
|
3305
3334
|
e8 ? r5(e8) : t6(n6);
|
|
3306
|
-
})
|
|
3335
|
+
});
|
|
3307
3336
|
try {
|
|
3308
3337
|
e7.apply(this || Q, i5);
|
|
3309
3338
|
} catch (e8) {
|
|
@@ -3321,11 +3350,11 @@ X.promisify = function(e7) {
|
|
|
3321
3350
|
var i5 = this || Q, o5 = function() {
|
|
3322
3351
|
return n5.apply(i5, arguments);
|
|
3323
3352
|
};
|
|
3324
|
-
e7.apply(this || Q, t6).then(
|
|
3353
|
+
e7.apply(this || Q, t6).then(function(e8) {
|
|
3325
3354
|
Y.nextTick(o5.bind(null, null, e8));
|
|
3326
|
-
}
|
|
3355
|
+
}, function(e8) {
|
|
3327
3356
|
Y.nextTick(De.bind(null, e8, o5));
|
|
3328
|
-
})
|
|
3357
|
+
});
|
|
3329
3358
|
}
|
|
3330
3359
|
return Object.setPrototypeOf(t5, Object.getPrototypeOf(e7)), Object.defineProperties(t5, ee(e7)), t5;
|
|
3331
3360
|
};
|
|
@@ -3379,7 +3408,7 @@ X.log;
|
|
|
3379
3408
|
var promisify = X.promisify;
|
|
3380
3409
|
X.types;
|
|
3381
3410
|
|
|
3382
|
-
// node_modules
|
|
3411
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-b0rmRow7.js
|
|
3383
3412
|
var exports5 = {};
|
|
3384
3413
|
var _dewExec4 = false;
|
|
3385
3414
|
var _global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -3568,14 +3597,14 @@ process2.umask;
|
|
|
3568
3597
|
process2.version;
|
|
3569
3598
|
process2.versions;
|
|
3570
3599
|
|
|
3571
|
-
// node_modules
|
|
3600
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-B738Er4n.js
|
|
3572
3601
|
for (r$13 = { byteLength: function(r5) {
|
|
3573
3602
|
var t5 = u$22(r5), e7 = t5[0], n5 = t5[1];
|
|
3574
3603
|
return 3 * (e7 + n5) / 4 - n5;
|
|
3575
3604
|
}, toByteArray: function(r5) {
|
|
3576
|
-
var t5, o5, a5 = u$22(r5), h5 = a5[0], c5 = a5[1], d4 = new n$23(
|
|
3605
|
+
var t5, o5, a5 = u$22(r5), h5 = a5[0], c5 = a5[1], d4 = new n$23(function(r6, t6, e7) {
|
|
3577
3606
|
return 3 * (t6 + e7) / 4 - e7;
|
|
3578
|
-
}
|
|
3607
|
+
}(0, h5, c5)), f6 = 0, A4 = c5 > 0 ? h5 - 4 : h5;
|
|
3579
3608
|
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;
|
|
3580
3609
|
2 === c5 && (t5 = e$23[r5.charCodeAt(o5)] << 2 | e$23[r5.charCodeAt(o5 + 1)] >> 4, d4[f6++] = 255 & t5);
|
|
3581
3610
|
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);
|
|
@@ -3640,13 +3669,13 @@ function u$1$1(t5, r5, e7) {
|
|
|
3640
3669
|
return s$12(t5, r5, e7);
|
|
3641
3670
|
}
|
|
3642
3671
|
function s$12(t5, r5, e7) {
|
|
3643
|
-
if ("string" == typeof t5) return
|
|
3672
|
+
if ("string" == typeof t5) return function(t6, r6) {
|
|
3644
3673
|
"string" == typeof r6 && "" !== r6 || (r6 = "utf8");
|
|
3645
3674
|
if (!u$1$1.isEncoding(r6)) throw new TypeError("Unknown encoding: " + r6);
|
|
3646
3675
|
var e8 = 0 | y3(t6, r6), n6 = f$2(e8), i6 = n6.write(t6, r6);
|
|
3647
3676
|
i6 !== e8 && (n6 = n6.slice(0, i6));
|
|
3648
3677
|
return n6;
|
|
3649
|
-
}
|
|
3678
|
+
}(t5, r5);
|
|
3650
3679
|
if (ArrayBuffer.isView(t5)) return p3(t5);
|
|
3651
3680
|
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);
|
|
3652
3681
|
if (F2(t5, ArrayBuffer) || t5 && F2(t5.buffer, ArrayBuffer)) return c$1$1(t5, r5, e7);
|
|
@@ -3654,14 +3683,14 @@ function s$12(t5, r5, e7) {
|
|
|
3654
3683
|
if ("number" == typeof t5) throw new TypeError('The "value" argument must not be of type number. Received type number');
|
|
3655
3684
|
var n5 = t5.valueOf && t5.valueOf();
|
|
3656
3685
|
if (null != n5 && n5 !== t5) return u$1$1.from(n5, r5, e7);
|
|
3657
|
-
var i5 =
|
|
3686
|
+
var i5 = function(t6) {
|
|
3658
3687
|
if (u$1$1.isBuffer(t6)) {
|
|
3659
3688
|
var r6 = 0 | l$12(t6.length), e8 = f$2(r6);
|
|
3660
3689
|
return 0 === e8.length || t6.copy(e8, 0, 0, r6), e8;
|
|
3661
3690
|
}
|
|
3662
3691
|
if (void 0 !== t6.length) return "number" != typeof t6.length || N2(t6.length) ? f$2(0) : p3(t6);
|
|
3663
3692
|
if ("Buffer" === t6.type && Array.isArray(t6.data)) return p3(t6.data);
|
|
3664
|
-
}
|
|
3693
|
+
}(t5);
|
|
3665
3694
|
if (i5) return i5;
|
|
3666
3695
|
if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof t5[Symbol.toPrimitive]) return u$1$1.from(t5[Symbol.toPrimitive]("string"), r5, e7);
|
|
3667
3696
|
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t5);
|
|
@@ -3800,10 +3829,10 @@ function m2(t5, r5, e7, n5) {
|
|
|
3800
3829
|
return D2(_2(r5, t5.length - e7), t5, e7, n5);
|
|
3801
3830
|
}
|
|
3802
3831
|
function E2(t5, r5, e7, n5) {
|
|
3803
|
-
return D2(
|
|
3832
|
+
return D2(function(t6) {
|
|
3804
3833
|
for (var r6 = [], e8 = 0; e8 < t6.length; ++e8) r6.push(255 & t6.charCodeAt(e8));
|
|
3805
3834
|
return r6;
|
|
3806
|
-
}
|
|
3835
|
+
}(r5), t5, e7, n5);
|
|
3807
3836
|
}
|
|
3808
3837
|
function B2(t5, r5, e7, n5) {
|
|
3809
3838
|
return E2(t5, r5, e7, n5);
|
|
@@ -3812,10 +3841,10 @@ function A2(t5, r5, e7, n5) {
|
|
|
3812
3841
|
return D2(z2(r5), t5, e7, n5);
|
|
3813
3842
|
}
|
|
3814
3843
|
function U2(t5, r5, e7, n5) {
|
|
3815
|
-
return D2(
|
|
3844
|
+
return D2(function(t6, r6) {
|
|
3816
3845
|
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);
|
|
3817
3846
|
return o5;
|
|
3818
|
-
}
|
|
3847
|
+
}(r5, t5.length - e7), t5, e7, n5);
|
|
3819
3848
|
}
|
|
3820
3849
|
function T2(t5, r5, e7) {
|
|
3821
3850
|
return 0 === r5 && e7 === t5.length ? n$1$1.fromByteArray(t5) : n$1$1.fromByteArray(t5.slice(r5, e7));
|
|
@@ -3839,15 +3868,15 @@ function I2(t5, r5, e7) {
|
|
|
3839
3868
|
}
|
|
3840
3869
|
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;
|
|
3841
3870
|
}
|
|
3842
|
-
return
|
|
3871
|
+
return function(t6) {
|
|
3843
3872
|
var r6 = t6.length;
|
|
3844
3873
|
if (r6 <= 4096) return String.fromCharCode.apply(String, t6);
|
|
3845
3874
|
var e8 = "", n6 = 0;
|
|
3846
3875
|
for (; n6 < r6; ) e8 += String.fromCharCode.apply(String, t6.slice(n6, n6 += 4096));
|
|
3847
3876
|
return e8;
|
|
3848
|
-
}
|
|
3877
|
+
}(n5);
|
|
3849
3878
|
}
|
|
3850
|
-
e$1$1.kMaxLength = 2147483647, u$1$1.TYPED_ARRAY_SUPPORT =
|
|
3879
|
+
e$1$1.kMaxLength = 2147483647, u$1$1.TYPED_ARRAY_SUPPORT = function() {
|
|
3851
3880
|
try {
|
|
3852
3881
|
var t5 = new Uint8Array(1), r5 = { foo: function() {
|
|
3853
3882
|
return 42;
|
|
@@ -3856,16 +3885,16 @@ e$1$1.kMaxLength = 2147483647, u$1$1.TYPED_ARRAY_SUPPORT = (function() {
|
|
|
3856
3885
|
} catch (t6) {
|
|
3857
3886
|
return false;
|
|
3858
3887
|
}
|
|
3859
|
-
}
|
|
3888
|
+
}(), 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() {
|
|
3860
3889
|
if (u$1$1.isBuffer(this)) return this.buffer;
|
|
3861
3890
|
} }), Object.defineProperty(u$1$1.prototype, "offset", { enumerable: true, get: function() {
|
|
3862
3891
|
if (u$1$1.isBuffer(this)) return this.byteOffset;
|
|
3863
3892
|
} }), u$1$1.poolSize = 8192, u$1$1.from = function(t5, r5, e7) {
|
|
3864
3893
|
return s$12(t5, r5, e7);
|
|
3865
3894
|
}, Object.setPrototypeOf(u$1$1.prototype, Uint8Array.prototype), Object.setPrototypeOf(u$1$1, Uint8Array), u$1$1.alloc = function(t5, r5, e7) {
|
|
3866
|
-
return
|
|
3895
|
+
return function(t6, r6, e8) {
|
|
3867
3896
|
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);
|
|
3868
|
-
}
|
|
3897
|
+
}(t5, r5, e7);
|
|
3869
3898
|
}, u$1$1.allocUnsafe = function(t5) {
|
|
3870
3899
|
return a$2(t5);
|
|
3871
3900
|
}, u$1$1.allocUnsafeSlow = function(t5) {
|
|
@@ -4209,11 +4238,11 @@ function _2(t5, r5) {
|
|
|
4209
4238
|
return o5;
|
|
4210
4239
|
}
|
|
4211
4240
|
function z2(t5) {
|
|
4212
|
-
return n$1$1.toByteArray(
|
|
4241
|
+
return n$1$1.toByteArray(function(t6) {
|
|
4213
4242
|
if ((t6 = (t6 = t6.split("=")[0]).trim().replace(j2, "")).length < 2) return "";
|
|
4214
4243
|
for (; t6.length % 4 != 0; ) t6 += "=";
|
|
4215
4244
|
return t6;
|
|
4216
|
-
}
|
|
4245
|
+
}(t5));
|
|
4217
4246
|
}
|
|
4218
4247
|
function D2(t5, r5, e7, n5) {
|
|
4219
4248
|
for (var i5 = 0; i5 < n5 && !(i5 + e7 >= r5.length || i5 >= t5.length); ++i5) r5[i5 + e7] = t5[i5];
|
|
@@ -4225,10 +4254,10 @@ function F2(t5, r5) {
|
|
|
4225
4254
|
function N2(t5) {
|
|
4226
4255
|
return t5 != t5;
|
|
4227
4256
|
}
|
|
4228
|
-
var Y2 =
|
|
4257
|
+
var Y2 = function() {
|
|
4229
4258
|
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];
|
|
4230
4259
|
return t5;
|
|
4231
|
-
}
|
|
4260
|
+
}();
|
|
4232
4261
|
e$1$1.Buffer;
|
|
4233
4262
|
e$1$1.INSPECT_MAX_BYTES;
|
|
4234
4263
|
e$1$1.kMaxLength;
|
|
@@ -4278,8 +4307,8 @@ var i3 = s3.isEncoding || function(t5) {
|
|
|
4278
4307
|
};
|
|
4279
4308
|
function a3(t5) {
|
|
4280
4309
|
var e7;
|
|
4281
|
-
switch (this.encoding =
|
|
4282
|
-
var e8 =
|
|
4310
|
+
switch (this.encoding = function(t6) {
|
|
4311
|
+
var e8 = function(t7) {
|
|
4283
4312
|
if (!t7) return "utf8";
|
|
4284
4313
|
for (var e9; ; ) switch (t7) {
|
|
4285
4314
|
case "utf8":
|
|
@@ -4301,10 +4330,10 @@ function a3(t5) {
|
|
|
4301
4330
|
if (e9) return;
|
|
4302
4331
|
t7 = ("" + t7).toLowerCase(), e9 = true;
|
|
4303
4332
|
}
|
|
4304
|
-
}
|
|
4333
|
+
}(t6);
|
|
4305
4334
|
if ("string" != typeof e8 && (s3.isEncoding === i3 || !i3(t6))) throw new Error("Unknown encoding: " + t6);
|
|
4306
4335
|
return e8 || t6;
|
|
4307
|
-
}
|
|
4336
|
+
}(t5), this.encoding) {
|
|
4308
4337
|
case "utf16le":
|
|
4309
4338
|
this.text = h3, this.end = l3, e7 = 4;
|
|
4310
4339
|
break;
|
|
@@ -4323,13 +4352,13 @@ function r3(t5) {
|
|
|
4323
4352
|
return t5 <= 127 ? 0 : t5 >> 5 == 6 ? 2 : t5 >> 4 == 14 ? 3 : t5 >> 3 == 30 ? 4 : t5 >> 6 == 2 ? -1 : -2;
|
|
4324
4353
|
}
|
|
4325
4354
|
function n$12(t5) {
|
|
4326
|
-
var e7 = this.lastTotal - this.lastNeed, s5 =
|
|
4355
|
+
var e7 = this.lastTotal - this.lastNeed, s5 = function(t6, e8, s6) {
|
|
4327
4356
|
if (128 != (192 & e8[0])) return t6.lastNeed = 0, "\uFFFD";
|
|
4328
4357
|
if (t6.lastNeed > 1 && e8.length > 1) {
|
|
4329
4358
|
if (128 != (192 & e8[1])) return t6.lastNeed = 1, "\uFFFD";
|
|
4330
4359
|
if (t6.lastNeed > 2 && e8.length > 2 && 128 != (192 & e8[2])) return t6.lastNeed = 2, "\uFFFD";
|
|
4331
4360
|
}
|
|
4332
|
-
}
|
|
4361
|
+
}(this, t5);
|
|
4333
4362
|
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);
|
|
4334
4363
|
}
|
|
4335
4364
|
function h3(t5, e7) {
|
|
@@ -4377,7 +4406,7 @@ e$12.StringDecoder = a3, a3.prototype.write = function(t5) {
|
|
|
4377
4406
|
var e7 = t5 && t5.length ? this.write(t5) : "";
|
|
4378
4407
|
return this.lastNeed ? e7 + "\uFFFD" : e7;
|
|
4379
4408
|
}, a3.prototype.text = function(t5, e7) {
|
|
4380
|
-
var s5 =
|
|
4409
|
+
var s5 = function(t6, e8, s6) {
|
|
4381
4410
|
var i6 = e8.length - 1;
|
|
4382
4411
|
if (i6 < s6) return 0;
|
|
4383
4412
|
var a5 = r3(e8[i6]);
|
|
@@ -4387,7 +4416,7 @@ e$12.StringDecoder = a3, a3.prototype.write = function(t5) {
|
|
|
4387
4416
|
if (--i6 < s6 || -2 === a5) return 0;
|
|
4388
4417
|
if ((a5 = r3(e8[i6])) >= 0) return a5 > 0 && (2 === a5 ? a5 = 0 : t6.lastNeed = a5 - 3), a5;
|
|
4389
4418
|
return 0;
|
|
4390
|
-
}
|
|
4419
|
+
}(this, t5, e7);
|
|
4391
4420
|
if (!this.lastNeed) return t5.toString("utf8", e7);
|
|
4392
4421
|
this.lastTotal = s5;
|
|
4393
4422
|
var i5 = t5.length - (s5 - this.lastNeed);
|
|
@@ -6091,7 +6120,7 @@ function dew$g() {
|
|
|
6091
6120
|
function numberIsNaN(obj) {
|
|
6092
6121
|
return obj !== obj;
|
|
6093
6122
|
}
|
|
6094
|
-
const hexSliceLookupTable =
|
|
6123
|
+
const hexSliceLookupTable = function() {
|
|
6095
6124
|
const alphabet = "0123456789abcdef";
|
|
6096
6125
|
const table = new Array(256);
|
|
6097
6126
|
for (let i5 = 0; i5 < 16; ++i5) {
|
|
@@ -6101,7 +6130,7 @@ function dew$g() {
|
|
|
6101
6130
|
}
|
|
6102
6131
|
}
|
|
6103
6132
|
return table;
|
|
6104
|
-
}
|
|
6133
|
+
}();
|
|
6105
6134
|
function defineBigIntMethod(fn) {
|
|
6106
6135
|
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
|
|
6107
6136
|
}
|
|
@@ -6225,7 +6254,7 @@ function dew$d() {
|
|
|
6225
6254
|
function copyBuffer(src, target, offset) {
|
|
6226
6255
|
Buffer3.prototype.copy.call(src, target, offset);
|
|
6227
6256
|
}
|
|
6228
|
-
exports$d = /* @__PURE__ */
|
|
6257
|
+
exports$d = /* @__PURE__ */ function() {
|
|
6229
6258
|
function BufferList() {
|
|
6230
6259
|
_classCallCheck(this, BufferList);
|
|
6231
6260
|
this.head = null;
|
|
@@ -6389,7 +6418,7 @@ function dew$d() {
|
|
|
6389
6418
|
}
|
|
6390
6419
|
}]);
|
|
6391
6420
|
return BufferList;
|
|
6392
|
-
}
|
|
6421
|
+
}();
|
|
6393
6422
|
return exports$d;
|
|
6394
6423
|
}
|
|
6395
6424
|
var exports$c = {};
|
|
@@ -8088,11 +8117,11 @@ function dew$3() {
|
|
|
8088
8117
|
});
|
|
8089
8118
|
for (var i5 in stream2) {
|
|
8090
8119
|
if (this[i5] === void 0 && typeof stream2[i5] === "function") {
|
|
8091
|
-
this[i5] = /* @__PURE__ */
|
|
8120
|
+
this[i5] = /* @__PURE__ */ function methodWrap(method) {
|
|
8092
8121
|
return function methodWrapReturnFunction() {
|
|
8093
8122
|
return stream2[method].apply(stream2, arguments);
|
|
8094
8123
|
};
|
|
8095
|
-
}
|
|
8124
|
+
}(i5);
|
|
8096
8125
|
}
|
|
8097
8126
|
}
|
|
8098
8127
|
for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
|
|
@@ -8407,7 +8436,7 @@ function dew5() {
|
|
|
8407
8436
|
return exports6;
|
|
8408
8437
|
}
|
|
8409
8438
|
|
|
8410
|
-
// node_modules
|
|
8439
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-CbQqNoLO.js
|
|
8411
8440
|
X._extend;
|
|
8412
8441
|
X.callbackify;
|
|
8413
8442
|
X.debuglog;
|
|
@@ -8436,7 +8465,7 @@ X.types;
|
|
|
8436
8465
|
X.TextEncoder = globalThis.TextEncoder;
|
|
8437
8466
|
X.TextDecoder = globalThis.TextDecoder;
|
|
8438
8467
|
|
|
8439
|
-
// node_modules
|
|
8468
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-B6-G-Ftj.js
|
|
8440
8469
|
var exports$14 = {};
|
|
8441
8470
|
var _dewExec6 = false;
|
|
8442
8471
|
var _global3 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -8538,7 +8567,7 @@ exports7.Stream;
|
|
|
8538
8567
|
pipeline: promisify2(exports7.pipeline)
|
|
8539
8568
|
});
|
|
8540
8569
|
|
|
8541
|
-
// node_modules
|
|
8570
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-C4rKjYLo.js
|
|
8542
8571
|
var exports8 = {};
|
|
8543
8572
|
var _dewExec7 = false;
|
|
8544
8573
|
function dew7() {
|
|
@@ -8556,7 +8585,7 @@ function dew7() {
|
|
|
8556
8585
|
return exports8;
|
|
8557
8586
|
}
|
|
8558
8587
|
|
|
8559
|
-
// node_modules
|
|
8588
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-BsRZ0PEC.js
|
|
8560
8589
|
var exports9 = {};
|
|
8561
8590
|
var _dewExec8 = false;
|
|
8562
8591
|
var _global4 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -8597,7 +8626,7 @@ function dew8() {
|
|
|
8597
8626
|
return exports9;
|
|
8598
8627
|
}
|
|
8599
8628
|
|
|
8600
|
-
// node_modules
|
|
8629
|
+
// node_modules/@jspm/core/nodelibs/browser/vm.js
|
|
8601
8630
|
var exports$15 = {};
|
|
8602
8631
|
var _dewExec9 = false;
|
|
8603
8632
|
var _global5 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -8625,7 +8654,7 @@ function dew9() {
|
|
|
8625
8654
|
fn(xs[i5], i5, xs);
|
|
8626
8655
|
}
|
|
8627
8656
|
};
|
|
8628
|
-
var defineProp =
|
|
8657
|
+
var defineProp = function() {
|
|
8629
8658
|
try {
|
|
8630
8659
|
Object.defineProperty({}, "_", {});
|
|
8631
8660
|
return function(obj, name2, value) {
|
|
@@ -8641,7 +8670,7 @@ function dew9() {
|
|
|
8641
8670
|
obj[name2] = value;
|
|
8642
8671
|
};
|
|
8643
8672
|
}
|
|
8644
|
-
}
|
|
8673
|
+
}();
|
|
8645
8674
|
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"];
|
|
8646
8675
|
function Context() {
|
|
8647
8676
|
}
|
|
@@ -8736,7 +8765,7 @@ var runInContext = exports10.runInContext;
|
|
|
8736
8765
|
var runInNewContext = exports10.runInNewContext;
|
|
8737
8766
|
var runInThisContext = exports10.runInThisContext;
|
|
8738
8767
|
|
|
8739
|
-
// node_modules
|
|
8768
|
+
// node_modules/@jspm/core/nodelibs/browser/crypto.js
|
|
8740
8769
|
var exports$3H = {};
|
|
8741
8770
|
var _dewExec$3G = false;
|
|
8742
8771
|
var _global$1e = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -11471,7 +11500,7 @@ function dew$30() {
|
|
|
11471
11500
|
return [t0, t1, t22, t32];
|
|
11472
11501
|
}
|
|
11473
11502
|
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
11474
|
-
var G3 =
|
|
11503
|
+
var G3 = function() {
|
|
11475
11504
|
var d4 = new Array(256);
|
|
11476
11505
|
for (var j4 = 0; j4 < 256; j4++) {
|
|
11477
11506
|
if (j4 < 128) {
|
|
@@ -11517,7 +11546,7 @@ function dew$30() {
|
|
|
11517
11546
|
SUB_MIX,
|
|
11518
11547
|
INV_SUB_MIX
|
|
11519
11548
|
};
|
|
11520
|
-
}
|
|
11549
|
+
}();
|
|
11521
11550
|
function AES(key) {
|
|
11522
11551
|
(this || _global$11)._key = asUInt32Array(key);
|
|
11523
11552
|
this._reset();
|
|
@@ -18732,7 +18761,7 @@ function dew$d$2() {
|
|
|
18732
18761
|
function copyBuffer(src, target, offset) {
|
|
18733
18762
|
Buffer3.prototype.copy.call(src, target, offset);
|
|
18734
18763
|
}
|
|
18735
|
-
exports$d$2 = /* @__PURE__ */
|
|
18764
|
+
exports$d$2 = /* @__PURE__ */ function() {
|
|
18736
18765
|
function BufferList() {
|
|
18737
18766
|
_classCallCheck(this, BufferList);
|
|
18738
18767
|
this.head = null;
|
|
@@ -18896,7 +18925,7 @@ function dew$d$2() {
|
|
|
18896
18925
|
}
|
|
18897
18926
|
}]);
|
|
18898
18927
|
return BufferList;
|
|
18899
|
-
}
|
|
18928
|
+
}();
|
|
18900
18929
|
return exports$d$2;
|
|
18901
18930
|
}
|
|
18902
18931
|
var exports$c$2 = {};
|
|
@@ -20595,11 +20624,11 @@ function dew$3$2() {
|
|
|
20595
20624
|
});
|
|
20596
20625
|
for (var i5 in stream2) {
|
|
20597
20626
|
if (this[i5] === void 0 && typeof stream2[i5] === "function") {
|
|
20598
|
-
this[i5] = /* @__PURE__ */
|
|
20627
|
+
this[i5] = /* @__PURE__ */ function methodWrap(method) {
|
|
20599
20628
|
return function methodWrapReturnFunction() {
|
|
20600
20629
|
return stream2[method].apply(stream2, arguments);
|
|
20601
20630
|
};
|
|
20602
|
-
}
|
|
20631
|
+
}(i5);
|
|
20603
20632
|
}
|
|
20604
20633
|
}
|
|
20605
20634
|
for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
|
|
@@ -22766,7 +22795,7 @@ function dew$25() {
|
|
|
22766
22795
|
return [t0, t1, t22, t32];
|
|
22767
22796
|
}
|
|
22768
22797
|
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
22769
|
-
var G3 =
|
|
22798
|
+
var G3 = function() {
|
|
22770
22799
|
var d4 = new Array(256);
|
|
22771
22800
|
for (var j4 = 0; j4 < 256; j4++) {
|
|
22772
22801
|
if (j4 < 128) {
|
|
@@ -22812,7 +22841,7 @@ function dew$25() {
|
|
|
22812
22841
|
SUB_MIX,
|
|
22813
22842
|
INV_SUB_MIX
|
|
22814
22843
|
};
|
|
22815
|
-
}
|
|
22844
|
+
}();
|
|
22816
22845
|
function AES(key) {
|
|
22817
22846
|
(this || _global$F)._key = asUInt32Array(key);
|
|
22818
22847
|
this._reset();
|
|
@@ -29881,9 +29910,9 @@ function n$q(e7, n5, r5) {
|
|
|
29881
29910
|
r5 || (r5 = Error);
|
|
29882
29911
|
class o5 extends r5 {
|
|
29883
29912
|
constructor(e8, t5, r6) {
|
|
29884
|
-
super(
|
|
29913
|
+
super(function(e9, t6, r7) {
|
|
29885
29914
|
return "string" == typeof n5 ? n5 : n5(e9, t6, r7);
|
|
29886
|
-
}
|
|
29915
|
+
}(e8, t5, r6));
|
|
29887
29916
|
}
|
|
29888
29917
|
}
|
|
29889
29918
|
o5.prototype.name = r5.name, o5.prototype.code = e7, t$c[e7] = o5;
|
|
@@ -29895,28 +29924,28 @@ function r$h(e7, t5) {
|
|
|
29895
29924
|
}
|
|
29896
29925
|
return `of ${t5} ${String(e7)}`;
|
|
29897
29926
|
}
|
|
29898
|
-
n$q("ERR_INVALID_OPT_VALUE",
|
|
29927
|
+
n$q("ERR_INVALID_OPT_VALUE", function(e7, t5) {
|
|
29899
29928
|
return 'The value "' + t5 + '" is invalid for option "' + e7 + '"';
|
|
29900
|
-
}
|
|
29929
|
+
}, TypeError), n$q("ERR_INVALID_ARG_TYPE", function(e7, t5, n5) {
|
|
29901
29930
|
let o5;
|
|
29902
29931
|
var E4;
|
|
29903
29932
|
let u5;
|
|
29904
|
-
if ("string" == typeof t5 && (E4 = "not ", t5.substr(0, E4.length) === E4) ? (o5 = "must not be", t5 = t5.replace(/^not /, "")) : o5 = "must be",
|
|
29933
|
+
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) {
|
|
29905
29934
|
return (void 0 === n6 || n6 > e8.length) && (n6 = e8.length), e8.substring(n6 - t6.length, n6) === t6;
|
|
29906
|
-
}
|
|
29935
|
+
}(e7, " argument")) u5 = `The ${e7} ${o5} ${r$h(t5, "type")}`;
|
|
29907
29936
|
else {
|
|
29908
|
-
u5 = `The "${e7}" ${
|
|
29937
|
+
u5 = `The "${e7}" ${function(e8, t6, n6) {
|
|
29909
29938
|
return "number" != typeof n6 && (n6 = 0), !(n6 + t6.length > e8.length) && -1 !== e8.indexOf(t6, n6);
|
|
29910
|
-
}
|
|
29939
|
+
}(e7, ".") ? "property" : "argument"} ${o5} ${r$h(t5, "type")}`;
|
|
29911
29940
|
}
|
|
29912
29941
|
return u5 += `. Received type ${typeof n5}`, u5;
|
|
29913
|
-
}
|
|
29942
|
+
}, TypeError), n$q("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n$q("ERR_METHOD_NOT_IMPLEMENTED", function(e7) {
|
|
29914
29943
|
return "The " + e7 + " method is not implemented";
|
|
29915
|
-
})
|
|
29944
|
+
}), n$q("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), n$q("ERR_STREAM_DESTROYED", function(e7) {
|
|
29916
29945
|
return "Cannot call " + e7 + " after a stream was destroyed";
|
|
29917
|
-
})
|
|
29946
|
+
}), 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) {
|
|
29918
29947
|
return "Unknown encoding: " + e7;
|
|
29919
|
-
}
|
|
29948
|
+
}, TypeError), n$q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), e$1$12.codes = t$c;
|
|
29920
29949
|
var r$1$1 = function() {
|
|
29921
29950
|
throw new Error("Readable.from is not available in the browser");
|
|
29922
29951
|
};
|
|
@@ -29945,9 +29974,9 @@ function u$p(e7, t5) {
|
|
|
29945
29974
|
var n5 = Object.keys(e7);
|
|
29946
29975
|
if (Object.getOwnPropertySymbols) {
|
|
29947
29976
|
var r5 = Object.getOwnPropertySymbols(e7);
|
|
29948
|
-
t5 && (r5 = r5.filter(
|
|
29977
|
+
t5 && (r5 = r5.filter(function(t6) {
|
|
29949
29978
|
return Object.getOwnPropertyDescriptor(e7, t6).enumerable;
|
|
29950
|
-
}))
|
|
29979
|
+
})), n5.push.apply(n5, r5);
|
|
29951
29980
|
}
|
|
29952
29981
|
return n5;
|
|
29953
29982
|
}
|
|
@@ -29963,11 +29992,11 @@ function h$l(e7, t5) {
|
|
|
29963
29992
|
var c$n = e$1$1.Buffer;
|
|
29964
29993
|
var b$j = X.inspect;
|
|
29965
29994
|
var p$s = b$j && b$j.custom || "inspect";
|
|
29966
|
-
var g$h =
|
|
29995
|
+
var g$h = function() {
|
|
29967
29996
|
function e7() {
|
|
29968
|
-
!
|
|
29997
|
+
!function(e8, t6) {
|
|
29969
29998
|
if (!(e8 instanceof t6)) throw new TypeError("Cannot call a class as a function");
|
|
29970
|
-
}
|
|
29999
|
+
}(this, e7), this.head = null, this.tail = null, this.length = 0;
|
|
29971
30000
|
}
|
|
29972
30001
|
var t5, n5;
|
|
29973
30002
|
return t5 = e7, (n5 = [{ key: "push", value: function(e8) {
|
|
@@ -30019,19 +30048,19 @@ var g$h = (function() {
|
|
|
30019
30048
|
}
|
|
30020
30049
|
return this.length -= r5, t6;
|
|
30021
30050
|
} }, { key: p$s, value: function(e8, t6) {
|
|
30022
|
-
return b$j(this,
|
|
30051
|
+
return b$j(this, function(e9) {
|
|
30023
30052
|
for (var t7 = 1; t7 < arguments.length; t7++) {
|
|
30024
30053
|
var n6 = null != arguments[t7] ? arguments[t7] : {};
|
|
30025
|
-
t7 % 2 ? u$p(Object(n6), true).forEach(
|
|
30054
|
+
t7 % 2 ? u$p(Object(n6), true).forEach(function(t8) {
|
|
30026
30055
|
f$v(e9, t8, n6[t8]);
|
|
30027
|
-
})
|
|
30056
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : u$p(Object(n6)).forEach(function(t8) {
|
|
30028
30057
|
Object.defineProperty(e9, t8, Object.getOwnPropertyDescriptor(n6, t8));
|
|
30029
|
-
})
|
|
30058
|
+
});
|
|
30030
30059
|
}
|
|
30031
30060
|
return e9;
|
|
30032
|
-
}
|
|
30061
|
+
}({}, t6, { depth: 0, customInspect: false }));
|
|
30033
30062
|
} }]) && h$l(t5.prototype, n5), e7;
|
|
30034
|
-
}
|
|
30063
|
+
}();
|
|
30035
30064
|
var y$n = T$1;
|
|
30036
30065
|
function w$j(e7, t5) {
|
|
30037
30066
|
_$h(e7, t5), v$k(e7);
|
|
@@ -30044,9 +30073,9 @@ function _$h(e7, t5) {
|
|
|
30044
30073
|
}
|
|
30045
30074
|
var m$m = { destroy: function(e7, t5) {
|
|
30046
30075
|
var n5 = this, r5 = this._readableState && this._readableState.destroyed, i5 = this._writableState && this._writableState.destroyed;
|
|
30047
|
-
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,
|
|
30076
|
+
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) {
|
|
30048
30077
|
!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);
|
|
30049
|
-
})
|
|
30078
|
+
}), this);
|
|
30050
30079
|
}, undestroy: function() {
|
|
30051
30080
|
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);
|
|
30052
30081
|
}, errorOrDestroy: function(e7, t5) {
|
|
@@ -30055,9 +30084,9 @@ var m$m = { destroy: function(e7, t5) {
|
|
|
30055
30084
|
} };
|
|
30056
30085
|
var S$e = e$1$12.codes.ERR_INVALID_OPT_VALUE;
|
|
30057
30086
|
var R$7 = { getHighWaterMark: function(e7, t5, n5, r5) {
|
|
30058
|
-
var i5 =
|
|
30087
|
+
var i5 = function(e8, t6, n6) {
|
|
30059
30088
|
return null != e8.highWaterMark ? e8.highWaterMark : t6 ? e8[n6] : null;
|
|
30060
|
-
}
|
|
30089
|
+
}(t5, r5, n5);
|
|
30061
30090
|
if (null != i5) {
|
|
30062
30091
|
if (!isFinite(i5) || Math.floor(i5) !== i5 || i5 < 0) throw new S$e(r5 ? n5 : "highWaterMark", i5);
|
|
30063
30092
|
return Math.floor(i5);
|
|
@@ -30070,7 +30099,7 @@ function E$e() {
|
|
|
30070
30099
|
var M$a;
|
|
30071
30100
|
var j$a = function e4(t5, n5, r5) {
|
|
30072
30101
|
if ("function" == typeof n5) return e4(t5, null, n5);
|
|
30073
|
-
n5 || (n5 = {}), r5 = /* @__PURE__ */
|
|
30102
|
+
n5 || (n5 = {}), r5 = /* @__PURE__ */ function(e7) {
|
|
30074
30103
|
var t6 = false;
|
|
30075
30104
|
return function() {
|
|
30076
30105
|
if (!t6) {
|
|
@@ -30079,7 +30108,7 @@ var j$a = function e4(t5, n5, r5) {
|
|
|
30079
30108
|
e7.apply(this, r6);
|
|
30080
30109
|
}
|
|
30081
30110
|
};
|
|
30082
|
-
}
|
|
30111
|
+
}(r5 || E$e);
|
|
30083
30112
|
var i5 = n5.readable || false !== n5.readable && t5.readable, a5 = n5.writable || false !== n5.writable && t5.writable, o5 = function() {
|
|
30084
30113
|
t5.writable || l5();
|
|
30085
30114
|
}, s5 = t5._writableState && t5._writableState.finished, l5 = function() {
|
|
@@ -30094,9 +30123,9 @@ var j$a = function e4(t5, n5, r5) {
|
|
|
30094
30123
|
}, c5 = function() {
|
|
30095
30124
|
t5.req.on("finish", l5);
|
|
30096
30125
|
};
|
|
30097
|
-
return !
|
|
30126
|
+
return !function(e7) {
|
|
30098
30127
|
return e7.setHeader && "function" == typeof e7.abort;
|
|
30099
|
-
}
|
|
30128
|
+
}(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() {
|
|
30100
30129
|
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);
|
|
30101
30130
|
};
|
|
30102
30131
|
};
|
|
@@ -30125,58 +30154,58 @@ function I$b(e7) {
|
|
|
30125
30154
|
function N$7(e7) {
|
|
30126
30155
|
O$8.nextTick(I$b, e7);
|
|
30127
30156
|
}
|
|
30128
|
-
var U$a = Object.getPrototypeOf(
|
|
30129
|
-
})
|
|
30157
|
+
var U$a = Object.getPrototypeOf(function() {
|
|
30158
|
+
});
|
|
30130
30159
|
var H$7 = Object.setPrototypeOf((T$8(M$a = { get stream() {
|
|
30131
30160
|
return this[W$5];
|
|
30132
30161
|
}, next: function() {
|
|
30133
30162
|
var e7 = this, t5 = this[D$9];
|
|
30134
30163
|
if (null !== t5) return Promise.reject(t5);
|
|
30135
30164
|
if (this[C$9]) return Promise.resolve(B$c(void 0, true));
|
|
30136
|
-
if (this[W$5].destroyed) return new Promise(
|
|
30137
|
-
O$8.nextTick(
|
|
30165
|
+
if (this[W$5].destroyed) return new Promise(function(t6, n6) {
|
|
30166
|
+
O$8.nextTick(function() {
|
|
30138
30167
|
e7[D$9] ? n6(e7[D$9]) : t6(B$c(void 0, true));
|
|
30139
|
-
})
|
|
30140
|
-
})
|
|
30168
|
+
});
|
|
30169
|
+
});
|
|
30141
30170
|
var n5, r5 = this[A$c];
|
|
30142
|
-
if (r5) n5 = new Promise(/* @__PURE__ */
|
|
30171
|
+
if (r5) n5 = new Promise(/* @__PURE__ */ function(e8, t6) {
|
|
30143
30172
|
return function(n6, r6) {
|
|
30144
|
-
e8.then(
|
|
30173
|
+
e8.then(function() {
|
|
30145
30174
|
if (t6[C$9]) return n6(B$c(void 0, true)), void 0;
|
|
30146
30175
|
t6[q$8](n6, r6);
|
|
30147
|
-
}
|
|
30176
|
+
}, r6);
|
|
30148
30177
|
};
|
|
30149
|
-
}
|
|
30178
|
+
}(r5, this));
|
|
30150
30179
|
else {
|
|
30151
30180
|
var i5 = this[W$5].read();
|
|
30152
30181
|
if (null !== i5) return Promise.resolve(B$c(i5, false));
|
|
30153
30182
|
n5 = new Promise(this[q$8]);
|
|
30154
30183
|
}
|
|
30155
30184
|
return this[A$c] = n5, n5;
|
|
30156
|
-
} }, Symbol.asyncIterator,
|
|
30185
|
+
} }, Symbol.asyncIterator, function() {
|
|
30157
30186
|
return this;
|
|
30158
|
-
})
|
|
30187
|
+
}), T$8(M$a, "return", function() {
|
|
30159
30188
|
var e7 = this;
|
|
30160
|
-
return new Promise(
|
|
30161
|
-
e7[W$5].destroy(null,
|
|
30189
|
+
return new Promise(function(t5, n5) {
|
|
30190
|
+
e7[W$5].destroy(null, function(e8) {
|
|
30162
30191
|
if (e8) return n5(e8), void 0;
|
|
30163
30192
|
t5(B$c(void 0, true));
|
|
30164
|
-
})
|
|
30165
|
-
})
|
|
30166
|
-
})
|
|
30193
|
+
});
|
|
30194
|
+
});
|
|
30195
|
+
}), M$a), U$a);
|
|
30167
30196
|
var F$8 = function(e7) {
|
|
30168
30197
|
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) {
|
|
30169
30198
|
var r5 = n5[W$5].read();
|
|
30170
30199
|
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);
|
|
30171
30200
|
}, writable: true }), t5));
|
|
30172
|
-
return n5[A$c] = null, P$8(e7,
|
|
30201
|
+
return n5[A$c] = null, P$8(e7, function(e8) {
|
|
30173
30202
|
if (e8 && "ERR_STREAM_PREMATURE_CLOSE" !== e8.code) {
|
|
30174
30203
|
var t6 = n5[L$8];
|
|
30175
30204
|
return null !== t6 && (n5[A$c] = null, n5[x$a] = null, n5[L$8] = null, t6(e8)), n5[D$9] = e8, void 0;
|
|
30176
30205
|
}
|
|
30177
30206
|
var r5 = n5[x$a];
|
|
30178
30207
|
null !== r5 && (n5[A$c] = null, n5[x$a] = null, n5[L$8] = null, r5(B$c(void 0, true))), n5[C$9] = true;
|
|
30179
|
-
})
|
|
30208
|
+
}), e7.on("readable", N$7.bind(null, n5)), n5;
|
|
30180
30209
|
};
|
|
30181
30210
|
var V$6 = {};
|
|
30182
30211
|
var G$5 = false;
|
|
@@ -30208,23 +30237,23 @@ function K$8() {
|
|
|
30208
30237
|
function A4(e7, t5, n5, r5, i5) {
|
|
30209
30238
|
p5("readableAddChunk", t5);
|
|
30210
30239
|
var a5, o5 = e7._readableState;
|
|
30211
|
-
if (null === t5) o5.reading = false,
|
|
30240
|
+
if (null === t5) o5.reading = false, function(e8, t6) {
|
|
30212
30241
|
if (p5("onEofChunk"), t6.ended) return;
|
|
30213
30242
|
if (t6.decoder) {
|
|
30214
30243
|
var n6 = t6.decoder.end();
|
|
30215
30244
|
n6 && n6.length && (t6.buffer.push(n6), t6.length += t6.objectMode ? 1 : n6.length);
|
|
30216
30245
|
}
|
|
30217
30246
|
t6.ended = true, t6.sync ? B4(e8) : (t6.needReadable = false, t6.emittedReadable || (t6.emittedReadable = true, I4(e8)));
|
|
30218
|
-
}
|
|
30219
|
-
else if (i5 || (a5 =
|
|
30247
|
+
}(e7, o5);
|
|
30248
|
+
else if (i5 || (a5 = function(e8, t6) {
|
|
30220
30249
|
var n6;
|
|
30221
30250
|
r6 = t6, c5.isBuffer(r6) || r6 instanceof b4 || "string" == typeof t6 || void 0 === t6 || e8.objectMode || (n6 = new j4("chunk", ["string", "Buffer", "Uint8Array"], t6));
|
|
30222
30251
|
var r6;
|
|
30223
30252
|
return n6;
|
|
30224
|
-
}
|
|
30225
|
-
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 =
|
|
30253
|
+
}(o5, t5)), a5) x4(e7, a5);
|
|
30254
|
+
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = function(e8) {
|
|
30226
30255
|
return c5.from(e8);
|
|
30227
|
-
}
|
|
30256
|
+
}(t5)), r5) o5.endEmitted ? x4(e7, new P4()) : q3(e7, o5, t5, true);
|
|
30228
30257
|
else if (o5.ended) x4(e7, new O4());
|
|
30229
30258
|
else {
|
|
30230
30259
|
if (o5.destroyed) return false;
|
|
@@ -30257,9 +30286,9 @@ function K$8() {
|
|
|
30257
30286
|
return this._readableState.buffer.clear(), "" !== r5 && this._readableState.buffer.push(r5), this._readableState.length = r5.length, this;
|
|
30258
30287
|
};
|
|
30259
30288
|
function W3(e7, t5) {
|
|
30260
|
-
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 =
|
|
30289
|
+
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) {
|
|
30261
30290
|
return e8 >= 1073741824 ? e8 = 1073741824 : (e8--, e8 |= e8 >>> 1, e8 |= e8 >>> 2, e8 |= e8 >>> 4, e8 |= e8 >>> 8, e8 |= e8 >>> 16, e8++), e8;
|
|
30262
|
-
}
|
|
30291
|
+
}(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
|
|
30263
30292
|
}
|
|
30264
30293
|
function B4(e7) {
|
|
30265
30294
|
var t5 = e7._readableState;
|
|
@@ -30341,12 +30370,12 @@ function K$8() {
|
|
|
30341
30370
|
p5("onend"), e7.end();
|
|
30342
30371
|
}
|
|
30343
30372
|
r5.endEmitted ? u5.nextTick(i5) : n5.once("end", i5), e7.on("unpipe", a5);
|
|
30344
|
-
var s5 = /* @__PURE__ */
|
|
30373
|
+
var s5 = /* @__PURE__ */ function(e8) {
|
|
30345
30374
|
return function() {
|
|
30346
30375
|
var t6 = e8._readableState;
|
|
30347
30376
|
p5("pipeOnDrain", t6.awaitDrain), t6.awaitDrain && t6.awaitDrain--, 0 === t6.awaitDrain && f6(e8, "data") && (t6.flowing = true, J3(e8));
|
|
30348
30377
|
};
|
|
30349
|
-
}
|
|
30378
|
+
}(n5);
|
|
30350
30379
|
e7.on("drain", s5);
|
|
30351
30380
|
var l5 = false;
|
|
30352
30381
|
function d5(t6) {
|
|
@@ -30366,10 +30395,10 @@ function K$8() {
|
|
|
30366
30395
|
function g4() {
|
|
30367
30396
|
p5("unpipe"), n5.unpipe(e7);
|
|
30368
30397
|
}
|
|
30369
|
-
return n5.on("data", d5),
|
|
30398
|
+
return n5.on("data", d5), function(e8, t6, n6) {
|
|
30370
30399
|
if ("function" == typeof e8.prependListener) return e8.prependListener(t6, n6);
|
|
30371
30400
|
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);
|
|
30372
|
-
}
|
|
30401
|
+
}(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
|
|
30373
30402
|
}, C4.prototype.unpipe = function(e7) {
|
|
30374
30403
|
var t5 = this._readableState, n5 = { hasUnpiped: false };
|
|
30375
30404
|
if (0 === t5.pipesCount) return this;
|
|
@@ -30393,26 +30422,26 @@ function K$8() {
|
|
|
30393
30422
|
return "readable" !== e7 && void 0 !== e7 || u5.nextTick(H3, this), t5;
|
|
30394
30423
|
}, C4.prototype.resume = function() {
|
|
30395
30424
|
var e7 = this._readableState;
|
|
30396
|
-
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening,
|
|
30425
|
+
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening, function(e8, t5) {
|
|
30397
30426
|
t5.resumeScheduled || (t5.resumeScheduled = true, u5.nextTick(z4, e8, t5));
|
|
30398
|
-
}
|
|
30427
|
+
}(this, e7)), e7.paused = false, this;
|
|
30399
30428
|
}, C4.prototype.pause = function() {
|
|
30400
30429
|
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;
|
|
30401
30430
|
}, C4.prototype.wrap = function(e7) {
|
|
30402
30431
|
var t5 = this, n5 = this._readableState, r5 = false;
|
|
30403
|
-
for (var i5 in e7.on("end",
|
|
30432
|
+
for (var i5 in e7.on("end", function() {
|
|
30404
30433
|
if (p5("wrapped end"), n5.decoder && !n5.ended) {
|
|
30405
30434
|
var e8 = n5.decoder.end();
|
|
30406
30435
|
e8 && e8.length && t5.push(e8);
|
|
30407
30436
|
}
|
|
30408
30437
|
t5.push(null);
|
|
30409
|
-
})
|
|
30438
|
+
}), e7.on("data", function(i6) {
|
|
30410
30439
|
(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()));
|
|
30411
|
-
})
|
|
30440
|
+
}), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ function(t6) {
|
|
30412
30441
|
return function() {
|
|
30413
30442
|
return e7[t6].apply(e7, arguments);
|
|
30414
30443
|
};
|
|
30415
|
-
}
|
|
30444
|
+
}(i5));
|
|
30416
30445
|
for (var a5 = 0; a5 < L4.length; a5++) e7.on(L4[a5], this.emit.bind(this, L4[a5]));
|
|
30417
30446
|
return this._read = function(t6) {
|
|
30418
30447
|
p5("wrapped _read", t6), r5 && (r5 = false, e7.resume());
|
|
@@ -30443,7 +30472,7 @@ function X$4() {
|
|
|
30443
30472
|
function s5(e7) {
|
|
30444
30473
|
var t5 = this;
|
|
30445
30474
|
this.next = null, this.entry = null, this.finish = function() {
|
|
30446
|
-
!
|
|
30475
|
+
!function(e8, t6, n5) {
|
|
30447
30476
|
var r6 = e8.entry;
|
|
30448
30477
|
e8.entry = null;
|
|
30449
30478
|
for (; r6; ) {
|
|
@@ -30451,7 +30480,7 @@ function X$4() {
|
|
|
30451
30480
|
t6.pendingcb--, i5(n5), r6 = r6.next;
|
|
30452
30481
|
}
|
|
30453
30482
|
t6.corkedRequestsFree.next = e8;
|
|
30454
|
-
}
|
|
30483
|
+
}(t5, e7);
|
|
30455
30484
|
};
|
|
30456
30485
|
}
|
|
30457
30486
|
z$9 = P4, P4.WritableState = T4;
|
|
@@ -30464,19 +30493,19 @@ function X$4() {
|
|
|
30464
30493
|
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;
|
|
30465
30494
|
var a5 = false === t5.decodeStrings;
|
|
30466
30495
|
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) {
|
|
30467
|
-
!
|
|
30496
|
+
!function(e8, t6) {
|
|
30468
30497
|
var n6 = e8._writableState, i6 = n6.sync, a6 = n6.writecb;
|
|
30469
30498
|
if ("function" != typeof a6) throw new v5();
|
|
30470
|
-
if (
|
|
30499
|
+
if (function(e9) {
|
|
30471
30500
|
e9.writing = false, e9.writecb = null, e9.length -= e9.writelen, e9.writelen = 0;
|
|
30472
|
-
}
|
|
30501
|
+
}(n6), t6) !function(e9, t7, n7, i7, a7) {
|
|
30473
30502
|
--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));
|
|
30474
|
-
}
|
|
30503
|
+
}(e8, n6, i6, t6, a6);
|
|
30475
30504
|
else {
|
|
30476
30505
|
var o5 = C4(n6) || e8.destroyed;
|
|
30477
30506
|
o5 || n6.corked || n6.bufferProcessing || !n6.bufferedRequest || D4(e8, n6), i6 ? r5.nextTick(L4, e8, n6, o5, a6) : L4(e8, n6, o5, a6);
|
|
30478
30507
|
}
|
|
30479
|
-
}
|
|
30508
|
+
}(n5, e7);
|
|
30480
30509
|
}, 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);
|
|
30481
30510
|
}
|
|
30482
30511
|
function P4(t5) {
|
|
@@ -30488,9 +30517,9 @@ function X$4() {
|
|
|
30488
30517
|
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;
|
|
30489
30518
|
}
|
|
30490
30519
|
function L4(e7, t5, n5, r6) {
|
|
30491
|
-
n5 || !
|
|
30520
|
+
n5 || !function(e8, t6) {
|
|
30492
30521
|
0 === t6.length && t6.needDrain && (t6.needDrain = false, e8.emit("drain"));
|
|
30493
|
-
}
|
|
30522
|
+
}(e7, t5), t5.pendingcb--, r6(), q3(e7, t5);
|
|
30494
30523
|
}
|
|
30495
30524
|
function D4(e7, t5) {
|
|
30496
30525
|
t5.bufferProcessing = true;
|
|
@@ -30513,15 +30542,15 @@ function X$4() {
|
|
|
30513
30542
|
return e7.ending && 0 === e7.length && null === e7.bufferedRequest && !e7.finished && !e7.writing;
|
|
30514
30543
|
}
|
|
30515
30544
|
function A4(e7, t5) {
|
|
30516
|
-
e7._final(
|
|
30545
|
+
e7._final(function(n5) {
|
|
30517
30546
|
t5.pendingcb--, n5 && j4(e7, n5), t5.prefinished = true, e7.emit("prefinish"), q3(e7, t5);
|
|
30518
|
-
})
|
|
30547
|
+
});
|
|
30519
30548
|
}
|
|
30520
30549
|
function q3(e7, t5) {
|
|
30521
30550
|
var n5 = C4(t5);
|
|
30522
|
-
if (n5 && (!
|
|
30551
|
+
if (n5 && (!function(e8, t6) {
|
|
30523
30552
|
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)));
|
|
30524
|
-
}
|
|
30553
|
+
}(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
|
|
30525
30554
|
var i5 = e7._readableState;
|
|
30526
30555
|
(!i5 || i5.autoDestroy && i5.endEmitted) && e7.destroy();
|
|
30527
30556
|
}
|
|
@@ -30530,14 +30559,14 @@ function X$4() {
|
|
|
30530
30559
|
return t$2(P4, u5), T4.prototype.getBuffer = function() {
|
|
30531
30560
|
for (var e7 = this.bufferedRequest, t5 = []; e7; ) t5.push(e7), e7 = e7.next;
|
|
30532
30561
|
return t5;
|
|
30533
|
-
},
|
|
30562
|
+
}, function() {
|
|
30534
30563
|
try {
|
|
30535
|
-
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate(
|
|
30564
|
+
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate(function() {
|
|
30536
30565
|
return this.getBuffer();
|
|
30537
|
-
}
|
|
30566
|
+
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
30538
30567
|
} catch (e7) {
|
|
30539
30568
|
}
|
|
30540
|
-
}
|
|
30569
|
+
}(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(P4, Symbol.hasInstance, { value: function(e7) {
|
|
30541
30570
|
return !!c5.call(this, e7) || this === P4 && (e7 && e7._writableState instanceof T4);
|
|
30542
30571
|
} })) : c5 = function(e7) {
|
|
30543
30572
|
return e7 instanceof this;
|
|
@@ -30545,20 +30574,20 @@ function X$4() {
|
|
|
30545
30574
|
j4(this, new _4());
|
|
30546
30575
|
}, P4.prototype.write = function(e7, t5, n5) {
|
|
30547
30576
|
var i5, a5 = this._writableState, o5 = false, s6 = !a5.objectMode && (i5 = e7, f6.isBuffer(i5) || i5 instanceof h5);
|
|
30548
|
-
return s6 && !f6.isBuffer(e7) && (e7 =
|
|
30577
|
+
return s6 && !f6.isBuffer(e7) && (e7 = function(e8) {
|
|
30549
30578
|
return f6.from(e8);
|
|
30550
|
-
}
|
|
30579
|
+
}(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) {
|
|
30551
30580
|
var n6 = new E4();
|
|
30552
30581
|
j4(e8, n6), r5.nextTick(t6, n6);
|
|
30553
|
-
}
|
|
30582
|
+
}(this, n5) : (s6 || function(e8, t6, n6, i6) {
|
|
30554
30583
|
var a6;
|
|
30555
30584
|
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);
|
|
30556
|
-
}
|
|
30585
|
+
}(this, a5, e7, n5)) && (a5.pendingcb++, o5 = function(e8, t6, n6, r6, i6, a6) {
|
|
30557
30586
|
if (!n6) {
|
|
30558
|
-
var o6 =
|
|
30587
|
+
var o6 = function(e9, t7, n7) {
|
|
30559
30588
|
e9.objectMode || false === e9.decodeStrings || "string" != typeof t7 || (t7 = f6.from(t7, n7));
|
|
30560
30589
|
return t7;
|
|
30561
|
-
}
|
|
30590
|
+
}(t6, r6, i6);
|
|
30562
30591
|
r6 !== o6 && (n6 = true, i6 = "buffer", r6 = o6);
|
|
30563
30592
|
}
|
|
30564
30593
|
var s7 = t6.objectMode ? 1 : r6.length;
|
|
@@ -30570,7 +30599,7 @@ function X$4() {
|
|
|
30570
30599
|
t6.lastBufferedRequest = { chunk: r6, encoding: i6, isBuf: n6, callback: a6, next: null }, d4 ? d4.next = t6.lastBufferedRequest : t6.bufferedRequest = t6.lastBufferedRequest, t6.bufferedRequestCount += 1;
|
|
30571
30600
|
} else x4(e8, t6, false, s7, r6, i6, a6);
|
|
30572
30601
|
return l6;
|
|
30573
|
-
}
|
|
30602
|
+
}(this, a5, s6, e7, t5, n5)), o5;
|
|
30574
30603
|
}, P4.prototype.cork = function() {
|
|
30575
30604
|
this._writableState.corked++;
|
|
30576
30605
|
}, P4.prototype.uncork = function() {
|
|
@@ -30587,10 +30616,10 @@ function X$4() {
|
|
|
30587
30616
|
n5(new w4("_write()"));
|
|
30588
30617
|
}, P4.prototype._writev = null, P4.prototype.end = function(e7, t5, n5) {
|
|
30589
30618
|
var i5 = this._writableState;
|
|
30590
|
-
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 ||
|
|
30619
|
+
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) {
|
|
30591
30620
|
t6.ending = true, q3(e8, t6), n6 && (t6.finished ? r5.nextTick(n6) : e8.once("finish", n6));
|
|
30592
30621
|
t6.ended = true, e8.writable = false;
|
|
30593
|
-
}
|
|
30622
|
+
}(this, i5, n5), this;
|
|
30594
30623
|
}, Object.defineProperty(P4.prototype, "writableLength", { enumerable: false, get: function() {
|
|
30595
30624
|
return this._writableState.length;
|
|
30596
30625
|
} }), Object.defineProperty(P4.prototype, "destroyed", { enumerable: false, get: function() {
|
|
@@ -30646,7 +30675,7 @@ function t$3$1() {
|
|
|
30646
30675
|
}
|
|
30647
30676
|
var n$1$12 = function e5(n5, o5, a5) {
|
|
30648
30677
|
if ("function" == typeof o5) return e5(n5, null, o5);
|
|
30649
|
-
o5 || (o5 = {}), a5 = /* @__PURE__ */
|
|
30678
|
+
o5 || (o5 = {}), a5 = /* @__PURE__ */ function(e7) {
|
|
30650
30679
|
var r5 = false;
|
|
30651
30680
|
return function() {
|
|
30652
30681
|
if (!r5) {
|
|
@@ -30655,7 +30684,7 @@ var n$1$12 = function e5(n5, o5, a5) {
|
|
|
30655
30684
|
e7.apply(this, n6);
|
|
30656
30685
|
}
|
|
30657
30686
|
};
|
|
30658
|
-
}
|
|
30687
|
+
}(a5 || t$3$1);
|
|
30659
30688
|
var i5 = o5.readable || false !== o5.readable && n5.readable, l5 = o5.writable || false !== o5.writable && n5.writable, c5 = function() {
|
|
30660
30689
|
n5.writable || s5();
|
|
30661
30690
|
}, f6 = n5._writableState && n5._writableState.finished, s5 = function() {
|
|
@@ -30670,9 +30699,9 @@ var n$1$12 = function e5(n5, o5, a5) {
|
|
|
30670
30699
|
}, m4 = function() {
|
|
30671
30700
|
n5.req.on("finish", s5);
|
|
30672
30701
|
};
|
|
30673
|
-
return !
|
|
30702
|
+
return !function(e7) {
|
|
30674
30703
|
return e7.setHeader && "function" == typeof e7.abort;
|
|
30675
|
-
}
|
|
30704
|
+
}(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() {
|
|
30676
30705
|
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);
|
|
30677
30706
|
};
|
|
30678
30707
|
};
|
|
@@ -30680,9 +30709,9 @@ function f$1$1(e7, t5) {
|
|
|
30680
30709
|
var n5 = Object.keys(e7);
|
|
30681
30710
|
if (Object.getOwnPropertySymbols) {
|
|
30682
30711
|
var r5 = Object.getOwnPropertySymbols(e7);
|
|
30683
|
-
t5 && (r5 = r5.filter(
|
|
30712
|
+
t5 && (r5 = r5.filter(function(t6) {
|
|
30684
30713
|
return Object.getOwnPropertyDescriptor(e7, t6).enumerable;
|
|
30685
|
-
}))
|
|
30714
|
+
})), n5.push.apply(n5, r5);
|
|
30686
30715
|
}
|
|
30687
30716
|
return n5;
|
|
30688
30717
|
}
|
|
@@ -30698,11 +30727,11 @@ function c$1$12(e7, t5) {
|
|
|
30698
30727
|
var b$1$1 = e$1$1.Buffer;
|
|
30699
30728
|
var p$1$1 = X.inspect;
|
|
30700
30729
|
var g$1$1 = p$1$1 && p$1$1.custom || "inspect";
|
|
30701
|
-
var y$1$1 =
|
|
30730
|
+
var y$1$1 = function() {
|
|
30702
30731
|
function e7() {
|
|
30703
|
-
!
|
|
30732
|
+
!function(e8, t6) {
|
|
30704
30733
|
if (!(e8 instanceof t6)) throw new TypeError("Cannot call a class as a function");
|
|
30705
|
-
}
|
|
30734
|
+
}(this, e7), this.head = null, this.tail = null, this.length = 0;
|
|
30706
30735
|
}
|
|
30707
30736
|
var t5, n5;
|
|
30708
30737
|
return t5 = e7, (n5 = [{ key: "push", value: function(e8) {
|
|
@@ -30754,19 +30783,19 @@ var y$1$1 = (function() {
|
|
|
30754
30783
|
}
|
|
30755
30784
|
return this.length -= r5, t6;
|
|
30756
30785
|
} }, { key: g$1$1, value: function(e8, t6) {
|
|
30757
|
-
return p$1$1(this,
|
|
30786
|
+
return p$1$1(this, function(e9) {
|
|
30758
30787
|
for (var t7 = 1; t7 < arguments.length; t7++) {
|
|
30759
30788
|
var n6 = null != arguments[t7] ? arguments[t7] : {};
|
|
30760
|
-
t7 % 2 ? f$1$1(Object(n6), true).forEach(
|
|
30789
|
+
t7 % 2 ? f$1$1(Object(n6), true).forEach(function(t8) {
|
|
30761
30790
|
h$1$12(e9, t8, n6[t8]);
|
|
30762
|
-
})
|
|
30791
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : f$1$1(Object(n6)).forEach(function(t8) {
|
|
30763
30792
|
Object.defineProperty(e9, t8, Object.getOwnPropertyDescriptor(n6, t8));
|
|
30764
|
-
})
|
|
30793
|
+
});
|
|
30765
30794
|
}
|
|
30766
30795
|
return e9;
|
|
30767
|
-
}
|
|
30796
|
+
}({}, t6, { depth: 0, customInspect: false }));
|
|
30768
30797
|
} }]) && c$1$12(t5.prototype, n5), e7;
|
|
30769
|
-
}
|
|
30798
|
+
}();
|
|
30770
30799
|
var w$1$1 = T$1;
|
|
30771
30800
|
function _$1$1(e7, t5) {
|
|
30772
30801
|
m$1$1(e7, t5), v$1$1(e7);
|
|
@@ -30779,9 +30808,9 @@ function m$1$1(e7, t5) {
|
|
|
30779
30808
|
}
|
|
30780
30809
|
var S$1$1 = { destroy: function(e7, t5) {
|
|
30781
30810
|
var n5 = this, r5 = this._readableState && this._readableState.destroyed, i5 = this._writableState && this._writableState.destroyed;
|
|
30782
|
-
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,
|
|
30811
|
+
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) {
|
|
30783
30812
|
!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);
|
|
30784
|
-
})
|
|
30813
|
+
}), this);
|
|
30785
30814
|
}, undestroy: function() {
|
|
30786
30815
|
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);
|
|
30787
30816
|
}, errorOrDestroy: function(e7, t5) {
|
|
@@ -30791,9 +30820,9 @@ var S$1$1 = { destroy: function(e7, t5) {
|
|
|
30791
30820
|
var R$1$1 = e$1$12.codes.ERR_INVALID_OPT_VALUE;
|
|
30792
30821
|
var k$1$1;
|
|
30793
30822
|
var E$1$1 = { getHighWaterMark: function(e7, t5, n5, r5) {
|
|
30794
|
-
var i5 =
|
|
30823
|
+
var i5 = function(e8, t6, n6) {
|
|
30795
30824
|
return null != e8.highWaterMark ? e8.highWaterMark : t6 ? e8[n6] : null;
|
|
30796
|
-
}
|
|
30825
|
+
}(t5, r5, n5);
|
|
30797
30826
|
if (null != i5) {
|
|
30798
30827
|
if (!isFinite(i5) || Math.floor(i5) !== i5 || i5 < 0) throw new R$1$1(r5 ? n5 : "highWaterMark", i5);
|
|
30799
30828
|
return Math.floor(i5);
|
|
@@ -30825,58 +30854,58 @@ function B$1$1(e7) {
|
|
|
30825
30854
|
function q$1$1(e7) {
|
|
30826
30855
|
M$1$1.nextTick(B$1$1, e7);
|
|
30827
30856
|
}
|
|
30828
|
-
var I$1$1 = Object.getPrototypeOf(
|
|
30829
|
-
})
|
|
30857
|
+
var I$1$1 = Object.getPrototypeOf(function() {
|
|
30858
|
+
});
|
|
30830
30859
|
var N$1$1 = Object.setPrototypeOf((j$1$1(k$1$1 = { get stream() {
|
|
30831
30860
|
return this[A$1$1];
|
|
30832
30861
|
}, next: function() {
|
|
30833
30862
|
var e7 = this, t5 = this[P$1$1];
|
|
30834
30863
|
if (null !== t5) return Promise.reject(t5);
|
|
30835
30864
|
if (this[D$1$1]) return Promise.resolve(W$1$1(void 0, true));
|
|
30836
|
-
if (this[A$1$1].destroyed) return new Promise(
|
|
30837
|
-
M$1$1.nextTick(
|
|
30865
|
+
if (this[A$1$1].destroyed) return new Promise(function(t6, n6) {
|
|
30866
|
+
M$1$1.nextTick(function() {
|
|
30838
30867
|
e7[P$1$1] ? n6(e7[P$1$1]) : t6(W$1$1(void 0, true));
|
|
30839
|
-
})
|
|
30840
|
-
})
|
|
30868
|
+
});
|
|
30869
|
+
});
|
|
30841
30870
|
var n5, r5 = this[L$1$1];
|
|
30842
|
-
if (r5) n5 = new Promise(/* @__PURE__ */
|
|
30871
|
+
if (r5) n5 = new Promise(/* @__PURE__ */ function(e8, t6) {
|
|
30843
30872
|
return function(n6, r6) {
|
|
30844
|
-
e8.then(
|
|
30873
|
+
e8.then(function() {
|
|
30845
30874
|
if (t6[D$1$1]) return n6(W$1$1(void 0, true)), void 0;
|
|
30846
30875
|
t6[C$1$1](n6, r6);
|
|
30847
|
-
}
|
|
30876
|
+
}, r6);
|
|
30848
30877
|
};
|
|
30849
|
-
}
|
|
30878
|
+
}(r5, this));
|
|
30850
30879
|
else {
|
|
30851
30880
|
var i5 = this[A$1$1].read();
|
|
30852
30881
|
if (null !== i5) return Promise.resolve(W$1$1(i5, false));
|
|
30853
30882
|
n5 = new Promise(this[C$1$1]);
|
|
30854
30883
|
}
|
|
30855
30884
|
return this[L$1$1] = n5, n5;
|
|
30856
|
-
} }, Symbol.asyncIterator,
|
|
30885
|
+
} }, Symbol.asyncIterator, function() {
|
|
30857
30886
|
return this;
|
|
30858
|
-
})
|
|
30887
|
+
}), j$1$1(k$1$1, "return", function() {
|
|
30859
30888
|
var e7 = this;
|
|
30860
|
-
return new Promise(
|
|
30861
|
-
e7[A$1$1].destroy(null,
|
|
30889
|
+
return new Promise(function(t5, n5) {
|
|
30890
|
+
e7[A$1$1].destroy(null, function(e8) {
|
|
30862
30891
|
if (e8) return n5(e8), void 0;
|
|
30863
30892
|
t5(W$1$1(void 0, true));
|
|
30864
|
-
})
|
|
30865
|
-
})
|
|
30866
|
-
})
|
|
30893
|
+
});
|
|
30894
|
+
});
|
|
30895
|
+
}), k$1$1), I$1$1);
|
|
30867
30896
|
var U$1$1 = function(e7) {
|
|
30868
30897
|
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) {
|
|
30869
30898
|
var r5 = n5[A$1$1].read();
|
|
30870
30899
|
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);
|
|
30871
30900
|
}, writable: true }), t5));
|
|
30872
|
-
return n5[L$1$1] = null, O$1$1(e7,
|
|
30901
|
+
return n5[L$1$1] = null, O$1$1(e7, function(e8) {
|
|
30873
30902
|
if (e8 && "ERR_STREAM_PREMATURE_CLOSE" !== e8.code) {
|
|
30874
30903
|
var t6 = n5[x$1$1];
|
|
30875
30904
|
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;
|
|
30876
30905
|
}
|
|
30877
30906
|
var r5 = n5[T$1$1];
|
|
30878
30907
|
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;
|
|
30879
|
-
})
|
|
30908
|
+
}), e7.on("readable", q$1$1.bind(null, n5)), n5;
|
|
30880
30909
|
};
|
|
30881
30910
|
var H$1$1 = {};
|
|
30882
30911
|
var F$1$1 = false;
|
|
@@ -30908,23 +30937,23 @@ function G$1$1() {
|
|
|
30908
30937
|
function A4(e7, t5, n5, r5, i5) {
|
|
30909
30938
|
p5("readableAddChunk", t5);
|
|
30910
30939
|
var a5, o5 = e7._readableState;
|
|
30911
|
-
if (null === t5) o5.reading = false,
|
|
30940
|
+
if (null === t5) o5.reading = false, function(e8, t6) {
|
|
30912
30941
|
if (p5("onEofChunk"), t6.ended) return;
|
|
30913
30942
|
if (t6.decoder) {
|
|
30914
30943
|
var n6 = t6.decoder.end();
|
|
30915
30944
|
n6 && n6.length && (t6.buffer.push(n6), t6.length += t6.objectMode ? 1 : n6.length);
|
|
30916
30945
|
}
|
|
30917
30946
|
t6.ended = true, t6.sync ? q3(e8) : (t6.needReadable = false, t6.emittedReadable || (t6.emittedReadable = true, I4(e8)));
|
|
30918
|
-
}
|
|
30919
|
-
else if (i5 || (a5 =
|
|
30947
|
+
}(e7, o5);
|
|
30948
|
+
else if (i5 || (a5 = function(e8, t6) {
|
|
30920
30949
|
var n6;
|
|
30921
30950
|
r6 = t6, c5.isBuffer(r6) || r6 instanceof b4 || "string" == typeof t6 || void 0 === t6 || e8.objectMode || (n6 = new j4("chunk", ["string", "Buffer", "Uint8Array"], t6));
|
|
30922
30951
|
var r6;
|
|
30923
30952
|
return n6;
|
|
30924
|
-
}
|
|
30925
|
-
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 =
|
|
30953
|
+
}(o5, t5)), a5) P4(e7, a5);
|
|
30954
|
+
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = function(e8) {
|
|
30926
30955
|
return c5.from(e8);
|
|
30927
|
-
}
|
|
30956
|
+
}(t5)), r5) o5.endEmitted ? P4(e7, new x4()) : W3(e7, o5, t5, true);
|
|
30928
30957
|
else if (o5.ended) P4(e7, new O4());
|
|
30929
30958
|
else {
|
|
30930
30959
|
if (o5.destroyed) return false;
|
|
@@ -30957,9 +30986,9 @@ function G$1$1() {
|
|
|
30957
30986
|
return this._readableState.buffer.clear(), "" !== r5 && this._readableState.buffer.push(r5), this._readableState.length = r5.length, this;
|
|
30958
30987
|
};
|
|
30959
30988
|
function B4(e7, t5) {
|
|
30960
|
-
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 =
|
|
30989
|
+
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) {
|
|
30961
30990
|
return e8 >= 1073741824 ? e8 = 1073741824 : (e8--, e8 |= e8 >>> 1, e8 |= e8 >>> 2, e8 |= e8 >>> 4, e8 |= e8 >>> 8, e8 |= e8 >>> 16, e8++), e8;
|
|
30962
|
-
}
|
|
30991
|
+
}(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
|
|
30963
30992
|
}
|
|
30964
30993
|
function q3(e7) {
|
|
30965
30994
|
var t5 = e7._readableState;
|
|
@@ -31041,12 +31070,12 @@ function G$1$1() {
|
|
|
31041
31070
|
p5("onend"), e7.end();
|
|
31042
31071
|
}
|
|
31043
31072
|
r5.endEmitted ? u5.nextTick(i5) : n5.once("end", i5), e7.on("unpipe", a5);
|
|
31044
|
-
var s5 = /* @__PURE__ */
|
|
31073
|
+
var s5 = /* @__PURE__ */ function(e8) {
|
|
31045
31074
|
return function() {
|
|
31046
31075
|
var t6 = e8._readableState;
|
|
31047
31076
|
p5("pipeOnDrain", t6.awaitDrain), t6.awaitDrain && t6.awaitDrain--, 0 === t6.awaitDrain && f6(e8, "data") && (t6.flowing = true, J3(e8));
|
|
31048
31077
|
};
|
|
31049
|
-
}
|
|
31078
|
+
}(n5);
|
|
31050
31079
|
e7.on("drain", s5);
|
|
31051
31080
|
var l6 = false;
|
|
31052
31081
|
function d4(t6) {
|
|
@@ -31066,10 +31095,10 @@ function G$1$1() {
|
|
|
31066
31095
|
function g5() {
|
|
31067
31096
|
p5("unpipe"), n5.unpipe(e7);
|
|
31068
31097
|
}
|
|
31069
|
-
return n5.on("data", d4),
|
|
31098
|
+
return n5.on("data", d4), function(e8, t6, n6) {
|
|
31070
31099
|
if ("function" == typeof e8.prependListener) return e8.prependListener(t6, n6);
|
|
31071
31100
|
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);
|
|
31072
|
-
}
|
|
31101
|
+
}(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
|
|
31073
31102
|
}, C4.prototype.unpipe = function(e7) {
|
|
31074
31103
|
var t5 = this._readableState, n5 = { hasUnpiped: false };
|
|
31075
31104
|
if (0 === t5.pipesCount) return this;
|
|
@@ -31093,26 +31122,26 @@ function G$1$1() {
|
|
|
31093
31122
|
return "readable" !== e7 && void 0 !== e7 || u5.nextTick(Y4, this), t5;
|
|
31094
31123
|
}, C4.prototype.resume = function() {
|
|
31095
31124
|
var e7 = this._readableState;
|
|
31096
|
-
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening,
|
|
31125
|
+
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening, function(e8, t5) {
|
|
31097
31126
|
t5.resumeScheduled || (t5.resumeScheduled = true, u5.nextTick(z4, e8, t5));
|
|
31098
|
-
}
|
|
31127
|
+
}(this, e7)), e7.paused = false, this;
|
|
31099
31128
|
}, C4.prototype.pause = function() {
|
|
31100
31129
|
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;
|
|
31101
31130
|
}, C4.prototype.wrap = function(e7) {
|
|
31102
31131
|
var t5 = this, n5 = this._readableState, r5 = false;
|
|
31103
|
-
for (var i5 in e7.on("end",
|
|
31132
|
+
for (var i5 in e7.on("end", function() {
|
|
31104
31133
|
if (p5("wrapped end"), n5.decoder && !n5.ended) {
|
|
31105
31134
|
var e8 = n5.decoder.end();
|
|
31106
31135
|
e8 && e8.length && t5.push(e8);
|
|
31107
31136
|
}
|
|
31108
31137
|
t5.push(null);
|
|
31109
|
-
})
|
|
31138
|
+
}), e7.on("data", function(i6) {
|
|
31110
31139
|
(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()));
|
|
31111
|
-
})
|
|
31140
|
+
}), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ function(t6) {
|
|
31112
31141
|
return function() {
|
|
31113
31142
|
return e7[t6].apply(e7, arguments);
|
|
31114
31143
|
};
|
|
31115
|
-
}
|
|
31144
|
+
}(i5));
|
|
31116
31145
|
for (var a5 = 0; a5 < D4.length; a5++) e7.on(D4[a5], this.emit.bind(this, D4[a5]));
|
|
31117
31146
|
return this._read = function(t6) {
|
|
31118
31147
|
p5("wrapped _read", t6), r5 && (r5 = false, e7.resume());
|
|
@@ -31143,7 +31172,7 @@ function J$1$1() {
|
|
|
31143
31172
|
function s5(e7) {
|
|
31144
31173
|
var t5 = this;
|
|
31145
31174
|
this.next = null, this.entry = null, this.finish = function() {
|
|
31146
|
-
!
|
|
31175
|
+
!function(e8, t6, n5) {
|
|
31147
31176
|
var r6 = e8.entry;
|
|
31148
31177
|
e8.entry = null;
|
|
31149
31178
|
for (; r6; ) {
|
|
@@ -31151,7 +31180,7 @@ function J$1$1() {
|
|
|
31151
31180
|
t6.pendingcb--, i5(n5), r6 = r6.next;
|
|
31152
31181
|
}
|
|
31153
31182
|
t6.corkedRequestsFree.next = e8;
|
|
31154
|
-
}
|
|
31183
|
+
}(t5, e7);
|
|
31155
31184
|
};
|
|
31156
31185
|
}
|
|
31157
31186
|
Y$1$1 = x4, x4.WritableState = T4;
|
|
@@ -31164,19 +31193,19 @@ function J$1$1() {
|
|
|
31164
31193
|
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;
|
|
31165
31194
|
var a5 = false === t5.decodeStrings;
|
|
31166
31195
|
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) {
|
|
31167
|
-
!
|
|
31196
|
+
!function(e8, t6) {
|
|
31168
31197
|
var n6 = e8._writableState, i6 = n6.sync, a6 = n6.writecb;
|
|
31169
31198
|
if ("function" != typeof a6) throw new _4();
|
|
31170
|
-
if (
|
|
31199
|
+
if (function(e9) {
|
|
31171
31200
|
e9.writing = false, e9.writecb = null, e9.length -= e9.writelen, e9.writelen = 0;
|
|
31172
|
-
}
|
|
31201
|
+
}(n6), t6) !function(e9, t7, n7, i7, a7) {
|
|
31173
31202
|
--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));
|
|
31174
|
-
}
|
|
31203
|
+
}(e8, n6, i6, t6, a6);
|
|
31175
31204
|
else {
|
|
31176
31205
|
var o5 = C4(n6) || e8.destroyed;
|
|
31177
31206
|
o5 || n6.corked || n6.bufferProcessing || !n6.bufferedRequest || L4(e8, n6), i6 ? r5.nextTick(D4, e8, n6, o5, a6) : D4(e8, n6, o5, a6);
|
|
31178
31207
|
}
|
|
31179
|
-
}
|
|
31208
|
+
}(n5, e7);
|
|
31180
31209
|
}, 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);
|
|
31181
31210
|
}
|
|
31182
31211
|
function x4(t5) {
|
|
@@ -31188,9 +31217,9 @@ function J$1$1() {
|
|
|
31188
31217
|
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;
|
|
31189
31218
|
}
|
|
31190
31219
|
function D4(e7, t5, n5, r6) {
|
|
31191
|
-
n5 || !
|
|
31220
|
+
n5 || !function(e8, t6) {
|
|
31192
31221
|
0 === t6.length && t6.needDrain && (t6.needDrain = false, e8.emit("drain"));
|
|
31193
|
-
}
|
|
31222
|
+
}(e7, t5), t5.pendingcb--, r6(), W3(e7, t5);
|
|
31194
31223
|
}
|
|
31195
31224
|
function L4(e7, t5) {
|
|
31196
31225
|
t5.bufferProcessing = true;
|
|
@@ -31213,15 +31242,15 @@ function J$1$1() {
|
|
|
31213
31242
|
return e7.ending && 0 === e7.length && null === e7.bufferedRequest && !e7.finished && !e7.writing;
|
|
31214
31243
|
}
|
|
31215
31244
|
function A4(e7, t5) {
|
|
31216
|
-
e7._final(
|
|
31245
|
+
e7._final(function(n5) {
|
|
31217
31246
|
t5.pendingcb--, n5 && j4(e7, n5), t5.prefinished = true, e7.emit("prefinish"), W3(e7, t5);
|
|
31218
|
-
})
|
|
31247
|
+
});
|
|
31219
31248
|
}
|
|
31220
31249
|
function W3(e7, t5) {
|
|
31221
31250
|
var n5 = C4(t5);
|
|
31222
|
-
if (n5 && (!
|
|
31251
|
+
if (n5 && (!function(e8, t6) {
|
|
31223
31252
|
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)));
|
|
31224
|
-
}
|
|
31253
|
+
}(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
|
|
31225
31254
|
var i5 = e7._readableState;
|
|
31226
31255
|
(!i5 || i5.autoDestroy && i5.endEmitted) && e7.destroy();
|
|
31227
31256
|
}
|
|
@@ -31230,14 +31259,14 @@ function J$1$1() {
|
|
|
31230
31259
|
return t$2(x4, d4), T4.prototype.getBuffer = function() {
|
|
31231
31260
|
for (var e7 = this.bufferedRequest, t5 = []; e7; ) t5.push(e7), e7 = e7.next;
|
|
31232
31261
|
return t5;
|
|
31233
|
-
},
|
|
31262
|
+
}, function() {
|
|
31234
31263
|
try {
|
|
31235
|
-
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate(
|
|
31264
|
+
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate(function() {
|
|
31236
31265
|
return this.getBuffer();
|
|
31237
|
-
}
|
|
31266
|
+
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
31238
31267
|
} catch (e7) {
|
|
31239
31268
|
}
|
|
31240
|
-
}
|
|
31269
|
+
}(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(x4, Symbol.hasInstance, { value: function(e7) {
|
|
31241
31270
|
return !!c5.call(this, e7) || this === x4 && (e7 && e7._writableState instanceof T4);
|
|
31242
31271
|
} })) : c5 = function(e7) {
|
|
31243
31272
|
return e7 instanceof this;
|
|
@@ -31245,20 +31274,20 @@ function J$1$1() {
|
|
|
31245
31274
|
j4(this, new v5());
|
|
31246
31275
|
}, x4.prototype.write = function(e7, t5, n5) {
|
|
31247
31276
|
var i5, a5 = this._writableState, o5 = false, s6 = !a5.objectMode && (i5 = e7, f6.isBuffer(i5) || i5 instanceof h5);
|
|
31248
|
-
return s6 && !f6.isBuffer(e7) && (e7 =
|
|
31277
|
+
return s6 && !f6.isBuffer(e7) && (e7 = function(e8) {
|
|
31249
31278
|
return f6.from(e8);
|
|
31250
|
-
}
|
|
31279
|
+
}(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) {
|
|
31251
31280
|
var n6 = new k4();
|
|
31252
31281
|
j4(e8, n6), r5.nextTick(t6, n6);
|
|
31253
|
-
}
|
|
31282
|
+
}(this, n5) : (s6 || function(e8, t6, n6, i6) {
|
|
31254
31283
|
var a6;
|
|
31255
31284
|
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);
|
|
31256
|
-
}
|
|
31285
|
+
}(this, a5, e7, n5)) && (a5.pendingcb++, o5 = function(e8, t6, n6, r6, i6, a6) {
|
|
31257
31286
|
if (!n6) {
|
|
31258
|
-
var o6 =
|
|
31287
|
+
var o6 = function(e9, t7, n7) {
|
|
31259
31288
|
e9.objectMode || false === e9.decodeStrings || "string" != typeof t7 || (t7 = f6.from(t7, n7));
|
|
31260
31289
|
return t7;
|
|
31261
|
-
}
|
|
31290
|
+
}(t6, r6, i6);
|
|
31262
31291
|
r6 !== o6 && (n6 = true, i6 = "buffer", r6 = o6);
|
|
31263
31292
|
}
|
|
31264
31293
|
var s7 = t6.objectMode ? 1 : r6.length;
|
|
@@ -31270,7 +31299,7 @@ function J$1$1() {
|
|
|
31270
31299
|
t6.lastBufferedRequest = { chunk: r6, encoding: i6, isBuf: n6, callback: a6, next: null }, d5 ? d5.next = t6.lastBufferedRequest : t6.bufferedRequest = t6.lastBufferedRequest, t6.bufferedRequestCount += 1;
|
|
31271
31300
|
} else P4(e8, t6, false, s7, r6, i6, a6);
|
|
31272
31301
|
return l6;
|
|
31273
|
-
}
|
|
31302
|
+
}(this, a5, s6, e7, t5, n5)), o5;
|
|
31274
31303
|
}, x4.prototype.cork = function() {
|
|
31275
31304
|
this._writableState.corked++;
|
|
31276
31305
|
}, x4.prototype.uncork = function() {
|
|
@@ -31287,10 +31316,10 @@ function J$1$1() {
|
|
|
31287
31316
|
n5(new w4("_write()"));
|
|
31288
31317
|
}, x4.prototype._writev = null, x4.prototype.end = function(e7, t5, n5) {
|
|
31289
31318
|
var i5 = this._writableState;
|
|
31290
|
-
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 ||
|
|
31319
|
+
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) {
|
|
31291
31320
|
t6.ending = true, W3(e8, t6), n6 && (t6.finished ? r5.nextTick(n6) : e8.once("finish", n6));
|
|
31292
31321
|
t6.ended = true, e8.writable = false;
|
|
31293
|
-
}
|
|
31322
|
+
}(this, i5, n5), this;
|
|
31294
31323
|
}, Object.defineProperty(x4.prototype, "writableLength", { enumerable: false, get: function() {
|
|
31295
31324
|
return this._writableState.length;
|
|
31296
31325
|
} }), Object.defineProperty(x4.prototype, "destroyed", { enumerable: false, get: function() {
|
|
@@ -31365,9 +31394,9 @@ function u$1$12(t5) {
|
|
|
31365
31394
|
}
|
|
31366
31395
|
function m$2$1() {
|
|
31367
31396
|
var t5 = this;
|
|
31368
|
-
"function" != typeof this._flush || this._readableState.destroyed ? _$2$1(this, null, null) : this._flush(
|
|
31397
|
+
"function" != typeof this._flush || this._readableState.destroyed ? _$2$1(this, null, null) : this._flush(function(r5, e7) {
|
|
31369
31398
|
_$2$1(t5, r5, e7);
|
|
31370
|
-
})
|
|
31399
|
+
});
|
|
31371
31400
|
}
|
|
31372
31401
|
function _$2$1(t5, r5, e7) {
|
|
31373
31402
|
if (r5) return t5.emit("error", r5);
|
|
@@ -31389,9 +31418,9 @@ t$2(u$1$12, h$2$1), u$1$12.prototype.push = function(t5, r5) {
|
|
|
31389
31418
|
var r5 = this._transformState;
|
|
31390
31419
|
null === r5.writechunk || r5.transforming ? r5.needTransform = true : (r5.transforming = true, this._transform(r5.writechunk, r5.writeencoding, r5.afterTransform));
|
|
31391
31420
|
}, u$1$12.prototype._destroy = function(t5, r5) {
|
|
31392
|
-
h$2$1.prototype._destroy.call(this, t5,
|
|
31421
|
+
h$2$1.prototype._destroy.call(this, t5, function(t6) {
|
|
31393
31422
|
r5(t6);
|
|
31394
|
-
})
|
|
31423
|
+
});
|
|
31395
31424
|
};
|
|
31396
31425
|
var p$2$1 = n$2$1;
|
|
31397
31426
|
var o$1$12;
|
|
@@ -31413,24 +31442,24 @@ function i$2$1(r5) {
|
|
|
31413
31442
|
if (r5) throw r5;
|
|
31414
31443
|
}
|
|
31415
31444
|
function u$2$1(r5, o5, e7, i5) {
|
|
31416
|
-
i5 = /* @__PURE__ */
|
|
31445
|
+
i5 = /* @__PURE__ */ function(r6) {
|
|
31417
31446
|
var n5 = false;
|
|
31418
31447
|
return function() {
|
|
31419
31448
|
n5 || (n5 = true, r6.apply(void 0, arguments));
|
|
31420
31449
|
};
|
|
31421
|
-
}
|
|
31450
|
+
}(i5);
|
|
31422
31451
|
var u5 = false;
|
|
31423
|
-
r5.on("close",
|
|
31452
|
+
r5.on("close", function() {
|
|
31424
31453
|
u5 = true;
|
|
31425
|
-
})
|
|
31454
|
+
}), void 0 === t$6$1 && (t$6$1 = n$1$12), t$6$1(r5, { readable: o5, writable: e7 }, function(r6) {
|
|
31426
31455
|
if (r6) return i5(r6);
|
|
31427
31456
|
u5 = true, i5();
|
|
31428
|
-
})
|
|
31457
|
+
});
|
|
31429
31458
|
var a5 = false;
|
|
31430
31459
|
return function(n5) {
|
|
31431
|
-
if (!u5 && !a5) return a5 = true,
|
|
31460
|
+
if (!u5 && !a5) return a5 = true, function(r6) {
|
|
31432
31461
|
return r6.setHeader && "function" == typeof r6.abort;
|
|
31433
|
-
}
|
|
31462
|
+
}(r5) ? r5.abort() : "function" == typeof r5.destroy ? r5.destroy() : (i5(n5 || new f$3$1("pipe")), void 0);
|
|
31434
31463
|
};
|
|
31435
31464
|
}
|
|
31436
31465
|
function a$1$12(r5) {
|
|
@@ -31446,12 +31475,12 @@ var v$2$1 = function() {
|
|
|
31446
31475
|
for (var r5 = arguments.length, n5 = new Array(r5), t5 = 0; t5 < r5; t5++) n5[t5] = arguments[t5];
|
|
31447
31476
|
var o5, f6 = p$3$1(n5);
|
|
31448
31477
|
if (Array.isArray(n5[0]) && (n5 = n5[0]), n5.length < 2) throw new e$4$1("streams");
|
|
31449
|
-
var i5 = n5.map(
|
|
31478
|
+
var i5 = n5.map(function(r6, t6) {
|
|
31450
31479
|
var e7 = t6 < n5.length - 1;
|
|
31451
|
-
return u$2$1(r6, e7, t6 > 0,
|
|
31480
|
+
return u$2$1(r6, e7, t6 > 0, function(r7) {
|
|
31452
31481
|
o5 || (o5 = r7), r7 && i5.forEach(a$1$12), e7 || (i5.forEach(a$1$12), f6(o5));
|
|
31453
|
-
})
|
|
31454
|
-
})
|
|
31482
|
+
});
|
|
31483
|
+
});
|
|
31455
31484
|
return n5.reduce(c$2$1);
|
|
31456
31485
|
};
|
|
31457
31486
|
var l$r;
|
|
@@ -33255,7 +33284,7 @@ function dew$1c$1() {
|
|
|
33255
33284
|
return [t0, t1, t22, t32];
|
|
33256
33285
|
}
|
|
33257
33286
|
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
33258
|
-
var G3 =
|
|
33287
|
+
var G3 = function() {
|
|
33259
33288
|
var d4 = new Array(256);
|
|
33260
33289
|
for (var j4 = 0; j4 < 256; j4++) {
|
|
33261
33290
|
if (j4 < 128) {
|
|
@@ -33301,7 +33330,7 @@ function dew$1c$1() {
|
|
|
33301
33330
|
SUB_MIX,
|
|
33302
33331
|
INV_SUB_MIX
|
|
33303
33332
|
};
|
|
33304
|
-
}
|
|
33333
|
+
}();
|
|
33305
33334
|
function AES(key) {
|
|
33306
33335
|
(this || _global$j$1)._key = asUInt32Array(key);
|
|
33307
33336
|
this._reset();
|
|
@@ -39339,7 +39368,7 @@ var forEach2 = function(e7, t5) {
|
|
|
39339
39368
|
if (e7.forEach) return e7.forEach(t5);
|
|
39340
39369
|
for (var n5 = 0; n5 < e7.length; n5++) t5(e7[n5], n5, e7);
|
|
39341
39370
|
};
|
|
39342
|
-
var defineProp2 =
|
|
39371
|
+
var defineProp2 = function() {
|
|
39343
39372
|
try {
|
|
39344
39373
|
return Object.defineProperty({}, "_", {}), function(e7, t5, n5) {
|
|
39345
39374
|
Object.defineProperty(e7, t5, { writable: true, enumerable: false, configurable: true, value: n5 });
|
|
@@ -39349,7 +39378,7 @@ var defineProp2 = (function() {
|
|
|
39349
39378
|
e8[t5] = n5;
|
|
39350
39379
|
};
|
|
39351
39380
|
}
|
|
39352
|
-
}
|
|
39381
|
+
}();
|
|
39353
39382
|
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"];
|
|
39354
39383
|
function Context2() {
|
|
39355
39384
|
}
|
|
@@ -39363,38 +39392,38 @@ Script3.prototype.runInContext = function(e7) {
|
|
|
39363
39392
|
var t5 = document.createElement("iframe");
|
|
39364
39393
|
t5.style || (t5.style = {}), t5.style.display = "none", document.body.appendChild(t5);
|
|
39365
39394
|
var n5 = t5.contentWindow, r5 = n5.eval, o5 = n5.execScript;
|
|
39366
|
-
!r5 && o5 && (o5.call(n5, "null"), r5 = n5.eval), forEach2(Object_keys2(e7),
|
|
39395
|
+
!r5 && o5 && (o5.call(n5, "null"), r5 = n5.eval), forEach2(Object_keys2(e7), function(t6) {
|
|
39367
39396
|
n5[t6] = e7[t6];
|
|
39368
|
-
})
|
|
39397
|
+
}), forEach2(globals2, function(t6) {
|
|
39369
39398
|
e7[t6] && (n5[t6] = e7[t6]);
|
|
39370
|
-
})
|
|
39399
|
+
});
|
|
39371
39400
|
var c5 = Object_keys2(n5), i5 = r5.call(n5, (this || _global$b$1).code);
|
|
39372
|
-
return forEach2(Object_keys2(n5),
|
|
39401
|
+
return forEach2(Object_keys2(n5), function(t6) {
|
|
39373
39402
|
(t6 in e7 || -1 === indexOf2(c5, t6)) && (e7[t6] = n5[t6]);
|
|
39374
|
-
})
|
|
39403
|
+
}), forEach2(globals2, function(t6) {
|
|
39375
39404
|
t6 in e7 || defineProp2(e7, t6, n5[t6]);
|
|
39376
|
-
})
|
|
39405
|
+
}), document.body.removeChild(t5), i5;
|
|
39377
39406
|
}, Script3.prototype.runInThisContext = function() {
|
|
39378
39407
|
return eval((this || _global$b$1).code);
|
|
39379
39408
|
}, Script3.prototype.runInNewContext = function(e7) {
|
|
39380
39409
|
var t5 = Script3.createContext(e7), n5 = this.runInContext(t5);
|
|
39381
|
-
return e7 && forEach2(Object_keys2(t5),
|
|
39410
|
+
return e7 && forEach2(Object_keys2(t5), function(n6) {
|
|
39382
39411
|
e7[n6] = t5[n6];
|
|
39383
|
-
})
|
|
39384
|
-
}, forEach2(Object_keys2(Script3.prototype),
|
|
39412
|
+
}), n5;
|
|
39413
|
+
}, forEach2(Object_keys2(Script3.prototype), function(e7) {
|
|
39385
39414
|
exports$11$1[e7] = Script3[e7] = function(t5) {
|
|
39386
39415
|
var n5 = Script3(t5);
|
|
39387
39416
|
return n5[e7].apply(n5, [].slice.call(arguments, 1));
|
|
39388
39417
|
};
|
|
39389
|
-
})
|
|
39418
|
+
}), exports$11$1.isContext = function(e7) {
|
|
39390
39419
|
return e7 instanceof Context2;
|
|
39391
39420
|
}, exports$11$1.createScript = function(e7) {
|
|
39392
39421
|
return exports$11$1.Script(e7);
|
|
39393
39422
|
}, exports$11$1.createContext = Script3.createContext = function(e7) {
|
|
39394
39423
|
var t5 = new Context2();
|
|
39395
|
-
return "object" == typeof e7 && forEach2(Object_keys2(e7),
|
|
39424
|
+
return "object" == typeof e7 && forEach2(Object_keys2(e7), function(n5) {
|
|
39396
39425
|
t5[n5] = e7[n5];
|
|
39397
|
-
})
|
|
39426
|
+
}), t5;
|
|
39398
39427
|
};
|
|
39399
39428
|
exports$11$1.Script;
|
|
39400
39429
|
exports$11$1.createContext;
|
|
@@ -39412,9 +39441,9 @@ var a4 = f4 && f4.getRandomValues ? function(e7, r5) {
|
|
|
39412
39441
|
var o5 = t4.allocUnsafe(e7);
|
|
39413
39442
|
if (e7 > 0) if (e7 > 65536) for (var a5 = 0; a5 < e7; a5 += 65536) f4.getRandomValues(o5.slice(a5, a5 + 65536));
|
|
39414
39443
|
else f4.getRandomValues(o5);
|
|
39415
|
-
if ("function" == typeof r5) return n4.nextTick(
|
|
39444
|
+
if ("function" == typeof r5) return n4.nextTick(function() {
|
|
39416
39445
|
r5(null, o5);
|
|
39417
|
-
})
|
|
39446
|
+
});
|
|
39418
39447
|
return o5;
|
|
39419
39448
|
} : function() {
|
|
39420
39449
|
throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11");
|
|
@@ -39441,9 +39470,9 @@ t$2(s4, o$13), s4.prototype._transform = function(t5, i5, r5) {
|
|
|
39441
39470
|
}
|
|
39442
39471
|
t5(i5);
|
|
39443
39472
|
}, s4.prototype.update = function(t5, i5) {
|
|
39444
|
-
if (!
|
|
39473
|
+
if (!function(t6, i6) {
|
|
39445
39474
|
if (!e6.isBuffer(t6) && "string" != typeof t6) throw new TypeError(i6 + " must be a string or a buffer");
|
|
39446
|
-
}
|
|
39475
|
+
}(t5, "Data"), this._finalized) throw new Error("Digest already called");
|
|
39447
39476
|
e6.isBuffer(t5) || (t5 = e6.from(t5, i5));
|
|
39448
39477
|
for (var r5 = this._block, o5 = 0; this._blockOffset + t5.length - o5 >= this._blockSize; ) {
|
|
39449
39478
|
for (var s5 = this._blockOffset; s5 < this._blockSize; ) r5[s5++] = t5[o5++];
|
|
@@ -39904,14 +39933,14 @@ var w$4 = u3.Buffer;
|
|
|
39904
39933
|
var g$2 = w$4.alloc(128);
|
|
39905
39934
|
var B$1 = { md5: 16, sha1: 20, sha224: 28, sha256: 32, sha384: 48, sha512: 64, rmd160: 20, ripemd160: 20 };
|
|
39906
39935
|
function T$12(r5, e7, t5) {
|
|
39907
|
-
var n5 = /* @__PURE__ */
|
|
39936
|
+
var n5 = /* @__PURE__ */ function(r6) {
|
|
39908
39937
|
function e8(e9) {
|
|
39909
39938
|
return y$2(r6).update(e9).digest();
|
|
39910
39939
|
}
|
|
39911
39940
|
return "rmd160" === r6 || "ripemd160" === r6 ? function(r7) {
|
|
39912
39941
|
return new m$3().update(r7).digest();
|
|
39913
39942
|
} : "md5" === r6 ? d$4 : e8;
|
|
39914
|
-
}
|
|
39943
|
+
}(r5), o5 = "sha512" === r5 || "sha384" === r5 ? 128 : 64;
|
|
39915
39944
|
e7.length > o5 ? e7 = n5(e7) : e7.length < o5 && (e7 = w$4.concat([e7, g$2], o5));
|
|
39916
39945
|
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];
|
|
39917
39946
|
var s5 = w$4.allocUnsafe(o5 + t5 + 4);
|
|
@@ -39945,16 +39974,16 @@ var x$1 = A$1.crypto && A$1.crypto.subtle;
|
|
|
39945
39974
|
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" };
|
|
39946
39975
|
var I$2 = [];
|
|
39947
39976
|
function D$1(r5, e7, t5, n5, o5) {
|
|
39948
|
-
return x$1.importKey("raw", r5, { name: "PBKDF2" }, false, ["deriveBits"]).then(
|
|
39977
|
+
return x$1.importKey("raw", r5, { name: "PBKDF2" }, false, ["deriveBits"]).then(function(r6) {
|
|
39949
39978
|
return x$1.deriveBits({ name: "PBKDF2", salt: e7, iterations: t5, hash: { name: o5 } }, r6, n5 << 3);
|
|
39950
|
-
})
|
|
39979
|
+
}).then(function(r6) {
|
|
39951
39980
|
return K$1.from(r6);
|
|
39952
|
-
})
|
|
39981
|
+
});
|
|
39953
39982
|
}
|
|
39954
39983
|
var F$1 = function(r5, e7, t5, n5, o5, i5) {
|
|
39955
39984
|
"function" == typeof o5 && (i5 = o5, o5 = void 0);
|
|
39956
39985
|
var f6 = z$1[(o5 = o5 || "sha1").toLowerCase()];
|
|
39957
|
-
if (!f6 || "function" != typeof A$1.Promise) return H$1.nextTick(
|
|
39986
|
+
if (!f6 || "function" != typeof A$1.Promise) return H$1.nextTick(function() {
|
|
39958
39987
|
var f7;
|
|
39959
39988
|
try {
|
|
39960
39989
|
f7 = U$1(r5, e7, t5, n5, o5);
|
|
@@ -39962,31 +39991,31 @@ var F$1 = function(r5, e7, t5, n5, o5, i5) {
|
|
|
39962
39991
|
return i5(r6);
|
|
39963
39992
|
}
|
|
39964
39993
|
i5(null, f7);
|
|
39965
|
-
})
|
|
39994
|
+
});
|
|
39966
39995
|
if (E$2(r5, e7, t5, n5), "function" != typeof i5) throw new Error("No callback provided to pbkdf2");
|
|
39967
|
-
K$1.isBuffer(r5) || (r5 = K$1.from(r5, P$1)), K$1.isBuffer(e7) || (e7 = K$1.from(e7, P$1)),
|
|
39968
|
-
r6.then(
|
|
39969
|
-
H$1.nextTick(
|
|
39996
|
+
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) {
|
|
39997
|
+
r6.then(function(r7) {
|
|
39998
|
+
H$1.nextTick(function() {
|
|
39970
39999
|
e8(null, r7);
|
|
39971
|
-
})
|
|
39972
|
-
}
|
|
39973
|
-
H$1.nextTick(
|
|
40000
|
+
});
|
|
40001
|
+
}, function(r7) {
|
|
40002
|
+
H$1.nextTick(function() {
|
|
39974
40003
|
e8(r7);
|
|
39975
|
-
})
|
|
39976
|
-
})
|
|
39977
|
-
}
|
|
40004
|
+
});
|
|
40005
|
+
});
|
|
40006
|
+
}(function(r6) {
|
|
39978
40007
|
if (A$1.process && !A$1.process.browser) return Promise.resolve(false);
|
|
39979
40008
|
if (!x$1 || !x$1.importKey || !x$1.deriveBits) return Promise.resolve(false);
|
|
39980
40009
|
if (void 0 !== I$2[r6]) return I$2[r6];
|
|
39981
|
-
var e8 = D$1(k$3 = k$3 || K$1.alloc(8), k$3, 10, 128, r6).then(
|
|
40010
|
+
var e8 = D$1(k$3 = k$3 || K$1.alloc(8), k$3, 10, 128, r6).then(function() {
|
|
39982
40011
|
return true;
|
|
39983
|
-
})
|
|
40012
|
+
}).catch(function() {
|
|
39984
40013
|
return false;
|
|
39985
|
-
})
|
|
40014
|
+
});
|
|
39986
40015
|
return I$2[r6] = e8, e8;
|
|
39987
|
-
}
|
|
40016
|
+
}(f6).then(function(i6) {
|
|
39988
40017
|
return i6 ? D$1(r5, e7, t5, n5, f6) : U$1(r5, e7, t5, n5, o5);
|
|
39989
|
-
})
|
|
40018
|
+
}), i5);
|
|
39990
40019
|
};
|
|
39991
40020
|
var M$1 = {};
|
|
39992
40021
|
M$1.pbkdf2 = F$1, M$1.pbkdf2Sync = S$1;
|
|
@@ -40357,7 +40386,7 @@ function l$9(t5, e7, i5, r5, n5) {
|
|
|
40357
40386
|
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];
|
|
40358
40387
|
}
|
|
40359
40388
|
var f$d = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
40360
|
-
var u$8 =
|
|
40389
|
+
var u$8 = function() {
|
|
40361
40390
|
for (var t5 = new Array(256), e7 = 0; e7 < 256; e7++) t5[e7] = e7 < 128 ? e7 << 1 : e7 << 1 ^ 283;
|
|
40362
40391
|
for (var i5 = [], r5 = [], n5 = [[], [], [], []], a5 = [[], [], [], []], h5 = 0, o5 = 0, s5 = 0; s5 < 256; ++s5) {
|
|
40363
40392
|
var c5 = o5 ^ o5 << 1 ^ o5 << 2 ^ o5 << 3 ^ o5 << 4;
|
|
@@ -40366,7 +40395,7 @@ var u$8 = (function() {
|
|
|
40366
40395
|
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]]);
|
|
40367
40396
|
}
|
|
40368
40397
|
return { SBOX: i5, INV_SBOX: r5, SUB_MIX: n5, INV_SUB_MIX: a5 };
|
|
40369
|
-
}
|
|
40398
|
+
}();
|
|
40370
40399
|
function p$9(t5) {
|
|
40371
40400
|
(this || a$b)._key = s$8(t5), this._reset();
|
|
40372
40401
|
}
|
|
@@ -40432,7 +40461,7 @@ function X$1(t5, e7, i5, r5) {
|
|
|
40432
40461
|
var n5 = U$4.alloc(4, 0);
|
|
40433
40462
|
(this || v$5)._cipher = new I$5.AES(e7);
|
|
40434
40463
|
var a5 = (this || v$5)._cipher.encryptBlock(n5);
|
|
40435
|
-
(this || v$5)._ghash = new m$6(a5), i5 =
|
|
40464
|
+
(this || v$5)._ghash = new m$6(a5), i5 = function(t6, e8, i6) {
|
|
40436
40465
|
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])]);
|
|
40437
40466
|
var r6 = new m$6(i6), n6 = e8.length, a6 = n6 % 16;
|
|
40438
40467
|
r6.update(e8), a6 && (a6 = 16 - a6, r6.update(U$4.alloc(a6, 0))), r6.update(U$4.alloc(8, 0));
|
|
@@ -40440,7 +40469,7 @@ function X$1(t5, e7, i5, r5) {
|
|
|
40440
40469
|
o5.writeUIntBE(h5, 0, 8), r6.update(o5), t6._finID = r6.state;
|
|
40441
40470
|
var s5 = U$4.from(t6._finID);
|
|
40442
40471
|
return b$6(s5), s5;
|
|
40443
|
-
}
|
|
40472
|
+
}(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;
|
|
40444
40473
|
}
|
|
40445
40474
|
t$2(X$1, w$7), X$1.prototype._update = function(t5) {
|
|
40446
40475
|
if (!(this || v$5)._called && (this || v$5)._alen) {
|
|
@@ -40453,12 +40482,12 @@ t$2(X$1, w$7), X$1.prototype._update = function(t5) {
|
|
|
40453
40482
|
}, X$1.prototype._final = function() {
|
|
40454
40483
|
if ((this || v$5)._decrypt && !(this || v$5)._authTag) throw new Error("Unsupported state or unable to authenticate data");
|
|
40455
40484
|
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));
|
|
40456
|
-
if ((this || v$5)._decrypt &&
|
|
40485
|
+
if ((this || v$5)._decrypt && function(t6, e7) {
|
|
40457
40486
|
var i5 = 0;
|
|
40458
40487
|
t6.length !== e7.length && i5++;
|
|
40459
40488
|
for (var r5 = Math.min(t6.length, e7.length), n5 = 0; n5 < r5; ++n5) i5 += t6[n5] ^ e7[n5];
|
|
40460
40489
|
return i5;
|
|
40461
|
-
}
|
|
40490
|
+
}(t5, (this || v$5)._authTag)) throw new Error("Unsupported state or unable to authenticate data");
|
|
40462
40491
|
(this || v$5)._authTag = t5, (this || v$5)._cipher.scrub();
|
|
40463
40492
|
}, X$1.prototype.getAuthTag = function() {
|
|
40464
40493
|
if ((this || v$5)._decrypt || !U$4.isBuffer((this || v$5)._authTag)) throw new Error("Attempting to get auth tag in unsupported state");
|
|
@@ -40532,14 +40561,14 @@ t$2(g$6, d$9), g$6.prototype._update = function(t5) {
|
|
|
40532
40561
|
return p$a.concat(i5);
|
|
40533
40562
|
}, g$6.prototype._final = function() {
|
|
40534
40563
|
var t5 = (this || c$9)._cache.flush();
|
|
40535
|
-
if ((this || c$9)._autopadding) return
|
|
40564
|
+
if ((this || c$9)._autopadding) return function(t6) {
|
|
40536
40565
|
var e7 = t6[15];
|
|
40537
40566
|
if (e7 < 1 || e7 > 16) throw new Error("unable to decrypt data");
|
|
40538
40567
|
var r5 = -1;
|
|
40539
40568
|
for (; ++r5 < e7; ) if (t6[r5 + (16 - e7)] !== e7) throw new Error("unable to decrypt data");
|
|
40540
40569
|
if (16 === e7) return;
|
|
40541
40570
|
return t6.slice(0, 16 - e7);
|
|
40542
|
-
}
|
|
40571
|
+
}((this || c$9)._mode.decrypt(this || c$9, t5));
|
|
40543
40572
|
if (t5) throw new Error("data not multiple of block length");
|
|
40544
40573
|
}, g$6.prototype.setAutoPadding = function(t5) {
|
|
40545
40574
|
return (this || c$9)._autopadding = !!t5, this || c$9;
|
|
@@ -40661,7 +40690,7 @@ var t$4 = Object.freeze({});
|
|
|
40661
40690
|
var i$3 = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : global;
|
|
40662
40691
|
var r$7 = {};
|
|
40663
40692
|
var h$a = { exports: r$7 };
|
|
40664
|
-
!
|
|
40693
|
+
!function(r5, h5) {
|
|
40665
40694
|
function n5(t5, i5) {
|
|
40666
40695
|
if (!t5) throw new Error(i5 || "Assertion failed");
|
|
40667
40696
|
}
|
|
@@ -40967,7 +40996,7 @@ var h$a = { exports: r$7 };
|
|
|
40967
40996
|
}
|
|
40968
40997
|
Math.imul || (p5 = d4), o5.prototype.mulTo = function(t5, r6) {
|
|
40969
40998
|
var h6 = (this || i$3).length + t5.length;
|
|
40970
|
-
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 ?
|
|
40999
|
+
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) {
|
|
40971
41000
|
r7.negative = i5.negative ^ t6.negative, r7.length = t6.length + i5.length;
|
|
40972
41001
|
for (var h7 = 0, n6 = 0, e8 = 0; e8 < r7.length - 1; e8++) {
|
|
40973
41002
|
var o6 = n6;
|
|
@@ -40979,7 +41008,7 @@ var h$a = { exports: r$7 };
|
|
|
40979
41008
|
r7.words[e8] = s6, h7 = o6, o6 = n6;
|
|
40980
41009
|
}
|
|
40981
41010
|
return 0 !== h7 ? r7.words[e8] = h7 : r7.length--, r7.strip();
|
|
40982
|
-
}
|
|
41011
|
+
}(this || i$3, t5, r6) : M4(this || i$3, t5, r6);
|
|
40983
41012
|
}, v5.prototype.makeRBT = function(t5) {
|
|
40984
41013
|
for (var i5 = new Array(t5), r6 = o5.prototype._countBits(t5) - 1, h6 = 0; h6 < t5; h6++) i5[h6] = this.revBin(h6, r6, t5);
|
|
40985
41014
|
return i5;
|
|
@@ -41047,13 +41076,13 @@ var h$a = { exports: r$7 };
|
|
|
41047
41076
|
}, o5.prototype.isqr = function() {
|
|
41048
41077
|
return this.imul(this.clone());
|
|
41049
41078
|
}, o5.prototype.pow = function(t5) {
|
|
41050
|
-
var r6 =
|
|
41079
|
+
var r6 = function(t6) {
|
|
41051
41080
|
for (var i5 = new Array(t6.bitLength()), r7 = 0; r7 < i5.length; r7++) {
|
|
41052
41081
|
var h7 = r7 / 26 | 0, n7 = r7 % 26;
|
|
41053
41082
|
i5[r7] = (t6.words[h7] & 1 << n7) >>> n7;
|
|
41054
41083
|
}
|
|
41055
41084
|
return i5;
|
|
41056
|
-
}
|
|
41085
|
+
}(t5);
|
|
41057
41086
|
if (0 === r6.length) return new o5(1);
|
|
41058
41087
|
for (var h6 = this || i$3, n6 = 0; n6 < r6.length && 0 === r6[n6]; n6++, h6 = h6.sqr()) ;
|
|
41059
41088
|
if (++n6 < r6.length) for (var e8 = h6.sqr(); n6 < r6.length; n6++, e8 = e8.sqr()) 0 !== r6[n6] && (h6 = h6.mul(e8));
|
|
@@ -41506,7 +41535,7 @@ var h$a = { exports: r$7 };
|
|
|
41506
41535
|
}, A4.prototype.invm = function(t5) {
|
|
41507
41536
|
return this.imod(t5._invmp((this || i$3).m).mul((this || i$3).r2))._forceRed(this || i$3);
|
|
41508
41537
|
};
|
|
41509
|
-
}
|
|
41538
|
+
}(h$a, r$7);
|
|
41510
41539
|
var n$c = h$a.exports;
|
|
41511
41540
|
var t$5;
|
|
41512
41541
|
var e$a;
|
|
@@ -41668,7 +41697,7 @@ function A$5(f6, e7) {
|
|
|
41668
41697
|
return e7 ? c5.toString(e7) : c5;
|
|
41669
41698
|
}
|
|
41670
41699
|
Object.defineProperty(k$7.prototype, "verifyError", { enumerable: true, get: function() {
|
|
41671
|
-
return "number" != typeof (this || B$5)._primeCode && ((this || B$5)._primeCode =
|
|
41700
|
+
return "number" != typeof (this || B$5)._primeCode && ((this || B$5)._primeCode = function(f6, e7) {
|
|
41672
41701
|
var c5 = e7.toString("hex"), a5 = [c5, f6.toString(16)].join("_");
|
|
41673
41702
|
if (a5 in M$4) return M$4[a5];
|
|
41674
41703
|
var b4, d4 = 0;
|
|
@@ -41684,7 +41713,7 @@ Object.defineProperty(k$7.prototype, "verifyError", { enumerable: true, get: fun
|
|
|
41684
41713
|
d4 += 4;
|
|
41685
41714
|
}
|
|
41686
41715
|
return M$4[a5] = d4, d4;
|
|
41687
|
-
}
|
|
41716
|
+
}((this || B$5).__prime, (this || B$5).__gen)), (this || B$5)._primeCode;
|
|
41688
41717
|
} }), k$7.prototype.generateKeys = function() {
|
|
41689
41718
|
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();
|
|
41690
41719
|
}, k$7.prototype.computeSecret = function(f6) {
|
|
@@ -41723,10 +41752,10 @@ var u$c = e$1$1.Buffer;
|
|
|
41723
41752
|
var n$g = n$c;
|
|
41724
41753
|
var d$d = a4;
|
|
41725
41754
|
function t$8(e7, o5) {
|
|
41726
|
-
var r5 =
|
|
41755
|
+
var r5 = function(e8) {
|
|
41727
41756
|
var o6 = i$6(e8);
|
|
41728
41757
|
return { blinder: o6.toRed(n$g.mont(e8.modulus)).redPow(new n$g(e8.publicExponent)).fromRed(), unblinder: o6.invm(e8.modulus) };
|
|
41729
|
-
}
|
|
41758
|
+
}(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);
|
|
41730
41759
|
s5 = s5.fromRed(), a5 = a5.fromRed();
|
|
41731
41760
|
var w4 = s5.isub(a5).imul(f6).umod(p5);
|
|
41732
41761
|
return w4.imul(b4), a5.iadd(w4), new u$c(a5.imul(r5.unblinder).umod(o5.modulus).toArray(false, m4));
|
|
@@ -42391,9 +42420,9 @@ m$f(A$8, S$9), l$j = A$8, A$8.prototype._getEndomorphism = function(e7) {
|
|
|
42391
42420
|
var t5 = this._getEndoRoots(this.n);
|
|
42392
42421
|
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))));
|
|
42393
42422
|
}
|
|
42394
|
-
return { beta: f6, lambda: d4, basis: e7.basis ? e7.basis.map(
|
|
42423
|
+
return { beta: f6, lambda: d4, basis: e7.basis ? e7.basis.map(function(e8) {
|
|
42395
42424
|
return { a: new y$e(e8.a, 16), b: new y$e(e8.b, 16) };
|
|
42396
|
-
})
|
|
42425
|
+
}) : this._getEndoBasis(d4) };
|
|
42397
42426
|
}
|
|
42398
42427
|
}, A$8.prototype._getEndoRoots = function(e7) {
|
|
42399
42428
|
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);
|
|
@@ -42917,20 +42946,20 @@ ye2.fromPublic = function(e7, f6) {
|
|
|
42917
42946
|
return f6 instanceof ye2 ? f6 : new ye2(e7, { secret: f6 });
|
|
42918
42947
|
}, ye2.prototype.secret = function() {
|
|
42919
42948
|
return this._secret;
|
|
42920
|
-
}, ve2(ye2, "pubBytes",
|
|
42949
|
+
}, ve2(ye2, "pubBytes", function() {
|
|
42921
42950
|
return this.eddsa.encodePoint(this.pub());
|
|
42922
|
-
})
|
|
42951
|
+
}), ve2(ye2, "pub", function() {
|
|
42923
42952
|
return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv());
|
|
42924
|
-
})
|
|
42953
|
+
}), ve2(ye2, "privBytes", function() {
|
|
42925
42954
|
var e7 = this.eddsa, f6 = this.hash(), d4 = e7.encodingLength - 1, c5 = f6.slice(0, e7.encodingLength);
|
|
42926
42955
|
return c5[0] &= 248, c5[d4] &= 127, c5[d4] |= 64, c5;
|
|
42927
|
-
})
|
|
42956
|
+
}), ve2(ye2, "priv", function() {
|
|
42928
42957
|
return this.eddsa.decodeInt(this.privBytes());
|
|
42929
|
-
})
|
|
42958
|
+
}), ve2(ye2, "hash", function() {
|
|
42930
42959
|
return this.eddsa.hash().update(this.secret()).digest();
|
|
42931
|
-
})
|
|
42960
|
+
}), ve2(ye2, "messagePrefix", function() {
|
|
42932
42961
|
return this.hash().slice(this.eddsa.encodingLength);
|
|
42933
|
-
})
|
|
42962
|
+
}), ye2.prototype.sign = function(e7) {
|
|
42934
42963
|
return pe2(this._secret, "KeyPair can only verify"), this.eddsa.sign(e7, this);
|
|
42935
42964
|
}, ye2.prototype.verify = function(e7, f6) {
|
|
42936
42965
|
return this.eddsa.verify(e7, f6, this);
|
|
@@ -42948,15 +42977,15 @@ var we2 = ge2.parseBytes;
|
|
|
42948
42977
|
function Me(e7, f6) {
|
|
42949
42978
|
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;
|
|
42950
42979
|
}
|
|
42951
|
-
Ie(Me, "S",
|
|
42980
|
+
Ie(Me, "S", function() {
|
|
42952
42981
|
return this.eddsa.decodeInt(this.Sencoded());
|
|
42953
|
-
})
|
|
42982
|
+
}), Ie(Me, "R", function() {
|
|
42954
42983
|
return this.eddsa.decodePoint(this.Rencoded());
|
|
42955
|
-
})
|
|
42984
|
+
}), Ie(Me, "Rencoded", function() {
|
|
42956
42985
|
return this.eddsa.encodePoint(this.R());
|
|
42957
|
-
})
|
|
42986
|
+
}), Ie(Me, "Sencoded", function() {
|
|
42958
42987
|
return this.eddsa.encodeInt(this.S());
|
|
42959
|
-
})
|
|
42988
|
+
}), Me.prototype.toBytes = function() {
|
|
42960
42989
|
return this.Rencoded().concat(this.Sencoded());
|
|
42961
42990
|
}, Me.prototype.toHex = function() {
|
|
42962
42991
|
return ge2.encode(this.toBytes(), "hex").toUpperCase();
|
|
@@ -43047,9 +43076,9 @@ c$i.Reporter = l$k, l$k.prototype.isError = function(e7) {
|
|
|
43047
43076
|
return t5.obj = e7, r5;
|
|
43048
43077
|
}, l$k.prototype.error = function(e7) {
|
|
43049
43078
|
var t5, r5 = (this || u$j)._reporterState, n5 = e7 instanceof h$g;
|
|
43050
|
-
if (t5 = n5 ? e7 : new h$g(r5.path.map(
|
|
43079
|
+
if (t5 = n5 ? e7 : new h$g(r5.path.map(function(e8) {
|
|
43051
43080
|
return "[" + JSON.stringify(e8) + "]";
|
|
43052
|
-
})
|
|
43081
|
+
}).join(""), e7.message || e7, e7.stack), !r5.options.partial) throw t5;
|
|
43053
43082
|
return n5 || r5.errors.push(t5), t5;
|
|
43054
43083
|
}, l$k.prototype.wrapResult = function(e7) {
|
|
43055
43084
|
var t5 = (this || u$j)._reporterState;
|
|
@@ -43074,9 +43103,9 @@ function y$f() {
|
|
|
43074
43103
|
(this || g$e).base = e8, (this || g$e).offset = 0, (this || g$e).length = e8.length;
|
|
43075
43104
|
}
|
|
43076
43105
|
function s5(e8, t5) {
|
|
43077
|
-
if (Array.isArray(e8)) (this || g$e).length = 0, (this || g$e).value = e8.map(
|
|
43106
|
+
if (Array.isArray(e8)) (this || g$e).length = 0, (this || g$e).value = e8.map(function(e9) {
|
|
43078
43107
|
return e9 instanceof s5 || (e9 = new s5(e9, t5)), (this || g$e).length += e9.length, e9;
|
|
43079
|
-
}
|
|
43108
|
+
}, this || g$e);
|
|
43080
43109
|
else if ("number" == typeof e8) {
|
|
43081
43110
|
if (!(0 <= e8 && e8 <= 255)) return t5.error("non-byte EncoderBuffer value");
|
|
43082
43111
|
(this || g$e).value = e8, (this || g$e).length = 1;
|
|
@@ -43102,9 +43131,9 @@ function y$f() {
|
|
|
43102
43131
|
}, o5.prototype.raw = function(e8) {
|
|
43103
43132
|
return (this || g$e).base.slice(e8 ? e8.offset : (this || g$e).offset, (this || g$e).length);
|
|
43104
43133
|
}, p$k.EncoderBuffer = s5, s5.prototype.join = function(e8, t5) {
|
|
43105
|
-
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(
|
|
43134
|
+
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) {
|
|
43106
43135
|
r6.join(e8, t5), t5 += r6.length;
|
|
43107
|
-
})
|
|
43136
|
+
}) : ("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;
|
|
43108
43137
|
}, p$k;
|
|
43109
43138
|
}
|
|
43110
43139
|
var _$e = {};
|
|
@@ -43116,7 +43145,7 @@ function E$9() {
|
|
|
43116
43145
|
if (S$a) return m$g;
|
|
43117
43146
|
S$a = true;
|
|
43118
43147
|
var e7 = m$g;
|
|
43119
|
-
return e7.Reporter = c$i.Reporter, e7.DecoderBuffer = y$f().DecoderBuffer, e7.EncoderBuffer = y$f().EncoderBuffer, e7.Node =
|
|
43148
|
+
return e7.Reporter = c$i.Reporter, e7.DecoderBuffer = y$f().DecoderBuffer, e7.EncoderBuffer = y$f().EncoderBuffer, e7.Node = function() {
|
|
43120
43149
|
if (v$f) return _$e;
|
|
43121
43150
|
v$f = true;
|
|
43122
43151
|
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);
|
|
@@ -43128,52 +43157,52 @@ function E$9() {
|
|
|
43128
43157
|
var u5 = ["enc", "parent", "children", "tag", "args", "reverseArgs", "choice", "optional", "any", "obj", "use", "alteredUse", "key", "default", "explicit", "implicit", "contains"];
|
|
43129
43158
|
return a5.prototype.clone = function() {
|
|
43130
43159
|
var e9 = (this || b$c)._baseState, t6 = {};
|
|
43131
|
-
u5.forEach(
|
|
43160
|
+
u5.forEach(function(r7) {
|
|
43132
43161
|
t6[r7] = e9[r7];
|
|
43133
|
-
})
|
|
43162
|
+
});
|
|
43134
43163
|
var r6 = new (this || b$c).constructor(t6.parent);
|
|
43135
43164
|
return r6._baseState = t6, r6;
|
|
43136
43165
|
}, a5.prototype._wrap = function() {
|
|
43137
43166
|
var e9 = (this || b$c)._baseState;
|
|
43138
|
-
s5.forEach(
|
|
43167
|
+
s5.forEach(function(t6) {
|
|
43139
43168
|
(this || b$c)[t6] = function() {
|
|
43140
43169
|
var r6 = new (this || b$c).constructor(this || b$c);
|
|
43141
43170
|
return e9.children.push(r6), r6[t6].apply(r6, arguments);
|
|
43142
43171
|
};
|
|
43143
|
-
}
|
|
43172
|
+
}, this || b$c);
|
|
43144
43173
|
}, a5.prototype._init = function(e9) {
|
|
43145
43174
|
var t6 = (this || b$c)._baseState;
|
|
43146
|
-
n5(null === t6.parent), e9.call(this || b$c), t6.children = t6.children.filter(
|
|
43175
|
+
n5(null === t6.parent), e9.call(this || b$c), t6.children = t6.children.filter(function(e10) {
|
|
43147
43176
|
return e10._baseState.parent === (this || b$c);
|
|
43148
|
-
}
|
|
43177
|
+
}, this || b$c), n5.equal(t6.children.length, 1, "Root node can have only one child");
|
|
43149
43178
|
}, a5.prototype._useArgs = function(e9) {
|
|
43150
|
-
var t6 = (this || b$c)._baseState, r6 = e9.filter(
|
|
43179
|
+
var t6 = (this || b$c)._baseState, r6 = e9.filter(function(e10) {
|
|
43151
43180
|
return e10 instanceof (this || b$c).constructor;
|
|
43152
|
-
}
|
|
43153
|
-
e9 = e9.filter(
|
|
43181
|
+
}, this || b$c);
|
|
43182
|
+
e9 = e9.filter(function(e10) {
|
|
43154
43183
|
return !(e10 instanceof (this || b$c).constructor);
|
|
43155
|
-
}
|
|
43184
|
+
}, this || b$c), 0 !== r6.length && (n5(null === t6.children), t6.children = r6, r6.forEach(function(e10) {
|
|
43156
43185
|
e10._baseState.parent = this || b$c;
|
|
43157
|
-
}
|
|
43186
|
+
}, this || b$c)), 0 !== e9.length && (n5(null === t6.args), t6.args = e9, t6.reverseArgs = e9.map(function(e10) {
|
|
43158
43187
|
if ("object" != typeof e10 || e10.constructor !== Object) return e10;
|
|
43159
43188
|
var t7 = {};
|
|
43160
|
-
return Object.keys(e10).forEach(
|
|
43189
|
+
return Object.keys(e10).forEach(function(r7) {
|
|
43161
43190
|
r7 == (0 | r7) && (r7 |= 0);
|
|
43162
43191
|
var n6 = e10[r7];
|
|
43163
43192
|
t7[n6] = r7;
|
|
43164
|
-
})
|
|
43165
|
-
}))
|
|
43166
|
-
}, ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"].forEach(
|
|
43193
|
+
}), t7;
|
|
43194
|
+
}));
|
|
43195
|
+
}, ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"].forEach(function(e9) {
|
|
43167
43196
|
a5.prototype[e9] = function() {
|
|
43168
43197
|
var t6 = (this || b$c)._baseState;
|
|
43169
43198
|
throw new Error(e9 + " not implemented for encoding: " + t6.enc);
|
|
43170
43199
|
};
|
|
43171
|
-
})
|
|
43200
|
+
}), o5.forEach(function(e9) {
|
|
43172
43201
|
a5.prototype[e9] = function() {
|
|
43173
43202
|
var t6 = (this || b$c)._baseState, r6 = Array.prototype.slice.call(arguments);
|
|
43174
43203
|
return n5(null === t6.tag), t6.tag = e9, this._useArgs(r6), this || b$c;
|
|
43175
43204
|
};
|
|
43176
|
-
})
|
|
43205
|
+
}), a5.prototype.use = function(e9) {
|
|
43177
43206
|
n5(e9);
|
|
43178
43207
|
var t6 = (this || b$c)._baseState;
|
|
43179
43208
|
return n5(null === t6.use), t6.use = e9, this || b$c;
|
|
@@ -43198,9 +43227,9 @@ function E$9() {
|
|
|
43198
43227
|
return (this || b$c)._baseState.any = true, this || b$c;
|
|
43199
43228
|
}, a5.prototype.choice = function(e9) {
|
|
43200
43229
|
var t6 = (this || b$c)._baseState;
|
|
43201
|
-
return n5(null === t6.choice), t6.choice = e9, this._useArgs(Object.keys(e9).map(
|
|
43230
|
+
return n5(null === t6.choice), t6.choice = e9, this._useArgs(Object.keys(e9).map(function(t7) {
|
|
43202
43231
|
return e9[t7];
|
|
43203
|
-
}))
|
|
43232
|
+
})), this || b$c;
|
|
43204
43233
|
}, a5.prototype.contains = function(e9) {
|
|
43205
43234
|
var t6 = (this || b$c)._baseState;
|
|
43206
43235
|
return n5(null === t6.use), t6.contains = e9, this || b$c;
|
|
@@ -43236,9 +43265,9 @@ function E$9() {
|
|
|
43236
43265
|
n6.any ? o6 = e9.raw(c5) : e9 = h5;
|
|
43237
43266
|
}
|
|
43238
43267
|
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;
|
|
43239
|
-
if (n6.any || null !== n6.choice || null === n6.children || n6.children.forEach(
|
|
43268
|
+
if (n6.any || null !== n6.choice || null === n6.children || n6.children.forEach(function(r6) {
|
|
43240
43269
|
r6._decode(e9, t6);
|
|
43241
|
-
})
|
|
43270
|
+
}), n6.contains && ("octstr" === n6.tag || "bitstr" === n6.tag)) {
|
|
43242
43271
|
var p5 = new r5(o6);
|
|
43243
43272
|
o6 = this._getUse(n6.contains, e9._reporterState.obj)._decode(p5, t6);
|
|
43244
43273
|
}
|
|
@@ -43252,7 +43281,7 @@ function E$9() {
|
|
|
43252
43281
|
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;
|
|
43253
43282
|
}, a5.prototype._decodeChoice = function(e9, t6) {
|
|
43254
43283
|
var r6 = (this || b$c)._baseState, n6 = null, i5 = false;
|
|
43255
|
-
return Object.keys(r6.choice).some(
|
|
43284
|
+
return Object.keys(r6.choice).some(function(o6) {
|
|
43256
43285
|
var s6 = e9.save(), a6 = r6.choice[o6];
|
|
43257
43286
|
try {
|
|
43258
43287
|
var u6 = a6._decode(e9, t6);
|
|
@@ -43262,7 +43291,7 @@ function E$9() {
|
|
|
43262
43291
|
return e9.restore(s6), false;
|
|
43263
43292
|
}
|
|
43264
43293
|
return true;
|
|
43265
|
-
}
|
|
43294
|
+
}, this || b$c), i5 ? n6 : e9.error("Choice not matched");
|
|
43266
43295
|
}, a5.prototype._createEncoderBuffer = function(e9) {
|
|
43267
43296
|
return new t5(e9, (this || b$c).reporter);
|
|
43268
43297
|
}, a5.prototype._encode = function(e9, t6, r6) {
|
|
@@ -43283,24 +43312,24 @@ function E$9() {
|
|
|
43283
43312
|
if (i5.any) o6 = this._createEncoderBuffer(t6);
|
|
43284
43313
|
else if (i5.choice) o6 = this._encodeChoice(t6, r6);
|
|
43285
43314
|
else if (i5.contains) s6 = this._getUse(i5.contains, n6)._encode(t6, r6), a6 = true;
|
|
43286
|
-
else if (i5.children) s6 = i5.children.map(
|
|
43315
|
+
else if (i5.children) s6 = i5.children.map(function(e9) {
|
|
43287
43316
|
if ("null_" === e9._baseState.tag) return e9._encode(null, r6, t6);
|
|
43288
43317
|
if (null === e9._baseState.key) return r6.error("Child should have a key");
|
|
43289
43318
|
var n7 = r6.enterKey(e9._baseState.key);
|
|
43290
43319
|
if ("object" != typeof t6) return r6.error("Child expected, but input is not object");
|
|
43291
43320
|
var i6 = e9._encode(t6[e9._baseState.key], r6, t6);
|
|
43292
43321
|
return r6.leaveKey(n7), i6;
|
|
43293
|
-
}
|
|
43322
|
+
}, this || b$c).filter(function(e9) {
|
|
43294
43323
|
return e9;
|
|
43295
|
-
})
|
|
43324
|
+
}), s6 = this._createEncoderBuffer(s6);
|
|
43296
43325
|
else if ("seqof" === i5.tag || "setof" === i5.tag) {
|
|
43297
43326
|
if (!i5.args || 1 !== i5.args.length) return r6.error("Too many args for : " + i5.tag);
|
|
43298
43327
|
if (!Array.isArray(t6)) return r6.error("seqof/setof, but data is not Array");
|
|
43299
43328
|
var u6 = this.clone();
|
|
43300
|
-
u6._baseState.implicit = null, s6 = this._createEncoderBuffer(t6.map(
|
|
43329
|
+
u6._baseState.implicit = null, s6 = this._createEncoderBuffer(t6.map(function(e9) {
|
|
43301
43330
|
var n7 = (this || b$c)._baseState;
|
|
43302
43331
|
return this._getUse(n7.args[0], t6)._encode(e9, r6);
|
|
43303
|
-
}
|
|
43332
|
+
}, u6));
|
|
43304
43333
|
} else null !== i5.use ? o6 = this._getUse(i5.use, n6)._encode(t6, r6) : (s6 = this._encodePrimitive(i5.tag, t6), a6 = true);
|
|
43305
43334
|
if (!i5.any && null === i5.choice) {
|
|
43306
43335
|
var c5 = null !== i5.implicit ? i5.implicit : i5.tag, f6 = null === i5.implicit ? "universal" : "context";
|
|
@@ -43326,7 +43355,7 @@ function E$9() {
|
|
|
43326
43355
|
}, a5.prototype._isPrintstr = function(e9) {
|
|
43327
43356
|
return /^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e9);
|
|
43328
43357
|
}, _$e;
|
|
43329
|
-
}
|
|
43358
|
+
}(), m$g;
|
|
43330
43359
|
}
|
|
43331
43360
|
var j$6 = {};
|
|
43332
43361
|
var w$f = false;
|
|
@@ -43338,17 +43367,17 @@ function T$6() {
|
|
|
43338
43367
|
var e7 = B$9;
|
|
43339
43368
|
return e7._reverse = function(e8) {
|
|
43340
43369
|
var t5 = {};
|
|
43341
|
-
return Object.keys(e8).forEach(
|
|
43370
|
+
return Object.keys(e8).forEach(function(r5) {
|
|
43342
43371
|
(0 | r5) == r5 && (r5 |= 0);
|
|
43343
43372
|
var n5 = e8[r5];
|
|
43344
43373
|
t5[n5] = r5;
|
|
43345
|
-
})
|
|
43346
|
-
}, e7.der =
|
|
43374
|
+
}), t5;
|
|
43375
|
+
}, e7.der = function() {
|
|
43347
43376
|
if (w$f) return j$6;
|
|
43348
43377
|
w$f = true;
|
|
43349
43378
|
var e8 = T$6();
|
|
43350
43379
|
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;
|
|
43351
|
-
}
|
|
43380
|
+
}(), B$9;
|
|
43352
43381
|
}
|
|
43353
43382
|
var D$5 = {};
|
|
43354
43383
|
var U$7 = false;
|
|
@@ -43489,7 +43518,7 @@ function P$5() {
|
|
|
43489
43518
|
if (q$5) return I$9;
|
|
43490
43519
|
q$5 = true;
|
|
43491
43520
|
var e7 = I$9;
|
|
43492
|
-
return e7.der = C$6(), e7.pem =
|
|
43521
|
+
return e7.der = C$6(), e7.pem = function() {
|
|
43493
43522
|
if (A$9) return O$6;
|
|
43494
43523
|
A$9 = true;
|
|
43495
43524
|
var e8 = t$2, r5 = e$1$1.Buffer, i5 = C$6();
|
|
@@ -43515,7 +43544,7 @@ function P$5() {
|
|
|
43515
43544
|
var h5 = new r5(l5, "base64");
|
|
43516
43545
|
return i5.prototype.decode.call(this || x$7, h5, t5);
|
|
43517
43546
|
}, O$6;
|
|
43518
|
-
}
|
|
43547
|
+
}(), I$9;
|
|
43519
43548
|
}
|
|
43520
43549
|
var F$6 = {};
|
|
43521
43550
|
var K$5 = false;
|
|
@@ -43536,7 +43565,7 @@ function $$2() {
|
|
|
43536
43565
|
return F$6 = a5, a5.prototype.encode = function(e8, t5) {
|
|
43537
43566
|
return (this || R$4).tree._encode(e8, t5).join();
|
|
43538
43567
|
}, e7(u5, o5.Node), u5.prototype._encodeComposite = function(e8, t5, n5, i6) {
|
|
43539
|
-
var o6, a6 =
|
|
43568
|
+
var o6, a6 = function(e9, t6, r6, n6) {
|
|
43540
43569
|
var i7;
|
|
43541
43570
|
"seqof" === e9 ? e9 = "seq" : "setof" === e9 && (e9 = "set");
|
|
43542
43571
|
if (s5.tagByName.hasOwnProperty(e9)) i7 = s5.tagByName[e9];
|
|
@@ -43547,7 +43576,7 @@ function $$2() {
|
|
|
43547
43576
|
if (i7 >= 31) return n6.error("Multi-octet tag encoding unsupported");
|
|
43548
43577
|
t6 || (i7 |= 32);
|
|
43549
43578
|
return i7 |= s5.tagClassByName[r6 || "universal"] << 6;
|
|
43550
|
-
}
|
|
43579
|
+
}(e8, t5, n5, (this || R$4).reporter);
|
|
43551
43580
|
if (i6.length < 128) return (o6 = new r5(2))[0] = a6, o6[1] = i6.length, this._createEncoderBuffer([o6, i6]);
|
|
43552
43581
|
for (var u6 = 1, c6 = i6.length; c6 >= 256; c6 >>= 8) u6++;
|
|
43553
43582
|
(o6 = new r5(2 + u6))[0] = a6, o6[1] = 128 | u6;
|
|
@@ -43636,7 +43665,7 @@ function Z$2() {
|
|
|
43636
43665
|
if (V$4) return J$4;
|
|
43637
43666
|
V$4 = true;
|
|
43638
43667
|
var e7 = J$4;
|
|
43639
|
-
return e7.der = $$2(), e7.pem =
|
|
43668
|
+
return e7.der = $$2(), e7.pem = function() {
|
|
43640
43669
|
if (L$5) return G$4;
|
|
43641
43670
|
L$5 = true;
|
|
43642
43671
|
var e8 = t$2, r5 = $$2();
|
|
@@ -43647,7 +43676,7 @@ function Z$2() {
|
|
|
43647
43676
|
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));
|
|
43648
43677
|
return i5.push("-----END " + t5.label + "-----"), i5.join("\n");
|
|
43649
43678
|
}, G$4;
|
|
43650
|
-
}
|
|
43679
|
+
}(), J$4;
|
|
43651
43680
|
}
|
|
43652
43681
|
var z$7 = {};
|
|
43653
43682
|
var H$6 = false;
|
|
@@ -43655,7 +43684,7 @@ function Y$3() {
|
|
|
43655
43684
|
if (H$6) return z$7;
|
|
43656
43685
|
H$6 = true;
|
|
43657
43686
|
var n5 = z$7;
|
|
43658
|
-
return n5.bignum = n$c, n5.define =
|
|
43687
|
+
return n5.bignum = n$c, n5.define = function() {
|
|
43659
43688
|
if (s$j) return o$n;
|
|
43660
43689
|
s$j = true;
|
|
43661
43690
|
var e7 = Y$3(), n6 = t$2;
|
|
@@ -43685,85 +43714,85 @@ function Y$3() {
|
|
|
43685
43714
|
}, i5.prototype.encode = function(e8, t5, r5) {
|
|
43686
43715
|
return this._getEncoder(t5).encode(e8, r5);
|
|
43687
43716
|
}, o$n;
|
|
43688
|
-
}
|
|
43717
|
+
}().define, n5.base = E$9(), n5.constants = T$6(), n5.decoders = P$5(), n5.encoders = Z$2(), z$7;
|
|
43689
43718
|
}
|
|
43690
43719
|
var Q$3 = Y$3();
|
|
43691
43720
|
var e$f = Q$3;
|
|
43692
|
-
var t$a = e$f.define("Time",
|
|
43721
|
+
var t$a = e$f.define("Time", function() {
|
|
43693
43722
|
this.choice({ utcTime: this.utctime(), generalTime: this.gentime() });
|
|
43694
|
-
})
|
|
43695
|
-
var s$k = e$f.define("AttributeTypeValue",
|
|
43723
|
+
});
|
|
43724
|
+
var s$k = e$f.define("AttributeTypeValue", function() {
|
|
43696
43725
|
this.seq().obj(this.key("type").objid(), this.key("value").any());
|
|
43697
|
-
})
|
|
43698
|
-
var n$n = e$f.define("AlgorithmIdentifier",
|
|
43726
|
+
});
|
|
43727
|
+
var n$n = e$f.define("AlgorithmIdentifier", function() {
|
|
43699
43728
|
this.seq().obj(this.key("algorithm").objid(), this.key("parameters").optional(), this.key("curve").objid().optional());
|
|
43700
|
-
})
|
|
43701
|
-
var o$o = e$f.define("SubjectPublicKeyInfo",
|
|
43729
|
+
});
|
|
43730
|
+
var o$o = e$f.define("SubjectPublicKeyInfo", function() {
|
|
43702
43731
|
this.seq().obj(this.key("algorithm").use(n$n), this.key("subjectPublicKey").bitstr());
|
|
43703
|
-
})
|
|
43704
|
-
var h$h = e$f.define("RelativeDistinguishedName",
|
|
43732
|
+
});
|
|
43733
|
+
var h$h = e$f.define("RelativeDistinguishedName", function() {
|
|
43705
43734
|
this.setof(s$k);
|
|
43706
|
-
})
|
|
43707
|
-
var y$g = e$f.define("RDNSequence",
|
|
43735
|
+
});
|
|
43736
|
+
var y$g = e$f.define("RDNSequence", function() {
|
|
43708
43737
|
this.seqof(h$h);
|
|
43709
|
-
})
|
|
43710
|
-
var r$g = e$f.define("Name",
|
|
43738
|
+
});
|
|
43739
|
+
var r$g = e$f.define("Name", function() {
|
|
43711
43740
|
this.choice({ rdnSequence: this.use(y$g) });
|
|
43712
|
-
})
|
|
43713
|
-
var u$k = e$f.define("Validity",
|
|
43741
|
+
});
|
|
43742
|
+
var u$k = e$f.define("Validity", function() {
|
|
43714
43743
|
this.seq().obj(this.key("notBefore").use(t$a), this.key("notAfter").use(t$a));
|
|
43715
|
-
})
|
|
43716
|
-
var a$n = e$f.define("Extension",
|
|
43744
|
+
});
|
|
43745
|
+
var a$n = e$f.define("Extension", function() {
|
|
43717
43746
|
this.seq().obj(this.key("extnID").objid(), this.key("critical").bool().def(false), this.key("extnValue").octstr());
|
|
43718
|
-
})
|
|
43719
|
-
var c$j = e$f.define("TBSCertificate",
|
|
43747
|
+
});
|
|
43748
|
+
var c$j = e$f.define("TBSCertificate", function() {
|
|
43720
43749
|
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());
|
|
43721
|
-
})
|
|
43722
|
-
var k$d = e$f.define("X509Certificate",
|
|
43750
|
+
});
|
|
43751
|
+
var k$d = e$f.define("X509Certificate", function() {
|
|
43723
43752
|
this.seq().obj(this.key("tbsCertificate").use(c$j), this.key("signatureAlgorithm").use(n$n), this.key("signatureValue").bitstr());
|
|
43724
|
-
})
|
|
43753
|
+
});
|
|
43725
43754
|
var f$o = {};
|
|
43726
43755
|
var b$d = Q$3;
|
|
43727
43756
|
f$o.certificate = k$d;
|
|
43728
|
-
var l$l = b$d.define("RSAPrivateKey",
|
|
43757
|
+
var l$l = b$d.define("RSAPrivateKey", function() {
|
|
43729
43758
|
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());
|
|
43730
|
-
})
|
|
43759
|
+
});
|
|
43731
43760
|
f$o.RSAPrivateKey = l$l;
|
|
43732
|
-
var d$j = b$d.define("RSAPublicKey",
|
|
43761
|
+
var d$j = b$d.define("RSAPublicKey", function() {
|
|
43733
43762
|
this.seq().obj(this.key("modulus").int(), this.key("publicExponent").int());
|
|
43734
|
-
})
|
|
43763
|
+
});
|
|
43735
43764
|
f$o.RSAPublicKey = d$j;
|
|
43736
|
-
var p$l = b$d.define("SubjectPublicKeyInfo",
|
|
43765
|
+
var p$l = b$d.define("SubjectPublicKeyInfo", function() {
|
|
43737
43766
|
this.seq().obj(this.key("algorithm").use(j$7), this.key("subjectPublicKey").bitstr());
|
|
43738
|
-
})
|
|
43767
|
+
});
|
|
43739
43768
|
f$o.PublicKey = p$l;
|
|
43740
|
-
var j$7 = b$d.define("AlgorithmIdentifier",
|
|
43769
|
+
var j$7 = b$d.define("AlgorithmIdentifier", function() {
|
|
43741
43770
|
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());
|
|
43742
|
-
})
|
|
43743
|
-
var v$g = b$d.define("PrivateKeyInfo",
|
|
43771
|
+
});
|
|
43772
|
+
var v$g = b$d.define("PrivateKeyInfo", function() {
|
|
43744
43773
|
this.seq().obj(this.key("version").int(), this.key("algorithm").use(j$7), this.key("subjectPrivateKey").octstr());
|
|
43745
|
-
})
|
|
43774
|
+
});
|
|
43746
43775
|
f$o.PrivateKey = v$g;
|
|
43747
|
-
var m$h = b$d.define("EncryptedPrivateKeyInfo",
|
|
43776
|
+
var m$h = b$d.define("EncryptedPrivateKeyInfo", function() {
|
|
43748
43777
|
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());
|
|
43749
|
-
})
|
|
43778
|
+
});
|
|
43750
43779
|
f$o.EncryptedPrivateKey = m$h;
|
|
43751
|
-
var q$6 = b$d.define("DSAPrivateKey",
|
|
43780
|
+
var q$6 = b$d.define("DSAPrivateKey", function() {
|
|
43752
43781
|
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());
|
|
43753
|
-
})
|
|
43754
|
-
f$o.DSAPrivateKey = q$6, f$o.DSAparam = b$d.define("DSAparam",
|
|
43782
|
+
});
|
|
43783
|
+
f$o.DSAPrivateKey = q$6, f$o.DSAparam = b$d.define("DSAparam", function() {
|
|
43755
43784
|
this.int();
|
|
43756
|
-
})
|
|
43757
|
-
var K$6 = b$d.define("ECPrivateKey",
|
|
43785
|
+
});
|
|
43786
|
+
var K$6 = b$d.define("ECPrivateKey", function() {
|
|
43758
43787
|
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());
|
|
43759
|
-
})
|
|
43788
|
+
});
|
|
43760
43789
|
f$o.ECPrivateKey = K$6;
|
|
43761
|
-
var P$6 = b$d.define("ECParameters",
|
|
43790
|
+
var P$6 = b$d.define("ECParameters", function() {
|
|
43762
43791
|
this.choice({ namedCurve: this.objid() });
|
|
43763
|
-
})
|
|
43764
|
-
f$o.signature = b$d.define("signature",
|
|
43792
|
+
});
|
|
43793
|
+
f$o.signature = b$d.define("signature", function() {
|
|
43765
43794
|
this.seq().obj(this.key("r").int(), this.key("s").int());
|
|
43766
|
-
})
|
|
43795
|
+
});
|
|
43767
43796
|
var s$l;
|
|
43768
43797
|
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;
|
|
43769
43798
|
var o$p = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m;
|
|
@@ -43806,10 +43835,10 @@ function l$m(e7) {
|
|
|
43806
43835
|
throw new Error("unknown key id " + a5);
|
|
43807
43836
|
}
|
|
43808
43837
|
case "ENCRYPTED PRIVATE KEY":
|
|
43809
|
-
i5 =
|
|
43838
|
+
i5 = function(e8, r6) {
|
|
43810
43839
|
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 = [];
|
|
43811
43840
|
return p5.push(n5.update(i6)), p5.push(n5.final()), h$i.concat(p5);
|
|
43812
|
-
}
|
|
43841
|
+
}(i5 = y$h.EncryptedPrivateKey.decode(i5, "der"), r5);
|
|
43813
43842
|
case "PRIVATE KEY":
|
|
43814
43843
|
switch (a5 = (t5 = y$h.PrivateKey.decode(i5, "der")).algorithm.algorithm.join(".")) {
|
|
43815
43844
|
case "1.2.840.113549.1.1.1":
|
|
@@ -43849,7 +43878,7 @@ function y$i(e7, t5, r5, n5) {
|
|
|
43849
43878
|
var a5 = new f$q(t5.byteLength() - e7.length);
|
|
43850
43879
|
a5.fill(0), e7 = f$q.concat([a5, e7]);
|
|
43851
43880
|
}
|
|
43852
|
-
var o5 = r5.length, i5 =
|
|
43881
|
+
var o5 = r5.length, i5 = function(e8, t6) {
|
|
43853
43882
|
e8 = (e8 = b$f(e8, t6)).mod(t6);
|
|
43854
43883
|
var r6 = new f$q(e8.toArray());
|
|
43855
43884
|
if (r6.length < t6.byteLength()) {
|
|
@@ -43857,7 +43886,7 @@ function y$i(e7, t5, r5, n5) {
|
|
|
43857
43886
|
n6.fill(0), r6 = f$q.concat([n6, r6]);
|
|
43858
43887
|
}
|
|
43859
43888
|
return r6;
|
|
43860
|
-
}
|
|
43889
|
+
}(r5, t5), s5 = new f$q(o5);
|
|
43861
43890
|
s5.fill(1);
|
|
43862
43891
|
var h5 = new f$q(o5);
|
|
43863
43892
|
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() };
|
|
@@ -43881,25 +43910,25 @@ function k$e(e7, t5, r5, n5) {
|
|
|
43881
43910
|
var o5 = m$j(t5);
|
|
43882
43911
|
if (o5.curve) {
|
|
43883
43912
|
if ("ecdsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong private key type");
|
|
43884
|
-
return
|
|
43913
|
+
return function(e8, t6) {
|
|
43885
43914
|
var r6 = v$i[t6.curve.join(".")];
|
|
43886
43915
|
if (!r6) throw new Error("unknown curve " + t6.curve.join("."));
|
|
43887
43916
|
var n6 = new w$g(r6).keyFromPrivate(t6.privateKey).sign(e8);
|
|
43888
43917
|
return new f$q(n6.toDER());
|
|
43889
|
-
}
|
|
43918
|
+
}(e7, o5);
|
|
43890
43919
|
}
|
|
43891
43920
|
if ("dsa" === o5.type) {
|
|
43892
43921
|
if ("dsa" !== n5) throw new Error("wrong private key type");
|
|
43893
|
-
return
|
|
43922
|
+
return function(e8, t6, r6) {
|
|
43894
43923
|
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);
|
|
43895
43924
|
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));
|
|
43896
|
-
return
|
|
43925
|
+
return function(e9, t7) {
|
|
43897
43926
|
e9 = e9.toArray(), t7 = t7.toArray(), 128 & e9[0] && (e9 = [0].concat(e9));
|
|
43898
43927
|
128 & t7[0] && (t7 = [0].concat(t7));
|
|
43899
43928
|
var r7 = [48, e9.length + t7.length + 4, 2, e9.length];
|
|
43900
43929
|
return r7 = r7.concat(e9, [2, t7.length], t7), new f$q(r7);
|
|
43901
|
-
}
|
|
43902
|
-
}
|
|
43930
|
+
}(h6, p5);
|
|
43931
|
+
}(e7, o5, r5);
|
|
43903
43932
|
}
|
|
43904
43933
|
if ("rsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong private key type");
|
|
43905
43934
|
e7 = f$q.concat([a5, e7]);
|
|
@@ -43922,21 +43951,21 @@ var K$7 = function(e7, t5, r5, n5, a5) {
|
|
|
43922
43951
|
var o5 = T$7(r5);
|
|
43923
43952
|
if ("ec" === o5.type) {
|
|
43924
43953
|
if ("ecdsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong public key type");
|
|
43925
|
-
return
|
|
43954
|
+
return function(e8, t6, r6) {
|
|
43926
43955
|
var n6 = P$7[r6.data.algorithm.curve.join(".")];
|
|
43927
43956
|
if (!n6) throw new Error("unknown curve " + r6.data.algorithm.curve.join("."));
|
|
43928
43957
|
var a6 = new j$8(n6), o6 = r6.data.subjectPrivateKey.data;
|
|
43929
43958
|
return a6.verify(t6, e8, o6);
|
|
43930
|
-
}
|
|
43959
|
+
}(e7, t5, o5);
|
|
43931
43960
|
}
|
|
43932
43961
|
if ("dsa" === o5.type) {
|
|
43933
43962
|
if ("dsa" !== n5) throw new Error("wrong public key type");
|
|
43934
|
-
return
|
|
43963
|
+
return function(e8, t6, r6) {
|
|
43935
43964
|
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;
|
|
43936
43965
|
A$a(h6, a6), A$a(u6, a6);
|
|
43937
43966
|
var p6 = R$5.mont(n6), d5 = h6.invm(a6);
|
|
43938
43967
|
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);
|
|
43939
|
-
}
|
|
43968
|
+
}(e7, t5, o5);
|
|
43940
43969
|
}
|
|
43941
43970
|
if ("rsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong public key type");
|
|
43942
43971
|
t5 = L$6.concat([a5, t5]);
|
|
@@ -43976,9 +44005,9 @@ function M$8(e7) {
|
|
|
43976
44005
|
function O$7(e7) {
|
|
43977
44006
|
return new F$7(e7);
|
|
43978
44007
|
}
|
|
43979
|
-
Object.keys(C$7).forEach(
|
|
44008
|
+
Object.keys(C$7).forEach(function(e7) {
|
|
43980
44009
|
C$7[e7].id = new x$8(C$7[e7].id, "hex"), C$7[e7.toLowerCase()] = C$7[e7];
|
|
43981
|
-
})
|
|
44010
|
+
}), q$7(D$6, S$b.Writable), D$6.prototype._write = function(e7, t5, r5) {
|
|
43982
44011
|
(this || W$4)._hash.update(e7), r5();
|
|
43983
44012
|
}, D$6.prototype.update = function(e7, t5) {
|
|
43984
44013
|
return "string" == typeof e7 && (e7 = new x$8(e7, t5)), (this || W$4)._hash.update(e7), this || W$4;
|
|
@@ -44066,22 +44095,22 @@ var x$9 = function(r5, n5, e7) {
|
|
|
44066
44095
|
var t5;
|
|
44067
44096
|
t5 = r5.padding ? r5.padding : e7 ? 1 : 4;
|
|
44068
44097
|
var o5, a5 = s$n(r5);
|
|
44069
|
-
if (4 === t5) o5 =
|
|
44098
|
+
if (4 === t5) o5 = function(r6, n6) {
|
|
44070
44099
|
var e8 = r6.modulus.byteLength(), t6 = n6.length, o6 = m$k("sha1").update(B$b.alloc(0)).digest(), a6 = o6.length, i5 = 2 * a6;
|
|
44071
44100
|
if (t6 > e8 - i5 - 2) throw new Error("message too long");
|
|
44072
44101
|
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));
|
|
44073
44102
|
return new y$k(B$b.concat([B$b.alloc(1), p5, c5], e8));
|
|
44074
|
-
}
|
|
44075
|
-
else if (1 === t5) o5 =
|
|
44103
|
+
}(a5, n5);
|
|
44104
|
+
else if (1 === t5) o5 = function(r6, n6, e8) {
|
|
44076
44105
|
var t6, o6 = n6.length, a6 = r6.modulus.byteLength();
|
|
44077
44106
|
if (o6 > a6 - 11) throw new Error("message too long");
|
|
44078
|
-
t6 = e8 ? B$b.alloc(a6 - o6 - 3, 255) :
|
|
44107
|
+
t6 = e8 ? B$b.alloc(a6 - o6 - 3, 255) : function(r7) {
|
|
44079
44108
|
var n7, e9 = B$b.allocUnsafe(r7), t7 = 0, o7 = g$g(2 * r7), a7 = 0;
|
|
44080
44109
|
for (; t7 < r7; ) a7 === o7.length && (o7 = g$g(2 * r7), a7 = 0), (n7 = o7[a7++]) && (e9[t7++] = n7);
|
|
44081
44110
|
return e9;
|
|
44082
|
-
}
|
|
44111
|
+
}(a6 - o6 - 3);
|
|
44083
44112
|
return new y$k(B$b.concat([B$b.from([0, e8 ? 1 : 2]), t6, B$b.alloc(1), n6], a6));
|
|
44084
|
-
}
|
|
44113
|
+
}(a5, n5, e7);
|
|
44085
44114
|
else {
|
|
44086
44115
|
if (3 !== t5) throw new Error("unknown padding");
|
|
44087
44116
|
if ((o5 = new y$k(n5)).cmp(a5.modulus) >= 0) throw new Error("data too long for modulus");
|
|
@@ -44103,24 +44132,24 @@ var I$a = function(r5, n5, e7) {
|
|
|
44103
44132
|
if (n5.length > i5 || new U$9(n5).cmp(a5.modulus) >= 0) throw new Error("decryption error");
|
|
44104
44133
|
o5 = e7 ? j$9(new U$9(n5), a5) : R$6(n5, a5);
|
|
44105
44134
|
var l5 = A$b.alloc(i5 - o5.length);
|
|
44106
|
-
if (o5 = A$b.concat([l5, o5], i5), 4 === t5) return
|
|
44135
|
+
if (o5 = A$b.concat([l5, o5], i5), 4 === t5) return function(r6, n6) {
|
|
44107
44136
|
var e8 = r6.modulus.byteLength(), t6 = S$c("sha1").update(A$b.alloc(0)).digest(), o6 = t6.length;
|
|
44108
44137
|
if (0 !== n6[0]) throw new Error("decryption error");
|
|
44109
44138
|
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));
|
|
44110
|
-
if (
|
|
44139
|
+
if (function(r7, n7) {
|
|
44111
44140
|
r7 = A$b.from(r7), n7 = A$b.from(n7);
|
|
44112
44141
|
var e9 = 0, t7 = r7.length;
|
|
44113
44142
|
r7.length !== n7.length && (e9++, t7 = Math.min(r7.length, n7.length));
|
|
44114
44143
|
var o7 = -1;
|
|
44115
44144
|
for (; ++o7 < t7; ) e9 += r7[o7] ^ n7[o7];
|
|
44116
44145
|
return e9;
|
|
44117
|
-
}
|
|
44146
|
+
}(t6, f6.slice(0, o6))) throw new Error("decryption error");
|
|
44118
44147
|
var u5 = o6;
|
|
44119
44148
|
for (; 0 === f6[u5]; ) u5++;
|
|
44120
44149
|
if (1 !== f6[u5++]) throw new Error("decryption error");
|
|
44121
44150
|
return f6.slice(u5);
|
|
44122
|
-
}
|
|
44123
|
-
if (1 === t5) return
|
|
44151
|
+
}(a5, o5);
|
|
44152
|
+
if (1 === t5) return function(r6, n6, e8) {
|
|
44124
44153
|
var t6 = n6.slice(0, 2), o6 = 2, a6 = 0;
|
|
44125
44154
|
for (; 0 !== n6[o6++]; ) if (o6 >= n6.length) {
|
|
44126
44155
|
a6++;
|
|
@@ -44131,7 +44160,7 @@ var I$a = function(r5, n5, e7) {
|
|
|
44131
44160
|
i6.length < 8 && a6++;
|
|
44132
44161
|
if (a6) throw new Error("decryption error");
|
|
44133
44162
|
return n6.slice(o6);
|
|
44134
|
-
}
|
|
44163
|
+
}(0, o5, e7);
|
|
44135
44164
|
if (3 === t5) return o5;
|
|
44136
44165
|
throw new Error("unknown padding");
|
|
44137
44166
|
};
|
|
@@ -44166,14 +44195,14 @@ function b$h(r5, e7, n5) {
|
|
|
44166
44195
|
function w$i(r5, e7, n5, o5) {
|
|
44167
44196
|
if (f$t.browser) {
|
|
44168
44197
|
var t5 = r5.buffer, i5 = new Uint8Array(t5, e7, n5);
|
|
44169
|
-
return m$l.getRandomValues(i5), o5 ? (f$t.nextTick(
|
|
44198
|
+
return m$l.getRandomValues(i5), o5 ? (f$t.nextTick(function() {
|
|
44170
44199
|
o5(null, r5);
|
|
44171
|
-
})
|
|
44200
|
+
}), void 0) : r5;
|
|
44172
44201
|
}
|
|
44173
|
-
return o5 ? (a$o(n5,
|
|
44202
|
+
return o5 ? (a$o(n5, function(n6, t6) {
|
|
44174
44203
|
if (n6) return o5(n6);
|
|
44175
44204
|
t6.copy(r5, e7), o5(null, r5);
|
|
44176
|
-
})
|
|
44205
|
+
}), void 0) : (a$o(n5).copy(r5, e7), r5);
|
|
44177
44206
|
}
|
|
44178
44207
|
m$l && m$l.getRandomValues || !f$t.browser ? (t$b.randomFill = function(r5, e7, n5, t5) {
|
|
44179
44208
|
if (!(s$o.isBuffer(r5) || r5 instanceof o$r.Uint8Array)) throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
|
|
@@ -83314,7 +83343,7 @@ function dew$18() {
|
|
|
83314
83343
|
function copyBuffer(src, target, offset) {
|
|
83315
83344
|
src.copy(target, offset);
|
|
83316
83345
|
}
|
|
83317
|
-
exports$19 =
|
|
83346
|
+
exports$19 = function() {
|
|
83318
83347
|
function BufferList() {
|
|
83319
83348
|
_classCallCheck(this, BufferList);
|
|
83320
83349
|
this.head = null;
|
|
@@ -83374,7 +83403,7 @@ function dew$18() {
|
|
|
83374
83403
|
return ret;
|
|
83375
83404
|
};
|
|
83376
83405
|
return BufferList;
|
|
83377
|
-
}
|
|
83406
|
+
}();
|
|
83378
83407
|
if (util && util.inspect && util.inspect.custom) {
|
|
83379
83408
|
exports$19.prototype[util.inspect.custom] = function() {
|
|
83380
83409
|
var obj = util.inspect({
|
|
@@ -84530,11 +84559,11 @@ function dew$14() {
|
|
|
84530
84559
|
});
|
|
84531
84560
|
for (var i5 in stream2) {
|
|
84532
84561
|
if (this[i5] === void 0 && typeof stream2[i5] === "function") {
|
|
84533
|
-
this[i5] = /* @__PURE__ */
|
|
84562
|
+
this[i5] = /* @__PURE__ */ function(method) {
|
|
84534
84563
|
return function() {
|
|
84535
84564
|
return stream2[method].apply(stream2, arguments);
|
|
84536
84565
|
};
|
|
84537
|
-
}
|
|
84566
|
+
}(i5);
|
|
84538
84567
|
}
|
|
84539
84568
|
}
|
|
84540
84569
|
for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
|
|
@@ -105024,6 +105053,30 @@ var HttpClient = class {
|
|
|
105024
105053
|
throw new Error("Invalid environment");
|
|
105025
105054
|
}
|
|
105026
105055
|
}
|
|
105056
|
+
getAccessTokenStorageKey() {
|
|
105057
|
+
return `${this.orgHost}:accessToken`;
|
|
105058
|
+
}
|
|
105059
|
+
async getValidAccessToken() {
|
|
105060
|
+
const tokenKey = this.getAccessTokenStorageKey();
|
|
105061
|
+
const accessToken = await LocalForage.get(tokenKey);
|
|
105062
|
+
if (!accessToken) {
|
|
105063
|
+
throw new SDKError(
|
|
105064
|
+
"Session expired. Please sign in again.",
|
|
105065
|
+
"AUTH_REQUIRED" /* AUTH_REQUIRED */
|
|
105066
|
+
);
|
|
105067
|
+
}
|
|
105068
|
+
const payload = Jwt.tryParse(accessToken);
|
|
105069
|
+
const expiryEpochMs = typeof payload?.exp === "number" && Number.isFinite(payload.exp) ? payload.exp * 1e3 : null;
|
|
105070
|
+
if (!expiryEpochMs || Date.now() >= expiryEpochMs) {
|
|
105071
|
+
await LocalForage.delete(tokenKey);
|
|
105072
|
+
throw new SDKError(
|
|
105073
|
+
"Session expired. Please sign in again.",
|
|
105074
|
+
"AUTH_REQUIRED" /* AUTH_REQUIRED */,
|
|
105075
|
+
{ reason: "access_token_expired" }
|
|
105076
|
+
);
|
|
105077
|
+
}
|
|
105078
|
+
return accessToken;
|
|
105079
|
+
}
|
|
105027
105080
|
async getHeaders(needsAccessToken = false) {
|
|
105028
105081
|
const headers = {
|
|
105029
105082
|
"Content-Type": "application/json",
|
|
@@ -105031,13 +105084,7 @@ var HttpClient = class {
|
|
|
105031
105084
|
"X-Al-Org-Host": this.orgHost
|
|
105032
105085
|
};
|
|
105033
105086
|
if (needsAccessToken) {
|
|
105034
|
-
const accessToken = await
|
|
105035
|
-
`${this.orgHost}:accessToken`
|
|
105036
|
-
);
|
|
105037
|
-
if (!accessToken) {
|
|
105038
|
-
throw new SDKError("No access token found", "AUTH_REQUIRED" /* AUTH_REQUIRED */);
|
|
105039
|
-
}
|
|
105040
|
-
;
|
|
105087
|
+
const accessToken = await this.getValidAccessToken();
|
|
105041
105088
|
headers["Authorization"] = `Bearer ${accessToken}`;
|
|
105042
105089
|
}
|
|
105043
105090
|
return headers;
|
|
@@ -105073,9 +105120,9 @@ var HttpClient = class {
|
|
|
105073
105120
|
const response = await fetch(`${this.baseUrl}${path}`, requestInit);
|
|
105074
105121
|
if (!response.ok) {
|
|
105075
105122
|
if (config2.needsAccessToken && (response.status === 401 || response.status === 403)) {
|
|
105076
|
-
await LocalForage.delete(
|
|
105123
|
+
await LocalForage.delete(this.getAccessTokenStorageKey());
|
|
105077
105124
|
throw new SDKError(
|
|
105078
|
-
|
|
105125
|
+
"Session expired. Please sign in again.",
|
|
105079
105126
|
"AUTH_REQUIRED" /* AUTH_REQUIRED */,
|
|
105080
105127
|
await this.safeReadErrorDetails(response)
|
|
105081
105128
|
);
|
|
@@ -105580,7 +105627,7 @@ var RBT_PROPERTY_TOKEN_ABI = [
|
|
|
105580
105627
|
// src/core/services/asset.ts
|
|
105581
105628
|
var import_ethers3 = require("ethers");
|
|
105582
105629
|
|
|
105583
|
-
// node_modules
|
|
105630
|
+
// node_modules/@jspm/core/nodelibs/browser/events.js
|
|
105584
105631
|
var exports$111 = {};
|
|
105585
105632
|
var _dewExec11 = false;
|
|
105586
105633
|
function dew11() {
|
|
@@ -106023,7 +106070,7 @@ var {
|
|
|
106023
106070
|
once: once2
|
|
106024
106071
|
} = exports12;
|
|
106025
106072
|
|
|
106026
|
-
// node_modules
|
|
106073
|
+
// node_modules/@jspm/core/nodelibs/browser/timers.js
|
|
106027
106074
|
var exports$211 = {};
|
|
106028
106075
|
var _dewExec$111 = false;
|
|
106029
106076
|
var _global$111 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -107341,14 +107388,18 @@ var WeBlockSDK = class {
|
|
|
107341
107388
|
return this.initialized;
|
|
107342
107389
|
}
|
|
107343
107390
|
};
|
|
107344
|
-
var
|
|
107391
|
+
var src_default = WeBlockSDK;
|
|
107345
107392
|
/*! Bundled license information:
|
|
107346
107393
|
|
|
107347
107394
|
@jspm/core/nodelibs/browser/chunk-DtuTasat.js:
|
|
107348
|
-
@jspm/core/nodelibs/browser/chunk-B738Er4n.js:
|
|
107349
107395
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
107350
107396
|
|
|
107351
107397
|
@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js:
|
|
107398
|
+
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
107399
|
+
|
|
107400
|
+
@jspm/core/nodelibs/browser/chunk-B738Er4n.js:
|
|
107401
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
107402
|
+
|
|
107352
107403
|
@jspm/core/nodelibs/browser/crypto.js:
|
|
107353
107404
|
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
107354
107405
|
*/
|