@gardenfi/core 0.2.0-beta.32 → 0.2.0-beta.33

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.js CHANGED
@@ -10,6 +10,7 @@ import * as ft from "tiny-secp256k1";
10
10
  import { Urgency as Jr } from "@catalogfi/wallets";
11
11
  import * as de from "bitcoinjs-lib";
12
12
  import { crypto as Si } from "bitcoinjs-lib";
13
+ import Ai from "bignumber.js";
13
14
  var Er = /* @__PURE__ */ ((e) => (e[e.evm = 14400] = "evm", e[e.btc = 288] = "btc", e))(Er || {}), pe = /* @__PURE__ */ ((e) => (e.Idle = "Idle", e.Initiate = "Initiate", e.Redeem = "Redeem", e.Refund = "Refund", e))(pe || {});
14
15
  function Vt(e) {
15
16
  return {
@@ -19,7 +20,7 @@ function Vt(e) {
19
20
  ...e
20
21
  };
21
22
  }
22
- const Ai = /* @__PURE__ */ Vt({
23
+ const Ti = /* @__PURE__ */ Vt({
23
24
  id: 42161,
24
25
  name: "Arbitrum One",
25
26
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -41,7 +42,7 @@ const Ai = /* @__PURE__ */ Vt({
41
42
  blockCreated: 7654707
42
43
  }
43
44
  }
44
- }), Ti = /* @__PURE__ */ Vt({
45
+ }), Ii = /* @__PURE__ */ Vt({
45
46
  id: 421614,
46
47
  name: "Arbitrum Sepolia",
47
48
  nativeCurrency: {
@@ -68,7 +69,7 @@ const Ai = /* @__PURE__ */ Vt({
68
69
  }
69
70
  },
70
71
  testnet: !0
71
- }), Ii = /* @__PURE__ */ Vt({
72
+ }), Ci = /* @__PURE__ */ Vt({
72
73
  id: 1,
73
74
  name: "Ethereum",
74
75
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -97,7 +98,7 @@ const Ai = /* @__PURE__ */ Vt({
97
98
  blockCreated: 14353601
98
99
  }
99
100
  }
100
- }), Ci = /* @__PURE__ */ Vt({
101
+ }), ki = /* @__PURE__ */ Vt({
101
102
  id: 11155111,
102
103
  name: "Sepolia",
103
104
  nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
@@ -132,24 +133,24 @@ function Rr(e) {
132
133
  function it(e, t) {
133
134
  if (!e) throw new Error(t);
134
135
  }
135
- function ki(e) {
136
+ function Li(e) {
136
137
  return Buffer.concat([
137
138
  Uint8Array.from([192]),
138
- Li(e)
139
+ Oi(e)
139
140
  ]);
140
141
  }
141
- function Li(e) {
142
+ function Oi(e) {
142
143
  const t = Vr.encodingLength(e.length), r = Buffer.allocUnsafe(t);
143
144
  return Vr.encode(e.length, r), Buffer.concat([r, e]);
144
145
  }
145
- function Oi(e, t) {
146
+ function Fi(e, t) {
146
147
  if (e.compare(t) > 0) {
147
148
  const r = e;
148
149
  e = t, t = r;
149
150
  }
150
151
  return [e, t];
151
152
  }
152
- const _t = (e) => e.length === 64 ? e : e.slice(2), Fi = (e) => {
153
+ const _t = (e) => e.length === 64 ? e : e.slice(2), Pi = (e) => {
153
154
  if (!e) return !1;
154
155
  try {
155
156
  const t = Buffer.from(e, "hex");
@@ -157,16 +158,16 @@ const _t = (e) => e.length === 64 ? e : e.slice(2), Fi = (e) => {
157
158
  } catch {
158
159
  return !1;
159
160
  }
160
- }, Pi = {
161
- ethereum: Ii,
162
- ethereum_arbitrum: Ai,
163
- ethereum_sepolia: Ci,
164
- arbitrum_sepolia: Ti,
161
+ }, Mi = {
162
+ ethereum: Ci,
163
+ ethereum_arbitrum: Ti,
164
+ ethereum_sepolia: ki,
165
+ arbitrum_sepolia: Ii,
165
166
  ethereum_localnet: mi,
166
167
  arbitrum_localnet: vi
167
- }, Qs = async (e, t) => {
168
+ }, ef = async (e, t) => {
168
169
  var a;
169
- const r = Pi[e];
170
+ const r = Mi[e];
170
171
  if (r)
171
172
  try {
172
173
  if (r.id === ((a = t.chain) == null ? void 0 : a.id))
@@ -182,7 +183,7 @@ const _t = (e) => e.length === 64 ? e : e.slice(2), Fi = (e) => {
182
183
  walletClient: o
183
184
  });
184
185
  } catch (o) {
185
- if (Mi(o))
186
+ if (Ni(o))
186
187
  try {
187
188
  await t.addChain({ chain: r });
188
189
  const s = Kr({
@@ -202,9 +203,9 @@ const _t = (e) => e.length === 64 ? e : e.slice(2), Fi = (e) => {
202
203
  }
203
204
  else
204
205
  return H("Chain not supported");
205
- }, Mi = (e) => typeof e == "object" && e !== null && "code" in e && e.code === 4902;
206
+ }, Ni = (e) => typeof e == "object" && e !== null && "code" in e && e.code === 4902;
206
207
  var ie = /* @__PURE__ */ ((e) => (e.Created = "Created", e.Matched = "Matched", e.InitiateDetected = "InitiateDetected", e.Initiated = "Initiated", e.CounterPartyInitiateDetected = "CounterPartyInitiateDetected", e.CounterPartyInitiated = "CounterPartyInitiated", e.RedeemDetected = "RedeemDetected", e.Redeemed = "Redeemed", e.CounterPartyRedeemDetected = "CounterPartyRedeemDetected", e.CounterPartyRedeemed = "CounterPartyRedeemed", e.Completed = "Completed", e.CounterPartySwapExpired = "CounterPartySwapExpired", e.Expired = "Expired", e.RefundDetected = "RefundDetected", e.Refunded = "Refunded", e.CounterPartyRefundDetected = "CounterPartyRefundDetected", e.CounterPartyRefunded = "CounterPartyRefunded", e.Cancelled = "Cancelled", e))(ie || {}), Z = /* @__PURE__ */ ((e) => (e.Idle = "Idle", e.InitiateDetected = "InitiateDetected", e.Initiated = "Initiated", e.RedeemDetected = "RedeemDetected", e.Redeemed = "Redeemed", e.RefundDetected = "RefundDetected", e.Refunded = "Refunded", e.Expired = "Expired", e))(Z || {});
207
- const Ni = (e, t, r) => {
208
+ const Ui = (e, t, r) => {
208
209
  const a = Br(
209
210
  e.source_swap,
210
211
  t
@@ -241,8 +242,8 @@ const Ni = (e, t, r) => {
241
242
  if (t > r) return Z.Expired;
242
243
  }
243
244
  return e.initiate_tx_hash ? e.initiate_block_number ? Z.Initiated : Z.InitiateDetected : Z.Idle;
244
- }, Ui = (e, t, r) => {
245
- switch (Ni(
245
+ }, Di = (e, t, r) => {
246
+ switch (Ui(
246
247
  e,
247
248
  t,
248
249
  r
@@ -259,7 +260,7 @@ const Ni = (e, t, r) => {
259
260
  }, Yr = (e, t = 0) => {
260
261
  const r = Date.now(), a = e * 1e3 + t * 36e5;
261
262
  return r >= a;
262
- }, Di = [
263
+ }, $i = [
263
264
  {
264
265
  inputs: [
265
266
  {
@@ -652,7 +653,7 @@ const Ni = (e, t, r) => {
652
653
  type: "function"
653
654
  }
654
655
  ];
655
- class $i {
656
+ class Hi {
656
657
  constructor(t, r, a) {
657
658
  this.url = new Tn("/relayer", r), this.auth = a, this.order = t;
658
659
  }
@@ -678,7 +679,7 @@ class $i {
678
679
  if (m.error) return H(m.error);
679
680
  const v = Bi({
680
681
  address: Ut(this.order.source_swap.asset),
681
- abi: Di,
682
+ abi: $i,
682
683
  client: t
683
684
  }), T = await v.read.token(), k = await Ei(
684
685
  Number(w),
@@ -753,27 +754,27 @@ class $i {
753
754
  }
754
755
  }
755
756
  }
756
- const Hi = Buffer.from(
757
+ const ji = Buffer.from(
757
758
  "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",
758
759
  "hex"
759
- ), ji = Buffer.from(
760
+ ), Wi = Buffer.from(
760
761
  "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",
761
762
  "hex"
762
- ), Wi = Buffer.concat([Hi, ji]), qi = Buffer.from(
763
+ ), qi = Buffer.concat([ji, Wi]), Ki = Buffer.from(
763
764
  "0250929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0",
764
765
  "hex"
765
766
  ), zr = {
766
767
  failedToCreateInternalPubkey: "failed to create internal pubkey",
767
768
  failedToTweakPubkey: "failed to tweak pubkey"
768
769
  };
769
- function Ki() {
770
+ function Gi() {
770
771
  const e = Si.sha256(Buffer.from("GardenHTLC", "utf-8")), t = ft.pointMultiply(
771
- Buffer.concat([Buffer.from("04", "hex"), Wi]),
772
+ Buffer.concat([Buffer.from("04", "hex"), qi]),
772
773
  e
773
774
  );
774
775
  if (!t)
775
776
  throw new Error(zr.failedToCreateInternalPubkey);
776
- const r = ft.pointAdd(qi, t);
777
+ const r = ft.pointAdd(Ki, t);
777
778
  if (!r) throw new Error(zr.failedToCreateInternalPubkey);
778
779
  return Rr(Buffer.from(r));
779
780
  }
@@ -797,7 +798,7 @@ class jt {
797
798
  * Note: redeemerAddress and initiatorAddress should be x-only public key without 02 or 03 prefix
798
799
  */
799
800
  constructor(t, r, a, o, s, c, u, p) {
800
- this.secretHash = a, this.redeemerPubkey = o, this.initiatorPubkey = s, this.expiry = c, this.signer = t, this.network = u, this.internalPubkey = Ki(), this.initiateAmount = r, this.utxoHashes = p;
801
+ this.secretHash = a, this.redeemerPubkey = o, this.initiatorPubkey = s, this.expiry = c, this.signer = t, this.network = u, this.internalPubkey = Gi(), this.initiateAmount = r, this.utxoHashes = p;
801
802
  }
802
803
  /**
803
804
  * Creates a GardenHTLC instance
@@ -1064,7 +1065,7 @@ class jt {
1064
1065
  */
1065
1066
  leafHash(t) {
1066
1067
  let r = this.redeemLeaf();
1067
- return t === 0 && (r = this.refundLeaf()), t === 2 && (r = this.instantRefundLeaf()), de.crypto.taggedHash("TapLeaf", ki(r));
1068
+ return t === 0 && (r = this.refundLeaf()), t === 2 && (r = this.instantRefundLeaf()), de.crypto.taggedHash("TapLeaf", Li(r));
1068
1069
  }
1069
1070
  refundLeaf() {
1070
1071
  return de.script.fromASM(
@@ -1135,7 +1136,7 @@ class jt {
1135
1136
  );
1136
1137
  switch (t) {
1137
1138
  case 1: {
1138
- const s = Oi(
1139
+ const s = Fi(
1139
1140
  o,
1140
1141
  a
1141
1142
  );
@@ -1161,7 +1162,7 @@ function or(e, t) {
1161
1162
  r.push(e);
1162
1163
  return r;
1163
1164
  }
1164
- class Gi {
1165
+ class Vi {
1165
1166
  constructor() {
1166
1167
  this.cache = {};
1167
1168
  }
@@ -1180,13 +1181,13 @@ class Gi {
1180
1181
  delete this.cache[`${r}_${t.create_order.create_id}`];
1181
1182
  }
1182
1183
  }
1183
- class Zs {
1184
+ class tf {
1184
1185
  constructor(t) {
1185
1186
  if (this.eventListeners = /* @__PURE__ */ new Map(), this.getOrderThreshold = 20, this.pendingOrdersCount = 0, this.useRelay = !0, this.orderBook = new xi({
1186
1187
  url: t.orderbookURl,
1187
1188
  walletClient: t.wallets.evmWallet,
1188
1189
  auth: t.auth
1189
- }), this.quote = t.quote, this.secretManager = t.secretManager, this.wallets = t.wallets, this.orderbookUrl = t.orderbookURl, this.auth = t.auth, this.orderExecutorCache = new Gi(), !t.wallets.evmWallet.account)
1190
+ }), this.quote = t.quote, this.secretManager = t.secretManager, this.wallets = t.wallets, this.orderbookUrl = t.orderbookURl, this.auth = t.auth, this.orderExecutorCache = new Vi(), !t.wallets.evmWallet.account)
1190
1191
  throw new Error("Account not found in evmWallet");
1191
1192
  this.evmAddress = t.wallets.evmWallet.account.address;
1192
1193
  }
@@ -1271,15 +1272,17 @@ class Zs {
1271
1272
  return this.wallets.evmWallet.account ? se(this.wallets.evmWallet.account.address) : H("EVM Wallet not found");
1272
1273
  case ke.Bitcoin: {
1273
1274
  const o = await ((a = this.wallets.btcWallet) == null ? void 0 : a.getPublicKey());
1274
- return !o || !Fi(o) ? H("Invalid btc public key") : se(_t(o));
1275
+ return !o || !Pi(o) ? H("Invalid btc public key") : se(_t(o));
1275
1276
  }
1276
1277
  default:
1277
1278
  return H("Unsupported chain");
1278
1279
  }
1279
1280
  }
1280
1281
  validateAmount(t) {
1281
- const r = BigInt(t);
1282
- return t == null || r <= 0n || t.includes(".") ? H("Invalid amount ", t) : se(r);
1282
+ if (t == null || t.includes("."))
1283
+ return H("Invalid amount ", t);
1284
+ const r = new Ai(t);
1285
+ return !r.isInteger() || r.isNaN() || r.lt(0) || r.isLessThanOrEqualTo(0) ? H("Invalid amount ", t) : se(r);
1283
1286
  }
1284
1287
  getTimelock(t) {
1285
1288
  switch (yt(t)) {
@@ -1338,7 +1341,7 @@ class Zs {
1338
1341
  );
1339
1342
  return;
1340
1343
  }
1341
- switch (Ui(
1344
+ switch (Di(
1342
1345
  o,
1343
1346
  w.val.source,
1344
1347
  w.val.destination
@@ -1415,7 +1418,7 @@ class Zs {
1415
1418
  this.emit("log", t.create_order.create_id, "already redeemed");
1416
1419
  return;
1417
1420
  }
1418
- const s = await new $i(t, this.orderbookUrl, this.auth).redeem(t.create_order.create_id, r);
1421
+ const s = await new Hi(t, this.orderbookUrl, this.auth).redeem(t.create_order.create_id, r);
1419
1422
  if (s.error) {
1420
1423
  this.emit("error", t, s.error);
1421
1424
  return;
@@ -1518,7 +1521,7 @@ class Zs {
1518
1521
  }
1519
1522
  }
1520
1523
  var Ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1521
- function Vi(e) {
1524
+ function Ji(e) {
1522
1525
  if (e.__esModule) return e;
1523
1526
  var t = e.default;
1524
1527
  if (typeof t == "function") {
@@ -1602,7 +1605,7 @@ function kn(e) {
1602
1605
  function Mr(e) {
1603
1606
  return Xe.Nil(e) ? "" : kn(e.constructor);
1604
1607
  }
1605
- function Ji(e) {
1608
+ function Yi(e) {
1606
1609
  return Xe.Function(e) ? "" : Xe.String(e) ? JSON.stringify(e) : e && Xe.Object(e) ? "" : e;
1607
1610
  }
1608
1611
  function Nr(e, t) {
@@ -1612,7 +1615,7 @@ function Wt(e) {
1612
1615
  return Xe.Function(e) ? e.toJSON ? e.toJSON() : kn(e) : Xe.Array(e) ? "Array" : e && Xe.Object(e) ? "Object" : e !== void 0 ? e : "";
1613
1616
  }
1614
1617
  function Ln(e, t, r) {
1615
- var a = Ji(t);
1618
+ var a = Yi(t);
1616
1619
  return "Expected " + Wt(e) + ", got" + (r !== "" ? " " + r : "") + (a !== "" ? " " + a : "");
1617
1620
  }
1618
1621
  function Ne(e, t, r) {
@@ -1620,19 +1623,19 @@ function Ne(e, t, r) {
1620
1623
  }
1621
1624
  Ne.prototype = Object.create(Error.prototype);
1622
1625
  Ne.prototype.constructor = Ne;
1623
- function Yi(e, t, r, a, o) {
1626
+ function zi(e, t, r, a, o) {
1624
1627
  var s = '" of type ';
1625
1628
  return t === "key" && (s = '" with key type '), Ln('property "' + Wt(r) + s + Wt(e), a, o);
1626
1629
  }
1627
1630
  function ot(e, t, r, a, o) {
1628
- e ? (o = o || Mr(a), this.message = Yi(e, r, t, a, o)) : this.message = 'Unexpected property "' + t + '"', Nr(this, Ne), this.__label = r, this.__property = t, this.__type = e, this.__value = a, this.__valueTypeName = o;
1631
+ e ? (o = o || Mr(a), this.message = zi(e, r, t, a, o)) : this.message = 'Unexpected property "' + t + '"', Nr(this, Ne), this.__label = r, this.__property = t, this.__type = e, this.__value = a, this.__valueTypeName = o;
1629
1632
  }
1630
1633
  ot.prototype = Object.create(Error.prototype);
1631
1634
  ot.prototype.constructor = Ne;
1632
- function zi(e, t) {
1635
+ function Xi(e, t) {
1633
1636
  return new Ne(e, {}, t);
1634
1637
  }
1635
- function Xi(e, t, r) {
1638
+ function Qi(e, t, r) {
1636
1639
  return e instanceof ot ? (t = t + "." + e.__property, e = new ot(
1637
1640
  e.__type,
1638
1641
  t,
@@ -1650,12 +1653,12 @@ function Xi(e, t, r) {
1650
1653
  var On = {
1651
1654
  TfTypeError: Ne,
1652
1655
  TfPropertyTypeError: ot,
1653
- tfCustomError: zi,
1654
- tfSubError: Xi,
1656
+ tfCustomError: Xi,
1657
+ tfSubError: Qi,
1655
1658
  tfJSON: Wt,
1656
1659
  getValueTypeName: Mr
1657
1660
  }, sr, Qr;
1658
- function Qi() {
1661
+ function Zi() {
1659
1662
  if (Qr) return sr;
1660
1663
  Qr = 1;
1661
1664
  var e = Pr, t = On;
@@ -1738,7 +1741,7 @@ function Qi() {
1738
1741
  }).bind(null, M);
1739
1742
  return sr = L, sr;
1740
1743
  }
1741
- var At = On, fe = Pr, Pe = At.tfJSON, Fn = At.TfTypeError, Pn = At.TfPropertyTypeError, gt = At.tfSubError, Zi = At.getValueTypeName, Me = {
1744
+ var At = On, fe = Pr, Pe = At.tfJSON, Fn = At.TfTypeError, Pn = At.TfPropertyTypeError, gt = At.tfSubError, ea = At.getValueTypeName, Me = {
1742
1745
  arrayOf: function(t, r) {
1743
1746
  t = Le(t), r = r || {};
1744
1747
  function a(o, s) {
@@ -1847,7 +1850,7 @@ var At = On, fe = Pr, Pe = At.tfJSON, Fn = At.TfTypeError, Pn = At.TfPropertyTyp
1847
1850
  },
1848
1851
  quacksLike: function(t) {
1849
1852
  function r(a) {
1850
- return t === Zi(a);
1853
+ return t === ea(a);
1851
1854
  }
1852
1855
  return r.toJSON = function() {
1853
1856
  return t;
@@ -1902,15 +1905,15 @@ for (var qe in fe)
1902
1905
  ge[qe] = fe[qe];
1903
1906
  for (qe in Me)
1904
1907
  ge[qe] = Me[qe];
1905
- var Zr = Qi();
1908
+ var Zr = Zi();
1906
1909
  for (qe in Zr)
1907
1910
  ge[qe] = Zr[qe];
1908
1911
  ge.compile = Le;
1909
1912
  ge.TfTypeError = Fn;
1910
1913
  ge.TfPropertyTypeError = Pn;
1911
- var ea = ge;
1914
+ var ta = ge;
1912
1915
  (function(e) {
1913
- Object.defineProperty(e, "__esModule", { value: !0 }), e.maybe = e.Boolean = e.Array = e.Buffer256bit = e.Network = e.typeforce = void 0, e.typeforce = ea, e.Network = e.typeforce.compile({
1916
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.maybe = e.Boolean = e.Array = e.Buffer256bit = e.Network = e.typeforce = void 0, e.typeforce = ta, e.Network = e.typeforce.compile({
1914
1917
  messagePrefix: e.typeforce.oneOf(
1915
1918
  e.typeforce.Buffer,
1916
1919
  e.typeforce.String
@@ -1925,11 +1928,11 @@ var ea = ge;
1925
1928
  }), e.Buffer256bit = e.typeforce.BufferN(32), e.Array = e.typeforce.Array, e.Boolean = e.typeforce.Boolean, e.maybe = e.typeforce.maybe;
1926
1929
  })(Cn);
1927
1930
  var Sr = { exports: {} }, Ar = { exports: {} }, ht = {}, Jt = {};
1928
- Jt.byteLength = na;
1929
- Jt.toByteArray = aa;
1930
- Jt.fromByteArray = fa;
1931
- var Oe = [], Be = [], ta = typeof Uint8Array < "u" ? Uint8Array : Array, fr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1932
- for (var at = 0, ra = fr.length; at < ra; ++at)
1931
+ Jt.byteLength = ia;
1932
+ Jt.toByteArray = oa;
1933
+ Jt.fromByteArray = ua;
1934
+ var Oe = [], Be = [], ra = typeof Uint8Array < "u" ? Uint8Array : Array, fr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1935
+ for (var at = 0, na = fr.length; at < na; ++at)
1933
1936
  Oe[at] = fr[at], Be[fr.charCodeAt(at)] = at;
1934
1937
  Be[45] = 62;
1935
1938
  Be[95] = 63;
@@ -1942,30 +1945,30 @@ function Mn(e) {
1942
1945
  var a = r === t ? 0 : 4 - r % 4;
1943
1946
  return [r, a];
1944
1947
  }
1945
- function na(e) {
1948
+ function ia(e) {
1946
1949
  var t = Mn(e), r = t[0], a = t[1];
1947
1950
  return (r + a) * 3 / 4 - a;
1948
1951
  }
1949
- function ia(e, t, r) {
1952
+ function aa(e, t, r) {
1950
1953
  return (t + r) * 3 / 4 - r;
1951
1954
  }
1952
- function aa(e) {
1953
- var t, r = Mn(e), a = r[0], o = r[1], s = new ta(ia(e, a, o)), c = 0, u = o > 0 ? a - 4 : a, p;
1955
+ function oa(e) {
1956
+ var t, r = Mn(e), a = r[0], o = r[1], s = new ra(aa(e, a, o)), c = 0, u = o > 0 ? a - 4 : a, p;
1954
1957
  for (p = 0; p < u; p += 4)
1955
1958
  t = Be[e.charCodeAt(p)] << 18 | Be[e.charCodeAt(p + 1)] << 12 | Be[e.charCodeAt(p + 2)] << 6 | Be[e.charCodeAt(p + 3)], s[c++] = t >> 16 & 255, s[c++] = t >> 8 & 255, s[c++] = t & 255;
1956
1959
  return o === 2 && (t = Be[e.charCodeAt(p)] << 2 | Be[e.charCodeAt(p + 1)] >> 4, s[c++] = t & 255), o === 1 && (t = Be[e.charCodeAt(p)] << 10 | Be[e.charCodeAt(p + 1)] << 4 | Be[e.charCodeAt(p + 2)] >> 2, s[c++] = t >> 8 & 255, s[c++] = t & 255), s;
1957
1960
  }
1958
- function oa(e) {
1961
+ function sa(e) {
1959
1962
  return Oe[e >> 18 & 63] + Oe[e >> 12 & 63] + Oe[e >> 6 & 63] + Oe[e & 63];
1960
1963
  }
1961
- function sa(e, t, r) {
1964
+ function fa(e, t, r) {
1962
1965
  for (var a, o = [], s = t; s < r; s += 3)
1963
- a = (e[s] << 16 & 16711680) + (e[s + 1] << 8 & 65280) + (e[s + 2] & 255), o.push(oa(a));
1966
+ a = (e[s] << 16 & 16711680) + (e[s + 1] << 8 & 65280) + (e[s + 2] & 255), o.push(sa(a));
1964
1967
  return o.join("");
1965
1968
  }
1966
- function fa(e) {
1969
+ function ua(e) {
1967
1970
  for (var t, r = e.length, a = r % 3, o = [], s = 16383, c = 0, u = r - a; c < u; c += s)
1968
- o.push(sa(e, c, c + s > u ? u : c + s));
1971
+ o.push(fa(e, c, c + s > u ? u : c + s));
1969
1972
  return a === 1 ? (t = e[r - 1], o.push(
1970
1973
  Oe[t >> 2] + Oe[t << 4 & 63] + "=="
1971
1974
  )) : a === 2 && (t = (e[r - 2] << 8) + e[r - 1], o.push(
@@ -2971,16 +2974,16 @@ Ur.write = function(e, t, r, a, o, s) {
2971
2974
  return r.SlowBuffer(c);
2972
2975
  };
2973
2976
  })(Ar, Ar.exports);
2974
- var ve = Ar.exports, ur = 65536, ua = 4294967295;
2975
- function ca() {
2977
+ var ve = Ar.exports, ur = 65536, ca = 4294967295;
2978
+ function la() {
2976
2979
  throw new Error(`Secure random number generation is not supported by this browser.
2977
2980
  Use Chrome, Firefox or Internet Explorer 11`);
2978
2981
  }
2979
- var la = ve.Buffer, qt = Ke.crypto || Ke.msCrypto;
2980
- qt && qt.getRandomValues ? Sr.exports = ha : Sr.exports = ca;
2981
- function ha(e, t) {
2982
- if (e > ua) throw new RangeError("requested too many random bytes");
2983
- var r = la.allocUnsafe(e);
2982
+ var ha = ve.Buffer, qt = Ke.crypto || Ke.msCrypto;
2983
+ qt && qt.getRandomValues ? Sr.exports = da : Sr.exports = la;
2984
+ function da(e, t) {
2985
+ if (e > ca) throw new RangeError("requested too many random bytes");
2986
+ var r = ha.allocUnsafe(e);
2984
2987
  if (e > 0)
2985
2988
  if (e > ur)
2986
2989
  for (var a = 0; a < e; a += ur)
@@ -2991,7 +2994,7 @@ function ha(e, t) {
2991
2994
  t(null, r);
2992
2995
  }) : r;
2993
2996
  }
2994
- var da = Sr.exports, Tr = { exports: {} };
2997
+ var pa = Sr.exports, Tr = { exports: {} };
2995
2998
  typeof Object.create == "function" ? Tr.exports = function(t, r) {
2996
2999
  r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
2997
3000
  constructor: {
@@ -3017,7 +3020,7 @@ st && typeof st.ownKeys == "function" ? Dt = st.ownKeys : Object.getOwnPropertyS
3017
3020
  } : Dt = function(t) {
3018
3021
  return Object.getOwnPropertyNames(t);
3019
3022
  };
3020
- function pa(e) {
3023
+ function ba(e) {
3021
3024
  console && console.warn && console.warn(e);
3022
3025
  }
3023
3026
  var Nn = Number.isNaN || function(t) {
@@ -3027,7 +3030,7 @@ function V() {
3027
3030
  V.init.call(this);
3028
3031
  }
3029
3032
  Dr.exports = V;
3030
- Dr.exports.once = ga;
3033
+ Dr.exports.once = wa;
3031
3034
  V.EventEmitter = V;
3032
3035
  V.prototype._events = void 0;
3033
3036
  V.prototype._eventsCount = 0;
@@ -3097,7 +3100,7 @@ function Dn(e, t, r, a) {
3097
3100
  else if (typeof c == "function" ? c = s[t] = a ? [r, c] : [c, r] : a ? c.unshift(r) : c.push(r), o = Un(e), o > 0 && c.length > o && !c.warned) {
3098
3101
  c.warned = !0;
3099
3102
  var u = new Error("Possible EventEmitter memory leak detected. " + c.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
3100
- u.name = "MaxListenersExceededWarning", u.emitter = e, u.type = t, u.count = c.length, pa(u);
3103
+ u.name = "MaxListenersExceededWarning", u.emitter = e, u.type = t, u.count = c.length, ba(u);
3101
3104
  }
3102
3105
  return e;
3103
3106
  }
@@ -3108,12 +3111,12 @@ V.prototype.on = V.prototype.addListener;
3108
3111
  V.prototype.prependListener = function(t, r) {
3109
3112
  return Dn(this, t, r, !0);
3110
3113
  };
3111
- function ba() {
3114
+ function ya() {
3112
3115
  if (!this.fired)
3113
3116
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
3114
3117
  }
3115
3118
  function $n(e, t, r) {
3116
- var a = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, o = ba.bind(a);
3119
+ var a = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, o = ya.bind(a);
3117
3120
  return o.listener = r, a.wrapFn = o, o;
3118
3121
  }
3119
3122
  V.prototype.once = function(t, r) {
@@ -3138,7 +3141,7 @@ V.prototype.removeListener = function(t, r) {
3138
3141
  }
3139
3142
  if (s < 0)
3140
3143
  return this;
3141
- s === 0 ? a.shift() : ya(a, s), a.length === 1 && (o[t] = a[0]), o.removeListener !== void 0 && this.emit("removeListener", t, u || r);
3144
+ s === 0 ? a.shift() : _a(a, s), a.length === 1 && (o[t] = a[0]), o.removeListener !== void 0 && this.emit("removeListener", t, u || r);
3142
3145
  }
3143
3146
  return this;
3144
3147
  };
@@ -3167,7 +3170,7 @@ function Hn(e, t, r) {
3167
3170
  if (a === void 0)
3168
3171
  return [];
3169
3172
  var o = a[t];
3170
- return o === void 0 ? [] : typeof o == "function" ? r ? [o.listener || o] : [o] : r ? _a(o) : Wn(o, o.length);
3173
+ return o === void 0 ? [] : typeof o == "function" ? r ? [o.listener || o] : [o] : r ? ga(o) : Wn(o, o.length);
3171
3174
  }
3172
3175
  V.prototype.listeners = function(t) {
3173
3176
  return Hn(this, t, !0);
@@ -3198,17 +3201,17 @@ function Wn(e, t) {
3198
3201
  r[a] = e[a];
3199
3202
  return r;
3200
3203
  }
3201
- function ya(e, t) {
3204
+ function _a(e, t) {
3202
3205
  for (; t + 1 < e.length; t++)
3203
3206
  e[t] = e[t + 1];
3204
3207
  e.pop();
3205
3208
  }
3206
- function _a(e) {
3209
+ function ga(e) {
3207
3210
  for (var t = new Array(e.length), r = 0; r < t.length; ++r)
3208
3211
  t[r] = e[r].listener || e[r];
3209
3212
  return t;
3210
3213
  }
3211
- function ga(e, t) {
3214
+ function wa(e, t) {
3212
3215
  return new Promise(function(r, a) {
3213
3216
  function o(c) {
3214
3217
  e.removeListener(t, s), a(c);
@@ -3216,10 +3219,10 @@ function ga(e, t) {
3216
3219
  function s() {
3217
3220
  typeof e.removeListener == "function" && e.removeListener("error", o), r([].slice.call(arguments));
3218
3221
  }
3219
- qn(e, t, s, { once: !0 }), t !== "error" && wa(e, o, { once: !0 });
3222
+ qn(e, t, s, { once: !0 }), t !== "error" && ma(e, o, { once: !0 });
3220
3223
  });
3221
3224
  }
3222
- function wa(e, t, r) {
3225
+ function ma(e, t, r) {
3223
3226
  typeof e.on == "function" && qn(e, "error", t, r);
3224
3227
  }
3225
3228
  function qn(e, t, r, a) {
@@ -3233,12 +3236,12 @@ function qn(e, t, r, a) {
3233
3236
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
3234
3237
  }
3235
3238
  var Kn = Dr.exports, Gn = Kn.EventEmitter;
3236
- const ma = {}, va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3239
+ const va = {}, xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3237
3240
  __proto__: null,
3238
- default: ma
3239
- }, Symbol.toStringTag, { value: "Module" })), $r = /* @__PURE__ */ Vi(va);
3241
+ default: va
3242
+ }, Symbol.toStringTag, { value: "Module" })), $r = /* @__PURE__ */ Ji(xa);
3240
3243
  var cr, rn;
3241
- function xa() {
3244
+ function Ea() {
3242
3245
  if (rn) return cr;
3243
3246
  rn = 1;
3244
3247
  function e(B, C) {
@@ -3402,7 +3405,7 @@ function xa() {
3402
3405
  }]), B;
3403
3406
  }(), cr;
3404
3407
  }
3405
- function Ea(e, t) {
3408
+ function Ra(e, t) {
3406
3409
  var r = this, a = this._readableState && this._readableState.destroyed, o = this._writableState && this._writableState.destroyed;
3407
3410
  return a || o ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process.nextTick(Cr, this, e)) : process.nextTick(Cr, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(s) {
3408
3411
  !t && s ? r._writableState ? r._writableState.errorEmitted ? process.nextTick($t, r) : (r._writableState.errorEmitted = !0, process.nextTick(nn, r, s)) : process.nextTick(nn, r, s) : t ? (process.nextTick($t, r), t(s)) : process.nextTick($t, r);
@@ -3414,22 +3417,22 @@ function nn(e, t) {
3414
3417
  function $t(e) {
3415
3418
  e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close");
3416
3419
  }
3417
- function Ra() {
3420
+ function Ba() {
3418
3421
  this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
3419
3422
  }
3420
3423
  function Cr(e, t) {
3421
3424
  e.emit("error", t);
3422
3425
  }
3423
- function Ba(e, t) {
3426
+ function Sa(e, t) {
3424
3427
  var r = e._readableState, a = e._writableState;
3425
3428
  r && r.autoDestroy || a && a.autoDestroy ? e.destroy(t) : e.emit("error", t);
3426
3429
  }
3427
3430
  var Vn = {
3428
- destroy: Ea,
3429
- undestroy: Ra,
3430
- errorOrDestroy: Ba
3431
+ destroy: Ra,
3432
+ undestroy: Ba,
3433
+ errorOrDestroy: Sa
3431
3434
  }, Ze = {};
3432
- function Sa(e, t) {
3435
+ function Aa(e, t) {
3433
3436
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
3434
3437
  }
3435
3438
  var Jn = {};
@@ -3439,7 +3442,7 @@ function Se(e, t, r) {
3439
3442
  return typeof t == "string" ? t : t(s, c, u);
3440
3443
  }
3441
3444
  var o = /* @__PURE__ */ function(s) {
3442
- Sa(c, s);
3445
+ Aa(c, s);
3443
3446
  function c(u, p, w) {
3444
3447
  return s.call(this, a(u, p, w)) || this;
3445
3448
  }
@@ -3456,13 +3459,13 @@ function an(e, t) {
3456
3459
  } else
3457
3460
  return "of ".concat(t, " ").concat(String(e));
3458
3461
  }
3459
- function Aa(e, t, r) {
3462
+ function Ta(e, t, r) {
3460
3463
  return e.substr(0, t.length) === t;
3461
3464
  }
3462
- function Ta(e, t, r) {
3465
+ function Ia(e, t, r) {
3463
3466
  return (r === void 0 || r > e.length) && (r = e.length), e.substring(r - t.length, r) === t;
3464
3467
  }
3465
- function Ia(e, t, r) {
3468
+ function Ca(e, t, r) {
3466
3469
  return typeof r != "number" && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1;
3467
3470
  }
3468
3471
  Se("ERR_INVALID_OPT_VALUE", function(e, t) {
@@ -3470,12 +3473,12 @@ Se("ERR_INVALID_OPT_VALUE", function(e, t) {
3470
3473
  }, TypeError);
3471
3474
  Se("ERR_INVALID_ARG_TYPE", function(e, t, r) {
3472
3475
  var a;
3473
- typeof t == "string" && Aa(t, "not ") ? (a = "must not be", t = t.replace(/^not /, "")) : a = "must be";
3476
+ typeof t == "string" && Ta(t, "not ") ? (a = "must not be", t = t.replace(/^not /, "")) : a = "must be";
3474
3477
  var o;
3475
- if (Ta(e, " argument"))
3478
+ if (Ia(e, " argument"))
3476
3479
  o = "The ".concat(e, " ").concat(a, " ").concat(an(t, "type"));
3477
3480
  else {
3478
- var s = Ia(e, ".") ? "property" : "argument";
3481
+ var s = Ca(e, ".") ? "property" : "argument";
3479
3482
  o = 'The "'.concat(e, '" ').concat(s, " ").concat(a, " ").concat(an(t, "type"));
3480
3483
  }
3481
3484
  return o += ". Received type ".concat(typeof r), o;
@@ -3497,25 +3500,25 @@ Se("ERR_UNKNOWN_ENCODING", function(e) {
3497
3500
  }, TypeError);
3498
3501
  Se("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
3499
3502
  Ze.codes = Jn;
3500
- var Ca = Ze.codes.ERR_INVALID_OPT_VALUE;
3501
- function ka(e, t, r) {
3503
+ var ka = Ze.codes.ERR_INVALID_OPT_VALUE;
3504
+ function La(e, t, r) {
3502
3505
  return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null;
3503
3506
  }
3504
- function La(e, t, r, a) {
3505
- var o = ka(t, a, r);
3507
+ function Oa(e, t, r, a) {
3508
+ var o = La(t, a, r);
3506
3509
  if (o != null) {
3507
3510
  if (!(isFinite(o) && Math.floor(o) === o) || o < 0) {
3508
3511
  var s = a ? r : "highWaterMark";
3509
- throw new Ca(s, o);
3512
+ throw new ka(s, o);
3510
3513
  }
3511
3514
  return Math.floor(o);
3512
3515
  }
3513
3516
  return e.objectMode ? 16 : 16 * 1024;
3514
3517
  }
3515
3518
  var Yn = {
3516
- getHighWaterMark: La
3517
- }, Oa = Fa;
3518
- function Fa(e, t) {
3519
+ getHighWaterMark: Oa
3520
+ }, Fa = Pa;
3521
+ function Pa(e, t) {
3519
3522
  if (lr("noDeprecation"))
3520
3523
  return e;
3521
3524
  var r = !1;
@@ -3551,7 +3554,7 @@ function zn() {
3551
3554
  var t;
3552
3555
  N.WritableState = E;
3553
3556
  var r = {
3554
- deprecate: Oa
3557
+ deprecate: Fa
3555
3558
  }, a = Gn, o = ht.Buffer, s = (typeof Ke < "u" ? Ke : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
3556
3559
  };
3557
3560
  function c(_) {
@@ -3847,7 +3850,7 @@ var Kt = {}, Hr = ve.Buffer, fn = Hr.isEncoding || function(e) {
3847
3850
  return !1;
3848
3851
  }
3849
3852
  };
3850
- function Pa(e) {
3853
+ function Ma(e) {
3851
3854
  if (!e) return "utf8";
3852
3855
  for (var t; ; )
3853
3856
  switch (e) {
@@ -3871,27 +3874,27 @@ function Pa(e) {
3871
3874
  e = ("" + e).toLowerCase(), t = !0;
3872
3875
  }
3873
3876
  }
3874
- function Ma(e) {
3875
- var t = Pa(e);
3877
+ function Na(e) {
3878
+ var t = Ma(e);
3876
3879
  if (typeof t != "string" && (Hr.isEncoding === fn || !fn(e))) throw new Error("Unknown encoding: " + e);
3877
3880
  return t || e;
3878
3881
  }
3879
3882
  Kt.StringDecoder = Tt;
3880
3883
  function Tt(e) {
3881
- this.encoding = Ma(e);
3884
+ this.encoding = Na(e);
3882
3885
  var t;
3883
3886
  switch (this.encoding) {
3884
3887
  case "utf16le":
3885
- this.text = ja, this.end = Wa, t = 4;
3888
+ this.text = Wa, this.end = qa, t = 4;
3886
3889
  break;
3887
3890
  case "utf8":
3888
- this.fillLast = Da, t = 4;
3891
+ this.fillLast = $a, t = 4;
3889
3892
  break;
3890
3893
  case "base64":
3891
- this.text = qa, this.end = Ka, t = 3;
3894
+ this.text = Ka, this.end = Ga, t = 3;
3892
3895
  break;
3893
3896
  default:
3894
- this.write = Ga, this.end = Va;
3897
+ this.write = Va, this.end = Ja;
3895
3898
  return;
3896
3899
  }
3897
3900
  this.lastNeed = 0, this.lastTotal = 0, this.lastChar = Hr.allocUnsafe(t);
@@ -3906,8 +3909,8 @@ Tt.prototype.write = function(e) {
3906
3909
  r = 0;
3907
3910
  return r < e.length ? t ? t + this.text(e, r) : this.text(e, r) : t || "";
3908
3911
  };
3909
- Tt.prototype.end = Ha;
3910
- Tt.prototype.text = $a;
3912
+ Tt.prototype.end = ja;
3913
+ Tt.prototype.text = Ha;
3911
3914
  Tt.prototype.fillLast = function(e) {
3912
3915
  if (this.lastNeed <= e.length)
3913
3916
  return e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
@@ -3916,13 +3919,13 @@ Tt.prototype.fillLast = function(e) {
3916
3919
  function pr(e) {
3917
3920
  return e <= 127 ? 0 : e >> 5 === 6 ? 2 : e >> 4 === 14 ? 3 : e >> 3 === 30 ? 4 : e >> 6 === 2 ? -1 : -2;
3918
3921
  }
3919
- function Na(e, t, r) {
3922
+ function Ua(e, t, r) {
3920
3923
  var a = t.length - 1;
3921
3924
  if (a < r) return 0;
3922
3925
  var o = pr(t[a]);
3923
3926
  return o >= 0 ? (o > 0 && (e.lastNeed = o - 1), o) : --a < r || o === -2 ? 0 : (o = pr(t[a]), o >= 0 ? (o > 0 && (e.lastNeed = o - 2), o) : --a < r || o === -2 ? 0 : (o = pr(t[a]), o >= 0 ? (o > 0 && (o === 2 ? o = 0 : e.lastNeed = o - 3), o) : 0));
3924
3927
  }
3925
- function Ua(e, t, r) {
3928
+ function Da(e, t, r) {
3926
3929
  if ((t[0] & 192) !== 128)
3927
3930
  return e.lastNeed = 0, "�";
3928
3931
  if (e.lastNeed > 1 && t.length > 1) {
@@ -3932,25 +3935,25 @@ function Ua(e, t, r) {
3932
3935
  return e.lastNeed = 2, "�";
3933
3936
  }
3934
3937
  }
3935
- function Da(e) {
3936
- var t = this.lastTotal - this.lastNeed, r = Ua(this, e);
3938
+ function $a(e) {
3939
+ var t = this.lastTotal - this.lastNeed, r = Da(this, e);
3937
3940
  if (r !== void 0) return r;
3938
3941
  if (this.lastNeed <= e.length)
3939
3942
  return e.copy(this.lastChar, t, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
3940
3943
  e.copy(this.lastChar, t, 0, e.length), this.lastNeed -= e.length;
3941
3944
  }
3942
- function $a(e, t) {
3943
- var r = Na(this, e, t);
3945
+ function Ha(e, t) {
3946
+ var r = Ua(this, e, t);
3944
3947
  if (!this.lastNeed) return e.toString("utf8", t);
3945
3948
  this.lastTotal = r;
3946
3949
  var a = e.length - (r - this.lastNeed);
3947
3950
  return e.copy(this.lastChar, 0, a), e.toString("utf8", t, a);
3948
3951
  }
3949
- function Ha(e) {
3952
+ function ja(e) {
3950
3953
  var t = e && e.length ? this.write(e) : "";
3951
3954
  return this.lastNeed ? t + "�" : t;
3952
3955
  }
3953
- function ja(e, t) {
3956
+ function Wa(e, t) {
3954
3957
  if ((e.length - t) % 2 === 0) {
3955
3958
  var r = e.toString("utf16le", t);
3956
3959
  if (r) {
@@ -3962,7 +3965,7 @@ function ja(e, t) {
3962
3965
  }
3963
3966
  return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = e[e.length - 1], e.toString("utf16le", t, e.length - 1);
3964
3967
  }
3965
- function Wa(e) {
3968
+ function qa(e) {
3966
3969
  var t = e && e.length ? this.write(e) : "";
3967
3970
  if (this.lastNeed) {
3968
3971
  var r = this.lastTotal - this.lastNeed;
@@ -3970,22 +3973,22 @@ function Wa(e) {
3970
3973
  }
3971
3974
  return t;
3972
3975
  }
3973
- function qa(e, t) {
3976
+ function Ka(e, t) {
3974
3977
  var r = (e.length - t) % 3;
3975
3978
  return r === 0 ? e.toString("base64", t) : (this.lastNeed = 3 - r, this.lastTotal = 3, r === 1 ? this.lastChar[0] = e[e.length - 1] : (this.lastChar[0] = e[e.length - 2], this.lastChar[1] = e[e.length - 1]), e.toString("base64", t, e.length - r));
3976
3979
  }
3977
- function Ka(e) {
3980
+ function Ga(e) {
3978
3981
  var t = e && e.length ? this.write(e) : "";
3979
3982
  return this.lastNeed ? t + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t;
3980
3983
  }
3981
- function Ga(e) {
3984
+ function Va(e) {
3982
3985
  return e.toString(this.encoding);
3983
3986
  }
3984
- function Va(e) {
3987
+ function Ja(e) {
3985
3988
  return e && e.length ? this.write(e) : "";
3986
3989
  }
3987
3990
  var un = Ze.codes.ERR_STREAM_PREMATURE_CLOSE;
3988
- function Ja(e) {
3991
+ function Ya(e) {
3989
3992
  var t = !1;
3990
3993
  return function() {
3991
3994
  if (!t) {
@@ -3996,14 +3999,14 @@ function Ja(e) {
3996
3999
  }
3997
4000
  };
3998
4001
  }
3999
- function Ya() {
4002
+ function za() {
4000
4003
  }
4001
- function za(e) {
4004
+ function Xa(e) {
4002
4005
  return e.setHeader && typeof e.abort == "function";
4003
4006
  }
4004
4007
  function Xn(e, t, r) {
4005
4008
  if (typeof t == "function") return Xn(e, null, t);
4006
- t || (t = {}), r = Ja(r || Ya);
4009
+ t || (t = {}), r = Ya(r || za);
4007
4010
  var a = t.readable || t.readable !== !1 && e.readable, o = t.writable || t.writable !== !1 && e.writable, s = function() {
4008
4011
  e.writable || u();
4009
4012
  }, c = e._writableState && e._writableState.finished, u = function() {
@@ -4021,12 +4024,12 @@ function Xn(e, t, r) {
4021
4024
  }, T = function() {
4022
4025
  e.req.on("finish", u);
4023
4026
  };
4024
- return za(e) ? (e.on("complete", u), e.on("abort", v), e.req ? T() : e.on("request", T)) : o && !e._writableState && (e.on("end", s), e.on("close", s)), e.on("end", w), e.on("finish", u), t.error !== !1 && e.on("error", m), e.on("close", v), function() {
4027
+ return Xa(e) ? (e.on("complete", u), e.on("abort", v), e.req ? T() : e.on("request", T)) : o && !e._writableState && (e.on("end", s), e.on("close", s)), e.on("end", w), e.on("finish", u), t.error !== !1 && e.on("error", m), e.on("close", v), function() {
4025
4028
  e.removeListener("complete", u), e.removeListener("abort", v), e.removeListener("request", T), e.req && e.req.removeListener("finish", u), e.removeListener("end", s), e.removeListener("close", s), e.removeListener("finish", u), e.removeListener("end", w), e.removeListener("error", m), e.removeListener("close", v);
4026
4029
  };
4027
4030
  }
4028
4031
  var jr = Xn, br, cn;
4029
- function Xa() {
4032
+ function Qa() {
4030
4033
  if (cn) return br;
4031
4034
  cn = 1;
4032
4035
  var e;
@@ -4152,7 +4155,7 @@ function Xa() {
4152
4155
  return br = O, br;
4153
4156
  }
4154
4157
  var yr, ln;
4155
- function Qa() {
4158
+ function Za() {
4156
4159
  return ln || (ln = 1, yr = function() {
4157
4160
  throw new Error("Readable.from is not available in the browser");
4158
4161
  }), yr;
@@ -4176,7 +4179,7 @@ function Qn() {
4176
4179
  var u = $r, p;
4177
4180
  u && u.debuglog ? p = u.debuglog("stream") : p = function() {
4178
4181
  };
4179
- var w = xa(), m = Vn, v = Yn, T = v.getHighWaterMark, k = Ze.codes, B = k.ERR_INVALID_ARG_TYPE, C = k.ERR_STREAM_PUSH_AFTER_EOF, A = k.ERR_METHOD_NOT_IMPLEMENTED, I = k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, O, F, L;
4182
+ var w = Ea(), m = Vn, v = Yn, T = v.getHighWaterMark, k = Ze.codes, B = k.ERR_INVALID_ARG_TYPE, C = k.ERR_STREAM_PUSH_AFTER_EOF, A = k.ERR_METHOD_NOT_IMPLEMENTED, I = k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, O, F, L;
4180
4183
  be(D, r);
4181
4184
  var M = m.errorOrDestroy, E = ["error", "close", "destroy", "pause", "resume"];
4182
4185
  function j(h, d, R) {
@@ -4433,7 +4436,7 @@ function Qn() {
4433
4436
  p("wrapped _read", G), P && (P = !1, h.resume());
4434
4437
  }, this;
4435
4438
  }, typeof Symbol == "function" && (D.prototype[Symbol.asyncIterator] = function() {
4436
- return F === void 0 && (F = Xa()), F(this);
4439
+ return F === void 0 && (F = Qa()), F(this);
4437
4440
  }), Object.defineProperty(D.prototype, "readableHighWaterMark", {
4438
4441
  // making it explicit this property is not enumerable
4439
4442
  // because otherwise some prototype manipulation in
@@ -4486,7 +4489,7 @@ function Qn() {
4486
4489
  }
4487
4490
  }
4488
4491
  typeof Symbol == "function" && (D.from = function(h, d) {
4489
- return L === void 0 && (L = Qa()), L(D, h, d);
4492
+ return L === void 0 && (L = Za()), L(D, h, d);
4490
4493
  });
4491
4494
  function W(h, d) {
4492
4495
  for (var R = 0, P = h.length; R < P; R++)
@@ -4495,14 +4498,14 @@ function Qn() {
4495
4498
  }
4496
4499
  return _r;
4497
4500
  }
4498
- var Zn = Ue, zt = Ze.codes, Za = zt.ERR_METHOD_NOT_IMPLEMENTED, eo = zt.ERR_MULTIPLE_CALLBACK, to = zt.ERR_TRANSFORM_ALREADY_TRANSFORMING, ro = zt.ERR_TRANSFORM_WITH_LENGTH_0, Xt = lt();
4501
+ var Zn = Ue, zt = Ze.codes, eo = zt.ERR_METHOD_NOT_IMPLEMENTED, to = zt.ERR_MULTIPLE_CALLBACK, ro = zt.ERR_TRANSFORM_ALREADY_TRANSFORMING, no = zt.ERR_TRANSFORM_WITH_LENGTH_0, Xt = lt();
4499
4502
  be(Ue, Xt);
4500
- function no(e, t) {
4503
+ function io(e, t) {
4501
4504
  var r = this._transformState;
4502
4505
  r.transforming = !1;
4503
4506
  var a = r.writecb;
4504
4507
  if (a === null)
4505
- return this.emit("error", new eo());
4508
+ return this.emit("error", new to());
4506
4509
  r.writechunk = null, r.writecb = null, t != null && this.push(t), a(e);
4507
4510
  var o = this._readableState;
4508
4511
  o.reading = !1, (o.needReadable || o.length < o.highWaterMark) && this._read(o.highWaterMark);
@@ -4510,15 +4513,15 @@ function no(e, t) {
4510
4513
  function Ue(e) {
4511
4514
  if (!(this instanceof Ue)) return new Ue(e);
4512
4515
  Xt.call(this, e), this._transformState = {
4513
- afterTransform: no.bind(this),
4516
+ afterTransform: io.bind(this),
4514
4517
  needTransform: !1,
4515
4518
  transforming: !1,
4516
4519
  writecb: null,
4517
4520
  writechunk: null,
4518
4521
  writeencoding: null
4519
- }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e.transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", io);
4522
+ }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e.transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", ao);
4520
4523
  }
4521
- function io() {
4524
+ function ao() {
4522
4525
  var e = this;
4523
4526
  typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, r) {
4524
4527
  dn(e, t, r);
@@ -4528,7 +4531,7 @@ Ue.prototype.push = function(e, t) {
4528
4531
  return this._transformState.needTransform = !1, Xt.prototype.push.call(this, e, t);
4529
4532
  };
4530
4533
  Ue.prototype._transform = function(e, t, r) {
4531
- r(new Za("_transform()"));
4534
+ r(new eo("_transform()"));
4532
4535
  };
4533
4536
  Ue.prototype._write = function(e, t, r) {
4534
4537
  var a = this._transformState;
@@ -4548,11 +4551,11 @@ Ue.prototype._destroy = function(e, t) {
4548
4551
  };
4549
4552
  function dn(e, t, r) {
4550
4553
  if (t) return e.emit("error", t);
4551
- if (r != null && e.push(r), e._writableState.length) throw new ro();
4552
- if (e._transformState.transforming) throw new to();
4554
+ if (r != null && e.push(r), e._writableState.length) throw new no();
4555
+ if (e._transformState.transforming) throw new ro();
4553
4556
  return e.push(null);
4554
4557
  }
4555
- var ao = St, ei = Zn;
4558
+ var oo = St, ei = Zn;
4556
4559
  be(St, ei);
4557
4560
  function St(e) {
4558
4561
  if (!(this instanceof St)) return new St(e);
@@ -4562,21 +4565,21 @@ St.prototype._transform = function(e, t, r) {
4562
4565
  r(null, e);
4563
4566
  };
4564
4567
  var gr;
4565
- function oo(e) {
4568
+ function so(e) {
4566
4569
  var t = !1;
4567
4570
  return function() {
4568
4571
  t || (t = !0, e.apply(void 0, arguments));
4569
4572
  };
4570
4573
  }
4571
- var ti = Ze.codes, so = ti.ERR_MISSING_ARGS, fo = ti.ERR_STREAM_DESTROYED;
4574
+ var ti = Ze.codes, fo = ti.ERR_MISSING_ARGS, uo = ti.ERR_STREAM_DESTROYED;
4572
4575
  function pn(e) {
4573
4576
  if (e) throw e;
4574
4577
  }
4575
- function uo(e) {
4578
+ function co(e) {
4576
4579
  return e.setHeader && typeof e.abort == "function";
4577
4580
  }
4578
- function co(e, t, r, a) {
4579
- a = oo(a);
4581
+ function lo(e, t, r, a) {
4582
+ a = so(a);
4580
4583
  var o = !1;
4581
4584
  e.on("close", function() {
4582
4585
  o = !0;
@@ -4590,48 +4593,48 @@ function co(e, t, r, a) {
4590
4593
  var s = !1;
4591
4594
  return function(c) {
4592
4595
  if (!o && !s) {
4593
- if (s = !0, uo(e)) return e.abort();
4596
+ if (s = !0, co(e)) return e.abort();
4594
4597
  if (typeof e.destroy == "function") return e.destroy();
4595
- a(c || new fo("pipe"));
4598
+ a(c || new uo("pipe"));
4596
4599
  }
4597
4600
  };
4598
4601
  }
4599
4602
  function bn(e) {
4600
4603
  e();
4601
4604
  }
4602
- function lo(e, t) {
4605
+ function ho(e, t) {
4603
4606
  return e.pipe(t);
4604
4607
  }
4605
- function ho(e) {
4608
+ function po(e) {
4606
4609
  return !e.length || typeof e[e.length - 1] != "function" ? pn : e.pop();
4607
4610
  }
4608
- function po() {
4611
+ function bo() {
4609
4612
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
4610
4613
  t[r] = arguments[r];
4611
- var a = ho(t);
4614
+ var a = po(t);
4612
4615
  if (Array.isArray(t[0]) && (t = t[0]), t.length < 2)
4613
- throw new so("streams");
4616
+ throw new fo("streams");
4614
4617
  var o, s = t.map(function(c, u) {
4615
4618
  var p = u < t.length - 1, w = u > 0;
4616
- return co(c, p, w, function(m) {
4619
+ return lo(c, p, w, function(m) {
4617
4620
  o || (o = m), m && s.forEach(bn), !p && (s.forEach(bn), a(o));
4618
4621
  });
4619
4622
  });
4620
- return t.reduce(lo);
4623
+ return t.reduce(ho);
4621
4624
  }
4622
- var bo = po;
4625
+ var yo = bo;
4623
4626
  (function(e, t) {
4624
- t = e.exports = Qn(), t.Stream = t, t.Readable = t, t.Writable = zn(), t.Duplex = lt(), t.Transform = Zn, t.PassThrough = ao, t.finished = jr, t.pipeline = bo;
4627
+ t = e.exports = Qn(), t.Stream = t, t.Readable = t, t.Writable = zn(), t.Duplex = lt(), t.Transform = Zn, t.PassThrough = oo, t.finished = jr, t.pipeline = yo;
4625
4628
  })(Ir, Ir.exports);
4626
- var yo = Ir.exports, Gt = ve.Buffer, ri = yo.Transform, _o = be;
4627
- function go(e, t) {
4629
+ var _o = Ir.exports, Gt = ve.Buffer, ri = _o.Transform, go = be;
4630
+ function wo(e, t) {
4628
4631
  if (!Gt.isBuffer(e) && typeof e != "string")
4629
4632
  throw new TypeError(t + " must be a string or a buffer");
4630
4633
  }
4631
4634
  function Ge(e) {
4632
4635
  ri.call(this), this._block = Gt.allocUnsafe(e), this._blockSize = e, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1;
4633
4636
  }
4634
- _o(Ge, ri);
4637
+ go(Ge, ri);
4635
4638
  Ge.prototype._transform = function(e, t, r) {
4636
4639
  var a = null;
4637
4640
  try {
@@ -4651,7 +4654,7 @@ Ge.prototype._flush = function(e) {
4651
4654
  e(t);
4652
4655
  };
4653
4656
  Ge.prototype.update = function(e, t) {
4654
- if (go(e, "Data"), this._finalized) throw new Error("Digest already called");
4657
+ if (wo(e, "Data"), this._finalized) throw new Error("Digest already called");
4655
4658
  Gt.isBuffer(e) || (e = Gt.from(e, t));
4656
4659
  for (var r = this._block, a = 0; this._blockOffset + e.length - a >= this._blockSize; ) {
4657
4660
  for (var o = this._blockOffset; o < this._blockSize; ) r[o++] = e[a++];
@@ -4676,19 +4679,19 @@ Ge.prototype.digest = function(e) {
4676
4679
  Ge.prototype._digest = function() {
4677
4680
  throw new Error("_digest is not implemented");
4678
4681
  };
4679
- var ni = Ge, wo = be, ii = ni, mo = ve.Buffer, vo = new Array(16);
4682
+ var ni = Ge, mo = be, ii = ni, vo = ve.Buffer, xo = new Array(16);
4680
4683
  function Qt() {
4681
4684
  ii.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
4682
4685
  }
4683
- wo(Qt, ii);
4686
+ mo(Qt, ii);
4684
4687
  Qt.prototype._update = function() {
4685
- for (var e = vo, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
4688
+ for (var e = xo, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
4686
4689
  var r = this._a, a = this._b, o = this._c, s = this._d;
4687
4690
  r = ue(r, a, o, s, e[0], 3614090360, 7), s = ue(s, r, a, o, e[1], 3905402710, 12), o = ue(o, s, r, a, e[2], 606105819, 17), a = ue(a, o, s, r, e[3], 3250441966, 22), r = ue(r, a, o, s, e[4], 4118548399, 7), s = ue(s, r, a, o, e[5], 1200080426, 12), o = ue(o, s, r, a, e[6], 2821735955, 17), a = ue(a, o, s, r, e[7], 4249261313, 22), r = ue(r, a, o, s, e[8], 1770035416, 7), s = ue(s, r, a, o, e[9], 2336552879, 12), o = ue(o, s, r, a, e[10], 4294925233, 17), a = ue(a, o, s, r, e[11], 2304563134, 22), r = ue(r, a, o, s, e[12], 1804603682, 7), s = ue(s, r, a, o, e[13], 4254626195, 12), o = ue(o, s, r, a, e[14], 2792965006, 17), a = ue(a, o, s, r, e[15], 1236535329, 22), r = ce(r, a, o, s, e[1], 4129170786, 5), s = ce(s, r, a, o, e[6], 3225465664, 9), o = ce(o, s, r, a, e[11], 643717713, 14), a = ce(a, o, s, r, e[0], 3921069994, 20), r = ce(r, a, o, s, e[5], 3593408605, 5), s = ce(s, r, a, o, e[10], 38016083, 9), o = ce(o, s, r, a, e[15], 3634488961, 14), a = ce(a, o, s, r, e[4], 3889429448, 20), r = ce(r, a, o, s, e[9], 568446438, 5), s = ce(s, r, a, o, e[14], 3275163606, 9), o = ce(o, s, r, a, e[3], 4107603335, 14), a = ce(a, o, s, r, e[8], 1163531501, 20), r = ce(r, a, o, s, e[13], 2850285829, 5), s = ce(s, r, a, o, e[2], 4243563512, 9), o = ce(o, s, r, a, e[7], 1735328473, 14), a = ce(a, o, s, r, e[12], 2368359562, 20), r = le(r, a, o, s, e[5], 4294588738, 4), s = le(s, r, a, o, e[8], 2272392833, 11), o = le(o, s, r, a, e[11], 1839030562, 16), a = le(a, o, s, r, e[14], 4259657740, 23), r = le(r, a, o, s, e[1], 2763975236, 4), s = le(s, r, a, o, e[4], 1272893353, 11), o = le(o, s, r, a, e[7], 4139469664, 16), a = le(a, o, s, r, e[10], 3200236656, 23), r = le(r, a, o, s, e[13], 681279174, 4), s = le(s, r, a, o, e[0], 3936430074, 11), o = le(o, s, r, a, e[3], 3572445317, 16), a = le(a, o, s, r, e[6], 76029189, 23), r = le(r, a, o, s, e[9], 3654602809, 4), s = le(s, r, a, o, e[12], 3873151461, 11), o = le(o, s, r, a, e[15], 530742520, 16), a = le(a, o, s, r, e[2], 3299628645, 23), r = he(r, a, o, s, e[0], 4096336452, 6), s = he(s, r, a, o, e[7], 1126891415, 10), o = he(o, s, r, a, e[14], 2878612391, 15), a = he(a, o, s, r, e[5], 4237533241, 21), r = he(r, a, o, s, e[12], 1700485571, 6), s = he(s, r, a, o, e[3], 2399980690, 10), o = he(o, s, r, a, e[10], 4293915773, 15), a = he(a, o, s, r, e[1], 2240044497, 21), r = he(r, a, o, s, e[8], 1873313359, 6), s = he(s, r, a, o, e[15], 4264355552, 10), o = he(o, s, r, a, e[6], 2734768916, 15), a = he(a, o, s, r, e[13], 1309151649, 21), r = he(r, a, o, s, e[4], 4149444226, 6), s = he(s, r, a, o, e[11], 3174756917, 10), o = he(o, s, r, a, e[2], 718787259, 15), a = he(a, o, s, r, e[9], 3951481745, 21), this._a = this._a + r | 0, this._b = this._b + a | 0, this._c = this._c + o | 0, this._d = this._d + s | 0;
4688
4691
  };
4689
4692
  Qt.prototype._digest = function() {
4690
4693
  this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
4691
- var e = mo.allocUnsafe(16);
4694
+ var e = vo.allocUnsafe(16);
4692
4695
  return e.writeInt32LE(this._a, 0), e.writeInt32LE(this._b, 4), e.writeInt32LE(this._c, 8), e.writeInt32LE(this._d, 12), e;
4693
4696
  };
4694
4697
  function Zt(e, t) {
@@ -4706,7 +4709,7 @@ function le(e, t, r, a, o, s, c) {
4706
4709
  function he(e, t, r, a, o, s, c) {
4707
4710
  return Zt(e + (r ^ (t | ~a)) + o + s | 0, c) + t | 0;
4708
4711
  }
4709
- var xo = Qt, wr = ht.Buffer, Eo = be, ai = ni, Ro = new Array(16), wt = [
4712
+ var Eo = Qt, wr = ht.Buffer, Ro = be, ai = ni, Bo = new Array(16), wt = [
4710
4713
  0,
4711
4714
  1,
4712
4715
  2,
@@ -5034,9 +5037,9 @@ var xo = Qt, wr = ht.Buffer, Eo = be, ai = ni, Ro = new Array(16), wt = [
5034
5037
  function er() {
5035
5038
  ai.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520;
5036
5039
  }
5037
- Eo(er, ai);
5040
+ Ro(er, ai);
5038
5041
  er.prototype._update = function() {
5039
- for (var e = Ro, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
5042
+ for (var e = Bo, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
5040
5043
  for (var r = this._a | 0, a = this._b | 0, o = this._c | 0, s = this._d | 0, c = this._e | 0, u = this._a | 0, p = this._b | 0, w = this._c | 0, m = this._d | 0, v = this._e | 0, T = 0; T < 80; T += 1) {
5041
5044
  var k, B;
5042
5045
  T < 16 ? (k = yn(r, a, o, s, c, e[wt[T]], Et[0], vt[T]), B = mn(u, p, w, m, v, e[mt[T]], Rt[0], xt[T])) : T < 32 ? (k = _n(r, a, o, s, c, e[wt[T]], Et[1], vt[T]), B = wn(u, p, w, m, v, e[mt[T]], Rt[1], xt[T])) : T < 48 ? (k = gn(r, a, o, s, c, e[wt[T]], Et[2], vt[T]), B = gn(u, p, w, m, v, e[mt[T]], Rt[2], xt[T])) : T < 64 ? (k = wn(r, a, o, s, c, e[wt[T]], Et[3], vt[T]), B = _n(u, p, w, m, v, e[mt[T]], Rt[3], xt[T])) : (k = mn(r, a, o, s, c, e[wt[T]], Et[4], vt[T]), B = yn(u, p, w, m, v, e[mt[T]], Rt[4], xt[T])), r = c, c = s, s = Qe(o, 10), o = a, a = k, u = v, v = m, m = Qe(w, 10), w = p, p = B;
@@ -5067,7 +5070,7 @@ function wn(e, t, r, a, o, s, c, u) {
5067
5070
  function mn(e, t, r, a, o, s, c, u) {
5068
5071
  return Qe(e + (t ^ (r | ~a)) + s + c | 0, u) + o | 0;
5069
5072
  }
5070
- var Bo = er, oi = { exports: {} }, si = ve.Buffer;
5073
+ var So = er, oi = { exports: {} }, si = ve.Buffer;
5071
5074
  function tr(e, t) {
5072
5075
  this._block = si.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
5073
5076
  }
@@ -5097,80 +5100,80 @@ tr.prototype.digest = function(e) {
5097
5100
  tr.prototype._update = function() {
5098
5101
  throw new Error("_update must be implemented by subclass");
5099
5102
  };
5100
- var dt = tr, So = be, fi = dt, Ao = ve.Buffer, To = [
5103
+ var dt = tr, Ao = be, fi = dt, To = ve.Buffer, Io = [
5101
5104
  1518500249,
5102
5105
  1859775393,
5103
5106
  -1894007588,
5104
5107
  -899497514
5105
- ], Io = new Array(80);
5108
+ ], Co = new Array(80);
5106
5109
  function It() {
5107
- this.init(), this._w = Io, fi.call(this, 64, 56);
5110
+ this.init(), this._w = Co, fi.call(this, 64, 56);
5108
5111
  }
5109
- So(It, fi);
5112
+ Ao(It, fi);
5110
5113
  It.prototype.init = function() {
5111
5114
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
5112
5115
  };
5113
- function Co(e) {
5116
+ function ko(e) {
5114
5117
  return e << 5 | e >>> 27;
5115
5118
  }
5116
- function ko(e) {
5119
+ function Lo(e) {
5117
5120
  return e << 30 | e >>> 2;
5118
5121
  }
5119
- function Lo(e, t, r, a) {
5122
+ function Oo(e, t, r, a) {
5120
5123
  return e === 0 ? t & r | ~t & a : e === 2 ? t & r | t & a | r & a : t ^ r ^ a;
5121
5124
  }
5122
5125
  It.prototype._update = function(e) {
5123
5126
  for (var t = this._w, r = this._a | 0, a = this._b | 0, o = this._c | 0, s = this._d | 0, c = this._e | 0, u = 0; u < 16; ++u) t[u] = e.readInt32BE(u * 4);
5124
5127
  for (; u < 80; ++u) t[u] = t[u - 3] ^ t[u - 8] ^ t[u - 14] ^ t[u - 16];
5125
5128
  for (var p = 0; p < 80; ++p) {
5126
- var w = ~~(p / 20), m = Co(r) + Lo(w, a, o, s) + c + t[p] + To[w] | 0;
5127
- c = s, s = o, o = ko(a), a = r, r = m;
5129
+ var w = ~~(p / 20), m = ko(r) + Oo(w, a, o, s) + c + t[p] + Io[w] | 0;
5130
+ c = s, s = o, o = Lo(a), a = r, r = m;
5128
5131
  }
5129
5132
  this._a = r + this._a | 0, this._b = a + this._b | 0, this._c = o + this._c | 0, this._d = s + this._d | 0, this._e = c + this._e | 0;
5130
5133
  };
5131
5134
  It.prototype._hash = function() {
5132
- var e = Ao.allocUnsafe(20);
5135
+ var e = To.allocUnsafe(20);
5133
5136
  return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
5134
5137
  };
5135
- var Oo = It, Fo = be, ui = dt, Po = ve.Buffer, Mo = [
5138
+ var Fo = It, Po = be, ui = dt, Mo = ve.Buffer, No = [
5136
5139
  1518500249,
5137
5140
  1859775393,
5138
5141
  -1894007588,
5139
5142
  -899497514
5140
- ], No = new Array(80);
5143
+ ], Uo = new Array(80);
5141
5144
  function Ct() {
5142
- this.init(), this._w = No, ui.call(this, 64, 56);
5145
+ this.init(), this._w = Uo, ui.call(this, 64, 56);
5143
5146
  }
5144
- Fo(Ct, ui);
5147
+ Po(Ct, ui);
5145
5148
  Ct.prototype.init = function() {
5146
5149
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
5147
5150
  };
5148
- function Uo(e) {
5151
+ function Do(e) {
5149
5152
  return e << 1 | e >>> 31;
5150
5153
  }
5151
- function Do(e) {
5154
+ function $o(e) {
5152
5155
  return e << 5 | e >>> 27;
5153
5156
  }
5154
- function $o(e) {
5157
+ function Ho(e) {
5155
5158
  return e << 30 | e >>> 2;
5156
5159
  }
5157
- function Ho(e, t, r, a) {
5160
+ function jo(e, t, r, a) {
5158
5161
  return e === 0 ? t & r | ~t & a : e === 2 ? t & r | t & a | r & a : t ^ r ^ a;
5159
5162
  }
5160
5163
  Ct.prototype._update = function(e) {
5161
5164
  for (var t = this._w, r = this._a | 0, a = this._b | 0, o = this._c | 0, s = this._d | 0, c = this._e | 0, u = 0; u < 16; ++u) t[u] = e.readInt32BE(u * 4);
5162
- for (; u < 80; ++u) t[u] = Uo(t[u - 3] ^ t[u - 8] ^ t[u - 14] ^ t[u - 16]);
5165
+ for (; u < 80; ++u) t[u] = Do(t[u - 3] ^ t[u - 8] ^ t[u - 14] ^ t[u - 16]);
5163
5166
  for (var p = 0; p < 80; ++p) {
5164
- var w = ~~(p / 20), m = Do(r) + Ho(w, a, o, s) + c + t[p] + Mo[w] | 0;
5165
- c = s, s = o, o = $o(a), a = r, r = m;
5167
+ var w = ~~(p / 20), m = $o(r) + jo(w, a, o, s) + c + t[p] + No[w] | 0;
5168
+ c = s, s = o, o = Ho(a), a = r, r = m;
5166
5169
  }
5167
5170
  this._a = r + this._a | 0, this._b = a + this._b | 0, this._c = o + this._c | 0, this._d = s + this._d | 0, this._e = c + this._e | 0;
5168
5171
  };
5169
5172
  Ct.prototype._hash = function() {
5170
- var e = Po.allocUnsafe(20);
5173
+ var e = Mo.allocUnsafe(20);
5171
5174
  return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
5172
5175
  };
5173
- var jo = Ct, Wo = be, ci = dt, qo = ve.Buffer, Ko = [
5176
+ var Wo = Ct, qo = be, ci = dt, Ko = ve.Buffer, Go = [
5174
5177
  1116352408,
5175
5178
  1899447441,
5176
5179
  3049323471,
@@ -5235,58 +5238,58 @@ var jo = Ct, Wo = be, ci = dt, qo = ve.Buffer, Ko = [
5235
5238
  2756734187,
5236
5239
  3204031479,
5237
5240
  3329325298
5238
- ], Go = new Array(64);
5241
+ ], Vo = new Array(64);
5239
5242
  function kt() {
5240
- this.init(), this._w = Go, ci.call(this, 64, 56);
5243
+ this.init(), this._w = Vo, ci.call(this, 64, 56);
5241
5244
  }
5242
- Wo(kt, ci);
5245
+ qo(kt, ci);
5243
5246
  kt.prototype.init = function() {
5244
5247
  return this._a = 1779033703, this._b = 3144134277, this._c = 1013904242, this._d = 2773480762, this._e = 1359893119, this._f = 2600822924, this._g = 528734635, this._h = 1541459225, this;
5245
5248
  };
5246
- function Vo(e, t, r) {
5249
+ function Jo(e, t, r) {
5247
5250
  return r ^ e & (t ^ r);
5248
5251
  }
5249
- function Jo(e, t, r) {
5252
+ function Yo(e, t, r) {
5250
5253
  return e & t | r & (e | t);
5251
5254
  }
5252
- function Yo(e) {
5255
+ function zo(e) {
5253
5256
  return (e >>> 2 | e << 30) ^ (e >>> 13 | e << 19) ^ (e >>> 22 | e << 10);
5254
5257
  }
5255
- function zo(e) {
5258
+ function Xo(e) {
5256
5259
  return (e >>> 6 | e << 26) ^ (e >>> 11 | e << 21) ^ (e >>> 25 | e << 7);
5257
5260
  }
5258
- function Xo(e) {
5261
+ function Qo(e) {
5259
5262
  return (e >>> 7 | e << 25) ^ (e >>> 18 | e << 14) ^ e >>> 3;
5260
5263
  }
5261
- function Qo(e) {
5264
+ function Zo(e) {
5262
5265
  return (e >>> 17 | e << 15) ^ (e >>> 19 | e << 13) ^ e >>> 10;
5263
5266
  }
5264
5267
  kt.prototype._update = function(e) {
5265
5268
  for (var t = this._w, r = this._a | 0, a = this._b | 0, o = this._c | 0, s = this._d | 0, c = this._e | 0, u = this._f | 0, p = this._g | 0, w = this._h | 0, m = 0; m < 16; ++m) t[m] = e.readInt32BE(m * 4);
5266
- for (; m < 64; ++m) t[m] = Qo(t[m - 2]) + t[m - 7] + Xo(t[m - 15]) + t[m - 16] | 0;
5269
+ for (; m < 64; ++m) t[m] = Zo(t[m - 2]) + t[m - 7] + Qo(t[m - 15]) + t[m - 16] | 0;
5267
5270
  for (var v = 0; v < 64; ++v) {
5268
- var T = w + zo(c) + Vo(c, u, p) + Ko[v] + t[v] | 0, k = Yo(r) + Jo(r, a, o) | 0;
5271
+ var T = w + Xo(c) + Jo(c, u, p) + Go[v] + t[v] | 0, k = zo(r) + Yo(r, a, o) | 0;
5269
5272
  w = p, p = u, u = c, c = s + T | 0, s = o, o = a, a = r, r = T + k | 0;
5270
5273
  }
5271
5274
  this._a = r + this._a | 0, this._b = a + this._b | 0, this._c = o + this._c | 0, this._d = s + this._d | 0, this._e = c + this._e | 0, this._f = u + this._f | 0, this._g = p + this._g | 0, this._h = w + this._h | 0;
5272
5275
  };
5273
5276
  kt.prototype._hash = function() {
5274
- var e = qo.allocUnsafe(32);
5277
+ var e = Ko.allocUnsafe(32);
5275
5278
  return e.writeInt32BE(this._a, 0), e.writeInt32BE(this._b, 4), e.writeInt32BE(this._c, 8), e.writeInt32BE(this._d, 12), e.writeInt32BE(this._e, 16), e.writeInt32BE(this._f, 20), e.writeInt32BE(this._g, 24), e.writeInt32BE(this._h, 28), e;
5276
5279
  };
5277
- var li = kt, Zo = be, es = li, ts = dt, rs = ve.Buffer, ns = new Array(64);
5280
+ var li = kt, es = be, ts = li, rs = dt, ns = ve.Buffer, is = new Array(64);
5278
5281
  function rr() {
5279
- this.init(), this._w = ns, ts.call(this, 64, 56);
5282
+ this.init(), this._w = is, rs.call(this, 64, 56);
5280
5283
  }
5281
- Zo(rr, es);
5284
+ es(rr, ts);
5282
5285
  rr.prototype.init = function() {
5283
5286
  return this._a = 3238371032, this._b = 914150663, this._c = 812702999, this._d = 4144912697, this._e = 4290775857, this._f = 1750603025, this._g = 1694076839, this._h = 3204075428, this;
5284
5287
  };
5285
5288
  rr.prototype._hash = function() {
5286
- var e = rs.allocUnsafe(28);
5289
+ var e = ns.allocUnsafe(28);
5287
5290
  return e.writeInt32BE(this._a, 0), e.writeInt32BE(this._b, 4), e.writeInt32BE(this._c, 8), e.writeInt32BE(this._d, 12), e.writeInt32BE(this._e, 16), e.writeInt32BE(this._f, 20), e.writeInt32BE(this._g, 24), e;
5288
5291
  };
5289
- var is = rr, as = be, hi = dt, os = ve.Buffer, vn = [
5292
+ var as = rr, os = be, hi = dt, ss = ve.Buffer, vn = [
5290
5293
  1116352408,
5291
5294
  3609767458,
5292
5295
  1899447441,
@@ -5447,11 +5450,11 @@ var is = rr, as = be, hi = dt, os = ve.Buffer, vn = [
5447
5450
  987167468,
5448
5451
  1816402316,
5449
5452
  1246189591
5450
- ], ss = new Array(160);
5453
+ ], fs = new Array(160);
5451
5454
  function Lt() {
5452
- this.init(), this._w = ss, hi.call(this, 128, 112);
5455
+ this.init(), this._w = fs, hi.call(this, 128, 112);
5453
5456
  }
5454
- as(Lt, hi);
5457
+ os(Lt, hi);
5455
5458
  Lt.prototype.init = function() {
5456
5459
  return this._ah = 1779033703, this._bh = 3144134277, this._ch = 1013904242, this._dh = 2773480762, this._eh = 1359893119, this._fh = 2600822924, this._gh = 528734635, this._hh = 1541459225, this._al = 4089235720, this._bl = 2227873595, this._cl = 4271175723, this._dl = 1595750129, this._el = 2917565137, this._fl = 725511199, this._gl = 4215389547, this._hl = 327033209, this;
5457
5460
  };
@@ -5467,16 +5470,16 @@ function Rn(e, t) {
5467
5470
  function Bn(e, t) {
5468
5471
  return (e >>> 14 | t << 18) ^ (e >>> 18 | t << 14) ^ (t >>> 9 | e << 23);
5469
5472
  }
5470
- function fs(e, t) {
5473
+ function us(e, t) {
5471
5474
  return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ e >>> 7;
5472
5475
  }
5473
- function us(e, t) {
5476
+ function cs(e, t) {
5474
5477
  return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ (e >>> 7 | t << 25);
5475
5478
  }
5476
- function cs(e, t) {
5479
+ function ls(e, t) {
5477
5480
  return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ e >>> 6;
5478
5481
  }
5479
- function ls(e, t) {
5482
+ function hs(e, t) {
5480
5483
  return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ (e >>> 6 | t << 26);
5481
5484
  }
5482
5485
  function oe(e, t) {
@@ -5486,9 +5489,9 @@ Lt.prototype._update = function(e) {
5486
5489
  for (var t = this._w, r = this._ah | 0, a = this._bh | 0, o = this._ch | 0, s = this._dh | 0, c = this._eh | 0, u = this._fh | 0, p = this._gh | 0, w = this._hh | 0, m = this._al | 0, v = this._bl | 0, T = this._cl | 0, k = this._dl | 0, B = this._el | 0, C = this._fl | 0, A = this._gl | 0, I = this._hl | 0, O = 0; O < 32; O += 2)
5487
5490
  t[O] = e.readInt32BE(O * 4), t[O + 1] = e.readInt32BE(O * 4 + 4);
5488
5491
  for (; O < 160; O += 2) {
5489
- var F = t[O - 30], L = t[O - 15 * 2 + 1], M = fs(F, L), E = us(L, F);
5492
+ var F = t[O - 30], L = t[O - 15 * 2 + 1], M = us(F, L), E = cs(L, F);
5490
5493
  F = t[O - 2 * 2], L = t[O - 2 * 2 + 1];
5491
- var j = cs(F, L), N = ls(L, F), D = t[O - 7 * 2], re = t[O - 7 * 2 + 1], Ae = t[O - 16 * 2], De = t[O - 16 * 2 + 1], ae = E + re | 0, we = M + D + oe(ae, E) | 0;
5494
+ var j = ls(F, L), N = hs(L, F), D = t[O - 7 * 2], re = t[O - 7 * 2 + 1], Ae = t[O - 16 * 2], De = t[O - 16 * 2 + 1], ae = E + re | 0, we = M + D + oe(ae, E) | 0;
5492
5495
  ae = ae + N | 0, we = we + j + oe(ae, N) | 0, ae = ae + De | 0, we = we + Ae + oe(ae, De) | 0, t[O] = we, t[O + 1] = ae;
5493
5496
  }
5494
5497
  for (var me = 0; me < 160; me += 2) {
@@ -5501,44 +5504,44 @@ Lt.prototype._update = function(e) {
5501
5504
  this._al = this._al + m | 0, this._bl = this._bl + v | 0, this._cl = this._cl + T | 0, this._dl = this._dl + k | 0, this._el = this._el + B | 0, this._fl = this._fl + C | 0, this._gl = this._gl + A | 0, this._hl = this._hl + I | 0, this._ah = this._ah + r + oe(this._al, m) | 0, this._bh = this._bh + a + oe(this._bl, v) | 0, this._ch = this._ch + o + oe(this._cl, T) | 0, this._dh = this._dh + s + oe(this._dl, k) | 0, this._eh = this._eh + c + oe(this._el, B) | 0, this._fh = this._fh + u + oe(this._fl, C) | 0, this._gh = this._gh + p + oe(this._gl, A) | 0, this._hh = this._hh + w + oe(this._hl, I) | 0;
5502
5505
  };
5503
5506
  Lt.prototype._hash = function() {
5504
- var e = os.allocUnsafe(64);
5507
+ var e = ss.allocUnsafe(64);
5505
5508
  function t(r, a, o) {
5506
5509
  e.writeInt32BE(r, o), e.writeInt32BE(a, o + 4);
5507
5510
  }
5508
5511
  return t(this._ah, this._al, 0), t(this._bh, this._bl, 8), t(this._ch, this._cl, 16), t(this._dh, this._dl, 24), t(this._eh, this._el, 32), t(this._fh, this._fl, 40), t(this._gh, this._gl, 48), t(this._hh, this._hl, 56), e;
5509
5512
  };
5510
- var di = Lt, hs = be, ds = di, ps = dt, bs = ve.Buffer, ys = new Array(160);
5513
+ var di = Lt, ds = be, ps = di, bs = dt, ys = ve.Buffer, _s = new Array(160);
5511
5514
  function nr() {
5512
- this.init(), this._w = ys, ps.call(this, 128, 112);
5515
+ this.init(), this._w = _s, bs.call(this, 128, 112);
5513
5516
  }
5514
- hs(nr, ds);
5517
+ ds(nr, ps);
5515
5518
  nr.prototype.init = function() {
5516
5519
  return this._ah = 3418070365, this._bh = 1654270250, this._ch = 2438529370, this._dh = 355462360, this._eh = 1731405415, this._fh = 2394180231, this._gh = 3675008525, this._hh = 1203062813, this._al = 3238371032, this._bl = 914150663, this._cl = 812702999, this._dl = 4144912697, this._el = 4290775857, this._fl = 1750603025, this._gl = 1694076839, this._hl = 3204075428, this;
5517
5520
  };
5518
5521
  nr.prototype._hash = function() {
5519
- var e = bs.allocUnsafe(48);
5522
+ var e = ys.allocUnsafe(48);
5520
5523
  function t(r, a, o) {
5521
5524
  e.writeInt32BE(r, o), e.writeInt32BE(a, o + 4);
5522
5525
  }
5523
5526
  return t(this._ah, this._al, 0), t(this._bh, this._bl, 8), t(this._ch, this._cl, 16), t(this._dh, this._dl, 24), t(this._eh, this._el, 32), t(this._fh, this._fl, 40), e;
5524
5527
  };
5525
- var _s = nr, et = oi.exports = function(t) {
5528
+ var gs = nr, et = oi.exports = function(t) {
5526
5529
  t = t.toLowerCase();
5527
5530
  var r = et[t];
5528
5531
  if (!r) throw new Error(t + " is not supported (we accept pull requests)");
5529
5532
  return new r();
5530
5533
  };
5531
- et.sha = Oo;
5532
- et.sha1 = jo;
5533
- et.sha224 = is;
5534
+ et.sha = Fo;
5535
+ et.sha1 = Wo;
5536
+ et.sha224 = as;
5534
5537
  et.sha256 = li;
5535
- et.sha384 = _s;
5538
+ et.sha384 = gs;
5536
5539
  et.sha512 = di;
5537
- var gs = oi.exports, pi = ve.Buffer, bi = $r.Transform, ws = Kt.StringDecoder, ms = be;
5540
+ var ws = oi.exports, pi = ve.Buffer, bi = $r.Transform, ms = Kt.StringDecoder, vs = be;
5538
5541
  function Ce(e) {
5539
5542
  bi.call(this), this.hashMode = typeof e == "string", this.hashMode ? this[e] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null;
5540
5543
  }
5541
- ms(Ce, bi);
5544
+ vs(Ce, bi);
5542
5545
  Ce.prototype.update = function(e, t, r) {
5543
5546
  typeof e == "string" && (e = pi.from(e, t));
5544
5547
  var a = this._update(e);
@@ -5579,25 +5582,25 @@ Ce.prototype._finalOrDigest = function(e) {
5579
5582
  return e && (t = this._toString(t, e, !0)), t;
5580
5583
  };
5581
5584
  Ce.prototype._toString = function(e, t, r) {
5582
- if (this._decoder || (this._decoder = new ws(t), this._encoding = t), this._encoding !== t) throw new Error("can't switch encodings");
5585
+ if (this._decoder || (this._decoder = new ms(t), this._encoding = t), this._encoding !== t) throw new Error("can't switch encodings");
5583
5586
  var a = this._decoder.write(e);
5584
5587
  return r && (a += this._decoder.end()), a;
5585
5588
  };
5586
- var vs = Ce, xs = be, Es = xo, Rs = Bo, Bs = gs, yi = vs;
5589
+ var xs = Ce, Es = be, Rs = Eo, Bs = So, Ss = ws, yi = xs;
5587
5590
  function ir(e) {
5588
5591
  yi.call(this, "digest"), this._hash = e;
5589
5592
  }
5590
- xs(ir, yi);
5593
+ Es(ir, yi);
5591
5594
  ir.prototype._update = function(e) {
5592
5595
  this._hash.update(e);
5593
5596
  };
5594
5597
  ir.prototype._final = function() {
5595
5598
  return this._hash.digest();
5596
5599
  };
5597
- var Ss = function(t) {
5598
- return t = t.toLowerCase(), t === "md5" ? new Es() : t === "rmd160" || t === "ripemd160" ? new Rs() : new ir(Bs(t));
5600
+ var As = function(t) {
5601
+ return t = t.toLowerCase(), t === "md5" ? new Rs() : t === "rmd160" || t === "ripemd160" ? new Bs() : new ir(Ss(t));
5599
5602
  }, Nt = ve.Buffer;
5600
- function As(e) {
5603
+ function Ts(e) {
5601
5604
  if (e.length >= 255)
5602
5605
  throw new TypeError("Alphabet too long");
5603
5606
  for (var t = new Uint8Array(256), r = 0; r < t.length; r++)
@@ -5666,10 +5669,10 @@ function As(e) {
5666
5669
  decode: T
5667
5670
  };
5668
5671
  }
5669
- var Ts = As, Is = Ts, Cs = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", ks = Is(Cs), mr = ks, Ls = ve.Buffer, Os = function(e) {
5672
+ var Is = Ts, Cs = Is, ks = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", Ls = Cs(ks), mr = Ls, Os = ve.Buffer, Fs = function(e) {
5670
5673
  function t(s) {
5671
5674
  var c = e(s);
5672
- return mr.encode(Ls.concat([
5675
+ return mr.encode(Os.concat([
5673
5676
  s,
5674
5677
  c
5675
5678
  ], s.length + 4));
@@ -5694,12 +5697,12 @@ var Ts = As, Is = Ts, Cs = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrst
5694
5697
  decode: o,
5695
5698
  decodeUnsafe: a
5696
5699
  };
5697
- }, Sn = Ss, Fs = Os;
5698
- function Ps(e) {
5700
+ }, Sn = As, Ps = Fs;
5701
+ function Ms(e) {
5699
5702
  var t = Sn("sha256").update(e).digest();
5700
5703
  return Sn("sha256").update(t).digest();
5701
5704
  }
5702
- var Ms = Fs(Ps), kr = Ms;
5705
+ var Ns = Ps(Ms), kr = Ns;
5703
5706
  function _i(e, t) {
5704
5707
  if (t !== void 0 && e[0] !== t) throw new Error("Invalid network version");
5705
5708
  if (e.length === 33)
@@ -5720,10 +5723,10 @@ function Lr(e, t, r) {
5720
5723
  var a = new Buffer(r ? 34 : 33);
5721
5724
  return a.writeUInt8(e, 0), t.copy(a, 1), r && (a[33] = 1), a;
5722
5725
  }
5723
- function Ns(e, t) {
5726
+ function Us(e, t) {
5724
5727
  return _i(kr.decode(e), t);
5725
5728
  }
5726
- function Us(e, t, r) {
5729
+ function Ds(e, t, r) {
5727
5730
  return typeof e == "number" ? kr.encode(Lr(e, t, r)) : kr.encode(
5728
5731
  Lr(
5729
5732
  e.version,
@@ -5732,16 +5735,16 @@ function Us(e, t, r) {
5732
5735
  )
5733
5736
  );
5734
5737
  }
5735
- var Ds = {
5736
- decode: Ns,
5738
+ var $s = {
5739
+ decode: Us,
5737
5740
  decodeRaw: _i,
5738
- encode: Us,
5741
+ encode: Ds,
5739
5742
  encodeRaw: Lr
5740
5743
  }, ar = {};
5741
5744
  Object.defineProperty(ar, "__esModule", { value: !0 });
5742
5745
  ar.testEcc = void 0;
5743
5746
  const $ = (e) => Buffer.from(e, "hex");
5744
- function $s(e) {
5747
+ function Hs(e) {
5745
5748
  Y(
5746
5749
  e.isPoint(
5747
5750
  $("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798")
@@ -5931,7 +5934,7 @@ function $s(e) {
5931
5934
  )
5932
5935
  );
5933
5936
  }
5934
- ar.testEcc = $s;
5937
+ ar.testEcc = Hs;
5935
5938
  function Y(e) {
5936
5939
  if (!e) throw new Error("ecc library invalid");
5937
5940
  }
@@ -5939,14 +5942,14 @@ Object.defineProperty(ut, "__esModule", { value: !0 });
5939
5942
  ut.ECPairFactory = ut.networks = void 0;
5940
5943
  const Or = ct;
5941
5944
  ut.networks = Or;
5942
- const _e = Cn, Hs = da, An = Ds, js = ar, vr = _e.typeforce.maybe(
5945
+ const _e = Cn, js = pa, An = $s, Ws = ar, vr = _e.typeforce.maybe(
5943
5946
  _e.typeforce.compile({
5944
5947
  compressed: _e.maybe(_e.Boolean),
5945
5948
  network: _e.maybe(_e.Network)
5946
5949
  })
5947
- ), Ws = (e) => e.length === 32 ? e : e.slice(1, 33);
5948
- function qs(e) {
5949
- (0, js.testEcc)(e);
5950
+ ), qs = (e) => e.length === 32 ? e : e.slice(1, 33);
5951
+ function Ks(e) {
5952
+ (0, Ws.testEcc)(e);
5950
5953
  function t(u) {
5951
5954
  return e.isPoint(u);
5952
5955
  }
@@ -5970,7 +5973,7 @@ function qs(e) {
5970
5973
  }
5971
5974
  function s(u) {
5972
5975
  _e.typeforce(vr, u), u === void 0 && (u = {});
5973
- const p = u.rng || Hs;
5976
+ const p = u.rng || js;
5974
5977
  let w;
5975
5978
  do
5976
5979
  w = p(32), _e.typeforce(_e.Buffer256bit, w);
@@ -6031,7 +6034,7 @@ function qs(e) {
6031
6034
  return e.verifySchnorr(p, this.publicKey.subarray(1, 33), w);
6032
6035
  }
6033
6036
  tweakFromPublicKey(p) {
6034
- const w = Ws(this.publicKey), m = e.xOnlyPointAddTweak(w, p);
6037
+ const w = qs(this.publicKey), m = e.xOnlyPointAddTweak(w, p);
6035
6038
  if (!m || m.xOnlyPubkey === null)
6036
6039
  throw new Error("Cannot tweak public key!");
6037
6040
  const v = Buffer.from([
@@ -6059,7 +6062,7 @@ function qs(e) {
6059
6062
  makeRandom: s
6060
6063
  };
6061
6064
  }
6062
- ut.ECPairFactory = qs;
6065
+ ut.ECPairFactory = Ks;
6063
6066
  (function(e) {
6064
6067
  Object.defineProperty(e, "__esModule", { value: !0 }), e.networks = e.ECPairFactory = e.default = void 0;
6065
6068
  var t = ut;
@@ -6133,7 +6136,7 @@ class Fr {
6133
6136
  return r.fromPrivateKey(c).sign(Buffer.from(ze(s), "hex")).toString("hex");
6134
6137
  }
6135
6138
  }
6136
- class tf {
6139
+ class nf {
6137
6140
  constructor(t) {
6138
6141
  this.quoteUrl = new Tn("/quote", t);
6139
6142
  }
@@ -6164,12 +6167,12 @@ class tf {
6164
6167
  }
6165
6168
  }
6166
6169
  export {
6167
- $i as EvmRelay,
6168
- Zs as Garden,
6169
- Ni as ParseOrderStatus,
6170
+ Hi as EvmRelay,
6171
+ tf as Garden,
6172
+ Ui as ParseOrderStatus,
6170
6173
  Br as ParseSwapStatus,
6171
- tf as Quote,
6174
+ nf as Quote,
6172
6175
  Fr as SecretManager,
6173
- Ui as parseAction,
6174
- Qs as switchOrAddNetwork
6176
+ Di as parseAction,
6177
+ ef as switchOrAddNetwork
6175
6178
  };