@das-fed/utils 1.0.9 → 6.3.0-beta.1

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