lr-chatbot 0.28.1 → 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-Ugjv-NNW.js DELETED
@@ -1,1298 +0,0 @@
1
- function Wr(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 He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
- function Lr(r) {
19
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
20
- }
21
- function Gr(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 kr = Error, zr = EvalError, qr = 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, Vr = Qr, Jr = function() {
64
- return typeof Qe != "function" || typeof Symbol != "function" || typeof Qe("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Vr();
65
- }, be = {
66
- __proto__: null,
67
- foo: {}
68
- }, jr = Object, Yr = function() {
69
- return { __proto__: be }.foo === be.foo && !(be instanceof jr);
70
- }, Xr = "Function.prototype.bind called on incompatible ", Zr = Object.prototype.toString, et = Math.max, rt = "[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
- }, tt = 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
- }, nt = 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
- }, at = function(e) {
85
- var t = this;
86
- if (typeof t != "function" || Zr.apply(t) !== rt)
87
- throw new TypeError(Xr + t);
88
- for (var n = tt(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 = et(0, t.length - n.length), f = [], l = 0; l < i; l++)
101
- f[l] = "$" + l;
102
- if (o = Function("binder", "return function (" + nt(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
- }, ot = at, Ue = Function.prototype.bind || ot, it = Function.prototype.call, lt = Object.prototype.hasOwnProperty, ft = Ue, ut = ft.call(it, lt), y, ct = kr, pt = zr, yt = qr, st = Kr, Q = gr, H = ae, vt = 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 H();
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 = Jr(), gt = Yr(), b = Object.getPrototypeOf || (gt ? function(r) {
133
- return r.__proto__;
134
- } : null), K = {}, mt = 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%": K,
142
- "%AsyncGenerator%": K,
143
- "%AsyncGeneratorFunction%": K,
144
- "%AsyncIteratorPrototype%": K,
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%": ct,
157
- "%eval%": eval,
158
- // eslint-disable-line no-eval
159
- "%EvalError%": pt,
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%": K,
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%": yt,
182
- "%ReferenceError%": st,
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%": mt,
194
- "%TypeError%": H,
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%": vt,
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 ht = b(b(r));
209
- L["%Error.prototype%"] = ht;
210
- }
211
- var bt = 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 = ut, St = oe.call(Function.call, Array.prototype.concat), wt = oe.call(Function.apply, Array.prototype.splice), je = oe.call(Function.call, String.prototype.replace), ve = oe.call(Function.call, String.prototype.slice), At = oe.call(Function.call, RegExp.prototype.exec), Et = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ot = /\\(\\)?/g, Pt = function(e) {
281
- var t = ve(e, 0, 1), n = ve(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, Et, function(a, i, f, l) {
288
- o[o.length] = f ? je(l, Ot, "$1") : i || a;
289
- }), o;
290
- }, $t = 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 === K && (a = bt(n)), typeof a > "u" && !t)
295
- throw new H("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 H("intrinsic name must be a non-empty string");
306
- if (arguments.length > 1 && typeof t != "boolean")
307
- throw new H('"allowMissing" argument must be a boolean');
308
- if (At(/^%?[^%]*%?$/, e) === null)
309
- throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
310
- var n = Pt(e), o = n.length > 0 ? n[0] : "", a = $t("%" + o + "%", t), i = a.name, f = a.value, l = !1, p = a.alias;
311
- p && (o = p[0], wt(n, St([0, 1], p)));
312
- for (var c = 1, s = !0; c < n.length; c += 1) {
313
- var u = n[c], d = ve(u, 0, 1), g = ve(u, -1);
314
- if ((d === '"' || d === "'" || d === "`" || g === '"' || g === "'" || g === "`") && d !== 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 H("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 It = j, pe = It("%Object.getOwnPropertyDescriptor%", !0);
347
- if (pe)
348
- try {
349
- pe([], "length");
350
- } catch {
351
- pe = null;
352
- }
353
- var br = pe, Xe = We(), Ft = gr, q = ae, Ze = br, xt = function(e, t, n) {
354
- if (!e || typeof e != "object" && typeof e != "function")
355
- throw new q("`obj` must be an object or a function`");
356
- if (typeof t != "string" && typeof t != "symbol")
357
- throw new q("`property` must be a string or a symbol`");
358
- if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
359
- throw new q("`nonEnumerable`, if provided, must be a boolean or null");
360
- if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
361
- throw new q("`nonWritable`, if provided, must be a boolean or null");
362
- if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
363
- throw new q("`nonConfigurable`, if provided, must be a boolean or null");
364
- if (arguments.length > 6 && typeof arguments[6] != "boolean")
365
- throw new q("`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 Ft("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
378
- }, De = We(), Sr = function() {
379
- return !!De;
380
- };
381
- Sr.hasArrayLengthDefineBug = function() {
382
- if (!De)
383
- return null;
384
- try {
385
- return De([], "length", { value: 1 }).length !== 1;
386
- } catch {
387
- return !0;
388
- }
389
- };
390
- var _t = Sr, Dt = j, er = xt, Rt = _t(), rr = br, tr = ae, Tt = Dt("%Math.floor%"), Nt = 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 || Tt(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 = Nt, 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 d = f(e, i, arguments);
420
- return n(
421
- d,
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 Mt = hr.exports, wr = j, Ar = Mt, Bt = Ar(wr("String.prototype.indexOf")), Ct = function(e, t) {
432
- var n = wr(e, !!t);
433
- return typeof n == "function" && Bt(e, ".prototype.") > -1 ? Ar(n) : n;
434
- };
435
- const Ut = {}, Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
436
- __proto__: null,
437
- default: Ut
438
- }, Symbol.toStringTag, { value: "Module" })), Lt = /* @__PURE__ */ Gr(Wt);
439
- var Le = typeof Map == "function" && Map.prototype, Ee = Object.getOwnPropertyDescriptor && Le ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, de = Le && Ee && typeof Ee.get == "function" ? Ee.get : null, nr = Le && Map.prototype.forEach, Ge = typeof Set == "function" && Set.prototype, Oe = Object.getOwnPropertyDescriptor && Ge ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ge = Ge && Oe && typeof Oe.get == "function" ? Oe.get : null, ar = Ge && Set.prototype.forEach, Gt = typeof WeakMap == "function" && WeakMap.prototype, re = Gt ? WeakMap.prototype.has : null, kt = typeof WeakSet == "function" && WeakSet.prototype, te = kt ? WeakSet.prototype.has : null, zt = typeof WeakRef == "function" && WeakRef.prototype, or = zt ? WeakRef.prototype.deref : null, qt = Boolean.prototype.valueOf, Kt = Object.prototype.toString, Ht = Function.prototype.toString, Qt = String.prototype.match, ke = String.prototype.slice, N = String.prototype.replace, Vt = String.prototype.toUpperCase, ir = String.prototype.toLowerCase, Er = RegExp.prototype.test, lr = Array.prototype.concat, $ = Array.prototype.join, Jt = Array.prototype.slice, fr = Math.floor, Re = 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, Or = 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 || Er.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 = Lt, pr = Ne.custom, yr = Ir(pr) ? pr : null, Pr = {
456
- __proto__: null,
457
- double: '"',
458
- single: "'"
459
- }, jt = {
460
- __proto__: null,
461
- double: /(["\\])/g,
462
- single: /(['\\])/g
463
- }, Yt = function r(e, t, n, o) {
464
- var a = t || {};
465
- if (I(a, "quoteStyle") && !I(Pr, a.quoteStyle))
466
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
467
- if (I(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
468
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
469
- var i = I(a, "customInspect") ? a.customInspect : !0;
470
- if (typeof i != "boolean" && i !== "symbol")
471
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
472
- if (I(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
473
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
474
- if (I(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
475
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
476
- var f = a.numericSeparator;
477
- if (typeof e > "u")
478
- return "undefined";
479
- if (e === null)
480
- return "null";
481
- if (typeof e == "boolean")
482
- return e ? "true" : "false";
483
- if (typeof e == "string")
484
- return xr(e, a);
485
- if (typeof e == "number") {
486
- if (e === 0)
487
- return 1 / 0 / e > 0 ? "0" : "-0";
488
- var l = String(e);
489
- return f ? cr(e, l) : l;
490
- }
491
- if (typeof e == "bigint") {
492
- var p = String(e) + "n";
493
- return f ? cr(e, p) : p;
494
- }
495
- var c = typeof a.depth > "u" ? 5 : a.depth;
496
- if (typeof n > "u" && (n = 0), n >= c && c > 0 && typeof e == "object")
497
- return Me(e) ? "[Array]" : "[Object]";
498
- var s = gn(a, n);
499
- if (typeof o > "u")
500
- o = [];
501
- else if (Fr(o, e) >= 0)
502
- return "[Circular]";
503
- function u(E, R, T) {
504
- if (R && (o = Jt.call(o), o.push(R)), T) {
505
- var Z = {
506
- depth: a.depth
507
- };
508
- return I(a, "quoteStyle") && (Z.quoteStyle = a.quoteStyle), r(E, Z, n + 1, o);
509
- }
510
- return r(E, a, n + 1, o);
511
- }
512
- if (typeof e == "function" && !sr(e)) {
513
- var d = ln(e), g = fe(e, u);
514
- return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (g.length > 0 ? " { " + $.call(g, ", ") + " }" : "");
515
- }
516
- if (Ir(e)) {
517
- var S = V ? N.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Te.call(e);
518
- return typeof e == "object" && !V ? ee(S) : S;
519
- }
520
- if (sn(e)) {
521
- for (var A = "<" + ir.call(String(e.nodeName)), F = e.attributes || [], x = 0; x < F.length; x++)
522
- A += " " + F[x].name + "=" + $r(Xt(F[x].value), "double", a);
523
- return A += ">", e.childNodes && e.childNodes.length && (A += "..."), A += "</" + ir.call(String(e.nodeName)) + ">", A;
524
- }
525
- if (Me(e)) {
526
- if (e.length === 0)
527
- return "[]";
528
- var v = fe(e, u);
529
- return s && !dn(v) ? "[" + Be(v, s) + "]" : "[ " + $.call(v, ", ") + " ]";
530
- }
531
- if (en(e)) {
532
- var _ = fe(e, u);
533
- return !("cause" in Error.prototype) && "cause" in e && !Or.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(lr.call("[cause]: " + u(e.cause), _), ", ") + " }" : _.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(_, ", ") + " }";
534
- }
535
- if (typeof e == "object" && i) {
536
- if (yr && typeof e[yr] == "function" && Ne)
537
- return Ne(e, { depth: c - n });
538
- if (i !== "symbol" && typeof e.inspect == "function")
539
- return e.inspect();
540
- }
541
- if (fn(e)) {
542
- var B = [];
543
- return nr && nr.call(e, function(E, R) {
544
- B.push(u(R, e, !0) + " => " + u(E, e));
545
- }), vr("Map", de.call(e), B, s);
546
- }
547
- if (pn(e)) {
548
- var X = [];
549
- return ar && ar.call(e, function(E) {
550
- X.push(u(E, e));
551
- }), vr("Set", ge.call(e), X, s);
552
- }
553
- if (un(e))
554
- return $e("WeakMap");
555
- if (yn(e))
556
- return $e("WeakSet");
557
- if (cn(e))
558
- return $e("WeakRef");
559
- if (tn(e))
560
- return ee(u(Number(e)));
561
- if (an(e))
562
- return ee(u(Re.call(e)));
563
- if (nn(e))
564
- return ee(qt.call(e));
565
- if (rn(e))
566
- return ee(u(String(e)));
567
- if (typeof window < "u" && e === window)
568
- return "{ [object Window] }";
569
- if (typeof globalThis < "u" && e === globalThis || typeof He < "u" && e === He)
570
- return "{ [object globalThis] }";
571
- if (!Zt(e) && !sr(e)) {
572
- 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 || []), ": ") + "] " : "");
573
- return G.length === 0 ? k + "{}" : s ? k + "{" + Be(G, s) + "}" : k + "{ " + $.call(G, ", ") + " }";
574
- }
575
- return String(e);
576
- };
577
- function $r(r, e, t) {
578
- var n = t.quoteStyle || e, o = Pr[n];
579
- return o + r + o;
580
- }
581
- function Xt(r) {
582
- return N.call(String(r), /"/g, "&quot;");
583
- }
584
- function Me(r) {
585
- return M(r) === "[object Array]" && (!w || !(typeof r == "object" && w in r));
586
- }
587
- function Zt(r) {
588
- return M(r) === "[object Date]" && (!w || !(typeof r == "object" && w in r));
589
- }
590
- function sr(r) {
591
- return M(r) === "[object RegExp]" && (!w || !(typeof r == "object" && w in r));
592
- }
593
- function en(r) {
594
- return M(r) === "[object Error]" && (!w || !(typeof r == "object" && w in r));
595
- }
596
- function rn(r) {
597
- return M(r) === "[object String]" && (!w || !(typeof r == "object" && w in r));
598
- }
599
- function tn(r) {
600
- return M(r) === "[object Number]" && (!w || !(typeof r == "object" && w in r));
601
- }
602
- function nn(r) {
603
- return M(r) === "[object Boolean]" && (!w || !(typeof r == "object" && w in r));
604
- }
605
- function Ir(r) {
606
- if (V)
607
- return r && typeof r == "object" && r instanceof Symbol;
608
- if (typeof r == "symbol")
609
- return !0;
610
- if (!r || typeof r != "object" || !Te)
611
- return !1;
612
- try {
613
- return Te.call(r), !0;
614
- } catch {
615
- }
616
- return !1;
617
- }
618
- function an(r) {
619
- if (!r || typeof r != "object" || !Re)
620
- return !1;
621
- try {
622
- return Re.call(r), !0;
623
- } catch {
624
- }
625
- return !1;
626
- }
627
- var on = Object.prototype.hasOwnProperty || function(r) {
628
- return r in this;
629
- };
630
- function I(r, e) {
631
- return on.call(r, e);
632
- }
633
- function M(r) {
634
- return Kt.call(r);
635
- }
636
- function ln(r) {
637
- if (r.name)
638
- return r.name;
639
- var e = Qt.call(Ht.call(r), /^function\s*([\w$]+)/);
640
- return e ? e[1] : null;
641
- }
642
- function Fr(r, e) {
643
- if (r.indexOf)
644
- return r.indexOf(e);
645
- for (var t = 0, n = r.length; t < n; t++)
646
- if (r[t] === e)
647
- return t;
648
- return -1;
649
- }
650
- function fn(r) {
651
- if (!de || !r || typeof r != "object")
652
- return !1;
653
- try {
654
- de.call(r);
655
- try {
656
- ge.call(r);
657
- } catch {
658
- return !0;
659
- }
660
- return r instanceof Map;
661
- } catch {
662
- }
663
- return !1;
664
- }
665
- function un(r) {
666
- if (!re || !r || typeof r != "object")
667
- return !1;
668
- try {
669
- re.call(r, re);
670
- try {
671
- te.call(r, te);
672
- } catch {
673
- return !0;
674
- }
675
- return r instanceof WeakMap;
676
- } catch {
677
- }
678
- return !1;
679
- }
680
- function cn(r) {
681
- if (!or || !r || typeof r != "object")
682
- return !1;
683
- try {
684
- return or.call(r), !0;
685
- } catch {
686
- }
687
- return !1;
688
- }
689
- function pn(r) {
690
- if (!ge || !r || typeof r != "object")
691
- return !1;
692
- try {
693
- ge.call(r);
694
- try {
695
- de.call(r);
696
- } catch {
697
- return !0;
698
- }
699
- return r instanceof Set;
700
- } catch {
701
- }
702
- return !1;
703
- }
704
- function yn(r) {
705
- if (!te || !r || typeof r != "object")
706
- return !1;
707
- try {
708
- te.call(r, te);
709
- try {
710
- re.call(r, re);
711
- } catch {
712
- return !0;
713
- }
714
- return r instanceof WeakSet;
715
- } catch {
716
- }
717
- return !1;
718
- }
719
- function sn(r) {
720
- return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
721
- }
722
- function xr(r, e) {
723
- if (r.length > e.maxStringLength) {
724
- var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
725
- return xr(ke.call(r, 0, e.maxStringLength), e) + n;
726
- }
727
- var o = jt[e.quoteStyle || "single"];
728
- o.lastIndex = 0;
729
- var a = N.call(N.call(r, o, "\\$1"), /[\x00-\x1f]/g, vn);
730
- return $r(a, "single", e);
731
- }
732
- function vn(r) {
733
- var e = r.charCodeAt(0), t = {
734
- 8: "b",
735
- 9: "t",
736
- 10: "n",
737
- 12: "f",
738
- 13: "r"
739
- }[e];
740
- return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + Vt.call(e.toString(16));
741
- }
742
- function ee(r) {
743
- return "Object(" + r + ")";
744
- }
745
- function $e(r) {
746
- return r + " { ? }";
747
- }
748
- function vr(r, e, t, n) {
749
- var o = n ? Be(t, n) : $.call(t, ", ");
750
- return r + " (" + e + ") {" + o + "}";
751
- }
752
- function dn(r) {
753
- for (var e = 0; e < r.length; e++)
754
- if (Fr(r[e], `
755
- `) >= 0)
756
- return !1;
757
- return !0;
758
- }
759
- function gn(r, e) {
760
- var t;
761
- if (r.indent === " ")
762
- t = " ";
763
- else if (typeof r.indent == "number" && r.indent > 0)
764
- t = $.call(Array(r.indent + 1), " ");
765
- else
766
- return null;
767
- return {
768
- base: t,
769
- prev: $.call(Array(e + 1), t)
770
- };
771
- }
772
- function Be(r, e) {
773
- if (r.length === 0)
774
- return "";
775
- var t = `
776
- ` + e.prev + e.base;
777
- return t + $.call(r, "," + t) + `
778
- ` + e.prev;
779
- }
780
- function fe(r, e) {
781
- var t = Me(r), n = [];
782
- if (t) {
783
- n.length = r.length;
784
- for (var o = 0; o < r.length; o++)
785
- n[o] = I(r, o) ? e(r[o], r) : "";
786
- }
787
- var a = typeof Pe == "function" ? Pe(r) : [], i;
788
- if (V) {
789
- i = {};
790
- for (var f = 0; f < a.length; f++)
791
- i["$" + a[f]] = a[f];
792
- }
793
- for (var l in r)
794
- I(r, l) && (t && String(Number(l)) === l && l < r.length || V && i["$" + l] instanceof Symbol || (Er.call(/[^\w$]/, l) ? n.push(e(l, r) + ": " + e(r[l], r)) : n.push(l + ": " + e(r[l], r))));
795
- if (typeof Pe == "function")
796
- for (var p = 0; p < a.length; p++)
797
- Or.call(r, a[p]) && n.push("[" + e(a[p]) + "]: " + e(r[a[p]], r));
798
- return n;
799
- }
800
- var _r = j, Y = Ct, mn = Yt, hn = ae, ue = _r("%WeakMap%", !0), ce = _r("%Map%", !0), bn = Y("WeakMap.prototype.get", !0), Sn = Y("WeakMap.prototype.set", !0), wn = Y("WeakMap.prototype.has", !0), An = Y("Map.prototype.get", !0), En = Y("Map.prototype.set", !0), On = Y("Map.prototype.has", !0), ze = function(r, e) {
801
- for (var t = r, n; (n = t.next) !== null; t = n)
802
- if (n.key === e)
803
- return t.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
804
- r.next, r.next = n, n;
805
- }, Pn = function(r, e) {
806
- var t = ze(r, e);
807
- return t && t.value;
808
- }, $n = function(r, e, t) {
809
- var n = ze(r, e);
810
- n ? n.value = t : r.next = /** @type {import('.').ListNode<typeof value>} */
811
- {
812
- // eslint-disable-line no-param-reassign, no-extra-parens
813
- key: e,
814
- next: r.next,
815
- value: t
816
- };
817
- }, In = function(r, e) {
818
- return !!ze(r, e);
819
- }, Fn = function() {
820
- var e, t, n, o = {
821
- assert: function(a) {
822
- if (!o.has(a))
823
- throw new hn("Side channel does not contain " + mn(a));
824
- },
825
- get: 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
- },
835
- has: function(a) {
836
- if (ue && a && (typeof a == "object" || typeof a == "function")) {
837
- if (e)
838
- return wn(e, a);
839
- } else if (ce) {
840
- if (t)
841
- return On(t, a);
842
- } else if (n)
843
- return In(n, a);
844
- return !1;
845
- },
846
- set: function(a, i) {
847
- ue && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new ue()), Sn(e, a, i)) : ce ? (t || (t = new ce()), En(t, a, i)) : (n || (n = { key: {}, next: null }), $n(n, a, i));
848
- }
849
- };
850
- return o;
851
- }, xn = String.prototype.replace, _n = /%20/g, Ie = {
852
- RFC1738: "RFC1738",
853
- RFC3986: "RFC3986"
854
- }, qe = {
855
- default: Ie.RFC3986,
856
- formatters: {
857
- RFC1738: function(r) {
858
- return xn.call(r, _n, "+");
859
- },
860
- RFC3986: function(r) {
861
- return String(r);
862
- }
863
- },
864
- RFC1738: Ie.RFC1738,
865
- RFC3986: Ie.RFC3986
866
- }, Dn = qe, Fe = Object.prototype.hasOwnProperty, U = Array.isArray, O = function() {
867
- for (var r = [], e = 0; e < 256; ++e)
868
- r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
869
- return r;
870
- }(), Rn = function(e) {
871
- for (; e.length > 1; ) {
872
- var t = e.pop(), n = t.obj[t.prop];
873
- if (U(n)) {
874
- for (var o = [], a = 0; a < n.length; ++a)
875
- typeof n[a] < "u" && o.push(n[a]);
876
- t.obj[t.prop] = o;
877
- }
878
- }
879
- }, Dr = function(e, t) {
880
- for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
881
- typeof e[o] < "u" && (n[o] = e[o]);
882
- return n;
883
- }, Tn = function r(e, t, n) {
884
- if (!t)
885
- return e;
886
- if (typeof t != "object") {
887
- if (U(e))
888
- e.push(t);
889
- else if (e && typeof e == "object")
890
- (n && (n.plainObjects || n.allowPrototypes) || !Fe.call(Object.prototype, t)) && (e[t] = !0);
891
- else
892
- return [e, t];
893
- return e;
894
- }
895
- if (!e || typeof e != "object")
896
- return [e].concat(t);
897
- var o = e;
898
- return U(e) && !U(t) && (o = Dr(e, n)), U(e) && U(t) ? (t.forEach(function(a, i) {
899
- if (Fe.call(e, i)) {
900
- var f = e[i];
901
- f && typeof f == "object" && a && typeof a == "object" ? e[i] = r(f, a, n) : e.push(a);
902
- } else
903
- e[i] = a;
904
- }), e) : Object.keys(t).reduce(function(a, i) {
905
- var f = t[i];
906
- return Fe.call(a, i) ? a[i] = r(a[i], f, n) : a[i] = f, a;
907
- }, o);
908
- }, Nn = function(e, t) {
909
- return Object.keys(t).reduce(function(n, o) {
910
- return n[o] = t[o], n;
911
- }, e);
912
- }, Mn = function(r, e, t) {
913
- var n = r.replace(/\+/g, " ");
914
- if (t === "iso-8859-1")
915
- return n.replace(/%[0-9a-f]{2}/gi, unescape);
916
- try {
917
- return decodeURIComponent(n);
918
- } catch {
919
- return n;
920
- }
921
- }, xe = 1024, Bn = function(e, t, n, o, a) {
922
- if (e.length === 0)
923
- return e;
924
- var i = e;
925
- if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
926
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(d) {
927
- return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
928
- });
929
- for (var f = "", l = 0; l < i.length; l += xe) {
930
- for (var p = i.length >= xe ? i.slice(l, l + xe) : i, c = [], s = 0; s < p.length; ++s) {
931
- var u = p.charCodeAt(s);
932
- if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || a === Dn.RFC1738 && (u === 40 || u === 41)) {
933
- c[c.length] = p.charAt(s);
934
- continue;
935
- }
936
- if (u < 128) {
937
- c[c.length] = O[u];
938
- continue;
939
- }
940
- if (u < 2048) {
941
- c[c.length] = O[192 | u >> 6] + O[128 | u & 63];
942
- continue;
943
- }
944
- if (u < 55296 || u >= 57344) {
945
- c[c.length] = O[224 | u >> 12] + O[128 | u >> 6 & 63] + O[128 | u & 63];
946
- continue;
947
- }
948
- s += 1, u = 65536 + ((u & 1023) << 10 | p.charCodeAt(s) & 1023), c[c.length] = O[240 | u >> 18] + O[128 | u >> 12 & 63] + O[128 | u >> 6 & 63] + O[128 | u & 63];
949
- }
950
- f += c.join("");
951
- }
952
- return f;
953
- }, Cn = function(e) {
954
- for (var t = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < t.length; ++o)
955
- for (var a = t[o], i = a.obj[a.prop], f = Object.keys(i), l = 0; l < f.length; ++l) {
956
- var p = f[l], c = i[p];
957
- typeof c == "object" && c !== null && n.indexOf(c) === -1 && (t.push({ obj: i, prop: p }), n.push(c));
958
- }
959
- return Rn(t), e;
960
- }, Un = function(e) {
961
- return Object.prototype.toString.call(e) === "[object RegExp]";
962
- }, Wn = function(e) {
963
- return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
964
- }, Ln = function(e, t) {
965
- return [].concat(e, t);
966
- }, Gn = function(e, t) {
967
- if (U(e)) {
968
- for (var n = [], o = 0; o < e.length; o += 1)
969
- n.push(t(e[o]));
970
- return n;
971
- }
972
- return t(e);
973
- }, Rr = {
974
- arrayToObject: Dr,
975
- assign: Nn,
976
- combine: Ln,
977
- compact: Cn,
978
- decode: Mn,
979
- encode: Bn,
980
- isBuffer: Wn,
981
- isRegExp: Un,
982
- maybeMap: Gn,
983
- merge: Tn
984
- }, Tr = Fn, ye = Rr, ne = qe, kn = Object.prototype.hasOwnProperty, Nr = {
985
- brackets: function(e) {
986
- return e + "[]";
987
- },
988
- comma: "comma",
989
- indices: function(e, t) {
990
- return e + "[" + t + "]";
991
- },
992
- repeat: function(e) {
993
- return e;
994
- }
995
- }, P = Array.isArray, zn = Array.prototype.push, Mr = function(r, e) {
996
- zn.apply(r, P(e) ? e : [e]);
997
- }, qn = Date.prototype.toISOString, dr = ne.default, h = {
998
- addQueryPrefix: !1,
999
- allowDots: !1,
1000
- allowEmptyArrays: !1,
1001
- arrayFormat: "indices",
1002
- charset: "utf-8",
1003
- charsetSentinel: !1,
1004
- delimiter: "&",
1005
- encode: !0,
1006
- encodeDotInKeys: !1,
1007
- encoder: ye.encode,
1008
- encodeValuesOnly: !1,
1009
- format: dr,
1010
- formatter: ne.formatters[dr],
1011
- // deprecated
1012
- indices: !1,
1013
- serializeDate: function(e) {
1014
- return qn.call(e);
1015
- },
1016
- skipNulls: !1,
1017
- strictNullHandling: !1
1018
- }, Kn = function(e) {
1019
- return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1020
- }, _e = {}, Hn = function r(e, t, n, o, a, i, f, l, p, c, s, u, d, g, S, A, F, x) {
1021
- for (var v = e, _ = x, B = 0, X = !1; (_ = _.get(_e)) !== void 0 && !X; ) {
1022
- var G = _.get(e);
1023
- if (B += 1, typeof G < "u") {
1024
- if (G === B)
1025
- throw new RangeError("Cyclic object value");
1026
- X = !0;
1027
- }
1028
- typeof _.get(_e) > "u" && (B = 0);
1029
- }
1030
- if (typeof c == "function" ? v = c(t, v) : v instanceof Date ? v = d(v) : n === "comma" && P(v) && (v = ye.maybeMap(v, function(he) {
1031
- return he instanceof Date ? d(he) : he;
1032
- })), v === null) {
1033
- if (i)
1034
- return p && !A ? p(t, h.encoder, F, "key", g) : t;
1035
- v = "";
1036
- }
1037
- if (Kn(v) || ye.isBuffer(v)) {
1038
- if (p) {
1039
- var ie = A ? t : p(t, h.encoder, F, "key", g);
1040
- return [S(ie) + "=" + S(p(v, h.encoder, F, "value", g))];
1041
- }
1042
- return [S(t) + "=" + S(String(v))];
1043
- }
1044
- var C = [];
1045
- if (typeof v > "u")
1046
- return C;
1047
- var D;
1048
- if (n === "comma" && P(v))
1049
- A && p && (v = ye.maybeMap(v, p)), D = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
1050
- else if (P(c))
1051
- D = c;
1052
- else {
1053
- var le = Object.keys(v);
1054
- D = s ? le.sort(s) : le;
1055
- }
1056
- var k = l ? t.replace(/\./g, "%2E") : t, E = o && P(v) && v.length === 1 ? k + "[]" : k;
1057
- if (a && P(v) && v.length === 0)
1058
- return E + "[]";
1059
- for (var R = 0; R < D.length; ++R) {
1060
- var T = D[R], Z = typeof T == "object" && typeof T.value < "u" ? T.value : v[T];
1061
- if (!(f && Z === null)) {
1062
- var me = u && l ? T.replace(/\./g, "%2E") : T, Ur = P(v) ? typeof n == "function" ? n(E, me) : E : E + (u ? "." + me : "[" + me + "]");
1063
- x.set(e, B);
1064
- var Ke = Tr();
1065
- Ke.set(_e, x), Mr(C, r(
1066
- Z,
1067
- Ur,
1068
- n,
1069
- o,
1070
- a,
1071
- i,
1072
- f,
1073
- l,
1074
- n === "comma" && A && P(v) ? null : p,
1075
- c,
1076
- s,
1077
- u,
1078
- d,
1079
- g,
1080
- S,
1081
- A,
1082
- F,
1083
- Ke
1084
- ));
1085
- }
1086
- }
1087
- return C;
1088
- }, Qn = function(e) {
1089
- if (!e)
1090
- return h;
1091
- if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1092
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1093
- if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
1094
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1095
- if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1096
- throw new TypeError("Encoder has to be a function.");
1097
- var t = e.charset || h.charset;
1098
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1099
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1100
- var n = ne.default;
1101
- if (typeof e.format < "u") {
1102
- if (!kn.call(ne.formatters, e.format))
1103
- throw new TypeError("Unknown format option provided.");
1104
- n = e.format;
1105
- }
1106
- var o = ne.formatters[n], a = h.filter;
1107
- (typeof e.filter == "function" || P(e.filter)) && (a = e.filter);
1108
- var i;
1109
- if (e.arrayFormat in Nr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = h.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1110
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1111
- var f = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : h.allowDots : !!e.allowDots;
1112
- return {
1113
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : h.addQueryPrefix,
1114
- allowDots: f,
1115
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : h.allowEmptyArrays,
1116
- arrayFormat: i,
1117
- charset: t,
1118
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : h.charsetSentinel,
1119
- commaRoundTrip: e.commaRoundTrip,
1120
- delimiter: typeof e.delimiter > "u" ? h.delimiter : e.delimiter,
1121
- encode: typeof e.encode == "boolean" ? e.encode : h.encode,
1122
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : h.encodeDotInKeys,
1123
- encoder: typeof e.encoder == "function" ? e.encoder : h.encoder,
1124
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : h.encodeValuesOnly,
1125
- filter: a,
1126
- format: n,
1127
- formatter: o,
1128
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : h.serializeDate,
1129
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : h.skipNulls,
1130
- sort: typeof e.sort == "function" ? e.sort : null,
1131
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : h.strictNullHandling
1132
- };
1133
- }, Vn = function(r, e) {
1134
- var t = r, n = Qn(e), o, a;
1135
- typeof n.filter == "function" ? (a = n.filter, t = a("", t)) : P(n.filter) && (a = n.filter, o = a);
1136
- var i = [];
1137
- if (typeof t != "object" || t === null)
1138
- return "";
1139
- var f = Nr[n.arrayFormat], l = f === "comma" && n.commaRoundTrip;
1140
- o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
1141
- for (var p = Tr(), c = 0; c < o.length; ++c) {
1142
- var s = o[c];
1143
- n.skipNulls && t[s] === null || Mr(i, Hn(
1144
- t[s],
1145
- s,
1146
- f,
1147
- l,
1148
- n.allowEmptyArrays,
1149
- n.strictNullHandling,
1150
- n.skipNulls,
1151
- n.encodeDotInKeys,
1152
- n.encode ? n.encoder : null,
1153
- n.filter,
1154
- n.sort,
1155
- n.allowDots,
1156
- n.serializeDate,
1157
- n.format,
1158
- n.formatter,
1159
- n.encodeValuesOnly,
1160
- n.charset,
1161
- p
1162
- ));
1163
- }
1164
- var u = i.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
1165
- return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), u.length > 0 ? d + u : "";
1166
- }, J = Rr, Ce = Object.prototype.hasOwnProperty, Jn = Array.isArray, m = {
1167
- allowDots: !1,
1168
- allowEmptyArrays: !1,
1169
- allowPrototypes: !1,
1170
- allowSparse: !1,
1171
- arrayLimit: 20,
1172
- charset: "utf-8",
1173
- charsetSentinel: !1,
1174
- comma: !1,
1175
- decodeDotInKeys: !1,
1176
- decoder: J.decode,
1177
- delimiter: "&",
1178
- depth: 5,
1179
- duplicates: "combine",
1180
- ignoreQueryPrefix: !1,
1181
- interpretNumericEntities: !1,
1182
- parameterLimit: 1e3,
1183
- parseArrays: !0,
1184
- plainObjects: !1,
1185
- strictNullHandling: !1
1186
- }, jn = function(r) {
1187
- return r.replace(/&#(\d+);/g, function(e, t) {
1188
- return String.fromCharCode(parseInt(t, 10));
1189
- });
1190
- }, Br = function(r, e) {
1191
- return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
1192
- }, Yn = "utf8=%26%2310003%3B", Xn = "utf8=%E2%9C%93", Zn = function(e, t) {
1193
- var n = { __proto__: null }, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1194
- o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1195
- var a = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, i = o.split(t.delimiter, a), f = -1, l, p = t.charset;
1196
- if (t.charsetSentinel)
1197
- for (l = 0; l < i.length; ++l)
1198
- i[l].indexOf("utf8=") === 0 && (i[l] === Xn ? p = "utf-8" : i[l] === Yn && (p = "iso-8859-1"), f = l, l = i.length);
1199
- for (l = 0; l < i.length; ++l)
1200
- if (l !== f) {
1201
- var c = i[l], s = c.indexOf("]="), u = s === -1 ? c.indexOf("=") : s + 1, d, g;
1202
- u === -1 ? (d = t.decoder(c, m.decoder, p, "key"), g = t.strictNullHandling ? null : "") : (d = t.decoder(c.slice(0, u), m.decoder, p, "key"), g = J.maybeMap(
1203
- Br(c.slice(u + 1), t),
1204
- function(A) {
1205
- return t.decoder(A, m.decoder, p, "value");
1206
- }
1207
- )), g && t.interpretNumericEntities && p === "iso-8859-1" && (g = jn(g)), c.indexOf("[]=") > -1 && (g = Jn(g) ? [g] : g);
1208
- var S = Ce.call(n, d);
1209
- S && t.duplicates === "combine" ? n[d] = J.combine(n[d], g) : (!S || t.duplicates === "last") && (n[d] = g);
1210
- }
1211
- return n;
1212
- }, ea = function(r, e, t, n) {
1213
- for (var o = n ? e : Br(e, t), a = r.length - 1; a >= 0; --a) {
1214
- var i, f = r[a];
1215
- if (f === "[]" && t.parseArrays)
1216
- i = t.allowEmptyArrays && o === "" ? [] : [].concat(o);
1217
- else {
1218
- i = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1219
- 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);
1220
- !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);
1221
- }
1222
- o = i;
1223
- }
1224
- return o;
1225
- }, ra = function(e, t, n, o) {
1226
- if (e) {
1227
- 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 = [];
1228
- if (p) {
1229
- if (!n.plainObjects && Ce.call(Object.prototype, p) && !n.allowPrototypes)
1230
- return;
1231
- c.push(p);
1232
- }
1233
- for (var s = 0; n.depth > 0 && (l = f.exec(a)) !== null && s < n.depth; ) {
1234
- if (s += 1, !n.plainObjects && Ce.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
1235
- return;
1236
- c.push(l[1]);
1237
- }
1238
- return l && c.push("[" + a.slice(l.index) + "]"), ea(c, t, n, o);
1239
- }
1240
- }, ta = function(e) {
1241
- if (!e)
1242
- return m;
1243
- if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1244
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1245
- if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
1246
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
1247
- if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
1248
- throw new TypeError("Decoder has to be a function.");
1249
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1250
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1251
- var t = typeof e.charset > "u" ? m.charset : e.charset, n = typeof e.duplicates > "u" ? m.duplicates : e.duplicates;
1252
- if (n !== "combine" && n !== "first" && n !== "last")
1253
- throw new TypeError("The duplicates option must be either combine, first, or last");
1254
- var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : m.allowDots : !!e.allowDots;
1255
- return {
1256
- allowDots: o,
1257
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : m.allowEmptyArrays,
1258
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : m.allowPrototypes,
1259
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : m.allowSparse,
1260
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : m.arrayLimit,
1261
- charset: t,
1262
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : m.charsetSentinel,
1263
- comma: typeof e.comma == "boolean" ? e.comma : m.comma,
1264
- decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : m.decodeDotInKeys,
1265
- decoder: typeof e.decoder == "function" ? e.decoder : m.decoder,
1266
- delimiter: typeof e.delimiter == "string" || J.isRegExp(e.delimiter) ? e.delimiter : m.delimiter,
1267
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1268
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : m.depth,
1269
- duplicates: n,
1270
- ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1271
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : m.interpretNumericEntities,
1272
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : m.parameterLimit,
1273
- parseArrays: e.parseArrays !== !1,
1274
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : m.plainObjects,
1275
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : m.strictNullHandling
1276
- };
1277
- }, na = function(r, e) {
1278
- var t = ta(e);
1279
- if (r === "" || r === null || typeof r > "u")
1280
- return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1281
- for (var n = typeof r == "string" ? Zn(r, t) : r, o = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
1282
- var f = a[i], l = ra(f, n[f], t, typeof r == "string");
1283
- o = J.merge(o, l, t);
1284
- }
1285
- return t.allowSparse === !0 ? o : J.compact(o);
1286
- }, aa = Vn, oa = na, ia = qe, Cr = {
1287
- formats: ia,
1288
- parse: oa,
1289
- stringify: aa
1290
- };
1291
- const la = /* @__PURE__ */ Lr(Cr), fa = /* @__PURE__ */ Wr({
1292
- __proto__: null,
1293
- default: la
1294
- }, [Cr]);
1295
- export {
1296
- fa as i
1297
- };
1298
- //# sourceMappingURL=index-Ugjv-NNW.js.map