@das-fed/utils 6.4.0-dev.2 → 6.4.0-dev.21

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 (85) hide show
  1. package/api-services/index.d.ts +2 -2
  2. package/api-services/index.js +3059 -3
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/index.js +2775 -3
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/index.js +2775 -3
  7. package/api-services/modules/authentication/index.js.gz +0 -0
  8. package/api-services/modules/bems/index.js +2778 -6
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/index.js +2775 -3
  11. package/api-services/modules/contract/index.js.gz +0 -0
  12. package/api-services/modules/duty-manage/index.js +2779 -7
  13. package/api-services/modules/duty-manage/index.js.gz +0 -0
  14. package/api-services/modules/enterpriseright/index.js +2775 -3
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/file/index.js +152 -432
  17. package/api-services/modules/file/index.js.gz +0 -0
  18. package/api-services/modules/gateway-edge/index.js +2775 -3
  19. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  20. package/api-services/modules/index.d.ts +21 -21
  21. package/api-services/modules/index.js +3058 -57
  22. package/api-services/modules/index.js.gz +0 -0
  23. package/api-services/modules/iot/index.js +2788 -16
  24. package/api-services/modules/iot/index.js.gz +0 -0
  25. package/api-services/modules/justauth/index.js +2776 -4
  26. package/api-services/modules/justauth/index.js.gz +0 -0
  27. package/api-services/modules/knowledge/index.js +2775 -3
  28. package/api-services/modules/knowledge/index.js.gz +0 -0
  29. package/api-services/modules/link/index.js +2775 -3
  30. package/api-services/modules/link/index.js.gz +0 -0
  31. package/api-services/modules/permission/index.js +2775 -3
  32. package/api-services/modules/permission/index.js.gz +0 -0
  33. package/api-services/modules/platformManage/index.js +2782 -10
  34. package/api-services/modules/platformManage/index.js.gz +0 -0
  35. package/api-services/modules/portal/index.js +2775 -3
  36. package/api-services/modules/portal/index.js.gz +0 -0
  37. package/api-services/modules/space-manage/index.js +2775 -3
  38. package/api-services/modules/space-manage/index.js.gz +0 -0
  39. package/api-services/modules/super-admin/index.js +2778 -6
  40. package/api-services/modules/super-admin/index.js.gz +0 -0
  41. package/api-services/modules/supplier/index.js +2777 -5
  42. package/api-services/modules/supplier/index.js.gz +0 -0
  43. package/api-services/modules/supplychain-manage/index.js +2775 -3
  44. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  45. package/api-services/modules/systemConfiguration/index.js +2775 -3
  46. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  47. package/api-services/modules/tool/index.js +2775 -3
  48. package/api-services/modules/tool/index.js.gz +0 -0
  49. package/api-services/src/create-service/index.d.ts +1 -1
  50. package/api-services/src/create-service/index.js +2775 -2
  51. package/api-services/src/create-service/index.js.gz +0 -0
  52. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  53. package/common-info/index.js.gz +0 -0
  54. package/common-info/set-personal-info/index.js +566 -806
  55. package/common-info/set-personal-info/index.js.gz +0 -0
  56. package/common-info/type.d.ts +104 -104
  57. package/common-tools/get-url-params/index.js.gz +0 -0
  58. package/common-tools/platform-tools/index.d.ts +2 -1
  59. package/common-tools/platform-tools/index.js +16 -11
  60. package/common-tools/update-fav-icon/index.js +15 -14
  61. package/create-api-service/index.js +1560 -2269
  62. package/create-api-service/index.js.gz +0 -0
  63. package/create-api-service/sso/index.js +681 -921
  64. package/create-api-service/sso/index.js.gz +0 -0
  65. package/curring-http/index.js +1124 -1364
  66. package/curring-http/index.js.gz +0 -0
  67. package/curring-http/type.d.ts +87 -87
  68. package/directive/auth/index.js.gz +0 -0
  69. package/esm-map.json +2 -1
  70. package/hooks/popup-manager/use-zindex/index.d.ts +0 -2
  71. package/hooks/popup-manager/use-zindex/index.js +7 -20
  72. package/hooks/use-get-auth/index.js.gz +0 -0
  73. package/nextTiken/index.js.gz +0 -0
  74. package/package.json +3 -4
  75. package/pinyin-first-character/index.js +21049 -19969
  76. package/pinyin-first-character/index.js.gz +0 -0
  77. package/style/index.js +1 -1
  78. package/style/index.js.gz +0 -0
  79. package/token-tools/index.js +20 -20
  80. package/token-tools/index.js.gz +0 -0
  81. package/use-low-code/index.js +11 -11
  82. package/use-low-code/index.js.gz +0 -0
  83. package/use-low-code/style.css +1 -1
  84. package/webSocket-service/index.js.gz +0 -0
  85. package/webSocket-service/type.d.ts +28 -28
@@ -1,59 +1,3060 @@
1
- import { appManage as r } from "@das-fed/utils/api-services/modules/app-manage";
2
- import { authentication as p } from "@das-fed/utils/api-services/modules/authentication";
3
- import { bemsModules as i } from "@das-fed/utils/api-services/modules/bems";
4
- import { contract as s } from "@das-fed/utils/api-services/modules/contract";
5
- import { dutyModules as f } from "@das-fed/utils/api-services/modules/duty-manage";
6
- import { enterpriseright as x } from "@das-fed/utils/api-services/modules/enterpriseright";
7
- import { downloadFile as l, useFile as c } from "@das-fed/utils/api-services/modules/file";
8
- import { gatewayEdge as M } from "@das-fed/utils/api-services/modules/gateway-edge";
9
- import { iot as h, iotMinio as w, iotModules as P, iotProgress as j, iotRelationModules as k } from "@das-fed/utils/api-services/modules/iot";
10
- import { justauth as C, oauthServer as F } from "@das-fed/utils/api-services/modules/justauth";
11
- import { knowledgeBase as b } from "@das-fed/utils/api-services/modules/knowledge";
12
- import { daslink as E } from "@das-fed/utils/api-services/modules/link";
13
- import { permission as L } from "@das-fed/utils/api-services/modules/permission";
14
- import { company as T, customer as q, customerGrade as z, customerType as A, projectManage as D } from "@das-fed/utils/api-services/modules/platformManage";
15
- import { portal as I } from "@das-fed/utils/api-services/modules/portal";
16
- import { spaceManage as K } from "@das-fed/utils/api-services/modules/space-manage";
17
- import { superadminLicense as O, superadminPermission as Q, superadminPortal as U, superadminResource as V } from "@das-fed/utils/api-services/modules/super-admin";
18
- import { supplier as X, supplierClassification as Y, supplierManage as Z } from "@das-fed/utils/api-services/modules/supplier";
19
- import { enterpriseadminBrandModel as $ } from "@das-fed/utils/api-services/modules/supplychain-manage";
20
- import { tool as eo } from "@das-fed/utils/api-services/modules/tool";
21
- import { systemConfiguration as to } from "@das-fed/utils/api-services/modules/systemConfiguration";
1
+ import { curringHttp as En } from "@das-fed/utils/curring-http";
2
+ import { getToken as On, getQuery as An, login as Rn, getTokenParams as Pn, real_uri as $n } from "@das-fed/utils/create-api-service/sso";
3
+ import Ke from "dayjs";
4
+ import xn from "dayjs/plugin/utc";
5
+ import Tn from "dayjs/plugin/timezone";
6
+ import { getProjectInfo as Nn, getInstanceInfo as Fn } from "@das-fed/utils/common-info";
7
+ import { getAccessToken as Cn } from "@das-fed/utils/token-tools";
8
+ import { getConfig as We } from "@das-fed/utils/config";
9
+ import { iotMinio as Ct, iotProgress as In } from "@das-fed/utils/api-services/modules/iot";
10
+ import { ref as j } from "vue";
11
+ function Tr(t, e) {
12
+ return function() {
13
+ return t.apply(e, arguments);
14
+ };
15
+ }
16
+ const { toString: _n } = Object.prototype, { getPrototypeOf: It } = Object, Qe = /* @__PURE__ */ ((t) => (e) => {
17
+ const n = _n.call(e);
18
+ return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
19
+ })(/* @__PURE__ */ Object.create(null)), J = (t) => (t = t.toLowerCase(), (e) => Qe(e) === t), Xe = (t) => (e) => typeof e === t, { isArray: ge } = Array, Pe = Xe("undefined");
20
+ function Dn(t) {
21
+ return t !== null && !Pe(t) && t.constructor !== null && !Pe(t.constructor) && L(t.constructor.isBuffer) && t.constructor.isBuffer(t);
22
+ }
23
+ const Nr = J("ArrayBuffer");
24
+ function Bn(t) {
25
+ let e;
26
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Nr(t.buffer), e;
27
+ }
28
+ const Un = Xe("string"), L = Xe("function"), Fr = Xe("number"), Ye = (t) => t !== null && typeof t == "object", Mn = (t) => t === !0 || t === !1, ke = (t) => {
29
+ if (Qe(t) !== "object")
30
+ return !1;
31
+ const e = It(t);
32
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
33
+ }, Ln = J("Date"), kn = J("File"), jn = J("Blob"), Hn = J("FileList"), zn = (t) => Ye(t) && L(t.pipe), Wn = (t) => {
34
+ let e;
35
+ return t && (typeof FormData == "function" && t instanceof FormData || L(t.append) && ((e = Qe(t)) === "formdata" || // detect form-data instance
36
+ e === "object" && L(t.toString) && t.toString() === "[object FormData]"));
37
+ }, qn = J("URLSearchParams"), Gn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
38
+ function $e(t, e, { allOwnKeys: n = !1 } = {}) {
39
+ if (t === null || typeof t > "u")
40
+ return;
41
+ let r, o;
42
+ if (typeof t != "object" && (t = [t]), ge(t))
43
+ for (r = 0, o = t.length; r < o; r++)
44
+ e.call(null, t[r], r, t);
45
+ else {
46
+ const a = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = a.length;
47
+ let s;
48
+ for (r = 0; r < i; r++)
49
+ s = a[r], e.call(null, t[s], s, t);
50
+ }
51
+ }
52
+ function Cr(t, e) {
53
+ e = e.toLowerCase();
54
+ const n = Object.keys(t);
55
+ let r = n.length, o;
56
+ for (; r-- > 0; )
57
+ if (o = n[r], e === o.toLowerCase())
58
+ return o;
59
+ return null;
60
+ }
61
+ const Ir = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _r = (t) => !Pe(t) && t !== Ir;
62
+ function vt() {
63
+ const { caseless: t } = _r(this) && this || {}, e = {}, n = (r, o) => {
64
+ const a = t && Cr(e, o) || o;
65
+ ke(e[a]) && ke(r) ? e[a] = vt(e[a], r) : ke(r) ? e[a] = vt({}, r) : ge(r) ? e[a] = r.slice() : e[a] = r;
66
+ };
67
+ for (let r = 0, o = arguments.length; r < o; r++)
68
+ arguments[r] && $e(arguments[r], n);
69
+ return e;
70
+ }
71
+ const Jn = (t, e, n, { allOwnKeys: r } = {}) => ($e(e, (o, a) => {
72
+ n && L(o) ? t[a] = Tr(o, n) : t[a] = o;
73
+ }, { allOwnKeys: r }), t), Vn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Kn = (t, e, n, r) => {
74
+ t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
75
+ value: e.prototype
76
+ }), n && Object.assign(t.prototype, n);
77
+ }, Qn = (t, e, n, r) => {
78
+ let o, a, i;
79
+ const s = {};
80
+ if (e = e || {}, t == null) return e;
81
+ do {
82
+ for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
83
+ i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
84
+ t = n !== !1 && It(t);
85
+ } while (t && (!n || n(t, e)) && t !== Object.prototype);
86
+ return e;
87
+ }, Xn = (t, e, n) => {
88
+ t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
89
+ const r = t.indexOf(e, n);
90
+ return r !== -1 && r === n;
91
+ }, Yn = (t) => {
92
+ if (!t) return null;
93
+ if (ge(t)) return t;
94
+ let e = t.length;
95
+ if (!Fr(e)) return null;
96
+ const n = new Array(e);
97
+ for (; e-- > 0; )
98
+ n[e] = t[e];
99
+ return n;
100
+ }, Zn = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && It(Uint8Array)), eo = (t, e) => {
101
+ const r = (t && t[Symbol.iterator]).call(t);
102
+ let o;
103
+ for (; (o = r.next()) && !o.done; ) {
104
+ const a = o.value;
105
+ e.call(t, a[0], a[1]);
106
+ }
107
+ }, to = (t, e) => {
108
+ let n;
109
+ const r = [];
110
+ for (; (n = t.exec(e)) !== null; )
111
+ r.push(n);
112
+ return r;
113
+ }, ro = J("HTMLFormElement"), no = (t) => t.toLowerCase().replace(
114
+ /[-_\s]([a-z\d])(\w*)/g,
115
+ function(n, r, o) {
116
+ return r.toUpperCase() + o;
117
+ }
118
+ ), Vt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), oo = J("RegExp"), Dr = (t, e) => {
119
+ const n = Object.getOwnPropertyDescriptors(t), r = {};
120
+ $e(n, (o, a) => {
121
+ let i;
122
+ (i = e(o, a, t)) !== !1 && (r[a] = i || o);
123
+ }), Object.defineProperties(t, r);
124
+ }, ao = (t) => {
125
+ Dr(t, (e, n) => {
126
+ if (L(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
127
+ return !1;
128
+ const r = t[n];
129
+ if (L(r)) {
130
+ if (e.enumerable = !1, "writable" in e) {
131
+ e.writable = !1;
132
+ return;
133
+ }
134
+ e.set || (e.set = () => {
135
+ throw Error("Can not rewrite read-only method '" + n + "'");
136
+ });
137
+ }
138
+ });
139
+ }, io = (t, e) => {
140
+ const n = {}, r = (o) => {
141
+ o.forEach((a) => {
142
+ n[a] = !0;
143
+ });
144
+ };
145
+ return ge(t) ? r(t) : r(String(t).split(e)), n;
146
+ }, so = () => {
147
+ }, lo = (t, e) => (t = +t, Number.isFinite(t) ? t : e), ot = "abcdefghijklmnopqrstuvwxyz", Kt = "0123456789", Br = {
148
+ DIGIT: Kt,
149
+ ALPHA: ot,
150
+ ALPHA_DIGIT: ot + ot.toUpperCase() + Kt
151
+ }, co = (t = 16, e = Br.ALPHA_DIGIT) => {
152
+ let n = "";
153
+ const { length: r } = e;
154
+ for (; t--; )
155
+ n += e[Math.random() * r | 0];
156
+ return n;
157
+ };
158
+ function uo(t) {
159
+ return !!(t && L(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
160
+ }
161
+ const fo = (t) => {
162
+ const e = new Array(10), n = (r, o) => {
163
+ if (Ye(r)) {
164
+ if (e.indexOf(r) >= 0)
165
+ return;
166
+ if (!("toJSON" in r)) {
167
+ e[o] = r;
168
+ const a = ge(r) ? [] : {};
169
+ return $e(r, (i, s) => {
170
+ const c = n(i, o + 1);
171
+ !Pe(c) && (a[s] = c);
172
+ }), e[o] = void 0, a;
173
+ }
174
+ }
175
+ return r;
176
+ };
177
+ return n(t, 0);
178
+ }, po = J("AsyncFunction"), yo = (t) => t && (Ye(t) || L(t)) && L(t.then) && L(t.catch), f = {
179
+ isArray: ge,
180
+ isArrayBuffer: Nr,
181
+ isBuffer: Dn,
182
+ isFormData: Wn,
183
+ isArrayBufferView: Bn,
184
+ isString: Un,
185
+ isNumber: Fr,
186
+ isBoolean: Mn,
187
+ isObject: Ye,
188
+ isPlainObject: ke,
189
+ isUndefined: Pe,
190
+ isDate: Ln,
191
+ isFile: kn,
192
+ isBlob: jn,
193
+ isRegExp: oo,
194
+ isFunction: L,
195
+ isStream: zn,
196
+ isURLSearchParams: qn,
197
+ isTypedArray: Zn,
198
+ isFileList: Hn,
199
+ forEach: $e,
200
+ merge: vt,
201
+ extend: Jn,
202
+ trim: Gn,
203
+ stripBOM: Vn,
204
+ inherits: Kn,
205
+ toFlatObject: Qn,
206
+ kindOf: Qe,
207
+ kindOfTest: J,
208
+ endsWith: Xn,
209
+ toArray: Yn,
210
+ forEachEntry: eo,
211
+ matchAll: to,
212
+ isHTMLForm: ro,
213
+ hasOwnProperty: Vt,
214
+ hasOwnProp: Vt,
215
+ // an alias to avoid ESLint no-prototype-builtins detection
216
+ reduceDescriptors: Dr,
217
+ freezeMethods: ao,
218
+ toObjectSet: io,
219
+ toCamelCase: no,
220
+ noop: so,
221
+ toFiniteNumber: lo,
222
+ findKey: Cr,
223
+ global: Ir,
224
+ isContextDefined: _r,
225
+ ALPHABET: Br,
226
+ generateString: co,
227
+ isSpecCompliantForm: uo,
228
+ toJSONObject: fo,
229
+ isAsyncFn: po,
230
+ isThenable: yo
231
+ };
232
+ function O(t, e, n, r, o) {
233
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o);
234
+ }
235
+ f.inherits(O, Error, {
236
+ toJSON: function() {
237
+ return {
238
+ // Standard
239
+ message: this.message,
240
+ name: this.name,
241
+ // Microsoft
242
+ description: this.description,
243
+ number: this.number,
244
+ // Mozilla
245
+ fileName: this.fileName,
246
+ lineNumber: this.lineNumber,
247
+ columnNumber: this.columnNumber,
248
+ stack: this.stack,
249
+ // Axios
250
+ config: f.toJSONObject(this.config),
251
+ code: this.code,
252
+ status: this.response && this.response.status ? this.response.status : null
253
+ };
254
+ }
255
+ });
256
+ const Ur = O.prototype, Mr = {};
257
+ [
258
+ "ERR_BAD_OPTION_VALUE",
259
+ "ERR_BAD_OPTION",
260
+ "ECONNABORTED",
261
+ "ETIMEDOUT",
262
+ "ERR_NETWORK",
263
+ "ERR_FR_TOO_MANY_REDIRECTS",
264
+ "ERR_DEPRECATED",
265
+ "ERR_BAD_RESPONSE",
266
+ "ERR_BAD_REQUEST",
267
+ "ERR_CANCELED",
268
+ "ERR_NOT_SUPPORT",
269
+ "ERR_INVALID_URL"
270
+ // eslint-disable-next-line func-names
271
+ ].forEach((t) => {
272
+ Mr[t] = { value: t };
273
+ });
274
+ Object.defineProperties(O, Mr);
275
+ Object.defineProperty(Ur, "isAxiosError", { value: !0 });
276
+ O.from = (t, e, n, r, o, a) => {
277
+ const i = Object.create(Ur);
278
+ return f.toFlatObject(t, i, function(c) {
279
+ return c !== Error.prototype;
280
+ }, (s) => s !== "isAxiosError"), O.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
281
+ };
282
+ const mo = null;
283
+ function bt(t) {
284
+ return f.isPlainObject(t) || f.isArray(t);
285
+ }
286
+ function Lr(t) {
287
+ return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
288
+ }
289
+ function Qt(t, e, n) {
290
+ return t ? t.concat(e).map(function(o, a) {
291
+ return o = Lr(o), !n && a ? "[" + o + "]" : o;
292
+ }).join(n ? "." : "") : e;
293
+ }
294
+ function ho(t) {
295
+ return f.isArray(t) && !t.some(bt);
296
+ }
297
+ const go = f.toFlatObject(f, {}, null, function(e) {
298
+ return /^is[A-Z]/.test(e);
299
+ });
300
+ function Ze(t, e, n) {
301
+ if (!f.isObject(t))
302
+ throw new TypeError("target must be an object");
303
+ e = e || new FormData(), n = f.toFlatObject(n, {
304
+ metaTokens: !0,
305
+ dots: !1,
306
+ indexes: !1
307
+ }, !1, function(y, A) {
308
+ return !f.isUndefined(A[y]);
309
+ });
310
+ const r = n.metaTokens, o = n.visitor || p, a = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
311
+ if (!f.isFunction(o))
312
+ throw new TypeError("visitor must be a function");
313
+ function l(d) {
314
+ if (d === null) return "";
315
+ if (f.isDate(d))
316
+ return d.toISOString();
317
+ if (!c && f.isBlob(d))
318
+ throw new O("Blob is not supported. Use a Buffer instead.");
319
+ return f.isArrayBuffer(d) || f.isTypedArray(d) ? c && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
320
+ }
321
+ function p(d, y, A) {
322
+ let h = d;
323
+ if (d && !A && typeof d == "object") {
324
+ if (f.endsWith(y, "{}"))
325
+ y = r ? y : y.slice(0, -2), d = JSON.stringify(d);
326
+ else if (f.isArray(d) && ho(d) || (f.isFileList(d) || f.endsWith(y, "[]")) && (h = f.toArray(d)))
327
+ return y = Lr(y), h.forEach(function(N, U) {
328
+ !(f.isUndefined(N) || N === null) && e.append(
329
+ // eslint-disable-next-line no-nested-ternary
330
+ i === !0 ? Qt([y], U, a) : i === null ? y : y + "[]",
331
+ l(N)
332
+ );
333
+ }), !1;
334
+ }
335
+ return bt(d) ? !0 : (e.append(Qt(A, y, a), l(d)), !1);
336
+ }
337
+ const u = [], m = Object.assign(go, {
338
+ defaultVisitor: p,
339
+ convertValue: l,
340
+ isVisitable: bt
341
+ });
342
+ function v(d, y) {
343
+ if (!f.isUndefined(d)) {
344
+ if (u.indexOf(d) !== -1)
345
+ throw Error("Circular reference detected in " + y.join("."));
346
+ u.push(d), f.forEach(d, function(h, x) {
347
+ (!(f.isUndefined(h) || h === null) && o.call(
348
+ e,
349
+ h,
350
+ f.isString(x) ? x.trim() : x,
351
+ y,
352
+ m
353
+ )) === !0 && v(h, y ? y.concat(x) : [x]);
354
+ }), u.pop();
355
+ }
356
+ }
357
+ if (!f.isObject(t))
358
+ throw new TypeError("data must be an object");
359
+ return v(t), e;
360
+ }
361
+ function Xt(t) {
362
+ const e = {
363
+ "!": "%21",
364
+ "'": "%27",
365
+ "(": "%28",
366
+ ")": "%29",
367
+ "~": "%7E",
368
+ "%20": "+",
369
+ "%00": "\0"
370
+ };
371
+ return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
372
+ return e[r];
373
+ });
374
+ }
375
+ function _t(t, e) {
376
+ this._pairs = [], t && Ze(t, this, e);
377
+ }
378
+ const kr = _t.prototype;
379
+ kr.append = function(e, n) {
380
+ this._pairs.push([e, n]);
381
+ };
382
+ kr.toString = function(e) {
383
+ const n = e ? function(r) {
384
+ return e.call(this, r, Xt);
385
+ } : Xt;
386
+ return this._pairs.map(function(o) {
387
+ return n(o[0]) + "=" + n(o[1]);
388
+ }, "").join("&");
389
+ };
390
+ function vo(t) {
391
+ return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
392
+ }
393
+ function jr(t, e, n) {
394
+ if (!e)
395
+ return t;
396
+ const r = n && n.encode || vo, o = n && n.serialize;
397
+ let a;
398
+ if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new _t(e, n).toString(r), a) {
399
+ const i = t.indexOf("#");
400
+ i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
401
+ }
402
+ return t;
403
+ }
404
+ class Yt {
405
+ constructor() {
406
+ this.handlers = [];
407
+ }
408
+ /**
409
+ * Add a new interceptor to the stack
410
+ *
411
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
412
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
413
+ *
414
+ * @return {Number} An ID used to remove interceptor later
415
+ */
416
+ use(e, n, r) {
417
+ return this.handlers.push({
418
+ fulfilled: e,
419
+ rejected: n,
420
+ synchronous: r ? r.synchronous : !1,
421
+ runWhen: r ? r.runWhen : null
422
+ }), this.handlers.length - 1;
423
+ }
424
+ /**
425
+ * Remove an interceptor from the stack
426
+ *
427
+ * @param {Number} id The ID that was returned by `use`
428
+ *
429
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
430
+ */
431
+ eject(e) {
432
+ this.handlers[e] && (this.handlers[e] = null);
433
+ }
434
+ /**
435
+ * Clear all interceptors from the stack
436
+ *
437
+ * @returns {void}
438
+ */
439
+ clear() {
440
+ this.handlers && (this.handlers = []);
441
+ }
442
+ /**
443
+ * Iterate over all the registered interceptors
444
+ *
445
+ * This method is particularly useful for skipping over any
446
+ * interceptors that may have become `null` calling `eject`.
447
+ *
448
+ * @param {Function} fn The function to call for each interceptor
449
+ *
450
+ * @returns {void}
451
+ */
452
+ forEach(e) {
453
+ f.forEach(this.handlers, function(r) {
454
+ r !== null && e(r);
455
+ });
456
+ }
457
+ }
458
+ const Hr = {
459
+ silentJSONParsing: !0,
460
+ forcedJSONParsing: !0,
461
+ clarifyTimeoutError: !1
462
+ }, bo = typeof URLSearchParams < "u" ? URLSearchParams : _t, wo = typeof FormData < "u" ? FormData : null, So = typeof Blob < "u" ? Blob : null, Eo = {
463
+ isBrowser: !0,
464
+ classes: {
465
+ URLSearchParams: bo,
466
+ FormData: wo,
467
+ Blob: So
468
+ },
469
+ protocols: ["http", "https", "file", "blob", "url", "data"]
470
+ }, zr = typeof window < "u" && typeof document < "u", Oo = ((t) => zr && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), Ao = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
471
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
472
+ __proto__: null,
473
+ hasBrowserEnv: zr,
474
+ hasStandardBrowserEnv: Oo,
475
+ hasStandardBrowserWebWorkerEnv: Ao
476
+ }, Symbol.toStringTag, { value: "Module" })), q = {
477
+ ...Ro,
478
+ ...Eo
479
+ };
480
+ function Po(t, e) {
481
+ return Ze(t, new q.classes.URLSearchParams(), Object.assign({
482
+ visitor: function(n, r, o, a) {
483
+ return q.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
484
+ }
485
+ }, e));
486
+ }
487
+ function $o(t) {
488
+ return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
489
+ }
490
+ function xo(t) {
491
+ const e = {}, n = Object.keys(t);
492
+ let r;
493
+ const o = n.length;
494
+ let a;
495
+ for (r = 0; r < o; r++)
496
+ a = n[r], e[a] = t[a];
497
+ return e;
498
+ }
499
+ function Wr(t) {
500
+ function e(n, r, o, a) {
501
+ let i = n[a++];
502
+ if (i === "__proto__") return !0;
503
+ const s = Number.isFinite(+i), c = a >= n.length;
504
+ return i = !i && f.isArray(o) ? o.length : i, c ? (f.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !f.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && f.isArray(o[i]) && (o[i] = xo(o[i])), !s);
505
+ }
506
+ if (f.isFormData(t) && f.isFunction(t.entries)) {
507
+ const n = {};
508
+ return f.forEachEntry(t, (r, o) => {
509
+ e($o(r), o, n, 0);
510
+ }), n;
511
+ }
512
+ return null;
513
+ }
514
+ function To(t, e, n) {
515
+ if (f.isString(t))
516
+ try {
517
+ return (e || JSON.parse)(t), f.trim(t);
518
+ } catch (r) {
519
+ if (r.name !== "SyntaxError")
520
+ throw r;
521
+ }
522
+ return (n || JSON.stringify)(t);
523
+ }
524
+ const xe = {
525
+ transitional: Hr,
526
+ adapter: ["xhr", "http"],
527
+ transformRequest: [function(e, n) {
528
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = f.isObject(e);
529
+ if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
530
+ return o ? JSON.stringify(Wr(e)) : e;
531
+ if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e))
532
+ return e;
533
+ if (f.isArrayBufferView(e))
534
+ return e.buffer;
535
+ if (f.isURLSearchParams(e))
536
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
537
+ let s;
538
+ if (a) {
539
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
540
+ return Po(e, this.formSerializer).toString();
541
+ if ((s = f.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
542
+ const c = this.env && this.env.FormData;
543
+ return Ze(
544
+ s ? { "files[]": e } : e,
545
+ c && new c(),
546
+ this.formSerializer
547
+ );
548
+ }
549
+ }
550
+ return a || o ? (n.setContentType("application/json", !1), To(e)) : e;
551
+ }],
552
+ transformResponse: [function(e) {
553
+ const n = this.transitional || xe.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
554
+ if (e && f.isString(e) && (r && !this.responseType || o)) {
555
+ const i = !(n && n.silentJSONParsing) && o;
556
+ try {
557
+ return JSON.parse(e);
558
+ } catch (s) {
559
+ if (i)
560
+ throw s.name === "SyntaxError" ? O.from(s, O.ERR_BAD_RESPONSE, this, null, this.response) : s;
561
+ }
562
+ }
563
+ return e;
564
+ }],
565
+ /**
566
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
567
+ * timeout is not created.
568
+ */
569
+ timeout: 0,
570
+ xsrfCookieName: "XSRF-TOKEN",
571
+ xsrfHeaderName: "X-XSRF-TOKEN",
572
+ maxContentLength: -1,
573
+ maxBodyLength: -1,
574
+ env: {
575
+ FormData: q.classes.FormData,
576
+ Blob: q.classes.Blob
577
+ },
578
+ validateStatus: function(e) {
579
+ return e >= 200 && e < 300;
580
+ },
581
+ headers: {
582
+ common: {
583
+ Accept: "application/json, text/plain, */*",
584
+ "Content-Type": void 0
585
+ }
586
+ }
587
+ };
588
+ f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
589
+ xe.headers[t] = {};
590
+ });
591
+ const No = f.toObjectSet([
592
+ "age",
593
+ "authorization",
594
+ "content-length",
595
+ "content-type",
596
+ "etag",
597
+ "expires",
598
+ "from",
599
+ "host",
600
+ "if-modified-since",
601
+ "if-unmodified-since",
602
+ "last-modified",
603
+ "location",
604
+ "max-forwards",
605
+ "proxy-authorization",
606
+ "referer",
607
+ "retry-after",
608
+ "user-agent"
609
+ ]), Fo = (t) => {
610
+ const e = {};
611
+ let n, r, o;
612
+ return t && t.split(`
613
+ `).forEach(function(i) {
614
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && No[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
615
+ }), e;
616
+ }, Zt = Symbol("internals");
617
+ function we(t) {
618
+ return t && String(t).trim().toLowerCase();
619
+ }
620
+ function je(t) {
621
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(je) : String(t);
622
+ }
623
+ function Co(t) {
624
+ const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
625
+ let r;
626
+ for (; r = n.exec(t); )
627
+ e[r[1]] = r[2];
628
+ return e;
629
+ }
630
+ const Io = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
631
+ function at(t, e, n, r, o) {
632
+ if (f.isFunction(r))
633
+ return r.call(this, e, n);
634
+ if (o && (e = n), !!f.isString(e)) {
635
+ if (f.isString(r))
636
+ return e.indexOf(r) !== -1;
637
+ if (f.isRegExp(r))
638
+ return r.test(e);
639
+ }
640
+ }
641
+ function _o(t) {
642
+ return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
643
+ }
644
+ function Do(t, e) {
645
+ const n = f.toCamelCase(" " + e);
646
+ ["get", "set", "has"].forEach((r) => {
647
+ Object.defineProperty(t, r + n, {
648
+ value: function(o, a, i) {
649
+ return this[r].call(this, e, o, a, i);
650
+ },
651
+ configurable: !0
652
+ });
653
+ });
654
+ }
655
+ class k {
656
+ constructor(e) {
657
+ e && this.set(e);
658
+ }
659
+ set(e, n, r) {
660
+ const o = this;
661
+ function a(s, c, l) {
662
+ const p = we(c);
663
+ if (!p)
664
+ throw new Error("header name must be a non-empty string");
665
+ const u = f.findKey(o, p);
666
+ (!u || o[u] === void 0 || l === !0 || l === void 0 && o[u] !== !1) && (o[u || c] = je(s));
667
+ }
668
+ const i = (s, c) => f.forEach(s, (l, p) => a(l, p, c));
669
+ return f.isPlainObject(e) || e instanceof this.constructor ? i(e, n) : f.isString(e) && (e = e.trim()) && !Io(e) ? i(Fo(e), n) : e != null && a(n, e, r), this;
670
+ }
671
+ get(e, n) {
672
+ if (e = we(e), e) {
673
+ const r = f.findKey(this, e);
674
+ if (r) {
675
+ const o = this[r];
676
+ if (!n)
677
+ return o;
678
+ if (n === !0)
679
+ return Co(o);
680
+ if (f.isFunction(n))
681
+ return n.call(this, o, r);
682
+ if (f.isRegExp(n))
683
+ return n.exec(o);
684
+ throw new TypeError("parser must be boolean|regexp|function");
685
+ }
686
+ }
687
+ }
688
+ has(e, n) {
689
+ if (e = we(e), e) {
690
+ const r = f.findKey(this, e);
691
+ return !!(r && this[r] !== void 0 && (!n || at(this, this[r], r, n)));
692
+ }
693
+ return !1;
694
+ }
695
+ delete(e, n) {
696
+ const r = this;
697
+ let o = !1;
698
+ function a(i) {
699
+ if (i = we(i), i) {
700
+ const s = f.findKey(r, i);
701
+ s && (!n || at(r, r[s], s, n)) && (delete r[s], o = !0);
702
+ }
703
+ }
704
+ return f.isArray(e) ? e.forEach(a) : a(e), o;
705
+ }
706
+ clear(e) {
707
+ const n = Object.keys(this);
708
+ let r = n.length, o = !1;
709
+ for (; r--; ) {
710
+ const a = n[r];
711
+ (!e || at(this, this[a], a, e, !0)) && (delete this[a], o = !0);
712
+ }
713
+ return o;
714
+ }
715
+ normalize(e) {
716
+ const n = this, r = {};
717
+ return f.forEach(this, (o, a) => {
718
+ const i = f.findKey(r, a);
719
+ if (i) {
720
+ n[i] = je(o), delete n[a];
721
+ return;
722
+ }
723
+ const s = e ? _o(a) : String(a).trim();
724
+ s !== a && delete n[a], n[s] = je(o), r[s] = !0;
725
+ }), this;
726
+ }
727
+ concat(...e) {
728
+ return this.constructor.concat(this, ...e);
729
+ }
730
+ toJSON(e) {
731
+ const n = /* @__PURE__ */ Object.create(null);
732
+ return f.forEach(this, (r, o) => {
733
+ r != null && r !== !1 && (n[o] = e && f.isArray(r) ? r.join(", ") : r);
734
+ }), n;
735
+ }
736
+ [Symbol.iterator]() {
737
+ return Object.entries(this.toJSON())[Symbol.iterator]();
738
+ }
739
+ toString() {
740
+ return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
741
+ `);
742
+ }
743
+ get [Symbol.toStringTag]() {
744
+ return "AxiosHeaders";
745
+ }
746
+ static from(e) {
747
+ return e instanceof this ? e : new this(e);
748
+ }
749
+ static concat(e, ...n) {
750
+ const r = new this(e);
751
+ return n.forEach((o) => r.set(o)), r;
752
+ }
753
+ static accessor(e) {
754
+ const r = (this[Zt] = this[Zt] = {
755
+ accessors: {}
756
+ }).accessors, o = this.prototype;
757
+ function a(i) {
758
+ const s = we(i);
759
+ r[s] || (Do(o, i), r[s] = !0);
760
+ }
761
+ return f.isArray(e) ? e.forEach(a) : a(e), this;
762
+ }
763
+ }
764
+ k.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
765
+ f.reduceDescriptors(k.prototype, ({ value: t }, e) => {
766
+ let n = e[0].toUpperCase() + e.slice(1);
767
+ return {
768
+ get: () => t,
769
+ set(r) {
770
+ this[n] = r;
771
+ }
772
+ };
773
+ });
774
+ f.freezeMethods(k);
775
+ function it(t, e) {
776
+ const n = this || xe, r = e || n, o = k.from(r.headers);
777
+ let a = r.data;
778
+ return f.forEach(t, function(s) {
779
+ a = s.call(n, a, o.normalize(), e ? e.status : void 0);
780
+ }), o.normalize(), a;
781
+ }
782
+ function qr(t) {
783
+ return !!(t && t.__CANCEL__);
784
+ }
785
+ function Te(t, e, n) {
786
+ O.call(this, t ?? "canceled", O.ERR_CANCELED, e, n), this.name = "CanceledError";
787
+ }
788
+ f.inherits(Te, O, {
789
+ __CANCEL__: !0
790
+ });
791
+ function Bo(t, e, n) {
792
+ const r = n.config.validateStatus;
793
+ !n.status || !r || r(n.status) ? t(n) : e(new O(
794
+ "Request failed with status code " + n.status,
795
+ [O.ERR_BAD_REQUEST, O.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
796
+ n.config,
797
+ n.request,
798
+ n
799
+ ));
800
+ }
801
+ const Uo = q.hasStandardBrowserEnv ? (
802
+ // Standard browser envs support document.cookie
803
+ {
804
+ write(t, e, n, r, o, a) {
805
+ const i = [t + "=" + encodeURIComponent(e)];
806
+ f.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), f.isString(r) && i.push("path=" + r), f.isString(o) && i.push("domain=" + o), a === !0 && i.push("secure"), document.cookie = i.join("; ");
807
+ },
808
+ read(t) {
809
+ const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
810
+ return e ? decodeURIComponent(e[3]) : null;
811
+ },
812
+ remove(t) {
813
+ this.write(t, "", Date.now() - 864e5);
814
+ }
815
+ }
816
+ ) : (
817
+ // Non-standard browser env (web workers, react-native) lack needed support.
818
+ {
819
+ write() {
820
+ },
821
+ read() {
822
+ return null;
823
+ },
824
+ remove() {
825
+ }
826
+ }
827
+ );
828
+ function Mo(t) {
829
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
830
+ }
831
+ function Lo(t, e) {
832
+ return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
833
+ }
834
+ function Gr(t, e) {
835
+ return t && !Mo(e) ? Lo(t, e) : e;
836
+ }
837
+ const ko = q.hasStandardBrowserEnv ? (
838
+ // Standard browser envs have full support of the APIs needed to test
839
+ // whether the request URL is of the same origin as current location.
840
+ function() {
841
+ const e = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
842
+ let r;
843
+ function o(a) {
844
+ let i = a;
845
+ return e && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
846
+ href: n.href,
847
+ protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
848
+ host: n.host,
849
+ search: n.search ? n.search.replace(/^\?/, "") : "",
850
+ hash: n.hash ? n.hash.replace(/^#/, "") : "",
851
+ hostname: n.hostname,
852
+ port: n.port,
853
+ pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
854
+ };
855
+ }
856
+ return r = o(window.location.href), function(i) {
857
+ const s = f.isString(i) ? o(i) : i;
858
+ return s.protocol === r.protocol && s.host === r.host;
859
+ };
860
+ }()
861
+ ) : (
862
+ // Non standard browser envs (web workers, react-native) lack needed support.
863
+ /* @__PURE__ */ function() {
864
+ return function() {
865
+ return !0;
866
+ };
867
+ }()
868
+ );
869
+ function jo(t) {
870
+ const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
871
+ return e && e[1] || "";
872
+ }
873
+ function Ho(t, e) {
874
+ t = t || 10;
875
+ const n = new Array(t), r = new Array(t);
876
+ let o = 0, a = 0, i;
877
+ return e = e !== void 0 ? e : 1e3, function(c) {
878
+ const l = Date.now(), p = r[a];
879
+ i || (i = l), n[o] = c, r[o] = l;
880
+ let u = a, m = 0;
881
+ for (; u !== o; )
882
+ m += n[u++], u = u % t;
883
+ if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
884
+ return;
885
+ const v = p && l - p;
886
+ return v ? Math.round(m * 1e3 / v) : void 0;
887
+ };
888
+ }
889
+ function er(t, e) {
890
+ let n = 0;
891
+ const r = Ho(50, 250);
892
+ return (o) => {
893
+ const a = o.loaded, i = o.lengthComputable ? o.total : void 0, s = a - n, c = r(s), l = a <= i;
894
+ n = a;
895
+ const p = {
896
+ loaded: a,
897
+ total: i,
898
+ progress: i ? a / i : void 0,
899
+ bytes: s,
900
+ rate: c || void 0,
901
+ estimated: c && i && l ? (i - a) / c : void 0,
902
+ event: o
903
+ };
904
+ p[e ? "download" : "upload"] = !0, t(p);
905
+ };
906
+ }
907
+ const zo = typeof XMLHttpRequest < "u", Wo = zo && function(t) {
908
+ return new Promise(function(n, r) {
909
+ let o = t.data;
910
+ const a = k.from(t.headers).normalize();
911
+ let { responseType: i, withXSRFToken: s } = t, c;
912
+ function l() {
913
+ t.cancelToken && t.cancelToken.unsubscribe(c), t.signal && t.signal.removeEventListener("abort", c);
914
+ }
915
+ let p;
916
+ if (f.isFormData(o)) {
917
+ if (q.hasStandardBrowserEnv || q.hasStandardBrowserWebWorkerEnv)
918
+ a.setContentType(!1);
919
+ else if ((p = a.getContentType()) !== !1) {
920
+ const [y, ...A] = p ? p.split(";").map((h) => h.trim()).filter(Boolean) : [];
921
+ a.setContentType([y || "multipart/form-data", ...A].join("; "));
922
+ }
923
+ }
924
+ let u = new XMLHttpRequest();
925
+ if (t.auth) {
926
+ const y = t.auth.username || "", A = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
927
+ a.set("Authorization", "Basic " + btoa(y + ":" + A));
928
+ }
929
+ const m = Gr(t.baseURL, t.url);
930
+ u.open(t.method.toUpperCase(), jr(m, t.params, t.paramsSerializer), !0), u.timeout = t.timeout;
931
+ function v() {
932
+ if (!u)
933
+ return;
934
+ const y = k.from(
935
+ "getAllResponseHeaders" in u && u.getAllResponseHeaders()
936
+ ), h = {
937
+ data: !i || i === "text" || i === "json" ? u.responseText : u.response,
938
+ status: u.status,
939
+ statusText: u.statusText,
940
+ headers: y,
941
+ config: t,
942
+ request: u
943
+ };
944
+ Bo(function(N) {
945
+ n(N), l();
946
+ }, function(N) {
947
+ r(N), l();
948
+ }, h), u = null;
949
+ }
950
+ if ("onloadend" in u ? u.onloadend = v : u.onreadystatechange = function() {
951
+ !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(v);
952
+ }, u.onabort = function() {
953
+ u && (r(new O("Request aborted", O.ECONNABORTED, t, u)), u = null);
954
+ }, u.onerror = function() {
955
+ r(new O("Network Error", O.ERR_NETWORK, t, u)), u = null;
956
+ }, u.ontimeout = function() {
957
+ let A = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
958
+ const h = t.transitional || Hr;
959
+ t.timeoutErrorMessage && (A = t.timeoutErrorMessage), r(new O(
960
+ A,
961
+ h.clarifyTimeoutError ? O.ETIMEDOUT : O.ECONNABORTED,
962
+ t,
963
+ u
964
+ )), u = null;
965
+ }, q.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(t)), s || s !== !1 && ko(m))) {
966
+ const y = t.xsrfHeaderName && t.xsrfCookieName && Uo.read(t.xsrfCookieName);
967
+ y && a.set(t.xsrfHeaderName, y);
968
+ }
969
+ o === void 0 && a.setContentType(null), "setRequestHeader" in u && f.forEach(a.toJSON(), function(A, h) {
970
+ u.setRequestHeader(h, A);
971
+ }), f.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), i && i !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", er(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", er(t.onUploadProgress)), (t.cancelToken || t.signal) && (c = (y) => {
972
+ u && (r(!y || y.type ? new Te(null, t, u) : y), u.abort(), u = null);
973
+ }, t.cancelToken && t.cancelToken.subscribe(c), t.signal && (t.signal.aborted ? c() : t.signal.addEventListener("abort", c)));
974
+ const d = jo(m);
975
+ if (d && q.protocols.indexOf(d) === -1) {
976
+ r(new O("Unsupported protocol " + d + ":", O.ERR_BAD_REQUEST, t));
977
+ return;
978
+ }
979
+ u.send(o || null);
980
+ });
981
+ }, wt = {
982
+ http: mo,
983
+ xhr: Wo
984
+ };
985
+ f.forEach(wt, (t, e) => {
986
+ if (t) {
987
+ try {
988
+ Object.defineProperty(t, "name", { value: e });
989
+ } catch {
990
+ }
991
+ Object.defineProperty(t, "adapterName", { value: e });
992
+ }
993
+ });
994
+ const tr = (t) => `- ${t}`, qo = (t) => f.isFunction(t) || t === null || t === !1, Jr = {
995
+ getAdapter: (t) => {
996
+ t = f.isArray(t) ? t : [t];
997
+ const { length: e } = t;
998
+ let n, r;
999
+ const o = {};
1000
+ for (let a = 0; a < e; a++) {
1001
+ n = t[a];
1002
+ let i;
1003
+ if (r = n, !qo(n) && (r = wt[(i = String(n)).toLowerCase()], r === void 0))
1004
+ throw new O(`Unknown adapter '${i}'`);
1005
+ if (r)
1006
+ break;
1007
+ o[i || "#" + a] = r;
1008
+ }
1009
+ if (!r) {
1010
+ const a = Object.entries(o).map(
1011
+ ([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1012
+ );
1013
+ let i = e ? a.length > 1 ? `since :
1014
+ ` + a.map(tr).join(`
1015
+ `) : " " + tr(a[0]) : "as no adapter specified";
1016
+ throw new O(
1017
+ "There is no suitable adapter to dispatch the request " + i,
1018
+ "ERR_NOT_SUPPORT"
1019
+ );
1020
+ }
1021
+ return r;
1022
+ },
1023
+ adapters: wt
1024
+ };
1025
+ function st(t) {
1026
+ if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1027
+ throw new Te(null, t);
1028
+ }
1029
+ function rr(t) {
1030
+ return st(t), t.headers = k.from(t.headers), t.data = it.call(
1031
+ t,
1032
+ t.transformRequest
1033
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Jr.getAdapter(t.adapter || xe.adapter)(t).then(function(r) {
1034
+ return st(t), r.data = it.call(
1035
+ t,
1036
+ t.transformResponse,
1037
+ r
1038
+ ), r.headers = k.from(r.headers), r;
1039
+ }, function(r) {
1040
+ return qr(r) || (st(t), r && r.response && (r.response.data = it.call(
1041
+ t,
1042
+ t.transformResponse,
1043
+ r.response
1044
+ ), r.response.headers = k.from(r.response.headers))), Promise.reject(r);
1045
+ });
1046
+ }
1047
+ const nr = (t) => t instanceof k ? t.toJSON() : t;
1048
+ function de(t, e) {
1049
+ e = e || {};
1050
+ const n = {};
1051
+ function r(l, p, u) {
1052
+ return f.isPlainObject(l) && f.isPlainObject(p) ? f.merge.call({ caseless: u }, l, p) : f.isPlainObject(p) ? f.merge({}, p) : f.isArray(p) ? p.slice() : p;
1053
+ }
1054
+ function o(l, p, u) {
1055
+ if (f.isUndefined(p)) {
1056
+ if (!f.isUndefined(l))
1057
+ return r(void 0, l, u);
1058
+ } else return r(l, p, u);
1059
+ }
1060
+ function a(l, p) {
1061
+ if (!f.isUndefined(p))
1062
+ return r(void 0, p);
1063
+ }
1064
+ function i(l, p) {
1065
+ if (f.isUndefined(p)) {
1066
+ if (!f.isUndefined(l))
1067
+ return r(void 0, l);
1068
+ } else return r(void 0, p);
1069
+ }
1070
+ function s(l, p, u) {
1071
+ if (u in e)
1072
+ return r(l, p);
1073
+ if (u in t)
1074
+ return r(void 0, l);
1075
+ }
1076
+ const c = {
1077
+ url: a,
1078
+ method: a,
1079
+ data: a,
1080
+ baseURL: i,
1081
+ transformRequest: i,
1082
+ transformResponse: i,
1083
+ paramsSerializer: i,
1084
+ timeout: i,
1085
+ timeoutMessage: i,
1086
+ withCredentials: i,
1087
+ withXSRFToken: i,
1088
+ adapter: i,
1089
+ responseType: i,
1090
+ xsrfCookieName: i,
1091
+ xsrfHeaderName: i,
1092
+ onUploadProgress: i,
1093
+ onDownloadProgress: i,
1094
+ decompress: i,
1095
+ maxContentLength: i,
1096
+ maxBodyLength: i,
1097
+ beforeRedirect: i,
1098
+ transport: i,
1099
+ httpAgent: i,
1100
+ httpsAgent: i,
1101
+ cancelToken: i,
1102
+ socketPath: i,
1103
+ responseEncoding: i,
1104
+ validateStatus: s,
1105
+ headers: (l, p) => o(nr(l), nr(p), !0)
1106
+ };
1107
+ return f.forEach(Object.keys(Object.assign({}, t, e)), function(p) {
1108
+ const u = c[p] || o, m = u(t[p], e[p], p);
1109
+ f.isUndefined(m) && u !== s || (n[p] = m);
1110
+ }), n;
1111
+ }
1112
+ const Vr = "1.6.7", Dt = {};
1113
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1114
+ Dt[t] = function(r) {
1115
+ return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
1116
+ };
1117
+ });
1118
+ const or = {};
1119
+ Dt.transitional = function(e, n, r) {
1120
+ function o(a, i) {
1121
+ return "[Axios v" + Vr + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
1122
+ }
1123
+ return (a, i, s) => {
1124
+ if (e === !1)
1125
+ throw new O(
1126
+ o(i, " has been removed" + (n ? " in " + n : "")),
1127
+ O.ERR_DEPRECATED
1128
+ );
1129
+ return n && !or[i] && (or[i] = !0), e ? e(a, i, s) : !0;
1130
+ };
1131
+ };
1132
+ function Go(t, e, n) {
1133
+ if (typeof t != "object")
1134
+ throw new O("options must be an object", O.ERR_BAD_OPTION_VALUE);
1135
+ const r = Object.keys(t);
1136
+ let o = r.length;
1137
+ for (; o-- > 0; ) {
1138
+ const a = r[o], i = e[a];
1139
+ if (i) {
1140
+ const s = t[a], c = s === void 0 || i(s, a, t);
1141
+ if (c !== !0)
1142
+ throw new O("option " + a + " must be " + c, O.ERR_BAD_OPTION_VALUE);
1143
+ continue;
1144
+ }
1145
+ if (n !== !0)
1146
+ throw new O("Unknown option " + a, O.ERR_BAD_OPTION);
1147
+ }
1148
+ }
1149
+ const St = {
1150
+ assertOptions: Go,
1151
+ validators: Dt
1152
+ }, X = St.validators;
1153
+ class oe {
1154
+ constructor(e) {
1155
+ this.defaults = e, this.interceptors = {
1156
+ request: new Yt(),
1157
+ response: new Yt()
1158
+ };
1159
+ }
1160
+ /**
1161
+ * Dispatch a request
1162
+ *
1163
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1164
+ * @param {?Object} config
1165
+ *
1166
+ * @returns {Promise} The Promise to be fulfilled
1167
+ */
1168
+ async request(e, n) {
1169
+ try {
1170
+ return await this._request(e, n);
1171
+ } catch (r) {
1172
+ if (r instanceof Error) {
1173
+ let o;
1174
+ Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
1175
+ const a = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1176
+ r.stack ? a && !String(r.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (r.stack += `
1177
+ ` + a) : r.stack = a;
1178
+ }
1179
+ throw r;
1180
+ }
1181
+ }
1182
+ _request(e, n) {
1183
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = de(this.defaults, n);
1184
+ const { transitional: r, paramsSerializer: o, headers: a } = n;
1185
+ r !== void 0 && St.assertOptions(r, {
1186
+ silentJSONParsing: X.transitional(X.boolean),
1187
+ forcedJSONParsing: X.transitional(X.boolean),
1188
+ clarifyTimeoutError: X.transitional(X.boolean)
1189
+ }, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
1190
+ serialize: o
1191
+ } : St.assertOptions(o, {
1192
+ encode: X.function,
1193
+ serialize: X.function
1194
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1195
+ let i = a && f.merge(
1196
+ a.common,
1197
+ a[n.method]
1198
+ );
1199
+ a && f.forEach(
1200
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1201
+ (d) => {
1202
+ delete a[d];
1203
+ }
1204
+ ), n.headers = k.concat(i, a);
1205
+ const s = [];
1206
+ let c = !0;
1207
+ this.interceptors.request.forEach(function(y) {
1208
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (c = c && y.synchronous, s.unshift(y.fulfilled, y.rejected));
1209
+ });
1210
+ const l = [];
1211
+ this.interceptors.response.forEach(function(y) {
1212
+ l.push(y.fulfilled, y.rejected);
1213
+ });
1214
+ let p, u = 0, m;
1215
+ if (!c) {
1216
+ const d = [rr.bind(this), void 0];
1217
+ for (d.unshift.apply(d, s), d.push.apply(d, l), m = d.length, p = Promise.resolve(n); u < m; )
1218
+ p = p.then(d[u++], d[u++]);
1219
+ return p;
1220
+ }
1221
+ m = s.length;
1222
+ let v = n;
1223
+ for (u = 0; u < m; ) {
1224
+ const d = s[u++], y = s[u++];
1225
+ try {
1226
+ v = d(v);
1227
+ } catch (A) {
1228
+ y.call(this, A);
1229
+ break;
1230
+ }
1231
+ }
1232
+ try {
1233
+ p = rr.call(this, v);
1234
+ } catch (d) {
1235
+ return Promise.reject(d);
1236
+ }
1237
+ for (u = 0, m = l.length; u < m; )
1238
+ p = p.then(l[u++], l[u++]);
1239
+ return p;
1240
+ }
1241
+ getUri(e) {
1242
+ e = de(this.defaults, e);
1243
+ const n = Gr(e.baseURL, e.url);
1244
+ return jr(n, e.params, e.paramsSerializer);
1245
+ }
1246
+ }
1247
+ f.forEach(["delete", "get", "head", "options"], function(e) {
1248
+ oe.prototype[e] = function(n, r) {
1249
+ return this.request(de(r || {}, {
1250
+ method: e,
1251
+ url: n,
1252
+ data: (r || {}).data
1253
+ }));
1254
+ };
1255
+ });
1256
+ f.forEach(["post", "put", "patch"], function(e) {
1257
+ function n(r) {
1258
+ return function(a, i, s) {
1259
+ return this.request(de(s || {}, {
1260
+ method: e,
1261
+ headers: r ? {
1262
+ "Content-Type": "multipart/form-data"
1263
+ } : {},
1264
+ url: a,
1265
+ data: i
1266
+ }));
1267
+ };
1268
+ }
1269
+ oe.prototype[e] = n(), oe.prototype[e + "Form"] = n(!0);
1270
+ });
1271
+ class Bt {
1272
+ constructor(e) {
1273
+ if (typeof e != "function")
1274
+ throw new TypeError("executor must be a function.");
1275
+ let n;
1276
+ this.promise = new Promise(function(a) {
1277
+ n = a;
1278
+ });
1279
+ const r = this;
1280
+ this.promise.then((o) => {
1281
+ if (!r._listeners) return;
1282
+ let a = r._listeners.length;
1283
+ for (; a-- > 0; )
1284
+ r._listeners[a](o);
1285
+ r._listeners = null;
1286
+ }), this.promise.then = (o) => {
1287
+ let a;
1288
+ const i = new Promise((s) => {
1289
+ r.subscribe(s), a = s;
1290
+ }).then(o);
1291
+ return i.cancel = function() {
1292
+ r.unsubscribe(a);
1293
+ }, i;
1294
+ }, e(function(a, i, s) {
1295
+ r.reason || (r.reason = new Te(a, i, s), n(r.reason));
1296
+ });
1297
+ }
1298
+ /**
1299
+ * Throws a `CanceledError` if cancellation has been requested.
1300
+ */
1301
+ throwIfRequested() {
1302
+ if (this.reason)
1303
+ throw this.reason;
1304
+ }
1305
+ /**
1306
+ * Subscribe to the cancel signal
1307
+ */
1308
+ subscribe(e) {
1309
+ if (this.reason) {
1310
+ e(this.reason);
1311
+ return;
1312
+ }
1313
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
1314
+ }
1315
+ /**
1316
+ * Unsubscribe from the cancel signal
1317
+ */
1318
+ unsubscribe(e) {
1319
+ if (!this._listeners)
1320
+ return;
1321
+ const n = this._listeners.indexOf(e);
1322
+ n !== -1 && this._listeners.splice(n, 1);
1323
+ }
1324
+ /**
1325
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1326
+ * cancels the `CancelToken`.
1327
+ */
1328
+ static source() {
1329
+ let e;
1330
+ return {
1331
+ token: new Bt(function(o) {
1332
+ e = o;
1333
+ }),
1334
+ cancel: e
1335
+ };
1336
+ }
1337
+ }
1338
+ function Jo(t) {
1339
+ return function(n) {
1340
+ return t.apply(null, n);
1341
+ };
1342
+ }
1343
+ function Vo(t) {
1344
+ return f.isObject(t) && t.isAxiosError === !0;
1345
+ }
1346
+ const Et = {
1347
+ Continue: 100,
1348
+ SwitchingProtocols: 101,
1349
+ Processing: 102,
1350
+ EarlyHints: 103,
1351
+ Ok: 200,
1352
+ Created: 201,
1353
+ Accepted: 202,
1354
+ NonAuthoritativeInformation: 203,
1355
+ NoContent: 204,
1356
+ ResetContent: 205,
1357
+ PartialContent: 206,
1358
+ MultiStatus: 207,
1359
+ AlreadyReported: 208,
1360
+ ImUsed: 226,
1361
+ MultipleChoices: 300,
1362
+ MovedPermanently: 301,
1363
+ Found: 302,
1364
+ SeeOther: 303,
1365
+ NotModified: 304,
1366
+ UseProxy: 305,
1367
+ Unused: 306,
1368
+ TemporaryRedirect: 307,
1369
+ PermanentRedirect: 308,
1370
+ BadRequest: 400,
1371
+ Unauthorized: 401,
1372
+ PaymentRequired: 402,
1373
+ Forbidden: 403,
1374
+ NotFound: 404,
1375
+ MethodNotAllowed: 405,
1376
+ NotAcceptable: 406,
1377
+ ProxyAuthenticationRequired: 407,
1378
+ RequestTimeout: 408,
1379
+ Conflict: 409,
1380
+ Gone: 410,
1381
+ LengthRequired: 411,
1382
+ PreconditionFailed: 412,
1383
+ PayloadTooLarge: 413,
1384
+ UriTooLong: 414,
1385
+ UnsupportedMediaType: 415,
1386
+ RangeNotSatisfiable: 416,
1387
+ ExpectationFailed: 417,
1388
+ ImATeapot: 418,
1389
+ MisdirectedRequest: 421,
1390
+ UnprocessableEntity: 422,
1391
+ Locked: 423,
1392
+ FailedDependency: 424,
1393
+ TooEarly: 425,
1394
+ UpgradeRequired: 426,
1395
+ PreconditionRequired: 428,
1396
+ TooManyRequests: 429,
1397
+ RequestHeaderFieldsTooLarge: 431,
1398
+ UnavailableForLegalReasons: 451,
1399
+ InternalServerError: 500,
1400
+ NotImplemented: 501,
1401
+ BadGateway: 502,
1402
+ ServiceUnavailable: 503,
1403
+ GatewayTimeout: 504,
1404
+ HttpVersionNotSupported: 505,
1405
+ VariantAlsoNegotiates: 506,
1406
+ InsufficientStorage: 507,
1407
+ LoopDetected: 508,
1408
+ NotExtended: 510,
1409
+ NetworkAuthenticationRequired: 511
1410
+ };
1411
+ Object.entries(Et).forEach(([t, e]) => {
1412
+ Et[e] = t;
1413
+ });
1414
+ function Kr(t) {
1415
+ const e = new oe(t), n = Tr(oe.prototype.request, e);
1416
+ return f.extend(n, oe.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
1417
+ return Kr(de(t, o));
1418
+ }, n;
1419
+ }
1420
+ const T = Kr(xe);
1421
+ T.Axios = oe;
1422
+ T.CanceledError = Te;
1423
+ T.CancelToken = Bt;
1424
+ T.isCancel = qr;
1425
+ T.VERSION = Vr;
1426
+ T.toFormData = Ze;
1427
+ T.AxiosError = O;
1428
+ T.Cancel = T.CanceledError;
1429
+ T.all = function(e) {
1430
+ return Promise.all(e);
1431
+ };
1432
+ T.spread = Jo;
1433
+ T.isAxiosError = Vo;
1434
+ T.mergeConfig = de;
1435
+ T.AxiosHeaders = k;
1436
+ T.formToJSON = (t) => Wr(f.isHTMLForm(t) ? new FormData(t) : t);
1437
+ T.getAdapter = Jr.getAdapter;
1438
+ T.HttpStatusCode = Et;
1439
+ T.default = T;
1440
+ var Ko = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1441
+ function Qo(t) {
1442
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1443
+ }
1444
+ function Xo(t) {
1445
+ if (t.__esModule) return t;
1446
+ var e = t.default;
1447
+ if (typeof e == "function") {
1448
+ var n = function r() {
1449
+ return this instanceof r ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
1450
+ };
1451
+ n.prototype = e.prototype;
1452
+ } else n = {};
1453
+ return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) {
1454
+ var o = Object.getOwnPropertyDescriptor(t, r);
1455
+ Object.defineProperty(n, r, o.get ? o : {
1456
+ enumerable: !0,
1457
+ get: function() {
1458
+ return t[r];
1459
+ }
1460
+ });
1461
+ }), n;
1462
+ }
1463
+ var Yo = function() {
1464
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1465
+ return !1;
1466
+ if (typeof Symbol.iterator == "symbol")
1467
+ return !0;
1468
+ var e = {}, n = Symbol("test"), r = Object(n);
1469
+ if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]")
1470
+ return !1;
1471
+ var o = 42;
1472
+ e[n] = o;
1473
+ for (n in e)
1474
+ return !1;
1475
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
1476
+ return !1;
1477
+ var a = Object.getOwnPropertySymbols(e);
1478
+ if (a.length !== 1 || a[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n))
1479
+ return !1;
1480
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
1481
+ var i = Object.getOwnPropertyDescriptor(e, n);
1482
+ if (i.value !== o || i.enumerable !== !0)
1483
+ return !1;
1484
+ }
1485
+ return !0;
1486
+ }, ar = typeof Symbol < "u" && Symbol, Zo = Yo, ea = function() {
1487
+ return typeof ar != "function" || typeof Symbol != "function" || typeof ar("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Zo();
1488
+ }, ir = {
1489
+ foo: {}
1490
+ }, ta = Object, ra = function() {
1491
+ return { __proto__: ir }.foo === ir.foo && !({ __proto__: null } instanceof ta);
1492
+ }, na = "Function.prototype.bind called on incompatible ", oa = Object.prototype.toString, aa = Math.max, ia = "[object Function]", sr = function(e, n) {
1493
+ for (var r = [], o = 0; o < e.length; o += 1)
1494
+ r[o] = e[o];
1495
+ for (var a = 0; a < n.length; a += 1)
1496
+ r[a + e.length] = n[a];
1497
+ return r;
1498
+ }, sa = function(e, n) {
1499
+ for (var r = [], o = n, a = 0; o < e.length; o += 1, a += 1)
1500
+ r[a] = e[o];
1501
+ return r;
1502
+ }, la = function(t, e) {
1503
+ for (var n = "", r = 0; r < t.length; r += 1)
1504
+ n += t[r], r + 1 < t.length && (n += e);
1505
+ return n;
1506
+ }, ca = function(e) {
1507
+ var n = this;
1508
+ if (typeof n != "function" || oa.apply(n) !== ia)
1509
+ throw new TypeError(na + n);
1510
+ for (var r = sa(arguments, 1), o, a = function() {
1511
+ if (this instanceof o) {
1512
+ var p = n.apply(
1513
+ this,
1514
+ sr(r, arguments)
1515
+ );
1516
+ return Object(p) === p ? p : this;
1517
+ }
1518
+ return n.apply(
1519
+ e,
1520
+ sr(r, arguments)
1521
+ );
1522
+ }, i = aa(0, n.length - r.length), s = [], c = 0; c < i; c++)
1523
+ s[c] = "$" + c;
1524
+ if (o = Function("binder", "return function (" + la(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
1525
+ var l = function() {
1526
+ };
1527
+ l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
1528
+ }
1529
+ return o;
1530
+ }, ua = ca, Ut = Function.prototype.bind || ua, fa = Function.prototype.call, pa = Object.prototype.hasOwnProperty, da = Ut, ya = da.call(fa, pa), E, ye = SyntaxError, Qr = Function, pe = TypeError, lt = function(t) {
1531
+ try {
1532
+ return Qr('"use strict"; return (' + t + ").constructor;")();
1533
+ } catch {
1534
+ }
1535
+ }, ae = Object.getOwnPropertyDescriptor;
1536
+ if (ae)
1537
+ try {
1538
+ ae({}, "");
1539
+ } catch {
1540
+ ae = null;
1541
+ }
1542
+ var ct = function() {
1543
+ throw new pe();
1544
+ }, ma = ae ? function() {
1545
+ try {
1546
+ return arguments.callee, ct;
1547
+ } catch {
1548
+ try {
1549
+ return ae(arguments, "callee").get;
1550
+ } catch {
1551
+ return ct;
1552
+ }
1553
+ }
1554
+ }() : ct, ce = ea(), ha = ra(), I = Object.getPrototypeOf || (ha ? function(t) {
1555
+ return t.__proto__;
1556
+ } : null), fe = {}, ga = typeof Uint8Array > "u" || !I ? E : I(Uint8Array), ie = {
1557
+ "%AggregateError%": typeof AggregateError > "u" ? E : AggregateError,
1558
+ "%Array%": Array,
1559
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? E : ArrayBuffer,
1560
+ "%ArrayIteratorPrototype%": ce && I ? I([][Symbol.iterator]()) : E,
1561
+ "%AsyncFromSyncIteratorPrototype%": E,
1562
+ "%AsyncFunction%": fe,
1563
+ "%AsyncGenerator%": fe,
1564
+ "%AsyncGeneratorFunction%": fe,
1565
+ "%AsyncIteratorPrototype%": fe,
1566
+ "%Atomics%": typeof Atomics > "u" ? E : Atomics,
1567
+ "%BigInt%": typeof BigInt > "u" ? E : BigInt,
1568
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? E : BigInt64Array,
1569
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? E : BigUint64Array,
1570
+ "%Boolean%": Boolean,
1571
+ "%DataView%": typeof DataView > "u" ? E : DataView,
1572
+ "%Date%": Date,
1573
+ "%decodeURI%": decodeURI,
1574
+ "%decodeURIComponent%": decodeURIComponent,
1575
+ "%encodeURI%": encodeURI,
1576
+ "%encodeURIComponent%": encodeURIComponent,
1577
+ "%Error%": Error,
1578
+ "%eval%": eval,
1579
+ // eslint-disable-line no-eval
1580
+ "%EvalError%": EvalError,
1581
+ "%Float32Array%": typeof Float32Array > "u" ? E : Float32Array,
1582
+ "%Float64Array%": typeof Float64Array > "u" ? E : Float64Array,
1583
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? E : FinalizationRegistry,
1584
+ "%Function%": Qr,
1585
+ "%GeneratorFunction%": fe,
1586
+ "%Int8Array%": typeof Int8Array > "u" ? E : Int8Array,
1587
+ "%Int16Array%": typeof Int16Array > "u" ? E : Int16Array,
1588
+ "%Int32Array%": typeof Int32Array > "u" ? E : Int32Array,
1589
+ "%isFinite%": isFinite,
1590
+ "%isNaN%": isNaN,
1591
+ "%IteratorPrototype%": ce && I ? I(I([][Symbol.iterator]())) : E,
1592
+ "%JSON%": typeof JSON == "object" ? JSON : E,
1593
+ "%Map%": typeof Map > "u" ? E : Map,
1594
+ "%MapIteratorPrototype%": typeof Map > "u" || !ce || !I ? E : I((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1595
+ "%Math%": Math,
1596
+ "%Number%": Number,
1597
+ "%Object%": Object,
1598
+ "%parseFloat%": parseFloat,
1599
+ "%parseInt%": parseInt,
1600
+ "%Promise%": typeof Promise > "u" ? E : Promise,
1601
+ "%Proxy%": typeof Proxy > "u" ? E : Proxy,
1602
+ "%RangeError%": RangeError,
1603
+ "%ReferenceError%": ReferenceError,
1604
+ "%Reflect%": typeof Reflect > "u" ? E : Reflect,
1605
+ "%RegExp%": RegExp,
1606
+ "%Set%": typeof Set > "u" ? E : Set,
1607
+ "%SetIteratorPrototype%": typeof Set > "u" || !ce || !I ? E : I((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1608
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? E : SharedArrayBuffer,
1609
+ "%String%": String,
1610
+ "%StringIteratorPrototype%": ce && I ? I(""[Symbol.iterator]()) : E,
1611
+ "%Symbol%": ce ? Symbol : E,
1612
+ "%SyntaxError%": ye,
1613
+ "%ThrowTypeError%": ma,
1614
+ "%TypedArray%": ga,
1615
+ "%TypeError%": pe,
1616
+ "%Uint8Array%": typeof Uint8Array > "u" ? E : Uint8Array,
1617
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? E : Uint8ClampedArray,
1618
+ "%Uint16Array%": typeof Uint16Array > "u" ? E : Uint16Array,
1619
+ "%Uint32Array%": typeof Uint32Array > "u" ? E : Uint32Array,
1620
+ "%URIError%": URIError,
1621
+ "%WeakMap%": typeof WeakMap > "u" ? E : WeakMap,
1622
+ "%WeakRef%": typeof WeakRef > "u" ? E : WeakRef,
1623
+ "%WeakSet%": typeof WeakSet > "u" ? E : WeakSet
1624
+ };
1625
+ if (I)
1626
+ try {
1627
+ null.error;
1628
+ } catch (t) {
1629
+ var va = I(I(t));
1630
+ ie["%Error.prototype%"] = va;
1631
+ }
1632
+ var ba = function t(e) {
1633
+ var n;
1634
+ if (e === "%AsyncFunction%")
1635
+ n = lt("async function () {}");
1636
+ else if (e === "%GeneratorFunction%")
1637
+ n = lt("function* () {}");
1638
+ else if (e === "%AsyncGeneratorFunction%")
1639
+ n = lt("async function* () {}");
1640
+ else if (e === "%AsyncGenerator%") {
1641
+ var r = t("%AsyncGeneratorFunction%");
1642
+ r && (n = r.prototype);
1643
+ } else if (e === "%AsyncIteratorPrototype%") {
1644
+ var o = t("%AsyncGenerator%");
1645
+ o && I && (n = I(o.prototype));
1646
+ }
1647
+ return ie[e] = n, n;
1648
+ }, lr = {
1649
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1650
+ "%ArrayPrototype%": ["Array", "prototype"],
1651
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1652
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1653
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1654
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
1655
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1656
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1657
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1658
+ "%BooleanPrototype%": ["Boolean", "prototype"],
1659
+ "%DataViewPrototype%": ["DataView", "prototype"],
1660
+ "%DatePrototype%": ["Date", "prototype"],
1661
+ "%ErrorPrototype%": ["Error", "prototype"],
1662
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
1663
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1664
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1665
+ "%FunctionPrototype%": ["Function", "prototype"],
1666
+ "%Generator%": ["GeneratorFunction", "prototype"],
1667
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1668
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1669
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1670
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1671
+ "%JSONParse%": ["JSON", "parse"],
1672
+ "%JSONStringify%": ["JSON", "stringify"],
1673
+ "%MapPrototype%": ["Map", "prototype"],
1674
+ "%NumberPrototype%": ["Number", "prototype"],
1675
+ "%ObjectPrototype%": ["Object", "prototype"],
1676
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
1677
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1678
+ "%PromisePrototype%": ["Promise", "prototype"],
1679
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
1680
+ "%Promise_all%": ["Promise", "all"],
1681
+ "%Promise_reject%": ["Promise", "reject"],
1682
+ "%Promise_resolve%": ["Promise", "resolve"],
1683
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
1684
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1685
+ "%RegExpPrototype%": ["RegExp", "prototype"],
1686
+ "%SetPrototype%": ["Set", "prototype"],
1687
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1688
+ "%StringPrototype%": ["String", "prototype"],
1689
+ "%SymbolPrototype%": ["Symbol", "prototype"],
1690
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1691
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1692
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
1693
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1694
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1695
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1696
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1697
+ "%URIErrorPrototype%": ["URIError", "prototype"],
1698
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
1699
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
1700
+ }, Ne = Ut, qe = ya, wa = Ne.call(Function.call, Array.prototype.concat), Sa = Ne.call(Function.apply, Array.prototype.splice), cr = Ne.call(Function.call, String.prototype.replace), Ge = Ne.call(Function.call, String.prototype.slice), Ea = Ne.call(Function.call, RegExp.prototype.exec), Oa = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Aa = /\\(\\)?/g, Ra = function(e) {
1701
+ var n = Ge(e, 0, 1), r = Ge(e, -1);
1702
+ if (n === "%" && r !== "%")
1703
+ throw new ye("invalid intrinsic syntax, expected closing `%`");
1704
+ if (r === "%" && n !== "%")
1705
+ throw new ye("invalid intrinsic syntax, expected opening `%`");
1706
+ var o = [];
1707
+ return cr(e, Oa, function(a, i, s, c) {
1708
+ o[o.length] = s ? cr(c, Aa, "$1") : i || a;
1709
+ }), o;
1710
+ }, Pa = function(e, n) {
1711
+ var r = e, o;
1712
+ if (qe(lr, r) && (o = lr[r], r = "%" + o[0] + "%"), qe(ie, r)) {
1713
+ var a = ie[r];
1714
+ if (a === fe && (a = ba(r)), typeof a > "u" && !n)
1715
+ throw new pe("intrinsic " + e + " exists, but is not available. Please file an issue!");
1716
+ return {
1717
+ alias: o,
1718
+ name: r,
1719
+ value: a
1720
+ };
1721
+ }
1722
+ throw new ye("intrinsic " + e + " does not exist!");
1723
+ }, le = function(e, n) {
1724
+ if (typeof e != "string" || e.length === 0)
1725
+ throw new pe("intrinsic name must be a non-empty string");
1726
+ if (arguments.length > 1 && typeof n != "boolean")
1727
+ throw new pe('"allowMissing" argument must be a boolean');
1728
+ if (Ea(/^%?[^%]*%?$/, e) === null)
1729
+ throw new ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1730
+ var r = Ra(e), o = r.length > 0 ? r[0] : "", a = Pa("%" + o + "%", n), i = a.name, s = a.value, c = !1, l = a.alias;
1731
+ l && (o = l[0], Sa(r, wa([0, 1], l)));
1732
+ for (var p = 1, u = !0; p < r.length; p += 1) {
1733
+ var m = r[p], v = Ge(m, 0, 1), d = Ge(m, -1);
1734
+ if ((v === '"' || v === "'" || v === "`" || d === '"' || d === "'" || d === "`") && v !== d)
1735
+ throw new ye("property names with quotes must have matching quotes");
1736
+ if ((m === "constructor" || !u) && (c = !0), o += "." + m, i = "%" + o + "%", qe(ie, i))
1737
+ s = ie[i];
1738
+ else if (s != null) {
1739
+ if (!(m in s)) {
1740
+ if (!n)
1741
+ throw new pe("base intrinsic for " + e + " exists, but the property is not available.");
1742
+ return;
1743
+ }
1744
+ if (ae && p + 1 >= r.length) {
1745
+ var y = ae(s, m);
1746
+ u = !!y, u && "get" in y && !("originalValue" in y.get) ? s = y.get : s = s[m];
1747
+ } else
1748
+ u = qe(s, m), s = s[m];
1749
+ u && !c && (ie[i] = s);
1750
+ }
1751
+ }
1752
+ return s;
1753
+ }, Xr = { exports: {} }, $a = le, Ot = $a("%Object.defineProperty%", !0), At = function() {
1754
+ if (Ot)
1755
+ try {
1756
+ return Ot({}, "a", { value: 1 }), !0;
1757
+ } catch {
1758
+ return !1;
1759
+ }
1760
+ return !1;
1761
+ };
1762
+ At.hasArrayLengthDefineBug = function() {
1763
+ if (!At())
1764
+ return null;
1765
+ try {
1766
+ return Ot([], "length", { value: 1 }).length !== 1;
1767
+ } catch {
1768
+ return !0;
1769
+ }
1770
+ };
1771
+ var Yr = At, xa = le, He = xa("%Object.getOwnPropertyDescriptor%", !0);
1772
+ if (He)
1773
+ try {
1774
+ He([], "length");
1775
+ } catch {
1776
+ He = null;
1777
+ }
1778
+ var Zr = He, Ta = Yr(), Mt = le, Ee = Ta && Mt("%Object.defineProperty%", !0);
1779
+ if (Ee)
1780
+ try {
1781
+ Ee({}, "a", { value: 1 });
1782
+ } catch {
1783
+ Ee = !1;
1784
+ }
1785
+ var Na = Mt("%SyntaxError%"), ue = Mt("%TypeError%"), ur = Zr, Fa = function(e, n, r) {
1786
+ if (!e || typeof e != "object" && typeof e != "function")
1787
+ throw new ue("`obj` must be an object or a function`");
1788
+ if (typeof n != "string" && typeof n != "symbol")
1789
+ throw new ue("`property` must be a string or a symbol`");
1790
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
1791
+ throw new ue("`nonEnumerable`, if provided, must be a boolean or null");
1792
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
1793
+ throw new ue("`nonWritable`, if provided, must be a boolean or null");
1794
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
1795
+ throw new ue("`nonConfigurable`, if provided, must be a boolean or null");
1796
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
1797
+ throw new ue("`loose`, if provided, must be a boolean");
1798
+ var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, c = !!ur && ur(e, n);
1799
+ if (Ee)
1800
+ Ee(e, n, {
1801
+ configurable: i === null && c ? c.configurable : !i,
1802
+ enumerable: o === null && c ? c.enumerable : !o,
1803
+ value: r,
1804
+ writable: a === null && c ? c.writable : !a
1805
+ });
1806
+ else if (s || !o && !a && !i)
1807
+ e[n] = r;
1808
+ else
1809
+ throw new Na("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1810
+ }, en = le, fr = Fa, Ca = Yr(), pr = Zr, dr = en("%TypeError%"), Ia = en("%Math.floor%"), _a = function(e, n) {
1811
+ if (typeof e != "function")
1812
+ throw new dr("`fn` is not a function");
1813
+ if (typeof n != "number" || n < 0 || n > 4294967295 || Ia(n) !== n)
1814
+ throw new dr("`length` must be a positive 32-bit integer");
1815
+ var r = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
1816
+ if ("length" in e && pr) {
1817
+ var i = pr(e, "length");
1818
+ i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
1819
+ }
1820
+ return (o || a || !r) && (Ca ? fr(e, "length", n, !0, !0) : fr(e, "length", n)), e;
1821
+ };
1822
+ (function(t) {
1823
+ var e = Ut, n = le, r = _a, o = n("%TypeError%"), a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), c = n("%Object.defineProperty%", !0), l = n("%Math.max%");
1824
+ if (c)
1825
+ try {
1826
+ c({}, "a", { value: 1 });
1827
+ } catch {
1828
+ c = null;
1829
+ }
1830
+ t.exports = function(m) {
1831
+ if (typeof m != "function")
1832
+ throw new o("a function is required");
1833
+ var v = s(e, i, arguments);
1834
+ return r(
1835
+ v,
1836
+ 1 + l(0, m.length - (arguments.length - 1)),
1837
+ !0
1838
+ );
1839
+ };
1840
+ var p = function() {
1841
+ return s(e, a, arguments);
1842
+ };
1843
+ c ? c(t.exports, "apply", { value: p }) : t.exports.apply = p;
1844
+ })(Xr);
1845
+ var Da = Xr.exports, tn = le, rn = Da, Ba = rn(tn("String.prototype.indexOf")), Ua = function(e, n) {
1846
+ var r = tn(e, !!n);
1847
+ return typeof r == "function" && Ba(e, ".prototype.") > -1 ? rn(r) : r;
1848
+ };
1849
+ const Ma = {}, La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1850
+ __proto__: null,
1851
+ default: Ma
1852
+ }, Symbol.toStringTag, { value: "Module" })), ka = /* @__PURE__ */ Xo(La);
1853
+ var Lt = typeof Map == "function" && Map.prototype, ut = Object.getOwnPropertyDescriptor && Lt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Je = Lt && ut && typeof ut.get == "function" ? ut.get : null, yr = Lt && Map.prototype.forEach, kt = typeof Set == "function" && Set.prototype, ft = Object.getOwnPropertyDescriptor && kt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ve = kt && ft && typeof ft.get == "function" ? ft.get : null, mr = kt && Set.prototype.forEach, ja = typeof WeakMap == "function" && WeakMap.prototype, Oe = ja ? WeakMap.prototype.has : null, Ha = typeof WeakSet == "function" && WeakSet.prototype, Ae = Ha ? WeakSet.prototype.has : null, za = typeof WeakRef == "function" && WeakRef.prototype, hr = za ? WeakRef.prototype.deref : null, Wa = Boolean.prototype.valueOf, qa = Object.prototype.toString, Ga = Function.prototype.toString, Ja = String.prototype.match, jt = String.prototype.slice, Z = String.prototype.replace, Va = String.prototype.toUpperCase, gr = String.prototype.toLowerCase, nn = RegExp.prototype.test, vr = Array.prototype.concat, W = Array.prototype.join, Ka = Array.prototype.slice, br = Math.floor, Rt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, pt = Object.getOwnPropertySymbols, Pt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, me = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === me || !0) ? Symbol.toStringTag : null, on = Object.prototype.propertyIsEnumerable, wr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1854
+ return t.__proto__;
1855
+ } : null);
1856
+ function Sr(t, e) {
1857
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || nn.call(/e/, e))
1858
+ return e;
1859
+ var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1860
+ if (typeof t == "number") {
1861
+ var r = t < 0 ? -br(-t) : br(t);
1862
+ if (r !== t) {
1863
+ var o = String(r), a = jt.call(e, o.length + 1);
1864
+ return Z.call(o, n, "$&_") + "." + Z.call(Z.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
1865
+ }
1866
+ }
1867
+ return Z.call(e, n, "$&_");
1868
+ }
1869
+ var $t = ka, Er = $t.custom, Or = sn(Er) ? Er : null, Qa = function t(e, n, r, o) {
1870
+ var a = n || {};
1871
+ if (Y(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
1872
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
1873
+ if (Y(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
1874
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1875
+ var i = Y(a, "customInspect") ? a.customInspect : !0;
1876
+ if (typeof i != "boolean" && i !== "symbol")
1877
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1878
+ if (Y(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
1879
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1880
+ if (Y(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
1881
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1882
+ var s = a.numericSeparator;
1883
+ if (typeof e > "u")
1884
+ return "undefined";
1885
+ if (e === null)
1886
+ return "null";
1887
+ if (typeof e == "boolean")
1888
+ return e ? "true" : "false";
1889
+ if (typeof e == "string")
1890
+ return cn(e, a);
1891
+ if (typeof e == "number") {
1892
+ if (e === 0)
1893
+ return 1 / 0 / e > 0 ? "0" : "-0";
1894
+ var c = String(e);
1895
+ return s ? Sr(e, c) : c;
1896
+ }
1897
+ if (typeof e == "bigint") {
1898
+ var l = String(e) + "n";
1899
+ return s ? Sr(e, l) : l;
1900
+ }
1901
+ var p = typeof a.depth > "u" ? 5 : a.depth;
1902
+ if (typeof r > "u" && (r = 0), r >= p && p > 0 && typeof e == "object")
1903
+ return xt(e) ? "[Array]" : "[Object]";
1904
+ var u = yi(a, r);
1905
+ if (typeof o > "u")
1906
+ o = [];
1907
+ else if (ln(o, e) >= 0)
1908
+ return "[Circular]";
1909
+ function m($, w, B) {
1910
+ if (w && (o = Ka.call(o), o.push(w)), B) {
1911
+ var F = {
1912
+ depth: a.depth
1913
+ };
1914
+ return Y(a, "quoteStyle") && (F.quoteStyle = a.quoteStyle), t($, F, r + 1, o);
1915
+ }
1916
+ return t($, a, r + 1, o);
1917
+ }
1918
+ if (typeof e == "function" && !Ar(e)) {
1919
+ var v = ai(e), d = De(e, m);
1920
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (d.length > 0 ? " { " + W.call(d, ", ") + " }" : "");
1921
+ }
1922
+ if (sn(e)) {
1923
+ var y = me ? Z.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Pt.call(e);
1924
+ return typeof e == "object" && !me ? Se(y) : y;
1925
+ }
1926
+ if (fi(e)) {
1927
+ for (var A = "<" + gr.call(String(e.nodeName)), h = e.attributes || [], x = 0; x < h.length; x++)
1928
+ A += " " + h[x].name + "=" + an(Xa(h[x].value), "double", a);
1929
+ return A += ">", e.childNodes && e.childNodes.length && (A += "..."), A += "</" + gr.call(String(e.nodeName)) + ">", A;
1930
+ }
1931
+ if (xt(e)) {
1932
+ if (e.length === 0)
1933
+ return "[]";
1934
+ var N = De(e, m);
1935
+ return u && !di(N) ? "[" + Tt(N, u) + "]" : "[ " + W.call(N, ", ") + " ]";
1936
+ }
1937
+ if (Za(e)) {
1938
+ var U = De(e, m);
1939
+ return !("cause" in Error.prototype) && "cause" in e && !on.call(e, "cause") ? "{ [" + String(e) + "] " + W.call(vr.call("[cause]: " + m(e.cause), U), ", ") + " }" : U.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + W.call(U, ", ") + " }";
1940
+ }
1941
+ if (typeof e == "object" && i) {
1942
+ if (Or && typeof e[Or] == "function" && $t)
1943
+ return $t(e, { depth: p - r });
1944
+ if (i !== "symbol" && typeof e.inspect == "function")
1945
+ return e.inspect();
1946
+ }
1947
+ if (ii(e)) {
1948
+ var Q = [];
1949
+ return yr && yr.call(e, function($, w) {
1950
+ Q.push(m(w, e, !0) + " => " + m($, e));
1951
+ }), Rr("Map", Je.call(e), Q, u);
1952
+ }
1953
+ if (ci(e)) {
1954
+ var te = [];
1955
+ return mr && mr.call(e, function($) {
1956
+ te.push(m($, e));
1957
+ }), Rr("Set", Ve.call(e), te, u);
1958
+ }
1959
+ if (si(e))
1960
+ return dt("WeakMap");
1961
+ if (ui(e))
1962
+ return dt("WeakSet");
1963
+ if (li(e))
1964
+ return dt("WeakRef");
1965
+ if (ti(e))
1966
+ return Se(m(Number(e)));
1967
+ if (ni(e))
1968
+ return Se(m(Rt.call(e)));
1969
+ if (ri(e))
1970
+ return Se(Wa.call(e));
1971
+ if (ei(e))
1972
+ return Se(m(String(e)));
1973
+ if (typeof window < "u" && e === window)
1974
+ return "{ [object Window] }";
1975
+ if (e === Ko)
1976
+ return "{ [object globalThis] }";
1977
+ if (!Ya(e) && !Ar(e)) {
1978
+ var H = De(e, m), V = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, b = e instanceof Object ? "" : "null prototype", S = !V && D && Object(e) === e && D in e ? jt.call(ee(e), 8, -1) : b ? "Object" : "", P = V || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", R = P + (S || b ? "[" + W.call(vr.call([], S || [], b || []), ": ") + "] " : "");
1979
+ return H.length === 0 ? R + "{}" : u ? R + "{" + Tt(H, u) + "}" : R + "{ " + W.call(H, ", ") + " }";
1980
+ }
1981
+ return String(e);
1982
+ };
1983
+ function an(t, e, n) {
1984
+ var r = (n.quoteStyle || e) === "double" ? '"' : "'";
1985
+ return r + t + r;
1986
+ }
1987
+ function Xa(t) {
1988
+ return Z.call(String(t), /"/g, "&quot;");
1989
+ }
1990
+ function xt(t) {
1991
+ return ee(t) === "[object Array]" && (!D || !(typeof t == "object" && D in t));
1992
+ }
1993
+ function Ya(t) {
1994
+ return ee(t) === "[object Date]" && (!D || !(typeof t == "object" && D in t));
1995
+ }
1996
+ function Ar(t) {
1997
+ return ee(t) === "[object RegExp]" && (!D || !(typeof t == "object" && D in t));
1998
+ }
1999
+ function Za(t) {
2000
+ return ee(t) === "[object Error]" && (!D || !(typeof t == "object" && D in t));
2001
+ }
2002
+ function ei(t) {
2003
+ return ee(t) === "[object String]" && (!D || !(typeof t == "object" && D in t));
2004
+ }
2005
+ function ti(t) {
2006
+ return ee(t) === "[object Number]" && (!D || !(typeof t == "object" && D in t));
2007
+ }
2008
+ function ri(t) {
2009
+ return ee(t) === "[object Boolean]" && (!D || !(typeof t == "object" && D in t));
2010
+ }
2011
+ function sn(t) {
2012
+ if (me)
2013
+ return t && typeof t == "object" && t instanceof Symbol;
2014
+ if (typeof t == "symbol")
2015
+ return !0;
2016
+ if (!t || typeof t != "object" || !Pt)
2017
+ return !1;
2018
+ try {
2019
+ return Pt.call(t), !0;
2020
+ } catch {
2021
+ }
2022
+ return !1;
2023
+ }
2024
+ function ni(t) {
2025
+ if (!t || typeof t != "object" || !Rt)
2026
+ return !1;
2027
+ try {
2028
+ return Rt.call(t), !0;
2029
+ } catch {
2030
+ }
2031
+ return !1;
2032
+ }
2033
+ var oi = Object.prototype.hasOwnProperty || function(t) {
2034
+ return t in this;
2035
+ };
2036
+ function Y(t, e) {
2037
+ return oi.call(t, e);
2038
+ }
2039
+ function ee(t) {
2040
+ return qa.call(t);
2041
+ }
2042
+ function ai(t) {
2043
+ if (t.name)
2044
+ return t.name;
2045
+ var e = Ja.call(Ga.call(t), /^function\s*([\w$]+)/);
2046
+ return e ? e[1] : null;
2047
+ }
2048
+ function ln(t, e) {
2049
+ if (t.indexOf)
2050
+ return t.indexOf(e);
2051
+ for (var n = 0, r = t.length; n < r; n++)
2052
+ if (t[n] === e)
2053
+ return n;
2054
+ return -1;
2055
+ }
2056
+ function ii(t) {
2057
+ if (!Je || !t || typeof t != "object")
2058
+ return !1;
2059
+ try {
2060
+ Je.call(t);
2061
+ try {
2062
+ Ve.call(t);
2063
+ } catch {
2064
+ return !0;
2065
+ }
2066
+ return t instanceof Map;
2067
+ } catch {
2068
+ }
2069
+ return !1;
2070
+ }
2071
+ function si(t) {
2072
+ if (!Oe || !t || typeof t != "object")
2073
+ return !1;
2074
+ try {
2075
+ Oe.call(t, Oe);
2076
+ try {
2077
+ Ae.call(t, Ae);
2078
+ } catch {
2079
+ return !0;
2080
+ }
2081
+ return t instanceof WeakMap;
2082
+ } catch {
2083
+ }
2084
+ return !1;
2085
+ }
2086
+ function li(t) {
2087
+ if (!hr || !t || typeof t != "object")
2088
+ return !1;
2089
+ try {
2090
+ return hr.call(t), !0;
2091
+ } catch {
2092
+ }
2093
+ return !1;
2094
+ }
2095
+ function ci(t) {
2096
+ if (!Ve || !t || typeof t != "object")
2097
+ return !1;
2098
+ try {
2099
+ Ve.call(t);
2100
+ try {
2101
+ Je.call(t);
2102
+ } catch {
2103
+ return !0;
2104
+ }
2105
+ return t instanceof Set;
2106
+ } catch {
2107
+ }
2108
+ return !1;
2109
+ }
2110
+ function ui(t) {
2111
+ if (!Ae || !t || typeof t != "object")
2112
+ return !1;
2113
+ try {
2114
+ Ae.call(t, Ae);
2115
+ try {
2116
+ Oe.call(t, Oe);
2117
+ } catch {
2118
+ return !0;
2119
+ }
2120
+ return t instanceof WeakSet;
2121
+ } catch {
2122
+ }
2123
+ return !1;
2124
+ }
2125
+ function fi(t) {
2126
+ return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
2127
+ }
2128
+ function cn(t, e) {
2129
+ if (t.length > e.maxStringLength) {
2130
+ var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
2131
+ return cn(jt.call(t, 0, e.maxStringLength), e) + r;
2132
+ }
2133
+ var o = Z.call(Z.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, pi);
2134
+ return an(o, "single", e);
2135
+ }
2136
+ function pi(t) {
2137
+ var e = t.charCodeAt(0), n = {
2138
+ 8: "b",
2139
+ 9: "t",
2140
+ 10: "n",
2141
+ 12: "f",
2142
+ 13: "r"
2143
+ }[e];
2144
+ return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + Va.call(e.toString(16));
2145
+ }
2146
+ function Se(t) {
2147
+ return "Object(" + t + ")";
2148
+ }
2149
+ function dt(t) {
2150
+ return t + " { ? }";
2151
+ }
2152
+ function Rr(t, e, n, r) {
2153
+ var o = r ? Tt(n, r) : W.call(n, ", ");
2154
+ return t + " (" + e + ") {" + o + "}";
2155
+ }
2156
+ function di(t) {
2157
+ for (var e = 0; e < t.length; e++)
2158
+ if (ln(t[e], `
2159
+ `) >= 0)
2160
+ return !1;
2161
+ return !0;
2162
+ }
2163
+ function yi(t, e) {
2164
+ var n;
2165
+ if (t.indent === " ")
2166
+ n = " ";
2167
+ else if (typeof t.indent == "number" && t.indent > 0)
2168
+ n = W.call(Array(t.indent + 1), " ");
2169
+ else
2170
+ return null;
2171
+ return {
2172
+ base: n,
2173
+ prev: W.call(Array(e + 1), n)
2174
+ };
2175
+ }
2176
+ function Tt(t, e) {
2177
+ if (t.length === 0)
2178
+ return "";
2179
+ var n = `
2180
+ ` + e.prev + e.base;
2181
+ return n + W.call(t, "," + n) + `
2182
+ ` + e.prev;
2183
+ }
2184
+ function De(t, e) {
2185
+ var n = xt(t), r = [];
2186
+ if (n) {
2187
+ r.length = t.length;
2188
+ for (var o = 0; o < t.length; o++)
2189
+ r[o] = Y(t, o) ? e(t[o], t) : "";
2190
+ }
2191
+ var a = typeof pt == "function" ? pt(t) : [], i;
2192
+ if (me) {
2193
+ i = {};
2194
+ for (var s = 0; s < a.length; s++)
2195
+ i["$" + a[s]] = a[s];
2196
+ }
2197
+ for (var c in t)
2198
+ Y(t, c) && (n && String(Number(c)) === c && c < t.length || me && i["$" + c] instanceof Symbol || (nn.call(/[^\w$]/, c) ? r.push(e(c, t) + ": " + e(t[c], t)) : r.push(c + ": " + e(t[c], t))));
2199
+ if (typeof pt == "function")
2200
+ for (var l = 0; l < a.length; l++)
2201
+ on.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
2202
+ return r;
2203
+ }
2204
+ var Ht = le, ve = Ua, mi = Qa, hi = Ht("%TypeError%"), Be = Ht("%WeakMap%", !0), Ue = Ht("%Map%", !0), gi = ve("WeakMap.prototype.get", !0), vi = ve("WeakMap.prototype.set", !0), bi = ve("WeakMap.prototype.has", !0), wi = ve("Map.prototype.get", !0), Si = ve("Map.prototype.set", !0), Ei = ve("Map.prototype.has", !0), zt = function(t, e) {
2205
+ for (var n = t, r; (r = n.next) !== null; n = r)
2206
+ if (r.key === e)
2207
+ return n.next = r.next, r.next = t.next, t.next = r, r;
2208
+ }, Oi = function(t, e) {
2209
+ var n = zt(t, e);
2210
+ return n && n.value;
2211
+ }, Ai = function(t, e, n) {
2212
+ var r = zt(t, e);
2213
+ r ? r.value = n : t.next = {
2214
+ // eslint-disable-line no-param-reassign
2215
+ key: e,
2216
+ next: t.next,
2217
+ value: n
2218
+ };
2219
+ }, Ri = function(t, e) {
2220
+ return !!zt(t, e);
2221
+ }, Pi = function() {
2222
+ var e, n, r, o = {
2223
+ assert: function(a) {
2224
+ if (!o.has(a))
2225
+ throw new hi("Side channel does not contain " + mi(a));
2226
+ },
2227
+ get: function(a) {
2228
+ if (Be && a && (typeof a == "object" || typeof a == "function")) {
2229
+ if (e)
2230
+ return gi(e, a);
2231
+ } else if (Ue) {
2232
+ if (n)
2233
+ return wi(n, a);
2234
+ } else if (r)
2235
+ return Oi(r, a);
2236
+ },
2237
+ has: function(a) {
2238
+ if (Be && a && (typeof a == "object" || typeof a == "function")) {
2239
+ if (e)
2240
+ return bi(e, a);
2241
+ } else if (Ue) {
2242
+ if (n)
2243
+ return Ei(n, a);
2244
+ } else if (r)
2245
+ return Ri(r, a);
2246
+ return !1;
2247
+ },
2248
+ set: function(a, i) {
2249
+ Be && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Be()), vi(e, a, i)) : Ue ? (n || (n = new Ue()), Si(n, a, i)) : (r || (r = { key: {}, next: null }), Ai(r, a, i));
2250
+ }
2251
+ };
2252
+ return o;
2253
+ }, $i = String.prototype.replace, xi = /%20/g, yt = {
2254
+ RFC1738: "RFC1738",
2255
+ RFC3986: "RFC3986"
2256
+ }, Wt = {
2257
+ default: yt.RFC3986,
2258
+ formatters: {
2259
+ RFC1738: function(t) {
2260
+ return $i.call(t, xi, "+");
2261
+ },
2262
+ RFC3986: function(t) {
2263
+ return String(t);
2264
+ }
2265
+ },
2266
+ RFC1738: yt.RFC1738,
2267
+ RFC3986: yt.RFC3986
2268
+ }, Ti = Wt, mt = Object.prototype.hasOwnProperty, ne = Array.isArray, z = function() {
2269
+ for (var t = [], e = 0; e < 256; ++e)
2270
+ t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2271
+ return t;
2272
+ }(), Ni = function(e) {
2273
+ for (; e.length > 1; ) {
2274
+ var n = e.pop(), r = n.obj[n.prop];
2275
+ if (ne(r)) {
2276
+ for (var o = [], a = 0; a < r.length; ++a)
2277
+ typeof r[a] < "u" && o.push(r[a]);
2278
+ n.obj[n.prop] = o;
2279
+ }
2280
+ }
2281
+ }, un = function(e, n) {
2282
+ for (var r = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
2283
+ typeof e[o] < "u" && (r[o] = e[o]);
2284
+ return r;
2285
+ }, Fi = function t(e, n, r) {
2286
+ if (!n)
2287
+ return e;
2288
+ if (typeof n != "object") {
2289
+ if (ne(e))
2290
+ e.push(n);
2291
+ else if (e && typeof e == "object")
2292
+ (r && (r.plainObjects || r.allowPrototypes) || !mt.call(Object.prototype, n)) && (e[n] = !0);
2293
+ else
2294
+ return [e, n];
2295
+ return e;
2296
+ }
2297
+ if (!e || typeof e != "object")
2298
+ return [e].concat(n);
2299
+ var o = e;
2300
+ return ne(e) && !ne(n) && (o = un(e, r)), ne(e) && ne(n) ? (n.forEach(function(a, i) {
2301
+ if (mt.call(e, i)) {
2302
+ var s = e[i];
2303
+ s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
2304
+ } else
2305
+ e[i] = a;
2306
+ }), e) : Object.keys(n).reduce(function(a, i) {
2307
+ var s = n[i];
2308
+ return mt.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
2309
+ }, o);
2310
+ }, Ci = function(e, n) {
2311
+ return Object.keys(n).reduce(function(r, o) {
2312
+ return r[o] = n[o], r;
2313
+ }, e);
2314
+ }, Ii = function(t, e, n) {
2315
+ var r = t.replace(/\+/g, " ");
2316
+ if (n === "iso-8859-1")
2317
+ return r.replace(/%[0-9a-f]{2}/gi, unescape);
2318
+ try {
2319
+ return decodeURIComponent(r);
2320
+ } catch {
2321
+ return r;
2322
+ }
2323
+ }, _i = function(e, n, r, o, a) {
2324
+ if (e.length === 0)
2325
+ return e;
2326
+ var i = e;
2327
+ if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1")
2328
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(p) {
2329
+ return "%26%23" + parseInt(p.slice(2), 16) + "%3B";
2330
+ });
2331
+ for (var s = "", c = 0; c < i.length; ++c) {
2332
+ var l = i.charCodeAt(c);
2333
+ if (l === 45 || l === 46 || l === 95 || l === 126 || l >= 48 && l <= 57 || l >= 65 && l <= 90 || l >= 97 && l <= 122 || a === Ti.RFC1738 && (l === 40 || l === 41)) {
2334
+ s += i.charAt(c);
2335
+ continue;
2336
+ }
2337
+ if (l < 128) {
2338
+ s = s + z[l];
2339
+ continue;
2340
+ }
2341
+ if (l < 2048) {
2342
+ s = s + (z[192 | l >> 6] + z[128 | l & 63]);
2343
+ continue;
2344
+ }
2345
+ if (l < 55296 || l >= 57344) {
2346
+ s = s + (z[224 | l >> 12] + z[128 | l >> 6 & 63] + z[128 | l & 63]);
2347
+ continue;
2348
+ }
2349
+ c += 1, l = 65536 + ((l & 1023) << 10 | i.charCodeAt(c) & 1023), s += z[240 | l >> 18] + z[128 | l >> 12 & 63] + z[128 | l >> 6 & 63] + z[128 | l & 63];
2350
+ }
2351
+ return s;
2352
+ }, Di = function(e) {
2353
+ for (var n = [{ obj: { o: e }, prop: "o" }], r = [], o = 0; o < n.length; ++o)
2354
+ for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i), c = 0; c < s.length; ++c) {
2355
+ var l = s[c], p = i[l];
2356
+ typeof p == "object" && p !== null && r.indexOf(p) === -1 && (n.push({ obj: i, prop: l }), r.push(p));
2357
+ }
2358
+ return Ni(n), e;
2359
+ }, Bi = function(e) {
2360
+ return Object.prototype.toString.call(e) === "[object RegExp]";
2361
+ }, Ui = function(e) {
2362
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
2363
+ }, Mi = function(e, n) {
2364
+ return [].concat(e, n);
2365
+ }, Li = function(e, n) {
2366
+ if (ne(e)) {
2367
+ for (var r = [], o = 0; o < e.length; o += 1)
2368
+ r.push(n(e[o]));
2369
+ return r;
2370
+ }
2371
+ return n(e);
2372
+ }, fn = {
2373
+ arrayToObject: un,
2374
+ assign: Ci,
2375
+ combine: Mi,
2376
+ compact: Di,
2377
+ decode: Ii,
2378
+ encode: _i,
2379
+ isBuffer: Ui,
2380
+ isRegExp: Bi,
2381
+ maybeMap: Li,
2382
+ merge: Fi
2383
+ }, pn = Pi, ze = fn, Re = Wt, ki = Object.prototype.hasOwnProperty, Pr = {
2384
+ brackets: function(e) {
2385
+ return e + "[]";
2386
+ },
2387
+ comma: "comma",
2388
+ indices: function(e, n) {
2389
+ return e + "[" + n + "]";
2390
+ },
2391
+ repeat: function(e) {
2392
+ return e;
2393
+ }
2394
+ }, K = Array.isArray, ji = Array.prototype.push, dn = function(t, e) {
2395
+ ji.apply(t, K(e) ? e : [e]);
2396
+ }, Hi = Date.prototype.toISOString, $r = Re.default, _ = {
2397
+ addQueryPrefix: !1,
2398
+ allowDots: !1,
2399
+ charset: "utf-8",
2400
+ charsetSentinel: !1,
2401
+ delimiter: "&",
2402
+ encode: !0,
2403
+ encoder: ze.encode,
2404
+ encodeValuesOnly: !1,
2405
+ format: $r,
2406
+ formatter: Re.formatters[$r],
2407
+ // deprecated
2408
+ indices: !1,
2409
+ serializeDate: function(e) {
2410
+ return Hi.call(e);
2411
+ },
2412
+ skipNulls: !1,
2413
+ strictNullHandling: !1
2414
+ }, zi = function(e) {
2415
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2416
+ }, ht = {}, Wi = function t(e, n, r, o, a, i, s, c, l, p, u, m, v, d, y, A) {
2417
+ for (var h = e, x = A, N = 0, U = !1; (x = x.get(ht)) !== void 0 && !U; ) {
2418
+ var Q = x.get(e);
2419
+ if (N += 1, typeof Q < "u") {
2420
+ if (Q === N)
2421
+ throw new RangeError("Cyclic object value");
2422
+ U = !0;
2423
+ }
2424
+ typeof x.get(ht) > "u" && (N = 0);
2425
+ }
2426
+ if (typeof c == "function" ? h = c(n, h) : h instanceof Date ? h = u(h) : r === "comma" && K(h) && (h = ze.maybeMap(h, function(F) {
2427
+ return F instanceof Date ? u(F) : F;
2428
+ })), h === null) {
2429
+ if (a)
2430
+ return s && !d ? s(n, _.encoder, y, "key", m) : n;
2431
+ h = "";
2432
+ }
2433
+ if (zi(h) || ze.isBuffer(h)) {
2434
+ if (s) {
2435
+ var te = d ? n : s(n, _.encoder, y, "key", m);
2436
+ return [v(te) + "=" + v(s(h, _.encoder, y, "value", m))];
2437
+ }
2438
+ return [v(n) + "=" + v(String(h))];
2439
+ }
2440
+ var H = [];
2441
+ if (typeof h > "u")
2442
+ return H;
2443
+ var V;
2444
+ if (r === "comma" && K(h))
2445
+ d && s && (h = ze.maybeMap(h, s)), V = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
2446
+ else if (K(c))
2447
+ V = c;
2448
+ else {
2449
+ var b = Object.keys(h);
2450
+ V = l ? b.sort(l) : b;
2451
+ }
2452
+ for (var S = o && K(h) && h.length === 1 ? n + "[]" : n, P = 0; P < V.length; ++P) {
2453
+ var R = V[P], $ = typeof R == "object" && typeof R.value < "u" ? R.value : h[R];
2454
+ if (!(i && $ === null)) {
2455
+ var w = K(h) ? typeof r == "function" ? r(S, R) : S : S + (p ? "." + R : "[" + R + "]");
2456
+ A.set(e, N);
2457
+ var B = pn();
2458
+ B.set(ht, A), dn(H, t(
2459
+ $,
2460
+ w,
2461
+ r,
2462
+ o,
2463
+ a,
2464
+ i,
2465
+ r === "comma" && d && K(h) ? null : s,
2466
+ c,
2467
+ l,
2468
+ p,
2469
+ u,
2470
+ m,
2471
+ v,
2472
+ d,
2473
+ y,
2474
+ B
2475
+ ));
2476
+ }
2477
+ }
2478
+ return H;
2479
+ }, qi = function(e) {
2480
+ if (!e)
2481
+ return _;
2482
+ if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
2483
+ throw new TypeError("Encoder has to be a function.");
2484
+ var n = e.charset || _.charset;
2485
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2486
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2487
+ var r = Re.default;
2488
+ if (typeof e.format < "u") {
2489
+ if (!ki.call(Re.formatters, e.format))
2490
+ throw new TypeError("Unknown format option provided.");
2491
+ r = e.format;
2492
+ }
2493
+ var o = Re.formatters[r], a = _.filter;
2494
+ return (typeof e.filter == "function" || K(e.filter)) && (a = e.filter), {
2495
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : _.addQueryPrefix,
2496
+ allowDots: typeof e.allowDots > "u" ? _.allowDots : !!e.allowDots,
2497
+ charset: n,
2498
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : _.charsetSentinel,
2499
+ delimiter: typeof e.delimiter > "u" ? _.delimiter : e.delimiter,
2500
+ encode: typeof e.encode == "boolean" ? e.encode : _.encode,
2501
+ encoder: typeof e.encoder == "function" ? e.encoder : _.encoder,
2502
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : _.encodeValuesOnly,
2503
+ filter: a,
2504
+ format: r,
2505
+ formatter: o,
2506
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : _.serializeDate,
2507
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : _.skipNulls,
2508
+ sort: typeof e.sort == "function" ? e.sort : null,
2509
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : _.strictNullHandling
2510
+ };
2511
+ }, Gi = function(t, e) {
2512
+ var n = t, r = qi(e), o, a;
2513
+ typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : K(r.filter) && (a = r.filter, o = a);
2514
+ var i = [];
2515
+ if (typeof n != "object" || n === null)
2516
+ return "";
2517
+ var s;
2518
+ e && e.arrayFormat in Pr ? s = e.arrayFormat : e && "indices" in e ? s = e.indices ? "indices" : "repeat" : s = "indices";
2519
+ var c = Pr[s];
2520
+ if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2521
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2522
+ var l = c === "comma" && e && e.commaRoundTrip;
2523
+ o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
2524
+ for (var p = pn(), u = 0; u < o.length; ++u) {
2525
+ var m = o[u];
2526
+ r.skipNulls && n[m] === null || dn(i, Wi(
2527
+ n[m],
2528
+ m,
2529
+ c,
2530
+ l,
2531
+ r.strictNullHandling,
2532
+ r.skipNulls,
2533
+ r.encode ? r.encoder : null,
2534
+ r.filter,
2535
+ r.sort,
2536
+ r.allowDots,
2537
+ r.serializeDate,
2538
+ r.format,
2539
+ r.formatter,
2540
+ r.encodeValuesOnly,
2541
+ r.charset,
2542
+ p
2543
+ ));
2544
+ }
2545
+ var v = i.join(r.delimiter), d = r.addQueryPrefix === !0 ? "?" : "";
2546
+ return r.charsetSentinel && (r.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), v.length > 0 ? d + v : "";
2547
+ }, he = fn, Nt = Object.prototype.hasOwnProperty, Ji = Array.isArray, C = {
2548
+ allowDots: !1,
2549
+ allowPrototypes: !1,
2550
+ allowSparse: !1,
2551
+ arrayLimit: 20,
2552
+ charset: "utf-8",
2553
+ charsetSentinel: !1,
2554
+ comma: !1,
2555
+ decoder: he.decode,
2556
+ delimiter: "&",
2557
+ depth: 5,
2558
+ ignoreQueryPrefix: !1,
2559
+ interpretNumericEntities: !1,
2560
+ parameterLimit: 1e3,
2561
+ parseArrays: !0,
2562
+ plainObjects: !1,
2563
+ strictNullHandling: !1
2564
+ }, Vi = function(t) {
2565
+ return t.replace(/&#(\d+);/g, function(e, n) {
2566
+ return String.fromCharCode(parseInt(n, 10));
2567
+ });
2568
+ }, yn = function(t, e) {
2569
+ return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
2570
+ }, Ki = "utf8=%26%2310003%3B", Qi = "utf8=%E2%9C%93", Xi = function(e, n) {
2571
+ var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(n.delimiter, a), s = -1, c, l = n.charset;
2572
+ if (n.charsetSentinel)
2573
+ for (c = 0; c < i.length; ++c)
2574
+ i[c].indexOf("utf8=") === 0 && (i[c] === Qi ? l = "utf-8" : i[c] === Ki && (l = "iso-8859-1"), s = c, c = i.length);
2575
+ for (c = 0; c < i.length; ++c)
2576
+ if (c !== s) {
2577
+ var p = i[c], u = p.indexOf("]="), m = u === -1 ? p.indexOf("=") : u + 1, v, d;
2578
+ m === -1 ? (v = n.decoder(p, C.decoder, l, "key"), d = n.strictNullHandling ? null : "") : (v = n.decoder(p.slice(0, m), C.decoder, l, "key"), d = he.maybeMap(
2579
+ yn(p.slice(m + 1), n),
2580
+ function(y) {
2581
+ return n.decoder(y, C.decoder, l, "value");
2582
+ }
2583
+ )), d && n.interpretNumericEntities && l === "iso-8859-1" && (d = Vi(d)), p.indexOf("[]=") > -1 && (d = Ji(d) ? [d] : d), Nt.call(r, v) ? r[v] = he.combine(r[v], d) : r[v] = d;
2584
+ }
2585
+ return r;
2586
+ }, Yi = function(t, e, n, r) {
2587
+ for (var o = r ? e : yn(e, n), a = t.length - 1; a >= 0; --a) {
2588
+ var i, s = t[a];
2589
+ if (s === "[]" && n.parseArrays)
2590
+ i = [].concat(o);
2591
+ else {
2592
+ i = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2593
+ var c = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, l = parseInt(c, 10);
2594
+ !n.parseArrays && c === "" ? i = { 0: o } : !isNaN(l) && s !== c && String(l) === c && l >= 0 && n.parseArrays && l <= n.arrayLimit ? (i = [], i[l] = o) : c !== "__proto__" && (i[c] = o);
2595
+ }
2596
+ o = i;
2597
+ }
2598
+ return o;
2599
+ }, Zi = function(e, n, r, o) {
2600
+ if (e) {
2601
+ var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = r.depth > 0 && i.exec(a), l = c ? a.slice(0, c.index) : a, p = [];
2602
+ if (l) {
2603
+ if (!r.plainObjects && Nt.call(Object.prototype, l) && !r.allowPrototypes)
2604
+ return;
2605
+ p.push(l);
2606
+ }
2607
+ for (var u = 0; r.depth > 0 && (c = s.exec(a)) !== null && u < r.depth; ) {
2608
+ if (u += 1, !r.plainObjects && Nt.call(Object.prototype, c[1].slice(1, -1)) && !r.allowPrototypes)
2609
+ return;
2610
+ p.push(c[1]);
2611
+ }
2612
+ return c && p.push("[" + a.slice(c.index) + "]"), Yi(p, n, r, o);
2613
+ }
2614
+ }, es = function(e) {
2615
+ if (!e)
2616
+ return C;
2617
+ if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
2618
+ throw new TypeError("Decoder has to be a function.");
2619
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2620
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2621
+ var n = typeof e.charset > "u" ? C.charset : e.charset;
2622
+ return {
2623
+ allowDots: typeof e.allowDots > "u" ? C.allowDots : !!e.allowDots,
2624
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : C.allowPrototypes,
2625
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : C.allowSparse,
2626
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : C.arrayLimit,
2627
+ charset: n,
2628
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : C.charsetSentinel,
2629
+ comma: typeof e.comma == "boolean" ? e.comma : C.comma,
2630
+ decoder: typeof e.decoder == "function" ? e.decoder : C.decoder,
2631
+ delimiter: typeof e.delimiter == "string" || he.isRegExp(e.delimiter) ? e.delimiter : C.delimiter,
2632
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2633
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : C.depth,
2634
+ ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
2635
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : C.interpretNumericEntities,
2636
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : C.parameterLimit,
2637
+ parseArrays: e.parseArrays !== !1,
2638
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : C.plainObjects,
2639
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : C.strictNullHandling
2640
+ };
2641
+ }, ts = function(t, e) {
2642
+ var n = es(e);
2643
+ if (t === "" || t === null || typeof t > "u")
2644
+ return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2645
+ for (var r = typeof t == "string" ? Xi(t, n) : t, o = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
2646
+ var s = a[i], c = Zi(s, r[s], n, typeof t == "string");
2647
+ o = he.merge(o, c, n);
2648
+ }
2649
+ return n.allowSparse === !0 ? o : he.compact(o);
2650
+ }, rs = Gi, ns = ts, os = Wt, as = {
2651
+ formats: os,
2652
+ parse: ns,
2653
+ stringify: rs
2654
+ };
2655
+ const is = /* @__PURE__ */ Qo(as);
2656
+ /*! js-cookie v3.0.5 | MIT */
2657
+ function Me(t) {
2658
+ for (var e = 1; e < arguments.length; e++) {
2659
+ var n = arguments[e];
2660
+ for (var r in n)
2661
+ t[r] = n[r];
2662
+ }
2663
+ return t;
2664
+ }
2665
+ var ss = {
2666
+ read: function(t) {
2667
+ return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2668
+ },
2669
+ write: function(t) {
2670
+ return encodeURIComponent(t).replace(
2671
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
2672
+ decodeURIComponent
2673
+ );
2674
+ }
2675
+ };
2676
+ function Ft(t, e) {
2677
+ function n(o, a, i) {
2678
+ if (!(typeof document > "u")) {
2679
+ i = Me({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2680
+ var s = "";
2681
+ for (var c in i)
2682
+ i[c] && (s += "; " + c, i[c] !== !0 && (s += "=" + i[c].split(";")[0]));
2683
+ return document.cookie = o + "=" + t.write(a, o) + s;
2684
+ }
2685
+ }
2686
+ function r(o) {
2687
+ if (!(typeof document > "u" || arguments.length && !o)) {
2688
+ for (var a = document.cookie ? document.cookie.split("; ") : [], i = {}, s = 0; s < a.length; s++) {
2689
+ var c = a[s].split("="), l = c.slice(1).join("=");
2690
+ try {
2691
+ var p = decodeURIComponent(c[0]);
2692
+ if (i[p] = t.read(l, p), o === p)
2693
+ break;
2694
+ } catch {
2695
+ }
2696
+ }
2697
+ return o ? i[o] : i;
2698
+ }
2699
+ }
2700
+ return Object.create(
2701
+ {
2702
+ set: n,
2703
+ get: r,
2704
+ remove: function(o, a) {
2705
+ n(
2706
+ o,
2707
+ "",
2708
+ Me({}, a, {
2709
+ expires: -1
2710
+ })
2711
+ );
2712
+ },
2713
+ withAttributes: function(o) {
2714
+ return Ft(this.converter, Me({}, this.attributes, o));
2715
+ },
2716
+ withConverter: function(o) {
2717
+ return Ft(Me({}, this.converter, o), this.attributes);
2718
+ }
2719
+ },
2720
+ {
2721
+ attributes: { value: Object.freeze(e) },
2722
+ converter: { value: Object.freeze(t) }
2723
+ }
2724
+ );
2725
+ }
2726
+ var ls = Ft(ss, { path: "/" });
2727
+ Ke.extend(xn);
2728
+ Ke.extend(Tn);
2729
+ const mn = We(), hn = mn.sso ?? !0, gn = mn.noRedireLogin ?? !1, vn = () => {
2730
+ if (gn) return;
2731
+ const t = "/login";
2732
+ location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
2733
+ }, cs = async (t) => {
2734
+ var n;
2735
+ return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
2736
+ }, us = async (t, e) => {
2737
+ var c, l, p, u, m;
2738
+ let n = ((c = t.response) == null ? void 0 : c.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
2739
+ const a = { 400: "参数校验错误", 404: "接口地址未找到", 500: "服务器内部错误" };
2740
+ let i = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || {};
2741
+ return !(An("code") || "") && !gn && (n === 401 || (i == null ? void 0 : i.code) === 401) ? (hn ? Rn({ ...Pn, redirect_uri: $n }) : vn(), o = i) : (t.response ? (i instanceof Blob && (i = await new Promise((v) => {
2742
+ const d = new FileReader();
2743
+ d.readAsText(i, "utf-8"), d.onload = () => {
2744
+ try {
2745
+ v(JSON.parse(d.result || "{}"));
2746
+ } catch {
2747
+ v({ code: 400, msg: "blob解析错误" });
2748
+ }
2749
+ };
2750
+ })), i.code && (n = i.code, r = i.msg || i.message, o = i), r || (r = a[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = "网络异常,请检查您的网络情况" : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = "请求配置异常", e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((m = (u = window.DasMessage) == null ? void 0 : u.error) == null || m.call(u, { message: r, showClose: !0 }))), { ...o, code: n, msg: r, error: t };
2751
+ }, g = (t, e) => {
2752
+ const n = T.create();
2753
+ return En(n, async (r) => {
2754
+ const o = We();
2755
+ if (r.headers || (r.headers = {}), !(r != null && r.public)) {
2756
+ let l = "";
2757
+ if (o.token && (l = o.token), !l) {
2758
+ const p = new URL(location.href).searchParams;
2759
+ l = p.get("token") || p.get("accessToken") || p.get("accesstoken") || "";
2760
+ }
2761
+ hn ? l || (l = await On(r)) : (l || (l = Cn()), l || vn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
2762
+ }
2763
+ r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => is.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = cs), r.onError || (r.onError = us), (r.csrf ?? !1) && (r.headers["csrf-token"] = ls.get("csrf-token"));
2764
+ const s = r.params || {};
2765
+ if (s.project === void 0) {
2766
+ let l = 0;
2767
+ const p = new URL(location.href).searchParams;
2768
+ l = p.get("project") || p.get("projectId") || 0, l || (l = Nn().id ?? 0), (l || l === 0) && (s.project = l);
2769
+ }
2770
+ if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
2771
+ const { instanceInfo: l } = Fn();
2772
+ l != null && l.instanceId && (s.instance = l.instanceId);
2773
+ }
2774
+ return r.params = s, r.headers.Timezone = Ke.tz.guess(), r;
2775
+ });
2776
+ }, fs = "v1", Hs = g(`/api/app-manager/application/${fs}`), ps = "v1", zs = g(`/api/license/admin/${ps}`), ds = "v1", gt = `/api/bems/data-manage/${ds}`, Ws = {
2777
+ energyType: g(`${gt}/energy-type`),
2778
+ energyObject: g(`${gt}/energy-object`),
2779
+ energyDimension: g(`${gt}/energy-dimension`)
2780
+ }, ys = "v1", qs = g(`/api/supply/contract/${ys}`), Le = "v1", Gs = {
2781
+ classes: g(`/api/duty-manage/classes/${Le}`),
2782
+ // 班次管理
2783
+ group: g(`/api/duty-manage/group/${Le}`),
2784
+ // 分组管理
2785
+ scheduling: g(`/api/duty-manage/scheduling/${Le}`),
2786
+ // 排班管理
2787
+ shift: g(`/api/duty-manage/shift/${Le}`)
2788
+ // 交接班管理
2789
+ }, ms = "v1", Js = g(`/api/enterpriseright/permission/${ms}`);
2790
+ let hs = (t = 21) => {
2791
+ let e = "", n = crypto.getRandomValues(new Uint8Array(t));
2792
+ for (; t--; ) {
2793
+ let r = n[t] & 63;
2794
+ r < 36 ? e += r.toString(36) : r < 62 ? e += (r - 26).toString(36).toUpperCase() : r < 63 ? e += "_" : e += "-";
2795
+ }
2796
+ return e;
2797
+ };
2798
+ const gs = Ct.get("token"), vs = Ct.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), bs = Ct.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), ws = In.get("progress"), Vs = () => {
2799
+ let t = j(!1), e = j(""), n = j(0), r = j("normal"), o = j(!1), a, i = j(""), s = j(""), c = j(""), l = j(""), p = j(!1), u = j(""), m = "", v;
2800
+ const d = () => {
2801
+ s.value = "", c.value = "", l.value = "", p.value = !1, u.value = "";
2802
+ }, y = async () => {
2803
+ const [b, S] = await gs().run();
2804
+ return b ? { stauts: !1 } : { status: !0, data: S };
2805
+ }, A = (b) => new Promise((S, P) => {
2806
+ const $ = [];
2807
+ let w = 0;
2808
+ for (; w < b.size; ) {
2809
+ const F = b.slice(w, w + 1048576);
2810
+ $.push(F), w += 1048576;
2811
+ }
2812
+ const B = new Blob($, { type: b.type });
2813
+ S(B);
2814
+ }), h = async (b, S, P, R = !0, $ = "", w = !1) => {
2815
+ var Gt, Jt;
2816
+ m = $, R && (r.value = "normal", n.value = 0, e.value = "导入进度", t.value = !0, i.value = ""), v = S;
2817
+ const B = await y();
2818
+ if (!B.status) return;
2819
+ let F = B.data, M = null, { autoContentType: Fe, bucketName: be, importFileName: Ce } = P;
2820
+ const tt = w ? bs : vs;
2821
+ if (w) {
2822
+ let Ie = [];
2823
+ await S.forEach(async (_e) => {
2824
+ let nt = await A(_e);
2825
+ Ie.push(nt);
2826
+ }), M = new FormData(), M.append("accessKeyId", F.accessKeyId), M.append("secretAccessKey", F.secretAccessKey), M.append("sessionToken", F.sessionToken), M.append("bucketName", be), S.forEach((_e, nt) => {
2827
+ M.append("file", Ie[nt]);
2828
+ }), Ce.forEach((_e) => {
2829
+ M.append("filePaths", _e);
2830
+ });
2831
+ } else {
2832
+ const Ie = await A(S);
2833
+ M = {
2834
+ accessKeyId: F.accessKeyId,
2835
+ secretAccessKey: F.secretAccessKey,
2836
+ sessionToken: F.sessionToken,
2837
+ file: Ie,
2838
+ bucketName: be,
2839
+ filePath: Ce,
2840
+ autoContentType: Fe
2841
+ };
2842
+ }
2843
+ const [wn, Sn] = await tt(M).run();
2844
+ if (wn) return t.value = !1;
2845
+ const re = await Es(Sn.data);
2846
+ if ((re == null ? void 0 : re.statusCode) != 200) {
2847
+ t.value = !1, (Gt = window.DasMessage) == null || Gt.error({
2848
+ message: (re == null ? void 0 : re.errorMsg) || "上传失败",
2849
+ grouping: !0,
2850
+ repeatNum: 1
2851
+ });
2852
+ return;
2853
+ }
2854
+ const rt = await (b == null ? void 0 : b(re));
2855
+ if (R) {
2856
+ if (!rt.status) {
2857
+ t.value = !1, r.value = "error";
2858
+ return;
2859
+ }
2860
+ e.value = "导入进度", t.value = !0, U(rt.taskId, "import", "");
2861
+ } else {
2862
+ if (!rt.status) return;
2863
+ r.value = "success", (Jt = window.DasMessage) == null || Jt.success({
2864
+ message: "导入成功",
2865
+ grouping: !0,
2866
+ repeatNum: 1
2867
+ });
2868
+ }
2869
+ }, x = async (b, S = "", P = "") => {
2870
+ r.value = "normal", n.value = 0, e.value = P || "导出进度", t.value = !0;
2871
+ const R = await (b == null ? void 0 : b());
2872
+ if (!R.status) {
2873
+ t.value = !1, r.value = "error";
2874
+ return;
2875
+ }
2876
+ U(R.taskId, "action", "");
2877
+ }, N = async (b, S = "", P = "", R = !0) => {
2878
+ R && (r.value = "normal", n.value = 0, e.value = "导出进度", t.value = !0);
2879
+ const $ = await (b == null ? void 0 : b());
2880
+ if (!$.status) {
2881
+ t.value = !1, r.value = "error";
2882
+ return;
2883
+ }
2884
+ Ke().format("YYYYMMDDHHmmss") + "", U($.taskId, "export", S || "", P);
2885
+ }, U = async (b, S, P, R = "") => {
2886
+ o.value = !0, te(b, S, P, R), a = setTimeout(() => {
2887
+ }, 50);
2888
+ }, Q = () => {
2889
+ clearTimeout(a), a = null, t.value = !1;
2890
+ }, te = async (b, S = "export", P, R = "") => {
2891
+ var F, M, Fe;
2892
+ const [$, w] = await ws("", {
2893
+ url: `progress/${b}`
2894
+ }).run();
2895
+ if ($) {
2896
+ o.value = !1;
2897
+ return;
2898
+ }
2899
+ n.value = w.percentage;
2900
+ const B = S == "export" ? "导出" : "导入";
2901
+ if (n.value == 100)
2902
+ if (i.value = w, o.value = !1, Q(), S == "export")
2903
+ w.status == 1 ? (r.value = "success", xr(`${We().baseURL}/oss${w.filePath}`, P, R), o.value = !1) : w.status == 2 && (l.value = w.message || `${B}失败`, (F = window.DasMessage) == null || F.error({
2904
+ message: w.message || `${B}失败`,
2905
+ grouping: !0,
2906
+ repeatNum: 1
2907
+ }));
2908
+ else if (S == "import") {
2909
+ if (w.filePath) {
2910
+ r.value = "error";
2911
+ const be = (M = v.name) == null ? void 0 : M.match(/(.*?)(\.[^.]*$|$)/), Ce = be.length ? be[2] : "";
2912
+ p.value = !0;
2913
+ const tt = (Fe = w.filePath) == null ? void 0 : Fe.replace(/(.*\/)*([^.]+).*/gi, "$2");
2914
+ s.value = m || `${tt}${Ce}`, c.value = v.sizeText, l.value = "部分数据校验不通过,请下载附件并修改,重新导入!", u.value = `${We().baseURL}/oss${w.filePath}`;
2915
+ }
2916
+ H(w.status, B, w.message);
2917
+ } else S == "action" && (r.value = "success");
2918
+ else
2919
+ a && w.status != 2 ? a = setTimeout(() => {
2920
+ te(b, S, P, R);
2921
+ }, 50) : (i.value = w, o.value = !1, H(w.status, B, w.message), Q(), p.value = !0, l.value = (w == null ? void 0 : w.message) || "");
2922
+ }, H = (b, S, P) => {
2923
+ var R, $, w;
2924
+ b == 1 ? (r.value = "success", (R = window.DasMessage) == null || R.success({
2925
+ message: `${S}成功`,
2926
+ grouping: !0,
2927
+ repeatNum: 1
2928
+ }), s.value = "", c.value = "", l.value = "") : b == 2 ? (r.value = "error", ($ = window.DasMessage) == null || $.error({
2929
+ message: P || `${S}失败`,
2930
+ grouping: !0,
2931
+ repeatNum: 1
2932
+ }), l.value = P || "部分数据校验不通过,请下载附件并修改,重新导入!") : b == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
2933
+ message: `部分${S}失败`,
2934
+ grouping: !0,
2935
+ repeatNum: 1
2936
+ }));
2937
+ };
2938
+ return {
2939
+ showProgressDialog: t,
2940
+ progressTitle: e,
2941
+ percent: n,
2942
+ progressStatus: r,
2943
+ progressLoading: o,
2944
+ progressResult: i,
2945
+ errorFileName: s,
2946
+ errorFileSize: c,
2947
+ errorMessage: l,
2948
+ errorImport: p,
2949
+ errorFilePath: u,
2950
+ fileImport: h,
2951
+ fileExport: N,
2952
+ fileAction: x,
2953
+ generateUniqueName: (b) => {
2954
+ const S = b == null ? void 0 : b.match(/(.*?)(\.[^.]*$|$)/), P = S.length ? S[2] : "";
2955
+ return `${S.length ? S[1] : b}${hs()}${P}`;
2956
+ },
2957
+ downloadFile: xr,
2958
+ resetStataus: d,
2959
+ checkProgress: U
2960
+ };
2961
+ }, Ss = (t) => {
2962
+ let e = t == null ? void 0 : t.toLocaleLowerCase();
2963
+ return {
2964
+ excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
2965
+ pdf: "application/pdf",
2966
+ doc: "application/msword",
2967
+ docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
2968
+ xls: "application/vnd.ms-excel",
2969
+ xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
2970
+ zip: "application/zip",
2971
+ txt: "text/plain",
2972
+ html: "text/html",
2973
+ xml: "application/xml",
2974
+ json: "application/json",
2975
+ css: "text/css",
2976
+ js: "application/javascript",
2977
+ svg: "image/svg+xml",
2978
+ jpg: "image/jpeg",
2979
+ jpeg: "image/jpeg",
2980
+ gif: "image/gif",
2981
+ bmp: "image/bmp",
2982
+ ico: "image/x-icon",
2983
+ mp3: "audio/mpeg",
2984
+ mp4: "video/mp4",
2985
+ pem: "application/x-pem-file",
2986
+ crt: "application/x-x509-ca-cert",
2987
+ der: "application/x-x509-ca-cert",
2988
+ cer: "application/pkix-cert"
2989
+ }[e];
2990
+ }, xr = (t, e, n = "excel") => {
2991
+ const r = new XMLHttpRequest();
2992
+ r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function(o) {
2993
+ const a = new Blob([this.response], {
2994
+ type: Ss(n)
2995
+ }), i = URL.createObjectURL(a);
2996
+ if (window.navigator.msSaveOrOpenBlob)
2997
+ navigator.msSaveBlob(a, e);
2998
+ else {
2999
+ const s = document.createElement("a");
3000
+ s.href = i, s.download = e, s.click(), window.URL.revokeObjectURL(i);
3001
+ }
3002
+ }, r.send();
3003
+ }, Es = (t) => new Promise((e, n) => {
3004
+ var r = new FileReader();
3005
+ r.onload = function(o) {
3006
+ let a = "";
3007
+ typeof r.result == "string" && (a = JSON.parse(r.result)), e(a);
3008
+ }, r.readAsText(t);
3009
+ }), Os = "v2", Ks = g(`/api/edge/${Os}`), G = "v1", Qs = g(`/api/iot/${G}`), Xs = {
3010
+ thingmodel: g(`/api/iot-device/thingmodel/${G}`),
3011
+ deviceManage: g(`/api/iot-device/devicemanage/${G}`),
3012
+ product: g(`/api/iot-device/product/${G}`),
3013
+ productStorage: g(`/api/iot-device/product-storage/${G}`)
3014
+ }, Ys = {
3015
+ projectDevice: g(`/api/device-relation/deviceproject/${G}`),
3016
+ deviceRules: g(`/api/device-relation/devicerule/${G}`),
3017
+ project: g(`/api/device-relation/project/${G}`)
3018
+ }, Zs = g(`/api/oss/minio/${G}`), el = g(`/api/progress/accessor/${G}`), bn = "v1", tl = g(`/api/justauth/oauth-server/${bn}/visitor`), rl = g(`/api/justauth/oauth-server/${bn}`), As = "v1", nl = g(`/api/knowledge-base/knowledge/${As}`), Rs = "v1", ol = g(`/api/custom-datasource/custom/${Rs}`), Ps = "v1", al = g(`/api/permission/${Ps}`), se = "v1", il = g(`/api/customer/customer/${se}`), sl = g(`/api/customer/company/${se}`), ll = g(`/api/customer/customer-grade/${se}`), cl = g(`/api/customer/customer-type/${se}`), ul = {
3019
+ list: g(`/api/project/${se}/list`),
3020
+ app: g(`/api/project/${se}/app`),
3021
+ people: g(`/api/project/${se}/people`)
3022
+ }, $s = "v1", fl = g(`/api/portal/user/${$s}`), xs = "v1", pl = g(`/api/space-manage/space-tree/${xs}`), et = "v1", dl = g(`/api/superadmin/portal/${et}`), yl = g(`/api/superadmin/permission/${et}`), ml = g(`/api/superadmin/resource/${et}`), hl = g(`/api/superadmin/license/${et}`), qt = "v1", gl = g(`/api/supply/supplier/${qt}`), vl = g(`/api/supplier/${qt}`), bl = g(`/api/supplier/${qt}/classification`), Ts = "v1", wl = g(`/api/supply/brand/${Ts}`), Ns = "v2", Sl = g(`/api/tool/${Ns}`), Fs = "v1", El = g(`/api/system-config/${Fs}`);
22
3023
  export {
23
- r as appManage,
24
- p as authentication,
25
- i as bemsModules,
26
- T as company,
27
- s as contract,
28
- q as customer,
29
- z as customerGrade,
30
- A as customerType,
31
- E as daslink,
32
- l as downloadFile,
33
- f as dutyModules,
34
- $ as enterpriseadminBrandModel,
35
- x as enterpriseright,
36
- M as gatewayEdge,
37
- h as iot,
38
- w as iotMinio,
39
- P as iotModules,
40
- j as iotProgress,
41
- k as iotRelationModules,
42
- C as justauth,
43
- b as knowledgeBase,
44
- F as oauthServer,
45
- L as permission,
46
- I as portal,
47
- D as projectManage,
48
- K as spaceManage,
49
- O as superadminLicense,
50
- Q as superadminPermission,
51
- U as superadminPortal,
52
- V as superadminResource,
53
- X as supplier,
54
- Y as supplierClassification,
55
- Z as supplierManage,
56
- to as systemConfiguration,
57
- eo as tool,
58
- c as useFile
3024
+ Hs as appManage,
3025
+ zs as authentication,
3026
+ Ws as bemsModules,
3027
+ sl as company,
3028
+ qs as contract,
3029
+ il as customer,
3030
+ ll as customerGrade,
3031
+ cl as customerType,
3032
+ ol as daslink,
3033
+ xr as downloadFile,
3034
+ Gs as dutyModules,
3035
+ wl as enterpriseadminBrandModel,
3036
+ Js as enterpriseright,
3037
+ Ks as gatewayEdge,
3038
+ Qs as iot,
3039
+ Zs as iotMinio,
3040
+ Xs as iotModules,
3041
+ el as iotProgress,
3042
+ Ys as iotRelationModules,
3043
+ tl as justauth,
3044
+ nl as knowledgeBase,
3045
+ rl as oauthServer,
3046
+ al as permission,
3047
+ fl as portal,
3048
+ ul as projectManage,
3049
+ pl as spaceManage,
3050
+ hl as superadminLicense,
3051
+ yl as superadminPermission,
3052
+ dl as superadminPortal,
3053
+ ml as superadminResource,
3054
+ gl as supplier,
3055
+ bl as supplierClassification,
3056
+ vl as supplierManage,
3057
+ El as systemConfiguration,
3058
+ Sl as tool,
3059
+ Vs as useFile
59
3060
  };