@harbour-enterprises/superdoc 0.9.40 → 0.9.41

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.
Files changed (30) hide show
  1. package/dist/chunks/{index-B1HJFsYK.cjs → index-DHS2ANjv.cjs} +1 -1
  2. package/dist/chunks/{index-9h_Kn-Dm.es.js → index-Dd_ce0Er.es.js} +1 -1
  3. package/dist/chunks/{index-g2tCwKji.es.js → index-XHRxRUhd.es.js} +2 -2
  4. package/dist/chunks/{index-vGJ1t7OQ.cjs → index-YqE5-6V1.cjs} +1 -1
  5. package/dist/chunks/{super-editor.es-BPWmPyPV.cjs → super-editor.es-CvEL3yTX.cjs} +2 -2
  6. package/dist/chunks/{super-editor.es-BMGaeJBV.es.js → super-editor.es-DaEia7dE.es.js} +8 -6
  7. package/dist/chunks/{url-DOH7Dv51.es.js → url-BWFemt_V.es.js} +1 -1
  8. package/dist/chunks/{url-B-X4NWGe.cjs → url-Cqg7fbSS.cjs} +1 -1
  9. package/dist/chunks/xml-js-Bzw8Bo_u.es.js +1739 -0
  10. package/dist/chunks/xml-js-Zwb1wsIy.cjs +10 -0
  11. package/dist/super-editor/chunks/{converter-3lmRyrJr.js → converter-BGnpy7ml.js} +7 -5
  12. package/dist/super-editor/chunks/{docx-zipper-pzhEkORK.js → docx-zipper-CbKyfcc7.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-B7eTfGQw.js → editor-Dhm1VNRS.js} +3 -3
  14. package/dist/super-editor/chunks/{toolbar-BfM-mqT5.js → toolbar-BvozKXMi.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/super-editor.es.js +6 -6
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.es.js +1 -1
  24. package/dist/superdoc.cjs +3 -3
  25. package/dist/superdoc.es.js +6 -6
  26. package/dist/superdoc.umd.js +9 -7
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/xml-js-BZ27jOyf.cjs +0 -10
  30. package/dist/chunks/xml-js-BgrWeyJ9.es.js +0 -1786
@@ -1,1786 +0,0 @@
1
- import { a as Ot, d as Pt, c as Oe } from "./jszip-DSGi1sNe.es.js";
2
- import { p as L } from "./vue-BDbTsTMu.es.js";
3
- var rr = { exports: {} };
4
- typeof Object.create == "function" ? rr.exports = function(e, t) {
5
- t && (e.super_ = t, e.prototype = Object.create(t.prototype, {
6
- constructor: {
7
- value: e,
8
- enumerable: !1,
9
- writable: !0,
10
- configurable: !0
11
- }
12
- }));
13
- } : rr.exports = function(e, t) {
14
- if (t) {
15
- e.super_ = t;
16
- var n = function() {
17
- };
18
- n.prototype = t.prototype, e.prototype = new n(), e.prototype.constructor = e;
19
- }
20
- };
21
- var Et = rr.exports, ur = { exports: {} }, re = typeof Reflect == "object" ? Reflect : null, vr = re && typeof re.apply == "function" ? re.apply : function(e, t, n) {
22
- return Function.prototype.apply.call(e, t, n);
23
- }, ve;
24
- re && typeof re.ownKeys == "function" ? ve = re.ownKeys : Object.getOwnPropertySymbols ? ve = function(e) {
25
- return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
26
- } : ve = function(e) {
27
- return Object.getOwnPropertyNames(e);
28
- };
29
- function jt(r) {
30
- console && console.warn && console.warn(r);
31
- }
32
- var qr = Number.isNaN || function(e) {
33
- return e !== e;
34
- };
35
- function P() {
36
- P.init.call(this);
37
- }
38
- ur.exports = P;
39
- ur.exports.once = Ft;
40
- P.EventEmitter = P;
41
- P.prototype._events = void 0;
42
- P.prototype._eventsCount = 0;
43
- P.prototype._maxListeners = void 0;
44
- var mr = 10;
45
- function Be(r) {
46
- if (typeof r != "function")
47
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof r);
48
- }
49
- Object.defineProperty(P, "defaultMaxListeners", {
50
- enumerable: !0,
51
- get: function() {
52
- return mr;
53
- },
54
- set: function(r) {
55
- if (typeof r != "number" || r < 0 || qr(r))
56
- throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + r + ".");
57
- mr = r;
58
- }
59
- });
60
- P.init = function() {
61
- (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
62
- };
63
- P.prototype.setMaxListeners = function(e) {
64
- if (typeof e != "number" || e < 0 || qr(e))
65
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
66
- return this._maxListeners = e, this;
67
- };
68
- function zr(r) {
69
- return r._maxListeners === void 0 ? P.defaultMaxListeners : r._maxListeners;
70
- }
71
- P.prototype.getMaxListeners = function() {
72
- return zr(this);
73
- };
74
- P.prototype.emit = function(e) {
75
- for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]);
76
- var o = e === "error", c = this._events;
77
- if (c !== void 0)
78
- o = o && c.error === void 0;
79
- else if (!o)
80
- return !1;
81
- if (o) {
82
- var u;
83
- if (t.length > 0 && (u = t[0]), u instanceof Error)
84
- throw u;
85
- var y = new Error("Unhandled error." + (u ? " (" + u.message + ")" : ""));
86
- throw y.context = u, y;
87
- }
88
- var p = c[e];
89
- if (p === void 0)
90
- return !1;
91
- if (typeof p == "function")
92
- vr(p, this, t);
93
- else
94
- for (var m = p.length, w = Zr(p, m), n = 0; n < m; ++n)
95
- vr(w[n], this, t);
96
- return !0;
97
- };
98
- function Vr(r, e, t, n) {
99
- var o, c, u;
100
- if (Be(t), c = r._events, c === void 0 ? (c = r._events = /* @__PURE__ */ Object.create(null), r._eventsCount = 0) : (c.newListener !== void 0 && (r.emit(
101
- "newListener",
102
- e,
103
- t.listener ? t.listener : t
104
- ), c = r._events), u = c[e]), u === void 0)
105
- u = c[e] = t, ++r._eventsCount;
106
- else if (typeof u == "function" ? u = c[e] = n ? [t, u] : [u, t] : n ? u.unshift(t) : u.push(t), o = zr(r), o > 0 && u.length > o && !u.warned) {
107
- u.warned = !0;
108
- var y = new Error("Possible EventEmitter memory leak detected. " + u.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
109
- y.name = "MaxListenersExceededWarning", y.emitter = r, y.type = e, y.count = u.length, jt(y);
110
- }
111
- return r;
112
- }
113
- P.prototype.addListener = function(e, t) {
114
- return Vr(this, e, t, !1);
115
- };
116
- P.prototype.on = P.prototype.addListener;
117
- P.prototype.prependListener = function(e, t) {
118
- return Vr(this, e, t, !0);
119
- };
120
- function $t() {
121
- if (!this.fired)
122
- return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
123
- }
124
- function Hr(r, e, t) {
125
- var n = { fired: !1, wrapFn: void 0, target: r, type: e, listener: t }, o = $t.bind(n);
126
- return o.listener = t, n.wrapFn = o, o;
127
- }
128
- P.prototype.once = function(e, t) {
129
- return Be(t), this.on(e, Hr(this, e, t)), this;
130
- };
131
- P.prototype.prependOnceListener = function(e, t) {
132
- return Be(t), this.prependListener(e, Hr(this, e, t)), this;
133
- };
134
- P.prototype.removeListener = function(e, t) {
135
- var n, o, c, u, y;
136
- if (Be(t), o = this._events, o === void 0)
137
- return this;
138
- if (n = o[e], n === void 0)
139
- return this;
140
- if (n === t || n.listener === t)
141
- --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete o[e], o.removeListener && this.emit("removeListener", e, n.listener || t));
142
- else if (typeof n != "function") {
143
- for (c = -1, u = n.length - 1; u >= 0; u--)
144
- if (n[u] === t || n[u].listener === t) {
145
- y = n[u].listener, c = u;
146
- break;
147
- }
148
- if (c < 0)
149
- return this;
150
- c === 0 ? n.shift() : Bt(n, c), n.length === 1 && (o[e] = n[0]), o.removeListener !== void 0 && this.emit("removeListener", e, y || t);
151
- }
152
- return this;
153
- };
154
- P.prototype.off = P.prototype.removeListener;
155
- P.prototype.removeAllListeners = function(e) {
156
- var t, n, o;
157
- if (n = this._events, n === void 0)
158
- return this;
159
- if (n.removeListener === void 0)
160
- return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : n[e] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete n[e]), this;
161
- if (arguments.length === 0) {
162
- var c = Object.keys(n), u;
163
- for (o = 0; o < c.length; ++o)
164
- u = c[o], u !== "removeListener" && this.removeAllListeners(u);
165
- return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
166
- }
167
- if (t = n[e], typeof t == "function")
168
- this.removeListener(e, t);
169
- else if (t !== void 0)
170
- for (o = t.length - 1; o >= 0; o--)
171
- this.removeListener(e, t[o]);
172
- return this;
173
- };
174
- function Jr(r, e, t) {
175
- var n = r._events;
176
- if (n === void 0)
177
- return [];
178
- var o = n[e];
179
- return o === void 0 ? [] : typeof o == "function" ? t ? [o.listener || o] : [o] : t ? Tt(o) : Zr(o, o.length);
180
- }
181
- P.prototype.listeners = function(e) {
182
- return Jr(this, e, !0);
183
- };
184
- P.prototype.rawListeners = function(e) {
185
- return Jr(this, e, !1);
186
- };
187
- P.listenerCount = function(r, e) {
188
- return typeof r.listenerCount == "function" ? r.listenerCount(e) : Kr.call(r, e);
189
- };
190
- P.prototype.listenerCount = Kr;
191
- function Kr(r) {
192
- var e = this._events;
193
- if (e !== void 0) {
194
- var t = e[r];
195
- if (typeof t == "function")
196
- return 1;
197
- if (t !== void 0)
198
- return t.length;
199
- }
200
- return 0;
201
- }
202
- P.prototype.eventNames = function() {
203
- return this._eventsCount > 0 ? ve(this._events) : [];
204
- };
205
- function Zr(r, e) {
206
- for (var t = new Array(e), n = 0; n < e; ++n)
207
- t[n] = r[n];
208
- return t;
209
- }
210
- function Bt(r, e) {
211
- for (; e + 1 < r.length; e++)
212
- r[e] = r[e + 1];
213
- r.pop();
214
- }
215
- function Tt(r) {
216
- for (var e = new Array(r.length), t = 0; t < e.length; ++t)
217
- e[t] = r[t].listener || r[t];
218
- return e;
219
- }
220
- function Ft(r, e) {
221
- return new Promise(function(t, n) {
222
- function o(u) {
223
- r.removeListener(e, c), n(u);
224
- }
225
- function c() {
226
- typeof r.removeListener == "function" && r.removeListener("error", o), t([].slice.call(arguments));
227
- }
228
- Yr(r, e, c, { once: !0 }), e !== "error" && Rt(r, o, { once: !0 });
229
- });
230
- }
231
- function Rt(r, e, t) {
232
- typeof r.on == "function" && Yr(r, "error", e, t);
233
- }
234
- function Yr(r, e, t, n) {
235
- if (typeof r.on == "function")
236
- n.once ? r.once(e, t) : r.on(e, t);
237
- else if (typeof r.addEventListener == "function")
238
- r.addEventListener(e, function o(c) {
239
- n.once && r.removeEventListener(e, o), t(c);
240
- });
241
- else
242
- throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof r);
243
- }
244
- var Qo = ur.exports;
245
- const It = /* @__PURE__ */ Ot(Pt);
246
- var Nt = {}, Qr = {}, Ce, br;
247
- function Xr() {
248
- return br || (br = 1, Ce = function() {
249
- if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
250
- return !1;
251
- if (typeof Symbol.iterator == "symbol")
252
- return !0;
253
- var e = {}, t = Symbol("test"), n = Object(t);
254
- if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
255
- return !1;
256
- var o = 42;
257
- e[t] = o;
258
- for (var c in e)
259
- return !1;
260
- if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
261
- return !1;
262
- var u = Object.getOwnPropertySymbols(e);
263
- if (u.length !== 1 || u[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
264
- return !1;
265
- if (typeof Object.getOwnPropertyDescriptor == "function") {
266
- var y = (
267
- /** @type {PropertyDescriptor} */
268
- Object.getOwnPropertyDescriptor(e, t)
269
- );
270
- if (y.value !== o || y.enumerable !== !0)
271
- return !1;
272
- }
273
- return !0;
274
- }), Ce;
275
- }
276
- var _t = Xr(), Te = function() {
277
- return _t() && !!Symbol.toStringTag;
278
- }, et = Object, Ct = Error, Lt = EvalError, Ut = RangeError, Dt = ReferenceError, rt = SyntaxError, fe = TypeError, Mt = URIError, kt = Math.abs, Gt = Math.floor, xt = Math.max, Wt = Math.min, qt = Math.pow, zt = Math.round, Vt = Number.isNaN || function(e) {
279
- return e !== e;
280
- }, Ht = Vt, Jt = function(e) {
281
- return Ht(e) || e === 0 ? e : e < 0 ? -1 : 1;
282
- }, Kt = Object.getOwnPropertyDescriptor, me = Kt;
283
- if (me)
284
- try {
285
- me([], "length");
286
- } catch {
287
- me = null;
288
- }
289
- var oe = me, be = Object.defineProperty || !1;
290
- if (be)
291
- try {
292
- be({}, "a", { value: 1 });
293
- } catch {
294
- be = !1;
295
- }
296
- var Fe = be, Le, Ar;
297
- function Zt() {
298
- if (Ar) return Le;
299
- Ar = 1;
300
- var r = typeof Symbol < "u" && Symbol, e = Xr();
301
- return Le = function() {
302
- return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
303
- }, Le;
304
- }
305
- var Ue, wr;
306
- function tt() {
307
- return wr || (wr = 1, Ue = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ue;
308
- }
309
- var De, Sr;
310
- function nt() {
311
- if (Sr) return De;
312
- Sr = 1;
313
- var r = et;
314
- return De = r.getPrototypeOf || null, De;
315
- }
316
- var Me, Or;
317
- function Yt() {
318
- if (Or) return Me;
319
- Or = 1;
320
- var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", o = function(p, m) {
321
- for (var w = [], $ = 0; $ < p.length; $ += 1)
322
- w[$] = p[$];
323
- for (var E = 0; E < m.length; E += 1)
324
- w[E + p.length] = m[E];
325
- return w;
326
- }, c = function(p, m) {
327
- for (var w = [], $ = m, E = 0; $ < p.length; $ += 1, E += 1)
328
- w[E] = p[$];
329
- return w;
330
- }, u = function(y, p) {
331
- for (var m = "", w = 0; w < y.length; w += 1)
332
- m += y[w], w + 1 < y.length && (m += p);
333
- return m;
334
- };
335
- return Me = function(p) {
336
- var m = this;
337
- if (typeof m != "function" || e.apply(m) !== n)
338
- throw new TypeError(r + m);
339
- for (var w = c(arguments, 1), $, E = function() {
340
- if (this instanceof $) {
341
- var a = m.apply(
342
- this,
343
- o(w, arguments)
344
- );
345
- return Object(a) === a ? a : this;
346
- }
347
- return m.apply(
348
- p,
349
- o(w, arguments)
350
- );
351
- }, _ = t(0, m.length - w.length), T = [], I = 0; I < _; I++)
352
- T[I] = "$" + I;
353
- if ($ = Function("binder", "return function (" + u(T, ",") + "){ return binder.apply(this,arguments); }")(E), m.prototype) {
354
- var C = function() {
355
- };
356
- C.prototype = m.prototype, $.prototype = new C(), C.prototype = null;
357
- }
358
- return $;
359
- }, Me;
360
- }
361
- var ke, Pr;
362
- function se() {
363
- if (Pr) return ke;
364
- Pr = 1;
365
- var r = Yt();
366
- return ke = Function.prototype.bind || r, ke;
367
- }
368
- var Ge, Er;
369
- function lr() {
370
- return Er || (Er = 1, Ge = Function.prototype.call), Ge;
371
- }
372
- var xe, jr;
373
- function cr() {
374
- return jr || (jr = 1, xe = Function.prototype.apply), xe;
375
- }
376
- var Qt = typeof Reflect < "u" && Reflect && Reflect.apply, Xt = se(), en = cr(), rn = lr(), tn = Qt, ot = tn || Xt.call(rn, en), nn = se(), on = fe, an = lr(), fn = ot, yr = function(e) {
377
- if (e.length < 1 || typeof e[0] != "function")
378
- throw new on("a function is required");
379
- return fn(nn, an, e);
380
- }, We, $r;
381
- function sn() {
382
- if ($r) return We;
383
- $r = 1;
384
- var r = yr, e = oe, t;
385
- try {
386
- t = /** @type {{ __proto__?: typeof Array.prototype }} */
387
- [].__proto__ === Array.prototype;
388
- } catch (u) {
389
- if (!u || typeof u != "object" || !("code" in u) || u.code !== "ERR_PROTO_ACCESS")
390
- throw u;
391
- }
392
- var n = !!t && e && e(
393
- Object.prototype,
394
- /** @type {keyof typeof Object.prototype} */
395
- "__proto__"
396
- ), o = Object, c = o.getPrototypeOf;
397
- return We = n && typeof n.get == "function" ? r([n.get]) : typeof c == "function" ? (
398
- /** @type {import('./get')} */
399
- function(y) {
400
- return c(y == null ? y : o(y));
401
- }
402
- ) : !1, We;
403
- }
404
- var qe, Br;
405
- function pr() {
406
- if (Br) return qe;
407
- Br = 1;
408
- var r = tt(), e = nt(), t = sn();
409
- return qe = r ? function(o) {
410
- return r(o);
411
- } : e ? function(o) {
412
- if (!o || typeof o != "object" && typeof o != "function")
413
- throw new TypeError("getProto: not an object");
414
- return e(o);
415
- } : t ? function(o) {
416
- return t(o);
417
- } : null, qe;
418
- }
419
- var ze, Tr;
420
- function it() {
421
- if (Tr) return ze;
422
- Tr = 1;
423
- var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = se();
424
- return ze = t.call(r, e), ze;
425
- }
426
- var v, un = et, ln = Ct, cn = Lt, yn = Ut, pn = Dt, ne = rt, te = fe, dn = Mt, hn = kt, gn = Gt, vn = xt, mn = Wt, bn = qt, An = zt, wn = Jt, at = Function, Ve = function(r) {
427
- try {
428
- return at('"use strict"; return (' + r + ").constructor;")();
429
- } catch {
430
- }
431
- }, ae = oe, Sn = Fe, He = function() {
432
- throw new te();
433
- }, On = ae ? function() {
434
- try {
435
- return arguments.callee, He;
436
- } catch {
437
- try {
438
- return ae(arguments, "callee").get;
439
- } catch {
440
- return He;
441
- }
442
- }
443
- }() : He, Y = Zt()(), F = pr(), Pn = nt(), En = tt(), ft = cr(), ue = lr(), X = {}, jn = typeof Uint8Array > "u" || !F ? v : F(Uint8Array), z = {
444
- __proto__: null,
445
- "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
446
- "%Array%": Array,
447
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
448
- "%ArrayIteratorPrototype%": Y && F ? F([][Symbol.iterator]()) : v,
449
- "%AsyncFromSyncIteratorPrototype%": v,
450
- "%AsyncFunction%": X,
451
- "%AsyncGenerator%": X,
452
- "%AsyncGeneratorFunction%": X,
453
- "%AsyncIteratorPrototype%": X,
454
- "%Atomics%": typeof Atomics > "u" ? v : Atomics,
455
- "%BigInt%": typeof BigInt > "u" ? v : BigInt,
456
- "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
457
- "%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
458
- "%Boolean%": Boolean,
459
- "%DataView%": typeof DataView > "u" ? v : DataView,
460
- "%Date%": Date,
461
- "%decodeURI%": decodeURI,
462
- "%decodeURIComponent%": decodeURIComponent,
463
- "%encodeURI%": encodeURI,
464
- "%encodeURIComponent%": encodeURIComponent,
465
- "%Error%": ln,
466
- "%eval%": eval,
467
- // eslint-disable-line no-eval
468
- "%EvalError%": cn,
469
- "%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
470
- "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
471
- "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
472
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
473
- "%Function%": at,
474
- "%GeneratorFunction%": X,
475
- "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
476
- "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
477
- "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
478
- "%isFinite%": isFinite,
479
- "%isNaN%": isNaN,
480
- "%IteratorPrototype%": Y && F ? F(F([][Symbol.iterator]())) : v,
481
- "%JSON%": typeof JSON == "object" ? JSON : v,
482
- "%Map%": typeof Map > "u" ? v : Map,
483
- "%MapIteratorPrototype%": typeof Map > "u" || !Y || !F ? v : F((/* @__PURE__ */ new Map())[Symbol.iterator]()),
484
- "%Math%": Math,
485
- "%Number%": Number,
486
- "%Object%": un,
487
- "%Object.getOwnPropertyDescriptor%": ae,
488
- "%parseFloat%": parseFloat,
489
- "%parseInt%": parseInt,
490
- "%Promise%": typeof Promise > "u" ? v : Promise,
491
- "%Proxy%": typeof Proxy > "u" ? v : Proxy,
492
- "%RangeError%": yn,
493
- "%ReferenceError%": pn,
494
- "%Reflect%": typeof Reflect > "u" ? v : Reflect,
495
- "%RegExp%": RegExp,
496
- "%Set%": typeof Set > "u" ? v : Set,
497
- "%SetIteratorPrototype%": typeof Set > "u" || !Y || !F ? v : F((/* @__PURE__ */ new Set())[Symbol.iterator]()),
498
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
499
- "%String%": String,
500
- "%StringIteratorPrototype%": Y && F ? F(""[Symbol.iterator]()) : v,
501
- "%Symbol%": Y ? Symbol : v,
502
- "%SyntaxError%": ne,
503
- "%ThrowTypeError%": On,
504
- "%TypedArray%": jn,
505
- "%TypeError%": te,
506
- "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
507
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
508
- "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
509
- "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
510
- "%URIError%": dn,
511
- "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
512
- "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
513
- "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
514
- "%Function.prototype.call%": ue,
515
- "%Function.prototype.apply%": ft,
516
- "%Object.defineProperty%": Sn,
517
- "%Object.getPrototypeOf%": Pn,
518
- "%Math.abs%": hn,
519
- "%Math.floor%": gn,
520
- "%Math.max%": vn,
521
- "%Math.min%": mn,
522
- "%Math.pow%": bn,
523
- "%Math.round%": An,
524
- "%Math.sign%": wn,
525
- "%Reflect.getPrototypeOf%": En
526
- };
527
- if (F)
528
- try {
529
- null.error;
530
- } catch (r) {
531
- var $n = F(F(r));
532
- z["%Error.prototype%"] = $n;
533
- }
534
- var Bn = function r(e) {
535
- var t;
536
- if (e === "%AsyncFunction%")
537
- t = Ve("async function () {}");
538
- else if (e === "%GeneratorFunction%")
539
- t = Ve("function* () {}");
540
- else if (e === "%AsyncGeneratorFunction%")
541
- t = Ve("async function* () {}");
542
- else if (e === "%AsyncGenerator%") {
543
- var n = r("%AsyncGeneratorFunction%");
544
- n && (t = n.prototype);
545
- } else if (e === "%AsyncIteratorPrototype%") {
546
- var o = r("%AsyncGenerator%");
547
- o && F && (t = F(o.prototype));
548
- }
549
- return z[e] = t, t;
550
- }, Fr = {
551
- __proto__: null,
552
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
553
- "%ArrayPrototype%": ["Array", "prototype"],
554
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
555
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
556
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
557
- "%ArrayProto_values%": ["Array", "prototype", "values"],
558
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
559
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
560
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
561
- "%BooleanPrototype%": ["Boolean", "prototype"],
562
- "%DataViewPrototype%": ["DataView", "prototype"],
563
- "%DatePrototype%": ["Date", "prototype"],
564
- "%ErrorPrototype%": ["Error", "prototype"],
565
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
566
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
567
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
568
- "%FunctionPrototype%": ["Function", "prototype"],
569
- "%Generator%": ["GeneratorFunction", "prototype"],
570
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
571
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
572
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
573
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
574
- "%JSONParse%": ["JSON", "parse"],
575
- "%JSONStringify%": ["JSON", "stringify"],
576
- "%MapPrototype%": ["Map", "prototype"],
577
- "%NumberPrototype%": ["Number", "prototype"],
578
- "%ObjectPrototype%": ["Object", "prototype"],
579
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
580
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
581
- "%PromisePrototype%": ["Promise", "prototype"],
582
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
583
- "%Promise_all%": ["Promise", "all"],
584
- "%Promise_reject%": ["Promise", "reject"],
585
- "%Promise_resolve%": ["Promise", "resolve"],
586
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
587
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
588
- "%RegExpPrototype%": ["RegExp", "prototype"],
589
- "%SetPrototype%": ["Set", "prototype"],
590
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
591
- "%StringPrototype%": ["String", "prototype"],
592
- "%SymbolPrototype%": ["Symbol", "prototype"],
593
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
594
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
595
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
596
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
597
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
598
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
599
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
600
- "%URIErrorPrototype%": ["URIError", "prototype"],
601
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
602
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
603
- }, le = se(), Pe = it(), Tn = le.call(ue, Array.prototype.concat), Fn = le.call(ft, Array.prototype.splice), Rr = le.call(ue, String.prototype.replace), Ee = le.call(ue, String.prototype.slice), Rn = le.call(ue, RegExp.prototype.exec), In = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Nn = /\\(\\)?/g, _n = function(e) {
604
- var t = Ee(e, 0, 1), n = Ee(e, -1);
605
- if (t === "%" && n !== "%")
606
- throw new ne("invalid intrinsic syntax, expected closing `%`");
607
- if (n === "%" && t !== "%")
608
- throw new ne("invalid intrinsic syntax, expected opening `%`");
609
- var o = [];
610
- return Rr(e, In, function(c, u, y, p) {
611
- o[o.length] = y ? Rr(p, Nn, "$1") : u || c;
612
- }), o;
613
- }, Cn = function(e, t) {
614
- var n = e, o;
615
- if (Pe(Fr, n) && (o = Fr[n], n = "%" + o[0] + "%"), Pe(z, n)) {
616
- var c = z[n];
617
- if (c === X && (c = Bn(n)), typeof c > "u" && !t)
618
- throw new te("intrinsic " + e + " exists, but is not available. Please file an issue!");
619
- return {
620
- alias: o,
621
- name: n,
622
- value: c
623
- };
624
- }
625
- throw new ne("intrinsic " + e + " does not exist!");
626
- }, st = function(e, t) {
627
- if (typeof e != "string" || e.length === 0)
628
- throw new te("intrinsic name must be a non-empty string");
629
- if (arguments.length > 1 && typeof t != "boolean")
630
- throw new te('"allowMissing" argument must be a boolean');
631
- if (Rn(/^%?[^%]*%?$/, e) === null)
632
- throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
633
- var n = _n(e), o = n.length > 0 ? n[0] : "", c = Cn("%" + o + "%", t), u = c.name, y = c.value, p = !1, m = c.alias;
634
- m && (o = m[0], Fn(n, Tn([0, 1], m)));
635
- for (var w = 1, $ = !0; w < n.length; w += 1) {
636
- var E = n[w], _ = Ee(E, 0, 1), T = Ee(E, -1);
637
- if ((_ === '"' || _ === "'" || _ === "`" || T === '"' || T === "'" || T === "`") && _ !== T)
638
- throw new ne("property names with quotes must have matching quotes");
639
- if ((E === "constructor" || !$) && (p = !0), o += "." + E, u = "%" + o + "%", Pe(z, u))
640
- y = z[u];
641
- else if (y != null) {
642
- if (!(E in y)) {
643
- if (!t)
644
- throw new te("base intrinsic for " + e + " exists, but the property is not available.");
645
- return;
646
- }
647
- if (ae && w + 1 >= n.length) {
648
- var I = ae(y, E);
649
- $ = !!I, $ && "get" in I && !("originalValue" in I.get) ? y = I.get : y = y[E];
650
- } else
651
- $ = Pe(y, E), y = y[E];
652
- $ && !p && (z[u] = y);
653
- }
654
- }
655
- return y;
656
- }, ut = st, lt = yr, Ln = lt([ut("%String.prototype.indexOf%")]), ce = function(e, t) {
657
- var n = (
658
- /** @type {(this: unknown, ...args: unknown[]) => unknown} */
659
- ut(e, !!t)
660
- );
661
- return typeof n == "function" && Ln(e, ".prototype.") > -1 ? lt(
662
- /** @type {const} */
663
- [n]
664
- ) : n;
665
- }, Un = Te(), Dn = ce, tr = Dn("Object.prototype.toString"), Re = function(e) {
666
- return Un && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : tr(e) === "[object Arguments]";
667
- }, ct = function(e) {
668
- return Re(e) ? !0 : e !== null && typeof e == "object" && "length" in e && typeof e.length == "number" && e.length >= 0 && tr(e) !== "[object Array]" && "callee" in e && tr(e.callee) === "[object Function]";
669
- }, Mn = function() {
670
- return Re(arguments);
671
- }();
672
- Re.isLegacyArguments = ct;
673
- var kn = Mn ? Re : ct, Ir = ce, Gn = Te(), xn = it(), Wn = oe, nr;
674
- if (Gn) {
675
- var qn = Ir("RegExp.prototype.exec"), Nr = {}, Je = function() {
676
- throw Nr;
677
- }, _r = {
678
- toString: Je,
679
- valueOf: Je
680
- };
681
- typeof Symbol.toPrimitive == "symbol" && (_r[Symbol.toPrimitive] = Je), nr = function(e) {
682
- if (!e || typeof e != "object")
683
- return !1;
684
- var t = (
685
- /** @type {NonNullable<typeof gOPD>} */
686
- Wn(
687
- /** @type {{ lastIndex?: unknown }} */
688
- e,
689
- "lastIndex"
690
- )
691
- ), n = t && xn(t, "value");
692
- if (!n)
693
- return !1;
694
- try {
695
- qn(
696
- e,
697
- /** @type {string} */
698
- /** @type {unknown} */
699
- _r
700
- );
701
- } catch (o) {
702
- return o === Nr;
703
- }
704
- };
705
- } else {
706
- var zn = Ir("Object.prototype.toString"), Vn = "[object RegExp]";
707
- nr = function(e) {
708
- return !e || typeof e != "object" && typeof e != "function" ? !1 : zn(e) === Vn;
709
- };
710
- }
711
- var Hn = nr, Jn = ce, Kn = Hn, Zn = Jn("RegExp.prototype.exec"), Yn = fe, Qn = function(e) {
712
- if (!Kn(e))
713
- throw new Yn("`regex` must be a RegExp");
714
- return function(n) {
715
- return Zn(e, n) !== null;
716
- };
717
- }, yt = ce, Xn = Qn, eo = Xn(/^\s*(?:function)?\*/), pt = Te(), Ke = pr(), ro = yt("Object.prototype.toString"), to = yt("Function.prototype.toString"), no = function() {
718
- if (!pt)
719
- return !1;
720
- try {
721
- return Function("return function*() {}")();
722
- } catch {
723
- }
724
- }, Ze, oo = function(e) {
725
- if (typeof e != "function")
726
- return !1;
727
- if (eo(to(e)))
728
- return !0;
729
- if (!pt) {
730
- var t = ro(e);
731
- return t === "[object GeneratorFunction]";
732
- }
733
- if (!Ke)
734
- return !1;
735
- if (typeof Ze > "u") {
736
- var n = no();
737
- Ze = n ? (
738
- /** @type {GeneratorFunctionConstructor} */
739
- Ke(n)
740
- ) : !1;
741
- }
742
- return Ke(e) === Ze;
743
- }, dt = Function.prototype.toString, ee = typeof Reflect == "object" && Reflect !== null && Reflect.apply, or, Ae;
744
- if (typeof ee == "function" && typeof Object.defineProperty == "function")
745
- try {
746
- or = Object.defineProperty({}, "length", {
747
- get: function() {
748
- throw Ae;
749
- }
750
- }), Ae = {}, ee(function() {
751
- throw 42;
752
- }, null, or);
753
- } catch (r) {
754
- r !== Ae && (ee = null);
755
- }
756
- else
757
- ee = null;
758
- var io = /^\s*class\b/, ir = function(e) {
759
- try {
760
- var t = dt.call(e);
761
- return io.test(t);
762
- } catch {
763
- return !1;
764
- }
765
- }, Ye = function(e) {
766
- try {
767
- return ir(e) ? !1 : (dt.call(e), !0);
768
- } catch {
769
- return !1;
770
- }
771
- }, we = Object.prototype.toString, ao = "[object Object]", fo = "[object Function]", so = "[object GeneratorFunction]", uo = "[object HTMLAllCollection]", lo = "[object HTML document.all class]", co = "[object HTMLCollection]", yo = typeof Symbol == "function" && !!Symbol.toStringTag, po = !(0 in [,]), ar = function() {
772
- return !1;
773
- };
774
- if (typeof document == "object") {
775
- var ho = document.all;
776
- we.call(ho) === we.call(document.all) && (ar = function(e) {
777
- if ((po || !e) && (typeof e > "u" || typeof e == "object"))
778
- try {
779
- var t = we.call(e);
780
- return (t === uo || t === lo || t === co || t === ao) && e("") == null;
781
- } catch {
782
- }
783
- return !1;
784
- });
785
- }
786
- var go = ee ? function(e) {
787
- if (ar(e))
788
- return !0;
789
- if (!e || typeof e != "function" && typeof e != "object")
790
- return !1;
791
- try {
792
- ee(e, null, or);
793
- } catch (t) {
794
- if (t !== Ae)
795
- return !1;
796
- }
797
- return !ir(e) && Ye(e);
798
- } : function(e) {
799
- if (ar(e))
800
- return !0;
801
- if (!e || typeof e != "function" && typeof e != "object")
802
- return !1;
803
- if (yo)
804
- return Ye(e);
805
- if (ir(e))
806
- return !1;
807
- var t = we.call(e);
808
- return t !== fo && t !== so && !/^\[object HTML/.test(t) ? !1 : Ye(e);
809
- }, vo = go, mo = Object.prototype.toString, ht = Object.prototype.hasOwnProperty, bo = function(e, t, n) {
810
- for (var o = 0, c = e.length; o < c; o++)
811
- ht.call(e, o) && (n == null ? t(e[o], o, e) : t.call(n, e[o], o, e));
812
- }, Ao = function(e, t, n) {
813
- for (var o = 0, c = e.length; o < c; o++)
814
- n == null ? t(e.charAt(o), o, e) : t.call(n, e.charAt(o), o, e);
815
- }, wo = function(e, t, n) {
816
- for (var o in e)
817
- ht.call(e, o) && (n == null ? t(e[o], o, e) : t.call(n, e[o], o, e));
818
- };
819
- function So(r) {
820
- return mo.call(r) === "[object Array]";
821
- }
822
- var Oo = function(e, t, n) {
823
- if (!vo(t))
824
- throw new TypeError("iterator must be a function");
825
- var o;
826
- arguments.length >= 3 && (o = n), So(e) ? bo(e, t, o) : typeof e == "string" ? Ao(e, t, o) : wo(e, t, o);
827
- }, Po = [
828
- "Float16Array",
829
- "Float32Array",
830
- "Float64Array",
831
- "Int8Array",
832
- "Int16Array",
833
- "Int32Array",
834
- "Uint8Array",
835
- "Uint8ClampedArray",
836
- "Uint16Array",
837
- "Uint32Array",
838
- "BigInt64Array",
839
- "BigUint64Array"
840
- ], Qe = Po, Eo = typeof globalThis > "u" ? Oe : globalThis, jo = function() {
841
- for (var e = [], t = 0; t < Qe.length; t++)
842
- typeof Eo[Qe[t]] == "function" && (e[e.length] = Qe[t]);
843
- return e;
844
- }, gt = { exports: {} }, Cr = Fe, $o = rt, Q = fe, Lr = oe, Bo = function(e, t, n) {
845
- if (!e || typeof e != "object" && typeof e != "function")
846
- throw new Q("`obj` must be an object or a function`");
847
- if (typeof t != "string" && typeof t != "symbol")
848
- throw new Q("`property` must be a string or a symbol`");
849
- if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
850
- throw new Q("`nonEnumerable`, if provided, must be a boolean or null");
851
- if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
852
- throw new Q("`nonWritable`, if provided, must be a boolean or null");
853
- if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
854
- throw new Q("`nonConfigurable`, if provided, must be a boolean or null");
855
- if (arguments.length > 6 && typeof arguments[6] != "boolean")
856
- throw new Q("`loose`, if provided, must be a boolean");
857
- var o = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, u = arguments.length > 5 ? arguments[5] : null, y = arguments.length > 6 ? arguments[6] : !1, p = !!Lr && Lr(e, t);
858
- if (Cr)
859
- Cr(e, t, {
860
- configurable: u === null && p ? p.configurable : !u,
861
- enumerable: o === null && p ? p.enumerable : !o,
862
- value: n,
863
- writable: c === null && p ? p.writable : !c
864
- });
865
- else if (y || !o && !c && !u)
866
- e[t] = n;
867
- else
868
- throw new $o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
869
- }, fr = Fe, vt = function() {
870
- return !!fr;
871
- };
872
- vt.hasArrayLengthDefineBug = function() {
873
- if (!fr)
874
- return null;
875
- try {
876
- return fr([], "length", { value: 1 }).length !== 1;
877
- } catch {
878
- return !0;
879
- }
880
- };
881
- var To = vt, Fo = st, Ur = Bo, Ro = To(), Dr = oe, Mr = fe, Io = Fo("%Math.floor%"), No = function(e, t) {
882
- if (typeof e != "function")
883
- throw new Mr("`fn` is not a function");
884
- if (typeof t != "number" || t < 0 || t > 4294967295 || Io(t) !== t)
885
- throw new Mr("`length` must be a positive 32-bit integer");
886
- var n = arguments.length > 2 && !!arguments[2], o = !0, c = !0;
887
- if ("length" in e && Dr) {
888
- var u = Dr(e, "length");
889
- u && !u.configurable && (o = !1), u && !u.writable && (c = !1);
890
- }
891
- return (o || c || !n) && (Ro ? Ur(
892
- /** @type {Parameters<define>[0]} */
893
- e,
894
- "length",
895
- t,
896
- !0,
897
- !0
898
- ) : Ur(
899
- /** @type {Parameters<define>[0]} */
900
- e,
901
- "length",
902
- t
903
- )), e;
904
- }, _o = se(), Co = cr(), Lo = ot, Uo = function() {
905
- return Lo(_o, Co, arguments);
906
- };
907
- (function(r) {
908
- var e = No, t = Fe, n = yr, o = Uo;
909
- r.exports = function(u) {
910
- var y = n(arguments), p = u.length - (arguments.length - 1);
911
- return e(
912
- y,
913
- 1 + (p > 0 ? p : 0),
914
- !0
915
- );
916
- }, t ? t(r.exports, "apply", { value: o }) : r.exports.apply = o;
917
- })(gt);
918
- var Do = gt.exports, je = Oo, Mo = jo, kr = Do, dr = ce, Se = oe, he = pr(), ko = dr("Object.prototype.toString"), mt = Te(), Gr = typeof globalThis > "u" ? Oe : globalThis, sr = Mo(), hr = dr("String.prototype.slice"), Go = dr("Array.prototype.indexOf", !0) || function(e, t) {
919
- for (var n = 0; n < e.length; n += 1)
920
- if (e[n] === t)
921
- return n;
922
- return -1;
923
- }, $e = { __proto__: null };
924
- mt && Se && he ? je(sr, function(r) {
925
- var e = new Gr[r]();
926
- if (Symbol.toStringTag in e && he) {
927
- var t = he(e), n = Se(t, Symbol.toStringTag);
928
- if (!n && t) {
929
- var o = he(t);
930
- n = Se(o, Symbol.toStringTag);
931
- }
932
- $e["$" + r] = kr(n.get);
933
- }
934
- }) : je(sr, function(r) {
935
- var e = new Gr[r](), t = e.slice || e.set;
936
- t && ($e[
937
- /** @type {`$${import('.').TypedArrayName}`} */
938
- "$" + r
939
- ] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */
940
- // @ts-expect-error TODO FIXME
941
- kr(t));
942
- });
943
- var xo = function(e) {
944
- var t = !1;
945
- return je(
946
- /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
947
- $e,
948
- /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
949
- function(n, o) {
950
- if (!t)
951
- try {
952
- "$" + n(e) === o && (t = /** @type {import('.').TypedArrayName} */
953
- hr(o, 1));
954
- } catch {
955
- }
956
- }
957
- ), t;
958
- }, Wo = function(e) {
959
- var t = !1;
960
- return je(
961
- /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
962
- $e,
963
- /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
964
- function(n, o) {
965
- if (!t)
966
- try {
967
- n(e), t = /** @type {import('.').TypedArrayName} */
968
- hr(o, 1);
969
- } catch {
970
- }
971
- }
972
- ), t;
973
- }, bt = function(e) {
974
- if (!e || typeof e != "object")
975
- return !1;
976
- if (!mt) {
977
- var t = hr(ko(e), 8, -1);
978
- return Go(sr, t) > -1 ? t : t !== "Object" ? !1 : Wo(e);
979
- }
980
- return Se ? xo(e) : null;
981
- }, qo = bt, zo = function(e) {
982
- return !!qo(e);
983
- };
984
- (function(r) {
985
- var e = kn, t = oo, n = bt, o = zo;
986
- function c(s) {
987
- return s.call.bind(s);
988
- }
989
- var u = typeof BigInt < "u", y = typeof Symbol < "u", p = c(Object.prototype.toString), m = c(Number.prototype.valueOf), w = c(String.prototype.valueOf), $ = c(Boolean.prototype.valueOf);
990
- if (u)
991
- var E = c(BigInt.prototype.valueOf);
992
- if (y)
993
- var _ = c(Symbol.prototype.valueOf);
994
- function T(s, St) {
995
- if (typeof s != "object")
996
- return !1;
997
- try {
998
- return St(s), !0;
999
- } catch {
1000
- return !1;
1001
- }
1002
- }
1003
- r.isArgumentsObject = e, r.isGeneratorFunction = t, r.isTypedArray = o;
1004
- function I(s) {
1005
- return typeof Promise < "u" && s instanceof Promise || s !== null && typeof s == "object" && typeof s.then == "function" && typeof s.catch == "function";
1006
- }
1007
- r.isPromise = I;
1008
- function C(s) {
1009
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(s) : o(s) || f(s);
1010
- }
1011
- r.isArrayBufferView = C;
1012
- function a(s) {
1013
- return n(s) === "Uint8Array";
1014
- }
1015
- r.isUint8Array = a;
1016
- function d(s) {
1017
- return n(s) === "Uint8ClampedArray";
1018
- }
1019
- r.isUint8ClampedArray = d;
1020
- function b(s) {
1021
- return n(s) === "Uint16Array";
1022
- }
1023
- r.isUint16Array = b;
1024
- function R(s) {
1025
- return n(s) === "Uint32Array";
1026
- }
1027
- r.isUint32Array = R;
1028
- function B(s) {
1029
- return n(s) === "Int8Array";
1030
- }
1031
- r.isInt8Array = B;
1032
- function Ie(s) {
1033
- return n(s) === "Int16Array";
1034
- }
1035
- r.isInt16Array = Ie;
1036
- function U(s) {
1037
- return n(s) === "Int32Array";
1038
- }
1039
- r.isInt32Array = U;
1040
- function x(s) {
1041
- return n(s) === "Float32Array";
1042
- }
1043
- r.isFloat32Array = x;
1044
- function k(s) {
1045
- return n(s) === "Float64Array";
1046
- }
1047
- r.isFloat64Array = k;
1048
- function V(s) {
1049
- return n(s) === "BigInt64Array";
1050
- }
1051
- r.isBigInt64Array = V;
1052
- function W(s) {
1053
- return n(s) === "BigUint64Array";
1054
- }
1055
- r.isBigUint64Array = W;
1056
- function D(s) {
1057
- return p(s) === "[object Map]";
1058
- }
1059
- D.working = typeof Map < "u" && D(/* @__PURE__ */ new Map());
1060
- function Ne(s) {
1061
- return typeof Map > "u" ? !1 : D.working ? D(s) : s instanceof Map;
1062
- }
1063
- r.isMap = Ne;
1064
- function G(s) {
1065
- return p(s) === "[object Set]";
1066
- }
1067
- G.working = typeof Set < "u" && G(/* @__PURE__ */ new Set());
1068
- function ie(s) {
1069
- return typeof Set > "u" ? !1 : G.working ? G(s) : s instanceof Set;
1070
- }
1071
- r.isSet = ie;
1072
- function H(s) {
1073
- return p(s) === "[object WeakMap]";
1074
- }
1075
- H.working = typeof WeakMap < "u" && H(/* @__PURE__ */ new WeakMap());
1076
- function _e(s) {
1077
- return typeof WeakMap > "u" ? !1 : H.working ? H(s) : s instanceof WeakMap;
1078
- }
1079
- r.isWeakMap = _e;
1080
- function J(s) {
1081
- return p(s) === "[object WeakSet]";
1082
- }
1083
- J.working = typeof WeakSet < "u" && J(/* @__PURE__ */ new WeakSet());
1084
- function M(s) {
1085
- return J(s);
1086
- }
1087
- r.isWeakSet = M;
1088
- function K(s) {
1089
- return p(s) === "[object ArrayBuffer]";
1090
- }
1091
- K.working = typeof ArrayBuffer < "u" && K(new ArrayBuffer());
1092
- function ye(s) {
1093
- return typeof ArrayBuffer > "u" ? !1 : K.working ? K(s) : s instanceof ArrayBuffer;
1094
- }
1095
- r.isArrayBuffer = ye;
1096
- function i(s) {
1097
- return p(s) === "[object DataView]";
1098
- }
1099
- i.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && i(new DataView(new ArrayBuffer(1), 0, 1));
1100
- function f(s) {
1101
- return typeof DataView > "u" ? !1 : i.working ? i(s) : s instanceof DataView;
1102
- }
1103
- r.isDataView = f;
1104
- var l = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
1105
- function h(s) {
1106
- return p(s) === "[object SharedArrayBuffer]";
1107
- }
1108
- function S(s) {
1109
- return typeof l > "u" ? !1 : (typeof h.working > "u" && (h.working = h(new l())), h.working ? h(s) : s instanceof l);
1110
- }
1111
- r.isSharedArrayBuffer = S;
1112
- function O(s) {
1113
- return p(s) === "[object AsyncFunction]";
1114
- }
1115
- r.isAsyncFunction = O;
1116
- function g(s) {
1117
- return p(s) === "[object Map Iterator]";
1118
- }
1119
- r.isMapIterator = g;
1120
- function A(s) {
1121
- return p(s) === "[object Set Iterator]";
1122
- }
1123
- r.isSetIterator = A;
1124
- function j(s) {
1125
- return p(s) === "[object Generator]";
1126
- }
1127
- r.isGeneratorObject = j;
1128
- function N(s) {
1129
- return p(s) === "[object WebAssembly.Module]";
1130
- }
1131
- r.isWebAssemblyCompiledModule = N;
1132
- function q(s) {
1133
- return T(s, m);
1134
- }
1135
- r.isNumberObject = q;
1136
- function pe(s) {
1137
- return T(s, w);
1138
- }
1139
- r.isStringObject = pe;
1140
- function Z(s) {
1141
- return T(s, $);
1142
- }
1143
- r.isBooleanObject = Z;
1144
- function de(s) {
1145
- return u && T(s, E);
1146
- }
1147
- r.isBigIntObject = de;
1148
- function gr(s) {
1149
- return y && T(s, _);
1150
- }
1151
- r.isSymbolObject = gr;
1152
- function At(s) {
1153
- return q(s) || pe(s) || Z(s) || de(s) || gr(s);
1154
- }
1155
- r.isBoxedPrimitive = At;
1156
- function wt(s) {
1157
- return typeof Uint8Array < "u" && (ye(s) || S(s));
1158
- }
1159
- r.isAnyArrayBuffer = wt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(s) {
1160
- Object.defineProperty(r, s, {
1161
- enumerable: !1,
1162
- value: function() {
1163
- throw new Error(s + " is not supported in userland");
1164
- }
1165
- });
1166
- });
1167
- })(Qr);
1168
- var Vo = function(e) {
1169
- return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
1170
- };
1171
- (function(r) {
1172
- var e = Object.getOwnPropertyDescriptors || function(f) {
1173
- for (var l = Object.keys(f), h = {}, S = 0; S < l.length; S++)
1174
- h[l[S]] = Object.getOwnPropertyDescriptor(f, l[S]);
1175
- return h;
1176
- }, t = /%[sdj%]/g;
1177
- r.format = function(i) {
1178
- if (!B(i)) {
1179
- for (var f = [], l = 0; l < arguments.length; l++)
1180
- f.push(u(arguments[l]));
1181
- return f.join(" ");
1182
- }
1183
- for (var l = 1, h = arguments, S = h.length, O = String(i).replace(t, function(A) {
1184
- if (A === "%%") return "%";
1185
- if (l >= S) return A;
1186
- switch (A) {
1187
- case "%s":
1188
- return String(h[l++]);
1189
- case "%d":
1190
- return Number(h[l++]);
1191
- case "%j":
1192
- try {
1193
- return JSON.stringify(h[l++]);
1194
- } catch {
1195
- return "[Circular]";
1196
- }
1197
- default:
1198
- return A;
1199
- }
1200
- }), g = h[l]; l < S; g = h[++l])
1201
- d(g) || !k(g) ? O += " " + g : O += " " + u(g);
1202
- return O;
1203
- }, r.deprecate = function(i, f) {
1204
- if (typeof L < "u" && L.noDeprecation === !0)
1205
- return i;
1206
- if (typeof L > "u")
1207
- return function() {
1208
- return r.deprecate(i, f).apply(this, arguments);
1209
- };
1210
- var l = !1;
1211
- function h() {
1212
- if (!l) {
1213
- if (L.throwDeprecation)
1214
- throw new Error(f);
1215
- L.traceDeprecation ? console.trace(f) : console.error(f), l = !0;
1216
- }
1217
- return i.apply(this, arguments);
1218
- }
1219
- return h;
1220
- };
1221
- var n = {}, o = /^$/;
1222
- if (L.env.NODE_DEBUG) {
1223
- var c = L.env.NODE_DEBUG;
1224
- c = c.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), o = new RegExp("^" + c + "$", "i");
1225
- }
1226
- r.debuglog = function(i) {
1227
- if (i = i.toUpperCase(), !n[i])
1228
- if (o.test(i)) {
1229
- var f = L.pid;
1230
- n[i] = function() {
1231
- var l = r.format.apply(r, arguments);
1232
- console.error("%s %d: %s", i, f, l);
1233
- };
1234
- } else
1235
- n[i] = function() {
1236
- };
1237
- return n[i];
1238
- };
1239
- function u(i, f) {
1240
- var l = {
1241
- seen: [],
1242
- stylize: p
1243
- };
1244
- return arguments.length >= 3 && (l.depth = arguments[2]), arguments.length >= 4 && (l.colors = arguments[3]), a(f) ? l.showHidden = f : f && r._extend(l, f), U(l.showHidden) && (l.showHidden = !1), U(l.depth) && (l.depth = 2), U(l.colors) && (l.colors = !1), U(l.customInspect) && (l.customInspect = !0), l.colors && (l.stylize = y), w(l, i, l.depth);
1245
- }
1246
- r.inspect = u, u.colors = {
1247
- bold: [1, 22],
1248
- italic: [3, 23],
1249
- underline: [4, 24],
1250
- inverse: [7, 27],
1251
- white: [37, 39],
1252
- grey: [90, 39],
1253
- black: [30, 39],
1254
- blue: [34, 39],
1255
- cyan: [36, 39],
1256
- green: [32, 39],
1257
- magenta: [35, 39],
1258
- red: [31, 39],
1259
- yellow: [33, 39]
1260
- }, u.styles = {
1261
- special: "cyan",
1262
- number: "yellow",
1263
- boolean: "yellow",
1264
- undefined: "grey",
1265
- null: "bold",
1266
- string: "green",
1267
- date: "magenta",
1268
- // "name": intentionally not styling
1269
- regexp: "red"
1270
- };
1271
- function y(i, f) {
1272
- var l = u.styles[f];
1273
- return l ? "\x1B[" + u.colors[l][0] + "m" + i + "\x1B[" + u.colors[l][1] + "m" : i;
1274
- }
1275
- function p(i, f) {
1276
- return i;
1277
- }
1278
- function m(i) {
1279
- var f = {};
1280
- return i.forEach(function(l, h) {
1281
- f[l] = !0;
1282
- }), f;
1283
- }
1284
- function w(i, f, l) {
1285
- if (i.customInspect && f && D(f.inspect) && // Filter out the util module, it's inspect function is special
1286
- f.inspect !== r.inspect && // Also filter out any prototype objects using the circular check.
1287
- !(f.constructor && f.constructor.prototype === f)) {
1288
- var h = f.inspect(l, i);
1289
- return B(h) || (h = w(i, h, l)), h;
1290
- }
1291
- var S = $(i, f);
1292
- if (S)
1293
- return S;
1294
- var O = Object.keys(f), g = m(O);
1295
- if (i.showHidden && (O = Object.getOwnPropertyNames(f)), W(f) && (O.indexOf("message") >= 0 || O.indexOf("description") >= 0))
1296
- return E(f);
1297
- if (O.length === 0) {
1298
- if (D(f)) {
1299
- var A = f.name ? ": " + f.name : "";
1300
- return i.stylize("[Function" + A + "]", "special");
1301
- }
1302
- if (x(f))
1303
- return i.stylize(RegExp.prototype.toString.call(f), "regexp");
1304
- if (V(f))
1305
- return i.stylize(Date.prototype.toString.call(f), "date");
1306
- if (W(f))
1307
- return E(f);
1308
- }
1309
- var j = "", N = !1, q = ["{", "}"];
1310
- if (C(f) && (N = !0, q = ["[", "]"]), D(f)) {
1311
- var pe = f.name ? ": " + f.name : "";
1312
- j = " [Function" + pe + "]";
1313
- }
1314
- if (x(f) && (j = " " + RegExp.prototype.toString.call(f)), V(f) && (j = " " + Date.prototype.toUTCString.call(f)), W(f) && (j = " " + E(f)), O.length === 0 && (!N || f.length == 0))
1315
- return q[0] + j + q[1];
1316
- if (l < 0)
1317
- return x(f) ? i.stylize(RegExp.prototype.toString.call(f), "regexp") : i.stylize("[Object]", "special");
1318
- i.seen.push(f);
1319
- var Z;
1320
- return N ? Z = _(i, f, l, g, O) : Z = O.map(function(de) {
1321
- return T(i, f, l, g, de, N);
1322
- }), i.seen.pop(), I(Z, j, q);
1323
- }
1324
- function $(i, f) {
1325
- if (U(f))
1326
- return i.stylize("undefined", "undefined");
1327
- if (B(f)) {
1328
- var l = "'" + JSON.stringify(f).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
1329
- return i.stylize(l, "string");
1330
- }
1331
- if (R(f))
1332
- return i.stylize("" + f, "number");
1333
- if (a(f))
1334
- return i.stylize("" + f, "boolean");
1335
- if (d(f))
1336
- return i.stylize("null", "null");
1337
- }
1338
- function E(i) {
1339
- return "[" + Error.prototype.toString.call(i) + "]";
1340
- }
1341
- function _(i, f, l, h, S) {
1342
- for (var O = [], g = 0, A = f.length; g < A; ++g)
1343
- J(f, String(g)) ? O.push(T(
1344
- i,
1345
- f,
1346
- l,
1347
- h,
1348
- String(g),
1349
- !0
1350
- )) : O.push("");
1351
- return S.forEach(function(j) {
1352
- j.match(/^\d+$/) || O.push(T(
1353
- i,
1354
- f,
1355
- l,
1356
- h,
1357
- j,
1358
- !0
1359
- ));
1360
- }), O;
1361
- }
1362
- function T(i, f, l, h, S, O) {
1363
- var g, A, j;
1364
- if (j = Object.getOwnPropertyDescriptor(f, S) || { value: f[S] }, j.get ? j.set ? A = i.stylize("[Getter/Setter]", "special") : A = i.stylize("[Getter]", "special") : j.set && (A = i.stylize("[Setter]", "special")), J(h, S) || (g = "[" + S + "]"), A || (i.seen.indexOf(j.value) < 0 ? (d(l) ? A = w(i, j.value, null) : A = w(i, j.value, l - 1), A.indexOf(`
1365
- `) > -1 && (O ? A = A.split(`
1366
- `).map(function(N) {
1367
- return " " + N;
1368
- }).join(`
1369
- `).slice(2) : A = `
1370
- ` + A.split(`
1371
- `).map(function(N) {
1372
- return " " + N;
1373
- }).join(`
1374
- `))) : A = i.stylize("[Circular]", "special")), U(g)) {
1375
- if (O && S.match(/^\d+$/))
1376
- return A;
1377
- g = JSON.stringify("" + S), g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (g = g.slice(1, -1), g = i.stylize(g, "name")) : (g = g.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), g = i.stylize(g, "string"));
1378
- }
1379
- return g + ": " + A;
1380
- }
1381
- function I(i, f, l) {
1382
- var h = i.reduce(function(S, O) {
1383
- return O.indexOf(`
1384
- `) >= 0, S + O.replace(/\u001b\[\d\d?m/g, "").length + 1;
1385
- }, 0);
1386
- return h > 60 ? l[0] + (f === "" ? "" : f + `
1387
- `) + " " + i.join(`,
1388
- `) + " " + l[1] : l[0] + f + " " + i.join(", ") + " " + l[1];
1389
- }
1390
- r.types = Qr;
1391
- function C(i) {
1392
- return Array.isArray(i);
1393
- }
1394
- r.isArray = C;
1395
- function a(i) {
1396
- return typeof i == "boolean";
1397
- }
1398
- r.isBoolean = a;
1399
- function d(i) {
1400
- return i === null;
1401
- }
1402
- r.isNull = d;
1403
- function b(i) {
1404
- return i == null;
1405
- }
1406
- r.isNullOrUndefined = b;
1407
- function R(i) {
1408
- return typeof i == "number";
1409
- }
1410
- r.isNumber = R;
1411
- function B(i) {
1412
- return typeof i == "string";
1413
- }
1414
- r.isString = B;
1415
- function Ie(i) {
1416
- return typeof i == "symbol";
1417
- }
1418
- r.isSymbol = Ie;
1419
- function U(i) {
1420
- return i === void 0;
1421
- }
1422
- r.isUndefined = U;
1423
- function x(i) {
1424
- return k(i) && G(i) === "[object RegExp]";
1425
- }
1426
- r.isRegExp = x, r.types.isRegExp = x;
1427
- function k(i) {
1428
- return typeof i == "object" && i !== null;
1429
- }
1430
- r.isObject = k;
1431
- function V(i) {
1432
- return k(i) && G(i) === "[object Date]";
1433
- }
1434
- r.isDate = V, r.types.isDate = V;
1435
- function W(i) {
1436
- return k(i) && (G(i) === "[object Error]" || i instanceof Error);
1437
- }
1438
- r.isError = W, r.types.isNativeError = W;
1439
- function D(i) {
1440
- return typeof i == "function";
1441
- }
1442
- r.isFunction = D;
1443
- function Ne(i) {
1444
- return i === null || typeof i == "boolean" || typeof i == "number" || typeof i == "string" || typeof i == "symbol" || // ES6 symbol
1445
- typeof i > "u";
1446
- }
1447
- r.isPrimitive = Ne, r.isBuffer = Vo;
1448
- function G(i) {
1449
- return Object.prototype.toString.call(i);
1450
- }
1451
- function ie(i) {
1452
- return i < 10 ? "0" + i.toString(10) : i.toString(10);
1453
- }
1454
- var H = [
1455
- "Jan",
1456
- "Feb",
1457
- "Mar",
1458
- "Apr",
1459
- "May",
1460
- "Jun",
1461
- "Jul",
1462
- "Aug",
1463
- "Sep",
1464
- "Oct",
1465
- "Nov",
1466
- "Dec"
1467
- ];
1468
- function _e() {
1469
- var i = /* @__PURE__ */ new Date(), f = [
1470
- ie(i.getHours()),
1471
- ie(i.getMinutes()),
1472
- ie(i.getSeconds())
1473
- ].join(":");
1474
- return [i.getDate(), H[i.getMonth()], f].join(" ");
1475
- }
1476
- r.log = function() {
1477
- console.log("%s - %s", _e(), r.format.apply(r, arguments));
1478
- }, r.inherits = Et, r._extend = function(i, f) {
1479
- if (!f || !k(f)) return i;
1480
- for (var l = Object.keys(f), h = l.length; h--; )
1481
- i[l[h]] = f[l[h]];
1482
- return i;
1483
- };
1484
- function J(i, f) {
1485
- return Object.prototype.hasOwnProperty.call(i, f);
1486
- }
1487
- var M = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
1488
- r.promisify = function(f) {
1489
- if (typeof f != "function")
1490
- throw new TypeError('The "original" argument must be of type Function');
1491
- if (M && f[M]) {
1492
- var l = f[M];
1493
- if (typeof l != "function")
1494
- throw new TypeError('The "util.promisify.custom" argument must be of type Function');
1495
- return Object.defineProperty(l, M, {
1496
- value: l,
1497
- enumerable: !1,
1498
- writable: !1,
1499
- configurable: !0
1500
- }), l;
1501
- }
1502
- function l() {
1503
- for (var h, S, O = new Promise(function(j, N) {
1504
- h = j, S = N;
1505
- }), g = [], A = 0; A < arguments.length; A++)
1506
- g.push(arguments[A]);
1507
- g.push(function(j, N) {
1508
- j ? S(j) : h(N);
1509
- });
1510
- try {
1511
- f.apply(this, g);
1512
- } catch (j) {
1513
- S(j);
1514
- }
1515
- return O;
1516
- }
1517
- return Object.setPrototypeOf(l, Object.getPrototypeOf(f)), M && Object.defineProperty(l, M, {
1518
- value: l,
1519
- enumerable: !1,
1520
- writable: !1,
1521
- configurable: !0
1522
- }), Object.defineProperties(
1523
- l,
1524
- e(f)
1525
- );
1526
- }, r.promisify.custom = M;
1527
- function K(i, f) {
1528
- if (!i) {
1529
- var l = new Error("Promise was rejected with a falsy value");
1530
- l.reason = i, i = l;
1531
- }
1532
- return f(i);
1533
- }
1534
- function ye(i) {
1535
- if (typeof i != "function")
1536
- throw new TypeError('The "original" argument must be of type Function');
1537
- function f() {
1538
- for (var l = [], h = 0; h < arguments.length; h++)
1539
- l.push(arguments[h]);
1540
- var S = l.pop();
1541
- if (typeof S != "function")
1542
- throw new TypeError("The last argument must be of type Function");
1543
- var O = this, g = function() {
1544
- return S.apply(O, arguments);
1545
- };
1546
- i.apply(this, l).then(
1547
- function(A) {
1548
- L.nextTick(g.bind(null, null, A));
1549
- },
1550
- function(A) {
1551
- L.nextTick(K.bind(null, A, g));
1552
- }
1553
- );
1554
- }
1555
- return Object.setPrototypeOf(f, Object.getPrototypeOf(i)), Object.defineProperties(
1556
- f,
1557
- e(i)
1558
- ), f;
1559
- }
1560
- r.callbackify = ye;
1561
- })(Nt);
1562
- var Xo = Ho;
1563
- function Ho(r, e) {
1564
- if (Xe("noDeprecation"))
1565
- return r;
1566
- var t = !1;
1567
- function n() {
1568
- if (!t) {
1569
- if (Xe("throwDeprecation"))
1570
- throw new Error(e);
1571
- Xe("traceDeprecation") ? console.trace(e) : console.warn(e), t = !0;
1572
- }
1573
- return r.apply(this, arguments);
1574
- }
1575
- return n;
1576
- }
1577
- function Xe(r) {
1578
- try {
1579
- if (!Oe.localStorage) return !1;
1580
- } catch {
1581
- return !1;
1582
- }
1583
- var e = Oe.localStorage[r];
1584
- return e == null ? !1 : String(e).toLowerCase() === "true";
1585
- }
1586
- var er = {}, ge = { exports: {} }, xr;
1587
- function Jo() {
1588
- return xr || (xr = 1, function(r, e) {
1589
- var t = It, n = t.Buffer;
1590
- function o(u, y) {
1591
- for (var p in u)
1592
- y[p] = u[p];
1593
- }
1594
- n.from && n.alloc && n.allocUnsafe && n.allocUnsafeSlow ? r.exports = t : (o(t, e), e.Buffer = c);
1595
- function c(u, y, p) {
1596
- return n(u, y, p);
1597
- }
1598
- o(n, c), c.from = function(u, y, p) {
1599
- if (typeof u == "number")
1600
- throw new TypeError("Argument must not be a number");
1601
- return n(u, y, p);
1602
- }, c.alloc = function(u, y, p) {
1603
- if (typeof u != "number")
1604
- throw new TypeError("Argument must be a number");
1605
- var m = n(u);
1606
- return y !== void 0 ? typeof p == "string" ? m.fill(y, p) : m.fill(y) : m.fill(0), m;
1607
- }, c.allocUnsafe = function(u) {
1608
- if (typeof u != "number")
1609
- throw new TypeError("Argument must be a number");
1610
- return n(u);
1611
- }, c.allocUnsafeSlow = function(u) {
1612
- if (typeof u != "number")
1613
- throw new TypeError("Argument must be a number");
1614
- return t.SlowBuffer(u);
1615
- };
1616
- }(ge, ge.exports)), ge.exports;
1617
- }
1618
- var Wr;
1619
- function ei() {
1620
- if (Wr) return er;
1621
- Wr = 1;
1622
- var r = Jo().Buffer, e = r.isEncoding || function(a) {
1623
- switch (a = "" + a, a && a.toLowerCase()) {
1624
- case "hex":
1625
- case "utf8":
1626
- case "utf-8":
1627
- case "ascii":
1628
- case "binary":
1629
- case "base64":
1630
- case "ucs2":
1631
- case "ucs-2":
1632
- case "utf16le":
1633
- case "utf-16le":
1634
- case "raw":
1635
- return !0;
1636
- default:
1637
- return !1;
1638
- }
1639
- };
1640
- function t(a) {
1641
- if (!a) return "utf8";
1642
- for (var d; ; )
1643
- switch (a) {
1644
- case "utf8":
1645
- case "utf-8":
1646
- return "utf8";
1647
- case "ucs2":
1648
- case "ucs-2":
1649
- case "utf16le":
1650
- case "utf-16le":
1651
- return "utf16le";
1652
- case "latin1":
1653
- case "binary":
1654
- return "latin1";
1655
- case "base64":
1656
- case "ascii":
1657
- case "hex":
1658
- return a;
1659
- default:
1660
- if (d) return;
1661
- a = ("" + a).toLowerCase(), d = !0;
1662
- }
1663
- }
1664
- function n(a) {
1665
- var d = t(a);
1666
- if (typeof d != "string" && (r.isEncoding === e || !e(a))) throw new Error("Unknown encoding: " + a);
1667
- return d || a;
1668
- }
1669
- er.StringDecoder = o;
1670
- function o(a) {
1671
- this.encoding = n(a);
1672
- var d;
1673
- switch (this.encoding) {
1674
- case "utf16le":
1675
- this.text = $, this.end = E, d = 4;
1676
- break;
1677
- case "utf8":
1678
- this.fillLast = p, d = 4;
1679
- break;
1680
- case "base64":
1681
- this.text = _, this.end = T, d = 3;
1682
- break;
1683
- default:
1684
- this.write = I, this.end = C;
1685
- return;
1686
- }
1687
- this.lastNeed = 0, this.lastTotal = 0, this.lastChar = r.allocUnsafe(d);
1688
- }
1689
- o.prototype.write = function(a) {
1690
- if (a.length === 0) return "";
1691
- var d, b;
1692
- if (this.lastNeed) {
1693
- if (d = this.fillLast(a), d === void 0) return "";
1694
- b = this.lastNeed, this.lastNeed = 0;
1695
- } else
1696
- b = 0;
1697
- return b < a.length ? d ? d + this.text(a, b) : this.text(a, b) : d || "";
1698
- }, o.prototype.end = w, o.prototype.text = m, o.prototype.fillLast = function(a) {
1699
- if (this.lastNeed <= a.length)
1700
- return a.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
1701
- a.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, a.length), this.lastNeed -= a.length;
1702
- };
1703
- function c(a) {
1704
- return a <= 127 ? 0 : a >> 5 === 6 ? 2 : a >> 4 === 14 ? 3 : a >> 3 === 30 ? 4 : a >> 6 === 2 ? -1 : -2;
1705
- }
1706
- function u(a, d, b) {
1707
- var R = d.length - 1;
1708
- if (R < b) return 0;
1709
- var B = c(d[R]);
1710
- return B >= 0 ? (B > 0 && (a.lastNeed = B - 1), B) : --R < b || B === -2 ? 0 : (B = c(d[R]), B >= 0 ? (B > 0 && (a.lastNeed = B - 2), B) : --R < b || B === -2 ? 0 : (B = c(d[R]), B >= 0 ? (B > 0 && (B === 2 ? B = 0 : a.lastNeed = B - 3), B) : 0));
1711
- }
1712
- function y(a, d, b) {
1713
- if ((d[0] & 192) !== 128)
1714
- return a.lastNeed = 0, "�";
1715
- if (a.lastNeed > 1 && d.length > 1) {
1716
- if ((d[1] & 192) !== 128)
1717
- return a.lastNeed = 1, "�";
1718
- if (a.lastNeed > 2 && d.length > 2 && (d[2] & 192) !== 128)
1719
- return a.lastNeed = 2, "�";
1720
- }
1721
- }
1722
- function p(a) {
1723
- var d = this.lastTotal - this.lastNeed, b = y(this, a);
1724
- if (b !== void 0) return b;
1725
- if (this.lastNeed <= a.length)
1726
- return a.copy(this.lastChar, d, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
1727
- a.copy(this.lastChar, d, 0, a.length), this.lastNeed -= a.length;
1728
- }
1729
- function m(a, d) {
1730
- var b = u(this, a, d);
1731
- if (!this.lastNeed) return a.toString("utf8", d);
1732
- this.lastTotal = b;
1733
- var R = a.length - (b - this.lastNeed);
1734
- return a.copy(this.lastChar, 0, R), a.toString("utf8", d, R);
1735
- }
1736
- function w(a) {
1737
- var d = a && a.length ? this.write(a) : "";
1738
- return this.lastNeed ? d + "�" : d;
1739
- }
1740
- function $(a, d) {
1741
- if ((a.length - d) % 2 === 0) {
1742
- var b = a.toString("utf16le", d);
1743
- if (b) {
1744
- var R = b.charCodeAt(b.length - 1);
1745
- if (R >= 55296 && R <= 56319)
1746
- return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = a[a.length - 2], this.lastChar[1] = a[a.length - 1], b.slice(0, -1);
1747
- }
1748
- return b;
1749
- }
1750
- return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = a[a.length - 1], a.toString("utf16le", d, a.length - 1);
1751
- }
1752
- function E(a) {
1753
- var d = a && a.length ? this.write(a) : "";
1754
- if (this.lastNeed) {
1755
- var b = this.lastTotal - this.lastNeed;
1756
- return d + this.lastChar.toString("utf16le", 0, b);
1757
- }
1758
- return d;
1759
- }
1760
- function _(a, d) {
1761
- var b = (a.length - d) % 3;
1762
- return b === 0 ? a.toString("base64", d) : (this.lastNeed = 3 - b, this.lastTotal = 3, b === 1 ? this.lastChar[0] = a[a.length - 1] : (this.lastChar[0] = a[a.length - 2], this.lastChar[1] = a[a.length - 1]), a.toString("base64", d, a.length - b));
1763
- }
1764
- function T(a) {
1765
- var d = a && a.length ? this.write(a) : "";
1766
- return this.lastNeed ? d + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : d;
1767
- }
1768
- function I(a) {
1769
- return a.toString(this.encoding);
1770
- }
1771
- function C(a) {
1772
- return a && a.length ? this.write(a) : "";
1773
- }
1774
- return er;
1775
- }
1776
- export {
1777
- ei as a,
1778
- Xo as b,
1779
- ce as c,
1780
- Qo as e,
1781
- st as g,
1782
- Et as i,
1783
- It as r,
1784
- fe as t,
1785
- Nt as u
1786
- };