@das-fed/upf-utils 6.4.0-dev.124

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