lr-chatbot 0.31.9 → 0.32.7

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