@das-fed/utils 6.4.0-hot.6 → 6.4.0-hot.60

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