@das-fed/upf-utils 6.4.0-dev.226 → 6.4.0-dev.228

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