xyvcard-itsm-flow 0.0.4 → 0.0.6

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.
@@ -1,1908 +0,0 @@
1
- var Kt = Object.defineProperty;
2
- var Jt = (r, e, t) => e in r ? Kt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var w = (r, e, t) => Jt(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { useUserStore as L, clearEmpty as W, request as G, BizDict as Be, BizLayDict as Qt, CustomBizDict as Yt, EnumDict as Xt } from "jmash-core";
5
- import { contractApi as Zt, contractUserApi as en, itemApi as rn } from "xyvcard-itsm";
6
- import { sysOrgApi as vr } from "xyvcard-itsmsys";
7
- import { ref as tn } from "vue";
8
- import { EntryDict as nn } from "jmash-dict";
9
- var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
- function on(r) {
11
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
12
- }
13
- function an(r) {
14
- if (r.__esModule) return r;
15
- var e = r.default;
16
- if (typeof e == "function") {
17
- var t = function n() {
18
- return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
19
- };
20
- t.prototype = e.prototype;
21
- } else t = {};
22
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(n) {
23
- var o = Object.getOwnPropertyDescriptor(r, n);
24
- Object.defineProperty(t, n, o.get ? o : {
25
- enumerable: !0,
26
- get: function() {
27
- return r[n];
28
- }
29
- });
30
- }), t;
31
- }
32
- var q = TypeError;
33
- const ln = {}, fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34
- __proto__: null,
35
- default: ln
36
- }, Symbol.toStringTag, { value: "Module" })), un = /* @__PURE__ */ an(fn);
37
- var br = typeof Map == "function" && Map.prototype, qe = Object.getOwnPropertyDescriptor && br ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Fe = br && qe && typeof qe.get == "function" ? qe.get : null, Fr = br && Map.prototype.forEach, Pr = typeof Set == "function" && Set.prototype, ze = Object.getOwnPropertyDescriptor && Pr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, xe = Pr && ze && typeof ze.get == "function" ? ze.get : null, xr = Pr && Set.prototype.forEach, pn = typeof WeakMap == "function" && WeakMap.prototype, se = pn ? WeakMap.prototype.has : null, cn = typeof WeakSet == "function" && WeakSet.prototype, de = cn ? WeakSet.prototype.has : null, yn = typeof WeakRef == "function" && WeakRef.prototype, Dr = yn ? WeakRef.prototype.deref : null, sn = Boolean.prototype.valueOf, dn = Object.prototype.toString, vn = Function.prototype.toString, hn = String.prototype.match, Er = String.prototype.slice, k = String.prototype.replace, mn = String.prototype.toUpperCase, Nr = String.prototype.toLowerCase, pt = RegExp.prototype.test, Tr = Array.prototype.concat, F = Array.prototype.join, gn = Array.prototype.slice, Mr = Math.floor, hr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ve = Object.getOwnPropertySymbols, mr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, le = typeof Symbol == "function" && typeof Symbol.iterator == "object", E = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === le || !0) ? Symbol.toStringTag : null, ct = Object.prototype.propertyIsEnumerable, Br = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
38
- return r.__proto__;
39
- } : null);
40
- function Ur(r, e) {
41
- if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || pt.call(/e/, e))
42
- return e;
43
- var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
44
- if (typeof r == "number") {
45
- var n = r < 0 ? -Mr(-r) : Mr(r);
46
- if (n !== r) {
47
- var o = String(n), a = Er.call(e, o.length + 1);
48
- return k.call(o, t, "$&_") + "." + k.call(k.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
49
- }
50
- }
51
- return k.call(e, t, "$&_");
52
- }
53
- var gr = un, Cr = gr.custom, Lr = dt(Cr) ? Cr : null, yt = {
54
- __proto__: null,
55
- double: '"',
56
- single: "'"
57
- }, An = {
58
- __proto__: null,
59
- double: /(["\\])/g,
60
- single: /(['\\])/g
61
- }, Ue = function r(e, t, n, o) {
62
- var a = t || {};
63
- if (D(a, "quoteStyle") && !D(yt, a.quoteStyle))
64
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
65
- if (D(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
66
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
67
- var i = D(a, "customInspect") ? a.customInspect : !0;
68
- if (typeof i != "boolean" && i !== "symbol")
69
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
70
- if (D(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
71
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
72
- if (D(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
73
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
74
- var l = a.numericSeparator;
75
- if (typeof e > "u")
76
- return "undefined";
77
- if (e === null)
78
- return "null";
79
- if (typeof e == "boolean")
80
- return e ? "true" : "false";
81
- if (typeof e == "string")
82
- return ht(e, a);
83
- if (typeof e == "number") {
84
- if (e === 0)
85
- return 1 / 0 / e > 0 ? "0" : "-0";
86
- var u = String(e);
87
- return l ? Ur(e, u) : u;
88
- }
89
- if (typeof e == "bigint") {
90
- var c = String(e) + "n";
91
- return l ? Ur(e, c) : c;
92
- }
93
- var p = typeof a.depth > "u" ? 5 : a.depth;
94
- if (typeof n > "u" && (n = 0), n >= p && p > 0 && typeof e == "object")
95
- return Ar(e) ? "[Array]" : "[Object]";
96
- var y = Un(a, n);
97
- if (typeof o > "u")
98
- o = [];
99
- else if (vt(o, e) >= 0)
100
- return "[Circular]";
101
- function f(I, U, x) {
102
- if (U && (o = gn.call(o), o.push(U)), x) {
103
- var ce = {
104
- depth: a.depth
105
- };
106
- return D(a, "quoteStyle") && (ce.quoteStyle = a.quoteStyle), r(I, ce, n + 1, o);
107
- }
108
- return r(I, a, n + 1, o);
109
- }
110
- if (typeof e == "function" && !Wr(e)) {
111
- var m = _n(e), v = Oe(e, f);
112
- return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (v.length > 0 ? " { " + F.call(v, ", ") + " }" : "");
113
- }
114
- if (dt(e)) {
115
- var A = le ? k.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : mr.call(e);
116
- return typeof e == "object" && !le ? ye(A) : A;
117
- }
118
- if (Tn(e)) {
119
- for (var $ = "<" + Nr.call(String(e.nodeName)), N = e.attributes || [], T = 0; T < N.length; T++)
120
- $ += " " + N[T].name + "=" + st(Sn(N[T].value), "double", a);
121
- return $ += ">", e.childNodes && e.childNodes.length && ($ += "..."), $ += "</" + Nr.call(String(e.nodeName)) + ">", $;
122
- }
123
- if (Ar(e)) {
124
- if (e.length === 0)
125
- return "[]";
126
- var h = Oe(e, f);
127
- return y && !Bn(h) ? "[" + Sr(h, y) + "]" : "[ " + F.call(h, ", ") + " ]";
128
- }
129
- if (bn(e)) {
130
- var M = Oe(e, f);
131
- return !("cause" in Error.prototype) && "cause" in e && !ct.call(e, "cause") ? "{ [" + String(e) + "] " + F.call(Tr.call("[cause]: " + f(e.cause), M), ", ") + " }" : M.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + F.call(M, ", ") + " }";
132
- }
133
- if (typeof e == "object" && i) {
134
- if (Lr && typeof e[Lr] == "function" && gr)
135
- return gr(e, { depth: p - n });
136
- if (i !== "symbol" && typeof e.inspect == "function")
137
- return e.inspect();
138
- }
139
- if (Rn(e)) {
140
- var V = [];
141
- return Fr && Fr.call(e, function(I, U) {
142
- V.push(f(U, e, !0) + " => " + f(I, e));
143
- }), Gr("Map", Fe.call(e), V, y);
144
- }
145
- if (Dn(e)) {
146
- var pe = [];
147
- return xr && xr.call(e, function(I) {
148
- pe.push(f(I, e));
149
- }), Gr("Set", xe.call(e), pe, y);
150
- }
151
- if (Fn(e))
152
- return je("WeakMap");
153
- if (Nn(e))
154
- return je("WeakSet");
155
- if (xn(e))
156
- return je("WeakRef");
157
- if (En(e))
158
- return ye(f(Number(e)));
159
- if ($n(e))
160
- return ye(f(hr.call(e)));
161
- if (On(e))
162
- return ye(sn.call(e));
163
- if (Pn(e))
164
- return ye(f(String(e)));
165
- if (typeof window < "u" && e === window)
166
- return "{ [object Window] }";
167
- if (typeof globalThis < "u" && e === globalThis || typeof Rr < "u" && e === Rr)
168
- return "{ [object globalThis] }";
169
- if (!wn(e) && !Wr(e)) {
170
- var X = Oe(e, f), Pe = Br ? Br(e) === Object.prototype : e instanceof Object || e.constructor === Object, j = e instanceof Object ? "" : "null prototype", B = !Pe && E && Object(e) === e && E in e ? Er.call(z(e), 8, -1) : j ? "Object" : "", Ee = Pe || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", Z = Ee + (B || j ? "[" + F.call(Tr.call([], B || [], j || []), ": ") + "] " : "");
171
- return X.length === 0 ? Z + "{}" : y ? Z + "{" + Sr(X, y) + "}" : Z + "{ " + F.call(X, ", ") + " }";
172
- }
173
- return String(e);
174
- };
175
- function st(r, e, t) {
176
- var n = t.quoteStyle || e, o = yt[n];
177
- return o + r + o;
178
- }
179
- function Sn(r) {
180
- return k.call(String(r), /"/g, "&quot;");
181
- }
182
- function Ar(r) {
183
- return z(r) === "[object Array]" && (!E || !(typeof r == "object" && E in r));
184
- }
185
- function wn(r) {
186
- return z(r) === "[object Date]" && (!E || !(typeof r == "object" && E in r));
187
- }
188
- function Wr(r) {
189
- return z(r) === "[object RegExp]" && (!E || !(typeof r == "object" && E in r));
190
- }
191
- function bn(r) {
192
- return z(r) === "[object Error]" && (!E || !(typeof r == "object" && E in r));
193
- }
194
- function Pn(r) {
195
- return z(r) === "[object String]" && (!E || !(typeof r == "object" && E in r));
196
- }
197
- function En(r) {
198
- return z(r) === "[object Number]" && (!E || !(typeof r == "object" && E in r));
199
- }
200
- function On(r) {
201
- return z(r) === "[object Boolean]" && (!E || !(typeof r == "object" && E in r));
202
- }
203
- function dt(r) {
204
- if (le)
205
- return r && typeof r == "object" && r instanceof Symbol;
206
- if (typeof r == "symbol")
207
- return !0;
208
- if (!r || typeof r != "object" || !mr)
209
- return !1;
210
- try {
211
- return mr.call(r), !0;
212
- } catch {
213
- }
214
- return !1;
215
- }
216
- function $n(r) {
217
- if (!r || typeof r != "object" || !hr)
218
- return !1;
219
- try {
220
- return hr.call(r), !0;
221
- } catch {
222
- }
223
- return !1;
224
- }
225
- var In = Object.prototype.hasOwnProperty || function(r) {
226
- return r in this;
227
- };
228
- function D(r, e) {
229
- return In.call(r, e);
230
- }
231
- function z(r) {
232
- return dn.call(r);
233
- }
234
- function _n(r) {
235
- if (r.name)
236
- return r.name;
237
- var e = hn.call(vn.call(r), /^function\s*([\w$]+)/);
238
- return e ? e[1] : null;
239
- }
240
- function vt(r, e) {
241
- if (r.indexOf)
242
- return r.indexOf(e);
243
- for (var t = 0, n = r.length; t < n; t++)
244
- if (r[t] === e)
245
- return t;
246
- return -1;
247
- }
248
- function Rn(r) {
249
- if (!Fe || !r || typeof r != "object")
250
- return !1;
251
- try {
252
- Fe.call(r);
253
- try {
254
- xe.call(r);
255
- } catch {
256
- return !0;
257
- }
258
- return r instanceof Map;
259
- } catch {
260
- }
261
- return !1;
262
- }
263
- function Fn(r) {
264
- if (!se || !r || typeof r != "object")
265
- return !1;
266
- try {
267
- se.call(r, se);
268
- try {
269
- de.call(r, de);
270
- } catch {
271
- return !0;
272
- }
273
- return r instanceof WeakMap;
274
- } catch {
275
- }
276
- return !1;
277
- }
278
- function xn(r) {
279
- if (!Dr || !r || typeof r != "object")
280
- return !1;
281
- try {
282
- return Dr.call(r), !0;
283
- } catch {
284
- }
285
- return !1;
286
- }
287
- function Dn(r) {
288
- if (!xe || !r || typeof r != "object")
289
- return !1;
290
- try {
291
- xe.call(r);
292
- try {
293
- Fe.call(r);
294
- } catch {
295
- return !0;
296
- }
297
- return r instanceof Set;
298
- } catch {
299
- }
300
- return !1;
301
- }
302
- function Nn(r) {
303
- if (!de || !r || typeof r != "object")
304
- return !1;
305
- try {
306
- de.call(r, de);
307
- try {
308
- se.call(r, se);
309
- } catch {
310
- return !0;
311
- }
312
- return r instanceof WeakSet;
313
- } catch {
314
- }
315
- return !1;
316
- }
317
- function Tn(r) {
318
- return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
319
- }
320
- function ht(r, e) {
321
- if (r.length > e.maxStringLength) {
322
- var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
323
- return ht(Er.call(r, 0, e.maxStringLength), e) + n;
324
- }
325
- var o = An[e.quoteStyle || "single"];
326
- o.lastIndex = 0;
327
- var a = k.call(k.call(r, o, "\\$1"), /[\x00-\x1f]/g, Mn);
328
- return st(a, "single", e);
329
- }
330
- function Mn(r) {
331
- var e = r.charCodeAt(0), t = {
332
- 8: "b",
333
- 9: "t",
334
- 10: "n",
335
- 12: "f",
336
- 13: "r"
337
- }[e];
338
- return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + mn.call(e.toString(16));
339
- }
340
- function ye(r) {
341
- return "Object(" + r + ")";
342
- }
343
- function je(r) {
344
- return r + " { ? }";
345
- }
346
- function Gr(r, e, t, n) {
347
- var o = n ? Sr(t, n) : F.call(t, ", ");
348
- return r + " (" + e + ") {" + o + "}";
349
- }
350
- function Bn(r) {
351
- for (var e = 0; e < r.length; e++)
352
- if (vt(r[e], `
353
- `) >= 0)
354
- return !1;
355
- return !0;
356
- }
357
- function Un(r, e) {
358
- var t;
359
- if (r.indent === " ")
360
- t = " ";
361
- else if (typeof r.indent == "number" && r.indent > 0)
362
- t = F.call(Array(r.indent + 1), " ");
363
- else
364
- return null;
365
- return {
366
- base: t,
367
- prev: F.call(Array(e + 1), t)
368
- };
369
- }
370
- function Sr(r, e) {
371
- if (r.length === 0)
372
- return "";
373
- var t = `
374
- ` + e.prev + e.base;
375
- return t + F.call(r, "," + t) + `
376
- ` + e.prev;
377
- }
378
- function Oe(r, e) {
379
- var t = Ar(r), n = [];
380
- if (t) {
381
- n.length = r.length;
382
- for (var o = 0; o < r.length; o++)
383
- n[o] = D(r, o) ? e(r[o], r) : "";
384
- }
385
- var a = typeof Ve == "function" ? Ve(r) : [], i;
386
- if (le) {
387
- i = {};
388
- for (var l = 0; l < a.length; l++)
389
- i["$" + a[l]] = a[l];
390
- }
391
- for (var u in r)
392
- D(r, u) && (t && String(Number(u)) === u && u < r.length || le && i["$" + u] instanceof Symbol || (pt.call(/[^\w$]/, u) ? n.push(e(u, r) + ": " + e(r[u], r)) : n.push(u + ": " + e(r[u], r))));
393
- if (typeof Ve == "function")
394
- for (var c = 0; c < a.length; c++)
395
- ct.call(r, a[c]) && n.push("[" + e(a[c]) + "]: " + e(r[a[c]], r));
396
- return n;
397
- }
398
- var Cn = Ue, Ln = q, Ce = function(r, e, t) {
399
- for (var n = r, o; (o = n.next) != null; n = o)
400
- if (o.key === e)
401
- return n.next = o.next, t || (o.next = /** @type {NonNullable<typeof list.next>} */
402
- r.next, r.next = o), o;
403
- }, Wn = function(r, e) {
404
- if (r) {
405
- var t = Ce(r, e);
406
- return t && t.value;
407
- }
408
- }, Gn = function(r, e, t) {
409
- var n = Ce(r, e);
410
- n ? n.value = t : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
411
- {
412
- // eslint-disable-line no-param-reassign, no-extra-parens
413
- key: e,
414
- next: r.next,
415
- value: t
416
- };
417
- }, kn = function(r, e) {
418
- return r ? !!Ce(r, e) : !1;
419
- }, qn = function(r, e) {
420
- if (r)
421
- return Ce(r, e, !0);
422
- }, zn = function() {
423
- var e, t = {
424
- assert: function(n) {
425
- if (!t.has(n))
426
- throw new Ln("Side channel does not contain " + Cn(n));
427
- },
428
- delete: function(n) {
429
- var o = e && e.next, a = qn(e, n);
430
- return a && o && o === a && (e = void 0), !!a;
431
- },
432
- get: function(n) {
433
- return Wn(e, n);
434
- },
435
- has: function(n) {
436
- return kn(e, n);
437
- },
438
- set: function(n, o) {
439
- e || (e = {
440
- next: void 0
441
- }), Gn(
442
- /** @type {NonNullable<typeof $o>} */
443
- e,
444
- n,
445
- o
446
- );
447
- }
448
- };
449
- return t;
450
- }, mt = Error, gt = EvalError, At = RangeError, St = ReferenceError, wt = SyntaxError, bt = URIError, Vn = Object.getOwnPropertyDescriptor, Ie = Vn;
451
- if (Ie)
452
- try {
453
- Ie([], "length");
454
- } catch {
455
- Ie = null;
456
- }
457
- var Le = Ie, _e = Object.defineProperty || !1;
458
- if (_e)
459
- try {
460
- _e({}, "a", { value: 1 });
461
- } catch {
462
- _e = !1;
463
- }
464
- var Pt = _e, He, kr;
465
- function jn() {
466
- return kr || (kr = 1, He = function() {
467
- if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
468
- return !1;
469
- if (typeof Symbol.iterator == "symbol")
470
- return !0;
471
- var e = {}, t = Symbol("test"), n = Object(t);
472
- if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
473
- return !1;
474
- var o = 42;
475
- e[t] = o;
476
- for (var a in e)
477
- return !1;
478
- if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
479
- return !1;
480
- var i = Object.getOwnPropertySymbols(e);
481
- if (i.length !== 1 || i[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
482
- return !1;
483
- if (typeof Object.getOwnPropertyDescriptor == "function") {
484
- var l = (
485
- /** @type {PropertyDescriptor} */
486
- Object.getOwnPropertyDescriptor(e, t)
487
- );
488
- if (l.value !== o || l.enumerable !== !0)
489
- return !1;
490
- }
491
- return !0;
492
- }), He;
493
- }
494
- var Ke, qr;
495
- function Et() {
496
- if (qr) return Ke;
497
- qr = 1;
498
- var r = typeof Symbol < "u" && Symbol, e = jn();
499
- return Ke = function() {
500
- return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
501
- }, Ke;
502
- }
503
- var Hn = "Function.prototype.bind called on incompatible ", Kn = Object.prototype.toString, Jn = Math.max, Qn = "[object Function]", zr = function(e, t) {
504
- for (var n = [], o = 0; o < e.length; o += 1)
505
- n[o] = e[o];
506
- for (var a = 0; a < t.length; a += 1)
507
- n[a + e.length] = t[a];
508
- return n;
509
- }, Yn = function(e, t) {
510
- for (var n = [], o = t, a = 0; o < e.length; o += 1, a += 1)
511
- n[a] = e[o];
512
- return n;
513
- }, Xn = function(r, e) {
514
- for (var t = "", n = 0; n < r.length; n += 1)
515
- t += r[n], n + 1 < r.length && (t += e);
516
- return t;
517
- }, Zn = function(e) {
518
- var t = this;
519
- if (typeof t != "function" || Kn.apply(t) !== Qn)
520
- throw new TypeError(Hn + t);
521
- for (var n = Yn(arguments, 1), o, a = function() {
522
- if (this instanceof o) {
523
- var p = t.apply(
524
- this,
525
- zr(n, arguments)
526
- );
527
- return Object(p) === p ? p : this;
528
- }
529
- return t.apply(
530
- e,
531
- zr(n, arguments)
532
- );
533
- }, i = Jn(0, t.length - n.length), l = [], u = 0; u < i; u++)
534
- l[u] = "$" + u;
535
- if (o = Function("binder", "return function (" + Xn(l, ",") + "){ return binder.apply(this,arguments); }")(a), t.prototype) {
536
- var c = function() {
537
- };
538
- c.prototype = t.prototype, o.prototype = new c(), c.prototype = null;
539
- }
540
- return o;
541
- }, eo = Zn, Y = Function.prototype.bind || eo, Je, Vr;
542
- function Or() {
543
- return Vr || (Vr = 1, Je = Function.prototype.call), Je;
544
- }
545
- var Qe, jr;
546
- function Ot() {
547
- return jr || (jr = 1, Qe = Function.prototype.apply), Qe;
548
- }
549
- var Ye, Hr;
550
- function ro() {
551
- return Hr || (Hr = 1, Ye = typeof Reflect == "function" && Reflect.apply), Ye;
552
- }
553
- var Xe, Kr;
554
- function to() {
555
- if (Kr) return Xe;
556
- Kr = 1;
557
- var r = Y, e = Ot(), t = Or(), n = ro();
558
- return Xe = n || r.call(t, e), Xe;
559
- }
560
- var Ze, Jr;
561
- function no() {
562
- if (Jr) return Ze;
563
- Jr = 1;
564
- var r = Y, e = q, t = Or(), n = to();
565
- return Ze = function(a) {
566
- if (a.length < 1 || typeof a[0] != "function")
567
- throw new e("a function is required");
568
- return n(r, t, a);
569
- }, Ze;
570
- }
571
- var er, Qr;
572
- function oo() {
573
- if (Qr) return er;
574
- Qr = 1;
575
- var r = no(), e = Le, t = (
576
- /** @type {{ __proto__?: typeof Array.prototype }} */
577
- [].__proto__ === Array.prototype
578
- ), n = t && e && e(
579
- Object.prototype,
580
- /** @type {keyof typeof Object.prototype} */
581
- "__proto__"
582
- ), o = Object, a = o.getPrototypeOf;
583
- return er = n && typeof n.get == "function" ? r([n.get]) : typeof a == "function" ? (
584
- /** @type {import('./get')} */
585
- function(l) {
586
- return a(l == null ? l : o(l));
587
- }
588
- ) : !1, er;
589
- }
590
- var rr, Yr;
591
- function $t() {
592
- if (Yr) return rr;
593
- Yr = 1;
594
- var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Y;
595
- return rr = t.call(r, e), rr;
596
- }
597
- var d, ao = mt, io = gt, lo = At, fo = St, fe = wt, ae = q, uo = bt, It = Function, tr = function(r) {
598
- try {
599
- return It('"use strict"; return (' + r + ").constructor;")();
600
- } catch {
601
- }
602
- }, he = Le, po = Pt, nr = function() {
603
- throw new ae();
604
- }, co = he ? function() {
605
- try {
606
- return arguments.callee, nr;
607
- } catch {
608
- try {
609
- return he(arguments, "callee").get;
610
- } catch {
611
- return nr;
612
- }
613
- }
614
- }() : nr, ee = Et()(), yo = oo(), b = typeof Reflect == "function" && Reflect.getPrototypeOf || Object.getPrototypeOf || yo, _t = Ot(), ge = Or(), ne = {}, so = typeof Uint8Array > "u" || !b ? d : b(Uint8Array), K = {
615
- __proto__: null,
616
- "%AggregateError%": typeof AggregateError > "u" ? d : AggregateError,
617
- "%Array%": Array,
618
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? d : ArrayBuffer,
619
- "%ArrayIteratorPrototype%": ee && b ? b([][Symbol.iterator]()) : d,
620
- "%AsyncFromSyncIteratorPrototype%": d,
621
- "%AsyncFunction%": ne,
622
- "%AsyncGenerator%": ne,
623
- "%AsyncGeneratorFunction%": ne,
624
- "%AsyncIteratorPrototype%": ne,
625
- "%Atomics%": typeof Atomics > "u" ? d : Atomics,
626
- "%BigInt%": typeof BigInt > "u" ? d : BigInt,
627
- "%BigInt64Array%": typeof BigInt64Array > "u" ? d : BigInt64Array,
628
- "%BigUint64Array%": typeof BigUint64Array > "u" ? d : BigUint64Array,
629
- "%Boolean%": Boolean,
630
- "%DataView%": typeof DataView > "u" ? d : DataView,
631
- "%Date%": Date,
632
- "%decodeURI%": decodeURI,
633
- "%decodeURIComponent%": decodeURIComponent,
634
- "%encodeURI%": encodeURI,
635
- "%encodeURIComponent%": encodeURIComponent,
636
- "%Error%": ao,
637
- "%eval%": eval,
638
- // eslint-disable-line no-eval
639
- "%EvalError%": io,
640
- "%Float32Array%": typeof Float32Array > "u" ? d : Float32Array,
641
- "%Float64Array%": typeof Float64Array > "u" ? d : Float64Array,
642
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? d : FinalizationRegistry,
643
- "%Function%": It,
644
- "%GeneratorFunction%": ne,
645
- "%Int8Array%": typeof Int8Array > "u" ? d : Int8Array,
646
- "%Int16Array%": typeof Int16Array > "u" ? d : Int16Array,
647
- "%Int32Array%": typeof Int32Array > "u" ? d : Int32Array,
648
- "%isFinite%": isFinite,
649
- "%isNaN%": isNaN,
650
- "%IteratorPrototype%": ee && b ? b(b([][Symbol.iterator]())) : d,
651
- "%JSON%": typeof JSON == "object" ? JSON : d,
652
- "%Map%": typeof Map > "u" ? d : Map,
653
- "%MapIteratorPrototype%": typeof Map > "u" || !ee || !b ? d : b((/* @__PURE__ */ new Map())[Symbol.iterator]()),
654
- "%Math%": Math,
655
- "%Number%": Number,
656
- "%Object%": Object,
657
- "%Object.getOwnPropertyDescriptor%": he,
658
- "%parseFloat%": parseFloat,
659
- "%parseInt%": parseInt,
660
- "%Promise%": typeof Promise > "u" ? d : Promise,
661
- "%Proxy%": typeof Proxy > "u" ? d : Proxy,
662
- "%RangeError%": lo,
663
- "%ReferenceError%": fo,
664
- "%Reflect%": typeof Reflect > "u" ? d : Reflect,
665
- "%RegExp%": RegExp,
666
- "%Set%": typeof Set > "u" ? d : Set,
667
- "%SetIteratorPrototype%": typeof Set > "u" || !ee || !b ? d : b((/* @__PURE__ */ new Set())[Symbol.iterator]()),
668
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? d : SharedArrayBuffer,
669
- "%String%": String,
670
- "%StringIteratorPrototype%": ee && b ? b(""[Symbol.iterator]()) : d,
671
- "%Symbol%": ee ? Symbol : d,
672
- "%SyntaxError%": fe,
673
- "%ThrowTypeError%": co,
674
- "%TypedArray%": so,
675
- "%TypeError%": ae,
676
- "%Uint8Array%": typeof Uint8Array > "u" ? d : Uint8Array,
677
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? d : Uint8ClampedArray,
678
- "%Uint16Array%": typeof Uint16Array > "u" ? d : Uint16Array,
679
- "%Uint32Array%": typeof Uint32Array > "u" ? d : Uint32Array,
680
- "%URIError%": uo,
681
- "%WeakMap%": typeof WeakMap > "u" ? d : WeakMap,
682
- "%WeakRef%": typeof WeakRef > "u" ? d : WeakRef,
683
- "%WeakSet%": typeof WeakSet > "u" ? d : WeakSet,
684
- "%Function.prototype.call%": ge,
685
- "%Function.prototype.apply%": _t,
686
- "%Object.defineProperty%": po
687
- };
688
- if (b)
689
- try {
690
- null.error;
691
- } catch (r) {
692
- var vo = b(b(r));
693
- K["%Error.prototype%"] = vo;
694
- }
695
- var ho = function r(e) {
696
- var t;
697
- if (e === "%AsyncFunction%")
698
- t = tr("async function () {}");
699
- else if (e === "%GeneratorFunction%")
700
- t = tr("function* () {}");
701
- else if (e === "%AsyncGeneratorFunction%")
702
- t = tr("async function* () {}");
703
- else if (e === "%AsyncGenerator%") {
704
- var n = r("%AsyncGeneratorFunction%");
705
- n && (t = n.prototype);
706
- } else if (e === "%AsyncIteratorPrototype%") {
707
- var o = r("%AsyncGenerator%");
708
- o && b && (t = b(o.prototype));
709
- }
710
- return K[e] = t, t;
711
- }, Xr = {
712
- __proto__: null,
713
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
714
- "%ArrayPrototype%": ["Array", "prototype"],
715
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
716
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
717
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
718
- "%ArrayProto_values%": ["Array", "prototype", "values"],
719
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
720
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
721
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
722
- "%BooleanPrototype%": ["Boolean", "prototype"],
723
- "%DataViewPrototype%": ["DataView", "prototype"],
724
- "%DatePrototype%": ["Date", "prototype"],
725
- "%ErrorPrototype%": ["Error", "prototype"],
726
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
727
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
728
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
729
- "%FunctionPrototype%": ["Function", "prototype"],
730
- "%Generator%": ["GeneratorFunction", "prototype"],
731
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
732
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
733
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
734
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
735
- "%JSONParse%": ["JSON", "parse"],
736
- "%JSONStringify%": ["JSON", "stringify"],
737
- "%MapPrototype%": ["Map", "prototype"],
738
- "%NumberPrototype%": ["Number", "prototype"],
739
- "%ObjectPrototype%": ["Object", "prototype"],
740
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
741
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
742
- "%PromisePrototype%": ["Promise", "prototype"],
743
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
744
- "%Promise_all%": ["Promise", "all"],
745
- "%Promise_reject%": ["Promise", "reject"],
746
- "%Promise_resolve%": ["Promise", "resolve"],
747
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
748
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
749
- "%RegExpPrototype%": ["RegExp", "prototype"],
750
- "%SetPrototype%": ["Set", "prototype"],
751
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
752
- "%StringPrototype%": ["String", "prototype"],
753
- "%SymbolPrototype%": ["Symbol", "prototype"],
754
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
755
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
756
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
757
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
758
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
759
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
760
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
761
- "%URIErrorPrototype%": ["URIError", "prototype"],
762
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
763
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
764
- }, Ae = Y, De = $t(), mo = Ae.call(ge, Array.prototype.concat), go = Ae.call(_t, Array.prototype.splice), Zr = Ae.call(ge, String.prototype.replace), Ne = Ae.call(ge, String.prototype.slice), Ao = Ae.call(ge, RegExp.prototype.exec), So = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, wo = /\\(\\)?/g, bo = function(e) {
765
- var t = Ne(e, 0, 1), n = Ne(e, -1);
766
- if (t === "%" && n !== "%")
767
- throw new fe("invalid intrinsic syntax, expected closing `%`");
768
- if (n === "%" && t !== "%")
769
- throw new fe("invalid intrinsic syntax, expected opening `%`");
770
- var o = [];
771
- return Zr(e, So, function(a, i, l, u) {
772
- o[o.length] = l ? Zr(u, wo, "$1") : i || a;
773
- }), o;
774
- }, Po = function(e, t) {
775
- var n = e, o;
776
- if (De(Xr, n) && (o = Xr[n], n = "%" + o[0] + "%"), De(K, n)) {
777
- var a = K[n];
778
- if (a === ne && (a = ho(n)), typeof a > "u" && !t)
779
- throw new ae("intrinsic " + e + " exists, but is not available. Please file an issue!");
780
- return {
781
- alias: o,
782
- name: n,
783
- value: a
784
- };
785
- }
786
- throw new fe("intrinsic " + e + " does not exist!");
787
- }, Rt = function(e, t) {
788
- if (typeof e != "string" || e.length === 0)
789
- throw new ae("intrinsic name must be a non-empty string");
790
- if (arguments.length > 1 && typeof t != "boolean")
791
- throw new ae('"allowMissing" argument must be a boolean');
792
- if (Ao(/^%?[^%]*%?$/, e) === null)
793
- throw new fe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
794
- var n = bo(e), o = n.length > 0 ? n[0] : "", a = Po("%" + o + "%", t), i = a.name, l = a.value, u = !1, c = a.alias;
795
- c && (o = c[0], go(n, mo([0, 1], c)));
796
- for (var p = 1, y = !0; p < n.length; p += 1) {
797
- var f = n[p], m = Ne(f, 0, 1), v = Ne(f, -1);
798
- if ((m === '"' || m === "'" || m === "`" || v === '"' || v === "'" || v === "`") && m !== v)
799
- throw new fe("property names with quotes must have matching quotes");
800
- if ((f === "constructor" || !y) && (u = !0), o += "." + f, i = "%" + o + "%", De(K, i))
801
- l = K[i];
802
- else if (l != null) {
803
- if (!(f in l)) {
804
- if (!t)
805
- throw new ae("base intrinsic for " + e + " exists, but the property is not available.");
806
- return;
807
- }
808
- if (he && p + 1 >= n.length) {
809
- var A = he(l, f);
810
- y = !!A, y && "get" in A && !("originalValue" in A.get) ? l = A.get : l = l[f];
811
- } else
812
- y = De(l, f), l = l[f];
813
- y && !u && (K[i] = l);
814
- }
815
- }
816
- return l;
817
- }, Ft = Object, Eo = Math.abs, Oo = Math.floor, $o = Math.max, Io = Math.min, _o = Math.pow, Ro = Math.round, Fo = Number.isNaN || function(e) {
818
- return e !== e;
819
- }, xo = Fo, Do = function(e) {
820
- return xo(e) || e === 0 ? e : e < 0 ? -1 : 1;
821
- }, or, et;
822
- function xt() {
823
- return et || (et = 1, or = typeof Reflect < "u" && Reflect.getPrototypeOf || null), or;
824
- }
825
- var ar, rt;
826
- function Dt() {
827
- if (rt) return ar;
828
- rt = 1;
829
- var r = Ft;
830
- return ar = r.getPrototypeOf || null, ar;
831
- }
832
- var $r = Function.prototype.call, ir, tt;
833
- function Nt() {
834
- return tt || (tt = 1, ir = Function.prototype.apply), ir;
835
- }
836
- var No = typeof Reflect < "u" && Reflect && Reflect.apply, To = Y, Mo = Nt(), Bo = $r, Uo = No, Co = Uo || To.call(Bo, Mo), Lo = Y, Wo = q, Go = $r, ko = Co, Tt = function(e) {
837
- if (e.length < 1 || typeof e[0] != "function")
838
- throw new Wo("a function is required");
839
- return ko(Lo, Go, e);
840
- }, lr, nt;
841
- function qo() {
842
- if (nt) return lr;
843
- nt = 1;
844
- var r = Tt, e = Le, t;
845
- try {
846
- t = /** @type {{ __proto__?: typeof Array.prototype }} */
847
- [].__proto__ === Array.prototype;
848
- } catch (i) {
849
- if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
850
- throw i;
851
- }
852
- var n = !!t && e && e(
853
- Object.prototype,
854
- /** @type {keyof typeof Object.prototype} */
855
- "__proto__"
856
- ), o = Object, a = o.getPrototypeOf;
857
- return lr = n && typeof n.get == "function" ? r([n.get]) : typeof a == "function" ? (
858
- /** @type {import('./get')} */
859
- function(l) {
860
- return a(l == null ? l : o(l));
861
- }
862
- ) : !1, lr;
863
- }
864
- var fr, ot;
865
- function zo() {
866
- if (ot) return fr;
867
- ot = 1;
868
- var r = xt(), e = Dt(), t = qo();
869
- return fr = r ? function(o) {
870
- return r(o);
871
- } : e ? function(o) {
872
- if (!o || typeof o != "object" && typeof o != "function")
873
- throw new TypeError("getProto: not an object");
874
- return e(o);
875
- } : t ? function(o) {
876
- return t(o);
877
- } : null, fr;
878
- }
879
- var s, Vo = Ft, jo = mt, Ho = gt, Ko = At, Jo = St, ue = wt, ie = q, Qo = bt, Yo = Eo, Xo = Oo, Zo = $o, ea = Io, ra = _o, ta = Ro, na = Do, Mt = Function, ur = function(r) {
880
- try {
881
- return Mt('"use strict"; return (' + r + ").constructor;")();
882
- } catch {
883
- }
884
- }, me = Le, oa = Pt, pr = function() {
885
- throw new ie();
886
- }, aa = me ? function() {
887
- try {
888
- return arguments.callee, pr;
889
- } catch {
890
- try {
891
- return me(arguments, "callee").get;
892
- } catch {
893
- return pr;
894
- }
895
- }
896
- }() : pr, re = Et()(), P = zo(), ia = Dt(), la = xt(), Bt = Nt(), Se = $r, oe = {}, fa = typeof Uint8Array > "u" || !P ? s : P(Uint8Array), J = {
897
- __proto__: null,
898
- "%AggregateError%": typeof AggregateError > "u" ? s : AggregateError,
899
- "%Array%": Array,
900
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? s : ArrayBuffer,
901
- "%ArrayIteratorPrototype%": re && P ? P([][Symbol.iterator]()) : s,
902
- "%AsyncFromSyncIteratorPrototype%": s,
903
- "%AsyncFunction%": oe,
904
- "%AsyncGenerator%": oe,
905
- "%AsyncGeneratorFunction%": oe,
906
- "%AsyncIteratorPrototype%": oe,
907
- "%Atomics%": typeof Atomics > "u" ? s : Atomics,
908
- "%BigInt%": typeof BigInt > "u" ? s : BigInt,
909
- "%BigInt64Array%": typeof BigInt64Array > "u" ? s : BigInt64Array,
910
- "%BigUint64Array%": typeof BigUint64Array > "u" ? s : BigUint64Array,
911
- "%Boolean%": Boolean,
912
- "%DataView%": typeof DataView > "u" ? s : DataView,
913
- "%Date%": Date,
914
- "%decodeURI%": decodeURI,
915
- "%decodeURIComponent%": decodeURIComponent,
916
- "%encodeURI%": encodeURI,
917
- "%encodeURIComponent%": encodeURIComponent,
918
- "%Error%": jo,
919
- "%eval%": eval,
920
- // eslint-disable-line no-eval
921
- "%EvalError%": Ho,
922
- "%Float16Array%": typeof Float16Array > "u" ? s : Float16Array,
923
- "%Float32Array%": typeof Float32Array > "u" ? s : Float32Array,
924
- "%Float64Array%": typeof Float64Array > "u" ? s : Float64Array,
925
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? s : FinalizationRegistry,
926
- "%Function%": Mt,
927
- "%GeneratorFunction%": oe,
928
- "%Int8Array%": typeof Int8Array > "u" ? s : Int8Array,
929
- "%Int16Array%": typeof Int16Array > "u" ? s : Int16Array,
930
- "%Int32Array%": typeof Int32Array > "u" ? s : Int32Array,
931
- "%isFinite%": isFinite,
932
- "%isNaN%": isNaN,
933
- "%IteratorPrototype%": re && P ? P(P([][Symbol.iterator]())) : s,
934
- "%JSON%": typeof JSON == "object" ? JSON : s,
935
- "%Map%": typeof Map > "u" ? s : Map,
936
- "%MapIteratorPrototype%": typeof Map > "u" || !re || !P ? s : P((/* @__PURE__ */ new Map())[Symbol.iterator]()),
937
- "%Math%": Math,
938
- "%Number%": Number,
939
- "%Object%": Vo,
940
- "%Object.getOwnPropertyDescriptor%": me,
941
- "%parseFloat%": parseFloat,
942
- "%parseInt%": parseInt,
943
- "%Promise%": typeof Promise > "u" ? s : Promise,
944
- "%Proxy%": typeof Proxy > "u" ? s : Proxy,
945
- "%RangeError%": Ko,
946
- "%ReferenceError%": Jo,
947
- "%Reflect%": typeof Reflect > "u" ? s : Reflect,
948
- "%RegExp%": RegExp,
949
- "%Set%": typeof Set > "u" ? s : Set,
950
- "%SetIteratorPrototype%": typeof Set > "u" || !re || !P ? s : P((/* @__PURE__ */ new Set())[Symbol.iterator]()),
951
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? s : SharedArrayBuffer,
952
- "%String%": String,
953
- "%StringIteratorPrototype%": re && P ? P(""[Symbol.iterator]()) : s,
954
- "%Symbol%": re ? Symbol : s,
955
- "%SyntaxError%": ue,
956
- "%ThrowTypeError%": aa,
957
- "%TypedArray%": fa,
958
- "%TypeError%": ie,
959
- "%Uint8Array%": typeof Uint8Array > "u" ? s : Uint8Array,
960
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? s : Uint8ClampedArray,
961
- "%Uint16Array%": typeof Uint16Array > "u" ? s : Uint16Array,
962
- "%Uint32Array%": typeof Uint32Array > "u" ? s : Uint32Array,
963
- "%URIError%": Qo,
964
- "%WeakMap%": typeof WeakMap > "u" ? s : WeakMap,
965
- "%WeakRef%": typeof WeakRef > "u" ? s : WeakRef,
966
- "%WeakSet%": typeof WeakSet > "u" ? s : WeakSet,
967
- "%Function.prototype.call%": Se,
968
- "%Function.prototype.apply%": Bt,
969
- "%Object.defineProperty%": oa,
970
- "%Object.getPrototypeOf%": ia,
971
- "%Math.abs%": Yo,
972
- "%Math.floor%": Xo,
973
- "%Math.max%": Zo,
974
- "%Math.min%": ea,
975
- "%Math.pow%": ra,
976
- "%Math.round%": ta,
977
- "%Math.sign%": na,
978
- "%Reflect.getPrototypeOf%": la
979
- };
980
- if (P)
981
- try {
982
- null.error;
983
- } catch (r) {
984
- var ua = P(P(r));
985
- J["%Error.prototype%"] = ua;
986
- }
987
- var pa = function r(e) {
988
- var t;
989
- if (e === "%AsyncFunction%")
990
- t = ur("async function () {}");
991
- else if (e === "%GeneratorFunction%")
992
- t = ur("function* () {}");
993
- else if (e === "%AsyncGeneratorFunction%")
994
- t = ur("async function* () {}");
995
- else if (e === "%AsyncGenerator%") {
996
- var n = r("%AsyncGeneratorFunction%");
997
- n && (t = n.prototype);
998
- } else if (e === "%AsyncIteratorPrototype%") {
999
- var o = r("%AsyncGenerator%");
1000
- o && P && (t = P(o.prototype));
1001
- }
1002
- return J[e] = t, t;
1003
- }, at = {
1004
- __proto__: null,
1005
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1006
- "%ArrayPrototype%": ["Array", "prototype"],
1007
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1008
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1009
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1010
- "%ArrayProto_values%": ["Array", "prototype", "values"],
1011
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1012
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1013
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1014
- "%BooleanPrototype%": ["Boolean", "prototype"],
1015
- "%DataViewPrototype%": ["DataView", "prototype"],
1016
- "%DatePrototype%": ["Date", "prototype"],
1017
- "%ErrorPrototype%": ["Error", "prototype"],
1018
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
1019
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1020
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1021
- "%FunctionPrototype%": ["Function", "prototype"],
1022
- "%Generator%": ["GeneratorFunction", "prototype"],
1023
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1024
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1025
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1026
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1027
- "%JSONParse%": ["JSON", "parse"],
1028
- "%JSONStringify%": ["JSON", "stringify"],
1029
- "%MapPrototype%": ["Map", "prototype"],
1030
- "%NumberPrototype%": ["Number", "prototype"],
1031
- "%ObjectPrototype%": ["Object", "prototype"],
1032
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
1033
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1034
- "%PromisePrototype%": ["Promise", "prototype"],
1035
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
1036
- "%Promise_all%": ["Promise", "all"],
1037
- "%Promise_reject%": ["Promise", "reject"],
1038
- "%Promise_resolve%": ["Promise", "resolve"],
1039
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
1040
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1041
- "%RegExpPrototype%": ["RegExp", "prototype"],
1042
- "%SetPrototype%": ["Set", "prototype"],
1043
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1044
- "%StringPrototype%": ["String", "prototype"],
1045
- "%SymbolPrototype%": ["Symbol", "prototype"],
1046
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1047
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1048
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
1049
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1050
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1051
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1052
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1053
- "%URIErrorPrototype%": ["URIError", "prototype"],
1054
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
1055
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
1056
- }, we = Y, Te = $t(), ca = we.call(Se, Array.prototype.concat), ya = we.call(Bt, Array.prototype.splice), it = we.call(Se, String.prototype.replace), Me = we.call(Se, String.prototype.slice), sa = we.call(Se, RegExp.prototype.exec), da = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, va = /\\(\\)?/g, ha = function(e) {
1057
- var t = Me(e, 0, 1), n = Me(e, -1);
1058
- if (t === "%" && n !== "%")
1059
- throw new ue("invalid intrinsic syntax, expected closing `%`");
1060
- if (n === "%" && t !== "%")
1061
- throw new ue("invalid intrinsic syntax, expected opening `%`");
1062
- var o = [];
1063
- return it(e, da, function(a, i, l, u) {
1064
- o[o.length] = l ? it(u, va, "$1") : i || a;
1065
- }), o;
1066
- }, ma = function(e, t) {
1067
- var n = e, o;
1068
- if (Te(at, n) && (o = at[n], n = "%" + o[0] + "%"), Te(J, n)) {
1069
- var a = J[n];
1070
- if (a === oe && (a = pa(n)), typeof a > "u" && !t)
1071
- throw new ie("intrinsic " + e + " exists, but is not available. Please file an issue!");
1072
- return {
1073
- alias: o,
1074
- name: n,
1075
- value: a
1076
- };
1077
- }
1078
- throw new ue("intrinsic " + e + " does not exist!");
1079
- }, ga = function(e, t) {
1080
- if (typeof e != "string" || e.length === 0)
1081
- throw new ie("intrinsic name must be a non-empty string");
1082
- if (arguments.length > 1 && typeof t != "boolean")
1083
- throw new ie('"allowMissing" argument must be a boolean');
1084
- if (sa(/^%?[^%]*%?$/, e) === null)
1085
- throw new ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1086
- var n = ha(e), o = n.length > 0 ? n[0] : "", a = ma("%" + o + "%", t), i = a.name, l = a.value, u = !1, c = a.alias;
1087
- c && (o = c[0], ya(n, ca([0, 1], c)));
1088
- for (var p = 1, y = !0; p < n.length; p += 1) {
1089
- var f = n[p], m = Me(f, 0, 1), v = Me(f, -1);
1090
- if ((m === '"' || m === "'" || m === "`" || v === '"' || v === "'" || v === "`") && m !== v)
1091
- throw new ue("property names with quotes must have matching quotes");
1092
- if ((f === "constructor" || !y) && (u = !0), o += "." + f, i = "%" + o + "%", Te(J, i))
1093
- l = J[i];
1094
- else if (l != null) {
1095
- if (!(f in l)) {
1096
- if (!t)
1097
- throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
1098
- return;
1099
- }
1100
- if (me && p + 1 >= n.length) {
1101
- var A = me(l, f);
1102
- y = !!A, y && "get" in A && !("originalValue" in A.get) ? l = A.get : l = l[f];
1103
- } else
1104
- y = Te(l, f), l = l[f];
1105
- y && !u && (J[i] = l);
1106
- }
1107
- }
1108
- return l;
1109
- }, Ut = ga, Ct = Tt, Aa = Ct([Ut("%String.prototype.indexOf%")]), Lt = function(e, t) {
1110
- var n = (
1111
- /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1112
- Ut(e, !!t)
1113
- );
1114
- return typeof n == "function" && Aa(e, ".prototype.") > -1 ? Ct(
1115
- /** @type {const} */
1116
- [n]
1117
- ) : n;
1118
- }, Sa = Rt, be = Lt, wa = Ue, ba = q, lt = Sa("%Map%", !0), Pa = be("Map.prototype.get", !0), Ea = be("Map.prototype.set", !0), Oa = be("Map.prototype.has", !0), $a = be("Map.prototype.delete", !0), Ia = be("Map.prototype.size", !0), Wt = !!lt && /** @type {Exclude<import('.'), false>} */
1119
- function() {
1120
- var e, t = {
1121
- assert: function(n) {
1122
- if (!t.has(n))
1123
- throw new ba("Side channel does not contain " + wa(n));
1124
- },
1125
- delete: function(n) {
1126
- if (e) {
1127
- var o = $a(e, n);
1128
- return Ia(e) === 0 && (e = void 0), o;
1129
- }
1130
- return !1;
1131
- },
1132
- get: function(n) {
1133
- if (e)
1134
- return Pa(e, n);
1135
- },
1136
- has: function(n) {
1137
- return e ? Oa(e, n) : !1;
1138
- },
1139
- set: function(n, o) {
1140
- e || (e = new lt()), Ea(e, n, o);
1141
- }
1142
- };
1143
- return t;
1144
- }, _a = Rt, We = Lt, Ra = Ue, $e = Wt, Fa = q, te = _a("%WeakMap%", !0), xa = We("WeakMap.prototype.get", !0), Da = We("WeakMap.prototype.set", !0), Na = We("WeakMap.prototype.has", !0), Ta = We("WeakMap.prototype.delete", !0), Ma = te ? (
1145
- /** @type {Exclude<import('.'), false>} */
1146
- function() {
1147
- var e, t, n = {
1148
- assert: function(o) {
1149
- if (!n.has(o))
1150
- throw new Fa("Side channel does not contain " + Ra(o));
1151
- },
1152
- delete: function(o) {
1153
- if (te && o && (typeof o == "object" || typeof o == "function")) {
1154
- if (e)
1155
- return Ta(e, o);
1156
- } else if ($e && t)
1157
- return t.delete(o);
1158
- return !1;
1159
- },
1160
- get: function(o) {
1161
- return te && o && (typeof o == "object" || typeof o == "function") && e ? xa(e, o) : t && t.get(o);
1162
- },
1163
- has: function(o) {
1164
- return te && o && (typeof o == "object" || typeof o == "function") && e ? Na(e, o) : !!t && t.has(o);
1165
- },
1166
- set: function(o, a) {
1167
- te && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new te()), Da(e, o, a)) : $e && (t || (t = $e()), t.set(o, a));
1168
- }
1169
- };
1170
- return n;
1171
- }
1172
- ) : $e, Ba = q, Ua = Ue, Ca = zn, La = Wt, Wa = Ma, Ga = Wa || La || Ca, ka = function() {
1173
- var e, t = {
1174
- assert: function(n) {
1175
- if (!t.has(n))
1176
- throw new Ba("Side channel does not contain " + Ua(n));
1177
- },
1178
- delete: function(n) {
1179
- return !!e && e.delete(n);
1180
- },
1181
- get: function(n) {
1182
- return e && e.get(n);
1183
- },
1184
- has: function(n) {
1185
- return !!e && e.has(n);
1186
- },
1187
- set: function(n, o) {
1188
- e || (e = Ga()), e.set(n, o);
1189
- }
1190
- };
1191
- return t;
1192
- }, qa = String.prototype.replace, za = /%20/g, cr = {
1193
- RFC1738: "RFC1738",
1194
- RFC3986: "RFC3986"
1195
- }, Ir = {
1196
- default: cr.RFC3986,
1197
- formatters: {
1198
- RFC1738: function(r) {
1199
- return qa.call(r, za, "+");
1200
- },
1201
- RFC3986: function(r) {
1202
- return String(r);
1203
- }
1204
- },
1205
- RFC1738: cr.RFC1738,
1206
- RFC3986: cr.RFC3986
1207
- }, Va = Ir, yr = Object.prototype.hasOwnProperty, H = Array.isArray, _ = function() {
1208
- for (var r = [], e = 0; e < 256; ++e)
1209
- r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1210
- return r;
1211
- }(), ja = function(e) {
1212
- for (; e.length > 1; ) {
1213
- var t = e.pop(), n = t.obj[t.prop];
1214
- if (H(n)) {
1215
- for (var o = [], a = 0; a < n.length; ++a)
1216
- typeof n[a] < "u" && o.push(n[a]);
1217
- t.obj[t.prop] = o;
1218
- }
1219
- }
1220
- }, Gt = function(e, t) {
1221
- for (var n = t && t.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
1222
- typeof e[o] < "u" && (n[o] = e[o]);
1223
- return n;
1224
- }, Ha = function r(e, t, n) {
1225
- if (!t)
1226
- return e;
1227
- if (typeof t != "object" && typeof t != "function") {
1228
- if (H(e))
1229
- e.push(t);
1230
- else if (e && typeof e == "object")
1231
- (n && (n.plainObjects || n.allowPrototypes) || !yr.call(Object.prototype, t)) && (e[t] = !0);
1232
- else
1233
- return [e, t];
1234
- return e;
1235
- }
1236
- if (!e || typeof e != "object")
1237
- return [e].concat(t);
1238
- var o = e;
1239
- return H(e) && !H(t) && (o = Gt(e, n)), H(e) && H(t) ? (t.forEach(function(a, i) {
1240
- if (yr.call(e, i)) {
1241
- var l = e[i];
1242
- l && typeof l == "object" && a && typeof a == "object" ? e[i] = r(l, a, n) : e.push(a);
1243
- } else
1244
- e[i] = a;
1245
- }), e) : Object.keys(t).reduce(function(a, i) {
1246
- var l = t[i];
1247
- return yr.call(a, i) ? a[i] = r(a[i], l, n) : a[i] = l, a;
1248
- }, o);
1249
- }, Ka = function(e, t) {
1250
- return Object.keys(t).reduce(function(n, o) {
1251
- return n[o] = t[o], n;
1252
- }, e);
1253
- }, Ja = function(r, e, t) {
1254
- var n = r.replace(/\+/g, " ");
1255
- if (t === "iso-8859-1")
1256
- return n.replace(/%[0-9a-f]{2}/gi, unescape);
1257
- try {
1258
- return decodeURIComponent(n);
1259
- } catch {
1260
- return n;
1261
- }
1262
- }, sr = 1024, Qa = function(e, t, n, o, a) {
1263
- if (e.length === 0)
1264
- return e;
1265
- var i = e;
1266
- if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
1267
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(m) {
1268
- return "%26%23" + parseInt(m.slice(2), 16) + "%3B";
1269
- });
1270
- for (var l = "", u = 0; u < i.length; u += sr) {
1271
- for (var c = i.length >= sr ? i.slice(u, u + sr) : i, p = [], y = 0; y < c.length; ++y) {
1272
- var f = c.charCodeAt(y);
1273
- if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === Va.RFC1738 && (f === 40 || f === 41)) {
1274
- p[p.length] = c.charAt(y);
1275
- continue;
1276
- }
1277
- if (f < 128) {
1278
- p[p.length] = _[f];
1279
- continue;
1280
- }
1281
- if (f < 2048) {
1282
- p[p.length] = _[192 | f >> 6] + _[128 | f & 63];
1283
- continue;
1284
- }
1285
- if (f < 55296 || f >= 57344) {
1286
- p[p.length] = _[224 | f >> 12] + _[128 | f >> 6 & 63] + _[128 | f & 63];
1287
- continue;
1288
- }
1289
- y += 1, f = 65536 + ((f & 1023) << 10 | c.charCodeAt(y) & 1023), p[p.length] = _[240 | f >> 18] + _[128 | f >> 12 & 63] + _[128 | f >> 6 & 63] + _[128 | f & 63];
1290
- }
1291
- l += p.join("");
1292
- }
1293
- return l;
1294
- }, Ya = function(e) {
1295
- for (var t = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < t.length; ++o)
1296
- for (var a = t[o], i = a.obj[a.prop], l = Object.keys(i), u = 0; u < l.length; ++u) {
1297
- var c = l[u], p = i[c];
1298
- typeof p == "object" && p !== null && n.indexOf(p) === -1 && (t.push({ obj: i, prop: c }), n.push(p));
1299
- }
1300
- return ja(t), e;
1301
- }, Xa = function(e) {
1302
- return Object.prototype.toString.call(e) === "[object RegExp]";
1303
- }, Za = function(e) {
1304
- return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1305
- }, ei = function(e, t) {
1306
- return [].concat(e, t);
1307
- }, ri = function(e, t) {
1308
- if (H(e)) {
1309
- for (var n = [], o = 0; o < e.length; o += 1)
1310
- n.push(t(e[o]));
1311
- return n;
1312
- }
1313
- return t(e);
1314
- }, kt = {
1315
- arrayToObject: Gt,
1316
- assign: Ka,
1317
- combine: ei,
1318
- compact: Ya,
1319
- decode: Ja,
1320
- encode: Qa,
1321
- isBuffer: Za,
1322
- isRegExp: Xa,
1323
- maybeMap: ri,
1324
- merge: Ha
1325
- }, qt = ka, Re = kt, ve = Ir, ti = Object.prototype.hasOwnProperty, zt = {
1326
- brackets: function(e) {
1327
- return e + "[]";
1328
- },
1329
- comma: "comma",
1330
- indices: function(e, t) {
1331
- return e + "[" + t + "]";
1332
- },
1333
- repeat: function(e) {
1334
- return e;
1335
- }
1336
- }, R = Array.isArray, ni = Array.prototype.push, Vt = function(r, e) {
1337
- ni.apply(r, R(e) ? e : [e]);
1338
- }, oi = Date.prototype.toISOString, ft = ve.default, S = {
1339
- addQueryPrefix: !1,
1340
- allowDots: !1,
1341
- allowEmptyArrays: !1,
1342
- arrayFormat: "indices",
1343
- charset: "utf-8",
1344
- charsetSentinel: !1,
1345
- commaRoundTrip: !1,
1346
- delimiter: "&",
1347
- encode: !0,
1348
- encodeDotInKeys: !1,
1349
- encoder: Re.encode,
1350
- encodeValuesOnly: !1,
1351
- filter: void 0,
1352
- format: ft,
1353
- formatter: ve.formatters[ft],
1354
- // deprecated
1355
- indices: !1,
1356
- serializeDate: function(e) {
1357
- return oi.call(e);
1358
- },
1359
- skipNulls: !1,
1360
- strictNullHandling: !1
1361
- }, ai = function(e) {
1362
- return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1363
- }, dr = {}, ii = function r(e, t, n, o, a, i, l, u, c, p, y, f, m, v, A, $, N, T) {
1364
- for (var h = e, M = T, V = 0, pe = !1; (M = M.get(dr)) !== void 0 && !pe; ) {
1365
- var X = M.get(e);
1366
- if (V += 1, typeof X < "u") {
1367
- if (X === V)
1368
- throw new RangeError("Cyclic object value");
1369
- pe = !0;
1370
- }
1371
- typeof M.get(dr) > "u" && (V = 0);
1372
- }
1373
- if (typeof p == "function" ? h = p(t, h) : h instanceof Date ? h = m(h) : n === "comma" && R(h) && (h = Re.maybeMap(h, function(ke) {
1374
- return ke instanceof Date ? m(ke) : ke;
1375
- })), h === null) {
1376
- if (i)
1377
- return c && !$ ? c(t, S.encoder, N, "key", v) : t;
1378
- h = "";
1379
- }
1380
- if (ai(h) || Re.isBuffer(h)) {
1381
- if (c) {
1382
- var Pe = $ ? t : c(t, S.encoder, N, "key", v);
1383
- return [A(Pe) + "=" + A(c(h, S.encoder, N, "value", v))];
1384
- }
1385
- return [A(t) + "=" + A(String(h))];
1386
- }
1387
- var j = [];
1388
- if (typeof h > "u")
1389
- return j;
1390
- var B;
1391
- if (n === "comma" && R(h))
1392
- $ && c && (h = Re.maybeMap(h, c)), B = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
1393
- else if (R(p))
1394
- B = p;
1395
- else {
1396
- var Ee = Object.keys(h);
1397
- B = y ? Ee.sort(y) : Ee;
1398
- }
1399
- var Z = u ? String(t).replace(/\./g, "%2E") : String(t), I = o && R(h) && h.length === 1 ? Z + "[]" : Z;
1400
- if (a && R(h) && h.length === 0)
1401
- return I + "[]";
1402
- for (var U = 0; U < B.length; ++U) {
1403
- var x = B[U], ce = typeof x == "object" && x && typeof x.value < "u" ? x.value : h[x];
1404
- if (!(l && ce === null)) {
1405
- var Ge = f && u ? String(x).replace(/\./g, "%2E") : String(x), Ht = R(h) ? typeof n == "function" ? n(I, Ge) : I : I + (f ? "." + Ge : "[" + Ge + "]");
1406
- T.set(e, V);
1407
- var _r = qt();
1408
- _r.set(dr, T), Vt(j, r(
1409
- ce,
1410
- Ht,
1411
- n,
1412
- o,
1413
- a,
1414
- i,
1415
- l,
1416
- u,
1417
- n === "comma" && $ && R(h) ? null : c,
1418
- p,
1419
- y,
1420
- f,
1421
- m,
1422
- v,
1423
- A,
1424
- $,
1425
- N,
1426
- _r
1427
- ));
1428
- }
1429
- }
1430
- return j;
1431
- }, li = function(e) {
1432
- if (!e)
1433
- return S;
1434
- if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1435
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1436
- if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
1437
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1438
- if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1439
- throw new TypeError("Encoder has to be a function.");
1440
- var t = e.charset || S.charset;
1441
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1442
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1443
- var n = ve.default;
1444
- if (typeof e.format < "u") {
1445
- if (!ti.call(ve.formatters, e.format))
1446
- throw new TypeError("Unknown format option provided.");
1447
- n = e.format;
1448
- }
1449
- var o = ve.formatters[n], a = S.filter;
1450
- (typeof e.filter == "function" || R(e.filter)) && (a = e.filter);
1451
- var i;
1452
- if (e.arrayFormat in zt ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = S.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1453
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1454
- var l = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : S.allowDots : !!e.allowDots;
1455
- return {
1456
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : S.addQueryPrefix,
1457
- allowDots: l,
1458
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : S.allowEmptyArrays,
1459
- arrayFormat: i,
1460
- charset: t,
1461
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : S.charsetSentinel,
1462
- commaRoundTrip: !!e.commaRoundTrip,
1463
- delimiter: typeof e.delimiter > "u" ? S.delimiter : e.delimiter,
1464
- encode: typeof e.encode == "boolean" ? e.encode : S.encode,
1465
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : S.encodeDotInKeys,
1466
- encoder: typeof e.encoder == "function" ? e.encoder : S.encoder,
1467
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : S.encodeValuesOnly,
1468
- filter: a,
1469
- format: n,
1470
- formatter: o,
1471
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : S.serializeDate,
1472
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : S.skipNulls,
1473
- sort: typeof e.sort == "function" ? e.sort : null,
1474
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : S.strictNullHandling
1475
- };
1476
- }, fi = function(r, e) {
1477
- var t = r, n = li(e), o, a;
1478
- typeof n.filter == "function" ? (a = n.filter, t = a("", t)) : R(n.filter) && (a = n.filter, o = a);
1479
- var i = [];
1480
- if (typeof t != "object" || t === null)
1481
- return "";
1482
- var l = zt[n.arrayFormat], u = l === "comma" && n.commaRoundTrip;
1483
- o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
1484
- for (var c = qt(), p = 0; p < o.length; ++p) {
1485
- var y = o[p], f = t[y];
1486
- n.skipNulls && f === null || Vt(i, ii(
1487
- f,
1488
- y,
1489
- l,
1490
- u,
1491
- n.allowEmptyArrays,
1492
- n.strictNullHandling,
1493
- n.skipNulls,
1494
- n.encodeDotInKeys,
1495
- n.encode ? n.encoder : null,
1496
- n.filter,
1497
- n.sort,
1498
- n.allowDots,
1499
- n.serializeDate,
1500
- n.format,
1501
- n.formatter,
1502
- n.encodeValuesOnly,
1503
- n.charset,
1504
- c
1505
- ));
1506
- }
1507
- var m = i.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : "";
1508
- return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), m.length > 0 ? v + m : "";
1509
- }, Q = kt, wr = Object.prototype.hasOwnProperty, ut = Array.isArray, g = {
1510
- allowDots: !1,
1511
- allowEmptyArrays: !1,
1512
- allowPrototypes: !1,
1513
- allowSparse: !1,
1514
- arrayLimit: 20,
1515
- charset: "utf-8",
1516
- charsetSentinel: !1,
1517
- comma: !1,
1518
- decodeDotInKeys: !1,
1519
- decoder: Q.decode,
1520
- delimiter: "&",
1521
- depth: 5,
1522
- duplicates: "combine",
1523
- ignoreQueryPrefix: !1,
1524
- interpretNumericEntities: !1,
1525
- parameterLimit: 1e3,
1526
- parseArrays: !0,
1527
- plainObjects: !1,
1528
- strictDepth: !1,
1529
- strictNullHandling: !1,
1530
- throwOnLimitExceeded: !1
1531
- }, ui = function(r) {
1532
- return r.replace(/&#(\d+);/g, function(e, t) {
1533
- return String.fromCharCode(parseInt(t, 10));
1534
- });
1535
- }, jt = function(r, e, t) {
1536
- if (r && typeof r == "string" && e.comma && r.indexOf(",") > -1)
1537
- return r.split(",");
1538
- if (e.throwOnLimitExceeded && t >= e.arrayLimit)
1539
- throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1540
- return r;
1541
- }, pi = "utf8=%26%2310003%3B", ci = "utf8=%E2%9C%93", yi = function(e, t) {
1542
- var n = { __proto__: null }, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1543
- o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1544
- var a = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, i = o.split(
1545
- t.delimiter,
1546
- t.throwOnLimitExceeded ? a + 1 : a
1547
- );
1548
- if (t.throwOnLimitExceeded && i.length > a)
1549
- throw new RangeError("Parameter limit exceeded. Only " + a + " parameter" + (a === 1 ? "" : "s") + " allowed.");
1550
- var l = -1, u, c = t.charset;
1551
- if (t.charsetSentinel)
1552
- for (u = 0; u < i.length; ++u)
1553
- i[u].indexOf("utf8=") === 0 && (i[u] === ci ? c = "utf-8" : i[u] === pi && (c = "iso-8859-1"), l = u, u = i.length);
1554
- for (u = 0; u < i.length; ++u)
1555
- if (u !== l) {
1556
- var p = i[u], y = p.indexOf("]="), f = y === -1 ? p.indexOf("=") : y + 1, m, v;
1557
- f === -1 ? (m = t.decoder(p, g.decoder, c, "key"), v = t.strictNullHandling ? null : "") : (m = t.decoder(p.slice(0, f), g.decoder, c, "key"), v = Q.maybeMap(
1558
- jt(
1559
- p.slice(f + 1),
1560
- t,
1561
- ut(n[m]) ? n[m].length : 0
1562
- ),
1563
- function($) {
1564
- return t.decoder($, g.decoder, c, "value");
1565
- }
1566
- )), v && t.interpretNumericEntities && c === "iso-8859-1" && (v = ui(String(v))), p.indexOf("[]=") > -1 && (v = ut(v) ? [v] : v);
1567
- var A = wr.call(n, m);
1568
- A && t.duplicates === "combine" ? n[m] = Q.combine(n[m], v) : (!A || t.duplicates === "last") && (n[m] = v);
1569
- }
1570
- return n;
1571
- }, si = function(r, e, t, n) {
1572
- var o = 0;
1573
- if (r.length > 0 && r[r.length - 1] === "[]") {
1574
- var a = r.slice(0, -1).join("");
1575
- o = Array.isArray(e) && e[a] ? e[a].length : 0;
1576
- }
1577
- for (var i = n ? e : jt(e, t, o), l = r.length - 1; l >= 0; --l) {
1578
- var u, c = r[l];
1579
- if (c === "[]" && t.parseArrays)
1580
- u = t.allowEmptyArrays && (i === "" || t.strictNullHandling && i === null) ? [] : Q.combine([], i);
1581
- else {
1582
- u = t.plainObjects ? { __proto__: null } : {};
1583
- var p = c.charAt(0) === "[" && c.charAt(c.length - 1) === "]" ? c.slice(1, -1) : c, y = t.decodeDotInKeys ? p.replace(/%2E/g, ".") : p, f = parseInt(y, 10);
1584
- !t.parseArrays && y === "" ? u = { 0: i } : !isNaN(f) && c !== y && String(f) === y && f >= 0 && t.parseArrays && f <= t.arrayLimit ? (u = [], u[f] = i) : y !== "__proto__" && (u[y] = i);
1585
- }
1586
- i = u;
1587
- }
1588
- return i;
1589
- }, di = function(e, t, n, o) {
1590
- if (e) {
1591
- var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, u = n.depth > 0 && i.exec(a), c = u ? a.slice(0, u.index) : a, p = [];
1592
- if (c) {
1593
- if (!n.plainObjects && wr.call(Object.prototype, c) && !n.allowPrototypes)
1594
- return;
1595
- p.push(c);
1596
- }
1597
- for (var y = 0; n.depth > 0 && (u = l.exec(a)) !== null && y < n.depth; ) {
1598
- if (y += 1, !n.plainObjects && wr.call(Object.prototype, u[1].slice(1, -1)) && !n.allowPrototypes)
1599
- return;
1600
- p.push(u[1]);
1601
- }
1602
- if (u) {
1603
- if (n.strictDepth === !0)
1604
- throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
1605
- p.push("[" + a.slice(u.index) + "]");
1606
- }
1607
- return si(p, t, n, o);
1608
- }
1609
- }, vi = function(e) {
1610
- if (!e)
1611
- return g;
1612
- if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1613
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1614
- if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
1615
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
1616
- if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
1617
- throw new TypeError("Decoder has to be a function.");
1618
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1619
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1620
- if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
1621
- throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
1622
- var t = typeof e.charset > "u" ? g.charset : e.charset, n = typeof e.duplicates > "u" ? g.duplicates : e.duplicates;
1623
- if (n !== "combine" && n !== "first" && n !== "last")
1624
- throw new TypeError("The duplicates option must be either combine, first, or last");
1625
- var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : g.allowDots : !!e.allowDots;
1626
- return {
1627
- allowDots: o,
1628
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : g.allowEmptyArrays,
1629
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : g.allowPrototypes,
1630
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : g.allowSparse,
1631
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : g.arrayLimit,
1632
- charset: t,
1633
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : g.charsetSentinel,
1634
- comma: typeof e.comma == "boolean" ? e.comma : g.comma,
1635
- decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : g.decodeDotInKeys,
1636
- decoder: typeof e.decoder == "function" ? e.decoder : g.decoder,
1637
- delimiter: typeof e.delimiter == "string" || Q.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
1638
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1639
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : g.depth,
1640
- duplicates: n,
1641
- ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1642
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : g.interpretNumericEntities,
1643
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : g.parameterLimit,
1644
- parseArrays: e.parseArrays !== !1,
1645
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : g.plainObjects,
1646
- strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : g.strictDepth,
1647
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling,
1648
- throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
1649
- };
1650
- }, hi = function(r, e) {
1651
- var t = vi(e);
1652
- if (r === "" || r === null || typeof r > "u")
1653
- return t.plainObjects ? { __proto__: null } : {};
1654
- for (var n = typeof r == "string" ? yi(r, t) : r, o = t.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
1655
- var l = a[i], u = di(l, n[l], t, typeof r == "string");
1656
- o = Q.merge(o, u, t);
1657
- }
1658
- return t.allowSparse === !0 ? o : Q.compact(o);
1659
- }, mi = fi, gi = hi, Ai = Ir, Si = {
1660
- formats: Ai,
1661
- parse: gi,
1662
- stringify: mi
1663
- };
1664
- const wi = /* @__PURE__ */ on(Si);
1665
- class bi {
1666
- getKey(e) {
1667
- return {
1668
- entrustId: e.entrustId
1669
- };
1670
- }
1671
- // 查询翻页信息委托流程表
1672
- findPage(e) {
1673
- const t = L().user.tenant;
1674
- return e && (e.hasServiceContent = e.serviceContent != null), W(e), G({
1675
- url: "/v1/itsmflow/itsm_flow_entrust/mypage/" + t,
1676
- method: "get",
1677
- params: e
1678
- });
1679
- }
1680
- // 查询列表信息委托流程表
1681
- findList(e) {
1682
- const t = L().user.tenant;
1683
- return W(e), G({
1684
- url: "/v1/itsmflow/itsm_flow_entrust/list/" + t,
1685
- method: "get",
1686
- params: e
1687
- });
1688
- }
1689
- // 查询委托流程表
1690
- findById(e) {
1691
- const t = L().user.tenant;
1692
- return W(e), G({
1693
- url: "/v1/itsmflow/itsm_flow_entrust/id/" + t + "/" + e.entrustId,
1694
- method: "get"
1695
- });
1696
- }
1697
- // 保存草稿委托流程表
1698
- save(e) {
1699
- return e.tenant = L().user.tenant, W(e), G({
1700
- url: "/v1/itsmflow/itsm_flow_entrust",
1701
- method: "post",
1702
- data: e
1703
- });
1704
- }
1705
- // 提交委托流程表
1706
- submit(e) {
1707
- return e.tenant = L().user.tenant, W(e), G({
1708
- url: "/v1/itsmflow/itsm_flow_entrust/submit",
1709
- method: "post",
1710
- data: e
1711
- });
1712
- }
1713
- // 删除委托流程表
1714
- delete(e) {
1715
- return e.tenant = L().user.tenant, W(e), G({
1716
- url: "/v1/itsmflow/itsm_flow_entrust/id",
1717
- method: "delete",
1718
- params: e
1719
- });
1720
- }
1721
- // 打印委托流程表PDF文件
1722
- exportPdf(e) {
1723
- const t = L().user.tenant;
1724
- W(e);
1725
- const n = wi.stringify(e, {
1726
- arrayFormat: "brackets",
1727
- allowDots: !0
1728
- });
1729
- return G({
1730
- url: "/v1/itsmflow/itsm_flow_entrust/" + t + "/itsm_flow_entrusts.pdf?" + n,
1731
- method: "get",
1732
- responseType: "blob"
1733
- });
1734
- }
1735
- }
1736
- const Mi = new bi();
1737
- class Pi extends Be {
1738
- // 实现 useValues 方法
1739
- useValues() {
1740
- return new Promise((e, t) => {
1741
- Zt.findList(this.query).then(({ data: n }) => {
1742
- const o = n.results;
1743
- this.values.length = 0, this.values.push(
1744
- ...o.map(
1745
- (a) => ({
1746
- key: a.contractId,
1747
- value: a.contractName,
1748
- contractNumber: a.contractNumber,
1749
- orgId: a.orgId,
1750
- mgrUserId: a.mgrUserId
1751
- })
1752
- )
1753
- ), e(this.values);
1754
- }).catch(t);
1755
- });
1756
- }
1757
- }
1758
- class Ei extends Be {
1759
- // 实现 useValues 方法
1760
- useValues() {
1761
- return new Promise((e, t) => {
1762
- vr.findOutSourceList(this.query).then(({ data: n }) => {
1763
- const o = n.results;
1764
- this.values.length = 0, this.values.push(
1765
- ...o.map(
1766
- (a) => ({
1767
- key: a.orgId,
1768
- value: a.orgName
1769
- })
1770
- )
1771
- ), e(this.values);
1772
- }).catch(t);
1773
- });
1774
- }
1775
- }
1776
- class Oi extends Be {
1777
- // 实现 useValues 方法
1778
- useValues() {
1779
- return new Promise((e, t) => {
1780
- en.findList(this.query).then(({ data: n }) => {
1781
- const o = n.results;
1782
- this.values.length = 0, this.values.push(
1783
- ...o.map(
1784
- (a) => ({
1785
- key: a.userId,
1786
- value: a.realName,
1787
- idNo: a.idNo,
1788
- cost: a.cost
1789
- })
1790
- )
1791
- ), e(this.values);
1792
- }).catch(t);
1793
- });
1794
- }
1795
- }
1796
- class $i extends Qt {
1797
- // 实现 useValues 方法
1798
- useValues(e) {
1799
- return new Promise((t, n) => {
1800
- if (typeof vr.findList > "u") {
1801
- t(this.values);
1802
- return;
1803
- }
1804
- const o = { ...this.query, excludeOrgId: e };
1805
- vr.findList(o).then(({ data: a }) => {
1806
- const i = a.results;
1807
- this.values.length = 0, this.values.push(...this.convertToLayEntryArray(i)), t(this.values);
1808
- }).catch(n);
1809
- });
1810
- }
1811
- convertToLayEntryArray(e) {
1812
- return e.map((t) => ({
1813
- value: t.orgId,
1814
- label: t.orgName,
1815
- parentId: t.parentId || "",
1816
- children: t.children ? this.convertToLayEntryArray(t.children) : []
1817
- }));
1818
- }
1819
- }
1820
- class Ii extends Be {
1821
- // 实现 useValues 方法
1822
- useValues() {
1823
- return new Promise((e, t) => {
1824
- rn.findList(this.query).then(({ data: n }) => {
1825
- const o = n.results;
1826
- this.values.length = 0, this.values.push(
1827
- ...o.map(
1828
- (a) => ({
1829
- key: a.itemId,
1830
- value: a.name,
1831
- orgId: a.orgId,
1832
- status: a.status
1833
- })
1834
- )
1835
- ), e(this.values);
1836
- }).catch(t);
1837
- });
1838
- }
1839
- }
1840
- class O {
1841
- }
1842
- // 模块
1843
- w(O, "MODULE_ITSMFLOW", "itsmflow"), // 合同分类
1844
- w(O, "contractSort", {
1845
- // 人力
1846
- manpower: "manpower"
1847
- }), // 合同类型
1848
- w(O, "contractType", {
1849
- // 外协合同
1850
- outsource: "outsource"
1851
- }), // 时间格式-年月
1852
- w(O, "FORMAT_MONTH", "YYYY-MM"), // 验查结果
1853
- w(O, "IS_VALUES", tn([
1854
- { key: !0, value: "通过" },
1855
- { key: !1, value: "不通过" }
1856
- ])), // 服务内容枚举
1857
- w(O, "ENUM_SERVICE_CONTENT", "xyvcard.itsmflow.protobuf.ServiceContent"), // 项目名称
1858
- w(O, "DICT_PROJECT_NAME", "projectName"), // 机构类型
1859
- w(O, "orgType", {
1860
- // 厅局
1861
- hall: "HALL"
1862
- }), // 项目状态
1863
- w(O, "status", {
1864
- // 项目状态(正常)
1865
- regular: "regular"
1866
- });
1867
- class C {
1868
- }
1869
- // 人力合同
1870
- w(C, "itsmContractBizDict", new Pi({})), // 服务人员所属单位
1871
- w(C, "orgIdBizDict", new Ei({})), // 实际投入人员
1872
- w(C, "contractUserBizDict", new Oi({})), // 验查结果
1873
- w(C, "isValuesDict", new Yt(O.IS_VALUES, {})), // 服务内容
1874
- w(C, "serviceContentEnum", new Xt(
1875
- O.MODULE_ITSMFLOW,
1876
- O.ENUM_SERVICE_CONTENT
1877
- )), // 项目名称
1878
- w(C, "projectNameDict", new nn(O.DICT_PROJECT_NAME)), // 厅局管理父厅级单位
1879
- w(C, "parentIdBizDict", new $i({
1880
- orgType: O.orgType.hall
1881
- })), // 项目列表
1882
- w(C, "itemBizLayDict", new Ii({}));
1883
- class _i {
1884
- getKey(e) {
1885
- return {
1886
- entrustUserId: e.entrustUserId
1887
- };
1888
- }
1889
- // 查询列表信息委托服务人员信息
1890
- findList(e) {
1891
- const t = L().user.tenant;
1892
- return W(e), G({
1893
- url: "/v1/itsmflow/itsm_flow_entrust_user/list/" + t,
1894
- method: "get",
1895
- params: e
1896
- });
1897
- }
1898
- }
1899
- const Bi = new _i();
1900
- export {
1901
- O as C,
1902
- C as D,
1903
- Pi as I,
1904
- Ii as a,
1905
- Bi as b,
1906
- Oi as c,
1907
- Mi as i
1908
- };