@weblock-wallet/sdk 0.1.73 → 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 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 index_exports = {};
32
- __export(index_exports, {
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: () => index_default
42
+ default: () => src_default
43
43
  });
44
- module.exports = __toCommonJS(index_exports);
44
+ module.exports = __toCommonJS(src_exports);
45
45
 
46
- // node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js
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 = (function() {
1742
+ const hexSliceLookupTable = function() {
1743
1743
  const alphabet = "0123456789abcdef";
1744
1744
  const table = new Array(256);
1745
1745
  for (let i5 = 0; i5 < 16; ++i5) {
@@ -1749,7 +1749,7 @@ function dew() {
1749
1749
  }
1750
1750
  }
1751
1751
  return table;
1752
- })();
1752
+ }();
1753
1753
  function defineBigIntMethod(fn) {
1754
1754
  return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
1755
1755
  }
@@ -1759,7 +1759,7 @@ function dew() {
1759
1759
  return exports;
1760
1760
  }
1761
1761
 
1762
- // node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/buffer.js
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 (item.expiryEpochMs && Date.now() > item.expiryEpochMs) {
1797
- await storage.removeItem(key);
1798
- return null;
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.value;
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
- try {
1826
- const base64Url = token.split(".")[1];
1827
- const base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
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 exp = Jwt.parse(token)?.exp * 1e3;
1859
- console.log("Token exp:", exp);
1860
- console.log("isNewUser value:", isNewUser);
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-DEMDiNwt.js
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-CkFCi-G1.js
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-tHuMsdT0.js
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 ? (function(e8) {
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
- })(i5) : c(i5, i5.length);
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() : !(function(e8, t6) {
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
- })(n5, i5), 1 === n5.length && (r5[e7] = n5[0]), void 0 !== r5.removeListener && this.emit("removeListener", e7, s5 || t5);
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-DtDiafJB.js
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-D3uu3VYh.js
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
- !(function() {
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, (function(e8) {
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
- })(e7);
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 = (function() {
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 = (function() {
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((function(e7) {
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, (function(e8) {
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
- })), u5 = n5[r5]; r5 < i5; u5 = n5[++r5]) le(u5) || !he(u5) ? o5 += " " + u5 : o5 += " " + oe(u5);
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 = (function(e8, t6) {
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
- })(e7, t5);
3193
+ }(e7, t5);
3165
3194
  if (i5) return i5;
3166
- var o5 = Object.keys(t5), u5 = (function(e8) {
3195
+ var o5 = Object.keys(t5), u5 = function(e8) {
3167
3196
  var t6 = {};
3168
- return e8.forEach((function(e9, r6) {
3197
+ return e8.forEach(function(e9, r6) {
3169
3198
  t6[e9] = true;
3170
- })), t6;
3171
- })(o5);
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 ? (function(e8, t6, r6, n6, i6) {
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((function(i7) {
3215
+ return i6.forEach(function(i7) {
3187
3216
  i7.match(/^\d+$/) || o6.push(se(e8, t6, r6, n6, i7, true));
3188
- })), o6;
3189
- })(e7, t5, r5, u5, o5) : o5.map((function(n6) {
3217
+ }), o6;
3218
+ }(e7, t5, r5, u5, o5) : o5.map(function(n6) {
3190
3219
  return se(e7, t5, r5, u5, n6, s5);
3191
- })), e7.seen.pop(), (function(e8, t6, r6) {
3220
+ }), e7.seen.pop(), function(e8, t6, r6) {
3192
3221
  var n6 = 0;
3193
- if (e8.reduce((function(e9, t7) {
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
- }), 0) > 60) return r6[0] + ("" === t6 ? "" : t6 + "\n ") + " " + e8.join(",\n ") + " " + r6[1];
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
- })(a5, c5, p5)) : p5[0] + c5 + p5[1];
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((function(e8) {
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
- })).join("\n").substr(2) : "\n" + f6.split("\n").map((function(e8) {
3235
+ }).join("\n").substr(2) : "\n" + f6.split("\n").map(function(e8) {
3207
3236
  return " " + e8;
3208
- })).join("\n")) : f6 = e7.stylize("[Circular]", "special")), be(u5)) {
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((function(e8, n6) {
3330
+ for (var t6, r5, n5 = new Promise(function(e8, n6) {
3302
3331
  t6 = e8, r5 = n6;
3303
- })), i5 = [], o5 = 0; o5 < arguments.length; o5++) i5.push(arguments[o5]);
3304
- i5.push((function(e8, n6) {
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((function(e8) {
3353
+ e7.apply(this || Q, t6).then(function(e8) {
3325
3354
  Y.nextTick(o5.bind(null, null, e8));
3326
- }), (function(e8) {
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-b0rmRow7.js
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-B738Er4n.js
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((function(r6, t6, e7) {
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
- })(0, h5, c5)), f6 = 0, A4 = c5 > 0 ? h5 - 4 : h5;
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 (function(t6, r6) {
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
- })(t5, r5);
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 = (function(t6) {
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
- })(t5);
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((function(t6) {
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
- })(r5), t5, e7, n5);
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((function(t6, r6) {
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
- })(r5, t5.length - e7), t5, e7, n5);
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 (function(t6) {
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
- })(n5);
3877
+ }(n5);
3849
3878
  }
3850
- e$1$1.kMaxLength = 2147483647, u$1$1.TYPED_ARRAY_SUPPORT = (function() {
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
- })(), 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() {
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 (function(t6, r6, e8) {
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
- })(t5, r5, e7);
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((function(t6) {
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
- })(t5));
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 = (function() {
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 = (function(t6) {
4282
- var e8 = (function(t7) {
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
- })(t6);
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
- })(t5), this.encoding) {
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 = (function(t6, e8, s6) {
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
- })(this, t5);
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 = (function(t6, e8, s6) {
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
- })(this, t5, e7);
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 = (function() {
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__ */ (function() {
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__ */ (function methodWrap(method) {
8120
+ this[i5] = /* @__PURE__ */ function methodWrap(method) {
8092
8121
  return function methodWrapReturnFunction() {
8093
8122
  return stream2[method].apply(stream2, arguments);
8094
8123
  };
8095
- })(i5);
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-CbQqNoLO.js
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-B6-G-Ftj.js
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-C4rKjYLo.js
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-BsRZ0PEC.js
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/vm.js
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 = (function() {
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/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/crypto.js
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;
@@ -10706,7 +10735,7 @@ function dew$3f() {
10706
10735
  _dewExec$3f = true;
10707
10736
  var assert2 = dew$3h();
10708
10737
  var inherits = dew3();
10709
- var utils2 = dew$3i();
10738
+ var utils = dew$3i();
10710
10739
  var Cipher2 = dew$3g();
10711
10740
  function DESState() {
10712
10741
  this.tmp = new Array(2);
@@ -10727,31 +10756,31 @@ function dew$3f() {
10727
10756
  DES.prototype.deriveKeys = function deriveKeys(state, key) {
10728
10757
  state.keys = new Array(16 * 2);
10729
10758
  assert2.equal(key.length, this.blockSize, "Invalid key length");
10730
- var kL = utils2.readUInt32BE(key, 0);
10731
- var kR = utils2.readUInt32BE(key, 4);
10732
- utils2.pc1(kL, kR, state.tmp, 0);
10759
+ var kL = utils.readUInt32BE(key, 0);
10760
+ var kR = utils.readUInt32BE(key, 4);
10761
+ utils.pc1(kL, kR, state.tmp, 0);
10733
10762
  kL = state.tmp[0];
10734
10763
  kR = state.tmp[1];
10735
10764
  for (var i5 = 0; i5 < state.keys.length; i5 += 2) {
10736
10765
  var shift = shiftTable[i5 >>> 1];
10737
- kL = utils2.r28shl(kL, shift);
10738
- kR = utils2.r28shl(kR, shift);
10739
- utils2.pc2(kL, kR, state.keys, i5);
10766
+ kL = utils.r28shl(kL, shift);
10767
+ kR = utils.r28shl(kR, shift);
10768
+ utils.pc2(kL, kR, state.keys, i5);
10740
10769
  }
10741
10770
  };
10742
10771
  DES.prototype._update = function _update(inp, inOff, out, outOff) {
10743
10772
  var state = this._desState;
10744
- var l5 = utils2.readUInt32BE(inp, inOff);
10745
- var r5 = utils2.readUInt32BE(inp, inOff + 4);
10746
- utils2.ip(l5, r5, state.tmp, 0);
10773
+ var l5 = utils.readUInt32BE(inp, inOff);
10774
+ var r5 = utils.readUInt32BE(inp, inOff + 4);
10775
+ utils.ip(l5, r5, state.tmp, 0);
10747
10776
  l5 = state.tmp[0];
10748
10777
  r5 = state.tmp[1];
10749
10778
  if (this.type === "encrypt") this._encrypt(state, l5, r5, state.tmp, 0);
10750
10779
  else this._decrypt(state, l5, r5, state.tmp, 0);
10751
10780
  l5 = state.tmp[0];
10752
10781
  r5 = state.tmp[1];
10753
- utils2.writeUInt32BE(out, l5, outOff);
10754
- utils2.writeUInt32BE(out, r5, outOff + 4);
10782
+ utils.writeUInt32BE(out, l5, outOff);
10783
+ utils.writeUInt32BE(out, r5, outOff + 4);
10755
10784
  };
10756
10785
  DES.prototype._pad = function _pad(buffer2, off2) {
10757
10786
  if (this.padding === false) {
@@ -10775,16 +10804,16 @@ function dew$3f() {
10775
10804
  for (var i5 = 0; i5 < state.keys.length; i5 += 2) {
10776
10805
  var keyL = state.keys[i5];
10777
10806
  var keyR = state.keys[i5 + 1];
10778
- utils2.expand(r5, state.tmp, 0);
10807
+ utils.expand(r5, state.tmp, 0);
10779
10808
  keyL ^= state.tmp[0];
10780
10809
  keyR ^= state.tmp[1];
10781
- var s5 = utils2.substitute(keyL, keyR);
10782
- var f6 = utils2.permute(s5);
10810
+ var s5 = utils.substitute(keyL, keyR);
10811
+ var f6 = utils.permute(s5);
10783
10812
  var t5 = r5;
10784
10813
  r5 = (l5 ^ f6) >>> 0;
10785
10814
  l5 = t5;
10786
10815
  }
10787
- utils2.rip(r5, l5, out, off2);
10816
+ utils.rip(r5, l5, out, off2);
10788
10817
  };
10789
10818
  DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off2) {
10790
10819
  var l5 = rStart;
@@ -10792,16 +10821,16 @@ function dew$3f() {
10792
10821
  for (var i5 = state.keys.length - 2; i5 >= 0; i5 -= 2) {
10793
10822
  var keyL = state.keys[i5];
10794
10823
  var keyR = state.keys[i5 + 1];
10795
- utils2.expand(l5, state.tmp, 0);
10824
+ utils.expand(l5, state.tmp, 0);
10796
10825
  keyL ^= state.tmp[0];
10797
10826
  keyR ^= state.tmp[1];
10798
- var s5 = utils2.substitute(keyL, keyR);
10799
- var f6 = utils2.permute(s5);
10827
+ var s5 = utils.substitute(keyL, keyR);
10828
+ var f6 = utils.permute(s5);
10800
10829
  var t5 = l5;
10801
10830
  l5 = (r5 ^ f6) >>> 0;
10802
10831
  r5 = t5;
10803
10832
  }
10804
- utils2.rip(l5, r5, out, off2);
10833
+ utils.rip(l5, r5, out, off2);
10805
10834
  };
10806
10835
  return exports$3g;
10807
10836
  }
@@ -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 = (function() {
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__ */ (function() {
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__ */ (function methodWrap(method) {
20627
+ this[i5] = /* @__PURE__ */ function methodWrap(method) {
20599
20628
  return function methodWrapReturnFunction() {
20600
20629
  return stream2[method].apply(stream2, arguments);
20601
20630
  };
20602
- })(i5);
20631
+ }(i5);
20603
20632
  }
20604
20633
  }
20605
20634
  for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
@@ -22007,7 +22036,7 @@ function dew$2k() {
22007
22036
  _dewExec$2k = true;
22008
22037
  var assert2 = dew$2m();
22009
22038
  var inherits = dew$f();
22010
- var utils2 = dew$2n();
22039
+ var utils = dew$2n();
22011
22040
  var Cipher2 = dew$2l();
22012
22041
  function DESState() {
22013
22042
  this.tmp = new Array(2);
@@ -22028,31 +22057,31 @@ function dew$2k() {
22028
22057
  DES.prototype.deriveKeys = function deriveKeys(state, key) {
22029
22058
  state.keys = new Array(16 * 2);
22030
22059
  assert2.equal(key.length, this.blockSize, "Invalid key length");
22031
- var kL = utils2.readUInt32BE(key, 0);
22032
- var kR = utils2.readUInt32BE(key, 4);
22033
- utils2.pc1(kL, kR, state.tmp, 0);
22060
+ var kL = utils.readUInt32BE(key, 0);
22061
+ var kR = utils.readUInt32BE(key, 4);
22062
+ utils.pc1(kL, kR, state.tmp, 0);
22034
22063
  kL = state.tmp[0];
22035
22064
  kR = state.tmp[1];
22036
22065
  for (var i5 = 0; i5 < state.keys.length; i5 += 2) {
22037
22066
  var shift = shiftTable[i5 >>> 1];
22038
- kL = utils2.r28shl(kL, shift);
22039
- kR = utils2.r28shl(kR, shift);
22040
- utils2.pc2(kL, kR, state.keys, i5);
22067
+ kL = utils.r28shl(kL, shift);
22068
+ kR = utils.r28shl(kR, shift);
22069
+ utils.pc2(kL, kR, state.keys, i5);
22041
22070
  }
22042
22071
  };
22043
22072
  DES.prototype._update = function _update(inp, inOff, out, outOff) {
22044
22073
  var state = this._desState;
22045
- var l5 = utils2.readUInt32BE(inp, inOff);
22046
- var r5 = utils2.readUInt32BE(inp, inOff + 4);
22047
- utils2.ip(l5, r5, state.tmp, 0);
22074
+ var l5 = utils.readUInt32BE(inp, inOff);
22075
+ var r5 = utils.readUInt32BE(inp, inOff + 4);
22076
+ utils.ip(l5, r5, state.tmp, 0);
22048
22077
  l5 = state.tmp[0];
22049
22078
  r5 = state.tmp[1];
22050
22079
  if (this.type === "encrypt") this._encrypt(state, l5, r5, state.tmp, 0);
22051
22080
  else this._decrypt(state, l5, r5, state.tmp, 0);
22052
22081
  l5 = state.tmp[0];
22053
22082
  r5 = state.tmp[1];
22054
- utils2.writeUInt32BE(out, l5, outOff);
22055
- utils2.writeUInt32BE(out, r5, outOff + 4);
22083
+ utils.writeUInt32BE(out, l5, outOff);
22084
+ utils.writeUInt32BE(out, r5, outOff + 4);
22056
22085
  };
22057
22086
  DES.prototype._pad = function _pad(buffer2, off2) {
22058
22087
  var value = buffer2.length - off2;
@@ -22070,16 +22099,16 @@ function dew$2k() {
22070
22099
  for (var i5 = 0; i5 < state.keys.length; i5 += 2) {
22071
22100
  var keyL = state.keys[i5];
22072
22101
  var keyR = state.keys[i5 + 1];
22073
- utils2.expand(r5, state.tmp, 0);
22102
+ utils.expand(r5, state.tmp, 0);
22074
22103
  keyL ^= state.tmp[0];
22075
22104
  keyR ^= state.tmp[1];
22076
- var s5 = utils2.substitute(keyL, keyR);
22077
- var f6 = utils2.permute(s5);
22105
+ var s5 = utils.substitute(keyL, keyR);
22106
+ var f6 = utils.permute(s5);
22078
22107
  var t5 = r5;
22079
22108
  r5 = (l5 ^ f6) >>> 0;
22080
22109
  l5 = t5;
22081
22110
  }
22082
- utils2.rip(r5, l5, out, off2);
22111
+ utils.rip(r5, l5, out, off2);
22083
22112
  };
22084
22113
  DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off2) {
22085
22114
  var l5 = rStart;
@@ -22087,16 +22116,16 @@ function dew$2k() {
22087
22116
  for (var i5 = state.keys.length - 2; i5 >= 0; i5 -= 2) {
22088
22117
  var keyL = state.keys[i5];
22089
22118
  var keyR = state.keys[i5 + 1];
22090
- utils2.expand(l5, state.tmp, 0);
22119
+ utils.expand(l5, state.tmp, 0);
22091
22120
  keyL ^= state.tmp[0];
22092
22121
  keyR ^= state.tmp[1];
22093
- var s5 = utils2.substitute(keyL, keyR);
22094
- var f6 = utils2.permute(s5);
22122
+ var s5 = utils.substitute(keyL, keyR);
22123
+ var f6 = utils.permute(s5);
22095
22124
  var t5 = l5;
22096
22125
  l5 = (r5 ^ f6) >>> 0;
22097
22126
  r5 = t5;
22098
22127
  }
22099
- utils2.rip(l5, r5, out, off2);
22128
+ utils.rip(l5, r5, out, off2);
22100
22129
  };
22101
22130
  return exports$2l;
22102
22131
  }
@@ -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 = (function() {
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((function(e9, t6, r7) {
29913
+ super(function(e9, t6, r7) {
29885
29914
  return "string" == typeof n5 ? n5 : n5(e9, t6, r7);
29886
- })(e8, t5, r6));
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", (function(e7, t5) {
29927
+ n$q("ERR_INVALID_OPT_VALUE", function(e7, t5) {
29899
29928
  return 'The value "' + t5 + '" is invalid for option "' + e7 + '"';
29900
- }), TypeError), n$q("ERR_INVALID_ARG_TYPE", (function(e7, t5, n5) {
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", (function(e8, t6, n6) {
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
- })(e7, " argument")) u5 = `The ${e7} ${o5} ${r$h(t5, "type")}`;
29935
+ }(e7, " argument")) u5 = `The ${e7} ${o5} ${r$h(t5, "type")}`;
29907
29936
  else {
29908
- u5 = `The "${e7}" ${(function(e8, t6, n6) {
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
- })(e7, ".") ? "property" : "argument"} ${o5} ${r$h(t5, "type")}`;
29939
+ }(e7, ".") ? "property" : "argument"} ${o5} ${r$h(t5, "type")}`;
29911
29940
  }
29912
29941
  return u5 += `. Received type ${typeof n5}`, u5;
29913
- }), TypeError), n$q("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n$q("ERR_METHOD_NOT_IMPLEMENTED", (function(e7) {
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
- })), n$q("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), n$q("ERR_STREAM_DESTROYED", (function(e7) {
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
- })), 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) {
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
- }), TypeError), n$q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), e$1$12.codes = t$c;
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((function(t6) {
29977
+ t5 && (r5 = r5.filter(function(t6) {
29949
29978
  return Object.getOwnPropertyDescriptor(e7, t6).enumerable;
29950
- }))), n5.push.apply(n5, r5);
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 = (function() {
29995
+ var g$h = function() {
29967
29996
  function e7() {
29968
- !(function(e8, t6) {
29997
+ !function(e8, t6) {
29969
29998
  if (!(e8 instanceof t6)) throw new TypeError("Cannot call a class as a function");
29970
- })(this, e7), this.head = null, this.tail = null, this.length = 0;
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, (function(e9) {
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((function(t8) {
30054
+ t7 % 2 ? u$p(Object(n6), true).forEach(function(t8) {
30026
30055
  f$v(e9, t8, n6[t8]);
30027
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : u$p(Object(n6)).forEach((function(t8) {
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
- })({}, t6, { depth: 0, customInspect: false }));
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, (function(e8) {
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
- })), this);
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 = (function(e8, t6, n6) {
30087
+ var i5 = function(e8, t6, n6) {
30059
30088
  return null != e8.highWaterMark ? e8.highWaterMark : t6 ? e8[n6] : null;
30060
- })(t5, r5, n5);
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__ */ (function(e7) {
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
- })(r5 || E$e);
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 !(function(e7) {
30126
+ return !function(e7) {
30098
30127
  return e7.setHeader && "function" == typeof e7.abort;
30099
- })(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() {
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((function() {
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((function(t6, n6) {
30137
- O$8.nextTick((function() {
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__ */ (function(e8, t6) {
30171
+ if (r5) n5 = new Promise(/* @__PURE__ */ function(e8, t6) {
30143
30172
  return function(n6, r6) {
30144
- e8.then((function() {
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
- }), r6);
30176
+ }, r6);
30148
30177
  };
30149
- })(r5, this));
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, (function() {
30185
+ } }, Symbol.asyncIterator, function() {
30157
30186
  return this;
30158
- })), T$8(M$a, "return", (function() {
30187
+ }), T$8(M$a, "return", function() {
30159
30188
  var e7 = this;
30160
- return new Promise((function(t5, n5) {
30161
- e7[W$5].destroy(null, (function(e8) {
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
- })), M$a), U$a);
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, (function(e8) {
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
- })), e7.on("readable", N$7.bind(null, n5)), n5;
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, (function(e8, t6) {
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
- })(e7, o5);
30219
- else if (i5 || (a5 = (function(e8, t6) {
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
- })(o5, t5)), a5) x4(e7, a5);
30225
- else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = (function(e8) {
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
- })(t5)), r5) o5.endEmitted ? x4(e7, new P4()) : q3(e7, o5, t5, true);
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 = (function(e8) {
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
- })(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
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__ */ (function(e8) {
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
- })(n5);
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), (function(e8, t6, n6) {
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
- })(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
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, (function(e8, t5) {
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
- })(this, e7)), e7.paused = false, this;
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", (function() {
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
- })), e7.on("data", (function(i6) {
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
- })), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ (function(t6) {
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
- })(i5));
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
- !(function(e8, t6, n5) {
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
- })(t5, e7);
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
- !(function(e8, t6) {
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 ((function(e9) {
30499
+ if (function(e9) {
30471
30500
  e9.writing = false, e9.writecb = null, e9.length -= e9.writelen, e9.writelen = 0;
30472
- })(n6), t6) !(function(e9, t7, n7, i7, a7) {
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
- })(e8, n6, i6, t6, a6);
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
- })(n5, e7);
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 || !(function(e8, t6) {
30520
+ n5 || !function(e8, t6) {
30492
30521
  0 === t6.length && t6.needDrain && (t6.needDrain = false, e8.emit("drain"));
30493
- })(e7, t5), t5.pendingcb--, r6(), q3(e7, t5);
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((function(n5) {
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 && (!(function(e8, t6) {
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
- })(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
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
- }, (function() {
30562
+ }, function() {
30534
30563
  try {
30535
- Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate((function() {
30564
+ Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate(function() {
30536
30565
  return this.getBuffer();
30537
- }), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
30566
+ }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
30538
30567
  } catch (e7) {
30539
30568
  }
30540
- })(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(P4, Symbol.hasInstance, { value: function(e7) {
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 = (function(e8) {
30577
+ return s6 && !f6.isBuffer(e7) && (e7 = function(e8) {
30549
30578
  return f6.from(e8);
30550
- })(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) {
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
- })(this, n5) : (s6 || (function(e8, t6, n6, i6) {
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
- })(this, a5, e7, n5)) && (a5.pendingcb++, o5 = (function(e8, t6, n6, r6, i6, a6) {
30585
+ }(this, a5, e7, n5)) && (a5.pendingcb++, o5 = function(e8, t6, n6, r6, i6, a6) {
30557
30586
  if (!n6) {
30558
- var o6 = (function(e9, t7, n7) {
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
- })(t6, r6, i6);
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
- })(this, a5, s6, e7, t5, n5)), o5;
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 || (function(e8, t6, n6) {
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
- })(this, i5, n5), this;
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__ */ (function(e7) {
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
- })(a5 || t$3$1);
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 !(function(e7) {
30702
+ return !function(e7) {
30674
30703
  return e7.setHeader && "function" == typeof e7.abort;
30675
- })(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() {
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((function(t6) {
30712
+ t5 && (r5 = r5.filter(function(t6) {
30684
30713
  return Object.getOwnPropertyDescriptor(e7, t6).enumerable;
30685
- }))), n5.push.apply(n5, r5);
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 = (function() {
30730
+ var y$1$1 = function() {
30702
30731
  function e7() {
30703
- !(function(e8, t6) {
30732
+ !function(e8, t6) {
30704
30733
  if (!(e8 instanceof t6)) throw new TypeError("Cannot call a class as a function");
30705
- })(this, e7), this.head = null, this.tail = null, this.length = 0;
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, (function(e9) {
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((function(t8) {
30789
+ t7 % 2 ? f$1$1(Object(n6), true).forEach(function(t8) {
30761
30790
  h$1$12(e9, t8, n6[t8]);
30762
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : f$1$1(Object(n6)).forEach((function(t8) {
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
- })({}, t6, { depth: 0, customInspect: false }));
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, (function(e8) {
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
- })), this);
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 = (function(e8, t6, n6) {
30823
+ var i5 = function(e8, t6, n6) {
30795
30824
  return null != e8.highWaterMark ? e8.highWaterMark : t6 ? e8[n6] : null;
30796
- })(t5, r5, n5);
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((function() {
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((function(t6, n6) {
30837
- M$1$1.nextTick((function() {
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__ */ (function(e8, t6) {
30871
+ if (r5) n5 = new Promise(/* @__PURE__ */ function(e8, t6) {
30843
30872
  return function(n6, r6) {
30844
- e8.then((function() {
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
- }), r6);
30876
+ }, r6);
30848
30877
  };
30849
- })(r5, this));
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, (function() {
30885
+ } }, Symbol.asyncIterator, function() {
30857
30886
  return this;
30858
- })), j$1$1(k$1$1, "return", (function() {
30887
+ }), j$1$1(k$1$1, "return", function() {
30859
30888
  var e7 = this;
30860
- return new Promise((function(t5, n5) {
30861
- e7[A$1$1].destroy(null, (function(e8) {
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
- })), k$1$1), I$1$1);
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, (function(e8) {
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
- })), e7.on("readable", q$1$1.bind(null, n5)), n5;
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, (function(e8, t6) {
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
- })(e7, o5);
30919
- else if (i5 || (a5 = (function(e8, t6) {
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
- })(o5, t5)), a5) P4(e7, a5);
30925
- else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = (function(e8) {
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
- })(t5)), r5) o5.endEmitted ? P4(e7, new x4()) : W3(e7, o5, t5, true);
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 = (function(e8) {
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
- })(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
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__ */ (function(e8) {
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
- })(n5);
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), (function(e8, t6, n6) {
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
- })(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
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, (function(e8, t5) {
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
- })(this, e7)), e7.paused = false, this;
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", (function() {
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
- })), e7.on("data", (function(i6) {
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
- })), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ (function(t6) {
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
- })(i5));
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
- !(function(e8, t6, n5) {
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
- })(t5, e7);
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
- !(function(e8, t6) {
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 ((function(e9) {
31199
+ if (function(e9) {
31171
31200
  e9.writing = false, e9.writecb = null, e9.length -= e9.writelen, e9.writelen = 0;
31172
- })(n6), t6) !(function(e9, t7, n7, i7, a7) {
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
- })(e8, n6, i6, t6, a6);
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
- })(n5, e7);
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 || !(function(e8, t6) {
31220
+ n5 || !function(e8, t6) {
31192
31221
  0 === t6.length && t6.needDrain && (t6.needDrain = false, e8.emit("drain"));
31193
- })(e7, t5), t5.pendingcb--, r6(), W3(e7, t5);
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((function(n5) {
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 && (!(function(e8, t6) {
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
- })(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
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
- }, (function() {
31262
+ }, function() {
31234
31263
  try {
31235
- Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate((function() {
31264
+ Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate(function() {
31236
31265
  return this.getBuffer();
31237
- }), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
31266
+ }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
31238
31267
  } catch (e7) {
31239
31268
  }
31240
- })(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(x4, Symbol.hasInstance, { value: function(e7) {
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 = (function(e8) {
31277
+ return s6 && !f6.isBuffer(e7) && (e7 = function(e8) {
31249
31278
  return f6.from(e8);
31250
- })(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) {
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
- })(this, n5) : (s6 || (function(e8, t6, n6, i6) {
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
- })(this, a5, e7, n5)) && (a5.pendingcb++, o5 = (function(e8, t6, n6, r6, i6, a6) {
31285
+ }(this, a5, e7, n5)) && (a5.pendingcb++, o5 = function(e8, t6, n6, r6, i6, a6) {
31257
31286
  if (!n6) {
31258
- var o6 = (function(e9, t7, n7) {
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
- })(t6, r6, i6);
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
- })(this, a5, s6, e7, t5, n5)), o5;
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 || (function(e8, t6, n6) {
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
- })(this, i5, n5), this;
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((function(r5, e7) {
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, (function(t6) {
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__ */ (function(r6) {
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
- })(i5);
31450
+ }(i5);
31422
31451
  var u5 = false;
31423
- r5.on("close", (function() {
31452
+ r5.on("close", function() {
31424
31453
  u5 = true;
31425
- })), void 0 === t$6$1 && (t$6$1 = n$1$12), t$6$1(r5, { readable: o5, writable: e7 }, (function(r6) {
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, (function(r6) {
31460
+ if (!u5 && !a5) return a5 = true, function(r6) {
31432
31461
  return r6.setHeader && "function" == typeof r6.abort;
31433
- })(r5) ? r5.abort() : "function" == typeof r5.destroy ? r5.destroy() : (i5(n5 || new f$3$1("pipe")), void 0);
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((function(r6, t6) {
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, (function(r7) {
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;
@@ -32496,7 +32525,7 @@ function dew$1r() {
32496
32525
  _dewExec$1r = true;
32497
32526
  var assert2 = dew$1t();
32498
32527
  var inherits = dew$f$2();
32499
- var utils2 = dew$1u();
32528
+ var utils = dew$1u();
32500
32529
  var Cipher2 = dew$1s();
32501
32530
  function DESState() {
32502
32531
  this.tmp = new Array(2);
@@ -32517,31 +32546,31 @@ function dew$1r() {
32517
32546
  DES.prototype.deriveKeys = function deriveKeys(state, key) {
32518
32547
  state.keys = new Array(16 * 2);
32519
32548
  assert2.equal(key.length, this.blockSize, "Invalid key length");
32520
- var kL = utils2.readUInt32BE(key, 0);
32521
- var kR = utils2.readUInt32BE(key, 4);
32522
- utils2.pc1(kL, kR, state.tmp, 0);
32549
+ var kL = utils.readUInt32BE(key, 0);
32550
+ var kR = utils.readUInt32BE(key, 4);
32551
+ utils.pc1(kL, kR, state.tmp, 0);
32523
32552
  kL = state.tmp[0];
32524
32553
  kR = state.tmp[1];
32525
32554
  for (var i5 = 0; i5 < state.keys.length; i5 += 2) {
32526
32555
  var shift = shiftTable[i5 >>> 1];
32527
- kL = utils2.r28shl(kL, shift);
32528
- kR = utils2.r28shl(kR, shift);
32529
- utils2.pc2(kL, kR, state.keys, i5);
32556
+ kL = utils.r28shl(kL, shift);
32557
+ kR = utils.r28shl(kR, shift);
32558
+ utils.pc2(kL, kR, state.keys, i5);
32530
32559
  }
32531
32560
  };
32532
32561
  DES.prototype._update = function _update(inp, inOff, out, outOff) {
32533
32562
  var state = this._desState;
32534
- var l5 = utils2.readUInt32BE(inp, inOff);
32535
- var r5 = utils2.readUInt32BE(inp, inOff + 4);
32536
- utils2.ip(l5, r5, state.tmp, 0);
32563
+ var l5 = utils.readUInt32BE(inp, inOff);
32564
+ var r5 = utils.readUInt32BE(inp, inOff + 4);
32565
+ utils.ip(l5, r5, state.tmp, 0);
32537
32566
  l5 = state.tmp[0];
32538
32567
  r5 = state.tmp[1];
32539
32568
  if (this.type === "encrypt") this._encrypt(state, l5, r5, state.tmp, 0);
32540
32569
  else this._decrypt(state, l5, r5, state.tmp, 0);
32541
32570
  l5 = state.tmp[0];
32542
32571
  r5 = state.tmp[1];
32543
- utils2.writeUInt32BE(out, l5, outOff);
32544
- utils2.writeUInt32BE(out, r5, outOff + 4);
32572
+ utils.writeUInt32BE(out, l5, outOff);
32573
+ utils.writeUInt32BE(out, r5, outOff + 4);
32545
32574
  };
32546
32575
  DES.prototype._pad = function _pad(buffer2, off2) {
32547
32576
  var value = buffer2.length - off2;
@@ -32559,16 +32588,16 @@ function dew$1r() {
32559
32588
  for (var i5 = 0; i5 < state.keys.length; i5 += 2) {
32560
32589
  var keyL = state.keys[i5];
32561
32590
  var keyR = state.keys[i5 + 1];
32562
- utils2.expand(r5, state.tmp, 0);
32591
+ utils.expand(r5, state.tmp, 0);
32563
32592
  keyL ^= state.tmp[0];
32564
32593
  keyR ^= state.tmp[1];
32565
- var s5 = utils2.substitute(keyL, keyR);
32566
- var f6 = utils2.permute(s5);
32594
+ var s5 = utils.substitute(keyL, keyR);
32595
+ var f6 = utils.permute(s5);
32567
32596
  var t5 = r5;
32568
32597
  r5 = (l5 ^ f6) >>> 0;
32569
32598
  l5 = t5;
32570
32599
  }
32571
- utils2.rip(r5, l5, out, off2);
32600
+ utils.rip(r5, l5, out, off2);
32572
32601
  };
32573
32602
  DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off2) {
32574
32603
  var l5 = rStart;
@@ -32576,16 +32605,16 @@ function dew$1r() {
32576
32605
  for (var i5 = state.keys.length - 2; i5 >= 0; i5 -= 2) {
32577
32606
  var keyL = state.keys[i5];
32578
32607
  var keyR = state.keys[i5 + 1];
32579
- utils2.expand(l5, state.tmp, 0);
32608
+ utils.expand(l5, state.tmp, 0);
32580
32609
  keyL ^= state.tmp[0];
32581
32610
  keyR ^= state.tmp[1];
32582
- var s5 = utils2.substitute(keyL, keyR);
32583
- var f6 = utils2.permute(s5);
32611
+ var s5 = utils.substitute(keyL, keyR);
32612
+ var f6 = utils.permute(s5);
32584
32613
  var t5 = l5;
32585
32614
  l5 = (r5 ^ f6) >>> 0;
32586
32615
  r5 = t5;
32587
32616
  }
32588
- utils2.rip(l5, r5, out, off2);
32617
+ utils.rip(l5, r5, out, off2);
32589
32618
  };
32590
32619
  return exports$1s;
32591
32620
  }
@@ -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 = (function() {
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 = (function() {
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), (function(t6) {
39395
+ !r5 && o5 && (o5.call(n5, "null"), r5 = n5.eval), forEach2(Object_keys2(e7), function(t6) {
39367
39396
  n5[t6] = e7[t6];
39368
- })), forEach2(globals2, (function(t6) {
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), (function(t6) {
39401
+ return forEach2(Object_keys2(n5), function(t6) {
39373
39402
  (t6 in e7 || -1 === indexOf2(c5, t6)) && (e7[t6] = n5[t6]);
39374
- })), forEach2(globals2, (function(t6) {
39403
+ }), forEach2(globals2, function(t6) {
39375
39404
  t6 in e7 || defineProp2(e7, t6, n5[t6]);
39376
- })), document.body.removeChild(t5), i5;
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), (function(n6) {
39410
+ return e7 && forEach2(Object_keys2(t5), function(n6) {
39382
39411
  e7[n6] = t5[n6];
39383
- })), n5;
39384
- }, forEach2(Object_keys2(Script3.prototype), (function(e7) {
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
- })), exports$11$1.isContext = function(e7) {
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), (function(n5) {
39424
+ return "object" == typeof e7 && forEach2(Object_keys2(e7), function(n5) {
39396
39425
  t5[n5] = e7[n5];
39397
- })), t5;
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((function() {
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 (!(function(t6, i6) {
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
- })(t5, "Data"), this._finalized) throw new Error("Digest already called");
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__ */ (function(r6) {
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
- })(r5), o5 = "sha512" === r5 || "sha384" === r5 ? 128 : 64;
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((function(r6) {
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
- })).then((function(r6) {
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((function() {
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)), (function(r6, e8) {
39968
- r6.then((function(r7) {
39969
- H$1.nextTick((function() {
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
- }), (function(r7) {
39973
- H$1.nextTick((function() {
40000
+ });
40001
+ }, function(r7) {
40002
+ H$1.nextTick(function() {
39974
40003
  e8(r7);
39975
- }));
39976
- }));
39977
- })((function(r6) {
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((function() {
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
- })).catch((function() {
40012
+ }).catch(function() {
39984
40013
  return false;
39985
- }));
40014
+ });
39986
40015
  return I$2[r6] = e8, e8;
39987
- })(f6).then((function(i6) {
40016
+ }(f6).then(function(i6) {
39988
40017
  return i6 ? D$1(r5, e7, t5, n5, f6) : U$1(r5, e7, t5, n5, o5);
39989
- })), i5);
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 = (function() {
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 = (function(t6, e8, i6) {
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
- })(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;
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 && (function(t6, e7) {
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
- })(t5, (this || v$5)._authTag)) throw new Error("Unsupported state or unable to authenticate data");
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 (function(t6) {
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
- })((this || c$9)._mode.decrypt(this || c$9, t5));
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
- !(function(r5, h5) {
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 ? (function(t6, i5, r7) {
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
- })(this || i$3, t5, r6) : M4(this || i$3, t5, r6);
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 = (function(t6) {
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
- })(t5);
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
- })(h$a, r$7);
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 = (function(f6, e7) {
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
- })((this || B$5).__prime, (this || B$5).__gen)), (this || B$5)._primeCode;
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 = (function(e8) {
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
- })(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);
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((function(e8) {
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
- })) : this._getEndoBasis(d4) };
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", (function() {
42949
+ }, ve2(ye2, "pubBytes", function() {
42921
42950
  return this.eddsa.encodePoint(this.pub());
42922
- })), ve2(ye2, "pub", (function() {
42951
+ }), ve2(ye2, "pub", function() {
42923
42952
  return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv());
42924
- })), ve2(ye2, "privBytes", (function() {
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
- })), ve2(ye2, "priv", (function() {
42956
+ }), ve2(ye2, "priv", function() {
42928
42957
  return this.eddsa.decodeInt(this.privBytes());
42929
- })), ve2(ye2, "hash", (function() {
42958
+ }), ve2(ye2, "hash", function() {
42930
42959
  return this.eddsa.hash().update(this.secret()).digest();
42931
- })), ve2(ye2, "messagePrefix", (function() {
42960
+ }), ve2(ye2, "messagePrefix", function() {
42932
42961
  return this.hash().slice(this.eddsa.encodingLength);
42933
- })), ye2.prototype.sign = function(e7) {
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", (function() {
42980
+ Ie(Me, "S", function() {
42952
42981
  return this.eddsa.decodeInt(this.Sencoded());
42953
- })), Ie(Me, "R", (function() {
42982
+ }), Ie(Me, "R", function() {
42954
42983
  return this.eddsa.decodePoint(this.Rencoded());
42955
- })), Ie(Me, "Rencoded", (function() {
42984
+ }), Ie(Me, "Rencoded", function() {
42956
42985
  return this.eddsa.encodePoint(this.R());
42957
- })), Ie(Me, "Sencoded", (function() {
42986
+ }), Ie(Me, "Sencoded", function() {
42958
42987
  return this.eddsa.encodeInt(this.S());
42959
- })), Me.prototype.toBytes = function() {
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((function(e8) {
43079
+ if (t5 = n5 ? e7 : new h$g(r5.path.map(function(e8) {
43051
43080
  return "[" + JSON.stringify(e8) + "]";
43052
- })).join(""), e7.message || e7, e7.stack), !r5.options.partial) throw t5;
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((function(e9) {
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
- }), this || g$e);
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((function(r6) {
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
- })) : ("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;
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 = (function() {
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((function(r7) {
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((function(t6) {
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
- }), this || b$c);
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((function(e10) {
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
- }), this || b$c), n5.equal(t6.children.length, 1, "Root node can have only one child");
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((function(e10) {
43179
+ var t6 = (this || b$c)._baseState, r6 = e9.filter(function(e10) {
43151
43180
  return e10 instanceof (this || b$c).constructor;
43152
- }), this || b$c);
43153
- e9 = e9.filter((function(e10) {
43181
+ }, this || b$c);
43182
+ e9 = e9.filter(function(e10) {
43154
43183
  return !(e10 instanceof (this || b$c).constructor);
43155
- }), this || b$c), 0 !== r6.length && (n5(null === t6.children), t6.children = r6, r6.forEach((function(e10) {
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
- }), this || b$c)), 0 !== e9.length && (n5(null === t6.args), t6.args = e9, t6.reverseArgs = e9.map((function(e10) {
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((function(r7) {
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
- })), t7;
43165
- })));
43166
- }, ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"].forEach((function(e9) {
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
- })), o5.forEach((function(e9) {
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
- })), a5.prototype.use = function(e9) {
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((function(t7) {
43230
+ return n5(null === t6.choice), t6.choice = e9, this._useArgs(Object.keys(e9).map(function(t7) {
43202
43231
  return e9[t7];
43203
- }))), this || b$c;
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((function(r6) {
43268
+ if (n6.any || null !== n6.choice || null === n6.children || n6.children.forEach(function(r6) {
43240
43269
  r6._decode(e9, t6);
43241
- })), n6.contains && ("octstr" === n6.tag || "bitstr" === n6.tag)) {
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((function(o6) {
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
- }), this || b$c), i5 ? n6 : e9.error("Choice not matched");
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((function(e9) {
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
- }), this || b$c).filter((function(e9) {
43322
+ }, this || b$c).filter(function(e9) {
43294
43323
  return e9;
43295
- })), s6 = this._createEncoderBuffer(s6);
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((function(e9) {
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
- }), u6));
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
- })(), m$g;
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((function(r5) {
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
- })), t5;
43346
- }, e7.der = (function() {
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
- })(), B$9;
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 = (function() {
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
- })(), I$9;
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 = (function(e9, t6, r6, n6) {
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
- })(e8, t5, n5, (this || R$4).reporter);
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 = (function() {
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
- })(), J$4;
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 = (function() {
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
- })().define, n5.base = E$9(), n5.constants = T$6(), n5.decoders = P$5(), n5.encoders = Z$2(), z$7;
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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", (function() {
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 = (function(e8, r6) {
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
- })(i5 = y$h.EncryptedPrivateKey.decode(i5, "der"), r5);
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 = (function(e8, t6) {
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
- })(r5, t5), s5 = new f$q(o5);
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 (function(e8, t6) {
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
- })(e7, o5);
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 (function(e8, t6, r6) {
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 (function(e9, t7) {
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
- })(h6, p5);
43902
- })(e7, o5, r5);
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 (function(e8, t6, r6) {
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
- })(e7, t5, o5);
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 (function(e8, t6, r6) {
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
- })(e7, t5, o5);
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((function(e7) {
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
- })), q$7(D$6, S$b.Writable), D$6.prototype._write = function(e7, t5, r5) {
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 = (function(r6, n6) {
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
- })(a5, n5);
44075
- else if (1 === t5) o5 = (function(r6, n6, e8) {
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) : (function(r7) {
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
- })(a6 - o6 - 3);
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
- })(a5, n5, e7);
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 (function(r6, n6) {
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 ((function(r7, n7) {
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
- })(t6, f6.slice(0, o6))) throw new Error("decryption error");
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
- })(a5, o5);
44123
- if (1 === t5) return (function(r6, n6, e8) {
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
- })(0, o5, e7);
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((function() {
44198
+ return m$l.getRandomValues(i5), o5 ? (f$t.nextTick(function() {
44170
44199
  o5(null, r5);
44171
- })), void 0) : r5;
44200
+ }), void 0) : r5;
44172
44201
  }
44173
- return o5 ? (a$o(n5, (function(n6, t6) {
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
- })), void 0) : (a$o(n5).copy(r5, e7), r5);
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');
@@ -44589,7 +44618,7 @@ function dew$Z$1() {
44589
44618
  }
44590
44619
  return out;
44591
44620
  };
44592
- DH.prototype.getPublicKey = function getPublicKey2(enc) {
44621
+ DH.prototype.getPublicKey = function getPublicKey(enc) {
44593
44622
  return formatReturnValue((this || _global$8$1)._pub, enc);
44594
44623
  };
44595
44624
  DH.prototype.getPrivateKey = function getPrivateKey(enc) {
@@ -50097,7 +50126,7 @@ var _dewExec$U$1 = false;
50097
50126
  function dew$U$1() {
50098
50127
  if (_dewExec$U$1) return exports$U$1;
50099
50128
  _dewExec$U$1 = true;
50100
- var utils2 = exports$U$1;
50129
+ var utils = exports$U$1;
50101
50130
  function toArray(msg, enc) {
50102
50131
  if (Array.isArray(msg)) return msg.slice();
50103
50132
  if (!msg) return [];
@@ -50121,19 +50150,19 @@ function dew$U$1() {
50121
50150
  }
50122
50151
  return res;
50123
50152
  }
50124
- utils2.toArray = toArray;
50153
+ utils.toArray = toArray;
50125
50154
  function zero2(word) {
50126
50155
  if (word.length === 1) return "0" + word;
50127
50156
  else return word;
50128
50157
  }
50129
- utils2.zero2 = zero2;
50158
+ utils.zero2 = zero2;
50130
50159
  function toHex(msg) {
50131
50160
  var res = "";
50132
50161
  for (var i5 = 0; i5 < msg.length; i5++) res += zero2(msg[i5].toString(16));
50133
50162
  return res;
50134
50163
  }
50135
- utils2.toHex = toHex;
50136
- utils2.encode = function encode(arr, enc) {
50164
+ utils.toHex = toHex;
50165
+ utils.encode = function encode(arr, enc) {
50137
50166
  if (enc === "hex") return toHex(arr);
50138
50167
  else return arr;
50139
50168
  };
@@ -50144,15 +50173,15 @@ var _dewExec$T$1 = false;
50144
50173
  function dew$T$1() {
50145
50174
  if (_dewExec$T$1) return exports$T$1;
50146
50175
  _dewExec$T$1 = true;
50147
- var utils2 = exports$T$1;
50176
+ var utils = exports$T$1;
50148
50177
  var BN = dew$V$1();
50149
50178
  var minAssert = dew$1t();
50150
50179
  var minUtils = dew$U$1();
50151
- utils2.assert = minAssert;
50152
- utils2.toArray = minUtils.toArray;
50153
- utils2.zero2 = minUtils.zero2;
50154
- utils2.toHex = minUtils.toHex;
50155
- utils2.encode = minUtils.encode;
50180
+ utils.assert = minAssert;
50181
+ utils.toArray = minUtils.toArray;
50182
+ utils.zero2 = minUtils.zero2;
50183
+ utils.toHex = minUtils.toHex;
50184
+ utils.encode = minUtils.encode;
50156
50185
  function getNAF(num, w4, bits) {
50157
50186
  var naf = new Array(Math.max(num.bitLength(), bits) + 1);
50158
50187
  naf.fill(0);
@@ -50173,7 +50202,7 @@ function dew$T$1() {
50173
50202
  }
50174
50203
  return naf;
50175
50204
  }
50176
- utils2.getNAF = getNAF;
50205
+ utils.getNAF = getNAF;
50177
50206
  function getJSF(k1, k22) {
50178
50207
  var jsf = [[], []];
50179
50208
  k1 = k1.clone();
@@ -50211,22 +50240,22 @@ function dew$T$1() {
50211
50240
  }
50212
50241
  return jsf;
50213
50242
  }
50214
- utils2.getJSF = getJSF;
50243
+ utils.getJSF = getJSF;
50215
50244
  function cachedProperty(obj, name2, computer) {
50216
50245
  var key = "_" + name2;
50217
50246
  obj.prototype[name2] = function cachedProperty2() {
50218
50247
  return this[key] !== void 0 ? this[key] : this[key] = computer.call(this);
50219
50248
  };
50220
50249
  }
50221
- utils2.cachedProperty = cachedProperty;
50250
+ utils.cachedProperty = cachedProperty;
50222
50251
  function parseBytes(bytes) {
50223
- return typeof bytes === "string" ? utils2.toArray(bytes, "hex") : bytes;
50252
+ return typeof bytes === "string" ? utils.toArray(bytes, "hex") : bytes;
50224
50253
  }
50225
- utils2.parseBytes = parseBytes;
50254
+ utils.parseBytes = parseBytes;
50226
50255
  function intFromLE(bytes) {
50227
50256
  return new BN(bytes, "hex", "le");
50228
50257
  }
50229
- utils2.intFromLE = intFromLE;
50258
+ utils.intFromLE = intFromLE;
50230
50259
  return exports$T$1;
50231
50260
  }
50232
50261
  var exports$S$1 = {};
@@ -50235,10 +50264,10 @@ function dew$S$1() {
50235
50264
  if (_dewExec$S$1) return exports$S$1;
50236
50265
  _dewExec$S$1 = true;
50237
50266
  var BN = dew$V$1();
50238
- var utils2 = dew$T$1();
50239
- var getNAF = utils2.getNAF;
50240
- var getJSF = utils2.getJSF;
50241
- var assert2 = utils2.assert;
50267
+ var utils = dew$T$1();
50268
+ var getNAF = utils.getNAF;
50269
+ var getJSF = utils.getJSF;
50270
+ var assert2 = utils.assert;
50242
50271
  function BaseCurve(type, conf) {
50243
50272
  this.type = type;
50244
50273
  this.p = new BN(conf.p, 16);
@@ -50437,7 +50466,7 @@ function dew$S$1() {
50437
50466
  return this.curve.validate(this);
50438
50467
  };
50439
50468
  BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
50440
- bytes = utils2.toArray(bytes, enc);
50469
+ bytes = utils.toArray(bytes, enc);
50441
50470
  var len = this.p.byteLength();
50442
50471
  if ((bytes[0] === 4 || bytes[0] === 6 || bytes[0] === 7) && bytes.length - 1 === 2 * len) {
50443
50472
  if (bytes[0] === 6) assert2(bytes[bytes.length - 1] % 2 === 0);
@@ -50459,7 +50488,7 @@ function dew$S$1() {
50459
50488
  return [4].concat(x4, this.getY().toArray("be", len));
50460
50489
  };
50461
50490
  BasePoint.prototype.encode = function encode(enc, compact) {
50462
- return utils2.encode(this._encode(compact), enc);
50491
+ return utils.encode(this._encode(compact), enc);
50463
50492
  };
50464
50493
  BasePoint.prototype.precompute = function precompute(power) {
50465
50494
  if (this.precomputed) return this;
@@ -50519,11 +50548,11 @@ var _dewExec$R$1 = false;
50519
50548
  function dew$R$1() {
50520
50549
  if (_dewExec$R$1) return exports$R$1;
50521
50550
  _dewExec$R$1 = true;
50522
- var utils2 = dew$T$1();
50551
+ var utils = dew$T$1();
50523
50552
  var BN = dew$V$1();
50524
50553
  var inherits = dew$f$2();
50525
50554
  var Base = dew$S$1();
50526
- var assert2 = utils2.assert;
50555
+ var assert2 = utils.assert;
50527
50556
  function ShortCurve(conf) {
50528
50557
  Base.call(this, "short", conf);
50529
50558
  this.a = new BN(conf.a, 16).toRed(this.red);
@@ -51166,7 +51195,7 @@ function dew$Q$1() {
51166
51195
  var BN = dew$V$1();
51167
51196
  var inherits = dew$f$2();
51168
51197
  var Base = dew$S$1();
51169
- var utils2 = dew$T$1();
51198
+ var utils = dew$T$1();
51170
51199
  function MontCurve(conf) {
51171
51200
  Base.call(this, "mont", conf);
51172
51201
  this.a = new BN(conf.a, 16).toRed(this.red);
@@ -51198,7 +51227,7 @@ function dew$Q$1() {
51198
51227
  }
51199
51228
  inherits(Point, Base.BasePoint);
51200
51229
  MontCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
51201
- return this.point(utils2.toArray(bytes, enc), 1);
51230
+ return this.point(utils.toArray(bytes, enc), 1);
51202
51231
  };
51203
51232
  MontCurve.prototype.point = function point(x4, z4) {
51204
51233
  return new Point(this, x4, z4);
@@ -51287,11 +51316,11 @@ var _dewExec$P$1 = false;
51287
51316
  function dew$P$1() {
51288
51317
  if (_dewExec$P$1) return exports$P$1;
51289
51318
  _dewExec$P$1 = true;
51290
- var utils2 = dew$T$1();
51319
+ var utils = dew$T$1();
51291
51320
  var BN = dew$V$1();
51292
51321
  var inherits = dew$f$2();
51293
51322
  var Base = dew$S$1();
51294
- var assert2 = utils2.assert;
51323
+ var assert2 = utils.assert;
51295
51324
  function EdwardsCurve(conf) {
51296
51325
  this.twisted = (conf.a | 0) !== 1;
51297
51326
  this.mOneA = this.twisted && (conf.a | 0) === -1;
@@ -51788,7 +51817,7 @@ var _dewExec$M$1 = false;
51788
51817
  function dew$M$1() {
51789
51818
  if (_dewExec$M$1) return exports$M$1;
51790
51819
  _dewExec$M$1 = true;
51791
- var utils2 = dew$N$1();
51820
+ var utils = dew$N$1();
51792
51821
  var assert2 = dew$1t();
51793
51822
  function BlockHash() {
51794
51823
  this.pending = null;
@@ -51803,7 +51832,7 @@ function dew$M$1() {
51803
51832
  }
51804
51833
  exports$M$1.BlockHash = BlockHash;
51805
51834
  BlockHash.prototype.update = function update(msg, enc) {
51806
- msg = utils2.toArray(msg, enc);
51835
+ msg = utils.toArray(msg, enc);
51807
51836
  if (!this.pending) this.pending = msg;
51808
51837
  else this.pending = this.pending.concat(msg);
51809
51838
  this.pendingTotal += msg.length;
@@ -51812,7 +51841,7 @@ function dew$M$1() {
51812
51841
  var r5 = msg.length % this._delta8;
51813
51842
  this.pending = msg.slice(msg.length - r5, msg.length);
51814
51843
  if (this.pending.length === 0) this.pending = null;
51815
- msg = utils2.join32(msg, 0, msg.length - r5, this.endian);
51844
+ msg = utils.join32(msg, 0, msg.length - r5, this.endian);
51816
51845
  for (var i5 = 0; i5 < msg.length; i5 += this._delta32) this._update(msg, i5, i5 + this._delta32);
51817
51846
  }
51818
51847
  return this;
@@ -51867,12 +51896,12 @@ var _dewExec$K$1 = false;
51867
51896
  function dew$K$1() {
51868
51897
  if (_dewExec$K$1) return exports$K$1;
51869
51898
  _dewExec$K$1 = true;
51870
- var utils2 = dew$N$1();
51899
+ var utils = dew$N$1();
51871
51900
  var common = dew$M$1();
51872
- var rotl32 = utils2.rotl32;
51873
- var sum32 = utils2.sum32;
51874
- var sum32_3 = utils2.sum32_3;
51875
- var sum32_4 = utils2.sum32_4;
51901
+ var rotl32 = utils.rotl32;
51902
+ var sum32 = utils.sum32;
51903
+ var sum32_3 = utils.sum32_3;
51904
+ var sum32_4 = utils.sum32_4;
51876
51905
  var BlockHash = common.BlockHash;
51877
51906
  function RIPEMD160() {
51878
51907
  if (!(this instanceof RIPEMD160)) return new RIPEMD160();
@@ -51880,7 +51909,7 @@ function dew$K$1() {
51880
51909
  this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
51881
51910
  this.endian = "little";
51882
51911
  }
51883
- utils2.inherits(RIPEMD160, BlockHash);
51912
+ utils.inherits(RIPEMD160, BlockHash);
51884
51913
  exports$K$1.ripemd160 = RIPEMD160;
51885
51914
  RIPEMD160.blockSize = 512;
51886
51915
  RIPEMD160.outSize = 160;
@@ -51919,8 +51948,8 @@ function dew$K$1() {
51919
51948
  this.h[0] = T4;
51920
51949
  };
51921
51950
  RIPEMD160.prototype._digest = function digest(enc) {
51922
- if (enc === "hex") return utils2.toHex32(this.h, "little");
51923
- else return utils2.split32(this.h, "little");
51951
+ if (enc === "hex") return utils.toHex32(this.h, "little");
51952
+ else return utils.split32(this.h, "little");
51924
51953
  };
51925
51954
  function f6(j4, x4, y5, z4) {
51926
51955
  if (j4 <= 15) return x4 ^ y5 ^ z4;
@@ -51954,7 +51983,7 @@ var _dewExec$J$1 = false;
51954
51983
  function dew$J$1() {
51955
51984
  if (_dewExec$J$1) return exports$J$1;
51956
51985
  _dewExec$J$1 = true;
51957
- var utils2 = dew$N$1();
51986
+ var utils = dew$N$1();
51958
51987
  var assert2 = dew$1t();
51959
51988
  function Hmac2(hash, key, enc) {
51960
51989
  if (!(this instanceof Hmac2)) return new Hmac2(hash, key, enc);
@@ -51963,7 +51992,7 @@ function dew$J$1() {
51963
51992
  this.outSize = hash.outSize / 8;
51964
51993
  this.inner = null;
51965
51994
  this.outer = null;
51966
- this._init(utils2.toArray(key, enc));
51995
+ this._init(utils.toArray(key, enc));
51967
51996
  }
51968
51997
  exports$J$1 = Hmac2;
51969
51998
  Hmac2.prototype._init = function init2(key) {
@@ -52029,8 +52058,8 @@ function dew$G$1() {
52029
52058
  var curves = exports$G$1;
52030
52059
  var hash = dew$I$1();
52031
52060
  var curve = dew$O$1();
52032
- var utils2 = dew$T$1();
52033
- var assert2 = utils2.assert;
52061
+ var utils = dew$T$1();
52062
+ var assert2 = utils.assert;
52034
52063
  function PresetCurve(options) {
52035
52064
  if (options.type === "short") this.curve = new curve.short(options);
52036
52065
  else if (options.type === "edwards") this.curve = new curve.edwards(options);
@@ -52176,7 +52205,7 @@ function dew$F$1() {
52176
52205
  if (_dewExec$F$1) return exports$F$1;
52177
52206
  _dewExec$F$1 = true;
52178
52207
  var hash = dew$I$1();
52179
- var utils2 = dew$U$1();
52208
+ var utils = dew$U$1();
52180
52209
  var assert2 = dew$1t();
52181
52210
  function HmacDRBG(options) {
52182
52211
  if (!(this instanceof HmacDRBG)) return new HmacDRBG(options);
@@ -52188,9 +52217,9 @@ function dew$F$1() {
52188
52217
  this.reseedInterval = null;
52189
52218
  this.K = null;
52190
52219
  this.V = null;
52191
- var entropy = utils2.toArray(options.entropy, options.entropyEnc || "hex");
52192
- var nonce = utils2.toArray(options.nonce, options.nonceEnc || "hex");
52193
- var pers = utils2.toArray(options.pers, options.persEnc || "hex");
52220
+ var entropy = utils.toArray(options.entropy, options.entropyEnc || "hex");
52221
+ var nonce = utils.toArray(options.nonce, options.nonceEnc || "hex");
52222
+ var pers = utils.toArray(options.pers, options.persEnc || "hex");
52194
52223
  assert2(entropy.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits");
52195
52224
  this._init(entropy, nonce, pers);
52196
52225
  }
@@ -52225,8 +52254,8 @@ function dew$F$1() {
52225
52254
  add = entropyEnc;
52226
52255
  entropyEnc = null;
52227
52256
  }
52228
- entropy = utils2.toArray(entropy, entropyEnc);
52229
- add = utils2.toArray(add, addEnc);
52257
+ entropy = utils.toArray(entropy, entropyEnc);
52258
+ add = utils.toArray(add, addEnc);
52230
52259
  assert2(entropy.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits");
52231
52260
  this._update(entropy.concat(add || []));
52232
52261
  this._reseed = 1;
@@ -52239,7 +52268,7 @@ function dew$F$1() {
52239
52268
  enc = null;
52240
52269
  }
52241
52270
  if (add) {
52242
- add = utils2.toArray(add, addEnc || "hex");
52271
+ add = utils.toArray(add, addEnc || "hex");
52243
52272
  this._update(add);
52244
52273
  }
52245
52274
  var temp = [];
@@ -52250,7 +52279,7 @@ function dew$F$1() {
52250
52279
  var res = temp.slice(0, len);
52251
52280
  this._update(add);
52252
52281
  this._reseed++;
52253
- return utils2.encode(res, enc);
52282
+ return utils.encode(res, enc);
52254
52283
  };
52255
52284
  return exports$F$1;
52256
52285
  }
@@ -52260,8 +52289,8 @@ function dew$E$1() {
52260
52289
  if (_dewExec$E$1) return exports$E$1;
52261
52290
  _dewExec$E$1 = true;
52262
52291
  var BN = dew$V$1();
52263
- var utils2 = dew$T$1();
52264
- var assert2 = utils2.assert;
52292
+ var utils = dew$T$1();
52293
+ var assert2 = utils.assert;
52265
52294
  function KeyPair(ec, options) {
52266
52295
  this.ec = ec;
52267
52296
  this.priv = null;
@@ -52355,8 +52384,8 @@ function dew$D$1() {
52355
52384
  if (_dewExec$D$1) return exports$D$1;
52356
52385
  _dewExec$D$1 = true;
52357
52386
  var BN = dew$V$1();
52358
- var utils2 = dew$T$1();
52359
- var assert2 = utils2.assert;
52387
+ var utils = dew$T$1();
52388
+ var assert2 = utils.assert;
52360
52389
  function Signature(options, enc) {
52361
52390
  if (options instanceof Signature) return options;
52362
52391
  if (this._importDER(options, enc)) return;
@@ -52403,7 +52432,7 @@ function dew$D$1() {
52403
52432
  return buf.slice(i5);
52404
52433
  }
52405
52434
  Signature.prototype._importDER = function _importDER(data, enc) {
52406
- data = utils2.toArray(data, enc);
52435
+ data = utils.toArray(data, enc);
52407
52436
  var p5 = new Position();
52408
52437
  if (data[p5.place++] !== 48) {
52409
52438
  return false;
@@ -52485,7 +52514,7 @@ function dew$D$1() {
52485
52514
  var res = [48];
52486
52515
  constructLength(res, backHalf.length);
52487
52516
  res = res.concat(backHalf);
52488
- return utils2.encode(res, enc);
52517
+ return utils.encode(res, enc);
52489
52518
  };
52490
52519
  return exports$D$1;
52491
52520
  }
@@ -52496,10 +52525,10 @@ function dew$C$1() {
52496
52525
  _dewExec$C$1 = true;
52497
52526
  var BN = dew$V$1();
52498
52527
  var HmacDRBG = dew$F$1();
52499
- var utils2 = dew$T$1();
52528
+ var utils = dew$T$1();
52500
52529
  var curves = dew$G$1();
52501
52530
  var rand = dew$10$1();
52502
- var assert2 = utils2.assert;
52531
+ var assert2 = utils.assert;
52503
52532
  var KeyPair = dew$E$1();
52504
52533
  var Signature = dew$D$1();
52505
52534
  function EC(options) {
@@ -52656,10 +52685,10 @@ var _dewExec$B$1 = false;
52656
52685
  function dew$B$1() {
52657
52686
  if (_dewExec$B$1) return exports$B$1;
52658
52687
  _dewExec$B$1 = true;
52659
- var utils2 = dew$T$1();
52660
- var assert2 = utils2.assert;
52661
- var parseBytes = utils2.parseBytes;
52662
- var cachedProperty = utils2.cachedProperty;
52688
+ var utils = dew$T$1();
52689
+ var assert2 = utils.assert;
52690
+ var parseBytes = utils.parseBytes;
52691
+ var cachedProperty = utils.cachedProperty;
52663
52692
  function KeyPair(eddsa, params) {
52664
52693
  this.eddsa = eddsa;
52665
52694
  this._secret = parseBytes(params.secret);
@@ -52716,10 +52745,10 @@ function dew$B$1() {
52716
52745
  };
52717
52746
  KeyPair.prototype.getSecret = function getSecret(enc) {
52718
52747
  assert2(this._secret, "KeyPair is public only");
52719
- return utils2.encode(this.secret(), enc);
52748
+ return utils.encode(this.secret(), enc);
52720
52749
  };
52721
52750
  KeyPair.prototype.getPublic = function getPublic(enc) {
52722
- return utils2.encode(this.pubBytes(), enc);
52751
+ return utils.encode(this.pubBytes(), enc);
52723
52752
  };
52724
52753
  exports$B$1 = KeyPair;
52725
52754
  return exports$B$1;
@@ -52730,10 +52759,10 @@ function dew$A$1() {
52730
52759
  if (_dewExec$A$1) return exports$A$1;
52731
52760
  _dewExec$A$1 = true;
52732
52761
  var BN = dew$V$1();
52733
- var utils2 = dew$T$1();
52734
- var assert2 = utils2.assert;
52735
- var cachedProperty = utils2.cachedProperty;
52736
- var parseBytes = utils2.parseBytes;
52762
+ var utils = dew$T$1();
52763
+ var assert2 = utils.assert;
52764
+ var cachedProperty = utils.cachedProperty;
52765
+ var parseBytes = utils.parseBytes;
52737
52766
  function Signature(eddsa, sig) {
52738
52767
  this.eddsa = eddsa;
52739
52768
  if (typeof sig !== "object") sig = parseBytes(sig);
@@ -52765,7 +52794,7 @@ function dew$A$1() {
52765
52794
  return this.Rencoded().concat(this.Sencoded());
52766
52795
  };
52767
52796
  Signature.prototype.toHex = function toHex() {
52768
- return utils2.encode(this.toBytes(), "hex").toUpperCase();
52797
+ return utils.encode(this.toBytes(), "hex").toUpperCase();
52769
52798
  };
52770
52799
  exports$A$1 = Signature;
52771
52800
  return exports$A$1;
@@ -52777,9 +52806,9 @@ function dew$z$1() {
52777
52806
  _dewExec$z$1 = true;
52778
52807
  var hash = dew$I$1();
52779
52808
  var curves = dew$G$1();
52780
- var utils2 = dew$T$1();
52781
- var assert2 = utils2.assert;
52782
- var parseBytes = utils2.parseBytes;
52809
+ var utils = dew$T$1();
52810
+ var assert2 = utils.assert;
52811
+ var parseBytes = utils.parseBytes;
52783
52812
  var KeyPair = dew$B$1();
52784
52813
  var Signature = dew$A$1();
52785
52814
  function EDDSA(curve) {
@@ -52820,7 +52849,7 @@ function dew$z$1() {
52820
52849
  EDDSA.prototype.hashInt = function hashInt() {
52821
52850
  var hash2 = this.hash();
52822
52851
  for (var i5 = 0; i5 < arguments.length; i5++) hash2.update(arguments[i5]);
52823
- return utils2.intFromLE(hash2.digest()).umod(this.curve.n);
52852
+ return utils.intFromLE(hash2.digest()).umod(this.curve.n);
52824
52853
  };
52825
52854
  EDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {
52826
52855
  return KeyPair.fromPublic(this, pub);
@@ -52838,18 +52867,18 @@ function dew$z$1() {
52838
52867
  return enc;
52839
52868
  };
52840
52869
  EDDSA.prototype.decodePoint = function decodePoint(bytes) {
52841
- bytes = utils2.parseBytes(bytes);
52870
+ bytes = utils.parseBytes(bytes);
52842
52871
  var lastIx = bytes.length - 1;
52843
52872
  var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~128);
52844
52873
  var xIsOdd = (bytes[lastIx] & 128) !== 0;
52845
- var y5 = utils2.intFromLE(normed);
52874
+ var y5 = utils.intFromLE(normed);
52846
52875
  return this.curve.pointFromY(y5, xIsOdd);
52847
52876
  };
52848
52877
  EDDSA.prototype.encodeInt = function encodeInt(num) {
52849
52878
  return num.toArray("le", this.encodingLength);
52850
52879
  };
52851
52880
  EDDSA.prototype.decodeInt = function decodeInt(bytes) {
52852
- return utils2.intFromLE(bytes);
52881
+ return utils.intFromLE(bytes);
52853
52882
  };
52854
52883
  EDDSA.prototype.isPoint = function isPoint(val) {
52855
52884
  return val instanceof this.pointClass;
@@ -63776,7 +63805,7 @@ function dew$_$2() {
63776
63805
  }
63777
63806
  return out;
63778
63807
  };
63779
- DH.prototype.getPublicKey = function getPublicKey2(enc) {
63808
+ DH.prototype.getPublicKey = function getPublicKey(enc) {
63780
63809
  return formatReturnValue((this || _global$8$2)._pub, enc);
63781
63810
  };
63782
63811
  DH.prototype.getPrivateKey = function getPrivateKey(enc) {
@@ -69311,7 +69340,7 @@ var _dewExec$U$2 = false;
69311
69340
  function dew$U$2() {
69312
69341
  if (_dewExec$U$2) return exports$V$2;
69313
69342
  _dewExec$U$2 = true;
69314
- var utils2 = exports$V$2;
69343
+ var utils = exports$V$2;
69315
69344
  function toArray(msg, enc) {
69316
69345
  if (Array.isArray(msg)) return msg.slice();
69317
69346
  if (!msg) return [];
@@ -69335,19 +69364,19 @@ function dew$U$2() {
69335
69364
  }
69336
69365
  return res;
69337
69366
  }
69338
- utils2.toArray = toArray;
69367
+ utils.toArray = toArray;
69339
69368
  function zero2(word) {
69340
69369
  if (word.length === 1) return "0" + word;
69341
69370
  else return word;
69342
69371
  }
69343
- utils2.zero2 = zero2;
69372
+ utils.zero2 = zero2;
69344
69373
  function toHex(msg) {
69345
69374
  var res = "";
69346
69375
  for (var i5 = 0; i5 < msg.length; i5++) res += zero2(msg[i5].toString(16));
69347
69376
  return res;
69348
69377
  }
69349
- utils2.toHex = toHex;
69350
- utils2.encode = function encode(arr, enc) {
69378
+ utils.toHex = toHex;
69379
+ utils.encode = function encode(arr, enc) {
69351
69380
  if (enc === "hex") return toHex(arr);
69352
69381
  else return arr;
69353
69382
  };
@@ -69358,15 +69387,15 @@ var _dewExec$T$2 = false;
69358
69387
  function dew$T$2() {
69359
69388
  if (_dewExec$T$2) return exports$U$2;
69360
69389
  _dewExec$T$2 = true;
69361
- var utils2 = exports$U$2;
69390
+ var utils = exports$U$2;
69362
69391
  var BN = dew$V$2();
69363
69392
  var minAssert = dew$2m();
69364
69393
  var minUtils = dew$U$2();
69365
- utils2.assert = minAssert;
69366
- utils2.toArray = minUtils.toArray;
69367
- utils2.zero2 = minUtils.zero2;
69368
- utils2.toHex = minUtils.toHex;
69369
- utils2.encode = minUtils.encode;
69394
+ utils.assert = minAssert;
69395
+ utils.toArray = minUtils.toArray;
69396
+ utils.zero2 = minUtils.zero2;
69397
+ utils.toHex = minUtils.toHex;
69398
+ utils.encode = minUtils.encode;
69370
69399
  function getNAF(num, w4, bits) {
69371
69400
  var naf = new Array(Math.max(num.bitLength(), bits) + 1);
69372
69401
  naf.fill(0);
@@ -69387,7 +69416,7 @@ function dew$T$2() {
69387
69416
  }
69388
69417
  return naf;
69389
69418
  }
69390
- utils2.getNAF = getNAF;
69419
+ utils.getNAF = getNAF;
69391
69420
  function getJSF(k1, k22) {
69392
69421
  var jsf = [[], []];
69393
69422
  k1 = k1.clone();
@@ -69425,22 +69454,22 @@ function dew$T$2() {
69425
69454
  }
69426
69455
  return jsf;
69427
69456
  }
69428
- utils2.getJSF = getJSF;
69457
+ utils.getJSF = getJSF;
69429
69458
  function cachedProperty(obj, name2, computer) {
69430
69459
  var key = "_" + name2;
69431
69460
  obj.prototype[name2] = function cachedProperty2() {
69432
69461
  return this[key] !== void 0 ? this[key] : this[key] = computer.call(this);
69433
69462
  };
69434
69463
  }
69435
- utils2.cachedProperty = cachedProperty;
69464
+ utils.cachedProperty = cachedProperty;
69436
69465
  function parseBytes(bytes) {
69437
- return typeof bytes === "string" ? utils2.toArray(bytes, "hex") : bytes;
69466
+ return typeof bytes === "string" ? utils.toArray(bytes, "hex") : bytes;
69438
69467
  }
69439
- utils2.parseBytes = parseBytes;
69468
+ utils.parseBytes = parseBytes;
69440
69469
  function intFromLE(bytes) {
69441
69470
  return new BN(bytes, "hex", "le");
69442
69471
  }
69443
- utils2.intFromLE = intFromLE;
69472
+ utils.intFromLE = intFromLE;
69444
69473
  return exports$U$2;
69445
69474
  }
69446
69475
  var exports$T$2 = {};
@@ -69449,10 +69478,10 @@ function dew$S$2() {
69449
69478
  if (_dewExec$S$2) return exports$T$2;
69450
69479
  _dewExec$S$2 = true;
69451
69480
  var BN = dew$V$2();
69452
- var utils2 = dew$T$2();
69453
- var getNAF = utils2.getNAF;
69454
- var getJSF = utils2.getJSF;
69455
- var assert2 = utils2.assert;
69481
+ var utils = dew$T$2();
69482
+ var getNAF = utils.getNAF;
69483
+ var getJSF = utils.getJSF;
69484
+ var assert2 = utils.assert;
69456
69485
  function BaseCurve(type, conf) {
69457
69486
  this.type = type;
69458
69487
  this.p = new BN(conf.p, 16);
@@ -69651,7 +69680,7 @@ function dew$S$2() {
69651
69680
  return this.curve.validate(this);
69652
69681
  };
69653
69682
  BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
69654
- bytes = utils2.toArray(bytes, enc);
69683
+ bytes = utils.toArray(bytes, enc);
69655
69684
  var len = this.p.byteLength();
69656
69685
  if ((bytes[0] === 4 || bytes[0] === 6 || bytes[0] === 7) && bytes.length - 1 === 2 * len) {
69657
69686
  if (bytes[0] === 6) assert2(bytes[bytes.length - 1] % 2 === 0);
@@ -69673,7 +69702,7 @@ function dew$S$2() {
69673
69702
  return [4].concat(x4, this.getY().toArray("be", len));
69674
69703
  };
69675
69704
  BasePoint.prototype.encode = function encode(enc, compact) {
69676
- return utils2.encode(this._encode(compact), enc);
69705
+ return utils.encode(this._encode(compact), enc);
69677
69706
  };
69678
69707
  BasePoint.prototype.precompute = function precompute(power) {
69679
69708
  if (this.precomputed) return this;
@@ -69733,11 +69762,11 @@ var _dewExec$R$2 = false;
69733
69762
  function dew$R$2() {
69734
69763
  if (_dewExec$R$2) return exports$S$2;
69735
69764
  _dewExec$R$2 = true;
69736
- var utils2 = dew$T$2();
69765
+ var utils = dew$T$2();
69737
69766
  var BN = dew$V$2();
69738
69767
  var inherits = dew$f();
69739
69768
  var Base = dew$S$2();
69740
- var assert2 = utils2.assert;
69769
+ var assert2 = utils.assert;
69741
69770
  function ShortCurve(conf) {
69742
69771
  Base.call(this, "short", conf);
69743
69772
  this.a = new BN(conf.a, 16).toRed(this.red);
@@ -70380,7 +70409,7 @@ function dew$Q$2() {
70380
70409
  var BN = dew$V$2();
70381
70410
  var inherits = dew$f();
70382
70411
  var Base = dew$S$2();
70383
- var utils2 = dew$T$2();
70412
+ var utils = dew$T$2();
70384
70413
  function MontCurve(conf) {
70385
70414
  Base.call(this, "mont", conf);
70386
70415
  this.a = new BN(conf.a, 16).toRed(this.red);
@@ -70412,7 +70441,7 @@ function dew$Q$2() {
70412
70441
  }
70413
70442
  inherits(Point, Base.BasePoint);
70414
70443
  MontCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
70415
- return this.point(utils2.toArray(bytes, enc), 1);
70444
+ return this.point(utils.toArray(bytes, enc), 1);
70416
70445
  };
70417
70446
  MontCurve.prototype.point = function point(x4, z4) {
70418
70447
  return new Point(this, x4, z4);
@@ -70501,11 +70530,11 @@ var _dewExec$P$2 = false;
70501
70530
  function dew$P$2() {
70502
70531
  if (_dewExec$P$2) return exports$Q$2;
70503
70532
  _dewExec$P$2 = true;
70504
- var utils2 = dew$T$2();
70533
+ var utils = dew$T$2();
70505
70534
  var BN = dew$V$2();
70506
70535
  var inherits = dew$f();
70507
70536
  var Base = dew$S$2();
70508
- var assert2 = utils2.assert;
70537
+ var assert2 = utils.assert;
70509
70538
  function EdwardsCurve(conf) {
70510
70539
  this.twisted = (conf.a | 0) !== 1;
70511
70540
  this.mOneA = this.twisted && (conf.a | 0) === -1;
@@ -71002,7 +71031,7 @@ var _dewExec$M$2 = false;
71002
71031
  function dew$M$2() {
71003
71032
  if (_dewExec$M$2) return exports$N$2;
71004
71033
  _dewExec$M$2 = true;
71005
- var utils2 = dew$N$2();
71034
+ var utils = dew$N$2();
71006
71035
  var assert2 = dew$2m();
71007
71036
  function BlockHash() {
71008
71037
  this.pending = null;
@@ -71017,7 +71046,7 @@ function dew$M$2() {
71017
71046
  }
71018
71047
  exports$N$2.BlockHash = BlockHash;
71019
71048
  BlockHash.prototype.update = function update(msg, enc) {
71020
- msg = utils2.toArray(msg, enc);
71049
+ msg = utils.toArray(msg, enc);
71021
71050
  if (!this.pending) this.pending = msg;
71022
71051
  else this.pending = this.pending.concat(msg);
71023
71052
  this.pendingTotal += msg.length;
@@ -71026,7 +71055,7 @@ function dew$M$2() {
71026
71055
  var r5 = msg.length % this._delta8;
71027
71056
  this.pending = msg.slice(msg.length - r5, msg.length);
71028
71057
  if (this.pending.length === 0) this.pending = null;
71029
- msg = utils2.join32(msg, 0, msg.length - r5, this.endian);
71058
+ msg = utils.join32(msg, 0, msg.length - r5, this.endian);
71030
71059
  for (var i5 = 0; i5 < msg.length; i5 += this._delta32) this._update(msg, i5, i5 + this._delta32);
71031
71060
  }
71032
71061
  return this;
@@ -71081,12 +71110,12 @@ var _dewExec$K$2 = false;
71081
71110
  function dew$K$2() {
71082
71111
  if (_dewExec$K$2) return exports$L$2;
71083
71112
  _dewExec$K$2 = true;
71084
- var utils2 = dew$N$2();
71113
+ var utils = dew$N$2();
71085
71114
  var common = dew$M$2();
71086
- var rotl32 = utils2.rotl32;
71087
- var sum32 = utils2.sum32;
71088
- var sum32_3 = utils2.sum32_3;
71089
- var sum32_4 = utils2.sum32_4;
71115
+ var rotl32 = utils.rotl32;
71116
+ var sum32 = utils.sum32;
71117
+ var sum32_3 = utils.sum32_3;
71118
+ var sum32_4 = utils.sum32_4;
71090
71119
  var BlockHash = common.BlockHash;
71091
71120
  function RIPEMD160() {
71092
71121
  if (!(this instanceof RIPEMD160)) return new RIPEMD160();
@@ -71094,7 +71123,7 @@ function dew$K$2() {
71094
71123
  this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
71095
71124
  this.endian = "little";
71096
71125
  }
71097
- utils2.inherits(RIPEMD160, BlockHash);
71126
+ utils.inherits(RIPEMD160, BlockHash);
71098
71127
  exports$L$2.ripemd160 = RIPEMD160;
71099
71128
  RIPEMD160.blockSize = 512;
71100
71129
  RIPEMD160.outSize = 160;
@@ -71133,8 +71162,8 @@ function dew$K$2() {
71133
71162
  this.h[0] = T4;
71134
71163
  };
71135
71164
  RIPEMD160.prototype._digest = function digest(enc) {
71136
- if (enc === "hex") return utils2.toHex32(this.h, "little");
71137
- else return utils2.split32(this.h, "little");
71165
+ if (enc === "hex") return utils.toHex32(this.h, "little");
71166
+ else return utils.split32(this.h, "little");
71138
71167
  };
71139
71168
  function f6(j4, x4, y5, z4) {
71140
71169
  if (j4 <= 15) return x4 ^ y5 ^ z4;
@@ -71168,7 +71197,7 @@ var _dewExec$J$2 = false;
71168
71197
  function dew$J$2() {
71169
71198
  if (_dewExec$J$2) return exports$K$2;
71170
71199
  _dewExec$J$2 = true;
71171
- var utils2 = dew$N$2();
71200
+ var utils = dew$N$2();
71172
71201
  var assert2 = dew$2m();
71173
71202
  function Hmac2(hash, key, enc) {
71174
71203
  if (!(this instanceof Hmac2)) return new Hmac2(hash, key, enc);
@@ -71177,7 +71206,7 @@ function dew$J$2() {
71177
71206
  this.outSize = hash.outSize / 8;
71178
71207
  this.inner = null;
71179
71208
  this.outer = null;
71180
- this._init(utils2.toArray(key, enc));
71209
+ this._init(utils.toArray(key, enc));
71181
71210
  }
71182
71211
  exports$K$2 = Hmac2;
71183
71212
  Hmac2.prototype._init = function init2(key) {
@@ -71243,8 +71272,8 @@ function dew$G$2() {
71243
71272
  var curves = exports$H$2;
71244
71273
  var hash = dew$I$2();
71245
71274
  var curve = dew$O$2();
71246
- var utils2 = dew$T$2();
71247
- var assert2 = utils2.assert;
71275
+ var utils = dew$T$2();
71276
+ var assert2 = utils.assert;
71248
71277
  function PresetCurve(options) {
71249
71278
  if (options.type === "short") this.curve = new curve.short(options);
71250
71279
  else if (options.type === "edwards") this.curve = new curve.edwards(options);
@@ -71390,7 +71419,7 @@ function dew$F$2() {
71390
71419
  if (_dewExec$F$2) return exports$G$2;
71391
71420
  _dewExec$F$2 = true;
71392
71421
  var hash = dew$I$2();
71393
- var utils2 = dew$U$2();
71422
+ var utils = dew$U$2();
71394
71423
  var assert2 = dew$2m();
71395
71424
  function HmacDRBG(options) {
71396
71425
  if (!(this instanceof HmacDRBG)) return new HmacDRBG(options);
@@ -71402,9 +71431,9 @@ function dew$F$2() {
71402
71431
  this.reseedInterval = null;
71403
71432
  this.K = null;
71404
71433
  this.V = null;
71405
- var entropy = utils2.toArray(options.entropy, options.entropyEnc || "hex");
71406
- var nonce = utils2.toArray(options.nonce, options.nonceEnc || "hex");
71407
- var pers = utils2.toArray(options.pers, options.persEnc || "hex");
71434
+ var entropy = utils.toArray(options.entropy, options.entropyEnc || "hex");
71435
+ var nonce = utils.toArray(options.nonce, options.nonceEnc || "hex");
71436
+ var pers = utils.toArray(options.pers, options.persEnc || "hex");
71408
71437
  assert2(entropy.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits");
71409
71438
  this._init(entropy, nonce, pers);
71410
71439
  }
@@ -71439,8 +71468,8 @@ function dew$F$2() {
71439
71468
  add = entropyEnc;
71440
71469
  entropyEnc = null;
71441
71470
  }
71442
- entropy = utils2.toArray(entropy, entropyEnc);
71443
- add = utils2.toArray(add, addEnc);
71471
+ entropy = utils.toArray(entropy, entropyEnc);
71472
+ add = utils.toArray(add, addEnc);
71444
71473
  assert2(entropy.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits");
71445
71474
  this._update(entropy.concat(add || []));
71446
71475
  this._reseed = 1;
@@ -71453,7 +71482,7 @@ function dew$F$2() {
71453
71482
  enc = null;
71454
71483
  }
71455
71484
  if (add) {
71456
- add = utils2.toArray(add, addEnc || "hex");
71485
+ add = utils.toArray(add, addEnc || "hex");
71457
71486
  this._update(add);
71458
71487
  }
71459
71488
  var temp = [];
@@ -71464,7 +71493,7 @@ function dew$F$2() {
71464
71493
  var res = temp.slice(0, len);
71465
71494
  this._update(add);
71466
71495
  this._reseed++;
71467
- return utils2.encode(res, enc);
71496
+ return utils.encode(res, enc);
71468
71497
  };
71469
71498
  return exports$G$2;
71470
71499
  }
@@ -71474,8 +71503,8 @@ function dew$E$2() {
71474
71503
  if (_dewExec$E$2) return exports$F$2;
71475
71504
  _dewExec$E$2 = true;
71476
71505
  var BN = dew$V$2();
71477
- var utils2 = dew$T$2();
71478
- var assert2 = utils2.assert;
71506
+ var utils = dew$T$2();
71507
+ var assert2 = utils.assert;
71479
71508
  function KeyPair(ec, options) {
71480
71509
  this.ec = ec;
71481
71510
  this.priv = null;
@@ -71569,8 +71598,8 @@ function dew$D$2() {
71569
71598
  if (_dewExec$D$2) return exports$E$2;
71570
71599
  _dewExec$D$2 = true;
71571
71600
  var BN = dew$V$2();
71572
- var utils2 = dew$T$2();
71573
- var assert2 = utils2.assert;
71601
+ var utils = dew$T$2();
71602
+ var assert2 = utils.assert;
71574
71603
  function Signature(options, enc) {
71575
71604
  if (options instanceof Signature) return options;
71576
71605
  if (this._importDER(options, enc)) return;
@@ -71617,7 +71646,7 @@ function dew$D$2() {
71617
71646
  return buf.slice(i5);
71618
71647
  }
71619
71648
  Signature.prototype._importDER = function _importDER(data, enc) {
71620
- data = utils2.toArray(data, enc);
71649
+ data = utils.toArray(data, enc);
71621
71650
  var p5 = new Position();
71622
71651
  if (data[p5.place++] !== 48) {
71623
71652
  return false;
@@ -71699,7 +71728,7 @@ function dew$D$2() {
71699
71728
  var res = [48];
71700
71729
  constructLength(res, backHalf.length);
71701
71730
  res = res.concat(backHalf);
71702
- return utils2.encode(res, enc);
71731
+ return utils.encode(res, enc);
71703
71732
  };
71704
71733
  return exports$E$2;
71705
71734
  }
@@ -71710,10 +71739,10 @@ function dew$C$2() {
71710
71739
  _dewExec$C$2 = true;
71711
71740
  var BN = dew$V$2();
71712
71741
  var HmacDRBG = dew$F$2();
71713
- var utils2 = dew$T$2();
71742
+ var utils = dew$T$2();
71714
71743
  var curves = dew$G$2();
71715
71744
  var rand = dew$11$2();
71716
- var assert2 = utils2.assert;
71745
+ var assert2 = utils.assert;
71717
71746
  var KeyPair = dew$E$2();
71718
71747
  var Signature = dew$D$2();
71719
71748
  function EC(options) {
@@ -71870,10 +71899,10 @@ var _dewExec$B$2 = false;
71870
71899
  function dew$B$2() {
71871
71900
  if (_dewExec$B$2) return exports$C$2;
71872
71901
  _dewExec$B$2 = true;
71873
- var utils2 = dew$T$2();
71874
- var assert2 = utils2.assert;
71875
- var parseBytes = utils2.parseBytes;
71876
- var cachedProperty = utils2.cachedProperty;
71902
+ var utils = dew$T$2();
71903
+ var assert2 = utils.assert;
71904
+ var parseBytes = utils.parseBytes;
71905
+ var cachedProperty = utils.cachedProperty;
71877
71906
  function KeyPair(eddsa, params) {
71878
71907
  this.eddsa = eddsa;
71879
71908
  this._secret = parseBytes(params.secret);
@@ -71930,10 +71959,10 @@ function dew$B$2() {
71930
71959
  };
71931
71960
  KeyPair.prototype.getSecret = function getSecret(enc) {
71932
71961
  assert2(this._secret, "KeyPair is public only");
71933
- return utils2.encode(this.secret(), enc);
71962
+ return utils.encode(this.secret(), enc);
71934
71963
  };
71935
71964
  KeyPair.prototype.getPublic = function getPublic(enc) {
71936
- return utils2.encode(this.pubBytes(), enc);
71965
+ return utils.encode(this.pubBytes(), enc);
71937
71966
  };
71938
71967
  exports$C$2 = KeyPair;
71939
71968
  return exports$C$2;
@@ -71944,10 +71973,10 @@ function dew$A$2() {
71944
71973
  if (_dewExec$A$2) return exports$B$2;
71945
71974
  _dewExec$A$2 = true;
71946
71975
  var BN = dew$V$2();
71947
- var utils2 = dew$T$2();
71948
- var assert2 = utils2.assert;
71949
- var cachedProperty = utils2.cachedProperty;
71950
- var parseBytes = utils2.parseBytes;
71976
+ var utils = dew$T$2();
71977
+ var assert2 = utils.assert;
71978
+ var cachedProperty = utils.cachedProperty;
71979
+ var parseBytes = utils.parseBytes;
71951
71980
  function Signature(eddsa, sig) {
71952
71981
  this.eddsa = eddsa;
71953
71982
  if (typeof sig !== "object") sig = parseBytes(sig);
@@ -71979,7 +72008,7 @@ function dew$A$2() {
71979
72008
  return this.Rencoded().concat(this.Sencoded());
71980
72009
  };
71981
72010
  Signature.prototype.toHex = function toHex() {
71982
- return utils2.encode(this.toBytes(), "hex").toUpperCase();
72011
+ return utils.encode(this.toBytes(), "hex").toUpperCase();
71983
72012
  };
71984
72013
  exports$B$2 = Signature;
71985
72014
  return exports$B$2;
@@ -71991,9 +72020,9 @@ function dew$z$2() {
71991
72020
  _dewExec$z$2 = true;
71992
72021
  var hash = dew$I$2();
71993
72022
  var curves = dew$G$2();
71994
- var utils2 = dew$T$2();
71995
- var assert2 = utils2.assert;
71996
- var parseBytes = utils2.parseBytes;
72023
+ var utils = dew$T$2();
72024
+ var assert2 = utils.assert;
72025
+ var parseBytes = utils.parseBytes;
71997
72026
  var KeyPair = dew$B$2();
71998
72027
  var Signature = dew$A$2();
71999
72028
  function EDDSA(curve) {
@@ -72034,7 +72063,7 @@ function dew$z$2() {
72034
72063
  EDDSA.prototype.hashInt = function hashInt() {
72035
72064
  var hash2 = this.hash();
72036
72065
  for (var i5 = 0; i5 < arguments.length; i5++) hash2.update(arguments[i5]);
72037
- return utils2.intFromLE(hash2.digest()).umod(this.curve.n);
72066
+ return utils.intFromLE(hash2.digest()).umod(this.curve.n);
72038
72067
  };
72039
72068
  EDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {
72040
72069
  return KeyPair.fromPublic(this, pub);
@@ -72052,18 +72081,18 @@ function dew$z$2() {
72052
72081
  return enc;
72053
72082
  };
72054
72083
  EDDSA.prototype.decodePoint = function decodePoint(bytes) {
72055
- bytes = utils2.parseBytes(bytes);
72084
+ bytes = utils.parseBytes(bytes);
72056
72085
  var lastIx = bytes.length - 1;
72057
72086
  var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~128);
72058
72087
  var xIsOdd = (bytes[lastIx] & 128) !== 0;
72059
- var y5 = utils2.intFromLE(normed);
72088
+ var y5 = utils.intFromLE(normed);
72060
72089
  return this.curve.pointFromY(y5, xIsOdd);
72061
72090
  };
72062
72091
  EDDSA.prototype.encodeInt = function encodeInt(num) {
72063
72092
  return num.toArray("le", this.encodingLength);
72064
72093
  };
72065
72094
  EDDSA.prototype.decodeInt = function decodeInt(bytes) {
72066
- return utils2.intFromLE(bytes);
72095
+ return utils.intFromLE(bytes);
72067
72096
  };
72068
72097
  EDDSA.prototype.isPoint = function isPoint(val) {
72069
72098
  return val instanceof this.pointClass;
@@ -83031,7 +83060,7 @@ function dew$1f() {
83031
83060
  }
83032
83061
  return out;
83033
83062
  };
83034
- DH.prototype.getPublicKey = function getPublicKey2(enc) {
83063
+ DH.prototype.getPublicKey = function getPublicKey(enc) {
83035
83064
  return formatReturnValue((this || _global$h)._pub, enc);
83036
83065
  };
83037
83066
  DH.prototype.getPrivateKey = function getPrivateKey(enc) {
@@ -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 = (function() {
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__ */ (function(method) {
84562
+ this[i5] = /* @__PURE__ */ function(method) {
84534
84563
  return function() {
84535
84564
  return stream2[method].apply(stream2, arguments);
84536
84565
  };
84537
- })(i5);
84566
+ }(i5);
84538
84567
  }
84539
84568
  }
84540
84569
  for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
@@ -90199,7 +90228,7 @@ var _dewExec$Z = false;
90199
90228
  function dew$Z() {
90200
90229
  if (_dewExec$Z) return exports$_;
90201
90230
  _dewExec$Z = true;
90202
- var utils2 = exports$_;
90231
+ var utils = exports$_;
90203
90232
  function toArray(msg, enc) {
90204
90233
  if (Array.isArray(msg)) return msg.slice();
90205
90234
  if (!msg) return [];
@@ -90223,19 +90252,19 @@ function dew$Z() {
90223
90252
  }
90224
90253
  return res;
90225
90254
  }
90226
- utils2.toArray = toArray;
90255
+ utils.toArray = toArray;
90227
90256
  function zero2(word) {
90228
90257
  if (word.length === 1) return "0" + word;
90229
90258
  else return word;
90230
90259
  }
90231
- utils2.zero2 = zero2;
90260
+ utils.zero2 = zero2;
90232
90261
  function toHex(msg) {
90233
90262
  var res = "";
90234
90263
  for (var i5 = 0; i5 < msg.length; i5++) res += zero2(msg[i5].toString(16));
90235
90264
  return res;
90236
90265
  }
90237
- utils2.toHex = toHex;
90238
- utils2.encode = function encode(arr, enc) {
90266
+ utils.toHex = toHex;
90267
+ utils.encode = function encode(arr, enc) {
90239
90268
  if (enc === "hex") return toHex(arr);
90240
90269
  else return arr;
90241
90270
  };
@@ -90246,15 +90275,15 @@ var _dewExec$Y = false;
90246
90275
  function dew$Y() {
90247
90276
  if (_dewExec$Y) return exports$Z;
90248
90277
  _dewExec$Y = true;
90249
- var utils2 = exports$Z;
90278
+ var utils = exports$Z;
90250
90279
  var BN = dew$_();
90251
90280
  var minAssert = dew$3h();
90252
90281
  var minUtils = dew$Z();
90253
- utils2.assert = minAssert;
90254
- utils2.toArray = minUtils.toArray;
90255
- utils2.zero2 = minUtils.zero2;
90256
- utils2.toHex = minUtils.toHex;
90257
- utils2.encode = minUtils.encode;
90282
+ utils.assert = minAssert;
90283
+ utils.toArray = minUtils.toArray;
90284
+ utils.zero2 = minUtils.zero2;
90285
+ utils.toHex = minUtils.toHex;
90286
+ utils.encode = minUtils.encode;
90258
90287
  function getNAF(num, w4, bits) {
90259
90288
  var naf = new Array(Math.max(num.bitLength(), bits) + 1);
90260
90289
  var i5;
@@ -90278,7 +90307,7 @@ function dew$Y() {
90278
90307
  }
90279
90308
  return naf;
90280
90309
  }
90281
- utils2.getNAF = getNAF;
90310
+ utils.getNAF = getNAF;
90282
90311
  function getJSF(k1, k22) {
90283
90312
  var jsf = [[], []];
90284
90313
  k1 = k1.clone();
@@ -90316,22 +90345,22 @@ function dew$Y() {
90316
90345
  }
90317
90346
  return jsf;
90318
90347
  }
90319
- utils2.getJSF = getJSF;
90348
+ utils.getJSF = getJSF;
90320
90349
  function cachedProperty(obj, name2, computer) {
90321
90350
  var key = "_" + name2;
90322
90351
  obj.prototype[name2] = function cachedProperty2() {
90323
90352
  return this[key] !== void 0 ? this[key] : this[key] = computer.call(this);
90324
90353
  };
90325
90354
  }
90326
- utils2.cachedProperty = cachedProperty;
90355
+ utils.cachedProperty = cachedProperty;
90327
90356
  function parseBytes(bytes) {
90328
- return typeof bytes === "string" ? utils2.toArray(bytes, "hex") : bytes;
90357
+ return typeof bytes === "string" ? utils.toArray(bytes, "hex") : bytes;
90329
90358
  }
90330
- utils2.parseBytes = parseBytes;
90359
+ utils.parseBytes = parseBytes;
90331
90360
  function intFromLE(bytes) {
90332
90361
  return new BN(bytes, "hex", "le");
90333
90362
  }
90334
- utils2.intFromLE = intFromLE;
90363
+ utils.intFromLE = intFromLE;
90335
90364
  return exports$Z;
90336
90365
  }
90337
90366
  var exports$Y = {};
@@ -90340,10 +90369,10 @@ function dew$X() {
90340
90369
  if (_dewExec$X) return exports$Y;
90341
90370
  _dewExec$X = true;
90342
90371
  var BN = dew$_();
90343
- var utils2 = dew$Y();
90344
- var getNAF = utils2.getNAF;
90345
- var getJSF = utils2.getJSF;
90346
- var assert2 = utils2.assert;
90372
+ var utils = dew$Y();
90373
+ var getNAF = utils.getNAF;
90374
+ var getJSF = utils.getJSF;
90375
+ var assert2 = utils.assert;
90347
90376
  function BaseCurve(type, conf) {
90348
90377
  this.type = type;
90349
90378
  this.p = new BN(conf.p, 16);
@@ -90542,7 +90571,7 @@ function dew$X() {
90542
90571
  return this.curve.validate(this);
90543
90572
  };
90544
90573
  BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
90545
- bytes = utils2.toArray(bytes, enc);
90574
+ bytes = utils.toArray(bytes, enc);
90546
90575
  var len = this.p.byteLength();
90547
90576
  if ((bytes[0] === 4 || bytes[0] === 6 || bytes[0] === 7) && bytes.length - 1 === 2 * len) {
90548
90577
  if (bytes[0] === 6) assert2(bytes[bytes.length - 1] % 2 === 0);
@@ -90564,7 +90593,7 @@ function dew$X() {
90564
90593
  return [4].concat(x4, this.getY().toArray("be", len));
90565
90594
  };
90566
90595
  BasePoint.prototype.encode = function encode(enc, compact) {
90567
- return utils2.encode(this._encode(compact), enc);
90596
+ return utils.encode(this._encode(compact), enc);
90568
90597
  };
90569
90598
  BasePoint.prototype.precompute = function precompute(power) {
90570
90599
  if (this.precomputed) return this;
@@ -90624,11 +90653,11 @@ var _dewExec$W = false;
90624
90653
  function dew$W() {
90625
90654
  if (_dewExec$W) return exports$X;
90626
90655
  _dewExec$W = true;
90627
- var utils2 = dew$Y();
90656
+ var utils = dew$Y();
90628
90657
  var BN = dew$_();
90629
90658
  var inherits = dew3();
90630
90659
  var Base = dew$X();
90631
- var assert2 = utils2.assert;
90660
+ var assert2 = utils.assert;
90632
90661
  function ShortCurve(conf) {
90633
90662
  Base.call(this, "short", conf);
90634
90663
  this.a = new BN(conf.a, 16).toRed(this.red);
@@ -91271,7 +91300,7 @@ function dew$V() {
91271
91300
  var BN = dew$_();
91272
91301
  var inherits = dew3();
91273
91302
  var Base = dew$X();
91274
- var utils2 = dew$Y();
91303
+ var utils = dew$Y();
91275
91304
  function MontCurve(conf) {
91276
91305
  Base.call(this, "mont", conf);
91277
91306
  this.a = new BN(conf.a, 16).toRed(this.red);
@@ -91303,7 +91332,7 @@ function dew$V() {
91303
91332
  }
91304
91333
  inherits(Point, Base.BasePoint);
91305
91334
  MontCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
91306
- return this.point(utils2.toArray(bytes, enc), 1);
91335
+ return this.point(utils.toArray(bytes, enc), 1);
91307
91336
  };
91308
91337
  MontCurve.prototype.point = function point(x4, z4) {
91309
91338
  return new Point(this, x4, z4);
@@ -91392,11 +91421,11 @@ var _dewExec$U = false;
91392
91421
  function dew$U() {
91393
91422
  if (_dewExec$U) return exports$V;
91394
91423
  _dewExec$U = true;
91395
- var utils2 = dew$Y();
91424
+ var utils = dew$Y();
91396
91425
  var BN = dew$_();
91397
91426
  var inherits = dew3();
91398
91427
  var Base = dew$X();
91399
- var assert2 = utils2.assert;
91428
+ var assert2 = utils.assert;
91400
91429
  function EdwardsCurve(conf) {
91401
91430
  this.twisted = (conf.a | 0) !== 1;
91402
91431
  this.mOneA = this.twisted && (conf.a | 0) === -1;
@@ -91893,7 +91922,7 @@ var _dewExec$R = false;
91893
91922
  function dew$R() {
91894
91923
  if (_dewExec$R) return exports$S;
91895
91924
  _dewExec$R = true;
91896
- var utils2 = dew$S();
91925
+ var utils = dew$S();
91897
91926
  var assert2 = dew$3h();
91898
91927
  function BlockHash() {
91899
91928
  this.pending = null;
@@ -91908,7 +91937,7 @@ function dew$R() {
91908
91937
  }
91909
91938
  exports$S.BlockHash = BlockHash;
91910
91939
  BlockHash.prototype.update = function update(msg, enc) {
91911
- msg = utils2.toArray(msg, enc);
91940
+ msg = utils.toArray(msg, enc);
91912
91941
  if (!this.pending) this.pending = msg;
91913
91942
  else this.pending = this.pending.concat(msg);
91914
91943
  this.pendingTotal += msg.length;
@@ -91917,7 +91946,7 @@ function dew$R() {
91917
91946
  var r5 = msg.length % this._delta8;
91918
91947
  this.pending = msg.slice(msg.length - r5, msg.length);
91919
91948
  if (this.pending.length === 0) this.pending = null;
91920
- msg = utils2.join32(msg, 0, msg.length - r5, this.endian);
91949
+ msg = utils.join32(msg, 0, msg.length - r5, this.endian);
91921
91950
  for (var i5 = 0; i5 < msg.length; i5 += this._delta32) this._update(msg, i5, i5 + this._delta32);
91922
91951
  }
91923
91952
  return this;
@@ -91965,8 +91994,8 @@ var _dewExec$Q = false;
91965
91994
  function dew$Q() {
91966
91995
  if (_dewExec$Q) return exports$R;
91967
91996
  _dewExec$Q = true;
91968
- var utils2 = dew$S();
91969
- var rotr32 = utils2.rotr32;
91997
+ var utils = dew$S();
91998
+ var rotr32 = utils.rotr32;
91970
91999
  function ft_1(s5, x4, y5, z4) {
91971
92000
  if (s5 === 0) return ch32(x4, y5, z4);
91972
92001
  if (s5 === 1 || s5 === 3) return p32(x4, y5, z4);
@@ -92008,12 +92037,12 @@ var _dewExec$P = false;
92008
92037
  function dew$P() {
92009
92038
  if (_dewExec$P) return exports$Q;
92010
92039
  _dewExec$P = true;
92011
- var utils2 = dew$S();
92040
+ var utils = dew$S();
92012
92041
  var common = dew$R();
92013
92042
  var shaCommon = dew$Q();
92014
- var rotl32 = utils2.rotl32;
92015
- var sum32 = utils2.sum32;
92016
- var sum32_5 = utils2.sum32_5;
92043
+ var rotl32 = utils.rotl32;
92044
+ var sum32 = utils.sum32;
92045
+ var sum32_5 = utils.sum32_5;
92017
92046
  var ft_1 = shaCommon.ft_1;
92018
92047
  var BlockHash = common.BlockHash;
92019
92048
  var sha1_K = [1518500249, 1859775393, 2400959708, 3395469782];
@@ -92023,7 +92052,7 @@ function dew$P() {
92023
92052
  this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
92024
92053
  this.W = new Array(80);
92025
92054
  }
92026
- utils2.inherits(SHA1, BlockHash);
92055
+ utils.inherits(SHA1, BlockHash);
92027
92056
  exports$Q = SHA1;
92028
92057
  SHA1.blockSize = 512;
92029
92058
  SHA1.outSize = 160;
@@ -92054,8 +92083,8 @@ function dew$P() {
92054
92083
  this.h[4] = sum32(this.h[4], e7);
92055
92084
  };
92056
92085
  SHA1.prototype._digest = function digest(enc) {
92057
- if (enc === "hex") return utils2.toHex32(this.h, "big");
92058
- else return utils2.split32(this.h, "big");
92086
+ if (enc === "hex") return utils.toHex32(this.h, "big");
92087
+ else return utils.split32(this.h, "big");
92059
92088
  };
92060
92089
  return exports$Q;
92061
92090
  }
@@ -92064,13 +92093,13 @@ var _dewExec$O = false;
92064
92093
  function dew$O() {
92065
92094
  if (_dewExec$O) return exports$P;
92066
92095
  _dewExec$O = true;
92067
- var utils2 = dew$S();
92096
+ var utils = dew$S();
92068
92097
  var common = dew$R();
92069
92098
  var shaCommon = dew$Q();
92070
92099
  var assert2 = dew$3h();
92071
- var sum32 = utils2.sum32;
92072
- var sum32_4 = utils2.sum32_4;
92073
- var sum32_5 = utils2.sum32_5;
92100
+ var sum32 = utils.sum32;
92101
+ var sum32_4 = utils.sum32_4;
92102
+ var sum32_5 = utils.sum32_5;
92074
92103
  var ch32 = shaCommon.ch32;
92075
92104
  var maj32 = shaCommon.maj32;
92076
92105
  var s0_256 = shaCommon.s0_256;
@@ -92086,7 +92115,7 @@ function dew$O() {
92086
92115
  this.k = sha256_K;
92087
92116
  this.W = new Array(64);
92088
92117
  }
92089
- utils2.inherits(SHA256, BlockHash);
92118
+ utils.inherits(SHA256, BlockHash);
92090
92119
  exports$P = SHA256;
92091
92120
  SHA256.blockSize = 512;
92092
92121
  SHA256.outSize = 256;
@@ -92127,8 +92156,8 @@ function dew$O() {
92127
92156
  this.h[7] = sum32(this.h[7], h5);
92128
92157
  };
92129
92158
  SHA256.prototype._digest = function digest(enc) {
92130
- if (enc === "hex") return utils2.toHex32(this.h, "big");
92131
- else return utils2.split32(this.h, "big");
92159
+ if (enc === "hex") return utils.toHex32(this.h, "big");
92160
+ else return utils.split32(this.h, "big");
92132
92161
  };
92133
92162
  return exports$P;
92134
92163
  }
@@ -92137,22 +92166,22 @@ var _dewExec$N = false;
92137
92166
  function dew$N() {
92138
92167
  if (_dewExec$N) return exports$O;
92139
92168
  _dewExec$N = true;
92140
- var utils2 = dew$S();
92169
+ var utils = dew$S();
92141
92170
  var SHA256 = dew$O();
92142
92171
  function SHA224() {
92143
92172
  if (!(this instanceof SHA224)) return new SHA224();
92144
92173
  SHA256.call(this);
92145
92174
  this.h = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428];
92146
92175
  }
92147
- utils2.inherits(SHA224, SHA256);
92176
+ utils.inherits(SHA224, SHA256);
92148
92177
  exports$O = SHA224;
92149
92178
  SHA224.blockSize = 512;
92150
92179
  SHA224.outSize = 224;
92151
92180
  SHA224.hmacStrength = 192;
92152
92181
  SHA224.padLength = 64;
92153
92182
  SHA224.prototype._digest = function digest(enc) {
92154
- if (enc === "hex") return utils2.toHex32(this.h.slice(0, 7), "big");
92155
- else return utils2.split32(this.h.slice(0, 7), "big");
92183
+ if (enc === "hex") return utils.toHex32(this.h.slice(0, 7), "big");
92184
+ else return utils.split32(this.h.slice(0, 7), "big");
92156
92185
  };
92157
92186
  return exports$O;
92158
92187
  }
@@ -92161,20 +92190,20 @@ var _dewExec$M = false;
92161
92190
  function dew$M() {
92162
92191
  if (_dewExec$M) return exports$N;
92163
92192
  _dewExec$M = true;
92164
- var utils2 = dew$S();
92193
+ var utils = dew$S();
92165
92194
  var common = dew$R();
92166
92195
  var assert2 = dew$3h();
92167
- var rotr64_hi = utils2.rotr64_hi;
92168
- var rotr64_lo = utils2.rotr64_lo;
92169
- var shr64_hi = utils2.shr64_hi;
92170
- var shr64_lo = utils2.shr64_lo;
92171
- var sum64 = utils2.sum64;
92172
- var sum64_hi = utils2.sum64_hi;
92173
- var sum64_lo = utils2.sum64_lo;
92174
- var sum64_4_hi = utils2.sum64_4_hi;
92175
- var sum64_4_lo = utils2.sum64_4_lo;
92176
- var sum64_5_hi = utils2.sum64_5_hi;
92177
- var sum64_5_lo = utils2.sum64_5_lo;
92196
+ var rotr64_hi = utils.rotr64_hi;
92197
+ var rotr64_lo = utils.rotr64_lo;
92198
+ var shr64_hi = utils.shr64_hi;
92199
+ var shr64_lo = utils.shr64_lo;
92200
+ var sum64 = utils.sum64;
92201
+ var sum64_hi = utils.sum64_hi;
92202
+ var sum64_lo = utils.sum64_lo;
92203
+ var sum64_4_hi = utils.sum64_4_hi;
92204
+ var sum64_4_lo = utils.sum64_4_lo;
92205
+ var sum64_5_hi = utils.sum64_5_hi;
92206
+ var sum64_5_lo = utils.sum64_5_lo;
92178
92207
  var BlockHash = common.BlockHash;
92179
92208
  var sha512_K = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591];
92180
92209
  function SHA512() {
@@ -92184,7 +92213,7 @@ function dew$M() {
92184
92213
  this.k = sha512_K;
92185
92214
  this.W = new Array(160);
92186
92215
  }
92187
- utils2.inherits(SHA512, BlockHash);
92216
+ utils.inherits(SHA512, BlockHash);
92188
92217
  exports$N = SHA512;
92189
92218
  SHA512.blockSize = 1024;
92190
92219
  SHA512.outSize = 512;
@@ -92272,8 +92301,8 @@ function dew$M() {
92272
92301
  sum64(this.h, 14, hh, hl);
92273
92302
  };
92274
92303
  SHA512.prototype._digest = function digest(enc) {
92275
- if (enc === "hex") return utils2.toHex32(this.h, "big");
92276
- else return utils2.split32(this.h, "big");
92304
+ if (enc === "hex") return utils.toHex32(this.h, "big");
92305
+ else return utils.split32(this.h, "big");
92277
92306
  };
92278
92307
  function ch64_hi(xh, xl, yh, yl, zh) {
92279
92308
  var r5 = xh & yh ^ ~xh & zh;
@@ -92366,22 +92395,22 @@ var _dewExec$L = false;
92366
92395
  function dew$L() {
92367
92396
  if (_dewExec$L) return exports$M;
92368
92397
  _dewExec$L = true;
92369
- var utils2 = dew$S();
92398
+ var utils = dew$S();
92370
92399
  var SHA512 = dew$M();
92371
92400
  function SHA384() {
92372
92401
  if (!(this instanceof SHA384)) return new SHA384();
92373
92402
  SHA512.call(this);
92374
92403
  this.h = [3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, 355462360, 4144912697, 1731405415, 4290775857, 2394180231, 1750603025, 3675008525, 1694076839, 1203062813, 3204075428];
92375
92404
  }
92376
- utils2.inherits(SHA384, SHA512);
92405
+ utils.inherits(SHA384, SHA512);
92377
92406
  exports$M = SHA384;
92378
92407
  SHA384.blockSize = 1024;
92379
92408
  SHA384.outSize = 384;
92380
92409
  SHA384.hmacStrength = 192;
92381
92410
  SHA384.padLength = 128;
92382
92411
  SHA384.prototype._digest = function digest(enc) {
92383
- if (enc === "hex") return utils2.toHex32(this.h.slice(0, 12), "big");
92384
- else return utils2.split32(this.h.slice(0, 12), "big");
92412
+ if (enc === "hex") return utils.toHex32(this.h.slice(0, 12), "big");
92413
+ else return utils.split32(this.h.slice(0, 12), "big");
92385
92414
  };
92386
92415
  return exports$M;
92387
92416
  }
@@ -92402,12 +92431,12 @@ var _dewExec$J = false;
92402
92431
  function dew$J() {
92403
92432
  if (_dewExec$J) return exports$K;
92404
92433
  _dewExec$J = true;
92405
- var utils2 = dew$S();
92434
+ var utils = dew$S();
92406
92435
  var common = dew$R();
92407
- var rotl32 = utils2.rotl32;
92408
- var sum32 = utils2.sum32;
92409
- var sum32_3 = utils2.sum32_3;
92410
- var sum32_4 = utils2.sum32_4;
92436
+ var rotl32 = utils.rotl32;
92437
+ var sum32 = utils.sum32;
92438
+ var sum32_3 = utils.sum32_3;
92439
+ var sum32_4 = utils.sum32_4;
92411
92440
  var BlockHash = common.BlockHash;
92412
92441
  function RIPEMD160() {
92413
92442
  if (!(this instanceof RIPEMD160)) return new RIPEMD160();
@@ -92415,7 +92444,7 @@ function dew$J() {
92415
92444
  this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
92416
92445
  this.endian = "little";
92417
92446
  }
92418
- utils2.inherits(RIPEMD160, BlockHash);
92447
+ utils.inherits(RIPEMD160, BlockHash);
92419
92448
  exports$K.ripemd160 = RIPEMD160;
92420
92449
  RIPEMD160.blockSize = 512;
92421
92450
  RIPEMD160.outSize = 160;
@@ -92454,8 +92483,8 @@ function dew$J() {
92454
92483
  this.h[0] = T4;
92455
92484
  };
92456
92485
  RIPEMD160.prototype._digest = function digest(enc) {
92457
- if (enc === "hex") return utils2.toHex32(this.h, "little");
92458
- else return utils2.split32(this.h, "little");
92486
+ if (enc === "hex") return utils.toHex32(this.h, "little");
92487
+ else return utils.split32(this.h, "little");
92459
92488
  };
92460
92489
  function f6(j4, x4, y5, z4) {
92461
92490
  if (j4 <= 15) return x4 ^ y5 ^ z4;
@@ -92489,7 +92518,7 @@ var _dewExec$I = false;
92489
92518
  function dew$I() {
92490
92519
  if (_dewExec$I) return exports$J;
92491
92520
  _dewExec$I = true;
92492
- var utils2 = dew$S();
92521
+ var utils = dew$S();
92493
92522
  var assert2 = dew$3h();
92494
92523
  function Hmac2(hash, key, enc) {
92495
92524
  if (!(this instanceof Hmac2)) return new Hmac2(hash, key, enc);
@@ -92498,7 +92527,7 @@ function dew$I() {
92498
92527
  this.outSize = hash.outSize / 8;
92499
92528
  this.inner = null;
92500
92529
  this.outer = null;
92501
- this._init(utils2.toArray(key, enc));
92530
+ this._init(utils.toArray(key, enc));
92502
92531
  }
92503
92532
  exports$J = Hmac2;
92504
92533
  Hmac2.prototype._init = function init2(key) {
@@ -92564,8 +92593,8 @@ function dew$F() {
92564
92593
  var curves = exports$G;
92565
92594
  var hash = dew$H();
92566
92595
  var curve = dew$T();
92567
- var utils2 = dew$Y();
92568
- var assert2 = utils2.assert;
92596
+ var utils = dew$Y();
92597
+ var assert2 = utils.assert;
92569
92598
  function PresetCurve(options) {
92570
92599
  if (options.type === "short") this.curve = new curve.short(options);
92571
92600
  else if (options.type === "edwards") this.curve = new curve.edwards(options);
@@ -92711,7 +92740,7 @@ function dew$E() {
92711
92740
  if (_dewExec$E) return exports$F;
92712
92741
  _dewExec$E = true;
92713
92742
  var hash = dew$H();
92714
- var utils2 = dew$Z();
92743
+ var utils = dew$Z();
92715
92744
  var assert2 = dew$3h();
92716
92745
  function HmacDRBG(options) {
92717
92746
  if (!(this instanceof HmacDRBG)) return new HmacDRBG(options);
@@ -92723,9 +92752,9 @@ function dew$E() {
92723
92752
  this.reseedInterval = null;
92724
92753
  this.K = null;
92725
92754
  this.V = null;
92726
- var entropy = utils2.toArray(options.entropy, options.entropyEnc || "hex");
92727
- var nonce = utils2.toArray(options.nonce, options.nonceEnc || "hex");
92728
- var pers = utils2.toArray(options.pers, options.persEnc || "hex");
92755
+ var entropy = utils.toArray(options.entropy, options.entropyEnc || "hex");
92756
+ var nonce = utils.toArray(options.nonce, options.nonceEnc || "hex");
92757
+ var pers = utils.toArray(options.pers, options.persEnc || "hex");
92729
92758
  assert2(entropy.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits");
92730
92759
  this._init(entropy, nonce, pers);
92731
92760
  }
@@ -92760,8 +92789,8 @@ function dew$E() {
92760
92789
  add = entropyEnc;
92761
92790
  entropyEnc = null;
92762
92791
  }
92763
- entropy = utils2.toArray(entropy, entropyEnc);
92764
- add = utils2.toArray(add, addEnc);
92792
+ entropy = utils.toArray(entropy, entropyEnc);
92793
+ add = utils.toArray(add, addEnc);
92765
92794
  assert2(entropy.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits");
92766
92795
  this._update(entropy.concat(add || []));
92767
92796
  this._reseed = 1;
@@ -92774,7 +92803,7 @@ function dew$E() {
92774
92803
  enc = null;
92775
92804
  }
92776
92805
  if (add) {
92777
- add = utils2.toArray(add, addEnc || "hex");
92806
+ add = utils.toArray(add, addEnc || "hex");
92778
92807
  this._update(add);
92779
92808
  }
92780
92809
  var temp = [];
@@ -92785,7 +92814,7 @@ function dew$E() {
92785
92814
  var res = temp.slice(0, len);
92786
92815
  this._update(add);
92787
92816
  this._reseed++;
92788
- return utils2.encode(res, enc);
92817
+ return utils.encode(res, enc);
92789
92818
  };
92790
92819
  return exports$F;
92791
92820
  }
@@ -92795,8 +92824,8 @@ function dew$D() {
92795
92824
  if (_dewExec$D) return exports$E;
92796
92825
  _dewExec$D = true;
92797
92826
  var BN = dew$_();
92798
- var utils2 = dew$Y();
92799
- var assert2 = utils2.assert;
92827
+ var utils = dew$Y();
92828
+ var assert2 = utils.assert;
92800
92829
  function KeyPair(ec, options) {
92801
92830
  this.ec = ec;
92802
92831
  this.priv = null;
@@ -92890,8 +92919,8 @@ function dew$C() {
92890
92919
  if (_dewExec$C) return exports$D;
92891
92920
  _dewExec$C = true;
92892
92921
  var BN = dew$_();
92893
- var utils2 = dew$Y();
92894
- var assert2 = utils2.assert;
92922
+ var utils = dew$Y();
92923
+ var assert2 = utils.assert;
92895
92924
  function Signature(options, enc) {
92896
92925
  if (options instanceof Signature) return options;
92897
92926
  if (this._importDER(options, enc)) return;
@@ -92941,7 +92970,7 @@ function dew$C() {
92941
92970
  return buf.slice(i5);
92942
92971
  }
92943
92972
  Signature.prototype._importDER = function _importDER(data, enc) {
92944
- data = utils2.toArray(data, enc);
92973
+ data = utils.toArray(data, enc);
92945
92974
  var p5 = new Position();
92946
92975
  if (data[p5.place++] !== 48) {
92947
92976
  return false;
@@ -93029,7 +93058,7 @@ function dew$C() {
93029
93058
  var res = [48];
93030
93059
  constructLength(res, backHalf.length);
93031
93060
  res = res.concat(backHalf);
93032
- return utils2.encode(res, enc);
93061
+ return utils.encode(res, enc);
93033
93062
  };
93034
93063
  return exports$D;
93035
93064
  }
@@ -93040,10 +93069,10 @@ function dew$B() {
93040
93069
  _dewExec$B = true;
93041
93070
  var BN = dew$_();
93042
93071
  var HmacDRBG = dew$E();
93043
- var utils2 = dew$Y();
93072
+ var utils = dew$Y();
93044
93073
  var curves = dew$F();
93045
93074
  var rand = dew$1i();
93046
- var assert2 = utils2.assert;
93075
+ var assert2 = utils.assert;
93047
93076
  var KeyPair = dew$D();
93048
93077
  var Signature = dew$C();
93049
93078
  function EC(options) {
@@ -93200,10 +93229,10 @@ var _dewExec$A = false;
93200
93229
  function dew$A() {
93201
93230
  if (_dewExec$A) return exports$B;
93202
93231
  _dewExec$A = true;
93203
- var utils2 = dew$Y();
93204
- var assert2 = utils2.assert;
93205
- var parseBytes = utils2.parseBytes;
93206
- var cachedProperty = utils2.cachedProperty;
93232
+ var utils = dew$Y();
93233
+ var assert2 = utils.assert;
93234
+ var parseBytes = utils.parseBytes;
93235
+ var cachedProperty = utils.cachedProperty;
93207
93236
  function KeyPair(eddsa, params) {
93208
93237
  this.eddsa = eddsa;
93209
93238
  this._secret = parseBytes(params.secret);
@@ -93260,10 +93289,10 @@ function dew$A() {
93260
93289
  };
93261
93290
  KeyPair.prototype.getSecret = function getSecret(enc) {
93262
93291
  assert2(this._secret, "KeyPair is public only");
93263
- return utils2.encode(this.secret(), enc);
93292
+ return utils.encode(this.secret(), enc);
93264
93293
  };
93265
93294
  KeyPair.prototype.getPublic = function getPublic(enc) {
93266
- return utils2.encode(this.pubBytes(), enc);
93295
+ return utils.encode(this.pubBytes(), enc);
93267
93296
  };
93268
93297
  exports$B = KeyPair;
93269
93298
  return exports$B;
@@ -93274,10 +93303,10 @@ function dew$z() {
93274
93303
  if (_dewExec$z) return exports$A;
93275
93304
  _dewExec$z = true;
93276
93305
  var BN = dew$_();
93277
- var utils2 = dew$Y();
93278
- var assert2 = utils2.assert;
93279
- var cachedProperty = utils2.cachedProperty;
93280
- var parseBytes = utils2.parseBytes;
93306
+ var utils = dew$Y();
93307
+ var assert2 = utils.assert;
93308
+ var cachedProperty = utils.cachedProperty;
93309
+ var parseBytes = utils.parseBytes;
93281
93310
  function Signature(eddsa, sig) {
93282
93311
  this.eddsa = eddsa;
93283
93312
  if (typeof sig !== "object") sig = parseBytes(sig);
@@ -93310,7 +93339,7 @@ function dew$z() {
93310
93339
  return this.Rencoded().concat(this.Sencoded());
93311
93340
  };
93312
93341
  Signature.prototype.toHex = function toHex() {
93313
- return utils2.encode(this.toBytes(), "hex").toUpperCase();
93342
+ return utils.encode(this.toBytes(), "hex").toUpperCase();
93314
93343
  };
93315
93344
  exports$A = Signature;
93316
93345
  return exports$A;
@@ -93322,9 +93351,9 @@ function dew$y() {
93322
93351
  _dewExec$y = true;
93323
93352
  var hash = dew$H();
93324
93353
  var curves = dew$F();
93325
- var utils2 = dew$Y();
93326
- var assert2 = utils2.assert;
93327
- var parseBytes = utils2.parseBytes;
93354
+ var utils = dew$Y();
93355
+ var assert2 = utils.assert;
93356
+ var parseBytes = utils.parseBytes;
93328
93357
  var KeyPair = dew$A();
93329
93358
  var Signature = dew$z();
93330
93359
  function EDDSA(curve) {
@@ -93368,7 +93397,7 @@ function dew$y() {
93368
93397
  EDDSA.prototype.hashInt = function hashInt() {
93369
93398
  var hash2 = this.hash();
93370
93399
  for (var i5 = 0; i5 < arguments.length; i5++) hash2.update(arguments[i5]);
93371
- return utils2.intFromLE(hash2.digest()).umod(this.curve.n);
93400
+ return utils.intFromLE(hash2.digest()).umod(this.curve.n);
93372
93401
  };
93373
93402
  EDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {
93374
93403
  return KeyPair.fromPublic(this, pub);
@@ -93386,18 +93415,18 @@ function dew$y() {
93386
93415
  return enc;
93387
93416
  };
93388
93417
  EDDSA.prototype.decodePoint = function decodePoint(bytes) {
93389
- bytes = utils2.parseBytes(bytes);
93418
+ bytes = utils.parseBytes(bytes);
93390
93419
  var lastIx = bytes.length - 1;
93391
93420
  var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~128);
93392
93421
  var xIsOdd = (bytes[lastIx] & 128) !== 0;
93393
- var y5 = utils2.intFromLE(normed);
93422
+ var y5 = utils.intFromLE(normed);
93394
93423
  return this.curve.pointFromY(y5, xIsOdd);
93395
93424
  };
93396
93425
  EDDSA.prototype.encodeInt = function encodeInt(num) {
93397
93426
  return num.toArray("le", this.encodingLength);
93398
93427
  };
93399
93428
  EDDSA.prototype.decodeInt = function decodeInt(bytes) {
93400
- return utils2.intFromLE(bytes);
93429
+ return utils.intFromLE(bytes);
93401
93430
  };
93402
93431
  EDDSA.prototype.isPoint = function isPoint(val) {
93403
93432
  return val instanceof this.pointClass;
@@ -103972,67 +104001,42 @@ var Secrets = {
103972
104001
  };
103973
104002
 
103974
104003
  // src/utils/crypto.ts
103975
- var ed = __toESM(require("@noble/ed25519"), 1);
103976
- function urlEncode(pemKey) {
103977
- const pemFormat = /-----(BEGIN|END) (RSA PRIVATE|EC PRIVATE|PRIVATE|PUBLIC) KEY-----/g;
103978
- const base64Key = pemKey.replace(pemFormat, "");
103979
- return base64Key.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, "").replace(/ /g, "").replace(/\r/g, "").replace(/\n/g, "");
103980
- }
103981
104004
  var Crypto = {
103982
104005
  async createEdDSAKeyPair() {
103983
- const privateKey = ed.utils.randomPrivateKey();
103984
- const publicKey = ed.getPublicKey(privateKey);
103985
- const apiKey = Buffer2.from(publicKey).toString("base64url");
103986
- const secretKey = urlEncode(Buffer2.from(privateKey).toString("base64"));
103987
- return { apiKey, secretKey };
103988
104006
  },
103989
104007
  encryptShare(share, password, salt) {
103990
- try {
103991
- const key = pbkdf2Sync(password, salt, 1e5, 32, "sha512");
103992
- const iv = randomBytes(12);
103993
- const cipher = createCipheriv("aes-256-gcm", key, iv);
103994
- let encrypted = cipher.update(share, "utf8", "hex");
103995
- encrypted += cipher.final("hex");
103996
- const tag = cipher.getAuthTag();
103997
- return `gcm:${iv.toString("hex")}:${tag.toString("hex")}:${encrypted}`;
103998
- } catch (e7) {
103999
- console.error("Error during encrypting share:", e7);
104000
- throw e7;
104001
- }
104008
+ const key = pbkdf2Sync(password, salt, 1e5, 32, "sha512");
104009
+ const iv = randomBytes(12);
104010
+ const cipher = createCipheriv("aes-256-gcm", key, iv);
104011
+ let encrypted = cipher.update(share, "utf8", "hex");
104012
+ encrypted += cipher.final("hex");
104013
+ const tag = cipher.getAuthTag();
104014
+ return `gcm:${iv.toString("hex")}:${tag.toString("hex")}:${encrypted}`;
104002
104015
  },
104003
104016
  decryptShare(encryptedShare, password, salt) {
104004
104017
  const key = pbkdf2Sync(password, salt, 1e5, 32, "sha512");
104005
104018
  try {
104006
104019
  if (encryptedShare.startsWith("gcm:")) {
104007
- const parts2 = encryptedShare.split(":");
104008
- if (parts2.length !== 4) throw new Error("Invalid ciphertext format");
104009
- const [, ivHex2, tagHex, cipherHex] = parts2;
104020
+ const [, ivHex2, tagHex, cipherHex2] = encryptedShare.split(":");
104010
104021
  const iv2 = Buffer2.from(ivHex2, "hex");
104011
104022
  const tag = Buffer2.from(tagHex, "hex");
104012
104023
  const decipher2 = createDecipheriv("aes-256-gcm", key, iv2);
104013
104024
  decipher2.setAuthTag(tag);
104014
- let decrypted2 = decipher2.update(cipherHex, "hex", "utf8");
104025
+ let decrypted2 = decipher2.update(cipherHex2, "hex", "utf8");
104015
104026
  decrypted2 += decipher2.final("utf8");
104016
104027
  return decrypted2;
104017
104028
  }
104018
- const parts = encryptedShare.split(":");
104019
- if (parts.length !== 2) throw new Error("Invalid ciphertext format");
104020
- const [ivHex, encrypted] = parts;
104029
+ const [ivHex, cipherHex] = encryptedShare.split(":");
104021
104030
  const iv = Buffer2.from(ivHex, "hex");
104022
104031
  const decipher = createDecipheriv("aes-256-cbc", key, iv);
104023
- let decrypted = decipher.update(encrypted, "hex", "utf8");
104032
+ let decrypted = decipher.update(cipherHex, "hex", "utf8");
104024
104033
  decrypted += decipher.final("utf8");
104025
104034
  if (!/^[0-9a-fA-F]+$/.test(decrypted) || decrypted.length % 2 !== 0) {
104026
104035
  throw new Error("Wrong password");
104027
104036
  }
104028
104037
  return decrypted;
104029
104038
  } catch (e7) {
104030
- console.error("Error during decrypting share:", e7);
104031
- const msg = String(e7?.message || "").toLowerCase();
104032
- if (msg.includes("unable to decrypt data") || msg.includes("wrong password") || msg.includes("bad decrypt") || msg.includes("auth") || msg.includes("unsupported state") || msg.includes("invalid tag")) {
104033
- throw new Error("Wrong password");
104034
- }
104035
- throw e7;
104039
+ throw new Error("Wrong password");
104036
104040
  }
104037
104041
  }
104038
104042
  };
@@ -104129,8 +104133,6 @@ var SDKErrorCode = /* @__PURE__ */ ((SDKErrorCode2) => {
104129
104133
  SDKErrorCode2["NETWORK_SWITCH_FAILED"] = "NETWORK_SWITCH_FAILED";
104130
104134
  SDKErrorCode2["TRANSACTION_FAILED"] = "TRANSACTION_FAILED";
104131
104135
  SDKErrorCode2["INVALID_PIN"] = "INVALID_PIN";
104132
- SDKErrorCode2["RECOVERY_FAILED"] = "RECOVERY_FAILED";
104133
- SDKErrorCode2["UNKNOWN"] = "UNKNOWN";
104134
104136
  return SDKErrorCode2;
104135
104137
  })(SDKErrorCode || {});
104136
104138
  var SDKError = class extends Error {
@@ -104394,25 +104396,10 @@ var WalletService = class {
104394
104396
  "INVALID_PARAMS" /* INVALID_PARAMS */
104395
104397
  );
104396
104398
  }
104397
- const walletInfo = await this.walletClient.getWallet();
104398
- const serverAddr = this.normalizeAddr(walletInfo?.address);
104399
- const expectedShareLen = String(walletInfo?.share1 ?? "").length;
104400
104399
  const decryptShareOrThrow = (encryptedShare) => {
104401
104400
  try {
104402
- const share = Crypto.decryptShare(
104403
- encryptedShare,
104404
- password,
104405
- firebaseId
104406
- );
104407
- if (expectedShareLen > 0 && share.length !== expectedShareLen) {
104408
- throw new SDKError(
104409
- "Incorrect PIN code",
104410
- "INVALID_PASSWORD" /* INVALID_PASSWORD */
104411
- );
104412
- }
104413
- return share;
104401
+ return Crypto.decryptShare(encryptedShare, password, firebaseId);
104414
104402
  } catch (e7) {
104415
- if (e7 instanceof SDKError) throw e7;
104416
104403
  if (this.isInvalidPasswordError(e7)) {
104417
104404
  throw new SDKError(
104418
104405
  "Incorrect PIN code",
@@ -104423,6 +104410,8 @@ var WalletService = class {
104423
104410
  throw e7;
104424
104411
  }
104425
104412
  };
104413
+ const walletInfo = await this.walletClient.getWallet();
104414
+ const serverAddr = this.normalizeAddr(walletInfo?.address);
104426
104415
  let share2 = await LocalForage.get(
104427
104416
  STORAGE_KEYS.share2(this.orgHost)
104428
104417
  );
@@ -104445,8 +104434,8 @@ var WalletService = class {
104445
104434
  const derivedAddr2 = this.normalizeAddr(wallet2.address);
104446
104435
  if (this.addressesMismatch(serverAddr, derivedAddr2)) {
104447
104436
  throw new SDKError(
104448
- "Incorrect PIN code",
104449
- "INVALID_PASSWORD" /* INVALID_PASSWORD */
104437
+ `Recovered wallet address mismatch. server=${serverAddr} derived=${derivedAddr2}`,
104438
+ "WALLET_RECOVERY_FAILED" /* WALLET_RECOVERY_FAILED */
104450
104439
  );
104451
104440
  }
104452
104441
  const newShares = await Secrets.split(wallet2.privateKey, 3, 2);
@@ -104481,7 +104470,10 @@ var WalletService = class {
104481
104470
  const wallet = new import_ethers2.Wallet(privateKey);
104482
104471
  const derivedAddr = this.normalizeAddr(wallet.address);
104483
104472
  if (this.addressesMismatch(serverAddr, derivedAddr)) {
104484
- throw new SDKError("Incorrect PIN code", "INVALID_PASSWORD" /* INVALID_PASSWORD */);
104473
+ throw new SDKError(
104474
+ `Recovered wallet address mismatch. server=${serverAddr} derived=${derivedAddr}`,
104475
+ "WALLET_RECOVERY_FAILED" /* WALLET_RECOVERY_FAILED */
104476
+ );
104485
104477
  }
104486
104478
  await this.ensureDeviceEncryptedShare2(share2, firebaseId);
104487
104479
  this.walletAddress = wallet.address;
@@ -105061,6 +105053,30 @@ var HttpClient = class {
105061
105053
  throw new Error("Invalid environment");
105062
105054
  }
105063
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
+ }
105064
105080
  async getHeaders(needsAccessToken = false) {
105065
105081
  const headers = {
105066
105082
  "Content-Type": "application/json",
@@ -105068,13 +105084,7 @@ var HttpClient = class {
105068
105084
  "X-Al-Org-Host": this.orgHost
105069
105085
  };
105070
105086
  if (needsAccessToken) {
105071
- const accessToken = await LocalForage.get(
105072
- `${this.orgHost}:accessToken`
105073
- );
105074
- if (!accessToken) {
105075
- throw new SDKError("No access token found", "AUTH_REQUIRED" /* AUTH_REQUIRED */);
105076
- }
105077
- ;
105087
+ const accessToken = await this.getValidAccessToken();
105078
105088
  headers["Authorization"] = `Bearer ${accessToken}`;
105079
105089
  }
105080
105090
  return headers;
@@ -105110,9 +105120,9 @@ var HttpClient = class {
105110
105120
  const response = await fetch(`${this.baseUrl}${path}`, requestInit);
105111
105121
  if (!response.ok) {
105112
105122
  if (config2.needsAccessToken && (response.status === 401 || response.status === 403)) {
105113
- await LocalForage.delete(`${this.orgHost}:accessToken`);
105123
+ await LocalForage.delete(this.getAccessTokenStorageKey());
105114
105124
  throw new SDKError(
105115
- `Authentication required (status: ${response.status})`,
105125
+ "Session expired. Please sign in again.",
105116
105126
  "AUTH_REQUIRED" /* AUTH_REQUIRED */,
105117
105127
  await this.safeReadErrorDetails(response)
105118
105128
  );
@@ -105617,7 +105627,7 @@ var RBT_PROPERTY_TOKEN_ABI = [
105617
105627
  // src/core/services/asset.ts
105618
105628
  var import_ethers3 = require("ethers");
105619
105629
 
105620
- // node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/events.js
105630
+ // node_modules/@jspm/core/nodelibs/browser/events.js
105621
105631
  var exports$111 = {};
105622
105632
  var _dewExec11 = false;
105623
105633
  function dew11() {
@@ -106060,7 +106070,7 @@ var {
106060
106070
  once: once2
106061
106071
  } = exports12;
106062
106072
 
106063
- // node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/timers.js
106073
+ // node_modules/@jspm/core/nodelibs/browser/timers.js
106064
106074
  var exports$211 = {};
106065
106075
  var _dewExec$111 = false;
106066
106076
  var _global$111 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
@@ -107378,14 +107388,18 @@ var WeBlockSDK = class {
107378
107388
  return this.initialized;
107379
107389
  }
107380
107390
  };
107381
- var index_default = WeBlockSDK;
107391
+ var src_default = WeBlockSDK;
107382
107392
  /*! Bundled license information:
107383
107393
 
107384
107394
  @jspm/core/nodelibs/browser/chunk-DtuTasat.js:
107385
- @jspm/core/nodelibs/browser/chunk-B738Er4n.js:
107386
107395
  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
107387
107396
 
107388
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
+
107389
107403
  @jspm/core/nodelibs/browser/crypto.js:
107390
107404
  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
107391
107405
  */