@das-fed/upf-utils 6.4.0-dev.225 → 6.4.0-dev.227

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