"use client";
import { l as Ot, p as L, c as se } from "./index.package-CyosW65c.js";
import { e as ht } from "./events-DdEoKdor.js";
import { r as xe, i as G } from "./inherits_browser-By2fZMsk.js";
var Ue = { exports: {} }, dt = ht.EventEmitter;
const Nt = {}, Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: Nt
}, Symbol.toStringTag, { value: "Module" })), ct = /* @__PURE__ */ Ot(Lt);
var De, Ve;
function It() {
  if (Ve) return De;
  Ve = 1;
  function e(S, R) {
    var y = Object.keys(S);
    if (Object.getOwnPropertySymbols) {
      var n = Object.getOwnPropertySymbols(S);
      R && (n = n.filter(function(l) {
        return Object.getOwnPropertyDescriptor(S, l).enumerable;
      })), y.push.apply(y, n);
    }
    return y;
  }
  function t(S) {
    for (var R = 1; R < arguments.length; R++) {
      var y = arguments[R] != null ? arguments[R] : {};
      R % 2 ? e(Object(y), !0).forEach(function(n) {
        a(S, n, y[n]);
      }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(S, Object.getOwnPropertyDescriptors(y)) : e(Object(y)).forEach(function(n) {
        Object.defineProperty(S, n, Object.getOwnPropertyDescriptor(y, n));
      });
    }
    return S;
  }
  function a(S, R, y) {
    return R = _(R), R in S ? Object.defineProperty(S, R, { value: y, enumerable: !0, configurable: !0, writable: !0 }) : S[R] = y, S;
  }
  function s(S, R) {
    if (!(S instanceof R))
      throw new TypeError("Cannot call a class as a function");
  }
  function u(S, R) {
    for (var y = 0; y < R.length; y++) {
      var n = R[y];
      n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(S, _(n.key), n);
    }
  }
  function p(S, R, y) {
    return R && u(S.prototype, R), Object.defineProperty(S, "prototype", { writable: !1 }), S;
  }
  function _(S) {
    var R = v(S, "string");
    return typeof R == "symbol" ? R : String(R);
  }
  function v(S, R) {
    if (typeof S != "object" || S === null) return S;
    var y = S[Symbol.toPrimitive];
    if (y !== void 0) {
      var n = y.call(S, R || "default");
      if (typeof n != "object") return n;
      throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return (R === "string" ? String : Number)(S);
  }
  var h = xe, w = h.Buffer, m = ct, C = m.inspect, N = C && C.custom || "inspect";
  function I(S, R, y) {
    w.prototype.copy.call(S, R, y);
  }
  return De = /* @__PURE__ */ function() {
    function S() {
      s(this, S), this.head = null, this.tail = null, this.length = 0;
    }
    return p(S, [{
      key: "push",
      value: function(y) {
        var n = {
          data: y,
          next: null
        };
        this.length > 0 ? this.tail.next = n : this.head = n, this.tail = n, ++this.length;
      }
    }, {
      key: "unshift",
      value: function(y) {
        var n = {
          data: y,
          next: this.head
        };
        this.length === 0 && (this.tail = n), this.head = n, ++this.length;
      }
    }, {
      key: "shift",
      value: function() {
        if (this.length !== 0) {
          var y = this.head.data;
          return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, y;
        }
      }
    }, {
      key: "clear",
      value: function() {
        this.head = this.tail = null, this.length = 0;
      }
    }, {
      key: "join",
      value: function(y) {
        if (this.length === 0) return "";
        for (var n = this.head, l = "" + n.data; n = n.next; ) l += y + n.data;
        return l;
      }
    }, {
      key: "concat",
      value: function(y) {
        if (this.length === 0) return w.alloc(0);
        for (var n = w.allocUnsafe(y >>> 0), l = this.head, b = 0; l; )
          I(l.data, n, b), b += l.data.length, l = l.next;
        return n;
      }
      // Consumes a specified amount of bytes or characters from the buffered data.
    }, {
      key: "consume",
      value: function(y, n) {
        var l;
        return y < this.head.data.length ? (l = this.head.data.slice(0, y), this.head.data = this.head.data.slice(y)) : y === this.head.data.length ? l = this.shift() : l = n ? this._getString(y) : this._getBuffer(y), l;
      }
    }, {
      key: "first",
      value: function() {
        return this.head.data;
      }
      // Consumes a specified amount of characters from the buffered data.
    }, {
      key: "_getString",
      value: function(y) {
        var n = this.head, l = 1, b = n.data;
        for (y -= b.length; n = n.next; ) {
          var g = n.data, E = y > g.length ? g.length : y;
          if (E === g.length ? b += g : b += g.slice(0, y), y -= E, y === 0) {
            E === g.length ? (++l, n.next ? this.head = n.next : this.head = this.tail = null) : (this.head = n, n.data = g.slice(E));
            break;
          }
          ++l;
        }
        return this.length -= l, b;
      }
      // Consumes a specified amount of bytes from the buffered data.
    }, {
      key: "_getBuffer",
      value: function(y) {
        var n = w.allocUnsafe(y), l = this.head, b = 1;
        for (l.data.copy(n), y -= l.data.length; l = l.next; ) {
          var g = l.data, E = y > g.length ? g.length : y;
          if (g.copy(n, n.length - y, 0, E), y -= E, y === 0) {
            E === g.length ? (++b, l.next ? this.head = l.next : this.head = this.tail = null) : (this.head = l, l.data = g.slice(E));
            break;
          }
          ++b;
        }
        return this.length -= b, n;
      }
      // Make sure the linked list only shows the minimal necessary information.
    }, {
      key: N,
      value: function(y, n) {
        return C(this, t(t({}, n), {}, {
          // Only inspect one level.
          depth: 0,
          // It should not recurse.
          customInspect: !1
        }));
      }
    }]), S;
  }(), De;
}
function Pt(e, t) {
  var a = this, s = this._readableState && this._readableState.destroyed, u = this._writableState && this._writableState.destroyed;
  return s || u ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, L.nextTick(qe, this, e)) : L.nextTick(qe, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(p) {
    !t && p ? a._writableState ? a._writableState.errorEmitted ? L.nextTick(Ee, a) : (a._writableState.errorEmitted = !0, L.nextTick(Ke, a, p)) : L.nextTick(Ke, a, p) : t ? (L.nextTick(Ee, a), t(p)) : L.nextTick(Ee, a);
  }), this);
}
function Ke(e, t) {
  qe(e, t), Ee(e);
}
function Ee(e) {
  e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close");
}
function kt() {
  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);
}
function qe(e, t) {
  e.emit("error", t);
}
function Ft(e, t) {
  var a = e._readableState, s = e._writableState;
  a && a.autoDestroy || s && s.autoDestroy ? e.destroy(t) : e.emit("error", t);
}
var _t = {
  destroy: Pt,
  undestroy: kt,
  errorOrDestroy: Ft
}, Q = {};
function jt(e, t) {
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
}
var bt = {};
function q(e, t, a) {
  a || (a = Error);
  function s(p, _, v) {
    return typeof t == "string" ? t : t(p, _, v);
  }
  var u = /* @__PURE__ */ function(p) {
    jt(_, p);
    function _(v, h, w) {
      return p.call(this, s(v, h, w)) || this;
    }
    return _;
  }(a);
  u.prototype.name = a.name, u.prototype.code = e, bt[e] = u;
}
function Ye(e, t) {
  if (Array.isArray(e)) {
    var a = e.length;
    return e = e.map(function(s) {
      return String(s);
    }), a > 2 ? "one of ".concat(t, " ").concat(e.slice(0, a - 1).join(", "), ", or ") + e[a - 1] : a === 2 ? "one of ".concat(t, " ").concat(e[0], " or ").concat(e[1]) : "of ".concat(t, " ").concat(e[0]);
  } else
    return "of ".concat(t, " ").concat(String(e));
}
function Ut(e, t, a) {
  return e.substr(0, t.length) === t;
}
function qt(e, t, a) {
  return (a === void 0 || a > e.length) && (a = e.length), e.substring(a - t.length, a) === t;
}
function Ht(e, t, a) {
  return typeof a != "number" && (a = 0), a + t.length > e.length ? !1 : e.indexOf(t, a) !== -1;
}
q("ERR_INVALID_OPT_VALUE", function(e, t) {
  return 'The value "' + t + '" is invalid for option "' + e + '"';
}, TypeError);
q("ERR_INVALID_ARG_TYPE", function(e, t, a) {
  var s;
  typeof t == "string" && Ut(t, "not ") ? (s = "must not be", t = t.replace(/^not /, "")) : s = "must be";
  var u;
  if (qt(e, " argument"))
    u = "The ".concat(e, " ").concat(s, " ").concat(Ye(t, "type"));
  else {
    var p = Ht(e, ".") ? "property" : "argument";
    u = 'The "'.concat(e, '" ').concat(p, " ").concat(s, " ").concat(Ye(t, "type"));
  }
  return u += ". Received type ".concat(typeof a), u;
}, TypeError);
q("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
q("ERR_METHOD_NOT_IMPLEMENTED", function(e) {
  return "The " + e + " method is not implemented";
});
q("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
q("ERR_STREAM_DESTROYED", function(e) {
  return "Cannot call " + e + " after a stream was destroyed";
});
q("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
q("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
q("ERR_STREAM_WRITE_AFTER_END", "write after end");
q("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
q("ERR_UNKNOWN_ENCODING", function(e) {
  return "Unknown encoding: " + e;
}, TypeError);
q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
Q.codes = bt;
var Wt = Q.codes.ERR_INVALID_OPT_VALUE;
function $t(e, t, a) {
  return e.highWaterMark != null ? e.highWaterMark : t ? e[a] : null;
}
function Gt(e, t, a, s) {
  var u = $t(t, s, a);
  if (u != null) {
    if (!(isFinite(u) && Math.floor(u) === u) || u < 0) {
      var p = s ? a : "highWaterMark";
      throw new Wt(p, u);
    }
    return Math.floor(u);
  }
  return e.objectMode ? 16 : 16 * 1024;
}
var pt = {
  getHighWaterMark: Gt
}, Vt = Kt;
function Kt(e, t) {
  if (Oe("noDeprecation"))
    return e;
  var a = !1;
  function s() {
    if (!a) {
      if (Oe("throwDeprecation"))
        throw new Error(t);
      Oe("traceDeprecation"), a = !0;
    }
    return e.apply(this, arguments);
  }
  return s;
}
function Oe(e) {
  try {
    if (!se.localStorage) return !1;
  } catch {
    return !1;
  }
  var t = se.localStorage[e];
  return t == null ? !1 : String(t).toLowerCase() === "true";
}
var Ne, ze;
function vt() {
  if (ze) return Ne;
  ze = 1, Ne = M;
  function e(o) {
    var f = this;
    this.next = null, this.entry = null, this.finish = function() {
      ne(f, o);
    };
  }
  var t;
  M.WritableState = B;
  var a = {
    deprecate: Vt
  }, s = dt, u = xe.Buffer, p = (typeof se < "u" ? se : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
  };
  function _(o) {
    return u.from(o);
  }
  function v(o) {
    return u.isBuffer(o) || o instanceof p;
  }
  var h = _t, w = pt, m = w.getHighWaterMark, C = Q.codes, N = C.ERR_INVALID_ARG_TYPE, I = C.ERR_METHOD_NOT_IMPLEMENTED, S = C.ERR_MULTIPLE_CALLBACK, R = C.ERR_STREAM_CANNOT_PIPE, y = C.ERR_STREAM_DESTROYED, n = C.ERR_STREAM_NULL_VALUES, l = C.ERR_STREAM_WRITE_AFTER_END, b = C.ERR_UNKNOWN_ENCODING, g = h.errorOrDestroy;
  G(M, s);
  function E() {
  }
  function B(o, f, c) {
    t = t || le(), o = o || {}, typeof c != "boolean" && (c = f instanceof t), this.objectMode = !!o.objectMode, c && (this.objectMode = this.objectMode || !!o.writableObjectMode), this.highWaterMark = m(this, o, "writableHighWaterMark", c), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
    var T = o.decodeStrings === !1;
    this.decodeStrings = !T, this.defaultEncoding = o.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(O) {
      he(f, O);
    }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = o.emitClose !== !1, this.autoDestroy = !!o.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
  }
  B.prototype.getBuffer = function() {
    for (var f = this.bufferedRequest, c = []; f; )
      c.push(f), f = f.next;
    return c;
  }, function() {
    try {
      Object.defineProperty(B.prototype, "buffer", {
        get: a.deprecate(function() {
          return this.getBuffer();
        }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
      });
    } catch {
    }
  }();
  var k;
  typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (k = Function.prototype[Symbol.hasInstance], Object.defineProperty(M, Symbol.hasInstance, {
    value: function(f) {
      return k.call(this, f) ? !0 : this !== M ? !1 : f && f._writableState instanceof B;
    }
  })) : k = function(f) {
    return f instanceof this;
  };
  function M(o) {
    t = t || le();
    var f = this instanceof t;
    if (!f && !k.call(M, this)) return new M(o);
    this._writableState = new B(o, this, f), this.writable = !0, o && (typeof o.write == "function" && (this._write = o.write), typeof o.writev == "function" && (this._writev = o.writev), typeof o.destroy == "function" && (this._destroy = o.destroy), typeof o.final == "function" && (this._final = o.final)), s.call(this);
  }
  M.prototype.pipe = function() {
    g(this, new R());
  };
  function A(o, f) {
    var c = new l();
    g(o, c), L.nextTick(f, c);
  }
  function H(o, f, c, T) {
    var O;
    return c === null ? O = new n() : typeof c != "string" && !f.objectMode && (O = new N("chunk", ["string", "Buffer"], c)), O ? (g(o, O), L.nextTick(T, O), !1) : !0;
  }
  M.prototype.write = function(o, f, c) {
    var T = this._writableState, O = !1, r = !T.objectMode && v(o);
    return r && !u.isBuffer(o) && (o = _(o)), typeof f == "function" && (c = f, f = null), r ? f = "buffer" : f || (f = T.defaultEncoding), typeof c != "function" && (c = E), T.ending ? A(this, c) : (r || H(this, T, o, c)) && (T.pendingcb++, O = ee(this, T, r, o, f, c)), O;
  }, M.prototype.cork = function() {
    this._writableState.corked++;
  }, M.prototype.uncork = function() {
    var o = this._writableState;
    o.corked && (o.corked--, !o.writing && !o.corked && !o.bufferProcessing && o.bufferedRequest && Y(this, o));
  }, M.prototype.setDefaultEncoding = function(f) {
    if (typeof f == "string" && (f = f.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((f + "").toLowerCase()) > -1)) throw new b(f);
    return this._writableState.defaultEncoding = f, this;
  }, Object.defineProperty(M.prototype, "writableBuffer", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._writableState && this._writableState.getBuffer();
    }
  });
  function J(o, f, c) {
    return !o.objectMode && o.decodeStrings !== !1 && typeof f == "string" && (f = u.from(f, c)), f;
  }
  Object.defineProperty(M.prototype, "writableHighWaterMark", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._writableState.highWaterMark;
    }
  });
  function ee(o, f, c, T, O, r) {
    if (!c) {
      var i = J(f, T, O);
      T !== i && (c = !0, O = "buffer", T = i);
    }
    var d = f.objectMode ? 1 : T.length;
    f.length += d;
    var x = f.length < f.highWaterMark;
    if (x || (f.needDrain = !0), f.writing || f.corked) {
      var F = f.lastBufferedRequest;
      f.lastBufferedRequest = {
        chunk: T,
        encoding: O,
        isBuf: c,
        callback: r,
        next: null
      }, F ? F.next = f.lastBufferedRequest : f.bufferedRequest = f.lastBufferedRequest, f.bufferedRequestCount += 1;
    } else
      j(o, f, !1, d, T, O, r);
    return x;
  }
  function j(o, f, c, T, O, r, i) {
    f.writelen = T, f.writecb = i, f.writing = !0, f.sync = !0, f.destroyed ? f.onwrite(new y("write")) : c ? o._writev(O, f.onwrite) : o._write(O, r, f.onwrite), f.sync = !1;
  }
  function W(o, f, c, T, O) {
    --f.pendingcb, c ? (L.nextTick(O, T), L.nextTick(V, o, f), o._writableState.errorEmitted = !0, g(o, T)) : (O(T), o._writableState.errorEmitted = !0, g(o, T), V(o, f));
  }
  function $(o) {
    o.writing = !1, o.writecb = null, o.length -= o.writelen, o.writelen = 0;
  }
  function he(o, f) {
    var c = o._writableState, T = c.sync, O = c.writecb;
    if (typeof O != "function") throw new S();
    if ($(c), f) W(o, c, T, f, O);
    else {
      var r = re(c) || o.destroyed;
      !r && !c.corked && !c.bufferProcessing && c.bufferedRequest && Y(o, c), T ? L.nextTick(K, o, c, r, O) : K(o, c, r, O);
    }
  }
  function K(o, f, c, T) {
    c || te(o, f), f.pendingcb--, T(), V(o, f);
  }
  function te(o, f) {
    f.length === 0 && f.needDrain && (f.needDrain = !1, o.emit("drain"));
  }
  function Y(o, f) {
    f.bufferProcessing = !0;
    var c = f.bufferedRequest;
    if (o._writev && c && c.next) {
      var T = f.bufferedRequestCount, O = new Array(T), r = f.corkedRequestsFree;
      r.entry = c;
      for (var i = 0, d = !0; c; )
        O[i] = c, c.isBuf || (d = !1), c = c.next, i += 1;
      O.allBuffers = d, j(o, f, !0, f.length, O, "", r.finish), f.pendingcb++, f.lastBufferedRequest = null, r.next ? (f.corkedRequestsFree = r.next, r.next = null) : f.corkedRequestsFree = new e(f), f.bufferedRequestCount = 0;
    } else {
      for (; c; ) {
        var x = c.chunk, F = c.encoding, D = c.callback, P = f.objectMode ? 1 : x.length;
        if (j(o, f, !1, P, x, F, D), c = c.next, f.bufferedRequestCount--, f.writing)
          break;
      }
      c === null && (f.lastBufferedRequest = null);
    }
    f.bufferedRequest = c, f.bufferProcessing = !1;
  }
  M.prototype._write = function(o, f, c) {
    c(new I("_write()"));
  }, M.prototype._writev = null, M.prototype.end = function(o, f, c) {
    var T = this._writableState;
    return typeof o == "function" ? (c = o, o = null, f = null) : typeof f == "function" && (c = f, f = null), o != null && this.write(o, f), T.corked && (T.corked = 1, this.uncork()), T.ending || ce(this, T, c), this;
  }, Object.defineProperty(M.prototype, "writableLength", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._writableState.length;
    }
  });
  function re(o) {
    return o.ending && o.length === 0 && o.bufferedRequest === null && !o.finished && !o.writing;
  }
  function de(o, f) {
    o._final(function(c) {
      f.pendingcb--, c && g(o, c), f.prefinished = !0, o.emit("prefinish"), V(o, f);
    });
  }
  function ie(o, f) {
    !f.prefinished && !f.finalCalled && (typeof o._final == "function" && !f.destroyed ? (f.pendingcb++, f.finalCalled = !0, L.nextTick(de, o, f)) : (f.prefinished = !0, o.emit("prefinish")));
  }
  function V(o, f) {
    var c = re(f);
    if (c && (ie(o, f), f.pendingcb === 0 && (f.finished = !0, o.emit("finish"), f.autoDestroy))) {
      var T = o._readableState;
      (!T || T.autoDestroy && T.endEmitted) && o.destroy();
    }
    return c;
  }
  function ce(o, f, c) {
    f.ending = !0, V(o, f), c && (f.finished ? L.nextTick(c) : o.once("finish", c)), f.ended = !0, o.writable = !1;
  }
  function ne(o, f, c) {
    var T = o.entry;
    for (o.entry = null; T; ) {
      var O = T.callback;
      f.pendingcb--, O(c), T = T.next;
    }
    f.corkedRequestsFree.next = o;
  }
  return Object.defineProperty(M.prototype, "destroyed", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._writableState === void 0 ? !1 : this._writableState.destroyed;
    },
    set: function(f) {
      this._writableState && (this._writableState.destroyed = f);
    }
  }), M.prototype.destroy = h.destroy, M.prototype._undestroy = h.undestroy, M.prototype._destroy = function(o, f) {
    f(o);
  }, Ne;
}
var Le, Xe;
function le() {
  if (Xe) return Le;
  Xe = 1;
  var e = Object.keys || function(w) {
    var m = [];
    for (var C in w) m.push(C);
    return m;
  };
  Le = _;
  var t = yt(), a = vt();
  G(_, t);
  for (var s = e(a.prototype), u = 0; u < s.length; u++) {
    var p = s[u];
    _.prototype[p] || (_.prototype[p] = a.prototype[p]);
  }
  function _(w) {
    if (!(this instanceof _)) return new _(w);
    t.call(this, w), a.call(this, w), this.allowHalfOpen = !0, w && (w.readable === !1 && (this.readable = !1), w.writable === !1 && (this.writable = !1), w.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", v)));
  }
  Object.defineProperty(_.prototype, "writableHighWaterMark", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._writableState.highWaterMark;
    }
  }), Object.defineProperty(_.prototype, "writableBuffer", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._writableState && this._writableState.getBuffer();
    }
  }), Object.defineProperty(_.prototype, "writableLength", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._writableState.length;
    }
  });
  function v() {
    this._writableState.ended || L.nextTick(h, this);
  }
  function h(w) {
    w.end();
  }
  return Object.defineProperty(_.prototype, "destroyed", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed;
    },
    set: function(m) {
      this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = m, this._writableState.destroyed = m);
    }
  }), Le;
}
var Ie = {}, He = { exports: {} };
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
(function(e, t) {
  var a = xe, s = a.Buffer;
  function u(_, v) {
    for (var h in _)
      v[h] = _[h];
  }
  s.from && s.alloc && s.allocUnsafe && s.allocUnsafeSlow ? e.exports = a : (u(a, t), t.Buffer = p);
  function p(_, v, h) {
    return s(_, v, h);
  }
  p.prototype = Object.create(s.prototype), u(s, p), p.from = function(_, v, h) {
    if (typeof _ == "number")
      throw new TypeError("Argument must not be a number");
    return s(_, v, h);
  }, p.alloc = function(_, v, h) {
    if (typeof _ != "number")
      throw new TypeError("Argument must be a number");
    var w = s(_);
    return v !== void 0 ? typeof h == "string" ? w.fill(v, h) : w.fill(v) : w.fill(0), w;
  }, p.allocUnsafe = function(_) {
    if (typeof _ != "number")
      throw new TypeError("Argument must be a number");
    return s(_);
  }, p.allocUnsafeSlow = function(_) {
    if (typeof _ != "number")
      throw new TypeError("Argument must be a number");
    return a.SlowBuffer(_);
  };
})(He, He.exports);
var X = He.exports, Je;
function Qe() {
  if (Je) return Ie;
  Je = 1;
  var e = X.Buffer, t = e.isEncoding || function(n) {
    switch (n = "" + n, n && n.toLowerCase()) {
      case "hex":
      case "utf8":
      case "utf-8":
      case "ascii":
      case "binary":
      case "base64":
      case "ucs2":
      case "ucs-2":
      case "utf16le":
      case "utf-16le":
      case "raw":
        return !0;
      default:
        return !1;
    }
  };
  function a(n) {
    if (!n) return "utf8";
    for (var l; ; )
      switch (n) {
        case "utf8":
        case "utf-8":
          return "utf8";
        case "ucs2":
        case "ucs-2":
        case "utf16le":
        case "utf-16le":
          return "utf16le";
        case "latin1":
        case "binary":
          return "latin1";
        case "base64":
        case "ascii":
        case "hex":
          return n;
        default:
          if (l) return;
          n = ("" + n).toLowerCase(), l = !0;
      }
  }
  function s(n) {
    var l = a(n);
    if (typeof l != "string" && (e.isEncoding === t || !t(n))) throw new Error("Unknown encoding: " + n);
    return l || n;
  }
  Ie.StringDecoder = u;
  function u(n) {
    this.encoding = s(n);
    var l;
    switch (this.encoding) {
      case "utf16le":
        this.text = C, this.end = N, l = 4;
        break;
      case "utf8":
        this.fillLast = h, l = 4;
        break;
      case "base64":
        this.text = I, this.end = S, l = 3;
        break;
      default:
        this.write = R, this.end = y;
        return;
    }
    this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(l);
  }
  u.prototype.write = function(n) {
    if (n.length === 0) return "";
    var l, b;
    if (this.lastNeed) {
      if (l = this.fillLast(n), l === void 0) return "";
      b = this.lastNeed, this.lastNeed = 0;
    } else
      b = 0;
    return b < n.length ? l ? l + this.text(n, b) : this.text(n, b) : l || "";
  }, u.prototype.end = m, u.prototype.text = w, u.prototype.fillLast = function(n) {
    if (this.lastNeed <= n.length)
      return n.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
    n.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, n.length), this.lastNeed -= n.length;
  };
  function p(n) {
    return n <= 127 ? 0 : n >> 5 === 6 ? 2 : n >> 4 === 14 ? 3 : n >> 3 === 30 ? 4 : n >> 6 === 2 ? -1 : -2;
  }
  function _(n, l, b) {
    var g = l.length - 1;
    if (g < b) return 0;
    var E = p(l[g]);
    return E >= 0 ? (E > 0 && (n.lastNeed = E - 1), E) : --g < b || E === -2 ? 0 : (E = p(l[g]), E >= 0 ? (E > 0 && (n.lastNeed = E - 2), E) : --g < b || E === -2 ? 0 : (E = p(l[g]), E >= 0 ? (E > 0 && (E === 2 ? E = 0 : n.lastNeed = E - 3), E) : 0));
  }
  function v(n, l, b) {
    if ((l[0] & 192) !== 128)
      return n.lastNeed = 0, "�";
    if (n.lastNeed > 1 && l.length > 1) {
      if ((l[1] & 192) !== 128)
        return n.lastNeed = 1, "�";
      if (n.lastNeed > 2 && l.length > 2 && (l[2] & 192) !== 128)
        return n.lastNeed = 2, "�";
    }
  }
  function h(n) {
    var l = this.lastTotal - this.lastNeed, b = v(this, n);
    if (b !== void 0) return b;
    if (this.lastNeed <= n.length)
      return n.copy(this.lastChar, l, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
    n.copy(this.lastChar, l, 0, n.length), this.lastNeed -= n.length;
  }
  function w(n, l) {
    var b = _(this, n, l);
    if (!this.lastNeed) return n.toString("utf8", l);
    this.lastTotal = b;
    var g = n.length - (b - this.lastNeed);
    return n.copy(this.lastChar, 0, g), n.toString("utf8", l, g);
  }
  function m(n) {
    var l = n && n.length ? this.write(n) : "";
    return this.lastNeed ? l + "�" : l;
  }
  function C(n, l) {
    if ((n.length - l) % 2 === 0) {
      var b = n.toString("utf16le", l);
      if (b) {
        var g = b.charCodeAt(b.length - 1);
        if (g >= 55296 && g <= 56319)
          return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = n[n.length - 2], this.lastChar[1] = n[n.length - 1], b.slice(0, -1);
      }
      return b;
    }
    return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = n[n.length - 1], n.toString("utf16le", l, n.length - 1);
  }
  function N(n) {
    var l = n && n.length ? this.write(n) : "";
    if (this.lastNeed) {
      var b = this.lastTotal - this.lastNeed;
      return l + this.lastChar.toString("utf16le", 0, b);
    }
    return l;
  }
  function I(n, l) {
    var b = (n.length - l) % 3;
    return b === 0 ? n.toString("base64", l) : (this.lastNeed = 3 - b, this.lastTotal = 3, b === 1 ? this.lastChar[0] = n[n.length - 1] : (this.lastChar[0] = n[n.length - 2], this.lastChar[1] = n[n.length - 1]), n.toString("base64", l, n.length - b));
  }
  function S(n) {
    var l = n && n.length ? this.write(n) : "";
    return this.lastNeed ? l + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : l;
  }
  function R(n) {
    return n.toString(this.encoding);
  }
  function y(n) {
    return n && n.length ? this.write(n) : "";
  }
  return Ie;
}
var Ze = Q.codes.ERR_STREAM_PREMATURE_CLOSE;
function Yt(e) {
  var t = !1;
  return function() {
    if (!t) {
      t = !0;
      for (var a = arguments.length, s = new Array(a), u = 0; u < a; u++)
        s[u] = arguments[u];
      e.apply(this, s);
    }
  };
}
function zt() {
}
function Xt(e) {
  return e.setHeader && typeof e.abort == "function";
}
function gt(e, t, a) {
  if (typeof t == "function") return gt(e, null, t);
  t || (t = {}), a = Yt(a || zt);
  var s = t.readable || t.readable !== !1 && e.readable, u = t.writable || t.writable !== !1 && e.writable, p = function() {
    e.writable || v();
  }, _ = e._writableState && e._writableState.finished, v = function() {
    u = !1, _ = !0, s || a.call(e);
  }, h = e._readableState && e._readableState.endEmitted, w = function() {
    s = !1, h = !0, u || a.call(e);
  }, m = function(S) {
    a.call(e, S);
  }, C = function() {
    var S;
    if (s && !h)
      return (!e._readableState || !e._readableState.ended) && (S = new Ze()), a.call(e, S);
    if (u && !_)
      return (!e._writableState || !e._writableState.ended) && (S = new Ze()), a.call(e, S);
  }, N = function() {
    e.req.on("finish", v);
  };
  return Xt(e) ? (e.on("complete", v), e.on("abort", C), e.req ? N() : e.on("request", N)) : u && !e._writableState && (e.on("end", p), e.on("close", p)), e.on("end", w), e.on("finish", v), t.error !== !1 && e.on("error", m), e.on("close", C), function() {
    e.removeListener("complete", v), e.removeListener("abort", C), e.removeListener("request", N), e.req && e.req.removeListener("finish", v), e.removeListener("end", p), e.removeListener("close", p), e.removeListener("finish", v), e.removeListener("end", w), e.removeListener("error", m), e.removeListener("close", C);
  };
}
var We = gt, Pe, et;
function Jt() {
  if (et) return Pe;
  et = 1;
  var e;
  function t(b, g, E) {
    return g = a(g), g in b ? Object.defineProperty(b, g, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : b[g] = E, b;
  }
  function a(b) {
    var g = s(b, "string");
    return typeof g == "symbol" ? g : String(g);
  }
  function s(b, g) {
    if (typeof b != "object" || b === null) return b;
    var E = b[Symbol.toPrimitive];
    if (E !== void 0) {
      var B = E.call(b, g || "default");
      if (typeof B != "object") return B;
      throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return (g === "string" ? String : Number)(b);
  }
  var u = We, p = Symbol("lastResolve"), _ = Symbol("lastReject"), v = Symbol("error"), h = Symbol("ended"), w = Symbol("lastPromise"), m = Symbol("handlePromise"), C = Symbol("stream");
  function N(b, g) {
    return {
      value: b,
      done: g
    };
  }
  function I(b) {
    var g = b[p];
    if (g !== null) {
      var E = b[C].read();
      E !== null && (b[w] = null, b[p] = null, b[_] = null, g(N(E, !1)));
    }
  }
  function S(b) {
    L.nextTick(I, b);
  }
  function R(b, g) {
    return function(E, B) {
      b.then(function() {
        if (g[h]) {
          E(N(void 0, !0));
          return;
        }
        g[m](E, B);
      }, B);
    };
  }
  var y = Object.getPrototypeOf(function() {
  }), n = Object.setPrototypeOf((e = {
    get stream() {
      return this[C];
    },
    next: function() {
      var g = this, E = this[v];
      if (E !== null)
        return Promise.reject(E);
      if (this[h])
        return Promise.resolve(N(void 0, !0));
      if (this[C].destroyed)
        return new Promise(function(A, H) {
          L.nextTick(function() {
            g[v] ? H(g[v]) : A(N(void 0, !0));
          });
        });
      var B = this[w], k;
      if (B)
        k = new Promise(R(B, this));
      else {
        var M = this[C].read();
        if (M !== null)
          return Promise.resolve(N(M, !1));
        k = new Promise(this[m]);
      }
      return this[w] = k, k;
    }
  }, t(e, Symbol.asyncIterator, function() {
    return this;
  }), t(e, "return", function() {
    var g = this;
    return new Promise(function(E, B) {
      g[C].destroy(null, function(k) {
        if (k) {
          B(k);
          return;
        }
        E(N(void 0, !0));
      });
    });
  }), e), y), l = function(g) {
    var E, B = Object.create(n, (E = {}, t(E, C, {
      value: g,
      writable: !0
    }), t(E, p, {
      value: null,
      writable: !0
    }), t(E, _, {
      value: null,
      writable: !0
    }), t(E, v, {
      value: null,
      writable: !0
    }), t(E, h, {
      value: g._readableState.endEmitted,
      writable: !0
    }), t(E, m, {
      value: function(M, A) {
        var H = B[C].read();
        H ? (B[w] = null, B[p] = null, B[_] = null, M(N(H, !1))) : (B[p] = M, B[_] = A);
      },
      writable: !0
    }), E));
    return B[w] = null, u(g, function(k) {
      if (k && k.code !== "ERR_STREAM_PREMATURE_CLOSE") {
        var M = B[_];
        M !== null && (B[w] = null, B[p] = null, B[_] = null, M(k)), B[v] = k;
        return;
      }
      var A = B[p];
      A !== null && (B[w] = null, B[p] = null, B[_] = null, A(N(void 0, !0))), B[h] = !0;
    }), g.on("readable", S.bind(null, B)), B;
  };
  return Pe = l, Pe;
}
var ke, tt;
function Qt() {
  return tt || (tt = 1, ke = function() {
    throw new Error("Readable.from is not available in the browser");
  }), ke;
}
var Fe, rt;
function yt() {
  if (rt) return Fe;
  rt = 1, Fe = A;
  var e;
  A.ReadableState = M, ht.EventEmitter;
  var t = function(i, d) {
    return i.listeners(d).length;
  }, a = dt, s = xe.Buffer, u = (typeof se < "u" ? se : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
  };
  function p(r) {
    return s.from(r);
  }
  function _(r) {
    return s.isBuffer(r) || r instanceof u;
  }
  var v = ct, h;
  v && v.debuglog ? h = v.debuglog("stream") : h = function() {
  };
  var w = It(), m = _t, C = pt, N = C.getHighWaterMark, I = Q.codes, S = I.ERR_INVALID_ARG_TYPE, R = I.ERR_STREAM_PUSH_AFTER_EOF, y = I.ERR_METHOD_NOT_IMPLEMENTED, n = I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, l, b, g;
  G(A, a);
  var E = m.errorOrDestroy, B = ["error", "close", "destroy", "pause", "resume"];
  function k(r, i, d) {
    if (typeof r.prependListener == "function") return r.prependListener(i, d);
    !r._events || !r._events[i] ? r.on(i, d) : Array.isArray(r._events[i]) ? r._events[i].unshift(d) : r._events[i] = [d, r._events[i]];
  }
  function M(r, i, d) {
    e = e || le(), r = r || {}, typeof d != "boolean" && (d = i instanceof e), this.objectMode = !!r.objectMode, d && (this.objectMode = this.objectMode || !!r.readableObjectMode), this.highWaterMark = N(this, r, "readableHighWaterMark", d), this.buffer = new w(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = r.emitClose !== !1, this.autoDestroy = !!r.autoDestroy, this.destroyed = !1, this.defaultEncoding = r.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, r.encoding && (l || (l = Qe().StringDecoder), this.decoder = new l(r.encoding), this.encoding = r.encoding);
  }
  function A(r) {
    if (e = e || le(), !(this instanceof A)) return new A(r);
    var i = this instanceof e;
    this._readableState = new M(r, this, i), this.readable = !0, r && (typeof r.read == "function" && (this._read = r.read), typeof r.destroy == "function" && (this._destroy = r.destroy)), a.call(this);
  }
  Object.defineProperty(A.prototype, "destroyed", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._readableState === void 0 ? !1 : this._readableState.destroyed;
    },
    set: function(i) {
      this._readableState && (this._readableState.destroyed = i);
    }
  }), A.prototype.destroy = m.destroy, A.prototype._undestroy = m.undestroy, A.prototype._destroy = function(r, i) {
    i(r);
  }, A.prototype.push = function(r, i) {
    var d = this._readableState, x;
    return d.objectMode ? x = !0 : typeof r == "string" && (i = i || d.defaultEncoding, i !== d.encoding && (r = s.from(r, i), i = ""), x = !0), H(this, r, i, !1, x);
  }, A.prototype.unshift = function(r) {
    return H(this, r, null, !0, !1);
  };
  function H(r, i, d, x, F) {
    h("readableAddChunk", i);
    var D = r._readableState;
    if (i === null)
      D.reading = !1, he(r, D);
    else {
      var P;
      if (F || (P = ee(D, i)), P)
        E(r, P);
      else if (D.objectMode || i && i.length > 0)
        if (typeof i != "string" && !D.objectMode && Object.getPrototypeOf(i) !== s.prototype && (i = p(i)), x)
          D.endEmitted ? E(r, new n()) : J(r, D, i, !0);
        else if (D.ended)
          E(r, new R());
        else {
          if (D.destroyed)
            return !1;
          D.reading = !1, D.decoder && !d ? (i = D.decoder.write(i), D.objectMode || i.length !== 0 ? J(r, D, i, !1) : Y(r, D)) : J(r, D, i, !1);
        }
      else x || (D.reading = !1, Y(r, D));
    }
    return !D.ended && (D.length < D.highWaterMark || D.length === 0);
  }
  function J(r, i, d, x) {
    i.flowing && i.length === 0 && !i.sync ? (i.awaitDrain = 0, r.emit("data", d)) : (i.length += i.objectMode ? 1 : d.length, x ? i.buffer.unshift(d) : i.buffer.push(d), i.needReadable && K(r)), Y(r, i);
  }
  function ee(r, i) {
    var d;
    return !_(i) && typeof i != "string" && i !== void 0 && !r.objectMode && (d = new S("chunk", ["string", "Buffer", "Uint8Array"], i)), d;
  }
  A.prototype.isPaused = function() {
    return this._readableState.flowing === !1;
  }, A.prototype.setEncoding = function(r) {
    l || (l = Qe().StringDecoder);
    var i = new l(r);
    this._readableState.decoder = i, this._readableState.encoding = this._readableState.decoder.encoding;
    for (var d = this._readableState.buffer.head, x = ""; d !== null; )
      x += i.write(d.data), d = d.next;
    return this._readableState.buffer.clear(), x !== "" && this._readableState.buffer.push(x), this._readableState.length = x.length, this;
  };
  var j = 1073741824;
  function W(r) {
    return r >= j ? r = j : (r--, r |= r >>> 1, r |= r >>> 2, r |= r >>> 4, r |= r >>> 8, r |= r >>> 16, r++), r;
  }
  function $(r, i) {
    return r <= 0 || i.length === 0 && i.ended ? 0 : i.objectMode ? 1 : r !== r ? i.flowing && i.length ? i.buffer.head.data.length : i.length : (r > i.highWaterMark && (i.highWaterMark = W(r)), r <= i.length ? r : i.ended ? i.length : (i.needReadable = !0, 0));
  }
  A.prototype.read = function(r) {
    h("read", r), r = parseInt(r, 10);
    var i = this._readableState, d = r;
    if (r !== 0 && (i.emittedReadable = !1), r === 0 && i.needReadable && ((i.highWaterMark !== 0 ? i.length >= i.highWaterMark : i.length > 0) || i.ended))
      return h("read: emitReadable", i.length, i.ended), i.length === 0 && i.ended ? c(this) : K(this), null;
    if (r = $(r, i), r === 0 && i.ended)
      return i.length === 0 && c(this), null;
    var x = i.needReadable;
    h("need readable", x), (i.length === 0 || i.length - r < i.highWaterMark) && (x = !0, h("length less than watermark", x)), i.ended || i.reading ? (x = !1, h("reading or ended", x)) : x && (h("do read"), i.reading = !0, i.sync = !0, i.length === 0 && (i.needReadable = !0), this._read(i.highWaterMark), i.sync = !1, i.reading || (r = $(d, i)));
    var F;
    return r > 0 ? F = f(r, i) : F = null, F === null ? (i.needReadable = i.length <= i.highWaterMark, r = 0) : (i.length -= r, i.awaitDrain = 0), i.length === 0 && (i.ended || (i.needReadable = !0), d !== r && i.ended && c(this)), F !== null && this.emit("data", F), F;
  };
  function he(r, i) {
    if (h("onEofChunk"), !i.ended) {
      if (i.decoder) {
        var d = i.decoder.end();
        d && d.length && (i.buffer.push(d), i.length += i.objectMode ? 1 : d.length);
      }
      i.ended = !0, i.sync ? K(r) : (i.needReadable = !1, i.emittedReadable || (i.emittedReadable = !0, te(r)));
    }
  }
  function K(r) {
    var i = r._readableState;
    h("emitReadable", i.needReadable, i.emittedReadable), i.needReadable = !1, i.emittedReadable || (h("emitReadable", i.flowing), i.emittedReadable = !0, L.nextTick(te, r));
  }
  function te(r) {
    var i = r._readableState;
    h("emitReadable_", i.destroyed, i.length, i.ended), !i.destroyed && (i.length || i.ended) && (r.emit("readable"), i.emittedReadable = !1), i.needReadable = !i.flowing && !i.ended && i.length <= i.highWaterMark, o(r);
  }
  function Y(r, i) {
    i.readingMore || (i.readingMore = !0, L.nextTick(re, r, i));
  }
  function re(r, i) {
    for (; !i.reading && !i.ended && (i.length < i.highWaterMark || i.flowing && i.length === 0); ) {
      var d = i.length;
      if (h("maybeReadMore read 0"), r.read(0), d === i.length)
        break;
    }
    i.readingMore = !1;
  }
  A.prototype._read = function(r) {
    E(this, new y("_read()"));
  }, A.prototype.pipe = function(r, i) {
    var d = this, x = this._readableState;
    switch (x.pipesCount) {
      case 0:
        x.pipes = r;
        break;
      case 1:
        x.pipes = [x.pipes, r];
        break;
      default:
        x.pipes.push(r);
        break;
    }
    x.pipesCount += 1, h("pipe count=%d opts=%j", x.pipesCount, i);
    var F = (!i || i.end !== !1) && r !== L.stdout && r !== L.stderr, D = F ? ae : _e;
    x.endEmitted ? L.nextTick(D) : d.once("end", D), r.on("unpipe", P);
    function P(fe, oe) {
      h("onunpipe"), fe === d && oe && oe.hasUnpiped === !1 && (oe.hasUnpiped = !0, Dt());
    }
    function ae() {
      h("onend"), r.end();
    }
    var we = de(d);
    r.on("drain", we);
    var $e = !1;
    function Dt() {
      h("cleanup"), r.removeListener("close", Ce), r.removeListener("finish", Me), r.removeListener("drain", we), r.removeListener("error", Be), r.removeListener("unpipe", P), d.removeListener("end", ae), d.removeListener("end", _e), d.removeListener("data", Ge), $e = !0, x.awaitDrain && (!r._writableState || r._writableState.needDrain) && we();
    }
    d.on("data", Ge);
    function Ge(fe) {
      h("ondata");
      var oe = r.write(fe);
      h("dest.write", oe), oe === !1 && ((x.pipesCount === 1 && x.pipes === r || x.pipesCount > 1 && O(x.pipes, r) !== -1) && !$e && (h("false write response, pause", x.awaitDrain), x.awaitDrain++), d.pause());
    }
    function Be(fe) {
      h("onerror", fe), _e(), r.removeListener("error", Be), t(r, "error") === 0 && E(r, fe);
    }
    k(r, "error", Be);
    function Ce() {
      r.removeListener("finish", Me), _e();
    }
    r.once("close", Ce);
    function Me() {
      h("onfinish"), r.removeListener("close", Ce), _e();
    }
    r.once("finish", Me);
    function _e() {
      h("unpipe"), d.unpipe(r);
    }
    return r.emit("pipe", d), x.flowing || (h("pipe resume"), d.resume()), r;
  };
  function de(r) {
    return function() {
      var d = r._readableState;
      h("pipeOnDrain", d.awaitDrain), d.awaitDrain && d.awaitDrain--, d.awaitDrain === 0 && t(r, "data") && (d.flowing = !0, o(r));
    };
  }
  A.prototype.unpipe = function(r) {
    var i = this._readableState, d = {
      hasUnpiped: !1
    };
    if (i.pipesCount === 0) return this;
    if (i.pipesCount === 1)
      return r && r !== i.pipes ? this : (r || (r = i.pipes), i.pipes = null, i.pipesCount = 0, i.flowing = !1, r && r.emit("unpipe", this, d), this);
    if (!r) {
      var x = i.pipes, F = i.pipesCount;
      i.pipes = null, i.pipesCount = 0, i.flowing = !1;
      for (var D = 0; D < F; D++) x[D].emit("unpipe", this, {
        hasUnpiped: !1
      });
      return this;
    }
    var P = O(i.pipes, r);
    return P === -1 ? this : (i.pipes.splice(P, 1), i.pipesCount -= 1, i.pipesCount === 1 && (i.pipes = i.pipes[0]), r.emit("unpipe", this, d), this);
  }, A.prototype.on = function(r, i) {
    var d = a.prototype.on.call(this, r, i), x = this._readableState;
    return r === "data" ? (x.readableListening = this.listenerCount("readable") > 0, x.flowing !== !1 && this.resume()) : r === "readable" && !x.endEmitted && !x.readableListening && (x.readableListening = x.needReadable = !0, x.flowing = !1, x.emittedReadable = !1, h("on readable", x.length, x.reading), x.length ? K(this) : x.reading || L.nextTick(V, this)), d;
  }, A.prototype.addListener = A.prototype.on, A.prototype.removeListener = function(r, i) {
    var d = a.prototype.removeListener.call(this, r, i);
    return r === "readable" && L.nextTick(ie, this), d;
  }, A.prototype.removeAllListeners = function(r) {
    var i = a.prototype.removeAllListeners.apply(this, arguments);
    return (r === "readable" || r === void 0) && L.nextTick(ie, this), i;
  };
  function ie(r) {
    var i = r._readableState;
    i.readableListening = r.listenerCount("readable") > 0, i.resumeScheduled && !i.paused ? i.flowing = !0 : r.listenerCount("data") > 0 && r.resume();
  }
  function V(r) {
    h("readable nexttick read 0"), r.read(0);
  }
  A.prototype.resume = function() {
    var r = this._readableState;
    return r.flowing || (h("resume"), r.flowing = !r.readableListening, ce(this, r)), r.paused = !1, this;
  };
  function ce(r, i) {
    i.resumeScheduled || (i.resumeScheduled = !0, L.nextTick(ne, r, i));
  }
  function ne(r, i) {
    h("resume", i.reading), i.reading || r.read(0), i.resumeScheduled = !1, r.emit("resume"), o(r), i.flowing && !i.reading && r.read(0);
  }
  A.prototype.pause = function() {
    return h("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (h("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
  };
  function o(r) {
    var i = r._readableState;
    for (h("flow", i.flowing); i.flowing && r.read() !== null; ) ;
  }
  A.prototype.wrap = function(r) {
    var i = this, d = this._readableState, x = !1;
    r.on("end", function() {
      if (h("wrapped end"), d.decoder && !d.ended) {
        var P = d.decoder.end();
        P && P.length && i.push(P);
      }
      i.push(null);
    }), r.on("data", function(P) {
      if (h("wrapped data"), d.decoder && (P = d.decoder.write(P)), !(d.objectMode && P == null) && !(!d.objectMode && (!P || !P.length))) {
        var ae = i.push(P);
        ae || (x = !0, r.pause());
      }
    });
    for (var F in r)
      this[F] === void 0 && typeof r[F] == "function" && (this[F] = /* @__PURE__ */ function(ae) {
        return function() {
          return r[ae].apply(r, arguments);
        };
      }(F));
    for (var D = 0; D < B.length; D++)
      r.on(B[D], this.emit.bind(this, B[D]));
    return this._read = function(P) {
      h("wrapped _read", P), x && (x = !1, r.resume());
    }, this;
  }, typeof Symbol == "function" && (A.prototype[Symbol.asyncIterator] = function() {
    return b === void 0 && (b = Jt()), b(this);
  }), Object.defineProperty(A.prototype, "readableHighWaterMark", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._readableState.highWaterMark;
    }
  }), Object.defineProperty(A.prototype, "readableBuffer", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._readableState && this._readableState.buffer;
    }
  }), Object.defineProperty(A.prototype, "readableFlowing", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._readableState.flowing;
    },
    set: function(i) {
      this._readableState && (this._readableState.flowing = i);
    }
  }), A._fromList = f, Object.defineProperty(A.prototype, "readableLength", {
    // making it explicit this property is not enumerable
    // because otherwise some prototype manipulation in
    // userland will fail
    enumerable: !1,
    get: function() {
      return this._readableState.length;
    }
  });
  function f(r, i) {
    if (i.length === 0) return null;
    var d;
    return i.objectMode ? d = i.buffer.shift() : !r || r >= i.length ? (i.decoder ? d = i.buffer.join("") : i.buffer.length === 1 ? d = i.buffer.first() : d = i.buffer.concat(i.length), i.buffer.clear()) : d = i.buffer.consume(r, i.decoder), d;
  }
  function c(r) {
    var i = r._readableState;
    h("endReadable", i.endEmitted), i.endEmitted || (i.ended = !0, L.nextTick(T, i, r));
  }
  function T(r, i) {
    if (h("endReadableNT", r.endEmitted, r.length), !r.endEmitted && r.length === 0 && (r.endEmitted = !0, i.readable = !1, i.emit("end"), r.autoDestroy)) {
      var d = i._writableState;
      (!d || d.autoDestroy && d.finished) && i.destroy();
    }
  }
  typeof Symbol == "function" && (A.from = function(r, i) {
    return g === void 0 && (g = Qt()), g(A, r, i);
  });
  function O(r, i) {
    for (var d = 0, x = r.length; d < x; d++)
      if (r[d] === i) return d;
    return -1;
  }
  return Fe;
}
var wt = z, Se = Q.codes, Zt = Se.ERR_METHOD_NOT_IMPLEMENTED, er = Se.ERR_MULTIPLE_CALLBACK, tr = Se.ERR_TRANSFORM_ALREADY_TRANSFORMING, rr = Se.ERR_TRANSFORM_WITH_LENGTH_0, Re = le();
G(z, Re);
function ir(e, t) {
  var a = this._transformState;
  a.transforming = !1;
  var s = a.writecb;
  if (s === null)
    return this.emit("error", new er());
  a.writechunk = null, a.writecb = null, t != null && this.push(t), s(e);
  var u = this._readableState;
  u.reading = !1, (u.needReadable || u.length < u.highWaterMark) && this._read(u.highWaterMark);
}
function z(e) {
  if (!(this instanceof z)) return new z(e);
  Re.call(this, e), this._transformState = {
    afterTransform: ir.bind(this),
    needTransform: !1,
    transforming: !1,
    writecb: null,
    writechunk: null,
    writeencoding: null
  }, 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", nr);
}
function nr() {
  var e = this;
  typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, a) {
    it(e, t, a);
  }) : it(this, null, null);
}
z.prototype.push = function(e, t) {
  return this._transformState.needTransform = !1, Re.prototype.push.call(this, e, t);
};
z.prototype._transform = function(e, t, a) {
  a(new Zt("_transform()"));
};
z.prototype._write = function(e, t, a) {
  var s = this._transformState;
  if (s.writecb = a, s.writechunk = e, s.writeencoding = t, !s.transforming) {
    var u = this._readableState;
    (s.needTransform || u.needReadable || u.length < u.highWaterMark) && this._read(u.highWaterMark);
  }
};
z.prototype._read = function(e) {
  var t = this._transformState;
  t.writechunk !== null && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0;
};
z.prototype._destroy = function(e, t) {
  Re.prototype._destroy.call(this, e, function(a) {
    t(a);
  });
};
function it(e, t, a) {
  if (t) return e.emit("error", t);
  if (a != null && e.push(a), e._writableState.length) throw new rr();
  if (e._transformState.transforming) throw new tr();
  return e.push(null);
}
var ar = be, Et = wt;
G(be, Et);
function be(e) {
  if (!(this instanceof be)) return new be(e);
  Et.call(this, e);
}
be.prototype._transform = function(e, t, a) {
  a(null, e);
};
var je;
function fr(e) {
  var t = !1;
  return function() {
    t || (t = !0, e.apply(void 0, arguments));
  };
}
var xt = Q.codes, or = xt.ERR_MISSING_ARGS, sr = xt.ERR_STREAM_DESTROYED;
function nt(e) {
  if (e) throw e;
}
function lr(e) {
  return e.setHeader && typeof e.abort == "function";
}
function ur(e, t, a, s) {
  s = fr(s);
  var u = !1;
  e.on("close", function() {
    u = !0;
  }), je === void 0 && (je = We), je(e, {
    readable: t,
    writable: a
  }, function(_) {
    if (_) return s(_);
    u = !0, s();
  });
  var p = !1;
  return function(_) {
    if (!u && !p) {
      if (p = !0, lr(e)) return e.abort();
      if (typeof e.destroy == "function") return e.destroy();
      s(_ || new sr("pipe"));
    }
  };
}
function at(e) {
  e();
}
function hr(e, t) {
  return e.pipe(t);
}
function dr(e) {
  return !e.length || typeof e[e.length - 1] != "function" ? nt : e.pop();
}
function cr() {
  for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
    t[a] = arguments[a];
  var s = dr(t);
  if (Array.isArray(t[0]) && (t = t[0]), t.length < 2)
    throw new or("streams");
  var u, p = t.map(function(_, v) {
    var h = v < t.length - 1, w = v > 0;
    return ur(_, h, w, function(m) {
      u || (u = m), m && p.forEach(at), !h && (p.forEach(at), s(u));
    });
  });
  return t.reduce(hr);
}
var _r = cr;
(function(e, t) {
  t = e.exports = yt(), t.Stream = t, t.Readable = t, t.Writable = vt(), t.Duplex = le(), t.Transform = wt, t.PassThrough = ar, t.finished = We, t.pipeline = _r;
})(Ue, Ue.exports);
var ui = Ue.exports, St = { exports: {} }, Rt = X.Buffer;
function me(e, t) {
  this._block = Rt.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
}
me.prototype.update = function(e, t) {
  typeof e == "string" && (t = t || "utf8", e = Rt.from(e, t));
  for (var a = this._block, s = this._blockSize, u = e.length, p = this._len, _ = 0; _ < u; ) {
    for (var v = p % s, h = Math.min(u - _, s - v), w = 0; w < h; w++)
      a[v + w] = e[_ + w];
    p += h, _ += h, p % s === 0 && this._update(a);
  }
  return this._len += u, this;
};
me.prototype.digest = function(e) {
  var t = this._len % this._blockSize;
  this._block[t] = 128, this._block.fill(0, t + 1), t >= this._finalSize && (this._update(this._block), this._block.fill(0));
  var a = this._len * 8;
  if (a <= 4294967295)
    this._block.writeUInt32BE(a, this._blockSize - 4);
  else {
    var s = (a & 4294967295) >>> 0, u = (a - s) / 4294967296;
    this._block.writeUInt32BE(u, this._blockSize - 8), this._block.writeUInt32BE(s, this._blockSize - 4);
  }
  this._update(this._block);
  var p = this._hash();
  return e ? p.toString(e) : p;
};
me.prototype._update = function() {
  throw new Error("_update must be implemented by subclass");
};
var ue = me, br = G, mt = ue, pr = X.Buffer, vr = [
  1518500249,
  1859775393,
  -1894007588,
  -899497514
], gr = new Array(80);
function pe() {
  this.init(), this._w = gr, mt.call(this, 64, 56);
}
br(pe, mt);
pe.prototype.init = function() {
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
};
function yr(e) {
  return e << 5 | e >>> 27;
}
function wr(e) {
  return e << 30 | e >>> 2;
}
function Er(e, t, a, s) {
  return e === 0 ? t & a | ~t & s : e === 2 ? t & a | t & s | a & s : t ^ a ^ s;
}
pe.prototype._update = function(e) {
  for (var t = this._w, a = this._a | 0, s = this._b | 0, u = this._c | 0, p = this._d | 0, _ = this._e | 0, v = 0; v < 16; ++v) t[v] = e.readInt32BE(v * 4);
  for (; v < 80; ++v) t[v] = t[v - 3] ^ t[v - 8] ^ t[v - 14] ^ t[v - 16];
  for (var h = 0; h < 80; ++h) {
    var w = ~~(h / 20), m = yr(a) + Er(w, s, u, p) + _ + t[h] + vr[w] | 0;
    _ = p, p = u, u = wr(s), s = a, a = m;
  }
  this._a = a + this._a | 0, this._b = s + this._b | 0, this._c = u + this._c | 0, this._d = p + this._d | 0, this._e = _ + this._e | 0;
};
pe.prototype._hash = function() {
  var e = pr.allocUnsafe(20);
  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;
};
var xr = pe, Sr = G, Tt = ue, Rr = X.Buffer, mr = [
  1518500249,
  1859775393,
  -1894007588,
  -899497514
], Tr = new Array(80);
function ve() {
  this.init(), this._w = Tr, Tt.call(this, 64, 56);
}
Sr(ve, Tt);
ve.prototype.init = function() {
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
};
function Ar(e) {
  return e << 1 | e >>> 31;
}
function Br(e) {
  return e << 5 | e >>> 27;
}
function Cr(e) {
  return e << 30 | e >>> 2;
}
function Mr(e, t, a, s) {
  return e === 0 ? t & a | ~t & s : e === 2 ? t & a | t & s | a & s : t ^ a ^ s;
}
ve.prototype._update = function(e) {
  for (var t = this._w, a = this._a | 0, s = this._b | 0, u = this._c | 0, p = this._d | 0, _ = this._e | 0, v = 0; v < 16; ++v) t[v] = e.readInt32BE(v * 4);
  for (; v < 80; ++v) t[v] = Ar(t[v - 3] ^ t[v - 8] ^ t[v - 14] ^ t[v - 16]);
  for (var h = 0; h < 80; ++h) {
    var w = ~~(h / 20), m = Br(a) + Mr(w, s, u, p) + _ + t[h] + mr[w] | 0;
    _ = p, p = u, u = Cr(s), s = a, a = m;
  }
  this._a = a + this._a | 0, this._b = s + this._b | 0, this._c = u + this._c | 0, this._d = p + this._d | 0, this._e = _ + this._e | 0;
};
ve.prototype._hash = function() {
  var e = Rr.allocUnsafe(20);
  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;
};
var Dr = ve, Or = G, At = ue, Nr = X.Buffer, Lr = [
  1116352408,
  1899447441,
  3049323471,
  3921009573,
  961987163,
  1508970993,
  2453635748,
  2870763221,
  3624381080,
  310598401,
  607225278,
  1426881987,
  1925078388,
  2162078206,
  2614888103,
  3248222580,
  3835390401,
  4022224774,
  264347078,
  604807628,
  770255983,
  1249150122,
  1555081692,
  1996064986,
  2554220882,
  2821834349,
  2952996808,
  3210313671,
  3336571891,
  3584528711,
  113926993,
  338241895,
  666307205,
  773529912,
  1294757372,
  1396182291,
  1695183700,
  1986661051,
  2177026350,
  2456956037,
  2730485921,
  2820302411,
  3259730800,
  3345764771,
  3516065817,
  3600352804,
  4094571909,
  275423344,
  430227734,
  506948616,
  659060556,
  883997877,
  958139571,
  1322822218,
  1537002063,
  1747873779,
  1955562222,
  2024104815,
  2227730452,
  2361852424,
  2428436474,
  2756734187,
  3204031479,
  3329325298
], Ir = new Array(64);
function ge() {
  this.init(), this._w = Ir, At.call(this, 64, 56);
}
Or(ge, At);
ge.prototype.init = function() {
  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;
};
function Pr(e, t, a) {
  return a ^ e & (t ^ a);
}
function kr(e, t, a) {
  return e & t | a & (e | t);
}
function Fr(e) {
  return (e >>> 2 | e << 30) ^ (e >>> 13 | e << 19) ^ (e >>> 22 | e << 10);
}
function jr(e) {
  return (e >>> 6 | e << 26) ^ (e >>> 11 | e << 21) ^ (e >>> 25 | e << 7);
}
function Ur(e) {
  return (e >>> 7 | e << 25) ^ (e >>> 18 | e << 14) ^ e >>> 3;
}
function qr(e) {
  return (e >>> 17 | e << 15) ^ (e >>> 19 | e << 13) ^ e >>> 10;
}
ge.prototype._update = function(e) {
  for (var t = this._w, a = this._a | 0, s = this._b | 0, u = this._c | 0, p = this._d | 0, _ = this._e | 0, v = this._f | 0, h = this._g | 0, w = this._h | 0, m = 0; m < 16; ++m) t[m] = e.readInt32BE(m * 4);
  for (; m < 64; ++m) t[m] = qr(t[m - 2]) + t[m - 7] + Ur(t[m - 15]) + t[m - 16] | 0;
  for (var C = 0; C < 64; ++C) {
    var N = w + jr(_) + Pr(_, v, h) + Lr[C] + t[C] | 0, I = Fr(a) + kr(a, s, u) | 0;
    w = h, h = v, v = _, _ = p + N | 0, p = u, u = s, s = a, a = N + I | 0;
  }
  this._a = a + this._a | 0, this._b = s + this._b | 0, this._c = u + this._c | 0, this._d = p + this._d | 0, this._e = _ + this._e | 0, this._f = v + this._f | 0, this._g = h + this._g | 0, this._h = w + this._h | 0;
};
ge.prototype._hash = function() {
  var e = Nr.allocUnsafe(32);
  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;
};
var Bt = ge, Hr = G, Wr = Bt, $r = ue, Gr = X.Buffer, Vr = new Array(64);
function Te() {
  this.init(), this._w = Vr, $r.call(this, 64, 56);
}
Hr(Te, Wr);
Te.prototype.init = function() {
  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;
};
Te.prototype._hash = function() {
  var e = Gr.allocUnsafe(28);
  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;
};
var Kr = Te, Yr = G, Ct = ue, zr = X.Buffer, ft = [
  1116352408,
  3609767458,
  1899447441,
  602891725,
  3049323471,
  3964484399,
  3921009573,
  2173295548,
  961987163,
  4081628472,
  1508970993,
  3053834265,
  2453635748,
  2937671579,
  2870763221,
  3664609560,
  3624381080,
  2734883394,
  310598401,
  1164996542,
  607225278,
  1323610764,
  1426881987,
  3590304994,
  1925078388,
  4068182383,
  2162078206,
  991336113,
  2614888103,
  633803317,
  3248222580,
  3479774868,
  3835390401,
  2666613458,
  4022224774,
  944711139,
  264347078,
  2341262773,
  604807628,
  2007800933,
  770255983,
  1495990901,
  1249150122,
  1856431235,
  1555081692,
  3175218132,
  1996064986,
  2198950837,
  2554220882,
  3999719339,
  2821834349,
  766784016,
  2952996808,
  2566594879,
  3210313671,
  3203337956,
  3336571891,
  1034457026,
  3584528711,
  2466948901,
  113926993,
  3758326383,
  338241895,
  168717936,
  666307205,
  1188179964,
  773529912,
  1546045734,
  1294757372,
  1522805485,
  1396182291,
  2643833823,
  1695183700,
  2343527390,
  1986661051,
  1014477480,
  2177026350,
  1206759142,
  2456956037,
  344077627,
  2730485921,
  1290863460,
  2820302411,
  3158454273,
  3259730800,
  3505952657,
  3345764771,
  106217008,
  3516065817,
  3606008344,
  3600352804,
  1432725776,
  4094571909,
  1467031594,
  275423344,
  851169720,
  430227734,
  3100823752,
  506948616,
  1363258195,
  659060556,
  3750685593,
  883997877,
  3785050280,
  958139571,
  3318307427,
  1322822218,
  3812723403,
  1537002063,
  2003034995,
  1747873779,
  3602036899,
  1955562222,
  1575990012,
  2024104815,
  1125592928,
  2227730452,
  2716904306,
  2361852424,
  442776044,
  2428436474,
  593698344,
  2756734187,
  3733110249,
  3204031479,
  2999351573,
  3329325298,
  3815920427,
  3391569614,
  3928383900,
  3515267271,
  566280711,
  3940187606,
  3454069534,
  4118630271,
  4000239992,
  116418474,
  1914138554,
  174292421,
  2731055270,
  289380356,
  3203993006,
  460393269,
  320620315,
  685471733,
  587496836,
  852142971,
  1086792851,
  1017036298,
  365543100,
  1126000580,
  2618297676,
  1288033470,
  3409855158,
  1501505948,
  4234509866,
  1607167915,
  987167468,
  1816402316,
  1246189591
], Xr = new Array(160);
function ye() {
  this.init(), this._w = Xr, Ct.call(this, 128, 112);
}
Yr(ye, Ct);
ye.prototype.init = function() {
  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;
};
function ot(e, t, a) {
  return a ^ e & (t ^ a);
}
function st(e, t, a) {
  return e & t | a & (e | t);
}
function lt(e, t) {
  return (e >>> 28 | t << 4) ^ (t >>> 2 | e << 30) ^ (t >>> 7 | e << 25);
}
function ut(e, t) {
  return (e >>> 14 | t << 18) ^ (e >>> 18 | t << 14) ^ (t >>> 9 | e << 23);
}
function Jr(e, t) {
  return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ e >>> 7;
}
function Qr(e, t) {
  return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ (e >>> 7 | t << 25);
}
function Zr(e, t) {
  return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ e >>> 6;
}
function ei(e, t) {
  return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ (e >>> 6 | t << 26);
}
function U(e, t) {
  return e >>> 0 < t >>> 0 ? 1 : 0;
}
ye.prototype._update = function(e) {
  for (var t = this._w, a = this._ah | 0, s = this._bh | 0, u = this._ch | 0, p = this._dh | 0, _ = this._eh | 0, v = this._fh | 0, h = this._gh | 0, w = this._hh | 0, m = this._al | 0, C = this._bl | 0, N = this._cl | 0, I = this._dl | 0, S = this._el | 0, R = this._fl | 0, y = this._gl | 0, n = this._hl | 0, l = 0; l < 32; l += 2)
    t[l] = e.readInt32BE(l * 4), t[l + 1] = e.readInt32BE(l * 4 + 4);
  for (; l < 160; l += 2) {
    var b = t[l - 30], g = t[l - 15 * 2 + 1], E = Jr(b, g), B = Qr(g, b);
    b = t[l - 2 * 2], g = t[l - 2 * 2 + 1];
    var k = Zr(b, g), M = ei(g, b), A = t[l - 7 * 2], H = t[l - 7 * 2 + 1], J = t[l - 16 * 2], ee = t[l - 16 * 2 + 1], j = B + H | 0, W = E + A + U(j, B) | 0;
    j = j + M | 0, W = W + k + U(j, M) | 0, j = j + ee | 0, W = W + J + U(j, ee) | 0, t[l] = W, t[l + 1] = j;
  }
  for (var $ = 0; $ < 160; $ += 2) {
    W = t[$], j = t[$ + 1];
    var he = st(a, s, u), K = st(m, C, N), te = lt(a, m), Y = lt(m, a), re = ut(_, S), de = ut(S, _), ie = ft[$], V = ft[$ + 1], ce = ot(_, v, h), ne = ot(S, R, y), o = n + de | 0, f = w + re + U(o, n) | 0;
    o = o + ne | 0, f = f + ce + U(o, ne) | 0, o = o + V | 0, f = f + ie + U(o, V) | 0, o = o + j | 0, f = f + W + U(o, j) | 0;
    var c = Y + K | 0, T = te + he + U(c, Y) | 0;
    w = h, n = y, h = v, y = R, v = _, R = S, S = I + o | 0, _ = p + f + U(S, I) | 0, p = u, I = N, u = s, N = C, s = a, C = m, m = o + c | 0, a = f + T + U(m, o) | 0;
  }
  this._al = this._al + m | 0, this._bl = this._bl + C | 0, this._cl = this._cl + N | 0, this._dl = this._dl + I | 0, this._el = this._el + S | 0, this._fl = this._fl + R | 0, this._gl = this._gl + y | 0, this._hl = this._hl + n | 0, this._ah = this._ah + a + U(this._al, m) | 0, this._bh = this._bh + s + U(this._bl, C) | 0, this._ch = this._ch + u + U(this._cl, N) | 0, this._dh = this._dh + p + U(this._dl, I) | 0, this._eh = this._eh + _ + U(this._el, S) | 0, this._fh = this._fh + v + U(this._fl, R) | 0, this._gh = this._gh + h + U(this._gl, y) | 0, this._hh = this._hh + w + U(this._hl, n) | 0;
};
ye.prototype._hash = function() {
  var e = zr.allocUnsafe(64);
  function t(a, s, u) {
    e.writeInt32BE(a, u), e.writeInt32BE(s, u + 4);
  }
  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;
};
var Mt = ye, ti = G, ri = Mt, ii = ue, ni = X.Buffer, ai = new Array(160);
function Ae() {
  this.init(), this._w = ai, ii.call(this, 128, 112);
}
ti(Ae, ri);
Ae.prototype.init = function() {
  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;
};
Ae.prototype._hash = function() {
  var e = ni.allocUnsafe(48);
  function t(a, s, u) {
    e.writeInt32BE(a, u), e.writeInt32BE(s, u + 4);
  }
  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;
};
var fi = Ae, Z = St.exports = function(t) {
  t = t.toLowerCase();
  var a = Z[t];
  if (!a) throw new Error(t + " is not supported (we accept pull requests)");
  return new a();
};
Z.sha = xr;
Z.sha1 = Dr;
Z.sha224 = Kr;
Z.sha256 = Bt;
Z.sha384 = fi;
Z.sha512 = Mt;
var hi = St.exports;
export {
  X as a,
  Qe as b,
  ct as c,
  ui as r,
  hi as s
};
//# sourceMappingURL=index-CLLPgLm4.js.map
