tdg-react-doc-viewer
Version:
File viewer for React.
1,390 lines • 68.3 kB
JavaScript
import { c as we, g as Yr, a as Mt } from "./index-BDSLYS45.js";
var Nt = function() {
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
return !1;
if (typeof Symbol.iterator == "symbol")
return !0;
var e = {}, t = Symbol("test"), n = Object(t);
if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
return !1;
var a = 42;
e[t] = a;
for (var o in e)
return !1;
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
return !1;
var f = Object.getOwnPropertySymbols(e);
if (f.length !== 1 || f[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
return !1;
if (typeof Object.getOwnPropertyDescriptor == "function") {
var i = (
/** @type {PropertyDescriptor} */
Object.getOwnPropertyDescriptor(e, t)
);
if (i.value !== a || i.enumerable !== !0)
return !1;
}
return !0;
}, Xr = Object, Ut = Error, Bt = EvalError, Lt = RangeError, qt = ReferenceError, Wt = SyntaxError, be = TypeError, Gt = URIError, jt = Math.abs, kt = Math.floor, zt = Math.max, Ht = Math.min, Kt = Math.pow, Vt = Math.round, Qt = Number.isNaN || function(e) {
return e !== e;
}, Jt = Qt, Zt = function(e) {
return Jt(e) || e === 0 ? e : e < 0 ? -1 : 1;
}, Yt = Object.getOwnPropertyDescriptor, Ce = Yt;
if (Ce)
try {
Ce([], "length");
} catch {
Ce = null;
}
var et = Ce, De = Object.defineProperty || !1;
if (De)
try {
De({}, "a", { value: 1 });
} catch {
De = !1;
}
var Xt = De, Ke, Er;
function en() {
if (Er) return Ke;
Er = 1;
var r = typeof Symbol < "u" && Symbol, e = Nt;
return Ke = function() {
return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
}, Ke;
}
var Ve, $r;
function rt() {
return $r || ($r = 1, Ve = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ve;
}
var Qe, xr;
function tt() {
if (xr) return Qe;
xr = 1;
var r = Xr;
return Qe = r.getPrototypeOf || null, Qe;
}
var rn = "Function.prototype.bind called on incompatible ", tn = Object.prototype.toString, nn = Math.max, an = "[object Function]", Rr = function(e, t) {
for (var n = [], a = 0; a < e.length; a += 1)
n[a] = e[a];
for (var o = 0; o < t.length; o += 1)
n[o + e.length] = t[o];
return n;
}, on = function(e, t) {
for (var n = [], a = t, o = 0; a < e.length; a += 1, o += 1)
n[o] = e[a];
return n;
}, fn = function(r, e) {
for (var t = "", n = 0; n < r.length; n += 1)
t += r[n], n + 1 < r.length && (t += e);
return t;
}, ln = function(e) {
var t = this;
if (typeof t != "function" || tn.apply(t) !== an)
throw new TypeError(rn + t);
for (var n = on(arguments, 1), a, o = function() {
if (this instanceof a) {
var s = t.apply(
this,
Rr(n, arguments)
);
return Object(s) === s ? s : this;
}
return t.apply(
e,
Rr(n, arguments)
);
}, f = nn(0, t.length - n.length), i = [], l = 0; l < f; l++)
i[l] = "$" + l;
if (a = Function("binder", "return function (" + fn(i, ",") + "){ return binder.apply(this,arguments); }")(o), t.prototype) {
var c = function() {
};
c.prototype = t.prototype, a.prototype = new c(), c.prototype = null;
}
return a;
}, un = ln, We = Function.prototype.bind || un, br = Function.prototype.call, Je, Ir;
function nt() {
return Ir || (Ir = 1, Je = Function.prototype.apply), Je;
}
var sn = typeof Reflect < "u" && Reflect && Reflect.apply, cn = We, pn = nt(), yn = br, hn = sn, dn = hn || cn.call(yn, pn), vn = We, mn = be, gn = br, bn = dn, at = function(e) {
if (e.length < 1 || typeof e[0] != "function")
throw new mn("a function is required");
return bn(vn, gn, e);
}, Ze, Fr;
function Sn() {
if (Fr) return Ze;
Fr = 1;
var r = at, e = et, t;
try {
t = /** @type {{ __proto__?: typeof Array.prototype }} */
[].__proto__ === Array.prototype;
} catch (f) {
if (!f || typeof f != "object" || !("code" in f) || f.code !== "ERR_PROTO_ACCESS")
throw f;
}
var n = !!t && e && e(
Object.prototype,
/** @type {keyof typeof Object.prototype} */
"__proto__"
), a = Object, o = a.getPrototypeOf;
return Ze = n && typeof n.get == "function" ? r([n.get]) : typeof o == "function" ? (
/** @type {import('./get')} */
function(i) {
return o(i == null ? i : a(i));
}
) : !1, Ze;
}
var Ye, Tr;
function wn() {
if (Tr) return Ye;
Tr = 1;
var r = rt(), e = tt(), t = Sn();
return Ye = r ? function(a) {
return r(a);
} : e ? function(a) {
if (!a || typeof a != "object" && typeof a != "function")
throw new TypeError("getProto: not an object");
return e(a);
} : t ? function(a) {
return t(a);
} : null, Ye;
}
var Xe, _r;
function An() {
if (_r) return Xe;
_r = 1;
var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = We;
return Xe = t.call(r, e), Xe;
}
var b, On = Xr, Pn = Ut, En = Bt, $n = Lt, xn = qt, ve = Wt, he = be, Rn = Gt, In = jt, Fn = kt, Tn = zt, _n = Ht, Cn = Kt, Dn = Vt, Mn = Zt, ot = Function, er = function(r) {
try {
return ot('"use strict"; return (' + r + ").constructor;")();
} catch {
}
}, Ee = et, Nn = Xt, rr = function() {
throw new he();
}, Un = Ee ? function() {
try {
return arguments.callee, rr;
} catch {
try {
return Ee(arguments, "callee").get;
} catch {
return rr;
}
}
}() : rr, ce = en()(), D = wn(), Bn = tt(), Ln = rt(), it = nt(), $e = br, ye = {}, qn = typeof Uint8Array > "u" || !D ? b : D(Uint8Array), se = {
__proto__: null,
"%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
"%Array%": Array,
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? b : ArrayBuffer,
"%ArrayIteratorPrototype%": ce && D ? D([][Symbol.iterator]()) : b,
"%AsyncFromSyncIteratorPrototype%": b,
"%AsyncFunction%": ye,
"%AsyncGenerator%": ye,
"%AsyncGeneratorFunction%": ye,
"%AsyncIteratorPrototype%": ye,
"%Atomics%": typeof Atomics > "u" ? b : Atomics,
"%BigInt%": typeof BigInt > "u" ? b : BigInt,
"%BigInt64Array%": typeof BigInt64Array > "u" ? b : BigInt64Array,
"%BigUint64Array%": typeof BigUint64Array > "u" ? b : BigUint64Array,
"%Boolean%": Boolean,
"%DataView%": typeof DataView > "u" ? b : DataView,
"%Date%": Date,
"%decodeURI%": decodeURI,
"%decodeURIComponent%": decodeURIComponent,
"%encodeURI%": encodeURI,
"%encodeURIComponent%": encodeURIComponent,
"%Error%": Pn,
"%eval%": eval,
// eslint-disable-line no-eval
"%EvalError%": En,
"%Float32Array%": typeof Float32Array > "u" ? b : Float32Array,
"%Float64Array%": typeof Float64Array > "u" ? b : Float64Array,
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? b : FinalizationRegistry,
"%Function%": ot,
"%GeneratorFunction%": ye,
"%Int8Array%": typeof Int8Array > "u" ? b : Int8Array,
"%Int16Array%": typeof Int16Array > "u" ? b : Int16Array,
"%Int32Array%": typeof Int32Array > "u" ? b : Int32Array,
"%isFinite%": isFinite,
"%isNaN%": isNaN,
"%IteratorPrototype%": ce && D ? D(D([][Symbol.iterator]())) : b,
"%JSON%": typeof JSON == "object" ? JSON : b,
"%Map%": typeof Map > "u" ? b : Map,
"%MapIteratorPrototype%": typeof Map > "u" || !ce || !D ? b : D((/* @__PURE__ */ new Map())[Symbol.iterator]()),
"%Math%": Math,
"%Number%": Number,
"%Object%": On,
"%Object.getOwnPropertyDescriptor%": Ee,
"%parseFloat%": parseFloat,
"%parseInt%": parseInt,
"%Promise%": typeof Promise > "u" ? b : Promise,
"%Proxy%": typeof Proxy > "u" ? b : Proxy,
"%RangeError%": $n,
"%ReferenceError%": xn,
"%Reflect%": typeof Reflect > "u" ? b : Reflect,
"%RegExp%": RegExp,
"%Set%": typeof Set > "u" ? b : Set,
"%SetIteratorPrototype%": typeof Set > "u" || !ce || !D ? b : D((/* @__PURE__ */ new Set())[Symbol.iterator]()),
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? b : SharedArrayBuffer,
"%String%": String,
"%StringIteratorPrototype%": ce && D ? D(""[Symbol.iterator]()) : b,
"%Symbol%": ce ? Symbol : b,
"%SyntaxError%": ve,
"%ThrowTypeError%": Un,
"%TypedArray%": qn,
"%TypeError%": he,
"%Uint8Array%": typeof Uint8Array > "u" ? b : Uint8Array,
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? b : Uint8ClampedArray,
"%Uint16Array%": typeof Uint16Array > "u" ? b : Uint16Array,
"%Uint32Array%": typeof Uint32Array > "u" ? b : Uint32Array,
"%URIError%": Rn,
"%WeakMap%": typeof WeakMap > "u" ? b : WeakMap,
"%WeakRef%": typeof WeakRef > "u" ? b : WeakRef,
"%WeakSet%": typeof WeakSet > "u" ? b : WeakSet,
"%Function.prototype.call%": $e,
"%Function.prototype.apply%": it,
"%Object.defineProperty%": Nn,
"%Object.getPrototypeOf%": Bn,
"%Math.abs%": In,
"%Math.floor%": Fn,
"%Math.max%": Tn,
"%Math.min%": _n,
"%Math.pow%": Cn,
"%Math.round%": Dn,
"%Math.sign%": Mn,
"%Reflect.getPrototypeOf%": Ln
};
if (D)
try {
null.error;
} catch (r) {
var Wn = D(D(r));
se["%Error.prototype%"] = Wn;
}
var Gn = function r(e) {
var t;
if (e === "%AsyncFunction%")
t = er("async function () {}");
else if (e === "%GeneratorFunction%")
t = er("function* () {}");
else if (e === "%AsyncGeneratorFunction%")
t = er("async function* () {}");
else if (e === "%AsyncGenerator%") {
var n = r("%AsyncGeneratorFunction%");
n && (t = n.prototype);
} else if (e === "%AsyncIteratorPrototype%") {
var a = r("%AsyncGenerator%");
a && D && (t = D(a.prototype));
}
return se[e] = t, t;
}, Cr = {
__proto__: null,
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
"%ArrayPrototype%": ["Array", "prototype"],
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
"%ArrayProto_values%": ["Array", "prototype", "values"],
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
"%BooleanPrototype%": ["Boolean", "prototype"],
"%DataViewPrototype%": ["DataView", "prototype"],
"%DatePrototype%": ["Date", "prototype"],
"%ErrorPrototype%": ["Error", "prototype"],
"%EvalErrorPrototype%": ["EvalError", "prototype"],
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
"%FunctionPrototype%": ["Function", "prototype"],
"%Generator%": ["GeneratorFunction", "prototype"],
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
"%JSONParse%": ["JSON", "parse"],
"%JSONStringify%": ["JSON", "stringify"],
"%MapPrototype%": ["Map", "prototype"],
"%NumberPrototype%": ["Number", "prototype"],
"%ObjectPrototype%": ["Object", "prototype"],
"%ObjProto_toString%": ["Object", "prototype", "toString"],
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
"%PromisePrototype%": ["Promise", "prototype"],
"%PromiseProto_then%": ["Promise", "prototype", "then"],
"%Promise_all%": ["Promise", "all"],
"%Promise_reject%": ["Promise", "reject"],
"%Promise_resolve%": ["Promise", "resolve"],
"%RangeErrorPrototype%": ["RangeError", "prototype"],
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
"%RegExpPrototype%": ["RegExp", "prototype"],
"%SetPrototype%": ["Set", "prototype"],
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
"%StringPrototype%": ["String", "prototype"],
"%SymbolPrototype%": ["Symbol", "prototype"],
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
"%TypeErrorPrototype%": ["TypeError", "prototype"],
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
"%URIErrorPrototype%": ["URIError", "prototype"],
"%WeakMapPrototype%": ["WeakMap", "prototype"],
"%WeakSetPrototype%": ["WeakSet", "prototype"]
}, xe = We, Ne = An(), jn = xe.call($e, Array.prototype.concat), kn = xe.call(it, Array.prototype.splice), Dr = xe.call($e, String.prototype.replace), Ue = xe.call($e, String.prototype.slice), zn = xe.call($e, RegExp.prototype.exec), Hn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Kn = /\\(\\)?/g, Vn = function(e) {
var t = Ue(e, 0, 1), n = Ue(e, -1);
if (t === "%" && n !== "%")
throw new ve("invalid intrinsic syntax, expected closing `%`");
if (n === "%" && t !== "%")
throw new ve("invalid intrinsic syntax, expected opening `%`");
var a = [];
return Dr(e, Hn, function(o, f, i, l) {
a[a.length] = i ? Dr(l, Kn, "$1") : f || o;
}), a;
}, Qn = function(e, t) {
var n = e, a;
if (Ne(Cr, n) && (a = Cr[n], n = "%" + a[0] + "%"), Ne(se, n)) {
var o = se[n];
if (o === ye && (o = Gn(n)), typeof o > "u" && !t)
throw new he("intrinsic " + e + " exists, but is not available. Please file an issue!");
return {
alias: a,
name: n,
value: o
};
}
throw new ve("intrinsic " + e + " does not exist!");
}, Sr = function(e, t) {
if (typeof e != "string" || e.length === 0)
throw new he("intrinsic name must be a non-empty string");
if (arguments.length > 1 && typeof t != "boolean")
throw new he('"allowMissing" argument must be a boolean');
if (zn(/^%?[^%]*%?$/, e) === null)
throw new ve("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
var n = Vn(e), a = n.length > 0 ? n[0] : "", o = Qn("%" + a + "%", t), f = o.name, i = o.value, l = !1, c = o.alias;
c && (a = c[0], kn(n, jn([0, 1], c)));
for (var s = 1, v = !0; s < n.length; s += 1) {
var u = n[s], d = Ue(u, 0, 1), g = Ue(u, -1);
if ((d === '"' || d === "'" || d === "`" || g === '"' || g === "'" || g === "`") && d !== g)
throw new ve("property names with quotes must have matching quotes");
if ((u === "constructor" || !v) && (l = !0), a += "." + u, f = "%" + a + "%", Ne(se, f))
i = se[f];
else if (i != null) {
if (!(u in i)) {
if (!t)
throw new he("base intrinsic for " + e + " exists, but the property is not available.");
return;
}
if (Ee && s + 1 >= n.length) {
var O = Ee(i, u);
v = !!O, v && "get" in O && !("originalValue" in O.get) ? i = O.get : i = i[u];
} else
v = Ne(i, u), i = i[u];
v && !l && (se[f] = i);
}
}
return i;
}, ft = Sr, lt = at, Jn = lt([ft("%String.prototype.indexOf%")]), ut = function(e, t) {
var n = (
/** @type {Parameters<typeof callBindBasic>[0][0]} */
ft(e, !!t)
);
return typeof n == "function" && Jn(e, ".prototype.") > -1 ? lt([n]) : n;
}, Be = { exports: {} };
/*! https://mths.be/punycode v1.4.1 by @mathias */
Be.exports;
(function(r, e) {
(function(t) {
var n = e && !e.nodeType && e, a = !r.nodeType && r, o = typeof we == "object" && we;
(o.global === o || o.window === o || o.self === o) && (t = o);
var f, i = 2147483647, l = 36, c = 1, s = 26, v = 38, u = 700, d = 72, g = 128, O = "-", w = /^xn--/, N = /[^\x20-\x7E]/, h = /[\x2E\u3002\uFF0E\uFF61]/g, y = {
overflow: "Overflow: input needs wider integers to process",
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
"invalid-input": "Invalid input"
}, P = l - c, A = Math.floor, E = String.fromCharCode, L;
function R(p) {
throw new RangeError(y[p]);
}
function I(p, m) {
for (var S = p.length, $ = []; S--; )
$[S] = m(p[S]);
return $;
}
function C(p, m) {
var S = p.split("@"), $ = "";
S.length > 1 && ($ = S[0] + "@", p = S[1]), p = p.replace(h, ".");
var F = p.split("."), G = I(F, m).join(".");
return $ + G;
}
function K(p) {
for (var m = [], S = 0, $ = p.length, F, G; S < $; )
F = p.charCodeAt(S++), F >= 55296 && F <= 56319 && S < $ ? (G = p.charCodeAt(S++), (G & 64512) == 56320 ? m.push(((F & 1023) << 10) + (G & 1023) + 65536) : (m.push(F), S--)) : m.push(F);
return m;
}
function V(p) {
return I(p, function(m) {
var S = "";
return m > 65535 && (m -= 65536, S += E(m >>> 10 & 1023 | 55296), m = 56320 | m & 1023), S += E(m), S;
}).join("");
}
function T(p) {
return p - 48 < 10 ? p - 22 : p - 65 < 26 ? p - 65 : p - 97 < 26 ? p - 97 : l;
}
function q(p, m) {
return p + 22 + 75 * (p < 26) - ((m != 0) << 5);
}
function W(p, m, S) {
var $ = 0;
for (p = S ? A(p / u) : p >> 1, p += A(p / m); p > P * s >> 1; $ += l)
p = A(p / P);
return A($ + (P + 1) * p / (p + v));
}
function j(p) {
var m = [], S = p.length, $, F = 0, G = g, M = d, k, Q, Z, re, U, z, J, ae, le;
for (k = p.lastIndexOf(O), k < 0 && (k = 0), Q = 0; Q < k; ++Q)
p.charCodeAt(Q) >= 128 && R("not-basic"), m.push(p.charCodeAt(Q));
for (Z = k > 0 ? k + 1 : 0; Z < S; ) {
for (re = F, U = 1, z = l; Z >= S && R("invalid-input"), J = T(p.charCodeAt(Z++)), (J >= l || J > A((i - F) / U)) && R("overflow"), F += J * U, ae = z <= M ? c : z >= M + s ? s : z - M, !(J < ae); z += l)
le = l - ae, U > A(i / le) && R("overflow"), U *= le;
$ = m.length + 1, M = W(F - re, $, re == 0), A(F / $) > i - G && R("overflow"), G += A(F / $), F %= $, m.splice(F++, 0, G);
}
return V(m);
}
function ne(p) {
var m, S, $, F, G, M, k, Q, Z, re, U, z = [], J, ae, le, He;
for (p = K(p), J = p.length, m = g, S = 0, G = d, M = 0; M < J; ++M)
U = p[M], U < 128 && z.push(E(U));
for ($ = F = z.length, F && z.push(O); $ < J; ) {
for (k = i, M = 0; M < J; ++M)
U = p[M], U >= m && U < k && (k = U);
for (ae = $ + 1, k - m > A((i - S) / ae) && R("overflow"), S += (k - m) * ae, m = k, M = 0; M < J; ++M)
if (U = p[M], U < m && ++S > i && R("overflow"), U == m) {
for (Q = S, Z = l; re = Z <= G ? c : Z >= G + s ? s : Z - G, !(Q < re); Z += l)
He = Q - re, le = l - re, z.push(
E(q(re + He % le, 0))
), Q = A(He / le);
z.push(E(q(Q, 0))), G = W(S, ae, $ == F), S = 0, ++$;
}
++S, ++m;
}
return z.join("");
}
function ze(p) {
return C(p, function(m) {
return w.test(m) ? j(m.slice(4).toLowerCase()) : m;
});
}
function Fe(p) {
return C(p, function(m) {
return N.test(m) ? "xn--" + ne(m) : m;
});
}
if (f = {
/**
* A string representing the current Punycode.js version number.
* @memberOf punycode
* @type String
*/
version: "1.4.1",
/**
* An object of methods to convert from JavaScript's internal character
* representation (UCS-2) to Unicode code points, and back.
* @see <https://mathiasbynens.be/notes/javascript-encoding>
* @memberOf punycode
* @type Object
*/
ucs2: {
decode: K,
encode: V
},
decode: j,
encode: ne,
toASCII: Fe,
toUnicode: ze
}, n && a)
if (r.exports == n)
a.exports = f;
else
for (L in f)
f.hasOwnProperty(L) && (n[L] = f[L]);
else
t.punycode = f;
})(we);
})(Be, Be.exports);
var Zn = Be.exports;
const Yn = /* @__PURE__ */ Yr(Zn), Xn = {}, ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: Xn
}, Symbol.toStringTag, { value: "Module" })), ra = /* @__PURE__ */ Mt(ea);
var wr = typeof Map == "function" && Map.prototype, tr = Object.getOwnPropertyDescriptor && wr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Le = wr && tr && typeof tr.get == "function" ? tr.get : null, Mr = wr && Map.prototype.forEach, Ar = typeof Set == "function" && Set.prototype, nr = Object.getOwnPropertyDescriptor && Ar ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = Ar && nr && typeof nr.get == "function" ? nr.get : null, Nr = Ar && Set.prototype.forEach, ta = typeof WeakMap == "function" && WeakMap.prototype, Ae = ta ? WeakMap.prototype.has : null, na = typeof WeakSet == "function" && WeakSet.prototype, Oe = na ? WeakSet.prototype.has : null, aa = typeof WeakRef == "function" && WeakRef.prototype, Ur = aa ? WeakRef.prototype.deref : null, oa = Boolean.prototype.valueOf, ia = Object.prototype.toString, fa = Function.prototype.toString, la = String.prototype.match, Or = String.prototype.slice, oe = String.prototype.replace, ua = String.prototype.toUpperCase, Br = String.prototype.toLowerCase, st = RegExp.prototype.test, Lr = Array.prototype.concat, ee = Array.prototype.join, sa = Array.prototype.slice, qr = Math.floor, sr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ar = Object.getOwnPropertySymbols, cr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, me = typeof Symbol == "function" && typeof Symbol.iterator == "object", B = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === me || !0) ? Symbol.toStringTag : null, ct = Object.prototype.propertyIsEnumerable, Wr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
return r.__proto__;
} : null);
function Gr(r, e) {
if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || st.call(/e/, e))
return e;
var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
if (typeof r == "number") {
var n = r < 0 ? -qr(-r) : qr(r);
if (n !== r) {
var a = String(n), o = Or.call(e, a.length + 1);
return oe.call(a, t, "$&_") + "." + oe.call(oe.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
}
}
return oe.call(e, t, "$&_");
}
var pr = ra, jr = pr.custom, kr = ht(jr) ? jr : null, pt = {
__proto__: null,
double: '"',
single: "'"
}, ca = {
__proto__: null,
double: /(["\\])/g,
single: /(['\\])/g
}, Ge = function r(e, t, n, a) {
var o = t || {};
if (te(o, "quoteStyle") && !te(pt, o.quoteStyle))
throw new TypeError('option "quoteStyle" must be "single" or "double"');
if (te(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
var f = te(o, "customInspect") ? o.customInspect : !0;
if (typeof f != "boolean" && f !== "symbol")
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
if (te(o, "indent") && o.indent !== null && o.indent !== " " && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
if (te(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
var i = o.numericSeparator;
if (typeof e > "u")
return "undefined";
if (e === null)
return "null";
if (typeof e == "boolean")
return e ? "true" : "false";
if (typeof e == "string")
return vt(e, o);
if (typeof e == "number") {
if (e === 0)
return 1 / 0 / e > 0 ? "0" : "-0";
var l = String(e);
return i ? Gr(e, l) : l;
}
if (typeof e == "bigint") {
var c = String(e) + "n";
return i ? Gr(e, c) : c;
}
var s = typeof o.depth > "u" ? 5 : o.depth;
if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
return yr(e) ? "[Array]" : "[Object]";
var v = Ia(o, n);
if (typeof a > "u")
a = [];
else if (dt(a, e) >= 0)
return "[Circular]";
function u(T, q, W) {
if (q && (a = sa.call(a), a.push(q)), W) {
var j = {
depth: o.depth
};
return te(o, "quoteStyle") && (j.quoteStyle = o.quoteStyle), r(T, j, n + 1, a);
}
return r(T, o, n + 1, a);
}
if (typeof e == "function" && !zr(e)) {
var d = Sa(e), g = Te(e, u);
return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (g.length > 0 ? " { " + ee.call(g, ", ") + " }" : "");
}
if (ht(e)) {
var O = me ? oe.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : cr.call(e);
return typeof e == "object" && !me ? Se(O) : O;
}
if ($a(e)) {
for (var w = "<" + Br.call(String(e.nodeName)), N = e.attributes || [], h = 0; h < N.length; h++)
w += " " + N[h].name + "=" + yt(pa(N[h].value), "double", o);
return w += ">", e.childNodes && e.childNodes.length && (w += "..."), w += "</" + Br.call(String(e.nodeName)) + ">", w;
}
if (yr(e)) {
if (e.length === 0)
return "[]";
var y = Te(e, u);
return v && !Ra(y) ? "[" + hr(y, v) + "]" : "[ " + ee.call(y, ", ") + " ]";
}
if (ha(e)) {
var P = Te(e, u);
return !("cause" in Error.prototype) && "cause" in e && !ct.call(e, "cause") ? "{ [" + String(e) + "] " + ee.call(Lr.call("[cause]: " + u(e.cause), P), ", ") + " }" : P.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + ee.call(P, ", ") + " }";
}
if (typeof e == "object" && f) {
if (kr && typeof e[kr] == "function" && pr)
return pr(e, { depth: s - n });
if (f !== "symbol" && typeof e.inspect == "function")
return e.inspect();
}
if (wa(e)) {
var A = [];
return Mr && Mr.call(e, function(T, q) {
A.push(u(q, e, !0) + " => " + u(T, e));
}), Hr("Map", Le.call(e), A, v);
}
if (Pa(e)) {
var E = [];
return Nr && Nr.call(e, function(T) {
E.push(u(T, e));
}), Hr("Set", qe.call(e), E, v);
}
if (Aa(e))
return or("WeakMap");
if (Ea(e))
return or("WeakSet");
if (Oa(e))
return or("WeakRef");
if (va(e))
return Se(u(Number(e)));
if (ga(e))
return Se(u(sr.call(e)));
if (ma(e))
return Se(oa.call(e));
if (da(e))
return Se(u(String(e)));
if (typeof window < "u" && e === window)
return "{ [object Window] }";
if (typeof globalThis < "u" && e === globalThis || typeof we < "u" && e === we)
return "{ [object globalThis] }";
if (!ya(e) && !zr(e)) {
var L = Te(e, u), R = Wr ? Wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, I = e instanceof Object ? "" : "null prototype", C = !R && B && Object(e) === e && B in e ? Or.call(fe(e), 8, -1) : I ? "Object" : "", K = R || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = K + (C || I ? "[" + ee.call(Lr.call([], C || [], I || []), ": ") + "] " : "");
return L.length === 0 ? V + "{}" : v ? V + "{" + hr(L, v) + "}" : V + "{ " + ee.call(L, ", ") + " }";
}
return String(e);
};
function yt(r, e, t) {
var n = t.quoteStyle || e, a = pt[n];
return a + r + a;
}
function pa(r) {
return oe.call(String(r), /"/g, """);
}
function yr(r) {
return fe(r) === "[object Array]" && (!B || !(typeof r == "object" && B in r));
}
function ya(r) {
return fe(r) === "[object Date]" && (!B || !(typeof r == "object" && B in r));
}
function zr(r) {
return fe(r) === "[object RegExp]" && (!B || !(typeof r == "object" && B in r));
}
function ha(r) {
return fe(r) === "[object Error]" && (!B || !(typeof r == "object" && B in r));
}
function da(r) {
return fe(r) === "[object String]" && (!B || !(typeof r == "object" && B in r));
}
function va(r) {
return fe(r) === "[object Number]" && (!B || !(typeof r == "object" && B in r));
}
function ma(r) {
return fe(r) === "[object Boolean]" && (!B || !(typeof r == "object" && B in r));
}
function ht(r) {
if (me)
return r && typeof r == "object" && r instanceof Symbol;
if (typeof r == "symbol")
return !0;
if (!r || typeof r != "object" || !cr)
return !1;
try {
return cr.call(r), !0;
} catch {
}
return !1;
}
function ga(r) {
if (!r || typeof r != "object" || !sr)
return !1;
try {
return sr.call(r), !0;
} catch {
}
return !1;
}
var ba = Object.prototype.hasOwnProperty || function(r) {
return r in this;
};
function te(r, e) {
return ba.call(r, e);
}
function fe(r) {
return ia.call(r);
}
function Sa(r) {
if (r.name)
return r.name;
var e = la.call(fa.call(r), /^function\s*([\w$]+)/);
return e ? e[1] : null;
}
function dt(r, e) {
if (r.indexOf)
return r.indexOf(e);
for (var t = 0, n = r.length; t < n; t++)
if (r[t] === e)
return t;
return -1;
}
function wa(r) {
if (!Le || !r || typeof r != "object")
return !1;
try {
Le.call(r);
try {
qe.call(r);
} catch {
return !0;
}
return r instanceof Map;
} catch {
}
return !1;
}
function Aa(r) {
if (!Ae || !r || typeof r != "object")
return !1;
try {
Ae.call(r, Ae);
try {
Oe.call(r, Oe);
} catch {
return !0;
}
return r instanceof WeakMap;
} catch {
}
return !1;
}
function Oa(r) {
if (!Ur || !r || typeof r != "object")
return !1;
try {
return Ur.call(r), !0;
} catch {
}
return !1;
}
function Pa(r) {
if (!qe || !r || typeof r != "object")
return !1;
try {
qe.call(r);
try {
Le.call(r);
} catch {
return !0;
}
return r instanceof Set;
} catch {
}
return !1;
}
function Ea(r) {
if (!Oe || !r || typeof r != "object")
return !1;
try {
Oe.call(r, Oe);
try {
Ae.call(r, Ae);
} catch {
return !0;
}
return r instanceof WeakSet;
} catch {
}
return !1;
}
function $a(r) {
return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
}
function vt(r, e) {
if (r.length > e.maxStringLength) {
var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
return vt(Or.call(r, 0, e.maxStringLength), e) + n;
}
var a = ca[e.quoteStyle || "single"];
a.lastIndex = 0;
var o = oe.call(oe.call(r, a, "\\$1"), /[\x00-\x1f]/g, xa);
return yt(o, "single", e);
}
function xa(r) {
var e = r.charCodeAt(0), t = {
8: "b",
9: "t",
10: "n",
12: "f",
13: "r"
}[e];
return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + ua.call(e.toString(16));
}
function Se(r) {
return "Object(" + r + ")";
}
function or(r) {
return r + " { ? }";
}
function Hr(r, e, t, n) {
var a = n ? hr(t, n) : ee.call(t, ", ");
return r + " (" + e + ") {" + a + "}";
}
function Ra(r) {
for (var e = 0; e < r.length; e++)
if (dt(r[e], `
`) >= 0)
return !1;
return !0;
}
function Ia(r, e) {
var t;
if (r.indent === " ")
t = " ";
else if (typeof r.indent == "number" && r.indent > 0)
t = ee.call(Array(r.indent + 1), " ");
else
return null;
return {
base: t,
prev: ee.call(Array(e + 1), t)
};
}
function hr(r, e) {
if (r.length === 0)
return "";
var t = `
` + e.prev + e.base;
return t + ee.call(r, "," + t) + `
` + e.prev;
}
function Te(r, e) {
var t = yr(r), n = [];
if (t) {
n.length = r.length;
for (var a = 0; a < r.length; a++)
n[a] = te(r, a) ? e(r[a], r) : "";
}
var o = typeof ar == "function" ? ar(r) : [], f;
if (me) {
f = {};
for (var i = 0; i < o.length; i++)
f["$" + o[i]] = o[i];
}
for (var l in r)
te(r, l) && (t && String(Number(l)) === l && l < r.length || me && f["$" + l] instanceof Symbol || (st.call(/[^\w$]/, l) ? n.push(e(l, r) + ": " + e(r[l], r)) : n.push(l + ": " + e(r[l], r))));
if (typeof ar == "function")
for (var c = 0; c < o.length; c++)
ct.call(r, o[c]) && n.push("[" + e(o[c]) + "]: " + e(r[o[c]], r));
return n;
}
var Fa = Ge, Ta = be, je = function(r, e, t) {
for (var n = r, a; (a = n.next) != null; n = a)
if (a.key === e)
return n.next = a.next, t || (a.next = /** @type {NonNullable<typeof list.next>} */
r.next, r.next = a), a;
}, _a = function(r, e) {
if (r) {
var t = je(r, e);
return t && t.value;
}
}, Ca = function(r, e, t) {
var n = je(r, e);
n ? n.value = t : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
{
// eslint-disable-line no-param-reassign, no-extra-parens
key: e,
next: r.next,
value: t
};
}, Da = function(r, e) {
return r ? !!je(r, e) : !1;
}, Ma = function(r, e) {
if (r)
return je(r, e, !0);
}, Na = function() {
var e, t = {
assert: function(n) {
if (!t.has(n))
throw new Ta("Side channel does not contain " + Fa(n));
},
delete: function(n) {
var a = e && e.next, o = Ma(e, n);
return o && a && a === o && (e = void 0), !!o;
},
get: function(n) {
return _a(e, n);
},
has: function(n) {
return Da(e, n);
},
set: function(n, a) {
e || (e = {
next: void 0
}), Ca(
/** @type {NonNullable<typeof $o>} */
e,
n,
a
);
}
};
return t;
}, Ua = Sr, Re = ut, Ba = Ge, La = be, Kr = Ua("%Map%", !0), qa = Re("Map.prototype.get", !0), Wa = Re("Map.prototype.set", !0), Ga = Re("Map.prototype.has", !0), ja = Re("Map.prototype.delete", !0), ka = Re("Map.prototype.size", !0), mt = !!Kr && /** @type {Exclude<import('.'), false>} */
function() {
var e, t = {
assert: function(n) {
if (!t.has(n))
throw new La("Side channel does not contain " + Ba(n));
},
delete: function(n) {
if (e) {
var a = ja(e, n);
return ka(e) === 0 && (e = void 0), a;
}
return !1;
},
get: function(n) {
if (e)
return qa(e, n);
},
has: function(n) {
return e ? Ga(e, n) : !1;
},
set: function(n, a) {
e || (e = new Kr()), Wa(e, n, a);
}
};
return t;
}, za = Sr, ke = ut, Ha = Ge, _e = mt, Ka = be, pe = za("%WeakMap%", !0), Va = ke("WeakMap.prototype.get", !0), Qa = ke("WeakMap.prototype.set", !0), Ja = ke("WeakMap.prototype.has", !0), Za = ke("WeakMap.prototype.delete", !0), Ya = pe ? (
/** @type {Exclude<import('.'), false>} */
function() {
var e, t, n = {
assert: function(a) {
if (!n.has(a))
throw new Ka("Side channel does not contain " + Ha(a));
},
delete: function(a) {
if (pe && a && (typeof a == "object" || typeof a == "function")) {
if (e)
return Za(e, a);
} else if (_e && t)
return t.delete(a);
return !1;
},
get: function(a) {
return pe && a && (typeof a == "object" || typeof a == "function") && e ? Va(e, a) : t && t.get(a);
},
has: function(a) {
return pe && a && (typeof a == "object" || typeof a == "function") && e ? Ja(e, a) : !!t && t.has(a);
},
set: function(a, o) {
pe && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new pe()), Qa(e, a, o)) : _e && (t || (t = _e()), t.set(a, o));
}
};
return n;
}
) : _e, Xa = be, eo = Ge, ro = Na, to = mt, no = Ya, ao = no || to || ro, oo = function() {
var e, t = {
assert: function(n) {
if (!t.has(n))
throw new Xa("Side channel does not contain " + eo(n));
},
delete: function(n) {
return !!e && e.delete(n);
},
get: function(n) {
return e && e.get(n);
},
has: function(n) {
return !!e && e.has(n);
},
set: function(n, a) {
e || (e = ao()), e.set(n, a);
}
};
return t;
}, io = String.prototype.replace, fo = /%20/g, ir = {
RFC1738: "RFC1738",
RFC3986: "RFC3986"
}, Pr = {
default: ir.RFC3986,
formatters: {
RFC1738: function(r) {
return io.call(r, fo, "+");
},
RFC3986: function(r) {
return String(r);
}
},
RFC1738: ir.RFC1738,
RFC3986: ir.RFC3986
}, lo = Pr, fr = Object.prototype.hasOwnProperty, ue = Array.isArray, Y = function() {
for (var r = [], e = 0; e < 256; ++e)
r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
return r;
}(), uo = function(e) {
for (; e.length > 1; ) {
var t = e.pop(), n = t.obj[t.prop];
if (ue(n)) {
for (var a = [], o = 0; o < n.length; ++o)
typeof n[o] < "u" && a.push(n[o]);
t.obj[t.prop] = a;
}
}
}, gt = function(e, t) {
for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
typeof e[a] < "u" && (n[a] = e[a]);
return n;
}, so = function r(e, t, n) {
if (!t)
return e;
if (typeof t != "object") {
if (ue(e))
e.push(t);
else if (e && typeof e == "object")
(n && (n.plainObjects || n.allowPrototypes) || !fr.call(Object.prototype, t)) && (e[t] = !0);
else
return [e, t];
return e;
}
if (!e || typeof e != "object")
return [e].concat(t);
var a = e;
return ue(e) && !ue(t) && (a = gt(e, n)), ue(e) && ue(t) ? (t.forEach(function(o, f) {
if (fr.call(e, f)) {
var i = e[f];
i && typeof i == "object" && o && typeof o == "object" ? e[f] = r(i, o, n) : e.push(o);
} else
e[f] = o;
}), e) : Object.keys(t).reduce(function(o, f) {
var i = t[f];
return fr.call(o, f) ? o[f] = r(o[f], i, n) : o[f] = i, o;
}, a);
}, co = function(e, t) {
return Object.keys(t).reduce(function(n, a) {
return n[a] = t[a], n;
}, e);
}, po = function(r, e, t) {
var n = r.replace(/\+/g, " ");
if (t === "iso-8859-1")
return n.replace(/%[0-9a-f]{2}/gi, unescape);
try {
return decodeURIComponent(n);
} catch {
return n;
}
}, lr = 1024, yo = function(e, t, n, a, o) {
if (e.length === 0)
return e;
var f = e;
if (typeof e == "symbol" ? f = Symbol.prototype.toString.call(e) : typeof e != "string" && (f = String(e)), n === "iso-8859-1")
return escape(f).replace(/%u[0-9a-f]{4}/gi, function(d) {
return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
});
for (var i = "", l = 0; l < f.length; l += lr) {
for (var c = f.length >= lr ? f.slice(l, l + lr) : f, s = [], v = 0; v < c.length; ++v) {
var u = c.charCodeAt(v);
if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || o === lo.RFC1738 && (u === 40 || u === 41)) {
s[s.length] = c.charAt(v);
continue;
}
if (u < 128) {
s[s.length] = Y[u];
continue;
}
if (u < 2048) {
s[s.length] = Y[192 | u >> 6] + Y[128 | u & 63];
continue;
}
if (u < 55296 || u >= 57344) {
s[s.length] = Y[224 | u >> 12] + Y[128 | u >> 6 & 63] + Y[128 | u & 63];
continue;
}
v += 1, u = 65536 + ((u & 1023) << 10 | c.charCodeAt(v) & 1023), s[s.length] = Y[240 | u >> 18] + Y[128 | u >> 12 & 63] + Y[128 | u >> 6 & 63] + Y[128 | u & 63];
}
i += s.join("");
}
return i;
}, ho = function(e) {
for (var t = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < t.length; ++a)
for (var o = t[a], f = o.obj[o.prop], i = Object.keys(f), l = 0; l < i.length; ++l) {
var c = i[l], s = f[c];
typeof s == "object" && s !== null && n.indexOf(s) === -1 && (t.push({ obj: f, prop: c }), n.push(s));
}
return uo(t), e;
}, vo = function(e) {
return Object.prototype.toString.call(e) === "[object RegExp]";
}, mo = function(e) {
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
}, go = function(e, t) {
return [].concat(e, t);
}, bo = function(e, t) {
if (ue(e)) {
for (var n = [], a = 0; a < e.length; a += 1)
n.push(t(e[a]));
return n;
}
return t(e);
}, bt = {
arrayToObject: gt,
assign: co,
combine: go,
compact: ho,
decode: po,
encode: yo,
isBuffer: mo,
isRegExp: vo,
maybeMap: bo,
merge: so
}, St = oo, Me = bt, Pe = Pr, So = Object.prototype.hasOwnProperty, wt = {
brackets: function(e) {
return e + "[]";
},
comma: "comma",
indices: function(e, t) {
return e + "[" + t + "]";
},
repeat: function(e) {
return e;
}
}, X = Array.isArray, wo = Array.prototype.push, At = function(r, e) {
wo.apply(r, X(e) ? e : [e]);
}, Ao = Date.prototype.toISOString, Vr = Pe.default, _ = {
addQueryPrefix: !1,
allowDots: !1,
allowEmptyArrays: !1,
arrayFormat: "indices",
charset: "utf-8",
charsetSentinel: !1,
delimiter: "&",
encode: !0,
encodeDotInKeys: !1,
encoder: Me.encode,
encodeValuesOnly: !1,
format: Vr,
formatter: Pe.formatters[Vr],
// deprecated
indices: !1,
serializeDate: function(e) {
return Ao.call(e);
},
skipNulls: !1,
strictNullHandling: !1
}, Oo = function(e) {
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
}, ur = {}, Po = function r(e, t, n, a, o, f, i, l, c, s, v, u, d, g, O, w, N, h) {
for (var y = e, P = h, A = 0, E = !1; (P = P.get(ur)) !== void 0 && !E; ) {
var L = P.get(e);
if (A += 1, typeof L < "u") {
if (L === A)
throw new RangeError("Cyclic object value");
E = !0;
}
typeof P.get(ur) > "u" && (A = 0);
}
if (typeof s == "function" ? y = s(t, y) : y instanceof Date ? y = d(y) : n === "comma" && X(y) && (y = Me.maybeMap(y, function(p) {
return p instanceof Date ? d(p) : p;
})), y === null) {
if (f)
return c && !w ? c(t, _.encoder, N, "key", g) : t;
y = "";
}
if (Oo(y) || Me.isBuffer(y)) {
if (c) {
var R = w ? t : c(t, _.encoder, N, "key", g);
return [O(R) + "=" + O(c(y, _.encoder, N, "value", g))];
}
return [O(t) + "=" + O(String(y))];
}
var I = [];
if (typeof y > "u")
return I;
var C;
if (n === "comma" && X(y))
w && c && (y = Me.maybeMap(y, c)), C = [{ value: y.length > 0 ? y.join(",") || null : void 0 }];
else if (X(s))
C = s;
else {
var K = Object.keys(y);
C = v ? K.sort(v) : K;
}
var V = l ? t.replace(/\./g, "%2E") : t, T = a && X(y) && y.length === 1 ? V + "[]" : V;
if (o && X(y) && y.length === 0)
return T + "[]";
for (var q = 0; q < C.length; ++q) {
var W = C[q], j = typeof W == "object" && typeof W.value < "u" ? W.value : y[W];
if (!(i && j === null)) {
var ne = u && l ? W.replace(/\./g, "%2E") : W, ze = X(y) ? typeof n == "function" ? n(T, ne) : T : T + (u ? "." + ne : "[" + ne + "]");
h.set(e, A);
var Fe = St();
Fe.set(ur, h), At(I, r(
j,
ze,
n,
a,
o,
f,
i,
l,
n === "comma" && w && X(y) ? null : c,
s,
v,
u,
d,
g,
O,
w,
N,
Fe
));
}
}
return I;
}, Eo = function(e) {
if (!e)
return _;
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
throw new TypeError("Encoder has to be a function.");
var t = e.charset || _.charset;
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
var n = Pe.default;
if (typeof e.format < "u") {
if (!So.call(Pe.formatters, e.format))
throw new TypeError("Unknown format option provided.");
n = e.format;
}
var a = Pe.formatters[n], o = _.filter;
(typeof e.filter == "function" || X(e.filter)) && (o = e.filter);
var f;
if (e.arrayFormat in wt ? f = e.arrayFormat : "indices" in e ? f = e.indices ? "indices" : "repeat" : f = _.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
var i = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : _.allowDots : !!e.allowDots;
return {
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : _.addQueryPrefix,
allowDots: i,
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : _.allowEmptyArrays,
arrayFormat: f,
charset: t,
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : _.charsetSentinel,
commaRoundTrip: e.commaRoundTrip,
delimiter: typeof e.delimiter > "u" ? _.delimiter : e.delimiter,
encode: typeof e.encode == "boolean" ? e.encode : _.encode,
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : _.encodeDotInKeys,
encoder: typeof e.encoder == "function" ? e.encoder : _.encoder,
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : _.encodeValuesOnly,
filter: o,
format: n,
formatter: a,
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : _.serializeDate,
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : _.skipNulls,
sort: typeof e.sort == "function" ? e.sort : null,
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : _.strictNullHandling
};
}, $o = function(r, e) {
var t = r, n = Eo(e), a, o;
typeof n.filter == "function" ? (o = n.filter, t = o("", t)) : X(n.filter) && (o = n.filter, a = o);
var f = [];
if (typeof t != "object" || t === null)
return "";
var i = wt[n.arrayFormat], l = i === "comma" && n.commaRoundTrip;
a || (a = Object.keys(t)), n.sort && a.sort(n.sort);
for (var c = St(), s = 0; s < a.length; ++s) {
var v = a[s];
n.skipNulls && t[v] === null || At(f, Po(
t[v],
v,
i,
l,
n.allowEmptyArrays,
n.strictNullHandling,
n.skipNulls,
n.encodeDotInKeys,
n.encode ? n.encoder : null,
n.filter,
n.sort,
n.allowDots,
n.serializeDate,
n.format,
n.formatter,
n.encodeValuesOnly,
n.charset,
c
));
}
var u = f.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), u.length > 0 ? d + u : "";
}, ge = bt, dr = Object.prototype.hasOwnProperty, xo = Array.isArray, x = {
allowDots: !1,
allowEmptyArrays: !1,
allowPrototypes: !1,
allowSparse: !1,
arrayLimit: 20,
charset: "utf-8",
charsetSentinel: !1,
comma: !1,
decodeDotInKeys: !1,
decoder: ge.decode,
delimiter: "&",
depth: 5,
duplicates: "combine",
ignoreQueryPrefix: !1,
interpretNumericEntities: !1,
parameterLimit: 1e3,
parseArrays: !0,
plainObjects: !1,
strictDepth: !1,
strictNullHandling: !1
}, Ro = function(r) {
return r.replace(/&#(\d+);/g, function(e, t) {
return String.fromCharCode(parseInt(t, 10));
});
}, Ot = function(r, e) {
return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
}, Io = "utf8=%26%2310003%3B", Fo = "utf8=%E2%9C%93", To = function(e, t) {
var n = { __proto__: null }, a = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
var o = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, f = a.split(t.delimiter, o), i = -1, l, c = t.charset;
if (t.charsetSentinel)
for (l = 0; l < f.length; ++l)
f[l].indexOf("utf8=") === 0 && (f[l] === Fo ? c = "utf-8" : f[l] === Io && (c = "iso-8859-1"), i = l, l = f.length);
for (l = 0; l < f.length; ++l)
if (l !== i) {
var s = f[l], v = s.indexOf("]="), u = v === -1 ? s.indexOf("=") : v + 1, d, g;
u === -1 ? (d = t.decoder(s, x.decoder, c, "key"), g = t.strictNullHandling ? null : "") : (d = t.decoder(s.slice(0, u), x.decoder, c, "key"), g = ge.maybeMap(
Ot(s.slice(u + 1), t),
function(w) {
return t.decoder(w, x.decoder, c, "value");
}
)), g && t.interpretNumericEntities && c === "iso-8859-1" && (g = Ro(g)), s.indexOf("[]=") > -1 && (g = xo(g) ? [g] : g);
var O = dr.call(n, d);
O && t.duplicates === "combine" ? n[d] = ge.combine(n[d], g) : (!O || t.duplicates === "last") && (n[d] = g);
}
return n;
}, _o = function(r, e, t, n) {
for (var a = n ? e : Ot(e, t), o = r.length - 1; o >= 0; --o) {
var f, i = r[o];
if (i === "[]" && t.parseArrays)
f = t.allowEmptyArrays && (a === "" || t.strictNullHandling && a === null) ? [] : [].concat(a);
else {
f = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
var l = i.charAt(0) === "[" && i.charAt(i.length - 1) === "]" ? i.slice(1, -1) : i, c = t.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, s = parseInt(c, 10);
!t.parseArrays && c === "" ? f = { 0: a } : !isNaN(s) && i !== c && String(s) === c && s >= 0 && t.parseArrays && s <= t.arrayLimit ? (f = [], f[s] = a) : c !== "__proto__" && (f[c] = a);
}
a = f;
}
return a;
}, Co = function(e, t, n, a) {
if (e) {
var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, f = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, l = n.depth > 0 && f.exec(o), c = l ? o.slice(0, l.index) : o, s = [];
if (c) {
if (!n.plainObjects && dr.call(Object.prototype, c) && !n.allowPrototypes)
return;
s.push(c);
}
for (var v = 0; n.depth > 0 && (l = i.exec(o)) !== null && v < n.depth; ) {
if (v += 1, !n.plainObjects && dr.call(Object.prototype, l[1].slice(1, -1)) && !n.all