lr-chatbot 0.28.0 → 0.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index-DF-CVhdU.js DELETED
@@ -1,1288 +0,0 @@
1
- function Ur(r, e) {
2
- for (var t = 0; t < e.length; t++) {
3
- const n = e[t];
4
- if (typeof n != "string" && !Array.isArray(n)) {
5
- for (const o in n)
6
- if (o !== "default" && !(o in r)) {
7
- const a = Object.getOwnPropertyDescriptor(n, o);
8
- a && Object.defineProperty(r, o, a.get ? a : {
9
- enumerable: !0,
10
- get: () => n[o]
11
- });
12
- }
13
- }
14
- }
15
- return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
16
- }
17
- var qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
- function Wr(r) {
19
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
20
- }
21
- function Lr(r) {
22
- if (r.__esModule) return r;
23
- var e = r.default;
24
- if (typeof e == "function") {
25
- var t = function n() {
26
- return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
27
- };
28
- t.prototype = e.prototype;
29
- } else t = {};
30
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(n) {
31
- var o = Object.getOwnPropertyDescriptor(r, n);
32
- Object.defineProperty(t, n, o.get ? o : {
33
- enumerable: !0,
34
- get: function() {
35
- return r[n];
36
- }
37
- });
38
- }), t;
39
- }
40
- var Gr = Error, kr = EvalError, zr = RangeError, Kr = ReferenceError, gr = SyntaxError, ae = TypeError, Hr = URIError, qr = function() {
41
- if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
42
- return !1;
43
- if (typeof Symbol.iterator == "symbol")
44
- return !0;
45
- var e = {}, t = Symbol("test"), n = Object(t);
46
- if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
47
- return !1;
48
- var o = 42;
49
- e[t] = o;
50
- for (t in e)
51
- return !1;
52
- if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
53
- return !1;
54
- var a = Object.getOwnPropertySymbols(e);
55
- if (a.length !== 1 || a[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
56
- return !1;
57
- if (typeof Object.getOwnPropertyDescriptor == "function") {
58
- var i = Object.getOwnPropertyDescriptor(e, t);
59
- if (i.value !== o || i.enumerable !== !0)
60
- return !1;
61
- }
62
- return !0;
63
- }, Qe = typeof Symbol < "u" && Symbol, Qr = qr, Vr = function() {
64
- return typeof Qe != "function" || typeof Symbol != "function" || typeof Qe("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Qr();
65
- }, be = {
66
- __proto__: null,
67
- foo: {}
68
- }, Jr = Object, jr = function() {
69
- return { __proto__: be }.foo === be.foo && !(be instanceof Jr);
70
- }, Yr = "Function.prototype.bind called on incompatible ", Xr = Object.prototype.toString, Zr = Math.max, et = "[object Function]", Ve = function(e, t) {
71
- for (var n = [], o = 0; o < e.length; o += 1)
72
- n[o] = e[o];
73
- for (var a = 0; a < t.length; a += 1)
74
- n[a + e.length] = t[a];
75
- return n;
76
- }, rt = function(e, t) {
77
- for (var n = [], o = t, a = 0; o < e.length; o += 1, a += 1)
78
- n[a] = e[o];
79
- return n;
80
- }, tt = function(r, e) {
81
- for (var t = "", n = 0; n < r.length; n += 1)
82
- t += r[n], n + 1 < r.length && (t += e);
83
- return t;
84
- }, nt = function(e) {
85
- var t = this;
86
- if (typeof t != "function" || Xr.apply(t) !== et)
87
- throw new TypeError(Yr + t);
88
- for (var n = rt(arguments, 1), o, a = function() {
89
- if (this instanceof o) {
90
- var c = t.apply(
91
- this,
92
- Ve(n, arguments)
93
- );
94
- return Object(c) === c ? c : this;
95
- }
96
- return t.apply(
97
- e,
98
- Ve(n, arguments)
99
- );
100
- }, i = Zr(0, t.length - n.length), f = [], l = 0; l < i; l++)
101
- f[l] = "$" + l;
102
- if (o = Function("binder", "return function (" + tt(f, ",") + "){ return binder.apply(this,arguments); }")(a), t.prototype) {
103
- var p = function() {
104
- };
105
- p.prototype = t.prototype, o.prototype = new p(), p.prototype = null;
106
- }
107
- return o;
108
- }, at = nt, Ue = Function.prototype.bind || at, ot = Function.prototype.call, it = Object.prototype.hasOwnProperty, lt = Ue, ft = lt.call(ot, it), y, ut = Gr, ct = kr, pt = zr, yt = Kr, Q = gr, q = ae, st = Hr, mr = Function, Se = function(r) {
109
- try {
110
- return mr('"use strict"; return (' + r + ").constructor;")();
111
- } catch {
112
- }
113
- }, W = Object.getOwnPropertyDescriptor;
114
- if (W)
115
- try {
116
- W({}, "");
117
- } catch {
118
- W = null;
119
- }
120
- var we = function() {
121
- throw new q();
122
- }, dt = W ? function() {
123
- try {
124
- return arguments.callee, we;
125
- } catch {
126
- try {
127
- return W(arguments, "callee").get;
128
- } catch {
129
- return we;
130
- }
131
- }
132
- }() : we, z = Vr(), vt = jr(), b = Object.getPrototypeOf || (vt ? function(r) {
133
- return r.__proto__;
134
- } : null), H = {}, gt = typeof Uint8Array > "u" || !b ? y : b(Uint8Array), L = {
135
- __proto__: null,
136
- "%AggregateError%": typeof AggregateError > "u" ? y : AggregateError,
137
- "%Array%": Array,
138
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? y : ArrayBuffer,
139
- "%ArrayIteratorPrototype%": z && b ? b([][Symbol.iterator]()) : y,
140
- "%AsyncFromSyncIteratorPrototype%": y,
141
- "%AsyncFunction%": H,
142
- "%AsyncGenerator%": H,
143
- "%AsyncGeneratorFunction%": H,
144
- "%AsyncIteratorPrototype%": H,
145
- "%Atomics%": typeof Atomics > "u" ? y : Atomics,
146
- "%BigInt%": typeof BigInt > "u" ? y : BigInt,
147
- "%BigInt64Array%": typeof BigInt64Array > "u" ? y : BigInt64Array,
148
- "%BigUint64Array%": typeof BigUint64Array > "u" ? y : BigUint64Array,
149
- "%Boolean%": Boolean,
150
- "%DataView%": typeof DataView > "u" ? y : DataView,
151
- "%Date%": Date,
152
- "%decodeURI%": decodeURI,
153
- "%decodeURIComponent%": decodeURIComponent,
154
- "%encodeURI%": encodeURI,
155
- "%encodeURIComponent%": encodeURIComponent,
156
- "%Error%": ut,
157
- "%eval%": eval,
158
- // eslint-disable-line no-eval
159
- "%EvalError%": ct,
160
- "%Float32Array%": typeof Float32Array > "u" ? y : Float32Array,
161
- "%Float64Array%": typeof Float64Array > "u" ? y : Float64Array,
162
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? y : FinalizationRegistry,
163
- "%Function%": mr,
164
- "%GeneratorFunction%": H,
165
- "%Int8Array%": typeof Int8Array > "u" ? y : Int8Array,
166
- "%Int16Array%": typeof Int16Array > "u" ? y : Int16Array,
167
- "%Int32Array%": typeof Int32Array > "u" ? y : Int32Array,
168
- "%isFinite%": isFinite,
169
- "%isNaN%": isNaN,
170
- "%IteratorPrototype%": z && b ? b(b([][Symbol.iterator]())) : y,
171
- "%JSON%": typeof JSON == "object" ? JSON : y,
172
- "%Map%": typeof Map > "u" ? y : Map,
173
- "%MapIteratorPrototype%": typeof Map > "u" || !z || !b ? y : b((/* @__PURE__ */ new Map())[Symbol.iterator]()),
174
- "%Math%": Math,
175
- "%Number%": Number,
176
- "%Object%": Object,
177
- "%parseFloat%": parseFloat,
178
- "%parseInt%": parseInt,
179
- "%Promise%": typeof Promise > "u" ? y : Promise,
180
- "%Proxy%": typeof Proxy > "u" ? y : Proxy,
181
- "%RangeError%": pt,
182
- "%ReferenceError%": yt,
183
- "%Reflect%": typeof Reflect > "u" ? y : Reflect,
184
- "%RegExp%": RegExp,
185
- "%Set%": typeof Set > "u" ? y : Set,
186
- "%SetIteratorPrototype%": typeof Set > "u" || !z || !b ? y : b((/* @__PURE__ */ new Set())[Symbol.iterator]()),
187
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? y : SharedArrayBuffer,
188
- "%String%": String,
189
- "%StringIteratorPrototype%": z && b ? b(""[Symbol.iterator]()) : y,
190
- "%Symbol%": z ? Symbol : y,
191
- "%SyntaxError%": Q,
192
- "%ThrowTypeError%": dt,
193
- "%TypedArray%": gt,
194
- "%TypeError%": q,
195
- "%Uint8Array%": typeof Uint8Array > "u" ? y : Uint8Array,
196
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? y : Uint8ClampedArray,
197
- "%Uint16Array%": typeof Uint16Array > "u" ? y : Uint16Array,
198
- "%Uint32Array%": typeof Uint32Array > "u" ? y : Uint32Array,
199
- "%URIError%": st,
200
- "%WeakMap%": typeof WeakMap > "u" ? y : WeakMap,
201
- "%WeakRef%": typeof WeakRef > "u" ? y : WeakRef,
202
- "%WeakSet%": typeof WeakSet > "u" ? y : WeakSet
203
- };
204
- if (b)
205
- try {
206
- null.error;
207
- } catch (r) {
208
- var mt = b(b(r));
209
- L["%Error.prototype%"] = mt;
210
- }
211
- var ht = function r(e) {
212
- var t;
213
- if (e === "%AsyncFunction%")
214
- t = Se("async function () {}");
215
- else if (e === "%GeneratorFunction%")
216
- t = Se("function* () {}");
217
- else if (e === "%AsyncGeneratorFunction%")
218
- t = Se("async function* () {}");
219
- else if (e === "%AsyncGenerator%") {
220
- var n = r("%AsyncGeneratorFunction%");
221
- n && (t = n.prototype);
222
- } else if (e === "%AsyncIteratorPrototype%") {
223
- var o = r("%AsyncGenerator%");
224
- o && b && (t = b(o.prototype));
225
- }
226
- return L[e] = t, t;
227
- }, Je = {
228
- __proto__: null,
229
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
230
- "%ArrayPrototype%": ["Array", "prototype"],
231
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
232
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
233
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
234
- "%ArrayProto_values%": ["Array", "prototype", "values"],
235
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
236
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
237
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
238
- "%BooleanPrototype%": ["Boolean", "prototype"],
239
- "%DataViewPrototype%": ["DataView", "prototype"],
240
- "%DatePrototype%": ["Date", "prototype"],
241
- "%ErrorPrototype%": ["Error", "prototype"],
242
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
243
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
244
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
245
- "%FunctionPrototype%": ["Function", "prototype"],
246
- "%Generator%": ["GeneratorFunction", "prototype"],
247
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
248
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
249
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
250
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
251
- "%JSONParse%": ["JSON", "parse"],
252
- "%JSONStringify%": ["JSON", "stringify"],
253
- "%MapPrototype%": ["Map", "prototype"],
254
- "%NumberPrototype%": ["Number", "prototype"],
255
- "%ObjectPrototype%": ["Object", "prototype"],
256
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
257
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
258
- "%PromisePrototype%": ["Promise", "prototype"],
259
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
260
- "%Promise_all%": ["Promise", "all"],
261
- "%Promise_reject%": ["Promise", "reject"],
262
- "%Promise_resolve%": ["Promise", "resolve"],
263
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
264
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
265
- "%RegExpPrototype%": ["RegExp", "prototype"],
266
- "%SetPrototype%": ["Set", "prototype"],
267
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
268
- "%StringPrototype%": ["String", "prototype"],
269
- "%SymbolPrototype%": ["Symbol", "prototype"],
270
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
271
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
272
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
273
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
274
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
275
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
276
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
277
- "%URIErrorPrototype%": ["URIError", "prototype"],
278
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
279
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
280
- }, oe = Ue, se = ft, bt = oe.call(Function.call, Array.prototype.concat), St = oe.call(Function.apply, Array.prototype.splice), je = oe.call(Function.call, String.prototype.replace), de = oe.call(Function.call, String.prototype.slice), wt = oe.call(Function.call, RegExp.prototype.exec), At = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ot = /\\(\\)?/g, Et = function(e) {
281
- var t = de(e, 0, 1), n = de(e, -1);
282
- if (t === "%" && n !== "%")
283
- throw new Q("invalid intrinsic syntax, expected closing `%`");
284
- if (n === "%" && t !== "%")
285
- throw new Q("invalid intrinsic syntax, expected opening `%`");
286
- var o = [];
287
- return je(e, At, function(a, i, f, l) {
288
- o[o.length] = f ? je(l, Ot, "$1") : i || a;
289
- }), o;
290
- }, Pt = function(e, t) {
291
- var n = e, o;
292
- if (se(Je, n) && (o = Je[n], n = "%" + o[0] + "%"), se(L, n)) {
293
- var a = L[n];
294
- if (a === H && (a = ht(n)), typeof a > "u" && !t)
295
- throw new q("intrinsic " + e + " exists, but is not available. Please file an issue!");
296
- return {
297
- alias: o,
298
- name: n,
299
- value: a
300
- };
301
- }
302
- throw new Q("intrinsic " + e + " does not exist!");
303
- }, j = function(e, t) {
304
- if (typeof e != "string" || e.length === 0)
305
- throw new q("intrinsic name must be a non-empty string");
306
- if (arguments.length > 1 && typeof t != "boolean")
307
- throw new q('"allowMissing" argument must be a boolean');
308
- if (wt(/^%?[^%]*%?$/, e) === null)
309
- throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
310
- var n = Et(e), o = n.length > 0 ? n[0] : "", a = Pt("%" + o + "%", t), i = a.name, f = a.value, l = !1, p = a.alias;
311
- p && (o = p[0], St(n, bt([0, 1], p)));
312
- for (var c = 1, s = !0; c < n.length; c += 1) {
313
- var u = n[c], v = de(u, 0, 1), g = de(u, -1);
314
- if ((v === '"' || v === "'" || v === "`" || g === '"' || g === "'" || g === "`") && v !== g)
315
- throw new Q("property names with quotes must have matching quotes");
316
- if ((u === "constructor" || !s) && (l = !0), o += "." + u, i = "%" + o + "%", se(L, i))
317
- f = L[i];
318
- else if (f != null) {
319
- if (!(u in f)) {
320
- if (!t)
321
- throw new q("base intrinsic for " + e + " exists, but the property is not available.");
322
- return;
323
- }
324
- if (W && c + 1 >= n.length) {
325
- var S = W(f, u);
326
- s = !!S, s && "get" in S && !("originalValue" in S.get) ? f = S.get : f = f[u];
327
- } else
328
- s = se(f, u), f = f[u];
329
- s && !l && (L[i] = f);
330
- }
331
- }
332
- return f;
333
- }, hr = { exports: {} }, Ae, Ye;
334
- function We() {
335
- if (Ye) return Ae;
336
- Ye = 1;
337
- var r = j, e = r("%Object.defineProperty%", !0) || !1;
338
- if (e)
339
- try {
340
- e({}, "a", { value: 1 });
341
- } catch {
342
- e = !1;
343
- }
344
- return Ae = e, Ae;
345
- }
346
- var $t = j, pe = $t("%Object.getOwnPropertyDescriptor%", !0);
347
- if (pe)
348
- try {
349
- pe([], "length");
350
- } catch {
351
- pe = null;
352
- }
353
- var br = pe, Xe = We(), It = gr, K = ae, Ze = br, Ft = function(e, t, n) {
354
- if (!e || typeof e != "object" && typeof e != "function")
355
- throw new K("`obj` must be an object or a function`");
356
- if (typeof t != "string" && typeof t != "symbol")
357
- throw new K("`property` must be a string or a symbol`");
358
- if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
359
- throw new K("`nonEnumerable`, if provided, must be a boolean or null");
360
- if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
361
- throw new K("`nonWritable`, if provided, must be a boolean or null");
362
- if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
363
- throw new K("`nonConfigurable`, if provided, must be a boolean or null");
364
- if (arguments.length > 6 && typeof arguments[6] != "boolean")
365
- throw new K("`loose`, if provided, must be a boolean");
366
- var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, l = !!Ze && Ze(e, t);
367
- if (Xe)
368
- Xe(e, t, {
369
- configurable: i === null && l ? l.configurable : !i,
370
- enumerable: o === null && l ? l.enumerable : !o,
371
- value: n,
372
- writable: a === null && l ? l.writable : !a
373
- });
374
- else if (f || !o && !a && !i)
375
- e[t] = n;
376
- else
377
- throw new It("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
378
- }, Re = We(), Sr = function() {
379
- return !!Re;
380
- };
381
- Sr.hasArrayLengthDefineBug = function() {
382
- if (!Re)
383
- return null;
384
- try {
385
- return Re([], "length", { value: 1 }).length !== 1;
386
- } catch {
387
- return !0;
388
- }
389
- };
390
- var xt = Sr, Dt = j, er = Ft, Rt = xt(), rr = br, tr = ae, _t = Dt("%Math.floor%"), Tt = function(e, t) {
391
- if (typeof e != "function")
392
- throw new tr("`fn` is not a function");
393
- if (typeof t != "number" || t < 0 || t > 4294967295 || _t(t) !== t)
394
- throw new tr("`length` must be a positive 32-bit integer");
395
- var n = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
396
- if ("length" in e && rr) {
397
- var i = rr(e, "length");
398
- i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
399
- }
400
- return (o || a || !n) && (Rt ? er(
401
- /** @type {Parameters<define>[0]} */
402
- e,
403
- "length",
404
- t,
405
- !0,
406
- !0
407
- ) : er(
408
- /** @type {Parameters<define>[0]} */
409
- e,
410
- "length",
411
- t
412
- )), e;
413
- };
414
- (function(r) {
415
- var e = Ue, t = j, n = Tt, o = ae, a = t("%Function.prototype.apply%"), i = t("%Function.prototype.call%"), f = t("%Reflect.apply%", !0) || e.call(i, a), l = We(), p = t("%Math.max%");
416
- r.exports = function(u) {
417
- if (typeof u != "function")
418
- throw new o("a function is required");
419
- var v = f(e, i, arguments);
420
- return n(
421
- v,
422
- 1 + p(0, u.length - (arguments.length - 1)),
423
- !0
424
- );
425
- };
426
- var c = function() {
427
- return f(e, a, arguments);
428
- };
429
- l ? l(r.exports, "apply", { value: c }) : r.exports.apply = c;
430
- })(hr);
431
- var Nt = hr.exports, wr = j, Ar = Nt, Mt = Ar(wr("String.prototype.indexOf")), Bt = function(e, t) {
432
- var n = wr(e, !!t);
433
- return typeof n == "function" && Mt(e, ".prototype.") > -1 ? Ar(n) : n;
434
- };
435
- const Ct = {}, Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
436
- __proto__: null,
437
- default: Ct
438
- }, Symbol.toStringTag, { value: "Module" })), Wt = /* @__PURE__ */ Lr(Ut);
439
- var Le = typeof Map == "function" && Map.prototype, Oe = Object.getOwnPropertyDescriptor && Le ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ve = Le && Oe && typeof Oe.get == "function" ? Oe.get : null, nr = Le && Map.prototype.forEach, Ge = typeof Set == "function" && Set.prototype, Ee = Object.getOwnPropertyDescriptor && Ge ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ge = Ge && Ee && typeof Ee.get == "function" ? Ee.get : null, ar = Ge && Set.prototype.forEach, Lt = typeof WeakMap == "function" && WeakMap.prototype, re = Lt ? WeakMap.prototype.has : null, Gt = typeof WeakSet == "function" && WeakSet.prototype, te = Gt ? WeakSet.prototype.has : null, kt = typeof WeakRef == "function" && WeakRef.prototype, or = kt ? WeakRef.prototype.deref : null, zt = Boolean.prototype.valueOf, Kt = Object.prototype.toString, Ht = Function.prototype.toString, qt = String.prototype.match, ke = String.prototype.slice, N = String.prototype.replace, Qt = String.prototype.toUpperCase, ir = String.prototype.toLowerCase, Or = RegExp.prototype.test, lr = Array.prototype.concat, $ = Array.prototype.join, Vt = Array.prototype.slice, fr = Math.floor, _e = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Pe = Object.getOwnPropertySymbols, Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, V = typeof Symbol == "function" && typeof Symbol.iterator == "object", w = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === V || !0) ? Symbol.toStringTag : null, Er = Object.prototype.propertyIsEnumerable, ur = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
440
- return r.__proto__;
441
- } : null);
442
- function cr(r, e) {
443
- if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || Or.call(/e/, e))
444
- return e;
445
- var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
446
- if (typeof r == "number") {
447
- var n = r < 0 ? -fr(-r) : fr(r);
448
- if (n !== r) {
449
- var o = String(n), a = ke.call(e, o.length + 1);
450
- return N.call(o, t, "$&_") + "." + N.call(N.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
451
- }
452
- }
453
- return N.call(e, t, "$&_");
454
- }
455
- var Ne = Wt, pr = Ne.custom, yr = $r(pr) ? pr : null, Jt = function r(e, t, n, o) {
456
- var a = t || {};
457
- if (T(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
458
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
459
- if (T(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
460
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
461
- var i = T(a, "customInspect") ? a.customInspect : !0;
462
- if (typeof i != "boolean" && i !== "symbol")
463
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
464
- if (T(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
465
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
466
- if (T(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
467
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
468
- var f = a.numericSeparator;
469
- if (typeof e > "u")
470
- return "undefined";
471
- if (e === null)
472
- return "null";
473
- if (typeof e == "boolean")
474
- return e ? "true" : "false";
475
- if (typeof e == "string")
476
- return Fr(e, a);
477
- if (typeof e == "number") {
478
- if (e === 0)
479
- return 1 / 0 / e > 0 ? "0" : "-0";
480
- var l = String(e);
481
- return f ? cr(e, l) : l;
482
- }
483
- if (typeof e == "bigint") {
484
- var p = String(e) + "n";
485
- return f ? cr(e, p) : p;
486
- }
487
- var c = typeof a.depth > "u" ? 5 : a.depth;
488
- if (typeof n > "u" && (n = 0), n >= c && c > 0 && typeof e == "object")
489
- return Me(e) ? "[Array]" : "[Object]";
490
- var s = dn(a, n);
491
- if (typeof o > "u")
492
- o = [];
493
- else if (Ir(o, e) >= 0)
494
- return "[Circular]";
495
- function u(O, R, _) {
496
- if (R && (o = Vt.call(o), o.push(R)), _) {
497
- var Z = {
498
- depth: a.depth
499
- };
500
- return T(a, "quoteStyle") && (Z.quoteStyle = a.quoteStyle), r(O, Z, n + 1, o);
501
- }
502
- return r(O, a, n + 1, o);
503
- }
504
- if (typeof e == "function" && !sr(e)) {
505
- var v = an(e), g = fe(e, u);
506
- return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (g.length > 0 ? " { " + $.call(g, ", ") + " }" : "");
507
- }
508
- if ($r(e)) {
509
- var S = V ? N.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Te.call(e);
510
- return typeof e == "object" && !V ? ee(S) : S;
511
- }
512
- if (pn(e)) {
513
- for (var A = "<" + ir.call(String(e.nodeName)), I = e.attributes || [], F = 0; F < I.length; F++)
514
- A += " " + I[F].name + "=" + Pr(jt(I[F].value), "double", a);
515
- return A += ">", e.childNodes && e.childNodes.length && (A += "..."), A += "</" + ir.call(String(e.nodeName)) + ">", A;
516
- }
517
- if (Me(e)) {
518
- if (e.length === 0)
519
- return "[]";
520
- var d = fe(e, u);
521
- return s && !sn(d) ? "[" + Be(d, s) + "]" : "[ " + $.call(d, ", ") + " ]";
522
- }
523
- if (Xt(e)) {
524
- var x = fe(e, u);
525
- return !("cause" in Error.prototype) && "cause" in e && !Er.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(lr.call("[cause]: " + u(e.cause), x), ", ") + " }" : x.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(x, ", ") + " }";
526
- }
527
- if (typeof e == "object" && i) {
528
- if (yr && typeof e[yr] == "function" && Ne)
529
- return Ne(e, { depth: c - n });
530
- if (i !== "symbol" && typeof e.inspect == "function")
531
- return e.inspect();
532
- }
533
- if (on(e)) {
534
- var B = [];
535
- return nr && nr.call(e, function(O, R) {
536
- B.push(u(R, e, !0) + " => " + u(O, e));
537
- }), dr("Map", ve.call(e), B, s);
538
- }
539
- if (un(e)) {
540
- var X = [];
541
- return ar && ar.call(e, function(O) {
542
- X.push(u(O, e));
543
- }), dr("Set", ge.call(e), X, s);
544
- }
545
- if (ln(e))
546
- return $e("WeakMap");
547
- if (cn(e))
548
- return $e("WeakSet");
549
- if (fn(e))
550
- return $e("WeakRef");
551
- if (en(e))
552
- return ee(u(Number(e)));
553
- if (tn(e))
554
- return ee(u(_e.call(e)));
555
- if (rn(e))
556
- return ee(zt.call(e));
557
- if (Zt(e))
558
- return ee(u(String(e)));
559
- if (typeof window < "u" && e === window)
560
- return "{ [object Window] }";
561
- if (typeof globalThis < "u" && e === globalThis || typeof qe < "u" && e === qe)
562
- return "{ [object globalThis] }";
563
- if (!Yt(e) && !sr(e)) {
564
- var G = fe(e, u), ie = ur ? ur(e) === Object.prototype : e instanceof Object || e.constructor === Object, C = e instanceof Object ? "" : "null prototype", D = !ie && w && Object(e) === e && w in e ? ke.call(M(e), 8, -1) : C ? "Object" : "", le = ie || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", k = le + (D || C ? "[" + $.call(lr.call([], D || [], C || []), ": ") + "] " : "");
565
- return G.length === 0 ? k + "{}" : s ? k + "{" + Be(G, s) + "}" : k + "{ " + $.call(G, ", ") + " }";
566
- }
567
- return String(e);
568
- };
569
- function Pr(r, e, t) {
570
- var n = (t.quoteStyle || e) === "double" ? '"' : "'";
571
- return n + r + n;
572
- }
573
- function jt(r) {
574
- return N.call(String(r), /"/g, "&quot;");
575
- }
576
- function Me(r) {
577
- return M(r) === "[object Array]" && (!w || !(typeof r == "object" && w in r));
578
- }
579
- function Yt(r) {
580
- return M(r) === "[object Date]" && (!w || !(typeof r == "object" && w in r));
581
- }
582
- function sr(r) {
583
- return M(r) === "[object RegExp]" && (!w || !(typeof r == "object" && w in r));
584
- }
585
- function Xt(r) {
586
- return M(r) === "[object Error]" && (!w || !(typeof r == "object" && w in r));
587
- }
588
- function Zt(r) {
589
- return M(r) === "[object String]" && (!w || !(typeof r == "object" && w in r));
590
- }
591
- function en(r) {
592
- return M(r) === "[object Number]" && (!w || !(typeof r == "object" && w in r));
593
- }
594
- function rn(r) {
595
- return M(r) === "[object Boolean]" && (!w || !(typeof r == "object" && w in r));
596
- }
597
- function $r(r) {
598
- if (V)
599
- return r && typeof r == "object" && r instanceof Symbol;
600
- if (typeof r == "symbol")
601
- return !0;
602
- if (!r || typeof r != "object" || !Te)
603
- return !1;
604
- try {
605
- return Te.call(r), !0;
606
- } catch {
607
- }
608
- return !1;
609
- }
610
- function tn(r) {
611
- if (!r || typeof r != "object" || !_e)
612
- return !1;
613
- try {
614
- return _e.call(r), !0;
615
- } catch {
616
- }
617
- return !1;
618
- }
619
- var nn = Object.prototype.hasOwnProperty || function(r) {
620
- return r in this;
621
- };
622
- function T(r, e) {
623
- return nn.call(r, e);
624
- }
625
- function M(r) {
626
- return Kt.call(r);
627
- }
628
- function an(r) {
629
- if (r.name)
630
- return r.name;
631
- var e = qt.call(Ht.call(r), /^function\s*([\w$]+)/);
632
- return e ? e[1] : null;
633
- }
634
- function Ir(r, e) {
635
- if (r.indexOf)
636
- return r.indexOf(e);
637
- for (var t = 0, n = r.length; t < n; t++)
638
- if (r[t] === e)
639
- return t;
640
- return -1;
641
- }
642
- function on(r) {
643
- if (!ve || !r || typeof r != "object")
644
- return !1;
645
- try {
646
- ve.call(r);
647
- try {
648
- ge.call(r);
649
- } catch {
650
- return !0;
651
- }
652
- return r instanceof Map;
653
- } catch {
654
- }
655
- return !1;
656
- }
657
- function ln(r) {
658
- if (!re || !r || typeof r != "object")
659
- return !1;
660
- try {
661
- re.call(r, re);
662
- try {
663
- te.call(r, te);
664
- } catch {
665
- return !0;
666
- }
667
- return r instanceof WeakMap;
668
- } catch {
669
- }
670
- return !1;
671
- }
672
- function fn(r) {
673
- if (!or || !r || typeof r != "object")
674
- return !1;
675
- try {
676
- return or.call(r), !0;
677
- } catch {
678
- }
679
- return !1;
680
- }
681
- function un(r) {
682
- if (!ge || !r || typeof r != "object")
683
- return !1;
684
- try {
685
- ge.call(r);
686
- try {
687
- ve.call(r);
688
- } catch {
689
- return !0;
690
- }
691
- return r instanceof Set;
692
- } catch {
693
- }
694
- return !1;
695
- }
696
- function cn(r) {
697
- if (!te || !r || typeof r != "object")
698
- return !1;
699
- try {
700
- te.call(r, te);
701
- try {
702
- re.call(r, re);
703
- } catch {
704
- return !0;
705
- }
706
- return r instanceof WeakSet;
707
- } catch {
708
- }
709
- return !1;
710
- }
711
- function pn(r) {
712
- return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
713
- }
714
- function Fr(r, e) {
715
- if (r.length > e.maxStringLength) {
716
- var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
717
- return Fr(ke.call(r, 0, e.maxStringLength), e) + n;
718
- }
719
- var o = N.call(N.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, yn);
720
- return Pr(o, "single", e);
721
- }
722
- function yn(r) {
723
- var e = r.charCodeAt(0), t = {
724
- 8: "b",
725
- 9: "t",
726
- 10: "n",
727
- 12: "f",
728
- 13: "r"
729
- }[e];
730
- return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + Qt.call(e.toString(16));
731
- }
732
- function ee(r) {
733
- return "Object(" + r + ")";
734
- }
735
- function $e(r) {
736
- return r + " { ? }";
737
- }
738
- function dr(r, e, t, n) {
739
- var o = n ? Be(t, n) : $.call(t, ", ");
740
- return r + " (" + e + ") {" + o + "}";
741
- }
742
- function sn(r) {
743
- for (var e = 0; e < r.length; e++)
744
- if (Ir(r[e], `
745
- `) >= 0)
746
- return !1;
747
- return !0;
748
- }
749
- function dn(r, e) {
750
- var t;
751
- if (r.indent === " ")
752
- t = " ";
753
- else if (typeof r.indent == "number" && r.indent > 0)
754
- t = $.call(Array(r.indent + 1), " ");
755
- else
756
- return null;
757
- return {
758
- base: t,
759
- prev: $.call(Array(e + 1), t)
760
- };
761
- }
762
- function Be(r, e) {
763
- if (r.length === 0)
764
- return "";
765
- var t = `
766
- ` + e.prev + e.base;
767
- return t + $.call(r, "," + t) + `
768
- ` + e.prev;
769
- }
770
- function fe(r, e) {
771
- var t = Me(r), n = [];
772
- if (t) {
773
- n.length = r.length;
774
- for (var o = 0; o < r.length; o++)
775
- n[o] = T(r, o) ? e(r[o], r) : "";
776
- }
777
- var a = typeof Pe == "function" ? Pe(r) : [], i;
778
- if (V) {
779
- i = {};
780
- for (var f = 0; f < a.length; f++)
781
- i["$" + a[f]] = a[f];
782
- }
783
- for (var l in r)
784
- T(r, l) && (t && String(Number(l)) === l && l < r.length || V && i["$" + l] instanceof Symbol || (Or.call(/[^\w$]/, l) ? n.push(e(l, r) + ": " + e(r[l], r)) : n.push(l + ": " + e(r[l], r))));
785
- if (typeof Pe == "function")
786
- for (var p = 0; p < a.length; p++)
787
- Er.call(r, a[p]) && n.push("[" + e(a[p]) + "]: " + e(r[a[p]], r));
788
- return n;
789
- }
790
- var xr = j, Y = Bt, vn = Jt, gn = ae, ue = xr("%WeakMap%", !0), ce = xr("%Map%", !0), mn = Y("WeakMap.prototype.get", !0), hn = Y("WeakMap.prototype.set", !0), bn = Y("WeakMap.prototype.has", !0), Sn = Y("Map.prototype.get", !0), wn = Y("Map.prototype.set", !0), An = Y("Map.prototype.has", !0), ze = function(r, e) {
791
- for (var t = r, n; (n = t.next) !== null; t = n)
792
- if (n.key === e)
793
- return t.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
794
- r.next, r.next = n, n;
795
- }, On = function(r, e) {
796
- var t = ze(r, e);
797
- return t && t.value;
798
- }, En = function(r, e, t) {
799
- var n = ze(r, e);
800
- n ? n.value = t : r.next = /** @type {import('.').ListNode<typeof value>} */
801
- {
802
- // eslint-disable-line no-param-reassign, no-extra-parens
803
- key: e,
804
- next: r.next,
805
- value: t
806
- };
807
- }, Pn = function(r, e) {
808
- return !!ze(r, e);
809
- }, $n = function() {
810
- var e, t, n, o = {
811
- assert: function(a) {
812
- if (!o.has(a))
813
- throw new gn("Side channel does not contain " + vn(a));
814
- },
815
- get: function(a) {
816
- if (ue && a && (typeof a == "object" || typeof a == "function")) {
817
- if (e)
818
- return mn(e, a);
819
- } else if (ce) {
820
- if (t)
821
- return Sn(t, a);
822
- } else if (n)
823
- return On(n, a);
824
- },
825
- has: function(a) {
826
- if (ue && a && (typeof a == "object" || typeof a == "function")) {
827
- if (e)
828
- return bn(e, a);
829
- } else if (ce) {
830
- if (t)
831
- return An(t, a);
832
- } else if (n)
833
- return Pn(n, a);
834
- return !1;
835
- },
836
- set: function(a, i) {
837
- ue && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new ue()), hn(e, a, i)) : ce ? (t || (t = new ce()), wn(t, a, i)) : (n || (n = { key: {}, next: null }), En(n, a, i));
838
- }
839
- };
840
- return o;
841
- }, In = String.prototype.replace, Fn = /%20/g, Ie = {
842
- RFC1738: "RFC1738",
843
- RFC3986: "RFC3986"
844
- }, Ke = {
845
- default: Ie.RFC3986,
846
- formatters: {
847
- RFC1738: function(r) {
848
- return In.call(r, Fn, "+");
849
- },
850
- RFC3986: function(r) {
851
- return String(r);
852
- }
853
- },
854
- RFC1738: Ie.RFC1738,
855
- RFC3986: Ie.RFC3986
856
- }, xn = Ke, Fe = Object.prototype.hasOwnProperty, U = Array.isArray, E = function() {
857
- for (var r = [], e = 0; e < 256; ++e)
858
- r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
859
- return r;
860
- }(), Dn = function(e) {
861
- for (; e.length > 1; ) {
862
- var t = e.pop(), n = t.obj[t.prop];
863
- if (U(n)) {
864
- for (var o = [], a = 0; a < n.length; ++a)
865
- typeof n[a] < "u" && o.push(n[a]);
866
- t.obj[t.prop] = o;
867
- }
868
- }
869
- }, Dr = function(e, t) {
870
- for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
871
- typeof e[o] < "u" && (n[o] = e[o]);
872
- return n;
873
- }, Rn = function r(e, t, n) {
874
- if (!t)
875
- return e;
876
- if (typeof t != "object") {
877
- if (U(e))
878
- e.push(t);
879
- else if (e && typeof e == "object")
880
- (n && (n.plainObjects || n.allowPrototypes) || !Fe.call(Object.prototype, t)) && (e[t] = !0);
881
- else
882
- return [e, t];
883
- return e;
884
- }
885
- if (!e || typeof e != "object")
886
- return [e].concat(t);
887
- var o = e;
888
- return U(e) && !U(t) && (o = Dr(e, n)), U(e) && U(t) ? (t.forEach(function(a, i) {
889
- if (Fe.call(e, i)) {
890
- var f = e[i];
891
- f && typeof f == "object" && a && typeof a == "object" ? e[i] = r(f, a, n) : e.push(a);
892
- } else
893
- e[i] = a;
894
- }), e) : Object.keys(t).reduce(function(a, i) {
895
- var f = t[i];
896
- return Fe.call(a, i) ? a[i] = r(a[i], f, n) : a[i] = f, a;
897
- }, o);
898
- }, _n = function(e, t) {
899
- return Object.keys(t).reduce(function(n, o) {
900
- return n[o] = t[o], n;
901
- }, e);
902
- }, Tn = function(r, e, t) {
903
- var n = r.replace(/\+/g, " ");
904
- if (t === "iso-8859-1")
905
- return n.replace(/%[0-9a-f]{2}/gi, unescape);
906
- try {
907
- return decodeURIComponent(n);
908
- } catch {
909
- return n;
910
- }
911
- }, xe = 1024, Nn = function(e, t, n, o, a) {
912
- if (e.length === 0)
913
- return e;
914
- var i = e;
915
- if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
916
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
917
- return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
918
- });
919
- for (var f = "", l = 0; l < i.length; l += xe) {
920
- for (var p = i.length >= xe ? i.slice(l, l + xe) : i, c = [], s = 0; s < p.length; ++s) {
921
- var u = p.charCodeAt(s);
922
- if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || a === xn.RFC1738 && (u === 40 || u === 41)) {
923
- c[c.length] = p.charAt(s);
924
- continue;
925
- }
926
- if (u < 128) {
927
- c[c.length] = E[u];
928
- continue;
929
- }
930
- if (u < 2048) {
931
- c[c.length] = E[192 | u >> 6] + E[128 | u & 63];
932
- continue;
933
- }
934
- if (u < 55296 || u >= 57344) {
935
- c[c.length] = E[224 | u >> 12] + E[128 | u >> 6 & 63] + E[128 | u & 63];
936
- continue;
937
- }
938
- s += 1, u = 65536 + ((u & 1023) << 10 | p.charCodeAt(s) & 1023), c[c.length] = E[240 | u >> 18] + E[128 | u >> 12 & 63] + E[128 | u >> 6 & 63] + E[128 | u & 63];
939
- }
940
- f += c.join("");
941
- }
942
- return f;
943
- }, Mn = function(e) {
944
- for (var t = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < t.length; ++o)
945
- for (var a = t[o], i = a.obj[a.prop], f = Object.keys(i), l = 0; l < f.length; ++l) {
946
- var p = f[l], c = i[p];
947
- typeof c == "object" && c !== null && n.indexOf(c) === -1 && (t.push({ obj: i, prop: p }), n.push(c));
948
- }
949
- return Dn(t), e;
950
- }, Bn = function(e) {
951
- return Object.prototype.toString.call(e) === "[object RegExp]";
952
- }, Cn = function(e) {
953
- return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
954
- }, Un = function(e, t) {
955
- return [].concat(e, t);
956
- }, Wn = function(e, t) {
957
- if (U(e)) {
958
- for (var n = [], o = 0; o < e.length; o += 1)
959
- n.push(t(e[o]));
960
- return n;
961
- }
962
- return t(e);
963
- }, Rr = {
964
- arrayToObject: Dr,
965
- assign: _n,
966
- combine: Un,
967
- compact: Mn,
968
- decode: Tn,
969
- encode: Nn,
970
- isBuffer: Cn,
971
- isRegExp: Bn,
972
- maybeMap: Wn,
973
- merge: Rn
974
- }, _r = $n, ye = Rr, ne = Ke, Ln = Object.prototype.hasOwnProperty, Tr = {
975
- brackets: function(e) {
976
- return e + "[]";
977
- },
978
- comma: "comma",
979
- indices: function(e, t) {
980
- return e + "[" + t + "]";
981
- },
982
- repeat: function(e) {
983
- return e;
984
- }
985
- }, P = Array.isArray, Gn = Array.prototype.push, Nr = function(r, e) {
986
- Gn.apply(r, P(e) ? e : [e]);
987
- }, kn = Date.prototype.toISOString, vr = ne.default, h = {
988
- addQueryPrefix: !1,
989
- allowDots: !1,
990
- allowEmptyArrays: !1,
991
- arrayFormat: "indices",
992
- charset: "utf-8",
993
- charsetSentinel: !1,
994
- delimiter: "&",
995
- encode: !0,
996
- encodeDotInKeys: !1,
997
- encoder: ye.encode,
998
- encodeValuesOnly: !1,
999
- format: vr,
1000
- formatter: ne.formatters[vr],
1001
- // deprecated
1002
- indices: !1,
1003
- serializeDate: function(e) {
1004
- return kn.call(e);
1005
- },
1006
- skipNulls: !1,
1007
- strictNullHandling: !1
1008
- }, zn = function(e) {
1009
- return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1010
- }, De = {}, Kn = function r(e, t, n, o, a, i, f, l, p, c, s, u, v, g, S, A, I, F) {
1011
- for (var d = e, x = F, B = 0, X = !1; (x = x.get(De)) !== void 0 && !X; ) {
1012
- var G = x.get(e);
1013
- if (B += 1, typeof G < "u") {
1014
- if (G === B)
1015
- throw new RangeError("Cyclic object value");
1016
- X = !0;
1017
- }
1018
- typeof x.get(De) > "u" && (B = 0);
1019
- }
1020
- if (typeof c == "function" ? d = c(t, d) : d instanceof Date ? d = v(d) : n === "comma" && P(d) && (d = ye.maybeMap(d, function(he) {
1021
- return he instanceof Date ? v(he) : he;
1022
- })), d === null) {
1023
- if (i)
1024
- return p && !A ? p(t, h.encoder, I, "key", g) : t;
1025
- d = "";
1026
- }
1027
- if (zn(d) || ye.isBuffer(d)) {
1028
- if (p) {
1029
- var ie = A ? t : p(t, h.encoder, I, "key", g);
1030
- return [S(ie) + "=" + S(p(d, h.encoder, I, "value", g))];
1031
- }
1032
- return [S(t) + "=" + S(String(d))];
1033
- }
1034
- var C = [];
1035
- if (typeof d > "u")
1036
- return C;
1037
- var D;
1038
- if (n === "comma" && P(d))
1039
- A && p && (d = ye.maybeMap(d, p)), D = [{ value: d.length > 0 ? d.join(",") || null : void 0 }];
1040
- else if (P(c))
1041
- D = c;
1042
- else {
1043
- var le = Object.keys(d);
1044
- D = s ? le.sort(s) : le;
1045
- }
1046
- var k = l ? t.replace(/\./g, "%2E") : t, O = o && P(d) && d.length === 1 ? k + "[]" : k;
1047
- if (a && P(d) && d.length === 0)
1048
- return O + "[]";
1049
- for (var R = 0; R < D.length; ++R) {
1050
- var _ = D[R], Z = typeof _ == "object" && typeof _.value < "u" ? _.value : d[_];
1051
- if (!(f && Z === null)) {
1052
- var me = u && l ? _.replace(/\./g, "%2E") : _, Cr = P(d) ? typeof n == "function" ? n(O, me) : O : O + (u ? "." + me : "[" + me + "]");
1053
- F.set(e, B);
1054
- var He = _r();
1055
- He.set(De, F), Nr(C, r(
1056
- Z,
1057
- Cr,
1058
- n,
1059
- o,
1060
- a,
1061
- i,
1062
- f,
1063
- l,
1064
- n === "comma" && A && P(d) ? null : p,
1065
- c,
1066
- s,
1067
- u,
1068
- v,
1069
- g,
1070
- S,
1071
- A,
1072
- I,
1073
- He
1074
- ));
1075
- }
1076
- }
1077
- return C;
1078
- }, Hn = function(e) {
1079
- if (!e)
1080
- return h;
1081
- if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1082
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1083
- if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
1084
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1085
- if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1086
- throw new TypeError("Encoder has to be a function.");
1087
- var t = e.charset || h.charset;
1088
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1089
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1090
- var n = ne.default;
1091
- if (typeof e.format < "u") {
1092
- if (!Ln.call(ne.formatters, e.format))
1093
- throw new TypeError("Unknown format option provided.");
1094
- n = e.format;
1095
- }
1096
- var o = ne.formatters[n], a = h.filter;
1097
- (typeof e.filter == "function" || P(e.filter)) && (a = e.filter);
1098
- var i;
1099
- if (e.arrayFormat in Tr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = h.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1100
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1101
- var f = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : h.allowDots : !!e.allowDots;
1102
- return {
1103
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : h.addQueryPrefix,
1104
- allowDots: f,
1105
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : h.allowEmptyArrays,
1106
- arrayFormat: i,
1107
- charset: t,
1108
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : h.charsetSentinel,
1109
- commaRoundTrip: e.commaRoundTrip,
1110
- delimiter: typeof e.delimiter > "u" ? h.delimiter : e.delimiter,
1111
- encode: typeof e.encode == "boolean" ? e.encode : h.encode,
1112
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : h.encodeDotInKeys,
1113
- encoder: typeof e.encoder == "function" ? e.encoder : h.encoder,
1114
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : h.encodeValuesOnly,
1115
- filter: a,
1116
- format: n,
1117
- formatter: o,
1118
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : h.serializeDate,
1119
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : h.skipNulls,
1120
- sort: typeof e.sort == "function" ? e.sort : null,
1121
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : h.strictNullHandling
1122
- };
1123
- }, qn = function(r, e) {
1124
- var t = r, n = Hn(e), o, a;
1125
- typeof n.filter == "function" ? (a = n.filter, t = a("", t)) : P(n.filter) && (a = n.filter, o = a);
1126
- var i = [];
1127
- if (typeof t != "object" || t === null)
1128
- return "";
1129
- var f = Tr[n.arrayFormat], l = f === "comma" && n.commaRoundTrip;
1130
- o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
1131
- for (var p = _r(), c = 0; c < o.length; ++c) {
1132
- var s = o[c];
1133
- n.skipNulls && t[s] === null || Nr(i, Kn(
1134
- t[s],
1135
- s,
1136
- f,
1137
- l,
1138
- n.allowEmptyArrays,
1139
- n.strictNullHandling,
1140
- n.skipNulls,
1141
- n.encodeDotInKeys,
1142
- n.encode ? n.encoder : null,
1143
- n.filter,
1144
- n.sort,
1145
- n.allowDots,
1146
- n.serializeDate,
1147
- n.format,
1148
- n.formatter,
1149
- n.encodeValuesOnly,
1150
- n.charset,
1151
- p
1152
- ));
1153
- }
1154
- var u = i.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : "";
1155
- return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), u.length > 0 ? v + u : "";
1156
- }, J = Rr, Ce = Object.prototype.hasOwnProperty, Qn = Array.isArray, m = {
1157
- allowDots: !1,
1158
- allowEmptyArrays: !1,
1159
- allowPrototypes: !1,
1160
- allowSparse: !1,
1161
- arrayLimit: 20,
1162
- charset: "utf-8",
1163
- charsetSentinel: !1,
1164
- comma: !1,
1165
- decodeDotInKeys: !1,
1166
- decoder: J.decode,
1167
- delimiter: "&",
1168
- depth: 5,
1169
- duplicates: "combine",
1170
- ignoreQueryPrefix: !1,
1171
- interpretNumericEntities: !1,
1172
- parameterLimit: 1e3,
1173
- parseArrays: !0,
1174
- plainObjects: !1,
1175
- strictNullHandling: !1
1176
- }, Vn = function(r) {
1177
- return r.replace(/&#(\d+);/g, function(e, t) {
1178
- return String.fromCharCode(parseInt(t, 10));
1179
- });
1180
- }, Mr = function(r, e) {
1181
- return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
1182
- }, Jn = "utf8=%26%2310003%3B", jn = "utf8=%E2%9C%93", Yn = function(e, t) {
1183
- var n = { __proto__: null }, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1184
- o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1185
- var a = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, i = o.split(t.delimiter, a), f = -1, l, p = t.charset;
1186
- if (t.charsetSentinel)
1187
- for (l = 0; l < i.length; ++l)
1188
- i[l].indexOf("utf8=") === 0 && (i[l] === jn ? p = "utf-8" : i[l] === Jn && (p = "iso-8859-1"), f = l, l = i.length);
1189
- for (l = 0; l < i.length; ++l)
1190
- if (l !== f) {
1191
- var c = i[l], s = c.indexOf("]="), u = s === -1 ? c.indexOf("=") : s + 1, v, g;
1192
- u === -1 ? (v = t.decoder(c, m.decoder, p, "key"), g = t.strictNullHandling ? null : "") : (v = t.decoder(c.slice(0, u), m.decoder, p, "key"), g = J.maybeMap(
1193
- Mr(c.slice(u + 1), t),
1194
- function(A) {
1195
- return t.decoder(A, m.decoder, p, "value");
1196
- }
1197
- )), g && t.interpretNumericEntities && p === "iso-8859-1" && (g = Vn(g)), c.indexOf("[]=") > -1 && (g = Qn(g) ? [g] : g);
1198
- var S = Ce.call(n, v);
1199
- S && t.duplicates === "combine" ? n[v] = J.combine(n[v], g) : (!S || t.duplicates === "last") && (n[v] = g);
1200
- }
1201
- return n;
1202
- }, Xn = function(r, e, t, n) {
1203
- for (var o = n ? e : Mr(e, t), a = r.length - 1; a >= 0; --a) {
1204
- var i, f = r[a];
1205
- if (f === "[]" && t.parseArrays)
1206
- i = t.allowEmptyArrays && o === "" ? [] : [].concat(o);
1207
- else {
1208
- i = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1209
- var l = f.charAt(0) === "[" && f.charAt(f.length - 1) === "]" ? f.slice(1, -1) : f, p = t.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, c = parseInt(p, 10);
1210
- !t.parseArrays && p === "" ? i = { 0: o } : !isNaN(c) && f !== p && String(c) === p && c >= 0 && t.parseArrays && c <= t.arrayLimit ? (i = [], i[c] = o) : p !== "__proto__" && (i[p] = o);
1211
- }
1212
- o = i;
1213
- }
1214
- return o;
1215
- }, Zn = function(e, t, n, o) {
1216
- if (e) {
1217
- var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, f = /(\[[^[\]]*])/g, l = n.depth > 0 && i.exec(a), p = l ? a.slice(0, l.index) : a, c = [];
1218
- if (p) {
1219
- if (!n.plainObjects && Ce.call(Object.prototype, p) && !n.allowPrototypes)
1220
- return;
1221
- c.push(p);
1222
- }
1223
- for (var s = 0; n.depth > 0 && (l = f.exec(a)) !== null && s < n.depth; ) {
1224
- if (s += 1, !n.plainObjects && Ce.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
1225
- return;
1226
- c.push(l[1]);
1227
- }
1228
- return l && c.push("[" + a.slice(l.index) + "]"), Xn(c, t, n, o);
1229
- }
1230
- }, ea = function(e) {
1231
- if (!e)
1232
- return m;
1233
- if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1234
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1235
- if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
1236
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
1237
- if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
1238
- throw new TypeError("Decoder has to be a function.");
1239
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1240
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1241
- var t = typeof e.charset > "u" ? m.charset : e.charset, n = typeof e.duplicates > "u" ? m.duplicates : e.duplicates;
1242
- if (n !== "combine" && n !== "first" && n !== "last")
1243
- throw new TypeError("The duplicates option must be either combine, first, or last");
1244
- var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : m.allowDots : !!e.allowDots;
1245
- return {
1246
- allowDots: o,
1247
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : m.allowEmptyArrays,
1248
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : m.allowPrototypes,
1249
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : m.allowSparse,
1250
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : m.arrayLimit,
1251
- charset: t,
1252
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : m.charsetSentinel,
1253
- comma: typeof e.comma == "boolean" ? e.comma : m.comma,
1254
- decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : m.decodeDotInKeys,
1255
- decoder: typeof e.decoder == "function" ? e.decoder : m.decoder,
1256
- delimiter: typeof e.delimiter == "string" || J.isRegExp(e.delimiter) ? e.delimiter : m.delimiter,
1257
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1258
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : m.depth,
1259
- duplicates: n,
1260
- ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1261
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : m.interpretNumericEntities,
1262
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : m.parameterLimit,
1263
- parseArrays: e.parseArrays !== !1,
1264
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : m.plainObjects,
1265
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : m.strictNullHandling
1266
- };
1267
- }, ra = function(r, e) {
1268
- var t = ea(e);
1269
- if (r === "" || r === null || typeof r > "u")
1270
- return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1271
- for (var n = typeof r == "string" ? Yn(r, t) : r, o = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
1272
- var f = a[i], l = Zn(f, n[f], t, typeof r == "string");
1273
- o = J.merge(o, l, t);
1274
- }
1275
- return t.allowSparse === !0 ? o : J.compact(o);
1276
- }, ta = qn, na = ra, aa = Ke, Br = {
1277
- formats: aa,
1278
- parse: na,
1279
- stringify: ta
1280
- };
1281
- const oa = /* @__PURE__ */ Wr(Br), ia = /* @__PURE__ */ Ur({
1282
- __proto__: null,
1283
- default: oa
1284
- }, [Br]);
1285
- export {
1286
- ia as i
1287
- };
1288
- //# sourceMappingURL=index-DF-CVhdU.js.map