@gardenfi/core 0.2.0-beta.64 → 0.2.0-beta.65

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
@@ -1677,7 +1677,7 @@ const Ot = (e) => e.length === 64 ? e : e.slice(2), ja = (e) => {
1677
1677
  ethereum_localnet: js,
1678
1678
  arbitrum_localnet: Ws,
1679
1679
  base_sepolia: Ma
1680
- }, ll = async (e, t) => {
1680
+ }, cl = async (e, t) => {
1681
1681
  var n;
1682
1682
  const r = Wa[e];
1683
1683
  if (r)
@@ -1756,7 +1756,7 @@ const Xi = (e, t, r) => {
1756
1756
  if (t > r) return te.Expired;
1757
1757
  }
1758
1758
  return e.initiate_tx_hash ? Number(e.initiate_block_number) ? te.Initiated : te.InitiateDetected : te.Idle;
1759
- }, hl = (e, t, r) => {
1759
+ }, ll = (e, t, r) => {
1760
1760
  const n = Xi(
1761
1761
  e,
1762
1762
  t,
@@ -2703,20 +2703,7 @@ class rf {
2703
2703
  delete this.cache[`${r}_${t.create_order.create_id}`];
2704
2704
  }
2705
2705
  }
2706
- class nf {
2707
- constructor(t, r) {
2708
- this.url = new bn("/blocknumber/" + r, t);
2709
- }
2710
- async fetchBlockNumbers() {
2711
- try {
2712
- const t = await mt.get(this.url);
2713
- return fe(t);
2714
- } catch (t) {
2715
- return N("Failed to fetch block numbers", t);
2716
- }
2717
- }
2718
- }
2719
- class dl {
2706
+ class hl {
2720
2707
  constructor(t) {
2721
2708
  if (this.eventListeners = /* @__PURE__ */ new Map(), this.getOrderThreshold = 20, this.useRelay = !0, this.orderBook = new qs({
2722
2709
  url: t.orderbookURl,
@@ -2724,10 +2711,7 @@ class dl {
2724
2711
  auth: t.auth
2725
2712
  }), this.quote = t.quote, this.secretManager = t.secretManager, this.wallets = t.wallets, this.orderbookUrl = t.orderbookURl, this.auth = t.auth, this.orderExecutorCache = new rf(), !t.wallets.evmWallet.account)
2726
2713
  throw new Error("Account not found in evmWallet");
2727
- this.evmAddress = t.wallets.evmWallet.account.address, this.blockNumberFetcher = t.blockNumberFetcher && new nf(
2728
- t.blockNumberFetcher.url,
2729
- t.blockNumberFetcher.network
2730
- );
2714
+ this.evmAddress = t.wallets.evmWallet.account.address, this.blockNumberFetcher = t.blockNumberFetcher;
2731
2715
  }
2732
2716
  setUseRelay(t) {
2733
2717
  this.useRelay = t;
@@ -3118,8 +3102,21 @@ class dl {
3118
3102
  return n;
3119
3103
  }
3120
3104
  }
3105
+ class dl {
3106
+ constructor(t, r) {
3107
+ this.url = new bn("/blocknumber/" + r, t);
3108
+ }
3109
+ async fetchBlockNumbers() {
3110
+ try {
3111
+ const t = await mt.get(this.url);
3112
+ return fe(t);
3113
+ } catch (t) {
3114
+ return N("Failed to fetch block numbers", t);
3115
+ }
3116
+ }
3117
+ }
3121
3118
  var Xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3122
- function sf(e) {
3119
+ function nf(e) {
3123
3120
  if (e.__esModule) return e;
3124
3121
  var t = e.default;
3125
3122
  if (typeof t == "function") {
@@ -3203,7 +3200,7 @@ function ts(e) {
3203
3200
  function Sn(e) {
3204
3201
  return it.Nil(e) ? "" : ts(e.constructor);
3205
3202
  }
3206
- function of(e) {
3203
+ function sf(e) {
3207
3204
  return it.Function(e) ? "" : it.String(e) ? JSON.stringify(e) : e && it.Object(e) ? "" : e;
3208
3205
  }
3209
3206
  function In(e, t) {
@@ -3213,7 +3210,7 @@ function yr(e) {
3213
3210
  return it.Function(e) ? e.toJSON ? e.toJSON() : ts(e) : it.Array(e) ? "Array" : e && it.Object(e) ? "Object" : e !== void 0 ? e : "";
3214
3211
  }
3215
3212
  function rs(e, t, r) {
3216
- var n = of(t);
3213
+ var n = sf(t);
3217
3214
  return "Expected " + yr(e) + ", got" + (r !== "" ? " " + r : "") + (n !== "" ? " " + n : "");
3218
3215
  }
3219
3216
  function He(e, t, r) {
@@ -3221,19 +3218,19 @@ function He(e, t, r) {
3221
3218
  }
3222
3219
  He.prototype = Object.create(Error.prototype);
3223
3220
  He.prototype.constructor = He;
3224
- function af(e, t, r, n, i) {
3221
+ function of(e, t, r, n, i) {
3225
3222
  var a = '" of type ';
3226
3223
  return t === "key" && (a = '" with key type '), rs('property "' + yr(r) + a + yr(e), n, i);
3227
3224
  }
3228
3225
  function _t(e, t, r, n, i) {
3229
- e ? (i = i || Sn(n), this.message = af(e, r, t, n, i)) : this.message = 'Unexpected property "' + t + '"', In(this, He), this.__label = r, this.__property = t, this.__type = e, this.__value = n, this.__valueTypeName = i;
3226
+ e ? (i = i || Sn(n), this.message = of(e, r, t, n, i)) : this.message = 'Unexpected property "' + t + '"', In(this, He), this.__label = r, this.__property = t, this.__type = e, this.__value = n, this.__valueTypeName = i;
3230
3227
  }
3231
3228
  _t.prototype = Object.create(Error.prototype);
3232
3229
  _t.prototype.constructor = He;
3233
- function ff(e, t) {
3230
+ function af(e, t) {
3234
3231
  return new He(e, {}, t);
3235
3232
  }
3236
- function uf(e, t, r) {
3233
+ function ff(e, t, r) {
3237
3234
  return e instanceof _t ? (t = t + "." + e.__property, e = new _t(
3238
3235
  e.__type,
3239
3236
  t,
@@ -3251,12 +3248,12 @@ function uf(e, t, r) {
3251
3248
  var ns = {
3252
3249
  TfTypeError: He,
3253
3250
  TfPropertyTypeError: _t,
3254
- tfCustomError: ff,
3255
- tfSubError: uf,
3251
+ tfCustomError: af,
3252
+ tfSubError: ff,
3256
3253
  tfJSON: yr,
3257
3254
  getValueTypeName: Sn
3258
3255
  }, Dr, Xn;
3259
- function cf() {
3256
+ function uf() {
3260
3257
  if (Xn) return Dr;
3261
3258
  Xn = 1;
3262
3259
  var e = Bn, t = ns;
@@ -3339,7 +3336,7 @@ function cf() {
3339
3336
  }).bind(null, U);
3340
3337
  return Dr = L, Dr;
3341
3338
  }
3342
- var Jt = ns, le = Bn, De = Jt.tfJSON, is = Jt.TfTypeError, ss = Jt.TfPropertyTypeError, Nt = Jt.tfSubError, lf = Jt.getValueTypeName, $e = {
3339
+ var Jt = ns, le = Bn, De = Jt.tfJSON, is = Jt.TfTypeError, ss = Jt.TfPropertyTypeError, Nt = Jt.tfSubError, cf = Jt.getValueTypeName, $e = {
3343
3340
  arrayOf: function(t, r) {
3344
3341
  t = Ue(t), r = r || {};
3345
3342
  function n(i, a) {
@@ -3448,7 +3445,7 @@ var Jt = ns, le = Bn, De = Jt.tfJSON, is = Jt.TfTypeError, ss = Jt.TfPropertyTyp
3448
3445
  },
3449
3446
  quacksLike: function(t) {
3450
3447
  function r(n) {
3451
- return t === lf(n);
3448
+ return t === cf(n);
3452
3449
  }
3453
3450
  return r.toJSON = function() {
3454
3451
  return t;
@@ -3503,15 +3500,15 @@ for (var Je in le)
3503
3500
  we[Je] = le[Je];
3504
3501
  for (Je in $e)
3505
3502
  we[Je] = $e[Je];
3506
- var Qn = cf();
3503
+ var Qn = uf();
3507
3504
  for (Je in Qn)
3508
3505
  we[Je] = Qn[Je];
3509
3506
  we.compile = Ue;
3510
3507
  we.TfTypeError = is;
3511
3508
  we.TfPropertyTypeError = ss;
3512
- var hf = we;
3509
+ var lf = we;
3513
3510
  (function(e) {
3514
- Object.defineProperty(e, "__esModule", { value: !0 }), e.maybe = e.Boolean = e.Array = e.Buffer256bit = e.Network = e.typeforce = void 0, e.typeforce = hf, e.Network = e.typeforce.compile({
3511
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.maybe = e.Boolean = e.Array = e.Buffer256bit = e.Network = e.typeforce = void 0, e.typeforce = lf, e.Network = e.typeforce.compile({
3515
3512
  messagePrefix: e.typeforce.oneOf(
3516
3513
  e.typeforce.Buffer,
3517
3514
  e.typeforce.String
@@ -3526,11 +3523,11 @@ var hf = we;
3526
3523
  }), e.Buffer256bit = e.typeforce.BufferN(32), e.Array = e.typeforce.Array, e.Boolean = e.typeforce.Boolean, e.maybe = e.typeforce.maybe;
3527
3524
  })(es);
3528
3525
  var on = { exports: {} }, an = { exports: {} }, Rt = {}, Er = {};
3529
- Er.byteLength = bf;
3530
- Er.toByteArray = gf;
3531
- Er.fromByteArray = wf;
3532
- var Oe = [], Ae = [], df = typeof Uint8Array < "u" ? Uint8Array : Array, $r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3533
- for (var yt = 0, pf = $r.length; yt < pf; ++yt)
3526
+ Er.byteLength = pf;
3527
+ Er.toByteArray = yf;
3528
+ Er.fromByteArray = _f;
3529
+ var Oe = [], Ae = [], hf = typeof Uint8Array < "u" ? Uint8Array : Array, $r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3530
+ for (var yt = 0, df = $r.length; yt < df; ++yt)
3534
3531
  Oe[yt] = $r[yt], Ae[$r.charCodeAt(yt)] = yt;
3535
3532
  Ae[45] = 62;
3536
3533
  Ae[95] = 63;
@@ -3543,30 +3540,30 @@ function os(e) {
3543
3540
  var n = r === t ? 0 : 4 - r % 4;
3544
3541
  return [r, n];
3545
3542
  }
3546
- function bf(e) {
3543
+ function pf(e) {
3547
3544
  var t = os(e), r = t[0], n = t[1];
3548
3545
  return (r + n) * 3 / 4 - n;
3549
3546
  }
3550
- function yf(e, t, r) {
3547
+ function bf(e, t, r) {
3551
3548
  return (t + r) * 3 / 4 - r;
3552
3549
  }
3553
- function gf(e) {
3554
- var t, r = os(e), n = r[0], i = r[1], a = new df(yf(e, n, i)), f = 0, u = i > 0 ? n - 4 : n, l;
3550
+ function yf(e) {
3551
+ var t, r = os(e), n = r[0], i = r[1], a = new hf(bf(e, n, i)), f = 0, u = i > 0 ? n - 4 : n, l;
3555
3552
  for (l = 0; l < u; l += 4)
3556
3553
  t = Ae[e.charCodeAt(l)] << 18 | Ae[e.charCodeAt(l + 1)] << 12 | Ae[e.charCodeAt(l + 2)] << 6 | Ae[e.charCodeAt(l + 3)], a[f++] = t >> 16 & 255, a[f++] = t >> 8 & 255, a[f++] = t & 255;
3557
3554
  return i === 2 && (t = Ae[e.charCodeAt(l)] << 2 | Ae[e.charCodeAt(l + 1)] >> 4, a[f++] = t & 255), i === 1 && (t = Ae[e.charCodeAt(l)] << 10 | Ae[e.charCodeAt(l + 1)] << 4 | Ae[e.charCodeAt(l + 2)] >> 2, a[f++] = t >> 8 & 255, a[f++] = t & 255), a;
3558
3555
  }
3559
- function mf(e) {
3556
+ function gf(e) {
3560
3557
  return Oe[e >> 18 & 63] + Oe[e >> 12 & 63] + Oe[e >> 6 & 63] + Oe[e & 63];
3561
3558
  }
3562
- function _f(e, t, r) {
3559
+ function mf(e, t, r) {
3563
3560
  for (var n, i = [], a = t; a < r; a += 3)
3564
- n = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (e[a + 2] & 255), i.push(mf(n));
3561
+ n = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (e[a + 2] & 255), i.push(gf(n));
3565
3562
  return i.join("");
3566
3563
  }
3567
- function wf(e) {
3564
+ function _f(e) {
3568
3565
  for (var t, r = e.length, n = r % 3, i = [], a = 16383, f = 0, u = r - n; f < u; f += a)
3569
- i.push(_f(e, f, f + a > u ? u : f + a));
3566
+ i.push(mf(e, f, f + a > u ? u : f + a));
3570
3567
  return n === 1 ? (t = e[r - 1], i.push(
3571
3568
  Oe[t >> 2] + Oe[t << 4 & 63] + "=="
3572
3569
  )) : n === 2 && (t = (e[r - 2] << 8) + e[r - 1], i.push(
@@ -4572,16 +4569,16 @@ An.write = function(e, t, r, n, i, a) {
4572
4569
  return r.SlowBuffer(f);
4573
4570
  };
4574
4571
  })(an, an.exports);
4575
- var Ee = an.exports, Hr = 65536, xf = 4294967295;
4576
- function vf() {
4572
+ var Ee = an.exports, Hr = 65536, wf = 4294967295;
4573
+ function xf() {
4577
4574
  throw new Error(`Secure random number generation is not supported by this browser.
4578
4575
  Use Chrome, Firefox or Internet Explorer 11`);
4579
4576
  }
4580
- var Ef = Ee.Buffer, gr = Xe.crypto || Xe.msCrypto;
4581
- gr && gr.getRandomValues ? on.exports = Bf : on.exports = vf;
4582
- function Bf(e, t) {
4583
- if (e > xf) throw new RangeError("requested too many random bytes");
4584
- var r = Ef.allocUnsafe(e);
4577
+ var vf = Ee.Buffer, gr = Xe.crypto || Xe.msCrypto;
4578
+ gr && gr.getRandomValues ? on.exports = Ef : on.exports = xf;
4579
+ function Ef(e, t) {
4580
+ if (e > wf) throw new RangeError("requested too many random bytes");
4581
+ var r = vf.allocUnsafe(e);
4585
4582
  if (e > 0)
4586
4583
  if (e > Hr)
4587
4584
  for (var n = 0; n < e; n += Hr)
@@ -4592,7 +4589,7 @@ function Bf(e, t) {
4592
4589
  t(null, r);
4593
4590
  }) : r;
4594
4591
  }
4595
- var Sf = on.exports, fn = { exports: {} };
4592
+ var Bf = on.exports, fn = { exports: {} };
4596
4593
  typeof Object.create == "function" ? fn.exports = function(t, r) {
4597
4594
  r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
4598
4595
  constructor: {
@@ -4618,7 +4615,7 @@ wt && typeof wt.ownKeys == "function" ? ur = wt.ownKeys : Object.getOwnPropertyS
4618
4615
  } : ur = function(t) {
4619
4616
  return Object.getOwnPropertyNames(t);
4620
4617
  };
4621
- function If(e) {
4618
+ function Sf(e) {
4622
4619
  console && console.warn && console.warn(e);
4623
4620
  }
4624
4621
  var as = Number.isNaN || function(t) {
@@ -4628,7 +4625,7 @@ function K() {
4628
4625
  K.init.call(this);
4629
4626
  }
4630
4627
  Rn.exports = K;
4631
- Rn.exports.once = Pf;
4628
+ Rn.exports.once = Tf;
4632
4629
  K.EventEmitter = K;
4633
4630
  K.prototype._events = void 0;
4634
4631
  K.prototype._eventsCount = 0;
@@ -4698,7 +4695,7 @@ function us(e, t, r, n) {
4698
4695
  else if (typeof f == "function" ? f = a[t] = n ? [r, f] : [f, r] : n ? f.unshift(r) : f.push(r), i = fs(e), i > 0 && f.length > i && !f.warned) {
4699
4696
  f.warned = !0;
4700
4697
  var u = new Error("Possible EventEmitter memory leak detected. " + f.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
4701
- u.name = "MaxListenersExceededWarning", u.emitter = e, u.type = t, u.count = f.length, If(u);
4698
+ u.name = "MaxListenersExceededWarning", u.emitter = e, u.type = t, u.count = f.length, Sf(u);
4702
4699
  }
4703
4700
  return e;
4704
4701
  }
@@ -4709,12 +4706,12 @@ K.prototype.on = K.prototype.addListener;
4709
4706
  K.prototype.prependListener = function(t, r) {
4710
4707
  return us(this, t, r, !0);
4711
4708
  };
4712
- function Af() {
4709
+ function If() {
4713
4710
  if (!this.fired)
4714
4711
  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);
4715
4712
  }
4716
4713
  function cs(e, t, r) {
4717
- var n = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, i = Af.bind(n);
4714
+ var n = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, i = If.bind(n);
4718
4715
  return i.listener = r, n.wrapFn = i, i;
4719
4716
  }
4720
4717
  K.prototype.once = function(t, r) {
@@ -4739,7 +4736,7 @@ K.prototype.removeListener = function(t, r) {
4739
4736
  }
4740
4737
  if (a < 0)
4741
4738
  return this;
4742
- a === 0 ? n.shift() : Rf(n, a), n.length === 1 && (i[t] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", t, u || r);
4739
+ a === 0 ? n.shift() : Af(n, a), n.length === 1 && (i[t] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", t, u || r);
4743
4740
  }
4744
4741
  return this;
4745
4742
  };
@@ -4768,7 +4765,7 @@ function ls(e, t, r) {
4768
4765
  if (n === void 0)
4769
4766
  return [];
4770
4767
  var i = n[t];
4771
- return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? Tf(i) : ds(i, i.length);
4768
+ return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? Rf(i) : ds(i, i.length);
4772
4769
  }
4773
4770
  K.prototype.listeners = function(t) {
4774
4771
  return ls(this, t, !0);
@@ -4799,17 +4796,17 @@ function ds(e, t) {
4799
4796
  r[n] = e[n];
4800
4797
  return r;
4801
4798
  }
4802
- function Rf(e, t) {
4799
+ function Af(e, t) {
4803
4800
  for (; t + 1 < e.length; t++)
4804
4801
  e[t] = e[t + 1];
4805
4802
  e.pop();
4806
4803
  }
4807
- function Tf(e) {
4804
+ function Rf(e) {
4808
4805
  for (var t = new Array(e.length), r = 0; r < t.length; ++r)
4809
4806
  t[r] = e[r].listener || e[r];
4810
4807
  return t;
4811
4808
  }
4812
- function Pf(e, t) {
4809
+ function Tf(e, t) {
4813
4810
  return new Promise(function(r, n) {
4814
4811
  function i(f) {
4815
4812
  e.removeListener(t, a), n(f);
@@ -4817,10 +4814,10 @@ function Pf(e, t) {
4817
4814
  function a() {
4818
4815
  typeof e.removeListener == "function" && e.removeListener("error", i), r([].slice.call(arguments));
4819
4816
  }
4820
- ps(e, t, a, { once: !0 }), t !== "error" && Cf(e, i, { once: !0 });
4817
+ ps(e, t, a, { once: !0 }), t !== "error" && Pf(e, i, { once: !0 });
4821
4818
  });
4822
4819
  }
4823
- function Cf(e, t, r) {
4820
+ function Pf(e, t, r) {
4824
4821
  typeof e.on == "function" && ps(e, "error", t, r);
4825
4822
  }
4826
4823
  function ps(e, t, r, n) {
@@ -4834,12 +4831,12 @@ function ps(e, t, r, n) {
4834
4831
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
4835
4832
  }
4836
4833
  var bs = Rn.exports, ys = bs.EventEmitter;
4837
- const Lf = {}, kf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4834
+ const Cf = {}, Lf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4838
4835
  __proto__: null,
4839
- default: Lf
4840
- }, Symbol.toStringTag, { value: "Module" })), Tn = /* @__PURE__ */ sf(kf);
4836
+ default: Cf
4837
+ }, Symbol.toStringTag, { value: "Module" })), Tn = /* @__PURE__ */ nf(Lf);
4841
4838
  var zr, ti;
4842
- function Ff() {
4839
+ function kf() {
4843
4840
  if (ti) return zr;
4844
4841
  ti = 1;
4845
4842
  function e(B, P) {
@@ -5003,7 +5000,7 @@ function Ff() {
5003
5000
  }]), B;
5004
5001
  }(), zr;
5005
5002
  }
5006
- function Uf(e, t) {
5003
+ function Ff(e, t) {
5007
5004
  var r = this, n = this._readableState && this._readableState.destroyed, i = this._writableState && this._writableState.destroyed;
5008
5005
  return n || i ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process.nextTick(cn, this, e)) : process.nextTick(cn, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(a) {
5009
5006
  !t && a ? r._writableState ? r._writableState.errorEmitted ? process.nextTick(cr, r) : (r._writableState.errorEmitted = !0, process.nextTick(ri, r, a)) : process.nextTick(ri, r, a) : t ? (process.nextTick(cr, r), t(a)) : process.nextTick(cr, r);
@@ -5015,22 +5012,22 @@ function ri(e, t) {
5015
5012
  function cr(e) {
5016
5013
  e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close");
5017
5014
  }
5018
- function Of() {
5015
+ function Uf() {
5019
5016
  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);
5020
5017
  }
5021
5018
  function cn(e, t) {
5022
5019
  e.emit("error", t);
5023
5020
  }
5024
- function Nf(e, t) {
5021
+ function Of(e, t) {
5025
5022
  var r = e._readableState, n = e._writableState;
5026
5023
  r && r.autoDestroy || n && n.autoDestroy ? e.destroy(t) : e.emit("error", t);
5027
5024
  }
5028
5025
  var gs = {
5029
- destroy: Uf,
5030
- undestroy: Of,
5031
- errorOrDestroy: Nf
5026
+ destroy: Ff,
5027
+ undestroy: Uf,
5028
+ errorOrDestroy: Of
5032
5029
  }, ct = {};
5033
- function Mf(e, t) {
5030
+ function Nf(e, t) {
5034
5031
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
5035
5032
  }
5036
5033
  var ms = {};
@@ -5040,7 +5037,7 @@ function Re(e, t, r) {
5040
5037
  return typeof t == "string" ? t : t(a, f, u);
5041
5038
  }
5042
5039
  var i = /* @__PURE__ */ function(a) {
5043
- Mf(f, a);
5040
+ Nf(f, a);
5044
5041
  function f(u, l, b) {
5045
5042
  return a.call(this, n(u, l, b)) || this;
5046
5043
  }
@@ -5057,13 +5054,13 @@ function ni(e, t) {
5057
5054
  } else
5058
5055
  return "of ".concat(t, " ").concat(String(e));
5059
5056
  }
5060
- function Df(e, t, r) {
5057
+ function Mf(e, t, r) {
5061
5058
  return e.substr(0, t.length) === t;
5062
5059
  }
5063
- function $f(e, t, r) {
5060
+ function Df(e, t, r) {
5064
5061
  return (r === void 0 || r > e.length) && (r = e.length), e.substring(r - t.length, r) === t;
5065
5062
  }
5066
- function Hf(e, t, r) {
5063
+ function $f(e, t, r) {
5067
5064
  return typeof r != "number" && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1;
5068
5065
  }
5069
5066
  Re("ERR_INVALID_OPT_VALUE", function(e, t) {
@@ -5071,12 +5068,12 @@ Re("ERR_INVALID_OPT_VALUE", function(e, t) {
5071
5068
  }, TypeError);
5072
5069
  Re("ERR_INVALID_ARG_TYPE", function(e, t, r) {
5073
5070
  var n;
5074
- typeof t == "string" && Df(t, "not ") ? (n = "must not be", t = t.replace(/^not /, "")) : n = "must be";
5071
+ typeof t == "string" && Mf(t, "not ") ? (n = "must not be", t = t.replace(/^not /, "")) : n = "must be";
5075
5072
  var i;
5076
- if ($f(e, " argument"))
5073
+ if (Df(e, " argument"))
5077
5074
  i = "The ".concat(e, " ").concat(n, " ").concat(ni(t, "type"));
5078
5075
  else {
5079
- var a = Hf(e, ".") ? "property" : "argument";
5076
+ var a = $f(e, ".") ? "property" : "argument";
5080
5077
  i = 'The "'.concat(e, '" ').concat(a, " ").concat(n, " ").concat(ni(t, "type"));
5081
5078
  }
5082
5079
  return i += ". Received type ".concat(typeof r), i;
@@ -5098,25 +5095,25 @@ Re("ERR_UNKNOWN_ENCODING", function(e) {
5098
5095
  }, TypeError);
5099
5096
  Re("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
5100
5097
  ct.codes = ms;
5101
- var zf = ct.codes.ERR_INVALID_OPT_VALUE;
5102
- function Gf(e, t, r) {
5098
+ var Hf = ct.codes.ERR_INVALID_OPT_VALUE;
5099
+ function zf(e, t, r) {
5103
5100
  return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null;
5104
5101
  }
5105
- function jf(e, t, r, n) {
5106
- var i = Gf(t, n, r);
5102
+ function Gf(e, t, r, n) {
5103
+ var i = zf(t, n, r);
5107
5104
  if (i != null) {
5108
5105
  if (!(isFinite(i) && Math.floor(i) === i) || i < 0) {
5109
5106
  var a = n ? r : "highWaterMark";
5110
- throw new zf(a, i);
5107
+ throw new Hf(a, i);
5111
5108
  }
5112
5109
  return Math.floor(i);
5113
5110
  }
5114
5111
  return e.objectMode ? 16 : 16 * 1024;
5115
5112
  }
5116
5113
  var _s = {
5117
- getHighWaterMark: jf
5118
- }, Wf = qf;
5119
- function qf(e, t) {
5114
+ getHighWaterMark: Gf
5115
+ }, jf = Wf;
5116
+ function Wf(e, t) {
5120
5117
  if (Gr("noDeprecation"))
5121
5118
  return e;
5122
5119
  var r = !1;
@@ -5152,7 +5149,7 @@ function ws() {
5152
5149
  var t;
5153
5150
  M.WritableState = S;
5154
5151
  var r = {
5155
- deprecate: Wf
5152
+ deprecate: jf
5156
5153
  }, n = ys, i = Rt.Buffer, a = (typeof Xe < "u" ? Xe : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
5157
5154
  };
5158
5155
  function f(w) {
@@ -5448,7 +5445,7 @@ var mr = {}, Pn = Ee.Buffer, oi = Pn.isEncoding || function(e) {
5448
5445
  return !1;
5449
5446
  }
5450
5447
  };
5451
- function Vf(e) {
5448
+ function qf(e) {
5452
5449
  if (!e) return "utf8";
5453
5450
  for (var t; ; )
5454
5451
  switch (e) {
@@ -5472,27 +5469,27 @@ function Vf(e) {
5472
5469
  e = ("" + e).toLowerCase(), t = !0;
5473
5470
  }
5474
5471
  }
5475
- function Kf(e) {
5476
- var t = Vf(e);
5472
+ function Vf(e) {
5473
+ var t = qf(e);
5477
5474
  if (typeof t != "string" && (Pn.isEncoding === oi || !oi(e))) throw new Error("Unknown encoding: " + e);
5478
5475
  return t || e;
5479
5476
  }
5480
5477
  mr.StringDecoder = Xt;
5481
5478
  function Xt(e) {
5482
- this.encoding = Kf(e);
5479
+ this.encoding = Vf(e);
5483
5480
  var t;
5484
5481
  switch (this.encoding) {
5485
5482
  case "utf16le":
5486
- this.text = eu, this.end = tu, t = 4;
5483
+ this.text = Zf, this.end = eu, t = 4;
5487
5484
  break;
5488
5485
  case "utf8":
5489
- this.fillLast = Xf, t = 4;
5486
+ this.fillLast = Jf, t = 4;
5490
5487
  break;
5491
5488
  case "base64":
5492
- this.text = ru, this.end = nu, t = 3;
5489
+ this.text = tu, this.end = ru, t = 3;
5493
5490
  break;
5494
5491
  default:
5495
- this.write = iu, this.end = su;
5492
+ this.write = nu, this.end = iu;
5496
5493
  return;
5497
5494
  }
5498
5495
  this.lastNeed = 0, this.lastTotal = 0, this.lastChar = Pn.allocUnsafe(t);
@@ -5507,8 +5504,8 @@ Xt.prototype.write = function(e) {
5507
5504
  r = 0;
5508
5505
  return r < e.length ? t ? t + this.text(e, r) : this.text(e, r) : t || "";
5509
5506
  };
5510
- Xt.prototype.end = Zf;
5511
- Xt.prototype.text = Qf;
5507
+ Xt.prototype.end = Qf;
5508
+ Xt.prototype.text = Xf;
5512
5509
  Xt.prototype.fillLast = function(e) {
5513
5510
  if (this.lastNeed <= e.length)
5514
5511
  return e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
@@ -5517,13 +5514,13 @@ Xt.prototype.fillLast = function(e) {
5517
5514
  function qr(e) {
5518
5515
  return e <= 127 ? 0 : e >> 5 === 6 ? 2 : e >> 4 === 14 ? 3 : e >> 3 === 30 ? 4 : e >> 6 === 2 ? -1 : -2;
5519
5516
  }
5520
- function Yf(e, t, r) {
5517
+ function Kf(e, t, r) {
5521
5518
  var n = t.length - 1;
5522
5519
  if (n < r) return 0;
5523
5520
  var i = qr(t[n]);
5524
5521
  return i >= 0 ? (i > 0 && (e.lastNeed = i - 1), i) : --n < r || i === -2 ? 0 : (i = qr(t[n]), i >= 0 ? (i > 0 && (e.lastNeed = i - 2), i) : --n < r || i === -2 ? 0 : (i = qr(t[n]), i >= 0 ? (i > 0 && (i === 2 ? i = 0 : e.lastNeed = i - 3), i) : 0));
5525
5522
  }
5526
- function Jf(e, t, r) {
5523
+ function Yf(e, t, r) {
5527
5524
  if ((t[0] & 192) !== 128)
5528
5525
  return e.lastNeed = 0, "�";
5529
5526
  if (e.lastNeed > 1 && t.length > 1) {
@@ -5533,25 +5530,25 @@ function Jf(e, t, r) {
5533
5530
  return e.lastNeed = 2, "�";
5534
5531
  }
5535
5532
  }
5536
- function Xf(e) {
5537
- var t = this.lastTotal - this.lastNeed, r = Jf(this, e);
5533
+ function Jf(e) {
5534
+ var t = this.lastTotal - this.lastNeed, r = Yf(this, e);
5538
5535
  if (r !== void 0) return r;
5539
5536
  if (this.lastNeed <= e.length)
5540
5537
  return e.copy(this.lastChar, t, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
5541
5538
  e.copy(this.lastChar, t, 0, e.length), this.lastNeed -= e.length;
5542
5539
  }
5543
- function Qf(e, t) {
5544
- var r = Yf(this, e, t);
5540
+ function Xf(e, t) {
5541
+ var r = Kf(this, e, t);
5545
5542
  if (!this.lastNeed) return e.toString("utf8", t);
5546
5543
  this.lastTotal = r;
5547
5544
  var n = e.length - (r - this.lastNeed);
5548
5545
  return e.copy(this.lastChar, 0, n), e.toString("utf8", t, n);
5549
5546
  }
5550
- function Zf(e) {
5547
+ function Qf(e) {
5551
5548
  var t = e && e.length ? this.write(e) : "";
5552
5549
  return this.lastNeed ? t + "�" : t;
5553
5550
  }
5554
- function eu(e, t) {
5551
+ function Zf(e, t) {
5555
5552
  if ((e.length - t) % 2 === 0) {
5556
5553
  var r = e.toString("utf16le", t);
5557
5554
  if (r) {
@@ -5563,7 +5560,7 @@ function eu(e, t) {
5563
5560
  }
5564
5561
  return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = e[e.length - 1], e.toString("utf16le", t, e.length - 1);
5565
5562
  }
5566
- function tu(e) {
5563
+ function eu(e) {
5567
5564
  var t = e && e.length ? this.write(e) : "";
5568
5565
  if (this.lastNeed) {
5569
5566
  var r = this.lastTotal - this.lastNeed;
@@ -5571,22 +5568,22 @@ function tu(e) {
5571
5568
  }
5572
5569
  return t;
5573
5570
  }
5574
- function ru(e, t) {
5571
+ function tu(e, t) {
5575
5572
  var r = (e.length - t) % 3;
5576
5573
  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));
5577
5574
  }
5578
- function nu(e) {
5575
+ function ru(e) {
5579
5576
  var t = e && e.length ? this.write(e) : "";
5580
5577
  return this.lastNeed ? t + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t;
5581
5578
  }
5582
- function iu(e) {
5579
+ function nu(e) {
5583
5580
  return e.toString(this.encoding);
5584
5581
  }
5585
- function su(e) {
5582
+ function iu(e) {
5586
5583
  return e && e.length ? this.write(e) : "";
5587
5584
  }
5588
5585
  var ai = ct.codes.ERR_STREAM_PREMATURE_CLOSE;
5589
- function ou(e) {
5586
+ function su(e) {
5590
5587
  var t = !1;
5591
5588
  return function() {
5592
5589
  if (!t) {
@@ -5597,14 +5594,14 @@ function ou(e) {
5597
5594
  }
5598
5595
  };
5599
5596
  }
5600
- function au() {
5597
+ function ou() {
5601
5598
  }
5602
- function fu(e) {
5599
+ function au(e) {
5603
5600
  return e.setHeader && typeof e.abort == "function";
5604
5601
  }
5605
5602
  function xs(e, t, r) {
5606
5603
  if (typeof t == "function") return xs(e, null, t);
5607
- t || (t = {}), r = ou(r || au);
5604
+ t || (t = {}), r = su(r || ou);
5608
5605
  var n = t.readable || t.readable !== !1 && e.readable, i = t.writable || t.writable !== !1 && e.writable, a = function() {
5609
5606
  e.writable || u();
5610
5607
  }, f = e._writableState && e._writableState.finished, u = function() {
@@ -5622,12 +5619,12 @@ function xs(e, t, r) {
5622
5619
  }, v = function() {
5623
5620
  e.req.on("finish", u);
5624
5621
  };
5625
- return fu(e) ? (e.on("complete", u), e.on("abort", m), e.req ? v() : e.on("request", v)) : i && !e._writableState && (e.on("end", a), e.on("close", a)), e.on("end", b), e.on("finish", u), t.error !== !1 && e.on("error", g), e.on("close", m), function() {
5622
+ return au(e) ? (e.on("complete", u), e.on("abort", m), e.req ? v() : e.on("request", v)) : i && !e._writableState && (e.on("end", a), e.on("close", a)), e.on("end", b), e.on("finish", u), t.error !== !1 && e.on("error", g), e.on("close", m), function() {
5626
5623
  e.removeListener("complete", u), e.removeListener("abort", m), e.removeListener("request", v), e.req && e.req.removeListener("finish", u), e.removeListener("end", a), e.removeListener("close", a), e.removeListener("finish", u), e.removeListener("end", b), e.removeListener("error", g), e.removeListener("close", m);
5627
5624
  };
5628
5625
  }
5629
5626
  var Cn = xs, Vr, fi;
5630
- function uu() {
5627
+ function fu() {
5631
5628
  if (fi) return Vr;
5632
5629
  fi = 1;
5633
5630
  var e;
@@ -5753,7 +5750,7 @@ function uu() {
5753
5750
  return Vr = F, Vr;
5754
5751
  }
5755
5752
  var Kr, ui;
5756
- function cu() {
5753
+ function uu() {
5757
5754
  return ui || (ui = 1, Kr = function() {
5758
5755
  throw new Error("Readable.from is not available in the browser");
5759
5756
  }), Kr;
@@ -5777,7 +5774,7 @@ function vs() {
5777
5774
  var u = Tn, l;
5778
5775
  u && u.debuglog ? l = u.debuglog("stream") : l = function() {
5779
5776
  };
5780
- var b = Ff(), g = gs, m = _s, v = m.getHighWaterMark, I = ct.codes, B = I.ERR_INVALID_ARG_TYPE, P = I.ERR_STREAM_PUSH_AFTER_EOF, T = I.ERR_METHOD_NOT_IMPLEMENTED, C = I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, F, k, L;
5777
+ var b = kf(), g = gs, m = _s, v = m.getHighWaterMark, I = ct.codes, B = I.ERR_INVALID_ARG_TYPE, P = I.ERR_STREAM_PUSH_AFTER_EOF, T = I.ERR_METHOD_NOT_IMPLEMENTED, C = I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, F, k, L;
5781
5778
  ge($, r);
5782
5779
  var U = g.errorOrDestroy, S = ["error", "close", "destroy", "pause", "resume"];
5783
5780
  function z(d, p, A) {
@@ -6034,7 +6031,7 @@ function vs() {
6034
6031
  l("wrapped _read", V), O && (O = !1, d.resume());
6035
6032
  }, this;
6036
6033
  }, typeof Symbol == "function" && ($.prototype[Symbol.asyncIterator] = function() {
6037
- return k === void 0 && (k = uu()), k(this);
6034
+ return k === void 0 && (k = fu()), k(this);
6038
6035
  }), Object.defineProperty($.prototype, "readableHighWaterMark", {
6039
6036
  // making it explicit this property is not enumerable
6040
6037
  // because otherwise some prototype manipulation in
@@ -6087,7 +6084,7 @@ function vs() {
6087
6084
  }
6088
6085
  }
6089
6086
  typeof Symbol == "function" && ($.from = function(d, p) {
6090
- return L === void 0 && (L = cu()), L($, d, p);
6087
+ return L === void 0 && (L = uu()), L($, d, p);
6091
6088
  });
6092
6089
  function G(d, p) {
6093
6090
  for (var A = 0, O = d.length; A < O; A++)
@@ -6096,14 +6093,14 @@ function vs() {
6096
6093
  }
6097
6094
  return Yr;
6098
6095
  }
6099
- var Es = ze, Sr = ct.codes, lu = Sr.ERR_METHOD_NOT_IMPLEMENTED, hu = Sr.ERR_MULTIPLE_CALLBACK, du = Sr.ERR_TRANSFORM_ALREADY_TRANSFORMING, pu = Sr.ERR_TRANSFORM_WITH_LENGTH_0, Ir = St();
6096
+ var Es = ze, Sr = ct.codes, cu = Sr.ERR_METHOD_NOT_IMPLEMENTED, lu = Sr.ERR_MULTIPLE_CALLBACK, hu = Sr.ERR_TRANSFORM_ALREADY_TRANSFORMING, du = Sr.ERR_TRANSFORM_WITH_LENGTH_0, Ir = St();
6100
6097
  ge(ze, Ir);
6101
- function bu(e, t) {
6098
+ function pu(e, t) {
6102
6099
  var r = this._transformState;
6103
6100
  r.transforming = !1;
6104
6101
  var n = r.writecb;
6105
6102
  if (n === null)
6106
- return this.emit("error", new hu());
6103
+ return this.emit("error", new lu());
6107
6104
  r.writechunk = null, r.writecb = null, t != null && this.push(t), n(e);
6108
6105
  var i = this._readableState;
6109
6106
  i.reading = !1, (i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
@@ -6111,15 +6108,15 @@ function bu(e, t) {
6111
6108
  function ze(e) {
6112
6109
  if (!(this instanceof ze)) return new ze(e);
6113
6110
  Ir.call(this, e), this._transformState = {
6114
- afterTransform: bu.bind(this),
6111
+ afterTransform: pu.bind(this),
6115
6112
  needTransform: !1,
6116
6113
  transforming: !1,
6117
6114
  writecb: null,
6118
6115
  writechunk: null,
6119
6116
  writeencoding: null
6120
- }, 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", yu);
6117
+ }, 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", bu);
6121
6118
  }
6122
- function yu() {
6119
+ function bu() {
6123
6120
  var e = this;
6124
6121
  typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, r) {
6125
6122
  li(e, t, r);
@@ -6129,7 +6126,7 @@ ze.prototype.push = function(e, t) {
6129
6126
  return this._transformState.needTransform = !1, Ir.prototype.push.call(this, e, t);
6130
6127
  };
6131
6128
  ze.prototype._transform = function(e, t, r) {
6132
- r(new lu("_transform()"));
6129
+ r(new cu("_transform()"));
6133
6130
  };
6134
6131
  ze.prototype._write = function(e, t, r) {
6135
6132
  var n = this._transformState;
@@ -6149,11 +6146,11 @@ ze.prototype._destroy = function(e, t) {
6149
6146
  };
6150
6147
  function li(e, t, r) {
6151
6148
  if (t) return e.emit("error", t);
6152
- if (r != null && e.push(r), e._writableState.length) throw new pu();
6153
- if (e._transformState.transforming) throw new du();
6149
+ if (r != null && e.push(r), e._writableState.length) throw new du();
6150
+ if (e._transformState.transforming) throw new hu();
6154
6151
  return e.push(null);
6155
6152
  }
6156
- var gu = Wt, Bs = Es;
6153
+ var yu = Wt, Bs = Es;
6157
6154
  ge(Wt, Bs);
6158
6155
  function Wt(e) {
6159
6156
  if (!(this instanceof Wt)) return new Wt(e);
@@ -6163,21 +6160,21 @@ Wt.prototype._transform = function(e, t, r) {
6163
6160
  r(null, e);
6164
6161
  };
6165
6162
  var Jr;
6166
- function mu(e) {
6163
+ function gu(e) {
6167
6164
  var t = !1;
6168
6165
  return function() {
6169
6166
  t || (t = !0, e.apply(void 0, arguments));
6170
6167
  };
6171
6168
  }
6172
- var Ss = ct.codes, _u = Ss.ERR_MISSING_ARGS, wu = Ss.ERR_STREAM_DESTROYED;
6169
+ var Ss = ct.codes, mu = Ss.ERR_MISSING_ARGS, _u = Ss.ERR_STREAM_DESTROYED;
6173
6170
  function hi(e) {
6174
6171
  if (e) throw e;
6175
6172
  }
6176
- function xu(e) {
6173
+ function wu(e) {
6177
6174
  return e.setHeader && typeof e.abort == "function";
6178
6175
  }
6179
- function vu(e, t, r, n) {
6180
- n = mu(n);
6176
+ function xu(e, t, r, n) {
6177
+ n = gu(n);
6181
6178
  var i = !1;
6182
6179
  e.on("close", function() {
6183
6180
  i = !0;
@@ -6191,48 +6188,48 @@ function vu(e, t, r, n) {
6191
6188
  var a = !1;
6192
6189
  return function(f) {
6193
6190
  if (!i && !a) {
6194
- if (a = !0, xu(e)) return e.abort();
6191
+ if (a = !0, wu(e)) return e.abort();
6195
6192
  if (typeof e.destroy == "function") return e.destroy();
6196
- n(f || new wu("pipe"));
6193
+ n(f || new _u("pipe"));
6197
6194
  }
6198
6195
  };
6199
6196
  }
6200
6197
  function di(e) {
6201
6198
  e();
6202
6199
  }
6203
- function Eu(e, t) {
6200
+ function vu(e, t) {
6204
6201
  return e.pipe(t);
6205
6202
  }
6206
- function Bu(e) {
6203
+ function Eu(e) {
6207
6204
  return !e.length || typeof e[e.length - 1] != "function" ? hi : e.pop();
6208
6205
  }
6209
- function Su() {
6206
+ function Bu() {
6210
6207
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
6211
6208
  t[r] = arguments[r];
6212
- var n = Bu(t);
6209
+ var n = Eu(t);
6213
6210
  if (Array.isArray(t[0]) && (t = t[0]), t.length < 2)
6214
- throw new _u("streams");
6211
+ throw new mu("streams");
6215
6212
  var i, a = t.map(function(f, u) {
6216
6213
  var l = u < t.length - 1, b = u > 0;
6217
- return vu(f, l, b, function(g) {
6214
+ return xu(f, l, b, function(g) {
6218
6215
  i || (i = g), g && a.forEach(di), !l && (a.forEach(di), n(i));
6219
6216
  });
6220
6217
  });
6221
- return t.reduce(Eu);
6218
+ return t.reduce(vu);
6222
6219
  }
6223
- var Iu = Su;
6220
+ var Su = Bu;
6224
6221
  (function(e, t) {
6225
- t = e.exports = vs(), t.Stream = t, t.Readable = t, t.Writable = ws(), t.Duplex = St(), t.Transform = Es, t.PassThrough = gu, t.finished = Cn, t.pipeline = Iu;
6222
+ t = e.exports = vs(), t.Stream = t, t.Readable = t, t.Writable = ws(), t.Duplex = St(), t.Transform = Es, t.PassThrough = yu, t.finished = Cn, t.pipeline = Su;
6226
6223
  })(un, un.exports);
6227
- var Au = un.exports, _r = Ee.Buffer, Is = Au.Transform, Ru = ge;
6228
- function Tu(e, t) {
6224
+ var Iu = un.exports, _r = Ee.Buffer, Is = Iu.Transform, Au = ge;
6225
+ function Ru(e, t) {
6229
6226
  if (!_r.isBuffer(e) && typeof e != "string")
6230
6227
  throw new TypeError(t + " must be a string or a buffer");
6231
6228
  }
6232
6229
  function Ze(e) {
6233
6230
  Is.call(this), this._block = _r.allocUnsafe(e), this._blockSize = e, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1;
6234
6231
  }
6235
- Ru(Ze, Is);
6232
+ Au(Ze, Is);
6236
6233
  Ze.prototype._transform = function(e, t, r) {
6237
6234
  var n = null;
6238
6235
  try {
@@ -6252,7 +6249,7 @@ Ze.prototype._flush = function(e) {
6252
6249
  e(t);
6253
6250
  };
6254
6251
  Ze.prototype.update = function(e, t) {
6255
- if (Tu(e, "Data"), this._finalized) throw new Error("Digest already called");
6252
+ if (Ru(e, "Data"), this._finalized) throw new Error("Digest already called");
6256
6253
  _r.isBuffer(e) || (e = _r.from(e, t));
6257
6254
  for (var r = this._block, n = 0; this._blockOffset + e.length - n >= this._blockSize; ) {
6258
6255
  for (var i = this._blockOffset; i < this._blockSize; ) r[i++] = e[n++];
@@ -6277,19 +6274,19 @@ Ze.prototype.digest = function(e) {
6277
6274
  Ze.prototype._digest = function() {
6278
6275
  throw new Error("_digest is not implemented");
6279
6276
  };
6280
- var As = Ze, Pu = ge, Rs = As, Cu = Ee.Buffer, Lu = new Array(16);
6277
+ var As = Ze, Tu = ge, Rs = As, Pu = Ee.Buffer, Cu = new Array(16);
6281
6278
  function Ar() {
6282
6279
  Rs.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
6283
6280
  }
6284
- Pu(Ar, Rs);
6281
+ Tu(Ar, Rs);
6285
6282
  Ar.prototype._update = function() {
6286
- for (var e = Lu, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
6283
+ for (var e = Cu, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
6287
6284
  var r = this._a, n = this._b, i = this._c, a = this._d;
6288
6285
  r = he(r, n, i, a, e[0], 3614090360, 7), a = he(a, r, n, i, e[1], 3905402710, 12), i = he(i, a, r, n, e[2], 606105819, 17), n = he(n, i, a, r, e[3], 3250441966, 22), r = he(r, n, i, a, e[4], 4118548399, 7), a = he(a, r, n, i, e[5], 1200080426, 12), i = he(i, a, r, n, e[6], 2821735955, 17), n = he(n, i, a, r, e[7], 4249261313, 22), r = he(r, n, i, a, e[8], 1770035416, 7), a = he(a, r, n, i, e[9], 2336552879, 12), i = he(i, a, r, n, e[10], 4294925233, 17), n = he(n, i, a, r, e[11], 2304563134, 22), r = he(r, n, i, a, e[12], 1804603682, 7), a = he(a, r, n, i, e[13], 4254626195, 12), i = he(i, a, r, n, e[14], 2792965006, 17), n = he(n, i, a, r, e[15], 1236535329, 22), r = de(r, n, i, a, e[1], 4129170786, 5), a = de(a, r, n, i, e[6], 3225465664, 9), i = de(i, a, r, n, e[11], 643717713, 14), n = de(n, i, a, r, e[0], 3921069994, 20), r = de(r, n, i, a, e[5], 3593408605, 5), a = de(a, r, n, i, e[10], 38016083, 9), i = de(i, a, r, n, e[15], 3634488961, 14), n = de(n, i, a, r, e[4], 3889429448, 20), r = de(r, n, i, a, e[9], 568446438, 5), a = de(a, r, n, i, e[14], 3275163606, 9), i = de(i, a, r, n, e[3], 4107603335, 14), n = de(n, i, a, r, e[8], 1163531501, 20), r = de(r, n, i, a, e[13], 2850285829, 5), a = de(a, r, n, i, e[2], 4243563512, 9), i = de(i, a, r, n, e[7], 1735328473, 14), n = de(n, i, a, r, e[12], 2368359562, 20), r = pe(r, n, i, a, e[5], 4294588738, 4), a = pe(a, r, n, i, e[8], 2272392833, 11), i = pe(i, a, r, n, e[11], 1839030562, 16), n = pe(n, i, a, r, e[14], 4259657740, 23), r = pe(r, n, i, a, e[1], 2763975236, 4), a = pe(a, r, n, i, e[4], 1272893353, 11), i = pe(i, a, r, n, e[7], 4139469664, 16), n = pe(n, i, a, r, e[10], 3200236656, 23), r = pe(r, n, i, a, e[13], 681279174, 4), a = pe(a, r, n, i, e[0], 3936430074, 11), i = pe(i, a, r, n, e[3], 3572445317, 16), n = pe(n, i, a, r, e[6], 76029189, 23), r = pe(r, n, i, a, e[9], 3654602809, 4), a = pe(a, r, n, i, e[12], 3873151461, 11), i = pe(i, a, r, n, e[15], 530742520, 16), n = pe(n, i, a, r, e[2], 3299628645, 23), r = be(r, n, i, a, e[0], 4096336452, 6), a = be(a, r, n, i, e[7], 1126891415, 10), i = be(i, a, r, n, e[14], 2878612391, 15), n = be(n, i, a, r, e[5], 4237533241, 21), r = be(r, n, i, a, e[12], 1700485571, 6), a = be(a, r, n, i, e[3], 2399980690, 10), i = be(i, a, r, n, e[10], 4293915773, 15), n = be(n, i, a, r, e[1], 2240044497, 21), r = be(r, n, i, a, e[8], 1873313359, 6), a = be(a, r, n, i, e[15], 4264355552, 10), i = be(i, a, r, n, e[6], 2734768916, 15), n = be(n, i, a, r, e[13], 1309151649, 21), r = be(r, n, i, a, e[4], 4149444226, 6), a = be(a, r, n, i, e[11], 3174756917, 10), i = be(i, a, r, n, e[2], 718787259, 15), n = be(n, i, a, r, e[9], 3951481745, 21), this._a = this._a + r | 0, this._b = this._b + n | 0, this._c = this._c + i | 0, this._d = this._d + a | 0;
6289
6286
  };
6290
6287
  Ar.prototype._digest = function() {
6291
6288
  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();
6292
- var e = Cu.allocUnsafe(16);
6289
+ var e = Pu.allocUnsafe(16);
6293
6290
  return e.writeInt32LE(this._a, 0), e.writeInt32LE(this._b, 4), e.writeInt32LE(this._c, 8), e.writeInt32LE(this._d, 12), e;
6294
6291
  };
6295
6292
  function Rr(e, t) {
@@ -6307,7 +6304,7 @@ function pe(e, t, r, n, i, a, f) {
6307
6304
  function be(e, t, r, n, i, a, f) {
6308
6305
  return Rr(e + (r ^ (t | ~n)) + i + a | 0, f) + t | 0;
6309
6306
  }
6310
- var ku = Ar, Xr = Rt.Buffer, Fu = ge, Ts = As, Uu = new Array(16), Mt = [
6307
+ var Lu = Ar, Xr = Rt.Buffer, ku = ge, Ts = As, Fu = new Array(16), Mt = [
6311
6308
  0,
6312
6309
  1,
6313
6310
  2,
@@ -6635,9 +6632,9 @@ var ku = Ar, Xr = Rt.Buffer, Fu = ge, Ts = As, Uu = new Array(16), Mt = [
6635
6632
  function Tr() {
6636
6633
  Ts.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520;
6637
6634
  }
6638
- Fu(Tr, Ts);
6635
+ ku(Tr, Ts);
6639
6636
  Tr.prototype._update = function() {
6640
- for (var e = Uu, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
6637
+ for (var e = Fu, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
6641
6638
  for (var r = this._a | 0, n = this._b | 0, i = this._c | 0, a = this._d | 0, f = this._e | 0, u = this._a | 0, l = this._b | 0, b = this._c | 0, g = this._d | 0, m = this._e | 0, v = 0; v < 80; v += 1) {
6642
6639
  var I, B;
6643
6640
  v < 16 ? (I = pi(r, n, i, a, f, e[Mt[v]], zt[0], $t[v]), B = mi(u, l, b, g, m, e[Dt[v]], Gt[0], Ht[v])) : v < 32 ? (I = bi(r, n, i, a, f, e[Mt[v]], zt[1], $t[v]), B = gi(u, l, b, g, m, e[Dt[v]], Gt[1], Ht[v])) : v < 48 ? (I = yi(r, n, i, a, f, e[Mt[v]], zt[2], $t[v]), B = yi(u, l, b, g, m, e[Dt[v]], Gt[2], Ht[v])) : v < 64 ? (I = gi(r, n, i, a, f, e[Mt[v]], zt[3], $t[v]), B = bi(u, l, b, g, m, e[Dt[v]], Gt[3], Ht[v])) : (I = mi(r, n, i, a, f, e[Mt[v]], zt[4], $t[v]), B = pi(u, l, b, g, m, e[Dt[v]], Gt[4], Ht[v])), r = f, f = a, a = ut(i, 10), i = n, n = I, u = m, m = g, g = ut(b, 10), b = l, l = B;
@@ -6668,7 +6665,7 @@ function gi(e, t, r, n, i, a, f, u) {
6668
6665
  function mi(e, t, r, n, i, a, f, u) {
6669
6666
  return ut(e + (t ^ (r | ~n)) + a + f | 0, u) + i | 0;
6670
6667
  }
6671
- var Ou = Tr, Ps = { exports: {} }, Cs = Ee.Buffer;
6668
+ var Uu = Tr, Ps = { exports: {} }, Cs = Ee.Buffer;
6672
6669
  function Pr(e, t) {
6673
6670
  this._block = Cs.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
6674
6671
  }
@@ -6698,80 +6695,80 @@ Pr.prototype.digest = function(e) {
6698
6695
  Pr.prototype._update = function() {
6699
6696
  throw new Error("_update must be implemented by subclass");
6700
6697
  };
6701
- var Tt = Pr, Nu = ge, Ls = Tt, Mu = Ee.Buffer, Du = [
6698
+ var Tt = Pr, Ou = ge, Ls = Tt, Nu = Ee.Buffer, Mu = [
6702
6699
  1518500249,
6703
6700
  1859775393,
6704
6701
  -1894007588,
6705
6702
  -899497514
6706
- ], $u = new Array(80);
6703
+ ], Du = new Array(80);
6707
6704
  function Qt() {
6708
- this.init(), this._w = $u, Ls.call(this, 64, 56);
6705
+ this.init(), this._w = Du, Ls.call(this, 64, 56);
6709
6706
  }
6710
- Nu(Qt, Ls);
6707
+ Ou(Qt, Ls);
6711
6708
  Qt.prototype.init = function() {
6712
6709
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
6713
6710
  };
6714
- function Hu(e) {
6711
+ function $u(e) {
6715
6712
  return e << 5 | e >>> 27;
6716
6713
  }
6717
- function zu(e) {
6714
+ function Hu(e) {
6718
6715
  return e << 30 | e >>> 2;
6719
6716
  }
6720
- function Gu(e, t, r, n) {
6717
+ function zu(e, t, r, n) {
6721
6718
  return e === 0 ? t & r | ~t & n : e === 2 ? t & r | t & n | r & n : t ^ r ^ n;
6722
6719
  }
6723
6720
  Qt.prototype._update = function(e) {
6724
6721
  for (var t = this._w, r = this._a | 0, n = this._b | 0, i = this._c | 0, a = this._d | 0, f = this._e | 0, u = 0; u < 16; ++u) t[u] = e.readInt32BE(u * 4);
6725
6722
  for (; u < 80; ++u) t[u] = t[u - 3] ^ t[u - 8] ^ t[u - 14] ^ t[u - 16];
6726
6723
  for (var l = 0; l < 80; ++l) {
6727
- var b = ~~(l / 20), g = Hu(r) + Gu(b, n, i, a) + f + t[l] + Du[b] | 0;
6728
- f = a, a = i, i = zu(n), n = r, r = g;
6724
+ var b = ~~(l / 20), g = $u(r) + zu(b, n, i, a) + f + t[l] + Mu[b] | 0;
6725
+ f = a, a = i, i = Hu(n), n = r, r = g;
6729
6726
  }
6730
6727
  this._a = r + this._a | 0, this._b = n + this._b | 0, this._c = i + this._c | 0, this._d = a + this._d | 0, this._e = f + this._e | 0;
6731
6728
  };
6732
6729
  Qt.prototype._hash = function() {
6733
- var e = Mu.allocUnsafe(20);
6730
+ var e = Nu.allocUnsafe(20);
6734
6731
  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;
6735
6732
  };
6736
- var ju = Qt, Wu = ge, ks = Tt, qu = Ee.Buffer, Vu = [
6733
+ var Gu = Qt, ju = ge, ks = Tt, Wu = Ee.Buffer, qu = [
6737
6734
  1518500249,
6738
6735
  1859775393,
6739
6736
  -1894007588,
6740
6737
  -899497514
6741
- ], Ku = new Array(80);
6738
+ ], Vu = new Array(80);
6742
6739
  function Zt() {
6743
- this.init(), this._w = Ku, ks.call(this, 64, 56);
6740
+ this.init(), this._w = Vu, ks.call(this, 64, 56);
6744
6741
  }
6745
- Wu(Zt, ks);
6742
+ ju(Zt, ks);
6746
6743
  Zt.prototype.init = function() {
6747
6744
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
6748
6745
  };
6749
- function Yu(e) {
6746
+ function Ku(e) {
6750
6747
  return e << 1 | e >>> 31;
6751
6748
  }
6752
- function Ju(e) {
6749
+ function Yu(e) {
6753
6750
  return e << 5 | e >>> 27;
6754
6751
  }
6755
- function Xu(e) {
6752
+ function Ju(e) {
6756
6753
  return e << 30 | e >>> 2;
6757
6754
  }
6758
- function Qu(e, t, r, n) {
6755
+ function Xu(e, t, r, n) {
6759
6756
  return e === 0 ? t & r | ~t & n : e === 2 ? t & r | t & n | r & n : t ^ r ^ n;
6760
6757
  }
6761
6758
  Zt.prototype._update = function(e) {
6762
6759
  for (var t = this._w, r = this._a | 0, n = this._b | 0, i = this._c | 0, a = this._d | 0, f = this._e | 0, u = 0; u < 16; ++u) t[u] = e.readInt32BE(u * 4);
6763
- for (; u < 80; ++u) t[u] = Yu(t[u - 3] ^ t[u - 8] ^ t[u - 14] ^ t[u - 16]);
6760
+ for (; u < 80; ++u) t[u] = Ku(t[u - 3] ^ t[u - 8] ^ t[u - 14] ^ t[u - 16]);
6764
6761
  for (var l = 0; l < 80; ++l) {
6765
- var b = ~~(l / 20), g = Ju(r) + Qu(b, n, i, a) + f + t[l] + Vu[b] | 0;
6766
- f = a, a = i, i = Xu(n), n = r, r = g;
6762
+ var b = ~~(l / 20), g = Yu(r) + Xu(b, n, i, a) + f + t[l] + qu[b] | 0;
6763
+ f = a, a = i, i = Ju(n), n = r, r = g;
6767
6764
  }
6768
6765
  this._a = r + this._a | 0, this._b = n + this._b | 0, this._c = i + this._c | 0, this._d = a + this._d | 0, this._e = f + this._e | 0;
6769
6766
  };
6770
6767
  Zt.prototype._hash = function() {
6771
- var e = qu.allocUnsafe(20);
6768
+ var e = Wu.allocUnsafe(20);
6772
6769
  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;
6773
6770
  };
6774
- var Zu = Zt, ec = ge, Fs = Tt, tc = Ee.Buffer, rc = [
6771
+ var Qu = Zt, Zu = ge, Fs = Tt, ec = Ee.Buffer, tc = [
6775
6772
  1116352408,
6776
6773
  1899447441,
6777
6774
  3049323471,
@@ -6836,58 +6833,58 @@ var Zu = Zt, ec = ge, Fs = Tt, tc = Ee.Buffer, rc = [
6836
6833
  2756734187,
6837
6834
  3204031479,
6838
6835
  3329325298
6839
- ], nc = new Array(64);
6836
+ ], rc = new Array(64);
6840
6837
  function er() {
6841
- this.init(), this._w = nc, Fs.call(this, 64, 56);
6838
+ this.init(), this._w = rc, Fs.call(this, 64, 56);
6842
6839
  }
6843
- ec(er, Fs);
6840
+ Zu(er, Fs);
6844
6841
  er.prototype.init = function() {
6845
6842
  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;
6846
6843
  };
6847
- function ic(e, t, r) {
6844
+ function nc(e, t, r) {
6848
6845
  return r ^ e & (t ^ r);
6849
6846
  }
6850
- function sc(e, t, r) {
6847
+ function ic(e, t, r) {
6851
6848
  return e & t | r & (e | t);
6852
6849
  }
6853
- function oc(e) {
6850
+ function sc(e) {
6854
6851
  return (e >>> 2 | e << 30) ^ (e >>> 13 | e << 19) ^ (e >>> 22 | e << 10);
6855
6852
  }
6856
- function ac(e) {
6853
+ function oc(e) {
6857
6854
  return (e >>> 6 | e << 26) ^ (e >>> 11 | e << 21) ^ (e >>> 25 | e << 7);
6858
6855
  }
6859
- function fc(e) {
6856
+ function ac(e) {
6860
6857
  return (e >>> 7 | e << 25) ^ (e >>> 18 | e << 14) ^ e >>> 3;
6861
6858
  }
6862
- function uc(e) {
6859
+ function fc(e) {
6863
6860
  return (e >>> 17 | e << 15) ^ (e >>> 19 | e << 13) ^ e >>> 10;
6864
6861
  }
6865
6862
  er.prototype._update = function(e) {
6866
6863
  for (var t = this._w, r = this._a | 0, n = this._b | 0, i = this._c | 0, a = this._d | 0, f = this._e | 0, u = this._f | 0, l = this._g | 0, b = this._h | 0, g = 0; g < 16; ++g) t[g] = e.readInt32BE(g * 4);
6867
- for (; g < 64; ++g) t[g] = uc(t[g - 2]) + t[g - 7] + fc(t[g - 15]) + t[g - 16] | 0;
6864
+ for (; g < 64; ++g) t[g] = fc(t[g - 2]) + t[g - 7] + ac(t[g - 15]) + t[g - 16] | 0;
6868
6865
  for (var m = 0; m < 64; ++m) {
6869
- var v = b + ac(f) + ic(f, u, l) + rc[m] + t[m] | 0, I = oc(r) + sc(r, n, i) | 0;
6866
+ var v = b + oc(f) + nc(f, u, l) + tc[m] + t[m] | 0, I = sc(r) + ic(r, n, i) | 0;
6870
6867
  b = l, l = u, u = f, f = a + v | 0, a = i, i = n, n = r, r = v + I | 0;
6871
6868
  }
6872
6869
  this._a = r + this._a | 0, this._b = n + this._b | 0, this._c = i + this._c | 0, this._d = a + this._d | 0, this._e = f + this._e | 0, this._f = u + this._f | 0, this._g = l + this._g | 0, this._h = b + this._h | 0;
6873
6870
  };
6874
6871
  er.prototype._hash = function() {
6875
- var e = tc.allocUnsafe(32);
6872
+ var e = ec.allocUnsafe(32);
6876
6873
  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;
6877
6874
  };
6878
- var Us = er, cc = ge, lc = Us, hc = Tt, dc = Ee.Buffer, pc = new Array(64);
6875
+ var Us = er, uc = ge, cc = Us, lc = Tt, hc = Ee.Buffer, dc = new Array(64);
6879
6876
  function Cr() {
6880
- this.init(), this._w = pc, hc.call(this, 64, 56);
6877
+ this.init(), this._w = dc, lc.call(this, 64, 56);
6881
6878
  }
6882
- cc(Cr, lc);
6879
+ uc(Cr, cc);
6883
6880
  Cr.prototype.init = function() {
6884
6881
  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;
6885
6882
  };
6886
6883
  Cr.prototype._hash = function() {
6887
- var e = dc.allocUnsafe(28);
6884
+ var e = hc.allocUnsafe(28);
6888
6885
  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;
6889
6886
  };
6890
- var bc = Cr, yc = ge, Os = Tt, gc = Ee.Buffer, _i = [
6887
+ var pc = Cr, bc = ge, Os = Tt, yc = Ee.Buffer, _i = [
6891
6888
  1116352408,
6892
6889
  3609767458,
6893
6890
  1899447441,
@@ -7048,11 +7045,11 @@ var bc = Cr, yc = ge, Os = Tt, gc = Ee.Buffer, _i = [
7048
7045
  987167468,
7049
7046
  1816402316,
7050
7047
  1246189591
7051
- ], mc = new Array(160);
7048
+ ], gc = new Array(160);
7052
7049
  function tr() {
7053
- this.init(), this._w = mc, Os.call(this, 128, 112);
7050
+ this.init(), this._w = gc, Os.call(this, 128, 112);
7054
7051
  }
7055
- yc(tr, Os);
7052
+ bc(tr, Os);
7056
7053
  tr.prototype.init = function() {
7057
7054
  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;
7058
7055
  };
@@ -7068,16 +7065,16 @@ function vi(e, t) {
7068
7065
  function Ei(e, t) {
7069
7066
  return (e >>> 14 | t << 18) ^ (e >>> 18 | t << 14) ^ (t >>> 9 | e << 23);
7070
7067
  }
7071
- function _c(e, t) {
7068
+ function mc(e, t) {
7072
7069
  return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ e >>> 7;
7073
7070
  }
7074
- function wc(e, t) {
7071
+ function _c(e, t) {
7075
7072
  return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ (e >>> 7 | t << 25);
7076
7073
  }
7077
- function xc(e, t) {
7074
+ function wc(e, t) {
7078
7075
  return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ e >>> 6;
7079
7076
  }
7080
- function vc(e, t) {
7077
+ function xc(e, t) {
7081
7078
  return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ (e >>> 6 | t << 26);
7082
7079
  }
7083
7080
  function ue(e, t) {
@@ -7087,9 +7084,9 @@ tr.prototype._update = function(e) {
7087
7084
  for (var t = this._w, r = this._ah | 0, n = this._bh | 0, i = this._ch | 0, a = this._dh | 0, f = this._eh | 0, u = this._fh | 0, l = this._gh | 0, b = this._hh | 0, g = this._al | 0, m = this._bl | 0, v = this._cl | 0, I = this._dl | 0, B = this._el | 0, P = this._fl | 0, T = this._gl | 0, C = this._hl | 0, F = 0; F < 32; F += 2)
7088
7085
  t[F] = e.readInt32BE(F * 4), t[F + 1] = e.readInt32BE(F * 4 + 4);
7089
7086
  for (; F < 160; F += 2) {
7090
- var k = t[F - 30], L = t[F - 15 * 2 + 1], U = _c(k, L), S = wc(L, k);
7087
+ var k = t[F - 30], L = t[F - 15 * 2 + 1], U = mc(k, L), S = _c(L, k);
7091
7088
  k = t[F - 2 * 2], L = t[F - 2 * 2 + 1];
7092
- var z = xc(k, L), M = vc(L, k), $ = t[F - 7 * 2], se = t[F - 7 * 2 + 1], Te = t[F - 16 * 2], Ge = t[F - 16 * 2 + 1], ae = S + se | 0, xe = U + $ + ue(ae, S) | 0;
7089
+ var z = wc(k, L), M = xc(L, k), $ = t[F - 7 * 2], se = t[F - 7 * 2 + 1], Te = t[F - 16 * 2], Ge = t[F - 16 * 2 + 1], ae = S + se | 0, xe = U + $ + ue(ae, S) | 0;
7093
7090
  ae = ae + M | 0, xe = xe + z + ue(ae, M) | 0, ae = ae + Ge | 0, xe = xe + Te + ue(ae, Ge) | 0, t[F] = xe, t[F + 1] = ae;
7094
7091
  }
7095
7092
  for (var ve = 0; ve < 160; ve += 2) {
@@ -7102,44 +7099,44 @@ tr.prototype._update = function(e) {
7102
7099
  this._al = this._al + g | 0, this._bl = this._bl + m | 0, this._cl = this._cl + v | 0, this._dl = this._dl + I | 0, this._el = this._el + B | 0, this._fl = this._fl + P | 0, this._gl = this._gl + T | 0, this._hl = this._hl + C | 0, this._ah = this._ah + r + ue(this._al, g) | 0, this._bh = this._bh + n + ue(this._bl, m) | 0, this._ch = this._ch + i + ue(this._cl, v) | 0, this._dh = this._dh + a + ue(this._dl, I) | 0, this._eh = this._eh + f + ue(this._el, B) | 0, this._fh = this._fh + u + ue(this._fl, P) | 0, this._gh = this._gh + l + ue(this._gl, T) | 0, this._hh = this._hh + b + ue(this._hl, C) | 0;
7103
7100
  };
7104
7101
  tr.prototype._hash = function() {
7105
- var e = gc.allocUnsafe(64);
7102
+ var e = yc.allocUnsafe(64);
7106
7103
  function t(r, n, i) {
7107
7104
  e.writeInt32BE(r, i), e.writeInt32BE(n, i + 4);
7108
7105
  }
7109
7106
  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;
7110
7107
  };
7111
- var Ns = tr, Ec = ge, Bc = Ns, Sc = Tt, Ic = Ee.Buffer, Ac = new Array(160);
7108
+ var Ns = tr, vc = ge, Ec = Ns, Bc = Tt, Sc = Ee.Buffer, Ic = new Array(160);
7112
7109
  function Lr() {
7113
- this.init(), this._w = Ac, Sc.call(this, 128, 112);
7110
+ this.init(), this._w = Ic, Bc.call(this, 128, 112);
7114
7111
  }
7115
- Ec(Lr, Bc);
7112
+ vc(Lr, Ec);
7116
7113
  Lr.prototype.init = function() {
7117
7114
  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;
7118
7115
  };
7119
7116
  Lr.prototype._hash = function() {
7120
- var e = Ic.allocUnsafe(48);
7117
+ var e = Sc.allocUnsafe(48);
7121
7118
  function t(r, n, i) {
7122
7119
  e.writeInt32BE(r, i), e.writeInt32BE(n, i + 4);
7123
7120
  }
7124
7121
  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;
7125
7122
  };
7126
- var Rc = Lr, lt = Ps.exports = function(t) {
7123
+ var Ac = Lr, lt = Ps.exports = function(t) {
7127
7124
  t = t.toLowerCase();
7128
7125
  var r = lt[t];
7129
7126
  if (!r) throw new Error(t + " is not supported (we accept pull requests)");
7130
7127
  return new r();
7131
7128
  };
7132
- lt.sha = ju;
7133
- lt.sha1 = Zu;
7134
- lt.sha224 = bc;
7129
+ lt.sha = Gu;
7130
+ lt.sha1 = Qu;
7131
+ lt.sha224 = pc;
7135
7132
  lt.sha256 = Us;
7136
- lt.sha384 = Rc;
7133
+ lt.sha384 = Ac;
7137
7134
  lt.sha512 = Ns;
7138
- var Tc = Ps.exports, Ms = Ee.Buffer, Ds = Tn.Transform, Pc = mr.StringDecoder, Cc = ge;
7135
+ var Rc = Ps.exports, Ms = Ee.Buffer, Ds = Tn.Transform, Tc = mr.StringDecoder, Pc = ge;
7139
7136
  function Le(e) {
7140
7137
  Ds.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;
7141
7138
  }
7142
- Cc(Le, Ds);
7139
+ Pc(Le, Ds);
7143
7140
  Le.prototype.update = function(e, t, r) {
7144
7141
  typeof e == "string" && (e = Ms.from(e, t));
7145
7142
  var n = this._update(e);
@@ -7180,25 +7177,25 @@ Le.prototype._finalOrDigest = function(e) {
7180
7177
  return e && (t = this._toString(t, e, !0)), t;
7181
7178
  };
7182
7179
  Le.prototype._toString = function(e, t, r) {
7183
- if (this._decoder || (this._decoder = new Pc(t), this._encoding = t), this._encoding !== t) throw new Error("can't switch encodings");
7180
+ if (this._decoder || (this._decoder = new Tc(t), this._encoding = t), this._encoding !== t) throw new Error("can't switch encodings");
7184
7181
  var n = this._decoder.write(e);
7185
7182
  return r && (n += this._decoder.end()), n;
7186
7183
  };
7187
- var Lc = Le, kc = ge, Fc = ku, Uc = Ou, Oc = Tc, $s = Lc;
7184
+ var Cc = Le, Lc = ge, kc = Lu, Fc = Uu, Uc = Rc, $s = Cc;
7188
7185
  function kr(e) {
7189
7186
  $s.call(this, "digest"), this._hash = e;
7190
7187
  }
7191
- kc(kr, $s);
7188
+ Lc(kr, $s);
7192
7189
  kr.prototype._update = function(e) {
7193
7190
  this._hash.update(e);
7194
7191
  };
7195
7192
  kr.prototype._final = function() {
7196
7193
  return this._hash.digest();
7197
7194
  };
7198
- var Nc = function(t) {
7199
- return t = t.toLowerCase(), t === "md5" ? new Fc() : t === "rmd160" || t === "ripemd160" ? new Uc() : new kr(Oc(t));
7195
+ var Oc = function(t) {
7196
+ return t = t.toLowerCase(), t === "md5" ? new kc() : t === "rmd160" || t === "ripemd160" ? new Fc() : new kr(Uc(t));
7200
7197
  }, ar = Ee.Buffer;
7201
- function Mc(e) {
7198
+ function Nc(e) {
7202
7199
  if (e.length >= 255)
7203
7200
  throw new TypeError("Alphabet too long");
7204
7201
  for (var t = new Uint8Array(256), r = 0; r < t.length; r++)
@@ -7267,10 +7264,10 @@ function Mc(e) {
7267
7264
  decode: v
7268
7265
  };
7269
7266
  }
7270
- var Dc = Mc, $c = Dc, Hc = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", zc = $c(Hc), Qr = zc, Gc = Ee.Buffer, jc = function(e) {
7267
+ var Mc = Nc, Dc = Mc, $c = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", Hc = Dc($c), Qr = Hc, zc = Ee.Buffer, Gc = function(e) {
7271
7268
  function t(a) {
7272
7269
  var f = e(a);
7273
- return Qr.encode(Gc.concat([
7270
+ return Qr.encode(zc.concat([
7274
7271
  a,
7275
7272
  f
7276
7273
  ], a.length + 4));
@@ -7295,12 +7292,12 @@ var Dc = Mc, $c = Dc, Hc = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrst
7295
7292
  decode: i,
7296
7293
  decodeUnsafe: n
7297
7294
  };
7298
- }, Bi = Nc, Wc = jc;
7299
- function qc(e) {
7295
+ }, Bi = Oc, jc = Gc;
7296
+ function Wc(e) {
7300
7297
  var t = Bi("sha256").update(e).digest();
7301
7298
  return Bi("sha256").update(t).digest();
7302
7299
  }
7303
- var Vc = Wc(qc), ln = Vc;
7300
+ var qc = jc(Wc), ln = qc;
7304
7301
  function Hs(e, t) {
7305
7302
  if (t !== void 0 && e[0] !== t) throw new Error("Invalid network version");
7306
7303
  if (e.length === 33)
@@ -7321,10 +7318,10 @@ function hn(e, t, r) {
7321
7318
  var n = new Buffer(r ? 34 : 33);
7322
7319
  return n.writeUInt8(e, 0), t.copy(n, 1), r && (n[33] = 1), n;
7323
7320
  }
7324
- function Kc(e, t) {
7321
+ function Vc(e, t) {
7325
7322
  return Hs(ln.decode(e), t);
7326
7323
  }
7327
- function Yc(e, t, r) {
7324
+ function Kc(e, t, r) {
7328
7325
  return typeof e == "number" ? ln.encode(hn(e, t, r)) : ln.encode(
7329
7326
  hn(
7330
7327
  e.version,
@@ -7333,16 +7330,16 @@ function Yc(e, t, r) {
7333
7330
  )
7334
7331
  );
7335
7332
  }
7336
- var Jc = {
7337
- decode: Kc,
7333
+ var Yc = {
7334
+ decode: Vc,
7338
7335
  decodeRaw: Hs,
7339
- encode: Yc,
7336
+ encode: Kc,
7340
7337
  encodeRaw: hn
7341
7338
  }, Fr = {};
7342
7339
  Object.defineProperty(Fr, "__esModule", { value: !0 });
7343
7340
  Fr.testEcc = void 0;
7344
7341
  const H = (e) => Buffer.from(e, "hex");
7345
- function Xc(e) {
7342
+ function Jc(e) {
7346
7343
  J(
7347
7344
  e.isPoint(
7348
7345
  H("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798")
@@ -7532,7 +7529,7 @@ function Xc(e) {
7532
7529
  )
7533
7530
  );
7534
7531
  }
7535
- Fr.testEcc = Xc;
7532
+ Fr.testEcc = Jc;
7536
7533
  function J(e) {
7537
7534
  if (!e) throw new Error("ecc library invalid");
7538
7535
  }
@@ -7540,14 +7537,14 @@ Object.defineProperty(Et, "__esModule", { value: !0 });
7540
7537
  Et.ECPairFactory = Et.networks = void 0;
7541
7538
  const dn = Bt;
7542
7539
  Et.networks = dn;
7543
- const _e = es, Qc = Sf, Si = Jc, Zc = Fr, Zr = _e.typeforce.maybe(
7540
+ const _e = es, Xc = Bf, Si = Yc, Qc = Fr, Zr = _e.typeforce.maybe(
7544
7541
  _e.typeforce.compile({
7545
7542
  compressed: _e.maybe(_e.Boolean),
7546
7543
  network: _e.maybe(_e.Network)
7547
7544
  })
7548
- ), el = (e) => e.length === 32 ? e : e.slice(1, 33);
7549
- function tl(e) {
7550
- (0, Zc.testEcc)(e);
7545
+ ), Zc = (e) => e.length === 32 ? e : e.slice(1, 33);
7546
+ function el(e) {
7547
+ (0, Qc.testEcc)(e);
7551
7548
  function t(u) {
7552
7549
  return e.isPoint(u);
7553
7550
  }
@@ -7571,7 +7568,7 @@ function tl(e) {
7571
7568
  }
7572
7569
  function a(u) {
7573
7570
  _e.typeforce(Zr, u), u === void 0 && (u = {});
7574
- const l = u.rng || Qc;
7571
+ const l = u.rng || Xc;
7575
7572
  let b;
7576
7573
  do
7577
7574
  b = l(32), _e.typeforce(_e.Buffer256bit, b);
@@ -7632,7 +7629,7 @@ function tl(e) {
7632
7629
  return e.verifySchnorr(l, this.publicKey.subarray(1, 33), b);
7633
7630
  }
7634
7631
  tweakFromPublicKey(l) {
7635
- const b = el(this.publicKey), g = e.xOnlyPointAddTweak(b, l);
7632
+ const b = Zc(this.publicKey), g = e.xOnlyPointAddTweak(b, l);
7636
7633
  if (!g || g.xOnlyPubkey === null)
7637
7634
  throw new Error("Cannot tweak public key!");
7638
7635
  const m = Buffer.from([
@@ -7660,7 +7657,7 @@ function tl(e) {
7660
7657
  makeRandom: a
7661
7658
  };
7662
7659
  }
7663
- Et.ECPairFactory = tl;
7660
+ Et.ECPairFactory = el;
7664
7661
  (function(e) {
7665
7662
  Object.defineProperty(e, "__esModule", { value: !0 }), e.networks = e.ECPairFactory = e.default = void 0;
7666
7663
  var t = Et;
@@ -7792,9 +7789,9 @@ class bl {
7792
7789
  }
7793
7790
  }
7794
7791
  export {
7795
- nf as BlockNumberFetcher,
7792
+ dl as BlockNumberFetcher,
7796
7793
  Ja as EvmRelay,
7797
- dl as Garden,
7794
+ hl as Garden,
7798
7795
  ce as OrderActions,
7799
7796
  re as OrderStatus,
7800
7797
  Xi as ParseOrderStatus,
@@ -7806,6 +7803,6 @@ export {
7806
7803
  Va as constructOrderPair,
7807
7804
  Ka as filterDeadlineExpiredOrders,
7808
7805
  pr as isExpired,
7809
- hl as parseAction,
7810
- ll as switchOrAddNetwork
7806
+ ll as parseAction,
7807
+ cl as switchOrAddNetwork
7811
7808
  };