@leancodepl/hook-pipe-client 9.7.2 → 9.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,3396 @@
1
+ import { useState as Hi, useRef as le, useEffect as zi } from "react";
2
+ var Jr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
+ function Vi(r) {
4
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
5
+ }
6
+ function Ji(r) {
7
+ if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
8
+ var t = r.default;
9
+ if (typeof t == "function") {
10
+ var e = function n() {
11
+ var o = !1;
12
+ try {
13
+ o = this instanceof n;
14
+ } catch {
15
+ }
16
+ return o ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
17
+ };
18
+ e.prototype = t.prototype;
19
+ } else e = {};
20
+ return Object.defineProperty(e, "__esModule", { value: !0 }), Object.keys(r).forEach(function(n) {
21
+ var o = Object.getOwnPropertyDescriptor(r, n);
22
+ Object.defineProperty(e, n, o.get ? o : {
23
+ enumerable: !0,
24
+ get: function() {
25
+ return r[n];
26
+ }
27
+ });
28
+ }), e;
29
+ }
30
+ var pe, Sn;
31
+ function li() {
32
+ if (Sn) return pe;
33
+ Sn = 1;
34
+ var r = Object.prototype.toString;
35
+ return pe = function(e) {
36
+ var n = r.call(e), o = n === "[object Arguments]";
37
+ return o || (o = n !== "[object Array]" && e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && r.call(e.callee) === "[object Function]"), o;
38
+ }, pe;
39
+ }
40
+ var ye, wn;
41
+ function Yi() {
42
+ if (wn) return ye;
43
+ wn = 1;
44
+ var r;
45
+ if (!Object.keys) {
46
+ var t = Object.prototype.hasOwnProperty, e = Object.prototype.toString, n = li(), o = Object.prototype.propertyIsEnumerable, i = !o.call({ toString: null }, "toString"), a = o.call(function() {
47
+ }, "prototype"), u = [
48
+ "toString",
49
+ "toLocaleString",
50
+ "valueOf",
51
+ "hasOwnProperty",
52
+ "isPrototypeOf",
53
+ "propertyIsEnumerable",
54
+ "constructor"
55
+ ], f = function(v) {
56
+ var h = v.constructor;
57
+ return h && h.prototype === v;
58
+ }, s = {
59
+ $applicationCache: !0,
60
+ $console: !0,
61
+ $external: !0,
62
+ $frame: !0,
63
+ $frameElement: !0,
64
+ $frames: !0,
65
+ $innerHeight: !0,
66
+ $innerWidth: !0,
67
+ $onmozfullscreenchange: !0,
68
+ $onmozfullscreenerror: !0,
69
+ $outerHeight: !0,
70
+ $outerWidth: !0,
71
+ $pageXOffset: !0,
72
+ $pageYOffset: !0,
73
+ $parent: !0,
74
+ $scrollLeft: !0,
75
+ $scrollTop: !0,
76
+ $scrollX: !0,
77
+ $scrollY: !0,
78
+ $self: !0,
79
+ $webkitIndexedDB: !0,
80
+ $webkitStorageInfo: !0,
81
+ $window: !0
82
+ }, y = (function() {
83
+ if (typeof window > "u")
84
+ return !1;
85
+ for (var v in window)
86
+ try {
87
+ if (!s["$" + v] && t.call(window, v) && window[v] !== null && typeof window[v] == "object")
88
+ try {
89
+ f(window[v]);
90
+ } catch {
91
+ return !0;
92
+ }
93
+ } catch {
94
+ return !0;
95
+ }
96
+ return !1;
97
+ })(), p = function(v) {
98
+ if (typeof window > "u" || !y)
99
+ return f(v);
100
+ try {
101
+ return f(v);
102
+ } catch {
103
+ return !1;
104
+ }
105
+ };
106
+ r = function(h) {
107
+ var g = h !== null && typeof h == "object", S = e.call(h) === "[object Function]", A = n(h), O = g && e.call(h) === "[object String]", I = [];
108
+ if (!g && !S && !A)
109
+ throw new TypeError("Object.keys called on a non-object");
110
+ var b = a && S;
111
+ if (O && h.length > 0 && !t.call(h, 0))
112
+ for (var T = 0; T < h.length; ++T)
113
+ I.push(String(T));
114
+ if (A && h.length > 0)
115
+ for (var H = 0; H < h.length; ++H)
116
+ I.push(String(H));
117
+ else
118
+ for (var W in h)
119
+ !(b && W === "prototype") && t.call(h, W) && I.push(String(W));
120
+ if (i)
121
+ for (var F = p(h), C = 0; C < u.length; ++C)
122
+ !(F && u[C] === "constructor") && t.call(h, u[C]) && I.push(u[C]);
123
+ return I;
124
+ };
125
+ }
126
+ return ye = r, ye;
127
+ }
128
+ var ve, An;
129
+ function Zt() {
130
+ if (An) return ve;
131
+ An = 1;
132
+ var r = Array.prototype.slice, t = li(), e = Object.keys, n = e ? function(a) {
133
+ return e(a);
134
+ } : Yi(), o = Object.keys;
135
+ return n.shim = function() {
136
+ if (Object.keys) {
137
+ var a = (function() {
138
+ var u = Object.keys(arguments);
139
+ return u && u.length === arguments.length;
140
+ })(1, 2);
141
+ a || (Object.keys = function(f) {
142
+ return t(f) ? o(r.call(f)) : o(f);
143
+ });
144
+ } else
145
+ Object.keys = n;
146
+ return Object.keys || n;
147
+ }, ve = n, ve;
148
+ }
149
+ var he, On;
150
+ function Xr() {
151
+ if (On) return he;
152
+ On = 1;
153
+ var r = Object.defineProperty || !1;
154
+ if (r)
155
+ try {
156
+ r({}, "a", { value: 1 });
157
+ } catch {
158
+ r = !1;
159
+ }
160
+ return he = r, he;
161
+ }
162
+ var de, Pn;
163
+ function Qt() {
164
+ return Pn || (Pn = 1, de = SyntaxError), de;
165
+ }
166
+ var ge, In;
167
+ function nr() {
168
+ return In || (In = 1, ge = TypeError), ge;
169
+ }
170
+ var me, En;
171
+ function Ki() {
172
+ return En || (En = 1, me = Object.getOwnPropertyDescriptor), me;
173
+ }
174
+ var be, qn;
175
+ function Or() {
176
+ if (qn) return be;
177
+ qn = 1;
178
+ var r = /* @__PURE__ */ Ki();
179
+ if (r)
180
+ try {
181
+ r([], "length");
182
+ } catch {
183
+ r = null;
184
+ }
185
+ return be = r, be;
186
+ }
187
+ var Se, Rn;
188
+ function rn() {
189
+ if (Rn) return Se;
190
+ Rn = 1;
191
+ var r = /* @__PURE__ */ Xr(), t = /* @__PURE__ */ Qt(), e = /* @__PURE__ */ nr(), n = /* @__PURE__ */ Or();
192
+ return Se = function(i, a, u) {
193
+ if (!i || typeof i != "object" && typeof i != "function")
194
+ throw new e("`obj` must be an object or a function`");
195
+ if (typeof a != "string" && typeof a != "symbol")
196
+ throw new e("`property` must be a string or a symbol`");
197
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
198
+ throw new e("`nonEnumerable`, if provided, must be a boolean or null");
199
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
200
+ throw new e("`nonWritable`, if provided, must be a boolean or null");
201
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
202
+ throw new e("`nonConfigurable`, if provided, must be a boolean or null");
203
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
204
+ throw new e("`loose`, if provided, must be a boolean");
205
+ var f = arguments.length > 3 ? arguments[3] : null, s = arguments.length > 4 ? arguments[4] : null, y = arguments.length > 5 ? arguments[5] : null, p = arguments.length > 6 ? arguments[6] : !1, v = !!n && n(i, a);
206
+ if (r)
207
+ r(i, a, {
208
+ configurable: y === null && v ? v.configurable : !y,
209
+ enumerable: f === null && v ? v.enumerable : !f,
210
+ value: u,
211
+ writable: s === null && v ? v.writable : !s
212
+ });
213
+ else if (p || !f && !s && !y)
214
+ i[a] = u;
215
+ else
216
+ throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
217
+ }, Se;
218
+ }
219
+ var we, $n;
220
+ function en() {
221
+ if ($n) return we;
222
+ $n = 1;
223
+ var r = /* @__PURE__ */ Xr(), t = function() {
224
+ return !!r;
225
+ };
226
+ return t.hasArrayLengthDefineBug = function() {
227
+ if (!r)
228
+ return null;
229
+ try {
230
+ return r([], "length", { value: 1 }).length !== 1;
231
+ } catch {
232
+ return !0;
233
+ }
234
+ }, we = t, we;
235
+ }
236
+ var Ae, Bn;
237
+ function Pr() {
238
+ if (Bn) return Ae;
239
+ Bn = 1;
240
+ var r = Zt(), t = typeof Symbol == "function" && typeof /* @__PURE__ */ Symbol("foo") == "symbol", e = Object.prototype.toString, n = Array.prototype.concat, o = /* @__PURE__ */ rn(), i = function(s) {
241
+ return typeof s == "function" && e.call(s) === "[object Function]";
242
+ }, a = /* @__PURE__ */ en()(), u = function(s, y, p, v) {
243
+ if (y in s) {
244
+ if (v === !0) {
245
+ if (s[y] === p)
246
+ return;
247
+ } else if (!i(v) || !v())
248
+ return;
249
+ }
250
+ a ? o(s, y, p, !0) : o(s, y, p);
251
+ }, f = function(s, y) {
252
+ var p = arguments.length > 2 ? arguments[2] : {}, v = r(y);
253
+ t && (v = n.call(v, Object.getOwnPropertySymbols(y)));
254
+ for (var h = 0; h < v.length; h += 1)
255
+ u(s, v[h], y[v[h]], p[v[h]]);
256
+ };
257
+ return f.supportsDescriptors = !!a, Ae = f, Ae;
258
+ }
259
+ var Oe = { exports: {} }, Pe, _n;
260
+ function tn() {
261
+ return _n || (_n = 1, Pe = Object), Pe;
262
+ }
263
+ var Ie, xn;
264
+ function pi() {
265
+ return xn || (xn = 1, Ie = Error), Ie;
266
+ }
267
+ var Ee, Tn;
268
+ function Xi() {
269
+ return Tn || (Tn = 1, Ee = EvalError), Ee;
270
+ }
271
+ var qe, jn;
272
+ function Zi() {
273
+ return jn || (jn = 1, qe = RangeError), qe;
274
+ }
275
+ var Re, Mn;
276
+ function Qi() {
277
+ return Mn || (Mn = 1, Re = ReferenceError), Re;
278
+ }
279
+ var $e, Cn;
280
+ function ra() {
281
+ return Cn || (Cn = 1, $e = URIError), $e;
282
+ }
283
+ var Be, Fn;
284
+ function ea() {
285
+ return Fn || (Fn = 1, Be = Math.abs), Be;
286
+ }
287
+ var _e, Dn;
288
+ function ta() {
289
+ return Dn || (Dn = 1, _e = Math.floor), _e;
290
+ }
291
+ var xe, Wn;
292
+ function na() {
293
+ return Wn || (Wn = 1, xe = Math.max), xe;
294
+ }
295
+ var Te, kn;
296
+ function oa() {
297
+ return kn || (kn = 1, Te = Math.min), Te;
298
+ }
299
+ var je, Nn;
300
+ function ia() {
301
+ return Nn || (Nn = 1, je = Math.pow), je;
302
+ }
303
+ var Me, Ln;
304
+ function aa() {
305
+ return Ln || (Ln = 1, Me = Math.round), Me;
306
+ }
307
+ var Ce, Un;
308
+ function ua() {
309
+ return Un || (Un = 1, Ce = Number.isNaN || function(t) {
310
+ return t !== t;
311
+ }), Ce;
312
+ }
313
+ var Fe, Gn;
314
+ function fa() {
315
+ if (Gn) return Fe;
316
+ Gn = 1;
317
+ var r = /* @__PURE__ */ ua();
318
+ return Fe = function(e) {
319
+ return r(e) || e === 0 ? e : e < 0 ? -1 : 1;
320
+ }, Fe;
321
+ }
322
+ var De, Hn;
323
+ function Zr() {
324
+ return Hn || (Hn = 1, De = function() {
325
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
326
+ return !1;
327
+ if (typeof Symbol.iterator == "symbol")
328
+ return !0;
329
+ var t = {}, e = /* @__PURE__ */ Symbol("test"), n = Object(e);
330
+ if (typeof e == "string" || Object.prototype.toString.call(e) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
331
+ return !1;
332
+ var o = 42;
333
+ t[e] = o;
334
+ for (var i in t)
335
+ return !1;
336
+ if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
337
+ return !1;
338
+ var a = Object.getOwnPropertySymbols(t);
339
+ if (a.length !== 1 || a[0] !== e || !Object.prototype.propertyIsEnumerable.call(t, e))
340
+ return !1;
341
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
342
+ var u = (
343
+ /** @type {PropertyDescriptor} */
344
+ Object.getOwnPropertyDescriptor(t, e)
345
+ );
346
+ if (u.value !== o || u.enumerable !== !0)
347
+ return !1;
348
+ }
349
+ return !0;
350
+ }), De;
351
+ }
352
+ var We, zn;
353
+ function nn() {
354
+ if (zn) return We;
355
+ zn = 1;
356
+ var r = typeof Symbol < "u" && Symbol, t = Zr();
357
+ return We = function() {
358
+ return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : t();
359
+ }, We;
360
+ }
361
+ var ke, Vn;
362
+ function yi() {
363
+ return Vn || (Vn = 1, ke = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ke;
364
+ }
365
+ var Ne, Jn;
366
+ function vi() {
367
+ if (Jn) return Ne;
368
+ Jn = 1;
369
+ var r = /* @__PURE__ */ tn();
370
+ return Ne = r.getPrototypeOf || null, Ne;
371
+ }
372
+ var Le, Yn;
373
+ function sa() {
374
+ if (Yn) return Le;
375
+ Yn = 1;
376
+ var r = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, e = Math.max, n = "[object Function]", o = function(f, s) {
377
+ for (var y = [], p = 0; p < f.length; p += 1)
378
+ y[p] = f[p];
379
+ for (var v = 0; v < s.length; v += 1)
380
+ y[v + f.length] = s[v];
381
+ return y;
382
+ }, i = function(f, s) {
383
+ for (var y = [], p = s, v = 0; p < f.length; p += 1, v += 1)
384
+ y[v] = f[p];
385
+ return y;
386
+ }, a = function(u, f) {
387
+ for (var s = "", y = 0; y < u.length; y += 1)
388
+ s += u[y], y + 1 < u.length && (s += f);
389
+ return s;
390
+ };
391
+ return Le = function(f) {
392
+ var s = this;
393
+ if (typeof s != "function" || t.apply(s) !== n)
394
+ throw new TypeError(r + s);
395
+ for (var y = i(arguments, 1), p, v = function() {
396
+ if (this instanceof p) {
397
+ var O = s.apply(
398
+ this,
399
+ o(y, arguments)
400
+ );
401
+ return Object(O) === O ? O : this;
402
+ }
403
+ return s.apply(
404
+ f,
405
+ o(y, arguments)
406
+ );
407
+ }, h = e(0, s.length - y.length), g = [], S = 0; S < h; S++)
408
+ g[S] = "$" + S;
409
+ if (p = Function("binder", "return function (" + a(g, ",") + "){ return binder.apply(this,arguments); }")(v), s.prototype) {
410
+ var A = function() {
411
+ };
412
+ A.prototype = s.prototype, p.prototype = new A(), A.prototype = null;
413
+ }
414
+ return p;
415
+ }, Le;
416
+ }
417
+ var Ue, Kn;
418
+ function Dr() {
419
+ if (Kn) return Ue;
420
+ Kn = 1;
421
+ var r = sa();
422
+ return Ue = Function.prototype.bind || r, Ue;
423
+ }
424
+ var Ge, Xn;
425
+ function on() {
426
+ return Xn || (Xn = 1, Ge = Function.prototype.call), Ge;
427
+ }
428
+ var He, Zn;
429
+ function an() {
430
+ return Zn || (Zn = 1, He = Function.prototype.apply), He;
431
+ }
432
+ var ze, Qn;
433
+ function ca() {
434
+ return Qn || (Qn = 1, ze = typeof Reflect < "u" && Reflect && Reflect.apply), ze;
435
+ }
436
+ var Ve, ro;
437
+ function hi() {
438
+ if (ro) return Ve;
439
+ ro = 1;
440
+ var r = Dr(), t = an(), e = on(), n = ca();
441
+ return Ve = n || r.call(e, t), Ve;
442
+ }
443
+ var Je, eo;
444
+ function un() {
445
+ if (eo) return Je;
446
+ eo = 1;
447
+ var r = Dr(), t = /* @__PURE__ */ nr(), e = on(), n = hi();
448
+ return Je = function(i) {
449
+ if (i.length < 1 || typeof i[0] != "function")
450
+ throw new t("a function is required");
451
+ return n(r, e, i);
452
+ }, Je;
453
+ }
454
+ var Ye, to;
455
+ function la() {
456
+ if (to) return Ye;
457
+ to = 1;
458
+ var r = un(), t = /* @__PURE__ */ Or(), e;
459
+ try {
460
+ e = /** @type {{ __proto__?: typeof Array.prototype }} */
461
+ [].__proto__ === Array.prototype;
462
+ } catch (a) {
463
+ if (!a || typeof a != "object" || !("code" in a) || a.code !== "ERR_PROTO_ACCESS")
464
+ throw a;
465
+ }
466
+ var n = !!e && t && t(
467
+ Object.prototype,
468
+ /** @type {keyof typeof Object.prototype} */
469
+ "__proto__"
470
+ ), o = Object, i = o.getPrototypeOf;
471
+ return Ye = n && typeof n.get == "function" ? r([n.get]) : typeof i == "function" ? (
472
+ /** @type {import('./get')} */
473
+ function(u) {
474
+ return i(u == null ? u : o(u));
475
+ }
476
+ ) : !1, Ye;
477
+ }
478
+ var Ke, no;
479
+ function fn() {
480
+ if (no) return Ke;
481
+ no = 1;
482
+ var r = yi(), t = vi(), e = /* @__PURE__ */ la();
483
+ return Ke = r ? function(o) {
484
+ return r(o);
485
+ } : t ? function(o) {
486
+ if (!o || typeof o != "object" && typeof o != "function")
487
+ throw new TypeError("getProto: not an object");
488
+ return t(o);
489
+ } : e ? function(o) {
490
+ return e(o);
491
+ } : null, Ke;
492
+ }
493
+ var Xe, oo;
494
+ function sn() {
495
+ if (oo) return Xe;
496
+ oo = 1;
497
+ var r = Function.prototype.call, t = Object.prototype.hasOwnProperty, e = Dr();
498
+ return Xe = e.call(r, t), Xe;
499
+ }
500
+ var Ze, io;
501
+ function pr() {
502
+ if (io) return Ze;
503
+ io = 1;
504
+ var r, t = /* @__PURE__ */ tn(), e = /* @__PURE__ */ pi(), n = /* @__PURE__ */ Xi(), o = /* @__PURE__ */ Zi(), i = /* @__PURE__ */ Qi(), a = /* @__PURE__ */ Qt(), u = /* @__PURE__ */ nr(), f = /* @__PURE__ */ ra(), s = /* @__PURE__ */ ea(), y = /* @__PURE__ */ ta(), p = /* @__PURE__ */ na(), v = /* @__PURE__ */ oa(), h = /* @__PURE__ */ ia(), g = /* @__PURE__ */ aa(), S = /* @__PURE__ */ fa(), A = Function, O = function(j) {
505
+ try {
506
+ return A('"use strict"; return (' + j + ").constructor;")();
507
+ } catch {
508
+ }
509
+ }, I = /* @__PURE__ */ Or(), b = /* @__PURE__ */ Xr(), T = function() {
510
+ throw new u();
511
+ }, H = I ? (function() {
512
+ try {
513
+ return arguments.callee, T;
514
+ } catch {
515
+ try {
516
+ return I(arguments, "callee").get;
517
+ } catch {
518
+ return T;
519
+ }
520
+ }
521
+ })() : T, W = nn()(), F = fn(), C = vi(), E = yi(), D = an(), U = on(), k = {}, G = typeof Uint8Array > "u" || !F ? r : F(Uint8Array), J = {
522
+ __proto__: null,
523
+ "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
524
+ "%Array%": Array,
525
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
526
+ "%ArrayIteratorPrototype%": W && F ? F([][Symbol.iterator]()) : r,
527
+ "%AsyncFromSyncIteratorPrototype%": r,
528
+ "%AsyncFunction%": k,
529
+ "%AsyncGenerator%": k,
530
+ "%AsyncGeneratorFunction%": k,
531
+ "%AsyncIteratorPrototype%": k,
532
+ "%Atomics%": typeof Atomics > "u" ? r : Atomics,
533
+ "%BigInt%": typeof BigInt > "u" ? r : BigInt,
534
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? r : BigInt64Array,
535
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? r : BigUint64Array,
536
+ "%Boolean%": Boolean,
537
+ "%DataView%": typeof DataView > "u" ? r : DataView,
538
+ "%Date%": Date,
539
+ "%decodeURI%": decodeURI,
540
+ "%decodeURIComponent%": decodeURIComponent,
541
+ "%encodeURI%": encodeURI,
542
+ "%encodeURIComponent%": encodeURIComponent,
543
+ "%Error%": e,
544
+ "%eval%": eval,
545
+ // eslint-disable-line no-eval
546
+ "%EvalError%": n,
547
+ "%Float16Array%": typeof Float16Array > "u" ? r : Float16Array,
548
+ "%Float32Array%": typeof Float32Array > "u" ? r : Float32Array,
549
+ "%Float64Array%": typeof Float64Array > "u" ? r : Float64Array,
550
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? r : FinalizationRegistry,
551
+ "%Function%": A,
552
+ "%GeneratorFunction%": k,
553
+ "%Int8Array%": typeof Int8Array > "u" ? r : Int8Array,
554
+ "%Int16Array%": typeof Int16Array > "u" ? r : Int16Array,
555
+ "%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
556
+ "%isFinite%": isFinite,
557
+ "%isNaN%": isNaN,
558
+ "%IteratorPrototype%": W && F ? F(F([][Symbol.iterator]())) : r,
559
+ "%JSON%": typeof JSON == "object" ? JSON : r,
560
+ "%Map%": typeof Map > "u" ? r : Map,
561
+ "%MapIteratorPrototype%": typeof Map > "u" || !W || !F ? r : F((/* @__PURE__ */ new Map())[Symbol.iterator]()),
562
+ "%Math%": Math,
563
+ "%Number%": Number,
564
+ "%Object%": t,
565
+ "%Object.getOwnPropertyDescriptor%": I,
566
+ "%parseFloat%": parseFloat,
567
+ "%parseInt%": parseInt,
568
+ "%Promise%": typeof Promise > "u" ? r : Promise,
569
+ "%Proxy%": typeof Proxy > "u" ? r : Proxy,
570
+ "%RangeError%": o,
571
+ "%ReferenceError%": i,
572
+ "%Reflect%": typeof Reflect > "u" ? r : Reflect,
573
+ "%RegExp%": RegExp,
574
+ "%Set%": typeof Set > "u" ? r : Set,
575
+ "%SetIteratorPrototype%": typeof Set > "u" || !W || !F ? r : F((/* @__PURE__ */ new Set())[Symbol.iterator]()),
576
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer,
577
+ "%String%": String,
578
+ "%StringIteratorPrototype%": W && F ? F(""[Symbol.iterator]()) : r,
579
+ "%Symbol%": W ? Symbol : r,
580
+ "%SyntaxError%": a,
581
+ "%ThrowTypeError%": H,
582
+ "%TypedArray%": G,
583
+ "%TypeError%": u,
584
+ "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
585
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
586
+ "%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array,
587
+ "%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array,
588
+ "%URIError%": f,
589
+ "%WeakMap%": typeof WeakMap > "u" ? r : WeakMap,
590
+ "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
591
+ "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
592
+ "%Function.prototype.call%": U,
593
+ "%Function.prototype.apply%": D,
594
+ "%Object.defineProperty%": b,
595
+ "%Object.getPrototypeOf%": C,
596
+ "%Math.abs%": s,
597
+ "%Math.floor%": y,
598
+ "%Math.max%": p,
599
+ "%Math.min%": v,
600
+ "%Math.pow%": h,
601
+ "%Math.round%": g,
602
+ "%Math.sign%": S,
603
+ "%Reflect.getPrototypeOf%": E
604
+ };
605
+ if (F)
606
+ try {
607
+ null.error;
608
+ } catch (j) {
609
+ var ur = F(F(j));
610
+ J["%Error.prototype%"] = ur;
611
+ }
612
+ var Er = function j(P) {
613
+ var q;
614
+ if (P === "%AsyncFunction%")
615
+ q = O("async function () {}");
616
+ else if (P === "%GeneratorFunction%")
617
+ q = O("function* () {}");
618
+ else if (P === "%AsyncGeneratorFunction%")
619
+ q = O("async function* () {}");
620
+ else if (P === "%AsyncGenerator%") {
621
+ var w = j("%AsyncGeneratorFunction%");
622
+ w && (q = w.prototype);
623
+ } else if (P === "%AsyncIteratorPrototype%") {
624
+ var B = j("%AsyncGenerator%");
625
+ B && F && (q = F(B.prototype));
626
+ }
627
+ return J[P] = q, q;
628
+ }, br = {
629
+ __proto__: null,
630
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
631
+ "%ArrayPrototype%": ["Array", "prototype"],
632
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
633
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
634
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
635
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
636
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
637
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
638
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
639
+ "%BooleanPrototype%": ["Boolean", "prototype"],
640
+ "%DataViewPrototype%": ["DataView", "prototype"],
641
+ "%DatePrototype%": ["Date", "prototype"],
642
+ "%ErrorPrototype%": ["Error", "prototype"],
643
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
644
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
645
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
646
+ "%FunctionPrototype%": ["Function", "prototype"],
647
+ "%Generator%": ["GeneratorFunction", "prototype"],
648
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
649
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
650
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
651
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
652
+ "%JSONParse%": ["JSON", "parse"],
653
+ "%JSONStringify%": ["JSON", "stringify"],
654
+ "%MapPrototype%": ["Map", "prototype"],
655
+ "%NumberPrototype%": ["Number", "prototype"],
656
+ "%ObjectPrototype%": ["Object", "prototype"],
657
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
658
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
659
+ "%PromisePrototype%": ["Promise", "prototype"],
660
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
661
+ "%Promise_all%": ["Promise", "all"],
662
+ "%Promise_reject%": ["Promise", "reject"],
663
+ "%Promise_resolve%": ["Promise", "resolve"],
664
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
665
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
666
+ "%RegExpPrototype%": ["RegExp", "prototype"],
667
+ "%SetPrototype%": ["Set", "prototype"],
668
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
669
+ "%StringPrototype%": ["String", "prototype"],
670
+ "%SymbolPrototype%": ["Symbol", "prototype"],
671
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
672
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
673
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
674
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
675
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
676
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
677
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
678
+ "%URIErrorPrototype%": ["URIError", "prototype"],
679
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
680
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
681
+ }, or = Dr(), z = /* @__PURE__ */ sn(), Sr = or.call(U, Array.prototype.concat), qr = or.call(D, Array.prototype.splice), wr = or.call(U, String.prototype.replace), yr = or.call(U, String.prototype.slice), d = or.call(U, RegExp.prototype.exec), m = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, $ = /\\(\\)?/g, R = function(P) {
682
+ var q = yr(P, 0, 1), w = yr(P, -1);
683
+ if (q === "%" && w !== "%")
684
+ throw new a("invalid intrinsic syntax, expected closing `%`");
685
+ if (w === "%" && q !== "%")
686
+ throw new a("invalid intrinsic syntax, expected opening `%`");
687
+ var B = [];
688
+ return wr(P, m, function(V, Y, K, X) {
689
+ B[B.length] = K ? wr(X, $, "$1") : Y || V;
690
+ }), B;
691
+ }, x = function(P, q) {
692
+ var w = P, B;
693
+ if (z(br, w) && (B = br[w], w = "%" + B[0] + "%"), z(J, w)) {
694
+ var V = J[w];
695
+ if (V === k && (V = Er(w)), typeof V > "u" && !q)
696
+ throw new u("intrinsic " + P + " exists, but is not available. Please file an issue!");
697
+ return {
698
+ alias: B,
699
+ name: w,
700
+ value: V
701
+ };
702
+ }
703
+ throw new a("intrinsic " + P + " does not exist!");
704
+ };
705
+ return Ze = function(P, q) {
706
+ if (typeof P != "string" || P.length === 0)
707
+ throw new u("intrinsic name must be a non-empty string");
708
+ if (arguments.length > 1 && typeof q != "boolean")
709
+ throw new u('"allowMissing" argument must be a boolean');
710
+ if (d(/^%?[^%]*%?$/, P) === null)
711
+ throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
712
+ var w = R(P), B = w.length > 0 ? w[0] : "", V = x("%" + B + "%", q), Y = V.name, K = V.value, X = !1, rr = V.alias;
713
+ rr && (B = rr[0], qr(w, Sr([0, 1], rr)));
714
+ for (var fr = 1, ir = !0; fr < w.length; fr += 1) {
715
+ var er = w[fr], sr = yr(er, 0, 1), cr = yr(er, -1);
716
+ if ((sr === '"' || sr === "'" || sr === "`" || cr === '"' || cr === "'" || cr === "`") && sr !== cr)
717
+ throw new a("property names with quotes must have matching quotes");
718
+ if ((er === "constructor" || !ir) && (X = !0), B += "." + er, Y = "%" + B + "%", z(J, Y))
719
+ K = J[Y];
720
+ else if (K != null) {
721
+ if (!(er in K)) {
722
+ if (!q)
723
+ throw new u("base intrinsic for " + P + " exists, but the property is not available.");
724
+ return;
725
+ }
726
+ if (I && fr + 1 >= w.length) {
727
+ var lr = I(K, er);
728
+ ir = !!lr, ir && "get" in lr && !("originalValue" in lr.get) ? K = lr.get : K = K[er];
729
+ } else
730
+ ir = z(K, er), K = K[er];
731
+ ir && !X && (J[Y] = K);
732
+ }
733
+ }
734
+ return K;
735
+ }, Ze;
736
+ }
737
+ var Qe, ao;
738
+ function pa() {
739
+ if (ao) return Qe;
740
+ ao = 1;
741
+ var r = /* @__PURE__ */ pr(), t = /* @__PURE__ */ rn(), e = /* @__PURE__ */ en()(), n = /* @__PURE__ */ Or(), o = /* @__PURE__ */ nr(), i = r("%Math.floor%");
742
+ return Qe = function(u, f) {
743
+ if (typeof u != "function")
744
+ throw new o("`fn` is not a function");
745
+ if (typeof f != "number" || f < 0 || f > 4294967295 || i(f) !== f)
746
+ throw new o("`length` must be a positive 32-bit integer");
747
+ var s = arguments.length > 2 && !!arguments[2], y = !0, p = !0;
748
+ if ("length" in u && n) {
749
+ var v = n(u, "length");
750
+ v && !v.configurable && (y = !1), v && !v.writable && (p = !1);
751
+ }
752
+ return (y || p || !s) && (e ? t(
753
+ /** @type {Parameters<define>[0]} */
754
+ u,
755
+ "length",
756
+ f,
757
+ !0,
758
+ !0
759
+ ) : t(
760
+ /** @type {Parameters<define>[0]} */
761
+ u,
762
+ "length",
763
+ f
764
+ )), u;
765
+ }, Qe;
766
+ }
767
+ var rt, uo;
768
+ function ya() {
769
+ if (uo) return rt;
770
+ uo = 1;
771
+ var r = Dr(), t = an(), e = hi();
772
+ return rt = function() {
773
+ return e(r, t, arguments);
774
+ }, rt;
775
+ }
776
+ var fo;
777
+ function Tr() {
778
+ return fo || (fo = 1, (function(r) {
779
+ var t = /* @__PURE__ */ pa(), e = /* @__PURE__ */ Xr(), n = un(), o = ya();
780
+ r.exports = function(a) {
781
+ var u = n(arguments), f = a.length - (arguments.length - 1);
782
+ return t(
783
+ u,
784
+ 1 + (f > 0 ? f : 0),
785
+ !0
786
+ );
787
+ }, e ? e(r.exports, "apply", { value: o }) : r.exports.apply = o;
788
+ })(Oe)), Oe.exports;
789
+ }
790
+ var et, so;
791
+ function Q() {
792
+ if (so) return et;
793
+ so = 1;
794
+ var r = /* @__PURE__ */ pr(), t = un(), e = t([r("%String.prototype.indexOf%")]);
795
+ return et = function(o, i) {
796
+ var a = (
797
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
798
+ r(o, !!i)
799
+ );
800
+ return typeof a == "function" && e(o, ".prototype.") > -1 ? t(
801
+ /** @type {const} */
802
+ [a]
803
+ ) : a;
804
+ }, et;
805
+ }
806
+ var tt, co;
807
+ function di() {
808
+ if (co) return tt;
809
+ co = 1;
810
+ var r = Zt(), t = Zr()(), e = /* @__PURE__ */ Q(), n = /* @__PURE__ */ tn(), o = e("Array.prototype.push"), i = e("Object.prototype.propertyIsEnumerable"), a = t ? n.getOwnPropertySymbols : null;
811
+ return tt = function(f, s) {
812
+ if (f == null)
813
+ throw new TypeError("target must be an object");
814
+ var y = n(f);
815
+ if (arguments.length === 1)
816
+ return y;
817
+ for (var p = 1; p < arguments.length; ++p) {
818
+ var v = n(arguments[p]), h = r(v), g = t && (n.getOwnPropertySymbols || a);
819
+ if (g)
820
+ for (var S = g(v), A = 0; A < S.length; ++A) {
821
+ var O = S[A];
822
+ i(v, O) && o(h, O);
823
+ }
824
+ for (var I = 0; I < h.length; ++I) {
825
+ var b = h[I];
826
+ if (i(v, b)) {
827
+ var T = v[b];
828
+ y[b] = T;
829
+ }
830
+ }
831
+ }
832
+ return y;
833
+ }, tt;
834
+ }
835
+ var nt, lo;
836
+ function gi() {
837
+ if (lo) return nt;
838
+ lo = 1;
839
+ var r = di(), t = function() {
840
+ if (!Object.assign)
841
+ return !1;
842
+ for (var n = "abcdefghijklmnopqrst", o = n.split(""), i = {}, a = 0; a < o.length; ++a)
843
+ i[o[a]] = o[a];
844
+ var u = Object.assign({}, i), f = "";
845
+ for (var s in u)
846
+ f += s;
847
+ return n !== f;
848
+ }, e = function() {
849
+ if (!Object.assign || !Object.preventExtensions)
850
+ return !1;
851
+ var n = Object.preventExtensions({ 1: 2 });
852
+ try {
853
+ Object.assign(n, "xy");
854
+ } catch {
855
+ return n[1] === "y";
856
+ }
857
+ return !1;
858
+ };
859
+ return nt = function() {
860
+ return !Object.assign || t() || e() ? r : Object.assign;
861
+ }, nt;
862
+ }
863
+ var ot, po;
864
+ function va() {
865
+ if (po) return ot;
866
+ po = 1;
867
+ var r = Pr(), t = gi();
868
+ return ot = function() {
869
+ var n = t();
870
+ return r(
871
+ Object,
872
+ { assign: n },
873
+ { assign: function() {
874
+ return Object.assign !== n;
875
+ } }
876
+ ), n;
877
+ }, ot;
878
+ }
879
+ var it, yo;
880
+ function ha() {
881
+ if (yo) return it;
882
+ yo = 1;
883
+ var r = Pr(), t = Tr(), e = di(), n = gi(), o = va(), i = t.apply(n()), a = function(f, s) {
884
+ return i(Object, arguments);
885
+ };
886
+ return r(a, {
887
+ getPolyfill: n,
888
+ implementation: e,
889
+ shim: o
890
+ }), it = a, it;
891
+ }
892
+ var at, vo;
893
+ function mi() {
894
+ if (vo) return at;
895
+ vo = 1;
896
+ var r = /* @__PURE__ */ pr(), t = Tr(), e = t(r("String.prototype.indexOf"));
897
+ return at = function(o, i) {
898
+ var a = r(o, !!i);
899
+ return typeof a == "function" && e(o, ".prototype.") > -1 ? t(a) : a;
900
+ }, at;
901
+ }
902
+ var ut, ho;
903
+ function da() {
904
+ if (ho) return ut;
905
+ ho = 1;
906
+ var r = function() {
907
+ return typeof (function() {
908
+ }).name == "string";
909
+ }, t = Object.getOwnPropertyDescriptor;
910
+ if (t)
911
+ try {
912
+ t([], "length");
913
+ } catch {
914
+ t = null;
915
+ }
916
+ r.functionsHaveConfigurableNames = function() {
917
+ if (!r() || !t)
918
+ return !1;
919
+ var o = t(function() {
920
+ }, "name");
921
+ return !!o && !!o.configurable;
922
+ };
923
+ var e = Function.prototype.bind;
924
+ return r.boundFunctionsHaveNames = function() {
925
+ return r() && typeof e == "function" && (function() {
926
+ }).bind().name !== "";
927
+ }, ut = r, ut;
928
+ }
929
+ var ft, go;
930
+ function ga() {
931
+ if (go) return ft;
932
+ go = 1;
933
+ var r = /* @__PURE__ */ rn(), t = /* @__PURE__ */ en()(), e = da().functionsHaveConfigurableNames(), n = /* @__PURE__ */ nr();
934
+ return ft = function(i, a) {
935
+ if (typeof i != "function")
936
+ throw new n("`fn` is not a function");
937
+ var u = arguments.length > 2 && !!arguments[2];
938
+ return (!u || e) && (t ? r(
939
+ /** @type {Parameters<define>[0]} */
940
+ i,
941
+ "name",
942
+ a,
943
+ !0,
944
+ !0
945
+ ) : r(
946
+ /** @type {Parameters<define>[0]} */
947
+ i,
948
+ "name",
949
+ a
950
+ )), i;
951
+ }, ft;
952
+ }
953
+ var st, mo;
954
+ function bi() {
955
+ if (mo) return st;
956
+ mo = 1;
957
+ var r = ga(), t = /* @__PURE__ */ nr(), e = Object;
958
+ return st = r(function() {
959
+ if (this == null || this !== e(this))
960
+ throw new t("RegExp.prototype.flags getter called on non-object");
961
+ var o = "";
962
+ return this.hasIndices && (o += "d"), this.global && (o += "g"), this.ignoreCase && (o += "i"), this.multiline && (o += "m"), this.dotAll && (o += "s"), this.unicode && (o += "u"), this.unicodeSets && (o += "v"), this.sticky && (o += "y"), o;
963
+ }, "get flags", !0), st;
964
+ }
965
+ var ct, bo;
966
+ function Si() {
967
+ if (bo) return ct;
968
+ bo = 1;
969
+ var r = bi(), t = Pr().supportsDescriptors, e = Object.getOwnPropertyDescriptor;
970
+ return ct = function() {
971
+ if (t && /a/mig.flags === "gim") {
972
+ var o = e(RegExp.prototype, "flags");
973
+ if (o && typeof o.get == "function" && "dotAll" in RegExp.prototype && "hasIndices" in RegExp.prototype) {
974
+ var i = "", a = {};
975
+ if (Object.defineProperty(a, "hasIndices", {
976
+ get: function() {
977
+ i += "d";
978
+ }
979
+ }), Object.defineProperty(a, "sticky", {
980
+ get: function() {
981
+ i += "y";
982
+ }
983
+ }), o.get.call(a), i === "dy")
984
+ return o.get;
985
+ }
986
+ }
987
+ return r;
988
+ }, ct;
989
+ }
990
+ var lt, So;
991
+ function ma() {
992
+ if (So) return lt;
993
+ So = 1;
994
+ var r = Pr().supportsDescriptors, t = Si(), e = /* @__PURE__ */ Or(), n = Object.defineProperty, o = /* @__PURE__ */ pi(), i = fn(), a = /a/;
995
+ return lt = function() {
996
+ if (!r || !i)
997
+ throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
998
+ var f = t(), s = i(a), y = e(s, "flags");
999
+ return (!y || y.get !== f) && n(s, "flags", {
1000
+ configurable: !0,
1001
+ enumerable: !1,
1002
+ get: f
1003
+ }), f;
1004
+ }, lt;
1005
+ }
1006
+ var pt, wo;
1007
+ function ba() {
1008
+ if (wo) return pt;
1009
+ wo = 1;
1010
+ var r = Pr(), t = Tr(), e = bi(), n = Si(), o = ma(), i = t(n());
1011
+ return r(i, {
1012
+ getPolyfill: n,
1013
+ implementation: e,
1014
+ shim: o
1015
+ }), pt = i, pt;
1016
+ }
1017
+ var Cr = { exports: {} }, yt, Ao;
1018
+ function Ir() {
1019
+ if (Ao) return yt;
1020
+ Ao = 1;
1021
+ var r = Zr();
1022
+ return yt = function() {
1023
+ return r() && !!Symbol.toStringTag;
1024
+ }, yt;
1025
+ }
1026
+ var vt, Oo;
1027
+ function wi() {
1028
+ if (Oo) return vt;
1029
+ Oo = 1;
1030
+ var r = Ir()(), t = /* @__PURE__ */ Q(), e = t("Object.prototype.toString"), n = function(u) {
1031
+ return r && u && typeof u == "object" && Symbol.toStringTag in u ? !1 : e(u) === "[object Arguments]";
1032
+ }, o = function(u) {
1033
+ return n(u) ? !0 : u !== null && typeof u == "object" && "length" in u && typeof u.length == "number" && u.length >= 0 && e(u) !== "[object Array]" && "callee" in u && e(u.callee) === "[object Function]";
1034
+ }, i = (function() {
1035
+ return n(arguments);
1036
+ })();
1037
+ return n.isLegacyArguments = o, vt = i ? n : o, vt;
1038
+ }
1039
+ const Sa = {}, wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1040
+ __proto__: null,
1041
+ default: Sa
1042
+ }, Symbol.toStringTag, { value: "Module" })), Aa = /* @__PURE__ */ Ji(wa);
1043
+ var ht, Po;
1044
+ function Qr() {
1045
+ if (Po) return ht;
1046
+ Po = 1;
1047
+ var r = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, e = r && t && typeof t.get == "function" ? t.get : null, n = r && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, a = o && i && typeof i.get == "function" ? i.get : null, u = o && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype, s = f ? WeakMap.prototype.has : null, y = typeof WeakSet == "function" && WeakSet.prototype, p = y ? WeakSet.prototype.has : null, v = typeof WeakRef == "function" && WeakRef.prototype, h = v ? WeakRef.prototype.deref : null, g = Boolean.prototype.valueOf, S = Object.prototype.toString, A = Function.prototype.toString, O = String.prototype.match, I = String.prototype.slice, b = String.prototype.replace, T = String.prototype.toUpperCase, H = String.prototype.toLowerCase, W = RegExp.prototype.test, F = Array.prototype.concat, C = Array.prototype.join, E = Array.prototype.slice, D = Math.floor, U = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, k = Object.getOwnPropertySymbols, G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, J = typeof Symbol == "function" && typeof Symbol.iterator == "object", ur = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === J || !0) ? Symbol.toStringTag : null, Er = Object.prototype.propertyIsEnumerable, br = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(c) {
1048
+ return c.__proto__;
1049
+ } : null);
1050
+ function or(c, l) {
1051
+ if (c === 1 / 0 || c === -1 / 0 || c !== c || c && c > -1e3 && c < 1e3 || W.call(/e/, l))
1052
+ return l;
1053
+ var M = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1054
+ if (typeof c == "number") {
1055
+ var N = c < 0 ? -D(-c) : D(c);
1056
+ if (N !== c) {
1057
+ var L = String(N), _ = I.call(l, L.length + 1);
1058
+ return b.call(L, M, "$&_") + "." + b.call(b.call(_, /([0-9]{3})/g, "$&_"), /_$/, "");
1059
+ }
1060
+ }
1061
+ return b.call(l, M, "$&_");
1062
+ }
1063
+ var z = Aa, Sr = z.custom, qr = V(Sr) ? Sr : null, wr = {
1064
+ __proto__: null,
1065
+ double: '"',
1066
+ single: "'"
1067
+ }, yr = {
1068
+ __proto__: null,
1069
+ double: /(["\\])/g,
1070
+ single: /(['\\])/g
1071
+ };
1072
+ ht = function c(l, M, N, L) {
1073
+ var _ = M || {};
1074
+ if (X(_, "quoteStyle") && !X(wr, _.quoteStyle))
1075
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
1076
+ if (X(_, "maxStringLength") && (typeof _.maxStringLength == "number" ? _.maxStringLength < 0 && _.maxStringLength !== 1 / 0 : _.maxStringLength !== null))
1077
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1078
+ var dr = X(_, "customInspect") ? _.customInspect : !0;
1079
+ if (typeof dr != "boolean" && dr !== "symbol")
1080
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1081
+ if (X(_, "indent") && _.indent !== null && _.indent !== " " && !(parseInt(_.indent, 10) === _.indent && _.indent > 0))
1082
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1083
+ if (X(_, "numericSeparator") && typeof _.numericSeparator != "boolean")
1084
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1085
+ var Ar = _.numericSeparator;
1086
+ if (typeof l > "u")
1087
+ return "undefined";
1088
+ if (l === null)
1089
+ return "null";
1090
+ if (typeof l == "boolean")
1091
+ return l ? "true" : "false";
1092
+ if (typeof l == "string")
1093
+ return Rr(l, _);
1094
+ if (typeof l == "number") {
1095
+ if (l === 0)
1096
+ return 1 / 0 / l > 0 ? "0" : "-0";
1097
+ var tr = String(l);
1098
+ return Ar ? or(l, tr) : tr;
1099
+ }
1100
+ if (typeof l == "bigint") {
1101
+ var gr = String(l) + "n";
1102
+ return Ar ? or(l, gr) : gr;
1103
+ }
1104
+ var oe = typeof _.depth > "u" ? 5 : _.depth;
1105
+ if (typeof N > "u" && (N = 0), N >= oe && oe > 0 && typeof l == "object")
1106
+ return R(l) ? "[Array]" : "[Object]";
1107
+ var $r = Li(_, N);
1108
+ if (typeof L > "u")
1109
+ L = [];
1110
+ else if (ir(L, l) >= 0)
1111
+ return "[Circular]";
1112
+ function ar(Br, Lr, Gi) {
1113
+ if (Lr && (L = E.call(L), L.push(Lr)), Gi) {
1114
+ var bn = {
1115
+ depth: _.depth
1116
+ };
1117
+ return X(_, "quoteStyle") && (bn.quoteStyle = _.quoteStyle), c(Br, bn, N + 1, L);
1118
+ }
1119
+ return c(Br, _, N + 1, L);
1120
+ }
1121
+ if (typeof l == "function" && !j(l)) {
1122
+ var pn = fr(l), yn = kr(l, ar);
1123
+ return "[Function" + (pn ? ": " + pn : " (anonymous)") + "]" + (yn.length > 0 ? " { " + C.call(yn, ", ") + " }" : "");
1124
+ }
1125
+ if (V(l)) {
1126
+ var vn = J ? b.call(String(l), /^(Symbol\(.*\))_[^)]*$/, "$1") : G.call(l);
1127
+ return typeof l == "object" && !J ? hr(vn) : vn;
1128
+ }
1129
+ if (vr(l)) {
1130
+ for (var Mr = "<" + H.call(String(l.nodeName)), ie = l.attributes || [], Nr = 0; Nr < ie.length; Nr++)
1131
+ Mr += " " + ie[Nr].name + "=" + d(m(ie[Nr].value), "double", _);
1132
+ return Mr += ">", l.childNodes && l.childNodes.length && (Mr += "..."), Mr += "</" + H.call(String(l.nodeName)) + ">", Mr;
1133
+ }
1134
+ if (R(l)) {
1135
+ if (l.length === 0)
1136
+ return "[]";
1137
+ var ae = kr(l, ar);
1138
+ return $r && !Ni(ae) ? "[" + ne(ae, $r) + "]" : "[ " + C.call(ae, ", ") + " ]";
1139
+ }
1140
+ if (P(l)) {
1141
+ var ue = kr(l, ar);
1142
+ return !("cause" in Error.prototype) && "cause" in l && !Er.call(l, "cause") ? "{ [" + String(l) + "] " + C.call(F.call("[cause]: " + ar(l.cause), ue), ", ") + " }" : ue.length === 0 ? "[" + String(l) + "]" : "{ [" + String(l) + "] " + C.call(ue, ", ") + " }";
1143
+ }
1144
+ if (typeof l == "object" && dr) {
1145
+ if (qr && typeof l[qr] == "function" && z)
1146
+ return z(l, { depth: oe - N });
1147
+ if (dr !== "symbol" && typeof l.inspect == "function")
1148
+ return l.inspect();
1149
+ }
1150
+ if (er(l)) {
1151
+ var hn = [];
1152
+ return n && n.call(l, function(Br, Lr) {
1153
+ hn.push(ar(Lr, l, !0) + " => " + ar(Br, l));
1154
+ }), ln("Map", e.call(l), hn, $r);
1155
+ }
1156
+ if (lr(l)) {
1157
+ var dn = [];
1158
+ return u && u.call(l, function(Br) {
1159
+ dn.push(ar(Br, l));
1160
+ }), ln("Set", a.call(l), dn, $r);
1161
+ }
1162
+ if (sr(l))
1163
+ return te("WeakMap");
1164
+ if (Wr(l))
1165
+ return te("WeakSet");
1166
+ if (cr(l))
1167
+ return te("WeakRef");
1168
+ if (w(l))
1169
+ return hr(ar(Number(l)));
1170
+ if (Y(l))
1171
+ return hr(ar(U.call(l)));
1172
+ if (B(l))
1173
+ return hr(g.call(l));
1174
+ if (q(l))
1175
+ return hr(ar(String(l)));
1176
+ if (typeof window < "u" && l === window)
1177
+ return "{ [object Window] }";
1178
+ if (typeof globalThis < "u" && l === globalThis || typeof Jr < "u" && l === Jr)
1179
+ return "{ [object globalThis] }";
1180
+ if (!x(l) && !j(l)) {
1181
+ var fe = kr(l, ar), gn = br ? br(l) === Object.prototype : l instanceof Object || l.constructor === Object, se = l instanceof Object ? "" : "null prototype", mn = !gn && ur && Object(l) === l && ur in l ? I.call(rr(l), 8, -1) : se ? "Object" : "", Ui = gn || typeof l.constructor != "function" ? "" : l.constructor.name ? l.constructor.name + " " : "", ce = Ui + (mn || se ? "[" + C.call(F.call([], mn || [], se || []), ": ") + "] " : "");
1182
+ return fe.length === 0 ? ce + "{}" : $r ? ce + "{" + ne(fe, $r) + "}" : ce + "{ " + C.call(fe, ", ") + " }";
1183
+ }
1184
+ return String(l);
1185
+ };
1186
+ function d(c, l, M) {
1187
+ var N = M.quoteStyle || l, L = wr[N];
1188
+ return L + c + L;
1189
+ }
1190
+ function m(c) {
1191
+ return b.call(String(c), /"/g, "&quot;");
1192
+ }
1193
+ function $(c) {
1194
+ return !ur || !(typeof c == "object" && (ur in c || typeof c[ur] < "u"));
1195
+ }
1196
+ function R(c) {
1197
+ return rr(c) === "[object Array]" && $(c);
1198
+ }
1199
+ function x(c) {
1200
+ return rr(c) === "[object Date]" && $(c);
1201
+ }
1202
+ function j(c) {
1203
+ return rr(c) === "[object RegExp]" && $(c);
1204
+ }
1205
+ function P(c) {
1206
+ return rr(c) === "[object Error]" && $(c);
1207
+ }
1208
+ function q(c) {
1209
+ return rr(c) === "[object String]" && $(c);
1210
+ }
1211
+ function w(c) {
1212
+ return rr(c) === "[object Number]" && $(c);
1213
+ }
1214
+ function B(c) {
1215
+ return rr(c) === "[object Boolean]" && $(c);
1216
+ }
1217
+ function V(c) {
1218
+ if (J)
1219
+ return c && typeof c == "object" && c instanceof Symbol;
1220
+ if (typeof c == "symbol")
1221
+ return !0;
1222
+ if (!c || typeof c != "object" || !G)
1223
+ return !1;
1224
+ try {
1225
+ return G.call(c), !0;
1226
+ } catch {
1227
+ }
1228
+ return !1;
1229
+ }
1230
+ function Y(c) {
1231
+ if (!c || typeof c != "object" || !U)
1232
+ return !1;
1233
+ try {
1234
+ return U.call(c), !0;
1235
+ } catch {
1236
+ }
1237
+ return !1;
1238
+ }
1239
+ var K = Object.prototype.hasOwnProperty || function(c) {
1240
+ return c in this;
1241
+ };
1242
+ function X(c, l) {
1243
+ return K.call(c, l);
1244
+ }
1245
+ function rr(c) {
1246
+ return S.call(c);
1247
+ }
1248
+ function fr(c) {
1249
+ if (c.name)
1250
+ return c.name;
1251
+ var l = O.call(A.call(c), /^function\s*([\w$]+)/);
1252
+ return l ? l[1] : null;
1253
+ }
1254
+ function ir(c, l) {
1255
+ if (c.indexOf)
1256
+ return c.indexOf(l);
1257
+ for (var M = 0, N = c.length; M < N; M++)
1258
+ if (c[M] === l)
1259
+ return M;
1260
+ return -1;
1261
+ }
1262
+ function er(c) {
1263
+ if (!e || !c || typeof c != "object")
1264
+ return !1;
1265
+ try {
1266
+ e.call(c);
1267
+ try {
1268
+ a.call(c);
1269
+ } catch {
1270
+ return !0;
1271
+ }
1272
+ return c instanceof Map;
1273
+ } catch {
1274
+ }
1275
+ return !1;
1276
+ }
1277
+ function sr(c) {
1278
+ if (!s || !c || typeof c != "object")
1279
+ return !1;
1280
+ try {
1281
+ s.call(c, s);
1282
+ try {
1283
+ p.call(c, p);
1284
+ } catch {
1285
+ return !0;
1286
+ }
1287
+ return c instanceof WeakMap;
1288
+ } catch {
1289
+ }
1290
+ return !1;
1291
+ }
1292
+ function cr(c) {
1293
+ if (!h || !c || typeof c != "object")
1294
+ return !1;
1295
+ try {
1296
+ return h.call(c), !0;
1297
+ } catch {
1298
+ }
1299
+ return !1;
1300
+ }
1301
+ function lr(c) {
1302
+ if (!a || !c || typeof c != "object")
1303
+ return !1;
1304
+ try {
1305
+ a.call(c);
1306
+ try {
1307
+ e.call(c);
1308
+ } catch {
1309
+ return !0;
1310
+ }
1311
+ return c instanceof Set;
1312
+ } catch {
1313
+ }
1314
+ return !1;
1315
+ }
1316
+ function Wr(c) {
1317
+ if (!p || !c || typeof c != "object")
1318
+ return !1;
1319
+ try {
1320
+ p.call(c, p);
1321
+ try {
1322
+ s.call(c, s);
1323
+ } catch {
1324
+ return !0;
1325
+ }
1326
+ return c instanceof WeakSet;
1327
+ } catch {
1328
+ }
1329
+ return !1;
1330
+ }
1331
+ function vr(c) {
1332
+ return !c || typeof c != "object" ? !1 : typeof HTMLElement < "u" && c instanceof HTMLElement ? !0 : typeof c.nodeName == "string" && typeof c.getAttribute == "function";
1333
+ }
1334
+ function Rr(c, l) {
1335
+ if (c.length > l.maxStringLength) {
1336
+ var M = c.length - l.maxStringLength, N = "... " + M + " more character" + (M > 1 ? "s" : "");
1337
+ return Rr(I.call(c, 0, l.maxStringLength), l) + N;
1338
+ }
1339
+ var L = yr[l.quoteStyle || "single"];
1340
+ L.lastIndex = 0;
1341
+ var _ = b.call(b.call(c, L, "\\$1"), /[\x00-\x1f]/g, jr);
1342
+ return d(_, "single", l);
1343
+ }
1344
+ function jr(c) {
1345
+ var l = c.charCodeAt(0), M = {
1346
+ 8: "b",
1347
+ 9: "t",
1348
+ 10: "n",
1349
+ 12: "f",
1350
+ 13: "r"
1351
+ }[l];
1352
+ return M ? "\\" + M : "\\x" + (l < 16 ? "0" : "") + T.call(l.toString(16));
1353
+ }
1354
+ function hr(c) {
1355
+ return "Object(" + c + ")";
1356
+ }
1357
+ function te(c) {
1358
+ return c + " { ? }";
1359
+ }
1360
+ function ln(c, l, M, N) {
1361
+ var L = N ? ne(M, N) : C.call(M, ", ");
1362
+ return c + " (" + l + ") {" + L + "}";
1363
+ }
1364
+ function Ni(c) {
1365
+ for (var l = 0; l < c.length; l++)
1366
+ if (ir(c[l], `
1367
+ `) >= 0)
1368
+ return !1;
1369
+ return !0;
1370
+ }
1371
+ function Li(c, l) {
1372
+ var M;
1373
+ if (c.indent === " ")
1374
+ M = " ";
1375
+ else if (typeof c.indent == "number" && c.indent > 0)
1376
+ M = C.call(Array(c.indent + 1), " ");
1377
+ else
1378
+ return null;
1379
+ return {
1380
+ base: M,
1381
+ prev: C.call(Array(l + 1), M)
1382
+ };
1383
+ }
1384
+ function ne(c, l) {
1385
+ if (c.length === 0)
1386
+ return "";
1387
+ var M = `
1388
+ ` + l.prev + l.base;
1389
+ return M + C.call(c, "," + M) + `
1390
+ ` + l.prev;
1391
+ }
1392
+ function kr(c, l) {
1393
+ var M = R(c), N = [];
1394
+ if (M) {
1395
+ N.length = c.length;
1396
+ for (var L = 0; L < c.length; L++)
1397
+ N[L] = X(c, L) ? l(c[L], c) : "";
1398
+ }
1399
+ var _ = typeof k == "function" ? k(c) : [], dr;
1400
+ if (J) {
1401
+ dr = {};
1402
+ for (var Ar = 0; Ar < _.length; Ar++)
1403
+ dr["$" + _[Ar]] = _[Ar];
1404
+ }
1405
+ for (var tr in c)
1406
+ X(c, tr) && (M && String(Number(tr)) === tr && tr < c.length || J && dr["$" + tr] instanceof Symbol || (W.call(/[^\w$]/, tr) ? N.push(l(tr, c) + ": " + l(c[tr], c)) : N.push(tr + ": " + l(c[tr], c))));
1407
+ if (typeof k == "function")
1408
+ for (var gr = 0; gr < _.length; gr++)
1409
+ Er.call(c, _[gr]) && N.push("[" + l(_[gr]) + "]: " + l(c[_[gr]], c));
1410
+ return N;
1411
+ }
1412
+ return ht;
1413
+ }
1414
+ var dt, Io;
1415
+ function Oa() {
1416
+ if (Io) return dt;
1417
+ Io = 1;
1418
+ var r = /* @__PURE__ */ Qr(), t = /* @__PURE__ */ nr(), e = function(u, f, s) {
1419
+ for (var y = u, p; (p = y.next) != null; y = p)
1420
+ if (p.key === f)
1421
+ return y.next = p.next, s || (p.next = /** @type {NonNullable<typeof list.next>} */
1422
+ u.next, u.next = p), p;
1423
+ }, n = function(u, f) {
1424
+ if (u) {
1425
+ var s = e(u, f);
1426
+ return s && s.value;
1427
+ }
1428
+ }, o = function(u, f, s) {
1429
+ var y = e(u, f);
1430
+ y ? y.value = s : u.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
1431
+ {
1432
+ // eslint-disable-line no-param-reassign, no-extra-parens
1433
+ key: f,
1434
+ next: u.next,
1435
+ value: s
1436
+ };
1437
+ }, i = function(u, f) {
1438
+ return u ? !!e(u, f) : !1;
1439
+ }, a = function(u, f) {
1440
+ if (u)
1441
+ return e(u, f, !0);
1442
+ };
1443
+ return dt = function() {
1444
+ var f, s = {
1445
+ assert: function(y) {
1446
+ if (!s.has(y))
1447
+ throw new t("Side channel does not contain " + r(y));
1448
+ },
1449
+ delete: function(y) {
1450
+ var p = f && f.next, v = a(f, y);
1451
+ return v && p && p === v && (f = void 0), !!v;
1452
+ },
1453
+ get: function(y) {
1454
+ return n(f, y);
1455
+ },
1456
+ has: function(y) {
1457
+ return i(f, y);
1458
+ },
1459
+ set: function(y, p) {
1460
+ f || (f = {
1461
+ next: void 0
1462
+ }), o(
1463
+ /** @type {NonNullable<typeof $o>} */
1464
+ f,
1465
+ y,
1466
+ p
1467
+ );
1468
+ }
1469
+ };
1470
+ return s;
1471
+ }, dt;
1472
+ }
1473
+ var gt, Eo;
1474
+ function Ai() {
1475
+ if (Eo) return gt;
1476
+ Eo = 1;
1477
+ var r = /* @__PURE__ */ pr(), t = /* @__PURE__ */ Q(), e = /* @__PURE__ */ Qr(), n = /* @__PURE__ */ nr(), o = r("%Map%", !0), i = t("Map.prototype.get", !0), a = t("Map.prototype.set", !0), u = t("Map.prototype.has", !0), f = t("Map.prototype.delete", !0), s = t("Map.prototype.size", !0);
1478
+ return gt = !!o && /** @type {Exclude<import('.'), false>} */
1479
+ function() {
1480
+ var p, v = {
1481
+ assert: function(h) {
1482
+ if (!v.has(h))
1483
+ throw new n("Side channel does not contain " + e(h));
1484
+ },
1485
+ delete: function(h) {
1486
+ if (p) {
1487
+ var g = f(p, h);
1488
+ return s(p) === 0 && (p = void 0), g;
1489
+ }
1490
+ return !1;
1491
+ },
1492
+ get: function(h) {
1493
+ if (p)
1494
+ return i(p, h);
1495
+ },
1496
+ has: function(h) {
1497
+ return p ? u(p, h) : !1;
1498
+ },
1499
+ set: function(h, g) {
1500
+ p || (p = new o()), a(p, h, g);
1501
+ }
1502
+ };
1503
+ return v;
1504
+ }, gt;
1505
+ }
1506
+ var mt, qo;
1507
+ function Pa() {
1508
+ if (qo) return mt;
1509
+ qo = 1;
1510
+ var r = /* @__PURE__ */ pr(), t = /* @__PURE__ */ Q(), e = /* @__PURE__ */ Qr(), n = Ai(), o = /* @__PURE__ */ nr(), i = r("%WeakMap%", !0), a = t("WeakMap.prototype.get", !0), u = t("WeakMap.prototype.set", !0), f = t("WeakMap.prototype.has", !0), s = t("WeakMap.prototype.delete", !0);
1511
+ return mt = i ? (
1512
+ /** @type {Exclude<import('.'), false>} */
1513
+ function() {
1514
+ var p, v, h = {
1515
+ assert: function(g) {
1516
+ if (!h.has(g))
1517
+ throw new o("Side channel does not contain " + e(g));
1518
+ },
1519
+ delete: function(g) {
1520
+ if (i && g && (typeof g == "object" || typeof g == "function")) {
1521
+ if (p)
1522
+ return s(p, g);
1523
+ } else if (n && v)
1524
+ return v.delete(g);
1525
+ return !1;
1526
+ },
1527
+ get: function(g) {
1528
+ return i && g && (typeof g == "object" || typeof g == "function") && p ? a(p, g) : v && v.get(g);
1529
+ },
1530
+ has: function(g) {
1531
+ return i && g && (typeof g == "object" || typeof g == "function") && p ? f(p, g) : !!v && v.has(g);
1532
+ },
1533
+ set: function(g, S) {
1534
+ i && g && (typeof g == "object" || typeof g == "function") ? (p || (p = new i()), u(p, g, S)) : n && (v || (v = n()), v.set(g, S));
1535
+ }
1536
+ };
1537
+ return h;
1538
+ }
1539
+ ) : n, mt;
1540
+ }
1541
+ var bt, Ro;
1542
+ function Oi() {
1543
+ if (Ro) return bt;
1544
+ Ro = 1;
1545
+ var r = /* @__PURE__ */ nr(), t = /* @__PURE__ */ Qr(), e = Oa(), n = Ai(), o = Pa(), i = o || n || e;
1546
+ return bt = function() {
1547
+ var u, f = {
1548
+ assert: function(s) {
1549
+ if (!f.has(s))
1550
+ throw new r("Side channel does not contain " + t(s));
1551
+ },
1552
+ delete: function(s) {
1553
+ return !!u && u.delete(s);
1554
+ },
1555
+ get: function(s) {
1556
+ return u && u.get(s);
1557
+ },
1558
+ has: function(s) {
1559
+ return !!u && u.has(s);
1560
+ },
1561
+ set: function(s, y) {
1562
+ u || (u = i()), u.set(s, y);
1563
+ }
1564
+ };
1565
+ return f;
1566
+ }, bt;
1567
+ }
1568
+ var St, $o;
1569
+ function Ia() {
1570
+ if ($o) return St;
1571
+ $o = 1;
1572
+ var r = /* @__PURE__ */ sn(), t = Oi()(), e = /* @__PURE__ */ nr(), n = {
1573
+ assert: function(o, i) {
1574
+ if (!o || typeof o != "object" && typeof o != "function")
1575
+ throw new e("`O` is not an object");
1576
+ if (typeof i != "string")
1577
+ throw new e("`slot` must be a string");
1578
+ if (t.assert(o), !n.has(o, i))
1579
+ throw new e("`" + i + "` is not present on `O`");
1580
+ },
1581
+ get: function(o, i) {
1582
+ if (!o || typeof o != "object" && typeof o != "function")
1583
+ throw new e("`O` is not an object");
1584
+ if (typeof i != "string")
1585
+ throw new e("`slot` must be a string");
1586
+ var a = t.get(o);
1587
+ return a && a[
1588
+ /** @type {SaltedInternalSlot} */
1589
+ "$" + i
1590
+ ];
1591
+ },
1592
+ has: function(o, i) {
1593
+ if (!o || typeof o != "object" && typeof o != "function")
1594
+ throw new e("`O` is not an object");
1595
+ if (typeof i != "string")
1596
+ throw new e("`slot` must be a string");
1597
+ var a = t.get(o);
1598
+ return !!a && r(
1599
+ a,
1600
+ /** @type {SaltedInternalSlot} */
1601
+ "$" + i
1602
+ );
1603
+ },
1604
+ set: function(o, i, a) {
1605
+ if (!o || typeof o != "object" && typeof o != "function")
1606
+ throw new e("`O` is not an object");
1607
+ if (typeof i != "string")
1608
+ throw new e("`slot` must be a string");
1609
+ var u = t.get(o);
1610
+ u || (u = {}, t.set(o, u)), u[
1611
+ /** @type {SaltedInternalSlot} */
1612
+ "$" + i
1613
+ ] = a;
1614
+ }
1615
+ };
1616
+ return Object.freeze && Object.freeze(n), St = n, St;
1617
+ }
1618
+ var wt, Bo;
1619
+ function Ea() {
1620
+ if (Bo) return wt;
1621
+ Bo = 1;
1622
+ var r = Ia(), t = /* @__PURE__ */ Qt(), e = typeof StopIteration == "object" ? StopIteration : null;
1623
+ return wt = function(o) {
1624
+ if (!e)
1625
+ throw new t("this environment lacks StopIteration");
1626
+ r.set(o, "[[Done]]", !1);
1627
+ var i = {
1628
+ next: (
1629
+ /** @type {() => IteratorResult<T>} */
1630
+ function() {
1631
+ var u = (
1632
+ /** @type {typeof origIterator} */
1633
+ r.get(this, "[[Iterator]]")
1634
+ ), f = !!r.get(u, "[[Done]]");
1635
+ try {
1636
+ return {
1637
+ done: f,
1638
+ // eslint-disable-next-line no-extra-parens
1639
+ value: f ? void 0 : (
1640
+ /** @type {T} */
1641
+ u.next()
1642
+ )
1643
+ };
1644
+ } catch (s) {
1645
+ if (r.set(u, "[[Done]]", !0), s !== e)
1646
+ throw s;
1647
+ return {
1648
+ done: !0,
1649
+ value: void 0
1650
+ };
1651
+ }
1652
+ }
1653
+ )
1654
+ };
1655
+ return r.set(i, "[[Iterator]]", o), i;
1656
+ }, wt;
1657
+ }
1658
+ var At, _o;
1659
+ function Pi() {
1660
+ if (_o) return At;
1661
+ _o = 1;
1662
+ var r = {}.toString;
1663
+ return At = Array.isArray || function(t) {
1664
+ return r.call(t) == "[object Array]";
1665
+ }, At;
1666
+ }
1667
+ var Ot, xo;
1668
+ function Ii() {
1669
+ if (xo) return Ot;
1670
+ xo = 1;
1671
+ var r = /* @__PURE__ */ Q(), t = r("String.prototype.valueOf"), e = function(u) {
1672
+ try {
1673
+ return t(u), !0;
1674
+ } catch {
1675
+ return !1;
1676
+ }
1677
+ }, n = r("Object.prototype.toString"), o = "[object String]", i = Ir()();
1678
+ return Ot = function(u) {
1679
+ return typeof u == "string" ? !0 : !u || typeof u != "object" ? !1 : i ? e(u) : n(u) === o;
1680
+ }, Ot;
1681
+ }
1682
+ var Pt, To;
1683
+ function Ei() {
1684
+ if (To) return Pt;
1685
+ To = 1;
1686
+ var r = typeof Map == "function" && Map.prototype ? Map : null, t = typeof Set == "function" && Set.prototype ? Set : null, e;
1687
+ r || (e = function(a) {
1688
+ return !1;
1689
+ });
1690
+ var n = r ? Map.prototype.has : null, o = t ? Set.prototype.has : null;
1691
+ return !e && !n && (e = function(a) {
1692
+ return !1;
1693
+ }), Pt = e || function(a) {
1694
+ if (!a || typeof a != "object")
1695
+ return !1;
1696
+ try {
1697
+ if (n.call(a), o)
1698
+ try {
1699
+ o.call(a);
1700
+ } catch {
1701
+ return !0;
1702
+ }
1703
+ return a instanceof r;
1704
+ } catch {
1705
+ }
1706
+ return !1;
1707
+ }, Pt;
1708
+ }
1709
+ var It, jo;
1710
+ function qi() {
1711
+ if (jo) return It;
1712
+ jo = 1;
1713
+ var r = typeof Map == "function" && Map.prototype ? Map : null, t = typeof Set == "function" && Set.prototype ? Set : null, e;
1714
+ t || (e = function(a) {
1715
+ return !1;
1716
+ });
1717
+ var n = r ? Map.prototype.has : null, o = t ? Set.prototype.has : null;
1718
+ return !e && !o && (e = function(a) {
1719
+ return !1;
1720
+ }), It = e || function(a) {
1721
+ if (!a || typeof a != "object")
1722
+ return !1;
1723
+ try {
1724
+ if (o.call(a), n)
1725
+ try {
1726
+ n.call(a);
1727
+ } catch {
1728
+ return !0;
1729
+ }
1730
+ return a instanceof t;
1731
+ } catch {
1732
+ }
1733
+ return !1;
1734
+ }, It;
1735
+ }
1736
+ var Mo;
1737
+ function qa() {
1738
+ if (Mo) return Cr.exports;
1739
+ Mo = 1;
1740
+ var r = /* @__PURE__ */ wi(), t = /* @__PURE__ */ Ea();
1741
+ if (nn()() || Zr()()) {
1742
+ var e = Symbol.iterator;
1743
+ Cr.exports = function(E) {
1744
+ if (E != null && typeof E[e] < "u")
1745
+ return E[e]();
1746
+ if (r(E))
1747
+ return Array.prototype[e].call(E);
1748
+ };
1749
+ } else {
1750
+ var n = Pi(), o = Ii(), i = /* @__PURE__ */ pr(), a = i("%Map%", !0), u = i("%Set%", !0), f = mi(), s = f("Array.prototype.push"), y = f("String.prototype.charCodeAt"), p = f("String.prototype.slice"), v = function(E, D) {
1751
+ var U = E.length;
1752
+ if (D + 1 >= U)
1753
+ return D + 1;
1754
+ var k = y(E, D);
1755
+ if (k < 55296 || k > 56319)
1756
+ return D + 1;
1757
+ var G = y(E, D + 1);
1758
+ return G < 56320 || G > 57343 ? D + 1 : D + 2;
1759
+ }, h = function(E) {
1760
+ var D = 0;
1761
+ return {
1762
+ next: function() {
1763
+ var k = D >= E.length, G;
1764
+ return k || (G = E[D], D += 1), {
1765
+ done: k,
1766
+ value: G
1767
+ };
1768
+ }
1769
+ };
1770
+ }, g = function(E, D) {
1771
+ if (n(E) || r(E))
1772
+ return h(E);
1773
+ if (o(E)) {
1774
+ var U = 0;
1775
+ return {
1776
+ next: function() {
1777
+ var G = v(E, U), J = p(E, U, G);
1778
+ return U = G, {
1779
+ done: G > E.length,
1780
+ value: J
1781
+ };
1782
+ }
1783
+ };
1784
+ }
1785
+ if (D && typeof E["_es6-shim iterator_"] < "u")
1786
+ return E["_es6-shim iterator_"]();
1787
+ };
1788
+ if (!a && !u)
1789
+ Cr.exports = function(E) {
1790
+ if (E != null)
1791
+ return g(E, !0);
1792
+ };
1793
+ else {
1794
+ var S = /* @__PURE__ */ Ei(), A = /* @__PURE__ */ qi(), O = f("Map.prototype.forEach", !0), I = f("Set.prototype.forEach", !0);
1795
+ if (typeof process > "u" || !process.versions || !process.versions.node)
1796
+ var b = f("Map.prototype.iterator", !0), T = f("Set.prototype.iterator", !0);
1797
+ var H = f("Map.prototype.@@iterator", !0) || f("Map.prototype._es6-shim iterator_", !0), W = f("Set.prototype.@@iterator", !0) || f("Set.prototype._es6-shim iterator_", !0), F = function(E) {
1798
+ if (S(E)) {
1799
+ if (b)
1800
+ return t(b(E));
1801
+ if (H)
1802
+ return H(E);
1803
+ if (O) {
1804
+ var D = [];
1805
+ return O(E, function(k, G) {
1806
+ s(D, [G, k]);
1807
+ }), h(D);
1808
+ }
1809
+ }
1810
+ if (A(E)) {
1811
+ if (T)
1812
+ return t(T(E));
1813
+ if (W)
1814
+ return W(E);
1815
+ if (I) {
1816
+ var U = [];
1817
+ return I(E, function(k) {
1818
+ s(U, k);
1819
+ }), h(U);
1820
+ }
1821
+ }
1822
+ };
1823
+ Cr.exports = function(E) {
1824
+ return F(E) || g(E);
1825
+ };
1826
+ }
1827
+ }
1828
+ return Cr.exports;
1829
+ }
1830
+ var Et, Co;
1831
+ function Ri() {
1832
+ if (Co) return Et;
1833
+ Co = 1;
1834
+ var r = function(t) {
1835
+ return t !== t;
1836
+ };
1837
+ return Et = function(e, n) {
1838
+ return e === 0 && n === 0 ? 1 / e === 1 / n : !!(e === n || r(e) && r(n));
1839
+ }, Et;
1840
+ }
1841
+ var qt, Fo;
1842
+ function $i() {
1843
+ if (Fo) return qt;
1844
+ Fo = 1;
1845
+ var r = Ri();
1846
+ return qt = function() {
1847
+ return typeof Object.is == "function" ? Object.is : r;
1848
+ }, qt;
1849
+ }
1850
+ var Rt, Do;
1851
+ function Ra() {
1852
+ if (Do) return Rt;
1853
+ Do = 1;
1854
+ var r = $i(), t = Pr();
1855
+ return Rt = function() {
1856
+ var n = r();
1857
+ return t(Object, { is: n }, {
1858
+ is: function() {
1859
+ return Object.is !== n;
1860
+ }
1861
+ }), n;
1862
+ }, Rt;
1863
+ }
1864
+ var $t, Wo;
1865
+ function $a() {
1866
+ if (Wo) return $t;
1867
+ Wo = 1;
1868
+ var r = Pr(), t = Tr(), e = Ri(), n = $i(), o = Ra(), i = t(n(), Object);
1869
+ return r(i, {
1870
+ getPolyfill: n,
1871
+ implementation: e,
1872
+ shim: o
1873
+ }), $t = i, $t;
1874
+ }
1875
+ var Bt, ko;
1876
+ function Bi() {
1877
+ if (ko) return Bt;
1878
+ ko = 1;
1879
+ var r = Tr(), t = /* @__PURE__ */ Q(), e = /* @__PURE__ */ pr(), n = e("%ArrayBuffer%", !0), o = t("ArrayBuffer.prototype.byteLength", !0), i = t("Object.prototype.toString"), a = !!n && !o && new n(0).slice, u = !!a && r(a);
1880
+ return Bt = o || u ? function(s) {
1881
+ if (!s || typeof s != "object")
1882
+ return !1;
1883
+ try {
1884
+ return o ? o(s) : u(s, 0), !0;
1885
+ } catch {
1886
+ return !1;
1887
+ }
1888
+ } : n ? function(s) {
1889
+ return i(s) === "[object ArrayBuffer]";
1890
+ } : function(s) {
1891
+ return !1;
1892
+ }, Bt;
1893
+ }
1894
+ var _t, No;
1895
+ function Ba() {
1896
+ if (No) return _t;
1897
+ No = 1;
1898
+ var r = /* @__PURE__ */ Q(), t = r("Date.prototype.getDay"), e = function(u) {
1899
+ try {
1900
+ return t(u), !0;
1901
+ } catch {
1902
+ return !1;
1903
+ }
1904
+ }, n = r("Object.prototype.toString"), o = "[object Date]", i = Ir()();
1905
+ return _t = function(u) {
1906
+ return typeof u != "object" || u === null ? !1 : i ? e(u) : n(u) === o;
1907
+ }, _t;
1908
+ }
1909
+ var xt, Lo;
1910
+ function _i() {
1911
+ if (Lo) return xt;
1912
+ Lo = 1;
1913
+ var r = /* @__PURE__ */ Q(), t = Ir()(), e = /* @__PURE__ */ sn(), n = /* @__PURE__ */ Or(), o;
1914
+ if (t) {
1915
+ var i = r("RegExp.prototype.exec"), a = {}, u = function() {
1916
+ throw a;
1917
+ }, f = {
1918
+ toString: u,
1919
+ valueOf: u
1920
+ };
1921
+ typeof Symbol.toPrimitive == "symbol" && (f[Symbol.toPrimitive] = u), o = function(v) {
1922
+ if (!v || typeof v != "object")
1923
+ return !1;
1924
+ var h = (
1925
+ /** @type {NonNullable<typeof gOPD>} */
1926
+ n(
1927
+ /** @type {{ lastIndex?: unknown }} */
1928
+ v,
1929
+ "lastIndex"
1930
+ )
1931
+ ), g = h && e(h, "value");
1932
+ if (!g)
1933
+ return !1;
1934
+ try {
1935
+ i(
1936
+ v,
1937
+ /** @type {string} */
1938
+ /** @type {unknown} */
1939
+ f
1940
+ );
1941
+ } catch (S) {
1942
+ return S === a;
1943
+ }
1944
+ };
1945
+ } else {
1946
+ var s = r("Object.prototype.toString"), y = "[object RegExp]";
1947
+ o = function(v) {
1948
+ return !v || typeof v != "object" && typeof v != "function" ? !1 : s(v) === y;
1949
+ };
1950
+ }
1951
+ return xt = o, xt;
1952
+ }
1953
+ var Tt, Uo;
1954
+ function _a() {
1955
+ if (Uo) return Tt;
1956
+ Uo = 1;
1957
+ var r = /* @__PURE__ */ Q(), t = r("SharedArrayBuffer.prototype.byteLength", !0);
1958
+ return Tt = t ? function(n) {
1959
+ if (!n || typeof n != "object")
1960
+ return !1;
1961
+ try {
1962
+ return t(n), !0;
1963
+ } catch {
1964
+ return !1;
1965
+ }
1966
+ } : function(n) {
1967
+ return !1;
1968
+ }, Tt;
1969
+ }
1970
+ var jt, Go;
1971
+ function xa() {
1972
+ if (Go) return jt;
1973
+ Go = 1;
1974
+ var r = /* @__PURE__ */ Q(), t = r("Number.prototype.toString"), e = function(u) {
1975
+ try {
1976
+ return t(u), !0;
1977
+ } catch {
1978
+ return !1;
1979
+ }
1980
+ }, n = r("Object.prototype.toString"), o = "[object Number]", i = Ir()();
1981
+ return jt = function(u) {
1982
+ return typeof u == "number" ? !0 : !u || typeof u != "object" ? !1 : i ? e(u) : n(u) === o;
1983
+ }, jt;
1984
+ }
1985
+ var Mt, Ho;
1986
+ function Ta() {
1987
+ if (Ho) return Mt;
1988
+ Ho = 1;
1989
+ var r = /* @__PURE__ */ Q(), t = r("Boolean.prototype.toString"), e = r("Object.prototype.toString"), n = function(u) {
1990
+ try {
1991
+ return t(u), !0;
1992
+ } catch {
1993
+ return !1;
1994
+ }
1995
+ }, o = "[object Boolean]", i = Ir()();
1996
+ return Mt = function(u) {
1997
+ return typeof u == "boolean" ? !0 : u === null || typeof u != "object" ? !1 : i ? n(u) : e(u) === o;
1998
+ }, Mt;
1999
+ }
2000
+ var Ur = { exports: {} }, Ct, zo;
2001
+ function ja() {
2002
+ if (zo) return Ct;
2003
+ zo = 1;
2004
+ var r = /* @__PURE__ */ Q(), t = _i(), e = r("RegExp.prototype.exec"), n = /* @__PURE__ */ nr();
2005
+ return Ct = function(i) {
2006
+ if (!t(i))
2007
+ throw new n("`regex` must be a RegExp");
2008
+ return function(u) {
2009
+ return e(i, u) !== null;
2010
+ };
2011
+ }, Ct;
2012
+ }
2013
+ var Vo;
2014
+ function Ma() {
2015
+ if (Vo) return Ur.exports;
2016
+ Vo = 1;
2017
+ var r = /* @__PURE__ */ Q(), t = r("Object.prototype.toString"), e = nn()(), n = /* @__PURE__ */ ja();
2018
+ if (e) {
2019
+ var o = r("Symbol.prototype.toString"), i = n(/^Symbol\(.*\)$/), a = function(f) {
2020
+ return typeof f.valueOf() != "symbol" ? !1 : i(o(f));
2021
+ };
2022
+ Ur.exports = function(f) {
2023
+ if (typeof f == "symbol")
2024
+ return !0;
2025
+ if (!f || typeof f != "object" || t(f) !== "[object Symbol]")
2026
+ return !1;
2027
+ try {
2028
+ return a(f);
2029
+ } catch {
2030
+ return !1;
2031
+ }
2032
+ };
2033
+ } else
2034
+ Ur.exports = function(f) {
2035
+ return !1;
2036
+ };
2037
+ return Ur.exports;
2038
+ }
2039
+ var Gr = { exports: {} }, Ft, Jo;
2040
+ function Ca() {
2041
+ if (Jo) return Ft;
2042
+ Jo = 1;
2043
+ var r = typeof BigInt < "u" && BigInt;
2044
+ return Ft = function() {
2045
+ return typeof r == "function" && typeof BigInt == "function" && typeof r(42) == "bigint" && typeof BigInt(42) == "bigint";
2046
+ }, Ft;
2047
+ }
2048
+ var Yo;
2049
+ function Fa() {
2050
+ if (Yo) return Gr.exports;
2051
+ Yo = 1;
2052
+ var r = Ca()();
2053
+ if (r) {
2054
+ var t = BigInt.prototype.valueOf, e = function(o) {
2055
+ try {
2056
+ return t.call(o), !0;
2057
+ } catch {
2058
+ }
2059
+ return !1;
2060
+ };
2061
+ Gr.exports = function(o) {
2062
+ return o === null || typeof o > "u" || typeof o == "boolean" || typeof o == "string" || typeof o == "number" || typeof o == "symbol" || typeof o == "function" ? !1 : typeof o == "bigint" ? !0 : e(o);
2063
+ };
2064
+ } else
2065
+ Gr.exports = function(o) {
2066
+ return !1;
2067
+ };
2068
+ return Gr.exports;
2069
+ }
2070
+ var Dt, Ko;
2071
+ function Da() {
2072
+ if (Ko) return Dt;
2073
+ Ko = 1;
2074
+ var r = Ii(), t = xa(), e = Ta(), n = Ma(), o = Fa();
2075
+ return Dt = function(a) {
2076
+ if (a == null || typeof a != "object" && typeof a != "function")
2077
+ return null;
2078
+ if (r(a))
2079
+ return "String";
2080
+ if (t(a))
2081
+ return "Number";
2082
+ if (e(a))
2083
+ return "Boolean";
2084
+ if (n(a))
2085
+ return "Symbol";
2086
+ if (o(a))
2087
+ return "BigInt";
2088
+ }, Dt;
2089
+ }
2090
+ var Wt, Xo;
2091
+ function Wa() {
2092
+ if (Xo) return Wt;
2093
+ Xo = 1;
2094
+ var r = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap : null, t = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet : null, e;
2095
+ r || (e = function(a) {
2096
+ return !1;
2097
+ });
2098
+ var n = r ? r.prototype.has : null, o = t ? t.prototype.has : null;
2099
+ return !e && !n && (e = function(a) {
2100
+ return !1;
2101
+ }), Wt = e || function(a) {
2102
+ if (!a || typeof a != "object")
2103
+ return !1;
2104
+ try {
2105
+ if (n.call(a, n), o)
2106
+ try {
2107
+ o.call(a, o);
2108
+ } catch {
2109
+ return !0;
2110
+ }
2111
+ return a instanceof r;
2112
+ } catch {
2113
+ }
2114
+ return !1;
2115
+ }, Wt;
2116
+ }
2117
+ var Hr = { exports: {} }, Zo;
2118
+ function ka() {
2119
+ if (Zo) return Hr.exports;
2120
+ Zo = 1;
2121
+ var r = /* @__PURE__ */ pr(), t = /* @__PURE__ */ Q(), e = r("%WeakSet%", !0), n = t("WeakSet.prototype.has", !0);
2122
+ if (n) {
2123
+ var o = t("WeakMap.prototype.has", !0);
2124
+ Hr.exports = function(a) {
2125
+ if (!a || typeof a != "object")
2126
+ return !1;
2127
+ try {
2128
+ if (n(a, n), o)
2129
+ try {
2130
+ o(a, o);
2131
+ } catch {
2132
+ return !0;
2133
+ }
2134
+ return a instanceof e;
2135
+ } catch {
2136
+ }
2137
+ return !1;
2138
+ };
2139
+ } else
2140
+ Hr.exports = function(a) {
2141
+ return !1;
2142
+ };
2143
+ return Hr.exports;
2144
+ }
2145
+ var kt, Qo;
2146
+ function Na() {
2147
+ if (Qo) return kt;
2148
+ Qo = 1;
2149
+ var r = /* @__PURE__ */ Ei(), t = /* @__PURE__ */ qi(), e = Wa(), n = /* @__PURE__ */ ka();
2150
+ return kt = function(i) {
2151
+ if (i && typeof i == "object") {
2152
+ if (r(i))
2153
+ return "Map";
2154
+ if (t(i))
2155
+ return "Set";
2156
+ if (e(i))
2157
+ return "WeakMap";
2158
+ if (n(i))
2159
+ return "WeakSet";
2160
+ }
2161
+ return !1;
2162
+ }, kt;
2163
+ }
2164
+ var Nt, ri;
2165
+ function La() {
2166
+ if (ri) return Nt;
2167
+ ri = 1;
2168
+ var r = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, e, n;
2169
+ if (typeof t == "function" && typeof Object.defineProperty == "function")
2170
+ try {
2171
+ e = Object.defineProperty({}, "length", {
2172
+ get: function() {
2173
+ throw n;
2174
+ }
2175
+ }), n = {}, t(function() {
2176
+ throw 42;
2177
+ }, null, e);
2178
+ } catch (I) {
2179
+ I !== n && (t = null);
2180
+ }
2181
+ else
2182
+ t = null;
2183
+ var o = /^\s*class\b/, i = function(b) {
2184
+ try {
2185
+ var T = r.call(b);
2186
+ return o.test(T);
2187
+ } catch {
2188
+ return !1;
2189
+ }
2190
+ }, a = function(b) {
2191
+ try {
2192
+ return i(b) ? !1 : (r.call(b), !0);
2193
+ } catch {
2194
+ return !1;
2195
+ }
2196
+ }, u = Object.prototype.toString, f = "[object Object]", s = "[object Function]", y = "[object GeneratorFunction]", p = "[object HTMLAllCollection]", v = "[object HTML document.all class]", h = "[object HTMLCollection]", g = typeof Symbol == "function" && !!Symbol.toStringTag, S = !(0 in [,]), A = function() {
2197
+ return !1;
2198
+ };
2199
+ if (typeof document == "object") {
2200
+ var O = document.all;
2201
+ u.call(O) === u.call(document.all) && (A = function(b) {
2202
+ if ((S || !b) && (typeof b > "u" || typeof b == "object"))
2203
+ try {
2204
+ var T = u.call(b);
2205
+ return (T === p || T === v || T === h || T === f) && b("") == null;
2206
+ } catch {
2207
+ }
2208
+ return !1;
2209
+ });
2210
+ }
2211
+ return Nt = t ? function(b) {
2212
+ if (A(b))
2213
+ return !0;
2214
+ if (!b || typeof b != "function" && typeof b != "object")
2215
+ return !1;
2216
+ try {
2217
+ t(b, null, e);
2218
+ } catch (T) {
2219
+ if (T !== n)
2220
+ return !1;
2221
+ }
2222
+ return !i(b) && a(b);
2223
+ } : function(b) {
2224
+ if (A(b))
2225
+ return !0;
2226
+ if (!b || typeof b != "function" && typeof b != "object")
2227
+ return !1;
2228
+ if (g)
2229
+ return a(b);
2230
+ if (i(b))
2231
+ return !1;
2232
+ var T = u.call(b);
2233
+ return T !== s && T !== y && !/^\[object HTML/.test(T) ? !1 : a(b);
2234
+ }, Nt;
2235
+ }
2236
+ var Lt, ei;
2237
+ function Ua() {
2238
+ if (ei) return Lt;
2239
+ ei = 1;
2240
+ var r = La(), t = Object.prototype.toString, e = Object.prototype.hasOwnProperty, n = function(f, s, y) {
2241
+ for (var p = 0, v = f.length; p < v; p++)
2242
+ e.call(f, p) && (y == null ? s(f[p], p, f) : s.call(y, f[p], p, f));
2243
+ }, o = function(f, s, y) {
2244
+ for (var p = 0, v = f.length; p < v; p++)
2245
+ y == null ? s(f.charAt(p), p, f) : s.call(y, f.charAt(p), p, f);
2246
+ }, i = function(f, s, y) {
2247
+ for (var p in f)
2248
+ e.call(f, p) && (y == null ? s(f[p], p, f) : s.call(y, f[p], p, f));
2249
+ };
2250
+ function a(u) {
2251
+ return t.call(u) === "[object Array]";
2252
+ }
2253
+ return Lt = function(f, s, y) {
2254
+ if (!r(s))
2255
+ throw new TypeError("iterator must be a function");
2256
+ var p;
2257
+ arguments.length >= 3 && (p = y), a(f) ? n(f, s, p) : typeof f == "string" ? o(f, s, p) : i(f, s, p);
2258
+ }, Lt;
2259
+ }
2260
+ var Ut, ti;
2261
+ function Ga() {
2262
+ return ti || (ti = 1, Ut = [
2263
+ "Float16Array",
2264
+ "Float32Array",
2265
+ "Float64Array",
2266
+ "Int8Array",
2267
+ "Int16Array",
2268
+ "Int32Array",
2269
+ "Uint8Array",
2270
+ "Uint8ClampedArray",
2271
+ "Uint16Array",
2272
+ "Uint32Array",
2273
+ "BigInt64Array",
2274
+ "BigUint64Array"
2275
+ ]), Ut;
2276
+ }
2277
+ var Gt, ni;
2278
+ function Ha() {
2279
+ if (ni) return Gt;
2280
+ ni = 1;
2281
+ var r = /* @__PURE__ */ Ga(), t = typeof globalThis > "u" ? Jr : globalThis;
2282
+ return Gt = function() {
2283
+ for (var n = [], o = 0; o < r.length; o++)
2284
+ typeof t[r[o]] == "function" && (n[n.length] = r[o]);
2285
+ return n;
2286
+ }, Gt;
2287
+ }
2288
+ var Ht, oi;
2289
+ function za() {
2290
+ if (oi) return Ht;
2291
+ oi = 1;
2292
+ var r = Ua(), t = /* @__PURE__ */ Ha(), e = Tr(), n = /* @__PURE__ */ Q(), o = /* @__PURE__ */ Or(), i = fn(), a = n("Object.prototype.toString"), u = Ir()(), f = typeof globalThis > "u" ? Jr : globalThis, s = t(), y = n("String.prototype.slice"), p = n("Array.prototype.indexOf", !0) || function(A, O) {
2293
+ for (var I = 0; I < A.length; I += 1)
2294
+ if (A[I] === O)
2295
+ return I;
2296
+ return -1;
2297
+ }, v = { __proto__: null };
2298
+ u && o && i ? r(s, function(S) {
2299
+ var A = new f[S]();
2300
+ if (Symbol.toStringTag in A && i) {
2301
+ var O = i(A), I = o(O, Symbol.toStringTag);
2302
+ if (!I && O) {
2303
+ var b = i(O);
2304
+ I = o(b, Symbol.toStringTag);
2305
+ }
2306
+ v["$" + S] = e(I.get);
2307
+ }
2308
+ }) : r(s, function(S) {
2309
+ var A = new f[S](), O = A.slice || A.set;
2310
+ O && (v[
2311
+ /** @type {`$${import('.').TypedArrayName}`} */
2312
+ "$" + S
2313
+ ] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */
2314
+ // @ts-expect-error TODO FIXME
2315
+ e(O));
2316
+ });
2317
+ var h = function(A) {
2318
+ var O = !1;
2319
+ return r(
2320
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
2321
+ v,
2322
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
2323
+ function(I, b) {
2324
+ if (!O)
2325
+ try {
2326
+ "$" + I(A) === b && (O = /** @type {import('.').TypedArrayName} */
2327
+ y(b, 1));
2328
+ } catch {
2329
+ }
2330
+ }
2331
+ ), O;
2332
+ }, g = function(A) {
2333
+ var O = !1;
2334
+ return r(
2335
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
2336
+ v,
2337
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
2338
+ function(I, b) {
2339
+ if (!O)
2340
+ try {
2341
+ I(A), O = /** @type {import('.').TypedArrayName} */
2342
+ y(b, 1);
2343
+ } catch {
2344
+ }
2345
+ }
2346
+ ), O;
2347
+ };
2348
+ return Ht = function(A) {
2349
+ if (!A || typeof A != "object")
2350
+ return !1;
2351
+ if (!u) {
2352
+ var O = y(a(A), 8, -1);
2353
+ return p(s, O) > -1 ? O : O !== "Object" ? !1 : g(A);
2354
+ }
2355
+ return o ? h(A) : null;
2356
+ }, Ht;
2357
+ }
2358
+ var zt, ii;
2359
+ function Va() {
2360
+ if (ii) return zt;
2361
+ ii = 1;
2362
+ var r = /* @__PURE__ */ Q(), t = r("ArrayBuffer.prototype.byteLength", !0), e = /* @__PURE__ */ Bi();
2363
+ return zt = function(o) {
2364
+ return e(o) ? t ? t(o) : o.byteLength : NaN;
2365
+ }, zt;
2366
+ }
2367
+ var Vt, ai;
2368
+ function Ja() {
2369
+ if (ai) return Vt;
2370
+ ai = 1;
2371
+ var r = ha(), t = mi(), e = ba(), n = /* @__PURE__ */ pr(), o = qa(), i = Oi(), a = $a(), u = /* @__PURE__ */ wi(), f = Pi(), s = /* @__PURE__ */ Bi(), y = /* @__PURE__ */ Ba(), p = _i(), v = /* @__PURE__ */ _a(), h = Zt(), g = Da(), S = /* @__PURE__ */ Na(), A = /* @__PURE__ */ za(), O = /* @__PURE__ */ Va(), I = t("SharedArrayBuffer.prototype.byteLength", !0), b = t("Date.prototype.getTime"), T = Object.getPrototypeOf, H = t("Object.prototype.toString"), W = n("%Set%", !0), F = t("Map.prototype.has", !0), C = t("Map.prototype.get", !0), E = t("Map.prototype.size", !0), D = t("Set.prototype.add", !0), U = t("Set.prototype.delete", !0), k = t("Set.prototype.has", !0), G = t("Set.prototype.size", !0);
2372
+ function J(d, m, $, R) {
2373
+ for (var x = o(d), j; (j = x.next()) && !j.done; )
2374
+ if (z(m, j.value, $, R))
2375
+ return U(d, j.value), !0;
2376
+ return !1;
2377
+ }
2378
+ function ur(d) {
2379
+ if (typeof d > "u")
2380
+ return null;
2381
+ if (typeof d != "object")
2382
+ return typeof d == "symbol" ? !1 : typeof d == "string" || typeof d == "number" ? +d == +d : !0;
2383
+ }
2384
+ function Er(d, m, $, R, x, j) {
2385
+ var P = ur($);
2386
+ if (P != null)
2387
+ return P;
2388
+ var q = C(m, P), w = r({}, x, { strict: !1 });
2389
+ return typeof q > "u" && !F(m, P) || !z(R, q, w, j) ? !1 : !F(d, P) && z(R, q, w, j);
2390
+ }
2391
+ function br(d, m, $) {
2392
+ var R = ur($);
2393
+ return R ?? (k(m, R) && !k(d, R));
2394
+ }
2395
+ function or(d, m, $, R, x, j) {
2396
+ for (var P = o(d), q, w; (q = P.next()) && !q.done; )
2397
+ if (w = q.value, // eslint-disable-next-line no-use-before-define
2398
+ z($, w, x, j) && z(R, C(m, w), x, j))
2399
+ return U(d, w), !0;
2400
+ return !1;
2401
+ }
2402
+ function z(d, m, $, R) {
2403
+ var x = $ || {};
2404
+ if (x.strict ? a(d, m) : d === m)
2405
+ return !0;
2406
+ var j = g(d), P = g(m);
2407
+ if (j !== P)
2408
+ return !1;
2409
+ if (!d || !m || typeof d != "object" && typeof m != "object")
2410
+ return x.strict ? a(d, m) : d == m;
2411
+ var q = R.has(d), w = R.has(m), B;
2412
+ if (q && w) {
2413
+ if (R.get(d) === R.get(m))
2414
+ return !0;
2415
+ } else
2416
+ B = {};
2417
+ return q || R.set(d, B), w || R.set(m, B), yr(d, m, x, R);
2418
+ }
2419
+ function Sr(d) {
2420
+ return !d || typeof d != "object" || typeof d.length != "number" || typeof d.copy != "function" || typeof d.slice != "function" || d.length > 0 && typeof d[0] != "number" ? !1 : !!(d.constructor && d.constructor.isBuffer && d.constructor.isBuffer(d));
2421
+ }
2422
+ function qr(d, m, $, R) {
2423
+ if (G(d) !== G(m))
2424
+ return !1;
2425
+ for (var x = o(d), j = o(m), P, q, w; (P = x.next()) && !P.done; )
2426
+ if (P.value && typeof P.value == "object")
2427
+ w || (w = new W()), D(w, P.value);
2428
+ else if (!k(m, P.value)) {
2429
+ if ($.strict || !br(d, m, P.value))
2430
+ return !1;
2431
+ w || (w = new W()), D(w, P.value);
2432
+ }
2433
+ if (w) {
2434
+ for (; (q = j.next()) && !q.done; )
2435
+ if (q.value && typeof q.value == "object") {
2436
+ if (!J(w, q.value, $.strict, R))
2437
+ return !1;
2438
+ } else if (!$.strict && !k(d, q.value) && !J(w, q.value, $.strict, R))
2439
+ return !1;
2440
+ return G(w) === 0;
2441
+ }
2442
+ return !0;
2443
+ }
2444
+ function wr(d, m, $, R) {
2445
+ if (E(d) !== E(m))
2446
+ return !1;
2447
+ for (var x = o(d), j = o(m), P, q, w, B, V, Y; (P = x.next()) && !P.done; )
2448
+ if (B = P.value[0], V = P.value[1], B && typeof B == "object")
2449
+ w || (w = new W()), D(w, B);
2450
+ else if (Y = C(m, B), typeof Y > "u" && !F(m, B) || !z(V, Y, $, R)) {
2451
+ if ($.strict || !Er(d, m, B, V, $, R))
2452
+ return !1;
2453
+ w || (w = new W()), D(w, B);
2454
+ }
2455
+ if (w) {
2456
+ for (; (q = j.next()) && !q.done; )
2457
+ if (B = q.value[0], Y = q.value[1], B && typeof B == "object") {
2458
+ if (!or(w, d, B, Y, $, R))
2459
+ return !1;
2460
+ } else if (!$.strict && (!d.has(B) || !z(C(d, B), Y, $, R)) && !or(w, d, B, Y, r({}, $, { strict: !1 }), R))
2461
+ return !1;
2462
+ return G(w) === 0;
2463
+ }
2464
+ return !0;
2465
+ }
2466
+ function yr(d, m, $, R) {
2467
+ var x, j;
2468
+ if (typeof d != typeof m || d == null || m == null || H(d) !== H(m) || u(d) !== u(m))
2469
+ return !1;
2470
+ var P = f(d), q = f(m);
2471
+ if (P !== q)
2472
+ return !1;
2473
+ var w = d instanceof Error, B = m instanceof Error;
2474
+ if (w !== B || (w || B) && (d.name !== m.name || d.message !== m.message))
2475
+ return !1;
2476
+ var V = p(d), Y = p(m);
2477
+ if (V !== Y || (V || Y) && (d.source !== m.source || e(d) !== e(m)))
2478
+ return !1;
2479
+ var K = y(d), X = y(m);
2480
+ if (K !== X || (K || X) && b(d) !== b(m) || $.strict && T && T(d) !== T(m))
2481
+ return !1;
2482
+ var rr = A(d), fr = A(m);
2483
+ if (rr !== fr)
2484
+ return !1;
2485
+ if (rr || fr) {
2486
+ if (d.length !== m.length)
2487
+ return !1;
2488
+ for (x = 0; x < d.length; x++)
2489
+ if (d[x] !== m[x])
2490
+ return !1;
2491
+ return !0;
2492
+ }
2493
+ var ir = Sr(d), er = Sr(m);
2494
+ if (ir !== er)
2495
+ return !1;
2496
+ if (ir || er) {
2497
+ if (d.length !== m.length)
2498
+ return !1;
2499
+ for (x = 0; x < d.length; x++)
2500
+ if (d[x] !== m[x])
2501
+ return !1;
2502
+ return !0;
2503
+ }
2504
+ var sr = s(d), cr = s(m);
2505
+ if (sr !== cr)
2506
+ return !1;
2507
+ if (sr || cr)
2508
+ return O(d) !== O(m) ? !1 : typeof Uint8Array == "function" && z(new Uint8Array(d), new Uint8Array(m), $, R);
2509
+ var lr = v(d), Wr = v(m);
2510
+ if (lr !== Wr)
2511
+ return !1;
2512
+ if (lr || Wr)
2513
+ return I(d) !== I(m) ? !1 : typeof Uint8Array == "function" && z(new Uint8Array(d), new Uint8Array(m), $, R);
2514
+ if (typeof d != typeof m)
2515
+ return !1;
2516
+ var vr = h(d), Rr = h(m);
2517
+ if (vr.length !== Rr.length)
2518
+ return !1;
2519
+ for (vr.sort(), Rr.sort(), x = vr.length - 1; x >= 0; x--)
2520
+ if (vr[x] != Rr[x])
2521
+ return !1;
2522
+ for (x = vr.length - 1; x >= 0; x--)
2523
+ if (j = vr[x], !z(d[j], m[j], $, R))
2524
+ return !1;
2525
+ var jr = S(d), hr = S(m);
2526
+ return jr !== hr ? !1 : jr === "Set" || hr === "Set" ? qr(d, m, $, R) : jr === "Map" ? wr(d, m, $, R) : !0;
2527
+ }
2528
+ return Vt = function(m, $, R) {
2529
+ return z(m, $, R, i());
2530
+ }, Vt;
2531
+ }
2532
+ var Ya = Ja();
2533
+ const Ka = /* @__PURE__ */ Vi(Ya);
2534
+ var Kt = function(r, t) {
2535
+ return Kt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
2536
+ e.__proto__ = n;
2537
+ } || function(e, n) {
2538
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
2539
+ }, Kt(r, t);
2540
+ };
2541
+ function re(r, t) {
2542
+ if (typeof t != "function" && t !== null)
2543
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
2544
+ Kt(r, t);
2545
+ function e() {
2546
+ this.constructor = r;
2547
+ }
2548
+ r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
2549
+ }
2550
+ function Xa(r, t, e, n) {
2551
+ function o(i) {
2552
+ return i instanceof e ? i : new e(function(a) {
2553
+ a(i);
2554
+ });
2555
+ }
2556
+ return new (e || (e = Promise))(function(i, a) {
2557
+ function u(y) {
2558
+ try {
2559
+ s(n.next(y));
2560
+ } catch (p) {
2561
+ a(p);
2562
+ }
2563
+ }
2564
+ function f(y) {
2565
+ try {
2566
+ s(n.throw(y));
2567
+ } catch (p) {
2568
+ a(p);
2569
+ }
2570
+ }
2571
+ function s(y) {
2572
+ y.done ? i(y.value) : o(y.value).then(u, f);
2573
+ }
2574
+ s((n = n.apply(r, t || [])).next());
2575
+ });
2576
+ }
2577
+ function xi(r, t) {
2578
+ var e = { label: 0, sent: function() {
2579
+ if (i[0] & 1) throw i[1];
2580
+ return i[1];
2581
+ }, trys: [], ops: [] }, n, o, i, a = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
2582
+ return a.next = u(0), a.throw = u(1), a.return = u(2), typeof Symbol == "function" && (a[Symbol.iterator] = function() {
2583
+ return this;
2584
+ }), a;
2585
+ function u(s) {
2586
+ return function(y) {
2587
+ return f([s, y]);
2588
+ };
2589
+ }
2590
+ function f(s) {
2591
+ if (n) throw new TypeError("Generator is already executing.");
2592
+ for (; a && (a = 0, s[0] && (e = 0)), e; ) try {
2593
+ if (n = 1, o && (i = s[0] & 2 ? o.return : s[0] ? o.throw || ((i = o.return) && i.call(o), 0) : o.next) && !(i = i.call(o, s[1])).done) return i;
2594
+ switch (o = 0, i && (s = [s[0] & 2, i.value]), s[0]) {
2595
+ case 0:
2596
+ case 1:
2597
+ i = s;
2598
+ break;
2599
+ case 4:
2600
+ return e.label++, { value: s[1], done: !1 };
2601
+ case 5:
2602
+ e.label++, o = s[1], s = [0];
2603
+ continue;
2604
+ case 7:
2605
+ s = e.ops.pop(), e.trys.pop();
2606
+ continue;
2607
+ default:
2608
+ if (i = e.trys, !(i = i.length > 0 && i[i.length - 1]) && (s[0] === 6 || s[0] === 2)) {
2609
+ e = 0;
2610
+ continue;
2611
+ }
2612
+ if (s[0] === 3 && (!i || s[1] > i[0] && s[1] < i[3])) {
2613
+ e.label = s[1];
2614
+ break;
2615
+ }
2616
+ if (s[0] === 6 && e.label < i[1]) {
2617
+ e.label = i[1], i = s;
2618
+ break;
2619
+ }
2620
+ if (i && e.label < i[2]) {
2621
+ e.label = i[2], e.ops.push(s);
2622
+ break;
2623
+ }
2624
+ i[2] && e.ops.pop(), e.trys.pop();
2625
+ continue;
2626
+ }
2627
+ s = t.call(r, e);
2628
+ } catch (y) {
2629
+ s = [6, y], o = 0;
2630
+ } finally {
2631
+ n = i = 0;
2632
+ }
2633
+ if (s[0] & 5) throw s[1];
2634
+ return { value: s[0] ? s[1] : void 0, done: !0 };
2635
+ }
2636
+ }
2637
+ function xr(r) {
2638
+ var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
2639
+ if (e) return e.call(r);
2640
+ if (r && typeof r.length == "number") return {
2641
+ next: function() {
2642
+ return r && n >= r.length && (r = void 0), { value: r && r[n++], done: !r };
2643
+ }
2644
+ };
2645
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
2646
+ }
2647
+ function Yr(r, t) {
2648
+ var e = typeof Symbol == "function" && r[Symbol.iterator];
2649
+ if (!e) return r;
2650
+ var n = e.call(r), o, i = [], a;
2651
+ try {
2652
+ for (; (t === void 0 || t-- > 0) && !(o = n.next()).done; ) i.push(o.value);
2653
+ } catch (u) {
2654
+ a = { error: u };
2655
+ } finally {
2656
+ try {
2657
+ o && !o.done && (e = n.return) && e.call(n);
2658
+ } finally {
2659
+ if (a) throw a.error;
2660
+ }
2661
+ }
2662
+ return i;
2663
+ }
2664
+ function Kr(r, t, e) {
2665
+ if (e || arguments.length === 2) for (var n = 0, o = t.length, i; n < o; n++)
2666
+ (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
2667
+ return r.concat(i || Array.prototype.slice.call(t));
2668
+ }
2669
+ function _r(r) {
2670
+ return this instanceof _r ? (this.v = r, this) : new _r(r);
2671
+ }
2672
+ function Za(r, t, e) {
2673
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2674
+ var n = e.apply(r, t || []), o, i = [];
2675
+ return o = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", a), o[Symbol.asyncIterator] = function() {
2676
+ return this;
2677
+ }, o;
2678
+ function a(h) {
2679
+ return function(g) {
2680
+ return Promise.resolve(g).then(h, p);
2681
+ };
2682
+ }
2683
+ function u(h, g) {
2684
+ n[h] && (o[h] = function(S) {
2685
+ return new Promise(function(A, O) {
2686
+ i.push([h, S, A, O]) > 1 || f(h, S);
2687
+ });
2688
+ }, g && (o[h] = g(o[h])));
2689
+ }
2690
+ function f(h, g) {
2691
+ try {
2692
+ s(n[h](g));
2693
+ } catch (S) {
2694
+ v(i[0][3], S);
2695
+ }
2696
+ }
2697
+ function s(h) {
2698
+ h.value instanceof _r ? Promise.resolve(h.value.v).then(y, p) : v(i[0][2], h);
2699
+ }
2700
+ function y(h) {
2701
+ f("next", h);
2702
+ }
2703
+ function p(h) {
2704
+ f("throw", h);
2705
+ }
2706
+ function v(h, g) {
2707
+ h(g), i.shift(), i.length && f(i[0][0], i[0][1]);
2708
+ }
2709
+ }
2710
+ function Qa(r) {
2711
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2712
+ var t = r[Symbol.asyncIterator], e;
2713
+ return t ? t.call(r) : (r = typeof xr == "function" ? xr(r) : r[Symbol.iterator](), e = {}, n("next"), n("throw"), n("return"), e[Symbol.asyncIterator] = function() {
2714
+ return this;
2715
+ }, e);
2716
+ function n(i) {
2717
+ e[i] = r[i] && function(a) {
2718
+ return new Promise(function(u, f) {
2719
+ a = r[i](a), o(u, f, a.done, a.value);
2720
+ });
2721
+ };
2722
+ }
2723
+ function o(i, a, u, f) {
2724
+ Promise.resolve(f).then(function(s) {
2725
+ i({ value: s, done: u });
2726
+ }, a);
2727
+ }
2728
+ }
2729
+ function Z(r) {
2730
+ return typeof r == "function";
2731
+ }
2732
+ function Ti(r) {
2733
+ var t = function(n) {
2734
+ Error.call(n), n.stack = new Error().stack;
2735
+ }, e = r(t);
2736
+ return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
2737
+ }
2738
+ var Jt = Ti(function(r) {
2739
+ return function(e) {
2740
+ r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
2741
+ ` + e.map(function(n, o) {
2742
+ return o + 1 + ") " + n.toString();
2743
+ }).join(`
2744
+ `) : "", this.name = "UnsubscriptionError", this.errors = e;
2745
+ };
2746
+ });
2747
+ function Xt(r, t) {
2748
+ if (r) {
2749
+ var e = r.indexOf(t);
2750
+ 0 <= e && r.splice(e, 1);
2751
+ }
2752
+ }
2753
+ var ee = (function() {
2754
+ function r(t) {
2755
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
2756
+ }
2757
+ return r.prototype.unsubscribe = function() {
2758
+ var t, e, n, o, i;
2759
+ if (!this.closed) {
2760
+ this.closed = !0;
2761
+ var a = this._parentage;
2762
+ if (a)
2763
+ if (this._parentage = null, Array.isArray(a))
2764
+ try {
2765
+ for (var u = xr(a), f = u.next(); !f.done; f = u.next()) {
2766
+ var s = f.value;
2767
+ s.remove(this);
2768
+ }
2769
+ } catch (S) {
2770
+ t = { error: S };
2771
+ } finally {
2772
+ try {
2773
+ f && !f.done && (e = u.return) && e.call(u);
2774
+ } finally {
2775
+ if (t) throw t.error;
2776
+ }
2777
+ }
2778
+ else
2779
+ a.remove(this);
2780
+ var y = this.initialTeardown;
2781
+ if (Z(y))
2782
+ try {
2783
+ y();
2784
+ } catch (S) {
2785
+ i = S instanceof Jt ? S.errors : [S];
2786
+ }
2787
+ var p = this._finalizers;
2788
+ if (p) {
2789
+ this._finalizers = null;
2790
+ try {
2791
+ for (var v = xr(p), h = v.next(); !h.done; h = v.next()) {
2792
+ var g = h.value;
2793
+ try {
2794
+ ui(g);
2795
+ } catch (S) {
2796
+ i = i ?? [], S instanceof Jt ? i = Kr(Kr([], Yr(i)), Yr(S.errors)) : i.push(S);
2797
+ }
2798
+ }
2799
+ } catch (S) {
2800
+ n = { error: S };
2801
+ } finally {
2802
+ try {
2803
+ h && !h.done && (o = v.return) && o.call(v);
2804
+ } finally {
2805
+ if (n) throw n.error;
2806
+ }
2807
+ }
2808
+ }
2809
+ if (i)
2810
+ throw new Jt(i);
2811
+ }
2812
+ }, r.prototype.add = function(t) {
2813
+ var e;
2814
+ if (t && t !== this)
2815
+ if (this.closed)
2816
+ ui(t);
2817
+ else {
2818
+ if (t instanceof r) {
2819
+ if (t.closed || t._hasParent(this))
2820
+ return;
2821
+ t._addParent(this);
2822
+ }
2823
+ (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
2824
+ }
2825
+ }, r.prototype._hasParent = function(t) {
2826
+ var e = this._parentage;
2827
+ return e === t || Array.isArray(e) && e.includes(t);
2828
+ }, r.prototype._addParent = function(t) {
2829
+ var e = this._parentage;
2830
+ this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
2831
+ }, r.prototype._removeParent = function(t) {
2832
+ var e = this._parentage;
2833
+ e === t ? this._parentage = null : Array.isArray(e) && Xt(e, t);
2834
+ }, r.prototype.remove = function(t) {
2835
+ var e = this._finalizers;
2836
+ e && Xt(e, t), t instanceof r && t._removeParent(this);
2837
+ }, r.EMPTY = (function() {
2838
+ var t = new r();
2839
+ return t.closed = !0, t;
2840
+ })(), r;
2841
+ })(), ji = ee.EMPTY;
2842
+ function Mi(r) {
2843
+ return r instanceof ee || r && "closed" in r && Z(r.remove) && Z(r.add) && Z(r.unsubscribe);
2844
+ }
2845
+ function ui(r) {
2846
+ Z(r) ? r() : r.unsubscribe();
2847
+ }
2848
+ var ru = {
2849
+ Promise: void 0
2850
+ }, eu = {
2851
+ setTimeout: function(r, t) {
2852
+ for (var e = [], n = 2; n < arguments.length; n++)
2853
+ e[n - 2] = arguments[n];
2854
+ return setTimeout.apply(void 0, Kr([r, t], Yr(e)));
2855
+ },
2856
+ clearTimeout: function(r) {
2857
+ return clearTimeout(r);
2858
+ },
2859
+ delegate: void 0
2860
+ };
2861
+ function Ci(r) {
2862
+ eu.setTimeout(function() {
2863
+ throw r;
2864
+ });
2865
+ }
2866
+ function fi() {
2867
+ }
2868
+ function Vr(r) {
2869
+ r();
2870
+ }
2871
+ var Fi = (function(r) {
2872
+ re(t, r);
2873
+ function t(e) {
2874
+ var n = r.call(this) || this;
2875
+ return n.isStopped = !1, e ? (n.destination = e, Mi(e) && e.add(n)) : n.destination = ou, n;
2876
+ }
2877
+ return t.create = function(e, n, o) {
2878
+ return new Fr(e, n, o);
2879
+ }, t.prototype.next = function(e) {
2880
+ this.isStopped || this._next(e);
2881
+ }, t.prototype.error = function(e) {
2882
+ this.isStopped || (this.isStopped = !0, this._error(e));
2883
+ }, t.prototype.complete = function() {
2884
+ this.isStopped || (this.isStopped = !0, this._complete());
2885
+ }, t.prototype.unsubscribe = function() {
2886
+ this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
2887
+ }, t.prototype._next = function(e) {
2888
+ this.destination.next(e);
2889
+ }, t.prototype._error = function(e) {
2890
+ try {
2891
+ this.destination.error(e);
2892
+ } finally {
2893
+ this.unsubscribe();
2894
+ }
2895
+ }, t.prototype._complete = function() {
2896
+ try {
2897
+ this.destination.complete();
2898
+ } finally {
2899
+ this.unsubscribe();
2900
+ }
2901
+ }, t;
2902
+ })(ee), tu = (function() {
2903
+ function r(t) {
2904
+ this.partialObserver = t;
2905
+ }
2906
+ return r.prototype.next = function(t) {
2907
+ var e = this.partialObserver;
2908
+ if (e.next)
2909
+ try {
2910
+ e.next(t);
2911
+ } catch (n) {
2912
+ zr(n);
2913
+ }
2914
+ }, r.prototype.error = function(t) {
2915
+ var e = this.partialObserver;
2916
+ if (e.error)
2917
+ try {
2918
+ e.error(t);
2919
+ } catch (n) {
2920
+ zr(n);
2921
+ }
2922
+ else
2923
+ zr(t);
2924
+ }, r.prototype.complete = function() {
2925
+ var t = this.partialObserver;
2926
+ if (t.complete)
2927
+ try {
2928
+ t.complete();
2929
+ } catch (e) {
2930
+ zr(e);
2931
+ }
2932
+ }, r;
2933
+ })(), Fr = (function(r) {
2934
+ re(t, r);
2935
+ function t(e, n, o) {
2936
+ var i = r.call(this) || this, a;
2937
+ return Z(e) || !e ? a = {
2938
+ next: e ?? void 0,
2939
+ error: n ?? void 0,
2940
+ complete: o ?? void 0
2941
+ } : a = e, i.destination = new tu(a), i;
2942
+ }
2943
+ return t;
2944
+ })(Fi);
2945
+ function zr(r) {
2946
+ Ci(r);
2947
+ }
2948
+ function nu(r) {
2949
+ throw r;
2950
+ }
2951
+ var ou = {
2952
+ closed: !0,
2953
+ next: fi,
2954
+ error: nu,
2955
+ complete: fi
2956
+ }, cn = (function() {
2957
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
2958
+ })();
2959
+ function iu(r) {
2960
+ return r;
2961
+ }
2962
+ function au(r) {
2963
+ return r.length === 0 ? iu : r.length === 1 ? r[0] : function(e) {
2964
+ return r.reduce(function(n, o) {
2965
+ return o(n);
2966
+ }, e);
2967
+ };
2968
+ }
2969
+ var mr = (function() {
2970
+ function r(t) {
2971
+ t && (this._subscribe = t);
2972
+ }
2973
+ return r.prototype.lift = function(t) {
2974
+ var e = new r();
2975
+ return e.source = this, e.operator = t, e;
2976
+ }, r.prototype.subscribe = function(t, e, n) {
2977
+ var o = this, i = fu(t) ? t : new Fr(t, e, n);
2978
+ return Vr(function() {
2979
+ var a = o, u = a.operator, f = a.source;
2980
+ i.add(u ? u.call(i, f) : f ? o._subscribe(i) : o._trySubscribe(i));
2981
+ }), i;
2982
+ }, r.prototype._trySubscribe = function(t) {
2983
+ try {
2984
+ return this._subscribe(t);
2985
+ } catch (e) {
2986
+ t.error(e);
2987
+ }
2988
+ }, r.prototype.forEach = function(t, e) {
2989
+ var n = this;
2990
+ return e = si(e), new e(function(o, i) {
2991
+ var a = new Fr({
2992
+ next: function(u) {
2993
+ try {
2994
+ t(u);
2995
+ } catch (f) {
2996
+ i(f), a.unsubscribe();
2997
+ }
2998
+ },
2999
+ error: i,
3000
+ complete: o
3001
+ });
3002
+ n.subscribe(a);
3003
+ });
3004
+ }, r.prototype._subscribe = function(t) {
3005
+ var e;
3006
+ return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
3007
+ }, r.prototype[cn] = function() {
3008
+ return this;
3009
+ }, r.prototype.pipe = function() {
3010
+ for (var t = [], e = 0; e < arguments.length; e++)
3011
+ t[e] = arguments[e];
3012
+ return au(t)(this);
3013
+ }, r.prototype.toPromise = function(t) {
3014
+ var e = this;
3015
+ return t = si(t), new t(function(n, o) {
3016
+ var i;
3017
+ e.subscribe(function(a) {
3018
+ return i = a;
3019
+ }, function(a) {
3020
+ return o(a);
3021
+ }, function() {
3022
+ return n(i);
3023
+ });
3024
+ });
3025
+ }, r.create = function(t) {
3026
+ return new r(t);
3027
+ }, r;
3028
+ })();
3029
+ function si(r) {
3030
+ var t;
3031
+ return (t = r ?? ru.Promise) !== null && t !== void 0 ? t : Promise;
3032
+ }
3033
+ function uu(r) {
3034
+ return r && Z(r.next) && Z(r.error) && Z(r.complete);
3035
+ }
3036
+ function fu(r) {
3037
+ return r && r instanceof Fi || uu(r) && Mi(r);
3038
+ }
3039
+ function su(r) {
3040
+ return Z(r?.lift);
3041
+ }
3042
+ function cu(r) {
3043
+ return function(t) {
3044
+ if (su(t))
3045
+ return t.lift(function(e) {
3046
+ try {
3047
+ return r(e, this);
3048
+ } catch (n) {
3049
+ this.error(n);
3050
+ }
3051
+ });
3052
+ throw new TypeError("Unable to lift unknown Observable type");
3053
+ };
3054
+ }
3055
+ var lu = Ti(function(r) {
3056
+ return function() {
3057
+ r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
3058
+ };
3059
+ }), Di = (function(r) {
3060
+ re(t, r);
3061
+ function t() {
3062
+ var e = r.call(this) || this;
3063
+ return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
3064
+ }
3065
+ return t.prototype.lift = function(e) {
3066
+ var n = new ci(this, this);
3067
+ return n.operator = e, n;
3068
+ }, t.prototype._throwIfClosed = function() {
3069
+ if (this.closed)
3070
+ throw new lu();
3071
+ }, t.prototype.next = function(e) {
3072
+ var n = this;
3073
+ Vr(function() {
3074
+ var o, i;
3075
+ if (n._throwIfClosed(), !n.isStopped) {
3076
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
3077
+ try {
3078
+ for (var a = xr(n.currentObservers), u = a.next(); !u.done; u = a.next()) {
3079
+ var f = u.value;
3080
+ f.next(e);
3081
+ }
3082
+ } catch (s) {
3083
+ o = { error: s };
3084
+ } finally {
3085
+ try {
3086
+ u && !u.done && (i = a.return) && i.call(a);
3087
+ } finally {
3088
+ if (o) throw o.error;
3089
+ }
3090
+ }
3091
+ }
3092
+ });
3093
+ }, t.prototype.error = function(e) {
3094
+ var n = this;
3095
+ Vr(function() {
3096
+ if (n._throwIfClosed(), !n.isStopped) {
3097
+ n.hasError = n.isStopped = !0, n.thrownError = e;
3098
+ for (var o = n.observers; o.length; )
3099
+ o.shift().error(e);
3100
+ }
3101
+ });
3102
+ }, t.prototype.complete = function() {
3103
+ var e = this;
3104
+ Vr(function() {
3105
+ if (e._throwIfClosed(), !e.isStopped) {
3106
+ e.isStopped = !0;
3107
+ for (var n = e.observers; n.length; )
3108
+ n.shift().complete();
3109
+ }
3110
+ });
3111
+ }, t.prototype.unsubscribe = function() {
3112
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
3113
+ }, Object.defineProperty(t.prototype, "observed", {
3114
+ get: function() {
3115
+ var e;
3116
+ return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0;
3117
+ },
3118
+ enumerable: !1,
3119
+ configurable: !0
3120
+ }), t.prototype._trySubscribe = function(e) {
3121
+ return this._throwIfClosed(), r.prototype._trySubscribe.call(this, e);
3122
+ }, t.prototype._subscribe = function(e) {
3123
+ return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
3124
+ }, t.prototype._innerSubscribe = function(e) {
3125
+ var n = this, o = this, i = o.hasError, a = o.isStopped, u = o.observers;
3126
+ return i || a ? ji : (this.currentObservers = null, u.push(e), new ee(function() {
3127
+ n.currentObservers = null, Xt(u, e);
3128
+ }));
3129
+ }, t.prototype._checkFinalizedStatuses = function(e) {
3130
+ var n = this, o = n.hasError, i = n.thrownError, a = n.isStopped;
3131
+ o ? e.error(i) : a && e.complete();
3132
+ }, t.prototype.asObservable = function() {
3133
+ var e = new mr();
3134
+ return e.source = this, e;
3135
+ }, t.create = function(e, n) {
3136
+ return new ci(e, n);
3137
+ }, t;
3138
+ })(mr), ci = (function(r) {
3139
+ re(t, r);
3140
+ function t(e, n) {
3141
+ var o = r.call(this) || this;
3142
+ return o.destination = e, o.source = n, o;
3143
+ }
3144
+ return t.prototype.next = function(e) {
3145
+ var n, o;
3146
+ (o = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || o === void 0 || o.call(n, e);
3147
+ }, t.prototype.error = function(e) {
3148
+ var n, o;
3149
+ (o = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || o === void 0 || o.call(n, e);
3150
+ }, t.prototype.complete = function() {
3151
+ var e, n;
3152
+ (n = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || n === void 0 || n.call(e);
3153
+ }, t.prototype._subscribe = function(e) {
3154
+ var n, o;
3155
+ return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && o !== void 0 ? o : ji;
3156
+ }, t;
3157
+ })(Di), pu = (function(r) {
3158
+ return r && typeof r.length == "number" && typeof r != "function";
3159
+ });
3160
+ function yu(r) {
3161
+ return Z(r?.then);
3162
+ }
3163
+ function vu(r) {
3164
+ return Z(r[cn]);
3165
+ }
3166
+ function hu(r) {
3167
+ return Symbol.asyncIterator && Z(r?.[Symbol.asyncIterator]);
3168
+ }
3169
+ function du(r) {
3170
+ return new TypeError("You provided " + (r !== null && typeof r == "object" ? "an invalid object" : "'" + r + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
3171
+ }
3172
+ function gu() {
3173
+ return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
3174
+ }
3175
+ var mu = gu();
3176
+ function bu(r) {
3177
+ return Z(r?.[mu]);
3178
+ }
3179
+ function Su(r) {
3180
+ return Za(this, arguments, function() {
3181
+ var e, n, o, i;
3182
+ return xi(this, function(a) {
3183
+ switch (a.label) {
3184
+ case 0:
3185
+ e = r.getReader(), a.label = 1;
3186
+ case 1:
3187
+ a.trys.push([1, , 9, 10]), a.label = 2;
3188
+ case 2:
3189
+ return [4, _r(e.read())];
3190
+ case 3:
3191
+ return n = a.sent(), o = n.value, i = n.done, i ? [4, _r(void 0)] : [3, 5];
3192
+ case 4:
3193
+ return [2, a.sent()];
3194
+ case 5:
3195
+ return [4, _r(o)];
3196
+ case 6:
3197
+ return [4, a.sent()];
3198
+ case 7:
3199
+ return a.sent(), [3, 2];
3200
+ case 8:
3201
+ return [3, 10];
3202
+ case 9:
3203
+ return e.releaseLock(), [7];
3204
+ case 10:
3205
+ return [2];
3206
+ }
3207
+ });
3208
+ });
3209
+ }
3210
+ function wu(r) {
3211
+ return Z(r?.getReader);
3212
+ }
3213
+ function Wi(r) {
3214
+ if (r instanceof mr)
3215
+ return r;
3216
+ if (r != null) {
3217
+ if (vu(r))
3218
+ return Au(r);
3219
+ if (pu(r))
3220
+ return Ou(r);
3221
+ if (yu(r))
3222
+ return Pu(r);
3223
+ if (hu(r))
3224
+ return ki(r);
3225
+ if (bu(r))
3226
+ return Iu(r);
3227
+ if (wu(r))
3228
+ return Eu(r);
3229
+ }
3230
+ throw du(r);
3231
+ }
3232
+ function Au(r) {
3233
+ return new mr(function(t) {
3234
+ var e = r[cn]();
3235
+ if (Z(e.subscribe))
3236
+ return e.subscribe(t);
3237
+ throw new TypeError("Provided object does not correctly implement Symbol.observable");
3238
+ });
3239
+ }
3240
+ function Ou(r) {
3241
+ return new mr(function(t) {
3242
+ for (var e = 0; e < r.length && !t.closed; e++)
3243
+ t.next(r[e]);
3244
+ t.complete();
3245
+ });
3246
+ }
3247
+ function Pu(r) {
3248
+ return new mr(function(t) {
3249
+ r.then(function(e) {
3250
+ t.closed || (t.next(e), t.complete());
3251
+ }, function(e) {
3252
+ return t.error(e);
3253
+ }).then(null, Ci);
3254
+ });
3255
+ }
3256
+ function Iu(r) {
3257
+ return new mr(function(t) {
3258
+ var e, n;
3259
+ try {
3260
+ for (var o = xr(r), i = o.next(); !i.done; i = o.next()) {
3261
+ var a = i.value;
3262
+ if (t.next(a), t.closed)
3263
+ return;
3264
+ }
3265
+ } catch (u) {
3266
+ e = { error: u };
3267
+ } finally {
3268
+ try {
3269
+ i && !i.done && (n = o.return) && n.call(o);
3270
+ } finally {
3271
+ if (e) throw e.error;
3272
+ }
3273
+ }
3274
+ t.complete();
3275
+ });
3276
+ }
3277
+ function ki(r) {
3278
+ return new mr(function(t) {
3279
+ qu(r, t).catch(function(e) {
3280
+ return t.error(e);
3281
+ });
3282
+ });
3283
+ }
3284
+ function Eu(r) {
3285
+ return ki(Su(r));
3286
+ }
3287
+ function qu(r, t) {
3288
+ var e, n, o, i;
3289
+ return Xa(this, void 0, void 0, function() {
3290
+ var a, u;
3291
+ return xi(this, function(f) {
3292
+ switch (f.label) {
3293
+ case 0:
3294
+ f.trys.push([0, 5, 6, 11]), e = Qa(r), f.label = 1;
3295
+ case 1:
3296
+ return [4, e.next()];
3297
+ case 2:
3298
+ if (n = f.sent(), !!n.done) return [3, 4];
3299
+ if (a = n.value, t.next(a), t.closed)
3300
+ return [2];
3301
+ f.label = 3;
3302
+ case 3:
3303
+ return [3, 1];
3304
+ case 4:
3305
+ return [3, 11];
3306
+ case 5:
3307
+ return u = f.sent(), o = { error: u }, [3, 11];
3308
+ case 6:
3309
+ return f.trys.push([6, , 9, 10]), n && !n.done && (i = e.return) ? [4, i.call(e)] : [3, 8];
3310
+ case 7:
3311
+ f.sent(), f.label = 8;
3312
+ case 8:
3313
+ return [3, 10];
3314
+ case 9:
3315
+ if (o) throw o.error;
3316
+ return [7];
3317
+ case 10:
3318
+ return [7];
3319
+ case 11:
3320
+ return t.complete(), [2];
3321
+ }
3322
+ });
3323
+ });
3324
+ }
3325
+ function Ru(r) {
3326
+ r === void 0 && (r = {});
3327
+ var t = r.connector, e = t === void 0 ? function() {
3328
+ return new Di();
3329
+ } : t, n = r.resetOnError, o = n === void 0 ? !0 : n, i = r.resetOnComplete, a = i === void 0 ? !0 : i, u = r.resetOnRefCountZero, f = u === void 0 ? !0 : u;
3330
+ return function(s) {
3331
+ var y, p, v, h = 0, g = !1, S = !1, A = function() {
3332
+ p?.unsubscribe(), p = void 0;
3333
+ }, O = function() {
3334
+ A(), y = v = void 0, g = S = !1;
3335
+ }, I = function() {
3336
+ var b = y;
3337
+ O(), b?.unsubscribe();
3338
+ };
3339
+ return cu(function(b, T) {
3340
+ h++, !S && !g && A();
3341
+ var H = v = v ?? e();
3342
+ T.add(function() {
3343
+ h--, h === 0 && !S && !g && (p = Yt(I, f));
3344
+ }), H.subscribe(T), !y && h > 0 && (y = new Fr({
3345
+ next: function(W) {
3346
+ return H.next(W);
3347
+ },
3348
+ error: function(W) {
3349
+ S = !0, A(), p = Yt(O, o, W), H.error(W);
3350
+ },
3351
+ complete: function() {
3352
+ g = !0, A(), p = Yt(O, a), H.complete();
3353
+ }
3354
+ }), Wi(b).subscribe(y));
3355
+ })(s);
3356
+ };
3357
+ }
3358
+ function Yt(r, t) {
3359
+ for (var e = [], n = 2; n < arguments.length; n++)
3360
+ e[n - 2] = arguments[n];
3361
+ if (t === !0) {
3362
+ r();
3363
+ return;
3364
+ }
3365
+ if (t !== !1) {
3366
+ var o = new Fr({
3367
+ next: function() {
3368
+ o.unsubscribe(), r();
3369
+ }
3370
+ });
3371
+ return Wi(t.apply(void 0, Kr([], Yr(e)))).subscribe(o);
3372
+ }
3373
+ }
3374
+ function Bu({ pipe: r }) {
3375
+ return {
3376
+ createTopic(t) {
3377
+ function e(n, { onData: o, ...i }) {
3378
+ const [a, u] = Hi(), f = le(o), s = le(i);
3379
+ f.current = o, s.current = i;
3380
+ const y = le(null);
3381
+ return (y.current === null || !Ka(y.current, n)) && (y.current = n), zi(() => {
3382
+ const v = r.topic(t, y.current).pipe(Ru()).subscribe((h) => {
3383
+ u(h), f.current?.(h);
3384
+ const [g, S] = h;
3385
+ s.current[g]?.(S);
3386
+ });
3387
+ return () => v.unsubscribe();
3388
+ }, [y.current]), { data: a };
3389
+ }
3390
+ return e.topic = (n) => r.topic(t, n), e;
3391
+ }
3392
+ };
3393
+ }
3394
+ export {
3395
+ Bu as mkPipeClient
3396
+ };