lr-chatbot 0.40.0 → 0.40.2

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