UNPKG

tdg-react-doc-viewer

Version:
1,545 lines 104 kB
import { c as G, a as tr, d as Br, p as F, B as ue, g as Ir } from "./index-49xxfcbR.js"; import { s as kr, c as _e, r as Fr, g as je, t as ht, a as Ur, e as pt, b as qr, d as $r, f as Wr, h as Hr, i as xr, j as Gr, u as Vr } from "./url-DGSHElww.js"; function zr(e, t) { for (var r = 0; r < t.length; r++) { const o = t[r]; if (typeof o != "string" && !Array.isArray(o)) { for (const a in o) if (a !== "default" && !(a in e)) { const d = Object.getOwnPropertyDescriptor(o, a); d && Object.defineProperty(e, a, d.get ? d : { enumerable: !0, get: () => o[a] }); } } } return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" })); } var yt = {}, rr = { exports: {} }, gt = {}; (function(e) { e.fetch = a(G.fetch) && a(G.ReadableStream), e.writableStream = a(G.WritableStream), e.abortController = a(G.AbortController); var t; function r() { if (t !== void 0) return t; if (G.XMLHttpRequest) { t = new G.XMLHttpRequest(); try { t.open("GET", G.XDomainRequest ? "/" : "https://example.com"); } catch { t = null; } } else t = null; return t; } function o(d) { var l = r(); if (!l) return !1; try { return l.responseType = d, l.responseType === d; } catch { } return !1; } e.arraybuffer = e.fetch || o("arraybuffer"), e.msstream = !e.fetch && o("ms-stream"), e.mozchunkedarraybuffer = !e.fetch && o("moz-chunked-arraybuffer"), e.overrideMimeType = e.fetch || (r() ? a(r().overrideMimeType) : !1); function a(d) { return typeof d == "function"; } t = null; })(gt); var nt = { exports: {} }; typeof Object.create == "function" ? nt.exports = function(t, r) { r && (t.super_ = r, t.prototype = Object.create(r.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } })); } : nt.exports = function(t, r) { if (r) { t.super_ = r; var o = function() { }; o.prototype = r.prototype, t.prototype = new o(), t.prototype.constructor = t; } }; var se = nt.exports, Ce = {}, it = { exports: {} }, bt = { exports: {} }, ge = typeof Reflect == "object" ? Reflect : null, At = ge && typeof ge.apply == "function" ? ge.apply : function(t, r, o) { return Function.prototype.apply.call(t, r, o); }, Re; ge && typeof ge.ownKeys == "function" ? Re = ge.ownKeys : Object.getOwnPropertySymbols ? Re = function(t) { return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)); } : Re = function(t) { return Object.getOwnPropertyNames(t); }; function Kr(e) { console && console.warn && console.warn(e); } var nr = Number.isNaN || function(t) { return t !== t; }; function W() { W.init.call(this); } bt.exports = W; bt.exports.once = Zr; W.EventEmitter = W; W.prototype._events = void 0; W.prototype._eventsCount = 0; W.prototype._maxListeners = void 0; var Ot = 10; function Ne(e) { if (typeof e != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e); } Object.defineProperty(W, "defaultMaxListeners", { enumerable: !0, get: function() { return Ot; }, set: function(e) { if (typeof e != "number" || e < 0 || nr(e)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + "."); Ot = e; } }); W.init = function() { (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0; }; W.prototype.setMaxListeners = function(t) { if (typeof t != "number" || t < 0 || nr(t)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + "."); return this._maxListeners = t, this; }; function ir(e) { return e._maxListeners === void 0 ? W.defaultMaxListeners : e._maxListeners; } W.prototype.getMaxListeners = function() { return ir(this); }; W.prototype.emit = function(t) { for (var r = [], o = 1; o < arguments.length; o++) r.push(arguments[o]); var a = t === "error", d = this._events; if (d !== void 0) a = a && d.error === void 0; else if (!a) return !1; if (a) { var l; if (r.length > 0 && (l = r[0]), l instanceof Error) throw l; var b = new Error("Unhandled error." + (l ? " (" + l.message + ")" : "")); throw b.context = l, b; } var h = d[t]; if (h === void 0) return !1; if (typeof h == "function") At(h, this, r); else for (var M = h.length, N = ur(h, M), o = 0; o < M; ++o) At(N[o], this, r); return !0; }; function ar(e, t, r, o) { var a, d, l; if (Ne(r), d = e._events, d === void 0 ? (d = e._events = /* @__PURE__ */ Object.create(null), e._eventsCount = 0) : (d.newListener !== void 0 && (e.emit( "newListener", t, r.listener ? r.listener : r ), d = e._events), l = d[t]), l === void 0) l = d[t] = r, ++e._eventsCount; else if (typeof l == "function" ? l = d[t] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), a = ir(e), a > 0 && l.length > a && !l.warned) { l.warned = !0; var b = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit"); b.name = "MaxListenersExceededWarning", b.emitter = e, b.type = t, b.count = l.length, Kr(b); } return e; } W.prototype.addListener = function(t, r) { return ar(this, t, r, !1); }; W.prototype.on = W.prototype.addListener; W.prototype.prependListener = function(t, r) { return ar(this, t, r, !0); }; function Yr() { if (!this.fired) 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); } function or(e, t, r) { var o = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, a = Yr.bind(o); return a.listener = r, o.wrapFn = a, a; } W.prototype.once = function(t, r) { return Ne(r), this.on(t, or(this, t, r)), this; }; W.prototype.prependOnceListener = function(t, r) { return Ne(r), this.prependListener(t, or(this, t, r)), this; }; W.prototype.removeListener = function(t, r) { var o, a, d, l, b; if (Ne(r), a = this._events, a === void 0) return this; if (o = a[t], o === void 0) return this; if (o === r || o.listener === r) --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete a[t], a.removeListener && this.emit("removeListener", t, o.listener || r)); else if (typeof o != "function") { for (d = -1, l = o.length - 1; l >= 0; l--) if (o[l] === r || o[l].listener === r) { b = o[l].listener, d = l; break; } if (d < 0) return this; d === 0 ? o.shift() : Xr(o, d), o.length === 1 && (a[t] = o[0]), a.removeListener !== void 0 && this.emit("removeListener", t, b || r); } return this; }; W.prototype.off = W.prototype.removeListener; W.prototype.removeAllListeners = function(t) { var r, o, a; if (o = this._events, o === void 0) return this; if (o.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : o[t] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete o[t]), this; if (arguments.length === 0) { var d = Object.keys(o), l; for (a = 0; a < d.length; ++a) l = d[a], l !== "removeListener" && this.removeAllListeners(l); return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this; } if (r = o[t], typeof r == "function") this.removeListener(t, r); else if (r !== void 0) for (a = r.length - 1; a >= 0; a--) this.removeListener(t, r[a]); return this; }; function fr(e, t, r) { var o = e._events; if (o === void 0) return []; var a = o[t]; return a === void 0 ? [] : typeof a == "function" ? r ? [a.listener || a] : [a] : r ? Jr(a) : ur(a, a.length); } W.prototype.listeners = function(t) { return fr(this, t, !0); }; W.prototype.rawListeners = function(t) { return fr(this, t, !1); }; W.listenerCount = function(e, t) { return typeof e.listenerCount == "function" ? e.listenerCount(t) : sr.call(e, t); }; W.prototype.listenerCount = sr; function sr(e) { var t = this._events; if (t !== void 0) { var r = t[e]; if (typeof r == "function") return 1; if (r !== void 0) return r.length; } return 0; } W.prototype.eventNames = function() { return this._eventsCount > 0 ? Re(this._events) : []; }; function ur(e, t) { for (var r = new Array(t), o = 0; o < t; ++o) r[o] = e[o]; return r; } function Xr(e, t) { for (; t + 1 < e.length; t++) e[t] = e[t + 1]; e.pop(); } function Jr(e) { for (var t = new Array(e.length), r = 0; r < t.length; ++r) t[r] = e[r].listener || e[r]; return t; } function Zr(e, t) { return new Promise(function(r, o) { function a(l) { e.removeListener(t, d), o(l); } function d() { typeof e.removeListener == "function" && e.removeListener("error", a), r([].slice.call(arguments)); } lr(e, t, d, { once: !0 }), t !== "error" && Qr(e, a, { once: !0 }); }); } function Qr(e, t, r) { typeof e.on == "function" && lr(e, "error", t, r); } function lr(e, t, r, o) { if (typeof e.on == "function") o.once ? e.once(t, r) : e.on(t, r); else if (typeof e.addEventListener == "function") e.addEventListener(t, function a(d) { o.once && e.removeEventListener(t, a), r(d); }); else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e); } var cr = bt.exports, dr = cr.EventEmitter; const De = /* @__PURE__ */ tr(Br); var vt = {}, hr = {}, en = kr, Be = function() { return en() && !!Symbol.toStringTag; }, tn = Be(), rn = _e, at = rn("Object.prototype.toString"), Ie = function(t) { return tn && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : at(t) === "[object Arguments]"; }, pr = function(t) { return Ie(t) ? !0 : t !== null && typeof t == "object" && "length" in t && typeof t.length == "number" && t.length >= 0 && at(t) !== "[object Array]" && "callee" in t && at(t.callee) === "[object Function]"; }, nn = function() { return Ie(arguments); }(); Ie.isLegacyArguments = pr; var an = nn ? Ie : pr, Mt = _e, on = Be(), fn = Fr(), sn = je, ot; if (on) { var un = Mt("RegExp.prototype.exec"), Lt = {}, We = function() { throw Lt; }, Pt = { toString: We, valueOf: We }; typeof Symbol.toPrimitive == "symbol" && (Pt[Symbol.toPrimitive] = We), ot = function(t) { if (!t || typeof t != "object") return !1; var r = ( /** @type {NonNullable<typeof gOPD>} */ sn( /** @type {{ lastIndex?: unknown }} */ t, "lastIndex" ) ), o = r && fn(r, "value"); if (!o) return !1; try { un( t, /** @type {string} */ /** @type {unknown} */ Pt ); } catch (a) { return a === Lt; } }; } else { var ln = Mt("Object.prototype.toString"), cn = "[object RegExp]"; ot = function(t) { return !t || typeof t != "object" && typeof t != "function" ? !1 : ln(t) === cn; }; } var dn = ot, hn = _e, pn = dn, yn = hn("RegExp.prototype.exec"), gn = ht, bn = function(t) { if (!pn(t)) throw new gn("`regex` must be a RegExp"); return function(o) { return yn(t, o) !== null; }; }, yr = _e, vn = bn, mn = vn(/^\s*(?:function)?\*/), gr = Be(), He = Ur(), _n = yr("Object.prototype.toString"), wn = yr("Function.prototype.toString"), Sn = function() { if (!gr) return !1; try { return Function("return function*() {}")(); } catch { } }, xe, En = function(t) { if (typeof t != "function") return !1; if (mn(wn(t))) return !0; if (!gr) { var r = _n(t); return r === "[object GeneratorFunction]"; } if (!He) return !1; if (typeof xe > "u") { var o = Sn(); xe = o ? ( /** @type {GeneratorFunctionConstructor} */ He(o) ) : !1; } return He(t) === xe; }, br = Function.prototype.toString, ye = typeof Reflect == "object" && Reflect !== null && Reflect.apply, ft, Te; if (typeof ye == "function" && typeof Object.defineProperty == "function") try { ft = Object.defineProperty({}, "length", { get: function() { throw Te; } }), Te = {}, ye(function() { throw 42; }, null, ft); } catch (e) { e !== Te && (ye = null); } else ye = null; var Rn = /^\s*class\b/, st = function(t) { try { var r = br.call(t); return Rn.test(r); } catch { return !1; } }, Ge = function(t) { try { return st(t) ? !1 : (br.call(t), !0); } catch { return !1; } }, Ae = Object.prototype.toString, Tn = "[object Object]", An = "[object Function]", On = "[object GeneratorFunction]", Mn = "[object HTMLAllCollection]", Ln = "[object HTML document.all class]", Pn = "[object HTMLCollection]", jn = typeof Symbol == "function" && !!Symbol.toStringTag, Cn = !(0 in [,]), ut = function() { return !1; }; if (typeof document == "object") { var Nn = document.all; Ae.call(Nn) === Ae.call(document.all) && (ut = function(t) { if ((Cn || !t) && (typeof t > "u" || typeof t == "object")) try { var r = Ae.call(t); return (r === Mn || r === Ln || r === Pn || r === Tn) && t("") == null; } catch { } return !1; }); } var Dn = ye ? function(t) { if (ut(t)) return !0; if (!t || typeof t != "function" && typeof t != "object") return !1; try { ye(t, null, ft); } catch (r) { if (r !== Te) return !1; } return !st(t) && Ge(t); } : function(t) { if (ut(t)) return !0; if (!t || typeof t != "function" && typeof t != "object") return !1; if (jn) return Ge(t); if (st(t)) return !1; var r = Ae.call(t); return r !== An && r !== On && !/^\[object HTML/.test(r) ? !1 : Ge(t); }, Bn = Dn, In = Object.prototype.toString, vr = Object.prototype.hasOwnProperty, kn = function(t, r, o) { for (var a = 0, d = t.length; a < d; a++) vr.call(t, a) && (o == null ? r(t[a], a, t) : r.call(o, t[a], a, t)); }, Fn = function(t, r, o) { for (var a = 0, d = t.length; a < d; a++) o == null ? r(t.charAt(a), a, t) : r.call(o, t.charAt(a), a, t); }, Un = function(t, r, o) { for (var a in t) vr.call(t, a) && (o == null ? r(t[a], a, t) : r.call(o, t[a], a, t)); }, qn = function(t, r, o) { if (!Bn(r)) throw new TypeError("iterator must be a function"); var a; arguments.length >= 3 && (a = o), In.call(t) === "[object Array]" ? kn(t, r, a) : typeof t == "string" ? Fn(t, r, a) : Un(t, r, a); }, $n = qn, Wn = [ "Float32Array", "Float64Array", "Int8Array", "Int16Array", "Int32Array", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array" ], Ve = Wn, Hn = typeof globalThis > "u" ? G : globalThis, xn = function() { for (var t = [], r = 0; r < Ve.length; r++) typeof Hn[Ve[r]] == "function" && (t[t.length] = Ve[r]); return t; }, mr = { exports: {} }, jt = pt, Gn = qr, pe = ht, Ct = je, Vn = function(t, r, o) { if (!t || typeof t != "object" && typeof t != "function") throw new pe("`obj` must be an object or a function`"); if (typeof r != "string" && typeof r != "symbol") throw new pe("`property` must be a string or a symbol`"); if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null) throw new pe("`nonEnumerable`, if provided, must be a boolean or null"); if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null) throw new pe("`nonWritable`, if provided, must be a boolean or null"); if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null) throw new pe("`nonConfigurable`, if provided, must be a boolean or null"); if (arguments.length > 6 && typeof arguments[6] != "boolean") throw new pe("`loose`, if provided, must be a boolean"); var a = arguments.length > 3 ? arguments[3] : null, d = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, b = arguments.length > 6 ? arguments[6] : !1, h = !!Ct && Ct(t, r); if (jt) jt(t, r, { configurable: l === null && h ? h.configurable : !l, enumerable: a === null && h ? h.enumerable : !a, value: o, writable: d === null && h ? h.writable : !d }); else if (b || !a && !d && !l) t[r] = o; else throw new Gn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable."); }, lt = pt, _r = function() { return !!lt; }; _r.hasArrayLengthDefineBug = function() { if (!lt) return null; try { return lt([], "length", { value: 1 }).length !== 1; } catch { return !0; } }; var zn = _r, Kn = $r, Nt = Vn, Yn = zn(), Dt = je, Bt = ht, Xn = Kn("%Math.floor%"), Jn = function(t, r) { if (typeof t != "function") throw new Bt("`fn` is not a function"); if (typeof r != "number" || r < 0 || r > 4294967295 || Xn(r) !== r) throw new Bt("`length` must be a positive 32-bit integer"); var o = arguments.length > 2 && !!arguments[2], a = !0, d = !0; if ("length" in t && Dt) { var l = Dt(t, "length"); l && !l.configurable && (a = !1), l && !l.writable && (d = !1); } return (a || d || !o) && (Yn ? Nt( /** @type {Parameters<define>[0]} */ t, "length", r, !0, !0 ) : Nt( /** @type {Parameters<define>[0]} */ t, "length", r )), t; }, Zn = Hr, Qn = Wr(), ei = xr, ti = function() { return ei(Zn, Qn, arguments); }; (function(e) { var t = Jn, r = pt, o = Gr, a = ti; e.exports = function(l) { var b = o(arguments), h = l.length - (arguments.length - 1); return t( b, 1 + (h > 0 ? h : 0), !0 ); }, r ? r(e.exports, "apply", { value: a }) : e.exports.apply = a; })(mr); var ri = mr.exports, Le = $n, ni = xn, It = ri, mt = _e, Oe = je, ii = mt("Object.prototype.toString"), wr = Be(), kt = typeof globalThis > "u" ? G : globalThis, ct = ni(), _t = mt("String.prototype.slice"), ze = Object.getPrototypeOf, ai = mt("Array.prototype.indexOf", !0) || function(t, r) { for (var o = 0; o < t.length; o += 1) if (t[o] === r) return o; return -1; }, Pe = { __proto__: null }; wr && Oe && ze ? Le(ct, function(e) { var t = new kt[e](); if (Symbol.toStringTag in t) { var r = ze(t), o = Oe(r, Symbol.toStringTag); if (!o) { var a = ze(r); o = Oe(a, Symbol.toStringTag); } Pe["$" + e] = It(o.get); } }) : Le(ct, function(e) { var t = new kt[e](), r = t.slice || t.set; r && (Pe["$" + e] = It(r)); }); var oi = function(t) { var r = !1; return Le( // eslint-disable-next-line no-extra-parens /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ Pe, /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function(o, a) { if (!r) try { "$" + o(t) === a && (r = _t(a, 1)); } catch { } } ), r; }, fi = function(t) { var r = !1; return Le( // eslint-disable-next-line no-extra-parens /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ Pe, /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */ function(o, a) { if (!r) try { o(t), r = _t(a, 1); } catch { } } ), r; }, Sr = function(t) { if (!t || typeof t != "object") return !1; if (!wr) { var r = _t(ii(t), 8, -1); return ai(ct, r) > -1 ? r : r !== "Object" ? !1 : fi(t); } return Oe ? oi(t) : null; }, si = Sr, ui = function(t) { return !!si(t); }; (function(e) { var t = an, r = En, o = Sr, a = ui; function d(g) { return g.call.bind(g); } var l = typeof BigInt < "u", b = typeof Symbol < "u", h = d(Object.prototype.toString), M = d(Number.prototype.valueOf), N = d(String.prototype.valueOf), A = d(Boolean.prototype.valueOf); if (l) var I = d(BigInt.prototype.valueOf); if (b) var x = d(Symbol.prototype.valueOf); function L(g, we) { if (typeof g != "object") return !1; try { return we(g), !0; } catch { return !1; } } e.isArgumentsObject = t, e.isGeneratorFunction = r, e.isTypedArray = a; function j(g) { return typeof Promise < "u" && g instanceof Promise || g !== null && typeof g == "object" && typeof g.then == "function" && typeof g.catch == "function"; } e.isPromise = j; function O(g) { return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(g) : a(g) || y(g); } e.isArrayBufferView = O; function u(g) { return o(g) === "Uint8Array"; } e.isUint8Array = u; function m(g) { return o(g) === "Uint8ClampedArray"; } e.isUint8ClampedArray = m; function S(g) { return o(g) === "Uint16Array"; } e.isUint16Array = S; function E(g) { return o(g) === "Uint32Array"; } e.isUint32Array = E; function T(g) { return o(g) === "Int8Array"; } e.isInt8Array = T; function B(g) { return o(g) === "Int16Array"; } e.isInt16Array = B; function q(g) { return o(g) === "Int32Array"; } e.isInt32Array = q; function k(g) { return o(g) === "Float32Array"; } e.isFloat32Array = k; function C(g) { return o(g) === "Float64Array"; } e.isFloat64Array = C; function V(g) { return o(g) === "BigInt64Array"; } e.isBigInt64Array = V; function Y(g) { return o(g) === "BigUint64Array"; } e.isBigUint64Array = Y; function X(g) { return h(g) === "[object Map]"; } X.working = typeof Map < "u" && X(/* @__PURE__ */ new Map()); function re(g) { return typeof Map > "u" ? !1 : X.working ? X(g) : g instanceof Map; } e.isMap = re; function J(g) { return h(g) === "[object Set]"; } J.working = typeof Set < "u" && J(/* @__PURE__ */ new Set()); function ne(g) { return typeof Set > "u" ? !1 : J.working ? J(g) : g instanceof Set; } e.isSet = ne; function ie(g) { return h(g) === "[object WeakMap]"; } ie.working = typeof WeakMap < "u" && ie(/* @__PURE__ */ new WeakMap()); function Q(g) { return typeof WeakMap > "u" ? !1 : ie.working ? ie(g) : g instanceof WeakMap; } e.isWeakMap = Q; function ee(g) { return h(g) === "[object WeakSet]"; } ee.working = typeof WeakSet < "u" && ee(/* @__PURE__ */ new WeakSet()); function z(g) { return ee(g); } e.isWeakSet = z; function te(g) { return h(g) === "[object ArrayBuffer]"; } te.working = typeof ArrayBuffer < "u" && te(new ArrayBuffer()); function oe(g) { return typeof ArrayBuffer > "u" ? !1 : te.working ? te(g) : g instanceof ArrayBuffer; } e.isArrayBuffer = oe; function c(g) { return h(g) === "[object DataView]"; } c.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && c(new DataView(new ArrayBuffer(1), 0, 1)); function y(g) { return typeof DataView > "u" ? !1 : c.working ? c(g) : g instanceof DataView; } e.isDataView = y; var _ = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0; function D(g) { return h(g) === "[object SharedArrayBuffer]"; } function s(g) { return typeof _ > "u" ? !1 : (typeof D.working > "u" && (D.working = D(new _())), D.working ? D(g) : g instanceof _); } e.isSharedArrayBuffer = s; function f(g) { return h(g) === "[object AsyncFunction]"; } e.isAsyncFunction = f; function p(g) { return h(g) === "[object Map Iterator]"; } e.isMapIterator = p; function w(g) { return h(g) === "[object Set Iterator]"; } e.isSetIterator = w; function P(g) { return h(g) === "[object Generator]"; } e.isGeneratorObject = P; function n(g) { return h(g) === "[object WebAssembly.Module]"; } e.isWebAssemblyCompiledModule = n; function i(g) { return L(g, M); } e.isNumberObject = i; function v(g) { return L(g, N); } e.isStringObject = v; function R(g) { return L(g, A); } e.isBooleanObject = R; function H(g) { return l && L(g, I); } e.isBigIntObject = H; function U(g) { return b && L(g, x); } e.isSymbolObject = U; function $(g) { return i(g) || v(g) || R(g) || H(g) || U(g); } e.isBoxedPrimitive = $; function fe(g) { return typeof Uint8Array < "u" && (oe(g) || s(g)); } e.isAnyArrayBuffer = fe, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(g) { Object.defineProperty(e, g, { enumerable: !1, value: function() { throw new Error(g + " is not supported in userland"); } }); }); })(hr); var li = function(t) { return t && typeof t == "object" && typeof t.copy == "function" && typeof t.fill == "function" && typeof t.readUInt8 == "function"; }; (function(e) { var t = Object.getOwnPropertyDescriptors || function(y) { for (var _ = Object.keys(y), D = {}, s = 0; s < _.length; s++) D[_[s]] = Object.getOwnPropertyDescriptor(y, _[s]); return D; }, r = /%[sdj%]/g; e.format = function(c) { if (!T(c)) { for (var y = [], _ = 0; _ < arguments.length; _++) y.push(l(arguments[_])); return y.join(" "); } for (var _ = 1, D = arguments, s = D.length, f = String(c).replace(r, function(w) { if (w === "%%") return "%"; if (_ >= s) return w; switch (w) { case "%s": return String(D[_++]); case "%d": return Number(D[_++]); case "%j": try { return JSON.stringify(D[_++]); } catch { return "[Circular]"; } default: return w; } }), p = D[_]; _ < s; p = D[++_]) m(p) || !C(p) ? f += " " + p : f += " " + l(p); return f; }, e.deprecate = function(c, y) { if (typeof F < "u" && F.noDeprecation === !0) return c; if (typeof F > "u") return function() { return e.deprecate(c, y).apply(this, arguments); }; var _ = !1; function D() { if (!_) { if (F.throwDeprecation) throw new Error(y); F.traceDeprecation ? console.trace(y) : console.error(y), _ = !0; } return c.apply(this, arguments); } return D; }; var o = {}, a = /^$/; if (F.env.NODE_DEBUG) { var d = F.env.NODE_DEBUG; d = d.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), a = new RegExp("^" + d + "$", "i"); } e.debuglog = function(c) { if (c = c.toUpperCase(), !o[c]) if (a.test(c)) { var y = F.pid; o[c] = function() { var _ = e.format.apply(e, arguments); console.error("%s %d: %s", c, y, _); }; } else o[c] = function() { }; return o[c]; }; function l(c, y) { var _ = { seen: [], stylize: h }; return arguments.length >= 3 && (_.depth = arguments[2]), arguments.length >= 4 && (_.colors = arguments[3]), u(y) ? _.showHidden = y : y && e._extend(_, y), q(_.showHidden) && (_.showHidden = !1), q(_.depth) && (_.depth = 2), q(_.colors) && (_.colors = !1), q(_.customInspect) && (_.customInspect = !0), _.colors && (_.stylize = b), N(_, c, _.depth); } e.inspect = l, l.colors = { bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39], grey: [90, 39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31, 39], yellow: [33, 39] }, l.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", // "name": intentionally not styling regexp: "red" }; function b(c, y) { var _ = l.styles[y]; return _ ? "\x1B[" + l.colors[_][0] + "m" + c + "\x1B[" + l.colors[_][1] + "m" : c; } function h(c, y) { return c; } function M(c) { var y = {}; return c.forEach(function(_, D) { y[_] = !0; }), y; } function N(c, y, _) { if (c.customInspect && y && X(y.inspect) && // Filter out the util module, it's inspect function is special y.inspect !== e.inspect && // Also filter out any prototype objects using the circular check. !(y.constructor && y.constructor.prototype === y)) { var D = y.inspect(_, c); return T(D) || (D = N(c, D, _)), D; } var s = A(c, y); if (s) return s; var f = Object.keys(y), p = M(f); if (c.showHidden && (f = Object.getOwnPropertyNames(y)), Y(y) && (f.indexOf("message") >= 0 || f.indexOf("description") >= 0)) return I(y); if (f.length === 0) { if (X(y)) { var w = y.name ? ": " + y.name : ""; return c.stylize("[Function" + w + "]", "special"); } if (k(y)) return c.stylize(RegExp.prototype.toString.call(y), "regexp"); if (V(y)) return c.stylize(Date.prototype.toString.call(y), "date"); if (Y(y)) return I(y); } var P = "", n = !1, i = ["{", "}"]; if (O(y) && (n = !0, i = ["[", "]"]), X(y)) { var v = y.name ? ": " + y.name : ""; P = " [Function" + v + "]"; } if (k(y) && (P = " " + RegExp.prototype.toString.call(y)), V(y) && (P = " " + Date.prototype.toUTCString.call(y)), Y(y) && (P = " " + I(y)), f.length === 0 && (!n || y.length == 0)) return i[0] + P + i[1]; if (_ < 0) return k(y) ? c.stylize(RegExp.prototype.toString.call(y), "regexp") : c.stylize("[Object]", "special"); c.seen.push(y); var R; return n ? R = x(c, y, _, p, f) : R = f.map(function(H) { return L(c, y, _, p, H, n); }), c.seen.pop(), j(R, P, i); } function A(c, y) { if (q(y)) return c.stylize("undefined", "undefined"); if (T(y)) { var _ = "'" + JSON.stringify(y).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; return c.stylize(_, "string"); } if (E(y)) return c.stylize("" + y, "number"); if (u(y)) return c.stylize("" + y, "boolean"); if (m(y)) return c.stylize("null", "null"); } function I(c) { return "[" + Error.prototype.toString.call(c) + "]"; } function x(c, y, _, D, s) { for (var f = [], p = 0, w = y.length; p < w; ++p) ee(y, String(p)) ? f.push(L( c, y, _, D, String(p), !0 )) : f.push(""); return s.forEach(function(P) { P.match(/^\d+$/) || f.push(L( c, y, _, D, P, !0 )); }), f; } function L(c, y, _, D, s, f) { var p, w, P; if (P = Object.getOwnPropertyDescriptor(y, s) || { value: y[s] }, P.get ? P.set ? w = c.stylize("[Getter/Setter]", "special") : w = c.stylize("[Getter]", "special") : P.set && (w = c.stylize("[Setter]", "special")), ee(D, s) || (p = "[" + s + "]"), w || (c.seen.indexOf(P.value) < 0 ? (m(_) ? w = N(c, P.value, null) : w = N(c, P.value, _ - 1), w.indexOf(` `) > -1 && (f ? w = w.split(` `).map(function(n) { return " " + n; }).join(` `).slice(2) : w = ` ` + w.split(` `).map(function(n) { return " " + n; }).join(` `))) : w = c.stylize("[Circular]", "special")), q(p)) { if (f && s.match(/^\d+$/)) return w; p = JSON.stringify("" + s), p.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (p = p.slice(1, -1), p = c.stylize(p, "name")) : (p = p.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), p = c.stylize(p, "string")); } return p + ": " + w; } function j(c, y, _) { var D = c.reduce(function(s, f) { return f.indexOf(` `) >= 0, s + f.replace(/\u001b\[\d\d?m/g, "").length + 1; }, 0); return D > 60 ? _[0] + (y === "" ? "" : y + ` `) + " " + c.join(`, `) + " " + _[1] : _[0] + y + " " + c.join(", ") + " " + _[1]; } e.types = hr; function O(c) { return Array.isArray(c); } e.isArray = O; function u(c) { return typeof c == "boolean"; } e.isBoolean = u; function m(c) { return c === null; } e.isNull = m; function S(c) { return c == null; } e.isNullOrUndefined = S; function E(c) { return typeof c == "number"; } e.isNumber = E; function T(c) { return typeof c == "string"; } e.isString = T; function B(c) { return typeof c == "symbol"; } e.isSymbol = B; function q(c) { return c === void 0; } e.isUndefined = q; function k(c) { return C(c) && J(c) === "[object RegExp]"; } e.isRegExp = k, e.types.isRegExp = k; function C(c) { return typeof c == "object" && c !== null; } e.isObject = C; function V(c) { return C(c) && J(c) === "[object Date]"; } e.isDate = V, e.types.isDate = V; function Y(c) { return C(c) && (J(c) === "[object Error]" || c instanceof Error); } e.isError = Y, e.types.isNativeError = Y; function X(c) { return typeof c == "function"; } e.isFunction = X; function re(c) { return c === null || typeof c == "boolean" || typeof c == "number" || typeof c == "string" || typeof c == "symbol" || // ES6 symbol typeof c > "u"; } e.isPrimitive = re, e.isBuffer = li; function J(c) { return Object.prototype.toString.call(c); } function ne(c) { return c < 10 ? "0" + c.toString(10) : c.toString(10); } var ie = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]; function Q() { var c = /* @__PURE__ */ new Date(), y = [ ne(c.getHours()), ne(c.getMinutes()), ne(c.getSeconds()) ].join(":"); return [c.getDate(), ie[c.getMonth()], y].join(" "); } e.log = function() { console.log("%s - %s", Q(), e.format.apply(e, arguments)); }, e.inherits = se, e._extend = function(c, y) { if (!y || !C(y)) return c; for (var _ = Object.keys(y), D = _.length; D--; ) c[_[D]] = y[_[D]]; return c; }; function ee(c, y) { return Object.prototype.hasOwnProperty.call(c, y); } var z = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0; e.promisify = function(y) { if (typeof y != "function") throw new TypeError('The "original" argument must be of type Function'); if (z && y[z]) { var _ = y[z]; if (typeof _ != "function") throw new TypeError('The "util.promisify.custom" argument must be of type Function'); return Object.defineProperty(_, z, { value: _, enumerable: !1, writable: !1, configurable: !0 }), _; } function _() { for (var D, s, f = new Promise(function(P, n) { D = P, s = n; }), p = [], w = 0; w < arguments.length; w++) p.push(arguments[w]); p.push(function(P, n) { P ? s(P) : D(n); }); try { y.apply(this, p); } catch (P) { s(P); } return f; } return Object.setPrototypeOf(_, Object.getPrototypeOf(y)), z && Object.defineProperty(_, z, { value: _, enumerable: !1, writable: !1, configurable: !0 }), Object.defineProperties( _, t(y) ); }, e.promisify.custom = z; function te(c, y) { if (!c) { var _ = new Error("Promise was rejected with a falsy value"); _.reason = c, c = _; } return y(c); } function oe(c) { if (typeof c != "function") throw new TypeError('The "original" argument must be of type Function'); function y() { for (var _ = [], D = 0; D < arguments.length; D++) _.push(arguments[D]); var s = _.pop(); if (typeof s != "function") throw new TypeError("The last argument must be of type Function"); var f = this, p = function() { return s.apply(f, arguments); }; c.apply(this, _).then( function(w) { F.nextTick(p.bind(null, null, w)); }, function(w) { F.nextTick(te.bind(null, w, p)); } ); } return Object.setPrototypeOf(y, Object.getPrototypeOf(c)), Object.defineProperties( y, t(c) ), y; } e.callbackify = oe; })(vt); var Ke, Ft; function ci() { if (Ft) return Ke; Ft = 1; function e(L, j) { var O = Object.keys(L); if (Object.getOwnPropertySymbols) { var u = Object.getOwnPropertySymbols(L); j && (u = u.filter(function(m) { return Object.getOwnPropertyDescriptor(L, m).enumerable; })), O.push.apply(O, u); } return O; } function t(L) { for (var j = 1; j < arguments.length; j++) { var O = arguments[j] != null ? arguments[j] : {}; j % 2 ? e(Object(O), !0).forEach(function(u) { r(L, u, O[u]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(L, Object.getOwnPropertyDescriptors(O)) : e(Object(O)).forEach(function(u) { Object.defineProperty(L, u, Object.getOwnPropertyDescriptor(O, u)); }); } return L; } function r(L, j, O) { return j = l(j), j in L ? Object.defineProperty(L, j, { value: O, enumerable: !0, configurable: !0, writable: !0 }) : L[j] = O, L; } function o(L, j) { if (!(L instanceof j)) throw new TypeError("Cannot call a class as a function"); } function a(L, j) { for (var O = 0; O < j.length; O++) { var u = j[O]; u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(L, l(u.key), u); } } function d(L, j, O) { return a(L.prototype, j), Object.defineProperty(L, "prototype", { writable: !1 }), L; } function l(L) { var j = b(L, "string"); return typeof j == "symbol" ? j : String(j); } function b(L, j) { if (typeof L != "object" || L === null) return L; var O = L[Symbol.toPrimitive]; if (O !== void 0) { var u = O.call(L, j); if (typeof u != "object") return u; throw new TypeError("@@toPrimitive must return a primitive value."); } return String(L); } var h = De, M = h.Buffer, N = vt, A = N.inspect, I = A && A.custom || "inspect"; function x(L, j, O) { M.prototype.copy.call(L, j, O); } return Ke = /* @__PURE__ */ function() { function L() { o(this, L), this.head = null, this.tail = null, this.length = 0; } return d(L, [{ key: "push", value: function(O) { var u = { data: O, next: null }; this.length > 0 ? this.tail.next = u : this.head = u, this.tail = u, ++this.length; } }, { key: "unshift", value: function(O) { var u = { data: O, next: this.head }; this.length === 0 && (this.tail = u), this.head = u, ++this.length; } }, { key: "shift", value: function() { if (this.length !== 0) { var O = this.head.data; return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, O; } } }, { key: "clear", value: function() { this.head = this.tail = null, this.length = 0; } }, { key: "join", value: function(O) { if (this.length === 0) return ""; for (var u = this.head, m = "" + u.data; u = u.next; ) m += O + u.data; return m; } }, { key: "concat", value: function(O) { if (this.length === 0) return M.alloc(0); for (var u = M.allocUnsafe(O >>> 0), m = this.head, S = 0; m; ) x(m.data, u, S), S += m.data.length, m = m.next; return u; } // Consumes a specified amount of bytes or characters from the buffered data. }, { key: "consume", value: function(O, u) { var m; return O < this.head.data.length ? (m = this.head.data.slice(0, O), this.head.data = this.head.data.slice(O)) : O === this.head.data.length ? m = this.shift() : m = u ? this._getString(O) : this._getBuffer(O), m; } }, { key: "first", value: function() { return this.head.data; } // Consumes a specified amount of characters from the buffered data. }, { key: "_getString", value: function(O) { var u = this.head, m = 1, S = u.data; for (O -= S.length; u = u.next; ) { var E = u.data, T = O > E.length ? E.length : O; if (T === E.length ? S += E : S += E.slice(0, O), O -= T, O === 0) { T === E.length ? (++m, u.next ? this.head = u.next : this.head = this.tail = null) : (this.head = u, u.data = E.slice(T)); break; } ++m; } return this.length -= m, S; } // Consumes a specified amount of bytes from the buffered data. }, { key: "_getBuffer", value: function(O) { var u = M.allocUnsafe(O), m = this.head, S = 1; for (m.data.copy(u), O -= m.data.length; m = m.next; ) { var E = m.data, T = O > E.length ? E.length : O; if (E.copy(u, u.length - O, 0, T), O -= T, O === 0) { T === E.length ? (++S, m.next ? this.head = m.next : this.head = this.tail = null) : (this.head = m, m.data = E.slice(T)); break; } ++S; } return this.length -= S, u; } // Make sure the linked list only shows the minimal necessary information. }, { key: I, value: function(O, u) { return A(this, t(t({}, u), {}, { // Only inspect one level. depth: 0, // It should not recurse. customInspect: !1 })); } }]), L; }(), Ke; } function di(e, t) { var r = this, o = this._readableState && this._readableState.destroyed, a = this._writableState && this._writableState.destroyed; return o || a ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, F.nextTick(dt, this, e)) : F.nextTick(dt, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(d) { !t && d ? r._writableState ? r._writableState.errorEmitted ? F.nextTick(Me, r) : (r._writableState.errorEmitted = !0, F.nextTick(Ut, r, d)) : F.nextTick(Ut, r, d) : t ? (F.nextTick(Me, r), t(d)) : F.nextTick(Me, r); }), this); } function Ut(e, t) { dt(e, t), Me(e); } function Me(e) { e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close"); } function hi() { 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 dt(e, t) { e.emit("error", t); } function pi(e, t) { var r = e._readableState, o = e._writableState; r && r.autoDestroy || o && o.autoDestroy ? e.destroy(t) : e.emit("error", t); } var Er = { destroy: di, undestroy: hi, errorOrDestroy: pi }, ce = {}; function yi(e, t) { e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t; } var Rr = {}; function Z(e, t, r) { r || (r = Error); function o(d, l, b) { return typeof t == "string" ? t : t(d, l, b); } var a = /* @__PURE__ */ function(d) { yi(l, d); function l(b, h, M) { return d.call(this, o(b, h, M)) || this; } return l; }(r); a.prototype.name = r.name, a.prototype.code = e, Rr[e] = a; } function qt(e, t) { if (Array.isArray(e)) { var r = e.length; return e = e.map(function(o) { return String(o); }), r > 2 ? "one of ".concat(t, " ").concat(e.slice(0, r - 1).join(", "), ", or ") + e[r - 1] : r === 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 gi(e, t, r) { return e.substr(0, t.length) === t; } function bi(e, t, r) { return (r === void 0 || r > e.length) && (r = e.length), e.substring(r - t.length, r) === t; } function vi(e, t, r) { return typeof r != "number" && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1; } Z("ERR_INVALID_OPT_VALUE", function(e, t) { return 'The value "' + t + '" is invalid for option "' + e + '"'; }, TypeError); Z("ERR_INVALID_ARG_TYPE", function(e, t, r) { var o; typeof t == "string" && gi(t, "not ") ? (o = "must not be", t = t.replace(/^not /, "")) : o = "must be"; var a; if (bi(e, " argument")) a = "The ".concat(e, " ").concat(o, " ").concat(qt(t, "type")); else { var d = vi(e, ".") ? "property" : "argument"; a = 'The "'.concat(e, '" ').concat(d, " ").concat(o, " ").concat(qt(t, "type")); } return a += ". Received type ".concat(typeof r), a; }, TypeError); Z("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"); Z("ERR_METHOD_NOT_IMPLEMENTED", function(e) { return "The " + e + " method is not implemented"; }); Z("ERR_STREAM_PREMATURE_CLOSE", "Premature close"); Z("ERR_STREAM_DESTROYED", function(e) { return "Cannot call " + e + " after a stream was destroyed"; }); Z("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"); Z("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"); Z("ERR_STREAM_WRITE_AFTER_END", "write after end"); Z("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError); Z("ERR_UNKNOWN_ENCODING", function(e) { return "Unknown encoding: " + e; }, TypeError); Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"); ce.codes = Rr; var mi = ce.codes.ERR_INVALID_OPT_VALUE; function _i(e, t, r) { return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null; } function wi(e, t, r, o) { var a = _i(t, o, r); if (a != null) { if (!(isFinite(a) && Math.floor(a) === a) || a < 0) { var d = o ? r : "highWaterMark"; throw new mi(d, a); } return Math.floor(a); } return e.objectMode ? 16 : 16 * 1024; } var Tr = { getHighWaterMark: wi }, Si = Ei; function Ei(e, t) { if (Ye("noDeprecation")) return e; var r = !1; function o() { if (!r) { if (Ye("throwDeprecation")) throw new Error(t); Ye("traceDeprecation") ? console.trace(t) : console.warn(t), r = !0; } return e.apply(this, arguments); } return o; } function Ye(e) { try { if (!G.localStorage) return !1; } catch { return !1; } var t = G.localStorage[e]; return t == null ? !1 : String(t).toLowerCase() === "true"; } var Xe, $t; function Ar() { if ($t) return Xe; $t = 1, Xe = k; function e(s) { var f = this; this.next = null, this.entry = null, this.finish = function() { D(f, s); }; } var t; k.WritableState = B; var r = { deprecate: Si }, o = dr, a = De.Buffer, d = (typeof G < "u" ? G : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function l(s) { return a.from(s); } function b(s) { return a.isBuffer(s) || s instanceof d; } var h = Er, M = Tr, N = M.getHighWaterMark, A = ce.codes, I = A.ERR_INVALID_ARG_TYPE, x = A.ERR_METHOD_NOT_IMPLEMENTED, L = A.ERR_MULTIPLE_CALLBACK, j = A.ERR_STREAM_CANNOT_PIPE, O = A.ERR_STREAM_DESTROYED, u = A.ERR_STREAM_NULL_VALUES, m = A.ERR_STREAM_WRITE_AFTER_END, S = A.ERR_UNKNOWN_ENCODING, E = h.errorOrDestroy; se(k, o); function T() { } function B(s, f, p) { t = t || be(), s = s || {}, typeof p != "boolean" && (p = f instanceof t), this.objectMode = !!s.objectMode, p && (this.objectMode = this.objectMode || !!s.writableObjectMode), this.highWaterMark = N(this, s, "writableHighWaterMark", p), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var w = s.decodeStrings === !1; this.decodeStrings = !w, this.defaultEncoding = s.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(P) { ie(f, P); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = s.emitClose !== !1, this.autoDestroy = !!s.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this); } B.prototype.getBuffer = function() { for (var f = this.bufferedRequest, p = []; f; ) p.push(f), f = f.next; return p; }, function() { try { Object.defineProperty(B.prototype, "buffer", { get: r.deprecate(function() { return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); } catch { } }(); var q; typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (q = Function.prototype[Symbol.hasInstance], Object.defineProperty(k, Symbol.hasInstance, { value: function(f) { return q.call(this, f) ? !0 : this !== k ? !1 : f && f._writableState instanceof B; } })) : q = function(f) { return f instanceof this; }; function k(s) { t = t || be(); var f = this instanceof t; if (!f && !q.call(k, this)) return new k(s); this._writableState = new B(s, this, f), this.writable = !0, s && (typeof s.write == "function" && (this._write = s.write), typeof s.writev == "function" && (this._writev = s.writev