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