UNPKG

janus-bury

Version:

支持vue3的埋点自动上报的插件

1,377 lines 166 kB
import { computed as so } from "vue"; var Ir = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Bn(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } function uo(e) { if (e.__esModule) return e; var t = e.default; if (typeof t == "function") { var r = function o() { return this instanceof o ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments); }; r.prototype = t.prototype; } else r = {}; return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) { var a = Object.getOwnPropertyDescriptor(e, o); Object.defineProperty(r, o, a.get ? a : { enumerable: !0, get: function() { return e[o]; } }); }), r; } var Lt, _r; function lo() { return _r || (_r = 1, Lt = Error), Lt; } var Ft, Dr; function co() { return Dr || (Dr = 1, Ft = EvalError), Ft; } var Mt, Nr; function fo() { return Nr || (Nr = 1, Mt = RangeError), Mt; } var Ut, Lr; function po() { return Lr || (Lr = 1, Ut = ReferenceError), Ut; } var kt, Fr; function In() { return Fr || (Fr = 1, kt = SyntaxError), kt; } var Ht, Mr; function nt() { return Mr || (Mr = 1, Ht = TypeError), Ht; } var qt, Ur; function yo() { return Ur || (Ur = 1, qt = URIError), qt; } var Gt, kr; function ho() { return kr || (kr = 1, Gt = function() { if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1; if (typeof Symbol.iterator == "symbol") return !0; var t = {}, r = Symbol("test"), o = Object(r); if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(o) !== "[object Symbol]") return !1; var a = 42; t[r] = a; for (r in t) return !1; if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0) return !1; var i = Object.getOwnPropertySymbols(t); if (i.length !== 1 || i[0] !== r || !Object.prototype.propertyIsEnumerable.call(t, r)) return !1; if (typeof Object.getOwnPropertyDescriptor == "function") { var s = Object.getOwnPropertyDescriptor(t, r); if (s.value !== a || s.enumerable !== !0) return !1; } return !0; }), Gt; } var Wt, Hr; function mo() { if (Hr) return Wt; Hr = 1; var e = typeof Symbol < "u" && Symbol, t = ho(); return Wt = function() { return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t(); }, Wt; } var Vt, qr; function go() { if (qr) return Vt; qr = 1; var e = { __proto__: null, foo: {} }, t = Object; return Vt = function() { return { __proto__: e }.foo === e.foo && !(e instanceof t); }, Vt; } var $t, Gr; function vo() { if (Gr) return $t; Gr = 1; var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, r = Math.max, o = "[object Function]", a = function(O, v) { for (var y = [], A = 0; A < O.length; A += 1) y[A] = O[A]; for (var x = 0; x < v.length; x += 1) y[x + O.length] = v[x]; return y; }, i = function(O, v) { for (var y = [], A = v, x = 0; A < O.length; A += 1, x += 1) y[x] = O[A]; return y; }, s = function(p, O) { for (var v = "", y = 0; y < p.length; y += 1) v += p[y], y + 1 < p.length && (v += O); return v; }; return $t = function(O) { var v = this; if (typeof v != "function" || t.apply(v) !== o) throw new TypeError(e + v); for (var y = i(arguments, 1), A, x = function() { if (this instanceof A) { var m = v.apply( this, a(y, arguments) ); return Object(m) === m ? m : this; } return v.apply( O, a(y, arguments) ); }, b = r(0, v.length - y.length), E = [], S = 0; S < b; S++) E[S] = "$" + S; if (A = Function("binder", "return function (" + s(E, ",") + "){ return binder.apply(this,arguments); }")(x), v.prototype) { var l = function() { }; l.prototype = v.prototype, A.prototype = new l(), l.prototype = null; } return A; }, $t; } var jt, Wr; function Er() { if (Wr) return jt; Wr = 1; var e = vo(); return jt = Function.prototype.bind || e, jt; } var Kt, Vr; function wo() { if (Vr) return Kt; Vr = 1; var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = Er(); return Kt = r.call(e, t), Kt; } var zt, $r; function Xe() { if ($r) return zt; $r = 1; var e, t = /* @__PURE__ */ lo(), r = /* @__PURE__ */ co(), o = /* @__PURE__ */ fo(), a = /* @__PURE__ */ po(), i = /* @__PURE__ */ In(), s = /* @__PURE__ */ nt(), p = /* @__PURE__ */ yo(), O = Function, v = function(te) { try { return O('"use strict"; return (' + te + ").constructor;")(); } catch { } }, y = Object.getOwnPropertyDescriptor; if (y) try { y({}, ""); } catch { y = null; } var A = function() { throw new s(); }, x = y ? function() { try { return arguments.callee, A; } catch { try { return y(arguments, "callee").get; } catch { return A; } } }() : A, b = mo()(), E = /* @__PURE__ */ go()(), S = Object.getPrototypeOf || (E ? function(te) { return te.__proto__; } : null), l = {}, m = typeof Uint8Array > "u" || !S ? e : S(Uint8Array), h = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer, "%ArrayIteratorPrototype%": b && S ? S([][Symbol.iterator]()) : e, "%AsyncFromSyncIteratorPrototype%": e, "%AsyncFunction%": l, "%AsyncGenerator%": l, "%AsyncGeneratorFunction%": l, "%AsyncIteratorPrototype%": l, "%Atomics%": typeof Atomics > "u" ? e : Atomics, "%BigInt%": typeof BigInt > "u" ? e : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? e : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? e : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? e : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": t, "%eval%": eval, // eslint-disable-line no-eval "%EvalError%": r, "%Float32Array%": typeof Float32Array > "u" ? e : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? e : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry, "%Function%": O, "%GeneratorFunction%": l, "%Int8Array%": typeof Int8Array > "u" ? e : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? e : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? e : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": b && S ? S(S([][Symbol.iterator]())) : e, "%JSON%": typeof JSON == "object" ? JSON : e, "%Map%": typeof Map > "u" ? e : Map, "%MapIteratorPrototype%": typeof Map > "u" || !b || !S ? e : S((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? e : Promise, "%Proxy%": typeof Proxy > "u" ? e : Proxy, "%RangeError%": o, "%ReferenceError%": a, "%Reflect%": typeof Reflect > "u" ? e : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? e : Set, "%SetIteratorPrototype%": typeof Set > "u" || !b || !S ? e : S((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": b && S ? S(""[Symbol.iterator]()) : e, "%Symbol%": b ? Symbol : e, "%SyntaxError%": i, "%ThrowTypeError%": x, "%TypedArray%": m, "%TypeError%": s, "%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? e : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? e : Uint32Array, "%URIError%": p, "%WeakMap%": typeof WeakMap > "u" ? e : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? e : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? e : WeakSet }; if (S) try { null.error; } catch (te) { var T = S(S(te)); h["%Error.prototype%"] = T; } var C = function te(D) { var J; if (D === "%AsyncFunction%") J = v("async function () {}"); else if (D === "%GeneratorFunction%") J = v("function* () {}"); else if (D === "%AsyncGeneratorFunction%") J = v("async function* () {}"); else if (D === "%AsyncGenerator%") { var j = te("%AsyncGeneratorFunction%"); j && (J = j.prototype); } else if (D === "%AsyncIteratorPrototype%") { var Z = te("%AsyncGenerator%"); Z && S && (J = S(Z.prototype)); } return h[D] = J, J; }, R = { __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"] }, I = Er(), H = /* @__PURE__ */ wo(), U = I.call(Function.call, Array.prototype.concat), W = I.call(Function.apply, Array.prototype.splice), k = I.call(Function.call, String.prototype.replace), X = I.call(Function.call, String.prototype.slice), F = I.call(Function.call, RegExp.prototype.exec), oe = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ce = /\\(\\)?/g, Q = function(D) { var J = X(D, 0, 1), j = X(D, -1); if (J === "%" && j !== "%") throw new i("invalid intrinsic syntax, expected closing `%`"); if (j === "%" && J !== "%") throw new i("invalid intrinsic syntax, expected opening `%`"); var Z = []; return k(D, oe, function(ae, ve, Y, ye) { Z[Z.length] = Y ? k(ye, ce, "$1") : ve || ae; }), Z; }, Ee = function(D, J) { var j = D, Z; if (H(R, j) && (Z = R[j], j = "%" + Z[0] + "%"), H(h, j)) { var ae = h[j]; if (ae === l && (ae = C(j)), typeof ae > "u" && !J) throw new s("intrinsic " + D + " exists, but is not available. Please file an issue!"); return { alias: Z, name: j, value: ae }; } throw new i("intrinsic " + D + " does not exist!"); }; return zt = function(D, J) { if (typeof D != "string" || D.length === 0) throw new s("intrinsic name must be a non-empty string"); if (arguments.length > 1 && typeof J != "boolean") throw new s('"allowMissing" argument must be a boolean'); if (F(/^%?[^%]*%?$/, D) === null) throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); var j = Q(D), Z = j.length > 0 ? j[0] : "", ae = Ee("%" + Z + "%", J), ve = ae.name, Y = ae.value, ye = !1, we = ae.alias; we && (Z = we[0], W(j, U([0, 1], we))); for (var Te = 1, pe = !0; Te < j.length; Te += 1) { var ie = j[Te], se = X(ie, 0, 1), Ae = X(ie, -1); if ((se === '"' || se === "'" || se === "`" || Ae === '"' || Ae === "'" || Ae === "`") && se !== Ae) throw new i("property names with quotes must have matching quotes"); if ((ie === "constructor" || !pe) && (ye = !0), Z += "." + ie, ve = "%" + Z + "%", H(h, ve)) Y = h[ve]; else if (Y != null) { if (!(ie in Y)) { if (!J) throw new s("base intrinsic for " + D + " exists, but the property is not available."); return; } if (y && Te + 1 >= j.length) { var Se = y(Y, ie); pe = !!Se, pe && "get" in Se && !("originalValue" in Se.get) ? Y = Se.get : Y = Y[ie]; } else pe = H(Y, ie), Y = Y[ie]; pe && !ye && (h[ve] = Y); } } return Y; }, zt; } var Xt = { exports: {} }, Jt, jr; function Tr() { if (jr) return Jt; jr = 1; var e = /* @__PURE__ */ Xe(), t = e("%Object.defineProperty%", !0) || !1; if (t) try { t({}, "a", { value: 1 }); } catch { t = !1; } return Jt = t, Jt; } var Qt, Kr; function _n() { if (Kr) return Qt; Kr = 1; var e = /* @__PURE__ */ Xe(), t = e("%Object.getOwnPropertyDescriptor%", !0); if (t) try { t([], "length"); } catch { t = null; } return Qt = t, Qt; } var Zt, zr; function So() { if (zr) return Zt; zr = 1; var e = /* @__PURE__ */ Tr(), t = /* @__PURE__ */ In(), r = /* @__PURE__ */ nt(), o = /* @__PURE__ */ _n(); return Zt = function(i, s, p) { if (!i || typeof i != "object" && typeof i != "function") throw new r("`obj` must be an object or a function`"); if (typeof s != "string" && typeof s != "symbol") throw new r("`property` must be a string or a symbol`"); if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null) throw new r("`nonEnumerable`, if provided, must be a boolean or null"); if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null) throw new r("`nonWritable`, if provided, must be a boolean or null"); if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null) throw new r("`nonConfigurable`, if provided, must be a boolean or null"); if (arguments.length > 6 && typeof arguments[6] != "boolean") throw new r("`loose`, if provided, must be a boolean"); var O = arguments.length > 3 ? arguments[3] : null, v = arguments.length > 4 ? arguments[4] : null, y = arguments.length > 5 ? arguments[5] : null, A = arguments.length > 6 ? arguments[6] : !1, x = !!o && o(i, s); if (e) e(i, s, { configurable: y === null && x ? x.configurable : !y, enumerable: O === null && x ? x.enumerable : !O, value: p, writable: v === null && x ? x.writable : !v }); else if (A || !O && !v && !y) i[s] = p; else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable."); }, Zt; } var Yt, Xr; function bo() { if (Xr) return Yt; Xr = 1; var e = /* @__PURE__ */ Tr(), t = function() { return !!e; }; return t.hasArrayLengthDefineBug = function() { if (!e) return null; try { return e([], "length", { value: 1 }).length !== 1; } catch { return !0; } }, Yt = t, Yt; } var er, Jr; function Eo() { if (Jr) return er; Jr = 1; var e = /* @__PURE__ */ Xe(), t = /* @__PURE__ */ So(), r = /* @__PURE__ */ bo()(), o = /* @__PURE__ */ _n(), a = /* @__PURE__ */ nt(), i = e("%Math.floor%"); return er = function(p, O) { if (typeof p != "function") throw new a("`fn` is not a function"); if (typeof O != "number" || O < 0 || O > 4294967295 || i(O) !== O) throw new a("`length` must be a positive 32-bit integer"); var v = arguments.length > 2 && !!arguments[2], y = !0, A = !0; if ("length" in p && o) { var x = o(p, "length"); x && !x.configurable && (y = !1), x && !x.writable && (A = !1); } return (y || A || !v) && (r ? t( /** @type {Parameters<define>[0]} */ p, "length", O, !0, !0 ) : t( /** @type {Parameters<define>[0]} */ p, "length", O )), p; }, er; } var Qr; function To() { return Qr || (Qr = 1, function(e) { var t = Er(), r = /* @__PURE__ */ Xe(), o = /* @__PURE__ */ Eo(), a = /* @__PURE__ */ nt(), i = r("%Function.prototype.apply%"), s = r("%Function.prototype.call%"), p = r("%Reflect.apply%", !0) || t.call(s, i), O = /* @__PURE__ */ Tr(), v = r("%Math.max%"); e.exports = function(x) { if (typeof x != "function") throw new a("a function is required"); var b = p(t, s, arguments); return o( b, 1 + v(0, x.length - (arguments.length - 1)), !0 ); }; var y = function() { return p(t, i, arguments); }; O ? O(e.exports, "apply", { value: y }) : e.exports.apply = y; }(Xt)), Xt.exports; } var tr, Zr; function Ao() { if (Zr) return tr; Zr = 1; var e = /* @__PURE__ */ Xe(), t = To(), r = t(e("String.prototype.indexOf")); return tr = function(a, i) { var s = e(a, !!i); return typeof s == "function" && r(a, ".prototype.") > -1 ? t(s) : s; }, tr; } const Oo = {}, xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Oo }, Symbol.toStringTag, { value: "Module" })), Ro = /* @__PURE__ */ uo(xo); var rr, Yr; function Po() { if (Yr) return rr; Yr = 1; var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && t && typeof t.get == "function" ? t.get : null, o = e && Map.prototype.forEach, a = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, s = a && i && typeof i.get == "function" ? i.get : null, p = a && Set.prototype.forEach, O = typeof WeakMap == "function" && WeakMap.prototype, v = O ? WeakMap.prototype.has : null, y = typeof WeakSet == "function" && WeakSet.prototype, A = y ? WeakSet.prototype.has : null, x = typeof WeakRef == "function" && WeakRef.prototype, b = x ? WeakRef.prototype.deref : null, E = Boolean.prototype.valueOf, S = Object.prototype.toString, l = Function.prototype.toString, m = String.prototype.match, h = String.prototype.slice, T = String.prototype.replace, C = String.prototype.toUpperCase, R = String.prototype.toLowerCase, I = RegExp.prototype.test, H = Array.prototype.concat, U = Array.prototype.join, W = Array.prototype.slice, k = Math.floor, X = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, F = Object.getOwnPropertySymbols, oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ce = typeof Symbol == "function" && typeof Symbol.iterator == "object", Q = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ce || !0) ? Symbol.toStringTag : null, Ee = Object.prototype.propertyIsEnumerable, te = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(d) { return d.__proto__; } : null); function D(d, g) { if (d === 1 / 0 || d === -1 / 0 || d !== d || d && d > -1e3 && d < 1e3 || I.call(/e/, g)) return g; var V = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; if (typeof d == "number") { var z = d < 0 ? -k(-d) : k(d); if (z !== d) { var K = String(z), M = h.call(g, K.length + 1); return T.call(K, V, "$&_") + "." + T.call(T.call(M, /([0-9]{3})/g, "$&_"), /_$/, ""); } } return T.call(g, V, "$&_"); } var J = Ro, j = J.custom, Z = Ge(j) ? j : null, ae = { __proto__: null, double: '"', single: "'" }, ve = { __proto__: null, double: /(["\\])/g, single: /(['\\])/g }; rr = function d(g, V, z, K) { var M = V || {}; if (Oe(M, "quoteStyle") && !Oe(ae, M.quoteStyle)) throw new TypeError('option "quoteStyle" must be "single" or "double"'); if (Oe(M, "maxStringLength") && (typeof M.maxStringLength == "number" ? M.maxStringLength < 0 && M.maxStringLength !== 1 / 0 : M.maxStringLength !== null)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); var Be = Oe(M, "customInspect") ? M.customInspect : !0; if (typeof Be != "boolean" && Be !== "symbol") throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`"); if (Oe(M, "indent") && M.indent !== null && M.indent !== " " && !(parseInt(M.indent, 10) === M.indent && M.indent > 0)) throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); if (Oe(M, "numericSeparator") && typeof M.numericSeparator != "boolean") throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); var fe = M.numericSeparator; if (typeof g > "u") return "undefined"; if (g === null) return "null"; if (typeof g == "boolean") return g ? "true" : "false"; if (typeof g == "string") return st(g, M); if (typeof g == "number") { if (g === 0) return 1 / 0 / g > 0 ? "0" : "-0"; var n = String(g); return fe ? D(g, n) : n; } if (typeof g == "bigint") { var u = String(g) + "n"; return fe ? D(g, u) : u; } var c = typeof M.depth > "u" ? 5 : M.depth; if (typeof z > "u" && (z = 0), z >= c && c > 0 && typeof g == "object") return we(g) ? "[Array]" : "[Object]"; var f = ct(M, z); if (typeof K > "u") K = []; else if (it(K, g) >= 0) return "[Circular]"; function P(Ne, Le, Dt) { if (Le && (K = W.call(K), K.push(Le)), Dt) { var $ = { depth: M.depth }; return Oe(M, "quoteStyle") && ($.quoteStyle = M.quoteStyle), d(Ne, $, z + 1, K); } return d(Ne, M, z + 1, K); } if (typeof g == "function" && !pe(g)) { var B = At(g), _ = Ve(g, P); return "[Function" + (B ? ": " + B : " (anonymous)") + "]" + (_.length > 0 ? " { " + U.call(_, ", ") + " }" : ""); } if (Ge(g)) { var N = ce ? T.call(String(g), /^(Symbol\(.*\))_[^)]*$/, "$1") : oe.call(g); return typeof g == "object" && !ce ? Ue(N) : N; } if (Bt(g)) { for (var G = "<" + R.call(String(g.nodeName)), ee = g.attributes || [], L = 0; L < ee.length; L++) G += " " + ee[L].name + "=" + Y(ye(ee[L].value), "double", M); return G += ">", g.childNodes && g.childNodes.length && (G += "..."), G += "</" + R.call(String(g.nodeName)) + ">", G; } if (we(g)) { if (g.length === 0) return "[]"; var be = Ve(g, P); return f && !lt(be) ? "[" + Ye(be, f) + "]" : "[ " + U.call(be, ", ") + " ]"; } if (ie(g)) { var ne = Ve(g, P); return !("cause" in Error.prototype) && "cause" in g && !Ee.call(g, "cause") ? "{ [" + String(g) + "] " + U.call(H.call("[cause]: " + P(g.cause), ne), ", ") + " }" : ne.length === 0 ? "[" + String(g) + "]" : "{ [" + String(g) + "] " + U.call(ne, ", ") + " }"; } if (typeof g == "object" && Be) { if (Z && typeof g[Z] == "function" && J) return J(g, { depth: c - z }); if (Be !== "symbol" && typeof g.inspect == "function") return g.inspect(); } if (Ot(g)) { var Ie = []; return o && o.call(g, function(Ne, Le) { Ie.push(P(Le, g, !0) + " => " + P(Ne, g)); }), ut("Map", r.call(g), Ie, f); } if (Pt(g)) { var xe = []; return p && p.call(g, function(Ne) { xe.push(P(Ne, g)); }), ut("Set", s.call(g), xe, f); } if (xt(g)) return Ze("WeakMap"); if (Ct(g)) return Ze("WeakSet"); if (Rt(g)) return Ze("WeakRef"); if (Ae(g)) return Ue(P(Number(g))); if (We(g)) return Ue(P(X.call(g))); if (Se(g)) return Ue(E.call(g)); if (se(g)) return Ue(P(String(g))); if (typeof window < "u" && g === window) return "{ [object Window] }"; if (typeof globalThis < "u" && g === globalThis || typeof Ir < "u" && g === Ir) return "{ [object globalThis] }"; if (!Te(g) && !pe(g)) { var Re = Ve(g, P), $e = te ? te(g) === Object.prototype : g instanceof Object || g.constructor === Object, Fe = g instanceof Object ? "" : "null prototype", De = !$e && Q && Object(g) === g && Q in g ? h.call(Ce(g), 8, -1) : Fe ? "Object" : "", _t = $e || typeof g.constructor != "function" ? "" : g.constructor.name ? g.constructor.name + " " : "", et = _t + (De || Fe ? "[" + U.call(H.call([], De || [], Fe || []), ": ") + "] " : ""); return Re.length === 0 ? et + "{}" : f ? et + "{" + Ye(Re, f) + "}" : et + "{ " + U.call(Re, ", ") + " }"; } return String(g); }; function Y(d, g, V) { var z = V.quoteStyle || g, K = ae[z]; return K + d + K; } function ye(d) { return T.call(String(d), /"/g, "&quot;"); } function we(d) { return Ce(d) === "[object Array]" && (!Q || !(typeof d == "object" && Q in d)); } function Te(d) { return Ce(d) === "[object Date]" && (!Q || !(typeof d == "object" && Q in d)); } function pe(d) { return Ce(d) === "[object RegExp]" && (!Q || !(typeof d == "object" && Q in d)); } function ie(d) { return Ce(d) === "[object Error]" && (!Q || !(typeof d == "object" && Q in d)); } function se(d) { return Ce(d) === "[object String]" && (!Q || !(typeof d == "object" && Q in d)); } function Ae(d) { return Ce(d) === "[object Number]" && (!Q || !(typeof d == "object" && Q in d)); } function Se(d) { return Ce(d) === "[object Boolean]" && (!Q || !(typeof d == "object" && Q in d)); } function Ge(d) { if (ce) return d && typeof d == "object" && d instanceof Symbol; if (typeof d == "symbol") return !0; if (!d || typeof d != "object" || !oe) return !1; try { return oe.call(d), !0; } catch { } return !1; } function We(d) { if (!d || typeof d != "object" || !X) return !1; try { return X.call(d), !0; } catch { } return !1; } var Me = Object.prototype.hasOwnProperty || function(d) { return d in this; }; function Oe(d, g) { return Me.call(d, g); } function Ce(d) { return S.call(d); } function At(d) { if (d.name) return d.name; var g = m.call(l.call(d), /^function\s*([\w$]+)/); return g ? g[1] : null; } function it(d, g) { if (d.indexOf) return d.indexOf(g); for (var V = 0, z = d.length; V < z; V++) if (d[V] === g) return V; return -1; } function Ot(d) { if (!r || !d || typeof d != "object") return !1; try { r.call(d); try { s.call(d); } catch { return !0; } return d instanceof Map; } catch { } return !1; } function xt(d) { if (!v || !d || typeof d != "object") return !1; try { v.call(d, v); try { A.call(d, A); } catch { return !0; } return d instanceof WeakMap; } catch { } return !1; } function Rt(d) { if (!b || !d || typeof d != "object") return !1; try { return b.call(d), !0; } catch { } return !1; } function Pt(d) { if (!s || !d || typeof d != "object") return !1; try { s.call(d); try { r.call(d); } catch { return !0; } return d instanceof Set; } catch { } return !1; } function Ct(d) { if (!A || !d || typeof d != "object") return !1; try { A.call(d, A); try { v.call(d, v); } catch { return !0; } return d instanceof WeakSet; } catch { } return !1; } function Bt(d) { return !d || typeof d != "object" ? !1 : typeof HTMLElement < "u" && d instanceof HTMLElement ? !0 : typeof d.nodeName == "string" && typeof d.getAttribute == "function"; } function st(d, g) { if (d.length > g.maxStringLength) { var V = d.length - g.maxStringLength, z = "... " + V + " more character" + (V > 1 ? "s" : ""); return st(h.call(d, 0, g.maxStringLength), g) + z; } var K = ve[g.quoteStyle || "single"]; K.lastIndex = 0; var M = T.call(T.call(d, K, "\\$1"), /[\x00-\x1f]/g, It); return Y(M, "single", g); } function It(d) { var g = d.charCodeAt(0), V = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[g]; return V ? "\\" + V : "\\x" + (g < 16 ? "0" : "") + C.call(g.toString(16)); } function Ue(d) { return "Object(" + d + ")"; } function Ze(d) { return d + " { ? }"; } function ut(d, g, V, z) { var K = z ? Ye(V, z) : U.call(V, ", "); return d + " (" + g + ") {" + K + "}"; } function lt(d) { for (var g = 0; g < d.length; g++) if (it(d[g], ` `) >= 0) return !1; return !0; } function ct(d, g) { var V; if (d.indent === " ") V = " "; else if (typeof d.indent == "number" && d.indent > 0) V = U.call(Array(d.indent + 1), " "); else return null; return { base: V, prev: U.call(Array(g + 1), V) }; } function Ye(d, g) { if (d.length === 0) return ""; var V = ` ` + g.prev + g.base; return V + U.call(d, "," + V) + ` ` + g.prev; } function Ve(d, g) { var V = we(d), z = []; if (V) { z.length = d.length; for (var K = 0; K < d.length; K++) z[K] = Oe(d, K) ? g(d[K], d) : ""; } var M = typeof F == "function" ? F(d) : [], Be; if (ce) { Be = {}; for (var fe = 0; fe < M.length; fe++) Be["$" + M[fe]] = M[fe]; } for (var n in d) Oe(d, n) && (V && String(Number(n)) === n && n < d.length || ce && Be["$" + n] instanceof Symbol || (I.call(/[^\w$]/, n) ? z.push(g(n, d) + ": " + g(d[n], d)) : z.push(n + ": " + g(d[n], d)))); if (typeof F == "function") for (var u = 0; u < M.length; u++) Ee.call(d, M[u]) && z.push("[" + g(M[u]) + "]: " + g(d[M[u]], d)); return z; } return rr; } var nr, en; function Co() { if (en) return nr; en = 1; var e = /* @__PURE__ */ Xe(), t = Ao(), r = /* @__PURE__ */ Po(), o = /* @__PURE__ */ nt(), a = e("%WeakMap%", !0), i = e("%Map%", !0), s = t("WeakMap.prototype.get", !0), p = t("WeakMap.prototype.set", !0), O = t("WeakMap.prototype.has", !0), v = t("Map.prototype.get", !0), y = t("Map.prototype.set", !0), A = t("Map.prototype.has", !0), x = function(l, m) { for (var h = l, T; (T = h.next) !== null; h = T) if (T.key === m) return h.next = T.next, T.next = /** @type {NonNullable<typeof list.next>} */ l.next, l.next = T, T; }, b = function(l, m) { var h = x(l, m); return h && h.value; }, E = function(l, m, h) { var T = x(l, m); T ? T.value = h : l.next = /** @type {import('.').ListNode<typeof value>} */ { // eslint-disable-line no-param-reassign, no-extra-parens key: m, next: l.next, value: h }; }, S = function(l, m) { return !!x(l, m); }; return nr = function() { var m, h, T, C = { assert: function(R) { if (!C.has(R)) throw new o("Side channel does not contain " + r(R)); }, get: function(R) { if (a && R && (typeof R == "object" || typeof R == "function")) { if (m) return s(m, R); } else if (i) { if (h) return v(h, R); } else if (T) return b(T, R); }, has: function(R) { if (a && R && (typeof R == "object" || typeof R == "function")) { if (m) return O(m, R); } else if (i) { if (h) return A(h, R); } else if (T) return S(T, R); return !1; }, set: function(R, I) { a && R && (typeof R == "object" || typeof R == "function") ? (m || (m = new a()), p(m, R, I)) : i ? (h || (h = new i()), y(h, R, I)) : (T || (T = { key: {}, next: null }), E(T, R, I)); } }; return C; }, nr; } var or, tn; function Ar() { if (tn) return or; tn = 1; var e = String.prototype.replace, t = /%20/g, r = { RFC1738: "RFC1738", RFC3986: "RFC3986" }; return or = { default: r.RFC3986, formatters: { RFC1738: function(o) { return e.call(o, t, "+"); }, RFC3986: function(o) { return String(o); } }, RFC1738: r.RFC1738, RFC3986: r.RFC3986 }, or; } var ar, rn; function Dn() { if (rn) return ar; rn = 1; var e = /* @__PURE__ */ Ar(), t = Object.prototype.hasOwnProperty, r = Array.isArray, o = function() { for (var l = [], m = 0; m < 256; ++m) l.push("%" + ((m < 16 ? "0" : "") + m.toString(16)).toUpperCase()); return l; }(), a = function(m) { for (; m.length > 1; ) { var h = m.pop(), T = h.obj[h.prop]; if (r(T)) { for (var C = [], R = 0; R < T.length; ++R) typeof T[R] < "u" && C.push(T[R]); h.obj[h.prop] = C; } } }, i = function(m, h) { for (var T = h && h.plainObjects ? { __proto__: null } : {}, C = 0; C < m.length; ++C) typeof m[C] < "u" && (T[C] = m[C]); return T; }, s = function l(m, h, T) { if (!h) return m; if (typeof h != "object" && typeof h != "function") { if (r(m)) m.push(h); else if (m && typeof m == "object") (T && (T.plainObjects || T.allowPrototypes) || !t.call(Object.prototype, h)) && (m[h] = !0); else return [m, h]; return m; } if (!m || typeof m != "object") return [m].concat(h); var C = m; return r(m) && !r(h) && (C = i(m, T)), r(m) && r(h) ? (h.forEach(function(R, I) { if (t.call(m, I)) { var H = m[I]; H && typeof H == "object" && R && typeof R == "object" ? m[I] = l(H, R, T) : m.push(R); } else m[I] = R; }), m) : Object.keys(h).reduce(function(R, I) { var H = h[I]; return t.call(R, I) ? R[I] = l(R[I], H, T) : R[I] = H, R; }, C); }, p = function(m, h) { return Object.keys(h).reduce(function(T, C) { return T[C] = h[C], T; }, m); }, O = function(l, m, h) { var T = l.replace(/\+/g, " "); if (h === "iso-8859-1") return T.replace(/%[0-9a-f]{2}/gi, unescape); try { return decodeURIComponent(T); } catch { return T; } }, v = 1024, y = function(m, h, T, C, R) { if (m.length === 0) return m; var I = m; if (typeof m == "symbol" ? I = Symbol.prototype.toString.call(m) : typeof m != "string" && (I = String(m)), T === "iso-8859-1") return escape(I).replace(/%u[0-9a-f]{4}/gi, function(oe) { return "%26%23" + parseInt(oe.slice(2), 16) + "%3B"; }); for (var H = "", U = 0; U < I.length; U += v) { for (var W = I.length >= v ? I.slice(U, U + v) : I, k = [], X = 0; X < W.length; ++X) { var F = W.charCodeAt(X); if (F === 45 || F === 46 || F === 95 || F === 126 || F >= 48 && F <= 57 || F >= 65 && F <= 90 || F >= 97 && F <= 122 || R === e.RFC1738 && (F === 40 || F === 41)) { k[k.length] = W.charAt(X); continue; } if (F < 128) { k[k.length] = o[F]; continue; } if (F < 2048) { k[k.length] = o[192 | F >> 6] + o[128 | F & 63]; continue; } if (F < 55296 || F >= 57344) { k[k.length] = o[224 | F >> 12] + o[128 | F >> 6 & 63] + o[128 | F & 63]; continue; } X += 1, F = 65536 + ((F & 1023) << 10 | W.charCodeAt(X) & 1023), k[k.length] = o[240 | F >> 18] + o[128 | F >> 12 & 63] + o[128 | F >> 6 & 63] + o[128 | F & 63]; } H += k.join(""); } return H; }, A = function(m) { for (var h = [{ obj: { o: m }, prop: "o" }], T = [], C = 0; C < h.length; ++C) for (var R = h[C], I = R.obj[R.prop], H = Object.keys(I), U = 0; U < H.length; ++U) { var W = H[U], k = I[W]; typeof k == "object" && k !== null && T.indexOf(k) === -1 && (h.push({ obj: I, prop: W }), T.push(k)); } return a(h), m; }, x = function(m) { return Object.prototype.toString.call(m) === "[object RegExp]"; }, b = function(m) { return !m || typeof m != "object" ? !1 : !!(m.constructor && m.constructor.isBuffer && m.constructor.isBuffer(m)); }, E = function(m, h) { return [].concat(m, h); }, S = function(m, h) { if (r(m)) { for (var T = [], C = 0; C < m.length; C += 1) T.push(h(m[C])); return T; } return h(m); }; return ar = { arrayToObject: i, assign: p, combine: E, compact: A, decode: O, encode: y, isBuffer: b, isRegExp: x, maybeMap: S, merge: s }, ar; } var ir, nn; function Bo() { if (nn) return ir; nn = 1; var e = Co(), t = /* @__PURE__ */ Dn(), r = /* @__PURE__ */ Ar(), o = Object.prototype.hasOwnProperty, a = { brackets: function(l) { return l + "[]"; }, comma: "comma", indices: function(l, m) { return l + "[" + m + "]"; }, repeat: function(l) { return l; } }, i = Array.isArray, s = Array.prototype.push, p = function(S, l) { s.apply(S, i(l) ? l : [l]); }, O = Date.prototype.toISOString, v = r.default, y = { addQueryPrefix: !1, allowDots: !1, allowEmptyArrays: !1, arrayFormat: "indices", charset: "utf-8", charsetSentinel: !1, commaRoundTrip: !1, delimiter: "&", encode: !0, encodeDotInKeys: !1, encoder: t.encode, encodeValuesOnly: !1, filter: void 0, format: v, formatter: r.formatters[v], // deprecated indices: !1, serializeDate: function(l) { return O.call(l); }, skipNulls: !1, strictNullHandling: !1 }, A = function(l) { return typeof l == "string" || typeof l == "number" || typeof l == "boolean" || typeof l == "symbol" || typeof l == "bigint"; }, x = {}, b = function S(l, m, h, T, C, R, I, H, U, W, k, X, F, oe, ce, Q, Ee, te) { for (var D = l, J = te, j = 0, Z = !1; (J = J.get(x)) !== void 0 && !Z; ) { var ae = J.get(l); if (j += 1, typeof ae < "u") { if (ae === j) throw new RangeError("Cyclic object value"); Z = !0; } typeof J.get(x) > "u" && (j = 0); } if (typeof W == "function" ? D = W(m, D) : D instanceof Date ? D = F(D) : h === "comma" && i(D) && (D = t.maybeMap(D, function(Me) { return Me instanceof Date ? F(Me) : Me; })), D === null) { if (R) return U && !Q ? U(m, y.encoder, Ee, "key", oe) : m; D = ""; } if (A(D) || t.isBuffer(D)) { if (U) { var ve = Q ? m : U(m, y.encoder, Ee, "key", oe); return [ce(ve) + "=" + ce(U(D, y.encoder, Ee, "value", oe))]; } return [ce(m) + "=" + ce(String(D))]; } var Y = []; if (typeof D > "u") return Y; var ye; if (h === "comma" && i(D)) Q && U && (D = t.maybeMap(D, U)), ye = [{ value: D.length > 0 ? D.join(",") || null : void 0 }]; else if (i(W)) ye = W; else { var we = Object.keys(D); ye = k ? we.sort(k) : we; } var Te = H ? String(m).replace(/\./g, "%2E") : String(m), pe = T && i(D) && D.length === 1 ? Te + "[]" : Te; if (C && i(D) && D.length === 0) return pe + "[]"; for (var ie = 0; ie < ye.length; ++ie) { var se = ye[ie], Ae = typeof se == "object" && se && typeof se.value < "u" ? se.value : D[se]; if (!(I && Ae === null)) { var Se = X && H ? String(se).replace(/\./g, "%2E") : String(se), Ge = i(D) ? typeof h == "function" ? h(pe, Se) : pe : pe + (X ? "." + Se : "[" + Se + "]"); te.set(l, j); var We = e(); We.set(x, te), p(Y, S( Ae, Ge, h, T, C, R, I, H, h === "comma" && Q && i(D) ? null : U, W, k, X, F, oe, ce, Q, Ee, We )); } } return Y; }, E = function(l) { if (!l) return y; if (typeof l.allowEmptyArrays < "u" && typeof l.allowEmptyArrays != "boolean") throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided"); if (typeof l.encodeDotInKeys < "u" && typeof l.encodeDotInKeys != "boolean") throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided"); if (l.encoder !== null && typeof l.encoder < "u" && typeof l.encoder != "function") throw new TypeError("Encoder has to be a function."); var m = l.charset || y.charset; if (typeof l.charset < "u" && l.charset !== "utf-8" && l.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); var h = r.default; if (typeof l.format < "u") { if (!o.call(r.formatters, l.format)) throw new TypeError("Unknown format option provided."); h = l.format; } var T = r.formatters[h], C = y.filter; (typeof l.filter == "function" || i(l.filter)) && (C = l.filter); var R; if (l.arrayFormat in a ? R = l.arrayFormat : "indices" in l ? R = l.indices ? "indices" : "repeat" : R = y.arrayFormat, "commaRoundTrip" in l && typeof l.commaRoundTrip != "boolean") throw new TypeError("`commaRoundTrip` must be a boolean, or absent"); var I = typeof l.allowDots > "u" ? l.encodeDotInKeys === !0 ? !0 : y.allowDots : !!l.allowDots; return { addQueryPrefix: typeof l.addQueryPrefix == "boolean" ? l.addQueryPrefix : y.addQueryPrefix, allowDots: I, allowEmptyArrays: typeof l.allowEmptyArrays == "boolean" ? !!l.allowEmptyArrays : y.allowEmptyArrays, arrayFormat: R, charset: m, charsetSentinel: typeof l.charsetSentinel == "boolean" ? l.charsetSentinel : y.charsetSentinel, commaRoundTrip: !!l.commaRoundTrip, delimiter: typeof l.delimiter > "u" ? y.delimiter : l.delimiter, encode: typeof l.encode == "boolean" ? l.encode : y.encode, encodeDotInKeys: typeof l.encodeDotInKeys == "boolean" ? l.encodeDotInKeys : y.encodeDotInKeys, encoder: typeof l.encoder == "function" ? l.encoder : y.encoder, encodeValuesOnly: typeof l.encodeValuesOnly == "boolean" ? l.encodeValuesOnly : y.encodeValuesOnly, filter: C, format: h, formatter: T, serializeDate: typeof l.serializeDate == "function" ? l.serializeDate : y.serializeDate, skipNulls: typeof l.skipNulls == "boolean" ? l.skipNulls : y.skipNulls, sort: typeof l.sort == "function" ? l.sort : null, strictNullHandling: typeof l.strictNullHandling == "boolean" ? l.strictNullHandling : y.strictNullHandling }; }; return ir = function(S, l) { var m = S, h = E(l), T, C; typeof h.filter == "function" ? (C = h.filter, m = C("", m)) : i(h.filter) && (C = h.filter, T = C); var R = []; if (typeof m != "object" || m === null) return ""; var I = a[h.arrayFormat], H = I === "comma" && h.commaRoundTrip; T || (T = Object.keys(m)), h.sort && T.sort(h.sort); for (var U = e(), W = 0; W < T.length; ++W) { var k = T[W], X = m[k]; h.skipNulls && X === null || p(R, b( X, k, I, H, h.allowEmptyArrays, h.strictNullHandling, h.skipNulls, h.encodeDotInKeys, h.encode ? h.encoder : null, h.filter, h.sort, h.allowDots, h.serializeDate, h.format, h.formatter, h.encodeValuesOnly, h.charset, U )); } var F = R.join(h.delimiter), oe = h.addQueryPrefix === !0 ? "?" : ""; return h.charsetSentinel && (h.charset === "iso-8859-1" ? oe += "utf8=%26%2310003%3B&" : oe += "utf8=%E2%9C%93&"), F.length > 0 ? oe + F : ""; }, ir; } var sr, on; function Io() { if (on) return sr; on = 1; var e = /* @__PURE__ */ Dn(), t = Object.prototype.hasOwnProperty, r = Array.isArray, o = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, decoder: e.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, a = function(x) { return x.replace(/&#(\d+);/g, function(b, E) { return String.fromCharCode(parseInt(E, 10)); }); }, i = function(x, b) { return x && typeof x == "string" && b.comma && x.indexOf(",") > -1 ? x.split(",") : x; }, s = "utf8=%26%2310003%3B", p = "utf8=%E2%9C%93", O = function(b, E) { var S = { __proto__: null }, l = E.ignoreQueryPrefix ? b.replace(/^\?/, "") : b; l = l.replace(/%5B/gi, "[").replace(/%5D/gi, "]"); var m = E.parameterLimit === 1 / 0 ? void 0 : E.parameterLimit, h = l.split(E.delimiter, m), T = -1, C, R = E.charset; if (E.charsetSentinel) for (C = 0; C < h.length; ++C) h[C].indexOf("utf8=") === 0 && (h[C] === p ? R = "utf-8" : h[C] === s && (R = "iso-8859-1"), T = C, C = h.length); for (C = 0; C < h.length; ++C) if (C !== T) { var I = h[C], H = I.indexOf("]="), U = H === -1 ? I.indexOf("=") : H + 1, W, k; U === -1 ? (W = E.decoder(I, o.decoder, R, "key"), k = E.strictNullHandling ? null : "") : (W = E.decoder(I.slice(0, U), o.decoder, R, "key"), k = e.maybeMap( i(I.slice(U + 1), E), function(F) { return E.decoder(F, o.decoder, R, "value"); } )), k && E.interpretNumericEntities && R === "iso-8859-1" && (k = a(String(k))), I.indexOf("[]=") > -1 && (k = r(k) ? [k] : k); var X = t.call(S, W); X && E.duplicates === "combine" ? S[W] = e.combine(S[W], k) : (!X || E.duplicates === "last") && (S[W] = k); } return S; }, v = function(x, b, E, S) { for (var l = S ? b : i(b, E), m = x.length - 1; m >= 0; --m) { var h, T = x[m]; if (T === "[]" && E.parseArrays) h = E.allowEmptyArrays && (l === "" || E.strictNullHandling && l === null) ? [] : [].concat(l); else { h = E.plainObjects ? { __proto__: null } : {}; var C = T.charAt(0) === "[" && T.charAt(T.length - 1) === "]" ? T.slice(1, -1) : T, R = E.decodeDotInKeys ? C.replace(/%2E/g, ".") : C, I = parseInt(R, 10); !E.parseArrays && R === "" ? h = { 0: l } : !isNaN(I) && T !== R && String(I) === R && I >= 0 && E.parseArrays && I <= E.arrayLimit ? (h = [], h[I] = l) : R !== "__proto__" && (h[R] = l); } l = h; } return l; }, y = function(b, E, S, l) { if (b) { var m = S.allowDots ? b.replace(/\.([^.[]+)/g, "[$1]") : b, h = /(\[[^[\]]*])/, T = /(\[[^[\]]*])/g, C = S.depth > 0 && h.exec(m), R = C ? m.slice(0, C.index) : m, I = []; if (R) { if (!S.plainObjects && t.call(Object.prototype, R) && !S.allowPrototypes) return; I.push(R); } for (var H = 0; S.depth > 0 && (C = T.exec(m)) !== null && H < S.depth; ) { if (H += 1, !S.plainObjects && t.call(Object.prototype, C[1].slice(1, -1)) && !S.allowPrototypes) return; I.push(C[1]); } if (C) { if (S.strictDepth === !0) throw new RangeError("Input depth exceeded depth option of " + S.depth + " and strictDepth is true"); I.push("[" + m.slice(C.index) + "]"); } return v(I, E, S, l);